@mhmo91/schmancy 0.4.35 → 0.4.36
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/ai/badge.md +70 -62
- package/ai/form.md +10 -10
- package/ai/input.md +4 -4
- package/dist/ai/badge.md +70 -62
- package/dist/ai/form.md +10 -10
- package/dist/ai/input.md +4 -4
- package/dist/{animated-text-CYmUxmlv.cjs → animated-text-BDl61lcE.cjs} +2 -2
- package/dist/{animated-text-CYmUxmlv.cjs.map → animated-text-BDl61lcE.cjs.map} +1 -1
- package/dist/{animated-text-AbNgT7ie.js → animated-text-BtDJWgrr.js} +3 -3
- package/dist/{animated-text-AbNgT7ie.js.map → animated-text-BtDJWgrr.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-BxrgxiLv.js → area.component-CYttliWA.js} +3 -3
- package/dist/{area.component-BxrgxiLv.js.map → area.component-CYttliWA.js.map} +1 -1
- package/dist/{area.component-B1Lmmsuk.cjs → area.component-Dy1q15W1.cjs} +2 -2
- package/dist/{area.component-B1Lmmsuk.cjs.map → area.component-Dy1q15W1.cjs.map} +1 -1
- package/dist/area.js +1 -1
- package/dist/{autocomplete-C8nrKQgY.cjs → autocomplete-BPnLYwJ4.cjs} +2 -2
- package/dist/{autocomplete-C8nrKQgY.cjs.map → autocomplete-BPnLYwJ4.cjs.map} +1 -1
- package/dist/{autocomplete-BQ5Ss2om.js → autocomplete-Cb6hDFh1.js} +3 -3
- package/dist/{autocomplete-BQ5Ss2om.js.map → autocomplete-Cb6hDFh1.js.map} +1 -1
- package/dist/autocomplete.cjs +1 -1
- package/dist/autocomplete.js +1 -1
- package/dist/{avatar-DAs-uNIM.js → avatar-CaLFYyIO.js} +160 -156
- package/dist/avatar-CaLFYyIO.js.map +1 -0
- package/dist/{avatar-CDZIGEvK.cjs → avatar-Dky6l3b2.cjs} +14 -14
- package/dist/avatar-Dky6l3b2.cjs.map +1 -0
- package/dist/badge.cjs +1 -1
- package/dist/badge.js +3 -2
- package/dist/{boat--6fKaS1r.cjs → boat-BhprqJbv.cjs} +2 -2
- package/dist/{boat--6fKaS1r.cjs.map → boat-BhprqJbv.cjs.map} +1 -1
- package/dist/{boat-vVWqUMYt.js → boat-DcHe-GAJ.js} +2 -2
- package/dist/{boat-vVWqUMYt.js.map → boat-DcHe-GAJ.js.map} +1 -1
- package/dist/boat.cjs +1 -1
- package/dist/boat.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-91xSd_El.js → checkbox-CCgs10Lm.js} +2 -2
- package/dist/{checkbox-91xSd_El.js.map → checkbox-CCgs10Lm.js.map} +1 -1
- package/dist/{checkbox-CcKQi7Hq.cjs → checkbox-CxSo6sJl.cjs} +2 -2
- package/dist/{checkbox-CcKQi7Hq.cjs.map → checkbox-CxSo6sJl.cjs.map} +1 -1
- package/dist/checkbox.cjs +1 -1
- package/dist/checkbox.js +1 -1
- package/dist/{chips-D26R6u7T.js → chips-CJj0gvT6.js} +3 -3
- package/dist/{chips-D26R6u7T.js.map → chips-CJj0gvT6.js.map} +1 -1
- package/dist/{chips-Duj_48dP.cjs → chips-CS_nQ5EF.cjs} +2 -2
- package/dist/{chips-Duj_48dP.cjs.map → chips-CS_nQ5EF.cjs.map} +1 -1
- package/dist/chips.cjs +1 -1
- package/dist/chips.js +1 -1
- package/dist/{circular-progress-CeiF8CYP.cjs → circular-progress-2PqoqeDz.cjs} +2 -2
- package/dist/{circular-progress-CeiF8CYP.cjs.map → circular-progress-2PqoqeDz.cjs.map} +1 -1
- package/dist/{circular-progress-BAzvWUr0.js → circular-progress-BHbqdobG.js} +3 -3
- package/dist/{circular-progress-BAzvWUr0.js.map → circular-progress-BHbqdobG.js.map} +1 -1
- package/dist/circular-progress.cjs +1 -1
- package/dist/circular-progress.js +1 -1
- package/dist/code-highlight.cjs +1 -1
- package/dist/code-highlight.js +1 -1
- package/dist/{code-preview-kNXSixdo.js → code-preview-BEpOOC-T.js} +2 -2
- package/dist/{code-preview-kNXSixdo.js.map → code-preview-BEpOOC-T.js.map} +1 -1
- package/dist/{code-preview-BCUSwkuU.cjs → code-preview-CnhG4p16.cjs} +2 -2
- package/dist/{code-preview-BCUSwkuU.cjs.map → code-preview-CnhG4p16.cjs.map} +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-gp2cu49l.js → date-range-BmcLAVvA.js} +3 -3
- package/dist/{date-range-gp2cu49l.js.map → date-range-BmcLAVvA.js.map} +1 -1
- package/dist/{date-range-CBrZ7Pm6.cjs → date-range-C5ZM-uus.cjs} +2 -2
- package/dist/{date-range-CBrZ7Pm6.cjs.map → date-range-C5ZM-uus.cjs.map} +1 -1
- package/dist/{date-range-inline-ZPM9dCG1.cjs → date-range-inline-Ckz0_B9K.cjs} +2 -2
- package/dist/{date-range-inline-ZPM9dCG1.cjs.map → date-range-inline-Ckz0_B9K.cjs.map} +1 -1
- package/dist/{date-range-inline-DZwtgeXX.js → date-range-inline-DBYE6ies.js} +3 -3
- package/dist/{date-range-inline-DZwtgeXX.js.map → date-range-inline-DBYE6ies.js.map} +1 -1
- package/dist/date-range-inline.cjs +1 -1
- package/dist/date-range-inline.js +1 -1
- package/dist/date-range.cjs +1 -1
- package/dist/date-range.js +1 -1
- package/dist/{delay-CUpeZtD8.cjs → delay-1Kpt99k6.cjs} +2 -2
- package/dist/{delay-CUpeZtD8.cjs.map → delay-1Kpt99k6.cjs.map} +1 -1
- package/dist/{delay-CYxt2x_w.js → delay-DpYwuaNT.js} +2 -2
- package/dist/{delay-CYxt2x_w.js.map → delay-DpYwuaNT.js.map} +1 -1
- package/dist/delay.cjs +1 -1
- package/dist/delay.js +1 -1
- package/dist/{dialog-content-Cz2MP3fS.cjs → dialog-content-DhsbfRJw.cjs} +2 -2
- package/dist/{dialog-content-Cz2MP3fS.cjs.map → dialog-content-DhsbfRJw.cjs.map} +1 -1
- package/dist/{dialog-content-DmUr4jZM.js → dialog-content-DwLiPKn6.js} +3 -3
- package/dist/{dialog-content-DmUr4jZM.js.map → dialog-content-DwLiPKn6.js.map} +1 -1
- package/dist/dialog.cjs +1 -1
- package/dist/dialog.js +1 -1
- package/dist/{divider-BreFKYh2.js → divider-C4SSlqD4.js} +3 -3
- package/dist/{divider-BreFKYh2.js.map → divider-C4SSlqD4.js.map} +1 -1
- package/dist/{divider-Cd5pOeZr.cjs → divider-Do9cv9Fw.cjs} +2 -2
- package/dist/{divider-Cd5pOeZr.cjs.map → divider-Do9cv9Fw.cjs.map} +1 -1
- package/dist/divider.cjs +1 -1
- package/dist/divider.js +1 -1
- package/dist/{dropdown-content-DjIvlBvq.js → dropdown-content-Clz8-Sau.js} +3 -3
- package/dist/{dropdown-content-DjIvlBvq.js.map → dropdown-content-Clz8-Sau.js.map} +1 -1
- package/dist/{dropdown-content-zLE8scWl.cjs → dropdown-content-anzsFIOv.cjs} +2 -2
- package/dist/{dropdown-content-zLE8scWl.cjs.map → dropdown-content-anzsFIOv.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-DRvBt9P0.js → flex-BVFtWBNT.js} +2 -2
- package/dist/{flex-DRvBt9P0.js.map → flex-BVFtWBNT.js.map} +1 -1
- package/dist/{flex-CEq4v4cK.cjs → flex-pHmogfUY.cjs} +2 -2
- package/dist/{flex-CEq4v4cK.cjs.map → flex-pHmogfUY.cjs.map} +1 -1
- package/dist/{form-BKqz7W6V.js → form-BknmFXcv.js} +2 -2
- package/dist/{form-BKqz7W6V.js.map → form-BknmFXcv.js.map} +1 -1
- package/dist/{form-B5CAbB2i.cjs → form-vwNceguM.cjs} +2 -2
- package/dist/{form-B5CAbB2i.cjs.map → form-vwNceguM.cjs.map} +1 -1
- package/dist/form.cjs +1 -1
- package/dist/form.js +1 -1
- package/dist/{formField.mixin-DCPfsyya.js → formField.mixin-Btf8vfYy.js} +2 -2
- package/dist/{formField.mixin-DCPfsyya.js.map → formField.mixin-Btf8vfYy.js.map} +1 -1
- package/dist/{formField.mixin-BuKEbib1.cjs → formField.mixin-pbMiCLQh.cjs} +2 -2
- package/dist/{formField.mixin-BuKEbib1.cjs.map → formField.mixin-pbMiCLQh.cjs.map} +1 -1
- package/dist/{icon-B0_pMF_-.cjs → icon-B0GtIpVT.cjs} +2 -2
- package/dist/{icon-B0_pMF_-.cjs.map → icon-B0GtIpVT.cjs.map} +1 -1
- package/dist/{icon-DA0eDV8w.js → icon-DjtkMY5q.js} +2 -2
- package/dist/{icon-DA0eDV8w.js.map → icon-DjtkMY5q.js.map} +1 -1
- package/dist/{icon-button-CEnel9Yg.js → icon-button-Cr7K-05m.js} +3 -3
- package/dist/{icon-button-CEnel9Yg.js.map → icon-button-Cr7K-05m.js.map} +1 -1
- package/dist/{icon-button-DFVuusoz.cjs → icon-button-D4GixH37.cjs} +2 -2
- package/dist/{icon-button-DFVuusoz.cjs.map → icon-button-D4GixH37.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 +186 -185
- package/dist/input-1jW0v1Pm.js +236 -0
- package/dist/input-1jW0v1Pm.js.map +1 -0
- package/dist/input-Brm4X9R4.cjs +51 -0
- package/dist/input-Brm4X9R4.cjs.map +1 -0
- package/dist/input.cjs +1 -1
- package/dist/input.js +3 -3
- package/dist/layout.cjs +1 -1
- package/dist/layout.js +1 -1
- package/dist/{list-BTm67LuV.js → list-BpV-YDKH.js} +2 -2
- package/dist/{list-BTm67LuV.js.map → list-BpV-YDKH.js.map} +1 -1
- package/dist/{list-Bos26fD3.cjs → list-CqTIfJLV.cjs} +2 -2
- package/dist/{list-Bos26fD3.cjs.map → list-CqTIfJLV.cjs.map} +1 -1
- package/dist/list.cjs +1 -1
- package/dist/list.js +1 -1
- package/dist/{litElement.mixin-Cs3zx2X6.cjs → litElement.mixin-Bnma23ZU.cjs} +2 -2
- package/dist/{litElement.mixin-Cs3zx2X6.cjs.map → litElement.mixin-Bnma23ZU.cjs.map} +1 -1
- package/dist/{litElement.mixin-Cn8IAazz.js → litElement.mixin-C2BM-yMx.js} +2 -2
- package/dist/{litElement.mixin-Cn8IAazz.js.map → litElement.mixin-C2BM-yMx.js.map} +1 -1
- package/dist/{media-YhMV6ELC.cjs → media-C8hYeSXn.cjs} +2 -2
- package/dist/{media-YhMV6ELC.cjs.map → media-C8hYeSXn.cjs.map} +1 -1
- package/dist/{media-DPQecp4W.js → media-CMFuSVaN.js} +2 -2
- package/dist/{media-DPQecp4W.js.map → media-CMFuSVaN.js.map} +1 -1
- package/dist/{menu-BfNE5Pz2.cjs → menu-CAkg3Ucm.cjs} +2 -2
- package/dist/{menu-BfNE5Pz2.cjs.map → menu-CAkg3Ucm.cjs.map} +1 -1
- package/dist/{menu-C5KQk1CK.js → menu-Cy55kr4r.js} +3 -3
- package/dist/{menu-C5KQk1CK.js.map → menu-Cy55kr4r.js.map} +1 -1
- package/dist/menu.cjs +1 -1
- package/dist/menu.js +1 -1
- package/dist/nav-drawer.cjs +1 -1
- package/dist/nav-drawer.js +4 -4
- package/dist/{notification-service-Bq_d-qqB.cjs → notification-service-D8akDWVC.cjs} +2 -2
- package/dist/{notification-service-Bq_d-qqB.cjs.map → notification-service-D8akDWVC.cjs.map} +1 -1
- package/dist/{notification-service-unFpqUQn.js → notification-service-DCOCdZOc.js} +3 -3
- package/dist/{notification-service-unFpqUQn.js.map → notification-service-DCOCdZOc.js.map} +1 -1
- package/dist/notification.cjs +1 -1
- package/dist/notification.js +1 -1
- package/dist/{option-Cy-nYxTs.js → option-Bo8xZrW9.js} +2 -2
- package/dist/{option-Cy-nYxTs.js.map → option-Bo8xZrW9.js.map} +1 -1
- package/dist/{option-B9LbtNdk.cjs → option-uYfF0ThT.cjs} +2 -2
- package/dist/{option-B9LbtNdk.cjs.map → option-uYfF0ThT.cjs.map} +1 -1
- package/dist/option.cjs +1 -1
- package/dist/option.js +1 -1
- package/dist/{payment-card-form-D45IjHFN.cjs → payment-card-form-BQ_ODHty.cjs} +2 -2
- package/dist/{payment-card-form-D45IjHFN.cjs.map → payment-card-form-BQ_ODHty.cjs.map} +1 -1
- package/dist/{payment-card-form-ctWIc4vM.js → payment-card-form-Bt7jTtGs.js} +3 -3
- package/dist/{payment-card-form-ctWIc4vM.js.map → payment-card-form-Bt7jTtGs.js.map} +1 -1
- package/dist/{progress-QXnS6DIm.cjs → progress-CAlVHURe.cjs} +2 -2
- package/dist/{progress-QXnS6DIm.cjs.map → progress-CAlVHURe.cjs.map} +1 -1
- package/dist/{progress-4Ef6bw05.js → progress-DAwEZ_pK.js} +2 -2
- package/dist/{progress-4Ef6bw05.js.map → progress-DAwEZ_pK.js.map} +1 -1
- package/dist/progress.cjs +1 -1
- package/dist/progress.js +1 -1
- package/dist/{radio-button-CEp1kd-P.js → radio-button-BfTz8dzJ.js} +3 -3
- package/dist/{radio-button-CEp1kd-P.js.map → radio-button-BfTz8dzJ.js.map} +1 -1
- package/dist/{radio-button-CUzdKTtW.cjs → radio-button-CaRWSk-y.cjs} +2 -2
- package/dist/{radio-button-CUzdKTtW.cjs.map → radio-button-CaRWSk-y.cjs.map} +1 -1
- package/dist/radio-group.cjs +1 -1
- package/dist/radio-group.js +1 -1
- package/dist/{schmancy-steps-container-D3m07gLT.cjs → schmancy-steps-container-BYPHyOLL.cjs} +2 -2
- package/dist/{schmancy-steps-container-D3m07gLT.cjs.map → schmancy-steps-container-BYPHyOLL.cjs.map} +1 -1
- package/dist/{schmancy-steps-container-KI2azXpv.js → schmancy-steps-container-x6jRkemp.js} +2 -2
- package/dist/{schmancy-steps-container-KI2azXpv.js.map → schmancy-steps-container-x6jRkemp.js.map} +1 -1
- package/dist/{select-Bw4QilHf.cjs → select-B0JOM-_t.cjs} +2 -2
- package/dist/{select-Bw4QilHf.cjs.map → select-B0JOM-_t.cjs.map} +1 -1
- package/dist/{select-g77JoEFx.js → select-BJaDcPZl.js} +3 -3
- package/dist/{select-g77JoEFx.js.map → select-BJaDcPZl.js.map} +1 -1
- package/dist/select.cjs +1 -1
- package/dist/select.js +1 -1
- package/dist/{sheet-rcWGv1EZ.js → sheet-D4A-XwtC.js} +4 -4
- package/dist/{sheet-rcWGv1EZ.js.map → sheet-D4A-XwtC.js.map} +1 -1
- package/dist/{sheet-C-bFq5IG.cjs → sheet-D_FOiCy4.cjs} +2 -2
- package/dist/{sheet-C-bFq5IG.cjs.map → sheet-D_FOiCy4.cjs.map} +1 -1
- package/dist/sheet.cjs +1 -1
- package/dist/sheet.js +2 -2
- package/dist/{sheet.service-ihtgUWRM.cjs → sheet.service-C0yEu73g.cjs} +2 -2
- package/dist/{sheet.service-ihtgUWRM.cjs.map → sheet.service-C0yEu73g.cjs.map} +1 -1
- package/dist/{sheet.service-BKQ7n7nz.js → sheet.service-Cs6x0-dj.js} +2 -2
- package/dist/{sheet.service-BKQ7n7nz.js.map → sheet.service-Cs6x0-dj.js.map} +1 -1
- package/dist/{slider-DMIOW38W.cjs → slider-DWkftwBc.cjs} +2 -2
- package/dist/{slider-DMIOW38W.cjs.map → slider-DWkftwBc.cjs.map} +1 -1
- package/dist/{slider-BJQE9wHL.js → slider-R8CZdtHO.js} +3 -3
- package/dist/{slider-BJQE9wHL.js.map → slider-R8CZdtHO.js.map} +1 -1
- package/dist/slider.cjs +1 -1
- package/dist/slider.js +1 -1
- package/dist/{spinner-NFkGJJz1.js → spinner-4FisLDbU.js} +34 -36
- package/dist/spinner-4FisLDbU.js.map +1 -0
- package/dist/{spinner-ByMXQNV3.cjs → spinner-Dl222o48.cjs} +21 -23
- package/dist/spinner-Dl222o48.cjs.map +1 -0
- package/dist/steps.cjs +1 -1
- package/dist/steps.js +1 -1
- package/dist/{surface-BhCe8hp8.cjs → surface-BBtm2OI1.cjs} +2 -2
- package/dist/{surface-BhCe8hp8.cjs.map → surface-BBtm2OI1.cjs.map} +1 -1
- package/dist/{surface-C7jJaxVu.js → surface-DF75Qk2N.js} +2 -2
- package/dist/{surface-C7jJaxVu.js.map → surface-DF75Qk2N.js.map} +1 -1
- package/dist/surface.cjs +1 -1
- package/dist/surface.js +1 -1
- package/dist/{table-BlwkABmS.cjs → table--JptotNr.cjs} +2 -2
- package/dist/{table-BlwkABmS.cjs.map → table--JptotNr.cjs.map} +1 -1
- package/dist/{table-CmwIcTR5.js → table-1SVYVJmx.js} +2 -2
- package/dist/{table-CmwIcTR5.js.map → table-1SVYVJmx.js.map} +1 -1
- package/dist/table.cjs +1 -1
- package/dist/table.js +1 -1
- package/dist/{tabs-compatibility-BdKslPOu.js → tabs-compatibility-A6VeNdH6.js} +2 -2
- package/dist/{tabs-compatibility-BdKslPOu.js.map → tabs-compatibility-A6VeNdH6.js.map} +1 -1
- package/dist/{tabs-compatibility-v0k0K0ID.cjs → tabs-compatibility-BIXJqJ6U.cjs} +2 -2
- package/dist/{tabs-compatibility-v0k0K0ID.cjs.map → tabs-compatibility-BIXJqJ6U.cjs.map} +1 -1
- package/dist/tabs.cjs +1 -1
- package/dist/tabs.js +1 -1
- package/dist/tailwind.mixin-CWA7D8Ym.js +43 -0
- package/dist/{tailwind.mixin-BHLwDiBj.js.map → tailwind.mixin-CWA7D8Ym.js.map} +1 -1
- package/dist/tailwind.mixin-Cb7MPMz5.cjs +2 -0
- package/dist/{tailwind.mixin-1kcW0BGm.cjs.map → tailwind.mixin-Cb7MPMz5.cjs.map} +1 -1
- package/dist/teleport.cjs +1 -1
- package/dist/teleport.js +2 -2
- package/dist/{textarea-CfLyPiqF.js → textarea-Br2AU0Nv.js} +2 -2
- package/dist/{textarea-CfLyPiqF.js.map → textarea-Br2AU0Nv.js.map} +1 -1
- package/dist/{textarea-CL3oExE7.cjs → textarea-DTTc9Q9v.cjs} +2 -2
- package/dist/{textarea-CL3oExE7.cjs.map → textarea-DTTc9Q9v.cjs.map} +1 -1
- package/dist/textarea.cjs +1 -1
- package/dist/textarea.js +1 -1
- package/dist/{theme-button-D9DpgXlC.cjs → theme-button-B_qS6ur-.cjs} +2 -2
- package/dist/{theme-button-D9DpgXlC.cjs.map → theme-button-B_qS6ur-.cjs.map} +1 -1
- package/dist/{theme-button-tekBpoTr.js → theme-button-Dw6gnMP7.js} +2 -2
- package/dist/{theme-button-tekBpoTr.js.map → theme-button-Dw6gnMP7.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.js +1 -1
- package/dist/{timezone-rpn_HlNW.js → timezone-Dtjp82BY.js} +3 -3
- package/dist/{timezone-rpn_HlNW.js.map → timezone-Dtjp82BY.js.map} +1 -1
- package/dist/{timezone-DIYE4qo4.cjs → timezone-XFFQCQxI.cjs} +2 -2
- package/dist/{timezone-DIYE4qo4.cjs.map → timezone-XFFQCQxI.cjs.map} +1 -1
- package/dist/{tooltip-apPpbYRb.cjs → tooltip-B2vaA2HE.cjs} +2 -2
- package/dist/{tooltip-apPpbYRb.cjs.map → tooltip-B2vaA2HE.cjs.map} +1 -1
- package/dist/{tooltip-C5DJ3omV.js → tooltip-CbspXmfO.js} +2 -2
- package/dist/{tooltip-C5DJ3omV.js.map → tooltip-CbspXmfO.js.map} +1 -1
- package/dist/tooltip.cjs +1 -1
- package/dist/tooltip.js +1 -1
- package/dist/{tree-DYOX-2CI.cjs → tree-BWiLuVqB.cjs} +2 -2
- package/dist/{tree-DYOX-2CI.cjs.map → tree-BWiLuVqB.cjs.map} +1 -1
- package/dist/{tree-B38B9Zts.js → tree-Cld52SH0.js} +2 -2
- package/dist/{tree-B38B9Zts.js.map → tree-Cld52SH0.js.map} +1 -1
- package/dist/tree.cjs +1 -1
- package/dist/tree.js +1 -1
- package/dist/{typewriter-Cf1Bl0lI.js → typewriter-BVgRBrud.js} +4 -4
- package/dist/{typewriter-Cf1Bl0lI.js.map → typewriter-BVgRBrud.js.map} +1 -1
- package/dist/{typewriter-D5sC3i_h.cjs → typewriter-CCUnhz7q.cjs} +2 -2
- package/dist/{typewriter-D5sC3i_h.cjs.map → typewriter-CCUnhz7q.cjs.map} +1 -1
- package/dist/typewriter.cjs +1 -1
- package/dist/typewriter.js +1 -1
- package/dist/{typography-sm5Ne22S.js → typography-BEhOBun8.js} +2 -2
- package/dist/{typography-sm5Ne22S.js.map → typography-BEhOBun8.js.map} +1 -1
- package/dist/{typography-VDYy4xDQ.cjs → typography-C_8cRYiU.cjs} +2 -2
- package/dist/{typography-VDYy4xDQ.cjs.map → typography-C_8cRYiU.cjs.map} +1 -1
- package/dist/typography.cjs +1 -1
- package/dist/typography.js +1 -1
- package/package.json +1 -1
- package/dist/avatar-CDZIGEvK.cjs.map +0 -1
- package/dist/avatar-DAs-uNIM.js.map +0 -1
- package/dist/input-B7Q3RRwE.js +0 -473
- package/dist/input-B7Q3RRwE.js.map +0 -1
- package/dist/input-C4tYxk-t.cjs +0 -111
- package/dist/input-C4tYxk-t.cjs.map +0 -1
- package/dist/spinner-ByMXQNV3.cjs.map +0 -1
- package/dist/spinner-NFkGJJz1.js.map +0 -1
- package/dist/tailwind.mixin-1kcW0BGm.cjs +0 -2
- package/dist/tailwind.mixin-BHLwDiBj.js +0 -43
package/dist/input-B7Q3RRwE.js
DELETED
|
@@ -1,473 +0,0 @@
|
|
|
1
|
-
import { nothing as g, html as y, LitElement as k } from "lit";
|
|
2
|
-
import { property as i, query as $, state as m, customElement as R } from "lit/decorators.js";
|
|
3
|
-
import { ifDefined as p } from "lit/directives/if-defined.js";
|
|
4
|
-
import { createRef as S, ref as V } from "lit/directives/ref.js";
|
|
5
|
-
import { when as E } from "lit/directives/when.js";
|
|
6
|
-
import { fromEvent as d, map as w, takeUntil as h, distinctUntilChanged as C, filter as v } from "rxjs";
|
|
7
|
-
import "lit/directives/class-map.js";
|
|
8
|
-
import "lit/directives/style-map.js";
|
|
9
|
-
import { T as I } from "./tailwind.mixin-BHLwDiBj.js";
|
|
10
|
-
import { c as x } from "./ripple-BumgqsDT.js";
|
|
11
|
-
import { S as b } from "./theme.interface-C5Kj6WjD.js";
|
|
12
|
-
import { S as T } from "./formField.mixin-DCPfsyya.js";
|
|
13
|
-
const O = "/*! tailwindcss v4.1.11 | MIT License | https://tailwindcss.com */:host{width:100%;min-width:calc(var(--spacing,.25rem)*0);box-sizing:border-box;max-width:100%;display:block}.date-input-container{width:100%;min-width:0;width:100%!important;max-width:100%!important}input{appearance:none;border-radius:8px;width:-webkit-fill-available;font-size:16px}input[type=number]::-webkit-inner-spin-button{appearance:none;margin:calc(var(--spacing,.25rem)*0)}input[type=number]::-webkit-outer-spin-button{appearance:none;margin:calc(var(--spacing,.25rem)*0)}input[type=number]{appearance:textfield}input:-webkit-autofill{animation-name:onAutoFillStart;-webkit-box-shadow:0 0 0 30px var(--schmancy-sys-color-surface-highest)inset!important;-webkit-text-fill-color:var(--schmancy-sys-color-surface-on)!important}input:autofill{background-color:var(--schmancy-sys-color-surface-highest)!important;color:var(--schmancy-sys-color-surface-on)!important}input[type=date],input[type=datetime-local],input[type=time],input[type=month],input[type=week]{appearance:none;width:100%;line-height:inherit;border-radius:8px;min-width:100%;max-width:100%;margin:0;display:block;overflow:hidden;border-radius:8px!important;width:100%!important}input::-webkit-datetime-edit{align-items:center;width:100%;height:100%;margin:0;padding:0;display:flex}input::-webkit-datetime-edit-fields-wrapper{align-items:center;width:100%;height:100%;margin:0;padding:0;display:flex}input::-webkit-datetime-edit{flex:1;width:100%}input::-webkit-datetime-edit-fields-wrapper{flex:1;justify-content:space-between;width:100%}input::-webkit-datetime-edit-text{align-items:center;display:flex}input::-webkit-datetime-edit-day-field{flex-shrink:0;padding:0 2px}input::-webkit-datetime-edit-month-field{flex-shrink:0;padding:0 2px}input::-webkit-datetime-edit-year-field{flex-shrink:0;padding:0 2px}input::-webkit-datetime-edit-hour-field{flex-shrink:0;padding:0 2px}input::-webkit-datetime-edit-minute-field{flex-shrink:0;padding:0 2px}input::-webkit-datetime-edit-second-field{flex-shrink:0;padding:0 2px}input::-webkit-datetime-edit-millisecond-field{flex-shrink:0;padding:0 2px}input::-webkit-datetime-edit-meridiem-field{flex-shrink:0;padding:0 2px}input[type=date]::-webkit-calendar-picker-indicator{opacity:.5;cursor:pointer}input[type=datetime-local]::-webkit-calendar-picker-indicator{opacity:.5;cursor:pointer}input[type=time]::-webkit-calendar-picker-indicator{opacity:.5;cursor:pointer}input[type=month]::-webkit-calendar-picker-indicator{opacity:.5;cursor:pointer}input[type=week]::-webkit-calendar-picker-indicator{opacity:.5;cursor:pointer}@-moz-document url-prefix(){input[type=date],input[type=datetime-local],input[type=time]{min-height:inherit}}@supports (-webkit-touch-callout:none){input[type=date],input[type=datetime-local],input[type=time],input[type=month],input[type=week]{appearance:none;border-radius:0;width:-webkit-fill-available!important;width:fill-available!important;padding-left:12px!important;padding-right:12px!important}input::-webkit-datetime-edit{width:100%!important;padding-left:0!important;padding-right:0!important}input::-webkit-datetime-edit-fields-wrapper{width:100%!important;margin:0!important;padding:0!important}}";
|
|
14
|
-
var z = Object.defineProperty, A = Object.getOwnPropertyDescriptor, n = (t, e, a, o) => {
|
|
15
|
-
for (var c, u = o > 1 ? void 0 : o ? A(e, a) : e, f = t.length - 1; f >= 0; f--) (c = t[f]) && (u = (o ? c(e, a, u) : c(u)) || u);
|
|
16
|
-
return o && u && z(e, a, u), u;
|
|
17
|
-
};
|
|
18
|
-
let s = class extends I(O) {
|
|
19
|
-
constructor() {
|
|
20
|
-
if (super(), this.id = "", this.label = "", this.type = "text", this.name = `name_${Date.now()}`, this.placeholder = "", this.value = "", this.required = !1, this.disabled = !1, this.readonly = !1, this.clickable = !1, this.spellcheck = !1, this.align = "left", this.autofocus = !1, this.autocomplete = "on", this.tabIndex = 0, this.error = !1, this.size = "md", this.validateOn = "touched", this.validationMessage = "", this.inputRef = S(), this.isAutofilled = !1, this.touched = !1, this.dirty = !1, this.submitted = !1, this.defaultValue = "", "attachInternals" in this) try {
|
|
21
|
-
this.internals = this.attachInternals();
|
|
22
|
-
} catch {
|
|
23
|
-
this.internals = void 0;
|
|
24
|
-
}
|
|
25
|
-
}
|
|
26
|
-
willUpdate(t) {
|
|
27
|
-
this.id || (this.id = "sch-input-" + s._idCounter++), super.willUpdate(t);
|
|
28
|
-
}
|
|
29
|
-
get form() {
|
|
30
|
-
return this.internals?.form ?? null;
|
|
31
|
-
}
|
|
32
|
-
updated(t) {
|
|
33
|
-
super.updated(t), t.has("value") && (this.value !== this.defaultValue && (this.dirty = !0), this.internals?.setFormValue(this.value), this.validateInput()), t.has("error") && this.updateValidityState(), !this.hasUpdated && t.has("value") && (this.defaultValue = this.value);
|
|
34
|
-
}
|
|
35
|
-
connectedCallback() {
|
|
36
|
-
super.connectedCallback(), this.defaultValue = this.value, this.setupFormIntegration(), this.setupExternalLabelAssociation();
|
|
37
|
-
}
|
|
38
|
-
setupFormIntegration() {
|
|
39
|
-
this.internals?.form && (this.formResetObserver = new MutationObserver((t) => {
|
|
40
|
-
for (const e of t) e.type === "attributes" && e.attributeName === "reset" && this.resetToDefault();
|
|
41
|
-
}), this.formResetObserver.observe(this.internals.form, { attributes: !0, childList: !1, subtree: !1 }), this.internals.form.addEventListener("reset", () => {
|
|
42
|
-
this.resetToDefault();
|
|
43
|
-
}), this.internals.form.addEventListener("submit", () => {
|
|
44
|
-
this.submitted = !0, this.validateInput(!0);
|
|
45
|
-
}));
|
|
46
|
-
}
|
|
47
|
-
setupExternalLabelAssociation() {
|
|
48
|
-
if (this.id) {
|
|
49
|
-
const t = () => {
|
|
50
|
-
document.querySelectorAll(`label[for="${this.id}"]`).forEach((e) => {
|
|
51
|
-
e.addEventListener("click", () => {
|
|
52
|
-
this.focus();
|
|
53
|
-
});
|
|
54
|
-
});
|
|
55
|
-
};
|
|
56
|
-
document.readyState === "complete" ? t() : document.addEventListener("DOMContentLoaded", t);
|
|
57
|
-
}
|
|
58
|
-
}
|
|
59
|
-
disconnectedCallback() {
|
|
60
|
-
super.disconnectedCallback(), this.formResetObserver && this.formResetObserver.disconnect(), this.id && document.querySelectorAll(`label[for="${this.id}"]`).forEach((t) => {
|
|
61
|
-
t.removeEventListener("click", () => {
|
|
62
|
-
this.focus();
|
|
63
|
-
});
|
|
64
|
-
});
|
|
65
|
-
}
|
|
66
|
-
resetToDefault() {
|
|
67
|
-
this.value = this.defaultValue, this.touched = !1, this.dirty = !1, this.submitted = !1, this.error = !1, this.validationMessage = "", this.dispatchEvent(new CustomEvent("reset", { bubbles: !0 }));
|
|
68
|
-
}
|
|
69
|
-
shouldShowValidation(t = !1) {
|
|
70
|
-
if (t) return !0;
|
|
71
|
-
switch (this.validateOn) {
|
|
72
|
-
case "always":
|
|
73
|
-
return !0;
|
|
74
|
-
case "touched":
|
|
75
|
-
default:
|
|
76
|
-
return this.touched;
|
|
77
|
-
case "dirty":
|
|
78
|
-
return this.dirty;
|
|
79
|
-
case "submitted":
|
|
80
|
-
return this.submitted;
|
|
81
|
-
}
|
|
82
|
-
}
|
|
83
|
-
updateValidityState() {
|
|
84
|
-
this.error ? this.validationMessage ? this.internals?.setValidity({ customError: !0 }, this.validationMessage, this.inputElement) : this.internals?.setValidity({ customError: !0 }, "Invalid input", this.inputElement) : this.internals?.setValidity({});
|
|
85
|
-
}
|
|
86
|
-
validateInput(t = !1) {
|
|
87
|
-
if (this.disabled) return;
|
|
88
|
-
const e = this.shouldShowValidation(t), a = this.inputElement?.validity ?? { customError: !1, valid: !0 }, o = !a.valid && !a.customError;
|
|
89
|
-
e && o ? (this.error = !0, this.validationMessage = this.inputElement?.validationMessage || "") : a.valid ? (this.error = !1, a.customError || (this.validationMessage = "")) : e || (this.error = !1), this.updateValidityState();
|
|
90
|
-
}
|
|
91
|
-
checkValidity() {
|
|
92
|
-
const t = this.inputRef.value?.checkValidity() ?? !0;
|
|
93
|
-
return this.internals && !t ? (this.internals.checkValidity(), !1) : t;
|
|
94
|
-
}
|
|
95
|
-
reportValidity() {
|
|
96
|
-
this.touched = !0, this.submitted = !0;
|
|
97
|
-
const t = this.inputRef.value?.reportValidity() ?? !0;
|
|
98
|
-
return this.validateInput(!0), this.internals && !t ? (this.internals.reportValidity(), !1) : t;
|
|
99
|
-
}
|
|
100
|
-
setCustomValidity(t) {
|
|
101
|
-
this.inputRef.value && this.inputRef.value.setCustomValidity(t), this.validationMessage = t, this.error = t !== "" && this.shouldShowValidation(), this.internals && (t ? this.internals.setValidity({ customError: !0 }, t, this.inputElement) : this.internals.setValidity({}));
|
|
102
|
-
}
|
|
103
|
-
firstUpdated() {
|
|
104
|
-
this.autofocus && setTimeout(() => {
|
|
105
|
-
this.focus();
|
|
106
|
-
}, 0), this.setupInputEvents(), this.setupFocusBlurEvents(), this.setupAutofillDetection(), this.setupEnterKeyEvents();
|
|
107
|
-
}
|
|
108
|
-
setupInputEvents() {
|
|
109
|
-
d(this.inputElement, "input").pipe(w((t) => {
|
|
110
|
-
const e = t;
|
|
111
|
-
return { value: t.target.value, inputType: e.inputType, data: e.data, isComposing: e.isComposing, originalEvent: t };
|
|
112
|
-
}), h(this.disconnecting)).subscribe((t) => {
|
|
113
|
-
this.value = t.value, this.dirty = this.value !== this.defaultValue;
|
|
114
|
-
const e = new CustomEvent("input", { detail: { value: t.value }, bubbles: !0, composed: !0 });
|
|
115
|
-
Object.defineProperties(e, { inputType: { value: t.inputType }, data: { value: t.data }, isComposing: { value: t.isComposing } }), this.dispatchEvent(e), this.validateInput();
|
|
116
|
-
}), d(this.inputElement, "change").pipe(w((t) => t.target.value), C(), h(this.disconnecting)).subscribe((t) => {
|
|
117
|
-
this.value = t, this.dirty = this.value !== this.defaultValue, this.dispatchEvent(new CustomEvent("change", { detail: { value: t }, bubbles: !0, composed: !0 })), this.validateInput();
|
|
118
|
-
});
|
|
119
|
-
}
|
|
120
|
-
setupFocusBlurEvents() {
|
|
121
|
-
d(this.inputElement, "focus").pipe(h(this.disconnecting)).subscribe((t) => {
|
|
122
|
-
const e = new CustomEvent("focus", { bubbles: t.bubbles, cancelable: t.cancelable, composed: t.composed });
|
|
123
|
-
Object.defineProperties(e, { relatedTarget: { value: t.relatedTarget } }), this.dispatchEvent(e);
|
|
124
|
-
}), d(this.inputElement, "blur").pipe(h(this.disconnecting)).subscribe((t) => {
|
|
125
|
-
this.touched = !0, this.disabled || this.validateInput();
|
|
126
|
-
const e = new CustomEvent("blur", { bubbles: t.bubbles, cancelable: t.cancelable, composed: t.composed });
|
|
127
|
-
Object.defineProperties(e, { relatedTarget: { value: t.relatedTarget } }), this.dispatchEvent(e);
|
|
128
|
-
});
|
|
129
|
-
}
|
|
130
|
-
setupAutofillDetection() {
|
|
131
|
-
d(this.inputElement, "animationstart").pipe(v((t) => t.animationName === "onAutoFillStart"), h(this.disconnecting)).subscribe((t) => {
|
|
132
|
-
const { value: e } = t.target;
|
|
133
|
-
this.value = e, this.isAutofilled = !0, this.dirty = this.value !== this.defaultValue, this.dispatchEvent(new CustomEvent("autofill", { detail: { value: e }, bubbles: !0, composed: !0 })), this.dispatchEvent(new CustomEvent("change", { detail: { value: e }, bubbles: !0, composed: !0 }));
|
|
134
|
-
}), d(this.inputElement, "animationstart").pipe(v((t) => t.animationName === "onAutoFillCancel"), h(this.disconnecting)).subscribe(() => {
|
|
135
|
-
this.isAutofilled = !1;
|
|
136
|
-
});
|
|
137
|
-
}
|
|
138
|
-
setupEnterKeyEvents() {
|
|
139
|
-
d(this.inputElement, "keyup").pipe(v((t) => t.key === "Enter"), h(this.disconnecting)).subscribe((t) => {
|
|
140
|
-
const { value: e } = t.target;
|
|
141
|
-
this.value = e, this.dirty = this.value !== this.defaultValue;
|
|
142
|
-
const a = new CustomEvent("enter", { detail: { value: e }, bubbles: !0, composed: !0 });
|
|
143
|
-
Object.defineProperties(a, { key: { value: "Enter" }, code: { value: "Enter" }, keyCode: { value: 13 }, which: { value: 13 } }), this.dispatchEvent(a);
|
|
144
|
-
});
|
|
145
|
-
}
|
|
146
|
-
select() {
|
|
147
|
-
return this.inputRef.value?.select();
|
|
148
|
-
}
|
|
149
|
-
getValidity() {
|
|
150
|
-
return this.inputRef.value?.validity;
|
|
151
|
-
}
|
|
152
|
-
setSelectionRange(t, e, a) {
|
|
153
|
-
this.inputRef.value?.setSelectionRange(t, e, a);
|
|
154
|
-
}
|
|
155
|
-
get selectionStart() {
|
|
156
|
-
return this.inputRef.value?.selectionStart ?? null;
|
|
157
|
-
}
|
|
158
|
-
get selectionEnd() {
|
|
159
|
-
return this.inputRef.value?.selectionEnd ?? null;
|
|
160
|
-
}
|
|
161
|
-
get selectionDirection() {
|
|
162
|
-
return this.inputRef.value?.selectionDirection ?? null;
|
|
163
|
-
}
|
|
164
|
-
setRangeText(t, e, a, o) {
|
|
165
|
-
e !== void 0 && a !== void 0 ? this.inputRef.value?.setRangeText(t, e, a, o) : this.inputRef.value?.setRangeText(t);
|
|
166
|
-
}
|
|
167
|
-
focus(t) {
|
|
168
|
-
this.inputRef.value?.focus(t), this.dispatchEvent(new Event("focus"));
|
|
169
|
-
}
|
|
170
|
-
click() {
|
|
171
|
-
this.inputRef.value?.click(), this.dispatchEvent(new Event("click"));
|
|
172
|
-
}
|
|
173
|
-
blur() {
|
|
174
|
-
this.inputRef.value?.blur(), this.dispatchEvent(new Event("blur"));
|
|
175
|
-
}
|
|
176
|
-
render() {
|
|
177
|
-
const { height: t, padding: e, fontSize: a } = (() => {
|
|
178
|
-
switch (this.size) {
|
|
179
|
-
case "sm":
|
|
180
|
-
return { height: "40px", padding: "0 8px", fontSize: "0.875rem" };
|
|
181
|
-
case "lg":
|
|
182
|
-
return { height: "60px", padding: "0 20px", fontSize: "1.125rem" };
|
|
183
|
-
default:
|
|
184
|
-
return { height: "50px", padding: "0 16px", fontSize: "1rem" };
|
|
185
|
-
}
|
|
186
|
-
})(), o = { "w-full flex-1 rounded-[8px] border-0 bg-surface-highest text-surface-on": !0, "outline-secondary-default focus:outline-1 ": !0, "outline-secondary-default focus:outline-1": !0, "disabled:opacity-40 disabled:cursor-not-allowed": !0, "placeholder:text-muted": !0, "ring-0 ring-inset focus:ring-1 focus:ring-inset": !0, "ring-secondary-default ring-outline focus:ring-secondary-default": !this.error, "ring-error-default focus:ring-error-default": this.error, "caret-transparent focus:outline-hidden cursor-pointer text-select-none": this.readonly, "cursor-pointer": this.clickable, "text-center": this.align === "center", "text-right": this.align === "right", autofilled: this.isAutofilled }, c = { "opacity-40": this.disabled, "block mb-[4px]": !0, "text-sm": this.size === "sm", "text-base": this.size === "md", "text-lg": this.size === "lg" }, u = { height: t, padding: e, fontSize: a };
|
|
187
|
-
return y`
|
|
188
|
-
${E(this.label, () => y`
|
|
189
|
-
<label
|
|
190
|
-
for=${this.id}
|
|
191
|
-
id="label-${this.id}"
|
|
192
|
-
class=${this.classMap(c)}
|
|
193
|
-
${x({ color: this.error ? b.sys.color.error.default : b.sys.color.primary.default })}
|
|
194
|
-
>
|
|
195
|
-
<schmancy-typography type="label" token=${this.size === "sm" ? "sm" : this.size === "lg" ? "lg" : "md"}>
|
|
196
|
-
${this.label}
|
|
197
|
-
</schmancy-typography>
|
|
198
|
-
</label>
|
|
199
|
-
`)}
|
|
200
|
-
|
|
201
|
-
<input
|
|
202
|
-
${x({ bgColor: b.sys.color.surface.highest, color: b.sys.color.surface.on })}
|
|
203
|
-
${V(this.inputRef)}
|
|
204
|
-
id=${this.id}
|
|
205
|
-
name=${this.name}
|
|
206
|
-
class=${this.classMap(o)}
|
|
207
|
-
style=${this.styleMap(u)}
|
|
208
|
-
.value=${this.value}
|
|
209
|
-
.type=${this.type}
|
|
210
|
-
.autocomplete=${this.autocomplete}
|
|
211
|
-
.spellcheck=${this.spellcheck}
|
|
212
|
-
placeholder=${this.placeholder}
|
|
213
|
-
inputmode=${p(this.inputmode)}
|
|
214
|
-
pattern=${p(this.pattern)}
|
|
215
|
-
step=${p(this.step)}
|
|
216
|
-
minlength=${p(this.minlength)}
|
|
217
|
-
maxlength=${p(this.maxlength)}
|
|
218
|
-
min=${p(this.min)}
|
|
219
|
-
max=${p(this.max)}
|
|
220
|
-
list=${p(this.list)}
|
|
221
|
-
?required=${this.required}
|
|
222
|
-
?disabled=${this.disabled}
|
|
223
|
-
?readonly=${this.readonly}
|
|
224
|
-
aria-invalid=${this.error ? "true" : "false"}
|
|
225
|
-
aria-required=${this.required ? "true" : "false"}
|
|
226
|
-
aria-labelledby=${this.label ? `label-${this.id}` : g}
|
|
227
|
-
aria-describedby=${this.hint ? `hint-${this.id}` : g}
|
|
228
|
-
aria-label=${p(this.label ? void 0 : this.placeholder || "Input")}
|
|
229
|
-
aria-autocomplete=${this.list ? "list" : "none"}
|
|
230
|
-
/>
|
|
231
|
-
|
|
232
|
-
${E(this.hint, () => y`
|
|
233
|
-
<div
|
|
234
|
-
id="hint-${this.id}"
|
|
235
|
-
class="${this.size === "sm" ? "pt-[1px] text-xs" : this.size === "lg" ? "pt-[3px] text-base" : "pt-[2px] text-sm"}"
|
|
236
|
-
${x({ color: this.error ? b.sys.color.error.default : b.sys.color.primary.default })}
|
|
237
|
-
>
|
|
238
|
-
<schmancy-typography
|
|
239
|
-
align="left"
|
|
240
|
-
type="label"
|
|
241
|
-
token=${this.size === "sm" ? "sm" : this.size === "lg" ? "lg" : "md"}
|
|
242
|
-
>
|
|
243
|
-
${this.hint}
|
|
244
|
-
</schmancy-typography>
|
|
245
|
-
</div>
|
|
246
|
-
`)}
|
|
247
|
-
`;
|
|
248
|
-
}
|
|
249
|
-
};
|
|
250
|
-
s._idCounter = 0, s.formAssociated = !0, s.shadowRootOptions = { ...k.shadowRootOptions, delegatesFocus: !0 }, n([i({ reflect: !0 })], s.prototype, "id", 2), n([i({ type: String })], s.prototype, "label", 2), n([i({ reflect: !0 })], s.prototype, "type", 2), n([i()], s.prototype, "name", 2), n([i()], s.prototype, "placeholder", 2), n([i({ type: String, reflect: !0 })], s.prototype, "value", 2), n([i({ type: String, reflect: !0 })], s.prototype, "pattern", 2), n([i({ type: Boolean, reflect: !0 })], s.prototype, "required", 2), n([i({ type: Boolean, reflect: !0 })], s.prototype, "disabled", 2), n([i({ type: Boolean, reflect: !0 })], s.prototype, "readonly", 2), n([i({ type: Boolean, reflect: !0 })], s.prototype, "clickable", 2), n([i({ type: Boolean, reflect: !0 })], s.prototype, "spellcheck", 2), n([i({ type: String, reflect: !0 })], s.prototype, "align", 2), n([i()], s.prototype, "inputmode", 2), n([i({ type: Number, reflect: !0 })], s.prototype, "minlength", 2), n([i({ type: Number })], s.prototype, "maxlength", 2), n([i()], s.prototype, "min", 2), n([i()], s.prototype, "max", 2), n([i({ type: Number, reflect: !0 })], s.prototype, "step", 2), n([i({ type: Boolean })], s.prototype, "autofocus", 2), n([i({ type: String, reflect: !0 })], s.prototype, "autocomplete", 2), n([i({ type: Number, reflect: !0 })], s.prototype, "tabIndex", 2), n([i()], s.prototype, "hint", 2), n([i({ type: Boolean, reflect: !0 })], s.prototype, "error", 2), n([i({ type: String, reflect: !0 })], s.prototype, "size", 2), n([i({ type: String })], s.prototype, "validateOn", 2), n([i({ type: String })], s.prototype, "list", 2), n([i({ type: String })], s.prototype, "validationMessage", 2), n([$("input")], s.prototype, "inputElement", 2), n([m()], s.prototype, "isAutofilled", 2), n([m()], s.prototype, "touched", 2), n([m()], s.prototype, "dirty", 2), n([m()], s.prototype, "submitted", 2), n([m()], s.prototype, "defaultValue", 2), s = n([R("sch-input")], s);
|
|
251
|
-
var M = Object.defineProperty, D = Object.getOwnPropertyDescriptor, l = (t, e, a, o) => {
|
|
252
|
-
for (var c, u = o > 1 ? void 0 : o ? D(e, a) : e, f = t.length - 1; f >= 0; f--) (c = t[f]) && (u = (o ? c(e, a, u) : c(u)) || u);
|
|
253
|
-
return o && u && M(e, a, u), u;
|
|
254
|
-
};
|
|
255
|
-
let r = class extends T(O) {
|
|
256
|
-
constructor() {
|
|
257
|
-
super(...arguments), this.value = "", this.type = "text", this.placeholder = "", this.clickable = !1, this.spellcheck = !1, this.align = "left", this.autofocus = !1, this.autocomplete = "on", this.tabIndex = 0, this.size = "md", this.validateOn = "touched", this.inputRef = S(), this.isAutofilled = !1, this.touched = !1, this.dirty = !1, this.submitted = !1, this.defaultValue = "";
|
|
258
|
-
}
|
|
259
|
-
willUpdate(t) {
|
|
260
|
-
this.id || (this.id = "sch-input-" + r._idCounter++), super.willUpdate(t);
|
|
261
|
-
}
|
|
262
|
-
updated(t) {
|
|
263
|
-
super.updated(t), t.has("value") && (this.value !== this.defaultValue && (this.dirty = !0), this.validateInput()), !this.hasUpdated && t.has("value") && (this.defaultValue = this.value);
|
|
264
|
-
}
|
|
265
|
-
connectedCallback() {
|
|
266
|
-
super.connectedCallback(), this.defaultValue = this.value, this.setupFormIntegration(), this.setupExternalLabelAssociation();
|
|
267
|
-
}
|
|
268
|
-
setupFormIntegration() {
|
|
269
|
-
this.form && (this.formResetObserver = new MutationObserver((t) => {
|
|
270
|
-
for (const e of t) e.type === "attributes" && e.attributeName === "reset" && this.resetToDefault();
|
|
271
|
-
}), this.formResetObserver.observe(this.form, { attributes: !0, childList: !1, subtree: !1 }), this.form.addEventListener("reset", () => {
|
|
272
|
-
this.resetToDefault();
|
|
273
|
-
}), this.form.addEventListener("submit", () => {
|
|
274
|
-
this.submitted = !0, this.validateInput(!0);
|
|
275
|
-
}));
|
|
276
|
-
}
|
|
277
|
-
setupExternalLabelAssociation() {
|
|
278
|
-
if (this.id) {
|
|
279
|
-
const t = () => {
|
|
280
|
-
document.querySelectorAll(`label[for="${this.id}"]`).forEach((e) => {
|
|
281
|
-
e.addEventListener("click", () => {
|
|
282
|
-
this.focus();
|
|
283
|
-
});
|
|
284
|
-
});
|
|
285
|
-
};
|
|
286
|
-
document.readyState === "complete" ? t() : document.addEventListener("DOMContentLoaded", t);
|
|
287
|
-
}
|
|
288
|
-
}
|
|
289
|
-
disconnectedCallback() {
|
|
290
|
-
super.disconnectedCallback(), this.formResetObserver && this.formResetObserver.disconnect(), this.id && document.querySelectorAll(`label[for="${this.id}"]`).forEach((t) => {
|
|
291
|
-
t.removeEventListener("click", () => {
|
|
292
|
-
this.focus();
|
|
293
|
-
});
|
|
294
|
-
});
|
|
295
|
-
}
|
|
296
|
-
resetToDefault() {
|
|
297
|
-
this.value = this.defaultValue, this.touched = !1, this.dirty = !1, this.submitted = !1, this.error = !1, this.validationMessage = "", this.dispatchEvent(new CustomEvent("reset", { bubbles: !0 }));
|
|
298
|
-
}
|
|
299
|
-
shouldShowValidation(t = !1) {
|
|
300
|
-
if (t) return !0;
|
|
301
|
-
switch (this.validateOn) {
|
|
302
|
-
case "always":
|
|
303
|
-
return !0;
|
|
304
|
-
case "touched":
|
|
305
|
-
default:
|
|
306
|
-
return this.touched;
|
|
307
|
-
case "dirty":
|
|
308
|
-
return this.dirty;
|
|
309
|
-
case "submitted":
|
|
310
|
-
return this.submitted;
|
|
311
|
-
}
|
|
312
|
-
}
|
|
313
|
-
validateInput(t = !1) {
|
|
314
|
-
if (this.disabled) return;
|
|
315
|
-
const e = this.shouldShowValidation(t), a = this.inputElement?.validity ?? { customError: !1, valid: !0 }, o = !a.valid && !a.customError;
|
|
316
|
-
e && o ? (this.error = !0, this.validationMessage = this.inputElement?.validationMessage || "") : a.valid ? (this.error = !1, a.customError || (this.validationMessage = "")) : e || (this.error = !1);
|
|
317
|
-
}
|
|
318
|
-
checkValidity() {
|
|
319
|
-
const t = this.inputRef.value?.checkValidity() ?? !0, e = super.checkValidity();
|
|
320
|
-
return t && e;
|
|
321
|
-
}
|
|
322
|
-
reportValidity() {
|
|
323
|
-
this.touched = !0, this.submitted = !0;
|
|
324
|
-
const t = this.inputRef.value?.reportValidity() ?? !0;
|
|
325
|
-
this.validateInput(!0);
|
|
326
|
-
const e = super.reportValidity();
|
|
327
|
-
return t && e;
|
|
328
|
-
}
|
|
329
|
-
setCustomValidity(t) {
|
|
330
|
-
this.inputRef.value && this.inputRef.value.setCustomValidity(t), super.setCustomValidity(t), this.error = t !== "" && this.shouldShowValidation();
|
|
331
|
-
}
|
|
332
|
-
firstUpdated() {
|
|
333
|
-
this.autofocus && setTimeout(() => {
|
|
334
|
-
this.focus();
|
|
335
|
-
}, 0), this.setupInputEvents(), this.setupFocusBlurEvents(), this.setupAutofillDetection(), this.setupEnterKeyEvents();
|
|
336
|
-
}
|
|
337
|
-
setupInputEvents() {
|
|
338
|
-
d(this.inputElement, "input").pipe(w((t) => {
|
|
339
|
-
const e = t;
|
|
340
|
-
return { value: t.target.value, inputType: e.inputType, data: e.data, isComposing: e.isComposing, originalEvent: t };
|
|
341
|
-
}), h(this.disconnecting)).subscribe((t) => {
|
|
342
|
-
this.value = t.value, this.dirty = this.value !== this.defaultValue;
|
|
343
|
-
const e = new CustomEvent("input", { detail: { value: t.value }, bubbles: !0, composed: !0 });
|
|
344
|
-
Object.defineProperties(e, { inputType: { value: t.inputType }, data: { value: t.data }, isComposing: { value: t.isComposing } }), this.dispatchEvent(e), this.validateInput();
|
|
345
|
-
}), d(this.inputElement, "change").pipe(w((t) => t.target.value), C(), h(this.disconnecting)).subscribe((t) => {
|
|
346
|
-
this.value = t, this.dirty = this.value !== this.defaultValue, this.emitChange({ value: t }), this.validateInput();
|
|
347
|
-
});
|
|
348
|
-
}
|
|
349
|
-
setupFocusBlurEvents() {
|
|
350
|
-
d(this.inputElement, "focus").pipe(h(this.disconnecting)).subscribe((t) => {
|
|
351
|
-
const e = new CustomEvent("focus", { bubbles: t.bubbles, cancelable: t.cancelable, composed: t.composed });
|
|
352
|
-
Object.defineProperties(e, { relatedTarget: { value: t.relatedTarget } }), this.dispatchEvent(e);
|
|
353
|
-
}), d(this.inputElement, "blur").pipe(h(this.disconnecting)).subscribe((t) => {
|
|
354
|
-
this.touched = !0, this.disabled || this.validateInput();
|
|
355
|
-
const e = new CustomEvent("blur", { bubbles: t.bubbles, cancelable: t.cancelable, composed: t.composed });
|
|
356
|
-
Object.defineProperties(e, { relatedTarget: { value: t.relatedTarget } }), this.dispatchEvent(e);
|
|
357
|
-
});
|
|
358
|
-
}
|
|
359
|
-
setupAutofillDetection() {
|
|
360
|
-
d(this.inputElement, "animationstart").pipe(v((t) => t.animationName === "onAutoFillStart"), h(this.disconnecting)).subscribe((t) => {
|
|
361
|
-
const { value: e } = t.target;
|
|
362
|
-
this.value = e, this.isAutofilled = !0, this.dirty = this.value !== this.defaultValue, this.dispatchEvent(new CustomEvent("autofill", { detail: { value: e }, bubbles: !0, composed: !0 })), this.emitChange({ value: e });
|
|
363
|
-
}), d(this.inputElement, "animationstart").pipe(v((t) => t.animationName === "onAutoFillCancel"), h(this.disconnecting)).subscribe(() => {
|
|
364
|
-
this.isAutofilled = !1;
|
|
365
|
-
});
|
|
366
|
-
}
|
|
367
|
-
setupEnterKeyEvents() {
|
|
368
|
-
d(this.inputElement, "keydown").pipe(v((t) => t.key === "Enter"), h(this.disconnecting)).subscribe((t) => {
|
|
369
|
-
const { value: e } = t.target;
|
|
370
|
-
this.value !== e && (this.value = e, this.dirty = this.value !== this.defaultValue), this.inputElement.blur();
|
|
371
|
-
const a = new CustomEvent("enter", { detail: { value: this.value }, bubbles: !0, composed: !0 });
|
|
372
|
-
Object.defineProperties(a, { key: { value: "Enter" }, code: { value: "Enter" }, keyCode: { value: 13 }, which: { value: 13 } }), this.dispatchEvent(a);
|
|
373
|
-
});
|
|
374
|
-
}
|
|
375
|
-
select() {
|
|
376
|
-
return this.inputRef.value?.select();
|
|
377
|
-
}
|
|
378
|
-
getValidity() {
|
|
379
|
-
return this.inputRef.value?.validity;
|
|
380
|
-
}
|
|
381
|
-
setSelectionRange(t, e, a) {
|
|
382
|
-
this.inputRef.value?.setSelectionRange(t, e, a);
|
|
383
|
-
}
|
|
384
|
-
get selectionStart() {
|
|
385
|
-
return this.inputRef.value?.selectionStart ?? null;
|
|
386
|
-
}
|
|
387
|
-
get selectionEnd() {
|
|
388
|
-
return this.inputRef.value?.selectionEnd ?? null;
|
|
389
|
-
}
|
|
390
|
-
get selectionDirection() {
|
|
391
|
-
return this.inputRef.value?.selectionDirection ?? null;
|
|
392
|
-
}
|
|
393
|
-
setRangeText(t, e, a, o) {
|
|
394
|
-
e !== void 0 && a !== void 0 ? this.inputRef.value?.setRangeText(t, e, a, o) : this.inputRef.value?.setRangeText(t);
|
|
395
|
-
}
|
|
396
|
-
focus(t) {
|
|
397
|
-
this.inputRef.value?.focus(t), this.dispatchEvent(new Event("focus"));
|
|
398
|
-
}
|
|
399
|
-
click() {
|
|
400
|
-
this.inputRef.value?.click(), this.dispatchEvent(new Event("click"));
|
|
401
|
-
}
|
|
402
|
-
blur() {
|
|
403
|
-
this.inputRef.value?.blur(), this.dispatchEvent(new Event("blur"));
|
|
404
|
-
}
|
|
405
|
-
render() {
|
|
406
|
-
const { height: t, padding: e, fontSize: a } = (() => {
|
|
407
|
-
switch (this.size) {
|
|
408
|
-
case "sm":
|
|
409
|
-
return { height: "40px", padding: "0 8px", fontSize: "0.875rem" };
|
|
410
|
-
case "lg":
|
|
411
|
-
return { height: "60px", padding: "0 20px", fontSize: "1.125rem" };
|
|
412
|
-
default:
|
|
413
|
-
return { height: "50px", padding: "0 16px", fontSize: "1rem" };
|
|
414
|
-
}
|
|
415
|
-
})(), o = ["date", "datetime-local", "time", "month", "week"].includes(this.type), c = { "block w-full min-w-0 rounded-[8px] border-0 bg-surface-highest text-surface-on": !0, "outline-secondary-default focus:outline-1": !0, "disabled:opacity-40 disabled:cursor-not-allowed": !0, "placeholder:text-muted": !0, "ring-0 ring-inset focus:ring-1 focus:ring-inset": !0, "ring-secondary-default ring-outline focus:ring-secondary-default": !this.error, "ring-error-default focus:ring-error-default": this.error, "caret-transparent focus:outline-hidden cursor-pointer select-none": this.readonly, "cursor-pointer": this.clickable, "text-left": this.align === "left" || o, "text-center": this.align === "center" && !o, "text-right": this.align === "right" && !o, autofilled: this.isAutofilled }, u = { "block mb-1 font-medium": !0, "opacity-40": this.disabled, "text-sm": this.size === "sm", "text-base": this.size === "md", "text-lg": this.size === "lg", "text-primary-default": !this.error, "text-error-default": this.error }, f = { height: t, padding: e, fontSize: a, lineHeight: t };
|
|
416
|
-
return y`
|
|
417
|
-
<div class="w-full min-w-0 ${o ? "date-input-container" : ""}">
|
|
418
|
-
${E(this.label, () => y`
|
|
419
|
-
<label
|
|
420
|
-
for=${this.id}
|
|
421
|
-
class=${this.classMap(u)}
|
|
422
|
-
>
|
|
423
|
-
${this.label}
|
|
424
|
-
</label>
|
|
425
|
-
`)}
|
|
426
|
-
|
|
427
|
-
<input
|
|
428
|
-
${V(this.inputRef)}
|
|
429
|
-
id=${this.id}
|
|
430
|
-
name=${this.name}
|
|
431
|
-
class=${this.classMap(c)}
|
|
432
|
-
style=${this.styleMap(f)}
|
|
433
|
-
.value=${this.value}
|
|
434
|
-
.type=${this.type}
|
|
435
|
-
.autocomplete=${this.autocomplete}
|
|
436
|
-
.spellcheck=${this.spellcheck}
|
|
437
|
-
placeholder=${this.placeholder}
|
|
438
|
-
inputmode=${p(this.inputmode)}
|
|
439
|
-
pattern=${p(this.pattern)}
|
|
440
|
-
step=${p(this.step)}
|
|
441
|
-
minlength=${p(this.minlength)}
|
|
442
|
-
maxlength=${p(this.maxlength)}
|
|
443
|
-
min=${p(this.min)}
|
|
444
|
-
max=${p(this.max)}
|
|
445
|
-
list=${p(this.list)}
|
|
446
|
-
?required=${this.required}
|
|
447
|
-
?disabled=${this.disabled}
|
|
448
|
-
?readonly=${this.readonly}
|
|
449
|
-
aria-invalid=${this.error ? "true" : "false"}
|
|
450
|
-
aria-required=${this.required ? "true" : "false"}
|
|
451
|
-
aria-labelledby=${this.label ? `label-${this.id}` : g}
|
|
452
|
-
aria-describedby=${this.hint || this.validationMessage ? `hint-${this.id}` : g}
|
|
453
|
-
aria-label=${p(this.label ? void 0 : this.placeholder || "Input")}
|
|
454
|
-
/>
|
|
455
|
-
|
|
456
|
-
${E(this.hint || this.error && this.validationMessage, () => y`
|
|
457
|
-
<div
|
|
458
|
-
id="hint-${this.id}"
|
|
459
|
-
class="mt-1 text-sm ${this.error ? "text-error-default" : "text-surface-onVariant"}"
|
|
460
|
-
>
|
|
461
|
-
${this.error && this.validationMessage ? this.validationMessage : this.hint}
|
|
462
|
-
</div>
|
|
463
|
-
`)}
|
|
464
|
-
</div>
|
|
465
|
-
`;
|
|
466
|
-
}
|
|
467
|
-
};
|
|
468
|
-
r._idCounter = 0, r.shadowRootOptions = { ...k.shadowRootOptions, delegatesFocus: !0 }, l([i({ type: String, reflect: !0 })], r.prototype, "value", 2), l([i({ reflect: !0 })], r.prototype, "type", 2), l([i()], r.prototype, "placeholder", 2), l([i({ type: String, reflect: !0 })], r.prototype, "pattern", 2), l([i({ type: Boolean, reflect: !0 })], r.prototype, "clickable", 2), l([i({ type: Boolean, reflect: !0 })], r.prototype, "spellcheck", 2), l([i({ type: String, reflect: !0 })], r.prototype, "align", 2), l([i()], r.prototype, "inputmode", 2), l([i({ type: Number, reflect: !0 })], r.prototype, "minlength", 2), l([i({ type: Number })], r.prototype, "maxlength", 2), l([i()], r.prototype, "min", 2), l([i()], r.prototype, "max", 2), l([i({ type: Number, reflect: !0 })], r.prototype, "step", 2), l([i({ type: Boolean })], r.prototype, "autofocus", 2), l([i({ type: String, reflect: !0 })], r.prototype, "autocomplete", 2), l([i({ type: Number, reflect: !0 })], r.prototype, "tabIndex", 2), l([i({ type: String, reflect: !0 })], r.prototype, "size", 2), l([i({ type: String })], r.prototype, "validateOn", 2), l([i({ type: String })], r.prototype, "list", 2), l([$("input")], r.prototype, "inputElement", 2), l([m()], r.prototype, "isAutofilled", 2), l([m()], r.prototype, "touched", 2), l([m()], r.prototype, "dirty", 2), l([m()], r.prototype, "submitted", 2), l([m()], r.prototype, "defaultValue", 2), r = l([R("schmancy-input")], r);
|
|
469
|
-
export {
|
|
470
|
-
s as S,
|
|
471
|
-
r as a
|
|
472
|
-
};
|
|
473
|
-
//# sourceMappingURL=input-B7Q3RRwE.js.map
|