@mhmo91/schmancy 0.2.189 → 0.2.190
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-Bna1XsEc.cjs → animated-text-1uYn8Ziy.cjs} +2 -2
- package/dist/{animated-text-Bna1XsEc.cjs.map → animated-text-1uYn8Ziy.cjs.map} +1 -1
- package/dist/{animated-text-CgxDEni2.js → animated-text-CuWNIpQo.js} +3 -3
- package/dist/{animated-text-CgxDEni2.js.map → animated-text-CuWNIpQo.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-DuMDGrWd.js → area.component-DbfkjQSm.js} +3 -3
- package/dist/{area.component-DuMDGrWd.js.map → area.component-DbfkjQSm.js.map} +1 -1
- package/dist/{area.component-DUEJtikV.cjs → area.component-GhcXWZom.cjs} +2 -2
- package/dist/{area.component-DUEJtikV.cjs.map → area.component-GhcXWZom.cjs.map} +1 -1
- package/dist/area.js +1 -1
- package/dist/{autocomplete-DzCIeHuW.cjs → autocomplete-BYRVh7wm.cjs} +2 -2
- package/dist/{autocomplete-DzCIeHuW.cjs.map → autocomplete-BYRVh7wm.cjs.map} +1 -1
- package/dist/{autocomplete-BEZJBy1r.js → autocomplete-CG_Kcz6l.js} +3 -3
- package/dist/{autocomplete-BEZJBy1r.js.map → autocomplete-CG_Kcz6l.js.map} +1 -1
- package/dist/autocomplete.cjs +1 -1
- package/dist/autocomplete.js +1 -1
- package/dist/{avatar-B9Gp_I1R.js → avatar-CjMQMn0-.js} +40 -40
- package/dist/{avatar-B9Gp_I1R.js.map → avatar-CjMQMn0-.js.map} +1 -1
- package/dist/{avatar-BjLHjF6q.cjs → avatar-DIw8oQCK.cjs} +2 -2
- package/dist/{avatar-BjLHjF6q.cjs.map → avatar-DIw8oQCK.cjs.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-BtGb6gGN.cjs → checkbox-CsJ1Zl7_.cjs} +2 -2
- package/dist/{checkbox-BtGb6gGN.cjs.map → checkbox-CsJ1Zl7_.cjs.map} +1 -1
- package/dist/{checkbox-Db67O1Bh.js → checkbox-yujx-Axh.js} +2 -2
- package/dist/{checkbox-Db67O1Bh.js.map → checkbox-yujx-Axh.js.map} +1 -1
- package/dist/checkbox.cjs +1 -1
- package/dist/checkbox.js +1 -1
- package/dist/{chips-B2gYT4uW.js → chips-YWxRttHr.js} +3 -3
- package/dist/{chips-B2gYT4uW.js.map → chips-YWxRttHr.js.map} +1 -1
- package/dist/{chips-CKgjZuwb.cjs → chips-tWAKSPgh.cjs} +2 -2
- package/dist/{chips-CKgjZuwb.cjs.map → chips-tWAKSPgh.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-BBIJ0kvh.cjs → date-range-B36F2jCL.cjs} +2 -2
- package/dist/{date-range-BBIJ0kvh.cjs.map → date-range-B36F2jCL.cjs.map} +1 -1
- package/dist/{date-range-3mp_HdkF.js → date-range-BPRokQOx.js} +3 -3
- package/dist/{date-range-3mp_HdkF.js.map → date-range-BPRokQOx.js.map} +1 -1
- package/dist/date-range.cjs +1 -1
- package/dist/date-range.js +1 -1
- package/dist/{delay-DwLLPpTz.cjs → delay-DPjF4boE.cjs} +2 -2
- package/dist/{delay-DwLLPpTz.cjs.map → delay-DPjF4boE.cjs.map} +1 -1
- package/dist/{delay-BlGr2JnU.js → delay-Zb58hHPd.js} +2 -2
- package/dist/{delay-BlGr2JnU.js.map → delay-Zb58hHPd.js.map} +1 -1
- package/dist/delay.cjs +1 -1
- package/dist/delay.js +1 -1
- package/dist/{dialog-content-Cy3krWh4.js → dialog-content-DcvXV1dh.js} +104 -97
- package/dist/dialog-content-DcvXV1dh.js.map +1 -0
- package/dist/dialog-content-nFxzBHR3.cjs +106 -0
- package/dist/dialog-content-nFxzBHR3.cjs.map +1 -0
- package/dist/dialog.cjs +1 -1
- package/dist/dialog.js +1 -1
- package/dist/{divider-CIMJK_rP.cjs → divider-S-V_G4uT.cjs} +2 -2
- package/dist/{divider-CIMJK_rP.cjs.map → divider-S-V_G4uT.cjs.map} +1 -1
- package/dist/{divider-C5KbJnNJ.js → divider-k7o6OTqW.js} +3 -3
- package/dist/{divider-C5KbJnNJ.js.map → divider-k7o6OTqW.js.map} +1 -1
- package/dist/divider.cjs +1 -1
- package/dist/divider.js +1 -1
- package/dist/{dropdown-content-Q9VLVb2F.js → dropdown-content-BZpKqm6U.js} +3 -3
- package/dist/{dropdown-content-Q9VLVb2F.js.map → dropdown-content-BZpKqm6U.js.map} +1 -1
- package/dist/{dropdown-content-Db-wdS2s.cjs → dropdown-content-FchGZaYf.cjs} +2 -2
- package/dist/{dropdown-content-Db-wdS2s.cjs.map → dropdown-content-FchGZaYf.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-BxlGk9pA.cjs → flex-CeNZzdB_.cjs} +2 -2
- package/dist/{flex-BxlGk9pA.cjs.map → flex-CeNZzdB_.cjs.map} +1 -1
- package/dist/{flex-8XEPqr9b.js → flex-WYtKeTr4.js} +2 -2
- package/dist/{flex-8XEPqr9b.js.map → flex-WYtKeTr4.js.map} +1 -1
- package/dist/{form-CyEVtx-V.js → form-B2CIvFBp.js} +2 -2
- package/dist/{form-CyEVtx-V.js.map → form-B2CIvFBp.js.map} +1 -1
- package/dist/{form-CYMHfAG_.cjs → form-eYkcvIGx.cjs} +2 -2
- package/dist/{form-CYMHfAG_.cjs.map → form-eYkcvIGx.cjs.map} +1 -1
- package/dist/form.cjs +1 -1
- package/dist/form.js +1 -1
- package/dist/{icon-DfXEFS7C.cjs → icon-B2TAMsVV.cjs} +2 -2
- package/dist/{icon-DfXEFS7C.cjs.map → icon-B2TAMsVV.cjs.map} +1 -1
- package/dist/{icon-C-lt8a8h.js → icon-CgdV8xXm.js} +3 -3
- package/dist/{icon-C-lt8a8h.js.map → icon-CgdV8xXm.js.map} +1 -1
- package/dist/{icon-button-BLJ1x_1w.js → icon-button-CRaJHBpp.js} +3 -3
- package/dist/{icon-button-BLJ1x_1w.js.map → icon-button-CRaJHBpp.js.map} +1 -1
- package/dist/{icon-button-ChHwSu3H.cjs → icon-button-v16_Wpuk.cjs} +2 -2
- package/dist/{icon-button-ChHwSu3H.cjs.map → icon-button-v16_Wpuk.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 +38 -38
- package/dist/{input-Co_W4xBr.cjs → input-BesJg4Lr.cjs} +2 -2
- package/dist/{input-Co_W4xBr.cjs.map → input-BesJg4Lr.cjs.map} +1 -1
- package/dist/{input-C6m5Q-wB.js → input-WQrLtis4.js} +2 -2
- package/dist/{input-C6m5Q-wB.js.map → input-WQrLtis4.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-BPWFlqaM.js → list-C0ZJ2QEd.js} +2 -2
- package/dist/{list-BPWFlqaM.js.map → list-C0ZJ2QEd.js.map} +1 -1
- package/dist/{list-6wM5ZEpq.cjs → list-CkKqFSsQ.cjs} +2 -2
- package/dist/{list-6wM5ZEpq.cjs.map → list-CkKqFSsQ.cjs.map} +1 -1
- package/dist/list.cjs +1 -1
- package/dist/list.js +1 -1
- package/dist/{litElement.mixin-Ct7SS5n6.cjs → litElement.mixin-CzWOVqVp.cjs} +2 -2
- package/dist/{litElement.mixin-Ct7SS5n6.cjs.map → litElement.mixin-CzWOVqVp.cjs.map} +1 -1
- package/dist/{litElement.mixin-CkrfRzHl.js → litElement.mixin-DeLVcdRg.js} +2 -2
- package/dist/{litElement.mixin-CkrfRzHl.js.map → litElement.mixin-DeLVcdRg.js.map} +1 -1
- package/dist/{menu-5jqKvFvl.js → menu-BtzkVH8X.js} +3 -3
- package/dist/{menu-5jqKvFvl.js.map → menu-BtzkVH8X.js.map} +1 -1
- package/dist/{menu-DMVl6G87.cjs → menu-w6S-1zwg.cjs} +2 -2
- package/dist/{menu-DMVl6G87.cjs.map → menu-w6S-1zwg.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-C5yDuHNM.js → notification-service-CB9zf69M.js} +3 -3
- package/dist/{notification-service-C5yDuHNM.js.map → notification-service-CB9zf69M.js.map} +1 -1
- package/dist/{notification-service-DFT169-h.cjs → notification-service-GqFYX3BY.cjs} +2 -2
- package/dist/{notification-service-DFT169-h.cjs.map → notification-service-GqFYX3BY.cjs.map} +1 -1
- package/dist/notification.cjs +1 -1
- package/dist/notification.js +1 -1
- package/dist/{option-BMYmJ0O3.js → option-CJLKwrBJ.js} +2 -2
- package/dist/{option-BMYmJ0O3.js.map → option-CJLKwrBJ.js.map} +1 -1
- package/dist/{option-DQgu3g8M.cjs → option-H_5RmXzL.cjs} +2 -2
- package/dist/{option-DQgu3g8M.cjs.map → option-H_5RmXzL.cjs.map} +1 -1
- package/dist/option.cjs +1 -1
- package/dist/option.js +1 -1
- package/dist/{payment-card-form-BR0xtD5P.cjs → payment-card-form-Cs1Fe-jn.cjs} +2 -2
- package/dist/{payment-card-form-BR0xtD5P.cjs.map → payment-card-form-Cs1Fe-jn.cjs.map} +1 -1
- package/dist/{payment-card-form-s42SWQGf.js → payment-card-form-DzemM9qi.js} +3 -3
- package/dist/{payment-card-form-s42SWQGf.js.map → payment-card-form-DzemM9qi.js.map} +1 -1
- package/dist/{radio-button-BFnxLdD0.cjs → radio-button-Bun4Rw8J.cjs} +2 -2
- package/dist/{radio-button-BFnxLdD0.cjs.map → radio-button-Bun4Rw8J.cjs.map} +1 -1
- package/dist/{radio-button-CXFI0kDZ.js → radio-button-CD6tI9PL.js} +2 -2
- package/dist/{radio-button-CXFI0kDZ.js.map → radio-button-CD6tI9PL.js.map} +1 -1
- package/dist/radio-group.cjs +1 -1
- package/dist/radio-group.js +1 -1
- package/dist/{schmancy-steps-container-BrLuO3on.cjs → schmancy-steps-container-BOfglmzy.cjs} +2 -2
- package/dist/{schmancy-steps-container-BrLuO3on.cjs.map → schmancy-steps-container-BOfglmzy.cjs.map} +1 -1
- package/dist/{schmancy-steps-container-Qv81sQOz.js → schmancy-steps-container-rRWu6Otz.js} +2 -2
- package/dist/{schmancy-steps-container-Qv81sQOz.js.map → schmancy-steps-container-rRWu6Otz.js.map} +1 -1
- package/dist/{select-DJk5ly1k.js → select-DePI5woI.js} +3 -3
- package/dist/{select-DJk5ly1k.js.map → select-DePI5woI.js.map} +1 -1
- package/dist/{select-Bw7syOVV.cjs → select-fDXX9rZH.cjs} +2 -2
- package/dist/{select-Bw7syOVV.cjs.map → select-fDXX9rZH.cjs.map} +1 -1
- package/dist/select.cjs +1 -1
- package/dist/select.js +1 -1
- package/dist/{sheet-D6DVCs5j.js → sheet-DF3a67cE.js} +3 -3
- package/dist/{sheet-D6DVCs5j.js.map → sheet-DF3a67cE.js.map} +1 -1
- package/dist/{sheet-Dmb3v-aK.cjs → sheet-VbYRmLjY.cjs} +2 -2
- package/dist/{sheet-Dmb3v-aK.cjs.map → sheet-VbYRmLjY.cjs.map} +1 -1
- package/dist/sheet.cjs +1 -1
- package/dist/sheet.js +1 -1
- package/dist/{slider-D4CoWWKa.js → slider-BtLv0yDd.js} +3 -3
- package/dist/{slider-D4CoWWKa.js.map → slider-BtLv0yDd.js.map} +1 -1
- package/dist/{slider-CHmuf4HT.cjs → slider-CnRmBcSn.cjs} +2 -2
- package/dist/{slider-CHmuf4HT.cjs.map → slider-CnRmBcSn.cjs.map} +1 -1
- package/dist/slider.cjs +1 -1
- package/dist/slider.js +1 -1
- package/dist/{spinner-3R0GSI2j.js → spinner-BELDf4x_.js} +3 -3
- package/dist/{spinner-3R0GSI2j.js.map → spinner-BELDf4x_.js.map} +1 -1
- package/dist/{spinner-BGJUiS3l.cjs → spinner-CXcN_7iP.cjs} +2 -2
- package/dist/{spinner-BGJUiS3l.cjs.map → spinner-CXcN_7iP.cjs.map} +1 -1
- package/dist/steps.cjs +1 -1
- package/dist/steps.js +1 -1
- package/dist/{surface-BIN3T7GX.js → surface-DoOBEMyw.js} +2 -2
- package/dist/{surface-BIN3T7GX.js.map → surface-DoOBEMyw.js.map} +1 -1
- package/dist/{surface-DEUoZLC-.cjs → surface-heIK476k.cjs} +2 -2
- package/dist/{surface-DEUoZLC-.cjs.map → surface-heIK476k.cjs.map} +1 -1
- package/dist/surface.cjs +1 -1
- package/dist/surface.js +1 -1
- package/dist/{table-G5t_zSE3.cjs → table-D0JKsZBA.cjs} +2 -2
- package/dist/{table-G5t_zSE3.cjs.map → table-D0JKsZBA.cjs.map} +1 -1
- package/dist/{table-B0WjFwYR.js → table-VnrJFAEo.js} +2 -2
- package/dist/{table-B0WjFwYR.js.map → table-VnrJFAEo.js.map} +1 -1
- package/dist/table.cjs +1 -1
- package/dist/table.js +1 -1
- package/dist/{tabs-group-DaN-b4t-.cjs → tabs-compatibility-CW6GHYpE.cjs} +4 -4
- package/dist/tabs-compatibility-CW6GHYpE.cjs.map +1 -0
- package/dist/{tabs-group-BnENONbM.js → tabs-compatibility-KDjNivBs.js} +7 -5
- package/dist/tabs-compatibility-KDjNivBs.js.map +1 -0
- package/dist/tabs.cjs +1 -1
- package/dist/tabs.js +1 -1
- package/dist/tailwind.mixin-BQxmEoe0.cjs +2 -0
- package/dist/{tailwind.mixin-Cezttl4Z.cjs.map → tailwind.mixin-BQxmEoe0.cjs.map} +1 -1
- package/dist/tailwind.mixin-u1MaZkeY.js +43 -0
- package/dist/{tailwind.mixin-CGefB_52.js.map → tailwind.mixin-u1MaZkeY.js.map} +1 -1
- package/dist/teleport.cjs +1 -1
- package/dist/teleport.js +1 -1
- package/dist/{textarea-50MqOr7P.cjs → textarea-BQNINluA.cjs} +2 -2
- package/dist/{textarea-50MqOr7P.cjs.map → textarea-BQNINluA.cjs.map} +1 -1
- package/dist/{textarea-DtPqk9Yo.js → textarea-BvyKNZ7y.js} +2 -2
- package/dist/{textarea-DtPqk9Yo.js.map → textarea-BvyKNZ7y.js.map} +1 -1
- package/dist/textarea.cjs +1 -1
- package/dist/textarea.js +1 -1
- package/dist/{theme-button-DFs9YHG7.js → theme-button-CxKHEUHX.js} +2 -2
- package/dist/{theme-button-DFs9YHG7.js.map → theme-button-CxKHEUHX.js.map} +1 -1
- package/dist/{theme-button-D8ZX9eB0.cjs → theme-button-D0hfmSaA.cjs} +2 -2
- package/dist/{theme-button-D8ZX9eB0.cjs.map → theme-button-D0hfmSaA.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.component-P7PV3uAy.cjs → theme.component-BvX40hsa.cjs} +2 -2
- package/dist/{theme.component-P7PV3uAy.cjs.map → theme.component-BvX40hsa.cjs.map} +1 -1
- package/dist/{theme.component-DA9XsDeK.js → theme.component-Cjk6uHIx.js} +2 -2
- package/dist/{theme.component-DA9XsDeK.js.map → theme.component-Cjk6uHIx.js.map} +1 -1
- package/dist/theme.js +1 -1
- package/dist/{timezone-Q3p0zSV9.cjs → timezone-1funzjSl.cjs} +2 -2
- package/dist/{timezone-Q3p0zSV9.cjs.map → timezone-1funzjSl.cjs.map} +1 -1
- package/dist/{timezone-Daso_7IH.js → timezone-4GjiROPl.js} +3 -3
- package/dist/{timezone-Daso_7IH.js.map → timezone-4GjiROPl.js.map} +1 -1
- package/dist/{tooltip-BS1mKwk8.cjs → tooltip-BWEQ7v1X.cjs} +2 -2
- package/dist/{tooltip-BS1mKwk8.cjs.map → tooltip-BWEQ7v1X.cjs.map} +1 -1
- package/dist/{tooltip-BeU9Mezf.js → tooltip-C02mtdN1.js} +2 -2
- package/dist/{tooltip-BeU9Mezf.js.map → tooltip-C02mtdN1.js.map} +1 -1
- package/dist/tooltip.cjs +1 -1
- package/dist/tooltip.js +1 -1
- package/dist/{tree-D5_hm7jx.cjs → tree-D79ONm20.cjs} +2 -2
- package/dist/{tree-D5_hm7jx.cjs.map → tree-D79ONm20.cjs.map} +1 -1
- package/dist/{tree--U0E-8Fy.js → tree-rNdGSQaj.js} +2 -2
- package/dist/{tree--U0E-8Fy.js.map → tree-rNdGSQaj.js.map} +1 -1
- package/dist/tree.cjs +1 -1
- package/dist/tree.js +1 -1
- package/dist/{typewriter-CADkp3ZN.cjs → typewriter-CGuc9kZU.cjs} +2 -2
- package/dist/{typewriter-CADkp3ZN.cjs.map → typewriter-CGuc9kZU.cjs.map} +1 -1
- package/dist/{typewriter-BCPu6644.js → typewriter-D7BL8ySs.js} +4 -4
- package/dist/{typewriter-BCPu6644.js.map → typewriter-D7BL8ySs.js.map} +1 -1
- package/dist/typewriter.cjs +1 -1
- package/dist/typewriter.js +1 -1
- package/dist/typography-BjNrTnRm.js +28 -0
- package/dist/typography-BjNrTnRm.js.map +1 -0
- package/dist/typography-JoSITcA_.cjs +6 -0
- package/dist/typography-JoSITcA_.cjs.map +1 -0
- package/dist/typography.cjs +1 -1
- package/dist/typography.js +1 -1
- package/package.json +4 -1
- package/types/src/dialog/dailog.d.ts +5 -0
- package/types/src/dialog/dialog-service.d.ts +1 -0
- package/types/src/tabs/index.d.ts +2 -0
- package/types/src/tabs/tabs-compatibility.d.ts +13 -0
- package/types/src/typography/typography.d.ts +4 -4
- package/dist/dialog-content-Cc8oBOrt.cjs +0 -99
- package/dist/dialog-content-Cc8oBOrt.cjs.map +0 -1
- package/dist/dialog-content-Cy3krWh4.js.map +0 -1
- package/dist/tabs-group-BnENONbM.js.map +0 -1
- package/dist/tabs-group-DaN-b4t-.cjs.map +0 -1
- package/dist/tailwind.mixin-CGefB_52.js +0 -43
- package/dist/tailwind.mixin-Cezttl4Z.cjs +0 -2
- package/dist/typography-B26O1Ju9.js +0 -28
- package/dist/typography-B26O1Ju9.js.map +0 -1
- package/dist/typography-Bi3yr7pq.cjs +0 -6
- package/dist/typography-Bi3yr7pq.cjs.map +0 -1
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
import { autoUpdate as
|
|
1
|
+
import { autoUpdate as g, computePosition as x, offset as C, flip as P, shift as R, size as T } from "@floating-ui/dom";
|
|
2
2
|
import { fromEvent as S } from "rxjs";
|
|
3
3
|
import "lit/directives/class-map.js";
|
|
4
4
|
import "lit/directives/style-map.js";
|
|
5
|
-
import { $ as f } from "./litElement.mixin-
|
|
6
|
-
import "./tailwind.mixin-
|
|
7
|
-
import { css as v, html as
|
|
5
|
+
import { $ as f } from "./litElement.mixin-DeLVcdRg.js";
|
|
6
|
+
import "./tailwind.mixin-u1MaZkeY.js";
|
|
7
|
+
import { css as v, html as c, render as m } from "lit";
|
|
8
8
|
import { property as p, customElement as y } from "lit/decorators.js";
|
|
9
|
-
import { when as
|
|
9
|
+
import { when as u } from "lit/directives/when.js";
|
|
10
10
|
import { debounceTime as H } from "rxjs/operators";
|
|
11
|
-
var M = Object.defineProperty,
|
|
12
|
-
for (var o,
|
|
13
|
-
return e &&
|
|
11
|
+
var M = Object.defineProperty, k = Object.getOwnPropertyDescriptor, d = (t, i, s, e) => {
|
|
12
|
+
for (var o, n = e > 1 ? void 0 : e ? k(i, s) : i, a = t.length - 1; a >= 0; a--) (o = t[a]) && (n = (e ? o(i, s, n) : o(n)) || n);
|
|
13
|
+
return e && n && M(i, s, n), n;
|
|
14
14
|
};
|
|
15
|
-
let
|
|
15
|
+
let r = class extends f(v`
|
|
16
16
|
:host {
|
|
17
17
|
position: fixed;
|
|
18
18
|
z-index: 10000;
|
|
@@ -47,18 +47,18 @@ let l = class extends f(v`
|
|
|
47
47
|
}
|
|
48
48
|
`) {
|
|
49
49
|
constructor() {
|
|
50
|
-
super(...arguments), this.title = void 0, this.message = void 0, this.confirmText = "Confirm", this.cancelText = "Cancel", this.variant = "default", this.position = { x: 0, y: 0 };
|
|
50
|
+
super(...arguments), this.title = void 0, this.subtitle = void 0, this.message = void 0, this.confirmText = "Confirm", this.cancelText = "Cancel", this.variant = "default", this.position = { x: 0, y: 0 };
|
|
51
51
|
}
|
|
52
52
|
async show(t) {
|
|
53
|
-
let i,
|
|
54
|
-
if (t) if ("clientX" in t) i = t.clientX,
|
|
55
|
-
else if ("touches" in t && t.touches.length) i = t.touches[0].clientX,
|
|
53
|
+
let i, s;
|
|
54
|
+
if (t) if ("clientX" in t) i = t.clientX, s = t.clientY;
|
|
55
|
+
else if ("touches" in t && t.touches.length) i = t.touches[0].clientX, s = t.touches[0].clientY;
|
|
56
56
|
else {
|
|
57
57
|
const e = t;
|
|
58
|
-
i = e.x,
|
|
58
|
+
i = e.x, s = e.y;
|
|
59
59
|
}
|
|
60
|
-
else i = window.innerWidth / 2,
|
|
61
|
-
return this.position = { x: i, y:
|
|
60
|
+
else i = window.innerWidth / 2, s = window.innerHeight / 2;
|
|
61
|
+
return this.position = { x: i, y: s }, this.virtualReference = { getBoundingClientRect: () => new DOMRect(i, s, 0, 0) }, this.setAttribute("active", ""), new Promise((e) => {
|
|
62
62
|
this.resolvePromise = e;
|
|
63
63
|
});
|
|
64
64
|
}
|
|
@@ -66,25 +66,25 @@ let l = class extends f(v`
|
|
|
66
66
|
this.removeAttribute("active"), this.cleanupAutoUpdate && (this.cleanupAutoUpdate(), this.cleanupAutoUpdate = void 0), this.resolvePromise && (this.resolvePromise(t), this.resolvePromise = void 0);
|
|
67
67
|
}
|
|
68
68
|
setupPositioning(t) {
|
|
69
|
-
const i = window.innerWidth,
|
|
70
|
-
if (Math.abs(this.position.x - i / 2) < 10 && Math.abs(this.position.y -
|
|
69
|
+
const i = window.innerWidth, s = window.innerHeight;
|
|
70
|
+
if (Math.abs(this.position.x - i / 2) < 10 && Math.abs(this.position.y - s / 2) < 10) return t.classList.add("centered"), void (this.cleanupAutoUpdate = g(document.body, t, () => {
|
|
71
71
|
if (t.classList.contains("centered")) {
|
|
72
72
|
const e = window.innerHeight - 40;
|
|
73
73
|
t.offsetHeight > e && (t.style.maxHeight = `${e}px`);
|
|
74
74
|
}
|
|
75
75
|
}, { elementResize: !0, ancestorScroll: !0 }));
|
|
76
|
-
t.classList.remove("centered"), this.virtualReference && (this.cleanupAutoUpdate =
|
|
76
|
+
t.classList.remove("centered"), this.virtualReference && (this.cleanupAutoUpdate = g(this.virtualReference, t, () => this.updatePosition(t), { ancestorScroll: !0, ancestorResize: !0, elementResize: !0, animationFrame: !0 }), this.updatePosition(t));
|
|
77
77
|
}
|
|
78
78
|
async updatePosition(t) {
|
|
79
79
|
if (!this.virtualReference) return;
|
|
80
80
|
if (this.position.x > 0 && this.position.y > 0) {
|
|
81
|
-
const e = window.innerWidth, o = window.innerHeight,
|
|
82
|
-
this.virtualReference = { getBoundingClientRect: () => new DOMRect(
|
|
81
|
+
const e = window.innerWidth, o = window.innerHeight, n = Math.min(this.position.x, e - 20), a = Math.min(this.position.y, o - 20);
|
|
82
|
+
this.virtualReference = { getBoundingClientRect: () => new DOMRect(n, a, 0, 0) };
|
|
83
83
|
}
|
|
84
|
-
const { x: i, y:
|
|
85
|
-
|
|
84
|
+
const { x: i, y: s } = await x(this.virtualReference, t, { placement: "bottom-start", strategy: "absolute", middleware: [C(20), P({ fallbackPlacements: ["top-start", "bottom-end", "top-end"], fallbackStrategy: "bestFit" }), R({ padding: 20 }), T({ apply({ availableWidth: e, availableHeight: o, elements: n }) {
|
|
85
|
+
n.floating.offsetWidth > e && Object.assign(n.floating.style, { maxWidth: `${Math.max(e - 40, 280)}px` }), n.floating.offsetHeight > o && Object.assign(n.floating.style, { maxHeight: o - 40 + "px" });
|
|
86
86
|
}, padding: 20 })] });
|
|
87
|
-
Object.assign(t.style, { left: `${Math.round(i)}px`, top: `${Math.round(
|
|
87
|
+
Object.assign(t.style, { left: `${Math.round(i)}px`, top: `${Math.round(s)}px`, transform: "none" });
|
|
88
88
|
}
|
|
89
89
|
disconnectedCallback() {
|
|
90
90
|
super.disconnectedCallback(), this.resizeSubscription && (this.resizeSubscription.unsubscribe(), this.resizeSubscription = void 0), this.cleanupAutoUpdate && (this.cleanupAutoUpdate(), this.cleanupAutoUpdate = void 0);
|
|
@@ -93,8 +93,8 @@ let l = class extends f(v`
|
|
|
93
93
|
var i;
|
|
94
94
|
const t = (i = this.shadowRoot) == null ? void 0 : i.querySelector(".dialog");
|
|
95
95
|
t && (this.setupPositioning(t), this.resizeSubscription = S(window, "resize").pipe(H(50)).subscribe(() => {
|
|
96
|
-
const
|
|
97
|
-
Math.abs(this.position.x -
|
|
96
|
+
const s = window.innerWidth, e = window.innerHeight;
|
|
97
|
+
Math.abs(this.position.x - s / 2) < 10 && Math.abs(this.position.y - e / 2) < 10 && (this.position = { x: s / 2, y: e / 2 }), this.updatePosition(t);
|
|
98
98
|
}));
|
|
99
99
|
}
|
|
100
100
|
handleConfirm() {
|
|
@@ -105,15 +105,22 @@ let l = class extends f(v`
|
|
|
105
105
|
}
|
|
106
106
|
render() {
|
|
107
107
|
const t = this.querySelectorAll('[slot="content"]').length > 0, i = this.confirmText && this.confirmText.trim() !== "" && this.cancelText && this.cancelText.trim() !== "";
|
|
108
|
-
return
|
|
108
|
+
return c`
|
|
109
109
|
<div class="overlay" @click=${this.handleCancel}></div>
|
|
110
110
|
|
|
111
111
|
<div class="dialog" role="alertdialog" aria-modal="true">
|
|
112
112
|
<schmancy-surface rounded="all" elevation="3" type="containerHigh">
|
|
113
113
|
<schmancy-form @submit=${this.handleConfirm} class="p-4">
|
|
114
|
-
${
|
|
115
|
-
|
|
116
|
-
|
|
114
|
+
${u(this.title && this.title.trim() !== "", () => c`
|
|
115
|
+
<schmancy-typography type="title" token="md" class="mb-1"> ${this.title} </schmancy-typography>
|
|
116
|
+
${u(this.subtitle && this.subtitle.trim() !== "", () => c`
|
|
117
|
+
<schmancy-typography type="subtitle" token="xs" class="mb-2">
|
|
118
|
+
${this.subtitle}
|
|
119
|
+
</schmancy-typography>
|
|
120
|
+
`, () => c``)}
|
|
121
|
+
`)}
|
|
122
|
+
${t ? c`<div class="${i ? "mb-4" : ""}"><slot name="content"></slot></div>` : u(this.message && this.message.trim() !== "", () => c`<schmancy-typography type="body" class="mb-4"> ${this.message} </schmancy-typography>`)}
|
|
123
|
+
${u(i, () => c`
|
|
117
124
|
<div class="flex justify-end gap-3">
|
|
118
125
|
<schmancy-button variant="outlined" @click=${this.handleCancel}> ${this.cancelText} </schmancy-button>
|
|
119
126
|
<schmancy-button type="submit" variant="filled"> ${this.confirmText} </schmancy-button>
|
|
@@ -126,70 +133,70 @@ let l = class extends f(v`
|
|
|
126
133
|
}
|
|
127
134
|
static async confirm(t) {
|
|
128
135
|
let i = document.querySelector("confirm-dialog");
|
|
129
|
-
return i || (i = document.createElement("confirm-dialog"), document.body.appendChild(i)), t.title && (i.title = t.title), t.message && (i.message = t.message), t.confirmText && (i.confirmText = t.confirmText), t.cancelText && (i.cancelText = t.cancelText), t.variant && (i.variant = t.variant), t.width && i.style.setProperty("--dialog-width", t.width), i.show(t.position);
|
|
136
|
+
return i || (i = document.createElement("confirm-dialog"), document.body.appendChild(i)), t.title && (i.title = t.title), t.subtitle && (i.subtitle = t.subtitle), t.message && (i.message = t.message), t.confirmText && (i.confirmText = t.confirmText), t.cancelText && (i.cancelText = t.cancelText), t.variant && (i.variant = t.variant), t.width && i.style.setProperty("--dialog-width", t.width), i.show(t.position);
|
|
130
137
|
}
|
|
131
138
|
static async ask(t, i) {
|
|
132
139
|
return this.confirm({ message: t, position: i });
|
|
133
140
|
}
|
|
134
141
|
};
|
|
135
|
-
|
|
136
|
-
const
|
|
142
|
+
d([p({ type: String })], r.prototype, "title", 2), d([p({ type: String })], r.prototype, "subtitle", 2), d([p({ type: String })], r.prototype, "message", 2), d([p({ type: String, attribute: "confirm-text" })], r.prototype, "confirmText", 2), d([p({ type: String, attribute: "cancel-text" })], r.prototype, "cancelText", 2), d([p({ type: String })], r.prototype, "variant", 2), r = d([y("confirm-dialog")], r);
|
|
143
|
+
const h = class h {
|
|
137
144
|
constructor() {
|
|
138
145
|
this.activeDialogs = [], this.activeRawDialogs = [];
|
|
139
146
|
}
|
|
140
147
|
static getInstance() {
|
|
141
|
-
return
|
|
148
|
+
return h.instance || (h.instance = new h()), h.instance;
|
|
142
149
|
}
|
|
143
150
|
confirm(i) {
|
|
144
|
-
const
|
|
145
|
-
|
|
151
|
+
const s = { ...h.DEFAULT_OPTIONS, ...i };
|
|
152
|
+
s.position || (s.position = this.getCenteredPosition());
|
|
146
153
|
let e = document.querySelector("confirm-dialog");
|
|
147
|
-
if (e || (e = document.createElement("confirm-dialog"), document.body.appendChild(e)),
|
|
154
|
+
if (e || (e = document.createElement("confirm-dialog"), document.body.appendChild(e)), s.title && (e.title = s.title), s.subtitle && (e.subtitle = s.subtitle), s.message && (e.message = s.message), s.confirmText && (e.confirmText = s.confirmText), s.cancelText && (e.cancelText = s.cancelText), s.variant && (e.variant = s.variant), s.width && e.style.setProperty("--dialog-width", s.width), s.content) {
|
|
148
155
|
const o = document.createElement("div");
|
|
149
|
-
if (o.slot = "content", typeof
|
|
150
|
-
const
|
|
151
|
-
|
|
152
|
-
} else
|
|
156
|
+
if (o.slot = "content", typeof s.content == "function") {
|
|
157
|
+
const n = s.content();
|
|
158
|
+
n instanceof HTMLElement ? o.appendChild(n) : m(n, o);
|
|
159
|
+
} else s.content instanceof HTMLElement ? o.appendChild(s.content) : m(s.content, o);
|
|
153
160
|
e.appendChild(o);
|
|
154
161
|
}
|
|
155
|
-
if (
|
|
156
|
-
const o = (
|
|
157
|
-
|
|
162
|
+
if (s.onConfirm) {
|
|
163
|
+
const o = (n) => {
|
|
164
|
+
s.onConfirm(), e.removeEventListener("confirm", o);
|
|
158
165
|
};
|
|
159
166
|
e.addEventListener("confirm", o);
|
|
160
167
|
}
|
|
161
|
-
if (
|
|
162
|
-
const o = (
|
|
163
|
-
|
|
168
|
+
if (s.onCancel) {
|
|
169
|
+
const o = (n) => {
|
|
170
|
+
s.onCancel(), e.removeEventListener("cancel", o);
|
|
164
171
|
};
|
|
165
172
|
e.addEventListener("cancel", o);
|
|
166
173
|
}
|
|
167
|
-
return this.activeDialogs.push(e), e.show(
|
|
174
|
+
return this.activeDialogs.push(e), e.show(s.position).finally(() => {
|
|
168
175
|
const o = this.activeDialogs.indexOf(e);
|
|
169
|
-
if (o !== -1 && this.activeDialogs.splice(o, 1),
|
|
170
|
-
const
|
|
171
|
-
|
|
176
|
+
if (o !== -1 && this.activeDialogs.splice(o, 1), s.content) {
|
|
177
|
+
const n = e.querySelector('[slot="content"]');
|
|
178
|
+
n && e.removeChild(n);
|
|
172
179
|
}
|
|
173
180
|
});
|
|
174
181
|
}
|
|
175
|
-
component(i,
|
|
182
|
+
component(i, s = {}) {
|
|
176
183
|
const e = document.createElement("div");
|
|
177
184
|
if (e.style.height = "100%", e.style.width = "100%", e.classList.add("schmancy-dialog-content-container"), typeof i == "function") {
|
|
178
|
-
const
|
|
179
|
-
|
|
185
|
+
const n = i();
|
|
186
|
+
n instanceof HTMLElement ? e.appendChild(n) : m(n, e);
|
|
180
187
|
} else i instanceof HTMLElement ? e.appendChild(i) : m(i, e);
|
|
181
188
|
let o = document.querySelector("schmancy-dialog");
|
|
182
|
-
return o || (o = document.createElement("schmancy-dialog"), document.body.appendChild(o)), o.appendChild(e),
|
|
189
|
+
return o || (o = document.createElement("schmancy-dialog"), document.body.appendChild(o)), o.appendChild(e), s.width && o.style.setProperty("--dialog-width", s.width), this.activeRawDialogs.push(o), o.show(s.position).finally(() => {
|
|
183
190
|
e && e.parentNode && e.parentNode.removeChild(e);
|
|
184
|
-
const
|
|
185
|
-
|
|
191
|
+
const n = this.activeRawDialogs.indexOf(o);
|
|
192
|
+
n !== -1 && this.activeRawDialogs.splice(n, 1);
|
|
186
193
|
});
|
|
187
194
|
}
|
|
188
195
|
dismiss() {
|
|
189
196
|
return this.activeRawDialogs.length > 0 ? (this.activeRawDialogs[this.activeRawDialogs.length - 1].hide(!1), this.activeRawDialogs.pop(), !0) : this.activeDialogs.length > 0 ? (this.activeDialogs[this.activeDialogs.length - 1].hide(!1), !0) : !1;
|
|
190
197
|
}
|
|
191
|
-
ask(i,
|
|
192
|
-
return this.confirm({ message: i, position:
|
|
198
|
+
ask(i, s) {
|
|
199
|
+
return this.confirm({ message: i, position: s });
|
|
193
200
|
}
|
|
194
201
|
danger(i) {
|
|
195
202
|
return this.confirm({ ...i, variant: "danger" });
|
|
@@ -198,11 +205,11 @@ const r = class r {
|
|
|
198
205
|
return { x: window.innerWidth / 2, y: window.innerHeight / 2 };
|
|
199
206
|
}
|
|
200
207
|
};
|
|
201
|
-
|
|
202
|
-
let
|
|
203
|
-
const F = { confirm: (t) =>
|
|
204
|
-
var
|
|
205
|
-
let
|
|
208
|
+
h.DEFAULT_OPTIONS = { title: void 0, subtitle: void 0, confirmText: void 0, cancelText: "Cancel", variant: "default", width: "360px" };
|
|
209
|
+
let l = h;
|
|
210
|
+
const F = { confirm: (t) => l.getInstance().confirm(t), ask: (t, i) => l.getInstance().ask(t, i), danger: (t) => l.getInstance().danger(t), component: (t, i) => l.getInstance().component(t, i), simple: (t, i) => l.getInstance().component(t, i), dismiss: () => l.getInstance().dismiss() };
|
|
211
|
+
var A = Object.getOwnPropertyDescriptor;
|
|
212
|
+
let b = class extends f(v`
|
|
206
213
|
:host {
|
|
207
214
|
position: fixed;
|
|
208
215
|
z-index: 10000;
|
|
@@ -240,15 +247,15 @@ let w = class extends f(v`
|
|
|
240
247
|
super(...arguments), this.position = { x: 0, y: 0 };
|
|
241
248
|
}
|
|
242
249
|
async show(t) {
|
|
243
|
-
let i,
|
|
244
|
-
if (t) if ("clientX" in t) i = t.clientX,
|
|
245
|
-
else if ("touches" in t && t.touches.length) i = t.touches[0].clientX,
|
|
250
|
+
let i, s;
|
|
251
|
+
if (t) if ("clientX" in t) i = t.clientX, s = t.clientY;
|
|
252
|
+
else if ("touches" in t && t.touches.length) i = t.touches[0].clientX, s = t.touches[0].clientY;
|
|
246
253
|
else {
|
|
247
254
|
const e = t;
|
|
248
|
-
i = e.x,
|
|
255
|
+
i = e.x, s = e.y;
|
|
249
256
|
}
|
|
250
|
-
else i = window.innerWidth / 2,
|
|
251
|
-
return this.position = { x: i, y:
|
|
257
|
+
else i = window.innerWidth / 2, s = window.innerHeight / 2;
|
|
258
|
+
return this.position = { x: i, y: s }, this.virtualReference = { getBoundingClientRect: () => new DOMRect(i, s, 0, 0) }, this.setAttribute("active", ""), new Promise((e) => {
|
|
252
259
|
this.resolvePromise = e;
|
|
253
260
|
});
|
|
254
261
|
}
|
|
@@ -256,25 +263,25 @@ let w = class extends f(v`
|
|
|
256
263
|
this.removeAttribute("active"), this.cleanupAutoUpdate && (this.cleanupAutoUpdate(), this.cleanupAutoUpdate = void 0), this.resolvePromise && (this.resolvePromise(t), this.resolvePromise = void 0);
|
|
257
264
|
}
|
|
258
265
|
setupPositioning(t) {
|
|
259
|
-
const i = window.innerWidth,
|
|
260
|
-
if (Math.abs(this.position.x - i / 2) < 10 && Math.abs(this.position.y -
|
|
266
|
+
const i = window.innerWidth, s = window.innerHeight;
|
|
267
|
+
if (Math.abs(this.position.x - i / 2) < 10 && Math.abs(this.position.y - s / 2) < 10) return t.classList.add("centered"), void (this.cleanupAutoUpdate = g(document.body, t, () => {
|
|
261
268
|
if (t.classList.contains("centered")) {
|
|
262
269
|
const e = window.innerHeight - 40;
|
|
263
270
|
t.offsetHeight > e && (t.style.maxHeight = `${e}px`);
|
|
264
271
|
}
|
|
265
272
|
}, { elementResize: !0, ancestorScroll: !0 }));
|
|
266
|
-
t.classList.remove("centered"), this.virtualReference && (this.cleanupAutoUpdate =
|
|
273
|
+
t.classList.remove("centered"), this.virtualReference && (this.cleanupAutoUpdate = g(this.virtualReference, t, () => this.updatePosition(t), { ancestorScroll: !0, ancestorResize: !0, elementResize: !0, animationFrame: !0 }), this.updatePosition(t));
|
|
267
274
|
}
|
|
268
275
|
async updatePosition(t) {
|
|
269
276
|
if (!this.virtualReference) return;
|
|
270
277
|
if (this.position.x > 0 && this.position.y > 0) {
|
|
271
|
-
const e = window.innerWidth, o = window.innerHeight,
|
|
272
|
-
this.virtualReference = { getBoundingClientRect: () => new DOMRect(
|
|
278
|
+
const e = window.innerWidth, o = window.innerHeight, n = Math.min(this.position.x, e - 20), a = Math.min(this.position.y, o - 20);
|
|
279
|
+
this.virtualReference = { getBoundingClientRect: () => new DOMRect(n, a, 0, 0) };
|
|
273
280
|
}
|
|
274
|
-
const { x: i, y:
|
|
275
|
-
|
|
281
|
+
const { x: i, y: s } = await x(this.virtualReference, t, { placement: "bottom-start", strategy: "absolute", middleware: [C(20), P({ fallbackPlacements: ["top-start", "bottom-end", "top-end"], fallbackStrategy: "bestFit" }), R({ padding: 20 }), T({ apply({ availableWidth: e, availableHeight: o, elements: n }) {
|
|
282
|
+
n.floating.offsetWidth > e && Object.assign(n.floating.style, { maxWidth: `${Math.max(e - 40, 280)}px` }), n.floating.offsetHeight > o && Object.assign(n.floating.style, { maxHeight: o - 40 + "px" });
|
|
276
283
|
}, padding: 20 })] });
|
|
277
|
-
Object.assign(t.style, { left: `${Math.round(i)}px`, top: `${Math.round(
|
|
284
|
+
Object.assign(t.style, { left: `${Math.round(i)}px`, top: `${Math.round(s)}px`, transform: "none" });
|
|
278
285
|
}
|
|
279
286
|
disconnectedCallback() {
|
|
280
287
|
super.disconnectedCallback(), this.resizeSubscription && (this.resizeSubscription.unsubscribe(), this.resizeSubscription = void 0), this.cleanupAutoUpdate && (this.cleanupAutoUpdate(), this.cleanupAutoUpdate = void 0);
|
|
@@ -283,15 +290,15 @@ let w = class extends f(v`
|
|
|
283
290
|
var i;
|
|
284
291
|
const t = (i = this.shadowRoot) == null ? void 0 : i.querySelector(".dialog");
|
|
285
292
|
t && (this.setupPositioning(t), this.resizeSubscription = S(window, "resize").pipe(H(50)).subscribe(() => {
|
|
286
|
-
const
|
|
287
|
-
Math.abs(this.position.x -
|
|
293
|
+
const s = window.innerWidth, e = window.innerHeight;
|
|
294
|
+
Math.abs(this.position.x - s / 2) < 10 && Math.abs(this.position.y - e / 2) < 10 && (this.position = { x: s / 2, y: e / 2 }), this.updatePosition(t);
|
|
288
295
|
}));
|
|
289
296
|
}
|
|
290
297
|
handleClose() {
|
|
291
298
|
this.hide(!1), this.dispatchEvent(new CustomEvent("close", { bubbles: !0, composed: !0 }));
|
|
292
299
|
}
|
|
293
300
|
render() {
|
|
294
|
-
return
|
|
301
|
+
return c`
|
|
295
302
|
<div class="overlay" @click=${this.handleClose}></div>
|
|
296
303
|
|
|
297
304
|
<div class="dialog" role="dialog" aria-modal="true">
|
|
@@ -302,12 +309,12 @@ let w = class extends f(v`
|
|
|
302
309
|
`;
|
|
303
310
|
}
|
|
304
311
|
};
|
|
305
|
-
|
|
306
|
-
for (var o,
|
|
307
|
-
return
|
|
308
|
-
})([y("schmancy-dialog")],
|
|
309
|
-
var
|
|
310
|
-
let
|
|
312
|
+
b = ((t, i, s, e) => {
|
|
313
|
+
for (var o, n = e > 1 ? void 0 : e ? A(i, s) : i, a = t.length - 1; a >= 0; a--) (o = t[a]) && (n = o(n) || n);
|
|
314
|
+
return n;
|
|
315
|
+
})([y("schmancy-dialog")], b);
|
|
316
|
+
var D = Object.getOwnPropertyDescriptor;
|
|
317
|
+
let w = class extends f(v`
|
|
311
318
|
:host {
|
|
312
319
|
display: block;
|
|
313
320
|
width: 100%;
|
|
@@ -315,18 +322,18 @@ let b = class extends f(v`
|
|
|
315
322
|
}
|
|
316
323
|
`) {
|
|
317
324
|
render() {
|
|
318
|
-
return
|
|
325
|
+
return c`<slot></slot>`;
|
|
319
326
|
}
|
|
320
327
|
};
|
|
321
|
-
|
|
322
|
-
for (var o,
|
|
323
|
-
return
|
|
324
|
-
})([y("schmancy-dialog-content")],
|
|
328
|
+
w = ((t, i, s, e) => {
|
|
329
|
+
for (var o, n = e > 1 ? void 0 : e ? D(i, s) : i, a = t.length - 1; a >= 0; a--) (o = t[a]) && (n = o(n) || n);
|
|
330
|
+
return n;
|
|
331
|
+
})([y("schmancy-dialog-content")], w);
|
|
325
332
|
export {
|
|
326
333
|
F as $,
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
334
|
+
r as C,
|
|
335
|
+
l as D,
|
|
336
|
+
b as S,
|
|
337
|
+
w as a
|
|
331
338
|
};
|
|
332
|
-
//# sourceMappingURL=dialog-content-
|
|
339
|
+
//# sourceMappingURL=dialog-content-DcvXV1dh.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"dialog-content-DcvXV1dh.js","sources":["../src/dialog/dailog.ts","../src/dialog/dialog-service.ts","../src/dialog/dialog.component.ts","../src/dialog/dialog-content.ts"],"sourcesContent":["import { autoUpdate, computePosition, flip, offset, Placement, shift, size, Strategy } from '@floating-ui/dom'\nimport { $LitElement } from '@mixins/index'\nimport { css, html } from 'lit'\nimport { customElement, property } from 'lit/decorators.js'\nimport { when } from 'lit/directives/when.js'\nimport { fromEvent } from 'rxjs'\nimport { debounceTime } from 'rxjs/operators'\n\n/**\n * A confirm dialog web component with custom content support\n *\n * @element confirm-dialog\n * @slot content - Optional slot for custom content\n */\n@customElement('confirm-dialog')\nexport class ConfirmDialog extends $LitElement(css`\n\t:host {\n\t\tposition: fixed;\n\t\tz-index: 10000;\n\t\tinset: 0;\n\t\tdisplay: none;\n\t\t--dialog-width: 360px;\n\t}\n\n\t:host([active]) {\n\t\tdisplay: block;\n\t}\n\n\t.overlay {\n\t\tposition: fixed;\n\t\tinset: 0;\n\t\tbackground: rgba(0, 0, 0, 0.4);\n\t}\n\n\t.dialog {\n\t\tposition: absolute;\n\t\tmax-width: var(--dialog-width);\n\t\twidth: max-content;\n\t\tmax-height: calc(100vh - 40px); /* Prevent exceeding viewport height */\n\t\toverflow: auto; /* Allow scrolling for oversized content */\n\t}\n\n\t/* Used when centered for initial positioning */\n\t.dialog.centered {\n\t\ttop: 50%;\n\t\tleft: 50%;\n\t\ttransform: translate(-50%, -55%); /* Slight upward shift looks better */\n\t}\n`) {\n\t/**\n\t * Dialog title\n\t */\n\t@property({ type: String })\n\ttitle = undefined\n\n\t/**\n\t * Dialog subtitle\n\t */\n\t@property({ type: String })\n\tsubtitle = undefined\n\n\t/**\n\t * Dialog message\n\t */\n\t@property({ type: String })\n\tmessage = undefined\n\n\t/**\n\t * Text for confirm button\n\t */\n\t@property({ type: String, attribute: 'confirm-text' })\n\tconfirmText = 'Confirm'\n\n\t/**\n\t * Text for cancel button\n\t */\n\t@property({ type: String, attribute: 'cancel-text' })\n\tcancelText = 'Cancel'\n\n\t/**\n\t * Dialog variant (affects button colors)\n\t */\n\t@property({ type: String })\n\tvariant: 'default' | 'danger' = 'default'\n\n\t/**\n\t * Current position of the dialog\n\t */\n\tprivate position = { x: 0, y: 0 }\n\n\t/**\n\t * Current active promise resolver\n\t */\n\tprivate resolvePromise?: (value: boolean) => void\n\n\t/**\n\t * Store cleanup function for position auto-updates\n\t */\n\tprivate cleanupAutoUpdate?: () => void\n\n\t/**\n\t * Store resize subscription\n\t */\n\tprivate resizeSubscription?: { unsubscribe: () => void }\n\n\t/**\n\t * Virtual element to use as reference for positioning\n\t */\n\tprivate virtualReference?: {\n\t\tgetBoundingClientRect: () => DOMRect\n\t}\n\n\t/**\n\t * Simple API: Show the dialog at a specific position\n\t * @returns Promise that resolves to true (confirm) or false (cancel)\n\t */\n\tasync show(positionOrEvent?: { x: number; y: number } | MouseEvent | TouchEvent): Promise<boolean> {\n\t\t// Extract position from event or use direct coordinates\n\t\tlet x: number, y: number\n\n\t\tif (!positionOrEvent) {\n\t\t\t// Default to center of viewport if no position provided\n\t\t\tx = window.innerWidth / 2\n\t\t\ty = window.innerHeight / 2\n\t\t} else if ('clientX' in positionOrEvent) {\n\t\t\t// It's a mouse event\n\t\t\tx = positionOrEvent.clientX\n\t\t\ty = positionOrEvent.clientY\n\t\t} else if ('touches' in positionOrEvent && positionOrEvent.touches.length) {\n\t\t\t// It's a touch event\n\t\t\tx = positionOrEvent.touches[0].clientX\n\t\t\ty = positionOrEvent.touches[0].clientY\n\t\t} else {\n\t\t\t// It's a position object with x,y coordinates\n\t\t\tconst pos = positionOrEvent as { x: number; y: number }\n\t\t\tx = pos.x\n\t\t\ty = pos.y\n\t\t}\n\n\t\t// Store initial position\n\t\tthis.position = { x, y }\n\n\t\t// Create virtual reference element at the provided coordinates\n\t\tthis.virtualReference = {\n\t\t\tgetBoundingClientRect() {\n\t\t\t\treturn new DOMRect(x, y, 0, 0)\n\t\t\t},\n\t\t}\n\n\t\t// Make dialog active\n\t\tthis.setAttribute('active', '')\n\n\t\t// Return a promise that resolves when the user makes a choice\n\t\treturn new Promise<boolean>(resolve => {\n\t\t\tthis.resolvePromise = resolve\n\t\t})\n\t}\n\n\t/**\n\t * Simple API: Hide the dialog\n\t */\n\thide(confirmed = false) {\n\t\tthis.removeAttribute('active')\n\n\t\t// Clean up any auto-update subscription\n\t\tif (this.cleanupAutoUpdate) {\n\t\t\tthis.cleanupAutoUpdate()\n\t\t\tthis.cleanupAutoUpdate = undefined\n\t\t}\n\n\t\t// Resolve any pending promise\n\t\tif (this.resolvePromise) {\n\t\t\tthis.resolvePromise(confirmed)\n\t\t\tthis.resolvePromise = undefined\n\t\t}\n\t}\n\n\t/**\n\t * Set up position auto-updating when dialog content changes or window resizes\n\t */\n\tprivate setupPositioning(dialog: HTMLElement) {\n\t\tconst viewportWidth = window.innerWidth\n\t\tconst viewportHeight = window.innerHeight\n\n\t\t// Check if this is a centered dialog\n\t\tconst isCentered =\n\t\t\tMath.abs(this.position.x - viewportWidth / 2) < 10 && Math.abs(this.position.y - viewportHeight / 2) < 10\n\n\t\tif (isCentered) {\n\t\t\t// For centered dialogs, use CSS-based centering\n\t\t\tdialog.classList.add('centered')\n\n\t\t\t// Always set up auto-update for content changes, even for centered dialogs\n\t\t\tthis.cleanupAutoUpdate = autoUpdate(\n\t\t\t\tdocument.body, // Use body as reference for centered dialogs\n\t\t\t\tdialog,\n\t\t\t\t() => {\n\t\t\t\t\t// If dialog has the centered class, ensure it stays visible\n\t\t\t\t\t// even when content changes its dimensions\n\t\t\t\t\tif (dialog.classList.contains('centered')) {\n\t\t\t\t\t\t// Adjust max-height to ensure dialog stays within viewport\n\t\t\t\t\t\tconst availableHeight = window.innerHeight - 40\n\t\t\t\t\t\tif (dialog.offsetHeight > availableHeight) {\n\t\t\t\t\t\t\tdialog.style.maxHeight = `${availableHeight}px`\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\telementResize: true,\n\t\t\t\t\tancestorScroll: true,\n\t\t\t\t},\n\t\t\t)\n\n\t\t\treturn\n\t\t}\n\n\t\t// Remove centered class if it exists\n\t\tdialog.classList.remove('centered')\n\n\t\t// Use Floating UI's autoUpdate to continually update position\n\t\tif (this.virtualReference) {\n\t\t\tthis.cleanupAutoUpdate = autoUpdate(this.virtualReference, dialog, () => this.updatePosition(dialog), {\n\t\t\t\tancestorScroll: true,\n\t\t\t\tancestorResize: true,\n\t\t\t\telementResize: true,\n\t\t\t\tanimationFrame: true, // Enable continuous updates for smoother repositioning\n\t\t\t})\n\n\t\t\t// Initial positioning\n\t\t\tthis.updatePosition(dialog)\n\t\t}\n\t}\n\n\t/**\n\t * Update dialog position using Floating UI\n\t */\n\tprivate async updatePosition(dialog: HTMLElement) {\n\t\tif (!this.virtualReference) return\n\n\t\t// Force window bounds recalculation on resize\n\t\tif (this.position.x > 0 && this.position.y > 0) {\n\t\t\t// Update virtual reference to consider current window size\n\t\t\tconst viewportWidth = window.innerWidth\n\t\t\tconst viewportHeight = window.innerHeight\n\n\t\t\t// Ensure position is constrained to current viewport\n\t\t\tconst x = Math.min(this.position.x, viewportWidth - 20)\n\t\t\tconst y = Math.min(this.position.y, viewportHeight - 20)\n\n\t\t\t// Update virtual reference with current viewport-constrained position\n\t\t\tthis.virtualReference = {\n\t\t\t\tgetBoundingClientRect() {\n\t\t\t\t\treturn new DOMRect(x, y, 0, 0)\n\t\t\t\t},\n\t\t\t}\n\t\t}\n\n\t\tconst placement: Placement = 'bottom-start'\n\t\tconst strategy: Strategy = 'absolute'\n\t\tconst margin = 20 // Standard margin from edges\n\n\t\tconst { x, y } = await computePosition(this.virtualReference, dialog, {\n\t\t\tplacement,\n\t\t\tstrategy,\n\t\t\tmiddleware: [\n\t\t\t\t// Offset from the reference point\n\t\t\t\toffset(margin),\n\n\t\t\t\t// Flip to opposite side if no space\n\t\t\t\tflip({\n\t\t\t\t\tfallbackPlacements: ['top-start', 'bottom-end', 'top-end'],\n\t\t\t\t\tfallbackStrategy: 'bestFit',\n\t\t\t\t}),\n\n\t\t\t\t// Shift along the preferred axis to stay in view\n\t\t\t\tshift({\n\t\t\t\t\tpadding: margin, // Keep margin from viewport edges\n\t\t\t\t}),\n\n\t\t\t\t// Resize dialog if needed\n\t\t\t\tsize({\n\t\t\t\t\tapply({ availableWidth, availableHeight, elements }) {\n\t\t\t\t\t\t// If dialog is wider than available space\n\t\t\t\t\t\tif (elements.floating.offsetWidth > availableWidth) {\n\t\t\t\t\t\t\tObject.assign(elements.floating.style, {\n\t\t\t\t\t\t\t\tmaxWidth: `${Math.max(availableWidth - margin * 2, 280)}px`, // Keep at least 280px if possible\n\t\t\t\t\t\t\t})\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\t// If dialog is taller than available space\n\t\t\t\t\t\tif (elements.floating.offsetHeight > availableHeight) {\n\t\t\t\t\t\t\tObject.assign(elements.floating.style, {\n\t\t\t\t\t\t\t\tmaxHeight: `${availableHeight - margin * 2}px`,\n\t\t\t\t\t\t\t})\n\t\t\t\t\t\t}\n\t\t\t\t\t},\n\t\t\t\t\tpadding: margin, // Keep margin from viewport edges\n\t\t\t\t}),\n\t\t\t],\n\t\t})\n\n\t\t// Apply the computed position\n\t\tObject.assign(dialog.style, {\n\t\t\tleft: `${Math.round(x)}px`,\n\t\t\ttop: `${Math.round(y)}px`,\n\t\t\ttransform: 'none', // Remove any transform that might interfere\n\t\t})\n\t}\n\n\t/**\n\t * Handle component disconnection from DOM\n\t */\n\tdisconnectedCallback() {\n\t\tsuper.disconnectedCallback()\n\n\t\t// Clean up subscriptions\n\t\tif (this.resizeSubscription) {\n\t\t\tthis.resizeSubscription.unsubscribe()\n\t\t\tthis.resizeSubscription = undefined\n\t\t}\n\n\t\tif (this.cleanupAutoUpdate) {\n\t\t\tthis.cleanupAutoUpdate()\n\t\t\tthis.cleanupAutoUpdate = undefined\n\t\t}\n\t}\n\n\t/**\n\t * Handle lifecycle callback when dialog is first rendered\n\t */\n\tfirstUpdated() {\n\t\tconst dialog = this.shadowRoot?.querySelector('.dialog') as HTMLElement\n\t\tif (!dialog) return\n\n\t\t// Set up positioning with Floating UI\n\t\tthis.setupPositioning(dialog)\n\n\t\t// Set up window resize subscription using RxJS with debounce\n\t\tthis.resizeSubscription = fromEvent(window, 'resize')\n\t\t\t.pipe(debounceTime(50)) // Faster response time\n\t\t\t.subscribe(() => {\n\t\t\t\t// Get current viewport dimensions\n\t\t\t\tconst viewportWidth = window.innerWidth\n\t\t\t\tconst viewportHeight = window.innerHeight\n\n\t\t\t\t// If using CSS centered positioning, ensure it stays centered\n\t\t\t\tconst isCentered =\n\t\t\t\t\tMath.abs(this.position.x - viewportWidth / 2) < 10 && Math.abs(this.position.y - viewportHeight / 2) < 10\n\n\t\t\t\tif (isCentered) {\n\t\t\t\t\t// Update position to new center\n\t\t\t\t\tthis.position = {\n\t\t\t\t\t\tx: viewportWidth / 2,\n\t\t\t\t\t\ty: viewportHeight / 2,\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\t// Always update position on resize\n\t\t\t\tthis.updatePosition(dialog)\n\t\t\t})\n\t}\n\n\t/**\n\t * Handle confirm action\n\t */\n\tprivate handleConfirm() {\n\t\tthis.hide(true)\n\t\tthis.dispatchEvent(\n\t\t\tnew CustomEvent('confirm', {\n\t\t\t\tbubbles: true,\n\t\t\t\tcomposed: true,\n\t\t\t}),\n\t\t)\n\t}\n\n\t/**\n\t * Handle cancel action\n\t */\n\tprivate handleCancel() {\n\t\tthis.hide(false)\n\t\tthis.dispatchEvent(\n\t\t\tnew CustomEvent('cancel', {\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\t// For initial rendering, use transform-based centering from CSS\n\t\t// firstUpdated will handle precise positioning after measuring\n\t\tconst hasCustomContent = this.querySelectorAll('[slot=\"content\"]').length > 0\n\t\t// Only show buttons if both confirmText and cancelText are non-empty strings\n\t\tconst showButtons =\n\t\t\tthis.confirmText && this.confirmText.trim() !== '' && this.cancelText && this.cancelText.trim() !== ''\n\n\t\treturn html`\n\t\t\t<div class=\"overlay\" @click=${this.handleCancel}></div>\n\n\t\t\t<div class=\"dialog\" role=\"alertdialog\" aria-modal=\"true\">\n\t\t\t\t<schmancy-surface rounded=\"all\" elevation=\"3\" type=\"containerHigh\">\n\t\t\t\t\t<schmancy-form @submit=${this.handleConfirm} class=\"p-4\">\n\t\t\t\t\t\t${when(\n\t\t\t\t\t\t\tthis.title && this.title.trim() !== '',\n\t\t\t\t\t\t\t() => html`\n\t\t\t\t\t\t\t\t<schmancy-typography type=\"title\" token=\"md\" class=\"mb-1\"> ${this.title} </schmancy-typography>\n\t\t\t\t\t\t\t\t${when(\n\t\t\t\t\t\t\t\t\tthis.subtitle && this.subtitle.trim() !== '',\n\t\t\t\t\t\t\t\t\t() => html`\n\t\t\t\t\t\t\t\t\t\t<schmancy-typography type=\"subtitle\" token=\"xs\" class=\"mb-2\">\n\t\t\t\t\t\t\t\t\t\t\t${this.subtitle}\n\t\t\t\t\t\t\t\t\t\t</schmancy-typography>\n\t\t\t\t\t\t\t\t\t`,\n\t\t\t\t\t\t\t\t\t() => html``\n\t\t\t\t\t\t\t\t)}\n\t\t\t\t\t\t\t`,\n\t\t\t\t\t\t)}\n\t\t\t\t\t\t${hasCustomContent\n\t\t\t\t\t\t\t? html`<div class=\"${showButtons ? 'mb-4' : ''}\"><slot name=\"content\"></slot></div>`\n\t\t\t\t\t\t\t: when(\n\t\t\t\t\t\t\t\t\tthis.message && this.message.trim() !== '',\n\t\t\t\t\t\t\t\t\t() => html`<schmancy-typography type=\"body\" class=\"mb-4\"> ${this.message} </schmancy-typography>`,\n\t\t\t\t\t\t\t\t)}\n\t\t\t\t\t\t${when(\n\t\t\t\t\t\t\tshowButtons,\n\t\t\t\t\t\t\t() => html`\n\t\t\t\t\t\t\t\t<div class=\"flex justify-end gap-3\">\n\t\t\t\t\t\t\t\t\t<schmancy-button variant=\"outlined\" @click=${this.handleCancel}> ${this.cancelText} </schmancy-button>\n\t\t\t\t\t\t\t\t\t<schmancy-button type=\"submit\" variant=\"filled\"> ${this.confirmText} </schmancy-button>\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t`,\n\t\t\t\t\t\t)}\n\t\t\t\t\t</schmancy-form>\n\t\t\t\t</schmancy-surface>\n\t\t\t</div>\n\t\t`\n\t}\n\n\t/**\n\t * Static helper for even simpler API\n\t */\n\tstatic async confirm(options: {\n\t\ttitle?: string\n\t\tsubtitle?: string\n\t\tmessage?: string\n\t\tconfirmText?: string\n\t\tcancelText?: string\n\t\tvariant?: 'default' | 'danger'\n\t\tposition?: { x: number; y: number } | MouseEvent | TouchEvent\n\t\twidth?: string\n\t}): Promise<boolean> {\n\t\t// Create dialog if it doesn't exist\n\t\tlet dialog = document.querySelector('confirm-dialog') as ConfirmDialog\n\n\t\tif (!dialog) {\n\t\t\tdialog = document.createElement('confirm-dialog') as ConfirmDialog\n\t\t\tdocument.body.appendChild(dialog)\n\t\t}\n\n\t\t// Set options\n\t\tif (options.title) dialog.title = options.title\n\t\tif (options.subtitle) dialog.subtitle = options.subtitle\n\t\tif (options.message) dialog.message = options.message\n\t\tif (options.confirmText) dialog.confirmText = options.confirmText\n\t\tif (options.cancelText) dialog.cancelText = options.cancelText\n\t\tif (options.variant) dialog.variant = options.variant\n\t\tif (options.width) dialog.style.setProperty('--dialog-width', options.width)\n\n\t\t// Show dialog and return promise\n\t\treturn dialog.show(options.position)\n\t}\n\n\t/**\n\t * Even simpler shorthand method - just pass message and optionally an event\n\t */\n\tstatic async ask(message: string, event?: MouseEvent | TouchEvent): Promise<boolean> {\n\t\treturn this.confirm({\n\t\t\tmessage,\n\t\t\tposition: event,\n\t\t})\n\t}\n}\n\ndeclare global {\n\tinterface HTMLElementTagNameMap {\n\t\t'confirm-dialog': ConfirmDialog\n\t}\n}\n","import { render, TemplateResult } from 'lit'\nimport { ConfirmDialog } from './dailog'\n\n/**\n * Dialog service options interface with component support\n */\nexport interface DialogOptions {\n\ttitle?: string\n\tsubtitle?: string\n\tmessage?: string\n\tconfirmText?: string\n\tcancelText?: string\n\tvariant?: 'default' | 'danger'\n\tposition?: { x: number; y: number } | MouseEvent | TouchEvent\n\n\t// New options for component rendering\n\tcontent?: TemplateResult | HTMLElement | (() => HTMLElement | TemplateResult)\n\twidth?: string\n\tonConfirm?: () => void\n\tonCancel?: () => void\n\thideActions?: boolean // Set to true to hide all buttons and title\n}\n\n/**\n * Dialog service for centralized dialog management.\n * Provides a simple API for showing dialogs with optional custom components.\n */\nexport class DialogService {\n\tprivate static instance: DialogService\n\n\t// Default dialog options\n\tprivate static DEFAULT_OPTIONS: Partial<DialogOptions> = {\n\t\ttitle: undefined,\n\t\tsubtitle: undefined,\n\t\tconfirmText: undefined,\n\t\tcancelText: 'Cancel',\n\t\tvariant: 'default',\n\t\twidth: '360px',\n\t}\n\n\t// Track active dialogs to handle dismissing the most recent one\n\tprivate activeDialogs: ConfirmDialog[] = []\n\t\n\t// Track component dialogs (schmancy-dialog instances)\n\tprivate activeRawDialogs: any[] = []\n\n\t// Private constructor for singleton pattern\n\tprivate constructor() {}\n\n\t/**\n\t * Get the singleton instance\n\t */\n\tpublic static getInstance(): DialogService {\n\t\tif (!DialogService.instance) {\n\t\t\tDialogService.instance = new DialogService()\n\t\t}\n\t\treturn DialogService.instance\n\t}\n\n\t/**\n\t * Show a confirmation dialog\n\t * @returns Promise that resolves to true (confirm) or false (cancel)\n\t */\n\tpublic confirm(options: DialogOptions): Promise<boolean> {\n\t\t// Apply default options\n\t\tconst completeOptions = {\n\t\t\t...DialogService.DEFAULT_OPTIONS,\n\t\t\t...options,\n\t\t}\n\n\t\t// If no position is provided, center the dialog\n\t\tif (!completeOptions.position) {\n\t\t\tcompleteOptions.position = this.getCenteredPosition()\n\t\t}\n\n\t\t// Create or find the dialog\n\t\tlet dialog = document.querySelector('confirm-dialog') as ConfirmDialog\n\t\tif (!dialog) {\n\t\t\tdialog = document.createElement('confirm-dialog') as ConfirmDialog\n\t\t\tdocument.body.appendChild(dialog)\n\t\t}\n\n\t\t// Set basic options\n\t\tif (completeOptions.title) dialog.title = completeOptions.title\n\t\tif (completeOptions.subtitle) dialog.subtitle = completeOptions.subtitle\n\t\tif (completeOptions.message) dialog.message = completeOptions.message\n\t\tif (completeOptions.confirmText) dialog.confirmText = completeOptions.confirmText\n\t\tif (completeOptions.cancelText) dialog.cancelText = completeOptions.cancelText\n\t\tif (completeOptions.variant) dialog.variant = completeOptions.variant\n\t\tif (completeOptions.width) dialog.style.setProperty('--dialog-width', completeOptions.width)\n\n\t\t// Handle custom content if provided\n\t\tif (completeOptions.content) {\n\t\t\tconst contentContainer = document.createElement('div')\n\t\t\tcontentContainer.slot = 'content'\n\n\t\t\tif (typeof completeOptions.content === 'function') {\n\t\t\t\tconst result = completeOptions.content()\n\t\t\t\tif (result instanceof HTMLElement) {\n\t\t\t\t\tcontentContainer.appendChild(result)\n\t\t\t\t} else {\n\t\t\t\t\trender(result, contentContainer)\n\t\t\t\t}\n\t\t\t} else if (completeOptions.content instanceof HTMLElement) {\n\t\t\t\tcontentContainer.appendChild(completeOptions.content)\n\t\t\t} else {\n\t\t\t\trender(completeOptions.content, contentContainer)\n\t\t\t}\n\n\t\t\tdialog.appendChild(contentContainer)\n\t\t}\n\n\t\t// Set up event listeners for optional callbacks\n\t\tif (completeOptions.onConfirm) {\n\t\t\tconst onConfirm = (_e: Event) => {\n\t\t\t\tcompleteOptions.onConfirm!()\n\t\t\t\tdialog.removeEventListener('confirm', onConfirm)\n\t\t\t}\n\t\t\tdialog.addEventListener('confirm', onConfirm)\n\t\t}\n\n\t\tif (completeOptions.onCancel) {\n\t\t\tconst onCancel = (_e: Event) => {\n\t\t\t\tcompleteOptions.onCancel!()\n\t\t\t\tdialog.removeEventListener('cancel', onCancel)\n\t\t\t}\n\t\t\tdialog.addEventListener('cancel', onCancel)\n\t\t}\n\n\t\t// Add this dialog to active dialogs\n\t\tthis.activeDialogs.push(dialog)\n\n\t\t// Show dialog and return promise\n\t\treturn dialog.show(completeOptions.position).finally(() => {\n\t\t\t// Remove from active dialogs when closed\n\t\t\tconst index = this.activeDialogs.indexOf(dialog)\n\t\t\tif (index !== -1) {\n\t\t\t\tthis.activeDialogs.splice(index, 1)\n\t\t\t}\n\n\t\t\t// Clean up the content when dialog closes\n\t\t\tif (completeOptions.content) {\n\t\t\t\tconst contentEl = dialog.querySelector('[slot=\"content\"]')\n\t\t\t\tif (contentEl) {\n\t\t\t\t\tdialog.removeChild(contentEl)\n\t\t\t\t}\n\t\t\t}\n\t\t})\n\t}\n\n\t/**\n\t * Show a dialog with custom component content\n\t * Always renders content directly without any headers or action buttons\n\t * @returns Promise that resolves when dialog is closed\n\t */\n\tpublic component(\n\t\tcontent: TemplateResult | HTMLElement | (() => HTMLElement | TemplateResult),\n\t\toptions: Omit<DialogOptions, 'content' | 'message'> = {},\n\t): Promise<boolean> {\n\t\t// Create a direct container for the component without any wrapping\n\t\tconst directContentContainer = document.createElement('div');\n\t\tdirectContentContainer.style.height = '100%';\n\t\tdirectContentContainer.style.width = '100%';\n\t\tdirectContentContainer.classList.add('schmancy-dialog-content-container');\n\t\t\n\t\t// Render the content directly\n\t\tif (typeof content === 'function') {\n\t\t\tconst result = content();\n\t\t\tif (result instanceof HTMLElement) {\n\t\t\t\tdirectContentContainer.appendChild(result);\n\t\t\t} else {\n\t\t\t\trender(result, directContentContainer);\n\t\t\t}\n\t\t} else if (content instanceof HTMLElement) {\n\t\t\tdirectContentContainer.appendChild(content);\n\t\t} else {\n\t\t\trender(content, directContentContainer);\n\t\t}\n\t\t\n\t\t// Create dialog if it doesn't exist\n\t\tlet dialog = document.querySelector('schmancy-dialog') as any;\n\t\tif (!dialog) {\n\t\t\tdialog = document.createElement('schmancy-dialog');\n\t\t\tdocument.body.appendChild(dialog);\n\t\t}\n\t\t\n\t\t// Always use raw component rendering with no actions\n\t\tdialog.appendChild(directContentContainer);\n\t\t\n\t\t// Set width from options\n\t\tif (options.width) {\n\t\t\tdialog.style.setProperty('--dialog-width', options.width);\n\t\t}\n\t\t\n\t\t// Add to active raw dialogs for dismiss functionality\n\t\tthis.activeRawDialogs.push(dialog);\n\t\t\n\t\t// Show dialog and return promise with cleanup\n\t\tconst promise = dialog.show(options.position);\n\t\treturn promise.finally(() => {\n\t\t\t// Clean up content when dialog closes\n\t\t\tif (directContentContainer && directContentContainer.parentNode) {\n\t\t\t\tdirectContentContainer.parentNode.removeChild(directContentContainer);\n\t\t\t}\n\t\t\t\n\t\t\t// Remove from active raw dialogs\n\t\t\tconst index = this.activeRawDialogs.indexOf(dialog);\n\t\t\tif (index !== -1) {\n\t\t\t\tthis.activeRawDialogs.splice(index, 1);\n\t\t\t}\n\t\t});\n\t}\n\n\t/**\n\t * Dismiss the most recently opened dialog (either confirm or component type)\n\t * @returns true if a dialog was dismissed, false if no dialogs were open\n\t */\n\tpublic dismiss(): boolean {\n\t\t// Try component dialog first (they're more likely to be on top)\n\t\tif (this.activeRawDialogs.length > 0) {\n\t\t\t// Get the most recently opened raw dialog (last in the array)\n\t\t\tconst dialog = this.activeRawDialogs[this.activeRawDialogs.length - 1];\n\t\t\t\n\t\t\t// Hide the dialog\n\t\t\tdialog.hide(false);\n\t\t\t\n\t\t\t// Remove from active dialogs\n\t\t\tthis.activeRawDialogs.pop();\n\t\t\t\n\t\t\treturn true;\n\t\t}\n\t\t\n\t\t// Fall back to confirm dialogs\n\t\tif (this.activeDialogs.length > 0) {\n\t\t\t// Get the most recently opened dialog (last in the array)\n\t\t\tconst dialog = this.activeDialogs[this.activeDialogs.length - 1];\n\t\t\t\n\t\t\t// Hide the dialog (with cancel result)\n\t\t\tdialog.hide(false);\n\t\t\t\n\t\t\treturn true;\n\t\t}\n\n\t\treturn false;\n\t}\n\n\t/**\n\t * Show a simple confirmation dialog with just a message\n\t * @returns Promise that resolves to true (confirm) or false (cancel)\n\t */\n\tpublic ask(message: string, event?: MouseEvent | TouchEvent): Promise<boolean> {\n\t\treturn this.confirm({\n\t\t\tmessage,\n\t\t\tposition: event,\n\t\t})\n\t}\n\n\t/**\n\t * Show a danger confirmation dialog\n\t * @returns Promise that resolves to true (confirm) or false (cancel)\n\t */\n\tpublic danger(options: Omit<DialogOptions, 'variant'>): Promise<boolean> {\n\t\treturn this.confirm({\n\t\t\t...options,\n\t\t\tvariant: 'danger',\n\t\t})\n\t}\n\n\t/**\n\t * Get a centered position for the dialog\n\t */\n\tprivate getCenteredPosition(): { x: number; y: number } {\n\t\treturn {\n\t\t\tx: window.innerWidth / 2,\n\t\t\ty: window.innerHeight / 2,\n\t\t}\n\t}\n\n}\n\n/**\n * Global dialog utility - provides a quick way to show dialogs\n */\nexport const $dialog = {\n\t/**\n\t * Show a confirmation dialog\n\t * @returns Promise that resolves to true (confirm) or false (cancel)\n\t */\n\tconfirm: (options: DialogOptions): Promise<boolean> => {\n\t\treturn DialogService.getInstance().confirm(options)\n\t},\n\n\t/**\n\t * Show a simple confirmation dialog with just a message\n\t * @returns Promise that resolves to true (confirm) or false (cancel)\n\t */\n\task: (message: string, event?: MouseEvent | TouchEvent): Promise<boolean> => {\n\t\treturn DialogService.getInstance().ask(message, event)\n\t},\n\n\t/**\n\t * Show a danger confirmation dialog\n\t * @returns Promise that resolves to true (confirm) or false (cancel)\n\t */\n\tdanger: (options: Omit<DialogOptions, 'variant'>): Promise<boolean> => {\n\t\treturn DialogService.getInstance().danger(options)\n\t},\n\n\t/**\n\t * Show a dialog with custom component content\n\t * @returns Promise that resolves when dialog is closed\n\t */\n\tcomponent: (\n\t\tcontent: TemplateResult | HTMLElement | (() => HTMLElement | TemplateResult),\n\t\toptions?: Omit<DialogOptions, 'content' | 'message'>,\n\t): Promise<boolean> => {\n\t\treturn DialogService.getInstance().component(content, options)\n\t},\n\n\t/**\n\t * Show a simple dialog without title or actions, just content\n\t * This is an alias for component() since all component dialogs are now simple by design\n\t * @returns Promise that resolves when dialog is closed\n\t */\n\tsimple: (\n\t\tcontent: TemplateResult | HTMLElement | (() => HTMLElement | TemplateResult),\n\t\toptions?: Omit<DialogOptions, 'content' | 'message' | 'title' | 'confirmText' | 'cancelText'>,\n\t): Promise<boolean> => {\n\t\treturn DialogService.getInstance().component(content, options)\n\t},\n\n\t/**\n\t * Dismiss the most recently opened dialog\n\t * @returns true if a dialog was dismissed, false if no dialogs were open\n\t */\n\tdismiss: (): boolean => {\n\t\treturn DialogService.getInstance().dismiss()\n\t},\n}\n\nexport default DialogService","import { autoUpdate, computePosition, flip, offset, Placement, shift, size, Strategy } from '@floating-ui/dom'\nimport { $LitElement } from '@mixins/index'\nimport { css, html } from 'lit'\nimport { customElement } from 'lit/decorators.js'\nimport { fromEvent } from 'rxjs'\nimport { debounceTime } from 'rxjs/operators'\n\n/**\n * A basic dialog web component without title or actions\n *\n * @element schmancy-dialog\n * @slot default - Content slot for dialog body\n */\n@customElement('schmancy-dialog')\nexport class SchmancyDialog extends $LitElement(css`\n\t:host {\n\t\tposition: fixed;\n\t\tz-index: 10000;\n\t\tinset: 0;\n\t\tdisplay: none;\n\t\t--dialog-width: 360px;\n\t}\n\n\t:host([active]) {\n\t\tdisplay: block;\n\t}\n\n\t.overlay {\n\t\tposition: fixed;\n\t\tinset: 0;\n\t\tbackground: rgba(0, 0, 0, 0.4);\n\t}\n\n\t.dialog {\n\t\tposition: absolute;\n\t\tmax-width: var(--dialog-width);\n\t\twidth: max-content;\n\t\tmax-height: calc(100vh - 40px); /* Prevent exceeding viewport height */\n\t\toverflow: auto; /* Allow scrolling for oversized content */\n\t}\n\n\t/* Used when centered for initial positioning */\n\t.dialog.centered {\n\t\ttop: 50%;\n\t\tleft: 50%;\n\t\ttransform: translate(-50%, -55%); /* Slight upward shift looks better */\n\t}\n`) {\n\t/**\n\t * Current position of the dialog\n\t */\n\tprivate position = { x: 0, y: 0 }\n\n\t/**\n\t * Current active promise resolver\n\t */\n\tprivate resolvePromise?: (value: boolean) => void\n\n\t/**\n\t * Store cleanup function for position auto-updates\n\t */\n\tprivate cleanupAutoUpdate?: () => void\n\n\t/**\n\t * Virtual element to use as reference for positioning\n\t */\n\tprivate virtualReference?: {\n\t\tgetBoundingClientRect: () => DOMRect\n\t}\n\n\t/**\n\t * Simple API: Show the dialog at a specific position\n\t * @returns Promise that resolves when dialog is closed\n\t */\n\tasync show(positionOrEvent?: { x: number; y: number } | MouseEvent | TouchEvent): Promise<boolean> {\n\t\t// Extract position from event or use direct coordinates\n\t\tlet x: number, y: number\n\n\t\tif (!positionOrEvent) {\n\t\t\t// Default to center of viewport if no position provided\n\t\t\tx = window.innerWidth / 2\n\t\t\ty = window.innerHeight / 2\n\t\t} else if ('clientX' in positionOrEvent) {\n\t\t\t// It's a mouse event\n\t\t\tx = positionOrEvent.clientX\n\t\t\ty = positionOrEvent.clientY\n\t\t} else if ('touches' in positionOrEvent && positionOrEvent.touches.length) {\n\t\t\t// It's a touch event\n\t\t\tx = positionOrEvent.touches[0].clientX\n\t\t\ty = positionOrEvent.touches[0].clientY\n\t\t} else {\n\t\t\t// It's a position object with x,y coordinates\n\t\t\tconst pos = positionOrEvent as { x: number; y: number }\n\t\t\tx = pos.x\n\t\t\ty = pos.y\n\t\t}\n\n\t\t// Store initial position\n\t\tthis.position = { x, y }\n\n\t\t// Create virtual reference element at the provided coordinates\n\t\tthis.virtualReference = {\n\t\t\tgetBoundingClientRect() {\n\t\t\t\treturn new DOMRect(x, y, 0, 0)\n\t\t\t},\n\t\t}\n\n\t\t// Make dialog active\n\t\tthis.setAttribute('active', '')\n\n\t\t// Return a promise that resolves when the user makes a choice\n\t\treturn new Promise<boolean>(resolve => {\n\t\t\tthis.resolvePromise = resolve\n\t\t})\n\t}\n\n\t/**\n\t * Simple API: Hide the dialog\n\t */\n\thide(result = false) {\n\t\tthis.removeAttribute('active')\n\n\t\t// Clean up any auto-update subscription\n\t\tif (this.cleanupAutoUpdate) {\n\t\t\tthis.cleanupAutoUpdate()\n\t\t\tthis.cleanupAutoUpdate = undefined\n\t\t}\n\n\t\t// Resolve any pending promise\n\t\tif (this.resolvePromise) {\n\t\t\tthis.resolvePromise(result)\n\t\t\tthis.resolvePromise = undefined\n\t\t}\n\t}\n\n\t/**\n\t * Set up position auto-updating when dialog content changes or window resizes\n\t */\n\tprivate setupPositioning(dialog: HTMLElement) {\n\t\tconst viewportWidth = window.innerWidth\n\t\tconst viewportHeight = window.innerHeight\n\n\t\t// Check if this is a centered dialog\n\t\tconst isCentered =\n\t\t\tMath.abs(this.position.x - viewportWidth / 2) < 10 && Math.abs(this.position.y - viewportHeight / 2) < 10\n\n\t\tif (isCentered) {\n\t\t\t// For centered dialogs, use CSS-based centering\n\t\t\tdialog.classList.add('centered')\n\n\t\t\t// Always set up auto-update for content changes, even for centered dialogs\n\t\t\tthis.cleanupAutoUpdate = autoUpdate(\n\t\t\t\tdocument.body, // Use body as reference for centered dialogs\n\t\t\t\tdialog,\n\t\t\t\t() => {\n\t\t\t\t\t// If dialog has the centered class, ensure it stays visible\n\t\t\t\t\t// even when content changes its dimensions\n\t\t\t\t\tif (dialog.classList.contains('centered')) {\n\t\t\t\t\t\t// Adjust max-height to ensure dialog stays within viewport\n\t\t\t\t\t\tconst availableHeight = window.innerHeight - 40\n\t\t\t\t\t\tif (dialog.offsetHeight > availableHeight) {\n\t\t\t\t\t\t\tdialog.style.maxHeight = `${availableHeight}px`\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\telementResize: true,\n\t\t\t\t\tancestorScroll: true,\n\t\t\t\t},\n\t\t\t)\n\n\t\t\treturn\n\t\t}\n\n\t\t// Remove centered class if it exists\n\t\tdialog.classList.remove('centered')\n\n\t\t// Use Floating UI's autoUpdate to continually update position\n\t\tif (this.virtualReference) {\n\t\t\tthis.cleanupAutoUpdate = autoUpdate(this.virtualReference, dialog, () => this.updatePosition(dialog), {\n\t\t\t\tancestorScroll: true,\n\t\t\t\tancestorResize: true,\n\t\t\t\telementResize: true,\n\t\t\t\tanimationFrame: true, // Enable continuous updates for smoother repositioning\n\t\t\t})\n\n\t\t\t// Initial positioning\n\t\t\tthis.updatePosition(dialog)\n\t\t}\n\t}\n\n\t/**\n\t * Update dialog position using Floating UI\n\t */\n\tprivate async updatePosition(dialog: HTMLElement) {\n\t\tif (!this.virtualReference) return\n\n\t\t// Force window bounds recalculation on resize\n\t\tif (this.position.x > 0 && this.position.y > 0) {\n\t\t\t// Update virtual reference to consider current window size\n\t\t\tconst viewportWidth = window.innerWidth\n\t\t\tconst viewportHeight = window.innerHeight\n\n\t\t\t// Ensure position is constrained to current viewport\n\t\t\tconst x = Math.min(this.position.x, viewportWidth - 20)\n\t\t\tconst y = Math.min(this.position.y, viewportHeight - 20)\n\n\t\t\t// Update virtual reference with current viewport-constrained position\n\t\t\tthis.virtualReference = {\n\t\t\t\tgetBoundingClientRect() {\n\t\t\t\t\treturn new DOMRect(x, y, 0, 0)\n\t\t\t\t},\n\t\t\t}\n\t\t}\n\n\t\tconst placement: Placement = 'bottom-start'\n\t\tconst strategy: Strategy = 'absolute'\n\t\tconst margin = 20 // Standard margin from edges\n\n\t\tconst { x, y } = await computePosition(this.virtualReference, dialog, {\n\t\t\tplacement,\n\t\t\tstrategy,\n\t\t\tmiddleware: [\n\t\t\t\t// Offset from the reference point\n\t\t\t\toffset(margin),\n\n\t\t\t\t// Flip to opposite side if no space\n\t\t\t\tflip({\n\t\t\t\t\tfallbackPlacements: ['top-start', 'bottom-end', 'top-end'],\n\t\t\t\t\tfallbackStrategy: 'bestFit',\n\t\t\t\t}),\n\n\t\t\t\t// Shift along the preferred axis to stay in view\n\t\t\t\tshift({\n\t\t\t\t\tpadding: margin, // Keep margin from viewport edges\n\t\t\t\t}),\n\n\t\t\t\t// Resize dialog if needed\n\t\t\t\tsize({\n\t\t\t\t\tapply({ availableWidth, availableHeight, elements }) {\n\t\t\t\t\t\t// If dialog is wider than available space\n\t\t\t\t\t\tif (elements.floating.offsetWidth > availableWidth) {\n\t\t\t\t\t\t\tObject.assign(elements.floating.style, {\n\t\t\t\t\t\t\t\tmaxWidth: `${Math.max(availableWidth - margin * 2, 280)}px`, // Keep at least 280px if possible\n\t\t\t\t\t\t\t})\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\t// If dialog is taller than available space\n\t\t\t\t\t\tif (elements.floating.offsetHeight > availableHeight) {\n\t\t\t\t\t\t\tObject.assign(elements.floating.style, {\n\t\t\t\t\t\t\t\tmaxHeight: `${availableHeight - margin * 2}px`,\n\t\t\t\t\t\t\t})\n\t\t\t\t\t\t}\n\t\t\t\t\t},\n\t\t\t\t\tpadding: margin, // Keep margin from viewport edges\n\t\t\t\t}),\n\t\t\t],\n\t\t})\n\n\t\t// Apply the computed position\n\t\tObject.assign(dialog.style, {\n\t\t\tleft: `${Math.round(x)}px`,\n\t\t\ttop: `${Math.round(y)}px`,\n\t\t\ttransform: 'none', // Remove any transform that might interfere\n\t\t})\n\t}\n\n\t// Store resize subscription\n\tprivate resizeSubscription?: { unsubscribe: () => void }\n\n\t/**\n\t * Handle component disconnection from DOM\n\t */\n\tdisconnectedCallback() {\n\t\tsuper.disconnectedCallback()\n\n\t\t// Clean up subscriptions\n\t\tif (this.resizeSubscription) {\n\t\t\tthis.resizeSubscription.unsubscribe()\n\t\t\tthis.resizeSubscription = undefined\n\t\t}\n\n\t\tif (this.cleanupAutoUpdate) {\n\t\t\tthis.cleanupAutoUpdate()\n\t\t\tthis.cleanupAutoUpdate = undefined\n\t\t}\n\t}\n\n\t/**\n\t * Handle lifecycle callback when dialog is first rendered\n\t */\n\tfirstUpdated() {\n\t\tconst dialog = this.shadowRoot?.querySelector('.dialog') as HTMLElement\n\t\tif (!dialog) return\n\n\t\t// Set up positioning with Floating UI\n\t\tthis.setupPositioning(dialog)\n\n\t\t// Set up window resize subscription using RxJS with debounce\n\t\tthis.resizeSubscription = fromEvent(window, 'resize')\n\t\t\t.pipe(debounceTime(50)) // Faster response time\n\t\t\t.subscribe(() => {\n\t\t\t\t// Get current viewport dimensions\n\t\t\t\tconst viewportWidth = window.innerWidth\n\t\t\t\tconst viewportHeight = window.innerHeight\n\n\t\t\t\t// If using CSS centered positioning, ensure it stays centered\n\t\t\t\tconst isCentered =\n\t\t\t\t\tMath.abs(this.position.x - viewportWidth / 2) < 10 && Math.abs(this.position.y - viewportHeight / 2) < 10\n\n\t\t\t\tif (isCentered) {\n\t\t\t\t\t// Update position to new center\n\t\t\t\t\tthis.position = {\n\t\t\t\t\t\tx: viewportWidth / 2,\n\t\t\t\t\t\ty: viewportHeight / 2,\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\t// Always update position on resize\n\t\t\t\tthis.updatePosition(dialog)\n\t\t\t})\n\t}\n\n\t/**\n\t * Handle close action\n\t */\n\tprivate handleClose() {\n\t\tthis.hide(false)\n\t\tthis.dispatchEvent(\n\t\t\tnew CustomEvent('close', {\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 class=\"overlay\" @click=${this.handleClose}></div>\n\n\t\t\t<div class=\"dialog\" role=\"dialog\" aria-modal=\"true\">\n\t\t\t\t<schmancy-surface rounded=\"all\" elevation=\"3\" type=\"containerHigh\">\n\t\t\t\t\t<slot></slot>\n\t\t\t\t</schmancy-surface>\n\t\t\t</div>\n\t\t`\n\t}\n}\n\ndeclare global {\n\tinterface HTMLElementTagNameMap {\n\t\t'schmancy-dialog': SchmancyDialog\n\t}\n}\n","import { $LitElement } from '@mixins/index'\nimport { css, html } from 'lit'\nimport { customElement } from 'lit/decorators.js'\n\n/**\n * A basic dialog content component that doesn't add any padding or styling\n * Used for rendering raw content in a dialog\n *\n * @element schmancy-dialog-content\n * @slot default - Content slot for dialog content without any styling\n */\n@customElement('schmancy-dialog-content')\nexport class SchmancyDialogContent extends $LitElement(css`\n :host {\n display: block;\n width: 100%;\n height: 100%;\n }\n`) {\n render() {\n return html`<slot></slot>`\n }\n}\n\ndeclare global {\n interface HTMLElementTagNameMap {\n 'schmancy-dialog-content': SchmancyDialogContent\n }\n}"],"names":["ConfirmDialog","$LitElement","css","constructor","super","arguments","this","title","subtitle","message","confirmText","cancelText","variant","position","x","y","show","positionOrEvent","clientX","clientY","touches","length","pos","window","innerWidth","innerHeight","virtualReference","getBoundingClientRect","DOMRect","setAttribute","Promise","resolve","resolvePromise","confirmed","removeAttribute","cleanupAutoUpdate","dialog","viewportWidth","viewportHeight","Math","abs","classList","add","autoUpdate","document","body","contains","availableHeight","offsetHeight","style","maxHeight","elementResize","ancestorScroll","remove","updatePosition","ancestorResize","animationFrame","min","computePosition","placement","strategy","middleware","offset","flip","fallbackPlacements","fallbackStrategy","shift","padding","size","apply","availableWidth","elements","floating","offsetWidth","Object","assign","maxWidth","max","margin","left","round","top","transform","disconnectedCallback","resizeSubscription","unsubscribe","firstUpdated","shadowRoot","querySelector","setupPositioning","fromEvent","pipe","debounceTime","subscribe","hide","dispatchEvent","CustomEvent","bubbles","composed","hasCustomContent","querySelectorAll","showButtons","trim","html","handleCancel","handleConfirm","when","confirm","options","createElement","appendChild","width","setProperty","event","__decorateClass","property","type","String","prototype","attribute","customElement","DialogService","activeDialogs","activeRawDialogs","getInstance","instance","completeOptions","DEFAULT_OPTIONS","getCenteredPosition","content","contentContainer","slot","result","HTMLElement","render","onConfirm","_e","removeEventListener","addEventListener","onCancel","push","finally","index","indexOf","splice","contentEl","removeChild","directContentContainer","height","parentNode","dismiss","pop","_v","$dialog","ask","danger","component","simple","SchmancyDialog","handleClose","SchmancyDialogContent"],"mappings":";;;;;;;;;;;;;;AAea,IAAAA,IAAN,cAA4BC,EAAYC;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;EAAxC,cAAAC;AAAAC,UAAAC,GAAAA,SAAAA,GAsCEC,KAAAC,QAAAA,QAMGD,KAAAE,WAAA,QAMDF,KAAAG,UAAAA,QAMIH,KAAAI,cAAA,WAMDJ,KAAAK,aAAA,UAMmBL,KAAAM,UAAA,WAKhCN,KAAQO,WAAW,EAAEC,GAAG,GAAGC,GAAG,EAAE;AAAA,EAAA;AAAA,EA4BhC,MAAMC,KAAKC,GAEV;AAAA,QAAIH,GAAWC;AAEf,QAAKE,EAIL,KAAW,aAAaA,EAEvBH,KAAIG,EAAgBC,SACpBH,IAAIE,EAAgBE;AAAAA,aACV,aAAaF,KAAmBA,EAAgBG,QAAQC,OAE9DP,KAAAG,EAAgBG,QAAQ,CAAGF,EAAAA,SAC3BH,IAAAE,EAAgBG,QAAQ,CAAA,EAAGD;AAAAA,SACzB;AAEN,YAAMG,IAAML;AACZH,UAAIQ,EAAIR,GACRC,IAAIO,EAAIP;AAAAA,IAAA;AAAA,QAdRD,KAAIS,OAAOC,aAAa,GACxBT,IAAIQ,OAAOE,cAAc;AA8BnB,WAbFnB,KAAAO,WAAW,EAAEC,GAAGC,GAAAA,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