smoothly 1.2.1-alpha.57 → 1.2.1-alpha.59
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/{redirect-fa5e9d71.js → Notice-43957905.js} +1 -10
- package/dist/cjs/Notice-43957905.js.map +1 -0
- package/dist/cjs/Submittable-c2f14f2a.js +47 -0
- package/dist/cjs/Submittable-c2f14f2a.js.map +1 -0
- package/dist/cjs/index.cjs.js +3 -2
- package/dist/cjs/index.cjs.js.map +1 -1
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/redirect-ae1fa359.js +13 -0
- package/dist/cjs/redirect-ae1fa359.js.map +1 -0
- package/dist/cjs/{smoothly-app_110.cjs.entry.js → smoothly-app_99.cjs.entry.js} +777 -1176
- package/dist/cjs/smoothly-app_99.cjs.entry.js.map +1 -0
- package/dist/cjs/smoothly-checkbox.cjs.entry.js +2 -2
- package/dist/cjs/smoothly-color.cjs.entry.js +1 -1
- package/dist/cjs/smoothly-country.cjs.entry.js +1 -1
- package/dist/cjs/smoothly-input-checkbox-demo.cjs.entry.js +1 -1
- package/dist/cjs/smoothly-submit.cjs.entry.js +47 -0
- package/dist/cjs/smoothly-submit.cjs.entry.js.map +1 -0
- 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/collection-manifest.json +11 -21
- package/dist/collection/components/app/demo/index.js +1 -1
- package/dist/collection/components/app/demo/index.js.map +1 -1
- package/dist/collection/components/app/index.js +9 -12
- package/dist/collection/components/app/index.js.map +1 -1
- package/dist/collection/components/app/room/index.js +7 -7
- package/dist/collection/components/app/room/index.js.map +1 -1
- package/dist/collection/components/app/style.css +1 -1
- package/dist/collection/components/back-to-top/index.js +2 -2
- package/dist/collection/components/burger/index.js +1 -1
- package/dist/collection/components/button/demo/index.js +3 -3
- package/dist/collection/components/button/index.js +1 -1
- package/dist/collection/components/calendar/index.js +2 -2
- package/dist/collection/components/checkbox/index.js +2 -2
- package/dist/collection/components/color/index.js +1 -1
- package/dist/collection/components/confirm/index.js +1 -1
- package/dist/collection/components/country/index.js +1 -1
- package/dist/collection/components/dialog/demo/index.js +1 -1
- package/dist/collection/components/dialog/index.js +1 -1
- package/dist/collection/components/display/demo/index.js +10 -10
- package/dist/collection/components/display/demo/json/index.js +1 -1
- package/dist/collection/components/display/index.js +3 -3
- package/dist/collection/components/display/json/index.js +1 -1
- package/dist/collection/components/display/json/object/index.js +2 -2
- package/dist/collection/components/display/json/object/key/index.js +1 -1
- package/dist/collection/components/display/json/primitive/index.js +1 -1
- package/dist/collection/components/filter/field/index.js +1 -1
- package/dist/collection/components/filter/index.js +3 -3
- package/dist/collection/components/filter/input/index.js +1 -1
- package/dist/collection/components/filter/select/index.js +1 -1
- package/dist/collection/components/filter/toggle/index.js +1 -1
- package/dist/collection/components/form/demo/all/index.js +2 -2
- package/dist/collection/components/form/demo/card/index.js +1 -1
- package/dist/collection/components/form/demo/controlled/index.js +1 -1
- package/dist/collection/components/form/demo/date/index.js +1 -1
- package/dist/collection/components/form/demo/date-range/index.js +1 -1
- package/dist/collection/components/form/demo/index.js +1 -1
- package/dist/collection/components/form/demo/login/index.js +1 -1
- package/dist/collection/components/form/demo/pet/index.js +2 -2
- package/dist/collection/components/form/demo/prices/index.js +1 -1
- package/dist/collection/components/form/demo/schedule/index.js +1 -1
- package/dist/collection/components/form/demo/transparent/index.js +1 -1
- package/dist/collection/components/form/demo/typed/index.js +1 -1
- package/dist/collection/components/form/index.js +1 -1
- package/dist/collection/components/icon/demo/index.js +1 -1
- package/dist/collection/components/icon/index.js +1 -1
- package/dist/collection/components/input/checkbox/demo/index.js +1 -1
- package/dist/collection/components/input/checkbox/index.js +1 -1
- package/dist/collection/components/input/clear/index.js +1 -1
- package/dist/collection/components/input/color/demo/index.js +1 -1
- package/dist/collection/components/input/color/index.js +2 -2
- package/dist/collection/components/input/date/index.js +3 -3
- package/dist/collection/components/input/date/range/index.js +2 -2
- package/dist/collection/components/input/demo/index.js +5 -5
- package/dist/collection/components/input/demo/price/index.js +1 -1
- package/dist/collection/components/input/demo/standard/index.js +1 -1
- package/dist/collection/components/input/edit/index.js +1 -1
- package/dist/collection/components/input/file/index.js +1 -1
- package/dist/collection/components/input/index.js +2 -2
- package/dist/collection/components/input/month/index.js +2 -2
- package/dist/collection/components/input/radio/index.js +1 -1
- package/dist/collection/components/input/radio/item/index.js +1 -1
- package/dist/collection/components/input/range/demo/index.js +1 -1
- package/dist/collection/components/input/range/index.js +4 -4
- package/dist/collection/components/input/reset/index.js +1 -1
- package/dist/collection/components/input/select/index.js +3 -3
- 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 +1 -1
- package/dist/collection/components/notification/index.js +1 -1
- package/dist/collection/components/notifier/index.js +2 -2
- 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/{next/table/foot → table/body}/index.js +3 -3
- package/dist/collection/components/table/body/index.js.map +1 -0
- package/dist/collection/components/table/cell/index.js +28 -2
- package/dist/collection/components/table/cell/index.js.map +1 -1
- package/dist/collection/components/table/cell/style.css +3 -38
- package/dist/collection/components/table/demo/colspan/index.js +19 -0
- package/dist/collection/components/table/demo/colspan/index.js.map +1 -0
- package/dist/collection/components/table/demo/filler-row/index.js +32 -0
- package/dist/collection/components/table/demo/filler-row/index.js.map +1 -0
- package/dist/collection/components/table/demo/filtered/index.js +5 -5
- package/dist/collection/components/table/demo/filtered/index.js.map +1 -1
- package/dist/collection/components/table/demo/filtered/style.css +27 -6
- package/dist/collection/components/table/demo/group/index.js +19 -0
- package/dist/collection/components/table/demo/group/index.js.map +1 -0
- package/dist/collection/components/table/demo/index.js +2 -2
- package/dist/collection/components/table/demo/index.js.map +1 -1
- package/dist/collection/components/table/demo/nested/data.js.map +1 -0
- package/dist/collection/components/table/demo/nested/index.js +20 -0
- package/dist/collection/components/table/demo/nested/index.js.map +1 -0
- package/dist/collection/components/table/demo/nested/inner/index.js +42 -0
- package/dist/collection/components/table/demo/nested/inner/index.js.map +1 -0
- package/dist/collection/components/table/demo/simple/simple.js +91 -0
- package/dist/collection/components/table/demo/simple/simple.js.map +1 -0
- package/dist/collection/components/table/demo/style.css +7 -15
- package/dist/collection/components/table/expandable/cell/index.js +60 -101
- package/dist/collection/components/table/expandable/cell/index.js.map +1 -1
- package/dist/collection/components/table/expandable/cell/style.css +84 -74
- package/dist/collection/components/table/expandable/row/index.js +15 -75
- package/dist/collection/components/table/expandable/row/index.js.map +1 -1
- package/dist/collection/components/table/expandable/row/style.css +80 -58
- package/dist/collection/components/table/{footer → filler-row}/index.js +3 -3
- package/dist/collection/components/table/filler-row/index.js.map +1 -0
- package/dist/collection/components/{next/table/body → table/foot}/index.js +3 -3
- package/dist/collection/components/table/foot/index.js.map +1 -0
- package/dist/collection/components/{next/table → table}/group/index.js +6 -6
- package/dist/collection/components/table/group/index.js.map +1 -0
- package/dist/collection/components/{next/table → table}/head/index.js +4 -4
- package/dist/collection/components/table/head/index.js.map +1 -0
- package/dist/collection/components/table/index.js +17 -184
- package/dist/collection/components/table/index.js.map +1 -1
- package/dist/collection/components/table/row/index.js +14 -49
- package/dist/collection/components/table/row/index.js.map +1 -1
- package/dist/collection/components/table/row/style.css +12 -7
- package/dist/collection/components/table/style.css +5 -12
- package/dist/collection/components/tabs/demo/index.js +1 -1
- package/dist/collection/components/tabs/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/index.js +1 -1
- 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-4d715f51.js → p-042f2916.js} +16 -16
- package/dist/components/{p-4d715f51.js.map → p-042f2916.js.map} +1 -1
- package/dist/components/{p-fe7fb697.js → p-08868cf6.js} +3 -3
- package/dist/components/{p-fe7fb697.js.map → p-08868cf6.js.map} +1 -1
- package/dist/components/{p-01e46e07.js → p-094ed472.js} +3 -3
- package/dist/components/{p-01e46e07.js.map → p-094ed472.js.map} +1 -1
- package/dist/components/p-09f490eb.js +45 -0
- package/dist/components/p-09f490eb.js.map +1 -0
- package/dist/components/{p-7a06dd40.js → p-0c8bbdc3.js} +2 -2
- package/dist/components/{p-7a06dd40.js.map → p-0c8bbdc3.js.map} +1 -1
- package/dist/components/p-0f875171.js +111 -0
- package/dist/components/p-0f875171.js.map +1 -0
- package/dist/components/{p-839a8483.js → p-10e9fffd.js} +8 -8
- package/dist/components/{p-839a8483.js.map → p-10e9fffd.js.map} +1 -1
- package/dist/components/{p-3b24abb3.js → p-14919a34.js} +7 -7
- package/dist/components/{p-3b24abb3.js.map → p-14919a34.js.map} +1 -1
- package/dist/components/{p-4bf18a05.js → p-14cdec8f.js} +6 -6
- package/dist/components/{p-4bf18a05.js.map → p-14cdec8f.js.map} +1 -1
- package/dist/components/{p-a9658c80.js → p-1c08a66c.js} +14 -14
- package/dist/components/{p-a9658c80.js.map → p-1c08a66c.js.map} +1 -1
- package/dist/components/{p-3abb83e1.js → p-1f8b583f.js} +14 -14
- package/dist/components/{p-3abb83e1.js.map → p-1f8b583f.js.map} +1 -1
- package/dist/components/{p-f46dd8e4.js → p-2020cb82.js} +2 -2
- package/dist/components/{p-f46dd8e4.js.map → p-2020cb82.js.map} +1 -1
- package/dist/components/{p-a6d5be12.js → p-2260439a.js} +5 -5
- package/dist/components/{p-a6d5be12.js.map → p-2260439a.js.map} +1 -1
- package/dist/components/p-227939ac.js +113 -0
- package/dist/components/p-227939ac.js.map +1 -0
- package/dist/components/{p-0954bd41.js → p-24515009.js} +9 -9
- package/dist/components/{p-0954bd41.js.map → p-24515009.js.map} +1 -1
- package/dist/components/{p-ffc32b0a.js → p-247d45e4.js} +4 -4
- package/dist/components/{p-ffc32b0a.js.map → p-247d45e4.js.map} +1 -1
- package/dist/components/{p-06dc96db.js → p-2a4f8b5d.js} +5 -5
- package/dist/components/{p-06dc96db.js.map → p-2a4f8b5d.js.map} +1 -1
- package/dist/components/p-2b457d53.js +43 -0
- package/dist/components/p-2b457d53.js.map +1 -0
- package/dist/components/{p-502e0d21.js → p-2da33fd6.js} +3 -3
- package/dist/components/{p-502e0d21.js.map → p-2da33fd6.js.map} +1 -1
- package/dist/components/p-3091ab20.js +33 -0
- package/dist/components/p-3091ab20.js.map +1 -0
- package/dist/components/{p-0ec86ae5.js → p-31ed661f.js} +6 -6
- package/dist/components/{p-0ec86ae5.js.map → p-31ed661f.js.map} +1 -1
- package/dist/components/p-3493b852.js +43 -0
- package/dist/components/p-3493b852.js.map +1 -0
- package/dist/components/{p-5d215e46.js → p-362344c7.js} +3 -3
- package/dist/components/{p-5d215e46.js.map → p-362344c7.js.map} +1 -1
- package/dist/components/p-36fc7efa.js +175 -0
- package/dist/components/{p-46a11b18.js.map → p-36fc7efa.js.map} +1 -1
- package/dist/components/p-3cf64d53.js +79 -0
- package/dist/components/{p-67fea2ad.js.map → p-3cf64d53.js.map} +1 -1
- package/dist/components/{p-a5e2882c.js → p-3ddd6b75.js} +44 -44
- package/dist/components/{p-a5e2882c.js.map → p-3ddd6b75.js.map} +1 -1
- package/dist/components/p-3de7ee44.js +248 -0
- package/dist/components/p-3de7ee44.js.map +1 -0
- package/dist/components/{p-fdbb3c45.js → p-429fe14e.js} +3 -3
- package/dist/components/{p-fdbb3c45.js.map → p-429fe14e.js.map} +1 -1
- package/dist/components/{p-ab9ef4cd.js → p-4325ac30.js} +2 -2
- package/dist/components/{p-ab9ef4cd.js.map → p-4325ac30.js.map} +1 -1
- package/dist/components/{p-0f3f35cd.js → p-43d17375.js} +4 -4
- package/dist/components/{p-0f3f35cd.js.map → p-43d17375.js.map} +1 -1
- package/dist/components/{p-0f2efeb4.js → p-4d5a6ec2.js} +3 -3
- package/dist/components/{p-0f2efeb4.js.map → p-4d5a6ec2.js.map} +1 -1
- package/dist/components/{p-3cc67e70.js → p-504a1092.js} +4 -4
- package/dist/components/{p-3cc67e70.js.map → p-504a1092.js.map} +1 -1
- package/dist/components/{p-1cae2a17.js → p-560d2bb0.js} +6 -6
- package/dist/components/{p-1cae2a17.js.map → p-560d2bb0.js.map} +1 -1
- package/dist/components/{p-0815868e.js → p-5da33c08.js} +3 -3
- package/dist/components/{p-0815868e.js.map → p-5da33c08.js.map} +1 -1
- package/dist/components/{p-5bc6d91a.js → p-60f63920.js} +3 -3
- package/dist/components/{p-5bc6d91a.js.map → p-60f63920.js.map} +1 -1
- package/dist/components/{p-5e5fe66d.js → p-63607aaf.js} +12 -12
- package/dist/components/{p-5e5fe66d.js.map → p-63607aaf.js.map} +1 -1
- package/dist/components/{p-6fbd1d1b.js → p-644cabb8.js} +4 -4
- package/dist/components/{p-6fbd1d1b.js.map → p-644cabb8.js.map} +1 -1
- package/dist/components/p-64b4b385.js +183 -0
- package/dist/components/p-64b4b385.js.map +1 -0
- package/dist/components/{p-af9fa1ec.js → p-68c3c1d1.js} +14 -14
- package/dist/components/{p-af9fa1ec.js.map → p-68c3c1d1.js.map} +1 -1
- package/dist/components/{p-7213de6a.js → p-69e70a2a.js} +32 -32
- package/dist/components/p-69e70a2a.js.map +1 -0
- package/dist/components/p-6d62d9ea.js +73 -0
- package/dist/components/p-6d62d9ea.js.map +1 -0
- package/dist/components/{p-96acfe2c.js → p-6ead1a42.js} +5 -5
- package/dist/components/{p-96acfe2c.js.map → p-6ead1a42.js.map} +1 -1
- package/dist/components/p-6fcbac60.js +241 -0
- package/dist/components/{p-8464b61b.js.map → p-6fcbac60.js.map} +1 -1
- package/dist/components/p-743a0ebb.js +48 -0
- package/dist/components/p-743a0ebb.js.map +1 -0
- package/dist/components/{p-1fe72dd7.js → p-7a7ebf23.js} +16 -16
- package/dist/components/{p-1fe72dd7.js.map → p-7a7ebf23.js.map} +1 -1
- package/dist/components/{p-8fe8aa96.js → p-7bd8aaec.js} +7 -7
- package/dist/components/{p-8fe8aa96.js.map → p-7bd8aaec.js.map} +1 -1
- package/dist/components/{p-f770567b.js → p-7c5243b2.js} +5 -5
- package/dist/components/{p-f770567b.js.map → p-7c5243b2.js.map} +1 -1
- package/dist/components/{p-929f3db7.js → p-7d219143.js} +4 -4
- package/dist/components/{p-929f3db7.js.map → p-7d219143.js.map} +1 -1
- package/dist/components/{p-9b76756f.js → p-7e0cd9fb.js} +3 -3
- package/dist/components/{p-9b76756f.js.map → p-7e0cd9fb.js.map} +1 -1
- package/dist/components/{p-27c832cc.js → p-8299713d.js} +4 -4
- package/dist/components/{p-27c832cc.js.map → p-8299713d.js.map} +1 -1
- package/dist/components/{p-1ffacca6.js → p-86affe58.js} +4 -4
- package/dist/components/{p-1ffacca6.js.map → p-86affe58.js.map} +1 -1
- package/dist/components/{p-41c24c7b.js → p-8a6020e5.js} +10 -10
- package/dist/components/{p-41c24c7b.js.map → p-8a6020e5.js.map} +1 -1
- package/dist/components/{p-aa4c856f.js → p-8ae87f20.js} +2 -2
- package/dist/components/{p-aa4c856f.js.map → p-8ae87f20.js.map} +1 -1
- package/dist/components/{p-6bc26f88.js → p-8bac1acd.js} +15 -18
- package/dist/components/p-8bac1acd.js.map +1 -0
- package/dist/components/{p-04a63714.js → p-8cc3d0e3.js} +26 -26
- package/dist/components/{p-04a63714.js.map → p-8cc3d0e3.js.map} +1 -1
- package/dist/components/p-8d3eea77.js +33 -0
- package/dist/components/p-8d3eea77.js.map +1 -0
- package/dist/components/{p-d2d74dcd.js → p-8f3652f7.js} +7 -7
- package/dist/components/{p-d2d74dcd.js.map → p-8f3652f7.js.map} +1 -1
- package/dist/components/{p-3d7229ae.js → p-9094994c.js} +15 -15
- package/dist/components/{p-3d7229ae.js.map → p-9094994c.js.map} +1 -1
- package/dist/components/p-91ab8d87.js +59 -0
- package/dist/components/p-91ab8d87.js.map +1 -0
- package/dist/components/{p-e7beb22a.js → p-93212505.js} +13 -13
- package/dist/components/{p-e7beb22a.js.map → p-93212505.js.map} +1 -1
- package/dist/components/{p-cfbebcab.js → p-9ca633ef.js} +5 -5
- package/dist/components/{p-cfbebcab.js.map → p-9ca633ef.js.map} +1 -1
- package/dist/components/p-a10dfe73.js +37 -0
- package/dist/components/p-a10dfe73.js.map +1 -0
- package/dist/components/{p-6d858db0.js → p-a12494c3.js} +2 -2
- package/dist/components/{p-6d858db0.js.map → p-a12494c3.js.map} +1 -1
- package/dist/components/{p-8c3ceb19.js → p-a4d10377.js} +2 -2
- package/dist/components/{p-8c3ceb19.js.map → p-a4d10377.js.map} +1 -1
- package/dist/components/{p-7d0eafb0.js → p-ac8bd5a6.js} +2 -2
- package/dist/components/{p-7d0eafb0.js.map → p-ac8bd5a6.js.map} +1 -1
- package/dist/components/{p-bea2bc37.js → p-b29d428e.js} +11 -11
- package/dist/components/p-b29d428e.js.map +1 -0
- package/dist/components/{p-4c6fe645.js → p-b4bb3e74.js} +2 -2
- package/dist/components/{p-4c6fe645.js.map → p-b4bb3e74.js.map} +1 -1
- package/dist/components/{p-4c8486d8.js → p-b859f52c.js} +2 -2
- package/dist/components/{p-4c8486d8.js.map → p-b859f52c.js.map} +1 -1
- package/dist/components/p-b9872a14.js +42 -0
- package/dist/components/p-b9872a14.js.map +1 -0
- package/dist/components/{p-8170f992.js → p-c08b7962.js} +2 -2
- package/dist/components/{p-8170f992.js.map → p-c08b7962.js.map} +1 -1
- package/dist/components/{p-d90c3b15.js → p-c09ccff8.js} +5 -5
- package/dist/components/{p-d90c3b15.js.map → p-c09ccff8.js.map} +1 -1
- package/dist/components/{p-3fe49e1b.js → p-c0d04daa.js} +64 -64
- package/dist/components/p-c0d04daa.js.map +1 -0
- package/dist/components/{p-00a413bd.js → p-c1657fad.js} +7 -7
- package/dist/components/{p-00a413bd.js.map → p-c1657fad.js.map} +1 -1
- package/dist/components/{p-45986407.js → p-c9725f74.js} +4 -4
- package/dist/components/{p-45986407.js.map → p-c9725f74.js.map} +1 -1
- package/dist/components/p-cdd3f111.js +176 -0
- package/dist/components/{p-2dae8122.js.map → p-cdd3f111.js.map} +1 -1
- package/dist/components/{p-55541a26.js → p-cdfc8c8f.js} +4 -4
- package/dist/components/{p-55541a26.js.map → p-cdfc8c8f.js.map} +1 -1
- package/dist/components/{p-dc42c9d4.js → p-ceb0de0e.js} +5 -5
- package/dist/components/{p-dc42c9d4.js.map → p-ceb0de0e.js.map} +1 -1
- package/dist/components/{p-90b74587.js → p-d0789231.js} +13 -13
- package/dist/components/{p-90b74587.js.map → p-d0789231.js.map} +1 -1
- package/dist/components/{p-f7fad196.js → p-d17f247a.js} +10 -10
- package/dist/components/{p-f7fad196.js.map → p-d17f247a.js.map} +1 -1
- package/dist/components/{p-a3c3ad07.js → p-d1853aae.js} +7 -7
- package/dist/components/{p-a3c3ad07.js.map → p-d1853aae.js.map} +1 -1
- package/dist/components/p-d2192112.js +123 -0
- package/dist/components/p-d2192112.js.map +1 -0
- package/dist/components/{p-a609accf.js → p-d4405943.js} +10 -10
- package/dist/components/{p-a609accf.js.map → p-d4405943.js.map} +1 -1
- package/dist/components/{p-2d004d53.js → p-d697ff97.js} +4 -4
- package/dist/components/{p-2d004d53.js.map → p-d697ff97.js.map} +1 -1
- package/dist/components/{p-54fbbfa4.js → p-d751764f.js} +5 -5
- package/dist/components/{p-54fbbfa4.js.map → p-d751764f.js.map} +1 -1
- package/dist/components/{p-c5709c44.js → p-d894d7a3.js} +14 -14
- package/dist/components/{p-c5709c44.js.map → p-d894d7a3.js.map} +1 -1
- package/dist/components/{p-1b80099c.js → p-db1e20a6.js} +12 -12
- package/dist/components/{p-1b80099c.js.map → p-db1e20a6.js.map} +1 -1
- package/dist/components/{p-06a48895.js → p-dcabe4e6.js} +9 -9
- package/dist/components/{p-06a48895.js.map → p-dcabe4e6.js.map} +1 -1
- package/dist/components/{p-1c549990.js → p-eb7a4468.js} +15 -15
- package/dist/components/{p-1c549990.js.map → p-eb7a4468.js.map} +1 -1
- package/dist/components/{p-9b6f904d.js → p-ee11968a.js} +15 -15
- package/dist/components/{p-9b6f904d.js.map → p-ee11968a.js.map} +1 -1
- package/dist/components/{p-3a4f9d45.js → p-ef65dd32.js} +3 -3
- package/dist/components/{p-3a4f9d45.js.map → p-ef65dd32.js.map} +1 -1
- package/dist/components/{p-5e421c1c.js → p-f1ca1646.js} +2 -2
- package/dist/components/{p-5e421c1c.js.map → p-f1ca1646.js.map} +1 -1
- package/dist/components/{p-418fee6e.js → p-f7f447ff.js} +31 -31
- package/dist/components/{p-418fee6e.js.map → p-f7f447ff.js.map} +1 -1
- package/dist/components/{p-2eb9a845.js → p-f9615b7e.js} +3 -3
- package/dist/components/{p-2eb9a845.js.map → p-f9615b7e.js.map} +1 -1
- package/dist/components/{p-4f80c811.js → p-f9770ff7.js} +8 -8
- package/dist/components/{p-4f80c811.js.map → p-f9770ff7.js.map} +1 -1
- package/dist/components/p-fb4d11d7.js +45 -0
- package/dist/components/{p-b7256688.js.map → p-fb4d11d7.js.map} +1 -1
- package/dist/components/{p-98f926b7.js → p-fd7fa70d.js} +11 -11
- package/dist/components/{p-98f926b7.js.map → p-fd7fa70d.js.map} +1 -1
- package/dist/components/smoothly-app-demo.js +183 -249
- package/dist/components/smoothly-app-demo.js.map +1 -1
- package/dist/components/smoothly-app-room.js +1 -1
- package/dist/components/smoothly-app.js +1 -1
- package/dist/components/smoothly-back-to-top.js +1 -1
- package/dist/components/smoothly-burger.js +1 -1
- package/dist/components/smoothly-button-confirm.js +1 -1
- package/dist/components/smoothly-button-demo.js +1 -1
- package/dist/components/smoothly-button.js +1 -1
- package/dist/components/smoothly-calendar.js +1 -1
- package/dist/components/smoothly-checkbox.js +3 -3
- package/dist/components/smoothly-color.js +1 -1
- package/dist/components/smoothly-country.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-json.js +1 -1
- package/dist/components/smoothly-display-demo.js +1 -1
- package/dist/components/smoothly-display-json-object.js +1 -1
- package/dist/components/smoothly-display-json-primitive.js +1 -1
- package/dist/components/smoothly-display-json-record-key.js +1 -1
- package/dist/components/smoothly-display-json.js +1 -1
- package/dist/components/smoothly-display.js +1 -1
- package/dist/components/smoothly-filter-field.js +1 -1
- package/dist/components/smoothly-filter-input.js +1 -1
- package/dist/components/smoothly-filter-select.js +1 -1
- package/dist/components/smoothly-filter-toggle.js +1 -1
- package/dist/components/smoothly-filter.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-icon.js +1 -1
- package/dist/components/smoothly-input-checkbox-demo.js +29 -29
- 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-range.js +1 -1
- package/dist/components/smoothly-input-date.js +1 -1
- package/dist/components/smoothly-input-demo-standard.js +1 -1
- package/dist/components/smoothly-input-demo.js +1 -1
- package/dist/components/smoothly-input-edit.js +1 -1
- package/dist/components/smoothly-input-file.js +1 -1
- package/dist/components/smoothly-input-month.js +1 -1
- package/dist/components/smoothly-input-price-demo.js +1 -1
- package/dist/components/smoothly-input-radio-item.js +1 -1
- package/dist/components/smoothly-input-radio.js +1 -1
- package/dist/components/smoothly-input-range-demo.js +1 -1
- package/dist/components/smoothly-input-range.js +1 -1
- package/dist/components/smoothly-input-reset.js +1 -1
- package/dist/components/smoothly-input-select.js +1 -1
- package/dist/components/smoothly-input-submit.js +1 -1
- package/dist/components/smoothly-input.js +1 -1
- package/dist/components/smoothly-item.js +1 -1
- package/dist/components/smoothly-label.js +1 -1
- package/dist/components/smoothly-lazy.js +1 -1
- package/dist/components/smoothly-load-more.js +1 -1
- package/dist/components/smoothly-modal.js +1 -1
- package/dist/components/smoothly-notification.js +1 -1
- package/dist/components/smoothly-notifier.js +1 -1
- package/dist/components/smoothly-spinner.js +1 -1
- package/dist/components/smoothly-submit.js +61 -1
- package/dist/components/smoothly-submit.js.map +1 -1
- package/dist/components/smoothly-summary.js +1 -1
- package/dist/components/smoothly-tab.js +1 -1
- package/dist/components/{smoothly-next-table.d.ts → smoothly-table-body.d.ts} +4 -4
- package/dist/components/smoothly-table-body.js +8 -0
- package/dist/components/smoothly-table-body.js.map +1 -0
- package/dist/components/smoothly-table-cell.js +2 -2
- package/dist/components/smoothly-table-demo-colspan.d.ts +11 -0
- package/dist/components/smoothly-table-demo-colspan.js +8 -0
- package/dist/components/smoothly-table-demo-colspan.js.map +1 -0
- package/dist/components/smoothly-table-demo-filler-row.d.ts +11 -0
- package/dist/components/smoothly-table-demo-filler-row.js +8 -0
- package/dist/components/smoothly-table-demo-filler-row.js.map +1 -0
- package/dist/components/smoothly-table-demo-filtered.js +1 -1
- package/dist/components/smoothly-table-demo-group.d.ts +11 -0
- package/dist/components/smoothly-table-demo-group.js +8 -0
- package/dist/components/smoothly-table-demo-group.js.map +1 -0
- package/dist/components/smoothly-table-demo-nested-inner.d.ts +11 -0
- package/dist/components/smoothly-table-demo-nested-inner.js +8 -0
- package/dist/components/smoothly-table-demo-nested-inner.js.map +1 -0
- package/dist/components/smoothly-table-demo-nested.d.ts +11 -0
- package/dist/components/smoothly-table-demo-nested.js +8 -0
- package/dist/components/smoothly-table-demo-nested.js.map +1 -0
- package/dist/components/smoothly-table-demo-simple.d.ts +11 -0
- package/dist/components/smoothly-table-demo-simple.js +8 -0
- package/dist/components/smoothly-table-demo-simple.js.map +1 -0
- package/dist/components/smoothly-table-demo.js +2 -2
- package/dist/components/smoothly-table-expandable-cell.js +2 -2
- package/dist/components/smoothly-table-expandable-row.js +2 -2
- package/dist/components/smoothly-table-filler-row.d.ts +11 -0
- package/dist/components/smoothly-table-filler-row.js +8 -0
- package/dist/components/smoothly-table-filler-row.js.map +1 -0
- package/dist/components/{smoothly-next-demo.d.ts → smoothly-table-foot.d.ts} +4 -4
- package/dist/components/smoothly-table-foot.js +8 -0
- package/dist/components/smoothly-table-foot.js.map +1 -0
- package/dist/components/{smoothly-table-header.d.ts → smoothly-table-head.d.ts} +4 -4
- package/dist/components/smoothly-table-head.js +8 -0
- package/dist/components/smoothly-table-head.js.map +1 -0
- package/dist/components/smoothly-table-row-group.d.ts +11 -0
- package/dist/components/smoothly-table-row-group.js +8 -0
- package/dist/components/smoothly-table-row-group.js.map +1 -0
- package/dist/components/smoothly-table-row.js +2 -2
- package/dist/components/smoothly-table.js +2 -2
- package/dist/components/smoothly-tabs-demo.js +1 -1
- package/dist/components/smoothly-tabs.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-toggle.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/{redirect-d5df22d5.js → Notice-7c6812b6.js} +2 -10
- package/dist/esm/Notice-7c6812b6.js.map +1 -0
- package/dist/esm/Submittable-dbe49d9c.js +45 -0
- package/dist/esm/Submittable-dbe49d9c.js.map +1 -0
- package/dist/esm/index.js +2 -1
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/loader.js +1 -1
- package/dist/esm/redirect-a45cf507.js +11 -0
- package/dist/esm/redirect-a45cf507.js.map +1 -0
- package/dist/esm/{smoothly-app_110.entry.js → smoothly-app_99.entry.js} +754 -1142
- package/dist/esm/smoothly-app_99.entry.js.map +1 -0
- package/dist/esm/smoothly-checkbox.entry.js +2 -2
- package/dist/esm/smoothly-color.entry.js +1 -1
- package/dist/esm/smoothly-country.entry.js +1 -1
- package/dist/esm/smoothly-input-checkbox-demo.entry.js +1 -1
- package/dist/{components/p-d43444b9.js → esm/smoothly-submit.entry.js} +13 -35
- package/dist/esm/smoothly-submit.entry.js.map +1 -0
- 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/index.esm.js +1 -1
- package/dist/smoothly/index.esm.js.map +1 -1
- package/dist/smoothly/p-184bd3b9.js +2 -0
- package/dist/smoothly/p-184bd3b9.js.map +1 -0
- package/dist/smoothly/{p-6898f66b.entry.js → p-365384f9.entry.js} +2 -2
- package/dist/smoothly/{p-3ede8604.entry.js → p-534c56da.entry.js} +2 -2
- package/dist/smoothly/{p-152fd0d7.entry.js → p-6f7a9008.entry.js} +2 -2
- package/dist/smoothly/{p-7459cf1d.entry.js → p-8554afef.entry.js} +2 -2
- package/dist/smoothly/p-90229763.entry.js +2 -0
- package/dist/smoothly/{p-75a26859.entry.js → p-985f54f2.entry.js} +2 -2
- package/dist/smoothly/p-bcfdff85.entry.js +2 -0
- package/dist/smoothly/p-bcfdff85.entry.js.map +1 -0
- package/dist/smoothly/p-ef01331e.js +2 -0
- package/dist/smoothly/p-ef01331e.js.map +1 -0
- package/dist/smoothly/p-ef377b79.js +2 -0
- package/dist/smoothly/p-ef377b79.js.map +1 -0
- package/dist/smoothly/p-f56598b8.entry.js +2 -0
- package/dist/smoothly/p-f56598b8.entry.js.map +1 -0
- package/dist/smoothly/smoothly.esm.js +1 -1
- package/dist/smoothly/smoothly.esm.js.map +1 -1
- package/dist/types/components/app/room/index.d.ts +2 -2
- package/dist/types/components/{next/demo → table/body}/index.d.ts +1 -1
- package/dist/types/components/table/cell/index.d.ts +4 -2
- package/dist/types/components/{next/demo/group → table/demo/colspan}/index.d.ts +1 -1
- package/dist/types/components/{next/demo/fillerRow/filleRowDemo.d.ts → table/demo/filler-row/index.d.ts} +1 -1
- package/dist/types/components/{next/table/foot → table/demo/group}/index.d.ts +1 -1
- package/dist/types/components/table/demo/index.d.ts +3 -2
- package/dist/types/components/{next/demo/colspan → table/demo/nested}/index.d.ts +1 -1
- package/dist/types/components/{next → table}/demo/nested/inner/index.d.ts +1 -1
- package/dist/types/components/{next → table}/demo/simple/simple.d.ts +1 -1
- package/dist/types/components/table/expandable/cell/index.d.ts +9 -19
- package/dist/types/components/table/expandable/row/index.d.ts +7 -14
- package/dist/types/components/table/filler-row/index.d.ts +4 -0
- package/dist/types/components/table/foot/index.d.ts +4 -0
- package/dist/types/components/table/group/index.d.ts +8 -0
- package/dist/types/components/{next/table → table}/head/index.d.ts +3 -3
- package/dist/types/components/table/index.d.ts +7 -29
- package/dist/types/components/table/row/index.d.ts +7 -8
- package/dist/types/components.d.ts +180 -388
- package/package.json +1 -1
- package/dist/cjs/redirect-fa5e9d71.js.map +0 -1
- package/dist/cjs/smoothly-app_110.cjs.entry.js.map +0 -1
- package/dist/collection/components/next/demo/colspan/index.js +0 -19
- package/dist/collection/components/next/demo/colspan/index.js.map +0 -1
- package/dist/collection/components/next/demo/fillerRow/filleRowDemo.js +0 -32
- package/dist/collection/components/next/demo/fillerRow/filleRowDemo.js.map +0 -1
- package/dist/collection/components/next/demo/filtered/Root.js +0 -2
- package/dist/collection/components/next/demo/filtered/Root.js.map +0 -1
- package/dist/collection/components/next/demo/filtered/index.js +0 -84
- package/dist/collection/components/next/demo/filtered/index.js.map +0 -1
- package/dist/collection/components/next/demo/filtered/style.css +0 -33
- package/dist/collection/components/next/demo/group/index.js +0 -19
- package/dist/collection/components/next/demo/group/index.js.map +0 -1
- package/dist/collection/components/next/demo/index.js +0 -19
- package/dist/collection/components/next/demo/index.js.map +0 -1
- package/dist/collection/components/next/demo/nested/data.js.map +0 -1
- package/dist/collection/components/next/demo/nested/index.js +0 -20
- package/dist/collection/components/next/demo/nested/index.js.map +0 -1
- package/dist/collection/components/next/demo/nested/inner/index.js +0 -42
- package/dist/collection/components/next/demo/nested/inner/index.js.map +0 -1
- package/dist/collection/components/next/demo/simple/simple.js +0 -91
- package/dist/collection/components/next/demo/simple/simple.js.map +0 -1
- package/dist/collection/components/next/demo/style.css +0 -9
- package/dist/collection/components/next/table/body/index.js.map +0 -1
- package/dist/collection/components/next/table/cell/index.js +0 -45
- package/dist/collection/components/next/table/cell/index.js.map +0 -1
- package/dist/collection/components/next/table/cell/style.css +0 -7
- package/dist/collection/components/next/table/expandable/cell/index.js +0 -136
- package/dist/collection/components/next/table/expandable/cell/index.js.map +0 -1
- package/dist/collection/components/next/table/expandable/cell/style.css +0 -98
- package/dist/collection/components/next/table/expandable/row/index.js +0 -75
- package/dist/collection/components/next/table/expandable/row/index.js.map +0 -1
- package/dist/collection/components/next/table/expandable/row/style.css +0 -93
- package/dist/collection/components/next/table/fillerRow/index.js +0 -19
- package/dist/collection/components/next/table/fillerRow/index.js.map +0 -1
- package/dist/collection/components/next/table/foot/index.js.map +0 -1
- package/dist/collection/components/next/table/group/index.js.map +0 -1
- package/dist/collection/components/next/table/head/index.js.map +0 -1
- package/dist/collection/components/next/table/index.js +0 -65
- package/dist/collection/components/next/table/index.js.map +0 -1
- package/dist/collection/components/next/table/row/index.js +0 -46
- package/dist/collection/components/next/table/row/index.js.map +0 -1
- package/dist/collection/components/next/table/row/style.css +0 -16
- package/dist/collection/components/next/table/style.css +0 -7
- package/dist/collection/components/table/demo/testing/data.js +0 -28
- package/dist/collection/components/table/demo/testing/data.js.map +0 -1
- package/dist/collection/components/table/demo/testing/index.js +0 -28
- package/dist/collection/components/table/demo/testing/index.js.map +0 -1
- package/dist/collection/components/table/demo/testing/style.css +0 -32
- package/dist/collection/components/table/footer/index.js.map +0 -1
- package/dist/collection/components/table/footer/style.css +0 -10
- package/dist/collection/components/table/header/index.js +0 -43
- package/dist/collection/components/table/header/index.js.map +0 -1
- package/dist/collection/components/table/header/style.css +0 -18
- package/dist/components/p-01972376.js +0 -43
- package/dist/components/p-01972376.js.map +0 -1
- package/dist/components/p-07a7f693.js +0 -42
- package/dist/components/p-07a7f693.js.map +0 -1
- package/dist/components/p-0ac28033.js +0 -37
- package/dist/components/p-0ac28033.js.map +0 -1
- package/dist/components/p-113a667e.js +0 -63
- package/dist/components/p-113a667e.js.map +0 -1
- package/dist/components/p-185c4c28.js +0 -210
- package/dist/components/p-185c4c28.js.map +0 -1
- package/dist/components/p-1a2ea4ee.js +0 -74
- package/dist/components/p-1a2ea4ee.js.map +0 -1
- package/dist/components/p-22f9ee8d.js +0 -39
- package/dist/components/p-22f9ee8d.js.map +0 -1
- package/dist/components/p-2dae8122.js +0 -176
- package/dist/components/p-336b6683.js +0 -33
- package/dist/components/p-336b6683.js.map +0 -1
- package/dist/components/p-363c6830.js +0 -33
- package/dist/components/p-363c6830.js.map +0 -1
- package/dist/components/p-39d00180.js +0 -183
- package/dist/components/p-39d00180.js.map +0 -1
- package/dist/components/p-3fe49e1b.js.map +0 -1
- package/dist/components/p-40b58873.js +0 -113
- package/dist/components/p-40b58873.js.map +0 -1
- package/dist/components/p-46a11b18.js +0 -175
- package/dist/components/p-499d84e9.js +0 -123
- package/dist/components/p-499d84e9.js.map +0 -1
- package/dist/components/p-6653a32e.js +0 -33
- package/dist/components/p-6653a32e.js.map +0 -1
- package/dist/components/p-67fea2ad.js +0 -79
- package/dist/components/p-6bc26f88.js.map +0 -1
- package/dist/components/p-6ddbdb76.js +0 -59
- package/dist/components/p-6ddbdb76.js.map +0 -1
- package/dist/components/p-7213de6a.js.map +0 -1
- package/dist/components/p-7b7d24e4.js +0 -48
- package/dist/components/p-7b7d24e4.js.map +0 -1
- package/dist/components/p-7e73e2ab.js +0 -210
- package/dist/components/p-7e73e2ab.js.map +0 -1
- package/dist/components/p-80ad9aac.js +0 -43
- package/dist/components/p-80ad9aac.js.map +0 -1
- package/dist/components/p-8464b61b.js +0 -241
- package/dist/components/p-8f65b082.js +0 -88
- package/dist/components/p-8f65b082.js.map +0 -1
- package/dist/components/p-a6429017.js +0 -111
- package/dist/components/p-a6429017.js.map +0 -1
- package/dist/components/p-b7256688.js +0 -45
- package/dist/components/p-b872c4bf.js +0 -43
- package/dist/components/p-b872c4bf.js.map +0 -1
- package/dist/components/p-bea2bc37.js.map +0 -1
- package/dist/components/p-cdc9a9c8.js +0 -207
- package/dist/components/p-cdc9a9c8.js.map +0 -1
- package/dist/components/p-ce278389.js +0 -73
- package/dist/components/p-ce278389.js.map +0 -1
- package/dist/components/p-d43444b9.js.map +0 -1
- package/dist/components/p-d5f38ffe.js +0 -45
- package/dist/components/p-d5f38ffe.js.map +0 -1
- package/dist/components/p-f09278ff.js +0 -36
- package/dist/components/p-f09278ff.js.map +0 -1
- package/dist/components/p-fdeef763.js +0 -166
- package/dist/components/p-fdeef763.js.map +0 -1
- package/dist/components/p-fe691816.js +0 -52
- package/dist/components/p-fe691816.js.map +0 -1
- package/dist/components/smoothly-next-demo-colspan.d.ts +0 -11
- package/dist/components/smoothly-next-demo-colspan.js +0 -8
- package/dist/components/smoothly-next-demo-colspan.js.map +0 -1
- package/dist/components/smoothly-next-demo-filler-row-demo.d.ts +0 -11
- package/dist/components/smoothly-next-demo-filler-row-demo.js +0 -8
- package/dist/components/smoothly-next-demo-filler-row-demo.js.map +0 -1
- package/dist/components/smoothly-next-demo-group.d.ts +0 -11
- package/dist/components/smoothly-next-demo-group.js +0 -8
- package/dist/components/smoothly-next-demo-group.js.map +0 -1
- package/dist/components/smoothly-next-demo-nested-inner.d.ts +0 -11
- package/dist/components/smoothly-next-demo-nested-inner.js +0 -8
- package/dist/components/smoothly-next-demo-nested-inner.js.map +0 -1
- package/dist/components/smoothly-next-demo-nested.d.ts +0 -11
- package/dist/components/smoothly-next-demo-nested.js +0 -8
- package/dist/components/smoothly-next-demo-nested.js.map +0 -1
- package/dist/components/smoothly-next-demo-simple.d.ts +0 -11
- package/dist/components/smoothly-next-demo-simple.js +0 -8
- package/dist/components/smoothly-next-demo-simple.js.map +0 -1
- package/dist/components/smoothly-next-demo.js +0 -8
- package/dist/components/smoothly-next-demo.js.map +0 -1
- package/dist/components/smoothly-next-table-body.d.ts +0 -11
- package/dist/components/smoothly-next-table-body.js +0 -8
- package/dist/components/smoothly-next-table-body.js.map +0 -1
- package/dist/components/smoothly-next-table-cell.d.ts +0 -11
- package/dist/components/smoothly-next-table-cell.js +0 -8
- package/dist/components/smoothly-next-table-cell.js.map +0 -1
- package/dist/components/smoothly-next-table-demo-filtered.d.ts +0 -11
- package/dist/components/smoothly-next-table-demo-filtered.js +0 -8
- package/dist/components/smoothly-next-table-demo-filtered.js.map +0 -1
- package/dist/components/smoothly-next-table-expandable-cell.d.ts +0 -11
- package/dist/components/smoothly-next-table-expandable-cell.js +0 -8
- package/dist/components/smoothly-next-table-expandable-cell.js.map +0 -1
- package/dist/components/smoothly-next-table-expandable-row.d.ts +0 -11
- package/dist/components/smoothly-next-table-expandable-row.js +0 -8
- package/dist/components/smoothly-next-table-expandable-row.js.map +0 -1
- package/dist/components/smoothly-next-table-filler-row.d.ts +0 -11
- package/dist/components/smoothly-next-table-filler-row.js +0 -8
- package/dist/components/smoothly-next-table-filler-row.js.map +0 -1
- package/dist/components/smoothly-next-table-foot.d.ts +0 -11
- package/dist/components/smoothly-next-table-foot.js +0 -8
- package/dist/components/smoothly-next-table-foot.js.map +0 -1
- package/dist/components/smoothly-next-table-head.d.ts +0 -11
- package/dist/components/smoothly-next-table-head.js +0 -8
- package/dist/components/smoothly-next-table-head.js.map +0 -1
- package/dist/components/smoothly-next-table-row-group.d.ts +0 -11
- package/dist/components/smoothly-next-table-row-group.js +0 -8
- package/dist/components/smoothly-next-table-row-group.js.map +0 -1
- package/dist/components/smoothly-next-table-row.d.ts +0 -11
- package/dist/components/smoothly-next-table-row.js +0 -8
- package/dist/components/smoothly-next-table-row.js.map +0 -1
- package/dist/components/smoothly-next-table.js +0 -8
- package/dist/components/smoothly-next-table.js.map +0 -1
- package/dist/components/smoothly-table-footer.d.ts +0 -11
- package/dist/components/smoothly-table-footer.js +0 -8
- package/dist/components/smoothly-table-footer.js.map +0 -1
- package/dist/components/smoothly-table-header.js +0 -8
- package/dist/components/smoothly-table-header.js.map +0 -1
- package/dist/components/smoothly-table-testing.d.ts +0 -11
- package/dist/components/smoothly-table-testing.js +0 -8
- package/dist/components/smoothly-table-testing.js.map +0 -1
- package/dist/esm/redirect-d5df22d5.js.map +0 -1
- package/dist/esm/smoothly-app_110.entry.js.map +0 -1
- package/dist/smoothly/p-86de151a.entry.js +0 -2
- package/dist/smoothly/p-86de151a.entry.js.map +0 -1
- package/dist/smoothly/p-c35d7ab7.entry.js +0 -2
- package/dist/smoothly/p-c3f85494.js +0 -2
- package/dist/smoothly/p-c3f85494.js.map +0 -1
- package/dist/types/components/next/demo/filtered/Root.d.ts +0 -29
- package/dist/types/components/next/demo/filtered/index.d.ts +0 -13
- package/dist/types/components/next/demo/nested/index.d.ts +0 -4
- package/dist/types/components/next/table/body/index.d.ts +0 -4
- package/dist/types/components/next/table/cell/index.d.ts +0 -5
- package/dist/types/components/next/table/expandable/cell/index.d.ts +0 -12
- package/dist/types/components/next/table/expandable/row/index.d.ts +0 -9
- package/dist/types/components/next/table/fillerRow/index.d.ts +0 -4
- package/dist/types/components/next/table/group/index.d.ts +0 -8
- package/dist/types/components/next/table/index.d.ts +0 -8
- package/dist/types/components/next/table/row/index.d.ts +0 -8
- package/dist/types/components/table/demo/testing/data.d.ts +0 -5
- package/dist/types/components/table/demo/testing/index.d.ts +0 -4
- package/dist/types/components/table/footer/index.d.ts +0 -3
- package/dist/types/components/table/header/index.d.ts +0 -4
- /package/dist/collection/components/{next/table → table}/body/style.css +0 -0
- /package/dist/collection/components/{next → table}/demo/colspan/style.css +0 -0
- /package/dist/collection/components/{next/demo/fillerRow → table/demo/filler-row}/style.css +0 -0
- /package/dist/collection/components/{next → table}/demo/group/style.css +0 -0
- /package/dist/collection/components/{next → table}/demo/nested/data.js +0 -0
- /package/dist/collection/components/{next → table}/demo/nested/inner/style.css +0 -0
- /package/dist/collection/components/{next → table}/demo/nested/style.css +0 -0
- /package/dist/collection/components/{next → table}/demo/simple/style.css +0 -0
- /package/dist/collection/components/{next/table/fillerRow → table/filler-row}/style.css +0 -0
- /package/dist/collection/components/{next/table → table}/foot/style.css +0 -0
- /package/dist/collection/components/{next/table → table}/group/style.css +0 -0
- /package/dist/collection/components/{next/table → table}/head/style.css +0 -0
- /package/dist/smoothly/{p-6898f66b.entry.js.map → p-365384f9.entry.js.map} +0 -0
- /package/dist/smoothly/{p-3ede8604.entry.js.map → p-534c56da.entry.js.map} +0 -0
- /package/dist/smoothly/{p-152fd0d7.entry.js.map → p-6f7a9008.entry.js.map} +0 -0
- /package/dist/smoothly/{p-7459cf1d.entry.js.map → p-8554afef.entry.js.map} +0 -0
- /package/dist/smoothly/{p-c35d7ab7.entry.js.map → p-90229763.entry.js.map} +0 -0
- /package/dist/smoothly/{p-75a26859.entry.js.map → p-985f54f2.entry.js.map} +0 -0
- /package/dist/types/components/{next → table}/demo/nested/data.d.ts +0 -0
|
@@ -4,9 +4,11 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
4
4
|
|
|
5
5
|
const index = require('./index-ba6d0734.js');
|
|
6
6
|
const Scrollable = require('./Scrollable-20426515.js');
|
|
7
|
+
const Submittable = require('./Submittable-c2f14f2a.js');
|
|
7
8
|
const TimeZone = require('./TimeZone-c7477083.js');
|
|
8
|
-
const
|
|
9
|
+
const Notice = require('./Notice-43957905.js');
|
|
9
10
|
const en = require('./en-f4546147.js');
|
|
11
|
+
require('./redirect-ae1fa359.js');
|
|
10
12
|
|
|
11
13
|
function any(name) {
|
|
12
14
|
return new IslyAny(name ?? "any");
|
|
@@ -21,8 +23,8 @@ function getLocale() {
|
|
|
21
23
|
return TimeZone.Locale.is(result) ? result : TimeZone.Language.is(result) ? TimeZone.Locale.toLocale(result) : undefined;
|
|
22
24
|
}
|
|
23
25
|
|
|
24
|
-
const styleCss$
|
|
25
|
-
const SmoothlyAppStyle0 = styleCss$
|
|
26
|
+
const styleCss$1l = "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}header:has(smoothly-burger[visible])>nav>ul smoothly-app-room{width:100%;height:4em}smoothly-app>smoothly-notifier>header{position:sticky;top:0;z-index:5;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))}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}@media screen and (max-width: 900px){smoothly-app>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-notifier>header>nav,smoothly-app>smoothly-notifier>header>nav>ul{flex-direction:column;background-color:rgba(var(--smoothly-color))}smoothly-app>smoothly-notifier>header>nav>ul{padding:1.5rem;box-sizing:border-box}smoothly-app>smoothly-notifier>header>nav>ul li{margin-right:0;width:100%}smoothly-app>smoothly-notifier>header>smoothly-burger{position:absolute;top:0;right:0}smoothly-app>smoothly-notifier>header>nav>ul>[slot=\"nav-start\"]{display:none}smoothly-app>smoothly-notifier>header>nav>ul>div.nav-start-container,smoothly-app>smoothly-notifier>header>nav>ul>div.nav-end-container{flex-direction:column;margin:0;align-items:start;justify-content:center}smoothly-app>smoothly-notifier>header>nav>ul>div.nav-start-container>*:last-child{margin-bottom:1em}}smoothly-app:not([menu-open])>smoothly-notifier>header>nav{display:none}smoothly-app>smoothly-notifier>main>div{overflow-y:scroll;height:100%}";
|
|
27
|
+
const SmoothlyAppStyle0 = styleCss$1l;
|
|
26
28
|
|
|
27
29
|
const SmoothlyApp = class {
|
|
28
30
|
constructor(hostRef) {
|
|
@@ -49,10 +51,10 @@ const SmoothlyApp = class {
|
|
|
49
51
|
var _a;
|
|
50
52
|
Object.values(this.rooms).forEach(room => { var _a; return (room === null || room === void 0 ? void 0 : room.element.path) != ((_a = this.selected) === null || _a === void 0 ? void 0 : _a.element.path) && (room === null || room === void 0 ? void 0 : room.element.setSelected(false)); });
|
|
51
53
|
const content = await ((_a = this.selected) === null || _a === void 0 ? void 0 : _a.element.getContent());
|
|
52
|
-
|
|
53
|
-
this.mainElement
|
|
54
|
-
|
|
55
|
-
}
|
|
54
|
+
requestAnimationFrame(() => {
|
|
55
|
+
if (this.mainElement && content)
|
|
56
|
+
this.mainElement.replaceChildren(content);
|
|
57
|
+
});
|
|
56
58
|
}
|
|
57
59
|
burgerVisibilityHandler(event) {
|
|
58
60
|
this.burgerVisibility = event.detail;
|
|
@@ -84,14 +86,11 @@ const SmoothlyApp = class {
|
|
|
84
86
|
}
|
|
85
87
|
}
|
|
86
88
|
clickHandler(event) {
|
|
87
|
-
if (this.burgerVisibility)
|
|
88
|
-
|
|
89
|
-
;
|
|
90
|
-
else
|
|
91
|
-
this.menuOpen = false;
|
|
89
|
+
if (this.burgerVisibility && !event.composedPath().some(e => e == this.burgerElement || e == this.navElement))
|
|
90
|
+
this.menuOpen = false;
|
|
92
91
|
}
|
|
93
92
|
render() {
|
|
94
|
-
return (index.h("smoothly-notifier", { key: '
|
|
93
|
+
return (index.h("smoothly-notifier", { key: 'ca8596edab7ca03d2790ac426dae3ed2b0a016e5' }, index.h("header", { key: 'd1d3c3b9aadde6e8ac48f6e2a0ed1dbda13efaca', color: this.color }, index.h("h1", { key: '299cec593915416e4cbb909a9184863a5d873203' }, index.h("a", { key: '97c7829f4faf239c853eaf96355ebc40871e9827', href: "" }, this.label)), index.h("slot", { key: '199d31b149daaeb1cd9b5323dba192dda646ecb8', name: "header" }), index.h("nav", { key: 'a4b4229f4a441c44c11fc191f3148c28bb0bfb77', ref: e => (this.navElement = e) }, index.h("ul", { key: '83d549969e763e30e1b9b7f93319588637dea8a8' }, index.h("div", { key: '2e668a0eca12985f4c134ba47b04eae2888dd487', class: "nav-start-container" }, index.h("slot", { key: '2b38080d9a134492fa81c2d902331fb9c7bb6fbb', name: "nav-start" })), index.h("slot", { key: '7a4264888094eeafebff0f1b608a440f721c7d80' }), index.h("div", { key: '7db0a3a05fdb6e8c8c22cafb01aeb1d7099a6f8b', class: "nav-end-container" }, index.h("slot", { key: '7edaccd0522fdece150fd91d5dd8bfa8f7399b71', name: "nav-end" })))), index.h("smoothly-burger", { key: '5228e136cd1af7109fcc6556a9745c3db170a4c6', ref: e => (this.burgerElement = e), open: this.menuOpen, onSmoothlyNavStatus: e => this.burgerStatusHandler(e), onSmoothlyVisibleStatus: e => this.burgerVisibilityHandler(e) })), index.h("main", { key: '13e58905f69f051662d77529c7f5bedc7fb82572', ref: e => (this.mainElement = e) })));
|
|
95
94
|
}
|
|
96
95
|
static get watchers() { return {
|
|
97
96
|
"selected": ["selectedChanged"]
|
|
@@ -105,7 +104,7 @@ const SmoothlyAppDemo = class {
|
|
|
105
104
|
this.baseUrl = undefined;
|
|
106
105
|
}
|
|
107
106
|
render() {
|
|
108
|
-
return (index.h("smoothly-app", { key: 'aa798117a543b094b87cd4f794e41c2c62eedcf5', color: "dark", label: "Smoothly Demo", home: "/root", ref: e => (this.app = e) }, index.h("smoothly-trigger", { key: '8576545a5f1408fe488c80ca5a0856650d3d5b49', slot: "nav-start", type: "link", name: "logout" }, index.h("smoothly-icon", { key: '193f43f5a6d919ba06eec2a08149ed2374aee06f', toolTip: "Log out", name: "log-out", size: "medium" })), index.h("smoothly-app-room", { key: 'e8844d73ceb204d13bfc279e946a0bac80dc4d68', path: "/root", label: "root" }, index.h("smoothly-theme-demo", { key: '6cb3d1813bf4d9fe930ef3ed82215aac2af0d628' })), index.h("smoothly-app-room", { key: 'cbf46329c16c64a199535b1553e7a8c672529fbc', path: "/links", label: "Links" }, index.h("smoothly-input", { key: '4a9793a5fcca2a9addc6090c9c0cd671b1ebbd24', type: "text" }, "Default"), index.h("div", { key: '14eeb3c49e15d784862c4f6e9d59c8a3d8da7963', style: { padding: "1em", maxWidth: "12em" } }, index.h("smoothly-button", { key: '31b4d3395c2591401eb6dab6da14d6caac0411fe', fill: "solid", color: "danger", link: "https://google.com" }, "open"), index.h("smoothly-button", { key: 'bfad0b8b15643d8d31c85ee11a9c0e84db2ab6c9', fill: "solid", color: "danger", link: "https://www.w3.org/WAI/ER/tests/xhtml/testfiles/resources/pdf/dummy.pdf", type: "download" }, "download"), index.h("smoothly-button", { key: 'bebe8268049b005938a50db82b40c0ee87612743', fill: "solid", color: "danger", onClick: () => alert("clicked") }, "action"), index.h("smoothly-button", { key: 'e29cddc1f4bfd034dde47491361278c6ce87ba7d', disabled: true, fill: "solid", color: "danger", onClick: () => alert("clicked") }, "action"), index.h("smoothly-button", { key: 'd8cc0600b0632998ba1b869ad084edab91fad2e5', type: "link", fill: "clear", color: "danger", onClick: () => alert("clicked") }, "action link"))), index.h("smoothly-app-room", { key: 'ac76d59a6a1abf64390f2abf922d5f5a6dee1669', path: "/form", label: "Form" }, index.h("smoothly-form-demo", { key: '0bdc1d11f5b8f934dda4ff392458b08d4a70be3f' })), index.h("smoothly-app-room", { key: '4563223ad6f765c0939cc30cd45dc30cd5d69032', path: "/input", label: "Input" }, index.h("smoothly-input-demo", { key: '375c06afd265f6307fc66e93c9835dc49ce3e6d6' })), index.h("smoothly-app-room", { key: '42e0a3a236f724591145301dd9df043f679af9ee', path: "/button", label: "Button" }, index.h("smoothly-button-demo", { key: '5901292f12d2d24973a2cf5387508a431803b2e8' })), index.h("smoothly-app-room", { key: 'd4a8784af2165b95cfc42aff5ca3be1e5c958e87', path: "/dialog", label: "Dialog" }, index.h("smoothly-dialog-demo", { key: '35c854b7844271e48d3f0e6533f9306c8464baf0' })), index.h("smoothly-app-room", { key: 'e2ad58e1f1265d3a5027cd3f224083e40d5973f7', path: "/display", label: "Display", icon: "eye-outline" }, index.h("smoothly-display-demo", { key: '2bfc57d7150503495f8b12d2ed3d9ec7d5d89a88' })), index.h("smoothly-app-room", { key: '8d586a62c12cf26864db2f247ad12681f590a77d', path: "/table", label: "Table" }, index.h("smoothly-table-demo", { key: '38415d9b5ce66403af5628b3348410592e67fa23' })), index.h("smoothly-app-room", { key: '
|
|
107
|
+
return (index.h("smoothly-app", { key: 'aa798117a543b094b87cd4f794e41c2c62eedcf5', color: "dark", label: "Smoothly Demo", home: "/root", ref: e => (this.app = e) }, index.h("smoothly-trigger", { key: '8576545a5f1408fe488c80ca5a0856650d3d5b49', slot: "nav-start", type: "link", name: "logout" }, index.h("smoothly-icon", { key: '193f43f5a6d919ba06eec2a08149ed2374aee06f', toolTip: "Log out", name: "log-out", size: "medium" })), index.h("smoothly-app-room", { key: 'e8844d73ceb204d13bfc279e946a0bac80dc4d68', path: "/root", label: "root" }, index.h("smoothly-theme-demo", { key: '6cb3d1813bf4d9fe930ef3ed82215aac2af0d628' })), index.h("smoothly-app-room", { key: 'cbf46329c16c64a199535b1553e7a8c672529fbc', path: "/links", label: "Links" }, index.h("smoothly-input", { key: '4a9793a5fcca2a9addc6090c9c0cd671b1ebbd24', type: "text" }, "Default"), index.h("div", { key: '14eeb3c49e15d784862c4f6e9d59c8a3d8da7963', style: { padding: "1em", maxWidth: "12em" } }, index.h("smoothly-button", { key: '31b4d3395c2591401eb6dab6da14d6caac0411fe', fill: "solid", color: "danger", link: "https://google.com" }, "open"), index.h("smoothly-button", { key: 'bfad0b8b15643d8d31c85ee11a9c0e84db2ab6c9', fill: "solid", color: "danger", link: "https://www.w3.org/WAI/ER/tests/xhtml/testfiles/resources/pdf/dummy.pdf", type: "download" }, "download"), index.h("smoothly-button", { key: 'bebe8268049b005938a50db82b40c0ee87612743', fill: "solid", color: "danger", onClick: () => alert("clicked") }, "action"), index.h("smoothly-button", { key: 'e29cddc1f4bfd034dde47491361278c6ce87ba7d', disabled: true, fill: "solid", color: "danger", onClick: () => alert("clicked") }, "action"), index.h("smoothly-button", { key: 'd8cc0600b0632998ba1b869ad084edab91fad2e5', type: "link", fill: "clear", color: "danger", onClick: () => alert("clicked") }, "action link"))), index.h("smoothly-app-room", { key: 'ac76d59a6a1abf64390f2abf922d5f5a6dee1669', path: "/form", label: "Form" }, index.h("smoothly-form-demo", { key: '0bdc1d11f5b8f934dda4ff392458b08d4a70be3f' })), index.h("smoothly-app-room", { key: '4563223ad6f765c0939cc30cd45dc30cd5d69032', path: "/input", label: "Input" }, index.h("smoothly-input-demo", { key: '375c06afd265f6307fc66e93c9835dc49ce3e6d6' })), index.h("smoothly-app-room", { key: '42e0a3a236f724591145301dd9df043f679af9ee', path: "/button", label: "Button" }, index.h("smoothly-button-demo", { key: '5901292f12d2d24973a2cf5387508a431803b2e8' })), index.h("smoothly-app-room", { key: 'd4a8784af2165b95cfc42aff5ca3be1e5c958e87', path: "/dialog", label: "Dialog" }, index.h("smoothly-dialog-demo", { key: '35c854b7844271e48d3f0e6533f9306c8464baf0' })), index.h("smoothly-app-room", { key: 'e2ad58e1f1265d3a5027cd3f224083e40d5973f7', path: "/display", label: "Display", icon: "eye-outline" }, index.h("smoothly-display-demo", { key: '2bfc57d7150503495f8b12d2ed3d9ec7d5d89a88' })), index.h("smoothly-app-room", { key: '8d586a62c12cf26864db2f247ad12681f590a77d', path: "/table", label: "Table" }, index.h("smoothly-table-demo", { key: '38415d9b5ce66403af5628b3348410592e67fa23' })), index.h("smoothly-app-room", { key: 'fc4374a2899d24726ff968058d0a16ea6cce7365', path: "/tabs", label: "Tabs", slot: "nav-end" }, index.h("smoothly-tabs-demo", { key: '70a19333e47bb86ec1cf90aa962b3c5c3f671c59' })), index.h("smoothly-app-room", { key: 'b473968866ef68c464557ddf1522534e82bbec21', path: "/icon", label: "Icon", content: index.h("smoothly-icon-demo", null), slot: "nav-end" }), index.h("smoothly-app-room", { key: 'cd923d2c197c4959bf1ef0c09a98dd21936345dc', path: "/redirect", label: "Redirect", slot: "nav-end" }, index.h("smoothly-button", { key: '9ae8f62b8f386083773fee5605c6ec11d7329fb1', type: "link", link: "/input" }, "To input"), index.h("smoothly-button", { key: '6134da794a9c7b5bc9d8bc9ee2ad69f067a52ed6', type: "link", link: "../button" }, "To button"), index.h("smoothly-button", { key: '2cd938d7bc294f5121ed3f61e897dd4b250ece62', type: "link", link: new URL("/hidden", window.location.origin).href }, "To hidden"), index.h("smoothly-button", { key: '94b2ab4849d1068d106f8b020fb0cebbc14c1b58', type: "link", link: "/redirect" }, "To redirect"), index.h("smoothly-button", { key: '8a27a6dff40273aa934695d3beb097ec3737676c', type: "link", link: "nested" }, "To redirect nested, relative path")), index.h("smoothly-app-room", { key: 'b4ae3ba6bb1064f111d7bd3aa97dac20aa48bad4', path: "/hidden" }, index.h("p", { key: '8ad17243e6d05bd54855b337e37906eb1756dc74' }, "hello world!")), index.h("smoothly-app-room", { key: '179175fe00cf6dcb4cba153e815ddc7ebac72eef', path: "/redirect/nested" }, "this is a nested room")));
|
|
109
108
|
}
|
|
110
109
|
};
|
|
111
110
|
|
|
@@ -1526,14 +1525,14 @@ if (!globalThis.URLPattern) {
|
|
|
1526
1525
|
globalThis.URLPattern = URLPattern$1;
|
|
1527
1526
|
}
|
|
1528
1527
|
|
|
1529
|
-
const styleCss$
|
|
1530
|
-
const SmoothlyAppRoomStyle0 = styleCss$
|
|
1528
|
+
const styleCss$1k = ".sc-smoothly-app-room-h{display:flex;justify-content:center;text-align:center;cursor:pointer;height:100%;position:relative}.sc-smoothly-app-room-h>div.sc-smoothly-app-room{overflow-y:auto;height:100%}:not([label].sc-smoothly-app-room-h,[icon]).sc-smoothly-app-room-h,[disabled].sc-smoothly-app-room-h{display:none}.sc-smoothly-app-room-h>div.sc-smoothly-app-room{display:none}.sc-smoothly-app-room-h>li.sc-smoothly-app-room{height:100%;list-style:none}.sc-smoothly-app-room-h>li.sc-smoothly-app-room>a.sc-smoothly-app-room{padding:0 1.5em;height:100%}[selected].sc-smoothly-app-room-h>li.sc-smoothly-app-room>a.sc-smoothly-app-room{display:flex;color:rgb(var(--smoothly-color-contrast));background:rgb(var(--smoothly-color-shade))}.sc-smoothly-app-room-h:hover>li.sc-smoothly-app-room>a.sc-smoothly-app-room{color:rgb(var(--smoothly-color-contrast));background-color:rgb(var(--smoothly-color-tint));transition:0.2s}.sc-smoothly-app-room-h>li.sc-smoothly-app-room>a.sc-smoothly-app-room>smoothly-icon.sc-smoothly-app-room{align-self:inherit}[icon].sc-smoothly-app-room-h>li.sc-smoothly-app-room>a.sc-smoothly-app-room>.label.sc-smoothly-app-room{display:none}[icon][label].sc-smoothly-app-room-h:hover::before,[icon][label].sc-smoothly-app-room-h:hover::after{position:absolute;color:rgb(var(--smoothly-color-contrast));background-color:rgb(var(--smoothly-color-tint));border-radius:0.25rem;pointer-events:none}[icon][label].sc-smoothly-app-room-h:hover::before{content:\"\";bottom:-1.75rem;transform:rotate(45deg);width:1.25em;height:1.25em}[icon][label].sc-smoothly-app-room-h:hover::after{content:attr(label);white-space:nowrap;bottom:-3.25rem;padding:.5rem 1rem;border-radius:.25rem}@media screen and (max-width: 900px){.sc-smoothly-app-room-h>li.sc-smoothly-app-room>a.sc-smoothly-app-room{padding:0}[icon].sc-smoothly-app-room-h>li.sc-smoothly-app-room>a.sc-smoothly-app-room>.label.sc-smoothly-app-room{display:unset;padding:0 1rem}.sc-smoothly-app-room-h>li.sc-smoothly-app-room>a.sc-smoothly-app-room{margin-left:-1.5rem;margin-right:-1.5rem;padding-left:1.5rem;padding-right:1.5rem}[icon][label].sc-smoothly-app-room-h:hover::before,[icon][label].sc-smoothly-app-room-h:hover::after{content:unset}}";
|
|
1529
|
+
const SmoothlyAppRoomStyle0 = styleCss$1k;
|
|
1531
1530
|
|
|
1532
1531
|
const SmoothlyAppRoom = class {
|
|
1533
1532
|
constructor(hostRef) {
|
|
1534
1533
|
index.registerInstance(this, hostRef);
|
|
1535
|
-
this.
|
|
1536
|
-
this.
|
|
1534
|
+
this.smoothlyRoomSelect = index.createEvent(this, "smoothlyRoomSelect", 7);
|
|
1535
|
+
this.smoothlyRoomLoad = index.createEvent(this, "smoothlyRoomLoad", 7);
|
|
1537
1536
|
this.label = undefined;
|
|
1538
1537
|
this.icon = undefined;
|
|
1539
1538
|
this.disabled = undefined;
|
|
@@ -1543,7 +1542,7 @@ const SmoothlyAppRoom = class {
|
|
|
1543
1542
|
}
|
|
1544
1543
|
componentWillLoad() {
|
|
1545
1544
|
this.selected = (typeof this.path == "string" ? new URLPattern({ pathname: this.path }) : this.path).test(window.location);
|
|
1546
|
-
this.
|
|
1545
|
+
this.smoothlyRoomLoad.emit({ selected: this.selected });
|
|
1547
1546
|
}
|
|
1548
1547
|
async getContent() {
|
|
1549
1548
|
return this.contentElement;
|
|
@@ -1551,7 +1550,7 @@ const SmoothlyAppRoom = class {
|
|
|
1551
1550
|
async setSelected(selected, options) {
|
|
1552
1551
|
this.selected = selected;
|
|
1553
1552
|
if (selected)
|
|
1554
|
-
this.
|
|
1553
|
+
this.smoothlyRoomSelect.emit({ history: !!(options === null || options === void 0 ? void 0 : options.history) });
|
|
1555
1554
|
}
|
|
1556
1555
|
clickHandler(event) {
|
|
1557
1556
|
if (!event.metaKey && !event.ctrlKey && event.which != 2 && event.button != 1) {
|
|
@@ -1560,13 +1559,13 @@ const SmoothlyAppRoom = class {
|
|
|
1560
1559
|
}
|
|
1561
1560
|
}
|
|
1562
1561
|
render() {
|
|
1563
|
-
return (index.h(index.Host, { key: '
|
|
1562
|
+
return (index.h(index.Host, { key: '145d89e87e5bc7988a2c37b30321e8e969724508' }, index.h("li", { key: 'bf5a642b87750bf78273b9eb856187ec5d0dfade' }, index.h("a", { key: 'b22e1fcf21a1d4cb60d73b967cca67e639ec539b', href: typeof this.path == "string" ? this.path : this.path.pathname, onClick: e => this.clickHandler(e) }, this.icon && index.h("smoothly-icon", { key: '88d633a1be498eba8ae63b19102e1762a85b3bcd', name: this.icon }), this.label && index.h("span", { key: '9bfcc6c6c346f60aa07117b8ea3e18fef6967a49', class: "label" }, this.label))), index.h("div", { key: '9b580e92396bfadfee43584bb21ce80ad1bddbfa', ref: e => (this.contentElement = e) }, this.content && index.h("smoothly-lazy", { key: '6296e55633381bbe1c0f3adfa1f0630555bb5667', content: this.content }), index.h("slot", { key: '616d7564d45cea1b7360e4f3babefdacae4bfe1e' }))));
|
|
1564
1563
|
}
|
|
1565
1564
|
};
|
|
1566
1565
|
SmoothlyAppRoom.style = SmoothlyAppRoomStyle0;
|
|
1567
1566
|
|
|
1568
|
-
const styleCss$
|
|
1569
|
-
const SmoothlyBackToTopStyle0 = styleCss$
|
|
1567
|
+
const styleCss$1j = ".sc-smoothly-back-to-top-h{background-color:rgba(var(--smoothly-default-color), 1);opacity:var(--opacity);pointer-events:var(--pointer-events);transition:opacity 400ms;z-index:3;border-radius:50%;box-shadow:var(--smoothly-shadow);height:3rem;width:3rem;position:fixed;bottom:var(--bottom);right:var(--right);outline:none;cursor:pointer;display:flex;justify-content:center;align-items:center}";
|
|
1568
|
+
const SmoothlyBackToTopStyle0 = styleCss$1j;
|
|
1570
1569
|
|
|
1571
1570
|
const SmoothlyBackToTop = class {
|
|
1572
1571
|
constructor(hostRef) {
|
|
@@ -1591,21 +1590,21 @@ const SmoothlyBackToTop = class {
|
|
|
1591
1590
|
"--bottom": this.bottom,
|
|
1592
1591
|
"--right": this.right,
|
|
1593
1592
|
};
|
|
1594
|
-
return (index.h(index.Host, { key: '
|
|
1593
|
+
return (index.h(index.Host, { key: 'b2fe364dcdf392c75b51a6c0bc90802ac2c9b44a', style: cssVariables, onClick: () => {
|
|
1595
1594
|
var _a;
|
|
1596
1595
|
return (_a = this.scrollableParent) === null || _a === void 0 ? void 0 : _a.scrollTo({
|
|
1597
1596
|
top: 0,
|
|
1598
1597
|
left: 0,
|
|
1599
1598
|
behavior: "smooth",
|
|
1600
1599
|
});
|
|
1601
|
-
} }, index.h("smoothly-icon", { key: '
|
|
1600
|
+
} }, index.h("smoothly-icon", { key: '3bc541c6b69fe0543e01282ef916abcecb63eb7a', name: "caret-up-outline" })));
|
|
1602
1601
|
}
|
|
1603
1602
|
get element() { return index.getElement(this); }
|
|
1604
1603
|
};
|
|
1605
1604
|
SmoothlyBackToTop.style = SmoothlyBackToTopStyle0;
|
|
1606
1605
|
|
|
1607
|
-
const styleCss$
|
|
1608
|
-
const SmoothlyBurgerStyle0 = styleCss$
|
|
1606
|
+
const styleCss$1i = "[visible].sc-smoothly-burger-h{display:flex;justify-content:center;align-items:center;height:100%}[visible].sc-smoothly-burger-h .burger.sc-smoothly-burger smoothly-icon.sc-smoothly-burger{font-size:1.7em;cursor:pointer;margin-right:1em}.sc-smoothly-burger-h:not([visible]){display:none}.sc-smoothly-burger-h:not([open]) smoothly-icon.sc-smoothly-burger{transform:rotate(0deg);transition:transform 100ms ease-in-out}[open].sc-smoothly-burger-h smoothly-icon.sc-smoothly-burger{transform:rotate(-90deg);transition:transform 100ms ease-in-out}";
|
|
1607
|
+
const SmoothlyBurgerStyle0 = styleCss$1i;
|
|
1609
1608
|
|
|
1610
1609
|
const SmoothlyBurger = class {
|
|
1611
1610
|
constructor(hostRef) {
|
|
@@ -1650,7 +1649,7 @@ const SmoothlyBurger = class {
|
|
|
1650
1649
|
this.history = result;
|
|
1651
1650
|
}
|
|
1652
1651
|
render() {
|
|
1653
|
-
return (index.h(index.Host, { key: '
|
|
1652
|
+
return (index.h(index.Host, { key: '6cf2501d1c4ad5a0a2865dd41667e40abffe756a' }, index.h("span", { key: 'c7bb85eb13d1acb54554a6456aa279f1e8593da8', class: "burger" }, index.h("smoothly-icon", { key: 'b7b51da7eb3de4c290ba0f4f0c9f9a44fe494c00', name: "menu" }))));
|
|
1654
1653
|
}
|
|
1655
1654
|
get element() { return index.getElement(this); }
|
|
1656
1655
|
static get watchers() { return {
|
|
@@ -1659,37 +1658,8 @@ const SmoothlyBurger = class {
|
|
|
1659
1658
|
};
|
|
1660
1659
|
SmoothlyBurger.style = SmoothlyBurgerStyle0;
|
|
1661
1660
|
|
|
1662
|
-
const
|
|
1663
|
-
|
|
1664
|
-
index.h("slot", { name: "start" }),
|
|
1665
|
-
index.h("slot", null),
|
|
1666
|
-
children,
|
|
1667
|
-
index.h("slot", { name: "end" }))) : type == "download" ? (index.h("a", { href: link, target: "_blank", download: true },
|
|
1668
|
-
index.h("slot", { name: "start" }),
|
|
1669
|
-
index.h("slot", null),
|
|
1670
|
-
children,
|
|
1671
|
-
index.h("slot", { name: "end" }))) : (index.h("button", { type: type, disabled: disabled },
|
|
1672
|
-
index.h("slot", { name: "start" }),
|
|
1673
|
-
index.h("slot", null),
|
|
1674
|
-
children,
|
|
1675
|
-
index.h("slot", { name: "end" })));
|
|
1676
|
-
};
|
|
1677
|
-
function convert(path) {
|
|
1678
|
-
let result;
|
|
1679
|
-
if (path.startsWith(window.location.origin))
|
|
1680
|
-
result = new URL(path).pathname;
|
|
1681
|
-
else if (path.match(/^\//))
|
|
1682
|
-
result = new URL(path, window.location.origin).pathname;
|
|
1683
|
-
else
|
|
1684
|
-
result = new URL(`${window.location.pathname.replace(/\/+$/, "")}/${path}`, window.location.origin).pathname;
|
|
1685
|
-
return result;
|
|
1686
|
-
}
|
|
1687
|
-
function local(path) {
|
|
1688
|
-
return new URL(path, window.location.origin).origin == window.location.origin;
|
|
1689
|
-
}
|
|
1690
|
-
|
|
1691
|
-
const styleCss$1s = "[color=default].sc-smoothly-button{--smoothly-color:var(--smoothly-default-color);--smoothly-color-contrast:var(--smoothly-default-contrast);--smoothly-color-shade:var(--smoothly-default-shade);--smoothly-color-tint:var(--smoothly-default-tint)}[color=primary].sc-smoothly-button{--smoothly-color:var(--smoothly-primary-color);--smoothly-color-contrast:var(--smoothly-primary-contrast);--smoothly-color-shade:var(--smoothly-primary-shade);--smoothly-color-tint:var(--smoothly-primary-tint)}[color=secondary].sc-smoothly-button{--smoothly-color:var(--smoothly-secondary-color);--smoothly-color-contrast:var(--smoothly-secondary-contrast);--smoothly-color-shade:var(--smoothly-secondary-shade);--smoothly-color-tint:var(--smoothly-secondary-tint)}[color=tertiary].sc-smoothly-button{--smoothly-color:var(--smoothly-tertiary-color);--smoothly-color-contrast:var(--smoothly-tertiary-contrast);--smoothly-color-shade:var(--smoothly-tertiary-shade);--smoothly-color-tint:var(--smoothly-tertiary-tint)}[color=success].sc-smoothly-button{--smoothly-color:var(--smoothly-success-color);--smoothly-color-contrast:var(--smoothly-success-contrast);--smoothly-color-shade:var(--smoothly-success-shade);--smoothly-color-tint:var(--smoothly-success-tint)}[color=warning].sc-smoothly-button{--smoothly-color:var(--smoothly-warning-color);--smoothly-color-contrast:var(--smoothly-warning-contrast);--smoothly-color-shade:var(--smoothly-warning-shade);--smoothly-color-tint:var(--smoothly-warning-tint)}[color=danger].sc-smoothly-button{--smoothly-color:var(--smoothly-danger-color);--smoothly-color-contrast:var(--smoothly-danger-contrast);--smoothly-color-shade:var(--smoothly-danger-shade);--smoothly-color-tint:var(--smoothly-danger-tint)}[color=light].sc-smoothly-button{--smoothly-color:var(--smoothly-light-color);--smoothly-color-contrast:var(--smoothly-light-contrast);--smoothly-color-shade:var(--smoothly-light-shade);--smoothly-color-tint:var(--smoothly-light-tint)}[color=medium].sc-smoothly-button{--smoothly-color:var(--smoothly-medium-color);--smoothly-color-contrast:var(--smoothly-medium-contrast);--smoothly-color-shade:var(--smoothly-medium-shade);--smoothly-color-tint:var(--smoothly-medium-tint)}[color=dark].sc-smoothly-button{--smoothly-color:var(--smoothly-dark-color);--smoothly-color-contrast:var(--smoothly-dark-contrast);--smoothly-color-shade:var(--smoothly-dark-shade);--smoothly-color-tint:var(--smoothly-dark-tint)}.sc-smoothly-button-h{--smoothly-button-border-radius:0.5rem;display:inline-block;box-sizing:border-box;border-radius:var(--smoothly-button-border-radius);cursor:pointer;border:none;outline:none;position:relative}[shape=rounded].sc-smoothly-button-h{--smoothly-button-border-radius:2rem}[type=link].sc-smoothly-button-h{display:inline}[disabled].sc-smoothly-button-h{opacity:0.5;pointer-events:none}.sc-smoothly-button-h>a.sc-smoothly-button,.sc-smoothly-button-h>button.sc-smoothly-button{font-size:110%;font-weight:400;border:1px solid transparent;outline:none;background-color:transparent;cursor:pointer;display:inline-flex;gap:0.5rem;box-sizing:border-box}.sc-smoothly-button-h>a.sc-smoothly-button:empty,.sc-smoothly-button-h>button.sc-smoothly-button:empty{border-width:0}.sc-smoothly-button-h>button.sc-smoothly-button{font-weight:bold;justify-content:center;height:100%;width:100%;border-radius:var(--smoothly-button-border-radius);align-items:center}.sc-smoothly-button-h:not([size=icon]):not([size=flexible])>button.sc-smoothly-button{padding:0.8em;min-width:8em}.sc-smoothly-button-h:not([size=icon]):not([size=flexible]):has(smoothly-icon)>button.sc-smoothly-button{padding:0.6em}[size=icon].sc-smoothly-button-h>button.sc-smoothly-button{padding:0.5em}[type=button].sc-smoothly-button-h>a.sc-smoothly-button{text-align:center;text-decoration:inherit;width:calc(100% - 0.6em)}[size=small].sc-smoothly-button-h>button.sc-smoothly-button{font-size:100%}[size=large].sc-smoothly-button-h>button.sc-smoothly-button{font-size:130%}.sc-smoothly-button-h:not([size=icon]){min-width:8em}[size=flexible].sc-smoothly-button-h{min-width:unset;padding:0;margin:0;display:flex;justify-content:center;align-items:center}[size=flexible].sc-smoothly-button-h>button.sc-smoothly-button{min-width:unset;padding:0;margin:0}[expand].sc-smoothly-button-h{width:100%}[expand=full].sc-smoothly-button-h{border-left:none;border-right:none;--smoothly-button-border-radius:0}[fill=outline].sc-smoothly-button-h>button.sc-smoothly-button{background-color:transparent;color:rgb(var(--smoothly-button-foreground));fill:rgb(var(--smoothly-button-foreground));stroke:rgb(var(--smoothly-button-foreground));border-color:rgb(var(--smoothly-button-foreground))}.sc-smoothly-button-h:not([fill=clear])>button.sc-smoothly-button:hover,.sc-smoothly-button-h>button.sc-smoothly-button:focus-visible,[fill=outline].sc-smoothly-button-h:active>button.sc-smoothly-button::before{border-color:rgb(var(--smoothly-button-focus-color))}[fill=outline].sc-smoothly-button-h>button.sc-smoothly-button:hover::before,[fill=outline].sc-smoothly-button-h>button.sc-smoothly-button:focus-within::before,[fill=outline].sc-smoothly-button-h>button.sc-smoothly-button:active::before{content:\"\";position:absolute;border:2px solid rgb(var(--smoothly-button-focus-border));inset:-1px;border-radius:var(--smoothly-button-border-radius)}.sc-smoothly-button-h:not([fill=clear]):not([fill=outline])>button.sc-smoothly-button:hover,.sc-smoothly-button-h:not([fill=clear]):not([fill=outline])>button.sc-smoothly-button:focus-visible,.sc-smoothly-button-h:not([fill=clear]):not([fill=outline])>button.sc-smoothly-button:active{background:rgb(var(--smoothly-button-hover-background))}.sc-smoothly-button-h>button.sc-smoothly-button,.sc-smoothly-button-h.sc-smoothly-button-s>smoothly-icon,.sc-smoothly-button-h .sc-smoothly-button-s>smoothly-icon{color:rgb(var(--smoothly-button-foreground));stroke:rgb(var(--smoothly-button-foreground));fill:rgb(var(--smoothly-button-foreground))}[hidden].sc-smoothly-button-h{display:none}";
|
|
1692
|
-
const SmoothlyButtonStyle0 = styleCss$1s;
|
|
1661
|
+
const styleCss$1h = "[color=default].sc-smoothly-button{--smoothly-color:var(--smoothly-default-color);--smoothly-color-contrast:var(--smoothly-default-contrast);--smoothly-color-shade:var(--smoothly-default-shade);--smoothly-color-tint:var(--smoothly-default-tint)}[color=primary].sc-smoothly-button{--smoothly-color:var(--smoothly-primary-color);--smoothly-color-contrast:var(--smoothly-primary-contrast);--smoothly-color-shade:var(--smoothly-primary-shade);--smoothly-color-tint:var(--smoothly-primary-tint)}[color=secondary].sc-smoothly-button{--smoothly-color:var(--smoothly-secondary-color);--smoothly-color-contrast:var(--smoothly-secondary-contrast);--smoothly-color-shade:var(--smoothly-secondary-shade);--smoothly-color-tint:var(--smoothly-secondary-tint)}[color=tertiary].sc-smoothly-button{--smoothly-color:var(--smoothly-tertiary-color);--smoothly-color-contrast:var(--smoothly-tertiary-contrast);--smoothly-color-shade:var(--smoothly-tertiary-shade);--smoothly-color-tint:var(--smoothly-tertiary-tint)}[color=success].sc-smoothly-button{--smoothly-color:var(--smoothly-success-color);--smoothly-color-contrast:var(--smoothly-success-contrast);--smoothly-color-shade:var(--smoothly-success-shade);--smoothly-color-tint:var(--smoothly-success-tint)}[color=warning].sc-smoothly-button{--smoothly-color:var(--smoothly-warning-color);--smoothly-color-contrast:var(--smoothly-warning-contrast);--smoothly-color-shade:var(--smoothly-warning-shade);--smoothly-color-tint:var(--smoothly-warning-tint)}[color=danger].sc-smoothly-button{--smoothly-color:var(--smoothly-danger-color);--smoothly-color-contrast:var(--smoothly-danger-contrast);--smoothly-color-shade:var(--smoothly-danger-shade);--smoothly-color-tint:var(--smoothly-danger-tint)}[color=light].sc-smoothly-button{--smoothly-color:var(--smoothly-light-color);--smoothly-color-contrast:var(--smoothly-light-contrast);--smoothly-color-shade:var(--smoothly-light-shade);--smoothly-color-tint:var(--smoothly-light-tint)}[color=medium].sc-smoothly-button{--smoothly-color:var(--smoothly-medium-color);--smoothly-color-contrast:var(--smoothly-medium-contrast);--smoothly-color-shade:var(--smoothly-medium-shade);--smoothly-color-tint:var(--smoothly-medium-tint)}[color=dark].sc-smoothly-button{--smoothly-color:var(--smoothly-dark-color);--smoothly-color-contrast:var(--smoothly-dark-contrast);--smoothly-color-shade:var(--smoothly-dark-shade);--smoothly-color-tint:var(--smoothly-dark-tint)}.sc-smoothly-button-h{--smoothly-button-border-radius:0.5rem;display:inline-block;box-sizing:border-box;border-radius:var(--smoothly-button-border-radius);cursor:pointer;border:none;outline:none;position:relative}[shape=rounded].sc-smoothly-button-h{--smoothly-button-border-radius:2rem}[type=link].sc-smoothly-button-h{display:inline}[disabled].sc-smoothly-button-h{opacity:0.5;pointer-events:none}.sc-smoothly-button-h>a.sc-smoothly-button,.sc-smoothly-button-h>button.sc-smoothly-button{font-size:110%;font-weight:400;border:1px solid transparent;outline:none;background-color:transparent;cursor:pointer;display:inline-flex;gap:0.5rem;box-sizing:border-box}.sc-smoothly-button-h>a.sc-smoothly-button:empty,.sc-smoothly-button-h>button.sc-smoothly-button:empty{border-width:0}.sc-smoothly-button-h>button.sc-smoothly-button{font-weight:bold;justify-content:center;height:100%;width:100%;border-radius:var(--smoothly-button-border-radius);align-items:center}.sc-smoothly-button-h:not([size=icon]):not([size=flexible])>button.sc-smoothly-button{padding:0.8em;min-width:8em}.sc-smoothly-button-h:not([size=icon]):not([size=flexible]):has(smoothly-icon)>button.sc-smoothly-button{padding:0.6em}[size=icon].sc-smoothly-button-h>button.sc-smoothly-button{padding:0.5em}[type=button].sc-smoothly-button-h>a.sc-smoothly-button{text-align:center;text-decoration:inherit;width:calc(100% - 0.6em)}[size=small].sc-smoothly-button-h>button.sc-smoothly-button{font-size:100%}[size=large].sc-smoothly-button-h>button.sc-smoothly-button{font-size:130%}.sc-smoothly-button-h:not([size=icon]){min-width:8em}[size=flexible].sc-smoothly-button-h{min-width:unset;padding:0;margin:0;display:flex;justify-content:center;align-items:center}[size=flexible].sc-smoothly-button-h>button.sc-smoothly-button{min-width:unset;padding:0;margin:0}[expand].sc-smoothly-button-h{width:100%}[expand=full].sc-smoothly-button-h{border-left:none;border-right:none;--smoothly-button-border-radius:0}[fill=outline].sc-smoothly-button-h>button.sc-smoothly-button{background-color:transparent;color:rgb(var(--smoothly-button-foreground));fill:rgb(var(--smoothly-button-foreground));stroke:rgb(var(--smoothly-button-foreground));border-color:rgb(var(--smoothly-button-foreground))}.sc-smoothly-button-h:not([fill=clear])>button.sc-smoothly-button:hover,.sc-smoothly-button-h>button.sc-smoothly-button:focus-visible,[fill=outline].sc-smoothly-button-h:active>button.sc-smoothly-button::before{border-color:rgb(var(--smoothly-button-focus-color))}[fill=outline].sc-smoothly-button-h>button.sc-smoothly-button:hover::before,[fill=outline].sc-smoothly-button-h>button.sc-smoothly-button:focus-within::before,[fill=outline].sc-smoothly-button-h>button.sc-smoothly-button:active::before{content:\"\";position:absolute;border:2px solid rgb(var(--smoothly-button-focus-border));inset:-1px;border-radius:var(--smoothly-button-border-radius)}.sc-smoothly-button-h:not([fill=clear]):not([fill=outline])>button.sc-smoothly-button:hover,.sc-smoothly-button-h:not([fill=clear]):not([fill=outline])>button.sc-smoothly-button:focus-visible,.sc-smoothly-button-h:not([fill=clear]):not([fill=outline])>button.sc-smoothly-button:active{background:rgb(var(--smoothly-button-hover-background))}.sc-smoothly-button-h>button.sc-smoothly-button,.sc-smoothly-button-h.sc-smoothly-button-s>smoothly-icon,.sc-smoothly-button-h .sc-smoothly-button-s>smoothly-icon{color:rgb(var(--smoothly-button-foreground));stroke:rgb(var(--smoothly-button-foreground));fill:rgb(var(--smoothly-button-foreground))}[hidden].sc-smoothly-button-h{display:none}";
|
|
1662
|
+
const SmoothlyButtonStyle0 = styleCss$1h;
|
|
1693
1663
|
|
|
1694
1664
|
const SmoothlyButton = class {
|
|
1695
1665
|
constructor(hostRef) {
|
|
@@ -1704,13 +1674,13 @@ const SmoothlyButton = class {
|
|
|
1704
1674
|
this.link = undefined;
|
|
1705
1675
|
}
|
|
1706
1676
|
render() {
|
|
1707
|
-
return (index.h(Button, { key: '
|
|
1677
|
+
return (index.h(Submittable.Button, { key: '1350144b97a2a5fdc24d5b53678ea9d7f97b5b71', disabled: this.disabled, type: this.type, link: this.link }, index.h("slot", { key: '315355a1987956c9741a03819de181d2f626a205' })));
|
|
1708
1678
|
}
|
|
1709
1679
|
};
|
|
1710
1680
|
SmoothlyButton.style = SmoothlyButtonStyle0;
|
|
1711
1681
|
|
|
1712
|
-
const styleCss$
|
|
1713
|
-
const SmoothlyButtonConfirmStyle0 = styleCss$
|
|
1682
|
+
const styleCss$1g = ".sc-smoothly-button-confirm-h{display:inline-block}[disabled].sc-smoothly-button-confirm-h{opacity:0.5;pointer-events:none}.sc-smoothly-button-confirm-h:not([warning])>smoothly-button.sc-smoothly-button-confirm:first-child{display:none}[warning].sc-smoothly-button-confirm-h>smoothly-button.sc-smoothly-button-confirm:nth-child(2){display:none}[expand].sc-smoothly-button-confirm-h{width:100%}";
|
|
1683
|
+
const SmoothlyButtonConfirmStyle0 = styleCss$1g;
|
|
1714
1684
|
|
|
1715
1685
|
const SmoothlyButtonConfirm = class {
|
|
1716
1686
|
constructor(hostRef) {
|
|
@@ -1741,13 +1711,13 @@ const SmoothlyButtonConfirm = class {
|
|
|
1741
1711
|
}
|
|
1742
1712
|
}
|
|
1743
1713
|
render() {
|
|
1744
|
-
return (index.h(index.Host, { key: '
|
|
1714
|
+
return (index.h(index.Host, { key: '92ecc0cbcbe8a3c567a5b6f5839f4f5e422866e9', warning: this.clickTimeStamp }, index.h("smoothly-button", { key: 'bf8ce05dfa68aa34801975f5c590b98837f918f0', fill: this.fill, expand: this.expand, size: this.size, shape: this.shape, color: "warning", disabled: this.disabled, type: "button", onClick: event => this.clickHandler(event) }, index.h("smoothly-icon", { key: '9ba0e4fcbb52a958443e4e2d9aca9e0f1c9b31e3', name: "alert-outline", fill: this.fill, color: "warning", size: this.size === "icon" ? "tiny" : "small" })), index.h("smoothly-button", { key: 'c2e053984ab532494fa5d5c9cff0dfd4f236fa57', fill: this.fill, expand: this.expand, size: this.size, shape: this.shape, color: this.color, disabled: this.disabled, type: "button", onClick: event => this.clickHandler(event) }, index.h("slot", { key: 'c485c3a61102c224621ba0ef0390a24932be5956' }))));
|
|
1745
1715
|
}
|
|
1746
1716
|
};
|
|
1747
1717
|
SmoothlyButtonConfirm.style = SmoothlyButtonConfirmStyle0;
|
|
1748
1718
|
|
|
1749
|
-
const styleCss$
|
|
1750
|
-
const SmoothlyButtonDemoStyle0 = styleCss$
|
|
1719
|
+
const styleCss$1f = "smoothly-button-demo{display:block;margin:1rem}smoothly-button-demo>section>div{display:flex;align-items:center}smoothly-button-demo smoothly-button{margin:.2em .5em}";
|
|
1720
|
+
const SmoothlyButtonDemoStyle0 = styleCss$1f;
|
|
1751
1721
|
|
|
1752
1722
|
const SmoothlyButtonDemo = class {
|
|
1753
1723
|
constructor(hostRef) {
|
|
@@ -1755,9 +1725,9 @@ const SmoothlyButtonDemo = class {
|
|
|
1755
1725
|
}
|
|
1756
1726
|
render() {
|
|
1757
1727
|
return [
|
|
1758
|
-
index.h("h2", { key: '
|
|
1759
|
-
index.h("section", { key: '
|
|
1760
|
-
index.h("smoothly-back-to-top", { key: '
|
|
1728
|
+
index.h("h2", { key: 'bddbcdcb9ce5d83b6bfa7b6ecfdc6aa39a2eb566' }, "Buttons"),
|
|
1729
|
+
index.h("section", { key: '1a68d5f5e150439e623fa625432c0b76d84cb4da' }, index.h("h4", { key: 'ce297567bb70f6f61cb5c9adfce457b96a727dee' }, "Confirm button (two clicks)"), index.h("div", { key: '6b8561f4fe3001800c5a058e01a023361e8ff5fc' }, index.h("smoothly-button-confirm", { key: 'c26ec515d6e59142694394336d6c408f9d77d5c2', name: "confirm", shape: "rounded", color: "danger", size: "large" }, "Delete"), index.h("smoothly-button-confirm", { key: 'bc1fe30703e9469b80851611286309c2465b6708', name: "confirm-icon", shape: "rounded", color: "success", size: "icon" }, index.h("smoothly-icon", { key: '2c5ad6e48b66c4aac2b85dc8ea27b292b9229054', name: "checkmark-outline", size: "tiny" })), index.h("smoothly-button-confirm", { key: 'b00eff042a7e4ad8d84dbd5928499dfe93e0aade', name: "confirm-icon", shape: "rounded", color: "danger", size: "icon", fill: "outline" }, index.h("smoothly-icon", { key: '180734788ed2a6bf6dd7b833ec6e2bb8c8aa4d65', name: "trash-outline", size: "tiny", fill: "outline" }))), index.h("h4", { key: 'e25fbefe45792c9e30a2c57a0c653b7a9ee5d459' }, "Toggle button"), index.h("smoothly-toggle", { key: '382d2e1645b0414d8b913ba02b564f265d0fe208' }, index.h("smoothly-icon", { key: '2d5caa807f9c533bf30020a7597b3822e885caaf', name: "card", fill: "solid", slot: "icon-slot" })), index.h("smoothly-toggle", { key: 'da2f7951f9bc1ea632c90599c57ad868f22cd290' }, index.h("smoothly-icon", { key: '85db948b65cbba1e30d71ee5ed411ca53524a768', name: "briefcase", slot: "icon-slot" })), index.h("smoothly-toggle", { key: '7bad484109e1f6df60a4cb05785d783bba91c56f' }, index.h("smoothly-icon", { key: '4849e45149660ba218e5cae473c0255ba5efc8c3', name: "airplane", slot: "icon-slot" })), index.h("smoothly-toggle-switch-demo", { key: '06f58473630483cedbb138dacfecdf365f9764f2' }), index.h("h4", { key: '39a37218c3e78ba0eed05c7bc979f684ec9cfd5e' }, "Links with icons"), index.h("smoothly-button", { key: '6f2ea8c9f81abc8457cccf843d374e38dee9c414', type: "link" }, index.h("smoothly-icon", { key: '2f8327a92cc50d6bdde8d4681fea503d63eee458', name: "checkmark-circle", slot: "start" }), "type link"), index.h("smoothly-button", { key: '729c498d4ef7889a562eea874b8e345bbb5c9a6d', type: "button", color: "warning", fill: "default" }, index.h("smoothly-icon", { key: '79c0ad41bae432115486c9a94ac2105a47ee6889', name: "call", slot: "start" }), index.h("a", { key: 'f92828657c9412966b63de1682bb9a9f74ae0810', href: "https://google.com" }, "link")), index.h("smoothly-button", { key: 'df22e82e78cf20218705c7e17d2a85391e91728d', link: "https://google.com", type: "link" }, index.h("smoothly-icon", { key: '2559f870c0de1afecbef1f464f2d054ff427ba97', name: "arrow-forward", slot: "end" }), "link + type link"), index.h("h4", { key: 'd2d656b36bc277012f55b4ed6ae0ec6ea0c4b0b9' }, "Size and Color test"), index.h("smoothly-button", { key: 'c4776c12998ee23138e5a8f1547055745127abd5', color: "primary", fill: "solid", size: "small", shape: "rounded" }, "Color Primary + Small"), index.h("smoothly-button", { key: 'ce1953e2e3e2695abaae471b0c44172057a0671d', color: "secondary", fill: "solid", shape: "rounded" }, "Color Secondary + Default"), index.h("smoothly-button", { key: '8621fa2d0ce4ba8fa60cb5e43b953de6a6cb9805', color: "warning", fill: "solid", size: "large" }, "Color Warning + Large"), index.h("smoothly-button", { key: '7a1052cd7510ed173bbb1f8811a6817e98a7a3db', color: "danger", fill: "solid", size: "small", shape: "rounded" }, "Color Danger + Small"), index.h("smoothly-button", { key: 'baada7f0ae6e127cbc138f2f9e562dc32bfbca67', color: "success", fill: "solid", size: "small", shape: "rounded" }, "Color Success + Small"), index.h("smoothly-button", { key: '2284694f04ff21da01d8605e75d6565b248acc21', color: "tertiary", fill: "solid", size: "small", shape: "rounded" }, "Color Tertiary + Small"), index.h("smoothly-button", { key: 'b482866674d54db4eb85221f2e2d3d84fd870563', color: "dark", fill: "solid", size: "small", shape: "rounded" }, "Color Dark + Small"), index.h("smoothly-button", { key: 'a7cf640e62331c9b63f18cb55beeb40fff068658', color: "medium", fill: "solid", size: "small", shape: "rounded" }, "Color Medium + Small"), index.h("smoothly-button", { key: '44e9e2e48824dc8eaff0907069cf7febe80ab973', color: "light", fill: "solid", size: "small", shape: "rounded" }, "Color Light + Small"), index.h("h4", { key: '50d1c92c049f542c62c9f79d12aaea3e7a4f4de1' }, "Expand examples"), index.h("smoothly-button", { key: 'e78f2efe4e4ed3fb647599ab93a2e2b4246d2258', color: "secondary", fill: "solid", expand: "full" }, "Color Secondary + Default"), index.h("smoothly-button", { key: '0f569e8d632eb66884ceb68b2eb789f9b8b2e407', color: "warning", fill: "solid", expand: "block" }, "Color Warning + Large"), index.h("h4", { key: 'b6a1509b2af743e899c790b3bc912248b0c7fe30' }, "Fill examples"), index.h("div", { key: '097d37ae19fc0decd75a1b251a7f9113d14a04d7' }, index.h("smoothly-button", { key: '702dd5b3d510e506fc879c57125c8d85c86b8d33', shape: "rounded", color: "primary", fill: "solid" }, index.h("smoothly-icon", { key: 'e3e452c9a3ac2be5c4420c1f34e8e8440bdc4ca1', name: "checkmark-circle", slot: "start" }), "Fill Solid"), index.h("smoothly-button", { key: 'a603b5a8f6d68d0970402da4c74c54f605a79b6d', shape: "rounded", color: "secondary", fill: "outline" }, index.h("smoothly-icon", { key: '8a559f61438f0007b10edaf265c19de63c8b20c9', name: "checkmark-circle", slot: "start" }), "Fill Outline"), index.h("smoothly-button", { key: '451847da000b10276df61d3f2e42d8f247cb462d', shape: "rounded", color: "tertiary", fill: "clear" }, index.h("smoothly-icon", { key: 'fd753e9fbefae7dee7d169e6ea49c87c16033d04', name: "checkmark-circle", slot: "start" }), "Fill Clear"), index.h("smoothly-button", { key: '5548028db3cc8ad643822b274ba1deb60956aa29', size: "icon", shape: "rounded", color: "success", fill: "solid" }, index.h("smoothly-icon", { key: '7fb252b38d07a0abe3eb5f1295e40d9ecd800a62', name: "basketball" }))), index.h("h4", { key: 'a3de2980d6a18f7e9cecd64c69b8db58310aab27' }, "Buttons with Icon in \"start\""), index.h("div", { key: 'b48a87856d2d148989d3dc73468afc457093ec23' }, index.h("smoothly-button", { key: '8358dad571e80fb9f39d63510e9aed5676f51738', shape: "rounded", fill: "solid", color: "warning" }, index.h("smoothly-icon", { key: '1e2ebaa44bd22cf7dbf86c7751df66c4ec4966ff', name: "checkmark-circle", slot: "start" }), "Check"), index.h("smoothly-button", { key: '333dfceabef7bc36c64ae92e7f6d4a2ff804ee95', shape: "rounded", fill: "solid", color: "secondary" }, index.h("smoothly-icon", { key: '130506a14ef685f425abf91533379c0cfadb44a6', name: "basketball", slot: "start" }), "Check"), index.h("smoothly-button", { key: 'aa97eefe4c8c3ae201b8b84e2741b63743d26379', shape: "rounded", fill: "solid", color: "success" }, index.h("smoothly-icon", { key: '12a4b1ec667fb64b249c9fefed25307eecff413f', name: "call", slot: "start" }), "Check"), index.h("smoothly-button", { key: '9a013d490114608df3541e1be3085d58d5a9c893', size: "icon", fill: "solid", shape: "rounded", color: "success" }, index.h("smoothly-icon", { key: 'ecdedc28a718342d4f2cd381ebe3b644eb0d345b', name: "call" })), index.h("smoothly-button", { key: '3e091360913644b8d49a0e2edd6e521b63956b2d', size: "flexible", fill: "solid", color: "success" }, index.h("smoothly-icon", { key: '205c26e01142bdbd92e2050be57f4a5e7f26ed66', name: "airplane" }))), index.h("h4", { key: '6af814a7a17d0f4485cbf30c9adda74c1039955c' }, "Buttons with Icon in \"end\""), index.h("smoothly-button", { key: '2c7b13a218fc9acbd007351bae7c4e0f6b6c3b04', fill: "solid", color: "light" }, "Go Forward", index.h("smoothly-icon", { key: 'f510de55dd3b7fb530c74a08a8d8de0357344a1c', name: "arrow-forward", slot: "end" })), index.h("h4", { key: '9cb432cc45d2ec11a81cfca765f3b44d7bcfef12' }, "Test for icon button"), index.h("div", { key: '9c3e9afd73c2e4bbc83030eb1b76e23dff1de7f8' }, index.h("smoothly-button", { key: 'd7904201e3d847c89a0eb0ebe48bea8286798fe6', size: "icon", fill: "solid", shape: "rounded", color: "success" }, index.h("smoothly-icon", { key: '0de1a6a633b8889e589855af51b40207524b6b20', name: "call" })), index.h("smoothly-button", { key: 'b30a8f27281ec69f9188bce6bc65d14bae575777', size: "icon", shape: "rounded", color: "warning", fill: "solid" }, index.h("smoothly-icon", { key: '6a93940995c8a876f2f94c04d272e75ed200f872', name: "search-outline" })), index.h("smoothly-button", { key: '6b7c3792eb8c3c24e081bbea8b8ca054e19691f7', size: "icon", shape: "rounded", color: "secondary" }, index.h("smoothly-icon", { key: '10ae921d594626219164798b7fef26ae58820f89', name: "checkmark-circle" }))), index.h("h4", { key: '3edda3f0844009caca72092c082ef6887ba59d22' }, "Link examples"), index.h("div", { key: '0d325af0dad3cba81135c414191cb50b7f76b9ea' }, index.h("smoothly-button", { key: '60896f23076678b0e4c1ba360f8f813f60b829c0', type: "link" }, "type link"), index.h("smoothly-button", { key: '6bd1fb72c9e26fdef6e3e8af062b3336421e0fe8', type: "button", fill: "clear" }, index.h("a", { key: 'f0653380134cece6f73eb4c406887d40be8fe62d', href: "https://google.com" }, "link")), index.h("smoothly-button", { key: 'ac0585eff0af8ed5879c7c78101572351f7aa482', link: "https://google.com", type: "link" }, "link + type link")), index.h("h4", { key: '3073a9f4170c740b38206bbeaae124fc89a78c09' }, "Disabled buttons"), index.h("div", { key: '4b68a637830af2cff027c9260ff206eac96e36d3' }, index.h("smoothly-button", { key: '26c9f9f86d4876e5a7e4ae51fa77449da40b7346', disabled: true, fill: "solid", color: "secondary" }, "Disabled"), index.h("smoothly-button", { key: 'b5c9af1c591cd12a1e6f467e60d4ffd1d42cc2f0', type: "link", link: "https://google.com", disabled: true }, "Disabled link"))),
|
|
1730
|
+
index.h("smoothly-back-to-top", { key: '7f1a9d67235da79253d37e710f5f929503842313' }),
|
|
1761
1731
|
];
|
|
1762
1732
|
}
|
|
1763
1733
|
};
|
|
@@ -1821,8 +1791,8 @@ function years(current, min, max) {
|
|
|
1821
1791
|
return result;
|
|
1822
1792
|
}
|
|
1823
1793
|
|
|
1824
|
-
const styleCss$
|
|
1825
|
-
const SmoothlyCalendarStyle0 = styleCss$
|
|
1794
|
+
const styleCss$1e = ".sc-smoothly-calendar-h{display:block;--other-month-opacity:0.5;padding:0.5em;border:1px solid rgb(var(--smoothly-input-border))}.sc-smoothly-calendar-h>smoothly-input-month.sc-smoothly-calendar{padding:0 0.5em}.sc-smoothly-calendar-h>table.sc-smoothly-calendar{table-layout:fixed;width:100%}.sc-smoothly-calendar-h>table.sc-smoothly-calendar>thead.sc-smoothly-calendar>tr.sc-smoothly-calendar>th.sc-smoothly-calendar,.sc-smoothly-calendar-h>table.sc-smoothly-calendar>tr.sc-smoothly-calendar>td.sc-smoothly-calendar{text-align:center;padding:0.5em;min-width:2em;box-sizing:border-box;background-color:rgb(var(--smoothly-input-background));color:rgb(var(--smoothly-input-foreground));-webkit-user-select:none;user-select:none}.sc-smoothly-calendar-h>table.sc-smoothly-calendar>tr.sc-smoothly-calendar>td.sc-smoothly-calendar{position:relative;cursor:pointer}.sc-smoothly-calendar-h>table.sc-smoothly-calendar>tr.sc-smoothly-calendar>td.currentMonth.sc-smoothly-calendar{color:rgb(var(--smoothly-default-contrast))}.sc-smoothly-calendar-h>table.sc-smoothly-calendar>tr.sc-smoothly-calendar>td.sc-smoothly-calendar:not(.currentMonth){color:rgba(var(--smoothly-default-contrast), var(--other-month-opacity))}.sc-smoothly-calendar-h>table.sc-smoothly-calendar>tr.sc-smoothly-calendar>td.sc-smoothly-calendar:nth-child(6):not(.currentMonth).selected,.sc-smoothly-calendar-h>table.sc-smoothly-calendar>tr.sc-smoothly-calendar>td.sc-smoothly-calendar:nth-child(6):not(.currentMonth).dateRange,.sc-smoothly-calendar-h>table.sc-smoothly-calendar>tr.sc-smoothly-calendar>td.sc-smoothly-calendar:nth-child(7):not(.currentMonth).selected,.sc-smoothly-calendar-h>table.sc-smoothly-calendar>tr.sc-smoothly-calendar>td.sc-smoothly-calendar:nth-child(7):not(.currentMonth).dateRange{color:rgba(var(--smoothly-default-contrast))}.sc-smoothly-calendar-h>table.sc-smoothly-calendar>tr.sc-smoothly-calendar>td.sc-smoothly-calendar:nth-child(6),.sc-smoothly-calendar-h>table.sc-smoothly-calendar>tr.sc-smoothly-calendar>td.sc-smoothly-calendar:nth-child(7){color:rgb(var(--smoothly-calendar-weekend-foreground, var(--smoothly-danger-color)))}.sc-smoothly-calendar-h>table.sc-smoothly-calendar>tr.sc-smoothly-calendar>td.sc-smoothly-calendar:nth-child(6):not(.currentMonth),.sc-smoothly-calendar-h>table.sc-smoothly-calendar>tr.sc-smoothly-calendar>td.sc-smoothly-calendar:nth-child(7):not(.currentMonth){color:rgba(var(--smoothly-calendar-weekend-foreground, var(--smoothly-danger-color)), var(--other-month-opacity))}.sc-smoothly-calendar-h>table.sc-smoothly-calendar>tr.sc-smoothly-calendar>td.sc-smoothly-calendar:not(.selected,.disable).sc-smoothly-calendar:hover{color:rgb(var(--smoothly-primary-contrast));background:rgb(var(--smoothly-primary-tint))}.sc-smoothly-calendar-h>table.sc-smoothly-calendar>tr.sc-smoothly-calendar>td.selected.sc-smoothly-calendar{color:rgb(var(--smoothly-primary-contrast));background:rgb(var(--smoothly-primary-color))}.sc-smoothly-calendar-h>table.sc-smoothly-calendar>tr.sc-smoothly-calendar>td.today.sc-smoothly-calendar::before{content:\"\";inset:2px;position:absolute;border:1px solid currentColor}.sc-smoothly-calendar-h>table.sc-smoothly-calendar>tr.sc-smoothly-calendar>td.dateRange.sc-smoothly-calendar{color:rgb(var(--smoothly-primary-contrast));background:rgb(var(--smoothly-primary-tint))}.sc-smoothly-calendar-h>table.sc-smoothly-calendar>tr.sc-smoothly-calendar>td.disable.sc-smoothly-calendar{cursor:not-allowed;opacity:0.5}";
|
|
1795
|
+
const SmoothlyCalendarStyle0 = styleCss$1e;
|
|
1826
1796
|
|
|
1827
1797
|
const Calendar = class {
|
|
1828
1798
|
constructor(hostRef) {
|
|
@@ -1885,10 +1855,10 @@ const Calendar = class {
|
|
|
1885
1855
|
}
|
|
1886
1856
|
render() {
|
|
1887
1857
|
var _a, _b, _c;
|
|
1888
|
-
return (index.h(index.Fragment, { key: '
|
|
1858
|
+
return (index.h(index.Fragment, { key: '7b1fb3ef1cbdc1d5e6613384e64da895fcaa5cf3' }, index.h("smoothly-input-month", { key: 'ad67fc659c6a18d45132f422733ea24d7d56dd2b', name: "month", value: (_a = this.month) !== null && _a !== void 0 ? _a : this.value, min: this.min, max: this.max, inCalendar: true, next: true, previous: true, showLabel: false, onSmoothlyInput: e => {
|
|
1889
1859
|
e.stopPropagation();
|
|
1890
1860
|
"month" in e.detail && typeof e.detail.month == "string" && (this.month = e.detail.month);
|
|
1891
|
-
} }, index.h("div", { key: '
|
|
1861
|
+
} }, index.h("div", { key: 'b5da7a44e2576313b98caa246146c74eea0cdae3', slot: "year-label" }, index.h("slot", { key: '3862506ef62aaa5226d366b65351549a74c9ec6e', name: "year-label" })), index.h("div", { key: 'c1e36c66c30e6540039271fd1719c9d4438c8afa', slot: "month-label" }, index.h("slot", { key: 'e88f780f22b3e310b87df52e430de3d40de4d552', name: "month-label" }))), index.h("table", { key: 'a7ef6dc817715ed613e895b668c4ef1bf4cd1386' }, index.h("thead", { key: '6ddbd34b74a61affd2afee8ff27c44461a542224' }, index.h("tr", { key: '79141f617b4eacbd6dbc8f17045281a5a0a49ace' }, weekdays().map(day => (index.h("th", null, day))))), month((_c = (_b = this.month) !== null && _b !== void 0 ? _b : this.value) !== null && _c !== void 0 ? _c : TimeZone.Date.now()).map(week => (index.h("tr", null, week.map(date => {
|
|
1892
1862
|
var _a, _b, _c, _d;
|
|
1893
1863
|
return (index.h("td", { tabindex: 1, onMouseOver: () => (this.withinLimit(date) ? this.onHover(date) : undefined), onClick: this.withinLimit(date) ? () => this.onClick(date) : undefined, class: {
|
|
1894
1864
|
selected: date == this.value || (this.doubleInput && (date == this.start || date == this.end)),
|
|
@@ -1908,8 +1878,8 @@ const Calendar = class {
|
|
|
1908
1878
|
};
|
|
1909
1879
|
Calendar.style = SmoothlyCalendarStyle0;
|
|
1910
1880
|
|
|
1911
|
-
const styleCss$
|
|
1912
|
-
const SmoothlyDialogStyle0 = styleCss$
|
|
1881
|
+
const styleCss$1d = ".sc-smoothly-dialog-h{display:block;position:fixed;top:55%;left:50%;transform:translate(-50%, -50%);width:100%;height:100%;z-index:1;background:rgba(var(--smoothly-default-color), var(--smoothly-semitransparent)) !important}[hidden].sc-smoothly-dialog-h{display:none}.sc-smoothly-dialog-h>section.sc-smoothly-dialog{margin-top:var(--smoothly-dialog-margin-top)}.sc-smoothly-dialog-h>section.sc-smoothly-dialog>div.header.sc-smoothly-dialog{border-top-left-radius:8px;border-top-right-radius:8px;margin-top:2em;color:rgb(var(--smoothly-primary-contrast));background:rgb(var(--smoothly-primary-color));border-color:rgb(var(--smoothly-primary-color))}.sc-smoothly-dialog-h:not([header]) div.header.sc-smoothly-dialog{border:none}.sc-smoothly-dialog-h>section.sc-smoothly-dialog>*.sc-smoothly-dialog{position:relative;color:rgb(var(--smoothly-default-contrast));background-color:rgb(var(--smoothly-default-color));border-color:rgb(var(--smoothly-color));border-width:1px;border-style:solid;max-width:40em;width:calc(100vw - 4em - 2px);max-height:calc(100vh - 6em - 2px);height:auto;margin-left:auto;margin-right:auto;border-collapse:collapse}.sc-smoothly-dialog-h>section.sc-smoothly-dialog>div.content.sc-smoothly-dialog{border-bottom-left-radius:8px;border-bottom-right-radius:8px;margin-bottom:2em;border:1px solid rgb(var(--smoothly-default-contrast));box-sizing:border-box;overflow:hidden}.sc-smoothly-dialog-h:not([header])>section.sc-smoothly-dialog>div.content.sc-smoothly-dialog{border-radius:8px}.sc-smoothly-dialog-h>section.sc-smoothly-dialog>*.sc-smoothly-dialog>smoothly-trigger.sc-smoothly-dialog{position:absolute;right:-2em;top:-2em;z-index:1;border-color:transparent}.sc-smoothly-dialog-h>section.sc-smoothly-dialog>*.sc-smoothly-dialog>smoothly-trigger.sc-smoothly-dialog:hover{border-color:transparent}.sc-smoothly-dialog-h>section.sc-smoothly-dialog>div.header.sc-smoothly-dialog>smoothly-trigger.sc-smoothly-dialog>smoothly-icon.sc-smoothly-dialog{background-color:rgb(var(--smoothly-color));border-radius:50%}.sc-smoothly-dialog-h>section.sc-smoothly-dialog>*.sc-smoothly-dialog>*.sc-smoothly-dialog{margin:10px}";
|
|
1882
|
+
const SmoothlyDialogStyle0 = styleCss$1d;
|
|
1913
1883
|
|
|
1914
1884
|
const SmoothlyDialog = class {
|
|
1915
1885
|
constructor(hostRef) {
|
|
@@ -1931,14 +1901,14 @@ const SmoothlyDialog = class {
|
|
|
1931
1901
|
};
|
|
1932
1902
|
}
|
|
1933
1903
|
__stencil_render() {
|
|
1934
|
-
return (index.h("section", { key: '
|
|
1904
|
+
return (index.h("section", { key: 'ca3b4f95802da90bb96a3b40b780205f8e1d2bb4' }, index.h("div", { key: '23b2def77984b4f28b0f7f2719f30aa909556ae7', class: "header" }, this.closable && (index.h("smoothly-trigger", { key: '260384e3d9d2c34a770ac59a82912e0932d4da94', fill: "clear", name: "close" }, index.h("smoothly-icon", { key: 'a684c6e625f4e15bfd365ee719587ffcd0c1af1f', name: "close-circle", fill: "solid", color: this.color }))), this.header ? index.h("h1", null, this.header) : index.h("slot", { name: "header" })), index.h("div", { key: 'b7e40e5039d6857e64f219abf99a116e42d9d668', class: "content" }, index.h("slot", { key: '4afe1422624889e79aab5212fbc5d09f283ea688' }))));
|
|
1935
1905
|
}
|
|
1936
1906
|
render() { return index.h(index.Host, this.hostData(), this.__stencil_render()); }
|
|
1937
1907
|
};
|
|
1938
1908
|
SmoothlyDialog.style = SmoothlyDialogStyle0;
|
|
1939
1909
|
|
|
1940
|
-
const styleCss$
|
|
1941
|
-
const SmoothlyDialogDemoStyle0 = styleCss$
|
|
1910
|
+
const styleCss$1c = ".sc-smoothly-dialog-demo-h>smoothly-button.sc-smoothly-dialog-demo{display:block;margin-block:2rem}";
|
|
1911
|
+
const SmoothlyDialogDemoStyle0 = styleCss$1c;
|
|
1942
1912
|
|
|
1943
1913
|
const SmoothlyDialogDemo = class {
|
|
1944
1914
|
constructor(hostRef) {
|
|
@@ -1948,7 +1918,7 @@ const SmoothlyDialogDemo = class {
|
|
|
1948
1918
|
this.showFrame = false;
|
|
1949
1919
|
}
|
|
1950
1920
|
render() {
|
|
1951
|
-
return (index.h(index.Host, { key: '
|
|
1921
|
+
return (index.h(index.Host, { key: 'bb869a1a3c54958bdf29a0094d3649afa81770e5' }, index.h("smoothly-button", { key: '1ef55f5b1f3b350bd7d33348d8370f6cd95a289d', fill: "solid", color: "light", onClick: () => (this.openModal = true) }, "Open Modal"), index.h("smoothly-button", { key: '1867bfeda91bc8f39c4b2e2cf00ec971845b97cb', fill: "solid", color: "light", onClick: () => (this.openTallModal = true) }, "Open Modal with long text and top-aligned."), index.h("smoothly-button", { key: 'a24d0a80108afdad983900b1abf9b6093a29673e', fill: "solid", color: "light", onClick: () => (this.showFrame = !this.showFrame) }, "Show Frame"), index.h("smoothly-modal", { key: 'e30f0149b3d8dc8037da0470815c9aa704d2d7c4', closable: true, open: this.openModal, onSmoothlyModalChange: e => (this.openModal = e.detail) }, index.h("h2", { key: '76e559f061029a850bbdfcb2c7b9eae66bec49a9', slot: "header" }, "Modal"), index.h("span", { key: 'f2429c7978f5a14db471fd643a608581232e6b99' }, "Are you sure you want to confirm this action?"), index.h("smoothly-button", { key: '7cbb9b7df38d30076d8fb1074640a5447e8c9def', slot: "actions", color: "success" }, "Confirm"), index.h("smoothly-button", { key: '274d9655b7f23b7ce891e736b31924dc00fe8c0c', slot: "actions", color: "light", fill: "outline", onClick: () => (this.openModal = false) }, "Cancel")), index.h("smoothly-modal", { key: '284f4e666fafa5e9de84f0fd19014657e9c4ea28', closable: true, open: this.openTallModal, onSmoothlyModalChange: e => (this.openTallModal = e.detail), align: "top" }, index.h("h2", { key: '78f7eda89834a0228792e95bf9d78f1cef6dab93', slot: "header" }, "Modal"), index.h("smoothly-summary", { key: '41ec8ae55ee1241e1935db9e5035450d4f50832d' }, index.h("div", { key: '4a807f599a75573c249539f7e8a456b44f4280cd', slot: "summary" }, "Lorem ipsum"), index.h("div", { key: 'eca8bdcd9bd740a4597b28f7fc7361ec9ecb3753', slot: "content" }, Array.from({ length: 10 }).map(() => (index.h("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."))))), index.h("smoothly-button", { key: 'a1da70bd2670e5ebe2f209286c6c626b0c3a233a', slot: "actions", color: "light", fill: "outline", onClick: () => (this.openTallModal = false) }, "Cancel")), this.showFrame && (index.h("smoothly-dialog", { key: '41e8a92ef77e563f4cf59eeb17d6c0c90a21f20f', closable: true }, index.h("smoothly-frame", { key: '7296968b616654ad2ca0a757fbe7b0b8a8d06c31', url: "https://www.wikipedia.org/", name: "parent", style: { height: "80vh" } })))));
|
|
1952
1922
|
}
|
|
1953
1923
|
};
|
|
1954
1924
|
SmoothlyDialogDemo.style = SmoothlyDialogDemoStyle0;
|
|
@@ -3768,8 +3738,8 @@ class Handler {
|
|
|
3768
3738
|
}
|
|
3769
3739
|
add$5("hex-color", () => new Handler());
|
|
3770
3740
|
|
|
3771
|
-
const styleCss$
|
|
3772
|
-
const SmoothlyDisplayStyle0 = styleCss$
|
|
3741
|
+
const styleCss$1b = ".sc-smoothly-display-h{display:block;white-space:wrap}[hidden].sc-smoothly-display-h{display:none}.sc-smoothly-display-h>div.sc-smoothly-display{opacity:0.6;font-size:.8rem}";
|
|
3742
|
+
const SmoothlyDisplayStyle0 = styleCss$1b;
|
|
3773
3743
|
|
|
3774
3744
|
const SmoothlyDisplay = class {
|
|
3775
3745
|
constructor(hostRef) {
|
|
@@ -3789,16 +3759,16 @@ const SmoothlyDisplay = class {
|
|
|
3789
3759
|
const type = this.type;
|
|
3790
3760
|
switch (type) {
|
|
3791
3761
|
case "json":
|
|
3792
|
-
result = index.h("smoothly-display-json", { key: '
|
|
3762
|
+
result = index.h("smoothly-display-json", { key: '6b31a96e16b4b4f5a881fe9de434326d7262d302', value: this.value, collapseDepth: this.collapseDepth });
|
|
3793
3763
|
break;
|
|
3794
3764
|
default:
|
|
3795
3765
|
result = format(this.value, type);
|
|
3796
3766
|
break;
|
|
3797
3767
|
case "email":
|
|
3798
|
-
result = index.h("a", { key: '
|
|
3768
|
+
result = index.h("a", { key: '8cdbbe4ee158e11761a3dabeffa6fd7165004639', href: "mailto:" + this.value }, format(this.value, type));
|
|
3799
3769
|
break;
|
|
3800
3770
|
case "phone":
|
|
3801
|
-
result = index.h("a", { key: '
|
|
3771
|
+
result = index.h("a", { key: '17745ad8ad63df1451e314608b210dd31b35c8e7', href: "tel:" + this.value }, format(this.value, type, this.country));
|
|
3802
3772
|
break;
|
|
3803
3773
|
case "postal-code":
|
|
3804
3774
|
result = format(this.value, type, this.country);
|
|
@@ -3835,35 +3805,35 @@ const SmoothlyDisplayDemo = class {
|
|
|
3835
3805
|
}
|
|
3836
3806
|
render() {
|
|
3837
3807
|
return [
|
|
3838
|
-
index.h("main", { key: '
|
|
3808
|
+
index.h("main", { key: 'fd051f67ea55f254181be2b43716e84e00cabb05' }, index.h("fieldset", { key: 'bea8026fe521ec050e1780416fa9e32989b2afa4' }, index.h("h2", { key: 'ef4c1a656d67796afc8f9c5c9db63c04f96aab4c' }, "Smoothly display"), index.h("dl", { key: '8deda943fa8ead28b6df1b007907f6d9dbf66d85' }, index.h("dt", { key: 'caf0ad2fe220cdb62d47140efd9684998246e2c3' }, "Duration"), index.h("dd", { key: 'f1c4659bf36f0a327fabba9314042dace342c13b' }, index.h("div", { key: '30872a9bd82d2814a82cf53ec42f3a7b3fe13b3a' }, index.h("div", { key: '5f733cc2b6a745712e246479c59b8aa3daf11312' }, index.h("smoothly-display", { key: '1998b9c2061fa468aa9fffe4d733a8a683baae05', style: { display: "inline" }, type: "duration", value: { hours: 13, minutes: 100 } }), " h"), index.h("div", { key: '159344fc77844facc8960a4f71a99813623a7763' }, index.h("smoothly-display", { key: 'd0f14a4f05e1b9353b9a0b389c17e3fbd7537b1b', style: { display: "inline" }, type: "duration", value: { hours: 8 } }), " h"), index.h("div", { key: 'cc65ac80578b939be2d3802fd3a5ded8fbf5b384' }, index.h("smoothly-display", { key: '489a7d80e18f1bb9d26eb8e807467f0cd8e0e1dc', style: { display: "inline" }, type: "duration", value: { minutes: 3 } }), " h"), index.h("div", { key: 'a7d5607906b992f698a00d293872dd5cfc65ad42' }, index.h("smoothly-display", { key: 'b868bb9a2ce5b8b0bab62e4ab90f5ed8172b2dc1', style: { display: "inline" }, type: "duration", value: { hours: -13, minutes: 100 } }), " h"), index.h("div", { key: 'bf53f2aae5ab5cdb6f7d98aba73a9e382fb98bd6' }, index.h("smoothly-display", { key: 'd27e664c4d0007dccfae976a13b3c3e202d7052b', style: { display: "inline" }, type: "duration", value: { hours: -8 } }), " h"), index.h("div", { key: '7e7ab059fe4ce79836b9b3c63a212e5ab9e4b36c' }, index.h("smoothly-display", { key: '388670fcb5c8371244c4112d0cf5f0050b59b134', style: { display: "inline" }, type: "duration", value: {} }), " h"), index.h("div", { key: 'e34c143b748072810cec75427ee497bfa25f92d7' }, index.h("smoothly-display", { key: 'bc74a20668e2b2b8e5561ebcd79fcff63c7886d7', style: { display: "inline" }, type: "duration", value: { minutes: -3 } }), " h"))), index.h("dt", { key: '04d7d7e6d8695b50afd0c80d7b8123d22a96a0a0' }, "text"), index.h("dd", { key: '0a51fa2990fa85c8154e2a14ad374252104d8658' }, index.h("smoothly-display", { key: '75b7cf9296c52cda27db01cc201b4417e2f19288', type: "text", value: "text" })), index.h("dt", { key: '3c9fa1e7b2eda3a838d779885ad48073a1e7ca78' }, "postal code"), index.h("dd", { key: 'adcfacf0c296667c4a98919fc64ff1b6823f253c' }, index.h("smoothly-display", { key: 'f35d166fc0ae74f26d9dab3ce217edf1e8df348e', type: "postal-code", value: "752 31" })), index.h("dt", { key: '5dd7df04105283e70182a8c24d69c7abc1632a0e' }, "password"), index.h("dd", { key: 'd785701c8d5e6ce9dddfe618b91f113b1cc47694' }, index.h("smoothly-display", { key: 'd9a04bc3d9c62eebf4b8fa192ee43544e25f48ec', type: "password", value: "password" })), index.h("dt", { key: '72a245580c0d67958d821918a64634089badf6e0' }, "email"), index.h("dd", { key: '4e2129c4690821e35017a025378a52a82d9c6e12' }, index.h("smoothly-display", { key: '6f60bb0a22b496b52f76d72c25f9c4959c275174', type: "email", value: "test@example.com" })), index.h("dt", { key: 'b47e6d91ac2ad5839eff3f2ed72793406c447381' }, "price"), index.h("dd", { key: '5ed6dc4d1894989f8c59e85a9d6b3474b1838d46' }, index.h("smoothly-display", { key: '88d50f738cc333ee0284011ded0e5bc2eb90eb01', type: "price", value: "13.37", currency: "SEK" })), index.h("dt", { key: '52b377e012d006448361e4190e85238eab82f425' }, "price without decimals"), index.h("dd", { key: '2d070cde97c125943423c28dd37a1bec7f1bf521' }, index.h("smoothly-display", { key: 'a63703e7aa73188db4b78d2378f2e30d491b35d7', type: "price", value: 200, currency: "SEK", toInteger: true })), index.h("dt", { key: '10348b35a582998ee6107a2b5c55a589e0d8c66d' }, "price with decimals if they are set, otherwise no decimal"), index.h("dd", { key: 'da178ce35a352086c815f4cfac4096e34abbaef7' }, index.h("smoothly-display", { key: '08b7c0ba00f0b9b57d1ea8cc4b537bf6b632c2b0', type: "price", value: 200.2, currency: "SEK", toInteger: true })), index.h("dt", { key: 'd7db59b325e85da3458ac99916b9bcf67ea567ff' }, "price with decimals"), index.h("dd", { key: '526c59b42c339389a0839a0ee96299d184850d2c' }, index.h("smoothly-display", { key: '2d7ebb7450b5eb08ee6ff7ada84034db4cfb06ab', type: "price", value: 200.2, currency: "SEK" })), index.h("dt", { key: '0417d708b6db96a1a3d08ccb552dc3704383f498' }, "percent"), index.h("dd", { key: '8c35ad31827aeddb6b205a7009e9987d317a813c' }, index.h("smoothly-display", { key: 'ebd4dd2565a20e48d31724b44d11b5cb44ae5277', type: "percent", value: "42" })), index.h("dt", { key: '65a23b48dbed3e8e7b50725148acd17891e19ddd' }, "phone"), index.h("dd", { key: '515ed149215811c8434f340256f8b4d331763db9' }, index.h("smoothly-display", { key: '6b7422b4b8387e74ef38aba7e8567f11b263cf9a', type: "phone", value: "0101881108" })), index.h("dt", { key: 'c1fe3e553de1313a579833275f43246d0673f812' }, "card number"), index.h("dd", { key: '6078440f5880b8442e388517f42660362841db2a' }, index.h("smoothly-display", { key: '6eb5a018d0d6f7f8458955369481294408d4fdf4', type: "card-number", value: "4111111111111111" })), index.h("dt", { key: '4ac0a352835d49083a89465d7fea27f951d2c4ac' }, "card expires"), index.h("dd", { key: 'db0cbb3b0795b19ffbf184da0dd2625eb8fb8918' }, index.h("smoothly-display", { key: 'd9ee4dc173460f0952d77053d12c68fce7feddc6', type: "card-expires", value: "7/22" })), index.h("dt", { key: '515cacce3dca652dfba9bf5528211576231495e5' }, "card csc"), index.h("dd", { key: '9f6c2d8490963f09828993d42ee16b9ffc5e0d0f' }, index.h("smoothly-display", { key: '1afda51b0213c77cf3b353bade47671790475112', type: "card-csc", value: "987" })), index.h("dt", { key: 'e7204fbb88672bf46f9551d7cf50e750cc8bbb38' }, "date"), index.h("dd", { key: '34fcebf482a696d179efbccc0708b8e71e8726d1' }, index.h("smoothly-display", { key: 'a55391a66ccc1cf033a2519fdf3b75c2510cb11f', type: "date", value: "2022-07-07" })), index.h("dt", { key: '4a818e58e65af6b0b27d090fb53909f4030a0442' }, "date time"), index.h("dd", { key: '18874fbe62d3f0d4758fbcb3ea56c28698285c23' }, index.h("smoothly-display", { key: '137a6be8368b02ec204b5baa82bf455f69a2fded', type: "date-time", format: {
|
|
3839
3809
|
year: "numeric",
|
|
3840
3810
|
month: "short",
|
|
3841
3811
|
day: "numeric",
|
|
3842
3812
|
hour: "numeric",
|
|
3843
3813
|
minute: "numeric",
|
|
3844
3814
|
second: "numeric",
|
|
3845
|
-
}, value: "2022-07-07T02:02:02Z" })), index.h("dd", { key: '
|
|
3815
|
+
}, value: "2022-07-07T02:02:02Z" })), index.h("dd", { key: '81829d196bd5886e41d896369a9c20a0e9ac6475' }, index.h("smoothly-display", { key: '69d3bce166d11def43480659575c51c171c22a45', type: "date-time", format: {
|
|
3846
3816
|
year: "2-digit",
|
|
3847
3817
|
month: "long",
|
|
3848
3818
|
day: "2-digit",
|
|
3849
3819
|
hour: "2-digit",
|
|
3850
3820
|
minute: "2-digit",
|
|
3851
3821
|
second: "2-digit",
|
|
3852
|
-
}, value: "2022-07-07T02:02:02Z" })), index.h("dd", { key: '
|
|
3822
|
+
}, value: "2022-07-07T02:02:02Z" })), index.h("dd", { key: '9f8913ccf6eb9aa0320ccc96c5f63d1368e03cb5' }, index.h("smoothly-display", { key: '440dec80b84e484440f55e568d018a46ebdcc199', type: "date-time", format: {
|
|
3853
3823
|
year: "numeric",
|
|
3854
3824
|
month: "2-digit",
|
|
3855
3825
|
day: "2-digit",
|
|
3856
3826
|
hour: "numeric",
|
|
3857
3827
|
minute: "numeric",
|
|
3858
3828
|
second: "numeric",
|
|
3859
|
-
}, value: "2022-07-07T12:22:24Z" })), index.h("dd", { key: '
|
|
3829
|
+
}, value: "2022-07-07T12:22:24Z" })), index.h("dd", { key: 'ca5f7e206cf42b4bee3e885c8dd6fb5ce1fb414e' }, index.h("smoothly-display", { key: 'c2258980a847c8d2ac8c77a47e7a5772bce08ec8', type: "date-time", format: {
|
|
3860
3830
|
year: "numeric",
|
|
3861
3831
|
month: "numeric",
|
|
3862
3832
|
day: "numeric",
|
|
3863
3833
|
hour: "numeric",
|
|
3864
3834
|
minute: "numeric",
|
|
3865
3835
|
second: "numeric",
|
|
3866
|
-
}, value: "2022-07-07T12:22:24Z" })), index.h("dd", { key: '
|
|
3836
|
+
}, value: "2022-07-07T12:22:24Z" })), index.h("dd", { key: '8b99f1ea1299e7001053e7b9deece7e6a15e2542' }, index.h("smoothly-display", { key: '89c93cace88996c65faa0791cc0ffd7a4e9e083a', type: "date-time", format: { year: "numeric", month: "short", day: "numeric" }, value: "2022-07-07T00:00+02:00" })), index.h("dd", { key: '570142486b7ab93ddd59d9f418a60d700c7817d5' }, index.h("smoothly-display", { key: '63dfcf83183fba060fceed447d4bcdd0c30eb5a9', type: "date-time", format: { year: "2-digit", month: "numeric", day: "numeric" }, value: "2022-07-07T00:00+02:00" })), index.h("dd", { key: '4cc6f5ba3ddd1b339d5fb015de456abae54aab43' }, index.h("smoothly-display", { key: '6c2f659af73220903642fd0807d1151f204ba837', type: "date-time", format: {
|
|
3867
3837
|
year: "2-digit",
|
|
3868
3838
|
month: "numeric",
|
|
3869
3839
|
day: "numeric",
|
|
@@ -3871,21 +3841,21 @@ const SmoothlyDisplayDemo = class {
|
|
|
3871
3841
|
minute: "2-digit",
|
|
3872
3842
|
second: "2-digit",
|
|
3873
3843
|
timeZone: "Europe/Stockholm",
|
|
3874
|
-
}, value: "2022-07-07T12:15Z" })), index.h("dt", { key: '
|
|
3844
|
+
}, value: "2022-07-07T12:15Z" })), index.h("dt", { key: 'cb48cb11e0a8400291f08caa821b53cb443f8f12' }, "Display JSON"), index.h("dd", { key: '5f88f3eedffc8993d747898f9bf5dc9da06dbfb1' }, index.h("smoothly-display-demo-json", { key: '695a426dd6523dbac16fe830167f21e095499760' })))), index.h("h2", { key: 'e847b40c54e9c2343c3c572802732594110a3520' }, "With labels"), index.h("dd", { key: 'fa442318099a443bbc08f8b989993184afe12f57' }, index.h("smoothly-display", { key: 'e0b37f5c62a577c16805b7b3793a397ade55944e', label: "Today", type: "date", value: TimeZone.Date.now() }), index.h("smoothly-display", { key: 'e17917bd5c0ba53f198a218ac5377feb64a3219c', label: "Total amount", type: "price", currency: "SEK", value: 6789 }), index.h("smoothly-display", { key: 'd8c0252e5b772d1328adcaff951d2394b4da4fdf', label: "Total amount", type: "price", currency: "GBP", value: 678.9 }), index.h("smoothly-display", { key: '3a020e58a1fbac08de20efa83040a6d2fff73d40', label: "Logs", type: "json", value: [
|
|
3875
3845
|
{ type: "trace", message: "Hello" },
|
|
3876
3846
|
{ type: "error", message: "Oh no!" },
|
|
3877
|
-
] })), index.h("fieldset", { key: '
|
|
3847
|
+
] })), index.h("fieldset", { key: '08d6ad86a6d79ff873156f7cb4d84360d8e92f38' }, index.h("h2", { key: '91450decd67bdc21c204adaa7f95d9d0d2f64107' }, "Test of different kinds of notifier"), index.h("button", { key: 'ded2972233a8361b91b75c8386ca3f3299735959', onClick: () => this.noticeWarning(Notice.Notice.warn("This is a test warning notice.")) }, "warning"), index.h("button", { key: '833fe76b9edaa48c4db0aed015bfd310936bd01a', onClick: () => this.noticeWarning(Notice.Notice.succeeded("This is a test success notice.")) }, "success"), index.h("button", { key: '5f74587f60215db920ea6a0b9a01702642e61745', onClick: () => this.noticeWarning(Notice.Notice.failed("This is a test danger notice.")) }, "danger"), index.h("button", { key: 'ed76217b6f2a5f84ecc04a04ebc13c1441958b39', onClick: () => this.noticeWarning(Notice.Notice.execute("This is a test execute notice.", () => new Promise(resolve => window.setTimeout(() => resolve([true, "This went great"]), 3000)))) }, "execute"), index.h("button", { key: '7f7b974a4ed5528d8d226d380233e219203553bc', onClick: () => this.noticeWarning(Notice.Notice.delay("This is a test delay notice.", () => new Promise(resolve => window.setTimeout(() => resolve([true, "This went great"]), 3000)))) }, "delay")), index.h("fieldset", { key: '287c9ce5ae199417e9883b2d10c7f74e755ec0f1' }, index.h("h2", { key: '14379ccb8cc02c5041a11ba85b15785a4fd87711' }, "Smoothly spinner"), index.h("div", { key: '71d53a5d93355f097f377cf0665c299fe85746e8', style: { width: "fit-content" } }, "Large", index.h("smoothly-spinner", { key: 'ea3b1bc70eb21b536c561f33176caffd2891b6df', size: "large", style: {
|
|
3878
3848
|
"--spinner-background": "200,255,200",
|
|
3879
3849
|
"--spinner-background-opacity": "0.2",
|
|
3880
3850
|
"--spinner-color": "0,130,0",
|
|
3881
|
-
} })), index.h("div", { key: '
|
|
3851
|
+
} })), index.h("div", { key: '0d5e895fdd77b5726b8c239e47cd044a067d1f2a', style: { width: "fit-content" } }, "Medium", index.h("smoothly-spinner", { key: '385f5a706c79db46521602b25a2b74010108c08d', size: "medium" })), index.h("div", { key: 'c7fa64f4652ec6c43d76f2479b7c0d495b839a39', style: { width: "fit-content" } }, "Small", index.h("smoothly-spinner", { key: '5c495259b28ce92f47998e40c30899ceaca44712', size: "small" })), index.h("div", { key: '788b86e0d1b31798d3ccb7a36b3b2ca30bbe5492' }, "Icon sized spinner on button", Scrollable.Color.types.map(color => (index.h("smoothly-button", { size: "icon", color: color, shape: "rounded", onClick: () => {
|
|
3882
3852
|
this.downloadingSpinner = true;
|
|
3883
3853
|
setTimeout(() => (this.downloadingSpinner = false), 3000);
|
|
3884
|
-
} }, !this.downloadingSpinner && index.h("smoothly-icon", { name: "download-outline" }), this.downloadingSpinner && (index.h("smoothly-spinner", { size: "icon", style: { "--spinner-background-opacity": "0" } })))))), index.h("h3", { key: '
|
|
3854
|
+
} }, !this.downloadingSpinner && index.h("smoothly-icon", { name: "download-outline" }), this.downloadingSpinner && (index.h("smoothly-spinner", { size: "icon", style: { "--spinner-background-opacity": "0" } })))))), index.h("h3", { key: 'bfc699d0d863be1f32947b2c6fc8e423cfe9c6e7' }, "Spinner with overlay"), index.h("div", { key: '8b104392475d98d3ed535266efb5e1e43242eec2', style: { position: "relative", height: "10em" } }, "Large Overlay Spinner", index.h("smoothly-spinner", { key: 'da19b77e7623e6e5beb7a79f481c1454c0ba54ae', overlay: true, size: "large", style: {
|
|
3885
3855
|
"--spinner-background": "255,200,255",
|
|
3886
3856
|
"--spinner-background-opacity": "0.5",
|
|
3887
3857
|
"--spinner-color": "0,130,0",
|
|
3888
|
-
} })), index.h("div", { key: '
|
|
3858
|
+
} })), index.h("div", { key: '5db60a3ef1c609c086605215bf67587018350a2b', style: { position: "relative", height: "10em" } }, "Medium Overlay Spinner", index.h("smoothly-spinner", { key: '5680ba103faabfaf100971b44bd593c78e829d6f', overlay: true, color: "secondary", size: "medium" })), index.h("div", { key: '5c1744129386116f82e90b461a82b41f1b1a7fa2', style: { position: "relative", height: "10em" } }, "Small Overlay Spinner", index.h("smoothly-spinner", { key: '986d2d8a53fc002aee01448f70959a084712c3a2', overlay: true, size: "small" }))), index.h("fieldset", { key: '3c8217e31e5895740f9ec2db68a5936ece213134' }, index.h("h2", { key: '230544e3d1daf869ffe78018507938ede4cdd25f' }, "Smoothly summary"), index.h("smoothly-summary", { key: '1ef51bf9f6f09efec5ce78320c8c8d887e832536' }, index.h("p", { key: 'bbb4e1c627cc29bcd3dcbf869123cd46fcee7c78', slot: "summary" }, "Some title"), index.h("p", { key: '98c3df7e2be91138ada47962a3d816ef7ca96116', slot: "content" }, "Some content")), index.h("smoothly-summary", { key: '0cee5711b5d4982d83a5af38de7b4a9d07f5b681', size: "large" }, index.h("p", { key: '01d3e7770a29191f3435ff71b5b910b1fe971986', slot: "summary" }, "Some title"), index.h("p", { key: '4bf19406510e9754aa6a6e80bf246250d16147b7', slot: "content" }, "Some content")), index.h("smoothly-summary", { key: '140ae2b80f6444ae1b0c6f010a986ad44a3ae660', color: "danger", fill: "clear" }, index.h("div", { key: '79d24ee9a8b34a5a1237133cf3b91b57a1939be9', slot: "summary", style: { display: "flex", gap: "0.3rem" } }, index.h("span", { key: 'f356abe390f260e9a42fdda66618326133aa077d' }, "Person"), index.h("smoothly-icon", { key: 'adbc3c65da8c17a682f1f94dff503a2fb8b15f6c', name: "person", color: "light", fill: "clear", size: "tiny" })), index.h("p", { key: 'c9ee2266ff09249a525c04d5f336f7d837b683bf', slot: "content" }, "Some person information.")), index.h("smoothly-summary", { key: '8ceed261dadef7e9e1a36223034838843b193d95', color: "danger", fill: "clear", open: true }, index.h("p", { key: 'f463c38fc03dd5bd1f1888a1112f0ff81d333bbd', slot: "summary" }, "Some other title"), index.h("p", { key: '443efb036132d38db530da20d718f66659a30594', 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.")), index.h("h2", { key: '3e0fe4420b481349bae4af2c0f82b3488be08dc1' }, "Label"), labels.map(l => (index.h("smoothly-label", { hue: l.hue, description: l.description, shape: "rectangle" }, l.name))), index.h("smoothly-label", { key: '2a741a99f86afdb9facdc93c3e39eadc8087910d', color: "primary", description: "Using colors", shape: "rectangle" }, "Primary"))),
|
|
3889
3859
|
];
|
|
3890
3860
|
}
|
|
3891
3861
|
};
|
|
@@ -3912,7 +3882,7 @@ const SmoothlyDisplayDemoJson = class {
|
|
|
3912
3882
|
index.registerInstance(this, hostRef);
|
|
3913
3883
|
}
|
|
3914
3884
|
render() {
|
|
3915
|
-
return (index.h(index.Host, { key: '
|
|
3885
|
+
return (index.h(index.Host, { key: '67b8c263dfe7d72e1072ba3d630ea74f0a05788a' }, [0, 1, 3, undefined].map(colapseDepth => [
|
|
3916
3886
|
index.h("div", null, "collapseDepth=", colapseDepth !== null && colapseDepth !== void 0 ? colapseDepth : "undefined"),
|
|
3917
3887
|
index.h("div", null, index.h("smoothly-display", { type: "json", value: json, collapseDepth: colapseDepth })),
|
|
3918
3888
|
])));
|
|
@@ -3937,8 +3907,8 @@ const JsonValue = ({ value, collapseDepth }) => {
|
|
|
3937
3907
|
return TimeZone.object().is(value) || Array.isArray(value) ? (index.h("smoothly-display-json-object", { value: value, collapseDepth: collapseDepth })) : (index.h("smoothly-display-json-primitive", { value: value }));
|
|
3938
3908
|
};
|
|
3939
3909
|
|
|
3940
|
-
const styleCss$
|
|
3941
|
-
const SmoothlyDisplayJsonStyle0 = styleCss$
|
|
3910
|
+
const styleCss$1a = ".sc-smoothly-display-json-h{font-family:monospace}";
|
|
3911
|
+
const SmoothlyDisplayJsonStyle0 = styleCss$1a;
|
|
3942
3912
|
|
|
3943
3913
|
const SmoothlyDisplayJson = class {
|
|
3944
3914
|
constructor(hostRef) {
|
|
@@ -3947,13 +3917,13 @@ const SmoothlyDisplayJson = class {
|
|
|
3947
3917
|
this.collapseDepth = undefined;
|
|
3948
3918
|
}
|
|
3949
3919
|
render() {
|
|
3950
|
-
return index.h(JsonValue, { key: '
|
|
3920
|
+
return index.h(JsonValue, { key: '4794f1dc5f6a104cc37ef15d6ff54650c2e162e6', value: this.value, collapseDepth: this.collapseDepth });
|
|
3951
3921
|
}
|
|
3952
3922
|
};
|
|
3953
3923
|
SmoothlyDisplayJson.style = SmoothlyDisplayJsonStyle0;
|
|
3954
3924
|
|
|
3955
|
-
const styleCss$
|
|
3956
|
-
const SmoothlyDisplayJsonObjectStyle0 = styleCss$
|
|
3925
|
+
const styleCss$19 = ".sc-smoothly-display-json-object-h{font-family:monospace;position:relative}[hidden].sc-smoothly-display-json-object-h{display:none}.indent.sc-smoothly-display-json-object{padding-left:1rem;border-left:1px solid rgb(var(--smoothly-light-shade))}.sc-smoothly-display-json-object-h:not(.open) .content.sc-smoothly-display-json-object{display:none}.sc-smoothly-display-json-object-h>.content.sc-smoothly-display-json-object>.indent.sc-smoothly-display-json-object:last-child>.comma.sc-smoothly-display-json-object{display:none}.open-bracket.sc-smoothly-display-json-object::after{background-color:rgb(var(--smoothly-light-color));color:rgb(var(--smoothly-light-shade));white-space:pre;border-radius:0.25rem;font-weight:bold;font-size:0.8em}.sc-smoothly-display-json-object-h:not(.open):not(.empty)>.open-bracket.sc-smoothly-display-json-object::after{content:\" ▶ \" attr(data-length) \" ◀ \"}.open.sc-smoothly-display-json-object-h:not(.empty)>.open-bracket.sc-smoothly-display-json-object::after{content:\" ▼ \"}";
|
|
3926
|
+
const SmoothlyDisplayJsonObjectStyle0 = styleCss$19;
|
|
3957
3927
|
|
|
3958
3928
|
const SmoothlyDisplayJsonObject = class {
|
|
3959
3929
|
constructor(hostRef) {
|
|
@@ -3981,15 +3951,15 @@ const SmoothlyDisplayJsonObject = class {
|
|
|
3981
3951
|
}
|
|
3982
3952
|
render() {
|
|
3983
3953
|
const nextCollapseDepth = typeof this.collapseDepth == "number" ? Math.max(this.collapseDepth - 1, 0) : undefined;
|
|
3984
|
-
return (index.h(index.Host, { key: '
|
|
3954
|
+
return (index.h(index.Host, { key: '096aba61e52c82b8fbddfa73b76ad5378898997b', class: { empty: this.empty, open: this.open } }, index.h("span", { key: '23b082be0c70e647b622f876ce92a91aebcdfcd5', class: "open-bracket", onClick: () => (this.open = !this.open), "data-length": this.length }, this.openBracket), index.h("span", { key: '851efa46e336cdcd39eb20b08106b37cf3189c53', class: "content" }, Array.isArray(this.value)
|
|
3985
3955
|
? this.value.map(v => (index.h("div", { class: "indent" }, index.h(JsonValue, { value: v, collapseDepth: nextCollapseDepth }), index.h("span", { class: "comma" }, ","))))
|
|
3986
|
-
: Object.entries(this.value).map(([k, v]) => (index.h("div", { class: "indent" }, index.h("smoothly-display-json-record-key", { value: k }), ":", " ", index.h(JsonValue, { value: v, collapseDepth: nextCollapseDepth }), index.h("span", { class: "comma" }, ","))))), index.h("span", { key: '
|
|
3956
|
+
: Object.entries(this.value).map(([k, v]) => (index.h("div", { class: "indent" }, index.h("smoothly-display-json-record-key", { value: k }), ":", " ", index.h(JsonValue, { value: v, collapseDepth: nextCollapseDepth }), index.h("span", { class: "comma" }, ","))))), index.h("span", { key: 'ea5f8fbd4f35a2c5a462c66fbb9133f806655e64' }, this.closeBracket)));
|
|
3987
3957
|
}
|
|
3988
3958
|
};
|
|
3989
3959
|
SmoothlyDisplayJsonObject.style = SmoothlyDisplayJsonObjectStyle0;
|
|
3990
3960
|
|
|
3991
|
-
const styleCss$
|
|
3992
|
-
const SmoothlyDisplayJsonPrimitiveStyle0 = styleCss$
|
|
3961
|
+
const styleCss$18 = ".sc-smoothly-display-json-primitive-h{font-family:monospace;display:inline;word-wrap:anywhere}[hidden].sc-smoothly-display-json-primitive-h{display:none}.string.sc-smoothly-display-json-primitive-h,.number.sc-smoothly-display-json-primitive-h,.boolean.sc-smoothly-display-json-primitive-h{font-weight:bold}.string.sc-smoothly-display-json-primitive-h{color:rgb(var(--smoothly-primary-color))}.number.sc-smoothly-display-json-primitive-h{color:rgb(var(--smoothly-secondary-color))}.boolean.sc-smoothly-display-json-primitive-h{color:rgb(var(--smoothly-tertiary-color))}.null.sc-smoothly-display-json-primitive-h,.undefined.sc-smoothly-display-json-primitive-h{color:rgb(var(--smoothly-medium-color))}";
|
|
3962
|
+
const SmoothlyDisplayJsonPrimitiveStyle0 = styleCss$18;
|
|
3993
3963
|
|
|
3994
3964
|
const SmoothlyDisplayJsonPrimitive = class {
|
|
3995
3965
|
constructor(hostRef) {
|
|
@@ -3997,13 +3967,13 @@ const SmoothlyDisplayJsonPrimitive = class {
|
|
|
3997
3967
|
this.value = undefined;
|
|
3998
3968
|
}
|
|
3999
3969
|
render() {
|
|
4000
|
-
return index.h(index.Host, { key: '
|
|
3970
|
+
return index.h(index.Host, { key: '7fb3f1eae3a5a4e958aff79b218347ad089810cd', class: this.value == null ? "null" : typeof this.value }, "" + JSON.stringify(this.value));
|
|
4001
3971
|
}
|
|
4002
3972
|
};
|
|
4003
3973
|
SmoothlyDisplayJsonPrimitive.style = SmoothlyDisplayJsonPrimitiveStyle0;
|
|
4004
3974
|
|
|
4005
|
-
const styleCss$
|
|
4006
|
-
const SmoothlyDisplayJsonRecordKeyStyle0 = styleCss$
|
|
3975
|
+
const styleCss$17 = ".sc-smoothly-display-json-record-key-h{font-family:monospace;display:inline;color:rgb(var(--smoothly-default-contrast))}[hidden].sc-smoothly-display-json-record-key-h{display:none}";
|
|
3976
|
+
const SmoothlyDisplayJsonRecordKeyStyle0 = styleCss$17;
|
|
4007
3977
|
|
|
4008
3978
|
const SmoothlyDisplayJsonRecordKey = class {
|
|
4009
3979
|
constructor(hostRef) {
|
|
@@ -4011,7 +3981,7 @@ const SmoothlyDisplayJsonRecordKey = class {
|
|
|
4011
3981
|
this.value = undefined;
|
|
4012
3982
|
}
|
|
4013
3983
|
render() {
|
|
4014
|
-
return index.h(index.Host, { key: '
|
|
3984
|
+
return index.h(index.Host, { key: 'e7e589428127bdfdc3a226523417e256788003f9' }, "\"", this.value, "\"");
|
|
4015
3985
|
}
|
|
4016
3986
|
};
|
|
4017
3987
|
SmoothlyDisplayJsonRecordKey.style = SmoothlyDisplayJsonRecordKeyStyle0;
|
|
@@ -7000,8 +6970,8 @@ var Filter;
|
|
|
7000
6970
|
});
|
|
7001
6971
|
})(Filter || (Filter = {}));
|
|
7002
6972
|
|
|
7003
|
-
const styleCss$
|
|
7004
|
-
const SmoothlyFilterStyle0 = styleCss$
|
|
6973
|
+
const styleCss$16 = ".sc-smoothly-filter-h {\n\tposition: relative;\n\tborder: 1px solid rgb(var(--smoothly-medium-tint));\n\tmargin-left: 1rem;\n\tbackground-color: rgb(var(--smoothly-input-background));\n\tmargin-right: 1rem;\n\tdisplay: flex;\n\tflex-direction: row;\n\talign-items: center;\n}\n\n.sc-smoothly-filter-h>div.sc-smoothly-filter-s > [slot=detail] {\n\tz-index: 5;\n}\n\n.sc-smoothly-filter-h.sc-smoothly-filter-s > [slot=bar] {\n\tpointer-events: auto;\n\tmargin-left: 0.3em;\n\tmargin-right: 0.3em;\n\n\t&>[looks=\"plain\"] {\n\t\tdisplay: flex;\n\t\talign-self: stretch;\n\t\talign-items: center;\n\t}\n}\n\n.sc-smoothly-filter-h > div.sc-smoothly-filter:empty + smoothly-icon.sc-smoothly-filter {\n\tdisplay: none;\n}\n\n.sc-smoothly-filter-h > smoothly-icon.sc-smoothly-filter {\n\tcursor: pointer;\n\tmargin-left: 0.3em;\n\tmargin-right: 0.3em;\n\tflex-shrink: 0;\n}\n\n.sc-smoothly-filter-h > div.close.sc-smoothly-filter {\n\tposition: fixed;\n\tz-index: 3;\n\ttop: 0;\n\tleft: 0;\n\twidth: 100dvw;\n\theight: 100dvh;\n\tbackground: transparent;\n}\n\n.sc-smoothly-filter-h > div.hidden.sc-smoothly-filter {\n\tdisplay: none;\n}\n\n.sc-smoothly-filter-h > .container.sc-smoothly-filter {\n\tpadding: 2em;\n\tposition: absolute;\n\tright: 0.35em;\n\twidth: fit-content;\n\tdisplay: flex;\n\tjustify-content: center;\n\ttop: 100%;\n\twidth: fit-content;\n\tz-index: 4;\n\tbackground-color: rgb(var(--smoothly-color));\n\tmargin: 0.8em -2em;\n}\n\n\n.sc-smoothly-filter-h > div.container.sc-smoothly-filter:before {\n\tcontent: \"\";\n\twidth: 0.6em;\n\theight: 0.6em;\n\ttransform: rotate(45deg);\n\tborder-top: 1px solid rgb(var(--smoothly-medium-tint));\n\tborder-left: 1px solid rgb(var(--smoothly-medium-tint));\n\tbackground-color: rgb(var(--smoothly-color));\n\tposition: absolute;\n\tz-index: 3;\n}\n\n\n.sc-smoothly-filter-h > div.container.arrow-top.sc-smoothly-filter:before {\n\tleft: calc(91%);\n\ttop: -5px;\n}\n\n.sc-smoothly-filter-h div.container.sc-smoothly-filter:after {\n\tcontent: \"\";\n\theight: 100%;\n\twidth: 100%;\n\tborder: 1px solid rgb(var(--smoothly-medium-tint));\n\tborder-radius: 0.25em;\n\tposition: absolute;\n\ttop: 0;\n\tleft: 0;\n}";
|
|
6974
|
+
const SmoothlyFilterStyle0 = styleCss$16;
|
|
7005
6975
|
|
|
7006
6976
|
const SmoothlyFilter = class {
|
|
7007
6977
|
constructor(hostRef) {
|
|
@@ -7040,17 +7010,17 @@ const SmoothlyFilter = class {
|
|
|
7040
7010
|
this.filters.forEach(update => update(this.criteria));
|
|
7041
7011
|
}
|
|
7042
7012
|
render() {
|
|
7043
|
-
return (index.h(index.Host, { key: '
|
|
7013
|
+
return (index.h(index.Host, { key: '458866acba458b727749aab418c5d07b009f0886' }, index.h("slot", { key: '6deb9fb89f67c8adc89c88b67762b3200953ed29', name: "bar" }), index.h("smoothly-filter-field", { key: 'f3c3c18a6385b7abfeb82ec2320312f0a13f439e', criteria: this.criteria, ref: e => (this.field = e) }), this.criteria.toString() != "" && (index.h("smoothly-icon", { key: '5e7586e48cd66190af3d48ab013c1af4ff006acf', name: "close", toolTip: "Clear all filters", size: "small", onClick: () => {
|
|
7044
7014
|
this.clear();
|
|
7045
|
-
} })), index.h("div", { key: '
|
|
7015
|
+
} })), index.h("div", { key: '742d3c1ab86806412d5ab95bf19249feffb2cd35', class: this.expanded ? "container arrow-top" : "hidden" }, index.h("slot", { key: 'e8837329167c794efbcbb255ca9c50def503ef3f', name: "detail" })), index.h("smoothly-icon", { key: '0ebf30bb6797347fa77dec156f48c4b0a9d22e89', name: this.expanded ? "options" : "options-outline", toolTip: (this.expanded ? "Hide" : "Show") + " additional filters", size: "small", onClick: () => {
|
|
7046
7016
|
this.expanded = !this.expanded;
|
|
7047
|
-
} }), index.h("div", { key: '
|
|
7017
|
+
} }), index.h("div", { key: '31f476a863f44affca3c643529331e769f9658a0', class: this.expanded ? "close" : "hidden", onClick: () => (this.expanded = !this.expanded) })));
|
|
7048
7018
|
}
|
|
7049
7019
|
};
|
|
7050
7020
|
SmoothlyFilter.style = SmoothlyFilterStyle0;
|
|
7051
7021
|
|
|
7052
|
-
const styleCss$
|
|
7053
|
-
const SmoothlyFilterFieldStyle0 = styleCss$
|
|
7022
|
+
const styleCss$15 = ".sc-smoothly-filter-field-h{flex-grow:5}";
|
|
7023
|
+
const SmoothlyFilterFieldStyle0 = styleCss$15;
|
|
7054
7024
|
|
|
7055
7025
|
const SmoothlyFilterField = class {
|
|
7056
7026
|
constructor(hostRef) {
|
|
@@ -7071,7 +7041,7 @@ const SmoothlyFilterField = class {
|
|
|
7071
7041
|
this.value = event.detail.filter;
|
|
7072
7042
|
}
|
|
7073
7043
|
render() {
|
|
7074
|
-
return (index.h(index.Host, { key: '
|
|
7044
|
+
return (index.h(index.Host, { key: '101fba7d3f376e7b556425daf64c5ac8932fefbc' }, index.h("smoothly-input", { key: 'b0652849fec0e9748b289cc5b6a1dd556906fbba', name: "filter", ref: e => (this.input = e), value: this.criteria.toString(), onSmoothlyInputLooks: e => e.stopPropagation(), onSmoothlyKeydown: e => {
|
|
7075
7045
|
e.stopPropagation();
|
|
7076
7046
|
e.detail.key == "Enter" && this.filterFieldEmit();
|
|
7077
7047
|
}, onSmoothlyBlur: e => e.stopPropagation(), onSmoothlyFormDisable: e => e.stopPropagation(), onSmoothlyInputLoad: e => e.stopPropagation(), onSmoothlyChange: e => e.stopPropagation(), onSmoothlyInput: e => {
|
|
@@ -7082,8 +7052,8 @@ const SmoothlyFilterField = class {
|
|
|
7082
7052
|
};
|
|
7083
7053
|
SmoothlyFilterField.style = SmoothlyFilterFieldStyle0;
|
|
7084
7054
|
|
|
7085
|
-
const styleCss$
|
|
7086
|
-
const SmoothlyFilterInputStyle0 = styleCss$
|
|
7055
|
+
const styleCss$14 = ".sc-smoothly-filter-input-h{display:contents}.sc-smoothly-filter-input-h>smoothly-input.sc-smoothly-filter-input{flex-grow:1;min-width:10em;flex-basis:40%}";
|
|
7056
|
+
const SmoothlyFilterInputStyle0 = styleCss$14;
|
|
7087
7057
|
|
|
7088
7058
|
const SmoothlyFilterInput = class {
|
|
7089
7059
|
constructor(hostRef) {
|
|
@@ -7151,13 +7121,13 @@ const SmoothlyFilterInput = class {
|
|
|
7151
7121
|
(rest.length == 0 || (!!criteria.criteria && this.findInstanceOf(criteria.criteria, rest.join(".")))));
|
|
7152
7122
|
}
|
|
7153
7123
|
render() {
|
|
7154
|
-
return (index.h("smoothly-input", { key: '
|
|
7124
|
+
return (index.h("smoothly-input", { key: '90646ba0c33a81236352bc130c9139d652473b64', name: this.property, value: this.needle, type: this.type, placeholder: this.placeholder, onSmoothlyBlur: e => e.stopPropagation(), onSmoothlyFormDisable: e => e.stopPropagation(), onSmoothlyInputLoad: e => e.stopPropagation(), onSmoothlyChange: e => e.stopPropagation(), onSmoothlyInput: e => this.inputHandler(e) }, this.label, index.h("slot", { key: 'f6ba39d46857fb3ac409c9ae4cc404b0dca9a7bd' })));
|
|
7155
7125
|
}
|
|
7156
7126
|
};
|
|
7157
7127
|
SmoothlyFilterInput.style = SmoothlyFilterInputStyle0;
|
|
7158
7128
|
|
|
7159
|
-
const styleCss$
|
|
7160
|
-
const SmoothlyFilterSelectStyle0 = styleCss$
|
|
7129
|
+
const styleCss$13 = ".sc-smoothly-filter-select-h{display:contents}.sc-smoothly-filter-select-h>smoothly-input-select.sc-smoothly-filter-select{flex-grow:1;width:12.5em}.options.sc-smoothly-filter-select{border:rgb(var(--smoothly-input-border, var(--smoothly-color-contrast))) solid 1px;border-top:rgba(var(--smoothly-input-border, var(--smoothly-color-contrast)), .4) solid 1px}";
|
|
7130
|
+
const SmoothlyFilterSelectStyle0 = styleCss$13;
|
|
7161
7131
|
|
|
7162
7132
|
const SmoothlyFilterSelect = class {
|
|
7163
7133
|
constructor(hostRef) {
|
|
@@ -7260,14 +7230,14 @@ const SmoothlyFilterSelect = class {
|
|
|
7260
7230
|
return result && this.property.split(".").reduceRight((r, e) => property(e, r), result);
|
|
7261
7231
|
}
|
|
7262
7232
|
render() {
|
|
7263
|
-
return (index.h("smoothly-input-select", { key: '
|
|
7233
|
+
return (index.h("smoothly-input-select", { key: '7880e87f45d9227a6663854c8eb427ac39f0bce8', ref: e => (this.selectElement = e), name: this.property, looks: this.looks, multiple: this.multiple, menuHeight: this.menuHeight, onSmoothlyInputLooks: e => e.stopPropagation(), onSmoothlyItemSelect: e => e.stopPropagation(), onSmoothlyInput: e => this.selectHandler(e) }, this.label && (index.h("span", { key: 'b1ec133090f874ce79645ba2e82718d78590282c', slot: "label" }, [this.label.slice(0, 1).toUpperCase(), this.label.slice(1, this.label.length)].join(""))), index.h("slot", { key: '87022479beb55154bc3006ec2ac564865f37a9c8', name: "items" })));
|
|
7264
7234
|
}
|
|
7265
7235
|
get element() { return index.getElement(this); }
|
|
7266
7236
|
};
|
|
7267
7237
|
SmoothlyFilterSelect.style = SmoothlyFilterSelectStyle0;
|
|
7268
7238
|
|
|
7269
|
-
const styleCss$
|
|
7270
|
-
const SmoothlyFilterToggleStyle0 = styleCss$
|
|
7239
|
+
const styleCss$12 = ".sc-smoothly-filter-toggle-h{position:relative;display:inline-block;cursor:pointer}.sc-smoothly-filter-toggle-h:hover>smoothly-icon.sc-smoothly-filter-toggle{stroke:rgb(var(--smoothly-success-tint));color:rgb(var(--smoothly-success-tint));fill:rgb(var(--smoothly-success-tint))}[flip].sc-smoothly-filter-toggle-h{transform:scaleX(-1)}";
|
|
7240
|
+
const SmoothlyFilterToggleStyle0 = styleCss$12;
|
|
7271
7241
|
|
|
7272
7242
|
const SmoothlyFilterToggle = class {
|
|
7273
7243
|
constructor(hostRef) {
|
|
@@ -7344,7 +7314,7 @@ const SmoothlyFilterToggle = class {
|
|
|
7344
7314
|
(rest.length == 0 || (!!check.criteria && this.findInstanceOf(check.criteria, rest.join(".")))));
|
|
7345
7315
|
}
|
|
7346
7316
|
render() {
|
|
7347
|
-
return (index.h("smoothly-icon", { key: '
|
|
7317
|
+
return (index.h("smoothly-icon", { key: '2fc0a0d6ad73406cacdb79964618ec4a97f7cfdf', fill: "clear", color: this.active ? "success" : "medium", name: (this.active ? `${this.icon}` : `${this.icon}-outline`), toolTip: this.toolTip, onClick: () => this.activeHandler(true) }));
|
|
7348
7318
|
}
|
|
7349
7319
|
};
|
|
7350
7320
|
SmoothlyFilterToggle.style = SmoothlyFilterToggleStyle0;
|
|
@@ -8190,8 +8160,8 @@ var Input;
|
|
|
8190
8160
|
Input.registerSubAction = registerSubAction;
|
|
8191
8161
|
})(Input || (Input = {}));
|
|
8192
8162
|
|
|
8193
|
-
const styleCss$
|
|
8194
|
-
const SmoothlyFormStyle0 = styleCss$
|
|
8163
|
+
const styleCss$11 = "smoothly-form{display:block;position:relative}smoothly-form>form{position:relative;min-width:15em}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:10em;flex-basis:40%}smoothly-form[looks=\"line\"]>form>fieldset,smoothly-form[looks=\"border\"]>form>fieldset,smoothly-form[looks=\"transparent\"]>form>fieldset{gap:2em}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:0.5rem}";
|
|
8164
|
+
const SmoothlyFormStyle0 = styleCss$11;
|
|
8195
8165
|
|
|
8196
8166
|
const SmoothlyForm = class {
|
|
8197
8167
|
constructor(hostRef) {
|
|
@@ -8309,7 +8279,7 @@ const SmoothlyForm = class {
|
|
|
8309
8279
|
});
|
|
8310
8280
|
if (this.action) {
|
|
8311
8281
|
const action = this.action;
|
|
8312
|
-
this.notice.emit(
|
|
8282
|
+
this.notice.emit(Notice.Notice.execute("Submitting form", async () => {
|
|
8313
8283
|
const method = remove
|
|
8314
8284
|
? "DELETE"
|
|
8315
8285
|
: !this.type || this.type == "create"
|
|
@@ -8359,7 +8329,7 @@ const SmoothlyForm = class {
|
|
|
8359
8329
|
await Promise.all([...this.inputs.values()].map(input => Editable.Element.type.is(input) && input.setInitialValue()));
|
|
8360
8330
|
}
|
|
8361
8331
|
render() {
|
|
8362
|
-
return (index.h(index.Host, { key: '
|
|
8332
|
+
return (index.h(index.Host, { key: '2a470af3268fe4b09126d86c2f1c01e1b6ac2ab2' }, index.h("smoothly-spinner", { key: 'e296f07867de64502324dc2ec4e50d8161ba8128', overlay: true, hidden: !this.processing }), index.h("form", { key: '4714f583928de712a0825df741f8cc5e308ad61c', onSubmit: !this.prevent ? undefined : e => e.preventDefault(), name: this.name }, index.h("fieldset", { key: '540893b763c751596966cd0004c6f835fb0bf707' }, index.h("slot", { key: 'ab23afac707e9a70375314c92e4e33e2c6412705' })), index.h("div", { key: '297ebfa45ea2c708b299b92ecefaa715bccdaa6d' }, index.h("slot", { key: '4123990062064e150a3ec5fb2df4bb062753585f', name: "clear" }), index.h("slot", { key: '2b3ae04fa317a90056a6d768379db05094c4e8d4', name: "edit" }), index.h("slot", { key: 'fcfbc817ac6d2b408dc58cf7562b8c8eff9d834e', name: "reset" }), index.h("slot", { key: 'cf6227e56a5b0a36417aa6e0c80e85b181f128b5', name: "delete" }), index.h("slot", { key: '3c715796fadcf3154645f45b2fdbafde39260f10', name: "submit" })))));
|
|
8363
8333
|
}
|
|
8364
8334
|
get element() { return index.getElement(this); }
|
|
8365
8335
|
static get watchers() { return {
|
|
@@ -8369,15 +8339,15 @@ const SmoothlyForm = class {
|
|
|
8369
8339
|
};
|
|
8370
8340
|
SmoothlyForm.style = SmoothlyFormStyle0;
|
|
8371
8341
|
|
|
8372
|
-
const styleCss$
|
|
8373
|
-
const SmoothlyFormDemoStyle0 = styleCss$
|
|
8342
|
+
const styleCss$10 = ".sc-smoothly-form-demo-h{display:flex;margin-top:2em;margin-bottom:10em}.sc-smoothly-form-demo-h>div.sc-smoothly-form-demo{margin:auto;width:1200px;max-width:100%}";
|
|
8343
|
+
const SmoothlyFormDemoStyle0 = styleCss$10;
|
|
8374
8344
|
|
|
8375
8345
|
const SmoothlyFormDemo = class {
|
|
8376
8346
|
constructor(hostRef) {
|
|
8377
8347
|
index.registerInstance(this, hostRef);
|
|
8378
8348
|
}
|
|
8379
8349
|
render() {
|
|
8380
|
-
return (index.h(index.Host, { key: '
|
|
8350
|
+
return (index.h(index.Host, { key: '8e9b91eba4771356a02e26aa874149e9aec1e49e' }, index.h("div", { key: '322a7b8c4053c5307e09aedc034aec3bd58cfa40' }, index.h("smoothly-form-demo-all", { key: '36cff0fce86410559185639407888e064aa7f6f5' }), index.h("smoothly-form-demo-pet", { key: '8ac19a250eae3f03b36b7eefa4bb0b8fcef9bc67' }), index.h("smoothly-form-demo-card", { key: 'e92a4974e434fc122a4d6a9036031c19eb8fbdce' }), index.h("smoothly-form-demo-login", { key: '0551748193b700acbc0ef91afe2e330ac67c1ec6' }), index.h("smoothly-form-demo-prices", { key: '98e1cd3159817b7943b0fcab4b8e455527679aef' }), index.h("smoothly-form-demo-typed", { key: 'ee3a5a705e8295e6f030201876e8e9e6e0b17ce5' }), index.h("smoothly-form-demo-transparent", { key: 'f245050d3f3838922c51ab02a6fc7c51d030be49' }), index.h("smoothly-form-demo-date", { key: 'b9dab7e216a735a7d4a71e63e9dcdcbb261d35b9' }), index.h("smoothly-form-demo-schedule", { key: '5f7073b2b7d9ec29a787d1c47a54261d7a312735' }), index.h("smoothly-form-demo-date-range", { key: '6d0c60c7aac3037d3d697e1440ce3643fd107298' }), index.h("smoothly-form-demo-controlled", { key: 'e307e69e96b98c85cd15f6e1e68facd7a86ebcb0' }))));
|
|
8381
8351
|
}
|
|
8382
8352
|
};
|
|
8383
8353
|
SmoothlyFormDemo.style = SmoothlyFormDemoStyle0;
|
|
@@ -8387,9 +8357,9 @@ const SmoothlyFormDemoAll = class {
|
|
|
8387
8357
|
index.registerInstance(this, hostRef);
|
|
8388
8358
|
}
|
|
8389
8359
|
render() {
|
|
8390
|
-
return (index.h(index.Host, { key: '
|
|
8360
|
+
return (index.h(index.Host, { key: '0385c6c02d1a129cae00d079094839f60b9e4d59' }, index.h("h2", { key: '9ab19de22f878f88a3f0f7dec246645f22621374' }, "All inputs"), index.h("smoothly-form", { key: '0afb15a06693181711b9002415e0729db1042c3a', looks: "grid", type: "create", readonly: true, action: "https://api.toiletapi.com/upload/6b12fd2f-e896-46f9-b38f-25cf42cee4b4", onSmoothlyFormSubmit: e => {
|
|
8391
8361
|
Object.entries(e.detail.value).forEach(([key, value]) => console.log(key, value));
|
|
8392
|
-
} }, index.h("smoothly-input", { key: '
|
|
8362
|
+
} }, index.h("smoothly-input", { key: 'ee53cbde0c7bfe23cd594857fc835cdbc8997be8', readonly: true, name: "First Name", value: "John" }, "First name"), index.h("smoothly-input", { key: 'e8dabfb02d84e6fef81d6a411f354cded4a13125', showLabel: false, name: "Last name", value: "Doe" }, "Last name", index.h("smoothly-input-clear", { key: '007aadc8941ac9fa2f021e3e7f22e3963926f9be', size: "icon", slot: "end" })), index.h("smoothly-input", { key: '1e950ab385f9a2ce8fd2e53a28c90390f28ff899', type: "phone", name: "Phone", value: "777888999" }, "Phone", index.h("smoothly-input-reset", { key: '145855140f87a29ccb57bbb6f849a194b7acf196', size: "icon", slot: "end" })), index.h("smoothly-input-radio", { key: '2201218715b3f5a2f3329666b323f5c9bf333573', clearable: true, name: "radioFirstInput" }, index.h("label", { key: '59ee297d1330677038c37c54ebfc5836b84e1f6d', slot: "label" }, "Clearable"), index.h("smoothly-input-radio-item", { key: 'f3c8d30e7bdf29403246920b1f02233d3edfed2d', value: "first" }, "Label 1"), index.h("smoothly-input-radio-item", { key: '2bf870391e90289389c3b22eb1e1b255fa98a6f7', selected: true, value: "second" }, "Label 2"), index.h("smoothly-input-radio-item", { key: 'a90a3faad2d93630c2b6202838d398ef9b89cfe1', value: "third" }, "Label 3")), index.h("smoothly-input-color", { key: '31fd3877a6f20c27ab0872b95f063e39895e6708', name: "color" }, "Color"), index.h("smoothly-input-select", { key: '9b047ab54f69e2da1a25abc6fdf9f11e0d716d7f', multiple: true, menuHeight: "7.5items", placeholder: "Select...", name: "select-month" }, index.h("label", { key: 'b5ab72a4bccfd7c0b8e1038fa87bb8e66fc44a43', slot: "label" }, "Month multiple select"), index.h("smoothly-item", { key: '0f3d894bd9dae781826566109399e1e856c89d1b', value: "1" }, "January"), index.h("smoothly-item", { key: 'cb61f8ab32e41fa7253bf7b48d94ea38d0d19ecb', value: "2" }, "February"), index.h("smoothly-item", { key: '7b1622524d978dd546ca7c6008f115c9f44cc6be', value: "3" }, "March"), index.h("smoothly-item", { key: 'e1b2b778033ccdd54a64b4da83d310327ed54396', value: "4" }, "April"), index.h("smoothly-item", { key: '8d332fe5eb51c160967758b0c8f4027b97dc0e62', value: "5" }, "May"), index.h("smoothly-item", { key: 'bc1f0d30456a8b594bedea79c8e4fc5ca4b1da68', value: "6" }, "June"), index.h("smoothly-item", { key: '488700b5282383005b2c0461c51790d84f7ca016', value: "7" }, "July"), index.h("smoothly-item", { key: '839587c691493cbbfc08042be2046c19b5f56289', value: "8" }, "August"), index.h("smoothly-item", { key: '70c7887a84bf8fcb9a9431338d93b14addc15161', value: "9" }, "September"), index.h("smoothly-item", { key: 'c322400e0887f7679c544fae17349eaa56e7cc02', value: "10" }, "October"), index.h("smoothly-item", { key: 'c10061927e97aed1dca867c2bf5ba0c73d07b52c', value: "11" }, "November"), index.h("smoothly-item", { key: '55e3a278605d6d993db666ec9de378b8379a5ab3', value: "12" }, "December")), index.h("smoothly-input-select", { key: 'd77d5b5c87a21c14dcbb717ca795c5ca4254c8d6', name: "select-icon", clearable: false, showSelected: false }, index.h("smoothly-item", { key: '9e38015a8147bb4ed6e364b9322e322a31634c11', value: "folder", selected: true }, index.h("smoothly-icon", { key: '4d76c912b915fd7dddad9cbe8b81607f01ef4949', size: "small", name: "folder-outline" })), index.h("smoothly-item", { key: '7fbdf3b545e1d55a2b0ce3ba335f4aea2a7da264', value: "camera" }, index.h("smoothly-icon", { key: '352ee5b864d40be93eac21c5254acef61f988c6e', size: "small", name: "camera-outline" }))), index.h("smoothly-input-checkbox", { key: '530dc05e2e2d51afbb45c768ad1637737b1cddf4', name: "checkbox" }, "Check the box"), index.h("smoothly-input-checkbox", { key: '6ddc97414bd84c2e1c843879aebbc5f5c1977d05', name: "checkbox2", checked: true }, "Check the box 2"), index.h("smoothly-input-range", { key: 'bd862dfb912da37eb20e2811858da0e788eba924', step: 1, name: "range3", value: 20, label: "Range" }), index.h("smoothly-input", { key: '2548250dacd06f9ba1de8045d48d3cfa98eb9d1b', name: "pets.0.name" }, "First Pet's Name"), index.h("smoothly-input-range", { key: '78dab22e4689a72c9ce3436b31925646f5b303c8', name: "pets.0.age", max: 100, step: 1, label: "First Pet's Age" }), index.h("smoothly-input", { key: 'eca7538c78a471144ef765e1df2f106a18dcf1f9', name: "pets.1.name" }, "Second Pet's Name"), index.h("smoothly-input-range", { key: 'e1ddaf4aa7094e686697ac03746aa1cdfc71ba42', name: "pets.1.age", max: 100, step: 1, label: "Second Pet's Age" }), index.h("smoothly-input", { key: '0890a1f3a253504a4a58fafca62dd4b54116c564', name: "pets.2.name" }, "Third Pet's Name"), index.h("smoothly-input-range", { key: '3fd7d0325432d62a54ab244e030b3a369f068f22', name: "pets.2.age", max: 100, step: 1, label: "Third Pet's Age" }), index.h("smoothly-input-file", { key: '568ece01b6aa322f154b5c78040e1b115ccda380', name: "profile", placeholder: "Click or drag your profile picture here..." }, index.h("span", { key: '51fd8921d6a698a2a7dd9d3773cde43383e1999f', slot: "label" }, "Profile"), index.h("smoothly-icon", { key: '5026285c999994ce45ac5bed2683469ef562add5', slot: "button", name: "person-circle-outline", size: "tiny", fill: "default" })), index.h("smoothly-input", { key: '7cd8a2a7dc3225931f7c6ab15b5d4dc8d2da3b3c', type: "duration", name: "duration", value: {} }, "Duration"), index.h("smoothly-input-clear", { key: '675198ec95d9332a46d5304a777cf275cea8f8a4', fill: "default", type: "form", color: "warning", slot: "clear", size: "icon", shape: "rounded" }), index.h("smoothly-input-edit", { key: '097b5accc35106459a734e3b5184533f88f1866b', fill: "default", type: "form", color: "tertiary", slot: "edit", size: "icon", shape: "rounded" }), index.h("smoothly-input-reset", { key: 'c6ed2a9e024bca4816ca24cbe369a573de8d46ff', fill: "default", type: "form", color: "warning", slot: "reset", size: "icon", shape: "rounded" }), index.h("smoothly-input-submit", { key: '8e52f80b304f44cf55a5928114858b1bf6907859', delete: true, slot: "delete", color: "danger", size: "icon", shape: "rounded" }), index.h("smoothly-input-submit", { key: 'c82da9b800869ca3438b45945b99b7ab5161abd6', fill: "default", color: "success", slot: "submit", size: "icon", shape: "rounded" }))));
|
|
8393
8363
|
}
|
|
8394
8364
|
};
|
|
8395
8365
|
|
|
@@ -8398,7 +8368,7 @@ const SmoothlyFormDemoCard = class {
|
|
|
8398
8368
|
index.registerInstance(this, hostRef);
|
|
8399
8369
|
}
|
|
8400
8370
|
render() {
|
|
8401
|
-
return (index.h(index.Host, { key: '
|
|
8371
|
+
return (index.h(index.Host, { key: 'de64604dbfaa81289d06fb7f035e266385a24c53' }, index.h("h2", { key: 'de36abc60544d5f6023d06933c2234cf04887253' }, "Card"), index.h("smoothly-form", { key: '51aefd9496fd4cb72a61a6e922db326633bd1928', looks: "grid", onSmoothlyFormSubmit: (e) => alert(JSON.stringify(e.detail)) }, index.h("smoothly-input", { key: 'c9cd0695bd416621f1758ece4b54e68e32c5d24a', type: "card-number", name: "card" }, "Card #"), index.h("smoothly-input-submit", { key: '1989c48e8a3a0294d7d9d2eaf64a30329a7a88b9', size: "icon", slot: "submit", color: "success", fill: "solid" }), index.h("smoothly-input", { key: '48887253eeb8ede70e8a09b8e3bbba364d2830d3', type: "card-expires", name: "expires" }, "Expires"), index.h("smoothly-input", { key: 'f39016c5c87709cbce3cd4713bd3598855770a88', type: "card-csc", name: "csc" }, "CVV/CVC"), index.h("smoothly-input", { key: 'a2f5a4a644b0c1eb56d4556f774a1e7d0a12a0c1', type: "text", name: "name.first" }, "First Name"), index.h("smoothly-input", { key: '3eb6744a2fee26035aa7dac8e786c4bbfa689f3d', type: "text", name: "name.last" }, "Last Name"))));
|
|
8402
8372
|
}
|
|
8403
8373
|
};
|
|
8404
8374
|
|
|
@@ -8434,15 +8404,15 @@ const SmoothlyFormDemoControlled = class {
|
|
|
8434
8404
|
event.detail.result(false);
|
|
8435
8405
|
}
|
|
8436
8406
|
render() {
|
|
8437
|
-
return (index.h(index.Host, { key: '
|
|
8407
|
+
return (index.h(index.Host, { key: 'e312871aa3d76c94091e33d4ca6594a12de64673' }, index.h("h2", { key: '01f69f3ac2f7aa936b97604c9ed9f2006b72d845' }, "Controlled"), index.h("smoothly-form", { key: '999072a4a6bab7ee0d00810e4677fe96948a5591', readonly: true, looks: "grid", onSmoothlyFormSubmit: e => this.submitHandler(e) }, index.h("smoothly-input", { key: '132707e9e475d5b2621528410998ef2b3a9ff589', type: "text", name: "name", value: this.name }, "Name"), index.h("smoothly-input-select", { key: 'f99fdb9c0389f9aa0d41ca19345a59f81626a789', name: "currency" }, index.h("span", { key: '07e163ae48a752ea46818ced40c54f6c02b20291', slot: "label" }, "Currency"), this.currencies.map(currency => (index.h("smoothly-item", { selected: currency == this.currency, value: currency }, currency)))), index.h("smoothly-input", { key: 'a4541576d6174d00edc35dc30d16e7107f8e787e' }, "Dummy"), index.h("smoothly-input-month", { key: '52795ebfac126f55b07a670ed1c5d74e408e317c', name: "date", value: this.date, next: true, previous: true }, index.h("span", { key: '6c2020021f005783a25136f68c873d5536b87d71', slot: "year-label" }, "Year"), index.h("span", { key: 'ff7c8e28d5c0dd2cb503613a0ecdd3f0f1b14e97', slot: "month-label" }, "Month")), index.h("smoothly-input-edit", { key: '3762d99e64f8fd135050b3e174db72fa3dfa776c', slot: "edit", size: "icon", color: "primary", fill: "default" }), index.h("smoothly-input-reset", { key: '3c65df079fb6cf79a9c9f9dcf8d078e53a9b211f', slot: "reset", size: "icon", color: "warning", fill: "default" }), index.h("smoothly-input-submit", { key: '89ebbedc35474bdcd13d210dd64f2fbeda3efc76', slot: "submit", size: "icon", color: "success" }))));
|
|
8438
8408
|
}
|
|
8439
8409
|
static get watchers() { return {
|
|
8440
8410
|
"name": ["nameChanged"]
|
|
8441
8411
|
}; }
|
|
8442
8412
|
};
|
|
8443
8413
|
|
|
8444
|
-
const styleCss
|
|
8445
|
-
const SmoothlyFormDemoDateStyle0 = styleCss
|
|
8414
|
+
const styleCss$$ = ".sc-smoothly-form-demo-date-h{display:block}";
|
|
8415
|
+
const SmoothlyFormDemoDateStyle0 = styleCss$$;
|
|
8446
8416
|
|
|
8447
8417
|
const SmoothlyFormDemoDate = class {
|
|
8448
8418
|
constructor(hostRef) {
|
|
@@ -8456,22 +8426,22 @@ const SmoothlyFormDemoDate = class {
|
|
|
8456
8426
|
event.stopPropagation();
|
|
8457
8427
|
if (!this.validator.is(event.detail.value)) {
|
|
8458
8428
|
console.error(`Type is incomplete.`);
|
|
8459
|
-
this.notice.emit(
|
|
8429
|
+
this.notice.emit(Notice.Notice.failed(`Type is incomplete.`));
|
|
8460
8430
|
}
|
|
8461
8431
|
else {
|
|
8462
|
-
this.notice.emit(
|
|
8432
|
+
this.notice.emit(Notice.Notice.succeeded(`Type is complete!`));
|
|
8463
8433
|
event.detail.result(true);
|
|
8464
8434
|
}
|
|
8465
8435
|
event.detail.result(false);
|
|
8466
8436
|
}
|
|
8467
8437
|
render() {
|
|
8468
|
-
return (index.h(index.Host, { key: '
|
|
8438
|
+
return (index.h(index.Host, { key: 'c855ac16e0490761f1c8613aea19ad2408170f61' }, index.h("h2", { key: '3668f293c8ab4980e4e25782d6ca17afdf0eacbc' }, "Date input"), index.h("smoothly-form", { key: 'cc403e758e981e551901533b40623aed9fb89437', looks: "border", type: "create", validator: this.validator, onSmoothlyFormSubmit: e => this.submitHandler(e) }, index.h("smoothly-input-date", { key: '4b3aa55a1ad49138fa2894c4f953cd5c3ea18551', name: "date" }, "Date"), index.h("smoothly-input-submit", { key: 'da1083abf5b98c967835443321cb4e3dfef52003', slot: "submit" }, index.h("smoothly-icon", { key: '892de2aea93d01e62effcb14d25e78ea00778b14', name: "checkmark-outline" })))));
|
|
8469
8439
|
}
|
|
8470
8440
|
};
|
|
8471
8441
|
SmoothlyFormDemoDate.style = SmoothlyFormDemoDateStyle0;
|
|
8472
8442
|
|
|
8473
|
-
const styleCss$
|
|
8474
|
-
const SmoothlyFormDemoDateRangeStyle0 = styleCss$
|
|
8443
|
+
const styleCss$_ = ".sc-smoothly-form-demo-date-range-h{display:block}";
|
|
8444
|
+
const SmoothlyFormDemoDateRangeStyle0 = styleCss$_;
|
|
8475
8445
|
|
|
8476
8446
|
const SmoothlyFormDemoDateRange = class {
|
|
8477
8447
|
constructor(hostRef) {
|
|
@@ -8485,16 +8455,16 @@ const SmoothlyFormDemoDateRange = class {
|
|
|
8485
8455
|
event.stopPropagation();
|
|
8486
8456
|
if (!this.validator.is(event.detail.value)) {
|
|
8487
8457
|
console.error(`Type is incomplete.`);
|
|
8488
|
-
this.notice.emit(
|
|
8458
|
+
this.notice.emit(Notice.Notice.failed(`Type is incomplete.`));
|
|
8489
8459
|
}
|
|
8490
8460
|
else {
|
|
8491
|
-
this.notice.emit(
|
|
8461
|
+
this.notice.emit(Notice.Notice.succeeded(`Type is complete!`));
|
|
8492
8462
|
event.detail.result(true);
|
|
8493
8463
|
}
|
|
8494
8464
|
event.detail.result(false);
|
|
8495
8465
|
}
|
|
8496
8466
|
render() {
|
|
8497
|
-
return (index.h(index.Host, { key: '
|
|
8467
|
+
return (index.h(index.Host, { key: '8268dbce8002112c47995db37c6c4db5dfbd5b53' }, index.h("h2", { key: 'aa3db2510b5e19dde1f362870a29ee9c8d2199e6' }, "Date-range input"), index.h("smoothly-form", { key: '1f79aa6badf665f27a4e16cf8694f07e6159a7ce', looks: "border", type: "create", validator: this.validator, onSmoothlyFormSubmit: e => this.submitHandler(e) }, index.h("smoothly-input-date-range", { key: '0844d7c580ebaebf4b0241446d1a8c73621a3441', name: "range" }, "Range"), index.h("smoothly-input-submit", { key: '530f99ec11e4ae634852572a1e39e4aa3a221f43', slot: "submit" }, index.h("smoothly-icon", { key: 'eec2006e62c67157029dd9bf1c79be6f4fb8bee7', name: "checkmark-outline" })))));
|
|
8498
8468
|
}
|
|
8499
8469
|
};
|
|
8500
8470
|
SmoothlyFormDemoDateRange.style = SmoothlyFormDemoDateRangeStyle0;
|
|
@@ -8504,12 +8474,12 @@ const SmoothlyFormDemoLogin = class {
|
|
|
8504
8474
|
index.registerInstance(this, hostRef);
|
|
8505
8475
|
}
|
|
8506
8476
|
render() {
|
|
8507
|
-
return (index.h(index.Host, { key: '
|
|
8477
|
+
return (index.h(index.Host, { key: '805689f0a9b1f399f36da3a4375f79a65d350f61' }, index.h("h2", { key: '6afdfc52c85ba2c2a43b90aafc5509f66976ebea' }, "Login"), index.h("smoothly-form", { key: 'e671b3b795cffd38b35254cb29700ce1bdcd14ea', looks: "border" }, index.h("smoothly-input", { key: 'e89a85e6321bafaa4dd4d13ba69b6ad0201a3eea', type: "text", name: "username" }, "Username"), index.h("smoothly-input", { key: '68c7a62b137d8e7c05da4d55a72482be1afc2b0c', type: "password", name: "password" }, "Password"), index.h("smoothly-input-reset", { key: '450db23043ff3df033fc18b5bd557d94605f6e77', slot: "reset", type: "form", size: "icon", color: "warning" }), index.h("smoothly-input-submit", { key: 'aac8654e7ca9d53ed2672851faa146e80fd62ae5', slot: "submit" }))));
|
|
8508
8478
|
}
|
|
8509
8479
|
};
|
|
8510
8480
|
|
|
8511
|
-
const styleCss$
|
|
8512
|
-
const SmoothlyFormDemoPetStyle0 = styleCss$
|
|
8481
|
+
const styleCss$Z = ".sc-smoothly-form-demo-pet-h{display:grid;grid-template-columns:2fr 1fr;grid-template-rows:auto auto;grid-column-gap:2rem}.sc-smoothly-form-demo-pet-h smoothly-input-checkbox[name=\"hasOwner\"].sc-smoothly-form-demo-pet,.sc-smoothly-form-demo-pet-h>smoothly-form.sc-smoothly-form-demo-pet smoothly-summary.sc-smoothly-form-demo-pet,.sc-smoothly-form-demo-pet-h>smoothly-form.sc-smoothly-form-demo-pet smoothly-tabs.sc-smoothly-form-demo-pet{flex-basis:100%}";
|
|
8482
|
+
const SmoothlyFormDemoPetStyle0 = styleCss$Z;
|
|
8513
8483
|
|
|
8514
8484
|
const SmoothlyFormDemoPet = class {
|
|
8515
8485
|
constructor(hostRef) {
|
|
@@ -8520,10 +8490,10 @@ const SmoothlyFormDemoPet = class {
|
|
|
8520
8490
|
}
|
|
8521
8491
|
render() {
|
|
8522
8492
|
var _a, _b;
|
|
8523
|
-
return (index.h(index.Host, { key: '
|
|
8493
|
+
return (index.h(index.Host, { key: '50d7eaf7522daa10b3f5832a87fff8674b162dea' }, index.h("h2", { key: '1262eb5e63ca5d7874f776837470a88bf5b8769e' }, "Pet"), index.h("h3", { key: '48e2bedbc5a62495d3b6f75dcc94b1b81b746e33' }, "Value"), index.h("smoothly-form", { key: '2d2f7c7ce198228e17c7e7ae1e507d7a97d73ff0', looks: "border", onSmoothlyFormSubmit: (e) => alert(JSON.stringify(e.detail)), onSmoothlyFormInput: e => (this.value = Object.assign({}, e.detail)) }, index.h("smoothly-input", { key: 'd5b952488d27c212a51bb0f19c07f32a4b02bdc2', type: "text", name: "name.first" }, "Name"), index.h("smoothly-input", { key: '160482d107ee5fbb66e6e9be4dd17549085ec66b', type: "integer", name: "age" }, "Age (Years)"), index.h("smoothly-input-checkbox", { key: '1a3a7229c18eb1adff2ab0f80fc79b3c02e5c6fe', name: "hasOwner", onSmoothlyInputLoad: e => e.stopPropagation(), onSmoothlyInput: e => {
|
|
8524
8494
|
this.hasOwner = e.detail.hasOwner;
|
|
8525
8495
|
e.stopPropagation();
|
|
8526
|
-
} }, "Has Owner"), this.hasOwner && (index.h(index.Fragment, { key: '
|
|
8496
|
+
} }, "Has Owner"), this.hasOwner && (index.h(index.Fragment, { key: 'c358b2d9b6b7160187ffc2005c31acb2e245e195' }, index.h("smoothly-input", { key: '181824a1a8c9336a6281a2c75c0dca8dd1efec5d', type: "text", name: "owner.firstName", value: this.owner.firstName, onSmoothlyInput: e => (this.owner = Object.assign(Object.assign({}, this.owner), { firstName: e.detail["owner.firstName"] })) }, "Owner First Name"), index.h("smoothly-input", { key: '48c584e660552cbcb6b8591cb76db4ad82a1574a', type: "text", name: "owner.lastName", value: this.owner.lastName, onSmoothlyInput: e => (this.owner = Object.assign(Object.assign({}, this.owner), { lastName: e.detail["owner.lastName"] })) }, "Owner Last Name"), index.h("smoothly-input-file", { key: '0337e5784fda5203110240ce57a59999b95eb0b6', name: "owner.picture" }, index.h("span", { key: '376e9b3c74bd3c91b7c4830088214d6f25d97b2f', slot: "label" }, "Owner picture")), index.h("smoothly-input-date", { key: 'a46ac3dcf0f642c3e73a05e372b89c3d2bc05af4', name: "owner.birthday", value: this.owner.birthday, onSmoothlyInput: e => (this.owner = Object.assign(Object.assign({}, this.owner), { birthday: e.detail["owner.birthday"] })) }, "Owner birthday"), index.h("smoothly-input-date-range", { key: '091a40ffac1d94fb84ab34fafe53e6f3fdc4eb2e', name: "owner.ownedRange", start: (_a = this.owner.ownedRange) === null || _a === void 0 ? void 0 : _a.start, end: (_b = this.owner.ownedRange) === null || _b === void 0 ? void 0 : _b.end, onSmoothlyInput: e => (this.owner = Object.assign(Object.assign({}, this.owner), { ownedRange: e.detail["owner.ownedRange"] })) }, "Owner ownedRange"), index.h("smoothly-input-range", { key: '481c3e71f7fa1c4a6212c2a7793b29520a0a4a7a', name: "owner.height", step: 1, max: 250, value: this.owner.height, onSmoothlyInput: e => (this.owner = Object.assign(Object.assign({}, this.owner), { height: e.detail["owner.height"] })) }, "Owner's Height"), index.h("smoothly-input-select", { key: '2a1d02d5822bba65319793184fca0bb0c228b09f', name: "owner.favoriteHat" }, index.h("span", { key: '3b0d1c7ab9d640a6beb7386d3fcf32d01c4862bd', slot: "label" }, "Owner's Favorite Hat"), ["🎩 top hat", "🧢 cap", "👒 sun hat", "❌ none"].map((value, index$1) => (index.h("smoothly-item", { value: value, key: index$1, selected: this.owner.favoriteHat == value }, value)))), index.h("smoothly-input-color", { key: '0213d002d04794540650094b87c2f51dc4c79dcc', name: "owner.favoriteColor", value: this.owner.favoriteColor ? Scrollable.RGB.toHex(this.owner.favoriteColor) : undefined, onSmoothlyInput: e => (this.owner = Object.assign(Object.assign({}, this.owner), { favoriteColor: e.detail["owner.favoriteColor"] })) }, "Owner's Favorite Color"), index.h("smoothly-input-radio", { key: '779bc55c0302cfbdd760fcca76d4218d248f04bc', name: "owner.favoritePizza", value: this.owner.favoritePizza, onSmoothlyInput: e => (this.owner = Object.assign(Object.assign({}, this.owner), { favoritePizza: e.detail["owner.favoritePizza"] })) }, index.h("span", { key: '95dc274f29b977810e20393866165337f5e8b375', slot: "label" }, "Owner's Favorite Pizza"), ["vesuvio", "capricciosa", "quattro formaggi"].map((value, index$1) => (index.h("smoothly-input-radio-item", { value: value, key: index$1 }, value)))), index.h("smoothly-input-checkbox", { key: '6c54742a964b261f6149eff7a3f8f8f99def63eb', name: "owner.hasPet", checked: this.owner.hasPet, onSmoothlyInput: e => (this.owner = Object.assign(Object.assign({}, this.owner), { hasPet: e.detail["owner.hasPet"] })) }, "Has Pet"))), index.h("smoothly-summary", { key: 'd0e0717f5ab5654263f61b19b9aaaeb744884f2b' }, index.h("span", { key: 'de40ea4e5537031fa91affb4282ee438282f3051', slot: "summary" }, "Summary"), index.h("div", { key: 'b416d9370549c02235eee7757fd9fc1d42004394', slot: "content" }, index.h("smoothly-input", { key: '7351bc85a7388f5f8b77f6b1d528c566c3fa97a5', type: "price", name: "summary.price", currency: "EUR" }, "Summary Price"), index.h("smoothly-input-file", { key: '9f296928fd94ac6f35a1614595da37b3995b107f', name: "summary.picture" }, index.h("span", { key: 'd7fe9c0f53565bef390c8503a58f6f50868610a7', slot: "label" }, "Summary picture")), index.h("smoothly-input-date", { key: '44c483cf3c8f71be268d90d5f468a49c22cd2f8b', name: "summary.birthday" }, "Summary birthday"), index.h("smoothly-input-date-range", { key: 'b5124dfc4e7816e7ba4f820a5aca3d14af0fb837', name: "summary.ownedRange" }, "Summary ownedRange"), index.h("smoothly-input-range", { key: 'ea62f55332b6b3e125903d3c6baa380689ed864e', name: "summary.height", label: "Height" }), index.h("smoothly-input-select", { key: '99ffc93ca528a13281fe6dd188139b638f5c8ba5', name: "summary.favoriteHat" }, index.h("span", { key: '0da54511b795b429e768a119074d5392abaf2b9c', slot: "label" }, "Summary's Favorite Hat"), ["🎩 top hat", "🧢 cap", "👒 sun hat", "❌ none"].map((value, index$1) => (index.h("smoothly-item", { value: value, key: index$1 }, value)))), index.h("smoothly-input-month", { key: '3419ad81154cb4af9bb372c3045925456d4fe7fd', name: "summary.month" }, index.h("span", { key: '6794ccd25d220bdb0612adcfeb9389885c53ebb6', slot: "month-label" }, "Summary month")), index.h("smoothly-input-color", { key: 'bd5a2efeee77428de15a54f85f3f23f44e8ca024', name: "summary.color" }, "Summary Color"), index.h("smoothly-input-radio", { key: '21ede19a4f9112977e253fb51cea2aa39ad819f6', name: "summary.favoritePizza" }, index.h("span", { key: '889b43b3ee59c109fab04a38dde1ea7a804c84f9', slot: "label" }, "Summary's Favorite Pizza"), ["vesuvio", "capricciosa", "quattro formaggi"].map((value, index$1) => (index.h("smoothly-input-radio-item", { value: value, key: index$1 }, value)))), index.h("smoothly-input-checkbox", { key: '47a39cc2ddd1d4745b25125b59d3a85f7f68b6c1', name: "summary.hasPet" }, "Has Pet"))), index.h("smoothly-tabs", { key: 'bff4910b703b19ac81799c63704a47c79690dec1' }, index.h("smoothly-tab", { key: '03a01fc8534e7228be5a042fc2f1a605700c6019', label: "Dog" }, index.h("smoothly-input", { key: 'b70ec959c8415429276bac30aac2f799eaad9e48', type: "text", name: "dog.breed" }, "Breed"), index.h("smoothly-input-file", { key: '098a0dec9bd010569eca48f0736ed354d478e4c2', name: "dog.picture" }, index.h("span", { key: '089b32a2ff3926d59b9ce01e8a0f73f0eddde01b', slot: "label" }, "Dog picture")), index.h("smoothly-input-date", { key: 'd365a6a7c8cbc7df81f12cc2be3d1b5958d694bd', name: "dog.birthday" }, "Dog birthday"), index.h("smoothly-input-date-range", { key: 'b063302e3f366a53071cf0fb2e5d87e39c5d9a44', name: "dog.dateRange" }, "Dog date range"), index.h("smoothly-input-select", { key: 'd2c7c1c0ef6ef428bf667a3d61f752761c0936dc', name: "dog.favoriteHat" }, index.h("span", { key: '82759482ed126788312fd90fb7500bd4622eab32', slot: "label" }, "Dog's Favorite Hat"), ["🎩 top hat", "🧢 cap", "👒 sun hat", "❌ none"].map((value, index$1) => (index.h("smoothly-item", { value: value, key: index$1 }, value)))), index.h("smoothly-input-color", { key: 'bc0ee988a7e70ce19d1735811283c268ae9eed04', name: "dog.favoriteColor" }, "Dog's Favorite Color"), index.h("smoothly-input-radio", { key: 'e84dd8ad3145a438fb640bfcd168991450021c64', name: "dog.favoritePizza" }, index.h("span", { key: '18907f9eac1bafbabcde910add33cf33d5b23a2c', slot: "label" }, "Dog's Favorite Pizza"), ["vesuvio", "capricciosa", "quattro formaggi"].map((value, index$1) => (index.h("smoothly-input-radio-item", { value: value, key: index$1 }, value)))), index.h("smoothly-input-checkbox", { key: '53ae41ef70927bb4ec0f9ee52f6d702606d9f367', name: "dog.hasPet" }, "Has Pet")), index.h("smoothly-tab", { key: 'ecda137898640fb248b79cceff42f25c5f854160', label: "Cat", open: true }, index.h("smoothly-input", { key: '897f0578ab304103685a1adabc231cd14d15312a', name: "cat.favoriteFood" }, "Favorite Food"))), index.h("smoothly-input-submit", { key: '4e99398ce10eb1629fb24d5552e050a543614e45', size: "icon", slot: "submit", color: "success", fill: "solid" })), index.h("smoothly-display", { key: 'a9f5819004771a10f89f1d1cdc63fe2be8ab3777', type: "json", value: this.value })));
|
|
8527
8497
|
}
|
|
8528
8498
|
};
|
|
8529
8499
|
SmoothlyFormDemoPet.style = SmoothlyFormDemoPetStyle0;
|
|
@@ -8533,7 +8503,7 @@ const SmoothlyFormDemoPrices$1 = class {
|
|
|
8533
8503
|
index.registerInstance(this, hostRef);
|
|
8534
8504
|
}
|
|
8535
8505
|
render() {
|
|
8536
|
-
return (index.h(index.Host, { key: '
|
|
8506
|
+
return (index.h(index.Host, { key: 'fefcedbfe8f22921bea912762f1f6d8caf6ea3e4' }, index.h("h2", { key: 'c18e909d513549a9a8cc28b2b1d8982b96703343' }, "Prices"), index.h("smoothly-form", { key: '1eb8cab4a08f19f246c5cd46362452b416db1573', looks: "line" }, index.h("smoothly-input", { key: '75439c727baa6c39b500deec470d0a32953fddc7', type: "price", name: "no" }, "No currency"), index.h("smoothly-input", { key: '11b3a7ab0e4dd1626e7efea03c56ba4c1c5e9c27', type: "price", name: "crowns", currency: "SEK", toInteger: true }, "SEK (toInteger)"), index.h("smoothly-input", { key: '837b810384d7818df18c2ed9d6d08eb965124627', type: "price", name: "usDollar", currency: "USD" }, "USD"), index.h("smoothly-input", { key: '6ffb11da5cecbbeeef8b6482cbe3cee39e16b6ef', type: "price", name: "pounds", currency: "GBP" }, "GBP"), index.h("smoothly-input", { key: '4409191ea5b5b0ded31bffc9408927c36bb1bd3b', type: "price", name: "peso", currency: "UYW" }, "UYW"), index.h("smoothly-input", { key: '8dc492d719d9e2eabba22c402e0349fc5aa7dc9f', type: "price", name: "iceland", currency: "ISK" }, "ISK"), index.h("smoothly-input", { key: '2def9348a43704dafc21e3738de05d074f189285', type: "price", name: "Palladium", currency: "XPD" }, "XPD (Palladium)"), index.h("smoothly-input-reset", { key: 'a788708ac62aedac125182d8b2e85ce1e9a62001', slot: "reset", fill: "default", type: "form", color: "warning" }), index.h("smoothly-input-submit", { key: 'b8952a88dfb22db800ae00540c83d90feb160152', slot: "submit" }))));
|
|
8537
8507
|
}
|
|
8538
8508
|
};
|
|
8539
8509
|
|
|
@@ -8553,7 +8523,7 @@ const SmoothlyFormDemoPrices = class {
|
|
|
8553
8523
|
index.registerInstance(this, hostRef);
|
|
8554
8524
|
}
|
|
8555
8525
|
render() {
|
|
8556
|
-
return (index.h(index.Host, { key: '
|
|
8526
|
+
return (index.h(index.Host, { key: '8676cb9b188b2378d815226827e2f7426f514deb' }, index.h("h2", { key: 'e11dc90193d5f06378378c07412f7e8a842c6ec1' }, "Schedule"), index.h("smoothly-form", { key: '5875dcd80af050a71d7434fb2f84f18446436dbf', looks: "line", validator: TimeTable.type }, index.h("smoothly-input-date", { key: '0551573f423a5022499d7d3a25fe6815e75e8554', name: "schedule.0.date" }, "Date"), index.h("smoothly-input", { key: '4889b711330406e9902beff8b8cc5a22d018978a', name: "schedule.0.amount", type: "price" }, "Amount"), index.h("smoothly-input-date", { key: '9c2e767a364b4d29ec745fff9cf6a185403208b3', name: "schedule.1.date" }, "Date"), index.h("smoothly-input", { key: '279a1c6e7a5aad5525347c609ae74f7295182102', name: "schedule.1.amount", type: "price" }, "Amount"), index.h("smoothly-input-date", { key: '8a8c4e848347f3eb01c7f987926b1a4439665bff', name: "schedule.2.date" }, "Date"), index.h("smoothly-input", { key: 'cea7149a54447cc79ea1bfacdebc539323eb4377', name: "schedule.2.amount", type: "price" }, "Amount"), index.h("smoothly-input-reset", { key: 'fe5f1fddbaa59572935420bb42aaab83106278ad', slot: "reset", fill: "default", type: "form", color: "warning" }), index.h("smoothly-input-submit", { key: 'f435d61a9cbe0aaf693763d86a3babb93ec9acde', slot: "submit" }))));
|
|
8557
8527
|
}
|
|
8558
8528
|
};
|
|
8559
8529
|
|
|
@@ -8562,7 +8532,7 @@ const SmoothlyFormDemoTransparent = class {
|
|
|
8562
8532
|
index.registerInstance(this, hostRef);
|
|
8563
8533
|
}
|
|
8564
8534
|
render() {
|
|
8565
|
-
return (index.h(index.Host, { key: '
|
|
8535
|
+
return (index.h(index.Host, { key: '56bb25aa930390f6f18deef5a7f11cd60743c8c1' }, index.h("h2", { key: '6b02cc5c2ab9dd9ce512ea709a6e8c318803f806' }, "Transparent"), index.h("smoothly-form", { key: 'eb5a7a12b66c950c6cfb6b63279d6d3d0fb3c9e9', looks: "transparent", onSmoothlyFormSubmit: e => console.log(e.detail.value) }, index.h("smoothly-input-file", { key: '7af20181794d27a18c0657525c6feeac396bb830', name: "file" }, index.h("span", { key: '2ee590e2395504e7ba95985b3c3cbce3f7704df1', slot: "label" }, "File"), index.h("smoothly-icon", { key: 'c6fb9a872fb7c4486c31b11ce40fd147304fd7e6', slot: "button", name: "folder-open-outline", size: "small" })), index.h("smoothly-input", { key: '221c41fee6498fd25c075c1025b4c09ca63a88f3', type: "duration", looks: "transparent", placeholder: "h:mm" }, "Input"), index.h("smoothly-input-date", { key: 'b14c619d972e6233ad58a200fb6bb9d5554cf17f' }, "Date"), index.h("smoothly-input-date-range", { key: '2a4f0cb951dc7f72e48fa102a5cfc598c6a9a229' }, "Date Range"), index.h("smoothly-input-select", { key: '411bc52358b29c5216d52950902a5204f420ebd6', name: "transport" }, index.h("smoothly-item", { key: 'cc29561b22ff405cb5fa0f8d3341d0967ef657f7', value: "plane" }, index.h("smoothly-icon", { key: '040582665fba3aae4cede769c68963223ee83091', name: "airplane-outline" })), index.h("smoothly-item", { key: '22657c50d58b142833a6a429273ce3d774e0b5e0', value: "car" }, index.h("smoothly-icon", { key: 'ccce5f3ffdf89c5a2845857c2c0f0f770f464e96', name: "car-outline" })), index.h("smoothly-item", { key: '1b10530f7bc4499c821ed533ab6a36cb85f3d7e4', value: "bus", selected: true }, index.h("smoothly-icon", { key: '23b2876323a8f5d806e5fb668b2639c11b4c2705', name: "bus-outline" }))), index.h("smoothly-input-submit", { key: '15f781edd28f7dfe12c8557866afd2475ee9e4ba', icon: "checkbox-outline" }))));
|
|
8566
8536
|
}
|
|
8567
8537
|
};
|
|
8568
8538
|
|
|
@@ -8576,21 +8546,21 @@ var Contact;
|
|
|
8576
8546
|
});
|
|
8577
8547
|
})(Contact || (Contact = {}));
|
|
8578
8548
|
|
|
8579
|
-
const styleCss$
|
|
8580
|
-
const SmoothlyFormDemoTypedStyle0 = styleCss$
|
|
8549
|
+
const styleCss$Y = "";
|
|
8550
|
+
const SmoothlyFormDemoTypedStyle0 = styleCss$Y;
|
|
8581
8551
|
|
|
8582
8552
|
const SmoothlyFormDemoTyped = class {
|
|
8583
8553
|
constructor(hostRef) {
|
|
8584
8554
|
index.registerInstance(this, hostRef);
|
|
8585
8555
|
}
|
|
8586
8556
|
render() {
|
|
8587
|
-
return (index.h(index.Host, { key: '
|
|
8557
|
+
return (index.h(index.Host, { key: '589d8de4c0b6b7e857a7a4ddbbbbc9a2e860d502' }, index.h("h2", { key: 'd402f921eaccf3321e04df59c96e9d32aec67582' }, "Typed Contact"), index.h("smoothly-form", { key: 'fd0c811ba55c3aab606a8ac8575e5d36968b556a', validator: Contact.type }, index.h("smoothly-input", { key: '86f4b7aec26301e5b74e65c36d7a10d29e32f441', name: "name.first" }, "First Name"), index.h("smoothly-input", { key: '61ffe1927a42f0f7a7ae49e158485c99dc8581bc', name: "name.middle" }, "Middle Name (optional)"), index.h("smoothly-input", { key: 'dc5620803aeecca0a640ff675b970f6faa98b8ab', name: "name.last" }, "Last Name"), index.h("smoothly-input", { key: '1dea7fc4ba31c47ad39bcb57238b360a7df0f74d', name: "age", type: "integer" }, "Age (18-120)"), index.h("smoothly-input-select", { key: '83f5df5e7d8d96600a9eb6b38762d25c5c5098ae', name: "country" }, index.h("span", { key: '00666ef0610990ac0cf1e11635db1b7beffaeb59', slot: "label" }, "Country"), TimeZone.Alpha2.values.map(country => (index.h("smoothly-item", { value: country }, en.from(country))))), index.h("smoothly-input-date", { key: '3e95f926e1a84109cae654429f747a979972c372', name: "birthday" }, "Date of birth"), index.h("smoothly-input-reset", { key: 'b4c35bb7106d310df2ad78e6eee3c89e393730d1', slot: "reset", type: "form", size: "icon", color: "warning" }), index.h("smoothly-input-submit", { key: 'c9fdb24ebc4f4ec46bae6b097259dad7b1487ff7', slot: "submit", size: "icon", color: "success" }))));
|
|
8588
8558
|
}
|
|
8589
8559
|
};
|
|
8590
8560
|
SmoothlyFormDemoTyped.style = SmoothlyFormDemoTypedStyle0;
|
|
8591
8561
|
|
|
8592
|
-
const styleCss$
|
|
8593
|
-
const SmoothlyFrameStyle0 = styleCss$
|
|
8562
|
+
const styleCss$X = ".sc-smoothly-frame-h{display:block;width:100%;height:100%}[hidden].sc-smoothly-frame-h{display:none}.sc-smoothly-frame-h>iframe.sc-smoothly-frame{border:none;padding:none;margin:none}";
|
|
8563
|
+
const SmoothlyFrameStyle0 = styleCss$X;
|
|
8594
8564
|
|
|
8595
8565
|
const SmoothlyFrame = class {
|
|
8596
8566
|
constructor(hostRef) {
|
|
@@ -8637,8 +8607,8 @@ const SmoothlyFrame = class {
|
|
|
8637
8607
|
};
|
|
8638
8608
|
SmoothlyFrame.style = SmoothlyFrameStyle0;
|
|
8639
8609
|
|
|
8640
|
-
const styleCss$
|
|
8641
|
-
const SmoothlyIconStyle0 = styleCss$
|
|
8610
|
+
const styleCss$W = "[size].sc-smoothly-icon-h{background:none}.sc-smoothly-icon-h{display:flex;align-items:center;justify-content:center;box-sizing:content-box}[rotate].sc-smoothly-icon-h{--rotate:rotate(var(--rotation, 0deg));transform:var(--rotate)}[flip=x].sc-smoothly-icon-h{--flip:scaleX(-1);transform:var(--flip)}[flip=y].sc-smoothly-icon-h{--flip:scaleY(-1);transform:var(--flip)}[rotate][flip].sc-smoothly-icon-h{transform:var(--rotate)var(--flip)}[hidden].sc-smoothly-icon-h{display:none}[size=tiny].sc-smoothly-icon-h{width:1.2em;height:1.2em}[size=small].sc-smoothly-icon-h{width:1.4em;height:1.4em}[size=medium].sc-smoothly-icon-h{width:1.8em;height:1.8em}[size=large].sc-smoothly-icon-h{width:2.8em;height:2.8em}[size=xlarge].sc-smoothly-icon-h{width:4em;height:4em}.sc-smoothly-icon-h.sc-smoothly-icon-s>svg{width:100%}";
|
|
8611
|
+
const SmoothlyIconStyle0 = styleCss$W;
|
|
8642
8612
|
|
|
8643
8613
|
const SmoothlyIcon = class {
|
|
8644
8614
|
constructor(hostRef) {
|
|
@@ -8682,7 +8652,7 @@ const SmoothlyIcon = class {
|
|
|
8682
8652
|
}
|
|
8683
8653
|
render() {
|
|
8684
8654
|
var _a;
|
|
8685
|
-
return index.h(index.Host, { key: '
|
|
8655
|
+
return index.h(index.Host, { key: '90d808b89e55e020357e31996664df7ae6e492e7', innerHTML: this.document, style: { ["--rotation"]: `${(_a = this.rotate) !== null && _a !== void 0 ? _a : 0}deg` } });
|
|
8686
8656
|
}
|
|
8687
8657
|
static get watchers() { return {
|
|
8688
8658
|
"toolTip": ["nameChanged"],
|
|
@@ -8691,8 +8661,8 @@ const SmoothlyIcon = class {
|
|
|
8691
8661
|
};
|
|
8692
8662
|
SmoothlyIcon.style = SmoothlyIconStyle0;
|
|
8693
8663
|
|
|
8694
|
-
const styleCss$
|
|
8695
|
-
const SmoothlyIconDemoStyle0 = styleCss$
|
|
8664
|
+
const styleCss$V = ".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}";
|
|
8665
|
+
const SmoothlyIconDemoStyle0 = styleCss$V;
|
|
8696
8666
|
|
|
8697
8667
|
const SmoothlyIconDemo = class {
|
|
8698
8668
|
constructor(hostRef) {
|
|
@@ -8703,14 +8673,14 @@ const SmoothlyIconDemo = class {
|
|
|
8703
8673
|
this.props = {};
|
|
8704
8674
|
}
|
|
8705
8675
|
render() {
|
|
8706
|
-
return (index.h(index.Host, { key: '
|
|
8676
|
+
return (index.h(index.Host, { key: '40c73c1b86c82de25ef710d90250ee26f5a97d18' }, index.h("h2", { key: '9da59d3a9759d294b018b1cccd6b1ab22a80a14d' }, "Filter and Variants"), index.h("smoothly-form", { key: 'f00d40984821c21dbe6da17699bed1af9833ba98', onSmoothlyFormInput: e => (this.display = e.detail) }, index.h("smoothly-input", { key: '1e3aea269957e45707b59cac29c7acda1b88b44a', name: "filter" }, "Filter"), index.h("smoothly-input-select", { key: '920017ab5a12f3ac301e1d497ab5f646b2f5b250', name: "variant" }, index.h("span", { key: '6f72768a6901c6848b9a8eb15890726b8d9aad65', slot: "label" }, "Variant"), index.h("smoothly-item", { key: 'e19740138b3d3fb726891c8c83ca48cb63a6d32b', value: "outline" }, "outline"), index.h("smoothly-item", { key: '9e1101547a526f2e6d5626ea1cb6f9d509e3d77c', value: "sharp" }, "sharp"), index.h("smoothly-input-clear", { key: '90bf7ea10c6e28f2fe0946246e932c188d2e36d6', slot: "end" }))), index.h("h2", { key: '03af9cd3b892c8ce5c85ec5f24308ec568d3d7a4' }, "Props"), index.h("smoothly-form", { key: '5523dd394791968c76bcaa4611ad7f061ef3d4df', onSmoothlyFormInput: e => (this.props = e.detail) }, index.h("smoothly-input-select", { key: 'afaef5167021cf3f92c0ec46db5a13dc86a793be', name: "color" }, index.h("span", { key: 'a70c95e49fa7e5863e2ee085cea1a779bae32672', slot: "label" }, "Color"), Scrollable.Color.types.map(color => (index.h("smoothly-item", { value: color, color: color }, color))), index.h("smoothly-input-clear", { key: '2e0a61224d72bb2177ccdca8464a062b55c2cdf6', slot: "end" })), index.h("smoothly-input-select", { key: '33dd05fc21187e59d50294ac6e516859b682cc85', name: "flip" }, index.h("span", { key: '1c6cfbc839f886094d1c5159ffe15cd53aa7408c', slot: "label" }, "Flip"), index.h("smoothly-item", { key: '5106005eb437b4928c85f0c199e8a63d2ccb15cf', value: "x" }, "x"), index.h("smoothly-item", { key: '74127b329d004f066a26cd5ebf1d371b4aa3b0b0', value: "y" }, "y"), index.h("smoothly-input-clear", { key: '136a83fec40ffe558a645692ee166bf41895a127', slot: "end" })), index.h("smoothly-input-select", { key: '18f3fefd865f1e464fe028a28cb3c08ed1f521b1', name: "size" }, index.h("span", { key: 'e12ba7003ac5bd1150df707fe72d4638eb873e6d', slot: "label" }, "Size"), index.h("smoothly-item", { key: '1aaed4a2d9de5cbb2d11b7e57d4e10fb62023a8b', value: "tiny" }, "tiny"), index.h("smoothly-item", { key: '506c7ac8f330114d6cfeeacd2ccf28617f48d18f', value: "small" }, "small"), index.h("smoothly-item", { key: 'fa323988312e0bd28fdb047a29b2bf9b6393316c', value: "medium" }, "medium"), index.h("smoothly-item", { key: '4a70d203ff25c15d7de12884df57c5908bfddf3f', value: "large" }, "large"), index.h("smoothly-input-clear", { key: '1484395ca63048f2da3086608c69fd16adc4c767', slot: "end" })), index.h("smoothly-input-range", { key: '9ec2aa43cbcba1b05b4d0f15630fb3652ba1c68b', name: "rotate", step: 1, min: -180, max: 180, value: 0 }, "Rotate", index.h("smoothly-input-clear", { key: '9edc8e3b7bd75b9709da67bb106713265d9bae99', slot: "end" }))), index.h("h1", { key: 'e163cd387bad76c2d031e30ebd3ef3c99ed5c3f4' }, "Icons"), index.h("div", { key: '991f7e26e28d46d076f9977a2e08ec8e3902a518', class: "icons" }, [
|
|
8707
8677
|
...Scrollable.Icon.Name.values
|
|
8708
8678
|
.filter(name => !this.display.filter || name.includes(this.display.filter))
|
|
8709
8679
|
.map((name) => (this.display.variant ? `${name}-${this.display.variant}` : name)),
|
|
8710
8680
|
...Scrollable.Icon.Logo.values.filter(name => !this.display.filter || name.includes(this.display.filter)),
|
|
8711
8681
|
].map(name => (index.h("smoothly-icon", { name: name, toolTip: name, "data-name": name, color: this.props.color, flip: this.props.flip, size: this.props.size, rotate: this.props.rotate, onClick: () => {
|
|
8712
8682
|
navigator.clipboard.writeText(name);
|
|
8713
|
-
this.notice.emit(
|
|
8683
|
+
this.notice.emit(Notice.Notice.succeeded(`Copied "${name}"`));
|
|
8714
8684
|
} }))))));
|
|
8715
8685
|
}
|
|
8716
8686
|
};
|
|
@@ -8994,8 +8964,8 @@ var Key;
|
|
|
8994
8964
|
Key.create = create;
|
|
8995
8965
|
})(Key || (Key = {}));
|
|
8996
8966
|
|
|
8997
|
-
const styleCss$
|
|
8998
|
-
const SmoothlyInputStyle0 = styleCss$
|
|
8967
|
+
const styleCss$U = ".sc-smoothly-input-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)}.sc-smoothly-input-h[looks=\"border\"].sc-smoothly-input-s>smoothly-picker-menu smoothly-input,[looks=\"border\"].sc-smoothly-input-h{border:rgb(var(--smoothly-input-border)) solid 1px}[looks=\"border\"][readonly].sc-smoothly-input-h{border:transparent solid 1px}.sc-smoothly-input-h[looks=\"line\"].sc-smoothly-input-s>smoothly-picker-menu smoothly-input,[looks=\"line\"].sc-smoothly-input-h{border-bottom:rgb(var(--smoothly-input-border)) solid 1px}[looks=\"line\"][readonly].sc-smoothly-input-h{border-bottom:transparent solid 1px}[looks=\"grid\"].sc-smoothly-input-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-h{box-shadow:0px 0px 0px 1px rgba(var(--smoothly-input-border-readonly))}[looks=\"transparent\"].sc-smoothly-input-h{border:none}[looks=\"transparent\"][readonly].sc-smoothly-input-h,[looks=\"transparent\"].sc-smoothly-input-h:not(:focus-within){background-color:transparent}[looks=\"transparent\"][readonly].sc-smoothly-input-h>input.sc-smoothly-input,[looks=\"transparent\"].sc-smoothly-input-h:not(:focus-within)>input.sc-smoothly-input{background:transparent}[looks=\"transparent\"].sc-smoothly-input-h:not([readonly]):focus-within{outline:1px solid rgb(var(--smoothly-input-border))}.sc-smoothly-input-h.sc-smoothly-input-s>[slot=label],.sc-smoothly-input-h .sc-smoothly-input-s>[slot=label],.sc-smoothly-input-h .label.sc-smoothly-input{position:absolute;top:.6rem;opacity:0.8;user-select:none;cursor:inherit;transform-origin:top left;transition:transform 100ms ease}.sc-smoothly-input-h.floating-label.sc-smoothly-input-s>[slot=label],.sc-smoothly-input-h.floating-label .sc-smoothly-input-s>[slot=label],.sc-smoothly-input-h.has-value.sc-smoothly-input-s>[slot=label],.sc-smoothly-input-h.has-value .sc-smoothly-input-s>[slot=label],.sc-smoothly-input-h[placeholder].sc-smoothly-input-s>[slot=label],.sc-smoothly-input-h[placeholder] .sc-smoothly-input-s>[slot=label],.sc-smoothly-input-h[readonly].sc-smoothly-input-s>[slot=label],.sc-smoothly-input-h[readonly] .sc-smoothly-input-s>[slot=label],.has-value.sc-smoothly-input-h .label.sc-smoothly-input,[placeholder].sc-smoothly-input-h .label.sc-smoothly-input,[readonly].sc-smoothly-input-h .label.sc-smoothly-input,.sc-smoothly-input-h:not([readonly]):focus-within .label.float-on-focus.sc-smoothly-input{top:.2rem;transform:scale(0.8)}.sc-smoothly-input-h:not([show-label]):not(.show-label) .label.sc-smoothly-input{display:none}.sc-smoothly-input-h{display:flex;align-items:center;justify-content:center;font-weight:var(--smoothly-font-weight);overflow:hidden;background-color:rgb(var(--smoothly-input-background));color:rgb(var(--smoothly-input-foreground))}[hidden].sc-smoothly-input-h{display:none}.sc-smoothly-input-h>.smoothly-input-container.sc-smoothly-input{position:relative;flex-grow:1;height:100%}.sc-smoothly-input-h>.smoothly-input-container.sc-smoothly-input>label.sc-smoothly-input{left:var(--input-padding-side)}.sc-smoothly-input-h:not([show-label])>div.sc-smoothly-input>input.sc-smoothly-input{padding:0 var(--input-padding-side)}.sc-smoothly-input-h>.smoothly-input-container.sc-smoothly-input>div.ghost.sc-smoothly-input{position:absolute;box-sizing:border-box;align-content:center;height:100%;padding:var(--input-value-padding-top) \n\t\tvar(--input-padding-side) \n\t\tvar(--input-value-padding-bottom) \n\t\tvar(--input-padding-side)}.sc-smoothly-input-h>.smoothly-input-container.sc-smoothly-input>div.ghost.sc-smoothly-input>div.value.sc-smoothly-input{display:inline;pointer-events:none;opacity:0}.sc-smoothly-input-h>.smoothly-input-container.sc-smoothly-input>div.ghost.sc-smoothly-input>div.remainder.sc-smoothly-input{display:inline;pointer-events:none;opacity:0.5}.sc-smoothly-input-h>.smoothly-input-container.sc-smoothly-input>input.sc-smoothly-input{padding:var(--input-value-padding-top) \n\t\tvar(--input-padding-side) \n\t\tvar(--input-value-padding-bottom) \n\t\tvar(--input-padding-side);box-sizing:border-box;width:100%;height:100%;border:0;z-index:1;position:relative;font-size:1rem;font-family:var(--smoothly-font-family)}.sc-smoothly-input-h>.smoothly-invalid.sc-smoothly-input{display:none;z-index:2;cursor:pointer;padding:0.5rem}[invalid].sc-smoothly-input-h>.smoothly-invalid.sc-smoothly-input{display:flex}.sc-smoothly-input-h>div.sc-smoothly-input>label.sc-smoothly-input{z-index:1;pointer-events:none}.sc-smoothly-input-h>div.sc-smoothly-input>input.sc-smoothly-input:focus{outline:none}.sc-smoothly-input-h>div.sc-smoothly-input>input.sc-smoothly-input:-webkit-autofill,.sc-smoothly-input-h>div.sc-smoothly-input>input.sc-smoothly-input:-webkit-autofill:hover,.sc-smoothly-input-h>div.sc-smoothly-input>input.sc-smoothly-input:-webkit-autofill:focus,.sc-smoothly-input-h>div.sc-smoothly-input>input.sc-smoothly-input:-webkit-autofill:active{box-shadow:0 0 0 40em rgb(var(--smoothly-input-background)) inset;-webkit-box-shadow:0 0 0 40em rgb(var(--smoothly-input-background)) inset}.sc-smoothly-input-h>div.sc-smoothly-input>input.sc-smoothly-input:-webkit-autofill,.sc-smoothly-input-h>div.sc-smoothly-input>input.sc-smoothly-input:-webkit-autofill+label.sc-smoothly-input{-webkit-text-fill-color:rgb(var(--smoothly-input-foreground))}";
|
|
8968
|
+
const SmoothlyInputStyle0 = styleCss$U;
|
|
8999
8969
|
|
|
9000
8970
|
const SmoothlyInput = class {
|
|
9001
8971
|
constructor(hostRef) {
|
|
@@ -9127,7 +9097,7 @@ const SmoothlyInput = class {
|
|
|
9127
9097
|
}
|
|
9128
9098
|
render() {
|
|
9129
9099
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
9130
|
-
return (index.h(index.Host, { key: '
|
|
9100
|
+
return (index.h(index.Host, { key: 'd0d30f86a3191eef178aff469bce606f5b272756', class: { "has-value": ((_a = this.state) === null || _a === void 0 ? void 0 : _a.value) != undefined && ((_b = this.state) === null || _b === void 0 ? void 0 : _b.value) != "" }, onclick: () => { var _a; return (_a = this.inputElement) === null || _a === void 0 ? void 0 : _a.focus(); } }, index.h("slot", { key: '53a7ace43ee6059f655a326b66e090e026e4bcca', name: "start" }), index.h("div", { key: '3e702fb3c868f4d900336285389467cc0b8c9414', class: "smoothly-input-container" }, index.h("div", { key: '970aa37994c030b2e1e4587295237530023f5e43', class: "ghost" }, index.h("div", { key: 'adc29884be96004a326089a9f1a66c5f06f4c181', class: "value" }, (_c = this.state) === null || _c === void 0 ? void 0 : _c.value), index.h("div", { key: 'b4beaad4c6ab63a50e025f9a79d09f0eb53c1e6c', class: "remainder" }, (_d = this.state) === null || _d === void 0 ? void 0 : _d.remainder)), index.h("input", { key: '4f0d41c10006a3099b4da5ab4755c69d74d4895f', ref: (el) => (this.inputElement = el), color: this.color, name: this.name, type: (_e = this.state) === null || _e === void 0 ? void 0 : _e.type, inputmode: (_f = this.state) === null || _f === void 0 ? void 0 : _f.inputmode, placeholder: this.placeholder, required: this.required, autocomplete: (_g = this.autocomplete) !== null && _g !== void 0 ? _g : (_h = this.state) === null || _h === void 0 ? void 0 : _h.autocomplete, disabled: this.disabled, readOnly: this.readonly, pattern: ((_j = this.state) === null || _j === void 0 ? void 0 : _j.pattern) && ((_k = this.state) === null || _k === void 0 ? void 0 : _k.pattern.source), onKeyDown: event => {
|
|
9131
9101
|
this.state = this.stateHandler.onKeyDown(event, this.state);
|
|
9132
9102
|
if (!this.readonly && !this.disabled)
|
|
9133
9103
|
this.smoothlyKeydown.emit(Key.create(this.name, event));
|
|
@@ -9140,7 +9110,7 @@ const SmoothlyInput = class {
|
|
|
9140
9110
|
if (Deep.notEqual(lastValue, this.stateHandler.getValue(this.state)))
|
|
9141
9111
|
this.smoothlyChange.emit({ [this.name]: this.stateHandler.getValue(this.state) });
|
|
9142
9112
|
}
|
|
9143
|
-
} }), index.h("label", { key: '
|
|
9113
|
+
} }), index.h("label", { key: '7de82b4cae3a2095fa19f90437651a457f2b3626', class: "label float-on-focus", htmlFor: this.name }, index.h("slot", { key: 'dfb357d535afc67901c4a65eabf1fc97fa933078' }))), index.h("smoothly-icon", { key: '7719826df70ce91b60b28ca5ff0133afb5387d5e', class: "smoothly-invalid", name: "alert-circle", color: "danger", fill: "clear", size: "small", toolTip: this.errorMessage }), index.h("slot", { key: '060792b3b86d22a66da5fb719607e7e11b5c5f32', name: "end" })));
|
|
9144
9114
|
}
|
|
9145
9115
|
get element() { return index.getElement(this); }
|
|
9146
9116
|
static get watchers() { return {
|
|
@@ -9153,8 +9123,8 @@ const SmoothlyInput = class {
|
|
|
9153
9123
|
};
|
|
9154
9124
|
SmoothlyInput.style = SmoothlyInputStyle0;
|
|
9155
9125
|
|
|
9156
|
-
const styleCss$
|
|
9157
|
-
const SmoothlyInputCheckboxStyle0 = styleCss$
|
|
9126
|
+
const styleCss$T = ".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)}.sc-smoothly-input-checkbox-h[looks=\"border\"].sc-smoothly-input-checkbox-s>smoothly-picker-menu smoothly-input,[looks=\"border\"].sc-smoothly-input-checkbox-h{border:rgb(var(--smoothly-input-border)) solid 1px}[looks=\"border\"][readonly].sc-smoothly-input-checkbox-h{border:transparent solid 1px}.sc-smoothly-input-checkbox-h[looks=\"line\"].sc-smoothly-input-checkbox-s>smoothly-picker-menu smoothly-input,[looks=\"line\"].sc-smoothly-input-checkbox-h{border-bottom:rgb(var(--smoothly-input-border)) solid 1px}[looks=\"line\"][readonly].sc-smoothly-input-checkbox-h{border-bottom:transparent solid 1px}[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=\"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:transparent}[looks=\"transparent\"].sc-smoothly-input-checkbox-h:not([readonly]):focus-within{outline:1px solid rgb(var(--smoothly-input-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}.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],.has-value.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{display:flex;align-items:center;flex-direction:row;position:relative;gap:.5rem;padding:0 var(--input-padding-side);background-color:rgb(var(--smoothly-input-background));box-sizing:border-box}.sc-smoothly-input-checkbox-h>smoothly-icon.sc-smoothly-input-checkbox{position:absolute;z-index:1}.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:1px solid black;display:block}.sc-smoothly-input-checkbox-h:not([readonly]),.sc-smoothly-input-checkbox-h:not([readonly])>*.sc-smoothly-input-checkbox{cursor:pointer}[readonly].sc-smoothly-input-checkbox-h,[readonly].sc-smoothly-input-checkbox-h>*.sc-smoothly-input-checkbox{cursor:not-allowed}[disabled].sc-smoothly-input-checkbox-h>input.sc-smoothly-input-checkbox,[disabled].sc-smoothly-input-checkbox-h>smoothly-icon.sc-smoothly-input-checkbox{cursor:not-allowed;border-color:rgb(var(--smoothly-color-contrast), 0.3);color:rgb(var(--smoothly-color-contrast), 0.4)}[looks=\"transparent\"].sc-smoothly-input-checkbox-h{background-color:transparent}[looks=\"transparent\"].sc-smoothly-input-checkbox-h:not([readonly]):focus-within{outline-color:transparent}";
|
|
9127
|
+
const SmoothlyInputCheckboxStyle0 = styleCss$T;
|
|
9158
9128
|
|
|
9159
9129
|
const SmoothlyInputCheckbox = class {
|
|
9160
9130
|
constructor(hostRef) {
|
|
@@ -9221,7 +9191,7 @@ const SmoothlyInputCheckbox = class {
|
|
|
9221
9191
|
!this.disabled && !this.readonly && (this.checked = !this.checked);
|
|
9222
9192
|
}
|
|
9223
9193
|
render() {
|
|
9224
|
-
return (index.h(index.Host, { key: '
|
|
9194
|
+
return (index.h(index.Host, { key: '7e9d8f10f1bb4607a3d6d01667ce46b8ab4863d6', onMouseDown: (e) => (this.mouseDownPosition = { x: e.clientX, y: e.clientY }), onMouseUp: (e) => { var _a; return ((_a = this.mouseDownPosition) === null || _a === void 0 ? void 0 : _a.x) == e.clientX && this.mouseDownPosition.y == e.clientY && this.click(); } }, index.h("input", { key: 'fdc900044c63fe533744d5176893e9a8bcd6591d', type: "checkbox", checked: this.checked }), this.checked && index.h("smoothly-icon", { key: '7a2c0e280b1e8455c87f717ac87b044bc5746b2b', name: "checkmark-outline", size: "tiny" }), index.h("label", { key: '9772a8094fa5f788859098f5eb4aca41149d9727' }, index.h("slot", { key: '050412eef281c0e64980baf7c1b4bae7b835d9b0' }))));
|
|
9225
9195
|
}
|
|
9226
9196
|
get element() { return index.getElement(this); }
|
|
9227
9197
|
static get watchers() { return {
|
|
@@ -9230,8 +9200,8 @@ const SmoothlyInputCheckbox = class {
|
|
|
9230
9200
|
};
|
|
9231
9201
|
SmoothlyInputCheckbox.style = SmoothlyInputCheckboxStyle0;
|
|
9232
9202
|
|
|
9233
|
-
const styleCss$
|
|
9234
|
-
const SmoothlyInputClearStyle0 = styleCss$
|
|
9203
|
+
const styleCss$S = "[color=default].sc-smoothly-input-clear{--smoothly-color:var(--smoothly-default-color);--smoothly-color-contrast:var(--smoothly-default-contrast);--smoothly-color-shade:var(--smoothly-default-shade);--smoothly-color-tint:var(--smoothly-default-tint)}[color=primary].sc-smoothly-input-clear{--smoothly-color:var(--smoothly-primary-color);--smoothly-color-contrast:var(--smoothly-primary-contrast);--smoothly-color-shade:var(--smoothly-primary-shade);--smoothly-color-tint:var(--smoothly-primary-tint)}[color=secondary].sc-smoothly-input-clear{--smoothly-color:var(--smoothly-secondary-color);--smoothly-color-contrast:var(--smoothly-secondary-contrast);--smoothly-color-shade:var(--smoothly-secondary-shade);--smoothly-color-tint:var(--smoothly-secondary-tint)}[color=tertiary].sc-smoothly-input-clear{--smoothly-color:var(--smoothly-tertiary-color);--smoothly-color-contrast:var(--smoothly-tertiary-contrast);--smoothly-color-shade:var(--smoothly-tertiary-shade);--smoothly-color-tint:var(--smoothly-tertiary-tint)}[color=success].sc-smoothly-input-clear{--smoothly-color:var(--smoothly-success-color);--smoothly-color-contrast:var(--smoothly-success-contrast);--smoothly-color-shade:var(--smoothly-success-shade);--smoothly-color-tint:var(--smoothly-success-tint)}[color=warning].sc-smoothly-input-clear{--smoothly-color:var(--smoothly-warning-color);--smoothly-color-contrast:var(--smoothly-warning-contrast);--smoothly-color-shade:var(--smoothly-warning-shade);--smoothly-color-tint:var(--smoothly-warning-tint)}[color=danger].sc-smoothly-input-clear{--smoothly-color:var(--smoothly-danger-color);--smoothly-color-contrast:var(--smoothly-danger-contrast);--smoothly-color-shade:var(--smoothly-danger-shade);--smoothly-color-tint:var(--smoothly-danger-tint)}[color=light].sc-smoothly-input-clear{--smoothly-color:var(--smoothly-light-color);--smoothly-color-contrast:var(--smoothly-light-contrast);--smoothly-color-shade:var(--smoothly-light-shade);--smoothly-color-tint:var(--smoothly-light-tint)}[color=medium].sc-smoothly-input-clear{--smoothly-color:var(--smoothly-medium-color);--smoothly-color-contrast:var(--smoothly-medium-contrast);--smoothly-color-shade:var(--smoothly-medium-shade);--smoothly-color-tint:var(--smoothly-medium-tint)}[color=dark].sc-smoothly-input-clear{--smoothly-color:var(--smoothly-dark-color);--smoothly-color-contrast:var(--smoothly-dark-contrast);--smoothly-color-shade:var(--smoothly-dark-shade);--smoothly-color-tint:var(--smoothly-dark-tint)}.sc-smoothly-input-clear-h{--smoothly-button-border-radius:0.5rem;display:inline-block;box-sizing:border-box;border-radius:var(--smoothly-button-border-radius);cursor:pointer;border:none;outline:none;position:relative}[shape=rounded].sc-smoothly-input-clear-h{--smoothly-button-border-radius:2rem}[type=link].sc-smoothly-input-clear-h{display:inline}[disabled].sc-smoothly-input-clear-h{opacity:0.5;pointer-events:none}.sc-smoothly-input-clear-h>a.sc-smoothly-input-clear,.sc-smoothly-input-clear-h>button.sc-smoothly-input-clear{font-size:110%;font-weight:400;border:1px solid transparent;outline:none;background-color:transparent;cursor:pointer;display:inline-flex;gap:0.5rem;box-sizing:border-box}.sc-smoothly-input-clear-h>a.sc-smoothly-input-clear:empty,.sc-smoothly-input-clear-h>button.sc-smoothly-input-clear:empty{border-width:0}.sc-smoothly-input-clear-h>button.sc-smoothly-input-clear{font-weight:bold;justify-content:center;height:100%;width:100%;border-radius:var(--smoothly-button-border-radius);align-items:center}.sc-smoothly-input-clear-h:not([size=icon]):not([size=flexible])>button.sc-smoothly-input-clear{padding:0.8em;min-width:8em}.sc-smoothly-input-clear-h:not([size=icon]):not([size=flexible]):has(smoothly-icon)>button.sc-smoothly-input-clear{padding:0.6em}[size=icon].sc-smoothly-input-clear-h>button.sc-smoothly-input-clear{padding:0.5em}[type=button].sc-smoothly-input-clear-h>a.sc-smoothly-input-clear{text-align:center;text-decoration:inherit;width:calc(100% - 0.6em)}[size=small].sc-smoothly-input-clear-h>button.sc-smoothly-input-clear{font-size:100%}[size=large].sc-smoothly-input-clear-h>button.sc-smoothly-input-clear{font-size:130%}.sc-smoothly-input-clear-h:not([size=icon]){min-width:8em}[size=flexible].sc-smoothly-input-clear-h{min-width:unset;padding:0;margin:0;display:flex;justify-content:center;align-items:center}[size=flexible].sc-smoothly-input-clear-h>button.sc-smoothly-input-clear{min-width:unset;padding:0;margin:0}[expand].sc-smoothly-input-clear-h{width:100%}[expand=full].sc-smoothly-input-clear-h{border-left:none;border-right:none;--smoothly-button-border-radius:0}[fill=outline].sc-smoothly-input-clear-h>button.sc-smoothly-input-clear{background-color:transparent;color:rgb(var(--smoothly-button-foreground));fill:rgb(var(--smoothly-button-foreground));stroke:rgb(var(--smoothly-button-foreground));border-color:rgb(var(--smoothly-button-foreground))}.sc-smoothly-input-clear-h:not([fill=clear])>button.sc-smoothly-input-clear:hover,.sc-smoothly-input-clear-h>button.sc-smoothly-input-clear:focus-visible,[fill=outline].sc-smoothly-input-clear-h:active>button.sc-smoothly-input-clear::before{border-color:rgb(var(--smoothly-button-focus-color))}[fill=outline].sc-smoothly-input-clear-h>button.sc-smoothly-input-clear:hover::before,[fill=outline].sc-smoothly-input-clear-h>button.sc-smoothly-input-clear:focus-within::before,[fill=outline].sc-smoothly-input-clear-h>button.sc-smoothly-input-clear:active::before{content:\"\";position:absolute;border:2px solid rgb(var(--smoothly-button-focus-border));inset:-1px;border-radius:var(--smoothly-button-border-radius)}.sc-smoothly-input-clear-h:not([fill=clear]):not([fill=outline])>button.sc-smoothly-input-clear:hover,.sc-smoothly-input-clear-h:not([fill=clear]):not([fill=outline])>button.sc-smoothly-input-clear:focus-visible,.sc-smoothly-input-clear-h:not([fill=clear]):not([fill=outline])>button.sc-smoothly-input-clear:active{background:rgb(var(--smoothly-button-hover-background))}.sc-smoothly-input-clear-h>button.sc-smoothly-input-clear,.sc-smoothly-input-clear-h.sc-smoothly-input-clear-s>smoothly-icon,.sc-smoothly-input-clear-h .sc-smoothly-input-clear-s>smoothly-icon{color:rgb(var(--smoothly-button-foreground));stroke:rgb(var(--smoothly-button-foreground));fill:rgb(var(--smoothly-button-foreground))}[hidden].sc-smoothly-input-clear-h{display:none}.sc-smoothly-input-clear-h{display:flex}.sc-smoothly-input-clear-h:not([display]){display:none}.sc-smoothly-input-clear-h[type=\"input\"].sc-smoothly-input-clear-s>smoothly-button>button{cursor:pointer;filter:opacity(60%);--smoothly-button-foreground:var(--smoothly-input-foreground);background-color:transparent}.sc-smoothly-input-clear-h.sc-smoothly-input-clear-s>smoothly-button>button>*+smoothly-icon{display:none}[disabled].sc-smoothly-input-clear-h{cursor:not-allowed}.sc-smoothly-input-clear-h[type=\"input\"]:hover.sc-smoothly-input-clear-s>smoothly-icon,.sc-smoothly-input-clear-h[type=\"input\"]:hover .sc-smoothly-input-clear-s>smoothly-icon{cursor:pointer;filter:opacity(100%)}";
|
|
9204
|
+
const SmoothlyInputClearStyle0 = styleCss$S;
|
|
9235
9205
|
|
|
9236
9206
|
const SmoothlyInputClear = class {
|
|
9237
9207
|
constructor(hostRef) {
|
|
@@ -9271,13 +9241,13 @@ const SmoothlyInputClear = class {
|
|
|
9271
9241
|
}
|
|
9272
9242
|
render() {
|
|
9273
9243
|
var _a;
|
|
9274
|
-
return (index.h(index.Host, { key: '
|
|
9244
|
+
return (index.h(index.Host, { key: '17668319b54cc454ef29fda2fdef56f9718d1ce8', title: this.tooltip }, index.h("smoothly-button", { key: 'f1334ad4a05dba52ce919945a9648882eb7d94f2', disabled: this.disabled, size: this.size, type: "button", shape: this.shape, expand: this.expand, color: this.color, fill: (_a = this.fill) !== null && _a !== void 0 ? _a : (this.type == "input" ? "clear" : undefined) }, index.h("slot", { key: '8699712b8661a46231822acfa57fdd15a811b9af' }), index.h("smoothly-icon", { key: '050e6cc18db2f64bff841a4465b420de3df156c9', name: "close", size: "tiny" }))));
|
|
9275
9245
|
}
|
|
9276
9246
|
};
|
|
9277
9247
|
SmoothlyInputClear.style = SmoothlyInputClearStyle0;
|
|
9278
9248
|
|
|
9279
|
-
const styleCss$10 = ".sc-smoothly-input-color-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)}.sc-smoothly-input-color-h[looks=\"border\"].sc-smoothly-input-color-s>smoothly-picker-menu smoothly-input,[looks=\"border\"].sc-smoothly-input-color-h{border:rgb(var(--smoothly-input-border)) solid 1px}[looks=\"border\"][readonly].sc-smoothly-input-color-h{border:transparent solid 1px}.sc-smoothly-input-color-h[looks=\"line\"].sc-smoothly-input-color-s>smoothly-picker-menu smoothly-input,[looks=\"line\"].sc-smoothly-input-color-h{border-bottom:rgb(var(--smoothly-input-border)) solid 1px}[looks=\"line\"][readonly].sc-smoothly-input-color-h{border-bottom:transparent solid 1px}[looks=\"grid\"].sc-smoothly-input-color-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-color-h{box-shadow:0px 0px 0px 1px rgba(var(--smoothly-input-border-readonly))}[looks=\"transparent\"].sc-smoothly-input-color-h{border:none}[looks=\"transparent\"][readonly].sc-smoothly-input-color-h,[looks=\"transparent\"].sc-smoothly-input-color-h:not(:focus-within){background-color:transparent}[looks=\"transparent\"][readonly].sc-smoothly-input-color-h>input.sc-smoothly-input-color,[looks=\"transparent\"].sc-smoothly-input-color-h:not(:focus-within)>input.sc-smoothly-input-color{background:transparent}[looks=\"transparent\"].sc-smoothly-input-color-h:not([readonly]):focus-within{outline:1px solid rgb(var(--smoothly-input-border))}.sc-smoothly-input-color-h.sc-smoothly-input-color-s>[slot=label],.sc-smoothly-input-color-h .sc-smoothly-input-color-s>[slot=label],.sc-smoothly-input-color-h .label.sc-smoothly-input-color{position:absolute;top:.6rem;opacity:0.8;user-select:none;cursor:inherit;transform-origin:top left;transition:transform 100ms ease}.sc-smoothly-input-color-h.floating-label.sc-smoothly-input-color-s>[slot=label],.sc-smoothly-input-color-h.floating-label .sc-smoothly-input-color-s>[slot=label],.sc-smoothly-input-color-h.has-value.sc-smoothly-input-color-s>[slot=label],.sc-smoothly-input-color-h.has-value .sc-smoothly-input-color-s>[slot=label],.sc-smoothly-input-color-h[placeholder].sc-smoothly-input-color-s>[slot=label],.sc-smoothly-input-color-h[placeholder] .sc-smoothly-input-color-s>[slot=label],.sc-smoothly-input-color-h[readonly].sc-smoothly-input-color-s>[slot=label],.sc-smoothly-input-color-h[readonly] .sc-smoothly-input-color-s>[slot=label],.has-value.sc-smoothly-input-color-h .label.sc-smoothly-input-color,[placeholder].sc-smoothly-input-color-h .label.sc-smoothly-input-color,[readonly].sc-smoothly-input-color-h .label.sc-smoothly-input-color,.sc-smoothly-input-color-h:not([readonly]):focus-within .label.float-on-focus.sc-smoothly-input-color{top:.2rem;transform:scale(0.8)}.sc-smoothly-input-color-h:not([show-label]):not(.show-label) .label.sc-smoothly-input-color{display:none}.sc-smoothly-input-color-h{display:flex;position:relative;background-color:rgb(var(--smoothly-input-background));align-items:center;justify-content:center}.sc-smoothly-input-color-h>smoothly-input.sc-smoothly-input-color{width:100%;--input-min-height:calc(var(--input-min-height) - 2px)}.sc-smoothly-input-color-h div.color-sample.sc-smoothly-input-color{height:2em;width:3em;margin-right:0.5rem;background-color:var(--hexCode);outline:1px solid rgb(var(--smoothly-input-border));border-radius:3px}.sc-smoothly-input-color-h smoothly-icon[name=options-outline].sc-smoothly-input-color{padding-right:var(--input-padding-side)}[readonly].sc-smoothly-input-color-h smoothly-icon[name=options-outline].sc-smoothly-input-color{filter:opacity(60%)}.sc-smoothly-input-color-h>div.rgb-sliders.sc-smoothly-input-color{background-color:rgb(var(--smoothly-input-background));position:absolute;padding:1em 1em 1em 0;top:calc(var(--element-height) + .8em);left:0;box-sizing:border-box;z-index:10;border:1px solid rgb(var(--smoothly-input-border))}.sc-smoothly-input-color-h>div.rgb-sliders.sc-smoothly-input-color::before{content:\"\";transform:translate(2em, -0.55em) rotate(45deg);width:1em;height:1em;background-color:rgb(var(--smoothly-input-background));border-top:1px solid rgb(var(--smoothly-input-border));border-left:1px solid rgb(var(--smoothly-input-border));position:absolute;z-index:100;top:0em}.sc-smoothly-input-color-h>div.rgb-sliders.sc-smoothly-input-color>smoothly-toggle-switch.sc-smoothly-input-color{margin-left:auto;margin-right:1em;margin-bottom:1em}div.rgb-sliders.sc-smoothly-input-color smoothly-input-range.sc-smoothly-input-color{padding:.5em 0}div.rgb-sliders.sc-smoothly-input-color smoothly-input-range.sc-smoothly-input-color label.sc-smoothly-input-color{width:4em}div.rgb-sliders.sc-smoothly-input-color smoothly-input-range.sc-smoothly-input-color>div.sc-smoothly-input-color>input[name=r].sc-smoothly-input-color::-webkit-slider-runnable-track{background:linear-gradient(to left, rgb(255, var(--rgb-g), var(--rgb-b)), rgb(0, var(--rgb-g), var(--rgb-b)))}div.rgb-sliders.sc-smoothly-input-color smoothly-input-range.sc-smoothly-input-color>div.sc-smoothly-input-color>input[name=r].sc-smoothly-input-color::-moz-range-track{background:linear-gradient(to left, rgb(255, var(--rgb-g), var(--rgb-b)), rgb(0, var(--rgb-g), var(--rgb-b)))}div.rgb-sliders.sc-smoothly-input-color smoothly-input-range.sc-smoothly-input-color>div.sc-smoothly-input-color>input[name=r].sc-smoothly-input-color::-moz-range-thumb{background-color:red}div.rgb-sliders.sc-smoothly-input-color smoothly-input-range.sc-smoothly-input-color>div.sc-smoothly-input-color>input[name=r].sc-smoothly-input-color::-webkit-slider-thumb{background-color:red}div.rgb-sliders.sc-smoothly-input-color smoothly-input-range.sc-smoothly-input-color>div.sc-smoothly-input-color>input[name=g].sc-smoothly-input-color::-webkit-slider-runnable-track{background:linear-gradient(to left, rgb(var(--rgb-r), 255, var(--rgb-b)), rgb(var(--rgb-r), 0, var(--rgb-b)))}div.rgb-sliders.sc-smoothly-input-color smoothly-input-range.sc-smoothly-input-color>div.sc-smoothly-input-color>input[name=g].sc-smoothly-input-color::-moz-range-track{background:linear-gradient(to left, rgb(var(--rgb-r), 255, var(--rgb-b)), rgb(var(--rgb-r), 0, var(--rgb-b)))}div.rgb-sliders.sc-smoothly-input-color smoothly-input-range.sc-smoothly-input-color>div.sc-smoothly-input-color>input[name=g].sc-smoothly-input-color::-moz-range-thumb{background-color:green}div.rgb-sliders.sc-smoothly-input-color smoothly-input-range.sc-smoothly-input-color>div.sc-smoothly-input-color>input[name=g].sc-smoothly-input-color::-webkit-slider-thumb{background-color:green}div.rgb-sliders.sc-smoothly-input-color smoothly-input-range.sc-smoothly-input-color>div.sc-smoothly-input-color>input[name=b].sc-smoothly-input-color::-webkit-slider-runnable-track{background:linear-gradient(to left, rgb(var(--rgb-r), var(--rgb-g), 255), rgb(var(--rgb-r), var(--rgb-g), 0))}div.rgb-sliders.sc-smoothly-input-color smoothly-input-range.sc-smoothly-input-color>div.sc-smoothly-input-color>input[name=b].sc-smoothly-input-color::-moz-range-track{background:linear-gradient(to left, rgb(var(--rgb-r), var(--rgb-g), 255), rgb(var(--rgb-r), var(--rgb-g), 0))}div.rgb-sliders.sc-smoothly-input-color smoothly-input-range.sc-smoothly-input-color>div.sc-smoothly-input-color>input[name=b].sc-smoothly-input-color::-moz-range-thumb{background-color:blue}div.rgb-sliders.sc-smoothly-input-color smoothly-input-range.sc-smoothly-input-color>div.sc-smoothly-input-color>input[name=b].sc-smoothly-input-color::-webkit-slider-thumb{background-color:blue}div.rgb-sliders.sc-smoothly-input-color smoothly-input-range.sc-smoothly-input-color>div.sc-smoothly-input-color>input[name=h].sc-smoothly-input-color::-webkit-slider-runnable-track{background:linear-gradient(to right in hsl longer hue, red, red)}div.rgb-sliders.sc-smoothly-input-color smoothly-input-range.sc-smoothly-input-color>div.sc-smoothly-input-color>input[name=h].sc-smoothly-input-color::-moz-range-track{background:linear-gradient(to right in hsl longer hue, red, red)}div.rgb-sliders.sc-smoothly-input-color smoothly-input-range.sc-smoothly-input-color>div.sc-smoothly-input-color>input[name=h].sc-smoothly-input-color::-webkit-slider-thumb{background-color:hsl(var(--hsl-h), 100%, 50%)}div.rgb-sliders.sc-smoothly-input-color smoothly-input-range.sc-smoothly-input-color>div.sc-smoothly-input-color>input[name=h].sc-smoothly-input-color::-moz-range-thumb{background-color:hsl(var(--hsl-h), 100%, 50%)}div.rgb-sliders.sc-smoothly-input-color smoothly-input-range.sc-smoothly-input-color>div.sc-smoothly-input-color>input[name=s].sc-smoothly-input-color::-webkit-slider-runnable-track{background:linear-gradient(to right, hsl(var(--hsl-h), 0%, 50%), hsl(var(--hsl-h), 100%, 50%))}div.rgb-sliders.sc-smoothly-input-color smoothly-input-range.sc-smoothly-input-color>div.sc-smoothly-input-color>input[name=s].sc-smoothly-input-color::-moz-range-track{background:linear-gradient(to right, hsl(var(--hsl-h), 0%, 50%), hsl(var(--hsl-h), 100%, 50%))}div.rgb-sliders.sc-smoothly-input-color smoothly-input-range.sc-smoothly-input-color>div.sc-smoothly-input-color>input[name=s].sc-smoothly-input-color::-moz-range-thumb{background-color:hsl(var(--hsl-h), var(--hsl-s), 50%)}div.rgb-sliders.sc-smoothly-input-color smoothly-input-range.sc-smoothly-input-color>div.sc-smoothly-input-color>input[name=s].sc-smoothly-input-color::-webkit-slider-thumb{background-color:hsl(var(--hsl-h), var(--hsl-s), 50%)}div.rgb-sliders.sc-smoothly-input-color smoothly-input-range.sc-smoothly-input-color>div.sc-smoothly-input-color>input[name=l].sc-smoothly-input-color::-moz-range-track{background:linear-gradient(to right, black, white)}div.rgb-sliders.sc-smoothly-input-color smoothly-input-range.sc-smoothly-input-color>div.sc-smoothly-input-color>input[name=l].sc-smoothly-input-color::-webkit-slider-runnable-track{background:linear-gradient(to right, black, white)}div.rgb-sliders.sc-smoothly-input-color smoothly-input-range.sc-smoothly-input-color>div.sc-smoothly-input-color>input[name=l].sc-smoothly-input-color::-moz-range-thumb{background-color:#777}div.rgb-sliders.sc-smoothly-input-color smoothly-input-range.sc-smoothly-input-color>div.sc-smoothly-input-color>input[name=l].sc-smoothly-input-color::-webkit-slider-thumb{background-color:#777}";
|
|
9280
|
-
const SmoothlyInputColorStyle0 = styleCss$
|
|
9249
|
+
const styleCss$R = ".sc-smoothly-input-color-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)}.sc-smoothly-input-color-h[looks=\"border\"].sc-smoothly-input-color-s>smoothly-picker-menu smoothly-input,[looks=\"border\"].sc-smoothly-input-color-h{border:rgb(var(--smoothly-input-border)) solid 1px}[looks=\"border\"][readonly].sc-smoothly-input-color-h{border:transparent solid 1px}.sc-smoothly-input-color-h[looks=\"line\"].sc-smoothly-input-color-s>smoothly-picker-menu smoothly-input,[looks=\"line\"].sc-smoothly-input-color-h{border-bottom:rgb(var(--smoothly-input-border)) solid 1px}[looks=\"line\"][readonly].sc-smoothly-input-color-h{border-bottom:transparent solid 1px}[looks=\"grid\"].sc-smoothly-input-color-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-color-h{box-shadow:0px 0px 0px 1px rgba(var(--smoothly-input-border-readonly))}[looks=\"transparent\"].sc-smoothly-input-color-h{border:none}[looks=\"transparent\"][readonly].sc-smoothly-input-color-h,[looks=\"transparent\"].sc-smoothly-input-color-h:not(:focus-within){background-color:transparent}[looks=\"transparent\"][readonly].sc-smoothly-input-color-h>input.sc-smoothly-input-color,[looks=\"transparent\"].sc-smoothly-input-color-h:not(:focus-within)>input.sc-smoothly-input-color{background:transparent}[looks=\"transparent\"].sc-smoothly-input-color-h:not([readonly]):focus-within{outline:1px solid rgb(var(--smoothly-input-border))}.sc-smoothly-input-color-h.sc-smoothly-input-color-s>[slot=label],.sc-smoothly-input-color-h .sc-smoothly-input-color-s>[slot=label],.sc-smoothly-input-color-h .label.sc-smoothly-input-color{position:absolute;top:.6rem;opacity:0.8;user-select:none;cursor:inherit;transform-origin:top left;transition:transform 100ms ease}.sc-smoothly-input-color-h.floating-label.sc-smoothly-input-color-s>[slot=label],.sc-smoothly-input-color-h.floating-label .sc-smoothly-input-color-s>[slot=label],.sc-smoothly-input-color-h.has-value.sc-smoothly-input-color-s>[slot=label],.sc-smoothly-input-color-h.has-value .sc-smoothly-input-color-s>[slot=label],.sc-smoothly-input-color-h[placeholder].sc-smoothly-input-color-s>[slot=label],.sc-smoothly-input-color-h[placeholder] .sc-smoothly-input-color-s>[slot=label],.sc-smoothly-input-color-h[readonly].sc-smoothly-input-color-s>[slot=label],.sc-smoothly-input-color-h[readonly] .sc-smoothly-input-color-s>[slot=label],.has-value.sc-smoothly-input-color-h .label.sc-smoothly-input-color,[placeholder].sc-smoothly-input-color-h .label.sc-smoothly-input-color,[readonly].sc-smoothly-input-color-h .label.sc-smoothly-input-color,.sc-smoothly-input-color-h:not([readonly]):focus-within .label.float-on-focus.sc-smoothly-input-color{top:.2rem;transform:scale(0.8)}.sc-smoothly-input-color-h:not([show-label]):not(.show-label) .label.sc-smoothly-input-color{display:none}.sc-smoothly-input-color-h{display:flex;position:relative;background-color:rgb(var(--smoothly-input-background));align-items:center;justify-content:center}.sc-smoothly-input-color-h>smoothly-input.sc-smoothly-input-color{width:100%;--input-min-height:calc(var(--input-min-height) - 2px)}.sc-smoothly-input-color-h div.color-sample.sc-smoothly-input-color{height:2em;width:3em;margin-right:0.5rem;background-color:var(--hexCode);outline:1px solid rgb(var(--smoothly-input-border));border-radius:3px}.sc-smoothly-input-color-h smoothly-icon[name=options-outline].sc-smoothly-input-color{padding-right:var(--input-padding-side)}[readonly].sc-smoothly-input-color-h smoothly-icon[name=options-outline].sc-smoothly-input-color{filter:opacity(60%)}.sc-smoothly-input-color-h>div.rgb-sliders.sc-smoothly-input-color{background-color:rgb(var(--smoothly-input-background));position:absolute;padding:1em 1em 1em 0;top:calc(var(--element-height) + .8em);left:0;box-sizing:border-box;z-index:10;border:1px solid rgb(var(--smoothly-input-border))}.sc-smoothly-input-color-h>div.rgb-sliders.sc-smoothly-input-color::before{content:\"\";transform:translate(2em, -0.55em) rotate(45deg);width:1em;height:1em;background-color:rgb(var(--smoothly-input-background));border-top:1px solid rgb(var(--smoothly-input-border));border-left:1px solid rgb(var(--smoothly-input-border));position:absolute;z-index:100;top:0em}.sc-smoothly-input-color-h>div.rgb-sliders.sc-smoothly-input-color>smoothly-toggle-switch.sc-smoothly-input-color{margin-left:auto;margin-right:1em;margin-bottom:1em}div.rgb-sliders.sc-smoothly-input-color smoothly-input-range.sc-smoothly-input-color{padding:.5em 0}div.rgb-sliders.sc-smoothly-input-color smoothly-input-range.sc-smoothly-input-color label.sc-smoothly-input-color{width:4em}div.rgb-sliders.sc-smoothly-input-color smoothly-input-range.sc-smoothly-input-color>div.sc-smoothly-input-color>input[name=r].sc-smoothly-input-color::-webkit-slider-runnable-track{background:linear-gradient(to left, rgb(255, var(--rgb-g), var(--rgb-b)), rgb(0, var(--rgb-g), var(--rgb-b)))}div.rgb-sliders.sc-smoothly-input-color smoothly-input-range.sc-smoothly-input-color>div.sc-smoothly-input-color>input[name=r].sc-smoothly-input-color::-moz-range-track{background:linear-gradient(to left, rgb(255, var(--rgb-g), var(--rgb-b)), rgb(0, var(--rgb-g), var(--rgb-b)))}div.rgb-sliders.sc-smoothly-input-color smoothly-input-range.sc-smoothly-input-color>div.sc-smoothly-input-color>input[name=r].sc-smoothly-input-color::-moz-range-thumb{background-color:red}div.rgb-sliders.sc-smoothly-input-color smoothly-input-range.sc-smoothly-input-color>div.sc-smoothly-input-color>input[name=r].sc-smoothly-input-color::-webkit-slider-thumb{background-color:red}div.rgb-sliders.sc-smoothly-input-color smoothly-input-range.sc-smoothly-input-color>div.sc-smoothly-input-color>input[name=g].sc-smoothly-input-color::-webkit-slider-runnable-track{background:linear-gradient(to left, rgb(var(--rgb-r), 255, var(--rgb-b)), rgb(var(--rgb-r), 0, var(--rgb-b)))}div.rgb-sliders.sc-smoothly-input-color smoothly-input-range.sc-smoothly-input-color>div.sc-smoothly-input-color>input[name=g].sc-smoothly-input-color::-moz-range-track{background:linear-gradient(to left, rgb(var(--rgb-r), 255, var(--rgb-b)), rgb(var(--rgb-r), 0, var(--rgb-b)))}div.rgb-sliders.sc-smoothly-input-color smoothly-input-range.sc-smoothly-input-color>div.sc-smoothly-input-color>input[name=g].sc-smoothly-input-color::-moz-range-thumb{background-color:green}div.rgb-sliders.sc-smoothly-input-color smoothly-input-range.sc-smoothly-input-color>div.sc-smoothly-input-color>input[name=g].sc-smoothly-input-color::-webkit-slider-thumb{background-color:green}div.rgb-sliders.sc-smoothly-input-color smoothly-input-range.sc-smoothly-input-color>div.sc-smoothly-input-color>input[name=b].sc-smoothly-input-color::-webkit-slider-runnable-track{background:linear-gradient(to left, rgb(var(--rgb-r), var(--rgb-g), 255), rgb(var(--rgb-r), var(--rgb-g), 0))}div.rgb-sliders.sc-smoothly-input-color smoothly-input-range.sc-smoothly-input-color>div.sc-smoothly-input-color>input[name=b].sc-smoothly-input-color::-moz-range-track{background:linear-gradient(to left, rgb(var(--rgb-r), var(--rgb-g), 255), rgb(var(--rgb-r), var(--rgb-g), 0))}div.rgb-sliders.sc-smoothly-input-color smoothly-input-range.sc-smoothly-input-color>div.sc-smoothly-input-color>input[name=b].sc-smoothly-input-color::-moz-range-thumb{background-color:blue}div.rgb-sliders.sc-smoothly-input-color smoothly-input-range.sc-smoothly-input-color>div.sc-smoothly-input-color>input[name=b].sc-smoothly-input-color::-webkit-slider-thumb{background-color:blue}div.rgb-sliders.sc-smoothly-input-color smoothly-input-range.sc-smoothly-input-color>div.sc-smoothly-input-color>input[name=h].sc-smoothly-input-color::-webkit-slider-runnable-track{background:linear-gradient(to right in hsl longer hue, red, red)}div.rgb-sliders.sc-smoothly-input-color smoothly-input-range.sc-smoothly-input-color>div.sc-smoothly-input-color>input[name=h].sc-smoothly-input-color::-moz-range-track{background:linear-gradient(to right in hsl longer hue, red, red)}div.rgb-sliders.sc-smoothly-input-color smoothly-input-range.sc-smoothly-input-color>div.sc-smoothly-input-color>input[name=h].sc-smoothly-input-color::-webkit-slider-thumb{background-color:hsl(var(--hsl-h), 100%, 50%)}div.rgb-sliders.sc-smoothly-input-color smoothly-input-range.sc-smoothly-input-color>div.sc-smoothly-input-color>input[name=h].sc-smoothly-input-color::-moz-range-thumb{background-color:hsl(var(--hsl-h), 100%, 50%)}div.rgb-sliders.sc-smoothly-input-color smoothly-input-range.sc-smoothly-input-color>div.sc-smoothly-input-color>input[name=s].sc-smoothly-input-color::-webkit-slider-runnable-track{background:linear-gradient(to right, hsl(var(--hsl-h), 0%, 50%), hsl(var(--hsl-h), 100%, 50%))}div.rgb-sliders.sc-smoothly-input-color smoothly-input-range.sc-smoothly-input-color>div.sc-smoothly-input-color>input[name=s].sc-smoothly-input-color::-moz-range-track{background:linear-gradient(to right, hsl(var(--hsl-h), 0%, 50%), hsl(var(--hsl-h), 100%, 50%))}div.rgb-sliders.sc-smoothly-input-color smoothly-input-range.sc-smoothly-input-color>div.sc-smoothly-input-color>input[name=s].sc-smoothly-input-color::-moz-range-thumb{background-color:hsl(var(--hsl-h), var(--hsl-s), 50%)}div.rgb-sliders.sc-smoothly-input-color smoothly-input-range.sc-smoothly-input-color>div.sc-smoothly-input-color>input[name=s].sc-smoothly-input-color::-webkit-slider-thumb{background-color:hsl(var(--hsl-h), var(--hsl-s), 50%)}div.rgb-sliders.sc-smoothly-input-color smoothly-input-range.sc-smoothly-input-color>div.sc-smoothly-input-color>input[name=l].sc-smoothly-input-color::-moz-range-track{background:linear-gradient(to right, black, white)}div.rgb-sliders.sc-smoothly-input-color smoothly-input-range.sc-smoothly-input-color>div.sc-smoothly-input-color>input[name=l].sc-smoothly-input-color::-webkit-slider-runnable-track{background:linear-gradient(to right, black, white)}div.rgb-sliders.sc-smoothly-input-color smoothly-input-range.sc-smoothly-input-color>div.sc-smoothly-input-color>input[name=l].sc-smoothly-input-color::-moz-range-thumb{background-color:#777}div.rgb-sliders.sc-smoothly-input-color smoothly-input-range.sc-smoothly-input-color>div.sc-smoothly-input-color>input[name=l].sc-smoothly-input-color::-webkit-slider-thumb{background-color:#777}";
|
|
9250
|
+
const SmoothlyInputColorStyle0 = styleCss$R;
|
|
9281
9251
|
|
|
9282
9252
|
const SmoothlyInputColor = class {
|
|
9283
9253
|
constructor(hostRef) {
|
|
@@ -9421,7 +9391,7 @@ const SmoothlyInputColor = class {
|
|
|
9421
9391
|
}
|
|
9422
9392
|
render() {
|
|
9423
9393
|
var _a, _b, _c, _d, _e, _f;
|
|
9424
|
-
return (index.h(index.Host, { key: '
|
|
9394
|
+
return (index.h(index.Host, { key: '06ccbfbb8103fb4157b7aab79cdd4b275b477bc0', style: {
|
|
9425
9395
|
"--hexCode": this.value,
|
|
9426
9396
|
"--rgb-r": `${Math.round((_a = this.rgb.r) !== null && _a !== void 0 ? _a : 0)}`,
|
|
9427
9397
|
"--rgb-g": `${Math.round((_b = this.rgb.g) !== null && _b !== void 0 ? _b : 0)}`,
|
|
@@ -9430,7 +9400,7 @@ const SmoothlyInputColor = class {
|
|
|
9430
9400
|
"--hsl-s": `${Math.round((_e = this.hsl.s) !== null && _e !== void 0 ? _e : 0)}%`,
|
|
9431
9401
|
"--hsl-l": `${Math.round((_f = this.hsl.l) !== null && _f !== void 0 ? _f : 0)}%`,
|
|
9432
9402
|
"--element-height": `${this.element.clientHeight}px`,
|
|
9433
|
-
} }, index.h("smoothly-input", { key: '
|
|
9403
|
+
} }, index.h("smoothly-input", { key: 'c010412a9135a0a2ea6b4c766260fc0f720eaf5b', value: this.value, name: this.name, looks: undefined, color: this.color, type: "hex-color", showLabel: this.showLabel, readonly: this.readonly, onSmoothlyInput: event => (event === null || event === void 0 ? void 0 : event.stopPropagation(), this.hexInputHandler(event.detail[this.name])) }, index.h("slot", { key: 'c28a3ec9985cefd718787b74c30f8434ac07ad5c' })), index.h("div", { key: '6ef1c860d2d6431fccea0aebaad5d930753cd9af', class: "color-sample" }), index.h("smoothly-icon", { key: '9184753b181267e611d19c51709aa1c233fc89dc', color: this.color, name: "options-outline", size: "small", onClick: () => !this.readonly && this.openDropdown() }), index.h("div", { key: '85be89a51fb536882133d724d81d8d29d794e1aa' }, index.h("slot", { key: 'd44ffd1cabe83efb3f1a727710737ff1c75bcb28', name: "end" })), this.open && !this.readonly && (index.h("div", { key: 'e4fd1fd66897f84c7b82b594cdc4afa794c245c1', class: "rgb-sliders" }, index.h("smoothly-toggle-switch", { key: '2b8ab54580f8a96a72ee6b762616b061d2782d73', title: `${this.sliderMode === "rgb" ? "To HSL" : "To RGB"}`, onSmoothlyToggleSwitchChange: event => this.handleSwitchMode(event), size: "tiny", checkmark: false, selected: this.sliderMode === "hsl" }), Object.entries(this.rgb).map(([key, value]) => (index.h("smoothly-input-range", { style: this.sliderMode != "rgb" ? { display: "none" } : {}, name: key, min: 0, max: 255, color: undefined, type: "text", value: value, step: 1, outputSide: "right", onSmoothlyInput: event => this.sliderInputHandler(event), label: key.toUpperCase() }))), Object.entries(this.hsl).map(([key, value]) => (index.h("smoothly-input-range", { style: this.sliderMode != "hsl" ? { display: "none" } : {}, name: key, min: 0, max: key === "h" ? 359 : 1, color: undefined, type: key === "s" || key === "l" ? "percent" : "text", value: (key === "s" || key === "l") && value ? value / 100 : value, step: key === "s" || key === "l" ? 0.01 : 1, outputSide: "right", onSmoothlyInput: event => this.sliderInputHandler(event), label: key.toUpperCase() })))))));
|
|
9434
9404
|
}
|
|
9435
9405
|
get element() { return index.getElement(this); }
|
|
9436
9406
|
static get watchers() { return {
|
|
@@ -9444,13 +9414,13 @@ const SmoothlyInputColorDemo = class {
|
|
|
9444
9414
|
index.registerInstance(this, hostRef);
|
|
9445
9415
|
}
|
|
9446
9416
|
render() {
|
|
9447
|
-
return (index.h(index.Host, { key: '
|
|
9417
|
+
return (index.h(index.Host, { key: '233cd244e8fbd24d8d36b67afc5e32c74f9c84e9' }, index.h("h2", { key: 'd3245bbee2dd2b9af5218bb81433138ca9cef085' }, "Color"), index.h("smoothly-input-color", { key: 'de7d138d123d61aaf0404b64404f335d399423ec', name: "color" }, "Choose color")));
|
|
9448
9418
|
}
|
|
9449
9419
|
};
|
|
9450
9420
|
SmoothlyInputColorDemo.style = "style.css";
|
|
9451
9421
|
|
|
9452
|
-
const styleCss
|
|
9453
|
-
const SmoothlyInputDateStyle0 = styleCss
|
|
9422
|
+
const styleCss$Q = ".sc-smoothly-input-date-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)}.sc-smoothly-input-date-h[looks=\"border\"].sc-smoothly-input-date-s>smoothly-picker-menu smoothly-input,[looks=\"border\"].sc-smoothly-input-date-h{border:rgb(var(--smoothly-input-border)) solid 1px}[looks=\"border\"][readonly].sc-smoothly-input-date-h{border:transparent solid 1px}.sc-smoothly-input-date-h[looks=\"line\"].sc-smoothly-input-date-s>smoothly-picker-menu smoothly-input,[looks=\"line\"].sc-smoothly-input-date-h{border-bottom:rgb(var(--smoothly-input-border)) solid 1px}[looks=\"line\"][readonly].sc-smoothly-input-date-h{border-bottom:transparent solid 1px}[looks=\"grid\"].sc-smoothly-input-date-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-date-h{box-shadow:0px 0px 0px 1px rgba(var(--smoothly-input-border-readonly))}[looks=\"transparent\"].sc-smoothly-input-date-h{border:none}[looks=\"transparent\"][readonly].sc-smoothly-input-date-h,[looks=\"transparent\"].sc-smoothly-input-date-h:not(:focus-within){background-color:transparent}[looks=\"transparent\"][readonly].sc-smoothly-input-date-h>input.sc-smoothly-input-date,[looks=\"transparent\"].sc-smoothly-input-date-h:not(:focus-within)>input.sc-smoothly-input-date{background:transparent}[looks=\"transparent\"].sc-smoothly-input-date-h:not([readonly]):focus-within{outline:1px solid rgb(var(--smoothly-input-border))}.sc-smoothly-input-date-h.sc-smoothly-input-date-s>[slot=label],.sc-smoothly-input-date-h .sc-smoothly-input-date-s>[slot=label],.sc-smoothly-input-date-h .label.sc-smoothly-input-date{position:absolute;top:.6rem;opacity:0.8;user-select:none;cursor:inherit;transform-origin:top left;transition:transform 100ms ease}.sc-smoothly-input-date-h.floating-label.sc-smoothly-input-date-s>[slot=label],.sc-smoothly-input-date-h.floating-label .sc-smoothly-input-date-s>[slot=label],.sc-smoothly-input-date-h.has-value.sc-smoothly-input-date-s>[slot=label],.sc-smoothly-input-date-h.has-value .sc-smoothly-input-date-s>[slot=label],.sc-smoothly-input-date-h[placeholder].sc-smoothly-input-date-s>[slot=label],.sc-smoothly-input-date-h[placeholder] .sc-smoothly-input-date-s>[slot=label],.sc-smoothly-input-date-h[readonly].sc-smoothly-input-date-s>[slot=label],.sc-smoothly-input-date-h[readonly] .sc-smoothly-input-date-s>[slot=label],.has-value.sc-smoothly-input-date-h .label.sc-smoothly-input-date,[placeholder].sc-smoothly-input-date-h .label.sc-smoothly-input-date,[readonly].sc-smoothly-input-date-h .label.sc-smoothly-input-date,.sc-smoothly-input-date-h:not([readonly]):focus-within .label.float-on-focus.sc-smoothly-input-date{top:.2rem;transform:scale(0.8)}.sc-smoothly-input-date-h:not([show-label]):not(.show-label) .label.sc-smoothly-input-date{display:none}.sc-smoothly-input-date-h{display:flex;position:relative;max-width:100vw;background-color:rgb(var(--smoothly-input-background));box-sizing:border-box;min-height:var(--input-min-height)}.sc-smoothly-input-date-h>smoothly-input.sc-smoothly-input-date{width:100%;--input-min-height:calc(var(--input-min-height) - 2px)}.sc-smoothly-input-date-h>smoothly-input.sc-smoothly-input-date>div.sc-smoothly-input-date>input.sc-smoothly-input-date{cursor:pointer}[readonly].sc-smoothly-input-date-h,[readonly].sc-smoothly-input-date-h>smoothly-input.sc-smoothly-input-date>div.sc-smoothly-input-date>input.sc-smoothly-input-date{cursor:not-allowed}[looks=transparent].sc-smoothly-input-date-h smoothly-input.sc-smoothly-input-date{outline:none}.sc-smoothly-input-date-h>nav.sc-smoothly-input-date{position:absolute;z-index:10;top:4em;background-color:rgb(var(--smoothly-input-background));min-width:18em}.sc-smoothly-input-date-h>nav.sc-smoothly-input-date>smoothly-calendar.sc-smoothly-input-date::before{content:\"\";box-sizing:border-box;position:absolute;top:1px;z-index:9;transform:translate(2em, -0.55em) rotate(45deg);width:1em;height:1em;background-color:rgb(var(--smoothly-input-background));border-top:1px solid rgb(var(--smoothly-input-border));border-left:1px solid rgb(var(--smoothly-input-border))}.sc-smoothly-input-date-h>span.icons.sc-smoothly-input-date{display:flex;flex-direction:row;align-items:center}@media screen and (min-width: 400px){.sc-smoothly-input-date-h>nav.sc-smoothly-input-date{position:absolute;z-index:10;top:4em;background-color:rgb(var(--smoothly-input-background));max-width:22em}}";
|
|
9423
|
+
const SmoothlyInputDateStyle0 = styleCss$Q;
|
|
9454
9424
|
|
|
9455
9425
|
const SmoothlyInputDate = class {
|
|
9456
9426
|
constructor(hostRef) {
|
|
@@ -9536,13 +9506,13 @@ const SmoothlyInputDate = class {
|
|
|
9536
9506
|
event.stopPropagation();
|
|
9537
9507
|
}
|
|
9538
9508
|
render() {
|
|
9539
|
-
return (index.h(index.Host, { key: '
|
|
9509
|
+
return (index.h(index.Host, { key: '537241a6d277b3d97892e6d2a6e7785d1445dd21' }, index.h("smoothly-input", { key: 'd6b4712b11564007b357279d0ef6353353f2ead2', color: this.color, looks: this.looks == "transparent" ? this.looks : undefined, name: this.name, onFocus: () => !this.readonly && (this.open = !this.open), onClick: () => !this.readonly && (this.open = !this.open), readonly: this.readonly, invalid: this.invalid, type: "date", value: this.value, showLabel: this.showLabel, onSmoothlyInputLoad: e => e.stopPropagation(), onSmoothlyInput: e => {
|
|
9540
9510
|
e.stopPropagation();
|
|
9541
9511
|
this.value = e.detail[this.name];
|
|
9542
|
-
} }, index.h("slot", { key: '
|
|
9512
|
+
} }, index.h("slot", { key: '9b353cf3658a2017a6fdf44ea00853c8cf22958e' })), index.h("span", { key: 'b2d0c1951f0a6c92f8ec7b48a1b049eddc16208d', class: "icons" }, index.h("slot", { key: '4d1f3d6771d6ee0ea13a7d709740b76350a9ac00', name: "end" })), this.open && !this.readonly && (index.h("nav", { key: '33fe4e270a7dd48a48a66205342e79c9cf505e22' }, index.h("smoothly-calendar", { key: '2084bd5d0ef9575c45f2e52504c5bef6a076dba2', doubleInput: false, value: this.value, onSmoothlyValueChange: event => {
|
|
9543
9513
|
this.value = event.detail;
|
|
9544
9514
|
event.stopPropagation();
|
|
9545
|
-
}, max: this.max, min: this.min }, index.h("div", { key: '
|
|
9515
|
+
}, max: this.max, min: this.min }, index.h("div", { key: 'c6c5f4e7f6c4d840251e360667154deb2ea4d1f8', slot: "year-label" }, index.h("slot", { key: 'e1ed184a3b88e62306ff446d4484ff1b44dde2d3', name: "year-label" })), index.h("div", { key: '89136139b0624ea7f160615ad12e7f66ae83d0bb', slot: "month-label" }, index.h("slot", { key: '6a4ba7bacf62d96fc09ed3fb8aa28dcc071504f5', name: "month-label" })))))));
|
|
9546
9516
|
}
|
|
9547
9517
|
get element() { return index.getElement(this); }
|
|
9548
9518
|
static get watchers() { return {
|
|
@@ -9551,8 +9521,8 @@ const SmoothlyInputDate = class {
|
|
|
9551
9521
|
};
|
|
9552
9522
|
SmoothlyInputDate.style = SmoothlyInputDateStyle0;
|
|
9553
9523
|
|
|
9554
|
-
const styleCss$
|
|
9555
|
-
const SmoothlyInputDateRangeStyle0 = styleCss$
|
|
9524
|
+
const styleCss$P = ".sc-smoothly-input-date-range-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)}.sc-smoothly-input-date-range-h[looks=\"border\"].sc-smoothly-input-date-range-s>smoothly-picker-menu smoothly-input,[looks=\"border\"].sc-smoothly-input-date-range-h{border:rgb(var(--smoothly-input-border)) solid 1px}[looks=\"border\"][readonly].sc-smoothly-input-date-range-h{border:transparent solid 1px}.sc-smoothly-input-date-range-h[looks=\"line\"].sc-smoothly-input-date-range-s>smoothly-picker-menu smoothly-input,[looks=\"line\"].sc-smoothly-input-date-range-h{border-bottom:rgb(var(--smoothly-input-border)) solid 1px}[looks=\"line\"][readonly].sc-smoothly-input-date-range-h{border-bottom:transparent solid 1px}[looks=\"grid\"].sc-smoothly-input-date-range-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-date-range-h{box-shadow:0px 0px 0px 1px rgba(var(--smoothly-input-border-readonly))}[looks=\"transparent\"].sc-smoothly-input-date-range-h{border:none}[looks=\"transparent\"][readonly].sc-smoothly-input-date-range-h,[looks=\"transparent\"].sc-smoothly-input-date-range-h:not(:focus-within){background-color:transparent}[looks=\"transparent\"][readonly].sc-smoothly-input-date-range-h>input.sc-smoothly-input-date-range,[looks=\"transparent\"].sc-smoothly-input-date-range-h:not(:focus-within)>input.sc-smoothly-input-date-range{background:transparent}[looks=\"transparent\"].sc-smoothly-input-date-range-h:not([readonly]):focus-within{outline:1px solid rgb(var(--smoothly-input-border))}.sc-smoothly-input-date-range-h.sc-smoothly-input-date-range-s>[slot=label],.sc-smoothly-input-date-range-h .sc-smoothly-input-date-range-s>[slot=label],.sc-smoothly-input-date-range-h .label.sc-smoothly-input-date-range{position:absolute;top:.6rem;opacity:0.8;user-select:none;cursor:inherit;transform-origin:top left;transition:transform 100ms ease}.sc-smoothly-input-date-range-h.floating-label.sc-smoothly-input-date-range-s>[slot=label],.sc-smoothly-input-date-range-h.floating-label .sc-smoothly-input-date-range-s>[slot=label],.sc-smoothly-input-date-range-h.has-value.sc-smoothly-input-date-range-s>[slot=label],.sc-smoothly-input-date-range-h.has-value .sc-smoothly-input-date-range-s>[slot=label],.sc-smoothly-input-date-range-h[placeholder].sc-smoothly-input-date-range-s>[slot=label],.sc-smoothly-input-date-range-h[placeholder] .sc-smoothly-input-date-range-s>[slot=label],.sc-smoothly-input-date-range-h[readonly].sc-smoothly-input-date-range-s>[slot=label],.sc-smoothly-input-date-range-h[readonly] .sc-smoothly-input-date-range-s>[slot=label],.has-value.sc-smoothly-input-date-range-h .label.sc-smoothly-input-date-range,[placeholder].sc-smoothly-input-date-range-h .label.sc-smoothly-input-date-range,[readonly].sc-smoothly-input-date-range-h .label.sc-smoothly-input-date-range,.sc-smoothly-input-date-range-h:not([readonly]):focus-within .label.float-on-focus.sc-smoothly-input-date-range{top:.2rem;transform:scale(0.8)}.sc-smoothly-input-date-range-h:not([show-label]):not(.show-label) .label.sc-smoothly-input-date-range{display:none}.sc-smoothly-input-date-range-h{position:relative;display:flex;background-color:rgb(var(--smoothly-input-background))}.sc-smoothly-input-date-range-h:focus-within smoothly-input.sc-smoothly-input-date-range{outline:none}.sc-smoothly-input-date-range-h>section.sc-smoothly-input-date-range>smoothly-input.sc-smoothly-input-date-range>div.sc-smoothly-input-date-range>input.sc-smoothly-input-date-range{cursor:pointer}[readonly].sc-smoothly-input-date-range-h,[readonly].sc-smoothly-input-date-range-h>section.sc-smoothly-input-date-range>smoothly-input.sc-smoothly-input-date-range>div.sc-smoothly-input-date-range>input.sc-smoothly-input-date-range{cursor:not-allowed}.sc-smoothly-input-date-range-h>nav.sc-smoothly-input-date-range{position:absolute;z-index:10;top:4em;background-color:rgb(var(--smoothly-input-background));max-width:22em;min-width:18em}.sc-smoothly-input-date-range-h>nav.sc-smoothly-input-date-range>smoothly-calendar.sc-smoothly-input-date-range::before{content:\"\";position:absolute;box-sizing:border-box;top:1px;left:-7em;z-index:9;transform:translate(10em, -0.55em) rotate(45deg);width:1em;height:1em;background-color:rgb(var(--smoothly-input-background));border-top:1px solid rgb(var(--smoothly-input-border));border-left:1px solid rgb(var(--smoothly-input-border))}.sc-smoothly-input-date-range-h>section.sc-smoothly-input-date-range{display:flex;width:100%;background-color:var(--smoothly-input-background);border-radius:0.25rem;cursor:pointer}.sc-smoothly-input-date-range-h>section.sc-smoothly-input-date-range>smoothly-input.sc-smoothly-input-date-range{min-width:15rem;width:100%;background-color:transparent;--input-min-height:calc(var(--input-min-height) - 2px)}.sc-smoothly-input-date-range-h>section.sc-smoothly-input-date-range>span.sc-smoothly-input-date-range{padding:0.5em 0.2em 0.5em 0.2em;align-self:center}.sc-smoothly-input-date-range-h>span.icons.sc-smoothly-input-date-range{display:flex;flex-direction:row;align-items:center}";
|
|
9525
|
+
const SmoothlyInputDateRangeStyle0 = styleCss$P;
|
|
9556
9526
|
|
|
9557
9527
|
const SmoothlyInputDateRange = class {
|
|
9558
9528
|
constructor(hostRef) {
|
|
@@ -9648,12 +9618,12 @@ const SmoothlyInputDateRange = class {
|
|
|
9648
9618
|
}
|
|
9649
9619
|
render() {
|
|
9650
9620
|
const locale = navigator.language;
|
|
9651
|
-
return (index.h(index.Host, { key: '
|
|
9621
|
+
return (index.h(index.Host, { key: '2e8c505b46587906c275c87e0af9632050377e6f', tabindex: 0 }, index.h("section", { key: '56f3f315fa60e4b6d7230697901f3d34a60fe6b1', onClick: () => !this.readonly && (this.open = !this.open) }, index.h("smoothly-input", { key: '09e0e316a5f498ea0fe99cb0ca12a5033dccba3c', type: "text", name: "dateRangeInput", readonly: this.readonly, value: this.start && this.end
|
|
9652
9622
|
? `${format(this.start, "date", locale)} — ${format(this.end, "date", locale)}`
|
|
9653
9623
|
: undefined, invalid: this.invalid, placeholder: this.placeholder, showLabel: this.showLabel, onSmoothlyInput: e => {
|
|
9654
9624
|
e.stopPropagation();
|
|
9655
9625
|
this.inputHandler(e.detail);
|
|
9656
|
-
} }, index.h("slot", { key: '
|
|
9626
|
+
} }, index.h("slot", { key: 'a80798ad483cc7bf3c941d661e0da713f7905646' }))), index.h("span", { key: '1cc09e3db78b7cb703783115cad043f63066d0a3', class: "icons" }, index.h("slot", { key: 'dd11c58b1f8a99ee26641bc6b716daa0d619a469', name: "end" })), this.open && (index.h("nav", { key: '4adfdcf4721a35794cff32cdc944c5fe3c6d1de9' }, index.h("smoothly-calendar", { key: '6fe6d33dded81926a71c964126b6f405e673c469', doubleInput: true, onSmoothlyValueChange: e => e.stopPropagation(), onSmoothlyStartChange: e => {
|
|
9657
9627
|
e.stopPropagation();
|
|
9658
9628
|
this.start = e.detail;
|
|
9659
9629
|
}, onSmoothlyEndChange: e => {
|
|
@@ -9674,8 +9644,8 @@ const SmoothlyInputDateRange = class {
|
|
|
9674
9644
|
};
|
|
9675
9645
|
SmoothlyInputDateRange.style = SmoothlyInputDateRangeStyle0;
|
|
9676
9646
|
|
|
9677
|
-
const styleCss$
|
|
9678
|
-
const SmoothlyInputDemoStyle0 = styleCss$
|
|
9647
|
+
const styleCss$O = ".sc-smoothly-input-demo-h{display:flex;flex-direction:column;margin-top:2em;margin-bottom:10rem}smoothly-input-demo-standard.sc-smoothly-input-demo{margin-bottom:2rem}div.inputs.sc-smoothly-input-demo{margin:auto;width:50%}div.inputs.sc-smoothly-input-demo>h2.sc-smoothly-input-demo:not(:first-child){padding-top:3em;margin-top:3em;border-top:1px solid black}.checkbox-group.sc-smoothly-input-demo{display:flex;gap:1.5em;align-items:center;background-color:rgb(var(--smoothly-input-background))}.select-div.sc-smoothly-input-demo{display:flex;justify-content:space-between;gap:1em;flex-wrap:wrap}.select-div.sc-smoothly-input-demo>smoothly-color.sc-smoothly-input-demo>*.sc-smoothly-input-demo,.select-div.sc-smoothly-input-demo>*.sc-smoothly-input-demo{flex-basis:49%}";
|
|
9648
|
+
const SmoothlyInputDemoStyle0 = styleCss$O;
|
|
9679
9649
|
|
|
9680
9650
|
const SmoothlyInputDemo = class {
|
|
9681
9651
|
constructor(hostRef) {
|
|
@@ -9684,23 +9654,23 @@ const SmoothlyInputDemo = class {
|
|
|
9684
9654
|
this.alphanumeric = "!@##";
|
|
9685
9655
|
}
|
|
9686
9656
|
render() {
|
|
9687
|
-
return (index.h(index.Host, { key: '
|
|
9657
|
+
return (index.h(index.Host, { key: '2246e64ca0039a593a5e79c1b3cbec9f6cb61cd2' }, index.h("smoothly-input-demo-standard", { key: '2b37d1d772346558fc9877495c98ec484e443d24' }), index.h("div", { key: '989abdad396917b2bdfe9bc11140a1293546ac5c', class: "inputs" }, index.h("h2", { key: 'dcf89a34ee6e6397e5f714121724ef563dd3fd28' }, "Calendar"), index.h("smoothly-input-date", { key: '8e65b556c3fcf1a39323dd3a33d12a30b81e1dcd', name: "some-date" }, "Calendar"), index.h("h2", { key: '3cb4035f84892162377f96c19ee73680e03125d0' }, "Date Range"), index.h("smoothly-input-date-range", { key: '064bc75323dc8e65ba0676eb8c70c1a2f8a9b9d6', name: "testing", start: TimeZone.Date.now(), end: TimeZone.Date.nextMonth(TimeZone.Date.now()), min: "2021-10-01", max: "2025-01-31" }), index.h("smoothly-input-date-range", { key: 'ae142e649ad82d43e4f1b8cb465ced91a58350e5', name: "testing", start: TimeZone.Date.now(), end: TimeZone.Date.nextMonth(TimeZone.Date.now()), min: "2021-10-10", max: "2024-12-30" }, index.h("smoothly-input-reset", { key: 'd3363179e7f9bff0745df55aa55861f75741b2fb', slot: "end", size: "icon" })), index.h("smoothly-input-date-range", { key: '4000f0d117f23321ed547f563d3480d7c4630cf3', looks: "grid", start: TimeZone.Date.now(), end: TimeZone.Date.nextMonth(TimeZone.Date.now()), min: "2021-10-10", max: "2025-12-30", showLabel: false, style: {
|
|
9688
9658
|
"--smoothly-input-border-radius": "0.5rem",
|
|
9689
|
-
} }, index.h("smoothly-input-clear", { key: '
|
|
9659
|
+
} }, index.h("smoothly-input-clear", { key: 'da0845b453ca7c9a74ac953f88730320d62f8f29', slot: "end", size: "icon" })), index.h("h2", { key: '28cf510595b361e9193e7d1770b3cf0d55595083' }, "Date"), index.h("smoothly-input-date", { key: '3de03030bcec5baf9361b3bbb5af388169a596f0' }, "Date"), index.h("smoothly-input-date", { key: '086585a5f1059372089e8c8ce95bbc6dd350f43a', showLabel: false, value: "2021-10-28", max: "2021-12-30", min: "2021-10-10" }, "Date"), index.h("smoothly-input-date", { key: '6da09b55f2b5dfb95dc08b330c6885f0f79649be', value: "2021-10-28" }, "Date", index.h("smoothly-input-reset", { key: 'bf5060f5877a64db06fb01b1b64f8eaee99814e6', slot: "end", size: "icon" })), index.h("smoothly-input-date", { key: '56de828757eb015c17065914a4ee54ed0d36879e', value: "2021-10-28" }, "Date", index.h("smoothly-input-clear", { key: '98396400e48fce1ec11b78e533c05f1e78663fba', slot: "end", size: "icon" })), index.h("h2", { key: '4ee32f44346c24d6221af7fd6459ffaf79f17add' }, "Select"), index.h("div", { key: '3d59b743af200f5af22c96cc2ba5dd40a4833bf0', class: "select-div" }, index.h("smoothly-input-select", { key: '87361abaf048809adb5feb041175652e966750ff', name: "select-dessert", looks: "border" }, index.h("label", { key: '89bb70bbd9d666f4f06d3d9dc3a52e226fc313ed', slot: "label" }, "Select with clear button"), index.h("smoothly-item", { key: '02da82218453add4004d7540dfb649b216db39a4', value: "1" }, "Ice cream"), index.h("smoothly-item", { key: '07fa67c7f191ed17838faded52c17596c33193a5', value: "2" }, "Sponge cake"), index.h("smoothly-item", { key: '763e38c41ca9573c4e1c24e1ecaaf2fe2058cd06', value: "3", disabled: true }, "Disabled Item"), index.h("smoothly-item", { key: '99a7d6d917fec0e472b56258244ec71b54ad169d', value: "4" }, "Cookie"), index.h("smoothly-item", { key: 'f570819e108519b81cfb82e52c41b73b5d4f48d5', value: "5" }, "Croissant"), index.h("smoothly-item", { key: '4f0774466b0bfa42dc5b8505acacdbcef3349fd6', value: "6" }, "Chocolate fondue"), index.h("smoothly-input-clear", { key: '06273b8350dc715553ae497082c4dc1b7a389319', size: "icon", slot: "end" })), index.h("smoothly-input-select", { key: '4dde96a80a23c0e1f23e2e1b6046864b35e5b8c9', multiple: true, name: "select-dessert-multiple", looks: "border" }, index.h("label", { key: 'de59c8f6721e5017a9453e135fa13802121889e2', slot: "label" }, "Select multiple with reset button"), index.h("smoothly-item", { key: '3a64640ee2a8cea53b5c1f072681907013909289', value: "ice cream" }, "Ice cream"), index.h("smoothly-item", { key: '5f6c0ac3a1e4bfe54913c0fb859e531564651c30', value: "sponge cake" }, "Sponge cake"), index.h("smoothly-item", { key: '254e618bf4f3eeb158d4e605a3264508af1ca4e0', selected: true, value: "cookie" }, "Cookie"), index.h("smoothly-item", { key: 'eb7fc43a664c7ae8301772bc843b2207dec0a0f5', value: "croissant" }, "Croissant"), index.h("smoothly-item", { key: '8b1e6c19edd6b069ca4e91f6d564e5d658a465ba', selected: true, value: "chocolate fondue" }, "Chocolate fondue"), index.h("smoothly-input-reset", { key: '7008f3aaa631954f12d11caebf66636efc83673e', size: "icon", slot: "end" })), index.h("smoothly-input-select", { key: '2e186069d445222f213ff973d5dd6faa428868a3', name: "spirit-animals", looks: "border", mutable: true }, index.h("label", { key: '0628ed3c08639eac2cce4ac94884a9a63b93eb2a', slot: "label" }, "Select or add new options"), index.h("smoothly-item", { key: '80de67a9b068fb7e60068c6e14ce4b50ec686408', value: "manatee" }, "Manatee"), index.h("smoothly-item", { key: 'e87b478d6d04f1aa9eb076667b5b92d7c97da371', selected: true, value: "cthulu" }, "Cthulu")), index.h("smoothly-input-select", { key: 'e9bf36baedbb296c8bef5aeecded8c933708186e', name: "select-icon", clearable: false, showSelected: false }, index.h("smoothly-item", { key: 'f69168796d350c9bb0549ba66159f2324ed7d641', value: "folder", selected: true }, index.h("smoothly-icon", { key: 'c1dc8699652a2964af9e59f857ee6aed811ebcc3', size: "small", name: "folder-outline" })), index.h("smoothly-item", { key: '42235a47c44cb36945e009258852123ec24c0e3c', value: "camera" }, index.h("smoothly-icon", { key: 'e4d4370e712660a56866ef6a56909c1fc13ddbd9', size: "small", name: "camera-outline" }))), index.h("smoothly-input-select", { key: 'f8bb5ab1ae61724510f197d2508f580ff9f2d803', ordered: true, menuHeight: "7.5items", placeholder: "Select...", name: "select-month" }, index.h("label", { key: '4465f00632cdea82f17f25c55c88b6f9617626d0', slot: "label" }, "Alphabet ordered select"), Array.from({ length: 26 })
|
|
9690
9660
|
.map((_, i) => String.fromCharCode(i + 65))
|
|
9691
|
-
.map(char => (index.h("smoothly-item", { value: char, selected: char == "H" }, char)))), index.h("smoothly-input-select", { key: '
|
|
9661
|
+
.map(char => (index.h("smoothly-item", { value: char, selected: char == "H" }, char)))), index.h("smoothly-input-select", { key: 'ca20e04f28b44a43ec6c82224000d37569a4fd73', multiple: true, menuHeight: "7.5items", placeholder: "Select...", name: "select-month" }, index.h("label", { key: '80c630f64f89b562ebe2d24191fb8b83f0c62d97', slot: "label" }, "Month multiple select"), index.h("smoothly-item", { key: 'd340b3b9d21819109c7a35684db9ff08ad9e578e', value: "1" }, "January"), index.h("smoothly-item", { key: 'a13d72f788c8cf6a5766afc35be2d07b35462459', value: "2" }, "February"), index.h("smoothly-item", { key: '92654e2c8018d4d5e9fe4a0635cbf0f3b9c78c9f', value: "3" }, "March"), index.h("smoothly-item", { key: '00462ca4544ba9e745e634c7d8c38339d8885105', value: "4" }, "April"), index.h("smoothly-item", { key: '94a413e7323347e17d853e69a8e09d4c5dd3a31e', value: "5" }, "May"), index.h("smoothly-item", { key: 'e5bf44718b1d6745706ec1b5cbec379e9f18455c', value: "6" }, "June"), index.h("smoothly-item", { key: '7949c2017dd026ff8d822ca8203af3d06809561d', value: "7" }, "July"), index.h("smoothly-item", { key: 'dbefc27eb9c51b72513b8c0a3716984b2cf3bbda', value: "8" }, "August"), index.h("smoothly-item", { key: '6acc28561cfafcaaed68ca73d72ea4eab9b842ed', value: "9" }, "September"), index.h("smoothly-item", { key: 'c738376274d3e2d06c905ec2a1e0bcb0036a0bba', value: "10" }, "October"), index.h("smoothly-item", { key: '492b1b3e17674e88e73511d2e6f23a65c604d8bf', value: "11" }, "November"), index.h("smoothly-item", { key: '80f4ee0c7f048c42540d0935fdf87592a1517364', value: "12" }, "December"))), index.h("h2", { key: '874812121057cd11b6f798c6231ab2cc53f4f198' }, "Duration"), index.h("smoothly-input", { key: '3d2b537c6a23dbdbad77002fe505a94f6ff48e41', name: "duration", type: "duration", placeholder: "hh:mm", value: this.duration, onSmoothlyInput: e => {
|
|
9692
9662
|
const duration = e.detail.duration;
|
|
9693
9663
|
this.duration = duration;
|
|
9694
|
-
} }, "Duration"), index.h("smoothly-input", { key: '
|
|
9664
|
+
} }, "Duration"), index.h("smoothly-input", { key: '31c69494b9b20b04abe2cf57ccb7d695fde2381c', name: "duration", type: "duration", value: this.duration, placeholder: "-hh:mm", onSmoothlyInput: e => {
|
|
9695
9665
|
const duration = e.detail.duration;
|
|
9696
9666
|
this.duration = duration;
|
|
9697
|
-
} }, "Duration"), index.h("h2", { key: '
|
|
9667
|
+
} }, "Duration"), index.h("h2", { key: 'c78d1b06ae1e9aef1d786b39af91982684eb3452' }, "Invalid text with warning icon and tooltip"), index.h("smoothly-input", { key: '456ab898aaf6b4d269b6f0b9d48d7349948686e6', name: "alphanumeric", invalid: !/^[a-zA-Z0-9]+$/.test(this.alphanumeric), errorMessage: "Only alphanumeric allowed", value: this.alphanumeric, onSmoothlyInput: e => (this.alphanumeric = e.detail.alphanumeric) }, "Alphanumeric"), index.h("h2", { key: 'a288aa3df39fb19ca0d44827e1d7c0489610e046' }, "Identifiers"), index.h("smoothly-input", { key: 'fe3d08d9a64ba2baeb706ea0ab9c053e968f885f', type: "identifier-code" }, "Code"), index.h("smoothly-input", { key: '59b666e5146da44a7a79f60bb7e3b67ca5975e3e', type: "identifier-attribute" }, "Attribute"), index.h("smoothly-input", { key: '29a8e3906080c7e47a8502635600ae11747929ce', type: "identifier-snake" }, "Snake"), index.h("smoothly-input", { key: 'd896ec7d737f28f1e00d6d30e00106b33e918305', type: "identifier-pascal" }, "Pascal"), index.h("smoothly-input", { key: 'c899e4975f7916fd068727f42f5ddc25cc6bd4b5', type: "identifier-camel" }, "Camel"), index.h("h2", { key: '1a3092bcdcce85823d114d8f037d61869d52e137' }, "Input Alternatives"), index.h("smoothly-input", { key: '01ade0834ed5f9c9b69649f25cf5b4090a8f9d2a', type: "text", name: "name.last", onSmoothlyChange: e => console.log("smoothly change event") }, index.h("smoothly-icon", { key: '47050c61b2662c446140967a16adcb768507ad8b', name: "checkmark-circle", slot: "start" }), "First Name"), index.h("smoothly-input", { key: 'd36e063bced5df59acb62a3108f5bc217d1326c9', type: "text", name: "name.first", onSmoothlyChange: e => console.log("smoothly change event") }, "Last Name", index.h("smoothly-icon", { key: '28b224587ef722ea922597e69a379bef898ad9bf', name: "checkmark-circle", slot: "end" })), index.h("smoothly-input", { key: '2fd68628f6a00015e8b5ba4e78352d2d30c7246a', type: "text", name: "name.first", placeholder: "Smith", onSmoothlyChange: e => console.log("smoothly change event") }, "Last Name", index.h("smoothly-icon", { key: '7f74440964fb216aa3c14c404339b4aa44c1797d', name: "checkmark-circle", slot: "end" })), index.h("smoothly-input", { key: '3b1ec4027204c9aac3a814e1f62a5e821bb852b0', placeholder: "test" }), index.h("smoothly-input-submit", { key: '2d9d1ee5cd2b640b378a1ee800e8dad5d775afe7', slot: "submit", fill: "solid", onSubmit: (e) => alert(e), color: "success" }), index.h("h4", { key: '90733510058253ced88e37e97780512b18a66c92' }, "Smoothly checkboxes"), index.h("div", { key: '0124ec0d8e5245e21c38eb9056175d5175621993', class: "checkbox-group" }, index.h("smoothly-input-checkbox", { key: 'ad6be760e89dfdb226ae9aeb1d5726f16d575b91', disabled: true, name: "first-checkbox" }, index.h("smoothly-icon", { key: '8349bfee0a762f279cdc0e08321af501991f5100', name: "checkmark-circle", slot: "start", size: "tiny" }), "First"), index.h("smoothly-input-checkbox", { key: '9c8c65645ae8c46a5ac5416da7c0e2c93ac54918', name: "second-checkbox", checked: true }, index.h("smoothly-icon", { key: 'fd5437c763c6d19b03923e3a474998f97f66789e', name: "checkmark-circle", slot: "start", size: "tiny" }), "second", index.h("smoothly-input-clear", { key: 'fe55422ed81149ae681eafcabb4e3fa9538831c5', size: "icon", slot: "end" })), index.h("smoothly-input-checkbox", { key: '7eb94c9402938aaa6ae67c6b3cdda5c92fd08580', name: "third-checkbox" }, "3rd")), index.h("h4", { key: 'ea87736ccbee320b096f4856aa3bcbc88426c41b' }, "Smoothly Radio Buttons"), index.h("smoothly-input-radio", { key: 'f15efe64ad577865edfd6823a77c86ef19321944', clearable: true, name: "radioFirstInput" }, index.h("smoothly-icon", { key: '96d19316c599bfd226f79d3afa09b6c8100e15b2', name: "checkmark-circle", slot: "start" }), index.h("label", { key: '4880b44d7c7a2cda25dc24891c0d02a630a1e98f', slot: "label" }, "Clearable"), index.h("smoothly-input-radio-item", { key: 'e96d2728250a0f8e5d7321ee9ed0d901f243594c', value: "first" }, "Label 1"), index.h("smoothly-input-radio-item", { key: '57a67b7245bac10e31f0c6d884ca9b46116096d2', selected: true, value: "second" }, "Label 2"), index.h("smoothly-input-radio-item", { key: 'e6330920c699220a2d61a370d4f327a39a93f17d', value: "third" }, "Label 3"), index.h("smoothly-input-clear", { key: 'b566620fb4415749caafaca8c208da5291074c02', size: "icon", slot: "end" })), index.h("smoothly-input-radio", { key: '04467ea359d66dff2f6973dbeb300ce54782fdf7', name: "radioSecondInput" }, index.h("label", { key: '2e18a368bbcd42e8737a60b60fc5ab3d9527feb3', slot: "label" }, "Not clearable"), index.h("smoothly-input-radio-item", { key: '140611cc263911444b883d410b08fad76938155f', value: "first" }, "Label 1"), index.h("smoothly-input-radio-item", { key: '010289b81070c333efcef882ba7d220b070757aa', value: "second" }, "Label 2"), index.h("smoothly-input-radio-item", { key: 'a58baa64c37c6ac6677169b966268fbf04273e7d', value: "third" }, "Label 3"), index.h("smoothly-input-radio-item", { key: 'f6c20d76e67d2da0e24e8e485d05b63e03dcba55', value: "fourth" }, "Label 4"), index.h("smoothly-input-radio-item", { key: '5e5c3fe6d6b959096f04dfa6366884c572d2a47b', value: "fifth" }, "Label 5"), index.h("smoothly-input-radio-item", { key: 'eaa815e3e36181813b96fd0940c6f082a86b3b1a', value: "sixth" }, "Label 6")), index.h("smoothly-input-range-demo", { key: '998301695517a9138d1442fdf4bded2dc847bcb3' }), index.h("smoothly-input-color-demo", { key: 'fd4c2a0541985a79861c6ddab8eae7cf1788827c' }), index.h("smoothly-input-price-demo", { key: '96b937a0faf4d3d973ac594ede823a3f260a8872' }), index.h("smoothly-back-to-top", { key: '003390fcc7cfacbda5778522eaa60f691348ad09' }))));
|
|
9698
9668
|
}
|
|
9699
9669
|
};
|
|
9700
9670
|
SmoothlyInputDemo.style = SmoothlyInputDemoStyle0;
|
|
9701
9671
|
|
|
9702
|
-
const styleCss$
|
|
9703
|
-
const SmoothlyInputDemoStandardStyle0 = styleCss$
|
|
9672
|
+
const styleCss$N = ".sc-smoothly-input-demo-standard-h{width:50%;margin:auto}.sc-smoothly-input-demo-standard-h h2.sc-smoothly-input-demo-standard,.sc-smoothly-input-demo-standard-h p.sc-smoothly-input-demo-standard{margin:.5rem 0}div.input-wrapper.sc-smoothly-input-demo-standard{display:grid;margin-top:1rem;grid-template-columns:2fr 1fr;gap:1rem;position:relative;justify-content:space-around}div.input-wrapper.sc-smoothly-input-demo-standard>[name].sc-smoothly-input-demo-standard{grid-column:1 / 2}div.input-wrapper.sc-smoothly-input-demo-standard>.width.sc-smoothly-input-demo-standard{width:100%;text-align:center;border-bottom:1px dashed black}div.input-wrapper.sc-smoothly-input-demo-standard>.height.sc-smoothly-input-demo-standard{align-content:center;grid-column:2 / 3;border-left:1px dashed black;padding-left:1rem;content:\"hello\"}div.input-wrapper.sc-smoothly-input-demo-standard>.left-padding.sc-smoothly-input-demo-standard{width:0.5rem;grid-column:1 / 2;white-space:nowrap;overflow:visible;position:relative;cursor:default}div.input-wrapper.sc-smoothly-input-demo-standard>.left-padding.sc-smoothly-input-demo-standard::before{content:\"\";position:absolute;width:100%;top:1.5rem;bottom:-1rem;border:1px dashed black;z-index:2}div.input-wrapper.sc-smoothly-input-demo-standard>.left-padding.sc-smoothly-input-demo-standard:hover::before{bottom:-100vh}.vertical.sc-smoothly-input-demo-standard-h{width:100%;row-gap:0;position:relative}.vertical.sc-smoothly-input-demo-standard-h>div.input-wrapper.sc-smoothly-input-demo-standard{display:grid;grid-template-columns:repeat(auto-fill, 14rem);gap:.5rem}.vertical.sc-smoothly-input-demo-standard-h>div.input-wrapper.sc-smoothly-input-demo-standard>.width.sc-smoothly-input-demo-standard,.vertical.sc-smoothly-input-demo-standard-h>div.input-wrapper.sc-smoothly-input-demo-standard>.height.sc-smoothly-input-demo-standard,.vertical.sc-smoothly-input-demo-standard-h>div.input-wrapper.sc-smoothly-input-demo-standard>.left-padding.sc-smoothly-input-demo-standard{display:none}.vertical.sc-smoothly-input-demo-standard-h>div.input-wrapper.sc-smoothly-input-demo-standard>.guide-lines.sc-smoothly-input-demo-standard::before,.vertical.sc-smoothly-input-demo-standard-h>div.input-wrapper.sc-smoothly-input-demo-standard>.guide-lines.sc-smoothly-input-demo-standard::after{content:\"\";pointer-events:none;right:0;width:100vw;position:absolute;z-index:2;border-top:1px dotted black}.sc-smoothly-input-demo-standard-h:not(.vertical) .guide-lines.sc-smoothly-input-demo-standard{display:none}.guide-lines.sc-smoothly-input-demo-standard{text-align:end;justify-self:center;align-content:center}.guide-lines.sc-smoothly-input-demo-standard::before{top:1rem}.guide-lines.sc-smoothly-input-demo-standard::after{top:2rem}.guide-lines.show-label.sc-smoothly-input-demo-standard::before{top:1.05rem}.guide-lines.show-label.sc-smoothly-input-demo-standard::after{top:2.3rem}";
|
|
9673
|
+
const SmoothlyInputDemoStandardStyle0 = styleCss$N;
|
|
9704
9674
|
|
|
9705
9675
|
const SmoothlyInputDemoStandard = class {
|
|
9706
9676
|
constructor(hostRef) {
|
|
@@ -9723,14 +9693,14 @@ const SmoothlyInputDemoStandard = class {
|
|
|
9723
9693
|
}
|
|
9724
9694
|
render() {
|
|
9725
9695
|
const placeholder = this.options.placeholder ? "placeholder" : undefined;
|
|
9726
|
-
return (index.h(index.Host, { key: '
|
|
9696
|
+
return (index.h(index.Host, { key: '8aa962825e1296bc628efec4e466e73715befd1b', class: { vertical: !!this.options.vertical } }, index.h("div", { key: 'd004d304e08c6e9605ae8cd84cbdcdbd28bd65b6', class: "description" }, index.h("h2", { key: 'f0a699835b1f30ee8c298f5bd5857f18ec9dc3f9' }, "Input Standard"), index.h("p", { key: '90f851dfe136ddc107be8447aa19458b10bd37a8' }, "Height of input should be ", index.h("code", { key: '7b14060b78e3cfa06b2a756b2e9288e043e83c54' }, "3rem"), " including border. This is should result in a 48 pixel height at 100% zoom, assuming a root font-size of 16 pixels."), index.h("smoothly-form", { key: '9b3bd231a424364e3a87dc6e6145ffcb4ed47394', looks: "grid", onSmoothlyFormInput: (e) => (this.options = e.detail) }, index.h("smoothly-input-select", { key: '54b8fa969d6d1108c114f438c0aca8c574bef74b', name: "looks" }, index.h("span", { key: '6b62373be4425c189ca8be7949da8f5bcfd0d0cc', slot: "label" }, "Looks"), Looks.types.map(l => (index.h("smoothly-item", { value: l }, l)))), index.h("smoothly-input-checkbox", { key: 'cc7bb8fb80875792a1eda791f60a70f1c8ff39b3', name: "readonly" }, "Readonly"), index.h("smoothly-input-select", { key: 'c53a28283995a2c5c4d174d0e963c281a4e33141', name: "color" }, index.h("span", { key: '16a0a65fd6e304362cfdbe5d39fbd0a5f362692c', slot: "label" }, "Color"), Scrollable.Color.types.map(c => (index.h("smoothly-item", { value: c }, index.h("span", { color: c }, c)))), index.h("smoothly-input-clear", { key: '0cd4c64c1c5ad7d1bb54b61030a7dd756b2b8b94', slot: "end" })), index.h("smoothly-input-checkbox", { key: 'd59a8d9c710c83ca79499d2a70ed599c6b1568cd', name: "vertical" }, "Vertical Layout"), index.h("smoothly-input-checkbox", { key: '4f9803054d9d25bd3335ef2965f4830b4f0fef54', name: "showLabel", checked: true }, "Show Label"), index.h("smoothly-input-checkbox", { key: '86c40006e0c436bceeb129d88de77ab1501c6403', name: "placeholder" }, "Placeholder"), index.h("smoothly-input-checkbox", { key: 'e38283c71a325e31610b99ed77cd3e5db5038aac', name: "invalid" }, "Invalid"), index.h("smoothly-input", { key: '9762940e6e1343c873ba98a347f382e89d989989', name: "errorMessage", value: "This is not a valid value" }, "Error Message"), index.h("smoothly-input-range", { key: '491915006bfecd91e5d02a3cfbb9cdb349e9bfb3', label: "Border Radius (rem)", name: "borderRadius", min: 0, max: 2, step: 0.25 }))), index.h("div", { key: '79a53b405704bde4894bfc39b42ba542e7bcefd7', class: "input-wrapper", style: { "--smoothly-input-border-radius": `${this.options.borderRadius}rem` } }, index.h("div", { key: '71ca3058464f4340ad7405bf1f14d694c80e2d9e', class: "width" }, "100%"), index.h("div", { key: '4d38bf2fba9ac79d6087a4a44e5a6a0265433b81', class: "left-padding" }, "0.5rem - left padding"), index.h("smoothly-input", { key: '907cb200b3af2b0363e7e50fde286863001d6208', name: "text", looks: this.options.looks, placeholder: placeholder, invalid: this.options.invalid, errorMessage: this.options.errorMessage, readonly: this.options.readonly, color: this.options.color, showLabel: this.options.showLabel }, this.options.showLabel && index.h("span", { key: '69af29497810d5c7b195a4797761b45a8f224d7a' }, "Text"), index.h("smoothly-input-clear", { key: '8751d3657c11032ed42cdcf7f3239da486b6bcdd', slot: "end" })), index.h("div", { key: '22b7282d29aacf0a3b1dfb3f76ffe99730339ae9', class: "height" }), index.h("smoothly-input-select", { key: 'e7d9d9055412561857757486ff2fb6a1bc59c0eb', name: "month", looks: this.options.looks, placeholder: placeholder, invalid: this.options.invalid, errorMessage: this.options.errorMessage, readonly: this.options.readonly, color: this.options.color }, this.options.showLabel && index.h("label", { key: '8acc4518e88a106a0de0ebe28c3a923dcc455386', slot: "label" }, "Select"), index.h("smoothly-item", { key: '301a4a9552ec2eef9a4f928936b18f7e9107b114', value: "1" }, "January"), index.h("smoothly-item", { key: '57f95a521973fbdc622d48c28408cd0e02427335', value: "2" }, "February"), index.h("smoothly-item", { key: 'bc63e7735e9f28ab454c74b0d98b19935271dd6d', value: "3" }, "March"), index.h("smoothly-item", { key: '770f4809ffdb1cc07bd05eddb42d8f17efaf9e5c', value: "4" }, "April"), index.h("smoothly-item", { key: 'eed7814fce0a090e06a938542b0fb96b4c8775f0', value: "5" }, "May"), index.h("smoothly-item", { key: 'd6fcb6315460e3123f542a9aa086dae4bb9980c5', value: "6" }, "June"), index.h("smoothly-item", { key: '4783ef4199a920611a47123a07743a198b55377c', value: "7" }, "July"), index.h("smoothly-item", { key: '0908adb55342eac905135e34333e3d916c71c42e', value: "8" }, "August"), index.h("smoothly-item", { key: 'b3fc187f94aa343a52fb2a5d758e43ada204f9ff', value: "9" }, "September"), index.h("smoothly-item", { key: '804fd1ff43714501f9dc6b0de1da6cb0392ba67c', value: "10" }, "October"), index.h("smoothly-item", { key: '290ae89e5a1a5e234549f1f1904fd1b8c932b964', value: "11" }, "November"), index.h("smoothly-item", { key: '19b2be273bb59ce6af74dabb5f9e4ff258b9ec77', value: "12" }, "December"), index.h("smoothly-input-clear", { key: '01cbd8563a82294e3da345533e97ed7a1b85b67e', slot: "end" })), index.h("div", { key: '261af67d8483de7ee3dc0f4963f886f48ee084cc', class: "height" }), index.h("smoothly-input-checkbox", { key: '8303ba24923b9b8b13447c046a2fa65aa0ec7893', looks: this.options.looks, readonly: this.options.readonly, color: this.options.color }, "Check"), index.h("div", { key: 'd33115b084716cb5ab4023e449033433775b3a8d', class: "height" }), index.h("smoothly-input-radio", { key: 'b132cdd287ea663a32c23dd6e6e92b579f091369', name: "radio", clearable: true, looks: this.options.looks, readonly: this.options.readonly, color: this.options.color, showLabel: this.options.showLabel }, this.options.showLabel && index.h("label", { key: '1051e45c467687f6fb216e9ce7af9fe04cbe14aa', slot: "label" }, "Radio"), index.h("smoothly-input-radio-item", { key: 'b83a814d9680740524b8b761ffc512112c03d2b3', value: "first" }, "Label 1"), index.h("smoothly-input-radio-item", { key: '6e24dfbac9b60d36c4274016948e6a0cd18103da', selected: true, value: "second" }, "Label 2"), index.h("smoothly-input-radio-item", { key: '8f76e19046118064b9662de610b8ff968d9fdde9', value: "third" }, "Label 3"), index.h("smoothly-input-clear", { key: 'ccfdf6c463d8d234d938efb7593a44e4812f8a83', slot: "end" })), index.h("div", { key: '63364601805ef10a677e29c9499bcb1e9287749b', class: "height" }), index.h("smoothly-input-file", { key: '9d8f6c91e32abecfb6178ad5595168ceeec13ec2', looks: this.options.looks, readonly: this.options.readonly, color: this.options.color, placeholder: placeholder, showLabel: this.options.showLabel }, this.options.showLabel && index.h("span", { key: '6d9e22b67009eed740ae41b80b5c5a81ad312844', slot: "label" }, "File"), index.h("smoothly-input-clear", { key: 'ba253284acccf598554bd1edea6684e9a8ed8107', slot: "end" })), index.h("div", { key: '0bdaaef2fdfa1197d713d0abb3a543274e24edd3', class: "height" }), index.h("smoothly-input-range", { key: '9e11a15e31ad6bfa5e866be26071b7a16686564e', name: "range", label: this.options.showLabel ? "Range" : undefined, looks: this.options.looks, readonly: this.options.readonly, color: this.options.color }, index.h("smoothly-input-clear", { key: 'aa5ef09cc22d34cb0cb54aa4bba8c2f3e2edf6f0', slot: "end" })), index.h("div", { key: '0c2c975cc420ea562b9fa5e37f8172bae6157cbc', class: "height" }), index.h("smoothly-input-color", { key: '586c74561d71616595e4795d3f6aa7f23bc0af47', looks: this.options.looks, readonly: this.options.readonly, color: this.options.color, showLabel: this.options.showLabel }, this.options.showLabel && index.h("span", { key: '8f4363cb395c23be8c1a3a03bdde7d64d69ad64c' }, "Color"), index.h("smoothly-input-clear", { key: '9d4970454fb5abb1e62246f090a73dfd3199d14e', slot: "end" })), index.h("div", { key: '36677d790afbc98b62e40a6678bbaf7ef737bc70', class: "height" }), index.h("smoothly-input-date", { key: '6b2bbc3de13543759eafe8c299ee6cda99be391a', looks: this.options.looks, readonly: this.options.readonly, invalid: this.options.invalid, color: this.options.color, showLabel: this.options.showLabel }, this.options.showLabel && index.h("span", { key: '3c0a34d0f8ea7740578feabab28e27529c4ad5ad' }, "Date"), index.h("smoothly-input-clear", { key: 'acb02b016be386b131befeaa45cccef12552e2bc', slot: "end" })), index.h("div", { key: '5cf261fe94cc224e97c50162a6ae3727290b8c4b', class: "height" }), index.h("smoothly-input-date-range", { key: 'd07d21a86113aea4de043971d5599ddf8035dcb4', looks: this.options.looks, readonly: this.options.readonly, invalid: this.options.invalid, color: this.options.color, placeholder: placeholder, showLabel: this.options.showLabel }, this.options.showLabel && index.h("span", { key: '946be83c640174bcf22bbe47321eaaa427491516' }, "Date Range"), index.h("smoothly-input-clear", { key: '05f482e1aa4b473072e22158fb43c468e571a900', slot: "end" })), index.h("div", { key: '9e3746b294fd0414c0a470c6409b7deeb05cfd08', class: "height" }), index.h("div", { key: 'ce5e5210cbdb0df00a2aad7d0b3240abc474f507', class: { "guide-lines": true, "show-label": !!this.options.showLabel } }, this.options.showLabel ? "Aligned labels & values" : "Center values"))));
|
|
9727
9697
|
}
|
|
9728
9698
|
get element() { return index.getElement(this); }
|
|
9729
9699
|
};
|
|
9730
9700
|
SmoothlyInputDemoStandard.style = SmoothlyInputDemoStandardStyle0;
|
|
9731
9701
|
|
|
9732
|
-
const styleCss$
|
|
9733
|
-
const SmoothlyInputEditStyle0 = styleCss$
|
|
9702
|
+
const styleCss$M = "[color=default].sc-smoothly-input-edit{--smoothly-color:var(--smoothly-default-color);--smoothly-color-contrast:var(--smoothly-default-contrast);--smoothly-color-shade:var(--smoothly-default-shade);--smoothly-color-tint:var(--smoothly-default-tint)}[color=primary].sc-smoothly-input-edit{--smoothly-color:var(--smoothly-primary-color);--smoothly-color-contrast:var(--smoothly-primary-contrast);--smoothly-color-shade:var(--smoothly-primary-shade);--smoothly-color-tint:var(--smoothly-primary-tint)}[color=secondary].sc-smoothly-input-edit{--smoothly-color:var(--smoothly-secondary-color);--smoothly-color-contrast:var(--smoothly-secondary-contrast);--smoothly-color-shade:var(--smoothly-secondary-shade);--smoothly-color-tint:var(--smoothly-secondary-tint)}[color=tertiary].sc-smoothly-input-edit{--smoothly-color:var(--smoothly-tertiary-color);--smoothly-color-contrast:var(--smoothly-tertiary-contrast);--smoothly-color-shade:var(--smoothly-tertiary-shade);--smoothly-color-tint:var(--smoothly-tertiary-tint)}[color=success].sc-smoothly-input-edit{--smoothly-color:var(--smoothly-success-color);--smoothly-color-contrast:var(--smoothly-success-contrast);--smoothly-color-shade:var(--smoothly-success-shade);--smoothly-color-tint:var(--smoothly-success-tint)}[color=warning].sc-smoothly-input-edit{--smoothly-color:var(--smoothly-warning-color);--smoothly-color-contrast:var(--smoothly-warning-contrast);--smoothly-color-shade:var(--smoothly-warning-shade);--smoothly-color-tint:var(--smoothly-warning-tint)}[color=danger].sc-smoothly-input-edit{--smoothly-color:var(--smoothly-danger-color);--smoothly-color-contrast:var(--smoothly-danger-contrast);--smoothly-color-shade:var(--smoothly-danger-shade);--smoothly-color-tint:var(--smoothly-danger-tint)}[color=light].sc-smoothly-input-edit{--smoothly-color:var(--smoothly-light-color);--smoothly-color-contrast:var(--smoothly-light-contrast);--smoothly-color-shade:var(--smoothly-light-shade);--smoothly-color-tint:var(--smoothly-light-tint)}[color=medium].sc-smoothly-input-edit{--smoothly-color:var(--smoothly-medium-color);--smoothly-color-contrast:var(--smoothly-medium-contrast);--smoothly-color-shade:var(--smoothly-medium-shade);--smoothly-color-tint:var(--smoothly-medium-tint)}[color=dark].sc-smoothly-input-edit{--smoothly-color:var(--smoothly-dark-color);--smoothly-color-contrast:var(--smoothly-dark-contrast);--smoothly-color-shade:var(--smoothly-dark-shade);--smoothly-color-tint:var(--smoothly-dark-tint)}.sc-smoothly-input-edit-h{--smoothly-button-border-radius:0.5rem;display:inline-block;box-sizing:border-box;border-radius:var(--smoothly-button-border-radius);cursor:pointer;border:none;outline:none;position:relative}[shape=rounded].sc-smoothly-input-edit-h{--smoothly-button-border-radius:2rem}[type=link].sc-smoothly-input-edit-h{display:inline}[disabled].sc-smoothly-input-edit-h{opacity:0.5;pointer-events:none}.sc-smoothly-input-edit-h>a.sc-smoothly-input-edit,.sc-smoothly-input-edit-h>button.sc-smoothly-input-edit{font-size:110%;font-weight:400;border:1px solid transparent;outline:none;background-color:transparent;cursor:pointer;display:inline-flex;gap:0.5rem;box-sizing:border-box}.sc-smoothly-input-edit-h>a.sc-smoothly-input-edit:empty,.sc-smoothly-input-edit-h>button.sc-smoothly-input-edit:empty{border-width:0}.sc-smoothly-input-edit-h>button.sc-smoothly-input-edit{font-weight:bold;justify-content:center;height:100%;width:100%;border-radius:var(--smoothly-button-border-radius);align-items:center}.sc-smoothly-input-edit-h:not([size=icon]):not([size=flexible])>button.sc-smoothly-input-edit{padding:0.8em;min-width:8em}.sc-smoothly-input-edit-h:not([size=icon]):not([size=flexible]):has(smoothly-icon)>button.sc-smoothly-input-edit{padding:0.6em}[size=icon].sc-smoothly-input-edit-h>button.sc-smoothly-input-edit{padding:0.5em}[type=button].sc-smoothly-input-edit-h>a.sc-smoothly-input-edit{text-align:center;text-decoration:inherit;width:calc(100% - 0.6em)}[size=small].sc-smoothly-input-edit-h>button.sc-smoothly-input-edit{font-size:100%}[size=large].sc-smoothly-input-edit-h>button.sc-smoothly-input-edit{font-size:130%}.sc-smoothly-input-edit-h:not([size=icon]){min-width:8em}[size=flexible].sc-smoothly-input-edit-h{min-width:unset;padding:0;margin:0;display:flex;justify-content:center;align-items:center}[size=flexible].sc-smoothly-input-edit-h>button.sc-smoothly-input-edit{min-width:unset;padding:0;margin:0}[expand].sc-smoothly-input-edit-h{width:100%}[expand=full].sc-smoothly-input-edit-h{border-left:none;border-right:none;--smoothly-button-border-radius:0}[fill=outline].sc-smoothly-input-edit-h>button.sc-smoothly-input-edit{background-color:transparent;color:rgb(var(--smoothly-button-foreground));fill:rgb(var(--smoothly-button-foreground));stroke:rgb(var(--smoothly-button-foreground));border-color:rgb(var(--smoothly-button-foreground))}.sc-smoothly-input-edit-h:not([fill=clear])>button.sc-smoothly-input-edit:hover,.sc-smoothly-input-edit-h>button.sc-smoothly-input-edit:focus-visible,[fill=outline].sc-smoothly-input-edit-h:active>button.sc-smoothly-input-edit::before{border-color:rgb(var(--smoothly-button-focus-color))}[fill=outline].sc-smoothly-input-edit-h>button.sc-smoothly-input-edit:hover::before,[fill=outline].sc-smoothly-input-edit-h>button.sc-smoothly-input-edit:focus-within::before,[fill=outline].sc-smoothly-input-edit-h>button.sc-smoothly-input-edit:active::before{content:\"\";position:absolute;border:2px solid rgb(var(--smoothly-button-focus-border));inset:-1px;border-radius:var(--smoothly-button-border-radius)}.sc-smoothly-input-edit-h:not([fill=clear]):not([fill=outline])>button.sc-smoothly-input-edit:hover,.sc-smoothly-input-edit-h:not([fill=clear]):not([fill=outline])>button.sc-smoothly-input-edit:focus-visible,.sc-smoothly-input-edit-h:not([fill=clear]):not([fill=outline])>button.sc-smoothly-input-edit:active{background:rgb(var(--smoothly-button-hover-background))}.sc-smoothly-input-edit-h>button.sc-smoothly-input-edit,.sc-smoothly-input-edit-h.sc-smoothly-input-edit-s>smoothly-icon,.sc-smoothly-input-edit-h .sc-smoothly-input-edit-s>smoothly-icon{color:rgb(var(--smoothly-button-foreground));stroke:rgb(var(--smoothly-button-foreground));fill:rgb(var(--smoothly-button-foreground))}[hidden].sc-smoothly-input-edit-h{display:none}.sc-smoothly-input-edit-h:not([display]){display:none}[editable].sc-smoothly-input-edit-h{opacity:0.5}.sc-smoothly-input-edit-h[type=\"input\"].sc-smoothly-input-edit-s>smoothly-button>button{cursor:pointer;filter:opacity(60%);--smoothly-button-foreground:var(--smoothly-input-foreground);background-color:transparent}.sc-smoothly-input-edit-h smoothly-icon.default.sc-smoothly-input-edit{transform:translate(.1em, -.1em)}.sc-smoothly-input-edit-h.sc-smoothly-input-edit-s>button>*+smoothly-icon{display:none}";
|
|
9703
|
+
const SmoothlyInputEditStyle0 = styleCss$M;
|
|
9734
9704
|
|
|
9735
9705
|
const SmoothlyInputEdit = class {
|
|
9736
9706
|
constructor(hostRef) {
|
|
@@ -9762,13 +9732,13 @@ const SmoothlyInputEdit = class {
|
|
|
9762
9732
|
}
|
|
9763
9733
|
render() {
|
|
9764
9734
|
var _a;
|
|
9765
|
-
return (index.h(index.Host, { key: '
|
|
9735
|
+
return (index.h(index.Host, { key: '4a7251d30dc56d103cce6f4c646e87c1f9dedb2f', title: this.toolTip }, index.h("smoothly-button", { key: '10187eef09463ed960cd9fab4a224c603a3f2ac7', disabled: this.disabled, size: this.size, type: "button", shape: this.shape, expand: this.expand, color: this.color, fill: (_a = this.fill) !== null && _a !== void 0 ? _a : (this.type == "input" ? "clear" : undefined) }, index.h("slot", { key: '31a06bf95969d56a3d5d4a2214580ffa1a5a054f' }), index.h("smoothly-icon", { key: 'ae6116c6f7ac25efb5a511d14816b489bee3dc1c', class: "default", name: "create-outline", size: "tiny" }))));
|
|
9766
9736
|
}
|
|
9767
9737
|
};
|
|
9768
9738
|
SmoothlyInputEdit.style = SmoothlyInputEditStyle0;
|
|
9769
9739
|
|
|
9770
|
-
const styleCss$
|
|
9771
|
-
const SmoothlyInputFileStyle0 = styleCss$
|
|
9740
|
+
const styleCss$L = ".sc-smoothly-input-file-h{--input-padding-side:.5rem;--input-value-padding-top:1.25rem;--input-value-padding-bottom:.25rem;--input-min-height:3rem;min-height:var(--input-min-height);box-sizing:border-box;border-radius:var(--smoothly-input-border-radius)}.sc-smoothly-input-file-h[looks=\"border\"].sc-smoothly-input-file-s>smoothly-picker-menu smoothly-input,[looks=\"border\"].sc-smoothly-input-file-h{border:rgb(var(--smoothly-input-border)) solid 1px}[looks=\"border\"][readonly].sc-smoothly-input-file-h{border:transparent solid 1px}.sc-smoothly-input-file-h[looks=\"line\"].sc-smoothly-input-file-s>smoothly-picker-menu smoothly-input,[looks=\"line\"].sc-smoothly-input-file-h{border-bottom:rgb(var(--smoothly-input-border)) solid 1px}[looks=\"line\"][readonly].sc-smoothly-input-file-h{border-bottom:transparent solid 1px}[looks=\"grid\"].sc-smoothly-input-file-h{flex-grow:1;flex-basis:40%;box-shadow:0px 0px 0px 1px rgb(var(--smoothly-input-border));border:none}[looks=\"grid\"][readonly].sc-smoothly-input-file-h{box-shadow:0px 0px 0px 1px rgba(var(--smoothly-input-border-readonly))}[looks=\"transparent\"].sc-smoothly-input-file-h{border:none}[looks=\"transparent\"][readonly].sc-smoothly-input-file-h,[looks=\"transparent\"].sc-smoothly-input-file-h:not(:focus-within){background-color:transparent}[looks=\"transparent\"][readonly].sc-smoothly-input-file-h>input.sc-smoothly-input-file,[looks=\"transparent\"].sc-smoothly-input-file-h:not(:focus-within)>input.sc-smoothly-input-file{background:transparent}[looks=\"transparent\"].sc-smoothly-input-file-h:not([readonly]):focus-within{outline:1px solid rgb(var(--smoothly-input-border))}.sc-smoothly-input-file-h.sc-smoothly-input-file-s>[slot=label],.sc-smoothly-input-file-h .sc-smoothly-input-file-s>[slot=label],.sc-smoothly-input-file-h .label.sc-smoothly-input-file{position:absolute;top:.6rem;opacity:0.8;user-select:none;cursor:inherit;transform-origin:top left;transition:transform 100ms ease}.sc-smoothly-input-file-h.floating-label.sc-smoothly-input-file-s>[slot=label],.sc-smoothly-input-file-h.floating-label .sc-smoothly-input-file-s>[slot=label],.sc-smoothly-input-file-h.has-value.sc-smoothly-input-file-s>[slot=label],.sc-smoothly-input-file-h.has-value .sc-smoothly-input-file-s>[slot=label],.sc-smoothly-input-file-h[placeholder].sc-smoothly-input-file-s>[slot=label],.sc-smoothly-input-file-h[placeholder] .sc-smoothly-input-file-s>[slot=label],.sc-smoothly-input-file-h[readonly].sc-smoothly-input-file-s>[slot=label],.sc-smoothly-input-file-h[readonly] .sc-smoothly-input-file-s>[slot=label],.has-value.sc-smoothly-input-file-h .label.sc-smoothly-input-file,[placeholder].sc-smoothly-input-file-h .label.sc-smoothly-input-file,[readonly].sc-smoothly-input-file-h .label.sc-smoothly-input-file,.sc-smoothly-input-file-h:not([readonly]):focus-within .label.float-on-focus.sc-smoothly-input-file{top:.2rem;transform:scale(0.8)}.sc-smoothly-input-file-h:not([show-label]):not(.show-label) .label.sc-smoothly-input-file{display:none}.sc-smoothly-input-file-h{display:flex;align-items:center;flex-wrap:wrap;overflow:hidden;position:relative;width:100%;padding-left:var(--input-padding-side);background-color:rgb(var(--smoothly-input-background));box-sizing:border-box}.sc-smoothly-input-file-h>div.sc-smoothly-input-file>div.drag-overlay.sc-smoothly-input-file{position:absolute;inset:0;background-color:rgb(var(--smoothly-input-hover-background), 0.6);border-radius:var(--smoothly-input-border-radius);border:0.25rem dashed rgb(var(--smoothly-input-hover-foreground));display:flex;justify-content:center;align-items:center}.sc-smoothly-input-file-h>div.sc-smoothly-input-file>div.drag-overlay.sc-smoothly-input-file>smoothly-icon.sc-smoothly-input-file{color:rgb(var(--smoothly-input-hover-foreground))}.sc-smoothly-input-file-h:not(.dragging)>div.sc-smoothly-input-file>div.drag-overlay.sc-smoothly-input-file{display:none}.sc-smoothly-input-file-h>div.input.sc-smoothly-input-file>input.sc-smoothly-input-file{overflow:hidden;height:0;width:0;padding:0}.sc-smoothly-input-file-h:not([show-label])>div.input.sc-smoothly-input-file{display:flex;align-items:center;padding-bottom:0.2rem}.sc-smoothly-input-file-h:not([show-label])>smoothly-button.sc-smoothly-input-file:not(:empty){margin-right:1ch}[show-label].sc-smoothly-input-file-h>div.input.sc-smoothly-input-file{display:flex;padding-block:var(--input-value-padding-top) var(--input-value-padding-bottom);height:100%;box-sizing:border-box;flex-grow:1}.sc-smoothly-input-file-h>div.sc-smoothly-input-file>smoothly-button.sc-smoothly-input-file{margin:0;border:none}.sc-smoothly-input-file-h>label.sc-smoothly-input-file{left:var(--input-padding-side)}.sc-smoothly-input-file-h,.sc-smoothly-input-file-h *.sc-smoothly-input-file{cursor:pointer}[readonly].sc-smoothly-input-file-h,[readonly].sc-smoothly-input-file-h *.sc-smoothly-input-file{cursor:not-allowed}";
|
|
9741
|
+
const SmoothlyInputFileStyle0 = styleCss$L;
|
|
9772
9742
|
|
|
9773
9743
|
const SmoothlyInputFile = class {
|
|
9774
9744
|
constructor(hostRef) {
|
|
@@ -9876,7 +9846,7 @@ const SmoothlyInputFile = class {
|
|
|
9876
9846
|
}
|
|
9877
9847
|
render() {
|
|
9878
9848
|
var _a, _b, _c;
|
|
9879
|
-
return (index.h(index.Host, { key: '
|
|
9849
|
+
return (index.h(index.Host, { key: '1c91c11701f45734b2d5685bd0c6a543bdbb6fb7', class: { dragging: this.dragging, "has-value": !!this.value }, tabindex: 0, onClick: (e) => this.clickHandler(e), onDragOver: (e) => this.dragOverHandler(e), onDragEnter: (e) => this.dragEnterHandler(e) }, index.h("label", { key: 'f8ab23e372eabeac02168549ceb03f7a9eb5cbc4' }, index.h("slot", { key: '6eba1aa1e14556c55d647c0afdfc8382f4322994', name: "label" })), index.h("div", { key: '13e73b1c5b9d7e5cd4655237619a94929a2182fd', class: "input" }, index.h("smoothly-button", { key: '6a9f5ae011900e5b80a8106d5ccba3931515f382', type: "button", color: this.color, fill: "clear", size: "flexible" }, index.h("slot", { key: '582510137aca819dc05ccd6b75fa1168a1eefa47', name: "button" })), index.h("span", { key: 'f91cacc327e3643948633cde61974a7fa433c7bb' }, (_b = (_a = this.value) === null || _a === void 0 ? void 0 : _a.name) !== null && _b !== void 0 ? _b : this.placeholder), index.h("div", { key: '03b0f3af81ff691b034231a7b9bb159e97d60a43', class: "drag-overlay", onDrop: e => this.dropHandler(e), onDragLeave: e => this.dragLeaveHandler(e) }, index.h("smoothly-icon", { key: '8bf1766c10bad401e01a4fa1c7dfbc2aa12af1c4', name: "document-attach-outline" })), index.h("input", { key: '8884488c624c70a0ff57f030b43f2acdd11d2ea4', ref: element => (this.input = element), type: "file", capture: this.camera == "back" ? "environment" : "user", accept: (_c = this.accept) !== null && _c !== void 0 ? _c : (!this.camera ? undefined : "image/jpeg"), files: this.files, onInput: e => this.inputHandler(e) })), index.h("div", { key: '63c67251fd574e731d7b4eb926cd0f92e5bfeafb', class: "end", onClick: (e) => e.stopPropagation() }, index.h("slot", { key: '6c880201bcac2587a0e4432015ee9202cf2767a1', name: "end" }))));
|
|
9880
9850
|
}
|
|
9881
9851
|
get element() { return index.getElement(this); }
|
|
9882
9852
|
static get watchers() { return {
|
|
@@ -9885,8 +9855,8 @@ const SmoothlyInputFile = class {
|
|
|
9885
9855
|
};
|
|
9886
9856
|
SmoothlyInputFile.style = SmoothlyInputFileStyle0;
|
|
9887
9857
|
|
|
9888
|
-
const styleCss$
|
|
9889
|
-
const SmoothlyInputMonthStyle0 = styleCss$
|
|
9858
|
+
const styleCss$K = ".sc-smoothly-input-month-h{display:flex;flex-direction:row;justify-content:space-between;background-color:rgb(var(--smoothly-input-background))}.sc-smoothly-input-month-h:not([in-calendar])>smoothly-input-select.sc-smoothly-input-month{display:flex;flex:1}[looks=line].sc-smoothly-input-month-h,[looks=border].sc-smoothly-input-month-h,[looks=transparent].sc-smoothly-input-month-h{gap:2em}.sc-smoothly-input-month-h:not([previous])>smoothly-icon.sc-smoothly-input-month:first-of-type,.sc-smoothly-input-month-h:not([next])>smoothly-icon.sc-smoothly-input-month:last-of-type{display:none}.sc-smoothly-input-month-h>smoothly-icon.sc-smoothly-input-month{display:flex;align-self:center;cursor:pointer}.sc-smoothly-input-month-h>smoothly-icon.disabled.sc-smoothly-input-month{opacity:0.5;cursor:not-allowed}";
|
|
9859
|
+
const SmoothlyInputMonthStyle0 = styleCss$K;
|
|
9890
9860
|
|
|
9891
9861
|
const SmoothlyInputMonth = class {
|
|
9892
9862
|
constructor(hostRef) {
|
|
@@ -9997,9 +9967,9 @@ const SmoothlyInputMonth = class {
|
|
|
9997
9967
|
}
|
|
9998
9968
|
render() {
|
|
9999
9969
|
var _a, _b;
|
|
10000
|
-
return (index.h(index.Host, { key: '
|
|
9970
|
+
return (index.h(index.Host, { key: '31a5375f473313057fdee7b8d7b87594ac238550' }, index.h("smoothly-icon", { key: '78271c79baeaa0892cff0ef62be3eddc88574d3c', name: "caret-back-outline", size: "tiny", color: this.color, fill: "default", class: {
|
|
10001
9971
|
disabled: this.readonly || !this.allowPreviousMonth,
|
|
10002
|
-
}, onClick: () => this.allowPreviousMonth && this.adjustMonth(-1) }), index.h("smoothly-input-select", { key: '
|
|
9972
|
+
}, onClick: () => this.allowPreviousMonth && this.adjustMonth(-1) }), index.h("smoothly-input-select", { key: 'ae36fb2b6d31d627f29ff20d5a1cf71ab5648626', ref: e => (this.year = e), name: `${this.name}-year`, readonly: this.readonly, changed: this.changed, menuHeight: "5.5items", required: true, ordered: true, inCalendar: this.inCalendar, showLabel: this.showLabel, onSmoothlyInput: e => this.inputHandler(e), searchDisabled: true }, index.h("div", { key: '14b76d20799c3ffdeee0bd8abc2c17de24a50205', slot: "label" }, index.h("slot", { key: '7a02aaaa7c03963d2a4266fc5f20d595453ff938', name: "year-label" })), years((_a = this.value) !== null && _a !== void 0 ? _a : TimeZone.Date.now(), this.min, this.max).map(year => (index.h("smoothly-item", { key: year.date, value: year.date, selected: year.selected || this.value == year.date }, year.name)))), index.h("smoothly-input-select", { key: 'd7203269b2e6be8b45120bc9315fcba8a207fe32', ref: e => (this.month = e), name: `${this.name}-month`, readonly: this.readonly, color: this.color, looks: this.looks, changed: this.changed, menuHeight: "5.5items", required: true, ordered: true, inCalendar: this.inCalendar, showLabel: this.showLabel, onSmoothlyInput: e => this.inputHandler(e), searchDisabled: true }, index.h("div", { key: 'b73693770456df31f3eedce66b344775ecc9cb68', slot: "label" }, index.h("slot", { key: '649381e8437b40b805bcd089b06264d83c078629', name: "month-label" })), months((_b = this.value) !== null && _b !== void 0 ? _b : TimeZone.Date.now()).map(month => (index.h("smoothly-item", { key: month.date, value: month.date, selected: month.selected || this.value == month.date }, month.name)))), index.h("smoothly-icon", { key: '2d5f6e00759a55b9ab596c45e97421081e83dc55', name: "caret-forward-outline", size: "tiny", color: this.color, fill: "default", class: {
|
|
10003
9973
|
disabled: this.readonly || !this.allowNextMonth,
|
|
10004
9974
|
}, onClick: () => this.allowNextMonth && this.adjustMonth(1) })));
|
|
10005
9975
|
}
|
|
@@ -10012,8 +9982,8 @@ const SmoothlyInputMonth = class {
|
|
|
10012
9982
|
};
|
|
10013
9983
|
SmoothlyInputMonth.style = SmoothlyInputMonthStyle0;
|
|
10014
9984
|
|
|
10015
|
-
const styleCss$
|
|
10016
|
-
const SmoothlyInputPriceDemoStyle0 = styleCss$
|
|
9985
|
+
const styleCss$J = ".sc-smoothly-input-price-demo-h{display:block}";
|
|
9986
|
+
const SmoothlyInputPriceDemoStyle0 = styleCss$J;
|
|
10017
9987
|
|
|
10018
9988
|
const SmoothlyInputPriceDemo = class {
|
|
10019
9989
|
constructor(hostRef) {
|
|
@@ -10022,13 +9992,13 @@ const SmoothlyInputPriceDemo = class {
|
|
|
10022
9992
|
this.currency = "USD";
|
|
10023
9993
|
}
|
|
10024
9994
|
render() {
|
|
10025
|
-
return (index.h(index.Host, { key: '
|
|
9995
|
+
return (index.h(index.Host, { key: '9d4cec481dd329c3fc3b49bae2872d71c3f96513' }, index.h("h2", { key: 'df1d994e3fd1972722084557fcd7bbdcc94e7f05' }, "State demo on smoothly-input"), index.h("p", { key: '16d5e13aa5d4d973f00bfc9df8a53222ff546755' }, "This demo/test the internal state of the smoothly-input component."), index.h("p", { key: '0184623d96c8cbbb8f16c647f46768a9cd42dd16' }, "The currency of the price should update when switching between the currencies."), index.h("smoothly-input-radio", { key: '2eaf3b89d33550fd81b0862750b1dfa3f7336af9', name: "currency", onSmoothlyInput: e => (this.currency = TimeZone.Currency.is(e.detail.currency) ? e.detail.currency : undefined) }, this.currencies.map(currency => (index.h("smoothly-input-radio-item", { key: currency, selected: currency == this.currency, value: currency }, currency)))), index.h("smoothly-input", { key: '57a7d64a9ef245b2601c7d47a26574491b599585', type: "price", currency: this.currency }, "price")));
|
|
10026
9996
|
}
|
|
10027
9997
|
};
|
|
10028
9998
|
SmoothlyInputPriceDemo.style = SmoothlyInputPriceDemoStyle0;
|
|
10029
9999
|
|
|
10030
|
-
const styleCss$
|
|
10031
|
-
const SmoothlyInputRadioStyle0 = styleCss$
|
|
10000
|
+
const styleCss$I = ".sc-smoothly-input-radio-h{--input-padding-side:.5rem;--input-value-padding-top:1.25rem;--input-value-padding-bottom:.25rem;--input-min-height:3rem;min-height:var(--input-min-height);box-sizing:border-box;border-radius:var(--smoothly-input-border-radius)}.sc-smoothly-input-radio-h[looks=\"border\"].sc-smoothly-input-radio-s>smoothly-picker-menu smoothly-input,[looks=\"border\"].sc-smoothly-input-radio-h{border:rgb(var(--smoothly-input-border)) solid 1px}[looks=\"border\"][readonly].sc-smoothly-input-radio-h{border:transparent solid 1px}.sc-smoothly-input-radio-h[looks=\"line\"].sc-smoothly-input-radio-s>smoothly-picker-menu smoothly-input,[looks=\"line\"].sc-smoothly-input-radio-h{border-bottom:rgb(var(--smoothly-input-border)) solid 1px}[looks=\"line\"][readonly].sc-smoothly-input-radio-h{border-bottom:transparent solid 1px}[looks=\"grid\"].sc-smoothly-input-radio-h{flex-grow:1;flex-basis:40%;box-shadow:0px 0px 0px 1px rgb(var(--smoothly-input-border));border:none}[looks=\"grid\"][readonly].sc-smoothly-input-radio-h{box-shadow:0px 0px 0px 1px rgba(var(--smoothly-input-border-readonly))}[looks=\"transparent\"].sc-smoothly-input-radio-h{border:none}[looks=\"transparent\"][readonly].sc-smoothly-input-radio-h,[looks=\"transparent\"].sc-smoothly-input-radio-h:not(:focus-within){background-color:transparent}[looks=\"transparent\"][readonly].sc-smoothly-input-radio-h>input.sc-smoothly-input-radio,[looks=\"transparent\"].sc-smoothly-input-radio-h:not(:focus-within)>input.sc-smoothly-input-radio{background:transparent}[looks=\"transparent\"].sc-smoothly-input-radio-h:not([readonly]):focus-within{outline:1px solid rgb(var(--smoothly-input-border))}.sc-smoothly-input-radio-h.sc-smoothly-input-radio-s>[slot=label],.sc-smoothly-input-radio-h .sc-smoothly-input-radio-s>[slot=label],.sc-smoothly-input-radio-h .label.sc-smoothly-input-radio{position:absolute;top:.6rem;opacity:0.8;user-select:none;cursor:inherit;transform-origin:top left;transition:transform 100ms ease}.sc-smoothly-input-radio-h.floating-label.sc-smoothly-input-radio-s>[slot=label],.sc-smoothly-input-radio-h.floating-label .sc-smoothly-input-radio-s>[slot=label],.sc-smoothly-input-radio-h.has-value.sc-smoothly-input-radio-s>[slot=label],.sc-smoothly-input-radio-h.has-value .sc-smoothly-input-radio-s>[slot=label],.sc-smoothly-input-radio-h[placeholder].sc-smoothly-input-radio-s>[slot=label],.sc-smoothly-input-radio-h[placeholder] .sc-smoothly-input-radio-s>[slot=label],.sc-smoothly-input-radio-h[readonly].sc-smoothly-input-radio-s>[slot=label],.sc-smoothly-input-radio-h[readonly] .sc-smoothly-input-radio-s>[slot=label],.has-value.sc-smoothly-input-radio-h .label.sc-smoothly-input-radio,[placeholder].sc-smoothly-input-radio-h .label.sc-smoothly-input-radio,[readonly].sc-smoothly-input-radio-h .label.sc-smoothly-input-radio,.sc-smoothly-input-radio-h:not([readonly]):focus-within .label.float-on-focus.sc-smoothly-input-radio{top:.2rem;transform:scale(0.8)}.sc-smoothly-input-radio-h:not([show-label]):not(.show-label) .label.sc-smoothly-input-radio{display:none}.sc-smoothly-input-radio-h{background-color:rgb(var(--smoothly-input-background));display:flex;align-items:center;padding-left:var(--input-padding-side);box-sizing:border-box}[show-label].sc-smoothly-input-radio-h>div.sc-smoothly-input-radio{position:relative;padding-block:var(--input-value-padding-top) var(--input-value-padding-bottom)}.sc-smoothly-input-radio-h>div.sc-smoothly-input-radio,.sc-smoothly-input-radio-h>div.sc-smoothly-input-radio>div.options.sc-smoothly-input-radio{display:flex;gap:1.5rem}.sc-smoothly-input-radio-h.sc-smoothly-input-radio-s>[slot=end]{margin-right:0;margin-left:auto}[readonly].sc-smoothly-input-radio-h smoothly-input-radio-item.sc-smoothly-input-radio *.sc-smoothly-input-radio{cursor:not-allowed}";
|
|
10001
|
+
const SmoothlyInputRadioStyle0 = styleCss$I;
|
|
10032
10002
|
|
|
10033
10003
|
const SmoothlyInputRadio = class {
|
|
10034
10004
|
constructor(hostRef) {
|
|
@@ -10131,7 +10101,7 @@ const SmoothlyInputRadio = class {
|
|
|
10131
10101
|
(_b = (_a = this.listener).changed) === null || _b === void 0 ? void 0 : _b.call(_a, this);
|
|
10132
10102
|
}
|
|
10133
10103
|
render() {
|
|
10134
|
-
return (index.h(index.Host, { key: '
|
|
10104
|
+
return (index.h(index.Host, { key: '84feefdf8a3f79ac031f8f4e12af4eaea6d3b464', class: "floating-label" }, index.h("slot", { key: '5394a95744be929c8a0d5bbce9e09abc53edd8d9', name: "start" }), index.h("div", { key: '34f00d17365ec06c256338f759e24e6d13592997' }, index.h("slot", { key: '528b489815eb69473529b683965fc79ce80aaad4', name: "label" }), index.h("div", { key: '42dc1e97f591cef1ba66d1c16e0843c9f6b21c75', class: "options" }, index.h("slot", { key: '9db82fe518bd4790cf7cb95e2dfd083ef8e67795' }))), index.h("slot", { key: '67ede49d41d2e031da5387f819058031e886e1d1', name: "end" })));
|
|
10135
10105
|
}
|
|
10136
10106
|
get element() { return index.getElement(this); }
|
|
10137
10107
|
static get watchers() { return {
|
|
@@ -10141,8 +10111,8 @@ const SmoothlyInputRadio = class {
|
|
|
10141
10111
|
};
|
|
10142
10112
|
SmoothlyInputRadio.style = SmoothlyInputRadioStyle0;
|
|
10143
10113
|
|
|
10144
|
-
const styleCss$
|
|
10145
|
-
const SmoothlyInputRadioItemStyle0 = styleCss$
|
|
10114
|
+
const styleCss$H = ".sc-smoothly-input-radio-item-h{display:flex;align-items:center;position:relative}.sc-smoothly-input-radio-item-h:hover>*.sc-smoothly-input-radio-item{cursor:pointer}.sc-smoothly-input-radio-item-h>input.sc-smoothly-input-radio-item:focus-visible+smoothly-icon.sc-smoothly-input-radio-item{outline:2px solid rgb(var(--smoothly-primary-color));border-radius:1px}.sc-smoothly-input-radio-item-h>input.sc-smoothly-input-radio-item{opacity:0;z-index:1;width:1.5em;height:1.5em;position:absolute;transform:translateX(50%)}.sc-smoothly-input-radio-item-h>label.sc-smoothly-input-radio-item{padding:0 .3em;white-space:nowrap}";
|
|
10115
|
+
const SmoothlyInputRadioItemStyle0 = styleCss$H;
|
|
10146
10116
|
|
|
10147
10117
|
const SmoothlyInputRadioItem = class {
|
|
10148
10118
|
constructor(hostRef) {
|
|
@@ -10162,14 +10132,14 @@ const SmoothlyInputRadioItem = class {
|
|
|
10162
10132
|
this.smoothlySelect.emit({ value: this.value, selected: this.selected, select: s => (this.selected = s) });
|
|
10163
10133
|
}
|
|
10164
10134
|
render() {
|
|
10165
|
-
return (index.h(index.Host, { key: '
|
|
10135
|
+
return (index.h(index.Host, { key: 'e7cf32e18aaa3c68ed5f10ddd837d00c57ce314c', onClick: () => this.inputHandler() }, index.h("input", { key: '48daeb5ece6f22f24d7ba0d21d6ab1d5ffe050ef', name: this.name, type: "radio", checked: this.selected }), index.h("smoothly-icon", { key: '981a3f17ce966be3bd90a3030d5eed18ed1ae087', name: this.selected ? "checkmark-circle" : "ellipse-outline", size: "small", fill: "outline", color: this.selected ? "success" : "medium", toolTip: "Select" }), index.h("label", { key: '3c3e288cbd8496bd4c2a62b83865eae8e39019a6' }, index.h("slot", { key: 'c660628b0873ef7041a06d90884f1bd88046dfed' }))));
|
|
10166
10136
|
}
|
|
10167
10137
|
get element() { return index.getElement(this); }
|
|
10168
10138
|
};
|
|
10169
10139
|
SmoothlyInputRadioItem.style = SmoothlyInputRadioItemStyle0;
|
|
10170
10140
|
|
|
10171
|
-
const styleCss$
|
|
10172
|
-
const SmoothlyInputRangeStyle0 = styleCss$
|
|
10141
|
+
const styleCss$G = ".sc-smoothly-input-range-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)}.sc-smoothly-input-range-h[looks=\"border\"].sc-smoothly-input-range-s>smoothly-picker-menu smoothly-input,[looks=\"border\"].sc-smoothly-input-range-h{border:rgb(var(--smoothly-input-border)) solid 1px}[looks=\"border\"][readonly].sc-smoothly-input-range-h{border:transparent solid 1px}.sc-smoothly-input-range-h[looks=\"line\"].sc-smoothly-input-range-s>smoothly-picker-menu smoothly-input,[looks=\"line\"].sc-smoothly-input-range-h{border-bottom:rgb(var(--smoothly-input-border)) solid 1px}[looks=\"line\"][readonly].sc-smoothly-input-range-h{border-bottom:transparent solid 1px}[looks=\"grid\"].sc-smoothly-input-range-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-range-h{box-shadow:0px 0px 0px 1px rgba(var(--smoothly-input-border-readonly))}[looks=\"transparent\"].sc-smoothly-input-range-h{border:none}[looks=\"transparent\"][readonly].sc-smoothly-input-range-h,[looks=\"transparent\"].sc-smoothly-input-range-h:not(:focus-within){background-color:transparent}[looks=\"transparent\"][readonly].sc-smoothly-input-range-h>input.sc-smoothly-input-range,[looks=\"transparent\"].sc-smoothly-input-range-h:not(:focus-within)>input.sc-smoothly-input-range{background:transparent}[looks=\"transparent\"].sc-smoothly-input-range-h:not([readonly]):focus-within{outline:1px solid rgb(var(--smoothly-input-border))}.sc-smoothly-input-range-h.sc-smoothly-input-range-s>[slot=label],.sc-smoothly-input-range-h .sc-smoothly-input-range-s>[slot=label],.sc-smoothly-input-range-h .label.sc-smoothly-input-range{position:absolute;top:.6rem;opacity:0.8;user-select:none;cursor:inherit;transform-origin:top left;transition:transform 100ms ease}.sc-smoothly-input-range-h.floating-label.sc-smoothly-input-range-s>[slot=label],.sc-smoothly-input-range-h.floating-label .sc-smoothly-input-range-s>[slot=label],.sc-smoothly-input-range-h.has-value.sc-smoothly-input-range-s>[slot=label],.sc-smoothly-input-range-h.has-value .sc-smoothly-input-range-s>[slot=label],.sc-smoothly-input-range-h[placeholder].sc-smoothly-input-range-s>[slot=label],.sc-smoothly-input-range-h[placeholder] .sc-smoothly-input-range-s>[slot=label],.sc-smoothly-input-range-h[readonly].sc-smoothly-input-range-s>[slot=label],.sc-smoothly-input-range-h[readonly] .sc-smoothly-input-range-s>[slot=label],.has-value.sc-smoothly-input-range-h .label.sc-smoothly-input-range,[placeholder].sc-smoothly-input-range-h .label.sc-smoothly-input-range,[readonly].sc-smoothly-input-range-h .label.sc-smoothly-input-range,.sc-smoothly-input-range-h:not([readonly]):focus-within .label.float-on-focus.sc-smoothly-input-range{top:.2rem;transform:scale(0.8)}.sc-smoothly-input-range-h:not([show-label]):not(.show-label) .label.sc-smoothly-input-range{display:none}*.sc-smoothly-input-range{box-sizing:border-box}.sc-smoothly-input-range-h{position:relative;width:100%;justify-content:center;align-items:center;display:flex;background-color:rgb(var(--smoothly-input-background));box-sizing:border-box}.sc-smoothly-input-range-h>div.sc-smoothly-input-range:not([slot]){position:relative;display:flex;justify-content:center;align-items:center;width:100%;padding-right:var(--input-padding-side)}.sc-smoothly-input-range-h>div.sc-smoothly-input-range>smoothly-input.sc-smoothly-input-range{width:12em;--input-min-height:calc(3rem - 2px)}.sc-smoothly-input-range-h>div.sc-smoothly-input-range>smoothly-input.sc-smoothly-input-range:focus{outline:none;border:none}.sc-smoothly-input-range-h>div.sc-smoothly-input-range>smoothly-input.sc-smoothly-input-range label.sc-smoothly-input-range{white-space:nowrap}.output-side-right.sc-smoothly-input-range-h>div.sc-smoothly-input-range{padding:0}.output-side-right.sc-smoothly-input-range-h>div.sc-smoothly-input-range>smoothly-input.sc-smoothly-input-range{text-align:center;margin-left:var(--input-padding-side);border:none;box-sizing:border-box;width:5em;order:3;margin:0}.output-side-right.sc-smoothly-input-range-h>div.sc-smoothly-input-range>smoothly-display.sc-smoothly-input-range,.sc-smoothly-input-range-h:not(.output-side-right)>div.sc-smoothly-input-range>label.sc-smoothly-input-range{display:none}.output-side-right.sc-smoothly-input-range-h>div.sc-smoothly-input-range>smoothly-input.sc-smoothly-input-range input.sc-smoothly-input-range{padding:0;text-align:center}.output-side-right.sc-smoothly-input-range-h>div.sc-smoothly-input-range>smoothly-input.sc-smoothly-input-range label.sc-smoothly-input-range{width:100%}.output-side-right.sc-smoothly-input-range-h>div.sc-smoothly-input-range>label.sc-smoothly-input-range{position:static;font-size:inherit;text-align:center;margin:0 var(--input-padding-side)}.sc-smoothly-input-range-h>div.sc-smoothly-input-range>input[type=range].sc-smoothly-input-range{-webkit-appearance:none;width:100%;background:transparent;height:1.5em;padding:0 .4em}.sc-smoothly-input-range-h>div.sc-smoothly-input-range>input[type=range].sc-smoothly-input-range::-webkit-slider-thumb{-webkit-appearance:none;height:0.8em;width:0.8em;border-radius:100%;background-color:rgb(var(--smoothly-primary-color));cursor:pointer;margin-top:-.25em;border:none}.sc-smoothly-input-range-h>div.sc-smoothly-input-range>input[type=range].sc-smoothly-input-range::-moz-range-thumb{height:0.8em;width:0.8em;border-radius:100%;background-color:rgb(var(--smoothly-primary-color));cursor:pointer;border:none}.sc-smoothly-input-range-h>div.sc-smoothly-input-range>input[type=range].sc-smoothly-input-range::-webkit-slider-runnable-track{height:.3em;cursor:pointer;background-color:rgb(var(--smoothly-primary-color));border-radius:20px}.sc-smoothly-input-range-h>div.sc-smoothly-input-range>input[type=range].sc-smoothly-input-range::-moz-range-track{width:100%;height:.3em;cursor:pointer;background-color:rgb(var(--smoothly-primary-color));border-radius:20px}.sc-smoothly-input-range-h:not([value])>div.sc-smoothly-input-range>input[type=range].sc-smoothly-input-range::-webkit-slider-runnable-track{background-color:rgb(var(--smoothly-primary-tint))}.sc-smoothly-input-range-h:not([value])>dov.sc-smoothly-input-range>input[type=range].sc-smoothly-input-range::-moz-range-track{background-color:rgb(var(--smoothly-primary-tint))}[readonly].sc-smoothly-input-range-h>div.sc-smoothly-input-range>input[type=range].sc-smoothly-input-range::-webkit-slider-thumb,[readonly].sc-smoothly-input-range-h>div.sc-smoothly-input-range>input[type=range].sc-smoothly-input-range::-moz-range-thumb,[readonly].sc-smoothly-input-range-h>div.sc-smoothly-input-range>input[type=range].sc-smoothly-input-range::-webkit-slider-runnable-track,[readonly].sc-smoothly-input-range-h>div.sc-smoothly-input-range>input[type=range].sc-smoothly-input-range::-moz-range-track,[readonly].sc-smoothly-input-range-h,[readonly].sc-smoothly-input-range-h *.sc-smoothly-input-range{cursor:not-allowed}input.sc-smoothly-input-range::-webkit-outer-spin-button,input.sc-smoothly-input-range::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}";
|
|
10142
|
+
const SmoothlyInputRangeStyle0 = styleCss$G;
|
|
10173
10143
|
|
|
10174
10144
|
const SmoothlyInputRange = class {
|
|
10175
10145
|
constructor(hostRef) {
|
|
@@ -10266,17 +10236,17 @@ const SmoothlyInputRange = class {
|
|
|
10266
10236
|
}
|
|
10267
10237
|
render() {
|
|
10268
10238
|
var _a, _b, _c;
|
|
10269
|
-
return (index.h(index.Host, { key: '
|
|
10239
|
+
return (index.h(index.Host, { key: '54110def7ede46a497e9f89badfa411f2101f9f1', class: {
|
|
10270
10240
|
"output-side-right": this.outputSide === "right",
|
|
10271
10241
|
"show-label": this.outputSide === "left" && !!this.label,
|
|
10272
|
-
} }, index.h("slot", { key: '
|
|
10242
|
+
} }, index.h("slot", { key: '2a5b1e0011a44f1d61965cf7d5c40fb65810d70e', name: "start" }), index.h("div", { key: '8d6c07448362f9b14c0fbc5e6d12f14ad7900d18' }, index.h("label", { key: '1f0c9181fcb31bb9481e2831d97807824d0fda3b', htmlFor: this.name }, this.label), index.h("smoothly-input", { key: '5cfa5a192ec52e3b1542c8b902fc0708f9f7f638', ref: e => (this.input = e), looks: undefined, color: this.color, name: this.name, showLabel: this.outputSide === "left" && !!this.label, type: this.type, onSmoothlyInputLoad: async (e) => (e.stopPropagation(),
|
|
10273
10243
|
this.setValue(Input.Element.is(e.target) ? Number(await e.target.getValue()) : undefined)), onSmoothlyBlur: e => e.stopPropagation(), onSmoothlyInput: async (e) => {
|
|
10274
10244
|
e.stopPropagation();
|
|
10275
10245
|
this.setValue(Input.Element.is(e.target) ? Number(await e.target.getValue()) : undefined);
|
|
10276
|
-
}, value: this.type == "percent" ? this.value : (_a = this.value) === null || _a === void 0 ? void 0 : _a.toString(), placeholder: this.outputSide === "right" ? "-" : undefined, readonly: this.readonly }, this.label), index.h("smoothly-display", { key: '
|
|
10246
|
+
}, value: this.type == "percent" ? this.value : (_a = this.value) === null || _a === void 0 ? void 0 : _a.toString(), placeholder: this.outputSide === "right" ? "-" : undefined, readonly: this.readonly }, this.label), index.h("smoothly-display", { key: 'ba0ffa533194066830cbd8644dc56407ca8e98f6', label: (this.type == "percent" ? this.min * 100 : this.min).toString() }), index.h("input", { key: '89a2f41c2e5b11ad7ca84be16fce678348b05684', name: this.name, part: "range", type: "range", min: this.min, max: this.max, step: (_b = this.step) !== null && _b !== void 0 ? _b : "any", disabled: this.readonly, onInput: event => {
|
|
10277
10247
|
event.stopPropagation();
|
|
10278
10248
|
this.setValue(event.target.valueAsNumber);
|
|
10279
|
-
}, value: (_c = this.value) !== null && _c !== void 0 ? _c : this.min }), index.h("smoothly-display", { key: '
|
|
10249
|
+
}, value: (_c = this.value) !== null && _c !== void 0 ? _c : this.min }), index.h("smoothly-display", { key: 'bdb12803d40ceb8205d3f34516e9cc7d5f0c55b7', label: (this.type == "percent" ? this.max * 100 : this.max).toString() })), index.h("slot", { key: 'f605bf487c677804bbd6b1da7329fdc10a8f24bd', name: "end" })));
|
|
10280
10250
|
}
|
|
10281
10251
|
get element() { return index.getElement(this); }
|
|
10282
10252
|
static get watchers() { return {
|
|
@@ -10290,12 +10260,12 @@ const SmoothlyInputRangeDemo = class {
|
|
|
10290
10260
|
index.registerInstance(this, hostRef);
|
|
10291
10261
|
}
|
|
10292
10262
|
render() {
|
|
10293
|
-
return (index.h(index.Host, { key: '
|
|
10263
|
+
return (index.h(index.Host, { key: 'c2c0307b8cfb3649b3829935ceac7a239c0a3035' }, index.h("h2", { key: '3dc59277ebd70ee6d2845111fac8cc705ae274af' }, "Range"), index.h("h3", { key: '50b58f50d58c00c86f0746ce5c05b1f57b57efa2' }, "Phone Number"), index.h("smoothly-input-range", { key: 'ae8d9c8125beb1790cbd642d9b25ed202635c7a2', min: 700000000, max: 799999999, step: 1, label: "Phone Number" }), index.h("h3", { key: '7b8e733f33aa344bdd07be2b23cb566485a4d13a' }, "Stars out of ten"), index.h("smoothly-input-range", { key: '55c63696b90405074cabee9694379befd5aa9310', max: 10, step: 1, label: "Stars" }), index.h("h3", { key: '27f0e64c163354a5c7669100e1a074ae2d9a141d' }, "Percent"), index.h("smoothly-input-range", { key: '2035cfb5de1eeaf6edc7086417dc00c9dee8c339', type: "percent", max: 1, step: 0.01, label: "Percent" }), index.h("h3", { key: '04fab376af7923769f62db4246062508c1ef1194' }, "With icon at start and clear button"), index.h("smoothly-input-range", { key: '145a4d0fa6fa5903f5690cb25554af63a28edcef', step: 1, name: "range2", label: "Select" }, index.h("smoothly-icon", { key: '2a3ff0a0b93638f49fb59015acc37e30f22f934f', name: "checkmark-circle", slot: "start" }), index.h("smoothly-input-clear", { key: '33cfa613f632309014a96dfd2a678bf9f71b2b67', size: "icon", slot: "end" }))));
|
|
10294
10264
|
}
|
|
10295
10265
|
};
|
|
10296
10266
|
|
|
10297
|
-
const styleCss$
|
|
10298
|
-
const SmoothlyInputResetStyle0 = styleCss$
|
|
10267
|
+
const styleCss$F = "[color=default].sc-smoothly-input-reset{--smoothly-color:var(--smoothly-default-color);--smoothly-color-contrast:var(--smoothly-default-contrast);--smoothly-color-shade:var(--smoothly-default-shade);--smoothly-color-tint:var(--smoothly-default-tint)}[color=primary].sc-smoothly-input-reset{--smoothly-color:var(--smoothly-primary-color);--smoothly-color-contrast:var(--smoothly-primary-contrast);--smoothly-color-shade:var(--smoothly-primary-shade);--smoothly-color-tint:var(--smoothly-primary-tint)}[color=secondary].sc-smoothly-input-reset{--smoothly-color:var(--smoothly-secondary-color);--smoothly-color-contrast:var(--smoothly-secondary-contrast);--smoothly-color-shade:var(--smoothly-secondary-shade);--smoothly-color-tint:var(--smoothly-secondary-tint)}[color=tertiary].sc-smoothly-input-reset{--smoothly-color:var(--smoothly-tertiary-color);--smoothly-color-contrast:var(--smoothly-tertiary-contrast);--smoothly-color-shade:var(--smoothly-tertiary-shade);--smoothly-color-tint:var(--smoothly-tertiary-tint)}[color=success].sc-smoothly-input-reset{--smoothly-color:var(--smoothly-success-color);--smoothly-color-contrast:var(--smoothly-success-contrast);--smoothly-color-shade:var(--smoothly-success-shade);--smoothly-color-tint:var(--smoothly-success-tint)}[color=warning].sc-smoothly-input-reset{--smoothly-color:var(--smoothly-warning-color);--smoothly-color-contrast:var(--smoothly-warning-contrast);--smoothly-color-shade:var(--smoothly-warning-shade);--smoothly-color-tint:var(--smoothly-warning-tint)}[color=danger].sc-smoothly-input-reset{--smoothly-color:var(--smoothly-danger-color);--smoothly-color-contrast:var(--smoothly-danger-contrast);--smoothly-color-shade:var(--smoothly-danger-shade);--smoothly-color-tint:var(--smoothly-danger-tint)}[color=light].sc-smoothly-input-reset{--smoothly-color:var(--smoothly-light-color);--smoothly-color-contrast:var(--smoothly-light-contrast);--smoothly-color-shade:var(--smoothly-light-shade);--smoothly-color-tint:var(--smoothly-light-tint)}[color=medium].sc-smoothly-input-reset{--smoothly-color:var(--smoothly-medium-color);--smoothly-color-contrast:var(--smoothly-medium-contrast);--smoothly-color-shade:var(--smoothly-medium-shade);--smoothly-color-tint:var(--smoothly-medium-tint)}[color=dark].sc-smoothly-input-reset{--smoothly-color:var(--smoothly-dark-color);--smoothly-color-contrast:var(--smoothly-dark-contrast);--smoothly-color-shade:var(--smoothly-dark-shade);--smoothly-color-tint:var(--smoothly-dark-tint)}.sc-smoothly-input-reset-h{--smoothly-button-border-radius:0.5rem;display:inline-block;box-sizing:border-box;border-radius:var(--smoothly-button-border-radius);cursor:pointer;border:none;outline:none;position:relative}[shape=rounded].sc-smoothly-input-reset-h{--smoothly-button-border-radius:2rem}[type=link].sc-smoothly-input-reset-h{display:inline}[disabled].sc-smoothly-input-reset-h{opacity:0.5;pointer-events:none}.sc-smoothly-input-reset-h>a.sc-smoothly-input-reset,.sc-smoothly-input-reset-h>button.sc-smoothly-input-reset{font-size:110%;font-weight:400;border:1px solid transparent;outline:none;background-color:transparent;cursor:pointer;display:inline-flex;gap:0.5rem;box-sizing:border-box}.sc-smoothly-input-reset-h>a.sc-smoothly-input-reset:empty,.sc-smoothly-input-reset-h>button.sc-smoothly-input-reset:empty{border-width:0}.sc-smoothly-input-reset-h>button.sc-smoothly-input-reset{font-weight:bold;justify-content:center;height:100%;width:100%;border-radius:var(--smoothly-button-border-radius);align-items:center}.sc-smoothly-input-reset-h:not([size=icon]):not([size=flexible])>button.sc-smoothly-input-reset{padding:0.8em;min-width:8em}.sc-smoothly-input-reset-h:not([size=icon]):not([size=flexible]):has(smoothly-icon)>button.sc-smoothly-input-reset{padding:0.6em}[size=icon].sc-smoothly-input-reset-h>button.sc-smoothly-input-reset{padding:0.5em}[type=button].sc-smoothly-input-reset-h>a.sc-smoothly-input-reset{text-align:center;text-decoration:inherit;width:calc(100% - 0.6em)}[size=small].sc-smoothly-input-reset-h>button.sc-smoothly-input-reset{font-size:100%}[size=large].sc-smoothly-input-reset-h>button.sc-smoothly-input-reset{font-size:130%}.sc-smoothly-input-reset-h:not([size=icon]){min-width:8em}[size=flexible].sc-smoothly-input-reset-h{min-width:unset;padding:0;margin:0;display:flex;justify-content:center;align-items:center}[size=flexible].sc-smoothly-input-reset-h>button.sc-smoothly-input-reset{min-width:unset;padding:0;margin:0}[expand].sc-smoothly-input-reset-h{width:100%}[expand=full].sc-smoothly-input-reset-h{border-left:none;border-right:none;--smoothly-button-border-radius:0}[fill=outline].sc-smoothly-input-reset-h>button.sc-smoothly-input-reset{background-color:transparent;color:rgb(var(--smoothly-button-foreground));fill:rgb(var(--smoothly-button-foreground));stroke:rgb(var(--smoothly-button-foreground));border-color:rgb(var(--smoothly-button-foreground))}.sc-smoothly-input-reset-h:not([fill=clear])>button.sc-smoothly-input-reset:hover,.sc-smoothly-input-reset-h>button.sc-smoothly-input-reset:focus-visible,[fill=outline].sc-smoothly-input-reset-h:active>button.sc-smoothly-input-reset::before{border-color:rgb(var(--smoothly-button-focus-color))}[fill=outline].sc-smoothly-input-reset-h>button.sc-smoothly-input-reset:hover::before,[fill=outline].sc-smoothly-input-reset-h>button.sc-smoothly-input-reset:focus-within::before,[fill=outline].sc-smoothly-input-reset-h>button.sc-smoothly-input-reset:active::before{content:\"\";position:absolute;border:2px solid rgb(var(--smoothly-button-focus-border));inset:-1px;border-radius:var(--smoothly-button-border-radius)}.sc-smoothly-input-reset-h:not([fill=clear]):not([fill=outline])>button.sc-smoothly-input-reset:hover,.sc-smoothly-input-reset-h:not([fill=clear]):not([fill=outline])>button.sc-smoothly-input-reset:focus-visible,.sc-smoothly-input-reset-h:not([fill=clear]):not([fill=outline])>button.sc-smoothly-input-reset:active{background:rgb(var(--smoothly-button-hover-background))}.sc-smoothly-input-reset-h>button.sc-smoothly-input-reset,.sc-smoothly-input-reset-h.sc-smoothly-input-reset-s>smoothly-icon,.sc-smoothly-input-reset-h .sc-smoothly-input-reset-s>smoothly-icon{color:rgb(var(--smoothly-button-foreground));stroke:rgb(var(--smoothly-button-foreground));fill:rgb(var(--smoothly-button-foreground))}[hidden].sc-smoothly-input-reset-h{display:none}.sc-smoothly-input-reset-h:not([display]){display:none}.sc-smoothly-input-reset-h[type=\"input\"].sc-smoothly-input-reset-s>smoothly-button>button{cursor:pointer;filter:opacity(60%);--smoothly-button-foreground:var(--smoothly-input-foreground);background-color:transparent}.sc-smoothly-input-reset-h.sc-smoothly-input-reset-s>smoothly-button>button>*+smoothly-icon{display:none}[disabled].sc-smoothly-input-reset-h{cursor:not-allowed}.sc-smoothly-input-reset-h[type=\"input\"]:hover.sc-smoothly-input-reset-s>smoothly-icon,.sc-smoothly-input-reset-h[type=\"input\"]:hover .sc-smoothly-input-reset-s>smoothly-icon{cursor:pointer;filter:opacity(100%)}";
|
|
10268
|
+
const SmoothlyInputResetStyle0 = styleCss$F;
|
|
10299
10269
|
|
|
10300
10270
|
const SmoothlyInputReset = class {
|
|
10301
10271
|
constructor(hostRef) {
|
|
@@ -10336,7 +10306,7 @@ const SmoothlyInputReset = class {
|
|
|
10336
10306
|
}
|
|
10337
10307
|
render() {
|
|
10338
10308
|
var _a;
|
|
10339
|
-
return (index.h(index.Host, { key: '
|
|
10309
|
+
return (index.h(index.Host, { key: '8542dba163fb848653f31f2559e52aac50826c40', title: this.tooltip }, index.h("smoothly-button", { key: 'dcac9b394999e1751be7786f4eb7b3033ce2d5a7', disabled: this.disabled, size: this.size, type: "button", shape: this.shape, expand: this.expand, color: this.color, fill: (_a = this.fill) !== null && _a !== void 0 ? _a : (this.type == "input" ? "clear" : undefined), onClick: event => this.clickHandler(event) }, index.h("slot", { key: '5756f37b4fe0cae8e0f6e0e7d0776cae56f2f002' }), index.h("smoothly-icon", { key: 'aecb2d327ddf0b0441c48660c9b061fa338fdd3b', flip: "x", name: "refresh-outline", size: "tiny" }))));
|
|
10340
10310
|
}
|
|
10341
10311
|
};
|
|
10342
10312
|
SmoothlyInputReset.style = SmoothlyInputResetStyle0;
|
|
@@ -10357,8 +10327,8 @@ var Item;
|
|
|
10357
10327
|
Item.is = Item.type.is;
|
|
10358
10328
|
})(Item || (Item = {}));
|
|
10359
10329
|
|
|
10360
|
-
const styleCss$
|
|
10361
|
-
const SmoothlyInputSelectStyle0 = styleCss$
|
|
10330
|
+
const styleCss$E = ".sc-smoothly-input-select-h{--input-padding-side:.5rem;--input-value-padding-top:1.25rem;--input-value-padding-bottom:.25rem;--input-min-height:3rem;min-height:var(--input-min-height);box-sizing:border-box;border-radius:var(--smoothly-input-border-radius)}.sc-smoothly-input-select-h[looks=\"border\"].sc-smoothly-input-select-s>smoothly-picker-menu smoothly-input,[looks=\"border\"].sc-smoothly-input-select-h{border:rgb(var(--smoothly-input-border)) solid 1px}[looks=\"border\"][readonly].sc-smoothly-input-select-h{border:transparent solid 1px}.sc-smoothly-input-select-h[looks=\"line\"].sc-smoothly-input-select-s>smoothly-picker-menu smoothly-input,[looks=\"line\"].sc-smoothly-input-select-h{border-bottom:rgb(var(--smoothly-input-border)) solid 1px}[looks=\"line\"][readonly].sc-smoothly-input-select-h{border-bottom:transparent solid 1px}[looks=\"grid\"].sc-smoothly-input-select-h{flex-grow:1;flex-basis:40%;box-shadow:0px 0px 0px 1px rgb(var(--smoothly-input-border));border:none}[looks=\"grid\"][readonly].sc-smoothly-input-select-h{box-shadow:0px 0px 0px 1px rgba(var(--smoothly-input-border-readonly))}[looks=\"transparent\"].sc-smoothly-input-select-h{border:none}[looks=\"transparent\"][readonly].sc-smoothly-input-select-h,[looks=\"transparent\"].sc-smoothly-input-select-h:not(:focus-within){background-color:transparent}[looks=\"transparent\"][readonly].sc-smoothly-input-select-h>input.sc-smoothly-input-select,[looks=\"transparent\"].sc-smoothly-input-select-h:not(:focus-within)>input.sc-smoothly-input-select{background:transparent}[looks=\"transparent\"].sc-smoothly-input-select-h:not([readonly]):focus-within{outline:1px solid rgb(var(--smoothly-input-border))}.sc-smoothly-input-select-h.sc-smoothly-input-select-s>[slot=label],.sc-smoothly-input-select-h .sc-smoothly-input-select-s>[slot=label],.sc-smoothly-input-select-h .label.sc-smoothly-input-select{position:absolute;top:.6rem;opacity:0.8;user-select:none;cursor:inherit;transform-origin:top left;transition:transform 100ms ease}.sc-smoothly-input-select-h.floating-label.sc-smoothly-input-select-s>[slot=label],.sc-smoothly-input-select-h.floating-label .sc-smoothly-input-select-s>[slot=label],.sc-smoothly-input-select-h.has-value.sc-smoothly-input-select-s>[slot=label],.sc-smoothly-input-select-h.has-value .sc-smoothly-input-select-s>[slot=label],.sc-smoothly-input-select-h[placeholder].sc-smoothly-input-select-s>[slot=label],.sc-smoothly-input-select-h[placeholder] .sc-smoothly-input-select-s>[slot=label],.sc-smoothly-input-select-h[readonly].sc-smoothly-input-select-s>[slot=label],.sc-smoothly-input-select-h[readonly] .sc-smoothly-input-select-s>[slot=label],.has-value.sc-smoothly-input-select-h .label.sc-smoothly-input-select,[placeholder].sc-smoothly-input-select-h .label.sc-smoothly-input-select,[readonly].sc-smoothly-input-select-h .label.sc-smoothly-input-select,.sc-smoothly-input-select-h:not([readonly]):focus-within .label.float-on-focus.sc-smoothly-input-select{top:.2rem;transform:scale(0.8)}.sc-smoothly-input-select-h:not([show-label]):not(.show-label) .label.sc-smoothly-input-select{display:none}.sc-smoothly-input-select-h{display:flex;justify-content:space-between;flex-direction:row;position:relative;background-color:rgb(var(--smoothly-input-background));color:rgb(var(--smoothly-input-foreground));fill:rgb(var(--smoothly-input-foreground));stroke:rgb(var(--smoothly-input-foreground));padding-left:var(--input-padding-side)}.open.sc-smoothly-input-select-h{border-radius:var(--smoothly-input-border-radius) var(--smoothly-input-border-radius) 0 0}.icon.sc-smoothly-input-select-h{width:fit-content;flex-direction:column}.sc-smoothly-input-select-h>div.select-display.sc-smoothly-input-select{box-sizing:border-box;display:flex;cursor:pointer;padding:var(--input-value-padding-top) 0 var(--input-value-padding-bottom) 0;overflow:hidden;width:100%;white-space:nowrap;gap:1rem;text-overflow:ellipsis}.sc-smoothly-input-select-h:not(:has([slot=label]))>div.select-display.sc-smoothly-input-select,.sc-smoothly-input-select-h:not([show-label])>div.select-display.sc-smoothly-input-select{padding:.6em 0;align-items:center}[readonly].sc-smoothly-input-select-h>div.select-display.sc-smoothly-input-select{cursor:not-allowed}.sc-smoothly-input-select-h>div.select-display.sc-smoothly-input-select smoothly-icon.sc-smoothly-input-select{color:rgb(var(--smoothly-input-foreground));fill:rgb(var(--smoothly-input-foreground));stroke:rgb(var(--smoothly-input-foreground))}.sc-smoothly-input-select-h>div.icons.sc-smoothly-input-select{display:flex;flex-direction:row;align-items:center}.sc-smoothly-input-select-h>div.icons.sc-smoothly-input-select-s>smoothly-icon:not(\"color\"){color:rgb(var(--smoothly-input-foreground));fill:rgb(var(--smoothly-input-foreground));stroke:rgb(var(--smoothly-input-foreground));filter:opacity(60%)}.sc-smoothly-input-select-h:hover>div.icons.sc-smoothly-input-select-s>smoothly-icon{filter:opacity(100%)}.sc-smoothly-input-select-h>div.icons.sc-smoothly-input-select>smoothly-icon[name=caret-down-outline].sc-smoothly-input-select,.sc-smoothly-input-select-h>div.icons.sc-smoothly-input-select>smoothly-icon[name=caret-forward-outline].sc-smoothly-input-select{opacity:.7;cursor:pointer;height:100%;padding-inline:var(--input-padding-side)}[invalid].sc-smoothly-input-select-h>div.sc-smoothly-input-select>smoothly-icon.smoothly-invalid.sc-smoothly-input-select{display:block;padding:0.5rem}.sc-smoothly-input-select-h>div.sc-smoothly-input-select>smoothly-icon.smoothly-invalid.sc-smoothly-input-select{display:none}.sc-smoothly-input-select-h .label.sc-smoothly-input-select{left:.5rem}.has-value.sc-smoothly-input-select-h:has([slot=label]:not(:empty))>div.select-display.sc-smoothly-input-select,.sc-smoothly-input-select-h:not(.has-value)[placeholder]>div.select-display.sc-smoothly-input-select{overflow:hidden;width:100%}.sc-smoothly-input-select-h>.options.sc-smoothly-input-select{display:flex;flex-direction:column;position:absolute;top:var(--element-height);z-index:10;max-height:var(--menu-height, unset);overflow-x:hidden;overflow-y:auto;background-color:rgb(var(--smoothly-input-background));left:0;right:0;border-radius:0 0 var(--smoothly-input-border-radius) var(--smoothly-input-border-radius);min-width:fit-content;border:rgb(var(--smoothly-input-border, var(--smoothly-color-contrast))) solid 1px;border-top:rgba(var(--smoothly-input-border, var(--smoothly-color-contrast)), .4) solid 1px}[looks=\"grid\"].sc-smoothly-input-select-h>div.options.sc-smoothly-input-select,[looks=border].sc-smoothly-input-select-h>div.options.sc-smoothly-input-select,[looks=\"transparent\"].sc-smoothly-input-select-h>div.options.sc-smoothly-input-select{left:-1px;right:-1px}.sc-smoothly-input-select-h>div.options.sc-smoothly-input-select-s>smoothly-item,.sc-smoothly-input-select-h>div.options.sc-smoothly-input-select-s>div.search-preview{padding:.7em .7em .7em .25em}.sc-smoothly-input-select-h>div.options.sc-smoothly-input-select-s>div.search-preview{display:flex;gap:1em;background-color:rgba(var(--smoothly-primary-tint), .5);color:rgb(var(--smoothly-color-contrast));fill:rgb(var(--smoothly-color-contrast));stroke:rgb(var(--smoothly-color-contrast))}.sc-smoothly-input-select-h>div.options.sc-smoothly-input-select>div.search-preview.sc-smoothly-input-select>smoothly-icon[name=\"backspace-outline\"].sc-smoothly-input-select{margin-left:auto;margin-right:0}.sc-smoothly-input-select-h>div.options.hidden.sc-smoothly-input-select{display:none}";
|
|
10331
|
+
const SmoothlyInputSelectStyle0 = styleCss$E;
|
|
10362
10332
|
|
|
10363
10333
|
const SmoothlyInputSelect = class {
|
|
10364
10334
|
constructor(hostRef) {
|
|
@@ -10644,14 +10614,14 @@ const SmoothlyInputSelect = class {
|
|
|
10644
10614
|
this.addedItems = this.addedItems.concat(index.h("smoothly-item", { value: this.filter, selected: true }, this.filter));
|
|
10645
10615
|
}
|
|
10646
10616
|
render() {
|
|
10647
|
-
return (index.h(index.Host, { key: '
|
|
10617
|
+
return (index.h(index.Host, { key: '1d76fb338bf27746dd487880308232aa8ecdd12f', tabIndex: 0, class: { "has-value": this.selected.length !== 0, open: this.open }, onClick: (event) => this.handleShowOptions(event) }, index.h("div", { key: 'beed912656ab08542f8fde7b5f966ed87d02147a', class: "select-display", ref: element => (this.displaySelectedElement = element) }, this.placeholder), index.h("div", { key: '89f4877de01e0c4b0977dc49f9faf4540de48c35', class: "icons", ref: element => (this.iconsDiv = element) }, index.h("smoothly-icon", { key: '0a50ced02160624b0f4f1e04af48558d2fb24d03', class: "smoothly-invalid", name: "alert-circle", color: "danger", fill: "clear", size: "small", toolTip: this.errorMessage }), index.h("slot", { key: 'c60fe48ae2ac0551b01d1f02f3d60116b2f8e739', name: "end" }), this.looks == "border" && !this.readonly && (index.h("smoothly-icon", { key: 'e072a9bc63f2641bc17cf14ab82e5cead1cae657', ref: element => (this.toggle = element), size: "tiny", name: this.open ? "caret-down-outline" : "caret-forward-outline" }))), index.h("slot", { key: 'f9ff50a655ea619e6efd01ca01cb7de403286d09', name: "label" }), index.h("div", { key: 'fe6ec4db8f46d72488c59bf80fc865f986ec3a37', class: { hidden: !this.open, options: true }, ref: (el) => (this.optionsDiv = el) }, this.filter.length > 0 && (index.h("div", { key: 'a9608fcaed8f494a4b5a5f6af10f55ed250edad3', class: "search-preview" }, index.h("smoothly-icon", { key: '07bb196ecb24bff125198e5acc5ffed7e2b976a1', name: "search-outline", size: "small" }), this.filter, index.h("smoothly-icon", { key: 'b987265ff13c5a553bc5d6c7173dfb510f1aa660', name: "backspace-outline", size: "small", onClick: e => {
|
|
10648
10618
|
e.stopPropagation();
|
|
10649
10619
|
this.filter = "";
|
|
10650
10620
|
this.element.focus();
|
|
10651
|
-
} }), this.mutable && (index.h("smoothly-icon", { key: '
|
|
10621
|
+
} }), this.mutable && (index.h("smoothly-icon", { key: '7cbbeefd7d4935e0e4a465940d4cdea61b40c700', name: "add", size: "small", onClick: e => {
|
|
10652
10622
|
e.stopPropagation();
|
|
10653
10623
|
this.addItem();
|
|
10654
|
-
} })))), index.h("slot", { key: '
|
|
10624
|
+
} })))), index.h("slot", { key: '27e9c24931e5d22058df8a5dd5d18ca3137d7010' }), this.addedItems)));
|
|
10655
10625
|
}
|
|
10656
10626
|
get element() { return index.getElement(this); }
|
|
10657
10627
|
static get watchers() { return {
|
|
@@ -10664,16 +10634,8 @@ const SmoothlyInputSelect = class {
|
|
|
10664
10634
|
};
|
|
10665
10635
|
SmoothlyInputSelect.style = SmoothlyInputSelectStyle0;
|
|
10666
10636
|
|
|
10667
|
-
var
|
|
10668
|
-
|
|
10669
|
-
function is(value) {
|
|
10670
|
-
return value && typeof value == "object" && typeof value.submit == "function";
|
|
10671
|
-
}
|
|
10672
|
-
Submittable.is = is;
|
|
10673
|
-
})(Submittable || (Submittable = {}));
|
|
10674
|
-
|
|
10675
|
-
const styleCss$O = "[color=default].sc-smoothly-input-submit{--smoothly-color:var(--smoothly-default-color);--smoothly-color-contrast:var(--smoothly-default-contrast);--smoothly-color-shade:var(--smoothly-default-shade);--smoothly-color-tint:var(--smoothly-default-tint)}[color=primary].sc-smoothly-input-submit{--smoothly-color:var(--smoothly-primary-color);--smoothly-color-contrast:var(--smoothly-primary-contrast);--smoothly-color-shade:var(--smoothly-primary-shade);--smoothly-color-tint:var(--smoothly-primary-tint)}[color=secondary].sc-smoothly-input-submit{--smoothly-color:var(--smoothly-secondary-color);--smoothly-color-contrast:var(--smoothly-secondary-contrast);--smoothly-color-shade:var(--smoothly-secondary-shade);--smoothly-color-tint:var(--smoothly-secondary-tint)}[color=tertiary].sc-smoothly-input-submit{--smoothly-color:var(--smoothly-tertiary-color);--smoothly-color-contrast:var(--smoothly-tertiary-contrast);--smoothly-color-shade:var(--smoothly-tertiary-shade);--smoothly-color-tint:var(--smoothly-tertiary-tint)}[color=success].sc-smoothly-input-submit{--smoothly-color:var(--smoothly-success-color);--smoothly-color-contrast:var(--smoothly-success-contrast);--smoothly-color-shade:var(--smoothly-success-shade);--smoothly-color-tint:var(--smoothly-success-tint)}[color=warning].sc-smoothly-input-submit{--smoothly-color:var(--smoothly-warning-color);--smoothly-color-contrast:var(--smoothly-warning-contrast);--smoothly-color-shade:var(--smoothly-warning-shade);--smoothly-color-tint:var(--smoothly-warning-tint)}[color=danger].sc-smoothly-input-submit{--smoothly-color:var(--smoothly-danger-color);--smoothly-color-contrast:var(--smoothly-danger-contrast);--smoothly-color-shade:var(--smoothly-danger-shade);--smoothly-color-tint:var(--smoothly-danger-tint)}[color=light].sc-smoothly-input-submit{--smoothly-color:var(--smoothly-light-color);--smoothly-color-contrast:var(--smoothly-light-contrast);--smoothly-color-shade:var(--smoothly-light-shade);--smoothly-color-tint:var(--smoothly-light-tint)}[color=medium].sc-smoothly-input-submit{--smoothly-color:var(--smoothly-medium-color);--smoothly-color-contrast:var(--smoothly-medium-contrast);--smoothly-color-shade:var(--smoothly-medium-shade);--smoothly-color-tint:var(--smoothly-medium-tint)}[color=dark].sc-smoothly-input-submit{--smoothly-color:var(--smoothly-dark-color);--smoothly-color-contrast:var(--smoothly-dark-contrast);--smoothly-color-shade:var(--smoothly-dark-shade);--smoothly-color-tint:var(--smoothly-dark-tint)}.sc-smoothly-input-submit-h{--smoothly-button-border-radius:0.5rem;display:inline-block;box-sizing:border-box;border-radius:var(--smoothly-button-border-radius);cursor:pointer;border:none;outline:none;position:relative}[shape=rounded].sc-smoothly-input-submit-h{--smoothly-button-border-radius:2rem}[type=link].sc-smoothly-input-submit-h{display:inline}[disabled].sc-smoothly-input-submit-h{opacity:0.5;pointer-events:none}.sc-smoothly-input-submit-h>a.sc-smoothly-input-submit,.sc-smoothly-input-submit-h>button.sc-smoothly-input-submit{font-size:110%;font-weight:400;border:1px solid transparent;outline:none;background-color:transparent;cursor:pointer;display:inline-flex;gap:0.5rem;box-sizing:border-box}.sc-smoothly-input-submit-h>a.sc-smoothly-input-submit:empty,.sc-smoothly-input-submit-h>button.sc-smoothly-input-submit:empty{border-width:0}.sc-smoothly-input-submit-h>button.sc-smoothly-input-submit{font-weight:bold;justify-content:center;height:100%;width:100%;border-radius:var(--smoothly-button-border-radius);align-items:center}.sc-smoothly-input-submit-h:not([size=icon]):not([size=flexible])>button.sc-smoothly-input-submit{padding:0.8em;min-width:8em}.sc-smoothly-input-submit-h:not([size=icon]):not([size=flexible]):has(smoothly-icon)>button.sc-smoothly-input-submit{padding:0.6em}[size=icon].sc-smoothly-input-submit-h>button.sc-smoothly-input-submit{padding:0.5em}[type=button].sc-smoothly-input-submit-h>a.sc-smoothly-input-submit{text-align:center;text-decoration:inherit;width:calc(100% - 0.6em)}[size=small].sc-smoothly-input-submit-h>button.sc-smoothly-input-submit{font-size:100%}[size=large].sc-smoothly-input-submit-h>button.sc-smoothly-input-submit{font-size:130%}.sc-smoothly-input-submit-h:not([size=icon]){min-width:8em}[size=flexible].sc-smoothly-input-submit-h{min-width:unset;padding:0;margin:0;display:flex;justify-content:center;align-items:center}[size=flexible].sc-smoothly-input-submit-h>button.sc-smoothly-input-submit{min-width:unset;padding:0;margin:0}[expand].sc-smoothly-input-submit-h{width:100%}[expand=full].sc-smoothly-input-submit-h{border-left:none;border-right:none;--smoothly-button-border-radius:0}[fill=outline].sc-smoothly-input-submit-h>button.sc-smoothly-input-submit{background-color:transparent;color:rgb(var(--smoothly-button-foreground));fill:rgb(var(--smoothly-button-foreground));stroke:rgb(var(--smoothly-button-foreground));border-color:rgb(var(--smoothly-button-foreground))}.sc-smoothly-input-submit-h:not([fill=clear])>button.sc-smoothly-input-submit:hover,.sc-smoothly-input-submit-h>button.sc-smoothly-input-submit:focus-visible,[fill=outline].sc-smoothly-input-submit-h:active>button.sc-smoothly-input-submit::before{border-color:rgb(var(--smoothly-button-focus-color))}[fill=outline].sc-smoothly-input-submit-h>button.sc-smoothly-input-submit:hover::before,[fill=outline].sc-smoothly-input-submit-h>button.sc-smoothly-input-submit:focus-within::before,[fill=outline].sc-smoothly-input-submit-h>button.sc-smoothly-input-submit:active::before{content:\"\";position:absolute;border:2px solid rgb(var(--smoothly-button-focus-border));inset:-1px;border-radius:var(--smoothly-button-border-radius)}.sc-smoothly-input-submit-h:not([fill=clear]):not([fill=outline])>button.sc-smoothly-input-submit:hover,.sc-smoothly-input-submit-h:not([fill=clear]):not([fill=outline])>button.sc-smoothly-input-submit:focus-visible,.sc-smoothly-input-submit-h:not([fill=clear]):not([fill=outline])>button.sc-smoothly-input-submit:active{background:rgb(var(--smoothly-button-hover-background))}.sc-smoothly-input-submit-h>button.sc-smoothly-input-submit,.sc-smoothly-input-submit-h.sc-smoothly-input-submit-s>smoothly-icon,.sc-smoothly-input-submit-h .sc-smoothly-input-submit-s>smoothly-icon{color:rgb(var(--smoothly-button-foreground));stroke:rgb(var(--smoothly-button-foreground));fill:rgb(var(--smoothly-button-foreground))}[hidden].sc-smoothly-input-submit-h{display:none}.sc-smoothly-input-submit-h{display:flex}.sc-smoothly-input-submit-h:not([display]){display:none}.sc-smoothly-input-submit-h.sc-smoothly-input-submit-s>smoothly-button button>*+smoothly-icon,.sc-smoothly-input-submit-h.sc-smoothly-input-submit-s>smoothly-button-confirm button>*+smoothly-icon{display:none}[disabled].sc-smoothly-input-submit-h{cursor:not-allowed}";
|
|
10676
|
-
const SmoothlyInputSubmitStyle0 = styleCss$O;
|
|
10637
|
+
const styleCss$D = "[color=default].sc-smoothly-input-submit{--smoothly-color:var(--smoothly-default-color);--smoothly-color-contrast:var(--smoothly-default-contrast);--smoothly-color-shade:var(--smoothly-default-shade);--smoothly-color-tint:var(--smoothly-default-tint)}[color=primary].sc-smoothly-input-submit{--smoothly-color:var(--smoothly-primary-color);--smoothly-color-contrast:var(--smoothly-primary-contrast);--smoothly-color-shade:var(--smoothly-primary-shade);--smoothly-color-tint:var(--smoothly-primary-tint)}[color=secondary].sc-smoothly-input-submit{--smoothly-color:var(--smoothly-secondary-color);--smoothly-color-contrast:var(--smoothly-secondary-contrast);--smoothly-color-shade:var(--smoothly-secondary-shade);--smoothly-color-tint:var(--smoothly-secondary-tint)}[color=tertiary].sc-smoothly-input-submit{--smoothly-color:var(--smoothly-tertiary-color);--smoothly-color-contrast:var(--smoothly-tertiary-contrast);--smoothly-color-shade:var(--smoothly-tertiary-shade);--smoothly-color-tint:var(--smoothly-tertiary-tint)}[color=success].sc-smoothly-input-submit{--smoothly-color:var(--smoothly-success-color);--smoothly-color-contrast:var(--smoothly-success-contrast);--smoothly-color-shade:var(--smoothly-success-shade);--smoothly-color-tint:var(--smoothly-success-tint)}[color=warning].sc-smoothly-input-submit{--smoothly-color:var(--smoothly-warning-color);--smoothly-color-contrast:var(--smoothly-warning-contrast);--smoothly-color-shade:var(--smoothly-warning-shade);--smoothly-color-tint:var(--smoothly-warning-tint)}[color=danger].sc-smoothly-input-submit{--smoothly-color:var(--smoothly-danger-color);--smoothly-color-contrast:var(--smoothly-danger-contrast);--smoothly-color-shade:var(--smoothly-danger-shade);--smoothly-color-tint:var(--smoothly-danger-tint)}[color=light].sc-smoothly-input-submit{--smoothly-color:var(--smoothly-light-color);--smoothly-color-contrast:var(--smoothly-light-contrast);--smoothly-color-shade:var(--smoothly-light-shade);--smoothly-color-tint:var(--smoothly-light-tint)}[color=medium].sc-smoothly-input-submit{--smoothly-color:var(--smoothly-medium-color);--smoothly-color-contrast:var(--smoothly-medium-contrast);--smoothly-color-shade:var(--smoothly-medium-shade);--smoothly-color-tint:var(--smoothly-medium-tint)}[color=dark].sc-smoothly-input-submit{--smoothly-color:var(--smoothly-dark-color);--smoothly-color-contrast:var(--smoothly-dark-contrast);--smoothly-color-shade:var(--smoothly-dark-shade);--smoothly-color-tint:var(--smoothly-dark-tint)}.sc-smoothly-input-submit-h{--smoothly-button-border-radius:0.5rem;display:inline-block;box-sizing:border-box;border-radius:var(--smoothly-button-border-radius);cursor:pointer;border:none;outline:none;position:relative}[shape=rounded].sc-smoothly-input-submit-h{--smoothly-button-border-radius:2rem}[type=link].sc-smoothly-input-submit-h{display:inline}[disabled].sc-smoothly-input-submit-h{opacity:0.5;pointer-events:none}.sc-smoothly-input-submit-h>a.sc-smoothly-input-submit,.sc-smoothly-input-submit-h>button.sc-smoothly-input-submit{font-size:110%;font-weight:400;border:1px solid transparent;outline:none;background-color:transparent;cursor:pointer;display:inline-flex;gap:0.5rem;box-sizing:border-box}.sc-smoothly-input-submit-h>a.sc-smoothly-input-submit:empty,.sc-smoothly-input-submit-h>button.sc-smoothly-input-submit:empty{border-width:0}.sc-smoothly-input-submit-h>button.sc-smoothly-input-submit{font-weight:bold;justify-content:center;height:100%;width:100%;border-radius:var(--smoothly-button-border-radius);align-items:center}.sc-smoothly-input-submit-h:not([size=icon]):not([size=flexible])>button.sc-smoothly-input-submit{padding:0.8em;min-width:8em}.sc-smoothly-input-submit-h:not([size=icon]):not([size=flexible]):has(smoothly-icon)>button.sc-smoothly-input-submit{padding:0.6em}[size=icon].sc-smoothly-input-submit-h>button.sc-smoothly-input-submit{padding:0.5em}[type=button].sc-smoothly-input-submit-h>a.sc-smoothly-input-submit{text-align:center;text-decoration:inherit;width:calc(100% - 0.6em)}[size=small].sc-smoothly-input-submit-h>button.sc-smoothly-input-submit{font-size:100%}[size=large].sc-smoothly-input-submit-h>button.sc-smoothly-input-submit{font-size:130%}.sc-smoothly-input-submit-h:not([size=icon]){min-width:8em}[size=flexible].sc-smoothly-input-submit-h{min-width:unset;padding:0;margin:0;display:flex;justify-content:center;align-items:center}[size=flexible].sc-smoothly-input-submit-h>button.sc-smoothly-input-submit{min-width:unset;padding:0;margin:0}[expand].sc-smoothly-input-submit-h{width:100%}[expand=full].sc-smoothly-input-submit-h{border-left:none;border-right:none;--smoothly-button-border-radius:0}[fill=outline].sc-smoothly-input-submit-h>button.sc-smoothly-input-submit{background-color:transparent;color:rgb(var(--smoothly-button-foreground));fill:rgb(var(--smoothly-button-foreground));stroke:rgb(var(--smoothly-button-foreground));border-color:rgb(var(--smoothly-button-foreground))}.sc-smoothly-input-submit-h:not([fill=clear])>button.sc-smoothly-input-submit:hover,.sc-smoothly-input-submit-h>button.sc-smoothly-input-submit:focus-visible,[fill=outline].sc-smoothly-input-submit-h:active>button.sc-smoothly-input-submit::before{border-color:rgb(var(--smoothly-button-focus-color))}[fill=outline].sc-smoothly-input-submit-h>button.sc-smoothly-input-submit:hover::before,[fill=outline].sc-smoothly-input-submit-h>button.sc-smoothly-input-submit:focus-within::before,[fill=outline].sc-smoothly-input-submit-h>button.sc-smoothly-input-submit:active::before{content:\"\";position:absolute;border:2px solid rgb(var(--smoothly-button-focus-border));inset:-1px;border-radius:var(--smoothly-button-border-radius)}.sc-smoothly-input-submit-h:not([fill=clear]):not([fill=outline])>button.sc-smoothly-input-submit:hover,.sc-smoothly-input-submit-h:not([fill=clear]):not([fill=outline])>button.sc-smoothly-input-submit:focus-visible,.sc-smoothly-input-submit-h:not([fill=clear]):not([fill=outline])>button.sc-smoothly-input-submit:active{background:rgb(var(--smoothly-button-hover-background))}.sc-smoothly-input-submit-h>button.sc-smoothly-input-submit,.sc-smoothly-input-submit-h.sc-smoothly-input-submit-s>smoothly-icon,.sc-smoothly-input-submit-h .sc-smoothly-input-submit-s>smoothly-icon{color:rgb(var(--smoothly-button-foreground));stroke:rgb(var(--smoothly-button-foreground));fill:rgb(var(--smoothly-button-foreground))}[hidden].sc-smoothly-input-submit-h{display:none}.sc-smoothly-input-submit-h{display:flex}.sc-smoothly-input-submit-h:not([display]){display:none}.sc-smoothly-input-submit-h.sc-smoothly-input-submit-s>smoothly-button button>*+smoothly-icon,.sc-smoothly-input-submit-h.sc-smoothly-input-submit-s>smoothly-button-confirm button>*+smoothly-icon{display:none}[disabled].sc-smoothly-input-submit-h{cursor:not-allowed}";
|
|
10638
|
+
const SmoothlyInputSubmitStyle0 = styleCss$D;
|
|
10677
10639
|
|
|
10678
10640
|
const SmoothlyInputSubmit = class {
|
|
10679
10641
|
constructor(hostRef) {
|
|
@@ -10692,7 +10654,7 @@ const SmoothlyInputSubmit = class {
|
|
|
10692
10654
|
}
|
|
10693
10655
|
componentWillLoad() {
|
|
10694
10656
|
this.smoothlyInputLoad.emit(parent => {
|
|
10695
|
-
if (Submittable.is(parent) && Editable.type.is(parent)) {
|
|
10657
|
+
if (Submittable.Submittable.is(parent) && Editable.type.is(parent)) {
|
|
10696
10658
|
this.parent = parent;
|
|
10697
10659
|
parent.listen("changed", async (p) => {
|
|
10698
10660
|
var _a;
|
|
@@ -10712,13 +10674,13 @@ const SmoothlyInputSubmit = class {
|
|
|
10712
10674
|
}
|
|
10713
10675
|
render() {
|
|
10714
10676
|
var _a, _b;
|
|
10715
|
-
return (index.h(index.Host, { key: '
|
|
10677
|
+
return (index.h(index.Host, { key: 'f659d9fcff6418ed79a26b588a0b2392a85affa2', title: this.toolTip }, this.delete == true ? (index.h("smoothly-button-confirm", { size: this.size, shape: this.shape, expand: this.expand, color: (_a = this.color) !== null && _a !== void 0 ? _a : "danger", fill: this.fill, onSmoothlyConfirm: () => this.clickHandler() }, index.h("slot", null), index.h("smoothly-icon", { name: "trash-outline", fill: "solid", size: "tiny" }))) : (index.h("smoothly-button", { disabled: this.disabled, size: this.size, type: "button", shape: this.shape, expand: this.expand, color: (_b = this.color) !== null && _b !== void 0 ? _b : "success", fill: this.fill, onClick: () => this.clickHandler() }, index.h("slot", null), this.icon && index.h("smoothly-icon", { name: this.icon, fill: "solid", size: "tiny" })))));
|
|
10716
10678
|
}
|
|
10717
10679
|
};
|
|
10718
10680
|
SmoothlyInputSubmit.style = SmoothlyInputSubmitStyle0;
|
|
10719
10681
|
|
|
10720
|
-
const styleCss$
|
|
10721
|
-
const SmoothlyItemStyle0 = styleCss$
|
|
10682
|
+
const styleCss$C = "[selected].sc-smoothly-item-h{background-color:rgb(var(--smoothly-item-selected-background));color:rgb(var(--smoothly-item-selected-foreground));border-left:.3em solid rgb(var(--smoothly-item-selected-border))}[disabled].sc-smoothly-item-h,.sc-smoothly-item-h[disabled].sc-smoothly-item-s>*{background-color:rgb(var(--smoothly-item-disabled-background));color:rgb(var(--smoothly-item-disabled-foreground));opacity:var(--smoothly-item-disabled-opacity);cursor:not-allowed}.sc-smoothly-item-h{padding:0.5em;cursor:pointer;border-left:.3em solid transparent;color:rgb(var(--smoothly-item-foreground));fill:rgb(var(--smoothly-item-foreground));stroke:rgb(var(--smoothly-item-foreground));box-sizing:border-box;min-height:3rem}.sc-smoothly-item-h.sc-smoothly-item-s>*{color:rgb(var(--smoothly-item-foreground));fill:rgb(var(--smoothly-item-foreground));stroke:rgb(var(--smoothly-item-foreground))}.sc-smoothly-item-h:not([disabled])[marked],.sc-smoothly-item-h:not([disabled]):hover,.sc-smoothly-item-h:not([disabled])[marked].sc-smoothly-item-s>*,.sc-smoothly-item-h:not([disabled]):hover.sc-smoothly-item-s>*{background-color:rgb(var(--smoothly-item-hover-background));color:rgb(var(--smoothly-item-hover-foreground));fill:rgb(var(--smoothly-item-hover-foreground));stroke:rgb(var(--smoothly-item-hover-foreground))}";
|
|
10683
|
+
const SmoothlyItemStyle0 = styleCss$C;
|
|
10722
10684
|
|
|
10723
10685
|
const SmoothlyItem = class {
|
|
10724
10686
|
constructor(hostRef) {
|
|
@@ -10753,7 +10715,7 @@ const SmoothlyItem = class {
|
|
|
10753
10715
|
: false;
|
|
10754
10716
|
}
|
|
10755
10717
|
render() {
|
|
10756
|
-
return (index.h(index.Host, { key: '
|
|
10718
|
+
return (index.h(index.Host, { key: '51866154258a830cd316996c2995632892c68034', tabIndex: -1 }, index.h("slot", { key: 'd09f55dd228895f53f8ba4231229ea98aab10b48' })));
|
|
10757
10719
|
}
|
|
10758
10720
|
get element() { return index.getElement(this); }
|
|
10759
10721
|
static get watchers() { return {
|
|
@@ -10762,8 +10724,8 @@ const SmoothlyItem = class {
|
|
|
10762
10724
|
};
|
|
10763
10725
|
SmoothlyItem.style = SmoothlyItemStyle0;
|
|
10764
10726
|
|
|
10765
|
-
const styleCss$
|
|
10766
|
-
const SmoothlyLabelStyle0 = styleCss$
|
|
10727
|
+
const styleCss$B = ".sc-smoothly-label-h{position:relative;width:max-content;display:flex;justify-content:center;align-items:center;padding:0.15em 0.6em;border-radius:2em;color:rgb(var(--smoothly-default-contrast));background-color:hsl(var(--hue), 85%, 70%)}[shape=rectangle].sc-smoothly-label-h{border-radius:0.3em}";
|
|
10728
|
+
const SmoothlyLabelStyle0 = styleCss$B;
|
|
10767
10729
|
|
|
10768
10730
|
const SmoothlyLabel = class {
|
|
10769
10731
|
constructor(hostRef) {
|
|
@@ -10774,15 +10736,15 @@ const SmoothlyLabel = class {
|
|
|
10774
10736
|
}
|
|
10775
10737
|
render() {
|
|
10776
10738
|
var _a;
|
|
10777
|
-
return (index.h(index.Host, { key: '
|
|
10739
|
+
return (index.h(index.Host, { key: '0fc0990f6f3a09be9ba3d964867e6e964725499f', title: this.description, style: {
|
|
10778
10740
|
"--hue": (_a = this.hue) === null || _a === void 0 ? void 0 : _a.toString(),
|
|
10779
|
-
} }, index.h("slot", { key: '
|
|
10741
|
+
} }, index.h("slot", { key: '6e1b85b84645891087866414a70a9f91aa90a8db' })));
|
|
10780
10742
|
}
|
|
10781
10743
|
};
|
|
10782
10744
|
SmoothlyLabel.style = SmoothlyLabelStyle0;
|
|
10783
10745
|
|
|
10784
|
-
const styleCss$
|
|
10785
|
-
const SmoothlyLazyStyle0 = styleCss$
|
|
10746
|
+
const styleCss$A = ".sc-smoothly-lazy-h{display:block}";
|
|
10747
|
+
const SmoothlyLazyStyle0 = styleCss$A;
|
|
10786
10748
|
|
|
10787
10749
|
const SmoothlyLazy = class {
|
|
10788
10750
|
constructor(hostRef) {
|
|
@@ -10795,7 +10757,7 @@ const SmoothlyLazy = class {
|
|
|
10795
10757
|
this.show = true;
|
|
10796
10758
|
}
|
|
10797
10759
|
render() {
|
|
10798
|
-
return (index.h(index.Host, { key: '
|
|
10760
|
+
return (index.h(index.Host, { key: 'de115abe3101a1fa5d32e3ae3cef919afca90ea4' }, index.h("slot", { key: '61aa5f412fbbeca1c1b2f9bafde7d87bca0a94b9', name: "before" }), index.h("smoothly-load-more", { key: '6c3bd20f8f1b0d2b8900dcbb640f33dd76c7452a', onSmoothlyLoadMore: e => this.loadMoreHandler(e) }), this.show && (typeof this.content == "function" ? index.h(this.content, null) : this.content), index.h("slot", { key: 'f0b6bd381a12f5270797494a6eb414c38763e5fd' })));
|
|
10799
10761
|
}
|
|
10800
10762
|
};
|
|
10801
10763
|
SmoothlyLazy.style = SmoothlyLazyStyle0;
|
|
@@ -10839,13 +10801,13 @@ const LoadMore = class {
|
|
|
10839
10801
|
}
|
|
10840
10802
|
}
|
|
10841
10803
|
render() {
|
|
10842
|
-
return index.h(index.Host, { key: '
|
|
10804
|
+
return index.h(index.Host, { key: '7169adeca2956b6f0c85e3a7ceab410a3dddd7f5' });
|
|
10843
10805
|
}
|
|
10844
10806
|
get element() { return index.getElement(this); }
|
|
10845
10807
|
};
|
|
10846
10808
|
|
|
10847
|
-
const styleCss$
|
|
10848
|
-
const SmoothlyModalStyle0 = styleCss$
|
|
10809
|
+
const styleCss$z = ".sc-smoothly-modal-h{position:fixed;display:flex;justify-content:center;top:0;left:0;width:100%;height:100%;background-color:rgba(var(--smoothly-modal-backdrop));color:rgb(var(--smoothly-modal-foreground));z-index:5}.sc-smoothly-modal-h:not([open]),[hidden].sc-smoothly-modal-h{display:none}[align=center].sc-smoothly-modal-h{align-items:center}[align=top].sc-smoothly-modal-h>div.modal.sc-smoothly-modal{margin-top:calc((100dvh - var(--smoothly-modal-max-height)) / 2)}.sc-smoothly-modal-h>div.modal.sc-smoothly-modal{display:flex;flex-direction:column;padding:2rem;gap:1.5rem;width:var(--smoothly-modal-width, 40rem);max-width:calc(100dvw - 1rem);height:fit-content;max-height:min(var(--smoothly-modal-max-height), 100dvh);background:rgb(var(--smoothly-modal-background, var(--smoothly-color)));border:1px solid rgb(var(--smoothly-modal-border));border-radius:var(--smoothly-modal-border-radius);box-shadow:var(--smoothly-modal-shadow);box-sizing:border-box}.sc-smoothly-modal-h>div.modal.sc-smoothly-modal>div.header.sc-smoothly-modal:empty,.sc-smoothly-modal-h>div.modal.sc-smoothly-modal>div.actions.sc-smoothly-modal:empty{display:none}.sc-smoothly-modal-h>div.modal.sc-smoothly-modal>div.header.sc-smoothly-modal{display:flex;justify-content:space-between;align-items:center}.sc-smoothly-modal-h>div.modal.sc-smoothly-modal>*.sc-smoothly-modal,.sc-smoothly-modal-h>div.modal.sc-smoothly-modal>div.header.sc-smoothly-modal>*.sc-smoothly-modal{margin-block:0}.sc-smoothly-modal-h>div.modal.sc-smoothly-modal>*.sc-smoothly-modal:not(.header):not(.actions){overflow-y:auto}.sc-smoothly-modal-h>div.modal.sc-smoothly-modal>div.header.sc-smoothly-modal:not(:has([slot=\"header\"])){justify-content:end}.sc-smoothly-modal-h>div.modal.sc-smoothly-modal>div.header.sc-smoothly-modal>smoothly-icon.sc-smoothly-modal:not([slot=\"header\"]){cursor:pointer;opacity:0.7;color:rgb(var(--smoothly-default-contrast))}.sc-smoothly-modal-h>div.modal.sc-smoothly-modal>div.header.sc-smoothly-modal>smoothly-icon.sc-smoothly-modal:not([slot=\"header\"]):hover{opacity:1}.sc-smoothly-modal-h>div.modal.sc-smoothly-modal>div.actions.sc-smoothly-modal{display:flex;justify-content:center;align-items:center;gap:1rem;flex-wrap:wrap}";
|
|
10810
|
+
const SmoothlyModalStyle0 = styleCss$z;
|
|
10849
10811
|
|
|
10850
10812
|
const SmoothlyModal = class {
|
|
10851
10813
|
constructor(hostRef) {
|
|
@@ -10859,7 +10821,7 @@ const SmoothlyModal = class {
|
|
|
10859
10821
|
this.smoothlyModalChange.emit(this.open);
|
|
10860
10822
|
}
|
|
10861
10823
|
render() {
|
|
10862
|
-
return (index.h(index.Host, { key: '
|
|
10824
|
+
return (index.h(index.Host, { key: '583eadffaf2e24575a5c1cc4e1fddd804b184dd5', role: "alertdialog" }, index.h("div", { key: 'ca8af6bb11f18895f1899db9facd795c061430c0', class: "modal" }, index.h("div", { key: 'bc66d69748c12e5707f7c601717d1f96309ee09d', class: "header" }, index.h("slot", { key: 'b41c4051fd74e25efc53334172724b91070a4359', name: "header" }), this.closable && index.h("smoothly-icon", { key: '138c5ba8fdcf1d1132d92c36299615ea1fda0f3a', name: "close-outline", fill: "solid", onClick: () => (this.open = false) })), index.h("slot", { key: '0ac2f594b68b53729724f8fc372b9a451d42b909' }), index.h("div", { key: '05b7d6ca01ee55b0e2a1afd34226505a0f9772c1', class: "actions" }, index.h("slot", { key: 'd3395b6b76ace8c9916b9d60e4208bd7a3e8d032', name: "actions" })))));
|
|
10863
10825
|
}
|
|
10864
10826
|
static get watchers() { return {
|
|
10865
10827
|
"open": ["openChanged"]
|
|
@@ -10867,156 +10829,477 @@ const SmoothlyModal = class {
|
|
|
10867
10829
|
};
|
|
10868
10830
|
SmoothlyModal.style = SmoothlyModalStyle0;
|
|
10869
10831
|
|
|
10870
|
-
const styleCss$
|
|
10871
|
-
const
|
|
10832
|
+
const styleCss$y = ".sc-smoothly-notification-h{display:block;position:relative;min-width:30em;min-height:3em;border-radius:5px;margin:0.5em}.sc-smoothly-notification-h>span.icon.sc-smoothly-notification>smoothly-icon.sc-smoothly-notification,.sc-smoothly-notification-h>span.clean.sc-smoothly-notification{display:flex;justify-content:center;align-self:center}.sc-smoothly-notification-h>span.sc-smoothly-notification{margin:0 2rem 0 1rem}.sc-smoothly-notification-h>span.icon.sc-smoothly-notification{display:flex;width:100%;justify-content:center}.sc-smoothly-notification-h>span.icon.sc-smoothly-notification>p.sc-smoothly-notification{padding-right:1em}.sc-smoothly-notification-h>span.sc-smoothly-notification>p.sc-smoothly-notification{text-align:left}[hidden].sc-smoothly-notification-h{display:none}.sc-smoothly-notification-h>span.icon.sc-smoothly-notification>smoothly-icon.sc-smoothly-notification{margin:0 0.5rem}.sc-smoothly-notification-h>smoothly-trigger.sc-smoothly-notification{font-size:0.7em;position:absolute;right:0}";
|
|
10833
|
+
const SmoothlyNotificationStyle0 = styleCss$y;
|
|
10834
|
+
|
|
10835
|
+
const Notification = class {
|
|
10836
|
+
constructor(hostRef) {
|
|
10837
|
+
index.registerInstance(this, hostRef);
|
|
10838
|
+
this.remove = index.createEvent(this, "remove", 7);
|
|
10839
|
+
this.listener = notice => {
|
|
10840
|
+
if (notice.state == "closed")
|
|
10841
|
+
this.remove.emit(notice);
|
|
10842
|
+
else
|
|
10843
|
+
this.tick = {};
|
|
10844
|
+
};
|
|
10845
|
+
this.notice = undefined;
|
|
10846
|
+
this.closable = true;
|
|
10847
|
+
this.icon = undefined;
|
|
10848
|
+
this.tick = {};
|
|
10849
|
+
}
|
|
10850
|
+
get properties() {
|
|
10851
|
+
let result;
|
|
10852
|
+
switch (this.notice.state) {
|
|
10853
|
+
case "delayed":
|
|
10854
|
+
case "warning":
|
|
10855
|
+
result = ["warning", "warning-outline"];
|
|
10856
|
+
break;
|
|
10857
|
+
case "success":
|
|
10858
|
+
result = ["success", "checkmark-circle"];
|
|
10859
|
+
break;
|
|
10860
|
+
case "executing":
|
|
10861
|
+
result = ["light", "hourglass-outline"];
|
|
10862
|
+
break;
|
|
10863
|
+
case "failed":
|
|
10864
|
+
result = ["danger", "alert-circle"];
|
|
10865
|
+
break;
|
|
10866
|
+
default:
|
|
10867
|
+
result = ["light", undefined];
|
|
10868
|
+
break;
|
|
10869
|
+
}
|
|
10870
|
+
return result;
|
|
10871
|
+
}
|
|
10872
|
+
onTrigger(event) {
|
|
10873
|
+
if (event.detail.name == "close") {
|
|
10874
|
+
event.stopPropagation();
|
|
10875
|
+
this.notice.close();
|
|
10876
|
+
}
|
|
10877
|
+
}
|
|
10878
|
+
onUpdatedNotice(newValue, oldValue) {
|
|
10879
|
+
if (oldValue)
|
|
10880
|
+
oldValue.unlisten(this.listener);
|
|
10881
|
+
newValue.listen(this.listener);
|
|
10882
|
+
}
|
|
10883
|
+
componentDidLoad() {
|
|
10884
|
+
this.onUpdatedNotice(this.notice);
|
|
10885
|
+
}
|
|
10886
|
+
render() {
|
|
10887
|
+
return (index.h(index.Host, { key: 'c611384b95683af1f6ed47b501214a6271120cc5', color: this.properties[0], fill: "solid" }, this.closable && (index.h("smoothly-trigger", { key: 'b35a32ca975321bce93d94d0d9fd85efe3779493', fill: "clear", name: "close" }, index.h("smoothly-icon", { key: '39ed83da3b2e2705de5e420e96b5a9157324c422', name: "close-circle-outline" }))), index.h("span", { key: 'bacd889f892be05aa3cef0cddfaaf16675372eb9', class: this.icon ? "icon" : "clean" }, this.icon && index.h("smoothly-icon", { key: '91470bdc68bb23be8b6b74eb62bca99f3c7566cd', name: this.properties[1] }), index.h("p", { key: '4ba91f71befba77a1510469899850f78d9300ab1' }, this.notice.message))));
|
|
10888
|
+
}
|
|
10889
|
+
static get watchers() { return {
|
|
10890
|
+
"notice": ["onUpdatedNotice"]
|
|
10891
|
+
}; }
|
|
10892
|
+
};
|
|
10893
|
+
Notification.style = SmoothlyNotificationStyle0;
|
|
10894
|
+
|
|
10895
|
+
const styleCss$x = ".sc-smoothly-notifier-h{display:block}[hidden].sc-smoothly-notifier-h{display:none}.sc-smoothly-notifier-h>aside.sc-smoothly-notifier{display:flex;flex-wrap:wrap-reverse;align-content:stretch;position:fixed;bottom:3rem;left:0;text-align:center;z-index:100}";
|
|
10896
|
+
const SmoothlyNotifierStyle0 = styleCss$x;
|
|
10872
10897
|
|
|
10873
|
-
const
|
|
10898
|
+
const Notifier = class {
|
|
10874
10899
|
constructor(hostRef) {
|
|
10875
10900
|
index.registerInstance(this, hostRef);
|
|
10901
|
+
this.icon = false;
|
|
10902
|
+
this.notices = [];
|
|
10903
|
+
}
|
|
10904
|
+
onNotice(event) {
|
|
10905
|
+
this.notices = [...this.notices, event.detail];
|
|
10906
|
+
}
|
|
10907
|
+
onRemove(event) {
|
|
10908
|
+
this.notices = [...this.notices.filter(n => n != event.detail)];
|
|
10876
10909
|
}
|
|
10877
10910
|
render() {
|
|
10878
|
-
return
|
|
10911
|
+
return [
|
|
10912
|
+
index.h("slot", { key: '3dc0962bdfdfd4e8903426f810209aa823e7b72e' }),
|
|
10913
|
+
index.h("aside", { key: 'fb97e4ecd99175554a59212cd3054ef3577e3cad' }, this.notices.map(n => (index.h("smoothly-notification", { notice: n, icon: this.icon })))),
|
|
10914
|
+
];
|
|
10879
10915
|
}
|
|
10880
10916
|
};
|
|
10881
|
-
|
|
10917
|
+
Notifier.style = SmoothlyNotifierStyle0;
|
|
10882
10918
|
|
|
10883
|
-
const styleCss$
|
|
10884
|
-
const
|
|
10919
|
+
const styleCss$w = "[hidden].sc-smoothly-spinner-h{display:none}.sc-smoothly-spinner-h{cursor:wait;--spinner-time:1.4s;--spinner-color:var(--smoothly-color-contrast);--spinner-background:var(--smoothly-color);--spinner-background-opacity:var(--smoothly-semitransparent, 0.8);display:block;stroke:rgb(var(--spinner-color));background-color:rgba(var(--spinner-background), var(--spinner-background-opacity))}.sc-smoothly-spinner-h:not([overlay]){width:var(--spinner-size);height:var(--spinner-size)}[overlay].sc-smoothly-spinner-h{position:absolute;inset:0;width:100%;height:100%;z-index:4;background-color:rgba(var(--spinner-background), var(--spinner-background-opacity))}[color].sc-smoothly-spinner-h:not([overlay]),[color][overlay].sc-smoothly-spinner-h{background-color:rgba(var(--spinner-background), var(--spinner-background-opacity));stroke:rgb(var(--spinner-color))}[overlay].sc-smoothly-spinner-h>svg.sc-smoothly-spinner{position:absolute;width:var(--spinner-size);left:calc(50% - var(--spinner-size) / 2);top:calc(50% - var(--spinner-size) / 2)}.sc-smoothly-spinner-h>svg.sc-smoothly-spinner{animation:SPIN-SVG var(--spinner-time) linear infinite}.sc-smoothly-spinner-h>svg.sc-smoothly-spinner>circle.sc-smoothly-spinner{transform-origin:center;animation:SPIN-CIRCLE var(--spinner-time) ease-in-out infinite;stroke-dasharray:187;stroke-dashoffset:0}@keyframes SPIN-SVG{0%{transform:rotate(0deg)}100%{transform:rotate(270deg)}}@keyframes SPIN-CIRCLE{0%{stroke-dashoffset:187}50%{stroke-dashoffset:46.75;transform:rotate(135deg)}100%{stroke-dashoffset:187;transform:rotate(450deg)}}";
|
|
10920
|
+
const SmoothlySpinnerStyle0 = styleCss$w;
|
|
10885
10921
|
|
|
10886
|
-
const
|
|
10922
|
+
const SmoothlySpinner = class {
|
|
10887
10923
|
constructor(hostRef) {
|
|
10888
10924
|
index.registerInstance(this, hostRef);
|
|
10925
|
+
this.size = "large";
|
|
10926
|
+
this.overlay = undefined;
|
|
10889
10927
|
}
|
|
10890
10928
|
render() {
|
|
10891
|
-
|
|
10929
|
+
const strokeWidth = this.size == "large" ? 6 : this.size == "medium" ? 8 : this.size == "icon" ? 8 : 12;
|
|
10930
|
+
return (index.h(index.Host, { key: 'ad927ab405fb8e1d9f65754de12159074f4674e4', style: {
|
|
10931
|
+
"--spinner-size": this.size == "large" ? "5em" : this.size == "medium" ? "3em" : this.size == "icon" ? "1.8em" : "1.2em",
|
|
10932
|
+
} }, index.h("svg", { key: 'c40d7dc9441ded52ef098365baf77870b110f757', class: "spinner", viewBox: `0 0 ${60 + strokeWidth} ${60 + strokeWidth}`, xmlns: "http://www.w3.org/2000/svg" }, index.h("circle", { key: 'c3316f222b869cca1e1fd167c39a064ea3f210ab', class: "path", fill: "none", "stroke-width": strokeWidth, "stroke-linecap": "round", cx: `${30 + strokeWidth / 2}`, cy: `${30 + strokeWidth / 2}`, r: "30" }))));
|
|
10892
10933
|
}
|
|
10893
10934
|
};
|
|
10894
|
-
|
|
10935
|
+
SmoothlySpinner.style = SmoothlySpinnerStyle0;
|
|
10895
10936
|
|
|
10896
|
-
const styleCss$
|
|
10897
|
-
const
|
|
10937
|
+
const styleCss$v = ".sc-smoothly-summary-h{display:grid;grid-template-columns:auto 1fr;column-gap:0.3rem}.sc-smoothly-summary-h>details.sc-smoothly-summary{display:contents}.sc-smoothly-summary-h>details.sc-smoothly-summary>summary.sc-smoothly-summary{display:grid;grid-template-columns:subgrid;grid-column:1/-1;list-style:none;align-items:center;cursor:pointer}.sc-smoothly-summary-h>details.sc-smoothly-summary>summary.sc-smoothly-summary>smoothly-icon.sc-smoothly-summary{transition:transform 0.2s, opacity 0.1s;opacity:0.3}.sc-smoothly-summary-h>details.sc-smoothly-summary>summary.sc-smoothly-summary:hover>smoothly-icon.sc-smoothly-summary{opacity:1}.sc-smoothly-summary-h>details[open].sc-smoothly-summary>summary.sc-smoothly-summary>smoothly-icon.sc-smoothly-summary{transform:rotate(90deg)}.sc-smoothly-summary-h>details.sc-smoothly-summary-s>[slot=content]{grid-column:2}@media (prefers-reduced-motion){.sc-smoothly-summary-h>details.sc-smoothly-summary>summary.sc-smoothly-summary>smoothly-icon.sc-smoothly-summary{transition:none}}@supports selector(details::details-content){.sc-smoothly-summary-h>details.sc-smoothly-summary::details-content{grid-column:2}}";
|
|
10938
|
+
const SmoothlySummaryStyle0 = styleCss$v;
|
|
10898
10939
|
|
|
10899
|
-
const
|
|
10940
|
+
const SmoothlySummary = class {
|
|
10900
10941
|
constructor(hostRef) {
|
|
10901
10942
|
index.registerInstance(this, hostRef);
|
|
10902
|
-
this.
|
|
10943
|
+
this.smoothlySummaryOpen = index.createEvent(this, "smoothlySummaryOpen", 7);
|
|
10944
|
+
this.inputs = {};
|
|
10945
|
+
this.open = false;
|
|
10946
|
+
this.color = undefined;
|
|
10947
|
+
this.fill = "solid";
|
|
10948
|
+
this.size = "tiny";
|
|
10949
|
+
}
|
|
10950
|
+
async toggleHandler(event) {
|
|
10951
|
+
if (event.target instanceof HTMLDetailsElement) {
|
|
10952
|
+
this.open = event.target.open;
|
|
10953
|
+
this.smoothlySummaryOpen.emit(this.open);
|
|
10954
|
+
this.open
|
|
10955
|
+
? await Promise.all(Object.values(this.inputs).map(input => input.register()))
|
|
10956
|
+
: await Promise.all(Object.values(this.inputs).map(input => input.unregister()));
|
|
10957
|
+
}
|
|
10958
|
+
}
|
|
10959
|
+
onInputLoad(event) {
|
|
10960
|
+
if (Input.Element.is(event.target)) {
|
|
10961
|
+
this.inputs[event.target.name] = event.target;
|
|
10962
|
+
if (!this.open)
|
|
10963
|
+
event.stopPropagation();
|
|
10964
|
+
}
|
|
10965
|
+
}
|
|
10966
|
+
render() {
|
|
10967
|
+
return (index.h("details", { key: '867e247e3c2b27f03fe3d8d79ddccd2a4a24bd2a', onToggle: e => this.toggleHandler(e), open: this.open }, index.h("summary", { key: '302c2da5ca9acd9b7b1d0500f7cd449d5c0363b9' }, index.h("smoothly-icon", { key: 'd8f86b4a3a12ccb790a9d00269501d8f427eafcb', name: "caret-forward", color: this.color, fill: this.fill, size: this.size }), index.h("slot", { key: 'b6746b271026ed27921a810b9adcc30a5d139a57', name: "summary" })), index.h("slot", { key: '81118cd7721c2ed5294eabb32c0fe819c423d9e0', name: "content" })));
|
|
10968
|
+
}
|
|
10969
|
+
};
|
|
10970
|
+
SmoothlySummary.style = SmoothlySummaryStyle0;
|
|
10971
|
+
|
|
10972
|
+
const styleCss$u = ".sc-smoothly-tab-h{display:contents;--line-width:3px}.sc-smoothly-tab-h>div.sc-smoothly-tab:first-child{grid-column:span 1;background-color:transparent;border-bottom-color:rgb(var(--smoothly-default-shade));border-bottom-width:var(--line-width);border-bottom-style:solid}.sc-smoothly-tab-h>div.sc-smoothly-tab:first-child>label.sc-smoothly-tab{display:block;padding:.5rem;width:fit-content;margin:auto;cursor:pointer}[open].sc-smoothly-tab-h>div.sc-smoothly-tab:first-child>label.sc-smoothly-tab{border-bottom:var(--line-width) solid rgb(var(--smoothly-primary-color));margin-bottom:calc(-1 * var(--line-width));position:relative}.sc-smoothly-tab-h>div.sc-smoothly-tab:nth-child(2){grid-row:2 / 3;grid-column:1 / -1}";
|
|
10973
|
+
const SmoothlyTabStyle0 = styleCss$u;
|
|
10974
|
+
|
|
10975
|
+
const SmoothlyTab = class {
|
|
10976
|
+
constructor(hostRef) {
|
|
10977
|
+
index.registerInstance(this, hostRef);
|
|
10978
|
+
this.smoothlyTabOpen = index.createEvent(this, "smoothlyTabOpen", 7);
|
|
10979
|
+
this.smoothlyTabLoad = index.createEvent(this, "smoothlyTabLoad", 7);
|
|
10980
|
+
this.inputs = {};
|
|
10981
|
+
this.label = undefined;
|
|
10982
|
+
this.open = undefined;
|
|
10983
|
+
}
|
|
10984
|
+
async openHandler() {
|
|
10985
|
+
if (this.open)
|
|
10986
|
+
this.smoothlyTabOpen.emit(this.label);
|
|
10987
|
+
this.open
|
|
10988
|
+
? await Promise.all(Object.values(this.inputs).map(input => input.register()))
|
|
10989
|
+
: await Promise.all(Object.values(this.inputs).map(input => input.unregister()));
|
|
10990
|
+
}
|
|
10991
|
+
onClick() {
|
|
10992
|
+
this.open = true;
|
|
10993
|
+
}
|
|
10994
|
+
connectedCallback() {
|
|
10995
|
+
this.smoothlyTabLoad.emit();
|
|
10903
10996
|
}
|
|
10904
10997
|
async componentDidLoad() {
|
|
10905
|
-
|
|
10906
|
-
|
|
10907
|
-
|
|
10998
|
+
await this.openHandler();
|
|
10999
|
+
}
|
|
11000
|
+
onInputLoad(event) {
|
|
11001
|
+
if (Input.Element.is(event.target)) {
|
|
11002
|
+
this.inputs[event.target.name] = event.target;
|
|
11003
|
+
if (!this.open)
|
|
11004
|
+
event.stopPropagation();
|
|
11005
|
+
}
|
|
10908
11006
|
}
|
|
10909
11007
|
render() {
|
|
10910
|
-
return (index.h(index.Host, { key: '
|
|
11008
|
+
return (index.h(index.Host, { key: 'cf40ac0574fdd7f01bc314ae73fadba15bfbe85b' }, index.h("div", { key: '4bc51b1667b0e5e9d859e9ee56cb60e595d3834b' }, index.h("label", { key: '82086748d110f0b960196cc23c6293926e136edf' }, this.label)), index.h("div", { key: 'e82a249814fda484771336d830f5ed2b63205da9', hidden: !this.open }, index.h("slot", { key: '3b57b209692f6a98d826c53154ae98e8a6201dee' }))));
|
|
10911
11009
|
}
|
|
11010
|
+
static get watchers() { return {
|
|
11011
|
+
"open": ["openHandler"]
|
|
11012
|
+
}; }
|
|
10912
11013
|
};
|
|
10913
|
-
|
|
11014
|
+
SmoothlyTab.style = SmoothlyTabStyle0;
|
|
10914
11015
|
|
|
10915
|
-
const styleCss$
|
|
10916
|
-
const
|
|
11016
|
+
const styleCss$t = ".sc-smoothly-table-h{display:grid;grid-template-columns:repeat(var(--columns), auto);color:rgb(var(--smoothly-table-foreground));stroke:rgb(var(--smoothly-table-foreground));fill:rgb(var(--smoothly-table-foreground))}";
|
|
11017
|
+
const SmoothlyTableStyle0 = styleCss$t;
|
|
10917
11018
|
|
|
10918
|
-
const
|
|
11019
|
+
const SmoothlyTable = class {
|
|
10919
11020
|
constructor(hostRef) {
|
|
10920
11021
|
index.registerInstance(this, hostRef);
|
|
11022
|
+
this.columns = 1;
|
|
11023
|
+
}
|
|
11024
|
+
smoothlyTableExpandableRowChange(event) {
|
|
11025
|
+
event.stopPropagation();
|
|
11026
|
+
}
|
|
11027
|
+
smoothlyTableExpandableCellChange(event) {
|
|
11028
|
+
event.stopPropagation();
|
|
10921
11029
|
}
|
|
10922
11030
|
render() {
|
|
10923
|
-
return (index.h(index.Host, { key: 'f438f845e508f119760a5d9d1417537e0a187c8d' }, index.h("smoothly-display", { key: 'b063c8b2e634ad0334c5eee04fac31d3d2fa5cea', type: "text", value: "Group" }), index.h("smoothly-next-table", { key: '52246d8d8cc18b2c732722f78a8f92ed9f7fc56f', color: "primary", columns: 2 }, index.h("smoothly-next-table-head", { key: '03d8a1fd2afc66618c4636efabfc242b8107ce89' }, index.h("smoothly-next-table-row", { key: '389efc99c30410173841b3898b03bfa344c84fc2' }, index.h("smoothly-next-table-cell", { key: '2a1252bf188f55b0c8530490c7e5a191933c2e51' }, "Date"), index.h("smoothly-next-table-cell", { key: '981a383ac216ad3a763b10b77a78e56b2e0acb9d' }, "Total"))), index.h("smoothly-next-table-body", { key: '352c32809ef5a0a6f026f121b3e9fa7c5602fc9b' }, index.h("smoothly-next-table-row-group", { key: '34b2cde15f636a4a1bd8219f3b82655014a6827f', align: true }, index.h("smoothly-display", { key: '6d08243f9bed82544920f2b1e29c8cd87ac6fc7b', slot: "start", type: "date", value: "2024-01-01" }), index.h("smoothly-display", { key: 'c36b911fb892d60f7285bb44cdd531dd49f32f80', slot: "end", type: "price", currency: "EUR", value: 510 }), index.h("smoothly-next-table-expandable-row", { key: 'dc9d0a9925e00e9f8cb43a417d3967678a4cf793' }, index.h("smoothly-next-table-cell", { key: 'd15f4087317aab19ca1c4f8082e53ef73b5f4e72' }, index.h("smoothly-display", { key: 'e97116560bc6cec0faca35bb072e2513d933a6ba', type: "date-time", value: "2024-01-01T01:37:00.000Z" })), index.h("smoothly-next-table-cell", { key: 'dd63e1ac67603230824f3eb3dbd0608d885dda1c' }, index.h("smoothly-display", { key: 'd2a71eebcb034dae79995da03e1a158aa27c86c6', type: "price", currency: "EUR", value: 250 })), index.h("smoothly-lazy", { key: '217d130757e685618c2e880852765916eea69a4e', slot: "detail", content: index.h(index.Fragment, null, "Details of 2024-01-01T01:37:00.000Z") })), index.h("smoothly-next-table-expandable-row", { key: 'a493c7ac95042b65c65919ec8e8f446008e95727' }, index.h("smoothly-next-table-cell", { key: 'f80da21fdaf0ed83ffeda20884f79868488994f9' }, index.h("smoothly-display", { key: 'f0fcc94ccef41a242cc1a3993b79970e79798d29', type: "date-time", value: "2024-01-01T13:37:00.000Z" })), index.h("smoothly-next-table-cell", { key: '354a83be386ed4dc31e2cc9e3dca5f5c03e89a0f' }, index.h("smoothly-display", { key: 'df7600b467501dce2faf70a97f493f4a28ee31f0', type: "price", currency: "EUR", value: 260 })), index.h("smoothly-lazy", { key: '2472126497a4abbe6dff4878c12e922620611a01', slot: "detail", content: index.h(index.Fragment, null, "Details of 2024-01-01T13:37:00.000Z") }))), index.h("smoothly-next-table-row", { key: 'ea225e8856b326e1b26a7495b42905853ec4bf60' }, index.h("smoothly-next-table-cell", { key: '2f32e34fe19a259d3212770e342092a7831a3e7a' }, index.h("smoothly-display", { key: '21ff447d38f07c50e6101438e61dddf43a0cf3bb', type: "date", value: "2024-01-02" })), index.h("smoothly-next-table-cell", { key: '55052d34e1bc2a4cf7e092785e12153e05632bed' }, index.h("smoothly-display", { key: '631ac0e93aaaa61d9af8f9096b3a6d7d1fea9ad3', type: "price", currency: "EUR", value: 130 }))), index.h("smoothly-next-table-row-group", { key: '5b9248a9e92120d03766c3ce67865a59e8b5bfd8' }, index.h("smoothly-display", { key: '41197505cd1a42721c0d9844616e04e870d2e0a2', slot: "start", type: "date", value: "2024-01-03" }), index.h("smoothly-display", { key: '7302e8c593ef5bc023bb233282f327793856593c', slot: "end", type: "price", currency: "EUR", value: 720 }), index.h("smoothly-next-table-expandable-row", { key: 'e0a6c69ab62a15c43e44816cb5130e58ceec4492' }, index.h("smoothly-next-table-cell", { key: '4a48560719d745cf3015d8d34c151276bb13eaea' }, index.h("smoothly-display", { key: '2fdae1cb2862c52c685f9f7ed9087fcbb4a08b60', type: "date-time", value: "2024-01-03T01:37:00.000Z" })), index.h("smoothly-next-table-cell", { key: '2f00eb73e451ad74bfff8b01f2eee8adcae5f94c' }, index.h("smoothly-display", { key: '304430905b43e8995f90c3812cfebc8104d3e150', type: "price", currency: "EUR", value: 320 })), index.h("smoothly-lazy", { key: 'e141401ae7f5b7c45a00b09e9cfe12e9b8c597ab', slot: "detail", content: index.h(index.Fragment, null, "Details of 2024-01-03T01:37:00.000Z") })), index.h("smoothly-next-table-expandable-row", { key: '50de8386a3d931a717f14720c8f352532943b773' }, index.h("smoothly-next-table-cell", { key: '6739fea91bb41955864d52cb4a5c85e4c2f81b83' }, index.h("smoothly-display", { key: '94fd10189e30070f6ea7d210e09c9ecfd9ad64d7', type: "date-time", value: "2024-01-03T13:37:00.000Z" })), index.h("smoothly-next-table-cell", { key: 'f78b644c126d08151babb3e024e2a79e61ffaf46' }, index.h("smoothly-display", { key: '720a36e523dd6eabfe3b3f71abf7087955c52224', type: "price", currency: "EUR", value: 400 })), index.h("smoothly-lazy", { key: '340d8a3270f6128d0bc19504d88f1732bcf84bee', slot: "detail", content: index.h(index.Fragment, null, "Details of 2024-01-03T13:37:00.000Z") }))), index.h("smoothly-next-table-row-group", { key: 'c34727de27d394bb98b879884b673d0bd75750ae' }, index.h("smoothly-display", { key: '567b2e5b524c9cada1aa51785c9da29a3ff8f6e7', slot: "start", type: "date", value: "2024-01-04" }), index.h("smoothly-next-table-expandable-row", { key: 'e9397664dfb67b2aa789c258cbb7db52331b9f11' }, index.h("smoothly-next-table-cell", { key: '133d0c0bbad9906cdd7fed0002281e6bd8f95735' }, index.h("smoothly-display", { key: '12553307bd2858b815d1b1fd3bb60cca3a9ac172', type: "date-time", value: "2024-01-04T01:37:00.000Z" })), index.h("smoothly-next-table-cell", { key: 'bb16cb23cd3bf926a3e7cff600ec5e46afb49d95' }, index.h("smoothly-display", { key: '946cb985b7983915c63cb9bec0c77bc014c057e5', type: "price", currency: "EUR", value: 320 })), index.h("smoothly-lazy", { key: 'ec0e18ee5349eb4c741033ffab823a603d818d40', slot: "detail", content: index.h(index.Fragment, null, "Details of 2024-01-04T01:37:00.000Z") })), index.h("smoothly-next-table-expandable-row", { key: '7de78cf016e32c3377629ff7839493ed17655c9c' }, index.h("smoothly-next-table-cell", { key: '77683b0d026583ba660324feb22e098f7f994a15' }, index.h("smoothly-display", { key: '8e278dc09aa54b862b5eba6b9bcc37207a790c71', type: "date-time", value: "2024-01-04T13:37:00.000Z" })), index.h("smoothly-next-table-cell", { key: '158c5fc2040dedf1d7a243db4ddd94bcd1830b31' }, index.h("smoothly-display", { key: '61f2712bb9661e12899b47596ba0600972c4aa1e', type: "price", currency: "EUR", value: 400 })), index.h("smoothly-lazy", { key: '7e36c202eeaa9f50c9dee678bf7701f1309f5a76', slot: "detail", content: index.h(index.Fragment, null, "Details of 2024-01-04T13:37:00.000Z") }))), index.h("smoothly-next-table-row-group", { key: 'bc2b345fdc9685d08783167a6bbdbbfacda38862' }, index.h("smoothly-display", { key: '5585c6dcc49ebb4618884ae160bf912897a0518c', slot: "end", type: "price", currency: "EUR", value: 720 }), index.h("smoothly-next-table-expandable-row", { key: 'a82a7353e74bda8c0ad2cc0ee67ae01999d4166c' }, index.h("smoothly-next-table-cell", { key: 'c05d7d3a0be4835275dcc3843a00a59f04ab254f' }, index.h("smoothly-display", { key: '2b9558f096c0b9b5aa1079a62ab16ca13f1254e1', type: "date-time", value: "2024-01-05T01:37:00.000Z" })), index.h("smoothly-next-table-cell", { key: '41eba08c01304a4f9aec7551a1ef4625a678a30c' }, index.h("smoothly-display", { key: 'f473141b066e0d2068e0ba6c08bc20ccda7134b9', type: "price", currency: "EUR", value: 320 })), index.h("smoothly-lazy", { key: 'b779ad6c760e839bcabf6510a87b103400d062a6', slot: "detail", content: index.h(index.Fragment, null, "Details of 2024-01-05T01:37:00.000Z") })), index.h("smoothly-next-table-expandable-row", { key: '6866db858e2f5790f213fd12dd3c60f1fb8ec852' }, index.h("smoothly-next-table-cell", { key: '53f0601d302570f2626ac4585b421b1eab0b9a48' }, index.h("smoothly-display", { key: '4415bed74423eb3278d389edb9fc86aabe673fed', type: "date-time", value: "2024-01-05T13:37:00.000Z" })), index.h("smoothly-next-table-cell", { key: 'eb182a27716b2e2301a3dcd7384204ab4805f536' }, index.h("smoothly-display", { key: 'e33ea69bdeb61f7a8f6b3c86bf83599e3c9560e4', type: "price", currency: "EUR", value: 400 })), index.h("smoothly-lazy", { key: 'a3ce825e7a5aa4ef6d8b675376f51f43fbc9e928', slot: "detail", content: index.h(index.Fragment, null, "Details of 2024-01-05T13:37:00.000Z") }))), index.h("fake-group-wrapper", { key: '472cde886820cf1be0c77f6e914770496722775f' }, index.h("smoothly-next-table-row-group", { key: '2a12af1141467042452b99b402e276357854b2b2' }, index.h("smoothly-display", { key: 'a8e15064f175eea2cce9e383b6946f8ac11cfb3f', slot: "start", type: "date", value: "2024-01-06" }), index.h("smoothly-display", { key: '7a66dd85295a699f11e24db5107528bd9dacbe6d', slot: "end", type: "price", currency: "EUR", value: 720 }), index.h("fake-row-wrapper", { key: '4824c878c60b359b8297947f3c73c95068ec1ede' }, index.h("smoothly-next-table-row", { key: 'd5fc8fd89983b5e298f1e64202f398c62aef84ec' }, index.h("fake-cell-wrapper", { key: '29039fbb6d1385c10f9bd1545e5693b6a909dd09' }, index.h("smoothly-next-table-cell", { key: '5884c013998c5a34ab6d2aa5dbc17f86dcd6336d' }, index.h("smoothly-display", { key: '2074cb5957766f3af4ac271dbb335a45f98a9934', type: "date", value: "2024-01-02" }))), index.h("fake-expandable-cell-wrapper", { key: '4a8d45a72dfe1b1e5cfd9143ea68d667f74fd683' }, index.h("smoothly-next-table-expandable-cell", { key: '8c773ef6fd9ada6046a8aaa6265f8db5d3de49ca' }, index.h("smoothly-display", { key: 'e101a532017ccd5b1a8c7e58f8daa4f2f0323b2b', type: "price", currency: "EUR", value: 130 }), index.h("smoothly-lazy", { key: 'b56e9ec28b863ad72afe97442be081655c18c4d3', slot: "detail", content: index.h("span", null, index.h("smoothly-display", { type: "price", value: 100, currency: "EUR" }), " + ", index.h("smoothly-display", { type: "price", value: 30, currency: "EUR" })) }))))), index.h("fake-expandable-row-wrapper", { key: 'f086248ed75c7f3f13869b68e9ccbb66a1f3504a' }, index.h("smoothly-next-table-expandable-row", { key: '3b91cdcd4900102f3628c761617ca864a102b8f7' }, index.h("fake-cell-wrapper", { key: 'f84d006ffa6d69515ecdcfa0f9f2d1a6f85b722a', class: "span-2" }, index.h("smoothly-next-table-cell", { key: '62bb0db4db5beef2ac5cbf44e3bcaff1b597a0b3', span: 2 }, index.h("smoothly-display", { key: 'd0376da98c0bb2dd5169718f6574d0d8c2a496c1', type: "date", value: "2024-01-07" }))), index.h("smoothly-lazy", { key: '98fe8efda94c4771d5a11283886512115a46cc8c', slot: "detail", content: index.h("smoothly-display", { type: "date-time", value: "2024-01-07T13:37:00.000Z" }) }))))), index.h("smoothly-next-table-row-group", { key: '81e12dd71cb3dc1a43168a10df3c08e751c1f7bf' }, index.h("smoothly-display", { key: '8caaad42fc515599c80fdd773da393e1a5a2e000', slot: "start", type: "date", value: "2024-01-08" }), index.h("smoothly-display", { key: '97b7d127b051bbf25ae93fca3c7bb2be01b0e3aa', slot: "end", type: "price", currency: "EUR", value: 720 }))))));
|
|
11031
|
+
return (index.h(index.Host, { key: '9910a52a5c47f2aa29f68eb62cd451c4a03b2257', style: { "--columns": this.columns.toString() } }, index.h("slot", { key: 'd439efe423eb6dbcc8612ea135710225f036efaa' })));
|
|
10924
11032
|
}
|
|
10925
11033
|
};
|
|
10926
|
-
|
|
11034
|
+
SmoothlyTable.style = SmoothlyTableStyle0;
|
|
10927
11035
|
|
|
10928
|
-
const
|
|
10929
|
-
|
|
10930
|
-
|
|
10931
|
-
|
|
10932
|
-
|
|
10933
|
-
|
|
10934
|
-
|
|
10935
|
-
|
|
10936
|
-
|
|
10937
|
-
|
|
10938
|
-
|
|
10939
|
-
|
|
10940
|
-
|
|
10941
|
-
|
|
10942
|
-
|
|
10943
|
-
|
|
10944
|
-
|
|
10945
|
-
|
|
10946
|
-
|
|
10947
|
-
|
|
10948
|
-
|
|
10949
|
-
|
|
10950
|
-
|
|
10951
|
-
|
|
10952
|
-
|
|
10953
|
-
|
|
10954
|
-
|
|
10955
|
-
|
|
10956
|
-
|
|
10957
|
-
|
|
10958
|
-
|
|
10959
|
-
|
|
10960
|
-
|
|
10961
|
-
|
|
10962
|
-
|
|
10963
|
-
|
|
10964
|
-
|
|
10965
|
-
|
|
10966
|
-
|
|
10967
|
-
|
|
10968
|
-
|
|
10969
|
-
|
|
10970
|
-
|
|
10971
|
-
|
|
10972
|
-
|
|
10973
|
-
|
|
10974
|
-
|
|
10975
|
-
|
|
10976
|
-
|
|
10977
|
-
|
|
10978
|
-
|
|
10979
|
-
|
|
10980
|
-
|
|
10981
|
-
|
|
10982
|
-
|
|
10983
|
-
|
|
10984
|
-
|
|
10985
|
-
|
|
10986
|
-
|
|
10987
|
-
|
|
10988
|
-
|
|
10989
|
-
|
|
10990
|
-
|
|
10991
|
-
|
|
10992
|
-
|
|
10993
|
-
|
|
10994
|
-
|
|
10995
|
-
|
|
10996
|
-
|
|
10997
|
-
|
|
10998
|
-
|
|
10999
|
-
|
|
11000
|
-
|
|
11001
|
-
|
|
11002
|
-
|
|
11003
|
-
|
|
11004
|
-
|
|
11005
|
-
|
|
11006
|
-
|
|
11007
|
-
|
|
11008
|
-
|
|
11009
|
-
|
|
11010
|
-
|
|
11011
|
-
|
|
11012
|
-
|
|
11013
|
-
|
|
11014
|
-
|
|
11015
|
-
|
|
11016
|
-
|
|
11017
|
-
|
|
11018
|
-
|
|
11019
|
-
|
|
11036
|
+
const styleCss$s = ".sc-smoothly-table-body-h{grid-column:1 / -1;display:grid;grid-template-columns:subgrid;color:rgb(var(--smoothly-table-foreground));background-color:rgb(var(--smoothly-table-background))}";
|
|
11037
|
+
const SmoothlyTableBodyStyle0 = styleCss$s;
|
|
11038
|
+
|
|
11039
|
+
const SmoothlyTableBody = class {
|
|
11040
|
+
constructor(hostRef) {
|
|
11041
|
+
index.registerInstance(this, hostRef);
|
|
11042
|
+
}
|
|
11043
|
+
render() {
|
|
11044
|
+
return (index.h(index.Host, { key: '3514090979dca3daa66aa8ea35358229fd0b9065' }, index.h("slot", { key: '9540bae0c43bdeff30d05835c2b039f23c9c458a' })));
|
|
11045
|
+
}
|
|
11046
|
+
};
|
|
11047
|
+
SmoothlyTableBody.style = SmoothlyTableBodyStyle0;
|
|
11048
|
+
|
|
11049
|
+
const styleCss$r = ".sc-smoothly-table-cell-h{grid-column:span var(--smoothly-table-cell-span, 1);display:flex;align-items:center;padding:0.3rem 1.1rem;white-space:nowrap}";
|
|
11050
|
+
const SmoothlyTableCellStyle0 = styleCss$r;
|
|
11051
|
+
|
|
11052
|
+
const SmoothlyTableCell = class {
|
|
11053
|
+
constructor(hostRef) {
|
|
11054
|
+
index.registerInstance(this, hostRef);
|
|
11055
|
+
this.span = 1;
|
|
11056
|
+
}
|
|
11057
|
+
render() {
|
|
11058
|
+
var _a;
|
|
11059
|
+
return (index.h(index.Host, { key: '579536102af161d3f9eb9e00af627344d069b2d9', style: { "--smoothly-table-cell-span": (_a = this.span) === null || _a === void 0 ? void 0 : _a.toString(10) } }, index.h("slot", { key: '716b8539866c94a4e9f57beedc26c0b3398f3830' })));
|
|
11060
|
+
}
|
|
11061
|
+
};
|
|
11062
|
+
SmoothlyTableCell.style = SmoothlyTableCellStyle0;
|
|
11063
|
+
|
|
11064
|
+
const styleCss$q = ".sc-smoothly-table-demo-h{display:grid;gap:5rem;box-sizing:border-box;max-width:80rem;width:100%;margin:auto;padding:2rem}";
|
|
11065
|
+
const SmoothlyTableDemoStyle0 = styleCss$q;
|
|
11066
|
+
|
|
11067
|
+
const SmoothlyTableDemo = class {
|
|
11068
|
+
constructor(hostRef) {
|
|
11069
|
+
index.registerInstance(this, hostRef);
|
|
11070
|
+
}
|
|
11071
|
+
render() {
|
|
11072
|
+
return (index.h(index.Host, { key: 'f02c9aa3d13d5348511bc42671c77fe88473618e' }, index.h("smoothly-table-demo-filler-row", { key: '57b9f89eba6c6a93cfea05e753646a08ec5999d1' }), index.h("smoothly-table-demo-group", { key: '8bef227a7c5e4c4b3094c1ec04393909b22fdca9' }), index.h("smoothly-table-demo-colspan", { key: '2f4d90087abedaa28c03d535835f92b60f596241' }), index.h("smoothly-table-demo-simple", { key: 'c518a151a2d43c0377bd4d9d94f85497bb73c1ec' }), index.h("smoothly-table-demo-nested", { key: '4ce6c41b94062d9dfea5b1730cdda6e9a87391a6' }), index.h("smoothly-table-demo-filtered", { key: '4a7901a241a00affa343c593c477509776596735' })));
|
|
11073
|
+
}
|
|
11074
|
+
};
|
|
11075
|
+
SmoothlyTableDemo.style = SmoothlyTableDemoStyle0;
|
|
11076
|
+
|
|
11077
|
+
const styleCss$p = ".sc-smoothly-table-demo-colspan-h{display:block}.sc-smoothly-table-demo-colspan-h smoothly-display.sc-smoothly-table-demo-colspan{display:inline}";
|
|
11078
|
+
const SmoothlyTableDemoColspanStyle0 = styleCss$p;
|
|
11079
|
+
|
|
11080
|
+
const SmoothlyTableDemoColspan = class {
|
|
11081
|
+
constructor(hostRef) {
|
|
11082
|
+
index.registerInstance(this, hostRef);
|
|
11083
|
+
}
|
|
11084
|
+
render() {
|
|
11085
|
+
return (index.h(index.Host, { key: '9f2e3eb9e4d95cd8230e6fb82791d5d0c6012b53' }, index.h("smoothly-table", { key: 'f74d01b7f0160f4b23424ffdb8fa6b7b44d9fedd', columns: 3 }, index.h("smoothly-table-head", { key: '4a53bd44d03ef7a46a46a85bd39af45b69456f59' }, index.h("smoothly-table-row", { key: '1823ff3900ae5b940aacafa8f1b610b51e4adaa4' }, index.h("smoothly-table-cell", { key: 'c5c75b7295bd895df50f12fed08995265ffbfbbb' }, "Date"), index.h("smoothly-table-cell", { key: '79bbe92adfea579806f89da74bff195092a1e85b' }, "Skip"), index.h("smoothly-table-cell", { key: 'c8541523b82dc0e447ab67b52ab66e15f655bf16' }, "Total"))), index.h("smoothly-table-body", { key: '7c924ca900b3d482b340d3cbb5b461cc0371dc45' }, index.h("smoothly-table-row", { key: '73845881085f1dba7afb783d6ec9eeea860df09f' }, index.h("smoothly-table-cell", { key: '33c011cd65a3cbed12dc95372b3cc8321861e2c8', span: 2 }, index.h("smoothly-display", { key: 'd35fb76e50566c42e4ae7834d056ec7c3fd19651', type: "date", value: "2024-01-01" })), index.h("smoothly-table-cell", { key: '34b5085f8162964c3b5a690704a28d57ba98c507' }, index.h("smoothly-display", { key: 'cf24a3b830e3f0e4e57b8c0ece0b8d639c11fc82', type: "price", value: 120, currency: "EUR" }))), index.h("smoothly-table-row", { key: '2a4f9a805b0141475f0f56305b68babfdbe99364' }, index.h("smoothly-table-expandable-cell", { key: '1e37cefbe785ecc65d5cec5370d8f1ec8ae155bc', span: 2 }, index.h("smoothly-display", { key: '16a398443bf00001d9302a106708a33739138cef', type: "date", value: "2024-01-02" }), index.h("smoothly-lazy", { key: 'c872fac48a23e9245817e020bbf119f10abb5a87', slot: "detail", content: index.h("smoothly-display", { type: "date-time", value: "2024-01-02T13:37:00.000Z" }) })), index.h("smoothly-table-expandable-cell", { key: 'a0619681740d615b3638b0c1381868fd876d7b96' }, index.h("smoothly-display", { key: '9b983efcc92fe95fa83b691ae129f4c81ec27566', type: "price", value: 220, currency: "EUR" }), index.h("smoothly-lazy", { key: 'c066cb080f4938384a01ec61b0d8660fc4f74267', slot: "detail", content: index.h("span", null, index.h("smoothly-display", { type: "price", value: 120, currency: "EUR" }), " + ", index.h("smoothly-display", { type: "price", value: 100, currency: "EUR" })) }))), index.h("smoothly-table-row", { key: 'b50830acc0c012b28d177b54cacc50f8bd4bfb1e' }, index.h("smoothly-table-cell", { key: 'ce9db98b833a2e09ee94bfad3582c0d5d107d9f5' }, index.h("smoothly-display", { key: '5770b3138473dfd7fab6ec400f67250ac6b671f0', type: "date", value: "2024-01-02" })), index.h("smoothly-table-cell", { key: 'c9f828236815c213bb2e78f989f1a484f7fd5a26' }, "Not Skipped"), index.h("smoothly-table-cell", { key: 'ddd50ffd161dd24d9196e6760fcd9e4bfce003c6' }, index.h("smoothly-display", { key: '30b22f99777dcfb88cdb6420b718c45f709b2db5', type: "price", value: 320, currency: "EUR" })))))));
|
|
11086
|
+
}
|
|
11087
|
+
};
|
|
11088
|
+
SmoothlyTableDemoColspan.style = SmoothlyTableDemoColspanStyle0;
|
|
11089
|
+
|
|
11090
|
+
const styleCss$o = ".sc-smoothly-table-demo-filler-row-h{display:block}.sc-smoothly-table-demo-filler-row-h>smoothly-display.sc-smoothly-table-demo-filler-row{font-size:2em}.sc-smoothly-table-demo-filler-row-h>*.sc-smoothly-table-demo-filler-row{margin-bottom:2rem}";
|
|
11091
|
+
const SmoothlyTableDemoFillerRowStyle0 = styleCss$o;
|
|
11092
|
+
|
|
11093
|
+
const SmoothlyTableDemoFillerRow = class {
|
|
11094
|
+
constructor(hostRef) {
|
|
11095
|
+
index.registerInstance(this, hostRef);
|
|
11096
|
+
this.cats = [];
|
|
11097
|
+
}
|
|
11098
|
+
async componentDidLoad() {
|
|
11099
|
+
window.setTimeout(() => {
|
|
11100
|
+
this.cats = undefined;
|
|
11101
|
+
}, 3000);
|
|
11102
|
+
}
|
|
11103
|
+
render() {
|
|
11104
|
+
return (index.h(index.Host, { key: '4bfc0a1cdf124c7e8b9e139cea9fb1d40a698977' }, index.h("smoothly-display", { key: 'b4ecca1026d3f3c0d5fd964b0e6e668f068fd4de', type: "text", value: "Filler row" }), index.h("smoothly-table", { key: 'aa373236eada287cf36872a8309b46864cd8a23e', color: "primary", columns: 4 }, index.h("smoothly-table-head", { key: '0ab77571d777d6e808eaed27304af683dc0ae7ce' }, index.h("smoothly-table-row", { key: '5a615f3b3dfbb0c3c2627cb5fc93643931adebf3' }, index.h("smoothly-table-cell", { key: 'c874d318c92a76a6eca2050cde288ac99c6aa3de' }, "Breed"), index.h("smoothly-table-cell", { key: '8325696db18f5c147f6dce7154bfb5f328557fbe' }, "Country"), index.h("smoothly-table-cell", { key: '7bbb2ab808a0a51dbd00a4b0cd8b4e16a4901fc5' }, "Coat"), index.h("smoothly-table-cell", { key: 'a26e3b609437a4bb89485b02cfca289beba1c427' }, "Origin"))), index.h("smoothly-table-body", { key: 'e3505ea86686e84fd19a3bd054193e02a879396d' }, this.cats === undefined ? (index.h("smoothly-table-filler-row", null, "No data to display")) : this.cats.length === 0 ? (index.h("smoothly-table-filler-row", null, index.h("smoothly-spinner", { style: { margin: "auto" }, color: "default", size: "small" }))) : (this.cats.map(a => (index.h("smoothly-table-row", null, index.h("smoothly-table-cell", null, a.breed), index.h("smoothly-table-cell", null, a.country), index.h("smoothly-table-cell", null, a.coat), index.h("smoothly-table-cell", null, a.origin)))))))));
|
|
11105
|
+
}
|
|
11106
|
+
};
|
|
11107
|
+
SmoothlyTableDemoFillerRow.style = SmoothlyTableDemoFillerRowStyle0;
|
|
11108
|
+
|
|
11109
|
+
var __classPrivateFieldGet = (undefined && undefined.__classPrivateFieldGet) || function (receiver, state, kind, f) {
|
|
11110
|
+
if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
|
|
11111
|
+
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
|
|
11112
|
+
return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
|
|
11113
|
+
};
|
|
11114
|
+
var __classPrivateFieldSet = (undefined && undefined.__classPrivateFieldSet) || function (receiver, state, value, kind, f) {
|
|
11115
|
+
if (kind === "m") throw new TypeError("Private method is not writable");
|
|
11116
|
+
if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a setter");
|
|
11117
|
+
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot write private member to an object whose class did not declare it");
|
|
11118
|
+
return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
|
|
11119
|
+
};
|
|
11120
|
+
var _Selector_selected;
|
|
11121
|
+
class Selector {
|
|
11122
|
+
get selected() {
|
|
11123
|
+
var _a;
|
|
11124
|
+
return (__classPrivateFieldSet(this, _Selector_selected, (_a = __classPrivateFieldGet(this, _Selector_selected, "f")) !== null && _a !== void 0 ? _a : Object.values(this.data), "f"));
|
|
11125
|
+
}
|
|
11126
|
+
constructor(key, data = {}) {
|
|
11127
|
+
this.key = key;
|
|
11128
|
+
this.data = data;
|
|
11129
|
+
_Selector_selected.set(this, void 0);
|
|
11130
|
+
}
|
|
11131
|
+
handle(data) {
|
|
11132
|
+
var _a;
|
|
11133
|
+
return new Selector(this.key, "check-all" in data
|
|
11134
|
+
? (_a = data["check-all"]) !== null && _a !== void 0 ? _a : {}
|
|
11135
|
+
: Object.fromEntries(Object.entries(Object.assign(Object.assign({}, this.data), data)).filter(([_, value]) => value != undefined)));
|
|
11136
|
+
}
|
|
11137
|
+
render(item) {
|
|
11138
|
+
var _a, _b, _c;
|
|
11139
|
+
return Array.isArray(item) ? (index.h("smoothly-checkbox", { name: "check-all", value: Object.fromEntries(item.map(i => [i[this.key], i])), intermediate: this.selected.length > 0 && this.selected.length < item.length, checked: this.selected.length == item.length ? true : this.selected.length == 0 && false })) : (index.h("smoothly-checkbox", { name: (_a = item[this.key]) === null || _a === void 0 ? void 0 : _a.toString(), value: item, checked: !!this.data[(_c = (_b = item[this.key]) === null || _b === void 0 ? void 0 : _b.toString()) !== null && _c !== void 0 ? _c : ""] }));
|
|
11140
|
+
}
|
|
11141
|
+
static create(key) {
|
|
11142
|
+
return new Selector(key);
|
|
11143
|
+
}
|
|
11144
|
+
}
|
|
11145
|
+
_Selector_selected = new WeakMap();
|
|
11146
|
+
|
|
11147
|
+
const styleCss$n = ".sc-smoothly-table-demo-filtered-h{display:grid;grid-template-columns:auto auto;grid-template-areas:\"header filter\"\n\t\t\"main main\";margin-bottom:50em}.sc-smoothly-table-demo-filtered-h>smoothly-display.sc-smoothly-table-demo-filtered{font-size:2em;grid-area:header}.sc-smoothly-table-demo-filtered-h>smoothly-filter.sc-smoothly-table-demo-filtered{margin-left:auto;grid-area:filter;height:fit-content}.sc-smoothly-table-demo-filtered-h>*.sc-smoothly-table-demo-filtered{margin-bottom:2rem;grid-area:main}.sc-smoothly-table-demo-filtered-h>smoothly-table.sc-smoothly-table-demo-filtered{grid-template-columns:min-content repeat(calc(var(--columns) - 1), auto)}smoothly-table.sc-smoothly-table-demo-filtered>smoothly-table-row.sc-smoothly-table-demo-filtered>smoothly-table-cell.sc-smoothly-table-demo-filtered:nth-of-type(2),.sc-smoothly-table-demo-filtered-h>smoothly-table.sc-smoothly-table-demo-filtered>smoothly-table-head.sc-smoothly-table-demo-filtered>smoothly-table-row.sc-smoothly-table-demo-filtered>smoothly-table-cell.sc-smoothly-table-demo-filtered:nth-of-type(4){justify-content:end}";
|
|
11148
|
+
const SmoothlyTableDemoFilteredStyle0 = styleCss$n;
|
|
11149
|
+
|
|
11150
|
+
const TableDemoFiltered = class {
|
|
11151
|
+
constructor(hostRef) {
|
|
11152
|
+
index.registerInstance(this, hostRef);
|
|
11153
|
+
this.criteria = {};
|
|
11154
|
+
this.cats = undefined;
|
|
11155
|
+
this.selector = Selector.create("breed");
|
|
11156
|
+
}
|
|
11157
|
+
onFilterUpdate(event) {
|
|
11158
|
+
event.stopPropagation();
|
|
11159
|
+
this.criteria = event.detail;
|
|
11160
|
+
}
|
|
11161
|
+
smoothlyInputHandler(event) {
|
|
11162
|
+
event.stopPropagation();
|
|
11163
|
+
this.selector = this.selector.handle(event.detail);
|
|
11164
|
+
}
|
|
11165
|
+
async componentWillLoad() {
|
|
11166
|
+
const response = await fetch("https://catfact.ninja/breeds?limit=15");
|
|
11167
|
+
this.cats =
|
|
11168
|
+
response.status == 200 &&
|
|
11169
|
+
(await response.body).data.map((cat) => {
|
|
11170
|
+
var _a, _b;
|
|
11171
|
+
return (Object.assign(Object.assign({}, cat), { price: [...cat.breed].reduce((r, c) => r + c.charCodeAt(0), 0), nested: Object.assign(Object.assign({}, cat), { names: (_a = names[cat.country]) !== null && _a !== void 0 ? _a : [] }), names: (_b = names[cat.country]) !== null && _b !== void 0 ? _b : [] }));
|
|
11172
|
+
});
|
|
11173
|
+
}
|
|
11174
|
+
render() {
|
|
11175
|
+
const cats = this.cats && filter(this.criteria, this.cats);
|
|
11176
|
+
return (index.h(index.Host, { key: '8d55f782a5df458d13a02d59a0c204037cb084d3' }, index.h("smoothly-display", { key: 'b031a5503b68b070fbe0fa1e0a7973104bdd66b9', type: "text", value: "Filtered" }), index.h("smoothly-filter", { key: '5114ba3045e6a38813a4dda29ac3303f001af64e' }, index.h("smoothly-filter-toggle", { key: '845ee58c9a0ce4fa8ff8c1e4114de768ac175fac', properties: { ["nested.pattern"]: "Ticked", breed: "" }, icon: "add", toolTip: "Nested Ticked", slot: "bar" }), index.h("smoothly-filter-toggle", { key: '7c8e98ac1bfc7537a9aa6412255b34a54fc60de3', properties: { pattern: "Ticked", breed: "" }, icon: "paw", toolTip: "Ticked cats", slot: "bar" }), index.h("smoothly-filter-toggle", { key: 'f14605713a881dfdc90e7fcac7bd7a550b06f587', properties: { breed: "Bombay", pattern: "Solid" }, icon: "radio-button-on", toolTip: "Solid bombay cats", slot: "bar" }), index.h("smoothly-filter-toggle", { key: '2183ee1b6762ebd5ccaff93f0c1848a6c4cac5c7', properties: { pattern: "Colorpoint" }, not: true, active: true, icon: "alert", toolTip: "Colored cats", slot: "bar" }), index.h("smoothly-filter-select", { key: '266ad69988175d612400edfcfb8dcfd7af16670b', menuHeight: "5items", label: "coat", property: "nested.coat", slot: "bar", multiple: false }, this.cats &&
|
|
11177
|
+
Object.values(this.cats.reduce((r, cat) => (cat.nested ? Object.assign(Object.assign({}, r), { [cat.nested.coat]: cat }) : r), {})).map(cat => {
|
|
11178
|
+
var _a;
|
|
11179
|
+
return ((_a = cat.nested) === null || _a === void 0 ? void 0 : _a.coat) && (index.h("smoothly-item", { slot: "items", value: cat.nested.coat }, cat.nested.coat));
|
|
11180
|
+
})), index.h("div", { key: '801474cee57610ea30e72193425c88d8de454e4e', slot: "detail" }, index.h("smoothly-form", { key: '752f211850ac2e71727e5a7b2021f1bbcf7d68b3', looks: "border" }, index.h("smoothly-filter-select", { key: 'e9ecc6a81dd93740bb29c31d0916b32191317d77', menuHeight: "5items", label: "coat", property: "nested.coat", multiple: true }, this.cats &&
|
|
11181
|
+
Object.values(this.cats.reduce((r, cat) => (cat.nested ? Object.assign(Object.assign({}, r), { [cat.nested.coat]: cat }) : r), {})).map(cat => {
|
|
11182
|
+
var _a;
|
|
11183
|
+
return ((_a = cat.nested) === null || _a === void 0 ? void 0 : _a.coat) && (index.h("smoothly-item", { slot: "items", value: cat.nested.coat }, cat.nested.coat));
|
|
11184
|
+
})), index.h("smoothly-filter-select", { key: 'e3ccd5e3248302430f151cb7190b82f6013e6c65', menuHeight: "5items", label: "breed", property: "breed", multiple: false }, this.cats &&
|
|
11185
|
+
Object.values(this.cats.reduce((r, cat) => (cat.breed ? Object.assign(Object.assign({}, r), { [cat.breed]: cat }) : r), {})).map(cat => cat.breed && (index.h("smoothly-item", { slot: "items", value: cat.breed }, cat.breed)))), index.h("smoothly-filter-select", { key: '72505b6a1afe108c13b52aef6ab2874bb5c97782', menuHeight: "5items", label: "names", property: "nested.names", multiple: true, type: "array" }, Object.keys(Object.values(names)
|
|
11186
|
+
.flat()
|
|
11187
|
+
.reduce((r, name) => (Object.assign(Object.assign({}, r), { [name]: true })), {})).flatMap(name => (index.h("smoothly-item", { slot: "items", value: name }, name)))), index.h("smoothly-filter-input", { key: '6b5fc795a759f451ff4e46fad05c108ed5b47fc5', label: "Coat", property: "coat" }), index.h("smoothly-filter-input", { key: '53086231e9056ad86984bd63c1208b8e1df5ef15', label: "Nested Coat", property: "nested.coat" })))), !cats ? ("Failed to load data.") : (index.h("smoothly-table", { columns: 4 }, index.h("smoothly-table-head", null, index.h("smoothly-table-row", null, index.h("smoothly-table-cell", null, this.selector.render(cats)), index.h("smoothly-table-cell", null, "Breed"), index.h("smoothly-table-cell", null, "Coat"), index.h("smoothly-table-cell", null, "Price"))), cats.map(cat => (index.h("smoothly-table-row", null, index.h("smoothly-table-cell", null, this.selector.render(cat)), index.h("smoothly-table-expandable-cell", null, cat.breed, index.h("div", { slot: "detail" }, "Country: ", cat.country)), index.h("smoothly-table-expandable-cell", null, cat.coat, index.h("div", { slot: "detail" }, "Pattern: ", cat.pattern)), index.h("smoothly-table-cell", null, index.h("smoothly-display", { type: "price", value: cat.price, currency: "SEK" }))))), index.h("smoothly-table-foot", null, index.h("smoothly-table-row", null, index.h("smoothly-table-cell", { span: 3 }, index.h("smoothly-display", { type: "text", value: `Selected: ${this.selector.selected.length != 0 ? this.selector.selected.length : cats ? cats.length : "?"}` }))))))));
|
|
11188
|
+
}
|
|
11189
|
+
};
|
|
11190
|
+
const names = {
|
|
11191
|
+
"United States": ["bill", "bob", "brad", "joe", "molly"],
|
|
11192
|
+
Australia: ["nigel", "bruce", "sheila", "brad", "shane"],
|
|
11193
|
+
"United Kingdom": ["nigel", "james", "molly", "shane", "bob"],
|
|
11194
|
+
Greece: ["dionysius", "demetrius", "polikarpos"],
|
|
11195
|
+
};
|
|
11196
|
+
TableDemoFiltered.style = SmoothlyTableDemoFilteredStyle0;
|
|
11197
|
+
|
|
11198
|
+
const styleCss$m = ".sc-smoothly-table-demo-group-h{display:block}.sc-smoothly-table-demo-group-h smoothly-display.sc-smoothly-table-demo-group{display:inline}.sc-smoothly-table-demo-group-h fake-cell-wrapper.span-2.sc-smoothly-table-demo-group{grid-column:span 2}.sc-smoothly-table-demo-group-h>smoothly-display.sc-smoothly-table-demo-group{display:inherit;font-size:2em}.sc-smoothly-table-demo-group-h>*.sc-smoothly-table-demo-group{margin-bottom:2rem}.sc-smoothly-table-demo-group-h fake-group-wrapper.sc-smoothly-table-demo-group,.sc-smoothly-table-demo-group-h fake-row-wrapper.sc-smoothly-table-demo-group,.sc-smoothly-table-demo-group-h fake-expandable-row-wrapper.sc-smoothly-table-demo-group{grid-column:1 / -1;display:grid;grid-template-columns:subgrid}.sc-smoothly-table-demo-group-h fake-cell-wrapper.sc-smoothly-table-demo-group{grid-column:span 1;display:block}.sc-smoothly-table-demo-group-h fake-expandable-cell-wrapper.sc-smoothly-table-demo-group{display:contents}";
|
|
11199
|
+
const SmoothlyTableDemoGroupStyle0 = styleCss$m;
|
|
11200
|
+
|
|
11201
|
+
const SmoothlyTableDemoGroup = class {
|
|
11202
|
+
constructor(hostRef) {
|
|
11203
|
+
index.registerInstance(this, hostRef);
|
|
11204
|
+
}
|
|
11205
|
+
render() {
|
|
11206
|
+
return (index.h(index.Host, { key: 'ab17a5de6350253218129e9ef1a901afca119cb9' }, index.h("smoothly-display", { key: '241b4f2a5d975758716c86f4a9e607a603deda71', type: "text", value: "Group" }), index.h("smoothly-table", { key: '862a1f6f51b60bdf7180a23ae2e5e8ba756da733', color: "primary", columns: 2 }, index.h("smoothly-table-head", { key: 'fd02d23e191fa245f87fba4ad4d6bca4589568d9' }, index.h("smoothly-table-row", { key: 'e680167eb05b171558d9eaa020078890e21b4417' }, index.h("smoothly-table-cell", { key: '6b52630d199801fed460f8ec4006ed99917b55b0' }, "Date"), index.h("smoothly-table-cell", { key: '257ab1871963edba4c508b9239d91fdc47a4188c' }, "Total"))), index.h("smoothly-table-body", { key: 'e105bea8ba10cbc7f28ff60276e905905e6a4f61' }, index.h("smoothly-table-row-group", { key: 'cfb10b12fa24d5f3503efc04cb630ed6f062426d', align: true }, index.h("smoothly-display", { key: '1eb844826cb1b1acf2ac13aa7e042a430d930cfd', slot: "start", type: "date", value: "2024-01-01" }), index.h("smoothly-display", { key: 'f80a2845de1d28e0827cc41f5d1060749c4ec953', slot: "end", type: "price", currency: "EUR", value: 510 }), index.h("smoothly-table-expandable-row", { key: '4efa1e4899770886d3a227487f50c3584555a8d0' }, index.h("smoothly-table-cell", { key: '547add4a1a36ed0d969caa0c066d564cb44e2748' }, index.h("smoothly-display", { key: 'bb67befeef44104cbc3bf02c7880ff58387f2891', type: "date-time", value: "2024-01-01T01:37:00.000Z" })), index.h("smoothly-table-cell", { key: '6c9442e995afeba0d129e32c7a32744af53c9725' }, index.h("smoothly-display", { key: '2d310c3f5a84ccad1d17c457dfb74b9d7e1bd9fc', type: "price", currency: "EUR", value: 250 })), index.h("smoothly-lazy", { key: '6f978c968c43d7315509241291a2a955ebbe5539', slot: "detail", content: index.h(index.Fragment, null, "Details of 2024-01-01T01:37:00.000Z") })), index.h("smoothly-table-expandable-row", { key: '492e93fa2821b38ab1f0ce305ea9fd65f8781e62' }, index.h("smoothly-table-cell", { key: '68dd180e3c2954bf50ec903b3809304b4300dac8' }, index.h("smoothly-display", { key: '172525308c6323f08391250970f83648f295f928', type: "date-time", value: "2024-01-01T13:37:00.000Z" })), index.h("smoothly-table-cell", { key: '102655f27f8fff0e563c1b9c4f91a7a5180517ed' }, index.h("smoothly-display", { key: 'a292efb6a9913c52a09669531f1ae420dee9bafe', type: "price", currency: "EUR", value: 260 })), index.h("smoothly-lazy", { key: '2229625dc6667273d75e5bab7e37c28353ff55c1', slot: "detail", content: index.h(index.Fragment, null, "Details of 2024-01-01T13:37:00.000Z") }))), index.h("smoothly-table-row", { key: '2f6a9d343d2b8faeb54591568fca534491e09624' }, index.h("smoothly-table-cell", { key: 'd28918b88277bab63ce3ac9e0c2ea2952fdc149f' }, index.h("smoothly-display", { key: '57254b712a9af72bd17db942d8c67b550f4bc249', type: "date", value: "2024-01-02" })), index.h("smoothly-table-cell", { key: 'ce6078b20e8ad3a60a2c7487b3c10033721c71e7' }, index.h("smoothly-display", { key: '59811e12b22df83a8b9f96743592aa3f0660c06a', type: "price", currency: "EUR", value: 130 }))), index.h("smoothly-table-row-group", { key: '794c6bd76c772c87610ddaf77da871e28b6fa3ce' }, index.h("smoothly-display", { key: '4abdc694438211eca8549e931f62db5078e13d4f', slot: "start", type: "date", value: "2024-01-03" }), index.h("smoothly-display", { key: '4d9af1d234da7b5489714cb6e0c2fa368e88e39e', slot: "end", type: "price", currency: "EUR", value: 720 }), index.h("smoothly-table-expandable-row", { key: 'a0866cf4f36b6e50e600d446ff6d101ebd5164fd' }, index.h("smoothly-table-cell", { key: 'd5f7ad1ff62d6b1002a3b191352fc3bf4cd4945c' }, index.h("smoothly-display", { key: 'e0066e67a6de844cd3e61d0898b216c14664dc65', type: "date-time", value: "2024-01-03T01:37:00.000Z" })), index.h("smoothly-table-cell", { key: '2de722ca6f420151fc220421e71e6ae4f76d63d6' }, index.h("smoothly-display", { key: '83f90ecb3d641449e5abceaf5ea70dcc863ce6ad', type: "price", currency: "EUR", value: 320 })), index.h("smoothly-lazy", { key: 'cab86fe7bdf6a750ab4acdf9f329829b8ee0f885', slot: "detail", content: index.h(index.Fragment, null, "Details of 2024-01-03T01:37:00.000Z") })), index.h("smoothly-table-expandable-row", { key: '737a4b2c40839d199221bc63185b59668a081428' }, index.h("smoothly-table-cell", { key: '1aab121795680be1745e57dc057d0b3d110679c7' }, index.h("smoothly-display", { key: 'ca32ff5340a004a4c2c44bf321ec47e7857a144c', type: "date-time", value: "2024-01-03T13:37:00.000Z" })), index.h("smoothly-table-cell", { key: '340e08d0a9bc1e9d483215e9bda2c9c20183fff3' }, index.h("smoothly-display", { key: '017cdd7cf3ac6aa73b2419abbd10484223ff8c93', type: "price", currency: "EUR", value: 400 })), index.h("smoothly-lazy", { key: '7e924702b8fd7ab2485fbeeca10c37851a415f62', slot: "detail", content: index.h(index.Fragment, null, "Details of 2024-01-03T13:37:00.000Z") }))), index.h("smoothly-table-row-group", { key: '0a71b3746078226007b57f1ef91a2cdd29a22dad' }, index.h("smoothly-display", { key: '6e179b5eddbcf3ba6effb11e02c0fd0c414a2f89', slot: "start", type: "date", value: "2024-01-04" }), index.h("smoothly-table-expandable-row", { key: '05dcfe20a4b3f6e312d2a7f487690b31190d0191' }, index.h("smoothly-table-cell", { key: '9ec721a6d7ef609b489c9a9c67ef9013f337d187' }, index.h("smoothly-display", { key: 'bbf1daa961b4fa73148bab8bd0cb843f34aecafc', type: "date-time", value: "2024-01-04T01:37:00.000Z" })), index.h("smoothly-table-cell", { key: '9bf0559b4456306ca7547011a93ea009dfa5a47a' }, index.h("smoothly-display", { key: 'a505d472404ec220b78837d01fa9c48ab479fbf1', type: "price", currency: "EUR", value: 320 })), index.h("smoothly-lazy", { key: '07defc9828ac26cda563bc5fab971e95e5edb7cb', slot: "detail", content: index.h(index.Fragment, null, "Details of 2024-01-04T01:37:00.000Z") })), index.h("smoothly-table-expandable-row", { key: 'b14b8ddb71431247dbaf2fa0a9a5bfa519773850' }, index.h("smoothly-table-cell", { key: '15f885b73e9b55da373fc4ba2a9f2ec26df7a1ad' }, index.h("smoothly-display", { key: 'f837ee876510ded9cdc95fb1f319ad3f0d033066', type: "date-time", value: "2024-01-04T13:37:00.000Z" })), index.h("smoothly-table-cell", { key: '24ee4da95e2f6567e84979bf550ba12383f8bbc7' }, index.h("smoothly-display", { key: '0c238ff9e955c702396b5f55362aa2b9b870e623', type: "price", currency: "EUR", value: 400 })), index.h("smoothly-lazy", { key: '4ddb314c99c1fcd10e0dfd624e15c705194d3999', slot: "detail", content: index.h(index.Fragment, null, "Details of 2024-01-04T13:37:00.000Z") }))), index.h("smoothly-table-row-group", { key: '76c28c274cbe1d43976ce8bf2f68c6a7c38cfb20' }, index.h("smoothly-display", { key: 'b906ac9acb1c046c0e180d99cb5f4d75ccb063aa', slot: "end", type: "price", currency: "EUR", value: 720 }), index.h("smoothly-table-expandable-row", { key: '1a1cfdb1ed8c2fe215346bba93775813853aa082' }, index.h("smoothly-table-cell", { key: '5d093841d54189dff2088e417a0df853af75fd9e' }, index.h("smoothly-display", { key: '85c9271cc6eeb69e1e8a9b2e99baaecec0d24e6e', type: "date-time", value: "2024-01-05T01:37:00.000Z" })), index.h("smoothly-table-cell", { key: 'd0207e188bfc3fcae67208cb54313e37b39bcae4' }, index.h("smoothly-display", { key: 'fda474c50fc46b3b1f9e3a765b83859082367204', type: "price", currency: "EUR", value: 320 })), index.h("smoothly-lazy", { key: 'a6212b95f076d12ab0f70d1ce10170647d3dac5f', slot: "detail", content: index.h(index.Fragment, null, "Details of 2024-01-05T01:37:00.000Z") })), index.h("smoothly-table-expandable-row", { key: '2e3631f82c36b66f801d36ac420a9972121626e2' }, index.h("smoothly-table-cell", { key: '83e96169bc9e24188f64356e8ce2909ea93705a5' }, index.h("smoothly-display", { key: 'fac1debee6f460708486d20a44da4783f7ef798d', type: "date-time", value: "2024-01-05T13:37:00.000Z" })), index.h("smoothly-table-cell", { key: 'acc2178f2d34df95125bb8a6591f3eeac8637c97' }, index.h("smoothly-display", { key: '2ba249b1cb1f3fa8e0f19d660bf555bfc2023934', type: "price", currency: "EUR", value: 400 })), index.h("smoothly-lazy", { key: 'e2325d894438f3283173ed8b9ed9a5ad7fe1f766', slot: "detail", content: index.h(index.Fragment, null, "Details of 2024-01-05T13:37:00.000Z") }))), index.h("fake-group-wrapper", { key: '6f03088f762e762bca3aaf5c9c2e0db272ea859b' }, index.h("smoothly-table-row-group", { key: '8588a6eb1d4ae426898fdaac653e45053488f977' }, index.h("smoothly-display", { key: 'e74e5318cf74c0a3baf0af70a603238dd0aea2bc', slot: "start", type: "date", value: "2024-01-06" }), index.h("smoothly-display", { key: '37bbc408b2e023340c64ee2184efb3414a8ed78a', slot: "end", type: "price", currency: "EUR", value: 720 }), index.h("fake-row-wrapper", { key: 'aa2b9dcb132df48feba44e8e645bb5f9d866d700' }, index.h("smoothly-table-row", { key: '3fb8882c74c28e9f52bb812ecf95fc72788f4e28' }, index.h("fake-cell-wrapper", { key: '65a11fedd55768fa7a2bfde52e35752f20bf941c' }, index.h("smoothly-table-cell", { key: '3abc35523c899732331481fd7a533499647e9e11' }, index.h("smoothly-display", { key: '15d61e95a487e711bb423a71dd687b9c8ac99b3b', type: "date", value: "2024-01-02" }))), index.h("fake-expandable-cell-wrapper", { key: 'a5635badb923e122f6b539825695f23f07784ee5' }, index.h("smoothly-table-expandable-cell", { key: '92596731648f02e90a6d3393f5b9154358590fc5' }, index.h("smoothly-display", { key: '946cce4395db9b1db2994fbb898dabcf9587c445', type: "price", currency: "EUR", value: 130 }), index.h("smoothly-lazy", { key: '593551e1a00a7367db227a1b165b01325d0bbfe2', slot: "detail", content: index.h("span", null, index.h("smoothly-display", { type: "price", value: 100, currency: "EUR" }), " + ", index.h("smoothly-display", { type: "price", value: 30, currency: "EUR" })) }))))), index.h("fake-expandable-row-wrapper", { key: 'c3b8371c6f75c763d2f7983f9d6814cb6fda7b2b' }, index.h("smoothly-table-expandable-row", { key: 'f368d9a8964cd3491a6c3b15fee582316d93321b' }, index.h("fake-cell-wrapper", { key: 'e53b542c79a919162a5663937ea215f5ade7abe7', class: "span-2" }, index.h("smoothly-table-cell", { key: '4d3d43c2fbcb74b8ab0ddc290d31eddf6eb3adaf', span: 2 }, index.h("smoothly-display", { key: 'e29d593e033eef6aa308729c115d6131c57527f8', type: "date", value: "2024-01-07" }))), index.h("smoothly-lazy", { key: '8efb4c4255338d4a042909417b6bdeee312a1395', slot: "detail", content: index.h("smoothly-display", { type: "date-time", value: "2024-01-07T13:37:00.000Z" }) }))))), index.h("smoothly-table-row-group", { key: 'b6d86bb92d60916bd58e1eb3d6eee104cfbe95e3' }, index.h("smoothly-display", { key: '7f9f43eb7f95a2671a83bda52957c69b286881d3', slot: "start", type: "date", value: "2024-01-08" }), index.h("smoothly-display", { key: '5c7cac6977f26a51ad35fdcbf4a70a0aefa0d4cf', slot: "end", type: "price", currency: "EUR", value: 720 }))))));
|
|
11207
|
+
}
|
|
11208
|
+
};
|
|
11209
|
+
SmoothlyTableDemoGroup.style = SmoothlyTableDemoGroupStyle0;
|
|
11210
|
+
|
|
11211
|
+
const data = [
|
|
11212
|
+
{
|
|
11213
|
+
id: "667d329f9f4934ecdc4bf9eb",
|
|
11214
|
+
balance: 1450.03,
|
|
11215
|
+
age: 35,
|
|
11216
|
+
eyeColor: "blue",
|
|
11217
|
+
name: "Glenda Ballard",
|
|
11218
|
+
gender: "female",
|
|
11219
|
+
company: "ZENTIA",
|
|
11220
|
+
registered: "2022-06-13T12:39:15.908",
|
|
11221
|
+
friends: [
|
|
11222
|
+
{
|
|
11223
|
+
id: 0,
|
|
11224
|
+
name: "Manning Hunter",
|
|
11225
|
+
age: 30,
|
|
11226
|
+
balance: 1922.25,
|
|
11227
|
+
},
|
|
11228
|
+
{
|
|
11229
|
+
id: 1,
|
|
11230
|
+
name: "Mcmillan Oliver",
|
|
11231
|
+
age: 32,
|
|
11232
|
+
balance: 2440.53,
|
|
11233
|
+
},
|
|
11234
|
+
{
|
|
11235
|
+
id: 2,
|
|
11236
|
+
name: "Graham Garza",
|
|
11237
|
+
age: 33,
|
|
11238
|
+
balance: 3712.59,
|
|
11239
|
+
},
|
|
11240
|
+
{
|
|
11241
|
+
id: 3,
|
|
11242
|
+
name: "Gabrielle Neal",
|
|
11243
|
+
age: 36,
|
|
11244
|
+
balance: 2519.25,
|
|
11245
|
+
},
|
|
11246
|
+
{
|
|
11247
|
+
id: 4,
|
|
11248
|
+
name: "Dotson Duncan",
|
|
11249
|
+
age: 29,
|
|
11250
|
+
balance: 3274.11,
|
|
11251
|
+
},
|
|
11252
|
+
],
|
|
11253
|
+
},
|
|
11254
|
+
{
|
|
11255
|
+
id: "667d329f4e07097167ef92a2",
|
|
11256
|
+
balance: 2488.91,
|
|
11257
|
+
age: 21,
|
|
11258
|
+
eyeColor: "blue",
|
|
11259
|
+
name: "Delaney Haley",
|
|
11260
|
+
gender: "male",
|
|
11261
|
+
company: "COMTOURS",
|
|
11262
|
+
registered: "2018-05-11T08:58:36.197",
|
|
11263
|
+
friends: [
|
|
11264
|
+
{
|
|
11265
|
+
id: 0,
|
|
11266
|
+
name: "Elsa Cochran",
|
|
11267
|
+
age: 28,
|
|
11268
|
+
balance: 2009.45,
|
|
11269
|
+
},
|
|
11270
|
+
{
|
|
11271
|
+
id: 1,
|
|
11272
|
+
name: "Willis Acevedo",
|
|
11273
|
+
age: 33,
|
|
11274
|
+
balance: 2198.01,
|
|
11275
|
+
},
|
|
11276
|
+
{
|
|
11277
|
+
id: 2,
|
|
11278
|
+
name: "Slater Fowler",
|
|
11279
|
+
age: 34,
|
|
11280
|
+
balance: 2888.16,
|
|
11281
|
+
},
|
|
11282
|
+
{
|
|
11283
|
+
id: 3,
|
|
11284
|
+
name: "Ashley Wilkerson",
|
|
11285
|
+
age: 22,
|
|
11286
|
+
balance: 1863.65,
|
|
11287
|
+
},
|
|
11288
|
+
{
|
|
11289
|
+
id: 4,
|
|
11290
|
+
name: "Ola Lynch",
|
|
11291
|
+
age: 23,
|
|
11292
|
+
balance: 3649.29,
|
|
11293
|
+
},
|
|
11294
|
+
],
|
|
11295
|
+
},
|
|
11296
|
+
{
|
|
11297
|
+
id: "667d329f14a0aeea0d70d5e7",
|
|
11298
|
+
balance: 1660.91,
|
|
11299
|
+
age: 36,
|
|
11300
|
+
eyeColor: "brown",
|
|
11301
|
+
name: "Riddle Reilly",
|
|
11302
|
+
gender: "male",
|
|
11020
11303
|
company: "OPTIQUE",
|
|
11021
11304
|
registered: "2016-09-15T09:46:07.962",
|
|
11022
11305
|
friends: [
|
|
@@ -11858,43 +12141,43 @@ const data$1 = [
|
|
|
11858
12141
|
},
|
|
11859
12142
|
];
|
|
11860
12143
|
|
|
11861
|
-
const styleCss$
|
|
11862
|
-
const
|
|
12144
|
+
const styleCss$l = ".sc-smoothly-table-demo-nested-h{display:block}.sc-smoothly-table-demo-nested-h>smoothly-display.sc-smoothly-table-demo-nested{font-size:2em}.sc-smoothly-table-demo-nested-h>*.sc-smoothly-table-demo-nested{margin-bottom:2rem}";
|
|
12145
|
+
const SmoothlyTableDemoNestedStyle0 = styleCss$l;
|
|
11863
12146
|
|
|
11864
|
-
const
|
|
12147
|
+
const SmoothlyTableDemoNested = class {
|
|
11865
12148
|
constructor(hostRef) {
|
|
11866
12149
|
index.registerInstance(this, hostRef);
|
|
11867
12150
|
}
|
|
11868
12151
|
render() {
|
|
11869
|
-
return (index.h(index.Host, { key: '
|
|
12152
|
+
return (index.h(index.Host, { key: 'f7dc608b56f946058e12ed68ea7e90df810f987a' }, index.h("smoothly-display", { key: '358904431eafbb1d627d0fdee7c08086f6153dc6', type: "text", value: "Nested" }), index.h("smoothly-table", { key: 'c2f0330f908bffe60134686ab682c4cd2387248d', color: "primary", columns: 8 }, index.h("smoothly-table-head", { key: 'b1fe6f04435b744f361633a7a887578b933fa1cd' }, index.h("smoothly-table-row", { key: '78e9506a94ad8fdf48e78f9ab62bec3e9d9bb935' }, index.h("smoothly-table-cell", { key: '7a7231af5f81a6eb7ee43349d63f83358103eb3d' }, "Id"), index.h("smoothly-table-cell", { key: 'ff3a6cc9c47a64b963b5e40001e88d3069bdbf0c' }, "Registered"), index.h("smoothly-table-cell", { key: 'c38b672be9a1365330d07b69054989f5e60ee1c8' }, "Name"), index.h("smoothly-table-cell", { key: 'c292d75f64bdc388ff8c264ecbf085e771ce2492' }, "Age"), index.h("smoothly-table-cell", { key: '8365cd3d2247db5520b8e50ea0d0fcd87b382cd6' }, "Balance"), index.h("smoothly-table-cell", { key: '62d413791161883a1e49ee7dff722391e82e5fb3' }, "EyeColor"), index.h("smoothly-table-cell", { key: '49c25aaf48bb22a60746db2ccf645e7036a64ead' }, "Gender"), index.h("smoothly-table-cell", { key: '0788fc296b75856ccc29ed294b4e626492813c5a' }, "Company"))), index.h("smoothly-table-body", { key: '1a0cd70d6e0571c0ab7eb46af0d593f5728a6706' }, data.map(entry => (index.h("smoothly-table-expandable-row", null, index.h("smoothly-table-demo-nested-inner", { color: "secondary", data: entry.friends, slot: "detail" }), index.h("smoothly-table-cell", null, entry.id), index.h("smoothly-table-cell", null, entry.registered), index.h("smoothly-table-cell", null, entry.name), index.h("smoothly-table-cell", null, entry.age), index.h("smoothly-table-cell", null, entry.balance), index.h("smoothly-table-cell", null, entry.eyeColor), index.h("smoothly-table-cell", null, entry.gender), index.h("smoothly-table-cell", null, entry.company))))), index.h("smoothly-table-foot", { key: 'ffd413ef41a90b18d9bc871c7b93f41510dc0509' }, index.h("smoothly-table-row", { key: 'eaf3e4be22c78eef4eb41ff9299781fca20496e0' }, index.h("smoothly-table-cell", { key: 'afae4894d7f49040746b279f6ce95a3eeb110778' }, "Footer Cell"), index.h("smoothly-table-cell", { key: 'c4b6dd203fbe9d891a46eb279188fd1140e6f514' }, "Footer Cell"))))));
|
|
11870
12153
|
}
|
|
11871
12154
|
};
|
|
11872
|
-
|
|
12155
|
+
SmoothlyTableDemoNested.style = SmoothlyTableDemoNestedStyle0;
|
|
11873
12156
|
|
|
11874
|
-
const styleCss$
|
|
11875
|
-
const
|
|
12157
|
+
const styleCss$k = ".sc-smoothly-table-demo-nested-inner-h{display:block;margin:1em auto;width:60%}";
|
|
12158
|
+
const SmoothlyTableDemoNestedInnerStyle0 = styleCss$k;
|
|
11876
12159
|
|
|
11877
|
-
const
|
|
12160
|
+
const SmoothlyTableDemoNestedInner = class {
|
|
11878
12161
|
constructor(hostRef) {
|
|
11879
12162
|
index.registerInstance(this, hostRef);
|
|
11880
12163
|
this.data = undefined;
|
|
11881
12164
|
}
|
|
11882
12165
|
render() {
|
|
11883
12166
|
var _a;
|
|
11884
|
-
return (index.h(index.Host, { key: '
|
|
12167
|
+
return (index.h(index.Host, { key: '5c101d92550729cfde6440bf56e62dfd38aa03c6' }, index.h("smoothly-table", { key: '9412c6c571b7ad4b48f883e30914cdb82a2ab24d', columns: 4 }, index.h("smoothly-table-head", { key: '8c7348cef6b37f3a44fcdcfe24df87f54ec65144' }, index.h("smoothly-table-row", { key: '0c81c23928a5c3822190d40e855dd86869094a01' }, index.h("smoothly-table-cell", { key: '3ad50370e49f30a997b9549f262dc305e53ff25c' }, "Id"), index.h("smoothly-table-cell", { key: '64e491e442a81d44f04719f9244f28fbe184a91d' }, "Name"), index.h("smoothly-table-cell", { key: 'fd80beeaacbd5f32db39deb0eeeaaf3c4fcd5034' }, "Age"), index.h("smoothly-table-cell", { key: 'fa5cbb0cfe826bfb09459894a822467a0e7e5ca7' }, "Balance"))), index.h("smoothly-table-body", { key: 'cbfc52a2bda400b6dcc2798a152d3b752bb7ce76' }, (_a = this.data) === null || _a === void 0 ? void 0 : _a.map(entry => (index.h("smoothly-table-expandable-row", null, index.h("smoothly-table-cell", null, entry.id), index.h("smoothly-table-cell", null, entry.name), index.h("smoothly-table-cell", null, entry.age), index.h("smoothly-table-cell", null, entry.balance))))))));
|
|
11885
12168
|
}
|
|
11886
12169
|
};
|
|
11887
|
-
|
|
12170
|
+
SmoothlyTableDemoNestedInner.style = SmoothlyTableDemoNestedInnerStyle0;
|
|
11888
12171
|
|
|
11889
|
-
const styleCss$
|
|
11890
|
-
const
|
|
12172
|
+
const styleCss$j = ".sc-smoothly-table-demo-simple-h{display:block}.sc-smoothly-table-demo-simple-h>smoothly-display.sc-smoothly-table-demo-simple{font-size:2em}.sc-smoothly-table-demo-simple-h>*.sc-smoothly-table-demo-simple{margin-bottom:2rem}";
|
|
12173
|
+
const SmoothlyTableDemoSimpleStyle0 = styleCss$j;
|
|
11891
12174
|
|
|
11892
|
-
const
|
|
12175
|
+
const SmoothlyTableDemoSimple = class {
|
|
11893
12176
|
constructor(hostRef) {
|
|
11894
12177
|
index.registerInstance(this, hostRef);
|
|
11895
12178
|
}
|
|
11896
12179
|
render() {
|
|
11897
|
-
return (index.h(index.Host, { key: '
|
|
12180
|
+
return (index.h(index.Host, { key: '7a1bac3d2892a466093ba4142113a0c67b757a6e' }, index.h("smoothly-display", { key: 'd0281faf4bc55a5432974d45971dad531e61fa2a', type: "text", value: "Simple" }), index.h("smoothly-table", { key: '09b616689732bf5d0246af33cdfe9551e6a6a879', color: "primary", columns: 2 }, index.h("smoothly-table-head", { key: '7fad53ce1745be87aa696524fe5992472e509f13' }, index.h("smoothly-table-row", { key: '7a38f71a563e17dde293404d1b2e744f86c4d356' }, index.h("smoothly-table-cell", { key: 'f24ae5d56b106567db557f6958b32d539590f251' }, "Breed"), index.h("smoothly-table-cell", { key: '96ba0bf58ec0f283f84c00c90107d06254c63a81' }, "Coat"))), index.h("smoothly-table-body", { key: '992aaee0b138ea7401ed3db9c5349eec6a7afeec' }, cats.map(cat => (index.h("smoothly-table-row", null, index.h("smoothly-table-expandable-cell", null, cat.breed, index.h("div", { slot: "detail" }, "Country:", index.h("br", null), cat.country)), index.h("smoothly-table-expandable-cell", null, cat.coat, index.h("div", { slot: "detail" }, "Pattern: ", cat.pattern))))), index.h("smoothly-table-expandable-row", { key: 'c2ec45ddc7b5dc119a915cd0d2457b2367f12188' }, index.h("div", { key: '73c069db23c714c6b1c084bb24173e4a09e8b564', slot: "detail" }, "Content", index.h("br", { key: 'cc86f8f9c9dda93bb9c15a1c5cc6cc8a2a3486e7' }), "of", index.h("br", { key: 'a2eee8e62352f2340613cca097e7953d01525bc0' }), "the", index.h("br", { key: 'e99454d1aab588f127ad11841d0b6cc5d67e3b73' }), "expandable", index.h("br", { key: '90d33ff03447c0db1eb214e5c12ee6936e5e43a2' }), "row"), index.h("smoothly-table-cell", { key: 'a6fd99375d0dce9c73bb42c9ee7ef644efbf4e33' }, "Cell1 in expandable row"), index.h("smoothly-table-cell", { key: 'e9db7f1181f1081c8a6c41156ab3081e129e415e' }, "Cell2 in expandable row")), index.h("smoothly-table-row", { key: '737ef8dd3914162e4107b24dae43077b29786b5f' }, index.h("smoothly-table-cell", { key: '5b68efd60b226c22993cc064db1eaca8d54070e5' }, "Cell5"), index.h("smoothly-table-expandable-cell", { key: '354dcf3f557b809c78dda6b22106613425bbd6e7' }, "Expandable Cell", index.h("div", { key: '2008c93a669890609aff6b1f049b219682be1277', slot: "detail" }, "Content of the expandable cell"))), index.h("smoothly-table-row", { key: '89fd80e93b9dab809e2a53d3ae30b1a552ca0eba' }, index.h("smoothly-table-expandable-cell", { key: '3bace8fae4cacc7f427902e09a3384fcca784ea6' }, "Expandable Cell 1", index.h("div", { key: '072770a51f3c9bd98d5c43e70f6c12c51ce1030d', slot: "detail" }, "Content of the expandable cell 1")), index.h("smoothly-table-expandable-cell", { key: '2cd5fe1b928d238ef45217c4a061756e9b887b9a' }, "Expandable Cell 2", index.h("div", { key: '65d0735ba8dd6f0059e26e2afaf2b89c5b1ea533', slot: "detail" }, "Content of the expandable cell 2")))), index.h("smoothly-table-foot", { key: '65653e24e03fd281077a57ab93ab4235ff5eb858' }, index.h("smoothly-table-row", { key: 'f2f5735fdfa593094a37b8b9acab98036b1a54d2' }, index.h("smoothly-table-cell", { key: 'ad4ed310413fc142079ee4854a543345dcc5ad1d' }, "Footer Cell"), index.h("smoothly-table-cell", { key: '9cbed75f0aa8890bb0843e8a6ea32e33d6cd9781' }, "Footer Cell"))))));
|
|
11898
12181
|
}
|
|
11899
12182
|
};
|
|
11900
12183
|
const cats = [
|
|
@@ -11969,232 +12252,95 @@ const cats = [
|
|
|
11969
12252
|
pattern: "Solid",
|
|
11970
12253
|
},
|
|
11971
12254
|
];
|
|
11972
|
-
|
|
12255
|
+
SmoothlyTableDemoSimple.style = SmoothlyTableDemoSimpleStyle0;
|
|
11973
12256
|
|
|
11974
|
-
const styleCss$
|
|
11975
|
-
const
|
|
12257
|
+
const styleCss$i = ".sc-smoothly-table-expandable-cell-h{display:contents}.sc-smoothly-table-expandable-cell-h>div.sc-smoothly-table-expandable-cell{padding:0.3rem 1.1rem}.sc-smoothly-table-expandable-cell-h>div.content.sc-smoothly-table-expandable-cell{grid-column:span var(--smoothly-table-cell-span, 1);display:flex;box-sizing:border-box;align-items:center;white-space:nowrap;position:relative}.sc-smoothly-table-expandable-cell-h>div.content.sc-smoothly-table-expandable-cell::before{content:\"\";display:flex;position:absolute;top:50%;translate:0 -50%;height:0.4em;width:0.4em;left:0.3em;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-cell-h>div.content.sc-smoothly-table-expandable-cell:hover::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-cell-h>div.content.sc-smoothly-table-expandable-cell::before{rotate:45deg}.sc-smoothly-table-expandable-cell-h>div.content.sc-smoothly-table-expandable-cell:hover{background-color:rgb(var(--smoothly-table-hover-background));color:rgb(var(--smoothly-table-hover-foreground));stroke:rgb(var(--smoothly-table-hover-foreground));fill:rgb(var(--smoothly-table-hover-foreground))}.sc-smoothly-table-expandable-cell-h>div.sc-smoothly-table-expandable-cell:first-child{cursor:pointer}.sc-smoothly-table-expandable-cell-h>div.detail.sc-smoothly-table-expandable-cell{grid-column:1/-1;grid-row:2;position:relative}[open].sc-smoothly-table-expandable-cell-h>div.content.sc-smoothly-table-expandable-cell{box-shadow:1px 1px 1px -1px rgb(var(--smoothly-table-border)) inset, -3px -1px 1px -3px rgb(var(--smoothly-table-border)) inset}[open].sc-smoothly-table-expandable-cell-h>div.sc-smoothly-table-expandable-cell{background-color:rgb(var(--smoothly-table-expanded-background));color:rgb(var(--smoothly-table-expanded-foreground));stroke:rgb(var(--smoothly-table-expanded-foreground));fill:rgb(var(--smoothly-table-expanded-foreground))}.sc-smoothly-table-expandable-cell-h:not([open])>div.detail.sc-smoothly-table-expandable-cell{display:none}.sc-smoothly-table-expandable-cell-h>div.detail.sc-smoothly-table-expandable-cell::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-cell-h>div.detail.sc-smoothly-table-expandable-cell::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))}";
|
|
12258
|
+
const SmoothlyTableExpandableCellStyle0 = styleCss$i;
|
|
11976
12259
|
|
|
11977
|
-
const
|
|
12260
|
+
const SmoothlyTableExpandableCell = class {
|
|
11978
12261
|
constructor(hostRef) {
|
|
11979
12262
|
index.registerInstance(this, hostRef);
|
|
11980
|
-
this.
|
|
12263
|
+
this.smoothlyTableExpandableCellChange = index.createEvent(this, "smoothlyTableExpandableCellChange", 7);
|
|
12264
|
+
this.smoothlyTableExpandableCellRegister = index.createEvent(this, "smoothlyTableExpandableCellRegister", 7);
|
|
12265
|
+
this.span = 1;
|
|
12266
|
+
this.open = false;
|
|
11981
12267
|
}
|
|
11982
|
-
|
|
11983
|
-
|
|
12268
|
+
componentWillLoad() {
|
|
12269
|
+
this.smoothlyTableExpandableCellRegister.emit();
|
|
11984
12270
|
}
|
|
11985
|
-
|
|
11986
|
-
|
|
12271
|
+
async close() {
|
|
12272
|
+
this.open = false;
|
|
12273
|
+
}
|
|
12274
|
+
clickHandler() {
|
|
12275
|
+
this.open = !this.open;
|
|
12276
|
+
}
|
|
12277
|
+
openChange() {
|
|
12278
|
+
this.smoothlyTableExpandableCellChange.emit(this.open);
|
|
11987
12279
|
}
|
|
11988
12280
|
render() {
|
|
11989
|
-
|
|
12281
|
+
var _a;
|
|
12282
|
+
return (index.h(index.Host, { key: 'edf19222d3f1a5954572dbe5dc67035f47e33f2b', style: { "--smoothly-table-cell-span": (_a = this.span) === null || _a === void 0 ? void 0 : _a.toString(10) } }, index.h("div", { key: '21e0ad7b364c875f510e981dbf3b0449459a55d2', onClick: () => this.clickHandler(), class: "content" }, index.h("slot", { key: 'dbd3f3735d7de5ccaef85fa724ff89dc4606432f' })), index.h("div", { key: 'f8032d040bf4b84c8aac87a8b2c2cafd8885abef', class: "detail" }, index.h("slot", { key: 'f603898706b87596c4eaefe1588dad1db17028f2', name: "detail" }))));
|
|
11990
12283
|
}
|
|
12284
|
+
static get watchers() { return {
|
|
12285
|
+
"open": ["openChange"]
|
|
12286
|
+
}; }
|
|
11991
12287
|
};
|
|
11992
|
-
|
|
12288
|
+
SmoothlyTableExpandableCell.style = SmoothlyTableExpandableCellStyle0;
|
|
11993
12289
|
|
|
11994
|
-
const styleCss$
|
|
11995
|
-
const
|
|
12290
|
+
const styleCss$h = ".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>*{cursor:pointer}.sc-smoothly-table-expandable-row-h:has(>.sc-smoothly-table-expandable-row:not(:last-child):hover)>.sc-smoothly-table-expandable-row:not(:last-child){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>div.sc-smoothly-table-expandable-row:last-child{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>.sc-smoothly-table-expandable-row:first-child:not(:last-child){position:relative}.sc-smoothly-table-expandable-row-h>.sc-smoothly-table-expandable-row:first-child:not(:last-child)::before{content:\"\";display:flex;position:absolute;top:50%;translate:0 -50%;height:0.4em;width:0.4em;left:0.3em;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(>.sc-smoothly-table-expandable-row:not(:last-child):hover)>.sc-smoothly-table-expandable-row:first-child:not(:last-child)::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>.sc-smoothly-table-expandable-row:first-child:not(:last-child)::before{rotate:45deg}[open].sc-smoothly-table-expandable-row-h>div.sc-smoothly-table-expandable-row:last-child{overflow:visible;padding:0.3rem 1.1rem}.sc-smoothly-table-expandable-row-h>div.sc-smoothly-table-expandable-row:last-child::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.sc-smoothly-table-expandable-row:last-child::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))}";
|
|
12291
|
+
const SmoothlyTableExpandableRowStyle0 = styleCss$h;
|
|
11996
12292
|
|
|
11997
|
-
const
|
|
12293
|
+
const SmoothlyTableExpandableRow = class {
|
|
11998
12294
|
constructor(hostRef) {
|
|
11999
12295
|
index.registerInstance(this, hostRef);
|
|
12296
|
+
this.smoothlyTableExpandableRowChange = index.createEvent(this, "smoothlyTableExpandableRowChange", 7);
|
|
12297
|
+
this.open = false;
|
|
12298
|
+
}
|
|
12299
|
+
clickHandler(event) {
|
|
12300
|
+
(this.div && event.composedPath().includes(this.div)) || (this.open = !this.open);
|
|
12301
|
+
}
|
|
12302
|
+
openChange() {
|
|
12303
|
+
this.smoothlyTableExpandableRowChange.emit(this.open);
|
|
12000
12304
|
}
|
|
12001
12305
|
render() {
|
|
12002
|
-
return (index.h(index.Host, { key: '
|
|
12306
|
+
return (index.h(index.Host, { key: '4bed1759b9e09e82573bb7f3c251dfb994b0ad25', onClick: (e) => this.clickHandler(e) }, index.h("slot", { key: '7bcc22204301c6f3e2e89cc16238c345418ff0bc' }), index.h("div", { key: '925ba79c7580b1960371b68a1b5e180c7d83b146', ref: e => (this.div = e) }, index.h("slot", { key: '5d35d3d3f462562d734a864b872307375872d37e', name: "detail" }))));
|
|
12003
12307
|
}
|
|
12308
|
+
static get watchers() { return {
|
|
12309
|
+
"open": ["openChange"]
|
|
12310
|
+
}; }
|
|
12004
12311
|
};
|
|
12005
|
-
|
|
12312
|
+
SmoothlyTableExpandableRow.style = SmoothlyTableExpandableRowStyle0;
|
|
12006
12313
|
|
|
12007
|
-
const styleCss$
|
|
12008
|
-
const
|
|
12314
|
+
const styleCss$g = ".sc-smoothly-table-filler-row-h{grid-column:1 / -1}";
|
|
12315
|
+
const SmoothlyTableFillerRowStyle0 = styleCss$g;
|
|
12009
12316
|
|
|
12010
|
-
const
|
|
12317
|
+
const SmoothlyTableFillerRow = class {
|
|
12011
12318
|
constructor(hostRef) {
|
|
12012
12319
|
index.registerInstance(this, hostRef);
|
|
12013
|
-
this.span = 1;
|
|
12014
|
-
}
|
|
12015
|
-
render() {
|
|
12016
|
-
var _a;
|
|
12017
|
-
return (index.h(index.Host, { key: '78a499f0a16c677f1834f1704ecc53952b08a5ae', style: { "--smoothly-table-cell-span": (_a = this.span) === null || _a === void 0 ? void 0 : _a.toString(10) } }, index.h("slot", { key: '5ec1cb941acd0ff5fecf223cde1e797119b40a61' })));
|
|
12018
|
-
}
|
|
12019
|
-
};
|
|
12020
|
-
SmoothlyNextTableCell.style = SmoothlyNextTableCellStyle0;
|
|
12021
|
-
|
|
12022
|
-
var __classPrivateFieldGet = (undefined && undefined.__classPrivateFieldGet) || function (receiver, state, kind, f) {
|
|
12023
|
-
if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
|
|
12024
|
-
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
|
|
12025
|
-
return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
|
|
12026
|
-
};
|
|
12027
|
-
var __classPrivateFieldSet = (undefined && undefined.__classPrivateFieldSet) || function (receiver, state, value, kind, f) {
|
|
12028
|
-
if (kind === "m") throw new TypeError("Private method is not writable");
|
|
12029
|
-
if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a setter");
|
|
12030
|
-
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot write private member to an object whose class did not declare it");
|
|
12031
|
-
return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
|
|
12032
|
-
};
|
|
12033
|
-
var _Selector_selected;
|
|
12034
|
-
class Selector {
|
|
12035
|
-
get selected() {
|
|
12036
|
-
var _a;
|
|
12037
|
-
return (__classPrivateFieldSet(this, _Selector_selected, (_a = __classPrivateFieldGet(this, _Selector_selected, "f")) !== null && _a !== void 0 ? _a : Object.values(this.data), "f"));
|
|
12038
|
-
}
|
|
12039
|
-
constructor(key, data = {}) {
|
|
12040
|
-
this.key = key;
|
|
12041
|
-
this.data = data;
|
|
12042
|
-
_Selector_selected.set(this, void 0);
|
|
12043
|
-
}
|
|
12044
|
-
handle(data) {
|
|
12045
|
-
var _a;
|
|
12046
|
-
return new Selector(this.key, "check-all" in data
|
|
12047
|
-
? (_a = data["check-all"]) !== null && _a !== void 0 ? _a : {}
|
|
12048
|
-
: Object.fromEntries(Object.entries(Object.assign(Object.assign({}, this.data), data)).filter(([_, value]) => value != undefined)));
|
|
12049
|
-
}
|
|
12050
|
-
render(item) {
|
|
12051
|
-
var _a, _b, _c;
|
|
12052
|
-
return Array.isArray(item) ? (index.h("smoothly-checkbox", { name: "check-all", value: Object.fromEntries(item.map(i => [i[this.key], i])), intermediate: this.selected.length > 0 && this.selected.length < item.length, checked: this.selected.length == item.length ? true : this.selected.length == 0 && false })) : (index.h("smoothly-checkbox", { name: (_a = item[this.key]) === null || _a === void 0 ? void 0 : _a.toString(), value: item, checked: !!this.data[(_c = (_b = item[this.key]) === null || _b === void 0 ? void 0 : _b.toString()) !== null && _c !== void 0 ? _c : ""] }));
|
|
12053
|
-
}
|
|
12054
|
-
static create(key) {
|
|
12055
|
-
return new Selector(key);
|
|
12056
|
-
}
|
|
12057
|
-
}
|
|
12058
|
-
_Selector_selected = new WeakMap();
|
|
12059
|
-
|
|
12060
|
-
const styleCss$z = ".sc-smoothly-next-table-demo-filtered-h{display:grid;grid-template-columns:auto auto;grid-template-areas:\"header filter\"\n\t\t\"main main\";margin-bottom:50em}.sc-smoothly-next-table-demo-filtered-h>smoothly-display.sc-smoothly-next-table-demo-filtered{font-size:2em;grid-area:header}.sc-smoothly-next-table-demo-filtered-h>smoothly-filter.sc-smoothly-next-table-demo-filtered{margin-left:auto;grid-area:filter;height:fit-content}.sc-smoothly-next-table-demo-filtered-h>*.sc-smoothly-next-table-demo-filtered{margin-bottom:2rem;grid-area:main}.sc-smoothly-next-table-demo-filtered-h>smoothly-next-table.sc-smoothly-next-table-demo-filtered{grid-template-columns:min-content repeat(calc(var(--columns) - 1), auto)}smoothly-next-table.sc-smoothly-next-table-demo-filtered>smoothly-next-table-row.sc-smoothly-next-table-demo-filtered>smoothly-next-table-cell.sc-smoothly-next-table-demo-filtered:nth-of-type(2),.sc-smoothly-next-table-demo-filtered-h>smoothly-next-table.sc-smoothly-next-table-demo-filtered>smoothly-next-table-head.sc-smoothly-next-table-demo-filtered>smoothly-next-table-row.sc-smoothly-next-table-demo-filtered>smoothly-next-table-cell.sc-smoothly-next-table-demo-filtered:nth-of-type(4){justify-content:end}";
|
|
12061
|
-
const SmoothlyNextTableDemoFilteredStyle0 = styleCss$z;
|
|
12062
|
-
|
|
12063
|
-
const TableDemoFiltered$1 = class {
|
|
12064
|
-
constructor(hostRef) {
|
|
12065
|
-
index.registerInstance(this, hostRef);
|
|
12066
|
-
this.criteria = {};
|
|
12067
|
-
this.cats = undefined;
|
|
12068
|
-
this.selector = Selector.create("breed");
|
|
12069
|
-
}
|
|
12070
|
-
onFilterUpdate(event) {
|
|
12071
|
-
event.stopPropagation();
|
|
12072
|
-
this.criteria = event.detail;
|
|
12073
|
-
}
|
|
12074
|
-
smoothlyInputHandler(event) {
|
|
12075
|
-
event.stopPropagation();
|
|
12076
|
-
this.selector = this.selector.handle(event.detail);
|
|
12077
|
-
}
|
|
12078
|
-
async componentWillLoad() {
|
|
12079
|
-
const response = await fetch("https://catfact.ninja/breeds?limit=15");
|
|
12080
|
-
this.cats =
|
|
12081
|
-
response.status == 200 &&
|
|
12082
|
-
(await response.body).data.map((cat) => {
|
|
12083
|
-
var _a, _b;
|
|
12084
|
-
return (Object.assign(Object.assign({}, cat), { price: [...cat.breed].reduce((r, c) => r + c.charCodeAt(0), 0), nested: Object.assign(Object.assign({}, cat), { names: (_a = names$1[cat.country]) !== null && _a !== void 0 ? _a : [] }), names: (_b = names$1[cat.country]) !== null && _b !== void 0 ? _b : [] }));
|
|
12085
|
-
});
|
|
12086
12320
|
}
|
|
12087
12321
|
render() {
|
|
12088
|
-
|
|
12089
|
-
return (index.h(index.Host, { key: '819c08970d7851e60ec03ebc75b5762636712313' }, index.h("smoothly-display", { key: 'd85d2d9d2b290b64a5163c7eb5b4185558fc01db', type: "text", value: "Filtered" }), index.h("smoothly-filter", { key: '25fc6a71565a5a02c3ce62b03f1ac5280c7b37ce' }, index.h("smoothly-filter-toggle", { key: '0f0aadc2296c8b86eaddd7680cdb4333050ac398', properties: { ["nested.pattern"]: "Ticked", breed: "" }, icon: "add", toolTip: "Nested Ticked", slot: "bar" }), index.h("smoothly-filter-toggle", { key: '70a20a4079ecb827ee4386308a1b95687417eae3', properties: { pattern: "Ticked", breed: "" }, icon: "paw", toolTip: "Ticked cats", slot: "bar" }), index.h("smoothly-filter-toggle", { key: 'dec5e592bb5bab7a636221f4877f29957dbbe504', properties: { breed: "Bombay", pattern: "Solid" }, icon: "radio-button-on", toolTip: "Solid bombay cats", slot: "bar" }), index.h("smoothly-filter-toggle", { key: 'c84f8aa97c89a024a58f0635d24f5e254ed69931', properties: { pattern: "Colorpoint" }, not: true, active: true, icon: "alert", toolTip: "Colored cats", slot: "bar" }), index.h("smoothly-filter-select", { key: '0e36dba26303cf7575103119375ec76c3c629133', menuHeight: "5items", label: "coat", property: "nested.coat", slot: "bar", multiple: false }, this.cats &&
|
|
12090
|
-
Object.values(this.cats.reduce((r, cat) => (cat.nested ? Object.assign(Object.assign({}, r), { [cat.nested.coat]: cat }) : r), {})).map(cat => {
|
|
12091
|
-
var _a;
|
|
12092
|
-
return ((_a = cat.nested) === null || _a === void 0 ? void 0 : _a.coat) && (index.h("smoothly-item", { slot: "items", value: cat.nested.coat }, cat.nested.coat));
|
|
12093
|
-
})), index.h("div", { key: '12bc508938faeeca2ff380dad0bc0e0add984849', slot: "detail" }, index.h("smoothly-form", { key: 'fd018c0d14b5b7a66cf8fcd9358c0466990f75e4', looks: "border" }, index.h("smoothly-filter-select", { key: 'a5e9324423f7adba4db420ac82e7712088dccf99', menuHeight: "5items", label: "coat", property: "nested.coat", multiple: true }, this.cats &&
|
|
12094
|
-
Object.values(this.cats.reduce((r, cat) => (cat.nested ? Object.assign(Object.assign({}, r), { [cat.nested.coat]: cat }) : r), {})).map(cat => {
|
|
12095
|
-
var _a;
|
|
12096
|
-
return ((_a = cat.nested) === null || _a === void 0 ? void 0 : _a.coat) && (index.h("smoothly-item", { slot: "items", value: cat.nested.coat }, cat.nested.coat));
|
|
12097
|
-
})), index.h("smoothly-filter-select", { key: '39eacd58fac8964b5a2a4be46041ebe5703fea89', menuHeight: "5items", label: "breed", property: "breed", multiple: false }, this.cats &&
|
|
12098
|
-
Object.values(this.cats.reduce((r, cat) => (cat.breed ? Object.assign(Object.assign({}, r), { [cat.breed]: cat }) : r), {})).map(cat => cat.breed && (index.h("smoothly-item", { slot: "items", value: cat.breed }, cat.breed)))), index.h("smoothly-filter-select", { key: '8605a94f31d45afbe9f339eecae0737c318cf9f8', menuHeight: "5items", label: "names", property: "nested.names", multiple: true, type: "array" }, Object.keys(Object.values(names$1)
|
|
12099
|
-
.flat()
|
|
12100
|
-
.reduce((r, name) => (Object.assign(Object.assign({}, r), { [name]: true })), {})).flatMap(name => (index.h("smoothly-item", { slot: "items", value: name }, name)))), index.h("smoothly-filter-input", { key: '9ea45abf079f3844da63f6d9f046a35fa3a0d7a1', label: "Coat", property: "coat" }), index.h("smoothly-filter-input", { key: '87437930089acc044bb1c3c2dd86054059701709', label: "Nested Coat", property: "nested.coat" })))), !cats ? ("Failed to load data.") : (index.h("smoothly-next-table", { columns: 4 }, index.h("smoothly-next-table-head", null, index.h("smoothly-next-table-row", null, index.h("smoothly-next-table-cell", null, this.selector.render(cats)), index.h("smoothly-next-table-cell", null, "Breed"), index.h("smoothly-next-table-cell", null, "Coat"), index.h("smoothly-next-table-cell", null, "Price"))), cats.map(cat => (index.h("smoothly-next-table-row", null, index.h("smoothly-next-table-cell", null, this.selector.render(cat)), index.h("smoothly-next-table-expandable-cell", null, cat.breed, index.h("div", { slot: "detail" }, "Country: ", cat.country)), index.h("smoothly-next-table-expandable-cell", null, cat.coat, index.h("div", { slot: "detail" }, "Pattern: ", cat.pattern)), index.h("smoothly-next-table-cell", null, index.h("smoothly-display", { type: "price", value: cat.price, currency: "SEK" }))))), index.h("smoothly-next-table-foot", null, index.h("smoothly-next-table-row", null, index.h("smoothly-next-table-cell", { span: 3 }, index.h("smoothly-display", { type: "text", value: `Selected: ${this.selector.selected.length != 0 ? this.selector.selected.length : cats ? cats.length : "?"}` }))))))));
|
|
12322
|
+
return (index.h("smoothly-table-row", { key: '487cc599f66e2256280eba9623a90c089489d1f6' }, index.h("smoothly-table-cell", { key: '4ad4fb2d4bd3ff44bf6a62d20489cf7607f5d7ca' }, index.h("slot", { key: 'b1b8b30cdca397452636e65e2ff2f0c2e8624d42' }))));
|
|
12101
12323
|
}
|
|
12102
12324
|
};
|
|
12103
|
-
|
|
12104
|
-
"United States": ["bill", "bob", "brad", "joe", "molly"],
|
|
12105
|
-
Australia: ["nigel", "bruce", "sheila", "brad", "shane"],
|
|
12106
|
-
"United Kingdom": ["nigel", "james", "molly", "shane", "bob"],
|
|
12107
|
-
Greece: ["dionysius", "demetrius", "polikarpos"],
|
|
12108
|
-
};
|
|
12109
|
-
TableDemoFiltered$1.style = SmoothlyNextTableDemoFilteredStyle0;
|
|
12325
|
+
SmoothlyTableFillerRow.style = SmoothlyTableFillerRowStyle0;
|
|
12110
12326
|
|
|
12111
|
-
const styleCss$
|
|
12112
|
-
const
|
|
12327
|
+
const styleCss$f = ".sc-smoothly-table-foot-h{grid-column:1 / -1;display:grid;grid-template-columns:subgrid;position:sticky;z-index:1;bottom:0;background-color:rgb(var(--smoothly-table-footer-background));color:rgb(var(--smoothly-table-footer-foreground));stroke:rgb(var(--smoothly-table-footer-foreground));fill:rgb(var(--smoothly-table-footer-foreground))}";
|
|
12328
|
+
const SmoothlyTableFootStyle0 = styleCss$f;
|
|
12113
12329
|
|
|
12114
|
-
const
|
|
12330
|
+
const SmoothlyTableFoot = class {
|
|
12115
12331
|
constructor(hostRef) {
|
|
12116
12332
|
index.registerInstance(this, hostRef);
|
|
12117
|
-
this.smoothlyNextTableExpandableCellChange = index.createEvent(this, "smoothlyNextTableExpandableCellChange", 7);
|
|
12118
|
-
this.smoothlyNextTableExpandableCellRegister = index.createEvent(this, "smoothlyNextTableExpandableCellRegister", 7);
|
|
12119
|
-
this.span = 1;
|
|
12120
|
-
this.open = false;
|
|
12121
|
-
}
|
|
12122
|
-
componentWillLoad() {
|
|
12123
|
-
this.smoothlyNextTableExpandableCellRegister.emit();
|
|
12124
|
-
}
|
|
12125
|
-
async close() {
|
|
12126
|
-
this.open = false;
|
|
12127
|
-
}
|
|
12128
|
-
clickHandler() {
|
|
12129
|
-
this.open = !this.open;
|
|
12130
|
-
}
|
|
12131
|
-
openChange() {
|
|
12132
|
-
this.smoothlyNextTableExpandableCellChange.emit(this.open);
|
|
12133
12333
|
}
|
|
12134
12334
|
render() {
|
|
12135
|
-
|
|
12136
|
-
return (index.h(index.Host, { key: 'f4e00f34b020024107236090f248c9b29f1569cd', style: { "--smoothly-table-cell-span": (_a = this.span) === null || _a === void 0 ? void 0 : _a.toString(10) } }, index.h("div", { key: '671c8f23c8372b1746a88fb9b628791aafe94dbc', onClick: () => this.clickHandler(), class: "content" }, index.h("slot", { key: '98c2aac2a0b26b833d67e2acaae2b91a6f53ea30' })), index.h("div", { key: 'acbf37b2e9612cd8c68939147efdb70722a89832', class: "detail" }, index.h("slot", { key: 'f1112de8599b7c62b0ce8e18b67fa0246837a498', name: "detail" }))));
|
|
12335
|
+
return (index.h(index.Host, { key: '8f13c28ec690d682f9d9d2161af1d8f5d21ac027' }, index.h("slot", { key: '97de36a9401b62b683a8b6e86eef2d72910c067f' })));
|
|
12137
12336
|
}
|
|
12138
|
-
static get watchers() { return {
|
|
12139
|
-
"open": ["openChange"]
|
|
12140
|
-
}; }
|
|
12141
12337
|
};
|
|
12142
|
-
|
|
12338
|
+
SmoothlyTableFoot.style = SmoothlyTableFootStyle0;
|
|
12143
12339
|
|
|
12144
|
-
const styleCss$
|
|
12145
|
-
const
|
|
12340
|
+
const styleCss$e = ".sc-smoothly-table-head-h{grid-column:1 / -1;display:grid;grid-template-columns:subgrid;top:0;position:sticky;z-index:1;--smoothly-color:var(--smoothly-table-header-background);--smoothly-color-contrast:var(--smoothly-table-header-foreground);background-color:rgb(var(--smoothly-table-header-background));color:rgb(var(--smoothly-table-header-foreground));stroke:rgb(var(--smoothly-table-header-foreground));fill:rgb(var(--smoothly-table-header-foreground));font-weight:bold;transition:box-shadow 0.3s ease}.scrolled.sc-smoothly-table-head-h{box-shadow:var(--smoothly-table-header-shadow)}";
|
|
12341
|
+
const SmoothlyTableHeadStyle0 = styleCss$e;
|
|
12146
12342
|
|
|
12147
|
-
const
|
|
12148
|
-
constructor(hostRef) {
|
|
12149
|
-
index.registerInstance(this, hostRef);
|
|
12150
|
-
this.smoothlyNextTableExpandableRowChange = index.createEvent(this, "smoothlyNextTableExpandableRowChange", 7);
|
|
12151
|
-
this.open = false;
|
|
12152
|
-
}
|
|
12153
|
-
clickHandler(event) {
|
|
12154
|
-
(this.div && event.composedPath().includes(this.div)) || (this.open = !this.open);
|
|
12155
|
-
}
|
|
12156
|
-
openChange() {
|
|
12157
|
-
this.smoothlyNextTableExpandableRowChange.emit(this.open);
|
|
12158
|
-
}
|
|
12159
|
-
render() {
|
|
12160
|
-
return (index.h(index.Host, { key: 'ae127ed0832293efd673f48d7c84dbd788d30bb4', onClick: (e) => this.clickHandler(e) }, index.h("slot", { key: '14c8a0f4a3dfb73d054cb410b2b34316aef3a593' }), index.h("div", { key: '475653118c4b0297ae2944c0b6569802fca4ee73', ref: e => (this.div = e) }, index.h("slot", { key: '3d9149d0c0dfc63d953c53358643411d8cd9e9b3', name: "detail" }))));
|
|
12161
|
-
}
|
|
12162
|
-
static get watchers() { return {
|
|
12163
|
-
"open": ["openChange"]
|
|
12164
|
-
}; }
|
|
12165
|
-
};
|
|
12166
|
-
SmoothlyNextTableExpandableRow.style = SmoothlyNextTableExpandableRowStyle0;
|
|
12167
|
-
|
|
12168
|
-
const styleCss$w = ".sc-smoothly-next-table-filler-row-h{grid-column:1 / -1}";
|
|
12169
|
-
const SmoothlyNextTableFillerRowStyle0 = styleCss$w;
|
|
12170
|
-
|
|
12171
|
-
const SmoothlyNextTableFillerRow = class {
|
|
12172
|
-
constructor(hostRef) {
|
|
12173
|
-
index.registerInstance(this, hostRef);
|
|
12174
|
-
}
|
|
12175
|
-
render() {
|
|
12176
|
-
return (index.h("smoothly-next-table-row", { key: 'b1115b06ee32528145d95e83bafbbd494deac5e3' }, index.h("smoothly-next-table-cell", { key: '664c9b9de47c08ec60506f4bef8eed26667d3ebd' }, index.h("slot", { key: '81df8108154d511bb9b054518e0e1ae460bd2d7e' }))));
|
|
12177
|
-
}
|
|
12178
|
-
};
|
|
12179
|
-
SmoothlyNextTableFillerRow.style = SmoothlyNextTableFillerRowStyle0;
|
|
12180
|
-
|
|
12181
|
-
const styleCss$v = ".sc-smoothly-next-table-foot-h{grid-column:1 / -1;display:grid;grid-template-columns:subgrid;position:sticky;z-index:1;bottom:0;background-color:rgb(var(--smoothly-table-footer-background));color:rgb(var(--smoothly-table-footer-foreground));stroke:rgb(var(--smoothly-table-footer-foreground));fill:rgb(var(--smoothly-table-footer-foreground))}";
|
|
12182
|
-
const SmoothlyNextTableFootStyle0 = styleCss$v;
|
|
12183
|
-
|
|
12184
|
-
const SmoothlyNextTableFoot = class {
|
|
12185
|
-
constructor(hostRef) {
|
|
12186
|
-
index.registerInstance(this, hostRef);
|
|
12187
|
-
}
|
|
12188
|
-
render() {
|
|
12189
|
-
return (index.h(index.Host, { key: 'cd3059ed84b8029caa4704f79d9be300f7d84bba' }, index.h("slot", { key: '19716629341805a42a04b8120aa5d621dc99783e' })));
|
|
12190
|
-
}
|
|
12191
|
-
};
|
|
12192
|
-
SmoothlyNextTableFoot.style = SmoothlyNextTableFootStyle0;
|
|
12193
|
-
|
|
12194
|
-
const styleCss$u = ".sc-smoothly-next-table-head-h{grid-column:1 / -1;display:grid;grid-template-columns:subgrid;top:0;position:sticky;z-index:1;--smoothly-color:var(--smoothly-table-header-background);--smoothly-color-contrast:var(--smoothly-table-header-foreground);background-color:rgb(var(--smoothly-table-header-background));color:rgb(var(--smoothly-table-header-foreground));stroke:rgb(var(--smoothly-table-header-foreground));fill:rgb(var(--smoothly-table-header-foreground));font-weight:bold;transition:box-shadow 0.3s ease}.scrolled.sc-smoothly-next-table-head-h{box-shadow:var(--smoothly-table-header-shadow)}";
|
|
12195
|
-
const SmoothlyNextTableHeadStyle0 = styleCss$u;
|
|
12196
|
-
|
|
12197
|
-
const SmoothlyNextTableHead = class {
|
|
12343
|
+
const SmoothlyTableHead = class {
|
|
12198
12344
|
constructor(hostRef) {
|
|
12199
12345
|
index.registerInstance(this, hostRef);
|
|
12200
12346
|
this.onScroll = (event) => {
|
|
@@ -12217,588 +12363,54 @@ const SmoothlyNextTableHead = class {
|
|
|
12217
12363
|
(_a = this.scrollParent) === null || _a === void 0 ? void 0 : _a.removeEventListener("scroll", this.onScroll);
|
|
12218
12364
|
}
|
|
12219
12365
|
render() {
|
|
12220
|
-
return (index.h(index.Host, { key: '
|
|
12366
|
+
return (index.h(index.Host, { key: 'b6bfb1f382f927b434e0007568170daf00f63c75', class: { scrolled: !!this.scrolled } }, index.h("slot", { key: 'd37d97f75e41498348e2d1ba12e6bf86187edb1f' })));
|
|
12221
12367
|
}
|
|
12222
12368
|
get element() { return index.getElement(this); }
|
|
12223
12369
|
};
|
|
12224
|
-
|
|
12370
|
+
SmoothlyTableHead.style = SmoothlyTableHeadStyle0;
|
|
12225
12371
|
|
|
12226
|
-
const styleCss$
|
|
12227
|
-
const
|
|
12372
|
+
const styleCss$d = ".sc-smoothly-table-row-h{grid-column:1 / -1;display:grid;grid-template-columns:subgrid;box-sizing:border-box;box-shadow:0px 1px 1px -1px rgb(var(--smoothly-table-border))}.sc-smoothly-table-row-h:has(smoothly-table-expandable-cell){grid-template-rows:auto 0fr 0fr}.sc-smoothly-table-row-h:has(smoothly-table-expandable-cell[open]){grid-template-rows:auto 1fr 0fr}";
|
|
12373
|
+
const SmoothlyTableRowStyle0 = styleCss$d;
|
|
12228
12374
|
|
|
12229
|
-
const
|
|
12375
|
+
const SmoothlyTableRow = class {
|
|
12230
12376
|
constructor(hostRef) {
|
|
12231
12377
|
index.registerInstance(this, hostRef);
|
|
12232
12378
|
this.expandableCells = new Set();
|
|
12233
12379
|
}
|
|
12234
|
-
|
|
12380
|
+
smoothlyTableExpandableCellRegisterHandler(event) {
|
|
12235
12381
|
event.stopPropagation();
|
|
12236
12382
|
this.expandableCells.add(event.target);
|
|
12237
12383
|
}
|
|
12238
|
-
|
|
12384
|
+
smoothlyTableExpandableCellChangeHandler(event) {
|
|
12239
12385
|
if (event.detail)
|
|
12240
12386
|
for (const cell of this.expandableCells)
|
|
12241
12387
|
event.target != cell && cell.close();
|
|
12242
12388
|
}
|
|
12243
12389
|
render() {
|
|
12244
|
-
return (index.h(index.Host, { key: '
|
|
12390
|
+
return (index.h(index.Host, { key: '84924ddbf8eb1970ba47a5eaf91c918d8bcb3c06' }, index.h("slot", { key: '7e100fae4fa251b97011f7fce663917e026b44e5' })));
|
|
12245
12391
|
}
|
|
12246
12392
|
};
|
|
12247
|
-
|
|
12393
|
+
SmoothlyTableRow.style = SmoothlyTableRowStyle0;
|
|
12248
12394
|
|
|
12249
|
-
const styleCss$
|
|
12250
|
-
const
|
|
12395
|
+
const styleCss$c = ".sc-smoothly-table-row-group-h{grid-column:1 / -1;display:grid;grid-template-columns:subgrid;margin-top:1px}.sc-smoothly-table-row-group-h>div.sc-smoothly-table-row-group:first-child{grid-column:1 / -1;display:grid;position:relative;cursor:pointer}.sc-smoothly-table-row-group-h>div.sc-smoothly-table-row-group:last-child{grid-column:1 / -1;display:grid;grid-template-columns:subgrid}[align].sc-smoothly-table-row-group-h>div.sc-smoothly-table-row-group:first-child{grid-template-columns:subgrid}[align].sc-smoothly-table-row-group-h>div.sc-smoothly-table-row-group:first-child>div.sc-smoothly-table-row-group{display:contents}[align].sc-smoothly-table-row-group-h>div.sc-smoothly-table-row-group:first-child>div.sc-smoothly-table-row-group>*.sc-smoothly-table-row-group{padding:0.3rem 1.1rem}.sc-smoothly-table-row-group-h:not([align])>div.sc-smoothly-table-row-group:first-child{grid-column:1 / -1;display:grid;grid-template-columns:repeat(2, auto);justify-content:space-between;padding:0.3rem 1.1rem}.sc-smoothly-table-row-group-h:not([align])>div.sc-smoothly-table-row-group:first-child>div.sc-smoothly-table-row-group:first-child{justify-self:start;display:flex;gap:1rem}.sc-smoothly-table-row-group-h:not([align])>div.sc-smoothly-table-row-group:first-child>div.sc-smoothly-table-row-group:last-child{justify-self:end;display:flex;gap:1rem}.sc-smoothly-table-row-group-h:not([open]){grid-template-rows:auto 0fr}.sc-smoothly-table-row-group-h:not([open])>div.sc-smoothly-table-row-group:last-child{grid-row:2;overflow:hidden}.sc-smoothly-table-row-group-h>div.sc-smoothly-table-row-group:first-child>div.sc-smoothly-table-row-group:first-child::before{content:'';display:flex;position:absolute;top:50%;translate:0 -50%;left:0.3em;height:0.4em;width:0.4em;border-bottom:1px solid rgb(var(--smoothly-default-contrast));border-right:1px solid rgb(var(--smoothly-default-contrast));transition:rotate 200ms ease-in-out;rotate:-45deg;opacity:0.3}.sc-smoothly-table-row-group-h>div.sc-smoothly-table-row-group:first-child:hover>div.sc-smoothly-table-row-group:first-child::before{opacity:1}[open].sc-smoothly-table-row-group-h>div.sc-smoothly-table-row-group:first-child>div.sc-smoothly-table-row-group:first-child::before{rotate:45deg}.sc-smoothly-table-row-group-h>div.sc-smoothly-table-row-group:first-child{background-color:rgb(var(--smoothly-default-tint))}.sc-smoothly-table-row-group-h>div.sc-smoothly-table-row-group:first-child{border-bottom:1px solid rgb(var(--smoothly-default-shade))}.sc-smoothly-table-row-group-h>div.sc-smoothly-table-row-group:first-child:hover{background-color:rgb(var(--smoothly-default-shade))}";
|
|
12396
|
+
const SmoothlyTableRowGroupStyle0 = styleCss$c;
|
|
12251
12397
|
|
|
12252
|
-
const
|
|
12398
|
+
const SmoothlyTableRowGroup = class {
|
|
12253
12399
|
constructor(hostRef) {
|
|
12254
12400
|
index.registerInstance(this, hostRef);
|
|
12255
|
-
this.
|
|
12401
|
+
this.smoothlyTableRowGroupChange = index.createEvent(this, "smoothlyTableRowGroupChange", 7);
|
|
12256
12402
|
this.align = false;
|
|
12257
12403
|
this.open = false;
|
|
12258
12404
|
}
|
|
12259
12405
|
clickHandler() {
|
|
12260
12406
|
this.open = !this.open;
|
|
12261
|
-
this.
|
|
12262
|
-
}
|
|
12263
|
-
render() {
|
|
12264
|
-
return (index.h(index.Host, { key: 'd3b00684150badf532b9e22875f5336b3046c2f6' }, index.h("div", { key: '97df58601849cc6d33927c57df492ac7d1c3a3f2', onClick: () => this.clickHandler() }, index.h("div", { key: '9eb12d4d482d9a7281bda20e2fab7786b57304af' }, index.h("slot", { key: '9c16eb02aa173f60ccf9511ec9e3ed6326a69e52', name: "start" })), index.h("div", { key: 'd42092eebabe3aa692a683611bcf0b39346df059' }, index.h("slot", { key: 'ff10f4778d37364614497d63e6409941175677e0', name: "end" }))), index.h("div", { key: 'e31785e564d6a0070252beed387109683db6cf9c' }, index.h("slot", { key: 'a3cddc81231e743c8e35ce25e72011e3449f084a' }))));
|
|
12265
|
-
}
|
|
12266
|
-
};
|
|
12267
|
-
SmoothlyNextTableRowGroup.style = SmoothlyNextTableRowGroupStyle0;
|
|
12268
|
-
|
|
12269
|
-
const styleCss$r = ".sc-smoothly-notification-h{display:block;position:relative;min-width:30em;min-height:3em;border-radius:5px;margin:0.5em}.sc-smoothly-notification-h>span.icon.sc-smoothly-notification>smoothly-icon.sc-smoothly-notification,.sc-smoothly-notification-h>span.clean.sc-smoothly-notification{display:flex;justify-content:center;align-self:center}.sc-smoothly-notification-h>span.sc-smoothly-notification{margin:0 2rem 0 1rem}.sc-smoothly-notification-h>span.icon.sc-smoothly-notification{display:flex;width:100%;justify-content:center}.sc-smoothly-notification-h>span.icon.sc-smoothly-notification>p.sc-smoothly-notification{padding-right:1em}.sc-smoothly-notification-h>span.sc-smoothly-notification>p.sc-smoothly-notification{text-align:left}[hidden].sc-smoothly-notification-h{display:none}.sc-smoothly-notification-h>span.icon.sc-smoothly-notification>smoothly-icon.sc-smoothly-notification{margin:0 0.5rem}.sc-smoothly-notification-h>smoothly-trigger.sc-smoothly-notification{font-size:0.7em;position:absolute;right:0}";
|
|
12270
|
-
const SmoothlyNotificationStyle0 = styleCss$r;
|
|
12271
|
-
|
|
12272
|
-
const Notification = class {
|
|
12273
|
-
constructor(hostRef) {
|
|
12274
|
-
index.registerInstance(this, hostRef);
|
|
12275
|
-
this.remove = index.createEvent(this, "remove", 7);
|
|
12276
|
-
this.listener = notice => {
|
|
12277
|
-
if (notice.state == "closed")
|
|
12278
|
-
this.remove.emit(notice);
|
|
12279
|
-
else
|
|
12280
|
-
this.tick = {};
|
|
12281
|
-
};
|
|
12282
|
-
this.notice = undefined;
|
|
12283
|
-
this.closable = true;
|
|
12284
|
-
this.icon = undefined;
|
|
12285
|
-
this.tick = {};
|
|
12286
|
-
}
|
|
12287
|
-
get properties() {
|
|
12288
|
-
let result;
|
|
12289
|
-
switch (this.notice.state) {
|
|
12290
|
-
case "delayed":
|
|
12291
|
-
case "warning":
|
|
12292
|
-
result = ["warning", "warning-outline"];
|
|
12293
|
-
break;
|
|
12294
|
-
case "success":
|
|
12295
|
-
result = ["success", "checkmark-circle"];
|
|
12296
|
-
break;
|
|
12297
|
-
case "executing":
|
|
12298
|
-
result = ["light", "hourglass-outline"];
|
|
12299
|
-
break;
|
|
12300
|
-
case "failed":
|
|
12301
|
-
result = ["danger", "alert-circle"];
|
|
12302
|
-
break;
|
|
12303
|
-
default:
|
|
12304
|
-
result = ["light", undefined];
|
|
12305
|
-
break;
|
|
12306
|
-
}
|
|
12307
|
-
return result;
|
|
12308
|
-
}
|
|
12309
|
-
onTrigger(event) {
|
|
12310
|
-
if (event.detail.name == "close") {
|
|
12311
|
-
event.stopPropagation();
|
|
12312
|
-
this.notice.close();
|
|
12313
|
-
}
|
|
12314
|
-
}
|
|
12315
|
-
onUpdatedNotice(newValue, oldValue) {
|
|
12316
|
-
if (oldValue)
|
|
12317
|
-
oldValue.unlisten(this.listener);
|
|
12318
|
-
newValue.listen(this.listener);
|
|
12319
|
-
}
|
|
12320
|
-
componentDidLoad() {
|
|
12321
|
-
this.onUpdatedNotice(this.notice);
|
|
12322
|
-
}
|
|
12323
|
-
render() {
|
|
12324
|
-
return (index.h(index.Host, { key: 'b465684388e211b2ded5fd95c2606598836eb9f7', color: this.properties[0], fill: "solid" }, this.closable && (index.h("smoothly-trigger", { key: 'f9c192c92023caa247d76d2b429aca24f344eadd', fill: "clear", name: "close" }, index.h("smoothly-icon", { key: 'd2d9149ed8e0223269ed2f07f520916d526e183d', name: "close-circle-outline" }))), index.h("span", { key: 'f039aac3b2c5552dabf88890906e5d884da223aa', class: this.icon ? "icon" : "clean" }, this.icon && index.h("smoothly-icon", { key: '832732e4e3794174cd334664d76859ec0c8591db', name: this.properties[1] }), index.h("p", { key: 'c10b5d2560bf2a61c8ecf30b1ab1fc2311978aff' }, this.notice.message))));
|
|
12325
|
-
}
|
|
12326
|
-
static get watchers() { return {
|
|
12327
|
-
"notice": ["onUpdatedNotice"]
|
|
12328
|
-
}; }
|
|
12329
|
-
};
|
|
12330
|
-
Notification.style = SmoothlyNotificationStyle0;
|
|
12331
|
-
|
|
12332
|
-
const styleCss$q = ".sc-smoothly-notifier-h{display:block}[hidden].sc-smoothly-notifier-h{display:none}.sc-smoothly-notifier-h>aside.sc-smoothly-notifier{display:flex;flex-wrap:wrap-reverse;align-content:stretch;position:fixed;bottom:3rem;left:0;text-align:center;z-index:100}";
|
|
12333
|
-
const SmoothlyNotifierStyle0 = styleCss$q;
|
|
12334
|
-
|
|
12335
|
-
const Notifier = class {
|
|
12336
|
-
constructor(hostRef) {
|
|
12337
|
-
index.registerInstance(this, hostRef);
|
|
12338
|
-
this.icon = false;
|
|
12339
|
-
this.notices = [];
|
|
12340
|
-
}
|
|
12341
|
-
onNotice(event) {
|
|
12342
|
-
this.notices = [...this.notices, event.detail];
|
|
12343
|
-
}
|
|
12344
|
-
onRemove(event) {
|
|
12345
|
-
this.notices = [...this.notices.filter(n => n != event.detail)];
|
|
12346
|
-
}
|
|
12347
|
-
render() {
|
|
12348
|
-
return [
|
|
12349
|
-
index.h("slot", { key: '1cdd6270fc1a9040c2c086e2f144e2e2c0428c16' }),
|
|
12350
|
-
index.h("aside", { key: '86367dd48e79c97440bae007fe1ef8c8f4e8a8d0' }, this.notices.map(n => (index.h("smoothly-notification", { notice: n, icon: this.icon })))),
|
|
12351
|
-
];
|
|
12352
|
-
}
|
|
12353
|
-
};
|
|
12354
|
-
Notifier.style = SmoothlyNotifierStyle0;
|
|
12355
|
-
|
|
12356
|
-
const styleCss$p = "[hidden].sc-smoothly-spinner-h{display:none}.sc-smoothly-spinner-h{cursor:wait;--spinner-time:1.4s;--spinner-color:var(--smoothly-color-contrast);--spinner-background:var(--smoothly-color);--spinner-background-opacity:var(--smoothly-semitransparent, 0.8);display:block;stroke:rgb(var(--spinner-color));background-color:rgba(var(--spinner-background), var(--spinner-background-opacity))}.sc-smoothly-spinner-h:not([overlay]){width:var(--spinner-size);height:var(--spinner-size)}[overlay].sc-smoothly-spinner-h{position:absolute;inset:0;width:100%;height:100%;z-index:4;background-color:rgba(var(--spinner-background), var(--spinner-background-opacity))}[color].sc-smoothly-spinner-h:not([overlay]),[color][overlay].sc-smoothly-spinner-h{background-color:rgba(var(--spinner-background), var(--spinner-background-opacity));stroke:rgb(var(--spinner-color))}[overlay].sc-smoothly-spinner-h>svg.sc-smoothly-spinner{position:absolute;width:var(--spinner-size);left:calc(50% - var(--spinner-size) / 2);top:calc(50% - var(--spinner-size) / 2)}.sc-smoothly-spinner-h>svg.sc-smoothly-spinner{animation:SPIN-SVG var(--spinner-time) linear infinite}.sc-smoothly-spinner-h>svg.sc-smoothly-spinner>circle.sc-smoothly-spinner{transform-origin:center;animation:SPIN-CIRCLE var(--spinner-time) ease-in-out infinite;stroke-dasharray:187;stroke-dashoffset:0}@keyframes SPIN-SVG{0%{transform:rotate(0deg)}100%{transform:rotate(270deg)}}@keyframes SPIN-CIRCLE{0%{stroke-dashoffset:187}50%{stroke-dashoffset:46.75;transform:rotate(135deg)}100%{stroke-dashoffset:187;transform:rotate(450deg)}}";
|
|
12357
|
-
const SmoothlySpinnerStyle0 = styleCss$p;
|
|
12358
|
-
|
|
12359
|
-
const SmoothlySpinner = class {
|
|
12360
|
-
constructor(hostRef) {
|
|
12361
|
-
index.registerInstance(this, hostRef);
|
|
12362
|
-
this.size = "large";
|
|
12363
|
-
this.overlay = undefined;
|
|
12364
|
-
}
|
|
12365
|
-
render() {
|
|
12366
|
-
const strokeWidth = this.size == "large" ? 6 : this.size == "medium" ? 8 : this.size == "icon" ? 8 : 12;
|
|
12367
|
-
return (index.h(index.Host, { key: '792938768d1a1ddb59946572417c670e80c3394e', style: {
|
|
12368
|
-
"--spinner-size": this.size == "large" ? "5em" : this.size == "medium" ? "3em" : this.size == "icon" ? "1.8em" : "1.2em",
|
|
12369
|
-
} }, index.h("svg", { key: 'd64fc32ce94e45ae866b6c9cf446e9e722992911', class: "spinner", viewBox: `0 0 ${60 + strokeWidth} ${60 + strokeWidth}`, xmlns: "http://www.w3.org/2000/svg" }, index.h("circle", { key: 'b69441f0e8f46fe235ce5aa0c2b436a026a6c6c4', class: "path", fill: "none", "stroke-width": strokeWidth, "stroke-linecap": "round", cx: `${30 + strokeWidth / 2}`, cy: `${30 + strokeWidth / 2}`, r: "30" }))));
|
|
12370
|
-
}
|
|
12371
|
-
};
|
|
12372
|
-
SmoothlySpinner.style = SmoothlySpinnerStyle0;
|
|
12373
|
-
|
|
12374
|
-
const styleCss$o = "[color=default].sc-smoothly-submit{--smoothly-color:var(--smoothly-default-color);--smoothly-color-contrast:var(--smoothly-default-contrast);--smoothly-color-shade:var(--smoothly-default-shade);--smoothly-color-tint:var(--smoothly-default-tint)}[color=primary].sc-smoothly-submit{--smoothly-color:var(--smoothly-primary-color);--smoothly-color-contrast:var(--smoothly-primary-contrast);--smoothly-color-shade:var(--smoothly-primary-shade);--smoothly-color-tint:var(--smoothly-primary-tint)}[color=secondary].sc-smoothly-submit{--smoothly-color:var(--smoothly-secondary-color);--smoothly-color-contrast:var(--smoothly-secondary-contrast);--smoothly-color-shade:var(--smoothly-secondary-shade);--smoothly-color-tint:var(--smoothly-secondary-tint)}[color=tertiary].sc-smoothly-submit{--smoothly-color:var(--smoothly-tertiary-color);--smoothly-color-contrast:var(--smoothly-tertiary-contrast);--smoothly-color-shade:var(--smoothly-tertiary-shade);--smoothly-color-tint:var(--smoothly-tertiary-tint)}[color=success].sc-smoothly-submit{--smoothly-color:var(--smoothly-success-color);--smoothly-color-contrast:var(--smoothly-success-contrast);--smoothly-color-shade:var(--smoothly-success-shade);--smoothly-color-tint:var(--smoothly-success-tint)}[color=warning].sc-smoothly-submit{--smoothly-color:var(--smoothly-warning-color);--smoothly-color-contrast:var(--smoothly-warning-contrast);--smoothly-color-shade:var(--smoothly-warning-shade);--smoothly-color-tint:var(--smoothly-warning-tint)}[color=danger].sc-smoothly-submit{--smoothly-color:var(--smoothly-danger-color);--smoothly-color-contrast:var(--smoothly-danger-contrast);--smoothly-color-shade:var(--smoothly-danger-shade);--smoothly-color-tint:var(--smoothly-danger-tint)}[color=light].sc-smoothly-submit{--smoothly-color:var(--smoothly-light-color);--smoothly-color-contrast:var(--smoothly-light-contrast);--smoothly-color-shade:var(--smoothly-light-shade);--smoothly-color-tint:var(--smoothly-light-tint)}[color=medium].sc-smoothly-submit{--smoothly-color:var(--smoothly-medium-color);--smoothly-color-contrast:var(--smoothly-medium-contrast);--smoothly-color-shade:var(--smoothly-medium-shade);--smoothly-color-tint:var(--smoothly-medium-tint)}[color=dark].sc-smoothly-submit{--smoothly-color:var(--smoothly-dark-color);--smoothly-color-contrast:var(--smoothly-dark-contrast);--smoothly-color-shade:var(--smoothly-dark-shade);--smoothly-color-tint:var(--smoothly-dark-tint)}.sc-smoothly-submit-h{--smoothly-button-border-radius:0.5rem;display:inline-block;box-sizing:border-box;border-radius:var(--smoothly-button-border-radius);cursor:pointer;border:none;outline:none;position:relative}[shape=rounded].sc-smoothly-submit-h{--smoothly-button-border-radius:2rem}[type=link].sc-smoothly-submit-h{display:inline}[disabled].sc-smoothly-submit-h{opacity:0.5;pointer-events:none}.sc-smoothly-submit-h>a.sc-smoothly-submit,.sc-smoothly-submit-h>button.sc-smoothly-submit{font-size:110%;font-weight:400;border:1px solid transparent;outline:none;background-color:transparent;cursor:pointer;display:inline-flex;gap:0.5rem;box-sizing:border-box}.sc-smoothly-submit-h>a.sc-smoothly-submit:empty,.sc-smoothly-submit-h>button.sc-smoothly-submit:empty{border-width:0}.sc-smoothly-submit-h>button.sc-smoothly-submit{font-weight:bold;justify-content:center;height:100%;width:100%;border-radius:var(--smoothly-button-border-radius);align-items:center}.sc-smoothly-submit-h:not([size=icon]):not([size=flexible])>button.sc-smoothly-submit{padding:0.8em;min-width:8em}.sc-smoothly-submit-h:not([size=icon]):not([size=flexible]):has(smoothly-icon)>button.sc-smoothly-submit{padding:0.6em}[size=icon].sc-smoothly-submit-h>button.sc-smoothly-submit{padding:0.5em}[type=button].sc-smoothly-submit-h>a.sc-smoothly-submit{text-align:center;text-decoration:inherit;width:calc(100% - 0.6em)}[size=small].sc-smoothly-submit-h>button.sc-smoothly-submit{font-size:100%}[size=large].sc-smoothly-submit-h>button.sc-smoothly-submit{font-size:130%}.sc-smoothly-submit-h:not([size=icon]){min-width:8em}[size=flexible].sc-smoothly-submit-h{min-width:unset;padding:0;margin:0;display:flex;justify-content:center;align-items:center}[size=flexible].sc-smoothly-submit-h>button.sc-smoothly-submit{min-width:unset;padding:0;margin:0}[expand].sc-smoothly-submit-h{width:100%}[expand=full].sc-smoothly-submit-h{border-left:none;border-right:none;--smoothly-button-border-radius:0}[fill=outline].sc-smoothly-submit-h>button.sc-smoothly-submit{background-color:transparent;color:rgb(var(--smoothly-button-foreground));fill:rgb(var(--smoothly-button-foreground));stroke:rgb(var(--smoothly-button-foreground));border-color:rgb(var(--smoothly-button-foreground))}.sc-smoothly-submit-h:not([fill=clear])>button.sc-smoothly-submit:hover,.sc-smoothly-submit-h>button.sc-smoothly-submit:focus-visible,[fill=outline].sc-smoothly-submit-h:active>button.sc-smoothly-submit::before{border-color:rgb(var(--smoothly-button-focus-color))}[fill=outline].sc-smoothly-submit-h>button.sc-smoothly-submit:hover::before,[fill=outline].sc-smoothly-submit-h>button.sc-smoothly-submit:focus-within::before,[fill=outline].sc-smoothly-submit-h>button.sc-smoothly-submit:active::before{content:\"\";position:absolute;border:2px solid rgb(var(--smoothly-button-focus-border));inset:-1px;border-radius:var(--smoothly-button-border-radius)}.sc-smoothly-submit-h:not([fill=clear]):not([fill=outline])>button.sc-smoothly-submit:hover,.sc-smoothly-submit-h:not([fill=clear]):not([fill=outline])>button.sc-smoothly-submit:focus-visible,.sc-smoothly-submit-h:not([fill=clear]):not([fill=outline])>button.sc-smoothly-submit:active{background:rgb(var(--smoothly-button-hover-background))}.sc-smoothly-submit-h>button.sc-smoothly-submit,.sc-smoothly-submit-h.sc-smoothly-submit-s>smoothly-icon,.sc-smoothly-submit-h .sc-smoothly-submit-s>smoothly-icon{color:rgb(var(--smoothly-button-foreground));stroke:rgb(var(--smoothly-button-foreground));fill:rgb(var(--smoothly-button-foreground))}[hidden].sc-smoothly-submit-h{display:none}.sc-smoothly-submit-h{margin:1em 0em}";
|
|
12375
|
-
const SmoothlySubmitStyle0 = styleCss$o;
|
|
12376
|
-
|
|
12377
|
-
const SmoothlySubmit = class {
|
|
12378
|
-
constructor(hostRef) {
|
|
12379
|
-
index.registerInstance(this, hostRef);
|
|
12380
|
-
this.smoothlyInputLoad = index.createEvent(this, "smoothlyInputLoad", 7);
|
|
12381
|
-
this.color = "success";
|
|
12382
|
-
this.expand = undefined;
|
|
12383
|
-
this.fill = undefined;
|
|
12384
|
-
this.disabled = false;
|
|
12385
|
-
this.type = undefined;
|
|
12386
|
-
this.size = undefined;
|
|
12387
|
-
this.shape = undefined;
|
|
12388
|
-
this.prevent = true;
|
|
12389
|
-
}
|
|
12390
|
-
async componentWillLoad() {
|
|
12391
|
-
console.warn(`smoothly-submit is deprecated, use smoothly-input-submit instead.\n <smoothly-button type="submit"> can also be used if you're using a regular form.`);
|
|
12392
|
-
this.smoothlyInputLoad.emit(parent => {
|
|
12393
|
-
if (Submittable.is(parent)) {
|
|
12394
|
-
this.parent = parent;
|
|
12395
|
-
}
|
|
12396
|
-
});
|
|
12397
|
-
}
|
|
12398
|
-
clickHandler() {
|
|
12399
|
-
var _a;
|
|
12400
|
-
(_a = this.parent) === null || _a === void 0 ? void 0 : _a.submit();
|
|
12401
|
-
}
|
|
12402
|
-
render() {
|
|
12403
|
-
return (index.h(Button, { key: 'f781491f3c975123d85054ccbe8a743ab386e6cd', disabled: this.disabled, type: this.type }, index.h("slot", { key: 'b667f21e7cb7eaf090e605360a961071be1e5ba6' })));
|
|
12404
|
-
}
|
|
12405
|
-
};
|
|
12406
|
-
SmoothlySubmit.style = SmoothlySubmitStyle0;
|
|
12407
|
-
|
|
12408
|
-
const styleCss$n = ".sc-smoothly-summary-h{display:grid;grid-template-columns:auto 1fr;column-gap:0.3rem}.sc-smoothly-summary-h>details.sc-smoothly-summary{display:contents}.sc-smoothly-summary-h>details.sc-smoothly-summary>summary.sc-smoothly-summary{display:grid;grid-template-columns:subgrid;grid-column:1/-1;list-style:none;align-items:center;cursor:pointer}.sc-smoothly-summary-h>details.sc-smoothly-summary>summary.sc-smoothly-summary>smoothly-icon.sc-smoothly-summary{transition:transform 0.2s, opacity 0.1s;opacity:0.3}.sc-smoothly-summary-h>details.sc-smoothly-summary>summary.sc-smoothly-summary:hover>smoothly-icon.sc-smoothly-summary{opacity:1}.sc-smoothly-summary-h>details[open].sc-smoothly-summary>summary.sc-smoothly-summary>smoothly-icon.sc-smoothly-summary{transform:rotate(90deg)}.sc-smoothly-summary-h>details.sc-smoothly-summary-s>[slot=content]{grid-column:2}@media (prefers-reduced-motion){.sc-smoothly-summary-h>details.sc-smoothly-summary>summary.sc-smoothly-summary>smoothly-icon.sc-smoothly-summary{transition:none}}@supports selector(details::details-content){.sc-smoothly-summary-h>details.sc-smoothly-summary::details-content{grid-column:2}}";
|
|
12409
|
-
const SmoothlySummaryStyle0 = styleCss$n;
|
|
12410
|
-
|
|
12411
|
-
const SmoothlySummary = class {
|
|
12412
|
-
constructor(hostRef) {
|
|
12413
|
-
index.registerInstance(this, hostRef);
|
|
12414
|
-
this.smoothlySummaryOpen = index.createEvent(this, "smoothlySummaryOpen", 7);
|
|
12415
|
-
this.inputs = {};
|
|
12416
|
-
this.open = false;
|
|
12417
|
-
this.color = undefined;
|
|
12418
|
-
this.fill = "solid";
|
|
12419
|
-
this.size = "tiny";
|
|
12420
|
-
}
|
|
12421
|
-
async toggleHandler(event) {
|
|
12422
|
-
if (event.target instanceof HTMLDetailsElement) {
|
|
12423
|
-
this.open = event.target.open;
|
|
12424
|
-
this.smoothlySummaryOpen.emit(this.open);
|
|
12425
|
-
this.open
|
|
12426
|
-
? await Promise.all(Object.values(this.inputs).map(input => input.register()))
|
|
12427
|
-
: await Promise.all(Object.values(this.inputs).map(input => input.unregister()));
|
|
12428
|
-
}
|
|
12429
|
-
}
|
|
12430
|
-
onInputLoad(event) {
|
|
12431
|
-
if (Input.Element.is(event.target)) {
|
|
12432
|
-
this.inputs[event.target.name] = event.target;
|
|
12433
|
-
if (!this.open)
|
|
12434
|
-
event.stopPropagation();
|
|
12435
|
-
}
|
|
12436
|
-
}
|
|
12437
|
-
render() {
|
|
12438
|
-
return (index.h("details", { key: '2e7c82742cbb10a395c875c66696811d1de29c6e', onToggle: e => this.toggleHandler(e), open: this.open }, index.h("summary", { key: '28adf6434b953eef82b707bdcccba74cd1ffe145' }, index.h("smoothly-icon", { key: 'cfa652669f478a9b12e8895f8d2bdc2187456ae3', name: "caret-forward", color: this.color, fill: this.fill, size: this.size }), index.h("slot", { key: 'f2ccc1c98284600c7c029e5cd6698a3b2fc25fcd', name: "summary" })), index.h("slot", { key: 'f6b3ea00b87675164d8c78c11dc8f4e7aa79acd8', name: "content" })));
|
|
12439
|
-
}
|
|
12440
|
-
};
|
|
12441
|
-
SmoothlySummary.style = SmoothlySummaryStyle0;
|
|
12442
|
-
|
|
12443
|
-
const styleCss$m = ".sc-smoothly-tab-h{display:contents;--line-width:3px}.sc-smoothly-tab-h>div.sc-smoothly-tab:first-child{grid-column:span 1;background-color:transparent;border-bottom-color:rgb(var(--smoothly-default-shade));border-bottom-width:var(--line-width);border-bottom-style:solid}.sc-smoothly-tab-h>div.sc-smoothly-tab:first-child>label.sc-smoothly-tab{display:block;padding:.5rem;width:fit-content;margin:auto;cursor:pointer}[open].sc-smoothly-tab-h>div.sc-smoothly-tab:first-child>label.sc-smoothly-tab{border-bottom:var(--line-width) solid rgb(var(--smoothly-primary-color));margin-bottom:calc(-1 * var(--line-width));position:relative}.sc-smoothly-tab-h>div.sc-smoothly-tab:nth-child(2){grid-row:2 / 3;grid-column:1 / -1}";
|
|
12444
|
-
const SmoothlyTabStyle0 = styleCss$m;
|
|
12445
|
-
|
|
12446
|
-
const SmoothlyTab = class {
|
|
12447
|
-
constructor(hostRef) {
|
|
12448
|
-
index.registerInstance(this, hostRef);
|
|
12449
|
-
this.smoothlyTabOpen = index.createEvent(this, "smoothlyTabOpen", 7);
|
|
12450
|
-
this.smoothlyTabLoad = index.createEvent(this, "smoothlyTabLoad", 7);
|
|
12451
|
-
this.inputs = {};
|
|
12452
|
-
this.label = undefined;
|
|
12453
|
-
this.open = undefined;
|
|
12454
|
-
}
|
|
12455
|
-
async openHandler() {
|
|
12456
|
-
if (this.open)
|
|
12457
|
-
this.smoothlyTabOpen.emit(this.label);
|
|
12458
|
-
this.open
|
|
12459
|
-
? await Promise.all(Object.values(this.inputs).map(input => input.register()))
|
|
12460
|
-
: await Promise.all(Object.values(this.inputs).map(input => input.unregister()));
|
|
12461
|
-
}
|
|
12462
|
-
onClick() {
|
|
12463
|
-
this.open = true;
|
|
12464
|
-
}
|
|
12465
|
-
connectedCallback() {
|
|
12466
|
-
this.smoothlyTabLoad.emit();
|
|
12467
|
-
}
|
|
12468
|
-
async componentDidLoad() {
|
|
12469
|
-
await this.openHandler();
|
|
12470
|
-
}
|
|
12471
|
-
onInputLoad(event) {
|
|
12472
|
-
if (Input.Element.is(event.target)) {
|
|
12473
|
-
this.inputs[event.target.name] = event.target;
|
|
12474
|
-
if (!this.open)
|
|
12475
|
-
event.stopPropagation();
|
|
12476
|
-
}
|
|
12477
|
-
}
|
|
12478
|
-
render() {
|
|
12479
|
-
return (index.h(index.Host, { key: 'e3b8ce1e4d8c920cf35f403dcd55d4ff4d0715e5' }, index.h("div", { key: '9579fce4fe5a38698c0ee55dbd3f02eb21ba8cab' }, index.h("label", { key: '576b85cb3df20264de65fe0857f1ed50d8c5cae8' }, this.label)), index.h("div", { key: 'e610c3b56b96ed0f9bb2e853b57a7e08ced5c7b5', hidden: !this.open }, index.h("slot", { key: 'a2ee7a416f0320022248f226e4750ae3531f59c7' }))));
|
|
12480
|
-
}
|
|
12481
|
-
static get watchers() { return {
|
|
12482
|
-
"open": ["openHandler"]
|
|
12483
|
-
}; }
|
|
12484
|
-
};
|
|
12485
|
-
SmoothlyTab.style = SmoothlyTabStyle0;
|
|
12486
|
-
|
|
12487
|
-
const styleCss$l = ".sc-smoothly-table-h{display:table;width:var(--table-width, 80%);box-sizing:border-box;background-color:rgb(var(--smoothly-default-color))}[root].sc-smoothly-table-h{margin-left:1.5rem;margin-right:1.5rem}.sc-smoothly-table-h:not([root]){margin:0;width:100%}";
|
|
12488
|
-
const SmoothlyTableStyle0 = styleCss$l;
|
|
12489
|
-
|
|
12490
|
-
const Table = class {
|
|
12491
|
-
constructor(hostRef) {
|
|
12492
|
-
index.registerInstance(this, hostRef);
|
|
12493
|
-
this.smoothlyNestedTable = index.createEvent(this, "smoothlyNestedTable", 7);
|
|
12494
|
-
this.smoothlySpotlightChange = index.createEvent(this, "smoothlySpotlightChange", 7);
|
|
12495
|
-
this.smoothlyTableLoad = index.createEvent(this, "smoothlyTableLoad", 7);
|
|
12496
|
-
this.expandable = new WeakMap();
|
|
12497
|
-
this.expanded = new Set();
|
|
12498
|
-
this.root = true;
|
|
12499
|
-
this.color = undefined;
|
|
12500
|
-
this.align = "middle";
|
|
12501
|
-
this.open = false;
|
|
12502
|
-
}
|
|
12503
|
-
componentWillLoad() {
|
|
12504
|
-
this.smoothlyNestedTable.emit(() => (this.root = false));
|
|
12505
|
-
this.smoothlyTableLoad.emit((owner) => (this.owner = owner));
|
|
12506
|
-
}
|
|
12507
|
-
handleExpandableLoaded(event) {
|
|
12508
|
-
event.stopPropagation();
|
|
12509
|
-
event.target && this.expandable.set(event.target, event.detail);
|
|
12510
|
-
}
|
|
12511
|
-
handleExpandableState(event) {
|
|
12512
|
-
event.stopPropagation();
|
|
12513
|
-
event.target && (event.detail ? this.expanded.add(event.target) : this.expanded.delete(event.target));
|
|
12514
|
-
this.smoothlySpotlightChange.emit({ allowSpotlight: !this.expanded.size, owner: this.owner });
|
|
12515
|
-
}
|
|
12516
|
-
handleSpotlightState(event) {
|
|
12517
|
-
var _a;
|
|
12518
|
-
this.open = !!this.expanded.size;
|
|
12519
|
-
event.target != this.element &&
|
|
12520
|
-
(event.stopPropagation(),
|
|
12521
|
-
event.detail.owner && ((_a = this.expandable.get(event.detail.owner)) === null || _a === void 0 ? void 0 : _a.allowSpotlight(event.detail.allowSpotlight)));
|
|
12522
|
-
}
|
|
12523
|
-
handleNestedTable(event) {
|
|
12524
|
-
event.target != this.element && (event.stopPropagation(), event.detail());
|
|
12525
|
-
}
|
|
12526
|
-
handleEvents(event) {
|
|
12527
|
-
event.stopPropagation();
|
|
12528
|
-
}
|
|
12529
|
-
render() {
|
|
12530
|
-
return [index.h("slot", { key: '752a663b8b13236087774b1de3e6b6ed8e149908' })];
|
|
12531
|
-
}
|
|
12532
|
-
get element() { return index.getElement(this); }
|
|
12533
|
-
};
|
|
12534
|
-
Table.style = SmoothlyTableStyle0;
|
|
12535
|
-
|
|
12536
|
-
const styleCss$k = ".sc-smoothly-table-cell-h{display:table-cell;line-height:1.5rem;white-space:nowrap;padding:0.3rem .5rem;box-shadow:0 1px 0 0 rgb(var(--smoothly-color-shade))}.sc-smoothly-table-cell-h>div.sc-smoothly-table-cell>smoothly-icon.sc-smoothly-table-cell{display:none;width:1em;height:auto;aspect-ratio:1 / 1;margin:0 0.3rem;transition:transform 0.2s, opacity 0.1s;opacity:0.3}.sc-smoothly-table-cell-h:hover>div.sc-smoothly-table-cell>smoothly-icon.sc-smoothly-table-cell{opacity:1}smoothly-table-expandable-row>div .sc-smoothly-table-cell-h:last-of-type>div.sc-smoothly-table-cell>smoothly-icon.sc-smoothly-table-cell{display:flex}smoothly-table-expandable-row[open]>div>.sc-smoothly-table-cell-h:last-of-type>div.sc-smoothly-table-cell>smoothly-icon.sc-smoothly-table-cell{transform:rotate(90deg)}.sc-smoothly-table-cell-h>div.sc-smoothly-table-cell{display:grid;grid-template-columns:1fr auto;align-items:center}.sc-smoothly-table-cell-h>div.sc-smoothly-table-cell>div.sc-smoothly-table-cell{width:100%}smoothly-table[align=bottom] .sc-smoothly-table-cell-h{vertical-align:bottom}smoothly-table[align=middle] .sc-smoothly-table-cell-h{vertical-align:middle}smoothly-table[align=top] .sc-smoothly-table-cell-h{vertical-align:top}";
|
|
12537
|
-
const SmoothlyTableCellStyle0 = styleCss$k;
|
|
12538
|
-
|
|
12539
|
-
const TableCell = class {
|
|
12540
|
-
constructor(hostRef) {
|
|
12541
|
-
index.registerInstance(this, hostRef);
|
|
12542
|
-
}
|
|
12543
|
-
render() {
|
|
12544
|
-
return (index.h(index.Host, { key: '12dc536e6c34db5fdc5917dd24a00779a9b686a4' }, index.h("div", { key: '40d94360ed7dfd15447ac62b4f8285ec3b4f9be9' }, index.h("div", { key: '22a3e08c5e3daa9a71a620b5e2d1f6179631c757' }, index.h("slot", { key: '49b76835654a627f0e4b6cefa68426d3f572f49a' })), index.h("smoothly-icon", { key: '406786469dde8704e84ba600d13cb14ba83edf8d', name: "caret-forward-outline", size: "tiny" }))));
|
|
12545
|
-
}
|
|
12546
|
-
};
|
|
12547
|
-
TableCell.style = SmoothlyTableCellStyle0;
|
|
12548
|
-
|
|
12549
|
-
const styleCss$j = ".sc-smoothly-table-demo-h{display:flex;flex-direction:column;align-items:center;gap:3rem;padding-bottom:10rem;margin-left:2rem;margin-right:2rem}.content.sc-smoothly-table-demo{display:contents}smoothly-lazy.sc-smoothly-table-demo{width:80%}";
|
|
12550
|
-
const SmoothlyTableDemoStyle0 = styleCss$j;
|
|
12551
|
-
|
|
12552
|
-
const TableDemo = class {
|
|
12553
|
-
constructor(hostRef) {
|
|
12554
|
-
index.registerInstance(this, hostRef);
|
|
12555
|
-
}
|
|
12556
|
-
render() {
|
|
12557
|
-
return (index.h(index.Host, { key: '51b35ded9f79fd725f62621440425fb4158fb499' }, index.h("h4", { key: '23c261386ae6d407b41bd51875fb273efbc2eb8c' }, "Demo table 1: Filtered & Checked Table"), " ", index.h("smoothly-lazy", { key: '1ae795cac6bd7b13d44dc28ec448c5dfb1eab8d6', content: index.h("smoothly-table-demo-filtered", null) }), index.h("h4", { key: 'ce7604a8859eaa145b243c2074718699a62cd38b' }, "Demo table 2"), " ", index.h("smoothly-table-testing", { key: 'af13be417b896c4cacd5962bbcce1f1eed36b515' }), " ", index.h("h4", { key: 'fe0b0d95a28506fa9c53765bd85d4aa1380b5ac1' }, "Demo table 3"), index.h("smoothly-table", { key: '7c8df77c92d50bc0cb7b30fa9b3c347b5c4c6617' }, index.h("smoothly-table-row", { key: 'b1dda122006333ea3b811ae0ef26ccc78874252c' }, index.h("smoothly-table-header", { key: '44bd732bdcb5ffba2c0cd98890d36bba72d41884' }, "Header A"), index.h("smoothly-table-header", { key: '60a4b83a8a90bac3605e2a458883b0301b0ab79a' }, "Header B"), index.h("smoothly-table-header", { key: '8e747ba13137cd4c514341453b30bf220ea23cad' }, "Header C"), index.h("smoothly-table-header", { key: '612ed44db5916a271c28ac484da65bfa58f1e746' }, "Header D")), index.h("smoothly-table-row", { key: '6ef4d1d4562c5379084c9cbf944446f399255830' }, index.h("smoothly-table-expandable-cell", { key: '6c97ac4bf3356ba626925e7d05f97a8897b5c0cb' }, "normal row (exp.cell)", index.h("div", { key: '5880c6015f001618827158c71ff0e6194f3474b1', slot: "detail" }, "expandable cell 1 content")), index.h("smoothly-table-expandable-cell", { key: 'a5308992866c604bb19b2bf2751962005eb42fea' }, "expandable cell", index.h("div", { key: '6f34518760161e5122fb0e5c5421c26afd1fd7a3', slot: "detail" }, "expandable cell 2 content")), index.h("smoothly-table-expandable-cell", { key: '1d7260ebd83fd3af49ceae40f84b1140e6cc8fac' }, "expandable cell", index.h("div", { key: '0f6fca306db05fcc62492b15b2796fcfea454f4d', slot: "detail" }, "expandable cell 3 content")), index.h("smoothly-table-expandable-cell", { key: 'f340f2ffdd41d973e07321b0b223c12373e2f099' }, "expandable cell", index.h("div", { key: '2d7d2b9a11a5c5a2fea1291a43667d652018fcd1', slot: "detail" }, "expandable cell 4 content"))), index.h("smoothly-table-row", { key: 'fa40908672f9ee6b4dda4c4f624c2cb86ec8b9e0' }, index.h("smoothly-table-cell", { key: '67b3e59e9d63021095168cc4a929e6ec986ac840' }, "normal row (nor.cell)\""), index.h("smoothly-table-cell", { key: 'e8bc8bf95802917ad9d2e07365eb3b6d502bb3d2' }, "normal cell"), index.h("smoothly-table-expandable-cell", { key: '22554689665c7dd33e4bae24a89510c7cd4ffdf0' }, "expandable cell", index.h("div", { key: 'e9d7e1929ff9543ed5ae36e731c0d22582a95959', slot: "detail" }, "expandable cell details.")), index.h("smoothly-table-expandable-cell", { key: '00387a856b04a6b14c3d83b0563923286118db33' }, "expandable cell", index.h("div", { key: '8be0a558b9b16f08168bd32192e29ea499990267', slot: "detail" }, "expandable cell details."))), index.h("smoothly-table-expandable-row", { key: '95d701f8e523fccf5f2e02e121e0fbe4ba947026' }, index.h("smoothly-table-cell", { key: '3700c8d7e36232b86fdd7246fd7c59483b6517b9' }, "expandable row (nor.cell)"), index.h("smoothly-table-cell", { key: '60344f1b89546b74eb4236ddb71918b3ab6516db' }, "Normal cell"), index.h("smoothly-table-cell", { key: '0e572179151ea06370591d6feee336458f62b8d4' }, "normal cell"), index.h("smoothly-table-cell", { key: '1ee1a28a276760c1b0de7fcc4580afdb5aaaa32f' }, "Normal cell"), index.h("div", { key: '3b67d84399d5de8d2c2801ac078d1168bc51bb2e', slot: "detail" }, "expandable row content"))), index.h("h4", { key: '498f8bff4c0537fd1dc47413bcbb4d5328fde4d0' }, "Demo table 4"), index.h("smoothly-table", { key: '5d5e61c8a261f5efd6b9cb6440ef356de54e30b4' }, index.h("smoothly-table-row", { key: '7bb88e25c5ce755b851d2809bb40f8670bc603ba' }, index.h("smoothly-table-header", { key: 'd38a03f7d37db39c48932a6c43cb1fae5974697c' }, "Header A"), index.h("smoothly-table-expandable-cell", { key: 'f3ef8a67806b3c6afb1e330f2c54b5b88e2b6027' }, "Header expansion", index.h("div", { key: '89a34e92fca0028ee35f1ff5a139b644ee6732f8', slot: "detail" }, "Expansion content"))), index.h("smoothly-table-expandable-row", { key: 'a8c947b92c3716f70409ddb3f5f765bb2ef21c21' }, index.h("smoothly-table-cell", { key: 'b9a4a84c69f62cdb426de5a885ea71a1a65fa94d' }, "A Content"), index.h("smoothly-table-cell", { key: '5d9920de7838ace6cc62634363ba2052be0ffa28' }, "Expansion cell"), index.h("div", { key: 'c3c90b0433ceb8425f97fad5ff24671825a93da4', slot: "detail" }, index.h("smoothly-tab-switch", { key: '005b9f476134a11709754dd0dd2ec65d1a49efd8' }, index.h("smoothly-tab", { key: '6e3ba20b0cd120e514887ef4f6dcdf1194fae440', label: "innertable 1", open: true }, index.h("smoothly-table", { key: '98a5031bc6455f71ea7271186ed19606e91bf2d9' }, index.h("smoothly-table-row", { key: '9602024d5b3d043c4181d4f154d61b242f60f85b' }, index.h("smoothly-table-header", { key: 'b1a48298c6d5c4b5e2dbb81b2b67fe9b808330cd' }, "Header B")), index.h("smoothly-table-expandable-row", { key: '12923478bd85699910491a90fb1ba79037a747a8' }, "B Content"))), index.h("smoothly-tab", { key: '38a211fcb2fa39f08b4abab4a6bf062077420957', label: "innertable 2" }, index.h("smoothly-table", { key: '0c52b2ec005ee2b9e217354a121dcf3cd1085575' }, index.h("smoothly-table-row", { key: '6e49f8762c43c2aeb0804089e113f630d7229c29' }, index.h("smoothly-table-header", { key: 'e0a1640d345ae80ba113a363ecf92c9a88708de6' }, "Header C")), index.h("smoothly-table-expandable-row", { key: 'b3df3069c0ee3cc27a69efa23a5dbf01f9b39017' }, index.h("smoothly-table-cell", { key: '2d59298537b43937184f824b1894dae09f1093f3' }, "C Content"))))))), index.h("smoothly-table-row", { key: '398950c51e841302cf70c6c4906de57560d9e286' }, index.h("smoothly-table-cell", { key: 'a35a442d9383de212850c335fc7aa50d643a66fd' }, "A Content"), index.h("smoothly-table-expandable-cell", { key: 'd5bff81775abbabe606838b2b9abfe00c596bac9' }, "Expandable cell", index.h("div", { key: '4d2b6959b83f5c2577d39940f07cf60f3bd75934', slot: "detail" }, "Expansion content")))), index.h("h4", { key: '48e4c3931aa50a8cd4962720785b707cc8d4abec' }, "Demo table 5"), index.h("smoothly-table", { key: 'fe5d1a032e950b478df5fe05f7965f164af978d0' }, index.h("smoothly-table-row", { key: '254569ae6f28d55511b35dc6a44a768562fdd53f' }, index.h("smoothly-table-header", { key: '21e41414dfc044a80fc254716f5899580187c076' }, "A"), index.h("smoothly-table-header", { key: 'ece90aaefe8ce0908f417599798f3a09cab76ec5' }, "B")), index.h("smoothly-table-expandable-row", { key: '9810a18ffe57eae5a1605fa3447eae0e98e30c72' }, index.h("smoothly-table-cell", { key: '25d32f1932d51028a8451428861139c1685daa61' }, "nested expandable row"), index.h("smoothly-table-cell", { key: '88c2e50333cf22982868c495035862ac0c9d48f9' }, "b row"), index.h("div", { key: '4936c3a53fdc6e5e7f437a24d04585aab0308ff0', slot: "detail" }, index.h("smoothly-table", { key: '97ce2398a891ca1824d8d231fe969fdc2194f9f7' }, index.h("smoothly-table-row", { key: '97c34fe0b3824e31844b225f3dccc4a4c07a1834' }, index.h("smoothly-table-header", { key: '67c548534556e287c85b5baa615b9ee4a6a09980' }, "C"), index.h("smoothly-table-header", { key: '8607d26470e447d7b243f2ae1d09ed231d2c30fc' }, "D")), index.h("smoothly-table-expandable-row", { key: 'af3dc065a497ac0481b244500f9aaee3a9ea2e92' }, index.h("smoothly-table-cell", { key: 'ecb14c34536e25b26b2085243b7dcbf6dfd9eb08' }, "c"), index.h("smoothly-table-cell", { key: '6b785fb1e1a988fac6923e16e8d10046b8e79895' }, "d"), index.h("div", { key: '778f347547d53773f7ca7d78f1e27aa9f1f514ed', slot: "detail" }, index.h("smoothly-table", { key: 'b3e43661a405fdcdf38129835dc81f72ab1e9513' }, index.h("smoothly-table-row", { key: 'ff63e122ffb5cbd576428e8c55bbbe2caa0eb0a9' }, index.h("smoothly-table-header", { key: 'e200c49bccc18e76a8f26af8c2fd91709f0ab1e7' }, "E"), index.h("smoothly-table-header", { key: '474e143069858b5b529841beafc897ff9a9916e9' }, "F")), index.h("smoothly-table-expandable-row", { key: 'eadd405f57e633696bd2db052a4ad36d8bd75273' }, index.h("smoothly-table-cell", { key: '51318cc6f2d98f73d579c8895fb3c76ba1400c95' }, "e row"), index.h("smoothly-table-cell", { key: '5ff6bf2ae2a24c67aad41f1bb361fd7a1f76d052' }, "f row"), index.h("div", { key: 'fc9cc6b21ce1589c7f45a3c9a52f12ffcb74619b', slot: "detail" }, "nested expandable row expansion e f")))))))), index.h("smoothly-table-expandable-row", { key: 'de4a7061c8e3505874a988c09d155736d81072bf' }, index.h("smoothly-table-cell", { key: 'c45b37d4f85b6d872ee4d5745651f12ba53c5455' }, index.h("span", { key: 'f1ccaab3bed7286d4c0ad80e1c0b4d1bf2607cc0' }, "one"), index.h("span", { key: '8674af810ea990e8be3f4237d2a3a57db8db2e4a' }, "two"), index.h("span", { key: '95c7141959bbcb2c8c9929c2bc9bc384538c5ac5' }, "three")), index.h("smoothly-table-cell", { key: 'ec7db910dc3cc2e3e2e7927e1af4b01c30f23bc2' }, "five", index.h("smoothly-icon", { key: '0d98f968459807290548568b951dd4294f073032', name: "paper-plane-sharp", size: "small" })), index.h("div", { key: '198ade6e521dc295afd66dbb122f721d3445c6b5', slot: "detail" }, "four")), index.h("smoothly-table-row", { key: 'a70fd6842edf7b94fb99dbe0b2829c6ac302e8e5' }, index.h("smoothly-table-expandable-cell", { key: 'a2a4c921e1d9e4f1ca56ab04df93b0f1425c7df0' }, index.h("span", { key: '99ae2dea6e49dffd0efc90d4e1290f96b121e411' }, "nested expandable cells"), index.h("div", { key: 'e214102ef72d47d8003f0c4660721f3e73bbb55e', slot: "detail" }, index.h("smoothly-table", { key: 'fbba9ecaa67ccf1ff5c7d23539b3c4faf11d37ff' }, index.h("smoothly-table-row", { key: '5b356b5abe955986091795c86972e7c8dedfb0e6' }, index.h("smoothly-table-header", { key: '3a387b80348beb6593df2e21373427239725a132' }, "E"), index.h("smoothly-table-header", { key: '990944ca9580d1276647f1001be1897143ffabfe' }, "F")), index.h("smoothly-table-row", { key: 'a24cd6cd06bd02455749a5813dff08884ff7d730' }, index.h("smoothly-table-expandable-cell", { key: '96f632226a852491811fabb166d30ad3232390e2' }, "e cell", index.h("div", { key: '85f936ac49d1b8cfd909df0aec2f7d76120c458c', slot: "detail" }, index.h("smoothly-table", { key: 'add17081f7a3dc48a1b475ac6dae5b815e7967b1' }, index.h("smoothly-table-row", { key: '7054c59a67d524b905707d30a83e103d291ce695' }, index.h("smoothly-table-header", { key: '82950d41f1b24e227dd7d9128e3d6cd419f88935' }, "G"), index.h("smoothly-table-header", { key: '7ce42ef76c3d943363ce142f1b5c01dd7b4dab5f' }, "H")), index.h("smoothly-table-row", { key: 'b6681ab1291a07775dff7e771c09806b7882da70' }, index.h("smoothly-table-expandable-cell", { key: 'afddc209176b2c7568582af0421bc0d75452a952' }, "g cell", index.h("div", { key: '0fce912ac8e5218ad6c05b7062723a16949994aa', slot: "detail" }, "nested expandable cell expansion g")), index.h("smoothly-table-expandable-cell", { key: 'dff026211bfd19c7a8ef9e428323ae57c773eaf9' }, "h cell", index.h("div", { key: '2279bc7734a0f5794177a92490c61467de71423c', slot: "detail" }, "nested expandable cell expansion h")))))), index.h("smoothly-table-expandable-cell", { key: '92abfad6d298498850261f1fc2198da12cfeb257' }, "f cell", index.h("div", { key: '3dc31a972a8bfa6f393b68c703ab91affec02a55', slot: "detail" }, "nested expandable cell expansion f")))))), index.h("smoothly-table-expandable-cell", { key: '7a8f3bec9e794e6b678519b0b263a8ebf1a178cf' }, "b cell", index.h("div", { key: '4fbea5fc06942974d01fca3e4a5691f17b057830', slot: "detail" }, index.h("smoothly-table", { key: '77d25149f84328019709cc2e9ad2ce7a217be911' }, index.h("smoothly-table-row", { key: '399228c5534dccbdc3a7f150ab9c4b5fa5a5b983' }, index.h("smoothly-table-header", { key: '1ee897e7b8d3ce871deb4b2d89bac5a6d30b4af6' }, "C"), index.h("smoothly-table-header", { key: 'f3c0c86c9aeae5805eff55eaf2319efbbfe95752' }, "D")), index.h("smoothly-table-row", { key: 'fc6618e4c1f7a5a981ba9af172dbd96043dae82a' }, index.h("smoothly-table-expandable-cell", { key: '5612caa5f79b80ff181b703f4ee7aa2237bf2a7d' }, "c cell", index.h("div", { key: '4dbdddb850c53ca4c21bac31a6acb62f636ac6c9', slot: "detail" }, "nested expandable cell expansion c")), index.h("smoothly-table-expandable-cell", { key: '6b651fd10dc99b9a1fbcf0fae07c31b360c0fe69' }, "d cell", index.h("div", { key: '958ae4bb7fc6adad65f30c5bd87512d59302cf65', slot: "detail" }, "nested expandable cell expansion d")))))))), index.h("h4", { key: '884e8ebdcb911f2600c24e18f108bd445b7ab44b' }, "Demo table 6"), index.h("smoothly-table", { key: 'd98c7e0bff92551854080a6893232ef52ef73d9c' }, index.h("smoothly-table-row", { key: '9e9e16cf3dbcbb770200ccfb9c64b8a6eb678e99' }, index.h("smoothly-table-header", { key: '91aad45887e6f06329e9146d802155e1da317107' }, "display"), index.h("smoothly-table-header", { key: '97b7a29f0b381cdeb3302f331f8b8c8f70949d6f' }, "contents")), index.h("smoothly-table-expandable-row", { key: '91de275cd0d3fe7b7053a0310e73ff289254728b' }, index.h("div", { key: '1891ba933e601ac77df5b55831d7de8b56af6157', class: "content" }, index.h("smoothly-table-cell", { key: 'b2660bd964a4030328df78ce92ca7daede8eed5b' }, "A"), index.h("smoothly-table-cell", { key: '949104774b8d8b6f3c00f5e435360c8a5b0acc1e' }, "B")), index.h("div", { key: '2b9322f1138b53d9d2b9ab9068e5e0bc6e8f9d35', slot: "detail" }, "expansion"))), index.h("h4", { key: '56378a1ec3e4f7567538cfde94c0bdd87446512e' }, "Demo table 7"), " ", index.h("span", { key: 'bb9685ee9ff98dfcf0d383ba9804d52849d32c35' }, "nested 1 then normal"), index.h("smoothly-table", { key: '9ae6f5b81526a775b2eb0122d9f11aa6735c53e6' }, index.h("smoothly-table-row", { key: '3e9be7613b2402eeeed6e1ada1bee80779140036' }, index.h("smoothly-table-header", { key: '812ba2a3c4a7bd32f47ed76747a95070c19d8a5b' }, "A"), index.h("smoothly-table-header", { key: 'b240b0b9d0624b1dd677aabce2423a064c6c08bc' }, "B")), index.h("smoothly-table-expandable-row", { key: '092f059addebb8806b0902339d325f44cff42fd1' }, index.h("smoothly-table-cell", { key: 'ec88368f12ac9985881121d1cf41d55fea614403' }, "a"), index.h("smoothly-table-cell", { key: '01e029ba16ae7174f44163a17539c7d827a9fcb3' }, "b"), index.h("div", { key: '89fae13e100f7bf3111c763fe0a5f892f97aa4c5', slot: "detail" }, index.h("smoothly-table", { key: 'd98d1ae09ff1ca5fb5928b0c2c9b04af9460480c' }, index.h("smoothly-table-row", { key: 'd088825f427f1abfba3e4e729be598d2a9f52271' }, index.h("smoothly-table-header", { key: 'bbe9e4fdd58637d1f047061d8ff21f424c69b118' }, "C"), index.h("smoothly-table-header", { key: '3fa1124d1921267ae31129c592369e549d42b7f8' }, "D")), index.h("smoothly-table-row", { key: 'cb9e993adaaaf705f26915842e05714cf9df711d' }, index.h("smoothly-table-cell", { key: '0ae9cb561d4959f7fb810c06395c405e143fe127' }, "c"), index.h("smoothly-table-cell", { key: '071b888b03a43d0eed525501bfabc4c79f44796f' }, "d")), index.h("smoothly-table-row", { key: '0d4e99cbc7139ee9adf72e828c4a33fb353f904d' }, index.h("smoothly-table-cell", { key: 'ac48c46e781f7737915705e750dec5ef53f611cd' }, "ccc"), index.h("smoothly-table-cell", { key: 'f9274be68c34c202145a8783ecf1c9a102e5236e' }, "ddd")), index.h("smoothly-table-expandable-row", { key: '526ce3d98a6ec359bd2a270a1f4306b94cc15f06' }, index.h("smoothly-table-cell", { key: '6b3d45595b284244c68914495e195215d95a5db5' }, "cccc"), index.h("smoothly-table-cell", { key: 'c462e0eb709b026b842df45cf06aec2348459d6b' }, "dddd"), index.h("div", { key: 'f69fe21672deaa27ab406e5a01e60ecff46f0e9e', slot: "detail" }, "CONTENT")), index.h("smoothly-table-row", { key: 'ba3629c04f136319dc904965eda31382d9690bfb' }, index.h("smoothly-table-cell", { key: 'ca3b595163ce24fb198cf55d2ace684f9501b5d7' }, "ccccc"), index.h("smoothly-table-cell", { key: 'ae00dbe6489535d79bb92eeb1bf0cd4301d82b10' }, "ddd")), index.h("smoothly-table-expandable-row", { key: '271eb2685bb55e7968a4f72724351931413281db' }, index.h("smoothly-table-cell", { key: 'f70ebd4310de1e44f6a30c7a68439bb9b0eac15a' }, "cccc"), index.h("smoothly-table-cell", { key: '9ede6fd9b1589f0b511610717a241d5c92f88b7f' }, "dddd"), index.h("div", { key: '1886b1e36182359488e97f4b1042b3b78eff9735', slot: "detail" }, "CONTENT")))))), index.h("h4", { key: 'c5541946942c9749f553faef3b7c85e84202da93' }, "Demo table 8"), " ", index.h("span", { key: 'caf31f46cde96cb7dfcd044d41dae130aa84b4d4' }, "not nested"), index.h("smoothly-table", { key: '05e22b3f749c16472520155d3fe4c7b8f2e05a5b' }, index.h("smoothly-table-row", { key: '3bb391a4bca51d9885eae83007d3f9bb4b93f17a' }, index.h("smoothly-table-header", { key: 'bcd6278cca1fc6fe3428cc3764e5a8359fb209eb' }, "C"), index.h("smoothly-table-header", { key: '7952bb1adef6eadaf2a84f29b8abc4d3ca402cd7' }, "D")), index.h("smoothly-table-row", { key: 'd25ddb631b030f3fc90874739cb00b0c5552f121' }, index.h("smoothly-table-cell", { key: 'e4f2a03d24f7efcb01874dfa3c199879dbab28c1' }, "c"), index.h("smoothly-table-cell", { key: 'c417b230cedbe9e4dd87ef0b1bfa20f3f6c3688f' }, "d")), index.h("smoothly-table-row", { key: 'adc0c86a1002d03231129acfce5cd7a40f3cb089' }, index.h("smoothly-table-cell", { key: '732943a8b65f134d9d0502f64713bca443a79af9' }, "cc"), index.h("smoothly-table-cell", { key: 'dea2f0020f4c8dd7e3367d14bc9c6d6d0acc8d63' }, "dd")), index.h("smoothly-table-row", { key: 'ea869528b5eee2e6dc18cf3e9a40c91a207ea6db' }, index.h("smoothly-table-cell", { key: '5a1794e075f346bde3951ca71096f46c30ba195d' }, "ccc"), index.h("smoothly-table-cell", { key: '0abb14eb7a0ba89e8c9554c5f19c30ac4402d45f' }, "ddd"))), index.h("h4", { key: '224f98ff987b968e26631bb207527c07025a2d57' }, "Demo table 9"), index.h("smoothly-table", { key: 'cfc6f020da76331640b71aff11ae8b9ede4675fc' }, index.h("smoothly-table-row", { key: '349eb0c4d8a78ff23c78018e710c7659903e5e1e' }, index.h("smoothly-table-header", { key: '643b76621a4153759118ce25153d117608cca347' }, "First name"), index.h("smoothly-table-header", { key: 'c6aec6d1d6e71e0f37b8f892e05f6de95cca7800' }, "Last name"), index.h("smoothly-table-header", { key: '90f9c6aaa2c1183a083a366ca06ac4d16d3a8188', style: { width: "1px" } }, index.h("smoothly-icon", { key: '849630497b0b9f909160dc1fe52e9ea61adca3bf', name: "alert-outline" }))), index.h("smoothly-table-expandable-row", { key: 'd9e6bf70df8bb6456e969fe1587dc0df8f0b3a41' }, index.h("smoothly-table-cell", { key: 'f07ddb540da19e99dd841caca74f4ebd9f96783b' }, "Jessie"), index.h("smoothly-table-cell", { key: '03807f60095d97dc7790366fb5d8c50f68194189' }, "Doe"), index.h("smoothly-table-cell", { key: '9eb039e7aca0a5135af193794541b52379206da2' }), index.h("div", { key: '1e07d22ac5f6544c86b253482da9125009f1c106', slot: "detail" }, index.h("p", { key: 'd5acae7db701d5fb4d5a1803ad923214309e3ae5' }, "This is Jessie")))), index.h("h4", { key: 'ec36a21f08b5fb689c148b6da319ce5ca9d257c1' }, "Demo table 9 - Lazy expansion rows"), index.h("smoothly-table", { key: '142fa7aa03feba15c3d0be3abeaaebb3bf57d2fb' }, index.h("smoothly-table-row", { key: '5afff6455e38def419becd81d9ee30a727010581' }, index.h("smoothly-table-header", { key: 'e5cf3d96b7db6dbb18375076021447483ae618b1' }, "Company")), index.h("smoothly-table-expandable-row", { key: '6a69baac2ca1639d151e8f1da051cc84e00a4185' }, index.h("smoothly-table-cell", { key: '269dfec64b91c1b65e1204d95867dc499beb3d92' }, "Proquse"), index.h("smoothly-lazy", { key: 'c00915b08957723e10387cc5f404fa6c34d3ece2', slot: "detail", content: index.h("img", { src: "https://brand.proquse.com/logo/proquse-black.svg", alt: "Proquse Logotype." }) })), index.h("smoothly-table-expandable-row", { key: '2f51137e19f15bd766a382358d354bee5992bb8a' }, index.h("smoothly-table-cell", { key: '97aaa589538275a6d5ab63646bc110298bf47e13' }, "Pax2Pay"), index.h("smoothly-lazy", { key: '1dc54430c599285aee13fb26a1b5de588b585569', slot: "detail", content: () => (index.h("img", { src: "https://dash.pax2pay.app/assets/pax2pay-dark-horizontal.svg", alt: "Pax2Pay Logotype." })) }))), index.h("h4", { key: 'a11b7428bd565d38e90615fc07ea65961ae1fc56' }, "Demo table 10 - Lazy expansion cells"), index.h("smoothly-table", { key: 'cd2972ec07c66aaa1b5cf9c9630422fedf541f10' }, index.h("smoothly-table-row", { key: '8b76eacdad16e7cb431de8a85a4e3c7fa106392f' }, index.h("smoothly-table-header", { key: 'a072c5bc21db606346da479fb44313aacb2eb609' }, "Company")), index.h("smoothly-table-row", { key: 'c184aaa82302b8ebe9c309f3f984d4ae2e2a5a96' }, index.h("smoothly-table-expandable-cell", { key: '2ef22098494d03e5dc908fe728c8982a9b3b92b7' }, "Proquse", index.h("smoothly-lazy", { key: 'e090426f9729024858fbbbfad50dc19b30199d06', slot: "detail", content: index.h("img", { src: "https://brand.proquse.com/logo/proquse-black.svg", alt: "Proquse Logotype." }) }))), index.h("smoothly-table-row", { key: '7550d5a6f932c38fbb0d85e97aae750121847e21' }, index.h("smoothly-table-expandable-cell", { key: '098b30f7661e8b983f038f0ec9a29baa0ccdc7a1' }, "Pax2Pay", index.h("smoothly-lazy", { key: '15e7264414e10b010a6fa18dc2dcc6ff1fa89e69', slot: "detail", content: () => (index.h("img", { src: "https://dash.pax2pay.app/assets/pax2pay-dark-horizontal.svg", alt: "Pax2Pay Logotype." })) })))), index.h("h4", { key: 'e64f1315e78a6e57b7c2506d4ea32422d8ff9339' }, "Demo table 11 - expandable cells"), index.h("smoothly-table", { key: '53a12803827744bf37720f60c3cd99439bc65eee' }, index.h("smoothly-table-row", { key: '3a45a13afaf3eba9bcf1c31a913d53c7bd996ac4' }, index.h("smoothly-table-header", { key: '4766556d4c34028d1bfada4f1eba93a6957ab8d0' }, "Name"), index.h("smoothly-table-header", { key: '95890692aec371f1ee7c3b772fa73b060b9f9113' }, "Age"), index.h("smoothly-table-header", { key: '648f385ff6ae89e95ec9d0a5f8e7b8ba422818e1' }, "Location")), index.h("smoothly-table-row", { key: '63721c569f6f084449561140168994b06afde157' }, index.h("smoothly-table-expandable-cell", { key: '486425032788b8da0381e11ebd17dff792e36bf6' }, "Jessie", index.h("div", { key: '637e06af0b62528f5f56b59fa2f4ca8471b1962c', slot: "detail" }, "Doe")), index.h("smoothly-table-expandable-cell", { key: 'a552c0a280737e1e126e5689662bb134c65d0438' }, new Date().getFullYear() - 2000, index.h("div", { key: '9bf19736d79312b4f24cf5e80887748505e2409a', slot: "detail" }, "2000-01-01")), index.h("smoothly-table-expandable-cell", { key: 'b48dd4c3cabb278b50d9276db5ec0538d06d249b' }, "UK", index.h("div", { key: 'daded4b764817e9cb9b6a99768228480f44444dd', slot: "detail" }, "London"))))));
|
|
12558
|
-
}
|
|
12559
|
-
};
|
|
12560
|
-
TableDemo.style = SmoothlyTableDemoStyle0;
|
|
12561
|
-
|
|
12562
|
-
const styleCss$i = ".sc-smoothly-table-demo-filtered-h{display:block;width:80%}smoothly-table-cell.sc-smoothly-table-demo-filtered:nth-of-type(2){text-align:right}td.sc-smoothly-table-demo-filtered{padding-left:1.5em}";
|
|
12563
|
-
const SmoothlyTableDemoFilteredStyle0 = styleCss$i;
|
|
12564
|
-
|
|
12565
|
-
const TableDemoFiltered = class {
|
|
12566
|
-
constructor(hostRef) {
|
|
12567
|
-
index.registerInstance(this, hostRef);
|
|
12568
|
-
this.criteria = {};
|
|
12569
|
-
this.cats = undefined;
|
|
12570
|
-
this.selector = Selector.create("breed");
|
|
12571
|
-
}
|
|
12572
|
-
onFilterUpdate(event) {
|
|
12573
|
-
event.stopPropagation();
|
|
12574
|
-
this.criteria = event.detail;
|
|
12575
|
-
}
|
|
12576
|
-
smoothlyInputHandler(event) {
|
|
12577
|
-
event.stopPropagation();
|
|
12578
|
-
this.selector = this.selector.handle(event.detail);
|
|
12579
|
-
}
|
|
12580
|
-
async componentWillLoad() {
|
|
12581
|
-
const response = await fetch("https://catfact.ninja/breeds?limit=15");
|
|
12582
|
-
this.cats =
|
|
12583
|
-
response.status == 200 &&
|
|
12584
|
-
(await response.body).data.map((cat) => {
|
|
12585
|
-
var _a, _b;
|
|
12586
|
-
return (Object.assign(Object.assign({}, cat), { price: [...cat.breed].reduce((r, c) => r + c.charCodeAt(0), 0), nested: Object.assign(Object.assign({}, cat), { names: (_a = names[cat.country]) !== null && _a !== void 0 ? _a : [] }), names: (_b = names[cat.country]) !== null && _b !== void 0 ? _b : [] }));
|
|
12587
|
-
});
|
|
12588
|
-
}
|
|
12589
|
-
render() {
|
|
12590
|
-
const cats = this.cats && filter(this.criteria, this.cats);
|
|
12591
|
-
return (index.h(index.Host, { key: 'd7e233c053fba323a74a573623a6bf141d6f8ab1' }, index.h("smoothly-filter", { key: 'c246ea99ae3427350e8e1687cd53a3cd6058fe08' }, index.h("smoothly-filter-toggle", { key: '029e46bfb50aa37caa536d8ca9daf64bdb855a38', properties: { ["nested.pattern"]: "Ticked", breed: "" }, icon: "add", toolTip: "Nested Ticked", slot: "bar" }), index.h("smoothly-filter-toggle", { key: '8288a44e699236f0694329ecb1d7017b9524ff9f', properties: { pattern: "Ticked", breed: "" }, icon: "paw", toolTip: "Ticked cats", slot: "bar" }), index.h("smoothly-filter-toggle", { key: '2589be0e3ae5c8a4883580570b1df34ab99245e1', properties: { breed: "Bombay", pattern: "Solid" }, icon: "radio-button-on", toolTip: "Solid bombay cats", slot: "bar" }), index.h("smoothly-filter-toggle", { key: '9b2cb2fbf15b34cfb246e2bacb5520df18bd1893', properties: { pattern: "Colorpoint" }, not: true, active: true, icon: "alert", toolTip: "Colored cats", slot: "bar" }), index.h("smoothly-filter-select", { key: '71c2925f794a486d0ca442ca202ff53cb94ec02f', label: "coat", property: "nested.coat", slot: "bar", multiple: false }, this.cats &&
|
|
12592
|
-
Object.values(this.cats.reduce((r, cat) => (cat.nested ? Object.assign(Object.assign({}, r), { [cat.nested.coat]: cat }) : r), {})).map(cat => {
|
|
12593
|
-
var _a;
|
|
12594
|
-
return ((_a = cat.nested) === null || _a === void 0 ? void 0 : _a.coat) && (index.h("smoothly-item", { slot: "items", value: cat.nested.coat }, cat.nested.coat));
|
|
12595
|
-
})), index.h("div", { key: '3ef0a91d058fd3baa540573ae9a7455994a2864e', slot: "detail" }, index.h("smoothly-form", { key: 'e204f91a3fed50535f1ce501354c549726ec7e6b', looks: "border" }, index.h("smoothly-filter-select", { key: 'c9192a202234e985c3c731d85cb3dd8b430e1b6b', label: "coat", property: "nested.coat", multiple: true }, this.cats &&
|
|
12596
|
-
Object.values(this.cats.reduce((r, cat) => (cat.nested ? Object.assign(Object.assign({}, r), { [cat.nested.coat]: cat }) : r), {})).map(cat => {
|
|
12597
|
-
var _a;
|
|
12598
|
-
return ((_a = cat.nested) === null || _a === void 0 ? void 0 : _a.coat) && (index.h("smoothly-item", { slot: "items", value: cat.nested.coat }, cat.nested.coat));
|
|
12599
|
-
})), index.h("smoothly-filter-select", { key: '66da328498d889b2a87c3b93c66c185c6ecd987f', label: "breed", property: "breed", multiple: false }, this.cats &&
|
|
12600
|
-
Object.values(this.cats.reduce((r, cat) => (cat.breed ? Object.assign(Object.assign({}, r), { [cat.breed]: cat }) : r), {})).map(cat => cat.breed && (index.h("smoothly-item", { slot: "items", value: cat.breed }, cat.breed)))), index.h("smoothly-filter-select", { key: 'de26f6af10598652eafe5805125754800cf509c8', label: "names", property: "nested.names", multiple: true, type: "array" }, Object.keys(Object.values(names)
|
|
12601
|
-
.flat()
|
|
12602
|
-
.reduce((r, name) => (Object.assign(Object.assign({}, r), { [name]: true })), {})).flatMap(name => (index.h("smoothly-item", { slot: "items", value: name }, name)))), index.h("smoothly-filter-input", { key: 'd76165d44907e57898cbbdfb426630a59bc6c4fb', label: "Coat", property: "coat" }), index.h("smoothly-filter-input", { key: 'e34e1f06642bf8a1e5d2f135a77386f3522cdd69', label: "Nested Coat", property: "nested.coat" })))), !cats ? ("Failed to load data.") : (index.h("smoothly-table", null, index.h("smoothly-table-row", null, index.h("smoothly-table-header", null, this.selector.render(cats)), index.h("smoothly-table-header", null, "Breed"), index.h("smoothly-table-header", null, "Coat"), index.h("smoothly-table-header", null, "Price")), cats.map(cat => (index.h("smoothly-table-row", null, index.h("smoothly-table-cell", null, this.selector.render(cat)), index.h("smoothly-table-expandable-cell", null, cat.breed, index.h("div", { slot: "detail" }, "Country: ", cat.country)), index.h("smoothly-table-expandable-cell", null, cat.coat, index.h("div", { slot: "detail" }, "Pattern: ", cat.pattern)), index.h("smoothly-table-cell", null, index.h("smoothly-display", { type: "price", value: cat.price, currency: "SEK" }))))), index.h("smoothly-table-footer", null, index.h("td", { colSpan: 5 }, index.h("smoothly-display", { type: "text", value: `Selected: ${this.selector.selected.length != 0 ? this.selector.selected.length : cats ? cats.length : "?"}` })))))));
|
|
12603
|
-
}
|
|
12604
|
-
};
|
|
12605
|
-
const names = {
|
|
12606
|
-
"United States": ["bill", "bob", "brad", "joe", "molly"],
|
|
12607
|
-
Australia: ["nigel", "bruce", "sheila", "brad", "shane"],
|
|
12608
|
-
"United Kingdom": ["nigel", "james", "molly", "shane", "bob"],
|
|
12609
|
-
Greece: ["dionysius", "demetrius", "polikarpos"],
|
|
12610
|
-
};
|
|
12611
|
-
TableDemoFiltered.style = SmoothlyTableDemoFilteredStyle0;
|
|
12612
|
-
|
|
12613
|
-
const styleCss$h = ".sc-smoothly-table-expandable-cell-h{display:table-cell;padding:0.3rem 0.5rem 0.3rem 0.2rem;cursor:pointer;line-height:1.5rem}.sc-smoothly-table-expandable-cell-h:not([open]){box-shadow:0 1px 0 0 rgb(var(--smoothly-color-shade)), 0 1px 0 0 rgb(var(--smoothly-color-shade)) inset}[open].sc-smoothly-table-expandable-cell-h{position:relative;z-index:3;background-color:rgb(var(--smoothly-color));box-shadow:1px 0 0 0 rgb(var(--smoothly-color-shade)) inset, -1px 0 0 0 rgb(var(--smoothly-color-shade)) inset, 0 1px 0 0 rgb(var(--smoothly-color-shade)) inset}.sc-smoothly-table-expandable-cell-h>div.sc-smoothly-table-expandable-cell>smoothly-icon.sc-smoothly-table-expandable-cell{width:1em;padding-right:0.3rem;transition:transform 0.2s, opacity 0.1s;display:flex;height:auto;aspect-ratio:1 / 1;align-self:center;opacity:0.3}.sc-smoothly-table-expandable-cell-h:hover>div.sc-smoothly-table-expandable-cell>smoothly-icon.sc-smoothly-table-expandable-cell{opacity:1}[open].sc-smoothly-table-expandable-cell-h>div.sc-smoothly-table-expandable-cell>smoothly-icon.sc-smoothly-table-expandable-cell{transform:rotate(90deg) translateX(3px)}.sc-smoothly-table-expandable-cell-h>div.sc-smoothly-table-expandable-cell{display:grid;grid-template-columns:auto 1fr;align-items:center}.sc-smoothly-table-expandable-cell-h:not([open])>tr.sc-smoothly-table-expandable-cell>td.sc-smoothly-table-expandable-cell{display:none}smoothly-table-row>tr>td.sc-smoothly-table-expandable-cell-s>*{--expansion-width:1.5rem;--expansion-border-width:3px;position:relative;background-color:rgb(var(--smoothly-color));width:calc(100% + 3rem - 1px);top:1px;left:calc(-1 * var(--expansion-width) + 1px);box-sizing:border-box;padding:0.5rem calc(var(--expansion-width) - 1px);border-bottom:1px solid rgb(var(--smoothly-color-shade))}smoothly-table-row>tr.spotlight>td.sc-smoothly-table-expandable-cell-s>*{box-shadow:calc(var(--expansion-border-width)) 0 0 0 rgb(var(--smoothly-tertiary-color)) inset}smoothly-table-row>tr:not(.spotlight)>td.sc-smoothly-table-expandable-cell-s>*{box-shadow:-1px 0 0 0 rgb(var(--smoothly-tertiary-color)), 1px 0 0 0 rgb(var(--smoothly-tertiary-color))}smoothly-table-row>tr>td.sc-smoothly-table-expandable-cell-s>*::before{content:\"\";position:absolute;display:flex;top:-1px;bottom:0;left:-1px;width:calc(var(--expansion-width) + 1px);border-top:1px solid rgb(var(--smoothly-color-shade))}smoothly-table-row>tr>td.sc-smoothly-table-expandable-cell-s>*::after{content:\"\";position:absolute;display:flex;top:-1px;bottom:0;right:0;width:calc(var(--expansion-width) - 1px);border-top:1px solid rgb(var(--smoothly-color-shade));border-right:1px solid rgb(var(--smoothly-color-shade))}smoothly-table[align=bottom] .sc-smoothly-table-expandable-cell-h{vertical-align:bottom}smoothly-table[align=middle] .sc-smoothly-table-expandable-cell-h{vertical-align:middle}smoothly-table[align=top] .sc-smoothly-table-expandable-cell-h{vertical-align:top}";
|
|
12614
|
-
const SmoothlyTableExpandableCellStyle0 = styleCss$h;
|
|
12615
|
-
|
|
12616
|
-
const TableExpandableCell = class {
|
|
12617
|
-
constructor(hostRef) {
|
|
12618
|
-
index.registerInstance(this, hostRef);
|
|
12619
|
-
this.smoothlyExpansionOpen = index.createEvent(this, "smoothlyExpansionOpen", 7);
|
|
12620
|
-
this.smoothlyExpansionLoad = index.createEvent(this, "smoothlyExpansionLoad", 7);
|
|
12621
|
-
this.smoothlyExpandableChange = index.createEvent(this, "smoothlyExpandableChange", 7);
|
|
12622
|
-
this.smoothlyExpandableLoad = index.createEvent(this, "smoothlyExpandableLoad", 7);
|
|
12623
|
-
this.allowSpotlight = true;
|
|
12624
|
-
this.spotlight = true;
|
|
12625
|
-
this.open = undefined;
|
|
12626
|
-
}
|
|
12627
|
-
openChanged(value) {
|
|
12628
|
-
if (this.expansionElement)
|
|
12629
|
-
if (value)
|
|
12630
|
-
this.beginOpen = true;
|
|
12631
|
-
else
|
|
12632
|
-
this.element.append(this.expansionElement);
|
|
12633
|
-
this.smoothlyExpandableChange.emit(this.open);
|
|
12634
|
-
}
|
|
12635
|
-
handleSpotlight() {
|
|
12636
|
-
this.spotlight = this.open && this.allowSpotlight;
|
|
12637
|
-
}
|
|
12638
|
-
componentWillLoad() {
|
|
12639
|
-
this.smoothlyExpansionLoad.emit();
|
|
12640
|
-
this.smoothlyExpandableLoad.emit({
|
|
12641
|
-
allowSpotlight: (allowed) => (this.allowSpotlight = allowed),
|
|
12642
|
-
});
|
|
12643
|
-
}
|
|
12644
|
-
componentDidRender() {
|
|
12645
|
-
if (this.beginOpen) {
|
|
12646
|
-
this.beginOpen = false;
|
|
12647
|
-
this.smoothlyExpansionOpen.emit(this.expansionElement);
|
|
12648
|
-
}
|
|
12649
|
-
}
|
|
12650
|
-
onClick() {
|
|
12651
|
-
this.open = !this.open;
|
|
12652
|
-
}
|
|
12653
|
-
handleTableLoaded(event) {
|
|
12654
|
-
event.stopPropagation();
|
|
12655
|
-
event.detail(this.element);
|
|
12656
|
-
}
|
|
12657
|
-
render() {
|
|
12658
|
-
return (index.h(index.Host, { key: '7f99296c8b258bcac935f91bf61766ab55b7cb7f' }, index.h("div", { key: 'c4177f1f85595d7618dabe68bd3a4ac52528d2ad' }, index.h("smoothly-icon", { key: 'e68d816b11f7f5948be9b28f6e3f8ad1a1deba63', name: "caret-forward-outline" }), index.h("slot", { key: 'f494db81c816da589b12de1ed1d1562cf30ee36a' })), index.h("tr", { key: 'd974329b89730630cca0873471796493b19a4b12', class: { spotlight: this.spotlight }, ref: e => (this.expansionElement = e) }, index.h("td", { key: '88b9d0602373ee07c224dc179480cf359d4ffdb7', colSpan: 999 }, index.h("slot", { key: 'c304e44346c82d9b6743f71403262937f3c76d3a', name: "detail" })))));
|
|
12659
|
-
}
|
|
12660
|
-
get element() { return index.getElement(this); }
|
|
12661
|
-
static get watchers() { return {
|
|
12662
|
-
"open": ["openChanged", "handleSpotlight"],
|
|
12663
|
-
"allowSpotlight": ["handleSpotlight"]
|
|
12664
|
-
}; }
|
|
12665
|
-
};
|
|
12666
|
-
TableExpandableCell.style = SmoothlyTableExpandableCellStyle0;
|
|
12667
|
-
|
|
12668
|
-
const styleCss$g = ".sc-smoothly-table-expandable-row-h{display:contents}.sc-smoothly-table-expandable-row-h>div.sc-smoothly-table-expandable-row{display:table-row;cursor:pointer;line-height:1.5rem}[open].sc-smoothly-table-expandable-row-h>div.sc-smoothly-table-expandable-row{position:relative;z-index:3;background-color:rgb(var(--smoothly-color))}.sc-smoothly-table-expandable-row-h[open]>div.sc-smoothly-table-expandable-row-s smoothly-table-cell,.sc-smoothly-table-expandable-row-h[open]>div.sc-smoothly-table-expandable-row-s>smoothly-table-cell{box-shadow:0 1px 0 0 rgb(var(--smoothly-color-shade)) inset}.sc-smoothly-table-expandable-row-h[open]>div.sc-smoothly-table-expandable-row-s smoothly-table-cell:first-child{box-shadow:0 1px 0 0 rgb(var(--smoothly-color-shade)) inset, 1px 0 0 0 rgb(var(--smoothly-color-shade)) inset}.sc-smoothly-table-expandable-row-h[open]>div.sc-smoothly-table-expandable-row-s smoothly-table-cell:last-child{box-shadow:0 1px 0 0 rgb(var(--smoothly-color-shade)) inset, -1px 0 0 0 rgb(var(--smoothly-color-shade)) inset}.sc-smoothly-table-expandable-row-h[open]>div.sc-smoothly-table-expandable-row-s smoothly-table-cell:last-child:first-child{box-shadow:0 1px 0 0 rgb(var(--smoothly-color-shade)) inset, 1px 0 0 0 rgb(var(--smoothly-color-shade)) inset, -1px 0 0 0 rgb(var(--smoothly-color-shade)) inset}.sc-smoothly-table-expandable-row-h:not([open])>tr.sc-smoothly-table-expandable-row>td.sc-smoothly-table-expandable-row{display:none}.sc-smoothly-table-expandable-row-h>tr.sc-smoothly-table-expandable-row>td.sc-smoothly-table-expandable-row{position:relative}.sc-smoothly-table-expandable-row-h>tr>td.sc-smoothly-table-expandable-row-s>*{--expansion-width:1.5rem;--expansion-border-width:3px;position:relative;background-color:rgb(var(--smoothly-color));width:calc(100% + 3rem - 2px);left:calc(-1 * var(--expansion-width) + 1px);box-sizing:border-box;padding:0.5rem calc(var(--expansion-width) - 1px);border-bottom:1px solid rgb(var(--smoothly-color-shade))}.sc-smoothly-table-expandable-row-h>tr.spotlight>td.sc-smoothly-table-expandable-row-s>*{box-shadow:calc(var(--expansion-border-width)) 0px 0px 0px rgb(var(--smoothly-tertiary-color)) inset}.sc-smoothly-table-expandable-row-h>tr:not(.spotlight)>td.sc-smoothly-table-expandable-row-s>*{box-shadow:-1px 0 0 0 rgb(var(--smoothly-tertiary-color)), 1px 0 0 0 rgb(var(--smoothly-tertiary-color))}.sc-smoothly-table-expandable-row-h>tr>td.sc-smoothly-table-expandable-row-s>*::before{content:\"\";position:absolute;display:flex;top:0;bottom:0;left:-1px;width:calc(var(--expansion-width) + 1px);border-top:1px solid rgb(var(--smoothly-color-shade))}.sc-smoothly-table-expandable-row-h>tr>td.sc-smoothly-table-expandable-row-s>*::after{content:\"\";position:absolute;display:flex;top:0;bottom:0;right:0;width:calc(var(--expansion-width) - 1px);border-top:1px solid rgb(var(--smoothly-color-shade));border-right:1px solid rgb(var(--smoothly-color-shade))}";
|
|
12669
|
-
const SmoothlyTableExpandableRowStyle0 = styleCss$g;
|
|
12670
|
-
|
|
12671
|
-
const TableExpandableRow = class {
|
|
12672
|
-
constructor(hostRef) {
|
|
12673
|
-
index.registerInstance(this, hostRef);
|
|
12674
|
-
this.smoothlyExpansionOpen = index.createEvent(this, "smoothlyExpansionOpen", 7);
|
|
12675
|
-
this.smoothlyExpandableChange = index.createEvent(this, "smoothlyExpandableChange", 7);
|
|
12676
|
-
this.smoothlyExpandableLoad = index.createEvent(this, "smoothlyExpandableLoad", 7);
|
|
12677
|
-
this.allowSpotlight = true;
|
|
12678
|
-
this.spotlight = true;
|
|
12679
|
-
this.open = undefined;
|
|
12680
|
-
}
|
|
12681
|
-
handleSpotlight() {
|
|
12682
|
-
this.spotlight = this.open && this.allowSpotlight;
|
|
12683
|
-
}
|
|
12684
|
-
componentWillLoad() {
|
|
12685
|
-
this.smoothlyExpandableLoad.emit({
|
|
12686
|
-
allowSpotlight: (allowed) => (this.allowSpotlight = allowed),
|
|
12687
|
-
});
|
|
12688
|
-
}
|
|
12689
|
-
handleTableLoaded(event) {
|
|
12690
|
-
event.stopPropagation();
|
|
12691
|
-
event.detail(this.element);
|
|
12692
|
-
}
|
|
12693
|
-
render() {
|
|
12694
|
-
return (index.h(index.Host, { key: '784a683f40536548d1542c5dae42a58c93cc80d7' }, index.h("div", { key: 'bdbd93a9b79b97e6ef11a3de7c864a3f5f520dc8', onClick: () => (this.open = !this.open) }, index.h("slot", { key: 'eac3be2e5a17eae0171d69659a84f6a1ca012abb' })), index.h("tr", { key: 'd5d553074bc8663cb820de9c1db912c67731d749', class: { spotlight: this.spotlight } }, index.h("td", { key: 'f74d6d53ad0ec47c5da68796a9a96572710a2553', colSpan: 999 }, index.h("slot", { key: '4b2b30c415b95564673bc6bd97dc192575592078', name: "detail" })))));
|
|
12695
|
-
}
|
|
12696
|
-
get element() { return index.getElement(this); }
|
|
12697
|
-
static get watchers() { return {
|
|
12698
|
-
"open": ["handleSpotlight"],
|
|
12699
|
-
"allowSpotlight": ["handleSpotlight"]
|
|
12700
|
-
}; }
|
|
12701
|
-
};
|
|
12702
|
-
TableExpandableRow.style = SmoothlyTableExpandableRowStyle0;
|
|
12703
|
-
|
|
12704
|
-
const styleCss$f = ".sc-smoothly-table-footer-h{display:table-footer-group;position:sticky;bottom:0;background-color:rgb(var(--smoothly-color));box-shadow:0 1px 0 0 rgb(var(--smoothly-color-shade)),\n\t\tinset 0 1px 0 rgb(var(--smoothly-color-shade));line-height:2.5rem;font-weight:bold}";
|
|
12705
|
-
const SmoothlyTableFooterStyle0 = styleCss$f;
|
|
12706
|
-
|
|
12707
|
-
const TableFooter = class {
|
|
12708
|
-
constructor(hostRef) {
|
|
12709
|
-
index.registerInstance(this, hostRef);
|
|
12710
|
-
}
|
|
12711
|
-
render() {
|
|
12712
|
-
return index.h("slot", { key: '8caee25c663413b4d07322ebaa29e4c4b81e6d5e' });
|
|
12713
|
-
}
|
|
12714
|
-
};
|
|
12715
|
-
TableFooter.style = SmoothlyTableFooterStyle0;
|
|
12716
|
-
|
|
12717
|
-
const styleCss$e = ".sc-smoothly-table-header-h{display:table-cell;line-height:2.5rem;border-top:1px solid rgb(var(--smoothly-color-shade));box-shadow:0 1px 0 0 rgb(var(--smoothly-color-shade));padding:0 .5rem;font-weight:bold}smoothly-table[align=bottom] .sc-smoothly-table-header-h{vertical-align:bottom}smoothly-table[align=middle] .sc-smoothly-table-header-h{vertical-align:middle}smoothly-table[align=top] .sc-smoothly-table-header-h{vertical-align:top}";
|
|
12718
|
-
const SmoothlyTableHeaderStyle0 = styleCss$e;
|
|
12719
|
-
|
|
12720
|
-
const TableHeader = class {
|
|
12721
|
-
constructor(hostRef) {
|
|
12722
|
-
index.registerInstance(this, hostRef);
|
|
12723
|
-
this.name = undefined;
|
|
12724
|
-
}
|
|
12725
|
-
render() {
|
|
12726
|
-
return (index.h(index.Host, { key: '9c50912894be88d8ad12e05455997404e0a6dcff' }, index.h("slot", { key: 'c7db69ee0fd006b5f4afe86e41cfae29861e2915' })));
|
|
12727
|
-
}
|
|
12728
|
-
};
|
|
12729
|
-
TableHeader.style = SmoothlyTableHeaderStyle0;
|
|
12730
|
-
|
|
12731
|
-
const styleCss$d = ".sc-smoothly-table-row-h{display:table-row-group;cursor:default;line-height:1.5rem}.hide.sc-smoothly-table-row{display:none}.sc-smoothly-table-row-h>div.sc-smoothly-table-row{display:contents}";
|
|
12732
|
-
const SmoothlyTableRowStyle0 = styleCss$d;
|
|
12733
|
-
|
|
12734
|
-
const TableRow = class {
|
|
12735
|
-
constructor(hostRef) {
|
|
12736
|
-
index.registerInstance(this, hostRef);
|
|
12737
|
-
this.expansions = [];
|
|
12738
|
-
this.open = false;
|
|
12739
|
-
}
|
|
12740
|
-
onExpansionLoad(event) {
|
|
12741
|
-
this.expansions.push(event.target);
|
|
12742
|
-
}
|
|
12743
|
-
onExpansionChange() {
|
|
12744
|
-
this.open = this.expansions.some(expansion => expansion.open);
|
|
12745
|
-
}
|
|
12746
|
-
onExpansionOpen(event) {
|
|
12747
|
-
var _a;
|
|
12748
|
-
this.expansions.forEach(cell => {
|
|
12749
|
-
if (cell != event.target)
|
|
12750
|
-
cell.open = false;
|
|
12751
|
-
});
|
|
12752
|
-
if (event.detail)
|
|
12753
|
-
(_a = this.element) === null || _a === void 0 ? void 0 : _a.after(event.detail);
|
|
12754
|
-
}
|
|
12755
|
-
render() {
|
|
12756
|
-
return (index.h("div", { key: '7a3b1f9bf7edcfc68a3c130c0bc1f54dd079a8e5', ref: e => (this.element = e) }, index.h("slot", { key: '3f8f3c027aa32505d2748ee2f3252e27e2d2c5ac' })));
|
|
12757
|
-
}
|
|
12758
|
-
};
|
|
12759
|
-
TableRow.style = SmoothlyTableRowStyle0;
|
|
12760
|
-
|
|
12761
|
-
const data = [
|
|
12762
|
-
{
|
|
12763
|
-
type: "cat",
|
|
12764
|
-
name: "Lazie",
|
|
12765
|
-
age: 3,
|
|
12766
|
-
},
|
|
12767
|
-
{
|
|
12768
|
-
type: "dog",
|
|
12769
|
-
name: "Jessie",
|
|
12770
|
-
age: 8,
|
|
12771
|
-
},
|
|
12772
|
-
{
|
|
12773
|
-
type: "cat",
|
|
12774
|
-
name: "Snooz",
|
|
12775
|
-
age: 5,
|
|
12776
|
-
},
|
|
12777
|
-
{
|
|
12778
|
-
type: "bird",
|
|
12779
|
-
name: "Squeak",
|
|
12780
|
-
age: 1,
|
|
12781
|
-
},
|
|
12782
|
-
{
|
|
12783
|
-
type: "bird",
|
|
12784
|
-
name: "Quirk",
|
|
12785
|
-
age: 2,
|
|
12786
|
-
},
|
|
12787
|
-
];
|
|
12788
|
-
|
|
12789
|
-
const styleCss$c = ".sc-smoothly-table-testing-h{width:100%;display:flex;justify-content:center}smoothly-table.sc-smoothly-table-testing{width:80%}.tableCell.sc-smoothly-table-testing{height:3rem;display:flex;align-items:center}.tableCell.sc-smoothly-table-testing>div.sc-smoothly-table-testing{margin-left:3rem;margin-right:3rem;display:flex;flex-direction:row;align-items:center;justify-content:space-between;gap:2rem}td.sc-smoothly-table-testing>div.footer.sc-smoothly-table-testing{display:flex;padding-left:1.5em;flex-direction:row;gap:1em}";
|
|
12790
|
-
const SmoothlyTableTestingStyle0 = styleCss$c;
|
|
12791
|
-
|
|
12792
|
-
const SmoothlyTableTesting = class {
|
|
12793
|
-
constructor(hostRef) {
|
|
12794
|
-
index.registerInstance(this, hostRef);
|
|
12795
|
-
this.counter = 0;
|
|
12407
|
+
this.smoothlyTableRowGroupChange.emit(this.open);
|
|
12796
12408
|
}
|
|
12797
12409
|
render() {
|
|
12798
|
-
return (index.h(index.Host, { key: '
|
|
12410
|
+
return (index.h(index.Host, { key: 'd39263848ea2642912f8f7944b4af31bbeb7bedb' }, index.h("div", { key: 'c646cbc32e7a6d1dab115ad61e34e1d23df1b5c2', onClick: () => this.clickHandler() }, index.h("div", { key: '8625237beff7d80edd3d4b48ab97dafc688ebdad' }, index.h("slot", { key: '19eb66f64c2f9d836ac74c11565cc3cf1573f9c4', name: "start" })), index.h("div", { key: '7a0605223df89b3f0edafa723244b495c0466608' }, index.h("slot", { key: '5e781edb2a74e94b80bed6732abe028d5ddb0fa6', name: "end" }))), index.h("div", { key: '530f66f946ca11615f058bd0a8b061a858ec7751' }, index.h("slot", { key: '7a9dccab9430529f5779424940073fcd19187775' }))));
|
|
12799
12411
|
}
|
|
12800
12412
|
};
|
|
12801
|
-
|
|
12413
|
+
SmoothlyTableRowGroup.style = SmoothlyTableRowGroupStyle0;
|
|
12802
12414
|
|
|
12803
12415
|
const styleCss$b = ".sc-smoothly-tabs-h{display:grid;grid-template-columns:repeat(var(--tabs), auto);grid-template-rows:auto auto}";
|
|
12804
12416
|
const SmoothlyTabsStyle0 = styleCss$b;
|
|
@@ -12827,7 +12439,7 @@ const SmoothlyTabs = class {
|
|
|
12827
12439
|
old.open = false;
|
|
12828
12440
|
}
|
|
12829
12441
|
render() {
|
|
12830
|
-
return (index.h(index.Host, { key: '
|
|
12442
|
+
return (index.h(index.Host, { key: 'f17ec6be41e37bd9f3c4c13034bdcd6de9a7b9b4', style: { "--tabs": `${this.tabs.length}` } }, index.h("slot", { key: '5f4a4446566dc5120b8728bcbd854dc834f10a2d' })));
|
|
12831
12443
|
}
|
|
12832
12444
|
get element() { return index.getElement(this); }
|
|
12833
12445
|
static get watchers() { return {
|
|
@@ -12844,7 +12456,7 @@ const SmoothlyTabsDemo = class {
|
|
|
12844
12456
|
index.registerInstance(this, hostRef);
|
|
12845
12457
|
}
|
|
12846
12458
|
render() {
|
|
12847
|
-
return (index.h("smoothly-tabs", { key: '
|
|
12459
|
+
return (index.h("smoothly-tabs", { key: '4a00dd7c436dbf3d9abe9433b99638af102cf7ec' }, index.h("smoothly-tab", { key: '7c12f03057817a6bb970ae5b6f94d6d0e3fbdf01', label: "test1", open: true }, "Hello world!"), index.h("smoothly-tab", { key: '2a6045a36eb91238215cfea7d02ce7e57663412d', label: "test2" }, "this is a test message!"), index.h("smoothly-tab", { key: '6fa4537914d989e47aad7eac348435ea97746e82', label: "test3" }, "this is a test message again!")));
|
|
12848
12460
|
}
|
|
12849
12461
|
};
|
|
12850
12462
|
SmoothlyTabsDemo.style = SmoothlyTabsDemoStyle0;
|
|
@@ -12858,7 +12470,7 @@ const SmoothlyThemeColor = class {
|
|
|
12858
12470
|
this.color = undefined;
|
|
12859
12471
|
}
|
|
12860
12472
|
render() {
|
|
12861
|
-
return (index.h(index.Host, { key: '
|
|
12473
|
+
return (index.h(index.Host, { key: 'c4d5fc173ffb6f2eabf51c7857cf058ed1d1fe2c' }, this.color, ["tint", "color", "shade"].map(variant => (index.h("smoothly-theme-color-variant", { title: `${this.color} ${variant}`, color: this.color, variant: variant })))));
|
|
12862
12474
|
}
|
|
12863
12475
|
};
|
|
12864
12476
|
SmoothlyThemeColor.style = SmoothlyThemeColorStyle0;
|
|
@@ -12910,7 +12522,7 @@ const SmoothlyThemeDemo = class {
|
|
|
12910
12522
|
index.registerInstance(this, hostRef);
|
|
12911
12523
|
}
|
|
12912
12524
|
render() {
|
|
12913
|
-
return (index.h(index.Host, { key: '
|
|
12525
|
+
return (index.h(index.Host, { key: '4463a636e45a126ba2fb062048ebd0b9fb3f687d' }, index.h("h2", { key: 'c2a7009ee3887c027ae7b7bf005d913036685e64' }, "Theme"), index.h("smoothly-theme-picker", { key: '0a446c485965bef46174bbc3c43fbc80abbeb29f' }, index.h("smoothly-item", { key: '1cd98a7c5a46aec65ffb22d125f788a0d84524f3', selected: true, value: "assets/style/smoothly.css" }, "Smoothly"), index.h("smoothly-item", { key: '420c81c9b4fdde7d753d17dd89ea766b63cac4b7', value: "https://app.issuefab.com/assets/style/index.css" }, "Issuefab"), index.h("smoothly-item", { key: 'be405af1795f5a5f5880c43176d927eae4e7ed8c', value: "https://app.proquse.com/assets/style/index.css" }, "Proquse"), index.h("smoothly-item", { key: '2873d44164cb6e8684096edb6f0cb48dddc00499', value: "https://app.weekmeter.com/assets/style/index.css" }, "Weekmeter"), index.h("smoothly-item", { key: 'f4074f3ff99ae23d74f9afd182f50bdca5975189', value: "https://dash.pax2pay.app/p2pdash.css" }, "Pax2Pay Dashboard"), index.h("smoothly-item", { key: 'e29a9eabce4fe47d563cd332f6ac1f9694255e0e', value: "https://ui.pax2pay.app/assets/style/pax2pay.css" }, "Pax2Pay Portal"), index.h("smoothly-item", { key: '605c81cabec58d8bf0effbba978124cc2edc18dc', value: "https://theme.payfunc.com/intergiro/index.css" }, "Intergiro Monitor"), index.h("smoothly-item", { key: '89cd4a4fde0377438f9b0774ef5cde8d12ad3de6', value: "https://theme.payfunc.com/light/index.css" }, "Payfunc Light"), index.h("smoothly-item", { key: '80a0348fd0d5d123ae21e3553402cbd45cfc354f', value: "https://theme.payfunc.com/dark/index.css" }, "Payfunc Dark")), index.h("span", { key: '8984c5ecbab2d30da873861d05dde2e33d9e91b5' }, index.h("smoothly-theme-colors", { key: 'b5cb68f62cdd11e8a5b5487c62680f5a1b955593' }), index.h("smoothly-theme-guide", { key: 'caae0dccd337a1f7f3f59dac6cf616fe2058d3b9' })), index.h("smoothly-button", { key: '68ca23965a74ba537d3b3c011d70b8039990fe30', type: "link", link: "/redirect" }, "To redirect"), index.h("smoothly-button", { key: '71ba1deab1a40617e628c555f81b8414d7900542', type: "link", link: "/redirect" }, "To /redirect"), index.h("smoothly-button", { key: '8e4aff63e4a8b24aa875d277e6f0ad2c6b8c4960', type: "link", link: new URL("/redirect", window.location.origin).href }, "To new URL(\"redirect\")"), index.h("smoothly-button", { key: '24bb491c61fd7b4321936a31d3936067155d284c', type: "link", link: "redirect/nested" }, "To redirect nested")));
|
|
12914
12526
|
}
|
|
12915
12527
|
};
|
|
12916
12528
|
SmoothlyThemeDemo.style = SmoothlyThemeDemoStyle0;
|
|
@@ -12924,14 +12536,14 @@ const SmoothlyThemeColors = class {
|
|
|
12924
12536
|
}
|
|
12925
12537
|
render() {
|
|
12926
12538
|
return [
|
|
12927
|
-
index.h("smoothly-display", { key: '
|
|
12928
|
-
index.h("br", { key: '
|
|
12929
|
-
index.h("smoothly-display", { key: '
|
|
12930
|
-
index.h("br", { key: '
|
|
12931
|
-
index.h("smoothly-display", { key: '
|
|
12932
|
-
index.h("br", { key: '
|
|
12933
|
-
index.h("smoothly-display", { key: '
|
|
12934
|
-
index.h("br", { key: '
|
|
12539
|
+
index.h("smoothly-display", { key: 'e02cf3d9a55c0f8bf5027f808870e1b3050be8b5' }, "Tint is used as background to highlight, for example hovering an item in the select menu."),
|
|
12540
|
+
index.h("br", { key: '817c11793839a6ae6ba3c95d17bf4d259e3ba0f2' }),
|
|
12541
|
+
index.h("smoothly-display", { key: '2e94e10374c983af3d5e182fafa79a23297a1963' }, "Color is used as a normal background or as a background to show that something is selected, for example a selected item in the select menu."),
|
|
12542
|
+
index.h("br", { key: 'e66a23032469185cfbb4ff72e9269503e0dfe208' }),
|
|
12543
|
+
index.h("smoothly-display", { key: 'd439e1e3c0376c104497ced7089fbe5353b95cf7' }, "Shade is used as border and for symbols in buttons. It works as a semi-low contrast against color and tint."),
|
|
12544
|
+
index.h("br", { key: 'da226714d31e8bb16901982c3d76760479556603' }),
|
|
12545
|
+
index.h("smoothly-display", { key: 'dea4cf61a7aea11560d67ac2edef565c981958e7' }, "One can use the ", "<smoothly-color>", " component to switch between what color set is used.", " "),
|
|
12546
|
+
index.h("br", { key: '5ac250dadb2c47de1399c1c5f5d7aacf9cb05c3d' }),
|
|
12935
12547
|
];
|
|
12936
12548
|
}
|
|
12937
12549
|
};
|
|
@@ -12946,11 +12558,11 @@ const SmoothlyThemePicker = class {
|
|
|
12946
12558
|
this.element = "smoothly-css";
|
|
12947
12559
|
}
|
|
12948
12560
|
render() {
|
|
12949
|
-
return (index.h(index.Host, { key: '
|
|
12561
|
+
return (index.h(index.Host, { key: 'd689a1c952e70cce86dc2aa27e794b087bf49b69' }, index.h("smoothly-input-select", { key: '04a1ef8bf253bd7bc3799d219de7ebe7dd220e1b', name: "theme", looks: "border", onSmoothlyInput: e => {
|
|
12950
12562
|
const element = document.querySelector(`#${this.element}`);
|
|
12951
12563
|
if (element instanceof HTMLLinkElement && typeof e.detail.theme == "string")
|
|
12952
12564
|
element.href = e.detail.theme;
|
|
12953
|
-
} }, index.h("label", { key: '
|
|
12565
|
+
} }, index.h("label", { key: '0b294f2161e7862a2aaaf47b806a057aa1d1bdf5', slot: "label" }, "Select theme"), index.h("slot", { key: 'b21b9ee4e9f7b7326f3b979c415363f6d93bb546' }))));
|
|
12954
12566
|
}
|
|
12955
12567
|
};
|
|
12956
12568
|
SmoothlyThemePicker.style = SmoothlyThemePickerStyle0;
|
|
@@ -12971,7 +12583,7 @@ const SmoothlyToggle = class {
|
|
|
12971
12583
|
this.selected = !this.selected;
|
|
12972
12584
|
}
|
|
12973
12585
|
render() {
|
|
12974
|
-
return (index.h("button", { key: '
|
|
12586
|
+
return (index.h("button", { key: 'f0e5138156ac79c5643426f72620393dfb8c27e8', type: "button" }, index.h("slot", { key: '79e984f1882f605bc011bcf6150e4dd1a3ee8c73', name: "icon-slot" }), index.h("slot", { key: '65d09c198954ac88ce636f0c8b74a2878b16c68c' }, this.name)));
|
|
12975
12587
|
}
|
|
12976
12588
|
};
|
|
12977
12589
|
SmoothlyToggle.style = SmoothlyToggleStyle0;
|
|
@@ -12995,7 +12607,7 @@ const SmoothlyToggleSwitch = class {
|
|
|
12995
12607
|
this.smoothlyToggleSwitchChange.emit(this.selected);
|
|
12996
12608
|
}
|
|
12997
12609
|
render() {
|
|
12998
|
-
return (index.h(index.Host, { key: '
|
|
12610
|
+
return (index.h(index.Host, { key: 'baeb9a35d3a913f1648685c7d241c7af1c7c2ec4' }, index.h("button", { key: '938b362d38ec57efd22bb659781085f49e69bff9', type: "button", disabled: this.disabled, onClick: () => this.handleClick() }, index.h("smoothly-icon", { key: 'c60d94f545a9bf0a31ea2fdc283e0e71fef6047c', color: this.color, name: !this.checkmark ? "ellipse" : this.selected ? "checkmark-circle" : "close-circle", fill: "clear", class: { selected: this.selected } }))));
|
|
12999
12611
|
}
|
|
13000
12612
|
};
|
|
13001
12613
|
SmoothlyToggleSwitch.style = SmoothlyToggleSwitchStyle0;
|
|
@@ -13008,7 +12620,7 @@ const SmoothlyToggleSwitchDemo = class {
|
|
|
13008
12620
|
index.registerInstance(this, hostRef);
|
|
13009
12621
|
}
|
|
13010
12622
|
render() {
|
|
13011
|
-
return (index.h(index.Host, { key: '
|
|
12623
|
+
return (index.h(index.Host, { key: '2c6c37d956082033ddb99bd74deb4d25fde1f1c6' }, index.h("h4", { key: '41c99e51acaeddbddf3ca1ea59b9f44a52c52625' }, "Toggle switches"), index.h("div", { key: 'a4bc0fa9b881cad6d406501cf290a19f1c2469f8' }, index.h("p", { key: '43fd060188ed4c91e230e348d7741ef275fe6021' }, "Checkmark"), index.h("span", { key: 'd685bd4d89fecdef7c685033691bb1ea0cad3271' }, index.h("p", { key: '82bfdf0135a5b813cbab71976a134370ae95785d' }, "Tiny"), index.h("smoothly-toggle-switch", { key: 'cced57bd9925fc8cf7ba2a3d5f82279d035de8af', disabled: false, size: "tiny" })), index.h("span", { key: '4da25839c16ffafabb2f3a970502b6e41b3f3a6e' }, index.h("p", { key: '271cbba840216f1a9065885e4dd5755c51633903' }, "Small"), index.h("smoothly-toggle-switch", { key: '237a0ad32b1d252251ce725c97783928efd5bacc', disabled: false, size: "small" })), index.h("span", { key: '3671a60eb9f6ddb796ed792b0b1636771c3fe540' }, index.h("p", { key: '5adad63ea009dd09944a205f664424c8c64da472' }, "Standard"), index.h("smoothly-toggle-switch", { key: 'bdb1c9d5b6a0317e1918673c420f0d0d060737d7', disabled: false })), index.h("span", { key: 'afca47ba5a5772022b7538292019fcfa069819dd' }, index.h("p", { key: '8f03372febc98e6e1f0dc2954b3bd66aebe21b9b' }, "Large"), index.h("smoothly-toggle-switch", { key: 'da43f9bf46afe3e2f5792424bd30505470c99ca1', disabled: false, size: "large" })), index.h("p", { key: 'd652266a7dba414874fbdd099ae29683e1f451b3' }, "Colors checkmark"), index.h("span", { key: '1c5aadb9c4952526ee3953dcfe9f7cca065ddbbe' }, index.h("p", { key: 'fbe4b7ddf6d95256e3fc96ff53b74efbb48cf42e' }, "Danger"), index.h("smoothly-toggle-switch", { key: '29b4ec5c214d4682879142bc4ec65b54e92a73b4', color: "danger", disabled: false, size: "small" })), index.h("span", { key: '7b2dcfb85ab7fd235c2ad93780d34f3e5c53ae8c' }, index.h("p", { key: 'b0a4490e56c6512335e78e926deb2726fc8f3f4c' }, "Primary color"), index.h("smoothly-toggle-switch", { key: '5aba5665d5fed616c435c92ef13d9739e57e3c20', color: "primary", disabled: false, size: "small" })), index.h("span", { key: '1607f406e24d531250dda44ba558bd6597a8079a' }, index.h("p", { key: '129adbadea7735cf4926964fc6a6ba22064ea17e' }, "Secondary color"), index.h("smoothly-toggle-switch", { key: '467139b1327e42eb38c85f2ed601277a5ca73efd', color: "secondary", disabled: false, size: "small" })), index.h("p", { key: 'fe3ef94ebe4aa8d63a50881f8f7a6c96e23fdfdd' }), index.h("p", { key: '4e126ab6df0429dfe421c4bbe541595de0a59468' }, "Colors no checkmark"), index.h("span", { key: '251fd2ff788c3a350d81cbda863511f1d88d3f55' }, index.h("p", { key: 'b3ada7343ebccb4a96bbdc79ce5f7177b3c3a813' }, "Danger"), index.h("smoothly-toggle-switch", { key: '2a1020a88e6b43f117efa283d553b5595b05318e', checkmark: false, color: "danger", disabled: false, size: "small" })), index.h("span", { key: '7e7189b035745512f51567f77f2732a767ade2cb' }, index.h("p", { key: '932597e702b68b36014abf476beaecef867d92b4' }, "Primary color"), index.h("smoothly-toggle-switch", { key: 'c4cb5d5cfe233dea1cf582ef0e1d29b7438d84cd', checkmark: false, color: "primary", disabled: false, size: "small" })), index.h("span", { key: '69f3f234f6785468dbfde214ef9acb9f1b9fd0af' }, index.h("p", { key: 'eedd5f46b1278a420ecbd239d2b3b6e401a9f6a5' }, "Secondary color"), index.h("smoothly-toggle-switch", { key: 'c29aa13a118b8cad29eb52212929c701d63e876c', checkmark: false, color: "secondary", disabled: false, size: "small" })))));
|
|
13012
12624
|
}
|
|
13013
12625
|
};
|
|
13014
12626
|
SmoothlyToggleSwitchDemo.style = SmoothlyToggleSwitchDemoStyle0;
|
|
@@ -13039,7 +12651,7 @@ const SmoothlyTrigger = class {
|
|
|
13039
12651
|
result = this.disabled ? (index.h("slot", null)) : (index.h("a", { onClick: e => this.onClick(e) }, index.h("slot", null)));
|
|
13040
12652
|
break;
|
|
13041
12653
|
case "button":
|
|
13042
|
-
result = (index.h("button", { key: '
|
|
12654
|
+
result = (index.h("button", { key: '357f0adffcd20954e290da3c732552aeb9869dff', disabled: this.disabled, name: this.name }, index.h("slot", { key: '8d3e7c45806f45acf5d9c591e77bee60e96079c0' })));
|
|
13043
12655
|
break;
|
|
13044
12656
|
}
|
|
13045
12657
|
return result;
|
|
@@ -13111,40 +12723,29 @@ exports.smoothly_label = SmoothlyLabel;
|
|
|
13111
12723
|
exports.smoothly_lazy = SmoothlyLazy;
|
|
13112
12724
|
exports.smoothly_load_more = LoadMore;
|
|
13113
12725
|
exports.smoothly_modal = SmoothlyModal;
|
|
13114
|
-
exports.smoothly_next_demo = SmoothlyNextDemo;
|
|
13115
|
-
exports.smoothly_next_demo_colspan = SmoothlyNextDemoColspan;
|
|
13116
|
-
exports.smoothly_next_demo_filler_row_demo = SmoothlyNextDemoFillerRowDemo;
|
|
13117
|
-
exports.smoothly_next_demo_group = SmoothlyNextDemoGroup;
|
|
13118
|
-
exports.smoothly_next_demo_nested = SmoothlyNextDemoNested;
|
|
13119
|
-
exports.smoothly_next_demo_nested_inner = SmoothlyNextDemoNestedInner;
|
|
13120
|
-
exports.smoothly_next_demo_simple = SmoothlyNextDemoSimple;
|
|
13121
|
-
exports.smoothly_next_table = SmoothlyNextTable;
|
|
13122
|
-
exports.smoothly_next_table_body = SmoothlyNextTableBody;
|
|
13123
|
-
exports.smoothly_next_table_cell = SmoothlyNextTableCell;
|
|
13124
|
-
exports.smoothly_next_table_demo_filtered = TableDemoFiltered$1;
|
|
13125
|
-
exports.smoothly_next_table_expandable_cell = SmoothlyNextTableExpandableCell;
|
|
13126
|
-
exports.smoothly_next_table_expandable_row = SmoothlyNextTableExpandableRow;
|
|
13127
|
-
exports.smoothly_next_table_filler_row = SmoothlyNextTableFillerRow;
|
|
13128
|
-
exports.smoothly_next_table_foot = SmoothlyNextTableFoot;
|
|
13129
|
-
exports.smoothly_next_table_head = SmoothlyNextTableHead;
|
|
13130
|
-
exports.smoothly_next_table_row = SmoothlyNextTableRow;
|
|
13131
|
-
exports.smoothly_next_table_row_group = SmoothlyNextTableRowGroup;
|
|
13132
12726
|
exports.smoothly_notification = Notification;
|
|
13133
12727
|
exports.smoothly_notifier = Notifier;
|
|
13134
12728
|
exports.smoothly_spinner = SmoothlySpinner;
|
|
13135
|
-
exports.smoothly_submit = SmoothlySubmit;
|
|
13136
12729
|
exports.smoothly_summary = SmoothlySummary;
|
|
13137
12730
|
exports.smoothly_tab = SmoothlyTab;
|
|
13138
|
-
exports.smoothly_table =
|
|
13139
|
-
exports.
|
|
13140
|
-
exports.
|
|
12731
|
+
exports.smoothly_table = SmoothlyTable;
|
|
12732
|
+
exports.smoothly_table_body = SmoothlyTableBody;
|
|
12733
|
+
exports.smoothly_table_cell = SmoothlyTableCell;
|
|
12734
|
+
exports.smoothly_table_demo = SmoothlyTableDemo;
|
|
12735
|
+
exports.smoothly_table_demo_colspan = SmoothlyTableDemoColspan;
|
|
12736
|
+
exports.smoothly_table_demo_filler_row = SmoothlyTableDemoFillerRow;
|
|
13141
12737
|
exports.smoothly_table_demo_filtered = TableDemoFiltered;
|
|
13142
|
-
exports.
|
|
13143
|
-
exports.
|
|
13144
|
-
exports.
|
|
13145
|
-
exports.
|
|
13146
|
-
exports.
|
|
13147
|
-
exports.
|
|
12738
|
+
exports.smoothly_table_demo_group = SmoothlyTableDemoGroup;
|
|
12739
|
+
exports.smoothly_table_demo_nested = SmoothlyTableDemoNested;
|
|
12740
|
+
exports.smoothly_table_demo_nested_inner = SmoothlyTableDemoNestedInner;
|
|
12741
|
+
exports.smoothly_table_demo_simple = SmoothlyTableDemoSimple;
|
|
12742
|
+
exports.smoothly_table_expandable_cell = SmoothlyTableExpandableCell;
|
|
12743
|
+
exports.smoothly_table_expandable_row = SmoothlyTableExpandableRow;
|
|
12744
|
+
exports.smoothly_table_filler_row = SmoothlyTableFillerRow;
|
|
12745
|
+
exports.smoothly_table_foot = SmoothlyTableFoot;
|
|
12746
|
+
exports.smoothly_table_head = SmoothlyTableHead;
|
|
12747
|
+
exports.smoothly_table_row = SmoothlyTableRow;
|
|
12748
|
+
exports.smoothly_table_row_group = SmoothlyTableRowGroup;
|
|
13148
12749
|
exports.smoothly_tabs = SmoothlyTabs;
|
|
13149
12750
|
exports.smoothly_tabs_demo = SmoothlyTabsDemo;
|
|
13150
12751
|
exports.smoothly_theme_color = SmoothlyThemeColor;
|
|
@@ -13158,4 +12759,4 @@ exports.smoothly_toggle_switch = SmoothlyToggleSwitch;
|
|
|
13158
12759
|
exports.smoothly_toggle_switch_demo = SmoothlyToggleSwitchDemo;
|
|
13159
12760
|
exports.smoothly_trigger = SmoothlyTrigger;
|
|
13160
12761
|
|
|
13161
|
-
//# sourceMappingURL=smoothly-
|
|
12762
|
+
//# sourceMappingURL=smoothly-app_99.cjs.entry.js.map
|