smoothly 1.2.1-alpha.22 → 1.2.1-alpha.24
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/{Scrollable-a60d6091.js → Scrollable-20426515.js} +36 -412
- package/dist/cjs/Scrollable-20426515.js.map +1 -0
- package/dist/cjs/{TimeZone-45bcd855.js → TimeZone-c7477083.js} +2940 -1728
- package/dist/cjs/TimeZone-c7477083.js.map +1 -0
- package/dist/cjs/{en-56378cc9.js → en-f4546147.js} +2 -2
- package/dist/cjs/{en-56378cc9.js.map → en-f4546147.js.map} +1 -1
- package/dist/cjs/index.cjs.js +2 -2
- package/dist/cjs/smoothly-app_107.cjs.entry.js +78 -91
- package/dist/cjs/smoothly-app_107.cjs.entry.js.map +1 -1
- package/dist/cjs/smoothly-checkbox.cjs.entry.js.map +1 -1
- package/dist/cjs/smoothly-country.cjs.entry.js +3 -3
- package/dist/cjs/smoothly-country.cjs.entry.js.map +1 -1
- package/dist/cjs/smoothly-input-checkbox-demo.cjs.entry.js +1 -1
- package/dist/cjs/smoothly-trigger-sink.cjs.entry.js +2 -2
- package/dist/cjs/smoothly-trigger-source.cjs.entry.js +2 -2
- package/dist/collection/components/calendar/generate.js +1 -1
- package/dist/collection/components/calendar/generate.js.map +1 -1
- package/dist/collection/components/calendar/index.js +28 -27
- package/dist/collection/components/calendar/index.js.map +1 -1
- package/dist/collection/components/checkbox/translation/index.js +1 -1
- package/dist/collection/components/checkbox/translation/index.js.map +1 -1
- package/dist/collection/components/country/index.js +5 -5
- package/dist/collection/components/country/index.js.map +1 -1
- package/dist/collection/components/display/index.js +21 -21
- package/dist/collection/components/display/index.js.map +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/typed/index.js +1 -1
- package/dist/collection/components/form/demo/typed/index.js.map +1 -1
- package/dist/collection/components/input/checkbox/index.js +1 -1
- package/dist/collection/components/input/color/index.js +1 -1
- package/dist/collection/components/input/date/index.js +14 -14
- package/dist/collection/components/input/date/index.js.map +1 -1
- package/dist/collection/components/input/date/range/index.js +1 -1
- package/dist/collection/components/input/file/index.js +1 -1
- package/dist/collection/components/input/index.js +3 -3
- package/dist/collection/components/input/month/index.js +1 -1
- package/dist/collection/components/input/radio/index.js +1 -1
- package/dist/collection/components/input/range/index.js +1 -1
- package/dist/collection/components/input/select/index.js +1 -1
- package/dist/collection/model/Data.spec.js.map +1 -1
- package/dist/components/index.js +2 -2
- package/dist/components/{p-750bac7d.js → p-00028058.js} +6 -6
- package/dist/components/{p-750bac7d.js.map → p-00028058.js.map} +1 -1
- package/dist/components/{p-6b2c0f3e.js → p-0012d70e.js} +2 -2
- package/dist/components/{p-6b2c0f3e.js.map → p-0012d70e.js.map} +1 -1
- package/dist/components/{p-137b3421.js → p-0210b94d.js} +7 -7
- package/dist/components/{p-137b3421.js.map → p-0210b94d.js.map} +1 -1
- package/dist/components/{p-7ad3376d.js → p-0210db4b.js} +5 -5
- package/dist/components/{p-7ad3376d.js.map → p-0210db4b.js.map} +1 -1
- package/dist/components/{p-4833b43b.js → p-0c9b11f0.js} +2 -2
- package/dist/components/{p-4833b43b.js.map → p-0c9b11f0.js.map} +1 -1
- package/dist/components/{p-eccb82fa.js → p-114fa5c2.js} +3 -3
- package/dist/components/{p-eccb82fa.js.map → p-114fa5c2.js.map} +1 -1
- package/dist/components/{p-dffea279.js → p-153f8d1a.js} +12 -12
- package/dist/components/{p-dffea279.js.map → p-153f8d1a.js.map} +1 -1
- package/dist/components/{p-8362e6ea.js → p-174e1154.js} +3 -3
- package/dist/components/{p-8362e6ea.js.map → p-174e1154.js.map} +1 -1
- package/dist/components/{p-3851d6af.js → p-17575bc3.js} +5 -5
- package/dist/components/{p-3851d6af.js.map → p-17575bc3.js.map} +1 -1
- package/dist/components/{p-28e6aa24.js → p-17f423b8.js} +2 -2
- package/dist/components/{p-28e6aa24.js.map → p-17f423b8.js.map} +1 -1
- package/dist/components/{p-f8b6cc8e.js → p-1ccb9b5d.js} +3 -3
- package/dist/components/{p-f8b6cc8e.js.map → p-1ccb9b5d.js.map} +1 -1
- package/dist/components/{p-b5b689d9.js → p-1efc7982.js} +3 -3
- package/dist/components/{p-b5b689d9.js.map → p-1efc7982.js.map} +1 -1
- package/dist/components/{p-fc98f7be.js → p-23fbd92e.js} +6 -6
- package/dist/components/{p-fc98f7be.js.map → p-23fbd92e.js.map} +1 -1
- package/dist/components/{p-fccef2cd.js → p-269f59bb.js} +23 -23
- package/dist/components/{p-fccef2cd.js.map → p-269f59bb.js.map} +1 -1
- package/dist/components/{p-d7ba5dde.js → p-28d37bcb.js} +7 -7
- package/dist/components/{p-d7ba5dde.js.map → p-28d37bcb.js.map} +1 -1
- package/dist/components/{p-a1af56e3.js → p-2d60ab95.js} +3 -3
- package/dist/components/{p-a1af56e3.js.map → p-2d60ab95.js.map} +1 -1
- package/dist/components/{p-4d285afc.js → p-3442e053.js} +2 -2
- package/dist/components/{p-4d285afc.js.map → p-3442e053.js.map} +1 -1
- package/dist/components/{p-089f64c2.js → p-35124e90.js} +2 -2
- package/dist/components/{p-089f64c2.js.map → p-35124e90.js.map} +1 -1
- package/dist/components/{p-0ffdc60e.js → p-3749e7c2.js} +2 -2
- package/dist/components/{p-0ffdc60e.js.map → p-3749e7c2.js.map} +1 -1
- package/dist/components/{p-c5beaa82.js → p-383f1e16.js} +5 -5
- package/dist/components/{p-c5beaa82.js.map → p-383f1e16.js.map} +1 -1
- package/dist/components/{p-6f488a68.js → p-3851c98c.js} +5 -5
- package/dist/components/{p-6f488a68.js.map → p-3851c98c.js.map} +1 -1
- package/dist/{esm/TimeZone-7b25e3f9.js → components/p-390767c7.js} +2806 -1883
- package/dist/components/p-390767c7.js.map +1 -0
- package/dist/components/{p-97848f3d.js → p-3eef0252.js} +21 -21
- package/dist/components/{p-97848f3d.js.map → p-3eef0252.js.map} +1 -1
- package/dist/components/{p-5a3098ce.js → p-3f588352.js} +4 -4
- package/dist/components/{p-5a3098ce.js.map → p-3f588352.js.map} +1 -1
- package/dist/components/{p-acdb7891.js → p-3fc2b239.js} +4 -4
- package/dist/components/{p-acdb7891.js.map → p-3fc2b239.js.map} +1 -1
- package/dist/components/{p-4d4b4a0a.js → p-43c910c5.js} +2 -2
- package/dist/components/{p-4d4b4a0a.js.map → p-43c910c5.js.map} +1 -1
- package/dist/components/{p-72730ae3.js → p-44d5ec3b.js} +10 -10
- package/dist/components/{p-72730ae3.js.map → p-44d5ec3b.js.map} +1 -1
- package/dist/components/{p-918ddb21.js → p-46912f14.js} +10 -10
- package/dist/components/p-46912f14.js.map +1 -0
- package/dist/components/{p-ce03e4d0.js → p-4ed54d65.js} +3 -3
- package/dist/components/{p-ce03e4d0.js.map → p-4ed54d65.js.map} +1 -1
- package/dist/components/{p-58a11f85.js → p-53671a89.js} +3 -3
- package/dist/components/{p-58a11f85.js.map → p-53671a89.js.map} +1 -1
- package/dist/components/{p-938c06a2.js → p-5666c538.js} +2 -2
- package/dist/components/{p-938c06a2.js.map → p-5666c538.js.map} +1 -1
- package/dist/components/{p-ac285959.js → p-5a3bdf21.js} +25 -25
- package/dist/components/{p-ac285959.js.map → p-5a3bdf21.js.map} +1 -1
- package/dist/components/{p-eb3d2060.js → p-5f8480af.js} +2 -2
- package/dist/components/{p-eb3d2060.js.map → p-5f8480af.js.map} +1 -1
- package/dist/components/{p-d3edfccf.js → p-61a1fd24.js} +8 -8
- package/dist/components/{p-d3edfccf.js.map → p-61a1fd24.js.map} +1 -1
- package/dist/components/{p-a08bf822.js → p-6b3ea12e.js} +2 -2
- package/dist/components/{p-a08bf822.js.map → p-6b3ea12e.js.map} +1 -1
- package/dist/components/{p-8edc879e.js → p-6c5bd721.js} +20 -20
- package/dist/components/{p-8edc879e.js.map → p-6c5bd721.js.map} +1 -1
- package/dist/components/{p-5d3caa35.js → p-73862f4b.js} +17 -17
- package/dist/components/{p-5d3caa35.js.map → p-73862f4b.js.map} +1 -1
- package/dist/components/{p-fbd4a12b.js → p-78a3eb0a.js} +9 -9
- package/dist/components/{p-fbd4a12b.js.map → p-78a3eb0a.js.map} +1 -1
- package/dist/components/{p-e451a0b5.js → p-7902ae4f.js} +3 -3
- package/dist/components/{p-e451a0b5.js.map → p-7902ae4f.js.map} +1 -1
- package/dist/components/{p-6eb46ce4.js → p-79729668.js} +37 -37
- package/dist/components/{p-6eb46ce4.js.map → p-79729668.js.map} +1 -1
- package/dist/components/{p-4716165d.js → p-79b2dd05.js} +4 -4
- package/dist/components/{p-4716165d.js.map → p-79b2dd05.js.map} +1 -1
- package/dist/components/{p-264f51a5.js → p-7b1e9421.js} +9 -9
- package/dist/components/{p-264f51a5.js.map → p-7b1e9421.js.map} +1 -1
- package/dist/components/{p-43b0c35c.js → p-7cf8c0f7.js} +5 -5
- package/dist/components/p-7cf8c0f7.js.map +1 -0
- package/dist/components/{p-f8b21fed.js → p-7f853189.js} +9 -9
- package/dist/components/{p-f8b21fed.js.map → p-7f853189.js.map} +1 -1
- package/dist/components/{p-c5519ec1.js → p-80b231e3.js} +5 -5
- package/dist/components/{p-c5519ec1.js.map → p-80b231e3.js.map} +1 -1
- package/dist/components/{p-292bffec.js → p-89505ec7.js} +3 -3
- package/dist/components/{p-292bffec.js.map → p-89505ec7.js.map} +1 -1
- package/dist/components/{p-ca19ed60.js → p-8e1e509d.js} +18 -99
- package/dist/components/p-8e1e509d.js.map +1 -0
- package/dist/components/{p-5325f725.js → p-8e3e6e7c.js} +9 -9
- package/dist/components/{p-5325f725.js.map → p-8e3e6e7c.js.map} +1 -1
- package/dist/components/{p-283f43bb.js → p-904e4b38.js} +11 -11
- package/dist/components/{p-283f43bb.js.map → p-904e4b38.js.map} +1 -1
- package/dist/components/{p-d062ac7b.js → p-957188b3.js} +3 -3
- package/dist/components/{p-d062ac7b.js.map → p-957188b3.js.map} +1 -1
- package/dist/components/{p-c7c1ceaa.js → p-96ca540b.js} +3 -3
- package/dist/components/{p-c7c1ceaa.js.map → p-96ca540b.js.map} +1 -1
- package/dist/components/{p-c025f250.js → p-9780bea7.js} +8 -8
- package/dist/components/{p-c025f250.js.map → p-9780bea7.js.map} +1 -1
- package/dist/components/{p-50f303f3.js → p-97c0e862.js} +3 -3
- package/dist/components/{p-50f303f3.js.map → p-97c0e862.js.map} +1 -1
- package/dist/components/{p-58c24d57.js → p-98279044.js} +9 -9
- package/dist/components/p-98279044.js.map +1 -0
- package/dist/components/{p-e5ac7847.js → p-98cb1594.js} +6 -6
- package/dist/components/{p-e5ac7847.js.map → p-98cb1594.js.map} +1 -1
- package/dist/components/{p-34b2eda8.js → p-9c8ff26d.js} +4 -4
- package/dist/components/{p-34b2eda8.js.map → p-9c8ff26d.js.map} +1 -1
- package/dist/components/{p-666dab06.js → p-9e5e6e83.js} +6 -6
- package/dist/components/{p-666dab06.js.map → p-9e5e6e83.js.map} +1 -1
- package/dist/components/{p-aa3e9c0f.js → p-aa4ee979.js} +5 -5
- package/dist/components/{p-aa3e9c0f.js.map → p-aa4ee979.js.map} +1 -1
- package/dist/components/{p-2efadf3c.js → p-ad1af123.js} +2 -2
- package/dist/components/{p-2efadf3c.js.map → p-ad1af123.js.map} +1 -1
- package/dist/components/{p-96469335.js → p-b0d7a2e6.js} +5 -8
- package/dist/components/p-b0d7a2e6.js.map +1 -0
- package/dist/components/{p-8ad720fa.js → p-b18e0a8b.js} +4 -4
- package/dist/components/{p-8ad720fa.js.map → p-b18e0a8b.js.map} +1 -1
- package/dist/components/{p-fa39a723.js → p-b354198d.js} +2 -2
- package/dist/components/{p-fa39a723.js.map → p-b354198d.js.map} +1 -1
- package/dist/components/{p-6da87c78.js → p-be6d380e.js} +2 -2
- package/dist/components/{p-6da87c78.js.map → p-be6d380e.js.map} +1 -1
- package/dist/components/{p-a74bdd1f.js → p-c05a03ab.js} +2 -2
- package/dist/components/{p-a74bdd1f.js.map → p-c05a03ab.js.map} +1 -1
- package/dist/components/{p-f7691a04.js → p-c4395e67.js} +4 -4
- package/dist/components/{p-f7691a04.js.map → p-c4395e67.js.map} +1 -1
- package/dist/components/{p-2fb54a15.js → p-c44bb76a.js} +7 -7
- package/dist/components/{p-2fb54a15.js.map → p-c44bb76a.js.map} +1 -1
- package/dist/components/{p-730c6db2.js → p-c9b93eb4.js} +10 -10
- package/dist/components/{p-730c6db2.js.map → p-c9b93eb4.js.map} +1 -1
- package/dist/components/{p-0a1466e3.js → p-cc608e51.js} +9 -8
- package/dist/components/p-cc608e51.js.map +1 -0
- package/dist/components/{p-092b23d2.js → p-d2471133.js} +6 -6
- package/dist/components/{p-092b23d2.js.map → p-d2471133.js.map} +1 -1
- package/dist/components/{p-399bba68.js → p-d2ea52c8.js} +15 -15
- package/dist/components/{p-399bba68.js.map → p-d2ea52c8.js.map} +1 -1
- package/dist/components/{p-82c01297.js → p-d471066b.js} +107 -115
- package/dist/components/p-d471066b.js.map +1 -0
- package/dist/components/{p-cfe2cdab.js → p-d5eb1c4b.js} +13 -13
- package/dist/components/{p-cfe2cdab.js.map → p-d5eb1c4b.js.map} +1 -1
- package/dist/components/{p-0bed7501.js → p-df119a54.js} +5 -5
- package/dist/components/{p-0bed7501.js.map → p-df119a54.js.map} +1 -1
- package/dist/components/{p-876d64b3.js → p-e057cdb7.js} +2 -2
- package/dist/components/{p-876d64b3.js.map → p-e057cdb7.js.map} +1 -1
- package/dist/components/{p-96e2307f.js → p-e40f6d2b.js} +14 -14
- package/dist/components/{p-96e2307f.js.map → p-e40f6d2b.js.map} +1 -1
- package/dist/components/{p-5d416ccf.js → p-e51b6e5f.js} +14 -14
- package/dist/components/{p-5d416ccf.js.map → p-e51b6e5f.js.map} +1 -1
- package/dist/components/{p-e92eb120.js → p-ebf469aa.js} +38 -49
- package/dist/components/p-ebf469aa.js.map +1 -0
- package/dist/components/{p-005e85db.js → p-eccf7b48.js} +14 -14
- package/dist/components/{p-005e85db.js.map → p-eccf7b48.js.map} +1 -1
- package/dist/components/{p-dfc5f0b7.js → p-ecf6da6a.js} +2 -2
- package/dist/components/{p-dfc5f0b7.js.map → p-ecf6da6a.js.map} +1 -1
- package/dist/components/{p-26b64015.js → p-ee8127cd.js} +6 -6
- package/dist/components/{p-26b64015.js.map → p-ee8127cd.js.map} +1 -1
- package/dist/components/{p-62833e92.js → p-eed0cef2.js} +13 -13
- package/dist/components/{p-62833e92.js.map → p-eed0cef2.js.map} +1 -1
- package/dist/components/{p-f40a3efd.js → p-f1979b62.js} +2 -2
- package/dist/components/{p-f40a3efd.js.map → p-f1979b62.js.map} +1 -1
- package/dist/components/{p-e572ff39.js → p-f54bc7fc.js} +2 -2
- package/dist/components/{p-e572ff39.js.map → p-f54bc7fc.js.map} +1 -1
- package/dist/components/{p-531fa770.js → p-fa34f451.js} +3 -3
- package/dist/components/{p-531fa770.js.map → p-fa34f451.js.map} +1 -1
- package/dist/components/{p-d9b2d6c1.js → p-fa4fbcc0.js} +19 -19
- package/dist/components/{p-d9b2d6c1.js.map → p-fa4fbcc0.js.map} +1 -1
- package/dist/components/{p-76076037.js → p-fe1bc9d5.js} +2 -2
- package/dist/components/{p-76076037.js.map → p-fe1bc9d5.js.map} +1 -1
- package/dist/components/{p-31873e1c.js → p-fe67f064.js} +30 -30
- package/dist/components/{p-31873e1c.js.map → p-fe67f064.js.map} +1 -1
- package/dist/components/smoothly-app-demo.js +80 -80
- package/dist/components/smoothly-app-room.js +1 -1
- package/dist/components/smoothly-app.js +1 -1
- package/dist/components/smoothly-back-to-top.js +1 -1
- package/dist/components/smoothly-burger.js +1 -1
- package/dist/components/smoothly-button-confirm.js +1 -1
- package/dist/components/smoothly-button-demo.js +1 -1
- package/dist/components/smoothly-button.js +1 -1
- package/dist/components/smoothly-calendar.js +1 -1
- package/dist/components/smoothly-checkbox.js +1 -1
- package/dist/components/smoothly-checkbox.js.map +1 -1
- package/dist/components/smoothly-country.js +3 -3
- package/dist/components/smoothly-country.js.map +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.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-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-frame.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 +25 -25
- 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-modal.js +1 -1
- package/dist/components/smoothly-next-demo-colspan.js +1 -1
- package/dist/components/smoothly-next-demo-group.js +1 -1
- package/dist/components/smoothly-next-demo-nested-inner.js +1 -1
- package/dist/components/smoothly-next-demo-nested.js +1 -1
- package/dist/components/smoothly-next-demo-simple.js +1 -1
- package/dist/components/smoothly-next-demo.js +1 -1
- package/dist/components/smoothly-next-table-demo-filtered.js +1 -1
- package/dist/components/smoothly-next-table-head.js +1 -1
- package/dist/components/smoothly-notification.js +1 -1
- package/dist/components/smoothly-notifier.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-cell.js +1 -1
- package/dist/components/smoothly-table-demo-filtered.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-testing.js +1 -1
- package/dist/components/smoothly-tabs-demo.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 +2 -2
- package/dist/components/smoothly-trigger-source.js +2 -2
- package/dist/esm/{Scrollable-94b2c80b.js → Scrollable-93e46f30.js} +17 -388
- package/dist/esm/Scrollable-93e46f30.js.map +1 -0
- package/dist/{components/p-99f89f10.js → esm/TimeZone-52285537.js} +2933 -1729
- package/dist/esm/TimeZone-52285537.js.map +1 -0
- package/dist/esm/{en-bacb390d.js → en-6e8712b5.js} +2 -2
- package/dist/esm/{en-bacb390d.js.map → en-6e8712b5.js.map} +1 -1
- package/dist/esm/index.js +2 -2
- package/dist/esm/smoothly-app_107.entry.js +52 -65
- package/dist/esm/smoothly-app_107.entry.js.map +1 -1
- package/dist/esm/smoothly-checkbox.entry.js.map +1 -1
- package/dist/esm/smoothly-country.entry.js +3 -3
- package/dist/esm/smoothly-country.entry.js.map +1 -1
- package/dist/esm/smoothly-input-checkbox-demo.entry.js +1 -1
- package/dist/esm/smoothly-trigger-sink.entry.js +2 -2
- package/dist/esm/smoothly-trigger-source.entry.js +2 -2
- package/dist/smoothly/index.esm.js +1 -1
- package/dist/smoothly/p-152fd0d7.entry.js.map +1 -1
- package/dist/smoothly/{p-cf245e8a.js → p-2257be8c.js} +2 -2
- package/dist/smoothly/{p-9bfe8aba.entry.js → p-2512c689.entry.js} +2 -2
- package/dist/smoothly/p-34d144e8.js +2 -0
- package/dist/smoothly/p-34d144e8.js.map +1 -0
- package/dist/smoothly/{p-e9cd0cd0.entry.js → p-3ede8604.entry.js} +2 -2
- package/dist/smoothly/p-3ede8604.entry.js.map +1 -0
- package/dist/smoothly/p-6d7ee489.js +2 -0
- package/dist/smoothly/p-6d7ee489.js.map +1 -0
- package/dist/smoothly/{p-5ff5fc57.entry.js → p-87ae07b2.entry.js} +2 -2
- package/dist/smoothly/{p-83ce9999.entry.js → p-ac6fb4e4.entry.js} +2 -2
- package/dist/smoothly/p-e0bfc64f.entry.js +2 -0
- package/dist/smoothly/p-e0bfc64f.entry.js.map +1 -0
- package/dist/smoothly/smoothly.esm.js +1 -1
- package/dist/types/components/calendar/generate.d.ts +1 -1
- package/dist/types/components/calendar/index.d.ts +14 -14
- package/dist/types/components/checkbox/translation/index.d.ts +2 -2
- package/dist/types/components/country/index.d.ts +3 -3
- package/dist/types/components/display/index.d.ts +6 -6
- package/dist/types/components/filter/Filter.d.ts +3 -3
- package/dist/types/components/form/demo/typed/Contact.d.ts +1 -1
- package/dist/types/components/input/Editable.d.ts +2 -2
- package/dist/types/components/input/Input.d.ts +2 -2
- package/dist/types/components/input/Looks.d.ts +2 -2
- package/dist/types/components/input/date/index.d.ts +8 -8
- package/dist/types/components/input/radio/Selected.d.ts +1 -1
- package/dist/types/components/item/Item.d.ts +2 -2
- package/dist/types/components.d.ts +45 -45
- package/dist/types/model/Color/HSL.d.ts +1 -1
- package/dist/types/model/Color/RGB.d.ts +1 -1
- package/dist/types/model/Color/index.d.ts +2 -2
- package/dist/types/model/Submit.d.ts +1 -1
- package/package.json +20 -46
- package/dist/cjs/Scrollable-a60d6091.js.map +0 -1
- package/dist/cjs/TimeZone-45bcd855.js.map +0 -1
- package/dist/collection/components/input/index.e2e.js +0 -52
- package/dist/collection/components/input/index.e2e.js.map +0 -1
- package/dist/components/p-0a1466e3.js.map +0 -1
- package/dist/components/p-43b0c35c.js.map +0 -1
- package/dist/components/p-58c24d57.js.map +0 -1
- package/dist/components/p-82c01297.js.map +0 -1
- package/dist/components/p-918ddb21.js.map +0 -1
- package/dist/components/p-96469335.js.map +0 -1
- package/dist/components/p-99f89f10.js.map +0 -1
- package/dist/components/p-ca19ed60.js.map +0 -1
- package/dist/components/p-e92eb120.js.map +0 -1
- package/dist/esm/Scrollable-94b2c80b.js.map +0 -1
- package/dist/esm/TimeZone-7b25e3f9.js.map +0 -1
- package/dist/smoothly/p-05e38ae2.js +0 -2
- package/dist/smoothly/p-05e38ae2.js.map +0 -1
- package/dist/smoothly/p-32d55e4c.entry.js +0 -2
- package/dist/smoothly/p-32d55e4c.entry.js.map +0 -1
- package/dist/smoothly/p-99846f9b.js +0 -2
- package/dist/smoothly/p-99846f9b.js.map +0 -1
- package/dist/smoothly/p-e9cd0cd0.entry.js.map +0 -1
- /package/dist/smoothly/{p-cf245e8a.js.map → p-2257be8c.js.map} +0 -0
- /package/dist/smoothly/{p-9bfe8aba.entry.js.map → p-2512c689.entry.js.map} +0 -0
- /package/dist/smoothly/{p-5ff5fc57.entry.js.map → p-87ae07b2.entry.js.map} +0 -0
- /package/dist/smoothly/{p-83ce9999.entry.js.map → p-ac6fb4e4.entry.js.map} +0 -0
|
@@ -1,395 +1,47 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
get name() {
|
|
5
|
-
return typeof this._name == "function" ? this._name() : this._name;
|
|
6
|
-
}
|
|
7
|
-
get condition() {
|
|
8
|
-
return typeof this._condition == "function" ? this._condition() : this._condition;
|
|
9
|
-
}
|
|
10
|
-
optional() {
|
|
11
|
-
return new IslyOptional(this);
|
|
12
|
-
}
|
|
13
|
-
readonly() {
|
|
14
|
-
return new IslyReadonly(this);
|
|
15
|
-
}
|
|
16
|
-
array(...options) {
|
|
17
|
-
return array(this, ...options);
|
|
18
|
-
}
|
|
19
|
-
constructor(_name, _condition) {
|
|
20
|
-
this._name = _name;
|
|
21
|
-
this._condition = _condition;
|
|
22
|
-
/**
|
|
23
|
-
* Return a flaw object, describing the flaws of the value compared to expected type.
|
|
24
|
-
*
|
|
25
|
-
* If it is a correct value, according to the type, it returns a Flaw with the message `{message:"This type is correct.", isFlaw: false, ... }`
|
|
26
|
-
*
|
|
27
|
-
* Implemented as a closure.
|
|
28
|
-
*/
|
|
29
|
-
this.flaw = (value) => {
|
|
30
|
-
return this.is(value)
|
|
31
|
-
? {
|
|
32
|
-
type: this.name,
|
|
33
|
-
...(this.condition ? { condition: this.condition } : undefined),
|
|
34
|
-
isFlaw: false,
|
|
35
|
-
message: "This type is correct.",
|
|
36
|
-
}
|
|
37
|
-
: {
|
|
38
|
-
...(this.condition ? { condition: this.condition } : undefined),
|
|
39
|
-
...this.createFlaw(value),
|
|
40
|
-
type: this.name,
|
|
41
|
-
};
|
|
42
|
-
};
|
|
43
|
-
}
|
|
44
|
-
/**
|
|
45
|
-
* Return the value if the value is valid for the type, otherwise undefined.
|
|
46
|
-
* For objects, unknown properties are filtered.
|
|
47
|
-
*
|
|
48
|
-
* Eg: isly.number().value(NaN) returns undefined
|
|
49
|
-
*/
|
|
50
|
-
get(value) {
|
|
51
|
-
return this.is(value) ? this.getValue(value) : undefined;
|
|
52
|
-
}
|
|
53
|
-
getValue(value) {
|
|
54
|
-
return value;
|
|
55
|
-
}
|
|
56
|
-
/**
|
|
57
|
-
* Override this to create custom Flaws.
|
|
58
|
-
* Not necessary for simple types.
|
|
59
|
-
*/
|
|
60
|
-
createFlaw(value) {
|
|
61
|
-
return {};
|
|
62
|
-
}
|
|
63
|
-
/**
|
|
64
|
-
* Used by types that use a backend type.
|
|
65
|
-
*/
|
|
66
|
-
createFlawFromType(backend, value) {
|
|
67
|
-
return "createFlaw" in backend && typeof backend.createFlaw == "function"
|
|
68
|
-
? backend.createFlaw(value)
|
|
69
|
-
: backend.flaw(value);
|
|
70
|
-
}
|
|
71
|
-
}
|
|
72
|
-
class IslyOptional extends Type {
|
|
73
|
-
constructor(backend) {
|
|
74
|
-
super(() => backend.name + " | undefined", backend.condition);
|
|
75
|
-
this.backend = backend;
|
|
76
|
-
this.class = "optional";
|
|
77
|
-
this.is = (value) => value == undefined || this.backend.is(value);
|
|
78
|
-
}
|
|
79
|
-
createFlaw(value) {
|
|
80
|
-
return this.createFlawFromType(this.backend, value);
|
|
81
|
-
}
|
|
82
|
-
}
|
|
83
|
-
class IslyReadonly extends Type {
|
|
84
|
-
constructor(backend) {
|
|
85
|
-
super(() => `Readonly<${backend.name}>`, backend.condition);
|
|
86
|
-
this.backend = backend;
|
|
87
|
-
this.class = "readonly";
|
|
88
|
-
this.is = (value) => value == undefined || this.backend.is(value);
|
|
89
|
-
}
|
|
90
|
-
createFlaw(value) {
|
|
91
|
-
return this.createFlawFromType(this.backend, value);
|
|
92
|
-
}
|
|
93
|
-
}
|
|
94
|
-
function array(itemType, ...options) {
|
|
95
|
-
return new IslyArray(itemType, options);
|
|
96
|
-
}
|
|
97
|
-
const criteriaFunctions$1 = {
|
|
98
|
-
length: {
|
|
99
|
-
is: (value, optionValue) => value.length == optionValue,
|
|
100
|
-
condition: optionValue => `length == ${optionValue}`,
|
|
101
|
-
},
|
|
102
|
-
minLength: {
|
|
103
|
-
is: (value, optionValue) => value.length >= optionValue,
|
|
104
|
-
condition: optionValue => `minLength == ${optionValue}`,
|
|
105
|
-
},
|
|
106
|
-
maxLength: {
|
|
107
|
-
is: (value, optionValue) => value.length <= optionValue,
|
|
108
|
-
condition: optionValue => `maxLength == ${optionValue}`,
|
|
109
|
-
},
|
|
110
|
-
};
|
|
111
|
-
class IslyArray extends Type {
|
|
112
|
-
constructor(itemType, options) {
|
|
113
|
-
super(() => this.baseName() + "[]", options.length > 0 ? options.map(c => criteriaFunctions$1[c.criteria].condition(c.value)).join(" & ") : undefined);
|
|
114
|
-
this.itemType = itemType;
|
|
115
|
-
this.options = options;
|
|
116
|
-
this.class = "array";
|
|
117
|
-
this.is = (value) => globalThis.Array.isArray(value) &&
|
|
118
|
-
this.options.every(option => criteriaFunctions$1[option.criteria].is(value, option.value)) &&
|
|
119
|
-
value.every(item => this.itemType.is(item));
|
|
120
|
-
}
|
|
121
|
-
baseName() {
|
|
122
|
-
return this.itemType.name.includes(" ") ? `(${this.itemType.name})` : this.itemType.name;
|
|
123
|
-
}
|
|
124
|
-
itemName(index) {
|
|
125
|
-
return `${this.baseName()}[${index}]`;
|
|
126
|
-
}
|
|
127
|
-
createFlaw(value) {
|
|
128
|
-
const flaws = (globalThis.Array.isArray(value) &&
|
|
129
|
-
value.flatMap((item, index) => {
|
|
130
|
-
const subFlaw = this.itemType.flaw(item);
|
|
131
|
-
return subFlaw.isFlaw ?? true ? [{ ...subFlaw, type: this.itemName(index) }] : [];
|
|
132
|
-
})) ||
|
|
133
|
-
[];
|
|
134
|
-
return {
|
|
135
|
-
...(flaws.length > 0 ? { flaws } : undefined),
|
|
136
|
-
};
|
|
137
|
-
}
|
|
138
|
-
getValue(value) {
|
|
139
|
-
return value.map(item => this.itemType.get(item));
|
|
140
|
-
}
|
|
141
|
-
}
|
|
142
|
-
|
|
143
|
-
function boolean(booleanValue) {
|
|
144
|
-
return new IslyBoolean(booleanValue);
|
|
145
|
-
}
|
|
146
|
-
class IslyBoolean extends Type {
|
|
147
|
-
constructor(booleanValue) {
|
|
148
|
-
super(booleanValue == undefined ? "boolean" : booleanValue ? "true" : "false");
|
|
149
|
-
this.booleanValue = booleanValue;
|
|
150
|
-
this.class = "boolean";
|
|
151
|
-
this.is = (value) => typeof value == "boolean" && (this.booleanValue == undefined || value == this.booleanValue);
|
|
152
|
-
}
|
|
153
|
-
}
|
|
154
|
-
|
|
155
|
-
/**
|
|
156
|
-
* Late evaluation of a type
|
|
157
|
-
* Can be used for for recursive types.
|
|
158
|
-
*
|
|
159
|
-
* @param factory
|
|
160
|
-
* @param name Provide a name, to avoid infinite loop if the type i recursive
|
|
161
|
-
* @returns
|
|
162
|
-
*/
|
|
163
|
-
function lazy(factory, name) {
|
|
164
|
-
return new IslyLazy(factory, name);
|
|
165
|
-
}
|
|
166
|
-
class IslyLazy extends Type {
|
|
167
|
-
constructor(factory, name) {
|
|
168
|
-
super(name ?? (() => (this.backend ??= factory()).name), () => (this.backend ??= factory()).condition);
|
|
169
|
-
this.factory = factory;
|
|
170
|
-
this.class = "lazy";
|
|
171
|
-
this.is = (value) => (this.backend ??= this.factory()).is(value);
|
|
172
|
-
}
|
|
173
|
-
createFlaw(value) {
|
|
174
|
-
return this.createFlawFromType((this.backend ??= this.factory()), value);
|
|
175
|
-
}
|
|
176
|
-
getBackend() {
|
|
177
|
-
return this.backend;
|
|
178
|
-
}
|
|
179
|
-
get(value) {
|
|
180
|
-
return this.backend.get(value);
|
|
181
|
-
}
|
|
182
|
-
}
|
|
183
|
-
|
|
184
|
-
function object(properties, name) {
|
|
185
|
-
return new IslyObject(properties ?? {}, name);
|
|
186
|
-
}
|
|
187
|
-
class IslyObject extends Type {
|
|
188
|
-
constructor(properties, name, baseType) {
|
|
189
|
-
super(() => name ??
|
|
190
|
-
(this.baseType ? `${this.baseType.name} & ` : "") +
|
|
191
|
-
`{${globalThis.Object.entries(this.properties)
|
|
192
|
-
.map(([property, type]) => `${property}: ${type.name}`)
|
|
193
|
-
.join(", ")}}`);
|
|
194
|
-
this.properties = properties;
|
|
195
|
-
this.baseType = baseType;
|
|
196
|
-
this.class = "object";
|
|
197
|
-
this.is = (value) => !!(value &&
|
|
198
|
-
(this.baseType == undefined || this.baseType.is(value)) &&
|
|
199
|
-
typeof value == "object" &&
|
|
200
|
-
!globalThis.Array.isArray(value) &&
|
|
201
|
-
globalThis.Object.entries(this.properties).every(([property, type]) => type.is(value[property])));
|
|
202
|
-
}
|
|
203
|
-
extend(properties, name) {
|
|
204
|
-
return new IslyObject(properties, name, this);
|
|
205
|
-
}
|
|
206
|
-
omit(omits, name) {
|
|
207
|
-
return new IslyObject(globalThis.Object.fromEntries(globalThis.Object.entries(this.properties).filter(([key]) => !omits.includes(key))), name ?? `Omit<${this.name}, ${omits.map(key => `"${String(key)}"`).join(" | ")}>`, this.baseType?.omit(omits));
|
|
208
|
-
}
|
|
209
|
-
pick(picks, name) {
|
|
210
|
-
return new IslyObject(globalThis.Object.fromEntries(globalThis.Object.entries(this.properties).filter(([key]) => picks.includes(key))), name ?? `Pick<${this.name}, ${picks.map(key => `"${String(key)}"`).join(" | ")}>`, this.baseType?.pick(picks));
|
|
211
|
-
}
|
|
212
|
-
createFlaw(value) {
|
|
213
|
-
return {
|
|
214
|
-
flaws: [
|
|
215
|
-
this.baseType ? this.baseType.flaw(value)?.flaws ?? [] : [],
|
|
216
|
-
globalThis.Object.entries(this.properties)
|
|
217
|
-
.map(([property, type]) => [property, type.flaw(value?.[property])])
|
|
218
|
-
.map(([property, flaw]) => (flaw?.isFlaw ?? true) && { property, ...flaw })
|
|
219
|
-
.filter(flaw => flaw),
|
|
220
|
-
]
|
|
221
|
-
.flat()
|
|
222
|
-
.filter(flaw => flaw?.isFlaw ?? true),
|
|
223
|
-
};
|
|
224
|
-
}
|
|
225
|
-
/**
|
|
226
|
-
* get-function on a object returns a object with only specified properties
|
|
227
|
-
*/
|
|
228
|
-
getValue(value) {
|
|
229
|
-
const result = this.baseType ? this.baseType.getValue(value) : {};
|
|
230
|
-
if (result)
|
|
231
|
-
for (const [key, type] of globalThis.Object.entries(this.properties))
|
|
232
|
-
if (key in value)
|
|
233
|
-
result[key] = type.get(value[key]);
|
|
234
|
-
return result;
|
|
235
|
-
}
|
|
236
|
-
getProperties() {
|
|
237
|
-
return { ...this.baseType?.getProperties(), ...this.properties };
|
|
238
|
-
}
|
|
239
|
-
}
|
|
240
|
-
|
|
241
|
-
function string(condition) {
|
|
242
|
-
return new IslyString(condition);
|
|
243
|
-
}
|
|
244
|
-
class IslyString extends Type {
|
|
245
|
-
constructor(stringCondition) {
|
|
246
|
-
super(typeof stringCondition == "string" ? `"${stringCondition}"` : "string", () => {
|
|
247
|
-
const conditionObject = this.getConditionObject();
|
|
248
|
-
return conditionObject instanceof RegExp
|
|
249
|
-
? `/${conditionObject.source}/${conditionObject.flags}`
|
|
250
|
-
: globalThis.Object.keys(conditionObject)
|
|
251
|
-
.map(key => `"${key}"`)
|
|
252
|
-
.join(" | ");
|
|
253
|
-
});
|
|
254
|
-
this.stringCondition = stringCondition;
|
|
255
|
-
this.class = "string";
|
|
256
|
-
this.is = (value) => {
|
|
257
|
-
const conditionObject = this.getConditionObject();
|
|
258
|
-
return (typeof value == "string" &&
|
|
259
|
-
(conditionObject instanceof RegExp
|
|
260
|
-
? conditionObject.test(value)
|
|
261
|
-
: typeof conditionObject == "object"
|
|
262
|
-
? value in conditionObject //TODO, avoid "hasOwnProperty toString etc."
|
|
263
|
-
: conditionObject));
|
|
264
|
-
};
|
|
265
|
-
}
|
|
266
|
-
getConditionObject() {
|
|
267
|
-
return (this.conditionObject ??= Array.isArray(this.stringCondition)
|
|
268
|
-
? this.stringCondition.reduce((result, current) => {
|
|
269
|
-
result[current] = true;
|
|
270
|
-
return result;
|
|
271
|
-
}, globalThis.Object.create(null))
|
|
272
|
-
: typeof this.stringCondition == "string"
|
|
273
|
-
? { [this.stringCondition]: true }
|
|
274
|
-
: typeof this.stringCondition == "object" // Record or RegExp!
|
|
275
|
-
? this.stringCondition
|
|
276
|
-
: true);
|
|
277
|
-
}
|
|
278
|
-
}
|
|
279
|
-
|
|
280
|
-
var Flaw;
|
|
281
|
-
(function (Flaw) {
|
|
282
|
-
Flaw.type = object({
|
|
283
|
-
message: string().optional(),
|
|
284
|
-
isFlaw: boolean().optional(),
|
|
285
|
-
property: string().optional(),
|
|
286
|
-
type: string(),
|
|
287
|
-
flaws: array(lazy(() => Flaw.type)).optional(),
|
|
288
|
-
condition: string().optional(),
|
|
289
|
-
}, "Flaw");
|
|
290
|
-
Flaw.is = Flaw.type.is;
|
|
291
|
-
Flaw.flaw = Flaw.type.flaw;
|
|
292
|
-
})(Flaw || (Flaw = {}));
|
|
3
|
+
const TimeZone = require('./TimeZone-c7477083.js');
|
|
293
4
|
|
|
294
5
|
function fromIs(name, is) {
|
|
295
6
|
return new IslyFromIs(name, is);
|
|
296
7
|
}
|
|
297
|
-
class IslyFromIs extends Type {
|
|
8
|
+
class IslyFromIs extends TimeZone.Type {
|
|
9
|
+
isFunction;
|
|
10
|
+
class = "fromIs";
|
|
298
11
|
constructor(name, isFunction) {
|
|
299
12
|
super(name);
|
|
300
13
|
this.isFunction = isFunction;
|
|
301
|
-
this.class = "fromIs";
|
|
302
|
-
this.is = (value) => this.isFunction(value);
|
|
303
14
|
}
|
|
15
|
+
is = (value) => this.isFunction(value);
|
|
304
16
|
}
|
|
305
17
|
|
|
306
|
-
// eslint-disable-next-line @typescript-eslint/ban-types
|
|
307
18
|
function islyFunction() {
|
|
308
19
|
return new IslyFunction();
|
|
309
20
|
}
|
|
310
|
-
|
|
311
|
-
class
|
|
21
|
+
class IslyFunction extends TimeZone.Type {
|
|
22
|
+
class = "function";
|
|
312
23
|
constructor() {
|
|
313
24
|
super("function");
|
|
314
|
-
this.class = "function";
|
|
315
|
-
this.is = (value) => !!(value && typeof value == "function");
|
|
316
|
-
}
|
|
317
|
-
}
|
|
318
|
-
|
|
319
|
-
const criteriaFunctions = {
|
|
320
|
-
positive: {
|
|
321
|
-
is: (value) => value > 0,
|
|
322
|
-
condition: "> 0",
|
|
323
|
-
},
|
|
324
|
-
negative: {
|
|
325
|
-
is: (value) => value < 0,
|
|
326
|
-
condition: "< 0",
|
|
327
|
-
},
|
|
328
|
-
integer: {
|
|
329
|
-
is: (value) => Number.isInteger(value),
|
|
330
|
-
condition: "Number.isInteger",
|
|
331
|
-
},
|
|
332
|
-
};
|
|
333
|
-
/**
|
|
334
|
-
* NaN, Infinite and -Infinite is not considered to be numbers by this type,
|
|
335
|
-
* since that it is hardly ever desirable when validating input data.
|
|
336
|
-
*
|
|
337
|
-
* @param criteria
|
|
338
|
-
* @returns
|
|
339
|
-
*/
|
|
340
|
-
function number(criteria) {
|
|
341
|
-
const [isFunction, condition] = criteria == undefined ? [undefined, undefined] : fromCriteria(criteria);
|
|
342
|
-
return new IslyNumber(isFunction, condition);
|
|
343
|
-
}
|
|
344
|
-
function fromCriteria(criteria) {
|
|
345
|
-
return /* Eg: criteria == 42 */ typeof criteria == "number"
|
|
346
|
-
? [value => value == criteria, " == " + criteria.toString()]
|
|
347
|
-
: // Eg: criteria == [0,1,2]
|
|
348
|
-
((c) => Array.isArray(c) && c.every(c => typeof c == "number"))(criteria)
|
|
349
|
-
? [value => criteria.map(fromCriteria).some(c => c[0](value)), criteria.join(" | ")]
|
|
350
|
-
: // Eg: criteria == ["positive", "negative"]
|
|
351
|
-
((c) => Array.isArray(c) && c.every(c => typeof c == "string" && c in criteriaFunctions))(criteria)
|
|
352
|
-
? [
|
|
353
|
-
value => criteria.map(fromCriteria).every(c => c[0](value)),
|
|
354
|
-
criteria
|
|
355
|
-
.map(fromCriteria)
|
|
356
|
-
.map(c => c[1])
|
|
357
|
-
.join(" & "),
|
|
358
|
-
]
|
|
359
|
-
: // Eg: criteria == () => true
|
|
360
|
-
typeof criteria === "function"
|
|
361
|
-
? [criteria, "custom"]
|
|
362
|
-
: // Eg: criteria == "positive"
|
|
363
|
-
criteria in criteriaFunctions
|
|
364
|
-
? [criteriaFunctions[criteria].is, criteriaFunctions[criteria].condition]
|
|
365
|
-
: // Eg: criteria is unknown
|
|
366
|
-
[() => false, "Unknown criteria"];
|
|
367
|
-
}
|
|
368
|
-
class IslyNumber extends Type {
|
|
369
|
-
constructor(isFunction, condition) {
|
|
370
|
-
super("number", condition);
|
|
371
|
-
this.isFunction = isFunction;
|
|
372
|
-
this.class = "number";
|
|
373
|
-
this.is = (value) => typeof value == "number" &&
|
|
374
|
-
!Number.isNaN(value - value) && // NaN-NaN==NaN && Infinity-Infinity==NaN && (-Infinity)-(-Infinity)==NaN
|
|
375
|
-
(!this.isFunction || this.isFunction(value));
|
|
376
25
|
}
|
|
26
|
+
is = (value) => !!(value && typeof value == "function");
|
|
377
27
|
}
|
|
378
28
|
|
|
379
29
|
function record(keyType, valueType) {
|
|
380
30
|
return new IslyRecord(keyType, valueType);
|
|
381
31
|
}
|
|
382
|
-
class IslyRecord extends Type {
|
|
32
|
+
class IslyRecord extends TimeZone.Type {
|
|
33
|
+
keyType;
|
|
34
|
+
valueType;
|
|
35
|
+
class = "record";
|
|
383
36
|
constructor(keyType, valueType) {
|
|
384
37
|
super(() => `Record<${keyType.name}, ${valueType.name}>`);
|
|
385
38
|
this.keyType = keyType;
|
|
386
39
|
this.valueType = valueType;
|
|
387
|
-
this.class = "record";
|
|
388
|
-
this.is = (value) => !!(value &&
|
|
389
|
-
typeof value == "object" &&
|
|
390
|
-
!globalThis.Array.isArray(value) &&
|
|
391
|
-
globalThis.Object.entries(value).every(([key, value]) => this.keyType.is(this.keyType.name == "number" && `${+key}` == key ? +key : key) && this.valueType.is(value)));
|
|
392
40
|
}
|
|
41
|
+
is = (value) => !!(value &&
|
|
42
|
+
typeof value == "object" &&
|
|
43
|
+
!globalThis.Array.isArray(value) &&
|
|
44
|
+
globalThis.Object.entries(value).every(([key, value]) => this.keyType.is(this.keyType.name == "number" && `${+key}` == key ? +key : key) && this.valueType.is(value)));
|
|
393
45
|
createFlaw(value) {
|
|
394
46
|
return {
|
|
395
47
|
flaws: value &&
|
|
@@ -408,40 +60,17 @@ class IslyRecord extends Type {
|
|
|
408
60
|
}
|
|
409
61
|
}
|
|
410
62
|
|
|
411
|
-
function union(...types) {
|
|
412
|
-
return new IslyUnion(...types);
|
|
413
|
-
}
|
|
414
|
-
class IslyUnion extends Type {
|
|
415
|
-
constructor(...types) {
|
|
416
|
-
super(() => types.map(type => type.name).join(" | "));
|
|
417
|
-
this.class = "union";
|
|
418
|
-
this.is = (value) => this.types.some(type => type.is(value));
|
|
419
|
-
this.types = types;
|
|
420
|
-
}
|
|
421
|
-
createFlaw(value) {
|
|
422
|
-
return {
|
|
423
|
-
flaws: this.types.map(type => type.flaw(value)).filter(flaw => flaw),
|
|
424
|
-
};
|
|
425
|
-
}
|
|
426
|
-
getValue(value) {
|
|
427
|
-
return this.types.find(type => type.is(value))?.get(value);
|
|
428
|
-
}
|
|
429
|
-
}
|
|
430
|
-
|
|
431
63
|
function islyUndefined(name) {
|
|
432
64
|
return new IslyUndefined(name ?? "undefined");
|
|
433
65
|
}
|
|
434
|
-
class IslyUndefined extends Type {
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
this.class = "undefined";
|
|
438
|
-
this.is = (value) => value === undefined;
|
|
439
|
-
}
|
|
66
|
+
class IslyUndefined extends TimeZone.Type {
|
|
67
|
+
class = "undefined";
|
|
68
|
+
is = (value) => value === undefined;
|
|
440
69
|
}
|
|
441
70
|
|
|
442
71
|
var Hex;
|
|
443
72
|
(function (Hex) {
|
|
444
|
-
Hex.type = string(new RegExp(/^#([0-9a-f]{3}|[0-9a-f]{6})$/i));
|
|
73
|
+
Hex.type = TimeZone.string(new RegExp(/^#([0-9a-f]{3}|[0-9a-f]{6})$/i));
|
|
445
74
|
function toRGB(hex) {
|
|
446
75
|
hex = hex.replace(/^#/, "");
|
|
447
76
|
if (hex.length === 3) {
|
|
@@ -461,10 +90,10 @@ var Hex;
|
|
|
461
90
|
|
|
462
91
|
var HSL;
|
|
463
92
|
(function (HSL) {
|
|
464
|
-
HSL.type = object({
|
|
465
|
-
h: number().optional(),
|
|
466
|
-
s: number().optional(),
|
|
467
|
-
l: number().optional(),
|
|
93
|
+
HSL.type = TimeZone.object({
|
|
94
|
+
h: TimeZone.number().optional(),
|
|
95
|
+
s: TimeZone.number().optional(),
|
|
96
|
+
l: TimeZone.number().optional(),
|
|
468
97
|
});
|
|
469
98
|
function toRGB({ h, s, l }) {
|
|
470
99
|
let r = 0;
|
|
@@ -517,10 +146,10 @@ var HSL;
|
|
|
517
146
|
|
|
518
147
|
exports.RGB = void 0;
|
|
519
148
|
(function (RGB) {
|
|
520
|
-
RGB.type = object({
|
|
521
|
-
r: number().optional(),
|
|
522
|
-
g: number().optional(),
|
|
523
|
-
b: number().optional(),
|
|
149
|
+
RGB.type = TimeZone.object({
|
|
150
|
+
r: TimeZone.number().optional(),
|
|
151
|
+
g: TimeZone.number().optional(),
|
|
152
|
+
b: TimeZone.number().optional(),
|
|
524
153
|
});
|
|
525
154
|
function toHex(rgb) {
|
|
526
155
|
let hex = "";
|
|
@@ -594,7 +223,7 @@ exports.Color = void 0;
|
|
|
594
223
|
"medium",
|
|
595
224
|
"dark",
|
|
596
225
|
];
|
|
597
|
-
Color.type = string(Color.types);
|
|
226
|
+
Color.type = TimeZone.string(Color.types);
|
|
598
227
|
Color.is = Color.type.is;
|
|
599
228
|
})(exports.Color || (exports.Color = {}));
|
|
600
229
|
|
|
@@ -1247,8 +876,8 @@ _Listenable_listeners = new WeakMap();
|
|
|
1247
876
|
|
|
1248
877
|
exports.Data = void 0;
|
|
1249
878
|
(function (Data) {
|
|
1250
|
-
Data.valueType = union(string(), number(), boolean(), fromIs("Blob", value => value instanceof Blob), islyUndefined());
|
|
1251
|
-
Data.type = record(string(), union(lazy(() => Data.type, "Data"), Data.valueType));
|
|
879
|
+
Data.valueType = TimeZone.union(TimeZone.string(), TimeZone.number(), TimeZone.boolean(), fromIs("Blob", value => value instanceof Blob), islyUndefined());
|
|
880
|
+
Data.type = record(TimeZone.string(), TimeZone.union(TimeZone.lazy(() => Data.type, "Data"), Data.valueType));
|
|
1252
881
|
function set(data, [head, ...tail], value) {
|
|
1253
882
|
const current = data[head !== null && head !== void 0 ? head : ""];
|
|
1254
883
|
return Object.assign(Object.assign({}, data), { [head !== null && head !== void 0 ? head : ""]: !tail.length
|
|
@@ -1261,7 +890,7 @@ exports.Data = void 0;
|
|
|
1261
890
|
}
|
|
1262
891
|
Data.deepen = deepen;
|
|
1263
892
|
function isArrayRecord(d) {
|
|
1264
|
-
return (object().is(d) && (keys => !!keys.length && keys.every(k => parseInt(k).toString() == k))(Object.keys(d)));
|
|
893
|
+
return (TimeZone.object().is(d) && (keys => !!keys.length && keys.every(k => parseInt(k).toString() == k))(Object.keys(d)));
|
|
1265
894
|
}
|
|
1266
895
|
function convertArrays(data) {
|
|
1267
896
|
return isArrayRecord(data)
|
|
@@ -1269,7 +898,7 @@ exports.Data = void 0;
|
|
|
1269
898
|
arr[k] = convertArrays(v);
|
|
1270
899
|
return arr;
|
|
1271
900
|
}, [])
|
|
1272
|
-
: object().is(data) && !(data instanceof Blob || data instanceof File)
|
|
901
|
+
: TimeZone.object().is(data) && !(data instanceof Blob || data instanceof File)
|
|
1273
902
|
? Object.fromEntries(Object.entries(data).map(([k, v]) => [k, convertArrays(v)]))
|
|
1274
903
|
: data;
|
|
1275
904
|
}
|
|
@@ -1303,8 +932,8 @@ exports.Data = void 0;
|
|
|
1303
932
|
exports.Submit = void 0;
|
|
1304
933
|
(function (Submit) {
|
|
1305
934
|
Submit.types = ["update", "change", "fetch", "create", "remove"];
|
|
1306
|
-
Submit.type = object({
|
|
1307
|
-
type: string(Submit.types).optional(),
|
|
935
|
+
Submit.type = TimeZone.object({
|
|
936
|
+
type: TimeZone.string(Submit.types).optional(),
|
|
1308
937
|
result: islyFunction(),
|
|
1309
938
|
value: exports.Data.type,
|
|
1310
939
|
});
|
|
@@ -1330,13 +959,8 @@ exports.Scrollable = void 0;
|
|
|
1330
959
|
})(exports.Scrollable || (exports.Scrollable = {}));
|
|
1331
960
|
|
|
1332
961
|
exports.Listenable = Listenable;
|
|
1333
|
-
exports.Type = Type;
|
|
1334
|
-
exports.boolean = boolean;
|
|
1335
962
|
exports.fromIs = fromIs;
|
|
1336
963
|
exports.islyFunction = islyFunction;
|
|
1337
|
-
exports.number = number;
|
|
1338
|
-
exports.object = object;
|
|
1339
964
|
exports.record = record;
|
|
1340
|
-
exports.string = string;
|
|
1341
965
|
|
|
1342
|
-
//# sourceMappingURL=Scrollable-
|
|
966
|
+
//# sourceMappingURL=Scrollable-20426515.js.map
|