smoothly 1.112.0 → 1.114.0
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/cjs/loader.cjs.js +1 -1
- package/dist/cjs/smoothly-app_98.cjs.entry.js +293 -219
- package/dist/cjs/smoothly-app_98.cjs.entry.js.map +1 -1
- package/dist/cjs/smoothly-input-checkbox-demo.cjs.entry.js +1 -1
- package/dist/cjs/smoothly-submit.cjs.entry.js +1 -1
- package/dist/cjs/smoothly-trigger-sink.cjs.entry.js +1 -1
- package/dist/cjs/smoothly-trigger-source.cjs.entry.js +1 -1
- package/dist/cjs/smoothly.cjs.js +1 -1
- package/dist/collection/components/icon/demo/index.js +25 -3
- package/dist/collection/components/icon/demo/index.js.map +1 -1
- package/dist/collection/components/input/checkbox/demo/index.js +1 -1
- package/dist/collection/components/input/checkbox/index.js +2 -2
- package/dist/collection/components/input/clear/index.js +1 -1
- package/dist/collection/components/input/color/demo/index.js +1 -1
- package/dist/collection/components/input/color/index.js +2 -2
- package/dist/collection/components/input/date/index.js +1 -1
- package/dist/collection/components/input/date/range/index.js +3 -3
- package/dist/collection/components/input/date/text/index.js +1 -1
- package/dist/collection/components/input/date/time/index.js +5 -5
- package/dist/collection/components/input/demo/date/index.js +1 -1
- package/dist/collection/components/input/demo/index.js +4 -4
- package/dist/collection/components/input/demo/price/index.js +1 -1
- package/dist/collection/components/input/demo/radio/index.js +1 -1
- package/dist/collection/components/input/demo/standard/index.js +1 -1
- package/dist/collection/components/input/demo/standard/index.js.map +1 -1
- package/dist/collection/components/input/demo/user-input/index.js +3 -3
- package/dist/collection/components/input/edit/index.js +1 -1
- package/dist/collection/components/input/file/index.js +1 -1
- package/dist/collection/components/input/index.js +2 -2
- package/dist/collection/components/input/month/index.js +4 -4
- package/dist/collection/components/input/radio/item/index.js +1 -1
- package/dist/collection/components/input/range/demo/index.js +1 -1
- package/dist/collection/components/input/range/index.js +4 -4
- package/dist/collection/components/input/reset/index.js +1 -1
- package/dist/collection/components/input/select/index.js +121 -133
- package/dist/collection/components/input/select/index.js.map +1 -1
- package/dist/collection/components/input/select/layout.js +21 -0
- package/dist/collection/components/input/select/layout.js.map +1 -0
- package/dist/collection/components/input/select/menu.js +33 -0
- package/dist/collection/components/input/select/menu.js.map +1 -0
- package/dist/collection/components/input/select/scroll.js +14 -0
- package/dist/collection/components/input/select/scroll.js.map +1 -0
- package/dist/collection/components/input/select/style.css +72 -64
- package/dist/collection/components/input/submit/index.js +1 -1
- package/dist/collection/components/item/index.js +1 -1
- package/dist/collection/components/label/index.js +2 -2
- package/dist/collection/components/lazy/index.js +1 -1
- package/dist/collection/components/load-more/index.js +1 -1
- package/dist/collection/components/modal/index.js +2 -2
- package/dist/collection/components/notification/index.js +1 -1
- package/dist/collection/components/notifier/index.js +1 -1
- package/dist/collection/components/spinner/index.js +2 -2
- package/dist/collection/components/submit/index.js +1 -1
- package/dist/collection/components/summary/index.js +1 -1
- package/dist/collection/components/table/body/index.js +1 -1
- package/dist/collection/components/table/cell/index.js +1 -1
- package/dist/collection/components/table/demo/colspan/index.js +1 -1
- package/dist/collection/components/table/demo/filler-row/index.js +1 -1
- package/dist/collection/components/table/demo/group/index.js +1 -1
- package/dist/collection/components/table/demo/index.js +1 -1
- package/dist/collection/components/table/demo/nested-no-cell/index.js +2 -2
- package/dist/collection/components/table/demo/nested-no-cell/inner/index.js +1 -1
- package/dist/collection/components/table/demo/simple/simple.js +1 -1
- package/dist/collection/components/table/expandable/cell/index.js +1 -1
- package/dist/collection/components/table/expandable/row/index.js +1 -1
- package/dist/collection/components/table/filler-row/index.js +1 -1
- package/dist/collection/components/table/foot/index.js +1 -1
- package/dist/collection/components/table/group/index.js +1 -1
- package/dist/collection/components/table/head/index.js +2 -2
- package/dist/collection/components/table/index.js +1 -1
- package/dist/collection/components/table/row/index.js +1 -1
- package/dist/collection/components/tabs/demo/index.js +1 -1
- package/dist/collection/components/tabs/tab/index.js +1 -1
- package/dist/collection/components/theme/color/index.js +1 -1
- package/dist/collection/components/theme/demo/index.js +1 -1
- package/dist/collection/components/theme/guide/index.js +8 -8
- package/dist/collection/components/theme/picker/index.js +2 -2
- package/dist/collection/components/toggle-switch/demo/index.js +1 -1
- package/dist/collection/components/toggle-switch/index.js +1 -1
- package/dist/collection/components/trigger/index.js +1 -1
- package/dist/collection/components/trigger/sink/index.js +1 -1
- package/dist/collection/components/trigger/source/index.js +1 -1
- package/dist/components/{p-BqAN7jax.js → p-1j2KmcfQ.js} +2 -2
- package/dist/components/{p-C519IJGa.js → p-4pGbxojU.js} +2 -2
- package/dist/components/{p-Bs8X_nDB.js → p-67RlLkJb.js} +2 -2
- package/dist/components/{p-Bm-gpoFa.js → p-6PsJb2Ez.js} +2 -2
- package/dist/components/{p-B8ljN4o0.js → p-AX8gOGUr.js} +2 -2
- package/dist/components/{p-Cvl7cLxT.js → p-B0kZrKne.js} +2 -2
- package/dist/components/{p-i8IFRTdL.js → p-B2MMqcTF.js} +2 -2
- package/dist/components/{p-jatJrx5f.js → p-B6sHuEsq.js} +2 -2
- package/dist/components/{p-DwYc62Ls.js → p-BEHgXDtQ.js} +2 -2
- package/dist/components/{p-CGG77xzV.js → p-BFJL6rrU.js} +2 -2
- package/dist/components/p-BGBbdXaw.js +2 -0
- package/dist/components/{p-BaGuG5hS.js → p-BGzrO9CQ.js} +2 -2
- package/dist/components/{p-DBuVH8IL.js → p-BHcHgI_e.js} +2 -2
- package/dist/components/p-BHsrC9Oh.js +2 -0
- package/dist/components/{p-CottiZWN.js.map → p-BHsrC9Oh.js.map} +1 -1
- package/dist/components/{p-CioJtwj-.js → p-BRoShuOu.js} +2 -2
- package/dist/components/{p-CKrPTQ_S.js → p-BUa0wBSK.js} +2 -2
- package/dist/components/p-BXoBluZQ.js +2 -0
- package/dist/components/{p-BRkEF66h.js → p-B_z5-Hf8.js} +2 -2
- package/dist/components/p-BanWK6rV.js +2 -0
- package/dist/components/{p-Dekg3IGr.js → p-Bes8H54c.js} +2 -2
- package/dist/components/{p-BDhPxj59.js → p-BfwEfI7H.js} +2 -2
- package/dist/components/{p-3dApo-uA.js → p-Bn7CZqdz.js} +2 -2
- package/dist/components/{p-BPh3sXo6.js → p-BpV6GXd7.js} +2 -2
- package/dist/components/{p-CsLlJDsh.js → p-Bpc6uh0M.js} +2 -2
- package/dist/components/p-Bq5YEPPT.js +2 -0
- package/dist/components/p-Bq5YEPPT.js.map +1 -0
- package/dist/components/{p-CVH3vlKv.js → p-BulPH2Jo.js} +2 -2
- package/dist/components/{p-CuMoDdaf.js → p-C-zr_dP8.js} +2 -2
- package/dist/components/{p-CTPT9Ngc.js → p-C02MtoAQ.js} +2 -2
- package/dist/components/{p-CR1YZ3na.js → p-C2xjUTYO.js} +2 -2
- package/dist/components/{p-Dx5PGIAk.js → p-C6T0ZB2C.js} +2 -2
- package/dist/components/{p-BiwhssQ8.js → p-CAgJrhiy.js} +2 -2
- package/dist/components/p-CApTrLt_.js +2 -0
- package/dist/components/{p-D1uYEo7L.js → p-CClpvMw2.js} +2 -2
- package/dist/components/{p-CG636AEF.js → p-CFgT9iMG.js} +2 -2
- package/dist/components/p-CJEV2v84.js +2 -0
- package/dist/components/p-CJEV2v84.js.map +1 -0
- package/dist/components/p-CKlr_F9h.js +2 -0
- package/dist/components/{p-DZ4ogW8V.js → p-CL7fW_Oh.js} +2 -2
- package/dist/components/{p-DVuQ4t_X.js → p-COK__8-d.js} +2 -2
- package/dist/components/{p-CRTkSTv3.js → p-CPnXAdGI.js} +2 -2
- package/dist/components/{p-CqSJ0pgl.js → p-CSXWpZjy.js} +2 -2
- package/dist/components/{p-D2FsRCII.js → p-CTdXhHGF.js} +2 -2
- package/dist/components/{p-iucZC6z5.js → p-CUdZx76u.js} +2 -2
- package/dist/components/{p-Bj9DsW03.js → p-CVNSeOlg.js} +2 -2
- package/dist/components/{p-BX6yRNGo.js → p-CcXqouEO.js} +2 -2
- package/dist/components/p-CgCEK6Lc.js +2 -0
- package/dist/components/{p-CUiFFtAw.js.map → p-CgCEK6Lc.js.map} +1 -1
- package/dist/components/{p-CF5IKGi5.js → p-CmPHR3tf.js} +2 -2
- package/dist/components/{p-BNnhxQyl.js → p-CoJyQegK.js} +2 -2
- package/dist/components/{p-BQSKXVmh.js → p-CooymHn6.js} +2 -2
- package/dist/components/{p-CMiST1Tm.js → p-CqMnH54Q.js} +2 -2
- package/dist/components/p-CqSiLhUe.js +2 -0
- package/dist/components/p-CqSiLhUe.js.map +1 -0
- package/dist/components/{p-BQIS-JBV.js → p-CqXSfYre.js} +2 -2
- package/dist/components/{p-D7cDUGTe.js → p-CqyGm3oe.js} +2 -2
- package/dist/components/{p-C_f8s6n5.js → p-CrKwvG9J.js} +2 -2
- package/dist/components/{p-nrkV1PqR.js → p-CrkBYYf-.js} +2 -2
- package/dist/components/{p-DTqtObrT.js → p-CtuuZV3u.js} +2 -2
- package/dist/components/p-Cv-uvD7X.js +2 -0
- package/dist/components/p-Cw_sHLuu.js +2 -0
- package/dist/components/{p-CjdBPauI.js → p-D-mAUrbR.js} +2 -2
- package/dist/components/{p-C3__jhwf.js → p-D5WTwmc6.js} +2 -2
- package/dist/components/{p-ByWVc-XC.js → p-D5dkLuTD.js} +2 -2
- package/dist/components/p-DGa_QPb9.js +2 -0
- package/dist/components/{p-1KOtWYkC.js.map → p-DGa_QPb9.js.map} +1 -1
- package/dist/components/p-DIf6-Fvg.js +2 -0
- package/dist/components/{p-DgaHxdNI.js → p-DIhqNc1G.js} +2 -2
- package/dist/components/p-DLBMEh0f.js +2 -0
- package/dist/components/{p-CrxXCTnH.js → p-DM3PMEgb.js} +2 -2
- package/dist/components/{p-DnLJBwZR.js → p-DS66Mn9S.js} +2 -2
- package/dist/components/p-DYNjCosy.js +2 -0
- package/dist/components/{p-CdgiqBtD.js.map → p-DYNjCosy.js.map} +1 -1
- package/dist/components/p-D_uKY0yY.js +2 -0
- package/dist/components/p-DkhX1qsg.js +2 -0
- package/dist/components/p-Dz8Bblye.js +2 -0
- package/dist/components/{p-t3cG0BK6.js.map → p-Dz8Bblye.js.map} +1 -1
- package/dist/components/p-He4KDK9-.js +2 -0
- package/dist/components/p-N-UYdc5h.js +2 -0
- package/dist/components/{p-Mk_F6MCP.js.map → p-N-UYdc5h.js.map} +1 -1
- package/dist/components/{p-DKggy9E3.js → p-NFd9Dxr1.js} +2 -2
- package/dist/components/{p-DSsOLbj6.js → p-NGbZCAH9.js} +2 -2
- package/dist/components/{p-Bp9BMsim.js → p-Qv-IgIvL.js} +2 -2
- package/dist/components/{p-R4uIvvER.js → p-Ww5QjB3D.js} +2 -2
- package/dist/components/{p-BaBGzDg_.js → p-_o_lUhve.js} +2 -2
- package/dist/components/{p-CtN3gqjJ.js → p-d26Fb7IS.js} +2 -2
- package/dist/components/{p-DMzn0Iz0.js → p-dBpTpVs8.js} +2 -2
- package/dist/components/{p-BS2SWUX6.js → p-fnKrPnzp.js} +2 -2
- package/dist/components/{p-DXHBXAV0.js → p-nFLcvugJ.js} +2 -2
- package/dist/components/{p-v06atw3t.js → p-qxJgmVrq.js} +2 -2
- package/dist/components/{p-C9zTTp-4.js → p-xkRxEiC8.js} +2 -2
- package/dist/components/smoothly-app-demo.js +1 -1
- package/dist/components/smoothly-app-room.js +1 -1
- package/dist/components/smoothly-app.js +1 -1
- package/dist/components/smoothly-button-demo-standard.js +1 -1
- package/dist/components/smoothly-button-demo.js +1 -1
- package/dist/components/smoothly-calendar.js +1 -1
- package/dist/components/smoothly-date-text.js +1 -1
- package/dist/components/smoothly-dialog-demo.js +1 -1
- package/dist/components/smoothly-dialog.js +1 -1
- package/dist/components/smoothly-display-demo.js +1 -1
- package/dist/components/smoothly-form-demo-all.js +1 -1
- package/dist/components/smoothly-form-demo-card.js +1 -1
- package/dist/components/smoothly-form-demo-controlled.js +1 -1
- package/dist/components/smoothly-form-demo-date-range.js +1 -1
- package/dist/components/smoothly-form-demo-date.js +1 -1
- package/dist/components/smoothly-form-demo-login.js +1 -1
- package/dist/components/smoothly-form-demo-pet.js +1 -1
- package/dist/components/smoothly-form-demo-prices.js +1 -1
- package/dist/components/smoothly-form-demo-schedule.js +1 -1
- package/dist/components/smoothly-form-demo-transparent.js +1 -1
- package/dist/components/smoothly-form-demo-typed.js +1 -1
- package/dist/components/smoothly-form-demo.js +1 -1
- package/dist/components/smoothly-form.js +1 -1
- package/dist/components/smoothly-icon-demo.js +1 -1
- package/dist/components/smoothly-input-checkbox-demo.js +1 -1
- package/dist/components/smoothly-input-checkbox.js +1 -1
- package/dist/components/smoothly-input-clear.js +1 -1
- package/dist/components/smoothly-input-color-demo.js +1 -1
- package/dist/components/smoothly-input-color.js +1 -1
- package/dist/components/smoothly-input-date-demo.js +1 -1
- package/dist/components/smoothly-input-date-range.js +1 -1
- package/dist/components/smoothly-input-date-time.js +1 -1
- package/dist/components/smoothly-input-date.js +1 -1
- package/dist/components/smoothly-input-demo-radio.js +1 -1
- package/dist/components/smoothly-input-demo-standard.js +1 -1
- package/dist/components/smoothly-input-demo-user-input.js +1 -1
- package/dist/components/smoothly-input-demo.js +1 -1
- package/dist/components/smoothly-input-edit.js +1 -1
- package/dist/components/smoothly-input-file.js +1 -1
- package/dist/components/smoothly-input-month.js +1 -1
- package/dist/components/smoothly-input-price-demo.js +1 -1
- package/dist/components/smoothly-input-radio-item.js +1 -1
- package/dist/components/smoothly-input-radio.js +1 -1
- package/dist/components/smoothly-input-range-demo.js +1 -1
- package/dist/components/smoothly-input-range.js +1 -1
- package/dist/components/smoothly-input-reset.js +1 -1
- package/dist/components/smoothly-input-select.js +1 -1
- package/dist/components/smoothly-input-submit.js +1 -1
- package/dist/components/smoothly-input.js +1 -1
- package/dist/components/smoothly-item.js +1 -1
- package/dist/components/smoothly-label.js +1 -1
- package/dist/components/smoothly-lazy.js +1 -1
- package/dist/components/smoothly-load-more.js +1 -1
- package/dist/components/smoothly-modal.js +1 -1
- package/dist/components/smoothly-notification.js +1 -1
- package/dist/components/smoothly-notifier.js +1 -1
- package/dist/components/smoothly-spinner.js +1 -1
- package/dist/components/smoothly-submit.js +1 -1
- package/dist/components/smoothly-summary.js +1 -1
- package/dist/components/smoothly-tab.js +1 -1
- package/dist/components/smoothly-table-body.js +1 -1
- package/dist/components/smoothly-table-cell.js +1 -1
- package/dist/components/smoothly-table-demo-colspan.js +1 -1
- package/dist/components/smoothly-table-demo-filler-row.js +1 -1
- package/dist/components/smoothly-table-demo-group.js +1 -1
- package/dist/components/smoothly-table-demo-nested-no-cell-inner.js +1 -1
- package/dist/components/smoothly-table-demo-nested-no-cell.js +1 -1
- package/dist/components/smoothly-table-demo-simple.js +1 -1
- package/dist/components/smoothly-table-demo.js +1 -1
- package/dist/components/smoothly-table-expandable-cell.js +1 -1
- package/dist/components/smoothly-table-expandable-row.js +1 -1
- package/dist/components/smoothly-table-filler-row.js +1 -1
- package/dist/components/smoothly-table-foot.js +1 -1
- package/dist/components/smoothly-table-head.js +1 -1
- package/dist/components/smoothly-table-row-group.js +1 -1
- package/dist/components/smoothly-table-row.js +1 -1
- package/dist/components/smoothly-table.js +1 -1
- package/dist/components/smoothly-tabs-demo.js +1 -1
- package/dist/components/smoothly-theme-color.js +1 -1
- package/dist/components/smoothly-theme-colors.js +1 -1
- package/dist/components/smoothly-theme-demo.js +1 -1
- package/dist/components/smoothly-theme-guide.js +1 -1
- package/dist/components/smoothly-theme-picker.js +1 -1
- package/dist/components/smoothly-toggle-switch-demo.js +1 -1
- package/dist/components/smoothly-toggle-switch.js +1 -1
- package/dist/components/smoothly-trigger-sink.js +1 -1
- package/dist/components/smoothly-trigger-source.js +1 -1
- package/dist/components/smoothly-trigger.js +1 -1
- package/dist/esm/loader.js +1 -1
- package/dist/esm/smoothly-app_98.entry.js +293 -219
- package/dist/esm/smoothly-app_98.entry.js.map +1 -1
- package/dist/esm/smoothly-input-checkbox-demo.entry.js +1 -1
- package/dist/esm/smoothly-submit.entry.js +1 -1
- package/dist/esm/smoothly-trigger-sink.entry.js +1 -1
- package/dist/esm/smoothly-trigger-source.entry.js +1 -1
- package/dist/esm/smoothly.js +1 -1
- package/dist/smoothly/p-7d6c72eb.entry.js +2 -0
- package/dist/smoothly/{p-5e123fe2.entry.js → p-94d091cd.entry.js} +2 -2
- package/dist/smoothly/{p-13d05a22.entry.js → p-be43737e.entry.js} +2 -2
- package/dist/smoothly/{p-7a59c6a9.entry.js → p-d4dad5a8.entry.js} +2 -2
- package/dist/smoothly/p-e7c5888e.entry.js +2 -0
- package/dist/smoothly/p-e7c5888e.entry.js.map +1 -0
- package/dist/smoothly/smoothly.esm.js +1 -1
- package/dist/types/components/icon/demo/index.d.ts +2 -0
- package/dist/types/components/input/select/index.d.ts +18 -9
- package/dist/types/components/input/select/layout.d.ts +6 -0
- package/dist/types/components/input/select/menu.d.ts +10 -0
- package/dist/types/components/input/select/scroll.d.ts +3 -0
- package/dist/types/components.d.ts +5 -3
- package/package.json +1 -1
- package/dist/components/p-1KOtWYkC.js +0 -2
- package/dist/components/p-4y8eF-fy.js +0 -2
- package/dist/components/p-B3OjIxsE.js +0 -2
- package/dist/components/p-BGKOGyFA.js +0 -2
- package/dist/components/p-CDQM-sOT.js +0 -2
- package/dist/components/p-CUiFFtAw.js +0 -2
- package/dist/components/p-CZ6kkjYF.js +0 -2
- package/dist/components/p-CdgiqBtD.js +0 -2
- package/dist/components/p-CottiZWN.js +0 -2
- package/dist/components/p-CqyInbXs.js +0 -2
- package/dist/components/p-CqyInbXs.js.map +0 -1
- package/dist/components/p-CrcmijCR.js +0 -2
- package/dist/components/p-D2cHi1Nb.js +0 -2
- package/dist/components/p-D58kSmOp.js +0 -2
- package/dist/components/p-D9qp7S6Q.js +0 -2
- package/dist/components/p-DbIjGsJb.js +0 -2
- package/dist/components/p-DbIjGsJb.js.map +0 -1
- package/dist/components/p-DdTTiJbE.js +0 -2
- package/dist/components/p-Mk_F6MCP.js +0 -2
- package/dist/components/p-RNCr3p17.js +0 -2
- package/dist/components/p-RNCr3p17.js.map +0 -1
- package/dist/components/p-nHKstm2X.js +0 -2
- package/dist/components/p-t3cG0BK6.js +0 -2
- package/dist/components/p-thKhutym.js +0 -2
- package/dist/smoothly/p-23badc13.entry.js +0 -2
- package/dist/smoothly/p-23badc13.entry.js.map +0 -1
- package/dist/smoothly/p-2fbd48bb.entry.js +0 -2
- /package/dist/components/{p-BqAN7jax.js.map → p-1j2KmcfQ.js.map} +0 -0
- /package/dist/components/{p-C519IJGa.js.map → p-4pGbxojU.js.map} +0 -0
- /package/dist/components/{p-Bs8X_nDB.js.map → p-67RlLkJb.js.map} +0 -0
- /package/dist/components/{p-Bm-gpoFa.js.map → p-6PsJb2Ez.js.map} +0 -0
- /package/dist/components/{p-B8ljN4o0.js.map → p-AX8gOGUr.js.map} +0 -0
- /package/dist/components/{p-Cvl7cLxT.js.map → p-B0kZrKne.js.map} +0 -0
- /package/dist/components/{p-i8IFRTdL.js.map → p-B2MMqcTF.js.map} +0 -0
- /package/dist/components/{p-jatJrx5f.js.map → p-B6sHuEsq.js.map} +0 -0
- /package/dist/components/{p-DwYc62Ls.js.map → p-BEHgXDtQ.js.map} +0 -0
- /package/dist/components/{p-CGG77xzV.js.map → p-BFJL6rrU.js.map} +0 -0
- /package/dist/components/{p-CrcmijCR.js.map → p-BGBbdXaw.js.map} +0 -0
- /package/dist/components/{p-BaGuG5hS.js.map → p-BGzrO9CQ.js.map} +0 -0
- /package/dist/components/{p-DBuVH8IL.js.map → p-BHcHgI_e.js.map} +0 -0
- /package/dist/components/{p-CioJtwj-.js.map → p-BRoShuOu.js.map} +0 -0
- /package/dist/components/{p-CKrPTQ_S.js.map → p-BUa0wBSK.js.map} +0 -0
- /package/dist/components/{p-BGKOGyFA.js.map → p-BXoBluZQ.js.map} +0 -0
- /package/dist/components/{p-BRkEF66h.js.map → p-B_z5-Hf8.js.map} +0 -0
- /package/dist/components/{p-D9qp7S6Q.js.map → p-BanWK6rV.js.map} +0 -0
- /package/dist/components/{p-Dekg3IGr.js.map → p-Bes8H54c.js.map} +0 -0
- /package/dist/components/{p-BDhPxj59.js.map → p-BfwEfI7H.js.map} +0 -0
- /package/dist/components/{p-3dApo-uA.js.map → p-Bn7CZqdz.js.map} +0 -0
- /package/dist/components/{p-BPh3sXo6.js.map → p-BpV6GXd7.js.map} +0 -0
- /package/dist/components/{p-CsLlJDsh.js.map → p-Bpc6uh0M.js.map} +0 -0
- /package/dist/components/{p-CVH3vlKv.js.map → p-BulPH2Jo.js.map} +0 -0
- /package/dist/components/{p-CuMoDdaf.js.map → p-C-zr_dP8.js.map} +0 -0
- /package/dist/components/{p-CTPT9Ngc.js.map → p-C02MtoAQ.js.map} +0 -0
- /package/dist/components/{p-CR1YZ3na.js.map → p-C2xjUTYO.js.map} +0 -0
- /package/dist/components/{p-Dx5PGIAk.js.map → p-C6T0ZB2C.js.map} +0 -0
- /package/dist/components/{p-BiwhssQ8.js.map → p-CAgJrhiy.js.map} +0 -0
- /package/dist/components/{p-CDQM-sOT.js.map → p-CApTrLt_.js.map} +0 -0
- /package/dist/components/{p-D1uYEo7L.js.map → p-CClpvMw2.js.map} +0 -0
- /package/dist/components/{p-CG636AEF.js.map → p-CFgT9iMG.js.map} +0 -0
- /package/dist/components/{p-nHKstm2X.js.map → p-CKlr_F9h.js.map} +0 -0
- /package/dist/components/{p-DZ4ogW8V.js.map → p-CL7fW_Oh.js.map} +0 -0
- /package/dist/components/{p-DVuQ4t_X.js.map → p-COK__8-d.js.map} +0 -0
- /package/dist/components/{p-CRTkSTv3.js.map → p-CPnXAdGI.js.map} +0 -0
- /package/dist/components/{p-CqSJ0pgl.js.map → p-CSXWpZjy.js.map} +0 -0
- /package/dist/components/{p-D2FsRCII.js.map → p-CTdXhHGF.js.map} +0 -0
- /package/dist/components/{p-iucZC6z5.js.map → p-CUdZx76u.js.map} +0 -0
- /package/dist/components/{p-Bj9DsW03.js.map → p-CVNSeOlg.js.map} +0 -0
- /package/dist/components/{p-BX6yRNGo.js.map → p-CcXqouEO.js.map} +0 -0
- /package/dist/components/{p-CF5IKGi5.js.map → p-CmPHR3tf.js.map} +0 -0
- /package/dist/components/{p-BNnhxQyl.js.map → p-CoJyQegK.js.map} +0 -0
- /package/dist/components/{p-BQSKXVmh.js.map → p-CooymHn6.js.map} +0 -0
- /package/dist/components/{p-CMiST1Tm.js.map → p-CqMnH54Q.js.map} +0 -0
- /package/dist/components/{p-BQIS-JBV.js.map → p-CqXSfYre.js.map} +0 -0
- /package/dist/components/{p-D7cDUGTe.js.map → p-CqyGm3oe.js.map} +0 -0
- /package/dist/components/{p-C_f8s6n5.js.map → p-CrKwvG9J.js.map} +0 -0
- /package/dist/components/{p-nrkV1PqR.js.map → p-CrkBYYf-.js.map} +0 -0
- /package/dist/components/{p-DTqtObrT.js.map → p-CtuuZV3u.js.map} +0 -0
- /package/dist/components/{p-4y8eF-fy.js.map → p-Cv-uvD7X.js.map} +0 -0
- /package/dist/components/{p-D58kSmOp.js.map → p-Cw_sHLuu.js.map} +0 -0
- /package/dist/components/{p-CjdBPauI.js.map → p-D-mAUrbR.js.map} +0 -0
- /package/dist/components/{p-C3__jhwf.js.map → p-D5WTwmc6.js.map} +0 -0
- /package/dist/components/{p-ByWVc-XC.js.map → p-D5dkLuTD.js.map} +0 -0
- /package/dist/components/{p-CZ6kkjYF.js.map → p-DIf6-Fvg.js.map} +0 -0
- /package/dist/components/{p-DgaHxdNI.js.map → p-DIhqNc1G.js.map} +0 -0
- /package/dist/components/{p-DdTTiJbE.js.map → p-DLBMEh0f.js.map} +0 -0
- /package/dist/components/{p-CrxXCTnH.js.map → p-DM3PMEgb.js.map} +0 -0
- /package/dist/components/{p-DnLJBwZR.js.map → p-DS66Mn9S.js.map} +0 -0
- /package/dist/components/{p-D2cHi1Nb.js.map → p-D_uKY0yY.js.map} +0 -0
- /package/dist/components/{p-thKhutym.js.map → p-DkhX1qsg.js.map} +0 -0
- /package/dist/components/{p-B3OjIxsE.js.map → p-He4KDK9-.js.map} +0 -0
- /package/dist/components/{p-DKggy9E3.js.map → p-NFd9Dxr1.js.map} +0 -0
- /package/dist/components/{p-DSsOLbj6.js.map → p-NGbZCAH9.js.map} +0 -0
- /package/dist/components/{p-Bp9BMsim.js.map → p-Qv-IgIvL.js.map} +0 -0
- /package/dist/components/{p-R4uIvvER.js.map → p-Ww5QjB3D.js.map} +0 -0
- /package/dist/components/{p-BaBGzDg_.js.map → p-_o_lUhve.js.map} +0 -0
- /package/dist/components/{p-CtN3gqjJ.js.map → p-d26Fb7IS.js.map} +0 -0
- /package/dist/components/{p-DMzn0Iz0.js.map → p-dBpTpVs8.js.map} +0 -0
- /package/dist/components/{p-BS2SWUX6.js.map → p-fnKrPnzp.js.map} +0 -0
- /package/dist/components/{p-DXHBXAV0.js.map → p-nFLcvugJ.js.map} +0 -0
- /package/dist/components/{p-v06atw3t.js.map → p-qxJgmVrq.js.map} +0 -0
- /package/dist/components/{p-C9zTTp-4.js.map → p-xkRxEiC8.js.map} +0 -0
- /package/dist/smoothly/{p-2fbd48bb.entry.js.map → p-7d6c72eb.entry.js.map} +0 -0
- /package/dist/smoothly/{p-5e123fe2.entry.js.map → p-94d091cd.entry.js.map} +0 -0
- /package/dist/smoothly/{p-13d05a22.entry.js.map → p-be43737e.entry.js.map} +0 -0
- /package/dist/smoothly/{p-7a59c6a9.entry.js.map → p-d4dad5a8.entry.js.map} +0 -0
|
@@ -2283,7 +2283,7 @@ const SmoothlyInputDateRangeText = class {
|
|
|
2283
2283
|
}
|
|
2284
2284
|
}
|
|
2285
2285
|
render() {
|
|
2286
|
-
return (h(Host, { key: '
|
|
2286
|
+
return (h(Host, { key: '29343df478fdb9a5805aef00432be4456d8e4d12', class: { "has-text": Object.values(this.parts).some(part => !!part) } }, DateFormat$1.Order.toArray(this.order).map((part, index) => {
|
|
2287
2287
|
var _a;
|
|
2288
2288
|
return (h("span", { onClick: () => !this.readonly && !this.disabled && this.setFocus(index) }, h("span", { class: {
|
|
2289
2289
|
"smoothly-date-text-part": true,
|
|
@@ -5792,12 +5792,34 @@ const SmoothlyIconDemo = class {
|
|
|
5792
5792
|
this.props = {};
|
|
5793
5793
|
}
|
|
5794
5794
|
render() {
|
|
5795
|
-
return (h(Host, { key: '
|
|
5795
|
+
return (h(Host, { key: 'f176097a9e8b600e7b6849618d986932e1115dfa' }, h("h2", { key: '600c0aaa4c8d9d66b75b3a9fb2546f8128b00f0b' }, "Filter and Variants"), h("smoothly-form", { key: 'da8b0a10a564b01918e644af025436dd13e1aa8c', looks: "grid", onSmoothlyFormInput: e => (this.display = e.detail) }, h("smoothly-input", { key: '976282ac0d7bf9025e305b975b5800ba8946190d', name: "filter" }, "Filter"), h("smoothly-input-select", { key: '81287920684545cdaedf4ae5df9e79bb8a9eea4b', name: "variant" }, h("span", { key: '8f14bd0559ab879184978aa720fbe9d72002c981', slot: "label" }, "Variant"), h("smoothly-item", { key: '262b691b55fc7a5dc662b50f6e84ac98e04db140', value: "outline" }, "outline"), h("smoothly-item", { key: '9baf50fd4633f0785577bebf8647f9ec4c9da525', value: "sharp" }, "sharp"), h("smoothly-input-clear", { key: '5460d9ba34ad9e5f5bc765893174fb57bf88b189', slot: "end" }))), h("h2", { key: 'a204390a284b9da8171a655c315981111ee29906' }, "Props"), h("smoothly-form", { key: 'bbcb2e224b053d8983a743abd34c0a0186bfcc0f', looks: "grid", onSmoothlyFormInput: e => {
|
|
5796
|
+
this.props = e.detail;
|
|
5797
|
+
console.log("props", this.props);
|
|
5798
|
+
} }, h("smoothly-input-select", { key: '7f0f6e1932f649f5fb300f96a2d6eabc88e701aa', name: "color" }, h("span", { key: '508bbda0d768fc4f661f0f0887857e25d21c7a91', slot: "label" }, "Color"), Color.values.map(color => (h("smoothly-item", { value: color }, h("span", { style: {
|
|
5799
|
+
background: `rgb(var(--smoothly-${color}-color))`,
|
|
5800
|
+
"margin-right": "0.5rem",
|
|
5801
|
+
width: "2.5rem",
|
|
5802
|
+
height: "2.5rem",
|
|
5803
|
+
} }), h("span", null, color)))), h("smoothly-input-clear", { key: 'e9b59296121ab6e415840d4f501ba31a4347e7af', slot: "end" })), h("smoothly-input-select", { key: 'd066f9f4aa8d79c19537b03e9fba85386e673633', name: "fill" }, h("span", { key: 'f6ae683d747cbeb8a3e40e4d240efe08a1ef8ec4', slot: "label" }, "Fill"), Fill.values.map(fill => (h("smoothly-item", { value: fill }, fill))), h("smoothly-input-clear", { key: '594435142c02e0b379f6b54886927069681de3cf', slot: "end" })), h("smoothly-input-select", { key: 'f5f821cfdc6a83063bf22c2eb8417e3fa33845cd', name: "customColor", menuHeight: "12items", ordered: true }, h("span", { key: '2b502f1dc5775cc23df45be8e48da4e297071078', slot: "label" }, "Custom Color"), Color.values.flatMap(c => (h(Fragment, null, ["tint", "color", "shade", "contrast"].map(v => (h("smoothly-item", { value: `--smoothly-${c}-${v}` }, h("span", { style: {
|
|
5804
|
+
background: `rgb(var(--smoothly-${c}-${v}))`,
|
|
5805
|
+
"margin-right": "0.5rem",
|
|
5806
|
+
width: "2.5rem",
|
|
5807
|
+
height: "2.5rem",
|
|
5808
|
+
} }), h("span", null, `rgb(var(--smoothly-${c}-${v}))`)))))))), h("smoothly-input-select", { key: 'ca3d4788ce77f1175a2e9e0cce841f3c8aa5925c', name: "customBackground", menuHeight: "12items", ordered: true }, h("span", { key: 'cd4faa49f2167739f5b00f1b0c734fdf6b8ddc4b', slot: "label" }, "Custom Background"), Color.values.flatMap(c => (h(Fragment, null, ["tint", "color", "shade", "contrast"].map(v => (h("smoothly-item", { value: `--smoothly-${c}-${v}` }, h("span", { style: {
|
|
5809
|
+
background: `rgb(var(--smoothly-${c}-${v}))`,
|
|
5810
|
+
"margin-right": "0.5rem",
|
|
5811
|
+
width: "2.5rem",
|
|
5812
|
+
height: "2.5rem",
|
|
5813
|
+
} }), h("span", null, `rgb(var(--smoothly-${c}-${v}))`)))))))), h("smoothly-input-select", { key: 'bfebecae9f13f019bd13a8baa8c1029468d83c18', name: "flip" }, h("span", { key: 'e8a300bdca3f1db8c36dff27b0df5afd08c6bda7', slot: "label" }, "Flip"), h("smoothly-item", { key: '5f92573e3420ce19c1d291c394259cf0b1b0cb63', value: "x" }, "x"), h("smoothly-item", { key: 'c55f735398bb6b01d83d0d80922214f007983f07', value: "y" }, "y"), h("smoothly-input-clear", { key: '171d0667b92be8ea4b8ef6c38bc4b6170c1db813', slot: "end" })), h("smoothly-input-select", { key: '30ebb8bdb6d5d75b8cfae380bb8a83bccb89b499', name: "size" }, h("span", { key: '62df815da76512b43ae1c4583ff3e61f29ed5133', slot: "label" }, "Size"), h("smoothly-item", { key: '5cb1ff7cb3660016cc243eb24b5f7f3fde4dd08f', value: "tiny" }, "tiny"), h("smoothly-item", { key: '0d4d0f54b705a47741d11f2b5fd29245362ded31', value: "small" }, "small"), h("smoothly-item", { key: 'd4469868285cfa6c6ec5de5609f313f892cc66f1', value: "medium" }, "medium"), h("smoothly-item", { key: '2b98aac9eeacc7942aa9ea73c48b16f36c226033', value: "large" }, "large"), h("smoothly-item", { key: '520ebe334ad34dde56d5f8b5ecb7ca25e6645989', value: "xlarge" }, "xlarge"), h("smoothly-input-clear", { key: '6b6dd6bd7070703371c89175f71ac30049e8042d', slot: "end" })), h("smoothly-input-range", { key: 'c85ffd310deeec0ef502b8549d9bfce3aa0ea895', name: "rotate", step: 1, min: -180, max: 180, value: 0 }, "Rotate", h("smoothly-input-clear", { key: 'a83b8be42b242c1b42b9ab34c9a3c61e0420ab64', slot: "end" }))), h("h1", { key: '02ce154b99955eece2bca3bb28fa47ad8955d18a' }, "Icons"), h("div", { key: 'e40575d19a189a6c8142c40943692854d9899749', class: "icons" }, [
|
|
5796
5814
|
...Icon.Name.values
|
|
5797
5815
|
.filter(name => !this.display.filter || name.includes(this.display.filter))
|
|
5798
5816
|
.map((name) => (this.display.variant ? `${name}-${this.display.variant}` : name)),
|
|
5799
5817
|
...Icon.Logo.values.filter(name => !this.display.filter || name.includes(this.display.filter)),
|
|
5800
|
-
].map(name => (h("smoothly-icon", { name: name, tooltip: name, "data-name": name, color: this.props.color,
|
|
5818
|
+
].map(name => (h("smoothly-icon", { name: name, tooltip: name, "data-name": name, color: this.props.color, style: {
|
|
5819
|
+
fill: this.props["customColor"] ? `rgb(var(${this.props["customColor"]}))` : "",
|
|
5820
|
+
color: this.props["customColor"] ? `rgb(var(${this.props["customColor"]}))` : "",
|
|
5821
|
+
background: this.props["customBackground"] ? `rgb(var(${this.props["customBackground"]}))` : "",
|
|
5822
|
+
}, fill: this.props.fill, flip: this.props.flip, size: this.props.size, rotate: this.props.rotate, onClick: () => {
|
|
5801
5823
|
navigator.clipboard.writeText(name);
|
|
5802
5824
|
this.notice.emit(Notice.succeeded(`Copied "${name}"`));
|
|
5803
5825
|
} }))))));
|
|
@@ -6238,7 +6260,7 @@ const SmoothlyInput = class {
|
|
|
6238
6260
|
}
|
|
6239
6261
|
render() {
|
|
6240
6262
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
6241
|
-
return (h(Host, { key: '
|
|
6263
|
+
return (h(Host, { key: 'c5d524d1f3afd855836d16272830f435bbea828a', class: { "has-value": ((_a = this.state) === null || _a === void 0 ? void 0 : _a.value) != undefined && ((_b = this.state) === null || _b === void 0 ? void 0 : _b.value) != "" }, onclick: () => { var _a; return (_a = this.inputElement) === null || _a === void 0 ? void 0 : _a.focus(); } }, h("slot", { key: '99bf0a11a07a3aa1622cacb8b16979a08f0ab4ec', name: "start" }), h("div", { key: '230008efd3abd69c42442777c0b2091b8499f42e', class: "smoothly-input-container" }, h("div", { key: '37fbfc2747d5c22d1345df109fa74438261f97d7', class: "guide" }, h("div", { key: 'ae7ef0e2563c7058305457d3b45ee54ad0d8f575', class: "value" }, (_c = this.state) === null || _c === void 0 ? void 0 : _c.value), h("div", { key: '3149dc1dc1104e1f7958d71660c634bc9d1532d0', class: "remainder" }, (_d = this.state) === null || _d === void 0 ? void 0 : _d.remainder)), h("input", { key: 'c4205c491d6482072762c8cac4f8b9eb06e8c09b', ref: (el) => (this.inputElement = el), color: this.color, name: this.name, type: (_e = this.state) === null || _e === void 0 ? void 0 : _e.type, inputmode: (_f = this.state) === null || _f === void 0 ? void 0 : _f.inputmode, placeholder: this.placeholder, required: this.required, autocomplete: (_g = this.autocomplete) !== null && _g !== void 0 ? _g : (_h = this.state) === null || _h === void 0 ? void 0 : _h.autocomplete, disabled: this.disabled, readOnly: this.readonly, pattern: ((_j = this.state) === null || _j === void 0 ? void 0 : _j.pattern) && ((_k = this.state) === null || _k === void 0 ? void 0 : _k.pattern.source), onKeyDown: async (event) => {
|
|
6242
6264
|
this.state = this.stateHandler.onKeyDown(event, this.state);
|
|
6243
6265
|
if (!this.readonly && !this.disabled) {
|
|
6244
6266
|
this.smoothlyKeydown.emit(Key.create(this.name, event));
|
|
@@ -6254,7 +6276,7 @@ const SmoothlyInput = class {
|
|
|
6254
6276
|
this.smoothlyUserInput.emit({ name: this.name, value: this.stateHandler.getValue(this.state) });
|
|
6255
6277
|
}
|
|
6256
6278
|
}
|
|
6257
|
-
} }), h("label", { key: '
|
|
6279
|
+
} }), h("label", { key: '009823ce38acac92179f491d72cb504d70f09280', class: "label float-on-focus", htmlFor: this.name }, h("slot", { key: 'b1a6fee2719d4cf37fa73460a3ce42ca40e7ba4b' }))), this.copyable && this.value && (h("span", { key: '575ba5bf3d4fd4bfcc1766e8bed17fb918c15db1', class: "copyable" }, h("small", { key: 'cfcca12301172ebf57db536e4b82faa1f7d430c4' }, this.copied ? "Copied!" : "Copy"), h("smoothly-icon", { key: 'bc941fd7e23670f3232eb29f00124ce94ef201eb', name: "copy-outline", size: "small", onClick: () => this.copyText(this.value), onMouseLeave: () => (this.copied = false) }))), h("smoothly-icon", { key: '87bceaa7c79365c97b4757637dee596a3757e8b7', class: "smoothly-invalid", name: "alert-circle", size: "small", tooltip: this.errorMessage }), h("slot", { key: '39251aaac3bdd727fbfaf16eb79048d2a29231e6', name: "end" })));
|
|
6258
6280
|
}
|
|
6259
6281
|
get element() { return getElement(this); }
|
|
6260
6282
|
static get watchers() { return {
|
|
@@ -6354,10 +6376,10 @@ const SmoothlyInputCheckbox = class {
|
|
|
6354
6376
|
}
|
|
6355
6377
|
}
|
|
6356
6378
|
render() {
|
|
6357
|
-
return (h(Host, { key: '
|
|
6379
|
+
return (h(Host, { key: '3d423adb72e619d4119435408a6b4ee9adbc2704' }, h("input", { key: '489144f56039b3edf5dab1f7ffe9f37e2d0fcadd', type: "checkbox", id: this.id, checked: this.checked, disabled: this.disabled || this.readonly, onChange: async (e) => {
|
|
6358
6380
|
this.checked = e.target.checked;
|
|
6359
6381
|
this.smoothlyUserInput.emit({ name: this.name, value: await this.getValue() });
|
|
6360
|
-
} }), this.checked && h("smoothly-icon", { key: '
|
|
6382
|
+
} }), this.checked && h("smoothly-icon", { key: '6f97dca6dbfedce3d06d4146269bb518016476a8', name: "checkmark-sharp", size: "tiny" }), h("label", { key: '63fc6b505b6d21a779e60ae9803b56134fd855e0', htmlFor: this.id }, h("slot", { key: '88de07dc316049e436784b8ad1e7a3fe359363ff' })), h("span", { key: 'dd9d9e7f30dd37550a089b65c62d26e38471d8bc', class: "smoothly-checkbox-end-slot" }, h("slot", { key: 'f74c25ab1f6765225044bfc21db40b51e47802aa', name: "end" }))));
|
|
6361
6383
|
}
|
|
6362
6384
|
get element() { return getElement(this); }
|
|
6363
6385
|
static get watchers() { return {
|
|
@@ -6420,7 +6442,7 @@ const SmoothlyInputClear = class {
|
|
|
6420
6442
|
}
|
|
6421
6443
|
render() {
|
|
6422
6444
|
var _a;
|
|
6423
|
-
return (h(Host, { key: '
|
|
6445
|
+
return (h(Host, { key: '35dfd4b4b5b2aaac1457f14143591df8244e4e2f', title: this.tooltip }, h("smoothly-button", { key: '681e2d83c6fe6061919a06ece237673e0c68a159', disabled: this.disabled, size: this.size, type: "button", shape: this.shape, expand: this.expand, color: this.color, fill: (_a = this.fill) !== null && _a !== void 0 ? _a : (this.type == "input" ? "clear" : undefined) }, h("slot", { key: '31f3176ab610d6c1ce68055b6f0df55ba2303e29' }), h("smoothly-icon", { key: 'a454fc3409e50dd4a0fb7566460909645066b944', name: "close", size: "tiny" }))));
|
|
6424
6446
|
}
|
|
6425
6447
|
get element() { return getElement(this); }
|
|
6426
6448
|
};
|
|
@@ -6578,7 +6600,7 @@ const SmoothlyInputColor = class {
|
|
|
6578
6600
|
}
|
|
6579
6601
|
render() {
|
|
6580
6602
|
var _a, _b, _c, _d, _e, _f;
|
|
6581
|
-
return (h(Host, { key: '
|
|
6603
|
+
return (h(Host, { key: '443b5ede9cb6485ed194f6c4bcd0dfa4d24fbf5f', style: {
|
|
6582
6604
|
"--hexCode": this.value,
|
|
6583
6605
|
"--rgb-r": `${Math.round((_a = this.rgb.r) !== null && _a !== void 0 ? _a : 0)}`,
|
|
6584
6606
|
"--rgb-g": `${Math.round((_b = this.rgb.g) !== null && _b !== void 0 ? _b : 0)}`,
|
|
@@ -6587,7 +6609,7 @@ const SmoothlyInputColor = class {
|
|
|
6587
6609
|
"--hsl-s": `${Math.round((_e = this.hsl.s) !== null && _e !== void 0 ? _e : 0)}%`,
|
|
6588
6610
|
"--hsl-l": `${Math.round((_f = this.hsl.l) !== null && _f !== void 0 ? _f : 0)}%`,
|
|
6589
6611
|
"--element-height": `${this.element.clientHeight}px`,
|
|
6590
|
-
} }, h("smoothly-input", { key: '
|
|
6612
|
+
} }, h("smoothly-input", { key: '773d645e7cbe1dba29ed0faaf411873eff3850e4', value: this.value, color: this.color, looks: undefined, name: this.name, type: "hex-color", readonly: this.readonly, disabled: this.disabled, showLabel: this.showLabel, onSmoothlyInput: event => (event === null || event === void 0 ? void 0 : event.stopPropagation(), this.hexInputHandler(event.detail[this.name])) }, h("slot", { key: 'e0237c1fd28820b5827660cc3f343a0b0daad919' })), h("div", { key: 'd4be603547b585719296c5fe4a129cffd7e5e904', class: "color-sample" }), h("smoothly-icon", { key: '17a5e51dba9a921faa53a42a2bd0b94cbdb8f490', color: this.color, name: "options-outline", size: "small", onClick: () => !this.readonly && !this.disabled && this.openDropdown() }), h("div", { key: '30eaa873254116bfb5930a1da0f93924682d5810' }, h("slot", { key: '65f98a331cb2b8cabbe58715c2cc496950e5a92c', name: "end" })), this.open && !this.readonly && !this.disabled && (h("div", { key: '972192b5efddbb9a173e2b50b35cfeebefb3a1f4', class: "rgb-sliders" }, h("smoothly-toggle-switch", { key: '9ec21361f064f9fc889aa1c1b50f672982882cb3', title: `${this.sliderMode === "rgb" ? "To HSL" : "To RGB"}`, onSmoothlyToggleSwitchChange: event => this.handleSwitchMode(event), size: "tiny", checkmark: false, selected: this.sliderMode === "hsl" }), Object.entries(this.rgb).map(([key, value]) => (h("smoothly-input-range", { style: this.sliderMode != "rgb" ? { display: "none" } : {}, name: key, min: 0, max: 255, color: undefined, type: "text", value: value, step: 1, outputSide: "right", onSmoothlyInput: event => this.sliderInputHandler(event), onSmoothlyUserInput: event => event.stopPropagation(), label: key.toUpperCase() }))), Object.entries(this.hsl).map(([key, value]) => (h("smoothly-input-range", { style: this.sliderMode != "hsl" ? { display: "none" } : {}, name: key, min: 0, max: key === "h" ? 359 : 1, color: undefined, type: key === "s" || key === "l" ? "percent" : "text", value: (key === "s" || key === "l") && value ? value / 100 : value, step: key === "s" || key === "l" ? 0.01 : 1, outputSide: "right", onSmoothlyInput: event => this.sliderInputHandler(event), onSmoothlyUserInput: event => event.stopPropagation(), label: key.toUpperCase() })))))));
|
|
6591
6613
|
}
|
|
6592
6614
|
get element() { return getElement(this); }
|
|
6593
6615
|
static get watchers() { return {
|
|
@@ -6612,7 +6634,7 @@ const SmoothlyInputColorDemo = class {
|
|
|
6612
6634
|
registerInstance(this, hostRef);
|
|
6613
6635
|
}
|
|
6614
6636
|
render() {
|
|
6615
|
-
return (h(Host, { key: '
|
|
6637
|
+
return (h(Host, { key: 'a24614a0d013b44ad55334eba6849d7d4c2ebdc8' }, h("h2", { key: 'f003675167b0a648e3de7cd44a2a2c53a27c1e3a' }, "Color"), h("smoothly-input-color", { key: 'd562fdd31044939c84dd7bd6264adfe9ea4a8bfa', name: "color" }, "Choose color")));
|
|
6616
6638
|
}
|
|
6617
6639
|
};
|
|
6618
6640
|
SmoothlyInputColorDemo.style = `style.css`;
|
|
@@ -6733,7 +6755,7 @@ const SmoothlyInputDate = class {
|
|
|
6733
6755
|
event.stopPropagation();
|
|
6734
6756
|
}
|
|
6735
6757
|
render() {
|
|
6736
|
-
return (h(Host, { key: '
|
|
6758
|
+
return (h(Host, { key: 'adce039516ed0f3009e61150455b2c51cc0ec899', tabindex: this.disabled ? undefined : 0, class: { "has-value": !!this.value, "has-text": this.hasText, "floating-label": this.alwaysShowGuide }, onClick: (e) => this.onClick(e) }, h("slot", { key: '9050a4383696852cac8b11bf7a426f41d592e3dc', name: "start" }), h("label", { key: '82204edd99bc733897ad6a05d79efc8dd74c83f6', class: "label float-on-focus" }, h("slot", { key: '6a479c63d63fdad7947cd25497f3dceba64574df' })), this.placeholder && h("span", { key: 'a905c85bffb75afa43cf2ea7effdf6a985ce64f8', class: "smoothly-date-placeholder" }, this.placeholder), h("smoothly-date-text", { key: '0e7c8d8a86189c99f83750435da80988153c6519', ref: el => (this.dateTextElement = el), locale: this.locale, readonly: this.readonly, disabled: this.disabled, showLabel: this.showLabel, value: this.value, onSmoothlyDateTextHasText: e => (e.stopPropagation(), (this.hasText = e.detail)), onSmoothlyDateTextFocusChange: e => (e.stopPropagation(), (this.hasFocus = e.detail)), onSmoothlyDateHasPartialDate: e => { var _a; return (e.stopPropagation(), (_a = this.calendarElement) === null || _a === void 0 ? void 0 : _a.jumpTo(e.detail)); }, onSmoothlyDateTextChange: e => (e.stopPropagation(), this.onUserChangedValue(e)), onSmoothlyDateTextDone: e => { var _a; return (e.stopPropagation(), (this.open = false), (_a = this.dateTextElement) === null || _a === void 0 ? void 0 : _a.deselect()); } }), h("span", { key: '6271a396fe0a9db78c65a3ceac415baa6993ce72', class: "smoothly-icons", ref: el => (this.iconsElement = el) }, h("smoothly-icon", { key: '67762b14cf3c1a8657441805585cc22920fcddf6', class: "smoothly-invalid", name: "alert-circle", size: "small", tooltip: this.errorMessage }), h("slot", { key: '88eaca53d97c64fcfa81e0f749b1e9ff3a0068c4', name: "end" })), this.open && !this.readonly && (h("smoothly-calendar", { key: 'ed5ff09959095128feac27c0c5c4b8ba8b51514f', ref: el => (this.calendarElement = el), doubleInput: false, value: this.value, onSmoothlyDateSet: e => (e.stopPropagation(), this.onUserChangedValue(e)), max: this.max, min: this.min }, h("div", { key: '7d482a7dac0561c9f339948ef22573c9f49ccc51', slot: "year-label" }, h("slot", { key: '6a55528882645e6cc6c5e14b3498b480b8c1d6fd', name: "year-label" })), h("div", { key: 'c310a5c99728b55d0b3f19cb494cc7fe20f12353', slot: "month-label" }, h("slot", { key: '3a4324a869730eb9acb114243a4feae03318b6d5', name: "month-label" }))))));
|
|
6737
6759
|
}
|
|
6738
6760
|
get element() { return getElement(this); }
|
|
6739
6761
|
static get watchers() { return {
|
|
@@ -6761,7 +6783,7 @@ const SmoothlyInputDateDemo = class {
|
|
|
6761
6783
|
this.alwaysShowGuide = false;
|
|
6762
6784
|
}
|
|
6763
6785
|
render() {
|
|
6764
|
-
return (h(Host, { key: '
|
|
6786
|
+
return (h(Host, { key: '2eddf4f43fc88d4f0baee5472fb55f98be8464f2' }, h("div", { key: 'a505bd4d499e9fce35b50c88dbb3e3375fe7e36c' }, h("h2", { key: 'b79d4c949fec7c008314b3562ba56ddfe22a1202' }, "Date input"), h("p", { key: 'f76bb9f59b85781610474db18fe10891f1560330' }, "Different locales formatting the same date"), h("smoothly-button", { key: 'c8c39579e4ab97b4b455c88514b7b6d0b78ee781', color: "primary", onClick: () => (this.date = this.date ? isoly.Date.next(this.date) : isoly.Date.now()) }, "Set date"), h("smoothly-input-checkbox", { key: '9e921d7050071821148968680950fe00a0bdad8b', looks: "transparent", onSmoothlyUserInput: e => {
|
|
6765
6787
|
this.alwaysShowGuide = e.detail.value;
|
|
6766
6788
|
console.log(this.alwaysShowGuide);
|
|
6767
6789
|
} }, "Always Show Guide")), ["en-US", "en-GB", "de-DE", "se-SE"].map(locale => (h(Fragment, null, h("smoothly-input-date", { locale: locale, name: locale, looks: "border", value: this.date, alwaysShowGuide: this.alwaysShowGuide }, locale, h("smoothly-input-clear", { slot: "end" })), h("smoothly-input-date-range", { locale: locale, name: locale + "-range", looks: "border", start: this.date, end: this.date ? isoly.Date.next(this.date) : undefined, alwaysShowGuide: this.alwaysShowGuide }, locale, " Range", h("smoothly-input-clear", { slot: "end" })))))));
|
|
@@ -6898,15 +6920,15 @@ const SmoothlyInputDateRange = class {
|
|
|
6898
6920
|
this.smoothlyInput.emit({ [this.name]: undefined });
|
|
6899
6921
|
}
|
|
6900
6922
|
render() {
|
|
6901
|
-
return (h(Host, { key: '
|
|
6923
|
+
return (h(Host, { key: '1f8b2d046cbb64b8df5343a945cb51563d721f27', tabindex: this.disabled ? undefined : 0, class: {
|
|
6902
6924
|
"has-value": !!(this.start || this.end),
|
|
6903
6925
|
"has-text": !!(this.startHasText || this.endHasText),
|
|
6904
6926
|
"floating-label": this.alwaysShowGuide,
|
|
6905
|
-
} }, h("span", { key: '
|
|
6927
|
+
} }, h("span", { key: 'abc0f86b086ba26c3b1d4951394d81da35f83e86', class: "smoothly-date-range-input-part", onClick: (e) => this.onClick(e) }, h("slot", { key: 'a06c2b9b096aca90e83f765b364dca7544ed99ca', name: "start" }), h("label", { key: '70d76e4a489a17cb028c4b8831d352171214d58f', class: "label float-on-focus" }, h("slot", { key: '929cd10cba08419fbfeb0e19e99d01ef52bfaf96' })), this.placeholder && h("span", { key: '8c91d08654b77a865869dca0633c04d1af54d57f', class: "smoothly-date-range-placeholder" }, this.placeholder), h("smoothly-date-text", { key: '5a37bda38fa94c90ee8e5440f085c9eac3b81648', ref: el => (this.startTextElement = el), class: "start-date-text", locale: this.locale, onSmoothlyDateTextHasText: e => (e.stopPropagation(), (this.startHasText = e.detail)), onSmoothlyDateTextFocusChange: e => (e.stopPropagation(), (this.hasFocus = e.detail)), onSmoothlyDateHasPartialDate: e => { var _a; return (e.stopPropagation(), (_a = this.calendarElement) === null || _a === void 0 ? void 0 : _a.jumpTo(e.detail)); }, onSmoothlyDateTextChange: e => (e.stopPropagation(), this.onSmoothlyDateTextChange(e, "start")), onSmoothlyDateTextNext: e => { var _a; return (e.stopPropagation(), (_a = this.endTextElement) === null || _a === void 0 ? void 0 : _a.select()); }, onSmoothlyDateTextDone: e => {
|
|
6906
6928
|
var _a, _b;
|
|
6907
6929
|
return (e.stopPropagation(),
|
|
6908
6930
|
this.end ? ((_a = this.startTextElement) === null || _a === void 0 ? void 0 : _a.deselect(), (this.open = false)) : (_b = this.endTextElement) === null || _b === void 0 ? void 0 : _b.select());
|
|
6909
|
-
}, value: this.start, readonly: this.readonly, disabled: this.disabled, showLabel: this.showLabel }), h("span", { key: '
|
|
6931
|
+
}, value: this.start, readonly: this.readonly, disabled: this.disabled, showLabel: this.showLabel }), h("span", { key: '694bb773d16025b187d059c8b0cc7b36f94956d5', class: "smoothly-date-range-separator" }, " \u2013 "), h("smoothly-date-text", { key: '830739f213b8c3a27619d7f29667483f4317b612', ref: el => (this.endTextElement = el), class: "end-date-text", locale: this.locale, onSmoothlyDateTextHasText: e => (e.stopPropagation(), (this.endHasText = e.detail)), onSmoothlyDateTextFocusChange: e => (e.stopPropagation(), (this.hasFocus = e.detail)), onSmoothlyDateHasPartialDate: e => { var _a; return (e.stopPropagation(), (_a = this.calendarElement) === null || _a === void 0 ? void 0 : _a.jumpTo(e.detail)); }, onSmoothlyDateTextChange: e => (e.stopPropagation(), this.onSmoothlyDateTextChange(e, "end")), onSmoothlyDateTextPrevious: e => { var _a; return (e.stopPropagation(), (_a = this.startTextElement) === null || _a === void 0 ? void 0 : _a.select("end")); }, onSmoothlyDateTextNext: e => e.stopPropagation(), onSmoothlyDateTextDone: e => { var _a; return (e.stopPropagation(), (_a = this.endTextElement) === null || _a === void 0 ? void 0 : _a.deselect(), (this.open = false)); }, value: this.end, readonly: this.readonly, disabled: this.disabled, showLabel: this.showLabel })), h("span", { key: '90767c1048bbcc816563496f3d3afbea4970e953', class: "smoothly-icons" }, h("smoothly-icon", { key: '9f6ffbfa8e626160be54d8e82f8538d5a1e75c5f', class: "smoothly-invalid", name: "alert-circle", size: "small", tooltip: this.errorMessage }), h("slot", { key: '83aef1b1b1c8726f0a7b8b939fcf1d54b07a8389', name: "end" })), this.open && (h("smoothly-calendar", { key: '395c5ba753121d7a0eb1c2d1e986cfad58e98232', ref: el => (this.calendarElement = el), doubleInput: true, onSmoothlyDateSet: e => e.stopPropagation(), onSmoothlyDateRangeSet: e => {
|
|
6910
6932
|
e.stopPropagation();
|
|
6911
6933
|
this.open = false;
|
|
6912
6934
|
this.start = e.detail.start;
|
|
@@ -7040,30 +7062,30 @@ const SmoothlyInputDateTime = class {
|
|
|
7040
7062
|
this.isDifferentFromInitial = false;
|
|
7041
7063
|
}
|
|
7042
7064
|
render() {
|
|
7043
|
-
return (h(Host, { key: '
|
|
7065
|
+
return (h(Host, { key: 'faf40611232f95c653ef583a7f0b7ed32ebb400d' }, h("smoothly-input", { key: 'e0761d639e8d0b3a4f305a05e70e5a6df241fd29', color: this.color, looks: this.looks == "transparent" ? this.looks : undefined, name: "date", onFocus: () => !this.readonly && !this.disabled && (this.open = !this.open), onClick: () => !this.readonly && !this.disabled && (this.open = !this.open), readonly: this.readonly, disabled: this.disabled, type: "date", value: this.date, showLabel: this.showLabel, onSmoothlyInputLoad: e => e.stopPropagation(), onSmoothlyInput: async (e) => {
|
|
7044
7066
|
e.stopPropagation();
|
|
7045
7067
|
this.date = e.detail.date;
|
|
7046
7068
|
}, onSmoothlyUserInput: async (e) => {
|
|
7047
7069
|
e.stopPropagation();
|
|
7048
7070
|
this.smoothlyUserInput.emit({ name: this.name, value: await this.getValue() });
|
|
7049
|
-
} }, h("slot", { key: '
|
|
7071
|
+
} }, h("slot", { key: '7fbe6ae1b6697d22ab4037bcf86ef6d27ce5f923' })), h("smoothly-input", { key: 'cd751c2a4dfe09b316772c07e126ad0c5b875eb4', name: "hour", type: "integer", max: 23, pad: 2, value: this.hour, readonly: this.readonly, disabled: this.disabled, placeholder: "hh", onSmoothlyInputLoad: e => e.stopPropagation(), onSmoothlyInput: async (e) => {
|
|
7050
7072
|
e.stopPropagation();
|
|
7051
7073
|
this.hour = e.detail.hour;
|
|
7052
7074
|
}, onSmoothlyUserInput: async (e) => {
|
|
7053
7075
|
e.stopPropagation();
|
|
7054
7076
|
this.smoothlyUserInput.emit({ name: this.name, value: await this.getValue() });
|
|
7055
|
-
} }), h("span", { key: '
|
|
7077
|
+
} }), h("span", { key: 'ff4cc79cf32d9cd9528010965e6bbb2c60026f57', class: "colon" }, ":"), h("smoothly-input", { key: 'd96351c5c25c042915f2ea78f94365648f620e35', name: "minute", type: "integer", max: 59, pad: 2, value: this.minute, readonly: this.readonly, disabled: this.disabled, placeholder: "mm", onSmoothlyInputLoad: e => e.stopPropagation(), onSmoothlyInput: async (e) => {
|
|
7056
7078
|
e.stopPropagation();
|
|
7057
7079
|
this.minute = e.detail.minute;
|
|
7058
7080
|
}, onSmoothlyUserInput: async (e) => {
|
|
7059
7081
|
e.stopPropagation();
|
|
7060
7082
|
this.smoothlyUserInput.emit({ name: this.name, value: await this.getValue() });
|
|
7061
|
-
} }), h("span", { key: '
|
|
7083
|
+
} }), h("span", { key: '258c62771f84b3816025a7831756d52ddc3e61a3', class: "icons" }, h("smoothly-icon", { key: 'f10cdb5bd42fe2a1bc8e3c9eb41cd488957bb0bf', class: "smoothly-invalid", name: "alert-circle", size: "small", tooltip: this.errorMessage }), h("slot", { key: '867ca6ecbe958d5f97e126fc4df23c6fcef6e1fa', name: "end" })), this.open && !this.readonly && (h("smoothly-calendar", { key: 'd1c1ea3e905b5e677883c273231794de21777fc0', doubleInput: false, value: this.value ? isoly.DateTime.getDate(this.value) : undefined, min: this.min ? isoly.DateTime.getDate(this.min) : undefined, max: this.max ? isoly.DateTime.getDate(this.max) : undefined, onSmoothlyDateSet: async (e) => {
|
|
7062
7084
|
e.stopPropagation();
|
|
7063
7085
|
this.date = e.detail;
|
|
7064
7086
|
this.smoothlyUserInput.emit({ name: this.name, value: await this.getValue() });
|
|
7065
7087
|
this.open = false;
|
|
7066
|
-
} }, h("div", { key: '
|
|
7088
|
+
} }, h("div", { key: '0ab989467e67bc709d0c45285a7eba7743606171', slot: "year-label" }, h("slot", { key: 'ae14dc89cb7cfa3df3bd12ed531d9e4f71242c07', name: "year-label" })), h("div", { key: '9e226c95c5ae7ab3af1e09a93d290222827c5dab', slot: "month-label" }, h("slot", { key: 'c0f55782eece8e74881124284504a2ac9489ed63', name: "month-label" }))))));
|
|
7067
7089
|
}
|
|
7068
7090
|
get element() { return getElement(this); }
|
|
7069
7091
|
static get watchers() { return {
|
|
@@ -7103,14 +7125,14 @@ const SmoothlyInputDemo = class {
|
|
|
7103
7125
|
this.numbers = [1, 2, 3, 4, 5, 6, 7, 8, 9];
|
|
7104
7126
|
}
|
|
7105
7127
|
render() {
|
|
7106
|
-
return (h(Host, { key: '
|
|
7128
|
+
return (h(Host, { key: '0610dea0130909d255f6dcbf7f798521cb18fc4e' }, h("smoothly-input-demo-standard", { key: 'e74b371f701b9371972b5428efb0ea4edea9244c' }), h("smoothly-input-date-demo", { key: 'c989f6853579a9ba68c6f57e2e6381c121ff091c' }), h("smoothly-input-demo-user-input", { key: '67189969e7eeb85c53fa6485cc4bc1c6f8810d3c' }), h("smoothly-input-demo-radio", { key: 'd277353814df2808ab955df71df8dd79a14e3b09' }), h("div", { key: '69864f1761f23e2d9fe5003d1a28895195587f23', class: "inputs" }, h("h2", { key: '9e43ab4414d38f5e7d6ed559293a364700e4e3ff' }, "Calendar"), h("smoothly-input-date", { key: '3cc461eaf51348c11e76a541f4e89c7727d49006', name: "some-date" }, "Calendar"), h("smoothly-input-date-time", { key: '331225ff58737c6cd60986d47935cf906f143d02', name: "someDateTime", value: isoly.DateTime.now() }, "DateTime"), h("h2", { key: '7e7535017eb1d6a683df758a4d017dc7cb1fccc3' }, "Date Range"), h("smoothly-input-date-range", { key: 'fad6725321923c5821fe74add6cef73a560c2496', name: "testing", start: isoly.Date.now(), end: isoly.Date.nextMonth(isoly.Date.now()), min: "2021-10-01", max: "2025-01-31" }), h("smoothly-input-date-range", { key: '21d5f9edc259b904554d64c234e8268184db9c78', name: "testing", start: isoly.Date.now(), end: isoly.Date.nextMonth(isoly.Date.now()), min: "2021-10-10", max: "2024-12-30" }, h("smoothly-input-reset", { key: 'd08635584ffc2cf923f93304701d5ae0130dcd57', slot: "end", size: "icon" })), h("smoothly-input-date-range", { key: '46c5c5ca642f983a7d4956c83385ab25046044e7', looks: "grid", start: isoly.Date.now(), end: isoly.Date.nextMonth(isoly.Date.now()), min: "2021-10-10", max: "2025-12-30", showLabel: false, style: {
|
|
7107
7129
|
"--smoothly-input-border-radius": "0.5rem",
|
|
7108
|
-
} }, h("smoothly-input-clear", { key: '
|
|
7130
|
+
} }, h("smoothly-input-clear", { key: '3465328594f446fbbe97cdb87adb806f057a4041', slot: "end", size: "icon" })), h("h2", { key: 'e2a08b76ba392d10beb4eb95d8363620f07b53e4' }, "Date"), h("smoothly-input-date", { key: 'fbc0b53f5e576341027a9d0199e0a369cab1ed15' }, "Date"), h("smoothly-input-date", { key: 'b5ead1c49120a42e63e310361c29d31eabbcff60', showLabel: false, value: "2021-10-28", max: "2021-12-30", min: "2021-10-10" }, "Date"), h("smoothly-input-date", { key: '18fab78a08e80b35d930d40be27c5f2863beaba1', value: "2021-10-28" }, "Date", h("smoothly-input-reset", { key: 'ab9470f9a44be6a115ff89db7c50f631362cecae', slot: "end", size: "icon" })), h("smoothly-input-date", { key: '61aa9be4f7193617ecc89d5250f9c97f30742c35', value: "2021-10-28" }, "Date", h("smoothly-input-clear", { key: '9ab5d2a554d2123360afdac3c266ac79c6035d36', slot: "end", size: "icon" })), h("h2", { key: 'ed8c37111142696858c0eac29661406ae2cd9f55' }, "Select"), h("div", { key: '9ae174d2d4a332de3ad770450464569378f05bdb', class: "select-div" }, h("smoothly-input-select", { key: '34f6a893981c3c8dc6703256a9f2c3089cf4ff25', name: "select-dessert", looks: "border" }, h("label", { key: '7198f30b4aa7cb91377cb72ef16cb7dca79d00ff', slot: "label" }, "Select with clear button"), h("smoothly-item", { key: 'b85cb7fb77fe50cd6a42d0a6c38020dcfb2166ed', value: "1" }, "Ice cream"), h("smoothly-item", { key: 'de464d05e6cdffe4b578e5708d1e9e33376a0521', value: "2" }, "Sponge cake"), h("smoothly-item", { key: '553b7ecd797f0e55def5b6c460440d8286755f4c', value: "3", disabled: true }, "Disabled Item"), h("smoothly-item", { key: '3b4349b0785cd4440611499c23f082961541a91a', value: "4" }, "Cookie"), h("smoothly-item", { key: 'a5638b6d6424c31cb1d26cecb42cfeb1004e7674', value: "5" }, "Croissant"), h("smoothly-item", { key: '015c157d486120f18de97fae45e36b9e0b0ef863', value: "6" }, "Chocolate fondue"), h("smoothly-input-clear", { key: 'b16c9fd651670b3808643e57043198550e3a1103', size: "icon", slot: "end" })), h("smoothly-input-select", { key: '277ad384d61f6a4ce7fb849d90a7e2437f105841', multiple: true, name: "select-dessert-multiple", looks: "border" }, h("label", { key: 'bcd5acb1903599e959821fc91f6aaf60ad0bb5b9', slot: "label" }, "Select multiple with reset button"), h("smoothly-item", { key: '3e5c1545a14684d153a252fba8060965f63b6c46', value: "ice cream" }, "Ice cream"), h("smoothly-item", { key: '155d20eda1c0ed2816a7bac67d54b2e55a7a101a', value: "sponge cake" }, "Sponge cake"), h("smoothly-item", { key: 'cdf81df5d54168f33c679918e7f3440f0f8d5da3', selected: true, value: "cookie" }, "Cookie"), h("smoothly-item", { key: 'ee8b1f2e292c76d0b5f1ea73501d56ed7c5c748c', value: "croissant" }, "Croissant"), h("smoothly-item", { key: 'ea635dbcfc236dec09da467db23e37b18fc8953a', selected: true, value: "chocolate fondue" }, "Chocolate fondue"), h("smoothly-input-reset", { key: 'de1bad5de86767304a5244812506166ac09ef395', size: "icon", slot: "end" })), h("smoothly-input-select", { key: 'a606780ffc3288ff2c3963c63d1e67922e27eb03', name: "spirit-animals", looks: "border", mutable: true }, h("label", { key: '12d7b79350e82d58eab979ae139ba1895e6d60e8', slot: "label" }, "Select or add new options"), h("smoothly-item", { key: 'b9c3dfe20a6df2409ef1e350bf6491284a583d5b', value: "manatee" }, "Manatee"), h("smoothly-item", { key: '609d4f74ac6f9b7b3de0d6cf8239e357e273be3f', selected: true, value: "cthulu" }, "Cthulu")), h("smoothly-input-select", { key: '02c55364f84130fbe531450518a9f14c01d093eb', name: "select-icon", clearable: false, showSelected: false }, h("smoothly-item", { key: '838cb077ef888a9474f387f3e103d1fe5a7446bf', value: "folder", selected: true }, h("smoothly-icon", { key: 'b25142bf3ef747ac3b0efce4e5b0570da8fe3fdf', size: "small", name: "folder-outline" })), h("smoothly-item", { key: '230ece62e3958643281636ba4185118102394ce8', value: "camera" }, h("smoothly-icon", { key: '2388323ed7eb30ca002c1fdb0a5b3c39e11b5da2', size: "small", name: "camera-outline" }))), h("smoothly-input-select", { key: '39a9cf873e9f7d93b05de669efa66d38f2f23ab6', ordered: true, menuHeight: "7.5items", placeholder: "Select...", name: "select-month" }, h("label", { key: '9789169a41dfb9e3162112e23caffbfe5b6daeea', slot: "label" }, "Alphabet ordered select"), Array.from({ length: 26 })
|
|
7109
7131
|
.map((_, i) => String.fromCharCode(i + 65))
|
|
7110
|
-
.map(char => (h("smoothly-item", { value: char, selected: char == "H" }, char)))), h("smoothly-input-select", { key: '
|
|
7132
|
+
.map(char => (h("smoothly-item", { value: char, selected: char == "H" }, char)))), h("smoothly-input-select", { key: 'f387c1c723590cc0af87d9a1fd57d459c1cc73f6', multiple: true, menuHeight: "7.5items", placeholder: "Select...", name: "select-month" }, h("label", { key: 'a5db731994586ad163c1077afe56a23f8645654a', slot: "label" }, "Month multiple select"), h("smoothly-item", { key: 'f1f9ee3d60d71883b4dd1b4aea488f2c22cde1d5', value: "1" }, "January"), h("smoothly-item", { key: 'a4432cbbf045646fdb7c5481edd5a4dc647e714e', value: "2" }, "February"), h("smoothly-item", { key: '5004b0e7acb2fca29c26f563933f66a141a87a21', value: "3" }, "March"), h("smoothly-item", { key: 'f9085fa0f5ac2bdc308a6e6eb5f76d060179adac', value: "4" }, "April"), h("smoothly-item", { key: '45c828dcd5f36bcb4624860f11ffe970ecfe3021', value: "5" }, "May"), h("smoothly-item", { key: '6dcc18a959124619842d5a7bd68b38b507ecbb80', value: "6" }, "June"), h("smoothly-item", { key: 'cd1b161f2f13dfe661b2d3363e3b20647c4ec3ca', value: "7" }, "July"), h("smoothly-item", { key: 'a5ae41fa7eed339f47f69aad3681eae4579e0efe', value: "8" }, "August"), h("smoothly-item", { key: '0016e486b487603da72487e53031739b85dc5318', value: "9" }, "September"), h("smoothly-item", { key: 'f1c6ed5593caa14259f74be4c8b3be20386e54cf', value: "10" }, "October"), h("smoothly-item", { key: 'f636538a7669567ff285e74a4c2de398546108ec', value: "11" }, "November"), h("smoothly-item", { key: '0a83028ce8f962d1b8d501041aad0a288a5829c5', value: "12" }, "December")), h("div", { key: 'e16c4ae44a81885c288ca235fc56e53d08b3253f', class: "select-div-row" }, h("smoothly-input-select", { key: 'a399d1152444fff42ea7b37ca41824a6ecf63d81', name: "select-icon", clearable: false, showSelected: false }, h("smoothly-item", { key: 'af648a4bb5f15488197c34a752e282bd60cf79a3', value: "folder", selected: true }, h("smoothly-icon", { key: '16d8cdf17dbf67544d10c06d8f599dd30b87cb61', size: "small", name: "folder-outline" })), h("smoothly-item", { key: '39012cd32fa3bcecb1cc012160048d6817a94c5c', value: "camera" }, h("smoothly-icon", { key: 'a51166743064c08c1e9509fea17b60fde3f39556', size: "small", name: "camera-outline" })), h("smoothly-item", { key: '5b13f14afbbf764ad387c34db65f48335c8e5ff8', value: "boat" }, h("smoothly-icon", { key: '855facc3a62046b5b3b4ff29f0d5226d2aff1c55', size: "small", name: "boat-outline" }))), h("smoothly-input-select", { key: 'cc1e08d1120f45c8143ae6f28cbdbad769785e58', name: "select-number", clearable: false }, this.numbers.map(number => (h("smoothly-item", { value: "number", selected: number === 3 }, number)))), h("smoothly-input", { key: 'f12155b6e15ef36745915628c1ffc34a2c277bcd', name: "name", value: "Sten Qvist" }, "Name"))), h("h2", { key: '32733265cff202c69112ac37afbbe51e9ee16b13' }, "Duration"), h("smoothly-input", { key: '1c359b65c54c00a291d4ab2fca662ae0823545be', name: "duration", type: "duration", placeholder: "hh:mm", value: this.duration, onSmoothlyInput: e => (this.duration = e.detail.duration) }, "Duration"), h("smoothly-input", { key: 'b50a7ea8c22c140a5d1b81eb197caa88d79ff4cc', name: "duration", type: "duration", value: this.duration, placeholder: "-hh:mm", onSmoothlyInput: e => {
|
|
7111
7133
|
const duration = e.detail.duration;
|
|
7112
7134
|
this.duration = duration;
|
|
7113
|
-
} }, "Duration"), h("h2", { key: '
|
|
7135
|
+
} }, "Duration"), h("h2", { key: '9bf848b3aeb2d99264b20270c030daf0a2e4538c' }, "Integer with Min/Max"), h("smoothly-input", { key: 'ef9a50d998c97e0ee62ce7521a47d9116596f594', name: "days", type: "integer", min: 0, max: 365 }, "Days per year (0-365)"), h("smoothly-input", { key: '3fc4295acaaabe23a12e6e9fd192371d137e2ebd', name: "hour", type: "integer", min: 0, max: 23 }, "Hours per day (0-23)"), h("smoothly-input", { key: 'e3e23c2ff05c311d1d62b86d9de0e333aaf38d16', name: "minute", type: "integer", min: 0, max: 59 }, "Minutes per hour (0-59)"), h("smoothly-input", { key: 'a92c74f2b45cc1df86589e62e97b87c8a7060351', name: "minute", type: "integer", min: 18, max: 120 }, "Age (18-120)"), h("h2", { key: '05151b343a921085863acb3cc263fb4775fc1326' }, "Invalid text with warning icon and tooltip"), h("smoothly-input", { key: '433ed8e5372266ef59393311c0dde265b79efb36', copyable: true, name: "alphanumeric", invalid: !/^[a-zA-Z0-9]+$/.test(this.alphanumeric), errorMessage: "Only alphanumeric allowed", value: this.alphanumeric, onSmoothlyInput: e => (this.alphanumeric = e.detail.alphanumeric) }, "Alphanumeric"), h("h2", { key: 'b5e460972d07d70a04099e129f4b11706ee6ea58' }, "Identifiers"), h("smoothly-input", { key: 'd059d3ecee65ec385e40d11bad328bde8be89246', type: "identifier-code" }, "Code"), h("smoothly-input", { key: '669bda44ce4115dc276335a9566cd433ccc992c4', type: "identifier-attribute" }, "Attribute"), h("smoothly-input", { key: 'a775035df9b192896c2ce7f1beebe6e904c1d42d', type: "identifier-snake" }, "Snake"), h("smoothly-input", { key: '359285e474ea704c36e73984c35e4ae245c47a00', type: "identifier-pascal" }, "Pascal"), h("smoothly-input", { key: 'f1a36423248b413cd20749f738fe12a8eeacae15', type: "identifier-camel" }, "Camel"), h("h2", { key: '2f6beac2f107dd3dc34a537e5b47f13d76206a07' }, "Input Alternatives"), h("smoothly-input", { key: '74cfbe969295b7cb9e02af90b126d9bdb60168cc', type: "text", name: "name.last" }, h("smoothly-icon", { key: '34e749e71f3d9976f2b71e57dd8644d53872aa35', name: "checkmark-circle", slot: "start" }), "First Name"), h("smoothly-input", { key: '61f44e09ab53cf0cf061007d3cf8426722e53312', type: "text", name: "name.first" }, "Last Name", h("smoothly-icon", { key: '55adb72f7485eb5f2235516c9d2839feae927ad7', name: "checkmark-circle", slot: "end" })), h("smoothly-input", { key: '642a573bebe0e805fd7d178dfc8befe7e77bba15', type: "text", name: "name.first", placeholder: "Smith" }, "Last Name", h("smoothly-icon", { key: '5bcfe9a74e7ec780fee1764933bd37f82b36495d', name: "checkmark-circle", slot: "end" })), h("smoothly-input", { key: 'cd5b1bbd73247cfb21b6ff99a56c0989ec7f3239', placeholder: "test" }), h("smoothly-input-submit", { key: '02c46969366444af0882851f2f3a0cd80f1b61c3', slot: "submit", fill: "solid", onSubmit: (e) => alert(e), color: "success" }), h("h4", { key: '3bc94eda5050b71ec193fda5600d76b5341b71d5' }, "Smoothly checkboxes"), h("div", { key: '165dd5a0d8e539c3d9fdbebf49ded093589acea7', class: "checkbox-group" }, h("smoothly-input-checkbox", { key: '17c781cdca9adf265d7418ca27ace984f0b70499', disabled: true, name: "first-checkbox" }, h("smoothly-icon", { key: '413a357d61374d72ae7be41bca5a7360b105e9e0', name: "checkmark-circle", slot: "start", size: "tiny" }), "First"), h("smoothly-input-checkbox", { key: '81ad9a572cb4e01b86ca1a189d4ce027c81d588b', name: "second-checkbox", checked: true }, h("smoothly-icon", { key: 'a34d9d7860461de0a508e8f36ab3e89627475777', name: "checkmark-circle", slot: "start", size: "tiny" }), "second", h("smoothly-input-clear", { key: 'fc64656864d9c68ef8f8ee42868af8f6d27ff217', size: "icon", slot: "end" })), h("smoothly-input-checkbox", { key: '8d1461bc9cc61eb79488162501232355e27bb992', name: "third-checkbox" }, "3rd")), h("h4", { key: '0eca64c7ae21e4f915e7f146d36662983f5c3759' }, "Smoothly Radio Buttons"), h("smoothly-input-radio", { key: '7677ce8ca260453a84a650fcced18a6592acc6a7', clearable: true, name: "radioFirstInput" }, h("smoothly-icon", { key: 'fd28ffad9dc1a32efb02131873f238c54fcb63e2', name: "checkmark-circle", slot: "start" }), h("label", { key: '63d92632a2ef4832fd863f55991480e1ec58fbae', slot: "label" }, "Clearable"), h("smoothly-input-radio-item", { key: 'a3e81d19c74fc5de2d25e44afb686793807025d5', value: "first" }, "Label 1"), h("smoothly-input-radio-item", { key: '5a4118fd0fb1b24e7a3e957c6186a94caf6c3160', selected: true, value: "second" }, "Label 2"), h("smoothly-input-radio-item", { key: 'beb9d9bfec1ebd2bd268b3c94fde2f23ee77b31b', value: "third" }, "Label 3"), h("smoothly-input-clear", { key: '91ff12f5c8d3911b662a4774e3d8887742de6b42', size: "icon", slot: "end" })), h("smoothly-input-radio", { key: '5e708295015296538d73936026d36e5badc6f805', name: "radioSecondInput" }, h("label", { key: '8ffb6b2f623f8e16a19d6b9d83b93b28d9fe2637', slot: "label" }, "Not clearable"), h("smoothly-input-radio-item", { key: 'a5cf624fceafa16030eab1e9050cd3cac2c985f1', value: "first" }, "Label 1"), h("smoothly-input-radio-item", { key: '66ab2a39eb130a221dea6cc77beecb0c221cecf5', value: "second" }, "Label 2"), h("smoothly-input-radio-item", { key: '44792e09a3cfff26ec11c364e842db24f1eb10f2', value: "third" }, "Label 3"), h("smoothly-input-radio-item", { key: '78b2689f9c52960b2901431b22c7f7faec8605ae', value: "fourth" }, "Label 4"), h("smoothly-input-radio-item", { key: 'fb6757b00011d410ffcf1cad4dcdfe1c586ca24a', value: "fifth" }, "Label 5"), h("smoothly-input-radio-item", { key: 'dcd365bfd3792cab31ede99aa43edf5d41d8af9e', value: "sixth" }, "Label 6")), h("smoothly-input-range-demo", { key: 'c231fb7b9c6d28546b4d13c87ef3a900b33191ca' }), h("smoothly-input-color-demo", { key: '540d7e3d4ec89f99ec6c67d725468e050ec0a183' }), h("smoothly-input-price-demo", { key: 'eb8164f02728a0ee68e10ecb949c6b7f45d2fff2' }), h("smoothly-back-to-top", { key: '98cd43c5de35cfeea70b77434dac7907648c1b6e' }))));
|
|
7114
7136
|
}
|
|
7115
7137
|
};
|
|
7116
7138
|
SmoothlyInputDemo.style = styleCss$O();
|
|
@@ -7125,7 +7147,7 @@ const SmoothlyInputDemoRadio = class {
|
|
|
7125
7147
|
console.log("selected", this.selected);
|
|
7126
7148
|
}
|
|
7127
7149
|
render() {
|
|
7128
|
-
return (h(Host, { key: '
|
|
7150
|
+
return (h(Host, { key: '040a57805b385a247d202b5e955a7f8eba616010' }, h("h2", { key: 'f09dbab032e5a1236b6917adf732333decd4f304' }, "radio input - column direction"), h("smoothly-input-radio", { key: 'b433eda6893f6ace20301795321958f684f47d57', name: "radio", direction: "column", onSmoothlyInput: e => (this.selected = e.detail.radio) }, h("smoothly-input-radio-item", { key: '2d9b7a2edea9639f1edebc73c8caca090765ce61', value: "1" }, h("span", { key: 'e42fdc99169da6f957f0f7d701f07e28ec3b6f75' }, "Option 1"), h("span", { key: 'ffdf79cbc7f98435a01a3a1a6c30c307741a566c', slot: "detail" }, "Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.")), h("smoothly-input-radio-item", { key: '0d9d95f1375bca503b1aade350a87119bb329c09', value: "2", selected: true }, h("span", { key: 'dc6d2e6888deb8bf32a626badc8a01d1daeb960d' }, "Option 2"), h("div", { key: '5ab436788acba5bcf290faf1551513a1f1b493b6', slot: "detail" }, h("smoothly-tabs", { key: '097716e9e682a11b5eff9880e94c036a01344de4' }, h("smoothly-tab", { key: '4b4117fbeb2aec641c279690438452f1e0ff15d6', label: "Dog", name: "dog", open: true }, "\uD83D\uDC15"), h("smoothly-tab", { key: '4cb637cfdb67a7721dc13348cfe830595d47027b', label: "Cat", name: "cat" }, "\uD83D\uDC08"), h("smoothly-tab", { key: '1c4873e9b744831a602192bb520236b440d8b547', label: "Rat", name: "rat" }, "\uD83D\uDC00")))))));
|
|
7129
7151
|
}
|
|
7130
7152
|
static get watchers() { return {
|
|
7131
7153
|
"selected": [{
|
|
@@ -7157,7 +7179,7 @@ const SmoothlyInputDemoStandard = class {
|
|
|
7157
7179
|
});
|
|
7158
7180
|
}
|
|
7159
7181
|
render() {
|
|
7160
|
-
return (h(Host, { key: '
|
|
7182
|
+
return (h(Host, { key: 'd2a4b3a8e5675b4fe394f551166318902c09ea84' }, h("div", { key: '67b40a89a1cbf17d511c56d966a9173e02a9c92e', class: "description" }, h("h2", { key: 'fdd28a17423a0da06745fc2aad06e1acbde54be4' }, "Input Standard"), h("p", { key: 'e9e84428aa2ebe4ea0b1d04410629ed85de1d329' }, "Height of input should be ", h("code", { key: 'faccb606910cbe8418c176efd45ff05eafd0ffc8' }, "3rem"), " including border. This is should result in a 48 pixel height at 100% zoom, assuming a root font-size of 16 pixels."), h("smoothly-form", { key: 'f8770ba1128622c8b40be48cd26214ed162035e3', looks: "grid", onSmoothlyFormInput: (e) => (this.options = e.detail) }, h("smoothly-input-select", { key: '82ce7ab02f341b560e6347164a19c9273580ed18', name: "color" }, h("span", { key: '4062538c8b4b25d9a1cc1f625df0313383990193', slot: "label" }, "Color"), Color.values.map(c => (h("smoothly-item", { value: c }, h("span", { color: c }, c)))), h("smoothly-input-clear", { key: '659e785d9f5e4043fcf15dc457dde4dc48676215', slot: "end" })), h("smoothly-input-select", { key: '656b68d41b449cde70e4d86b252dc70d994f63ce', name: "looks" }, h("span", { key: '39ef79d28d1dbec7a678b93fa031615457560351', slot: "label" }, "Looks"), Looks.values.map(l => (h("smoothly-item", { value: l }, l)))), h("smoothly-input-range", { key: '3ae946ee3c4cdcf5b698b0456499c4807e53b257', label: "Border Radius (rem)", name: "borderRadius", min: 0, max: 2, step: 0.25 }), h("smoothly-input-checkbox", { key: 'f73361b452096abbda4ebc6908371c397c0a9fd4', name: "readonly" }, "Readonly"), h("smoothly-input-checkbox", { key: '7a4762f9122be37ce57099515e0d9fac7c18df94', name: "disabled" }, "Disabled"), h("smoothly-input-checkbox", { key: '0ac401e2b9e2525dfc899eda4957a61b99947758', name: "invalid" }, "Invalid"), h("smoothly-input", { key: '2ba7f175d8aeef4301598f3c3da5d436a17c45c7', name: "errorMessage", value: "This is not a valid value" }, "Error Message"), h("smoothly-input-checkbox", { key: '5844e0ab1cc53ecd0691d585fa4461f89c9994bc', name: "showLabel", checked: true }, "Show Label"), h("smoothly-input", { key: '6d46add6231e87d95dd8aea7bd91181c47a56490', name: "placeholder" }, "Placeholder"), h("smoothly-input-checkbox", { key: '43af9a815da45bc2ce0e54e8442e3a8ab1bc534c', name: "alwaysShowGuide" }, "Always Show Guide (for date inputs)"))), h("div", { key: 'cf6750528c66ee0c0b9e97478de77514cbd39045', class: "input-wrapper", style: { "--smoothly-input-border-radius": `${this.options.borderRadius}rem` } }, h("div", { key: '4fbc0ba2b6b142f6c4ac8379157b2953d88cb062', class: "width" }, "width: 100%"), h("div", { key: '7fb5a3a68f6ed4d14bcab9758a8de0a95de7e80c', class: "left-padding" }, "padding-left: 0.5rem"), h("smoothly-input", { key: '3d379565ac3335e2ef39e7d616b082fd5247619e', name: "text", color: this.options.color, looks: this.options.looks, readonly: this.options.readonly, disabled: this.options.disabled, invalid: this.options.invalid, errorMessage: this.options.errorMessage, showLabel: this.options.showLabel, placeholder: this.options.placeholder }, this.options.showLabel && h("span", { key: '7d37fa391bb86cf43fe84db4826d8394c04d8af9' }, "Text"), h("smoothly-input-clear", { key: '5c5b48cd36f13a3b50fc49809edb17148993a004', slot: "end" })), h("div", { key: 'c666bcf200205fbe3d4e045ee69530b217d4845d', class: "height" }), h("smoothly-input-select", { key: '9a2bb30a995830fecbc0dc7f9df2895470ac8e3b', name: "month", color: this.options.color, looks: this.options.looks, menuHeight: "6.7items", readonly: this.options.readonly, disabled: this.options.disabled, invalid: this.options.invalid, errorMessage: this.options.errorMessage, placeholder: this.options.placeholder }, this.options.showLabel && h("label", { key: 'd91f28c2c80c6b95703b9476c8d07b64387f989a', slot: "label" }, "Select"), h("smoothly-item", { key: '61aeaf05ac730b30d7fb29b749dcf6ba59932c9c', value: "1" }, "January"), h("smoothly-item", { key: '131052c2a6ad24d5c93cda5352dd16873e81fc81', value: "2" }, "February"), h("smoothly-item", { key: '599a8b88c0abd24346856c8c653c1adc69d432e0', value: "3" }, "March"), h("smoothly-item", { key: 'e8933cb5d5af0fbb4d898a919a1d0ccc26584c11', value: "4" }, "April"), h("smoothly-item", { key: 'eb7b7c07dd9fcb31eba2b5a8da79da32e14f2c67', value: "5" }, "May"), h("smoothly-item", { key: '48e70f3d930689aed016ac28241e6f8d253f61db', value: "6" }, "June"), h("smoothly-item", { key: '738b7ad9d5286f6afc8ad033d9cbb9e066c4c861', value: "7" }, "July"), h("smoothly-item", { key: 'aad0e64de6bf35b315fb3472c8cad86e3fb195d9', value: "8" }, "August"), h("smoothly-item", { key: '81c533fd3eeaa48ae7917f6064a17724b101b650', value: "9" }, "September"), h("smoothly-item", { key: '69f567c427f80cee633f72ac4dd06a4d4b4a27c7', value: "10" }, "October"), h("smoothly-item", { key: '0d87e5fa94a04a60b527d7a5f1670b1788bd4339', value: "11" }, "November"), h("smoothly-item", { key: '34b1425da536971ffde20fbab5b96c9d23f71fe3', value: "12" }, "December"), h("smoothly-input-clear", { key: 'd16aad09e1f53274a0c6d23c071f2abe1157ce4f', slot: "end" })), h("div", { key: '51931a5ed8ec83b8937cd7899a303569cf8bf7cd', class: "height" }), h("smoothly-input-checkbox", { key: '20d5a02ab8d8f1f709b030a0258598de61250555', name: "checkbox", checked: true, color: this.options.color, looks: this.options.looks, readonly: this.options.readonly, disabled: this.options.disabled }, "Check", h("smoothly-input-reset", { key: 'd36312b0bb0393568cf05e51eea4cfa057dce607', slot: "end" })), h("div", { key: 'c1353494563098fc08fe2c93cceeb80d56a1aa51', class: "height" }), h("smoothly-input-radio", { key: '84976dd68dfe5534f28c02395d2476593bcb3bcd', name: "radio", clearable: true, color: this.options.color, looks: this.options.looks, readonly: this.options.readonly, disabled: this.options.disabled, showLabel: this.options.showLabel }, this.options.showLabel && h("label", { key: 'fd87d0cfc047bcaf959908191d798ea774daca25', slot: "label" }, "Radio"), h("smoothly-input-radio-item", { key: '4029068fb2fea98f2b5c19ec87e8dea13cf22365', value: "first" }, "Label 1"), h("smoothly-input-radio-item", { key: '1ab27866d3db524f52da4f76a3abb5eff1deeed3', selected: true, value: "second" }, "Label 2"), h("smoothly-input-radio-item", { key: '9415dd464250d9af68a54de51a9e6b15234f8faf', value: "third" }, "Label 3"), h("smoothly-input-clear", { key: '8ea8291c65ca421b0044fe3e0da4127f9fac0c40', slot: "end" })), h("div", { key: 'fa351e941ec780e05a037c2c1948dabd8ef371e8', class: "height" }), h("smoothly-input-file", { key: 'b45c3bf3c7b5e9e8408a6cecacdda30c7ce392df', name: "file", color: this.options.color, looks: this.options.looks, readonly: this.options.readonly, disabled: this.options.disabled, showLabel: this.options.showLabel, placeholder: this.options.placeholder }, this.options.showLabel && h("span", { key: '7e81668b6bf2a3f72238d18d02c21f19bf6c2756', slot: "label" }, "File"), h("smoothly-input-clear", { key: '4ead6310cb554351b45699cbbc6d84804d26611b', slot: "end" })), h("div", { key: '73cd3845233377057ff16a18b9ad85eb4e4be30f', class: "height" }), h("smoothly-input-range", { key: 'ec0f42a5ee5fddd52fb5c0d283f9add183e429fd', name: "range", color: this.options.color, looks: this.options.looks, readonly: this.options.readonly, disabled: this.options.disabled, label: this.options.showLabel ? "Range" : undefined }, h("smoothly-input-clear", { key: '49536b00574ad5e0cba72b9a8fdeee599435a886', slot: "end" })), h("div", { key: 'cc112e755aeb5724b6e4bc511ed1b4e32b394d08', class: "height" }), h("smoothly-input-color", { key: 'dbd6daa2196f6ba316721ed338c0638d6c713e00', name: "color", color: this.options.color, looks: this.options.looks, readonly: this.options.readonly, disabled: this.options.disabled, showLabel: this.options.showLabel }, this.options.showLabel && h("span", { key: '04197c11337298f86531d7ba52d67df221619051' }, "Color"), h("smoothly-input-clear", { key: '6489a29a796e8e443efdf27574df27e4e24111ee', slot: "end" })), h("div", { key: 'e48defb9f45eaa2f935b0108cf3ec6e331d4ecb2', class: "height" }), h("smoothly-input-date", { key: '0a5c51ecc51013f9572ed8cd8ef38f6d92bd4f5b', name: "date", color: this.options.color, looks: this.options.looks, readonly: this.options.readonly, disabled: this.options.disabled, invalid: this.options.invalid, errorMessage: this.options.errorMessage, showLabel: this.options.showLabel, placeholder: this.options.placeholder, alwaysShowGuide: this.options.alwaysShowGuide }, this.options.showLabel && h("span", { key: '21f21c543ff1df34c50333fba2d1ca8377ea4e37' }, "Date"), h("smoothly-input-clear", { key: 'f8226e817b97c90070b649935ac70d6ba11f7b30', slot: "end" })), h("div", { key: '8920789228e2911822a6b822d1c8c37537a225e4', class: "height" }), h("smoothly-input-date-time", { key: '2e58e0e5f6370f7a4d0dd7f17c56718038167e6a', name: "dateTime", color: this.options.color, looks: this.options.looks, readonly: this.options.readonly, disabled: this.options.disabled, invalid: this.options.invalid, errorMessage: this.options.errorMessage, showLabel: this.options.showLabel }, "DateTime", h("smoothly-input-clear", { key: '9ebc24b5b639628fd5f3d11a72500bcd6ae9ab0f', slot: "end" })), h("div", { key: 'dddb389df78c212ec451422436e3f0468f523065', class: "height" }), h("smoothly-input-date-range", { key: '76b7832bcf134165961c00e610180ee37b74968d', name: "dateRange", color: this.options.color, looks: this.options.looks, readonly: this.options.readonly, disabled: this.options.disabled, invalid: this.options.invalid, errorMessage: this.options.errorMessage, placeholder: this.options.placeholder, alwaysShowGuide: this.options.alwaysShowGuide, showLabel: this.options.showLabel }, this.options.showLabel && h("span", { key: '023a98551ba8d1b848665506fdad5282338a2d2e' }, "Date Range"), h("smoothly-input-clear", { key: '078a1ca386a3f814286b35fc0579573b8e4d64c3', slot: "end" })), h("div", { key: '32733c0b81a14c8a982c1607d5635d807894b2ae', class: "height" }))));
|
|
7161
7183
|
}
|
|
7162
7184
|
get element() { return getElement(this); }
|
|
7163
7185
|
};
|
|
@@ -7176,11 +7198,11 @@ const SmoothlyInputDemoUserInput = class {
|
|
|
7176
7198
|
}
|
|
7177
7199
|
render() {
|
|
7178
7200
|
var _a, _b;
|
|
7179
|
-
return (h(Host, { key: '
|
|
7201
|
+
return (h(Host, { key: 'eab36e7674fb973f979c4aaed34abadae7576fe0' }, h("div", { key: '8225faa4114dc00127534d7a4400b1d9b23f4ae7' }, h("h2", { key: 'a6e84f195de0a08ef8ea173615663417db7cb4fb' }, "User Input Event"), h("p", { key: 'e6aad349cb3b67654e5eb4499aa0088367862ceb' }, "These inputs demonstrate how user input is handled. The ", h("code", { key: 'ca92dbe2b5834d176ee33651b5d4287ece6d585c' }, "smoothlyUserInput"), " event fires only when the user interacts with an input, not when its value is changed programmatically (such as by clicking the buttons above).", h("br", { key: '96cfdda6ccf73450ce38e886fbb26681c17667ea' }), "Check the console to see the details of each ", h("code", { key: '13af94b46758e72141f7ba0da21f93f2ef70a052' }, "smoothlyUserInput"), " event.")), h("smoothly-button", { key: '5f3eadf13479a585b26f63bbd14d5a06d4efd82e', color: "tertiary", onClick: () => (this.textIndex = this.increment(this.textIndex)) }, "Change text"), h("smoothly-input", { key: '18606ed8401bc0a7a9146ab7b8da848b9f155971', looks: "border", name: "demo-user-input-text", value: this.textIndex === undefined ? "" : this.values[this.textIndex], onSmoothlyUserInput: e => console.debug(e.type, e.detail.name, e.detail.value) }, "Text input"), h("smoothly-button", { key: '89d848edf493f23af859f999c62788cd58f89b9e', onClick: () => (this.selectIndex = this.increment(this.selectIndex)), color: "tertiary" }, "Next select item"), h("smoothly-input-select", { key: '223ebf76fcfd12bb61cf78cdafb7cc2a6f9ab95a', looks: "border", name: "demo-user-input-select", onSmoothlyUserInput: e => console.debug(e.type, e.detail.name, e.detail.value) }, h("span", { key: '1bb540b065fdf0f3571482e0c8a3417a4d9be70a', slot: "label" }, "Select input"), this.values.map((value, index) => (h("smoothly-item", { value: index, selected: index == this.selectIndex }, value)))), h("smoothly-button", { key: 'c8759cf4029e8910db9eca83c856bbcd203721ae', color: "tertiary", onClick: () => (this.checkboxChecked = !this.checkboxChecked) }, "Toggle checkbox"), h("smoothly-input-checkbox", { key: 'a613696a09d76a9410d66e4fc51833db30a8acd6', looks: "border", name: "demo-user-input-checkbox", checked: this.checkboxChecked, onSmoothlyUserInput: e => console.debug(e.type, e.detail.name, e.detail.value) }, "Checkbox input"), h("smoothly-button", { key: '552e86df8bca79435198c9d18258d89471c17f2f', color: "tertiary", onClick: () => (this.radioIndex = this.increment(this.radioIndex)) }, "Next radio item"), h("smoothly-input-radio", { key: '83d0d370cfb15750bfec897741493bf51352409e', looks: "border", name: "demo-user-input-radio", onSmoothlyUserInput: e => console.debug(e.type, e.detail.name, e.detail.value) }, h("span", { key: '205e6dc2498d0ae6b95a119aba4d19c75cefabea', slot: "label" }, "Radio input"), this.values.map((value, index) => (h("smoothly-input-radio-item", { value: value, selected: index == this.radioIndex }, value)))), h("smoothly-button", { key: '13bc5121320b0982bdcf65c0ea5454841783ef24', color: "tertiary", onClick: () => (this.rangeValue = this.increment(this.rangeValue)) }, "Next range value"), h("smoothly-input-range", { key: 'c6097f9351a54aefda3b9f51694c71d4faa803a5', looks: "border", name: "demo-user-input-range", step: 1, min: 0, max: this.values.length, value: this.rangeValue, label: "Range Input", onSmoothlyUserInput: e => console.debug(e.type, e.detail.name, e.detail.value) }), h("smoothly-button", { key: '5356c9d3d1ebd1edc281d0802deee76cd098ed7d', color: "tertiary", onClick: () => (this.colorIndex = this.increment(this.colorIndex)) }, "Next color"), h("smoothly-input-color", { key: '18d6651482ef0254f9c1dd1cdefd2127c4d67dc1', looks: "border", name: "demo-user-input-color", value: typeof this.colorIndex == "number" ? this.colors[this.colorIndex] : undefined, onSmoothlyUserInput: e => console.debug(e.type, e.detail.name, e.detail.value) }, "Color input"), h("smoothly-button", { key: '3da5ff4f15a19d39a1537fc0f3f738bc840b17c4', color: "tertiary", onClick: () => (this.dateValue = this.dateValue ? isoly.Date.next(this.dateValue) : isoly.Date.now()) }, "Next day"), h("smoothly-input-date", { key: 'c20a4edf0546a89bcbd55a1f67840ffb6ca6a98a', looks: "border", name: "demo-user-input-date", value: this.dateValue, onSmoothlyUserInput: e => console.debug(e.type, e.detail.name, e.detail.value) }, "Date input"), h("smoothly-button", { key: '0ab185dd19fabc2ded8387b5d08b1580d47726c9', color: "tertiary", onClick: () => (this.datetimeValue = this.datetimeValue
|
|
7180
7202
|
? isoly.DateTime.nextDay(this.datetimeValue)
|
|
7181
|
-
: isoly.DateTime.now()) }, "Next date time"), h("smoothly-input-date-time", { key: '
|
|
7203
|
+
: isoly.DateTime.now()) }, "Next date time"), h("smoothly-input-date-time", { key: '402a80aa4b3b25a460d2acec85964446350501fa', looks: "border", name: "demo-user-input-datetime", value: this.datetimeValue, onSmoothlyUserInput: e => console.debug(e.type, e.detail.name, e.detail.value) }, "Date time input"), h("smoothly-button", { key: '89b12f184e5f3c2953b3882fca43dbea273f5178', color: "tertiary", onClick: () => (this.dateRangeValue = this.dateRangeValue
|
|
7182
7204
|
? { start: isoly.Date.next(this.dateRangeValue.start), end: isoly.Date.next(this.dateRangeValue.end) }
|
|
7183
|
-
: { start: isoly.Date.now(), end: isoly.Date.next(isoly.Date.now(), 10) }) }, "Next date range"), h("smoothly-input-date-range", { key: '
|
|
7205
|
+
: { start: isoly.Date.now(), end: isoly.Date.next(isoly.Date.now(), 10) }) }, "Next date range"), h("smoothly-input-date-range", { key: '7c2c3867bb8465daf5da9496c70e717bdfd2616c', looks: "border", name: "demo-user-input-daterange", start: (_a = this.dateRangeValue) === null || _a === void 0 ? void 0 : _a.start, end: (_b = this.dateRangeValue) === null || _b === void 0 ? void 0 : _b.end, onSmoothlyUserInput: e => console.debug(e.type, e.detail.name, e.detail.value) }, "Date range input")));
|
|
7184
7206
|
}
|
|
7185
7207
|
};
|
|
7186
7208
|
SmoothlyInputDemoUserInput.style = styleCss$L();
|
|
@@ -7213,7 +7235,7 @@ const SmoothlyInputEdit = class {
|
|
|
7213
7235
|
}
|
|
7214
7236
|
render() {
|
|
7215
7237
|
var _a;
|
|
7216
|
-
return (h(Host, { key: '
|
|
7238
|
+
return (h(Host, { key: '3fa8bd92acf77d574acfe3bd36d305e043376237', title: this.tooltip }, h("smoothly-button", { key: '758777db051b7ed16e62e11c01c74d718cfefea7', disabled: this.disabled, size: this.size, type: "button", shape: this.shape, expand: this.expand, color: this.color, fill: (_a = this.fill) !== null && _a !== void 0 ? _a : (this.type == "input" ? "clear" : undefined) }, h("slot", { key: '15d7fef684aa41d04a1a5e11ffa18480ae6aeee8' }), h("smoothly-icon", { key: 'd47e6290709546c917d2b15ad60e30fa1df11410', class: "default", name: "create-outline", size: "tiny" }))));
|
|
7217
7239
|
}
|
|
7218
7240
|
};
|
|
7219
7241
|
SmoothlyInputEdit.style = styleCss$K();
|
|
@@ -7329,7 +7351,7 @@ const SmoothlyInputFile = class {
|
|
|
7329
7351
|
}
|
|
7330
7352
|
render() {
|
|
7331
7353
|
var _a, _b, _c;
|
|
7332
|
-
return (h(Host, { key: '
|
|
7354
|
+
return (h(Host, { key: '92ab54c45c171373ca1202527ac452358b1c8de8', class: { dragging: this.dragging, "has-value": !!this.value }, tabindex: this.disabled ? undefined : 0, onClick: (e) => this.clickHandler(e), onDragOver: (e) => this.dragOverHandler(e), onDragEnter: (e) => this.dragEnterHandler(e) }, h("label", { key: 'e7865d1f743acdb3f262f812e47a7aa33e7f455b' }, h("slot", { key: 'ea009dfb71d55f4de0214c0188abdeca97cfb126', name: "label" })), h("div", { key: '9875aef8a3075c1c93450da31789c263279d2104', class: "input" }, h("smoothly-button", { key: '70c1985a28a92b0df083fcf89caa8bc6798f94ee', disabled: this.disabled, type: "button", color: this.color, fill: "clear", size: "flexible" }, h("slot", { key: '4b3eb404ef91e9ed042e2fd99b22e012a7f07780', name: "button" })), h("span", { key: 'e41716ae95c78739678c28d50d9ba65f830384fd' }, (_b = (_a = this.value) === null || _a === void 0 ? void 0 : _a.name) !== null && _b !== void 0 ? _b : this.placeholder), h("div", { key: '89f1c26d6d4d7bb4cc52b8897ee30bd1b36717d8', class: "drag-overlay", onDrop: e => this.dropHandler(e), onDragLeave: e => this.dragLeaveHandler(e) }, h("smoothly-icon", { key: 'b88edd52dcbe45bc147a152cb8550de5487dfd70', name: "document-attach-outline" })), h("input", { key: '44aed5773dc5425b492ef090685df3575a1358e6', ref: element => (this.input = element), type: "file", disabled: this.disabled, capture: this.camera == "back" ? "environment" : "user", accept: (_c = this.accept) !== null && _c !== void 0 ? _c : (!this.camera ? undefined : "image/jpeg"), files: this.files, onInput: e => this.inputHandler(e) })), h("span", { key: '4a24ad4127a02b97b04369952822aa354509ca0d', onClick: (e) => e.stopPropagation() }, h("slot", { key: '70189241ca504152198d2c20c68bdfc0f31eb71b', name: "end" }))));
|
|
7333
7355
|
}
|
|
7334
7356
|
get element() { return getElement(this); }
|
|
7335
7357
|
static get watchers() { return {
|
|
@@ -7455,21 +7477,21 @@ const SmoothlyInputMonth = class {
|
|
|
7455
7477
|
}
|
|
7456
7478
|
render() {
|
|
7457
7479
|
var _a, _b;
|
|
7458
|
-
return (h(Host, { key: '
|
|
7480
|
+
return (h(Host, { key: '28204b265ebea6c0cbb757b8cc4a6a1e01e3b74c' }, h("smoothly-icon", { key: 'f4c14f7bf0825b0baede2c01ff097482ec9d75f5', name: "caret-back-outline", size: "tiny", color: this.color, fill: "default", class: {
|
|
7459
7481
|
disabled: this.readonly || !this.allowPreviousMonth,
|
|
7460
|
-
}, onClick: () => this.allowPreviousMonth && this.adjustMonth(-1) }), h("smoothly-input-select", { key: '
|
|
7482
|
+
}, onClick: () => this.allowPreviousMonth && this.adjustMonth(-1) }), h("smoothly-input-select", { key: '08a0e79d5558899bbc60d20b9a3e8b13bd736bed', ref: e => (this.year = e), name: `${this.name}-year`, readonly: this.readonly, menuHeight: "5.5items", required: true, ordered: true, inCalendar: this.inCalendar, showLabel: this.showLabel, onSmoothlyInput: e => this.inputHandler(e), onSmoothlyUserInput: e => {
|
|
7461
7483
|
const month = e.detail.value;
|
|
7462
7484
|
if (month && isoly.Date.is(month)) {
|
|
7463
7485
|
const value = isoly.Date.firstOfMonth(month);
|
|
7464
7486
|
this.smoothlyUserInput.emit({ name: this.name, value });
|
|
7465
7487
|
}
|
|
7466
|
-
}, searchDisabled: true }, h("div", { key: '
|
|
7488
|
+
}, searchDisabled: true }, h("div", { key: 'fe85ea22cbf1dda9cbae9ba96b2d6e45343c9a31', slot: "label" }, h("slot", { key: '1f0e5aef19949285791558528dac50ada4cb1f32', name: "year-label" })), years((_a = this.value) !== null && _a !== void 0 ? _a : isoly.Date.now(), this.min, this.max).map(year => (h("smoothly-item", { key: year.date, value: year.date, selected: year.selected || this.value == year.date }, year.name)))), h("smoothly-input-select", { key: 'a5718197e3389df6c5d175ecf362826e5a6dafad', ref: e => (this.month = e), name: `${this.name}-month`, readonly: this.readonly, color: this.color, looks: this.looks, menuHeight: "5.5items", required: true, ordered: true, inCalendar: this.inCalendar, showLabel: this.showLabel, onSmoothlyInput: e => this.inputHandler(e), onSmoothlyUserInput: e => {
|
|
7467
7489
|
const year = e.detail.value;
|
|
7468
7490
|
if (year && isoly.Date.is(year)) {
|
|
7469
7491
|
const value = isoly.Date.firstOfMonth(year);
|
|
7470
7492
|
this.smoothlyUserInput.emit({ name: this.name, value });
|
|
7471
7493
|
}
|
|
7472
|
-
}, searchDisabled: true }, h("div", { key: '
|
|
7494
|
+
}, searchDisabled: true }, h("div", { key: 'd4d00cd1968bf5766fee52de789f9fe983730210', slot: "label" }, h("slot", { key: '1b0a796b6cb66e6c549cd6eaef2f281ef519816a', name: "month-label" })), months((_b = this.value) !== null && _b !== void 0 ? _b : isoly.Date.now()).map(month => (h("smoothly-item", { key: month.date, value: month.date, selected: month.selected || this.value == month.date }, month.name)))), h("smoothly-icon", { key: 'dc499bc33e59e0f918194a7a4b3a61bcdd270600', name: "caret-forward-outline", size: "tiny", color: this.color, fill: "default", class: { disabled: this.readonly || !this.allowNextMonth }, onClick: () => this.allowNextMonth && this.adjustMonth(1) })));
|
|
7473
7495
|
}
|
|
7474
7496
|
get element() { return getElement(this); }
|
|
7475
7497
|
static get watchers() { return {
|
|
@@ -7502,7 +7524,7 @@ const SmoothlyInputPriceDemo = class {
|
|
|
7502
7524
|
this.currency = "USD";
|
|
7503
7525
|
}
|
|
7504
7526
|
render() {
|
|
7505
|
-
return (h(Host, { key: '
|
|
7527
|
+
return (h(Host, { key: '2d35ede0ba48999e163c9b401e822a703c049639' }, h("h2", { key: '6e3c78bd7a51616418555e74379ed81f4351688a' }, "State demo on smoothly-input"), h("p", { key: 'd43ad6219d21d065dc62197872e4cb689fececb5' }, "This demo/test the internal state of the smoothly-input component."), h("p", { key: 'e2a250b7bfb6433bc61fa3d740df11cae0713f85' }, "The currency of the price should update when switching between the currencies."), h("smoothly-input-radio", { key: '4d111e1bd9fbc0dcc57d3a842cfd0756a4807991', name: "currency", onSmoothlyInput: e => (this.currency = isoly.Currency.is(e.detail.currency) ? e.detail.currency : undefined) }, this.currencies.map(currency => (h("smoothly-input-radio-item", { key: currency, selected: currency == this.currency, value: currency }, currency)))), h("smoothly-input", { key: '4c81a6bf8c3d854f3443942a6c1fb64db9b67b54', type: "price", currency: this.currency }, "price")));
|
|
7506
7528
|
}
|
|
7507
7529
|
};
|
|
7508
7530
|
SmoothlyInputPriceDemo.style = styleCss$H();
|
|
@@ -7661,7 +7683,7 @@ const SmoothlyInputRadioItem = class {
|
|
|
7661
7683
|
});
|
|
7662
7684
|
}
|
|
7663
7685
|
render() {
|
|
7664
|
-
return (h(Host, { key: '
|
|
7686
|
+
return (h(Host, { key: '548451e8afccb134004214398c0b040031bc9592', onClick: () => this.inputHandler(true) }, h("input", { key: '75518c6651b452bce6ec4f805555871bb503d032', name: this.name, type: "radio", checked: this.selected, disabled: this.disabled }), h("smoothly-icon", { key: '0edda6108f36a759d2bab5e188c4c336daaa1756', name: this.selected ? "checkmark-circle" : "ellipse-outline", size: "small", tooltip: "Select" }), h("label", { key: '0e909f5c587e643e61fb99c3b5458009591ac813' }, h("slot", { key: '026b2f86ba15cbff2b7fc4e2514b82cdf0d7941a' })), h("slot", { key: 'cc688d36199d3de40150f38763035593d96a1799', name: "detail" })));
|
|
7665
7687
|
}
|
|
7666
7688
|
get element() { return getElement(this); }
|
|
7667
7689
|
};
|
|
@@ -7770,18 +7792,18 @@ const SmoothlyInputRange = class {
|
|
|
7770
7792
|
}
|
|
7771
7793
|
render() {
|
|
7772
7794
|
var _a, _b, _c;
|
|
7773
|
-
return (h(Host, { key: '
|
|
7795
|
+
return (h(Host, { key: 'db02e0bee4842a0dcce6ee6856758372481f2fb4', class: {
|
|
7774
7796
|
"output-side-right": this.outputSide === "right",
|
|
7775
7797
|
"show-label": this.outputSide === "left" && !!this.label,
|
|
7776
|
-
} }, h("slot", { key: '
|
|
7798
|
+
} }, h("slot", { key: '5bcbb8d839800fef403fc14fc981182f6ed9ae30', name: "start" }), h("div", { key: '26827d93b47f12eef2709aea32588c1ec6786337' }, h("label", { key: '20c1213e52d592773db4c68b2bfcfb721d62d364', htmlFor: this.name }, this.label), h("smoothly-input", { key: '5e0bdd6c0467690f2d91cc33f24e7f3710f4b063', ref: e => (this.input = e), looks: undefined, color: this.color, name: this.name, showLabel: this.outputSide === "left" && !!this.label, type: this.type, onSmoothlyInputLoad: async (e) => (e.stopPropagation(),
|
|
7777
7799
|
this.setValue(Input.Element.is(e.target) ? Number(await e.target.getValue()) : undefined)), onSmoothlyBlur: e => e.stopPropagation(), onSmoothlyInput: async (e) => {
|
|
7778
7800
|
e.stopPropagation();
|
|
7779
7801
|
this.setValue(Input.Element.is(e.target) ? Number(await e.target.getValue()) : undefined);
|
|
7780
|
-
}, value: this.type == "percent" ? this.value : (_a = this.value) === null || _a === void 0 ? void 0 : _a.toString(), placeholder: this.outputSide === "right" ? "-" : undefined, readonly: this.readonly, disabled: this.disabled }, this.label), h("smoothly-display", { key: '
|
|
7802
|
+
}, value: this.type == "percent" ? this.value : (_a = this.value) === null || _a === void 0 ? void 0 : _a.toString(), placeholder: this.outputSide === "right" ? "-" : undefined, readonly: this.readonly, disabled: this.disabled }, this.label), h("smoothly-display", { key: 'a5502d4adaff32f798bc8e8b198d8f5258ab27e3', label: (this.type == "percent" ? this.min * 100 : this.min).toString() }), h("input", { key: 'e2afaea01a569f8cafcbfa09dab6ad6551e76f07', name: this.name, part: "range", type: "range", min: this.min, max: this.max, step: (_b = this.step) !== null && _b !== void 0 ? _b : "any", disabled: this.readonly || this.disabled, onInput: event => {
|
|
7781
7803
|
event.stopPropagation();
|
|
7782
7804
|
this.setValue(event.target.valueAsNumber);
|
|
7783
7805
|
this.smoothlyUserInput.emit({ name: this.name, value: this.value });
|
|
7784
|
-
}, value: (_c = this.value) !== null && _c !== void 0 ? _c : this.min }), h("smoothly-display", { key: '
|
|
7806
|
+
}, value: (_c = this.value) !== null && _c !== void 0 ? _c : this.min }), h("smoothly-display", { key: '92c309c4224fe86c16b22445f2ef1ba4168306e8', label: (this.type == "percent" ? this.max * 100 : this.max).toString() })), h("slot", { key: 'f9373a748b2d160781543f267373f12c43dfd46b', name: "end" })));
|
|
7785
7807
|
}
|
|
7786
7808
|
get element() { return getElement(this); }
|
|
7787
7809
|
static get watchers() { return {
|
|
@@ -7806,7 +7828,7 @@ const SmoothlyInputRangeDemo = class {
|
|
|
7806
7828
|
registerInstance(this, hostRef);
|
|
7807
7829
|
}
|
|
7808
7830
|
render() {
|
|
7809
|
-
return (h(Host, { key: '
|
|
7831
|
+
return (h(Host, { key: '93085adc52dbed67cd824108eaaf64b3bda0fb6e' }, h("h2", { key: 'a91437c641e21986ad592c73f92a14234eddb9b9' }, "Range"), h("h3", { key: '5003225e9af30f278a7f37ccc1daab93df370e80' }, "Phone Number"), h("smoothly-input-range", { key: '5c790737cea0d76367f27072088ee92dec80a662', min: 700000000, max: 799999999, step: 1, label: "Phone Number" }), h("h3", { key: '6bff0c3ac7f529787a042a7b02256eae19ad5b4b' }, "Stars out of ten"), h("smoothly-input-range", { key: 'eaee03d21dc424fc65158b29a4a7d3b255209fd3', max: 10, step: 1, label: "Stars" }), h("h3", { key: 'f2124aaca6dccfa59cf65efbb9dfbecebf575740' }, "Percent"), h("smoothly-input-range", { key: 'ce14e10e75cf3320b2699021f99c5757b6598bbe', type: "percent", max: 1, step: 0.01, label: "Percent" }), h("h3", { key: 'a12635fed326ae754cef8e15aa8f728c0bea9639' }, "With icon at start and clear button"), h("smoothly-input-range", { key: 'f8050fdae3ff4e0be8f00914e6580d69df51c18b', step: 1, name: "range2", label: "Select" }, h("smoothly-icon", { key: '438d15ceb8cd3360ebc6394ee7aee2b0131ac808', name: "checkmark-circle", slot: "start" }), h("smoothly-input-clear", { key: '98dd0d35d727339290b76dfcf4348a846db22396', size: "icon", slot: "end" }))));
|
|
7810
7832
|
}
|
|
7811
7833
|
};
|
|
7812
7834
|
|
|
@@ -7853,7 +7875,7 @@ const SmoothlyInputReset = class {
|
|
|
7853
7875
|
}
|
|
7854
7876
|
render() {
|
|
7855
7877
|
var _a;
|
|
7856
|
-
return (h(Host, { key: '
|
|
7878
|
+
return (h(Host, { key: '8be31b0878733c9af02d47f85fb2ce160d66f064', title: this.tooltip }, h("smoothly-button", { key: 'ffacca4558cfe1b94c3399ecbb4384ca6730c208', disabled: this.disabled, size: this.size, type: "button", shape: this.shape, expand: this.expand, color: this.color, fill: (_a = this.fill) !== null && _a !== void 0 ? _a : (this.type == "input" ? "clear" : undefined), onClick: event => this.clickHandler(event) }, h("slot", { key: 'a0b3a925b4062d14975cb3479f4cee3f40de7af7' }), h("smoothly-icon", { key: '8ca0aa0f3a534558de7fcefafe9267a1992d9594', flip: "x", name: "refresh-outline", size: "tiny" }))));
|
|
7857
7879
|
}
|
|
7858
7880
|
};
|
|
7859
7881
|
SmoothlyInputReset.style = styleCss$D();
|
|
@@ -7874,7 +7896,75 @@ var Item;
|
|
|
7874
7896
|
Item.is = Item.type.is;
|
|
7875
7897
|
})(Item || (Item = {}));
|
|
7876
7898
|
|
|
7877
|
-
const styleCss$C = () => `.sc-smoothly-input-select-h{--input-padding-side:.5rem;--input-value-padding-top:1.25rem;--input-value-padding-bottom:.25rem;--input-min-height:3rem;min-height:var(--input-min-height);box-sizing:border-box;border-radius:var(--smoothly-input-border-radius)}[looks="border"].sc-smoothly-input-select-h{border:rgb(var(--smoothly-input-border)) solid 1px}[looks="border"].sc-smoothly-input-select-h:not([readonly]):not([disabled]):focus-within{outline:2px solid rgb(var(--smoothly-input-border-focus))}[looks="border"][readonly].sc-smoothly-input-select-h{border:transparent solid 1px}[looks="line"].sc-smoothly-input-select-h{border-bottom:rgb(var(--smoothly-input-border)) solid 1px;position:relative}[looks="line"][readonly].sc-smoothly-input-select-h{border-bottom:transparent solid 1px}[looks="line"].sc-smoothly-input-select-h:not([readonly]):not([disabled]):focus-within::before{content:"";position:absolute;inset:0;pointer-events:none;border-bottom:2px solid rgb(var(--smoothly-input-border-focus));z-index:10}[looks="grid"].sc-smoothly-input-select-h{flex-grow:1;flex-basis:40%;box-shadow:0px 0px 0px 1px rgb(var(--smoothly-input-border));border:none}[looks="grid"][readonly].sc-smoothly-input-select-h{box-shadow:0px 0px 0px 1px rgba(var(--smoothly-input-border-readonly))}[looks="grid"].sc-smoothly-input-select-h:not([readonly]):not([disabled]):focus-within{position:relative;box-shadow:0px 0px 0px 2px rgb(var(--smoothly-input-border-focus));outline:none;z-index:10}[looks="transparent"].sc-smoothly-input-select-h{border:none}[looks="transparent"][readonly].sc-smoothly-input-select-h,[looks="transparent"].sc-smoothly-input-select-h:not(:focus-within){background-color:transparent}[looks="transparent"][readonly].sc-smoothly-input-select-h>input.sc-smoothly-input-select,[looks="transparent"].sc-smoothly-input-select-h:not(:focus-within)>input.sc-smoothly-input-select{background-color:transparent}[looks="transparent"].sc-smoothly-input-select-h:not([readonly]):focus-within{outline:1px solid rgb(var(--smoothly-input-border))}[disabled].sc-smoothly-input-select-h{cursor:not-allowed;--smoothly-input-foreground:var(--smoothly-input-disabled-foreground);--smoothly-input-background:var(--smoothly-input-disabled-background);--smoothly-input-border:var(--smoothly-input-disabled-border)}.sc-smoothly-input-select-h.sc-smoothly-input-select-s>[slot=label],.sc-smoothly-input-select-h .sc-smoothly-input-select-s>[slot=label],.sc-smoothly-input-select-h .label.sc-smoothly-input-select{position:absolute;top:.6rem;opacity:0.8;user-select:none;cursor:inherit;transform-origin:top left;transition:transform 100ms ease}.sc-smoothly-input-select-h.floating-label.sc-smoothly-input-select-s>[slot=label],.sc-smoothly-input-select-h.floating-label .sc-smoothly-input-select-s>[slot=label],.sc-smoothly-input-select-h.has-value.sc-smoothly-input-select-s>[slot=label],.sc-smoothly-input-select-h.has-value .sc-smoothly-input-select-s>[slot=label],.sc-smoothly-input-select-h[placeholder].sc-smoothly-input-select-s>[slot=label],.sc-smoothly-input-select-h[placeholder] .sc-smoothly-input-select-s>[slot=label],.sc-smoothly-input-select-h[readonly].sc-smoothly-input-select-s>[slot=label],.sc-smoothly-input-select-h[readonly] .sc-smoothly-input-select-s>[slot=label],.floating-label.sc-smoothly-input-select-h .label.sc-smoothly-input-select,.has-value.sc-smoothly-input-select-h .label.sc-smoothly-input-select,.has-text.sc-smoothly-input-select-h .label.sc-smoothly-input-select,[placeholder].sc-smoothly-input-select-h .label.sc-smoothly-input-select,[readonly].sc-smoothly-input-select-h .label.sc-smoothly-input-select,.sc-smoothly-input-select-h:not([readonly]):focus-within .label.float-on-focus.sc-smoothly-input-select{top:.2rem;transform:scale(0.8)}.sc-smoothly-input-select-h:not([show-label]):not(.show-label) .label.sc-smoothly-input-select{display:none}.sc-smoothly-input-select-h smoothly-icon.smoothly-invalid.sc-smoothly-input-select{fill:rgb(var(--smoothly-input-invalid-icon, var(--smoothly-danger-color)))}.sc-smoothly-input-select-h{display:flex;justify-content:space-between;flex-direction:row;position:relative;background-color:rgb(var(--smoothly-input-background));color:rgb(var(--smoothly-input-foreground));fill:rgb(var(--smoothly-input-foreground));stroke:rgb(var(--smoothly-input-foreground));padding-left:var(--input-padding-side)}.open.sc-smoothly-input-select-h{border-radius:var(--smoothly-input-border-radius) var(--smoothly-input-border-radius) 0 0}.icon.sc-smoothly-input-select-h{width:fit-content;flex-direction:column}.sc-smoothly-input-select-h>div.select-display.sc-smoothly-input-select{box-sizing:border-box;display:flex;padding:var(--input-value-padding-top) .8rem var(--input-value-padding-bottom) 0;overflow:hidden;width:100%;white-space:nowrap;gap:1rem;text-overflow:ellipsis}.sc-smoothly-input-select-h:not([readonly]):not([disabled])>div.select-display.sc-smoothly-input-select{cursor:pointer}.sc-smoothly-input-select-h:not(:has([slot=label]))>div.select-display.sc-smoothly-input-select,.sc-smoothly-input-select-h:not([show-label])>div.select-display.sc-smoothly-input-select{padding:.6rem .8rem .6rem 0;align-items:center}.sc-smoothly-input-select-h>div.select-display.sc-smoothly-input-select smoothly-icon.sc-smoothly-input-select{color:rgb(var(--smoothly-input-foreground));fill:rgb(var(--smoothly-input-foreground));stroke:rgb(var(--smoothly-input-foreground))}.sc-smoothly-input-select-h>div.icons.sc-smoothly-input-select{display:flex;flex-direction:row;align-items:center}.sc-smoothly-input-select-h:hover>div.icons.sc-smoothly-input-select-s>smoothly-icon{filter:opacity(100%)}.sc-smoothly-input-select-h>div.icons.sc-smoothly-input-select>smoothly-icon[name=caret-down-outline].sc-smoothly-input-select,.sc-smoothly-input-select-h>div.icons.sc-smoothly-input-select>smoothly-icon[name=caret-forward-outline].sc-smoothly-input-select{opacity:.7;height:100%;padding-inline:var(--input-padding-side)}.sc-smoothly-input-select-h:not([readonly]):not([disabled])>div.icons.sc-smoothly-input-select>smoothly-icon[name=caret-down-outline].sc-smoothly-input-select,.sc-smoothly-input-select-h:not([readonly]):not([disabled])>div.icons.sc-smoothly-input-select>smoothly-icon[name=caret-forward-outline].sc-smoothly-input-select{cursor:pointer}[invalid].sc-smoothly-input-select-h>div.sc-smoothly-input-select>smoothly-icon.smoothly-invalid.sc-smoothly-input-select{display:block;padding:0.5rem}.sc-smoothly-input-select-h>div.sc-smoothly-input-select>smoothly-icon.smoothly-invalid.sc-smoothly-input-select{display:none}.sc-smoothly-input-select-h .label.sc-smoothly-input-select{left:.5rem}.has-value.sc-smoothly-input-select-h:has([slot=label]:not(:empty))>div.select-display.sc-smoothly-input-select,.sc-smoothly-input-select-h:not(.has-value)[placeholder]>div.select-display.sc-smoothly-input-select{overflow:hidden;width:100%}.sc-smoothly-input-select-h>.options.sc-smoothly-input-select{display:flex;flex-direction:column;position:absolute;top:var(--element-height);z-index:20;max-height:var(--menu-height, unset);overflow-x:hidden;overflow-y:auto;background-color:rgb(var(--smoothly-input-background));left:0;right:0;border-radius:0 0 var(--smoothly-input-border-radius) var(--smoothly-input-border-radius);min-width:fit-content;border:rgb(var(--smoothly-input-border, var(--smoothly-color-contrast))) solid 1px;border-top:rgba(var(--smoothly-input-border, var(--smoothly-color-contrast)), .4) solid 1px}[looks="grid"].sc-smoothly-input-select-h>div.options.sc-smoothly-input-select,[looks=border].sc-smoothly-input-select-h>div.options.sc-smoothly-input-select,[looks="transparent"].sc-smoothly-input-select-h>div.options.sc-smoothly-input-select{left:-1px;right:-1px}[multiple].sc-smoothly-input-select-h>div.options.sc-smoothly-input-select>smoothly-item.sc-smoothly-input-select::before{content:"";display:inline-block;width:1rem;height:1rem;margin-right:0.5rem;border:1px solid rgb(var(--smoothly-input-foreground));border-radius:0.15rem;vertical-align:middle}[multiple].sc-smoothly-input-select-h>div.options.sc-smoothly-input-select>smoothly-item[selected].sc-smoothly-input-select::after{content:"✔";position:absolute;left:0.65rem;color:rgb(var(--smoothly-item-selected-foreground))}[multiple].sc-smoothly-input-select-h>div.options.sc-smoothly-input-select>smoothly-item[selected].sc-smoothly-input-select::before{border:1px solid rgb(var(--smoothly-item-selected-foreground))}[multiple].sc-smoothly-input-select-h>div.options.sc-smoothly-input-select>smoothly-item[selected].sc-smoothly-input-select::after{color:rgb(var(--smoothly-item-selected-foreground))}[multiple].sc-smoothly-input-select-h>div.options.sc-smoothly-input-select>smoothly-item.sc-smoothly-input-select:hover::before{border:1px solid rgb(var(--smoothly-item-hover-foreground))}[multiple].sc-smoothly-input-select-h>div.options.sc-smoothly-input-select>smoothly-item.sc-smoothly-input-select:hover::after{color:rgb(var(--smoothly-item-hover-foreground))}.sc-smoothly-input-select-h>div.options.sc-smoothly-input-select-s>smoothly-item,.sc-smoothly-input-select-h>div.options.sc-smoothly-input-select-s>div.search-preview{padding:.7rem .7rem .7rem .25rem}.sc-smoothly-input-select-h>div.options.sc-smoothly-input-select-s>div.search-preview{display:flex;position:sticky;top:0;gap:1rem;background-color:rgb(var(--smoothly-input-background));color:rgb(var(--smoothly-input-foreground, var(--smoothly-color-contrast)));fill:rgb(var(--smoothly-input-foreground, var(--smoothly-color-contrast)));stroke:rgb(var(--smoothly-input-foreground, var(--smoothly-color-contrast)))}.sc-smoothly-input-select-h>div.options.sc-smoothly-input-select-s>div.search-preview::before{content:"";position:absolute;inset:0;background-color:rgba(var(--smoothly-primary-tint), 0.5);z-index:-1}.sc-smoothly-input-select-h>div.options.sc-smoothly-input-select>div.search-preview.sc-smoothly-input-select>smoothly-icon[name="search-outline"].sc-smoothly-input-select,.sc-smoothly-input-select-h>div.options.sc-smoothly-input-select>div.search-preview.sc-smoothly-input-select>smoothly-icon[name="backspace-outline"].sc-smoothly-input-select{color:rgb(var(--smoothly-input-foreground, var(--smoothly-color-contrast)));fill:rgb(var(--smoothly-input-foreground, var(--smoothly-color-contrast)));stroke:rgb(var(--smoothly-input-foreground, var(--smoothly-color-contrast)))}.sc-smoothly-input-select-h>div.options.sc-smoothly-input-select>div.search-preview.sc-smoothly-input-select>smoothly-icon[name="backspace-outline"].sc-smoothly-input-select{margin-left:auto;margin-right:0}.sc-smoothly-input-select-h>div.options.hidden.sc-smoothly-input-select{display:none}`;
|
|
7899
|
+
var layout;
|
|
7900
|
+
(function (layout) {
|
|
7901
|
+
function firstItemHeight(items) {
|
|
7902
|
+
var _a;
|
|
7903
|
+
return (_a = items.find(item => item.clientHeight > 0)) === null || _a === void 0 ? void 0 : _a.clientHeight;
|
|
7904
|
+
}
|
|
7905
|
+
layout.firstItemHeight = firstItemHeight;
|
|
7906
|
+
function applyMenuHeight(element, itemHeight, menuHeight) {
|
|
7907
|
+
var _a, _b;
|
|
7908
|
+
const height = menuHeight.endsWith("items")
|
|
7909
|
+
? `${itemHeight * +((_b = (_a = menuHeight.match(/^(\d+(\.\d+)?|\.\d+)/g)) === null || _a === void 0 ? void 0 : _a[0]) !== null && _b !== void 0 ? _b : "10")}px`
|
|
7910
|
+
: menuHeight;
|
|
7911
|
+
element.style.setProperty("--menu-height", height);
|
|
7912
|
+
}
|
|
7913
|
+
layout.applyMenuHeight = applyMenuHeight;
|
|
7914
|
+
function applyElementHeight(element) {
|
|
7915
|
+
element === null || element === void 0 ? void 0 : element.style.setProperty("--element-height", `${element.clientHeight}px`);
|
|
7916
|
+
}
|
|
7917
|
+
layout.applyElementHeight = applyElementHeight;
|
|
7918
|
+
})(layout || (layout = {}));
|
|
7919
|
+
|
|
7920
|
+
var menu;
|
|
7921
|
+
(function (menu) {
|
|
7922
|
+
function next(items, direction) {
|
|
7923
|
+
const selectable = items.filter(item => !item.hidden && !item.disabled);
|
|
7924
|
+
const currentIndex = selectable.findIndex(item => item.marked);
|
|
7925
|
+
let index;
|
|
7926
|
+
if (currentIndex == -1) {
|
|
7927
|
+
index = 0;
|
|
7928
|
+
}
|
|
7929
|
+
else {
|
|
7930
|
+
index = (currentIndex + direction + selectable.length) % selectable.length;
|
|
7931
|
+
}
|
|
7932
|
+
return { current: selectable[currentIndex], next: selectable[index] };
|
|
7933
|
+
}
|
|
7934
|
+
menu.next = next;
|
|
7935
|
+
function hasVisibleItems(items) {
|
|
7936
|
+
return items.some(item => !item.getAttribute("hidden"));
|
|
7937
|
+
}
|
|
7938
|
+
menu.hasVisibleItems = hasVisibleItems;
|
|
7939
|
+
function markOnly(items, item) {
|
|
7940
|
+
items.map(i => (i.marked = i === item));
|
|
7941
|
+
}
|
|
7942
|
+
menu.markOnly = markOnly;
|
|
7943
|
+
function findFirstSelected(items) {
|
|
7944
|
+
return items.find(item => item.selected);
|
|
7945
|
+
}
|
|
7946
|
+
menu.findFirstSelected = findFirstSelected;
|
|
7947
|
+
function findFirstMarked(items) {
|
|
7948
|
+
return items.find(item => item.marked);
|
|
7949
|
+
}
|
|
7950
|
+
menu.findFirstMarked = findFirstMarked;
|
|
7951
|
+
})(menu || (menu = {}));
|
|
7952
|
+
|
|
7953
|
+
var scroll;
|
|
7954
|
+
(function (scroll) {
|
|
7955
|
+
function centerInView(container, item, behavior = "smooth") {
|
|
7956
|
+
var _a;
|
|
7957
|
+
if (item && container) {
|
|
7958
|
+
container.scrollTo({
|
|
7959
|
+
top: item.offsetTop + item.offsetHeight / 2 - ((_a = container.clientHeight) !== null && _a !== void 0 ? _a : 0) / 2,
|
|
7960
|
+
behavior,
|
|
7961
|
+
});
|
|
7962
|
+
}
|
|
7963
|
+
}
|
|
7964
|
+
scroll.centerInView = centerInView;
|
|
7965
|
+
})(scroll || (scroll = {}));
|
|
7966
|
+
|
|
7967
|
+
const styleCss$C = () => `.sc-smoothly-input-select-h{--input-padding-side:.5rem;--input-value-padding-top:1.25rem;--input-value-padding-bottom:.25rem;--input-min-height:3rem;min-height:var(--input-min-height);box-sizing:border-box;border-radius:var(--smoothly-input-border-radius)}[looks="border"].sc-smoothly-input-select-h{border:rgb(var(--smoothly-input-border)) solid 1px}[looks="border"].sc-smoothly-input-select-h:not([readonly]):not([disabled]):focus-within{outline:2px solid rgb(var(--smoothly-input-border-focus))}[looks="border"][readonly].sc-smoothly-input-select-h{border:transparent solid 1px}[looks="line"].sc-smoothly-input-select-h{border-bottom:rgb(var(--smoothly-input-border)) solid 1px;position:relative}[looks="line"][readonly].sc-smoothly-input-select-h{border-bottom:transparent solid 1px}[looks="line"].sc-smoothly-input-select-h:not([readonly]):not([disabled]):focus-within::before{content:"";position:absolute;inset:0;pointer-events:none;border-bottom:2px solid rgb(var(--smoothly-input-border-focus));z-index:10}[looks="grid"].sc-smoothly-input-select-h{flex-grow:1;flex-basis:40%;box-shadow:0px 0px 0px 1px rgb(var(--smoothly-input-border));border:none}[looks="grid"][readonly].sc-smoothly-input-select-h{box-shadow:0px 0px 0px 1px rgba(var(--smoothly-input-border-readonly))}[looks="grid"].sc-smoothly-input-select-h:not([readonly]):not([disabled]):focus-within{position:relative;box-shadow:0px 0px 0px 2px rgb(var(--smoothly-input-border-focus));outline:none;z-index:10}[looks="transparent"].sc-smoothly-input-select-h{border:none}[looks="transparent"][readonly].sc-smoothly-input-select-h,[looks="transparent"].sc-smoothly-input-select-h:not(:focus-within){background-color:transparent}[looks="transparent"][readonly].sc-smoothly-input-select-h>input.sc-smoothly-input-select,[looks="transparent"].sc-smoothly-input-select-h:not(:focus-within)>input.sc-smoothly-input-select{background-color:transparent}[looks="transparent"].sc-smoothly-input-select-h:not([readonly]):focus-within{outline:1px solid rgb(var(--smoothly-input-border))}[disabled].sc-smoothly-input-select-h{cursor:not-allowed;--smoothly-input-foreground:var(--smoothly-input-disabled-foreground);--smoothly-input-background:var(--smoothly-input-disabled-background);--smoothly-input-border:var(--smoothly-input-disabled-border)}.sc-smoothly-input-select-h.sc-smoothly-input-select-s>[slot=label],.sc-smoothly-input-select-h .sc-smoothly-input-select-s>[slot=label],.sc-smoothly-input-select-h .label.sc-smoothly-input-select{position:absolute;top:.6rem;opacity:0.8;user-select:none;cursor:inherit;transform-origin:top left;transition:transform 100ms ease}.sc-smoothly-input-select-h.floating-label.sc-smoothly-input-select-s>[slot=label],.sc-smoothly-input-select-h.floating-label .sc-smoothly-input-select-s>[slot=label],.sc-smoothly-input-select-h.has-value.sc-smoothly-input-select-s>[slot=label],.sc-smoothly-input-select-h.has-value .sc-smoothly-input-select-s>[slot=label],.sc-smoothly-input-select-h[placeholder].sc-smoothly-input-select-s>[slot=label],.sc-smoothly-input-select-h[placeholder] .sc-smoothly-input-select-s>[slot=label],.sc-smoothly-input-select-h[readonly].sc-smoothly-input-select-s>[slot=label],.sc-smoothly-input-select-h[readonly] .sc-smoothly-input-select-s>[slot=label],.floating-label.sc-smoothly-input-select-h .label.sc-smoothly-input-select,.has-value.sc-smoothly-input-select-h .label.sc-smoothly-input-select,.has-text.sc-smoothly-input-select-h .label.sc-smoothly-input-select,[placeholder].sc-smoothly-input-select-h .label.sc-smoothly-input-select,[readonly].sc-smoothly-input-select-h .label.sc-smoothly-input-select,.sc-smoothly-input-select-h:not([readonly]):focus-within .label.float-on-focus.sc-smoothly-input-select{top:.2rem;transform:scale(0.8)}.sc-smoothly-input-select-h:not([show-label]):not(.show-label) .label.sc-smoothly-input-select{display:none}.sc-smoothly-input-select-h smoothly-icon.smoothly-invalid.sc-smoothly-input-select{fill:rgb(var(--smoothly-input-invalid-icon, var(--smoothly-danger-color)))}.sc-smoothly-input-select-h{display:flex;justify-content:space-between;flex-direction:row;position:relative;background-color:rgb(var(--smoothly-input-background));color:rgb(var(--smoothly-input-foreground));fill:rgb(var(--smoothly-input-foreground));stroke:rgb(var(--smoothly-input-foreground));padding-left:var(--input-padding-side)}.open.sc-smoothly-input-select-h{border-radius:var(--smoothly-input-border-radius) var(--smoothly-input-border-radius) 0 0}.sc-smoothly-input-select-h>.select-display.sc-smoothly-input-select{box-sizing:border-box;display:flex;padding:var(--input-value-padding-top) .8rem var(--input-value-padding-bottom) 0;overflow:hidden;width:100%;white-space:nowrap;gap:1rem;text-overflow:ellipsis}.sc-smoothly-input-select-h:not([readonly]):not([disabled])>.select-display.sc-smoothly-input-select{cursor:pointer}.sc-smoothly-input-select-h:not(:has([slot=label]))>.select-display.sc-smoothly-input-select,.sc-smoothly-input-select-h:not([show-label])>.select-display.sc-smoothly-input-select{padding:.6rem .8rem .6rem 0;align-items:center}.sc-smoothly-input-select-h>.select-display.sc-smoothly-input-select smoothly-icon.sc-smoothly-input-select{color:rgb(var(--smoothly-input-foreground));fill:rgb(var(--smoothly-input-foreground));stroke:rgb(var(--smoothly-input-foreground))}.sc-smoothly-input-select-h>div.icons.sc-smoothly-input-select{display:flex;flex-direction:row;align-items:center}.sc-smoothly-input-select-h:hover>div.icons.sc-smoothly-input-select-s>smoothly-icon{filter:opacity(100%)}.sc-smoothly-input-select-h>div.icons.sc-smoothly-input-select>smoothly-icon[name=caret-down-outline].sc-smoothly-input-select,.sc-smoothly-input-select-h>div.icons.sc-smoothly-input-select>smoothly-icon[name=caret-forward-outline].sc-smoothly-input-select{opacity:.7;height:100%;padding-inline:var(--input-padding-side)}.sc-smoothly-input-select-h:not([readonly]):not([disabled])>div.icons.sc-smoothly-input-select>smoothly-icon[name=caret-down-outline].sc-smoothly-input-select,.sc-smoothly-input-select-h:not([readonly]):not([disabled])>div.icons.sc-smoothly-input-select>smoothly-icon[name=caret-forward-outline].sc-smoothly-input-select{cursor:pointer}[invalid].sc-smoothly-input-select-h>div.sc-smoothly-input-select>smoothly-icon.smoothly-invalid.sc-smoothly-input-select{display:block;padding:0.5rem}.sc-smoothly-input-select-h>div.sc-smoothly-input-select>smoothly-icon.smoothly-invalid.sc-smoothly-input-select{display:none}.has-value.sc-smoothly-input-select-h:has([slot=label]:not(:empty))>.select-display.sc-smoothly-input-select,.sc-smoothly-input-select-h:not(.has-value)[placeholder]>.select-display.sc-smoothly-input-select{overflow:hidden;width:100%}.sc-smoothly-input-select-h>.dropdown.sc-smoothly-input-select{display:flex;flex-direction:column;position:absolute;top:var(--element-height);z-index:20;max-height:var(--menu-height, unset);overflow-x:hidden;overflow-y:auto;background-color:rgb(var(--smoothly-input-background));inset-inline:0;border-radius:0 0 var(--smoothly-input-border-radius) var(--smoothly-input-border-radius);border:rgb(var(--smoothly-input-border, var(--smoothly-color-contrast))) solid 1px;border-top:rgba(var(--smoothly-input-border, var(--smoothly-color-contrast)), .4) solid 1px}.sc-smoothly-input-select-h:not(.open)>.dropdown.sc-smoothly-input-select{border:0}[looks="grid"].sc-smoothly-input-select-h>.dropdown.sc-smoothly-input-select,[looks=border].sc-smoothly-input-select-h>.dropdown.sc-smoothly-input-select,[looks="transparent"].sc-smoothly-input-select-h>.dropdown.sc-smoothly-input-select{inset-inline:-1px}.sc-smoothly-input-select-h>.dropdown.sc-smoothly-input-select>.search.sc-smoothly-input-select{display:flex;position:sticky;align-items:center;top:0;gap:1rem;padding:.7rem .7rem .7rem .25rem;background-color:rgb(var(--smoothly-input-background));color:rgb(var(--smoothly-input-foreground, var(--smoothly-color-contrast)));fill:rgb(var(--smoothly-input-foreground, var(--smoothly-color-contrast)));stroke:rgb(var(--smoothly-input-foreground, var(--smoothly-color-contrast)))}.sc-smoothly-input-select-h:not(.has-filter)>.dropdown.sc-smoothly-input-select>.search.sc-smoothly-input-select{height:0;padding:0;overflow:hidden;pointer-events:none}.sc-smoothly-input-select-h>.dropdown.sc-smoothly-input-select>.search.sc-smoothly-input-select::before{content:"";position:absolute;inset:0;background-color:rgba(var(--smoothly-primary-tint), 0.5);z-index:-1}.sc-smoothly-input-select-h>.dropdown.sc-smoothly-input-select>.search.sc-smoothly-input-select>.search-input.sc-smoothly-input-select{width:100%;background-color:transparent;border:none;outline:none}.sc-smoothly-input-select-h>.dropdown.sc-smoothly-input-select>.search.sc-smoothly-input-select>smoothly-icon[name="search-outline"].sc-smoothly-input-select,.sc-smoothly-input-select-h>.dropdown.sc-smoothly-input-select>.search.sc-smoothly-input-select>smoothly-icon[name="backspace-outline"].sc-smoothly-input-select{color:rgb(var(--smoothly-input-foreground, var(--smoothly-color-contrast)));fill:rgb(var(--smoothly-input-foreground, var(--smoothly-color-contrast)));stroke:rgb(var(--smoothly-input-foreground, var(--smoothly-color-contrast)))}.sc-smoothly-input-select-h[multiple].sc-smoothly-input-select-s>.dropdown>.menu>smoothly-item{position:relative}.sc-smoothly-input-select-h[multiple].sc-smoothly-input-select-s>.dropdown>.menu>smoothly-item::before{content:"";display:inline-block;width:1rem;height:1rem;margin-right:0.5rem;border:1px solid rgb(var(--smoothly-input-foreground));border-radius:0.15rem;vertical-align:middle}.sc-smoothly-input-select-h[multiple].sc-smoothly-input-select-s>.dropdown>.menu>smoothly-item[selected]::before{border-color:rgb(var(--smoothly-item-selected-foreground))}.sc-smoothly-input-select-h[multiple].sc-smoothly-input-select-s>.dropdown>.menu>smoothly-item:hover::before{border:1px solid rgb(var(--smoothly-item-hover-foreground))}.sc-smoothly-input-select-h[multiple].sc-smoothly-input-select-s>.dropdown>.menu>smoothly-item[selected]::after{content:"✔";position:absolute;left:0.65rem;color:rgb(var(--smoothly-item-selected-foreground))}.sc-smoothly-input-select-h[multiple].sc-smoothly-input-select-s>.dropdown>.menu>smoothly-item:hover::after{color:rgb(var(--smoothly-item-hover-foreground))}.sc-smoothly-input-select-h>.dropdown.sc-smoothly-input-select{min-width:fit-content}.sc-smoothly-input-select-h>.dropdown.sc-smoothly-input-select>.menu[hidden].sc-smoothly-input-select{display:none}`;
|
|
7878
7968
|
|
|
7879
7969
|
const SmoothlyInputSelect = class {
|
|
7880
7970
|
constructor(hostRef) {
|
|
@@ -7922,18 +8012,24 @@ const SmoothlyInputSelect = class {
|
|
|
7922
8012
|
this.onSelectedChange();
|
|
7923
8013
|
}
|
|
7924
8014
|
componentDidRender() {
|
|
7925
|
-
var _a
|
|
7926
|
-
|
|
8015
|
+
var _a;
|
|
8016
|
+
(_a = this.itemHeight) !== null && _a !== void 0 ? _a : (this.itemHeight = layout.firstItemHeight(this.items));
|
|
7927
8017
|
if (this.menuHeight && this.itemHeight) {
|
|
7928
|
-
(
|
|
7929
|
-
? this.menuHeight
|
|
7930
|
-
: `${this.itemHeight * +((_d = (_c = this.menuHeight.match(/^(\d+(\.\d+)?|\.\d+)/g)) === null || _c === void 0 ? void 0 : _c[0]) !== null && _d !== void 0 ? _d : "10")}px`);
|
|
8018
|
+
layout.applyMenuHeight(this.element, this.itemHeight, this.menuHeight);
|
|
7931
8019
|
}
|
|
7932
|
-
|
|
7933
|
-
|
|
8020
|
+
layout.applyElementHeight(this.element);
|
|
8021
|
+
const justOpened = this.open && !this.lastOpen;
|
|
8022
|
+
if (justOpened && this.ordered) {
|
|
7934
8023
|
this.scrollToSelected();
|
|
7935
8024
|
}
|
|
7936
8025
|
}
|
|
8026
|
+
scrollToSelected() {
|
|
8027
|
+
const selectedItem = menu.findFirstSelected(this.items);
|
|
8028
|
+
if (selectedItem) {
|
|
8029
|
+
menu.markOnly(this.items, selectedItem);
|
|
8030
|
+
scroll.centerInView(this.dropdownElement, selectedItem, "instant");
|
|
8031
|
+
}
|
|
8032
|
+
}
|
|
7937
8033
|
async disconnectedCallback() {
|
|
7938
8034
|
if (!this.element.isConnected) {
|
|
7939
8035
|
await this.unregister();
|
|
@@ -7967,15 +8063,15 @@ const SmoothlyInputSelect = class {
|
|
|
7967
8063
|
this.selected = [...this.initialValue];
|
|
7968
8064
|
this.displaySelected();
|
|
7969
8065
|
this.isDifferentFromInitial = false;
|
|
7970
|
-
this.
|
|
8066
|
+
this.closeMenu();
|
|
7971
8067
|
}
|
|
7972
8068
|
async clear() {
|
|
7973
8069
|
var _a;
|
|
7974
8070
|
if (this.clearable) {
|
|
7975
8071
|
this.selected.forEach(item => (item.selected = item.hidden = false));
|
|
7976
8072
|
this.selected = [];
|
|
7977
|
-
if (this.
|
|
7978
|
-
this.
|
|
8073
|
+
if (this.displayElement) {
|
|
8074
|
+
this.displayElement.innerHTML = (_a = this.placeholder) !== null && _a !== void 0 ? _a : "";
|
|
7979
8075
|
}
|
|
7980
8076
|
}
|
|
7981
8077
|
}
|
|
@@ -8003,9 +8099,9 @@ const SmoothlyInputSelect = class {
|
|
|
8003
8099
|
this.observer.publish();
|
|
8004
8100
|
}
|
|
8005
8101
|
async smoothlyInputLoadHandler(event) {
|
|
8006
|
-
|
|
8007
|
-
|
|
8008
|
-
|
|
8102
|
+
const fromSelf = event.target && "name" in event.target && event.target.name !== this.name;
|
|
8103
|
+
const fromEndSlot = event.composedPath().some(e => e == this.iconsElement);
|
|
8104
|
+
if (fromSelf || fromEndSlot) {
|
|
8009
8105
|
event.stopPropagation();
|
|
8010
8106
|
}
|
|
8011
8107
|
else if (Item.Element.is(event.target)) {
|
|
@@ -8017,7 +8113,9 @@ const SmoothlyInputSelect = class {
|
|
|
8017
8113
|
this.displaySelected();
|
|
8018
8114
|
}
|
|
8019
8115
|
onWindowClick(event) {
|
|
8020
|
-
!event.composedPath().includes(this.element)
|
|
8116
|
+
if (this.open && !event.composedPath().includes(this.element)) {
|
|
8117
|
+
this.closeMenu();
|
|
8118
|
+
}
|
|
8021
8119
|
}
|
|
8022
8120
|
onItemDomChange(e) {
|
|
8023
8121
|
e.stopPropagation();
|
|
@@ -8045,144 +8143,120 @@ const SmoothlyInputSelect = class {
|
|
|
8045
8143
|
onClosed(open, before) {
|
|
8046
8144
|
this.lastOpen = before;
|
|
8047
8145
|
if (!open) {
|
|
8048
|
-
const markedItem = this.items
|
|
8146
|
+
const markedItem = menu.findFirstMarked(this.items);
|
|
8049
8147
|
if (markedItem) {
|
|
8050
8148
|
markedItem.marked = false;
|
|
8051
8149
|
}
|
|
8052
8150
|
}
|
|
8053
8151
|
this.smoothlySelectOpen.emit(open);
|
|
8054
8152
|
}
|
|
8055
|
-
handleShowOptions(event) {
|
|
8056
|
-
const wasButtonClicked = (event === null || event === void 0 ? void 0 : event.composedPath().some(e => e == this.iconsDiv)) && !event.composedPath().some(e => e == this.toggle);
|
|
8057
|
-
const clickedItem = event === null || event === void 0 ? void 0 : event.composedPath().find((el) => "tagName" in el && el.tagName == "SMOOTHLY-ITEM");
|
|
8058
|
-
!this.readonly &&
|
|
8059
|
-
!this.disabled &&
|
|
8060
|
-
!(clickedItem && this.items.includes(clickedItem) && this.multiple) &&
|
|
8061
|
-
!wasButtonClicked &&
|
|
8062
|
-
(this.open = !this.open);
|
|
8063
|
-
this.filter = "";
|
|
8064
|
-
}
|
|
8065
8153
|
areValuesEqual(selected, initialValue) {
|
|
8066
8154
|
return selected.length === initialValue.length && initialValue.every(value => selected.includes(value));
|
|
8067
8155
|
}
|
|
8068
8156
|
displaySelected() {
|
|
8069
8157
|
var _a;
|
|
8070
8158
|
const displayString = this.selected.map(option => `<div>${option.innerHTML}</div>`).join("");
|
|
8071
|
-
this.
|
|
8072
|
-
(this.
|
|
8159
|
+
this.displayElement &&
|
|
8160
|
+
(this.displayElement.innerHTML = this.selected.length > 0 ? displayString : ((_a = this.placeholder) !== null && _a !== void 0 ? _a : ""));
|
|
8073
8161
|
}
|
|
8074
8162
|
onKeyDown(event) {
|
|
8075
|
-
|
|
8076
|
-
|
|
8077
|
-
|
|
8078
|
-
|
|
8079
|
-
|
|
8080
|
-
|
|
8081
|
-
|
|
8082
|
-
|
|
8083
|
-
|
|
8084
|
-
|
|
8085
|
-
|
|
8086
|
-
|
|
8087
|
-
|
|
8088
|
-
|
|
8089
|
-
|
|
8090
|
-
|
|
8091
|
-
|
|
8092
|
-
|
|
8093
|
-
|
|
8094
|
-
|
|
8095
|
-
}
|
|
8096
|
-
break;
|
|
8097
|
-
case "Backspace":
|
|
8098
|
-
this.filter = event.ctrlKey ? "" : this.filter.slice(0, -1);
|
|
8099
|
-
break;
|
|
8100
|
-
case "Enter":
|
|
8101
|
-
const result = this.items.find(item => item.marked);
|
|
8102
|
-
if (result === null || result === void 0 ? void 0 : result.value) {
|
|
8103
|
-
result.selected = !result.selected;
|
|
8104
|
-
}
|
|
8105
|
-
if (!this.multiple) {
|
|
8106
|
-
this.open = false;
|
|
8107
|
-
this.filter = "";
|
|
8108
|
-
}
|
|
8109
|
-
break;
|
|
8110
|
-
case "Tab":
|
|
8111
|
-
this.open = false;
|
|
8112
|
-
break;
|
|
8113
|
-
default:
|
|
8114
|
-
if (event.key.length == 1) {
|
|
8115
|
-
this.filter += event.key;
|
|
8116
|
-
}
|
|
8117
|
-
break;
|
|
8118
|
-
}
|
|
8119
|
-
}
|
|
8120
|
-
else {
|
|
8121
|
-
switch (event.key) {
|
|
8122
|
-
case "Enter":
|
|
8123
|
-
case " ":
|
|
8124
|
-
this.handleShowOptions();
|
|
8125
|
-
break;
|
|
8126
|
-
case "ArrowDown":
|
|
8127
|
-
this.handleShowOptions();
|
|
8128
|
-
this.move(1);
|
|
8129
|
-
break;
|
|
8130
|
-
case "ArrowUp":
|
|
8131
|
-
this.handleShowOptions();
|
|
8132
|
-
this.move(-1);
|
|
8133
|
-
break;
|
|
8134
|
-
case "Tab":
|
|
8135
|
-
break;
|
|
8136
|
-
default:
|
|
8137
|
-
this.handleShowOptions();
|
|
8138
|
-
if (event.key.length == 1) {
|
|
8139
|
-
this.filter += event.key;
|
|
8140
|
-
}
|
|
8141
|
-
break;
|
|
8142
|
-
}
|
|
8143
|
-
}
|
|
8163
|
+
event.stopPropagation();
|
|
8164
|
+
const key = event.key;
|
|
8165
|
+
if (key == "ArrowUp" || key == "ArrowDown") {
|
|
8166
|
+
event.preventDefault();
|
|
8167
|
+
this.handlerNavigate(key);
|
|
8168
|
+
}
|
|
8169
|
+
else if (key == "Escape") {
|
|
8170
|
+
event.preventDefault();
|
|
8171
|
+
this.handleEscape();
|
|
8172
|
+
}
|
|
8173
|
+
else if (key == "Enter") {
|
|
8174
|
+
event.preventDefault();
|
|
8175
|
+
this.handleEnter();
|
|
8176
|
+
}
|
|
8177
|
+
else if (key == " ") {
|
|
8178
|
+
event.preventDefault();
|
|
8179
|
+
this.openMenu();
|
|
8180
|
+
}
|
|
8181
|
+
else if (this.open && key == "Tab") {
|
|
8182
|
+
this.closeMenu();
|
|
8144
8183
|
}
|
|
8145
8184
|
}
|
|
8146
|
-
|
|
8147
|
-
|
|
8148
|
-
|
|
8149
|
-
this.items.map(item => (item.marked = false));
|
|
8150
|
-
selectedItem.marked = true;
|
|
8151
|
-
this.scrollTo(selectedItem, "instant");
|
|
8185
|
+
handlerNavigate(key) {
|
|
8186
|
+
if (menu.hasVisibleItems(this.items)) {
|
|
8187
|
+
this.move(key == "ArrowUp" ? -1 : 1);
|
|
8152
8188
|
}
|
|
8189
|
+
this.openMenu();
|
|
8153
8190
|
}
|
|
8154
|
-
|
|
8155
|
-
|
|
8156
|
-
|
|
8157
|
-
if (markedIndex == -1) {
|
|
8158
|
-
markedIndex = 0;
|
|
8191
|
+
handleEscape() {
|
|
8192
|
+
if (this.filter) {
|
|
8193
|
+
this.resetFilter();
|
|
8159
8194
|
}
|
|
8160
8195
|
else {
|
|
8161
|
-
|
|
8162
|
-
markedIndex = (markedIndex + direction + selectableItems.length) % selectableItems.length;
|
|
8196
|
+
this.closeMenu();
|
|
8163
8197
|
}
|
|
8164
|
-
selectableItems[markedIndex].marked = true;
|
|
8165
|
-
this.scrollTo(selectableItems[markedIndex], "smooth");
|
|
8166
8198
|
}
|
|
8167
|
-
|
|
8168
|
-
|
|
8169
|
-
(
|
|
8170
|
-
|
|
8171
|
-
|
|
8172
|
-
|
|
8199
|
+
handleEnter() {
|
|
8200
|
+
const item = menu.findFirstMarked(this.items);
|
|
8201
|
+
if (item === null || item === void 0 ? void 0 : item.value) {
|
|
8202
|
+
item.selected = !item.selected;
|
|
8203
|
+
}
|
|
8204
|
+
if (!this.multiple) {
|
|
8205
|
+
this.closeMenu();
|
|
8206
|
+
this.resetFilter();
|
|
8207
|
+
}
|
|
8208
|
+
}
|
|
8209
|
+
move(direction) {
|
|
8210
|
+
const { current, next } = menu.next(this.items, direction);
|
|
8211
|
+
current && (current.marked = false);
|
|
8212
|
+
next.marked = true;
|
|
8213
|
+
scroll.centerInView(this.dropdownElement, next, "smooth");
|
|
8173
8214
|
}
|
|
8174
8215
|
addItem() {
|
|
8175
8216
|
this.addedItems = this.addedItems.concat(h("smoothly-item", { value: this.filter, selected: true }, this.filter));
|
|
8176
8217
|
}
|
|
8218
|
+
resetFilter() {
|
|
8219
|
+
this.searchElement && (this.searchElement.value = "");
|
|
8220
|
+
this.filter = "";
|
|
8221
|
+
}
|
|
8222
|
+
setFilter(filter) {
|
|
8223
|
+
if (filter) {
|
|
8224
|
+
this.filter = filter;
|
|
8225
|
+
this.openMenu();
|
|
8226
|
+
}
|
|
8227
|
+
else {
|
|
8228
|
+
this.resetFilter();
|
|
8229
|
+
}
|
|
8230
|
+
}
|
|
8231
|
+
openMenu({ focus } = {}) {
|
|
8232
|
+
this.open = true;
|
|
8233
|
+
focus && queueMicrotask(() => { var _a; return (_a = this.searchElement) === null || _a === void 0 ? void 0 : _a.focus(); });
|
|
8234
|
+
}
|
|
8235
|
+
closeMenu() {
|
|
8236
|
+
this.open = false;
|
|
8237
|
+
this.resetFilter();
|
|
8238
|
+
}
|
|
8239
|
+
toggleMenu() {
|
|
8240
|
+
if (!this.readonly && !this.disabled) {
|
|
8241
|
+
this.open ? this.closeMenu() : this.openMenu({ focus: true });
|
|
8242
|
+
}
|
|
8243
|
+
}
|
|
8244
|
+
onClick(e) {
|
|
8245
|
+
const wasIconsClicked = e.composedPath().includes(this.iconsElement) && !e.composedPath().includes(this.toggleElement);
|
|
8246
|
+
const wasSearchClicked = e.composedPath().includes(this.searchElement);
|
|
8247
|
+
const wasItemClicked = e
|
|
8248
|
+
.composedPath()
|
|
8249
|
+
.find(element => element instanceof HTMLElement && element.tagName === "SMOOTHLY-ITEM");
|
|
8250
|
+
if (!wasIconsClicked && !wasSearchClicked && !(wasItemClicked && this.multiple)) {
|
|
8251
|
+
this.toggleMenu();
|
|
8252
|
+
}
|
|
8253
|
+
}
|
|
8177
8254
|
render() {
|
|
8178
|
-
return (h(Host, { key: '
|
|
8179
|
-
|
|
8180
|
-
this.
|
|
8181
|
-
this.
|
|
8182
|
-
} }), this.mutable &&
|
|
8183
|
-
e.stopPropagation();
|
|
8184
|
-
this.addItem();
|
|
8185
|
-
} })))), h("slot", { key: 'a60d0d54bfc5dbae48ec336f92c5556a5ba13b2e' }), this.addedItems)));
|
|
8255
|
+
return (h(Host, { key: '3eb062d5cc34ecef9c9341630243d549aad808c3', class: { "has-value": this.selected.length !== 0, open: this.open, "has-filter": this.filter !== "" }, onClick: (e) => this.onClick(e) }, h("div", { key: 'e605a24480a0b3dafbd1b596fac1725d5e25be84', class: "select-display", ref: element => (this.displayElement = element) }, this.placeholder), h("div", { key: '3366fc93ccab479a0d9d67e206617941ad091340', class: "icons", ref: element => (this.iconsElement = element) }, h("smoothly-icon", { key: '3f64b7dc283062976a7292160917ab7a8c281521', class: "smoothly-invalid", name: "alert-circle", size: "small", tooltip: this.errorMessage }), h("slot", { key: 'be63eaedc949912f5717ecceabb64ac93910dc98', name: "end" }), this.looks == "border" && !this.readonly && (h("smoothly-icon", { key: 'e41773f5b431e916f8177e76b877290c5cad7db6', ref: element => (this.toggleElement = element), size: "tiny", name: this.open ? "caret-down-outline" : "caret-forward-outline" }))), h("slot", { key: 'd2c2d0d9a983dfe2609b18eedda29244a339bbd8', name: "label" }), h("div", { key: '5e51033c06fa134e945ff2c27245340bcaed2069', class: "dropdown", ref: (el) => (this.dropdownElement = el) }, h("div", { key: 'f4237bc5b2001f68aa5fc0b30a0df08f4bf2bc4e', class: "search" }, h("smoothly-icon", { key: 'b23bba84f76f4da515ddeffa9a2ae7f62277915b', name: "search-outline", size: "small" }), h("input", { key: '86e28d85b9fd95a039d084db092b098342244813', class: "search-input", ref: el => (this.searchElement = el), disabled: this.searchDisabled, onKeyDown: e => this.onKeyDown(e), onInput: e => { var _a, _b; return (e.stopPropagation(), this.setFilter((_b = (_a = this.searchElement) === null || _a === void 0 ? void 0 : _a.value) !== null && _b !== void 0 ? _b : "")); }, onPaste: e => { var _a, _b; return (e.stopPropagation(), this.setFilter((_b = (_a = this.searchElement) === null || _a === void 0 ? void 0 : _a.value) !== null && _b !== void 0 ? _b : "")); } }), h("smoothly-icon", { key: 'e585529e50786c3ffc2dab72245230debd60558f', name: "backspace-outline", size: "small", onClick: () => {
|
|
8256
|
+
var _a;
|
|
8257
|
+
this.resetFilter();
|
|
8258
|
+
(_a = this.searchElement) === null || _a === void 0 ? void 0 : _a.focus();
|
|
8259
|
+
} }), this.mutable && h("smoothly-icon", { key: '49866182fe80ba3ad18e1b821e7c2a55852f4bb2', name: "add", size: "small", onClick: () => this.addItem() })), h("div", { key: 'f635f6143d0eeff2e01fa0283f7f7d1c337ef8d8', class: "menu", hidden: !this.open }, h("slot", { key: '7f483cf3b64fb231c724ef4004073cf232d1a7ad' }), this.addedItems))));
|
|
8186
8260
|
}
|
|
8187
8261
|
get element() { return getElement(this); }
|
|
8188
8262
|
static get watchers() { return {
|
|
@@ -8252,7 +8326,7 @@ const SmoothlyInputSubmit = class {
|
|
|
8252
8326
|
}
|
|
8253
8327
|
render() {
|
|
8254
8328
|
var _a, _b;
|
|
8255
|
-
return (h(Host, { key: '
|
|
8329
|
+
return (h(Host, { key: '771dbd864209f2f419212813858c654de9352797', title: this.tooltip }, this.delete == true ? (h("smoothly-button-confirm", { size: this.size, shape: this.shape, expand: this.expand, color: (_a = this.color) !== null && _a !== void 0 ? _a : "danger", fill: this.fill, onSmoothlyConfirm: () => this.clickHandler() }, h("slot", null), h("smoothly-icon", { name: "trash-outline", fill: "solid", size: "tiny" }))) : (h("smoothly-button", { disabled: this.disabled, size: this.size, type: "button", shape: this.shape, expand: this.expand, color: (_b = this.color) !== null && _b !== void 0 ? _b : "success", fill: this.fill, onClick: () => this.clickHandler() }, h("slot", null), this.icon && h("smoothly-icon", { name: this.icon, fill: "solid", size: "tiny" })))));
|
|
8256
8330
|
}
|
|
8257
8331
|
};
|
|
8258
8332
|
SmoothlyInputSubmit.style = styleCss$B();
|
|
@@ -8298,7 +8372,7 @@ const SmoothlyItem = class {
|
|
|
8298
8372
|
: false;
|
|
8299
8373
|
}
|
|
8300
8374
|
render() {
|
|
8301
|
-
return (h(Host, { key: '
|
|
8375
|
+
return (h(Host, { key: 'a7ee995ec37b480a02715fb95c885152560cc0c1', tabIndex: -1 }, h("slot", { key: 'dcc2403a2253a7059dc88b4658c17c6533876a9f' })));
|
|
8302
8376
|
}
|
|
8303
8377
|
get element() { return getElement(this); }
|
|
8304
8378
|
static get watchers() { return {
|
|
@@ -8317,9 +8391,9 @@ const SmoothlyLabel = class {
|
|
|
8317
8391
|
}
|
|
8318
8392
|
render() {
|
|
8319
8393
|
var _a;
|
|
8320
|
-
return (h(Host, { key: '
|
|
8394
|
+
return (h(Host, { key: '2ae229f53b855fbc470064e7ded803a990d98711', title: this.description, style: {
|
|
8321
8395
|
"--hue": (_a = this.hue) === null || _a === void 0 ? void 0 : _a.toString(),
|
|
8322
|
-
} }, h("slot", { key: '
|
|
8396
|
+
} }, h("slot", { key: '52d6798bf0fbea2948297aad2fe3a71a000b4f76' })));
|
|
8323
8397
|
}
|
|
8324
8398
|
};
|
|
8325
8399
|
SmoothlyLabel.style = styleCss$z();
|
|
@@ -8336,7 +8410,7 @@ const SmoothlyLazy = class {
|
|
|
8336
8410
|
this.show = true;
|
|
8337
8411
|
}
|
|
8338
8412
|
render() {
|
|
8339
|
-
return (h(Host, { key: '
|
|
8413
|
+
return (h(Host, { key: 'ecab373df940835270db5097a80b0214fc97907f' }, h("slot", { key: 'ac37f8070fab8c51b229f6dc81c9f2e65e64f251', name: "before" }), h("smoothly-load-more", { key: '3e43d4fd0c5f37d7826b7cc7da796fec07c7f7be', onSmoothlyLoadMore: e => this.loadMoreHandler(e) }), this.show && (typeof this.content == "function" ? h(this.content, null) : this.content), h("slot", { key: '815b33c3657c84b81f0dd12768f2f2e983df48a9' })));
|
|
8340
8414
|
}
|
|
8341
8415
|
};
|
|
8342
8416
|
SmoothlyLazy.style = styleCss$y();
|
|
@@ -8380,7 +8454,7 @@ const LoadMore = class {
|
|
|
8380
8454
|
}
|
|
8381
8455
|
}
|
|
8382
8456
|
render() {
|
|
8383
|
-
return h(Host, { key: '
|
|
8457
|
+
return h(Host, { key: '88150a06ccdec5a72446a3f8dac86339b3007b72' });
|
|
8384
8458
|
}
|
|
8385
8459
|
get element() { return getElement(this); }
|
|
8386
8460
|
};
|
|
@@ -8405,9 +8479,9 @@ const SmoothlyModal = class {
|
|
|
8405
8479
|
this.open = true;
|
|
8406
8480
|
}
|
|
8407
8481
|
render() {
|
|
8408
|
-
return (h(Host, { key: '
|
|
8482
|
+
return (h(Host, { key: '12ffaa744cfce7d329f9e335be7b63827eb40644', role: "alertdialog", onClick: (e) => {
|
|
8409
8483
|
this.closable && !e.composedPath().some((el) => { var _a; return (_a = el.classList) === null || _a === void 0 ? void 0 : _a.contains("modal"); }) && this.closeModal();
|
|
8410
|
-
} }, h("div", { key: '
|
|
8484
|
+
} }, h("div", { key: '264ba4a63559188eb2fdc52d0b15014ff8991622', class: "modal" }, h("div", { key: 'c99296b4e6b05e4669ffb56b4ae93bf815e2e449', class: "header" }, h("slot", { key: 'cf25306f526a89e8daea125faaecb33d72fa9e4d', name: "header" }), this.closable && h("smoothly-icon", { key: 'd676f4f20a6ee187295a7f7ebc573e3a06a98ed6', name: "close-outline", fill: "solid", onClick: () => this.closeModal() })), h("slot", { key: '22955703aec9be9e882bb77cfd0fd327f2436903' }), h("div", { key: 'd8dd03aa8538e9cb373282aab2f55a6793e76c83', class: "actions" }, h("slot", { key: '45b9e1bf4300ea44dbf13b50839ca9689576121e', name: "actions" })))));
|
|
8411
8485
|
}
|
|
8412
8486
|
static get watchers() { return {
|
|
8413
8487
|
"open": [{
|
|
@@ -8472,7 +8546,7 @@ const Notification = class {
|
|
|
8472
8546
|
this.onUpdatedNotice(this.notice);
|
|
8473
8547
|
}
|
|
8474
8548
|
render() {
|
|
8475
|
-
return (h(Host, { key: '
|
|
8549
|
+
return (h(Host, { key: '6c91fd348be22152c98396a00e0f333901e7edb3', color: this.properties[0], fill: "solid" }, this.closable && (h("smoothly-trigger", { key: 'dfb962471e36cd4b2b063d81470dd2500c5f52ab', fill: "clear", name: "close" }, h("smoothly-icon", { key: '0552e3732cdc2371b430c565b7bc243a6b855446', name: "close-circle-outline" }))), h("span", { key: 'c7df2fc46e03a56f937d3fcddce3ee9a9a199b88', class: this.icon ? "icon" : "clean" }, this.icon && h("smoothly-icon", { key: '8662182866050fc3aaeeb51b0d79529c0a57e10b', name: this.properties[1] }), h("p", { key: '0f539660c5267a748ba9fc514abdd33429b9042d' }, this.notice.message))));
|
|
8476
8550
|
}
|
|
8477
8551
|
static get watchers() { return {
|
|
8478
8552
|
"notice": [{
|
|
@@ -8497,7 +8571,7 @@ const Notifier = class {
|
|
|
8497
8571
|
this.notices = [...this.notices.filter(n => n != event.detail)];
|
|
8498
8572
|
}
|
|
8499
8573
|
render() {
|
|
8500
|
-
return (h(Host, { key: '
|
|
8574
|
+
return (h(Host, { key: '00187e7d82c05944c3e4ed5ce6ae2367b113e2fb' }, h("slot", { key: 'ce3b80b8e40d1a745cf910126cde0fa97a16cdc4' }), h("div", { key: '2b8faa5193ebf47c4cb7a8602c3821d44c46dbcb', class: "smoothly-notifier-wrapper" }, this.notices.map(n => (h("smoothly-notification", { notice: n, icon: this.icon }))))));
|
|
8501
8575
|
}
|
|
8502
8576
|
};
|
|
8503
8577
|
Notifier.style = styleCss$v();
|
|
@@ -8511,9 +8585,9 @@ const SmoothlySpinner = class {
|
|
|
8511
8585
|
}
|
|
8512
8586
|
render() {
|
|
8513
8587
|
const strokeWidth = this.size == "large" ? 6 : this.size == "medium" ? 8 : this.size == "icon" ? 8 : 12;
|
|
8514
|
-
return (h(Host, { key: '
|
|
8588
|
+
return (h(Host, { key: '458303df1f0703dad9d88e9a6c1dfbd063de34e7', style: {
|
|
8515
8589
|
"--spinner-size": this.size == "large" ? "5em" : this.size == "medium" ? "3em" : this.size == "icon" ? "1.8em" : "1.2em",
|
|
8516
|
-
} }, h("svg", { key: '
|
|
8590
|
+
} }, h("svg", { key: '8065db9227fb249027fe4b7dbc79152de2627ec2', class: "spinner", viewBox: `0 0 ${60 + strokeWidth} ${60 + strokeWidth}`, xmlns: "http://www.w3.org/2000/svg" }, h("circle", { key: '8da0fa969c76d3930a14005f951f79f20dc6bf57', class: "path", fill: "none", "stroke-width": strokeWidth, "stroke-linecap": "round", cx: `${30 + strokeWidth / 2}`, cy: `${30 + strokeWidth / 2}`, r: "30" }))));
|
|
8517
8591
|
}
|
|
8518
8592
|
};
|
|
8519
8593
|
SmoothlySpinner.style = styleCss$u();
|
|
@@ -8533,7 +8607,7 @@ const SmoothlySummary = class {
|
|
|
8533
8607
|
}
|
|
8534
8608
|
}
|
|
8535
8609
|
render() {
|
|
8536
|
-
return (h("details", { key: '
|
|
8610
|
+
return (h("details", { key: 'eff4cfcc4681f7ae8a50dffb024ed2a2c7f34a82', onToggle: e => this.toggleHandler(e), open: this.open }, h("summary", { key: '579a019b8ae584f018c1a039ad2f637eb136db88' }, h("smoothly-icon", { key: '5b13ecddb1ee8805bba66d60aff9f1cfe8cd10b3', name: "caret-forward", fill: "solid", size: "tiny" }), h("slot", { key: 'b01c31deaf1bb7574eaa5a383a5385555444845d', name: "summary" })), h("slot", { key: '04fe3aca685b1108f7227f2c45d28d6ef38e9292', name: "content" })));
|
|
8537
8611
|
}
|
|
8538
8612
|
};
|
|
8539
8613
|
SmoothlySummary.style = styleCss$t();
|
|
@@ -8578,7 +8652,7 @@ const SmoothlyTab = class {
|
|
|
8578
8652
|
}
|
|
8579
8653
|
}
|
|
8580
8654
|
render() {
|
|
8581
|
-
return (h(Host, { key: '
|
|
8655
|
+
return (h(Host, { key: 'dd61170ab95f4c9ceaca14bea3f9a232960a6d9d' }, h("div", { key: 'cfc1188d6c8c405c46a234ad9ac98eb81fd65ec8', onClick: () => !this.disabled && (this.open = true) }, h("label", { key: '25b8c5b4de124f5e597a524aa086a54f3f65ba56', "data-smoothly-tooltip": this.tooltip }, this.label)), h("div", { key: 'd9931e625c2f70c92b8c6ac0efa66f28ae7f4d62', hidden: !this.open }, h("slot", { key: '5811a6f791ceddbf1ef12a80913357fabbc53e5e' }))));
|
|
8582
8656
|
}
|
|
8583
8657
|
get element() { return getElement(this); }
|
|
8584
8658
|
static get watchers() { return {
|
|
@@ -8603,7 +8677,7 @@ const SmoothlyTable = class {
|
|
|
8603
8677
|
event.stopPropagation();
|
|
8604
8678
|
}
|
|
8605
8679
|
render() {
|
|
8606
|
-
return (h(Host, { key: '
|
|
8680
|
+
return (h(Host, { key: 'e1e0fc478ebf90003f156eddb44e1de2213cf4e0', style: { "--columns": this.columns.toString() } }, h("slot", { key: '10e080ed0213084a43750f73df364993b30f72b4' })));
|
|
8607
8681
|
}
|
|
8608
8682
|
};
|
|
8609
8683
|
SmoothlyTable.style = styleCss$r();
|
|
@@ -8615,7 +8689,7 @@ const SmoothlyTableBody = class {
|
|
|
8615
8689
|
registerInstance(this, hostRef);
|
|
8616
8690
|
}
|
|
8617
8691
|
render() {
|
|
8618
|
-
return (h(Host, { key: '
|
|
8692
|
+
return (h(Host, { key: '35794212738d56a6ee77383f2cdee89a57db82f1' }, h("slot", { key: '34c2c0ce45bc87a5ce11c7ded126b1bdb89af320' })));
|
|
8619
8693
|
}
|
|
8620
8694
|
};
|
|
8621
8695
|
SmoothlyTableBody.style = styleCss$q();
|
|
@@ -8629,7 +8703,7 @@ const SmoothlyTableCell = class {
|
|
|
8629
8703
|
}
|
|
8630
8704
|
render() {
|
|
8631
8705
|
var _a;
|
|
8632
|
-
return (h(Host, { key: '
|
|
8706
|
+
return (h(Host, { key: 'c135688a83c65d795da7cbc7e946df1842b7eee1', class: "smoothly-table-cell", style: { "--smoothly-table-cell-span": (_a = this.span) === null || _a === void 0 ? void 0 : _a.toString(10) } }, h("slot", { key: '06ae1f08e462da16c0a010a99facdbd2bd41f71f' })));
|
|
8633
8707
|
}
|
|
8634
8708
|
};
|
|
8635
8709
|
SmoothlyTableCell.style = styleCss$p();
|
|
@@ -8641,7 +8715,7 @@ const SmoothlyTableDemo = class {
|
|
|
8641
8715
|
registerInstance(this, hostRef);
|
|
8642
8716
|
}
|
|
8643
8717
|
render() {
|
|
8644
|
-
return (h(Host, { key: '
|
|
8718
|
+
return (h(Host, { key: '94e95e0d83a8ff1f6b0175d81f6a4d0f573b3387' }, h("smoothly-table-demo-filler-row", { key: '0517b70eb65ed6a34faaa1c7805907f304654951' }), h("smoothly-table-demo-group", { key: 'e92405b3fa081cfa94f0311970db780f44782bd5' }), h("smoothly-table-demo-colspan", { key: 'd9f10e07549f56da20d1dcbca45f3a497db3e072' }), h("smoothly-table-demo-simple", { key: '0ae3ade94e2cc900e0a5362f65778163868f3ef0' }), h("smoothly-table-demo-nested-no-cell", { key: '9d0f1784998f8f7607f93b914cd2d5c53a986f8a' })));
|
|
8645
8719
|
}
|
|
8646
8720
|
};
|
|
8647
8721
|
SmoothlyTableDemo.style = styleCss$o();
|
|
@@ -8653,7 +8727,7 @@ const SmoothlyTableDemoColspan = class {
|
|
|
8653
8727
|
registerInstance(this, hostRef);
|
|
8654
8728
|
}
|
|
8655
8729
|
render() {
|
|
8656
|
-
return (h(Host, { key: '
|
|
8730
|
+
return (h(Host, { key: '591888818b4300109779447443c6e5aab1b14da8' }, h("smoothly-table", { key: 'c938d62de711c1ccf5f4688757b3513df44e8af8', columns: 3 }, h("smoothly-table-head", { key: '479a91f092d7ab61f5e023187b3962cbcfa752ea' }, h("smoothly-table-row", { key: '09acaf59f4ab8afc3af9931911547c6c9160e96c' }, h("smoothly-table-cell", { key: '7d8343c2153cc0dad70a3b93f713297911b6a999' }, "Date"), h("smoothly-table-cell", { key: 'e383250690b45d63ca6932488089448063a00b59' }, "Skip"), h("smoothly-table-cell", { key: '9249209f1c691bf8b599c19a7c69241b4c375bfc' }, "Total"))), h("smoothly-table-body", { key: '08ae40864961b80b1522166a429f53962f0248c5' }, h("smoothly-table-row", { key: 'ea7dd286a24979f8d193c215fcf97728a165fa16' }, h("smoothly-table-cell", { key: '441dee1ea77f41f61fc110987a62e404a05aa297', span: 2 }, h("smoothly-display", { key: 'b6f97a5c900d27d4cd5c8a3193c08d379c73da0a', type: "date", value: "2024-01-01" })), h("smoothly-table-cell", { key: 'a3c7b056c9b0af04ec00c95d01422d2f56c3c806' }, h("smoothly-display", { key: 'dc812c579111236c03c21edaafb7906297cb2625', type: "price", value: 120, currency: "EUR" }))), h("smoothly-table-row", { key: '004a397622e3facc508a92e645a3ac4fa9532e0a' }, h("smoothly-table-expandable-cell", { key: 'a4b75ba00befe6a8a34fc5c99690cb03c3ade7d7', span: 2 }, h("smoothly-display", { key: 'bb91f39b2d8833ad116268618a9be82aa96a2fc4', type: "date", value: "2024-01-02" }), h("smoothly-lazy", { key: '51e9b4cf9d9a9ef15c04996aef32d7ec916ae79b', slot: "detail", content: h("smoothly-display", { type: "date-time", value: "2024-01-02T13:37:00.000Z" }) })), h("smoothly-table-expandable-cell", { key: 'cbce7604964ca0c217d549bc1b1e50758b0217b8' }, h("smoothly-display", { key: '3cabab2c49146b2ac49882b592ce38cae1dd17ce', type: "price", value: 220, currency: "EUR" }), h("smoothly-lazy", { key: '84d7a668b2f59da0df7a95eb1fa3d8221365f2f8', slot: "detail", content: h("span", null, h("smoothly-display", { type: "price", value: 120, currency: "EUR" }), " + ", h("smoothly-display", { type: "price", value: 100, currency: "EUR" })) }))), h("smoothly-table-row", { key: '8c8cabd1f86d8c435925a3e2386bfe91f9d604da' }, h("smoothly-table-cell", { key: '36d5b65550ad5c09fed7441e9c0892bdf595d979' }, h("smoothly-display", { key: '3580d0ec9bcabc49ba7e3247786c3626760dd405', type: "date", value: "2024-01-02" })), h("smoothly-table-cell", { key: 'cf38589846b2f9925a79f79d64c298e96a3174b8' }, "Not Skipped"), h("smoothly-table-cell", { key: '2ae25896d0fcfaa3884da36a63bda5bd730797bd' }, h("smoothly-display", { key: '88fed0a43e38e936abc981beac382b83e86263e6', type: "price", value: 320, currency: "EUR" })))))));
|
|
8657
8731
|
}
|
|
8658
8732
|
};
|
|
8659
8733
|
SmoothlyTableDemoColspan.style = styleCss$n();
|
|
@@ -8671,7 +8745,7 @@ const SmoothlyTableDemoFillerRow = class {
|
|
|
8671
8745
|
}, 3000);
|
|
8672
8746
|
}
|
|
8673
8747
|
render() {
|
|
8674
|
-
return (h(Host, { key: '
|
|
8748
|
+
return (h(Host, { key: '38d70dda60dda3debcf93c39712447b147f1f8aa' }, h("smoothly-display", { key: '184a415c969fe7f8067d39b8bca1c60e2cdc525c', type: "text", value: "Filler row" }), h("smoothly-table", { key: 'c25e191ff3a0d83771c8c4057a391af7d29f3aeb', color: "primary", columns: 4 }, h("smoothly-table-head", { key: '6a0abb3c6732c84bbf349fa5564d27d3b0189f36' }, h("smoothly-table-row", { key: '2f91fa838939f85bee7d2fc07bbcf66f19e31af0' }, h("smoothly-table-cell", { key: 'b50f41f05faeb8105905c2d2bc694ceba0291b11' }, "Breed"), h("smoothly-table-cell", { key: '1165986b307056c5356dad70b6ce04059aaebdd1' }, "Country"), h("smoothly-table-cell", { key: '348327ae0225c33862c65c536b31bbab5bd706d9' }, "Coat"), h("smoothly-table-cell", { key: '449b076a7ccb0922362af57fa66bbf081fe73c1d' }, "Origin"))), h("smoothly-table-body", { key: '7b4d12422054f92287036881aaba5156de8adc87' }, this.cats === undefined ? (h("smoothly-table-filler-row", null, "No data to display")) : this.cats.length === 0 ? (h("smoothly-table-filler-row", null, h("smoothly-spinner", { style: { margin: "auto" }, color: "default", size: "small" }))) : (this.cats.map(a => (h("smoothly-table-row", null, h("div", { class: "smoothly-table-cell" }, a.breed), h("div", { class: "smoothly-table-cell" }, a.country), h("div", { class: "smoothly-table-cell" }, a.coat), h("div", { class: "smoothly-table-cell" }, a.origin)))))))));
|
|
8675
8749
|
}
|
|
8676
8750
|
};
|
|
8677
8751
|
SmoothlyTableDemoFillerRow.style = styleCss$m();
|
|
@@ -8683,7 +8757,7 @@ const SmoothlyTableDemoGroup = class {
|
|
|
8683
8757
|
registerInstance(this, hostRef);
|
|
8684
8758
|
}
|
|
8685
8759
|
render() {
|
|
8686
|
-
return (h(Host, { key: '
|
|
8760
|
+
return (h(Host, { key: '13ca441187f66529344769d886b77d0c01cf0ec7' }, h("smoothly-display", { key: 'b2dbf9deacd800eb2bbcc303418a5f2ce6344399', type: "text", value: "Group" }), h("smoothly-table", { key: '8e80f2e26eda2a33c65d665d2d369b11a03f39b3', color: "primary", columns: 2 }, h("smoothly-table-head", { key: 'a80ad7e011c9432b00488a3dad6cc48d4cf56ffa' }, h("smoothly-table-row", { key: '9d15a2c5ec712913ef7195f40eae2d7cc4328b43' }, h("smoothly-table-cell", { key: '4658db6a627442459d39caf71d3053c0b0373153' }, "Date"), h("smoothly-table-cell", { key: '62640f3c5426d8b1cbb7e5309b9a5eb8ae1fd244' }, "Total"))), h("smoothly-table-body", { key: '30185fa157aeed1482eb4ed13e227e735450204f' }, h("smoothly-table-row-group", { key: '2f88c12ff6aa6b59f6545f1939c0b390ff04fb9b', align: true }, h("smoothly-display", { key: '504c5fd4776cf580054b1643d3cdf25746b0ef4d', slot: "start", type: "date", value: "2024-01-01" }), h("smoothly-display", { key: 'abb7c187f97506286cce8fdb7cf9e44024cb1eee', slot: "end", type: "price", currency: "EUR", value: 510 }), h("smoothly-table-expandable-row", { key: '4c4ee8e36cdef0fa1c7dd5e088ba27b0470b94a0' }, h("smoothly-table-cell", { key: 'e78d6d08b6b141e5d37e309697ae71a5158aa83e' }, h("smoothly-display", { key: 'd4545cbccf585edd9a753216cd7eb065794cc61d', type: "date-time", value: "2024-01-01T01:37:00.000Z" })), h("smoothly-table-cell", { key: '2bfa64247f7bf2ccf879859f66de74904dd7438f' }, h("smoothly-display", { key: '45bc665caae3e04dd8f4a94ab96d0e5f974c1b66', type: "price", currency: "EUR", value: 250 })), h("smoothly-lazy", { key: '60b37654b01d3c248d2c7339593990e5a04fb188', slot: "detail", content: h(Fragment, null, "Details of 2024-01-01T01:37:00.000Z") })), h("smoothly-table-expandable-row", { key: 'e18d58866e7e132073ccd951f114780566bc19d8' }, h("smoothly-table-cell", { key: '9bce755fdb66c5a53be2a1a30b897c56cfd292e2' }, h("smoothly-display", { key: 'e93ddd23a90132c87a717651c39cd9b3e0ec76be', type: "date-time", value: "2024-01-01T13:37:00.000Z" })), h("smoothly-table-cell", { key: '25760dc3dc0c4db717a663849b0a5b4855d0fa49' }, h("smoothly-display", { key: '6bddb16177d1b3aaba00f690e15830b4de4c560f', type: "price", currency: "EUR", value: 260 })), h("smoothly-lazy", { key: 'b270f93a5b22cc963761b4ba3fac9831948eb229', slot: "detail", content: h(Fragment, null, "Details of 2024-01-01T13:37:00.000Z") }))), h("smoothly-table-row", { key: '13eeb89739730d945227aff29d6ffb02405a7162' }, h("smoothly-table-cell", { key: 'f6ee0efe4aafe2b3bc46d1391addd0cdd0372643' }, h("smoothly-display", { key: 'fefcd6b25329f0acac11ce9b5f62936c250e4e13', type: "date", value: "2024-01-02" })), h("smoothly-table-cell", { key: 'ef2d0fc611d84b2380f4cb3342e9a747ca7b0571' }, h("smoothly-display", { key: '049dfb4f85369daf945b216256ced74597135572', type: "price", currency: "EUR", value: 130 }))), h("smoothly-table-row-group", { key: '0818d5289ddf639e1f41b8377eefda9a42e8a660' }, h("smoothly-display", { key: 'c313d4b6c8e1658c6a2bb9bda1b7aee77b5c4708', slot: "start", type: "date", value: "2024-01-03" }), h("smoothly-display", { key: '6e57124ffd9cb7a0737b49144fdae07c04e7ce54', slot: "end", type: "price", currency: "EUR", value: 720 }), h("smoothly-table-expandable-row", { key: '075bcd04dbac92bb2733eae3983e205c604c0897' }, h("smoothly-table-cell", { key: '2da65d488c647c5952fd2f7b496ad477c78e43a0' }, h("smoothly-display", { key: '268b41c5942180ff8cbf781c225569a464a98048', type: "date-time", value: "2024-01-03T01:37:00.000Z" })), h("smoothly-table-cell", { key: 'bf8c3e7a40c471fc22de92ff894ab5145407949c' }, h("smoothly-display", { key: 'ee271b788d3bccfec5354a4e96b0a16a9faa224d', type: "price", currency: "EUR", value: 320 })), h("smoothly-lazy", { key: '684a6831e691a9dc67f81977c39f32cb74ca4796', slot: "detail", content: h(Fragment, null, "Details of 2024-01-03T01:37:00.000Z") })), h("smoothly-table-expandable-row", { key: '82ca4163f480bb0f87f51d40680ee079dd615b11' }, h("smoothly-table-cell", { key: 'c7022929f9eee697165dabdf09f209f62cec9e20' }, h("smoothly-display", { key: 'f85ecb5f99a2f5f00b1d8946a33057b87691ebf2', type: "date-time", value: "2024-01-03T13:37:00.000Z" })), h("smoothly-table-cell", { key: '71a2d8a0b8426614bc5842b27e80957bc560066b' }, h("smoothly-display", { key: '6e1fa476d41664ccd4f4475e3d78e6811181dc83', type: "price", currency: "EUR", value: 400 })), h("smoothly-lazy", { key: '3c21237b9ab3bcbad4ce8f71d590b62e92f425e4', slot: "detail", content: h(Fragment, null, "Details of 2024-01-03T13:37:00.000Z") }))), h("smoothly-table-row-group", { key: '89f7bd195d9558793f2806d9331a4f60127a2288' }, h("smoothly-display", { key: '9af59f5175f04af6c3c661efea33c884ef2443a4', slot: "start", type: "date", value: "2024-01-04" }), h("smoothly-table-expandable-row", { key: 'cf98a3d3738cc247ddb748eb5d62103b5f4cb898' }, h("smoothly-table-cell", { key: 'fed5bcbfedb84593f7372d686ec367176e09f203' }, h("smoothly-display", { key: 'cbaf8f631003338f43637aca9af85e05ee61acb9', type: "date-time", value: "2024-01-04T01:37:00.000Z" })), h("smoothly-table-cell", { key: '01ca45bac88026b162678192a11a4f5dd3c068be' }, h("smoothly-display", { key: '80a57b43c7a010aab88b2d16c7fbedaeb29568ce', type: "price", currency: "EUR", value: 320 })), h("smoothly-lazy", { key: '70d2c87d6db5d93807832babed5234fb464f74f4', slot: "detail", content: h(Fragment, null, "Details of 2024-01-04T01:37:00.000Z") })), h("smoothly-table-expandable-row", { key: '20cb4d49bb58652118d26a85e3700303493c68c5' }, h("smoothly-table-cell", { key: '825986c6db5f37ccc73569f6f1c2228a5974165a' }, h("smoothly-display", { key: '21e131ad762de83ceb50ba3c73438b19726c38e2', type: "date-time", value: "2024-01-04T13:37:00.000Z" })), h("smoothly-table-cell", { key: 'c5ee086388bcba90b3f2f8b8e87de8b640af19ae' }, h("smoothly-display", { key: '0451e5542008991f62d5aed3be962be7ede89e92', type: "price", currency: "EUR", value: 400 })), h("smoothly-lazy", { key: 'eff29a26691c08d70aa7cacad2a199dabc06f76c', slot: "detail", content: h(Fragment, null, "Details of 2024-01-04T13:37:00.000Z") }))), h("smoothly-table-row-group", { key: '16aa704a00da4ee503ef5c8a66ce41cd2768d704' }, h("smoothly-display", { key: 'ebda8de8516871eaf501d00fe3c334dc229b8105', slot: "end", type: "price", currency: "EUR", value: 720 }), h("smoothly-table-expandable-row", { key: 'dc912bef3657af1eadb481ecbaa1f71e061fd3ae' }, h("smoothly-table-cell", { key: '7f3451e00998d997440f16b85fb53598778128c8' }, h("smoothly-display", { key: 'def111369e6fae7bcb7e5c6bdc3bfaaa9700b6fe', type: "date-time", value: "2024-01-05T01:37:00.000Z" })), h("smoothly-table-cell", { key: 'cf70102ed28029c2eafbfa3c14f5f42bf185b4cf' }, h("smoothly-display", { key: '567fe6aa345e74223a8332b93cc1b1b9cb288eba', type: "price", currency: "EUR", value: 320 })), h("smoothly-lazy", { key: '3ad490689fcafce374b5b02550d5e03962da7a75', slot: "detail", content: h(Fragment, null, "Details of 2024-01-05T01:37:00.000Z") })), h("smoothly-table-expandable-row", { key: '0cfffb40fd9119c737384bdfcf4196252e2680ed' }, h("smoothly-table-cell", { key: '17017970a2de014c63dc0c2f942e83a4ef9b322d' }, h("smoothly-display", { key: '9f6d27350e38a66bab11ce29a331ccecee9335d0', type: "date-time", value: "2024-01-05T13:37:00.000Z" })), h("smoothly-table-cell", { key: 'f1d2cc0caf106aaabb4d9262fb6f589924ded4cf' }, h("smoothly-display", { key: '1ae2025a7b69811c991c4e50acd45be7f2af4820', type: "price", currency: "EUR", value: 400 })), h("smoothly-lazy", { key: 'fd8db8bbca191d29614972042d49aabf04b00325', slot: "detail", content: h(Fragment, null, "Details of 2024-01-05T13:37:00.000Z") }))), h("fake-group-wrapper", { key: '7ed94c5850dca92de109a72d543e7892a4ad1f27' }, h("smoothly-table-row-group", { key: 'fd411b94eb083f25414f29ee5f0c82fe10e336b2' }, h("smoothly-display", { key: 'c1eec946da5403fe5fb367f864de25a07d37bb45', slot: "start", type: "date", value: "2024-01-06" }), h("smoothly-display", { key: 'b69b22be0181ebd04b4fb6c9934b76d41a8c92f6', slot: "end", type: "price", currency: "EUR", value: 720 }), h("fake-row-wrapper", { key: '39f7a1f520615967cc4972f7c2f2ffd6824c3fcc' }, h("smoothly-table-row", { key: 'a0edb450a28de03759ae4c2240a979f27704718b' }, h("fake-cell-wrapper", { key: '9c2c3823f9e8771e15625a0353e7031be7ab862c' }, h("smoothly-table-cell", { key: 'b47064b530ce8ee1bb66350cc2bb4ac172bfbe99' }, h("smoothly-display", { key: '23245c1af652033586ff8b001f406da931221ff7', type: "date", value: "2024-01-02" }))), h("fake-expandable-cell-wrapper", { key: 'cecaf2863e686ddd4b7b6db5bf0ba39a6f77b70b' }, h("smoothly-table-expandable-cell", { key: 'b715899e9cc80dfded13610df5224069c9eebabe' }, h("smoothly-display", { key: '3e261554b8e11c7388c5cf4057228575b87acd0e', type: "price", currency: "EUR", value: 130 }), h("smoothly-lazy", { key: '5844d701bc675abd246d2d18f7387edd9c9f7e7b', slot: "detail", content: h("span", null, h("smoothly-display", { type: "price", value: 100, currency: "EUR" }), " + ", h("smoothly-display", { type: "price", value: 30, currency: "EUR" })) }))))), h("fake-expandable-row-wrapper", { key: '32bce4a1c74db7b752671e090eca7216dfeda5e4' }, h("smoothly-table-expandable-row", { key: '76397c42828314da38f36ba8046227bce793f3b0' }, h("fake-cell-wrapper", { key: '4707a608abe80f2fa745d0a669dd26d327ce3fa7', class: "span-2" }, h("smoothly-table-cell", { key: 'a4b2b9dba3fe2d95439f995c04d218729f6f7c05', span: 2 }, h("smoothly-display", { key: 'd3ab93ede3071809115eb9a392b29c97ada02788', type: "date", value: "2024-01-07" }))), h("smoothly-lazy", { key: 'ab3787df579b0c266b5cc521e6c88b8976d7eeb4', slot: "detail", content: h("smoothly-display", { type: "date-time", value: "2024-01-07T13:37:00.000Z" }) }))))), h("smoothly-table-row-group", { key: '31e0f780af3568f236e185c33beffd1fe131f15c' }, h("smoothly-display", { key: '71f3de541c67562eed2c4138b3c487e13f45891a', slot: "start", type: "date", value: "2024-01-08" }), h("smoothly-display", { key: '56b9d221c55a67b758a529d3542819b8cc73a9d1', slot: "end", type: "price", currency: "EUR", value: 720 }))))));
|
|
8687
8761
|
}
|
|
8688
8762
|
};
|
|
8689
8763
|
SmoothlyTableDemoGroup.style = styleCss$l();
|
|
@@ -9629,7 +9703,7 @@ const SmoothlyTableDemoNestedNoCell = class {
|
|
|
9629
9703
|
this.loadedRows = [];
|
|
9630
9704
|
}
|
|
9631
9705
|
render() {
|
|
9632
|
-
return (h(Host, { key: '
|
|
9706
|
+
return (h(Host, { key: '58aa208d70e2da93e893ef08cb5967664bd0c051' }, h("smoothly-display", { key: '2deea15d1b6e1df7377c7d7a75f1bf3bdc0e23e6', type: "text", value: "Nested" }), h("smoothly-table", { key: '86c9c4de9e86faddf03910093dc8046534198a6e', color: "primary", columns: 8 }, h("smoothly-table-head", { key: 'e68242f5576ac5903448bc958706512b6fdde4a2' }, h("smoothly-table-row", { key: 'db1d09f006f8e6d7ce18ae91caf34d6f5a14bf83' }, h("div", { key: '3e3e11e86247d24322182392410b18b1f77be2d9', class: "smoothly-table-cell" }, "Id"), h("div", { key: 'd9e4adcfa2c4f241f0351c78cb21a968663a6c44', class: "smoothly-table-cell" }, "Registered"), h("div", { key: 'fe70738e34cad44a2334118b1390c3a4fc55a78c', class: "smoothly-table-cell" }, "Name"), h("div", { key: '8d289629063da16589bb44c438577ece4eff5703', class: "smoothly-table-cell" }, "Age"), h("div", { key: '41d4a8187b8a431cea1ab7c0d5dd94fc5e3d7c14', class: "smoothly-table-cell" }, "Balance"), h("div", { key: '1394c75f60c62a437f8e45bd331e102a84b3357e', class: "smoothly-table-cell" }, "EyeColor"), h("div", { key: '675a742c81647d180c327a3b033a7dd90bda7411', class: "smoothly-table-cell" }, "Gender"), h("div", { key: '16c97f1027ac5d65ebfaa303a56bb80ea37c7c40', class: "smoothly-table-cell" }, "Company"))), h("smoothly-table-body", { key: '8839563b64e8c05cdfbf0be64fd78e901490dcf3' }, data.map((entry, index) => (h("smoothly-table-expandable-row", { onSmoothlyTableExpandableRowChange: event => {
|
|
9633
9707
|
if (event.detail) {
|
|
9634
9708
|
this.loadingIndex = index;
|
|
9635
9709
|
setTimeout(() => {
|
|
@@ -9637,7 +9711,7 @@ const SmoothlyTableDemoNestedNoCell = class {
|
|
|
9637
9711
|
this.loadedRows = [...this.loadedRows, index];
|
|
9638
9712
|
}, 1500);
|
|
9639
9713
|
}
|
|
9640
|
-
} }, this.loadingIndex === index && h("smoothly-spinner", { overlay: true, size: "small" }), this.loadedRows.includes(index) && (h("smoothly-table-demo-nested-no-cell-inner", { color: "secondary", data: entry.friends, slot: "detail" })), h("div", { class: "smoothly-table-cell" }, entry.id), h("div", { class: "smoothly-table-cell" }, entry.registered), h("div", { class: "smoothly-table-cell" }, entry.name), h("div", { class: "smoothly-table-cell" }, entry.age), h("div", { class: "smoothly-table-cell" }, entry.balance), h("div", { class: "smoothly-table-cell" }, entry.eyeColor), h("div", { class: "smoothly-table-cell" }, entry.gender), h("div", { class: "smoothly-table-cell" }, entry.company))))), h("smoothly-table-foot", { key: '
|
|
9714
|
+
} }, this.loadingIndex === index && h("smoothly-spinner", { overlay: true, size: "small" }), this.loadedRows.includes(index) && (h("smoothly-table-demo-nested-no-cell-inner", { color: "secondary", data: entry.friends, slot: "detail" })), h("div", { class: "smoothly-table-cell" }, entry.id), h("div", { class: "smoothly-table-cell" }, entry.registered), h("div", { class: "smoothly-table-cell" }, entry.name), h("div", { class: "smoothly-table-cell" }, entry.age), h("div", { class: "smoothly-table-cell" }, entry.balance), h("div", { class: "smoothly-table-cell" }, entry.eyeColor), h("div", { class: "smoothly-table-cell" }, entry.gender), h("div", { class: "smoothly-table-cell" }, entry.company))))), h("smoothly-table-foot", { key: '6b4ad314b547876f79a192885d8f6c396b5289a4' }, h("smoothly-table-row", { key: 'd0b756f7d918e94ef014702eae9f6b60de81feec' }, h("div", { key: '06107bc944f6e1304054e68b91622ea30e0a833e', class: "smoothly-table-cell" }, "Footer Cell"), h("div", { key: '0150811226ddc55197a6ef7933f024a54ab2c853', class: "smoothly-table-cell" }, "Footer Cell"))))));
|
|
9641
9715
|
}
|
|
9642
9716
|
};
|
|
9643
9717
|
SmoothlyTableDemoNestedNoCell.style = styleCss$k();
|
|
@@ -9650,7 +9724,7 @@ const SmoothlyTableDemoNestedNoCellInner = class {
|
|
|
9650
9724
|
}
|
|
9651
9725
|
render() {
|
|
9652
9726
|
var _a;
|
|
9653
|
-
return (h(Host, { key: '
|
|
9727
|
+
return (h(Host, { key: '9150c28b151e6567c9d4d385068702f600fcb2f1' }, h("smoothly-table", { key: '7261ea2339bc05332c0bb2e8d43a9362bbe13d3a', columns: 4 }, h("smoothly-table-head", { key: 'd800c29461ff8bc75f0ac1265e50640c0138d211' }, h("smoothly-table-row", { key: '56bb549fe6154737b01ad2564df4c58a6e5f8c52' }, h("div", { key: 'e6e3a1c445d93d2c814c7cb6057643124c132de2', class: "smoothly-table-cell" }, "Id"), h("div", { key: 'c92d18120e36c54139713090f821a605ad42e3fc', class: "smoothly-table-cell" }, "Name"), h("div", { key: '2fc4f2987f92840727806f222a300bf463990917', class: "smoothly-table-cell" }, "Age"), h("div", { key: '4c5f4888480ac4afdc2a7ea0ea1223f019ac342f', class: "smoothly-table-cell" }, "Balance"))), h("smoothly-table-body", { key: 'ea1511197b149bc2963a00345c5cde47378c7f26' }, (_a = this.data) === null || _a === void 0 ? void 0 : _a.map(entry => (h("smoothly-table-expandable-row", null, h("div", { class: "smoothly-table-cell" }, entry.id), h("div", { class: "smoothly-table-cell" }, entry.name), h("div", { class: "smoothly-table-cell" }, entry.age), h("div", { class: "smoothly-table-cell" }, entry.balance))))))));
|
|
9654
9728
|
}
|
|
9655
9729
|
};
|
|
9656
9730
|
SmoothlyTableDemoNestedNoCellInner.style = styleCss$j();
|
|
@@ -9662,7 +9736,7 @@ const SmoothlyTableDemoSimple = class {
|
|
|
9662
9736
|
registerInstance(this, hostRef);
|
|
9663
9737
|
}
|
|
9664
9738
|
render() {
|
|
9665
|
-
return (h(Host, { key: '
|
|
9739
|
+
return (h(Host, { key: 'fa0ee8dabad78b4e11466c08476a7b7bab777bcf' }, h("smoothly-display", { key: 'f1929229c708243f89969fb865281c87cdea3974', type: "text", value: "Simple" }), h("smoothly-table", { key: 'a74ccd3d2757769582a1640cd03f275040258979', color: "primary", columns: 2 }, h("smoothly-table-head", { key: '3740997a15cd0be3f576a5ccd325dedbcf7ecf57' }, h("smoothly-table-row", { key: '173e8a0edf3ca6131dbfd5fd2e23bf5e818de068' }, h("smoothly-table-cell", { key: '6ccc98fe385d936d3fc18a0802aa171c9e4833f0' }, "Breed"), h("smoothly-table-cell", { key: 'f12b6543b4b7be9f4d26610d2a90b900951e7f52' }, "Coat"))), h("smoothly-table-body", { key: '2cc82f1d8659f303f29352fa4cce8961fa698fab' }, cats.map(cat => (h("smoothly-table-row", null, h("smoothly-table-expandable-cell", null, cat.breed, h("div", { slot: "detail" }, "Country:", h("br", null), cat.country)), h("smoothly-table-expandable-cell", null, cat.coat, h("div", { slot: "detail" }, "Pattern: ", cat.pattern))))), h("smoothly-table-row", { key: '9548adc12d9a485c5e973deeb2fe4abf22119809' }, h("smoothly-table-cell", { key: '502907286ab36ee5358c143d8d5613bb0685fa29' }, "Cell5"), h("smoothly-table-expandable-cell", { key: '4ed0239f7262bfb76e8dbfd94b4b76e992dbf1af' }, "Expandable Cell", h("div", { key: 'f576406602ee34bf67621939ff7fe2c57c4b66be', slot: "detail" }, "Content of the expandable cell"))), h("smoothly-table-row", { key: '54e2ecd8dcb9c666930d9005ba31a3f64e25aabc' }, h("smoothly-table-expandable-cell", { key: '88b51a8cf477ca4de13d0735a491c30fe28870c6' }, "Expandable Cell 1", h("div", { key: 'd0ddd7d5489dc8e9df88b52315d61e97d9c6434d', slot: "detail" }, "Content of the expandable cell 1")), h("smoothly-table-expandable-cell", { key: 'ee707b238f569e36eb9bdbaca1c82fc7a0f830bc' }, "Expandable Cell 2", h("div", { key: 'bbdaab7554b86deee81fea4697afc013909cb218', slot: "detail" }, "Content of the expandable cell 2")))), h("smoothly-table-foot", { key: '936f27ddd1dbc6b3b1f8fa5cbe9887898c1b3688' }, h("smoothly-table-row", { key: '161b992762fa4617785cd6c6c83d957a7d5f976c' }, h("smoothly-table-cell", { key: '158fc3ac159fe7eeac086fdde980b1f39c9d79db' }, "Footer Cell"), h("smoothly-table-cell", { key: '3a6ff2185ab3ff1306655498582ea9bfff4d7099' }, "Footer Cell"))))));
|
|
9666
9740
|
}
|
|
9667
9741
|
};
|
|
9668
9742
|
const cats = [
|
|
@@ -9770,7 +9844,7 @@ const SmoothlyTableExpandableCell = class {
|
|
|
9770
9844
|
}
|
|
9771
9845
|
render() {
|
|
9772
9846
|
var _a;
|
|
9773
|
-
return (h(Host, { key: '
|
|
9847
|
+
return (h(Host, { key: '1c27ff4e5c10ad504e0c8307be3bfb1243afc5d9', style: { "--smoothly-table-cell-span": (_a = this.span) === null || _a === void 0 ? void 0 : _a.toString(10) }, onClick: (e) => this.clickHandler(e) }, h("div", { key: '9df957e7d9f55f6687adbdfc550b3cfa6a8d3dea', class: "content" }, h("slot", { key: '505b6a8964feb91d4d0256b6ea3f27519742ef6c' })), h("div", { key: '9054849f559fc9f02c7ba5c9c95cabf1e741f417', class: "smoothly-table-detail", ref: (el) => (this.detailElement = el) }, h("slot", { key: '0feb5288d454fc6b606ad4585706f40ec3789443', name: "detail" }))));
|
|
9774
9848
|
}
|
|
9775
9849
|
static get watchers() { return {
|
|
9776
9850
|
"open": [{
|
|
@@ -9802,7 +9876,7 @@ const SmoothlyTableExpandableRow = class {
|
|
|
9802
9876
|
this.smoothlyTableExpandableRowChange.emit(this.open);
|
|
9803
9877
|
}
|
|
9804
9878
|
render() {
|
|
9805
|
-
return (h(Host, { key: '
|
|
9879
|
+
return (h(Host, { key: '21d040e883e73f9415ee1a3e7055fa5ce9adc57b', onClick: (e) => this.clickHandler(e) }, h("slot", { key: '9c42a350c5e00b6b24f7c746cc801588df69c14f' }), h("div", { key: '0c5c8a4e231018e1f96e09348447c876051540cf', class: "smoothly-table-detail", ref: e => (this.div = e) }, h("slot", { key: '263395e4d57775e72e510071245261a23097175f', name: "detail" }))));
|
|
9806
9880
|
}
|
|
9807
9881
|
static get watchers() { return {
|
|
9808
9882
|
"open": [{
|
|
@@ -9819,7 +9893,7 @@ const SmoothlyTableFillerRow = class {
|
|
|
9819
9893
|
registerInstance(this, hostRef);
|
|
9820
9894
|
}
|
|
9821
9895
|
render() {
|
|
9822
|
-
return (h("smoothly-table-row", { key: '
|
|
9896
|
+
return (h("smoothly-table-row", { key: '7561aa3596121beb8d1fa3af10d14ed9be08f7f2' }, h("smoothly-table-cell", { key: '04c9c851fb31ec6a246b2bc82cdbc7293478a0e3' }, h("slot", { key: 'f0db97bf64c0979fbca0c6f5ab4296684f743a70' }))));
|
|
9823
9897
|
}
|
|
9824
9898
|
};
|
|
9825
9899
|
SmoothlyTableFillerRow.style = styleCss$f();
|
|
@@ -9831,7 +9905,7 @@ const SmoothlyTableFoot = class {
|
|
|
9831
9905
|
registerInstance(this, hostRef);
|
|
9832
9906
|
}
|
|
9833
9907
|
render() {
|
|
9834
|
-
return (h(Host, { key: '
|
|
9908
|
+
return (h(Host, { key: 'fa6bc933396023c1d84d01460a4ff641c53136a1' }, h("slot", { key: '7aaddf60b15f344866dce0847441bec4dc739ae0' })));
|
|
9835
9909
|
}
|
|
9836
9910
|
};
|
|
9837
9911
|
SmoothlyTableFoot.style = styleCss$e();
|
|
@@ -9877,10 +9951,10 @@ const SmoothlyTableHead = class {
|
|
|
9877
9951
|
(_a = this.scrollParent) === null || _a === void 0 ? void 0 : _a.removeEventListener("scroll", this.onScroll);
|
|
9878
9952
|
}
|
|
9879
9953
|
render() {
|
|
9880
|
-
return (h(Host, { key: '
|
|
9954
|
+
return (h(Host, { key: 'a892578836b416a7ca7dcecf5436988fcd9c33d1', class: { scrolled: !!this.scrolled }, style: {
|
|
9881
9955
|
"--top": `calc(${this.depth} * var(--smoothly-table-cell-min-height))`,
|
|
9882
9956
|
"--z-index": `${10 - this.depth}`,
|
|
9883
|
-
} }, h("slot", { key: '
|
|
9957
|
+
} }, h("slot", { key: '6905eb9cae9ac8411ff90d83de4ff7a2a5fd5f12' })));
|
|
9884
9958
|
}
|
|
9885
9959
|
get element() { return getElement(this); }
|
|
9886
9960
|
};
|
|
@@ -9905,7 +9979,7 @@ const SmoothlyTableRow = class {
|
|
|
9905
9979
|
}
|
|
9906
9980
|
}
|
|
9907
9981
|
render() {
|
|
9908
|
-
return (h(Host, { key: '
|
|
9982
|
+
return (h(Host, { key: '213964e8d2239419bb9dd5751e00096a922ab084' }, h("slot", { key: '37b92c81dff5ba150141d0d060f7d1eb17c414d2' })));
|
|
9909
9983
|
}
|
|
9910
9984
|
};
|
|
9911
9985
|
SmoothlyTableRow.style = styleCss$c();
|
|
@@ -9928,7 +10002,7 @@ const SmoothlyTableRowGroup = class {
|
|
|
9928
10002
|
}
|
|
9929
10003
|
}
|
|
9930
10004
|
render() {
|
|
9931
|
-
return (h(Host, { key: '
|
|
10005
|
+
return (h(Host, { key: '8407e47bd79c00425a93bbf78bfaa234417e6730' }, h("div", { key: '80a4d3121142f72cecf08afee5083fc3f00e8772', onClick: () => this.clickHandler() }, h("div", { key: 'ae02eb813ffb3951e41363c41b89e16f8cf93199' }, h("slot", { key: '5020efcd50f6b9349c05c93c90c7b0499ebaa5f6', name: "start" })), h("div", { key: '081546adcccc771440f2f5e681dfc15712579fb3' }, h("slot", { key: 'd05a5dff9ba8473a329e3cb00bedc0732cbed6f9', name: "end" }))), h("div", { key: '26e75848ce1b7f8c889fb7376f5c65c9a1f95ef8' }, h("slot", { key: '0d1687ebc94faafddea6b096c26ce5fdd408ff7f' }))));
|
|
9932
10006
|
}
|
|
9933
10007
|
};
|
|
9934
10008
|
SmoothlyTableRowGroup.style = styleCss$b();
|
|
@@ -9996,7 +10070,7 @@ const SmoothlyTabsDemo = class {
|
|
|
9996
10070
|
registerInstance(this, hostRef);
|
|
9997
10071
|
}
|
|
9998
10072
|
render() {
|
|
9999
|
-
return (h(Host, { key: '
|
|
10073
|
+
return (h(Host, { key: 'e5afcbf69dade2bfdfbccdb5ebef98067703e03e' }, h("div", { key: '720708cebe6311006737245ba3bfd2ce495fddd4' }, h("smoothly-button", { key: '9cc479c1ca7de47f611071bc020640509ec55f13', color: "primary", onClick: () => (this.extraTab1 = !this.extraTab1) }, this.extraTab1 ? "Remove" : "Add", " tab")), h("smoothly-tabs", { key: '5e91c482c3f8d282c48630216797762712fbd088', tabs: "multiple" }, h("smoothly-tab", { key: '30fd2e83a0ad2e4ef4363b2471d5ef3a8f508e79', label: "Single Tab", open: true }, h("strong", { key: '46b7eb4a05793c23e1235026732d599ad7cd8acf' }, "Single Tab content here."), " If only one tab is available setting ", h("code", { key: '7f0e856a9e3b6f922c9a872e303f8ef2af92fe68' }, "tabs"), " to", " ", h("code", { key: 'b8398697b2d6c2757cd0a9a6216b1ca9b1680053' }, "\"multiple\""), " will hide the tab navigation and display the single tab's content directly."), this.extraTab1 && (h("smoothly-tab", { key: 'd52047652788873a578d9f071e07e7a0ade65ea9', label: "Extra tab" }, "When there are more then one tab, the tab navigation will show."))), h("div", { key: '4ce9bdf4953f65e8296e45fc63ea4eef285010bd' }, h("smoothly-button", { key: '68c65012a5382c124b140c26442bbbf00e09b94c', color: "primary", onClick: () => (this.extraTab2 = !this.extraTab2) }, this.extraTab2 ? "Remove" : "Add", " tab")), h("smoothly-tabs", { key: '7afa233b048274a8966859485ebbe28c76e6b87b' }, h("smoothly-tab", { key: '390d8492e788d1f8748090a43e57b12f0ce88107', label: "Disabled tab", tooltip: "Tooltip for test3", disabled: true }, "this is a test message again!"), h("smoothly-tab", { key: 'f3e74d731d6b3fcd9d188a5653beaec79fc179ee', label: "test1", tooltip: "Tooltip for test1", open: true }, "Hello world!"), h("smoothly-tab", { key: '6de96abf84eb6fb72065cdcc97691257cd0ced76', label: "test2" }, "this is a test message!"), this.extraTab2 && h("smoothly-tab", { key: '01fba3e8e1ad1ed22b3458bd5240f4f4192f3145', label: "test-extra" }, "this is a test message!"))));
|
|
10000
10074
|
}
|
|
10001
10075
|
};
|
|
10002
10076
|
SmoothlyTabsDemo.style = styleCss$9();
|
|
@@ -10008,7 +10082,7 @@ const SmoothlyThemeColor = class {
|
|
|
10008
10082
|
registerInstance(this, hostRef);
|
|
10009
10083
|
}
|
|
10010
10084
|
render() {
|
|
10011
|
-
return (h(Host, { key: '
|
|
10085
|
+
return (h(Host, { key: '2ffa9ed25b646e14b48d6da53a3afd3a9f897468' }, this.color, ["tint", "color", "shade"].map(variant => (h("smoothly-theme-color-variant", { title: `${this.color} ${variant}`, color: this.color, variant: variant })))));
|
|
10012
10086
|
}
|
|
10013
10087
|
};
|
|
10014
10088
|
SmoothlyThemeColor.style = styleCss$8();
|
|
@@ -10056,7 +10130,7 @@ const SmoothlyThemeDemo = class {
|
|
|
10056
10130
|
registerInstance(this, hostRef);
|
|
10057
10131
|
}
|
|
10058
10132
|
render() {
|
|
10059
|
-
return (h(Host, { key: '
|
|
10133
|
+
return (h(Host, { key: '259010889b682573bbfb69b7711dcf03f972b06f' }, h("h2", { key: 'fe4330363bc1b6322e015569a02662077907cca8' }, "Theme"), h("smoothly-theme-picker", { key: '6df264adb5b90050418224f373e927dc33373d3f' }, h("smoothly-item", { key: 'ac79f3b604c3b6bffe8e1cd19e7b24b03960bf14', selected: true, value: "assets/style/smoothly.css" }, "Smoothly"), h("smoothly-item", { key: '4ca9bad0897a7a216a56aa0db0004a6e14b6f272', value: "https://app.issuefab.com/assets/style/index.css" }, "Issuefab"), h("smoothly-item", { key: '2e71be7455105d37aa039c6347e4aa24dab3c15a', value: "https://app.proquse.com/assets/style/index.css" }, "Proquse"), h("smoothly-item", { key: '235223f83245bb7cc3455f2102237a8923c5cf22', value: "https://app.weekmeter.com/assets/style/index.css" }, "Weekmeter"), h("smoothly-item", { key: '43153d498cde19b3a97ea93036be8dabb90c86d7', value: "https://test.dash.pax2pay.app/p2pdash.css" }, "Pax2Pay Dashboard"), h("smoothly-item", { key: 'e5e1e6079b7b20cfe8a62c5572f1fa48c6365a90', value: "https://ui.pax2pay.app/assets/style/pax2pay.css" }, "Pax2Pay Portal"), h("smoothly-item", { key: '26b2f21f376a927f788771a32292d3fb13d7380e', value: "https://theme.payfunc.com/intergiro/index.css" }, "Intergiro Monitor"), h("smoothly-item", { key: 'c36d493ae4ba1b8152c3bb8f41b086b08437f600', value: "https://theme.payfunc.com/light/index.css" }, "Payfunc Light"), h("smoothly-item", { key: '1dab38f02ffadd2e2160f99f6209f72e294ac874', value: "https://theme.payfunc.com/dark/index.css" }, "Payfunc Dark")), h("div", { key: 'f542097bfc16f9214244cfb7bcc1e2a2e31704e8' }, h("smoothly-theme-colors", { key: 'a363e1e7ba2164cd58bc1fa03d5b9d13c8e81c10' }), h("smoothly-theme-guide", { key: 'bedcda407b6d30d538176e1c32112d455feddcfd' })), h("smoothly-button", { key: 'aeb9185b1efeb83db2e4359b733c8bad207adb2b', type: "link", link: "/redirect" }, "To redirect"), h("smoothly-button", { key: '761c81b4c4724e61a6d7bb96f44ef3d241b86ee1', type: "link", link: "/redirect" }, "To /redirect"), h("smoothly-button", { key: 'a45adb52d81652f71a997c9f1c81466822e3da4e', type: "link", link: new URL("/redirect", window.location.origin).href }, "To new URL(\"redirect\")"), h("smoothly-button", { key: '0ad5ce583e40ea790411d756bcc0d9ebb118452c', type: "link", link: "redirect/nested" }, "To redirect nested")));
|
|
10060
10134
|
}
|
|
10061
10135
|
};
|
|
10062
10136
|
SmoothlyThemeDemo.style = styleCss$5();
|
|
@@ -10069,14 +10143,14 @@ const SmoothlyThemeColors = class {
|
|
|
10069
10143
|
}
|
|
10070
10144
|
render() {
|
|
10071
10145
|
return [
|
|
10072
|
-
h("smoothly-display", { key: '
|
|
10073
|
-
h("br", { key: '
|
|
10074
|
-
h("smoothly-display", { key: '
|
|
10075
|
-
h("br", { key: '
|
|
10076
|
-
h("smoothly-display", { key: '
|
|
10077
|
-
h("br", { key: '
|
|
10078
|
-
h("smoothly-display", { key: '
|
|
10079
|
-
h("br", { key: '
|
|
10146
|
+
h("smoothly-display", { key: '9d9ac39e30705ec8aa0175a54771ab32d88f70cb' }, "Tint is used as background to highlight, for example hovering an item in the select menu."),
|
|
10147
|
+
h("br", { key: '704a1265d7bb3ec33ab58b3f997df5afdf0707a5' }),
|
|
10148
|
+
h("smoothly-display", { key: '2335c861ac8cb203da8e68ee536565bc2a90174f' }, "Color is used as a normal background or as a background to show that something is selected, for example a selected item in the select menu."),
|
|
10149
|
+
h("br", { key: '02804573e827624e8eebec30f835679c1ecf2fd3' }),
|
|
10150
|
+
h("smoothly-display", { key: '75dfb78b730a334347ff3b5d305df980fa8f41aa' }, "Shade is used as border and for symbols in buttons. It works as a semi-low contrast against color and tint."),
|
|
10151
|
+
h("br", { key: '988cfafb48a6f100c7eca395e6a4ac5be3e9d329' }),
|
|
10152
|
+
h("smoothly-display", { key: '2bf7c0cdc1be980a3ff5b0e360a8ffbad6553980' }, "One can use the ", "<smoothly-color>", " component to switch between what color set is used.", " "),
|
|
10153
|
+
h("br", { key: 'c6dbc6a33cf896d8be26a3c8c08641b9de7ade17' }),
|
|
10080
10154
|
];
|
|
10081
10155
|
}
|
|
10082
10156
|
};
|
|
@@ -10090,12 +10164,12 @@ const SmoothlyThemePicker = class {
|
|
|
10090
10164
|
this.element = "smoothly-css";
|
|
10091
10165
|
}
|
|
10092
10166
|
render() {
|
|
10093
|
-
return (h(Host, { key: '
|
|
10167
|
+
return (h(Host, { key: '6b397ed31434037a5f53640cd677e4bf9f680671' }, h("smoothly-input-select", { key: 'e89de311276c516112329aa634ec4fa372eeeda7', name: "theme", looks: "border", onSmoothlyInput: e => {
|
|
10094
10168
|
const element = document.querySelector(`#${this.element}`);
|
|
10095
10169
|
if (element instanceof HTMLLinkElement && typeof e.detail.theme == "string") {
|
|
10096
10170
|
element.href = e.detail.theme;
|
|
10097
10171
|
}
|
|
10098
|
-
} }, h("label", { key: '
|
|
10172
|
+
} }, h("label", { key: '185ea02a7eeda366e8290a3b2855e287eb62e91d', slot: "label" }, "Select theme"), h("slot", { key: '3844628b22bfe87cebc35c2ab396accc02cf48dc' }))));
|
|
10099
10173
|
}
|
|
10100
10174
|
};
|
|
10101
10175
|
SmoothlyThemePicker.style = styleCss$3();
|
|
@@ -10118,7 +10192,7 @@ const SmoothlyToggleSwitch = class {
|
|
|
10118
10192
|
this.smoothlyToggleSwitchChange.emit(this.selected);
|
|
10119
10193
|
}
|
|
10120
10194
|
render() {
|
|
10121
|
-
return (h(Host, { key: '
|
|
10195
|
+
return (h(Host, { key: '8fe4ea1f46f6c01c92b57819809602946c96c06f' }, h("button", { key: 'd9bfcb5daac769bbd7ef5aaa7839737e4711d76a', type: "button", disabled: this.disabled, onClick: () => this.handleClick() }, h("smoothly-icon", { key: '270b37fed4a32ba6ce9226af559a6aaa23aae7de', color: this.color, name: !this.checkmark ? "ellipse" : this.selected ? "checkmark-circle" : "close-circle", fill: "clear", class: { selected: this.selected } }))));
|
|
10122
10196
|
}
|
|
10123
10197
|
};
|
|
10124
10198
|
SmoothlyToggleSwitch.style = styleCss$2();
|
|
@@ -10130,7 +10204,7 @@ const SmoothlyToggleSwitchDemo = class {
|
|
|
10130
10204
|
registerInstance(this, hostRef);
|
|
10131
10205
|
}
|
|
10132
10206
|
render() {
|
|
10133
|
-
return (h(Host, { key: '
|
|
10207
|
+
return (h(Host, { key: '427648c217c445ff9bfcbc15897305cd8cc7a1fb' }, h("h4", { key: 'de6459b36d5a11ca5ef125e7be6fd47b6a7eb938' }, "Toggle switches"), h("div", { key: '544de9cabe5fa1da5a303b3ac4cb21f46d4e773a' }, h("p", { key: '3e464b80ef1bd8fe1ab43b29a1dffd8fb328df7d' }, "Checkmark"), h("span", { key: '3439d69cae6f0d7e5a6df6132050abe5c344b187' }, h("p", { key: 'fc9499fddd3bc798c7c52b614cec7bcb6bf52b65' }, "Tiny"), h("smoothly-toggle-switch", { key: '34bdc859582b47fbbb74341becc0e6087072eba5', disabled: false, size: "tiny" })), h("span", { key: 'a58d98e68a782423c12f4b8df8e80857e03dc139' }, h("p", { key: '9034c32dc86c0efdf5a8ab6fff641c09ad43a1a4' }, "Small"), h("smoothly-toggle-switch", { key: 'db605c265143f36a67891e7ed45351e36621df13', disabled: false, size: "small" })), h("span", { key: 'bebf928abd8c347d8022255de8e889dc85c09c77' }, h("p", { key: 'e860772082f263847681a239953580e86e29c399' }, "Standard"), h("smoothly-toggle-switch", { key: '79f4366d8b1862858afb468219c75ecb7018789c', disabled: false })), h("span", { key: 'f4ad70d60ecc85f2814d3e87dfdc7a236e7fef13' }, h("p", { key: 'fb93088b1c7482580821322ee74aaf6e9d3cf87e' }, "Large"), h("smoothly-toggle-switch", { key: '694db2c0cfc2fc9fa5ab37934891c3df9a7cbcff', disabled: false, size: "large" })), h("p", { key: '367eeb72e8cdd2c16e456e425c152e8a68976e06' }, "Colors checkmark"), h("span", { key: '9aea20656b1cb4223c036b138790c0fa46182bcd' }, h("p", { key: '861904268f1d9f131fc12de30419576dd4e03ca4' }, "Danger"), h("smoothly-toggle-switch", { key: 'f3e7eb843fa01e958c29dcb055bf121fae011348', color: "danger", disabled: false, size: "small" })), h("span", { key: 'ad94d89305156111da3908a7f4b07dd157e0fcd5' }, h("p", { key: '7c23b1a9151d430b267b66f21430da94b8492acd' }, "Primary color"), h("smoothly-toggle-switch", { key: '50fd4aaa9762a92c9b2f2607d61ed30c8350ce1e', color: "primary", disabled: false, size: "small" })), h("span", { key: '8a8fa2fdf036938a89b0cee770199aadae78b6b0' }, h("p", { key: '581928f8b5a88a15ad840b1ed0c43487cbb58465' }, "Secondary color"), h("smoothly-toggle-switch", { key: '833d19dfc2a929777ec935e69314588883bf153e', color: "secondary", disabled: false, size: "small" })), h("p", { key: 'b36bd1756c7911a71c17b48857c89e41efd497ef' }), h("p", { key: '911b6241ac22a6b6987014b86afa7bae155bad70' }, "Colors no checkmark"), h("span", { key: '6136db79afe7390f27a70286b2b7af2c85f360bb' }, h("p", { key: 'bc5fb4108a80a40d247464b44131eba9dd7613cb' }, "Danger"), h("smoothly-toggle-switch", { key: 'ab1d1ac99e8871dbfe8bffe0d71f1ab3b3542f5a', checkmark: false, color: "danger", disabled: false, size: "small" })), h("span", { key: '2876aa64a40c492e295f7e24d5812ea8d790c405' }, h("p", { key: 'fd59cd462154da9215c9aa80b026319baa021582' }, "Primary color"), h("smoothly-toggle-switch", { key: '50cc57021cc9aaddaf0d1053ce1e9c73ed02813d', checkmark: false, color: "primary", disabled: false, size: "small" })), h("span", { key: '1608427985a0e07188d5566c7f3709a347864b9a' }, h("p", { key: '23050dbf5fb9e8cc76120818921a3fbbfef4d21d' }, "Secondary color"), h("smoothly-toggle-switch", { key: '5c8152a8d52d9fd778aea9f84f3b36b49acf9869', checkmark: false, color: "secondary", disabled: false, size: "small" })))));
|
|
10134
10208
|
}
|
|
10135
10209
|
};
|
|
10136
10210
|
SmoothlyToggleSwitchDemo.style = styleCss$1();
|
|
@@ -10156,7 +10230,7 @@ const SmoothlyTrigger = class {
|
|
|
10156
10230
|
result = this.disabled ? (h("slot", null)) : (h("a", { onClick: e => this.onClick(e) }, h("slot", null)));
|
|
10157
10231
|
break;
|
|
10158
10232
|
case "button":
|
|
10159
|
-
result = (h("button", { key: '
|
|
10233
|
+
result = (h("button", { key: 'a8277d3521475192961463b4867553aacea5f8e3', disabled: this.disabled, name: this.name }, h("slot", { key: '6998482165ff6a73d87eb079235f88741353a1ce' })));
|
|
10160
10234
|
break;
|
|
10161
10235
|
}
|
|
10162
10236
|
return result;
|