smoothly 1.111.0 → 1.113.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 +257 -189
- package/dist/cjs/smoothly-app_98.cjs.entry.js.map +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/input/clear/index.js +11 -7
- package/dist/collection/components/input/clear/index.js.map +1 -1
- package/dist/collection/components/input/demo/standard/index.js +1 -1
- package/dist/collection/components/input/demo/standard/index.js.map +1 -1
- package/dist/collection/components/input/reset/index.js +12 -8
- package/dist/collection/components/input/reset/index.js.map +1 -1
- package/dist/collection/components/input/select/index.js +121 -133
- package/dist/collection/components/input/select/index.js.map +1 -1
- package/dist/collection/components/input/select/layout.js +21 -0
- package/dist/collection/components/input/select/layout.js.map +1 -0
- package/dist/collection/components/input/select/menu.js +33 -0
- package/dist/collection/components/input/select/menu.js.map +1 -0
- package/dist/collection/components/input/select/scroll.js +14 -0
- package/dist/collection/components/input/select/scroll.js.map +1 -0
- package/dist/collection/components/input/select/style.css +72 -64
- package/dist/collection/components/input/submit/index.js +13 -7
- package/dist/collection/components/input/submit/index.js.map +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-iucZC6z5.js → p-0vl7fnbi.js} +2 -2
- package/dist/components/{p-R4uIvvER.js → p-7ReeDB-R.js} +2 -2
- package/dist/components/{p-D1uYEo7L.js → p-97N6vnZd.js} +2 -2
- package/dist/components/{p-BaGuG5hS.js → p-9Fc5vWzs.js} +2 -2
- package/dist/components/{p-DA_1vtmU.js → p-B11YJh32.js} +2 -2
- package/dist/components/{p-DTqtObrT.js → p-B6W5V130.js} +2 -2
- package/dist/components/{p-C9zTTp-4.js → p-B7ws0a8Z.js} +2 -2
- package/dist/components/{p-Bm-gpoFa.js → p-BDW8BGmy.js} +2 -2
- package/dist/components/{p-CsLlJDsh.js → p-BEQ2yAjW.js} +2 -2
- package/dist/components/{p-nrkV1PqR.js → p-BMHv8WTp.js} +2 -2
- package/dist/components/{p-D58kSmOp.js → p-BZJNdp6g.js} +2 -2
- package/dist/components/{p-v06atw3t.js → p-B_Tu52N5.js} +2 -2
- package/dist/components/p-BdqxED0P.js +2 -0
- package/dist/components/{p-DwYc62Ls.js → p-Bh2x2l2j.js} +2 -2
- package/dist/components/p-BnKGlfV9.js +2 -0
- package/dist/components/{p-DgaHxdNI.js → p-BpBeeNcM.js} +2 -2
- package/dist/components/{p-B3OjIxsE.js → p-BqODWrES.js} +2 -2
- package/dist/components/p-BrrLEO2B.js +2 -0
- package/dist/components/{p-C629G4I1.js → p-Bufbdh4o.js} +2 -2
- package/dist/components/p-BxsOj_LX.js +2 -0
- package/dist/components/{p-BDhPxj59.js → p-BznhH5yZ.js} +2 -2
- package/dist/components/{p-BNnhxQyl.js → p-C-dGqk3e.js} +2 -2
- package/dist/components/{p-C8cvGmGP.js → p-C0XPq5lI.js} +2 -2
- package/dist/components/{p-CG636AEF.js → p-C5JaWzfu.js} +2 -2
- package/dist/components/{p-DZadnBSZ.js → p-CCzyYE1m.js} +2 -2
- package/dist/components/p-CCzyYE1m.js.map +1 -0
- package/dist/components/{p-C5Bgwjpo.js → p-CDetFhB9.js} +2 -2
- package/dist/components/{p-DqwlZYFh.js → p-CGg8GrGq.js} +2 -2
- package/dist/components/p-CGg8GrGq.js.map +1 -0
- package/dist/components/p-CLN-EYZz.js +2 -0
- package/dist/components/{p-CottiZWN.js.map → p-CLN-EYZz.js.map} +1 -1
- package/dist/components/p-CMEyMMZz.js +2 -0
- package/dist/components/{p-CdgiqBtD.js.map → p-CMEyMMZz.js.map} +1 -1
- package/dist/components/{p-nHKstm2X.js → p-COTO4dlW.js} +2 -2
- package/dist/components/{p-CuMoDdaf.js → p-CXEfxOpA.js} +2 -2
- package/dist/components/p-CZGfvbsC.js +2 -0
- package/dist/components/{p-BQIS-JBV.js → p-CbWiiNJL.js} +2 -2
- package/dist/components/{p-DZ4ogW8V.js → p-Cct10sTX.js} +2 -2
- package/dist/components/p-Cgowjgod.js +2 -0
- package/dist/components/{p-DBuVH8IL.js → p-CjAkXCwI.js} +2 -2
- package/dist/components/{p-CioJtwj-.js → p-CjknknP6.js} +2 -2
- package/dist/components/{p-DdTTiJbE.js → p-CsHiDnB-.js} +2 -2
- package/dist/components/{p-CVH3vlKv.js → p-CuC7MNAM.js} +2 -2
- package/dist/components/{p-i8IFRTdL.js → p-Cw-_pWl-.js} +2 -2
- package/dist/components/{p-DnLJBwZR.js → p-D4LmYvoM.js} +2 -2
- package/dist/components/{p-DMzn0Iz0.js → p-D4PyTfe4.js} +2 -2
- package/dist/components/p-D4fagxgG.js +2 -0
- package/dist/components/p-D8jJZbTy.js +2 -0
- package/dist/components/p-D8jJZbTy.js.map +1 -0
- package/dist/components/{p-ByWVc-XC.js → p-DGxkSNZ-.js} +2 -2
- package/dist/components/{p-BS2SWUX6.js → p-DKir2dIt.js} +2 -2
- package/dist/components/{p-CF5IKGi5.js → p-DRiOEv4L.js} +2 -2
- package/dist/components/{p-CiJgTdse.js → p-DTOzpQD8.js} +2 -2
- package/dist/components/{p-BgXgncGY.js → p-DVbSVIVZ.js} +2 -2
- package/dist/components/{p-CjdBPauI.js → p-DbS9bWfm.js} +2 -2
- package/dist/components/{p-BqAN7jax.js → p-DdXfvS4U.js} +2 -2
- package/dist/components/{p-D1cLYdzg.js → p-DkxTx6nY.js} +2 -2
- package/dist/components/{p-CrNizZqW.js → p-Dt4cCJEp.js} +2 -2
- package/dist/components/{p-DR3KUEvE.js → p-DtoC1d2_.js} +2 -2
- package/dist/components/{p-BPh3sXo6.js → p-DvF8zgEi.js} +2 -2
- package/dist/components/{p-CR1YZ3na.js → p-DxVl-YSW.js} +2 -2
- package/dist/components/{p-DSsOLbj6.js → p-DyL_ilIk.js} +2 -2
- package/dist/components/p-JB57brc4.js +2 -0
- package/dist/components/p-JLn3QBuQ.js +2 -0
- package/dist/components/{p-Dekg3IGr.js.map → p-JLn3QBuQ.js.map} +1 -1
- package/dist/components/{p-HKrMuYSD.js → p-JdwWRJjd.js} +2 -2
- package/dist/components/{p-CTPT9Ngc.js → p-MCxlBxSA.js} +2 -2
- package/dist/components/{p-p0yn7c4h.js → p-MNhi5te8.js} +2 -2
- package/dist/components/p-OV_wRej-.js +2 -0
- package/dist/components/p-OfpR2_fh.js +2 -0
- package/dist/components/p-OfpR2_fh.js.map +1 -0
- package/dist/components/{p-C_f8s6n5.js → p-Q-gVll-_.js} +2 -2
- package/dist/components/{p-CGG77xzV.js → p-Qf8o2d67.js} +2 -2
- package/dist/components/{p-DXHBXAV0.js → p-V6FzDWfL.js} +2 -2
- package/dist/components/p-W-kaGeCx.js +2 -0
- package/dist/components/{p-DlHIV5_u.js.map → p-W-kaGeCx.js.map} +1 -1
- package/dist/components/{p-DBkHnJdp.js → p-WzQNLGYx.js} +2 -2
- package/dist/components/{p-1KOtWYkC.js → p-eptsxAXs.js} +2 -2
- package/dist/components/{p-D2FsRCII.js → p-fjRiTKvl.js} +2 -2
- package/dist/components/{p-fafhoJgv.js → p-gJF_-tuy.js} +2 -2
- package/dist/components/p-h1R5xtdy.js +2 -0
- package/dist/components/{p-CKxNCxBn.js → p-hcVaU3nW.js} +2 -2
- package/dist/components/{p-fJkfUsWz.js → p-jlska1pM.js} +2 -2
- package/dist/components/{p-DKggy9E3.js → p-oWil-NTX.js} +2 -2
- package/dist/components/{p-CyhRVB6K.js → p-pYGmgv_e.js} +2 -2
- package/dist/components/p-rRkypR5s.js +2 -0
- package/dist/components/{p-CRTkSTv3.js → p-uCXQl-5J.js} +2 -2
- package/dist/components/{p-CUiFFtAw.js → p-uWmGtcyP.js} +2 -2
- package/dist/components/{p-CVp4Wd4u.js → p-xbCL6ChL.js} +2 -2
- package/dist/components/p-xbCL6ChL.js.map +1 -0
- 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-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-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 +257 -189
- package/dist/esm/smoothly-app_98.entry.js.map +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-5e123fe2.entry.js → p-118fd1b8.entry.js} +2 -2
- package/dist/smoothly/{p-13d05a22.entry.js → p-2cd32901.entry.js} +2 -2
- package/dist/smoothly/{p-7a59c6a9.entry.js → p-baabb62e.entry.js} +2 -2
- package/dist/smoothly/p-d2f00811.entry.js +2 -0
- package/dist/smoothly/p-d2f00811.entry.js.map +1 -0
- package/dist/smoothly/smoothly.esm.js +1 -1
- package/dist/types/components/input/clear/index.d.ts +1 -1
- package/dist/types/components/input/reset/index.d.ts +1 -1
- package/dist/types/components/input/select/index.d.ts +18 -9
- package/dist/types/components/input/select/layout.d.ts +6 -0
- package/dist/types/components/input/select/menu.d.ts +10 -0
- package/dist/types/components/input/select/scroll.d.ts +3 -0
- package/dist/types/components.d.ts +7 -17
- package/package.json +1 -1
- package/dist/components/p-3dApo-uA.js +0 -2
- package/dist/components/p-4y8eF-fy.js +0 -2
- package/dist/components/p-BQSKXVmh.js +0 -2
- package/dist/components/p-CDQM-sOT.js +0 -2
- package/dist/components/p-CMiST1Tm.js +0 -2
- package/dist/components/p-CVp4Wd4u.js.map +0 -1
- package/dist/components/p-CdYYtJX2.js +0 -2
- package/dist/components/p-CdYYtJX2.js.map +0 -1
- package/dist/components/p-CdgiqBtD.js +0 -2
- package/dist/components/p-CottiZWN.js +0 -2
- package/dist/components/p-CrcmijCR.js +0 -2
- package/dist/components/p-Cvl7cLxT.js +0 -2
- package/dist/components/p-D2cHi1Nb.js +0 -2
- package/dist/components/p-D9qp7S6Q.js +0 -2
- package/dist/components/p-DZadnBSZ.js.map +0 -1
- package/dist/components/p-Dekg3IGr.js +0 -2
- package/dist/components/p-DgHAvBgB.js +0 -2
- package/dist/components/p-DlHIV5_u.js +0 -2
- package/dist/components/p-DqwlZYFh.js.map +0 -1
- package/dist/components/p-RNCr3p17.js +0 -2
- package/dist/components/p-RNCr3p17.js.map +0 -1
- package/dist/components/p-thKhutym.js +0 -2
- package/dist/smoothly/p-0a7de225.entry.js +0 -2
- package/dist/smoothly/p-0a7de225.entry.js.map +0 -1
- /package/dist/components/{p-iucZC6z5.js.map → p-0vl7fnbi.js.map} +0 -0
- /package/dist/components/{p-R4uIvvER.js.map → p-7ReeDB-R.js.map} +0 -0
- /package/dist/components/{p-D1uYEo7L.js.map → p-97N6vnZd.js.map} +0 -0
- /package/dist/components/{p-BaGuG5hS.js.map → p-9Fc5vWzs.js.map} +0 -0
- /package/dist/components/{p-DA_1vtmU.js.map → p-B11YJh32.js.map} +0 -0
- /package/dist/components/{p-DTqtObrT.js.map → p-B6W5V130.js.map} +0 -0
- /package/dist/components/{p-C9zTTp-4.js.map → p-B7ws0a8Z.js.map} +0 -0
- /package/dist/components/{p-Bm-gpoFa.js.map → p-BDW8BGmy.js.map} +0 -0
- /package/dist/components/{p-CsLlJDsh.js.map → p-BEQ2yAjW.js.map} +0 -0
- /package/dist/components/{p-nrkV1PqR.js.map → p-BMHv8WTp.js.map} +0 -0
- /package/dist/components/{p-D58kSmOp.js.map → p-BZJNdp6g.js.map} +0 -0
- /package/dist/components/{p-v06atw3t.js.map → p-B_Tu52N5.js.map} +0 -0
- /package/dist/components/{p-DgHAvBgB.js.map → p-BdqxED0P.js.map} +0 -0
- /package/dist/components/{p-DwYc62Ls.js.map → p-Bh2x2l2j.js.map} +0 -0
- /package/dist/components/{p-D9qp7S6Q.js.map → p-BnKGlfV9.js.map} +0 -0
- /package/dist/components/{p-DgaHxdNI.js.map → p-BpBeeNcM.js.map} +0 -0
- /package/dist/components/{p-B3OjIxsE.js.map → p-BqODWrES.js.map} +0 -0
- /package/dist/components/{p-3dApo-uA.js.map → p-BrrLEO2B.js.map} +0 -0
- /package/dist/components/{p-C629G4I1.js.map → p-Bufbdh4o.js.map} +0 -0
- /package/dist/components/{p-CDQM-sOT.js.map → p-BxsOj_LX.js.map} +0 -0
- /package/dist/components/{p-BDhPxj59.js.map → p-BznhH5yZ.js.map} +0 -0
- /package/dist/components/{p-BNnhxQyl.js.map → p-C-dGqk3e.js.map} +0 -0
- /package/dist/components/{p-C8cvGmGP.js.map → p-C0XPq5lI.js.map} +0 -0
- /package/dist/components/{p-CG636AEF.js.map → p-C5JaWzfu.js.map} +0 -0
- /package/dist/components/{p-C5Bgwjpo.js.map → p-CDetFhB9.js.map} +0 -0
- /package/dist/components/{p-nHKstm2X.js.map → p-COTO4dlW.js.map} +0 -0
- /package/dist/components/{p-CuMoDdaf.js.map → p-CXEfxOpA.js.map} +0 -0
- /package/dist/components/{p-4y8eF-fy.js.map → p-CZGfvbsC.js.map} +0 -0
- /package/dist/components/{p-BQIS-JBV.js.map → p-CbWiiNJL.js.map} +0 -0
- /package/dist/components/{p-DZ4ogW8V.js.map → p-Cct10sTX.js.map} +0 -0
- /package/dist/components/{p-BQSKXVmh.js.map → p-Cgowjgod.js.map} +0 -0
- /package/dist/components/{p-DBuVH8IL.js.map → p-CjAkXCwI.js.map} +0 -0
- /package/dist/components/{p-CioJtwj-.js.map → p-CjknknP6.js.map} +0 -0
- /package/dist/components/{p-DdTTiJbE.js.map → p-CsHiDnB-.js.map} +0 -0
- /package/dist/components/{p-CVH3vlKv.js.map → p-CuC7MNAM.js.map} +0 -0
- /package/dist/components/{p-i8IFRTdL.js.map → p-Cw-_pWl-.js.map} +0 -0
- /package/dist/components/{p-DnLJBwZR.js.map → p-D4LmYvoM.js.map} +0 -0
- /package/dist/components/{p-DMzn0Iz0.js.map → p-D4PyTfe4.js.map} +0 -0
- /package/dist/components/{p-thKhutym.js.map → p-D4fagxgG.js.map} +0 -0
- /package/dist/components/{p-ByWVc-XC.js.map → p-DGxkSNZ-.js.map} +0 -0
- /package/dist/components/{p-BS2SWUX6.js.map → p-DKir2dIt.js.map} +0 -0
- /package/dist/components/{p-CF5IKGi5.js.map → p-DRiOEv4L.js.map} +0 -0
- /package/dist/components/{p-CiJgTdse.js.map → p-DTOzpQD8.js.map} +0 -0
- /package/dist/components/{p-BgXgncGY.js.map → p-DVbSVIVZ.js.map} +0 -0
- /package/dist/components/{p-CjdBPauI.js.map → p-DbS9bWfm.js.map} +0 -0
- /package/dist/components/{p-BqAN7jax.js.map → p-DdXfvS4U.js.map} +0 -0
- /package/dist/components/{p-D1cLYdzg.js.map → p-DkxTx6nY.js.map} +0 -0
- /package/dist/components/{p-CrNizZqW.js.map → p-Dt4cCJEp.js.map} +0 -0
- /package/dist/components/{p-DR3KUEvE.js.map → p-DtoC1d2_.js.map} +0 -0
- /package/dist/components/{p-BPh3sXo6.js.map → p-DvF8zgEi.js.map} +0 -0
- /package/dist/components/{p-CR1YZ3na.js.map → p-DxVl-YSW.js.map} +0 -0
- /package/dist/components/{p-DSsOLbj6.js.map → p-DyL_ilIk.js.map} +0 -0
- /package/dist/components/{p-Cvl7cLxT.js.map → p-JB57brc4.js.map} +0 -0
- /package/dist/components/{p-HKrMuYSD.js.map → p-JdwWRJjd.js.map} +0 -0
- /package/dist/components/{p-CTPT9Ngc.js.map → p-MCxlBxSA.js.map} +0 -0
- /package/dist/components/{p-p0yn7c4h.js.map → p-MNhi5te8.js.map} +0 -0
- /package/dist/components/{p-D2cHi1Nb.js.map → p-OV_wRej-.js.map} +0 -0
- /package/dist/components/{p-C_f8s6n5.js.map → p-Q-gVll-_.js.map} +0 -0
- /package/dist/components/{p-CGG77xzV.js.map → p-Qf8o2d67.js.map} +0 -0
- /package/dist/components/{p-DXHBXAV0.js.map → p-V6FzDWfL.js.map} +0 -0
- /package/dist/components/{p-DBkHnJdp.js.map → p-WzQNLGYx.js.map} +0 -0
- /package/dist/components/{p-1KOtWYkC.js.map → p-eptsxAXs.js.map} +0 -0
- /package/dist/components/{p-D2FsRCII.js.map → p-fjRiTKvl.js.map} +0 -0
- /package/dist/components/{p-fafhoJgv.js.map → p-gJF_-tuy.js.map} +0 -0
- /package/dist/components/{p-CrcmijCR.js.map → p-h1R5xtdy.js.map} +0 -0
- /package/dist/components/{p-CKxNCxBn.js.map → p-hcVaU3nW.js.map} +0 -0
- /package/dist/components/{p-fJkfUsWz.js.map → p-jlska1pM.js.map} +0 -0
- /package/dist/components/{p-DKggy9E3.js.map → p-oWil-NTX.js.map} +0 -0
- /package/dist/components/{p-CyhRVB6K.js.map → p-pYGmgv_e.js.map} +0 -0
- /package/dist/components/{p-CMiST1Tm.js.map → p-rRkypR5s.js.map} +0 -0
- /package/dist/components/{p-CRTkSTv3.js.map → p-uCXQl-5J.js.map} +0 -0
- /package/dist/components/{p-CUiFFtAw.js.map → p-uWmGtcyP.js.map} +0 -0
- /package/dist/smoothly/{p-5e123fe2.entry.js.map → p-118fd1b8.entry.js.map} +0 -0
- /package/dist/smoothly/{p-13d05a22.entry.js.map → p-2cd32901.entry.js.map} +0 -0
- /package/dist/smoothly/{p-7a59c6a9.entry.js.map → p-baabb62e.entry.js.map} +0 -0
|
@@ -6384,7 +6384,6 @@ const SmoothlyInputClear = class {
|
|
|
6384
6384
|
registerInstance(this, hostRef);
|
|
6385
6385
|
this.smoothlyInputLoad = createEvent(this, "smoothlyInputLoad");
|
|
6386
6386
|
this.fill = "clear";
|
|
6387
|
-
this.disabled = false;
|
|
6388
6387
|
this.size = "icon";
|
|
6389
6388
|
this.display = true;
|
|
6390
6389
|
this.type = "input";
|
|
@@ -6401,10 +6400,16 @@ const SmoothlyInputClear = class {
|
|
|
6401
6400
|
this.display = defined && !p.readonly && !p.disabled;
|
|
6402
6401
|
}
|
|
6403
6402
|
if (p instanceof SmoothlyForm) {
|
|
6404
|
-
this.disabled = p.readonly || Object.values(p.value).filter(val => val).length < 1;
|
|
6405
6403
|
this.display = !p.readonly;
|
|
6406
6404
|
}
|
|
6407
6405
|
});
|
|
6406
|
+
if (typeof this.disabled !== "boolean") {
|
|
6407
|
+
parent.listen(async (p) => {
|
|
6408
|
+
if (p instanceof SmoothlyForm) {
|
|
6409
|
+
this.disabled = p.readonly || Object.values(p.value).filter(val => val).length < 1;
|
|
6410
|
+
}
|
|
6411
|
+
});
|
|
6412
|
+
}
|
|
6408
6413
|
}
|
|
6409
6414
|
}
|
|
6410
6415
|
});
|
|
@@ -6415,7 +6420,7 @@ const SmoothlyInputClear = class {
|
|
|
6415
6420
|
}
|
|
6416
6421
|
render() {
|
|
6417
6422
|
var _a;
|
|
6418
|
-
return (h(Host, { key: '
|
|
6423
|
+
return (h(Host, { key: 'c3057c346978456fae66b50daa28779d57897fe4', title: this.tooltip }, h("smoothly-button", { key: 'ada585112d53669e71813f504c07f4ea51f8365a', disabled: this.disabled, size: this.size, type: "button", shape: this.shape, expand: this.expand, color: this.color, fill: (_a = this.fill) !== null && _a !== void 0 ? _a : (this.type == "input" ? "clear" : undefined) }, h("slot", { key: '5300d48ce3c05f9ba4e7492db5069e5252aba1c3' }), h("smoothly-icon", { key: '771161bfba19ad4f9f875481a75c5b7b65d3d143', name: "close", size: "tiny" }))));
|
|
6419
6424
|
}
|
|
6420
6425
|
get element() { return getElement(this); }
|
|
6421
6426
|
};
|
|
@@ -7152,7 +7157,7 @@ const SmoothlyInputDemoStandard = class {
|
|
|
7152
7157
|
});
|
|
7153
7158
|
}
|
|
7154
7159
|
render() {
|
|
7155
|
-
return (h(Host, { key: '0d47a2dd423a8bcdd889139f74ef2ec375d0ea97' }, h("div", { key: 'a884b4c59f663f8c47aa9e3736e6a82235e9d276', class: "description" }, h("h2", { key: '7c0b8da3728fd79d203de1895c6ae146e1eb8aef' }, "Input Standard"), h("p", { key: '10fe94edd162dd158388508c2470359447e6da57' }, "Height of input should be ", h("code", { key: 'dffd62a251af68595f7c5659a2251ada08999b63' }, "3rem"), " including border. This is should result in a 48 pixel height at 100% zoom, assuming a root font-size of 16 pixels."), h("smoothly-form", { key: '3f8c09fbdce4b808a430cf7266d40d25a596803d', looks: "grid", onSmoothlyFormInput: (e) => (this.options = e.detail) }, h("smoothly-input-select", { key: '563356600a698bf3c974a61b79520aa8f77c249f', name: "color" }, h("span", { key: 'e12af511b6921b2d9f7d50b45fdbe3d5b34f6817', slot: "label" }, "Color"), Color.values.map(c => (h("smoothly-item", { value: c }, h("span", { color: c }, c)))), h("smoothly-input-clear", { key: '23c642ae01bb6d0f7aaf653c027eb255ee38d90a', slot: "end" })), h("smoothly-input-select", { key: 'fa106dd22e247954860c217692ca37a24fe4f772', name: "looks" }, h("span", { key: 'c42065aac1f357b670cf2a99bb8be554fb314cd9', slot: "label" }, "Looks"), Looks.values.map(l => (h("smoothly-item", { value: l }, l)))), h("smoothly-input-range", { key: 'c3b585f898718c9f81ef15c1469eccf08988c00e', label: "Border Radius (rem)", name: "borderRadius", min: 0, max: 2, step: 0.25 }), h("smoothly-input-checkbox", { key: '8fab112575cb1c02c2019022cee83e5e5e65a9c6', name: "readonly" }, "Readonly"), h("smoothly-input-checkbox", { key: 'c34401c8b28faa79a139869c0766e8f8af357ca8', name: "disabled" }, "Disabled"), h("smoothly-input-checkbox", { key: '672b5bc96fa9e6886c90b5e8354d7dea8c916270', name: "invalid" }, "Invalid"), h("smoothly-input", { key: 'c395fd3b7ca8d1243cd9e9ea4e006f1fd7ef1a27', name: "errorMessage", value: "This is not a valid value" }, "Error Message"), h("smoothly-input-checkbox", { key: '121d1a50813987b2aeac50afe73e40c6a7c4fb8b', name: "showLabel", checked: true }, "Show Label"), h("smoothly-input", { key: '265ce4b0e44c8fda1b3188929eb5901e1658bfd5', name: "placeholder" }, "Placeholder"), h("smoothly-input-checkbox", { key: '1eafaaaa6696f9f1d696742869d10aba19c2f0c9', name: "alwaysShowGuide" }, "Always Show Guide (for date inputs)"))), h("div", { key: 'f6a5d34435c177c5dc64c31632dc7a1e65f3e270', class: "input-wrapper", style: { "--smoothly-input-border-radius": `${this.options.borderRadius}rem` } }, h("div", { key: 'c4d82ee52f0d44015df7eb734c98aa41f7c92827', class: "width" }, "width: 100%"), h("div", { key: '2ae68895caf503ba92049a32d0054439f069123b', class: "left-padding" }, "padding-left: 0.5rem"), h("smoothly-input", { key: 'f5f4ee65ccf3180d2f9181fbc258c79e916e14ee', name: "text", color: this.options.color, looks: this.options.looks, readonly: this.options.readonly, disabled: this.options.disabled, invalid: this.options.invalid, errorMessage: this.options.errorMessage, showLabel: this.options.showLabel, placeholder: this.options.placeholder }, this.options.showLabel && h("span", { key: 'bf32f13cfbfa88add92692bf9ee02b836eeea2be' }, "Text"), h("smoothly-input-clear", { key: '26639066ab906f755f7a42e154b1954f1f34f19d', slot: "end" })), h("div", { key: 'de01a46f39aa6f331c5edf54208a6f9f726337e3', class: "height" }), h("smoothly-input-select", { key: '
|
|
7160
|
+
return (h(Host, { key: '0d47a2dd423a8bcdd889139f74ef2ec375d0ea97' }, h("div", { key: 'a884b4c59f663f8c47aa9e3736e6a82235e9d276', class: "description" }, h("h2", { key: '7c0b8da3728fd79d203de1895c6ae146e1eb8aef' }, "Input Standard"), h("p", { key: '10fe94edd162dd158388508c2470359447e6da57' }, "Height of input should be ", h("code", { key: 'dffd62a251af68595f7c5659a2251ada08999b63' }, "3rem"), " including border. This is should result in a 48 pixel height at 100% zoom, assuming a root font-size of 16 pixels."), h("smoothly-form", { key: '3f8c09fbdce4b808a430cf7266d40d25a596803d', looks: "grid", onSmoothlyFormInput: (e) => (this.options = e.detail) }, h("smoothly-input-select", { key: '563356600a698bf3c974a61b79520aa8f77c249f', name: "color" }, h("span", { key: 'e12af511b6921b2d9f7d50b45fdbe3d5b34f6817', slot: "label" }, "Color"), Color.values.map(c => (h("smoothly-item", { value: c }, h("span", { color: c }, c)))), h("smoothly-input-clear", { key: '23c642ae01bb6d0f7aaf653c027eb255ee38d90a', slot: "end" })), h("smoothly-input-select", { key: 'fa106dd22e247954860c217692ca37a24fe4f772', name: "looks" }, h("span", { key: 'c42065aac1f357b670cf2a99bb8be554fb314cd9', slot: "label" }, "Looks"), Looks.values.map(l => (h("smoothly-item", { value: l }, l)))), h("smoothly-input-range", { key: 'c3b585f898718c9f81ef15c1469eccf08988c00e', label: "Border Radius (rem)", name: "borderRadius", min: 0, max: 2, step: 0.25 }), h("smoothly-input-checkbox", { key: '8fab112575cb1c02c2019022cee83e5e5e65a9c6', name: "readonly" }, "Readonly"), h("smoothly-input-checkbox", { key: 'c34401c8b28faa79a139869c0766e8f8af357ca8', name: "disabled" }, "Disabled"), h("smoothly-input-checkbox", { key: '672b5bc96fa9e6886c90b5e8354d7dea8c916270', name: "invalid" }, "Invalid"), h("smoothly-input", { key: 'c395fd3b7ca8d1243cd9e9ea4e006f1fd7ef1a27', name: "errorMessage", value: "This is not a valid value" }, "Error Message"), h("smoothly-input-checkbox", { key: '121d1a50813987b2aeac50afe73e40c6a7c4fb8b', name: "showLabel", checked: true }, "Show Label"), h("smoothly-input", { key: '265ce4b0e44c8fda1b3188929eb5901e1658bfd5', name: "placeholder" }, "Placeholder"), h("smoothly-input-checkbox", { key: '1eafaaaa6696f9f1d696742869d10aba19c2f0c9', name: "alwaysShowGuide" }, "Always Show Guide (for date inputs)"))), h("div", { key: 'f6a5d34435c177c5dc64c31632dc7a1e65f3e270', class: "input-wrapper", style: { "--smoothly-input-border-radius": `${this.options.borderRadius}rem` } }, h("div", { key: 'c4d82ee52f0d44015df7eb734c98aa41f7c92827', class: "width" }, "width: 100%"), h("div", { key: '2ae68895caf503ba92049a32d0054439f069123b', class: "left-padding" }, "padding-left: 0.5rem"), h("smoothly-input", { key: 'f5f4ee65ccf3180d2f9181fbc258c79e916e14ee', name: "text", color: this.options.color, looks: this.options.looks, readonly: this.options.readonly, disabled: this.options.disabled, invalid: this.options.invalid, errorMessage: this.options.errorMessage, showLabel: this.options.showLabel, placeholder: this.options.placeholder }, this.options.showLabel && h("span", { key: 'bf32f13cfbfa88add92692bf9ee02b836eeea2be' }, "Text"), h("smoothly-input-clear", { key: '26639066ab906f755f7a42e154b1954f1f34f19d', slot: "end" })), h("div", { key: 'de01a46f39aa6f331c5edf54208a6f9f726337e3', class: "height" }), h("smoothly-input-select", { key: '510076d3203f1fb1e2e506832364710feb15f0c8', name: "month", color: this.options.color, looks: this.options.looks, menuHeight: "6.7items", readonly: this.options.readonly, disabled: this.options.disabled, invalid: this.options.invalid, errorMessage: this.options.errorMessage, placeholder: this.options.placeholder }, this.options.showLabel && h("label", { key: '9bf577f8339bb2c4edde779113b069eeb34ef748', slot: "label" }, "Select"), h("smoothly-item", { key: '60780147390d2cf0e8da424841a50e27417479e6', value: "1" }, "January"), h("smoothly-item", { key: '173c112cb747fe2b85a1633df99fbcb506f58d48', value: "2" }, "February"), h("smoothly-item", { key: 'a7ee7adea1ea9b92362737cc840aca34a6f8d436', value: "3" }, "March"), h("smoothly-item", { key: 'd9640cc6ffef2dd85241ca133b7a145624f4fc9a', value: "4" }, "April"), h("smoothly-item", { key: 'a8481666f7c15b3a0ff0f88602e9dbc4056c415b', value: "5" }, "May"), h("smoothly-item", { key: '0e5303b6e803afe7f7e09e4624319e4ff418a689', value: "6" }, "June"), h("smoothly-item", { key: 'b83eb587d51b7d9921f9d3abef167ff0d936c5ae', value: "7" }, "July"), h("smoothly-item", { key: '3d2b9def6e4a70238e61a0eb84328e90fec966ef', value: "8" }, "August"), h("smoothly-item", { key: '93a12ce1b0e1dd4c9178520a0ecb517df10087a2', value: "9" }, "September"), h("smoothly-item", { key: 'd33c600d87e72fa217a90c2d8ed45d2481cee72f', value: "10" }, "October"), h("smoothly-item", { key: 'fe604dc056ea4a597a8b6d7f1be09c89c879dbdf', value: "11" }, "November"), h("smoothly-item", { key: '51bcb469aa305b0ae7cacfdd875022ec39530e6c', value: "12" }, "December"), h("smoothly-input-clear", { key: '0833dfa02fbc7cff603e37644baed0a6b8c4e4d5', slot: "end" })), h("div", { key: '79f0f6f00a86ddcc2dfdb4a68b0ebe07bc689c00', class: "height" }), h("smoothly-input-checkbox", { key: 'be23f09cb9a5d45fa322399d9990665bb9a4bf34', name: "checkbox", checked: true, color: this.options.color, looks: this.options.looks, readonly: this.options.readonly, disabled: this.options.disabled }, "Check", h("smoothly-input-reset", { key: 'b017bae486a26d0987c569284dcb933c32128870', slot: "end" })), h("div", { key: 'cfcf1788ea24c44ebdc3b66918475fbeadbb7eb3', class: "height" }), h("smoothly-input-radio", { key: 'eb33d705570a661c8a6af35664274d15dadf8651', name: "radio", clearable: true, color: this.options.color, looks: this.options.looks, readonly: this.options.readonly, disabled: this.options.disabled, showLabel: this.options.showLabel }, this.options.showLabel && h("label", { key: '34e9e0a159e7b8132dcb8b83b23b71c7b3315950', slot: "label" }, "Radio"), h("smoothly-input-radio-item", { key: 'c3eeacc48f78063b3a22d3b8dcfd7e883254d3f1', value: "first" }, "Label 1"), h("smoothly-input-radio-item", { key: '7e268ae592952b97ac20e89519d778b2aadb8fcc', selected: true, value: "second" }, "Label 2"), h("smoothly-input-radio-item", { key: '79e5d297744e5478f49d68cae946c2ecef34eba6', value: "third" }, "Label 3"), h("smoothly-input-clear", { key: 'dff06e18033a50015e9108d368824f30b811c264', slot: "end" })), h("div", { key: '9d3c81366b646b71f06c601cf57653ff9c99cc0b', class: "height" }), h("smoothly-input-file", { key: 'b2c1b865f112c22559951812ad2de40d26290a0e', name: "file", color: this.options.color, looks: this.options.looks, readonly: this.options.readonly, disabled: this.options.disabled, showLabel: this.options.showLabel, placeholder: this.options.placeholder }, this.options.showLabel && h("span", { key: '4db9c0510129863aeeb39d8752554ae83c69ec5f', slot: "label" }, "File"), h("smoothly-input-clear", { key: '3f5ac4383708baf78c2f916a13c0583a315fcd4a', slot: "end" })), h("div", { key: 'fed8a7e19c81970c362b4795555e27691b04e7bc', class: "height" }), h("smoothly-input-range", { key: '471ff911649f0fff74d0a6a2f1f6ff9836be1e29', name: "range", color: this.options.color, looks: this.options.looks, readonly: this.options.readonly, disabled: this.options.disabled, label: this.options.showLabel ? "Range" : undefined }, h("smoothly-input-clear", { key: '95cd1bfffa55434df83458f93c72dc7628b9e26d', slot: "end" })), h("div", { key: '89529b1695656c2ddf4eb8ec68186200b0b4054a', class: "height" }), h("smoothly-input-color", { key: '22deff755c1da762df9d27dce227432862a4c3ef', name: "color", color: this.options.color, looks: this.options.looks, readonly: this.options.readonly, disabled: this.options.disabled, showLabel: this.options.showLabel }, this.options.showLabel && h("span", { key: '62579a646e0c4d6f4a267ab6aa22c1d3a0e24895' }, "Color"), h("smoothly-input-clear", { key: '1f3617c7f813399adcfafaa68e919cca440f2814', slot: "end" })), h("div", { key: 'a0f45e33d4328c5c534f92929617f6fb42577827', class: "height" }), h("smoothly-input-date", { key: 'b2217e88e18bbb4f4bb8ecc768fcd67a022ff05b', name: "date", color: this.options.color, looks: this.options.looks, readonly: this.options.readonly, disabled: this.options.disabled, invalid: this.options.invalid, errorMessage: this.options.errorMessage, showLabel: this.options.showLabel, placeholder: this.options.placeholder, alwaysShowGuide: this.options.alwaysShowGuide }, this.options.showLabel && h("span", { key: 'acc7706396f3923db94d65cc12e25df341052a3f' }, "Date"), h("smoothly-input-clear", { key: '962a1961612037e2171caa40a25397ff501de2fa', slot: "end" })), h("div", { key: 'c2b39662f59227a0feedd322db39055d52f4b3fc', class: "height" }), h("smoothly-input-date-time", { key: '9144e9af51bc9ec45f771eae3b1ab80cec7d3f67', name: "dateTime", color: this.options.color, looks: this.options.looks, readonly: this.options.readonly, disabled: this.options.disabled, invalid: this.options.invalid, errorMessage: this.options.errorMessage, showLabel: this.options.showLabel }, "DateTime", h("smoothly-input-clear", { key: 'b40b0db65ab9d9ef61527f14cd951d2e337b3a31', slot: "end" })), h("div", { key: '1e39a4410aae2f4b7bb6501fa7a436c46034028e', class: "height" }), h("smoothly-input-date-range", { key: '8be62583be2bc8955ac923b18155c60ebe7e216a', name: "dateRange", color: this.options.color, looks: this.options.looks, readonly: this.options.readonly, disabled: this.options.disabled, invalid: this.options.invalid, errorMessage: this.options.errorMessage, placeholder: this.options.placeholder, alwaysShowGuide: this.options.alwaysShowGuide, showLabel: this.options.showLabel }, this.options.showLabel && h("span", { key: 'a893c51241fd2935145f97dd68ff7fb7226ccdfc' }, "Date Range"), h("smoothly-input-clear", { key: 'de9180934a9b8396e54aaafb39d25a0777433c81', slot: "end" })), h("div", { key: 'a7493fe9750ab795e22aa3fc543405f5d627440a', class: "height" }))));
|
|
7156
7161
|
}
|
|
7157
7162
|
get element() { return getElement(this); }
|
|
7158
7163
|
};
|
|
@@ -7811,7 +7816,6 @@ const SmoothlyInputReset = class {
|
|
|
7811
7816
|
constructor(hostRef) {
|
|
7812
7817
|
registerInstance(this, hostRef);
|
|
7813
7818
|
this.smoothlyInputLoad = createEvent(this, "smoothlyInputLoad");
|
|
7814
|
-
this.disabled = false;
|
|
7815
7819
|
this.size = "icon";
|
|
7816
7820
|
this.display = true;
|
|
7817
7821
|
this.type = "input";
|
|
@@ -7821,7 +7825,6 @@ const SmoothlyInputReset = class {
|
|
|
7821
7825
|
this.smoothlyInputLoad.emit(parent => {
|
|
7822
7826
|
if (Editable.Element.type.is(parent)) {
|
|
7823
7827
|
this.parent = parent;
|
|
7824
|
-
this.readonlyAtLoad = parent.readonly;
|
|
7825
7828
|
parent.listen(async (p) => {
|
|
7826
7829
|
if (Input.is(p)) {
|
|
7827
7830
|
const defined = typeof p.defined == "boolean" ? p.defined : Boolean(await p.getValue());
|
|
@@ -7829,9 +7832,16 @@ const SmoothlyInputReset = class {
|
|
|
7829
7832
|
}
|
|
7830
7833
|
if (p instanceof SmoothlyForm) {
|
|
7831
7834
|
this.display = !p.readonly;
|
|
7832
|
-
this.disabled = !this.readonlyAtLoad && !p.isDifferentFromInitial;
|
|
7833
7835
|
}
|
|
7834
7836
|
});
|
|
7837
|
+
if (typeof this.disabled !== "boolean") {
|
|
7838
|
+
this.readonlyAtLoad = parent.readonly;
|
|
7839
|
+
parent.listen(async (p) => {
|
|
7840
|
+
if (p instanceof SmoothlyForm) {
|
|
7841
|
+
this.disabled = !this.readonlyAtLoad && !p.isDifferentFromInitial;
|
|
7842
|
+
}
|
|
7843
|
+
});
|
|
7844
|
+
}
|
|
7835
7845
|
}
|
|
7836
7846
|
});
|
|
7837
7847
|
}
|
|
@@ -7843,7 +7853,7 @@ const SmoothlyInputReset = class {
|
|
|
7843
7853
|
}
|
|
7844
7854
|
render() {
|
|
7845
7855
|
var _a;
|
|
7846
|
-
return (h(Host, { key: '
|
|
7856
|
+
return (h(Host, { key: '07fe387d6e31ee4b8733dd797ccbb6bc2a602450', title: this.tooltip }, h("smoothly-button", { key: 'db64da157afc163be326cc342d344881b0dd665c', disabled: this.disabled, size: this.size, type: "button", shape: this.shape, expand: this.expand, color: this.color, fill: (_a = this.fill) !== null && _a !== void 0 ? _a : (this.type == "input" ? "clear" : undefined), onClick: event => this.clickHandler(event) }, h("slot", { key: '6a6a1f5f60b8dee75d3adeba5a7dfd611a84d256' }), h("smoothly-icon", { key: '5d37c4a5f21cf620ab223979e1b0d0e589b97d73', flip: "x", name: "refresh-outline", size: "tiny" }))));
|
|
7847
7857
|
}
|
|
7848
7858
|
};
|
|
7849
7859
|
SmoothlyInputReset.style = styleCss$D();
|
|
@@ -7864,7 +7874,75 @@ var Item;
|
|
|
7864
7874
|
Item.is = Item.type.is;
|
|
7865
7875
|
})(Item || (Item = {}));
|
|
7866
7876
|
|
|
7867
|
-
const styleCss$C = () => `.sc-smoothly-input-select-h{--input-padding-side:.5rem;--input-value-padding-top:1.25rem;--input-value-padding-bottom:.25rem;--input-min-height:3rem;min-height:var(--input-min-height);box-sizing:border-box;border-radius:var(--smoothly-input-border-radius)}[looks="border"].sc-smoothly-input-select-h{border:rgb(var(--smoothly-input-border)) solid 1px}[looks="border"].sc-smoothly-input-select-h:not([readonly]):not([disabled]):focus-within{outline:2px solid rgb(var(--smoothly-input-border-focus))}[looks="border"][readonly].sc-smoothly-input-select-h{border:transparent solid 1px}[looks="line"].sc-smoothly-input-select-h{border-bottom:rgb(var(--smoothly-input-border)) solid 1px;position:relative}[looks="line"][readonly].sc-smoothly-input-select-h{border-bottom:transparent solid 1px}[looks="line"].sc-smoothly-input-select-h:not([readonly]):not([disabled]):focus-within::before{content:"";position:absolute;inset:0;pointer-events:none;border-bottom:2px solid rgb(var(--smoothly-input-border-focus));z-index:10}[looks="grid"].sc-smoothly-input-select-h{flex-grow:1;flex-basis:40%;box-shadow:0px 0px 0px 1px rgb(var(--smoothly-input-border));border:none}[looks="grid"][readonly].sc-smoothly-input-select-h{box-shadow:0px 0px 0px 1px rgba(var(--smoothly-input-border-readonly))}[looks="grid"].sc-smoothly-input-select-h:not([readonly]):not([disabled]):focus-within{position:relative;box-shadow:0px 0px 0px 2px rgb(var(--smoothly-input-border-focus));outline:none;z-index:10}[looks="transparent"].sc-smoothly-input-select-h{border:none}[looks="transparent"][readonly].sc-smoothly-input-select-h,[looks="transparent"].sc-smoothly-input-select-h:not(:focus-within){background-color:transparent}[looks="transparent"][readonly].sc-smoothly-input-select-h>input.sc-smoothly-input-select,[looks="transparent"].sc-smoothly-input-select-h:not(:focus-within)>input.sc-smoothly-input-select{background-color:transparent}[looks="transparent"].sc-smoothly-input-select-h:not([readonly]):focus-within{outline:1px solid rgb(var(--smoothly-input-border))}[disabled].sc-smoothly-input-select-h{cursor:not-allowed;--smoothly-input-foreground:var(--smoothly-input-disabled-foreground);--smoothly-input-background:var(--smoothly-input-disabled-background);--smoothly-input-border:var(--smoothly-input-disabled-border)}.sc-smoothly-input-select-h.sc-smoothly-input-select-s>[slot=label],.sc-smoothly-input-select-h .sc-smoothly-input-select-s>[slot=label],.sc-smoothly-input-select-h .label.sc-smoothly-input-select{position:absolute;top:.6rem;opacity:0.8;user-select:none;cursor:inherit;transform-origin:top left;transition:transform 100ms ease}.sc-smoothly-input-select-h.floating-label.sc-smoothly-input-select-s>[slot=label],.sc-smoothly-input-select-h.floating-label .sc-smoothly-input-select-s>[slot=label],.sc-smoothly-input-select-h.has-value.sc-smoothly-input-select-s>[slot=label],.sc-smoothly-input-select-h.has-value .sc-smoothly-input-select-s>[slot=label],.sc-smoothly-input-select-h[placeholder].sc-smoothly-input-select-s>[slot=label],.sc-smoothly-input-select-h[placeholder] .sc-smoothly-input-select-s>[slot=label],.sc-smoothly-input-select-h[readonly].sc-smoothly-input-select-s>[slot=label],.sc-smoothly-input-select-h[readonly] .sc-smoothly-input-select-s>[slot=label],.floating-label.sc-smoothly-input-select-h .label.sc-smoothly-input-select,.has-value.sc-smoothly-input-select-h .label.sc-smoothly-input-select,.has-text.sc-smoothly-input-select-h .label.sc-smoothly-input-select,[placeholder].sc-smoothly-input-select-h .label.sc-smoothly-input-select,[readonly].sc-smoothly-input-select-h .label.sc-smoothly-input-select,.sc-smoothly-input-select-h:not([readonly]):focus-within .label.float-on-focus.sc-smoothly-input-select{top:.2rem;transform:scale(0.8)}.sc-smoothly-input-select-h:not([show-label]):not(.show-label) .label.sc-smoothly-input-select{display:none}.sc-smoothly-input-select-h smoothly-icon.smoothly-invalid.sc-smoothly-input-select{fill:rgb(var(--smoothly-input-invalid-icon, var(--smoothly-danger-color)))}.sc-smoothly-input-select-h{display:flex;justify-content:space-between;flex-direction:row;position:relative;background-color:rgb(var(--smoothly-input-background));color:rgb(var(--smoothly-input-foreground));fill:rgb(var(--smoothly-input-foreground));stroke:rgb(var(--smoothly-input-foreground));padding-left:var(--input-padding-side)}.open.sc-smoothly-input-select-h{border-radius:var(--smoothly-input-border-radius) var(--smoothly-input-border-radius) 0 0}.icon.sc-smoothly-input-select-h{width:fit-content;flex-direction:column}.sc-smoothly-input-select-h>div.select-display.sc-smoothly-input-select{box-sizing:border-box;display:flex;padding:var(--input-value-padding-top) .8rem var(--input-value-padding-bottom) 0;overflow:hidden;width:100%;white-space:nowrap;gap:1rem;text-overflow:ellipsis}.sc-smoothly-input-select-h:not([readonly]):not([disabled])>div.select-display.sc-smoothly-input-select{cursor:pointer}.sc-smoothly-input-select-h:not(:has([slot=label]))>div.select-display.sc-smoothly-input-select,.sc-smoothly-input-select-h:not([show-label])>div.select-display.sc-smoothly-input-select{padding:.6rem .8rem .6rem 0;align-items:center}.sc-smoothly-input-select-h>div.select-display.sc-smoothly-input-select smoothly-icon.sc-smoothly-input-select{color:rgb(var(--smoothly-input-foreground));fill:rgb(var(--smoothly-input-foreground));stroke:rgb(var(--smoothly-input-foreground))}.sc-smoothly-input-select-h>div.icons.sc-smoothly-input-select{display:flex;flex-direction:row;align-items:center}.sc-smoothly-input-select-h:hover>div.icons.sc-smoothly-input-select-s>smoothly-icon{filter:opacity(100%)}.sc-smoothly-input-select-h>div.icons.sc-smoothly-input-select>smoothly-icon[name=caret-down-outline].sc-smoothly-input-select,.sc-smoothly-input-select-h>div.icons.sc-smoothly-input-select>smoothly-icon[name=caret-forward-outline].sc-smoothly-input-select{opacity:.7;height:100%;padding-inline:var(--input-padding-side)}.sc-smoothly-input-select-h:not([readonly]):not([disabled])>div.icons.sc-smoothly-input-select>smoothly-icon[name=caret-down-outline].sc-smoothly-input-select,.sc-smoothly-input-select-h:not([readonly]):not([disabled])>div.icons.sc-smoothly-input-select>smoothly-icon[name=caret-forward-outline].sc-smoothly-input-select{cursor:pointer}[invalid].sc-smoothly-input-select-h>div.sc-smoothly-input-select>smoothly-icon.smoothly-invalid.sc-smoothly-input-select{display:block;padding:0.5rem}.sc-smoothly-input-select-h>div.sc-smoothly-input-select>smoothly-icon.smoothly-invalid.sc-smoothly-input-select{display:none}.sc-smoothly-input-select-h .label.sc-smoothly-input-select{left:.5rem}.has-value.sc-smoothly-input-select-h:has([slot=label]:not(:empty))>div.select-display.sc-smoothly-input-select,.sc-smoothly-input-select-h:not(.has-value)[placeholder]>div.select-display.sc-smoothly-input-select{overflow:hidden;width:100%}.sc-smoothly-input-select-h>.options.sc-smoothly-input-select{display:flex;flex-direction:column;position:absolute;top:var(--element-height);z-index:20;max-height:var(--menu-height, unset);overflow-x:hidden;overflow-y:auto;background-color:rgb(var(--smoothly-input-background));left:0;right:0;border-radius:0 0 var(--smoothly-input-border-radius) var(--smoothly-input-border-radius);min-width:fit-content;border:rgb(var(--smoothly-input-border, var(--smoothly-color-contrast))) solid 1px;border-top:rgba(var(--smoothly-input-border, var(--smoothly-color-contrast)), .4) solid 1px}[looks="grid"].sc-smoothly-input-select-h>div.options.sc-smoothly-input-select,[looks=border].sc-smoothly-input-select-h>div.options.sc-smoothly-input-select,[looks="transparent"].sc-smoothly-input-select-h>div.options.sc-smoothly-input-select{left:-1px;right:-1px}[multiple].sc-smoothly-input-select-h>div.options.sc-smoothly-input-select>smoothly-item.sc-smoothly-input-select::before{content:"";display:inline-block;width:1rem;height:1rem;margin-right:0.5rem;border:1px solid rgb(var(--smoothly-input-foreground));border-radius:0.15rem;vertical-align:middle}[multiple].sc-smoothly-input-select-h>div.options.sc-smoothly-input-select>smoothly-item[selected].sc-smoothly-input-select::after{content:"✔";position:absolute;left:0.65rem;color:rgb(var(--smoothly-item-selected-foreground))}[multiple].sc-smoothly-input-select-h>div.options.sc-smoothly-input-select>smoothly-item[selected].sc-smoothly-input-select::before{border:1px solid rgb(var(--smoothly-item-selected-foreground))}[multiple].sc-smoothly-input-select-h>div.options.sc-smoothly-input-select>smoothly-item[selected].sc-smoothly-input-select::after{color:rgb(var(--smoothly-item-selected-foreground))}[multiple].sc-smoothly-input-select-h>div.options.sc-smoothly-input-select>smoothly-item.sc-smoothly-input-select:hover::before{border:1px solid rgb(var(--smoothly-item-hover-foreground))}[multiple].sc-smoothly-input-select-h>div.options.sc-smoothly-input-select>smoothly-item.sc-smoothly-input-select:hover::after{color:rgb(var(--smoothly-item-hover-foreground))}.sc-smoothly-input-select-h>div.options.sc-smoothly-input-select-s>smoothly-item,.sc-smoothly-input-select-h>div.options.sc-smoothly-input-select-s>div.search-preview{padding:.7rem .7rem .7rem .25rem}.sc-smoothly-input-select-h>div.options.sc-smoothly-input-select-s>div.search-preview{display:flex;position:sticky;top:0;gap:1rem;background-color:rgb(var(--smoothly-input-background));color:rgb(var(--smoothly-input-foreground, var(--smoothly-color-contrast)));fill:rgb(var(--smoothly-input-foreground, var(--smoothly-color-contrast)));stroke:rgb(var(--smoothly-input-foreground, var(--smoothly-color-contrast)))}.sc-smoothly-input-select-h>div.options.sc-smoothly-input-select-s>div.search-preview::before{content:"";position:absolute;inset:0;background-color:rgba(var(--smoothly-primary-tint), 0.5);z-index:-1}.sc-smoothly-input-select-h>div.options.sc-smoothly-input-select>div.search-preview.sc-smoothly-input-select>smoothly-icon[name="search-outline"].sc-smoothly-input-select,.sc-smoothly-input-select-h>div.options.sc-smoothly-input-select>div.search-preview.sc-smoothly-input-select>smoothly-icon[name="backspace-outline"].sc-smoothly-input-select{color:rgb(var(--smoothly-input-foreground, var(--smoothly-color-contrast)));fill:rgb(var(--smoothly-input-foreground, var(--smoothly-color-contrast)));stroke:rgb(var(--smoothly-input-foreground, var(--smoothly-color-contrast)))}.sc-smoothly-input-select-h>div.options.sc-smoothly-input-select>div.search-preview.sc-smoothly-input-select>smoothly-icon[name="backspace-outline"].sc-smoothly-input-select{margin-left:auto;margin-right:0}.sc-smoothly-input-select-h>div.options.hidden.sc-smoothly-input-select{display:none}`;
|
|
7877
|
+
var layout;
|
|
7878
|
+
(function (layout) {
|
|
7879
|
+
function firstItemHeight(items) {
|
|
7880
|
+
var _a;
|
|
7881
|
+
return (_a = items.find(item => item.clientHeight > 0)) === null || _a === void 0 ? void 0 : _a.clientHeight;
|
|
7882
|
+
}
|
|
7883
|
+
layout.firstItemHeight = firstItemHeight;
|
|
7884
|
+
function applyMenuHeight(element, itemHeight, menuHeight) {
|
|
7885
|
+
var _a, _b;
|
|
7886
|
+
const height = menuHeight.endsWith("items")
|
|
7887
|
+
? `${itemHeight * +((_b = (_a = menuHeight.match(/^(\d+(\.\d+)?|\.\d+)/g)) === null || _a === void 0 ? void 0 : _a[0]) !== null && _b !== void 0 ? _b : "10")}px`
|
|
7888
|
+
: menuHeight;
|
|
7889
|
+
element.style.setProperty("--menu-height", height);
|
|
7890
|
+
}
|
|
7891
|
+
layout.applyMenuHeight = applyMenuHeight;
|
|
7892
|
+
function applyElementHeight(element) {
|
|
7893
|
+
element === null || element === void 0 ? void 0 : element.style.setProperty("--element-height", `${element.clientHeight}px`);
|
|
7894
|
+
}
|
|
7895
|
+
layout.applyElementHeight = applyElementHeight;
|
|
7896
|
+
})(layout || (layout = {}));
|
|
7897
|
+
|
|
7898
|
+
var menu;
|
|
7899
|
+
(function (menu) {
|
|
7900
|
+
function next(items, direction) {
|
|
7901
|
+
const selectable = items.filter(item => !item.hidden && !item.disabled);
|
|
7902
|
+
const currentIndex = selectable.findIndex(item => item.marked);
|
|
7903
|
+
let index;
|
|
7904
|
+
if (currentIndex == -1) {
|
|
7905
|
+
index = 0;
|
|
7906
|
+
}
|
|
7907
|
+
else {
|
|
7908
|
+
index = (currentIndex + direction + selectable.length) % selectable.length;
|
|
7909
|
+
}
|
|
7910
|
+
return { current: selectable[currentIndex], next: selectable[index] };
|
|
7911
|
+
}
|
|
7912
|
+
menu.next = next;
|
|
7913
|
+
function hasVisibleItems(items) {
|
|
7914
|
+
return items.some(item => !item.getAttribute("hidden"));
|
|
7915
|
+
}
|
|
7916
|
+
menu.hasVisibleItems = hasVisibleItems;
|
|
7917
|
+
function markOnly(items, item) {
|
|
7918
|
+
items.map(i => (i.marked = i === item));
|
|
7919
|
+
}
|
|
7920
|
+
menu.markOnly = markOnly;
|
|
7921
|
+
function findFirstSelected(items) {
|
|
7922
|
+
return items.find(item => item.selected);
|
|
7923
|
+
}
|
|
7924
|
+
menu.findFirstSelected = findFirstSelected;
|
|
7925
|
+
function findFirstMarked(items) {
|
|
7926
|
+
return items.find(item => item.marked);
|
|
7927
|
+
}
|
|
7928
|
+
menu.findFirstMarked = findFirstMarked;
|
|
7929
|
+
})(menu || (menu = {}));
|
|
7930
|
+
|
|
7931
|
+
var scroll;
|
|
7932
|
+
(function (scroll) {
|
|
7933
|
+
function centerInView(container, item, behavior = "smooth") {
|
|
7934
|
+
var _a;
|
|
7935
|
+
if (item && container) {
|
|
7936
|
+
container.scrollTo({
|
|
7937
|
+
top: item.offsetTop + item.offsetHeight / 2 - ((_a = container.clientHeight) !== null && _a !== void 0 ? _a : 0) / 2,
|
|
7938
|
+
behavior,
|
|
7939
|
+
});
|
|
7940
|
+
}
|
|
7941
|
+
}
|
|
7942
|
+
scroll.centerInView = centerInView;
|
|
7943
|
+
})(scroll || (scroll = {}));
|
|
7944
|
+
|
|
7945
|
+
const styleCss$C = () => `.sc-smoothly-input-select-h{--input-padding-side:.5rem;--input-value-padding-top:1.25rem;--input-value-padding-bottom:.25rem;--input-min-height:3rem;min-height:var(--input-min-height);box-sizing:border-box;border-radius:var(--smoothly-input-border-radius)}[looks="border"].sc-smoothly-input-select-h{border:rgb(var(--smoothly-input-border)) solid 1px}[looks="border"].sc-smoothly-input-select-h:not([readonly]):not([disabled]):focus-within{outline:2px solid rgb(var(--smoothly-input-border-focus))}[looks="border"][readonly].sc-smoothly-input-select-h{border:transparent solid 1px}[looks="line"].sc-smoothly-input-select-h{border-bottom:rgb(var(--smoothly-input-border)) solid 1px;position:relative}[looks="line"][readonly].sc-smoothly-input-select-h{border-bottom:transparent solid 1px}[looks="line"].sc-smoothly-input-select-h:not([readonly]):not([disabled]):focus-within::before{content:"";position:absolute;inset:0;pointer-events:none;border-bottom:2px solid rgb(var(--smoothly-input-border-focus));z-index:10}[looks="grid"].sc-smoothly-input-select-h{flex-grow:1;flex-basis:40%;box-shadow:0px 0px 0px 1px rgb(var(--smoothly-input-border));border:none}[looks="grid"][readonly].sc-smoothly-input-select-h{box-shadow:0px 0px 0px 1px rgba(var(--smoothly-input-border-readonly))}[looks="grid"].sc-smoothly-input-select-h:not([readonly]):not([disabled]):focus-within{position:relative;box-shadow:0px 0px 0px 2px rgb(var(--smoothly-input-border-focus));outline:none;z-index:10}[looks="transparent"].sc-smoothly-input-select-h{border:none}[looks="transparent"][readonly].sc-smoothly-input-select-h,[looks="transparent"].sc-smoothly-input-select-h:not(:focus-within){background-color:transparent}[looks="transparent"][readonly].sc-smoothly-input-select-h>input.sc-smoothly-input-select,[looks="transparent"].sc-smoothly-input-select-h:not(:focus-within)>input.sc-smoothly-input-select{background-color:transparent}[looks="transparent"].sc-smoothly-input-select-h:not([readonly]):focus-within{outline:1px solid rgb(var(--smoothly-input-border))}[disabled].sc-smoothly-input-select-h{cursor:not-allowed;--smoothly-input-foreground:var(--smoothly-input-disabled-foreground);--smoothly-input-background:var(--smoothly-input-disabled-background);--smoothly-input-border:var(--smoothly-input-disabled-border)}.sc-smoothly-input-select-h.sc-smoothly-input-select-s>[slot=label],.sc-smoothly-input-select-h .sc-smoothly-input-select-s>[slot=label],.sc-smoothly-input-select-h .label.sc-smoothly-input-select{position:absolute;top:.6rem;opacity:0.8;user-select:none;cursor:inherit;transform-origin:top left;transition:transform 100ms ease}.sc-smoothly-input-select-h.floating-label.sc-smoothly-input-select-s>[slot=label],.sc-smoothly-input-select-h.floating-label .sc-smoothly-input-select-s>[slot=label],.sc-smoothly-input-select-h.has-value.sc-smoothly-input-select-s>[slot=label],.sc-smoothly-input-select-h.has-value .sc-smoothly-input-select-s>[slot=label],.sc-smoothly-input-select-h[placeholder].sc-smoothly-input-select-s>[slot=label],.sc-smoothly-input-select-h[placeholder] .sc-smoothly-input-select-s>[slot=label],.sc-smoothly-input-select-h[readonly].sc-smoothly-input-select-s>[slot=label],.sc-smoothly-input-select-h[readonly] .sc-smoothly-input-select-s>[slot=label],.floating-label.sc-smoothly-input-select-h .label.sc-smoothly-input-select,.has-value.sc-smoothly-input-select-h .label.sc-smoothly-input-select,.has-text.sc-smoothly-input-select-h .label.sc-smoothly-input-select,[placeholder].sc-smoothly-input-select-h .label.sc-smoothly-input-select,[readonly].sc-smoothly-input-select-h .label.sc-smoothly-input-select,.sc-smoothly-input-select-h:not([readonly]):focus-within .label.float-on-focus.sc-smoothly-input-select{top:.2rem;transform:scale(0.8)}.sc-smoothly-input-select-h:not([show-label]):not(.show-label) .label.sc-smoothly-input-select{display:none}.sc-smoothly-input-select-h smoothly-icon.smoothly-invalid.sc-smoothly-input-select{fill:rgb(var(--smoothly-input-invalid-icon, var(--smoothly-danger-color)))}.sc-smoothly-input-select-h{display:flex;justify-content:space-between;flex-direction:row;position:relative;background-color:rgb(var(--smoothly-input-background));color:rgb(var(--smoothly-input-foreground));fill:rgb(var(--smoothly-input-foreground));stroke:rgb(var(--smoothly-input-foreground));padding-left:var(--input-padding-side)}.open.sc-smoothly-input-select-h{border-radius:var(--smoothly-input-border-radius) var(--smoothly-input-border-radius) 0 0}.sc-smoothly-input-select-h>.select-display.sc-smoothly-input-select{box-sizing:border-box;display:flex;padding:var(--input-value-padding-top) .8rem var(--input-value-padding-bottom) 0;overflow:hidden;width:100%;white-space:nowrap;gap:1rem;text-overflow:ellipsis}.sc-smoothly-input-select-h:not([readonly]):not([disabled])>.select-display.sc-smoothly-input-select{cursor:pointer}.sc-smoothly-input-select-h:not(:has([slot=label]))>.select-display.sc-smoothly-input-select,.sc-smoothly-input-select-h:not([show-label])>.select-display.sc-smoothly-input-select{padding:.6rem .8rem .6rem 0;align-items:center}.sc-smoothly-input-select-h>.select-display.sc-smoothly-input-select smoothly-icon.sc-smoothly-input-select{color:rgb(var(--smoothly-input-foreground));fill:rgb(var(--smoothly-input-foreground));stroke:rgb(var(--smoothly-input-foreground))}.sc-smoothly-input-select-h>div.icons.sc-smoothly-input-select{display:flex;flex-direction:row;align-items:center}.sc-smoothly-input-select-h:hover>div.icons.sc-smoothly-input-select-s>smoothly-icon{filter:opacity(100%)}.sc-smoothly-input-select-h>div.icons.sc-smoothly-input-select>smoothly-icon[name=caret-down-outline].sc-smoothly-input-select,.sc-smoothly-input-select-h>div.icons.sc-smoothly-input-select>smoothly-icon[name=caret-forward-outline].sc-smoothly-input-select{opacity:.7;height:100%;padding-inline:var(--input-padding-side)}.sc-smoothly-input-select-h:not([readonly]):not([disabled])>div.icons.sc-smoothly-input-select>smoothly-icon[name=caret-down-outline].sc-smoothly-input-select,.sc-smoothly-input-select-h:not([readonly]):not([disabled])>div.icons.sc-smoothly-input-select>smoothly-icon[name=caret-forward-outline].sc-smoothly-input-select{cursor:pointer}[invalid].sc-smoothly-input-select-h>div.sc-smoothly-input-select>smoothly-icon.smoothly-invalid.sc-smoothly-input-select{display:block;padding:0.5rem}.sc-smoothly-input-select-h>div.sc-smoothly-input-select>smoothly-icon.smoothly-invalid.sc-smoothly-input-select{display:none}.has-value.sc-smoothly-input-select-h:has([slot=label]:not(:empty))>.select-display.sc-smoothly-input-select,.sc-smoothly-input-select-h:not(.has-value)[placeholder]>.select-display.sc-smoothly-input-select{overflow:hidden;width:100%}.sc-smoothly-input-select-h>.dropdown.sc-smoothly-input-select{display:flex;flex-direction:column;position:absolute;top:var(--element-height);z-index:20;max-height:var(--menu-height, unset);overflow-x:hidden;overflow-y:auto;background-color:rgb(var(--smoothly-input-background));inset-inline:0;border-radius:0 0 var(--smoothly-input-border-radius) var(--smoothly-input-border-radius);border:rgb(var(--smoothly-input-border, var(--smoothly-color-contrast))) solid 1px;border-top:rgba(var(--smoothly-input-border, var(--smoothly-color-contrast)), .4) solid 1px}.sc-smoothly-input-select-h:not(.open)>.dropdown.sc-smoothly-input-select{border:0}[looks="grid"].sc-smoothly-input-select-h>.dropdown.sc-smoothly-input-select,[looks=border].sc-smoothly-input-select-h>.dropdown.sc-smoothly-input-select,[looks="transparent"].sc-smoothly-input-select-h>.dropdown.sc-smoothly-input-select{inset-inline:-1px}.sc-smoothly-input-select-h>.dropdown.sc-smoothly-input-select>.search.sc-smoothly-input-select{display:flex;position:sticky;align-items:center;top:0;gap:1rem;padding:.7rem .7rem .7rem .25rem;background-color:rgb(var(--smoothly-input-background));color:rgb(var(--smoothly-input-foreground, var(--smoothly-color-contrast)));fill:rgb(var(--smoothly-input-foreground, var(--smoothly-color-contrast)));stroke:rgb(var(--smoothly-input-foreground, var(--smoothly-color-contrast)))}.sc-smoothly-input-select-h:not(.has-filter)>.dropdown.sc-smoothly-input-select>.search.sc-smoothly-input-select{height:0;padding:0;overflow:hidden;pointer-events:none}.sc-smoothly-input-select-h>.dropdown.sc-smoothly-input-select>.search.sc-smoothly-input-select::before{content:"";position:absolute;inset:0;background-color:rgba(var(--smoothly-primary-tint), 0.5);z-index:-1}.sc-smoothly-input-select-h>.dropdown.sc-smoothly-input-select>.search.sc-smoothly-input-select>.search-input.sc-smoothly-input-select{width:100%;background-color:transparent;border:none;outline:none}.sc-smoothly-input-select-h>.dropdown.sc-smoothly-input-select>.search.sc-smoothly-input-select>smoothly-icon[name="search-outline"].sc-smoothly-input-select,.sc-smoothly-input-select-h>.dropdown.sc-smoothly-input-select>.search.sc-smoothly-input-select>smoothly-icon[name="backspace-outline"].sc-smoothly-input-select{color:rgb(var(--smoothly-input-foreground, var(--smoothly-color-contrast)));fill:rgb(var(--smoothly-input-foreground, var(--smoothly-color-contrast)));stroke:rgb(var(--smoothly-input-foreground, var(--smoothly-color-contrast)))}.sc-smoothly-input-select-h[multiple].sc-smoothly-input-select-s>.dropdown>.menu>smoothly-item{position:relative}.sc-smoothly-input-select-h[multiple].sc-smoothly-input-select-s>.dropdown>.menu>smoothly-item::before{content:"";display:inline-block;width:1rem;height:1rem;margin-right:0.5rem;border:1px solid rgb(var(--smoothly-input-foreground));border-radius:0.15rem;vertical-align:middle}.sc-smoothly-input-select-h[multiple].sc-smoothly-input-select-s>.dropdown>.menu>smoothly-item[selected]::before{border-color:rgb(var(--smoothly-item-selected-foreground))}.sc-smoothly-input-select-h[multiple].sc-smoothly-input-select-s>.dropdown>.menu>smoothly-item:hover::before{border:1px solid rgb(var(--smoothly-item-hover-foreground))}.sc-smoothly-input-select-h[multiple].sc-smoothly-input-select-s>.dropdown>.menu>smoothly-item[selected]::after{content:"✔";position:absolute;left:0.65rem;color:rgb(var(--smoothly-item-selected-foreground))}.sc-smoothly-input-select-h[multiple].sc-smoothly-input-select-s>.dropdown>.menu>smoothly-item:hover::after{color:rgb(var(--smoothly-item-hover-foreground))}.sc-smoothly-input-select-h>.dropdown.sc-smoothly-input-select{min-width:fit-content}.sc-smoothly-input-select-h>.dropdown.sc-smoothly-input-select>.menu[hidden].sc-smoothly-input-select{display:none}`;
|
|
7868
7946
|
|
|
7869
7947
|
const SmoothlyInputSelect = class {
|
|
7870
7948
|
constructor(hostRef) {
|
|
@@ -7912,18 +7990,24 @@ const SmoothlyInputSelect = class {
|
|
|
7912
7990
|
this.onSelectedChange();
|
|
7913
7991
|
}
|
|
7914
7992
|
componentDidRender() {
|
|
7915
|
-
var _a
|
|
7916
|
-
|
|
7993
|
+
var _a;
|
|
7994
|
+
(_a = this.itemHeight) !== null && _a !== void 0 ? _a : (this.itemHeight = layout.firstItemHeight(this.items));
|
|
7917
7995
|
if (this.menuHeight && this.itemHeight) {
|
|
7918
|
-
(
|
|
7919
|
-
? this.menuHeight
|
|
7920
|
-
: `${this.itemHeight * +((_d = (_c = this.menuHeight.match(/^(\d+(\.\d+)?|\.\d+)/g)) === null || _c === void 0 ? void 0 : _c[0]) !== null && _d !== void 0 ? _d : "10")}px`);
|
|
7996
|
+
layout.applyMenuHeight(this.element, this.itemHeight, this.menuHeight);
|
|
7921
7997
|
}
|
|
7922
|
-
|
|
7923
|
-
|
|
7998
|
+
layout.applyElementHeight(this.element);
|
|
7999
|
+
const justOpened = this.open && !this.lastOpen;
|
|
8000
|
+
if (justOpened && this.ordered) {
|
|
7924
8001
|
this.scrollToSelected();
|
|
7925
8002
|
}
|
|
7926
8003
|
}
|
|
8004
|
+
scrollToSelected() {
|
|
8005
|
+
const selectedItem = menu.findFirstSelected(this.items);
|
|
8006
|
+
if (selectedItem) {
|
|
8007
|
+
menu.markOnly(this.items, selectedItem);
|
|
8008
|
+
scroll.centerInView(this.dropdownElement, selectedItem, "instant");
|
|
8009
|
+
}
|
|
8010
|
+
}
|
|
7927
8011
|
async disconnectedCallback() {
|
|
7928
8012
|
if (!this.element.isConnected) {
|
|
7929
8013
|
await this.unregister();
|
|
@@ -7957,15 +8041,15 @@ const SmoothlyInputSelect = class {
|
|
|
7957
8041
|
this.selected = [...this.initialValue];
|
|
7958
8042
|
this.displaySelected();
|
|
7959
8043
|
this.isDifferentFromInitial = false;
|
|
7960
|
-
this.
|
|
8044
|
+
this.closeMenu();
|
|
7961
8045
|
}
|
|
7962
8046
|
async clear() {
|
|
7963
8047
|
var _a;
|
|
7964
8048
|
if (this.clearable) {
|
|
7965
8049
|
this.selected.forEach(item => (item.selected = item.hidden = false));
|
|
7966
8050
|
this.selected = [];
|
|
7967
|
-
if (this.
|
|
7968
|
-
this.
|
|
8051
|
+
if (this.displayElement) {
|
|
8052
|
+
this.displayElement.innerHTML = (_a = this.placeholder) !== null && _a !== void 0 ? _a : "";
|
|
7969
8053
|
}
|
|
7970
8054
|
}
|
|
7971
8055
|
}
|
|
@@ -7993,9 +8077,9 @@ const SmoothlyInputSelect = class {
|
|
|
7993
8077
|
this.observer.publish();
|
|
7994
8078
|
}
|
|
7995
8079
|
async smoothlyInputLoadHandler(event) {
|
|
7996
|
-
|
|
7997
|
-
|
|
7998
|
-
|
|
8080
|
+
const fromSelf = event.target && "name" in event.target && event.target.name !== this.name;
|
|
8081
|
+
const fromEndSlot = event.composedPath().some(e => e == this.iconsElement);
|
|
8082
|
+
if (fromSelf || fromEndSlot) {
|
|
7999
8083
|
event.stopPropagation();
|
|
8000
8084
|
}
|
|
8001
8085
|
else if (Item.Element.is(event.target)) {
|
|
@@ -8007,7 +8091,9 @@ const SmoothlyInputSelect = class {
|
|
|
8007
8091
|
this.displaySelected();
|
|
8008
8092
|
}
|
|
8009
8093
|
onWindowClick(event) {
|
|
8010
|
-
!event.composedPath().includes(this.element)
|
|
8094
|
+
if (this.open && !event.composedPath().includes(this.element)) {
|
|
8095
|
+
this.closeMenu();
|
|
8096
|
+
}
|
|
8011
8097
|
}
|
|
8012
8098
|
onItemDomChange(e) {
|
|
8013
8099
|
e.stopPropagation();
|
|
@@ -8035,144 +8121,120 @@ const SmoothlyInputSelect = class {
|
|
|
8035
8121
|
onClosed(open, before) {
|
|
8036
8122
|
this.lastOpen = before;
|
|
8037
8123
|
if (!open) {
|
|
8038
|
-
const markedItem = this.items
|
|
8124
|
+
const markedItem = menu.findFirstMarked(this.items);
|
|
8039
8125
|
if (markedItem) {
|
|
8040
8126
|
markedItem.marked = false;
|
|
8041
8127
|
}
|
|
8042
8128
|
}
|
|
8043
8129
|
this.smoothlySelectOpen.emit(open);
|
|
8044
8130
|
}
|
|
8045
|
-
handleShowOptions(event) {
|
|
8046
|
-
const wasButtonClicked = (event === null || event === void 0 ? void 0 : event.composedPath().some(e => e == this.iconsDiv)) && !event.composedPath().some(e => e == this.toggle);
|
|
8047
|
-
const clickedItem = event === null || event === void 0 ? void 0 : event.composedPath().find((el) => "tagName" in el && el.tagName == "SMOOTHLY-ITEM");
|
|
8048
|
-
!this.readonly &&
|
|
8049
|
-
!this.disabled &&
|
|
8050
|
-
!(clickedItem && this.items.includes(clickedItem) && this.multiple) &&
|
|
8051
|
-
!wasButtonClicked &&
|
|
8052
|
-
(this.open = !this.open);
|
|
8053
|
-
this.filter = "";
|
|
8054
|
-
}
|
|
8055
8131
|
areValuesEqual(selected, initialValue) {
|
|
8056
8132
|
return selected.length === initialValue.length && initialValue.every(value => selected.includes(value));
|
|
8057
8133
|
}
|
|
8058
8134
|
displaySelected() {
|
|
8059
8135
|
var _a;
|
|
8060
8136
|
const displayString = this.selected.map(option => `<div>${option.innerHTML}</div>`).join("");
|
|
8061
|
-
this.
|
|
8062
|
-
(this.
|
|
8137
|
+
this.displayElement &&
|
|
8138
|
+
(this.displayElement.innerHTML = this.selected.length > 0 ? displayString : ((_a = this.placeholder) !== null && _a !== void 0 ? _a : ""));
|
|
8063
8139
|
}
|
|
8064
8140
|
onKeyDown(event) {
|
|
8065
|
-
|
|
8066
|
-
|
|
8067
|
-
|
|
8068
|
-
|
|
8069
|
-
|
|
8070
|
-
|
|
8071
|
-
|
|
8072
|
-
|
|
8073
|
-
|
|
8074
|
-
|
|
8075
|
-
|
|
8076
|
-
|
|
8077
|
-
|
|
8078
|
-
|
|
8079
|
-
|
|
8080
|
-
|
|
8081
|
-
|
|
8082
|
-
|
|
8083
|
-
|
|
8084
|
-
|
|
8085
|
-
}
|
|
8086
|
-
break;
|
|
8087
|
-
case "Backspace":
|
|
8088
|
-
this.filter = event.ctrlKey ? "" : this.filter.slice(0, -1);
|
|
8089
|
-
break;
|
|
8090
|
-
case "Enter":
|
|
8091
|
-
const result = this.items.find(item => item.marked);
|
|
8092
|
-
if (result === null || result === void 0 ? void 0 : result.value) {
|
|
8093
|
-
result.selected = !result.selected;
|
|
8094
|
-
}
|
|
8095
|
-
if (!this.multiple) {
|
|
8096
|
-
this.open = false;
|
|
8097
|
-
this.filter = "";
|
|
8098
|
-
}
|
|
8099
|
-
break;
|
|
8100
|
-
case "Tab":
|
|
8101
|
-
this.open = false;
|
|
8102
|
-
break;
|
|
8103
|
-
default:
|
|
8104
|
-
if (event.key.length == 1) {
|
|
8105
|
-
this.filter += event.key;
|
|
8106
|
-
}
|
|
8107
|
-
break;
|
|
8108
|
-
}
|
|
8109
|
-
}
|
|
8110
|
-
else {
|
|
8111
|
-
switch (event.key) {
|
|
8112
|
-
case "Enter":
|
|
8113
|
-
case " ":
|
|
8114
|
-
this.handleShowOptions();
|
|
8115
|
-
break;
|
|
8116
|
-
case "ArrowDown":
|
|
8117
|
-
this.handleShowOptions();
|
|
8118
|
-
this.move(1);
|
|
8119
|
-
break;
|
|
8120
|
-
case "ArrowUp":
|
|
8121
|
-
this.handleShowOptions();
|
|
8122
|
-
this.move(-1);
|
|
8123
|
-
break;
|
|
8124
|
-
case "Tab":
|
|
8125
|
-
break;
|
|
8126
|
-
default:
|
|
8127
|
-
this.handleShowOptions();
|
|
8128
|
-
if (event.key.length == 1) {
|
|
8129
|
-
this.filter += event.key;
|
|
8130
|
-
}
|
|
8131
|
-
break;
|
|
8132
|
-
}
|
|
8133
|
-
}
|
|
8141
|
+
event.stopPropagation();
|
|
8142
|
+
const key = event.key;
|
|
8143
|
+
if (key == "ArrowUp" || key == "ArrowDown") {
|
|
8144
|
+
event.preventDefault();
|
|
8145
|
+
this.handlerNavigate(key);
|
|
8146
|
+
}
|
|
8147
|
+
else if (key == "Escape") {
|
|
8148
|
+
event.preventDefault();
|
|
8149
|
+
this.handleEscape();
|
|
8150
|
+
}
|
|
8151
|
+
else if (key == "Enter") {
|
|
8152
|
+
event.preventDefault();
|
|
8153
|
+
this.handleEnter();
|
|
8154
|
+
}
|
|
8155
|
+
else if (key == " ") {
|
|
8156
|
+
event.preventDefault();
|
|
8157
|
+
this.openMenu();
|
|
8158
|
+
}
|
|
8159
|
+
else if (this.open && key == "Tab") {
|
|
8160
|
+
this.closeMenu();
|
|
8134
8161
|
}
|
|
8135
8162
|
}
|
|
8136
|
-
|
|
8137
|
-
|
|
8138
|
-
|
|
8139
|
-
this.items.map(item => (item.marked = false));
|
|
8140
|
-
selectedItem.marked = true;
|
|
8141
|
-
this.scrollTo(selectedItem, "instant");
|
|
8163
|
+
handlerNavigate(key) {
|
|
8164
|
+
if (menu.hasVisibleItems(this.items)) {
|
|
8165
|
+
this.move(key == "ArrowUp" ? -1 : 1);
|
|
8142
8166
|
}
|
|
8167
|
+
this.openMenu();
|
|
8143
8168
|
}
|
|
8144
|
-
|
|
8145
|
-
|
|
8146
|
-
|
|
8147
|
-
if (markedIndex == -1) {
|
|
8148
|
-
markedIndex = 0;
|
|
8169
|
+
handleEscape() {
|
|
8170
|
+
if (this.filter) {
|
|
8171
|
+
this.resetFilter();
|
|
8149
8172
|
}
|
|
8150
8173
|
else {
|
|
8151
|
-
|
|
8152
|
-
markedIndex = (markedIndex + direction + selectableItems.length) % selectableItems.length;
|
|
8174
|
+
this.closeMenu();
|
|
8153
8175
|
}
|
|
8154
|
-
selectableItems[markedIndex].marked = true;
|
|
8155
|
-
this.scrollTo(selectableItems[markedIndex], "smooth");
|
|
8156
8176
|
}
|
|
8157
|
-
|
|
8158
|
-
|
|
8159
|
-
(
|
|
8160
|
-
|
|
8161
|
-
|
|
8162
|
-
|
|
8177
|
+
handleEnter() {
|
|
8178
|
+
const item = menu.findFirstMarked(this.items);
|
|
8179
|
+
if (item === null || item === void 0 ? void 0 : item.value) {
|
|
8180
|
+
item.selected = !item.selected;
|
|
8181
|
+
}
|
|
8182
|
+
if (!this.multiple) {
|
|
8183
|
+
this.closeMenu();
|
|
8184
|
+
this.resetFilter();
|
|
8185
|
+
}
|
|
8186
|
+
}
|
|
8187
|
+
move(direction) {
|
|
8188
|
+
const { current, next } = menu.next(this.items, direction);
|
|
8189
|
+
current && (current.marked = false);
|
|
8190
|
+
next.marked = true;
|
|
8191
|
+
scroll.centerInView(this.dropdownElement, next, "smooth");
|
|
8163
8192
|
}
|
|
8164
8193
|
addItem() {
|
|
8165
8194
|
this.addedItems = this.addedItems.concat(h("smoothly-item", { value: this.filter, selected: true }, this.filter));
|
|
8166
8195
|
}
|
|
8196
|
+
resetFilter() {
|
|
8197
|
+
this.searchElement && (this.searchElement.value = "");
|
|
8198
|
+
this.filter = "";
|
|
8199
|
+
}
|
|
8200
|
+
setFilter(filter) {
|
|
8201
|
+
if (filter) {
|
|
8202
|
+
this.filter = filter;
|
|
8203
|
+
this.openMenu();
|
|
8204
|
+
}
|
|
8205
|
+
else {
|
|
8206
|
+
this.resetFilter();
|
|
8207
|
+
}
|
|
8208
|
+
}
|
|
8209
|
+
openMenu({ focus } = {}) {
|
|
8210
|
+
this.open = true;
|
|
8211
|
+
focus && queueMicrotask(() => { var _a; return (_a = this.searchElement) === null || _a === void 0 ? void 0 : _a.focus(); });
|
|
8212
|
+
}
|
|
8213
|
+
closeMenu() {
|
|
8214
|
+
this.open = false;
|
|
8215
|
+
this.resetFilter();
|
|
8216
|
+
}
|
|
8217
|
+
toggleMenu() {
|
|
8218
|
+
if (!this.readonly && !this.disabled) {
|
|
8219
|
+
this.open ? this.closeMenu() : this.openMenu({ focus: true });
|
|
8220
|
+
}
|
|
8221
|
+
}
|
|
8222
|
+
onClick(e) {
|
|
8223
|
+
const wasIconsClicked = e.composedPath().includes(this.iconsElement) && !e.composedPath().includes(this.toggleElement);
|
|
8224
|
+
const wasSearchClicked = e.composedPath().includes(this.searchElement);
|
|
8225
|
+
const wasItemClicked = e
|
|
8226
|
+
.composedPath()
|
|
8227
|
+
.find(element => element instanceof HTMLElement && element.tagName === "SMOOTHLY-ITEM");
|
|
8228
|
+
if (!wasIconsClicked && !wasSearchClicked && !(wasItemClicked && this.multiple)) {
|
|
8229
|
+
this.toggleMenu();
|
|
8230
|
+
}
|
|
8231
|
+
}
|
|
8167
8232
|
render() {
|
|
8168
|
-
return (h(Host, { key: '
|
|
8169
|
-
|
|
8170
|
-
this.
|
|
8171
|
-
this.
|
|
8172
|
-
} }), this.mutable &&
|
|
8173
|
-
e.stopPropagation();
|
|
8174
|
-
this.addItem();
|
|
8175
|
-
} })))), h("slot", { key: 'a60d0d54bfc5dbae48ec336f92c5556a5ba13b2e' }), this.addedItems)));
|
|
8233
|
+
return (h(Host, { key: 'fc69e6b3aa75a286df61522835899bf05893e887', class: { "has-value": this.selected.length !== 0, open: this.open, "has-filter": this.filter !== "" }, onClick: (e) => this.onClick(e) }, h("div", { key: 'dc0215f0d88bb06e505f9392334926e337ede251', class: "select-display", ref: element => (this.displayElement = element) }, this.placeholder), h("div", { key: 'bee374985877632d52d267f69b35bdcf0e59e3a2', class: "icons", ref: element => (this.iconsElement = element) }, h("smoothly-icon", { key: 'd7a72d5df184d7f9196ee8cab6240a71755f89e3', class: "smoothly-invalid", name: "alert-circle", size: "small", tooltip: this.errorMessage }), h("slot", { key: 'f201848287035627b54f3a0eff16c4b2dbc19164', name: "end" }), this.looks == "border" && !this.readonly && (h("smoothly-icon", { key: '4953076b51e480e34240dfa6378839d4a6c215e0', ref: element => (this.toggleElement = element), size: "tiny", name: this.open ? "caret-down-outline" : "caret-forward-outline" }))), h("slot", { key: '58d76a74b9b1c67b238e63fa267ed091a274c534', name: "label" }), h("div", { key: '4266c5f1701da8c0abd861e0bbb093a972d6c56e', class: "dropdown", ref: (el) => (this.dropdownElement = el) }, h("div", { key: 'b775dddd5cbe75d1fe1bfa5cc1c5fe16315abda1', class: "search" }, h("smoothly-icon", { key: '0399e20f7a99b228ba652b6d1d2202e75a3e84a0', name: "search-outline", size: "small" }), h("input", { key: '950d94085d70803847237e0308eac7a7bea1720f', class: "search-input", ref: el => (this.searchElement = el), disabled: this.searchDisabled, onKeyDown: e => this.onKeyDown(e), onInput: e => { var _a, _b; return (e.stopPropagation(), this.setFilter((_b = (_a = this.searchElement) === null || _a === void 0 ? void 0 : _a.value) !== null && _b !== void 0 ? _b : "")); }, onPaste: e => { var _a, _b; return (e.stopPropagation(), this.setFilter((_b = (_a = this.searchElement) === null || _a === void 0 ? void 0 : _a.value) !== null && _b !== void 0 ? _b : "")); } }), h("smoothly-icon", { key: '10e8603c1bb8b5061a7615f15392b1cbc519a0f5', name: "backspace-outline", size: "small", onClick: () => {
|
|
8234
|
+
var _a;
|
|
8235
|
+
this.resetFilter();
|
|
8236
|
+
(_a = this.searchElement) === null || _a === void 0 ? void 0 : _a.focus();
|
|
8237
|
+
} }), this.mutable && h("smoothly-icon", { key: 'bd9f5b3eb6d8ef4f0802878ca327f29ccbd0795e', name: "add", size: "small", onClick: () => this.addItem() })), h("div", { key: '210cc7a519f44cb0ab8800145aa55e02353fba83', class: "menu", hidden: !this.open }, h("slot", { key: '0d159f5f2ceb3ecc45b314f519505982ca4622be' }), this.addedItems))));
|
|
8176
8238
|
}
|
|
8177
8239
|
get element() { return getElement(this); }
|
|
8178
8240
|
static get watchers() { return {
|
|
@@ -8219,14 +8281,20 @@ const SmoothlyInputSubmit = class {
|
|
|
8219
8281
|
if (Submittable.is(parent) && Editable.type.is(parent)) {
|
|
8220
8282
|
this.parent = parent;
|
|
8221
8283
|
parent.listen(async (p) => {
|
|
8222
|
-
var _a;
|
|
8223
8284
|
this.display = !p.readonly;
|
|
8224
|
-
this.disabled =
|
|
8225
|
-
!this.delete &&
|
|
8226
|
-
(p.readonly ||
|
|
8227
|
-
("validator" in p && p.validator instanceof Type && !((_a = p.validator) === null || _a === void 0 ? void 0 : _a.is(Data.convertArrays(p.value)))) ||
|
|
8228
|
-
!p.isDifferentFromInitial);
|
|
8229
8285
|
});
|
|
8286
|
+
if (typeof this.disabled !== "boolean") {
|
|
8287
|
+
parent.listen(async (p) => {
|
|
8288
|
+
var _a;
|
|
8289
|
+
this.disabled =
|
|
8290
|
+
!this.delete &&
|
|
8291
|
+
(p.readonly ||
|
|
8292
|
+
("validator" in p &&
|
|
8293
|
+
p.validator instanceof Type &&
|
|
8294
|
+
!((_a = p.validator) === null || _a === void 0 ? void 0 : _a.is(Data.convertArrays(p.value)))) ||
|
|
8295
|
+
!p.isDifferentFromInitial);
|
|
8296
|
+
});
|
|
8297
|
+
}
|
|
8230
8298
|
}
|
|
8231
8299
|
});
|
|
8232
8300
|
}
|
|
@@ -8236,7 +8304,7 @@ const SmoothlyInputSubmit = class {
|
|
|
8236
8304
|
}
|
|
8237
8305
|
render() {
|
|
8238
8306
|
var _a, _b;
|
|
8239
|
-
return (h(Host, { key: '
|
|
8307
|
+
return (h(Host, { key: '0fed4a319580841ba1d3281fb084b91a4d7b5a68', title: this.tooltip }, this.delete == true ? (h("smoothly-button-confirm", { size: this.size, shape: this.shape, expand: this.expand, color: (_a = this.color) !== null && _a !== void 0 ? _a : "danger", fill: this.fill, onSmoothlyConfirm: () => this.clickHandler() }, h("slot", null), h("smoothly-icon", { name: "trash-outline", fill: "solid", size: "tiny" }))) : (h("smoothly-button", { disabled: this.disabled, size: this.size, type: "button", shape: this.shape, expand: this.expand, color: (_b = this.color) !== null && _b !== void 0 ? _b : "success", fill: this.fill, onClick: () => this.clickHandler() }, h("slot", null), this.icon && h("smoothly-icon", { name: this.icon, fill: "solid", size: "tiny" })))));
|
|
8240
8308
|
}
|
|
8241
8309
|
};
|
|
8242
8310
|
SmoothlyInputSubmit.style = styleCss$B();
|
|
@@ -8282,7 +8350,7 @@ const SmoothlyItem = class {
|
|
|
8282
8350
|
: false;
|
|
8283
8351
|
}
|
|
8284
8352
|
render() {
|
|
8285
|
-
return (h(Host, { key: '
|
|
8353
|
+
return (h(Host, { key: '5a606bfedb2eb8cf6a503386d2d5e16f0f60c090', tabIndex: -1 }, h("slot", { key: 'a7912c7b3ac7ecb40e61058d949b4cc62806246d' })));
|
|
8286
8354
|
}
|
|
8287
8355
|
get element() { return getElement(this); }
|
|
8288
8356
|
static get watchers() { return {
|
|
@@ -8301,9 +8369,9 @@ const SmoothlyLabel = class {
|
|
|
8301
8369
|
}
|
|
8302
8370
|
render() {
|
|
8303
8371
|
var _a;
|
|
8304
|
-
return (h(Host, { key: '
|
|
8372
|
+
return (h(Host, { key: 'd6dfddb0df4c99de8e075141cf16d3f4ca4c861a', title: this.description, style: {
|
|
8305
8373
|
"--hue": (_a = this.hue) === null || _a === void 0 ? void 0 : _a.toString(),
|
|
8306
|
-
} }, h("slot", { key: '
|
|
8374
|
+
} }, h("slot", { key: '1f56e22de589b47ac208c96ee5c84edd8484e3a4' })));
|
|
8307
8375
|
}
|
|
8308
8376
|
};
|
|
8309
8377
|
SmoothlyLabel.style = styleCss$z();
|
|
@@ -8320,7 +8388,7 @@ const SmoothlyLazy = class {
|
|
|
8320
8388
|
this.show = true;
|
|
8321
8389
|
}
|
|
8322
8390
|
render() {
|
|
8323
|
-
return (h(Host, { key: '
|
|
8391
|
+
return (h(Host, { key: '0b17b27ef091a5cbf3efedc7560c0af506f8927a' }, h("slot", { key: '7cb9a362b4540fbdcdc579bf95a273e7c13fad25', name: "before" }), h("smoothly-load-more", { key: '7dde9ba1e78a9a7f0eeeefbe124c3410f367bd3e', onSmoothlyLoadMore: e => this.loadMoreHandler(e) }), this.show && (typeof this.content == "function" ? h(this.content, null) : this.content), h("slot", { key: 'fbe22ffca8fa781a19bf07537f294be36a8bc212' })));
|
|
8324
8392
|
}
|
|
8325
8393
|
};
|
|
8326
8394
|
SmoothlyLazy.style = styleCss$y();
|
|
@@ -8364,7 +8432,7 @@ const LoadMore = class {
|
|
|
8364
8432
|
}
|
|
8365
8433
|
}
|
|
8366
8434
|
render() {
|
|
8367
|
-
return h(Host, { key: '
|
|
8435
|
+
return h(Host, { key: '1b86dd2400a791b125a24513cb9514face925d3d' });
|
|
8368
8436
|
}
|
|
8369
8437
|
get element() { return getElement(this); }
|
|
8370
8438
|
};
|
|
@@ -8389,9 +8457,9 @@ const SmoothlyModal = class {
|
|
|
8389
8457
|
this.open = true;
|
|
8390
8458
|
}
|
|
8391
8459
|
render() {
|
|
8392
|
-
return (h(Host, { key: '
|
|
8460
|
+
return (h(Host, { key: '36caaa17bfd076dd297f58ccb9ac4a12871343a7', role: "alertdialog", onClick: (e) => {
|
|
8393
8461
|
this.closable && !e.composedPath().some((el) => { var _a; return (_a = el.classList) === null || _a === void 0 ? void 0 : _a.contains("modal"); }) && this.closeModal();
|
|
8394
|
-
} }, h("div", { key: '
|
|
8462
|
+
} }, h("div", { key: '4c0f2d6537496a8b2392aacddd9ba9db9c5d6052', class: "modal" }, h("div", { key: '0ecf5c976360402e1117570ef10bd3e46f69ff2b', class: "header" }, h("slot", { key: '93b7f39f4a41f83743bc766a3c6e35f3ac1c324f', name: "header" }), this.closable && h("smoothly-icon", { key: 'c61e00a97962890149cb89c0daf5df907c7dfb6e', name: "close-outline", fill: "solid", onClick: () => this.closeModal() })), h("slot", { key: 'fda69f545df08c71f58c85ea096fed500a6c6ff6' }), h("div", { key: 'c7e180ef59712c1096aa12359eac3e97d0c42d6e', class: "actions" }, h("slot", { key: '7cfef8c5cdf40fc9eedb5a0fa2538e02d82be8a7', name: "actions" })))));
|
|
8395
8463
|
}
|
|
8396
8464
|
static get watchers() { return {
|
|
8397
8465
|
"open": [{
|
|
@@ -8456,7 +8524,7 @@ const Notification = class {
|
|
|
8456
8524
|
this.onUpdatedNotice(this.notice);
|
|
8457
8525
|
}
|
|
8458
8526
|
render() {
|
|
8459
|
-
return (h(Host, { key: '
|
|
8527
|
+
return (h(Host, { key: '02ae0659b1c3c7e4e5e74ac356bb94cf91ef8835', color: this.properties[0], fill: "solid" }, this.closable && (h("smoothly-trigger", { key: '4525814eb8b98479507575f107ea3f89f708bc56', fill: "clear", name: "close" }, h("smoothly-icon", { key: 'd611ae4917fa50ef7d0e397a96fec34aee39cb72', name: "close-circle-outline" }))), h("span", { key: '30b99783d4c02842315a782a4029f97a450f5a2b', class: this.icon ? "icon" : "clean" }, this.icon && h("smoothly-icon", { key: '147a0858cc23b98e8aac82463ab19b1891896d1a', name: this.properties[1] }), h("p", { key: '45d9c9e89189a31941461500868439768c3199e6' }, this.notice.message))));
|
|
8460
8528
|
}
|
|
8461
8529
|
static get watchers() { return {
|
|
8462
8530
|
"notice": [{
|
|
@@ -8481,7 +8549,7 @@ const Notifier = class {
|
|
|
8481
8549
|
this.notices = [...this.notices.filter(n => n != event.detail)];
|
|
8482
8550
|
}
|
|
8483
8551
|
render() {
|
|
8484
|
-
return (h(Host, { key: '
|
|
8552
|
+
return (h(Host, { key: '6da528516e01fc32e6f17fd480068664b5c9e021' }, h("slot", { key: '1067e9afd266e04d3e0b32a79f974762f3bad7d2' }), h("div", { key: '493f3f5119c9c66fd6e5f9ee90d7b4fea22dc30f', class: "smoothly-notifier-wrapper" }, this.notices.map(n => (h("smoothly-notification", { notice: n, icon: this.icon }))))));
|
|
8485
8553
|
}
|
|
8486
8554
|
};
|
|
8487
8555
|
Notifier.style = styleCss$v();
|
|
@@ -8495,9 +8563,9 @@ const SmoothlySpinner = class {
|
|
|
8495
8563
|
}
|
|
8496
8564
|
render() {
|
|
8497
8565
|
const strokeWidth = this.size == "large" ? 6 : this.size == "medium" ? 8 : this.size == "icon" ? 8 : 12;
|
|
8498
|
-
return (h(Host, { key: '
|
|
8566
|
+
return (h(Host, { key: '9a0cc6ad21f0c3bfce350ba2a2c83272891844d6', style: {
|
|
8499
8567
|
"--spinner-size": this.size == "large" ? "5em" : this.size == "medium" ? "3em" : this.size == "icon" ? "1.8em" : "1.2em",
|
|
8500
|
-
} }, h("svg", { key: '
|
|
8568
|
+
} }, h("svg", { key: '669a73232e58cb2d87dca969cd32150f2fd010f5', class: "spinner", viewBox: `0 0 ${60 + strokeWidth} ${60 + strokeWidth}`, xmlns: "http://www.w3.org/2000/svg" }, h("circle", { key: '31faf5cfc5a15e627ad7875af4cd16f6e9adac09', class: "path", fill: "none", "stroke-width": strokeWidth, "stroke-linecap": "round", cx: `${30 + strokeWidth / 2}`, cy: `${30 + strokeWidth / 2}`, r: "30" }))));
|
|
8501
8569
|
}
|
|
8502
8570
|
};
|
|
8503
8571
|
SmoothlySpinner.style = styleCss$u();
|
|
@@ -8517,7 +8585,7 @@ const SmoothlySummary = class {
|
|
|
8517
8585
|
}
|
|
8518
8586
|
}
|
|
8519
8587
|
render() {
|
|
8520
|
-
return (h("details", { key: '
|
|
8588
|
+
return (h("details", { key: 'd77e78b718fca10f4d8e9e2bdae4112cffb4cfc3', onToggle: e => this.toggleHandler(e), open: this.open }, h("summary", { key: '5e264e08db22ec0eb85433d3d72f0f12d10cd2c1' }, h("smoothly-icon", { key: '36d49d1d21151034a35fca5b93a064074d49bb84', name: "caret-forward", fill: "solid", size: "tiny" }), h("slot", { key: '55164da27444d19c18b6b931813d12a3d5a4abe4', name: "summary" })), h("slot", { key: 'b459e14735415bee4c85af02cff23c0675372931', name: "content" })));
|
|
8521
8589
|
}
|
|
8522
8590
|
};
|
|
8523
8591
|
SmoothlySummary.style = styleCss$t();
|
|
@@ -8562,7 +8630,7 @@ const SmoothlyTab = class {
|
|
|
8562
8630
|
}
|
|
8563
8631
|
}
|
|
8564
8632
|
render() {
|
|
8565
|
-
return (h(Host, { key: '
|
|
8633
|
+
return (h(Host, { key: '3e4ab8c68f5ffa9eee15277b8c629ac11afd4d73' }, h("div", { key: 'e5aeb2372baeaeb090b911b44e23a601e27e1a78', onClick: () => !this.disabled && (this.open = true) }, h("label", { key: '77ed6ef274b240e5029110eac46695f198d61bc2', "data-smoothly-tooltip": this.tooltip }, this.label)), h("div", { key: '418681197eb143ea4bc79e4dac8b8b3de2671572', hidden: !this.open }, h("slot", { key: '7e888a42abfb3f81b8650dafedff8d84141d2280' }))));
|
|
8566
8634
|
}
|
|
8567
8635
|
get element() { return getElement(this); }
|
|
8568
8636
|
static get watchers() { return {
|
|
@@ -8587,7 +8655,7 @@ const SmoothlyTable = class {
|
|
|
8587
8655
|
event.stopPropagation();
|
|
8588
8656
|
}
|
|
8589
8657
|
render() {
|
|
8590
|
-
return (h(Host, { key: '
|
|
8658
|
+
return (h(Host, { key: '3a7738442ae2ebe705e9c75fb9aa06862a4157e8', style: { "--columns": this.columns.toString() } }, h("slot", { key: '67b59f54351d43e5c3fdf73c77aa991b2fe73acc' })));
|
|
8591
8659
|
}
|
|
8592
8660
|
};
|
|
8593
8661
|
SmoothlyTable.style = styleCss$r();
|
|
@@ -8599,7 +8667,7 @@ const SmoothlyTableBody = class {
|
|
|
8599
8667
|
registerInstance(this, hostRef);
|
|
8600
8668
|
}
|
|
8601
8669
|
render() {
|
|
8602
|
-
return (h(Host, { key: '
|
|
8670
|
+
return (h(Host, { key: '383e7918b3e1e57f2970da2d97f19f2628a53e64' }, h("slot", { key: '8d9059eed589799ad9eea2132a0bd2b10aabc03e' })));
|
|
8603
8671
|
}
|
|
8604
8672
|
};
|
|
8605
8673
|
SmoothlyTableBody.style = styleCss$q();
|
|
@@ -8613,7 +8681,7 @@ const SmoothlyTableCell = class {
|
|
|
8613
8681
|
}
|
|
8614
8682
|
render() {
|
|
8615
8683
|
var _a;
|
|
8616
|
-
return (h(Host, { key: '
|
|
8684
|
+
return (h(Host, { key: '2c1a6679cabf05342c1e8a783a4a8fb27fd8c6f1', class: "smoothly-table-cell", style: { "--smoothly-table-cell-span": (_a = this.span) === null || _a === void 0 ? void 0 : _a.toString(10) } }, h("slot", { key: '3a33c09387abdf5f499ba1f92dcf92b5b7f71a2d' })));
|
|
8617
8685
|
}
|
|
8618
8686
|
};
|
|
8619
8687
|
SmoothlyTableCell.style = styleCss$p();
|
|
@@ -8625,7 +8693,7 @@ const SmoothlyTableDemo = class {
|
|
|
8625
8693
|
registerInstance(this, hostRef);
|
|
8626
8694
|
}
|
|
8627
8695
|
render() {
|
|
8628
|
-
return (h(Host, { key: '
|
|
8696
|
+
return (h(Host, { key: '35794212738d56a6ee77383f2cdee89a57db82f1' }, h("smoothly-table-demo-filler-row", { key: '4eeaba2055e5ad58c8e9942264a5f8d81c04e29e' }), h("smoothly-table-demo-group", { key: 'e8d15d7d715d993385df9de46b4dc42597f3a120' }), h("smoothly-table-demo-colspan", { key: '7ae3ade7115e92e55cb992749b6a5e5a6371634d' }), h("smoothly-table-demo-simple", { key: 'edd4c2e7e16c3c9bbb2e28f4321b66fad061e339' }), h("smoothly-table-demo-nested-no-cell", { key: 'd07a40ff623a290ea90367b1b170ecd93b150565' })));
|
|
8629
8697
|
}
|
|
8630
8698
|
};
|
|
8631
8699
|
SmoothlyTableDemo.style = styleCss$o();
|
|
@@ -8637,7 +8705,7 @@ const SmoothlyTableDemoColspan = class {
|
|
|
8637
8705
|
registerInstance(this, hostRef);
|
|
8638
8706
|
}
|
|
8639
8707
|
render() {
|
|
8640
|
-
return (h(Host, { key: '
|
|
8708
|
+
return (h(Host, { key: '1b9dfde05087d6be2711b86baca19630286b2322' }, h("smoothly-table", { key: '0ba0536e747782d879f6a2cf099388435c881ad5', columns: 3 }, h("smoothly-table-head", { key: 'e14bea187af499007f4173c261526c72f3b89c8e' }, h("smoothly-table-row", { key: '9104850519968b86ba1f48f5ee997a1ccfa49a12' }, h("smoothly-table-cell", { key: '26dd9041355d04f517e3951ce608cc8b60b8caaf' }, "Date"), h("smoothly-table-cell", { key: 'b78eb957ed8ec68b5919362fe0afedc1f6375c5d' }, "Skip"), h("smoothly-table-cell", { key: '1f8ef467f5a9e9ba2157e126fc3adedb2821c9ea' }, "Total"))), h("smoothly-table-body", { key: '6679b94c153ce61b39957e64d453f8f5edd47cf0' }, h("smoothly-table-row", { key: 'd0f0c0b13b0e56b7fc761701897f9304c531c5d9' }, h("smoothly-table-cell", { key: '8e022e2e5befad0983c8d6e0567dc92a8fe1bb0c', span: 2 }, h("smoothly-display", { key: 'efb5e464048093e3855163818b6b38d86f084995', type: "date", value: "2024-01-01" })), h("smoothly-table-cell", { key: 'c9912c8e499f751cd84323b15b282f58e1a2a052' }, h("smoothly-display", { key: 'f618c45ed3960424e46ef6f40adf2b69c7307a08', type: "price", value: 120, currency: "EUR" }))), h("smoothly-table-row", { key: 'a8605b2eb3eb80ab039f2cc6e257842045e16909' }, h("smoothly-table-expandable-cell", { key: 'cf8436e7d932f4ff0d92a054c74275551961a1ab', span: 2 }, h("smoothly-display", { key: '2013f65b67bf9f03de31fabae41e2fa4cfab338c', type: "date", value: "2024-01-02" }), h("smoothly-lazy", { key: 'e8d3b46995025d2f3af0f2f587b555bf4d1c0daf', slot: "detail", content: h("smoothly-display", { type: "date-time", value: "2024-01-02T13:37:00.000Z" }) })), h("smoothly-table-expandable-cell", { key: '0409b2d3c90ada5737e6bb9069fb1066ff7063af' }, h("smoothly-display", { key: '82bd4a3cde9062604343fd53161a7d86838f4fed', type: "price", value: 220, currency: "EUR" }), h("smoothly-lazy", { key: '4592efa154194347becf15f00275303577d743b7', slot: "detail", content: h("span", null, h("smoothly-display", { type: "price", value: 120, currency: "EUR" }), " + ", h("smoothly-display", { type: "price", value: 100, currency: "EUR" })) }))), h("smoothly-table-row", { key: '0aa33698c9d9de3f41d04298d60a15b62f9294e4' }, h("smoothly-table-cell", { key: '5e7265ba2d08b2aba02decd78ad88319cc407f72' }, h("smoothly-display", { key: '5af078d9ea92c4a6865a3f7545ece78d709c85fd', type: "date", value: "2024-01-02" })), h("smoothly-table-cell", { key: '606899c1227efff03793e7108f413ca727b77304' }, "Not Skipped"), h("smoothly-table-cell", { key: '9fcdda1bad4686bf2c8a5a78486a05d25d923402' }, h("smoothly-display", { key: '033cf9f7f2f090738f71320df238d26152acdcd1', type: "price", value: 320, currency: "EUR" })))))));
|
|
8641
8709
|
}
|
|
8642
8710
|
};
|
|
8643
8711
|
SmoothlyTableDemoColspan.style = styleCss$n();
|
|
@@ -8655,7 +8723,7 @@ const SmoothlyTableDemoFillerRow = class {
|
|
|
8655
8723
|
}, 3000);
|
|
8656
8724
|
}
|
|
8657
8725
|
render() {
|
|
8658
|
-
return (h(Host, { key: '
|
|
8726
|
+
return (h(Host, { key: 'f857bf2706fea0bc7bef38da1231c17460e9c609' }, h("smoothly-display", { key: '56bb55f00ea43d80e8b94460bb2e951bc741aa72', type: "text", value: "Filler row" }), h("smoothly-table", { key: '3a6c43bc37797672d40417395ffdacca1b52f327', color: "primary", columns: 4 }, h("smoothly-table-head", { key: '09289f8564422ceb0f8b7d33040a561d35dc9a02' }, h("smoothly-table-row", { key: '9675f44ce397953bc4b674bc768299d3a018820e' }, h("smoothly-table-cell", { key: '8fde03da5517c6f75c7c8da3c5bb336d2ed5a4b0' }, "Breed"), h("smoothly-table-cell", { key: '721fc804d59cb6dca7b66b2fd38dd700172322be' }, "Country"), h("smoothly-table-cell", { key: 'e8fbd6258f7167841eef83776e00406cd9ed3690' }, "Coat"), h("smoothly-table-cell", { key: '3e514eab5bb013da0d23cdde06324492bb97632b' }, "Origin"))), h("smoothly-table-body", { key: 'a14df5fcfad26c2d54ef13810e409ed65f72ac39' }, this.cats === undefined ? (h("smoothly-table-filler-row", null, "No data to display")) : this.cats.length === 0 ? (h("smoothly-table-filler-row", null, h("smoothly-spinner", { style: { margin: "auto" }, color: "default", size: "small" }))) : (this.cats.map(a => (h("smoothly-table-row", null, h("div", { class: "smoothly-table-cell" }, a.breed), h("div", { class: "smoothly-table-cell" }, a.country), h("div", { class: "smoothly-table-cell" }, a.coat), h("div", { class: "smoothly-table-cell" }, a.origin)))))))));
|
|
8659
8727
|
}
|
|
8660
8728
|
};
|
|
8661
8729
|
SmoothlyTableDemoFillerRow.style = styleCss$m();
|
|
@@ -8667,7 +8735,7 @@ const SmoothlyTableDemoGroup = class {
|
|
|
8667
8735
|
registerInstance(this, hostRef);
|
|
8668
8736
|
}
|
|
8669
8737
|
render() {
|
|
8670
|
-
return (h(Host, { key: '
|
|
8738
|
+
return (h(Host, { key: '9af97a2dd73e554ea9c1bff231782e9889157fde' }, h("smoothly-display", { key: '2257c3cba1ba5ce0431e32f53dfd92573b25bcb3', type: "text", value: "Group" }), h("smoothly-table", { key: '90b901a78ae391af9f7acdd0ef1c494a8f6fe133', color: "primary", columns: 2 }, h("smoothly-table-head", { key: '972dd604c495658a4655c9d4afbe7585b7f34e9e' }, h("smoothly-table-row", { key: '71e959f5666e68ad006252a4591a194840495936' }, h("smoothly-table-cell", { key: '62d2bd26dce8826b74dc4c8e8c569532cc07ca45' }, "Date"), h("smoothly-table-cell", { key: 'f866b0f9719d679f6a7830c65ac3391491c00349' }, "Total"))), h("smoothly-table-body", { key: '70dc05107403877ad47644460a09d3250c1ddd1e' }, h("smoothly-table-row-group", { key: 'e7f2268c625dcdb0350b9b6171fdbeb3163d8413', align: true }, h("smoothly-display", { key: 'dac67a56a4fc3ab520128b3b63646cde0c6fcbce', slot: "start", type: "date", value: "2024-01-01" }), h("smoothly-display", { key: 'ed4b8fd5dcafc2cae49e475b4c091d35b2b30b3f', slot: "end", type: "price", currency: "EUR", value: 510 }), h("smoothly-table-expandable-row", { key: 'ff08cffdfcec5945cb13ea713e5379ff16e8e917' }, h("smoothly-table-cell", { key: '2575df31b1c799750a491c07400b90f3c8c0732e' }, h("smoothly-display", { key: 'a72e50c14f31b8061a78eb378fdf243e6a757d9a', type: "date-time", value: "2024-01-01T01:37:00.000Z" })), h("smoothly-table-cell", { key: 'b88eb73fcb09cbce241d452905f767498da92335' }, h("smoothly-display", { key: 'bf82b932285431bc9beb341f8c5bd9aaa5b56766', type: "price", currency: "EUR", value: 250 })), h("smoothly-lazy", { key: '0f51682b219b4130d614bffb8399011764f81018', slot: "detail", content: h(Fragment, null, "Details of 2024-01-01T01:37:00.000Z") })), h("smoothly-table-expandable-row", { key: '24aedfa873558b5bfc91d12ed8a1283097b11add' }, h("smoothly-table-cell", { key: '5e7a30c94f9c8b5607ced0bdc1756ba89a9b19e9' }, h("smoothly-display", { key: 'bc14c1e289193e3be9bf3ba4940e11eb2db915f7', type: "date-time", value: "2024-01-01T13:37:00.000Z" })), h("smoothly-table-cell", { key: 'd82b33d05e427ec17f8aae619b168e6968addb68' }, h("smoothly-display", { key: 'a9b7548b18d6ba3dfa509ce436bc90848a485f15', type: "price", currency: "EUR", value: 260 })), h("smoothly-lazy", { key: '5f6c95d971232a61ba4366a0506c6a4d6e143b08', slot: "detail", content: h(Fragment, null, "Details of 2024-01-01T13:37:00.000Z") }))), h("smoothly-table-row", { key: '5e50d0d8833c2d51d3926dd13d13632be5d4a14a' }, h("smoothly-table-cell", { key: '500e6fa274591bfa46fb7df980e5c00e66950f1f' }, h("smoothly-display", { key: 'f3b0357299f95a2708a205a2d6a36fc9153a113c', type: "date", value: "2024-01-02" })), h("smoothly-table-cell", { key: 'e714d0a9d84bc9c2fb7e63df0a5a2242ff0aeb47' }, h("smoothly-display", { key: 'f77b5b7645e03522332aad7c867cc9cc7d50ce5a', type: "price", currency: "EUR", value: 130 }))), h("smoothly-table-row-group", { key: 'd5563da2fba612869aee7e52891dbe3bbbb3eb5b' }, h("smoothly-display", { key: '938b397b77eccae59e9d75c6095314b04d49005d', slot: "start", type: "date", value: "2024-01-03" }), h("smoothly-display", { key: '94cf02e6a97968bc0698e36db986b8f201f383e3', slot: "end", type: "price", currency: "EUR", value: 720 }), h("smoothly-table-expandable-row", { key: 'cd8a0312c1308565eecd1989eff865836259e9ec' }, h("smoothly-table-cell", { key: '6e53dceadf261cfd110895b6803f85f428fbc788' }, h("smoothly-display", { key: '7f006f2a033a00961c7a6a3d68c22f873857ad98', type: "date-time", value: "2024-01-03T01:37:00.000Z" })), h("smoothly-table-cell", { key: '039d08030bd0f63af9c1afa1a728dadc9680ae82' }, h("smoothly-display", { key: 'd88710af1a900007217541f3943e5a7efb5a2a3f', type: "price", currency: "EUR", value: 320 })), h("smoothly-lazy", { key: 'fdcd37bb700758be174cc0e5713b4c07403f8682', slot: "detail", content: h(Fragment, null, "Details of 2024-01-03T01:37:00.000Z") })), h("smoothly-table-expandable-row", { key: '79b4d9f391ef6ab8841d2de05cf8aa55ef8a59ec' }, h("smoothly-table-cell", { key: 'c1261022a5c3fffe6119e321d129907c07fe18ac' }, h("smoothly-display", { key: '5748d8bc6db59fab0f80ce1812f569287d808b81', type: "date-time", value: "2024-01-03T13:37:00.000Z" })), h("smoothly-table-cell", { key: '118a115ba40c16775073062b039d382e5501cca4' }, h("smoothly-display", { key: '42d80083625b2e8374f00c629ea64802788c8459', type: "price", currency: "EUR", value: 400 })), h("smoothly-lazy", { key: '808b3347c13ec37e4a4a1b63c91392eb667e4f66', slot: "detail", content: h(Fragment, null, "Details of 2024-01-03T13:37:00.000Z") }))), h("smoothly-table-row-group", { key: '6f0a95e81ca788091fc90768f1a0f295fa35b6b9' }, h("smoothly-display", { key: '731be311b19de2a133edc969fc6561ded4e6aa99', slot: "start", type: "date", value: "2024-01-04" }), h("smoothly-table-expandable-row", { key: 'e09a2691c08602f3fda9b2803a30ea5056761c27' }, h("smoothly-table-cell", { key: 'e50ef37a30a54a6d1b76cd27fe678c6d4e998486' }, h("smoothly-display", { key: '2b2147f209ef7ef3fcdefe8526d8332188a64e60', type: "date-time", value: "2024-01-04T01:37:00.000Z" })), h("smoothly-table-cell", { key: 'df7f27802f806d3d63c9855f49b26a7281ab2c7e' }, h("smoothly-display", { key: '0945da5982870fab2637680ecaa974801c046690', type: "price", currency: "EUR", value: 320 })), h("smoothly-lazy", { key: 'be7bcd85defabd41296f9e428cbac22bdf52fffc', slot: "detail", content: h(Fragment, null, "Details of 2024-01-04T01:37:00.000Z") })), h("smoothly-table-expandable-row", { key: '4caaa5c8890ff1aca72adea083a6fe58f23ffc1d' }, h("smoothly-table-cell", { key: '46ffccf1ff8e575e1784a8a8b62799c163f76bff' }, h("smoothly-display", { key: 'df4c90a165a16556072af954ddd2ecf2a25fb6cb', type: "date-time", value: "2024-01-04T13:37:00.000Z" })), h("smoothly-table-cell", { key: 'c42afea6b5256e18b5c0bd235abb00a5589a1639' }, h("smoothly-display", { key: 'afd91932af6b3d9df399e31f3a3dfb3710dd67da', type: "price", currency: "EUR", value: 400 })), h("smoothly-lazy", { key: '116923536874fae3bf8f248c654620d7e9d84caf', slot: "detail", content: h(Fragment, null, "Details of 2024-01-04T13:37:00.000Z") }))), h("smoothly-table-row-group", { key: 'c5bfe45b4fe1f13f93cfd525ae19d50442851294' }, h("smoothly-display", { key: 'bd7d161f3cafdcbd699db62bc17723818ef72549', slot: "end", type: "price", currency: "EUR", value: 720 }), h("smoothly-table-expandable-row", { key: '6c23d8c95b24d54b1b331353e18b75069d088ead' }, h("smoothly-table-cell", { key: 'bb493a1fd99fffea71a80b2ee6896461c6690b67' }, h("smoothly-display", { key: 'a97142706d066ef6044dd8c2ffebf1dd205a42aa', type: "date-time", value: "2024-01-05T01:37:00.000Z" })), h("smoothly-table-cell", { key: 'd1dc093bebe2b4983aba8a146958dd91ba25e3d1' }, h("smoothly-display", { key: '375f129f914048e76c1fcb32b9f95eb83acca27c', type: "price", currency: "EUR", value: 320 })), h("smoothly-lazy", { key: '0b75809560b5a2eef3e8efb5a1d4b413430ffff9', slot: "detail", content: h(Fragment, null, "Details of 2024-01-05T01:37:00.000Z") })), h("smoothly-table-expandable-row", { key: 'b53719c5188bb125812eec710b00bf93a7d64fce' }, h("smoothly-table-cell", { key: '20012bd7ea22477b21ca4c6522e04a2296cb5e95' }, h("smoothly-display", { key: '6bbd6c62dad1231cb57e68df58ccceaa33ec76ea', type: "date-time", value: "2024-01-05T13:37:00.000Z" })), h("smoothly-table-cell", { key: 'a04700a2c7ba95e6912a0c8685dd394e1116e56a' }, h("smoothly-display", { key: '28993df17be6cd71f9d8da5580bd13173e5b1728', type: "price", currency: "EUR", value: 400 })), h("smoothly-lazy", { key: '716d3711fb1ba17f1b07e40d0cc4e42f77d6e48a', slot: "detail", content: h(Fragment, null, "Details of 2024-01-05T13:37:00.000Z") }))), h("fake-group-wrapper", { key: '5a8d87d22055a3cc9a6eb3fac647b3b10ddf3107' }, h("smoothly-table-row-group", { key: '6c29d6604c34f297e75f4b5d6b1599b38e3f5c4f' }, h("smoothly-display", { key: '25835c64a61ef3ef5ded3ec48be000c759f3c263', slot: "start", type: "date", value: "2024-01-06" }), h("smoothly-display", { key: 'b986fbafe80daab7dd7a2c522785c633406c01c0', slot: "end", type: "price", currency: "EUR", value: 720 }), h("fake-row-wrapper", { key: '6f0817c4ed598275401f6d86c869dd39b3b900bb' }, h("smoothly-table-row", { key: 'c627b346517b950d2883bed648e8acd06991f7dd' }, h("fake-cell-wrapper", { key: '2136dcadb092ce67f4ce986fe3bd1d73759ad03b' }, h("smoothly-table-cell", { key: '21f1b8c4df866a68caee5da599e1bb8219e042b7' }, h("smoothly-display", { key: '857236ba64c06093da4c1ecb7eae6710c2cddbce', type: "date", value: "2024-01-02" }))), h("fake-expandable-cell-wrapper", { key: 'c840c1896076ee2ca7e6bf3217b6f89ec3cfac7e' }, h("smoothly-table-expandable-cell", { key: 'b5dd3983275b0e6948b71d4d5d4e8696ed9a0373' }, h("smoothly-display", { key: '44b2aa3acfebb161747e8e693fcadd6a95c1f2df', type: "price", currency: "EUR", value: 130 }), h("smoothly-lazy", { key: 'e555b070d789e2ec97a730de08dd5b4c479eb06a', slot: "detail", content: h("span", null, h("smoothly-display", { type: "price", value: 100, currency: "EUR" }), " + ", h("smoothly-display", { type: "price", value: 30, currency: "EUR" })) }))))), h("fake-expandable-row-wrapper", { key: '47afe4d30b2e7a0f29f019489d00f93679b3b3f5' }, h("smoothly-table-expandable-row", { key: '0e066e8ef7beb4f5212b7ab366faa8e8a766f8fc' }, h("fake-cell-wrapper", { key: 'c1e8f9e0bc80e21f5cf13a9e1c08dccfc69812a6', class: "span-2" }, h("smoothly-table-cell", { key: 'aa446fc3558e1777af3f7db9de01838e2f7da1b9', span: 2 }, h("smoothly-display", { key: '80800c6bc0d00193c959425eb1e72d82f74519e1', type: "date", value: "2024-01-07" }))), h("smoothly-lazy", { key: '761732bea1df5e3e78dadef9c2817610e50169ff', slot: "detail", content: h("smoothly-display", { type: "date-time", value: "2024-01-07T13:37:00.000Z" }) }))))), h("smoothly-table-row-group", { key: 'ccc5676e70c09b50f05a5429c8bbba6e7c0031df' }, h("smoothly-display", { key: '8ef9e40351c078324f6f599addbf8d767b4d4a77', slot: "start", type: "date", value: "2024-01-08" }), h("smoothly-display", { key: 'fb97dc92fb8b501a5bcf89e68a1d8ebba1a856b4', slot: "end", type: "price", currency: "EUR", value: 720 }))))));
|
|
8671
8739
|
}
|
|
8672
8740
|
};
|
|
8673
8741
|
SmoothlyTableDemoGroup.style = styleCss$l();
|
|
@@ -9613,7 +9681,7 @@ const SmoothlyTableDemoNestedNoCell = class {
|
|
|
9613
9681
|
this.loadedRows = [];
|
|
9614
9682
|
}
|
|
9615
9683
|
render() {
|
|
9616
|
-
return (h(Host, { key: '
|
|
9684
|
+
return (h(Host, { key: '460dd1e98f1ee50a19fbbcc297389ce8406bb59c' }, h("smoothly-display", { key: '36a48c1134c56fb73ee494a3d5838a07485473a1', type: "text", value: "Nested" }), h("smoothly-table", { key: '8eaba9ebaaad200fa7bd0addaca098651dff32c4', color: "primary", columns: 8 }, h("smoothly-table-head", { key: '0a4c113f707aa20076ea30a3a5dd2f27152fedac' }, h("smoothly-table-row", { key: '0c4d3e3ded2c62be537c7304d37533ba3a53e9ac' }, h("div", { key: 'f59f569ba6872affb34f6cf043f08a597f171e2e', class: "smoothly-table-cell" }, "Id"), h("div", { key: 'a72101553c2d7af6d2ce92d488b7cb0aaf622fca', class: "smoothly-table-cell" }, "Registered"), h("div", { key: 'c442f7e5260320209001d6b381089a68f33cf0c1', class: "smoothly-table-cell" }, "Name"), h("div", { key: 'd5c73e0cafdfa5db279babe93176b0efebffb256', class: "smoothly-table-cell" }, "Age"), h("div", { key: 'd668bf984ce8de36976bf95f2ede82f0770336d6', class: "smoothly-table-cell" }, "Balance"), h("div", { key: '9f92f505cef3b3fa10538a33ce94d1aea27e8496', class: "smoothly-table-cell" }, "EyeColor"), h("div", { key: 'def6a9aad7bb6fb64bf6400650c75c5bf89fcec4', class: "smoothly-table-cell" }, "Gender"), h("div", { key: '1e0aad645cb72a7dc7cde05d0e30cb46a86de437', class: "smoothly-table-cell" }, "Company"))), h("smoothly-table-body", { key: '409e2bb51254cbfcb7f87bc77f0723e4ecbf162f' }, data.map((entry, index) => (h("smoothly-table-expandable-row", { onSmoothlyTableExpandableRowChange: event => {
|
|
9617
9685
|
if (event.detail) {
|
|
9618
9686
|
this.loadingIndex = index;
|
|
9619
9687
|
setTimeout(() => {
|
|
@@ -9621,7 +9689,7 @@ const SmoothlyTableDemoNestedNoCell = class {
|
|
|
9621
9689
|
this.loadedRows = [...this.loadedRows, index];
|
|
9622
9690
|
}, 1500);
|
|
9623
9691
|
}
|
|
9624
|
-
} }, this.loadingIndex === index && h("smoothly-spinner", { overlay: true, size: "small" }), this.loadedRows.includes(index) && (h("smoothly-table-demo-nested-no-cell-inner", { color: "secondary", data: entry.friends, slot: "detail" })), h("div", { class: "smoothly-table-cell" }, entry.id), h("div", { class: "smoothly-table-cell" }, entry.registered), h("div", { class: "smoothly-table-cell" }, entry.name), h("div", { class: "smoothly-table-cell" }, entry.age), h("div", { class: "smoothly-table-cell" }, entry.balance), h("div", { class: "smoothly-table-cell" }, entry.eyeColor), h("div", { class: "smoothly-table-cell" }, entry.gender), h("div", { class: "smoothly-table-cell" }, entry.company))))), h("smoothly-table-foot", { key: '
|
|
9692
|
+
} }, this.loadingIndex === index && h("smoothly-spinner", { overlay: true, size: "small" }), this.loadedRows.includes(index) && (h("smoothly-table-demo-nested-no-cell-inner", { color: "secondary", data: entry.friends, slot: "detail" })), h("div", { class: "smoothly-table-cell" }, entry.id), h("div", { class: "smoothly-table-cell" }, entry.registered), h("div", { class: "smoothly-table-cell" }, entry.name), h("div", { class: "smoothly-table-cell" }, entry.age), h("div", { class: "smoothly-table-cell" }, entry.balance), h("div", { class: "smoothly-table-cell" }, entry.eyeColor), h("div", { class: "smoothly-table-cell" }, entry.gender), h("div", { class: "smoothly-table-cell" }, entry.company))))), h("smoothly-table-foot", { key: '5c99a61adab8729709a0887dd866b462e6737554' }, h("smoothly-table-row", { key: '2d224a2a8ad6e35ff2c36eadec885de9f0203b48' }, h("div", { key: '78480235c2e055b5960c5a049314e323528e6030', class: "smoothly-table-cell" }, "Footer Cell"), h("div", { key: 'ba6d2fb174d44ad05eb6d99deec082a8180a247b', class: "smoothly-table-cell" }, "Footer Cell"))))));
|
|
9625
9693
|
}
|
|
9626
9694
|
};
|
|
9627
9695
|
SmoothlyTableDemoNestedNoCell.style = styleCss$k();
|
|
@@ -9634,7 +9702,7 @@ const SmoothlyTableDemoNestedNoCellInner = class {
|
|
|
9634
9702
|
}
|
|
9635
9703
|
render() {
|
|
9636
9704
|
var _a;
|
|
9637
|
-
return (h(Host, { key: '
|
|
9705
|
+
return (h(Host, { key: 'aac05d43b4512b20fa4cec737ccb31ec3a528b56' }, h("smoothly-table", { key: 'b022de2650d8db21e46aab409b8d1df0dc409f80', columns: 4 }, h("smoothly-table-head", { key: '6516f877eb54fdebc85619885a92389af7ec34da' }, h("smoothly-table-row", { key: '8951f89b3230404a2fc8fc6ef1d48a20abea803c' }, h("div", { key: '82ee1252466066d77df7f70385faa4f83850d9a7', class: "smoothly-table-cell" }, "Id"), h("div", { key: '7145ba1e199eadecb5dd727ae1adfa52d25e4bce', class: "smoothly-table-cell" }, "Name"), h("div", { key: '60d99a7d209367adea18000214d01b4a3e1905b9', class: "smoothly-table-cell" }, "Age"), h("div", { key: 'ee489d4b66d755c9590cf0dfe23fe09c440773aa', class: "smoothly-table-cell" }, "Balance"))), h("smoothly-table-body", { key: '86837cf19c76e57fe423dd185e1c877e4f04b192' }, (_a = this.data) === null || _a === void 0 ? void 0 : _a.map(entry => (h("smoothly-table-expandable-row", null, h("div", { class: "smoothly-table-cell" }, entry.id), h("div", { class: "smoothly-table-cell" }, entry.name), h("div", { class: "smoothly-table-cell" }, entry.age), h("div", { class: "smoothly-table-cell" }, entry.balance))))))));
|
|
9638
9706
|
}
|
|
9639
9707
|
};
|
|
9640
9708
|
SmoothlyTableDemoNestedNoCellInner.style = styleCss$j();
|
|
@@ -9646,7 +9714,7 @@ const SmoothlyTableDemoSimple = class {
|
|
|
9646
9714
|
registerInstance(this, hostRef);
|
|
9647
9715
|
}
|
|
9648
9716
|
render() {
|
|
9649
|
-
return (h(Host, { key: '
|
|
9717
|
+
return (h(Host, { key: '70206f06c6f0927b7fd56f6c447441883cdb8cbb' }, h("smoothly-display", { key: 'fe882f04329755107f28029e6c3ed3162e2a6f2d', type: "text", value: "Simple" }), h("smoothly-table", { key: '943c5b0e05764d07eb88e9723c42214c7c785a74', color: "primary", columns: 2 }, h("smoothly-table-head", { key: 'e26f7945d199844450707d36aa848e7ef5e85e4c' }, h("smoothly-table-row", { key: 'f60bcd540697bf27ef22ba3b2db828c1eaba8a18' }, h("smoothly-table-cell", { key: '5e2e2d9f3724051fd61ff787caae7e47c120e31f' }, "Breed"), h("smoothly-table-cell", { key: '5ac9dddc03f397574b16d7809938f133be3a5e32' }, "Coat"))), h("smoothly-table-body", { key: '48228f02bdc713ef18e1e9400c7b274b6ed7a91f' }, cats.map(cat => (h("smoothly-table-row", null, h("smoothly-table-expandable-cell", null, cat.breed, h("div", { slot: "detail" }, "Country:", h("br", null), cat.country)), h("smoothly-table-expandable-cell", null, cat.coat, h("div", { slot: "detail" }, "Pattern: ", cat.pattern))))), h("smoothly-table-row", { key: '04146e8b286cede980153a96645635ec21d87135' }, h("smoothly-table-cell", { key: '37ff22202464b1ef68aecea476a5070e3612fa5d' }, "Cell5"), h("smoothly-table-expandable-cell", { key: '0db694a71548c2a27909bd2b74e9c4e24e1368cb' }, "Expandable Cell", h("div", { key: 'f73430644f301ba65ff5b10affee17b767dda779', slot: "detail" }, "Content of the expandable cell"))), h("smoothly-table-row", { key: 'd8e43c4f6104f2ea9ed4a3e1d5526f4216cd1755' }, h("smoothly-table-expandable-cell", { key: 'd63e6c60646e17005dcd1502603ecb0a0bc58519' }, "Expandable Cell 1", h("div", { key: 'f7892854c7a6284ac783062ddf9a99dda3693dc9', slot: "detail" }, "Content of the expandable cell 1")), h("smoothly-table-expandable-cell", { key: 'f46176b69a8f96ad79ab20d0c7ad48dc25830437' }, "Expandable Cell 2", h("div", { key: '7a77dc2d15bb99724a61c606cc21760361f03187', slot: "detail" }, "Content of the expandable cell 2")))), h("smoothly-table-foot", { key: '48288078e1087b9a080970b292019f34c154516f' }, h("smoothly-table-row", { key: '36df570d42c5b836f46876778c1be549ddacf5d9' }, h("smoothly-table-cell", { key: 'b428dbfbc9460d84ca3c86d3e9b3c911e4bf174e' }, "Footer Cell"), h("smoothly-table-cell", { key: '3f288427d5c543e60e9aaf1419b265ce7a26d452' }, "Footer Cell"))))));
|
|
9650
9718
|
}
|
|
9651
9719
|
};
|
|
9652
9720
|
const cats = [
|
|
@@ -9754,7 +9822,7 @@ const SmoothlyTableExpandableCell = class {
|
|
|
9754
9822
|
}
|
|
9755
9823
|
render() {
|
|
9756
9824
|
var _a;
|
|
9757
|
-
return (h(Host, { key: '
|
|
9825
|
+
return (h(Host, { key: '80017dcf8950e676a48dc9aedc3d11ba12cf011e', style: { "--smoothly-table-cell-span": (_a = this.span) === null || _a === void 0 ? void 0 : _a.toString(10) }, onClick: (e) => this.clickHandler(e) }, h("div", { key: '57e34f20710f1694470a5e8d481d51480d4afb36', class: "content" }, h("slot", { key: '664f3698eb43707e4a53a252a57e0e43ddebfb40' })), h("div", { key: 'e010fe7654eaec8fc4418cb1560d0f8b3b82df7d', class: "smoothly-table-detail", ref: (el) => (this.detailElement = el) }, h("slot", { key: 'c524d17ac1f1fd7ed8070cf9eb07590fd0059ca7', name: "detail" }))));
|
|
9758
9826
|
}
|
|
9759
9827
|
static get watchers() { return {
|
|
9760
9828
|
"open": [{
|
|
@@ -9786,7 +9854,7 @@ const SmoothlyTableExpandableRow = class {
|
|
|
9786
9854
|
this.smoothlyTableExpandableRowChange.emit(this.open);
|
|
9787
9855
|
}
|
|
9788
9856
|
render() {
|
|
9789
|
-
return (h(Host, { key: '
|
|
9857
|
+
return (h(Host, { key: 'c3888ffed7c052d5df798d01e6137bbe7057e4e3', onClick: (e) => this.clickHandler(e) }, h("slot", { key: 'cdd186acc3862b6125c85942a673415da659ffa7' }), h("div", { key: '1be46ebc8404b04d5bcc7174f4fa36e0e29a8bee', class: "smoothly-table-detail", ref: e => (this.div = e) }, h("slot", { key: '2d16b8dbcd03e0672f585a6d89e72d070b572299', name: "detail" }))));
|
|
9790
9858
|
}
|
|
9791
9859
|
static get watchers() { return {
|
|
9792
9860
|
"open": [{
|
|
@@ -9803,7 +9871,7 @@ const SmoothlyTableFillerRow = class {
|
|
|
9803
9871
|
registerInstance(this, hostRef);
|
|
9804
9872
|
}
|
|
9805
9873
|
render() {
|
|
9806
|
-
return (h("smoothly-table-row", { key: '
|
|
9874
|
+
return (h("smoothly-table-row", { key: '74889d28c93b9142041a444f3c88842851eabfee' }, h("smoothly-table-cell", { key: 'f085bb29ceb64ec8a0e6a1b2ef07323aaf79dbff' }, h("slot", { key: 'c09f20c0fe10bac51d4c2ebb12127935092e8d90' }))));
|
|
9807
9875
|
}
|
|
9808
9876
|
};
|
|
9809
9877
|
SmoothlyTableFillerRow.style = styleCss$f();
|
|
@@ -9815,7 +9883,7 @@ const SmoothlyTableFoot = class {
|
|
|
9815
9883
|
registerInstance(this, hostRef);
|
|
9816
9884
|
}
|
|
9817
9885
|
render() {
|
|
9818
|
-
return (h(Host, { key: '
|
|
9886
|
+
return (h(Host, { key: '6e3eec46ba1665a4c6cc1131fbf406b1aa997364' }, h("slot", { key: '816b86c8c621a8625378e307df634a1b820fdff3' })));
|
|
9819
9887
|
}
|
|
9820
9888
|
};
|
|
9821
9889
|
SmoothlyTableFoot.style = styleCss$e();
|
|
@@ -9861,10 +9929,10 @@ const SmoothlyTableHead = class {
|
|
|
9861
9929
|
(_a = this.scrollParent) === null || _a === void 0 ? void 0 : _a.removeEventListener("scroll", this.onScroll);
|
|
9862
9930
|
}
|
|
9863
9931
|
render() {
|
|
9864
|
-
return (h(Host, { key: '
|
|
9932
|
+
return (h(Host, { key: '7649393821cbe7b9c336b9ae5d88e4a9edf8a409', class: { scrolled: !!this.scrolled }, style: {
|
|
9865
9933
|
"--top": `calc(${this.depth} * var(--smoothly-table-cell-min-height))`,
|
|
9866
9934
|
"--z-index": `${10 - this.depth}`,
|
|
9867
|
-
} }, h("slot", { key: '
|
|
9935
|
+
} }, h("slot", { key: 'c20ebbb80c1d9b5e1210fd2c194a754f0e9e1755' })));
|
|
9868
9936
|
}
|
|
9869
9937
|
get element() { return getElement(this); }
|
|
9870
9938
|
};
|
|
@@ -9889,7 +9957,7 @@ const SmoothlyTableRow = class {
|
|
|
9889
9957
|
}
|
|
9890
9958
|
}
|
|
9891
9959
|
render() {
|
|
9892
|
-
return (h(Host, { key: '
|
|
9960
|
+
return (h(Host, { key: '4336ffac2830c4b434a1c987c9620cfd98d336fe' }, h("slot", { key: '568632a78f16c07aa4e0ebd28c1577cb8eac5132' })));
|
|
9893
9961
|
}
|
|
9894
9962
|
};
|
|
9895
9963
|
SmoothlyTableRow.style = styleCss$c();
|
|
@@ -9912,7 +9980,7 @@ const SmoothlyTableRowGroup = class {
|
|
|
9912
9980
|
}
|
|
9913
9981
|
}
|
|
9914
9982
|
render() {
|
|
9915
|
-
return (h(Host, { key: '
|
|
9983
|
+
return (h(Host, { key: 'e7c58f7d7b9fcc27145e398a64c04451b3169a29' }, h("div", { key: '93b4472da7d3c7f0135862eff75390b0ad0ca2c2', onClick: () => this.clickHandler() }, h("div", { key: '36579099012a695455c882f8888f54b49acab4ac' }, h("slot", { key: '75921365a284a67e75723d2618dbc58568cd1a43', name: "start" })), h("div", { key: '9eec76375486c07dcc1e1a4e2474b4ef4b3fd804' }, h("slot", { key: '668fe80f0dd42ac7a103b5952f8c15215fa70076', name: "end" }))), h("div", { key: '60747a2e17ae4fa7fd44c02fdb140bf59f233736' }, h("slot", { key: 'f333d49e6caf4f252a3db59ee0768a8d07961086' }))));
|
|
9916
9984
|
}
|
|
9917
9985
|
};
|
|
9918
9986
|
SmoothlyTableRowGroup.style = styleCss$b();
|
|
@@ -9980,7 +10048,7 @@ const SmoothlyTabsDemo = class {
|
|
|
9980
10048
|
registerInstance(this, hostRef);
|
|
9981
10049
|
}
|
|
9982
10050
|
render() {
|
|
9983
|
-
return (h(Host, { key: '
|
|
10051
|
+
return (h(Host, { key: '5781b5ebdcad292a5b08f40f31ebebb24222014f' }, h("div", { key: '0988223a7ffccdb2cab03999dc462ced6f6996cd' }, h("smoothly-button", { key: 'e97edc5cf05136e6ab3032e6271275a6fdc947b9', color: "primary", onClick: () => (this.extraTab1 = !this.extraTab1) }, this.extraTab1 ? "Remove" : "Add", " tab")), h("smoothly-tabs", { key: '87a0b317fbfb07a8f2f03ec0e866dc4376c7cae2', tabs: "multiple" }, h("smoothly-tab", { key: 'd644206d3f7b6baf6c0900f2f461d18f3dc16e23', label: "Single Tab", open: true }, h("strong", { key: 'd02c9f64638183e494f0c903aedb31ecb07e5791' }, "Single Tab content here."), " If only one tab is available setting ", h("code", { key: 'a62e17aa9f7ac71c74a2796f9491610ef3ecaadc' }, "tabs"), " to", " ", h("code", { key: 'b14b0cdbaad33dcda4a8a824e60351779966895b' }, "\"multiple\""), " will hide the tab navigation and display the single tab's content directly."), this.extraTab1 && (h("smoothly-tab", { key: '6576f69475e5c5a97ffca76f2481acc6983ef451', label: "Extra tab" }, "When there are more then one tab, the tab navigation will show."))), h("div", { key: '55be8c4f25e2a4bb806a355307b48f8a0c3430d3' }, h("smoothly-button", { key: 'e456813c237a864bc2f21e6af147a63f62daec22', color: "primary", onClick: () => (this.extraTab2 = !this.extraTab2) }, this.extraTab2 ? "Remove" : "Add", " tab")), h("smoothly-tabs", { key: '2cafcf41ba65de3f65ce1090e03d7e2f8690e2f5' }, h("smoothly-tab", { key: 'f67c211b8436be3361fe382c67c88690ad745e1e', label: "Disabled tab", tooltip: "Tooltip for test3", disabled: true }, "this is a test message again!"), h("smoothly-tab", { key: '731625fa3d088cc441f8434af3a6723463d10e0d', label: "test1", tooltip: "Tooltip for test1", open: true }, "Hello world!"), h("smoothly-tab", { key: '27af20a8bd5902978986f98b0b54d5bf8cb0cb0e', label: "test2" }, "this is a test message!"), this.extraTab2 && h("smoothly-tab", { key: '76ce0bd1c7fe46c76b1401bd7dfd5d3dde777fa6', label: "test-extra" }, "this is a test message!"))));
|
|
9984
10052
|
}
|
|
9985
10053
|
};
|
|
9986
10054
|
SmoothlyTabsDemo.style = styleCss$9();
|
|
@@ -9992,7 +10060,7 @@ const SmoothlyThemeColor = class {
|
|
|
9992
10060
|
registerInstance(this, hostRef);
|
|
9993
10061
|
}
|
|
9994
10062
|
render() {
|
|
9995
|
-
return (h(Host, { key: '
|
|
10063
|
+
return (h(Host, { key: 'a1fcf6ce5205459d5f58c9dbe2b5585975638a9f' }, this.color, ["tint", "color", "shade"].map(variant => (h("smoothly-theme-color-variant", { title: `${this.color} ${variant}`, color: this.color, variant: variant })))));
|
|
9996
10064
|
}
|
|
9997
10065
|
};
|
|
9998
10066
|
SmoothlyThemeColor.style = styleCss$8();
|
|
@@ -10040,7 +10108,7 @@ const SmoothlyThemeDemo = class {
|
|
|
10040
10108
|
registerInstance(this, hostRef);
|
|
10041
10109
|
}
|
|
10042
10110
|
render() {
|
|
10043
|
-
return (h(Host, { key: '
|
|
10111
|
+
return (h(Host, { key: '4705bffb21e4f2ab9efdceb8937f6853beb20cdb' }, h("h2", { key: '468ec56882ec195388d555e5185eefd74409908a' }, "Theme"), h("smoothly-theme-picker", { key: 'a7902615f05a82b2e5c2b9dc0a9395640e5e9621' }, h("smoothly-item", { key: '96a947fd68ccb402b60ed737b0494aea2b857b41', selected: true, value: "assets/style/smoothly.css" }, "Smoothly"), h("smoothly-item", { key: '976b9696e68c0202084c6b07558bca83f6a7fa36', value: "https://app.issuefab.com/assets/style/index.css" }, "Issuefab"), h("smoothly-item", { key: '6236ade7730e1af2b97e7d93b3901f897f242c2a', value: "https://app.proquse.com/assets/style/index.css" }, "Proquse"), h("smoothly-item", { key: '8c53d77ad90596a2fcd99ad8c03bd760f8b22e1d', value: "https://app.weekmeter.com/assets/style/index.css" }, "Weekmeter"), h("smoothly-item", { key: '48dc39f3309bbaa544e501bef6cec04035d4e8af', value: "https://test.dash.pax2pay.app/p2pdash.css" }, "Pax2Pay Dashboard"), h("smoothly-item", { key: '71c3a0df112ccd2ef193e15aaa81dc52b08da648', value: "https://ui.pax2pay.app/assets/style/pax2pay.css" }, "Pax2Pay Portal"), h("smoothly-item", { key: '8243afce902c6b00aa5373c8e8380b7624f68c32', value: "https://theme.payfunc.com/intergiro/index.css" }, "Intergiro Monitor"), h("smoothly-item", { key: '8fcbb1292d126e0b6ff854e64ddf9dced0d2dc10', value: "https://theme.payfunc.com/light/index.css" }, "Payfunc Light"), h("smoothly-item", { key: 'c75faf15d890bacdced32360c27aa3db342b31cc', value: "https://theme.payfunc.com/dark/index.css" }, "Payfunc Dark")), h("div", { key: '8b559865c0458947fc98da3fd576ee904b4de051' }, h("smoothly-theme-colors", { key: '6fa3dfacbba76871c3619b6f2d09fb1360a9b9b4' }), h("smoothly-theme-guide", { key: '0f33c003d9055c36bd0cbe367d892172bd341624' })), h("smoothly-button", { key: '257acc2032881cacefafb552e372ceabc7ef50f9', type: "link", link: "/redirect" }, "To redirect"), h("smoothly-button", { key: 'd3184eb10e2e0002f4e96f68ced1b963887e4aa5', type: "link", link: "/redirect" }, "To /redirect"), h("smoothly-button", { key: '082b1930a2ad252eed0c1861073b64227c30a7f6', type: "link", link: new URL("/redirect", window.location.origin).href }, "To new URL(\"redirect\")"), h("smoothly-button", { key: 'acdd8c707231d45d0828b25a2d6dd28250fe3df1', type: "link", link: "redirect/nested" }, "To redirect nested")));
|
|
10044
10112
|
}
|
|
10045
10113
|
};
|
|
10046
10114
|
SmoothlyThemeDemo.style = styleCss$5();
|
|
@@ -10053,14 +10121,14 @@ const SmoothlyThemeColors = class {
|
|
|
10053
10121
|
}
|
|
10054
10122
|
render() {
|
|
10055
10123
|
return [
|
|
10056
|
-
h("smoothly-display", { key: '
|
|
10057
|
-
h("br", { key: '
|
|
10058
|
-
h("smoothly-display", { key: '
|
|
10059
|
-
h("br", { key: '
|
|
10060
|
-
h("smoothly-display", { key: '
|
|
10061
|
-
h("br", { key: '
|
|
10062
|
-
h("smoothly-display", { key: '
|
|
10063
|
-
h("br", { key: '
|
|
10124
|
+
h("smoothly-display", { key: 'ee1bdee159fc056d9d816c7be16066a7d5da63e1' }, "Tint is used as background to highlight, for example hovering an item in the select menu."),
|
|
10125
|
+
h("br", { key: '4345df918088a5bc0830d76ad577a8d9021722a3' }),
|
|
10126
|
+
h("smoothly-display", { key: '70a922600fa428e25e39b0b8043f896edca77da0' }, "Color is used as a normal background or as a background to show that something is selected, for example a selected item in the select menu."),
|
|
10127
|
+
h("br", { key: 'dd886d7a85f3c57a5d944c4baee8f82f352b33a1' }),
|
|
10128
|
+
h("smoothly-display", { key: '0fa99779df3b249e2c4123a44b12f139a13333d3' }, "Shade is used as border and for symbols in buttons. It works as a semi-low contrast against color and tint."),
|
|
10129
|
+
h("br", { key: 'e666fe45f25956f1f37b3f1c79344c133c914bff' }),
|
|
10130
|
+
h("smoothly-display", { key: '952a2cc2973a61046e100e7a1347352d64024702' }, "One can use the ", "<smoothly-color>", " component to switch between what color set is used.", " "),
|
|
10131
|
+
h("br", { key: 'abb9cdf2d96ccb56053b4db4b2f90aba054f9c04' }),
|
|
10064
10132
|
];
|
|
10065
10133
|
}
|
|
10066
10134
|
};
|
|
@@ -10074,12 +10142,12 @@ const SmoothlyThemePicker = class {
|
|
|
10074
10142
|
this.element = "smoothly-css";
|
|
10075
10143
|
}
|
|
10076
10144
|
render() {
|
|
10077
|
-
return (h(Host, { key: '
|
|
10145
|
+
return (h(Host, { key: 'cb423fa145741455a271c877f13093c5172b7dca' }, h("smoothly-input-select", { key: 'ef47ed51099360c415eeb7f9ddfa89d3ac89cf76', name: "theme", looks: "border", onSmoothlyInput: e => {
|
|
10078
10146
|
const element = document.querySelector(`#${this.element}`);
|
|
10079
10147
|
if (element instanceof HTMLLinkElement && typeof e.detail.theme == "string") {
|
|
10080
10148
|
element.href = e.detail.theme;
|
|
10081
10149
|
}
|
|
10082
|
-
} }, h("label", { key: '
|
|
10150
|
+
} }, h("label", { key: '2b54b1ae3b0a7f6be35234ec90b5f4178058d396', slot: "label" }, "Select theme"), h("slot", { key: '6612441eed70e810214e212aec0026e1c5015000' }))));
|
|
10083
10151
|
}
|
|
10084
10152
|
};
|
|
10085
10153
|
SmoothlyThemePicker.style = styleCss$3();
|
|
@@ -10102,7 +10170,7 @@ const SmoothlyToggleSwitch = class {
|
|
|
10102
10170
|
this.smoothlyToggleSwitchChange.emit(this.selected);
|
|
10103
10171
|
}
|
|
10104
10172
|
render() {
|
|
10105
|
-
return (h(Host, { key: '
|
|
10173
|
+
return (h(Host, { key: '0ba1d148bb5f5259f513190289e0b6368754e083' }, h("button", { key: '439a47ec12ce5b3403a89564ce7a80900f2ece18', type: "button", disabled: this.disabled, onClick: () => this.handleClick() }, h("smoothly-icon", { key: 'cef810d0fd803a7ec02edd56e049a14f412efc25', color: this.color, name: !this.checkmark ? "ellipse" : this.selected ? "checkmark-circle" : "close-circle", fill: "clear", class: { selected: this.selected } }))));
|
|
10106
10174
|
}
|
|
10107
10175
|
};
|
|
10108
10176
|
SmoothlyToggleSwitch.style = styleCss$2();
|
|
@@ -10114,7 +10182,7 @@ const SmoothlyToggleSwitchDemo = class {
|
|
|
10114
10182
|
registerInstance(this, hostRef);
|
|
10115
10183
|
}
|
|
10116
10184
|
render() {
|
|
10117
|
-
return (h(Host, { key: '
|
|
10185
|
+
return (h(Host, { key: '1dabdcd10d3df43ffc5671428e044b0cd39f1fdb' }, h("h4", { key: '0f582a81edc486b03a2ff398a01ed1ef57a325b8' }, "Toggle switches"), h("div", { key: 'e0a64865e306cc58778453e277eb6f23e95b1c83' }, h("p", { key: '64b2322cb11ed3d133752347510553a425c32893' }, "Checkmark"), h("span", { key: '48529dcf99d765bf123d4f9b7465d12b78d8f71f' }, h("p", { key: 'ded34c748d733b482bd9dc04920000c58994e232' }, "Tiny"), h("smoothly-toggle-switch", { key: '3ef57d723c3d5773d3e50da21a70acd14f6b9d4b', disabled: false, size: "tiny" })), h("span", { key: '805cafb2f78c83d429134f13b09755230d3c7f28' }, h("p", { key: '07b997916e3b76db73974a8217efd4a0a0da852e' }, "Small"), h("smoothly-toggle-switch", { key: '8630ffacea58d4226852d87de203485f69d6d0f0', disabled: false, size: "small" })), h("span", { key: '47ec6fe9f8cfdb7b73f1a36ec9a989270ae0d970' }, h("p", { key: '5dd9f3b10fd19c0f38f97d3a0a6cda8c94974ea9' }, "Standard"), h("smoothly-toggle-switch", { key: 'b464c8940d0fb07bfcea65833873968d9595e343', disabled: false })), h("span", { key: 'dc46167d726418bacef291f6b4de36fa97d58a33' }, h("p", { key: 'b15bc73943b69415ce8e3df9e757fae2ba0a4207' }, "Large"), h("smoothly-toggle-switch", { key: '7db93ebeb96861b23db045672d6a3c5146b8a194', disabled: false, size: "large" })), h("p", { key: '94eb15785b3acc86d6a18cf8f882cb1a7d72d049' }, "Colors checkmark"), h("span", { key: '97df09fcf36c26d8bf6088f5504db6d0e8fa7882' }, h("p", { key: '00f1854bde03e6973af5ee3b4e496f7d61bd3f03' }, "Danger"), h("smoothly-toggle-switch", { key: '34969714ea4c6b3e86d69941d5e338761654f6b6', color: "danger", disabled: false, size: "small" })), h("span", { key: '5b91054e5fe2c122d1196b1e1ef16ab48045d4e4' }, h("p", { key: 'e2f26a0c6dc32798c74cb8b0ef80077fed51cdd2' }, "Primary color"), h("smoothly-toggle-switch", { key: '6b7c1f733ffc932b01163002158c1a5d4516b536', color: "primary", disabled: false, size: "small" })), h("span", { key: '7af0d75bd42b73c42b3731decb6b86374efacf82' }, h("p", { key: '185b51e8f85e3cf1b45643cc36eab6ce397ce674' }, "Secondary color"), h("smoothly-toggle-switch", { key: 'cc6b462ea28082ed9a78f4eced47c854cb399c3c', color: "secondary", disabled: false, size: "small" })), h("p", { key: 'e327834dce8d87541969283181fe61d895543a1f' }), h("p", { key: '6432b470d13671b7ad08c8dd2a9c89367c62b0b5' }, "Colors no checkmark"), h("span", { key: '5aab6ec8dc84d76e328f5e553c5a2c77da87d6eb' }, h("p", { key: '37e2f84bb470c9d18bc63b632df96628de40a665' }, "Danger"), h("smoothly-toggle-switch", { key: '5f54698d7b60a66ef5652678f69c5ea84cd77e7d', checkmark: false, color: "danger", disabled: false, size: "small" })), h("span", { key: '8ad6b7f5a8e583a492b870e938583a20af9013be' }, h("p", { key: 'e8a62c15ec765fe0b677e07e7a38785ee9f0ddee' }, "Primary color"), h("smoothly-toggle-switch", { key: 'fe5491ba3676d9cc74ac86e79e2e0d56bec269fe', checkmark: false, color: "primary", disabled: false, size: "small" })), h("span", { key: 'ab1d27ec6816b4a1701be605eae402563c57d895' }, h("p", { key: 'aeaaa479d30dc09adc6cdb3253eae9bf60d8b058' }, "Secondary color"), h("smoothly-toggle-switch", { key: 'c15f8d04f0d4e4ba5b67a7ba8415d1622d0f6dfb', checkmark: false, color: "secondary", disabled: false, size: "small" })))));
|
|
10118
10186
|
}
|
|
10119
10187
|
};
|
|
10120
10188
|
SmoothlyToggleSwitchDemo.style = styleCss$1();
|
|
@@ -10140,7 +10208,7 @@ const SmoothlyTrigger = class {
|
|
|
10140
10208
|
result = this.disabled ? (h("slot", null)) : (h("a", { onClick: e => this.onClick(e) }, h("slot", null)));
|
|
10141
10209
|
break;
|
|
10142
10210
|
case "button":
|
|
10143
|
-
result = (h("button", { key: '
|
|
10211
|
+
result = (h("button", { key: 'e5464a11e71f956f08e7c02a72f49246c411d679', disabled: this.disabled, name: this.name }, h("slot", { key: 'aa8aed4cddd4978a5636b816ef4d5ff2737dedc3' })));
|
|
10144
10212
|
break;
|
|
10145
10213
|
}
|
|
10146
10214
|
return result;
|