framework7 7.1.5 → 8.0.0-beta.2
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/components/accordion/accordion.js +2 -16
- package/components/accordion/accordion.less +0 -3
- package/components/actions/actions-class.js +13 -58
- package/components/actions/actions-ios.less +42 -0
- package/components/actions/actions-md.less +12 -0
- package/components/actions/actions-rtl.css +1 -1
- package/components/actions/actions-vars.less +17 -42
- package/components/actions/actions.css +1 -1
- package/components/actions/actions.d.ts +2 -2
- package/components/actions/actions.js +0 -4
- package/components/actions/actions.less +5 -35
- package/components/app/app-class.d.ts +14 -12
- package/components/app/app-class.js +93 -75
- package/components/app/app-ios.less +0 -2
- package/components/app/app-md.less +0 -2
- package/components/app/app-vars.less +13 -96
- package/components/app/app.less +1 -4
- package/components/app/load-module.js +17 -36
- package/components/area-chart/area-chart-class.js +8 -64
- package/components/area-chart/area-chart.js +0 -3
- package/components/area-chart/area-chart.less +0 -3
- package/components/autocomplete/autocomplete-class.js +30 -175
- package/components/autocomplete/autocomplete-ios.less +0 -8
- package/components/autocomplete/autocomplete-rtl.css +1 -1
- package/components/autocomplete/autocomplete-vars.less +8 -22
- package/components/autocomplete/autocomplete.css +1 -1
- package/components/autocomplete/autocomplete.d.ts +1 -3
- package/components/autocomplete/autocomplete.js +1 -6
- package/components/autocomplete/autocomplete.less +6 -18
- package/components/badge/badge-vars.less +3 -6
- package/components/badge/badge.less +1 -3
- package/components/block/block-vars.less +25 -52
- package/components/block/block.less +37 -12
- package/components/breadcrumbs/breadcrumbs-rtl.css +1 -1
- package/components/breadcrumbs/breadcrumbs-vars.less +31 -15
- package/components/breadcrumbs/breadcrumbs.css +1 -1
- package/components/breadcrumbs/breadcrumbs.js +0 -2
- package/components/breadcrumbs/breadcrumbs.less +4 -10
- package/components/button/button-vars.less +42 -43
- package/components/button/button.less +24 -26
- package/components/calendar/calendar-class.js +81 -401
- package/components/calendar/calendar-rtl.css +1 -1
- package/components/calendar/calendar-vars.less +32 -46
- package/components/calendar/calendar.css +1 -1
- package/components/calendar/calendar.js +6 -4
- package/components/calendar/calendar.less +10 -21
- package/components/card/card-rtl.css +1 -1
- package/components/card/card-vars.less +41 -44
- package/components/card/card.css +1 -1
- package/components/card/card.js +0 -108
- package/components/card/card.less +18 -24
- package/components/checkbox/checkbox-rtl.css +1 -1
- package/components/checkbox/checkbox-vars.less +0 -8
- package/components/checkbox/checkbox.css +1 -1
- package/components/checkbox/checkbox.less +32 -3
- package/components/chip/chip-ios.less +3 -0
- package/components/chip/chip-md.less +4 -3
- package/components/chip/chip-rtl.css +1 -1
- package/components/chip/chip-vars.less +17 -20
- package/components/chip/chip.css +1 -1
- package/components/chip/chip.less +16 -21
- package/components/color-picker/color-picker-class.js +27 -158
- package/components/color-picker/color-picker-rtl.css +1 -1
- package/components/color-picker/color-picker.css +1 -1
- package/components/color-picker/color-picker.js +0 -4
- package/components/color-picker/color-picker.less +18 -8
- package/components/color-picker/modules/alpha-slider.js +0 -12
- package/components/color-picker/modules/brightness-slider.js +0 -8
- package/components/color-picker/modules/current-color.js +0 -2
- package/components/color-picker/modules/hex.js +0 -12
- package/components/color-picker/modules/hs-spectrum.js +0 -20
- package/components/color-picker/modules/hsb-sliders.js +0 -18
- package/components/color-picker/modules/hue-slider.js +0 -7
- package/components/color-picker/modules/initial-current-colors.js +0 -7
- package/components/color-picker/modules/palette.js +2 -10
- package/components/color-picker/modules/rgb-bars.js +0 -17
- package/components/color-picker/modules/rgb-sliders.js +0 -17
- package/components/color-picker/modules/sb-spectrum.js +0 -20
- package/components/color-picker/modules/wheel.js +0 -28
- package/components/contacts-list/contacts-list-md.less +4 -3
- package/components/contacts-list/contacts-list-rtl.css +1 -1
- package/components/contacts-list/contacts-list-vars.less +3 -15
- package/components/contacts-list/contacts-list.css +1 -1
- package/components/contacts-list/contacts-list.less +0 -3
- package/components/data-table/data-table-class.js +10 -32
- package/components/data-table/data-table-rtl.css +1 -1
- package/components/data-table/data-table-vars.less +6 -39
- package/components/data-table/data-table.css +1 -1
- package/components/data-table/data-table.js +0 -8
- package/components/data-table/data-table.less +0 -3
- package/components/dialog/dialog-class.js +7 -41
- package/components/dialog/dialog-ios.less +0 -3
- package/components/dialog/dialog-md.less +9 -9
- package/components/dialog/dialog-rtl.css +1 -1
- package/components/dialog/dialog-vars.less +25 -70
- package/components/dialog/dialog.css +1 -1
- package/components/dialog/dialog.d.ts +2 -2
- package/components/dialog/dialog.js +12 -48
- package/components/dialog/dialog.less +8 -4
- package/components/fab/fab-rtl.css +1 -1
- package/components/fab/fab-vars.less +20 -14
- package/components/fab/fab.css +1 -1
- package/components/fab/fab.js +0 -21
- package/components/fab/fab.less +50 -53
- package/components/form/form.d.ts +4 -4
- package/components/form/form.js +58 -94
- package/components/form/form.less +0 -3
- package/components/gauge/gauge-class.js +4 -20
- package/components/gauge/gauge.js +0 -9
- package/components/gauge/gauge.less +0 -3
- package/components/grid/grid-rtl.css +1 -1
- package/components/grid/grid-vars.less +0 -7
- package/components/grid/grid.css +1 -1
- package/components/grid/grid.d.ts +2 -8
- package/components/grid/grid.js +1 -225
- package/components/grid/grid.less +54 -184
- package/components/icon/icon.less +0 -3
- package/components/infinite-scroll/infinite-scroll-rtl.css +1 -1
- package/components/infinite-scroll/infinite-scroll.css +1 -1
- package/components/infinite-scroll/infinite-scroll.js +0 -16
- package/components/infinite-scroll/infinite-scroll.less +0 -3
- package/components/input/input-ios.less +49 -41
- package/components/input/input-md.less +87 -19
- package/components/input/input-rtl.css +1 -1
- package/components/input/input-vars.less +26 -60
- package/components/input/input.css +1 -1
- package/components/input/input.js +8 -67
- package/components/input/input.less +67 -153
- package/components/link/link-vars.less +0 -5
- package/components/link/link.less +3 -3
- package/components/list/list-md.less +0 -7
- package/components/list/list-vars.less +59 -108
- package/components/list/list.less +122 -90
- package/components/list-index/list-index-class.js +12 -69
- package/components/list-index/list-index-rtl.css +1 -1
- package/components/list-index/list-index-vars.less +0 -7
- package/components/list-index/list-index.css +1 -1
- package/components/list-index/list-index.d.ts +1 -3
- package/components/list-index/list-index.js +0 -8
- package/components/list-index/list-index.less +4 -7
- package/components/login-screen/login-screen-class.js +4 -9
- package/components/login-screen/login-screen-rtl.css +1 -1
- package/components/login-screen/login-screen-vars.less +13 -12
- package/components/login-screen/login-screen.css +1 -1
- package/components/login-screen/login-screen.js +0 -4
- package/components/login-screen/login-screen.less +2 -8
- package/components/messagebar/messagebar-class.js +18 -79
- package/components/messagebar/messagebar-ios.less +36 -0
- package/components/messagebar/messagebar-md.less +96 -16
- package/components/messagebar/messagebar-rtl.css +1 -1
- package/components/messagebar/messagebar-vars.less +27 -50
- package/components/messagebar/messagebar.css +1 -1
- package/components/messagebar/messagebar.js +0 -8
- package/components/messagebar/messagebar.less +11 -42
- package/components/messages/messages-class.js +17 -110
- package/components/messages/messages-ios.less +9 -0
- package/components/messages/messages-md.less +63 -28
- package/components/messages/messages-rtl.css +1 -1
- package/components/messages/messages-vars.less +43 -50
- package/components/messages/messages.css +1 -1
- package/components/messages/messages.js +0 -8
- package/components/messages/messages.less +0 -11
- package/components/modal/custom-modal-class.js +4 -14
- package/components/modal/modal-class.js +19 -55
- package/components/modal/modal.js +0 -3
- package/components/navbar/navbar-ios.less +3 -39
- package/components/navbar/navbar-md.less +12 -0
- package/components/navbar/navbar-vars.less +20 -49
- package/components/navbar/navbar.d.ts +0 -2
- package/components/navbar/navbar.js +37 -166
- package/components/navbar/navbar.less +4 -26
- package/components/notification/notification-class.js +4 -39
- package/components/notification/notification-md.less +18 -8
- package/components/notification/notification-rtl.css +1 -1
- package/components/notification/notification-vars.less +15 -54
- package/components/notification/notification.css +1 -1
- package/components/notification/notification.js +0 -2
- package/components/notification/notification.less +0 -3
- package/components/page/page-md.less +40 -10
- package/components/page/page-transitions/circle.less +15 -9
- package/components/page/page-transitions/fade.less +17 -11
- package/components/page/page-transitions/flip.less +9 -4
- package/components/page/page-vars.less +3 -19
- package/components/page/page.less +2 -10
- package/components/panel/panel-class.js +27 -132
- package/components/panel/panel-md.less +9 -0
- package/components/panel/panel-rtl.css +1 -1
- package/components/panel/panel-vars.less +7 -21
- package/components/panel/panel.css +1 -1
- package/components/panel/panel.d.ts +2 -2
- package/components/panel/panel.js +0 -34
- package/components/panel/panel.less +56 -48
- package/components/panel/resizable-panel.js +2 -32
- package/components/panel/swipe-panel.js +16 -71
- package/components/photo-browser/photo-browser-class.js +41 -171
- package/components/photo-browser/photo-browser-rtl.css +1 -1
- package/components/photo-browser/photo-browser-vars.less +0 -3
- package/components/photo-browser/photo-browser.css +1 -1
- package/components/photo-browser/photo-browser.d.ts +2 -4
- package/components/photo-browser/photo-browser.js +1 -6
- package/components/photo-browser/photo-browser.less +0 -4
- package/components/picker/picker-class.js +26 -133
- package/components/picker/picker-column.js +11 -31
- package/components/picker/picker-ios.less +10 -0
- package/components/picker/picker-md.less +6 -0
- package/components/picker/picker-rtl.css +1 -1
- package/components/picker/picker-vars.less +9 -25
- package/components/picker/picker.css +1 -1
- package/components/picker/picker.js +0 -4
- package/components/picker/picker.less +0 -11
- package/components/pie-chart/pie-chart-class.js +8 -31
- package/components/pie-chart/pie-chart.js +0 -3
- package/components/pie-chart/pie-chart.less +0 -3
- package/components/popover/popover-class.js +72 -126
- package/components/popover/popover-ios.less +0 -50
- package/components/popover/popover-rtl.css +1 -1
- package/components/popover/popover-vars.less +6 -23
- package/components/popover/popover.css +1 -1
- package/components/popover/popover.d.ts +2 -0
- package/components/popover/popover.js +1 -12
- package/components/popover/popover.less +62 -5
- package/components/popup/popup-class.js +12 -78
- package/components/popup/popup-rtl.css +1 -1
- package/components/popup/popup-vars.less +7 -9
- package/components/popup/popup.css +1 -1
- package/components/popup/popup.js +0 -4
- package/components/popup/popup.less +4 -4
- package/components/preloader/preloader-ios.less +3 -1
- package/components/preloader/preloader-md.less +5 -1
- package/components/preloader/preloader-rtl.css +1 -1
- package/components/preloader/preloader-vars.less +0 -6
- package/components/preloader/preloader.css +1 -1
- package/components/preloader/preloader.js +8 -25
- package/components/preloader/preloader.less +6 -3
- package/components/progressbar/progressbar-rtl.css +1 -1
- package/components/progressbar/progressbar-vars.less +2 -12
- package/components/progressbar/progressbar.css +1 -1
- package/components/progressbar/progressbar.js +2 -31
- package/components/progressbar/progressbar.less +0 -3
- package/components/pull-to-refresh/pull-to-refresh-class.js +15 -107
- package/components/pull-to-refresh/pull-to-refresh-md.less +2 -1
- package/components/pull-to-refresh/pull-to-refresh-rtl.css +1 -1
- package/components/pull-to-refresh/pull-to-refresh-vars.less +0 -4
- package/components/pull-to-refresh/pull-to-refresh.css +1 -1
- package/components/pull-to-refresh/pull-to-refresh.js +0 -8
- package/components/pull-to-refresh/pull-to-refresh.less +0 -3
- package/components/radio/radio-rtl.css +1 -1
- package/components/radio/radio-vars.less +0 -7
- package/components/radio/radio.css +1 -1
- package/components/radio/radio.less +12 -5
- package/components/range/range-class.js +27 -112
- package/components/range/range-rtl.css +1 -1
- package/components/range/range-vars.less +10 -32
- package/components/range/range.css +1 -1
- package/components/range/range.js +0 -12
- package/components/range/range.less +0 -3
- package/components/searchbar/remove-diacritics.js +0 -4
- package/components/searchbar/searchbar-class.js +17 -138
- package/components/searchbar/searchbar-md.less +41 -16
- package/components/searchbar/searchbar-rtl.css +1 -1
- package/components/searchbar/searchbar-vars.less +25 -76
- package/components/searchbar/searchbar.css +1 -1
- package/components/searchbar/searchbar.d.ts +2 -2
- package/components/searchbar/searchbar.js +0 -15
- package/components/searchbar/searchbar.less +14 -28
- package/components/sheet/sheet-class.js +15 -110
- package/components/sheet/sheet-rtl.css +1 -1
- package/components/sheet/sheet-vars.less +17 -6
- package/components/sheet/sheet.css +1 -1
- package/components/sheet/sheet.js +0 -9
- package/components/sheet/sheet.less +10 -3
- package/components/skeleton/skeleton.less +0 -3
- package/components/smart-select/smart-select-class.js +39 -176
- package/components/smart-select/smart-select.d.ts +3 -3
- package/components/smart-select/smart-select.js +2 -14
- package/components/smart-select/smart-select.less +0 -3
- package/components/sortable/sortable-rtl.css +1 -1
- package/components/sortable/sortable-vars.less +8 -8
- package/components/sortable/sortable.css +1 -1
- package/components/sortable/sortable.js +0 -44
- package/components/sortable/sortable.less +0 -3
- package/components/statusbar/statusbar.js +0 -36
- package/components/statusbar/statusbar.less +0 -3
- package/components/stepper/stepper-class.js +10 -83
- package/components/stepper/stepper-rtl.css +1 -1
- package/components/stepper/stepper-vars.less +12 -24
- package/components/stepper/stepper.css +1 -1
- package/components/stepper/stepper.js +0 -12
- package/components/stepper/stepper.less +12 -23
- package/components/subnavbar/subnavbar-vars.less +3 -18
- package/components/subnavbar/subnavbar.js +0 -3
- package/components/subnavbar/subnavbar.less +1 -11
- package/components/swipeout/swipeout-rtl.css +1 -1
- package/components/swipeout/swipeout-vars.less +7 -6
- package/components/swipeout/swipeout.css +1 -1
- package/components/swipeout/swipeout.js +2 -99
- package/components/swipeout/swipeout.less +2 -7
- package/components/swiper/swiper-rtl.css +1 -1
- package/components/swiper/swiper.css +1 -1
- package/components/swiper/swiper.js +15 -48
- package/components/swiper/swiper.less +0 -15
- package/components/tabs/tabs-rtl.css +1 -1
- package/components/tabs/tabs.css +1 -1
- package/components/tabs/tabs.js +23 -60
- package/components/tabs/tabs.less +1 -3
- package/components/text-editor/text-editor-class.js +16 -102
- package/components/text-editor/text-editor-rtl.css +1 -1
- package/components/text-editor/text-editor-vars.less +12 -16
- package/components/text-editor/text-editor.css +1 -1
- package/components/text-editor/text-editor.js +0 -8
- package/components/text-editor/text-editor.less +0 -6
- package/components/timeline/timeline-rtl.css +1 -1
- package/components/timeline/timeline-vars.less +13 -47
- package/components/timeline/timeline.css +1 -1
- package/components/timeline/timeline.less +2 -9
- package/components/toast/toast-class.js +2 -16
- package/components/toast/toast-rtl.css +1 -1
- package/components/toast/toast-vars.less +5 -9
- package/components/toast/toast.css +1 -1
- package/components/toast/toast.js +0 -3
- package/components/toast/toast.less +0 -3
- package/components/toggle/toggle-class.js +6 -30
- package/components/toggle/toggle-ios.less +5 -1
- package/components/toggle/toggle-md.less +27 -11
- package/components/toggle/toggle-rtl.css +1 -1
- package/components/toggle/toggle-vars.less +19 -21
- package/components/toggle/toggle.css +1 -1
- package/components/toggle/toggle.js +0 -8
- package/components/toggle/toggle.less +0 -4
- package/components/toolbar/toolbar-ios.less +2 -2
- package/components/toolbar/toolbar-md.less +28 -4
- package/components/toolbar/toolbar-vars.less +17 -52
- package/components/toolbar/toolbar.js +5 -43
- package/components/toolbar/toolbar.less +27 -45
- package/components/tooltip/tooltip-class.js +10 -64
- package/components/tooltip/tooltip-rtl.css +1 -1
- package/components/tooltip/tooltip-vars.less +12 -3
- package/components/tooltip/tooltip.css +1 -1
- package/components/tooltip/tooltip.js +0 -15
- package/components/tooltip/tooltip.less +0 -3
- package/components/touch-ripple/touch-ripple-class.js +0 -13
- package/components/touch-ripple/touch-ripple.js +0 -4
- package/components/touch-ripple/touch-ripple.less +1 -5
- package/components/treeview/treeview-rtl.css +1 -1
- package/components/treeview/treeview-vars.less +0 -3
- package/components/treeview/treeview.css +1 -1
- package/components/treeview/treeview.js +2 -11
- package/components/treeview/treeview.less +0 -3
- package/components/typography/typography-rtl.css +1 -1
- package/components/typography/typography.css +1 -1
- package/components/typography/typography.less +25 -3
- package/components/view/resizable-view.js +2 -24
- package/components/view/view-class.js +28 -53
- package/components/view/view.d.ts +0 -14
- package/components/view/view.js +8 -32
- package/components/view/view.less +1 -4
- package/components/virtual-list/virtual-list-class.js +58 -146
- package/components/virtual-list/virtual-list.d.ts +1 -1
- package/components/virtual-list/virtual-list.js +0 -2
- package/components/virtual-list/virtual-list.less +0 -3
- package/framework7-bundle-rtl.css +3064 -6057
- package/framework7-bundle-rtl.min.css +3 -3
- package/framework7-bundle.css +3063 -6059
- package/framework7-bundle.esm.js +4 -10
- package/framework7-bundle.js +6442 -12377
- package/framework7-bundle.js.map +1 -1
- package/framework7-bundle.less +2 -27
- package/framework7-bundle.min.css +3 -3
- package/framework7-bundle.min.js +3 -3
- package/framework7-bundle.min.js.map +1 -1
- package/framework7-lite-bundle.esm.js +4 -10
- package/framework7-lite.esm.js +4 -6
- package/framework7-rtl.css +803 -1591
- package/framework7-rtl.min.css +3 -3
- package/framework7-types.d.ts +1 -32
- package/framework7.css +803 -1594
- package/framework7.d.ts +1 -32
- package/framework7.esm.js +4 -6
- package/framework7.less +2 -23
- package/framework7.min.css +3 -3
- package/less/mixins.less +7 -88
- package/modules/clicks/clicks.js +10 -22
- package/modules/component/$h.js +0 -3
- package/modules/component/$jsx.js +0 -5
- package/modules/component/component-class.js +13 -66
- package/modules/component/component.d.ts +1 -2
- package/modules/component/component.js +0 -8
- package/modules/component/eventslisteners.js +12 -20
- package/modules/component/parse-component.js +18 -20
- package/modules/component/snabbdom/h.js +3 -12
- package/modules/component/snabbdom/helpers/attachto.js +9 -14
- package/modules/component/snabbdom/htmldomapi.js +0 -16
- package/modules/component/snabbdom/modules/attributes.js +7 -11
- package/modules/component/snabbdom/modules/class.js +4 -8
- package/modules/component/snabbdom/modules/dataset.js +3 -7
- package/modules/component/snabbdom/modules/eventlisteners.js +16 -22
- package/modules/component/snabbdom/modules/hero.js +4 -44
- package/modules/component/snabbdom/modules/props.js +5 -9
- package/modules/component/snabbdom/modules/style.js +13 -30
- package/modules/component/snabbdom/snabbdom.bundle.js +0 -6
- package/modules/component/snabbdom/snabbdom.js +13 -72
- package/modules/component/snabbdom/thunk.js +3 -11
- package/modules/component/snabbdom/tovnode.js +1 -6
- package/modules/component/vdom.js +4 -62
- package/modules/demo-module.js +0 -8
- package/modules/device/device.js +6 -11
- package/modules/history/history.js +0 -1
- package/modules/resize/resize.js +8 -11
- package/modules/router/async-component.js +0 -3
- package/modules/router/back.js +86 -275
- package/modules/router/clear-previous-history.js +5 -18
- package/modules/router/component-loader.js +4 -25
- package/modules/router/modal.js +16 -43
- package/modules/router/navigate.js +80 -250
- package/modules/router/process-route-queue.js +0 -12
- package/modules/router/redirect.js +0 -8
- package/modules/router/router-class.js +92 -315
- package/modules/router/router.d.ts +3 -5
- package/modules/router/router.js +0 -3
- package/modules/router/swipe-back.js +35 -139
- package/modules/router/tab.js +14 -43
- package/modules/service-worker/service-worker.js +0 -11
- package/modules/store/create-store.js +10 -29
- package/modules/touch/touch.d.ts +2 -4
- package/modules/touch/touch.js +13 -108
- package/package.json +3 -14
- package/shared/$jsx.js +0 -6
- package/shared/class.js +18 -43
- package/shared/constructor-methods.js +0 -11
- package/shared/events-class.js +0 -17
- package/shared/get-device.js +18 -34
- package/shared/get-support.js +2 -8
- package/shared/history.js +2 -30
- package/shared/material-color-utils.js +728 -0
- package/shared/material-colors.js +75 -0
- package/shared/modal-methods.js +0 -18
- package/shared/utils.d.ts +0 -4
- package/shared/utils.js +191 -71
- package/components/accordion/accordion-aurora.less +0 -2
- package/components/accordion/accordion.lazy.js +0 -1
- package/components/actions/actions-aurora.less +0 -9
- package/components/actions/actions.lazy.js +0 -1
- package/components/app/app-aurora.less +0 -10
- package/components/appbar/appbar-aurora.less +0 -2
- package/components/appbar/appbar-ios.less +0 -2
- package/components/appbar/appbar-md.less +0 -2
- package/components/appbar/appbar-rtl.css +0 -1
- package/components/appbar/appbar-vars.less +0 -28
- package/components/appbar/appbar.css +0 -1
- package/components/appbar/appbar.d.ts +0 -14
- package/components/appbar/appbar.js +0 -3
- package/components/appbar/appbar.lazy.js +0 -1
- package/components/appbar/appbar.less +0 -106
- package/components/area-chart/area-chart-aurora.less +0 -2
- package/components/area-chart/area-chart.lazy.js +0 -1
- package/components/autocomplete/autocomplete-aurora.less +0 -17
- package/components/autocomplete/autocomplete.lazy.js +0 -1
- package/components/badge/badge-aurora.less +0 -2
- package/components/block/block-aurora.less +0 -2
- package/components/breadcrumbs/breadcrumbs-aurora.less +0 -2
- package/components/breadcrumbs/breadcrumbs.lazy.js +0 -1
- package/components/button/button-aurora.less +0 -25
- package/components/calendar/calendar-aurora.less +0 -2
- package/components/calendar/calendar.lazy.js +0 -1
- package/components/card/card-aurora.less +0 -2
- package/components/card/card.lazy.js +0 -1
- package/components/checkbox/checkbox-aurora.less +0 -39
- package/components/checkbox/checkbox.lazy.js +0 -1
- package/components/chip/chip-aurora.less +0 -14
- package/components/chip/chip.lazy.js +0 -1
- package/components/color-picker/color-picker-aurora.less +0 -2
- package/components/color-picker/color-picker.lazy.js +0 -1
- package/components/contacts-list/contacts-list-aurora.less +0 -2
- package/components/contacts-list/contacts-list.lazy.js +0 -1
- package/components/data-table/data-table-aurora.less +0 -64
- package/components/data-table/data-table.lazy.js +0 -1
- package/components/dialog/dialog-aurora.less +0 -112
- package/components/dialog/dialog.lazy.js +0 -1
- package/components/elevation/elevation-aurora.less +0 -2
- package/components/elevation/elevation-ios.less +0 -2
- package/components/elevation/elevation-md.less +0 -2
- package/components/elevation/elevation-rtl.css +0 -1
- package/components/elevation/elevation-vars.less +0 -51
- package/components/elevation/elevation.css +0 -1
- package/components/elevation/elevation.d.ts +0 -14
- package/components/elevation/elevation.js +0 -3
- package/components/elevation/elevation.lazy.js +0 -1
- package/components/elevation/elevation.less +0 -54
- package/components/fab/fab-aurora.less +0 -2
- package/components/fab/fab.lazy.js +0 -1
- package/components/form/form-aurora.less +0 -0
- package/components/form/form.lazy.js +0 -1
- package/components/gauge/gauge-aurora.less +0 -2
- package/components/gauge/gauge.lazy.js +0 -1
- package/components/grid/grid-aurora.less +0 -2
- package/components/grid/grid.lazy.js +0 -1
- package/components/icon/icon-aurora.less +0 -49
- package/components/infinite-scroll/infinite-scroll-aurora.less +0 -6
- package/components/infinite-scroll/infinite-scroll.lazy.js +0 -1
- package/components/input/input-aurora.less +0 -120
- package/components/input/input.lazy.js +0 -1
- package/components/lazy/lazy-aurora.less +0 -2
- package/components/lazy/lazy-ios.less +0 -2
- package/components/lazy/lazy-md.less +0 -2
- package/components/lazy/lazy-rtl.css +0 -1
- package/components/lazy/lazy.css +0 -1
- package/components/lazy/lazy.d.ts +0 -57
- package/components/lazy/lazy.js +0 -283
- package/components/lazy/lazy.lazy.js +0 -1
- package/components/lazy/lazy.less +0 -23
- package/components/link/link-aurora.less +0 -15
- package/components/list/list-aurora.less +0 -25
- package/components/list-index/list-index-aurora.less +0 -21
- package/components/list-index/list-index.lazy.js +0 -1
- package/components/login-screen/login-screen-aurora.less +0 -2
- package/components/login-screen/login-screen.lazy.js +0 -1
- package/components/menu/menu-aurora.less +0 -8
- package/components/menu/menu-ios.less +0 -2
- package/components/menu/menu-md.less +0 -2
- package/components/menu/menu-rtl.css +0 -1
- package/components/menu/menu-vars.less +0 -27
- package/components/menu/menu.css +0 -1
- package/components/menu/menu.d.ts +0 -32
- package/components/menu/menu.js +0 -87
- package/components/menu/menu.lazy.js +0 -1
- package/components/menu/menu.less +0 -232
- package/components/messagebar/messagebar-aurora.less +0 -53
- package/components/messagebar/messagebar.lazy.js +0 -1
- package/components/messages/messages-aurora.less +0 -137
- package/components/messages/messages.lazy.js +0 -1
- package/components/navbar/navbar-aurora.less +0 -70
- package/components/notification/notification-aurora.less +0 -59
- package/components/notification/notification.lazy.js +0 -1
- package/components/page/page-aurora.less +0 -49
- package/components/panel/panel-aurora.less +0 -2
- package/components/panel/panel.lazy.js +0 -1
- package/components/photo-browser/photo-browser-aurora.less +0 -2
- package/components/photo-browser/photo-browser.lazy.js +0 -1
- package/components/picker/picker-aurora.less +0 -2
- package/components/picker/picker.lazy.js +0 -1
- package/components/pie-chart/pie-chart-aurora.less +0 -2
- package/components/pie-chart/pie-chart.lazy.js +0 -1
- package/components/popover/popover-aurora.less +0 -56
- package/components/popover/popover.lazy.js +0 -1
- package/components/popup/popup-aurora.less +0 -2
- package/components/popup/popup.lazy.js +0 -1
- package/components/preloader/preloader-aurora.less +0 -53
- package/components/preloader/preloader.lazy.js +0 -1
- package/components/progressbar/progressbar-aurora.less +0 -72
- package/components/progressbar/progressbar.lazy.js +0 -1
- package/components/pull-to-refresh/pull-to-refresh-aurora.less +0 -122
- package/components/pull-to-refresh/pull-to-refresh.lazy.js +0 -1
- package/components/radio/radio-aurora.less +0 -86
- package/components/radio/radio.lazy.js +0 -1
- package/components/range/range-aurora.less +0 -9
- package/components/range/range.lazy.js +0 -1
- package/components/searchbar/searchbar-aurora.less +0 -86
- package/components/searchbar/searchbar.lazy.js +0 -1
- package/components/sheet/sheet-aurora.less +0 -2
- package/components/sheet/sheet.lazy.js +0 -1
- package/components/skeleton/skeleton-aurora.less +0 -2
- package/components/skeleton/skeleton.lazy.js +0 -1
- package/components/smart-select/smart-select-aurora.less +0 -2
- package/components/smart-select/smart-select.lazy.js +0 -1
- package/components/sortable/sortable-aurora.less +0 -7
- package/components/sortable/sortable.lazy.js +0 -1
- package/components/statusbar/statusbar-aurora.less +0 -2
- package/components/stepper/stepper-aurora.less +0 -32
- package/components/stepper/stepper.lazy.js +0 -1
- package/components/subnavbar/subnavbar-aurora.less +0 -51
- package/components/swipeout/swipeout-aurora.less +0 -2
- package/components/swipeout/swipeout.lazy.js +0 -1
- package/components/swiper/swiper-aurora.less +0 -2
- package/components/swiper/swiper.lazy.js +0 -1
- package/components/tabs/tabs-aurora.less +0 -2
- package/components/tabs/tabs.lazy.js +0 -1
- package/components/text-editor/text-editor-aurora.less +0 -9
- package/components/text-editor/text-editor.lazy.js +0 -1
- package/components/timeline/timeline-aurora.less +0 -7
- package/components/timeline/timeline.lazy.js +0 -1
- package/components/toast/toast-aurora.less +0 -64
- package/components/toast/toast.lazy.js +0 -1
- package/components/toggle/toggle-aurora.less +0 -26
- package/components/toggle/toggle.lazy.js +0 -1
- package/components/toolbar/toolbar-aurora.less +0 -43
- package/components/tooltip/tooltip-aurora.less +0 -2
- package/components/tooltip/tooltip.lazy.js +0 -1
- package/components/touch-ripple/touch-ripple-aurora.less +0 -2
- package/components/treeview/treeview-aurora.less +0 -31
- package/components/treeview/treeview.lazy.js +0 -1
- package/components/typography/typography-aurora.less +0 -2
- package/components/typography/typography.lazy.js +0 -1
- package/components/view/view-aurora.less +0 -2
- package/components/virtual-list/virtual-list-aurora.less +0 -2
- package/components/virtual-list/virtual-list.lazy.js +0 -1
- package/framework7.js +0 -14715
- package/framework7.js.map +0 -1
- package/framework7.min.js +0 -14
- package/framework7.min.js.map +0 -1
- package/modules/request/request.d.ts +0 -15
- package/modules/request/request.js +0 -11
- package/shared/request.d.ts +0 -115
- package/shared/request.js +0 -512
|
@@ -2,14 +2,6 @@
|
|
|
2
2
|
Core
|
|
3
3
|
==================== */
|
|
4
4
|
:root {
|
|
5
|
-
@themeColorRed: red(@themeColor);
|
|
6
|
-
@themeColorGreen: green(@themeColor);
|
|
7
|
-
@themeColorBlue: blue(@themeColor);
|
|
8
|
-
--f7-theme-color: @themeColor;
|
|
9
|
-
--f7-theme-color-rgb: @themeColorRed, @themeColorGreen, @themeColorBlue;
|
|
10
|
-
--f7-theme-color-shade: darken(@themeColor, 8%);
|
|
11
|
-
--f7-theme-color-tint: lighten(@themeColor, 8%);
|
|
12
|
-
|
|
13
5
|
--f7-safe-area-left: 0px;
|
|
14
6
|
--f7-safe-area-right: 0px;
|
|
15
7
|
--f7-safe-area-top: 0px;
|
|
@@ -70,45 +62,25 @@
|
|
|
70
62
|
==================== */
|
|
71
63
|
:root {
|
|
72
64
|
--f7-font-size: 14px;
|
|
73
|
-
|
|
74
|
-
--f7-bars-link-color: var(--f7-theme-color);
|
|
75
|
-
*/
|
|
76
|
-
--f7-bars-bg-image: none;
|
|
65
|
+
|
|
77
66
|
--f7-bars-translucent-opacity: 0.8;
|
|
78
67
|
--f7-bars-translucent-blur: 20px;
|
|
79
|
-
--f7-bars-shadow-bottom-image: linear-gradient(
|
|
80
|
-
to bottom,
|
|
81
|
-
rgba(0, 0, 0, 0.25) 0%,
|
|
82
|
-
rgba(0, 0, 0, 0.08) 40%,
|
|
83
|
-
rgba(0, 0, 0, 0.04) 50%,
|
|
84
|
-
rgba(0, 0, 0, 0) 90%,
|
|
85
|
-
rgba(0, 0, 0, 0) 100%
|
|
86
|
-
);
|
|
87
|
-
--f7-bars-shadow-top-image: linear-gradient(
|
|
88
|
-
to top,
|
|
89
|
-
rgba(0, 0, 0, 0.25) 0%,
|
|
90
|
-
rgba(0, 0, 0, 0.08) 40%,
|
|
91
|
-
rgba(0, 0, 0, 0.04) 50%,
|
|
92
|
-
rgba(0, 0, 0, 0) 90%,
|
|
93
|
-
rgba(0, 0, 0, 0) 100%
|
|
94
|
-
);
|
|
95
|
-
.light-vars({
|
|
96
|
-
--f7-bars-text-color: #000;
|
|
97
|
-
--f7-bars-bg-color: #f7f7f8;
|
|
98
|
-
--f7-bars-bg-color-rgb: 247, 247, 248;
|
|
99
|
-
});
|
|
100
|
-
.dark-vars({
|
|
101
|
-
--f7-bars-text-color: #fff;
|
|
102
|
-
});
|
|
103
68
|
}
|
|
104
69
|
.ios-vars({
|
|
105
70
|
--f7-font-family: -apple-system, SF Pro Text, SF UI Text, system-ui, Helvetica Neue, Helvetica, Arial, sans-serif;
|
|
106
71
|
--f7-line-height: 1.4;
|
|
72
|
+
/*
|
|
73
|
+
--f7-bars-link-color: var(--f7-theme-color);
|
|
74
|
+
*/
|
|
107
75
|
.light-vars({
|
|
76
|
+
--f7-bars-text-color: #000;
|
|
108
77
|
--f7-text-color: #000;
|
|
78
|
+
--f7-bars-bg-color: #f7f7f8;
|
|
79
|
+
--f7-bars-bg-color-rgb: 247, 247, 248;
|
|
109
80
|
--f7-bars-border-color: rgba(0,0,0,0.25);
|
|
110
81
|
});
|
|
111
82
|
.dark-vars({
|
|
83
|
+
--f7-bars-text-color: #fff;
|
|
112
84
|
--f7-text-color: #fff;
|
|
113
85
|
--f7-bars-bg-color: #121212;
|
|
114
86
|
--f7-bars-bg-color-rgb: 22, 22, 22;
|
|
@@ -119,33 +91,23 @@
|
|
|
119
91
|
--f7-font-family: Roboto, system-ui, Noto, Helvetica, Arial, sans-serif;
|
|
120
92
|
--f7-line-height: 1.5;
|
|
121
93
|
--f7-bars-border-color: transparent;
|
|
94
|
+
|
|
122
95
|
.light-vars({
|
|
123
96
|
--f7-text-color: #212121;
|
|
124
97
|
});
|
|
125
98
|
.dark-vars({
|
|
126
99
|
--f7-text-color: rgba(255,255,255,0.87);
|
|
127
|
-
--f7-bars-bg-color: #202020;
|
|
128
100
|
});
|
|
129
101
|
});
|
|
130
|
-
.
|
|
131
|
-
--f7-
|
|
132
|
-
--f7-
|
|
133
|
-
|
|
134
|
-
--f7-text-color: #000;
|
|
135
|
-
--f7-bars-border-color: rgba(0,0,0,0.2);
|
|
136
|
-
});
|
|
137
|
-
.dark-vars({
|
|
138
|
-
--f7-text-color: #fff;
|
|
139
|
-
--f7-bars-bg-color: #202020;
|
|
140
|
-
--f7-bars-border-color: rgba(255, 255, 255, 0.1);
|
|
141
|
-
});
|
|
102
|
+
.md-color-vars({
|
|
103
|
+
--f7-bars-link-color: var(--f7-md-on-surface);
|
|
104
|
+
--f7-bars-bg-color: var(--f7-md-surface-2);
|
|
105
|
+
--f7-bars-bg-color-rgb: var(--f7-md-surface-2-rgb);
|
|
142
106
|
});
|
|
143
107
|
|
|
144
108
|
/*====================
|
|
145
109
|
Color Themes
|
|
146
110
|
==================== */
|
|
147
|
-
.color-primary {
|
|
148
|
-
}
|
|
149
111
|
.text-color-primary {
|
|
150
112
|
--f7-theme-color-text-color: var(--f7-theme-color);
|
|
151
113
|
}
|
|
@@ -158,48 +120,3 @@
|
|
|
158
120
|
.ripple-color-primary {
|
|
159
121
|
--f7-theme-color-ripple-color: rgba(var(--f7-theme-color-rgb), 0.3);
|
|
160
122
|
}
|
|
161
|
-
:root {
|
|
162
|
-
each(@colors, {
|
|
163
|
-
@themeColorRed: red(@value);
|
|
164
|
-
@themeColorGreen: green(@value);
|
|
165
|
-
@themeColorBlue: blue(@value);
|
|
166
|
-
--f7-color-@{key}: @value;
|
|
167
|
-
--f7-color-@{key}-rgb: @themeColorRed, @themeColorGreen, @themeColorBlue;
|
|
168
|
-
--f7-color-@{key}-shade: darken(@value, 8%);
|
|
169
|
-
--f7-color-@{key}-tint: lighten(@value, 8%);
|
|
170
|
-
});
|
|
171
|
-
}
|
|
172
|
-
each(@colors, {
|
|
173
|
-
.color-theme-@{key} {
|
|
174
|
-
@themeColorRed: red(@value);
|
|
175
|
-
@themeColorGreen: green(@value);
|
|
176
|
-
@themeColorBlue: blue(@value);
|
|
177
|
-
--f7-theme-color: @value;
|
|
178
|
-
--f7-theme-color-rgb: @themeColorRed, @themeColorGreen, @themeColorBlue;
|
|
179
|
-
--f7-theme-color-shade: darken(@value, 8%);
|
|
180
|
-
--f7-theme-color-tint: lighten(@value, 8%);
|
|
181
|
-
}
|
|
182
|
-
});
|
|
183
|
-
each(@colors, {
|
|
184
|
-
@themeColorRed: red(@value);
|
|
185
|
-
@themeColorGreen: green(@value);
|
|
186
|
-
@themeColorBlue: blue(@value);
|
|
187
|
-
.color-@{key} {
|
|
188
|
-
--f7-theme-color: @value;
|
|
189
|
-
--f7-theme-color-rgb: @themeColorRed, @themeColorGreen, @themeColorBlue;
|
|
190
|
-
--f7-theme-color-shade: darken(@value, 8%);
|
|
191
|
-
--f7-theme-color-tint: lighten(@value, 8%);
|
|
192
|
-
}
|
|
193
|
-
.text-color-@{key} {
|
|
194
|
-
--f7-theme-color-text-color: @value;
|
|
195
|
-
}
|
|
196
|
-
.bg-color-@{key} {
|
|
197
|
-
--f7-theme-color-bg-color: @value;
|
|
198
|
-
}
|
|
199
|
-
.border-color-@{key} {
|
|
200
|
-
--f7-theme-color-border-color: @value;
|
|
201
|
-
}
|
|
202
|
-
.ripple-color-@{key}, .ripple-@{key} {
|
|
203
|
-
--f7-theme-color-ripple-color: rgba(@themeColorRed, @themeColorGreen, @themeColorBlue, 0.3);
|
|
204
|
-
}
|
|
205
|
-
});
|
package/components/app/app.less
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
@import './app-vars.less';
|
|
2
2
|
// Core Icons
|
|
3
3
|
@font-face {
|
|
4
|
-
@fontBase64: '
|
|
4
|
+
@fontBase64: 'd09GRgABAAAAAA0sABAAAAAAGLwAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAABGRlRNAAABbAAAABoAAAAcmrEdT0dERUYAAAGIAAAAIwAA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KiJDium3ZcUeuck0ppr6z+D2q9dATJc0w23qW5aArozCDFhjJferVJJy1Yjs0i/nschKN15Kdofcf+xC0ZgAA';
|
|
5
5
|
font-family: 'framework7-core-icons';
|
|
6
6
|
src: url('data:application/font-woff;charset=utf-8;base64, @{fontBase64}') format('woff');
|
|
7
7
|
font-weight: 400;
|
|
@@ -115,6 +115,3 @@ html.device-full-viewport {
|
|
|
115
115
|
.if-md-theme({
|
|
116
116
|
@import './app-md.less';
|
|
117
117
|
});
|
|
118
|
-
.if-aurora-theme({
|
|
119
|
-
@import './app-aurora.less';
|
|
120
|
-
});
|
|
@@ -2,7 +2,6 @@ import { getWindow, getDocument } from 'ssr-window';
|
|
|
2
2
|
import { id } from '../../shared/utils.js';
|
|
3
3
|
import $ from '../../shared/dom7.js';
|
|
4
4
|
const fetchedModules = [];
|
|
5
|
-
|
|
6
5
|
function loadModule(moduleToLoad) {
|
|
7
6
|
const Framework7 = this;
|
|
8
7
|
const window = getWindow();
|
|
@@ -12,30 +11,24 @@ function loadModule(moduleToLoad) {
|
|
|
12
11
|
let modulePath;
|
|
13
12
|
let moduleObj;
|
|
14
13
|
let moduleFunc;
|
|
15
|
-
|
|
16
14
|
if (!moduleToLoad) {
|
|
17
15
|
reject(new Error('Framework7: Lazy module must be specified'));
|
|
18
16
|
return;
|
|
19
17
|
}
|
|
20
|
-
|
|
21
18
|
function install(module) {
|
|
22
19
|
Framework7.use(module);
|
|
23
|
-
|
|
24
20
|
if (app) {
|
|
25
21
|
app.useModuleParams(module, app.params);
|
|
26
22
|
app.useModule(module);
|
|
27
23
|
}
|
|
28
24
|
}
|
|
29
|
-
|
|
30
25
|
if (typeof moduleToLoad === 'string') {
|
|
31
26
|
const matchNamePattern = moduleToLoad.match(/([a-z0-9-]*)/i);
|
|
32
|
-
|
|
33
27
|
if (moduleToLoad.indexOf('.') < 0 && matchNamePattern && matchNamePattern[0].length === moduleToLoad.length) {
|
|
34
28
|
if (!app || app && !app.params.lazyModulesPath) {
|
|
35
29
|
reject(new Error('Framework7: "lazyModulesPath" app parameter must be specified to fetch module by name'));
|
|
36
30
|
return;
|
|
37
31
|
}
|
|
38
|
-
|
|
39
32
|
modulePath = `${app.params.lazyModulesPath}/${moduleToLoad}/${moduleToLoad}.lazy.js`;
|
|
40
33
|
} else {
|
|
41
34
|
modulePath = moduleToLoad;
|
|
@@ -46,54 +39,44 @@ function loadModule(moduleToLoad) {
|
|
|
46
39
|
// considering F7-Plugin object
|
|
47
40
|
moduleObj = moduleToLoad;
|
|
48
41
|
}
|
|
49
|
-
|
|
50
42
|
if (moduleFunc) {
|
|
51
43
|
const module = moduleFunc(Framework7, false);
|
|
52
|
-
|
|
53
44
|
if (!module) {
|
|
54
45
|
reject(new Error("Framework7: Can't find Framework7 component in specified component function"));
|
|
55
46
|
return;
|
|
56
|
-
}
|
|
57
|
-
|
|
58
|
-
|
|
47
|
+
}
|
|
48
|
+
// Check if it was added
|
|
59
49
|
if (Framework7.prototype.modules && Framework7.prototype.modules[module.name]) {
|
|
60
50
|
resolve();
|
|
61
51
|
return;
|
|
62
|
-
}
|
|
63
|
-
|
|
64
|
-
|
|
52
|
+
}
|
|
53
|
+
// Install It
|
|
65
54
|
install(module);
|
|
66
55
|
resolve();
|
|
67
56
|
}
|
|
68
|
-
|
|
69
57
|
if (moduleObj) {
|
|
70
58
|
const module = moduleObj;
|
|
71
|
-
|
|
72
59
|
if (!module) {
|
|
73
60
|
reject(new Error("Framework7: Can't find Framework7 component in specified component"));
|
|
74
61
|
return;
|
|
75
|
-
}
|
|
76
|
-
|
|
77
|
-
|
|
62
|
+
}
|
|
63
|
+
// Check if it was added
|
|
78
64
|
if (Framework7.prototype.modules && Framework7.prototype.modules[module.name]) {
|
|
79
65
|
resolve();
|
|
80
66
|
return;
|
|
81
|
-
}
|
|
82
|
-
|
|
83
|
-
|
|
67
|
+
}
|
|
68
|
+
// Install It
|
|
84
69
|
install(module);
|
|
85
70
|
resolve();
|
|
86
71
|
}
|
|
87
|
-
|
|
88
72
|
if (modulePath) {
|
|
89
73
|
if (fetchedModules.indexOf(modulePath) >= 0) {
|
|
90
74
|
resolve();
|
|
91
75
|
return;
|
|
92
76
|
}
|
|
93
|
-
|
|
94
77
|
fetchedModules.push(modulePath);
|
|
95
78
|
const scriptLoad = new Promise((resolveScript, rejectScript) => {
|
|
96
|
-
|
|
79
|
+
fetch(modulePath).then(res => res.text()).then(scriptContent => {
|
|
97
80
|
const callbackId = id();
|
|
98
81
|
const callbackLoadName = `f7_component_loader_callback_${callbackId}`;
|
|
99
82
|
const scriptEl = document.createElement('script');
|
|
@@ -103,32 +86,31 @@ function loadModule(moduleToLoad) {
|
|
|
103
86
|
delete window[callbackLoadName];
|
|
104
87
|
$(scriptEl).remove();
|
|
105
88
|
const module = componentLoader(Framework7, false);
|
|
106
|
-
|
|
107
89
|
if (!module) {
|
|
108
90
|
rejectScript(new Error(`Framework7: Can't find Framework7 component in ${modulePath} file`));
|
|
109
91
|
return;
|
|
110
|
-
}
|
|
111
|
-
|
|
92
|
+
}
|
|
112
93
|
|
|
94
|
+
// Check if it was added
|
|
113
95
|
if (Framework7.prototype.modules && Framework7.prototype.modules[module.name]) {
|
|
114
96
|
resolveScript();
|
|
115
97
|
return;
|
|
116
|
-
}
|
|
117
|
-
|
|
98
|
+
}
|
|
118
99
|
|
|
100
|
+
// Install It
|
|
119
101
|
install(module);
|
|
120
102
|
resolveScript();
|
|
121
|
-
}
|
|
122
|
-
rejectScript(
|
|
103
|
+
}).catch(err => {
|
|
104
|
+
rejectScript(err);
|
|
123
105
|
});
|
|
124
106
|
});
|
|
125
107
|
const styleLoad = new Promise(resolveStyle => {
|
|
126
|
-
|
|
108
|
+
fetch(modulePath.replace('.lazy.js', app.rtl ? '.rtl.css' : '.css').replace('.js', app.rtl ? '.rtl.css' : '.css')).then(res => res.text()).then(styleContent => {
|
|
127
109
|
const styleEl = document.createElement('style');
|
|
128
110
|
styleEl.innerHTML = styleContent;
|
|
129
111
|
$('head').append(styleEl);
|
|
130
112
|
resolveStyle();
|
|
131
|
-
}
|
|
113
|
+
}).catch(() => {
|
|
132
114
|
resolveStyle();
|
|
133
115
|
});
|
|
134
116
|
});
|
|
@@ -140,5 +122,4 @@ function loadModule(moduleToLoad) {
|
|
|
140
122
|
}
|
|
141
123
|
});
|
|
142
124
|
}
|
|
143
|
-
|
|
144
125
|
export default loadModule;
|