urnovl-web-components 0.0.170 → 0.0.172
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-60054fb9.js → anchor-31b9a9d1.js} +12 -12
- package/dist/cjs/{appendTo-55674635.js → appendTo-18fb250c.js} +43 -43
- package/dist/cjs/{button-base-1b083de4.js → button-base-37b48e60.js} +52 -52
- package/dist/cjs/check-4dd152e0.js +14 -0
- package/dist/cjs/children-0b93dd89.js +18 -0
- package/dist/cjs/class-map-5321cbe6.js +11 -0
- package/dist/cjs/{default-value-c89bc53d.js → default-value-f1c602f3.js} +5 -5
- package/dist/cjs/{form-99470e35.js → form-a018dd49.js} +9 -9
- package/dist/cjs/{is-3783cb36.js → get-511a0185.js} +52 -52
- package/dist/cjs/{has-slot-cb273eb9.js → has-slot-684b9160.js} +3 -3
- package/dist/cjs/{if-defined-7e2ad69b.js → if-defined-0a794922.js} +2 -2
- package/dist/cjs/{index-65d946a7.js → index-04cb5431.js} +27 -27
- package/dist/cjs/{index-10c3b92d.js → index-2a7667ef.js} +60 -60
- package/dist/cjs/{index-703fbbf1.js → index-627bf8eb.js} +51 -51
- package/dist/cjs/{index-32e5fe53.js → index-7132b697.js} +72 -72
- package/dist/cjs/{index-0f4a0b6f.js → index-7a26b16b.js} +165 -165
- package/dist/cjs/{index-b4ee1ea4.js → index-82359396.js} +9 -3
- package/dist/cjs/{index-1687d33e.js → index-a9957399.js} +24 -24
- package/dist/cjs/{layout-item-base-c62e5efe.js → layout-item-base-1e29df10.js} +11 -11
- package/dist/cjs/live-e5bfc603.js +11 -0
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/cjs/{localize-b83df35d.js → localize-78065043.js} +2 -2
- package/dist/cjs/{ur-menu-item-93796dd2.js → menu-item-5caa82af.js} +64 -89
- package/dist/cjs/{motion-36411fd6.js → motion-ceba572b.js} +4 -4
- package/dist/cjs/{observeResize-24f6ea64.js → observeResize-c91c316e.js} +2 -2
- package/dist/cjs/radio-e8aaf2c5.js +168 -0
- package/dist/cjs/ref-05dc0add.js +12 -0
- package/dist/cjs/{ripple-mixin-01f70e13.js → ripple-mixin-ada8a9ad.js} +107 -107
- package/dist/cjs/{scroll-bf94d2c2.js → scroll-7a932edc.js} +28 -28
- package/dist/cjs/{state-613e20ff.js → state-ef6a09ff.js} +2 -2
- package/dist/cjs/svg-tag-8887c222.js +11 -0
- package/dist/cjs/template-0f669b3d.js +7 -0
- package/dist/cjs/{top-app-bar-3838462b.js → top-app-bar-8a567856.js} +38 -38
- package/dist/cjs/ur-avatar-19f6840e.js +27 -0
- package/dist/cjs/ur-avatar.cjs.entry.js +2 -2
- package/dist/cjs/ur-button-3cd788a0.js +25 -0
- package/dist/cjs/ur-button-arrow-left_2.cjs.entry.js +16 -16
- package/dist/cjs/ur-button-icon.cjs.entry.js +30 -19
- package/dist/cjs/ur-button.cjs.entry.js +17 -17
- package/dist/cjs/ur-checkbox-group.cjs.entry.js +159 -0
- package/dist/cjs/ur-checkbox.cjs.entry.js +56 -17
- package/dist/cjs/ur-chip.cjs.entry.js +19 -19
- package/dist/cjs/ur-dialog.cjs.entry.js +47 -47
- package/dist/cjs/ur-hero.cjs.entry.js +5 -5
- package/dist/cjs/ur-linear-progress.cjs.entry.js +51 -0
- package/dist/cjs/ur-list-subheader.cjs.entry.js +2 -2
- package/dist/cjs/ur-list_3.cjs.entry.js +71 -71
- package/dist/cjs/ur-loader.cjs.entry.js +2 -2
- package/dist/cjs/ur-locale-filter-button.cjs.entry.js +18 -18
- package/dist/cjs/ur-locale-filter-panel.cjs.entry.js +22 -22
- package/dist/cjs/ur-logo.cjs.entry.js +2 -2
- package/dist/cjs/ur-main-desktop-top-app-bar.cjs.entry.js +10 -10
- package/dist/cjs/ur-main-left-menu.cjs.entry.js +3 -3
- package/dist/cjs/ur-menu-item.cjs.entry.js +38 -18
- package/dist/cjs/ur-navigation-drawer.cjs.entry.js +49 -49
- package/dist/cjs/ur-novl-carousel.cjs.entry.js +2 -2
- package/dist/cjs/ur-novl.cjs.entry.js +2 -2
- package/dist/cjs/ur-page-profile.cjs.entry.js +22 -22
- package/dist/cjs/ur-page.cjs.entry.js +4 -4
- package/dist/cjs/ur-profile.cjs.entry.js +19 -19
- package/dist/cjs/ur-radio-button.cjs.entry.js +31 -172
- package/dist/cjs/ur-radio-group.cjs.entry.js +368 -0
- package/dist/cjs/ur-read-desktop-top-app-bar.cjs.entry.js +93 -0
- package/dist/cjs/ur-read-mobile-top-app-bar.cjs.entry.js +10 -10
- package/dist/cjs/ur-read-rail-mobile.cjs.entry.js +112 -0
- package/dist/cjs/ur-read-rail.cjs.entry.js +152 -0
- package/dist/cjs/ur-reader.cjs.entry.js +1642 -0
- package/dist/cjs/ur-segment-button.cjs.entry.js +82 -82
- package/dist/cjs/ur-select.cjs.entry.js +240 -199
- package/dist/cjs/ur-switch.cjs.entry.js +50 -50
- package/dist/cjs/ur-tabs.cjs.entry.js +69 -69
- package/dist/cjs/ur-text-field.cjs.entry.js +114 -24
- package/dist/cjs/ur-tooltip.cjs.entry.js +109 -0
- package/dist/cjs/ur-top-app-bar.cjs.entry.js +23 -23
- package/dist/cjs/ur-user-profile.cjs.entry.js +2 -2
- package/dist/cjs/ur-user.cjs.entry.js +4 -4
- package/dist/cjs/urnovl-web-components.cjs.js +2 -2
- package/dist/collection/collection-manifest.json +8 -0
- package/dist/collection/components/ur-avatar/ur-avatar.css +3 -1
- package/dist/collection/components/ur-avatar/ur-avatar.js +5 -1
- package/dist/collection/components/ur-button/ur-button.css +12 -0
- package/dist/collection/components/ur-button/ur-button.js +2 -1
- package/dist/collection/components/ur-button-icon/ur-button-icon.css +6 -0
- package/dist/collection/components/ur-button-icon/ur-button-icon.js +15 -5
- package/dist/collection/components/ur-checkbox/ur-checkbox.js +104 -5
- package/dist/collection/components/ur-checkbox-group/ur-checkbox-group.css +0 -0
- package/dist/collection/components/ur-checkbox-group/ur-checkbox-group.js +355 -0
- package/dist/collection/components/ur-chip/ur-chip.js +1 -1
- package/dist/collection/components/ur-dialog/ur-dialog.js +1 -1
- package/dist/collection/components/ur-dropdown/ur-dropdown.js +0 -0
- package/dist/collection/components/ur-hero/ur-hero.js +4 -4
- package/dist/collection/components/ur-linear-progress/ur-linear-progress.css +60 -0
- package/dist/collection/components/ur-linear-progress/ur-linear-progress.js +98 -0
- package/dist/collection/components/ur-list/ur-list-item.js +2 -2
- package/dist/collection/components/ur-list/ur-list-subheader.js +1 -1
- package/dist/collection/components/ur-list/ur-list.js +1 -1
- package/dist/collection/components/ur-loader/ur-loader.js +1 -1
- package/dist/collection/components/ur-locale-filter-button/ur-locale-filter-button.js +2 -2
- package/dist/collection/components/ur-locale-filter-panel/ur-locale-filter-panel.js +2 -2
- package/dist/collection/components/ur-logo/ur-logo.js +1 -1
- package/dist/collection/components/ur-main-desktop-top-app-bar/ur-main-desktop-top-app-bar.js +2 -2
- package/dist/collection/components/ur-main-left-menu/ur-main-left-menu.js +2 -2
- package/dist/collection/components/ur-menu-item/ur-menu-item.js +1 -1
- package/dist/collection/components/ur-menu-profile/ur-menu-profile.js +1 -1
- package/dist/collection/components/ur-navigation-drawer/ur-navigation-drawer.js +1 -1
- package/dist/collection/components/ur-novl/ur-novl.js +1 -1
- package/dist/collection/components/ur-novl-carousel/ur-novl-carousel.js +1 -1
- package/dist/collection/components/ur-page/ur-page.js +3 -3
- package/dist/collection/components/ur-page-profile/ur-page-profile.js +4 -4
- package/dist/collection/components/ur-profile/ur-profile.js +3 -3
- package/dist/collection/components/ur-radio-button/ur-radio-button.js +62 -6
- package/dist/collection/components/ur-radio-group/ur-radio-group.css +0 -0
- package/dist/collection/components/ur-radio-group/ur-radio-group.js +215 -0
- package/dist/collection/components/ur-read-desktop-top-app-bar/ur-read-desktop-top-app-bar.css +58 -0
- package/dist/collection/components/ur-read-desktop-top-app-bar/ur-read-desktop-top-app-bar.js +190 -0
- package/dist/collection/components/ur-read-mobile-top-app-bar/ur-read-mobile-top-app-bar.css +12 -2
- package/dist/collection/components/ur-read-mobile-top-app-bar/ur-read-mobile-top-app-bar.js +1 -1
- package/dist/collection/components/ur-read-rail/ur-read-rail.css +70 -0
- package/dist/collection/components/ur-read-rail/ur-read-rail.js +724 -0
- package/dist/collection/components/ur-read-rail-mobile/ur-read-rail-mobile.css +75 -0
- package/dist/collection/components/ur-read-rail-mobile/ur-read-rail-mobile.js +560 -0
- package/dist/collection/components/ur-reader/ur-reader.css +319 -0
- package/dist/collection/components/ur-reader/ur-reader.js +1111 -0
- package/dist/collection/components/ur-segment-button/ur-segment-button.js +1 -1
- package/dist/collection/components/ur-select/ur-select.css +44 -0
- package/dist/collection/components/ur-select/ur-select.js +187 -93
- package/dist/collection/components/ur-switch/ur-switch.js +1 -1
- package/dist/collection/components/ur-tabs/ur-tabs.js +1 -1
- package/dist/collection/components/ur-text-field/ur-text-field.js +448 -7
- package/dist/collection/components/ur-tooltip/ur-tooltip.css +148 -0
- package/dist/collection/components/ur-tooltip/ur-tooltip.js +278 -0
- package/dist/collection/components/ur-top-app-bar/ur-top-app-bar.css +12 -3
- package/dist/collection/components/ur-top-app-bar/ur-top-app-bar.js +2 -2
- package/dist/collection/components/ur-user/ur-user.js +3 -3
- package/dist/collection/components/ur-user-profile/ur-user-profile.js +1 -1
- package/dist/collection/stories/CheckboxGroup.stories.js +125 -0
- package/dist/collection/stories/Checkboxes.stories.js +36 -8
- package/dist/collection/stories/LinearProgress.stories.js +37 -0
- package/dist/collection/stories/RadioButtons.stories.js +34 -8
- package/dist/collection/stories/RadioButtonsGroup.stories.js +65 -0
- package/dist/collection/stories/RandomStory.js +4 -0
- package/dist/collection/stories/ReadDesktopTopAppBar.stories.js +87 -0
- package/dist/collection/stories/ReadRail.stories.js +272 -0
- package/dist/collection/stories/ReadRailMobile.stories.js +67 -0
- package/dist/collection/stories/Reader.stories.js +233 -0
- package/dist/collection/stories/Select.stories.js +178 -76
- package/dist/collection/stories/TextFields.stories.js +126 -16
- package/dist/collection/stories/Tooltip.stories.js +136 -0
- package/dist/components/index.js +1 -1
- package/dist/components/p-0d84a5e3.js +167 -0
- package/dist/components/p-35288657.js +81 -0
- package/dist/components/{p-619984d3.js → p-35553bb7.js} +2 -2
- package/dist/components/{p-1e86f3ee.js → p-39eb0448.js} +5 -1
- package/dist/components/{p-e2c139e9.js → p-57097918.js} +7 -3
- package/dist/components/{p-7710f371.js → p-5ba92bef.js} +1 -1
- package/dist/components/{p-4abdd30e.js → p-6343eeb0.js} +3 -3
- package/dist/components/{p-aa59941f.js → p-78f40bf6.js} +1 -1
- package/dist/components/{p-b411c8b0.js → p-891b2fa5.js} +2 -2
- package/dist/components/p-8da2213f.js +131 -0
- package/dist/components/{p-e14f9c62.js → p-930f05f5.js} +0 -46
- package/dist/components/{p-e2b3df7f.js → p-af03fe1d.js} +2 -2
- package/dist/components/{p-eeb12b89.js → p-c15c01fd.js} +15 -4
- package/dist/components/{p-bd537a41.js → p-fc419ab6.js} +4 -3
- package/dist/components/{p-64231c8f.js → p-ff1b0d0c.js} +3 -3
- 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 +1 -1
- package/dist/components/ur-button.js +1 -1
- package/dist/components/ur-checkbox-group.d.ts +11 -0
- package/dist/components/ur-checkbox-group.js +190 -0
- package/dist/components/ur-checkbox.js +1 -36
- package/dist/components/ur-chip.js +2 -2
- package/dist/components/ur-dialog.js +2 -2
- package/dist/components/ur-hero.js +6 -6
- package/dist/components/ur-linear-progress.d.ts +11 -0
- package/dist/components/ur-linear-progress.js +71 -0
- package/dist/components/ur-list-item.js +1 -1
- package/dist/components/ur-list-subheader.js +2 -2
- package/dist/components/ur-list.js +1 -1
- package/dist/components/ur-loader.js +2 -2
- package/dist/components/ur-locale-filter-button.js +3 -3
- package/dist/components/ur-locale-filter-panel.js +4 -4
- package/dist/components/ur-logo.js +1 -1
- package/dist/components/ur-main-desktop-top-app-bar.js +4 -4
- package/dist/components/ur-main-left-menu.js +10 -10
- package/dist/components/ur-menu-item.js +45 -1
- package/dist/components/ur-menu-profile.js +1 -1
- package/dist/components/ur-navigation-drawer.js +2 -2
- package/dist/components/ur-novl-carousel.js +5 -5
- package/dist/components/ur-novl.js +1 -1
- package/dist/components/ur-page-profile.js +7 -7
- package/dist/components/ur-page.js +5 -5
- package/dist/components/ur-profile.js +4 -4
- package/dist/components/ur-radio-button.js +24 -171
- package/dist/components/ur-radio-group.d.ts +11 -0
- package/dist/components/ur-radio-group.js +386 -0
- package/dist/components/ur-read-desktop-top-app-bar.d.ts +11 -0
- package/dist/components/ur-read-desktop-top-app-bar.js +112 -0
- package/dist/components/ur-read-mobile-top-app-bar.js +4 -4
- package/dist/components/ur-read-rail-mobile.d.ts +11 -0
- package/dist/components/ur-read-rail-mobile.js +170 -0
- package/dist/components/ur-read-rail.d.ts +11 -0
- package/dist/components/ur-read-rail.js +223 -0
- package/dist/components/ur-reader.d.ts +11 -0
- package/dist/components/ur-reader.js +1731 -0
- package/dist/components/ur-segment-button.js +2 -2
- package/dist/components/ur-select.js +97 -59
- package/dist/components/ur-switch.js +2 -2
- package/dist/components/ur-tabs.js +2 -2
- package/dist/components/ur-text-field.js +111 -5
- package/dist/components/ur-tooltip.d.ts +11 -0
- package/dist/components/ur-tooltip.js +6 -0
- package/dist/components/ur-top-app-bar.js +5 -5
- package/dist/components/ur-user-profile.js +2 -2
- package/dist/components/ur-user.js +5 -5
- package/dist/esm/{anchor-bf8e8d48.js → anchor-b0d342ec.js} +2 -2
- package/dist/esm/{appendTo-7022283c.js → appendTo-8fe1da31.js} +1 -1
- package/dist/esm/{button-base-5d6c067c.js → button-base-c9a309ff.js} +7 -7
- package/dist/esm/{check-26b6e0b9.js → check-b400a8c1.js} +2 -2
- package/dist/esm/{children-0297d4ab.js → children-0caab043.js} +1 -1
- package/dist/esm/{class-map-573bf048.js → class-map-43bead90.js} +1 -1
- package/dist/esm/{default-value-5736394e.js → default-value-604b4b04.js} +1 -1
- package/dist/esm/{form-bad6b2e6.js → form-eb67f4e2.js} +1 -1
- package/dist/esm/{is-65d90b1c.js → get-2d1f3db5.js} +53 -53
- package/dist/esm/{has-slot-beb1360e.js → has-slot-7b93d7a5.js} +1 -1
- package/dist/esm/{if-defined-d4ef1802.js → if-defined-a7e85546.js} +1 -1
- package/dist/esm/{index-e402ebe8.js → index-06579974.js} +11 -11
- package/dist/esm/{index-215d6d76.js → index-ca102892.js} +6 -6
- package/dist/esm/{index-8e0958ca.js → index-cb5e879e.js} +16 -16
- package/dist/esm/{index-44032f70.js → index-d031de69.js} +9 -9
- package/dist/esm/{index-35ab9c9d.js → index-d6f3341a.js} +5 -5
- package/dist/esm/{index-05eae1a5.js → index-df5e99f9.js} +31 -31
- package/dist/esm/{index-ae5b7a9b.js → index-f0fada10.js} +9 -3
- package/dist/esm/{layout-item-base-ad45734d.js → layout-item-base-02df9441.js} +3 -3
- package/dist/esm/{live-414749e8.js → live-1eb66a96.js} +1 -1
- package/dist/esm/loader.js +3 -3
- package/dist/esm/{localize-7c2f35b1.js → localize-ff713c12.js} +1 -1
- package/dist/esm/{ur-menu-item-1b7156be.js → menu-item-9c74ba81.js} +12 -37
- package/dist/esm/{motion-361cecee.js → motion-145f9b6c.js} +1 -1
- package/dist/esm/{observeResize-ddf2b098.js → observeResize-e8afe218.js} +1 -1
- package/dist/esm/radio-484d185d.js +166 -0
- package/dist/esm/{ref-a3513486.js → ref-81837737.js} +1 -1
- package/dist/esm/{ripple-mixin-5f0ae501.js → ripple-mixin-aac891ae.js} +7 -7
- package/dist/esm/{scroll-e718504c.js → scroll-955d6c04.js} +2 -2
- package/dist/esm/{state-df6176b9.js → state-27f51bda.js} +1 -1
- package/dist/esm/{svg-tag-00a56a7f.js → svg-tag-2aeeb831.js} +2 -2
- package/dist/esm/{template-58e012b5.js → template-20f30d03.js} +1 -1
- package/dist/esm/{top-app-bar-ae781d39.js → top-app-bar-e27c114d.js} +2 -2
- package/dist/esm/ur-avatar-9281dd67.js +25 -0
- package/dist/esm/ur-avatar.entry.js +2 -2
- package/dist/esm/ur-button-arrow-left_2.entry.js +16 -16
- package/dist/esm/ur-button-b218cac8.js +23 -0
- package/dist/esm/ur-button-icon.entry.js +30 -19
- package/dist/esm/ur-button.entry.js +17 -17
- package/dist/esm/ur-checkbox-group.entry.js +155 -0
- package/dist/esm/ur-checkbox.entry.js +56 -17
- package/dist/esm/ur-chip.entry.js +19 -19
- package/dist/esm/ur-dialog.entry.js +12 -12
- package/dist/esm/ur-hero.entry.js +5 -5
- package/dist/esm/ur-linear-progress.entry.js +47 -0
- package/dist/esm/ur-list-subheader.entry.js +2 -2
- package/dist/esm/ur-list_3.entry.js +17 -17
- package/dist/esm/ur-loader.entry.js +2 -2
- package/dist/esm/ur-locale-filter-button.entry.js +18 -18
- package/dist/esm/ur-locale-filter-panel.entry.js +22 -22
- package/dist/esm/ur-logo.entry.js +2 -2
- package/dist/esm/ur-main-desktop-top-app-bar.entry.js +10 -10
- package/dist/esm/ur-main-left-menu.entry.js +3 -3
- package/dist/esm/ur-menu-item.entry.js +41 -17
- package/dist/esm/ur-navigation-drawer.entry.js +10 -10
- package/dist/esm/ur-novl-carousel.entry.js +2 -2
- package/dist/esm/ur-novl.entry.js +2 -2
- package/dist/esm/ur-page-profile.entry.js +22 -22
- package/dist/esm/ur-page.entry.js +4 -4
- package/dist/esm/ur-profile.entry.js +19 -19
- package/dist/esm/ur-radio-button.entry.js +31 -172
- package/dist/esm/ur-radio-group.entry.js +364 -0
- package/dist/esm/ur-read-desktop-top-app-bar.entry.js +89 -0
- package/dist/esm/ur-read-mobile-top-app-bar.entry.js +10 -10
- package/dist/esm/ur-read-rail-mobile.entry.js +108 -0
- package/dist/esm/ur-read-rail.entry.js +148 -0
- package/dist/esm/ur-reader.entry.js +1638 -0
- package/dist/esm/ur-segment-button.entry.js +19 -19
- package/dist/esm/ur-select.entry.js +107 -66
- package/dist/esm/ur-switch.entry.js +18 -18
- package/dist/esm/ur-tabs.entry.js +13 -13
- package/dist/esm/ur-text-field.entry.js +114 -24
- package/dist/esm/ur-tooltip.entry.js +105 -0
- package/dist/esm/ur-top-app-bar.entry.js +13 -13
- package/dist/esm/ur-user-profile.entry.js +2 -2
- package/dist/esm/ur-user.entry.js +4 -4
- package/dist/esm/urnovl-web-components.js +3 -3
- package/dist/types/components/ur-avatar/ur-avatar.d.ts +1 -0
- package/dist/types/components/ur-button-icon/ur-button-icon.d.ts +2 -1
- package/dist/types/components/ur-checkbox/ur-checkbox.d.ts +22 -0
- package/dist/types/components/ur-checkbox-group/ur-checkbox-group.d.ts +48 -0
- package/dist/types/components/ur-dropdown/ur-dropdown.d.ts +0 -0
- package/dist/types/components/ur-linear-progress/ur-linear-progress.d.ts +24 -0
- package/dist/types/components/ur-radio-button/ur-radio-button.d.ts +9 -2
- package/dist/types/components/ur-radio-group/ur-radio-group.d.ts +34 -0
- package/dist/types/components/ur-read-desktop-top-app-bar/ur-read-desktop-top-app-bar.d.ts +36 -0
- package/dist/types/components/ur-read-rail/ur-read-rail.d.ts +52 -0
- package/dist/types/components/ur-read-rail-mobile/ur-read-rail-mobile.d.ts +38 -0
- package/dist/types/components/ur-reader/ur-reader.d.ts +70 -0
- package/dist/types/components/ur-select/ur-select.d.ts +23 -17
- package/dist/types/components/ur-text-field/ur-text-field.d.ts +29 -1
- package/dist/types/components/ur-tooltip/ur-tooltip.d.ts +26 -0
- package/dist/types/components.d.ts +718 -15
- package/dist/types/stories/CheckboxGroup.stories.d.ts +131 -0
- package/dist/types/stories/Checkboxes.stories.d.ts +46 -1
- package/dist/types/stories/LinearProgress.stories.d.ts +34 -0
- package/dist/types/stories/RadioButtons.stories.d.ts +36 -1
- package/dist/types/stories/RadioButtonsGroup.stories.d.ts +61 -0
- package/dist/types/stories/RandomStory.d.ts +5 -0
- package/dist/types/stories/ReadDesktopTopAppBar.stories.d.ts +26 -0
- package/dist/types/stories/ReadRail.stories.d.ts +249 -0
- package/dist/types/stories/ReadRailMobile.stories.d.ts +52 -0
- package/dist/types/stories/Reader.stories.d.ts +182 -0
- package/dist/types/stories/Select.stories.d.ts +180 -35
- package/dist/types/stories/TextFields.stories.d.ts +162 -0
- package/dist/types/stories/Tooltip.stories.d.ts +100 -0
- package/{www/build/p-87c618f0.entry.js → dist/urnovl-web-components/p-00608088.entry.js} +1 -1
- package/dist/urnovl-web-components/p-03b7544a.entry.js +1 -0
- package/dist/urnovl-web-components/{p-12c4fa95.js → p-0c1d014f.js} +2 -2
- package/dist/urnovl-web-components/{p-a27ffa78.js → p-0d920441.js} +1 -1
- package/dist/urnovl-web-components/{p-6659d488.js → p-0ff2921a.js} +1 -1
- package/dist/urnovl-web-components/p-1814afc5.entry.js +1 -0
- package/{www/build/p-8bb2214a.entry.js → dist/urnovl-web-components/p-1861b158.entry.js} +1 -1
- package/dist/urnovl-web-components/{p-7d099308.js → p-18e81a56.js} +1 -1
- package/dist/urnovl-web-components/{p-9142f6a0.js → p-1b690602.js} +1 -1
- package/dist/urnovl-web-components/{p-c48ac4b6.entry.js → p-1f64ef6b.entry.js} +1 -1
- package/dist/urnovl-web-components/{p-8f8bad75.js → p-208c110f.js} +1 -1
- package/{www/build/p-98c0d846.js → dist/urnovl-web-components/p-21580b9f.js} +1 -1
- package/{www/build/p-5c649bcb.js → dist/urnovl-web-components/p-23be5790.js} +1 -1
- package/dist/urnovl-web-components/{p-d1244caa.entry.js → p-275030c9.entry.js} +1 -1
- package/dist/urnovl-web-components/{p-de9d5fbe.js → p-2776506a.js} +1 -1
- package/{www/build/p-58b89f87.entry.js → dist/urnovl-web-components/p-2a57a988.entry.js} +1 -1
- package/dist/urnovl-web-components/{p-9bfb6da3.js → p-2eb1ea4f.js} +1 -1
- package/dist/urnovl-web-components/p-2f233201.js +1 -0
- package/dist/urnovl-web-components/p-3b9e996d.entry.js +1 -0
- package/dist/urnovl-web-components/p-3c133b8a.entry.js +1 -0
- package/dist/urnovl-web-components/p-45ffde7a.js +1 -0
- package/dist/urnovl-web-components/{p-4769f30d.js → p-4d9a1fff.js} +5 -5
- package/dist/urnovl-web-components/p-4dc78ebe.entry.js +1 -0
- package/dist/urnovl-web-components/{p-5eed9887.js → p-4f494fa3.js} +1 -1
- package/dist/urnovl-web-components/p-56571c66.entry.js +1 -0
- package/dist/urnovl-web-components/p-69614d0f.js +1 -0
- package/dist/urnovl-web-components/p-6dfa23f6.entry.js +1 -0
- package/dist/urnovl-web-components/{p-8a43f03e.js → p-6f4342b0.js} +1 -1
- package/{www/build/p-5d256674.entry.js → dist/urnovl-web-components/p-78b5c0a5.entry.js} +1 -1
- package/dist/urnovl-web-components/{p-acb96a86.js → p-7941308d.js} +2 -2
- package/dist/urnovl-web-components/p-7d3ce8ee.entry.js +1 -0
- package/dist/urnovl-web-components/{p-2c12c6ae.js → p-7e0d525c.js} +1 -1
- package/dist/urnovl-web-components/p-7e4c9804.entry.js +1 -0
- package/dist/urnovl-web-components/p-83756f0b.entry.js +1 -0
- package/dist/urnovl-web-components/p-86365ccf.js +23 -0
- package/{www/build/p-eaf1ca1e.entry.js → dist/urnovl-web-components/p-8a1bfb35.entry.js} +1 -1
- package/{www/build/p-4aa7bd52.js → dist/urnovl-web-components/p-8be0e685.js} +1 -1
- package/dist/urnovl-web-components/p-91c84a6b.entry.js +1 -0
- package/dist/urnovl-web-components/{p-ac915aa1.entry.js → p-9700e66e.entry.js} +2 -2
- package/dist/urnovl-web-components/{p-fde3a0dc.js → p-9861e010.js} +1 -1
- package/dist/urnovl-web-components/p-a4bfdd67.entry.js +1 -0
- package/dist/urnovl-web-components/p-acbc3ddf.js +1 -0
- package/dist/urnovl-web-components/{p-3aba2a00.js → p-affb8ddc.js} +1 -1
- package/dist/urnovl-web-components/p-b068c160.entry.js +1 -0
- package/dist/urnovl-web-components/p-b07e1bbb.entry.js +1 -0
- package/dist/urnovl-web-components/{p-aab9614b.entry.js → p-b26e314c.entry.js} +1 -1
- package/dist/urnovl-web-components/{p-4d248e62.js → p-b2fb808e.js} +2 -2
- package/dist/urnovl-web-components/{p-6913ff16.entry.js → p-b3c6dff3.entry.js} +1 -1
- package/{www/build/p-b270ea3f.js → dist/urnovl-web-components/p-bc57f722.js} +2 -2
- package/dist/urnovl-web-components/{p-15ea9e1b.entry.js → p-c4547411.entry.js} +1 -1
- package/dist/urnovl-web-components/{p-04c12413.js → p-c4b724c5.js} +1 -1
- package/dist/urnovl-web-components/p-c5d00db3.js +1 -0
- package/{www/build/p-814b4f40.entry.js → dist/urnovl-web-components/p-c879b3df.entry.js} +1 -1
- package/dist/urnovl-web-components/p-c8f83911.js +1 -0
- package/dist/urnovl-web-components/{p-bcda538a.entry.js → p-d1c78c7f.entry.js} +1 -1
- package/{www/build/p-8bb9915f.entry.js → dist/urnovl-web-components/p-d81563bc.entry.js} +1 -1
- package/dist/urnovl-web-components/p-d968a7fb.entry.js +3 -0
- package/dist/urnovl-web-components/p-daf2b6eb.entry.js +1 -0
- package/dist/urnovl-web-components/p-db497685.entry.js +1 -0
- package/dist/urnovl-web-components/p-dbb539de.entry.js +1 -0
- package/dist/urnovl-web-components/p-de01ab88.entry.js +1 -0
- package/dist/urnovl-web-components/p-df910f8f.js +1 -0
- package/dist/urnovl-web-components/p-e1b33d5a.js +1 -0
- package/dist/urnovl-web-components/p-e253e90b.entry.js +1 -0
- package/dist/urnovl-web-components/p-e81aa4d9.js +1 -0
- package/{www/build/p-0108cdbb.entry.js → dist/urnovl-web-components/p-ebed8c77.entry.js} +1 -1
- package/dist/urnovl-web-components/p-f1e59d72.entry.js +1 -0
- package/dist/urnovl-web-components/p-f48c6b9a.entry.js +1 -0
- package/dist/urnovl-web-components/{p-478a5687.js → p-f7b173f0.js} +1 -1
- package/dist/urnovl-web-components/{p-4c59024f.js → p-fa528df5.js} +1 -1
- package/dist/urnovl-web-components/p-fa842e6f.js +1 -0
- package/dist/urnovl-web-components/{p-88f0db6a.entry.js → p-fb114787.entry.js} +1 -1
- package/dist/urnovl-web-components/p-fbde3ae4.entry.js +1 -0
- package/dist/urnovl-web-components/{p-a4bd15b6.entry.js → p-fddd21bb.entry.js} +1 -1
- package/dist/urnovl-web-components/{p-a1a05092.entry.js → p-fde7fd21.entry.js} +1 -1
- package/dist/urnovl-web-components/urnovl-web-components.esm.js +1 -1
- package/package.json +3 -1
- package/{dist/urnovl-web-components/p-87c618f0.entry.js → www/build/p-00608088.entry.js} +1 -1
- package/www/build/p-03b7544a.entry.js +1 -0
- package/www/build/{p-12c4fa95.js → p-0c1d014f.js} +2 -2
- package/www/build/{p-a27ffa78.js → p-0d920441.js} +1 -1
- package/www/build/{p-6659d488.js → p-0ff2921a.js} +1 -1
- package/www/build/p-1814afc5.entry.js +1 -0
- package/{dist/urnovl-web-components/p-8bb2214a.entry.js → www/build/p-1861b158.entry.js} +1 -1
- package/www/build/{p-7d099308.js → p-18e81a56.js} +1 -1
- package/www/build/{p-9142f6a0.js → p-1b690602.js} +1 -1
- package/www/build/{p-c48ac4b6.entry.js → p-1f64ef6b.entry.js} +1 -1
- package/www/build/{p-8f8bad75.js → p-208c110f.js} +1 -1
- package/{dist/urnovl-web-components/p-98c0d846.js → www/build/p-21580b9f.js} +1 -1
- package/{dist/urnovl-web-components/p-5c649bcb.js → www/build/p-23be5790.js} +1 -1
- package/www/build/{p-d1244caa.entry.js → p-275030c9.entry.js} +1 -1
- package/www/build/{p-de9d5fbe.js → p-2776506a.js} +1 -1
- package/{dist/urnovl-web-components/p-58b89f87.entry.js → www/build/p-2a57a988.entry.js} +1 -1
- package/www/build/{p-9bfb6da3.js → p-2eb1ea4f.js} +1 -1
- package/www/build/p-2f233201.js +1 -0
- package/www/build/p-3b9e996d.entry.js +1 -0
- package/www/build/p-3c133b8a.entry.js +1 -0
- package/www/build/p-45d80da6.js +1 -0
- package/www/build/p-45ffde7a.js +1 -0
- package/www/build/{p-4769f30d.js → p-4d9a1fff.js} +5 -5
- package/www/build/p-4dc78ebe.entry.js +1 -0
- package/www/build/{p-5eed9887.js → p-4f494fa3.js} +1 -1
- package/www/build/p-56571c66.entry.js +1 -0
- package/www/build/p-69614d0f.js +1 -0
- package/www/build/p-6dfa23f6.entry.js +1 -0
- package/www/build/{p-8a43f03e.js → p-6f4342b0.js} +1 -1
- package/{dist/urnovl-web-components/p-5d256674.entry.js → www/build/p-78b5c0a5.entry.js} +1 -1
- package/www/build/{p-acb96a86.js → p-7941308d.js} +2 -2
- package/www/build/p-7d3ce8ee.entry.js +1 -0
- package/www/build/{p-2c12c6ae.js → p-7e0d525c.js} +1 -1
- package/www/build/p-7e4c9804.entry.js +1 -0
- package/www/build/p-83756f0b.entry.js +1 -0
- package/www/build/p-86365ccf.js +23 -0
- package/{dist/urnovl-web-components/p-eaf1ca1e.entry.js → www/build/p-8a1bfb35.entry.js} +1 -1
- package/{dist/urnovl-web-components/p-4aa7bd52.js → www/build/p-8be0e685.js} +1 -1
- package/www/build/p-91c84a6b.entry.js +1 -0
- package/www/build/{p-ac915aa1.entry.js → p-9700e66e.entry.js} +2 -2
- package/www/build/{p-fde3a0dc.js → p-9861e010.js} +1 -1
- package/www/build/p-a4bfdd67.entry.js +1 -0
- package/www/build/p-acbc3ddf.js +1 -0
- package/www/build/{p-3aba2a00.js → p-affb8ddc.js} +1 -1
- package/www/build/p-b068c160.entry.js +1 -0
- package/www/build/p-b07e1bbb.entry.js +1 -0
- package/www/build/{p-aab9614b.entry.js → p-b26e314c.entry.js} +1 -1
- package/www/build/{p-4d248e62.js → p-b2fb808e.js} +2 -2
- package/www/build/{p-6913ff16.entry.js → p-b3c6dff3.entry.js} +1 -1
- package/{dist/urnovl-web-components/p-b270ea3f.js → www/build/p-bc57f722.js} +2 -2
- package/www/build/{p-15ea9e1b.entry.js → p-c4547411.entry.js} +1 -1
- package/www/build/{p-04c12413.js → p-c4b724c5.js} +1 -1
- package/www/build/p-c5d00db3.js +1 -0
- package/{dist/urnovl-web-components/p-814b4f40.entry.js → www/build/p-c879b3df.entry.js} +1 -1
- package/www/build/p-c8f83911.js +1 -0
- package/www/build/{p-bcda538a.entry.js → p-d1c78c7f.entry.js} +1 -1
- package/{dist/urnovl-web-components/p-8bb9915f.entry.js → www/build/p-d81563bc.entry.js} +1 -1
- package/www/build/p-d968a7fb.entry.js +3 -0
- package/www/build/p-daf2b6eb.entry.js +1 -0
- package/www/build/p-db497685.entry.js +1 -0
- package/www/build/p-dbb539de.entry.js +1 -0
- package/www/build/p-de01ab88.entry.js +1 -0
- package/www/build/p-df910f8f.js +1 -0
- package/www/build/p-e1b33d5a.js +1 -0
- package/www/build/p-e253e90b.entry.js +1 -0
- package/www/build/p-e81aa4d9.js +1 -0
- package/{dist/urnovl-web-components/p-0108cdbb.entry.js → www/build/p-ebed8c77.entry.js} +1 -1
- package/www/build/p-f1e59d72.entry.js +1 -0
- package/www/build/p-f48c6b9a.entry.js +1 -0
- package/www/build/{p-478a5687.js → p-f7b173f0.js} +1 -1
- package/www/build/{p-4c59024f.js → p-fa528df5.js} +1 -1
- package/www/build/p-fa842e6f.js +1 -0
- package/www/build/{p-88f0db6a.entry.js → p-fb114787.entry.js} +1 -1
- package/www/build/p-fbde3ae4.entry.js +1 -0
- package/www/build/{p-a4bd15b6.entry.js → p-fddd21bb.entry.js} +1 -1
- package/www/build/{p-a1a05092.entry.js → p-fde7fd21.entry.js} +1 -1
- package/www/build/urnovl-web-components.esm.js +1 -1
- package/dist/cjs/check-41154eab.js +0 -14
- package/dist/cjs/children-fb1e1a86.js +0 -18
- package/dist/cjs/class-map-14759be7.js +0 -11
- package/dist/cjs/live-b197ef35.js +0 -11
- package/dist/cjs/ref-c2c9e01c.js +0 -12
- package/dist/cjs/svg-tag-2fa5fa49.js +0 -11
- package/dist/cjs/template-4077344f.js +0 -7
- package/dist/cjs/ur-avatar-91138004.js +0 -23
- package/dist/cjs/ur-button-9a1c211b.js +0 -24
- package/dist/esm/ur-avatar-18bbb2d0.js +0 -21
- package/dist/esm/ur-button-8dcf5bdf.js +0 -22
- package/dist/urnovl-web-components/p-064dcfd2.entry.js +0 -1
- package/dist/urnovl-web-components/p-0720baa8.entry.js +0 -3
- package/dist/urnovl-web-components/p-1c166d0c.entry.js +0 -1
- package/dist/urnovl-web-components/p-1c8feed5.entry.js +0 -1
- package/dist/urnovl-web-components/p-1cb23f89.js +0 -1
- package/dist/urnovl-web-components/p-22c14ff1.js +0 -1
- package/dist/urnovl-web-components/p-3c92e89c.entry.js +0 -1
- package/dist/urnovl-web-components/p-4301592f.js +0 -28
- package/dist/urnovl-web-components/p-45969297.entry.js +0 -1
- package/dist/urnovl-web-components/p-45bed46a.entry.js +0 -1
- package/dist/urnovl-web-components/p-4976c07b.entry.js +0 -1
- package/dist/urnovl-web-components/p-51b60e6f.entry.js +0 -1
- package/dist/urnovl-web-components/p-668850ed.js +0 -1
- package/dist/urnovl-web-components/p-687dd202.entry.js +0 -1
- package/dist/urnovl-web-components/p-6a60900d.entry.js +0 -1
- package/dist/urnovl-web-components/p-745c78bb.js +0 -1
- package/dist/urnovl-web-components/p-7844f377.entry.js +0 -1
- package/dist/urnovl-web-components/p-7e6be841.js +0 -1
- package/dist/urnovl-web-components/p-95a690b4.entry.js +0 -1
- package/dist/urnovl-web-components/p-9a8de161.js +0 -1
- package/dist/urnovl-web-components/p-b4c4ff06.entry.js +0 -1
- package/dist/urnovl-web-components/p-c0b49e28.js +0 -1
- package/dist/urnovl-web-components/p-cf38b7c8.entry.js +0 -1
- package/dist/urnovl-web-components/p-d3284292.js +0 -1
- package/dist/urnovl-web-components/p-dd9fc7ac.js +0 -1
- package/www/build/p-064dcfd2.entry.js +0 -1
- package/www/build/p-0720baa8.entry.js +0 -3
- package/www/build/p-1c166d0c.entry.js +0 -1
- package/www/build/p-1c8feed5.entry.js +0 -1
- package/www/build/p-1cb23f89.js +0 -1
- package/www/build/p-22c14ff1.js +0 -1
- package/www/build/p-3c92e89c.entry.js +0 -1
- package/www/build/p-4301592f.js +0 -28
- package/www/build/p-45969297.entry.js +0 -1
- package/www/build/p-45bed46a.entry.js +0 -1
- package/www/build/p-4976c07b.entry.js +0 -1
- package/www/build/p-51b60e6f.entry.js +0 -1
- package/www/build/p-668850ed.js +0 -1
- package/www/build/p-687dd202.entry.js +0 -1
- package/www/build/p-6a60900d.entry.js +0 -1
- package/www/build/p-745c78bb.js +0 -1
- package/www/build/p-7844f377.entry.js +0 -1
- package/www/build/p-7e6be841.js +0 -1
- package/www/build/p-95a690b4.entry.js +0 -1
- package/www/build/p-9a8de161.js +0 -1
- package/www/build/p-ad486ea7.js +0 -1
- package/www/build/p-b4c4ff06.entry.js +0 -1
- package/www/build/p-c0b49e28.js +0 -1
- package/www/build/p-cf38b7c8.entry.js +0 -1
- package/www/build/p-d3284292.js +0 -1
- package/www/build/p-dd9fc7ac.js +0 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
const
|
|
4
|
-
const ifDefined = require('./if-defined-
|
|
3
|
+
const get = require('./get-511a0185.js');
|
|
4
|
+
const ifDefined = require('./if-defined-0a794922.js');
|
|
5
5
|
|
|
6
6
|
function cc(names) {
|
|
7
7
|
if (typeof names === "string" || typeof names === "number") return "" + names
|
|
@@ -25,21 +25,21 @@ function cc(names) {
|
|
|
25
25
|
|
|
26
26
|
const AnchorMixin = (superclass) => {
|
|
27
27
|
class AnchorMixinClass extends superclass {
|
|
28
|
-
renderAnchor({ id, className, part, content =
|
|
29
|
-
return
|
|
28
|
+
renderAnchor({ id, className, part, content = get.ke `<slot></slot>`, refDirective, tabIndex, }) {
|
|
29
|
+
return get.ke `<a ${refDirective} id="${ifDefined.to(id)}" class="_a ${className ? className : ''}" part="${ifDefined.to(part)}" href="${ifDefined.to(this.href)}" download="${ifDefined.to(this.download)}" target="${ifDefined.to(this.target)}" rel="${ifDefined.to(this.rel)}" tabindex="${ifDefined.to(tabIndex)}">${content}</a>`;
|
|
30
30
|
}
|
|
31
31
|
}
|
|
32
|
-
|
|
33
|
-
|
|
32
|
+
get.__decorate([
|
|
33
|
+
get.n({ reflect: true })
|
|
34
34
|
], AnchorMixinClass.prototype, "href", void 0);
|
|
35
|
-
|
|
36
|
-
|
|
35
|
+
get.__decorate([
|
|
36
|
+
get.n({ reflect: true })
|
|
37
37
|
], AnchorMixinClass.prototype, "download", void 0);
|
|
38
|
-
|
|
39
|
-
|
|
38
|
+
get.__decorate([
|
|
39
|
+
get.n({ reflect: true })
|
|
40
40
|
], AnchorMixinClass.prototype, "target", void 0);
|
|
41
|
-
|
|
42
|
-
|
|
41
|
+
get.__decorate([
|
|
42
|
+
get.n({ reflect: true })
|
|
43
43
|
], AnchorMixinClass.prototype, "rel", void 0);
|
|
44
44
|
return AnchorMixinClass;
|
|
45
45
|
};
|
|
@@ -1,24 +1,24 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
const
|
|
3
|
+
const get$1 = require('./get-511a0185.js');
|
|
4
4
|
|
|
5
|
-
|
|
6
|
-
|
|
5
|
+
get$1.eachArray(['add', 'remove', 'toggle'], (name) => {
|
|
6
|
+
get$1.$.fn[`${name}Class`] = function (className) {
|
|
7
7
|
if (name === 'remove' && !arguments.length) {
|
|
8
8
|
return this.each((_, element) => {
|
|
9
|
-
|
|
9
|
+
get$1.setAttribute(element, 'class', '');
|
|
10
10
|
});
|
|
11
11
|
}
|
|
12
12
|
return this.each((i, element) => {
|
|
13
|
-
if (!
|
|
13
|
+
if (!get$1.isElement(element)) {
|
|
14
14
|
return;
|
|
15
15
|
}
|
|
16
|
-
const classes = (
|
|
17
|
-
? className.call(element, i,
|
|
16
|
+
const classes = (get$1.isFunction(className)
|
|
17
|
+
? className.call(element, i, get$1.getAttribute(element, 'class', ''))
|
|
18
18
|
: className)
|
|
19
19
|
.split(' ')
|
|
20
20
|
.filter((name) => name);
|
|
21
|
-
|
|
21
|
+
get$1.eachArray(classes, (cls) => {
|
|
22
22
|
element.classList[name](cls);
|
|
23
23
|
});
|
|
24
24
|
});
|
|
@@ -28,16 +28,16 @@ is.eachArray(['add', 'remove', 'toggle'], (name) => {
|
|
|
28
28
|
// eslint-disable-next-line
|
|
29
29
|
function each(target, callback) {
|
|
30
30
|
// eachArray 回调函数是 value, key,这里的 each 函数是 key, value
|
|
31
|
-
return
|
|
32
|
-
?
|
|
31
|
+
return get$1.isArrayLike(target)
|
|
32
|
+
? get$1.eachArray(target, (value, index) => {
|
|
33
33
|
return callback.call(value, index, value);
|
|
34
34
|
})
|
|
35
|
-
:
|
|
35
|
+
: get$1.eachObject(target, callback);
|
|
36
36
|
}
|
|
37
37
|
|
|
38
38
|
// eslint-disable-next-line
|
|
39
39
|
function map(elements, callback) {
|
|
40
|
-
const window =
|
|
40
|
+
const window = get$1.getWindow();
|
|
41
41
|
let value;
|
|
42
42
|
const ret = [];
|
|
43
43
|
each(elements, (i, element) => {
|
|
@@ -50,8 +50,8 @@ function map(elements, callback) {
|
|
|
50
50
|
}
|
|
51
51
|
|
|
52
52
|
// eslint-disable-next-line
|
|
53
|
-
|
|
54
|
-
return new
|
|
53
|
+
get$1.$.fn.map = function (callback) {
|
|
54
|
+
return new get$1.JQ(map(this, (element, i) => {
|
|
55
55
|
return callback.call(element, i, element);
|
|
56
56
|
}));
|
|
57
57
|
};
|
|
@@ -68,13 +68,13 @@ is.$.fn.map = function (callback) {
|
|
|
68
68
|
const handleExtraWidth = (element, name, value, funcIndex, includeMargin, multiply) => {
|
|
69
69
|
// 获取元素的 padding, border, margin 宽度(两侧宽度的和)
|
|
70
70
|
const getExtraWidthValue = (extra) => {
|
|
71
|
-
return (
|
|
71
|
+
return (get$1.getExtraWidth(element, name.toLowerCase(), extra) *
|
|
72
72
|
multiply);
|
|
73
73
|
};
|
|
74
74
|
if (funcIndex === 2 && includeMargin) {
|
|
75
75
|
value += getExtraWidthValue('margin');
|
|
76
76
|
}
|
|
77
|
-
if (
|
|
77
|
+
if (get$1.isBorderBox(element)) {
|
|
78
78
|
if (funcIndex === 0) {
|
|
79
79
|
value -= getExtraWidthValue('border');
|
|
80
80
|
}
|
|
@@ -102,28 +102,28 @@ const handleExtraWidth = (element, name, value, funcIndex, includeMargin, multip
|
|
|
102
102
|
* @param includeMargin
|
|
103
103
|
*/
|
|
104
104
|
const get = (element, name, funcIndex, includeMargin) => {
|
|
105
|
-
const document =
|
|
105
|
+
const document = get$1.getDocument();
|
|
106
106
|
const clientProp = `client${name}`;
|
|
107
107
|
const scrollProp = `scroll${name}`;
|
|
108
108
|
const offsetProp = `offset${name}`;
|
|
109
109
|
const innerProp = `inner${name}`;
|
|
110
110
|
// $(window).width()
|
|
111
|
-
if (
|
|
111
|
+
if (get$1.isWindow(element)) {
|
|
112
112
|
// outerWidth, outerHeight 需要包含滚动条的宽度
|
|
113
113
|
return funcIndex === 2
|
|
114
114
|
? element[innerProp]
|
|
115
|
-
:
|
|
115
|
+
: get$1.toElement(document)[clientProp];
|
|
116
116
|
}
|
|
117
117
|
// $(document).width()
|
|
118
|
-
if (
|
|
119
|
-
const doc =
|
|
118
|
+
if (get$1.isDocument(element)) {
|
|
119
|
+
const doc = get$1.toElement(element);
|
|
120
120
|
return Math.max(
|
|
121
121
|
// @ts-ignore
|
|
122
122
|
element.body[scrollProp], doc[scrollProp],
|
|
123
123
|
// @ts-ignore
|
|
124
124
|
element.body[offsetProp], doc[offsetProp], doc[clientProp]);
|
|
125
125
|
}
|
|
126
|
-
const value = parseFloat(
|
|
126
|
+
const value = parseFloat(get$1.getComputedStyleValue(element, name.toLowerCase()) || '0');
|
|
127
127
|
return handleExtraWidth(element, name, value, funcIndex, includeMargin, 1);
|
|
128
128
|
};
|
|
129
129
|
/**
|
|
@@ -136,16 +136,16 @@ const get = (element, name, funcIndex, includeMargin) => {
|
|
|
136
136
|
* @param value
|
|
137
137
|
*/
|
|
138
138
|
const set = (element, elementIndex, name, funcIndex, includeMargin, value) => {
|
|
139
|
-
let computedValue =
|
|
139
|
+
let computedValue = get$1.isFunction(value)
|
|
140
140
|
? value.call(element, elementIndex, get(element, name, funcIndex, includeMargin))
|
|
141
141
|
: value;
|
|
142
142
|
if (computedValue == null) {
|
|
143
143
|
return;
|
|
144
144
|
}
|
|
145
|
-
const $element =
|
|
145
|
+
const $element = get$1.$(element);
|
|
146
146
|
const dimension = name.toLowerCase();
|
|
147
147
|
// 特殊的值,不需要计算 padding、border、margin
|
|
148
|
-
if (
|
|
148
|
+
if (get$1.isString(computedValue) &&
|
|
149
149
|
['auto', 'inherit', ''].includes(computedValue)) {
|
|
150
150
|
$element.css(dimension, computedValue);
|
|
151
151
|
return;
|
|
@@ -158,15 +158,15 @@ const set = (element, elementIndex, name, funcIndex, includeMargin, value) => {
|
|
|
158
158
|
(suffix || 'px');
|
|
159
159
|
$element.css(dimension, computedValue);
|
|
160
160
|
};
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
161
|
+
get$1.eachArray(['Width', 'Height'], (name) => {
|
|
162
|
+
get$1.eachArray([`inner${name}`, name.toLowerCase(), `outer${name}`], (funcName, funcIndex) => {
|
|
163
|
+
get$1.$.fn[funcName] = function (
|
|
164
164
|
// eslint-disable-next-line
|
|
165
165
|
margin,
|
|
166
166
|
// eslint-disable-next-line
|
|
167
167
|
value) {
|
|
168
168
|
// 是否是赋值操作
|
|
169
|
-
const isSet = arguments.length && (funcIndex < 2 || !
|
|
169
|
+
const isSet = arguments.length && (funcIndex < 2 || !get$1.isBoolean(margin));
|
|
170
170
|
const includeMargin = margin === true || value === true;
|
|
171
171
|
// 获取第一个元素的值
|
|
172
172
|
if (!isSet) {
|
|
@@ -182,11 +182,11 @@ is.eachArray(['Width', 'Height'], (name) => {
|
|
|
182
182
|
});
|
|
183
183
|
});
|
|
184
184
|
|
|
185
|
-
|
|
185
|
+
get$1.eachArray(['insertBefore', 'insertAfter'], (name, nameIndex) => {
|
|
186
186
|
// eslint-disable-next-line
|
|
187
|
-
|
|
188
|
-
const $element = nameIndex ?
|
|
189
|
-
const $target =
|
|
187
|
+
get$1.$.fn[name] = function (target) {
|
|
188
|
+
const $element = nameIndex ? get$1.$(this.get().reverse()) : this; // 顺序和 jQuery 保持一致
|
|
189
|
+
const $target = get$1.$(target);
|
|
190
190
|
const result = [];
|
|
191
191
|
$target.each((index, target) => {
|
|
192
192
|
if (!target.parentNode) {
|
|
@@ -201,35 +201,35 @@ is.eachArray(['insertBefore', 'insertAfter'], (name, nameIndex) => {
|
|
|
201
201
|
target.parentNode.insertBefore(newItem, existingItem);
|
|
202
202
|
});
|
|
203
203
|
});
|
|
204
|
-
return
|
|
204
|
+
return get$1.$(nameIndex ? result.reverse() : result);
|
|
205
205
|
};
|
|
206
206
|
});
|
|
207
207
|
|
|
208
|
-
|
|
208
|
+
get$1.$.fn.remove = function (selector) {
|
|
209
209
|
return this.each((_, element) => {
|
|
210
|
-
if (!selector ||
|
|
211
|
-
|
|
210
|
+
if (!selector || get$1.$(element).is(selector)) {
|
|
211
|
+
get$1.removeChild(element);
|
|
212
212
|
}
|
|
213
213
|
});
|
|
214
214
|
};
|
|
215
215
|
|
|
216
|
-
|
|
216
|
+
get$1.eachArray(['appendTo', 'prependTo'], (name, nameIndex) => {
|
|
217
217
|
// eslint-disable-next-line
|
|
218
|
-
|
|
218
|
+
get$1.$.fn[name] = function (target) {
|
|
219
219
|
const extraChilds = [];
|
|
220
|
-
const $target =
|
|
220
|
+
const $target = get$1.$(target).map((_, element) => {
|
|
221
221
|
const childNodes = element.childNodes;
|
|
222
222
|
const childLength = childNodes.length;
|
|
223
223
|
if (childLength) {
|
|
224
224
|
return childNodes[nameIndex ? 0 : childLength - 1];
|
|
225
225
|
}
|
|
226
|
-
const child =
|
|
227
|
-
|
|
226
|
+
const child = get$1.createElement('div');
|
|
227
|
+
get$1.appendChild(element, child);
|
|
228
228
|
extraChilds.push(child);
|
|
229
229
|
return child;
|
|
230
230
|
});
|
|
231
231
|
const $result = this[nameIndex ? 'insertBefore' : 'insertAfter']($target);
|
|
232
|
-
|
|
232
|
+
get$1.$(extraChilds).remove();
|
|
233
233
|
return $result;
|
|
234
234
|
};
|
|
235
235
|
});
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
const
|
|
4
|
-
const ifDefined = require('./if-defined-
|
|
5
|
-
const anchor = require('./anchor-
|
|
6
|
-
const form = require('./form-
|
|
7
|
-
const template = require('./template-
|
|
8
|
-
const rippleMixin = require('./ripple-mixin-
|
|
9
|
-
const classMap = require('./class-map-
|
|
3
|
+
const get = require('./get-511a0185.js');
|
|
4
|
+
const ifDefined = require('./if-defined-0a794922.js');
|
|
5
|
+
const anchor = require('./anchor-31b9a9d1.js');
|
|
6
|
+
const form = require('./form-a018dd49.js');
|
|
7
|
+
const template = require('./template-0f669b3d.js');
|
|
8
|
+
const rippleMixin = require('./ripple-mixin-ada8a9ad.js');
|
|
9
|
+
const classMap = require('./class-map-5321cbe6.js');
|
|
10
10
|
|
|
11
|
-
const style =
|
|
11
|
+
const style = get.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)}}`;
|
|
12
12
|
|
|
13
13
|
/**
|
|
14
14
|
* @summary 圆形进度指示器组件
|
|
@@ -17,7 +17,7 @@ const style = is.i `:host{position:relative;display:inline-block;flex-shrink:0;w
|
|
|
17
17
|
* <mdui-circular-progress></mdui-circular-progress>
|
|
18
18
|
* ```
|
|
19
19
|
*/
|
|
20
|
-
let CircularProgress = class CircularProgress extends
|
|
20
|
+
let CircularProgress = class CircularProgress extends get.MduiElement {
|
|
21
21
|
constructor() {
|
|
22
22
|
super(...arguments);
|
|
23
23
|
/**
|
|
@@ -26,8 +26,8 @@ let CircularProgress = class CircularProgress extends is.MduiElement {
|
|
|
26
26
|
this.max = 1;
|
|
27
27
|
}
|
|
28
28
|
render() {
|
|
29
|
-
const isDeterminate = !
|
|
30
|
-
return
|
|
29
|
+
const isDeterminate = !get.isUndefined(this.value);
|
|
30
|
+
return get.ke `<div class="progress ${classMap.Rt({
|
|
31
31
|
determinate: isDeterminate,
|
|
32
32
|
indeterminate: !isDeterminate,
|
|
33
33
|
})}">${isDeterminate ? this.renderDeterminate() : this.renderInDeterminate()}</div>`;
|
|
@@ -40,7 +40,7 @@ let CircularProgress = class CircularProgress extends is.MduiElement {
|
|
|
40
40
|
const center = circleRadius + strokeWidth / 2;
|
|
41
41
|
const circumference = 2 * π * circleRadius;
|
|
42
42
|
const determinateStrokeDashOffset = (1 - value / Math.max(this.max ?? value, value)) * circumference;
|
|
43
|
-
return
|
|
43
|
+
return get.ke `<svg viewBox="0 0 ${center * 2} ${center * 2}"><circle class="track" cx="${center}" cy="${center}" r="${circleRadius}" stroke-width="${strokeWidth}"></circle><circle class="circle" cx="${center}" cy="${center}" r="${circleRadius}" stroke-dasharray="${2 * π * circleRadius}" stroke-dashoffset="${determinateStrokeDashOffset}" stroke-width="${strokeWidth}"></circle></svg>`;
|
|
44
44
|
}
|
|
45
45
|
renderInDeterminate() {
|
|
46
46
|
const strokeWidth = 4; // 圆环宽度
|
|
@@ -49,24 +49,24 @@ let CircularProgress = class CircularProgress extends is.MduiElement {
|
|
|
49
49
|
const center = circleRadius + strokeWidth / 2;
|
|
50
50
|
const circumference = 2 * π * circleRadius;
|
|
51
51
|
const halfCircumference = 0.5 * circumference;
|
|
52
|
-
const circle = (thisStrokeWidth) =>
|
|
53
|
-
return
|
|
52
|
+
const circle = (thisStrokeWidth) => get.ke `<svg class="circle" viewBox="0 0 ${center * 2} ${center * 2}"><circle cx="${center}" cy="${center}" r="${circleRadius}" stroke-dasharray="${circumference}" stroke-dashoffset="${halfCircumference}" stroke-width="${thisStrokeWidth}"></circle></svg>`;
|
|
53
|
+
return get.ke `<div class="layer"><div class="clipper left">${circle(strokeWidth)}</div><div class="gap-patch">${circle(strokeWidth * 0.8)}</div><div class="clipper right">${circle(strokeWidth)}</div></div>`;
|
|
54
54
|
}
|
|
55
55
|
};
|
|
56
|
-
CircularProgress.styles = [
|
|
57
|
-
|
|
58
|
-
|
|
56
|
+
CircularProgress.styles = [get.componentStyle, style];
|
|
57
|
+
get.__decorate([
|
|
58
|
+
get.n({ type: Number, reflect: true })
|
|
59
59
|
], CircularProgress.prototype, "max", void 0);
|
|
60
|
-
|
|
61
|
-
|
|
60
|
+
get.__decorate([
|
|
61
|
+
get.n({ type: Number })
|
|
62
62
|
], CircularProgress.prototype, "value", void 0);
|
|
63
|
-
CircularProgress =
|
|
64
|
-
|
|
63
|
+
CircularProgress = get.__decorate([
|
|
64
|
+
get.t('mdui-circular-progress')
|
|
65
65
|
], CircularProgress);
|
|
66
66
|
|
|
67
|
-
const buttonBaseStyle =
|
|
67
|
+
const buttonBaseStyle = get.i `.button{position:relative;display:inline-flex;align-items:center;justify-content:center;height:100%;padding:0;overflow:hidden;color:inherit;font-size:inherit;font-family:inherit;font-weight:inherit;letter-spacing:inherit;white-space:nowrap;text-align:center;text-decoration:none;vertical-align:middle;background:0 0;border:none;outline:0;cursor:inherit;-webkit-user-select:none;user-select:none;touch-action:manipulation;zoom:1;-webkit-user-drag:none}`;
|
|
68
68
|
|
|
69
|
-
class ButtonBase extends anchor.AnchorMixin(rippleMixin.RippleMixin(rippleMixin.FocusableMixin(
|
|
69
|
+
class ButtonBase extends anchor.AnchorMixin(rippleMixin.RippleMixin(rippleMixin.FocusableMixin(get.MduiElement))) {
|
|
70
70
|
constructor() {
|
|
71
71
|
super(...arguments);
|
|
72
72
|
/**
|
|
@@ -200,65 +200,65 @@ class ButtonBase extends anchor.AnchorMixin(rippleMixin.RippleMixin(rippleMixin.
|
|
|
200
200
|
}
|
|
201
201
|
renderLoading() {
|
|
202
202
|
return this.loading
|
|
203
|
-
?
|
|
203
|
+
? get.ke `<mdui-circular-progress part="loading"></mdui-circular-progress>`
|
|
204
204
|
: template.nothingTemplate;
|
|
205
205
|
}
|
|
206
|
-
renderButton({ id, className, part, content =
|
|
207
|
-
return
|
|
206
|
+
renderButton({ id, className, part, content = get.ke `<slot></slot>`, }) {
|
|
207
|
+
return get.ke `<button id="${ifDefined.to(id)}" class="${anchor.cc(['_button', className])}" part="${ifDefined.to(part)}" ?disabled="${this.rippleDisabled || this.focusDisabled}">${content}</button>`;
|
|
208
208
|
}
|
|
209
209
|
isButton() {
|
|
210
210
|
return !this.href;
|
|
211
211
|
}
|
|
212
212
|
}
|
|
213
213
|
ButtonBase.styles = [
|
|
214
|
-
|
|
214
|
+
get.componentStyle,
|
|
215
215
|
buttonBaseStyle,
|
|
216
216
|
];
|
|
217
|
-
|
|
218
|
-
|
|
217
|
+
get.__decorate([
|
|
218
|
+
get.n({
|
|
219
219
|
type: Boolean,
|
|
220
220
|
reflect: true,
|
|
221
|
-
converter:
|
|
221
|
+
converter: get.booleanConverter,
|
|
222
222
|
})
|
|
223
223
|
], ButtonBase.prototype, "disabled", void 0);
|
|
224
|
-
|
|
225
|
-
|
|
224
|
+
get.__decorate([
|
|
225
|
+
get.n({
|
|
226
226
|
type: Boolean,
|
|
227
227
|
reflect: true,
|
|
228
|
-
converter:
|
|
228
|
+
converter: get.booleanConverter,
|
|
229
229
|
})
|
|
230
230
|
], ButtonBase.prototype, "loading", void 0);
|
|
231
|
-
|
|
232
|
-
|
|
231
|
+
get.__decorate([
|
|
232
|
+
get.n({ reflect: true })
|
|
233
233
|
], ButtonBase.prototype, "name", void 0);
|
|
234
|
-
|
|
235
|
-
|
|
234
|
+
get.__decorate([
|
|
235
|
+
get.n({ reflect: true })
|
|
236
236
|
], ButtonBase.prototype, "value", void 0);
|
|
237
|
-
|
|
238
|
-
|
|
237
|
+
get.__decorate([
|
|
238
|
+
get.n({ reflect: true })
|
|
239
239
|
], ButtonBase.prototype, "type", void 0);
|
|
240
|
-
|
|
241
|
-
|
|
240
|
+
get.__decorate([
|
|
241
|
+
get.n({ reflect: true })
|
|
242
242
|
], ButtonBase.prototype, "form", void 0);
|
|
243
|
-
|
|
244
|
-
|
|
243
|
+
get.__decorate([
|
|
244
|
+
get.n({ reflect: true, attribute: 'formaction' })
|
|
245
245
|
], ButtonBase.prototype, "formAction", void 0);
|
|
246
|
-
|
|
247
|
-
|
|
246
|
+
get.__decorate([
|
|
247
|
+
get.n({ reflect: true, attribute: 'formenctype' })
|
|
248
248
|
], ButtonBase.prototype, "formEnctype", void 0);
|
|
249
|
-
|
|
250
|
-
|
|
249
|
+
get.__decorate([
|
|
250
|
+
get.n({ reflect: true, attribute: 'formmethod' })
|
|
251
251
|
], ButtonBase.prototype, "formMethod", void 0);
|
|
252
|
-
|
|
253
|
-
|
|
252
|
+
get.__decorate([
|
|
253
|
+
get.n({
|
|
254
254
|
type: Boolean,
|
|
255
255
|
reflect: true,
|
|
256
|
-
converter:
|
|
256
|
+
converter: get.booleanConverter,
|
|
257
257
|
attribute: 'formnovalidate',
|
|
258
258
|
})
|
|
259
259
|
], ButtonBase.prototype, "formNoValidate", void 0);
|
|
260
|
-
|
|
261
|
-
|
|
260
|
+
get.__decorate([
|
|
261
|
+
get.n({ reflect: true, attribute: 'formtarget' })
|
|
262
262
|
], ButtonBase.prototype, "formTarget", void 0);
|
|
263
263
|
|
|
264
264
|
exports.ButtonBase = ButtonBase;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
const get = require('./get-511a0185.js');
|
|
4
|
+
const svgTag = require('./svg-tag-8887c222.js');
|
|
5
|
+
|
|
6
|
+
let IconCheck = class IconCheck extends get.h {
|
|
7
|
+
render() {
|
|
8
|
+
return svgTag.svgTag('<path d="M9 16.17 4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z"/>');
|
|
9
|
+
}
|
|
10
|
+
};
|
|
11
|
+
IconCheck.styles = svgTag.style;
|
|
12
|
+
IconCheck = get.__decorate([
|
|
13
|
+
get.t('mdui-icon-check')
|
|
14
|
+
], IconCheck);
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
const get = require('./get-511a0185.js');
|
|
4
|
+
|
|
5
|
+
get.$.fn.children = function (selector) {
|
|
6
|
+
const children = [];
|
|
7
|
+
this.each((_, element) => {
|
|
8
|
+
get.eachArray(element.childNodes, (childNode) => {
|
|
9
|
+
if (!get.isElement(childNode)) {
|
|
10
|
+
return;
|
|
11
|
+
}
|
|
12
|
+
if (!selector || get.$(childNode).is(selector)) {
|
|
13
|
+
children.push(childNode);
|
|
14
|
+
}
|
|
15
|
+
});
|
|
16
|
+
});
|
|
17
|
+
return new get.JQ(get.unique(children));
|
|
18
|
+
};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
const get = require('./get-511a0185.js');
|
|
4
|
+
|
|
5
|
+
/**
|
|
6
|
+
* @license
|
|
7
|
+
* Copyright 2018 Google LLC
|
|
8
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
9
|
+
*/const Rt=get.e(class extends get.i$1{constructor(s){if(super(s),s.type!==get.t$1.ATTRIBUTE||"class"!==s.name||s.strings?.length>2)throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.")}render(t){return " "+Object.keys(t).filter((s=>t[s])).join(" ")+" "}update(t,[s]){if(void 0===this.st){this.st=new Set,void 0!==t.strings&&(this.nt=new Set(t.strings.join(" ").split(/\s/).filter((t=>""!==t))));for(const t in s)s[t]&&!this.nt?.has(t)&&this.st.add(t);return this.render(s)}const i=t.element.classList;for(const t of this.st)t in s||(i.remove(t),this.st.delete(t));for(const t in s){const r=!!s[t];r===this.st.has(t)||this.nt?.has(t)||(r?(i.add(t),this.st.add(t)):(i.remove(t),this.st.delete(t)));}return get.R}});
|
|
10
|
+
|
|
11
|
+
exports.Rt = Rt;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
const
|
|
3
|
+
const get = require('./get-511a0185.js');
|
|
4
4
|
|
|
5
5
|
/**
|
|
6
6
|
* defaultValue 装饰器。在 attribute 属性变更时,若值和 property 值不一致,则会保存新的 attribute 值
|
|
@@ -22,14 +22,14 @@ function defaultValue(propertyName = 'value') {
|
|
|
22
22
|
const attributeChangedCallback = constructor.prototype.attributeChangedCallback;
|
|
23
23
|
constructor.prototype.attributeChangedCallback = function (name, old, value) {
|
|
24
24
|
const options = constructor.getPropertyOptions(propertyName);
|
|
25
|
-
const attributeName =
|
|
25
|
+
const attributeName = get.isString(options.attribute)
|
|
26
26
|
? options.attribute
|
|
27
27
|
: propertyName;
|
|
28
28
|
if (name === attributeName) {
|
|
29
|
-
const converter = options.converter ||
|
|
30
|
-
const fromAttribute =
|
|
29
|
+
const converter = options.converter || get.u;
|
|
30
|
+
const fromAttribute = get.isFunction(converter)
|
|
31
31
|
? converter
|
|
32
|
-
: converter?.fromAttribute ??
|
|
32
|
+
: converter?.fromAttribute ?? get.u.fromAttribute;
|
|
33
33
|
const newValue = fromAttribute(value, options.type);
|
|
34
34
|
if (this[propertyName] !== newValue) {
|
|
35
35
|
this[key] = newValue;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
const
|
|
3
|
+
const get = require('./get-511a0185.js');
|
|
4
4
|
|
|
5
5
|
/**
|
|
6
6
|
* 使用该 WeakMap 来存储指定表单中所有的 mdui 表单控件
|
|
@@ -45,12 +45,12 @@ const formResets = new WeakMap();
|
|
|
45
45
|
class FormController {
|
|
46
46
|
constructor(host, options) {
|
|
47
47
|
(this.host = host).addController(this);
|
|
48
|
-
this.definedController = new
|
|
48
|
+
this.definedController = new get.DefinedController(host, {
|
|
49
49
|
needDomReady: true,
|
|
50
50
|
});
|
|
51
51
|
this.options = {
|
|
52
52
|
form: (control) => {
|
|
53
|
-
const formId =
|
|
53
|
+
const formId = get.$(control).attr('form');
|
|
54
54
|
if (formId) {
|
|
55
55
|
const root = control.getRootNode();
|
|
56
56
|
return root.getElementById(formId);
|
|
@@ -62,7 +62,7 @@ class FormController {
|
|
|
62
62
|
defaultValue: (control) => control.defaultValue,
|
|
63
63
|
setValue: (control, value) => (control.value = value),
|
|
64
64
|
disabled: (control) => control.disabled,
|
|
65
|
-
reportValidity: (control) =>
|
|
65
|
+
reportValidity: (control) => get.isFunction(control.reportValidity) ? control.reportValidity() : true,
|
|
66
66
|
...options,
|
|
67
67
|
};
|
|
68
68
|
this.onFormData = this.onFormData.bind(this);
|
|
@@ -148,7 +148,7 @@ class FormController {
|
|
|
148
148
|
if (!this.form) {
|
|
149
149
|
return;
|
|
150
150
|
}
|
|
151
|
-
const $button =
|
|
151
|
+
const $button = get.$(`<button type="${type}">`).css({
|
|
152
152
|
position: 'absolute',
|
|
153
153
|
width: 0,
|
|
154
154
|
height: 0,
|
|
@@ -167,7 +167,7 @@ class FormController {
|
|
|
167
167
|
'formnovalidate',
|
|
168
168
|
'formtarget',
|
|
169
169
|
].forEach((attr) => {
|
|
170
|
-
$button.attr(attr,
|
|
170
|
+
$button.attr(attr, get.$(invoker).attr(attr));
|
|
171
171
|
});
|
|
172
172
|
}
|
|
173
173
|
this.form.append(button);
|
|
@@ -188,9 +188,9 @@ class FormController {
|
|
|
188
188
|
].includes(this.host.tagName.toLowerCase());
|
|
189
189
|
if (!disabled &&
|
|
190
190
|
!isButton &&
|
|
191
|
-
|
|
191
|
+
get.isString(name) &&
|
|
192
192
|
name &&
|
|
193
|
-
!
|
|
193
|
+
!get.isUndefined(value)) {
|
|
194
194
|
if (Array.isArray(value)) {
|
|
195
195
|
value.forEach((val) => {
|
|
196
196
|
event.formData.append(name, val.toString());
|
|
@@ -232,7 +232,7 @@ class FormController {
|
|
|
232
232
|
if (this.form && !this.form.noValidate) {
|
|
233
233
|
const elements = getFormControls(this.form);
|
|
234
234
|
for (const element of elements) {
|
|
235
|
-
if (
|
|
235
|
+
if (get.isFunction(element.reportValidity) && !element.reportValidity()) {
|
|
236
236
|
return false;
|
|
237
237
|
}
|
|
238
238
|
}
|