smoothly 1.2.1-alpha.61 → 1.2.1-alpha.62
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/{smoothly-app_99.cjs.entry.js → smoothly-app_98.cjs.entry.js} +302 -324
- package/dist/cjs/smoothly-app_98.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 +1 -1
- package/dist/cjs/smoothly-trigger-sink.cjs.entry.js +1 -1
- package/dist/cjs/smoothly-trigger-source.cjs.entry.js +1 -1
- package/dist/cjs/smoothly.cjs.js +1 -1
- package/dist/collection/collection-manifest.json +0 -1
- package/dist/collection/components/burger/style.css +5 -5
- package/dist/collection/components/button/demo/index.js +2 -2
- package/dist/collection/components/button/demo/index.js.map +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/demo/index.js.map +1 -1
- package/dist/collection/components/icon/index.js +6 -7
- package/dist/collection/components/icon/index.js.map +1 -1
- package/dist/collection/components/icon/style.css +10 -11
- 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 +4 -4
- 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 +1 -1
- package/dist/collection/components/spinner/index.js +2 -2
- package/dist/collection/components/submit/index.js +1 -1
- package/dist/collection/components/summary/index.js +1 -1
- package/dist/collection/components/table/body/index.js +1 -1
- package/dist/collection/components/table/cell/index.js +1 -1
- package/dist/collection/components/table/demo/colspan/index.js +1 -1
- package/dist/collection/components/table/demo/filler-row/index.js +1 -1
- package/dist/collection/components/table/demo/filtered/index.js +5 -5
- package/dist/collection/components/table/demo/group/index.js +1 -1
- package/dist/collection/components/table/demo/index.js +1 -1
- package/dist/collection/components/table/demo/nested/index.js +1 -1
- package/dist/collection/components/table/demo/nested/inner/index.js +1 -1
- package/dist/collection/components/table/demo/simple/simple.js +1 -1
- package/dist/collection/components/table/expandable/cell/index.js +1 -1
- package/dist/collection/components/table/expandable/row/index.js +1 -1
- package/dist/collection/components/table/filler-row/index.js +1 -1
- package/dist/collection/components/table/foot/index.js +1 -1
- package/dist/collection/components/table/group/index.js +1 -1
- package/dist/collection/components/table/head/index.js +1 -1
- package/dist/collection/components/table/index.js +1 -1
- package/dist/collection/components/table/row/index.js +1 -1
- package/dist/collection/components/tabs/demo/index.js +1 -1
- package/dist/collection/components/tabs/index.js +1 -1
- package/dist/collection/components/tabs/tab/index.js +1 -1
- package/dist/collection/components/theme/color/index.js +1 -1
- package/dist/collection/components/theme/demo/index.js +1 -1
- package/dist/collection/components/theme/guide/index.js +8 -8
- package/dist/collection/components/theme/picker/index.js +2 -2
- package/dist/collection/components/toggle-switch/demo/index.js +1 -1
- package/dist/collection/components/toggle-switch/index.js +1 -1
- package/dist/collection/components/toggle-switch/style.css +12 -20
- 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-e02f5eef.js → p-0156d1ac.js} +14 -14
- package/dist/components/{p-e02f5eef.js.map → p-0156d1ac.js.map} +1 -1
- package/dist/components/{p-42f2126d.js → p-08ff9613.js} +4 -4
- package/dist/components/{p-42f2126d.js.map → p-08ff9613.js.map} +1 -1
- package/dist/components/{p-e966bb8a.js → p-09f490eb.js} +4 -4
- package/dist/components/{p-e966bb8a.js.map → p-09f490eb.js.map} +1 -1
- package/dist/components/{p-8f0f82cd.js → p-0a200b85.js} +4 -4
- package/dist/components/{p-8f0f82cd.js.map → p-0a200b85.js.map} +1 -1
- package/dist/components/{p-23d9ecf6.js → p-0d09457c.js} +25 -25
- package/dist/components/{p-23d9ecf6.js.map → p-0d09457c.js.map} +1 -1
- package/dist/components/{p-7448315b.js → p-0d597c0f.js} +15 -15
- package/dist/components/p-0d597c0f.js.map +1 -0
- package/dist/components/{p-bfad759f.js → p-0ddbb10b.js} +11 -11
- package/dist/components/{p-bfad759f.js.map → p-0ddbb10b.js.map} +1 -1
- package/dist/components/{p-41400859.js → p-11e5cabe.js} +37 -37
- package/dist/components/{p-41400859.js.map → p-11e5cabe.js.map} +1 -1
- package/dist/components/{p-705b4afe.js → p-1512ddfa.js} +30 -30
- package/dist/components/{p-705b4afe.js.map → p-1512ddfa.js.map} +1 -1
- package/dist/components/{p-637d2964.js → p-188fb617.js} +4 -4
- package/dist/components/{p-637d2964.js.map → p-188fb617.js.map} +1 -1
- package/dist/components/{p-95abdb03.js → p-189a3517.js} +8 -8
- package/dist/components/{p-95abdb03.js.map → p-189a3517.js.map} +1 -1
- package/dist/components/{p-49f90785.js → p-1cc8de56.js} +8 -8
- package/dist/components/{p-49f90785.js.map → p-1cc8de56.js.map} +1 -1
- package/dist/components/{p-32acfe2f.js → p-1de0fb0e.js} +2 -2
- package/dist/components/{p-32acfe2f.js.map → p-1de0fb0e.js.map} +1 -1
- package/dist/components/{p-90cfcbfc.js → p-1fe82c92.js} +14 -14
- package/dist/components/{p-90cfcbfc.js.map → p-1fe82c92.js.map} +1 -1
- package/dist/components/{p-2020cb82.js → p-21601376.js} +2 -2
- package/dist/components/{p-2020cb82.js.map → p-21601376.js.map} +1 -1
- package/dist/components/{p-461ffea2.js → p-22a5c35b.js} +7 -7
- package/dist/components/{p-461ffea2.js.map → p-22a5c35b.js.map} +1 -1
- package/dist/components/{p-eafc7555.js → p-24934ba0.js} +4 -4
- package/dist/components/p-24934ba0.js.map +1 -0
- package/dist/components/{p-7add6ea0.js → p-27fead40.js} +14 -14
- package/dist/components/{p-7add6ea0.js.map → p-27fead40.js.map} +1 -1
- package/dist/components/{p-e15e5a5d.js → p-2b457d53.js} +2 -2
- package/dist/components/{p-e15e5a5d.js.map → p-2b457d53.js.map} +1 -1
- package/dist/components/{p-fe36713e.js → p-3091ab20.js} +2 -2
- package/dist/components/{p-fe36713e.js.map → p-3091ab20.js.map} +1 -1
- package/dist/components/{p-bc324b5e.js → p-3493b852.js} +2 -2
- package/dist/components/{p-bc324b5e.js.map → p-3493b852.js.map} +1 -1
- package/dist/components/{p-a820e0e8.js → p-37e8e0b4.js} +6 -6
- package/dist/components/{p-a820e0e8.js.map → p-37e8e0b4.js.map} +1 -1
- package/dist/components/{p-ba58a227.js → p-38ff4ddd.js} +5 -5
- package/dist/components/{p-ba58a227.js.map → p-38ff4ddd.js.map} +1 -1
- package/dist/components/p-3c1569b7.js +176 -0
- package/dist/components/{p-94cb3bb9.js.map → p-3c1569b7.js.map} +1 -1
- package/dist/components/{p-305c8221.js → p-3cdc6c8b.js} +13 -13
- package/dist/components/{p-305c8221.js.map → p-3cdc6c8b.js.map} +1 -1
- package/dist/components/{p-90f56544.js → p-3ef90e87.js} +15 -15
- package/dist/components/{p-90f56544.js.map → p-3ef90e87.js.map} +1 -1
- package/dist/components/{p-2137d036.js → p-41441353.js} +4 -4
- package/dist/components/{p-2137d036.js.map → p-41441353.js.map} +1 -1
- package/dist/components/p-43bad1c0.js +175 -0
- package/dist/components/{p-59f81a89.js.map → p-43bad1c0.js.map} +1 -1
- package/dist/components/{p-96841986.js → p-479909bd.js} +7 -7
- package/dist/components/{p-96841986.js.map → p-479909bd.js.map} +1 -1
- package/dist/components/{p-f0281d58.js → p-47e5df73.js} +3 -3
- package/dist/components/{p-f0281d58.js.map → p-47e5df73.js.map} +1 -1
- package/dist/components/{p-ab4db085.js → p-49d437f4.js} +4 -4
- package/dist/components/{p-ab4db085.js.map → p-49d437f4.js.map} +1 -1
- package/dist/components/{p-bc671400.js → p-52d1d5a1.js} +6 -6
- package/dist/components/{p-bc671400.js.map → p-52d1d5a1.js.map} +1 -1
- package/dist/components/{p-24488303.js → p-5c67d11d.js} +4 -4
- package/dist/components/{p-24488303.js.map → p-5c67d11d.js.map} +1 -1
- package/dist/components/p-5e2b1c67.js +57 -0
- package/dist/components/p-5e2b1c67.js.map +1 -0
- package/dist/components/{p-be11a354.js → p-619819ae.js} +4 -4
- package/dist/components/{p-be11a354.js.map → p-619819ae.js.map} +1 -1
- package/dist/components/{p-a7980d2c.js → p-62f513b3.js} +3 -3
- package/dist/components/{p-a7980d2c.js.map → p-62f513b3.js.map} +1 -1
- package/dist/components/{p-68b77df6.js → p-65801f7e.js} +5 -5
- package/dist/components/{p-68b77df6.js.map → p-65801f7e.js.map} +1 -1
- package/dist/components/{p-bae20465.js → p-67be9571.js} +3 -3
- package/dist/components/{p-bae20465.js.map → p-67be9571.js.map} +1 -1
- package/dist/components/{p-291b57ee.js → p-68f97107.js} +13 -13
- package/dist/components/{p-291b57ee.js.map → p-68f97107.js.map} +1 -1
- package/dist/components/{p-21ba8cd0.js → p-6abf2d7c.js} +13 -13
- package/dist/components/{p-21ba8cd0.js.map → p-6abf2d7c.js.map} +1 -1
- package/dist/components/{p-a698a6b7.js → p-6e6d0815.js} +5 -5
- package/dist/components/{p-a698a6b7.js.map → p-6e6d0815.js.map} +1 -1
- package/dist/components/p-75cf720d.js +123 -0
- package/dist/components/{p-58be554d.js.map → p-75cf720d.js.map} +1 -1
- package/dist/components/{p-2193cd07.js → p-76047d98.js} +2 -2
- package/dist/components/{p-2193cd07.js.map → p-76047d98.js.map} +1 -1
- package/dist/components/{p-433d4084.js → p-7c5d155e.js} +3 -3
- package/dist/components/{p-433d4084.js.map → p-7c5d155e.js.map} +1 -1
- package/dist/components/{p-04d6a4e3.js → p-7ea55b4d.js} +3 -3
- package/dist/components/{p-04d6a4e3.js.map → p-7ea55b4d.js.map} +1 -1
- package/dist/components/{p-3fbd90ff.js → p-81e4b071.js} +15 -15
- package/dist/components/{p-3fbd90ff.js.map → p-81e4b071.js.map} +1 -1
- package/dist/components/{p-cf4e20eb.js → p-85c2a76c.js} +3 -3
- package/dist/components/{p-cf4e20eb.js.map → p-85c2a76c.js.map} +1 -1
- package/dist/components/{p-259613c8.js → p-8789a504.js} +2 -2
- package/dist/components/{p-259613c8.js.map → p-8789a504.js.map} +1 -1
- package/dist/components/{p-7d3a1edc.js → p-8abb7216.js} +5 -5
- package/dist/components/{p-7d3a1edc.js.map → p-8abb7216.js.map} +1 -1
- package/dist/components/{p-bc67259a.js → p-8cd54408.js} +7 -7
- package/dist/components/{p-bc67259a.js.map → p-8cd54408.js.map} +1 -1
- package/dist/components/{p-6963d21b.js → p-8d3eea77.js} +2 -2
- package/dist/components/{p-6963d21b.js.map → p-8d3eea77.js.map} +1 -1
- package/dist/components/{p-271384e5.js → p-91ab8d87.js} +2 -2
- package/dist/components/{p-271384e5.js.map → p-91ab8d87.js.map} +1 -1
- package/dist/components/{p-db95d66d.js → p-92144b1e.js} +5 -5
- package/dist/components/{p-db95d66d.js.map → p-92144b1e.js.map} +1 -1
- package/dist/components/{p-d305739c.js → p-9832d3b5.js} +3 -3
- package/dist/components/{p-d305739c.js.map → p-9832d3b5.js.map} +1 -1
- package/dist/components/{p-04a36eba.js → p-994fd1b4.js} +4 -4
- package/dist/components/{p-04a36eba.js.map → p-994fd1b4.js.map} +1 -1
- package/dist/components/{p-48c1e6f9.js → p-9d7780cb.js} +3 -3
- package/dist/components/{p-48c1e6f9.js.map → p-9d7780cb.js.map} +1 -1
- package/dist/components/{p-256804de.js → p-9e2029f7.js} +13 -13
- package/dist/components/{p-256804de.js.map → p-9e2029f7.js.map} +1 -1
- package/dist/components/{p-2b3160e5.js → p-a10dfe73.js} +2 -2
- package/dist/components/{p-2b3160e5.js.map → p-a10dfe73.js.map} +1 -1
- package/dist/components/{p-dd071666.js → p-a12494c3.js} +2 -2
- package/dist/components/{p-dd071666.js.map → p-a12494c3.js.map} +1 -1
- package/dist/components/p-a129dc60.js +73 -0
- package/dist/components/p-a129dc60.js.map +1 -0
- package/dist/components/p-a141fe7c.js +238 -0
- package/dist/components/{p-c57b7011.js.map → p-a141fe7c.js.map} +1 -1
- package/dist/components/{p-0f1adb3d.js → p-a4d10377.js} +2 -2
- package/dist/components/{p-0f1adb3d.js.map → p-a4d10377.js.map} +1 -1
- package/dist/components/{p-bf12e671.js → p-a669dad9.js} +11 -11
- package/dist/components/{p-bf12e671.js.map → p-a669dad9.js.map} +1 -1
- package/dist/components/{p-2faaedc8.js → p-ab1e1709.js} +7 -7
- package/dist/components/{p-2faaedc8.js.map → p-ab1e1709.js.map} +1 -1
- package/dist/components/{p-2bc57b0f.js → p-ab2e4633.js} +8 -8
- package/dist/components/{p-2bc57b0f.js.map → p-ab2e4633.js.map} +1 -1
- package/dist/components/{p-e12d35bb.js → p-abdbd635.js} +4 -4
- package/dist/components/{p-e12d35bb.js.map → p-abdbd635.js.map} +1 -1
- package/dist/components/p-abf172db.js +45 -0
- package/dist/components/{p-73e309ae.js.map → p-abf172db.js.map} +1 -1
- package/dist/components/{p-438a59fc.js → p-b4db4967.js} +14 -14
- package/dist/components/{p-438a59fc.js.map → p-b4db4967.js.map} +1 -1
- package/dist/components/{p-b92f7f7f.js → p-b84d424b.js} +12 -12
- package/dist/components/{p-b92f7f7f.js.map → p-b84d424b.js.map} +1 -1
- package/dist/components/{p-121a3877.js → p-b89242b5.js} +3 -3
- package/dist/components/p-b89242b5.js.map +1 -0
- package/dist/components/{p-b22a5b41.js → p-b9872a14.js} +2 -2
- package/dist/components/{p-b22a5b41.js.map → p-b9872a14.js.map} +1 -1
- package/dist/components/{p-0a6f27a2.js → p-b99e9582.js} +2 -2
- package/dist/components/{p-0a6f27a2.js.map → p-b99e9582.js.map} +1 -1
- package/dist/components/{p-cdeece09.js → p-bd00e096.js} +2 -2
- package/dist/components/{p-cdeece09.js.map → p-bd00e096.js.map} +1 -1
- package/dist/components/{p-5cea42bb.js → p-bd902bf1.js} +2 -2
- package/dist/components/{p-5cea42bb.js.map → p-bd902bf1.js.map} +1 -1
- package/dist/components/{p-fba7e056.js → p-c9904619.js} +4 -4
- package/dist/components/{p-fba7e056.js.map → p-c9904619.js.map} +1 -1
- package/dist/components/{p-941cca12.js → p-cbffcc9d.js} +9 -9
- package/dist/components/{p-941cca12.js.map → p-cbffcc9d.js.map} +1 -1
- package/dist/components/{p-570e8262.js → p-cce0e89e.js} +3 -3
- package/dist/components/{p-570e8262.js.map → p-cce0e89e.js.map} +1 -1
- package/dist/components/{p-7df6aaed.js → p-d3888e8f.js} +3 -3
- package/dist/components/{p-7df6aaed.js.map → p-d3888e8f.js.map} +1 -1
- package/dist/components/{p-6aa25ab9.js → p-d3bc4725.js} +15 -15
- package/dist/components/{p-6aa25ab9.js.map → p-d3bc4725.js.map} +1 -1
- package/dist/components/{p-ebe0f3b2.js → p-d4f2eec1.js} +4 -4
- package/dist/components/{p-ebe0f3b2.js.map → p-d4f2eec1.js.map} +1 -1
- package/dist/components/{p-853367ff.js → p-d77cf57f.js} +7 -7
- package/dist/components/{p-853367ff.js.map → p-d77cf57f.js.map} +1 -1
- package/dist/components/{p-b4bb3e74.js → p-d9989605.js} +2 -2
- package/dist/components/{p-b4bb3e74.js.map → p-d9989605.js.map} +1 -1
- package/dist/components/{p-5867f2a1.js → p-d9d1453e.js} +2 -2
- package/dist/components/{p-5867f2a1.js.map → p-d9d1453e.js.map} +1 -1
- package/dist/components/{p-d69de688.js → p-e28192a5.js} +3 -3
- package/dist/components/{p-d69de688.js.map → p-e28192a5.js.map} +1 -1
- package/dist/components/{p-65b429d4.js → p-e55b30b0.js} +15 -15
- package/dist/components/{p-65b429d4.js.map → p-e55b30b0.js.map} +1 -1
- package/dist/components/{p-90642fb7.js → p-ea7e5a85.js} +6 -6
- package/dist/components/{p-90642fb7.js.map → p-ea7e5a85.js.map} +1 -1
- package/dist/components/{p-6ea4a4b6.js → p-ecb1c83a.js} +43 -43
- package/dist/components/{p-6ea4a4b6.js.map → p-ecb1c83a.js.map} +1 -1
- package/dist/components/{p-8918ad9d.js → p-ecbbfbcd.js} +4 -4
- package/dist/components/{p-8918ad9d.js.map → p-ecbbfbcd.js.map} +1 -1
- package/dist/components/{p-bb9a9d24.js → p-f7f92307.js} +7 -7
- package/dist/components/{p-bb9a9d24.js.map → p-f7f92307.js.map} +1 -1
- package/dist/components/{p-e1a977af.js → p-f89d6ab1.js} +14 -14
- package/dist/components/{p-e1a977af.js.map → p-f89d6ab1.js.map} +1 -1
- package/dist/components/{p-a398630f.js → p-fa1bb361.js} +10 -10
- package/dist/components/{p-a398630f.js.map → p-fa1bb361.js.map} +1 -1
- package/dist/components/{p-6e648f09.js → p-fa2bcda4.js} +9 -9
- package/dist/components/{p-6e648f09.js.map → p-fa2bcda4.js.map} +1 -1
- package/dist/components/{p-617e63f4.js → p-fc9f4cae.js} +28 -28
- package/dist/components/{p-617e63f4.js.map → p-fc9f4cae.js.map} +1 -1
- package/dist/components/{p-04f778b7.js → p-fe705776.js} +13 -13
- package/dist/components/{p-04f778b7.js.map → p-fe705776.js.map} +1 -1
- package/dist/components/smoothly-app-demo.js +191 -197
- 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-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 +28 -28
- 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 +1 -1
- package/dist/components/smoothly-summary.js +1 -1
- package/dist/components/smoothly-tab.js +1 -1
- package/dist/components/smoothly-table-body.js +1 -1
- package/dist/components/smoothly-table-cell.js +1 -1
- package/dist/components/smoothly-table-demo-colspan.js +1 -1
- package/dist/components/smoothly-table-demo-filler-row.js +1 -1
- package/dist/components/smoothly-table-demo-filtered.js +1 -1
- package/dist/components/smoothly-table-demo-group.js +1 -1
- package/dist/components/smoothly-table-demo-nested-inner.js +1 -1
- package/dist/components/smoothly-table-demo-nested.js +1 -1
- package/dist/components/smoothly-table-demo-simple.js +1 -1
- package/dist/components/smoothly-table-demo.js +1 -1
- package/dist/components/smoothly-table-expandable-cell.js +1 -1
- package/dist/components/smoothly-table-expandable-row.js +1 -1
- package/dist/components/smoothly-table-filler-row.js +1 -1
- package/dist/components/smoothly-table-foot.js +1 -1
- package/dist/components/smoothly-table-head.js +1 -1
- package/dist/components/smoothly-table-row-group.js +1 -1
- package/dist/components/smoothly-table-row.js +1 -1
- package/dist/components/smoothly-table.js +1 -1
- package/dist/components/smoothly-tabs-demo.js +1 -1
- package/dist/components/smoothly-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-trigger-sink.js +1 -1
- package/dist/components/smoothly-trigger-source.js +1 -1
- package/dist/components/smoothly-trigger.js +1 -1
- package/dist/esm/loader.js +1 -1
- package/dist/esm/{smoothly-app_99.entry.js → smoothly-app_98.entry.js} +303 -324
- package/dist/esm/smoothly-app_98.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/esm/smoothly-submit.entry.js +1 -1
- package/dist/esm/smoothly-trigger-sink.entry.js +1 -1
- package/dist/esm/smoothly-trigger-source.entry.js +1 -1
- package/dist/esm/smoothly.js +1 -1
- package/dist/smoothly/{p-37d77190.entry.js → p-018e3f3c.entry.js} +2 -2
- package/dist/smoothly/{p-aef275e0.entry.js → p-0c10da7c.entry.js} +2 -2
- package/dist/smoothly/{p-534c56da.entry.js → p-2f60a07e.entry.js} +2 -2
- package/dist/smoothly/{p-8a7f2913.entry.js → p-69c6102d.entry.js} +2 -2
- package/dist/smoothly/{p-faea4d1c.entry.js → p-8a1d7506.entry.js} +2 -2
- package/dist/smoothly/p-b803a3c2.entry.js +2 -0
- package/dist/smoothly/p-b803a3c2.entry.js.map +1 -0
- package/dist/smoothly/{p-963b72df.entry.js → p-cdb8913e.entry.js} +2 -2
- package/dist/smoothly/p-d3024318.entry.js +2 -0
- package/dist/smoothly/smoothly.esm.js +1 -1
- package/dist/smoothly/smoothly.esm.js.map +1 -1
- package/dist/types/components/icon/demo/index.d.ts +1 -1
- package/dist/types/components/icon/index.d.ts +1 -1
- package/dist/types/components.d.ts +2 -25
- package/package.json +1 -1
- package/dist/cjs/smoothly-app_99.cjs.entry.js.map +0 -1
- package/dist/collection/components/toggle/index.js +0 -129
- package/dist/collection/components/toggle/index.js.map +0 -1
- package/dist/collection/components/toggle/style.css +0 -36
- package/dist/components/p-121a3877.js.map +0 -1
- package/dist/components/p-310690f3.js +0 -47
- package/dist/components/p-310690f3.js.map +0 -1
- package/dist/components/p-58be554d.js +0 -123
- package/dist/components/p-59f81a89.js +0 -175
- package/dist/components/p-73e309ae.js +0 -45
- package/dist/components/p-7448315b.js.map +0 -1
- package/dist/components/p-94cb3bb9.js +0 -176
- package/dist/components/p-9e758101.js +0 -57
- package/dist/components/p-9e758101.js.map +0 -1
- package/dist/components/p-bad4348e.js +0 -79
- package/dist/components/p-bad4348e.js.map +0 -1
- package/dist/components/p-c57b7011.js +0 -238
- package/dist/components/p-eafc7555.js.map +0 -1
- package/dist/components/smoothly-toggle.d.ts +0 -11
- package/dist/components/smoothly-toggle.js +0 -8
- package/dist/components/smoothly-toggle.js.map +0 -1
- package/dist/esm/smoothly-app_99.entry.js.map +0 -1
- package/dist/smoothly/p-0d394534.entry.js +0 -2
- package/dist/smoothly/p-0d394534.entry.js.map +0 -1
- package/dist/smoothly/p-cbcf6951.entry.js +0 -2
- package/dist/types/components/toggle/index.d.ts +0 -9
- /package/dist/smoothly/{p-37d77190.entry.js.map → p-018e3f3c.entry.js.map} +0 -0
- /package/dist/smoothly/{p-aef275e0.entry.js.map → p-0c10da7c.entry.js.map} +0 -0
- /package/dist/smoothly/{p-534c56da.entry.js.map → p-2f60a07e.entry.js.map} +0 -0
- /package/dist/smoothly/{p-8a7f2913.entry.js.map → p-69c6102d.entry.js.map} +0 -0
- /package/dist/smoothly/{p-faea4d1c.entry.js.map → p-8a1d7506.entry.js.map} +0 -0
- /package/dist/smoothly/{p-963b72df.entry.js.map → p-cdb8913e.entry.js.map} +0 -0
- /package/dist/smoothly/{p-cbcf6951.entry.js.map → p-d3024318.entry.js.map} +0 -0
|
@@ -164,7 +164,7 @@ export class SmoothlyForm {
|
|
|
164
164
|
await Promise.all([...this.inputs.values()].map(input => Editable.Element.type.is(input) && input.setInitialValue()));
|
|
165
165
|
}
|
|
166
166
|
render() {
|
|
167
|
-
return (h(Host, { key: '
|
|
167
|
+
return (h(Host, { key: '544cb7ab781d344afba275f3e363a7ca5e615c2e' }, h("smoothly-spinner", { key: 'ffc3e23544446c744aec87941e1f7e137e71d83e', overlay: true, hidden: !this.processing }), h("form", { key: 'ee0a5b140641775c1d55c961db46e3e630b666a8', onSubmit: !this.prevent ? undefined : e => e.preventDefault(), name: this.name }, h("fieldset", { key: 'dc7509953049315094ba44369d7c56ee22c2e511' }, h("slot", { key: 'b510be19fca9b78c6ecb3b84648f75a21fb40d97' })), h("div", { key: '985fd0b35f3664135c09bdd03f6156399a4d3d58' }, h("slot", { key: '014fd2d642d29332f9fc28298b0cdbf2d5b7956a', name: "clear" }), h("slot", { key: '55d2fd1d90b303f56e9578704780fc78b9bc9e17', name: "edit" }), h("slot", { key: '2af69ee44488e47a52cf7dff75138c16c1883ef8', name: "reset" }), h("slot", { key: 'f35a976b66dada2670d5a280d310aac518eedc75', name: "delete" }), h("slot", { key: '90b1dfac51e438c663d93218fb114a491495864f', name: "submit" })))));
|
|
168
168
|
}
|
|
169
169
|
static get is() { return "smoothly-form"; }
|
|
170
170
|
static get originalStyleUrls() {
|
|
@@ -7,7 +7,7 @@ export class SmoothlyIconDemo {
|
|
|
7
7
|
this.props = {};
|
|
8
8
|
}
|
|
9
9
|
render() {
|
|
10
|
-
return (h(Host, { key: '
|
|
10
|
+
return (h(Host, { key: '4243369b1c46749df379f00e96544fa4761a5286' }, h("h2", { key: '118123fd7ac92a6f1d2b6a78cc1fa024002b87cf' }, "Filter and Variants"), h("smoothly-form", { key: '50cf6fb15cf329f386105fced5af132e1bfe24db', onSmoothlyFormInput: e => (this.display = e.detail) }, h("smoothly-input", { key: '9d5255638f23b72f71c43cb3c2545b2ec91d77dc', name: "filter" }, "Filter"), h("smoothly-input-select", { key: '55b8e177f8ea3d3b2b189d256d372511280cbeda', name: "variant" }, h("span", { key: '7bf040f9f34f789ab6cb0ab18296bb890d29f669', slot: "label" }, "Variant"), h("smoothly-item", { key: '1ba46adbd0ff9eb9feb3096e25988c9b8130c228', value: "outline" }, "outline"), h("smoothly-item", { key: 'e55d0500bcfe1710f53cc705c26422744a14c1e1', value: "sharp" }, "sharp"), h("smoothly-input-clear", { key: '3d0134c752032fede37899736da37833dfc869de', slot: "end" }))), h("h2", { key: '1c16464c982caf23966cf682600003b7c3958dda' }, "Props"), h("smoothly-form", { key: 'cc7c7f1cfbaf5f945033509bea2af64fd6898569', onSmoothlyFormInput: e => (this.props = e.detail) }, h("smoothly-input-select", { key: '39f0f89aacf12e2bdcab0873b5246b6780319cc6', name: "color" }, h("span", { key: 'd57d920476f11816ed41492ef518f7e2270e7dbb', slot: "label" }, "Color"), Color.types.map(color => (h("smoothly-item", { value: color, color: color }, color))), h("smoothly-input-clear", { key: '9d2941451b4ce21f096f746b5be86d4eafcff263', slot: "end" })), h("smoothly-input-select", { key: '49fa93be8d22f2073ee01a5b15a0c73b983be912', name: "flip" }, h("span", { key: '2a790cdd858df40128c7ace45ed01d70deb223b8', slot: "label" }, "Flip"), h("smoothly-item", { key: 'd26a41e2dbcc737453649751ac6abbaefd945726', value: "x" }, "x"), h("smoothly-item", { key: 'afa74692c11e593ee2281f26d4687728b56621f4', value: "y" }, "y"), h("smoothly-input-clear", { key: '11055f2f865c79a8916d4494f2431aaadf440f1c', slot: "end" })), h("smoothly-input-select", { key: 'ee959c0778e35040b410009cc12f228d93343855', name: "size" }, h("span", { key: 'b40c960699e8420211c71a944452f5538622b902', slot: "label" }, "Size"), h("smoothly-item", { key: 'b47d06dfde153f3ecc50a6e0e1423d5b737adef5', value: "tiny" }, "tiny"), h("smoothly-item", { key: 'e5e432209245eabc5e95295097318c6732ea1665', value: "small" }, "small"), h("smoothly-item", { key: 'd988461ac6c04ba037a24495b91df69c4375b199', value: "medium" }, "medium"), h("smoothly-item", { key: 'c887bce6d7233eeded5690cdda843caf218a61db', value: "large" }, "large"), h("smoothly-item", { key: 'f28da514b977e3cb249abd0023c22b65b5327eca', value: "xlarge" }, "xlarge"), h("smoothly-input-clear", { key: 'a1af3707e895d0a264bf3268f514c9872ac86659', slot: "end" })), h("smoothly-input-range", { key: '9e1810de388ef5dae13436e1a9c0fa0489d9ec3b', name: "rotate", step: 1, min: -180, max: 180, value: 0 }, "Rotate", h("smoothly-input-clear", { key: 'a3ea9f84ae4f2aacbbdfa86ae1902f61a31305b9', slot: "end" }))), h("h1", { key: '93c331d11d1e08df0e161bf5858c621f7f20c203' }, "Icons"), h("div", { key: '52d373675e9910601a7427a44a4598eaa09a19cc', class: "icons" }, [
|
|
11
11
|
...Icon.Name.values
|
|
12
12
|
.filter(name => !this.display.filter || name.includes(this.display.filter))
|
|
13
13
|
.map((name) => (this.display.variant ? `${name}-${this.display.variant}` : name)),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/components/icon/demo/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,KAAK,EAAgB,CAAC,EAAE,IAAI,EAAE,KAAK,EAAE,MAAM,eAAe,CAAA;AAC9E,OAAO,EAAE,KAAK,EAAE,IAAI,EAAE,MAAM,EAAE,MAAM,gBAAgB,CAAA;AAMpD,MAAM,OAAO,gBAAgB;;QAC5B,SAAI,GAAG,CAAC,CAAA;uBAE+D,EAAE;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/components/icon/demo/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,KAAK,EAAgB,CAAC,EAAE,IAAI,EAAE,KAAK,EAAE,MAAM,eAAe,CAAA;AAC9E,OAAO,EAAE,KAAK,EAAE,IAAI,EAAE,MAAM,EAAE,MAAM,gBAAgB,CAAA;AAMpD,MAAM,OAAO,gBAAgB;;QAC5B,SAAI,GAAG,CAAC,CAAA;uBAE+D,EAAE;qBAMrE,EAAE;;IAGN,MAAM;QACL,OAAO,CACN,EAAC,IAAI;YACJ,mFAA4B;YAC5B,sEAAe,mBAAmB,EAAE,CAAC,CAAC,EAAE,CAAC,CAAC,IAAI,CAAC,OAAO,GAAG,CAAC,CAAC,MAAM,CAAC;gBACjE,uEAAgB,IAAI,EAAC,QAAQ,aAAwB;gBACrD,8EAAuB,IAAI,EAAC,SAAS;oBACpC,6DAAM,IAAI,EAAC,OAAO,cAAe;oBACjC,sEAAe,KAAK,EAAE,SAAS,cAAyB;oBACxD,sEAAe,KAAK,EAAE,OAAO,YAAuB;oBACpD,6EAAsB,IAAI,EAAE,KAAK,GAAI,CACd,CACT;YAChB,qEAAc;YACd,sEAAe,mBAAmB,EAAE,CAAC,CAAC,EAAE,CAAC,CAAC,IAAI,CAAC,KAAK,GAAG,CAAC,CAAC,MAAM,CAAC;gBAC/D,8EAAuB,IAAI,EAAE,OAAO;oBACnC,6DAAM,IAAI,EAAE,OAAO,YAAc;oBAChC,KAAK,CAAC,KAAK,CAAC,GAAG,CAAC,KAAK,CAAC,EAAE,CAAC,CACzB,qBAAe,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE,KAAK,IACvC,KAAK,CACS,CAChB,CAAC;oBACF,6EAAsB,IAAI,EAAE,KAAK,GAAI,CACd;gBACxB,8EAAuB,IAAI,EAAC,MAAM;oBACjC,6DAAM,IAAI,EAAE,OAAO,WAAa;oBAChC,sEAAe,KAAK,EAAE,GAAG,QAAmB;oBAC5C,sEAAe,KAAK,EAAE,GAAG,QAAmB;oBAC5C,6EAAsB,IAAI,EAAE,KAAK,GAAI,CACd;gBACxB,8EAAuB,IAAI,EAAE,MAAM;oBAClC,6DAAM,IAAI,EAAE,OAAO,WAAa;oBAChC,sEAAe,KAAK,EAAE,MAAM,WAAsB;oBAClD,sEAAe,KAAK,EAAE,OAAO,YAAuB;oBACpD,sEAAe,KAAK,EAAE,QAAQ,aAAwB;oBACtD,sEAAe,KAAK,EAAE,OAAO,YAAuB;oBACpD,sEAAe,KAAK,EAAE,QAAQ,aAAwB;oBACtD,6EAAsB,IAAI,EAAE,KAAK,GAAI,CACd;gBACxB,6EAAsB,IAAI,EAAC,QAAQ,EAAC,IAAI,EAAE,CAAC,EAAE,GAAG,EAAE,CAAC,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,KAAK,EAAE,CAAC;;oBAEzE,6EAAsB,IAAI,EAAE,KAAK,GAAI,CACf,CACR;YAChB,qEAAc;YACd,4DAAK,KAAK,EAAC,OAAO,IAChB;gBACA,GAAG,IAAI,CAAC,IAAI,CAAC,MAAM;qBACjB,MAAM,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC,IAAI,CAAC,OAAO,CAAC,MAAM,IAAI,IAAI,CAAC,QAAQ,CAAC,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,CAAC;qBAC1E,GAAG,CAAC,CAAC,IAAI,EAAQ,EAAE,CAAC,CAAC,IAAI,CAAC,OAAO,CAAC,OAAO,CAAC,CAAC,CAAC,GAAG,IAAI,IAAI,IAAI,CAAC,OAAO,CAAC,OAAO,EAAE,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC;gBACxF,GAAG,IAAI,CAAC,IAAI,CAAC,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC,IAAI,CAAC,OAAO,CAAC,MAAM,IAAI,IAAI,CAAC,QAAQ,CAAC,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,CAAC;aAC9F,CAAC,GAAG,CAAC,IAAI,CAAC,EAAE,CAAC,CACb,qBACC,IAAI,EAAE,IAAI,EACV,OAAO,EAAE,IAAI,eACF,IAAI,EACf,KAAK,EAAE,IAAI,CAAC,KAAK,CAAC,KAAK,EACvB,IAAI,EAAE,IAAI,CAAC,KAAK,CAAC,IAAI,EACrB,IAAI,EAAE,IAAI,CAAC,KAAK,CAAC,IAAI,EACrB,MAAM,EAAE,IAAI,CAAC,KAAK,CAAC,MAAM,EACzB,OAAO,EAAE,GAAG,EAAE;oBACb,SAAS,CAAC,SAAS,CAAC,SAAS,CAAC,IAAI,CAAC,CAAA;oBACnC,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,MAAM,CAAC,SAAS,CAAC,WAAW,IAAI,GAAG,CAAC,CAAC,CAAA;gBACvD,CAAC,GACA,CACF,CAAC,CACG,CACA,CACP,CAAA;IACF,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACD","sourcesContent":["import { Component, Event, EventEmitter, h, Host, State } from \"@stencil/core\"\nimport { Color, Icon, Notice } from \"../../../model\"\n@Component({\n\ttag: \"smoothly-icon-demo\",\n\tstyleUrl: \"./style.css\",\n\tscoped: true,\n})\nexport class SmoothlyIconDemo {\n\tpage = 0\n\n\t@State() display: { filter?: string; variant?: \"outline\" | \"sharp\" } = {}\n\t@State() props: {\n\t\tcolor?: Color\n\t\tflip?: \"x\" | \"y\"\n\t\tsize?: \"tiny\" | \"small\" | \"medium\" | \"large\" | \"xlarge\"\n\t\trotate?: number\n\t} = {}\n\t@Event() notice: EventEmitter<Notice>\n\n\trender() {\n\t\treturn (\n\t\t\t<Host>\n\t\t\t\t<h2>Filter and Variants</h2>\n\t\t\t\t<smoothly-form onSmoothlyFormInput={e => (this.display = e.detail)}>\n\t\t\t\t\t<smoothly-input name=\"filter\">Filter</smoothly-input>\n\t\t\t\t\t<smoothly-input-select name=\"variant\">\n\t\t\t\t\t\t<span slot=\"label\">Variant</span>\n\t\t\t\t\t\t<smoothly-item value={\"outline\"}>outline</smoothly-item>\n\t\t\t\t\t\t<smoothly-item value={\"sharp\"}>sharp</smoothly-item>\n\t\t\t\t\t\t<smoothly-input-clear slot={\"end\"} />\n\t\t\t\t\t</smoothly-input-select>\n\t\t\t\t</smoothly-form>\n\t\t\t\t<h2>Props</h2>\n\t\t\t\t<smoothly-form onSmoothlyFormInput={e => (this.props = e.detail)}>\n\t\t\t\t\t<smoothly-input-select name={\"color\"}>\n\t\t\t\t\t\t<span slot={\"label\"}>Color</span>\n\t\t\t\t\t\t{Color.types.map(color => (\n\t\t\t\t\t\t\t<smoothly-item value={color} color={color}>\n\t\t\t\t\t\t\t\t{color}\n\t\t\t\t\t\t\t</smoothly-item>\n\t\t\t\t\t\t))}\n\t\t\t\t\t\t<smoothly-input-clear slot={\"end\"} />\n\t\t\t\t\t</smoothly-input-select>\n\t\t\t\t\t<smoothly-input-select name=\"flip\">\n\t\t\t\t\t\t<span slot={\"label\"}>Flip</span>\n\t\t\t\t\t\t<smoothly-item value={\"x\"}>x</smoothly-item>\n\t\t\t\t\t\t<smoothly-item value={\"y\"}>y</smoothly-item>\n\t\t\t\t\t\t<smoothly-input-clear slot={\"end\"} />\n\t\t\t\t\t</smoothly-input-select>\n\t\t\t\t\t<smoothly-input-select name={\"size\"}>\n\t\t\t\t\t\t<span slot={\"label\"}>Size</span>\n\t\t\t\t\t\t<smoothly-item value={\"tiny\"}>tiny</smoothly-item>\n\t\t\t\t\t\t<smoothly-item value={\"small\"}>small</smoothly-item>\n\t\t\t\t\t\t<smoothly-item value={\"medium\"}>medium</smoothly-item>\n\t\t\t\t\t\t<smoothly-item value={\"large\"}>large</smoothly-item>\n\t\t\t\t\t\t<smoothly-item value={\"xlarge\"}>xlarge</smoothly-item>\n\t\t\t\t\t\t<smoothly-input-clear slot={\"end\"} />\n\t\t\t\t\t</smoothly-input-select>\n\t\t\t\t\t<smoothly-input-range name=\"rotate\" step={1} min={-180} max={180} value={0}>\n\t\t\t\t\t\tRotate\n\t\t\t\t\t\t<smoothly-input-clear slot={\"end\"} />\n\t\t\t\t\t</smoothly-input-range>\n\t\t\t\t</smoothly-form>\n\t\t\t\t<h1>Icons</h1>\n\t\t\t\t<div class=\"icons\">\n\t\t\t\t\t{[\n\t\t\t\t\t\t...Icon.Name.values\n\t\t\t\t\t\t\t.filter(name => !this.display.filter || name.includes(this.display.filter))\n\t\t\t\t\t\t\t.map((name): Icon => (this.display.variant ? `${name}-${this.display.variant}` : name)),\n\t\t\t\t\t\t...Icon.Logo.values.filter(name => !this.display.filter || name.includes(this.display.filter)),\n\t\t\t\t\t].map(name => (\n\t\t\t\t\t\t<smoothly-icon\n\t\t\t\t\t\t\tname={name}\n\t\t\t\t\t\t\ttoolTip={name}\n\t\t\t\t\t\t\tdata-name={name}\n\t\t\t\t\t\t\tcolor={this.props.color}\n\t\t\t\t\t\t\tflip={this.props.flip}\n\t\t\t\t\t\t\tsize={this.props.size}\n\t\t\t\t\t\t\trotate={this.props.rotate}\n\t\t\t\t\t\t\tonClick={() => {\n\t\t\t\t\t\t\t\tnavigator.clipboard.writeText(name)\n\t\t\t\t\t\t\t\tthis.notice.emit(Notice.succeeded(`Copied \"${name}\"`))\n\t\t\t\t\t\t\t}}\n\t\t\t\t\t\t/>\n\t\t\t\t\t))}\n\t\t\t\t</div>\n\t\t\t</Host>\n\t\t)\n\t}\n}\n"]}
|
|
@@ -5,7 +5,7 @@ export class SmoothlyIcon {
|
|
|
5
5
|
this.color = undefined;
|
|
6
6
|
this.fill = "solid";
|
|
7
7
|
this.name = "empty";
|
|
8
|
-
this.size =
|
|
8
|
+
this.size = undefined;
|
|
9
9
|
this.rotate = undefined;
|
|
10
10
|
this.flip = undefined;
|
|
11
11
|
this.toolTip = undefined;
|
|
@@ -41,7 +41,7 @@ export class SmoothlyIcon {
|
|
|
41
41
|
}
|
|
42
42
|
render() {
|
|
43
43
|
var _a;
|
|
44
|
-
return h(Host, { key: '
|
|
44
|
+
return h(Host, { key: '11b2bc0439710470af7ca83d814f7e3e18e5b52e', innerHTML: this.document, style: { ["--rotation"]: `${(_a = this.rotate) !== null && _a !== void 0 ? _a : 0}deg` } });
|
|
45
45
|
}
|
|
46
46
|
static get is() { return "smoothly-icon"; }
|
|
47
47
|
static get encapsulation() { return "scoped"; }
|
|
@@ -132,19 +132,18 @@ export class SmoothlyIcon {
|
|
|
132
132
|
"type": "string",
|
|
133
133
|
"mutable": false,
|
|
134
134
|
"complexType": {
|
|
135
|
-
"original": "\"tiny\" | \"small\" | \"medium\" | \"large\"",
|
|
136
|
-
"resolved": "\"large\" | \"medium\" | \"small\" | \"tiny\"",
|
|
135
|
+
"original": "\"tiny\" | \"small\" | \"medium\" | \"large\" | \"xlarge\"",
|
|
136
|
+
"resolved": "\"large\" | \"medium\" | \"small\" | \"tiny\" | \"xlarge\" | undefined",
|
|
137
137
|
"references": {}
|
|
138
138
|
},
|
|
139
139
|
"required": false,
|
|
140
|
-
"optional":
|
|
140
|
+
"optional": true,
|
|
141
141
|
"docs": {
|
|
142
142
|
"tags": [],
|
|
143
143
|
"text": ""
|
|
144
144
|
},
|
|
145
145
|
"attribute": "size",
|
|
146
|
-
"reflect": true
|
|
147
|
-
"defaultValue": "\"medium\""
|
|
146
|
+
"reflect": true
|
|
148
147
|
},
|
|
149
148
|
"rotate": {
|
|
150
149
|
"type": "number",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/components/icon/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,CAAC,EAAE,IAAI,EAAE,IAAI,EAAE,KAAK,EAAE,KAAK,EAAE,MAAM,eAAe,CAAA;AAEtE,OAAO,EAAE,IAAI,EAAE,MAAM,aAAa,CAAA;AAOlC,MAAM,OAAO,YAAY;;;oBAEc,OAAO;oBACG,OAAO
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/components/icon/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,CAAC,EAAE,IAAI,EAAE,IAAI,EAAE,KAAK,EAAE,KAAK,EAAE,MAAM,eAAe,CAAA;AAEtE,OAAO,EAAE,IAAI,EAAE,MAAM,aAAa,CAAA;AAOlC,MAAM,OAAO,YAAY;;;oBAEc,OAAO;oBACG,OAAO;;;;;;;;IAQvD,KAAK,CAAC,iBAAiB;QACtB,MAAM,IAAI,CAAC,WAAW,EAAE,CAAA;IACzB,CAAC;IAGD,KAAK,CAAC,WAAW;QAChB,IAAI,IAAI,CAAC,IAAI,IAAI,OAAO,EAAE,CAAC;YAC1B,MAAM,OAAO,GAAG,CAAC,IAAI,CAAC,aAAa,GAAG,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAA;YAC3D,IAAI,MAAM,GAAG,MAAM,OAAO,CAAA;YAC1B,IAAI,OAAO,IAAI,IAAI,CAAC,aAAa,EAAE,CAAC;gBACnC,MAAM,GAAG,MAAM,aAAN,MAAM,uBAAN,MAAM,CACZ,OAAO,CAAC,eAAe,EAAE,eAAe,EACzC,OAAO,CAAC,2BAA2B,EAAE,EAAE,EACvC,OAAO,CAAC,gBAAgB,EAAE,EAAE,CAAC,CAAA;gBAC/B,IAAI,CAAC,IAAI,CAAC,OAAO;oBAChB,MAAM,GAAG,MAAM,aAAN,MAAM,uBAAN,MAAM,CAAE,OAAO,CAAC,oBAAoB,EAAE,EAAE,CAAC,CAAA;qBAC9C,IAAI,MAAM,aAAN,MAAM,uBAAN,MAAM,CAAE,QAAQ,CAAC,SAAS,CAAC;oBACnC,MAAM,GAAG,MAAM,CAAC,OAAO,CAAC,wBAAwB,EAAE,UAAU,IAAI,CAAC,OAAO,UAAU,CAAC,CAAA;;oBAEnF,MAAM,GAAG,MAAM,aAAN,MAAM,uBAAN,MAAM,CAAE,OAAO,CAAC,iBAAiB,EAAE,YAAY,IAAI,CAAC,OAAO,YAAY,CAAC,CAAA;gBAClF,IAAI,CAAC,cAAc,CAAC,MAAM,CAAC,CAAA;YAC5B,CAAC;QACF,CAAC;;YACA,IAAI,CAAC,cAAc,EAAE,CAAA;IACvB,CAAC;IACD,cAAc,CAAC,QAAiB;QAC/B,IAAI,CAAC,QAAQ;YACZ,QAAQ,aAAR,QAAQ,cAAR,QAAQ,GACR;;SAEM,CAAA;IACR,CAAC;IAED,MAAM;;QACL,OAAO,EAAC,IAAI,qDAAC,SAAS,EAAE,IAAI,CAAC,QAAQ,EAAE,KAAK,EAAE,EAAE,CAAC,YAAY,CAAC,EAAE,GAAG,MAAA,IAAI,CAAC,MAAM,mCAAI,CAAC,KAAK,EAAE,GAAI,CAAA;IAC/F,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACD","sourcesContent":["import { Component, h, Host, Prop, State, Watch } from \"@stencil/core\"\nimport { Color, Fill } from \"../../model\"\nimport { Icon } from \"../../model\"\n\n@Component({\n\ttag: \"smoothly-icon\",\n\tstyleUrl: \"style.css\",\n\tscoped: true,\n})\nexport class SmoothlyIcon {\n\t@Prop({ reflect: true }) color: Color\n\t@Prop({ reflect: true }) fill: Fill = \"solid\"\n\t@Prop({ reflect: true }) name: Icon | \"empty\" = \"empty\"\n\t@Prop({ reflect: true }) size?: \"tiny\" | \"small\" | \"medium\" | \"large\" | \"xlarge\"\n\t@Prop({ reflect: true }) rotate?: number\n\t@Prop({ reflect: true }) flip?: \"x\" | \"y\"\n\t@Prop() toolTip?: string\n\t@State() latestPromise: Promise<string | undefined>\n\t@State() document?: string\n\n\tasync componentWillLoad() {\n\t\tawait this.nameChanged()\n\t}\n\t@Watch(\"toolTip\")\n\t@Watch(\"name\")\n\tasync nameChanged() {\n\t\tif (this.name != \"empty\") {\n\t\t\tconst promise = (this.latestPromise = Icon.load(this.name))\n\t\t\tlet result = await promise\n\t\t\tif (promise == this.latestPromise) {\n\t\t\t\tresult = result\n\t\t\t\t\t?.replace(/(?<=^<svg\\s?)/, `$& role=\"img\"`)\n\t\t\t\t\t.replace(` width=\"512\" height=\"512\"`, \"\")\n\t\t\t\t\t.replace(/stroke:#000;/gi, \"\")\n\t\t\t\tif (!this.toolTip)\n\t\t\t\t\tresult = result?.replace(/<title>.*<\\/title>/, \"\")\n\t\t\t\telse if (result?.includes(\"<title>\"))\n\t\t\t\t\tresult = result.replace(/(<title>).*(<\\/title>)/, `<title>${this.toolTip}</title>`)\n\t\t\t\telse\n\t\t\t\t\tresult = result?.replace(/(.*>)(<\\/svg>$)/, `$1<title>${this.toolTip}</title>$2`)\n\t\t\t\tthis.updateDocument(result)\n\t\t\t}\n\t\t} else\n\t\t\tthis.updateDocument()\n\t}\n\tupdateDocument(document?: string) {\n\t\tthis.document =\n\t\t\tdocument ??\n\t\t\t`<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 512 512\">\n\t\t<title>Empty</title>\n\t\t</svg>`\n\t}\n\n\trender() {\n\t\treturn <Host innerHTML={this.document} style={{ [\"--rotation\"]: `${this.rotate ?? 0}deg` }} />\n\t}\n}\n"]}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
:host[
|
|
1
|
+
:host[fill] {
|
|
2
2
|
background: none;
|
|
3
3
|
}
|
|
4
4
|
:host {
|
|
@@ -26,24 +26,23 @@
|
|
|
26
26
|
display: none;
|
|
27
27
|
}
|
|
28
28
|
:host[size=tiny] {
|
|
29
|
-
|
|
30
|
-
height: 1.2em;
|
|
29
|
+
--smoothly-icon-size: 1.2em;
|
|
31
30
|
}
|
|
32
31
|
:host[size=small] {
|
|
33
|
-
|
|
34
|
-
height: 1.4em;
|
|
32
|
+
--smoothly-icon-size: 1.4em;
|
|
35
33
|
}
|
|
36
34
|
:host[size=medium] {
|
|
37
|
-
|
|
38
|
-
height: 1.8em;
|
|
35
|
+
--smoothly-icon-size: 1.8em;
|
|
39
36
|
}
|
|
40
37
|
:host[size=large] {
|
|
41
|
-
|
|
42
|
-
height: 2.8em;
|
|
38
|
+
--smoothly-icon-size: 2.8em;
|
|
43
39
|
}
|
|
44
40
|
:host[size=xlarge] {
|
|
45
|
-
|
|
46
|
-
|
|
41
|
+
--smoothly-icon-size: 4em;
|
|
42
|
+
}
|
|
43
|
+
:host {
|
|
44
|
+
width: var(--smoothly-icon-size, 1.8em);
|
|
45
|
+
height: var(--smoothly-icon-size, 1.8em);
|
|
47
46
|
}
|
|
48
47
|
:host::slotted(svg) {
|
|
49
48
|
/* this is needed for svg to work on safari */
|
|
@@ -2,7 +2,7 @@ import { h, Host } from "@stencil/core";
|
|
|
2
2
|
import { isoly } from "isoly";
|
|
3
3
|
export class SmoothlyInputCheckboxDemo {
|
|
4
4
|
render() {
|
|
5
|
-
return (h(Host, { key: '
|
|
5
|
+
return (h(Host, { key: '10b593f084bfba8b6bae2c80e25032f8bfebf89d' }, h("h2", { key: 'd1fb2435b6ab956d1a1e41f7b889bfb1d4458d19' }, "All inputs"), h("smoothly-form", { key: '90613d1d1030240fc973f57c5ec835722b6dcf16', looks: "grid", readonly: true, action: "https://api.toiletapi.com/6b12fd2f-e896-46f9-b38f-25cf42cee4b4" }, h("smoothly-input", { key: '2e9c84db6cbc753af0f899408ebddcad7488b239', readonly: true, name: "First Name", value: "John" }, "First name"), h("smoothly-input", { key: '008538407fcb824401d30cbd369978f1493dfe37', name: "Last name", value: "Doe" }, "Last name", h("smoothly-input-clear", { key: 'ba0c3efe4b64a40e3befec00b4ce3d70cc7c5b8b', size: "icon", slot: "end" })), h("smoothly-input", { key: 'b296fc689acde789a6e234200de07129d0fe126c', type: "phone", name: "Phone", value: "777888999" }, "Phone", h("smoothly-input-reset", { key: '32f2a5d4b29b1675cb1a6ddb46021eef8881ec39', size: "icon", slot: "end" })), h("smoothly-input-radio", { key: '54412070a2783b4505066fb1b8c5287d8bcda05b', clearable: true, name: "radioFirstInput" }, h("p", { key: '4de14c44ebeeca6180aaaebd963f779ad5a8388f', slot: "label" }, "Clearable"), h("smoothly-input-radio-item", { key: 'a7219fcefa566821ac081afb25ef56e9abd7c2dc', slot: "options", value: "first" }, "Label 1"), h("smoothly-input-radio-item", { key: '80ee4a0d8abd2acc0fe4059804af976fb2a01293', selected: true, slot: "options", value: "second" }, "Label 2"), h("smoothly-input-radio-item", { key: 'e1fe95069556daa400d17c9f4bbacdaf4281d497', slot: "options", value: "third" }, "Label 3")), h("smoothly-input-color", { key: '7bc5367d04f85b00716a8d2d8a6dd4d72ab7a05d', name: "color", value: "#479f56", output: "rgb" }, "Color"), h("smoothly-input-select", { key: '9f8310aba9f717da51ef41a4e75a486b9c0ca878', menuHeight: "7.5items", placeholder: "Select...", multiple: true, name: "select-month" }, h("label", { key: 'd42ce059112550ce32da552f8c7355f9d95d98eb', slot: "label" }, "Month"), h("smoothly-item", { key: 'e794eccf7831c7168c7c15f2e1050c52590a3353', value: "1" }, "January"), h("smoothly-item", { key: '568c857360fa631fdc9242a90831ea1023024972', value: "2" }, "February"), h("smoothly-item", { key: '4d60b4d2fb1b4700d9975f4f66933836ac81832b', value: "3" }, "March"), h("smoothly-item", { key: 'b20d5b365c8f68ed62f7066c9e82ad523ce33785', value: "4" }, "April"), h("smoothly-item", { key: '5606f83bfb31d613177749d29ba5350be81a8fcf', value: "5" }, "May"), h("smoothly-item", { key: '3dbbf060dde6e066e6c2561150b7637b1fe7f027', value: "6" }, "June"), h("smoothly-item", { key: '89da7a0f64ce6eb16c5c53ece0f2e62dc5721156', value: "7" }, "July"), h("smoothly-item", { key: '8afc1192bd23b5136854cd6717cf8e9fc7f4f7bf', value: "8" }, "August"), h("smoothly-item", { key: '776cf40a1a87bdac4fad827a684b3f48d36b9ce4', value: "9" }, "September"), h("smoothly-item", { key: '953e77db5fa54c9120fa3c5dd727d423e6533df8', value: "10" }, "October"), h("smoothly-item", { key: '85a2e0583c52dec1a2c924ab66da038c054c929e', value: "11" }, "November"), h("smoothly-item", { key: '63a9e234b7f9cde1b036f318fb5c0dd7a2114d62', value: "12" }, "December"), h("smoothly-input-clear", { key: 'adf55cc7af2ee3f31434569e6c97c8cd9943cbc7', size: "icon", slot: "end" })), h("smoothly-input-select", { key: '0259cd6a275181848b6877f8135599703ff5fdbe', name: "select-icon", clearable: false, showSelected: false }, h("smoothly-item", { key: 'b2d5619aa47a0eb8eab6d0401c18cc038a79996d', value: "folder", selected: true }, h("smoothly-icon", { key: '5296365a8a4d0abe9357d0d383356e612e82bae2', size: "small", name: "folder-outline" })), h("smoothly-item", { key: '7f43e4002c3a2bb801b5c95aeb80b86951c48c00', value: "camera" }, h("smoothly-icon", { key: '2f381cb3ad8b4ecb27fa4308b2ac736263357d9c', size: "small", name: "camera-outline" }))), h("smoothly-input-checkbox", { key: '6b616cf5ddd4d0fa85909cedc1aa2f29522d3870', name: "checkbox" }, "Check the box"), h("smoothly-input-checkbox", { key: '83d71865567648d6250c8c17428fa13a3671f3a0', name: "checkbox2", checked: true }, "Check the box 2"), h("smoothly-input-date-range", { key: '7c773d82eab8d4840db92f6c80c5ec0ed15508a6', start: isoly.Date.now(), end: isoly.Date.now() }), h("smoothly-input-date", { key: '7c826477335785771e0e9cf82535974f57dac774', name: "date" }, "Date", h("smoothly-input-clear", { key: '8b2f71ffce261fda1b19ce691fe00f772b36f477', slot: "end" })), h("smoothly-input-range", { key: 'df376f29f6c5a34451016e7c1f2d4be64dc96f69', step: 1, name: "range3", value: 20000 }, "Select"), h("smoothly-input", { key: '990b7ceb7acad59e3b283d2b9f4d0a7cc16a33bb', name: "pets.0.name" }, "First Pet's Name"), h("smoothly-input-range", { key: 'e0e2134aa0d0ecd2ba71c404474ea9440eefd48b', name: "pets.0.age", max: 100, step: 1 }, "First Pet's Age"), h("smoothly-input", { key: 'a21caf4968868b89238f66e15365d962ea8054d1', name: "pets.1.name" }, "Second Pet's Name"), h("smoothly-input-range", { key: '82426e22efd211781ef035ef3b6f87919d8aacc4', name: "pets.1.age", max: 100, step: 1 }, "Second Pet's Age"), h("smoothly-input", { key: 'a0b050a71ee0f8e91c7b3b1f14da556524981d07', name: "pets.2.name" }, "Third Pet's Name"), h("smoothly-input-range", { key: '99056a74c404f8c3a51013407d344981392f7f91', name: "pets.2.age", max: 100, step: 1 }, "Third Pet's Age"), h("smoothly-input-file", { key: 'd67e67c5ab0251bee48042b319af3417bc5287c2', name: "profile", placeholder: "Click or drag your profile picture here..." }, h("span", { key: '4a5923b6b1423c293f722f1cb8c124d3a762e264', slot: "label" }, "Profile"), h("smoothly-icon", { key: 'e3e352b1b27e28681203f1174e70fd8cb87380f2', slot: "button", name: "person-circle-outline", size: "tiny", fill: "default" })), h("smoothly-input-clear", { key: '3c33d1b6bdd5ce12b4a2bf3349319ae740515c80', fill: "default", type: "form", color: "warning", slot: "clear", size: "icon", shape: "rounded" }), h("smoothly-input-edit", { key: '91063cb06f5c3686ed471dfae9f145ba8ee5f699', fill: "default", type: "form", color: "tertiary", slot: "edit", size: "icon", shape: "rounded" }), h("smoothly-input-reset", { key: 'f5425341ad97afd73e7298c83da789099a2d02be', fill: "default", type: "form", color: "warning", slot: "reset", size: "icon", shape: "rounded" }), h("smoothly-input-submit", { key: '9ec02acf768fd6515008fa5a8175981708d4eb97', delete: true, slot: "delete", color: "danger", size: "icon", shape: "rounded" }), h("smoothly-input-submit", { key: '5302e168ffea2b6a628b747e921a40bbab957cb5', fill: "default", color: "success", slot: "submit", size: "icon", shape: "rounded" }))));
|
|
6
6
|
}
|
|
7
7
|
static get is() { return "smoothly-input-checkbox-demo"; }
|
|
8
8
|
static get encapsulation() { return "scoped"; }
|
|
@@ -60,7 +60,7 @@ export class SmoothlyInputCheckbox {
|
|
|
60
60
|
!this.disabled && !this.readonly && (this.checked = !this.checked);
|
|
61
61
|
}
|
|
62
62
|
render() {
|
|
63
|
-
return (h(Host, { key: '
|
|
63
|
+
return (h(Host, { key: '99d1fd7c03341e1f006d3e93528b3774b7e26644', 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(); } }, h("input", { key: 'e31ef4946a26c9d7dfc36a72e368cd882e8ddfc8', type: "checkbox", checked: this.checked }), this.checked && h("smoothly-icon", { key: '01d2fc86042120ed14744240048b0d86b3ea6b2e', name: "checkmark-outline", size: "tiny" }), h("label", { key: '0064444ff31f2fa701744532c5341c631ef8c60b' }, h("slot", { key: '8e0c6756be0053328b93f3ae6ba9b99b3bbd1691' }))));
|
|
64
64
|
}
|
|
65
65
|
static get is() { return "smoothly-input-checkbox"; }
|
|
66
66
|
static get encapsulation() { return "scoped"; }
|
|
@@ -39,7 +39,7 @@ export class SmoothlyInputClear {
|
|
|
39
39
|
}
|
|
40
40
|
render() {
|
|
41
41
|
var _a;
|
|
42
|
-
return (h(Host, { key: '
|
|
42
|
+
return (h(Host, { key: 'c2fef10f6a93c77be53cd2cbb68ad5cb248ff111', title: this.tooltip }, h("smoothly-button", { key: '36519257ceb0a390edbb5efb03f93bda9817e1c0', disabled: this.disabled, size: this.size, type: "button", shape: this.shape, expand: this.expand, color: this.color, fill: (_a = this.fill) !== null && _a !== void 0 ? _a : (this.type == "input" ? "clear" : undefined) }, h("slot", { key: '9626ceb7c5b85fe073768c4066190c1312914cee' }), h("smoothly-icon", { key: '0b6bd22cd03a708f555491ac7e66ebddbfb871aa', name: "close", size: "tiny" }))));
|
|
43
43
|
}
|
|
44
44
|
static get is() { return "smoothly-input-clear"; }
|
|
45
45
|
static get encapsulation() { return "scoped"; }
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { h, Host } from "@stencil/core";
|
|
2
2
|
export class SmoothlyInputColorDemo {
|
|
3
3
|
render() {
|
|
4
|
-
return (h(Host, { key: '
|
|
4
|
+
return (h(Host, { key: '6a345592a635a49d5c9bd4fa7cbce4d9bb31c1a3' }, h("h2", { key: '43f287ca8e468b9375be66b2d67b7216473dcf07' }, "Color"), h("smoothly-input-color", { key: 'ebb416f1268f49d83ace12f1720ea8871d679f91', name: "color" }, "Choose color")));
|
|
5
5
|
}
|
|
6
6
|
static get is() { return "smoothly-input-color-demo"; }
|
|
7
7
|
static get styles() { return "style.css"; }
|
|
@@ -138,7 +138,7 @@ export class SmoothlyInputColor {
|
|
|
138
138
|
}
|
|
139
139
|
render() {
|
|
140
140
|
var _a, _b, _c, _d, _e, _f;
|
|
141
|
-
return (h(Host, { key: '
|
|
141
|
+
return (h(Host, { key: '670a7476f048858e2383bf790be29662c2b9d6e8', style: {
|
|
142
142
|
"--hexCode": this.value,
|
|
143
143
|
"--rgb-r": `${Math.round((_a = this.rgb.r) !== null && _a !== void 0 ? _a : 0)}`,
|
|
144
144
|
"--rgb-g": `${Math.round((_b = this.rgb.g) !== null && _b !== void 0 ? _b : 0)}`,
|
|
@@ -147,7 +147,7 @@ export class SmoothlyInputColor {
|
|
|
147
147
|
"--hsl-s": `${Math.round((_e = this.hsl.s) !== null && _e !== void 0 ? _e : 0)}%`,
|
|
148
148
|
"--hsl-l": `${Math.round((_f = this.hsl.l) !== null && _f !== void 0 ? _f : 0)}%`,
|
|
149
149
|
"--element-height": `${this.element.clientHeight}px`,
|
|
150
|
-
} }, h("smoothly-input", { key: '
|
|
150
|
+
} }, h("smoothly-input", { key: '335e0d548863c95bd9ea825b96f6e44b87e088ed', 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])) }, h("slot", { key: 'b0dd625eb8c4a8a1d390b0f16fcf04ff3b0f3a20' })), h("div", { key: '9c2dd79e29f239ed5ae725a5277897b6f1390c0e', class: "color-sample" }), h("smoothly-icon", { key: '1f197df4c01bc228698f6a397f4bb6c659a30e9d', color: this.color, name: "options-outline", size: "small", onClick: () => !this.readonly && this.openDropdown() }), h("div", { key: '1cdf0dde9a954956d406ac8df83911c3f412a7c5' }, h("slot", { key: '0bc12b808f76f1f4c05ef072d6fb51fe7ffffdac', name: "end" })), this.open && !this.readonly && (h("div", { key: '3994288cb82a9596fdd9efb022f8270326cd8e39', class: "rgb-sliders" }, h("smoothly-toggle-switch", { key: '640004c0237e5fc60edf66b413df444c8412c70b', title: `${this.sliderMode === "rgb" ? "To HSL" : "To RGB"}`, onSmoothlyToggleSwitchChange: event => this.handleSwitchMode(event), size: "tiny", checkmark: false, selected: this.sliderMode === "hsl" }), Object.entries(this.rgb).map(([key, value]) => (h("smoothly-input-range", { style: this.sliderMode != "rgb" ? { display: "none" } : {}, name: key, min: 0, max: 255, color: undefined, type: "text", value: value, step: 1, outputSide: "right", onSmoothlyInput: event => this.sliderInputHandler(event), label: key.toUpperCase() }))), Object.entries(this.hsl).map(([key, value]) => (h("smoothly-input-range", { style: this.sliderMode != "hsl" ? { display: "none" } : {}, name: key, min: 0, max: key === "h" ? 359 : 1, color: undefined, type: key === "s" || key === "l" ? "percent" : "text", value: (key === "s" || key === "l") && value ? value / 100 : value, step: key === "s" || key === "l" ? 0.01 : 1, outputSide: "right", onSmoothlyInput: event => this.sliderInputHandler(event), label: key.toUpperCase() })))))));
|
|
151
151
|
}
|
|
152
152
|
static get is() { return "smoothly-input-color"; }
|
|
153
153
|
static get encapsulation() { return "scoped"; }
|
|
@@ -78,13 +78,13 @@ export class SmoothlyInputDate {
|
|
|
78
78
|
event.stopPropagation();
|
|
79
79
|
}
|
|
80
80
|
render() {
|
|
81
|
-
return (h(Host, { key: '
|
|
81
|
+
return (h(Host, { key: '57449661e55d63d143b194d62df4171e03b194a3' }, h("smoothly-input", { key: '306bb8ce36b5e7834699eb945b082b447a244a9b', 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 => {
|
|
82
82
|
e.stopPropagation();
|
|
83
83
|
this.value = e.detail[this.name];
|
|
84
|
-
} }, h("slot", { key: '
|
|
84
|
+
} }, h("slot", { key: '3277e1e95cf3e371a29e25d44accfea79a6a6ca5' })), h("span", { key: '60daa00cbbf4afef50cfda2a5db9647981e1372b', class: "icons" }, h("slot", { key: '9b20a8d21cc5497f9617ed6dc106cb2e9b44e4cc', name: "end" })), this.open && !this.readonly && (h("nav", { key: '6cdb787d6ba2d2bfdb5da488986ecb8da84927bb' }, h("smoothly-calendar", { key: '41972f350405eacc0d2f726e24d81968bb1b611c', doubleInput: false, value: this.value, onSmoothlyValueChange: event => {
|
|
85
85
|
this.value = event.detail;
|
|
86
86
|
event.stopPropagation();
|
|
87
|
-
}, max: this.max, min: this.min }, h("div", { key: '
|
|
87
|
+
}, max: this.max, min: this.min }, h("div", { key: 'c9ca20ed5c818887ea7ba619db55ebb78bc9082d', slot: "year-label" }, h("slot", { key: 'd33a0714715e677a3fbc6b9843038d5114c55862', name: "year-label" })), h("div", { key: '32b23e3d8996d3d16f1f09e642fbf6fb6853efda', slot: "month-label" }, h("slot", { key: '563f5174260311dbe25962ec0673f66f9c9a3fe0', name: "month-label" })))))));
|
|
88
88
|
}
|
|
89
89
|
static get is() { return "smoothly-input-date"; }
|
|
90
90
|
static get encapsulation() { return "scoped"; }
|
|
@@ -91,12 +91,12 @@ export class SmoothlyInputDateRange {
|
|
|
91
91
|
}
|
|
92
92
|
render() {
|
|
93
93
|
const locale = navigator.language;
|
|
94
|
-
return (h(Host, { key: '
|
|
94
|
+
return (h(Host, { key: '10617daa1231da0652830f0a4c123429812de8a0', tabindex: 0 }, h("section", { key: '7e2d1cf85c16d258b415ac53be0d94ab39d6191d', onClick: () => !this.readonly && (this.open = !this.open) }, h("smoothly-input", { key: '89a82d7674433af8cfb2c82137ac02006ded2d1b', type: "text", name: "dateRangeInput", readonly: this.readonly, value: this.start && this.end
|
|
95
95
|
? `${tidily.format(this.start, "date", locale)} — ${tidily.format(this.end, "date", locale)}`
|
|
96
96
|
: undefined, invalid: this.invalid, placeholder: this.placeholder, showLabel: this.showLabel, onSmoothlyInput: e => {
|
|
97
97
|
e.stopPropagation();
|
|
98
98
|
this.inputHandler(e.detail);
|
|
99
|
-
} }, h("slot", { key: '
|
|
99
|
+
} }, h("slot", { key: '1db498c4190f6154db7f89ceb0bacc4c70034b05' }))), h("span", { key: '86290b59033e9565a969aa8cef3a75800b51439e', class: "icons" }, h("slot", { key: '803e5b3556ff808be5bbd0a7f892663d36b2cf6f', name: "end" })), this.open && (h("nav", { key: '790f4a4ab812fae1fd037c7cf831d0f4cea0e5cd' }, h("smoothly-calendar", { key: '956867c0184cd71d3e23b02af8a5c95e2a10e886', doubleInput: true, onSmoothlyValueChange: e => e.stopPropagation(), onSmoothlyStartChange: e => {
|
|
100
100
|
e.stopPropagation();
|
|
101
101
|
this.start = e.detail;
|
|
102
102
|
}, onSmoothlyEndChange: e => {
|
|
@@ -6,14 +6,14 @@ export class SmoothlyInputDemo {
|
|
|
6
6
|
this.alphanumeric = "!@##";
|
|
7
7
|
}
|
|
8
8
|
render() {
|
|
9
|
-
return (h(Host, { key: '
|
|
9
|
+
return (h(Host, { key: '51f4aee40c6d4fd30250a99a33a4c871dbee07df' }, h("smoothly-input-demo-standard", { key: 'ac59b052dfc234d46b5d7ebeef5b6854ecef440e' }), h("div", { key: '4ddfea7ef3c9fecc5bf78fe7722c80c2f8fd909e', class: "inputs" }, h("h2", { key: 'e2351bb6192e23f3fe206eb127d8a5cff5b8a3b1' }, "Calendar"), h("smoothly-input-date", { key: '64cc4d64b575a915b96fe4f4320aa0e6e50c5878', name: "some-date" }, "Calendar"), h("h2", { key: 'e6c93ff26dd6ddf0c20decaac5afe5f2b4a3ddfb' }, "Date Range"), h("smoothly-input-date-range", { key: '57cc830b6f2b02b4fabb3ae963c218bd532ba433', name: "testing", start: isoly.Date.now(), end: isoly.Date.nextMonth(isoly.Date.now()), min: "2021-10-01", max: "2025-01-31" }), h("smoothly-input-date-range", { key: 'fdaf5c97a3e958a1711e3a72df10d26f049b4b06', name: "testing", start: isoly.Date.now(), end: isoly.Date.nextMonth(isoly.Date.now()), min: "2021-10-10", max: "2024-12-30" }, h("smoothly-input-reset", { key: 'fc80bf6ef0faf3bc501bbc3e235a1990e0a9f8ea', slot: "end", size: "icon" })), h("smoothly-input-date-range", { key: '3e761321bcfcfd824e657f7eee0bb6d2e78e485e', looks: "grid", start: isoly.Date.now(), end: isoly.Date.nextMonth(isoly.Date.now()), min: "2021-10-10", max: "2025-12-30", showLabel: false, style: {
|
|
10
10
|
"--smoothly-input-border-radius": "0.5rem",
|
|
11
|
-
} }, h("smoothly-input-clear", { key: '
|
|
11
|
+
} }, h("smoothly-input-clear", { key: '5498fe9bd23f5f0aa3bc1564677cd8527c3f216d', slot: "end", size: "icon" })), h("h2", { key: 'e1cd9a2f933ace9b8654a16f8a4b63257c0720ea' }, "Date"), h("smoothly-input-date", { key: 'c402077b09b215d29f2a39a2966129b66778bbf6' }, "Date"), h("smoothly-input-date", { key: '348a3b47233f5a297818801d8342f397d985a34d', showLabel: false, value: "2021-10-28", max: "2021-12-30", min: "2021-10-10" }, "Date"), h("smoothly-input-date", { key: '34dcb99153c016b5612ff0b94a7e22344ead452e', value: "2021-10-28" }, "Date", h("smoothly-input-reset", { key: '51225d9833f9cff119d70e073d57e22a3c9ab6b7', slot: "end", size: "icon" })), h("smoothly-input-date", { key: 'a8e0d841589a7835b7aa61e73d6f26402375ce02', value: "2021-10-28" }, "Date", h("smoothly-input-clear", { key: '7c30f983577e754c64eddbbcba405ff88ffab967', slot: "end", size: "icon" })), h("h2", { key: 'ed29c97bfa01d94b769f2b5443a34a0ec2cc81f1' }, "Select"), h("div", { key: '3f02595af663b605a0cbf7ff468ad88db47a7d59', class: "select-div" }, h("smoothly-input-select", { key: '6fa227e9ed5b0b7783a02125d449c63e3e7cfeb3', name: "select-dessert", looks: "border" }, h("label", { key: '25fa5c82c38615865eec7d110e6d0dcf44c81a4a', slot: "label" }, "Select with clear button"), h("smoothly-item", { key: 'ac813fdf89c73912582dc5991fb1dc2e2ce1fb14', value: "1" }, "Ice cream"), h("smoothly-item", { key: 'fa5192b5eb35ff78615cdef32c9520d6a6ef76e0', value: "2" }, "Sponge cake"), h("smoothly-item", { key: 'ff645106190846ec3eb20be801aa181bf10fb298', value: "3", disabled: true }, "Disabled Item"), h("smoothly-item", { key: 'b44e0e0890947c152f2bbacb7a2875acbdf54518', value: "4" }, "Cookie"), h("smoothly-item", { key: '861d5923d90ea8b38bdcae05c978c0e00d137917', value: "5" }, "Croissant"), h("smoothly-item", { key: '56ae54fce385dc55783844eec020aa90af651aeb', value: "6" }, "Chocolate fondue"), h("smoothly-input-clear", { key: 'b02a524509e0e4cbfc3a03fb639c83ee27a71850', size: "icon", slot: "end" })), h("smoothly-input-select", { key: '93208005940d683db4dc4f663438aa57c787c0b2', multiple: true, name: "select-dessert-multiple", looks: "border" }, h("label", { key: '7afee6b3ace710bec7f7790fc0d8d153a2e816a0', slot: "label" }, "Select multiple with reset button"), h("smoothly-item", { key: 'fd35e1647fb441226e5f956454297cd9bc561445', value: "ice cream" }, "Ice cream"), h("smoothly-item", { key: '3acddb1b859f8e48fe686662cca517179e5d1a72', value: "sponge cake" }, "Sponge cake"), h("smoothly-item", { key: '961d256786f4edd9171190ae0d458197306929c7', selected: true, value: "cookie" }, "Cookie"), h("smoothly-item", { key: 'cb2aa0a7c2ac196c3a21517e1eb7832346314174', value: "croissant" }, "Croissant"), h("smoothly-item", { key: '0b2b13a5a83f8078b60ba2e0cae32479f208f2bf', selected: true, value: "chocolate fondue" }, "Chocolate fondue"), h("smoothly-input-reset", { key: '32eb07a7229c9f90890057f1a8ae0abc7cb810be', size: "icon", slot: "end" })), h("smoothly-input-select", { key: '48f36f4dc49fd910b3ac5ca9a6920fecde5a4117', name: "spirit-animals", looks: "border", mutable: true }, h("label", { key: '1dc701cc862d2ca1f200f903b15016fac25b7d1a', slot: "label" }, "Select or add new options"), h("smoothly-item", { key: '48327f5013baccf6bbbec4ae3225646d40b96384', value: "manatee" }, "Manatee"), h("smoothly-item", { key: '14b5652ebb2ab2c9f9efe069dc80f9e999297420', selected: true, value: "cthulu" }, "Cthulu")), h("smoothly-input-select", { key: 'ffbebfb60bf5e643c4298395b652e478a1f782e5', name: "select-icon", clearable: false, showSelected: false }, h("smoothly-item", { key: '6794446769b476efa03e0536bd9d80e8d816be25', value: "folder", selected: true }, h("smoothly-icon", { key: 'bd8c1f88ea016ad705b128eddc0199caa159a64f', size: "small", name: "folder-outline" })), h("smoothly-item", { key: 'e6357d8a92151fb7e8d6a8c38ca3f8f401fbd0db', value: "camera" }, h("smoothly-icon", { key: '253786f8f4c60a8565c40a2b6b316b2bbaa5f72e', size: "small", name: "camera-outline" }))), h("smoothly-input-select", { key: 'a85cabd287125fc7868360e8fc406e2b256d01a6', ordered: true, menuHeight: "7.5items", placeholder: "Select...", name: "select-month" }, h("label", { key: 'db93308d09a47a4b6e394a18395fac5249ee0899', slot: "label" }, "Alphabet ordered select"), Array.from({ length: 26 })
|
|
12
12
|
.map((_, i) => String.fromCharCode(i + 65))
|
|
13
|
-
.map(char => (h("smoothly-item", { value: char, selected: char == "H" }, char)))), h("smoothly-input-select", { key: '
|
|
13
|
+
.map(char => (h("smoothly-item", { value: char, selected: char == "H" }, char)))), h("smoothly-input-select", { key: '8d5c0b232dd500dd359c0fc8f2b0a92a6a521bcb', multiple: true, menuHeight: "7.5items", placeholder: "Select...", name: "select-month" }, h("label", { key: '8b9175106a63bca1ea5bc819d9843773c10d830e', slot: "label" }, "Month multiple select"), h("smoothly-item", { key: 'a7a2c4509f5343103035ad2077e9127bb1228a8d', value: "1" }, "January"), h("smoothly-item", { key: '98831946e62fa33e863884cebc66973122ce82dd', value: "2" }, "February"), h("smoothly-item", { key: '3a64a70c78e4f9eadcb2ee41c580fe7ea7785b24', value: "3" }, "March"), h("smoothly-item", { key: '470ef2574219e5303888cae46466a0f800a11039', value: "4" }, "April"), h("smoothly-item", { key: '98fb61b1abbcc49254c5e507f9e8c5cf6b52b623', value: "5" }, "May"), h("smoothly-item", { key: '763c4cbe3738ae5294441b57f0d787992d119d05', value: "6" }, "June"), h("smoothly-item", { key: '40638da7cf970dfe3a12fc754e9f35735bf525e0', value: "7" }, "July"), h("smoothly-item", { key: '04022676952f4c3bc7c3438805963d2c5f75c757', value: "8" }, "August"), h("smoothly-item", { key: 'b8b87515bf851056dd050662c4fdfe025a68a776', value: "9" }, "September"), h("smoothly-item", { key: 'ba586667d48408aa3d68b344858426463d60bb05', value: "10" }, "October"), h("smoothly-item", { key: '04c17bafc1ce2274ab4e8633ceb47406cc0dc0fe', value: "11" }, "November"), h("smoothly-item", { key: 'd3aa3783f8a743ad95aaafffd5729648c508ff3b', value: "12" }, "December"))), h("h2", { key: 'a9990b1f07ba34b59b12bd54effacbadfbea3c65' }, "Duration"), h("smoothly-input", { key: '92aa6ba1302c1c34b77a70d29714712c2be3068c', name: "duration", type: "duration", placeholder: "hh:mm", value: this.duration, onSmoothlyInput: e => (this.duration = e.detail.duration) }, "Duration"), h("smoothly-input", { key: 'd2047bac99e33c9f737bd2c4e3900f855baa9999', name: "duration", type: "duration", value: this.duration, placeholder: "-hh:mm", onSmoothlyInput: e => {
|
|
14
14
|
const duration = e.detail.duration;
|
|
15
15
|
this.duration = duration;
|
|
16
|
-
} }, "Duration"), h("h2", { key: '
|
|
16
|
+
} }, "Duration"), h("h2", { key: '283a6152257e6c7c68e5b5713c860c1877d65f24' }, "Integer with Min/Max"), h("smoothly-input", { key: '01494df3d52b16246cea53b17f2924be03fcd45d', name: "days", type: "integer", min: 0, max: 365 }, "Days per year (0-365)"), h("smoothly-input", { key: '92760df5d824d83cfcabfcbb9c3d3ec14dc7b5f7', name: "hour", type: "integer", min: 0, max: 23 }, "Hours per day (0-23)"), h("smoothly-input", { key: '2b91b33d85c5a8060910c5c113bf86d8025d4258', name: "minute", type: "integer", min: 0, max: 59 }, "Minutes per hour (0-59)"), h("smoothly-input", { key: '753749c84e0a09a6bb22381e82b3db8fe54309f0', name: "minute", type: "integer", min: 18, max: 120 }, "Age (18-120)"), h("h2", { key: '5f4260798c795fe73e9243f1701296aa572409f0' }, "Invalid text with warning icon and tooltip"), h("smoothly-input", { key: '79f1faf413093fa4688f3651d64e285828129022', name: "alphanumeric", invalid: !/^[a-zA-Z0-9]+$/.test(this.alphanumeric), errorMessage: "Only alphanumeric allowed", value: this.alphanumeric, onSmoothlyInput: e => (this.alphanumeric = e.detail.alphanumeric) }, "Alphanumeric"), h("h2", { key: '5a32fcb9c6a6fb1339195ebbdfb5c6ac8e186f5e' }, "Identifiers"), h("smoothly-input", { key: 'e495ce716e08285f08fcb66de94b6e8499f04443', type: "identifier-code" }, "Code"), h("smoothly-input", { key: '27ae27bec80bc7e45d36165d7eaf625cd3f16733', type: "identifier-attribute" }, "Attribute"), h("smoothly-input", { key: '63d4ec8ed784eb0a4ea3fd03468cc0d3017c2c87', type: "identifier-snake" }, "Snake"), h("smoothly-input", { key: '262be226d93f8a826221ee7c69b11b48271ed7b6', type: "identifier-pascal" }, "Pascal"), h("smoothly-input", { key: '9aa3a103dda1203be74a1ed95cabfe0d5b6b338b', type: "identifier-camel" }, "Camel"), h("h2", { key: 'cecf5ca7e639cbcda0914703672c053d3c8ce59e' }, "Input Alternatives"), h("smoothly-input", { key: '1fd87c7537064f3ad713733d39be58f1199293ad', type: "text", name: "name.last", onSmoothlyChange: e => console.log("smoothly change event") }, h("smoothly-icon", { key: '55cb2bdaa096df6a1ca2ec3aba6ba49279cc31d3', name: "checkmark-circle", slot: "start" }), "First Name"), h("smoothly-input", { key: '402b8c49765021b02f5a4b360ec58bb65f6dd8a2', type: "text", name: "name.first", onSmoothlyChange: e => console.log("smoothly change event") }, "Last Name", h("smoothly-icon", { key: '501dcf174eb7f333491bb451a8e192e15e72805a', name: "checkmark-circle", slot: "end" })), h("smoothly-input", { key: 'cf4afd621a442b90f41b4ae26a96cfa2d8153df4', type: "text", name: "name.first", placeholder: "Smith", onSmoothlyChange: e => console.log("smoothly change event") }, "Last Name", h("smoothly-icon", { key: '9fb3990c1caf1da748d82f3fb355d300f7404329', name: "checkmark-circle", slot: "end" })), h("smoothly-input", { key: '932b57faaca83f7cfba85e41fbc43eb8695d6ea4', placeholder: "test" }), h("smoothly-input-submit", { key: 'b1aaf41eb1206fdc148d480573302f8693de18aa', slot: "submit", fill: "solid", onSubmit: (e) => alert(e), color: "success" }), h("h4", { key: 'b7ffb6f9330ced7f5763e48d626e0a17889d9f25' }, "Smoothly checkboxes"), h("div", { key: '80fc9cc65cccc4adb8cba4c811742541137bf698', class: "checkbox-group" }, h("smoothly-input-checkbox", { key: 'be5e8d4dd4cb4c63b9c0d82920c5ea7c6a0e623b', disabled: true, name: "first-checkbox" }, h("smoothly-icon", { key: '75edc6ead1a55befb22e6084d485749bd9cc6da1', name: "checkmark-circle", slot: "start", size: "tiny" }), "First"), h("smoothly-input-checkbox", { key: '704732e5a9e2ccc8e7ea1f4321a9911d4826e5d1', name: "second-checkbox", checked: true }, h("smoothly-icon", { key: '708e9b987f921137264f288bbe1d4ec8499df19b', name: "checkmark-circle", slot: "start", size: "tiny" }), "second", h("smoothly-input-clear", { key: '80c5ce80c75f33f67bbbfdbfe73ba072eaa37d79', size: "icon", slot: "end" })), h("smoothly-input-checkbox", { key: '71264159bccb449aed01eb54f0f3e4c3ae2ad9b6', name: "third-checkbox" }, "3rd")), h("h4", { key: '0c772e064d8a51c6d33172d27fc5af685edbb63f' }, "Smoothly Radio Buttons"), h("smoothly-input-radio", { key: '2e7895c7d085ecbd0ca64410b7f76fa079861106', clearable: true, name: "radioFirstInput" }, h("smoothly-icon", { key: 'baf27045a94f4318c5193072003c3205566be340', name: "checkmark-circle", slot: "start" }), h("label", { key: '1510a8506ed6cc4654e52c0a8db589cb8f07789a', slot: "label" }, "Clearable"), h("smoothly-input-radio-item", { key: '3640444f19026657c628973d69f82b21504c78d6', value: "first" }, "Label 1"), h("smoothly-input-radio-item", { key: '3e38e925bb0dc05927b249d5086a6793f67b6ebf', selected: true, value: "second" }, "Label 2"), h("smoothly-input-radio-item", { key: '0b0331135e82acaacc3e7ccf86224ae4638190ed', value: "third" }, "Label 3"), h("smoothly-input-clear", { key: '8799173946dae79110b281fd74af4fd7a680b4e9', size: "icon", slot: "end" })), h("smoothly-input-radio", { key: 'a769bb209c9dd9c4ac3f17d6aa3ad887e2d168e8', name: "radioSecondInput" }, h("label", { key: '252ba147b41c9155641e6b893591a6809f98c516', slot: "label" }, "Not clearable"), h("smoothly-input-radio-item", { key: '269ad4c1ad1ef77808486ed910f76a93389ed53c', value: "first" }, "Label 1"), h("smoothly-input-radio-item", { key: '0de3d96a6afbfc9495085936af90c5bf17d2a4e6', value: "second" }, "Label 2"), h("smoothly-input-radio-item", { key: 'cac79cc3eab126dea7c063e7f469bc8b28c241b9', value: "third" }, "Label 3"), h("smoothly-input-radio-item", { key: 'c795e26c2789a10e8d0d8335f6f3ed96754a2f17', value: "fourth" }, "Label 4"), h("smoothly-input-radio-item", { key: '63d8c92c4984fdf556360c61968e983da5e23548', value: "fifth" }, "Label 5"), h("smoothly-input-radio-item", { key: '7c786157edd658508d71de20d55a4d596dc96d16', value: "sixth" }, "Label 6")), h("smoothly-input-range-demo", { key: '90e079e7fa142511708ceb0781db47325feb7cbd' }), h("smoothly-input-color-demo", { key: 'f52d61c72a3f01e834a2a626e1e533fd3c6ed11e' }), h("smoothly-input-price-demo", { key: '6da94024c5a01ed305071bce4f3afe97a807fe22' }), h("smoothly-back-to-top", { key: '49936dab6a55005f169850bbcc6d324e0aff0858' }))));
|
|
17
17
|
}
|
|
18
18
|
static get is() { return "smoothly-input-demo"; }
|
|
19
19
|
static get encapsulation() { return "scoped"; }
|
|
@@ -6,7 +6,7 @@ export class SmoothlyInputPriceDemo {
|
|
|
6
6
|
this.currency = "USD";
|
|
7
7
|
}
|
|
8
8
|
render() {
|
|
9
|
-
return (h(Host, { key: '
|
|
9
|
+
return (h(Host, { key: '60e993b80b4e917ccbb75c50363683528679057c' }, h("h2", { key: 'd0aba9325c5d06129d4901db66f1013567b6b830' }, "State demo on smoothly-input"), h("p", { key: 'a855d441d2caca97623532b0c2b76fee767cb0c6' }, "This demo/test the internal state of the smoothly-input component."), h("p", { key: 'ace43773575545bf9e1436679882d52fc7df775e' }, "The currency of the price should update when switching between the currencies."), h("smoothly-input-radio", { key: '37bfc9ebfe8859b3d91dc23903c9ed54dbaecde2', name: "currency", onSmoothlyInput: e => (this.currency = isoly.Currency.is(e.detail.currency) ? e.detail.currency : undefined) }, this.currencies.map(currency => (h("smoothly-input-radio-item", { key: currency, selected: currency == this.currency, value: currency }, currency)))), h("smoothly-input", { key: 'bac1cf757d16013bbc16193bc4bb8a290d30f4d8', type: "price", currency: this.currency }, "price")));
|
|
10
10
|
}
|
|
11
11
|
static get is() { return "smoothly-input-price-demo"; }
|
|
12
12
|
static get encapsulation() { return "scoped"; }
|
|
@@ -21,7 +21,7 @@ export class SmoothlyInputDemoStandard {
|
|
|
21
21
|
}
|
|
22
22
|
render() {
|
|
23
23
|
const placeholder = this.options.placeholder ? "placeholder" : undefined;
|
|
24
|
-
return (h(Host, { key: '
|
|
24
|
+
return (h(Host, { key: 'c58dcd7a0ddf98a9833fbe9467b9b08402b388f1', class: { vertical: !!this.options.vertical } }, h("div", { key: 'aa6ad35e296975201ad7bce10df89c67b507daa4', class: "description" }, h("h2", { key: 'b54af57073864460a36cd6358dd103d9a8d6203e' }, "Input Standard"), h("p", { key: '4dd1d682e32b4da92a9c6a496dcc4af4dd455edc' }, "Height of input should be ", h("code", { key: '67d7d6a970a3266c6503dc53cb5bbd7e1053b3ca' }, "3rem"), " including border. This is should result in a 48 pixel height at 100% zoom, assuming a root font-size of 16 pixels."), h("smoothly-form", { key: 'c14ded577c553892f190d82767037447791e08ca', looks: "grid", onSmoothlyFormInput: (e) => (this.options = e.detail) }, h("smoothly-input-select", { key: '733a90dfdfdabb477b2d6105682657df7df51f27', name: "looks" }, h("span", { key: '91aecb53922674bffb8e7b7d084a2dc6f1520fc3', slot: "label" }, "Looks"), Looks.types.map(l => (h("smoothly-item", { value: l }, l)))), h("smoothly-input-checkbox", { key: '72a431fcddf9309c4cc52de91991f75005bb08fa', name: "readonly" }, "Readonly"), h("smoothly-input-select", { key: '06f5861be0d3acc109f02de05abeffebe764db39', name: "color" }, h("span", { key: '3b514f9d59a5a6e85a3a760436110a32983d13e1', slot: "label" }, "Color"), Color.types.map(c => (h("smoothly-item", { value: c }, h("span", { color: c }, c)))), h("smoothly-input-clear", { key: 'efaa0ccf60af3c1310d8ddc89e12825714de5b52', slot: "end" })), h("smoothly-input-checkbox", { key: '8e3ff06a5ec5a272e355ed32c4c3a26feaad93d9', name: "vertical" }, "Vertical Layout"), h("smoothly-input-checkbox", { key: 'f508c381ddc975eba1f73788b4ec9d1a17c6faff', name: "showLabel", checked: true }, "Show Label"), h("smoothly-input-checkbox", { key: '976c451c4c52b9c4cdf06db0b287ce57d78c852f', name: "placeholder" }, "Placeholder"), h("smoothly-input-checkbox", { key: '6c8aa60ab8294a01d5492d981b442bdb9f2567d5', name: "invalid" }, "Invalid"), h("smoothly-input", { key: 'fd721fe78c6623bec6468e647e6ac88f8e483e53', name: "errorMessage", value: "This is not a valid value" }, "Error Message"), h("smoothly-input-range", { key: '8ab1d3698fa0cbe1c1f5da694443d3372aeec095', label: "Border Radius (rem)", name: "borderRadius", min: 0, max: 2, step: 0.25 }))), h("div", { key: 'b3e86ecbfd3d145454b420e3f45d87124c4d4650', class: "input-wrapper", style: { "--smoothly-input-border-radius": `${this.options.borderRadius}rem` } }, h("div", { key: '4719ebb85b566902dc53cae95cbc8826a3b22619', class: "width" }, "100%"), h("div", { key: 'a205e5654718ba2a308e29dc3e34e6c9598f23d6', class: "left-padding" }, "0.5rem - left padding"), h("smoothly-input", { key: 'c5143cfedc84779d8b28d64a56e728ef2ab4df57', 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 && h("span", { key: 'a675b1d8ad3e673914e020d9eb14b15a242cee0d' }, "Text"), h("smoothly-input-clear", { key: '1088552e7fca00d6896c74d6da64748b8adcb9cd', slot: "end" })), h("div", { key: 'c5fb2a470f3c7391b3ae9e4dbc5814f7e5550a86', class: "height" }), h("smoothly-input-select", { key: 'b7eaf11fdf18381ae8d551c24e6e8f7566d6179a', 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 && h("label", { key: '131a55d7d6876efe226c6be6996c1b90b8465904', slot: "label" }, "Select"), h("smoothly-item", { key: '84ff7f28d8b523555d77b8e90dd0a4c2303ddaf7', value: "1" }, "January"), h("smoothly-item", { key: '31f15f5f9c7dc78227c2c6fd648e56623a8e4c8b', value: "2" }, "February"), h("smoothly-item", { key: 'e81d01da312a769b54fd33758d0a6b0f0c138519', value: "3" }, "March"), h("smoothly-item", { key: '96922f4ed441fb7910c7e6838dfa3d3f7c71ef34', value: "4" }, "April"), h("smoothly-item", { key: '9ecfcdcbb63b36deb2e18f195ba7e08ac7f738a1', value: "5" }, "May"), h("smoothly-item", { key: '918d4f499d24d5947bdb060dc28009396fc23caf', value: "6" }, "June"), h("smoothly-item", { key: '973167231cb8e2477ae54572042ec80cafe4ea37', value: "7" }, "July"), h("smoothly-item", { key: 'af47c9a8e15a6bb7ddebf827547e248219f2dd0b', value: "8" }, "August"), h("smoothly-item", { key: '4069036ca290731580df101648683c305e67ebec', value: "9" }, "September"), h("smoothly-item", { key: 'd98add36ae1c3bd7159cb5e3784a74895ee78fff', value: "10" }, "October"), h("smoothly-item", { key: '3c20e5f2c440ed7e3cce046236a22a6fd2259c2d', value: "11" }, "November"), h("smoothly-item", { key: '7f9f272f95377d0fcb6950dbb5d5a5e4f610c613', value: "12" }, "December"), h("smoothly-input-clear", { key: 'b98b27b7a528601f9e1fe1d14e6043c20919377b', slot: "end" })), h("div", { key: '89d4880eaec86e70228d3d3f26f2eb112ad50cb1', class: "height" }), h("smoothly-input-checkbox", { key: '32b9e83ce27c25041b8cf103ad4c10ddbb11f2ce', looks: this.options.looks, readonly: this.options.readonly, color: this.options.color }, "Check"), h("div", { key: '3f0885c44817050860ae95324bacea6721e235cd', class: "height" }), h("smoothly-input-radio", { key: '2263d9a201f26ecf51c4e3a2ec445a94027d61a6', name: "radio", clearable: true, looks: this.options.looks, readonly: this.options.readonly, color: this.options.color, showLabel: this.options.showLabel }, this.options.showLabel && h("label", { key: 'badac80733108311a4800007278c3417cbad57df', slot: "label" }, "Radio"), h("smoothly-input-radio-item", { key: 'd4d72a709daf0c2cdbc7aabfe51db816f1a608ae', value: "first" }, "Label 1"), h("smoothly-input-radio-item", { key: 'db98b84fc34c0ed7dad88ff4d75ef98533d19259', selected: true, value: "second" }, "Label 2"), h("smoothly-input-radio-item", { key: 'f732549c63fb54173349f1219535a54686e4281f', value: "third" }, "Label 3"), h("smoothly-input-clear", { key: 'f0affe94d6280188d9c2b6d482b252e9ab0707ac', slot: "end" })), h("div", { key: 'e9c9eaf8c54bd995fe687366721903cfd2c04f40', class: "height" }), h("smoothly-input-file", { key: 'adbbcd0bc57064fd2293ea700b6fed451bc38fd4', looks: this.options.looks, readonly: this.options.readonly, color: this.options.color, placeholder: placeholder, showLabel: this.options.showLabel }, this.options.showLabel && h("span", { key: '70d58f1f7eaf4b31ded93887a4fad73fd99c07f1', slot: "label" }, "File"), h("smoothly-input-clear", { key: '3b75906118b762daaddb6ac754dff28236cc4632', slot: "end" })), h("div", { key: '987ab65df503b27a86263d66c20d022bff4492e3', class: "height" }), h("smoothly-input-range", { key: 'a363a3b91d2ab8e16f53647a8c706d2f14cf6c0d', name: "range", label: this.options.showLabel ? "Range" : undefined, looks: this.options.looks, readonly: this.options.readonly, color: this.options.color }, h("smoothly-input-clear", { key: '98567ea997a482ae3fa6f57f5c28dde08b52a31d', slot: "end" })), h("div", { key: '89c0dac8beabb32cd47c1452360c8e3fc1f41a5d', class: "height" }), h("smoothly-input-color", { key: '47b272d0c0e50a46b885e0b0c23f9e690f8e7151', looks: this.options.looks, readonly: this.options.readonly, color: this.options.color, showLabel: this.options.showLabel }, this.options.showLabel && h("span", { key: '80e2730f7c9ce81cfa49bf193345c4b7f1f014be' }, "Color"), h("smoothly-input-clear", { key: 'd56a6765d8710d9f35d8d10b47d52b4bade2b6fa', slot: "end" })), h("div", { key: 'ffe82240e639efb559a1710ea839708b548b89ef', class: "height" }), h("smoothly-input-date", { key: '2340719aa80968e1b630a4c967da15482ab28abd', looks: this.options.looks, readonly: this.options.readonly, invalid: this.options.invalid, color: this.options.color, showLabel: this.options.showLabel }, this.options.showLabel && h("span", { key: '7adde192741aaa0850e3ea70c04ea80cd6cfd914' }, "Date"), h("smoothly-input-clear", { key: 'a9187a4b235ef079adf84fe0403c5128e1216025', slot: "end" })), h("div", { key: '7d47f8663295f1ad7675789348becc972266d551', class: "height" }), h("smoothly-input-date-range", { key: 'f1426cd9db9cc037ca2bf262f06672cab8f0e632', 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 && h("span", { key: 'd0faa66b131aaa9934b216d2a5b07a75a64d57db' }, "Date Range"), h("smoothly-input-clear", { key: 'ac6166b34ea31f06a41c6b856e6cb00bd014e2c5', slot: "end" })), h("div", { key: '44b52319c60c4bb7af8ccd8222ef083454b07814', class: "height" }), h("div", { key: '5e10df393906febb867db526c3a2546fa0911880', class: { "guide-lines": true, "show-label": !!this.options.showLabel } }, this.options.showLabel ? "Aligned labels & values" : "Center values"))));
|
|
25
25
|
}
|
|
26
26
|
static get is() { return "smoothly-input-demo-standard"; }
|
|
27
27
|
static get encapsulation() { return "scoped"; }
|
|
@@ -28,7 +28,7 @@ export class SmoothlyInputEdit {
|
|
|
28
28
|
}
|
|
29
29
|
render() {
|
|
30
30
|
var _a;
|
|
31
|
-
return (h(Host, { key: '
|
|
31
|
+
return (h(Host, { key: '5e4f89335ebea26c7e28f731e6c469d156737123', title: this.toolTip }, h("smoothly-button", { key: '64bca4444a76e5ff728c3371419bd4a230143fb9', disabled: this.disabled, size: this.size, type: "button", shape: this.shape, expand: this.expand, color: this.color, fill: (_a = this.fill) !== null && _a !== void 0 ? _a : (this.type == "input" ? "clear" : undefined) }, h("slot", { key: '379cf7a1b3f7de48d734766e6748d3a0539c4b7d' }), h("smoothly-icon", { key: '53b19345d6883b7c286bdef9a4cdb4e39d20f70d', class: "default", name: "create-outline", size: "tiny" }))));
|
|
32
32
|
}
|
|
33
33
|
static get is() { return "smoothly-input-edit"; }
|
|
34
34
|
static get encapsulation() { return "scoped"; }
|
|
@@ -101,7 +101,7 @@ export class SmoothlyInputFile {
|
|
|
101
101
|
}
|
|
102
102
|
render() {
|
|
103
103
|
var _a, _b, _c;
|
|
104
|
-
return (h(Host, { key: '
|
|
104
|
+
return (h(Host, { key: 'a5683818b91fadba7fb3f46c3abf006be2111d38', 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) }, h("label", { key: '2034b3f660498dd2e4a510ddb4094073e4b60c51' }, h("slot", { key: '0466b8ef49363c0869f6213d34fb24ece2e9eff6', name: "label" })), h("div", { key: '8106c7ae0fc63199f97e3de977b05018d9fb8535', class: "input" }, h("smoothly-button", { key: 'b4869d4bd56d4d4865d4af8c0c7237a320397078', type: "button", color: this.color, fill: "clear", size: "flexible" }, h("slot", { key: '4a195b824d6ef4bb83aceba448bc95d62826337a', name: "button" })), h("span", { key: '51eb694634e34effd7f2ef90f8ab68ced272cedf' }, (_b = (_a = this.value) === null || _a === void 0 ? void 0 : _a.name) !== null && _b !== void 0 ? _b : this.placeholder), h("div", { key: 'ec5b06939273ce018ec60ff75bc1348ec3018460', class: "drag-overlay", onDrop: e => this.dropHandler(e), onDragLeave: e => this.dragLeaveHandler(e) }, h("smoothly-icon", { key: 'e1c90af52875e75e4813a0e23681b0fdbae2a217', name: "document-attach-outline" })), h("input", { key: '4f350280bbed38e8517b9bffca58f8a70b8891c7', 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) })), h("div", { key: '451a75e9a5ddfe23431e434b2eccf20decd32078', class: "end", onClick: (e) => e.stopPropagation() }, h("slot", { key: '93dc9c23bd8c44ec4b5fdf7c90e6080f9c8e9005', name: "end" }))));
|
|
105
105
|
}
|
|
106
106
|
static get is() { return "smoothly-input-file"; }
|
|
107
107
|
static get encapsulation() { return "scoped"; }
|
|
@@ -131,7 +131,7 @@ export class SmoothlyInput {
|
|
|
131
131
|
}
|
|
132
132
|
render() {
|
|
133
133
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
134
|
-
return (h(Host, { key: '
|
|
134
|
+
return (h(Host, { key: '78e7885c853ce20755b714f0ccf9cab0ac75a5ef', class: { "has-value": ((_a = this.state) === null || _a === void 0 ? void 0 : _a.value) != undefined && ((_b = this.state) === null || _b === void 0 ? void 0 : _b.value) != "" }, onclick: () => { var _a; return (_a = this.inputElement) === null || _a === void 0 ? void 0 : _a.focus(); } }, h("slot", { key: '9197c2a3bfa79e721feffa0a5c652f6370ecc5cf', name: "start" }), h("div", { key: 'b881acabefc935109f3531b75416753c1c75ac43', class: "smoothly-input-container" }, h("div", { key: 'f0aa99d563a84f7b1ed4ffed7da479c4875e75be', class: "ghost" }, h("div", { key: '69a4cbde610389146386eb94b75088d04d13a7e7', class: "value" }, (_c = this.state) === null || _c === void 0 ? void 0 : _c.value), h("div", { key: '566ef9ee4cc2bd590366557b72c92fe3c16ed8e3', class: "remainder" }, (_d = this.state) === null || _d === void 0 ? void 0 : _d.remainder)), h("input", { key: 'da67d5f387d69094e14999b4eebcb16ebe8b69f8', 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 => {
|
|
135
135
|
this.state = this.stateHandler.onKeyDown(event, this.state);
|
|
136
136
|
if (!this.readonly && !this.disabled)
|
|
137
137
|
this.smoothlyKeydown.emit(Key.create(this.name, event));
|
|
@@ -144,7 +144,7 @@ export class SmoothlyInput {
|
|
|
144
144
|
if (Deep.notEqual(lastValue, this.stateHandler.getValue(this.state)))
|
|
145
145
|
this.smoothlyChange.emit({ [this.name]: this.stateHandler.getValue(this.state) });
|
|
146
146
|
}
|
|
147
|
-
} }), h("label", { key: '
|
|
147
|
+
} }), h("label", { key: 'b25431d691b144dfa5569cb2b08254cdedf24dc4', class: "label float-on-focus", htmlFor: this.name }, h("slot", { key: '702434dac4c0783291d7ac9703ac80db5230ab81' }))), h("smoothly-icon", { key: 'aad96360452850bc638500bbd37fb13dfc2e013e', class: "smoothly-invalid", name: "alert-circle", color: "danger", fill: "clear", size: "small", toolTip: this.errorMessage }), h("slot", { key: 'a86bef126f931e4e0495412368be80748b44302c', name: "end" })));
|
|
148
148
|
}
|
|
149
149
|
static get is() { return "smoothly-input"; }
|
|
150
150
|
static get encapsulation() { return "scoped"; }
|