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
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{p as e,H as a,c as d,h as c,t}from"./p-BsZrGTcp.js";import{i as o}from"./p-BVKhAhsB.js";import{C as s}from"./p-CkXes5c-.js";import{N as i}from"./p-C6lWCoIT.js";import"./p-DoFURPl2.js";import{d as f}from"./p-BHEtq3Ue.js";import{d as y}from"./p-DM5CKilY.js";import{d as b}from"./p-BuKk-s9A.js";import{d as l}from"./p-CR3Ni_o7.js";import{d as n}from"./p-B-l1S16Z.js";import{d as r}from"./p-Ud7Qhkgt.js";import{d as m}from"./p-C3FORjes.js";import{d as p}from"./p-BiQsRsV4.js";import{d as h}from"./p-D4fagxgG.js";import{d as u}from"./p-BEQ2yAjW.js";import{d as k}from"./p-0vl7fnbi.js";const v=e(class e extends a{constructor(e){super();if(e!==false){this.__registerHost()}this.notice=d(this,"notice")}noticeWarning(e){console.log("emit",e);this.notice.emit(e)}render(){return[c("main",{key:"f0027441bfef78c171ba61092be17b58234f9441"},c("fieldset",{key:"d6d0987729d19296ae9bca9108b51b02d4cffe12"},c("h2",{key:"8bf8fb79a2962ee6f57199fbca073d3d6108bfaf"},"Smoothly display"),c("dl",{key:"a611e082683866edf1aed27253cc139cdfae914d"},c("dt",{key:"57ab7bbd1eb80eafbac37682b663cb14fbc0afc8"},"Duration"),c("dd",{key:"0ff01664956d694165bfb366cad10146ba748f92"},c("div",{key:"aa1e91e3c22cb273d96ae15597b31c6ce6d826f3"},c("div",{key:"4a51be0b383303cffad2bf958865e943a86eb35c"},c("smoothly-display",{key:"a69cc7be176c850fad91eb13feec5ad81f867e81",style:{display:"inline"},type:"duration",value:{hours:13,minutes:100}})," h"),c("div",{key:"49df16cc21484f0b58025cc55fdcb4f4316db50f"},c("smoothly-display",{key:"865bf3acaced59068f8dea2c22c76cd6906f3d14",style:{display:"inline"},type:"duration",value:{hours:8}})," h"),c("div",{key:"afcb613ed8ee92fc23d2adc1f4a8019840b137a4"},c("smoothly-display",{key:"21eeba322f8ed8b24160c7c4c2cf042c3d942762",style:{display:"inline"},type:"duration",value:{minutes:3}})," h"),c("div",{key:"9a08731fcf35e804463fba62e505fe23f7971b2d"},c("smoothly-display",{key:"39c432749ba1147433b0a4703030c872bfc17b15",style:{display:"inline"},type:"duration",value:{hours:-13,minutes:100}})," h"),c("div",{key:"e2fed37cd00090311d04917160996fb6c9d7c202"},c("smoothly-display",{key:"166fd0d523c1ff7000d21232b3511d46ff642104",style:{display:"inline"},type:"duration",value:{hours:-8}})," h"),c("div",{key:"f59fa2cf4af468c0efd8d282559458d3048bb54a"},c("smoothly-display",{key:"aa40b1c43f5cfe22dd0bc0e6101db78a92c53621",style:{display:"inline"},type:"duration",value:{}})," h"),c("div",{key:"7e15d974058f15a3c42ec1d12ada1673beb1d6b3"},c("smoothly-display",{key:"e2b4163ee526312211aeb628b90b8eedcbe7e6f0",style:{display:"inline"},type:"duration",value:{minutes:-3}})," h"))),c("dt",{key:"bc84f7802f65b61b07be817c9aaf94e3f61ae84d"},"text"),c("dd",{key:"57f8d7a74ceac39909d10cbe481b3971f2ecdeeb"},c("smoothly-display",{key:"642c8f1d612e0debcca8bd7b201bd365af96cfa9",type:"text",value:"text"})),c("dt",{key:"f935e44f241328df81553f11839f5c8ffbc10c9e"},"postal code"),c("dd",{key:"9e330664f885f7219842624d3f38bcb196477f01"},c("smoothly-display",{key:"d9b64e1a659e44ea742cd4eaaa957568fb1e0d34",type:"postal-code",value:"752 31"})),c("dt",{key:"5dbf58da2741a7c0b23fd504b2f98e136f494949"},"password"),c("dd",{key:"4b649f79b01043826cfb8daecc643fe252fab4a8"},c("smoothly-display",{key:"0a3981b795879dc97bfb89c0ba24956742ce239c",type:"password",value:"password"})),c("dt",{key:"65971d774fbdbae74ffc9fc96668ba012701ea71"},"email"),c("dd",{key:"fb22a5ca78f8b003de2dced241e5525fe42c5fde"},c("smoothly-display",{key:"2512acf71be746c2fcc2501451ce785bdbd01455",type:"email",value:"test@example.com"})),c("dt",{key:"b89f91cecf9c963edd07250bf2a065a3da64837b"},"price"),c("dd",{key:"6a2bf5ba95dcc27acc8629a4f3bd4ab8662a0365"},c("smoothly-display",{key:"e591993c95b899fa4aa976cfe3539e0e723e6ef3",type:"price",value:"13.37",currency:"SEK"})),c("dt",{key:"207e97191f04e431c5e511eb85fdbcf63572ffe8"},"price without decimals"),c("dd",{key:"a6420d4a9a8cf3d608e07999dfad03b6fccc43a9"},c("smoothly-display",{key:"b0e5761078c10a07616023a95b10765b86dd5a82",type:"price",value:200,currency:"SEK",toInteger:true})),c("dt",{key:"f3a1266f7e0610880115e0ba93f13cac57e8d038"},"price with decimals if they are set, otherwise no decimal"),c("dd",{key:"601c5f79148527505141bc3a1995b068998190b6"},c("smoothly-display",{key:"349b706f45c15353a5247608d9b5eddd5d514fb3",type:"price",value:200.2,currency:"SEK",toInteger:true})),c("dt",{key:"46331fe9a8124257ee9d5e9713b713831e1f615f"},"price with decimals"),c("dd",{key:"317c8ca991740a994b59830c94e8393bc01d3f07"},c("smoothly-display",{key:"5ec0d759372c9fb36fd2149aae7953600cc67726",type:"price",value:200.2,currency:"SEK"})),c("dt",{key:"60a3e8e4672dcd6050d79937f297404e6e84a04a"},"percent"),c("dd",{key:"572df0ef47bb43bef3f15695ce774e3a205e27f5"},c("smoothly-display",{key:"b740dabdd447e609096a9587e70d04ae069f6ef6",type:"percent",value:"42"})),c("dt",{key:"9af3e07c435f10b3159d9fb313237129246669a4"},"phone"),c("dd",{key:"31d3728c41a9cfad3440d4c5498f129b7be62b3e"},c("smoothly-display",{key:"76bda1d9a032c2df5d10850ed34ec96c94524238",type:"phone",value:"0101881108"})),c("dt",{key:"339edc1575a020d74fe03f3dcd428352d905591f"},"card number"),c("dd",{key:"ef75e57c991ca5a1f886e2f6716d3475d6023e42"},c("smoothly-display",{key:"1e694d62f751eb4c566b54ced5094030249eeebd",type:"card-number",value:"4111111111111111"})),c("dt",{key:"c8cd5d87ac6ab7e778449f6e8528c3aeab576438"},"card expires"),c("dd",{key:"af791cca99d6ea340884d8becdb78c4e11a6a40b"},c("smoothly-display",{key:"5e2c05c3f80af6f427c6bd4842d72db8c5dab3e9",type:"card-expires",value:"7/22"})),c("dt",{key:"6a9433b4e2048cd4de63a47c772ee6418d3acf21"},"card csc"),c("dd",{key:"d7e5f17ce69a12146a8ad54c981e59f5f69ae4da"},c("smoothly-display",{key:"24a9c38b6c032aa554974376e13cb2b8ec0b84d0",type:"card-csc",value:"987"})),c("dt",{key:"48f5cac78c36bb5136f51ba66a6d0f07fb1a895f"},"date"),c("dd",{key:"f5de472e757607197287bb40299df53029677995"},c("smoothly-display",{key:"3c3f43d0b929ab99bf66b7e6d2652480272e199b",type:"date",value:"2022-07-07"})),c("dt",{key:"cc7cdb8e399598175e0772b23a7f7426eb6eb9dc"},"date time"),c("dd",{key:"9ece32e9caa673525dcf71b86cd45b061d9827d9"},c("smoothly-display",{key:"8c34dc9335a1dcd809368d490e38b366e0cbad98",type:"date-time",format:{year:"numeric",month:"short",day:"numeric",hour:"numeric",minute:"numeric",second:"numeric"},value:"2022-07-07T02:02:02Z"})),c("dd",{key:"bffb607f7fff4cbd83976db7ebb4b6d047181749"},c("smoothly-display",{key:"9532c7fc763f670bc7efdf790bba83498224fa2b",type:"date-time",format:{year:"2-digit",month:"long",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit"},value:"2022-07-07T02:02:02Z"})),c("dd",{key:"e69696c5cacfd2eb127822b7372401baa4838c1f"},c("smoothly-display",{key:"24dd4186d2e39e2ec123f31155e7ec5e9d473237",type:"date-time",format:{year:"numeric",month:"2-digit",day:"2-digit",hour:"numeric",minute:"numeric",second:"numeric"},value:"2022-07-07T12:22:24Z"})),c("dd",{key:"57656dda4f48f82ea0b089be6613076de5c08613"},c("smoothly-display",{key:"f8dc33572b80480deb71b2333d4ccb28a4d4b556",type:"date-time",format:{year:"numeric",month:"numeric",day:"numeric",hour:"numeric",minute:"numeric",second:"numeric"},value:"2022-07-07T12:22:24Z"})),c("dd",{key:"8e06ce3ce8c92fc344b7d0152667ecd3de933ef0"},c("smoothly-display",{key:"dfe29b01b180372cb1bac5702e0ead534ad59ad5",type:"date-time",format:{year:"numeric",month:"short",day:"numeric"},value:"2022-07-07T00:00+02:00"})),c("dd",{key:"416f2e6fac955dc4a7a08b543186a5176b4359f2"},c("smoothly-display",{key:"42baa9b698ae41db2a96203f11439217b4dd0598",type:"date-time",format:{year:"2-digit",month:"numeric",day:"numeric"},value:"2022-07-07T00:00+02:00"})),c("dd",{key:"9fa5bf6bcc7f11f24c92ea73235fc2c8fd1a9fa5"},c("smoothly-display",{key:"9dc5fc24afb8952b6556c2f4405e47270f7d96c5",type:"date-time",format:{year:"2-digit",month:"numeric",day:"numeric",hour:"2-digit",minute:"2-digit",second:"2-digit",timeZone:"Europe/Stockholm"},value:"2022-07-07T12:15Z"})),c("dt",{key:"fa0fee5e4d57648ef7379fcab25b1c861df29572"},"Display JSON"),c("dd",{key:"24e8222807dd1a65b3d0b4d49e4e9b7f2f63ca45"},c("smoothly-display-demo-json",{key:"3bfc573006f805f99a9815efd69bdb4cae7da5b0"})))),c("h2",{key:"526bb69d7ad95db53610949dfdfb1a8335d0d734"},"With labels"),c("dd",{key:"42b3f4d34abb22ce98f7421c04076af3cf9592d7"},c("smoothly-display",{key:"bdfcb7554a39ed2f937ef2acc613f07e863b4460",label:"Today",type:"date",value:o.Date.now()}),c("smoothly-display",{key:"ca523fd7b87353ad81a0fd6747626e3313dcd803",label:"Total amount",type:"price",currency:"SEK",value:6789}),c("smoothly-display",{key:"f185521dbf646db7f2dbd0856d5b51c19cea0f7e",label:"Total amount",type:"price",currency:"GBP",value:678.9}),c("smoothly-display",{key:"2b11b984ee41bcfd8651422099dd0243dea5c1f9",label:"Logs",type:"json",value:[{type:"trace",message:"Hello"},{type:"error",message:"Oh no!"}]})),c("fieldset",{key:"ef8bc44b54f0a98227581bcade3330debc22729c"},c("h2",{key:"0dee7b56295ee035a7459a687e95bdcde727e1f7"},"Test of different kinds of notifier"),c("button",{key:"88076dc7ef7db955ba07bad008e3082c9c3177e4",onClick:()=>this.noticeWarning(i.warn("This is a test warning notice."))},"warning"),c("button",{key:"f07659e51be16b4019d2a4759e62ef7a1e526c32",onClick:()=>this.noticeWarning(i.succeeded("This is a test success notice."))},"success"),c("button",{key:"ba7ae24c1f495c0babea9c9c4a5219129d16b5a1",onClick:()=>this.noticeWarning(i.failed("This is a test danger notice."))},"danger"),c("button",{key:"6bec07e40f8cdf258d1ac09bac883570b6599e82",onClick:()=>this.noticeWarning(i.execute("This is a test execute notice.",(()=>new Promise((e=>window.setTimeout((()=>e([true,"This went great"])),3e3))))))},"execute"),c("button",{key:"30284847af0b9196965d40ef9a1e252fb9c6cb93",onClick:()=>this.noticeWarning(i.delay("This is a test delay notice.",(()=>new Promise((e=>window.setTimeout((()=>e([true,"This went great"])),3e3))))))},"delay")),c("fieldset",{key:"3d00362adfdf13d785a824e7a37151bea10f0991"},c("h2",{key:"ec4235bbe8d792aefe999743de12f8f1657e6789"},"Smoothly spinner"),c("div",{key:"041c2d303ad7de8e19695eaca34461b08af1f8ef",style:{width:"fit-content"}},"Large",c("smoothly-spinner",{key:"7899818b65ed91864b3a566a06c652be320779ee",size:"large",style:{"--spinner-background":"200,255,200","--spinner-background-opacity":"0.2","--spinner-color":"0,130,0"}})),c("div",{key:"d91ace8ab22931ac828734c330ec6bdffb7a1874",style:{width:"fit-content"}},"Medium",c("smoothly-spinner",{key:"e9c676eb8aeb5be8bbe3145fab86c5b8e5ce102d",size:"medium"})),c("div",{key:"4ddb83d57b7054a240391751efb43642f89af289",style:{width:"fit-content"}},"Small",c("smoothly-spinner",{key:"f81d12395407c33d35244069cb3f337c2fc68f7e",size:"small"})),c("div",{key:"442d309f4b04986e52cbeae4758377695fbdc3e4"},"Icon sized spinner on button",s.values.map((e=>c("smoothly-button",{size:"icon",color:e,shape:"rounded",onClick:()=>{this.downloadingSpinner=true;setTimeout((()=>this.downloadingSpinner=false),3e3)}},!this.downloadingSpinner&&c("smoothly-icon",{name:"download-outline"}),this.downloadingSpinner&&c("smoothly-spinner",{size:"icon",style:{"--spinner-background-opacity":"0"}}))))),c("h3",{key:"bc6fe08536d2b7245fecb987c84112377532ff5f"},"Spinner with overlay"),c("div",{key:"286d6fc3429a30743f362b89874b22db0c8f00d8",style:{position:"relative",height:"10em"}},"Large Overlay Spinner",c("smoothly-spinner",{key:"05f8103a25be0a00235dabfaf17b17dd059f110d",overlay:true,size:"large",style:{"--spinner-background":"255,200,255","--spinner-background-opacity":"0.5","--spinner-color":"0,130,0"}})),c("div",{key:"88dae76ba4f26b5ba5dab790d030efd2740a9c3a",style:{position:"relative",height:"10em"}},"Medium Overlay Spinner",c("smoothly-spinner",{key:"ea74d644a344b2347888a609a72b20ac5c8651df",overlay:true,color:"secondary",size:"medium"})),c("div",{key:"64d9ade2587010213832e33830c5eeca985c7480",style:{position:"relative",height:"10em"}},"Small Overlay Spinner",c("smoothly-spinner",{key:"494f01fde3c846454bfa32681895b2253db373a4",overlay:true,size:"small"}))),c("fieldset",{key:"6629bd3d32263860e046c756bd0f392c51f25be0"},c("h2",{key:"33d110238af08bfc80a06d55b93cc128cc3a4d50"},"Smoothly summary"),c("smoothly-summary",{key:"5439e9671227547e17576d921bd4d193184310ae"},c("span",{key:"5aa376de959eac730f1731a9d1abaa7c9b2906e2",slot:"summary"},"Some title"),c("smoothly-summary",{key:"0f3c9220d9317c54c53037b25b92374ee64b8b3b",slot:"content"},c("div",{key:"aa1dc04d09749f3c125eac38fdd59b15f990871e",slot:"summary"},"Some other title"),c("div",{key:"327cbe85e798cbd7b5a6a96acb0d62db4486b6e2",slot:"content"},"A lot more content, yes please. A lot more content, yes please. A lot more content, yes please. A lot more content, yes please. A lot more content, yes please.A lot more content, yes please. A lot more content, yes please. A lot more content, yes please. A lot more content, yes please."))),c("smoothly-summary",{key:"34df179fe11e57724c204fc7faa92b6dd3d2c312"},c("div",{key:"bc7f0348eba69ce4b5ec090c3132152829cd2bdb",slot:"summary",style:{display:"flex",gap:"0.3rem"}},c("span",{key:"e46943da2844edc16d8c93e99f2a421668af34cf"},"Person"),c("smoothly-icon",{key:"b677ed1036743b2994003c0b4d8573124fa30407",name:"person",color:"light",fill:"clear",size:"tiny"})),c("p",{key:"8a22ac8f00f37ce9b4d90978d329daef975a2856",slot:"content"},"Some person information.")),c("h2",{key:"52120c774608c56017e1b8479631be4019449516"},"Label"),g.map((e=>c("smoothly-label",{hue:e.hue,description:e.description,shape:"rectangle"},e.name))),c("smoothly-label",{key:"16fba37231ff5ef8859a05e1d7b138ce27ba2769",color:"primary",description:"Using colors",shape:"rectangle"},"Primary")))]}},[0,"smoothly-display-demo",{downloadingSpinner:[32]}]);const g=[{name:"2fa",hue:120,description:"User has two factor authentication enabled."},{name:"expired",hue:240,description:"User's password has expired."},{name:"inactive",hue:60,description:"User is inactive."}];function j(){if(typeof customElements==="undefined"){return}const e=["smoothly-display-demo","smoothly-button","smoothly-display","smoothly-display-demo-json","smoothly-display-json","smoothly-display-json-object","smoothly-display-json-primitive","smoothly-display-json-record-key","smoothly-icon","smoothly-label","smoothly-spinner","smoothly-summary"];e.forEach((e=>{switch(e){case"smoothly-display-demo":if(!customElements.get(t(e))){customElements.define(t(e),v)}break;case"smoothly-button":if(!customElements.get(t(e))){f()}break;case"smoothly-display":if(!customElements.get(t(e))){y()}break;case"smoothly-display-demo-json":if(!customElements.get(t(e))){b()}break;case"smoothly-display-json":if(!customElements.get(t(e))){l()}break;case"smoothly-display-json-object":if(!customElements.get(t(e))){n()}break;case"smoothly-display-json-primitive":if(!customElements.get(t(e))){r()}break;case"smoothly-display-json-record-key":if(!customElements.get(t(e))){m()}break;case"smoothly-icon":if(!customElements.get(t(e))){p()}break;case"smoothly-label":if(!customElements.get(t(e))){h()}break;case"smoothly-spinner":if(!customElements.get(t(e))){u()}break;case"smoothly-summary":if(!customElements.get(t(e))){k()}break}}))}j();export{v as S,j as d};
|
|
2
|
-
//# sourceMappingURL=p-
|
|
1
|
+
import{p as e,H as a,c as d,h as c,t}from"./p-BsZrGTcp.js";import{i as o}from"./p-BVKhAhsB.js";import{C as s}from"./p-CkXes5c-.js";import{N as i}from"./p-C6lWCoIT.js";import"./p-DoFURPl2.js";import{d as f}from"./p-BHEtq3Ue.js";import{d as y}from"./p-DM5CKilY.js";import{d as b}from"./p-BuKk-s9A.js";import{d as l}from"./p-CR3Ni_o7.js";import{d as n}from"./p-B-l1S16Z.js";import{d as r}from"./p-Ud7Qhkgt.js";import{d as m}from"./p-C3FORjes.js";import{d as p}from"./p-BiQsRsV4.js";import{d as h}from"./p-DkhX1qsg.js";import{d as u}from"./p-Bpc6uh0M.js";import{d as k}from"./p-CUdZx76u.js";const v=e(class e extends a{constructor(e){super();if(e!==false){this.__registerHost()}this.notice=d(this,"notice")}noticeWarning(e){console.log("emit",e);this.notice.emit(e)}render(){return[c("main",{key:"f0027441bfef78c171ba61092be17b58234f9441"},c("fieldset",{key:"d6d0987729d19296ae9bca9108b51b02d4cffe12"},c("h2",{key:"8bf8fb79a2962ee6f57199fbca073d3d6108bfaf"},"Smoothly display"),c("dl",{key:"a611e082683866edf1aed27253cc139cdfae914d"},c("dt",{key:"57ab7bbd1eb80eafbac37682b663cb14fbc0afc8"},"Duration"),c("dd",{key:"0ff01664956d694165bfb366cad10146ba748f92"},c("div",{key:"aa1e91e3c22cb273d96ae15597b31c6ce6d826f3"},c("div",{key:"4a51be0b383303cffad2bf958865e943a86eb35c"},c("smoothly-display",{key:"a69cc7be176c850fad91eb13feec5ad81f867e81",style:{display:"inline"},type:"duration",value:{hours:13,minutes:100}})," h"),c("div",{key:"49df16cc21484f0b58025cc55fdcb4f4316db50f"},c("smoothly-display",{key:"865bf3acaced59068f8dea2c22c76cd6906f3d14",style:{display:"inline"},type:"duration",value:{hours:8}})," h"),c("div",{key:"afcb613ed8ee92fc23d2adc1f4a8019840b137a4"},c("smoothly-display",{key:"21eeba322f8ed8b24160c7c4c2cf042c3d942762",style:{display:"inline"},type:"duration",value:{minutes:3}})," h"),c("div",{key:"9a08731fcf35e804463fba62e505fe23f7971b2d"},c("smoothly-display",{key:"39c432749ba1147433b0a4703030c872bfc17b15",style:{display:"inline"},type:"duration",value:{hours:-13,minutes:100}})," h"),c("div",{key:"e2fed37cd00090311d04917160996fb6c9d7c202"},c("smoothly-display",{key:"166fd0d523c1ff7000d21232b3511d46ff642104",style:{display:"inline"},type:"duration",value:{hours:-8}})," h"),c("div",{key:"f59fa2cf4af468c0efd8d282559458d3048bb54a"},c("smoothly-display",{key:"aa40b1c43f5cfe22dd0bc0e6101db78a92c53621",style:{display:"inline"},type:"duration",value:{}})," h"),c("div",{key:"7e15d974058f15a3c42ec1d12ada1673beb1d6b3"},c("smoothly-display",{key:"e2b4163ee526312211aeb628b90b8eedcbe7e6f0",style:{display:"inline"},type:"duration",value:{minutes:-3}})," h"))),c("dt",{key:"bc84f7802f65b61b07be817c9aaf94e3f61ae84d"},"text"),c("dd",{key:"57f8d7a74ceac39909d10cbe481b3971f2ecdeeb"},c("smoothly-display",{key:"642c8f1d612e0debcca8bd7b201bd365af96cfa9",type:"text",value:"text"})),c("dt",{key:"f935e44f241328df81553f11839f5c8ffbc10c9e"},"postal code"),c("dd",{key:"9e330664f885f7219842624d3f38bcb196477f01"},c("smoothly-display",{key:"d9b64e1a659e44ea742cd4eaaa957568fb1e0d34",type:"postal-code",value:"752 31"})),c("dt",{key:"5dbf58da2741a7c0b23fd504b2f98e136f494949"},"password"),c("dd",{key:"4b649f79b01043826cfb8daecc643fe252fab4a8"},c("smoothly-display",{key:"0a3981b795879dc97bfb89c0ba24956742ce239c",type:"password",value:"password"})),c("dt",{key:"65971d774fbdbae74ffc9fc96668ba012701ea71"},"email"),c("dd",{key:"fb22a5ca78f8b003de2dced241e5525fe42c5fde"},c("smoothly-display",{key:"2512acf71be746c2fcc2501451ce785bdbd01455",type:"email",value:"test@example.com"})),c("dt",{key:"b89f91cecf9c963edd07250bf2a065a3da64837b"},"price"),c("dd",{key:"6a2bf5ba95dcc27acc8629a4f3bd4ab8662a0365"},c("smoothly-display",{key:"e591993c95b899fa4aa976cfe3539e0e723e6ef3",type:"price",value:"13.37",currency:"SEK"})),c("dt",{key:"207e97191f04e431c5e511eb85fdbcf63572ffe8"},"price without decimals"),c("dd",{key:"a6420d4a9a8cf3d608e07999dfad03b6fccc43a9"},c("smoothly-display",{key:"b0e5761078c10a07616023a95b10765b86dd5a82",type:"price",value:200,currency:"SEK",toInteger:true})),c("dt",{key:"f3a1266f7e0610880115e0ba93f13cac57e8d038"},"price with decimals if they are set, otherwise no decimal"),c("dd",{key:"601c5f79148527505141bc3a1995b068998190b6"},c("smoothly-display",{key:"349b706f45c15353a5247608d9b5eddd5d514fb3",type:"price",value:200.2,currency:"SEK",toInteger:true})),c("dt",{key:"46331fe9a8124257ee9d5e9713b713831e1f615f"},"price with decimals"),c("dd",{key:"317c8ca991740a994b59830c94e8393bc01d3f07"},c("smoothly-display",{key:"5ec0d759372c9fb36fd2149aae7953600cc67726",type:"price",value:200.2,currency:"SEK"})),c("dt",{key:"60a3e8e4672dcd6050d79937f297404e6e84a04a"},"percent"),c("dd",{key:"572df0ef47bb43bef3f15695ce774e3a205e27f5"},c("smoothly-display",{key:"b740dabdd447e609096a9587e70d04ae069f6ef6",type:"percent",value:"42"})),c("dt",{key:"9af3e07c435f10b3159d9fb313237129246669a4"},"phone"),c("dd",{key:"31d3728c41a9cfad3440d4c5498f129b7be62b3e"},c("smoothly-display",{key:"76bda1d9a032c2df5d10850ed34ec96c94524238",type:"phone",value:"0101881108"})),c("dt",{key:"339edc1575a020d74fe03f3dcd428352d905591f"},"card number"),c("dd",{key:"ef75e57c991ca5a1f886e2f6716d3475d6023e42"},c("smoothly-display",{key:"1e694d62f751eb4c566b54ced5094030249eeebd",type:"card-number",value:"4111111111111111"})),c("dt",{key:"c8cd5d87ac6ab7e778449f6e8528c3aeab576438"},"card expires"),c("dd",{key:"af791cca99d6ea340884d8becdb78c4e11a6a40b"},c("smoothly-display",{key:"5e2c05c3f80af6f427c6bd4842d72db8c5dab3e9",type:"card-expires",value:"7/22"})),c("dt",{key:"6a9433b4e2048cd4de63a47c772ee6418d3acf21"},"card csc"),c("dd",{key:"d7e5f17ce69a12146a8ad54c981e59f5f69ae4da"},c("smoothly-display",{key:"24a9c38b6c032aa554974376e13cb2b8ec0b84d0",type:"card-csc",value:"987"})),c("dt",{key:"48f5cac78c36bb5136f51ba66a6d0f07fb1a895f"},"date"),c("dd",{key:"f5de472e757607197287bb40299df53029677995"},c("smoothly-display",{key:"3c3f43d0b929ab99bf66b7e6d2652480272e199b",type:"date",value:"2022-07-07"})),c("dt",{key:"cc7cdb8e399598175e0772b23a7f7426eb6eb9dc"},"date time"),c("dd",{key:"9ece32e9caa673525dcf71b86cd45b061d9827d9"},c("smoothly-display",{key:"8c34dc9335a1dcd809368d490e38b366e0cbad98",type:"date-time",format:{year:"numeric",month:"short",day:"numeric",hour:"numeric",minute:"numeric",second:"numeric"},value:"2022-07-07T02:02:02Z"})),c("dd",{key:"bffb607f7fff4cbd83976db7ebb4b6d047181749"},c("smoothly-display",{key:"9532c7fc763f670bc7efdf790bba83498224fa2b",type:"date-time",format:{year:"2-digit",month:"long",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit"},value:"2022-07-07T02:02:02Z"})),c("dd",{key:"e69696c5cacfd2eb127822b7372401baa4838c1f"},c("smoothly-display",{key:"24dd4186d2e39e2ec123f31155e7ec5e9d473237",type:"date-time",format:{year:"numeric",month:"2-digit",day:"2-digit",hour:"numeric",minute:"numeric",second:"numeric"},value:"2022-07-07T12:22:24Z"})),c("dd",{key:"57656dda4f48f82ea0b089be6613076de5c08613"},c("smoothly-display",{key:"f8dc33572b80480deb71b2333d4ccb28a4d4b556",type:"date-time",format:{year:"numeric",month:"numeric",day:"numeric",hour:"numeric",minute:"numeric",second:"numeric"},value:"2022-07-07T12:22:24Z"})),c("dd",{key:"8e06ce3ce8c92fc344b7d0152667ecd3de933ef0"},c("smoothly-display",{key:"dfe29b01b180372cb1bac5702e0ead534ad59ad5",type:"date-time",format:{year:"numeric",month:"short",day:"numeric"},value:"2022-07-07T00:00+02:00"})),c("dd",{key:"416f2e6fac955dc4a7a08b543186a5176b4359f2"},c("smoothly-display",{key:"42baa9b698ae41db2a96203f11439217b4dd0598",type:"date-time",format:{year:"2-digit",month:"numeric",day:"numeric"},value:"2022-07-07T00:00+02:00"})),c("dd",{key:"9fa5bf6bcc7f11f24c92ea73235fc2c8fd1a9fa5"},c("smoothly-display",{key:"9dc5fc24afb8952b6556c2f4405e47270f7d96c5",type:"date-time",format:{year:"2-digit",month:"numeric",day:"numeric",hour:"2-digit",minute:"2-digit",second:"2-digit",timeZone:"Europe/Stockholm"},value:"2022-07-07T12:15Z"})),c("dt",{key:"fa0fee5e4d57648ef7379fcab25b1c861df29572"},"Display JSON"),c("dd",{key:"24e8222807dd1a65b3d0b4d49e4e9b7f2f63ca45"},c("smoothly-display-demo-json",{key:"3bfc573006f805f99a9815efd69bdb4cae7da5b0"})))),c("h2",{key:"526bb69d7ad95db53610949dfdfb1a8335d0d734"},"With labels"),c("dd",{key:"42b3f4d34abb22ce98f7421c04076af3cf9592d7"},c("smoothly-display",{key:"bdfcb7554a39ed2f937ef2acc613f07e863b4460",label:"Today",type:"date",value:o.Date.now()}),c("smoothly-display",{key:"ca523fd7b87353ad81a0fd6747626e3313dcd803",label:"Total amount",type:"price",currency:"SEK",value:6789}),c("smoothly-display",{key:"f185521dbf646db7f2dbd0856d5b51c19cea0f7e",label:"Total amount",type:"price",currency:"GBP",value:678.9}),c("smoothly-display",{key:"2b11b984ee41bcfd8651422099dd0243dea5c1f9",label:"Logs",type:"json",value:[{type:"trace",message:"Hello"},{type:"error",message:"Oh no!"}]})),c("fieldset",{key:"ef8bc44b54f0a98227581bcade3330debc22729c"},c("h2",{key:"0dee7b56295ee035a7459a687e95bdcde727e1f7"},"Test of different kinds of notifier"),c("button",{key:"88076dc7ef7db955ba07bad008e3082c9c3177e4",onClick:()=>this.noticeWarning(i.warn("This is a test warning notice."))},"warning"),c("button",{key:"f07659e51be16b4019d2a4759e62ef7a1e526c32",onClick:()=>this.noticeWarning(i.succeeded("This is a test success notice."))},"success"),c("button",{key:"ba7ae24c1f495c0babea9c9c4a5219129d16b5a1",onClick:()=>this.noticeWarning(i.failed("This is a test danger notice."))},"danger"),c("button",{key:"6bec07e40f8cdf258d1ac09bac883570b6599e82",onClick:()=>this.noticeWarning(i.execute("This is a test execute notice.",(()=>new Promise((e=>window.setTimeout((()=>e([true,"This went great"])),3e3))))))},"execute"),c("button",{key:"30284847af0b9196965d40ef9a1e252fb9c6cb93",onClick:()=>this.noticeWarning(i.delay("This is a test delay notice.",(()=>new Promise((e=>window.setTimeout((()=>e([true,"This went great"])),3e3))))))},"delay")),c("fieldset",{key:"3d00362adfdf13d785a824e7a37151bea10f0991"},c("h2",{key:"ec4235bbe8d792aefe999743de12f8f1657e6789"},"Smoothly spinner"),c("div",{key:"041c2d303ad7de8e19695eaca34461b08af1f8ef",style:{width:"fit-content"}},"Large",c("smoothly-spinner",{key:"7899818b65ed91864b3a566a06c652be320779ee",size:"large",style:{"--spinner-background":"200,255,200","--spinner-background-opacity":"0.2","--spinner-color":"0,130,0"}})),c("div",{key:"d91ace8ab22931ac828734c330ec6bdffb7a1874",style:{width:"fit-content"}},"Medium",c("smoothly-spinner",{key:"e9c676eb8aeb5be8bbe3145fab86c5b8e5ce102d",size:"medium"})),c("div",{key:"4ddb83d57b7054a240391751efb43642f89af289",style:{width:"fit-content"}},"Small",c("smoothly-spinner",{key:"f81d12395407c33d35244069cb3f337c2fc68f7e",size:"small"})),c("div",{key:"442d309f4b04986e52cbeae4758377695fbdc3e4"},"Icon sized spinner on button",s.values.map((e=>c("smoothly-button",{size:"icon",color:e,shape:"rounded",onClick:()=>{this.downloadingSpinner=true;setTimeout((()=>this.downloadingSpinner=false),3e3)}},!this.downloadingSpinner&&c("smoothly-icon",{name:"download-outline"}),this.downloadingSpinner&&c("smoothly-spinner",{size:"icon",style:{"--spinner-background-opacity":"0"}}))))),c("h3",{key:"bc6fe08536d2b7245fecb987c84112377532ff5f"},"Spinner with overlay"),c("div",{key:"286d6fc3429a30743f362b89874b22db0c8f00d8",style:{position:"relative",height:"10em"}},"Large Overlay Spinner",c("smoothly-spinner",{key:"05f8103a25be0a00235dabfaf17b17dd059f110d",overlay:true,size:"large",style:{"--spinner-background":"255,200,255","--spinner-background-opacity":"0.5","--spinner-color":"0,130,0"}})),c("div",{key:"88dae76ba4f26b5ba5dab790d030efd2740a9c3a",style:{position:"relative",height:"10em"}},"Medium Overlay Spinner",c("smoothly-spinner",{key:"ea74d644a344b2347888a609a72b20ac5c8651df",overlay:true,color:"secondary",size:"medium"})),c("div",{key:"64d9ade2587010213832e33830c5eeca985c7480",style:{position:"relative",height:"10em"}},"Small Overlay Spinner",c("smoothly-spinner",{key:"494f01fde3c846454bfa32681895b2253db373a4",overlay:true,size:"small"}))),c("fieldset",{key:"6629bd3d32263860e046c756bd0f392c51f25be0"},c("h2",{key:"33d110238af08bfc80a06d55b93cc128cc3a4d50"},"Smoothly summary"),c("smoothly-summary",{key:"5439e9671227547e17576d921bd4d193184310ae"},c("span",{key:"5aa376de959eac730f1731a9d1abaa7c9b2906e2",slot:"summary"},"Some title"),c("smoothly-summary",{key:"0f3c9220d9317c54c53037b25b92374ee64b8b3b",slot:"content"},c("div",{key:"aa1dc04d09749f3c125eac38fdd59b15f990871e",slot:"summary"},"Some other title"),c("div",{key:"327cbe85e798cbd7b5a6a96acb0d62db4486b6e2",slot:"content"},"A lot more content, yes please. A lot more content, yes please. A lot more content, yes please. A lot more content, yes please. A lot more content, yes please.A lot more content, yes please. A lot more content, yes please. A lot more content, yes please. A lot more content, yes please."))),c("smoothly-summary",{key:"34df179fe11e57724c204fc7faa92b6dd3d2c312"},c("div",{key:"bc7f0348eba69ce4b5ec090c3132152829cd2bdb",slot:"summary",style:{display:"flex",gap:"0.3rem"}},c("span",{key:"e46943da2844edc16d8c93e99f2a421668af34cf"},"Person"),c("smoothly-icon",{key:"b677ed1036743b2994003c0b4d8573124fa30407",name:"person",color:"light",fill:"clear",size:"tiny"})),c("p",{key:"8a22ac8f00f37ce9b4d90978d329daef975a2856",slot:"content"},"Some person information.")),c("h2",{key:"52120c774608c56017e1b8479631be4019449516"},"Label"),g.map((e=>c("smoothly-label",{hue:e.hue,description:e.description,shape:"rectangle"},e.name))),c("smoothly-label",{key:"16fba37231ff5ef8859a05e1d7b138ce27ba2769",color:"primary",description:"Using colors",shape:"rectangle"},"Primary")))]}},[0,"smoothly-display-demo",{downloadingSpinner:[32]}]);const g=[{name:"2fa",hue:120,description:"User has two factor authentication enabled."},{name:"expired",hue:240,description:"User's password has expired."},{name:"inactive",hue:60,description:"User is inactive."}];function j(){if(typeof customElements==="undefined"){return}const e=["smoothly-display-demo","smoothly-button","smoothly-display","smoothly-display-demo-json","smoothly-display-json","smoothly-display-json-object","smoothly-display-json-primitive","smoothly-display-json-record-key","smoothly-icon","smoothly-label","smoothly-spinner","smoothly-summary"];e.forEach((e=>{switch(e){case"smoothly-display-demo":if(!customElements.get(t(e))){customElements.define(t(e),v)}break;case"smoothly-button":if(!customElements.get(t(e))){f()}break;case"smoothly-display":if(!customElements.get(t(e))){y()}break;case"smoothly-display-demo-json":if(!customElements.get(t(e))){b()}break;case"smoothly-display-json":if(!customElements.get(t(e))){l()}break;case"smoothly-display-json-object":if(!customElements.get(t(e))){n()}break;case"smoothly-display-json-primitive":if(!customElements.get(t(e))){r()}break;case"smoothly-display-json-record-key":if(!customElements.get(t(e))){m()}break;case"smoothly-icon":if(!customElements.get(t(e))){p()}break;case"smoothly-label":if(!customElements.get(t(e))){h()}break;case"smoothly-spinner":if(!customElements.get(t(e))){u()}break;case"smoothly-summary":if(!customElements.get(t(e))){k()}break}}))}j();export{v as S,j as d};
|
|
2
|
+
//# sourceMappingURL=p-BGzrO9CQ.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{p as o,H as t,c as
|
|
2
|
-
//# sourceMappingURL=p-
|
|
1
|
+
import{p as o,H as t,c as e,h as r,d as l,t as s}from"./p-BsZrGTcp.js";const i=()=>`.sc-smoothly-table-row-group-h{grid-column:1/-1;display:grid;grid-template-columns:subgrid;margin-top:1px}.sc-smoothly-table-row-group-h>div.sc-smoothly-table-row-group:first-child{grid-column:1/-1;display:grid;position:relative;cursor:pointer;padding-inline:var(--smoothly-table-cell-padding-inline, 1.1rem);min-height:var(--smoothly-table-cell-min-height, 2.75rem);background-color:rgb(var(--smoothly-default-tint));border-bottom:1px solid rgb(var(--smoothly-default-shade));position:relative;padding-left:1.1rem}.sc-smoothly-table-row-group-h>div.sc-smoothly-table-row-group:first-child::before{content:"";display:flex;position:absolute;top:50%;translate:0 -50%;height:0.4rem;width:0.4rem;left:0.3rem;border-bottom:1px solid rgb(var(--smoothly-table-foreground));border-right:1px solid rgb(var(--smoothly-table-foreground));transition:rotate 200ms ease-in-out;rotate:-45deg;opacity:0.3}.sc-smoothly-table-row-group-h>div.sc-smoothly-table-row-group:first-child:hover::before{border-bottom:1px solid rgb(var(--smoothly-table-hover-foreground));border-right:1px solid rgb(var(--smoothly-table-hover-foreground));opacity:1}.sc-smoothly-table-row-group-h>div.sc-smoothly-table-row-group:first-child:hover{color:rgb(var(--smoothly-table-hover-foreground));background-color:rgb(var(--smoothly-table-hover-background))}[open].sc-smoothly-table-row-group-h>div.sc-smoothly-table-row-group:first-child::before{rotate:45deg}.sc-smoothly-table-row-group-h>div.sc-smoothly-table-row-group:last-child{grid-column:1/-1;display:grid;grid-template-columns:subgrid}[align].sc-smoothly-table-row-group-h>div.sc-smoothly-table-row-group:first-child{grid-template-columns:subgrid}[align].sc-smoothly-table-row-group-h>div.sc-smoothly-table-row-group:first-child>div.sc-smoothly-table-row-group{display:contents}[align].sc-smoothly-table-row-group-h>div.sc-smoothly-table-row-group:first-child>div.sc-smoothly-table-row-group>*.sc-smoothly-table-row-group{display:flex;align-items:center;padding-inline:var(--smoothly-table-cell-padding-inline, 1.1rem);min-height:var(--smoothly-table-cell-min-height, 2.75rem)}.sc-smoothly-table-row-group-h:not([align])>div.sc-smoothly-table-row-group:first-child{grid-column:1/-1;display:grid;align-items:center;grid-template-columns:repeat(2, auto);justify-content:space-between}.sc-smoothly-table-row-group-h:not([align])>div.sc-smoothly-table-row-group:first-child>div.sc-smoothly-table-row-group:first-child{justify-self:start;display:flex;gap:1rem}.sc-smoothly-table-row-group-h:not([align])>div.sc-smoothly-table-row-group:first-child>div.sc-smoothly-table-row-group:last-child{justify-self:end;display:flex;gap:1rem}.sc-smoothly-table-row-group-h:not([open]){grid-template-rows:auto 0fr}.sc-smoothly-table-row-group-h:not([open])>div.sc-smoothly-table-row-group:last-child{grid-row:2;overflow:hidden}`;const a=o(class o extends t{constructor(o){super();if(o!==false){this.__registerHost()}this.smoothlyTableRowGroupChange=e(this,"smoothlyTableRowGroupChange");this.align=false;this.open=false}clickHandler(){var o,t;const e=(o=window.getSelection())===null||o===void 0?void 0:o.toString().trim();if(((t=e===null||e===void 0?void 0:e.length)!==null&&t!==void 0?t:0)==0){this.open=!this.open;this.smoothlyTableRowGroupChange.emit(this.open)}}render(){return r(l,{key:"8407e47bd79c00425a93bbf78bfaa234417e6730"},r("div",{key:"80a4d3121142f72cecf08afee5083fc3f00e8772",onClick:()=>this.clickHandler()},r("div",{key:"ae02eb813ffb3951e41363c41b89e16f8cf93199"},r("slot",{key:"5020efcd50f6b9349c05c93c90c7b0499ebaa5f6",name:"start"})),r("div",{key:"081546adcccc771440f2f5e681dfc15712579fb3"},r("slot",{key:"d05a5dff9ba8473a329e3cb00bedc0732cbed6f9",name:"end"}))),r("div",{key:"26e75848ce1b7f8c889fb7376f5c65c9a1f95ef8"},r("slot",{key:"0d1687ebc94faafddea6b096c26ce5fdd408ff7f"})))}static get style(){return i()}},[262,"smoothly-table-row-group",{align:[516],open:[1540]}]);function d(){if(typeof customElements==="undefined"){return}const o=["smoothly-table-row-group"];o.forEach((o=>{switch(o){case"smoothly-table-row-group":if(!customElements.get(s(o))){customElements.define(s(o),a)}break}}))}d();export{a as S,d};
|
|
2
|
+
//# sourceMappingURL=p-BHcHgI_e.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{p as o,H as s,c as a,h as l,d,t}from"./p-BsZrGTcp.js";import{d
|
|
2
|
-
//# sourceMappingURL=p-
|
|
1
|
+
import{p as o,H as s,c as a,h as l,d as e,t}from"./p-BsZrGTcp.js";import{d}from"./p-BiQsRsV4.js";const m=()=>`.sc-smoothly-modal-h{position:fixed;display:flex;justify-content:center;top:0;left:0;width:100%;height:100%;background-color:rgba(var(--smoothly-modal-backdrop));color:rgb(var(--smoothly-modal-foreground));z-index:20}.sc-smoothly-modal-h:not([open]),[hidden].sc-smoothly-modal-h{display:none}[align=center].sc-smoothly-modal-h{align-items:center}[align=top].sc-smoothly-modal-h>div.modal.sc-smoothly-modal{margin-top:calc((100dvh - var(--smoothly-modal-max-height)) / 2)}.sc-smoothly-modal-h>div.modal.sc-smoothly-modal{display:flex;flex-direction:column;padding:2rem;gap:1.5rem;width:var(--smoothly-modal-width, 40rem);max-width:calc(100dvw - 1rem);height:fit-content;max-height:min(var(--smoothly-modal-max-height), 100dvh);background:rgb(var(--smoothly-modal-background, var(--smoothly-color)));border:1px solid rgb(var(--smoothly-modal-border));border-radius:var(--smoothly-modal-border-radius);box-shadow:var(--smoothly-modal-shadow);box-sizing:border-box}.sc-smoothly-modal-h>div.modal.sc-smoothly-modal>div.header.sc-smoothly-modal:empty,.sc-smoothly-modal-h>div.modal.sc-smoothly-modal>div.actions.sc-smoothly-modal:empty{display:none}.sc-smoothly-modal-h>div.modal.sc-smoothly-modal>div.header.sc-smoothly-modal{display:flex;justify-content:space-between;align-items:center}.sc-smoothly-modal-h>div.modal.sc-smoothly-modal>*.sc-smoothly-modal,.sc-smoothly-modal-h>div.modal.sc-smoothly-modal>div.header.sc-smoothly-modal>*.sc-smoothly-modal{margin-block:0}.sc-smoothly-modal-h>div.modal.sc-smoothly-modal>*.sc-smoothly-modal:not(.header):not(.actions){overflow-y:auto}.sc-smoothly-modal-h>div.modal>div.header:not(:has([slot="header"])){justify-content:end}.sc-smoothly-modal-h>div.modal.sc-smoothly-modal>div.header.sc-smoothly-modal>smoothly-icon.sc-smoothly-modal:not([slot="header"]){cursor:pointer;opacity:0.7;color:rgb(var(--smoothly-default-contrast))}.sc-smoothly-modal-h>div.modal.sc-smoothly-modal>div.header.sc-smoothly-modal>smoothly-icon.sc-smoothly-modal:not([slot="header"]):hover{opacity:1}.sc-smoothly-modal-h>div.modal.sc-smoothly-modal>div.actions.sc-smoothly-modal{display:flex;justify-content:center;align-items:center;gap:1rem;flex-wrap:wrap}`;const h=o(class o extends s{constructor(o){super();if(o!==false){this.__registerHost()}this.smoothlyModalChange=a(this,"smoothlyModalChange");this.open=false;this.closable=false;this.align="center"}openChanged(){this.smoothlyModalChange.emit(this.open)}async closeModal(){this.open=false}async openModal(){this.open=true}render(){return l(e,{key:"12ffaa744cfce7d329f9e335be7b63827eb40644",role:"alertdialog",onClick:o=>{this.closable&&!o.composedPath().some((o=>{var s;return(s=o.classList)===null||s===void 0?void 0:s.contains("modal")}))&&this.closeModal()}},l("div",{key:"264ba4a63559188eb2fdc52d0b15014ff8991622",class:"modal"},l("div",{key:"c99296b4e6b05e4669ffb56b4ae93bf815e2e449",class:"header"},l("slot",{key:"cf25306f526a89e8daea125faaecb33d72fa9e4d",name:"header"}),this.closable&&l("smoothly-icon",{key:"d676f4f20a6ee187295a7f7ebc573e3a06a98ed6",name:"close-outline",fill:"solid",onClick:()=>this.closeModal()})),l("slot",{key:"22955703aec9be9e882bb77cfd0fd327f2436903"}),l("div",{key:"d8dd03aa8538e9cb373282aab2f55a6793e76c83",class:"actions"},l("slot",{key:"45b9e1bf4300ea44dbf13b50839ca9689576121e",name:"actions"}))))}static get watchers(){return{open:[{openChanged:0}]}}static get style(){return m()}},[262,"smoothly-modal",{open:[1540],closable:[516],align:[513],closeModal:[64],openModal:[64]},undefined,{open:[{openChanged:0}]}]);function c(){if(typeof customElements==="undefined"){return}const o=["smoothly-modal","smoothly-icon"];o.forEach((o=>{switch(o){case"smoothly-modal":if(!customElements.get(t(o))){customElements.define(t(o),h)}break;case"smoothly-icon":if(!customElements.get(t(o))){d()}break}}))}c();export{h as S,c as d};
|
|
2
|
+
//# sourceMappingURL=p-BHsrC9Oh.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{p as t,H as o,c as s,h as i,d as e,t as l}from"./p-BsZrGTcp.js";import{E as n}from"./p-DFXJvHuL.js";import{I as a}from"./p-BpBeeNcM.js";import{d as h}from"./p-BHEtq3Ue.js";import{d as r}from"./p-BiQsRsV4.js";const d=()=>`.sc-smoothly-input-file-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-file-h{border:rgb(var(--smoothly-input-border)) solid 1px}[looks="border"].sc-smoothly-input-file-h:not([readonly]):not([disabled]):focus-within{outline:2px solid rgb(var(--smoothly-input-border-focus))}[looks="border"][readonly].sc-smoothly-input-file-h{border:transparent solid 1px}[looks="line"].sc-smoothly-input-file-h{border-bottom:rgb(var(--smoothly-input-border)) solid 1px;position:relative}[looks="line"][readonly].sc-smoothly-input-file-h{border-bottom:transparent solid 1px}[looks="line"].sc-smoothly-input-file-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-file-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-file-h{box-shadow:0px 0px 0px 1px rgba(var(--smoothly-input-border-readonly))}[looks="grid"].sc-smoothly-input-file-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-file-h{border:none}[looks="transparent"][readonly].sc-smoothly-input-file-h,[looks="transparent"].sc-smoothly-input-file-h:not(:focus-within){background-color:transparent}[looks="transparent"][readonly].sc-smoothly-input-file-h>input.sc-smoothly-input-file,[looks="transparent"].sc-smoothly-input-file-h:not(:focus-within)>input.sc-smoothly-input-file{background-color:transparent}[looks="transparent"].sc-smoothly-input-file-h:not([readonly]):focus-within{outline:1px solid rgb(var(--smoothly-input-border))}[disabled].sc-smoothly-input-file-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-file-h.sc-smoothly-input-file-s>[slot=label],.sc-smoothly-input-file-h .sc-smoothly-input-file-s>[slot=label],.sc-smoothly-input-file-h .label.sc-smoothly-input-file{position:absolute;top:.6rem;opacity:0.8;user-select:none;cursor:inherit;transform-origin:top left;transition:transform 100ms ease}.sc-smoothly-input-file-h.floating-label.sc-smoothly-input-file-s>[slot=label],.sc-smoothly-input-file-h.floating-label .sc-smoothly-input-file-s>[slot=label],.sc-smoothly-input-file-h.has-value.sc-smoothly-input-file-s>[slot=label],.sc-smoothly-input-file-h.has-value .sc-smoothly-input-file-s>[slot=label],.sc-smoothly-input-file-h[placeholder].sc-smoothly-input-file-s>[slot=label],.sc-smoothly-input-file-h[placeholder] .sc-smoothly-input-file-s>[slot=label],.sc-smoothly-input-file-h[readonly].sc-smoothly-input-file-s>[slot=label],.sc-smoothly-input-file-h[readonly] .sc-smoothly-input-file-s>[slot=label],.floating-label.sc-smoothly-input-file-h .label.sc-smoothly-input-file,.has-value.sc-smoothly-input-file-h .label.sc-smoothly-input-file,.has-text.sc-smoothly-input-file-h .label.sc-smoothly-input-file,[placeholder].sc-smoothly-input-file-h .label.sc-smoothly-input-file,[readonly].sc-smoothly-input-file-h .label.sc-smoothly-input-file,.sc-smoothly-input-file-h:not([readonly]):focus-within .label.float-on-focus.sc-smoothly-input-file{top:.2rem;transform:scale(0.8)}.sc-smoothly-input-file-h:not([show-label]):not(.show-label) .label.sc-smoothly-input-file{display:none}.sc-smoothly-input-file-h smoothly-icon.smoothly-invalid.sc-smoothly-input-file{fill:rgb(var(--smoothly-input-invalid-icon, var(--smoothly-danger-color)))}.sc-smoothly-input-file-h{display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;overflow:hidden;position:relative;width:100%;padding-left:var(--input-padding-side);background-color:rgb(var(--smoothly-input-background));box-sizing:border-box}.sc-smoothly-input-file-h>div.sc-smoothly-input-file>div.drag-overlay.sc-smoothly-input-file{position:absolute;inset:0;background-color:rgb(var(--smoothly-input-hover-background), 0.6);border-radius:var(--smoothly-input-border-radius);border:0.25rem dashed rgb(var(--smoothly-input-hover-foreground));display:flex;justify-content:center;align-items:center}.sc-smoothly-input-file-h>div.sc-smoothly-input-file>div.drag-overlay.sc-smoothly-input-file>smoothly-icon.sc-smoothly-input-file{color:rgb(var(--smoothly-input-hover-foreground))}.sc-smoothly-input-file-h:not(.dragging)>div.sc-smoothly-input-file>div.drag-overlay.sc-smoothly-input-file{display:none}.sc-smoothly-input-file-h>div.input.sc-smoothly-input-file>input.sc-smoothly-input-file{overflow:hidden;height:0;width:0;padding:0}.sc-smoothly-input-file-h:not([show-label])>div.input.sc-smoothly-input-file{display:flex;align-items:center;padding-bottom:0.2rem}.sc-smoothly-input-file-h:not([show-label])>smoothly-button.sc-smoothly-input-file:not(:empty){margin-right:1ch}[show-label].sc-smoothly-input-file-h>div.input.sc-smoothly-input-file{display:flex;padding-block:var(--input-value-padding-top) var(--input-value-padding-bottom);height:100%;box-sizing:border-box;flex-grow:1}.sc-smoothly-input-file-h>div.sc-smoothly-input-file>smoothly-button.sc-smoothly-input-file{--smoothly-button-height:1.4rem;margin:0;border:none}.sc-smoothly-input-file-h>label.sc-smoothly-input-file{left:var(--input-padding-side)}.sc-smoothly-input-file-h:not([readonly]),.sc-smoothly-input-file-h:not([readonly]) *.sc-smoothly-input-file{cursor:pointer}[disabled].sc-smoothly-input-file-h,[disabled].sc-smoothly-input-file-h *.sc-smoothly-input-file{cursor:not-allowed}`;const u=t(class t extends o{constructor(t){super();if(t!==false){this.__registerHost()}this.smoothlyInputLooks=s(this,"smoothlyInputLooks");this.smoothlyInput=s(this,"smoothlyInput");this.smoothlyUserInput=s(this,"smoothlyUserInput");this.smoothlyInputLoad=s(this,"smoothlyInputLoad");this.smoothlyFormDisable=s(this,"smoothlyFormDisable");this.readonly=false;this.showLabel=true;this.dragging=false;this.isDifferentFromInitial=false;this.observer=n.Observer.create(this);this.transfer=new DataTransfer}get files(){this.transfer.items.clear();this.value&&this.transfer.items.add(this.value);return this.transfer.files}async componentWillLoad(){this.smoothlyInputLooks.emit(((t,o)=>{var s;return this.looks=(s=this.looks)!==null&&s!==void 0?s:t,!this.color&&(this.color=o)}));this.smoothlyInput.emit({[this.name]:await this.getValue()});this.smoothlyInputLoad.emit((t=>this.parent=t));!this.readonly&&this.smoothlyFormDisable.emit((t=>this.readonly=t));this.observer.publish()}async disconnectedCallback(){if(!this.element.isConnected){await this.unregister()}}nameChange(t,o){a.formRename(this,o)}async register(){a.formAdd(this)}async unregister(){a.formRemove(this)}async getValue(){return this.value}async clear(){this.value=undefined}smoothlyInputLoadHandler(t){a.registerSubAction(this,t)}async listen(t){this.observer.subscribe(t)}async edit(t){this.readonly=!t}async reset(){this.value=this.initialValue}async setInitialValue(){this.initialValue=this.value;this.valueChanged()}async binary(){return true}async valueChanged(){this.isDifferentFromInitial=this.initialValue!==this.value;this.smoothlyInput.emit({[this.name]:await this.getValue()});this.observer.publish()}inputHandler(t){var o,s,i;t.stopPropagation();if((s=(o=this.input)===null||o===void 0?void 0:o.files)===null||s===void 0?void 0:s.length){this.value=(i=this.input)===null||i===void 0?void 0:i.files[0];this.smoothlyUserInput.emit({name:this.name,value:this.value})}}dropHandler(t){var o;t.preventDefault();t.stopPropagation();this.dragging=false;if((o=t.dataTransfer)===null||o===void 0?void 0:o.files.length){this.value=t.dataTransfer.files[0];this.smoothlyUserInput.emit({name:this.name,value:this.value})}}clickHandler(t){var o;if(!this.readonly&&!this.disabled&&!t.composedPath().find((t=>t==this.input))){(o=this.input)===null||o===void 0?void 0:o.click()}}dragOverHandler(t){t.preventDefault();t.stopPropagation()}dragEnterHandler(t){t.preventDefault();!this.readonly&&!this.disabled&&(this.dragging=true)}dragLeaveHandler(t){t.stopPropagation();this.dragging=false}render(){var t,o,s;return i(e,{key:"a1e2fbf3bf30d1fd941de3bd207e16ef0e168407",class:{dragging:this.dragging,"has-value":!!this.value},tabindex:this.disabled?undefined:0,onClick:t=>this.clickHandler(t),onDragOver:t=>this.dragOverHandler(t),onDragEnter:t=>this.dragEnterHandler(t)},i("label",{key:"1b2e27e123de65862e6535b4ee4e9760f1541129"},i("slot",{key:"aa0b28bb9a49649463084495e47d98d92729a57d",name:"label"})),i("div",{key:"e7275addeb482256063dae4196f46ff8f45993c4",class:"input"},i("smoothly-button",{key:"efb739b21ac1af7cdec628fe67fdf8e38d576e74",disabled:this.disabled,type:"button",color:this.color,fill:"clear",size:"flexible"},i("slot",{key:"131edbbc38611bdaf47024837c043d2f094104b0",name:"button"})),i("span",{key:"dfd5aca4c0112a257fce52f7b2ecddf348b71870"},(o=(t=this.value)===null||t===void 0?void 0:t.name)!==null&&o!==void 0?o:this.placeholder),i("div",{key:"b118ce04ee719798fe30fa562c77f60ce85945e6",class:"drag-overlay",onDrop:t=>this.dropHandler(t),onDragLeave:t=>this.dragLeaveHandler(t)},i("smoothly-icon",{key:"94cd919ab0af8d448bf20fad13cb6a19579d26dc",name:"document-attach-outline"})),i("input",{key:"4f372d0ca5451932574973b4d0d556423acdf320",ref:t=>this.input=t,type:"file",disabled:this.disabled,capture:this.camera=="back"?"environment":"user",accept:(s=this.accept)!==null&&s!==void 0?s:!this.camera?undefined:"image/jpeg",files:this.files,onInput:t=>this.inputHandler(t)})),i("span",{key:"092975f9f5161227ee1907c12918e8256dc88d09",onClick:t=>t.stopPropagation()},i("slot",{key:"9039ae566f705c87e542ded409bba07358849829",name:"end"})))}get element(){return this}static get watchers(){return{name:[{nameChange:0}],value:[{valueChanged:0}]}}static get style(){return d()}},[262,"smoothly-input-file",{readonly:[1540],disabled:[516],accept:[1],color:[1537],looks:[1537],camera:[513],name:[513],showLabel:[516,"show-label"],value:[1040],placeholder:[1537],dragging:[32],register:[64],unregister:[64],getValue:[64],clear:[64],listen:[64],edit:[64],reset:[64],setInitialValue:[64],binary:[64]},[[0,"smoothlyInputLoad","smoothlyInputLoadHandler"]],{name:[{nameChange:0}],value:[{valueChanged:0}]}]);function p(){if(typeof customElements==="undefined"){return}const t=["smoothly-input-file","smoothly-button","smoothly-icon"];t.forEach((t=>{switch(t){case"smoothly-input-file":if(!customElements.get(l(t))){customElements.define(l(t),u)}break;case"smoothly-button":if(!customElements.get(l(t))){h()}break;case"smoothly-icon":if(!customElements.get(l(t))){r()}break}}))}p();export{u as S,p as d};
|
|
2
|
-
//# sourceMappingURL=p-
|
|
1
|
+
import{p as t,H as o,c as s,h as i,d as e,t as l}from"./p-BsZrGTcp.js";import{E as n}from"./p-DFXJvHuL.js";import{I as a}from"./p-DIhqNc1G.js";import{d as h}from"./p-BHEtq3Ue.js";import{d as r}from"./p-BiQsRsV4.js";const d=()=>`.sc-smoothly-input-file-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-file-h{border:rgb(var(--smoothly-input-border)) solid 1px}[looks="border"].sc-smoothly-input-file-h:not([readonly]):not([disabled]):focus-within{outline:2px solid rgb(var(--smoothly-input-border-focus))}[looks="border"][readonly].sc-smoothly-input-file-h{border:transparent solid 1px}[looks="line"].sc-smoothly-input-file-h{border-bottom:rgb(var(--smoothly-input-border)) solid 1px;position:relative}[looks="line"][readonly].sc-smoothly-input-file-h{border-bottom:transparent solid 1px}[looks="line"].sc-smoothly-input-file-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-file-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-file-h{box-shadow:0px 0px 0px 1px rgba(var(--smoothly-input-border-readonly))}[looks="grid"].sc-smoothly-input-file-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-file-h{border:none}[looks="transparent"][readonly].sc-smoothly-input-file-h,[looks="transparent"].sc-smoothly-input-file-h:not(:focus-within){background-color:transparent}[looks="transparent"][readonly].sc-smoothly-input-file-h>input.sc-smoothly-input-file,[looks="transparent"].sc-smoothly-input-file-h:not(:focus-within)>input.sc-smoothly-input-file{background-color:transparent}[looks="transparent"].sc-smoothly-input-file-h:not([readonly]):focus-within{outline:1px solid rgb(var(--smoothly-input-border))}[disabled].sc-smoothly-input-file-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-file-h.sc-smoothly-input-file-s>[slot=label],.sc-smoothly-input-file-h .sc-smoothly-input-file-s>[slot=label],.sc-smoothly-input-file-h .label.sc-smoothly-input-file{position:absolute;top:.6rem;opacity:0.8;user-select:none;cursor:inherit;transform-origin:top left;transition:transform 100ms ease}.sc-smoothly-input-file-h.floating-label.sc-smoothly-input-file-s>[slot=label],.sc-smoothly-input-file-h.floating-label .sc-smoothly-input-file-s>[slot=label],.sc-smoothly-input-file-h.has-value.sc-smoothly-input-file-s>[slot=label],.sc-smoothly-input-file-h.has-value .sc-smoothly-input-file-s>[slot=label],.sc-smoothly-input-file-h[placeholder].sc-smoothly-input-file-s>[slot=label],.sc-smoothly-input-file-h[placeholder] .sc-smoothly-input-file-s>[slot=label],.sc-smoothly-input-file-h[readonly].sc-smoothly-input-file-s>[slot=label],.sc-smoothly-input-file-h[readonly] .sc-smoothly-input-file-s>[slot=label],.floating-label.sc-smoothly-input-file-h .label.sc-smoothly-input-file,.has-value.sc-smoothly-input-file-h .label.sc-smoothly-input-file,.has-text.sc-smoothly-input-file-h .label.sc-smoothly-input-file,[placeholder].sc-smoothly-input-file-h .label.sc-smoothly-input-file,[readonly].sc-smoothly-input-file-h .label.sc-smoothly-input-file,.sc-smoothly-input-file-h:not([readonly]):focus-within .label.float-on-focus.sc-smoothly-input-file{top:.2rem;transform:scale(0.8)}.sc-smoothly-input-file-h:not([show-label]):not(.show-label) .label.sc-smoothly-input-file{display:none}.sc-smoothly-input-file-h smoothly-icon.smoothly-invalid.sc-smoothly-input-file{fill:rgb(var(--smoothly-input-invalid-icon, var(--smoothly-danger-color)))}.sc-smoothly-input-file-h{display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;overflow:hidden;position:relative;width:100%;padding-left:var(--input-padding-side);background-color:rgb(var(--smoothly-input-background));box-sizing:border-box}.sc-smoothly-input-file-h>div.sc-smoothly-input-file>div.drag-overlay.sc-smoothly-input-file{position:absolute;inset:0;background-color:rgb(var(--smoothly-input-hover-background), 0.6);border-radius:var(--smoothly-input-border-radius);border:0.25rem dashed rgb(var(--smoothly-input-hover-foreground));display:flex;justify-content:center;align-items:center}.sc-smoothly-input-file-h>div.sc-smoothly-input-file>div.drag-overlay.sc-smoothly-input-file>smoothly-icon.sc-smoothly-input-file{color:rgb(var(--smoothly-input-hover-foreground))}.sc-smoothly-input-file-h:not(.dragging)>div.sc-smoothly-input-file>div.drag-overlay.sc-smoothly-input-file{display:none}.sc-smoothly-input-file-h>div.input.sc-smoothly-input-file>input.sc-smoothly-input-file{overflow:hidden;height:0;width:0;padding:0}.sc-smoothly-input-file-h:not([show-label])>div.input.sc-smoothly-input-file{display:flex;align-items:center;padding-bottom:0.2rem}.sc-smoothly-input-file-h:not([show-label])>smoothly-button.sc-smoothly-input-file:not(:empty){margin-right:1ch}[show-label].sc-smoothly-input-file-h>div.input.sc-smoothly-input-file{display:flex;padding-block:var(--input-value-padding-top) var(--input-value-padding-bottom);height:100%;box-sizing:border-box;flex-grow:1}.sc-smoothly-input-file-h>div.sc-smoothly-input-file>smoothly-button.sc-smoothly-input-file{--smoothly-button-height:1.4rem;margin:0;border:none}.sc-smoothly-input-file-h>label.sc-smoothly-input-file{left:var(--input-padding-side)}.sc-smoothly-input-file-h:not([readonly]),.sc-smoothly-input-file-h:not([readonly]) *.sc-smoothly-input-file{cursor:pointer}[disabled].sc-smoothly-input-file-h,[disabled].sc-smoothly-input-file-h *.sc-smoothly-input-file{cursor:not-allowed}`;const u=t(class t extends o{constructor(t){super();if(t!==false){this.__registerHost()}this.smoothlyInputLooks=s(this,"smoothlyInputLooks");this.smoothlyInput=s(this,"smoothlyInput");this.smoothlyUserInput=s(this,"smoothlyUserInput");this.smoothlyInputLoad=s(this,"smoothlyInputLoad");this.smoothlyFormDisable=s(this,"smoothlyFormDisable");this.readonly=false;this.showLabel=true;this.dragging=false;this.isDifferentFromInitial=false;this.observer=n.Observer.create(this);this.transfer=new DataTransfer}get files(){this.transfer.items.clear();this.value&&this.transfer.items.add(this.value);return this.transfer.files}async componentWillLoad(){this.smoothlyInputLooks.emit(((t,o)=>{var s;return this.looks=(s=this.looks)!==null&&s!==void 0?s:t,!this.color&&(this.color=o)}));this.smoothlyInput.emit({[this.name]:await this.getValue()});this.smoothlyInputLoad.emit((t=>this.parent=t));!this.readonly&&this.smoothlyFormDisable.emit((t=>this.readonly=t));this.observer.publish()}async disconnectedCallback(){if(!this.element.isConnected){await this.unregister()}}nameChange(t,o){a.formRename(this,o)}async register(){a.formAdd(this)}async unregister(){a.formRemove(this)}async getValue(){return this.value}async clear(){this.value=undefined}smoothlyInputLoadHandler(t){a.registerSubAction(this,t)}async listen(t){this.observer.subscribe(t)}async edit(t){this.readonly=!t}async reset(){this.value=this.initialValue}async setInitialValue(){this.initialValue=this.value;this.valueChanged()}async binary(){return true}async valueChanged(){this.isDifferentFromInitial=this.initialValue!==this.value;this.smoothlyInput.emit({[this.name]:await this.getValue()});this.observer.publish()}inputHandler(t){var o,s,i;t.stopPropagation();if((s=(o=this.input)===null||o===void 0?void 0:o.files)===null||s===void 0?void 0:s.length){this.value=(i=this.input)===null||i===void 0?void 0:i.files[0];this.smoothlyUserInput.emit({name:this.name,value:this.value})}}dropHandler(t){var o;t.preventDefault();t.stopPropagation();this.dragging=false;if((o=t.dataTransfer)===null||o===void 0?void 0:o.files.length){this.value=t.dataTransfer.files[0];this.smoothlyUserInput.emit({name:this.name,value:this.value})}}clickHandler(t){var o;if(!this.readonly&&!this.disabled&&!t.composedPath().find((t=>t==this.input))){(o=this.input)===null||o===void 0?void 0:o.click()}}dragOverHandler(t){t.preventDefault();t.stopPropagation()}dragEnterHandler(t){t.preventDefault();!this.readonly&&!this.disabled&&(this.dragging=true)}dragLeaveHandler(t){t.stopPropagation();this.dragging=false}render(){var t,o,s;return i(e,{key:"92ab54c45c171373ca1202527ac452358b1c8de8",class:{dragging:this.dragging,"has-value":!!this.value},tabindex:this.disabled?undefined:0,onClick:t=>this.clickHandler(t),onDragOver:t=>this.dragOverHandler(t),onDragEnter:t=>this.dragEnterHandler(t)},i("label",{key:"e7865d1f743acdb3f262f812e47a7aa33e7f455b"},i("slot",{key:"ea009dfb71d55f4de0214c0188abdeca97cfb126",name:"label"})),i("div",{key:"9875aef8a3075c1c93450da31789c263279d2104",class:"input"},i("smoothly-button",{key:"70c1985a28a92b0df083fcf89caa8bc6798f94ee",disabled:this.disabled,type:"button",color:this.color,fill:"clear",size:"flexible"},i("slot",{key:"4b3eb404ef91e9ed042e2fd99b22e012a7f07780",name:"button"})),i("span",{key:"e41716ae95c78739678c28d50d9ba65f830384fd"},(o=(t=this.value)===null||t===void 0?void 0:t.name)!==null&&o!==void 0?o:this.placeholder),i("div",{key:"89f1c26d6d4d7bb4cc52b8897ee30bd1b36717d8",class:"drag-overlay",onDrop:t=>this.dropHandler(t),onDragLeave:t=>this.dragLeaveHandler(t)},i("smoothly-icon",{key:"b88edd52dcbe45bc147a152cb8550de5487dfd70",name:"document-attach-outline"})),i("input",{key:"44aed5773dc5425b492ef090685df3575a1358e6",ref:t=>this.input=t,type:"file",disabled:this.disabled,capture:this.camera=="back"?"environment":"user",accept:(s=this.accept)!==null&&s!==void 0?s:!this.camera?undefined:"image/jpeg",files:this.files,onInput:t=>this.inputHandler(t)})),i("span",{key:"4a24ad4127a02b97b04369952822aa354509ca0d",onClick:t=>t.stopPropagation()},i("slot",{key:"70189241ca504152198d2c20c68bdfc0f31eb71b",name:"end"})))}get element(){return this}static get watchers(){return{name:[{nameChange:0}],value:[{valueChanged:0}]}}static get style(){return d()}},[262,"smoothly-input-file",{readonly:[1540],disabled:[516],accept:[1],color:[1537],looks:[1537],camera:[513],name:[513],showLabel:[516,"show-label"],value:[1040],placeholder:[1537],dragging:[32],register:[64],unregister:[64],getValue:[64],clear:[64],listen:[64],edit:[64],reset:[64],setInitialValue:[64],binary:[64]},[[0,"smoothlyInputLoad","smoothlyInputLoadHandler"]],{name:[{nameChange:0}],value:[{valueChanged:0}]}]);function p(){if(typeof customElements==="undefined"){return}const t=["smoothly-input-file","smoothly-button","smoothly-icon"];t.forEach((t=>{switch(t){case"smoothly-input-file":if(!customElements.get(l(t))){customElements.define(l(t),u)}break;case"smoothly-button":if(!customElements.get(l(t))){h()}break;case"smoothly-icon":if(!customElements.get(l(t))){r()}break}}))}p();export{u as S,p as d};
|
|
2
|
+
//# sourceMappingURL=p-BRoShuOu.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{p as o,H as t,c as s,h as e,d as r,t as l}from"./p-BsZrGTcp.js";import{I as n,S as i}from"./p-
|
|
2
|
-
//# sourceMappingURL=p-
|
|
1
|
+
import{p as o,H as t,c as s,h as e,d as r,t as l}from"./p-BsZrGTcp.js";import{I as n,S as i}from"./p-DIhqNc1G.js";import{E as h}from"./p-DFXJvHuL.js";import{d as c}from"./p-BHEtq3Ue.js";import{d as m}from"./p-BiQsRsV4.js";const a=()=>`[color=default].sc-smoothly-input-reset{--smoothly-color:var(--smoothly-default-color);--smoothly-color-contrast:var(--smoothly-default-contrast);--smoothly-color-shade:var(--smoothly-default-shade);--smoothly-color-tint:var(--smoothly-default-tint)}[color=primary].sc-smoothly-input-reset{--smoothly-color:var(--smoothly-primary-color);--smoothly-color-contrast:var(--smoothly-primary-contrast);--smoothly-color-shade:var(--smoothly-primary-shade);--smoothly-color-tint:var(--smoothly-primary-tint)}[color=secondary].sc-smoothly-input-reset{--smoothly-color:var(--smoothly-secondary-color);--smoothly-color-contrast:var(--smoothly-secondary-contrast);--smoothly-color-shade:var(--smoothly-secondary-shade);--smoothly-color-tint:var(--smoothly-secondary-tint)}[color=tertiary].sc-smoothly-input-reset{--smoothly-color:var(--smoothly-tertiary-color);--smoothly-color-contrast:var(--smoothly-tertiary-contrast);--smoothly-color-shade:var(--smoothly-tertiary-shade);--smoothly-color-tint:var(--smoothly-tertiary-tint)}[color=success].sc-smoothly-input-reset{--smoothly-color:var(--smoothly-success-color);--smoothly-color-contrast:var(--smoothly-success-contrast);--smoothly-color-shade:var(--smoothly-success-shade);--smoothly-color-tint:var(--smoothly-success-tint)}[color=warning].sc-smoothly-input-reset{--smoothly-color:var(--smoothly-warning-color);--smoothly-color-contrast:var(--smoothly-warning-contrast);--smoothly-color-shade:var(--smoothly-warning-shade);--smoothly-color-tint:var(--smoothly-warning-tint)}[color=danger].sc-smoothly-input-reset{--smoothly-color:var(--smoothly-danger-color);--smoothly-color-contrast:var(--smoothly-danger-contrast);--smoothly-color-shade:var(--smoothly-danger-shade);--smoothly-color-tint:var(--smoothly-danger-tint)}[color=light].sc-smoothly-input-reset{--smoothly-color:var(--smoothly-light-color);--smoothly-color-contrast:var(--smoothly-light-contrast);--smoothly-color-shade:var(--smoothly-light-shade);--smoothly-color-tint:var(--smoothly-light-tint)}[color=medium].sc-smoothly-input-reset{--smoothly-color:var(--smoothly-medium-color);--smoothly-color-contrast:var(--smoothly-medium-contrast);--smoothly-color-shade:var(--smoothly-medium-shade);--smoothly-color-tint:var(--smoothly-medium-tint)}[color=dark].sc-smoothly-input-reset{--smoothly-color:var(--smoothly-dark-color);--smoothly-color-contrast:var(--smoothly-dark-contrast);--smoothly-color-shade:var(--smoothly-dark-shade);--smoothly-color-tint:var(--smoothly-dark-tint)}.sc-smoothly-input-reset-h{--smoothly-button-border-radius:0.5rem;display:inline-flex;box-sizing:border-box;border-radius:var(--smoothly-button-border-radius);font-size:var(--smoothly-button-font-size, 1rem);cursor:pointer;border:none;outline:none;position:relative}[shape=rounded].sc-smoothly-input-reset-h{--smoothly-button-border-radius:2rem}[type=link].sc-smoothly-input-reset-h{display:inline}[disabled].sc-smoothly-input-reset-h{opacity:0.5}.sc-smoothly-input-reset-h>a.sc-smoothly-input-reset{font-weight:400;background-color:transparent}.sc-smoothly-input-reset-h>a.sc-smoothly-input-reset,.sc-smoothly-input-reset-h>button.sc-smoothly-input-reset{font-size:var(--smoothly-button-font-size);border:1px solid transparent;outline:none;cursor:pointer;display:inline-flex;gap:0.5rem;box-sizing:border-box}.sc-smoothly-input-reset-h>button.sc-smoothly-input-reset{font-weight:bold;justify-content:center;width:100%;align-items:center;border-radius:var(--smoothly-button-border-radius);padding-inline:var(--smoothly-button-padding-inline, 1rem)}.sc-smoothly-input-reset-h{min-height:var(--smoothly-button-height, 2.5rem)}.sc-smoothly-input-reset-h:has(>a:empty),.sc-smoothly-input-reset-h:has(>button:empty),.sc-smoothly-input-reset-h>a.sc-smoothly-input-reset:empty,.sc-smoothly-input-reset-h>button.sc-smoothly-input-reset:empty{border-width:0;min-height:0;padding-inline:0}[size=small].sc-smoothly-input-reset-h{--smoothly-button-height:2rem;--smoothly-button-padding-inline:0.75rem;--smoothly-button-font-size:0.875rem;--smoothly-icon-size:1.4rem}[size=large].sc-smoothly-input-reset-h{--smoothly-button-height:3rem;--smoothly-button-padding-inline:1.25rem;--smoothly-button-font-size:1.125rem}.sc-smoothly-input-reset-h:not([size=icon]):not([size=flexible])>button.sc-smoothly-input-reset{min-width:8rem}[size=icon].sc-smoothly-input-reset-h{--smoothly-icon-size:1.4rem}[size=icon].sc-smoothly-input-reset-h>button.sc-smoothly-input-reset{min-height:var(--smoothly-button-height, 2.5rem);min-width:var(--smoothly-button-height, 2.5rem);padding:0}.sc-smoothly-input-reset-h:not([size=icon]){min-width:8em}[size=flexible].sc-smoothly-input-reset-h{min-width:unset;padding:0;margin:0;display:flex;justify-content:center}[size=flexible].sc-smoothly-input-reset-h>button.sc-smoothly-input-reset{min-width:unset;padding:0;margin:0}[expand].sc-smoothly-input-reset-h{width:100%}[expand=full].sc-smoothly-input-reset-h{border-left:none;border-right:none;--smoothly-button-border-radius:0}[fill=outline].sc-smoothly-input-reset-h>button.sc-smoothly-input-reset{background-color:transparent;color:rgb(var(--smoothly-button-foreground));fill:rgb(var(--smoothly-button-foreground));stroke:rgb(var(--smoothly-button-foreground));border-color:rgb(var(--smoothly-button-foreground))}.sc-smoothly-input-reset-h:not([fill=clear]):not([disabled])>button.sc-smoothly-input-reset:hover,.sc-smoothly-input-reset-h:not([disabled])>button.sc-smoothly-input-reset:focus-visible,[fill=outline].sc-smoothly-input-reset-h:not([disabled]):active>button.sc-smoothly-input-reset::before{border-color:rgb(var(--smoothly-button-focus-color))}[fill=outline].sc-smoothly-input-reset-h:not([disabled])>button.sc-smoothly-input-reset:hover::before,[fill=outline].sc-smoothly-input-reset-h:not([disabled])>button.sc-smoothly-input-reset:focus-within::before,[fill=outline].sc-smoothly-input-reset-h:not([disabled])>button.sc-smoothly-input-reset:active::before{content:"";position:absolute;border:2px solid rgb(var(--smoothly-button-focus-border));inset:-1px;border-radius:var(--smoothly-button-border-radius)}.sc-smoothly-input-reset-h:not([fill=clear]):not([fill=outline]):not([disabled])>button.sc-smoothly-input-reset:hover,.sc-smoothly-input-reset-h:not([fill=clear]):not([fill=outline]):not([disabled])>button.sc-smoothly-input-reset:focus-visible,.sc-smoothly-input-reset-h:not([fill=clear]):not([fill=outline]):not([disabled])>button.sc-smoothly-input-reset:active{background:rgb(var(--smoothly-button-hover-background))}.sc-smoothly-input-reset-h>button.sc-smoothly-input-reset,.sc-smoothly-input-reset-h.sc-smoothly-input-reset-s>smoothly-icon,.sc-smoothly-input-reset-h .sc-smoothly-input-reset-s>smoothly-icon{color:rgb(var(--smoothly-button-foreground));stroke:rgb(var(--smoothly-button-foreground));fill:rgb(var(--smoothly-button-foreground))}[hidden].sc-smoothly-input-reset-h{display:none}.sc-smoothly-input-reset-h:not([display]){display:none}.sc-smoothly-input-reset-h[type="input"].sc-smoothly-input-reset-s>smoothly-button>button{cursor:pointer;filter:opacity(60%);--smoothly-button-foreground:var(--smoothly-input-foreground);background-color:transparent}.sc-smoothly-input-reset-h.sc-smoothly-input-reset-s>smoothly-button>button>*+smoothly-icon{display:none}[disabled].sc-smoothly-input-reset-h{cursor:not-allowed}.sc-smoothly-input-reset-h[type="input"]:hover.sc-smoothly-input-reset-s>smoothly-icon,.sc-smoothly-input-reset-h[type="input"]:hover .sc-smoothly-input-reset-s>smoothly-icon{cursor:pointer;filter:opacity(100%)}`;const y=o(class o extends t{constructor(o){super();if(o!==false){this.__registerHost()}this.smoothlyInputLoad=s(this,"smoothlyInputLoad");this.size="icon";this.display=true;this.type="input";this.tooltip="Reset"}async componentWillLoad(){this.smoothlyInputLoad.emit((o=>{if(h.Element.type.is(o)){this.parent=o;o.listen((async o=>{if(n.is(o)){const t=typeof o.defined=="boolean"?o.defined:Boolean(await o.getValue());this.display=o.readonly||!t?false:o.isDifferentFromInitial}if(o instanceof i){this.display=!o.readonly}}));if(typeof this.disabled!=="boolean"){this.readonlyAtLoad=o.readonly;o.listen((async o=>{if(o instanceof i){this.disabled=!this.readonlyAtLoad&&!o.isDifferentFromInitial}}))}}}))}clickHandler(o){var t,s;o.stopPropagation();(t=this.parent)===null||t===void 0?void 0:t.reset();this.parent instanceof i&&this.readonlyAtLoad&&((s=this.parent)===null||s===void 0?void 0:s.edit(false))}render(){var o;return e(r,{key:"8be31b0878733c9af02d47f85fb2ce160d66f064",title:this.tooltip},e("smoothly-button",{key:"ffacca4558cfe1b94c3399ecbb4384ca6730c208",disabled:this.disabled,size:this.size,type:"button",shape:this.shape,expand:this.expand,color:this.color,fill:(o=this.fill)!==null&&o!==void 0?o:this.type=="input"?"clear":undefined,onClick:o=>this.clickHandler(o)},e("slot",{key:"a0b3a925b4062d14975cb3479f4cee3f40de7af7"}),e("smoothly-icon",{key:"8ca0aa0f3a534558de7fcefafe9267a1992d9594",flip:"x",name:"refresh-outline",size:"tiny"})))}static get style(){return a()}},[262,"smoothly-input-reset",{color:[1],expand:[513],fill:[513],disabled:[1540],size:[513],shape:[513],display:[1540],type:[513],tooltip:[1]},[[0,"click","clickHandler"]]]);function u(){if(typeof customElements==="undefined"){return}const o=["smoothly-input-reset","smoothly-button","smoothly-icon"];o.forEach((o=>{switch(o){case"smoothly-input-reset":if(!customElements.get(l(o))){customElements.define(l(o),y)}break;case"smoothly-button":if(!customElements.get(l(o))){c()}break;case"smoothly-icon":if(!customElements.get(l(o))){m()}break}}))}u();export{y as S,u as d};
|
|
2
|
+
//# sourceMappingURL=p-BUa0wBSK.js.map
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{p as e,H as t,c as o,h as a,d as s,t as c}from"./p-BsZrGTcp.js";import{i as m}from"./p-BVKhAhsB.js";import{d}from"./p-BoHJT9bR.js";import{d as l}from"./p-BHEtq3Ue.js";import{d as i}from"./p-DX3KKRD9.js";import{d as f}from"./p-1j2KmcfQ.js";import{d as n}from"./p-AX8gOGUr.js";import{d as b}from"./p-DM5CKilY.js";import{d as r}from"./p-CR3Ni_o7.js";import{d as y}from"./p-B-l1S16Z.js";import{d as u}from"./p-Ud7Qhkgt.js";import{d as h}from"./p-C3FORjes.js";import{d as p}from"./p-DIhqNc1G.js";import{d as k}from"./p-BiQsRsV4.js";import{d as v}from"./p-Ww5QjB3D.js";import{d as g}from"./p-CrKwvG9J.js";import{d as j}from"./p-_o_lUhve.js";import{d as E}from"./p-CrkBYYf-.js";import{d as x}from"./p-Cw_sHLuu.js";import{d as w}from"./p-xkRxEiC8.js";import{d as C}from"./p-DIf6-Fvg.js";import{d as S}from"./p-NFd9Dxr1.js";import{d as D}from"./p-BFJL6rrU.js";import{d as L}from"./p-DLBMEh0f.js";import{d as B}from"./p-CqSiLhUe.js";import{d as z}from"./p-CgCEK6Lc.js";import{d as I}from"./p-BRoShuOu.js";import{d as A}from"./p-CtuuZV3u.js";import{d as F}from"./p-CKlr_F9h.js";import{d as M}from"./p-BfwEfI7H.js";import{d as H}from"./p-nFLcvugJ.js";import{d as K}from"./p-CTdXhHGF.js";import{d as N}from"./p-D5WTwmc6.js";import{d as R}from"./p-BUa0wBSK.js";import{d as U}from"./p-CJEV2v84.js";import{d as J}from"./p-CqyGm3oe.js";import{d as G}from"./p-fnKrPnzp.js";import{d as T}from"./p-Bpc6uh0M.js";import{d as Q}from"./p-NGbZCAH9.js";import{d as O}from"./p-2Y5tLcQ1.js";import{d as V}from"./p-dBpTpVs8.js";const Z=()=>`.sc-smoothly-input-demo-h{display:flex;flex-direction:column;margin-top:2em;margin-bottom:10rem}.sc-smoothly-input-demo-h .select-div-row.sc-smoothly-input-demo{display:flex}.sc-smoothly-input-demo-h .select-div-row.sc-smoothly-input-demo smoothly-input.sc-smoothly-input-demo{flex:1}smoothly-input-demo-standard.sc-smoothly-input-demo{margin-bottom:2rem}div.inputs.sc-smoothly-input-demo{max-width:min(calc(100% - 2rem), 56rem);margin:auto}div.inputs.sc-smoothly-input-demo>h2.sc-smoothly-input-demo:not(:first-child){padding-top:3em;margin-top:3em;border-top:1px solid black}.checkbox-group.sc-smoothly-input-demo{display:flex;gap:1.5em;align-items:center;background-color:rgb(var(--smoothly-input-background))}.select-div.sc-smoothly-input-demo{display:flex;gap:1em;flex-wrap:wrap}.select-div.sc-smoothly-input-demo>*.sc-smoothly-input-demo{flex-grow:1;min-width:min(100%, var(--smoothly-form-input-min-width, 18rem));flex-basis:40%}`;const _=e(class e extends t{constructor(e){super();if(e!==false){this.__registerHost()}this.smoothlyUrlUpdate=o(this,"smoothlyUrlUpdate");this.duration={hours:8};this.alphanumeric="!@##";this.numbers=[1,2,3,4,5,6,7,8,9]}render(){return a(s,{key:"0610dea0130909d255f6dcbf7f798521cb18fc4e"},a("smoothly-input-demo-standard",{key:"e74b371f701b9371972b5428efb0ea4edea9244c"}),a("smoothly-input-date-demo",{key:"c989f6853579a9ba68c6f57e2e6381c121ff091c"}),a("smoothly-input-demo-user-input",{key:"67189969e7eeb85c53fa6485cc4bc1c6f8810d3c"}),a("smoothly-input-demo-radio",{key:"d277353814df2808ab955df71df8dd79a14e3b09"}),a("div",{key:"69864f1761f23e2d9fe5003d1a28895195587f23",class:"inputs"},a("h2",{key:"9e43ab4414d38f5e7d6ed559293a364700e4e3ff"},"Calendar"),a("smoothly-input-date",{key:"3cc461eaf51348c11e76a541f4e89c7727d49006",name:"some-date"},"Calendar"),a("smoothly-input-date-time",{key:"331225ff58737c6cd60986d47935cf906f143d02",name:"someDateTime",value:m.DateTime.now()},"DateTime"),a("h2",{key:"7e7535017eb1d6a683df758a4d017dc7cb1fccc3"},"Date Range"),a("smoothly-input-date-range",{key:"fad6725321923c5821fe74add6cef73a560c2496",name:"testing",start:m.Date.now(),end:m.Date.nextMonth(m.Date.now()),min:"2021-10-01",max:"2025-01-31"}),a("smoothly-input-date-range",{key:"21d5f9edc259b904554d64c234e8268184db9c78",name:"testing",start:m.Date.now(),end:m.Date.nextMonth(m.Date.now()),min:"2021-10-10",max:"2024-12-30"},a("smoothly-input-reset",{key:"d08635584ffc2cf923f93304701d5ae0130dcd57",slot:"end",size:"icon"})),a("smoothly-input-date-range",{key:"46c5c5ca642f983a7d4956c83385ab25046044e7",looks:"grid",start:m.Date.now(),end:m.Date.nextMonth(m.Date.now()),min:"2021-10-10",max:"2025-12-30",showLabel:false,style:{"--smoothly-input-border-radius":"0.5rem"}},a("smoothly-input-clear",{key:"3465328594f446fbbe97cdb87adb806f057a4041",slot:"end",size:"icon"})),a("h2",{key:"e2a08b76ba392d10beb4eb95d8363620f07b53e4"},"Date"),a("smoothly-input-date",{key:"fbc0b53f5e576341027a9d0199e0a369cab1ed15"},"Date"),a("smoothly-input-date",{key:"b5ead1c49120a42e63e310361c29d31eabbcff60",showLabel:false,value:"2021-10-28",max:"2021-12-30",min:"2021-10-10"},"Date"),a("smoothly-input-date",{key:"18fab78a08e80b35d930d40be27c5f2863beaba1",value:"2021-10-28"},"Date",a("smoothly-input-reset",{key:"ab9470f9a44be6a115ff89db7c50f631362cecae",slot:"end",size:"icon"})),a("smoothly-input-date",{key:"61aa9be4f7193617ecc89d5250f9c97f30742c35",value:"2021-10-28"},"Date",a("smoothly-input-clear",{key:"9ab5d2a554d2123360afdac3c266ac79c6035d36",slot:"end",size:"icon"})),a("h2",{key:"ed8c37111142696858c0eac29661406ae2cd9f55"},"Select"),a("div",{key:"9ae174d2d4a332de3ad770450464569378f05bdb",class:"select-div"},a("smoothly-input-select",{key:"34f6a893981c3c8dc6703256a9f2c3089cf4ff25",name:"select-dessert",looks:"border"},a("label",{key:"7198f30b4aa7cb91377cb72ef16cb7dca79d00ff",slot:"label"},"Select with clear button"),a("smoothly-item",{key:"b85cb7fb77fe50cd6a42d0a6c38020dcfb2166ed",value:"1"},"Ice cream"),a("smoothly-item",{key:"de464d05e6cdffe4b578e5708d1e9e33376a0521",value:"2"},"Sponge cake"),a("smoothly-item",{key:"553b7ecd797f0e55def5b6c460440d8286755f4c",value:"3",disabled:true},"Disabled Item"),a("smoothly-item",{key:"3b4349b0785cd4440611499c23f082961541a91a",value:"4"},"Cookie"),a("smoothly-item",{key:"a5638b6d6424c31cb1d26cecb42cfeb1004e7674",value:"5"},"Croissant"),a("smoothly-item",{key:"015c157d486120f18de97fae45e36b9e0b0ef863",value:"6"},"Chocolate fondue"),a("smoothly-input-clear",{key:"b16c9fd651670b3808643e57043198550e3a1103",size:"icon",slot:"end"})),a("smoothly-input-select",{key:"277ad384d61f6a4ce7fb849d90a7e2437f105841",multiple:true,name:"select-dessert-multiple",looks:"border"},a("label",{key:"bcd5acb1903599e959821fc91f6aaf60ad0bb5b9",slot:"label"},"Select multiple with reset button"),a("smoothly-item",{key:"3e5c1545a14684d153a252fba8060965f63b6c46",value:"ice cream"},"Ice cream"),a("smoothly-item",{key:"155d20eda1c0ed2816a7bac67d54b2e55a7a101a",value:"sponge cake"},"Sponge cake"),a("smoothly-item",{key:"cdf81df5d54168f33c679918e7f3440f0f8d5da3",selected:true,value:"cookie"},"Cookie"),a("smoothly-item",{key:"ee8b1f2e292c76d0b5f1ea73501d56ed7c5c748c",value:"croissant"},"Croissant"),a("smoothly-item",{key:"ea635dbcfc236dec09da467db23e37b18fc8953a",selected:true,value:"chocolate fondue"},"Chocolate fondue"),a("smoothly-input-reset",{key:"de1bad5de86767304a5244812506166ac09ef395",size:"icon",slot:"end"})),a("smoothly-input-select",{key:"a606780ffc3288ff2c3963c63d1e67922e27eb03",name:"spirit-animals",looks:"border",mutable:true},a("label",{key:"12d7b79350e82d58eab979ae139ba1895e6d60e8",slot:"label"},"Select or add new options"),a("smoothly-item",{key:"b9c3dfe20a6df2409ef1e350bf6491284a583d5b",value:"manatee"},"Manatee"),a("smoothly-item",{key:"609d4f74ac6f9b7b3de0d6cf8239e357e273be3f",selected:true,value:"cthulu"},"Cthulu")),a("smoothly-input-select",{key:"02c55364f84130fbe531450518a9f14c01d093eb",name:"select-icon",clearable:false,showSelected:false},a("smoothly-item",{key:"838cb077ef888a9474f387f3e103d1fe5a7446bf",value:"folder",selected:true},a("smoothly-icon",{key:"b25142bf3ef747ac3b0efce4e5b0570da8fe3fdf",size:"small",name:"folder-outline"})),a("smoothly-item",{key:"230ece62e3958643281636ba4185118102394ce8",value:"camera"},a("smoothly-icon",{key:"2388323ed7eb30ca002c1fdb0a5b3c39e11b5da2",size:"small",name:"camera-outline"}))),a("smoothly-input-select",{key:"39a9cf873e9f7d93b05de669efa66d38f2f23ab6",ordered:true,menuHeight:"7.5items",placeholder:"Select...",name:"select-month"},a("label",{key:"9789169a41dfb9e3162112e23caffbfe5b6daeea",slot:"label"},"Alphabet ordered select"),Array.from({length:26}).map(((e,t)=>String.fromCharCode(t+65))).map((e=>a("smoothly-item",{value:e,selected:e=="H"},e)))),a("smoothly-input-select",{key:"f387c1c723590cc0af87d9a1fd57d459c1cc73f6",multiple:true,menuHeight:"7.5items",placeholder:"Select...",name:"select-month"},a("label",{key:"a5db731994586ad163c1077afe56a23f8645654a",slot:"label"},"Month multiple select"),a("smoothly-item",{key:"f1f9ee3d60d71883b4dd1b4aea488f2c22cde1d5",value:"1"},"January"),a("smoothly-item",{key:"a4432cbbf045646fdb7c5481edd5a4dc647e714e",value:"2"},"February"),a("smoothly-item",{key:"5004b0e7acb2fca29c26f563933f66a141a87a21",value:"3"},"March"),a("smoothly-item",{key:"f9085fa0f5ac2bdc308a6e6eb5f76d060179adac",value:"4"},"April"),a("smoothly-item",{key:"45c828dcd5f36bcb4624860f11ffe970ecfe3021",value:"5"},"May"),a("smoothly-item",{key:"6dcc18a959124619842d5a7bd68b38b507ecbb80",value:"6"},"June"),a("smoothly-item",{key:"cd1b161f2f13dfe661b2d3363e3b20647c4ec3ca",value:"7"},"July"),a("smoothly-item",{key:"a5ae41fa7eed339f47f69aad3681eae4579e0efe",value:"8"},"August"),a("smoothly-item",{key:"0016e486b487603da72487e53031739b85dc5318",value:"9"},"September"),a("smoothly-item",{key:"f1c6ed5593caa14259f74be4c8b3be20386e54cf",value:"10"},"October"),a("smoothly-item",{key:"f636538a7669567ff285e74a4c2de398546108ec",value:"11"},"November"),a("smoothly-item",{key:"0a83028ce8f962d1b8d501041aad0a288a5829c5",value:"12"},"December")),a("div",{key:"e16c4ae44a81885c288ca235fc56e53d08b3253f",class:"select-div-row"},a("smoothly-input-select",{key:"a399d1152444fff42ea7b37ca41824a6ecf63d81",name:"select-icon",clearable:false,showSelected:false},a("smoothly-item",{key:"af648a4bb5f15488197c34a752e282bd60cf79a3",value:"folder",selected:true},a("smoothly-icon",{key:"16d8cdf17dbf67544d10c06d8f599dd30b87cb61",size:"small",name:"folder-outline"})),a("smoothly-item",{key:"39012cd32fa3bcecb1cc012160048d6817a94c5c",value:"camera"},a("smoothly-icon",{key:"a51166743064c08c1e9509fea17b60fde3f39556",size:"small",name:"camera-outline"})),a("smoothly-item",{key:"5b13f14afbbf764ad387c34db65f48335c8e5ff8",value:"boat"},a("smoothly-icon",{key:"855facc3a62046b5b3b4ff29f0d5226d2aff1c55",size:"small",name:"boat-outline"}))),a("smoothly-input-select",{key:"cc1e08d1120f45c8143ae6f28cbdbad769785e58",name:"select-number",clearable:false},this.numbers.map((e=>a("smoothly-item",{value:"number",selected:e===3},e)))),a("smoothly-input",{key:"f12155b6e15ef36745915628c1ffc34a2c277bcd",name:"name",value:"Sten Qvist"},"Name"))),a("h2",{key:"32733265cff202c69112ac37afbbe51e9ee16b13"},"Duration"),a("smoothly-input",{key:"1c359b65c54c00a291d4ab2fca662ae0823545be",name:"duration",type:"duration",placeholder:"hh:mm",value:this.duration,onSmoothlyInput:e=>this.duration=e.detail.duration},"Duration"),a("smoothly-input",{key:"b50a7ea8c22c140a5d1b81eb197caa88d79ff4cc",name:"duration",type:"duration",value:this.duration,placeholder:"-hh:mm",onSmoothlyInput:e=>{const t=e.detail.duration;this.duration=t}},"Duration"),a("h2",{key:"9bf848b3aeb2d99264b20270c030daf0a2e4538c"},"Integer with Min/Max"),a("smoothly-input",{key:"ef9a50d998c97e0ee62ce7521a47d9116596f594",name:"days",type:"integer",min:0,max:365},"Days per year (0-365)"),a("smoothly-input",{key:"3fc4295acaaabe23a12e6e9fd192371d137e2ebd",name:"hour",type:"integer",min:0,max:23},"Hours per day (0-23)"),a("smoothly-input",{key:"e3e23c2ff05c311d1d62b86d9de0e333aaf38d16",name:"minute",type:"integer",min:0,max:59},"Minutes per hour (0-59)"),a("smoothly-input",{key:"a92c74f2b45cc1df86589e62e97b87c8a7060351",name:"minute",type:"integer",min:18,max:120},"Age (18-120)"),a("h2",{key:"05151b343a921085863acb3cc263fb4775fc1326"},"Invalid text with warning icon and tooltip"),a("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"),a("h2",{key:"b5e460972d07d70a04099e129f4b11706ee6ea58"},"Identifiers"),a("smoothly-input",{key:"d059d3ecee65ec385e40d11bad328bde8be89246",type:"identifier-code"},"Code"),a("smoothly-input",{key:"669bda44ce4115dc276335a9566cd433ccc992c4",type:"identifier-attribute"},"Attribute"),a("smoothly-input",{key:"a775035df9b192896c2ce7f1beebe6e904c1d42d",type:"identifier-snake"},"Snake"),a("smoothly-input",{key:"359285e474ea704c36e73984c35e4ae245c47a00",type:"identifier-pascal"},"Pascal"),a("smoothly-input",{key:"f1a36423248b413cd20749f738fe12a8eeacae15",type:"identifier-camel"},"Camel"),a("h2",{key:"2f6beac2f107dd3dc34a537e5b47f13d76206a07"},"Input Alternatives"),a("smoothly-input",{key:"74cfbe969295b7cb9e02af90b126d9bdb60168cc",type:"text",name:"name.last"},a("smoothly-icon",{key:"34e749e71f3d9976f2b71e57dd8644d53872aa35",name:"checkmark-circle",slot:"start"}),"First Name"),a("smoothly-input",{key:"61f44e09ab53cf0cf061007d3cf8426722e53312",type:"text",name:"name.first"},"Last Name",a("smoothly-icon",{key:"55adb72f7485eb5f2235516c9d2839feae927ad7",name:"checkmark-circle",slot:"end"})),a("smoothly-input",{key:"642a573bebe0e805fd7d178dfc8befe7e77bba15",type:"text",name:"name.first",placeholder:"Smith"},"Last Name",a("smoothly-icon",{key:"5bcfe9a74e7ec780fee1764933bd37f82b36495d",name:"checkmark-circle",slot:"end"})),a("smoothly-input",{key:"cd5b1bbd73247cfb21b6ff99a56c0989ec7f3239",placeholder:"test"}),a("smoothly-input-submit",{key:"02c46969366444af0882851f2f3a0cd80f1b61c3",slot:"submit",fill:"solid",onSubmit:e=>alert(e),color:"success"}),a("h4",{key:"3bc94eda5050b71ec193fda5600d76b5341b71d5"},"Smoothly checkboxes"),a("div",{key:"165dd5a0d8e539c3d9fdbebf49ded093589acea7",class:"checkbox-group"},a("smoothly-input-checkbox",{key:"17c781cdca9adf265d7418ca27ace984f0b70499",disabled:true,name:"first-checkbox"},a("smoothly-icon",{key:"413a357d61374d72ae7be41bca5a7360b105e9e0",name:"checkmark-circle",slot:"start",size:"tiny"}),"First"),a("smoothly-input-checkbox",{key:"81ad9a572cb4e01b86ca1a189d4ce027c81d588b",name:"second-checkbox",checked:true},a("smoothly-icon",{key:"a34d9d7860461de0a508e8f36ab3e89627475777",name:"checkmark-circle",slot:"start",size:"tiny"}),"second",a("smoothly-input-clear",{key:"fc64656864d9c68ef8f8ee42868af8f6d27ff217",size:"icon",slot:"end"})),a("smoothly-input-checkbox",{key:"8d1461bc9cc61eb79488162501232355e27bb992",name:"third-checkbox"},"3rd")),a("h4",{key:"0eca64c7ae21e4f915e7f146d36662983f5c3759"},"Smoothly Radio Buttons"),a("smoothly-input-radio",{key:"7677ce8ca260453a84a650fcced18a6592acc6a7",clearable:true,name:"radioFirstInput"},a("smoothly-icon",{key:"fd28ffad9dc1a32efb02131873f238c54fcb63e2",name:"checkmark-circle",slot:"start"}),a("label",{key:"63d92632a2ef4832fd863f55991480e1ec58fbae",slot:"label"},"Clearable"),a("smoothly-input-radio-item",{key:"a3e81d19c74fc5de2d25e44afb686793807025d5",value:"first"},"Label 1"),a("smoothly-input-radio-item",{key:"5a4118fd0fb1b24e7a3e957c6186a94caf6c3160",selected:true,value:"second"},"Label 2"),a("smoothly-input-radio-item",{key:"beb9d9bfec1ebd2bd268b3c94fde2f23ee77b31b",value:"third"},"Label 3"),a("smoothly-input-clear",{key:"91ff12f5c8d3911b662a4774e3d8887742de6b42",size:"icon",slot:"end"})),a("smoothly-input-radio",{key:"5e708295015296538d73936026d36e5badc6f805",name:"radioSecondInput"},a("label",{key:"8ffb6b2f623f8e16a19d6b9d83b93b28d9fe2637",slot:"label"},"Not clearable"),a("smoothly-input-radio-item",{key:"a5cf624fceafa16030eab1e9050cd3cac2c985f1",value:"first"},"Label 1"),a("smoothly-input-radio-item",{key:"66ab2a39eb130a221dea6cc77beecb0c221cecf5",value:"second"},"Label 2"),a("smoothly-input-radio-item",{key:"44792e09a3cfff26ec11c364e842db24f1eb10f2",value:"third"},"Label 3"),a("smoothly-input-radio-item",{key:"78b2689f9c52960b2901431b22c7f7faec8605ae",value:"fourth"},"Label 4"),a("smoothly-input-radio-item",{key:"fb6757b00011d410ffcf1cad4dcdfe1c586ca24a",value:"fifth"},"Label 5"),a("smoothly-input-radio-item",{key:"dcd365bfd3792cab31ede99aa43edf5d41d8af9e",value:"sixth"},"Label 6")),a("smoothly-input-range-demo",{key:"c231fb7b9c6d28546b4d13c87ef3a900b33191ca"}),a("smoothly-input-color-demo",{key:"540d7e3d4ec89f99ec6c67d725468e050ec0a183"}),a("smoothly-input-price-demo",{key:"eb8164f02728a0ee68e10ecb949c6b7f45d2fff2"}),a("smoothly-back-to-top",{key:"98cd43c5de35cfeea70b77434dac7907648c1b6e"})))}static get style(){return Z()}},[2,"smoothly-input-demo",{duration:[32],alphanumeric:[32]}]);function q(){if(typeof customElements==="undefined"){return}const e=["smoothly-input-demo","smoothly-back-to-top","smoothly-button","smoothly-button-confirm","smoothly-calendar","smoothly-date-text","smoothly-display","smoothly-display-json","smoothly-display-json-object","smoothly-display-json-primitive","smoothly-display-json-record-key","smoothly-form","smoothly-icon","smoothly-input","smoothly-input-checkbox","smoothly-input-clear","smoothly-input-color","smoothly-input-color-demo","smoothly-input-date","smoothly-input-date-demo","smoothly-input-date-range","smoothly-input-date-time","smoothly-input-demo-radio","smoothly-input-demo-standard","smoothly-input-demo-user-input","smoothly-input-file","smoothly-input-month","smoothly-input-price-demo","smoothly-input-radio","smoothly-input-radio-item","smoothly-input-range","smoothly-input-range-demo","smoothly-input-reset","smoothly-input-select","smoothly-input-submit","smoothly-item","smoothly-spinner","smoothly-tab","smoothly-tabs","smoothly-toggle-switch"];e.forEach((e=>{switch(e){case"smoothly-input-demo":if(!customElements.get(c(e))){customElements.define(c(e),_)}break;case"smoothly-back-to-top":if(!customElements.get(c(e))){d()}break;case"smoothly-button":if(!customElements.get(c(e))){l()}break;case"smoothly-button-confirm":if(!customElements.get(c(e))){i()}break;case"smoothly-calendar":if(!customElements.get(c(e))){f()}break;case"smoothly-date-text":if(!customElements.get(c(e))){n()}break;case"smoothly-display":if(!customElements.get(c(e))){b()}break;case"smoothly-display-json":if(!customElements.get(c(e))){r()}break;case"smoothly-display-json-object":if(!customElements.get(c(e))){y()}break;case"smoothly-display-json-primitive":if(!customElements.get(c(e))){u()}break;case"smoothly-display-json-record-key":if(!customElements.get(c(e))){h()}break;case"smoothly-form":if(!customElements.get(c(e))){p()}break;case"smoothly-icon":if(!customElements.get(c(e))){k()}break;case"smoothly-input":if(!customElements.get(c(e))){v()}break;case"smoothly-input-checkbox":if(!customElements.get(c(e))){g()}break;case"smoothly-input-clear":if(!customElements.get(c(e))){j()}break;case"smoothly-input-color":if(!customElements.get(c(e))){E()}break;case"smoothly-input-color-demo":if(!customElements.get(c(e))){x()}break;case"smoothly-input-date":if(!customElements.get(c(e))){w()}break;case"smoothly-input-date-demo":if(!customElements.get(c(e))){C()}break;case"smoothly-input-date-range":if(!customElements.get(c(e))){S()}break;case"smoothly-input-date-time":if(!customElements.get(c(e))){D()}break;case"smoothly-input-demo-radio":if(!customElements.get(c(e))){L()}break;case"smoothly-input-demo-standard":if(!customElements.get(c(e))){B()}break;case"smoothly-input-demo-user-input":if(!customElements.get(c(e))){z()}break;case"smoothly-input-file":if(!customElements.get(c(e))){I()}break;case"smoothly-input-month":if(!customElements.get(c(e))){A()}break;case"smoothly-input-price-demo":if(!customElements.get(c(e))){F()}break;case"smoothly-input-radio":if(!customElements.get(c(e))){M()}break;case"smoothly-input-radio-item":if(!customElements.get(c(e))){H()}break;case"smoothly-input-range":if(!customElements.get(c(e))){K()}break;case"smoothly-input-range-demo":if(!customElements.get(c(e))){N()}break;case"smoothly-input-reset":if(!customElements.get(c(e))){R()}break;case"smoothly-input-select":if(!customElements.get(c(e))){U()}break;case"smoothly-input-submit":if(!customElements.get(c(e))){J()}break;case"smoothly-item":if(!customElements.get(c(e))){G()}break;case"smoothly-spinner":if(!customElements.get(c(e))){T()}break;case"smoothly-tab":if(!customElements.get(c(e))){Q()}break;case"smoothly-tabs":if(!customElements.get(c(e))){O()}break;case"smoothly-toggle-switch":if(!customElements.get(c(e))){V()}break}}))}q();export{_ as S,q as d};
|
|
2
|
+
//# sourceMappingURL=p-BXoBluZQ.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{p as o,H as t,c as s,h as e,d as m,t as a}from"./p-BsZrGTcp.js";import{i as r}from"./p-BVKhAhsB.js";import{o as i}from"./p-Dr7iZPxA.js";import{f as n}from"./p-CkXes5c-.js";import{N as c}from"./p-C6lWCoIT.js";import"./p-DoFURPl2.js";import{d as l}from"./p-BHEtq3Ue.js";import{d as f}from"./p-DX3KKRD9.js";import{d as p}from"./p-
|
|
2
|
-
//# sourceMappingURL=p-
|
|
1
|
+
import{p as o,H as t,c as s,h as e,d as m,t as a}from"./p-BsZrGTcp.js";import{i as r}from"./p-BVKhAhsB.js";import{o as i}from"./p-Dr7iZPxA.js";import{f as n}from"./p-CkXes5c-.js";import{N as c}from"./p-C6lWCoIT.js";import"./p-DoFURPl2.js";import{d as l}from"./p-BHEtq3Ue.js";import{d as f}from"./p-DX3KKRD9.js";import{d as p}from"./p-1j2KmcfQ.js";import{d as h}from"./p-AX8gOGUr.js";import{d as u}from"./p-DIhqNc1G.js";import{d as y}from"./p-BiQsRsV4.js";import{d}from"./p-NFd9Dxr1.js";import{d as b}from"./p-CtuuZV3u.js";import{d as k}from"./p-CJEV2v84.js";import{d as j}from"./p-CqyGm3oe.js";import{d as E}from"./p-fnKrPnzp.js";import{d as g}from"./p-Bpc6uh0M.js";const D=()=>`.sc-smoothly-form-demo-date-range-h{display:block}`;const x=o(class o extends t{constructor(o){super();if(o!==false){this.__registerHost()}this.notice=s(this,"notice");this.validator=i({range:n("isoly.DateRange",r.DateRange.is)})}async submitHandler(o){o.stopPropagation();if(!this.validator.is(o.detail.value)){console.error(`Type is incomplete.`);this.notice.emit(c.failed(`Type is incomplete.`))}else{this.notice.emit(c.succeeded(`Type is complete!`));o.detail.result(true)}o.detail.result(false)}render(){return e(m,{key:"5cbcb41cef877f0e9fb78ce81697fc2439abb4f0"},e("h2",{key:"6a4ff28901af3515b1b7e6bf6b7feaf6a2d382a0"},"Date-range input"),e("smoothly-form",{key:"9579ce7a593f945b634c669880b9eb39a41f059f",looks:"border",type:"create",validator:this.validator,onSmoothlyFormSubmit:o=>this.submitHandler(o)},e("smoothly-input-date-range",{key:"43a8f7e8882a37479f5a52d902798815828d86c4",name:"range"},"Range"),e("smoothly-input-submit",{key:"72c48ab7aa2df6e594a2256969e31ad98543decc",slot:"submit"},e("smoothly-icon",{key:"71ae5057364c903f6fae97c46d3acef660471cc4",name:"checkmark-outline"}))))}static get style(){return D()}},[2,"smoothly-form-demo-date-range"]);function B(){if(typeof customElements==="undefined"){return}const o=["smoothly-form-demo-date-range","smoothly-button","smoothly-button-confirm","smoothly-calendar","smoothly-date-text","smoothly-form","smoothly-icon","smoothly-input-date-range","smoothly-input-month","smoothly-input-select","smoothly-input-submit","smoothly-item","smoothly-spinner"];o.forEach((o=>{switch(o){case"smoothly-form-demo-date-range":if(!customElements.get(a(o))){customElements.define(a(o),x)}break;case"smoothly-button":if(!customElements.get(a(o))){l()}break;case"smoothly-button-confirm":if(!customElements.get(a(o))){f()}break;case"smoothly-calendar":if(!customElements.get(a(o))){p()}break;case"smoothly-date-text":if(!customElements.get(a(o))){h()}break;case"smoothly-form":if(!customElements.get(a(o))){u()}break;case"smoothly-icon":if(!customElements.get(a(o))){y()}break;case"smoothly-input-date-range":if(!customElements.get(a(o))){d()}break;case"smoothly-input-month":if(!customElements.get(a(o))){b()}break;case"smoothly-input-select":if(!customElements.get(a(o))){k()}break;case"smoothly-input-submit":if(!customElements.get(a(o))){j()}break;case"smoothly-item":if(!customElements.get(a(o))){E()}break;case"smoothly-spinner":if(!customElements.get(a(o))){g()}break}}))}B();export{x as S,B as d};
|
|
2
|
+
//# sourceMappingURL=p-B_z5-Hf8.js.map
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{p as e,H as a,h as o,d as l,t as s}from"./p-BsZrGTcp.js";import{d as t}from"./p-DM5CKilY.js";import{d as c}from"./p-CR3Ni_o7.js";import{d as m}from"./p-B-l1S16Z.js";import{d as y}from"./p-Ud7Qhkgt.js";import{d}from"./p-C3FORjes.js";import{d as b}from"./p-CApTrLt_.js";import{d as f}from"./p-BEHgXDtQ.js";import{d as p}from"./p-Bes8H54c.js";import{d as r}from"./p-BGBbdXaw.js";import{d as i}from"./p-CPnXAdGI.js";import{d as h}from"./p-CL7fW_Oh.js";import{d as n}from"./p-D-mAUrbR.js";import{d as k}from"./p-C02MtoAQ.js";const u=()=>`.sc-smoothly-table-demo-colspan-h{display:block}.sc-smoothly-table-demo-colspan-h smoothly-display.sc-smoothly-table-demo-colspan{display:inline}`;const j=e(class e extends a{constructor(e){super();if(e!==false){this.__registerHost()}}render(){return o(l,{key:"591888818b4300109779447443c6e5aab1b14da8"},o("smoothly-table",{key:"c938d62de711c1ccf5f4688757b3513df44e8af8",columns:3},o("smoothly-table-head",{key:"479a91f092d7ab61f5e023187b3962cbcfa752ea"},o("smoothly-table-row",{key:"09acaf59f4ab8afc3af9931911547c6c9160e96c"},o("smoothly-table-cell",{key:"7d8343c2153cc0dad70a3b93f713297911b6a999"},"Date"),o("smoothly-table-cell",{key:"e383250690b45d63ca6932488089448063a00b59"},"Skip"),o("smoothly-table-cell",{key:"9249209f1c691bf8b599c19a7c69241b4c375bfc"},"Total"))),o("smoothly-table-body",{key:"08ae40864961b80b1522166a429f53962f0248c5"},o("smoothly-table-row",{key:"ea7dd286a24979f8d193c215fcf97728a165fa16"},o("smoothly-table-cell",{key:"441dee1ea77f41f61fc110987a62e404a05aa297",span:2},o("smoothly-display",{key:"b6f97a5c900d27d4cd5c8a3193c08d379c73da0a",type:"date",value:"2024-01-01"})),o("smoothly-table-cell",{key:"a3c7b056c9b0af04ec00c95d01422d2f56c3c806"},o("smoothly-display",{key:"dc812c579111236c03c21edaafb7906297cb2625",type:"price",value:120,currency:"EUR"}))),o("smoothly-table-row",{key:"004a397622e3facc508a92e645a3ac4fa9532e0a"},o("smoothly-table-expandable-cell",{key:"a4b75ba00befe6a8a34fc5c99690cb03c3ade7d7",span:2},o("smoothly-display",{key:"bb91f39b2d8833ad116268618a9be82aa96a2fc4",type:"date",value:"2024-01-02"}),o("smoothly-lazy",{key:"51e9b4cf9d9a9ef15c04996aef32d7ec916ae79b",slot:"detail",content:o("smoothly-display",{type:"date-time",value:"2024-01-02T13:37:00.000Z"})})),o("smoothly-table-expandable-cell",{key:"cbce7604964ca0c217d549bc1b1e50758b0217b8"},o("smoothly-display",{key:"3cabab2c49146b2ac49882b592ce38cae1dd17ce",type:"price",value:220,currency:"EUR"}),o("smoothly-lazy",{key:"84d7a668b2f59da0df7a95eb1fa3d8221365f2f8",slot:"detail",content:o("span",null,o("smoothly-display",{type:"price",value:120,currency:"EUR"})," + ",o("smoothly-display",{type:"price",value:100,currency:"EUR"}))}))),o("smoothly-table-row",{key:"8c8cabd1f86d8c435925a3e2386bfe91f9d604da"},o("smoothly-table-cell",{key:"36d5b65550ad5c09fed7441e9c0892bdf595d979"},o("smoothly-display",{key:"3580d0ec9bcabc49ba7e3247786c3626760dd405",type:"date",value:"2024-01-02"})),o("smoothly-table-cell",{key:"cf38589846b2f9925a79f79d64c298e96a3174b8"},"Not Skipped"),o("smoothly-table-cell",{key:"2ae25896d0fcfaa3884da36a63bda5bd730797bd"},o("smoothly-display",{key:"88fed0a43e38e936abc981beac382b83e86263e6",type:"price",value:320,currency:"EUR"}))))))}static get style(){return u()}},[2,"smoothly-table-demo-colspan"]);function E(){if(typeof customElements==="undefined"){return}const e=["smoothly-table-demo-colspan","smoothly-display","smoothly-display-json","smoothly-display-json-object","smoothly-display-json-primitive","smoothly-display-json-record-key","smoothly-lazy","smoothly-load-more","smoothly-table","smoothly-table-body","smoothly-table-cell","smoothly-table-expandable-cell","smoothly-table-head","smoothly-table-row"];e.forEach((e=>{switch(e){case"smoothly-table-demo-colspan":if(!customElements.get(s(e))){customElements.define(s(e),j)}break;case"smoothly-display":if(!customElements.get(s(e))){t()}break;case"smoothly-display-json":if(!customElements.get(s(e))){c()}break;case"smoothly-display-json-object":if(!customElements.get(s(e))){m()}break;case"smoothly-display-json-primitive":if(!customElements.get(s(e))){y()}break;case"smoothly-display-json-record-key":if(!customElements.get(s(e))){d()}break;case"smoothly-lazy":if(!customElements.get(s(e))){b()}break;case"smoothly-load-more":if(!customElements.get(s(e))){f()}break;case"smoothly-table":if(!customElements.get(s(e))){p()}break;case"smoothly-table-body":if(!customElements.get(s(e))){r()}break;case"smoothly-table-cell":if(!customElements.get(s(e))){i()}break;case"smoothly-table-expandable-cell":if(!customElements.get(s(e))){h()}break;case"smoothly-table-head":if(!customElements.get(s(e))){n()}break;case"smoothly-table-row":if(!customElements.get(s(e))){k()}break}}))}E();export{j as S,E as d};
|
|
2
|
+
//# sourceMappingURL=p-BanWK6rV.js.map
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{p as e,H as o,h as l,d as t,t as s}from"./p-BsZrGTcp.js";const a=()=>`.sc-smoothly-table-h{display:grid;grid-template-columns:repeat(var(--columns), auto);color:rgb(var(--smoothly-table-foreground));stroke:rgb(var(--smoothly-table-foreground));fill:rgb(var(--smoothly-table-foreground))}`;const n=e(class e extends o{constructor(e){super();if(e!==false){this.__registerHost()}this.columns=1}smoothlyTableExpandableRowChange(e){e.stopPropagation()}smoothlyTableExpandableCellChange(e){e.stopPropagation()}render(){return l(t,{key:"e1e0fc478ebf90003f156eddb44e1de2213cf4e0",style:{"--columns":this.columns.toString()}},l("slot",{key:"10e080ed0213084a43750f73df364993b30f72b4"}))}static get style(){return a()}},[262,"smoothly-table",{columns:[2]},[[0,"smoothlyTableExpandableRowChange","smoothlyTableExpandableRowChange"],[0,"smoothlyTableExpandableCellChange","smoothlyTableExpandableCellChange"]]]);function r(){if(typeof customElements==="undefined"){return}const e=["smoothly-table"];e.forEach((e=>{switch(e){case"smoothly-table":if(!customElements.get(s(e))){customElements.define(s(e),n)}break}}))}r();export{n as S,r as d};
|
|
2
|
+
//# sourceMappingURL=p-Bes8H54c.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["styleCss","SmoothlyTable","__stencil_proxyCustomElement","HTMLElement","constructor","registerHost","this","columns","smoothlyTableExpandableRowChange","event","stopPropagation","smoothlyTableExpandableCellChange","render","h","Host","key","style","toString"],"sources":["src/components/table/style.css?tag=smoothly-table&encapsulation=scoped","src/components/table/index.tsx"],"sourcesContent":[":host {\n\tdisplay: grid;\n\tgrid-template-columns: repeat(var(--columns), auto);\n\tcolor: rgb(var(--smoothly-table-foreground));\n\tstroke: rgb(var(--smoothly-table-foreground));\n\tfill: rgb(var(--smoothly-table-foreground));\n}\n","import { Component, h, Host, Listen, Prop, VNode } from \"@stencil/core\"\nimport { SmoothlyTableExpandableCellCustomEvent } from \"../../components\"\n\n@Component({\n\ttag: \"smoothly-table\",\n\tstyleUrl: \"style.css\",\n\tscoped: true,\n})\nexport class SmoothlyTable {\n\t@Prop() columns = 1\n\n\t@Listen(\"smoothlyTableExpandableRowChange\")\n\tsmoothlyTableExpandableRowChange(event: SmoothlyTableExpandableCellCustomEvent<boolean>): void {\n\t\tevent.stopPropagation()\n\t}\n\n\t@Listen(\"smoothlyTableExpandableCellChange\")\n\tsmoothlyTableExpandableCellChange(event: SmoothlyTableExpandableCellCustomEvent<boolean>): void {\n\t\tevent.stopPropagation()\n\t}\n\n\trender(): VNode | VNode[] {\n\t\treturn (\n\t\t\t<Host style={{ \"--columns\": this.columns.toString() }}>\n\t\t\t\t<slot />\n\t\t\t</Host>\n\t\t)\n\t}\n}\n"],"mappings":"
|
|
1
|
+
{"version":3,"names":["styleCss","SmoothlyTable","__stencil_proxyCustomElement","HTMLElement","constructor","registerHost","this","columns","smoothlyTableExpandableRowChange","event","stopPropagation","smoothlyTableExpandableCellChange","render","h","Host","key","style","toString"],"sources":["src/components/table/style.css?tag=smoothly-table&encapsulation=scoped","src/components/table/index.tsx"],"sourcesContent":[":host {\n\tdisplay: grid;\n\tgrid-template-columns: repeat(var(--columns), auto);\n\tcolor: rgb(var(--smoothly-table-foreground));\n\tstroke: rgb(var(--smoothly-table-foreground));\n\tfill: rgb(var(--smoothly-table-foreground));\n}\n","import { Component, h, Host, Listen, Prop, VNode } from \"@stencil/core\"\nimport { SmoothlyTableExpandableCellCustomEvent } from \"../../components\"\n\n@Component({\n\ttag: \"smoothly-table\",\n\tstyleUrl: \"style.css\",\n\tscoped: true,\n})\nexport class SmoothlyTable {\n\t@Prop() columns = 1\n\n\t@Listen(\"smoothlyTableExpandableRowChange\")\n\tsmoothlyTableExpandableRowChange(event: SmoothlyTableExpandableCellCustomEvent<boolean>): void {\n\t\tevent.stopPropagation()\n\t}\n\n\t@Listen(\"smoothlyTableExpandableCellChange\")\n\tsmoothlyTableExpandableCellChange(event: SmoothlyTableExpandableCellCustomEvent<boolean>): void {\n\t\tevent.stopPropagation()\n\t}\n\n\trender(): VNode | VNode[] {\n\t\treturn (\n\t\t\t<Host style={{ \"--columns\": this.columns.toString() }}>\n\t\t\t\t<slot />\n\t\t\t</Host>\n\t\t)\n\t}\n}\n"],"mappings":"gEAAA,MAAMA,EAAW,IAAM,4N,MCQVC,EAAaC,EAAA,MAAAD,UAAAE,EAL1B,WAAAC,CAAAC,G,4CAMSC,KAAAC,QAAU,CAmBlB,CAhBA,gCAAAC,CAAiCC,GAChCA,EAAMC,iB,CAIP,iCAAAC,CAAkCF,GACjCA,EAAMC,iB,CAGP,MAAAE,GACC,OACCC,EAACC,EAAI,CAAAC,IAAA,2CAACC,MAAO,CAAE,YAAaV,KAAKC,QAAQU,aACxCJ,EAAA,QAAAE,IAAA,6C","ignoreList":[]}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{p as o,H as t,c as s,h as i,d as a,t as l}from"./p-BsZrGTcp.js";import{E as n}from"./p-DFXJvHuL.js";import{I as e}from"./p-
|
|
2
|
-
//# sourceMappingURL=p-
|
|
1
|
+
import{p as o,H as t,c as s,h as i,d as a,t as l}from"./p-BsZrGTcp.js";import{E as n}from"./p-DFXJvHuL.js";import{I as e}from"./p-DIhqNc1G.js";const r=()=>`.sc-smoothly-input-radio-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-radio-h{border:rgb(var(--smoothly-input-border)) solid 1px}[looks="border"].sc-smoothly-input-radio-h:not([readonly]):not([disabled]):focus-within{outline:2px solid rgb(var(--smoothly-input-border-focus))}[looks="border"][readonly].sc-smoothly-input-radio-h{border:transparent solid 1px}[looks="line"].sc-smoothly-input-radio-h{border-bottom:rgb(var(--smoothly-input-border)) solid 1px;position:relative}[looks="line"][readonly].sc-smoothly-input-radio-h{border-bottom:transparent solid 1px}[looks="line"].sc-smoothly-input-radio-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-radio-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-radio-h{box-shadow:0px 0px 0px 1px rgba(var(--smoothly-input-border-readonly))}[looks="grid"].sc-smoothly-input-radio-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-radio-h{border:none}[looks="transparent"][readonly].sc-smoothly-input-radio-h,[looks="transparent"].sc-smoothly-input-radio-h:not(:focus-within){background-color:transparent}[looks="transparent"][readonly].sc-smoothly-input-radio-h>input.sc-smoothly-input-radio,[looks="transparent"].sc-smoothly-input-radio-h:not(:focus-within)>input.sc-smoothly-input-radio{background-color:transparent}[looks="transparent"].sc-smoothly-input-radio-h:not([readonly]):focus-within{outline:1px solid rgb(var(--smoothly-input-border))}[disabled].sc-smoothly-input-radio-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-radio-h.sc-smoothly-input-radio-s>[slot=label],.sc-smoothly-input-radio-h .sc-smoothly-input-radio-s>[slot=label],.sc-smoothly-input-radio-h .label.sc-smoothly-input-radio{position:absolute;top:.6rem;opacity:0.8;user-select:none;cursor:inherit;transform-origin:top left;transition:transform 100ms ease}.sc-smoothly-input-radio-h.floating-label.sc-smoothly-input-radio-s>[slot=label],.sc-smoothly-input-radio-h.floating-label .sc-smoothly-input-radio-s>[slot=label],.sc-smoothly-input-radio-h.has-value.sc-smoothly-input-radio-s>[slot=label],.sc-smoothly-input-radio-h.has-value .sc-smoothly-input-radio-s>[slot=label],.sc-smoothly-input-radio-h[placeholder].sc-smoothly-input-radio-s>[slot=label],.sc-smoothly-input-radio-h[placeholder] .sc-smoothly-input-radio-s>[slot=label],.sc-smoothly-input-radio-h[readonly].sc-smoothly-input-radio-s>[slot=label],.sc-smoothly-input-radio-h[readonly] .sc-smoothly-input-radio-s>[slot=label],.floating-label.sc-smoothly-input-radio-h .label.sc-smoothly-input-radio,.has-value.sc-smoothly-input-radio-h .label.sc-smoothly-input-radio,.has-text.sc-smoothly-input-radio-h .label.sc-smoothly-input-radio,[placeholder].sc-smoothly-input-radio-h .label.sc-smoothly-input-radio,[readonly].sc-smoothly-input-radio-h .label.sc-smoothly-input-radio,.sc-smoothly-input-radio-h:not([readonly]):focus-within .label.float-on-focus.sc-smoothly-input-radio{top:.2rem;transform:scale(0.8)}.sc-smoothly-input-radio-h:not([show-label]):not(.show-label) .label.sc-smoothly-input-radio{display:none}.sc-smoothly-input-radio-h smoothly-icon.smoothly-invalid.sc-smoothly-input-radio{fill:rgb(var(--smoothly-input-invalid-icon, var(--smoothly-danger-color)))}.sc-smoothly-input-radio-h{background-color:rgb(var(--smoothly-input-background));display:flex;align-items:center;padding-left:var(--input-padding-side);box-sizing:border-box}[show-label].sc-smoothly-input-radio-h>div.sc-smoothly-input-radio{position:relative;padding-block:var(--input-value-padding-top) var(--input-value-padding-bottom)}.sc-smoothly-input-radio-h>div.sc-smoothly-input-radio,.sc-smoothly-input-radio-h>div.sc-smoothly-input-radio>div.options.sc-smoothly-input-radio{display:flex;gap:1.5rem;width:100%}[direction=column].sc-smoothly-input-radio-h>div.sc-smoothly-input-radio>div.options.sc-smoothly-input-radio{flex-direction:column}.sc-smoothly-input-radio-h.sc-smoothly-input-radio-s>[slot=end]{margin-right:0;margin-left:auto}[disabled].sc-smoothly-input-radio-h smoothly-input-radio-item.sc-smoothly-input-radio *.sc-smoothly-input-radio{cursor:not-allowed}`;const h=o(class o extends t{constructor(o){super();if(o!==false){this.__registerHost()}this.smoothlyInputLooks=s(this,"smoothlyInputLooks");this.smoothlyInput=s(this,"smoothlyInput");this.smoothlyUserInput=s(this,"smoothlyUserInput");this.smoothlyInputLoad=s(this,"smoothlyInputLoad");this.smoothlyFormDisable=s(this,"smoothlyFormDisable");this.isDifferentFromInitial=false;this.valueReceivedOnLoad=false;this.observer=n.Observer.create(this);this.value=undefined;this.readonly=false;this.showLabel=true}componentWillLoad(){this.smoothlyInputLooks.emit(((o,t)=>{var s;return this.looks=(s=this.looks)!==null&&s!==void 0?s:o,this.color=t}));!this.readonly&&this.smoothlyFormDisable.emit((o=>this.readonly=o));this.observer.publish()}componentDidLoad(){!this.valueReceivedOnLoad&&this.smoothlyInput.emit({[this.name]:this.value});this.smoothlyInputLoad.emit((o=>this.parent=o));this.initialValue=this.active}handleRegister(o){o.stopPropagation();o.detail(this)}smoothlyInputLoadHandler(o){e.registerSubAction(this,o)}smoothlyRadioInputHandler(o){var t,s,i;o.stopPropagation();if(!this.readonly&&!this.disabled||!this.valueReceivedOnLoad){if(this.clearable&&((t=this.active)===null||t===void 0?void 0:t.value)===o.detail.value){this.clear()}else if(((s=this.active)===null||s===void 0?void 0:s.value)!==o.detail.value){(i=this.active)===null||i===void 0?void 0:i.select(false);this.active=o.detail;this.value=this.active.value;this.active.select(true)}}if(o.detail.userInitiated){this.smoothlyUserInput.emit({name:this.name,value:this.value})}!this.valueReceivedOnLoad&&(this.valueReceivedOnLoad=!this.valueReceivedOnLoad)}async listen(o){this.observer.subscribe(o)}async disconnectedCallback(){if(!this.element.isConnected){await this.unregister()}}nameChange(o,t){e.formRename(this,t)}async register(){e.formAdd(this)}async unregister(){e.formRemove(this)}async getValue(){return this.value}async clear(){var o;if(this.clearable){(o=this.active)===null||o===void 0?void 0:o.select(false);this.active=undefined;this.value=undefined}}async edit(o){this.readonly=!o}async reset(){var o,t,s;(o=this.active)===null||o===void 0?void 0:o.select(false);this.active=this.initialValue;this.value=(t=this.initialValue)===null||t===void 0?void 0:t.value;(s=this.active)===null||s===void 0?void 0:s.select(true)}async setInitialValue(){this.initialValue=this.active;this.valueChanged()}async valueChanged(){var o;this.valueReceivedOnLoad&&(this.isDifferentFromInitial=((o=this.initialValue)===null||o===void 0?void 0:o.value)!==this.value);this.smoothlyInput.emit({[this.name]:await this.getValue()});this.observer.publish()}watchingReadonly(){this.observer.publish()}render(){return i(a,{key:"9fc1e8e96700c712be6093737a8fe0b1ac85b78f",class:"floating-label"},i("slot",{key:"5a15933d73444cd550b51374b441c1da91671ec1",name:"start"}),i("div",{key:"cc7434af11b658917d8f7505b6575627a832ca13"},i("slot",{key:"2f9427184a5c285cb7f0201a5782eae9631df43a",name:"label"}),i("div",{key:"021d9fe6508e9726a8a80da21c5d0245e091cd06",class:"options"},i("slot",{key:"3e683b89f8cfb733fc8fb42cc2c7269e4317a2a8"}))),i("slot",{key:"197ca8b9be9417179baee6f4d558e4afcd4f4a76",name:"end"}))}get element(){return this}static get watchers(){return{name:[{nameChange:0}],value:[{valueChanged:0}],disabled:[{watchingReadonly:0}],readonly:[{watchingReadonly:0}]}}static get style(){return r()}},[262,"smoothly-input-radio",{value:[1032],looks:[1537],color:[1537],direction:[513],clearable:[4],readonly:[1540],disabled:[516],name:[513],showLabel:[516,"show-label"],listen:[64],register:[64],unregister:[64],getValue:[64],clear:[64],edit:[64],reset:[64],setInitialValue:[64]},[[0,"smoothlyRadioItemRegister","handleRegister"],[0,"smoothlyInputLoad","smoothlyInputLoadHandler"],[0,"smoothlyRadioItemSelect","smoothlyRadioInputHandler"]],{name:[{nameChange:0}],value:[{valueChanged:0}],disabled:[{watchingReadonly:0}],readonly:[{watchingReadonly:0}]}]);function d(){if(typeof customElements==="undefined"){return}const o=["smoothly-input-radio"];o.forEach((o=>{switch(o){case"smoothly-input-radio":if(!customElements.get(l(o))){customElements.define(l(o),h)}break}}))}d();export{h as S,d};
|
|
2
|
+
//# sourceMappingURL=p-BfwEfI7H.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{p as e,H as s,h as t,d as o,t as m}from"./p-BsZrGTcp.js";import{d as a}from"./p-BHEtq3Ue.js";import{d as c}from"./p-DM5CKilY.js";import{d as l}from"./p-CR3Ni_o7.js";import{d}from"./p-B-l1S16Z.js";import{d
|
|
2
|
-
//# sourceMappingURL=p-
|
|
1
|
+
import{p as e,H as s,h as t,d as o,t as m}from"./p-BsZrGTcp.js";import{d as a}from"./p-BHEtq3Ue.js";import{d as c}from"./p-DM5CKilY.js";import{d as l}from"./p-CR3Ni_o7.js";import{d as i}from"./p-B-l1S16Z.js";import{d}from"./p-Ud7Qhkgt.js";import{d as r}from"./p-C3FORjes.js";import{d as y}from"./p-BiQsRsV4.js";import{d as h}from"./p-CJEV2v84.js";import{d as p}from"./p-fnKrPnzp.js";import{d as f}from"./p-BpV6GXd7.js";import{d as n}from"./p-BnYCDLp0.js";import{d as b}from"./p-D_uKY0yY.js";import{d as u}from"./p-He4KDK9-.js";import{d as k}from"./p-CqMnH54Q.js";const j=()=>`.sc-smoothly-theme-demo-h{max-width:min(calc(100% - 2rem), 56rem);margin:auto;display:flex;flex-direction:column;gap:2em;margin-top:2em}.sc-smoothly-theme-demo-h>smoothly-theme-picker.sc-smoothly-theme-demo{width:20em}.sc-smoothly-theme-demo-h>div.sc-smoothly-theme-demo{display:flex;flex-direction:row;justify-content:space-between;gap:1rem}`;const E=e(class e extends s{constructor(e){super();if(e!==false){this.__registerHost()}}render(){return t(o,{key:"259010889b682573bbfb69b7711dcf03f972b06f"},t("h2",{key:"fe4330363bc1b6322e015569a02662077907cca8"},"Theme"),t("smoothly-theme-picker",{key:"6df264adb5b90050418224f373e927dc33373d3f"},t("smoothly-item",{key:"ac79f3b604c3b6bffe8e1cd19e7b24b03960bf14",selected:true,value:"assets/style/smoothly.css"},"Smoothly"),t("smoothly-item",{key:"4ca9bad0897a7a216a56aa0db0004a6e14b6f272",value:"https://app.issuefab.com/assets/style/index.css"},"Issuefab"),t("smoothly-item",{key:"2e71be7455105d37aa039c6347e4aa24dab3c15a",value:"https://app.proquse.com/assets/style/index.css"},"Proquse"),t("smoothly-item",{key:"235223f83245bb7cc3455f2102237a8923c5cf22",value:"https://app.weekmeter.com/assets/style/index.css"},"Weekmeter"),t("smoothly-item",{key:"43153d498cde19b3a97ea93036be8dabb90c86d7",value:"https://test.dash.pax2pay.app/p2pdash.css"},"Pax2Pay Dashboard"),t("smoothly-item",{key:"e5e1e6079b7b20cfe8a62c5572f1fa48c6365a90",value:"https://ui.pax2pay.app/assets/style/pax2pay.css"},"Pax2Pay Portal"),t("smoothly-item",{key:"26b2f21f376a927f788771a32292d3fb13d7380e",value:"https://theme.payfunc.com/intergiro/index.css"},"Intergiro Monitor"),t("smoothly-item",{key:"c36d493ae4ba1b8152c3bb8f41b086b08437f600",value:"https://theme.payfunc.com/light/index.css"},"Payfunc Light"),t("smoothly-item",{key:"1dab38f02ffadd2e2160f99f6209f72e294ac874",value:"https://theme.payfunc.com/dark/index.css"},"Payfunc Dark")),t("div",{key:"f542097bfc16f9214244cfb7bcc1e2a2e31704e8"},t("smoothly-theme-colors",{key:"a363e1e7ba2164cd58bc1fa03d5b9d13c8e81c10"}),t("smoothly-theme-guide",{key:"bedcda407b6d30d538176e1c32112d455feddcfd"})),t("smoothly-button",{key:"aeb9185b1efeb83db2e4359b733c8bad207adb2b",type:"link",link:"/redirect"},"To redirect"),t("smoothly-button",{key:"761c81b4c4724e61a6d7bb96f44ef3d241b86ee1",type:"link",link:"/redirect"},"To /redirect"),t("smoothly-button",{key:"a45adb52d81652f71a997c9f1c81466822e3da4e",type:"link",link:new URL("/redirect",window.location.origin).href},'To new URL("redirect")'),t("smoothly-button",{key:"0ad5ce583e40ea790411d756bcc0d9ebb118452c",type:"link",link:"redirect/nested"},"To redirect nested"))}static get style(){return j()}},[2,"smoothly-theme-demo"]);function x(){if(typeof customElements==="undefined"){return}const e=["smoothly-theme-demo","smoothly-button","smoothly-display","smoothly-display-json","smoothly-display-json-object","smoothly-display-json-primitive","smoothly-display-json-record-key","smoothly-icon","smoothly-input-select","smoothly-item","smoothly-theme-color","smoothly-theme-color-variant","smoothly-theme-colors","smoothly-theme-guide","smoothly-theme-picker"];e.forEach((e=>{switch(e){case"smoothly-theme-demo":if(!customElements.get(m(e))){customElements.define(m(e),E)}break;case"smoothly-button":if(!customElements.get(m(e))){a()}break;case"smoothly-display":if(!customElements.get(m(e))){c()}break;case"smoothly-display-json":if(!customElements.get(m(e))){l()}break;case"smoothly-display-json-object":if(!customElements.get(m(e))){i()}break;case"smoothly-display-json-primitive":if(!customElements.get(m(e))){d()}break;case"smoothly-display-json-record-key":if(!customElements.get(m(e))){r()}break;case"smoothly-icon":if(!customElements.get(m(e))){y()}break;case"smoothly-input-select":if(!customElements.get(m(e))){h()}break;case"smoothly-item":if(!customElements.get(m(e))){p()}break;case"smoothly-theme-color":if(!customElements.get(m(e))){f()}break;case"smoothly-theme-color-variant":if(!customElements.get(m(e))){n()}break;case"smoothly-theme-colors":if(!customElements.get(m(e))){b()}break;case"smoothly-theme-guide":if(!customElements.get(m(e))){u()}break;case"smoothly-theme-picker":if(!customElements.get(m(e))){k()}break}}))}x();export{E as S,x as d};
|
|
2
|
+
//# sourceMappingURL=p-Bn7CZqdz.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{p as t,H as o,h as e,d as s,t as r}from"./p-BsZrGTcp.js";import{d as c}from"./p-BnYCDLp0.js";const l=()=>`.sc-smoothly-theme-color-h{display:flex;flex-direction:column;align-items:center}.sc-smoothly-theme-color-h>.sc-smoothly-theme-color:first-child{margin-top:0.2rem}`;const m=t(class t extends o{constructor(t){super();if(t!==false){this.__registerHost()}}render(){return e(s,{key:"
|
|
2
|
-
//# sourceMappingURL=p-
|
|
1
|
+
import{p as t,H as o,h as e,d as s,t as r}from"./p-BsZrGTcp.js";import{d as c}from"./p-BnYCDLp0.js";const l=()=>`.sc-smoothly-theme-color-h{display:flex;flex-direction:column;align-items:center}.sc-smoothly-theme-color-h>.sc-smoothly-theme-color:first-child{margin-top:0.2rem}`;const m=t(class t extends o{constructor(t){super();if(t!==false){this.__registerHost()}}render(){return e(s,{key:"2ffa9ed25b646e14b48d6da53a3afd3a9f897468"},this.color,["tint","color","shade"].map((t=>e("smoothly-theme-color-variant",{title:`${this.color} ${t}`,color:this.color,variant:t}))))}static get style(){return l()}},[2,"smoothly-theme-color",{color:[1]}]);function a(){if(typeof customElements==="undefined"){return}const t=["smoothly-theme-color","smoothly-theme-color-variant"];t.forEach((t=>{switch(t){case"smoothly-theme-color":if(!customElements.get(r(t))){customElements.define(r(t),m)}break;case"smoothly-theme-color-variant":if(!customElements.get(r(t))){c()}break}}))}a();export{m as S,a as d};
|
|
2
|
+
//# sourceMappingURL=p-BpV6GXd7.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{p as s,H as r,h as e,d as n,t as o}from"./p-BsZrGTcp.js";const t=()=>`[hidden].sc-smoothly-spinner-h{display:none}.sc-smoothly-spinner-h{cursor:wait;--spinner-time:1.4s;--spinner-color:var(--smoothly-color-contrast);--spinner-background:var(--smoothly-color);--spinner-background-opacity:var(--smoothly-semitransparent, 0.8);display:block;stroke:rgb(var(--spinner-color));background-color:rgba(var(--spinner-background), var(--spinner-background-opacity))}.sc-smoothly-spinner-h:not([overlay]){width:var(--spinner-size);height:var(--spinner-size)}[overlay].sc-smoothly-spinner-h{position:absolute;inset:0;width:100%;height:100%;z-index:4;background-color:rgba(var(--spinner-background), var(--spinner-background-opacity))}[color].sc-smoothly-spinner-h:not([overlay]),[color][overlay].sc-smoothly-spinner-h{background-color:rgba(var(--spinner-background), var(--spinner-background-opacity));stroke:rgb(var(--spinner-color))}[overlay].sc-smoothly-spinner-h>svg.sc-smoothly-spinner{position:absolute;width:var(--spinner-size);left:calc(50% - var(--spinner-size) / 2);top:calc(50% - var(--spinner-size) / 2)}.sc-smoothly-spinner-h>svg.sc-smoothly-spinner{animation:SPIN-SVG var(--spinner-time) linear infinite}.sc-smoothly-spinner-h>svg.sc-smoothly-spinner>circle.sc-smoothly-spinner{transform-origin:center;animation:SPIN-CIRCLE var(--spinner-time) ease-in-out infinite;stroke-dasharray:187;stroke-dashoffset:0}@keyframes SPIN-SVG{0%{transform:rotate(0deg)}100%{transform:rotate(270deg)}}@keyframes SPIN-CIRCLE{0%{stroke-dashoffset:187}50%{stroke-dashoffset:46.75;transform:rotate(135deg)}100%{stroke-dashoffset:187;transform:rotate(450deg)}}`;const i=s(class s extends r{constructor(s){super();if(s!==false){this.__registerHost()}this.size="large"}render(){const s=this.size=="large"?6:this.size=="medium"?8:this.size=="icon"?8:12;return e(n,{key:"
|
|
2
|
-
//# sourceMappingURL=p-
|
|
1
|
+
import{p as s,H as r,h as e,d as n,t as o}from"./p-BsZrGTcp.js";const t=()=>`[hidden].sc-smoothly-spinner-h{display:none}.sc-smoothly-spinner-h{cursor:wait;--spinner-time:1.4s;--spinner-color:var(--smoothly-color-contrast);--spinner-background:var(--smoothly-color);--spinner-background-opacity:var(--smoothly-semitransparent, 0.8);display:block;stroke:rgb(var(--spinner-color));background-color:rgba(var(--spinner-background), var(--spinner-background-opacity))}.sc-smoothly-spinner-h:not([overlay]){width:var(--spinner-size);height:var(--spinner-size)}[overlay].sc-smoothly-spinner-h{position:absolute;inset:0;width:100%;height:100%;z-index:4;background-color:rgba(var(--spinner-background), var(--spinner-background-opacity))}[color].sc-smoothly-spinner-h:not([overlay]),[color][overlay].sc-smoothly-spinner-h{background-color:rgba(var(--spinner-background), var(--spinner-background-opacity));stroke:rgb(var(--spinner-color))}[overlay].sc-smoothly-spinner-h>svg.sc-smoothly-spinner{position:absolute;width:var(--spinner-size);left:calc(50% - var(--spinner-size) / 2);top:calc(50% - var(--spinner-size) / 2)}.sc-smoothly-spinner-h>svg.sc-smoothly-spinner{animation:SPIN-SVG var(--spinner-time) linear infinite}.sc-smoothly-spinner-h>svg.sc-smoothly-spinner>circle.sc-smoothly-spinner{transform-origin:center;animation:SPIN-CIRCLE var(--spinner-time) ease-in-out infinite;stroke-dasharray:187;stroke-dashoffset:0}@keyframes SPIN-SVG{0%{transform:rotate(0deg)}100%{transform:rotate(270deg)}}@keyframes SPIN-CIRCLE{0%{stroke-dashoffset:187}50%{stroke-dashoffset:46.75;transform:rotate(135deg)}100%{stroke-dashoffset:187;transform:rotate(450deg)}}`;const i=s(class s extends r{constructor(s){super();if(s!==false){this.__registerHost()}this.size="large"}render(){const s=this.size=="large"?6:this.size=="medium"?8:this.size=="icon"?8:12;return e(n,{key:"458303df1f0703dad9d88e9a6c1dfbd063de34e7",style:{"--spinner-size":this.size=="large"?"5em":this.size=="medium"?"3em":this.size=="icon"?"1.8em":"1.2em"}},e("svg",{key:"8065db9227fb249027fe4b7dbc79152de2627ec2",class:"spinner",viewBox:`0 0 ${60+s} ${60+s}`,xmlns:"http://www.w3.org/2000/svg"},e("circle",{key:"8da0fa969c76d3930a14005f951f79f20dc6bf57",class:"path",fill:"none","stroke-width":s,"stroke-linecap":"round",cx:`${30+s/2}`,cy:`${30+s/2}`,r:"30"})))}static get style(){return t()}},[2,"smoothly-spinner",{size:[513],overlay:[516]}]);function a(){if(typeof customElements==="undefined"){return}const s=["smoothly-spinner"];s.forEach((s=>{switch(s){case"smoothly-spinner":if(!customElements.get(o(s))){customElements.define(o(s),i)}break}}))}a();export{i as S,a as d};
|
|
2
|
+
//# sourceMappingURL=p-Bpc6uh0M.js.map
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{p as e,H as o,c as s,h as t,F as a,d as l,t as m}from"./p-BsZrGTcp.js";import{I as c,C as i,F as d}from"./p-CkXes5c-.js";import"./p-BVKhAhsB.js";import{N as r}from"./p-C6lWCoIT.js";import"./p-DoFURPl2.js";import{d as n}from"./p-BHEtq3Ue.js";import{d as b}from"./p-DM5CKilY.js";import{d as h}from"./p-CR3Ni_o7.js";import{d as f}from"./p-B-l1S16Z.js";import{d as y}from"./p-Ud7Qhkgt.js";import{d as p}from"./p-C3FORjes.js";import{d as u}from"./p-DIhqNc1G.js";import{d as k}from"./p-BiQsRsV4.js";import{d as g}from"./p-Ww5QjB3D.js";import{d as v}from"./p-_o_lUhve.js";import{d as j}from"./p-CTdXhHGF.js";import{d as E}from"./p-CJEV2v84.js";import{d as $}from"./p-fnKrPnzp.js";import{d as C}from"./p-Bpc6uh0M.js";const x=()=>`.sc-smoothly-icon-demo-h{display:block;width:clamp(200px, 100%, 1200px);margin:auto}[hidden].sc-smoothly-icon-demo-h{display:none}.sc-smoothly-icon-demo-h>div.sc-smoothly-icon-demo{display:flex;flex-flow:row wrap}.sc-smoothly-icon-demo-h>div.sc-smoothly-icon-demo>smoothly-icon.sc-smoothly-icon-demo{padding:1rem;position:relative}.sc-smoothly-icon-demo-h>div.sc-smoothly-icon-demo>smoothly-icon.sc-smoothly-icon-demo:hover{scale:1.5}.sc-smoothly-icon-demo-h>div.sc-smoothly-icon-demo>smoothly-icon.sc-smoothly-icon-demo:hover::after{content:attr(data-name);position:absolute;white-space:nowrap;bottom:100%;background:rgb(var(--smoothly-default-contrast));color:rgb(var(--smoothly-default-color));padding:0.25rem 1rem;z-index:1;pointer-events:none}`;const w=e(class e extends o{constructor(e){super();if(e!==false){this.__registerHost()}this.notice=s(this,"notice");this.page=0;this.display={};this.props={}}render(){return t(l,{key:"f176097a9e8b600e7b6849618d986932e1115dfa"},t("h2",{key:"600c0aaa4c8d9d66b75b3a9fb2546f8128b00f0b"},"Filter and Variants"),t("smoothly-form",{key:"da8b0a10a564b01918e644af025436dd13e1aa8c",looks:"grid",onSmoothlyFormInput:e=>this.display=e.detail},t("smoothly-input",{key:"976282ac0d7bf9025e305b975b5800ba8946190d",name:"filter"},"Filter"),t("smoothly-input-select",{key:"81287920684545cdaedf4ae5df9e79bb8a9eea4b",name:"variant"},t("span",{key:"8f14bd0559ab879184978aa720fbe9d72002c981",slot:"label"},"Variant"),t("smoothly-item",{key:"262b691b55fc7a5dc662b50f6e84ac98e04db140",value:"outline"},"outline"),t("smoothly-item",{key:"9baf50fd4633f0785577bebf8647f9ec4c9da525",value:"sharp"},"sharp"),t("smoothly-input-clear",{key:"5460d9ba34ad9e5f5bc765893174fb57bf88b189",slot:"end"}))),t("h2",{key:"a204390a284b9da8171a655c315981111ee29906"},"Props"),t("smoothly-form",{key:"bbcb2e224b053d8983a743abd34c0a0186bfcc0f",looks:"grid",onSmoothlyFormInput:e=>{this.props=e.detail;console.log("props",this.props)}},t("smoothly-input-select",{key:"7f0f6e1932f649f5fb300f96a2d6eabc88e701aa",name:"color"},t("span",{key:"508bbda0d768fc4f661f0f0887857e25d21c7a91",slot:"label"},"Color"),i.values.map((e=>t("smoothly-item",{value:e},t("span",{style:{background:`rgb(var(--smoothly-${e}-color))`,"margin-right":"0.5rem",width:"2.5rem",height:"2.5rem"}}),t("span",null,e)))),t("smoothly-input-clear",{key:"e9b59296121ab6e415840d4f501ba31a4347e7af",slot:"end"})),t("smoothly-input-select",{key:"d066f9f4aa8d79c19537b03e9fba85386e673633",name:"fill"},t("span",{key:"f6ae683d747cbeb8a3e40e4d240efe08a1ef8ec4",slot:"label"},"Fill"),d.values.map((e=>t("smoothly-item",{value:e},e))),t("smoothly-input-clear",{key:"594435142c02e0b379f6b54886927069681de3cf",slot:"end"})),t("smoothly-input-select",{key:"f5f821cfdc6a83063bf22c2eb8417e3fa33845cd",name:"customColor",menuHeight:"12items",ordered:true},t("span",{key:"2b502f1dc5775cc23df45be8e48da4e297071078",slot:"label"},"Custom Color"),i.values.flatMap((e=>t(a,null,["tint","color","shade","contrast"].map((o=>t("smoothly-item",{value:`--smoothly-${e}-${o}`},t("span",{style:{background:`rgb(var(--smoothly-${e}-${o}))`,"margin-right":"0.5rem",width:"2.5rem",height:"2.5rem"}}),t("span",null,`rgb(var(--smoothly-${e}-${o}))`)))))))),t("smoothly-input-select",{key:"ca3d4788ce77f1175a2e9e0cce841f3c8aa5925c",name:"customBackground",menuHeight:"12items",ordered:true},t("span",{key:"cd4faa49f2167739f5b00f1b0c734fdf6b8ddc4b",slot:"label"},"Custom Background"),i.values.flatMap((e=>t(a,null,["tint","color","shade","contrast"].map((o=>t("smoothly-item",{value:`--smoothly-${e}-${o}`},t("span",{style:{background:`rgb(var(--smoothly-${e}-${o}))`,"margin-right":"0.5rem",width:"2.5rem",height:"2.5rem"}}),t("span",null,`rgb(var(--smoothly-${e}-${o}))`)))))))),t("smoothly-input-select",{key:"bfebecae9f13f019bd13a8baa8c1029468d83c18",name:"flip"},t("span",{key:"e8a300bdca3f1db8c36dff27b0df5afd08c6bda7",slot:"label"},"Flip"),t("smoothly-item",{key:"5f92573e3420ce19c1d291c394259cf0b1b0cb63",value:"x"},"x"),t("smoothly-item",{key:"c55f735398bb6b01d83d0d80922214f007983f07",value:"y"},"y"),t("smoothly-input-clear",{key:"171d0667b92be8ea4b8ef6c38bc4b6170c1db813",slot:"end"})),t("smoothly-input-select",{key:"30ebb8bdb6d5d75b8cfae380bb8a83bccb89b499",name:"size"},t("span",{key:"62df815da76512b43ae1c4583ff3e61f29ed5133",slot:"label"},"Size"),t("smoothly-item",{key:"5cb1ff7cb3660016cc243eb24b5f7f3fde4dd08f",value:"tiny"},"tiny"),t("smoothly-item",{key:"0d4d0f54b705a47741d11f2b5fd29245362ded31",value:"small"},"small"),t("smoothly-item",{key:"d4469868285cfa6c6ec5de5609f313f892cc66f1",value:"medium"},"medium"),t("smoothly-item",{key:"2b98aac9eeacc7942aa9ea73c48b16f36c226033",value:"large"},"large"),t("smoothly-item",{key:"520ebe334ad34dde56d5f8b5ecb7ca25e6645989",value:"xlarge"},"xlarge"),t("smoothly-input-clear",{key:"6b6dd6bd7070703371c89175f71ac30049e8042d",slot:"end"})),t("smoothly-input-range",{key:"c85ffd310deeec0ef502b8549d9bfce3aa0ea895",name:"rotate",step:1,min:-180,max:180,value:0},"Rotate",t("smoothly-input-clear",{key:"a83b8be42b242c1b42b9ab34c9a3c61e0420ab64",slot:"end"}))),t("h1",{key:"02ce154b99955eece2bca3bb28fa47ad8955d18a"},"Icons"),t("div",{key:"e40575d19a189a6c8142c40943692854d9899749",class:"icons"},[...c.Name.values.filter((e=>!this.display.filter||e.includes(this.display.filter))).map((e=>this.display.variant?`${e}-${this.display.variant}`:e)),...c.Logo.values.filter((e=>!this.display.filter||e.includes(this.display.filter)))].map((e=>t("smoothly-icon",{name:e,tooltip:e,"data-name":e,color:this.props.color,style:{fill:this.props["customColor"]?`rgb(var(${this.props["customColor"]}))`:"",color:this.props["customColor"]?`rgb(var(${this.props["customColor"]}))`:"",background:this.props["customBackground"]?`rgb(var(${this.props["customBackground"]}))`:""},fill:this.props.fill,flip:this.props.flip,size:this.props.size,rotate:this.props.rotate,onClick:()=>{navigator.clipboard.writeText(e);this.notice.emit(r.succeeded(`Copied "${e}"`))}})))))}static get style(){return x()}},[2,"smoothly-icon-demo",{display:[32],props:[32]}]);function F(){if(typeof customElements==="undefined"){return}const e=["smoothly-icon-demo","smoothly-button","smoothly-display","smoothly-display-json","smoothly-display-json-object","smoothly-display-json-primitive","smoothly-display-json-record-key","smoothly-form","smoothly-icon","smoothly-input","smoothly-input-clear","smoothly-input-range","smoothly-input-select","smoothly-item","smoothly-spinner"];e.forEach((e=>{switch(e){case"smoothly-icon-demo":if(!customElements.get(m(e))){customElements.define(m(e),w)}break;case"smoothly-button":if(!customElements.get(m(e))){n()}break;case"smoothly-display":if(!customElements.get(m(e))){b()}break;case"smoothly-display-json":if(!customElements.get(m(e))){h()}break;case"smoothly-display-json-object":if(!customElements.get(m(e))){f()}break;case"smoothly-display-json-primitive":if(!customElements.get(m(e))){y()}break;case"smoothly-display-json-record-key":if(!customElements.get(m(e))){p()}break;case"smoothly-form":if(!customElements.get(m(e))){u()}break;case"smoothly-icon":if(!customElements.get(m(e))){k()}break;case"smoothly-input":if(!customElements.get(m(e))){g()}break;case"smoothly-input-clear":if(!customElements.get(m(e))){v()}break;case"smoothly-input-range":if(!customElements.get(m(e))){j()}break;case"smoothly-input-select":if(!customElements.get(m(e))){E()}break;case"smoothly-item":if(!customElements.get(m(e))){$()}break;case"smoothly-spinner":if(!customElements.get(m(e))){C()}break}}))}F();export{w as S,F as d};
|
|
2
|
+
//# sourceMappingURL=p-Bq5YEPPT.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["styleCss","SmoothlyIconDemo","__stencil_proxyCustomElement","HTMLElement","constructor","registerHost","this","page","display","props","render","h","Host","key","looks","onSmoothlyFormInput","e","detail","name","slot","value","console","log","Color","values","map","color","style","background","width","height","Fill","fill","menuHeight","ordered","flatMap","c","Fragment","v","step","min","max","class","Icon","Name","filter","includes","variant","Logo","tooltip","flip","size","rotate","onClick","navigator","clipboard","writeText","notice","emit","Notice","succeeded"],"sources":["src/components/icon/demo/style.css?tag=smoothly-icon-demo&encapsulation=scoped","src/components/icon/demo/index.tsx"],"sourcesContent":[":host {\n\tdisplay: block;\n\twidth: clamp(200px, 100%, 1200px);\n\tmargin: auto;\n}\n:host([hidden]) {\n\tdisplay: none;\n}\n:host > div {\n\tdisplay: flex;\n\tflex-flow: row wrap;\n}\n\n:host > div > smoothly-icon {\n\tpadding: 1rem;\n\tposition: relative;\n}\n\n:host > div > smoothly-icon:hover {\n\tscale: 1.5;\n}\n\n:host > div > smoothly-icon:hover::after {\n\tcontent: attr(data-name);\n\tposition: absolute;\n\twhite-space: nowrap;\n\tbottom: 100%;\n\tbackground: rgb(var(--smoothly-default-contrast));\n\tcolor: rgb(var(--smoothly-default-color));\n\tpadding: 0.25rem 1rem;\n\tz-index: 1;\n\tpointer-events: none;\n}\n","import { Component, Event, EventEmitter, Fragment, h, Host, State } from \"@stencil/core\"\nimport { Color, Fill, Icon, Notice } from \"../../../model\"\n@Component({\n\ttag: \"smoothly-icon-demo\",\n\tstyleUrl: \"./style.css\",\n\tscoped: true,\n})\nexport class SmoothlyIconDemo {\n\tpage = 0\n\n\t@State() display: { filter?: string; variant?: \"outline\" | \"sharp\" } = {}\n\t@State() props: {\n\t\tcolor?: Color\n\t\tcustomColor?: string\n\t\tcustomBackground?: string\n\t\tfill?: Fill\n\t\tflip?: \"x\" | \"y\"\n\t\tsize?: \"tiny\" | \"small\" | \"medium\" | \"large\" | \"xlarge\"\n\t\trotate?: number\n\t} = {}\n\t@Event() notice: EventEmitter<Notice>\n\n\trender() {\n\t\treturn (\n\t\t\t<Host>\n\t\t\t\t<h2>Filter and Variants</h2>\n\t\t\t\t<smoothly-form looks=\"grid\" onSmoothlyFormInput={e => (this.display = e.detail)}>\n\t\t\t\t\t<smoothly-input name=\"filter\">Filter</smoothly-input>\n\t\t\t\t\t<smoothly-input-select name=\"variant\">\n\t\t\t\t\t\t<span slot=\"label\">Variant</span>\n\t\t\t\t\t\t<smoothly-item value={\"outline\"}>outline</smoothly-item>\n\t\t\t\t\t\t<smoothly-item value={\"sharp\"}>sharp</smoothly-item>\n\t\t\t\t\t\t<smoothly-input-clear slot={\"end\"} />\n\t\t\t\t\t</smoothly-input-select>\n\t\t\t\t</smoothly-form>\n\t\t\t\t<h2>Props</h2>\n\t\t\t\t<smoothly-form\n\t\t\t\t\tlooks=\"grid\"\n\t\t\t\t\tonSmoothlyFormInput={e => {\n\t\t\t\t\t\tthis.props = e.detail\n\t\t\t\t\t\tconsole.log(\"props\", this.props)\n\t\t\t\t\t}}>\n\t\t\t\t\t<smoothly-input-select name={\"color\"}>\n\t\t\t\t\t\t<span slot={\"label\"}>Color</span>\n\t\t\t\t\t\t{Color.values.map(color => (\n\t\t\t\t\t\t\t<smoothly-item value={color}>\n\t\t\t\t\t\t\t\t<span\n\t\t\t\t\t\t\t\t\tstyle={{\n\t\t\t\t\t\t\t\t\t\tbackground: `rgb(var(--smoothly-${color}-color))`,\n\t\t\t\t\t\t\t\t\t\t\"margin-right\": \"0.5rem\",\n\t\t\t\t\t\t\t\t\t\twidth: \"2.5rem\",\n\t\t\t\t\t\t\t\t\t\theight: \"2.5rem\",\n\t\t\t\t\t\t\t\t\t}}\n\t\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t\t\t<span>{color}</span>\n\t\t\t\t\t\t\t</smoothly-item>\n\t\t\t\t\t\t))}\n\t\t\t\t\t\t<smoothly-input-clear slot={\"end\"} />\n\t\t\t\t\t</smoothly-input-select>\n\t\t\t\t\t<smoothly-input-select name={\"fill\"}>\n\t\t\t\t\t\t<span slot={\"label\"}>Fill</span>\n\t\t\t\t\t\t{Fill.values.map(fill => (\n\t\t\t\t\t\t\t<smoothly-item value={fill}>{fill}</smoothly-item>\n\t\t\t\t\t\t))}\n\t\t\t\t\t\t<smoothly-input-clear slot={\"end\"} />\n\t\t\t\t\t</smoothly-input-select>\n\t\t\t\t\t<smoothly-input-select name=\"customColor\" menuHeight=\"12items\" ordered>\n\t\t\t\t\t\t<span slot={\"label\"}>Custom Color</span>\n\t\t\t\t\t\t{Color.values.flatMap(c => (\n\t\t\t\t\t\t\t<Fragment>\n\t\t\t\t\t\t\t\t{[\"tint\", \"color\", \"shade\", \"contrast\"].map(v => (\n\t\t\t\t\t\t\t\t\t<smoothly-item value={`--smoothly-${c}-${v}`}>\n\t\t\t\t\t\t\t\t\t\t<span\n\t\t\t\t\t\t\t\t\t\t\tstyle={{\n\t\t\t\t\t\t\t\t\t\t\t\tbackground: `rgb(var(--smoothly-${c}-${v}))`,\n\t\t\t\t\t\t\t\t\t\t\t\t\"margin-right\": \"0.5rem\",\n\t\t\t\t\t\t\t\t\t\t\t\twidth: \"2.5rem\",\n\t\t\t\t\t\t\t\t\t\t\t\theight: \"2.5rem\",\n\t\t\t\t\t\t\t\t\t\t\t}}\n\t\t\t\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t\t\t\t\t<span>{`rgb(var(--smoothly-${c}-${v}))`}</span>\n\t\t\t\t\t\t\t\t\t</smoothly-item>\n\t\t\t\t\t\t\t\t))}\n\t\t\t\t\t\t\t</Fragment>\n\t\t\t\t\t\t))}\n\t\t\t\t\t</smoothly-input-select>\n\t\t\t\t\t<smoothly-input-select name=\"customBackground\" menuHeight=\"12items\" ordered>\n\t\t\t\t\t\t<span slot={\"label\"}>Custom Background</span>\n\t\t\t\t\t\t{Color.values.flatMap(c => (\n\t\t\t\t\t\t\t<Fragment>\n\t\t\t\t\t\t\t\t{[\"tint\", \"color\", \"shade\", \"contrast\"].map(v => (\n\t\t\t\t\t\t\t\t\t<smoothly-item value={`--smoothly-${c}-${v}`}>\n\t\t\t\t\t\t\t\t\t\t<span\n\t\t\t\t\t\t\t\t\t\t\tstyle={{\n\t\t\t\t\t\t\t\t\t\t\t\tbackground: `rgb(var(--smoothly-${c}-${v}))`,\n\t\t\t\t\t\t\t\t\t\t\t\t\"margin-right\": \"0.5rem\",\n\t\t\t\t\t\t\t\t\t\t\t\twidth: \"2.5rem\",\n\t\t\t\t\t\t\t\t\t\t\t\theight: \"2.5rem\",\n\t\t\t\t\t\t\t\t\t\t\t}}\n\t\t\t\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t\t\t\t\t<span>{`rgb(var(--smoothly-${c}-${v}))`}</span>\n\t\t\t\t\t\t\t\t\t</smoothly-item>\n\t\t\t\t\t\t\t\t))}\n\t\t\t\t\t\t\t</Fragment>\n\t\t\t\t\t\t))}\n\t\t\t\t\t</smoothly-input-select>\n\t\t\t\t\t<smoothly-input-select name=\"flip\">\n\t\t\t\t\t\t<span slot={\"label\"}>Flip</span>\n\t\t\t\t\t\t<smoothly-item value={\"x\"}>x</smoothly-item>\n\t\t\t\t\t\t<smoothly-item value={\"y\"}>y</smoothly-item>\n\t\t\t\t\t\t<smoothly-input-clear slot={\"end\"} />\n\t\t\t\t\t</smoothly-input-select>\n\t\t\t\t\t<smoothly-input-select name={\"size\"}>\n\t\t\t\t\t\t<span slot={\"label\"}>Size</span>\n\t\t\t\t\t\t<smoothly-item value={\"tiny\"}>tiny</smoothly-item>\n\t\t\t\t\t\t<smoothly-item value={\"small\"}>small</smoothly-item>\n\t\t\t\t\t\t<smoothly-item value={\"medium\"}>medium</smoothly-item>\n\t\t\t\t\t\t<smoothly-item value={\"large\"}>large</smoothly-item>\n\t\t\t\t\t\t<smoothly-item value={\"xlarge\"}>xlarge</smoothly-item>\n\t\t\t\t\t\t<smoothly-input-clear slot={\"end\"} />\n\t\t\t\t\t</smoothly-input-select>\n\t\t\t\t\t<smoothly-input-range name=\"rotate\" step={1} min={-180} max={180} value={0}>\n\t\t\t\t\t\tRotate\n\t\t\t\t\t\t<smoothly-input-clear slot={\"end\"} />\n\t\t\t\t\t</smoothly-input-range>\n\t\t\t\t</smoothly-form>\n\t\t\t\t<h1>Icons</h1>\n\t\t\t\t<div class=\"icons\">\n\t\t\t\t\t{[\n\t\t\t\t\t\t...Icon.Name.values\n\t\t\t\t\t\t\t.filter(name => !this.display.filter || name.includes(this.display.filter))\n\t\t\t\t\t\t\t.map((name): Icon => (this.display.variant ? `${name}-${this.display.variant}` : name)),\n\t\t\t\t\t\t...Icon.Logo.values.filter(name => !this.display.filter || name.includes(this.display.filter)),\n\t\t\t\t\t].map(name => (\n\t\t\t\t\t\t<smoothly-icon\n\t\t\t\t\t\t\tname={name}\n\t\t\t\t\t\t\ttooltip={name}\n\t\t\t\t\t\t\tdata-name={name}\n\t\t\t\t\t\t\tcolor={this.props.color}\n\t\t\t\t\t\t\tstyle={{\n\t\t\t\t\t\t\t\tfill: this.props[\"customColor\"] ? `rgb(var(${this.props[\"customColor\"]}))` : \"\",\n\t\t\t\t\t\t\t\tcolor: this.props[\"customColor\"] ? `rgb(var(${this.props[\"customColor\"]}))` : \"\",\n\t\t\t\t\t\t\t\tbackground: this.props[\"customBackground\"] ? `rgb(var(${this.props[\"customBackground\"]}))` : \"\",\n\t\t\t\t\t\t\t}}\n\t\t\t\t\t\t\tfill={this.props.fill}\n\t\t\t\t\t\t\tflip={this.props.flip}\n\t\t\t\t\t\t\tsize={this.props.size}\n\t\t\t\t\t\t\trotate={this.props.rotate}\n\t\t\t\t\t\t\tonClick={() => {\n\t\t\t\t\t\t\t\tnavigator.clipboard.writeText(name)\n\t\t\t\t\t\t\t\tthis.notice.emit(Notice.succeeded(`Copied \"${name}\"`))\n\t\t\t\t\t\t\t}}\n\t\t\t\t\t\t/>\n\t\t\t\t\t))}\n\t\t\t\t</div>\n\t\t\t</Host>\n\t\t)\n\t}\n}\n"],"mappings":"4sBAAA,MAAMA,EAAW,IAAM,+uB,MCOVC,EAAgBC,EAAA,MAAAD,UAAAE,EAL7B,WAAAC,CAAAC,G,yEAMCC,KAAAC,KAAO,EAEED,KAAAE,QAA8D,GAC9DF,KAAAG,MAQL,EA2IJ,CAxIA,MAAAC,GACC,OACCC,EAACC,EAAI,CAAAC,IAAA,4CACJF,EAAA,MAAAE,IAAA,mEACAF,EAAA,iBAAAE,IAAA,2CAAeC,MAAM,OAAOC,oBAAqBC,GAAMV,KAAKE,QAAUQ,EAAEC,QACvEN,EAAA,kBAAAE,IAAA,2CAAgBK,KAAK,UAAQ,UAC7BP,EAAA,yBAAAE,IAAA,2CAAuBK,KAAK,WAC3BP,EAAA,QAAAE,IAAA,2CAAMM,KAAK,SAAO,WAClBR,EAAA,iBAAAE,IAAA,2CAAeO,MAAO,WAAS,WAC/BT,EAAA,iBAAAE,IAAA,2CAAeO,MAAO,SAAO,SAC7BT,EAAA,wBAAAE,IAAA,2CAAsBM,KAAM,UAG9BR,EAAA,MAAAE,IAAA,qDACAF,EAAA,iBAAAE,IAAA,2CACCC,MAAM,OACNC,oBAAqBC,IACpBV,KAAKG,MAAQO,EAAEC,OACfI,QAAQC,IAAI,QAAShB,KAAKG,MAAM,GAEjCE,EAAA,yBAAAE,IAAA,2CAAuBK,KAAM,SAC5BP,EAAA,QAAAE,IAAA,2CAAMM,KAAM,SAAO,SAClBI,EAAMC,OAAOC,KAAIC,GACjBf,EAAA,iBAAeS,MAAOM,GACrBf,EAAA,QACCgB,MAAO,CACNC,WAAY,sBAAsBF,YAClC,eAAgB,SAChBG,MAAO,SACPC,OAAQ,YAGVnB,EAAA,YAAOe,MAGTf,EAAA,wBAAAE,IAAA,2CAAsBM,KAAM,SAE7BR,EAAA,yBAAAE,IAAA,2CAAuBK,KAAM,QAC5BP,EAAA,QAAAE,IAAA,2CAAMM,KAAM,SAAO,QAClBY,EAAKP,OAAOC,KAAIO,GAChBrB,EAAA,iBAAeS,MAAOY,GAAOA,KAE9BrB,EAAA,wBAAAE,IAAA,2CAAsBM,KAAM,SAE7BR,EAAA,yBAAAE,IAAA,2CAAuBK,KAAK,cAAce,WAAW,UAAUC,QAAO,MACrEvB,EAAA,QAAAE,IAAA,2CAAMM,KAAM,SAAO,gBAClBI,EAAMC,OAAOW,SAAQC,GACrBzB,EAAC0B,EAAQ,KACP,CAAC,OAAQ,QAAS,QAAS,YAAYZ,KAAIa,GAC3C3B,EAAA,iBAAeS,MAAO,cAAcgB,KAAKE,KACxC3B,EAAA,QACCgB,MAAO,CACNC,WAAY,sBAAsBQ,KAAKE,MACvC,eAAgB,SAChBT,MAAO,SACPC,OAAQ,YAGVnB,EAAA,YAAO,sBAAsByB,KAAKE,cAMvC3B,EAAA,yBAAAE,IAAA,2CAAuBK,KAAK,mBAAmBe,WAAW,UAAUC,QAAO,MAC1EvB,EAAA,QAAAE,IAAA,2CAAMM,KAAM,SAAO,qBAClBI,EAAMC,OAAOW,SAAQC,GACrBzB,EAAC0B,EAAQ,KACP,CAAC,OAAQ,QAAS,QAAS,YAAYZ,KAAIa,GAC3C3B,EAAA,iBAAeS,MAAO,cAAcgB,KAAKE,KACxC3B,EAAA,QACCgB,MAAO,CACNC,WAAY,sBAAsBQ,KAAKE,MACvC,eAAgB,SAChBT,MAAO,SACPC,OAAQ,YAGVnB,EAAA,YAAO,sBAAsByB,KAAKE,cAMvC3B,EAAA,yBAAAE,IAAA,2CAAuBK,KAAK,QAC3BP,EAAA,QAAAE,IAAA,2CAAMM,KAAM,SAAO,QACnBR,EAAA,iBAAAE,IAAA,2CAAeO,MAAO,KAAG,KACzBT,EAAA,iBAAAE,IAAA,2CAAeO,MAAO,KAAG,KACzBT,EAAA,wBAAAE,IAAA,2CAAsBM,KAAM,SAE7BR,EAAA,yBAAAE,IAAA,2CAAuBK,KAAM,QAC5BP,EAAA,QAAAE,IAAA,2CAAMM,KAAM,SAAO,QACnBR,EAAA,iBAAAE,IAAA,2CAAeO,MAAO,QAAM,QAC5BT,EAAA,iBAAAE,IAAA,2CAAeO,MAAO,SAAO,SAC7BT,EAAA,iBAAAE,IAAA,2CAAeO,MAAO,UAAQ,UAC9BT,EAAA,iBAAAE,IAAA,2CAAeO,MAAO,SAAO,SAC7BT,EAAA,iBAAAE,IAAA,2CAAeO,MAAO,UAAQ,UAC9BT,EAAA,wBAAAE,IAAA,2CAAsBM,KAAM,SAE7BR,EAAA,wBAAAE,IAAA,2CAAsBK,KAAK,SAASqB,KAAM,EAAGC,KAAK,IAAMC,IAAK,IAAKrB,MAAO,GAAC,SAEzET,EAAA,wBAAAE,IAAA,2CAAsBM,KAAM,UAG9BR,EAAA,MAAAE,IAAA,qDACAF,EAAA,OAAAE,IAAA,2CAAK6B,MAAM,SACT,IACGC,EAAKC,KAAKpB,OACXqB,QAAO3B,IAASZ,KAAKE,QAAQqC,QAAU3B,EAAK4B,SAASxC,KAAKE,QAAQqC,UAClEpB,KAAKP,GAAgBZ,KAAKE,QAAQuC,QAAU,GAAG7B,KAAQZ,KAAKE,QAAQuC,UAAY7B,OAC/EyB,EAAKK,KAAKxB,OAAOqB,QAAO3B,IAASZ,KAAKE,QAAQqC,QAAU3B,EAAK4B,SAASxC,KAAKE,QAAQqC,WACrFpB,KAAIP,GACLP,EAAA,iBACCO,KAAMA,EACN+B,QAAS/B,EAAI,YACFA,EACXQ,MAAOpB,KAAKG,MAAMiB,MAClBC,MAAO,CACNK,KAAM1B,KAAKG,MAAM,eAAiB,WAAWH,KAAKG,MAAM,mBAAqB,GAC7EiB,MAAOpB,KAAKG,MAAM,eAAiB,WAAWH,KAAKG,MAAM,mBAAqB,GAC9EmB,WAAYtB,KAAKG,MAAM,oBAAsB,WAAWH,KAAKG,MAAM,wBAA0B,IAE9FuB,KAAM1B,KAAKG,MAAMuB,KACjBkB,KAAM5C,KAAKG,MAAMyC,KACjBC,KAAM7C,KAAKG,MAAM0C,KACjBC,OAAQ9C,KAAKG,MAAM2C,OACnBC,QAAS,KACRC,UAAUC,UAAUC,UAAUtC,GAC9BZ,KAAKmD,OAAOC,KAAKC,EAAOC,UAAU,WAAW1C,MAAS,O","ignoreList":[]}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{p as o,H as t,h as e,d as r,t as s}from"./p-BsZrGTcp.js";const a=()=>`.sc-smoothly-table-foot-h{grid-column:1 / -1;display:grid;grid-template-columns:subgrid;position:sticky;z-index:1;bottom:0;background-color:rgb(var(--smoothly-table-footer-background));color:rgb(var(--smoothly-table-footer-foreground));stroke:rgb(var(--smoothly-table-footer-foreground));fill:rgb(var(--smoothly-table-footer-foreground))}`;const l=o(class o extends t{constructor(o){super();if(o!==false){this.__registerHost()}}render(){return e(r,{key:"
|
|
2
|
-
//# sourceMappingURL=p-
|
|
1
|
+
import{p as o,H as t,h as e,d as r,t as s}from"./p-BsZrGTcp.js";const a=()=>`.sc-smoothly-table-foot-h{grid-column:1 / -1;display:grid;grid-template-columns:subgrid;position:sticky;z-index:1;bottom:0;background-color:rgb(var(--smoothly-table-footer-background));color:rgb(var(--smoothly-table-footer-foreground));stroke:rgb(var(--smoothly-table-footer-foreground));fill:rgb(var(--smoothly-table-footer-foreground))}`;const l=o(class o extends t{constructor(o){super();if(o!==false){this.__registerHost()}}render(){return e(r,{key:"fa6bc933396023c1d84d01460a4ff641c53136a1"},e("slot",{key:"7aaddf60b15f344866dce0847441bec4dc739ae0"}))}static get style(){return a()}},[262,"smoothly-table-foot"]);function c(){if(typeof customElements==="undefined"){return}const o=["smoothly-table-foot"];o.forEach((o=>{switch(o){case"smoothly-table-foot":if(!customElements.get(s(o))){customElements.define(s(o),l)}break}}))}c();export{l as S,c as d};
|
|
2
|
+
//# sourceMappingURL=p-BulPH2Jo.js.map
|