le-kit 0.0.3 → 0.1.1
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/LICENSE +1 -1
- package/dist/admin/index.d.ts +25 -0
- package/dist/admin/index.js +80 -0
- package/dist/cjs/index-CO4npcak.js +1796 -0
- package/dist/cjs/index-CO4npcak.js.map +1 -0
- package/dist/cjs/index.cjs.js +117 -0
- package/dist/cjs/index.cjs.js.map +1 -0
- package/dist/cjs/le-box.cjs.entry.js +184 -0
- package/dist/cjs/le-box.entry.cjs.js.map +1 -0
- package/dist/cjs/le-button.le-checkbox.le-component.le-popover.le-slot.le-string-input.entry.cjs.js.map +1 -0
- package/dist/cjs/le-button_6.cjs.entry.js +1199 -0
- package/dist/cjs/le-card.cjs.entry.js +29 -0
- package/dist/cjs/le-card.entry.cjs.js.map +1 -0
- package/dist/cjs/le-kit.cjs.js +25 -0
- package/dist/cjs/le-kit.cjs.js.map +1 -0
- package/dist/cjs/le-number-input.cjs.entry.js +202 -0
- package/dist/cjs/le-number-input.entry.cjs.js.map +1 -0
- package/dist/cjs/le-popup.cjs.entry.js +212 -0
- package/dist/cjs/le-popup.entry.cjs.js.map +1 -0
- package/dist/cjs/le-round-progress.cjs.entry.js +106 -0
- package/dist/cjs/le-round-progress.entry.cjs.js.map +1 -0
- package/dist/cjs/le-stack.cjs.entry.js +135 -0
- package/dist/cjs/le-stack.entry.cjs.js.map +1 -0
- package/dist/cjs/le-text.cjs.entry.js +335 -0
- package/dist/cjs/le-text.entry.cjs.js.map +1 -0
- package/dist/cjs/le-turntable.cjs.entry.js +139 -0
- package/dist/cjs/le-turntable.entry.cjs.js.map +1 -0
- package/dist/cjs/loader.cjs.js +13 -0
- package/dist/cjs/loader.cjs.js.map +1 -0
- package/dist/cjs/utils-BeT0iyCQ.js +152 -0
- package/dist/cjs/utils-BeT0iyCQ.js.map +1 -0
- package/dist/collection/collection-manifest.json +20 -102
- package/dist/collection/components/le-box/le-box.default.css +37 -0
- package/dist/collection/components/le-box/le-box.js +614 -0
- package/dist/collection/components/le-box/le-box.js.map +1 -0
- package/dist/collection/components/le-button/le-button.default.css +263 -0
- package/dist/collection/components/le-button/le-button.js +368 -0
- package/dist/collection/components/le-button/le-button.js.map +1 -0
- package/dist/collection/components/le-card/le-card.default.css +74 -0
- package/dist/collection/components/le-card/le-card.js +102 -0
- package/dist/collection/components/le-card/le-card.js.map +1 -0
- package/dist/collection/components/le-checkbox/le-checkbox.css +93 -0
- package/dist/collection/components/le-checkbox/le-checkbox.js +192 -0
- package/dist/collection/components/le-checkbox/le-checkbox.js.map +1 -0
- package/dist/collection/components/le-component/le-component.css +189 -0
- package/dist/collection/components/le-component/le-component.js +359 -0
- package/dist/collection/components/le-component/le-component.js.map +1 -0
- package/dist/collection/components/le-number-input/le-number-input.css +135 -0
- package/dist/collection/components/le-number-input/le-number-input.js +515 -0
- package/dist/collection/components/le-number-input/le-number-input.js.map +1 -0
- package/dist/collection/components/le-popover/le-popover.css +143 -0
- package/dist/collection/components/le-popover/le-popover.js +693 -0
- package/dist/collection/components/le-popover/le-popover.js.map +1 -0
- package/dist/collection/components/le-popup/le-popup.api.js +101 -0
- package/dist/collection/components/le-popup/le-popup.api.js.map +1 -0
- package/dist/collection/components/le-popup/le-popup.css +222 -0
- package/dist/collection/components/le-popup/le-popup.js +596 -0
- package/dist/collection/components/le-popup/le-popup.js.map +1 -0
- package/dist/collection/components/le-round-progress/le-round-progress.js +184 -84
- package/dist/collection/components/le-round-progress/le-round-progress.js.map +1 -0
- package/dist/collection/components/le-slot/le-slot.default.css +222 -0
- package/dist/collection/components/le-slot/le-slot.js +636 -0
- package/dist/collection/components/le-slot/le-slot.js.map +1 -0
- package/dist/collection/components/le-stack/le-stack.default.css +37 -0
- package/dist/collection/components/le-stack/le-stack.js +389 -0
- package/dist/collection/components/le-stack/le-stack.js.map +1 -0
- package/dist/collection/components/le-string-input/le-string-input.css +83 -0
- package/dist/collection/components/le-string-input/le-string-input.js +359 -0
- package/dist/collection/components/le-string-input/le-string-input.js.map +1 -0
- package/dist/collection/components/le-text/le-text.default.css +169 -0
- package/dist/collection/components/le-text/le-text.js +475 -0
- package/dist/collection/components/le-text/le-text.js.map +1 -0
- package/dist/collection/components/le-turntable/le-turntable.js +210 -102
- package/dist/collection/components/le-turntable/le-turntable.js.map +1 -0
- package/dist/collection/global/app.js +130 -0
- package/dist/collection/global/app.js.map +1 -0
- package/dist/collection/index-admin.js +27 -0
- package/dist/collection/index-admin.js.map +1 -0
- package/dist/collection/index-core.js +25 -0
- package/dist/collection/index-core.js.map +1 -0
- package/dist/collection/index.js +15 -0
- package/dist/collection/index.js.map +1 -0
- package/dist/collection/types/blocks.js +115 -0
- package/dist/collection/types/blocks.js.map +1 -0
- package/dist/collection/types/options.js +2 -0
- package/dist/collection/types/options.js.map +1 -0
- package/dist/collection/utils/utils.js +141 -5
- package/dist/collection/utils/utils.js.map +1 -0
- package/dist/components/index.d.ts +64 -0
- package/dist/components/index.js +127 -0
- package/dist/components/index.js.map +1 -0
- package/dist/components/le-box.d.ts +11 -0
- package/dist/components/le-box.js +256 -0
- package/dist/components/le-box.js.map +1 -0
- package/dist/components/le-button.d.ts +11 -0
- package/dist/components/le-button.js +9 -0
- package/dist/components/le-button.js.map +1 -0
- package/dist/components/le-button2.js +1408 -0
- package/dist/components/le-button2.js.map +1 -0
- package/dist/components/le-card.d.ts +11 -0
- package/dist/components/le-card.js +83 -0
- package/dist/components/le-card.js.map +1 -0
- package/dist/components/le-checkbox.d.ts +11 -0
- package/dist/components/le-checkbox.js +9 -0
- package/dist/components/le-checkbox.js.map +1 -0
- package/dist/components/le-component.d.ts +11 -0
- package/dist/components/le-component.js +9 -0
- package/dist/components/le-component.js.map +1 -0
- package/dist/components/le-number-input.d.ts +11 -0
- package/dist/components/le-number-input.js +271 -0
- package/dist/components/le-number-input.js.map +1 -0
- package/dist/components/le-popover.d.ts +11 -0
- package/dist/components/le-popover.js +9 -0
- package/dist/components/le-popover.js.map +1 -0
- package/dist/components/le-popover2.js +382 -0
- package/dist/components/le-popover2.js.map +1 -0
- package/dist/components/le-popup.d.ts +11 -0
- package/dist/components/le-popup.js +279 -0
- package/dist/components/le-popup.js.map +1 -0
- package/dist/components/le-round-progress.d.ts +11 -0
- package/dist/components/le-round-progress.js +135 -0
- package/dist/components/le-round-progress.js.map +1 -0
- package/dist/components/le-slot.d.ts +11 -0
- package/dist/components/le-slot.js +9 -0
- package/dist/components/le-slot.js.map +1 -0
- package/dist/components/le-stack.d.ts +11 -0
- package/dist/components/le-stack.js +198 -0
- package/dist/components/le-stack.js.map +1 -0
- package/dist/components/le-string-input.d.ts +11 -0
- package/dist/components/le-string-input.js +9 -0
- package/dist/components/le-string-input.js.map +1 -0
- package/dist/components/le-text.d.ts +11 -0
- package/dist/components/le-text.js +398 -0
- package/dist/components/le-text.js.map +1 -0
- package/dist/components/le-turntable.d.ts +11 -0
- package/dist/components/le-turntable.js +164 -0
- package/dist/components/le-turntable.js.map +1 -0
- package/dist/core/components/index.d.ts +64 -0
- package/dist/core/components/index.js +127 -0
- package/dist/core/components/index.js.map +1 -0
- package/dist/core/components/le-box.d.ts +11 -0
- package/dist/core/components/le-box.js +246 -0
- package/dist/core/components/le-box.js.map +1 -0
- package/dist/core/components/le-button.d.ts +11 -0
- package/dist/core/components/le-button.js +9 -0
- package/dist/core/components/le-button.js.map +1 -0
- package/dist/core/components/le-button2.js +1358 -0
- package/dist/core/components/le-button2.js.map +1 -0
- package/dist/core/components/le-card.d.ts +11 -0
- package/dist/core/components/le-card.js +73 -0
- package/dist/core/components/le-card.js.map +1 -0
- package/dist/core/components/le-checkbox.d.ts +11 -0
- package/dist/core/components/le-checkbox.js +9 -0
- package/dist/core/components/le-checkbox.js.map +1 -0
- package/dist/core/components/le-component.js.map +1 -0
- package/dist/core/components/le-number-input.d.ts +11 -0
- package/dist/core/components/le-number-input.js +261 -0
- package/dist/core/components/le-number-input.js.map +1 -0
- package/dist/core/components/le-popover.d.ts +11 -0
- package/dist/core/components/le-popover.js +9 -0
- package/dist/core/components/le-popover.js.map +1 -0
- package/dist/core/components/le-popover2.js +382 -0
- package/dist/core/components/le-popover2.js.map +1 -0
- package/dist/core/components/le-popup.d.ts +11 -0
- package/dist/core/components/le-popup.js +269 -0
- package/dist/core/components/le-popup.js.map +1 -0
- package/dist/core/components/le-round-progress.d.ts +11 -0
- package/dist/core/components/le-round-progress.js +135 -0
- package/dist/core/components/le-round-progress.js.map +1 -0
- package/dist/core/components/le-slot.js.map +1 -0
- package/dist/core/components/le-stack.d.ts +11 -0
- package/dist/core/components/le-stack.js +188 -0
- package/dist/core/components/le-stack.js.map +1 -0
- package/dist/core/components/le-string-input.d.ts +11 -0
- package/dist/core/components/le-string-input.js +9 -0
- package/dist/core/components/le-string-input.js.map +1 -0
- package/dist/core/components/le-text.d.ts +11 -0
- package/dist/core/components/le-text.js +388 -0
- package/dist/core/components/le-text.js.map +1 -0
- package/dist/core/components/le-turntable.d.ts +11 -0
- package/dist/core/components/le-turntable.js +164 -0
- package/dist/core/components/le-turntable.js.map +1 -0
- package/dist/core/index.d.ts +23 -0
- package/dist/core/index.js +74 -0
- package/dist/core/stencil-runtime.js +1 -0
- package/dist/docs.d.ts +443 -0
- package/dist/docs.json +5185 -0
- package/dist/esm/index-D71TXvJa.js +1781 -0
- package/dist/esm/index-D71TXvJa.js.map +1 -0
- package/dist/esm/index.js +105 -5
- package/dist/esm/index.js.map +1 -0
- package/dist/esm/le-box.entry.js +182 -0
- package/dist/esm/le-box.entry.js.map +1 -0
- package/dist/esm/le-button.le-checkbox.le-component.le-popover.le-slot.le-string-input.entry.js.map +1 -0
- package/dist/esm/le-button_6.entry.js +1192 -0
- package/dist/esm/le-card.entry.js +27 -0
- package/dist/esm/le-card.entry.js.map +1 -0
- package/dist/esm/le-kit.js +21 -0
- package/dist/esm/le-kit.js.map +1 -0
- package/dist/esm/le-number-input.entry.js +200 -0
- package/dist/esm/le-number-input.entry.js.map +1 -0
- package/dist/esm/le-popup.entry.js +210 -0
- package/dist/esm/le-popup.entry.js.map +1 -0
- package/dist/esm/le-round-progress.entry.js +104 -0
- package/dist/esm/le-round-progress.entry.js.map +1 -0
- package/dist/esm/le-stack.entry.js +133 -0
- package/dist/esm/le-stack.entry.js.map +1 -0
- package/dist/esm/le-text.entry.js +333 -0
- package/dist/esm/le-text.entry.js.map +1 -0
- package/dist/esm/le-turntable.entry.js +137 -0
- package/dist/esm/le-turntable.entry.js.map +1 -0
- package/dist/esm/loader.js +11 -0
- package/dist/esm/loader.js.map +1 -0
- package/dist/esm/utils-CJLZrrdC.js +146 -0
- package/dist/esm/utils-CJLZrrdC.js.map +1 -0
- package/dist/index.cjs.js +1 -0
- package/dist/index.js +1 -2
- package/dist/le-kit/index-D21JjI31.js.map +1 -0
- package/dist/le-kit/index.esm.js +2 -0
- package/dist/le-kit/index.esm.js.map +1 -0
- package/dist/le-kit/le-box.entry.esm.js.map +1 -0
- package/dist/le-kit/le-button.le-checkbox.le-component.le-popover.le-slot.le-string-input.entry.esm.js.map +1 -0
- package/dist/le-kit/le-card.entry.esm.js.map +1 -0
- package/dist/le-kit/le-kit.css +1 -0
- package/dist/le-kit/le-kit.esm.js +2 -0
- package/dist/le-kit/le-kit.esm.js.map +1 -0
- package/dist/le-kit/le-number-input.entry.esm.js.map +1 -0
- package/dist/le-kit/le-popup.entry.esm.js.map +1 -0
- package/dist/le-kit/le-round-progress.entry.esm.js.map +1 -0
- package/dist/le-kit/le-stack.entry.esm.js.map +1 -0
- package/dist/le-kit/le-text.entry.esm.js.map +1 -0
- package/dist/le-kit/le-turntable.entry.esm.js.map +1 -0
- package/dist/le-kit/loader.esm.js.map +1 -0
- package/dist/le-kit/p-024a764e.entry.js +2 -0
- package/dist/le-kit/p-024a764e.entry.js.map +1 -0
- package/dist/le-kit/p-073cf0b9.entry.js +2 -0
- package/dist/le-kit/p-073cf0b9.entry.js.map +1 -0
- package/dist/le-kit/p-0955b105.entry.js +2 -0
- package/dist/le-kit/p-0955b105.entry.js.map +1 -0
- package/dist/le-kit/p-18d79ee2.entry.js +2 -0
- package/dist/le-kit/p-18d79ee2.entry.js.map +1 -0
- package/dist/le-kit/p-4b1d3b6d.entry.js +2 -0
- package/dist/le-kit/p-4b1d3b6d.entry.js.map +1 -0
- package/dist/le-kit/p-79d179bd.entry.js +2 -0
- package/dist/le-kit/p-79d179bd.entry.js.map +1 -0
- package/dist/le-kit/p-D71TXvJa.js +3 -0
- package/dist/le-kit/p-D71TXvJa.js.map +1 -0
- package/dist/le-kit/p-c8a9288e.entry.js +2 -0
- package/dist/le-kit/p-c8a9288e.entry.js.map +1 -0
- package/dist/le-kit/p-cfc35bd3.entry.js +2 -0
- package/dist/le-kit/p-cfc35bd3.entry.js.map +1 -0
- package/dist/le-kit/p-d04da1f5.entry.js +2 -0
- package/dist/le-kit/p-d04da1f5.entry.js.map +1 -0
- package/dist/le-kit/p-qIai5-eB.js +2 -0
- package/dist/le-kit/p-qIai5-eB.js.map +1 -0
- package/dist/le-kit/utils-apol-Xc_.js.map +1 -0
- package/dist/themes/base.css +89 -0
- package/dist/themes/dark.css +100 -0
- package/dist/themes/default.css +108 -0
- package/dist/themes/gradient.css +100 -0
- package/dist/themes/index.css +413 -0
- package/dist/themes/minimal.css +100 -0
- package/dist/themes/warm.css +100 -0
- package/dist/types/components/le-box/le-box.d.ts +111 -0
- package/dist/types/components/le-button/le-button.d.ts +78 -0
- package/dist/types/components/le-card/le-card.d.ts +37 -0
- package/dist/types/components/le-checkbox/le-checkbox.d.ts +46 -0
- package/dist/types/components/le-component/le-component.d.ts +115 -0
- package/dist/types/components/le-number-input/le-number-input.d.ts +106 -0
- package/dist/types/components/le-popover/le-popover.d.ts +109 -0
- package/dist/types/components/le-popup/le-popup.api.d.ts +73 -0
- package/dist/types/components/le-popup/le-popup.d.ts +122 -0
- package/dist/types/components/le-round-progress/le-round-progress.d.ts +2 -3
- package/dist/types/components/le-slot/le-slot.d.ts +149 -0
- package/dist/types/components/le-stack/le-stack.d.ts +73 -0
- package/dist/types/components/le-string-input/le-string-input.d.ts +83 -0
- package/dist/types/components/le-text/le-text.d.ts +141 -0
- package/dist/types/components/le-turntable/le-turntable.d.ts +1 -2
- package/dist/types/components.d.ts +2030 -62
- package/dist/types/global/app.d.ts +40 -0
- package/dist/types/index-admin.d.ts +29 -0
- package/dist/types/index-core.d.ts +27 -0
- package/dist/types/index.d.ts +15 -0
- package/dist/types/stencil-public-runtime.d.ts +1756 -0
- package/dist/types/types/blocks.d.ts +136 -0
- package/dist/types/types/options.d.ts +124 -0
- package/dist/types/utils/utils.d.ts +54 -1
- package/loader/cdn.js +1 -0
- package/loader/index.cjs.js +1 -0
- package/loader/index.d.ts +24 -0
- package/loader/index.es2017.js +1 -0
- package/loader/index.js +2 -0
- package/package.json +64 -13
- package/readme.md +180 -46
- package/dist/cjs/es5/build/jqoqzji9.entry.js +0 -6
- package/dist/cjs/es5/build/jqoqzji9.sc.entry.js +0 -6
- package/dist/cjs/es5/build/novg0vs0.entry.js +0 -9
- package/dist/cjs/es5/build/novg0vs0.sc.entry.js +0 -9
- package/dist/cjs/es5/index.js +0 -1
- package/dist/cjs/es5/le-kit.components.js +0 -4
- package/dist/cjs/es5/le-kit.core.js +0 -459
- package/dist/cjs/es5/le-kit.define.js +0 -9
- package/dist/cjs/es5/polyfills/array.js +0 -63
- package/dist/cjs/es5/polyfills/css-shim.js +0 -178
- package/dist/cjs/es5/polyfills/dom.js +0 -125
- package/dist/cjs/es5/polyfills/fetch.js +0 -186
- package/dist/cjs/es5/polyfills/map.js +0 -54
- package/dist/cjs/es5/polyfills/object.js +0 -27
- package/dist/cjs/es5/polyfills/promise.js +0 -80
- package/dist/cjs/es5/polyfills/string.js +0 -15
- package/dist/cjs/es5/polyfills/tslib.js +0 -244
- package/dist/cjs/es5/polyfills/url.js +0 -68
- package/dist/collection/interface.js +0 -0
- package/dist/esm/es2017/build/jqoqzji9.entry.js +0 -88
- package/dist/esm/es2017/build/jqoqzji9.sc.entry.js +0 -88
- package/dist/esm/es2017/build/novg0vs0.entry.js +0 -106
- package/dist/esm/es2017/build/novg0vs0.sc.entry.js +0 -106
- package/dist/esm/es2017/index.js +0 -1
- package/dist/esm/es2017/le-kit.components.js +0 -2
- package/dist/esm/es2017/le-kit.core.js +0 -5
- package/dist/esm/es2017/le-kit.define.js +0 -9
- package/dist/esm/es5/build/jqoqzji9.entry.js +0 -1
- package/dist/esm/es5/build/jqoqzji9.sc.entry.js +0 -1
- package/dist/esm/es5/build/novg0vs0.entry.js +0 -1
- package/dist/esm/es5/build/novg0vs0.sc.entry.js +0 -1
- package/dist/esm/es5/index.js +0 -1
- package/dist/esm/es5/le-kit.components.js +0 -2
- package/dist/esm/es5/le-kit.core.js +0 -5
- package/dist/esm/es5/le-kit.define.js +0 -9
- package/dist/esm/es5/polyfills/array.js +0 -23
- package/dist/esm/es5/polyfills/css-shim.js +0 -8
- package/dist/esm/es5/polyfills/dom.js +0 -22
- package/dist/esm/es5/polyfills/fetch.js +0 -20
- package/dist/esm/es5/polyfills/map.js +0 -7
- package/dist/esm/es5/polyfills/object.js +0 -20
- package/dist/esm/es5/polyfills/promise.js +0 -8
- package/dist/esm/es5/polyfills/string.js +0 -12
- package/dist/esm/es5/polyfills/tslib.js +0 -160
- package/dist/esm/es5/polyfills/url.js +0 -7
- package/dist/le-kit/jqoqzji9.entry.js +0 -1
- package/dist/le-kit/jqoqzji9.es5.entry.js +0 -1
- package/dist/le-kit/jqoqzji9.sc.entry.js +0 -1
- package/dist/le-kit/jqoqzji9.sc.es5.entry.js +0 -1
- package/dist/le-kit/le-kit.lfyfa4jd.js +0 -123
- package/dist/le-kit/le-kit.rzqb8hph.js +0 -4
- package/dist/le-kit/novg0vs0.entry.js +0 -1
- package/dist/le-kit/novg0vs0.es5.entry.js +0 -1
- package/dist/le-kit/novg0vs0.sc.entry.js +0 -1
- package/dist/le-kit/novg0vs0.sc.es5.entry.js +0 -1
- package/dist/le-kit.js +0 -1
- package/dist/loader/index.cjs.js +0 -1
- package/dist/loader/index.d.ts +0 -1
- package/dist/loader/index.es2017.js +0 -1
- package/dist/loader/index.js +0 -1
- package/dist/loader/package.json +0 -9
- package/dist/types/stencil.core.d.ts +0 -1203
- package/dist/web-components.json +0 -41
|
@@ -1,80 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
function applyPolyfill(window, document) {
|
|
4
|
-
(window.ES6Promise = function () { function t() { var t = setTimeout; return function () { return t(r, 1); }; } function r() { for (var t = 0; t < y; t += 2)
|
|
5
|
-
(0, C[t])(C[t + 1]), C[t] = void 0, C[t + 1] = void 0; y = 0; } function e(t, r) { var e = this, n = new this.constructor(o); void 0 === n[O] && _(n); var i = e._state; if (i) {
|
|
6
|
-
var s = arguments[i - 1];
|
|
7
|
-
g(function () { return v(i, n, s, e._result); });
|
|
8
|
-
}
|
|
9
|
-
else
|
|
10
|
-
l(e, n, t, r); return n; } function n(t) { if (t && "object" == typeof t && t.constructor === this)
|
|
11
|
-
return t; var r = new this(o); return u(r, t), r; } function o() { } function i(t) { try {
|
|
12
|
-
return t.then;
|
|
13
|
-
}
|
|
14
|
-
catch (t) {
|
|
15
|
-
return q.error = t, q;
|
|
16
|
-
} } function s(t, r, o) { r.constructor === t.constructor && o === e && r.constructor.resolve === n ? function (t, r) { r._state === x ? a(t, r._result) : r._state === F ? f(t, r._result) : l(r, void 0, function (r) { return u(t, r); }, function (r) { return f(t, r); }); }(t, r) : o === q ? (f(t, q.error), q.error = null) : void 0 === o ? a(t, r) : "function" == typeof o ? function (t, r, e) { g(function (t) { var n = !1, o = function (t, r, e, n) { try {
|
|
17
|
-
t.call(r, e, n);
|
|
18
|
-
}
|
|
19
|
-
catch (t) {
|
|
20
|
-
return t;
|
|
21
|
-
} }(e, r, function (e) { n || (n = !0, r !== e ? u(t, e) : a(t, e)); }, function (r) { n || (n = !0, f(t, r)); }, t._label); !n && o && (n = !0, f(t, o)); }, t); }(t, r, o) : a(t, r); } function u(t, r) { if (t === r)
|
|
22
|
-
f(t, new TypeError("cannot resolve promise w/ itself"));
|
|
23
|
-
else {
|
|
24
|
-
var e = typeof r;
|
|
25
|
-
null === r || "object" !== e && "function" !== e ? a(t, r) : s(t, r, i(r));
|
|
26
|
-
} } function c(t) { t._onerror && t._onerror(t._result), h(t); } function a(t, r) { t._state === P && (t._result = r, t._state = x, 0 !== t._subscribers.length && g(h, t)); } function f(t, r) { t._state === P && (t._state = F, t._result = r, g(c, t)); } function l(t, r, e, n) { var o = t._subscribers, i = o.length; t._onerror = null, o[i] = r, o[i + x] = e, o[i + F] = n, 0 === i && t._state && g(h, t); } function h(t) { var r = t._subscribers, e = t._state; if (0 !== r.length) {
|
|
27
|
-
for (var n, o, i = t._result, s = 0; s < r.length; s += 3)
|
|
28
|
-
n = r[s], o = r[s + e], n ? v(e, n, o, i) : o(i);
|
|
29
|
-
t._subscribers.length = 0;
|
|
30
|
-
} } function v(t, r, e, n) { var o = "function" == typeof e, i = void 0, s = void 0, c = void 0, l = void 0; if (o) {
|
|
31
|
-
try {
|
|
32
|
-
i = e(n);
|
|
33
|
-
}
|
|
34
|
-
catch (t) {
|
|
35
|
-
q.error = t, i = q;
|
|
36
|
-
}
|
|
37
|
-
if (i === q ? (l = !0, s = i.error, i.error = null) : c = !0, r === i)
|
|
38
|
-
return void f(r, new TypeError("Cannot return same promise"));
|
|
39
|
-
}
|
|
40
|
-
else
|
|
41
|
-
i = n, c = !0; r._state === P && (o && c ? u(r, i) : l ? f(r, s) : t === x ? a(r, i) : t === F && f(r, i)); } function _(t) { t[O] = U++, t._state = void 0, t._result = void 0, t._subscribers = []; } var p, d = Array.isArray ? Array.isArray : function (t) { return "[object Array]" === Object.prototype.toString.call(t); }, y = 0, w = void 0, m = void 0, g = function (t, e) { C[y] = t, C[y + 1] = e, 2 === (y += 2) && (m ? m(r) : T()); }, b = (p = "undefined" != typeof window ? window : void 0) || {}, A = b.MutationObserver || b.WebKitMutationObserver; b = "undefined" == typeof self; var E, S, M, j = "undefined" != typeof Uint8ClampedArray && "undefined" != typeof importScripts && "undefined" != typeof MessageChannel, C = Array(1e3), T = void 0; T = A ? (E = 0, S = new A(r), M = document.createTextNode(""), S.observe(M, { characterData: !0 }), function () { M.data = E = ++E % 2; }) : j ? function () { var t = new MessageChannel; return t.port1.onmessage = r, function () { return t.port2.postMessage(0); }; }() : void 0 === p && "function" == typeof require ? function () { try {
|
|
42
|
-
var e = Function("return this")().require("vertx");
|
|
43
|
-
return void 0 !== (w = e.runOnLoop || e.runOnContext) ? function () { w(r); } : t();
|
|
44
|
-
}
|
|
45
|
-
catch (r) {
|
|
46
|
-
return t();
|
|
47
|
-
} }() : t(); var O = Math.random().toString(36).substring(2), P = void 0, x = 1, F = 2, q = { error: null }, U = 0, D = function () { function t(t, r) { this._instanceConstructor = t, this.promise = new t(o), this.promise[O] || _(this.promise), d(r) ? (this._remaining = this.length = r.length, this._result = Array(this.length), 0 === this.length ? a(this.promise, this._result) : (this.length = this.length || 0, this._enumerate(r), 0 === this._remaining && a(this.promise, this._result))) : f(this.promise, Error("Array Methods must be provided an Array")); } return t.prototype._enumerate = function (t) { for (var r = 0; this._state === P && r < t.length; r++)
|
|
48
|
-
this._eachEntry(t[r], r); }, t.prototype._eachEntry = function (t, r) { var u = this._instanceConstructor, c = u.resolve; c === n ? (c = i(t)) === e && t._state !== P ? this._settledAt(t._state, r, t._result) : "function" != typeof c ? (this._remaining--, this._result[r] = t) : u === K ? (s(u = new u(o), t, c), this._willSettleAt(u, r)) : this._willSettleAt(new u(function (r) { return r(t); }), r) : this._willSettleAt(c(t), r); }, t.prototype._settledAt = function (t, r, e) { var n = this.promise; n._state === P && (this._remaining--, t === F ? f(n, e) : this._result[r] = e), 0 === this._remaining && a(n, this._result); }, t.prototype._willSettleAt = function (t, r) { var e = this; l(t, void 0, function (t) { return e._settledAt(x, r, t); }, function (t) { return e._settledAt(F, r, t); }); }, t; }(), K = function () { function t(r) { if (this[O] = U++, this._result = this._state = void 0, this._subscribers = [], o !== r) {
|
|
49
|
-
if ("function" != typeof r)
|
|
50
|
-
throw new TypeError("Must pass a resolver fn as 1st arg");
|
|
51
|
-
if (!(this instanceof t))
|
|
52
|
-
throw new TypeError("Failed to construct 'Promise': Use the 'new' operator.");
|
|
53
|
-
!function (t, r) { try {
|
|
54
|
-
r(function (r) { u(t, r); }, function (r) { f(t, r); });
|
|
55
|
-
}
|
|
56
|
-
catch (r) {
|
|
57
|
-
f(t, r);
|
|
58
|
-
} }(this, r);
|
|
59
|
-
} } return t.prototype.catch = function (t) { return this.then(null, t); }, t.prototype.finally = function (t) { var r = this.constructor; return this.then(function (e) { return r.resolve(t()).then(function () { return e; }); }, function (e) { return r.resolve(t()).then(function () { throw e; }); }); }, t; }(); return K.prototype.then = e, K.all = function (t) { return new D(this, t).promise; }, K.race = function (t) { var r = this; return d(t) ? new r(function (e, n) { for (var o = t.length, i = 0; i < o; i++)
|
|
60
|
-
r.resolve(t[i]).then(e, n); }) : new r(function (t, r) { return r(new TypeError("Must pass array to race")); }); }, K.resolve = n, K.reject = function (t) { var r = new this(o); return f(r, t), r; }, K._setScheduler = function (t) { m = t; }, K._setAsap = function (t) { g = t; }, K._asap = g, K.polyfill = function () { var t = void 0; if ("undefined" != typeof global)
|
|
61
|
-
t = global;
|
|
62
|
-
else if ("undefined" != typeof self)
|
|
63
|
-
t = self;
|
|
64
|
-
else
|
|
65
|
-
try {
|
|
66
|
-
t = Function("return this")();
|
|
67
|
-
}
|
|
68
|
-
catch (t) {
|
|
69
|
-
throw Error("polyfill failed");
|
|
70
|
-
} var r = t.Promise; if (r) {
|
|
71
|
-
var e = null;
|
|
72
|
-
try {
|
|
73
|
-
e = Object.prototype.toString.call(r.resolve());
|
|
74
|
-
}
|
|
75
|
-
catch (t) { }
|
|
76
|
-
if ("[object Promise]" === e && !r.cast)
|
|
77
|
-
return;
|
|
78
|
-
} t.Promise = K; }, K.Promise = K, K.polyfill(), K; }());
|
|
79
|
-
}
|
|
80
|
-
exports.applyPolyfill = applyPolyfill;
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
function applyPolyfill(window, document) {
|
|
4
|
-
String.prototype.endsWith || Object.defineProperty(String.prototype, "endsWith", { writable: !0, configurable: !0, value: function (b, a) { if (void 0 === a || a > this.length)
|
|
5
|
-
a = this.length; return this.substring(a - b.length, a) === b; } });
|
|
6
|
-
/*!
|
|
7
|
-
String.prototype.includes
|
|
8
|
-
*/
|
|
9
|
-
String.prototype.includes || (String.prototype.includes = function (b, a) { "number" !== typeof a && (a = 0); return a + b.length > this.length ? !1 : -1 !== this.indexOf(b, a); });
|
|
10
|
-
/*!
|
|
11
|
-
String.prototype.startsWith
|
|
12
|
-
*/
|
|
13
|
-
String.prototype.startsWith || Object.defineProperty(String.prototype, "startsWith", { writable: !0, configurable: !0, value: function (b, a) { return this.substr(!a || 0 > a ? 0 : +a, b.length) === b; } });
|
|
14
|
-
}
|
|
15
|
-
exports.applyPolyfill = applyPolyfill;
|
|
@@ -1,244 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
// REV: 9dd9aa322c893e5e0b3f1609b1126314ccf37bbb
|
|
3
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
-
/*! *****************************************************************************
|
|
5
|
-
Copyright (c) Microsoft Corporation. All rights reserved.
|
|
6
|
-
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
|
|
7
|
-
this file except in compliance with the License. You may obtain a copy of the
|
|
8
|
-
License at http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
-
THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
|
10
|
-
KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
|
|
11
|
-
WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
|
|
12
|
-
MERCHANTABLITY OR NON-INFRINGEMENT.
|
|
13
|
-
See the Apache Version 2.0 License for specific language governing permissions
|
|
14
|
-
and limitations under the License.
|
|
15
|
-
***************************************************************************** */
|
|
16
|
-
/* global Reflect, Promise */
|
|
17
|
-
var extendStatics = function (d, b) {
|
|
18
|
-
extendStatics = Object.setPrototypeOf ||
|
|
19
|
-
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
20
|
-
function (d, b) { for (var p in b)
|
|
21
|
-
if (b.hasOwnProperty(p))
|
|
22
|
-
d[p] = b[p]; };
|
|
23
|
-
return extendStatics(d, b);
|
|
24
|
-
};
|
|
25
|
-
function __extends(d, b) {
|
|
26
|
-
extendStatics(d, b);
|
|
27
|
-
function __() { this.constructor = d; }
|
|
28
|
-
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
29
|
-
}
|
|
30
|
-
exports.__extends = __extends;
|
|
31
|
-
exports.__assign = function () {
|
|
32
|
-
exports.__assign = Object.assign || function __assign(t) {
|
|
33
|
-
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
34
|
-
s = arguments[i];
|
|
35
|
-
for (var p in s)
|
|
36
|
-
if (Object.prototype.hasOwnProperty.call(s, p))
|
|
37
|
-
t[p] = s[p];
|
|
38
|
-
}
|
|
39
|
-
return t;
|
|
40
|
-
};
|
|
41
|
-
return exports.__assign.apply(this, arguments);
|
|
42
|
-
};
|
|
43
|
-
function __rest(s, e) {
|
|
44
|
-
var t = {};
|
|
45
|
-
for (var p in s)
|
|
46
|
-
if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
47
|
-
t[p] = s[p];
|
|
48
|
-
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
49
|
-
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++)
|
|
50
|
-
if (e.indexOf(p[i]) < 0)
|
|
51
|
-
t[p[i]] = s[p[i]];
|
|
52
|
-
return t;
|
|
53
|
-
}
|
|
54
|
-
exports.__rest = __rest;
|
|
55
|
-
function __decorate(decorators, target, key, desc) {
|
|
56
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
57
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function")
|
|
58
|
-
r = Reflect.decorate(decorators, target, key, desc);
|
|
59
|
-
else
|
|
60
|
-
for (var i = decorators.length - 1; i >= 0; i--)
|
|
61
|
-
if (d = decorators[i])
|
|
62
|
-
r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
63
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
64
|
-
}
|
|
65
|
-
exports.__decorate = __decorate;
|
|
66
|
-
function __param(paramIndex, decorator) {
|
|
67
|
-
return function (target, key) { decorator(target, key, paramIndex); };
|
|
68
|
-
}
|
|
69
|
-
exports.__param = __param;
|
|
70
|
-
function __metadata(metadataKey, metadataValue) {
|
|
71
|
-
if (typeof Reflect === "object" && typeof Reflect.metadata === "function")
|
|
72
|
-
return Reflect.metadata(metadataKey, metadataValue);
|
|
73
|
-
}
|
|
74
|
-
exports.__metadata = __metadata;
|
|
75
|
-
function __awaiter(thisArg, _arguments, P, generator) {
|
|
76
|
-
return new (P || (P = Promise))(function (resolve, reject) {
|
|
77
|
-
function fulfilled(value) { try {
|
|
78
|
-
step(generator.next(value));
|
|
79
|
-
}
|
|
80
|
-
catch (e) {
|
|
81
|
-
reject(e);
|
|
82
|
-
} }
|
|
83
|
-
function rejected(value) { try {
|
|
84
|
-
step(generator["throw"](value));
|
|
85
|
-
}
|
|
86
|
-
catch (e) {
|
|
87
|
-
reject(e);
|
|
88
|
-
} }
|
|
89
|
-
function step(result) { result.done ? resolve(result.value) : new P(function (resolve) { resolve(result.value); }).then(fulfilled, rejected); }
|
|
90
|
-
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
91
|
-
});
|
|
92
|
-
}
|
|
93
|
-
exports.__awaiter = __awaiter;
|
|
94
|
-
function __generator(thisArg, body) {
|
|
95
|
-
var _ = { label: 0, sent: function () { if (t[0] & 1)
|
|
96
|
-
throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
|
|
97
|
-
return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function () { return this; }), g;
|
|
98
|
-
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
99
|
-
function step(op) {
|
|
100
|
-
if (f)
|
|
101
|
-
throw new TypeError("Generator is already executing.");
|
|
102
|
-
while (_)
|
|
103
|
-
try {
|
|
104
|
-
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done)
|
|
105
|
-
return t;
|
|
106
|
-
if (y = 0, t)
|
|
107
|
-
op = [op[0] & 2, t.value];
|
|
108
|
-
switch (op[0]) {
|
|
109
|
-
case 0:
|
|
110
|
-
case 1:
|
|
111
|
-
t = op;
|
|
112
|
-
break;
|
|
113
|
-
case 4:
|
|
114
|
-
_.label++;
|
|
115
|
-
return { value: op[1], done: false };
|
|
116
|
-
case 5:
|
|
117
|
-
_.label++;
|
|
118
|
-
y = op[1];
|
|
119
|
-
op = [0];
|
|
120
|
-
continue;
|
|
121
|
-
case 7:
|
|
122
|
-
op = _.ops.pop();
|
|
123
|
-
_.trys.pop();
|
|
124
|
-
continue;
|
|
125
|
-
default:
|
|
126
|
-
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) {
|
|
127
|
-
_ = 0;
|
|
128
|
-
continue;
|
|
129
|
-
}
|
|
130
|
-
if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) {
|
|
131
|
-
_.label = op[1];
|
|
132
|
-
break;
|
|
133
|
-
}
|
|
134
|
-
if (op[0] === 6 && _.label < t[1]) {
|
|
135
|
-
_.label = t[1];
|
|
136
|
-
t = op;
|
|
137
|
-
break;
|
|
138
|
-
}
|
|
139
|
-
if (t && _.label < t[2]) {
|
|
140
|
-
_.label = t[2];
|
|
141
|
-
_.ops.push(op);
|
|
142
|
-
break;
|
|
143
|
-
}
|
|
144
|
-
if (t[2])
|
|
145
|
-
_.ops.pop();
|
|
146
|
-
_.trys.pop();
|
|
147
|
-
continue;
|
|
148
|
-
}
|
|
149
|
-
op = body.call(thisArg, _);
|
|
150
|
-
}
|
|
151
|
-
catch (e) {
|
|
152
|
-
op = [6, e];
|
|
153
|
-
y = 0;
|
|
154
|
-
}
|
|
155
|
-
finally {
|
|
156
|
-
f = t = 0;
|
|
157
|
-
}
|
|
158
|
-
if (op[0] & 5)
|
|
159
|
-
throw op[1];
|
|
160
|
-
return { value: op[0] ? op[1] : void 0, done: true };
|
|
161
|
-
}
|
|
162
|
-
}
|
|
163
|
-
exports.__generator = __generator;
|
|
164
|
-
function __exportStar(m, exports) {
|
|
165
|
-
for (var p in m)
|
|
166
|
-
if (!exports.hasOwnProperty(p))
|
|
167
|
-
exports[p] = m[p];
|
|
168
|
-
}
|
|
169
|
-
exports.__exportStar = __exportStar;
|
|
170
|
-
function __values(o) {
|
|
171
|
-
var m = typeof Symbol === "function" && o[Symbol.iterator], i = 0;
|
|
172
|
-
if (m)
|
|
173
|
-
return m.call(o);
|
|
174
|
-
return {
|
|
175
|
-
next: function () {
|
|
176
|
-
if (o && i >= o.length)
|
|
177
|
-
o = void 0;
|
|
178
|
-
return { value: o && o[i++], done: !o };
|
|
179
|
-
}
|
|
180
|
-
};
|
|
181
|
-
}
|
|
182
|
-
exports.__values = __values;
|
|
183
|
-
function __read(o, n) {
|
|
184
|
-
var m = typeof Symbol === "function" && o[Symbol.iterator];
|
|
185
|
-
if (!m)
|
|
186
|
-
return o;
|
|
187
|
-
var i = m.call(o), r, ar = [], e;
|
|
188
|
-
try {
|
|
189
|
-
while ((n === void 0 || n-- > 0) && !(r = i.next()).done)
|
|
190
|
-
ar.push(r.value);
|
|
191
|
-
}
|
|
192
|
-
catch (error) {
|
|
193
|
-
e = { error: error };
|
|
194
|
-
}
|
|
195
|
-
finally {
|
|
196
|
-
try {
|
|
197
|
-
if (r && !r.done && (m = i["return"]))
|
|
198
|
-
m.call(i);
|
|
199
|
-
}
|
|
200
|
-
finally {
|
|
201
|
-
if (e)
|
|
202
|
-
throw e.error;
|
|
203
|
-
}
|
|
204
|
-
}
|
|
205
|
-
return ar;
|
|
206
|
-
}
|
|
207
|
-
exports.__read = __read;
|
|
208
|
-
function __spread() {
|
|
209
|
-
for (var ar = [], i = 0; i < arguments.length; i++)
|
|
210
|
-
ar = ar.concat(__read(arguments[i]));
|
|
211
|
-
return ar;
|
|
212
|
-
}
|
|
213
|
-
exports.__spread = __spread;
|
|
214
|
-
function __await(v) {
|
|
215
|
-
return this instanceof __await ? (this.v = v, this) : new __await(v);
|
|
216
|
-
}
|
|
217
|
-
exports.__await = __await;
|
|
218
|
-
function __makeTemplateObject(cooked, raw) {
|
|
219
|
-
if (Object.defineProperty) {
|
|
220
|
-
Object.defineProperty(cooked, "raw", { value: raw });
|
|
221
|
-
}
|
|
222
|
-
else {
|
|
223
|
-
cooked.raw = raw;
|
|
224
|
-
}
|
|
225
|
-
return cooked;
|
|
226
|
-
}
|
|
227
|
-
exports.__makeTemplateObject = __makeTemplateObject;
|
|
228
|
-
;
|
|
229
|
-
function __importStar(mod) {
|
|
230
|
-
if (mod && mod.__esModule)
|
|
231
|
-
return mod;
|
|
232
|
-
var result = {};
|
|
233
|
-
if (mod != null)
|
|
234
|
-
for (var k in mod)
|
|
235
|
-
if (Object.hasOwnProperty.call(mod, k))
|
|
236
|
-
result[k] = mod[k];
|
|
237
|
-
result.default = mod;
|
|
238
|
-
return result;
|
|
239
|
-
}
|
|
240
|
-
exports.__importStar = __importStar;
|
|
241
|
-
function __importDefault(mod) {
|
|
242
|
-
return (mod && mod.__esModule) ? mod : { default: mod };
|
|
243
|
-
}
|
|
244
|
-
exports.__importDefault = __importDefault;
|
|
@@ -1,68 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
function applyPolyfill(window, document) {
|
|
4
|
-
(function (e) { var t = function () { try {
|
|
5
|
-
return !!Symbol.iterator;
|
|
6
|
-
}
|
|
7
|
-
catch (e) {
|
|
8
|
-
return false;
|
|
9
|
-
} }; var n = t(); var r = function (e) { var t = { next: function () { var t = e.shift(); return { done: t === void 0, value: t }; } }; if (n) {
|
|
10
|
-
t[Symbol.iterator] = function () { return t; };
|
|
11
|
-
} return t; }; var i = function (e) { return encodeURIComponent(e).replace(/%20/g, "+"); }; var o = function (e) { return decodeURIComponent(e).replace(/\+/g, " "); }; var a = function () { var t = function (e) { Object.defineProperty(this, "_entries", { value: {} }); if (typeof e === "string") {
|
|
12
|
-
if (e !== "") {
|
|
13
|
-
e = e.replace(/^\?/, "");
|
|
14
|
-
var n = e.split("&");
|
|
15
|
-
var r;
|
|
16
|
-
for (var i = 0; i < n.length; i++) {
|
|
17
|
-
r = n[i].split("=");
|
|
18
|
-
this.append(o(r[0]), r.length > 1 ? o(r[1]) : "");
|
|
19
|
-
}
|
|
20
|
-
}
|
|
21
|
-
}
|
|
22
|
-
else if (e instanceof t) {
|
|
23
|
-
var a = this;
|
|
24
|
-
e.forEach(function (e, t) { a.append(e, t); });
|
|
25
|
-
} }; var a = t.prototype; a.append = function (e, t) { if (e in this._entries) {
|
|
26
|
-
this._entries[e].push(t.toString());
|
|
27
|
-
}
|
|
28
|
-
else {
|
|
29
|
-
this._entries[e] = [t.toString()];
|
|
30
|
-
} }; a.delete = function (e) { delete this._entries[e]; }; a.get = function (e) { return e in this._entries ? this._entries[e][0] : null; }; a.getAll = function (e) { return e in this._entries ? this._entries[e].slice(0) : []; }; a.has = function (e) { return e in this._entries; }; a.set = function (e, t) { this._entries[e] = [t.toString()]; }; a.forEach = function (e, t) { var n; for (var r in this._entries) {
|
|
31
|
-
if (this._entries.hasOwnProperty(r)) {
|
|
32
|
-
n = this._entries[r];
|
|
33
|
-
for (var i = 0; i < n.length; i++) {
|
|
34
|
-
e.call(t, n[i], r, this);
|
|
35
|
-
}
|
|
36
|
-
}
|
|
37
|
-
} }; a.keys = function () { var e = []; this.forEach(function (t, n) { e.push(n); }); return r(e); }; a.values = function () { var e = []; this.forEach(function (t) { e.push(t); }); return r(e); }; a.entries = function () { var e = []; this.forEach(function (t, n) { e.push([n, t]); }); return r(e); }; if (n) {
|
|
38
|
-
a[Symbol.iterator] = a.entries;
|
|
39
|
-
} a.toString = function () { var e = []; this.forEach(function (t, n) { e.push(i(n) + "=" + i(t)); }); return e.join("&"); }; e.URLSearchParams = t; }; if (!("URLSearchParams" in e) || new URLSearchParams("?a=1").toString() !== "a=1") {
|
|
40
|
-
a();
|
|
41
|
-
} })(typeof global !== "undefined" ? global : typeof window !== "undefined" ? window : typeof self !== "undefined" ? self : this);
|
|
42
|
-
(function (e) { var t = function () { try {
|
|
43
|
-
var e = new URL("b", "http://a");
|
|
44
|
-
e.pathname = "c%20d";
|
|
45
|
-
return e.href === "http://a/c%20d" && e.searchParams;
|
|
46
|
-
}
|
|
47
|
-
catch (e) {
|
|
48
|
-
return false;
|
|
49
|
-
} }; var n = function () { var t = e.URL; var n = function (e, t) { if (typeof e !== "string")
|
|
50
|
-
e = String(e); var n = document.implementation.createHTMLDocument(""); window.doc = n; if (t) {
|
|
51
|
-
var r = n.createElement("base");
|
|
52
|
-
r.href = t;
|
|
53
|
-
n.head.appendChild(r);
|
|
54
|
-
} var i = n.createElement("a"); i.href = e; n.body.appendChild(i); i.href = i.href; if (i.protocol === ":" || !/:/.test(i.href)) {
|
|
55
|
-
throw new TypeError("Invalid URL");
|
|
56
|
-
} Object.defineProperty(this, "_anchorElement", { value: i }); }; var r = n.prototype; var i = function (e) { Object.defineProperty(r, e, { get: function () { return this._anchorElement[e]; }, set: function (t) { this._anchorElement[e] = t; }, enumerable: true }); }; ["hash", "host", "hostname", "port", "protocol", "search"].forEach(function (e) { i(e); }); Object.defineProperties(r, { toString: { get: function () { var e = this; return function () { return e.href; }; } }, href: { get: function () { return this._anchorElement.href.replace(/\?$/, ""); }, set: function (e) { this._anchorElement.href = e; }, enumerable: true }, pathname: { get: function () { return this._anchorElement.pathname.replace(/(^\/?)/, "/"); }, set: function (e) { this._anchorElement.pathname = e; }, enumerable: true }, origin: { get: function () { var e = { "http:": 80, "https:": 443, "ftp:": 21 }[this._anchorElement.protocol]; var t = this._anchorElement.port != e && this._anchorElement.port !== ""; return this._anchorElement.protocol + "//" + this._anchorElement.hostname + (t ? ":" + this._anchorElement.port : ""); }, enumerable: true }, password: { get: function () { return ""; }, set: function (e) { }, enumerable: true }, username: { get: function () { return ""; }, set: function (e) { }, enumerable: true }, searchParams: { get: function () { var e = new URLSearchParams(this.search); var t = this; ["append", "delete", "set"].forEach(function (n) { var r = e[n]; e[n] = function () { r.apply(e, arguments); t.search = e.toString(); }; }); return e; }, enumerable: true } }); n.createObjectURL = function (e) { return t.createObjectURL.apply(t, arguments); }; n.revokeObjectURL = function (e) { return t.revokeObjectURL.apply(t, arguments); }; e.URL = n; }; if (!t()) {
|
|
57
|
-
n();
|
|
58
|
-
} if (e.location !== void 0 && !("origin" in e.location)) {
|
|
59
|
-
var r = function () { return e.location.protocol + "//" + e.location.hostname + (e.location.port ? ":" + e.location.port : ""); };
|
|
60
|
-
try {
|
|
61
|
-
Object.defineProperty(e.location, "origin", { get: r, enumerable: true });
|
|
62
|
-
}
|
|
63
|
-
catch (t) {
|
|
64
|
-
setInterval(function () { e.location.origin = r(); }, 100);
|
|
65
|
-
}
|
|
66
|
-
} })(typeof global !== "undefined" ? global : typeof window !== "undefined" ? window : typeof self !== "undefined" ? self : this);
|
|
67
|
-
}
|
|
68
|
-
exports.applyPolyfill = applyPolyfill;
|
|
File without changes
|
|
@@ -1,88 +0,0 @@
|
|
|
1
|
-
import { h } from '../le-kit.core.js';
|
|
2
|
-
|
|
3
|
-
class LeRoundProgress {
|
|
4
|
-
constructor() {
|
|
5
|
-
this.value = 0;
|
|
6
|
-
this.padding = 0;
|
|
7
|
-
}
|
|
8
|
-
updateValue(newValue) {
|
|
9
|
-
this.value = parseFloat(newValue);
|
|
10
|
-
}
|
|
11
|
-
updatePadding(newValue) {
|
|
12
|
-
this.padding = parseFloat(newValue);
|
|
13
|
-
this.calcParams();
|
|
14
|
-
}
|
|
15
|
-
updateProgressBackgrounds(newValue) {
|
|
16
|
-
this.progressPaths = JSON.parse(newValue);
|
|
17
|
-
}
|
|
18
|
-
componentWillLoad() {
|
|
19
|
-
if (typeof this.paths === 'string') {
|
|
20
|
-
this.updateProgressBackgrounds(this.paths);
|
|
21
|
-
}
|
|
22
|
-
this.calcParams();
|
|
23
|
-
}
|
|
24
|
-
calcParams() {
|
|
25
|
-
const width = this.el.getBoundingClientRect().width;
|
|
26
|
-
const diameter = width - this.padding;
|
|
27
|
-
const circumference = Math.PI * diameter;
|
|
28
|
-
this.params = { width, diameter, circumference };
|
|
29
|
-
}
|
|
30
|
-
getViewBox() {
|
|
31
|
-
return '0 0 ' + this.params.width + ' ' + this.params.width;
|
|
32
|
-
}
|
|
33
|
-
getPath() {
|
|
34
|
-
return 'M' + (this.params.width / 2) + ' ' + ((this.params.width - this.params.diameter) / 2) +
|
|
35
|
-
' a ' + (this.params.diameter / 2) + ' ' + (this.params.diameter / 2) +
|
|
36
|
-
' 0 0 1 0 ' + this.params.diameter +
|
|
37
|
-
' a ' + (this.params.diameter / 2) + ' ' + (this.params.diameter / 2) +
|
|
38
|
-
' 0 0 1 0 -' + this.params.diameter;
|
|
39
|
-
}
|
|
40
|
-
getStrokeDashArray() {
|
|
41
|
-
return (this.value / 100 * this.params.circumference) + ', ' + this.params.circumference;
|
|
42
|
-
}
|
|
43
|
-
getPaths() {
|
|
44
|
-
if (!this.progressPaths || !this.progressPaths.length) {
|
|
45
|
-
return null;
|
|
46
|
-
}
|
|
47
|
-
let paths = [];
|
|
48
|
-
this.progressPaths.forEach(bg => {
|
|
49
|
-
paths.push(h("path", { class: "round-progress--path", d: this.getPath(), stroke: bg.color, "stroke-width": bg.width, "stroke-dasharray": bg.dasharray, "stroke-linecap": bg.linecap }));
|
|
50
|
-
});
|
|
51
|
-
return (h("svg", { viewBox: this.getViewBox(), class: "round-progress" }, paths));
|
|
52
|
-
}
|
|
53
|
-
render() {
|
|
54
|
-
return h("div", { class: "round-progress--container" },
|
|
55
|
-
this.getPaths(),
|
|
56
|
-
h("svg", { viewBox: this.getViewBox(), class: "round-progress round-progress--progress" },
|
|
57
|
-
h("path", { class: "round-progress--circle", "stroke-dasharray": this.getStrokeDashArray(), d: this.getPath() })),
|
|
58
|
-
h("slot", null));
|
|
59
|
-
}
|
|
60
|
-
static get is() { return "le-round-progress"; }
|
|
61
|
-
static get encapsulation() { return "shadow"; }
|
|
62
|
-
static get properties() { return {
|
|
63
|
-
"el": {
|
|
64
|
-
"elementRef": true
|
|
65
|
-
},
|
|
66
|
-
"padding": {
|
|
67
|
-
"type": Number,
|
|
68
|
-
"attr": "padding",
|
|
69
|
-
"watchCallbacks": ["updatePadding"]
|
|
70
|
-
},
|
|
71
|
-
"params": {
|
|
72
|
-
"state": true
|
|
73
|
-
},
|
|
74
|
-
"paths": {
|
|
75
|
-
"type": String,
|
|
76
|
-
"attr": "paths",
|
|
77
|
-
"watchCallbacks": ["updateProgressBackgrounds"]
|
|
78
|
-
},
|
|
79
|
-
"value": {
|
|
80
|
-
"type": Number,
|
|
81
|
-
"attr": "value",
|
|
82
|
-
"watchCallbacks": ["updateValue"]
|
|
83
|
-
}
|
|
84
|
-
}; }
|
|
85
|
-
static get style() { return ".round-progress--container{position:relative}.round-progress{position:absolute;top:0;left:0;right:0;bottom:0;display:block}.round-progress--progress{-webkit-filter:drop-shadow(var(--progress-shadow));filter:drop-shadow(var(--progress-shadow))}.round-progress--circle{fill:none;stroke:var(--progress-color,#999);stroke-width:var(--progress-width,4);stroke-linecap:var(--progress-linecap,round);-webkit-animation:progress--circle .5s ease-out forwards;animation:progress--circle .5s ease-out forwards;-webkit-transition:stroke-dasharray .5s ease-out;transition:stroke-dasharray .5s ease-out}\@-webkit-keyframes progress--circle{0%{stroke-dasharray:0 1000}}\@keyframes progress--circle{0%{stroke-dasharray:0 1000}}.round-progress--path{fill:none;stroke-linecap:round}"; }
|
|
86
|
-
}
|
|
87
|
-
|
|
88
|
-
export { LeRoundProgress };
|
|
@@ -1,88 +0,0 @@
|
|
|
1
|
-
import { h } from '../le-kit.core.js';
|
|
2
|
-
|
|
3
|
-
class LeRoundProgress {
|
|
4
|
-
constructor() {
|
|
5
|
-
this.value = 0;
|
|
6
|
-
this.padding = 0;
|
|
7
|
-
}
|
|
8
|
-
updateValue(newValue) {
|
|
9
|
-
this.value = parseFloat(newValue);
|
|
10
|
-
}
|
|
11
|
-
updatePadding(newValue) {
|
|
12
|
-
this.padding = parseFloat(newValue);
|
|
13
|
-
this.calcParams();
|
|
14
|
-
}
|
|
15
|
-
updateProgressBackgrounds(newValue) {
|
|
16
|
-
this.progressPaths = JSON.parse(newValue);
|
|
17
|
-
}
|
|
18
|
-
componentWillLoad() {
|
|
19
|
-
if (typeof this.paths === 'string') {
|
|
20
|
-
this.updateProgressBackgrounds(this.paths);
|
|
21
|
-
}
|
|
22
|
-
this.calcParams();
|
|
23
|
-
}
|
|
24
|
-
calcParams() {
|
|
25
|
-
const width = this.el.getBoundingClientRect().width;
|
|
26
|
-
const diameter = width - this.padding;
|
|
27
|
-
const circumference = Math.PI * diameter;
|
|
28
|
-
this.params = { width, diameter, circumference };
|
|
29
|
-
}
|
|
30
|
-
getViewBox() {
|
|
31
|
-
return '0 0 ' + this.params.width + ' ' + this.params.width;
|
|
32
|
-
}
|
|
33
|
-
getPath() {
|
|
34
|
-
return 'M' + (this.params.width / 2) + ' ' + ((this.params.width - this.params.diameter) / 2) +
|
|
35
|
-
' a ' + (this.params.diameter / 2) + ' ' + (this.params.diameter / 2) +
|
|
36
|
-
' 0 0 1 0 ' + this.params.diameter +
|
|
37
|
-
' a ' + (this.params.diameter / 2) + ' ' + (this.params.diameter / 2) +
|
|
38
|
-
' 0 0 1 0 -' + this.params.diameter;
|
|
39
|
-
}
|
|
40
|
-
getStrokeDashArray() {
|
|
41
|
-
return (this.value / 100 * this.params.circumference) + ', ' + this.params.circumference;
|
|
42
|
-
}
|
|
43
|
-
getPaths() {
|
|
44
|
-
if (!this.progressPaths || !this.progressPaths.length) {
|
|
45
|
-
return null;
|
|
46
|
-
}
|
|
47
|
-
let paths = [];
|
|
48
|
-
this.progressPaths.forEach(bg => {
|
|
49
|
-
paths.push(h("path", { class: "round-progress--path", d: this.getPath(), stroke: bg.color, "stroke-width": bg.width, "stroke-dasharray": bg.dasharray, "stroke-linecap": bg.linecap }));
|
|
50
|
-
});
|
|
51
|
-
return (h("svg", { viewBox: this.getViewBox(), class: "round-progress" }, paths));
|
|
52
|
-
}
|
|
53
|
-
render() {
|
|
54
|
-
return h("div", { class: "round-progress--container" },
|
|
55
|
-
this.getPaths(),
|
|
56
|
-
h("svg", { viewBox: this.getViewBox(), class: "round-progress round-progress--progress" },
|
|
57
|
-
h("path", { class: "round-progress--circle", "stroke-dasharray": this.getStrokeDashArray(), d: this.getPath() })),
|
|
58
|
-
h("slot", null));
|
|
59
|
-
}
|
|
60
|
-
static get is() { return "le-round-progress"; }
|
|
61
|
-
static get encapsulation() { return "shadow"; }
|
|
62
|
-
static get properties() { return {
|
|
63
|
-
"el": {
|
|
64
|
-
"elementRef": true
|
|
65
|
-
},
|
|
66
|
-
"padding": {
|
|
67
|
-
"type": Number,
|
|
68
|
-
"attr": "padding",
|
|
69
|
-
"watchCallbacks": ["updatePadding"]
|
|
70
|
-
},
|
|
71
|
-
"params": {
|
|
72
|
-
"state": true
|
|
73
|
-
},
|
|
74
|
-
"paths": {
|
|
75
|
-
"type": String,
|
|
76
|
-
"attr": "paths",
|
|
77
|
-
"watchCallbacks": ["updateProgressBackgrounds"]
|
|
78
|
-
},
|
|
79
|
-
"value": {
|
|
80
|
-
"type": Number,
|
|
81
|
-
"attr": "value",
|
|
82
|
-
"watchCallbacks": ["updateValue"]
|
|
83
|
-
}
|
|
84
|
-
}; }
|
|
85
|
-
static get style() { return ".round-progress--container.sc-le-round-progress{position:relative}.round-progress.sc-le-round-progress{position:absolute;top:0;left:0;right:0;bottom:0;display:block}.round-progress--progress.sc-le-round-progress{-webkit-filter:drop-shadow(var(--progress-shadow));filter:drop-shadow(var(--progress-shadow))}.round-progress--circle.sc-le-round-progress{fill:none;stroke:var(--progress-color,#999);stroke-width:var(--progress-width,4);stroke-linecap:var(--progress-linecap,round);-webkit-animation:progress--circle .5s ease-out forwards;animation:progress--circle .5s ease-out forwards;-webkit-transition:stroke-dasharray .5s ease-out;transition:stroke-dasharray .5s ease-out}\@-webkit-keyframes progress--circle{0%{stroke-dasharray:0 1000}}\@keyframes progress--circle{0%{stroke-dasharray:0 1000}}.round-progress--path.sc-le-round-progress{fill:none;stroke-linecap:round}"; }
|
|
86
|
-
}
|
|
87
|
-
|
|
88
|
-
export { LeRoundProgress };
|