urnovl-web-components 0.0.122 → 0.0.124
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/{anchor-d65db314.js → anchor-fbe32ab5.js} +2 -2
- package/dist/cjs/{button-base-6d33489e.js → button-base-b31009d4.js} +5 -5
- package/dist/cjs/{check-ec649631.js → check-4aecf34f.js} +2 -2
- package/dist/cjs/{default-value-9dede568.js → default-value-d2522e56.js} +1 -1
- package/dist/cjs/{form-ca3bc95b.js → form-7985cf89.js} +1 -1
- package/dist/cjs/{if-defined-48451a63.js → if-defined-df505db5.js} +1 -1
- package/dist/cjs/{index-9d5522dc.js → index-41dd2152.js} +40 -43
- package/dist/cjs/{index-df8d45ed.js → index-538e8bdd.js} +7 -7
- package/dist/cjs/{index-d27d1b09.js → index-5a4f2dc9.js} +5 -5
- package/dist/cjs/{index-223246f4.js → index-6f8876d6.js} +5 -5
- package/dist/cjs/{index-af06bf47.js → index-7685ace6.js} +11 -5
- package/dist/cjs/{index-bf186f5a.js → index-8f6f2f72.js} +4 -2
- package/dist/cjs/{index-e7ded6b3.js → index-f8fdc2a1.js} +8 -8
- package/dist/cjs/{live-6d950426.js → live-4aaf6c9f.js} +1 -1
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/{observeResize-ae9d0c7f.js → observeResize-81796513.js} +1 -1
- package/dist/cjs/{svg-tag-14467627.js → svg-tag-f5e232ad.js} +1 -1
- package/dist/cjs/{template-69b74df2.js → template-c6aa8fba.js} +1 -1
- package/dist/cjs/{ur-avatar-73d3234d.js → ur-avatar-db77ad6e.js} +1 -1
- package/dist/cjs/ur-avatar.cjs.entry.js +2 -2
- package/dist/cjs/{ur-button-d33015ca.js → ur-button-83c55b81.js} +2 -2
- package/dist/cjs/ur-button-arrow-left_2.cjs.entry.js +8 -8
- package/dist/cjs/ur-button-icon.cjs.entry.js +8 -8
- package/dist/cjs/ur-button.cjs.entry.js +9 -9
- package/dist/cjs/ur-checkbox.cjs.entry.js +8 -8
- package/dist/cjs/ur-chip.cjs.entry.js +10 -10
- package/dist/cjs/ur-loader.cjs.entry.js +1 -1
- package/dist/cjs/ur-locale-filter-button.cjs.entry.js +8 -8
- package/dist/cjs/ur-locale-filter-panel.cjs.entry.js +12 -12
- package/dist/cjs/{ur-menu-item-bf376c5e.js → ur-menu-item-60df345e.js} +39 -13
- package/dist/cjs/ur-menu-item.cjs.entry.js +8 -9
- package/dist/cjs/ur-novl-carousel.cjs.entry.js +1 -1
- package/dist/cjs/ur-novl.cjs.entry.js +1 -1
- package/dist/cjs/ur-page-profile.cjs.entry.js +10 -10
- package/dist/cjs/ur-page.cjs.entry.js +1 -1
- package/dist/cjs/ur-profile.cjs.entry.js +8 -8
- package/dist/cjs/ur-radio-button.cjs.entry.js +4 -4
- package/dist/cjs/ur-segment-button.cjs.entry.js +12 -12
- package/dist/cjs/ur-select.cjs.entry.js +33 -30
- package/dist/cjs/ur-switch.cjs.entry.js +10 -10
- package/dist/cjs/ur-tabs.cjs.entry.js +12 -10
- package/dist/cjs/ur-text-field.cjs.entry.js +13 -14
- package/dist/cjs/ur-user-profile.cjs.entry.js +1 -1
- package/dist/cjs/ur-user.cjs.entry.js +1 -1
- package/dist/cjs/urnovl-web-components.cjs.js +2 -2
- package/dist/collection/collection-manifest.json +1 -1
- package/dist/components/index.js +1 -1
- package/dist/components/{p-5fe9e6c4.js → p-060ff046.js} +5 -5
- package/dist/components/{p-d93d0b1c.js → p-0cacc938.js} +2 -2
- package/dist/components/{p-c28d98b0.js → p-13ea1d1c.js} +1 -1
- package/dist/components/{p-c0d1fd1e.js → p-14c3ee4e.js} +1 -1
- package/dist/components/{p-c14b5413.js → p-1becfc64.js} +2 -2
- package/dist/components/{p-8bd4adb2.js → p-1c186c42.js} +1 -1
- package/dist/components/{p-9a3361b5.js → p-2ad6a986.js} +1 -1
- package/dist/components/{p-89e2af5d.js → p-4aad6d75.js} +1 -1
- package/dist/components/{p-e8bed90c.js → p-545fff6f.js} +5 -2
- package/dist/components/{p-7a210096.js → p-58f56e3e.js} +33 -9
- package/dist/components/{p-87eb4ddb.js → p-86f6cf79.js} +1 -1
- package/dist/components/{p-0e714840.js → p-8f689f61.js} +1 -1
- package/dist/components/{p-5147c0ed.js → p-8ffe78c4.js} +1 -1
- package/dist/components/{p-cbf7e1a4.js → p-926e2aa8.js} +91 -94
- package/dist/components/{p-cf6686f3.js → p-a66d53be.js} +5 -5
- package/dist/components/{p-54688b28.js → p-af3cded1.js} +5 -5
- package/dist/components/{p-b45135a3.js → p-b7e4f573.js} +2 -2
- package/dist/components/{p-61006c32.js → p-b875c860.js} +8 -8
- package/dist/components/{p-f96b80de.js → p-c3479586.js} +2 -2
- package/dist/components/{p-6c79d184.js → p-ce5dfb7b.js} +1 -1
- package/dist/components/{p-35bf5d01.js → p-e8ed5b65.js} +11 -5
- package/dist/components/{p-00167b11.js → p-ef1ec581.js} +2 -2
- package/dist/components/{p-979e6321.js → p-f03a45f5.js} +7 -7
- package/dist/components/ur-avatar.js +1 -1
- package/dist/components/ur-button-arrow-left.js +1 -1
- package/dist/components/ur-button-arrow-right.js +1 -1
- package/dist/components/ur-button-icon.js +2 -2
- package/dist/components/ur-button.js +1 -1
- package/dist/components/ur-checkbox.js +2 -2
- package/dist/components/ur-chip.js +2 -2
- package/dist/components/ur-loader.js +1 -1
- package/dist/components/ur-locale-filter-button.js +2 -2
- package/dist/components/ur-locale-filter-panel.js +3 -3
- package/dist/components/ur-menu-item.js +1 -1
- package/dist/components/ur-novl-carousel.js +4 -4
- package/dist/components/ur-novl.js +1 -1
- package/dist/components/ur-page-profile.js +3 -3
- package/dist/components/ur-page.js +2 -2
- package/dist/components/ur-profile.js +2 -2
- package/dist/components/ur-radio-button.js +4 -4
- package/dist/components/ur-segment-button.js +11 -11
- package/dist/components/ur-select.js +21 -18
- package/dist/components/ur-switch.js +9 -9
- package/dist/components/ur-tabs.js +12 -10
- package/dist/components/ur-text-field.js +2 -2
- package/dist/components/ur-user-profile.js +1 -1
- package/dist/components/ur-user.js +2 -2
- package/dist/esm/{anchor-234444e9.js → anchor-73176f85.js} +2 -2
- package/dist/esm/{button-base-e7ce26b9.js → button-base-af21400a.js} +5 -5
- package/dist/esm/{check-cf38017f.js → check-a3ab48d8.js} +2 -2
- package/dist/esm/{default-value-1bcf6faf.js → default-value-194248da.js} +1 -1
- package/dist/esm/{form-cd433b90.js → form-d64665f2.js} +1 -1
- package/dist/esm/{if-defined-1952c831.js → if-defined-1c1884d3.js} +1 -1
- package/dist/esm/{index-6e200e9e.js → index-2afa0799.js} +5 -5
- package/dist/esm/{index-8c560284.js → index-56c865af.js} +8 -8
- package/dist/esm/{index-21eb171f.js → index-64abc41c.js} +7 -7
- package/dist/esm/{index-5e2c6f54.js → index-90d9f889.js} +5 -2
- package/dist/esm/{index-605a05c8.js → index-dbcbf586.js} +5 -5
- package/dist/esm/{index-43ae7c43.js → index-f15f4fb2.js} +91 -94
- package/dist/esm/{index-08ff870a.js → index-ff4c2c65.js} +11 -5
- package/dist/esm/{live-8e188ebf.js → live-b0e80dd8.js} +1 -1
- package/dist/esm/loader.js +2 -2
- package/dist/esm/{observeResize-8b7fc3de.js → observeResize-858df529.js} +1 -1
- package/dist/esm/{svg-tag-c4984ae2.js → svg-tag-126d1c9c.js} +1 -1
- package/dist/esm/{template-3fa888ef.js → template-6a841f8a.js} +1 -1
- package/dist/esm/{ur-avatar-e31b1773.js → ur-avatar-d032ba51.js} +1 -1
- package/dist/esm/ur-avatar.entry.js +2 -2
- package/dist/esm/ur-button-arrow-left_2.entry.js +8 -8
- package/dist/esm/{ur-button-a1db15c4.js → ur-button-fae5b2bb.js} +2 -2
- package/dist/esm/ur-button-icon.entry.js +8 -8
- package/dist/esm/ur-button.entry.js +9 -9
- package/dist/esm/ur-checkbox.entry.js +8 -8
- package/dist/esm/ur-chip.entry.js +10 -10
- package/dist/esm/ur-loader.entry.js +1 -1
- package/dist/esm/ur-locale-filter-button.entry.js +8 -8
- package/dist/esm/ur-locale-filter-panel.entry.js +12 -12
- package/dist/esm/{ur-menu-item-d8f96fb3.js → ur-menu-item-8312d967.js} +33 -9
- package/dist/esm/ur-menu-item.entry.js +8 -9
- package/dist/esm/ur-novl-carousel.entry.js +1 -1
- package/dist/esm/ur-novl.entry.js +1 -1
- package/dist/esm/ur-page-profile.entry.js +10 -10
- package/dist/esm/ur-page.entry.js +1 -1
- package/dist/esm/ur-profile.entry.js +8 -8
- package/dist/esm/ur-radio-button.entry.js +4 -4
- package/dist/esm/ur-segment-button.entry.js +12 -12
- package/dist/esm/ur-select.entry.js +28 -25
- package/dist/esm/ur-switch.entry.js +10 -10
- package/dist/esm/ur-tabs.entry.js +12 -10
- package/dist/esm/ur-text-field.entry.js +13 -14
- package/dist/esm/ur-user-profile.entry.js +1 -1
- package/dist/esm/ur-user.entry.js +1 -1
- package/dist/esm/urnovl-web-components.js +3 -3
- package/dist/types/stencil-public-runtime.d.ts +2 -0
- package/dist/urnovl-web-components/p-0353be09.js +1 -0
- package/dist/urnovl-web-components/{p-568dc55d.entry.js → p-06f79ed9.entry.js} +1 -1
- package/dist/urnovl-web-components/p-0f9c0caf.js +1 -0
- package/dist/urnovl-web-components/{p-2f53a87c.js → p-13779355.js} +1 -1
- package/dist/urnovl-web-components/{p-45c75b89.js → p-14cc728b.js} +1 -1
- package/dist/urnovl-web-components/{p-c9b315a5.entry.js → p-1b7aaff8.entry.js} +1 -1
- package/{www/build/p-8774b1ce.js → dist/urnovl-web-components/p-20df7ded.js} +1 -1
- package/{www/build/p-7027a479.js → dist/urnovl-web-components/p-24f16d9f.js} +2 -2
- package/dist/urnovl-web-components/{p-34b8325f.entry.js → p-25a64846.entry.js} +1 -1
- package/{www/build/p-8bf2cf99.js → dist/urnovl-web-components/p-286a559a.js} +1 -1
- package/dist/urnovl-web-components/{p-9be2a432.entry.js → p-2aa6e14c.entry.js} +1 -1
- package/{www/build/p-3621b53d.entry.js → dist/urnovl-web-components/p-2c0081a1.entry.js} +1 -1
- package/dist/urnovl-web-components/{p-16040021.js → p-37a707f7.js} +1 -1
- package/dist/urnovl-web-components/p-38335e07.js +23 -0
- package/{www/build/p-d9729daf.js → dist/urnovl-web-components/p-383fc5e0.js} +1 -1
- package/dist/urnovl-web-components/p-41cac036.entry.js +1 -0
- package/dist/urnovl-web-components/p-4ba07eb1.entry.js +3 -0
- package/dist/urnovl-web-components/p-50ace39e.entry.js +1 -0
- package/dist/urnovl-web-components/{p-a89004da.entry.js → p-551b7829.entry.js} +1 -1
- package/dist/urnovl-web-components/p-5ad63aa9.js +1 -0
- package/dist/urnovl-web-components/p-5e267cc9.entry.js +1 -0
- package/dist/urnovl-web-components/{p-b33369f1.entry.js → p-67787ea9.entry.js} +1 -1
- package/dist/urnovl-web-components/p-6bce190e.js +1 -0
- package/dist/urnovl-web-components/{p-43c54b9c.js → p-75bbbe0b.js} +1 -1
- package/dist/urnovl-web-components/p-7d6df3bb.entry.js +1 -0
- package/{www/build/p-c3f6aecb.entry.js → dist/urnovl-web-components/p-83393c3f.entry.js} +1 -1
- package/{www/build/p-4dd6cbc3.entry.js → dist/urnovl-web-components/p-9308d799.entry.js} +1 -1
- package/dist/urnovl-web-components/p-a3e9621e.js +1 -0
- package/dist/urnovl-web-components/p-a8a6fe2a.entry.js +1 -0
- package/dist/urnovl-web-components/p-aa8c4a77.entry.js +1 -0
- package/dist/urnovl-web-components/{p-9d7cfe3f.entry.js → p-abae7c16.entry.js} +1 -1
- package/dist/urnovl-web-components/p-ac82313d.entry.js +1 -0
- package/dist/urnovl-web-components/p-afa784ca.entry.js +1 -0
- package/dist/urnovl-web-components/p-b9795958.entry.js +1 -0
- package/dist/urnovl-web-components/p-ba673d9f.js +3 -0
- package/{www/build/p-c13f0709.js → dist/urnovl-web-components/p-bc9a5c46.js} +1 -1
- package/dist/urnovl-web-components/p-c2d0403f.js +3 -0
- package/dist/urnovl-web-components/{p-6e30400f.entry.js → p-ef97a1d7.entry.js} +1 -1
- package/dist/urnovl-web-components/p-f1a1587f.js +1 -0
- package/dist/urnovl-web-components/{p-a3d24284.entry.js → p-f32c914e.entry.js} +1 -1
- package/dist/urnovl-web-components/p-f52d5b8f.entry.js +1 -0
- package/dist/urnovl-web-components/{p-af8e49d6.js → p-f55dac6a.js} +1 -1
- package/dist/urnovl-web-components/p-fb80ce0f.js +3 -0
- package/dist/urnovl-web-components/urnovl-web-components.esm.js +1 -1
- package/package.json +6 -6
- package/www/build/p-0353be09.js +1 -0
- package/www/build/{p-568dc55d.entry.js → p-06f79ed9.entry.js} +1 -1
- package/www/build/p-0f9c0caf.js +1 -0
- package/www/build/{p-2f53a87c.js → p-13779355.js} +1 -1
- package/www/build/{p-45c75b89.js → p-14cc728b.js} +1 -1
- package/www/build/{p-c9b315a5.entry.js → p-1b7aaff8.entry.js} +1 -1
- package/{dist/urnovl-web-components/p-8774b1ce.js → www/build/p-20df7ded.js} +1 -1
- package/{dist/urnovl-web-components/p-7027a479.js → www/build/p-24f16d9f.js} +2 -2
- package/www/build/{p-34b8325f.entry.js → p-25a64846.entry.js} +1 -1
- package/{dist/urnovl-web-components/p-8bf2cf99.js → www/build/p-286a559a.js} +1 -1
- package/www/build/{p-9be2a432.entry.js → p-2aa6e14c.entry.js} +1 -1
- package/{dist/urnovl-web-components/p-3621b53d.entry.js → www/build/p-2c0081a1.entry.js} +1 -1
- package/www/build/{p-16040021.js → p-37a707f7.js} +1 -1
- package/www/build/p-38335e07.js +23 -0
- package/{dist/urnovl-web-components/p-d9729daf.js → www/build/p-383fc5e0.js} +1 -1
- package/www/build/p-41cac036.entry.js +1 -0
- package/www/build/p-4ba07eb1.entry.js +3 -0
- package/www/build/p-50ace39e.entry.js +1 -0
- package/www/build/{p-a89004da.entry.js → p-551b7829.entry.js} +1 -1
- package/www/build/p-5ad63aa9.js +1 -0
- package/www/build/p-5e267cc9.entry.js +1 -0
- package/www/build/{p-b33369f1.entry.js → p-67787ea9.entry.js} +1 -1
- package/www/build/p-6bce190e.js +1 -0
- package/www/build/{p-43c54b9c.js → p-75bbbe0b.js} +1 -1
- package/www/build/p-7d6df3bb.entry.js +1 -0
- package/{dist/urnovl-web-components/p-c3f6aecb.entry.js → www/build/p-83393c3f.entry.js} +1 -1
- package/{dist/urnovl-web-components/p-4dd6cbc3.entry.js → www/build/p-9308d799.entry.js} +1 -1
- package/www/build/p-a3e9621e.js +1 -0
- package/www/build/p-a8a6fe2a.entry.js +1 -0
- package/www/build/p-aa8c4a77.entry.js +1 -0
- package/www/build/{p-9d7cfe3f.entry.js → p-abae7c16.entry.js} +1 -1
- package/www/build/p-ac82313d.entry.js +1 -0
- package/www/build/p-afa784ca.entry.js +1 -0
- package/www/build/p-b9795958.entry.js +1 -0
- package/www/build/p-ba673d9f.js +3 -0
- package/{dist/urnovl-web-components/p-c13f0709.js → www/build/p-bc9a5c46.js} +1 -1
- package/www/build/p-c2d0403f.js +3 -0
- package/www/build/{p-636ab85d.js → p-eb095e01.js} +1 -1
- package/www/build/{p-6e30400f.entry.js → p-ef97a1d7.entry.js} +1 -1
- package/www/build/p-f1a1587f.js +1 -0
- package/www/build/{p-a3d24284.entry.js → p-f32c914e.entry.js} +1 -1
- package/www/build/p-f52d5b8f.entry.js +1 -0
- package/www/build/{p-af8e49d6.js → p-f55dac6a.js} +1 -1
- package/www/build/p-fb80ce0f.js +3 -0
- package/www/build/urnovl-web-components.esm.js +1 -1
- package/dist/cjs/motion-08f1ceb2.js +0 -31
- package/dist/components/p-371bbdb8.js +0 -28
- package/dist/esm/motion-c7f3b0b7.js +0 -28
- package/dist/urnovl-web-components/p-1817f510.entry.js +0 -1
- package/dist/urnovl-web-components/p-2319d0ac.js +0 -1
- package/dist/urnovl-web-components/p-29047928.entry.js +0 -1
- package/dist/urnovl-web-components/p-2efd6656.js +0 -3
- package/dist/urnovl-web-components/p-31079eaa.js +0 -3
- package/dist/urnovl-web-components/p-42e2d3fc.js +0 -3
- package/dist/urnovl-web-components/p-4334ed52.js +0 -23
- package/dist/urnovl-web-components/p-56992101.entry.js +0 -3
- package/dist/urnovl-web-components/p-5e3b0242.js +0 -1
- package/dist/urnovl-web-components/p-63c946b1.js +0 -1
- package/dist/urnovl-web-components/p-6c407421.entry.js +0 -1
- package/dist/urnovl-web-components/p-7fcbfedb.entry.js +0 -1
- package/dist/urnovl-web-components/p-8deb2120.js +0 -1
- package/dist/urnovl-web-components/p-961afd3a.entry.js +0 -1
- package/dist/urnovl-web-components/p-ba876be5.js +0 -1
- package/dist/urnovl-web-components/p-c80c1bd5.entry.js +0 -1
- package/dist/urnovl-web-components/p-cf0b76c5.entry.js +0 -1
- package/dist/urnovl-web-components/p-d0af83dc.js +0 -1
- package/dist/urnovl-web-components/p-d9f10a28.entry.js +0 -1
- package/dist/urnovl-web-components/p-eaf61940.entry.js +0 -1
- package/dist/urnovl-web-components/p-f3f81737.js +0 -1
- package/dist/urnovl-web-components/p-fd879c4a.entry.js +0 -1
- package/www/build/p-1817f510.entry.js +0 -1
- package/www/build/p-2319d0ac.js +0 -1
- package/www/build/p-29047928.entry.js +0 -1
- package/www/build/p-2efd6656.js +0 -3
- package/www/build/p-31079eaa.js +0 -3
- package/www/build/p-42e2d3fc.js +0 -3
- package/www/build/p-4334ed52.js +0 -23
- package/www/build/p-56992101.entry.js +0 -3
- package/www/build/p-5e3b0242.js +0 -1
- package/www/build/p-63c946b1.js +0 -1
- package/www/build/p-6c407421.entry.js +0 -1
- package/www/build/p-7fcbfedb.entry.js +0 -1
- package/www/build/p-8deb2120.js +0 -1
- package/www/build/p-961afd3a.entry.js +0 -1
- package/www/build/p-ba876be5.js +0 -1
- package/www/build/p-c80c1bd5.entry.js +0 -1
- package/www/build/p-cf0b76c5.entry.js +0 -1
- package/www/build/p-d0af83dc.js +0 -1
- package/www/build/p-d9f10a28.entry.js +0 -1
- package/www/build/p-eaf61940.entry.js +0 -1
- package/www/build/p-f3f81737.js +0 -1
- package/www/build/p-fd879c4a.entry.js +0 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
const index = require('./index-
|
|
4
|
-
const ifDefined = require('./if-defined-
|
|
3
|
+
const index = require('./index-8f6f2f72.js');
|
|
4
|
+
const ifDefined = require('./if-defined-df505db5.js');
|
|
5
5
|
|
|
6
6
|
function cc(names) {
|
|
7
7
|
if (typeof names === "string" || typeof names === "number") return "" + names
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
const index = require('./index-
|
|
4
|
-
const ifDefined = require('./if-defined-
|
|
5
|
-
const anchor = require('./anchor-
|
|
6
|
-
const form = require('./form-
|
|
7
|
-
const template = require('./template-
|
|
3
|
+
const index = require('./index-8f6f2f72.js');
|
|
4
|
+
const ifDefined = require('./if-defined-df505db5.js');
|
|
5
|
+
const anchor = require('./anchor-fbe32ab5.js');
|
|
6
|
+
const form = require('./form-7985cf89.js');
|
|
7
|
+
const template = require('./template-c6aa8fba.js');
|
|
8
8
|
|
|
9
9
|
const style = index.i `:host{position:relative;display:inline-block;flex-shrink:0;width:2.5rem;height:2.5rem;stroke:rgb(var(--mdui-color-primary))}.progress{position:relative;display:inline-block;width:100%;height:100%;text-align:left;transition:opacity var(--mdui-motion-duration-medium1) var(--mdui-motion-easing-linear)}.determinate svg{transform:rotate(-90deg);fill:transparent}.determinate .track{stroke:transparent}.determinate .circle{stroke:inherit;transition:stroke-dashoffset var(--mdui-motion-duration-long2) var(--mdui-motion-easing-standard)}.indeterminate{font-size:0;letter-spacing:0;white-space:nowrap;animation:mdui-comp-circular-progress-rotate 1568ms var(--mdui-motion-easing-linear) infinite}.indeterminate .circle,.indeterminate .layer{position:absolute;width:100%;height:100%}.indeterminate .layer{animation:mdui-comp-circular-progress-layer-rotate 5332ms var(--mdui-motion-easing-standard) infinite both}.indeterminate .circle{fill:transparent;stroke:inherit}.indeterminate .gap-patch{position:absolute;top:0;left:47.5%;width:5%;height:100%;overflow:hidden}.indeterminate .gap-patch .circle{left:-900%;width:2000%;transform:rotate(180deg)}.indeterminate .clipper{position:relative;display:inline-block;width:50%;height:100%;overflow:hidden}.indeterminate .clipper .circle{width:200%}.indeterminate .clipper.left .circle{animation:mdui-comp-circular-progress-left-spin 1333ms var(--mdui-motion-easing-standard) infinite both}.indeterminate .clipper.right .circle{left:-100%;animation:mdui-comp-circular-progress-right-spin 1333ms var(--mdui-motion-easing-standard) infinite both}@keyframes mdui-comp-circular-progress-rotate{to{transform:rotate(360deg)}}@keyframes mdui-comp-circular-progress-layer-rotate{12.5%{transform:rotate(135deg)}25%{transform:rotate(270deg)}37.5%{transform:rotate(405deg)}50%{transform:rotate(540deg)}62.5%{transform:rotate(675deg)}75%{transform:rotate(810deg)}87.5%{transform:rotate(945deg)}100%{transform:rotate(1080deg)}}@keyframes mdui-comp-circular-progress-left-spin{0%{transform:rotate(265deg)}50%{transform:rotate(130deg)}100%{transform:rotate(265deg)}}@keyframes mdui-comp-circular-progress-right-spin{0%{transform:rotate(-265deg)}50%{transform:rotate(-130deg)}100%{transform:rotate(-265deg)}}`;
|
|
10
10
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
const index = require('./index-
|
|
4
|
-
const svgTag = require('./svg-tag-
|
|
3
|
+
const index = require('./index-8f6f2f72.js');
|
|
4
|
+
const svgTag = require('./svg-tag-f5e232ad.js');
|
|
5
5
|
|
|
6
6
|
let IconCheck = class IconCheck extends index.h {
|
|
7
7
|
render() {
|
|
@@ -1,17 +1,16 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
const index = require('./index-
|
|
4
|
-
const ifDefined = require('./if-defined-
|
|
5
|
-
const live = require('./live-
|
|
3
|
+
const index = require('./index-8f6f2f72.js');
|
|
4
|
+
const ifDefined = require('./if-defined-df505db5.js');
|
|
5
|
+
const live = require('./live-4aaf6c9f.js');
|
|
6
6
|
const uniqueId = require('./uniqueId-13414ac5.js');
|
|
7
|
-
const form = require('./form-
|
|
8
|
-
const defaultValue = require('./default-value-
|
|
7
|
+
const form = require('./form-7985cf89.js');
|
|
8
|
+
const defaultValue = require('./default-value-d2522e56.js');
|
|
9
9
|
const watch = require('./watch-fc873d99.js');
|
|
10
|
-
const
|
|
11
|
-
const
|
|
12
|
-
const
|
|
13
|
-
|
|
14
|
-
require('./index-d27d1b09.js');
|
|
10
|
+
const observeResize = require('./observeResize-81796513.js');
|
|
11
|
+
const template = require('./template-c6aa8fba.js');
|
|
12
|
+
const svgTag = require('./svg-tag-f5e232ad.js');
|
|
13
|
+
require('./index-5a4f2dc9.js');
|
|
15
14
|
|
|
16
15
|
/**
|
|
17
16
|
* @license
|
|
@@ -130,10 +129,6 @@ let loading = new Deferred();
|
|
|
130
129
|
// return if the user immediately calls setLocale(sourceLocale).
|
|
131
130
|
loading.resolve();
|
|
132
131
|
|
|
133
|
-
const i=new WeakMap;
|
|
134
|
-
|
|
135
|
-
let o=0;const r=new Map,n=new WeakSet,a=()=>new Promise((t=>requestAnimationFrame(t))),g=(t,i)=>{const s=t-i;return 0===s?void 0:s},w=(t,i)=>{const s=t/i;return 1===s?void 0:s},N={left:(t,i)=>{const s=g(t,i);return {value:s,transform:null==s||isNaN(s)?void 0:`translateX(${s}px)`}},top:(t,i)=>{const s=g(t,i);return {value:s,transform:null==s||isNaN(s)?void 0:`translateY(${s}px)`}},width:(t,i)=>{let s;0===i&&(i=1,s={width:"1px"});const e=w(t,i);return {value:e,overrideFrom:s,transform:null==e||isNaN(e)?void 0:`scaleX(${e})`}},height:(t,i)=>{let s;0===i&&(i=1,s={height:"1px"});const e=w(t,i);return {value:e,overrideFrom:s,transform:null==e||isNaN(e)?void 0:`scaleY(${e})`}}},A={duration:333,easing:"ease-in-out"},b=["left","top","width","height","opacity","color","background"],j=new WeakMap;class x extends index.$t{constructor(t){if(super(t),this.t=!1,this.i=null,this.o=null,this.h=!0,this.shouldLog=!1,t.type===index.t$1.CHILD)throw Error("The `animate` directive must be used in attribute position.");this.createFinished();}createFinished(){this.resolveFinished?.(),this.finished=new Promise((t=>{this.l=t;}));}async resolveFinished(){this.l?.(),this.l=void 0;}render(i){return index.D}getController(){return i.get(this.u)}isDisabled(){return this.options.disabled||this.getController()?.disabled}update(t,[i]){const s=void 0===this.u;return s&&(this.u=t.options?.host,this.u.addController(this),this.u.updateComplete.then((t=>this.t=!0)),this.element=t.element,j.set(this.element,this)),this.optionsOrCallback=i,(s||"function"!=typeof i)&&this.p(i),this.render(i)}p(t){t=t??{};const i=this.getController();void 0!==i&&((t={...i.defaultOptions,...t}).keyframeOptions={...i.defaultOptions.keyframeOptions,...t.keyframeOptions}),t.properties??=b,this.options=t;}m(){const t={},i=this.element.getBoundingClientRect(),s=getComputedStyle(this.element);return this.options.properties.forEach((e=>{const h=i[e]??(N[e]?void 0:s[e]),o=Number(h);t[e]=isNaN(o)?h+"":o;})),t}v(){let t,i=!0;return this.options.guard&&(t=this.options.guard(),i=((t,i)=>{if(Array.isArray(t)){if(Array.isArray(i)&&i.length===t.length&&t.every(((t,s)=>t===i[s])))return !1}else if(i===t)return !1;return !0})(t,this._)),this.h=this.t&&!this.isDisabled()&&!this.isAnimating()&&i&&this.element.isConnected,this.h&&(this._=Array.isArray(t)?Array.from(t):t),this.h}hostUpdate(){"function"==typeof this.optionsOrCallback&&this.p(this.optionsOrCallback()),this.v()&&(this.A=this.m(),this.i=this.i??this.element.parentNode,this.o=this.element.nextSibling);}async hostUpdated(){if(!this.h||!this.element.isConnected||this.options.skipInitial&&!this.isHostRendered)return;let t;this.prepare(),await a;const i=this.O(),s=this.j(this.options.keyframeOptions,i),e=this.m();if(void 0!==this.A){const{from:s,to:h}=this.N(this.A,e,i);this.log("measured",[this.A,e,s,h]),t=this.calculateKeyframes(s,h);}else {const s=r.get(this.options.inId);if(s){r.delete(this.options.inId);const{from:h,to:n}=this.N(s,e,i);t=this.calculateKeyframes(h,n),t=this.options.in?[{...this.options.in[0],...t[0]},...this.options.in.slice(1),t[1]]:t,o++,t.forEach((t=>t.zIndex=o));}else this.options.in&&(t=[...this.options.in,{}]);}this.animate(t,s);}resetStyles(){void 0!==this.P&&(this.element.setAttribute("style",this.P??""),this.P=void 0);}commitStyles(){this.P=this.element.getAttribute("style"),this.webAnimation?.commitStyles(),this.webAnimation?.cancel();}reconnected(){}async disconnected(){if(!this.h)return;if(void 0!==this.options.id&&r.set(this.options.id,this.A),void 0===this.options.out)return;if(this.prepare(),await a(),this.i?.isConnected){const t=this.o&&this.o.parentNode===this.i?this.o:null;if(this.i.insertBefore(this.element,t),this.options.stabilizeOut){const t=this.m();this.log("stabilizing out");const i=this.A.left-t.left,s=this.A.top-t.top;!("static"===getComputedStyle(this.element).position)||0===i&&0===s||(this.element.style.position="relative"),0!==i&&(this.element.style.left=i+"px"),0!==s&&(this.element.style.top=s+"px");}}const t=this.j(this.options.keyframeOptions);await this.animate(this.options.out,t),this.element.remove();}prepare(){this.createFinished();}start(){this.options.onStart?.(this);}didFinish(t){t&&this.options.onComplete?.(this),this.A=void 0,this.animatingProperties=void 0,this.frames=void 0,this.resolveFinished();}O(){const t=[];for(let i=this.element.parentNode;i;i=i?.parentNode){const s=j.get(i);s&&!s.isDisabled()&&s&&t.push(s);}return t}get isHostRendered(){const t=n.has(this.u);return t||this.u.updateComplete.then((()=>{n.add(this.u);})),t}j(t,i=this.O()){const s={...A};return i.forEach((t=>Object.assign(s,t.options.keyframeOptions))),Object.assign(s,t),s}N(t,i,s){t={...t},i={...i};const e=s.map((t=>t.animatingProperties)).filter((t=>void 0!==t));let h=1,o=1;return e.length>0&&(e.forEach((t=>{t.width&&(h/=t.width),t.height&&(o/=t.height);})),void 0!==t.left&&void 0!==i.left&&(t.left=h*t.left,i.left=h*i.left),void 0!==t.top&&void 0!==i.top&&(t.top=o*t.top,i.top=o*i.top)),{from:t,to:i}}calculateKeyframes(t,i,s=!1){const e={},h={};let o=!1;const r={};for(const s in i){const n=t[s],a=i[s];if(s in N){const t=N[s];if(void 0===n||void 0===a)continue;const i=t(n,a);void 0!==i.transform&&(r[s]=i.value,o=!0,e.transform=`${e.transform??""} ${i.transform}`,void 0!==i.overrideFrom&&Object.assign(e,i.overrideFrom));}else n!==a&&void 0!==n&&void 0!==a&&(o=!0,e[s]=n,h[s]=a);}return e.transformOrigin=h.transformOrigin=s?"center center":"top left",this.animatingProperties=r,o?[e,h]:void 0}async animate(t,i=this.options.keyframeOptions){this.start(),this.frames=t;let s=!1;if(!this.isAnimating()&&!this.isDisabled()&&(this.options.onFrames&&(this.frames=t=this.options.onFrames(this),this.log("modified frames",t)),void 0!==t)){this.log("animate",[t,i]),s=!0,this.webAnimation=this.element.animate(t,i);const e=this.getController();e?.add(this);try{await this.webAnimation.finished;}catch(t){}e?.remove(this);}return this.didFinish(s),s}isAnimating(){return "running"===this.webAnimation?.playState||this.webAnimation?.pending}log(t,i){this.shouldLog&&!this.isDisabled()&&console.log(t,this.options.id,i);}}const F=index.e(x);
|
|
136
|
-
|
|
137
132
|
let IconCancel_Outlined = class IconCancel_Outlined extends index.h {
|
|
138
133
|
render() {
|
|
139
134
|
return svgTag.svgTag('<path d="M12 2C6.47 2 2 6.47 2 12s4.47 10 10 10 10-4.47 10-10S17.53 2 12 2zm0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8zm3.59-13L12 10.59 8.41 7 7 8.41 10.59 12 7 15.59 8.41 17 12 13.41 15.59 17 17 15.59 13.41 12 17 8.41z"/>');
|
|
@@ -205,7 +200,7 @@ const offLocaleReady = (target) => {
|
|
|
205
200
|
localeReadyCallbacksMap.delete(target);
|
|
206
201
|
};
|
|
207
202
|
|
|
208
|
-
const style = index.i `:host{display:inline-block;width:100%}:host([disabled]){pointer-events:none}:host([type=hidden]){display:none}.container{position:relative;display:flex;align-items:center;height:100%;transition:box-shadow var(--mdui-motion-duration-short4) var(--mdui-motion-easing-standard);padding:0 1rem}.container.has-icon{padding-left:.75rem}.container.has-end-icon,.container.has-error-icon{padding-right:.75rem}:host([variant=filled]) .container{box-shadow:inset 0 -.0625rem 0 0 rgb(var(--mdui-color-on-surface-variant));background-color:rgb(var(--mdui-color-surface-container-highest));border-radius:var(--mdui-shape-corner-extra-small) var(--mdui-shape-corner-extra-small) 0 0}:host([variant=filled]) .container.invalid,:host([variant=filled]) .container.invalid-style{box-shadow:inset 0 -.0625rem 0 0 rgb(var(--mdui-color-error))}:host([variant=filled]:hover) .container{box-shadow:inset 0 -.0625rem 0 0 rgb(var(--mdui-color-on-surface))}:host([variant=filled]:hover) .container.invalid,:host([variant=filled]:hover) .container.invalid-style{box-shadow:inset 0 -.0625rem 0 0 rgb(var(--mdui-color-on-error-container))}:host([variant=filled][focused-style]) .container,:host([variant=filled][focused]) .container{box-shadow:inset 0 -.125rem 0 0 rgb(var(--mdui-color-primary))}:host([variant=filled][focused-style]) .container.invalid,:host([variant=filled][focused-style]) .container.invalid-style,:host([variant=filled][focused]) .container.invalid,:host([variant=filled][focused]) .container.invalid-style{box-shadow:inset 0 -.125rem 0 0 rgb(var(--mdui-color-error))}:host([variant=filled][disabled]) .container{box-shadow:inset 0 -.0625rem 0 0 rgba(var(--mdui-color-on-surface),38%);background-color:rgba(var(--mdui-color-on-surface),4%)}:host([variant=outlined]) .container{box-shadow:inset 0 0 0 .0625rem rgb(var(--mdui-color-outline));border-radius:var(--mdui-shape-corner-extra-small)}:host([variant=outlined]) .container.invalid,:host([variant=outlined]) .container.invalid-style{box-shadow:inset 0 0 0 .0625rem rgb(var(--mdui-color-error))}:host([variant=outlined]:hover) .container{box-shadow:inset 0 0 0 .0625rem rgb(var(--mdui-color-on-surface))}:host([variant=outlined]:hover) .container.invalid,:host([variant=outlined]:hover) .container.invalid-style{box-shadow:inset 0 0 0 .0625rem rgb(var(--mdui-color-on-error-container))}:host([variant=outlined][focused-style]) .container,:host([variant=outlined][focused]) .container{box-shadow:inset 0 0 0 .125rem rgb(var(--mdui-color-primary))}:host([variant=outlined][focused-style]) .container.invalid,:host([variant=outlined][focused-style]) .container.invalid-style,:host([variant=outlined][focused]) .container.invalid,:host([variant=outlined][focused]) .container.invalid-style{box-shadow:inset 0 0 0 .125rem rgb(var(--mdui-color-error))}:host([variant=outlined][disabled]) .container{box-shadow:inset 0 0 0 .125rem rgba(var(--mdui-color-on-surface),12%)}.icon,.prefix,.right-icon,.suffix{display:flex;-webkit-user-select:none;user-select:none;color:rgb(var(--mdui-color-on-surface-variant))}:host([disabled]) .icon,:host([disabled]) .prefix,:host([disabled]) .right-icon,:host([disabled]) .suffix{color:rgba(var(--mdui-color-on-surface),38%)}.invalid .right-icon,.invalid .suffix,.invalid-style .right-icon,.invalid-style .suffix{color:rgb(var(--mdui-color-error))}:host(:hover) .invalid .right-icon,:host(:hover) .invalid .suffix,:host(:hover) .invalid-style .right-icon,:host(:hover) .invalid-style .suffix{color:rgb(var(--mdui-color-on-error-container))}:host([focused-style]) .invalid .right-icon,:host([focused-style]) .invalid .suffix,:host([focused-style]) .invalid-style .right-icon,:host([focused-style]) .invalid-style .suffix,:host([focused]) .invalid .right-icon,:host([focused]) .invalid .suffix,:host([focused]) .invalid-style .right-icon,:host([focused]) .invalid-style .suffix{color:rgb(var(--mdui-color-error))}.icon,.right-icon{font-size:1.5rem}.icon mdui-button-icon,.right-icon mdui-button-icon,::slotted(mdui-button-icon[slot]){margin-left:-.5rem;margin-right:-.5rem}.icon .i,.right-icon .i,::slotted([slot$=icon]){font-size:inherit}.has-icon .icon{margin-right:1rem}.has-end-icon .end-icon,.right-icon:not(.end-icon){margin-left:1rem}.prefix,.suffix{display:none;font-size:var(--mdui-typescale-body-large-size);font-weight:var(--mdui-typescale-body-large-weight);letter-spacing:var(--mdui-typescale-body-large-tracking);line-height:var(--mdui-typescale-body-large-line-height)}:host([variant=filled][label]) .prefix,:host([variant=filled][label]) .suffix{padding-top:1rem}.has-value .prefix,.has-value .suffix,:host([focused-style]) .prefix,:host([focused-style]) .suffix,:host([focused]) .prefix,:host([focused]) .suffix{display:flex}.has-prefix .prefix{padding-right:.125rem}.has-suffix .suffix{padding-left:.125rem}.input-container{width:100%;height:100%}.label{position:absolute;pointer-events:none;max-width:calc(100% - 1rem);display:-webkit-box;overflow:hidden;-webkit-box-orient:vertical;-webkit-line-clamp:1;top:1rem;color:rgb(var(--mdui-color-on-surface-variant));font-size:var(--mdui-typescale-body-large-size);font-weight:var(--mdui-typescale-body-large-weight);letter-spacing:var(--mdui-typescale-body-large-tracking);line-height:var(--mdui-typescale-body-large-line-height)}.invalid .label,.invalid-style .label{color:rgb(var(--mdui-color-error))}:host([variant=outlined]) .label{padding:0 .25rem;margin:0 -.25rem}:host([variant=outlined]:hover) .label{color:rgb(var(--mdui-color-on-surface))}:host([variant=filled]:hover) .invalid .label,:host([variant=filled]:hover) .invalid-style .label,:host([variant=outlined]:hover) .invalid .label,:host([variant=outlined]:hover) .invalid-style .label{color:rgb(var(--mdui-color-on-error-container))}:host([variant=filled][focused-style]) .label,:host([variant=filled][focused]) .label,:host([variant=outlined][focused-style]) .label,:host([variant=outlined][focused]) .label{color:rgb(var(--mdui-color-primary))}:host([variant=filled]) .has-value .label,:host([variant=filled][focused-style]) .label,:host([variant=filled][focused]) .label,:host([variant=filled][type=date]) .label,:host([variant=filled][type=datetime-local]) .label,:host([variant=filled][type=month]) .label,:host([variant=filled][type=time]) .label,:host([variant=filled][type=week]) .label{font-size:var(--mdui-typescale-body-small-size);font-weight:var(--mdui-typescale-body-small-weight);letter-spacing:var(--mdui-typescale-body-small-tracking);line-height:var(--mdui-typescale-body-small-line-height);top:.25rem}:host([variant=outlined]) .has-value .label,:host([variant=outlined][focused-style]) .label,:host([variant=outlined][focused]) .label,:host([variant=outlined][type=date]) .label,:host([variant=outlined][type=datetime-local]) .label,:host([variant=outlined][type=month]) .label,:host([variant=outlined][type=time]) .label,:host([variant=outlined][type=week]) .label{font-size:var(--mdui-typescale-body-small-size);font-weight:var(--mdui-typescale-body-small-weight);letter-spacing:var(--mdui-typescale-body-small-tracking);line-height:var(--mdui-typescale-body-small-line-height);top:-.5rem;left:.75rem;background-color:rgb(var(--mdui-color-background))}:host([variant=filled][focused-style]) .invalid .label,:host([variant=filled][focused-style]) .invalid-style .label,:host([variant=filled][focused]) .invalid .label,:host([variant=filled][focused]) .invalid-style .label,:host([variant=outlined][focused-style]) .invalid .label,:host([variant=outlined][focused-style]) .invalid-style .label,:host([variant=outlined][focused]) .invalid .label,:host([variant=outlined][focused]) .invalid-style .label{color:rgb(var(--mdui-color-error))}:host([variant=filled][disabled]) .label,:host([variant=outlined][disabled]) .label{color:rgba(var(--mdui-color-on-surface),38%)}.input{display:flex;flex-wrap:wrap;width:100%;height:100%;min-height:100%;border:none;outline:0;background:0 0;appearance:none;resize:none;cursor:inherit;font-family:inherit;padding:1rem 0;font-size:var(--mdui-typescale-body-large-size);font-weight:var(--mdui-typescale-body-large-weight);letter-spacing:var(--mdui-typescale-body-large-tracking);line-height:var(--mdui-typescale-body-large-line-height);color:rgb(var(--mdui-color-on-surface));caret-color:rgb(var(--mdui-color-primary))}.input.hide-input{opacity:0;height:0;min-height:0;padding:0!important;overflow:hidden}.input::placeholder{color:rgb(var(--mdui-color-on-surface-variant))}.invalid .input,.invalid-style .input{caret-color:rgb(var(--mdui-color-error))}:host([disabled]) .input{color:rgba(var(--mdui-color-on-surface),38%)}:host([end-aligned]) .input{text-align:right}:host([variant=filled]) .label+.input{padding:1.5rem 0 .5rem 0}.supporting{display:flex;justify-content:space-between;padding:.25rem 1rem;color:rgb(var(--mdui-color-on-surface-variant))}.supporting.invalid,.supporting.invalid-style{color:rgb(var(--mdui-color-error))}.helper{display:block;opacity:1;transition:opacity var(--mdui-motion-duration-short4) var(--mdui-motion-easing-linear);font-size:var(--mdui-typescale-body-small-size);font-weight:var(--mdui-typescale-body-small-weight);letter-spacing:var(--mdui-typescale-body-small-tracking);line-height:var(--mdui-typescale-body-small-line-height)}:host([disabled]) .helper{color:rgba(var(--mdui-color-on-surface),38%)}:host([helper-on-focus]) .helper{opacity:0}:host([helper-on-focus][focused-style]) .helper,:host([helper-on-focus][focused]) .helper{opacity:1}.error{font-size:var(--mdui-typescale-body-small-size);font-weight:var(--mdui-typescale-body-small-weight);letter-spacing:var(--mdui-typescale-body-small-tracking);line-height:var(--mdui-typescale-body-small-line-height)}.counter{flex-wrap:nowrap;padding-left:1rem;font-size:var(--mdui-typescale-body-small-size);font-weight:var(--mdui-typescale-body-small-weight);letter-spacing:var(--mdui-typescale-body-small-tracking);line-height:var(--mdui-typescale-body-small-line-height)}::-ms-reveal{display:none}.is-firefox .input[type=date],.is-firefox .input[type=datetime-local],.is-firefox .input[type=time]{clip-path:inset(0 2em 0 0)}.input[type=number]::-webkit-inner-spin-button,.input[type=number]::-webkit-outer-spin-button{-webkit-appearance:none;display:none}.input[type=number]{-moz-appearance:textfield}.input[type=search]::-webkit-search-cancel-button{-webkit-appearance:none}`;
|
|
203
|
+
const style = index.i `:host{display:inline-block;width:100%}:host([disabled]:not([disabled=false i])){pointer-events:none}:host([type=hidden]){display:none}.container{position:relative;display:flex;align-items:center;height:100%;padding:.125rem .125rem .125rem 1rem;transition:box-shadow var(--mdui-motion-duration-short4) var(--mdui-motion-easing-standard)}.container.has-icon{padding-left:.75rem}.container.has-action,.container.has-right-icon,.container.has-suffix{padding-right:.75rem}:host([variant=filled]) .container{box-shadow:inset 0 -.0625rem 0 0 rgb(var(--mdui-color-on-surface-variant));background-color:rgb(var(--mdui-color-surface-container-highest));border-radius:var(--mdui-shape-corner-extra-small) var(--mdui-shape-corner-extra-small) 0 0}:host([variant=filled]) .container.invalid,:host([variant=filled]) .container.invalid-style{box-shadow:inset 0 -.0625rem 0 0 rgb(var(--mdui-color-error))}:host([variant=filled]:hover) .container{box-shadow:inset 0 -.0625rem 0 0 rgb(var(--mdui-color-on-surface))}:host([variant=filled]:hover) .container.invalid,:host([variant=filled]:hover) .container.invalid-style{box-shadow:inset 0 -.0625rem 0 0 rgb(var(--mdui-color-on-error-container))}:host([variant=filled][focused-style]) .container,:host([variant=filled][focused]) .container{box-shadow:inset 0 -.125rem 0 0 rgb(var(--mdui-color-primary))}:host([variant=filled][focused-style]) .container.invalid,:host([variant=filled][focused-style]) .container.invalid-style,:host([variant=filled][focused]) .container.invalid,:host([variant=filled][focused]) .container.invalid-style{box-shadow:inset 0 -.125rem 0 0 rgb(var(--mdui-color-error))}:host([variant=filled][disabled]:not([disabled=false i])) .container{box-shadow:inset 0 -.0625rem 0 0 rgba(var(--mdui-color-on-surface),38%);background-color:rgba(var(--mdui-color-on-surface),4%)}:host([variant=outlined]) .container{box-shadow:inset 0 0 0 .0625rem rgb(var(--mdui-color-outline));border-radius:var(--mdui-shape-corner-extra-small)}:host([variant=outlined]) .container.invalid,:host([variant=outlined]) .container.invalid-style{box-shadow:inset 0 0 0 .0625rem rgb(var(--mdui-color-error))}:host([variant=outlined]:hover) .container{box-shadow:inset 0 0 0 .0625rem rgb(var(--mdui-color-on-surface))}:host([variant=outlined]:hover) .container.invalid,:host([variant=outlined]:hover) .container.invalid-style{box-shadow:inset 0 0 0 .0625rem rgb(var(--mdui-color-on-error-container))}:host([variant=outlined][focused-style]) .container,:host([variant=outlined][focused]) .container{box-shadow:inset 0 0 0 .125rem rgb(var(--mdui-color-primary))}:host([variant=outlined][focused-style]) .container.invalid,:host([variant=outlined][focused-style]) .container.invalid-style,:host([variant=outlined][focused]) .container.invalid,:host([variant=outlined][focused]) .container.invalid-style{box-shadow:inset 0 0 0 .125rem rgb(var(--mdui-color-error))}:host([variant=outlined][disabled]:not([disabled=false i])) .container{box-shadow:inset 0 0 0 .125rem rgba(var(--mdui-color-on-surface),12%)}.action,.icon,.prefix,.right-icon,.suffix{display:flex;-webkit-user-select:none;user-select:none;color:rgb(var(--mdui-color-on-surface-variant))}:host([disabled]:not([disabled=false i])) .action,:host([disabled]:not([disabled=false i])) .icon,:host([disabled]:not([disabled=false i])) .prefix,:host([disabled]:not([disabled=false i])) .right-icon,:host([disabled]:not([disabled=false i])) .suffix{color:rgba(var(--mdui-color-on-surface),38%)}.invalid .right-icon,.invalid-style .right-icon{color:rgb(var(--mdui-color-error))}:host(:hover) .invalid .right-icon,:host(:hover) .invalid-style .right-icon{color:rgb(var(--mdui-color-on-error-container))}:host([focused-style]) .invalid .right-icon,:host([focused-style]) .invalid-style .right-icon,:host([focused]) .invalid .right-icon,:host([focused]) .invalid-style .right-icon{color:rgb(var(--mdui-color-error))}.action,.icon,.right-icon{font-size:1.5rem}.action mdui-button-icon,.icon mdui-button-icon,.right-icon mdui-button-icon,::slotted(mdui-button-icon[slot]){margin-left:-.5rem;margin-right:-.5rem}.action .i,.icon .i,.right-icon .i,::slotted([slot$=icon]){font-size:inherit}.has-icon .icon{margin-right:1rem}.has-prefix .prefix{padding-right:.125rem}.has-action .action{margin-left:.75rem}.has-suffix .suffix{padding-right:.25rem;padding-left:.125rem}.has-right-icon .right-icon{margin-left:.75rem}.prefix,.suffix{display:none;font-size:var(--mdui-typescale-body-large-size);font-weight:var(--mdui-typescale-body-large-weight);letter-spacing:var(--mdui-typescale-body-large-tracking);line-height:var(--mdui-typescale-body-large-line-height)}:host([variant=filled][label]) .prefix,:host([variant=filled][label]) .suffix{padding-top:1rem}.has-value .prefix,.has-value .suffix,:host([focused-style]) .prefix,:host([focused-style]) .suffix,:host([focused]) .prefix,:host([focused]) .suffix{display:flex}.input-container{display:flex;width:100%;height:100%}.label{position:absolute;pointer-events:none;max-width:calc(100% - 1rem);display:-webkit-box;overflow:hidden;-webkit-box-orient:vertical;-webkit-line-clamp:1;transition:all var(--mdui-motion-duration-short4) var(--mdui-motion-easing-standard);top:1rem;color:rgb(var(--mdui-color-on-surface-variant));font-size:var(--mdui-typescale-body-large-size);font-weight:var(--mdui-typescale-body-large-weight);letter-spacing:var(--mdui-typescale-body-large-tracking);line-height:var(--mdui-typescale-body-large-line-height)}.invalid .label,.invalid-style .label{color:rgb(var(--mdui-color-error))}:host([variant=outlined]) .label{padding:0 .25rem;margin:0 -.25rem}:host([variant=outlined]:hover) .label{color:rgb(var(--mdui-color-on-surface))}:host([variant=filled]:hover) .invalid .label,:host([variant=filled]:hover) .invalid-style .label,:host([variant=outlined]:hover) .invalid .label,:host([variant=outlined]:hover) .invalid-style .label{color:rgb(var(--mdui-color-on-error-container))}:host([variant=filled][focused-style]) .label,:host([variant=filled][focused]) .label,:host([variant=outlined][focused-style]) .label,:host([variant=outlined][focused]) .label{color:rgb(var(--mdui-color-primary))}:host([variant=filled]) .has-value .label,:host([variant=filled][focused-style]) .label,:host([variant=filled][focused]) .label,:host([variant=filled][type=date]) .label,:host([variant=filled][type=datetime-local]) .label,:host([variant=filled][type=month]) .label,:host([variant=filled][type=time]) .label,:host([variant=filled][type=week]) .label{font-size:var(--mdui-typescale-body-small-size);font-weight:var(--mdui-typescale-body-small-weight);letter-spacing:var(--mdui-typescale-body-small-tracking);line-height:var(--mdui-typescale-body-small-line-height);top:.25rem}:host([variant=outlined]) .has-value .label,:host([variant=outlined][focused-style]) .label,:host([variant=outlined][focused]) .label,:host([variant=outlined][type=date]) .label,:host([variant=outlined][type=datetime-local]) .label,:host([variant=outlined][type=month]) .label,:host([variant=outlined][type=time]) .label,:host([variant=outlined][type=week]) .label{font-size:var(--mdui-typescale-body-small-size);font-weight:var(--mdui-typescale-body-small-weight);letter-spacing:var(--mdui-typescale-body-small-tracking);line-height:var(--mdui-typescale-body-small-line-height);top:-.5rem;left:.75rem;background-color:rgb(var(--mdui-color-background))}:host([variant=filled][focused-style]) .invalid .label,:host([variant=filled][focused-style]) .invalid-style .label,:host([variant=filled][focused]) .invalid .label,:host([variant=filled][focused]) .invalid-style .label,:host([variant=outlined][focused-style]) .invalid .label,:host([variant=outlined][focused-style]) .invalid-style .label,:host([variant=outlined][focused]) .invalid .label,:host([variant=outlined][focused]) .invalid-style .label{color:rgb(var(--mdui-color-error))}:host([variant=filled][disabled]:not([disabled=false i])) .label,:host([variant=outlined][disabled]:not([disabled=false i])) .label{color:rgba(var(--mdui-color-on-surface),38%)}.input{display:block;width:100%;border:none;outline:0;background:0 0;appearance:none;resize:none;cursor:inherit;font-family:inherit;padding:.875rem .875rem .875rem 0;font-size:var(--mdui-typescale-body-large-size);font-weight:var(--mdui-typescale-body-large-weight);letter-spacing:var(--mdui-typescale-body-large-tracking);line-height:var(--mdui-typescale-body-large-line-height);color:rgb(var(--mdui-color-on-surface));caret-color:rgb(var(--mdui-color-primary))}.has-action .input,.has-right-icon .input{padding-right:.25rem}.has-suffix .input{padding-right:0}.input.hide-input{opacity:0;height:0;min-height:0;width:0;padding:0!important;overflow:hidden}.input::placeholder{color:rgb(var(--mdui-color-on-surface-variant))}.invalid .input,.invalid-style .input{caret-color:rgb(var(--mdui-color-error))}:host([disabled]:not([disabled=false i])) .input{color:rgba(var(--mdui-color-on-surface),38%)}:host([end-aligned]:not([end-aligned=false i])) .input{text-align:right}textarea.input{padding-top:0;margin-top:.875rem}:host([variant=filled]) .label+.input{padding-top:1.375rem;padding-bottom:.375rem}:host([variant=filled]) .label+textarea.input{padding-top:0;margin-top:1.375rem}.supporting{display:flex;justify-content:space-between;padding:.25rem 1rem;color:rgb(var(--mdui-color-on-surface-variant))}.supporting.invalid,.supporting.invalid-style{color:rgb(var(--mdui-color-error))}.helper{display:block;opacity:1;transition:opacity var(--mdui-motion-duration-short4) var(--mdui-motion-easing-linear);font-size:var(--mdui-typescale-body-small-size);font-weight:var(--mdui-typescale-body-small-weight);letter-spacing:var(--mdui-typescale-body-small-tracking);line-height:var(--mdui-typescale-body-small-line-height)}:host([disabled]:not([disabled=false i])) .helper{color:rgba(var(--mdui-color-on-surface),38%)}:host([helper-on-focus]:not([helper-on-focus=false i])) .helper{opacity:0}:host([helper-on-focus][focused-style]:not([helper-on-focus=false i])) .helper,:host([helper-on-focus][focused]:not([helper-on-focus=false i])) .helper{opacity:1}.error{font-size:var(--mdui-typescale-body-small-size);font-weight:var(--mdui-typescale-body-small-weight);letter-spacing:var(--mdui-typescale-body-small-tracking);line-height:var(--mdui-typescale-body-small-line-height)}.counter{flex-wrap:nowrap;padding-left:1rem;font-size:var(--mdui-typescale-body-small-size);font-weight:var(--mdui-typescale-body-small-weight);letter-spacing:var(--mdui-typescale-body-small-tracking);line-height:var(--mdui-typescale-body-small-line-height)}::-ms-reveal{display:none}.input[type=number]::-webkit-inner-spin-button,.input[type=number]::-webkit-outer-spin-button{-webkit-appearance:none;display:none}.input[type=number]{-moz-appearance:textfield}.input[type=search]::-webkit-search-cancel-button{-webkit-appearance:none}`;
|
|
209
204
|
|
|
210
205
|
/**
|
|
211
206
|
* @summary 文本框组件
|
|
@@ -417,6 +412,7 @@ let TextField = class TextField extends index.FocusableMixin(index.MduiElement)
|
|
|
417
412
|
this.hasValue = !['', null].includes(this.value);
|
|
418
413
|
if (this.hasUpdated) {
|
|
419
414
|
await this.updateComplete;
|
|
415
|
+
this.setTextareaHeight();
|
|
420
416
|
// reset 引起的值变更,不执行验证;直接修改值引起的变更,需要进行验证
|
|
421
417
|
const form$1 = this.formController.getForm();
|
|
422
418
|
if (form$1 && form.formResets.get(form$1)?.has(this)) {
|
|
@@ -457,6 +453,13 @@ let TextField = class TextField extends index.FocusableMixin(index.MduiElement)
|
|
|
457
453
|
parseFloat($input.css('padding-top')) +
|
|
458
454
|
parseFloat($input.css('padding-bottom')));
|
|
459
455
|
}
|
|
456
|
+
connectedCallback() {
|
|
457
|
+
super.connectedCallback();
|
|
458
|
+
this.updateComplete.then(() => {
|
|
459
|
+
this.setTextareaHeight();
|
|
460
|
+
this.observeResize = observeResize.observeResize(this.inputRef.value, () => this.setTextareaHeight());
|
|
461
|
+
});
|
|
462
|
+
}
|
|
460
463
|
disconnectedCallback() {
|
|
461
464
|
super.disconnectedCallback();
|
|
462
465
|
this.observeResize?.unobserve();
|
|
@@ -539,15 +542,15 @@ let TextField = class TextField extends index.FocusableMixin(index.MduiElement)
|
|
|
539
542
|
// 外部调用 setCustomValidity 时,不再使用内置的验证规则,所以需要移除监听语言变更事件
|
|
540
543
|
offLocaleReady(this);
|
|
541
544
|
}
|
|
542
|
-
firstUpdated(_changedProperties) {
|
|
543
|
-
super.firstUpdated(_changedProperties);
|
|
544
|
-
this.setTextareaHeight();
|
|
545
|
-
this.observeResize = observeResize.observeResize(this.inputRef.value, () => this.setTextareaHeight());
|
|
546
|
-
}
|
|
547
545
|
render() {
|
|
548
546
|
const hasIcon = !!this.icon || this.hasSlotController.test('icon');
|
|
549
547
|
const hasEndIcon = !!this.endIcon || this.hasSlotController.test('end-icon');
|
|
550
548
|
const hasErrorIcon = this.invalid || this.invalidStyle;
|
|
549
|
+
const hasTogglePasswordButton = this.type === 'password' && this.togglePassword && !this.disabled;
|
|
550
|
+
const hasClearButton = this.clearable &&
|
|
551
|
+
!this.disabled &&
|
|
552
|
+
(!this.readonly || this.readonlyButClearable) &&
|
|
553
|
+
(typeof this.value === 'number' || this.value.length > 0);
|
|
551
554
|
const hasPrefix = !!this.prefix || this.hasSlotController.test('prefix');
|
|
552
555
|
const hasSuffix = !!this.suffix || this.hasSlotController.test('suffix');
|
|
553
556
|
const hasHelper = !!this.helper || this.hasSlotController.test('helper');
|
|
@@ -563,8 +566,8 @@ let TextField = class TextField extends index.FocusableMixin(index.MduiElement)
|
|
|
563
566
|
container: true,
|
|
564
567
|
'has-value': this.hasValue,
|
|
565
568
|
'has-icon': hasIcon,
|
|
566
|
-
'has-
|
|
567
|
-
'has-
|
|
569
|
+
'has-right-icon': hasEndIcon || hasErrorIcon,
|
|
570
|
+
'has-action': hasClearButton || hasTogglePasswordButton,
|
|
568
571
|
'has-prefix': hasPrefix,
|
|
569
572
|
'has-suffix': hasSuffix,
|
|
570
573
|
'is-firefox': navigator.userAgent.includes('Firefox'),
|
|
@@ -572,7 +575,7 @@ let TextField = class TextField extends index.FocusableMixin(index.MduiElement)
|
|
|
572
575
|
});
|
|
573
576
|
return index.ke `<div part="container" class="${className}">${this.renderPrefix()}<div class="input-container">${this.renderLabel()} ${this.isTextarea
|
|
574
577
|
? this.renderTextArea(hasInputSlot)
|
|
575
|
-
: this.renderInput(hasInputSlot)} ${uniqueId.nn(hasInputSlot, () => index.ke `<slot name="input" class="input"></slot>`)}</div>${this.renderClearButton()}${this.renderTogglePasswordButton()} ${this.
|
|
578
|
+
: this.renderInput(hasInputSlot)} ${uniqueId.nn(hasInputSlot, () => index.ke `<slot name="input" class="input"></slot>`)}</div>${this.renderSuffix()}${this.renderClearButton(hasClearButton)} ${this.renderTogglePasswordButton(hasTogglePasswordButton)} ${this.renderRightIcon(hasErrorIcon)}</div>${uniqueId.nn(hasError || hasHelper || hasCounter, () => index.ke `<div part="supporting" class="${index.Rt({ supporting: true, ...invalidClassNameObj })}">${this.renderHelper(hasError, hasHelper)} ${this.renderCounter(hasCounter)}</div>`)}`;
|
|
576
579
|
}
|
|
577
580
|
setCustomValidityInternal(message) {
|
|
578
581
|
this.inputRef.value.setCustomValidity(message);
|
|
@@ -594,7 +597,8 @@ let TextField = class TextField extends index.FocusableMixin(index.MduiElement)
|
|
|
594
597
|
this.focus();
|
|
595
598
|
event.stopPropagation();
|
|
596
599
|
}
|
|
597
|
-
onInput() {
|
|
600
|
+
onInput(event) {
|
|
601
|
+
event.stopPropagation();
|
|
598
602
|
this.value = this.inputRef.value.value;
|
|
599
603
|
if (this.isTextarea) {
|
|
600
604
|
this.setTextareaHeight();
|
|
@@ -651,12 +655,7 @@ let TextField = class TextField extends index.FocusableMixin(index.MduiElement)
|
|
|
651
655
|
}
|
|
652
656
|
renderLabel() {
|
|
653
657
|
return this.label
|
|
654
|
-
? index.ke `<label part="label" class="label"
|
|
655
|
-
keyframeOptions: {
|
|
656
|
-
duration: motion.getDuration(this, 'short4'),
|
|
657
|
-
easing: motion.getEasing(this, 'standard'),
|
|
658
|
-
},
|
|
659
|
-
})}>${this.label}</label>`
|
|
658
|
+
? index.ke `<label part="label" class="label">${this.label}</label>`
|
|
660
659
|
: template.nothingTemplate;
|
|
661
660
|
}
|
|
662
661
|
renderPrefix() {
|
|
@@ -664,27 +663,25 @@ let TextField = class TextField extends index.FocusableMixin(index.MduiElement)
|
|
|
664
663
|
? index.ke `<mdui-icon name="${this.icon}" class="i"></mdui-icon>`
|
|
665
664
|
: template.nothingTemplate}</slot><slot name="prefix" part="prefix" class="prefix">${this.prefix}</slot>`;
|
|
666
665
|
}
|
|
667
|
-
renderSuffix(
|
|
668
|
-
return index.ke `<slot name="suffix" part="suffix" class="suffix">${this.suffix}</slot
|
|
666
|
+
renderSuffix() {
|
|
667
|
+
return index.ke `<slot name="suffix" part="suffix" class="suffix">${this.suffix}</slot>`;
|
|
668
|
+
}
|
|
669
|
+
renderRightIcon(hasErrorIcon) {
|
|
670
|
+
return hasErrorIcon
|
|
669
671
|
? index.ke `<slot name="error-icon" part="error-icon" class="right-icon">${this.errorIcon
|
|
670
672
|
? index.ke `<mdui-icon name="${this.errorIcon}" class="i"></mdui-icon>`
|
|
671
673
|
: index.ke `<mdui-icon-error class="i"></mdui-icon-error>`}</slot>`
|
|
672
674
|
: index.ke `<slot name="end-icon" part="end-icon" class="end-icon right-icon">${this.endIcon
|
|
673
675
|
? index.ke `<mdui-icon name="${this.endIcon}" class="i"></mdui-icon>`
|
|
674
|
-
: template.nothingTemplate}</slot
|
|
676
|
+
: template.nothingTemplate}</slot>`;
|
|
675
677
|
}
|
|
676
|
-
renderClearButton() {
|
|
677
|
-
|
|
678
|
-
!this.disabled &&
|
|
679
|
-
(!this.readonly || this.readonlyButClearable) &&
|
|
680
|
-
(typeof this.value === 'number' || this.value.length > 0);
|
|
681
|
-
return uniqueId.nn(hasClearButton, () => index.ke `<slot name="clear-button" part="clear-button" class="right-icon" @click="${this.onClear}"><mdui-button-icon tabindex="-1"><slot name="clear-icon" part="clear-icon">${this.clearIcon
|
|
678
|
+
renderClearButton(hasClearButton) {
|
|
679
|
+
return uniqueId.nn(hasClearButton, () => index.ke `<slot name="clear-button" part="clear-button" class="action" @click="${this.onClear}"><mdui-button-icon tabindex="-1"><slot name="clear-icon" part="clear-icon">${this.clearIcon
|
|
682
680
|
? index.ke `<mdui-icon name="${this.clearIcon}" class="i"></mdui-icon>`
|
|
683
681
|
: index.ke `<mdui-icon-cancel--outlined class="i"></mdui-icon-cancel--outlined>`}</slot></mdui-button-icon></slot>`);
|
|
684
682
|
}
|
|
685
|
-
renderTogglePasswordButton() {
|
|
686
|
-
|
|
687
|
-
return uniqueId.nn(hasTogglePasswordButton, () => index.ke `<slot name="toggle-password-button" part="toggle-password-button" class="right-icon" @click="${this.onTogglePassword}"><mdui-button-icon tabindex="-1">${this.isPasswordVisible
|
|
683
|
+
renderTogglePasswordButton(hasTogglePasswordButton) {
|
|
684
|
+
return uniqueId.nn(hasTogglePasswordButton, () => index.ke `<slot name="toggle-password-button" part="toggle-password-button" class="action" @click="${this.onTogglePassword}"><mdui-button-icon tabindex="-1">${this.isPasswordVisible
|
|
688
685
|
? index.ke `<slot name="show-password-icon" part="show-password-icon">${this.showPasswordIcon
|
|
689
686
|
? index.ke `<mdui-icon name="${this.showPasswordIcon}" class="i"></mdui-icon>`
|
|
690
687
|
: index.ke `<mdui-icon-visibility-off class="i"></mdui-icon-visibility-off>`}</slot>`
|
|
@@ -699,7 +696,7 @@ let TextField = class TextField extends index.FocusableMixin(index.MduiElement)
|
|
|
699
696
|
// @ts-ignore
|
|
700
697
|
!this.label || this.isFocusedStyle || this.hasValue
|
|
701
698
|
? this.placeholder
|
|
702
|
-
: undefined)}" ?readonly="${this.readonly}" ?disabled="${this.disabled}" ?required="${this.required}" minlength="${ifDefined.to(this.minlength)}" maxlength="${ifDefined.to(this.maxlength)}" min="${ifDefined.to(this.min)}" max="${ifDefined.to(this.max)}" step="${ifDefined.to(this.step)}" autocapitalize="${ifDefined.to(this.type === 'password' ? 'off' : this.autocapitalize)}" autocomplete="${
|
|
699
|
+
: undefined)}" ?readonly="${this.readonly}" ?disabled="${this.disabled}" ?required="${this.required}" minlength="${ifDefined.to(this.minlength)}" maxlength="${ifDefined.to(this.maxlength)}" min="${ifDefined.to(this.min)}" max="${ifDefined.to(this.max)}" step="${ifDefined.to(this.step)}" autocapitalize="${ifDefined.to(this.type === 'password' ? 'off' : this.autocapitalize)}" autocomplete="${this.autocomplete}" autocorrect="${ifDefined.to(this.type === 'password' ? 'off' : this.autocorrect)}" spellcheck="${ifDefined.to(this.spellcheck)}" pattern="${ifDefined.to(this.pattern)}" enterkeyhint="${ifDefined.to(this.enterkeyhint)}" inputmode="${ifDefined.to(this.inputmode)}" @change="${this.onChange}" @input="${this.onInput}" @invalid="${this.onInvalid}" @keydown="${this.onKeyDown}">`;
|
|
703
700
|
}
|
|
704
701
|
renderTextArea(hasInputSlot) {
|
|
705
702
|
return index.ke `<textarea ${index.Kt(this.inputRef)} part="input" class="input ${index.Rt({ 'hide-input': hasInputSlot })}" name="${ifDefined.to(this.name)}" .value="${live.Ft(this.value)}" placeholder="${ifDefined.to(
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
const index = require('./index-
|
|
4
|
-
const ifDefined = require('./if-defined-
|
|
5
|
-
const live = require('./live-
|
|
6
|
-
const form = require('./form-
|
|
7
|
-
const defaultValue = require('./default-value-
|
|
3
|
+
const index = require('./index-8f6f2f72.js');
|
|
4
|
+
const ifDefined = require('./if-defined-df505db5.js');
|
|
5
|
+
const live = require('./live-4aaf6c9f.js');
|
|
6
|
+
const form = require('./form-7985cf89.js');
|
|
7
|
+
const defaultValue = require('./default-value-d2522e56.js');
|
|
8
8
|
const watch = require('./watch-fc873d99.js');
|
|
9
|
-
const svgTag = require('./svg-tag-
|
|
9
|
+
const svgTag = require('./svg-tag-f5e232ad.js');
|
|
10
10
|
|
|
11
11
|
let IconCheckBoxOutlineBlank = class IconCheckBoxOutlineBlank extends index.h {
|
|
12
12
|
render() {
|
|
@@ -38,7 +38,7 @@ IconIndeterminateCheckBox = index.__decorate([
|
|
|
38
38
|
index.t('mdui-icon-indeterminate-check-box')
|
|
39
39
|
], IconIndeterminateCheckBox);
|
|
40
40
|
|
|
41
|
-
const style = index.i `:host{position:relative;display:inline-flex;cursor:pointer;-webkit-tap-highlight-color:transparent;border-radius:.125rem;font-size:var(--mdui-typescale-label-large-size);font-weight:var(--mdui-typescale-label-large-weight);letter-spacing:var(--mdui-typescale-label-large-tracking);line-height:var(--mdui-typescale-label-large-line-height)}label{display:inline-flex;align-items:center;width:100%;cursor:inherit;-webkit-user-select:none;user-select:none;touch-action:manipulation;zoom:1;-webkit-user-drag:none}input{position:absolute;padding:0;opacity:0;pointer-events:none;width:1.125rem;height:1.125rem;margin:0 0 0 .6875rem}.icon{display:flex;position:absolute;opacity:1;transform:scale(1);color:rgb(var(--mdui-color-on-surface));font-size:1.5rem;transition:color var(--mdui-motion-duration-short4) var(--mdui-motion-easing-standard)}.checked-icon,.indeterminate-icon{opacity:0;transform:scale(.5);transition-property:color,opacity,transform;transition-duration:var(--mdui-motion-duration-short4);transition-timing-function:var(--mdui-motion-easing-standard)}.icon .i,::slotted([slot=checked-icon]),::slotted([slot=indeterminate-icon]),::slotted([slot=unchecked-icon]){color:inherit;font-size:inherit}i{position:relative;display:flex;align-items:center;justify-content:center;flex-shrink:0;overflow:hidden;border-radius:50%;width:2.5rem;height:2.5rem;--mdui-comp-ripple-state-layer-color:var(--mdui-color-on-surface)}.label{display:flex;width:100%;padding-top:.625rem;padding-bottom:.625rem;color:rgb(var(--mdui-color-on-surface));transition:color var(--mdui-motion-duration-short4) var(--mdui-motion-easing-standard)}:host([checked]) i{--mdui-comp-ripple-state-layer-color:var(--mdui-color-primary)}:host([checked]) .icon{color:rgb(var(--mdui-color-primary))}:host([checked]) .indeterminate-icon{opacity:0;transform:scale(.5)}:host([checked]) .checked-icon{opacity:1;transform:scale(1)}:host([indeterminate]) i{--mdui-comp-ripple-state-layer-color:var(--mdui-color-primary)}:host([indeterminate]) .icon{color:rgb(var(--mdui-color-primary))}:host([indeterminate]) .checked-icon{opacity:0;transform:scale(.5)}:host([indeterminate]) .indeterminate-icon{opacity:1;transform:scale(1)}.invalid i{--mdui-comp-ripple-state-layer-color:var(--mdui-color-error)}.invalid .icon{color:rgb(var(--mdui-color-error))}.invalid .label{color:rgb(var(--mdui-color-error))}:host([disabled]){cursor:default;pointer-events:none}:host([disabled]) .icon{color:rgba(var(--mdui-color-on-surface),38%)}:host([disabled]) .label{color:rgba(var(--mdui-color-on-surface),38%)}:host([disabled][checked]) .unchecked-icon,:host([disabled][indeterminate]) .unchecked-icon{opacity:0}`;
|
|
41
|
+
const style = index.i `:host{position:relative;display:inline-flex;cursor:pointer;-webkit-tap-highlight-color:transparent;border-radius:.125rem;font-size:var(--mdui-typescale-label-large-size);font-weight:var(--mdui-typescale-label-large-weight);letter-spacing:var(--mdui-typescale-label-large-tracking);line-height:var(--mdui-typescale-label-large-line-height)}label{display:inline-flex;align-items:center;width:100%;cursor:inherit;-webkit-user-select:none;user-select:none;touch-action:manipulation;zoom:1;-webkit-user-drag:none}input{position:absolute;padding:0;opacity:0;pointer-events:none;width:1.125rem;height:1.125rem;margin:0 0 0 .6875rem}.icon{display:flex;position:absolute;opacity:1;transform:scale(1);color:rgb(var(--mdui-color-on-surface));font-size:1.5rem;transition:color var(--mdui-motion-duration-short4) var(--mdui-motion-easing-standard)}.checked-icon,.indeterminate-icon{opacity:0;transform:scale(.5);transition-property:color,opacity,transform;transition-duration:var(--mdui-motion-duration-short4);transition-timing-function:var(--mdui-motion-easing-standard)}.icon .i,::slotted([slot=checked-icon]),::slotted([slot=indeterminate-icon]),::slotted([slot=unchecked-icon]){color:inherit;font-size:inherit}i{position:relative;display:flex;align-items:center;justify-content:center;flex-shrink:0;overflow:hidden;border-radius:50%;width:2.5rem;height:2.5rem;--mdui-comp-ripple-state-layer-color:var(--mdui-color-on-surface)}.label{display:flex;width:100%;padding-top:.625rem;padding-bottom:.625rem;color:rgb(var(--mdui-color-on-surface));transition:color var(--mdui-motion-duration-short4) var(--mdui-motion-easing-standard)}:host([checked]:not([checked=false i])) i{--mdui-comp-ripple-state-layer-color:var(--mdui-color-primary)}:host([checked]:not([checked=false i])) .icon{color:rgb(var(--mdui-color-primary))}:host([checked]:not([checked=false i])) .indeterminate-icon{opacity:0;transform:scale(.5)}:host([checked]:not([checked=false i])) .checked-icon{opacity:1;transform:scale(1)}:host([indeterminate]:not([indeterminate=false i])) i{--mdui-comp-ripple-state-layer-color:var(--mdui-color-primary)}:host([indeterminate]:not([indeterminate=false i])) .icon{color:rgb(var(--mdui-color-primary))}:host([indeterminate]:not([indeterminate=false i])) .checked-icon{opacity:0;transform:scale(.5)}:host([indeterminate]:not([indeterminate=false i])) .indeterminate-icon{opacity:1;transform:scale(1)}.invalid i{--mdui-comp-ripple-state-layer-color:var(--mdui-color-error)}.invalid .icon{color:rgb(var(--mdui-color-error))}.invalid .label{color:rgb(var(--mdui-color-error))}:host([disabled]:not([disabled=false i])){cursor:default;pointer-events:none}:host([disabled]:not([disabled=false i])) .icon{color:rgba(var(--mdui-color-on-surface),38%)}:host([disabled]:not([disabled=false i])) .label{color:rgba(var(--mdui-color-on-surface),38%)}:host([disabled][checked]:not([disabled=false i],[checked=false i])) .unchecked-icon,:host([disabled][indeterminate]:not([disabled=false i],[indeterminate=false i])) .unchecked-icon{opacity:0}`;
|
|
42
42
|
|
|
43
43
|
/**
|
|
44
44
|
* @summary 复选框组件
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
const index = require('./index-
|
|
3
|
+
const index = require('./index-8f6f2f72.js');
|
|
4
4
|
const watch = require('./watch-fc873d99.js');
|
|
5
|
-
const template = require('./template-
|
|
6
|
-
const buttonBase = require('./button-base-
|
|
5
|
+
const template = require('./template-c6aa8fba.js');
|
|
6
|
+
const buttonBase = require('./button-base-b31009d4.js');
|
|
7
7
|
|
|
8
|
-
const style = index.i `:host{--shape-corner:var(--mdui-shape-corner-full);position:relative;display:inline-block;flex-shrink:0;overflow:hidden;text-align:center;border-radius:var(--shape-corner);cursor:pointer;-webkit-tap-highlight-color:transparent;font-size:1.5rem;width:2.5rem;height:2.5rem}:host([variant=standard]){color:rgb(var(--mdui-color-on-surface-variant));--mdui-comp-ripple-state-layer-color:var(--mdui-color-on-surface-variant)}:host([variant=filled]){color:rgb(var(--mdui-color-primary));background-color:rgb(var(--mdui-color-surface-container-highest));--mdui-comp-ripple-state-layer-color:var(--mdui-color-primary)}:host([variant=tonal]){color:rgb(var(--mdui-color-on-surface-variant));background-color:rgb(var(--mdui-color-surface-container-highest));--mdui-comp-ripple-state-layer-color:var(--mdui-color-on-surface-variant)}:host([variant=outlined]){border:.0625rem solid rgb(var(--mdui-color-outline));color:rgb(var(--mdui-color-on-surface-variant));--mdui-comp-ripple-state-layer-color:var(--mdui-color-on-surface-variant)}:host([variant=outlined][pressed]){color:rgb(var(--mdui-color-on-surface));--mdui-comp-ripple-state-layer-color:var(--mdui-color-on-surface)}:host([variant=standard][selected]){color:rgb(var(--mdui-color-primary));--mdui-comp-ripple-state-layer-color:var(--mdui-color-primary)}:host([variant=filled]:not([selectable])),:host([variant=filled][selected]){color:rgb(var(--mdui-color-on-primary));background-color:rgb(var(--mdui-color-primary));--mdui-comp-ripple-state-layer-color:var(--mdui-color-on-primary)}:host([variant=tonal]:not([selectable])),:host([variant=tonal][selected]){color:rgb(var(--mdui-color-on-secondary-container));background-color:rgb(var(--mdui-color-secondary-container));--mdui-comp-ripple-state-layer-color:var(
|
|
8
|
+
const style = index.i `:host{--shape-corner:var(--mdui-shape-corner-full);position:relative;display:inline-block;flex-shrink:0;overflow:hidden;text-align:center;border-radius:var(--shape-corner);cursor:pointer;-webkit-tap-highlight-color:transparent;font-size:1.5rem;width:2.5rem;height:2.5rem}:host([variant=standard]){color:rgb(var(--mdui-color-on-surface-variant));--mdui-comp-ripple-state-layer-color:var(--mdui-color-on-surface-variant)}:host([variant=filled]){color:rgb(var(--mdui-color-primary));background-color:rgb(var(--mdui-color-surface-container-highest));--mdui-comp-ripple-state-layer-color:var(--mdui-color-primary)}:host([variant=tonal]){color:rgb(var(--mdui-color-on-surface-variant));background-color:rgb(var(--mdui-color-surface-container-highest));--mdui-comp-ripple-state-layer-color:var(--mdui-color-on-surface-variant)}:host([variant=outlined]){border:.0625rem solid rgb(var(--mdui-color-outline));color:rgb(var(--mdui-color-on-surface-variant));--mdui-comp-ripple-state-layer-color:var(--mdui-color-on-surface-variant)}:host([variant=outlined][pressed]){color:rgb(var(--mdui-color-on-surface));--mdui-comp-ripple-state-layer-color:var(--mdui-color-on-surface)}:host([variant=standard][selected]:not([selected=false i])){color:rgb(var(--mdui-color-primary));--mdui-comp-ripple-state-layer-color:var(--mdui-color-primary)}:host([variant=filled]:not([selectable])),:host([variant=filled][selectable=false i]),:host([variant=filled][selected]:not([selected=false i])){color:rgb(var(--mdui-color-on-primary));background-color:rgb(var(--mdui-color-primary));--mdui-comp-ripple-state-layer-color:var(--mdui-color-on-primary)}:host([variant=tonal]:not([selectable])),:host([variant=tonal][selectable=false i]),:host([variant=tonal][selected]:not([selected=false i])){color:rgb(var(--mdui-color-on-secondary-container));background-color:rgb(var(--mdui-color-secondary-container));--mdui-comp-ripple-state-layer-color:var(
|
|
9
9
|
--mdui-color-on-secondary-container
|
|
10
|
-
)}:host([variant=outlined][selected]){border:none;color:rgb(var(--mdui-color-inverse-on-surface));background-color:rgb(var(--mdui-color-inverse-surface));--mdui-comp-ripple-state-layer-color:var(--mdui-color-inverse-on-surface)}:host([variant=filled][disabled]),:host([variant=outlined][disabled]),:host([variant=tonal][disabled]){background-color:rgba(var(--mdui-color-on-surface),.12);border-color:rgba(var(--mdui-color-on-surface),.12)}:host([disabled]),:host([loading]){cursor:default;pointer-events:none}:host([disabled]){color:rgba(var(--mdui-color-on-surface),.38)!important}:host([loading]) .button,:host([loading]) mdui-ripple{opacity:0}.button{float:left;width:100%}.icon,.selected-icon mdui-icon,::slotted(*){font-size:inherit}mdui-circular-progress{display:flex;position:absolute;top:calc(50% - 1.5rem / 2);left:calc(50% - 1.5rem / 2);width:1.5rem;height:1.5rem}:host([variant=filled]:not([disabled])) mdui-circular-progress{stroke:rgb(var(--mdui-color-on-primary))}:host([disabled]) mdui-circular-progress{stroke:rgba(var(--mdui-color-on-surface),38%)}`;
|
|
10
|
+
)}:host([variant=outlined][selected]:not([selected=false i])){border:none;color:rgb(var(--mdui-color-inverse-on-surface));background-color:rgb(var(--mdui-color-inverse-surface));--mdui-comp-ripple-state-layer-color:var(--mdui-color-inverse-on-surface)}:host([variant=filled][disabled]:not([disabled=false i])),:host([variant=outlined][disabled]:not([disabled=false i])),:host([variant=tonal][disabled]:not([disabled=false i])){background-color:rgba(var(--mdui-color-on-surface),.12);border-color:rgba(var(--mdui-color-on-surface),.12)}:host([disabled]:not([disabled=false i])),:host([loading]:not([loading=false i])){cursor:default;pointer-events:none}:host([disabled]:not([disabled=false i])){color:rgba(var(--mdui-color-on-surface),.38)!important}:host([loading]:not([loading=false i])) .button,:host([loading]:not([loading=false i])) mdui-ripple{opacity:0}.button{float:left;width:100%}.icon,.selected-icon mdui-icon,::slotted(*){font-size:inherit}mdui-circular-progress{display:flex;position:absolute;top:calc(50% - 1.5rem / 2);left:calc(50% - 1.5rem / 2);width:1.5rem;height:1.5rem}:host([variant=filled]:not([disabled])) mdui-circular-progress,:host([variant=filled][disabled=false i]) mdui-circular-progress{stroke:rgb(var(--mdui-color-on-primary))}:host([disabled]:not([disabled=false i])) mdui-circular-progress{stroke:rgba(var(--mdui-color-on-surface),38%)}`;
|
|
11
11
|
|
|
12
12
|
/**
|
|
13
13
|
* @summary 图标按钮组件
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
const index = require('./index-
|
|
4
|
-
const template = require('./template-
|
|
5
|
-
const buttonBase = require('./button-base-
|
|
3
|
+
const index = require('./index-8f6f2f72.js');
|
|
4
|
+
const template = require('./template-c6aa8fba.js');
|
|
5
|
+
const buttonBase = require('./button-base-b31009d4.js');
|
|
6
6
|
|
|
7
|
-
const style = index.i `:host{--shape-corner:var(--mdui-shape-corner-full);position:relative;display:inline-block;flex-shrink:0;overflow:hidden;text-align:center;border-radius:var(--shape-corner);cursor:pointer;-webkit-tap-highlight-color:transparent;transition:box-shadow var(--mdui-motion-duration-short4) var(--mdui-motion-easing-linear);min-width:3rem;height:2.5rem;color:rgb(var(--mdui-color-primary));font-size:var(--mdui-typescale-label-large-size);font-weight:var(--mdui-typescale-label-large-weight);letter-spacing:var(--mdui-typescale-label-large-tracking);line-height:var(--mdui-typescale-label-large-line-height)}.button{width:100%;padding:0 1rem}:host([full-width]){display:block}:host([variant=elevated]){box-shadow:var(--mdui-elevation-level1);background-color:rgb(var(--mdui-color-surface-container-low));--mdui-comp-ripple-state-layer-color:var(--mdui-color-primary)}:host([variant=filled]){color:rgb(var(--mdui-color-on-primary));background-color:rgb(var(--mdui-color-primary));--mdui-comp-ripple-state-layer-color:var(--mdui-color-on-primary)}:host([variant=tonal]){color:rgb(var(--mdui-color-on-secondary-container));background-color:rgb(var(--mdui-color-secondary-container));--mdui-comp-ripple-state-layer-color:var(
|
|
7
|
+
const style = index.i `:host{--shape-corner:var(--mdui-shape-corner-full);position:relative;display:inline-block;flex-shrink:0;overflow:hidden;text-align:center;border-radius:var(--shape-corner);cursor:pointer;-webkit-tap-highlight-color:transparent;transition:box-shadow var(--mdui-motion-duration-short4) var(--mdui-motion-easing-linear);min-width:3rem;height:2.5rem;color:rgb(var(--mdui-color-primary));font-size:var(--mdui-typescale-label-large-size);font-weight:var(--mdui-typescale-label-large-weight);letter-spacing:var(--mdui-typescale-label-large-tracking);line-height:var(--mdui-typescale-label-large-line-height)}.button{width:100%;padding:0 1rem}:host([full-width]:not([full-width=false i])){display:block}:host([variant=elevated]){box-shadow:var(--mdui-elevation-level1);background-color:rgb(var(--mdui-color-surface-container-low));--mdui-comp-ripple-state-layer-color:var(--mdui-color-primary)}:host([variant=filled]){color:rgb(var(--mdui-color-on-primary));background-color:rgb(var(--mdui-color-primary));--mdui-comp-ripple-state-layer-color:var(--mdui-color-on-primary)}:host([variant=tonal]){color:rgb(var(--mdui-color-on-secondary-container));background-color:rgb(var(--mdui-color-secondary-container));--mdui-comp-ripple-state-layer-color:var(
|
|
8
8
|
--mdui-color-on-secondary-container
|
|
9
|
-
)}:host([variant=outlined]){border:.0625rem solid rgb(var(--mdui-color-outline));--mdui-comp-ripple-state-layer-color:var(--mdui-color-primary)}:host([variant=text]){--mdui-comp-ripple-state-layer-color:var(--mdui-color-primary)}:host([variant=outlined][focus-visible]){border-color:rgb(var(--mdui-color-primary))}:host([variant=elevated][hover]){box-shadow:var(--mdui-elevation-level2)}:host([variant=filled][hover]),:host([variant=tonal][hover]){box-shadow:var(--mdui-elevation-level1)}:host([disabled]),:host([loading]){cursor:default;pointer-events:none}:host([disabled]){color:rgba(var(--mdui-color-on-surface),38%);box-shadow:var(--mdui-elevation-level0)}:host([variant=elevated][disabled]),:host([variant=filled][disabled]),:host([variant=tonal][disabled]){background-color:rgba(var(--mdui-color-on-surface),12%)}:host([variant=outlined][disabled]){border-color:rgba(var(--mdui-color-on-surface),12%)}.label{display:inline-flex;padding-right:.5rem;padding-left:.5rem}.end-icon,.icon{display:inline-flex;font-size:1.28571429em}.end-icon mdui-icon,.icon mdui-icon,::slotted([slot=end-icon]),::slotted([slot=icon]){font-size:inherit}mdui-circular-progress{display:inline-flex;width:1.125rem;height:1.125rem}:host([variant=filled]) mdui-circular-progress{stroke:rgb(var(--mdui-color-on-primary))}:host([variant=tonal]) mdui-circular-progress{stroke:rgb(var(--mdui-color-on-secondary-container))}:host([disabled]) mdui-circular-progress{stroke:rgba(var(--mdui-color-on-surface),38%)}`;
|
|
9
|
+
)}:host([variant=outlined]){border:.0625rem solid rgb(var(--mdui-color-outline));--mdui-comp-ripple-state-layer-color:var(--mdui-color-primary)}:host([variant=text]){--mdui-comp-ripple-state-layer-color:var(--mdui-color-primary)}:host([variant=outlined][focus-visible]){border-color:rgb(var(--mdui-color-primary))}:host([variant=elevated][hover]){box-shadow:var(--mdui-elevation-level2)}:host([variant=filled][hover]),:host([variant=tonal][hover]){box-shadow:var(--mdui-elevation-level1)}:host([disabled]:not([disabled=false i])),:host([loading]:not([loading=false i])){cursor:default;pointer-events:none}:host([disabled]:not([disabled=false i])){color:rgba(var(--mdui-color-on-surface),38%);box-shadow:var(--mdui-elevation-level0)}:host([variant=elevated][disabled]:not([disabled=false i])),:host([variant=filled][disabled]:not([disabled=false i])),:host([variant=tonal][disabled]:not([disabled=false i])){background-color:rgba(var(--mdui-color-on-surface),12%)}:host([variant=outlined][disabled]:not([disabled=false i])){border-color:rgba(var(--mdui-color-on-surface),12%)}.label{display:inline-flex;padding-right:.5rem;padding-left:.5rem}.end-icon,.icon{display:inline-flex;font-size:1.28571429em}.end-icon mdui-icon,.icon mdui-icon,::slotted([slot=end-icon]),::slotted([slot=icon]){font-size:inherit}mdui-circular-progress{display:inline-flex;width:1.125rem;height:1.125rem}:host([variant=filled]) mdui-circular-progress{stroke:rgb(var(--mdui-color-on-primary))}:host([variant=tonal]) mdui-circular-progress{stroke:rgb(var(--mdui-color-on-secondary-container))}:host([disabled]:not([disabled=false i])) mdui-circular-progress{stroke:rgba(var(--mdui-color-on-surface),38%)}`;
|
|
10
10
|
|
|
11
11
|
/**
|
|
12
12
|
* @summary 按钮组件
|
|
@@ -24,7 +24,7 @@ const NAMESPACE = 'urnovl-web-components';
|
|
|
24
24
|
const BUILD = /* urnovl-web-components */ { allRenderFn: true, appendChildSlotFix: false, asyncLoading: true, asyncQueue: false, attachStyles: true, cloneNodeFix: false, cmpDidLoad: true, cmpDidRender: false, cmpDidUnload: false, cmpDidUpdate: false, cmpShouldUpdate: false, cmpWillLoad: true, cmpWillRender: false, cmpWillUpdate: false, connectedCallback: false, constructableCSS: true, cssAnnotations: true, devTools: false, disconnectedCallback: false, element: false, event: true, experimentalScopedSlotChanges: false, experimentalSlotFixes: false, formAssociated: false, hasRenderFn: true, hostListener: false, hostListenerTarget: false, hostListenerTargetBody: false, hostListenerTargetDocument: false, hostListenerTargetParent: false, hostListenerTargetWindow: false, hotModuleReplacement: false, hydrateClientSide: false, hydrateServerSide: false, hydratedAttribute: false, hydratedClass: true, hydratedSelectorName: "hydrated", initializeNextTick: false, invisiblePrehydration: true, isDebug: false, isDev: false, isTesting: false, lazyLoad: true, lifecycle: true, lifecycleDOMEvents: false, member: true, method: false, mode: false, observeAttribute: true, profile: false, prop: true, propBoolean: true, propMutable: false, propNumber: true, propString: true, reflect: false, scoped: false, scopedSlotTextContentFix: false, scriptDataOpts: false, shadowDelegatesFocus: false, shadowDom: true, slot: true, slotChildNodesFix: false, slotRelocation: false, state: true, style: true, svg: true, taskQueue: true, transformTagName: false, updatable: true, vdomAttribute: true, vdomClass: true, vdomFunctional: false, vdomKey: true, vdomListener: true, vdomPropOrAttr: true, vdomRef: true, vdomRender: true, vdomStyle: true, vdomText: true, vdomXlink: true, watchCallback: true };
|
|
25
25
|
|
|
26
26
|
/*
|
|
27
|
-
Stencil Client Platform v4.22.
|
|
27
|
+
Stencil Client Platform v4.22.2 | MIT Licensed | https://stenciljs.com
|
|
28
28
|
*/
|
|
29
29
|
var __defProp = Object.defineProperty;
|
|
30
30
|
var __export = (target, all) => {
|
|
@@ -361,11 +361,17 @@ var addStyle = (styleContainerNode, cmpMeta, mode) => {
|
|
|
361
361
|
const referenceNode2 = preconnectLinks.length > 0 ? preconnectLinks[preconnectLinks.length - 1].nextSibling : styleContainerNode.querySelector("style");
|
|
362
362
|
styleContainerNode.insertBefore(styleElm, referenceNode2);
|
|
363
363
|
} else if ("host" in styleContainerNode) {
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
364
|
+
if (supportsConstructableStylesheets) {
|
|
365
|
+
const stylesheet = new CSSStyleSheet();
|
|
366
|
+
stylesheet.replaceSync(style);
|
|
367
|
+
styleContainerNode.adoptedStyleSheets = [stylesheet, ...styleContainerNode.adoptedStyleSheets];
|
|
367
368
|
} else {
|
|
368
|
-
styleContainerNode.
|
|
369
|
+
const existingStyleContainer = styleContainerNode.querySelector("style");
|
|
370
|
+
if (existingStyleContainer) {
|
|
371
|
+
existingStyleContainer.innerHTML = style + existingStyleContainer.innerHTML;
|
|
372
|
+
} else {
|
|
373
|
+
styleContainerNode.prepend(styleElm);
|
|
374
|
+
}
|
|
369
375
|
}
|
|
370
376
|
} else {
|
|
371
377
|
styleContainerNode.append(styleElm);
|
|
@@ -513,13 +513,16 @@ class HasSlotController {
|
|
|
513
513
|
* 但在 vue 的服务端渲染(ssr)时,不存在 DOM 对象,所以会把 attribute 属性设置成 attr="true" 或 attr="false"
|
|
514
514
|
* 所以在 attribute 属性 attr="false" 时,需要把属性值转换为布尔值 false
|
|
515
515
|
*
|
|
516
|
+
* 在 CSS 中选择布尔属性时,必须排除掉属性值为 false 的情况。i 表示不区分大小写。仅 public 属性需要这样处理,private 和 protected 属性不需要
|
|
517
|
+
* 例如::host([hide]:not([hide="false" i])) { ... }
|
|
518
|
+
*
|
|
516
519
|
* 这段代码不能封装成函数,否则生成 custom-elements.json 会识别不了
|
|
517
520
|
* 这段注释仅在这里写一次,其他地方不再重复
|
|
518
521
|
*
|
|
519
522
|
* @see https://v3-migration.vuejs.org/zh/breaking-changes/attribute-coercion.html
|
|
520
523
|
*/
|
|
521
524
|
const booleanConverter = (value) => {
|
|
522
|
-
return value !== null && value !== 'false';
|
|
525
|
+
return value !== null && value.toLowerCase() !== 'false';
|
|
523
526
|
};
|
|
524
527
|
|
|
525
528
|
// eslint-disable-next-line @typescript-eslint/no-unsafe-declaration-merging
|
|
@@ -2868,7 +2871,6 @@ Icon = __decorate([
|
|
|
2868
2871
|
], Icon);
|
|
2869
2872
|
|
|
2870
2873
|
exports.$ = $;
|
|
2871
|
-
exports.$t = $t;
|
|
2872
2874
|
exports.D = D;
|
|
2873
2875
|
exports.DefinedController = DefinedController;
|
|
2874
2876
|
exports.FocusableMixin = FocusableMixin;
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
const index = require('./index-
|
|
4
|
-
const anchor = require('./anchor-
|
|
3
|
+
const index = require('./index-8f6f2f72.js');
|
|
4
|
+
const anchor = require('./anchor-fbe32ab5.js');
|
|
5
5
|
const watch = require('./watch-fc873d99.js');
|
|
6
|
-
const template = require('./template-
|
|
7
|
-
require('./check-
|
|
8
|
-
const svgTag = require('./svg-tag-
|
|
9
|
-
const buttonBase = require('./button-base-
|
|
6
|
+
const template = require('./template-c6aa8fba.js');
|
|
7
|
+
require('./check-4aecf34f.js');
|
|
8
|
+
const svgTag = require('./svg-tag-f5e232ad.js');
|
|
9
|
+
const buttonBase = require('./button-base-b31009d4.js');
|
|
10
10
|
|
|
11
11
|
let IconClear = class IconClear extends index.h {
|
|
12
12
|
render() {
|
|
@@ -18,9 +18,9 @@ IconClear = index.__decorate([
|
|
|
18
18
|
index.t('mdui-icon-clear')
|
|
19
19
|
], IconClear);
|
|
20
20
|
|
|
21
|
-
const style = index.i `:host{--shape-corner:var(--mdui-shape-corner-small);position:relative;display:inline-block;flex-shrink:0;overflow:hidden;border-radius:var(--shape-corner);cursor:pointer;-webkit-tap-highlight-color:transparent;transition:box-shadow var(--mdui-motion-duration-short4) var(--mdui-motion-easing-linear);height:2rem;background-color:rgb(var(--mdui-color-surface));border:.0625rem solid rgb(var(--mdui-color-outline));color:rgb(var(--mdui-color-on-surface-variant));font-size:var(--mdui-typescale-label-large-size);font-weight:var(--mdui-typescale-label-large-weight);letter-spacing:var(--mdui-typescale-label-large-tracking);line-height:var(--mdui-typescale-label-large-line-height);--mdui-comp-ripple-state-layer-color:var(--mdui-color-on-surface-variant)}.button{padding-right:.4375rem;padding-left:.4375rem}:host([variant=input]) .button{padding-right:.1875rem;padding-left:.1875rem}:host([selected]) .button{padding-right:.5rem;padding-left:.5rem}:host([selected][variant=input]) .button{padding-right:.25rem;padding-left:.25rem}:host([elevated]) .button{padding-right:.5rem;padding-left:.5rem}:host([variant=assist]){color:rgb(var(--mdui-color-on-surface));--mdui-comp-ripple-state-layer-color:var(--mdui-color-on-surface)}:host([elevated]){border-width:0;background-color:rgb(var(--mdui-color-surface-container-low));box-shadow:var(--mdui-elevation-level1)}:host([selected]){color:rgb(var(--mdui-color-on-secondary-container));background-color:rgb(var(--mdui-color-secondary-container));border-width:0;--mdui-comp-ripple-state-layer-color:var(
|
|
21
|
+
const style = index.i `:host{--shape-corner:var(--mdui-shape-corner-small);position:relative;display:inline-block;flex-shrink:0;overflow:hidden;border-radius:var(--shape-corner);cursor:pointer;-webkit-tap-highlight-color:transparent;transition:box-shadow var(--mdui-motion-duration-short4) var(--mdui-motion-easing-linear);height:2rem;background-color:rgb(var(--mdui-color-surface));border:.0625rem solid rgb(var(--mdui-color-outline));color:rgb(var(--mdui-color-on-surface-variant));font-size:var(--mdui-typescale-label-large-size);font-weight:var(--mdui-typescale-label-large-weight);letter-spacing:var(--mdui-typescale-label-large-tracking);line-height:var(--mdui-typescale-label-large-line-height);--mdui-comp-ripple-state-layer-color:var(--mdui-color-on-surface-variant)}.button{padding-right:.4375rem;padding-left:.4375rem}:host([variant=input]) .button{padding-right:.1875rem;padding-left:.1875rem}:host([selected]:not([selected=false i])) .button{padding-right:.5rem;padding-left:.5rem}:host([selected][variant=input]:not([selected=false i])) .button{padding-right:.25rem;padding-left:.25rem}:host([elevated]:not([elevated=false i])) .button{padding-right:.5rem;padding-left:.5rem}:host([variant=assist]){color:rgb(var(--mdui-color-on-surface));--mdui-comp-ripple-state-layer-color:var(--mdui-color-on-surface)}:host([elevated]:not([elevated=false i])){border-width:0;background-color:rgb(var(--mdui-color-surface-container-low));box-shadow:var(--mdui-elevation-level1)}:host([selected]:not([selected=false i])){color:rgb(var(--mdui-color-on-secondary-container));background-color:rgb(var(--mdui-color-secondary-container));border-width:0;--mdui-comp-ripple-state-layer-color:var(
|
|
22
22
|
--mdui-color-on-secondary-container
|
|
23
|
-
)}:host([disabled]),:host([loading]){cursor:default;pointer-events:none}:host([disabled]){border-color:rgba(var(--mdui-color-on-surface),12%);color:rgba(var(--mdui-color-on-surface),38%);box-shadow:var(--mdui-elevation-level0)}:host([disabled][elevated]),:host([disabled][selected]){background-color:rgba(var(--mdui-color-on-surface),12%)}:host([selected][hover]){box-shadow:var(--mdui-elevation-level1)}:host([elevated][hover]){color:rgb(var(--mdui-color-on-secondary-container));box-shadow:var(--mdui-elevation-level2)}:host([variant=filter][hover]),:host([variant=input][hover]),:host([variant=suggestion][hover]){color:rgb(var(--mdui-color-on-surface-variant))}:host([variant=filter][focus-visible]),:host([variant=input][focus-visible]),:host([variant=suggestion][focus-visible]){border-color:rgb(var(--mdui-color-on-surface-variant))}:host([dragged]),:host([dragged][hover]){box-shadow:var(--mdui-elevation-level4)}.button{overflow:visible}.label{display:inline-flex;padding-right:.5rem;padding-left:.5rem}.end-icon,.icon,.selected-icon{display:inline-flex;font-size:1.28571429em;color:rgb(var(--mdui-color-on-surface-variant))}:host([variant=assist]) .end-icon,:host([variant=assist]) .icon,:host([variant=assist]) .selected-icon{color:rgb(var(--mdui-color-primary))}:host([selected]) .end-icon,:host([selected]) .icon,:host([selected]) .selected-icon{color:rgb(var(--mdui-color-on-secondary-container))}:host([disabled]) .end-icon,:host([disabled]) .icon,:host([disabled]) .selected-icon{opacity:.38;color:rgb(var(--mdui-color-on-surface))}.end-icon .i,.icon .i,.selected-icon .i,::slotted([slot=end-icon]),::slotted([slot=icon]),::slotted([slot=selected-icon]){font-size:inherit}:host([variant=input]) .has-icon .icon,:host([variant=input]) .has-icon .selected-icon,:host([variant=input]) .has-icon mdui-circular-progress{margin-left:.25rem}:host([variant=input]) .has-end-icon .end-icon{margin-right:.25rem}mdui-circular-progress{display:inline-flex;width:1.125rem;height:1.125rem}:host([disabled]) mdui-circular-progress{stroke:rgba(var(--mdui-color-on-surface),38%)}::slotted(mdui-avatar[slot=end-icon]),::slotted(mdui-avatar[slot=icon]),::slotted(mdui-avatar[slot=selected-icon]){width:1.5rem;height:1.5rem}:host([disabled]) ::slotted(mdui-avatar[slot=end-icon]),:host([disabled]) ::slotted(mdui-avatar[slot=icon]),:host([disabled]) ::slotted(mdui-avatar[slot=selected-icon]){opacity:.38}::slotted(mdui-avatar[slot=icon]),::slotted(mdui-avatar[slot=selected-icon]){margin-left:-.25rem;margin-right:-.125rem}::slotted(mdui-avatar[slot=end-icon]){margin-right:-.25rem;margin-left:-.125rem}.delete-icon{display:inline-flex;font-size:1.28571429em;transition:background-color var(--mdui-motion-duration-short4) var(--mdui-motion-easing-linear);border-radius:var(--mdui-shape-corner-full);margin-right:-.25rem;margin-left:-.25rem;padding:.25rem;color:rgb(var(--mdui-color-on-surface-variant))}.delete-icon:hover{background-color:rgba(var(--mdui-color-on-surface-variant),12%)}.has-end-icon .delete-icon{margin-left:.25rem}:host([variant=assiat]) .delete-icon{color:rgb(var(--mdui-color-primary))}:host([variant=input]) .delete-icon{margin-right:.0625rem}:host([disabled]) .delete-icon{color:rgba(var(--mdui-color-on-surface),38%)}.delete-icon .i,::slotted([slot=delete-icon]){font-size:inherit}::slotted(mdui-avatar[slot=delete-icon]){width:1.125rem;height:1.125rem}`;
|
|
23
|
+
)}:host([disabled]:not([disabled=false i])),:host([loading]:not([loading=false i])){cursor:default;pointer-events:none}:host([disabled]:not([disabled=false i])){border-color:rgba(var(--mdui-color-on-surface),12%);color:rgba(var(--mdui-color-on-surface),38%);box-shadow:var(--mdui-elevation-level0)}:host([disabled][elevated]:not([disabled=false i],[elevated=false i])),:host([disabled][selected]:not([disabled=false i],[selected=false i])){background-color:rgba(var(--mdui-color-on-surface),12%)}:host([selected][hover]:not([selected=false i])){box-shadow:var(--mdui-elevation-level1)}:host([elevated][hover]:not([elevated=false i])){color:rgb(var(--mdui-color-on-secondary-container));box-shadow:var(--mdui-elevation-level2)}:host([variant=filter][hover]),:host([variant=input][hover]),:host([variant=suggestion][hover]){color:rgb(var(--mdui-color-on-surface-variant))}:host([variant=filter][focus-visible]),:host([variant=input][focus-visible]),:host([variant=suggestion][focus-visible]){border-color:rgb(var(--mdui-color-on-surface-variant))}:host([dragged]),:host([dragged][hover]){box-shadow:var(--mdui-elevation-level4)}.button{overflow:visible}.label{display:inline-flex;padding-right:.5rem;padding-left:.5rem}.end-icon,.icon,.selected-icon{display:inline-flex;font-size:1.28571429em;color:rgb(var(--mdui-color-on-surface-variant))}:host([variant=assist]) .end-icon,:host([variant=assist]) .icon,:host([variant=assist]) .selected-icon{color:rgb(var(--mdui-color-primary))}:host([selected]:not([selected=false i])) .end-icon,:host([selected]:not([selected=false i])) .icon,:host([selected]:not([selected=false i])) .selected-icon{color:rgb(var(--mdui-color-on-secondary-container))}:host([disabled]:not([disabled=false i])) .end-icon,:host([disabled]:not([disabled=false i])) .icon,:host([disabled]:not([disabled=false i])) .selected-icon{opacity:.38;color:rgb(var(--mdui-color-on-surface))}.end-icon .i,.icon .i,.selected-icon .i,::slotted([slot=end-icon]),::slotted([slot=icon]),::slotted([slot=selected-icon]){font-size:inherit}:host([variant=input]) .has-icon .icon,:host([variant=input]) .has-icon .selected-icon,:host([variant=input]) .has-icon mdui-circular-progress{margin-left:.25rem}:host([variant=input]) .has-end-icon .end-icon{margin-right:.25rem}mdui-circular-progress{display:inline-flex;width:1.125rem;height:1.125rem}:host([disabled]:not([disabled=false i])) mdui-circular-progress{stroke:rgba(var(--mdui-color-on-surface),38%)}::slotted(mdui-avatar[slot=end-icon]),::slotted(mdui-avatar[slot=icon]),::slotted(mdui-avatar[slot=selected-icon]){width:1.5rem;height:1.5rem}:host([disabled]:not([disabled=false i])) ::slotted(mdui-avatar[slot=end-icon]),:host([disabled]:not([disabled=false i])) ::slotted(mdui-avatar[slot=icon]),:host([disabled]:not([disabled=false i])) ::slotted(mdui-avatar[slot=selected-icon]){opacity:.38}::slotted(mdui-avatar[slot=icon]),::slotted(mdui-avatar[slot=selected-icon]){margin-left:-.25rem;margin-right:-.125rem}::slotted(mdui-avatar[slot=end-icon]){margin-right:-.25rem;margin-left:-.125rem}.delete-icon{display:inline-flex;font-size:1.28571429em;transition:background-color var(--mdui-motion-duration-short4) var(--mdui-motion-easing-linear);border-radius:var(--mdui-shape-corner-full);margin-right:-.25rem;margin-left:-.25rem;padding:.25rem;color:rgb(var(--mdui-color-on-surface-variant))}.delete-icon:hover{background-color:rgba(var(--mdui-color-on-surface-variant),12%)}.has-end-icon .delete-icon{margin-left:.25rem}:host([variant=assiat]) .delete-icon{color:rgb(var(--mdui-color-primary))}:host([variant=input]) .delete-icon{margin-right:.0625rem}:host([disabled]:not([disabled=false i])) .delete-icon{color:rgba(var(--mdui-color-on-surface),38%)}.delete-icon .i,::slotted([slot=delete-icon]){font-size:inherit}::slotted(mdui-avatar[slot=delete-icon]){width:1.125rem;height:1.125rem}`;
|
|
24
24
|
|
|
25
25
|
/**
|
|
26
26
|
* @summary 纸片组件
|
package/dist/cjs/loader.cjs.js
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
const index = require('./index-
|
|
5
|
+
const index = require('./index-7685ace6.js');
|
|
6
6
|
const appGlobals = require('./app-globals-3a1e7e63.js');
|
|
7
7
|
|
|
8
8
|
const defineCustomElements = async (win, options) => {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
const index = require('./index-
|
|
3
|
+
const index = require('./index-7685ace6.js');
|
|
4
4
|
|
|
5
5
|
const urAvatarCss = ":host {\n img {\n display: block;\n border-color: #ececec;\n border-style: solid;\n background: #fff;\n }\n}\n";
|
|
6
6
|
const UrAvatarStyle0 = urAvatarCss;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
const index = require('./index-
|
|
4
|
-
require('./index-
|
|
3
|
+
const index = require('./index-7685ace6.js');
|
|
4
|
+
require('./index-6f8876d6.js');
|
|
5
5
|
|
|
6
6
|
const urButtonCss = ":host{display:inline-block;--ur-shape-corner-small:var(--mdui-shape-corner-small)}:host mdui-button{width:inherit;border-radius:var(--ur-shape-corner-small)}";
|
|
7
7
|
const UrButtonStyle0 = urButtonCss;
|