smoothly 1.122.0 → 1.124.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_99.cjs.entry.js +88 -75
- package/dist/cjs/smoothly-app_99.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/demo/date/index.js +1 -1
- package/dist/collection/components/input/demo/index.js +2 -2
- package/dist/collection/components/input/demo/index.js.map +1 -1
- package/dist/collection/components/input/demo/price/index.js +1 -1
- package/dist/collection/components/input/demo/radio/index.js +1 -1
- package/dist/collection/components/input/demo/standard/index.js +1 -1
- package/dist/collection/components/input/demo/user-input/index.js +3 -3
- package/dist/collection/components/input/edit/index.js +1 -1
- package/dist/collection/components/input/file/index.js +1 -1
- package/dist/collection/components/input/month/index.js +4 -4
- package/dist/collection/components/input/radio/item/index.js +1 -1
- package/dist/collection/components/input/range/demo/index.js +1 -1
- package/dist/collection/components/input/range/index.js +2 -2
- package/dist/collection/components/input/reset/index.js +1 -1
- package/dist/collection/components/input/select/index.js +65 -4
- package/dist/collection/components/input/select/index.js.map +1 -1
- package/dist/collection/components/input/select/menu.js +5 -0
- package/dist/collection/components/input/select/menu.js.map +1 -1
- package/dist/collection/components/input/select/style.css +4 -1
- package/dist/collection/components/input/submit/index.js +1 -1
- package/dist/collection/components/item/index.js +1 -1
- package/dist/collection/components/label/index.js +2 -2
- package/dist/collection/components/lazy/index.js +1 -1
- package/dist/collection/components/load-more/index.js +1 -1
- package/dist/collection/components/modal/index.js +2 -2
- package/dist/collection/components/notification/index.js +1 -1
- package/dist/collection/components/notifier/demo/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-1IbSjfRJ.js +2 -0
- package/dist/components/{p-Dff2v1VD.js.map → p-1IbSjfRJ.js.map} +1 -1
- package/dist/components/{p-C9_7A_n7.js → p-6t4TTe9M.js} +2 -2
- package/dist/components/{p-CttQUOE5.js → p-7Bkv44Kg.js} +2 -2
- package/dist/components/{p-DN8CxJxb.js → p-8kVBmIEY.js} +2 -2
- package/dist/components/{p-DbQqZdoI.js → p-B1agr2Cu.js} +2 -2
- package/dist/components/{p-BaXCWr8l.js → p-B2SQlYXg.js} +2 -2
- package/dist/components/{p-B2eJc1lR.js → p-B2_ScOnh.js} +2 -2
- package/dist/components/p-B4ZWPf6K.js +2 -0
- package/dist/components/p-B8xGVFme.js +2 -0
- package/dist/components/{p-Dd9tz4Tj.js → p-BAMxyPpe.js} +2 -2
- package/dist/components/{p-C2woWb9T.js → p-BCX9Z_Id.js} +2 -2
- package/dist/components/{p-DFh4J14i.js → p-BKKtlLzJ.js} +2 -2
- package/dist/components/{p-vvQg46ti.js → p-BLDkKrD6.js} +2 -2
- package/dist/components/{p-CF7MePy1.js → p-BMCHQuiC.js} +2 -2
- package/dist/components/{p-XZAGPm4i.js → p-BNCRANHq.js} +2 -2
- package/dist/components/{p-CsTmaH-Y.js → p-BOgkCDpz.js} +2 -2
- package/dist/components/{p-gEWA_tZo.js → p-BR6cMQkb.js} +2 -2
- package/dist/components/{p-o8kM0Soe.js → p-BWF43Ktc.js} +2 -2
- package/dist/components/{p-CrnjoFOX.js → p-B_8v46jP.js} +2 -2
- package/dist/components/{p--44NQk1v.js → p-BaA80q8p.js} +2 -2
- package/dist/components/p-Bdn7S2FK.js +2 -0
- package/dist/components/{p-B1VLjp0y.js → p-BeMfiXqA.js} +2 -2
- package/dist/components/{p-MduEqLch.js → p-BiRi-ZIu.js} +2 -2
- package/dist/components/{p-CaQWZMN4.js → p-BkrgS2Eo.js} +2 -2
- package/dist/components/{p-0Oak1FtC.js → p-BmOu5krL.js} +2 -2
- package/dist/components/{p-KZeR_6LG.js → p-Bp65xiCy.js} +2 -2
- package/dist/components/{p-BLdivqFr.js → p-C3bp3FF4.js} +2 -2
- package/dist/components/p-C3ntRScd.js +2 -0
- package/dist/components/{p-Bzg8bBIr.js → p-C4PyQibs.js} +2 -2
- package/dist/components/{p-C-5nbahV.js → p-CA4ZV5xR.js} +2 -2
- package/dist/components/{p-D57O7AkC.js → p-CFSQhgLX.js} +2 -2
- package/dist/components/{p-QtHFbgfu.js → p-CI8xrsZF.js} +2 -2
- package/dist/components/{p-tD13Ef_1.js → p-CMEM-pz8.js} +2 -2
- package/dist/components/{p-C22G-tNF.js → p-CMhSJk_G.js} +2 -2
- package/dist/components/{p-KhaLdt5K.js → p-CW-4QxIV.js} +2 -2
- package/dist/components/{p-DLgeylX5.js → p-CXd0RCW9.js} +2 -2
- package/dist/components/{p-CtVEKtM6.js → p-CZY1H_tZ.js} +2 -2
- package/dist/components/p-CcJJSSNp.js +2 -0
- package/dist/components/{p-wjlHVReJ.js → p-CcJ_7PQR.js} +2 -2
- package/dist/components/p-Cd3l3tXR.js +2 -0
- package/dist/components/p-Cg9sulGk.js +2 -0
- package/dist/components/{p-BI_XG1Oj.js → p-CnPK9tlN.js} +2 -2
- package/dist/components/p-Cu84ppD4.js +2 -0
- package/dist/components/{p-Cs0CtSI2.js → p-Cvc3SMPo.js} +2 -2
- package/dist/components/{p-4Xn3Nprv.js → p-CvhP-Vls.js} +2 -2
- package/dist/components/{p-BSHxNVcQ.js → p-D1kz47jP.js} +2 -2
- package/dist/components/{p-BsHachOX.js → p-D6t9mpY2.js} +2 -2
- package/dist/components/{p-B3S9rR8a.js → p-D7ibQkKs.js} +2 -2
- package/dist/components/p-DAB4uIiw.js +2 -0
- package/dist/components/p-DB5eYiPc.js +2 -0
- package/dist/components/p-DB5eYiPc.js.map +1 -0
- package/dist/components/{p-DWcI5nnM.js → p-DDlDQL4g.js} +2 -2
- package/dist/components/{p-DlkQKgfQ.js → p-DDxHDn3A.js} +2 -2
- package/dist/components/{p-DY_crgmf.js → p-DGKXbkuc.js} +2 -2
- package/dist/components/p-DNSImvvt.js +2 -0
- package/dist/components/{p-Cs1TuGgV.js.map → p-DNSImvvt.js.map} +1 -1
- package/dist/components/{p-CKD_8Dn1.js → p-DTVTH7QY.js} +2 -2
- package/dist/components/p-DTo2Itg9.js +2 -0
- package/dist/components/p-DTo2Itg9.js.map +1 -0
- package/dist/components/p-DWA8xW2u.js +2 -0
- package/dist/components/p-DXFBAVrd.js +2 -0
- package/dist/components/{p-B7BXt5wC.js.map → p-DXFBAVrd.js.map} +1 -1
- package/dist/components/{p-B7WG3bLU.js → p-DaxzTpsr.js} +2 -2
- package/dist/components/p-Dbwl2AV3.js +2 -0
- package/dist/components/{p-Ch5M1RA7.js → p-DcOQ-AL9.js} +2 -2
- package/dist/components/{p-BsimTIMh.js → p-DfSSSicA.js} +2 -2
- package/dist/components/{p-7_LLYsTi.js → p-DfwyarvV.js} +2 -2
- package/dist/components/{p-zRKK2Cul.js → p-Doc1GrjW.js} +2 -2
- package/dist/components/{p-CVdJ19AA.js → p-DtGUtK97.js} +2 -2
- package/dist/components/p-Du3BErGp.js +2 -0
- package/dist/components/{p-MqffyRVU.js → p-EqRJl32n.js} +2 -2
- package/dist/components/p-F7kTA33j.js +2 -0
- package/dist/components/{p-WvQaS_J6.js → p-J05ZrIy8.js} +2 -2
- package/dist/components/{p-CceVYEd4.js → p-KvtHm4oA.js} +2 -2
- package/dist/components/{p-DvOr53No.js → p-MWZzvkuh.js} +2 -2
- package/dist/components/{p-PwCtk_DY.js → p-WyNQ9SZM.js} +2 -2
- package/dist/components/{p-EsCYK0HQ.js → p-XXG8KYEH.js} +2 -2
- package/dist/components/{p-CYxd1Pkd.js → p-_46rt1sK.js} +2 -2
- package/dist/components/p-ca1ZzpjQ.js +2 -0
- package/dist/components/{p-BX-sEZyq.js → p-e3dhSqSH.js} +2 -2
- package/dist/components/p-fZNu4CkP.js +2 -0
- package/dist/components/{p-DYvlD9aR.js → p-gELDTDod.js} +2 -2
- package/dist/components/p-i49ZmE4D.js +2 -0
- package/dist/components/{p-CTwHHE82.js → p-jd_qrwk9.js} +2 -2
- package/dist/components/{p-CHjWijPI.js → p-l7KxEsrG.js} +2 -2
- package/dist/components/p-nBkQozv8.js +2 -0
- package/dist/components/{p-Cx_sM6Sy.js.map → p-nBkQozv8.js.map} +1 -1
- package/dist/components/p-yIbGvKho.js +2 -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-edit.js +1 -1
- package/dist/components/smoothly-input-file.js +1 -1
- package/dist/components/smoothly-input-month.js +1 -1
- package/dist/components/smoothly-input-price-demo.js +1 -1
- package/dist/components/smoothly-input-radio-item.js +1 -1
- package/dist/components/smoothly-input-radio.js +1 -1
- package/dist/components/smoothly-input-range-demo.js +1 -1
- package/dist/components/smoothly-input-range.js +1 -1
- package/dist/components/smoothly-input-reset.js +1 -1
- package/dist/components/smoothly-input-select.js +1 -1
- package/dist/components/smoothly-input-submit.js +1 -1
- package/dist/components/smoothly-input.js +1 -1
- package/dist/components/smoothly-item.js +1 -1
- package/dist/components/smoothly-label.js +1 -1
- package/dist/components/smoothly-lazy.js +1 -1
- package/dist/components/smoothly-load-more.js +1 -1
- package/dist/components/smoothly-modal.js +1 -1
- package/dist/components/smoothly-notification.js +1 -1
- package/dist/components/smoothly-notifier-demo.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_99.entry.js +88 -75
- package/dist/esm/smoothly-app_99.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-64cc747b.entry.js → p-0a167245.entry.js} +2 -2
- package/dist/smoothly/{p-e8015fc7.entry.js → p-4796e508.entry.js} +2 -2
- package/dist/smoothly/{p-2ea46d26.entry.js → p-53cbd170.entry.js} +2 -2
- package/dist/smoothly/p-53cbd170.entry.js.map +1 -0
- package/dist/smoothly/{p-c70e24bf.entry.js → p-d4e775c4.entry.js} +2 -2
- package/dist/smoothly/smoothly.esm.js +1 -1
- package/dist/types/components/input/select/index.d.ts +3 -0
- package/dist/types/components/input/select/menu.d.ts +1 -0
- package/dist/types/components.d.ts +14 -0
- package/package.json +1 -1
- package/dist/components/p-1eBV_fsy.js +0 -2
- package/dist/components/p-B7BXt5wC.js +0 -2
- package/dist/components/p-B7y_cC4v.js +0 -2
- package/dist/components/p-BJA3pU4q.js +0 -2
- package/dist/components/p-BKiQn3aG.js +0 -2
- package/dist/components/p-BbtmZQlk.js +0 -2
- package/dist/components/p-BcV_X5mg.js +0 -2
- package/dist/components/p-BplZiuMF.js +0 -2
- package/dist/components/p-BplZiuMF.js.map +0 -1
- package/dist/components/p-CDbQFx9i.js +0 -2
- package/dist/components/p-CDbQFx9i.js.map +0 -1
- package/dist/components/p-CGfga7g-.js +0 -2
- package/dist/components/p-CPhreyuD.js +0 -2
- package/dist/components/p-Cfvi2T1F.js +0 -2
- package/dist/components/p-Ch1HU37X.js +0 -2
- package/dist/components/p-Cs1TuGgV.js +0 -2
- package/dist/components/p-Cx_sM6Sy.js +0 -2
- package/dist/components/p-Cyi2S_Qh.js +0 -2
- package/dist/components/p-D5xdTtVs.js +0 -2
- package/dist/components/p-DA4pyC19.js +0 -2
- package/dist/components/p-DLtJSM-r.js +0 -2
- package/dist/components/p-DO3QrEu1.js +0 -2
- package/dist/components/p-Dff2v1VD.js +0 -2
- package/dist/components/p-U7a1lSmf.js +0 -2
- package/dist/components/p-ewmy4_JT.js +0 -2
- package/dist/smoothly/p-2ea46d26.entry.js.map +0 -1
- /package/dist/components/{p-C9_7A_n7.js.map → p-6t4TTe9M.js.map} +0 -0
- /package/dist/components/{p-CttQUOE5.js.map → p-7Bkv44Kg.js.map} +0 -0
- /package/dist/components/{p-DN8CxJxb.js.map → p-8kVBmIEY.js.map} +0 -0
- /package/dist/components/{p-DbQqZdoI.js.map → p-B1agr2Cu.js.map} +0 -0
- /package/dist/components/{p-BaXCWr8l.js.map → p-B2SQlYXg.js.map} +0 -0
- /package/dist/components/{p-B2eJc1lR.js.map → p-B2_ScOnh.js.map} +0 -0
- /package/dist/components/{p-BbtmZQlk.js.map → p-B4ZWPf6K.js.map} +0 -0
- /package/dist/components/{p-CPhreyuD.js.map → p-B8xGVFme.js.map} +0 -0
- /package/dist/components/{p-Dd9tz4Tj.js.map → p-BAMxyPpe.js.map} +0 -0
- /package/dist/components/{p-C2woWb9T.js.map → p-BCX9Z_Id.js.map} +0 -0
- /package/dist/components/{p-DFh4J14i.js.map → p-BKKtlLzJ.js.map} +0 -0
- /package/dist/components/{p-vvQg46ti.js.map → p-BLDkKrD6.js.map} +0 -0
- /package/dist/components/{p-CF7MePy1.js.map → p-BMCHQuiC.js.map} +0 -0
- /package/dist/components/{p-XZAGPm4i.js.map → p-BNCRANHq.js.map} +0 -0
- /package/dist/components/{p-CsTmaH-Y.js.map → p-BOgkCDpz.js.map} +0 -0
- /package/dist/components/{p-gEWA_tZo.js.map → p-BR6cMQkb.js.map} +0 -0
- /package/dist/components/{p-o8kM0Soe.js.map → p-BWF43Ktc.js.map} +0 -0
- /package/dist/components/{p-CrnjoFOX.js.map → p-B_8v46jP.js.map} +0 -0
- /package/dist/components/{p--44NQk1v.js.map → p-BaA80q8p.js.map} +0 -0
- /package/dist/components/{p-1eBV_fsy.js.map → p-Bdn7S2FK.js.map} +0 -0
- /package/dist/components/{p-B1VLjp0y.js.map → p-BeMfiXqA.js.map} +0 -0
- /package/dist/components/{p-MduEqLch.js.map → p-BiRi-ZIu.js.map} +0 -0
- /package/dist/components/{p-CaQWZMN4.js.map → p-BkrgS2Eo.js.map} +0 -0
- /package/dist/components/{p-0Oak1FtC.js.map → p-BmOu5krL.js.map} +0 -0
- /package/dist/components/{p-KZeR_6LG.js.map → p-Bp65xiCy.js.map} +0 -0
- /package/dist/components/{p-BLdivqFr.js.map → p-C3bp3FF4.js.map} +0 -0
- /package/dist/components/{p-Ch1HU37X.js.map → p-C3ntRScd.js.map} +0 -0
- /package/dist/components/{p-Bzg8bBIr.js.map → p-C4PyQibs.js.map} +0 -0
- /package/dist/components/{p-C-5nbahV.js.map → p-CA4ZV5xR.js.map} +0 -0
- /package/dist/components/{p-D57O7AkC.js.map → p-CFSQhgLX.js.map} +0 -0
- /package/dist/components/{p-QtHFbgfu.js.map → p-CI8xrsZF.js.map} +0 -0
- /package/dist/components/{p-tD13Ef_1.js.map → p-CMEM-pz8.js.map} +0 -0
- /package/dist/components/{p-C22G-tNF.js.map → p-CMhSJk_G.js.map} +0 -0
- /package/dist/components/{p-KhaLdt5K.js.map → p-CW-4QxIV.js.map} +0 -0
- /package/dist/components/{p-DLgeylX5.js.map → p-CXd0RCW9.js.map} +0 -0
- /package/dist/components/{p-CtVEKtM6.js.map → p-CZY1H_tZ.js.map} +0 -0
- /package/dist/components/{p-CGfga7g-.js.map → p-CcJJSSNp.js.map} +0 -0
- /package/dist/components/{p-wjlHVReJ.js.map → p-CcJ_7PQR.js.map} +0 -0
- /package/dist/components/{p-Cyi2S_Qh.js.map → p-Cd3l3tXR.js.map} +0 -0
- /package/dist/components/{p-BKiQn3aG.js.map → p-Cg9sulGk.js.map} +0 -0
- /package/dist/components/{p-BI_XG1Oj.js.map → p-CnPK9tlN.js.map} +0 -0
- /package/dist/components/{p-DLtJSM-r.js.map → p-Cu84ppD4.js.map} +0 -0
- /package/dist/components/{p-Cs0CtSI2.js.map → p-Cvc3SMPo.js.map} +0 -0
- /package/dist/components/{p-4Xn3Nprv.js.map → p-CvhP-Vls.js.map} +0 -0
- /package/dist/components/{p-BSHxNVcQ.js.map → p-D1kz47jP.js.map} +0 -0
- /package/dist/components/{p-BsHachOX.js.map → p-D6t9mpY2.js.map} +0 -0
- /package/dist/components/{p-B3S9rR8a.js.map → p-D7ibQkKs.js.map} +0 -0
- /package/dist/components/{p-Cfvi2T1F.js.map → p-DAB4uIiw.js.map} +0 -0
- /package/dist/components/{p-DWcI5nnM.js.map → p-DDlDQL4g.js.map} +0 -0
- /package/dist/components/{p-DlkQKgfQ.js.map → p-DDxHDn3A.js.map} +0 -0
- /package/dist/components/{p-DY_crgmf.js.map → p-DGKXbkuc.js.map} +0 -0
- /package/dist/components/{p-CKD_8Dn1.js.map → p-DTVTH7QY.js.map} +0 -0
- /package/dist/components/{p-B7y_cC4v.js.map → p-DWA8xW2u.js.map} +0 -0
- /package/dist/components/{p-B7WG3bLU.js.map → p-DaxzTpsr.js.map} +0 -0
- /package/dist/components/{p-BJA3pU4q.js.map → p-Dbwl2AV3.js.map} +0 -0
- /package/dist/components/{p-Ch5M1RA7.js.map → p-DcOQ-AL9.js.map} +0 -0
- /package/dist/components/{p-BsimTIMh.js.map → p-DfSSSicA.js.map} +0 -0
- /package/dist/components/{p-7_LLYsTi.js.map → p-DfwyarvV.js.map} +0 -0
- /package/dist/components/{p-zRKK2Cul.js.map → p-Doc1GrjW.js.map} +0 -0
- /package/dist/components/{p-CVdJ19AA.js.map → p-DtGUtK97.js.map} +0 -0
- /package/dist/components/{p-BcV_X5mg.js.map → p-Du3BErGp.js.map} +0 -0
- /package/dist/components/{p-MqffyRVU.js.map → p-EqRJl32n.js.map} +0 -0
- /package/dist/components/{p-ewmy4_JT.js.map → p-F7kTA33j.js.map} +0 -0
- /package/dist/components/{p-WvQaS_J6.js.map → p-J05ZrIy8.js.map} +0 -0
- /package/dist/components/{p-CceVYEd4.js.map → p-KvtHm4oA.js.map} +0 -0
- /package/dist/components/{p-DvOr53No.js.map → p-MWZzvkuh.js.map} +0 -0
- /package/dist/components/{p-PwCtk_DY.js.map → p-WyNQ9SZM.js.map} +0 -0
- /package/dist/components/{p-EsCYK0HQ.js.map → p-XXG8KYEH.js.map} +0 -0
- /package/dist/components/{p-CYxd1Pkd.js.map → p-_46rt1sK.js.map} +0 -0
- /package/dist/components/{p-DO3QrEu1.js.map → p-ca1ZzpjQ.js.map} +0 -0
- /package/dist/components/{p-BX-sEZyq.js.map → p-e3dhSqSH.js.map} +0 -0
- /package/dist/components/{p-U7a1lSmf.js.map → p-fZNu4CkP.js.map} +0 -0
- /package/dist/components/{p-DYvlD9aR.js.map → p-gELDTDod.js.map} +0 -0
- /package/dist/components/{p-DA4pyC19.js.map → p-i49ZmE4D.js.map} +0 -0
- /package/dist/components/{p-CTwHHE82.js.map → p-jd_qrwk9.js.map} +0 -0
- /package/dist/components/{p-CHjWijPI.js.map → p-l7KxEsrG.js.map} +0 -0
- /package/dist/components/{p-D5xdTtVs.js.map → p-yIbGvKho.js.map} +0 -0
- /package/dist/smoothly/{p-64cc747b.entry.js.map → p-0a167245.entry.js.map} +0 -0
- /package/dist/smoothly/{p-e8015fc7.entry.js.map → p-4796e508.entry.js.map} +0 -0
- /package/dist/smoothly/{p-c70e24bf.entry.js.map → p-d4e775c4.entry.js.map} +0 -0
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{p as o,H as e,h as t,d as a,t as s}from"./p-BsZrGTcp.js";import{d as l}from"./p-mmAi00ak.js";import{d as i}from"./p-
|
|
2
|
-
//# sourceMappingURL=p-
|
|
1
|
+
import{p as o,H as e,h as t,d as a,t as s}from"./p-BsZrGTcp.js";import{d as l}from"./p-mmAi00ak.js";import{d as i}from"./p-DfwyarvV.js";import{d as m}from"./p-Bt-mtf0k.js";import{d as c}from"./p-DFSiKg4M.js";import{d}from"./p-1IbSjfRJ.js";import{d as r}from"./p-DaxzTpsr.js";import{d as n}from"./p-BCX9Z_Id.js";const f=()=>`.sc-smoothly-dialog-demo-h>smoothly-button.sc-smoothly-dialog-demo{display:block;margin-block:2rem}`;const b=o(class o extends e{constructor(o){super();if(o!==false){this.__registerHost()}this.openModal=false;this.openTallModal=false;this.showFrame=false}render(){return t(a,{key:"0d1ca7f9bc049064eb1680cc807bd49bafab0e7e"},t("smoothly-button",{key:"33683c13b2f666aea6d3306056b74b694cb88654",fill:"solid",color:"light",onClick:()=>this.openModal=true},"Open Modal"),t("smoothly-button",{key:"46de03312dfa5a28f164aacd442a7074148d6390",fill:"solid",color:"light",onClick:()=>this.openTallModal=true},"Open Modal with long text and top-aligned."),t("smoothly-button",{key:"ea629cfa5afabb8151f230b4916d9eb13849a4d7",fill:"solid",color:"light",onClick:()=>this.showFrame=!this.showFrame},"Show Frame"),t("smoothly-modal",{key:"45b7313f8539478b1418298a7e086e506b18cf79",closable:true,open:this.openModal,onSmoothlyModalChange:o=>this.openModal=o.detail},t("h2",{key:"005f8f44463bd4f5048582f4d59b8792a02321e4",slot:"header"},"Modal"),t("span",{key:"8bdae975d32f862fe1b2da1b75c1cdd8e0596e19"},"Are you sure you want to confirm this action?"),t("smoothly-button",{key:"7a4fc7fbeb273ddaf66723c022c0408d7d5e6cc0",slot:"actions",color:"success"},"Confirm"),t("smoothly-button",{key:"c41f548b2f249ab1d04d180c6a8745f0be0c3180",slot:"actions",color:"light",fill:"outline",onClick:()=>this.openModal=false},"Cancel")),t("smoothly-modal",{key:"9b8efe1c92dae88afeb60053efcc19c89fcb53f6",closable:true,open:this.openTallModal,onSmoothlyModalChange:o=>this.openTallModal=o.detail,align:"top"},t("h2",{key:"0c7b0382250669ac142152a49f24214180b75c11",slot:"header"},"Modal"),t("smoothly-summary",{key:"ccb69953bda0af96ba9e6679d0492770e1face22"},t("div",{key:"95d44ba81eec2106d470f4f84c0857aab8f9b6c5",slot:"summary"},"Lorem ipsum"),t("div",{key:"73a8c397c891af87ebb019bdb3ace838ab40ee24",slot:"content"},Array.from({length:10}).map((()=>t("p",null,"Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum."))))),t("smoothly-button",{key:"61c0e81f6b49ff91d58cc3536c516e25afe9ee71",slot:"actions",color:"light",fill:"outline",onClick:()=>this.openTallModal=false},"Cancel")),this.showFrame&&t("smoothly-dialog",{key:"c0315ea0fbf1a253fe4fbc7aa9e01f7b21e49293",closable:true},t("smoothly-frame",{key:"1469ba8f2d229d42329627b12e2a4bd4028a2273",url:"https://www.wikipedia.org/",name:"parent",style:{height:"80vh"}})))}static get style(){return f()}},[2,"smoothly-dialog-demo",{openModal:[32],openTallModal:[32],showFrame:[32]}]);function u(){if(typeof customElements==="undefined"){return}const o=["smoothly-dialog-demo","smoothly-button","smoothly-dialog","smoothly-frame","smoothly-icon","smoothly-modal","smoothly-summary","smoothly-trigger"];o.forEach((o=>{switch(o){case"smoothly-dialog-demo":if(!customElements.get(s(o))){customElements.define(s(o),b)}break;case"smoothly-button":if(!customElements.get(s(o))){l()}break;case"smoothly-dialog":if(!customElements.get(s(o))){i()}break;case"smoothly-frame":if(!customElements.get(s(o))){m()}break;case"smoothly-icon":if(!customElements.get(s(o))){c()}break;case"smoothly-modal":if(!customElements.get(s(o))){d()}break;case"smoothly-summary":if(!customElements.get(s(o))){r()}break;case"smoothly-trigger":if(!customElements.get(s(o))){n()}break}}))}u();export{b as S,u as d};
|
|
2
|
+
//# sourceMappingURL=p-8kVBmIEY.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{p as t,H as e,h as o,F as s,d as a,t as m}from"./p-BsZrGTcp.js";import{i}from"./p-BVKhAhsB.js";import{d as n}from"./p-mmAi00ak.js";import{d as l}from"./p-
|
|
2
|
-
//# sourceMappingURL=p-
|
|
1
|
+
import{p as t,H as e,h as o,F as s,d as a,t as m}from"./p-BsZrGTcp.js";import{i}from"./p-BVKhAhsB.js";import{d as n}from"./p-mmAi00ak.js";import{d as l}from"./p-l7KxEsrG.js";import{d as r}from"./p-BE5E3Jm6.js";import{d}from"./p-DFSiKg4M.js";import{d as c}from"./p-BAMxyPpe.js";import{d as h}from"./p-e3dhSqSH.js";import{d as p}from"./p-CZY1H_tZ.js";import{d as u}from"./p-Bp65xiCy.js";import{d as y}from"./p-EqRJl32n.js";import{d as f}from"./p-DTo2Itg9.js";import{d as b}from"./p-DtGUtK97.js";const k=()=>`.sc-smoothly-input-date-demo-h{display:grid;grid-template-columns:repeat(auto-fit, minmax(20rem, 1fr));max-width:min(42rem, 100%);margin:auto;flex-direction:column;gap:0.5rem}.sc-smoothly-input-date-demo-h .sc-smoothly-input-date-demo:not(smoothly-input-date):not(smoothly-input-date-range){grid-column:1 / -1}`;const E=t(class t extends e{constructor(t){super();if(t!==false){this.__registerHost()}this.alwaysShowGuide=false}render(){return o(a,{key:"9602907d9ae0152643b48455bdd21da2a8a91a50"},o("div",{key:"2e9244031f62cb552fff12fd107050c42065bc1d"},o("h2",{key:"26b155267a35157e779724e7b805496aa01d61e5"},"Date input"),o("p",{key:"b2f4a4d204e681869e2a3067b4f08bfd53700077"},"Different locales formatting the same date"),o("smoothly-button",{key:"2e8e18bc20722b720f6f26b5c720cf31c6ba236b",color:"primary",onClick:()=>this.date=this.date?i.Date.next(this.date):i.Date.now()},"Set date"),o("smoothly-input-checkbox",{key:"13101795d8056cad4581762357226c669181f56b",looks:"transparent",onSmoothlyUserInput:t=>{this.alwaysShowGuide=t.detail.value;console.log(this.alwaysShowGuide)}},"Always Show Guide")),["en-US","en-GB","de-DE","se-SE"].map((t=>o(s,null,o("smoothly-input-date",{locale:t,name:t,looks:"border",value:this.date,alwaysShowGuide:this.alwaysShowGuide},t,o("smoothly-input-clear",{slot:"end"})),o("smoothly-input-date-range",{locale:t,name:t+"-range",looks:"border",start:this.date,end:this.date?i.Date.next(this.date):undefined,alwaysShowGuide:this.alwaysShowGuide},t," Range",o("smoothly-input-clear",{slot:"end"}))))))}static get style(){return k()}},[2,"smoothly-input-date-demo",{date:[32],alwaysShowGuide:[32]}]);function g(){if(typeof customElements==="undefined"){return}const t=["smoothly-input-date-demo","smoothly-button","smoothly-calendar","smoothly-date-text","smoothly-icon","smoothly-input-checkbox","smoothly-input-clear","smoothly-input-date","smoothly-input-date-range","smoothly-input-month","smoothly-input-select","smoothly-item"];t.forEach((t=>{switch(t){case"smoothly-input-date-demo":if(!customElements.get(m(t))){customElements.define(m(t),E)}break;case"smoothly-button":if(!customElements.get(m(t))){n()}break;case"smoothly-calendar":if(!customElements.get(m(t))){l()}break;case"smoothly-date-text":if(!customElements.get(m(t))){r()}break;case"smoothly-icon":if(!customElements.get(m(t))){d()}break;case"smoothly-input-checkbox":if(!customElements.get(m(t))){c()}break;case"smoothly-input-clear":if(!customElements.get(m(t))){h()}break;case"smoothly-input-date":if(!customElements.get(m(t))){p()}break;case"smoothly-input-date-range":if(!customElements.get(m(t))){u()}break;case"smoothly-input-month":if(!customElements.get(m(t))){y()}break;case"smoothly-input-select":if(!customElements.get(m(t))){f()}break;case"smoothly-item":if(!customElements.get(m(t))){b()}break}}))}g();export{E as S,g as d};
|
|
2
|
+
//# sourceMappingURL=p-B1agr2Cu.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{p as o,H as e,c as t,h as i,d as a,t as s}from"./p-BsZrGTcp.js";import{d as l}from"./p-BWdGj6F8.js";import{d as n}from"./p-DFSiKg4M.js";import{d as h}from"./p-
|
|
2
|
-
//# sourceMappingURL=p-
|
|
1
|
+
import{p as o,H as e,c as t,h as i,d as a,t as s}from"./p-BsZrGTcp.js";import{d as l}from"./p-BWdGj6F8.js";import{d as n}from"./p-DFSiKg4M.js";import{d as h}from"./p-Bdn7S2FK.js";import{d as r}from"./p-CI8xrsZF.js";import{d as m}from"./p-BCX9Z_Id.js";const d=()=>`smoothly-app{--header-height:5rem;display:block}smoothly-app>smoothly-notifier>main{height:calc(100dvh - var(--header-height))}smoothly-app[hidden]{display:none}smoothly-app>smoothly-notifier{height:100%;background:none}smoothly-app.smoothly-mobile-mode>smoothly-notifier>header:has(smoothly-burger)>nav>ul smoothly-app-room{width:100%;height:4em}smoothly-app>smoothly-notifier>header{position:sticky;top:0;z-index:20;width:100%;height:var(--header-height);display:flex;justify-content:space-between;box-sizing:border-box;align-items:center;box-shadow:0 1px 0 0 rgb(var(--smoothly-color-shade)) inset}smoothly-app>smoothly-notifier>header>nav{width:100%;flex-shrink:2;height:100%}smoothly-app>smoothly-notifier>header>nav,smoothly-app>smoothly-notifier>header>nav>ul{display:flex;margin:0}smoothly-app:not([label])>smoothly-notifier>header>h1{display:none}smoothly-app>smoothly-notifier>header>h1{margin-left:1rem;margin-bottom:0.8em;display:flex;height:100%}smoothly-app>smoothly-notifier>header>h1>a{display:inline-block;align-self:center;size:100%;background-position-y:center;text-decoration:none;white-space:nowrap}smoothly-app>smoothly-notifier>header>nav>ul{width:100%}smoothly-app>smoothly-notifier>header>nav>ul>div.nav-start-container{display:flex;align-items:center;height:100%}smoothly-app>smoothly-notifier>header>nav>ul>div.nav-end-container{display:flex;align-items:center;height:100%;margin-left:auto;margin-right:1rem}smoothly-app>smoothly-notifier>header>nav>ul>[slot="nav-end"]{width:fit-content;align-self:center;height:fit-content;margin-left:10rem}smoothly-app>smoothly-notifier>header>nav>ul li a{display:flex;height:2.3rem;text-decoration:none;align-items:center;align-self:center}smoothly-app.smoothly-mobile-mode:not([menu-open])>smoothly-notifier>header>nav{display:none}smoothly-app>smoothly-notifier>main>div{overflow-y:scroll;height:100%}smoothly-app.smoothly-mobile-mode>smoothly-notifier>header>nav{width:fit-content;max-width:100%;top:100%;position:absolute;max-height:calc(100dvh - var(--header-height));overflow-y:scroll;right:0;height:auto}smoothly-app.smoothly-mobile-mode>smoothly-notifier>header>nav,smoothly-app.smoothly-mobile-mode>smoothly-notifier>header>nav>ul{flex-direction:column;background-color:rgba(var(--smoothly-color))}smoothly-app.smoothly-mobile-mode>smoothly-notifier>header>nav>ul{padding:1.5rem;box-sizing:border-box}smoothly-app.smoothly-mobile-mode>smoothly-notifier>header>nav>ul li{margin-right:0;width:100%}smoothly-app:not(.smoothly-mobile-mode)>smoothly-notifier>header>smoothly-burger{display:none}smoothly-app.smoothly-mobile-mode>smoothly-notifier>header>smoothly-burger{position:absolute;top:0;right:0}smoothly-app.smoothly-mobile-mode>smoothly-notifier>header>nav>ul>[slot="nav-start"]{display:none}smoothly-app.smoothly-mobile-mode>smoothly-notifier>header>nav>ul>div.nav-start-container,smoothly-app.smoothly-mobile-mode>smoothly-notifier>header>nav>ul>div.nav-end-container{flex-direction:column;margin:0;align-items:start;justify-content:center}smoothly-app.smoothly-mobile-mode>smoothly-notifier>header>nav>ul>div.nav-start-container>*:last-child{margin-bottom:1em}`;const c=o(class o extends e{constructor(o){super();if(o!==false){this.__registerHost()}this.smoothlyUrlChange=t(this,"smoothlyUrlChange");this.menuOpen=false;this.navBreakpoint="48rem";this.mobileMode=false;this.rooms={}}componentWillLoad(){const o=window.matchMedia(`(max-width: ${this.navBreakpoint})`);this.mobileMode=o.matches;o.addEventListener("change",(o=>this.updateMobileMode(o.matches)))}componentDidLoad(){this.updateMobileMode(this.mobileMode)}updateMobileMode(o){this.mobileMode=o;Object.values(this.rooms).forEach((e=>e===null||e===void 0?void 0:e.element.setMobileMode(o)));if(!o){this.menuOpen=false}}async componentDidRender(){var o;if(!this.selected&&!window.location.search){(o=this.home&&this.rooms[this.home]?this.rooms[this.home]:Object.values(this.rooms).find((o=>!(o===null||o===void 0?void 0:o.element.disabled))))===null||o===void 0?void 0:o.element.setSelected(true)}}async selectRoom(o){var e;(e=this.rooms[o])===null||e===void 0?void 0:e.element.setSelected(true)}async selectedChanged(){var o;Object.values(this.rooms).forEach((o=>{var e;return(o===null||o===void 0?void 0:o.element.path)!=((e=this.selected)===null||e===void 0?void 0:e.element.path)&&(o===null||o===void 0?void 0:o.element.setSelected(false))}));const e=await((o=this.selected)===null||o===void 0?void 0:o.element.getContent());requestAnimationFrame((()=>{if(this.mainElement&&e){this.mainElement.replaceChildren(e)}}))}async locationChangeHandler(o){var e;(e=this.rooms[o.state.smoothlyPath])===null||e===void 0?void 0:e.element.setSelected(true,{history:true});this.smoothlyUrlChange.emit(window.location.href)}roomSelectedHandler(o){this.selected={element:o.target};if(this.mobileMode){this.menuOpen=false}if(!o.detail.history){const e=o.detail.path;const t=new URL(window.location.pathname==e?window.location.href:window.location.origin);t.pathname=e;t.search=o.detail.query?`?${o.detail.query}`:"";window.history.pushState({smoothlyPath:e,smoothlyQuery:o.detail.query||""},"",t.href)}}roomLoadedHandler(o){const e=this.rooms[o.target.path.toString()]={element:o.target};if(e.element.selected){this.selected=e}}clickHandler(o){if(this.mobileMode&&!o.composedPath().some((o=>o==this.burgerElement||o==this.navElement))){this.menuOpen=false}}render(){return i(a,{key:"746fa3adf359072b95f0b00ecea914189bdfead2",class:{"smoothly-mobile-mode":this.mobileMode}},i("smoothly-notifier",{key:"ddf542afef536ab6141394b658e82686bd414e69"},i("header",{key:"511a856fb813b5476a705c993734380ad94194cf",color:this.color},i("h1",{key:"9c3e79f9fcd3ef587183e3b83d646753a0f8dd7c"},i("a",{key:"9be4ba4d2ffaeaca1cb00752b5fcba0b1b64c261",href:""},this.label)),i("slot",{key:"92573b6cffad97e2afbfb6b6a7d5d1fb8f0ec59e",name:"header"}),i("nav",{key:"4a7c5cbbb39a82b845775d6dd0015a47ab72757d",ref:o=>this.navElement=o},i("ul",{key:"a8035a4e9143d4cd49ac4edfbb837785a8a58cd8"},i("div",{key:"2c4de281ad7f522c2c09acfcad890eadabc30c40",class:"nav-start-container"},i("slot",{key:"05e3f3a40f45d9505a463a29c90bbfcc2a3ff330",name:"nav-start"})),i("slot",{key:"695fd5bef476d1c00e5654803c03e94c8218943a"}),i("div",{key:"382c0271207f040374c3f69aa2946d0938bbb1c1",class:"nav-end-container"},i("slot",{key:"02fe44b3c557b7a930f24fdc465d8824eccbbbef",name:"nav-end"})))),i("smoothly-burger",{key:"fad0b5d8e2841ed284af04d9b0554e91ddf98575",ref:o=>this.burgerElement=o,open:this.menuOpen,onSmoothlyNavStatus:o=>(o.stopPropagation(),this.menuOpen=o.detail)})),i("main",{key:"5c6464b6db6e0eba2acbaf5efd549cebe08c1a95",ref:o=>this.mainElement=o})))}static get watchers(){return{selected:[{selectedChanged:0}]}}static get style(){return d()}},[260,"smoothly-app",{label:[513],color:[1],home:[1],menuOpen:[1540,"menu-open"],navBreakpoint:[513,"nav-breakpoint"],mobileMode:[32],selected:[32],selectRoom:[64]},[[8,"popstate","locationChangeHandler"],[0,"smoothlyRoomSelect","roomSelectedHandler"],[0,"smoothlyRoomLoad","roomLoadedHandler"],[8,"click","clickHandler"]],{selected:[{selectedChanged:0}]}]);function y(){if(typeof customElements==="undefined"){return}const o=["smoothly-app","smoothly-burger","smoothly-icon","smoothly-notification","smoothly-notifier","smoothly-trigger"];o.forEach((o=>{switch(o){case"smoothly-app":if(!customElements.get(s(o))){customElements.define(s(o),c)}break;case"smoothly-burger":if(!customElements.get(s(o))){l()}break;case"smoothly-icon":if(!customElements.get(s(o))){n()}break;case"smoothly-notification":if(!customElements.get(s(o))){h()}break;case"smoothly-notifier":if(!customElements.get(s(o))){r()}break;case"smoothly-trigger":if(!customElements.get(s(o))){m()}break}}))}y();export{c as S,y as d};
|
|
2
|
+
//# sourceMappingURL=p-B2SQlYXg.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{p as e,H as a,h as n,d as l,t as o}from"./p-BsZrGTcp.js";import{d}from"./p-CN3iME9d.js";import{d as i}from"./p-DG2pfnCV.js";import{d as s}from"./p-uFR5K4vd.js";import{d as c}from"./p-DvZK__s-.js";import{d as m}from"./p-F8qX8ZuL.js";import{d as r}from"./p-DvOr53No.js";import{d as t}from"./p-Cx_sM6Sy.js";import{d as b}from"./p-DO3QrEu1.js";import{d as g}from"./p-B7BXt5wC.js";import{d as y}from"./p-XZAGPm4i.js";import{d as f}from"./p-DYvlD9aR.js";import{d as h}from"./p-DlkQKgfQ.js";import{d as p}from"./p-CceVYEd4.js";const u=[{id:"667d329f9f4934ecdc4bf9eb",balance:1450.03,age:35,eyeColor:"blue",name:"Glenda Ballard",gender:"female",company:"ZENTIA",registered:"2022-06-13T12:39:15.908",friends:[{id:0,name:"Manning Hunter",age:30,balance:1922.25},{id:1,name:"Mcmillan Oliver",age:32,balance:2440.53},{id:2,name:"Graham Garza",age:33,balance:3712.59},{id:3,name:"Gabrielle Neal",age:36,balance:2519.25},{id:4,name:"Dotson Duncan",age:29,balance:3274.11}]},{id:"667d329f4e07097167ef92a2",balance:2488.91,age:21,eyeColor:"blue",name:"Delaney Haley",gender:"male",company:"COMTOURS",registered:"2018-05-11T08:58:36.197",friends:[{id:0,name:"Elsa Cochran",age:28,balance:2009.45},{id:1,name:"Willis Acevedo",age:33,balance:2198.01},{id:2,name:"Slater Fowler",age:34,balance:2888.16},{id:3,name:"Ashley Wilkerson",age:22,balance:1863.65},{id:4,name:"Ola Lynch",age:23,balance:3649.29}]},{id:"667d329f14a0aeea0d70d5e7",balance:1660.91,age:36,eyeColor:"brown",name:"Riddle Reilly",gender:"male",company:"OPTIQUE",registered:"2016-09-15T09:46:07.962",friends:[{id:0,name:"Hazel Steele",age:33,balance:3129.64},{id:1,name:"Golden Chapman",age:40,balance:2491},{id:2,name:"Solomon Lopez",age:26,balance:1382.71},{id:3,name:"Castro Booth",age:23,balance:1991.6},{id:4,name:"Hernandez Bartlett",age:25,balance:2842.85},{id:5,name:"Lindsay Wagner",age:20,balance:3636.6}]},{id:"667d329f953aaaba19bea98b",balance:1381.34,age:24,eyeColor:"brown",name:"Diana Burns",gender:"female",company:"CODACT",registered:"2023-06-02T09:07:46.478",friends:[{id:0,name:"Tamika Merritt",age:25,balance:2401.06},{id:1,name:"Ballard Buckner",age:36,balance:1986.13},{id:2,name:"Stokes Ramirez",age:25,balance:3521.75},{id:3,name:"Wood Aguirre",age:36,balance:1186.13},{id:4,name:"Sophia Bowen",age:25,balance:2750.95},{id:5,name:"Wilkinson Gordon",age:34,balance:3864.91}]},{id:"667d329f6a753976e21e23b5",balance:3054.74,age:22,eyeColor:"brown",name:"Jackson Burnett",gender:"male",company:"COMCUR",registered:"2019-06-05T09:17:31.312",friends:[{id:0,name:"Atkinson Alston",age:37,balance:1025.72},{id:1,name:"Delia Ford",age:34,balance:3061.87},{id:2,name:"Marylou Hanson",age:33,balance:3255.77},{id:3,name:"Kelly Ray",age:32,balance:3671.73},{id:4,name:"Valdez Weeks",age:38,balance:3911.29},{id:5,name:"Hayes Crawford",age:20,balance:3194.97}]},{id:"667d329fc4805cafac37861e",balance:1173.94,age:20,eyeColor:"green",name:"Stephenson Mcleod",gender:"male",company:"POLARAX",registered:"2015-12-10T07:36:10.267",friends:[{id:0,name:"Kristine Newton",age:26,balance:2713.9},{id:1,name:"Craft Patel",age:40,balance:3822.36},{id:2,name:"Cochran French",age:30,balance:1535.91},{id:3,name:"Bowen Vinson",age:29,balance:2787.01},{id:4,name:"Adrian Ewing",age:21,balance:2319.14},{id:5,name:"Jimmie Mathews",age:31,balance:2869.09},{id:6,name:"Dixon Daugherty",age:24,balance:1496.25}]},{id:"667d329f76318162fe27b208",balance:2977.01,age:24,eyeColor:"blue",name:"Claudette Christensen",gender:"female",company:"PIVITOL",registered:"2021-08-08T07:08:00.936",friends:[{id:0,name:"Parker Lamb",age:36,balance:3409.27},{id:1,name:"Kennedy Bryan",age:34,balance:3904.27},{id:2,name:"Johanna Barton",age:20,balance:3613.79},{id:3,name:"Vazquez Melendez",age:26,balance:3692.31},{id:4,name:"Mendoza Wooten",age:31,balance:2175.64},{id:5,name:"Kelli Hicks",age:21,balance:1326.46},{id:6,name:"Jill Sanchez",age:36,balance:3214.36}]},{id:"667d329ff80a953b7f0a73d2",balance:1993.09,age:20,eyeColor:"green",name:"Buckley Gutierrez",gender:"male",company:"HOUSEDOWN",registered:"2015-04-02T04:53:42.985",friends:[{id:0,name:"Leanne Pennington",age:37,balance:3111.48},{id:1,name:"Juarez Hoover",age:29,balance:2000.62},{id:2,name:"Navarro Mccormick",age:22,balance:3083.93},{id:3,name:"Berry Curry",age:31,balance:3181.41},{id:4,name:"Josefa Howard",age:30,balance:3744.56}]},{id:"667d329f4f53eb59f0512361",balance:2374.56,age:34,eyeColor:"brown",name:"Sallie Mccoy",gender:"female",company:"REALYSIS",registered:"2018-05-11T05:26:36.604",friends:[{id:0,name:"Martina Kirby",age:22,balance:1278.07},{id:1,name:"Macias Lyons",age:20,balance:2991.44},{id:2,name:"Alta Chaney",age:26,balance:1032.71},{id:3,name:"White Manning",age:39,balance:3103.16},{id:4,name:"Mason Rosa",age:31,balance:1384.77},{id:5,name:"Meghan Martin",age:27,balance:1982.09}]},{id:"667d329f8a6cf9319bfdbd30",balance:3220.94,age:23,eyeColor:"blue",name:"Huff Hull",gender:"male",company:"GADTRON",registered:"2023-02-14T01:58:56.938",friends:[{id:0,name:"Rochelle Maldonado",age:28,balance:1548.77},{id:1,name:"Diann Conrad",age:32,balance:1721.33},{id:2,name:"Hope Jarvis",age:38,balance:1265.24},{id:3,name:"Dixie Huffman",age:31,balance:3764.23},{id:4,name:"Erickson Porter",age:27,balance:2958.59},{id:5,name:"Christensen Thomas",age:21,balance:1233.2}]},{id:"667d329f1415ecb1efb216cc",balance:2907.83,age:26,eyeColor:"brown",name:"Hancock Eaton",gender:"male",company:"POLARIUM",registered:"2018-02-25T01:03:11.860",friends:[{id:0,name:"Flynn Gilmore",age:27,balance:2582.57},{id:1,name:"Kline Hickman",age:31,balance:3853.99},{id:2,name:"Hatfield Owens",age:40,balance:2016.57},{id:3,name:"Michael Carson",age:31,balance:1293.03},{id:4,name:"Strickland Lowery",age:23,balance:1367.06},{id:5,name:"Georgia Chavez",age:37,balance:2957.48},{id:6,name:"Alma Berry",age:26,balance:2357.01}]},{id:"667d329f722eb89c82b56dec",balance:1602.02,age:35,eyeColor:"brown",name:"Lorrie Mcpherson",gender:"female",company:"PYRAMIA",registered:"2018-12-07T05:18:34.223",friends:[{id:0,name:"Bridgett Everett",age:37,balance:1438.53},{id:1,name:"Carlene Farley",age:25,balance:1410.54},{id:2,name:"Phoebe Mendez",age:24,balance:1979.36},{id:3,name:"Louella Cox",age:36,balance:3430.55},{id:4,name:"Velez Pugh",age:30,balance:3436.5}]},{id:"667d329ff853efe8c4e0a454",balance:2654.19,age:36,eyeColor:"brown",name:"Luann Jennings",gender:"female",company:"NAXDIS",registered:"2014-02-18T04:25:50.302",friends:[{id:0,name:"Walton Gentry",age:26,balance:1328.43},{id:1,name:"Lucy Koch",age:23,balance:2134.54},{id:2,name:"Toni Meyers",age:31,balance:2572.29},{id:3,name:"Vicki Frost",age:39,balance:3299.36},{id:4,name:"Meadows Baker",age:21,balance:2323.75}]},{id:"667d329f84f3bfbfcc763674",balance:2528.48,age:28,eyeColor:"brown",name:"Michelle Carey",gender:"female",company:"IDEGO",registered:"2016-10-01T04:25:07.187",friends:[{id:0,name:"Roman Sanders",age:40,balance:3551.16},{id:1,name:"Amanda Herman",age:22,balance:3928.02},{id:2,name:"Kay Montgomery",age:26,balance:3241.16},{id:3,name:"Valentine Wilder",age:23,balance:1413.31},{id:4,name:"Brigitte Nixon",age:32,balance:3113.39}]},{id:"667d329f4359ec766055a765",balance:3732.65,age:30,eyeColor:"brown",name:"Beach Maddox",gender:"male",company:"GEEKETRON",registered:"2021-03-24T11:55:31.135",friends:[{id:0,name:"Candy Gibbs",age:20,balance:2602.28},{id:1,name:"Alissa Rosario",age:36,balance:1958.84},{id:2,name:"Imelda Harmon",age:23,balance:3817.79},{id:3,name:"Addie Serrano",age:35,balance:3154.77},{id:4,name:"Jordan Shields",age:26,balance:3566.08}]},{id:"667d329f9ef3817d307e2583",balance:2151.52,age:32,eyeColor:"brown",name:"Whitney Hood",gender:"male",company:"EVENTAGE",registered:"2021-06-17T12:11:56.473",friends:[{id:0,name:"Noel Walsh",age:29,balance:2790.49},{id:1,name:"Barlow Rodriquez",age:35,balance:1664.23},{id:2,name:"Nash Keith",age:23,balance:2285.17},{id:3,name:"Chavez Webster",age:23,balance:3381.55},{id:4,name:"Herminia Chen",age:24,balance:1064.96},{id:5,name:"Susana Glass",age:22,balance:2749.35}]},{id:"667d329f9bd581700cac2dbc",balance:2209.77,age:40,eyeColor:"blue",name:"Tasha Mosley",gender:"female",company:"QUIZKA",registered:"2014-05-11T11:44:55.071",friends:[{id:0,name:"Larsen Wall",age:22,balance:1523.28},{id:1,name:"Holmes Hopkins",age:35,balance:1112.68},{id:2,name:"Giles Espinoza",age:21,balance:2550.95},{id:3,name:"Aimee Rosales",age:26,balance:2195.06},{id:4,name:"Karin Little",age:28,balance:2896.23},{id:5,name:"Angelita Mcfadden",age:25,balance:1051.15}]},{id:"667d329f6e2dbb2002be4b9e",balance:3298.23,age:31,eyeColor:"brown",name:"Schneider Walker",gender:"male",company:"BLEENDOT",registered:"2020-02-11T08:57:29.025",friends:[{id:0,name:"Helena William",age:34,balance:2579.69},{id:1,name:"Silva Ware",age:30,balance:2683.79},{id:2,name:"Enid Oconnor",age:22,balance:1816.46},{id:3,name:"Knowles Goff",age:24,balance:1675.75},{id:4,name:"Carolina Greer",age:29,balance:3337.27}]},{id:"667d329f8c548510c5d4f5ce",balance:2823.51,age:35,eyeColor:"green",name:"Mayo Shepard",gender:"male",company:"KIOSK",registered:"2024-02-24T12:45:57.463",friends:[{id:0,name:"Olga Hester",age:21,balance:3878.21},{id:1,name:"Rogers Sampson",age:23,balance:2669.62},{id:2,name:"Myra Johnson",age:27,balance:3489.32},{id:3,name:"Mcfadden Phillips",age:20,balance:2758.8},{id:4,name:"Park Moody",age:23,balance:3519.08}]},{id:"667d329f6574ada6f090fd54",balance:2631.69,age:40,eyeColor:"blue",name:"Avis Carlson",gender:"female",company:"LINGOAGE",registered:"2016-08-08T08:59:54.752",friends:[{id:0,name:"Mcdonald Dyer",age:25,balance:2262.39},{id:1,name:"Irene Baldwin",age:29,balance:1291.1},{id:2,name:"Rollins Anderson",age:26,balance:1437.04},{id:3,name:"Juliana Larson",age:29,balance:3492.22},{id:4,name:"Michele Gardner",age:20,balance:2003.15},{id:5,name:"Vang Cardenas",age:31,balance:1855.52},{id:6,name:"Puckett Hubbard",age:21,balance:1659.92}]}];const k=()=>`.sc-smoothly-table-demo-nested-no-cell-h{display:block}.sc-smoothly-table-demo-nested-no-cell-h>smoothly-display.sc-smoothly-table-demo-nested-no-cell{font-size:2em}.sc-smoothly-table-demo-nested-no-cell-h>*.sc-smoothly-table-demo-nested-no-cell{margin-bottom:2rem}.sc-smoothly-table-demo-nested-no-cell-h smoothly-table-expandable-row.sc-smoothly-table-demo-nested-no-cell{position:relative}`;const C=e(class e extends a{constructor(e){super();if(e!==false){this.__registerHost()}this.loadedRows=[]}render(){return n(l,{key:"29038194ab35ac91e7ecd38984f9f16cb681b10f"},n("smoothly-display",{key:"7bdfbe9558ae59cd12eb9073bf198f764a084c4c",type:"text",value:"Nested"}),n("smoothly-table",{key:"627d873552ed96aa168796a3d6e4a8c2922d348f",color:"primary",columns:8},n("smoothly-table-head",{key:"d1e76a9a6aae1ea0c353cc4a9eef221b70b9200f"},n("smoothly-table-row",{key:"bd1a42a9a3b9a9fd69999c2024b8aaf0c7197537"},n("div",{key:"b73f56ee3c882cc971027521e788d5f89e2e0271",class:"smoothly-table-cell"},"Id"),n("div",{key:"029edab125641cdb0ff010c9774418a79c396dd8",class:"smoothly-table-cell"},"Registered"),n("div",{key:"c54776ba48053d919fa18e5acb42b1808d4b9431",class:"smoothly-table-cell"},"Name"),n("div",{key:"9cc10cc412a916c8d17cd33cd4662779b2f35498",class:"smoothly-table-cell"},"Age"),n("div",{key:"b6deb718feedf1ad85fcb4ae67bb235130326592",class:"smoothly-table-cell"},"Balance"),n("div",{key:"3d8897f00e8345493c1f9955bba32554a0c758cd",class:"smoothly-table-cell"},"EyeColor"),n("div",{key:"1027b8d35fbd4c802f4f3fbe50f897eca8775cc3",class:"smoothly-table-cell"},"Gender"),n("div",{key:"49bff1d9b137a3b4c0a4142724f2acfed24a9408",class:"smoothly-table-cell"},"Company"))),n("smoothly-table-body",{key:"153be08a6e9679ddf265e9d48349fa020b6469fd"},u.map(((e,a)=>n("smoothly-table-expandable-row",{onSmoothlyTableExpandableRowChange:e=>{if(e.detail){this.loadingIndex=a;setTimeout((()=>{this.loadingIndex=undefined;this.loadedRows=[...this.loadedRows,a]}),1500)}}},this.loadingIndex===a&&n("smoothly-spinner",{overlay:true,size:"small"}),this.loadedRows.includes(a)&&n("smoothly-table-demo-nested-no-cell-inner",{color:"secondary",data:e.friends,slot:"detail"}),n("div",{class:"smoothly-table-cell"},e.id),n("div",{class:"smoothly-table-cell"},e.registered),n("div",{class:"smoothly-table-cell"},e.name),n("div",{class:"smoothly-table-cell"},e.age),n("div",{class:"smoothly-table-cell"},e.balance),n("div",{class:"smoothly-table-cell"},e.eyeColor),n("div",{class:"smoothly-table-cell"},e.gender),n("div",{class:"smoothly-table-cell"},e.company))))),n("smoothly-table-foot",{key:"f45322ab1a0273857552d25a85b246117bc3b549"},n("smoothly-table-row",{key:"4ac21ff178aaadde33945221f2d08f0407967f02"},n("div",{key:"6f725408d5b9388ff74e7508137d96e56b724306",class:"smoothly-table-cell"},"Footer Cell"),n("div",{key:"3e2123ee1c77f6bdbd365f95088683d1faf3e24e",class:"smoothly-table-cell"},"Footer Cell")))))}static get style(){return k()}},[2,"smoothly-table-demo-nested-no-cell",{loadingIndex:[32],loadedRows:[32]}]);function E(){if(typeof customElements==="undefined"){return}const e=["smoothly-table-demo-nested-no-cell","smoothly-display","smoothly-display-json","smoothly-display-json-object","smoothly-display-json-primitive","smoothly-display-json-record-key","smoothly-spinner","smoothly-table","smoothly-table-body","smoothly-table-demo-nested-no-cell-inner","smoothly-table-expandable-row","smoothly-table-foot","smoothly-table-head","smoothly-table-row"];e.forEach((e=>{switch(e){case"smoothly-table-demo-nested-no-cell":if(!customElements.get(o(e))){customElements.define(o(e),C)}break;case"smoothly-display":if(!customElements.get(o(e))){d()}break;case"smoothly-display-json":if(!customElements.get(o(e))){i()}break;case"smoothly-display-json-object":if(!customElements.get(o(e))){s()}break;case"smoothly-display-json-primitive":if(!customElements.get(o(e))){c()}break;case"smoothly-display-json-record-key":if(!customElements.get(o(e))){m()}break;case"smoothly-spinner":if(!customElements.get(o(e))){r()}break;case"smoothly-table":if(!customElements.get(o(e))){t()}break;case"smoothly-table-body":if(!customElements.get(o(e))){b()}break;case"smoothly-table-demo-nested-no-cell-inner":if(!customElements.get(o(e))){g()}break;case"smoothly-table-expandable-row":if(!customElements.get(o(e))){y()}break;case"smoothly-table-foot":if(!customElements.get(o(e))){f()}break;case"smoothly-table-head":if(!customElements.get(o(e))){h()}break;case"smoothly-table-row":if(!customElements.get(o(e))){p()}break}}))}E();export{C as S,E as d};
|
|
2
|
-
//# sourceMappingURL=p-
|
|
1
|
+
import{p as e,H as a,h as n,d as l,t as o}from"./p-BsZrGTcp.js";import{d}from"./p-CN3iME9d.js";import{d as c}from"./p-DG2pfnCV.js";import{d as i}from"./p-uFR5K4vd.js";import{d as s}from"./p-DvZK__s-.js";import{d as m}from"./p-F8qX8ZuL.js";import{d as r}from"./p-MWZzvkuh.js";import{d as b}from"./p-nBkQozv8.js";import{d as t}from"./p-ca1ZzpjQ.js";import{d as g}from"./p-DXFBAVrd.js";import{d as y}from"./p-BNCRANHq.js";import{d as f}from"./p-gELDTDod.js";import{d as h}from"./p-DDxHDn3A.js";import{d as p}from"./p-KvtHm4oA.js";const u=[{id:"667d329f9f4934ecdc4bf9eb",balance:1450.03,age:35,eyeColor:"blue",name:"Glenda Ballard",gender:"female",company:"ZENTIA",registered:"2022-06-13T12:39:15.908",friends:[{id:0,name:"Manning Hunter",age:30,balance:1922.25},{id:1,name:"Mcmillan Oliver",age:32,balance:2440.53},{id:2,name:"Graham Garza",age:33,balance:3712.59},{id:3,name:"Gabrielle Neal",age:36,balance:2519.25},{id:4,name:"Dotson Duncan",age:29,balance:3274.11}]},{id:"667d329f4e07097167ef92a2",balance:2488.91,age:21,eyeColor:"blue",name:"Delaney Haley",gender:"male",company:"COMTOURS",registered:"2018-05-11T08:58:36.197",friends:[{id:0,name:"Elsa Cochran",age:28,balance:2009.45},{id:1,name:"Willis Acevedo",age:33,balance:2198.01},{id:2,name:"Slater Fowler",age:34,balance:2888.16},{id:3,name:"Ashley Wilkerson",age:22,balance:1863.65},{id:4,name:"Ola Lynch",age:23,balance:3649.29}]},{id:"667d329f14a0aeea0d70d5e7",balance:1660.91,age:36,eyeColor:"brown",name:"Riddle Reilly",gender:"male",company:"OPTIQUE",registered:"2016-09-15T09:46:07.962",friends:[{id:0,name:"Hazel Steele",age:33,balance:3129.64},{id:1,name:"Golden Chapman",age:40,balance:2491},{id:2,name:"Solomon Lopez",age:26,balance:1382.71},{id:3,name:"Castro Booth",age:23,balance:1991.6},{id:4,name:"Hernandez Bartlett",age:25,balance:2842.85},{id:5,name:"Lindsay Wagner",age:20,balance:3636.6}]},{id:"667d329f953aaaba19bea98b",balance:1381.34,age:24,eyeColor:"brown",name:"Diana Burns",gender:"female",company:"CODACT",registered:"2023-06-02T09:07:46.478",friends:[{id:0,name:"Tamika Merritt",age:25,balance:2401.06},{id:1,name:"Ballard Buckner",age:36,balance:1986.13},{id:2,name:"Stokes Ramirez",age:25,balance:3521.75},{id:3,name:"Wood Aguirre",age:36,balance:1186.13},{id:4,name:"Sophia Bowen",age:25,balance:2750.95},{id:5,name:"Wilkinson Gordon",age:34,balance:3864.91}]},{id:"667d329f6a753976e21e23b5",balance:3054.74,age:22,eyeColor:"brown",name:"Jackson Burnett",gender:"male",company:"COMCUR",registered:"2019-06-05T09:17:31.312",friends:[{id:0,name:"Atkinson Alston",age:37,balance:1025.72},{id:1,name:"Delia Ford",age:34,balance:3061.87},{id:2,name:"Marylou Hanson",age:33,balance:3255.77},{id:3,name:"Kelly Ray",age:32,balance:3671.73},{id:4,name:"Valdez Weeks",age:38,balance:3911.29},{id:5,name:"Hayes Crawford",age:20,balance:3194.97}]},{id:"667d329fc4805cafac37861e",balance:1173.94,age:20,eyeColor:"green",name:"Stephenson Mcleod",gender:"male",company:"POLARAX",registered:"2015-12-10T07:36:10.267",friends:[{id:0,name:"Kristine Newton",age:26,balance:2713.9},{id:1,name:"Craft Patel",age:40,balance:3822.36},{id:2,name:"Cochran French",age:30,balance:1535.91},{id:3,name:"Bowen Vinson",age:29,balance:2787.01},{id:4,name:"Adrian Ewing",age:21,balance:2319.14},{id:5,name:"Jimmie Mathews",age:31,balance:2869.09},{id:6,name:"Dixon Daugherty",age:24,balance:1496.25}]},{id:"667d329f76318162fe27b208",balance:2977.01,age:24,eyeColor:"blue",name:"Claudette Christensen",gender:"female",company:"PIVITOL",registered:"2021-08-08T07:08:00.936",friends:[{id:0,name:"Parker Lamb",age:36,balance:3409.27},{id:1,name:"Kennedy Bryan",age:34,balance:3904.27},{id:2,name:"Johanna Barton",age:20,balance:3613.79},{id:3,name:"Vazquez Melendez",age:26,balance:3692.31},{id:4,name:"Mendoza Wooten",age:31,balance:2175.64},{id:5,name:"Kelli Hicks",age:21,balance:1326.46},{id:6,name:"Jill Sanchez",age:36,balance:3214.36}]},{id:"667d329ff80a953b7f0a73d2",balance:1993.09,age:20,eyeColor:"green",name:"Buckley Gutierrez",gender:"male",company:"HOUSEDOWN",registered:"2015-04-02T04:53:42.985",friends:[{id:0,name:"Leanne Pennington",age:37,balance:3111.48},{id:1,name:"Juarez Hoover",age:29,balance:2000.62},{id:2,name:"Navarro Mccormick",age:22,balance:3083.93},{id:3,name:"Berry Curry",age:31,balance:3181.41},{id:4,name:"Josefa Howard",age:30,balance:3744.56}]},{id:"667d329f4f53eb59f0512361",balance:2374.56,age:34,eyeColor:"brown",name:"Sallie Mccoy",gender:"female",company:"REALYSIS",registered:"2018-05-11T05:26:36.604",friends:[{id:0,name:"Martina Kirby",age:22,balance:1278.07},{id:1,name:"Macias Lyons",age:20,balance:2991.44},{id:2,name:"Alta Chaney",age:26,balance:1032.71},{id:3,name:"White Manning",age:39,balance:3103.16},{id:4,name:"Mason Rosa",age:31,balance:1384.77},{id:5,name:"Meghan Martin",age:27,balance:1982.09}]},{id:"667d329f8a6cf9319bfdbd30",balance:3220.94,age:23,eyeColor:"blue",name:"Huff Hull",gender:"male",company:"GADTRON",registered:"2023-02-14T01:58:56.938",friends:[{id:0,name:"Rochelle Maldonado",age:28,balance:1548.77},{id:1,name:"Diann Conrad",age:32,balance:1721.33},{id:2,name:"Hope Jarvis",age:38,balance:1265.24},{id:3,name:"Dixie Huffman",age:31,balance:3764.23},{id:4,name:"Erickson Porter",age:27,balance:2958.59},{id:5,name:"Christensen Thomas",age:21,balance:1233.2}]},{id:"667d329f1415ecb1efb216cc",balance:2907.83,age:26,eyeColor:"brown",name:"Hancock Eaton",gender:"male",company:"POLARIUM",registered:"2018-02-25T01:03:11.860",friends:[{id:0,name:"Flynn Gilmore",age:27,balance:2582.57},{id:1,name:"Kline Hickman",age:31,balance:3853.99},{id:2,name:"Hatfield Owens",age:40,balance:2016.57},{id:3,name:"Michael Carson",age:31,balance:1293.03},{id:4,name:"Strickland Lowery",age:23,balance:1367.06},{id:5,name:"Georgia Chavez",age:37,balance:2957.48},{id:6,name:"Alma Berry",age:26,balance:2357.01}]},{id:"667d329f722eb89c82b56dec",balance:1602.02,age:35,eyeColor:"brown",name:"Lorrie Mcpherson",gender:"female",company:"PYRAMIA",registered:"2018-12-07T05:18:34.223",friends:[{id:0,name:"Bridgett Everett",age:37,balance:1438.53},{id:1,name:"Carlene Farley",age:25,balance:1410.54},{id:2,name:"Phoebe Mendez",age:24,balance:1979.36},{id:3,name:"Louella Cox",age:36,balance:3430.55},{id:4,name:"Velez Pugh",age:30,balance:3436.5}]},{id:"667d329ff853efe8c4e0a454",balance:2654.19,age:36,eyeColor:"brown",name:"Luann Jennings",gender:"female",company:"NAXDIS",registered:"2014-02-18T04:25:50.302",friends:[{id:0,name:"Walton Gentry",age:26,balance:1328.43},{id:1,name:"Lucy Koch",age:23,balance:2134.54},{id:2,name:"Toni Meyers",age:31,balance:2572.29},{id:3,name:"Vicki Frost",age:39,balance:3299.36},{id:4,name:"Meadows Baker",age:21,balance:2323.75}]},{id:"667d329f84f3bfbfcc763674",balance:2528.48,age:28,eyeColor:"brown",name:"Michelle Carey",gender:"female",company:"IDEGO",registered:"2016-10-01T04:25:07.187",friends:[{id:0,name:"Roman Sanders",age:40,balance:3551.16},{id:1,name:"Amanda Herman",age:22,balance:3928.02},{id:2,name:"Kay Montgomery",age:26,balance:3241.16},{id:3,name:"Valentine Wilder",age:23,balance:1413.31},{id:4,name:"Brigitte Nixon",age:32,balance:3113.39}]},{id:"667d329f4359ec766055a765",balance:3732.65,age:30,eyeColor:"brown",name:"Beach Maddox",gender:"male",company:"GEEKETRON",registered:"2021-03-24T11:55:31.135",friends:[{id:0,name:"Candy Gibbs",age:20,balance:2602.28},{id:1,name:"Alissa Rosario",age:36,balance:1958.84},{id:2,name:"Imelda Harmon",age:23,balance:3817.79},{id:3,name:"Addie Serrano",age:35,balance:3154.77},{id:4,name:"Jordan Shields",age:26,balance:3566.08}]},{id:"667d329f9ef3817d307e2583",balance:2151.52,age:32,eyeColor:"brown",name:"Whitney Hood",gender:"male",company:"EVENTAGE",registered:"2021-06-17T12:11:56.473",friends:[{id:0,name:"Noel Walsh",age:29,balance:2790.49},{id:1,name:"Barlow Rodriquez",age:35,balance:1664.23},{id:2,name:"Nash Keith",age:23,balance:2285.17},{id:3,name:"Chavez Webster",age:23,balance:3381.55},{id:4,name:"Herminia Chen",age:24,balance:1064.96},{id:5,name:"Susana Glass",age:22,balance:2749.35}]},{id:"667d329f9bd581700cac2dbc",balance:2209.77,age:40,eyeColor:"blue",name:"Tasha Mosley",gender:"female",company:"QUIZKA",registered:"2014-05-11T11:44:55.071",friends:[{id:0,name:"Larsen Wall",age:22,balance:1523.28},{id:1,name:"Holmes Hopkins",age:35,balance:1112.68},{id:2,name:"Giles Espinoza",age:21,balance:2550.95},{id:3,name:"Aimee Rosales",age:26,balance:2195.06},{id:4,name:"Karin Little",age:28,balance:2896.23},{id:5,name:"Angelita Mcfadden",age:25,balance:1051.15}]},{id:"667d329f6e2dbb2002be4b9e",balance:3298.23,age:31,eyeColor:"brown",name:"Schneider Walker",gender:"male",company:"BLEENDOT",registered:"2020-02-11T08:57:29.025",friends:[{id:0,name:"Helena William",age:34,balance:2579.69},{id:1,name:"Silva Ware",age:30,balance:2683.79},{id:2,name:"Enid Oconnor",age:22,balance:1816.46},{id:3,name:"Knowles Goff",age:24,balance:1675.75},{id:4,name:"Carolina Greer",age:29,balance:3337.27}]},{id:"667d329f8c548510c5d4f5ce",balance:2823.51,age:35,eyeColor:"green",name:"Mayo Shepard",gender:"male",company:"KIOSK",registered:"2024-02-24T12:45:57.463",friends:[{id:0,name:"Olga Hester",age:21,balance:3878.21},{id:1,name:"Rogers Sampson",age:23,balance:2669.62},{id:2,name:"Myra Johnson",age:27,balance:3489.32},{id:3,name:"Mcfadden Phillips",age:20,balance:2758.8},{id:4,name:"Park Moody",age:23,balance:3519.08}]},{id:"667d329f6574ada6f090fd54",balance:2631.69,age:40,eyeColor:"blue",name:"Avis Carlson",gender:"female",company:"LINGOAGE",registered:"2016-08-08T08:59:54.752",friends:[{id:0,name:"Mcdonald Dyer",age:25,balance:2262.39},{id:1,name:"Irene Baldwin",age:29,balance:1291.1},{id:2,name:"Rollins Anderson",age:26,balance:1437.04},{id:3,name:"Juliana Larson",age:29,balance:3492.22},{id:4,name:"Michele Gardner",age:20,balance:2003.15},{id:5,name:"Vang Cardenas",age:31,balance:1855.52},{id:6,name:"Puckett Hubbard",age:21,balance:1659.92}]}];const k=()=>`.sc-smoothly-table-demo-nested-no-cell-h{display:block}.sc-smoothly-table-demo-nested-no-cell-h>smoothly-display.sc-smoothly-table-demo-nested-no-cell{font-size:2em}.sc-smoothly-table-demo-nested-no-cell-h>*.sc-smoothly-table-demo-nested-no-cell{margin-bottom:2rem}.sc-smoothly-table-demo-nested-no-cell-h smoothly-table-expandable-row.sc-smoothly-table-demo-nested-no-cell{position:relative}`;const C=e(class e extends a{constructor(e){super();if(e!==false){this.__registerHost()}this.loadedRows=[]}render(){return n(l,{key:"7bc6c5fec454f34a051539d4332a2b95b1524d36"},n("smoothly-display",{key:"d7b4e33850e1ce970844be312a5da0ef8546da81",type:"text",value:"Nested"}),n("smoothly-table",{key:"c395d0d02151ec40836fb44bca00ecefabc82b00",color:"primary",columns:8},n("smoothly-table-head",{key:"b1d21b6350b49470ce3d3745f067cd0dfe15ca4b"},n("smoothly-table-row",{key:"a1744fa8dfd23a4e2b4edfd5be60821d07f9fb8e"},n("div",{key:"eeccc6056ab4d36eb45b654874ae1887e416eb68",class:"smoothly-table-cell"},"Id"),n("div",{key:"d071193d8db7bf78711e829675ff72a7c31d403c",class:"smoothly-table-cell"},"Registered"),n("div",{key:"870b213222d6dceaf338df0d852ad2288a1c366a",class:"smoothly-table-cell"},"Name"),n("div",{key:"4dfbacae8816bcfcfef7090d08ce91851bb02dbc",class:"smoothly-table-cell"},"Age"),n("div",{key:"df7eb4a02fccae0c6492193a867d36be269622b1",class:"smoothly-table-cell"},"Balance"),n("div",{key:"c0e7a4fb74dfaa3feb90c5365e9b5acf55ba94dc",class:"smoothly-table-cell"},"EyeColor"),n("div",{key:"8ee2746419ff0c382e6f64a7b9d4e3b4e608fcb0",class:"smoothly-table-cell"},"Gender"),n("div",{key:"6a1914277b7ab5442b12671b16afaca77038622a",class:"smoothly-table-cell"},"Company"))),n("smoothly-table-body",{key:"746212a9d93a1577dd5c990b4d14894ceb4f137e"},u.map(((e,a)=>n("smoothly-table-expandable-row",{onSmoothlyTableExpandableRowChange:e=>{if(e.detail){this.loadingIndex=a;setTimeout((()=>{this.loadingIndex=undefined;this.loadedRows=[...this.loadedRows,a]}),1500)}}},this.loadingIndex===a&&n("smoothly-spinner",{overlay:true,size:"small"}),this.loadedRows.includes(a)&&n("smoothly-table-demo-nested-no-cell-inner",{color:"secondary",data:e.friends,slot:"detail"}),n("div",{class:"smoothly-table-cell"},e.id),n("div",{class:"smoothly-table-cell"},e.registered),n("div",{class:"smoothly-table-cell"},e.name),n("div",{class:"smoothly-table-cell"},e.age),n("div",{class:"smoothly-table-cell"},e.balance),n("div",{class:"smoothly-table-cell"},e.eyeColor),n("div",{class:"smoothly-table-cell"},e.gender),n("div",{class:"smoothly-table-cell"},e.company))))),n("smoothly-table-foot",{key:"612581a9f4ea63707d1426c768ba64f7427987bc"},n("smoothly-table-row",{key:"a45f88cab126bd830d3919acc896dd99961bdce2"},n("div",{key:"19f5ea4fb2906eead38c263f5d0ac7e9139977f2",class:"smoothly-table-cell"},"Footer Cell"),n("div",{key:"039288cb2fa1912826a4bbdde3cba4fc953a99cd",class:"smoothly-table-cell"},"Footer Cell")))))}static get style(){return k()}},[2,"smoothly-table-demo-nested-no-cell",{loadingIndex:[32],loadedRows:[32]}]);function E(){if(typeof customElements==="undefined"){return}const e=["smoothly-table-demo-nested-no-cell","smoothly-display","smoothly-display-json","smoothly-display-json-object","smoothly-display-json-primitive","smoothly-display-json-record-key","smoothly-spinner","smoothly-table","smoothly-table-body","smoothly-table-demo-nested-no-cell-inner","smoothly-table-expandable-row","smoothly-table-foot","smoothly-table-head","smoothly-table-row"];e.forEach((e=>{switch(e){case"smoothly-table-demo-nested-no-cell":if(!customElements.get(o(e))){customElements.define(o(e),C)}break;case"smoothly-display":if(!customElements.get(o(e))){d()}break;case"smoothly-display-json":if(!customElements.get(o(e))){c()}break;case"smoothly-display-json-object":if(!customElements.get(o(e))){i()}break;case"smoothly-display-json-primitive":if(!customElements.get(o(e))){s()}break;case"smoothly-display-json-record-key":if(!customElements.get(o(e))){m()}break;case"smoothly-spinner":if(!customElements.get(o(e))){r()}break;case"smoothly-table":if(!customElements.get(o(e))){b()}break;case"smoothly-table-body":if(!customElements.get(o(e))){t()}break;case"smoothly-table-demo-nested-no-cell-inner":if(!customElements.get(o(e))){g()}break;case"smoothly-table-expandable-row":if(!customElements.get(o(e))){y()}break;case"smoothly-table-foot":if(!customElements.get(o(e))){f()}break;case"smoothly-table-head":if(!customElements.get(o(e))){h()}break;case"smoothly-table-row":if(!customElements.get(o(e))){p()}break}}))}E();export{C as S,E as d};
|
|
2
|
+
//# sourceMappingURL=p-B2_ScOnh.js.map
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{p as o,H as e,c as t,h as s,F as a,d as l,t as m}from"./p-BsZrGTcp.js";import{I as c,C as i,F as d}from"./p-Br0kWrBT.js";import"./p-BVKhAhsB.js";import{N as r}from"./p-Bq3C8g8G.js";import"./p-DoFURPl2.js";import{d as n}from"./p-mmAi00ak.js";import{d as y}from"./p-CN3iME9d.js";import{d as h}from"./p-DG2pfnCV.js";import{d as f}from"./p-uFR5K4vd.js";import{d as b}from"./p-DvZK__s-.js";import{d as p}from"./p-F8qX8ZuL.js";import{d as u}from"./p-BLDkKrD6.js";import{d as k}from"./p-DFSiKg4M.js";import{d as g}from"./p-BWF43Ktc.js";import{d as v}from"./p-e3dhSqSH.js";import{d as j}from"./p-WyNQ9SZM.js";import{d as $}from"./p-DTo2Itg9.js";import{d as E}from"./p-DtGUtK97.js";import{d as F}from"./p-MWZzvkuh.js";const x=()=>`.sc-smoothly-icon-demo-h{display:block;width:clamp(200px, 100%, 1200px);margin:auto}[hidden].sc-smoothly-icon-demo-h{display:none}.sc-smoothly-icon-demo-h>div.sc-smoothly-icon-demo{display:flex;flex-flow:row wrap}.sc-smoothly-icon-demo-h>div.sc-smoothly-icon-demo>smoothly-icon.sc-smoothly-icon-demo{padding:1rem;position:relative}.sc-smoothly-icon-demo-h>div.sc-smoothly-icon-demo>smoothly-icon.sc-smoothly-icon-demo:hover{scale:1.5}.sc-smoothly-icon-demo-h>div.sc-smoothly-icon-demo>smoothly-icon.sc-smoothly-icon-demo:hover::after{content:attr(data-name);position:absolute;white-space:nowrap;bottom:100%;background:rgb(var(--smoothly-default-contrast));color:rgb(var(--smoothly-default-color));padding:0.25rem 1rem;z-index:1;pointer-events:none}`;const C=o(class o extends e{constructor(o){super();if(o!==false){this.__registerHost()}this.notice=t(this,"notice");this.page=0;this.display={};this.props={}}render(){return s(l,{key:"8fbea784d2ed3e61eed53bbde4bf62acd7c00c33"},s("h2",{key:"e0ffda5c80cffb4a5819b69889980d43dc873c5c"},"Filter and Variants"),s("smoothly-form",{key:"9734546f38e2bc3aa1136ec2d60ca919f96b7c78",looks:"grid",onSmoothlyFormInput:o=>this.display=o.detail},s("smoothly-input",{key:"fb615bfa1bb32cde349e9461eb7c95db4561c5f1",name:"filter"},"Filter"),s("smoothly-input-select",{key:"63402507181804347642d78531856b217174951a",name:"variant"},s("span",{key:"d301e5204b7ce8bc4d3d31ab5c0ced12f1e3d893",slot:"label"},"Variant"),s("smoothly-item",{key:"fca79aa0f519c2c9823c0fc08dba8fc7d017c184",value:"outline"},"outline"),s("smoothly-item",{key:"78f2882358c54452f4ce56f976bed73fcade9b4f",value:"sharp"},"sharp"),s("smoothly-input-clear",{key:"1f3d317162149b9abd016a5f329d69ac05683646",slot:"end"}))),s("h2",{key:"3e894f0b4aa610c5a8267a183277e272f4855a9b"},"Props"),s("smoothly-form",{key:"694c7a9bd59edbea5823eb04156dc16e0bae9712",looks:"grid",onSmoothlyFormInput:o=>{this.props=o.detail;console.log("props",this.props)}},s("smoothly-input-select",{key:"0c3057a4f67a05e690ff3b063c930465016d8dd6",name:"color"},s("span",{key:"ae91aea176ba10c3da98a60c3063ec0f43167bff",slot:"label"},"Color"),i.values.map((o=>s("smoothly-item",{value:o},s("span",{style:{background:`rgb(var(--smoothly-${o}-color))`,"margin-right":"0.5rem",width:"2.5rem",height:"2.5rem"}}),s("span",null,o)))),s("smoothly-input-clear",{key:"22657bf293b433e392d57a06ca7ae2301c50676d",slot:"end"})),s("smoothly-input-select",{key:"a3cb883bd3ce072da544acb7c4a9d23de599d63f",name:"fill"},s("span",{key:"f2332f34ea7fd13b2722addacbb8ccb0a02a005e",slot:"label"},"Fill"),d.values.map((o=>s("smoothly-item",{value:o},o))),s("smoothly-input-clear",{key:"8518dae156b2233616eaaa468421a05c8f34025f",slot:"end"})),s("smoothly-input-select",{key:"0c684a06181b5e3aba3e9285c27e5dfc95b11fba",name:"customColor",menuHeight:"12items",ordered:true},s("span",{key:"bdf65faa5cc2d6ac46c2d8f57d12f6c980dbed4f",slot:"label"},"Custom Color"),i.values.flatMap((o=>s(a,null,["tint","color","shade","contrast"].map((e=>s("smoothly-item",{value:`--smoothly-${o}-${e}`},s("span",{style:{background:`rgb(var(--smoothly-${o}-${e}))`,"margin-right":"0.5rem",width:"2.5rem",height:"2.5rem"}}),s("span",null,`rgb(var(--smoothly-${o}-${e}))`)))))))),s("smoothly-input-select",{key:"38e1df15f3e5756a231ea13ae7e603ad729cbfd5",name:"customBackground",menuHeight:"12items",ordered:true},s("span",{key:"034a6c1102fcfc4f84802b652ae4773daedcc79a",slot:"label"},"Custom Background"),i.values.flatMap((o=>s(a,null,["tint","color","shade","contrast"].map((e=>s("smoothly-item",{value:`--smoothly-${o}-${e}`},s("span",{style:{background:`rgb(var(--smoothly-${o}-${e}))`,"margin-right":"0.5rem",width:"2.5rem",height:"2.5rem"}}),s("span",null,`rgb(var(--smoothly-${o}-${e}))`)))))))),s("smoothly-input-select",{key:"bf07ed563c77658d9c8627794932cf807d4d497c",name:"flip"},s("span",{key:"f117c483d18de238eb575e23c358ecd54eec249f",slot:"label"},"Flip"),s("smoothly-item",{key:"d8d6d1da3ede777093bfb6882c4a34a498b109d1",value:"x"},"x"),s("smoothly-item",{key:"fb202fe8bf15b614abacc3778e49f2a9da67abd8",value:"y"},"y"),s("smoothly-input-clear",{key:"c6067ab01e51359091f41c82f315aa36aad09ad4",slot:"end"})),s("smoothly-input-select",{key:"9ba36e95d18097099035b4a11182091e1e7e2287",name:"size"},s("span",{key:"571f9a1953f6b3f22d18f0dd591c9743d3818687",slot:"label"},"Size"),s("smoothly-item",{key:"c38f009d2fb5df14dc7c5dbde70538f8ae5b3e04",value:"tiny"},"tiny"),s("smoothly-item",{key:"800ae091d06fe8f3f9a728ad4ac63b67a7141200",value:"small"},"small"),s("smoothly-item",{key:"b24d245d0614bae7fc0c125824c7cf6ad3a11aa2",value:"medium"},"medium"),s("smoothly-item",{key:"8fdb8c8686a36898c63d6981ef44fc2348e6018e",value:"large"},"large"),s("smoothly-item",{key:"a1d2a033d0531ca802a3241f0f7bfe3b9ab6faf6",value:"xlarge"},"xlarge"),s("smoothly-input-clear",{key:"b72340bf5146665b425c1debb51dcf46bab08a72",slot:"end"})),s("smoothly-input-range",{key:"b39307e3bd9fb244dd56b4de51f392b3522cd39d",name:"rotate",step:1,min:-180,max:180,value:0},"Rotate",s("smoothly-input-clear",{key:"b73479f5999155b57a18c1adaf4dd2a06f98fab5",slot:"end"}))),s("h1",{key:"d9423d81faff0144d5d67a1a15af7395dec71c13"},"Icons"),s("div",{key:"26499ec293ff6772322d9853841d33ad1c0a1195",class:"icons"},[...c.Name.values.filter((o=>!this.display.filter||o.includes(this.display.filter))).map((o=>this.display.variant?`${o}-${this.display.variant}`:o)),...c.Logo.values.filter((o=>!this.display.filter||o.includes(this.display.filter)))].map((o=>s("smoothly-icon",{name:o,tooltip:o,"data-name":o,color:this.props.color,style:{fill:this.props["customColor"]?`rgb(var(${this.props["customColor"]}))`:"",color:this.props["customColor"]?`rgb(var(${this.props["customColor"]}))`:"",background:this.props["customBackground"]?`rgb(var(${this.props["customBackground"]}))`:""},fill:this.props.fill,flip:this.props.flip,size:this.props.size,rotate:this.props.rotate,onClick:()=>{navigator.clipboard.writeText(o);this.notice.emit(r.succeeded(`Copied "${o}"`))}})))))}static get style(){return x()}},[2,"smoothly-icon-demo",{display:[32],props:[32]}]);function w(){if(typeof customElements==="undefined"){return}const o=["smoothly-icon-demo","smoothly-button","smoothly-display","smoothly-display-json","smoothly-display-json-object","smoothly-display-json-primitive","smoothly-display-json-record-key","smoothly-form","smoothly-icon","smoothly-input","smoothly-input-clear","smoothly-input-range","smoothly-input-select","smoothly-item","smoothly-spinner"];o.forEach((o=>{switch(o){case"smoothly-icon-demo":if(!customElements.get(m(o))){customElements.define(m(o),C)}break;case"smoothly-button":if(!customElements.get(m(o))){n()}break;case"smoothly-display":if(!customElements.get(m(o))){y()}break;case"smoothly-display-json":if(!customElements.get(m(o))){h()}break;case"smoothly-display-json-object":if(!customElements.get(m(o))){f()}break;case"smoothly-display-json-primitive":if(!customElements.get(m(o))){b()}break;case"smoothly-display-json-record-key":if(!customElements.get(m(o))){p()}break;case"smoothly-form":if(!customElements.get(m(o))){u()}break;case"smoothly-icon":if(!customElements.get(m(o))){k()}break;case"smoothly-input":if(!customElements.get(m(o))){g()}break;case"smoothly-input-clear":if(!customElements.get(m(o))){v()}break;case"smoothly-input-range":if(!customElements.get(m(o))){j()}break;case"smoothly-input-select":if(!customElements.get(m(o))){$()}break;case"smoothly-item":if(!customElements.get(m(o))){E()}break;case"smoothly-spinner":if(!customElements.get(m(o))){F()}break}}))}w();export{C as S,w as d};
|
|
2
|
+
//# sourceMappingURL=p-B4ZWPf6K.js.map
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{p as e,H as t,h as s,d as o,t as m}from"./p-BsZrGTcp.js";import{d as c}from"./p-DFSiKg4M.js";import{d as n}from"./p-DTo2Itg9.js";import{d as l}from"./p-DtGUtK97.js";const a=()=>``;const f=e(class e extends t{constructor(e){super();if(e!==false){this.__registerHost()}this.element="smoothly-css"}render(){return s(o,{key:"2af98203042f4b72b535f47ff21ffaa4b5c0af6e"},s("smoothly-input-select",{key:"247e1590c3198949e097eeb0a29f0cd339df2f81",name:"theme",looks:"border",onSmoothlyInput:e=>{const t=document.querySelector(`#${this.element}`);if(t instanceof HTMLLinkElement&&typeof e.detail.theme=="string"){t.href=e.detail.theme}}},s("label",{key:"180f4a1ce2bd43d670e0dc111914ba07907c6176",slot:"label"},"Select theme"),s("slot",{key:"86681b9a7827f9329d8827fe01618ab39409570f"})))}static get style(){return a()}},[262,"smoothly-theme-picker",{element:[1]}]);function i(){if(typeof customElements==="undefined"){return}const e=["smoothly-theme-picker","smoothly-icon","smoothly-input-select","smoothly-item"];e.forEach((e=>{switch(e){case"smoothly-theme-picker":if(!customElements.get(m(e))){customElements.define(m(e),f)}break;case"smoothly-icon":if(!customElements.get(m(e))){c()}break;case"smoothly-input-select":if(!customElements.get(m(e))){n()}break;case"smoothly-item":if(!customElements.get(m(e))){l()}break}}))}i();export{f as S,i as d};
|
|
2
|
+
//# sourceMappingURL=p-B8xGVFme.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{p as o,H as t,c as s,h as e,d as h,t as n}from"./p-BsZrGTcp.js";import{E as c}from"./p-iQDU7l2c.js";import{I as l}from"./p-
|
|
2
|
-
//# sourceMappingURL=p-
|
|
1
|
+
import{p as o,H as t,c as s,h as e,d as h,t as n}from"./p-BsZrGTcp.js";import{E as c}from"./p-iQDU7l2c.js";import{I as l}from"./p-BLDkKrD6.js";import{d as i}from"./p-DFSiKg4M.js";const a=()=>`.sc-smoothly-input-checkbox-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-checkbox-h{border:rgb(var(--smoothly-input-border)) solid 1px}[looks="border"].sc-smoothly-input-checkbox-h:not([readonly]):not([disabled]):focus-within{outline:2px solid rgb(var(--smoothly-input-border-focus))}[looks="border"][readonly].sc-smoothly-input-checkbox-h{border:transparent solid 1px}[looks="line"].sc-smoothly-input-checkbox-h{border-bottom:rgb(var(--smoothly-input-border)) solid 1px;position:relative}[looks="line"][readonly].sc-smoothly-input-checkbox-h{border-bottom:transparent solid 1px}[looks="line"].sc-smoothly-input-checkbox-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-checkbox-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-checkbox-h{box-shadow:0px 0px 0px 1px rgba(var(--smoothly-input-border-readonly))}[looks="grid"].sc-smoothly-input-checkbox-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-checkbox-h{border:none}[looks="transparent"][readonly].sc-smoothly-input-checkbox-h,[looks="transparent"].sc-smoothly-input-checkbox-h:not(:focus-within){background-color:transparent}[looks="transparent"][readonly].sc-smoothly-input-checkbox-h>input.sc-smoothly-input-checkbox,[looks="transparent"].sc-smoothly-input-checkbox-h:not(:focus-within)>input.sc-smoothly-input-checkbox{background-color:transparent}[looks="transparent"].sc-smoothly-input-checkbox-h:not([readonly]):focus-within{outline:1px solid rgb(var(--smoothly-input-border))}[disabled].sc-smoothly-input-checkbox-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-checkbox-h.sc-smoothly-input-checkbox-s>[slot=label],.sc-smoothly-input-checkbox-h .sc-smoothly-input-checkbox-s>[slot=label],.sc-smoothly-input-checkbox-h .label.sc-smoothly-input-checkbox{position:absolute;top:.6rem;opacity:0.8;user-select:none;cursor:inherit;transform-origin:top left;transition:transform 100ms ease}[right].sc-smoothly-input-checkbox-h .label.sc-smoothly-input-checkbox{transform-origin:top right}.sc-smoothly-input-checkbox-h.floating-label.sc-smoothly-input-checkbox-s>[slot=label],.sc-smoothly-input-checkbox-h.floating-label .sc-smoothly-input-checkbox-s>[slot=label],.sc-smoothly-input-checkbox-h.has-value.sc-smoothly-input-checkbox-s>[slot=label],.sc-smoothly-input-checkbox-h.has-value .sc-smoothly-input-checkbox-s>[slot=label],.sc-smoothly-input-checkbox-h[placeholder].sc-smoothly-input-checkbox-s>[slot=label],.sc-smoothly-input-checkbox-h[placeholder] .sc-smoothly-input-checkbox-s>[slot=label],.sc-smoothly-input-checkbox-h[readonly].sc-smoothly-input-checkbox-s>[slot=label],.sc-smoothly-input-checkbox-h[readonly] .sc-smoothly-input-checkbox-s>[slot=label],.floating-label.sc-smoothly-input-checkbox-h .label.sc-smoothly-input-checkbox,.has-value.sc-smoothly-input-checkbox-h .label.sc-smoothly-input-checkbox,.has-text.sc-smoothly-input-checkbox-h .label.sc-smoothly-input-checkbox,[placeholder].sc-smoothly-input-checkbox-h .label.sc-smoothly-input-checkbox,[readonly].sc-smoothly-input-checkbox-h .label.sc-smoothly-input-checkbox,.sc-smoothly-input-checkbox-h:not([readonly]):focus-within .label.float-on-focus.sc-smoothly-input-checkbox{top:.2rem;transform:scale(0.8)}.sc-smoothly-input-checkbox-h:not([show-label]):not(.show-label) .label.sc-smoothly-input-checkbox{display:none}.sc-smoothly-input-checkbox-h smoothly-icon.smoothly-invalid.sc-smoothly-input-checkbox{fill:rgb(var(--smoothly-input-invalid-icon, var(--smoothly-danger-color)))}.sc-smoothly-input-checkbox-h{display:flex;align-items:center;flex-direction:row;position:relative;gap:.5rem;padding-inline:var(--input-padding-side);background-color:rgb(var(--smoothly-input-background));box-sizing:border-box;background-color:rgb(var(--smoothly-input-background));color:rgb(var(--smoothly-input-foreground))}.sc-smoothly-input-checkbox-h:has(>.smoothly-checkbox-end-slot:not(:empty)){padding-right:0}.sc-smoothly-input-checkbox-h>input.sc-smoothly-input-checkbox{-webkit-appearance:none;-moz-appearance:none;appearance:none;height:1.25rem;width:1.25rem;border-radius:0.25rem;border:1px solid rgb(var(--smoothly-input-foreground));color:rgb(var(--smoothly-input-foreground));display:block}[checked][looks=transparent].sc-smoothly-input-checkbox-h>input.sc-smoothly-input-checkbox,[checked].sc-smoothly-input-checkbox-h>input.sc-smoothly-input-checkbox{background-color:rgb(var(--smoothly-input-foreground))}.sc-smoothly-input-checkbox-h:not([readonly]):not([disabled])>input.sc-smoothly-input-checkbox,.sc-smoothly-input-checkbox-h:not([readonly]):not([disabled])>label.sc-smoothly-input-checkbox{cursor:pointer}.sc-smoothly-input-checkbox-h>label.sc-smoothly-input-checkbox:empty{display:none}[disabled].sc-smoothly-input-checkbox-h,[disabled].sc-smoothly-input-checkbox-h>*.sc-smoothly-input-checkbox{cursor:not-allowed}.sc-smoothly-input-checkbox-h>smoothly-icon.sc-smoothly-input-checkbox{position:absolute;z-index:1;pointer-events:none;--smoothly-color-contrast:var(--smoothly-input-background)}[looks="transparent"].sc-smoothly-input-checkbox-h{background-color:transparent}[looks="transparent"].sc-smoothly-input-checkbox-h:not([readonly]):focus-within{outline-color:transparent}.sc-smoothly-input-checkbox-h>.smoothly-checkbox-end-slot.sc-smoothly-input-checkbox{margin-left:auto}.sc-smoothly-input-checkbox-h>.smoothly-checkbox-end-slot.sc-smoothly-input-checkbox:empty{display:none}`;const r=o(class o extends t{constructor(o){super();if(o!==false){this.__registerHost()}this.smoothlyInputLooks=s(this,"smoothlyInputLooks");this.smoothlyInput=s(this,"smoothlyInput");this.smoothlyUserInput=s(this,"smoothlyUserInput");this.smoothlyInputLoad=s(this,"smoothlyInputLoad");this.smoothlyFormDisable=s(this,"smoothlyFormDisable");this.isDifferentFromInitial=false;this.observer=c.Observer.create(this);this.readonly=false;this.checked=false}componentWillLoad(){this.initialValue=this.checked;!this.readonly&&this.smoothlyFormDisable.emit((o=>this.readonly=o));this.smoothlyInputLooks.emit(((o,t)=>{var s;return this.looks=(s=this.looks)!==null&&s!==void 0?s:o,!this.color&&(this.color=t)}));this.smoothlyInputLoad.emit((o=>this.parent=o));this.observer.publish();this.id="id-"+Math.random().toString(36).substring(2,11)}async disconnectedCallback(){if(!this.element.isConnected){await this.unregister()}}async smoothlyInputLoadHandler(o){l.registerSubAction(this,o)}nameChange(o,t){l.formRename(this,t)}async register(){l.formAdd(this)}async unregister(){l.formRemove(this)}async getValue(){return this.value?this.value[`${!!this.checked}`]:this.checked}async clear(){!this.disabled&&!this.readonly&&(this.checked=false)}async listen(o){this.observer.subscribe(o)}async edit(o){this.readonly=!o}async reset(){this.checked=this.initialValue}async setInitialValue(){this.initialValue=this.checked;this.isDifferentFromInitial=false}async handleDisabledChange(){this.observer.publish()}async elementCheck(o,t){this.isDifferentFromInitial=!!this.initialValue!=!!this.checked;const s=!!this.checked!=!!t;if(s){this.smoothlyInput.emit({[this.name]:await this.getValue()});this.observer.publish()}}render(){return e(h,{key:"8d586e5be3e100b6f67e79694bdb7166b2aeddf8"},e("input",{key:"fe7b1db5fe641116040034355e04ca8b5ab22e97",type:"checkbox",id:this.id,checked:this.checked,disabled:this.disabled||this.readonly,onChange:async o=>{this.checked=o.target.checked;this.smoothlyUserInput.emit({name:this.name,value:await this.getValue()})}}),this.checked&&e("smoothly-icon",{key:"51b9efb24588c22d2a568227297787d023571e71",name:"checkmark-sharp",size:"tiny"}),e("label",{key:"6987b8f1b6e08a7f2c0b14c57e081939bc174fb4",htmlFor:this.id},e("slot",{key:"3f86fa549bbe9a68c83895a8bda1517b1554a926"})),e("span",{key:"75546ae8484e8aa1945fdec28fd4449880304ae9",class:"smoothly-checkbox-end-slot"},e("slot",{key:"1e4e1fcf24e300d18b3728bfbde4a1e178253bce",name:"end"})))}get element(){return this}static get watchers(){return{name:[{nameChange:0}],disabled:[{handleDisabledChange:0}],readonly:[{handleDisabledChange:0}],checked:[{elementCheck:0}]}}static get style(){return a()}},[262,"smoothly-input-checkbox",{name:[513],readonly:[1540],disabled:[516],checked:[1540],value:[16],looks:[1537],color:[1537],register:[64],unregister:[64],getValue:[64],clear:[64],listen:[64],edit:[64],reset:[64],setInitialValue:[64]},[[0,"smoothlyInputLoad","smoothlyInputLoadHandler"]],{name:[{nameChange:0}],disabled:[{handleDisabledChange:0}],readonly:[{handleDisabledChange:0}],checked:[{elementCheck:0}]}]);function b(){if(typeof customElements==="undefined"){return}const o=["smoothly-input-checkbox","smoothly-icon"];o.forEach((o=>{switch(o){case"smoothly-input-checkbox":if(!customElements.get(n(o))){customElements.define(n(o),r)}break;case"smoothly-icon":if(!customElements.get(n(o))){i()}break}}))}b();export{r as S,b as d};
|
|
2
|
+
//# sourceMappingURL=p-BAMxyPpe.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{p as t,H as
|
|
2
|
-
//# sourceMappingURL=p-
|
|
1
|
+
import{p as t,H as e,c as s,h as o,t as r}from"./p-BsZrGTcp.js";const i=()=>`.sc-smoothly-trigger-h{display:block;border-style:solid;border-width:1px;border-radius:3px}[hidden].sc-smoothly-trigger-h{display:none}[disabled].sc-smoothly-trigger-h{opacity:0.5}.sc-smoothly-trigger-h>button.sc-smoothly-trigger{border-color:transparent;background-color:transparent;padding:0.2em 0.3em;font-size:110%;font-weight:400}.sc-smoothly-trigger-h:not([disabled]):hover,.sc-smoothly-trigger-h:not([disabled]):focus,.sc-smoothly-trigger-h:not([disabled]):active{border-color:var(--smoothly-trigger-border)}[expand=full].sc-smoothly-trigger-h>button.sc-smoothly-trigger,[expand=block].sc-smoothly-trigger-h>button.sc-smoothly-trigger{width:100%}[expand=full].sc-smoothly-trigger-h{border-left:none;border-right:none}`;const l=t(class t extends e{constructor(t){super();if(t!==false){this.__registerHost()}this.trigger=s(this,"trigger");this.disabled=false;this.type="button"}onClick(t){this.trigger.emit({name:this.name,value:this.value});t.stopPropagation();t.preventDefault()}render(){let t;switch(this.type){case"link":t=this.disabled?o("slot",null):o("a",{onClick:t=>this.onClick(t)},o("slot",null));break;case"button":t=o("button",{key:"8649cae1ed46bc4c22aafc6dfb5fce04a993bb9d",disabled:this.disabled,name:this.name},o("slot",{key:"bdf0d1b51e56dc99e0cc9b3aae2a563de459b377"}));break}return t}static get style(){return i()}},[262,"smoothly-trigger",{color:[513],fill:[513],disabled:[516],type:[513],name:[1],value:[8]},[[0,"click","onClick"]]]);function c(){if(typeof customElements==="undefined"){return}const t=["smoothly-trigger"];t.forEach((t=>{switch(t){case"smoothly-trigger":if(!customElements.get(r(t))){customElements.define(r(t),l)}break}}))}c();export{l as S,c as d};
|
|
2
|
+
//# sourceMappingURL=p-BCX9Z_Id.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{p as e,H as a,c as d,h as c,t}from"./p-BsZrGTcp.js";import{i as o}from"./p-BVKhAhsB.js";import{C as s}from"./p-Br0kWrBT.js";import{N as i}from"./p-Bq3C8g8G.js";import"./p-DoFURPl2.js";import{d as y}from"./p-mmAi00ak.js";import{d as f}from"./p-CN3iME9d.js";import{d as b}from"./p-CY71xgKe.js";import{d as l}from"./p-DG2pfnCV.js";import{d as n}from"./p-uFR5K4vd.js";import{d as r}from"./p-DvZK__s-.js";import{d as m}from"./p-F8qX8ZuL.js";import{d as p}from"./p-DFSiKg4M.js";import{d as h}from"./p-BJA3pU4q.js";import{d as u}from"./p-DvOr53No.js";import{d as k}from"./p-B7WG3bLU.js";const v=e(class e extends a{constructor(e){super();if(e!==false){this.__registerHost()}this.notice=d(this,"notice")}noticeWarning(e){console.log("emit",e);this.notice.emit(e)}render(){return[c("main",{key:"570a8cf525b8d883f2c226fd9d1f24ef9d2a7bac"},c("fieldset",{key:"9daf4d2a5ff6c3924c09186d0b73c8dc11ef2354"},c("h2",{key:"01bf90a47c56197346494bbc1992edf5ab9d8b2e"},"Smoothly display"),c("dl",{key:"dd5fbdf6e596430cb0a18482b50a8d3ef46cc2d9"},c("dt",{key:"e97f6d69f565560e54956acc47c61e676db32b26"},"Duration"),c("dd",{key:"b3ec7065ba3cb6e1832cf22f329964bc3a983d09"},c("div",{key:"db46dbf07917dd784f0939803fcb97f80d4ab0a7"},c("div",{key:"eda3a232df465a291734a9e1e607f779727928a2"},c("smoothly-display",{key:"894097c909f8c1b0dd276696db72daadf3365aee",style:{display:"inline"},type:"duration",value:{hours:13,minutes:100}})," h"),c("div",{key:"0f258be9133609201671eb993a290b2be1ee8d2b"},c("smoothly-display",{key:"d98834b9c367bbb650e8e933be3ee20b93df8082",style:{display:"inline"},type:"duration",value:{hours:8}})," h"),c("div",{key:"2dc0241b935f3d45f812fe0175731954c8e0b983"},c("smoothly-display",{key:"cc4c171af5aa79cf5487a8a131430bacc5248c98",style:{display:"inline"},type:"duration",value:{minutes:3}})," h"),c("div",{key:"19ff8935bb3454d538b0312530d32ff63dfb3034"},c("smoothly-display",{key:"e3c7ba72956c3735bc646773cf30eb78c2c4e75b",style:{display:"inline"},type:"duration",value:{hours:-13,minutes:100}})," h"),c("div",{key:"40d13934f818da8df03dd4215b5176cdf0089c20"},c("smoothly-display",{key:"f03306bc6cbd65f3ee50ce6fb57c66b2af229a83",style:{display:"inline"},type:"duration",value:{hours:-8}})," h"),c("div",{key:"f0d127f6a00ed1c06eb36fdfa1b809354cb139ba"},c("smoothly-display",{key:"85ea4fa490947ec5bf9810fc5e5677550b507f7b",style:{display:"inline"},type:"duration",value:{}})," h"),c("div",{key:"f60948619c1fcbad63e4af03f282ff3366f1ba76"},c("smoothly-display",{key:"846841ac1b7cd206a2a95034db25a3059dccf890",style:{display:"inline"},type:"duration",value:{minutes:-3}})," h"))),c("dt",{key:"3db393fff9fd7740683746088e884d83ac51e1e8"},"text"),c("dd",{key:"2bd200acca8afd5cf72dd94294e4438e811ac411"},c("smoothly-display",{key:"aa88f3c9ed96edff41c91b4ed2206a04c90ed6f4",type:"text",value:"text"})),c("dt",{key:"81e183489b4fb749823c25b2a50ced9621aa432e"},"postal code"),c("dd",{key:"390dd9916fcf42cb15a48727082a27550e46814a"},c("smoothly-display",{key:"7e80d1d0b8746596448ca50c356e4afbe7d6f276",type:"postal-code",value:"752 31"})),c("dt",{key:"c0d0dc8205d93cb8479713bdae1208e2847e477a"},"password"),c("dd",{key:"0ea85f4699579f4b24f35f59775d7dec43978e5e"},c("smoothly-display",{key:"9779849ced3842513a5c7d5d37cd20bf1f01f244",type:"password",value:"password"})),c("dt",{key:"5143b3ae0e39eb416c344a98b45974c2ad480eef"},"email"),c("dd",{key:"8c25c7f73f1f4ec38cea3d7c520dc037df7b2224"},c("smoothly-display",{key:"53a354324dea186db81a5b59bf75e222db33e56d",type:"email",value:"test@example.com"})),c("dt",{key:"469bd6001f5ad150ea815bb6e89a29eda53b5b77"},"price"),c("dd",{key:"cde7a755ca3ff50a5b0cea8eb4a1dae6aa5b253b"},c("smoothly-display",{key:"bb68a44ffd892b48277aa20a95f5e863680b4fa3",type:"price",value:"13.37",currency:"SEK"})),c("dt",{key:"aff590f97d41ab80c38e7ecaba3e8023fd8ea734"},"price without decimals"),c("dd",{key:"39a40abdaae41f74fa5e52be77cbe1045965e1dc"},c("smoothly-display",{key:"1c653914e801725457fb55bb1b70ed56d991dabb",type:"price",value:200,currency:"SEK",toInteger:true})),c("dt",{key:"be366012d28535a04fa54216d29fa7835bdd789b"},"price with decimals if they are set, otherwise no decimal"),c("dd",{key:"f40b67c170fec282518c59179189b4f262a12804"},c("smoothly-display",{key:"52ba5c8026d562f40ac62cd14fe1cf67b5d0c641",type:"price",value:200.2,currency:"SEK",toInteger:true})),c("dt",{key:"cc1048ee5cb4ef42c4396009ccb085e7ce8c3eca"},"price with decimals"),c("dd",{key:"4814a19946eb610096f1aa76236971ca4e7d52f6"},c("smoothly-display",{key:"cb4cbda427c7a488bbba0c978d91a80683b9d8cb",type:"price",value:200.2,currency:"SEK"})),c("dt",{key:"deb381d3caec587043c0f58a58d06406f215f3e5"},"percent"),c("dd",{key:"afbe0bc5aa167605f50ec765a999432856019082"},c("smoothly-display",{key:"ffb1aee2a313b9f6ab71d42ed937619423095293",type:"percent",value:"42"})),c("dt",{key:"381bc0bb2857f9cc3b0e1b9e2cd439e35106f24b"},"phone"),c("dd",{key:"96c9e0fb69de5004ba8666939b932f42db444db6"},c("smoothly-display",{key:"a242f3011ff04f9f02791b40bc0c042d9b95e087",type:"phone",value:"0101881108"})),c("dt",{key:"ddf64889ff408a199d11b734ee2d41f15c619ace"},"card number"),c("dd",{key:"a6d6b94ab7b1c53b35622fb1e063b1293a637cf6"},c("smoothly-display",{key:"8dbdba91c26bd0f1b4f923f76589b08f5c032f65",type:"card-number",value:"4111111111111111"})),c("dt",{key:"ef7ef814a8cf29fec2f974efd32f040c3d725cc7"},"card expires"),c("dd",{key:"84321e803af55ddd5469ef3068fd2eb8d946420b"},c("smoothly-display",{key:"20651476830684d2a40e911a40fc00fe7f1ffe7e",type:"card-expires",value:"7/22"})),c("dt",{key:"7aef10fd17c205805fe7f5e790d12c2b89247a77"},"card csc"),c("dd",{key:"00eca296571bf49a6c338c13a939d6f3155d4a08"},c("smoothly-display",{key:"c18662e291199765f4278d54e595588bfc3d6f1e",type:"card-csc",value:"987"})),c("dt",{key:"e92d089a639a1e3357a6d39d2e499fff6bd7c2d1"},"date"),c("dd",{key:"f3cc2aabdec6942c8eadc2278b7a42adae09168d"},c("smoothly-display",{key:"fcd502f245a1c814faa093d82bb101182b3dafcd",type:"date",value:"2022-07-07"})),c("dt",{key:"81b8cbdb349df1bd1e1f84cc4bd006d7f2549c19"},"date time"),c("dd",{key:"eb5a64ea635751c62366292ce0ca23d125ad17ee"},c("smoothly-display",{key:"039d66c0457be7e82b999a9e4c0672deee8fbe90",type:"date-time",format:{year:"numeric",month:"short",day:"numeric",hour:"numeric",minute:"numeric",second:"numeric"},value:"2022-07-07T02:02:02Z"})),c("dd",{key:"456d8713e2e366e0efd48c4b0eca946a780bcd93"},c("smoothly-display",{key:"a6ea10ff87584dc5ce0146d6547b0948bb625e2e",type:"date-time",format:{year:"2-digit",month:"long",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit"},value:"2022-07-07T02:02:02Z"})),c("dd",{key:"0fc3da083c35e907cb4c48645ecc7a3e4a4455d7"},c("smoothly-display",{key:"49485eb182ac66fb8f9940d3719c4059c3897dc4",type:"date-time",format:{year:"numeric",month:"2-digit",day:"2-digit",hour:"numeric",minute:"numeric",second:"numeric"},value:"2022-07-07T12:22:24Z"})),c("dd",{key:"40a262a2fc34177b63b7e2969b3b59a5de602861"},c("smoothly-display",{key:"b7f00e769f842ed9ea6a630058cd01768ec2c0ac",type:"date-time",format:{year:"numeric",month:"numeric",day:"numeric",hour:"numeric",minute:"numeric",second:"numeric"},value:"2022-07-07T12:22:24Z"})),c("dd",{key:"4a3173f9713aaa4371ab13ebd8577cd7a7935c95"},c("smoothly-display",{key:"05904422b25f61dfc9f4325a4bb51b3d39a9aabf",type:"date-time",format:{year:"numeric",month:"short",day:"numeric"},value:"2022-07-07T00:00+02:00"})),c("dd",{key:"59783d4201fcf777c5e3635ad53934644eb68310"},c("smoothly-display",{key:"58450e26b3eeab44be1c083f7f1320976dadf783",type:"date-time",format:{year:"2-digit",month:"numeric",day:"numeric"},value:"2022-07-07T00:00+02:00"})),c("dd",{key:"0beada1376af2c6652c3dad47b08c1b1699b24bb"},c("smoothly-display",{key:"9d1b738dd535da8a7e07b959b4e581cf0f2b93d1",type:"date-time",format:{year:"2-digit",month:"numeric",day:"numeric",hour:"2-digit",minute:"2-digit",second:"2-digit",timeZone:"Europe/Stockholm"},value:"2022-07-07T12:15Z"})),c("dt",{key:"6d2aac61ed9fad093c2f19c2ec4d4de32b12e9a0"},"Display JSON"),c("dd",{key:"2215884fa898511c90acf6997f8e20aea4c0ea0d"},c("smoothly-display-demo-json",{key:"85cecf5eeaa416c9baca4a7876e348b54a09dbcb"})))),c("h2",{key:"56ae1be90a6bf9a152118dab9fec7d04b2a9b8e4"},"With labels"),c("dd",{key:"4689634be5c50bafa97e8a08baee4b85b0a621ec"},c("smoothly-display",{key:"14067ba1153408f0d11b02a76c5685b2c1f4a374",label:"Today",type:"date",value:o.Date.now()}),c("smoothly-display",{key:"4ba2105f9b3e139fac91bab03b9640766a18814a",label:"Total amount",type:"price",currency:"SEK",value:6789}),c("smoothly-display",{key:"138eb84408cb4efbc29f43ed1e3f9f71539dfac8",label:"Total amount",type:"price",currency:"GBP",value:678.9}),c("smoothly-display",{key:"2bddcb3e8ec54e29fc53a8ff4213cd157b34c8f1",label:"Logs",type:"json",value:[{type:"trace",message:"Hello"},{type:"error",message:"Oh no!"}]})),c("fieldset",{key:"830ecceb2f6904425d60f24ab37e046e4d147b04"},c("h2",{key:"dbab367e69309f7c29a3d025d585afbb2fa88965"},"Test of different kinds of notifier"),c("button",{key:"187872d0e82b1389961e3d41a0998a0814f5e086",onClick:()=>this.noticeWarning(i.warn("This is a test warning notice."))},"warning"),c("button",{key:"3f2ee3e8052834171ee2878dc3dcbd58d0fa6ed5",onClick:()=>this.noticeWarning(i.succeeded("This is a test success notice."))},"success"),c("button",{key:"678349d8e5f0ba8b237ef1f2cd7c2b2d04aafe14",onClick:()=>this.noticeWarning(i.failed("This is a test danger notice."))},"danger"),c("button",{key:"06792c0fd16258c1a306a902c77e3600bcae0872",onClick:()=>this.noticeWarning(i.execute("This is a test execute notice.",(()=>new Promise((e=>window.setTimeout((()=>e([true,"This went great"])),3e3))))))},"execute"),c("button",{key:"91ffa7d831eefbdce57ea2732ca884a3f30129ea",onClick:()=>this.noticeWarning(i.delay("This is a test delay notice.",(()=>new Promise((e=>window.setTimeout((()=>e([true,"This went great"])),3e3))))))},"delay")),c("fieldset",{key:"020e2fe53b4ee2f6b36a94863dbe2367d02e0b51"},c("h2",{key:"bb7cfda125e43c7f2afee6d7853318522456762e"},"Smoothly spinner"),c("div",{key:"a9f199a1fe6837f1546ee3aca45b74c399c23519",style:{width:"fit-content"}},"Large",c("smoothly-spinner",{key:"b3d78a677a1c3a62be4e448ac394096d62bc04e0",size:"large",style:{"--spinner-background":"200,255,200","--spinner-background-opacity":"0.2","--spinner-color":"0,130,0"}})),c("div",{key:"db5b5ce167113c8471537bc9604af1d31ef5f228",style:{width:"fit-content"}},"Medium",c("smoothly-spinner",{key:"2eff854f0c518cb3928615775367c6ca768f1a9e",size:"medium"})),c("div",{key:"b92410ef7ff77eb220554dce92ee9e5e0161b8d2",style:{width:"fit-content"}},"Small",c("smoothly-spinner",{key:"4836644ee23ce44de781fc59b185c363d2d10e5e",size:"small"})),c("div",{key:"a6b659783973f77a39e1643940fc97f77be1f7ad"},"Icon sized spinner on button",s.values.map((e=>c("smoothly-button",{size:"icon",color:e,shape:"rounded",onClick:()=>{this.downloadingSpinner=true;setTimeout((()=>this.downloadingSpinner=false),3e3)}},!this.downloadingSpinner&&c("smoothly-icon",{name:"download-outline"}),this.downloadingSpinner&&c("smoothly-spinner",{size:"icon",style:{"--spinner-background-opacity":"0"}}))))),c("h3",{key:"8161fb53d9dfa5aba8bc164adcaf9e3daeeaa627"},"Spinner with overlay"),c("div",{key:"8d4115c6ab8a24add137c06cde794937aba85b69",style:{position:"relative",height:"10em"}},"Large Overlay Spinner",c("smoothly-spinner",{key:"d04a2e77e759e5e094244922ec70fc150bac6858",overlay:true,size:"large",style:{"--spinner-background":"255,200,255","--spinner-background-opacity":"0.5","--spinner-color":"0,130,0"}})),c("div",{key:"e284851987d3e475d72dd68e5465ff2b54e38710",style:{position:"relative",height:"10em"}},"Medium Overlay Spinner",c("smoothly-spinner",{key:"29d593da93d2e11ac520650d64af1de6728e837e",overlay:true,color:"secondary",size:"medium"})),c("div",{key:"bcc6e156596f946964173cf9a100dce8f3f9adcb",style:{position:"relative",height:"10em"}},"Small Overlay Spinner",c("smoothly-spinner",{key:"57498aeaf7c8690958a1f42d80220bf6ba01a069",overlay:true,size:"small"}))),c("fieldset",{key:"ed65a407dde854768a1934add1d88a40d99f20c5"},c("h2",{key:"3f0a8eba2588ac878f02104f60fbc6072173c480"},"Smoothly summary"),c("smoothly-summary",{key:"b5538b3841957408ca25314d20789fc87db9f89c"},c("span",{key:"0a66c656b75981dd493f9288522c914c6aaf3177",slot:"summary"},"Some title"),c("smoothly-summary",{key:"d7a1064544e0f530ee18fc98e5dbac110f7aad79",slot:"content"},c("div",{key:"7dc9a5d35ddd789ef54fe021ecf9b784793a3074",slot:"summary"},"Some other title"),c("div",{key:"b0b0000431972ce6510eeb966d35f90f98baa372",slot:"content"},"A lot more content, yes please. A lot more content, yes please. A lot more content, yes please. A lot more content, yes please. A lot more content, yes please.A lot more content, yes please. A lot more content, yes please. A lot more content, yes please. A lot more content, yes please."))),c("smoothly-summary",{key:"7eac5c136d5ed3c09c53f676991fb957bdea50f2"},c("div",{key:"45239a377a7ae5b15baa3fefaca04f965bc3dd80",slot:"summary",style:{display:"flex",gap:"0.3rem"}},c("span",{key:"aed615a5e1dcfece04dc29d3381e706e89328025"},"Person"),c("smoothly-icon",{key:"bbdbee4093170b788015686e6ac31cb75adfb3c4",name:"person",color:"light",fill:"clear",size:"tiny"})),c("p",{key:"dcbe807176c6c8c0a642b8351487c63a2a31d1d1",slot:"content"},"Some person information.")),c("h2",{key:"b939b82ef761060a6de4190fd80e5aec1d6c6938"},"Label"),g.map((e=>c("smoothly-label",{hue:e.hue,description:e.description,shape:"rectangle"},e.name))),c("smoothly-label",{key:"9dd6878b3e540f24dee8fc99d6834a6c2ed85744",color:"primary",description:"Using colors",shape:"rectangle"},"Primary")))]}},[0,"smoothly-display-demo",{downloadingSpinner:[32]}]);const g=[{name:"2fa",hue:120,description:"User has two factor authentication enabled."},{name:"expired",hue:240,description:"User's password has expired."},{name:"inactive",hue:60,description:"User is inactive."}];function j(){if(typeof customElements==="undefined"){return}const e=["smoothly-display-demo","smoothly-button","smoothly-display","smoothly-display-demo-json","smoothly-display-json","smoothly-display-json-object","smoothly-display-json-primitive","smoothly-display-json-record-key","smoothly-icon","smoothly-label","smoothly-spinner","smoothly-summary"];e.forEach((e=>{switch(e){case"smoothly-display-demo":if(!customElements.get(t(e))){customElements.define(t(e),v)}break;case"smoothly-button":if(!customElements.get(t(e))){y()}break;case"smoothly-display":if(!customElements.get(t(e))){f()}break;case"smoothly-display-demo-json":if(!customElements.get(t(e))){b()}break;case"smoothly-display-json":if(!customElements.get(t(e))){l()}break;case"smoothly-display-json-object":if(!customElements.get(t(e))){n()}break;case"smoothly-display-json-primitive":if(!customElements.get(t(e))){r()}break;case"smoothly-display-json-record-key":if(!customElements.get(t(e))){m()}break;case"smoothly-icon":if(!customElements.get(t(e))){p()}break;case"smoothly-label":if(!customElements.get(t(e))){h()}break;case"smoothly-spinner":if(!customElements.get(t(e))){u()}break;case"smoothly-summary":if(!customElements.get(t(e))){k()}break}}))}j();export{v as S,j as d};
|
|
2
|
-
//# sourceMappingURL=p-
|
|
1
|
+
import{p as e,H as a,c as d,h as c,t}from"./p-BsZrGTcp.js";import{i as o}from"./p-BVKhAhsB.js";import{C as s}from"./p-Br0kWrBT.js";import{N as i}from"./p-Bq3C8g8G.js";import"./p-DoFURPl2.js";import{d as y}from"./p-mmAi00ak.js";import{d as f}from"./p-CN3iME9d.js";import{d as b}from"./p-CY71xgKe.js";import{d as l}from"./p-DG2pfnCV.js";import{d as n}from"./p-uFR5K4vd.js";import{d as r}from"./p-DvZK__s-.js";import{d as m}from"./p-F8qX8ZuL.js";import{d as p}from"./p-DFSiKg4M.js";import{d as h}from"./p-Dbwl2AV3.js";import{d as u}from"./p-MWZzvkuh.js";import{d as k}from"./p-DaxzTpsr.js";const v=e(class e extends a{constructor(e){super();if(e!==false){this.__registerHost()}this.notice=d(this,"notice")}noticeWarning(e){console.log("emit",e);this.notice.emit(e)}render(){return[c("main",{key:"570a8cf525b8d883f2c226fd9d1f24ef9d2a7bac"},c("fieldset",{key:"9daf4d2a5ff6c3924c09186d0b73c8dc11ef2354"},c("h2",{key:"01bf90a47c56197346494bbc1992edf5ab9d8b2e"},"Smoothly display"),c("dl",{key:"dd5fbdf6e596430cb0a18482b50a8d3ef46cc2d9"},c("dt",{key:"e97f6d69f565560e54956acc47c61e676db32b26"},"Duration"),c("dd",{key:"b3ec7065ba3cb6e1832cf22f329964bc3a983d09"},c("div",{key:"db46dbf07917dd784f0939803fcb97f80d4ab0a7"},c("div",{key:"eda3a232df465a291734a9e1e607f779727928a2"},c("smoothly-display",{key:"894097c909f8c1b0dd276696db72daadf3365aee",style:{display:"inline"},type:"duration",value:{hours:13,minutes:100}})," h"),c("div",{key:"0f258be9133609201671eb993a290b2be1ee8d2b"},c("smoothly-display",{key:"d98834b9c367bbb650e8e933be3ee20b93df8082",style:{display:"inline"},type:"duration",value:{hours:8}})," h"),c("div",{key:"2dc0241b935f3d45f812fe0175731954c8e0b983"},c("smoothly-display",{key:"cc4c171af5aa79cf5487a8a131430bacc5248c98",style:{display:"inline"},type:"duration",value:{minutes:3}})," h"),c("div",{key:"19ff8935bb3454d538b0312530d32ff63dfb3034"},c("smoothly-display",{key:"e3c7ba72956c3735bc646773cf30eb78c2c4e75b",style:{display:"inline"},type:"duration",value:{hours:-13,minutes:100}})," h"),c("div",{key:"40d13934f818da8df03dd4215b5176cdf0089c20"},c("smoothly-display",{key:"f03306bc6cbd65f3ee50ce6fb57c66b2af229a83",style:{display:"inline"},type:"duration",value:{hours:-8}})," h"),c("div",{key:"f0d127f6a00ed1c06eb36fdfa1b809354cb139ba"},c("smoothly-display",{key:"85ea4fa490947ec5bf9810fc5e5677550b507f7b",style:{display:"inline"},type:"duration",value:{}})," h"),c("div",{key:"f60948619c1fcbad63e4af03f282ff3366f1ba76"},c("smoothly-display",{key:"846841ac1b7cd206a2a95034db25a3059dccf890",style:{display:"inline"},type:"duration",value:{minutes:-3}})," h"))),c("dt",{key:"3db393fff9fd7740683746088e884d83ac51e1e8"},"text"),c("dd",{key:"2bd200acca8afd5cf72dd94294e4438e811ac411"},c("smoothly-display",{key:"aa88f3c9ed96edff41c91b4ed2206a04c90ed6f4",type:"text",value:"text"})),c("dt",{key:"81e183489b4fb749823c25b2a50ced9621aa432e"},"postal code"),c("dd",{key:"390dd9916fcf42cb15a48727082a27550e46814a"},c("smoothly-display",{key:"7e80d1d0b8746596448ca50c356e4afbe7d6f276",type:"postal-code",value:"752 31"})),c("dt",{key:"c0d0dc8205d93cb8479713bdae1208e2847e477a"},"password"),c("dd",{key:"0ea85f4699579f4b24f35f59775d7dec43978e5e"},c("smoothly-display",{key:"9779849ced3842513a5c7d5d37cd20bf1f01f244",type:"password",value:"password"})),c("dt",{key:"5143b3ae0e39eb416c344a98b45974c2ad480eef"},"email"),c("dd",{key:"8c25c7f73f1f4ec38cea3d7c520dc037df7b2224"},c("smoothly-display",{key:"53a354324dea186db81a5b59bf75e222db33e56d",type:"email",value:"test@example.com"})),c("dt",{key:"469bd6001f5ad150ea815bb6e89a29eda53b5b77"},"price"),c("dd",{key:"cde7a755ca3ff50a5b0cea8eb4a1dae6aa5b253b"},c("smoothly-display",{key:"bb68a44ffd892b48277aa20a95f5e863680b4fa3",type:"price",value:"13.37",currency:"SEK"})),c("dt",{key:"aff590f97d41ab80c38e7ecaba3e8023fd8ea734"},"price without decimals"),c("dd",{key:"39a40abdaae41f74fa5e52be77cbe1045965e1dc"},c("smoothly-display",{key:"1c653914e801725457fb55bb1b70ed56d991dabb",type:"price",value:200,currency:"SEK",toInteger:true})),c("dt",{key:"be366012d28535a04fa54216d29fa7835bdd789b"},"price with decimals if they are set, otherwise no decimal"),c("dd",{key:"f40b67c170fec282518c59179189b4f262a12804"},c("smoothly-display",{key:"52ba5c8026d562f40ac62cd14fe1cf67b5d0c641",type:"price",value:200.2,currency:"SEK",toInteger:true})),c("dt",{key:"cc1048ee5cb4ef42c4396009ccb085e7ce8c3eca"},"price with decimals"),c("dd",{key:"4814a19946eb610096f1aa76236971ca4e7d52f6"},c("smoothly-display",{key:"cb4cbda427c7a488bbba0c978d91a80683b9d8cb",type:"price",value:200.2,currency:"SEK"})),c("dt",{key:"deb381d3caec587043c0f58a58d06406f215f3e5"},"percent"),c("dd",{key:"afbe0bc5aa167605f50ec765a999432856019082"},c("smoothly-display",{key:"ffb1aee2a313b9f6ab71d42ed937619423095293",type:"percent",value:"42"})),c("dt",{key:"381bc0bb2857f9cc3b0e1b9e2cd439e35106f24b"},"phone"),c("dd",{key:"96c9e0fb69de5004ba8666939b932f42db444db6"},c("smoothly-display",{key:"a242f3011ff04f9f02791b40bc0c042d9b95e087",type:"phone",value:"0101881108"})),c("dt",{key:"ddf64889ff408a199d11b734ee2d41f15c619ace"},"card number"),c("dd",{key:"a6d6b94ab7b1c53b35622fb1e063b1293a637cf6"},c("smoothly-display",{key:"8dbdba91c26bd0f1b4f923f76589b08f5c032f65",type:"card-number",value:"4111111111111111"})),c("dt",{key:"ef7ef814a8cf29fec2f974efd32f040c3d725cc7"},"card expires"),c("dd",{key:"84321e803af55ddd5469ef3068fd2eb8d946420b"},c("smoothly-display",{key:"20651476830684d2a40e911a40fc00fe7f1ffe7e",type:"card-expires",value:"7/22"})),c("dt",{key:"7aef10fd17c205805fe7f5e790d12c2b89247a77"},"card csc"),c("dd",{key:"00eca296571bf49a6c338c13a939d6f3155d4a08"},c("smoothly-display",{key:"c18662e291199765f4278d54e595588bfc3d6f1e",type:"card-csc",value:"987"})),c("dt",{key:"e92d089a639a1e3357a6d39d2e499fff6bd7c2d1"},"date"),c("dd",{key:"f3cc2aabdec6942c8eadc2278b7a42adae09168d"},c("smoothly-display",{key:"fcd502f245a1c814faa093d82bb101182b3dafcd",type:"date",value:"2022-07-07"})),c("dt",{key:"81b8cbdb349df1bd1e1f84cc4bd006d7f2549c19"},"date time"),c("dd",{key:"eb5a64ea635751c62366292ce0ca23d125ad17ee"},c("smoothly-display",{key:"039d66c0457be7e82b999a9e4c0672deee8fbe90",type:"date-time",format:{year:"numeric",month:"short",day:"numeric",hour:"numeric",minute:"numeric",second:"numeric"},value:"2022-07-07T02:02:02Z"})),c("dd",{key:"456d8713e2e366e0efd48c4b0eca946a780bcd93"},c("smoothly-display",{key:"a6ea10ff87584dc5ce0146d6547b0948bb625e2e",type:"date-time",format:{year:"2-digit",month:"long",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit"},value:"2022-07-07T02:02:02Z"})),c("dd",{key:"0fc3da083c35e907cb4c48645ecc7a3e4a4455d7"},c("smoothly-display",{key:"49485eb182ac66fb8f9940d3719c4059c3897dc4",type:"date-time",format:{year:"numeric",month:"2-digit",day:"2-digit",hour:"numeric",minute:"numeric",second:"numeric"},value:"2022-07-07T12:22:24Z"})),c("dd",{key:"40a262a2fc34177b63b7e2969b3b59a5de602861"},c("smoothly-display",{key:"b7f00e769f842ed9ea6a630058cd01768ec2c0ac",type:"date-time",format:{year:"numeric",month:"numeric",day:"numeric",hour:"numeric",minute:"numeric",second:"numeric"},value:"2022-07-07T12:22:24Z"})),c("dd",{key:"4a3173f9713aaa4371ab13ebd8577cd7a7935c95"},c("smoothly-display",{key:"05904422b25f61dfc9f4325a4bb51b3d39a9aabf",type:"date-time",format:{year:"numeric",month:"short",day:"numeric"},value:"2022-07-07T00:00+02:00"})),c("dd",{key:"59783d4201fcf777c5e3635ad53934644eb68310"},c("smoothly-display",{key:"58450e26b3eeab44be1c083f7f1320976dadf783",type:"date-time",format:{year:"2-digit",month:"numeric",day:"numeric"},value:"2022-07-07T00:00+02:00"})),c("dd",{key:"0beada1376af2c6652c3dad47b08c1b1699b24bb"},c("smoothly-display",{key:"9d1b738dd535da8a7e07b959b4e581cf0f2b93d1",type:"date-time",format:{year:"2-digit",month:"numeric",day:"numeric",hour:"2-digit",minute:"2-digit",second:"2-digit",timeZone:"Europe/Stockholm"},value:"2022-07-07T12:15Z"})),c("dt",{key:"6d2aac61ed9fad093c2f19c2ec4d4de32b12e9a0"},"Display JSON"),c("dd",{key:"2215884fa898511c90acf6997f8e20aea4c0ea0d"},c("smoothly-display-demo-json",{key:"85cecf5eeaa416c9baca4a7876e348b54a09dbcb"})))),c("h2",{key:"56ae1be90a6bf9a152118dab9fec7d04b2a9b8e4"},"With labels"),c("dd",{key:"4689634be5c50bafa97e8a08baee4b85b0a621ec"},c("smoothly-display",{key:"14067ba1153408f0d11b02a76c5685b2c1f4a374",label:"Today",type:"date",value:o.Date.now()}),c("smoothly-display",{key:"4ba2105f9b3e139fac91bab03b9640766a18814a",label:"Total amount",type:"price",currency:"SEK",value:6789}),c("smoothly-display",{key:"138eb84408cb4efbc29f43ed1e3f9f71539dfac8",label:"Total amount",type:"price",currency:"GBP",value:678.9}),c("smoothly-display",{key:"2bddcb3e8ec54e29fc53a8ff4213cd157b34c8f1",label:"Logs",type:"json",value:[{type:"trace",message:"Hello"},{type:"error",message:"Oh no!"}]})),c("fieldset",{key:"830ecceb2f6904425d60f24ab37e046e4d147b04"},c("h2",{key:"dbab367e69309f7c29a3d025d585afbb2fa88965"},"Test of different kinds of notifier"),c("button",{key:"187872d0e82b1389961e3d41a0998a0814f5e086",onClick:()=>this.noticeWarning(i.warn("This is a test warning notice."))},"warning"),c("button",{key:"3f2ee3e8052834171ee2878dc3dcbd58d0fa6ed5",onClick:()=>this.noticeWarning(i.succeeded("This is a test success notice."))},"success"),c("button",{key:"678349d8e5f0ba8b237ef1f2cd7c2b2d04aafe14",onClick:()=>this.noticeWarning(i.failed("This is a test danger notice."))},"danger"),c("button",{key:"06792c0fd16258c1a306a902c77e3600bcae0872",onClick:()=>this.noticeWarning(i.execute("This is a test execute notice.",(()=>new Promise((e=>window.setTimeout((()=>e([true,"This went great"])),3e3))))))},"execute"),c("button",{key:"91ffa7d831eefbdce57ea2732ca884a3f30129ea",onClick:()=>this.noticeWarning(i.delay("This is a test delay notice.",(()=>new Promise((e=>window.setTimeout((()=>e([true,"This went great"])),3e3))))))},"delay")),c("fieldset",{key:"020e2fe53b4ee2f6b36a94863dbe2367d02e0b51"},c("h2",{key:"bb7cfda125e43c7f2afee6d7853318522456762e"},"Smoothly spinner"),c("div",{key:"a9f199a1fe6837f1546ee3aca45b74c399c23519",style:{width:"fit-content"}},"Large",c("smoothly-spinner",{key:"b3d78a677a1c3a62be4e448ac394096d62bc04e0",size:"large",style:{"--spinner-background":"200,255,200","--spinner-background-opacity":"0.2","--spinner-color":"0,130,0"}})),c("div",{key:"db5b5ce167113c8471537bc9604af1d31ef5f228",style:{width:"fit-content"}},"Medium",c("smoothly-spinner",{key:"2eff854f0c518cb3928615775367c6ca768f1a9e",size:"medium"})),c("div",{key:"b92410ef7ff77eb220554dce92ee9e5e0161b8d2",style:{width:"fit-content"}},"Small",c("smoothly-spinner",{key:"4836644ee23ce44de781fc59b185c363d2d10e5e",size:"small"})),c("div",{key:"a6b659783973f77a39e1643940fc97f77be1f7ad"},"Icon sized spinner on button",s.values.map((e=>c("smoothly-button",{size:"icon",color:e,shape:"rounded",onClick:()=>{this.downloadingSpinner=true;setTimeout((()=>this.downloadingSpinner=false),3e3)}},!this.downloadingSpinner&&c("smoothly-icon",{name:"download-outline"}),this.downloadingSpinner&&c("smoothly-spinner",{size:"icon",style:{"--spinner-background-opacity":"0"}}))))),c("h3",{key:"8161fb53d9dfa5aba8bc164adcaf9e3daeeaa627"},"Spinner with overlay"),c("div",{key:"8d4115c6ab8a24add137c06cde794937aba85b69",style:{position:"relative",height:"10em"}},"Large Overlay Spinner",c("smoothly-spinner",{key:"d04a2e77e759e5e094244922ec70fc150bac6858",overlay:true,size:"large",style:{"--spinner-background":"255,200,255","--spinner-background-opacity":"0.5","--spinner-color":"0,130,0"}})),c("div",{key:"e284851987d3e475d72dd68e5465ff2b54e38710",style:{position:"relative",height:"10em"}},"Medium Overlay Spinner",c("smoothly-spinner",{key:"29d593da93d2e11ac520650d64af1de6728e837e",overlay:true,color:"secondary",size:"medium"})),c("div",{key:"bcc6e156596f946964173cf9a100dce8f3f9adcb",style:{position:"relative",height:"10em"}},"Small Overlay Spinner",c("smoothly-spinner",{key:"57498aeaf7c8690958a1f42d80220bf6ba01a069",overlay:true,size:"small"}))),c("fieldset",{key:"ed65a407dde854768a1934add1d88a40d99f20c5"},c("h2",{key:"3f0a8eba2588ac878f02104f60fbc6072173c480"},"Smoothly summary"),c("smoothly-summary",{key:"b5538b3841957408ca25314d20789fc87db9f89c"},c("span",{key:"0a66c656b75981dd493f9288522c914c6aaf3177",slot:"summary"},"Some title"),c("smoothly-summary",{key:"d7a1064544e0f530ee18fc98e5dbac110f7aad79",slot:"content"},c("div",{key:"7dc9a5d35ddd789ef54fe021ecf9b784793a3074",slot:"summary"},"Some other title"),c("div",{key:"b0b0000431972ce6510eeb966d35f90f98baa372",slot:"content"},"A lot more content, yes please. A lot more content, yes please. A lot more content, yes please. A lot more content, yes please. A lot more content, yes please.A lot more content, yes please. A lot more content, yes please. A lot more content, yes please. A lot more content, yes please."))),c("smoothly-summary",{key:"7eac5c136d5ed3c09c53f676991fb957bdea50f2"},c("div",{key:"45239a377a7ae5b15baa3fefaca04f965bc3dd80",slot:"summary",style:{display:"flex",gap:"0.3rem"}},c("span",{key:"aed615a5e1dcfece04dc29d3381e706e89328025"},"Person"),c("smoothly-icon",{key:"bbdbee4093170b788015686e6ac31cb75adfb3c4",name:"person",color:"light",fill:"clear",size:"tiny"})),c("p",{key:"dcbe807176c6c8c0a642b8351487c63a2a31d1d1",slot:"content"},"Some person information.")),c("h2",{key:"b939b82ef761060a6de4190fd80e5aec1d6c6938"},"Label"),g.map((e=>c("smoothly-label",{hue:e.hue,description:e.description,shape:"rectangle"},e.name))),c("smoothly-label",{key:"9dd6878b3e540f24dee8fc99d6834a6c2ed85744",color:"primary",description:"Using colors",shape:"rectangle"},"Primary")))]}},[0,"smoothly-display-demo",{downloadingSpinner:[32]}]);const g=[{name:"2fa",hue:120,description:"User has two factor authentication enabled."},{name:"expired",hue:240,description:"User's password has expired."},{name:"inactive",hue:60,description:"User is inactive."}];function j(){if(typeof customElements==="undefined"){return}const e=["smoothly-display-demo","smoothly-button","smoothly-display","smoothly-display-demo-json","smoothly-display-json","smoothly-display-json-object","smoothly-display-json-primitive","smoothly-display-json-record-key","smoothly-icon","smoothly-label","smoothly-spinner","smoothly-summary"];e.forEach((e=>{switch(e){case"smoothly-display-demo":if(!customElements.get(t(e))){customElements.define(t(e),v)}break;case"smoothly-button":if(!customElements.get(t(e))){y()}break;case"smoothly-display":if(!customElements.get(t(e))){f()}break;case"smoothly-display-demo-json":if(!customElements.get(t(e))){b()}break;case"smoothly-display-json":if(!customElements.get(t(e))){l()}break;case"smoothly-display-json-object":if(!customElements.get(t(e))){n()}break;case"smoothly-display-json-primitive":if(!customElements.get(t(e))){r()}break;case"smoothly-display-json-record-key":if(!customElements.get(t(e))){m()}break;case"smoothly-icon":if(!customElements.get(t(e))){p()}break;case"smoothly-label":if(!customElements.get(t(e))){h()}break;case"smoothly-spinner":if(!customElements.get(t(e))){u()}break;case"smoothly-summary":if(!customElements.get(t(e))){k()}break}}))}j();export{v as S,j as d};
|
|
2
|
+
//# sourceMappingURL=p-BKKtlLzJ.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{p as t,H as e,c as n,h as o,d as i,t as r}from"./p-BsZrGTcp.js";import{i as s,C as a,D as c}from"./p-Br0kWrBT.js";import"./p-BVKhAhsB.js";import{N as f}from"./p-Bq3C8g8G.js";import"./p-DoFURPl2.js";import{E as d}from"./p-iQDU7l2c.js";import{s as u,o as l,b as h}from"./p-Dr7iZPxA.js";import{d as p}from"./p-DvOr53No.js";var y;(function(t){function e(t){return typeof t=="string"&&(t=="GET"||t=="POST"||t=="DELETE"||t=="HEAD"||t=="PATCH"||t=="PUT"||t=="OPTIONS"||t=="TRACE"||t=="CONNECT")}t.is=e;function n(t){t=t?.toUpperCase();return e(t)?t:undefined}t.parse=n})(y||(y={}));const m={};function w(t,...e){e.forEach((e=>m[e]=t))}function b(t){const e=t.headers.get("Content-Type");const n=e&&e.split(";");const o=m[n?.[0]??"plain/text"];return o?o(t):t.text()}const g={};function C(t,...e){e.forEach((e=>g[e]=t))}function v(t,e){const n=g[e?.split(";")[0]??""];return n?n(t,e):t}function A(t){return t.toLowerCase().replace(/-[a-z]/g,(t=>t.substring(1).toUpperCase()))}function x(t){const e=t.replace(/[A-Z]/g,(t=>"-"+t));return e[0].toUpperCase()+e.substring(1)}const j=[["aIM","A-IM",1],["accept","Accept",2],["acceptCharset","Accept-Charset",2],["acceptDatetime","Accept-Datetime",1],["acceptEncoding","Accept-Encoding",2],["acceptLanguage","Accept-Language",2],["accessControlRequestMethod","Access-Control-Request-Method",1],["accessControlRequestHeaders","Access-Control-Request-Headers",1],["authorization","Authorization",1],["cacheControl","Cache-Control",1],["cfConnectionIp","CF-Connecting-IP",1],["cfIpCountry","CF-IPCountry",1],["connection","Connection",1],["contentLength","Content-Length",1],["contentMD5","Content-MD5",1],["contentType","Content-Type",1],["cookie","Cookie",1],["date","Date",1],["expect","Expect",1],["forwarded","Forwarded",1],["from","From",1],["host","Host",1],["http2Settings","HTTP2-Settings",1],["ifMatch","If-Match",2],["ifModifiedSince","If-Modified-Since",1],["ifNoneMatch","If-None-Match",2],["ifRange","If-Range",1],["ifUnmodifiedSince","If-Unmodified-Since",1],["maxForwards","Max-Forwards",1],["origin","Origin",1],["pragma","Pragma",1],["proxyAuthorization","Proxy-Authorization",1],["range","Range",1],["referer","Referer",1],["te","TE",2],["trailer","Trailer",1],["transferEncoding","Transfer-Encoding",1],["userAgent","User-Agent",1],["upgrade","Upgrade",2],["via","Via",2],["warning","Warning",1],["upgradeInsecureRequests","Upgrade-Insecure-Requests",1],["xRequestedWith","X-Requested-With",1],["dnt","DNT",1],["xForwardedFor","X-Forwarded-For",1],["xForwardedHost","X-Forwarded-Host",1],["xForwardedProto","X-Forwarded-Proto",1],["xMsContinuation","X-Ms-Continuation",1],["frontEndHttps","Front-End-Https",1],["xHttpMethodOverride","X-Http-Method-Override",1],["xAttDeviceId","X-ATT-DeviceId",1],["xWapProfile","X-Wap-Profile",1],["proxyConnection","Proxy-Connection",1],["xCsrfToken","X-Csrf-Token",1],["xCorrelationID","X-Correlation-ID",1],["xModNonce","x-mod-nonce",1],["xModRetry","x-mod-retry",1],["saveData","Save-Data",1],["xAuthToken","X-Auth-Token",1],["xTrackingId","x-tracking-id",1]];var T;(function(t){function e(t){function e(t){return t==undefined||typeof t=="string"}function n(t){return t==undefined||Array.isArray(t)&&t.every((t=>typeof t=="string"))}return typeof t=="object"&&j.every((o=>(o[2]==1?e:n)(t[o[0]])))}t.is=e;function n(t){return Object.fromEntries(Object.entries(t).map((([t,e])=>{const n=j.find((([e,n,o])=>e==t));return[n?n[1]:x(t),Array.isArray(e)?e.join(", "):e]})))}t.to=n;function o(t){return Object.fromEntries((Array.isArray(t)?t.map((([t,...e])=>[t,e.join(", ")])):r(t)?[...t]:Object.entries(t)).map((([t,e])=>{const n=j.find((([e,n,o])=>t.toLowerCase()==n.toLowerCase()));return n?[n[0],n[2]==1||typeof e!="string"?e:e.split(",").map((t=>t.trim()))]:[A(t),e]})))}t.from=o;function i(t){return Object.entries(t).map((([t,e])=>t+": "+e)).join("\n")}t.toString=i;function r(t){return typeof t.entries=="function"}})(T||(T={}));var k;(function(t){function e(t){return typeof t=="object"&&Object.keys(t).every((t=>["method","url","parameter","search","remote","header","body"].some((e=>e==t))))&&y.is(t.method)&&t.url instanceof URL&&typeof t.parameter=="object"&&Object.entries(t.parameter).every((([t,e])=>typeof t=="string"&&typeof e=="string"))&&typeof t.search=="object"&&Object.entries(t.search).every((([t,e])=>typeof t=="string"&&typeof e=="string"))&&(t.remote==undefined||typeof t.remote=="string")&&(t.header==undefined||T.is(t.header))}t.is=e;async function n(t){const n=e(t)?t:i(t);const o=n.header.contentType?.startsWith("multipart/form-data")?(({contentType:t,...e})=>e)(n.header):n.header;return{url:n.url.toString(),method:n.method,headers:T.to(o),body:["GET","HEAD"].some((t=>t==n.method))?undefined:await v(await n.body,n.header.contentType)}}t.to=n;function o(t){const e=new URL(t.url);return{method:y.parse(t.method)??"GET",url:e,header:T.from(t.headers),parameter:{},search:Object.fromEntries(e.searchParams.entries()),body:b(t),..."cf"in t&&{cloudflare:t.cf}}}t.from=o;function i(t){let e;if(typeof t=="string")e=i({url:t});else{const n=typeof t.url=="string"?new URL(t.url):t.url;e={method:y.parse(t.method)??"GET",url:n,parameter:t.parameter??{},search:{...t.search,...Object.fromEntries(n.searchParams.entries())},remote:t.remote,header:t.header??{},body:t.body}}return e}t.create=i;(function(t){t.is=T.is;t.from=T.from;t.to=T.to})(t.Header||(t.Header={}))})(k||(k={}));const O=typeof Response!="undefined"?Response:globalThis.Response;var E=undefined&&undefined.__classPrivateFieldGet||function(t,e,n,o){if(n==="a"&&!o)throw new TypeError("Private accessor was defined without a getter");if(typeof e==="function"?t!==e||!o:!e.has(t))throw new TypeError("Cannot read private member from an object whose class did not declare it");return n==="m"?o:n==="a"?o.call(t):o?o.value:e.get(t)};var P=undefined&&undefined.__classPrivateFieldSet||function(t,e,n,o,i){if(o==="m")throw new TypeError("Private method is not writable");if(o==="a"&&!i)throw new TypeError("Private accessor was defined without a setter");if(typeof e==="function"?t!==e||!i:!e.has(t))throw new TypeError("Cannot write private member to an object whose class did not declare it");return o==="a"?i.call(t,n):i?i.value=n:e.set(t,n),n};var I,S,M,D,R,F,H,L,W;let X=class t{get state(){return E(this,D,"f")?"closed":"opened"}set onMessage(t){if(E(this,S,"f").length&&t){E(this,S,"f").forEach(t);P(this,S,[],"f")}P(this,F,t,"f")}set onClose(t){if(this.state=="closed"&&t)t();P(this,H,t,"f")}set onOpen(t){if(this.state=="opened"&&t)t();P(this,W,t,"f")}constructor(t,e){I.add(this);S.set(this,[]);M.set(this,[]);D.set(this,false);R.set(this,void 0);F.set(this,void 0);H.set(this,void 0);W.set(this,void 0);P(this,R,t,"f");if(e)P(this,M,undefined,"f");E(this,R,"f").addEventListener("open",(()=>{if(E(this,W,"f"))E(this,W,"f").call(this);E(this,I,"m",L).bind(this)}));E(this,R,"f").addEventListener("message",(async t=>{const e=this.processReceived(t.data);E(this,I,"m",L).call(this);if(E(this,F,"f"))E(this,F,"f").call(this,e);else E(this,S,"f")?.push(e)}));E(this,R,"f").addEventListener("close",(()=>{if(E(this,H,"f"))E(this,H,"f").call(this);P(this,D,true,"f")}))}send(t){if(E(this,M,"f"))E(this,M,"f").push(this.processSend(t));else E(this,R,"f").send(this.processSend(t))}};S=new WeakMap,M=new WeakMap,D=new WeakMap,R=new WeakMap,F=new WeakMap,H=new WeakMap,W=new WeakMap,I=new WeakSet,L=function t(){E(this,M,"f")?.forEach((t=>E(this,R,"f").send(t)));P(this,M,undefined,"f")};let U=class t extends X{processReceived(t){return t?.arrayBuffer?t.arrayBuffer():typeof t=="string"?(new TextEncoder).encode(t).buffer:t}processSend(t){return t}};class B extends X{processReceived(t){return JSON.parse(t?.arrayBuffer?(new TextDecoder).decode(t.arrayBuffer()):typeof t!="string"?(new TextDecoder).decode(t):t)}processSend(t){return JSON.stringify(t)}}class N extends X{processReceived(t){return t?.arrayBuffer?(new TextDecoder).decode(t.arrayBuffer()):typeof t!="string"?(new TextDecoder).decode(t):t}processSend(t){return t}}var $=undefined&&undefined.__classPrivateFieldGet||function(t,e,n,o){if(n==="a"&&!o)throw new TypeError("Private accessor was defined without a getter");if(typeof e==="function"?t!==e||!o:!e.has(t))throw new TypeError("Cannot read private member from an object whose class did not declare it");return n==="m"?o:n==="a"?o.call(t):o?o.value:e.get(t)};var q=undefined&&undefined.__classPrivateFieldSet||function(t,e,n,o,i){if(o==="m")throw new TypeError("Private method is not writable");if(o==="a"&&!i)throw new TypeError("Private accessor was defined without a setter");if(typeof e==="function"?t!==e||!i:!e.has(t))throw new TypeError("Cannot write private member to an object whose class did not declare it");return o==="a"?i.call(t,n):i?i.value=n:e.set(t,n),n};var V,z,G;class K{get json(){if(!$(this,V,"f"))q(this,V,new B(this.backend,this.isOpen),"f");return $(this,V,"f")}get string(){if(!$(this,z,"f"))q(this,z,new N(this.backend,this.isOpen),"f");return $(this,z,"f")}get arrayBuffer(){if(!$(this,G,"f"))q(this,G,new U(this.backend,this.isOpen),"f");return $(this,G,"f")}constructor(t,e){this.backend=t;this.isOpen=e;V.set(this,void 0);z.set(this,void 0);G.set(this,void 0)}createResponse(t={}){return{status:101,socket:this,header:t}}close(t,e){this.backend.close(t,e)}}V=new WeakMap,z=new WeakMap,G=new WeakMap;var J;(function(t){t.Factory=K})(J||(J={}));const Z=[["accessControlAllowOrigin","Access-Control-Allow-Origin",1],["accessControlAllowCredentials","Access-Control-Allow-Credentials",1],["accessControlExposeHeaders","Access-Control-Expose-Headers",2],["accessControlMaxAge","Access-Control-Max-Age",1],["accessControlAllowMethods","Access-Control-Allow-Methods",2],["accessControlAllowHeaders","Access-Control-Allow-Headers",2],["acceptPatch","Accept-Patch",1],["acceptRanges","Accept-Ranges",1],["age","Age",1],["allow","Allow",2],["altSvc","Alt-Svc",1],["cacheControl","Cache-Control",1],["cfConnectionIp","CF-Connecting-IP",1],["cfIpCountry","CF-IPCountry",1],["connection","Connection",1],["contentDisposition","Content-Disposition",1],["contentEncoding","Content-Encoding",1],["contentLanguage","Content-Language",2],["contentLength","Content-Length",1],["contentLocation","Content-Location",1],["contentMD5","Content-MD5",1],["contentRange","Content-Range",1],["contentSecurityPolicy","Content-Security-Policy",1],["contentType","Content-Type",1],["date","Date",1],["deltaBase","Delta-Base",1],["eTag","ETag",1],["expires","Expires",1],["iM","IM",1],["lastModified","Last-Modified",1],["link","Link",1],["location","Location",1],["p3P","P3P",1],["pragma","Pragma",1],["proxyAuthenticate","Proxy-Authenticate",1],["publicKeyPins","Public-Key-Pins",1],["refresh","Refresh",1],["retryAfter","Retry-After",1],["server","Server",1],["setCookie","Set-Cookie",1],["status","Status",1],["strictTransportSecurity","Strict-Transport-Security",1],["timingAllowOrigin","Timing-Allow-Origin",2],["trailer","Trailer",1],["transferEncoding","Transfer-Encoding",1],["tk","Tk",1],["upgrade","Upgrade",2],["vary","Vary",2],["via","Via",1],["warning","Warning",1],["wwwAuthenticate","WWW-Authenticate",1],["xContentDuration","X-Content-Duration",1],["xContentSecurityPolicy","X-Content-Security-Policy",1],["xContentTypeOptions","X-Content-Type-Options",1],["xCorrelationId","X-Correlation-ID",1],["xFrameOptions","X-Frame-Options",1],["xMsContinuation","X-Ms-Continuation",1],["xPoweredBy","X-Powered-By",1],["xRequestId","X-Request-ID",1],["xUACompatible","X-UA-Compatible",1],["xWebkitCsp","X-WebKit-CSP",1],["xXssProtection","X-XSS-Protection",1]];var _;(function(t){function e(t){function e(t){return t==undefined||typeof t=="string"}function n(t){return t==undefined||Array.isArray(t)&&t.every((t=>typeof t=="string"))}return typeof t=="object"&&Z.every((o=>(o[2]==1?e:n)(t[o[0]])))}t.is=e;function n(t){return Object.fromEntries(Object.entries(t).map((([t,e])=>{const n=Z.find((([e,...n])=>e==t));return[n?n[1]:x(t),Array.isArray(e)?e.join(", "):e]})))}t.to=n;function o(t){return Object.fromEntries((Array.isArray(t)?t.map((([t,...e])=>[t,e.join(", ")])):r(t)?s(t):Object.entries(t)).map((([t,e])=>{const n=Z.find((([e,n,o])=>t.toLowerCase()==n.toLowerCase()));return n?[n[0],n[2]==1||typeof e!="string"?e:e.split(",").map((t=>t.trim()))]:[A(t),e]})))}t.from=o;function i(t){return Object.entries(t).map((([t,e])=>t+": "+e)).join("\n")}t.toString=i;function r(t){return typeof t.forEach=="function"}function s(t){const e=[];t.forEach(((t,n)=>e.push([n,t])));return e}})(_||(_={}));var Q;(function(t){function e(t){return typeof t=="object"&&Object.keys(t).every((t=>["status","header","body","socket"].some((e=>e==t))))&&(t.status==undefined||typeof t.status=="number")&&(t.header==undefined||_.is(t.header))&&(t.socket==undefined||typeof t.socket.close=="function"&&typeof t.socket.json?.send=="function"&&typeof t.socket.string?.send=="function"&&typeof t.socket.arrayBuffer?.send=="function")&&(t.status!=undefined||t.header!=undefined||t.body!=undefined)}t.is=e})(Q||(Q={}));var Y;(function(t){function e(t){return typeof t=="object"&&Object.keys(t).every((t=>["status","header","body","socket"].some((e=>e==t))))&&(t.status==undefined||typeof t.status=="number")&&(t.header==undefined||_.is(t.header))&&(t.socket==undefined||t.socket instanceof WebSocket)}t.is=e;async function n(t){return new O(await v(await t.body,t.header.contentType),{status:t.status,headers:new Headers(_.to(!t.header.contentType?.startsWith("multipart/formdata")?t.header:(({contentType:t,...e})=>e)(t.header))),...t.socket&&{webSocket:{...t.socket.createResponse().socket}?.backend}})}t.to=n;function o(t){return{status:t.status,header:_.from(t.headers),body:t.status==101?undefined:b(t),...t.webSocket&&{socket:new J.Factory(t.webSocket)}}}t.from=o;function i(t,e){const n=Q.is(t)?{status:200,header:{},body:undefined,...t.socket&&{socket:t.socket},...t}:typeof t?.createResponse=="function"&&(e==undefined||_.is(e))?t.createResponse(e):{status:typeof t=="object"&&typeof t.status=="number"&&t.status||200,header:typeof t=="object"?{...t.header,...(t.status==301||t.status==302)&&t.location?{location:t.location}:{}}:{},body:!(typeof t=="object"&&!Array.isArray(t))||t instanceof ArrayBuffer||ArrayBuffer.isView(t)||t instanceof FormData?t:(({header:t,...e})=>e)(t),...t.webSocket&&{socket:new J.Factory(t.webSocket)}||t.socket&&{socket:t.socket}};if(!n.header.contentType)switch(typeof n.body){case"undefined":break;default:case"object":n.header.contentType=typeof e=="string"?e:e?.contentType?e.contentType:n.body instanceof FormData?"multipart/formdata":n.body instanceof ArrayBuffer||ArrayBuffer.isView(n.body)?r(n.body)?"application/pdf":"application/octet-stream":"application/json; charset=utf-8";break;case"string":n.header.contentType=n.body.slice(0,9).toLowerCase()=="<!doctype"?"text/html; charset=utf-8":/^[A-Za-z0-9-_=]+\.[A-Za-z0-9-_=]+\.?[A-Za-z0-9-_.+/=]*$/.test(n.body)?"application/jwt; charset=utf-8":/^<\?xml version=(.|\n)*\?>(.|\n)*<svg(.|\n)*<\/svg>$/.test(n.body)?"image/svg+xml":"text/plain; charset=utf-8";break}return n}t.create=i;function r(t){const e=new Uint8Array(ArrayBuffer.isView(t)?t.buffer:t).slice(0,4);return[37,80,68,70].every(((t,n)=>t==e[n]))}t.Header=_;t.Like=Q})(Y||(Y={}));const tt=et(globalThis.fetch);tt.create=et;function et(t){return async e=>{const n=k.create(e);return Y.from(await t(n.url.toString(),await k.to(n)))}}var nt;(function(t){function e(t){const e=new globalThis.FormData;e.append("*",new globalThis.Blob([(new TextEncoder).encode(JSON.stringify(n(t,"",e)))],{type:"application/json; charset=utf-8"}));return e}t.to=e;function n(t,e,i){return Object.entries(t).reduce(((t,[r,s])=>{s instanceof Blob?i.append(e?`${e}.${r}`:r,s):typeof s=="object"&&s?Array.isArray(s)?t[r]=o(s,e?`${e}.${r}`:r,i):t[r]=n(s,e?`${e}.${r}`:r,i):t[r]=s;return t}),{})}function o(t,e,i){return t.reduce(((t,r)=>{typeof r=="object"&&r?Array.isArray(r)?t.push(o(r,e,i)):t.push(n(r,e,i)):t.push(r);return t}),[])}async function i(t){const e={};for(const[n,o]of t.entries())await r(e,n.split("."),o);return e}t.from=i;async function r(t,[e,...n],o){if(n.length==0)o instanceof Blob&&o.type.startsWith("application/json")?e=="*"?s(t,JSON.parse(await o.text())):typeof t[e]=="object"&&t[e]?s(t[e],JSON.parse(await o.text())):t[e]=JSON.parse(await o.text()):t[e]=o;else r(typeof t[e]=="object"&&t[e]?t[e]:t[e]={},n,o)}function s(t,...e){if(e.length){const[n,...o]=e;Object.entries(n).forEach((([e,o])=>a(o)?s(a(t[e])?t[e]:t[e]={},o):t[e]=n[e]));s(t,...o)}}function a(t){return t&&typeof t=="object"&&!Array.isArray(t)}t.isObject=a})(nt||(nt={}));function ot(t){const e=[];const n=(t,o)=>{switch(typeof o){default:case"bigint":case"boolean":case"number":case"string":e.push(`${t}=${encodeURIComponent(o.toString())}`);break;case"undefined":break;case"object":for(const e in o)if(Object.prototype.hasOwnProperty.call(o,e))n(t?t+`[${e}]`:e,o[e]);break}};n("",t);return e.join("&")}function it(t){const e=t=>typeof t=="object"&&Object.keys(t).sort().every(((t,e)=>`${t}`==`${e}`))?Object.entries(t).sort().map((t=>typeof t[1]=="object"?e(t[1]):t[1])):typeof t=="object"?Object.fromEntries(Object.entries(t).map((t=>[t[0],e(t[1])]))):t;const n=(t,e,o)=>{t[e[0]]=e.length>1?n(t[e[0]]??{},e.slice(1),o):o;return t};const o=t.split("&").map((t=>t.split("=",2))).map((([t,e])=>[decodeURIComponent(t).split("[").map((t=>t.replace("]",""))),decodeURIComponent(e.replace(/\+/g," "))]));return o.reduce(((t,[o,i])=>e(n(t,o,i))),{})}w((async t=>await t.text()),"text/plain","text/html");w((async t=>await t.json()),"application/json");w((async t=>await t.arrayBuffer()),"application/pdf");w((async t=>nt.from(await t.formData())),"multipart/form-data");w((async t=>it(await t.text())),"application/x-www-form-urlencoded");C((async t=>typeof t=="string"?t:t.toString()),"text/plain","text/html");C((async t=>JSON.stringify(t)),"application/json");C((async t=>t),"application/pdf");C((async t=>ot(t)),"application/x-www-form-urlencoded");C((async t=>t instanceof globalThis.FormData?t:nt.to(t)),"multipart/form-data");var rt;(function(t){function e(t){return t&&typeof t=="object"&&typeof t.clear=="function"}t.is=e})(rt||(rt={}));var st;(function(t){t.values=["plain","grid","border","line","transparent"];t.type=u(t.values);t.is=t.type.is})(st||(st={}));var at;(function(t){let e;(function(t){t.type=l({register:s(),unregister:s(),getValue:s(),disabled:h().optional(),color:a.type.optional(),name:u(),invalid:h().optional(),looks:st.type.optional(),defined:h().optional(),binary:s().optional()});t.is=t.type.is})(e=t.Element||(t.Element={}));const n=l({emit:s()});t.type=e.type.extend({smoothlyInputLoad:n,smoothlyInput:n,smoothlyUserInput:n,smoothlyKeydown:n.optional(),smoothlyInputForm:n.optional(),parent:d.type.optional()});t.is=t.type.is;function o(t,e){if(t.parent instanceof ft){t.parent.removeInput(e!==null&&e!==void 0?e:t.name)}}t.formRemove=o;function i(t){t.smoothlyInputLoad.emit((e=>t.parent=e))}t.formAdd=i;function r(t,e){if(e){o(t,e)}i(t)}t.formRename=r;function c(t,e){if(!(e.target&&"name"in e.target&&e.target.name===t.name)){e.stopPropagation();e.detail(t)}}t.registerSubAction=c})(at||(at={}));const ct=()=>`smoothly-form{display:block;position:relative}smoothly-form>form{position:relative}smoothly-form>form>fieldset{display:flex;flex-flow:row wrap;margin-inline-start:unset;margin-inline-end:unset;padding-block-start:unset;padding-inline-start:unset;padding-inline-end:unset;padding-block-end:unset;min-inline-size:unset;border-width:unset;border-style:unset;border-color:unset;border-image:unset}smoothly-form>form>fieldset>*{flex-grow:1;min-width:min(100%, var(--smoothly-form-input-min-width, 14rem));flex-basis:40%}smoothly-form[looks="line"]>form>fieldset,smoothly-form[looks="border"]>form>fieldset,smoothly-form[looks="transparent"]>form>fieldset{row-gap:var(--smoothly-form-row-gap, 2rem);column-gap:var(--smoothly-form-column-gap, 2rem)}smoothly-form[looks="grid"]>form>fieldset{padding:1px;gap:1px}smoothly-form>form>div:not(:empty){display:flex;justify-content:end;gap:1em;margin-top:1.5rem}`;const ft=t(class t extends e{constructor(t){super();if(t!==false){this.__registerHost()}this.smoothlyFormDisable=n(this,"smoothlyFormDisable");this.smoothlyFormInput=n(this,"smoothlyFormInput");this.smoothlyFormSubmit=n(this,"smoothlyFormSubmit");this.smoothlyFormReset=n(this,"smoothlyFormReset");this.smoothlyFormEdit=n(this,"smoothlyFormEdit");this.smoothlyFormClear=n(this,"smoothlyFormClear");this.notice=n(this,"notice");this.value={};this.type=this.action?"create":undefined;this.readonly=false;this.prevent=true;this.isDifferentFromInitial=false;this.contentType="json";this.inputs=new Map;this.readonlyAtLoad=this.readonly;this.observer=d.Observer.create(this)}componentWillLoad(){!this.readonly&&this.smoothlyFormDisable.emit((t=>this.readonly=t))}async removeInput(t){if(this.element.isConnected){this.value=c.remove(this.value,t);this.inputs.delete(t);this.smoothlyFormInput.emit(c.convertArrays(this.value))}}async listen(t){this.observer.subscribe(t)}async watchValue(){var t,e;this.isDifferentFromInitial=[...this.inputs.values()].some((t=>d.type.is(t)?t.isDifferentFromInitial:true));if(this.validator){const n=(e=(t=this.validator)===null||t===void 0?void 0:t.flaw(c.convertArrays(this.value)).flaws)===null||e===void 0?void 0:e.reduce(((t,e)=>e.property?Object.assign(Object.assign({},t),{[e.property]:e}):t),{});for(const[t,e]of this.inputs.entries()){this.validate(n,t,e)}}this.observer.publish()}validate(t,e,n){var o,i;if(e.includes(".")){const[r,...s]=e.split(".");const a=(i=(o=t===null||t===void 0?void 0:t[r])===null||o===void 0?void 0:o.flaws)!==null&&i!==void 0?i:[];this.validate(a.reduce(((t,e)=>e.property?Object.assign(Object.assign({},t),{[e.property]:e}):t),{}),s.join("."),n)}else{const o=t===null||t===void 0?void 0:t[e];n&&(n.invalid=!!o)}}watchReadonly(){this.observer.publish()}smoothlyInputLooksHandler(t){t.stopPropagation();t.detail(this.looks,this.color)}async smoothlyInputHandler(t){this.value=c.merge(this.value,t.detail);this.smoothlyFormInput.emit(c.convertArrays(this.value))}async smoothlyKeydownHandler(t){if(t.detail.key=="Enter"&&this.inputs.has(t.detail.name)){t.stopPropagation();await this.submit()}}windowSubmitHandler(t){t.target==this.element&&t.detail.result(false)}submitHandler(t){this.action&&t.stopPropagation()}async smoothlyInputLoadHandler(t){var e;t.stopPropagation();t.detail(this);const n=t.target;if(at.Element.is(n)){if(await((e=n.binary)===null||e===void 0?void 0:e.call(n))){this.contentType="form-data"}const t=await n.getValue();this.value=c.merge(this.value,{[n.name]:t});this.smoothlyFormInput.emit(c.convertArrays(this.value));this.inputs.set(n.name,n)}}async smoothlyFormDisableHandler(t){t.stopPropagation();t.detail(this.readonly)}async submit(t){this.processing=new Promise((e=>{this.smoothlyFormSubmit.emit({value:c.convertArrays(this.value),result:e,type:t==true?"remove":this.type});if(this.action){const n=this.action;this.notice.emit(f.execute("Submitting form",(async()=>{const o=t?"DELETE":!this.type||this.type=="create"?"POST":this.type=="change"?"PUT":this.type=="update"?"PATCH":"GET";const i=await tt(k.create(o=="GET"?{method:o,url:`${n}?${ot(this.value)}`}:Object.assign({method:o,url:n},this.value&&{header:{contentType:this.contentType?"multipart/form-data":"application/json"},body:this.value}))).catch((()=>undefined));const r=!i||(i===null||i===void 0?void 0:i.status)<200||i.status>=300?[false,"Failed to submit form."]:[true,"Form successfully submitted."];e(r[0]);return[...r]})))}}));if(await this.processing){this.type=="create"&&await this.clear();await this.setInitialValue();this.readonlyAtLoad&&await this.edit(!this.readonlyAtLoad)}this.processing=undefined}async clear(){await Promise.all([...this.inputs.values()].map((async t=>rt.is(t)&&t.clear())));this.smoothlyFormClear.emit()}async edit(t){await Promise.all([...this.inputs.values()].map((async e=>d.Element.type.is(e)&&e.edit(t))));this.readonly=!t;this.smoothlyFormEdit.emit(t)}async reset(){await Promise.all([...this.inputs.values()].map((t=>d.Element.type.is(t)&&t.reset())));this.isDifferentFromInitial=[...this.inputs.values()].some((t=>d.type.is(t)?t.isDifferentFromInitial:true));this.smoothlyFormReset.emit()}async setInitialValue(){await Promise.all([...this.inputs.values()].map((t=>d.Element.type.is(t)&&t.setInitialValue())))}render(){return o(i,{key:"13832187ab5df2576ff044529d909eb8037dc847"},o("smoothly-spinner",{key:"bfe49cf7d062e9691fa14b33cbe2a5084f521b27",overlay:true,hidden:!this.processing}),o("form",{key:"d8796700525994279e108c8c7e92ca70f0e29712",onSubmit:!this.prevent?undefined:t=>t.preventDefault(),name:this.name},o("fieldset",{key:"3ea76b10bf7025a3073813aa897f8d588d79f871"},o("slot",{key:"422845b145092f3c44009327dd5157ff1a8edf74"})),o("div",{key:"c85cf3f3211724e24acb964ed4747896cf184ece"},o("slot",{key:"94cb03243a1b223e2f9b0665e593486d95a13041",name:"clear"}),o("slot",{key:"8298256cbc374dc7731a1ae1e90b46ce7318c960",name:"edit"}),o("slot",{key:"37a1f5479fe938cc423c3c9c7e79d1d19e667997",name:"reset"}),o("slot",{key:"53856e34deb228ffa25e9c7611075b12b3339160",name:"delete"}),o("slot",{key:"fdc4667a9ca84c01f5a803a7b8865f7f258de837",name:"submit"}))))}get element(){return this}static get watchers(){return{value:[{watchValue:0}],readonly:[{watchReadonly:0}]}}static get style(){return ct()}},[260,"smoothly-form",{color:[1537],value:[1040],action:[1],validator:[16],type:[1],readonly:[1028],looks:[513],name:[513],prevent:[4],processing:[1040],removeInput:[64],listen:[64],submit:[64],clear:[64],edit:[64],reset:[64],setInitialValue:[64]},[[0,"smoothlyInputLooks","smoothlyInputLooksHandler"],[0,"smoothlyInput","smoothlyInputHandler"],[0,"smoothlyKeydown","smoothlyKeydownHandler"],[8,"smoothlyFormSubmit","windowSubmitHandler"],[0,"smoothlyFormSubmit","submitHandler"],[0,"smoothlyInputLoad","smoothlyInputLoadHandler"],[0,"smoothlyFormDisable","smoothlyFormDisableHandler"]],{value:[{watchValue:0}],readonly:[{watchReadonly:0}]}]);function dt(){if(typeof customElements==="undefined"){return}const t=["smoothly-form","smoothly-spinner"];t.forEach((t=>{switch(t){case"smoothly-form":if(!customElements.get(r(t))){customElements.define(r(t),ft)}break;case"smoothly-spinner":if(!customElements.get(r(t))){p()}break}}))}dt();export{rt as C,at as I,st as L,ft as S,dt as d};
|
|
2
|
-
//# sourceMappingURL=p-
|
|
1
|
+
import{p as t,H as e,c as n,h as o,d as i,t as r}from"./p-BsZrGTcp.js";import{i as s,C as a,D as c}from"./p-Br0kWrBT.js";import"./p-BVKhAhsB.js";import{N as f}from"./p-Bq3C8g8G.js";import"./p-DoFURPl2.js";import{E as d}from"./p-iQDU7l2c.js";import{s as u,o as l,b as h}from"./p-Dr7iZPxA.js";import{d as p}from"./p-MWZzvkuh.js";var y;(function(t){function e(t){return typeof t=="string"&&(t=="GET"||t=="POST"||t=="DELETE"||t=="HEAD"||t=="PATCH"||t=="PUT"||t=="OPTIONS"||t=="TRACE"||t=="CONNECT")}t.is=e;function n(t){t=t?.toUpperCase();return e(t)?t:undefined}t.parse=n})(y||(y={}));const m={};function w(t,...e){e.forEach((e=>m[e]=t))}function b(t){const e=t.headers.get("Content-Type");const n=e&&e.split(";");const o=m[n?.[0]??"plain/text"];return o?o(t):t.text()}const g={};function C(t,...e){e.forEach((e=>g[e]=t))}function v(t,e){const n=g[e?.split(";")[0]??""];return n?n(t,e):t}function A(t){return t.toLowerCase().replace(/-[a-z]/g,(t=>t.substring(1).toUpperCase()))}function x(t){const e=t.replace(/[A-Z]/g,(t=>"-"+t));return e[0].toUpperCase()+e.substring(1)}const j=[["aIM","A-IM",1],["accept","Accept",2],["acceptCharset","Accept-Charset",2],["acceptDatetime","Accept-Datetime",1],["acceptEncoding","Accept-Encoding",2],["acceptLanguage","Accept-Language",2],["accessControlRequestMethod","Access-Control-Request-Method",1],["accessControlRequestHeaders","Access-Control-Request-Headers",1],["authorization","Authorization",1],["cacheControl","Cache-Control",1],["cfConnectionIp","CF-Connecting-IP",1],["cfIpCountry","CF-IPCountry",1],["connection","Connection",1],["contentLength","Content-Length",1],["contentMD5","Content-MD5",1],["contentType","Content-Type",1],["cookie","Cookie",1],["date","Date",1],["expect","Expect",1],["forwarded","Forwarded",1],["from","From",1],["host","Host",1],["http2Settings","HTTP2-Settings",1],["ifMatch","If-Match",2],["ifModifiedSince","If-Modified-Since",1],["ifNoneMatch","If-None-Match",2],["ifRange","If-Range",1],["ifUnmodifiedSince","If-Unmodified-Since",1],["maxForwards","Max-Forwards",1],["origin","Origin",1],["pragma","Pragma",1],["proxyAuthorization","Proxy-Authorization",1],["range","Range",1],["referer","Referer",1],["te","TE",2],["trailer","Trailer",1],["transferEncoding","Transfer-Encoding",1],["userAgent","User-Agent",1],["upgrade","Upgrade",2],["via","Via",2],["warning","Warning",1],["upgradeInsecureRequests","Upgrade-Insecure-Requests",1],["xRequestedWith","X-Requested-With",1],["dnt","DNT",1],["xForwardedFor","X-Forwarded-For",1],["xForwardedHost","X-Forwarded-Host",1],["xForwardedProto","X-Forwarded-Proto",1],["xMsContinuation","X-Ms-Continuation",1],["frontEndHttps","Front-End-Https",1],["xHttpMethodOverride","X-Http-Method-Override",1],["xAttDeviceId","X-ATT-DeviceId",1],["xWapProfile","X-Wap-Profile",1],["proxyConnection","Proxy-Connection",1],["xCsrfToken","X-Csrf-Token",1],["xCorrelationID","X-Correlation-ID",1],["xModNonce","x-mod-nonce",1],["xModRetry","x-mod-retry",1],["saveData","Save-Data",1],["xAuthToken","X-Auth-Token",1],["xTrackingId","x-tracking-id",1]];var T;(function(t){function e(t){function e(t){return t==undefined||typeof t=="string"}function n(t){return t==undefined||Array.isArray(t)&&t.every((t=>typeof t=="string"))}return typeof t=="object"&&j.every((o=>(o[2]==1?e:n)(t[o[0]])))}t.is=e;function n(t){return Object.fromEntries(Object.entries(t).map((([t,e])=>{const n=j.find((([e,n,o])=>e==t));return[n?n[1]:x(t),Array.isArray(e)?e.join(", "):e]})))}t.to=n;function o(t){return Object.fromEntries((Array.isArray(t)?t.map((([t,...e])=>[t,e.join(", ")])):r(t)?[...t]:Object.entries(t)).map((([t,e])=>{const n=j.find((([e,n,o])=>t.toLowerCase()==n.toLowerCase()));return n?[n[0],n[2]==1||typeof e!="string"?e:e.split(",").map((t=>t.trim()))]:[A(t),e]})))}t.from=o;function i(t){return Object.entries(t).map((([t,e])=>t+": "+e)).join("\n")}t.toString=i;function r(t){return typeof t.entries=="function"}})(T||(T={}));var k;(function(t){function e(t){return typeof t=="object"&&Object.keys(t).every((t=>["method","url","parameter","search","remote","header","body"].some((e=>e==t))))&&y.is(t.method)&&t.url instanceof URL&&typeof t.parameter=="object"&&Object.entries(t.parameter).every((([t,e])=>typeof t=="string"&&typeof e=="string"))&&typeof t.search=="object"&&Object.entries(t.search).every((([t,e])=>typeof t=="string"&&typeof e=="string"))&&(t.remote==undefined||typeof t.remote=="string")&&(t.header==undefined||T.is(t.header))}t.is=e;async function n(t){const n=e(t)?t:i(t);const o=n.header.contentType?.startsWith("multipart/form-data")?(({contentType:t,...e})=>e)(n.header):n.header;return{url:n.url.toString(),method:n.method,headers:T.to(o),body:["GET","HEAD"].some((t=>t==n.method))?undefined:await v(await n.body,n.header.contentType)}}t.to=n;function o(t){const e=new URL(t.url);return{method:y.parse(t.method)??"GET",url:e,header:T.from(t.headers),parameter:{},search:Object.fromEntries(e.searchParams.entries()),body:b(t),..."cf"in t&&{cloudflare:t.cf}}}t.from=o;function i(t){let e;if(typeof t=="string")e=i({url:t});else{const n=typeof t.url=="string"?new URL(t.url):t.url;e={method:y.parse(t.method)??"GET",url:n,parameter:t.parameter??{},search:{...t.search,...Object.fromEntries(n.searchParams.entries())},remote:t.remote,header:t.header??{},body:t.body}}return e}t.create=i;(function(t){t.is=T.is;t.from=T.from;t.to=T.to})(t.Header||(t.Header={}))})(k||(k={}));const O=typeof Response!="undefined"?Response:globalThis.Response;var E=undefined&&undefined.__classPrivateFieldGet||function(t,e,n,o){if(n==="a"&&!o)throw new TypeError("Private accessor was defined without a getter");if(typeof e==="function"?t!==e||!o:!e.has(t))throw new TypeError("Cannot read private member from an object whose class did not declare it");return n==="m"?o:n==="a"?o.call(t):o?o.value:e.get(t)};var P=undefined&&undefined.__classPrivateFieldSet||function(t,e,n,o,i){if(o==="m")throw new TypeError("Private method is not writable");if(o==="a"&&!i)throw new TypeError("Private accessor was defined without a setter");if(typeof e==="function"?t!==e||!i:!e.has(t))throw new TypeError("Cannot write private member to an object whose class did not declare it");return o==="a"?i.call(t,n):i?i.value=n:e.set(t,n),n};var I,S,M,D,R,F,H,L,W;let X=class t{get state(){return E(this,D,"f")?"closed":"opened"}set onMessage(t){if(E(this,S,"f").length&&t){E(this,S,"f").forEach(t);P(this,S,[],"f")}P(this,F,t,"f")}set onClose(t){if(this.state=="closed"&&t)t();P(this,H,t,"f")}set onOpen(t){if(this.state=="opened"&&t)t();P(this,W,t,"f")}constructor(t,e){I.add(this);S.set(this,[]);M.set(this,[]);D.set(this,false);R.set(this,void 0);F.set(this,void 0);H.set(this,void 0);W.set(this,void 0);P(this,R,t,"f");if(e)P(this,M,undefined,"f");E(this,R,"f").addEventListener("open",(()=>{if(E(this,W,"f"))E(this,W,"f").call(this);E(this,I,"m",L).bind(this)}));E(this,R,"f").addEventListener("message",(async t=>{const e=this.processReceived(t.data);E(this,I,"m",L).call(this);if(E(this,F,"f"))E(this,F,"f").call(this,e);else E(this,S,"f")?.push(e)}));E(this,R,"f").addEventListener("close",(()=>{if(E(this,H,"f"))E(this,H,"f").call(this);P(this,D,true,"f")}))}send(t){if(E(this,M,"f"))E(this,M,"f").push(this.processSend(t));else E(this,R,"f").send(this.processSend(t))}};S=new WeakMap,M=new WeakMap,D=new WeakMap,R=new WeakMap,F=new WeakMap,H=new WeakMap,W=new WeakMap,I=new WeakSet,L=function t(){E(this,M,"f")?.forEach((t=>E(this,R,"f").send(t)));P(this,M,undefined,"f")};let U=class t extends X{processReceived(t){return t?.arrayBuffer?t.arrayBuffer():typeof t=="string"?(new TextEncoder).encode(t).buffer:t}processSend(t){return t}};class B extends X{processReceived(t){return JSON.parse(t?.arrayBuffer?(new TextDecoder).decode(t.arrayBuffer()):typeof t!="string"?(new TextDecoder).decode(t):t)}processSend(t){return JSON.stringify(t)}}class N extends X{processReceived(t){return t?.arrayBuffer?(new TextDecoder).decode(t.arrayBuffer()):typeof t!="string"?(new TextDecoder).decode(t):t}processSend(t){return t}}var $=undefined&&undefined.__classPrivateFieldGet||function(t,e,n,o){if(n==="a"&&!o)throw new TypeError("Private accessor was defined without a getter");if(typeof e==="function"?t!==e||!o:!e.has(t))throw new TypeError("Cannot read private member from an object whose class did not declare it");return n==="m"?o:n==="a"?o.call(t):o?o.value:e.get(t)};var q=undefined&&undefined.__classPrivateFieldSet||function(t,e,n,o,i){if(o==="m")throw new TypeError("Private method is not writable");if(o==="a"&&!i)throw new TypeError("Private accessor was defined without a setter");if(typeof e==="function"?t!==e||!i:!e.has(t))throw new TypeError("Cannot write private member to an object whose class did not declare it");return o==="a"?i.call(t,n):i?i.value=n:e.set(t,n),n};var z,V,G;class K{get json(){if(!$(this,z,"f"))q(this,z,new B(this.backend,this.isOpen),"f");return $(this,z,"f")}get string(){if(!$(this,V,"f"))q(this,V,new N(this.backend,this.isOpen),"f");return $(this,V,"f")}get arrayBuffer(){if(!$(this,G,"f"))q(this,G,new U(this.backend,this.isOpen),"f");return $(this,G,"f")}constructor(t,e){this.backend=t;this.isOpen=e;z.set(this,void 0);V.set(this,void 0);G.set(this,void 0)}createResponse(t={}){return{status:101,socket:this,header:t}}close(t,e){this.backend.close(t,e)}}z=new WeakMap,V=new WeakMap,G=new WeakMap;var J;(function(t){t.Factory=K})(J||(J={}));const Z=[["accessControlAllowOrigin","Access-Control-Allow-Origin",1],["accessControlAllowCredentials","Access-Control-Allow-Credentials",1],["accessControlExposeHeaders","Access-Control-Expose-Headers",2],["accessControlMaxAge","Access-Control-Max-Age",1],["accessControlAllowMethods","Access-Control-Allow-Methods",2],["accessControlAllowHeaders","Access-Control-Allow-Headers",2],["acceptPatch","Accept-Patch",1],["acceptRanges","Accept-Ranges",1],["age","Age",1],["allow","Allow",2],["altSvc","Alt-Svc",1],["cacheControl","Cache-Control",1],["cfConnectionIp","CF-Connecting-IP",1],["cfIpCountry","CF-IPCountry",1],["connection","Connection",1],["contentDisposition","Content-Disposition",1],["contentEncoding","Content-Encoding",1],["contentLanguage","Content-Language",2],["contentLength","Content-Length",1],["contentLocation","Content-Location",1],["contentMD5","Content-MD5",1],["contentRange","Content-Range",1],["contentSecurityPolicy","Content-Security-Policy",1],["contentType","Content-Type",1],["date","Date",1],["deltaBase","Delta-Base",1],["eTag","ETag",1],["expires","Expires",1],["iM","IM",1],["lastModified","Last-Modified",1],["link","Link",1],["location","Location",1],["p3P","P3P",1],["pragma","Pragma",1],["proxyAuthenticate","Proxy-Authenticate",1],["publicKeyPins","Public-Key-Pins",1],["refresh","Refresh",1],["retryAfter","Retry-After",1],["server","Server",1],["setCookie","Set-Cookie",1],["status","Status",1],["strictTransportSecurity","Strict-Transport-Security",1],["timingAllowOrigin","Timing-Allow-Origin",2],["trailer","Trailer",1],["transferEncoding","Transfer-Encoding",1],["tk","Tk",1],["upgrade","Upgrade",2],["vary","Vary",2],["via","Via",1],["warning","Warning",1],["wwwAuthenticate","WWW-Authenticate",1],["xContentDuration","X-Content-Duration",1],["xContentSecurityPolicy","X-Content-Security-Policy",1],["xContentTypeOptions","X-Content-Type-Options",1],["xCorrelationId","X-Correlation-ID",1],["xFrameOptions","X-Frame-Options",1],["xMsContinuation","X-Ms-Continuation",1],["xPoweredBy","X-Powered-By",1],["xRequestId","X-Request-ID",1],["xUACompatible","X-UA-Compatible",1],["xWebkitCsp","X-WebKit-CSP",1],["xXssProtection","X-XSS-Protection",1]];var _;(function(t){function e(t){function e(t){return t==undefined||typeof t=="string"}function n(t){return t==undefined||Array.isArray(t)&&t.every((t=>typeof t=="string"))}return typeof t=="object"&&Z.every((o=>(o[2]==1?e:n)(t[o[0]])))}t.is=e;function n(t){return Object.fromEntries(Object.entries(t).map((([t,e])=>{const n=Z.find((([e,...n])=>e==t));return[n?n[1]:x(t),Array.isArray(e)?e.join(", "):e]})))}t.to=n;function o(t){return Object.fromEntries((Array.isArray(t)?t.map((([t,...e])=>[t,e.join(", ")])):r(t)?s(t):Object.entries(t)).map((([t,e])=>{const n=Z.find((([e,n,o])=>t.toLowerCase()==n.toLowerCase()));return n?[n[0],n[2]==1||typeof e!="string"?e:e.split(",").map((t=>t.trim()))]:[A(t),e]})))}t.from=o;function i(t){return Object.entries(t).map((([t,e])=>t+": "+e)).join("\n")}t.toString=i;function r(t){return typeof t.forEach=="function"}function s(t){const e=[];t.forEach(((t,n)=>e.push([n,t])));return e}})(_||(_={}));var Q;(function(t){function e(t){return typeof t=="object"&&Object.keys(t).every((t=>["status","header","body","socket"].some((e=>e==t))))&&(t.status==undefined||typeof t.status=="number")&&(t.header==undefined||_.is(t.header))&&(t.socket==undefined||typeof t.socket.close=="function"&&typeof t.socket.json?.send=="function"&&typeof t.socket.string?.send=="function"&&typeof t.socket.arrayBuffer?.send=="function")&&(t.status!=undefined||t.header!=undefined||t.body!=undefined)}t.is=e})(Q||(Q={}));var Y;(function(t){function e(t){return typeof t=="object"&&Object.keys(t).every((t=>["status","header","body","socket"].some((e=>e==t))))&&(t.status==undefined||typeof t.status=="number")&&(t.header==undefined||_.is(t.header))&&(t.socket==undefined||t.socket instanceof WebSocket)}t.is=e;async function n(t){return new O(await v(await t.body,t.header.contentType),{status:t.status,headers:new Headers(_.to(!t.header.contentType?.startsWith("multipart/formdata")?t.header:(({contentType:t,...e})=>e)(t.header))),...t.socket&&{webSocket:{...t.socket.createResponse().socket}?.backend}})}t.to=n;function o(t){return{status:t.status,header:_.from(t.headers),body:t.status==101?undefined:b(t),...t.webSocket&&{socket:new J.Factory(t.webSocket)}}}t.from=o;function i(t,e){const n=Q.is(t)?{status:200,header:{},body:undefined,...t.socket&&{socket:t.socket},...t}:typeof t?.createResponse=="function"&&(e==undefined||_.is(e))?t.createResponse(e):{status:typeof t=="object"&&typeof t.status=="number"&&t.status||200,header:typeof t=="object"?{...t.header,...(t.status==301||t.status==302)&&t.location?{location:t.location}:{}}:{},body:!(typeof t=="object"&&!Array.isArray(t))||t instanceof ArrayBuffer||ArrayBuffer.isView(t)||t instanceof FormData?t:(({header:t,...e})=>e)(t),...t.webSocket&&{socket:new J.Factory(t.webSocket)}||t.socket&&{socket:t.socket}};if(!n.header.contentType)switch(typeof n.body){case"undefined":break;default:case"object":n.header.contentType=typeof e=="string"?e:e?.contentType?e.contentType:n.body instanceof FormData?"multipart/formdata":n.body instanceof ArrayBuffer||ArrayBuffer.isView(n.body)?r(n.body)?"application/pdf":"application/octet-stream":"application/json; charset=utf-8";break;case"string":n.header.contentType=n.body.slice(0,9).toLowerCase()=="<!doctype"?"text/html; charset=utf-8":/^[A-Za-z0-9-_=]+\.[A-Za-z0-9-_=]+\.?[A-Za-z0-9-_.+/=]*$/.test(n.body)?"application/jwt; charset=utf-8":/^<\?xml version=(.|\n)*\?>(.|\n)*<svg(.|\n)*<\/svg>$/.test(n.body)?"image/svg+xml":"text/plain; charset=utf-8";break}return n}t.create=i;function r(t){const e=new Uint8Array(ArrayBuffer.isView(t)?t.buffer:t).slice(0,4);return[37,80,68,70].every(((t,n)=>t==e[n]))}t.Header=_;t.Like=Q})(Y||(Y={}));const tt=et(globalThis.fetch);tt.create=et;function et(t){return async e=>{const n=k.create(e);return Y.from(await t(n.url.toString(),await k.to(n)))}}var nt;(function(t){function e(t){const e=new globalThis.FormData;e.append("*",new globalThis.Blob([(new TextEncoder).encode(JSON.stringify(n(t,"",e)))],{type:"application/json; charset=utf-8"}));return e}t.to=e;function n(t,e,i){return Object.entries(t).reduce(((t,[r,s])=>{s instanceof Blob?i.append(e?`${e}.${r}`:r,s):typeof s=="object"&&s?Array.isArray(s)?t[r]=o(s,e?`${e}.${r}`:r,i):t[r]=n(s,e?`${e}.${r}`:r,i):t[r]=s;return t}),{})}function o(t,e,i){return t.reduce(((t,r)=>{typeof r=="object"&&r?Array.isArray(r)?t.push(o(r,e,i)):t.push(n(r,e,i)):t.push(r);return t}),[])}async function i(t){const e={};for(const[n,o]of t.entries())await r(e,n.split("."),o);return e}t.from=i;async function r(t,[e,...n],o){if(n.length==0)o instanceof Blob&&o.type.startsWith("application/json")?e=="*"?s(t,JSON.parse(await o.text())):typeof t[e]=="object"&&t[e]?s(t[e],JSON.parse(await o.text())):t[e]=JSON.parse(await o.text()):t[e]=o;else r(typeof t[e]=="object"&&t[e]?t[e]:t[e]={},n,o)}function s(t,...e){if(e.length){const[n,...o]=e;Object.entries(n).forEach((([e,o])=>a(o)?s(a(t[e])?t[e]:t[e]={},o):t[e]=n[e]));s(t,...o)}}function a(t){return t&&typeof t=="object"&&!Array.isArray(t)}t.isObject=a})(nt||(nt={}));function ot(t){const e=[];const n=(t,o)=>{switch(typeof o){default:case"bigint":case"boolean":case"number":case"string":e.push(`${t}=${encodeURIComponent(o.toString())}`);break;case"undefined":break;case"object":for(const e in o)if(Object.prototype.hasOwnProperty.call(o,e))n(t?t+`[${e}]`:e,o[e]);break}};n("",t);return e.join("&")}function it(t){const e=t=>typeof t=="object"&&Object.keys(t).sort().every(((t,e)=>`${t}`==`${e}`))?Object.entries(t).sort().map((t=>typeof t[1]=="object"?e(t[1]):t[1])):typeof t=="object"?Object.fromEntries(Object.entries(t).map((t=>[t[0],e(t[1])]))):t;const n=(t,e,o)=>{t[e[0]]=e.length>1?n(t[e[0]]??{},e.slice(1),o):o;return t};const o=t.split("&").map((t=>t.split("=",2))).map((([t,e])=>[decodeURIComponent(t).split("[").map((t=>t.replace("]",""))),decodeURIComponent(e.replace(/\+/g," "))]));return o.reduce(((t,[o,i])=>e(n(t,o,i))),{})}w((async t=>await t.text()),"text/plain","text/html");w((async t=>await t.json()),"application/json");w((async t=>await t.arrayBuffer()),"application/pdf");w((async t=>nt.from(await t.formData())),"multipart/form-data");w((async t=>it(await t.text())),"application/x-www-form-urlencoded");C((async t=>typeof t=="string"?t:t.toString()),"text/plain","text/html");C((async t=>JSON.stringify(t)),"application/json");C((async t=>t),"application/pdf");C((async t=>ot(t)),"application/x-www-form-urlencoded");C((async t=>t instanceof globalThis.FormData?t:nt.to(t)),"multipart/form-data");var rt;(function(t){function e(t){return t&&typeof t=="object"&&typeof t.clear=="function"}t.is=e})(rt||(rt={}));var st;(function(t){t.values=["plain","grid","border","line","transparent"];t.type=u(t.values);t.is=t.type.is})(st||(st={}));var at;(function(t){let e;(function(t){t.type=l({register:s(),unregister:s(),getValue:s(),disabled:h().optional(),color:a.type.optional(),name:u(),invalid:h().optional(),looks:st.type.optional(),defined:h().optional(),binary:s().optional()});t.is=t.type.is})(e=t.Element||(t.Element={}));const n=l({emit:s()});t.type=e.type.extend({smoothlyInputLoad:n,smoothlyInput:n,smoothlyUserInput:n,smoothlyKeydown:n.optional(),smoothlyInputForm:n.optional(),parent:d.type.optional()});t.is=t.type.is;function o(t,e){if(t.parent instanceof ft){t.parent.removeInput(e!==null&&e!==void 0?e:t.name)}}t.formRemove=o;function i(t){t.smoothlyInputLoad.emit((e=>t.parent=e))}t.formAdd=i;function r(t,e){if(e){o(t,e)}i(t)}t.formRename=r;function c(t,e){if(!(e.target&&"name"in e.target&&e.target.name===t.name)){e.stopPropagation();e.detail(t)}}t.registerSubAction=c})(at||(at={}));const ct=()=>`smoothly-form{display:block;position:relative}smoothly-form>form{position:relative}smoothly-form>form>fieldset{display:flex;flex-flow:row wrap;margin-inline-start:unset;margin-inline-end:unset;padding-block-start:unset;padding-inline-start:unset;padding-inline-end:unset;padding-block-end:unset;min-inline-size:unset;border-width:unset;border-style:unset;border-color:unset;border-image:unset}smoothly-form>form>fieldset>*{flex-grow:1;min-width:min(100%, var(--smoothly-form-input-min-width, 14rem));flex-basis:40%}smoothly-form[looks="line"]>form>fieldset,smoothly-form[looks="border"]>form>fieldset,smoothly-form[looks="transparent"]>form>fieldset{row-gap:var(--smoothly-form-row-gap, 2rem);column-gap:var(--smoothly-form-column-gap, 2rem)}smoothly-form[looks="grid"]>form>fieldset{padding:1px;gap:1px}smoothly-form>form>div:not(:empty){display:flex;justify-content:end;gap:1em;margin-top:1.5rem}`;const ft=t(class t extends e{constructor(t){super();if(t!==false){this.__registerHost()}this.smoothlyFormDisable=n(this,"smoothlyFormDisable");this.smoothlyFormInput=n(this,"smoothlyFormInput");this.smoothlyFormSubmit=n(this,"smoothlyFormSubmit");this.smoothlyFormReset=n(this,"smoothlyFormReset");this.smoothlyFormEdit=n(this,"smoothlyFormEdit");this.smoothlyFormClear=n(this,"smoothlyFormClear");this.notice=n(this,"notice");this.value={};this.type=this.action?"create":undefined;this.readonly=false;this.prevent=true;this.isDifferentFromInitial=false;this.contentType="json";this.inputs=new Map;this.readonlyAtLoad=this.readonly;this.observer=d.Observer.create(this)}componentWillLoad(){!this.readonly&&this.smoothlyFormDisable.emit((t=>this.readonly=t))}async removeInput(t){if(this.element.isConnected){this.value=c.remove(this.value,t);this.inputs.delete(t);this.smoothlyFormInput.emit(c.convertArrays(this.value))}}async listen(t){this.observer.subscribe(t)}async watchValue(){var t,e;this.isDifferentFromInitial=[...this.inputs.values()].some((t=>d.type.is(t)?t.isDifferentFromInitial:true));if(this.validator){const n=(e=(t=this.validator)===null||t===void 0?void 0:t.flaw(c.convertArrays(this.value)).flaws)===null||e===void 0?void 0:e.reduce(((t,e)=>e.property?Object.assign(Object.assign({},t),{[e.property]:e}):t),{});for(const[t,e]of this.inputs.entries()){this.validate(n,t,e)}}this.observer.publish()}validate(t,e,n){var o,i;if(e.includes(".")){const[r,...s]=e.split(".");const a=(i=(o=t===null||t===void 0?void 0:t[r])===null||o===void 0?void 0:o.flaws)!==null&&i!==void 0?i:[];this.validate(a.reduce(((t,e)=>e.property?Object.assign(Object.assign({},t),{[e.property]:e}):t),{}),s.join("."),n)}else{const o=t===null||t===void 0?void 0:t[e];n&&(n.invalid=!!o)}}watchReadonly(){this.observer.publish()}smoothlyInputLooksHandler(t){t.stopPropagation();t.detail(this.looks,this.color)}async smoothlyInputHandler(t){this.value=c.merge(this.value,t.detail);this.smoothlyFormInput.emit(c.convertArrays(this.value))}async smoothlyKeydownHandler(t){if(t.detail.key=="Enter"&&this.inputs.has(t.detail.name)){t.stopPropagation();await this.submit()}}windowSubmitHandler(t){t.target==this.element&&t.detail.result(false)}submitHandler(t){this.action&&t.stopPropagation()}async smoothlyInputLoadHandler(t){var e;t.stopPropagation();t.detail(this);const n=t.target;if(at.Element.is(n)){if(await((e=n.binary)===null||e===void 0?void 0:e.call(n))){this.contentType="form-data"}const t=await n.getValue();this.value=c.merge(this.value,{[n.name]:t});this.smoothlyFormInput.emit(c.convertArrays(this.value));this.inputs.set(n.name,n)}}async smoothlyFormDisableHandler(t){t.stopPropagation();t.detail(this.readonly)}async submit(t){this.processing=new Promise((e=>{this.smoothlyFormSubmit.emit({value:c.convertArrays(this.value),result:e,type:t==true?"remove":this.type});if(this.action){const n=this.action;this.notice.emit(f.execute("Submitting form",(async()=>{const o=t?"DELETE":!this.type||this.type=="create"?"POST":this.type=="change"?"PUT":this.type=="update"?"PATCH":"GET";const i=await tt(k.create(o=="GET"?{method:o,url:`${n}?${ot(this.value)}`}:Object.assign({method:o,url:n},this.value&&{header:{contentType:this.contentType?"multipart/form-data":"application/json"},body:this.value}))).catch((()=>undefined));const r=!i||(i===null||i===void 0?void 0:i.status)<200||i.status>=300?[false,"Failed to submit form."]:[true,"Form successfully submitted."];e(r[0]);return[...r]})))}}));if(await this.processing){this.type=="create"&&await this.clear();await this.setInitialValue();this.readonlyAtLoad&&await this.edit(!this.readonlyAtLoad)}this.processing=undefined}async clear(){await Promise.all([...this.inputs.values()].map((async t=>rt.is(t)&&t.clear())));this.smoothlyFormClear.emit()}async edit(t){await Promise.all([...this.inputs.values()].map((async e=>d.Element.type.is(e)&&e.edit(t))));this.readonly=!t;this.smoothlyFormEdit.emit(t)}async reset(){await Promise.all([...this.inputs.values()].map((t=>d.Element.type.is(t)&&t.reset())));this.isDifferentFromInitial=[...this.inputs.values()].some((t=>d.type.is(t)?t.isDifferentFromInitial:true));this.smoothlyFormReset.emit()}async setInitialValue(){await Promise.all([...this.inputs.values()].map((t=>d.Element.type.is(t)&&t.setInitialValue())))}render(){return o(i,{key:"13832187ab5df2576ff044529d909eb8037dc847"},o("smoothly-spinner",{key:"bfe49cf7d062e9691fa14b33cbe2a5084f521b27",overlay:true,hidden:!this.processing}),o("form",{key:"d8796700525994279e108c8c7e92ca70f0e29712",onSubmit:!this.prevent?undefined:t=>t.preventDefault(),name:this.name},o("fieldset",{key:"3ea76b10bf7025a3073813aa897f8d588d79f871"},o("slot",{key:"422845b145092f3c44009327dd5157ff1a8edf74"})),o("div",{key:"c85cf3f3211724e24acb964ed4747896cf184ece"},o("slot",{key:"94cb03243a1b223e2f9b0665e593486d95a13041",name:"clear"}),o("slot",{key:"8298256cbc374dc7731a1ae1e90b46ce7318c960",name:"edit"}),o("slot",{key:"37a1f5479fe938cc423c3c9c7e79d1d19e667997",name:"reset"}),o("slot",{key:"53856e34deb228ffa25e9c7611075b12b3339160",name:"delete"}),o("slot",{key:"fdc4667a9ca84c01f5a803a7b8865f7f258de837",name:"submit"}))))}get element(){return this}static get watchers(){return{value:[{watchValue:0}],readonly:[{watchReadonly:0}]}}static get style(){return ct()}},[260,"smoothly-form",{color:[1537],value:[1040],action:[1],validator:[16],type:[1],readonly:[1028],looks:[513],name:[513],prevent:[4],processing:[1040],removeInput:[64],listen:[64],submit:[64],clear:[64],edit:[64],reset:[64],setInitialValue:[64]},[[0,"smoothlyInputLooks","smoothlyInputLooksHandler"],[0,"smoothlyInput","smoothlyInputHandler"],[0,"smoothlyKeydown","smoothlyKeydownHandler"],[8,"smoothlyFormSubmit","windowSubmitHandler"],[0,"smoothlyFormSubmit","submitHandler"],[0,"smoothlyInputLoad","smoothlyInputLoadHandler"],[0,"smoothlyFormDisable","smoothlyFormDisableHandler"]],{value:[{watchValue:0}],readonly:[{watchReadonly:0}]}]);function dt(){if(typeof customElements==="undefined"){return}const t=["smoothly-form","smoothly-spinner"];t.forEach((t=>{switch(t){case"smoothly-form":if(!customElements.get(r(t))){customElements.define(r(t),ft)}break;case"smoothly-spinner":if(!customElements.get(r(t))){p()}break}}))}dt();export{rt as C,at as I,st as L,ft as S,dt as d};
|
|
2
|
+
//# sourceMappingURL=p-BLDkKrD6.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{p as s,H as t,c as i,h as e,d as o,t as h}from"./p-BsZrGTcp.js";import{S as r}from"./p-DoFURPl2.js";const l=s(class s extends t{constructor(s){super();if(s!==false){this.__registerHost()}this.smoothlyLoadMore=i(this,"smoothlyLoadMore");this.triggerMode="intersection";this.name="";this.multiple=false}checkInView(){if(this.inView){this.smoothlyLoadMore.emit(this.name)}}connectedCallback(){var s;this.observer=new IntersectionObserver(((s,t)=>this.observationHandler(t,s)));this.observer.observe(this.element);if(this.triggerMode=="scroll"){this.inView&&this.smoothlyLoadMore.emit(this.name);if(this.multiple||!this.multiple&&!this.inView){this.scrollableParent=r.findParent(this.element);(s=this.scrollableParent)===null||s===void 0?void 0:s.addEventListener("scroll",this.checkInView.bind(this),{once:!this.multiple})}}}disconnectedCallback(){var s;(s=this.scrollableParent)===null||s===void 0?void 0:s.removeEventListener("scroll",this.checkInView.bind(this));this.observer.disconnect()}observationHandler(s,t){var i,e;this.inView=((e=(i=t.find((s=>s.target==this.element)))===null||i===void 0?void 0:i.intersectionRatio)!==null&&e!==void 0?e:0)>0;if(this.inView){this.smoothlyLoadMore.emit(this.name);!this.multiple&&(s.unobserve(this.element),s.disconnect())}}render(){return e(o,{key:"
|
|
2
|
-
//# sourceMappingURL=p-
|
|
1
|
+
import{p as s,H as t,c as i,h as e,d as o,t as h}from"./p-BsZrGTcp.js";import{S as r}from"./p-DoFURPl2.js";const l=s(class s extends t{constructor(s){super();if(s!==false){this.__registerHost()}this.smoothlyLoadMore=i(this,"smoothlyLoadMore");this.triggerMode="intersection";this.name="";this.multiple=false}checkInView(){if(this.inView){this.smoothlyLoadMore.emit(this.name)}}connectedCallback(){var s;this.observer=new IntersectionObserver(((s,t)=>this.observationHandler(t,s)));this.observer.observe(this.element);if(this.triggerMode=="scroll"){this.inView&&this.smoothlyLoadMore.emit(this.name);if(this.multiple||!this.multiple&&!this.inView){this.scrollableParent=r.findParent(this.element);(s=this.scrollableParent)===null||s===void 0?void 0:s.addEventListener("scroll",this.checkInView.bind(this),{once:!this.multiple})}}}disconnectedCallback(){var s;(s=this.scrollableParent)===null||s===void 0?void 0:s.removeEventListener("scroll",this.checkInView.bind(this));this.observer.disconnect()}observationHandler(s,t){var i,e;this.inView=((e=(i=t.find((s=>s.target==this.element)))===null||i===void 0?void 0:i.intersectionRatio)!==null&&e!==void 0?e:0)>0;if(this.inView){this.smoothlyLoadMore.emit(this.name);!this.multiple&&(s.unobserve(this.element),s.disconnect())}}render(){return e(o,{key:"bb19876d56183b2cb5350f775e0072cced3152ef"})}get element(){return this}},[2,"smoothly-load-more",{triggerMode:[1,"trigger-mode"],name:[1],multiple:[4],inView:[32]}]);function n(){if(typeof customElements==="undefined"){return}const s=["smoothly-load-more"];s.forEach((s=>{switch(s){case"smoothly-load-more":if(!customElements.get(h(s))){customElements.define(h(s),l)}break}}))}n();export{l as L,n as d};
|
|
2
|
+
//# sourceMappingURL=p-BMCHQuiC.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{p as o,H as e,c as t,h as l,d as a,t as r}from"./p-BsZrGTcp.js";const s=()=>`.sc-smoothly-table-expandable-row-h{grid-column:1/-1;display:grid;grid-template-columns:subgrid;grid-template-rows:auto 0fr;box-shadow:0px 1px 1px -1px rgb(var(--smoothly-table-border))}.sc-smoothly-table-expandable-row-h.sc-smoothly-table-expandable-row-s>.smoothly-table-cell{grid:subgrid;cursor:pointer;grid-column:span var(--smoothly-table-cell-span, 1);display:flex;align-items:center;padding-inline:var(--smoothly-table-cell-padding-inline, 1.1rem);min-height:var(--smoothly-table-cell-min-height, 2.75rem);white-space:nowrap}.sc-smoothly-table-expandable-row-h:has(>.smoothly-table-cell:hover){background-color:rgb(var(--smoothly-table-hover-background));color:rgb(var(--smoothly-table-hover-foreground))}[open].sc-smoothly-table-expandable-row-h{background-color:rgb(var(--smoothly-table-expanded-background));color:rgb(var(--smoothly-table-expanded-foreground));grid-template-rows:auto 1fr;box-shadow:0px 1px 1px -1px rgb(var(--smoothly-table-border)), 0px 0px 1px rgb(var(--smoothly-table-border)) inset;grid-template-rows:0fr 1fr}.sc-smoothly-table-expandable-row-h:not([open])>div.smoothly-table-detail.sc-smoothly-table-expandable-row{display:none}.sc-smoothly-table-expandable-row-h>div.smoothly-table-detail.sc-smoothly-table-expandable-row{grid-column:1/-1;cursor:default;position:relative;overflow:hidden;background-color:rgb(var(--smoothly-table-expanded-background));color:rgb(var(--smoothly-table-expanded-foreground))}.sc-smoothly-table-expandable-row-h>.smoothly-table-cell.sc-smoothly-table-expandable-row:first-of-type{position:relative;padding-left:1.1rem}.sc-smoothly-table-expandable-row-h>.smoothly-table-cell.sc-smoothly-table-expandable-row:first-of-type::before{content:"";display:flex;position:absolute;top:50%;translate:0 -50%;height:0.4rem;width:0.4rem;left:0.3rem;border-bottom:1px solid rgb(var(--smoothly-table-foreground));border-right:1px solid rgb(var(--smoothly-table-foreground));transition:rotate 200ms ease-in-out;rotate:-45deg;opacity:0.3}.sc-smoothly-table-expandable-row-h:has(>.smoothly-table-cell:hover)>.smoothly-table-cell.sc-smoothly-table-expandable-row:first-of-type::before{border-bottom:1px solid rgb(var(--smoothly-table-hover-foreground));border-right:1px solid rgb(var(--smoothly-table-hover-foreground));opacity:1}[open].sc-smoothly-table-expandable-row-h>.smoothly-table-cell.sc-smoothly-table-expandable-row:first-of-type::before{rotate:45deg}[open].sc-smoothly-table-expandable-row-h>div.smoothly-table-detail.sc-smoothly-table-expandable-row{overflow:visible;padding-block:var(--smoothly-table-detail-padding-block, 0.5rem);padding-inline:var(--smoothly-table-detail-padding-inline, 1.1rem)}.sc-smoothly-table-expandable-row-h>div.smoothly-table-detail.sc-smoothly-table-expandable-row::before{content:"";position:absolute;display:flex;box-sizing:border-box;top:0;bottom:0;left:-1em;width:1em;background-color:rgb(var(--smoothly-table-expanded-background));border-left:0.3em solid rgb(var(--smoothly-table-detail-border, var(--smoothly-table-border)));box-shadow:2px 0px 0px 0px rgb(var(--smoothly-table-expanded-background)), 0px 0px 1px 0px rgb(var(--smoothly-table-border))}.sc-smoothly-table-expandable-row-h>div.smoothly-table-detail.sc-smoothly-table-expandable-row::after{content:"";position:absolute;display:flex;top:0;bottom:0;right:-1em;width:1em;background-color:rgb(var(--smoothly-table-expanded-background));box-shadow:-2px 0px 0px 0px rgb(var(--smoothly-table-expanded-background)), 0px 0px 1px 0px rgb(var(--smoothly-table-border))}`;const b=o(class o extends e{constructor(o){super();if(o!==false){this.__registerHost()}this.smoothlyTableExpandableRowChange=t(this,"smoothlyTableExpandableRowChange");this.open=false}clickHandler(o){var e,t;const l=this.div&&o.composedPath().includes(this.div);if(!l){const o=(e=window.getSelection())===null||e===void 0?void 0:e.toString().trim();if(((t=o===null||o===void 0?void 0:o.length)!==null&&t!==void 0?t:0)==0){this.open=!this.open}}}openChange(){this.smoothlyTableExpandableRowChange.emit(this.open)}render(){return l(a,{key:"
|
|
2
|
-
//# sourceMappingURL=p-
|
|
1
|
+
import{p as o,H as e,c as t,h as l,d as a,t as r}from"./p-BsZrGTcp.js";const s=()=>`.sc-smoothly-table-expandable-row-h{grid-column:1/-1;display:grid;grid-template-columns:subgrid;grid-template-rows:auto 0fr;box-shadow:0px 1px 1px -1px rgb(var(--smoothly-table-border))}.sc-smoothly-table-expandable-row-h.sc-smoothly-table-expandable-row-s>.smoothly-table-cell{grid:subgrid;cursor:pointer;grid-column:span var(--smoothly-table-cell-span, 1);display:flex;align-items:center;padding-inline:var(--smoothly-table-cell-padding-inline, 1.1rem);min-height:var(--smoothly-table-cell-min-height, 2.75rem);white-space:nowrap}.sc-smoothly-table-expandable-row-h:has(>.smoothly-table-cell:hover){background-color:rgb(var(--smoothly-table-hover-background));color:rgb(var(--smoothly-table-hover-foreground))}[open].sc-smoothly-table-expandable-row-h{background-color:rgb(var(--smoothly-table-expanded-background));color:rgb(var(--smoothly-table-expanded-foreground));grid-template-rows:auto 1fr;box-shadow:0px 1px 1px -1px rgb(var(--smoothly-table-border)), 0px 0px 1px rgb(var(--smoothly-table-border)) inset;grid-template-rows:0fr 1fr}.sc-smoothly-table-expandable-row-h:not([open])>div.smoothly-table-detail.sc-smoothly-table-expandable-row{display:none}.sc-smoothly-table-expandable-row-h>div.smoothly-table-detail.sc-smoothly-table-expandable-row{grid-column:1/-1;cursor:default;position:relative;overflow:hidden;background-color:rgb(var(--smoothly-table-expanded-background));color:rgb(var(--smoothly-table-expanded-foreground))}.sc-smoothly-table-expandable-row-h>.smoothly-table-cell.sc-smoothly-table-expandable-row:first-of-type{position:relative;padding-left:1.1rem}.sc-smoothly-table-expandable-row-h>.smoothly-table-cell.sc-smoothly-table-expandable-row:first-of-type::before{content:"";display:flex;position:absolute;top:50%;translate:0 -50%;height:0.4rem;width:0.4rem;left:0.3rem;border-bottom:1px solid rgb(var(--smoothly-table-foreground));border-right:1px solid rgb(var(--smoothly-table-foreground));transition:rotate 200ms ease-in-out;rotate:-45deg;opacity:0.3}.sc-smoothly-table-expandable-row-h:has(>.smoothly-table-cell:hover)>.smoothly-table-cell.sc-smoothly-table-expandable-row:first-of-type::before{border-bottom:1px solid rgb(var(--smoothly-table-hover-foreground));border-right:1px solid rgb(var(--smoothly-table-hover-foreground));opacity:1}[open].sc-smoothly-table-expandable-row-h>.smoothly-table-cell.sc-smoothly-table-expandable-row:first-of-type::before{rotate:45deg}[open].sc-smoothly-table-expandable-row-h>div.smoothly-table-detail.sc-smoothly-table-expandable-row{overflow:visible;padding-block:var(--smoothly-table-detail-padding-block, 0.5rem);padding-inline:var(--smoothly-table-detail-padding-inline, 1.1rem)}.sc-smoothly-table-expandable-row-h>div.smoothly-table-detail.sc-smoothly-table-expandable-row::before{content:"";position:absolute;display:flex;box-sizing:border-box;top:0;bottom:0;left:-1em;width:1em;background-color:rgb(var(--smoothly-table-expanded-background));border-left:0.3em solid rgb(var(--smoothly-table-detail-border, var(--smoothly-table-border)));box-shadow:2px 0px 0px 0px rgb(var(--smoothly-table-expanded-background)), 0px 0px 1px 0px rgb(var(--smoothly-table-border))}.sc-smoothly-table-expandable-row-h>div.smoothly-table-detail.sc-smoothly-table-expandable-row::after{content:"";position:absolute;display:flex;top:0;bottom:0;right:-1em;width:1em;background-color:rgb(var(--smoothly-table-expanded-background));box-shadow:-2px 0px 0px 0px rgb(var(--smoothly-table-expanded-background)), 0px 0px 1px 0px rgb(var(--smoothly-table-border))}`;const b=o(class o extends e{constructor(o){super();if(o!==false){this.__registerHost()}this.smoothlyTableExpandableRowChange=t(this,"smoothlyTableExpandableRowChange");this.open=false}clickHandler(o){var e,t;const l=this.div&&o.composedPath().includes(this.div);if(!l){const o=(e=window.getSelection())===null||e===void 0?void 0:e.toString().trim();if(((t=o===null||o===void 0?void 0:o.length)!==null&&t!==void 0?t:0)==0){this.open=!this.open}}}openChange(){this.smoothlyTableExpandableRowChange.emit(this.open)}render(){return l(a,{key:"9e84dfc3e17d085b3906f789b014670830079257",onClick:o=>this.clickHandler(o)},l("slot",{key:"550fa1569c00ef0a759958b9a731897dc379e7ca"}),l("div",{key:"b9f6d0b151720b77800c4d610f9682ea9b0a242e",class:"smoothly-table-detail",ref:o=>this.div=o},l("slot",{key:"6b693e48c396b4915a62700567859fa47e6b682e",name:"detail"})))}static get watchers(){return{open:[{openChange:0}]}}static get style(){return s()}},[262,"smoothly-table-expandable-row",{open:[1540]},undefined,{open:[{openChange:0}]}]);function d(){if(typeof customElements==="undefined"){return}const o=["smoothly-table-expandable-row"];o.forEach((o=>{switch(o){case"smoothly-table-expandable-row":if(!customElements.get(r(o))){customElements.define(r(o),b)}break}}))}d();export{b as S,d};
|
|
2
|
+
//# sourceMappingURL=p-BNCRANHq.js.map
|