smoothly 1.113.0 → 1.115.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 +126 -101
- 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/app/index.js +2 -2
- package/dist/collection/components/app/index.js.map +1 -1
- package/dist/collection/components/app/room/index.js +12 -8
- package/dist/collection/components/app/room/index.js.map +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/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 +2 -2
- 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-DdXfvS4U.js → p-1j2KmcfQ.js} +2 -2
- package/dist/components/{p-C519IJGa.js → p-4pGbxojU.js} +2 -2
- package/dist/components/{p-WzQNLGYx.js → p-67RlLkJb.js} +2 -2
- package/dist/components/{p-BDW8BGmy.js → p-6PsJb2Ez.js} +2 -2
- package/dist/components/{p-B8ljN4o0.js → p-AX8gOGUr.js} +2 -2
- package/dist/components/p-B0kZrKne.js +2 -0
- package/dist/components/p-B2MMqcTF.js +2 -0
- package/dist/components/{p-CDetFhB9.js → p-B6sHuEsq.js} +2 -2
- package/dist/components/{p-Bh2x2l2j.js → p-BEHgXDtQ.js} +2 -2
- package/dist/components/{p-Qf8o2d67.js → p-BFJL6rrU.js} +2 -2
- package/dist/components/p-BGBbdXaw.js +2 -0
- package/dist/components/{p-9Fc5vWzs.js → p-BGzrO9CQ.js} +2 -2
- package/dist/components/{p-CjAkXCwI.js → p-BHcHgI_e.js} +2 -2
- package/dist/components/{p-CLN-EYZz.js → p-BHsrC9Oh.js} +2 -2
- package/dist/components/{p-CjknknP6.js → p-BRoShuOu.js} +2 -2
- package/dist/components/{p-CGg8GrGq.js → p-BUa0wBSK.js} +2 -2
- package/dist/components/p-BXoBluZQ.js +2 -0
- package/dist/components/{p-jlska1pM.js → p-B_z5-Hf8.js} +2 -2
- package/dist/components/p-BanWK6rV.js +2 -0
- package/dist/components/p-Bes8H54c.js +2 -0
- package/dist/components/{p-JLn3QBuQ.js.map → p-Bes8H54c.js.map} +1 -1
- package/dist/components/{p-BznhH5yZ.js → p-BfwEfI7H.js} +2 -2
- package/dist/components/{p-BrrLEO2B.js → p-Bn7CZqdz.js} +2 -2
- package/dist/components/{p-DvF8zgEi.js → p-BpV6GXd7.js} +2 -2
- package/dist/components/{p-BEQ2yAjW.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-CuC7MNAM.js → p-BulPH2Jo.js} +2 -2
- package/dist/components/{p-CXEfxOpA.js → p-C-zr_dP8.js} +2 -2
- package/dist/components/{p-MCxlBxSA.js → p-C02MtoAQ.js} +2 -2
- package/dist/components/{p-DxVl-YSW.js → p-C2xjUTYO.js} +2 -2
- package/dist/components/{p-JdwWRJjd.js → p-C6T0ZB2C.js} +2 -2
- package/dist/components/{p-MNhi5te8.js → p-CAgJrhiy.js} +2 -2
- package/dist/components/p-CApTrLt_.js +2 -0
- package/dist/components/{p-B_Tu52N5.js → p-CCExK0R5.js} +2 -2
- package/dist/components/p-CCExK0R5.js.map +1 -0
- package/dist/components/{p-C5JaWzfu.js → p-CFgT9iMG.js} +2 -2
- package/dist/components/{p-OfpR2_fh.js → p-CJEV2v84.js} +2 -2
- package/dist/components/p-CKlr_F9h.js +2 -0
- package/dist/components/{p-Cct10sTX.js → p-CL7fW_Oh.js} +2 -2
- package/dist/components/{p-DTOzpQD8.js → p-COK__8-d.js} +2 -2
- package/dist/components/{p-uCXQl-5J.js → p-CPnXAdGI.js} +2 -2
- package/dist/components/p-CSXWpZjy.js +2 -0
- package/dist/components/{p-fjRiTKvl.js → p-CTdXhHGF.js} +2 -2
- package/dist/components/{p-0vl7fnbi.js → p-CUdZx76u.js} +2 -2
- package/dist/components/{p-C0XPq5lI.js → p-CVNSeOlg.js} +2 -2
- package/dist/components/{p-Dt4cCJEp.js → p-CcXqouEO.js} +2 -2
- package/dist/components/p-CgCEK6Lc.js +2 -0
- package/dist/components/{p-uWmGtcyP.js.map → p-CgCEK6Lc.js.map} +1 -1
- package/dist/components/{p-DRiOEv4L.js → p-CmPHR3tf.js} +2 -2
- package/dist/components/{p-C-dGqk3e.js → p-CoJyQegK.js} +2 -2
- package/dist/components/p-CooymHn6.js +2 -0
- package/dist/components/p-CqMnH54Q.js +2 -0
- package/dist/components/p-CqSiLhUe.js +2 -0
- package/dist/components/{p-CbWiiNJL.js → p-CqXSfYre.js} +2 -2
- package/dist/components/{p-xbCL6ChL.js → p-CqyGm3oe.js} +2 -2
- package/dist/components/{p-Q-gVll-_.js → p-CrKwvG9J.js} +2 -2
- package/dist/components/{p-BMHv8WTp.js → p-CrkBYYf-.js} +2 -2
- package/dist/components/{p-B6W5V130.js → p-CtuuZV3u.js} +2 -2
- package/dist/components/p-Cv-uvD7X.js +2 -0
- package/dist/components/{p-BZJNdp6g.js → p-Cw_sHLuu.js} +2 -2
- package/dist/components/{p-DbS9bWfm.js → p-D-mAUrbR.js} +2 -2
- package/dist/components/{p-gJF_-tuy.js → p-D5WTwmc6.js} +2 -2
- package/dist/components/{p-DGxkSNZ-.js → p-D5dkLuTD.js} +2 -2
- package/dist/components/p-DGa_QPb9.js +2 -0
- package/dist/components/{p-eptsxAXs.js.map → p-DGa_QPb9.js.map} +1 -1
- package/dist/components/{p-97N6vnZd.js → p-DHj4bfJ8.js} +2 -2
- package/dist/components/{p-97N6vnZd.js.map → p-DHj4bfJ8.js.map} +1 -1
- package/dist/components/{p-DVbSVIVZ.js → p-DIf6-Fvg.js} +2 -2
- package/dist/components/{p-BpBeeNcM.js → p-DIhqNc1G.js} +2 -2
- package/dist/components/{p-CsHiDnB-.js → p-DLBMEh0f.js} +2 -2
- package/dist/components/{p-pYGmgv_e.js → p-DM3PMEgb.js} +2 -2
- package/dist/components/{p-D4LmYvoM.js → p-DS66Mn9S.js} +2 -2
- package/dist/components/p-DYNjCosy.js +2 -0
- package/dist/components/{p-OV_wRej-.js → p-D_uKY0yY.js} +2 -2
- package/dist/components/p-DkhX1qsg.js +2 -0
- package/dist/components/{p-DkxTx6nY.js → p-Dz8Bblye.js} +2 -2
- package/dist/components/{p-BqODWrES.js → p-He4KDK9-.js} +2 -2
- package/dist/components/{p-W-kaGeCx.js → p-N-UYdc5h.js} +2 -2
- package/dist/components/{p-oWil-NTX.js → p-NFd9Dxr1.js} +2 -2
- package/dist/components/{p-DyL_ilIk.js → p-NGbZCAH9.js} +2 -2
- package/dist/components/{p-DtoC1d2_.js → p-Qv-IgIvL.js} +2 -2
- package/dist/components/{p-7ReeDB-R.js → p-Ww5QjB3D.js} +2 -2
- package/dist/components/{p-CCzyYE1m.js → p-_o_lUhve.js} +2 -2
- package/dist/components/{p-B11YJh32.js → p-d26Fb7IS.js} +2 -2
- package/dist/components/{p-D4PyTfe4.js → p-dBpTpVs8.js} +2 -2
- package/dist/components/{p-DKir2dIt.js → p-fnKrPnzp.js} +2 -2
- package/dist/components/{p-V6FzDWfL.js → p-nFLcvugJ.js} +2 -2
- package/dist/components/{p-B7ws0a8Z.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 +126 -101
- 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-118fd1b8.entry.js → p-94d091cd.entry.js} +2 -2
- package/dist/smoothly/p-b7ac3c88.entry.js +2 -0
- package/dist/smoothly/p-b7ac3c88.entry.js.map +1 -0
- package/dist/smoothly/{p-2cd32901.entry.js → p-be43737e.entry.js} +2 -2
- package/dist/smoothly/{p-baabb62e.entry.js → p-d4dad5a8.entry.js} +2 -2
- package/dist/smoothly/smoothly.esm.js +1 -1
- package/dist/types/components/app/index.d.ts +1 -0
- package/dist/types/components/app/room/index.d.ts +3 -1
- package/dist/types/components/icon/demo/index.d.ts +2 -0
- package/dist/types/components.d.ts +5 -5
- package/package.json +1 -1
- package/dist/components/p-B_Tu52N5.js.map +0 -1
- package/dist/components/p-BdqxED0P.js +0 -2
- package/dist/components/p-BnKGlfV9.js +0 -2
- package/dist/components/p-Bufbdh4o.js +0 -2
- package/dist/components/p-Bufbdh4o.js.map +0 -1
- package/dist/components/p-BxsOj_LX.js +0 -2
- package/dist/components/p-CMEyMMZz.js +0 -2
- package/dist/components/p-COTO4dlW.js +0 -2
- package/dist/components/p-CZGfvbsC.js +0 -2
- package/dist/components/p-Cgowjgod.js +0 -2
- package/dist/components/p-Cw-_pWl-.js +0 -2
- package/dist/components/p-D4fagxgG.js +0 -2
- package/dist/components/p-D8jJZbTy.js +0 -2
- package/dist/components/p-JB57brc4.js +0 -2
- package/dist/components/p-JLn3QBuQ.js +0 -2
- package/dist/components/p-eptsxAXs.js +0 -2
- package/dist/components/p-h1R5xtdy.js +0 -2
- package/dist/components/p-hcVaU3nW.js +0 -2
- package/dist/components/p-rRkypR5s.js +0 -2
- package/dist/components/p-uWmGtcyP.js +0 -2
- package/dist/smoothly/p-2fbd48bb.entry.js +0 -2
- package/dist/smoothly/p-d2f00811.entry.js +0 -2
- package/dist/smoothly/p-d2f00811.entry.js.map +0 -1
- /package/dist/components/{p-DdXfvS4U.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-WzQNLGYx.js.map → p-67RlLkJb.js.map} +0 -0
- /package/dist/components/{p-BDW8BGmy.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-JB57brc4.js.map → p-B0kZrKne.js.map} +0 -0
- /package/dist/components/{p-Cw-_pWl-.js.map → p-B2MMqcTF.js.map} +0 -0
- /package/dist/components/{p-CDetFhB9.js.map → p-B6sHuEsq.js.map} +0 -0
- /package/dist/components/{p-Bh2x2l2j.js.map → p-BEHgXDtQ.js.map} +0 -0
- /package/dist/components/{p-Qf8o2d67.js.map → p-BFJL6rrU.js.map} +0 -0
- /package/dist/components/{p-h1R5xtdy.js.map → p-BGBbdXaw.js.map} +0 -0
- /package/dist/components/{p-9Fc5vWzs.js.map → p-BGzrO9CQ.js.map} +0 -0
- /package/dist/components/{p-CjAkXCwI.js.map → p-BHcHgI_e.js.map} +0 -0
- /package/dist/components/{p-CLN-EYZz.js.map → p-BHsrC9Oh.js.map} +0 -0
- /package/dist/components/{p-CjknknP6.js.map → p-BRoShuOu.js.map} +0 -0
- /package/dist/components/{p-CGg8GrGq.js.map → p-BUa0wBSK.js.map} +0 -0
- /package/dist/components/{p-hcVaU3nW.js.map → p-BXoBluZQ.js.map} +0 -0
- /package/dist/components/{p-jlska1pM.js.map → p-B_z5-Hf8.js.map} +0 -0
- /package/dist/components/{p-BnKGlfV9.js.map → p-BanWK6rV.js.map} +0 -0
- /package/dist/components/{p-BznhH5yZ.js.map → p-BfwEfI7H.js.map} +0 -0
- /package/dist/components/{p-BrrLEO2B.js.map → p-Bn7CZqdz.js.map} +0 -0
- /package/dist/components/{p-DvF8zgEi.js.map → p-BpV6GXd7.js.map} +0 -0
- /package/dist/components/{p-BEQ2yAjW.js.map → p-Bpc6uh0M.js.map} +0 -0
- /package/dist/components/{p-CuC7MNAM.js.map → p-BulPH2Jo.js.map} +0 -0
- /package/dist/components/{p-CXEfxOpA.js.map → p-C-zr_dP8.js.map} +0 -0
- /package/dist/components/{p-MCxlBxSA.js.map → p-C02MtoAQ.js.map} +0 -0
- /package/dist/components/{p-DxVl-YSW.js.map → p-C2xjUTYO.js.map} +0 -0
- /package/dist/components/{p-JdwWRJjd.js.map → p-C6T0ZB2C.js.map} +0 -0
- /package/dist/components/{p-MNhi5te8.js.map → p-CAgJrhiy.js.map} +0 -0
- /package/dist/components/{p-BxsOj_LX.js.map → p-CApTrLt_.js.map} +0 -0
- /package/dist/components/{p-C5JaWzfu.js.map → p-CFgT9iMG.js.map} +0 -0
- /package/dist/components/{p-OfpR2_fh.js.map → p-CJEV2v84.js.map} +0 -0
- /package/dist/components/{p-COTO4dlW.js.map → p-CKlr_F9h.js.map} +0 -0
- /package/dist/components/{p-Cct10sTX.js.map → p-CL7fW_Oh.js.map} +0 -0
- /package/dist/components/{p-DTOzpQD8.js.map → p-COK__8-d.js.map} +0 -0
- /package/dist/components/{p-uCXQl-5J.js.map → p-CPnXAdGI.js.map} +0 -0
- /package/dist/components/{p-BdqxED0P.js.map → p-CSXWpZjy.js.map} +0 -0
- /package/dist/components/{p-fjRiTKvl.js.map → p-CTdXhHGF.js.map} +0 -0
- /package/dist/components/{p-0vl7fnbi.js.map → p-CUdZx76u.js.map} +0 -0
- /package/dist/components/{p-C0XPq5lI.js.map → p-CVNSeOlg.js.map} +0 -0
- /package/dist/components/{p-Dt4cCJEp.js.map → p-CcXqouEO.js.map} +0 -0
- /package/dist/components/{p-DRiOEv4L.js.map → p-CmPHR3tf.js.map} +0 -0
- /package/dist/components/{p-C-dGqk3e.js.map → p-CoJyQegK.js.map} +0 -0
- /package/dist/components/{p-Cgowjgod.js.map → p-CooymHn6.js.map} +0 -0
- /package/dist/components/{p-rRkypR5s.js.map → p-CqMnH54Q.js.map} +0 -0
- /package/dist/components/{p-D8jJZbTy.js.map → p-CqSiLhUe.js.map} +0 -0
- /package/dist/components/{p-CbWiiNJL.js.map → p-CqXSfYre.js.map} +0 -0
- /package/dist/components/{p-xbCL6ChL.js.map → p-CqyGm3oe.js.map} +0 -0
- /package/dist/components/{p-Q-gVll-_.js.map → p-CrKwvG9J.js.map} +0 -0
- /package/dist/components/{p-BMHv8WTp.js.map → p-CrkBYYf-.js.map} +0 -0
- /package/dist/components/{p-B6W5V130.js.map → p-CtuuZV3u.js.map} +0 -0
- /package/dist/components/{p-CZGfvbsC.js.map → p-Cv-uvD7X.js.map} +0 -0
- /package/dist/components/{p-BZJNdp6g.js.map → p-Cw_sHLuu.js.map} +0 -0
- /package/dist/components/{p-DbS9bWfm.js.map → p-D-mAUrbR.js.map} +0 -0
- /package/dist/components/{p-gJF_-tuy.js.map → p-D5WTwmc6.js.map} +0 -0
- /package/dist/components/{p-DGxkSNZ-.js.map → p-D5dkLuTD.js.map} +0 -0
- /package/dist/components/{p-DVbSVIVZ.js.map → p-DIf6-Fvg.js.map} +0 -0
- /package/dist/components/{p-BpBeeNcM.js.map → p-DIhqNc1G.js.map} +0 -0
- /package/dist/components/{p-CsHiDnB-.js.map → p-DLBMEh0f.js.map} +0 -0
- /package/dist/components/{p-pYGmgv_e.js.map → p-DM3PMEgb.js.map} +0 -0
- /package/dist/components/{p-D4LmYvoM.js.map → p-DS66Mn9S.js.map} +0 -0
- /package/dist/components/{p-CMEyMMZz.js.map → p-DYNjCosy.js.map} +0 -0
- /package/dist/components/{p-OV_wRej-.js.map → p-D_uKY0yY.js.map} +0 -0
- /package/dist/components/{p-D4fagxgG.js.map → p-DkhX1qsg.js.map} +0 -0
- /package/dist/components/{p-DkxTx6nY.js.map → p-Dz8Bblye.js.map} +0 -0
- /package/dist/components/{p-BqODWrES.js.map → p-He4KDK9-.js.map} +0 -0
- /package/dist/components/{p-W-kaGeCx.js.map → p-N-UYdc5h.js.map} +0 -0
- /package/dist/components/{p-oWil-NTX.js.map → p-NFd9Dxr1.js.map} +0 -0
- /package/dist/components/{p-DyL_ilIk.js.map → p-NGbZCAH9.js.map} +0 -0
- /package/dist/components/{p-DtoC1d2_.js.map → p-Qv-IgIvL.js.map} +0 -0
- /package/dist/components/{p-7ReeDB-R.js.map → p-Ww5QjB3D.js.map} +0 -0
- /package/dist/components/{p-CCzyYE1m.js.map → p-_o_lUhve.js.map} +0 -0
- /package/dist/components/{p-B11YJh32.js.map → p-d26Fb7IS.js.map} +0 -0
- /package/dist/components/{p-D4PyTfe4.js.map → p-dBpTpVs8.js.map} +0 -0
- /package/dist/components/{p-DKir2dIt.js.map → p-fnKrPnzp.js.map} +0 -0
- /package/dist/components/{p-V6FzDWfL.js.map → p-nFLcvugJ.js.map} +0 -0
- /package/dist/components/{p-B7ws0a8Z.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-118fd1b8.entry.js.map → p-94d091cd.entry.js.map} +0 -0
- /package/dist/smoothly/{p-2cd32901.entry.js.map → p-be43737e.entry.js.map} +0 -0
- /package/dist/smoothly/{p-baabb62e.entry.js.map → p-d4dad5a8.entry.js.map} +0 -0
|
@@ -42,7 +42,7 @@ export class SmoothlyInputClear {
|
|
|
42
42
|
}
|
|
43
43
|
render() {
|
|
44
44
|
var _a;
|
|
45
|
-
return (h(Host, { key: '
|
|
45
|
+
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" }))));
|
|
46
46
|
}
|
|
47
47
|
static get is() { return "smoothly-input-clear"; }
|
|
48
48
|
static get encapsulation() { return "scoped"; }
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { h, Host } from "@stencil/core";
|
|
2
2
|
export class SmoothlyInputColorDemo {
|
|
3
3
|
render() {
|
|
4
|
-
return (h(Host, { key: '
|
|
4
|
+
return (h(Host, { key: 'a24614a0d013b44ad55334eba6849d7d4c2ebdc8' }, h("h2", { key: 'f003675167b0a648e3de7cd44a2a2c53a27c1e3a' }, "Color"), h("smoothly-input-color", { key: 'd562fdd31044939c84dd7bd6264adfe9ea4a8bfa', name: "color" }, "Choose color")));
|
|
5
5
|
}
|
|
6
6
|
static get is() { return "smoothly-input-color-demo"; }
|
|
7
7
|
static get styles() { return "style.css"; }
|
|
@@ -146,7 +146,7 @@ export class SmoothlyInputColor {
|
|
|
146
146
|
}
|
|
147
147
|
render() {
|
|
148
148
|
var _a, _b, _c, _d, _e, _f;
|
|
149
|
-
return (h(Host, { key: '
|
|
149
|
+
return (h(Host, { key: '443b5ede9cb6485ed194f6c4bcd0dfa4d24fbf5f', style: {
|
|
150
150
|
"--hexCode": this.value,
|
|
151
151
|
"--rgb-r": `${Math.round((_a = this.rgb.r) !== null && _a !== void 0 ? _a : 0)}`,
|
|
152
152
|
"--rgb-g": `${Math.round((_b = this.rgb.g) !== null && _b !== void 0 ? _b : 0)}`,
|
|
@@ -155,7 +155,7 @@ export class SmoothlyInputColor {
|
|
|
155
155
|
"--hsl-s": `${Math.round((_e = this.hsl.s) !== null && _e !== void 0 ? _e : 0)}%`,
|
|
156
156
|
"--hsl-l": `${Math.round((_f = this.hsl.l) !== null && _f !== void 0 ? _f : 0)}%`,
|
|
157
157
|
"--element-height": `${this.element.clientHeight}px`,
|
|
158
|
-
} }, h("smoothly-input", { key: '
|
|
158
|
+
} }, 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() })))))));
|
|
159
159
|
}
|
|
160
160
|
static get is() { return "smoothly-input-color"; }
|
|
161
161
|
static get encapsulation() { return "scoped"; }
|
|
@@ -108,7 +108,7 @@ export class SmoothlyInputDate {
|
|
|
108
108
|
event.stopPropagation();
|
|
109
109
|
}
|
|
110
110
|
render() {
|
|
111
|
-
return (h(Host, { key: '
|
|
111
|
+
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" }))))));
|
|
112
112
|
}
|
|
113
113
|
static get is() { return "smoothly-input-date"; }
|
|
114
114
|
static get encapsulation() { return "scoped"; }
|
|
@@ -123,15 +123,15 @@ export class SmoothlyInputDateRange {
|
|
|
123
123
|
this.smoothlyInput.emit({ [this.name]: undefined });
|
|
124
124
|
}
|
|
125
125
|
render() {
|
|
126
|
-
return (h(Host, { key: '
|
|
126
|
+
return (h(Host, { key: '1f8b2d046cbb64b8df5343a945cb51563d721f27', tabindex: this.disabled ? undefined : 0, class: {
|
|
127
127
|
"has-value": !!(this.start || this.end),
|
|
128
128
|
"has-text": !!(this.startHasText || this.endHasText),
|
|
129
129
|
"floating-label": this.alwaysShowGuide,
|
|
130
|
-
} }, h("span", { key: '
|
|
130
|
+
} }, 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 => {
|
|
131
131
|
var _a, _b;
|
|
132
132
|
return (e.stopPropagation(),
|
|
133
133
|
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());
|
|
134
|
-
}, value: this.start, readonly: this.readonly, disabled: this.disabled, showLabel: this.showLabel }), h("span", { key: '
|
|
134
|
+
}, 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 => {
|
|
135
135
|
e.stopPropagation();
|
|
136
136
|
this.open = false;
|
|
137
137
|
this.start = e.detail.start;
|
|
@@ -182,7 +182,7 @@ export class SmoothlyInputDateRangeText {
|
|
|
182
182
|
}
|
|
183
183
|
}
|
|
184
184
|
render() {
|
|
185
|
-
return (h(Host, { key: '
|
|
185
|
+
return (h(Host, { key: '29343df478fdb9a5805aef00432be4456d8e4d12', class: { "has-text": Object.values(this.parts).some(part => !!part) } }, DateFormat.Order.toArray(this.order).map((part, index) => {
|
|
186
186
|
var _a;
|
|
187
187
|
return (h("span", { onClick: () => !this.readonly && !this.disabled && this.setFocus(index) }, h("span", { class: {
|
|
188
188
|
"smoothly-date-text-part": true,
|
|
@@ -97,30 +97,30 @@ export class SmoothlyInputDateTime {
|
|
|
97
97
|
this.isDifferentFromInitial = false;
|
|
98
98
|
}
|
|
99
99
|
render() {
|
|
100
|
-
return (h(Host, { key: '
|
|
100
|
+
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) => {
|
|
101
101
|
e.stopPropagation();
|
|
102
102
|
this.date = e.detail.date;
|
|
103
103
|
}, onSmoothlyUserInput: async (e) => {
|
|
104
104
|
e.stopPropagation();
|
|
105
105
|
this.smoothlyUserInput.emit({ name: this.name, value: await this.getValue() });
|
|
106
|
-
} }, h("slot", { key: '
|
|
106
|
+
} }, 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) => {
|
|
107
107
|
e.stopPropagation();
|
|
108
108
|
this.hour = e.detail.hour;
|
|
109
109
|
}, onSmoothlyUserInput: async (e) => {
|
|
110
110
|
e.stopPropagation();
|
|
111
111
|
this.smoothlyUserInput.emit({ name: this.name, value: await this.getValue() });
|
|
112
|
-
} }), h("span", { key: '
|
|
112
|
+
} }), 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) => {
|
|
113
113
|
e.stopPropagation();
|
|
114
114
|
this.minute = e.detail.minute;
|
|
115
115
|
}, onSmoothlyUserInput: async (e) => {
|
|
116
116
|
e.stopPropagation();
|
|
117
117
|
this.smoothlyUserInput.emit({ name: this.name, value: await this.getValue() });
|
|
118
|
-
} }), h("span", { key: '
|
|
118
|
+
} }), 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) => {
|
|
119
119
|
e.stopPropagation();
|
|
120
120
|
this.date = e.detail;
|
|
121
121
|
this.smoothlyUserInput.emit({ name: this.name, value: await this.getValue() });
|
|
122
122
|
this.open = false;
|
|
123
|
-
} }, h("div", { key: '
|
|
123
|
+
} }, 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" }))))));
|
|
124
124
|
}
|
|
125
125
|
static get is() { return "smoothly-input-date-time"; }
|
|
126
126
|
static get encapsulation() { return "scoped"; }
|
|
@@ -5,7 +5,7 @@ export class SmoothlyInputDateDemo {
|
|
|
5
5
|
this.alwaysShowGuide = false;
|
|
6
6
|
}
|
|
7
7
|
render() {
|
|
8
|
-
return (h(Host, { key: '
|
|
8
|
+
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 => {
|
|
9
9
|
this.alwaysShowGuide = e.detail.value;
|
|
10
10
|
console.log(this.alwaysShowGuide);
|
|
11
11
|
} }, "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" })))))));
|
|
@@ -7,14 +7,14 @@ export class SmoothlyInputDemo {
|
|
|
7
7
|
this.numbers = [1, 2, 3, 4, 5, 6, 7, 8, 9];
|
|
8
8
|
}
|
|
9
9
|
render() {
|
|
10
|
-
return (h(Host, { key: '
|
|
10
|
+
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: {
|
|
11
11
|
"--smoothly-input-border-radius": "0.5rem",
|
|
12
|
-
} }, h("smoothly-input-clear", { key: '
|
|
12
|
+
} }, 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 })
|
|
13
13
|
.map((_, i) => String.fromCharCode(i + 65))
|
|
14
|
-
.map(char => (h("smoothly-item", { value: char, selected: char == "H" }, char)))), h("smoothly-input-select", { key: '
|
|
14
|
+
.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 => {
|
|
15
15
|
const duration = e.detail.duration;
|
|
16
16
|
this.duration = duration;
|
|
17
|
-
} }, "Duration"), h("h2", { key: '
|
|
17
|
+
} }, "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' }))));
|
|
18
18
|
}
|
|
19
19
|
static get is() { return "smoothly-input-demo"; }
|
|
20
20
|
static get encapsulation() { return "scoped"; }
|
|
@@ -6,7 +6,7 @@ export class SmoothlyInputPriceDemo {
|
|
|
6
6
|
this.currency = "USD";
|
|
7
7
|
}
|
|
8
8
|
render() {
|
|
9
|
-
return (h(Host, { key: '
|
|
9
|
+
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")));
|
|
10
10
|
}
|
|
11
11
|
static get is() { return "smoothly-input-price-demo"; }
|
|
12
12
|
static get encapsulation() { return "scoped"; }
|
|
@@ -4,7 +4,7 @@ export class SmoothlyInputDemoRadio {
|
|
|
4
4
|
console.log("selected", this.selected);
|
|
5
5
|
}
|
|
6
6
|
render() {
|
|
7
|
-
return (h(Host, { key: '
|
|
7
|
+
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")))))));
|
|
8
8
|
}
|
|
9
9
|
static get is() { return "smoothly-input-demo-radio"; }
|
|
10
10
|
static get encapsulation() { return "scoped"; }
|
|
@@ -20,7 +20,7 @@ export class SmoothlyInputDemoStandard {
|
|
|
20
20
|
});
|
|
21
21
|
}
|
|
22
22
|
render() {
|
|
23
|
-
return (h(Host, { key: '
|
|
23
|
+
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" }))));
|
|
24
24
|
}
|
|
25
25
|
static get is() { return "smoothly-input-demo-standard"; }
|
|
26
26
|
static get encapsulation() { return "scoped"; }
|
|
@@ -10,11 +10,11 @@ export class SmoothlyInputDemoUserInput {
|
|
|
10
10
|
}
|
|
11
11
|
render() {
|
|
12
12
|
var _a, _b;
|
|
13
|
-
return (h(Host, { key: '
|
|
13
|
+
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
|
|
14
14
|
? isoly.DateTime.nextDay(this.datetimeValue)
|
|
15
|
-
: isoly.DateTime.now()) }, "Next date time"), h("smoothly-input-date-time", { key: '
|
|
15
|
+
: 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
|
|
16
16
|
? { start: isoly.Date.next(this.dateRangeValue.start), end: isoly.Date.next(this.dateRangeValue.end) }
|
|
17
|
-
: { start: isoly.Date.now(), end: isoly.Date.next(isoly.Date.now(), 10) }) }, "Next date range"), h("smoothly-input-date-range", { key: '
|
|
17
|
+
: { 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")));
|
|
18
18
|
}
|
|
19
19
|
static get is() { return "smoothly-input-demo-user-input"; }
|
|
20
20
|
static get encapsulation() { return "scoped"; }
|
|
@@ -24,7 +24,7 @@ export class SmoothlyInputEdit {
|
|
|
24
24
|
}
|
|
25
25
|
render() {
|
|
26
26
|
var _a;
|
|
27
|
-
return (h(Host, { key: '
|
|
27
|
+
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" }))));
|
|
28
28
|
}
|
|
29
29
|
static get is() { return "smoothly-input-edit"; }
|
|
30
30
|
static get encapsulation() { return "scoped"; }
|
|
@@ -104,7 +104,7 @@ export class SmoothlyInputFile {
|
|
|
104
104
|
}
|
|
105
105
|
render() {
|
|
106
106
|
var _a, _b, _c;
|
|
107
|
-
return (h(Host, { key: '
|
|
107
|
+
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" }))));
|
|
108
108
|
}
|
|
109
109
|
static get is() { return "smoothly-input-file"; }
|
|
110
110
|
static get encapsulation() { return "scoped"; }
|
|
@@ -134,7 +134,7 @@ export class SmoothlyInput {
|
|
|
134
134
|
}
|
|
135
135
|
render() {
|
|
136
136
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
137
|
-
return (h(Host, { key: '
|
|
137
|
+
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) => {
|
|
138
138
|
this.state = this.stateHandler.onKeyDown(event, this.state);
|
|
139
139
|
if (!this.readonly && !this.disabled) {
|
|
140
140
|
this.smoothlyKeydown.emit(Key.create(this.name, event));
|
|
@@ -150,7 +150,7 @@ export class SmoothlyInput {
|
|
|
150
150
|
this.smoothlyUserInput.emit({ name: this.name, value: this.stateHandler.getValue(this.state) });
|
|
151
151
|
}
|
|
152
152
|
}
|
|
153
|
-
} }), h("label", { key: '
|
|
153
|
+
} }), 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" })));
|
|
154
154
|
}
|
|
155
155
|
static get is() { return "smoothly-input"; }
|
|
156
156
|
static get encapsulation() { return "scoped"; }
|
|
@@ -107,21 +107,21 @@ export class SmoothlyInputMonth {
|
|
|
107
107
|
}
|
|
108
108
|
render() {
|
|
109
109
|
var _a, _b;
|
|
110
|
-
return (h(Host, { key: '
|
|
110
|
+
return (h(Host, { key: '28204b265ebea6c0cbb757b8cc4a6a1e01e3b74c' }, h("smoothly-icon", { key: 'f4c14f7bf0825b0baede2c01ff097482ec9d75f5', name: "caret-back-outline", size: "tiny", color: this.color, fill: "default", class: {
|
|
111
111
|
disabled: this.readonly || !this.allowPreviousMonth,
|
|
112
|
-
}, onClick: () => this.allowPreviousMonth && this.adjustMonth(-1) }), h("smoothly-input-select", { key: '
|
|
112
|
+
}, 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 => {
|
|
113
113
|
const month = e.detail.value;
|
|
114
114
|
if (month && isoly.Date.is(month)) {
|
|
115
115
|
const value = isoly.Date.firstOfMonth(month);
|
|
116
116
|
this.smoothlyUserInput.emit({ name: this.name, value });
|
|
117
117
|
}
|
|
118
|
-
}, searchDisabled: true }, h("div", { key: '
|
|
118
|
+
}, searchDisabled: true }, h("div", { key: 'fe85ea22cbf1dda9cbae9ba96b2d6e45343c9a31', slot: "label" }, h("slot", { key: '1f0e5aef19949285791558528dac50ada4cb1f32', name: "year-label" })), generate.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 => {
|
|
119
119
|
const year = e.detail.value;
|
|
120
120
|
if (year && isoly.Date.is(year)) {
|
|
121
121
|
const value = isoly.Date.firstOfMonth(year);
|
|
122
122
|
this.smoothlyUserInput.emit({ name: this.name, value });
|
|
123
123
|
}
|
|
124
|
-
}, searchDisabled: true }, h("div", { key: '
|
|
124
|
+
}, searchDisabled: true }, h("div", { key: 'd4d00cd1968bf5766fee52de789f9fe983730210', slot: "label" }, h("slot", { key: '1b0a796b6cb66e6c549cd6eaef2f281ef519816a', name: "month-label" })), generate.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) })));
|
|
125
125
|
}
|
|
126
126
|
static get is() { return "smoothly-input-month"; }
|
|
127
127
|
static get encapsulation() { return "scoped"; }
|
|
@@ -24,7 +24,7 @@ export class SmoothlyInputRadioItem {
|
|
|
24
24
|
});
|
|
25
25
|
}
|
|
26
26
|
render() {
|
|
27
|
-
return (h(Host, { key: '
|
|
27
|
+
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" })));
|
|
28
28
|
}
|
|
29
29
|
static get is() { return "smoothly-input-radio-item"; }
|
|
30
30
|
static get encapsulation() { return "scoped"; }
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { h, Host } from "@stencil/core";
|
|
2
2
|
export class SmoothlyInputRangeDemo {
|
|
3
3
|
render() {
|
|
4
|
-
return (h(Host, { key: '
|
|
4
|
+
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" }))));
|
|
5
5
|
}
|
|
6
6
|
static get is() { return "smoothly-input-range-demo"; }
|
|
7
7
|
}
|