diff --git a/app/Http/Controllers/Account/AddressController.php b/app/Http/Controllers/Account/AddressController.php index 5cfdc0a80..49750fef8 100644 --- a/app/Http/Controllers/Account/AddressController.php +++ b/app/Http/Controllers/Account/AddressController.php @@ -124,7 +124,6 @@ public function update(AddressRequest $request, Address $address) */ public function destroy(Address $address) { - dd($address); $address->delete(); return redirect()->route('account.address.index'); diff --git a/avored.webpack.mix.js b/avored.webpack.mix.js index 7d57af68b..a953c0d31 100644 --- a/avored.webpack.mix.js +++ b/avored.webpack.mix.js @@ -17,8 +17,8 @@ mix.webpackConfig({ } }) -mix.js('vendor/avored/framework/resources/js/app.js', 'public/avored-admin/js/app.js'); -mix.less('vendor/avored/framework/resources/less/app.less', 'public/avored-admin/css/app.css', { +mix.js('packages/framework/resources/js/app.js', 'public/avored-admin/js/app.js'); +mix.less('packages/framework/resources/less/app.less', 'public/avored-admin/css/app.css', { javascriptEnabled: true, modifyVars: { 'primary-color': '#E64448', diff --git a/composer.json b/composer.json index 0e313cd8d..96f3f2b4e 100644 --- a/composer.json +++ b/composer.json @@ -34,7 +34,8 @@ }, "autoload": { "psr-4": { - "App\\": "app/" + "App\\": "app/", + "AvoRed\\Framework\\": "packages/framework/src/" }, "classmap": [ "database/seeds", diff --git a/config/app.php b/config/app.php index 145559135..41f2601f5 100644 --- a/config/app.php +++ b/config/app.php @@ -174,6 +174,7 @@ // App\Providers\BroadcastServiceProvider::class, App\Providers\EventServiceProvider::class, App\Providers\RouteServiceProvider::class, + //AvoRed\Graphql\GraphqlProvider::class, ], diff --git a/modules/avored/demodata/assets/uploads/catalog/attributes/blue-attribute.png b/modules/avored/demodata/assets/uploads/catalog/attributes/blue-attribute.png new file mode 100644 index 000000000..79842cabf Binary files /dev/null and b/modules/avored/demodata/assets/uploads/catalog/attributes/blue-attribute.png differ diff --git a/modules/avored/demodata/assets/uploads/catalog/attributes/red-attribute.jpg b/modules/avored/demodata/assets/uploads/catalog/attributes/red-attribute.jpg new file mode 100644 index 000000000..dcc9052fd Binary files /dev/null and b/modules/avored/demodata/assets/uploads/catalog/attributes/red-attribute.jpg differ diff --git a/modules/avored/demodata/assets/uploads/catalog/attributes/yellow-attribute.png b/modules/avored/demodata/assets/uploads/catalog/attributes/yellow-attribute.png new file mode 100644 index 000000000..68478952e Binary files /dev/null and b/modules/avored/demodata/assets/uploads/catalog/attributes/yellow-attribute.png differ diff --git a/modules/avored/demodata/database/migrations/2017_03_29_000000_avored_demo_data_schema.php b/modules/avored/demodata/database/migrations/2017_03_29_000000_avored_demo_data_schema.php index 119c14c7c..bdf141152 100644 --- a/modules/avored/demodata/database/migrations/2017_03_29_000000_avored_demo_data_schema.php +++ b/modules/avored/demodata/database/migrations/2017_03_29_000000_avored_demo_data_schema.php @@ -38,11 +38,12 @@ public function up() $colorAttribute = Attribute::create( ['name' => 'Color', - 'slug' => 'color'] + 'slug' => 'color', + 'display_as' => 'IMAGE'] ); - $whiteOption = $colorAttribute->dropdownOptions()->create(['display_text' => 'White']); - $blackOption = $colorAttribute->dropdownOptions()->create(['display_text' => 'Black']); - $brownOption = $colorAttribute->dropdownOptions()->create(['display_text' => 'Brown']); + $redOption = $colorAttribute->dropdownOptions()->create(['display_text' => 'Red', 'path' => 'uploads/catalog/attributes/red-attribute.jpg']); + $blueOption = $colorAttribute->dropdownOptions()->create(['display_text' => 'Blue', 'path' => 'uploads/catalog/attributes/blue-attribute.png']); + $yellowOption = $colorAttribute->dropdownOptions()->create(['display_text' => 'Yellow', 'path' => 'uploads/catalog/attributes/yellow-attribute.png']); $brandProperty = Property::create( diff --git a/modules/avored/banner/package-lock.json b/package-lock.json similarity index 71% rename from modules/avored/banner/package-lock.json rename to package-lock.json index 4442e5144..8204192ee 100644 --- a/modules/avored/banner/package-lock.json +++ b/package-lock.json @@ -2,234 +2,309 @@ "requires": true, "lockfileVersion": 1, "dependencies": { + "@ant-design/colors": { + "version": "3.2.2", + "resolved": "https://registry.npmjs.org/@ant-design/colors/-/colors-3.2.2.tgz", + "integrity": "sha512-YKgNbG2dlzqMhA9NtI3/pbY16m3Yl/EeWBRa+lB1X1YaYxHrxNexiQYCLTWO/uDvAjLFMEDU+zR901waBtMtjQ==", + "dev": true, + "requires": { + "tinycolor2": "^1.4.1" + } + }, + "@ant-design/icons": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/@ant-design/icons/-/icons-2.1.1.tgz", + "integrity": "sha512-jCH+k2Vjlno4YWl6g535nHR09PwCEmTBKAG6VqF+rhkrSPRLfgpU2maagwbZPLjaHuU5Jd1DFQ2KJpQuI6uG8w==", + "dev": true + }, + "@ant-design/icons-vue": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/@ant-design/icons-vue/-/icons-vue-2.0.0.tgz", + "integrity": "sha512-2c0QQE5hL4N48k5NkPG5sdpMl9YnvyNhf0U7YkdZYDlLnspoRU7vIA0UK9eHBs6OpFLcJB6o8eJrIl2ajBskPg==", + "dev": true, + "requires": { + "@ant-design/colors": "^3.1.0", + "babel-runtime": "^6.26.0" + } + }, "@babel/code-frame": { "version": "7.5.5", "resolved": "https://registry.npmjs.org/@babel/code-frame/-/code-frame-7.5.5.tgz", "integrity": "sha512-27d4lZoomVyo51VegxI20xZPuSHusqbQag/ztrBC7wegWoQ1nLREPVSKSW8byhTlzTKyNE4ifaTA6lCp7JjpFw==", + "dev": true, "requires": { "@babel/highlight": "^7.0.0" } }, "@babel/core": { - "version": "7.6.0", - "resolved": "https://registry.npmjs.org/@babel/core/-/core-7.6.0.tgz", - "integrity": "sha512-FuRhDRtsd6IptKpHXAa+4WPZYY2ZzgowkbLBecEDDSje1X/apG7jQM33or3NdOmjXBKWGOg4JmSiRfUfuTtHXw==", + "version": "7.7.2", + "resolved": "https://registry.npmjs.org/@babel/core/-/core-7.7.2.tgz", + "integrity": "sha512-eeD7VEZKfhK1KUXGiyPFettgF3m513f8FoBSWiQ1xTvl1RAopLs42Wp9+Ze911I6H0N9lNqJMDgoZT7gHsipeQ==", + "dev": true, "requires": { "@babel/code-frame": "^7.5.5", - "@babel/generator": "^7.6.0", - "@babel/helpers": "^7.6.0", - "@babel/parser": "^7.6.0", - "@babel/template": "^7.6.0", - "@babel/traverse": "^7.6.0", - "@babel/types": "^7.6.0", - "convert-source-map": "^1.1.0", + "@babel/generator": "^7.7.2", + "@babel/helpers": "^7.7.0", + "@babel/parser": "^7.7.2", + "@babel/template": "^7.7.0", + "@babel/traverse": "^7.7.2", + "@babel/types": "^7.7.2", + "convert-source-map": "^1.7.0", "debug": "^4.1.0", "json5": "^2.1.0", "lodash": "^4.17.13", "resolve": "^1.3.2", "semver": "^5.4.1", "source-map": "^0.5.0" + }, + "dependencies": { + "debug": { + "version": "4.1.1", + "resolved": "https://registry.npmjs.org/debug/-/debug-4.1.1.tgz", + "integrity": "sha512-pYAIzeRo8J6KPEaJ0VWOh5Pzkbw/RetuzehGM7QRRX5he4fPHx2rdKMB256ehJCkX+XRQm16eZLqLNS8RSZXZw==", + "dev": true, + "requires": { + "ms": "^2.1.1" + } + }, + "ms": { + "version": "2.1.2", + "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.2.tgz", + "integrity": "sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w==", + "dev": true + } } }, "@babel/generator": { - "version": "7.6.0", - "resolved": "https://registry.npmjs.org/@babel/generator/-/generator-7.6.0.tgz", - "integrity": "sha512-Ms8Mo7YBdMMn1BYuNtKuP/z0TgEIhbcyB8HVR6PPNYp4P61lMsABiS4A3VG1qznjXVCf3r+fVHhm4efTYVsySA==", + "version": "7.7.2", + "resolved": "https://registry.npmjs.org/@babel/generator/-/generator-7.7.2.tgz", + "integrity": "sha512-WthSArvAjYLz4TcbKOi88me+KmDJdKSlfwwN8CnUYn9jBkzhq0ZEPuBfkAWIvjJ3AdEV1Cf/+eSQTnp3IDJKlQ==", + "dev": true, "requires": { - "@babel/types": "^7.6.0", + "@babel/types": "^7.7.2", "jsesc": "^2.5.1", "lodash": "^4.17.13", - "source-map": "^0.5.0", - "trim-right": "^1.0.1" + "source-map": "^0.5.0" } }, "@babel/helper-annotate-as-pure": { - "version": "7.0.0", - "resolved": "https://registry.npmjs.org/@babel/helper-annotate-as-pure/-/helper-annotate-as-pure-7.0.0.tgz", - "integrity": "sha512-3UYcJUj9kvSLbLbUIfQTqzcy5VX7GRZ/CCDrnOaZorFFM01aXp1+GJwuFGV4NDDoAS+mOUyHcO6UD/RfqOks3Q==", + "version": "7.7.0", + "resolved": "https://registry.npmjs.org/@babel/helper-annotate-as-pure/-/helper-annotate-as-pure-7.7.0.tgz", + "integrity": "sha512-k50CQxMlYTYo+GGyUGFwpxKVtxVJi9yh61sXZji3zYHccK9RYliZGSTOgci85T+r+0VFN2nWbGM04PIqwfrpMg==", + "dev": true, "requires": { - "@babel/types": "^7.0.0" + "@babel/types": "^7.7.0" } }, "@babel/helper-builder-binary-assignment-operator-visitor": { - "version": "7.1.0", - "resolved": "https://registry.npmjs.org/@babel/helper-builder-binary-assignment-operator-visitor/-/helper-builder-binary-assignment-operator-visitor-7.1.0.tgz", - "integrity": "sha512-qNSR4jrmJ8M1VMM9tibvyRAHXQs2PmaksQF7c1CGJNipfe3D8p+wgNwgso/P2A2r2mdgBWAXljNWR0QRZAMW8w==", + "version": "7.7.0", + "resolved": "https://registry.npmjs.org/@babel/helper-builder-binary-assignment-operator-visitor/-/helper-builder-binary-assignment-operator-visitor-7.7.0.tgz", + "integrity": "sha512-Cd8r8zs4RKDwMG/92lpZcnn5WPQ3LAMQbCw42oqUh4s7vsSN5ANUZjMel0OOnxDLq57hoDDbai+ryygYfCTOsw==", + "dev": true, "requires": { - "@babel/helper-explode-assignable-expression": "^7.1.0", - "@babel/types": "^7.0.0" + "@babel/helper-explode-assignable-expression": "^7.7.0", + "@babel/types": "^7.7.0" } }, "@babel/helper-call-delegate": { - "version": "7.4.4", - "resolved": "https://registry.npmjs.org/@babel/helper-call-delegate/-/helper-call-delegate-7.4.4.tgz", - "integrity": "sha512-l79boDFJ8S1c5hvQvG+rc+wHw6IuH7YldmRKsYtpbawsxURu/paVy57FZMomGK22/JckepaikOkY0MoAmdyOlQ==", + "version": "7.7.0", + "resolved": "https://registry.npmjs.org/@babel/helper-call-delegate/-/helper-call-delegate-7.7.0.tgz", + "integrity": "sha512-Su0Mdq7uSSWGZayGMMQ+z6lnL00mMCnGAbO/R0ZO9odIdB/WNU/VfQKqMQU0fdIsxQYbRjDM4BixIa93SQIpvw==", + "dev": true, + "requires": { + "@babel/helper-hoist-variables": "^7.7.0", + "@babel/traverse": "^7.7.0", + "@babel/types": "^7.7.0" + } + }, + "@babel/helper-create-regexp-features-plugin": { + "version": "7.7.2", + "resolved": "https://registry.npmjs.org/@babel/helper-create-regexp-features-plugin/-/helper-create-regexp-features-plugin-7.7.2.tgz", + "integrity": "sha512-pAil/ZixjTlrzNpjx+l/C/wJk002Wo7XbbZ8oujH/AoJ3Juv0iN/UTcPUHXKMFLqsfS0Hy6Aow8M31brUYBlQQ==", + "dev": true, "requires": { - "@babel/helper-hoist-variables": "^7.4.4", - "@babel/traverse": "^7.4.4", - "@babel/types": "^7.4.4" + "@babel/helper-regex": "^7.4.4", + "regexpu-core": "^4.6.0" } }, "@babel/helper-define-map": { - "version": "7.5.5", - "resolved": "https://registry.npmjs.org/@babel/helper-define-map/-/helper-define-map-7.5.5.tgz", - "integrity": "sha512-fTfxx7i0B5NJqvUOBBGREnrqbTxRh7zinBANpZXAVDlsZxYdclDp467G1sQ8VZYMnAURY3RpBUAgOYT9GfzHBg==", + "version": "7.7.0", + "resolved": "https://registry.npmjs.org/@babel/helper-define-map/-/helper-define-map-7.7.0.tgz", + "integrity": "sha512-kPKWPb0dMpZi+ov1hJiwse9dWweZsz3V9rP4KdytnX1E7z3cTNmFGglwklzFPuqIcHLIY3bgKSs4vkwXXdflQA==", + "dev": true, "requires": { - "@babel/helper-function-name": "^7.1.0", - "@babel/types": "^7.5.5", + "@babel/helper-function-name": "^7.7.0", + "@babel/types": "^7.7.0", "lodash": "^4.17.13" } }, "@babel/helper-explode-assignable-expression": { - "version": "7.1.0", - "resolved": "https://registry.npmjs.org/@babel/helper-explode-assignable-expression/-/helper-explode-assignable-expression-7.1.0.tgz", - "integrity": "sha512-NRQpfHrJ1msCHtKjbzs9YcMmJZOg6mQMmGRB+hbamEdG5PNpaSm95275VD92DvJKuyl0s2sFiDmMZ+EnnvufqA==", + "version": "7.7.0", + "resolved": "https://registry.npmjs.org/@babel/helper-explode-assignable-expression/-/helper-explode-assignable-expression-7.7.0.tgz", + "integrity": "sha512-CDs26w2shdD1urNUAji2RJXyBFCaR+iBEGnFz3l7maizMkQe3saVw9WtjG1tz8CwbjvlFnaSLVhgnu1SWaherg==", + "dev": true, "requires": { - "@babel/traverse": "^7.1.0", - "@babel/types": "^7.0.0" + "@babel/traverse": "^7.7.0", + "@babel/types": "^7.7.0" } }, "@babel/helper-function-name": { - "version": "7.1.0", - "resolved": "https://registry.npmjs.org/@babel/helper-function-name/-/helper-function-name-7.1.0.tgz", - "integrity": "sha512-A95XEoCpb3TO+KZzJ4S/5uW5fNe26DjBGqf1o9ucyLyCmi1dXq/B3c8iaWTfBk3VvetUxl16e8tIrd5teOCfGw==", + "version": "7.7.0", + "resolved": "https://registry.npmjs.org/@babel/helper-function-name/-/helper-function-name-7.7.0.tgz", + "integrity": "sha512-tDsJgMUAP00Ugv8O2aGEua5I2apkaQO7lBGUq1ocwN3G23JE5Dcq0uh3GvFTChPa4b40AWiAsLvCZOA2rdnQ7Q==", + "dev": true, "requires": { - "@babel/helper-get-function-arity": "^7.0.0", - "@babel/template": "^7.1.0", - "@babel/types": "^7.0.0" + "@babel/helper-get-function-arity": "^7.7.0", + "@babel/template": "^7.7.0", + "@babel/types": "^7.7.0" } }, "@babel/helper-get-function-arity": { - "version": "7.0.0", - "resolved": "https://registry.npmjs.org/@babel/helper-get-function-arity/-/helper-get-function-arity-7.0.0.tgz", - "integrity": "sha512-r2DbJeg4svYvt3HOS74U4eWKsUAMRH01Z1ds1zx8KNTPtpTL5JAsdFv8BNyOpVqdFhHkkRDIg5B4AsxmkjAlmQ==", + "version": "7.7.0", + "resolved": "https://registry.npmjs.org/@babel/helper-get-function-arity/-/helper-get-function-arity-7.7.0.tgz", + "integrity": "sha512-tLdojOTz4vWcEnHWHCuPN5P85JLZWbm5Fx5ZsMEMPhF3Uoe3O7awrbM2nQ04bDOUToH/2tH/ezKEOR8zEYzqyw==", + "dev": true, "requires": { - "@babel/types": "^7.0.0" + "@babel/types": "^7.7.0" } }, "@babel/helper-hoist-variables": { - "version": "7.4.4", - "resolved": "https://registry.npmjs.org/@babel/helper-hoist-variables/-/helper-hoist-variables-7.4.4.tgz", - "integrity": "sha512-VYk2/H/BnYbZDDg39hr3t2kKyifAm1W6zHRfhx8jGjIHpQEBv9dry7oQ2f3+J703TLu69nYdxsovl0XYfcnK4w==", + "version": "7.7.0", + "resolved": "https://registry.npmjs.org/@babel/helper-hoist-variables/-/helper-hoist-variables-7.7.0.tgz", + "integrity": "sha512-LUe/92NqsDAkJjjCEWkNe+/PcpnisvnqdlRe19FahVapa4jndeuJ+FBiTX1rcAKWKcJGE+C3Q3tuEuxkSmCEiQ==", + "dev": true, "requires": { - "@babel/types": "^7.4.4" + "@babel/types": "^7.7.0" } }, "@babel/helper-member-expression-to-functions": { - "version": "7.5.5", - "resolved": "https://registry.npmjs.org/@babel/helper-member-expression-to-functions/-/helper-member-expression-to-functions-7.5.5.tgz", - "integrity": "sha512-5qZ3D1uMclSNqYcXqiHoA0meVdv+xUEex9em2fqMnrk/scphGlGgg66zjMrPJESPwrFJ6sbfFQYUSa0Mz7FabA==", + "version": "7.7.0", + "resolved": "https://registry.npmjs.org/@babel/helper-member-expression-to-functions/-/helper-member-expression-to-functions-7.7.0.tgz", + "integrity": "sha512-QaCZLO2RtBcmvO/ekOLp8p7R5X2JriKRizeDpm5ChATAFWrrYDcDxPuCIBXKyBjY+i1vYSdcUTMIb8psfxHDPA==", + "dev": true, "requires": { - "@babel/types": "^7.5.5" + "@babel/types": "^7.7.0" } }, "@babel/helper-module-imports": { - "version": "7.0.0", - "resolved": "https://registry.npmjs.org/@babel/helper-module-imports/-/helper-module-imports-7.0.0.tgz", - "integrity": "sha512-aP/hlLq01DWNEiDg4Jn23i+CXxW/owM4WpDLFUbpjxe4NS3BhLVZQ5i7E0ZrxuQ/vwekIeciyamgB1UIYxxM6A==", + "version": "7.7.0", + "resolved": "https://registry.npmjs.org/@babel/helper-module-imports/-/helper-module-imports-7.7.0.tgz", + "integrity": "sha512-Dv3hLKIC1jyfTkClvyEkYP2OlkzNvWs5+Q8WgPbxM5LMeorons7iPP91JM+DU7tRbhqA1ZeooPaMFvQrn23RHw==", + "dev": true, "requires": { - "@babel/types": "^7.0.0" + "@babel/types": "^7.7.0" } }, "@babel/helper-module-transforms": { - "version": "7.5.5", - "resolved": "https://registry.npmjs.org/@babel/helper-module-transforms/-/helper-module-transforms-7.5.5.tgz", - "integrity": "sha512-jBeCvETKuJqeiaCdyaheF40aXnnU1+wkSiUs/IQg3tB85up1LyL8x77ClY8qJpuRJUcXQo+ZtdNESmZl4j56Pw==", - "requires": { - "@babel/helper-module-imports": "^7.0.0", - "@babel/helper-simple-access": "^7.1.0", - "@babel/helper-split-export-declaration": "^7.4.4", - "@babel/template": "^7.4.4", - "@babel/types": "^7.5.5", + "version": "7.7.0", + "resolved": "https://registry.npmjs.org/@babel/helper-module-transforms/-/helper-module-transforms-7.7.0.tgz", + "integrity": "sha512-rXEefBuheUYQyX4WjV19tuknrJFwyKw0HgzRwbkyTbB+Dshlq7eqkWbyjzToLrMZk/5wKVKdWFluiAsVkHXvuQ==", + "dev": true, + "requires": { + "@babel/helper-module-imports": "^7.7.0", + "@babel/helper-simple-access": "^7.7.0", + "@babel/helper-split-export-declaration": "^7.7.0", + "@babel/template": "^7.7.0", + "@babel/types": "^7.7.0", "lodash": "^4.17.13" } }, "@babel/helper-optimise-call-expression": { - "version": "7.0.0", - "resolved": "https://registry.npmjs.org/@babel/helper-optimise-call-expression/-/helper-optimise-call-expression-7.0.0.tgz", - "integrity": "sha512-u8nd9NQePYNQV8iPWu/pLLYBqZBa4ZaY1YWRFMuxrid94wKI1QNt67NEZ7GAe5Kc/0LLScbim05xZFWkAdrj9g==", + "version": "7.7.0", + "resolved": "https://registry.npmjs.org/@babel/helper-optimise-call-expression/-/helper-optimise-call-expression-7.7.0.tgz", + "integrity": "sha512-48TeqmbazjNU/65niiiJIJRc5JozB8acui1OS7bSd6PgxfuovWsvjfWSzlgx+gPFdVveNzUdpdIg5l56Pl5jqg==", + "dev": true, "requires": { - "@babel/types": "^7.0.0" + "@babel/types": "^7.7.0" } }, "@babel/helper-plugin-utils": { "version": "7.0.0", "resolved": "https://registry.npmjs.org/@babel/helper-plugin-utils/-/helper-plugin-utils-7.0.0.tgz", - "integrity": "sha512-CYAOUCARwExnEixLdB6sDm2dIJ/YgEAKDM1MOeMeZu9Ld/bDgVo8aiWrXwcY7OBh+1Ea2uUcVRcxKk0GJvW7QA==" + "integrity": "sha512-CYAOUCARwExnEixLdB6sDm2dIJ/YgEAKDM1MOeMeZu9Ld/bDgVo8aiWrXwcY7OBh+1Ea2uUcVRcxKk0GJvW7QA==", + "dev": true }, "@babel/helper-regex": { "version": "7.5.5", "resolved": "https://registry.npmjs.org/@babel/helper-regex/-/helper-regex-7.5.5.tgz", "integrity": "sha512-CkCYQLkfkiugbRDO8eZn6lRuR8kzZoGXCg3149iTk5se7g6qykSpy3+hELSwquhu+TgHn8nkLiBwHvNX8Hofcw==", + "dev": true, "requires": { "lodash": "^4.17.13" } }, "@babel/helper-remap-async-to-generator": { - "version": "7.1.0", - "resolved": "https://registry.npmjs.org/@babel/helper-remap-async-to-generator/-/helper-remap-async-to-generator-7.1.0.tgz", - "integrity": "sha512-3fOK0L+Fdlg8S5al8u/hWE6vhufGSn0bN09xm2LXMy//REAF8kDCrYoOBKYmA8m5Nom+sV9LyLCwrFynA8/slg==", + "version": "7.7.0", + "resolved": "https://registry.npmjs.org/@babel/helper-remap-async-to-generator/-/helper-remap-async-to-generator-7.7.0.tgz", + "integrity": "sha512-pHx7RN8X0UNHPB/fnuDnRXVZ316ZigkO8y8D835JlZ2SSdFKb6yH9MIYRU4fy/KPe5sPHDFOPvf8QLdbAGGiyw==", + "dev": true, "requires": { - "@babel/helper-annotate-as-pure": "^7.0.0", - "@babel/helper-wrap-function": "^7.1.0", - "@babel/template": "^7.1.0", - "@babel/traverse": "^7.1.0", - "@babel/types": "^7.0.0" + "@babel/helper-annotate-as-pure": "^7.7.0", + "@babel/helper-wrap-function": "^7.7.0", + "@babel/template": "^7.7.0", + "@babel/traverse": "^7.7.0", + "@babel/types": "^7.7.0" } }, "@babel/helper-replace-supers": { - "version": "7.5.5", - "resolved": "https://registry.npmjs.org/@babel/helper-replace-supers/-/helper-replace-supers-7.5.5.tgz", - "integrity": "sha512-XvRFWrNnlsow2u7jXDuH4jDDctkxbS7gXssrP4q2nUD606ukXHRvydj346wmNg+zAgpFx4MWf4+usfC93bElJg==", + "version": "7.7.0", + "resolved": "https://registry.npmjs.org/@babel/helper-replace-supers/-/helper-replace-supers-7.7.0.tgz", + "integrity": "sha512-5ALYEul5V8xNdxEeWvRsBzLMxQksT7MaStpxjJf9KsnLxpAKBtfw5NeMKZJSYDa0lKdOcy0g+JT/f5mPSulUgg==", + "dev": true, "requires": { - "@babel/helper-member-expression-to-functions": "^7.5.5", - "@babel/helper-optimise-call-expression": "^7.0.0", - "@babel/traverse": "^7.5.5", - "@babel/types": "^7.5.5" + "@babel/helper-member-expression-to-functions": "^7.7.0", + "@babel/helper-optimise-call-expression": "^7.7.0", + "@babel/traverse": "^7.7.0", + "@babel/types": "^7.7.0" } }, "@babel/helper-simple-access": { - "version": "7.1.0", - "resolved": "https://registry.npmjs.org/@babel/helper-simple-access/-/helper-simple-access-7.1.0.tgz", - "integrity": "sha512-Vk+78hNjRbsiu49zAPALxTb+JUQCz1aolpd8osOF16BGnLtseD21nbHgLPGUwrXEurZgiCOUmvs3ExTu4F5x6w==", + "version": "7.7.0", + "resolved": "https://registry.npmjs.org/@babel/helper-simple-access/-/helper-simple-access-7.7.0.tgz", + "integrity": "sha512-AJ7IZD7Eem3zZRuj5JtzFAptBw7pMlS3y8Qv09vaBWoFsle0d1kAn5Wq6Q9MyBXITPOKnxwkZKoAm4bopmv26g==", + "dev": true, "requires": { - "@babel/template": "^7.1.0", - "@babel/types": "^7.0.0" + "@babel/template": "^7.7.0", + "@babel/types": "^7.7.0" } }, "@babel/helper-split-export-declaration": { - "version": "7.4.4", - "resolved": "https://registry.npmjs.org/@babel/helper-split-export-declaration/-/helper-split-export-declaration-7.4.4.tgz", - "integrity": "sha512-Ro/XkzLf3JFITkW6b+hNxzZ1n5OQ80NvIUdmHspih1XAhtN3vPTuUFT4eQnela+2MaZ5ulH+iyP513KJrxbN7Q==", + "version": "7.7.0", + "resolved": "https://registry.npmjs.org/@babel/helper-split-export-declaration/-/helper-split-export-declaration-7.7.0.tgz", + "integrity": "sha512-HgYSI8rH08neWlAH3CcdkFg9qX9YsZysZI5GD8LjhQib/mM0jGOZOVkoUiiV2Hu978fRtjtsGsW6w0pKHUWtqA==", + "dev": true, "requires": { - "@babel/types": "^7.4.4" + "@babel/types": "^7.7.0" } }, "@babel/helper-wrap-function": { - "version": "7.2.0", - "resolved": "https://registry.npmjs.org/@babel/helper-wrap-function/-/helper-wrap-function-7.2.0.tgz", - "integrity": "sha512-o9fP1BZLLSrYlxYEYyl2aS+Flun5gtjTIG8iln+XuEzQTs0PLagAGSXUcqruJwD5fM48jzIEggCKpIfWTcR7pQ==", + "version": "7.7.0", + "resolved": "https://registry.npmjs.org/@babel/helper-wrap-function/-/helper-wrap-function-7.7.0.tgz", + "integrity": "sha512-sd4QjeMgQqzshSjecZjOp8uKfUtnpmCyQhKQrVJBBgeHAB/0FPi33h3AbVlVp07qQtMD4QgYSzaMI7VwncNK/w==", + "dev": true, "requires": { - "@babel/helper-function-name": "^7.1.0", - "@babel/template": "^7.1.0", - "@babel/traverse": "^7.1.0", - "@babel/types": "^7.2.0" + "@babel/helper-function-name": "^7.7.0", + "@babel/template": "^7.7.0", + "@babel/traverse": "^7.7.0", + "@babel/types": "^7.7.0" } }, "@babel/helpers": { - "version": "7.6.0", - "resolved": "https://registry.npmjs.org/@babel/helpers/-/helpers-7.6.0.tgz", - "integrity": "sha512-W9kao7OBleOjfXtFGgArGRX6eCP0UEcA2ZWEWNkJdRZnHhW4eEbeswbG3EwaRsnQUAEGWYgMq1HsIXuNNNy2eQ==", + "version": "7.7.0", + "resolved": "https://registry.npmjs.org/@babel/helpers/-/helpers-7.7.0.tgz", + "integrity": "sha512-VnNwL4YOhbejHb7x/b5F39Zdg5vIQpUUNzJwx0ww1EcVRt41bbGRZWhAURrfY32T5zTT3qwNOQFWpn+P0i0a2g==", + "dev": true, "requires": { - "@babel/template": "^7.6.0", - "@babel/traverse": "^7.6.0", - "@babel/types": "^7.6.0" + "@babel/template": "^7.7.0", + "@babel/traverse": "^7.7.0", + "@babel/types": "^7.7.0" } }, "@babel/highlight": { "version": "7.5.0", "resolved": "https://registry.npmjs.org/@babel/highlight/-/highlight-7.5.0.tgz", "integrity": "sha512-7dV4eu9gBxoM0dAnj/BCFDW9LFU0zvTrkq0ugM7pnHEgguOEeOz1so2ZghEdzviYzQEED0r4EAgpsBChKy1TRQ==", + "dev": true, "requires": { "chalk": "^2.0.0", "esutils": "^2.0.2", @@ -237,24 +312,27 @@ } }, "@babel/parser": { - "version": "7.6.0", - "resolved": "https://registry.npmjs.org/@babel/parser/-/parser-7.6.0.tgz", - "integrity": "sha512-+o2q111WEx4srBs7L9eJmcwi655eD8sXniLqMB93TBK9GrNzGrxDWSjiqz2hLU0Ha8MTXFIP0yd9fNdP+m43ZQ==" + "version": "7.7.3", + "resolved": "https://registry.npmjs.org/@babel/parser/-/parser-7.7.3.tgz", + "integrity": "sha512-bqv+iCo9i+uLVbI0ILzKkvMorqxouI+GbV13ivcARXn9NNEabi2IEz912IgNpT/60BNXac5dgcfjb94NjsF33A==", + "dev": true }, "@babel/plugin-proposal-async-generator-functions": { - "version": "7.2.0", - "resolved": "https://registry.npmjs.org/@babel/plugin-proposal-async-generator-functions/-/plugin-proposal-async-generator-functions-7.2.0.tgz", - "integrity": "sha512-+Dfo/SCQqrwx48ptLVGLdE39YtWRuKc/Y9I5Fy0P1DDBB9lsAHpjcEJQt+4IifuSOSTLBKJObJqMvaO1pIE8LQ==", + "version": "7.7.0", + "resolved": "https://registry.npmjs.org/@babel/plugin-proposal-async-generator-functions/-/plugin-proposal-async-generator-functions-7.7.0.tgz", + "integrity": "sha512-ot/EZVvf3mXtZq0Pd0+tSOfGWMizqmOohXmNZg6LNFjHOV+wOPv7BvVYh8oPR8LhpIP3ye8nNooKL50YRWxpYA==", + "dev": true, "requires": { "@babel/helper-plugin-utils": "^7.0.0", - "@babel/helper-remap-async-to-generator": "^7.1.0", + "@babel/helper-remap-async-to-generator": "^7.7.0", "@babel/plugin-syntax-async-generators": "^7.2.0" } }, "@babel/plugin-proposal-dynamic-import": { - "version": "7.5.0", - "resolved": "https://registry.npmjs.org/@babel/plugin-proposal-dynamic-import/-/plugin-proposal-dynamic-import-7.5.0.tgz", - "integrity": "sha512-x/iMjggsKTFHYC6g11PL7Qy58IK8H5zqfm9e6hu4z1iH2IRyAp9u9dL80zA6R76yFovETFLKz2VJIC2iIPBuFw==", + "version": "7.7.0", + "resolved": "https://registry.npmjs.org/@babel/plugin-proposal-dynamic-import/-/plugin-proposal-dynamic-import-7.7.0.tgz", + "integrity": "sha512-7poL3Xi+QFPC7sGAzEIbXUyYzGJwbc2+gSD0AkiC5k52kH2cqHdqxm5hNFfLW3cRSTcx9bN0Fl7/6zWcLLnKAQ==", + "dev": true, "requires": { "@babel/helper-plugin-utils": "^7.0.0", "@babel/plugin-syntax-dynamic-import": "^7.2.0" @@ -264,15 +342,17 @@ "version": "7.2.0", "resolved": "https://registry.npmjs.org/@babel/plugin-proposal-json-strings/-/plugin-proposal-json-strings-7.2.0.tgz", "integrity": "sha512-MAFV1CA/YVmYwZG0fBQyXhmj0BHCB5egZHCKWIFVv/XCxAeVGIHfos3SwDck4LvCllENIAg7xMKOG5kH0dzyUg==", + "dev": true, "requires": { "@babel/helper-plugin-utils": "^7.0.0", "@babel/plugin-syntax-json-strings": "^7.2.0" } }, "@babel/plugin-proposal-object-rest-spread": { - "version": "7.5.5", - "resolved": "https://registry.npmjs.org/@babel/plugin-proposal-object-rest-spread/-/plugin-proposal-object-rest-spread-7.5.5.tgz", - "integrity": "sha512-F2DxJJSQ7f64FyTVl5cw/9MWn6naXGdk3Q3UhDbFEEHv+EilCPoeRD3Zh/Utx1CJz4uyKlQ4uH+bJPbEhMV7Zw==", + "version": "7.6.2", + "resolved": "https://registry.npmjs.org/@babel/plugin-proposal-object-rest-spread/-/plugin-proposal-object-rest-spread-7.6.2.tgz", + "integrity": "sha512-LDBXlmADCsMZV1Y9OQwMc0MyGZ8Ta/zlD9N67BfQT8uYwkRswiu2hU6nJKrjrt/58aH/vqfQlR/9yId/7A2gWw==", + "dev": true, "requires": { "@babel/helper-plugin-utils": "^7.0.0", "@babel/plugin-syntax-object-rest-spread": "^7.2.0" @@ -282,25 +362,27 @@ "version": "7.2.0", "resolved": "https://registry.npmjs.org/@babel/plugin-proposal-optional-catch-binding/-/plugin-proposal-optional-catch-binding-7.2.0.tgz", "integrity": "sha512-mgYj3jCcxug6KUcX4OBoOJz3CMrwRfQELPQ5560F70YQUBZB7uac9fqaWamKR1iWUzGiK2t0ygzjTScZnVz75g==", + "dev": true, "requires": { "@babel/helper-plugin-utils": "^7.0.0", "@babel/plugin-syntax-optional-catch-binding": "^7.2.0" } }, "@babel/plugin-proposal-unicode-property-regex": { - "version": "7.4.4", - "resolved": "https://registry.npmjs.org/@babel/plugin-proposal-unicode-property-regex/-/plugin-proposal-unicode-property-regex-7.4.4.tgz", - "integrity": "sha512-j1NwnOqMG9mFUOH58JTFsA/+ZYzQLUZ/drqWUqxCYLGeu2JFZL8YrNC9hBxKmWtAuOCHPcRpgv7fhap09Fb4kA==", + "version": "7.7.0", + "resolved": "https://registry.npmjs.org/@babel/plugin-proposal-unicode-property-regex/-/plugin-proposal-unicode-property-regex-7.7.0.tgz", + "integrity": "sha512-mk34H+hp7kRBWJOOAR0ZMGCydgKMD4iN9TpDRp3IIcbunltxEY89XSimc6WbtSLCDrwcdy/EEw7h5CFCzxTchw==", + "dev": true, "requires": { - "@babel/helper-plugin-utils": "^7.0.0", - "@babel/helper-regex": "^7.4.4", - "regexpu-core": "^4.5.4" + "@babel/helper-create-regexp-features-plugin": "^7.7.0", + "@babel/helper-plugin-utils": "^7.0.0" } }, "@babel/plugin-syntax-async-generators": { "version": "7.2.0", "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-async-generators/-/plugin-syntax-async-generators-7.2.0.tgz", "integrity": "sha512-1ZrIRBv2t0GSlcwVoQ6VgSLpLgiN/FVQUzt9znxo7v2Ov4jJrs8RY8tv0wvDmFN3qIdMKWrmMMW6yZ0G19MfGg==", + "dev": true, "requires": { "@babel/helper-plugin-utils": "^7.0.0" } @@ -309,6 +391,7 @@ "version": "7.2.0", "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-dynamic-import/-/plugin-syntax-dynamic-import-7.2.0.tgz", "integrity": "sha512-mVxuJ0YroI/h/tbFTPGZR8cv6ai+STMKNBq0f8hFxsxWjl94qqhsb+wXbpNMDPU3cfR1TIsVFzU3nXyZMqyK4w==", + "dev": true, "requires": { "@babel/helper-plugin-utils": "^7.0.0" } @@ -317,6 +400,7 @@ "version": "7.2.0", "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-json-strings/-/plugin-syntax-json-strings-7.2.0.tgz", "integrity": "sha512-5UGYnMSLRE1dqqZwug+1LISpA403HzlSfsg6P9VXU6TBjcSHeNlw4DxDx7LgpF+iKZoOG/+uzqoRHTdcUpiZNg==", + "dev": true, "requires": { "@babel/helper-plugin-utils": "^7.0.0" } @@ -325,6 +409,7 @@ "version": "7.2.0", "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-object-rest-spread/-/plugin-syntax-object-rest-spread-7.2.0.tgz", "integrity": "sha512-t0JKGgqk2We+9may3t0xDdmneaXmyxq0xieYcKHxIsrJO64n1OiMWNUtc5gQK1PA0NpdCRrtZp4z+IUaKugrSA==", + "dev": true, "requires": { "@babel/helper-plugin-utils": "^7.0.0" } @@ -333,6 +418,16 @@ "version": "7.2.0", "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-optional-catch-binding/-/plugin-syntax-optional-catch-binding-7.2.0.tgz", "integrity": "sha512-bDe4xKNhb0LI7IvZHiA13kff0KEfaGX/Hv4lMA9+7TEc63hMNvfKo6ZFpXhKuEp+II/q35Gc4NoMeDZyaUbj9w==", + "dev": true, + "requires": { + "@babel/helper-plugin-utils": "^7.0.0" + } + }, + "@babel/plugin-syntax-top-level-await": { + "version": "7.7.0", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-top-level-await/-/plugin-syntax-top-level-await-7.7.0.tgz", + "integrity": "sha512-hi8FUNiFIY1fnUI2n1ViB1DR0R4QeK4iHcTlW6aJkrPoTdb8Rf1EMQ6GT3f67DDkYyWgew9DFoOZ6gOoEsdzTA==", + "dev": true, "requires": { "@babel/helper-plugin-utils": "^7.0.0" } @@ -341,49 +436,54 @@ "version": "7.2.0", "resolved": "https://registry.npmjs.org/@babel/plugin-transform-arrow-functions/-/plugin-transform-arrow-functions-7.2.0.tgz", "integrity": "sha512-ER77Cax1+8/8jCB9fo4Ud161OZzWN5qawi4GusDuRLcDbDG+bIGYY20zb2dfAFdTRGzrfq2xZPvF0R64EHnimg==", + "dev": true, "requires": { "@babel/helper-plugin-utils": "^7.0.0" } }, "@babel/plugin-transform-async-to-generator": { - "version": "7.5.0", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-async-to-generator/-/plugin-transform-async-to-generator-7.5.0.tgz", - "integrity": "sha512-mqvkzwIGkq0bEF1zLRRiTdjfomZJDV33AH3oQzHVGkI2VzEmXLpKKOBvEVaFZBJdN0XTyH38s9j/Kiqr68dggg==", + "version": "7.7.0", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-async-to-generator/-/plugin-transform-async-to-generator-7.7.0.tgz", + "integrity": "sha512-vLI2EFLVvRBL3d8roAMqtVY0Bm9C1QzLkdS57hiKrjUBSqsQYrBsMCeOg/0KK7B0eK9V71J5mWcha9yyoI2tZw==", + "dev": true, "requires": { - "@babel/helper-module-imports": "^7.0.0", + "@babel/helper-module-imports": "^7.7.0", "@babel/helper-plugin-utils": "^7.0.0", - "@babel/helper-remap-async-to-generator": "^7.1.0" + "@babel/helper-remap-async-to-generator": "^7.7.0" } }, "@babel/plugin-transform-block-scoped-functions": { "version": "7.2.0", "resolved": "https://registry.npmjs.org/@babel/plugin-transform-block-scoped-functions/-/plugin-transform-block-scoped-functions-7.2.0.tgz", "integrity": "sha512-ntQPR6q1/NKuphly49+QiQiTN0O63uOwjdD6dhIjSWBI5xlrbUFh720TIpzBhpnrLfv2tNH/BXvLIab1+BAI0w==", + "dev": true, "requires": { "@babel/helper-plugin-utils": "^7.0.0" } }, "@babel/plugin-transform-block-scoping": { - "version": "7.6.0", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-block-scoping/-/plugin-transform-block-scoping-7.6.0.tgz", - "integrity": "sha512-tIt4E23+kw6TgL/edACZwP1OUKrjOTyMrFMLoT5IOFrfMRabCgekjqFd5o6PaAMildBu46oFkekIdMuGkkPEpA==", + "version": "7.6.3", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-block-scoping/-/plugin-transform-block-scoping-7.6.3.tgz", + "integrity": "sha512-7hvrg75dubcO3ZI2rjYTzUrEuh1E9IyDEhhB6qfcooxhDA33xx2MasuLVgdxzcP6R/lipAC6n9ub9maNW6RKdw==", + "dev": true, "requires": { "@babel/helper-plugin-utils": "^7.0.0", "lodash": "^4.17.13" } }, "@babel/plugin-transform-classes": { - "version": "7.5.5", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-classes/-/plugin-transform-classes-7.5.5.tgz", - "integrity": "sha512-U2htCNK/6e9K7jGyJ++1p5XRU+LJjrwtoiVn9SzRlDT2KubcZ11OOwy3s24TjHxPgxNwonCYP7U2K51uVYCMDg==", - "requires": { - "@babel/helper-annotate-as-pure": "^7.0.0", - "@babel/helper-define-map": "^7.5.5", - "@babel/helper-function-name": "^7.1.0", - "@babel/helper-optimise-call-expression": "^7.0.0", + "version": "7.7.0", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-classes/-/plugin-transform-classes-7.7.0.tgz", + "integrity": "sha512-/b3cKIZwGeUesZheU9jNYcwrEA7f/Bo4IdPmvp7oHgvks2majB5BoT5byAql44fiNQYOPzhk2w8DbgfuafkMoA==", + "dev": true, + "requires": { + "@babel/helper-annotate-as-pure": "^7.7.0", + "@babel/helper-define-map": "^7.7.0", + "@babel/helper-function-name": "^7.7.0", + "@babel/helper-optimise-call-expression": "^7.7.0", "@babel/helper-plugin-utils": "^7.0.0", - "@babel/helper-replace-supers": "^7.5.5", - "@babel/helper-split-export-declaration": "^7.4.4", + "@babel/helper-replace-supers": "^7.7.0", + "@babel/helper-split-export-declaration": "^7.7.0", "globals": "^11.1.0" } }, @@ -391,6 +491,7 @@ "version": "7.2.0", "resolved": "https://registry.npmjs.org/@babel/plugin-transform-computed-properties/-/plugin-transform-computed-properties-7.2.0.tgz", "integrity": "sha512-kP/drqTxY6Xt3NNpKiMomfgkNn4o7+vKxK2DDKcBG9sHj51vHqMBGy8wbDS/J4lMxnqs153/T3+DmCEAkC5cpA==", + "dev": true, "requires": { "@babel/helper-plugin-utils": "^7.0.0" } @@ -399,24 +500,26 @@ "version": "7.6.0", "resolved": "https://registry.npmjs.org/@babel/plugin-transform-destructuring/-/plugin-transform-destructuring-7.6.0.tgz", "integrity": "sha512-2bGIS5P1v4+sWTCnKNDZDxbGvEqi0ijeqM/YqHtVGrvG2y0ySgnEEhXErvE9dA0bnIzY9bIzdFK0jFA46ASIIQ==", + "dev": true, "requires": { "@babel/helper-plugin-utils": "^7.0.0" } }, "@babel/plugin-transform-dotall-regex": { - "version": "7.4.4", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-dotall-regex/-/plugin-transform-dotall-regex-7.4.4.tgz", - "integrity": "sha512-P05YEhRc2h53lZDjRPk/OektxCVevFzZs2Gfjd545Wde3k+yFDbXORgl2e0xpbq8mLcKJ7Idss4fAg0zORN/zg==", + "version": "7.7.0", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-dotall-regex/-/plugin-transform-dotall-regex-7.7.0.tgz", + "integrity": "sha512-3QQlF7hSBnSuM1hQ0pS3pmAbWLax/uGNCbPBND9y+oJ4Y776jsyujG2k0Sn2Aj2a0QwVOiOFL5QVPA7spjvzSA==", + "dev": true, "requires": { - "@babel/helper-plugin-utils": "^7.0.0", - "@babel/helper-regex": "^7.4.4", - "regexpu-core": "^4.5.4" + "@babel/helper-create-regexp-features-plugin": "^7.7.0", + "@babel/helper-plugin-utils": "^7.0.0" } }, "@babel/plugin-transform-duplicate-keys": { "version": "7.5.0", "resolved": "https://registry.npmjs.org/@babel/plugin-transform-duplicate-keys/-/plugin-transform-duplicate-keys-7.5.0.tgz", "integrity": "sha512-igcziksHizyQPlX9gfSjHkE2wmoCH3evvD2qR5w29/Dk0SMKE/eOI7f1HhBdNhR/zxJDqrgpoDTq5YSLH/XMsQ==", + "dev": true, "requires": { "@babel/helper-plugin-utils": "^7.0.0" } @@ -425,6 +528,7 @@ "version": "7.2.0", "resolved": "https://registry.npmjs.org/@babel/plugin-transform-exponentiation-operator/-/plugin-transform-exponentiation-operator-7.2.0.tgz", "integrity": "sha512-umh4hR6N7mu4Elq9GG8TOu9M0bakvlsREEC+ialrQN6ABS4oDQ69qJv1VtR3uxlKMCQMCvzk7vr17RHKcjx68A==", + "dev": true, "requires": { "@babel/helper-builder-binary-assignment-operator-visitor": "^7.1.0", "@babel/helper-plugin-utils": "^7.0.0" @@ -434,16 +538,18 @@ "version": "7.4.4", "resolved": "https://registry.npmjs.org/@babel/plugin-transform-for-of/-/plugin-transform-for-of-7.4.4.tgz", "integrity": "sha512-9T/5Dlr14Z9TIEXLXkt8T1DU7F24cbhwhMNUziN3hB1AXoZcdzPcTiKGRn/6iOymDqtTKWnr/BtRKN9JwbKtdQ==", + "dev": true, "requires": { "@babel/helper-plugin-utils": "^7.0.0" } }, "@babel/plugin-transform-function-name": { - "version": "7.4.4", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-function-name/-/plugin-transform-function-name-7.4.4.tgz", - "integrity": "sha512-iU9pv7U+2jC9ANQkKeNF6DrPy4GBa4NWQtl6dHB4Pb3izX2JOEvDTFarlNsBj/63ZEzNNIAMs3Qw4fNCcSOXJA==", + "version": "7.7.0", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-function-name/-/plugin-transform-function-name-7.7.0.tgz", + "integrity": "sha512-P5HKu0d9+CzZxP5jcrWdpe7ZlFDe24bmqP6a6X8BHEBl/eizAsY8K6LX8LASZL0Jxdjm5eEfzp+FIrxCm/p8bA==", + "dev": true, "requires": { - "@babel/helper-function-name": "^7.1.0", + "@babel/helper-function-name": "^7.7.0", "@babel/helper-plugin-utils": "^7.0.0" } }, @@ -451,6 +557,7 @@ "version": "7.2.0", "resolved": "https://registry.npmjs.org/@babel/plugin-transform-literals/-/plugin-transform-literals-7.2.0.tgz", "integrity": "sha512-2ThDhm4lI4oV7fVQ6pNNK+sx+c/GM5/SaML0w/r4ZB7sAneD/piDJtwdKlNckXeyGK7wlwg2E2w33C/Hh+VFCg==", + "dev": true, "requires": { "@babel/helper-plugin-utils": "^7.0.0" } @@ -459,6 +566,7 @@ "version": "7.2.0", "resolved": "https://registry.npmjs.org/@babel/plugin-transform-member-expression-literals/-/plugin-transform-member-expression-literals-7.2.0.tgz", "integrity": "sha512-HiU3zKkSU6scTidmnFJ0bMX8hz5ixC93b4MHMiYebmk2lUVNGOboPsqQvx5LzooihijUoLR/v7Nc1rbBtnc7FA==", + "dev": true, "requires": { "@babel/helper-plugin-utils": "^7.0.0" } @@ -467,6 +575,7 @@ "version": "7.5.0", "resolved": "https://registry.npmjs.org/@babel/plugin-transform-modules-amd/-/plugin-transform-modules-amd-7.5.0.tgz", "integrity": "sha512-n20UsQMKnWrltocZZm24cRURxQnWIvsABPJlw/fvoy9c6AgHZzoelAIzajDHAQrDpuKFFPPcFGd7ChsYuIUMpg==", + "dev": true, "requires": { "@babel/helper-module-transforms": "^7.1.0", "@babel/helper-plugin-utils": "^7.0.0", @@ -474,47 +583,52 @@ } }, "@babel/plugin-transform-modules-commonjs": { - "version": "7.6.0", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-modules-commonjs/-/plugin-transform-modules-commonjs-7.6.0.tgz", - "integrity": "sha512-Ma93Ix95PNSEngqomy5LSBMAQvYKVe3dy+JlVJSHEXZR5ASL9lQBedMiCyVtmTLraIDVRE3ZjTZvmXXD2Ozw3g==", + "version": "7.7.0", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-modules-commonjs/-/plugin-transform-modules-commonjs-7.7.0.tgz", + "integrity": "sha512-KEMyWNNWnjOom8vR/1+d+Ocz/mILZG/eyHHO06OuBQ2aNhxT62fr4y6fGOplRx+CxCSp3IFwesL8WdINfY/3kg==", + "dev": true, "requires": { - "@babel/helper-module-transforms": "^7.4.4", + "@babel/helper-module-transforms": "^7.7.0", "@babel/helper-plugin-utils": "^7.0.0", - "@babel/helper-simple-access": "^7.1.0", + "@babel/helper-simple-access": "^7.7.0", "babel-plugin-dynamic-import-node": "^2.3.0" } }, "@babel/plugin-transform-modules-systemjs": { - "version": "7.5.0", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-modules-systemjs/-/plugin-transform-modules-systemjs-7.5.0.tgz", - "integrity": "sha512-Q2m56tyoQWmuNGxEtUyeEkm6qJYFqs4c+XyXH5RAuYxObRNz9Zgj/1g2GMnjYp2EUyEy7YTrxliGCXzecl/vJg==", + "version": "7.7.0", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-modules-systemjs/-/plugin-transform-modules-systemjs-7.7.0.tgz", + "integrity": "sha512-ZAuFgYjJzDNv77AjXRqzQGlQl4HdUM6j296ee4fwKVZfhDR9LAGxfvXjBkb06gNETPnN0sLqRm9Gxg4wZH6dXg==", + "dev": true, "requires": { - "@babel/helper-hoist-variables": "^7.4.4", + "@babel/helper-hoist-variables": "^7.7.0", "@babel/helper-plugin-utils": "^7.0.0", "babel-plugin-dynamic-import-node": "^2.3.0" } }, "@babel/plugin-transform-modules-umd": { - "version": "7.2.0", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-modules-umd/-/plugin-transform-modules-umd-7.2.0.tgz", - "integrity": "sha512-BV3bw6MyUH1iIsGhXlOK6sXhmSarZjtJ/vMiD9dNmpY8QXFFQTj+6v92pcfy1iqa8DeAfJFwoxcrS/TUZda6sw==", + "version": "7.7.0", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-modules-umd/-/plugin-transform-modules-umd-7.7.0.tgz", + "integrity": "sha512-u7eBA03zmUswQ9LQ7Qw0/ieC1pcAkbp5OQatbWUzY1PaBccvuJXUkYzoN1g7cqp7dbTu6Dp9bXyalBvD04AANA==", + "dev": true, "requires": { - "@babel/helper-module-transforms": "^7.1.0", + "@babel/helper-module-transforms": "^7.7.0", "@babel/helper-plugin-utils": "^7.0.0" } }, "@babel/plugin-transform-named-capturing-groups-regex": { - "version": "7.6.0", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-named-capturing-groups-regex/-/plugin-transform-named-capturing-groups-regex-7.6.0.tgz", - "integrity": "sha512-jem7uytlmrRl3iCAuQyw8BpB4c4LWvSpvIeXKpMb+7j84lkx4m4mYr5ErAcmN5KM7B6BqrAvRGjBIbbzqCczew==", + "version": "7.7.0", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-named-capturing-groups-regex/-/plugin-transform-named-capturing-groups-regex-7.7.0.tgz", + "integrity": "sha512-+SicSJoKouPctL+j1pqktRVCgy+xAch1hWWTMy13j0IflnyNjaoskj+DwRQFimHbLqO3sq2oN2CXMvXq3Bgapg==", + "dev": true, "requires": { - "regexp-tree": "^0.1.13" + "@babel/helper-create-regexp-features-plugin": "^7.7.0" } }, "@babel/plugin-transform-new-target": { "version": "7.4.4", "resolved": "https://registry.npmjs.org/@babel/plugin-transform-new-target/-/plugin-transform-new-target-7.4.4.tgz", "integrity": "sha512-r1z3T2DNGQwwe2vPGZMBNjioT2scgWzK9BCnDEh+46z8EEwXBq24uRzd65I7pjtugzPSj921aM15RpESgzsSuA==", + "dev": true, "requires": { "@babel/helper-plugin-utils": "^7.0.0" } @@ -523,6 +637,7 @@ "version": "7.5.5", "resolved": "https://registry.npmjs.org/@babel/plugin-transform-object-super/-/plugin-transform-object-super-7.5.5.tgz", "integrity": "sha512-un1zJQAhSosGFBduPgN/YFNvWVpRuHKU7IHBglLoLZsGmruJPOo6pbInneflUdmq7YvSVqhpPs5zdBvLnteltQ==", + "dev": true, "requires": { "@babel/helper-plugin-utils": "^7.0.0", "@babel/helper-replace-supers": "^7.5.5" @@ -532,6 +647,7 @@ "version": "7.4.4", "resolved": "https://registry.npmjs.org/@babel/plugin-transform-parameters/-/plugin-transform-parameters-7.4.4.tgz", "integrity": "sha512-oMh5DUO1V63nZcu/ZVLQFqiihBGo4OpxJxR1otF50GMeCLiRx5nUdtokd+u9SuVJrvvuIh9OosRFPP4pIPnwmw==", + "dev": true, "requires": { "@babel/helper-call-delegate": "^7.4.4", "@babel/helper-get-function-arity": "^7.0.0", @@ -542,14 +658,16 @@ "version": "7.2.0", "resolved": "https://registry.npmjs.org/@babel/plugin-transform-property-literals/-/plugin-transform-property-literals-7.2.0.tgz", "integrity": "sha512-9q7Dbk4RhgcLp8ebduOpCbtjh7C0itoLYHXd9ueASKAG/is5PQtMR5VJGka9NKqGhYEGn5ITahd4h9QeBMylWQ==", + "dev": true, "requires": { "@babel/helper-plugin-utils": "^7.0.0" } }, "@babel/plugin-transform-regenerator": { - "version": "7.4.5", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-regenerator/-/plugin-transform-regenerator-7.4.5.tgz", - "integrity": "sha512-gBKRh5qAaCWntnd09S8QC7r3auLCqq5DI6O0DlfoyDjslSBVqBibrMdsqO+Uhmx3+BlOmE/Kw1HFxmGbv0N9dA==", + "version": "7.7.0", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-regenerator/-/plugin-transform-regenerator-7.7.0.tgz", + "integrity": "sha512-AXmvnC+0wuj/cFkkS/HFHIojxH3ffSXE+ttulrqWjZZRaUOonfJc60e1wSNT4rV8tIunvu/R3wCp71/tLAa9xg==", + "dev": true, "requires": { "regenerator-transform": "^0.14.0" } @@ -558,14 +676,16 @@ "version": "7.2.0", "resolved": "https://registry.npmjs.org/@babel/plugin-transform-reserved-words/-/plugin-transform-reserved-words-7.2.0.tgz", "integrity": "sha512-fz43fqW8E1tAB3DKF19/vxbpib1fuyCwSPE418ge5ZxILnBhWyhtPgz8eh1RCGGJlwvksHkyxMxh0eenFi+kFw==", + "dev": true, "requires": { "@babel/helper-plugin-utils": "^7.0.0" } }, "@babel/plugin-transform-runtime": { - "version": "7.6.0", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-runtime/-/plugin-transform-runtime-7.6.0.tgz", - "integrity": "sha512-Da8tMf7uClzwUm/pnJ1S93m/aRXmoYNDD7TkHua8xBDdaAs54uZpTWvEt6NGwmoVMb9mZbntfTqmG2oSzN/7Vg==", + "version": "7.6.2", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-runtime/-/plugin-transform-runtime-7.6.2.tgz", + "integrity": "sha512-cqULw/QB4yl73cS5Y0TZlQSjDvNkzDbu0FurTZyHlJpWE5T3PCMdnyV+xXoH1opr1ldyHODe3QAX3OMAii5NxA==", + "dev": true, "requires": { "@babel/helper-module-imports": "^7.0.0", "@babel/helper-plugin-utils": "^7.0.0", @@ -577,14 +697,16 @@ "version": "7.2.0", "resolved": "https://registry.npmjs.org/@babel/plugin-transform-shorthand-properties/-/plugin-transform-shorthand-properties-7.2.0.tgz", "integrity": "sha512-QP4eUM83ha9zmYtpbnyjTLAGKQritA5XW/iG9cjtuOI8s1RuL/3V6a3DeSHfKutJQ+ayUfeZJPcnCYEQzaPQqg==", + "dev": true, "requires": { "@babel/helper-plugin-utils": "^7.0.0" } }, "@babel/plugin-transform-spread": { - "version": "7.2.2", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-spread/-/plugin-transform-spread-7.2.2.tgz", - "integrity": "sha512-KWfky/58vubwtS0hLqEnrWJjsMGaOeSBn90Ezn5Jeg9Z8KKHmELbP1yGylMlm5N6TPKeY9A2+UaSYLdxahg01w==", + "version": "7.6.2", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-spread/-/plugin-transform-spread-7.6.2.tgz", + "integrity": "sha512-DpSvPFryKdK1x+EDJYCy28nmAaIMdxmhot62jAXF/o99iA33Zj2Lmcp3vDmz+MUh0LNYVPvfj5iC3feb3/+PFg==", + "dev": true, "requires": { "@babel/helper-plugin-utils": "^7.0.0" } @@ -593,6 +715,7 @@ "version": "7.2.0", "resolved": "https://registry.npmjs.org/@babel/plugin-transform-sticky-regex/-/plugin-transform-sticky-regex-7.2.0.tgz", "integrity": "sha512-KKYCoGaRAf+ckH8gEL3JHUaFVyNHKe3ASNsZ+AlktgHevvxGigoIttrEJb8iKN03Q7Eazlv1s6cx2B2cQ3Jabw==", + "dev": true, "requires": { "@babel/helper-plugin-utils": "^7.0.0", "@babel/helper-regex": "^7.0.0" @@ -602,6 +725,7 @@ "version": "7.4.4", "resolved": "https://registry.npmjs.org/@babel/plugin-transform-template-literals/-/plugin-transform-template-literals-7.4.4.tgz", "integrity": "sha512-mQrEC4TWkhLN0z8ygIvEL9ZEToPhG5K7KDW3pzGqOfIGZ28Jb0POUkeWcoz8HnHvhFy6dwAT1j8OzqN8s804+g==", + "dev": true, "requires": { "@babel/helper-annotate-as-pure": "^7.0.0", "@babel/helper-plugin-utils": "^7.0.0" @@ -611,70 +735,73 @@ "version": "7.2.0", "resolved": "https://registry.npmjs.org/@babel/plugin-transform-typeof-symbol/-/plugin-transform-typeof-symbol-7.2.0.tgz", "integrity": "sha512-2LNhETWYxiYysBtrBTqL8+La0jIoQQnIScUJc74OYvUGRmkskNY4EzLCnjHBzdmb38wqtTaixpo1NctEcvMDZw==", + "dev": true, "requires": { "@babel/helper-plugin-utils": "^7.0.0" } }, "@babel/plugin-transform-unicode-regex": { - "version": "7.4.4", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-unicode-regex/-/plugin-transform-unicode-regex-7.4.4.tgz", - "integrity": "sha512-il+/XdNw01i93+M9J9u4T7/e/Ue/vWfNZE4IRUQjplu2Mqb/AFTDimkw2tdEdSH50wuQXZAbXSql0UphQke+vA==", + "version": "7.7.0", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-unicode-regex/-/plugin-transform-unicode-regex-7.7.0.tgz", + "integrity": "sha512-RrThb0gdrNwFAqEAAx9OWgtx6ICK69x7i9tCnMdVrxQwSDp/Abu9DXFU5Hh16VP33Rmxh04+NGW28NsIkFvFKA==", + "dev": true, "requires": { - "@babel/helper-plugin-utils": "^7.0.0", - "@babel/helper-regex": "^7.4.4", - "regexpu-core": "^4.5.4" + "@babel/helper-create-regexp-features-plugin": "^7.7.0", + "@babel/helper-plugin-utils": "^7.0.0" } }, "@babel/preset-env": { - "version": "7.6.0", - "resolved": "https://registry.npmjs.org/@babel/preset-env/-/preset-env-7.6.0.tgz", - "integrity": "sha512-1efzxFv/TcPsNXlRhMzRnkBFMeIqBBgzwmZwlFDw5Ubj0AGLeufxugirwZmkkX/ayi3owsSqoQ4fw8LkfK9SYg==", + "version": "7.7.1", + "resolved": "https://registry.npmjs.org/@babel/preset-env/-/preset-env-7.7.1.tgz", + "integrity": "sha512-/93SWhi3PxcVTDpSqC+Dp4YxUu3qZ4m7I76k0w73wYfn7bGVuRIO4QUz95aJksbS+AD1/mT1Ie7rbkT0wSplaA==", + "dev": true, "requires": { - "@babel/helper-module-imports": "^7.0.0", + "@babel/helper-module-imports": "^7.7.0", "@babel/helper-plugin-utils": "^7.0.0", - "@babel/plugin-proposal-async-generator-functions": "^7.2.0", - "@babel/plugin-proposal-dynamic-import": "^7.5.0", + "@babel/plugin-proposal-async-generator-functions": "^7.7.0", + "@babel/plugin-proposal-dynamic-import": "^7.7.0", "@babel/plugin-proposal-json-strings": "^7.2.0", - "@babel/plugin-proposal-object-rest-spread": "^7.5.5", + "@babel/plugin-proposal-object-rest-spread": "^7.6.2", "@babel/plugin-proposal-optional-catch-binding": "^7.2.0", - "@babel/plugin-proposal-unicode-property-regex": "^7.4.4", + "@babel/plugin-proposal-unicode-property-regex": "^7.7.0", "@babel/plugin-syntax-async-generators": "^7.2.0", "@babel/plugin-syntax-dynamic-import": "^7.2.0", "@babel/plugin-syntax-json-strings": "^7.2.0", "@babel/plugin-syntax-object-rest-spread": "^7.2.0", "@babel/plugin-syntax-optional-catch-binding": "^7.2.0", + "@babel/plugin-syntax-top-level-await": "^7.7.0", "@babel/plugin-transform-arrow-functions": "^7.2.0", - "@babel/plugin-transform-async-to-generator": "^7.5.0", + "@babel/plugin-transform-async-to-generator": "^7.7.0", "@babel/plugin-transform-block-scoped-functions": "^7.2.0", - "@babel/plugin-transform-block-scoping": "^7.6.0", - "@babel/plugin-transform-classes": "^7.5.5", + "@babel/plugin-transform-block-scoping": "^7.6.3", + "@babel/plugin-transform-classes": "^7.7.0", "@babel/plugin-transform-computed-properties": "^7.2.0", "@babel/plugin-transform-destructuring": "^7.6.0", - "@babel/plugin-transform-dotall-regex": "^7.4.4", + "@babel/plugin-transform-dotall-regex": "^7.7.0", "@babel/plugin-transform-duplicate-keys": "^7.5.0", "@babel/plugin-transform-exponentiation-operator": "^7.2.0", "@babel/plugin-transform-for-of": "^7.4.4", - "@babel/plugin-transform-function-name": "^7.4.4", + "@babel/plugin-transform-function-name": "^7.7.0", "@babel/plugin-transform-literals": "^7.2.0", "@babel/plugin-transform-member-expression-literals": "^7.2.0", "@babel/plugin-transform-modules-amd": "^7.5.0", - "@babel/plugin-transform-modules-commonjs": "^7.6.0", - "@babel/plugin-transform-modules-systemjs": "^7.5.0", - "@babel/plugin-transform-modules-umd": "^7.2.0", - "@babel/plugin-transform-named-capturing-groups-regex": "^7.6.0", + "@babel/plugin-transform-modules-commonjs": "^7.7.0", + "@babel/plugin-transform-modules-systemjs": "^7.7.0", + "@babel/plugin-transform-modules-umd": "^7.7.0", + "@babel/plugin-transform-named-capturing-groups-regex": "^7.7.0", "@babel/plugin-transform-new-target": "^7.4.4", "@babel/plugin-transform-object-super": "^7.5.5", "@babel/plugin-transform-parameters": "^7.4.4", "@babel/plugin-transform-property-literals": "^7.2.0", - "@babel/plugin-transform-regenerator": "^7.4.5", + "@babel/plugin-transform-regenerator": "^7.7.0", "@babel/plugin-transform-reserved-words": "^7.2.0", "@babel/plugin-transform-shorthand-properties": "^7.2.0", - "@babel/plugin-transform-spread": "^7.2.0", + "@babel/plugin-transform-spread": "^7.6.2", "@babel/plugin-transform-sticky-regex": "^7.2.0", "@babel/plugin-transform-template-literals": "^7.4.4", "@babel/plugin-transform-typeof-symbol": "^7.2.0", - "@babel/plugin-transform-unicode-regex": "^7.4.4", - "@babel/types": "^7.6.0", + "@babel/plugin-transform-unicode-regex": "^7.7.0", + "@babel/types": "^7.7.1", "browserslist": "^4.6.0", "core-js-compat": "^3.1.1", "invariant": "^2.2.2", @@ -683,43 +810,72 @@ } }, "@babel/runtime": { - "version": "7.6.0", - "resolved": "https://registry.npmjs.org/@babel/runtime/-/runtime-7.6.0.tgz", - "integrity": "sha512-89eSBLJsxNxOERC0Op4vd+0Bqm6wRMqMbFtV3i0/fbaWw/mJ8Q3eBvgX0G4SyrOOLCtbu98HspF8o09MRT+KzQ==", + "version": "7.7.2", + "resolved": "https://registry.npmjs.org/@babel/runtime/-/runtime-7.7.2.tgz", + "integrity": "sha512-JONRbXbTXc9WQE2mAZd1p0Z3DZ/6vaQIkgYMSTP3KjRCyd7rCZCcfhCyX+YjwcKxcZ82UrxbRD358bpExNgrjw==", + "dev": true, "requires": { "regenerator-runtime": "^0.13.2" + }, + "dependencies": { + "regenerator-runtime": { + "version": "0.13.3", + "resolved": "https://registry.npmjs.org/regenerator-runtime/-/regenerator-runtime-0.13.3.tgz", + "integrity": "sha512-naKIZz2GQ8JWh///G7L3X6LaQUAMp2lvb1rvwwsURe/VXwD6VMfr+/1NuNw3ag8v2kY1aQ/go5SNn79O9JU7yw==", + "dev": true + } } }, "@babel/template": { - "version": "7.6.0", - "resolved": "https://registry.npmjs.org/@babel/template/-/template-7.6.0.tgz", - "integrity": "sha512-5AEH2EXD8euCk446b7edmgFdub/qfH1SN6Nii3+fyXP807QRx9Q73A2N5hNwRRslC2H9sNzaFhsPubkS4L8oNQ==", + "version": "7.7.0", + "resolved": "https://registry.npmjs.org/@babel/template/-/template-7.7.0.tgz", + "integrity": "sha512-OKcwSYOW1mhWbnTBgQY5lvg1Fxg+VyfQGjcBduZFljfc044J5iDlnDSfhQ867O17XHiSCxYHUxHg2b7ryitbUQ==", + "dev": true, "requires": { "@babel/code-frame": "^7.0.0", - "@babel/parser": "^7.6.0", - "@babel/types": "^7.6.0" + "@babel/parser": "^7.7.0", + "@babel/types": "^7.7.0" } }, "@babel/traverse": { - "version": "7.6.0", - "resolved": "https://registry.npmjs.org/@babel/traverse/-/traverse-7.6.0.tgz", - "integrity": "sha512-93t52SaOBgml/xY74lsmt7xOR4ufYvhb5c5qiM6lu4J/dWGMAfAh6eKw4PjLes6DI6nQgearoxnFJk60YchpvQ==", + "version": "7.7.2", + "resolved": "https://registry.npmjs.org/@babel/traverse/-/traverse-7.7.2.tgz", + "integrity": "sha512-TM01cXib2+rgIZrGJOLaHV/iZUAxf4A0dt5auY6KNZ+cm6aschuJGqKJM3ROTt3raPUdIDk9siAufIFEleRwtw==", + "dev": true, "requires": { "@babel/code-frame": "^7.5.5", - "@babel/generator": "^7.6.0", - "@babel/helper-function-name": "^7.1.0", - "@babel/helper-split-export-declaration": "^7.4.4", - "@babel/parser": "^7.6.0", - "@babel/types": "^7.6.0", + "@babel/generator": "^7.7.2", + "@babel/helper-function-name": "^7.7.0", + "@babel/helper-split-export-declaration": "^7.7.0", + "@babel/parser": "^7.7.2", + "@babel/types": "^7.7.2", "debug": "^4.1.0", "globals": "^11.1.0", "lodash": "^4.17.13" + }, + "dependencies": { + "debug": { + "version": "4.1.1", + "resolved": "https://registry.npmjs.org/debug/-/debug-4.1.1.tgz", + "integrity": "sha512-pYAIzeRo8J6KPEaJ0VWOh5Pzkbw/RetuzehGM7QRRX5he4fPHx2rdKMB256ehJCkX+XRQm16eZLqLNS8RSZXZw==", + "dev": true, + "requires": { + "ms": "^2.1.1" + } + }, + "ms": { + "version": "2.1.2", + "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.2.tgz", + "integrity": "sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w==", + "dev": true + } } }, "@babel/types": { - "version": "7.6.1", - "resolved": "https://registry.npmjs.org/@babel/types/-/types-7.6.1.tgz", - "integrity": "sha512-X7gdiuaCmA0uRjCmRtYJNAVCc/q+5xSgsfKJHqMN4iNLILX39677fJE1O40arPMh0TTtS9ItH67yre6c7k6t0g==", + "version": "7.7.2", + "resolved": "https://registry.npmjs.org/@babel/types/-/types-7.7.2.tgz", + "integrity": "sha512-YTf6PXoh3+eZgRCBzzP25Bugd2ngmpQVrk7kXX0i5N9BO7TFBtIgZYs7WtxtOGs8e6A4ZI7ECkbBCEHeXocvOA==", + "dev": true, "requires": { "esutils": "^2.0.2", "lodash": "^4.17.13", @@ -730,6 +886,7 @@ "version": "2.2.1", "resolved": "https://registry.npmjs.org/@mrmlnc/readdir-enhanced/-/readdir-enhanced-2.2.1.tgz", "integrity": "sha512-bPHp6Ji8b41szTOcaP63VlnbbO5Ny6dwAATtY6JTjh5N2OLrb5Qk/Th5cRkRQhkWCt+EJsYrNB0MiL+Gpn6e3g==", + "dev": true, "requires": { "call-me-maybe": "^1.0.1", "glob-to-regexp": "^0.3.0" @@ -738,17 +895,20 @@ "@nodelib/fs.stat": { "version": "1.1.3", "resolved": "https://registry.npmjs.org/@nodelib/fs.stat/-/fs.stat-1.1.3.tgz", - "integrity": "sha512-shAmDyaQC4H92APFoIaVDHCx5bStIocgvbwQyxPRrbUY20V1EYTbSDchWbuwlMG3V17cprZhA6+78JfB+3DTPw==" + "integrity": "sha512-shAmDyaQC4H92APFoIaVDHCx5bStIocgvbwQyxPRrbUY20V1EYTbSDchWbuwlMG3V17cprZhA6+78JfB+3DTPw==", + "dev": true }, "@types/events": { "version": "3.0.0", "resolved": "https://registry.npmjs.org/@types/events/-/events-3.0.0.tgz", - "integrity": "sha512-EaObqwIvayI5a8dCzhFrjKzVwKLxjoG9T6Ppd5CEo07LRKfQ8Yokw54r5+Wq7FaBQ+yXRvQAYPrHwya1/UFt9g==" + "integrity": "sha512-EaObqwIvayI5a8dCzhFrjKzVwKLxjoG9T6Ppd5CEo07LRKfQ8Yokw54r5+Wq7FaBQ+yXRvQAYPrHwya1/UFt9g==", + "dev": true }, "@types/glob": { "version": "7.1.1", "resolved": "https://registry.npmjs.org/@types/glob/-/glob-7.1.1.tgz", "integrity": "sha512-1Bh06cbWJUHMC97acuD6UMG29nMt0Aqz1vF3guLfG+kHHJhy3AyohZFFxYk2f7Q1SQIrNwvncxAE0N/9s70F2w==", + "dev": true, "requires": { "@types/events": "*", "@types/minimatch": "*", @@ -758,22 +918,32 @@ "@types/minimatch": { "version": "3.0.3", "resolved": "https://registry.npmjs.org/@types/minimatch/-/minimatch-3.0.3.tgz", - "integrity": "sha512-tHq6qdbT9U1IRSGf14CL0pUlULksvY9OZ+5eEgl1N7t+OA3tGvNpxJCzuKQlsNgCVwbAs670L1vcVQi8j9HjnA==" + "integrity": "sha512-tHq6qdbT9U1IRSGf14CL0pUlULksvY9OZ+5eEgl1N7t+OA3tGvNpxJCzuKQlsNgCVwbAs670L1vcVQi8j9HjnA==", + "dev": true }, "@types/node": { - "version": "12.7.5", - "resolved": "https://registry.npmjs.org/@types/node/-/node-12.7.5.tgz", - "integrity": "sha512-9fq4jZVhPNW8r+UYKnxF1e2HkDWOWKM5bC2/7c9wPV835I0aOrVbS/Hw/pWPk2uKrNXQqg9Z959Kz+IYDd5p3w==" + "version": "12.12.11", + "resolved": "https://registry.npmjs.org/@types/node/-/node-12.12.11.tgz", + "integrity": "sha512-O+x6uIpa6oMNTkPuHDa9MhMMehlxLAd5QcOvKRjAFsBVpeFWTOPnXbDvILvFgFFZfQ1xh1EZi1FbXxUix+zpsQ==", + "dev": true }, "@types/q": { "version": "1.5.2", "resolved": "https://registry.npmjs.org/@types/q/-/q-1.5.2.tgz", - "integrity": "sha512-ce5d3q03Ex0sy4R14722Rmt6MT07Ua+k4FwDfdcToYJcMKNtRVQvJ6JCAPdAmAnbRb6CsX6aYb9m96NGod9uTw==" + "integrity": "sha512-ce5d3q03Ex0sy4R14722Rmt6MT07Ua+k4FwDfdcToYJcMKNtRVQvJ6JCAPdAmAnbRb6CsX6aYb9m96NGod9uTw==", + "dev": true + }, + "@types/zen-observable": { + "version": "0.8.0", + "resolved": "https://registry.npmjs.org/@types/zen-observable/-/zen-observable-0.8.0.tgz", + "integrity": "sha512-te5lMAWii1uEJ4FwLjzdlbw3+n0FZNOvFXHxQDKeT0dilh7HOzdMzV2TrJVUzq8ep7J4Na8OUYPRLSQkJHAlrg==", + "dev": true }, "@vue/component-compiler-utils": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/@vue/component-compiler-utils/-/component-compiler-utils-3.0.0.tgz", - "integrity": "sha512-am+04/0UX7ektcmvhYmrf84BDVAD8afFOf4asZjN84q8xzxFclbk5x0MtxuKGfp+zjN5WWPJn3fjFAWtDdIGSw==", + "version": "3.0.2", + "resolved": "https://registry.npmjs.org/@vue/component-compiler-utils/-/component-compiler-utils-3.0.2.tgz", + "integrity": "sha512-BSnY2PmW4QwU1AOcGSNYAmEPLjdQ9itl1YpLCWtpwMA5Jy/aqWNuzZ9+ZZ8h6yZJ53W95tVkEP6yrXJ/zUHdEA==", + "dev": true, "requires": { "consolidate": "^0.15.1", "hash-sum": "^1.0.2", @@ -781,7 +951,7 @@ "merge-source-map": "^1.1.0", "postcss": "^7.0.14", "postcss-selector-parser": "^5.0.0", - "prettier": "1.16.3", + "prettier": "^1.18.2", "source-map": "~0.6.1", "vue-template-es2015-compiler": "^1.9.0" }, @@ -790,6 +960,7 @@ "version": "4.1.5", "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-4.1.5.tgz", "integrity": "sha512-sWZlbEP2OsHNkXrMl5GYk/jKk70MBng6UU4YI/qGDYbgf6YbP4EvmqISbXCoJiRKs+1bSpFHVgQxvJ17F2li5g==", + "dev": true, "requires": { "pseudomap": "^1.0.2", "yallist": "^2.1.2" @@ -798,12 +969,14 @@ "source-map": { "version": "0.6.1", "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", - "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==" + "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==", + "dev": true }, "yallist": { "version": "2.1.2", "resolved": "https://registry.npmjs.org/yallist/-/yallist-2.1.2.tgz", - "integrity": "sha1-HBH5IY8HYImkfdUS+TxmmaaoHVI=" + "integrity": "sha1-HBH5IY8HYImkfdUS+TxmmaaoHVI=", + "dev": true } } }, @@ -811,6 +984,7 @@ "version": "1.8.5", "resolved": "https://registry.npmjs.org/@webassemblyjs/ast/-/ast-1.8.5.tgz", "integrity": "sha512-aJMfngIZ65+t71C3y2nBBg5FFG0Okt9m0XEgWZ7Ywgn1oMAT8cNwx00Uv1cQyHtidq0Xn94R4TAywO+LCQ+ZAQ==", + "dev": true, "requires": { "@webassemblyjs/helper-module-context": "1.8.5", "@webassemblyjs/helper-wasm-bytecode": "1.8.5", @@ -820,22 +994,26 @@ "@webassemblyjs/floating-point-hex-parser": { "version": "1.8.5", "resolved": "https://registry.npmjs.org/@webassemblyjs/floating-point-hex-parser/-/floating-point-hex-parser-1.8.5.tgz", - "integrity": "sha512-9p+79WHru1oqBh9ewP9zW95E3XAo+90oth7S5Re3eQnECGq59ly1Ri5tsIipKGpiStHsUYmY3zMLqtk3gTcOtQ==" + "integrity": "sha512-9p+79WHru1oqBh9ewP9zW95E3XAo+90oth7S5Re3eQnECGq59ly1Ri5tsIipKGpiStHsUYmY3zMLqtk3gTcOtQ==", + "dev": true }, "@webassemblyjs/helper-api-error": { "version": "1.8.5", "resolved": "https://registry.npmjs.org/@webassemblyjs/helper-api-error/-/helper-api-error-1.8.5.tgz", - "integrity": "sha512-Za/tnzsvnqdaSPOUXHyKJ2XI7PDX64kWtURyGiJJZKVEdFOsdKUCPTNEVFZq3zJ2R0G5wc2PZ5gvdTRFgm81zA==" + "integrity": "sha512-Za/tnzsvnqdaSPOUXHyKJ2XI7PDX64kWtURyGiJJZKVEdFOsdKUCPTNEVFZq3zJ2R0G5wc2PZ5gvdTRFgm81zA==", + "dev": true }, "@webassemblyjs/helper-buffer": { "version": "1.8.5", "resolved": "https://registry.npmjs.org/@webassemblyjs/helper-buffer/-/helper-buffer-1.8.5.tgz", - "integrity": "sha512-Ri2R8nOS0U6G49Q86goFIPNgjyl6+oE1abW1pS84BuhP1Qcr5JqMwRFT3Ah3ADDDYGEgGs1iyb1DGX+kAi/c/Q==" + "integrity": "sha512-Ri2R8nOS0U6G49Q86goFIPNgjyl6+oE1abW1pS84BuhP1Qcr5JqMwRFT3Ah3ADDDYGEgGs1iyb1DGX+kAi/c/Q==", + "dev": true }, "@webassemblyjs/helper-code-frame": { "version": "1.8.5", "resolved": "https://registry.npmjs.org/@webassemblyjs/helper-code-frame/-/helper-code-frame-1.8.5.tgz", "integrity": "sha512-VQAadSubZIhNpH46IR3yWO4kZZjMxN1opDrzePLdVKAZ+DFjkGD/rf4v1jap744uPVU6yjL/smZbRIIJTOUnKQ==", + "dev": true, "requires": { "@webassemblyjs/wast-printer": "1.8.5" } @@ -843,12 +1021,14 @@ "@webassemblyjs/helper-fsm": { "version": "1.8.5", "resolved": "https://registry.npmjs.org/@webassemblyjs/helper-fsm/-/helper-fsm-1.8.5.tgz", - "integrity": "sha512-kRuX/saORcg8se/ft6Q2UbRpZwP4y7YrWsLXPbbmtepKr22i8Z4O3V5QE9DbZK908dh5Xya4Un57SDIKwB9eow==" + "integrity": "sha512-kRuX/saORcg8se/ft6Q2UbRpZwP4y7YrWsLXPbbmtepKr22i8Z4O3V5QE9DbZK908dh5Xya4Un57SDIKwB9eow==", + "dev": true }, "@webassemblyjs/helper-module-context": { "version": "1.8.5", "resolved": "https://registry.npmjs.org/@webassemblyjs/helper-module-context/-/helper-module-context-1.8.5.tgz", "integrity": "sha512-/O1B236mN7UNEU4t9X7Pj38i4VoU8CcMHyy3l2cV/kIF4U5KoHXDVqcDuOs1ltkac90IM4vZdHc52t1x8Yfs3g==", + "dev": true, "requires": { "@webassemblyjs/ast": "1.8.5", "mamacro": "^0.0.3" @@ -857,12 +1037,14 @@ "@webassemblyjs/helper-wasm-bytecode": { "version": "1.8.5", "resolved": "https://registry.npmjs.org/@webassemblyjs/helper-wasm-bytecode/-/helper-wasm-bytecode-1.8.5.tgz", - "integrity": "sha512-Cu4YMYG3Ddl72CbmpjU/wbP6SACcOPVbHN1dI4VJNJVgFwaKf1ppeFJrwydOG3NDHxVGuCfPlLZNyEdIYlQ6QQ==" + "integrity": "sha512-Cu4YMYG3Ddl72CbmpjU/wbP6SACcOPVbHN1dI4VJNJVgFwaKf1ppeFJrwydOG3NDHxVGuCfPlLZNyEdIYlQ6QQ==", + "dev": true }, "@webassemblyjs/helper-wasm-section": { "version": "1.8.5", "resolved": "https://registry.npmjs.org/@webassemblyjs/helper-wasm-section/-/helper-wasm-section-1.8.5.tgz", "integrity": "sha512-VV083zwR+VTrIWWtgIUpqfvVdK4ff38loRmrdDBgBT8ADXYsEZ5mPQ4Nde90N3UYatHdYoDIFb7oHzMncI02tA==", + "dev": true, "requires": { "@webassemblyjs/ast": "1.8.5", "@webassemblyjs/helper-buffer": "1.8.5", @@ -874,6 +1056,7 @@ "version": "1.8.5", "resolved": "https://registry.npmjs.org/@webassemblyjs/ieee754/-/ieee754-1.8.5.tgz", "integrity": "sha512-aaCvQYrvKbY/n6wKHb/ylAJr27GglahUO89CcGXMItrOBqRarUMxWLJgxm9PJNuKULwN5n1csT9bYoMeZOGF3g==", + "dev": true, "requires": { "@xtuc/ieee754": "^1.2.0" } @@ -882,6 +1065,7 @@ "version": "1.8.5", "resolved": "https://registry.npmjs.org/@webassemblyjs/leb128/-/leb128-1.8.5.tgz", "integrity": "sha512-plYUuUwleLIziknvlP8VpTgO4kqNaH57Y3JnNa6DLpu/sGcP6hbVdfdX5aHAV716pQBKrfuU26BJK29qY37J7A==", + "dev": true, "requires": { "@xtuc/long": "4.2.2" } @@ -889,12 +1073,14 @@ "@webassemblyjs/utf8": { "version": "1.8.5", "resolved": "https://registry.npmjs.org/@webassemblyjs/utf8/-/utf8-1.8.5.tgz", - "integrity": "sha512-U7zgftmQriw37tfD934UNInokz6yTmn29inT2cAetAsaU9YeVCveWEwhKL1Mg4yS7q//NGdzy79nlXh3bT8Kjw==" + "integrity": "sha512-U7zgftmQriw37tfD934UNInokz6yTmn29inT2cAetAsaU9YeVCveWEwhKL1Mg4yS7q//NGdzy79nlXh3bT8Kjw==", + "dev": true }, "@webassemblyjs/wasm-edit": { "version": "1.8.5", "resolved": "https://registry.npmjs.org/@webassemblyjs/wasm-edit/-/wasm-edit-1.8.5.tgz", "integrity": "sha512-A41EMy8MWw5yvqj7MQzkDjU29K7UJq1VrX2vWLzfpRHt3ISftOXqrtojn7nlPsZ9Ijhp5NwuODuycSvfAO/26Q==", + "dev": true, "requires": { "@webassemblyjs/ast": "1.8.5", "@webassemblyjs/helper-buffer": "1.8.5", @@ -910,6 +1096,7 @@ "version": "1.8.5", "resolved": "https://registry.npmjs.org/@webassemblyjs/wasm-gen/-/wasm-gen-1.8.5.tgz", "integrity": "sha512-BCZBT0LURC0CXDzj5FXSc2FPTsxwp3nWcqXQdOZE4U7h7i8FqtFK5Egia6f9raQLpEKT1VL7zr4r3+QX6zArWg==", + "dev": true, "requires": { "@webassemblyjs/ast": "1.8.5", "@webassemblyjs/helper-wasm-bytecode": "1.8.5", @@ -922,6 +1109,7 @@ "version": "1.8.5", "resolved": "https://registry.npmjs.org/@webassemblyjs/wasm-opt/-/wasm-opt-1.8.5.tgz", "integrity": "sha512-HKo2mO/Uh9A6ojzu7cjslGaHaUU14LdLbGEKqTR7PBKwT6LdPtLLh9fPY33rmr5wcOMrsWDbbdCHq4hQUdd37Q==", + "dev": true, "requires": { "@webassemblyjs/ast": "1.8.5", "@webassemblyjs/helper-buffer": "1.8.5", @@ -933,6 +1121,7 @@ "version": "1.8.5", "resolved": "https://registry.npmjs.org/@webassemblyjs/wasm-parser/-/wasm-parser-1.8.5.tgz", "integrity": "sha512-pi0SYE9T6tfcMkthwcgCpL0cM9nRYr6/6fjgDtL6q/ZqKHdMWvxitRi5JcZ7RI4SNJJYnYNaWy5UUrHQy998lw==", + "dev": true, "requires": { "@webassemblyjs/ast": "1.8.5", "@webassemblyjs/helper-api-error": "1.8.5", @@ -946,6 +1135,7 @@ "version": "1.8.5", "resolved": "https://registry.npmjs.org/@webassemblyjs/wast-parser/-/wast-parser-1.8.5.tgz", "integrity": "sha512-daXC1FyKWHF1i11obK086QRlsMsY4+tIOKgBqI1lxAnkp9xe9YMcgOxm9kLe+ttjs5aWV2KKE1TWJCN57/Btsg==", + "dev": true, "requires": { "@webassemblyjs/ast": "1.8.5", "@webassemblyjs/floating-point-hex-parser": "1.8.5", @@ -959,26 +1149,49 @@ "version": "1.8.5", "resolved": "https://registry.npmjs.org/@webassemblyjs/wast-printer/-/wast-printer-1.8.5.tgz", "integrity": "sha512-w0U0pD4EhlnvRyeJzBqaVSJAo9w/ce7/WPogeXLzGkO6hzhr4GnQIZ4W4uUt5b9ooAaXPtnXlj0gzsXEOUNYMg==", + "dev": true, "requires": { "@webassemblyjs/ast": "1.8.5", "@webassemblyjs/wast-parser": "1.8.5", "@xtuc/long": "4.2.2" } }, + "@wry/context": { + "version": "0.4.4", + "resolved": "https://registry.npmjs.org/@wry/context/-/context-0.4.4.tgz", + "integrity": "sha512-LrKVLove/zw6h2Md/KZyWxIkFM6AoyKp71OqpH9Hiip1csjPVoD3tPxlbQUNxEnHENks3UGgNpSBCAfq9KWuag==", + "dev": true, + "requires": { + "@types/node": ">=6", + "tslib": "^1.9.3" + } + }, + "@wry/equality": { + "version": "0.1.9", + "resolved": "https://registry.npmjs.org/@wry/equality/-/equality-0.1.9.tgz", + "integrity": "sha512-mB6ceGjpMGz1ZTza8HYnrPGos2mC6So4NhS1PtZ8s4Qt0K7fBiIGhpSxUbQmhwcSWE3no+bYxmI2OL6KuXYmoQ==", + "dev": true, + "requires": { + "tslib": "^1.9.3" + } + }, "@xtuc/ieee754": { "version": "1.2.0", "resolved": "https://registry.npmjs.org/@xtuc/ieee754/-/ieee754-1.2.0.tgz", - "integrity": "sha512-DX8nKgqcGwsc0eJSqYt5lwP4DH5FlHnmuWWBRy7X0NcaGR0ZtuyeESgMwTYVEtxmsNGY+qit4QYT/MIYTOTPeA==" + "integrity": "sha512-DX8nKgqcGwsc0eJSqYt5lwP4DH5FlHnmuWWBRy7X0NcaGR0ZtuyeESgMwTYVEtxmsNGY+qit4QYT/MIYTOTPeA==", + "dev": true }, "@xtuc/long": { "version": "4.2.2", "resolved": "https://registry.npmjs.org/@xtuc/long/-/long-4.2.2.tgz", - "integrity": "sha512-NuHqBY1PB/D8xU6s/thBgOAiAP7HOYDQ32+BFZILJ8ivkUkAHQnWfn6WhL79Owj1qmUnoN/YPhktdIoucipkAQ==" + "integrity": "sha512-NuHqBY1PB/D8xU6s/thBgOAiAP7HOYDQ32+BFZILJ8ivkUkAHQnWfn6WhL79Owj1qmUnoN/YPhktdIoucipkAQ==", + "dev": true }, "accepts": { "version": "1.3.7", "resolved": "https://registry.npmjs.org/accepts/-/accepts-1.3.7.tgz", "integrity": "sha512-Il80Qs2WjYlJIBNzNkK6KYqlVMTbZLXgHx2oT0pU/fjRHyEp+PEfEPY0R3WCwAGVOtauxh1hOxNgIf5bv7dQpA==", + "dev": true, "requires": { "mime-types": "~2.1.24", "negotiator": "0.6.2" @@ -987,12 +1200,69 @@ "acorn": { "version": "6.3.0", "resolved": "https://registry.npmjs.org/acorn/-/acorn-6.3.0.tgz", - "integrity": "sha512-/czfa8BwS88b9gWQVhc8eknunSA2DoJpJyTQkhheIf5E48u1N0R4q/YxxsAeqRrmK9TQ/uYfgLDfZo91UlANIA==" + "integrity": "sha512-/czfa8BwS88b9gWQVhc8eknunSA2DoJpJyTQkhheIf5E48u1N0R4q/YxxsAeqRrmK9TQ/uYfgLDfZo91UlANIA==", + "dev": true + }, + "add-dom-event-listener": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/add-dom-event-listener/-/add-dom-event-listener-1.1.0.tgz", + "integrity": "sha512-WCxx1ixHT0GQU9hb0KI/mhgRQhnU+U3GvwY6ZvVjYq8rsihIGoaIOUbY0yMPBxLH5MDtr0kz3fisWGNcbWW7Jw==", + "dev": true, + "requires": { + "object-assign": "4.x" + } + }, + "adjust-sourcemap-loader": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/adjust-sourcemap-loader/-/adjust-sourcemap-loader-1.2.0.tgz", + "integrity": "sha512-958oaHHVEXMvsY7v7cC5gEkNIcoaAVIhZ4mBReYVZJOTP9IgKmzLjIOhTtzpLMu+qriXvLsVjJ155EeInp45IQ==", + "dev": true, + "requires": { + "assert": "^1.3.0", + "camelcase": "^1.2.1", + "loader-utils": "^1.1.0", + "lodash.assign": "^4.0.1", + "lodash.defaults": "^3.1.2", + "object-path": "^0.9.2", + "regex-parser": "^2.2.9" + }, + "dependencies": { + "camelcase": { + "version": "1.2.1", + "resolved": "https://registry.npmjs.org/camelcase/-/camelcase-1.2.1.tgz", + "integrity": "sha1-m7UwTS4LVmmLLHWLCKPqqdqlijk=", + "dev": true + }, + "lodash.defaults": { + "version": "3.1.2", + "resolved": "https://registry.npmjs.org/lodash.defaults/-/lodash.defaults-3.1.2.tgz", + "integrity": "sha1-xzCLGNv4vJNy1wGnNJPGEZK9Liw=", + "dev": true, + "requires": { + "lodash.assign": "^3.0.0", + "lodash.restparam": "^3.0.0" + }, + "dependencies": { + "lodash.assign": { + "version": "3.2.0", + "resolved": "https://registry.npmjs.org/lodash.assign/-/lodash.assign-3.2.0.tgz", + "integrity": "sha1-POnwI0tLIiPilrj6CsH+6OvKZPo=", + "dev": true, + "requires": { + "lodash._baseassign": "^3.0.0", + "lodash._createassigner": "^3.0.0", + "lodash.keys": "^3.0.0" + } + } + } + } + } }, "ajv": { "version": "6.10.2", "resolved": "https://registry.npmjs.org/ajv/-/ajv-6.10.2.tgz", "integrity": "sha512-TXtUUEYHuaTEbLZWIKUr5pmBuhDLy+8KYtPYdcV8qC+pOZL+NKqYwvWSRrVXHn+ZmRRAu8vJTAznH7Oag6RVRw==", + "dev": true, "requires": { "fast-deep-equal": "^2.0.1", "fast-json-stable-stringify": "^2.0.0", @@ -1003,45 +1273,89 @@ "ajv-errors": { "version": "1.0.1", "resolved": "https://registry.npmjs.org/ajv-errors/-/ajv-errors-1.0.1.tgz", - "integrity": "sha512-DCRfO/4nQ+89p/RK43i8Ezd41EqdGIU4ld7nGF8OQ14oc/we5rEntLCUa7+jrn3nn83BosfwZA0wb4pon2o8iQ==" + "integrity": "sha512-DCRfO/4nQ+89p/RK43i8Ezd41EqdGIU4ld7nGF8OQ14oc/we5rEntLCUa7+jrn3nn83BosfwZA0wb4pon2o8iQ==", + "dev": true }, "ajv-keywords": { "version": "3.4.1", "resolved": "https://registry.npmjs.org/ajv-keywords/-/ajv-keywords-3.4.1.tgz", - "integrity": "sha512-RO1ibKvd27e6FEShVFfPALuHI3WjSVNeK5FIsmme/LYRNxjKuNj+Dt7bucLa6NdSv3JcVTyMlm9kGR84z1XpaQ==" + "integrity": "sha512-RO1ibKvd27e6FEShVFfPALuHI3WjSVNeK5FIsmme/LYRNxjKuNj+Dt7bucLa6NdSv3JcVTyMlm9kGR84z1XpaQ==", + "dev": true }, "alphanum-sort": { "version": "1.0.2", "resolved": "https://registry.npmjs.org/alphanum-sort/-/alphanum-sort-1.0.2.tgz", - "integrity": "sha1-l6ERlkmyEa0zaR2fn0hqjsn74KM=" + "integrity": "sha1-l6ERlkmyEa0zaR2fn0hqjsn74KM=", + "dev": true }, "ansi-colors": { "version": "3.2.4", "resolved": "https://registry.npmjs.org/ansi-colors/-/ansi-colors-3.2.4.tgz", - "integrity": "sha512-hHUXGagefjN2iRrID63xckIvotOXOojhQKWIPUZ4mNUZ9nLZW+7FMNoE1lOkEhNWYsx/7ysGIuJYCiMAA9FnrA==" + "integrity": "sha512-hHUXGagefjN2iRrID63xckIvotOXOojhQKWIPUZ4mNUZ9nLZW+7FMNoE1lOkEhNWYsx/7ysGIuJYCiMAA9FnrA==", + "dev": true }, "ansi-html": { "version": "0.0.7", "resolved": "https://registry.npmjs.org/ansi-html/-/ansi-html-0.0.7.tgz", - "integrity": "sha1-gTWEAhliqenm/QOflA0S9WynhZ4=" + "integrity": "sha1-gTWEAhliqenm/QOflA0S9WynhZ4=", + "dev": true }, "ansi-regex": { "version": "2.1.1", "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-2.1.1.tgz", - "integrity": "sha1-w7M6te42DYbg5ijwRorn7yfWVN8=" + "integrity": "sha1-w7M6te42DYbg5ijwRorn7yfWVN8=", + "dev": true }, "ansi-styles": { "version": "3.2.1", "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-3.2.1.tgz", "integrity": "sha512-VT0ZI6kZRdTh8YyJw3SMbYm/u+NqfsAxEpWO0Pf9sq8/e94WxxOpPKx9FR1FlyCtOVDNOQ+8ntlqFxiRc+r5qA==", + "dev": true, "requires": { "color-convert": "^1.9.0" } }, + "ant-design-vue": { + "version": "1.4.6", + "resolved": "https://registry.npmjs.org/ant-design-vue/-/ant-design-vue-1.4.6.tgz", + "integrity": "sha512-01bgC8PM9zh4O5Xf6EHtrk6k3Erup+foVn56tRskQPBf634NhqKxvpKvjQqxeXQNhkCxFYJBO6eWT7gZeHSgUw==", + "dev": true, + "requires": { + "@ant-design/icons": "^2.1.1", + "@ant-design/icons-vue": "^2.0.0", + "add-dom-event-listener": "^1.0.2", + "array-tree-filter": "^2.1.0", + "async-validator": "^3.0.3", + "babel-helper-vue-jsx-merge-props": "^2.0.3", + "babel-runtime": "6.x", + "classnames": "^2.2.5", + "component-classes": "^1.2.6", + "dom-align": "^1.7.0", + "dom-closest": "^0.2.0", + "dom-scroll-into-view": "^1.2.1", + "enquire.js": "^2.1.6", + "intersperse": "^1.0.0", + "is-negative-zero": "^2.0.0", + "ismobilejs": "^0.5.1", + "json2mq": "^0.2.0", + "lodash": "^4.17.5", + "moment": "^2.21.0", + "mutationobserver-shim": "^0.3.2", + "node-emoji": "^1.10.0", + "omit.js": "^1.0.0", + "raf": "^3.4.0", + "resize-observer-polyfill": "^1.5.1", + "shallow-equal": "^1.0.0", + "shallowequal": "^1.0.2", + "vue-ref": "^1.0.4", + "warning": "^3.0.0" + } + }, "anymatch": { "version": "2.0.0", "resolved": "https://registry.npmjs.org/anymatch/-/anymatch-2.0.0.tgz", "integrity": "sha512-5teOsQWABXHHBFP9y3skS5P3d/WfWXpv3FUpy+LorMrNYaT9pI4oLMQX7jzQ2KklNpGpWHzdCXTDT2Y3XGlZBw==", + "dev": true, "requires": { "micromatch": "^3.1.4", "normalize-path": "^2.1.1" @@ -1051,21 +1365,137 @@ "version": "2.1.1", "resolved": "https://registry.npmjs.org/normalize-path/-/normalize-path-2.1.1.tgz", "integrity": "sha1-GrKLVW4Zg2Oowab35vogE3/mrtk=", + "dev": true, "requires": { "remove-trailing-separator": "^1.0.1" } } } }, + "apollo-boost": { + "version": "0.4.4", + "resolved": "https://registry.npmjs.org/apollo-boost/-/apollo-boost-0.4.4.tgz", + "integrity": "sha512-ASngBvazmp9xNxXfJ2InAzfDwz65o4lswlEPrWoN35scXmCz8Nz4k3CboUXbrcN/G0IExkRf/W7o9Rg0cjEBqg==", + "dev": true, + "requires": { + "apollo-cache": "^1.3.2", + "apollo-cache-inmemory": "^1.6.3", + "apollo-client": "^2.6.4", + "apollo-link": "^1.0.6", + "apollo-link-error": "^1.0.3", + "apollo-link-http": "^1.3.1", + "graphql-tag": "^2.4.2", + "ts-invariant": "^0.4.0", + "tslib": "^1.9.3" + } + }, + "apollo-cache": { + "version": "1.3.2", + "resolved": "https://registry.npmjs.org/apollo-cache/-/apollo-cache-1.3.2.tgz", + "integrity": "sha512-+KA685AV5ETEJfjZuviRTEImGA11uNBp/MJGnaCvkgr+BYRrGLruVKBv6WvyFod27WEB2sp7SsG8cNBKANhGLg==", + "dev": true, + "requires": { + "apollo-utilities": "^1.3.2", + "tslib": "^1.9.3" + } + }, + "apollo-cache-inmemory": { + "version": "1.6.3", + "resolved": "https://registry.npmjs.org/apollo-cache-inmemory/-/apollo-cache-inmemory-1.6.3.tgz", + "integrity": "sha512-S4B/zQNSuYc0M/1Wq8dJDTIO9yRgU0ZwDGnmlqxGGmFombOZb9mLjylewSfQKmjNpciZ7iUIBbJ0mHlPJTzdXg==", + "dev": true, + "requires": { + "apollo-cache": "^1.3.2", + "apollo-utilities": "^1.3.2", + "optimism": "^0.10.0", + "ts-invariant": "^0.4.0", + "tslib": "^1.9.3" + } + }, + "apollo-client": { + "version": "2.6.4", + "resolved": "https://registry.npmjs.org/apollo-client/-/apollo-client-2.6.4.tgz", + "integrity": "sha512-oWOwEOxQ9neHHVZrQhHDbI6bIibp9SHgxaLRVPoGvOFy7OH5XUykZE7hBQAVxq99tQjBzgytaZffQkeWo1B4VQ==", + "dev": true, + "requires": { + "@types/zen-observable": "^0.8.0", + "apollo-cache": "1.3.2", + "apollo-link": "^1.0.0", + "apollo-utilities": "1.3.2", + "symbol-observable": "^1.0.2", + "ts-invariant": "^0.4.0", + "tslib": "^1.9.3", + "zen-observable": "^0.8.0" + } + }, + "apollo-link": { + "version": "1.2.13", + "resolved": "https://registry.npmjs.org/apollo-link/-/apollo-link-1.2.13.tgz", + "integrity": "sha512-+iBMcYeevMm1JpYgwDEIDt/y0BB7VWyvlm/7x+TIPNLHCTCMgcEgDuW5kH86iQZWo0I7mNwQiTOz+/3ShPFmBw==", + "dev": true, + "requires": { + "apollo-utilities": "^1.3.0", + "ts-invariant": "^0.4.0", + "tslib": "^1.9.3", + "zen-observable-ts": "^0.8.20" + } + }, + "apollo-link-error": { + "version": "1.1.12", + "resolved": "https://registry.npmjs.org/apollo-link-error/-/apollo-link-error-1.1.12.tgz", + "integrity": "sha512-psNmHyuy3valGikt/XHJfe0pKJnRX19tLLs6P6EHRxg+6q6JMXNVLYPaQBkL0FkwdTCB0cbFJAGRYCBviG8TDA==", + "dev": true, + "requires": { + "apollo-link": "^1.2.13", + "apollo-link-http-common": "^0.2.15", + "tslib": "^1.9.3" + } + }, + "apollo-link-http": { + "version": "1.5.16", + "resolved": "https://registry.npmjs.org/apollo-link-http/-/apollo-link-http-1.5.16.tgz", + "integrity": "sha512-IA3xA/OcrOzINRZEECI6IdhRp/Twom5X5L9jMehfzEo2AXdeRwAMlH5LuvTZHgKD8V1MBnXdM6YXawXkTDSmJw==", + "dev": true, + "requires": { + "apollo-link": "^1.2.13", + "apollo-link-http-common": "^0.2.15", + "tslib": "^1.9.3" + } + }, + "apollo-link-http-common": { + "version": "0.2.15", + "resolved": "https://registry.npmjs.org/apollo-link-http-common/-/apollo-link-http-common-0.2.15.tgz", + "integrity": "sha512-+Heey4S2IPsPyTf8Ag3PugUupASJMW894iVps6hXbvwtg1aHSNMXUYO5VG7iRHkPzqpuzT4HMBanCTXPjtGzxg==", + "dev": true, + "requires": { + "apollo-link": "^1.2.13", + "ts-invariant": "^0.4.0", + "tslib": "^1.9.3" + } + }, + "apollo-utilities": { + "version": "1.3.2", + "resolved": "https://registry.npmjs.org/apollo-utilities/-/apollo-utilities-1.3.2.tgz", + "integrity": "sha512-JWNHj8XChz7S4OZghV6yc9FNnzEXj285QYp/nLNh943iObycI5GTDO3NGR9Dth12LRrSFMeDOConPfPln+WGfg==", + "dev": true, + "requires": { + "@wry/equality": "^0.1.2", + "fast-json-stable-stringify": "^2.0.0", + "ts-invariant": "^0.4.0", + "tslib": "^1.9.3" + } + }, "aproba": { "version": "1.2.0", "resolved": "https://registry.npmjs.org/aproba/-/aproba-1.2.0.tgz", - "integrity": "sha512-Y9J6ZjXtoYh8RnXVCMOU/ttDmk1aBjunq9vO0ta5x85WDQiQfUF9sIPBITdbiiIVcBo03Hi3jMxigBtsddlXRw==" + "integrity": "sha512-Y9J6ZjXtoYh8RnXVCMOU/ttDmk1aBjunq9vO0ta5x85WDQiQfUF9sIPBITdbiiIVcBo03Hi3jMxigBtsddlXRw==", + "dev": true }, "argparse": { "version": "1.0.10", "resolved": "https://registry.npmjs.org/argparse/-/argparse-1.0.10.tgz", "integrity": "sha512-o5Roy6tNG4SL/FOkCAN6RzjiakZS25RLYFrcMttJqbdd8BWrnA+fGz57iN5Pb06pvBGvl5gQ0B48dJlslXvoTg==", + "dev": true, "requires": { "sprintf-js": "~1.0.2" } @@ -1073,27 +1503,38 @@ "arr-diff": { "version": "4.0.0", "resolved": "https://registry.npmjs.org/arr-diff/-/arr-diff-4.0.0.tgz", - "integrity": "sha1-1kYQdP6/7HHn4VI1dhoyml3HxSA=" + "integrity": "sha1-1kYQdP6/7HHn4VI1dhoyml3HxSA=", + "dev": true }, "arr-flatten": { "version": "1.1.0", "resolved": "https://registry.npmjs.org/arr-flatten/-/arr-flatten-1.1.0.tgz", - "integrity": "sha512-L3hKV5R/p5o81R7O02IGnwpDmkp6E982XhtbuwSe3O4qOtMMMtodicASA1Cny2U+aCXcNpml+m4dPsvsJ3jatg==" + "integrity": "sha512-L3hKV5R/p5o81R7O02IGnwpDmkp6E982XhtbuwSe3O4qOtMMMtodicASA1Cny2U+aCXcNpml+m4dPsvsJ3jatg==", + "dev": true }, "arr-union": { "version": "3.1.0", "resolved": "https://registry.npmjs.org/arr-union/-/arr-union-3.1.0.tgz", - "integrity": "sha1-45sJrqne+Gao8gbiiK9jkZuuOcQ=" + "integrity": "sha1-45sJrqne+Gao8gbiiK9jkZuuOcQ=", + "dev": true }, "array-flatten": { "version": "2.1.2", "resolved": "https://registry.npmjs.org/array-flatten/-/array-flatten-2.1.2.tgz", - "integrity": "sha512-hNfzcOV8W4NdualtqBFPyVO+54DSJuZGY9qT4pRroB6S9e3iiido2ISIC5h9R2sPJ8H3FHCIiEnsv1lPXO3KtQ==" + "integrity": "sha512-hNfzcOV8W4NdualtqBFPyVO+54DSJuZGY9qT4pRroB6S9e3iiido2ISIC5h9R2sPJ8H3FHCIiEnsv1lPXO3KtQ==", + "dev": true + }, + "array-tree-filter": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/array-tree-filter/-/array-tree-filter-2.1.0.tgz", + "integrity": "sha512-4ROwICNlNw/Hqa9v+rk5h22KjmzB1JGTMVKP2AKJBOCgb0yL0ASf0+YvCcLNNwquOHNX48jkeZIJ3a+oOQqKcw==", + "dev": true }, "array-union": { "version": "1.0.2", "resolved": "https://registry.npmjs.org/array-union/-/array-union-1.0.2.tgz", "integrity": "sha1-mjRBDk9OPaI96jdb5b5w8kd47Dk=", + "dev": true, "requires": { "array-uniq": "^1.0.1" } @@ -1101,22 +1542,43 @@ "array-uniq": { "version": "1.0.3", "resolved": "https://registry.npmjs.org/array-uniq/-/array-uniq-1.0.3.tgz", - "integrity": "sha1-r2rId6Jcx/dOBYiUdThY39sk/bY=" + "integrity": "sha1-r2rId6Jcx/dOBYiUdThY39sk/bY=", + "dev": true }, "array-unique": { "version": "0.3.2", "resolved": "https://registry.npmjs.org/array-unique/-/array-unique-0.3.2.tgz", - "integrity": "sha1-qJS3XUvE9s1nnvMkSp/Y9Gri1Cg=" + "integrity": "sha1-qJS3XUvE9s1nnvMkSp/Y9Gri1Cg=", + "dev": true }, "arrify": { "version": "1.0.1", "resolved": "https://registry.npmjs.org/arrify/-/arrify-1.0.1.tgz", - "integrity": "sha1-iYUI2iIm84DfkEcoRWhJwVAaSw0=" + "integrity": "sha1-iYUI2iIm84DfkEcoRWhJwVAaSw0=", + "dev": true + }, + "asap": { + "version": "2.0.6", + "resolved": "https://registry.npmjs.org/asap/-/asap-2.0.6.tgz", + "integrity": "sha1-5QNHYR1+aQlDIIu9r+vLwvuGbUY=", + "dev": true, + "optional": true + }, + "asn1": { + "version": "0.2.4", + "resolved": "https://registry.npmjs.org/asn1/-/asn1-0.2.4.tgz", + "integrity": "sha512-jxwzQpLQjSmWXgwaCZE9Nz+glAG01yF1QnWgbhGwHI5A6FRIEY6IVqtHhIepHqI7/kyEyQEagBC5mBEFlIYvdg==", + "dev": true, + "optional": true, + "requires": { + "safer-buffer": "~2.1.0" + } }, "asn1.js": { "version": "4.10.1", "resolved": "https://registry.npmjs.org/asn1.js/-/asn1.js-4.10.1.tgz", "integrity": "sha512-p32cOF5q0Zqs9uBiONKYLm6BClCoBCM5O9JfeUSlnQLBTxYdTK+pW+nXflm8UkKd2UYlEbYz5qEi0JuZR9ckSw==", + "dev": true, "requires": { "bn.js": "^4.0.0", "inherits": "^2.0.1", @@ -1127,6 +1589,7 @@ "version": "1.5.0", "resolved": "https://registry.npmjs.org/assert/-/assert-1.5.0.tgz", "integrity": "sha512-EDsgawzwoun2CZkCgtxJbv392v4nbk9XDD06zI+kQYoBM/3RBWLlEyJARDOmhAAosBjWACEkKL6S+lIZtcAubA==", + "dev": true, "requires": { "object-assign": "^4.1.1", "util": "0.10.3" @@ -1135,32 +1598,44 @@ "inherits": { "version": "2.0.1", "resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.1.tgz", - "integrity": "sha1-sX0I0ya0Qj5Wjv9xn5GwscvfafE=" + "integrity": "sha1-sX0I0ya0Qj5Wjv9xn5GwscvfafE=", + "dev": true }, "util": { "version": "0.10.3", "resolved": "https://registry.npmjs.org/util/-/util-0.10.3.tgz", "integrity": "sha1-evsa/lCAUkZInj23/g7TeTNqwPk=", + "dev": true, "requires": { "inherits": "2.0.1" } } } }, + "assert-plus": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/assert-plus/-/assert-plus-1.0.0.tgz", + "integrity": "sha1-8S4PPF13sLHN2RRpQuTpbB5N1SU=", + "dev": true, + "optional": true + }, "assign-symbols": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/assign-symbols/-/assign-symbols-1.0.0.tgz", - "integrity": "sha1-WWZ/QfrdTyDMvCu5a41Pf3jsA2c=" + "integrity": "sha1-WWZ/QfrdTyDMvCu5a41Pf3jsA2c=", + "dev": true }, "ast-types": { "version": "0.9.6", "resolved": "https://registry.npmjs.org/ast-types/-/ast-types-0.9.6.tgz", - "integrity": "sha1-ECyenpAF0+fjgpvwxPok7oYu6bk=" + "integrity": "sha1-ECyenpAF0+fjgpvwxPok7oYu6bk=", + "dev": true }, "async": { "version": "2.6.3", "resolved": "https://registry.npmjs.org/async/-/async-2.6.3.tgz", "integrity": "sha512-zflvls11DCy+dQWzTW2dzuilv8Z5X/pjfmZOWba6TNIVDm+2UDaJmXSOXlasHKfNBs8oo3M0aT50fDEWfKZjXg==", + "dev": true, "requires": { "lodash": "^4.17.14" } @@ -1168,36 +1643,78 @@ "async-each": { "version": "1.0.3", "resolved": "https://registry.npmjs.org/async-each/-/async-each-1.0.3.tgz", - "integrity": "sha512-z/WhQ5FPySLdvREByI2vZiTWwCnF0moMJ1hK9YQwDTHKh6I7/uSckMetoRGb5UBZPC1z0jlw+n/XCgjeH7y1AQ==" + "integrity": "sha512-z/WhQ5FPySLdvREByI2vZiTWwCnF0moMJ1hK9YQwDTHKh6I7/uSckMetoRGb5UBZPC1z0jlw+n/XCgjeH7y1AQ==", + "dev": true }, "async-limiter": { "version": "1.0.1", "resolved": "https://registry.npmjs.org/async-limiter/-/async-limiter-1.0.1.tgz", - "integrity": "sha512-csOlWGAcRFJaI6m+F2WKdnMKr4HhdhFVBk0H/QbJFMCr+uO2kwohwXQPxw/9OCxp05r5ghVBFSyioixx3gfkNQ==" + "integrity": "sha512-csOlWGAcRFJaI6m+F2WKdnMKr4HhdhFVBk0H/QbJFMCr+uO2kwohwXQPxw/9OCxp05r5ghVBFSyioixx3gfkNQ==", + "dev": true + }, + "async-validator": { + "version": "3.2.2", + "resolved": "https://registry.npmjs.org/async-validator/-/async-validator-3.2.2.tgz", + "integrity": "sha512-NT5efhGkksDqODAsARaTAlkPshMgmpWw80ijM2MEr1TrDczBETaNRS3GDd1jsVRK5YSfVW10Zscab98rDYkaBA==", + "dev": true + }, + "asynckit": { + "version": "0.4.0", + "resolved": "https://registry.npmjs.org/asynckit/-/asynckit-0.4.0.tgz", + "integrity": "sha1-x57Zf380y48robyXkLzDZkdLS3k=", + "dev": true, + "optional": true }, "atob": { "version": "2.1.2", "resolved": "https://registry.npmjs.org/atob/-/atob-2.1.2.tgz", - "integrity": "sha512-Wm6ukoaOGJi/73p/cl2GvLjTI5JM1k/O14isD73YML8StrH/7/lRFgmg8nICZgD3bZZvjwCGxtMOD3wWNAu8cg==" + "integrity": "sha512-Wm6ukoaOGJi/73p/cl2GvLjTI5JM1k/O14isD73YML8StrH/7/lRFgmg8nICZgD3bZZvjwCGxtMOD3wWNAu8cg==", + "dev": true }, "autoprefixer": { - "version": "9.6.1", - "resolved": "https://registry.npmjs.org/autoprefixer/-/autoprefixer-9.6.1.tgz", - "integrity": "sha512-aVo5WxR3VyvyJxcJC3h4FKfwCQvQWb1tSI5VHNibddCVWrcD1NvlxEweg3TSgiPztMnWfjpy2FURKA2kvDE+Tw==", + "version": "9.7.2", + "resolved": "https://registry.npmjs.org/autoprefixer/-/autoprefixer-9.7.2.tgz", + "integrity": "sha512-LCAfcdej1182uVvPOZnytbq61AhnOZ/4JelDaJGDeNwewyU1AMaNthcHsyz1NRjTmd2FkurMckLWfkHg3Z//KA==", + "dev": true, "requires": { - "browserslist": "^4.6.3", - "caniuse-lite": "^1.0.30000980", + "browserslist": "^4.7.3", + "caniuse-lite": "^1.0.30001010", "chalk": "^2.4.2", "normalize-range": "^0.1.2", "num2fraction": "^1.2.2", - "postcss": "^7.0.17", - "postcss-value-parser": "^4.0.0" + "postcss": "^7.0.23", + "postcss-value-parser": "^4.0.2" + } + }, + "aws-sign2": { + "version": "0.7.0", + "resolved": "https://registry.npmjs.org/aws-sign2/-/aws-sign2-0.7.0.tgz", + "integrity": "sha1-tG6JCTSpWR8tL2+G1+ap8bP+dqg=", + "dev": true, + "optional": true + }, + "aws4": { + "version": "1.8.0", + "resolved": "https://registry.npmjs.org/aws4/-/aws4-1.8.0.tgz", + "integrity": "sha512-ReZxvNHIOv88FlT7rxcXIIC0fPt4KZqZbOlivyWtXLt8ESx84zd3kMC6iK5jVeS2qt+g7ftS7ye4fi06X5rtRQ==", + "dev": true, + "optional": true + }, + "axios": { + "version": "0.19.0", + "resolved": "https://registry.npmjs.org/axios/-/axios-0.19.0.tgz", + "integrity": "sha512-1uvKqKQta3KBxIz14F2v06AEHZ/dIoeKfbTRkK1E5oqjDnuEerLmYTgJB5AiQZHJcljpg1TuRzdjDR06qNk0DQ==", + "dev": true, + "requires": { + "follow-redirects": "1.5.10", + "is-buffer": "^2.0.2" } }, "babel-code-frame": { "version": "6.26.0", "resolved": "https://registry.npmjs.org/babel-code-frame/-/babel-code-frame-6.26.0.tgz", "integrity": "sha1-Y/1D99weO7fONZR9uP42mj9Yx0s=", + "dev": true, "requires": { "chalk": "^1.1.3", "esutils": "^2.0.2", @@ -1207,12 +1724,14 @@ "ansi-styles": { "version": "2.2.1", "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-2.2.1.tgz", - "integrity": "sha1-tDLdM1i2NM914eRmQ2gkBTPB3b4=" + "integrity": "sha1-tDLdM1i2NM914eRmQ2gkBTPB3b4=", + "dev": true }, "chalk": { "version": "1.1.3", "resolved": "https://registry.npmjs.org/chalk/-/chalk-1.1.3.tgz", "integrity": "sha1-qBFcVeSnAv5NFQq9OHKCKn4J/Jg=", + "dev": true, "requires": { "ansi-styles": "^2.2.1", "escape-string-regexp": "^1.0.2", @@ -1224,19 +1743,28 @@ "js-tokens": { "version": "3.0.2", "resolved": "https://registry.npmjs.org/js-tokens/-/js-tokens-3.0.2.tgz", - "integrity": "sha1-mGbfOVECEw449/mWvOtlRDIJwls=" + "integrity": "sha1-mGbfOVECEw449/mWvOtlRDIJwls=", + "dev": true }, "supports-color": { "version": "2.0.0", "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-2.0.0.tgz", - "integrity": "sha1-U10EXOa2Nj+kARcIRimZXp3zJMc=" + "integrity": "sha1-U10EXOa2Nj+kARcIRimZXp3zJMc=", + "dev": true } } }, + "babel-helper-vue-jsx-merge-props": { + "version": "2.0.3", + "resolved": "https://registry.npmjs.org/babel-helper-vue-jsx-merge-props/-/babel-helper-vue-jsx-merge-props-2.0.3.tgz", + "integrity": "sha512-gsLiKK7Qrb7zYJNgiXKpXblxbV5ffSwR0f5whkPAaBAR4fhi6bwRZxX9wBlIc5M/v8CCkXUbXZL4N/nSE97cqg==", + "dev": true + }, "babel-loader": { "version": "8.0.6", "resolved": "https://registry.npmjs.org/babel-loader/-/babel-loader-8.0.6.tgz", "integrity": "sha512-4BmWKtBOBm13uoUwd08UwjZlaw3O9GWf456R9j+5YykFZ6LUIjIKLc0zEZf+hauxPOJs96C8k6FvYD09vWzhYw==", + "dev": true, "requires": { "find-cache-dir": "^2.0.0", "loader-utils": "^1.0.2", @@ -1248,6 +1776,7 @@ "version": "2.0.1", "resolved": "https://registry.npmjs.org/babel-merge/-/babel-merge-2.0.1.tgz", "integrity": "sha512-puTQQxuzS+0JlMyVdfsTVaCgzqjBXKPMv7oUANpYcHFY+7IptWZ4PZDYX+qBxrRMtrriuBA44LkKpS99EJzqVA==", + "dev": true, "requires": { "@babel/core": "^7.0.0-beta.49", "deepmerge": "^2.1.0", @@ -1258,19 +1787,32 @@ "version": "2.3.0", "resolved": "https://registry.npmjs.org/babel-plugin-dynamic-import-node/-/babel-plugin-dynamic-import-node-2.3.0.tgz", "integrity": "sha512-o6qFkpeQEBxcqt0XYlWzAVxNCSCZdUgcR8IRlhD/8DylxjjO4foPcvTW0GGKa/cVt3rvxZ7o5ippJ+/0nvLhlQ==", + "dev": true, "requires": { "object.assign": "^4.1.0" } }, + "babel-runtime": { + "version": "6.26.0", + "resolved": "https://registry.npmjs.org/babel-runtime/-/babel-runtime-6.26.0.tgz", + "integrity": "sha1-llxwWGaOgrVde/4E/yM3vItWR/4=", + "dev": true, + "requires": { + "core-js": "^2.4.0", + "regenerator-runtime": "^0.11.0" + } + }, "balanced-match": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-1.0.0.tgz", - "integrity": "sha1-ibTRmasr7kneFk6gK4nORi1xt2c=" + "integrity": "sha1-ibTRmasr7kneFk6gK4nORi1xt2c=", + "dev": true }, "base": { "version": "0.11.2", "resolved": "https://registry.npmjs.org/base/-/base-0.11.2.tgz", "integrity": "sha512-5T6P4xPgpp0YDFvSWwEZ4NoE3aM4QBQXDzmVbraCkFj8zHM+mba8SyqB5DbZWyR7mYHo6Y7BdQo3MoA4m0TeQg==", + "dev": true, "requires": { "cache-base": "^1.0.1", "class-utils": "^0.3.5", @@ -1285,6 +1827,7 @@ "version": "1.0.0", "resolved": "https://registry.npmjs.org/define-property/-/define-property-1.0.0.tgz", "integrity": "sha1-dp66rz9KY6rTr56NMEybvnm/sOY=", + "dev": true, "requires": { "is-descriptor": "^1.0.0" } @@ -1293,6 +1836,7 @@ "version": "1.0.0", "resolved": "https://registry.npmjs.org/is-accessor-descriptor/-/is-accessor-descriptor-1.0.0.tgz", "integrity": "sha512-m5hnHTkcVsPfqx3AKlyttIPb7J+XykHvJP2B9bZDjlhLIoEq4XoK64Vg7boZlVWYK6LUY94dYPEE7Lh0ZkZKcQ==", + "dev": true, "requires": { "kind-of": "^6.0.0" } @@ -1301,6 +1845,7 @@ "version": "1.0.0", "resolved": "https://registry.npmjs.org/is-data-descriptor/-/is-data-descriptor-1.0.0.tgz", "integrity": "sha512-jbRXy1FmtAoCjQkVmIVYwuuqDFUbaOeDjmed1tOGPrsMhtJA4rD9tkgA0F1qJ3gRFRXcHYVkdeaP50Q5rE/jLQ==", + "dev": true, "requires": { "kind-of": "^6.0.0" } @@ -1309,6 +1854,7 @@ "version": "1.0.2", "resolved": "https://registry.npmjs.org/is-descriptor/-/is-descriptor-1.0.2.tgz", "integrity": "sha512-2eis5WqQGV7peooDyLmNEPUrps9+SXX5c9pL3xEB+4e9HnGuDa7mB7kHxHw4CbqS9k1T2hOH3miL8n8WtiYVtg==", + "dev": true, "requires": { "is-accessor-descriptor": "^1.0.0", "is-data-descriptor": "^1.0.0", @@ -1320,37 +1866,54 @@ "base64-js": { "version": "1.3.1", "resolved": "https://registry.npmjs.org/base64-js/-/base64-js-1.3.1.tgz", - "integrity": "sha512-mLQ4i2QO1ytvGWFWmcngKO//JXAQueZvwEKtjgQFM4jIK0kU+ytMfplL8j+n5mspOfjHwoAg+9yhb7BwAHm36g==" + "integrity": "sha512-mLQ4i2QO1ytvGWFWmcngKO//JXAQueZvwEKtjgQFM4jIK0kU+ytMfplL8j+n5mspOfjHwoAg+9yhb7BwAHm36g==", + "dev": true }, "batch": { "version": "0.6.1", "resolved": "https://registry.npmjs.org/batch/-/batch-0.6.1.tgz", - "integrity": "sha1-3DQxT05nkxgJP8dgJyUl+UvyXBY=" + "integrity": "sha1-3DQxT05nkxgJP8dgJyUl+UvyXBY=", + "dev": true + }, + "bcrypt-pbkdf": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/bcrypt-pbkdf/-/bcrypt-pbkdf-1.0.2.tgz", + "integrity": "sha1-pDAdOJtqQ/m2f/PKEaP2Y342Dp4=", + "dev": true, + "optional": true, + "requires": { + "tweetnacl": "^0.14.3" + } }, "big.js": { "version": "5.2.2", "resolved": "https://registry.npmjs.org/big.js/-/big.js-5.2.2.tgz", - "integrity": "sha512-vyL2OymJxmarO8gxMr0mhChsO9QGwhynfuu4+MHTAW6czfq9humCB7rKpUjDd9YUiDPU4mzpyupFSvOClAwbmQ==" + "integrity": "sha512-vyL2OymJxmarO8gxMr0mhChsO9QGwhynfuu4+MHTAW6czfq9humCB7rKpUjDd9YUiDPU4mzpyupFSvOClAwbmQ==", + "dev": true }, "binary-extensions": { "version": "1.13.1", "resolved": "https://registry.npmjs.org/binary-extensions/-/binary-extensions-1.13.1.tgz", - "integrity": "sha512-Un7MIEDdUC5gNpcGDV97op1Ywk748MpHcFTHoYs6qnj1Z3j7I53VG3nwZhKzoBZmbdRNnb6WRdFlwl7tSDuZGw==" + "integrity": "sha512-Un7MIEDdUC5gNpcGDV97op1Ywk748MpHcFTHoYs6qnj1Z3j7I53VG3nwZhKzoBZmbdRNnb6WRdFlwl7tSDuZGw==", + "dev": true }, "bluebird": { - "version": "3.5.5", - "resolved": "https://registry.npmjs.org/bluebird/-/bluebird-3.5.5.tgz", - "integrity": "sha512-5am6HnnfN+urzt4yfg7IgTbotDjIT/u8AJpEt0sIU9FtXfVeezXAPKswrG+xKUCOYAINpSdgZVDU6QFh+cuH3w==" + "version": "3.7.1", + "resolved": "https://registry.npmjs.org/bluebird/-/bluebird-3.7.1.tgz", + "integrity": "sha512-DdmyoGCleJnkbp3nkbxTLJ18rjDsE4yCggEwKNXkeV123sPNfOCYeDoeuOY+F2FrSjO1YXcTU+dsy96KMy+gcg==", + "dev": true }, "bn.js": { "version": "4.11.8", "resolved": "https://registry.npmjs.org/bn.js/-/bn.js-4.11.8.tgz", - "integrity": "sha512-ItfYfPLkWHUjckQCk8xC+LwxgK8NYcXywGigJgSwOP8Y2iyWT4f2vsZnoOXTTbo+o5yXmIUJ4gn5538SO5S3gA==" + "integrity": "sha512-ItfYfPLkWHUjckQCk8xC+LwxgK8NYcXywGigJgSwOP8Y2iyWT4f2vsZnoOXTTbo+o5yXmIUJ4gn5538SO5S3gA==", + "dev": true }, "body-parser": { "version": "1.19.0", "resolved": "https://registry.npmjs.org/body-parser/-/body-parser-1.19.0.tgz", "integrity": "sha512-dhEPs72UPbDnAQJ9ZKMNTP6ptJaionhP5cBb541nXPlW60Jepo9RV/a4fX4XWW9CuFNK22krhrj1+rgzifNCsw==", + "dev": true, "requires": { "bytes": "3.1.0", "content-type": "~1.0.4", @@ -1367,20 +1930,17 @@ "bytes": { "version": "3.1.0", "resolved": "https://registry.npmjs.org/bytes/-/bytes-3.1.0.tgz", - "integrity": "sha512-zauLjrfCG+xvoyaqLoV8bLVXXNGC4JqlxFCutSDWA6fJrTo2ZuvLYTqZ7aHBLZSMOopbzwv8f+wZcVzfVTI2Dg==" + "integrity": "sha512-zauLjrfCG+xvoyaqLoV8bLVXXNGC4JqlxFCutSDWA6fJrTo2ZuvLYTqZ7aHBLZSMOopbzwv8f+wZcVzfVTI2Dg==", + "dev": true }, "debug": { "version": "2.6.9", "resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz", "integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==", + "dev": true, "requires": { "ms": "2.0.0" } - }, - "ms": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz", - "integrity": "sha1-VgiurfwAvmwpAd9fmGF4jeDVl8g=" } } }, @@ -1388,6 +1948,7 @@ "version": "3.5.0", "resolved": "https://registry.npmjs.org/bonjour/-/bonjour-3.5.0.tgz", "integrity": "sha1-jokKGD2O6aI5OzhExpGkK897yfU=", + "dev": true, "requires": { "array-flatten": "^2.1.0", "deep-equal": "^1.0.1", @@ -1400,12 +1961,14 @@ "boolbase": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/boolbase/-/boolbase-1.0.0.tgz", - "integrity": "sha1-aN/1++YMUes3cl6p4+0xDcwed24=" + "integrity": "sha1-aN/1++YMUes3cl6p4+0xDcwed24=", + "dev": true }, "brace-expansion": { "version": "1.1.11", "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.11.tgz", "integrity": "sha512-iCuPHDFgrHX7H2vEI/5xpz07zSHB00TpugqhmYtVmMO6518mCuRMoOYFldEBl0g187ufozdaHgWKcYFb61qGiA==", + "dev": true, "requires": { "balanced-match": "^1.0.0", "concat-map": "0.0.1" @@ -1415,6 +1978,7 @@ "version": "2.3.2", "resolved": "https://registry.npmjs.org/braces/-/braces-2.3.2.tgz", "integrity": "sha512-aNdbnj9P8PjdXU4ybaWLK2IF3jc/EoDYbC7AazW6to3TRsfXxscC9UXOB5iDiEQrkyIbWp2SLQda4+QAa7nc3w==", + "dev": true, "requires": { "arr-flatten": "^1.1.0", "array-unique": "^0.3.2", @@ -1432,6 +1996,7 @@ "version": "2.0.1", "resolved": "https://registry.npmjs.org/extend-shallow/-/extend-shallow-2.0.1.tgz", "integrity": "sha1-Ua99YUrZqfYQ6huvu5idaxxWiQ8=", + "dev": true, "requires": { "is-extendable": "^0.1.0" } @@ -1439,19 +2004,22 @@ "is-extendable": { "version": "0.1.1", "resolved": "https://registry.npmjs.org/is-extendable/-/is-extendable-0.1.1.tgz", - "integrity": "sha1-YrEQ4omkcUGOPsNqYX1HLjAd/Ik=" + "integrity": "sha1-YrEQ4omkcUGOPsNqYX1HLjAd/Ik=", + "dev": true } } }, "brorand": { "version": "1.1.0", "resolved": "https://registry.npmjs.org/brorand/-/brorand-1.1.0.tgz", - "integrity": "sha1-EsJe/kCkXjwyPrhnWgoM5XsiNx8=" + "integrity": "sha1-EsJe/kCkXjwyPrhnWgoM5XsiNx8=", + "dev": true }, "browserify-aes": { "version": "1.2.0", "resolved": "https://registry.npmjs.org/browserify-aes/-/browserify-aes-1.2.0.tgz", "integrity": "sha512-+7CHXqGuspUn/Sl5aO7Ea0xWGAtETPXNSAjHo48JfLdPWcMng33Xe4znFvQweqc/uzk5zSOI3H52CYnjCfb5hA==", + "dev": true, "requires": { "buffer-xor": "^1.0.3", "cipher-base": "^1.0.0", @@ -1465,6 +2033,7 @@ "version": "1.0.1", "resolved": "https://registry.npmjs.org/browserify-cipher/-/browserify-cipher-1.0.1.tgz", "integrity": "sha512-sPhkz0ARKbf4rRQt2hTpAHqn47X3llLkUGn+xEJzLjwY8LRs2p0v7ljvI5EyoRO/mexrNunNECisZs+gw2zz1w==", + "dev": true, "requires": { "browserify-aes": "^1.0.4", "browserify-des": "^1.0.0", @@ -1475,6 +2044,7 @@ "version": "1.0.2", "resolved": "https://registry.npmjs.org/browserify-des/-/browserify-des-1.0.2.tgz", "integrity": "sha512-BioO1xf3hFwz4kc6iBhI3ieDFompMhrMlnDFC4/0/vd5MokpuAc3R+LYbwTA9A5Yc9pq9UYPqffKpW2ObuwX5A==", + "dev": true, "requires": { "cipher-base": "^1.0.1", "des.js": "^1.0.0", @@ -1486,6 +2056,7 @@ "version": "4.0.1", "resolved": "https://registry.npmjs.org/browserify-rsa/-/browserify-rsa-4.0.1.tgz", "integrity": "sha1-IeCr+vbyApzy+vsTNWenAdQTVSQ=", + "dev": true, "requires": { "bn.js": "^4.1.0", "randombytes": "^2.0.1" @@ -1495,6 +2066,7 @@ "version": "4.0.4", "resolved": "https://registry.npmjs.org/browserify-sign/-/browserify-sign-4.0.4.tgz", "integrity": "sha1-qk62jl17ZYuqa/alfmMMvXqT0pg=", + "dev": true, "requires": { "bn.js": "^4.1.1", "browserify-rsa": "^4.0.0", @@ -1509,24 +2081,27 @@ "version": "0.2.0", "resolved": "https://registry.npmjs.org/browserify-zlib/-/browserify-zlib-0.2.0.tgz", "integrity": "sha512-Z942RysHXmJrhqk88FmKBVq/v5tqmSkDz7p54G/MGyjMnCFFnC79XWNbg+Vta8W6Wb2qtSZTSxIGkJrRpCFEiA==", + "dev": true, "requires": { "pako": "~1.0.5" } }, "browserslist": { - "version": "4.7.0", - "resolved": "https://registry.npmjs.org/browserslist/-/browserslist-4.7.0.tgz", - "integrity": "sha512-9rGNDtnj+HaahxiVV38Gn8n8Lr8REKsel68v1sPFfIGEK6uSXTY3h9acgiT1dZVtOOUtifo/Dn8daDQ5dUgVsA==", + "version": "4.7.3", + "resolved": "https://registry.npmjs.org/browserslist/-/browserslist-4.7.3.tgz", + "integrity": "sha512-jWvmhqYpx+9EZm/FxcZSbUZyDEvDTLDi3nSAKbzEkyWvtI0mNSmUosey+5awDW1RUlrgXbQb5A6qY1xQH9U6MQ==", + "dev": true, "requires": { - "caniuse-lite": "^1.0.30000989", - "electron-to-chromium": "^1.3.247", - "node-releases": "^1.1.29" + "caniuse-lite": "^1.0.30001010", + "electron-to-chromium": "^1.3.306", + "node-releases": "^1.1.40" } }, "buffer": { - "version": "4.9.1", - "resolved": "https://registry.npmjs.org/buffer/-/buffer-4.9.1.tgz", - "integrity": "sha1-bRu2AbB6TvztlwlBMgkwJ8lbwpg=", + "version": "4.9.2", + "resolved": "https://registry.npmjs.org/buffer/-/buffer-4.9.2.tgz", + "integrity": "sha512-xq+q3SRMOxGivLhBNaUdC64hDTQwejJ+H0T/NB1XMtTVEwNTrfFF3gAxiyW0Bu/xWEGhjVKgUcMhCrUy2+uCWg==", + "dev": true, "requires": { "base64-js": "^1.0.2", "ieee754": "^1.1.4", @@ -1536,32 +2111,38 @@ "buffer-from": { "version": "1.1.1", "resolved": "https://registry.npmjs.org/buffer-from/-/buffer-from-1.1.1.tgz", - "integrity": "sha512-MQcXEUbCKtEo7bhqEs6560Hyd4XaovZlO/k9V3hjVUF/zwW7KBVdSK4gIt/bzwS9MbR5qob+F5jusZsb0YQK2A==" + "integrity": "sha512-MQcXEUbCKtEo7bhqEs6560Hyd4XaovZlO/k9V3hjVUF/zwW7KBVdSK4gIt/bzwS9MbR5qob+F5jusZsb0YQK2A==", + "dev": true }, "buffer-indexof": { "version": "1.1.1", "resolved": "https://registry.npmjs.org/buffer-indexof/-/buffer-indexof-1.1.1.tgz", - "integrity": "sha512-4/rOEg86jivtPTeOUUT61jJO1Ya1TrR/OkqCSZDyq84WJh3LuuiphBYJN+fm5xufIk4XAFcEwte/8WzC8If/1g==" + "integrity": "sha512-4/rOEg86jivtPTeOUUT61jJO1Ya1TrR/OkqCSZDyq84WJh3LuuiphBYJN+fm5xufIk4XAFcEwte/8WzC8If/1g==", + "dev": true }, "buffer-xor": { "version": "1.0.3", "resolved": "https://registry.npmjs.org/buffer-xor/-/buffer-xor-1.0.3.tgz", - "integrity": "sha1-JuYe0UIvtw3ULm42cp7VHYVf6Nk=" + "integrity": "sha1-JuYe0UIvtw3ULm42cp7VHYVf6Nk=", + "dev": true }, "builtin-status-codes": { "version": "3.0.0", "resolved": "https://registry.npmjs.org/builtin-status-codes/-/builtin-status-codes-3.0.0.tgz", - "integrity": "sha1-hZgoeOIbmOHGZCXgPQF0eI9Wnug=" + "integrity": "sha1-hZgoeOIbmOHGZCXgPQF0eI9Wnug=", + "dev": true }, "bytes": { "version": "3.0.0", "resolved": "https://registry.npmjs.org/bytes/-/bytes-3.0.0.tgz", - "integrity": "sha1-0ygVQE1olpn4Wk6k+odV3ROpYEg=" + "integrity": "sha1-0ygVQE1olpn4Wk6k+odV3ROpYEg=", + "dev": true }, "cacache": { "version": "12.0.3", "resolved": "https://registry.npmjs.org/cacache/-/cacache-12.0.3.tgz", "integrity": "sha512-kqdmfXEGFepesTuROHMs3MpFLWrPkSSpRqOw80RCflZXy/khxaArvFrQ7uJxSUduzAufc6G0g1VUCOZXxWavPw==", + "dev": true, "requires": { "bluebird": "^3.5.5", "chownr": "^1.1.1", @@ -1584,6 +2165,7 @@ "version": "1.0.1", "resolved": "https://registry.npmjs.org/cache-base/-/cache-base-1.0.1.tgz", "integrity": "sha512-AKcdTnFSWATd5/GCPRxr2ChwIJ85CeyrEyjRHlKxQ56d4XJMGym0uAiKn0xbLOGOl3+yRpOTi484dVCEc5AUzQ==", + "dev": true, "requires": { "collection-visit": "^1.0.0", "component-emitter": "^1.2.1", @@ -1599,12 +2181,14 @@ "call-me-maybe": { "version": "1.0.1", "resolved": "https://registry.npmjs.org/call-me-maybe/-/call-me-maybe-1.0.1.tgz", - "integrity": "sha1-JtII6onje1y95gJQoV8DHBak1ms=" + "integrity": "sha1-JtII6onje1y95gJQoV8DHBak1ms=", + "dev": true }, "caller-callsite": { "version": "2.0.0", "resolved": "https://registry.npmjs.org/caller-callsite/-/caller-callsite-2.0.0.tgz", "integrity": "sha1-hH4PzgoiN1CpoCfFSzNzGtMVQTQ=", + "dev": true, "requires": { "callsites": "^2.0.0" } @@ -1613,6 +2197,7 @@ "version": "2.0.0", "resolved": "https://registry.npmjs.org/caller-path/-/caller-path-2.0.0.tgz", "integrity": "sha1-Ro+DBE42mrIBD6xfBs7uFbsssfQ=", + "dev": true, "requires": { "caller-callsite": "^2.0.0" } @@ -1620,12 +2205,14 @@ "callsites": { "version": "2.0.0", "resolved": "https://registry.npmjs.org/callsites/-/callsites-2.0.0.tgz", - "integrity": "sha1-BuuE8A7qQT2oav/vrL/7Ngk7PFA=" + "integrity": "sha1-BuuE8A7qQT2oav/vrL/7Ngk7PFA=", + "dev": true }, "camel-case": { "version": "3.0.0", "resolved": "https://registry.npmjs.org/camel-case/-/camel-case-3.0.0.tgz", "integrity": "sha1-yjw2iKTpzzpM2nd9xNy8cTJJz3M=", + "dev": true, "requires": { "no-case": "^2.2.0", "upper-case": "^1.1.1" @@ -1634,12 +2221,14 @@ "camelcase": { "version": "5.3.1", "resolved": "https://registry.npmjs.org/camelcase/-/camelcase-5.3.1.tgz", - "integrity": "sha512-L28STB170nwWS63UjtlEOE3dldQApaJXZkOI1uMFfzf3rRuPegHaHesyee+YxQ+W6SvRDQV6UrdOdRiR153wJg==" + "integrity": "sha512-L28STB170nwWS63UjtlEOE3dldQApaJXZkOI1uMFfzf3rRuPegHaHesyee+YxQ+W6SvRDQV6UrdOdRiR153wJg==", + "dev": true }, "caniuse-api": { "version": "3.0.0", "resolved": "https://registry.npmjs.org/caniuse-api/-/caniuse-api-3.0.0.tgz", "integrity": "sha512-bsTwuIg/BZZK/vreVTYYbSWoe2F+71P7K5QGEX+pT250DZbfU1MQ5prOKpPR+LL6uWKK3KMwMCAS74QB3Um1uw==", + "dev": true, "requires": { "browserslist": "^4.0.0", "caniuse-lite": "^1.0.0", @@ -1648,14 +2237,23 @@ } }, "caniuse-lite": { - "version": "1.0.30000989", - "resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30000989.tgz", - "integrity": "sha512-vrMcvSuMz16YY6GSVZ0dWDTJP8jqk3iFQ/Aq5iqblPwxSVVZI+zxDyTX0VPqtQsDnfdrBDcsmhgTEOh5R8Lbpw==" + "version": "1.0.30001011", + "resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001011.tgz", + "integrity": "sha512-h+Eqyn/YA6o6ZTqpS86PyRmNWOs1r54EBDcd2NTwwfsXQ8re1B38SnB+p2RKF8OUsyEIjeDU8XGec1RGO/wYCg==", + "dev": true + }, + "caseless": { + "version": "0.12.0", + "resolved": "https://registry.npmjs.org/caseless/-/caseless-0.12.0.tgz", + "integrity": "sha1-G2gcIf+EAzyCZUMJBolCDRhxUdw=", + "dev": true, + "optional": true }, "chalk": { "version": "2.4.2", "resolved": "https://registry.npmjs.org/chalk/-/chalk-2.4.2.tgz", "integrity": "sha512-Mti+f9lpJNcwF4tWV8/OrTTtF1gZi+f8FqlyAdouralcFWFQWF2+NgCHShjkCb+IFBLq9buZwE1xckQU4peSuQ==", + "dev": true, "requires": { "ansi-styles": "^3.2.1", "escape-string-regexp": "^1.0.5", @@ -1665,12 +2263,14 @@ "charenc": { "version": "0.0.2", "resolved": "https://registry.npmjs.org/charenc/-/charenc-0.0.2.tgz", - "integrity": "sha1-wKHS86cJLgN3S/qD8UwPxXkKhmc=" + "integrity": "sha1-wKHS86cJLgN3S/qD8UwPxXkKhmc=", + "dev": true }, "chokidar": { "version": "2.1.8", "resolved": "https://registry.npmjs.org/chokidar/-/chokidar-2.1.8.tgz", "integrity": "sha512-ZmZUazfOzf0Nve7duiCKD23PFSCs4JPoYyccjUFF3aQkQadqBhfzhjkwBH2mNOG9cTBwhamM37EIsIkZw3nRgg==", + "dev": true, "requires": { "anymatch": "^2.0.0", "async-each": "^1.0.1", @@ -1687,14 +2287,16 @@ } }, "chownr": { - "version": "1.1.2", - "resolved": "https://registry.npmjs.org/chownr/-/chownr-1.1.2.tgz", - "integrity": "sha512-GkfeAQh+QNy3wquu9oIZr6SS5x7wGdSgNQvD10X3r+AZr1Oys22HW8kAmDMvNg2+Dm0TeGaEuO8gFwdBXxwO8A==" + "version": "1.1.3", + "resolved": "https://registry.npmjs.org/chownr/-/chownr-1.1.3.tgz", + "integrity": "sha512-i70fVHhmV3DtTl6nqvZOnIjbY0Pe4kAUjwHj8z0zAdgBtYrJyYwLKCCuRBQ5ppkyL0AkN7HKRnETdmdp1zqNXw==", + "dev": true }, "chrome-trace-event": { "version": "1.0.2", "resolved": "https://registry.npmjs.org/chrome-trace-event/-/chrome-trace-event-1.0.2.tgz", "integrity": "sha512-9e/zx1jw7B4CO+c/RXoCsfg/x1AfUBioy4owYH0bJprEYAx5hRFLRhWBqHAG57D0ZM4H7vxbP7bPe0VwhQRYDQ==", + "dev": true, "requires": { "tslib": "^1.9.0" } @@ -1703,6 +2305,7 @@ "version": "1.0.4", "resolved": "https://registry.npmjs.org/cipher-base/-/cipher-base-1.0.4.tgz", "integrity": "sha512-Kkht5ye6ZGmwv40uUDZztayT2ThLQGfnj/T71N/XzeZeo3nf8foyW7zGTsPYkEya3m5f3cAypH+qe7YOrM1U2Q==", + "dev": true, "requires": { "inherits": "^2.0.1", "safe-buffer": "^5.0.1" @@ -1712,6 +2315,7 @@ "version": "0.3.6", "resolved": "https://registry.npmjs.org/class-utils/-/class-utils-0.3.6.tgz", "integrity": "sha512-qOhPa/Fj7s6TY8H8esGu5QNpMMQxz79h+urzrNYN6mn+9BnxlDGf5QZ+XeCDsxSjPqsSR56XOZOJmpeurnLMeg==", + "dev": true, "requires": { "arr-union": "^3.1.0", "define-property": "^0.2.5", @@ -1723,16 +2327,24 @@ "version": "0.2.5", "resolved": "https://registry.npmjs.org/define-property/-/define-property-0.2.5.tgz", "integrity": "sha1-w1se+RjsPJkPmlvFe+BKrOxcgRY=", + "dev": true, "requires": { "is-descriptor": "^0.1.0" } } } }, + "classnames": { + "version": "2.2.6", + "resolved": "https://registry.npmjs.org/classnames/-/classnames-2.2.6.tgz", + "integrity": "sha512-JR/iSQOSt+LQIWwrwEzJ9uk0xfN3mTVYMwt1Ir5mUcSN6pU+V4zQFFaJsclJbPuAUQH+yfWef6tm7l1quW3C8Q==", + "dev": true + }, "clean-css": { "version": "4.2.1", "resolved": "https://registry.npmjs.org/clean-css/-/clean-css-4.2.1.tgz", "integrity": "sha512-4ZxI6dy4lrY6FHzfiy1aEOXgu4LIsW2MhwG0VBKdcoGoH/XLFgaHSdLTGr4O8Be6A8r3MOphEiI8Gc1n0ecf3g==", + "dev": true, "requires": { "source-map": "~0.6.0" }, @@ -1740,7 +2352,8 @@ "source-map": { "version": "0.6.1", "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", - "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==" + "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==", + "dev": true } } }, @@ -1748,6 +2361,7 @@ "version": "5.0.0", "resolved": "https://registry.npmjs.org/cliui/-/cliui-5.0.0.tgz", "integrity": "sha512-PYeGSEmmHM6zvoef2w8TPzlrnNpXIjTipYK780YswmIP9vjxmd6Y2a3CB2Ks6/AU8NHjZugXvo8w3oWM2qnwXA==", + "dev": true, "requires": { "string-width": "^3.1.0", "strip-ansi": "^5.2.0", @@ -1757,12 +2371,14 @@ "ansi-regex": { "version": "4.1.0", "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-4.1.0.tgz", - "integrity": "sha512-1apePfXM1UOSqw0o9IiFAovVz9M5S1Dg+4TrDwfMewQ6p/rmMueb7tWZjQ1rx4Loy1ArBggoqGpfqqdI4rondg==" + "integrity": "sha512-1apePfXM1UOSqw0o9IiFAovVz9M5S1Dg+4TrDwfMewQ6p/rmMueb7tWZjQ1rx4Loy1ArBggoqGpfqqdI4rondg==", + "dev": true }, "string-width": { "version": "3.1.0", "resolved": "https://registry.npmjs.org/string-width/-/string-width-3.1.0.tgz", "integrity": "sha512-vafcv6KjVZKSgz06oM/H6GDBrAtz8vdhQakGjFIvNrHA6y3HCF1CInLy+QLq8dTJPQ1b+KDUqDFctkdRW44e1w==", + "dev": true, "requires": { "emoji-regex": "^7.0.1", "is-fullwidth-code-point": "^2.0.0", @@ -1773,16 +2389,24 @@ "version": "5.2.0", "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-5.2.0.tgz", "integrity": "sha512-DuRs1gKbBqsMKIZlrffwlug8MHkcnpjs5VPmL1PAh+mA30U0DTotfDZ0d2UUsXpPmPmMMJ6W773MaA3J+lbiWA==", + "dev": true, "requires": { "ansi-regex": "^4.1.0" } } } }, + "clone": { + "version": "2.1.2", + "resolved": "https://registry.npmjs.org/clone/-/clone-2.1.2.tgz", + "integrity": "sha1-G39Ln1kfHo+DZwQBYANFoCiHQ18=", + "dev": true + }, "coa": { "version": "2.0.2", "resolved": "https://registry.npmjs.org/coa/-/coa-2.0.2.tgz", "integrity": "sha512-q5/jG+YQnSy4nRTV4F7lPepBJZ8qBNJJDBuJdoejDyLXgmL7IEo+Le2JDZudFTFt7mrCqIRaSjws4ygRCTCAXA==", + "dev": true, "requires": { "@types/q": "^1.5.1", "chalk": "^2.4.1", @@ -1792,17 +2416,20 @@ "code-point-at": { "version": "1.1.0", "resolved": "https://registry.npmjs.org/code-point-at/-/code-point-at-1.1.0.tgz", - "integrity": "sha1-DQcLTQQ6W+ozovGkDi7bPZpMz3c=" + "integrity": "sha1-DQcLTQQ6W+ozovGkDi7bPZpMz3c=", + "dev": true }, "collect.js": { - "version": "4.16.6", - "resolved": "https://registry.npmjs.org/collect.js/-/collect.js-4.16.6.tgz", - "integrity": "sha512-Y0mR+JAWmUmA7HOByjdtc4dnQF/PRl4ap3jpG7RpC5vJjMmjDxBC8SFtp0s0vcRKoY+9WhJG0HUk1H2ze0Ao7A==" + "version": "4.18.9", + "resolved": "https://registry.npmjs.org/collect.js/-/collect.js-4.18.9.tgz", + "integrity": "sha512-/ocqUYqJFIRZo9mmY6NkdV/VGJnheSKhQ2OQm8X8r9AbxPoShQtvzyYHRQ057XuB9U9rywBfwYEBhnlSq8uQxA==", + "dev": true }, "collection-visit": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/collection-visit/-/collection-visit-1.0.0.tgz", "integrity": "sha1-S8A3PBZLwykbTTaMgpzxqApZ3KA=", + "dev": true, "requires": { "map-visit": "^1.0.0", "object-visit": "^1.0.0" @@ -1812,6 +2439,7 @@ "version": "3.1.2", "resolved": "https://registry.npmjs.org/color/-/color-3.1.2.tgz", "integrity": "sha512-vXTJhHebByxZn3lDvDJYw4lR5+uB3vuoHsuYA5AKuxRVn5wzzIfQKGLBmgdVRHKTJYeK5rvJcHnrd0Li49CFpg==", + "dev": true, "requires": { "color-convert": "^1.9.1", "color-string": "^1.5.2" @@ -1821,6 +2449,7 @@ "version": "1.9.3", "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-1.9.3.tgz", "integrity": "sha512-QfAUtd+vFdAtFQcC8CCyYt1fYWxSqAiK2cSD6zDB8N3cpsEBAvRxp9zOGg6G/SHHJYAT88/az/IuDGALsNVbGg==", + "dev": true, "requires": { "color-name": "1.1.3" } @@ -1828,36 +2457,67 @@ "color-name": { "version": "1.1.3", "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.3.tgz", - "integrity": "sha1-p9BVi9icQveV3UIyj3QIMcpTvCU=" + "integrity": "sha1-p9BVi9icQveV3UIyj3QIMcpTvCU=", + "dev": true }, "color-string": { "version": "1.5.3", "resolved": "https://registry.npmjs.org/color-string/-/color-string-1.5.3.tgz", "integrity": "sha512-dC2C5qeWoYkxki5UAXapdjqO672AM4vZuPGRQfO8b5HKuKGBbKWpITyDYN7TOFKvRW7kOgAn3746clDBMDJyQw==", + "dev": true, "requires": { "color-name": "^1.0.0", "simple-swizzle": "^0.2.2" } }, + "combined-stream": { + "version": "1.0.8", + "resolved": "https://registry.npmjs.org/combined-stream/-/combined-stream-1.0.8.tgz", + "integrity": "sha512-FQN4MRfuJeHf7cBbBMJFXhKSDq+2kAArBlmRBvcvFE5BB1HZKXtSFASDhdlz9zOYwxh8lDdnvmMOe/+5cdoEdg==", + "dev": true, + "optional": true, + "requires": { + "delayed-stream": "~1.0.0" + } + }, "commander": { "version": "2.17.1", "resolved": "https://registry.npmjs.org/commander/-/commander-2.17.1.tgz", - "integrity": "sha512-wPMUt6FnH2yzG95SA6mzjQOEKUU3aLaDEmzs1ti+1E9h+CsrZghRlqEM/EJ4KscsQVG8uNN4uVreUeT8+drlgg==" + "integrity": "sha512-wPMUt6FnH2yzG95SA6mzjQOEKUU3aLaDEmzs1ti+1E9h+CsrZghRlqEM/EJ4KscsQVG8uNN4uVreUeT8+drlgg==", + "dev": true }, "commondir": { "version": "1.0.1", "resolved": "https://registry.npmjs.org/commondir/-/commondir-1.0.1.tgz", - "integrity": "sha1-3dgA2gxmEnOTzKWVDqloo6rxJTs=" + "integrity": "sha1-3dgA2gxmEnOTzKWVDqloo6rxJTs=", + "dev": true + }, + "component-classes": { + "version": "1.2.6", + "resolved": "https://registry.npmjs.org/component-classes/-/component-classes-1.2.6.tgz", + "integrity": "sha1-xkI5TDYYpNiwuJGe/Mu9kw5c1pE=", + "dev": true, + "requires": { + "component-indexof": "0.0.3" + } }, "component-emitter": { "version": "1.3.0", "resolved": "https://registry.npmjs.org/component-emitter/-/component-emitter-1.3.0.tgz", - "integrity": "sha512-Rd3se6QB+sO1TwqZjscQrurpEPIfO0/yYnSin6Q/rD3mOutHvUrCAhJub3r90uNb+SESBuE0QYoB90YdfatsRg==" + "integrity": "sha512-Rd3se6QB+sO1TwqZjscQrurpEPIfO0/yYnSin6Q/rD3mOutHvUrCAhJub3r90uNb+SESBuE0QYoB90YdfatsRg==", + "dev": true + }, + "component-indexof": { + "version": "0.0.3", + "resolved": "https://registry.npmjs.org/component-indexof/-/component-indexof-0.0.3.tgz", + "integrity": "sha1-EdCRMSI5648yyPJa6csAL/6NPCQ=", + "dev": true }, "compressible": { "version": "2.0.17", "resolved": "https://registry.npmjs.org/compressible/-/compressible-2.0.17.tgz", "integrity": "sha512-BGHeLCK1GV7j1bSmQQAi26X+GgWcTjLr/0tzSvMCl3LH1w1IJ4PFSPoV5316b30cneTziC+B1a+3OjoSUcQYmw==", + "dev": true, "requires": { "mime-db": ">= 1.40.0 < 2" } @@ -1866,6 +2526,7 @@ "version": "1.7.4", "resolved": "https://registry.npmjs.org/compression/-/compression-1.7.4.tgz", "integrity": "sha512-jaSIDzP9pZVS4ZfQ+TzvtiWhdpFhE2RDHz8QJkpX9SIpLq88VueF5jJw6t+6CUQcAoA6t+x89MLrWAqpfDE8iQ==", + "dev": true, "requires": { "accepts": "~1.3.5", "bytes": "3.0.0", @@ -1880,26 +2541,24 @@ "version": "2.6.9", "resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz", "integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==", + "dev": true, "requires": { "ms": "2.0.0" } - }, - "ms": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz", - "integrity": "sha1-VgiurfwAvmwpAd9fmGF4jeDVl8g=" } } }, "concat-map": { "version": "0.0.1", "resolved": "https://registry.npmjs.org/concat-map/-/concat-map-0.0.1.tgz", - "integrity": "sha1-2Klr13/Wjfd5OnMDajug1UBdR3s=" + "integrity": "sha1-2Klr13/Wjfd5OnMDajug1UBdR3s=", + "dev": true }, "concat-stream": { "version": "1.6.2", "resolved": "https://registry.npmjs.org/concat-stream/-/concat-stream-1.6.2.tgz", "integrity": "sha512-27HBghJxjiZtIk3Ycvn/4kbJk/1uZuJFfuPEns6LaEvpvG1f0hTea8lilrouyo9mVc2GWdcEZ8OLoGmSADlrCw==", + "dev": true, "requires": { "buffer-from": "^1.0.0", "inherits": "^2.0.3", @@ -1911,6 +2570,7 @@ "version": "0.0.2", "resolved": "https://registry.npmjs.org/concatenate/-/concatenate-0.0.2.tgz", "integrity": "sha1-C0nW6MQQR9dyjNyNYqCGYjOXtJ8=", + "dev": true, "requires": { "globs": "^0.1.2" } @@ -1918,20 +2578,20 @@ "connect-history-api-fallback": { "version": "1.6.0", "resolved": "https://registry.npmjs.org/connect-history-api-fallback/-/connect-history-api-fallback-1.6.0.tgz", - "integrity": "sha512-e54B99q/OUoH64zYYRf3HBP5z24G38h5D3qXu23JGRoigpX5Ss4r9ZnDk3g0Z8uQC2x2lPaJ+UlWBc1ZWBWdLg==" + "integrity": "sha512-e54B99q/OUoH64zYYRf3HBP5z24G38h5D3qXu23JGRoigpX5Ss4r9ZnDk3g0Z8uQC2x2lPaJ+UlWBc1ZWBWdLg==", + "dev": true }, "console-browserify": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/console-browserify/-/console-browserify-1.1.0.tgz", - "integrity": "sha1-8CQcRXMKn8YyOyBtvzjtx0HQuxA=", - "requires": { - "date-now": "^0.1.4" - } + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/console-browserify/-/console-browserify-1.2.0.tgz", + "integrity": "sha512-ZMkYO/LkF17QvCPqM0gxw8yUzigAOZOSWSHg91FH6orS7vcEj5dVZTidN2fQ14yBSdg97RqhSNwLUXInd52OTA==", + "dev": true }, "consolidate": { "version": "0.15.1", "resolved": "https://registry.npmjs.org/consolidate/-/consolidate-0.15.1.tgz", "integrity": "sha512-DW46nrsMJgy9kqAbPt5rKaCr7uFtpo4mSUvLHIUbJEjm0vo+aY5QLwBUq3FK4tRnJr/X0Psc0C4jf/h+HtXSMw==", + "dev": true, "requires": { "bluebird": "^3.1.1" } @@ -1939,12 +2599,14 @@ "constants-browserify": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/constants-browserify/-/constants-browserify-1.0.0.tgz", - "integrity": "sha1-wguW2MYXdIqvHBYCF2DNJ/y4y3U=" + "integrity": "sha1-wguW2MYXdIqvHBYCF2DNJ/y4y3U=", + "dev": true }, "content-disposition": { "version": "0.5.3", "resolved": "https://registry.npmjs.org/content-disposition/-/content-disposition-0.5.3.tgz", "integrity": "sha512-ExO0774ikEObIAEV9kDo50o+79VCUdEB6n6lzKgGwupcVeRlhrj3qGAfwq8G6uBJjkqLrhT0qEYFcWng8z1z0g==", + "dev": true, "requires": { "safe-buffer": "5.1.2" } @@ -1952,12 +2614,14 @@ "content-type": { "version": "1.0.4", "resolved": "https://registry.npmjs.org/content-type/-/content-type-1.0.4.tgz", - "integrity": "sha512-hIP3EEPs8tB9AT1L+NUqtwOAps4mk2Zob89MWXMHjHWg9milF/j4osnnQLXBCBFBk/tvIG/tUc9mOUJiPBhPXA==" + "integrity": "sha512-hIP3EEPs8tB9AT1L+NUqtwOAps4mk2Zob89MWXMHjHWg9milF/j4osnnQLXBCBFBk/tvIG/tUc9mOUJiPBhPXA==", + "dev": true }, "convert-source-map": { - "version": "1.6.0", - "resolved": "https://registry.npmjs.org/convert-source-map/-/convert-source-map-1.6.0.tgz", - "integrity": "sha512-eFu7XigvxdZ1ETfbgPBohgyQ/Z++C0eEhTor0qRwBw9unw+L0/6V8wkSuGgzdThkiS5lSpdptOQPD8Ak40a+7A==", + "version": "1.7.0", + "resolved": "https://registry.npmjs.org/convert-source-map/-/convert-source-map-1.7.0.tgz", + "integrity": "sha512-4FJkXzKXEDB1snCFZlLP4gpC3JILicCpGbzG9f9G7tGqGCzETQ2hWPrcinA9oU4wtf2biUaEH5065UnMeR33oA==", + "dev": true, "requires": { "safe-buffer": "~5.1.1" } @@ -1965,17 +2629,20 @@ "cookie": { "version": "0.4.0", "resolved": "https://registry.npmjs.org/cookie/-/cookie-0.4.0.tgz", - "integrity": "sha512-+Hp8fLp57wnUSt0tY0tHEXh4voZRDnoIrZPqlo3DPiI4y9lwg/jqx+1Om94/W6ZaPDOUbnjOt/99w66zk+l1Xg==" + "integrity": "sha512-+Hp8fLp57wnUSt0tY0tHEXh4voZRDnoIrZPqlo3DPiI4y9lwg/jqx+1Om94/W6ZaPDOUbnjOt/99w66zk+l1Xg==", + "dev": true }, "cookie-signature": { "version": "1.0.6", "resolved": "https://registry.npmjs.org/cookie-signature/-/cookie-signature-1.0.6.tgz", - "integrity": "sha1-4wOogrNCzD7oylE6eZmXNNqzriw=" + "integrity": "sha1-4wOogrNCzD7oylE6eZmXNNqzriw=", + "dev": true }, "copy-concurrently": { "version": "1.0.5", "resolved": "https://registry.npmjs.org/copy-concurrently/-/copy-concurrently-1.0.5.tgz", "integrity": "sha512-f2domd9fsVDFtaFcbaRZuYXwtdmnzqbADSwhSWYxYB/Q8zsdUUFMXVRwXGDMWmbEzAn1kdRrtI1T/KTFOL4X2A==", + "dev": true, "requires": { "aproba": "^1.1.1", "fs-write-stream-atomic": "^1.0.8", @@ -1988,33 +2655,44 @@ "copy-descriptor": { "version": "0.1.1", "resolved": "https://registry.npmjs.org/copy-descriptor/-/copy-descriptor-0.1.1.tgz", - "integrity": "sha1-Z29us8OZl8LuGsOpJP1hJHSPV40=" + "integrity": "sha1-Z29us8OZl8LuGsOpJP1hJHSPV40=", + "dev": true + }, + "core-js": { + "version": "2.6.10", + "resolved": "https://registry.npmjs.org/core-js/-/core-js-2.6.10.tgz", + "integrity": "sha512-I39t74+4t+zau64EN1fE5v2W31Adtc/REhzWN+gWRRXg6WH5qAsZm62DHpQ1+Yhe4047T55jvzz7MUqF/dBBlA==", + "dev": true }, "core-js-compat": { - "version": "3.2.1", - "resolved": "https://registry.npmjs.org/core-js-compat/-/core-js-compat-3.2.1.tgz", - "integrity": "sha512-MwPZle5CF9dEaMYdDeWm73ao/IflDH+FjeJCWEADcEgFSE9TLimFKwJsfmkwzI8eC0Aj0mgvMDjeQjrElkz4/A==", + "version": "3.4.1", + "resolved": "https://registry.npmjs.org/core-js-compat/-/core-js-compat-3.4.1.tgz", + "integrity": "sha512-YdeJI26gLc0CQJ9asLE5obEgBz2I0+CIgnoTbS2T0d5IPQw/OCgCIFR527RmpduxjrB3gSEHoGOCTq9sigOyfw==", + "dev": true, "requires": { - "browserslist": "^4.6.6", + "browserslist": "^4.7.2", "semver": "^6.3.0" }, "dependencies": { "semver": { "version": "6.3.0", "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.0.tgz", - "integrity": "sha512-b39TBaTSfV6yBrapU89p5fKekE2m/NwnDocOVruQFS1/veMgdzuPcnOM34M6CwxW8jH/lxEa5rBoDeUwu5HHTw==" + "integrity": "sha512-b39TBaTSfV6yBrapU89p5fKekE2m/NwnDocOVruQFS1/veMgdzuPcnOM34M6CwxW8jH/lxEa5rBoDeUwu5HHTw==", + "dev": true } } }, "core-util-is": { "version": "1.0.2", "resolved": "https://registry.npmjs.org/core-util-is/-/core-util-is-1.0.2.tgz", - "integrity": "sha1-tf1UIgqivFq1eqtxQMlAdUUDwac=" + "integrity": "sha1-tf1UIgqivFq1eqtxQMlAdUUDwac=", + "dev": true }, "cosmiconfig": { "version": "5.2.1", "resolved": "https://registry.npmjs.org/cosmiconfig/-/cosmiconfig-5.2.1.tgz", "integrity": "sha512-H65gsXo1SKjf8zmrJ67eJk8aIRKV5ff2D4uKZIBZShbhGSpEmsQOPW/SKMKYhSTrqR7ufy6RP69rPogdaPh/kA==", + "dev": true, "requires": { "import-fresh": "^2.0.0", "is-directory": "^0.3.1", @@ -2026,6 +2704,7 @@ "version": "4.0.3", "resolved": "https://registry.npmjs.org/create-ecdh/-/create-ecdh-4.0.3.tgz", "integrity": "sha512-GbEHQPMOswGpKXM9kCWVrremUcBmjteUaQ01T9rkKCPDXfUHX0IoP9LpHYo2NPFampa4e+/pFDc3jQdxrxQLaw==", + "dev": true, "requires": { "bn.js": "^4.1.0", "elliptic": "^6.0.0" @@ -2035,6 +2714,7 @@ "version": "1.2.0", "resolved": "https://registry.npmjs.org/create-hash/-/create-hash-1.2.0.tgz", "integrity": "sha512-z00bCGNHDG8mHAkP7CtT1qVu+bFQUPjYq/4Iv3C3kWjTFV10zIjfSoeqXo9Asws8gwSHDGj/hl2u4OGIjapeCg==", + "dev": true, "requires": { "cipher-base": "^1.0.1", "inherits": "^2.0.1", @@ -2047,6 +2727,7 @@ "version": "1.1.7", "resolved": "https://registry.npmjs.org/create-hmac/-/create-hmac-1.1.7.tgz", "integrity": "sha512-MJG9liiZ+ogc4TzUwuvbER1JRdgvUFSB5+VR/g5h82fGaIRWMWddtKBHi7/sVhfjQZ6SehlyhvQYrcYkaUIpLg==", + "dev": true, "requires": { "cipher-base": "^1.0.3", "create-hash": "^1.1.0", @@ -2057,34 +2738,19 @@ } }, "cross-env": { - "version": "6.0.0", - "resolved": "https://registry.npmjs.org/cross-env/-/cross-env-6.0.0.tgz", - "integrity": "sha512-G/B6gtkjgthT8AP/xN1wdj5Xe18fVyk58JepK8GxpUbqcz3hyWxegocMbvnZK+KoTslwd0ACZ3woi/DVUdVjyQ==", + "version": "5.2.1", + "resolved": "https://registry.npmjs.org/cross-env/-/cross-env-5.2.1.tgz", + "integrity": "sha512-1yHhtcfAd1r4nwQgknowuUNfIT9E8dOMMspC36g45dN+iD1blloi7xp8X/xAIDnjHWyt1uQ8PHk2fkNaym7soQ==", + "dev": true, "requires": { - "cross-spawn": "^7.0.0" - }, - "dependencies": { - "cross-spawn": { - "version": "7.0.0", - "resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-7.0.0.tgz", - "integrity": "sha512-6U/8SMK2FBNnB21oQ4+6Nsodxanw1gTkntYA2zBdkFYFu3ZDx65P2ONEXGSvob/QS6REjVHQ9zxzdOafwFdstw==", - "requires": { - "path-key": "^3.1.0", - "shebang-command": "^1.2.0", - "which": "^1.2.9" - } - }, - "path-key": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/path-key/-/path-key-3.1.0.tgz", - "integrity": "sha512-8cChqz0RP6SHJkMt48FW0A7+qUOn+OsnOsVtzI59tZ8m+5bCSk7hzwET0pulwOM2YMn9J1efb07KB9l9f30SGg==" - } + "cross-spawn": "^6.0.5" } }, "cross-spawn": { "version": "6.0.5", "resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-6.0.5.tgz", "integrity": "sha512-eTVLrBSt7fjbDygz805pMnstIs2VTBNkRm0qxZd+M7A5XDdxVRWO5MxGBXZhjY4cqLYLdtrGqRf8mBPmzwSpWQ==", + "dev": true, "requires": { "nice-try": "^1.0.4", "path-key": "^2.0.1", @@ -2096,12 +2762,14 @@ "crypt": { "version": "0.0.2", "resolved": "https://registry.npmjs.org/crypt/-/crypt-0.0.2.tgz", - "integrity": "sha1-iNf/fsDfuG9xPch7u0LQRNPmxBs=" + "integrity": "sha1-iNf/fsDfuG9xPch7u0LQRNPmxBs=", + "dev": true }, "crypto-browserify": { "version": "3.12.0", "resolved": "https://registry.npmjs.org/crypto-browserify/-/crypto-browserify-3.12.0.tgz", "integrity": "sha512-fz4spIh+znjO2VjL+IdhEpRJ3YN6sMzITSBijk6FK2UvTqruSQW+/cCZTSNsMiZNvUeq0CqurF+dAbyiGOY6Wg==", + "dev": true, "requires": { "browserify-cipher": "^1.0.0", "browserify-sign": "^4.0.0", @@ -2116,15 +2784,37 @@ "randomfill": "^1.0.3" } }, + "css": { + "version": "2.2.4", + "resolved": "https://registry.npmjs.org/css/-/css-2.2.4.tgz", + "integrity": "sha512-oUnjmWpy0niI3x/mPL8dVEI1l7MnG3+HHyRPHf+YFSbK+svOhXpmSOcDURUh2aOCgl2grzrOPt1nHLuCVFULLw==", + "dev": true, + "requires": { + "inherits": "^2.0.3", + "source-map": "^0.6.1", + "source-map-resolve": "^0.5.2", + "urix": "^0.1.0" + }, + "dependencies": { + "source-map": { + "version": "0.6.1", + "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", + "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==", + "dev": true + } + } + }, "css-color-names": { "version": "0.0.4", "resolved": "https://registry.npmjs.org/css-color-names/-/css-color-names-0.0.4.tgz", - "integrity": "sha1-gIrcLnnPhHOAabZGyyDsJ762KeA=" + "integrity": "sha1-gIrcLnnPhHOAabZGyyDsJ762KeA=", + "dev": true }, "css-declaration-sorter": { "version": "4.0.1", "resolved": "https://registry.npmjs.org/css-declaration-sorter/-/css-declaration-sorter-4.0.1.tgz", "integrity": "sha512-BcxQSKTSEEQUftYpBVnsH4SF05NTuBokb19/sBt6asXGKZ/6VP7PLG1CBCkFDYOnhXhPh0jMhO6xZ71oYHXHBA==", + "dev": true, "requires": { "postcss": "^7.0.1", "timsort": "^0.3.0" @@ -2134,6 +2824,7 @@ "version": "1.0.1", "resolved": "https://registry.npmjs.org/css-loader/-/css-loader-1.0.1.tgz", "integrity": "sha512-+ZHAZm/yqvJ2kDtPne3uX0C+Vr3Zn5jFn2N4HywtS5ujwvsVkyg0VArEXpl3BgczDA8anieki1FIzhchX4yrDw==", + "dev": true, "requires": { "babel-code-frame": "^6.26.0", "css-selector-tokenizer": "^0.7.0", @@ -2153,6 +2844,7 @@ "version": "6.0.23", "resolved": "https://registry.npmjs.org/postcss/-/postcss-6.0.23.tgz", "integrity": "sha512-soOk1h6J3VMTZtVeVpv15/Hpdl2cBLX3CAw4TAbkpTJiNPk9YP/zWcD1ND+xEtvyuuvKzbxliTOIyvkSeSJ6ag==", + "dev": true, "requires": { "chalk": "^2.4.1", "source-map": "^0.6.1", @@ -2162,22 +2854,25 @@ "postcss-value-parser": { "version": "3.3.1", "resolved": "https://registry.npmjs.org/postcss-value-parser/-/postcss-value-parser-3.3.1.tgz", - "integrity": "sha512-pISE66AbVkp4fDQ7VHBwRNXzAAKJjw4Vw7nWI/+Q3vuly7SNfgYXvm6i5IgFylHGK5sP/xHAbB7N49OS4gWNyQ==" + "integrity": "sha512-pISE66AbVkp4fDQ7VHBwRNXzAAKJjw4Vw7nWI/+Q3vuly7SNfgYXvm6i5IgFylHGK5sP/xHAbB7N49OS4gWNyQ==", + "dev": true }, "source-map": { "version": "0.6.1", "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", - "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==" + "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==", + "dev": true } } }, "css-select": { - "version": "2.0.2", - "resolved": "https://registry.npmjs.org/css-select/-/css-select-2.0.2.tgz", - "integrity": "sha512-dSpYaDVoWaELjvZ3mS6IKZM/y2PMPa/XYoEfYNZePL4U/XgyxZNroHEHReDx/d+VgXh9VbCTtFqLkFbmeqeaRQ==", + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/css-select/-/css-select-2.1.0.tgz", + "integrity": "sha512-Dqk7LQKpwLoH3VovzZnkzegqNSuAziQyNZUcrdDM401iY+R5NkGBXGmtO05/yaXQziALuPogeG0b7UAgjnTJTQ==", + "dev": true, "requires": { "boolbase": "^1.0.0", - "css-what": "^2.1.2", + "css-what": "^3.2.1", "domutils": "^1.7.0", "nth-check": "^1.0.2" } @@ -2185,12 +2880,14 @@ "css-select-base-adapter": { "version": "0.1.1", "resolved": "https://registry.npmjs.org/css-select-base-adapter/-/css-select-base-adapter-0.1.1.tgz", - "integrity": "sha512-jQVeeRG70QI08vSTwf1jHxp74JoZsr2XSgETae8/xC8ovSnL2WF87GTLO86Sbwdt2lK4Umg4HnnwMO4YF3Ce7w==" + "integrity": "sha512-jQVeeRG70QI08vSTwf1jHxp74JoZsr2XSgETae8/xC8ovSnL2WF87GTLO86Sbwdt2lK4Umg4HnnwMO4YF3Ce7w==", + "dev": true }, "css-selector-tokenizer": { "version": "0.7.1", "resolved": "https://registry.npmjs.org/css-selector-tokenizer/-/css-selector-tokenizer-0.7.1.tgz", "integrity": "sha512-xYL0AMZJ4gFzJQsHUKa5jiWWi2vH77WVNg7JYRyewwj6oPh4yb/y6Y9ZCw9dsj/9UauMhtuxR+ogQd//EdEVNA==", + "dev": true, "requires": { "cssesc": "^0.1.0", "fastparse": "^1.1.1", @@ -2200,12 +2897,14 @@ "jsesc": { "version": "0.5.0", "resolved": "https://registry.npmjs.org/jsesc/-/jsesc-0.5.0.tgz", - "integrity": "sha1-597mbjXW/Bb3EP6R1c9p9w8IkR0=" + "integrity": "sha1-597mbjXW/Bb3EP6R1c9p9w8IkR0=", + "dev": true }, "regexpu-core": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/regexpu-core/-/regexpu-core-1.0.0.tgz", "integrity": "sha1-hqdj9Y7k18L2sQLkdkBQ3n7ZDGs=", + "dev": true, "requires": { "regenerate": "^1.2.1", "regjsgen": "^0.2.0", @@ -2215,12 +2914,14 @@ "regjsgen": { "version": "0.2.0", "resolved": "https://registry.npmjs.org/regjsgen/-/regjsgen-0.2.0.tgz", - "integrity": "sha1-bAFq3qxVT3WCP+N6wFuS1aTtsfc=" + "integrity": "sha1-bAFq3qxVT3WCP+N6wFuS1aTtsfc=", + "dev": true }, "regjsparser": { "version": "0.1.5", "resolved": "https://registry.npmjs.org/regjsparser/-/regjsparser-0.1.5.tgz", "integrity": "sha1-fuj4Tcb6eS0/0K4ijSS9lJ6tIFw=", + "dev": true, "requires": { "jsesc": "~0.5.0" } @@ -2228,33 +2929,46 @@ } }, "css-tree": { - "version": "1.0.0-alpha.33", - "resolved": "https://registry.npmjs.org/css-tree/-/css-tree-1.0.0-alpha.33.tgz", - "integrity": "sha512-SPt57bh5nQnpsTBsx/IXbO14sRc9xXu5MtMAVuo0BaQQmyf0NupNPPSoMaqiAF5tDFafYsTkfeH4Q/HCKXkg4w==", + "version": "1.0.0-alpha.37", + "resolved": "https://registry.npmjs.org/css-tree/-/css-tree-1.0.0-alpha.37.tgz", + "integrity": "sha512-DMxWJg0rnz7UgxKT0Q1HU/L9BeJI0M6ksor0OgqOnF+aRCDWg/N2641HmVyU9KVIu0OVVWOb2IpC9A+BJRnejg==", + "dev": true, "requires": { "mdn-data": "2.0.4", - "source-map": "^0.5.3" + "source-map": "^0.6.1" + }, + "dependencies": { + "source-map": { + "version": "0.6.1", + "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", + "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==", + "dev": true + } } }, "css-unit-converter": { "version": "1.1.1", "resolved": "https://registry.npmjs.org/css-unit-converter/-/css-unit-converter-1.1.1.tgz", - "integrity": "sha1-2bkoGtz9jO2TW9urqDeGiX9k6ZY=" + "integrity": "sha1-2bkoGtz9jO2TW9urqDeGiX9k6ZY=", + "dev": true }, "css-what": { - "version": "2.1.3", - "resolved": "https://registry.npmjs.org/css-what/-/css-what-2.1.3.tgz", - "integrity": "sha512-a+EPoD+uZiNfh+5fxw2nO9QwFa6nJe2Or35fGY6Ipw1R3R4AGz1d1TEZrCegvw2YTmZ0jXirGYlzxxpYSHwpEg==" + "version": "3.2.1", + "resolved": "https://registry.npmjs.org/css-what/-/css-what-3.2.1.tgz", + "integrity": "sha512-WwOrosiQTvyms+Ti5ZC5vGEK0Vod3FTt1ca+payZqvKuGJF+dq7bG63DstxtN0dpm6FxY27a/zS3Wten+gEtGw==", + "dev": true }, "cssesc": { "version": "0.1.0", "resolved": "https://registry.npmjs.org/cssesc/-/cssesc-0.1.0.tgz", - "integrity": "sha1-yBSQPkViM3GgR3tAEJqq++6t27Q=" + "integrity": "sha1-yBSQPkViM3GgR3tAEJqq++6t27Q=", + "dev": true }, "cssnano": { "version": "4.1.10", "resolved": "https://registry.npmjs.org/cssnano/-/cssnano-4.1.10.tgz", "integrity": "sha512-5wny+F6H4/8RgNlaqab4ktc3e0/blKutmq8yNlBFXA//nSFFAqAngjNVRzUvCgYROULmZZUoosL/KSoZo5aUaQ==", + "dev": true, "requires": { "cosmiconfig": "^5.0.0", "cssnano-preset-default": "^4.0.7", @@ -2266,6 +2980,7 @@ "version": "4.0.7", "resolved": "https://registry.npmjs.org/cssnano-preset-default/-/cssnano-preset-default-4.0.7.tgz", "integrity": "sha512-x0YHHx2h6p0fCl1zY9L9roD7rnlltugGu7zXSKQx6k2rYw0Hi3IqxcoAGF7u9Q5w1nt7vK0ulxV8Lo+EvllGsA==", + "dev": true, "requires": { "css-declaration-sorter": "^4.0.1", "cssnano-util-raw-cache": "^4.0.1", @@ -2302,17 +3017,20 @@ "cssnano-util-get-arguments": { "version": "4.0.0", "resolved": "https://registry.npmjs.org/cssnano-util-get-arguments/-/cssnano-util-get-arguments-4.0.0.tgz", - "integrity": "sha1-7ToIKZ8h11dBsg87gfGU7UnMFQ8=" + "integrity": "sha1-7ToIKZ8h11dBsg87gfGU7UnMFQ8=", + "dev": true }, "cssnano-util-get-match": { "version": "4.0.0", "resolved": "https://registry.npmjs.org/cssnano-util-get-match/-/cssnano-util-get-match-4.0.0.tgz", - "integrity": "sha1-wOTKB/U4a7F+xeUiULT1lhNlFW0=" + "integrity": "sha1-wOTKB/U4a7F+xeUiULT1lhNlFW0=", + "dev": true }, "cssnano-util-raw-cache": { "version": "4.0.1", "resolved": "https://registry.npmjs.org/cssnano-util-raw-cache/-/cssnano-util-raw-cache-4.0.1.tgz", "integrity": "sha512-qLuYtWK2b2Dy55I8ZX3ky1Z16WYsx544Q0UWViebptpwn/xDBmog2TLg4f+DBMg1rJ6JDWtn96WHbOKDWt1WQA==", + "dev": true, "requires": { "postcss": "^7.0.0" } @@ -2320,64 +3038,66 @@ "cssnano-util-same-parent": { "version": "4.0.1", "resolved": "https://registry.npmjs.org/cssnano-util-same-parent/-/cssnano-util-same-parent-4.0.1.tgz", - "integrity": "sha512-WcKx5OY+KoSIAxBW6UBBRay1U6vkYheCdjyVNDm85zt5K9mHoGOfsOsqIszfAqrQQFIIKgjh2+FDgIj/zsl21Q==" + "integrity": "sha512-WcKx5OY+KoSIAxBW6UBBRay1U6vkYheCdjyVNDm85zt5K9mHoGOfsOsqIszfAqrQQFIIKgjh2+FDgIj/zsl21Q==", + "dev": true }, "csso": { - "version": "3.5.1", - "resolved": "https://registry.npmjs.org/csso/-/csso-3.5.1.tgz", - "integrity": "sha512-vrqULLffYU1Q2tLdJvaCYbONStnfkfimRxXNaGjxMldI0C7JPBC4rB1RyjhfdZ4m1frm8pM9uRPKH3d2knZ8gg==", + "version": "4.0.2", + "resolved": "https://registry.npmjs.org/csso/-/csso-4.0.2.tgz", + "integrity": "sha512-kS7/oeNVXkHWxby5tHVxlhjizRCSv8QdU7hB2FpdAibDU8FjTAolhNjKNTiLzXtUrKT6HwClE81yXwEk1309wg==", + "dev": true, "requires": { - "css-tree": "1.0.0-alpha.29" - }, - "dependencies": { - "css-tree": { - "version": "1.0.0-alpha.29", - "resolved": "https://registry.npmjs.org/css-tree/-/css-tree-1.0.0-alpha.29.tgz", - "integrity": "sha512-sRNb1XydwkW9IOci6iB2xmy8IGCj6r/fr+JWitvJ2JxQRPzN3T4AGGVWCMlVmVwM1gtgALJRmGIlWv5ppnGGkg==", - "requires": { - "mdn-data": "~1.1.0", - "source-map": "^0.5.3" - } - }, - "mdn-data": { - "version": "1.1.4", - "resolved": "https://registry.npmjs.org/mdn-data/-/mdn-data-1.1.4.tgz", - "integrity": "sha512-FSYbp3lyKjyj3E7fMl6rYvUdX0FBXaluGqlFoYESWQlyUTq8R+wp0rkFxoYFqZlHCvsUXGjyJmLQSnXToYhOSA==" - } + "css-tree": "1.0.0-alpha.37" } }, "cyclist": { "version": "1.0.1", "resolved": "https://registry.npmjs.org/cyclist/-/cyclist-1.0.1.tgz", - "integrity": "sha1-WW6WmP0MgOEgOMK4LW6xs1tiJNk=" + "integrity": "sha1-WW6WmP0MgOEgOMK4LW6xs1tiJNk=", + "dev": true }, - "date-now": { - "version": "0.1.4", - "resolved": "https://registry.npmjs.org/date-now/-/date-now-0.1.4.tgz", - "integrity": "sha1-6vQ5/U1ISK105cx9vvIAZyueNFs=" + "dashdash": { + "version": "1.14.1", + "resolved": "https://registry.npmjs.org/dashdash/-/dashdash-1.14.1.tgz", + "integrity": "sha1-hTz6D3y+L+1d4gMmuN1YEDX24vA=", + "dev": true, + "optional": true, + "requires": { + "assert-plus": "^1.0.0" + } + }, + "de-indent": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/de-indent/-/de-indent-1.0.2.tgz", + "integrity": "sha1-sgOOhG3DO6pXlhKNCAS0VbjB4h0=", + "dev": true }, "debug": { - "version": "4.1.1", - "resolved": "https://registry.npmjs.org/debug/-/debug-4.1.1.tgz", - "integrity": "sha512-pYAIzeRo8J6KPEaJ0VWOh5Pzkbw/RetuzehGM7QRRX5he4fPHx2rdKMB256ehJCkX+XRQm16eZLqLNS8RSZXZw==", + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/debug/-/debug-3.1.0.tgz", + "integrity": "sha512-OX8XqP7/1a9cqkxYw2yXss15f26NKWBpDXQd0/uK/KPqdQhxbPa994hnzjcE2VqQpDslf55723cKPUOGSmMY3g==", + "dev": true, "requires": { - "ms": "^2.1.1" + "ms": "2.0.0" } }, "decamelize": { "version": "1.2.0", "resolved": "https://registry.npmjs.org/decamelize/-/decamelize-1.2.0.tgz", - "integrity": "sha1-9lNNFRSCabIDUue+4m9QH5oZEpA=" + "integrity": "sha1-9lNNFRSCabIDUue+4m9QH5oZEpA=", + "dev": true }, "decode-uri-component": { "version": "0.2.0", "resolved": "https://registry.npmjs.org/decode-uri-component/-/decode-uri-component-0.2.0.tgz", - "integrity": "sha1-6zkTMzRYd1y4TNGh+uBiEGu4dUU=" + "integrity": "sha1-6zkTMzRYd1y4TNGh+uBiEGu4dUU=", + "dev": true }, "deep-equal": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/deep-equal/-/deep-equal-1.1.0.tgz", - "integrity": "sha512-ZbfWJq/wN1Z273o7mUSjILYqehAktR2NVoSrOukDkU9kg2v/Uv89yU4Cvz8seJeAmtN5oqiefKq8FPuXOboqLw==", + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/deep-equal/-/deep-equal-1.1.1.tgz", + "integrity": "sha512-yd9c5AdiqVcR+JjcwUQb9DkhJc8ngNr0MahEBGvDiJw8puWab2yZlh+nkasOnZP+EGTAP6rRp2JzJhJZzvNF8g==", + "dev": true, "requires": { "is-arguments": "^1.0.4", "is-date-object": "^1.0.1", @@ -2390,12 +3110,14 @@ "deepmerge": { "version": "2.2.1", "resolved": "https://registry.npmjs.org/deepmerge/-/deepmerge-2.2.1.tgz", - "integrity": "sha512-R9hc1Xa/NOBi9WRVUWg19rl1UB7Tt4kuPd+thNJgFZoxXsTz7ncaPaeIm+40oSGuP33DfMb4sZt1QIGiJzC4EA==" + "integrity": "sha512-R9hc1Xa/NOBi9WRVUWg19rl1UB7Tt4kuPd+thNJgFZoxXsTz7ncaPaeIm+40oSGuP33DfMb4sZt1QIGiJzC4EA==", + "dev": true }, "default-gateway": { "version": "4.2.0", "resolved": "https://registry.npmjs.org/default-gateway/-/default-gateway-4.2.0.tgz", "integrity": "sha512-h6sMrVB1VMWVrW13mSc6ia/DwYYw5MN6+exNu1OaJeFac5aSAvwM7lZ0NVfTABuSkQelr4h5oebg3KB1XPdjgA==", + "dev": true, "requires": { "execa": "^1.0.0", "ip-regex": "^2.1.0" @@ -2405,6 +3127,7 @@ "version": "1.1.3", "resolved": "https://registry.npmjs.org/define-properties/-/define-properties-1.1.3.tgz", "integrity": "sha512-3MqfYKj2lLzdMSf8ZIZE/V+Zuy+BgD6f164e8K2w7dgnpKArBDerGYpM46IYYcjnkdPNMjPk9A6VFB8+3SKlXQ==", + "dev": true, "requires": { "object-keys": "^1.0.12" } @@ -2413,6 +3136,7 @@ "version": "2.0.2", "resolved": "https://registry.npmjs.org/define-property/-/define-property-2.0.2.tgz", "integrity": "sha512-jwK2UV4cnPpbcG7+VRARKTZPUWowwXA8bzH5NP6ud0oeAxyYPuGZUAC7hMugpCdz4BeSZl2Dl9k66CHJ/46ZYQ==", + "dev": true, "requires": { "is-descriptor": "^1.0.2", "isobject": "^3.0.1" @@ -2422,6 +3146,7 @@ "version": "1.0.0", "resolved": "https://registry.npmjs.org/is-accessor-descriptor/-/is-accessor-descriptor-1.0.0.tgz", "integrity": "sha512-m5hnHTkcVsPfqx3AKlyttIPb7J+XykHvJP2B9bZDjlhLIoEq4XoK64Vg7boZlVWYK6LUY94dYPEE7Lh0ZkZKcQ==", + "dev": true, "requires": { "kind-of": "^6.0.0" } @@ -2430,6 +3155,7 @@ "version": "1.0.0", "resolved": "https://registry.npmjs.org/is-data-descriptor/-/is-data-descriptor-1.0.0.tgz", "integrity": "sha512-jbRXy1FmtAoCjQkVmIVYwuuqDFUbaOeDjmed1tOGPrsMhtJA4rD9tkgA0F1qJ3gRFRXcHYVkdeaP50Q5rE/jLQ==", + "dev": true, "requires": { "kind-of": "^6.0.0" } @@ -2438,6 +3164,7 @@ "version": "1.0.2", "resolved": "https://registry.npmjs.org/is-descriptor/-/is-descriptor-1.0.2.tgz", "integrity": "sha512-2eis5WqQGV7peooDyLmNEPUrps9+SXX5c9pL3xEB+4e9HnGuDa7mB7kHxHw4CbqS9k1T2hOH3miL8n8WtiYVtg==", + "dev": true, "requires": { "is-accessor-descriptor": "^1.0.0", "is-data-descriptor": "^1.0.0", @@ -2450,6 +3177,7 @@ "version": "4.1.1", "resolved": "https://registry.npmjs.org/del/-/del-4.1.1.tgz", "integrity": "sha512-QwGuEUouP2kVwQenAsOof5Fv8K9t3D8Ca8NxcXKrIpEHjTXK5J2nXLdP+ALI1cgv8wj7KuwBhTwBkOZSJKM5XQ==", + "dev": true, "requires": { "@types/glob": "^7.1.1", "globby": "^6.1.0", @@ -2464,6 +3192,7 @@ "version": "6.1.0", "resolved": "https://registry.npmjs.org/globby/-/globby-6.1.0.tgz", "integrity": "sha1-9abXDoOV4hyFj7BInWTfAkJNUGw=", + "dev": true, "requires": { "array-union": "^1.0.1", "glob": "^7.0.3", @@ -2475,21 +3204,31 @@ "pify": { "version": "2.3.0", "resolved": "https://registry.npmjs.org/pify/-/pify-2.3.0.tgz", - "integrity": "sha1-7RQaasBDqEnqWISY59yosVMw6Qw=" + "integrity": "sha1-7RQaasBDqEnqWISY59yosVMw6Qw=", + "dev": true } } } } }, + "delayed-stream": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/delayed-stream/-/delayed-stream-1.0.0.tgz", + "integrity": "sha1-3zrhmayt+31ECqrgsp4icrJOxhk=", + "dev": true, + "optional": true + }, "depd": { "version": "1.1.2", "resolved": "https://registry.npmjs.org/depd/-/depd-1.1.2.tgz", - "integrity": "sha1-m81S4UwJd2PnSbJ0xDRu0uVgtak=" + "integrity": "sha1-m81S4UwJd2PnSbJ0xDRu0uVgtak=", + "dev": true }, "des.js": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/des.js/-/des.js-1.0.0.tgz", - "integrity": "sha1-wHTS4qpqipoH29YfmhXCzYPsjsw=", + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/des.js/-/des.js-1.0.1.tgz", + "integrity": "sha512-Q0I4pfFrv2VPd34/vfLrFOoRmlYj3OV50i7fskps1jZWK1kApMWWT9G6RRUeYedLcBDIhnSDaUvJMb3AhUlaEA==", + "dev": true, "requires": { "inherits": "^2.0.1", "minimalistic-assert": "^1.0.0" @@ -2498,22 +3237,26 @@ "destroy": { "version": "1.0.4", "resolved": "https://registry.npmjs.org/destroy/-/destroy-1.0.4.tgz", - "integrity": "sha1-l4hXRCxEdJ5CBmE+N5RiBYJqvYA=" + "integrity": "sha1-l4hXRCxEdJ5CBmE+N5RiBYJqvYA=", + "dev": true }, "detect-file": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/detect-file/-/detect-file-1.0.0.tgz", - "integrity": "sha1-8NZtA2cqglyxtzvbP+YjEMjlUrc=" + "integrity": "sha1-8NZtA2cqglyxtzvbP+YjEMjlUrc=", + "dev": true }, "detect-node": { "version": "2.0.4", "resolved": "https://registry.npmjs.org/detect-node/-/detect-node-2.0.4.tgz", - "integrity": "sha512-ZIzRpLJrOj7jjP2miAtgqIfmzbxa4ZOr5jJc601zklsfEx9oTzmmj2nVpIPRpNlRTIh8lc1kyViIY7BWSGNmKw==" + "integrity": "sha512-ZIzRpLJrOj7jjP2miAtgqIfmzbxa4ZOr5jJc601zklsfEx9oTzmmj2nVpIPRpNlRTIh8lc1kyViIY7BWSGNmKw==", + "dev": true }, "diffie-hellman": { "version": "5.0.3", "resolved": "https://registry.npmjs.org/diffie-hellman/-/diffie-hellman-5.0.3.tgz", "integrity": "sha512-kqag/Nl+f3GwyK25fhUMYj81BUOrZ9IuJsjIcDE5icNM9FJHAVm3VcUDxdLPoQtTuUylWm6ZIknYJwwaPxsUzg==", + "dev": true, "requires": { "bn.js": "^4.1.0", "miller-rabin": "^4.0.0", @@ -2524,6 +3267,7 @@ "version": "2.0.0", "resolved": "https://registry.npmjs.org/dir-glob/-/dir-glob-2.0.0.tgz", "integrity": "sha512-37qirFDz8cA5fimp9feo43fSuRo2gHwaIn6dXL8Ber1dGwUosDrGZeCCXq57WnIqE4aQ+u3eQZzsk1yOzhdwag==", + "dev": true, "requires": { "arrify": "^1.0.1", "path-type": "^3.0.0" @@ -2532,12 +3276,14 @@ "dns-equal": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/dns-equal/-/dns-equal-1.0.0.tgz", - "integrity": "sha1-s55/HabrCnW6nBcySzR1PEfgZU0=" + "integrity": "sha1-s55/HabrCnW6nBcySzR1PEfgZU0=", + "dev": true }, "dns-packet": { "version": "1.3.1", "resolved": "https://registry.npmjs.org/dns-packet/-/dns-packet-1.3.1.tgz", "integrity": "sha512-0UxfQkMhYAUaZI+xrNZOz/as5KgDU0M/fQ9b6SpkyLbk3GEswDi6PADJVaYJradtRVsRIlF1zLyOodbcTCDzUg==", + "dev": true, "requires": { "ip": "^1.1.0", "safe-buffer": "^5.0.1" @@ -2547,14 +3293,43 @@ "version": "2.0.2", "resolved": "https://registry.npmjs.org/dns-txt/-/dns-txt-2.0.2.tgz", "integrity": "sha1-uR2Ab10nGI5Ks+fRB9iBocxGQrY=", + "dev": true, "requires": { "buffer-indexof": "^1.0.0" } }, + "dom-align": { + "version": "1.10.2", + "resolved": "https://registry.npmjs.org/dom-align/-/dom-align-1.10.2.tgz", + "integrity": "sha512-AYZUzLepy05E9bCY4ExoqHrrIlM49PEak9oF93JEFoibqKL0F7w5DLM70/rosLOawerWZ3MlepQcl+EmHskOyw==", + "dev": true + }, + "dom-closest": { + "version": "0.2.0", + "resolved": "https://registry.npmjs.org/dom-closest/-/dom-closest-0.2.0.tgz", + "integrity": "sha1-69n5HRvyLo1vR3h2u80+yQIWwM8=", + "dev": true, + "requires": { + "dom-matches": ">=1.0.1" + } + }, + "dom-matches": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/dom-matches/-/dom-matches-2.0.0.tgz", + "integrity": "sha1-0nKLQWqHUzmA6wibhI0lPPI6dYw=", + "dev": true + }, + "dom-scroll-into-view": { + "version": "1.2.1", + "resolved": "https://registry.npmjs.org/dom-scroll-into-view/-/dom-scroll-into-view-1.2.1.tgz", + "integrity": "sha1-6PNnMt0ImwIBqI14Fdw/iObWbH4=", + "dev": true + }, "dom-serializer": { - "version": "0.2.1", - "resolved": "https://registry.npmjs.org/dom-serializer/-/dom-serializer-0.2.1.tgz", - "integrity": "sha512-sK3ujri04WyjwQXVoK4PU3y8ula1stq10GJZpqHIUgoGZdsGzAGu65BnU3d08aTVSvO7mGPZUc0wTEDL+qGE0Q==", + "version": "0.2.2", + "resolved": "https://registry.npmjs.org/dom-serializer/-/dom-serializer-0.2.2.tgz", + "integrity": "sha512-2/xPb3ORsQ42nHYiSunXkDjPLBaEj/xTwUO4B7XCZQTRk7EBtTOPaygh10YAAh2OI1Qrp6NWfpAhzswj0ydt9g==", + "dev": true, "requires": { "domelementtype": "^2.0.1", "entities": "^2.0.0" @@ -2563,24 +3338,28 @@ "domelementtype": { "version": "2.0.1", "resolved": "https://registry.npmjs.org/domelementtype/-/domelementtype-2.0.1.tgz", - "integrity": "sha512-5HOHUDsYZWV8FGWN0Njbr/Rn7f/eWSQi1v7+HsUVwXgn8nWWlL64zKDkS0n8ZmQ3mlWOMuXOnR+7Nx/5tMO5AQ==" + "integrity": "sha512-5HOHUDsYZWV8FGWN0Njbr/Rn7f/eWSQi1v7+HsUVwXgn8nWWlL64zKDkS0n8ZmQ3mlWOMuXOnR+7Nx/5tMO5AQ==", + "dev": true } } }, "domain-browser": { "version": "1.2.0", "resolved": "https://registry.npmjs.org/domain-browser/-/domain-browser-1.2.0.tgz", - "integrity": "sha512-jnjyiM6eRyZl2H+W8Q/zLMA481hzi0eszAaBUzIVnmYVDBbnLxVNnfu1HgEBvCbL+71FrxMl3E6lpKH7Ge3OXA==" + "integrity": "sha512-jnjyiM6eRyZl2H+W8Q/zLMA481hzi0eszAaBUzIVnmYVDBbnLxVNnfu1HgEBvCbL+71FrxMl3E6lpKH7Ge3OXA==", + "dev": true }, "domelementtype": { "version": "1.3.1", "resolved": "https://registry.npmjs.org/domelementtype/-/domelementtype-1.3.1.tgz", - "integrity": "sha512-BSKB+TSpMpFI/HOxCNr1O8aMOTZ8hT3pM3GQ0w/mWRmkhEDSFJkkyzz4XQsBV44BChwGkrDfMyjVD0eA2aFV3w==" + "integrity": "sha512-BSKB+TSpMpFI/HOxCNr1O8aMOTZ8hT3pM3GQ0w/mWRmkhEDSFJkkyzz4XQsBV44BChwGkrDfMyjVD0eA2aFV3w==", + "dev": true }, "domutils": { "version": "1.7.0", "resolved": "https://registry.npmjs.org/domutils/-/domutils-1.7.0.tgz", "integrity": "sha512-Lgd2XcJ/NjEw+7tFvfKxOzCYKZsdct5lczQ2ZaQY8Djz7pfAD3Gbp8ySJWtreII/vDlMVmxwa6pHmdxIYgttDg==", + "dev": true, "requires": { "dom-serializer": "0", "domelementtype": "1" @@ -2590,6 +3369,7 @@ "version": "4.2.0", "resolved": "https://registry.npmjs.org/dot-prop/-/dot-prop-4.2.0.tgz", "integrity": "sha512-tUMXrxlExSW6U2EXiiKGSBVdYgtV8qlHL+C10TsW4PURY/ic+eaysnSkwB4kA/mBlCyy/IKDJ+Lc3wbWeaXtuQ==", + "dev": true, "requires": { "is-obj": "^1.0.0" } @@ -2597,17 +3377,20 @@ "dotenv": { "version": "6.2.0", "resolved": "https://registry.npmjs.org/dotenv/-/dotenv-6.2.0.tgz", - "integrity": "sha512-HygQCKUBSFl8wKQZBSemMywRWcEDNidvNbjGVyZu3nbZ8qq9ubiPoGLMdRDpfSrpkkm9BXYFkpKxxFX38o/76w==" + "integrity": "sha512-HygQCKUBSFl8wKQZBSemMywRWcEDNidvNbjGVyZu3nbZ8qq9ubiPoGLMdRDpfSrpkkm9BXYFkpKxxFX38o/76w==", + "dev": true }, "dotenv-expand": { "version": "4.2.0", "resolved": "https://registry.npmjs.org/dotenv-expand/-/dotenv-expand-4.2.0.tgz", - "integrity": "sha1-3vHxyl1gWdJKdm5YeULCEQbOEnU=" + "integrity": "sha1-3vHxyl1gWdJKdm5YeULCEQbOEnU=", + "dev": true }, "duplexify": { "version": "3.7.1", "resolved": "https://registry.npmjs.org/duplexify/-/duplexify-3.7.1.tgz", "integrity": "sha512-07z8uv2wMyS51kKhD1KsdXJg5WQ6t93RneqRxUHnskXVtlYYkLqM0gqStQZ3pj073g687jPCHrqNfCzawLYh5g==", + "dev": true, "requires": { "end-of-stream": "^1.0.0", "inherits": "^2.0.1", @@ -2615,20 +3398,34 @@ "stream-shift": "^1.0.0" } }, + "ecc-jsbn": { + "version": "0.1.2", + "resolved": "https://registry.npmjs.org/ecc-jsbn/-/ecc-jsbn-0.1.2.tgz", + "integrity": "sha1-OoOpBOVDUyh4dMVkt1SThoSamMk=", + "dev": true, + "optional": true, + "requires": { + "jsbn": "~0.1.0", + "safer-buffer": "^2.1.0" + } + }, "ee-first": { "version": "1.1.1", "resolved": "https://registry.npmjs.org/ee-first/-/ee-first-1.1.1.tgz", - "integrity": "sha1-WQxhFWsK4vTwJVcyoViyZrxWsh0=" + "integrity": "sha1-WQxhFWsK4vTwJVcyoViyZrxWsh0=", + "dev": true }, "electron-to-chromium": { - "version": "1.3.261", - "resolved": "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.3.261.tgz", - "integrity": "sha512-nA9xFj1SgHXlW/6T4+udW2u/Ic/bne25UoFsddoNM7Ut2bgNGLLQUhLhk+vQlbKh9WiRgDDlHaC36Oy7AgRR9w==" + "version": "1.3.307", + "resolved": "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.3.307.tgz", + "integrity": "sha512-01rTsAqHwf3D2X6NtlUvzB2hxDj67kiTVIO5GWdFb2unA0QvFvrjyrtc993ByRLF+surlr+9AvJdD0UYs5HzwA==", + "dev": true }, "elliptic": { "version": "6.5.1", "resolved": "https://registry.npmjs.org/elliptic/-/elliptic-6.5.1.tgz", "integrity": "sha512-xvJINNLbTeWQjrl6X+7eQCrIy/YPv5XCpKW6kB5mKvtnGILoLDcySuwomfdzt0BMdLNVnuRNTuzKNHj0bva1Cg==", + "dev": true, "requires": { "bn.js": "^4.4.0", "brorand": "^1.0.1", @@ -2642,45 +3439,70 @@ "emoji-regex": { "version": "7.0.3", "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-7.0.3.tgz", - "integrity": "sha512-CwBLREIQ7LvYFB0WyRvwhq5N5qPhc6PMjD6bYggFlI5YyDgl+0vxq5VHbMOFqLg7hfWzmu8T5Z1QofhmTIhItA==" + "integrity": "sha512-CwBLREIQ7LvYFB0WyRvwhq5N5qPhc6PMjD6bYggFlI5YyDgl+0vxq5VHbMOFqLg7hfWzmu8T5Z1QofhmTIhItA==", + "dev": true }, "emojis-list": { "version": "2.1.0", "resolved": "https://registry.npmjs.org/emojis-list/-/emojis-list-2.1.0.tgz", - "integrity": "sha1-TapNnbAPmBmIDHn6RXrlsJof04k=" + "integrity": "sha1-TapNnbAPmBmIDHn6RXrlsJof04k=", + "dev": true }, "encodeurl": { "version": "1.0.2", "resolved": "https://registry.npmjs.org/encodeurl/-/encodeurl-1.0.2.tgz", - "integrity": "sha1-rT/0yG7C0CkyL1oCw6mmBslbP1k=" + "integrity": "sha1-rT/0yG7C0CkyL1oCw6mmBslbP1k=", + "dev": true }, "end-of-stream": { - "version": "1.4.1", - "resolved": "https://registry.npmjs.org/end-of-stream/-/end-of-stream-1.4.1.tgz", - "integrity": "sha512-1MkrZNvWTKCaigbn+W15elq2BB/L22nqrSY5DKlo3X6+vclJm8Bb5djXJBmEX6fS3+zCh/F4VBK5Z2KxJt4s2Q==", + "version": "1.4.4", + "resolved": "https://registry.npmjs.org/end-of-stream/-/end-of-stream-1.4.4.tgz", + "integrity": "sha512-+uw1inIHVPQoaVuHzRyXd21icM+cnt4CzD5rW+NC1wjOUSTOs+Te7FOv7AhN7vS9x/oIyhLP5PR1H+phQAHu5Q==", + "dev": true, "requires": { "once": "^1.4.0" } }, "enhanced-resolve": { - "version": "4.1.0", - "resolved": "https://registry.npmjs.org/enhanced-resolve/-/enhanced-resolve-4.1.0.tgz", - "integrity": "sha512-F/7vkyTtyc/llOIn8oWclcB25KdRaiPBpZYDgJHgh/UHtpgT2p2eldQgtQnLtUvfMKPKxbRaQM/hHkvLHt1Vng==", + "version": "4.1.1", + "resolved": "https://registry.npmjs.org/enhanced-resolve/-/enhanced-resolve-4.1.1.tgz", + "integrity": "sha512-98p2zE+rL7/g/DzMHMTF4zZlCgeVdJ7yr6xzEpJRYwFYrGi9ANdn5DnJURg6RpBkyk60XYDnWIv51VfIhfNGuA==", + "dev": true, "requires": { "graceful-fs": "^4.1.2", - "memory-fs": "^0.4.0", + "memory-fs": "^0.5.0", "tapable": "^1.0.0" + }, + "dependencies": { + "memory-fs": { + "version": "0.5.0", + "resolved": "https://registry.npmjs.org/memory-fs/-/memory-fs-0.5.0.tgz", + "integrity": "sha512-jA0rdU5KoQMC0e6ppoNRtpp6vjFq6+NY7r8hywnC7V+1Xj/MtHwGIbB1QaK/dunyjWteJzmkpd7ooeWg10T7GA==", + "dev": true, + "requires": { + "errno": "^0.1.3", + "readable-stream": "^2.0.1" + } + } } }, + "enquire.js": { + "version": "2.1.6", + "resolved": "https://registry.npmjs.org/enquire.js/-/enquire.js-2.1.6.tgz", + "integrity": "sha1-PoeAybi4NQhMP2DhZtvDwqPImBQ=", + "dev": true + }, "entities": { "version": "2.0.0", "resolved": "https://registry.npmjs.org/entities/-/entities-2.0.0.tgz", - "integrity": "sha512-D9f7V0JSRwIxlRI2mjMqufDrRDnx8p+eEOz7aUM9SuvF8gsBzra0/6tbjl1m8eQHrZlYj6PxqE00hZ1SAIKPLw==" + "integrity": "sha512-D9f7V0JSRwIxlRI2mjMqufDrRDnx8p+eEOz7aUM9SuvF8gsBzra0/6tbjl1m8eQHrZlYj6PxqE00hZ1SAIKPLw==", + "dev": true }, "errno": { "version": "0.1.7", "resolved": "https://registry.npmjs.org/errno/-/errno-0.1.7.tgz", "integrity": "sha512-MfrRBDWzIWifgq6tJj60gkAwtLNb6sQPlcFrSOflcP1aFmmruKQ2wRnze/8V6kgyz7H3FF8Npzv78mZ7XLLflg==", + "dev": true, "requires": { "prr": "~1.0.1" } @@ -2689,6 +3511,7 @@ "version": "1.3.2", "resolved": "https://registry.npmjs.org/error-ex/-/error-ex-1.3.2.tgz", "integrity": "sha512-7dFHNmqeFSEt2ZBsCriorKnn3Z2pj+fd9kmI6QoWw4//DL+icEBfc0U7qJCisqrTsKTjw4fNFy2pW9OqStD84g==", + "dev": true, "requires": { "is-arrayish": "^0.2.1" } @@ -2697,14 +3520,16 @@ "version": "2.0.4", "resolved": "https://registry.npmjs.org/error-stack-parser/-/error-stack-parser-2.0.4.tgz", "integrity": "sha512-fZ0KkoxSjLFmhW5lHbUT3tLwy3nX1qEzMYo8koY1vrsAco53CMT1djnBSeC/wUjTEZRhZl9iRw7PaMaxfJ4wzQ==", + "dev": true, "requires": { "stackframe": "^1.1.0" } }, "es-abstract": { - "version": "1.14.2", - "resolved": "https://registry.npmjs.org/es-abstract/-/es-abstract-1.14.2.tgz", - "integrity": "sha512-DgoQmbpFNOofkjJtKwr87Ma5EW4Dc8fWhD0R+ndq7Oc456ivUfGOOP6oAZTTKl5/CcNMP+EN+e3/iUzgE0veZg==", + "version": "1.16.0", + "resolved": "https://registry.npmjs.org/es-abstract/-/es-abstract-1.16.0.tgz", + "integrity": "sha512-xdQnfykZ9JMEiasTAJZJdMWCQ1Vm00NBw79/AWi7ELfZuuPCSOMDZbT9mkOfSctVtfhb+sAAzrm+j//GjjLHLg==", + "dev": true, "requires": { "es-to-primitive": "^1.2.0", "function-bind": "^1.1.1", @@ -2714,14 +3539,15 @@ "is-regex": "^1.0.4", "object-inspect": "^1.6.0", "object-keys": "^1.1.1", - "string.prototype.trimleft": "^2.0.0", - "string.prototype.trimright": "^2.0.0" + "string.prototype.trimleft": "^2.1.0", + "string.prototype.trimright": "^2.1.0" } }, "es-to-primitive": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/es-to-primitive/-/es-to-primitive-1.2.0.tgz", - "integrity": "sha512-qZryBOJjV//LaxLTV6UC//WewneB3LcXOL9NP++ozKVXsIIIpm/2c13UDiD9Jp2eThsecw9m3jPqDwTyobcdbg==", + "version": "1.2.1", + "resolved": "https://registry.npmjs.org/es-to-primitive/-/es-to-primitive-1.2.1.tgz", + "integrity": "sha512-QCOllgZJtaUo9miYBcLChTUaHNjJF3PYs1VidD7AwiEj1kYxKeQTctLAezAOH5ZKRH0g2IgPn6KwB4IT8iRpvA==", + "dev": true, "requires": { "is-callable": "^1.1.4", "is-date-object": "^1.0.1", @@ -2732,6 +3558,7 @@ "version": "0.2.3", "resolved": "https://registry.npmjs.org/es6-templates/-/es6-templates-0.2.3.tgz", "integrity": "sha1-XLmsn7He1usSOTQrgdeSu7QHjuQ=", + "dev": true, "requires": { "recast": "~0.11.12", "through": "~2.3.6" @@ -2740,17 +3567,20 @@ "escape-html": { "version": "1.0.3", "resolved": "https://registry.npmjs.org/escape-html/-/escape-html-1.0.3.tgz", - "integrity": "sha1-Aljq5NPQwJdN4cFpGI7wBR0dGYg=" + "integrity": "sha1-Aljq5NPQwJdN4cFpGI7wBR0dGYg=", + "dev": true }, "escape-string-regexp": { "version": "1.0.5", "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-1.0.5.tgz", - "integrity": "sha1-G2HAViGQqN/2rjuyzwIAyhMLhtQ=" + "integrity": "sha1-G2HAViGQqN/2rjuyzwIAyhMLhtQ=", + "dev": true }, "eslint-scope": { "version": "4.0.3", "resolved": "https://registry.npmjs.org/eslint-scope/-/eslint-scope-4.0.3.tgz", "integrity": "sha512-p7VutNr1O/QrxysMo3E45FjYDTeXBy0iTltPFNSqKAIfjDSXC+4dj+qfyuD8bfAXrW/y6lW3O76VaYNPKfpKrg==", + "dev": true, "requires": { "esrecurse": "^4.1.0", "estraverse": "^4.1.1" @@ -2759,12 +3589,14 @@ "esprima": { "version": "3.1.3", "resolved": "https://registry.npmjs.org/esprima/-/esprima-3.1.3.tgz", - "integrity": "sha1-/cpRzuYTOJXjyI1TXOSdv/YqRjM=" + "integrity": "sha1-/cpRzuYTOJXjyI1TXOSdv/YqRjM=", + "dev": true }, "esrecurse": { "version": "4.2.1", "resolved": "https://registry.npmjs.org/esrecurse/-/esrecurse-4.2.1.tgz", "integrity": "sha512-64RBB++fIOAXPw3P9cy89qfMlvZEXZkqqJkjqqXIvzP5ezRZjW+lPWjw35UX/3EhUPFYbg5ER4JYgDw4007/DQ==", + "dev": true, "requires": { "estraverse": "^4.1.0" } @@ -2772,32 +3604,38 @@ "estraverse": { "version": "4.3.0", "resolved": "https://registry.npmjs.org/estraverse/-/estraverse-4.3.0.tgz", - "integrity": "sha512-39nnKffWz8xN1BU/2c79n9nB9HDzo0niYUqx6xyqUnyoAnQyyWpOTdZEeiCch8BBu515t4wp9ZmgVfVhn9EBpw==" + "integrity": "sha512-39nnKffWz8xN1BU/2c79n9nB9HDzo0niYUqx6xyqUnyoAnQyyWpOTdZEeiCch8BBu515t4wp9ZmgVfVhn9EBpw==", + "dev": true }, "esutils": { "version": "2.0.3", "resolved": "https://registry.npmjs.org/esutils/-/esutils-2.0.3.tgz", - "integrity": "sha512-kVscqXk4OCp68SZ0dkgEKVi6/8ij300KBWTJq32P/dYeWTSwK41WyTxalN1eRmA5Z9UU/LX9D7FWSmV9SAYx6g==" + "integrity": "sha512-kVscqXk4OCp68SZ0dkgEKVi6/8ij300KBWTJq32P/dYeWTSwK41WyTxalN1eRmA5Z9UU/LX9D7FWSmV9SAYx6g==", + "dev": true }, "etag": { "version": "1.8.1", "resolved": "https://registry.npmjs.org/etag/-/etag-1.8.1.tgz", - "integrity": "sha1-Qa4u62XvpiJorr/qg6x9eSmbCIc=" + "integrity": "sha1-Qa4u62XvpiJorr/qg6x9eSmbCIc=", + "dev": true }, "eventemitter3": { "version": "4.0.0", "resolved": "https://registry.npmjs.org/eventemitter3/-/eventemitter3-4.0.0.tgz", - "integrity": "sha512-qerSRB0p+UDEssxTtm6EDKcE7W4OaoisfIMl4CngyEhjpYglocpNg6UEqCvemdGhosAsg4sO2dXJOdyBifPGCg==" + "integrity": "sha512-qerSRB0p+UDEssxTtm6EDKcE7W4OaoisfIMl4CngyEhjpYglocpNg6UEqCvemdGhosAsg4sO2dXJOdyBifPGCg==", + "dev": true }, "events": { "version": "3.0.0", "resolved": "https://registry.npmjs.org/events/-/events-3.0.0.tgz", - "integrity": "sha512-Dc381HFWJzEOhQ+d8pkNon++bk9h6cdAoAj4iE6Q4y6xgTzySWXlKn05/TVNpjnfRqi/X0EpJEJohPjNI3zpVA==" + "integrity": "sha512-Dc381HFWJzEOhQ+d8pkNon++bk9h6cdAoAj4iE6Q4y6xgTzySWXlKn05/TVNpjnfRqi/X0EpJEJohPjNI3zpVA==", + "dev": true }, "eventsource": { "version": "1.0.7", "resolved": "https://registry.npmjs.org/eventsource/-/eventsource-1.0.7.tgz", "integrity": "sha512-4Ln17+vVT0k8aWq+t/bF5arcS3EpT9gYtW66EPacdj/mAFevznsnyoHLPy2BA8gbIQeIHoPsvwmfBftfcG//BQ==", + "dev": true, "requires": { "original": "^1.0.0" } @@ -2806,6 +3644,7 @@ "version": "1.0.3", "resolved": "https://registry.npmjs.org/evp_bytestokey/-/evp_bytestokey-1.0.3.tgz", "integrity": "sha512-/f2Go4TognH/KvCISP7OUsHn85hT9nUkxxA9BEWxFn+Oj9o8ZNLm/40hdlgSLyuOimsrTKLUMEorQexp/aPQeA==", + "dev": true, "requires": { "md5.js": "^1.3.4", "safe-buffer": "^5.1.1" @@ -2815,6 +3654,7 @@ "version": "1.0.0", "resolved": "https://registry.npmjs.org/execa/-/execa-1.0.0.tgz", "integrity": "sha512-adbxcyWV46qiHyvSp50TKt05tB4tK3HcmF7/nxfAdhnox83seTDbwnaqKO4sXRy7roHAIFqJP/Rw/AuEbX61LA==", + "dev": true, "requires": { "cross-spawn": "^6.0.0", "get-stream": "^4.0.0", @@ -2829,6 +3669,7 @@ "version": "2.1.4", "resolved": "https://registry.npmjs.org/expand-brackets/-/expand-brackets-2.1.4.tgz", "integrity": "sha1-t3c14xXOMPa27/D4OwQVGiJEliI=", + "dev": true, "requires": { "debug": "^2.3.3", "define-property": "^0.2.5", @@ -2843,6 +3684,7 @@ "version": "2.6.9", "resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz", "integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==", + "dev": true, "requires": { "ms": "2.0.0" } @@ -2851,6 +3693,7 @@ "version": "0.2.5", "resolved": "https://registry.npmjs.org/define-property/-/define-property-0.2.5.tgz", "integrity": "sha1-w1se+RjsPJkPmlvFe+BKrOxcgRY=", + "dev": true, "requires": { "is-descriptor": "^0.1.0" } @@ -2859,6 +3702,7 @@ "version": "2.0.1", "resolved": "https://registry.npmjs.org/extend-shallow/-/extend-shallow-2.0.1.tgz", "integrity": "sha1-Ua99YUrZqfYQ6huvu5idaxxWiQ8=", + "dev": true, "requires": { "is-extendable": "^0.1.0" } @@ -2866,12 +3710,8 @@ "is-extendable": { "version": "0.1.1", "resolved": "https://registry.npmjs.org/is-extendable/-/is-extendable-0.1.1.tgz", - "integrity": "sha1-YrEQ4omkcUGOPsNqYX1HLjAd/Ik=" - }, - "ms": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz", - "integrity": "sha1-VgiurfwAvmwpAd9fmGF4jeDVl8g=" + "integrity": "sha1-YrEQ4omkcUGOPsNqYX1HLjAd/Ik=", + "dev": true } } }, @@ -2879,6 +3719,7 @@ "version": "2.0.2", "resolved": "https://registry.npmjs.org/expand-tilde/-/expand-tilde-2.0.2.tgz", "integrity": "sha1-l+gBqgUt8CRU3kawK/YhZCzchQI=", + "dev": true, "requires": { "homedir-polyfill": "^1.0.1" } @@ -2887,6 +3728,7 @@ "version": "4.17.1", "resolved": "https://registry.npmjs.org/express/-/express-4.17.1.tgz", "integrity": "sha512-mHJ9O79RqluphRrcw2X/GTh3k9tVv8YcoyY4Kkh4WDMUYKRZUq0h1o0w2rrrxBqM7VoeUVqgb27xlEMXTnYt4g==", + "dev": true, "requires": { "accepts": "~1.3.7", "array-flatten": "1.1.1", @@ -2923,27 +3765,31 @@ "array-flatten": { "version": "1.1.1", "resolved": "https://registry.npmjs.org/array-flatten/-/array-flatten-1.1.1.tgz", - "integrity": "sha1-ml9pkFGx5wczKPKgCJaLZOopVdI=" + "integrity": "sha1-ml9pkFGx5wczKPKgCJaLZOopVdI=", + "dev": true }, "debug": { "version": "2.6.9", "resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz", "integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==", + "dev": true, "requires": { "ms": "2.0.0" } - }, - "ms": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz", - "integrity": "sha1-VgiurfwAvmwpAd9fmGF4jeDVl8g=" } } }, + "extend": { + "version": "3.0.2", + "resolved": "https://registry.npmjs.org/extend/-/extend-3.0.2.tgz", + "integrity": "sha512-fjquC59cD7CyW6urNXK0FBufkZcoiGG80wTuPujX590cB5Ttln20E2UB4S/WARVqhXffZl2LNgS+gQdPIIim/g==", + "dev": true + }, "extend-shallow": { "version": "3.0.2", "resolved": "https://registry.npmjs.org/extend-shallow/-/extend-shallow-3.0.2.tgz", "integrity": "sha1-Jqcarwc7OfshJxcnRhMcJwQCjbg=", + "dev": true, "requires": { "assign-symbols": "^1.0.0", "is-extendable": "^1.0.1" @@ -2953,6 +3799,7 @@ "version": "2.0.4", "resolved": "https://registry.npmjs.org/extglob/-/extglob-2.0.4.tgz", "integrity": "sha512-Nmb6QXkELsuBr24CJSkilo6UHHgbekK5UiZgfE6UHD3Eb27YC6oD+bhcT+tJ6cl8dmsgdQxnWlcry8ksBIBLpw==", + "dev": true, "requires": { "array-unique": "^0.3.2", "define-property": "^1.0.0", @@ -2968,6 +3815,7 @@ "version": "1.0.0", "resolved": "https://registry.npmjs.org/define-property/-/define-property-1.0.0.tgz", "integrity": "sha1-dp66rz9KY6rTr56NMEybvnm/sOY=", + "dev": true, "requires": { "is-descriptor": "^1.0.0" } @@ -2976,6 +3824,7 @@ "version": "2.0.1", "resolved": "https://registry.npmjs.org/extend-shallow/-/extend-shallow-2.0.1.tgz", "integrity": "sha1-Ua99YUrZqfYQ6huvu5idaxxWiQ8=", + "dev": true, "requires": { "is-extendable": "^0.1.0" } @@ -2984,6 +3833,7 @@ "version": "1.0.0", "resolved": "https://registry.npmjs.org/is-accessor-descriptor/-/is-accessor-descriptor-1.0.0.tgz", "integrity": "sha512-m5hnHTkcVsPfqx3AKlyttIPb7J+XykHvJP2B9bZDjlhLIoEq4XoK64Vg7boZlVWYK6LUY94dYPEE7Lh0ZkZKcQ==", + "dev": true, "requires": { "kind-of": "^6.0.0" } @@ -2992,6 +3842,7 @@ "version": "1.0.0", "resolved": "https://registry.npmjs.org/is-data-descriptor/-/is-data-descriptor-1.0.0.tgz", "integrity": "sha512-jbRXy1FmtAoCjQkVmIVYwuuqDFUbaOeDjmed1tOGPrsMhtJA4rD9tkgA0F1qJ3gRFRXcHYVkdeaP50Q5rE/jLQ==", + "dev": true, "requires": { "kind-of": "^6.0.0" } @@ -3000,6 +3851,7 @@ "version": "1.0.2", "resolved": "https://registry.npmjs.org/is-descriptor/-/is-descriptor-1.0.2.tgz", "integrity": "sha512-2eis5WqQGV7peooDyLmNEPUrps9+SXX5c9pL3xEB+4e9HnGuDa7mB7kHxHw4CbqS9k1T2hOH3miL8n8WtiYVtg==", + "dev": true, "requires": { "is-accessor-descriptor": "^1.0.0", "is-data-descriptor": "^1.0.0", @@ -3009,7 +3861,8 @@ "is-extendable": { "version": "0.1.1", "resolved": "https://registry.npmjs.org/is-extendable/-/is-extendable-0.1.1.tgz", - "integrity": "sha1-YrEQ4omkcUGOPsNqYX1HLjAd/Ik=" + "integrity": "sha1-YrEQ4omkcUGOPsNqYX1HLjAd/Ik=", + "dev": true } } }, @@ -3017,6 +3870,7 @@ "version": "4.0.0-beta.0", "resolved": "https://registry.npmjs.org/extract-text-webpack-plugin/-/extract-text-webpack-plugin-4.0.0-beta.0.tgz", "integrity": "sha512-Hypkn9jUTnFr0DpekNam53X47tXn3ucY08BQumv7kdGgeVUBLq3DJHJTi6HNxv4jl9W+Skxjz9+RnK0sJyqqjA==", + "dev": true, "requires": { "async": "^2.4.1", "loader-utils": "^1.1.0", @@ -3024,15 +3878,30 @@ "webpack-sources": "^1.1.0" } }, + "extsprintf": { + "version": "1.3.0", + "resolved": "https://registry.npmjs.org/extsprintf/-/extsprintf-1.3.0.tgz", + "integrity": "sha1-lpGEQOMEGnpBT4xS48V06zw+HgU=", + "dev": true, + "optional": true + }, "fast-deep-equal": { "version": "2.0.1", "resolved": "https://registry.npmjs.org/fast-deep-equal/-/fast-deep-equal-2.0.1.tgz", - "integrity": "sha1-ewUhjd+WZ79/Nwv3/bLLFf3Qqkk=" + "integrity": "sha1-ewUhjd+WZ79/Nwv3/bLLFf3Qqkk=", + "dev": true + }, + "fast-diff": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/fast-diff/-/fast-diff-1.1.2.tgz", + "integrity": "sha512-KaJUt+M9t1qaIteSvjc6P3RbMdXsNhK61GRftR6SNxqmhthcd9MGIi4T+o0jD8LUSpSnSKXE20nLtJ3fOHxQig==", + "dev": true }, "fast-glob": { "version": "2.2.7", "resolved": "https://registry.npmjs.org/fast-glob/-/fast-glob-2.2.7.tgz", "integrity": "sha512-g1KuQwHOZAmOZMuBtHdxDtju+T2RT8jgCC9aANsbpdiDDTSnjgfuVsIBNKbUeJI3oKMRExcfNDtJl4OhbffMsw==", + "dev": true, "requires": { "@mrmlnc/readdir-enhanced": "^2.2.1", "@nodelib/fs.stat": "^1.1.2", @@ -3045,17 +3914,20 @@ "fast-json-stable-stringify": { "version": "2.0.0", "resolved": "https://registry.npmjs.org/fast-json-stable-stringify/-/fast-json-stable-stringify-2.0.0.tgz", - "integrity": "sha1-1RQsDK7msRifh9OnYREGT4bIu/I=" + "integrity": "sha1-1RQsDK7msRifh9OnYREGT4bIu/I=", + "dev": true }, "fastparse": { "version": "1.1.2", "resolved": "https://registry.npmjs.org/fastparse/-/fastparse-1.1.2.tgz", - "integrity": "sha512-483XLLxTVIwWK3QTrMGRqUfUpoOs/0hbQrl2oz4J0pAcm3A3bu84wxTFqGqkJzewCLdME38xJLJAxBABfQT8sQ==" + "integrity": "sha512-483XLLxTVIwWK3QTrMGRqUfUpoOs/0hbQrl2oz4J0pAcm3A3bu84wxTFqGqkJzewCLdME38xJLJAxBABfQT8sQ==", + "dev": true }, "faye-websocket": { "version": "0.10.0", "resolved": "https://registry.npmjs.org/faye-websocket/-/faye-websocket-0.10.0.tgz", "integrity": "sha1-TkkvjQTftviQA1B/btvy1QHnxvQ=", + "dev": true, "requires": { "websocket-driver": ">=0.5.1" } @@ -3063,12 +3935,14 @@ "figgy-pudding": { "version": "3.5.1", "resolved": "https://registry.npmjs.org/figgy-pudding/-/figgy-pudding-3.5.1.tgz", - "integrity": "sha512-vNKxJHTEKNThjfrdJwHc7brvM6eVevuO5nTj6ez8ZQ1qbXTvGthucRF7S4vf2cr71QVnT70V34v0S1DyQsti0w==" + "integrity": "sha512-vNKxJHTEKNThjfrdJwHc7brvM6eVevuO5nTj6ez8ZQ1qbXTvGthucRF7S4vf2cr71QVnT70V34v0S1DyQsti0w==", + "dev": true }, "file-loader": { "version": "2.0.0", "resolved": "https://registry.npmjs.org/file-loader/-/file-loader-2.0.0.tgz", "integrity": "sha512-YCsBfd1ZGCyonOKLxPiKPdu+8ld9HAaMEvJewzz+b2eTF7uL5Zm/HdBF6FjCrpCMRq25Mi0U1gl4pwn2TlH7hQ==", + "dev": true, "requires": { "loader-utils": "^1.0.2", "schema-utils": "^1.0.0" @@ -3078,6 +3952,7 @@ "version": "1.0.0", "resolved": "https://registry.npmjs.org/schema-utils/-/schema-utils-1.0.0.tgz", "integrity": "sha512-i27Mic4KovM/lnGsy8whRCHhc7VicJajAjTrYg11K9zfZXnYIt4k5F+kZkwjnrhKzLic/HLU4j11mjsz2G/75g==", + "dev": true, "requires": { "ajv": "^6.1.0", "ajv-errors": "^1.0.0", @@ -3089,12 +3964,14 @@ "file-type": { "version": "10.11.0", "resolved": "https://registry.npmjs.org/file-type/-/file-type-10.11.0.tgz", - "integrity": "sha512-uzk64HRpUZyTGZtVuvrjP0FYxzQrBf4rojot6J65YMEbwBLB0CWm0CLojVpwpmFmxcE/lkvYICgfcGozbBq6rw==" + "integrity": "sha512-uzk64HRpUZyTGZtVuvrjP0FYxzQrBf4rojot6J65YMEbwBLB0CWm0CLojVpwpmFmxcE/lkvYICgfcGozbBq6rw==", + "dev": true }, "fill-range": { "version": "4.0.0", "resolved": "https://registry.npmjs.org/fill-range/-/fill-range-4.0.0.tgz", "integrity": "sha1-1USBHUKPmOsGpj3EAtJAPDKMOPc=", + "dev": true, "requires": { "extend-shallow": "^2.0.1", "is-number": "^3.0.0", @@ -3106,6 +3983,7 @@ "version": "2.0.1", "resolved": "https://registry.npmjs.org/extend-shallow/-/extend-shallow-2.0.1.tgz", "integrity": "sha1-Ua99YUrZqfYQ6huvu5idaxxWiQ8=", + "dev": true, "requires": { "is-extendable": "^0.1.0" } @@ -3113,7 +3991,8 @@ "is-extendable": { "version": "0.1.1", "resolved": "https://registry.npmjs.org/is-extendable/-/is-extendable-0.1.1.tgz", - "integrity": "sha1-YrEQ4omkcUGOPsNqYX1HLjAd/Ik=" + "integrity": "sha1-YrEQ4omkcUGOPsNqYX1HLjAd/Ik=", + "dev": true } } }, @@ -3121,6 +4000,7 @@ "version": "1.1.2", "resolved": "https://registry.npmjs.org/finalhandler/-/finalhandler-1.1.2.tgz", "integrity": "sha512-aAWcW57uxVNrQZqFXjITpW3sIUQmHGG3qSb9mUah9MgMC4NeWhNOlNjXEYq3HjRAvL6arUviZGGJsBg6z0zsWA==", + "dev": true, "requires": { "debug": "2.6.9", "encodeurl": "~1.0.2", @@ -3135,14 +4015,10 @@ "version": "2.6.9", "resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz", "integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==", + "dev": true, "requires": { "ms": "2.0.0" } - }, - "ms": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz", - "integrity": "sha1-VgiurfwAvmwpAd9fmGF4jeDVl8g=" } } }, @@ -3150,6 +4026,7 @@ "version": "2.1.0", "resolved": "https://registry.npmjs.org/find-cache-dir/-/find-cache-dir-2.1.0.tgz", "integrity": "sha512-Tq6PixE0w/VMFfCgbONnkiQIVol/JJL7nRMi20fqzA4NRs9AfeqMGeRdPi3wIhYkxjeBaWh2rxwapn5Tu3IqOQ==", + "dev": true, "requires": { "commondir": "^1.0.1", "make-dir": "^2.0.0", @@ -3160,6 +4037,7 @@ "version": "3.0.0", "resolved": "https://registry.npmjs.org/find-up/-/find-up-3.0.0.tgz", "integrity": "sha512-1yD6RmLI1XBfxugvORwlck6f75tYL+iR0jqwsOrOxMZyGYqUuDhJ0l4AXdO1iX/FTs9cBAMEk1gWSEx1kSbylg==", + "dev": true, "requires": { "locate-path": "^3.0.0" } @@ -3168,6 +4046,7 @@ "version": "3.0.0", "resolved": "https://registry.npmjs.org/findup-sync/-/findup-sync-3.0.0.tgz", "integrity": "sha512-YbffarhcicEhOrm4CtrwdKBdCuz576RLdhJDsIfvNtxUuhdRet1qZcsMjqbePtAseKdAnDyM/IyXbu7PRPRLYg==", + "dev": true, "requires": { "detect-file": "^1.0.0", "is-glob": "^4.0.0", @@ -3179,43 +4058,57 @@ "version": "1.1.1", "resolved": "https://registry.npmjs.org/flush-write-stream/-/flush-write-stream-1.1.1.tgz", "integrity": "sha512-3Z4XhFZ3992uIq0XOqb9AreonueSYphE6oYbpt5+3u06JWklbsPkNv3ZKkP9Bz/r+1MWCaMoSQ28P85+1Yc77w==", + "dev": true, "requires": { "inherits": "^2.0.3", "readable-stream": "^2.3.6" } }, "follow-redirects": { - "version": "1.9.0", - "resolved": "https://registry.npmjs.org/follow-redirects/-/follow-redirects-1.9.0.tgz", - "integrity": "sha512-CRcPzsSIbXyVDl0QI01muNDu69S8trU4jArW9LpOt2WtC6LyUJetcIrmfHsRBx7/Jb6GHJUiuqyYxPooFfNt6A==", + "version": "1.5.10", + "resolved": "https://registry.npmjs.org/follow-redirects/-/follow-redirects-1.5.10.tgz", + "integrity": "sha512-0V5l4Cizzvqt5D44aTXbFZz+FtyXV1vrDN6qrelxtfYQKW0KO0W2T/hkE8xvGa/540LkZlkaUjO4ailYTFtHVQ==", + "dev": true, "requires": { - "debug": "^3.0.0" - }, - "dependencies": { - "debug": { - "version": "3.2.6", - "resolved": "https://registry.npmjs.org/debug/-/debug-3.2.6.tgz", - "integrity": "sha512-mel+jf7nrtEl5Pn1Qx46zARXKDpBbvzezse7p7LqINmdoIk8PYP5SySaxEmYv6TZ0JyEKA1hsCId6DIhgITtWQ==", - "requires": { - "ms": "^2.1.1" - } - } + "debug": "=3.1.0" } }, "for-in": { "version": "1.0.2", "resolved": "https://registry.npmjs.org/for-in/-/for-in-1.0.2.tgz", - "integrity": "sha1-gQaNKVqBQuwKxybG4iAMMPttXoA=" + "integrity": "sha1-gQaNKVqBQuwKxybG4iAMMPttXoA=", + "dev": true + }, + "forever-agent": { + "version": "0.6.1", + "resolved": "https://registry.npmjs.org/forever-agent/-/forever-agent-0.6.1.tgz", + "integrity": "sha1-+8cfDEGt6zf5bFd60e1C2P2sypE=", + "dev": true, + "optional": true + }, + "form-data": { + "version": "2.3.3", + "resolved": "https://registry.npmjs.org/form-data/-/form-data-2.3.3.tgz", + "integrity": "sha512-1lLKB2Mu3aGP1Q/2eCOx0fNbRMe7XdwktwOruhfqqd0rIJWwN4Dh+E3hrPSlDCXnSR7UtZ1N38rVXm+6+MEhJQ==", + "dev": true, + "optional": true, + "requires": { + "asynckit": "^0.4.0", + "combined-stream": "^1.0.6", + "mime-types": "^2.1.12" + } }, "forwarded": { "version": "0.1.2", "resolved": "https://registry.npmjs.org/forwarded/-/forwarded-0.1.2.tgz", - "integrity": "sha1-mMI9qxF1ZXuMBXPozszZGw/xjIQ=" + "integrity": "sha1-mMI9qxF1ZXuMBXPozszZGw/xjIQ=", + "dev": true }, "fragment-cache": { "version": "0.2.1", "resolved": "https://registry.npmjs.org/fragment-cache/-/fragment-cache-0.2.1.tgz", "integrity": "sha1-QpD60n8T6Jvn8zeZxrxaCr//DRk=", + "dev": true, "requires": { "map-cache": "^0.2.2" } @@ -3223,12 +4116,14 @@ "fresh": { "version": "0.5.2", "resolved": "https://registry.npmjs.org/fresh/-/fresh-0.5.2.tgz", - "integrity": "sha1-PYyt2Q2XZWn6g1qx+OSyOhBWBac=" + "integrity": "sha1-PYyt2Q2XZWn6g1qx+OSyOhBWBac=", + "dev": true }, "friendly-errors-webpack-plugin": { "version": "1.7.0", "resolved": "https://registry.npmjs.org/friendly-errors-webpack-plugin/-/friendly-errors-webpack-plugin-1.7.0.tgz", "integrity": "sha512-K27M3VK30wVoOarP651zDmb93R9zF28usW4ocaK3mfQeIEI5BPht/EzZs5E8QLLwbLRJQMwscAjDxYPb1FuNiw==", + "dev": true, "requires": { "chalk": "^1.1.3", "error-stack-parser": "^2.0.0", @@ -3238,12 +4133,14 @@ "ansi-styles": { "version": "2.2.1", "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-2.2.1.tgz", - "integrity": "sha1-tDLdM1i2NM914eRmQ2gkBTPB3b4=" + "integrity": "sha1-tDLdM1i2NM914eRmQ2gkBTPB3b4=", + "dev": true }, "chalk": { "version": "1.1.3", "resolved": "https://registry.npmjs.org/chalk/-/chalk-1.1.3.tgz", "integrity": "sha1-qBFcVeSnAv5NFQq9OHKCKn4J/Jg=", + "dev": true, "requires": { "ansi-styles": "^2.2.1", "escape-string-regexp": "^1.0.2", @@ -3255,7 +4152,8 @@ "supports-color": { "version": "2.0.0", "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-2.0.0.tgz", - "integrity": "sha1-U10EXOa2Nj+kARcIRimZXp3zJMc=" + "integrity": "sha1-U10EXOa2Nj+kARcIRimZXp3zJMc=", + "dev": true } } }, @@ -3263,6 +4161,7 @@ "version": "2.3.0", "resolved": "https://registry.npmjs.org/from2/-/from2-2.3.0.tgz", "integrity": "sha1-i/tVAr3kpNNs/e6gB/zKIdfjgq8=", + "dev": true, "requires": { "inherits": "^2.0.1", "readable-stream": "^2.0.0" @@ -3272,6 +4171,7 @@ "version": "7.0.1", "resolved": "https://registry.npmjs.org/fs-extra/-/fs-extra-7.0.1.tgz", "integrity": "sha512-YJDaCJZEnBmcbw13fvdAM9AwNOJwOzrE4pqMqBq5nFiEqXUqHwlK4B+3pUw6JNvfSPtX05xFHtYy/1ni01eGCw==", + "dev": true, "requires": { "graceful-fs": "^4.1.2", "jsonfile": "^4.0.0", @@ -3282,6 +4182,7 @@ "version": "1.0.10", "resolved": "https://registry.npmjs.org/fs-write-stream-atomic/-/fs-write-stream-atomic-1.0.10.tgz", "integrity": "sha1-tH31NJPvkR33VzHnCp3tAYnbQMk=", + "dev": true, "requires": { "graceful-fs": "^4.1.2", "iferr": "^0.1.5", @@ -3292,12 +4193,14 @@ "fs.realpath": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/fs.realpath/-/fs.realpath-1.0.0.tgz", - "integrity": "sha1-FQStJSMVjKpA20onh8sBQRmU6k8=" + "integrity": "sha1-FQStJSMVjKpA20onh8sBQRmU6k8=", + "dev": true }, "fsevents": { "version": "1.2.9", "resolved": "https://registry.npmjs.org/fsevents/-/fsevents-1.2.9.tgz", "integrity": "sha512-oeyj2H3EjjonWcFjD5NvZNE9Rqe4UW+nQBU2HNeKw0koVLEFIhtyETyAakeAM3de7Z/SW5kcA+fZUait9EApnw==", + "dev": true, "optional": true, "requires": { "nan": "^2.12.1", @@ -3307,21 +4210,25 @@ "abbrev": { "version": "1.1.1", "bundled": true, + "dev": true, "optional": true }, "ansi-regex": { "version": "2.1.1", "bundled": true, + "dev": true, "optional": true }, "aproba": { "version": "1.2.0", "bundled": true, + "dev": true, "optional": true }, "are-we-there-yet": { "version": "1.1.5", "bundled": true, + "dev": true, "optional": true, "requires": { "delegates": "^1.0.0", @@ -3331,11 +4238,13 @@ "balanced-match": { "version": "1.0.0", "bundled": true, + "dev": true, "optional": true }, "brace-expansion": { "version": "1.1.11", "bundled": true, + "dev": true, "optional": true, "requires": { "balanced-match": "^1.0.0", @@ -3345,31 +4254,37 @@ "chownr": { "version": "1.1.1", "bundled": true, + "dev": true, "optional": true }, "code-point-at": { "version": "1.1.0", "bundled": true, + "dev": true, "optional": true }, "concat-map": { "version": "0.0.1", "bundled": true, + "dev": true, "optional": true }, "console-control-strings": { "version": "1.1.0", "bundled": true, + "dev": true, "optional": true }, "core-util-is": { "version": "1.0.2", "bundled": true, + "dev": true, "optional": true }, "debug": { "version": "4.1.1", "bundled": true, + "dev": true, "optional": true, "requires": { "ms": "^2.1.1" @@ -3378,21 +4293,25 @@ "deep-extend": { "version": "0.6.0", "bundled": true, + "dev": true, "optional": true }, "delegates": { "version": "1.0.0", "bundled": true, + "dev": true, "optional": true }, "detect-libc": { "version": "1.0.3", "bundled": true, + "dev": true, "optional": true }, "fs-minipass": { "version": "1.2.5", "bundled": true, + "dev": true, "optional": true, "requires": { "minipass": "^2.2.1" @@ -3401,11 +4320,13 @@ "fs.realpath": { "version": "1.0.0", "bundled": true, + "dev": true, "optional": true }, "gauge": { "version": "2.7.4", "bundled": true, + "dev": true, "optional": true, "requires": { "aproba": "^1.0.3", @@ -3421,6 +4342,7 @@ "glob": { "version": "7.1.3", "bundled": true, + "dev": true, "optional": true, "requires": { "fs.realpath": "^1.0.0", @@ -3434,11 +4356,13 @@ "has-unicode": { "version": "2.0.1", "bundled": true, + "dev": true, "optional": true }, "iconv-lite": { "version": "0.4.24", "bundled": true, + "dev": true, "optional": true, "requires": { "safer-buffer": ">= 2.1.2 < 3" @@ -3447,6 +4371,7 @@ "ignore-walk": { "version": "3.0.1", "bundled": true, + "dev": true, "optional": true, "requires": { "minimatch": "^3.0.4" @@ -3455,6 +4380,7 @@ "inflight": { "version": "1.0.6", "bundled": true, + "dev": true, "optional": true, "requires": { "once": "^1.3.0", @@ -3464,16 +4390,19 @@ "inherits": { "version": "2.0.3", "bundled": true, + "dev": true, "optional": true }, "ini": { "version": "1.3.5", "bundled": true, + "dev": true, "optional": true }, "is-fullwidth-code-point": { "version": "1.0.0", "bundled": true, + "dev": true, "optional": true, "requires": { "number-is-nan": "^1.0.0" @@ -3482,11 +4411,13 @@ "isarray": { "version": "1.0.0", "bundled": true, + "dev": true, "optional": true }, "minimatch": { "version": "3.0.4", "bundled": true, + "dev": true, "optional": true, "requires": { "brace-expansion": "^1.1.7" @@ -3495,11 +4426,13 @@ "minimist": { "version": "0.0.8", "bundled": true, + "dev": true, "optional": true }, "minipass": { "version": "2.3.5", "bundled": true, + "dev": true, "optional": true, "requires": { "safe-buffer": "^5.1.2", @@ -3509,6 +4442,7 @@ "minizlib": { "version": "1.2.1", "bundled": true, + "dev": true, "optional": true, "requires": { "minipass": "^2.2.1" @@ -3517,6 +4451,7 @@ "mkdirp": { "version": "0.5.1", "bundled": true, + "dev": true, "optional": true, "requires": { "minimist": "0.0.8" @@ -3525,11 +4460,13 @@ "ms": { "version": "2.1.1", "bundled": true, + "dev": true, "optional": true }, "needle": { "version": "2.3.0", "bundled": true, + "dev": true, "optional": true, "requires": { "debug": "^4.1.0", @@ -3540,6 +4477,7 @@ "node-pre-gyp": { "version": "0.12.0", "bundled": true, + "dev": true, "optional": true, "requires": { "detect-libc": "^1.0.2", @@ -3557,6 +4495,7 @@ "nopt": { "version": "4.0.1", "bundled": true, + "dev": true, "optional": true, "requires": { "abbrev": "1", @@ -3566,11 +4505,13 @@ "npm-bundled": { "version": "1.0.6", "bundled": true, + "dev": true, "optional": true }, "npm-packlist": { "version": "1.4.1", "bundled": true, + "dev": true, "optional": true, "requires": { "ignore-walk": "^3.0.1", @@ -3580,6 +4521,7 @@ "npmlog": { "version": "4.1.2", "bundled": true, + "dev": true, "optional": true, "requires": { "are-we-there-yet": "~1.1.2", @@ -3591,16 +4533,19 @@ "number-is-nan": { "version": "1.0.1", "bundled": true, + "dev": true, "optional": true }, "object-assign": { "version": "4.1.1", "bundled": true, + "dev": true, "optional": true }, "once": { "version": "1.4.0", "bundled": true, + "dev": true, "optional": true, "requires": { "wrappy": "1" @@ -3609,16 +4554,19 @@ "os-homedir": { "version": "1.0.2", "bundled": true, + "dev": true, "optional": true }, "os-tmpdir": { "version": "1.0.2", "bundled": true, + "dev": true, "optional": true }, "osenv": { "version": "0.1.5", "bundled": true, + "dev": true, "optional": true, "requires": { "os-homedir": "^1.0.0", @@ -3628,16 +4576,19 @@ "path-is-absolute": { "version": "1.0.1", "bundled": true, + "dev": true, "optional": true }, "process-nextick-args": { "version": "2.0.0", "bundled": true, + "dev": true, "optional": true }, "rc": { "version": "1.2.8", "bundled": true, + "dev": true, "optional": true, "requires": { "deep-extend": "^0.6.0", @@ -3649,6 +4600,7 @@ "minimist": { "version": "1.2.0", "bundled": true, + "dev": true, "optional": true } } @@ -3656,6 +4608,7 @@ "readable-stream": { "version": "2.3.6", "bundled": true, + "dev": true, "optional": true, "requires": { "core-util-is": "~1.0.0", @@ -3670,6 +4623,7 @@ "rimraf": { "version": "2.6.3", "bundled": true, + "dev": true, "optional": true, "requires": { "glob": "^7.1.3" @@ -3678,36 +4632,43 @@ "safe-buffer": { "version": "5.1.2", "bundled": true, + "dev": true, "optional": true }, "safer-buffer": { "version": "2.1.2", "bundled": true, + "dev": true, "optional": true }, "sax": { "version": "1.2.4", "bundled": true, + "dev": true, "optional": true }, "semver": { "version": "5.7.0", "bundled": true, + "dev": true, "optional": true }, "set-blocking": { "version": "2.0.0", "bundled": true, + "dev": true, "optional": true }, "signal-exit": { "version": "3.0.2", "bundled": true, + "dev": true, "optional": true }, "string-width": { "version": "1.0.2", "bundled": true, + "dev": true, "optional": true, "requires": { "code-point-at": "^1.0.0", @@ -3718,6 +4679,7 @@ "string_decoder": { "version": "1.1.1", "bundled": true, + "dev": true, "optional": true, "requires": { "safe-buffer": "~5.1.0" @@ -3726,6 +4688,7 @@ "strip-ansi": { "version": "3.0.1", "bundled": true, + "dev": true, "optional": true, "requires": { "ansi-regex": "^2.0.0" @@ -3734,11 +4697,13 @@ "strip-json-comments": { "version": "2.0.1", "bundled": true, + "dev": true, "optional": true }, "tar": { "version": "4.4.8", "bundled": true, + "dev": true, "optional": true, "requires": { "chownr": "^1.1.1", @@ -3753,11 +4718,13 @@ "util-deprecate": { "version": "1.0.2", "bundled": true, + "dev": true, "optional": true }, "wide-align": { "version": "1.1.3", "bundled": true, + "dev": true, "optional": true, "requires": { "string-width": "^1.0.2 || 2" @@ -3766,11 +4733,13 @@ "wrappy": { "version": "1.0.2", "bundled": true, + "dev": true, "optional": true }, "yallist": { "version": "3.0.3", "bundled": true, + "dev": true, "optional": true } } @@ -3778,17 +4747,20 @@ "function-bind": { "version": "1.1.1", "resolved": "https://registry.npmjs.org/function-bind/-/function-bind-1.1.1.tgz", - "integrity": "sha512-yIovAzMX49sF8Yl58fSCWJ5svSLuaibPxXQJFLmBObTuCr0Mf1KiPopGM9NiFjiYBCbfaa2Fh6breQ6ANVTI0A==" + "integrity": "sha512-yIovAzMX49sF8Yl58fSCWJ5svSLuaibPxXQJFLmBObTuCr0Mf1KiPopGM9NiFjiYBCbfaa2Fh6breQ6ANVTI0A==", + "dev": true }, "get-caller-file": { "version": "2.0.5", "resolved": "https://registry.npmjs.org/get-caller-file/-/get-caller-file-2.0.5.tgz", - "integrity": "sha512-DyFP3BM/3YHTQOCUL/w0OZHR0lpKeGrxotcHWcqNEdnltqFwXVfhEBQ94eIo34AfQpo0rGki4cyIiftY06h2Fg==" + "integrity": "sha512-DyFP3BM/3YHTQOCUL/w0OZHR0lpKeGrxotcHWcqNEdnltqFwXVfhEBQ94eIo34AfQpo0rGki4cyIiftY06h2Fg==", + "dev": true }, "get-stream": { "version": "4.1.0", "resolved": "https://registry.npmjs.org/get-stream/-/get-stream-4.1.0.tgz", "integrity": "sha512-GMat4EJ5161kIy2HevLlr4luNjBgvmj413KaQA7jt4V8B4RDsfpHk7WQ9GVqfYyyx8OS/L66Kox+rJRNklLK7w==", + "dev": true, "requires": { "pump": "^3.0.0" } @@ -3796,12 +4768,24 @@ "get-value": { "version": "2.0.6", "resolved": "https://registry.npmjs.org/get-value/-/get-value-2.0.6.tgz", - "integrity": "sha1-3BXKHGcjh8p2vTesCjlbogQqLCg=" + "integrity": "sha1-3BXKHGcjh8p2vTesCjlbogQqLCg=", + "dev": true + }, + "getpass": { + "version": "0.1.7", + "resolved": "https://registry.npmjs.org/getpass/-/getpass-0.1.7.tgz", + "integrity": "sha1-Xv+OPmhNVprkyysSgmBOi6YhSfo=", + "dev": true, + "optional": true, + "requires": { + "assert-plus": "^1.0.0" + } }, "glob": { - "version": "7.1.4", - "resolved": "https://registry.npmjs.org/glob/-/glob-7.1.4.tgz", - "integrity": "sha512-hkLPepehmnKk41pUGm3sYxoFs/umurYfYJCerbXEyFIWcAzvpipAgVkBqqT9RBKMGjnq6kMuyYwha6csxbiM1A==", + "version": "7.1.6", + "resolved": "https://registry.npmjs.org/glob/-/glob-7.1.6.tgz", + "integrity": "sha512-LwaxwyZ72Lk7vZINtNNrywX0ZuLyStrdDtabefZKAY5ZGJhVtgdznluResxNmPitE0SAO+O26sWTHeKSI2wMBA==", + "dev": true, "requires": { "fs.realpath": "^1.0.0", "inflight": "^1.0.4", @@ -3815,6 +4799,7 @@ "version": "3.1.0", "resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-3.1.0.tgz", "integrity": "sha1-nmr2KZ2NO9K9QEMIMr0RPfkGxa4=", + "dev": true, "requires": { "is-glob": "^3.1.0", "path-dirname": "^1.0.0" @@ -3824,6 +4809,7 @@ "version": "3.1.0", "resolved": "https://registry.npmjs.org/is-glob/-/is-glob-3.1.0.tgz", "integrity": "sha1-e6WuJCF4BKxwcHuWkiVnSGzD6Eo=", + "dev": true, "requires": { "is-extglob": "^2.1.0" } @@ -3833,12 +4819,14 @@ "glob-to-regexp": { "version": "0.3.0", "resolved": "https://registry.npmjs.org/glob-to-regexp/-/glob-to-regexp-0.3.0.tgz", - "integrity": "sha1-jFoUlNIGbFcMw7/kSWF1rMTVAqs=" + "integrity": "sha1-jFoUlNIGbFcMw7/kSWF1rMTVAqs=", + "dev": true }, "global-modules": { "version": "2.0.0", "resolved": "https://registry.npmjs.org/global-modules/-/global-modules-2.0.0.tgz", "integrity": "sha512-NGbfmJBp9x8IxyJSd1P+otYK8vonoJactOogrVfFRIAEY1ukil8RSKDz2Yo7wh1oihl51l/r6W4epkeKJHqL8A==", + "dev": true, "requires": { "global-prefix": "^3.0.0" }, @@ -3847,6 +4835,7 @@ "version": "3.0.0", "resolved": "https://registry.npmjs.org/global-prefix/-/global-prefix-3.0.0.tgz", "integrity": "sha512-awConJSVCHVGND6x3tmMaKcQvwXLhjdkmomy2W+Goaui8YPgYgXJZewhg3fWC+DlfqqQuWg8AwqjGTD2nAPVWg==", + "dev": true, "requires": { "ini": "^1.3.5", "kind-of": "^6.0.2", @@ -3859,6 +4848,7 @@ "version": "1.0.2", "resolved": "https://registry.npmjs.org/global-prefix/-/global-prefix-1.0.2.tgz", "integrity": "sha1-2/dDxsFJklk8ZVVoy2btMsASLr4=", + "dev": true, "requires": { "expand-tilde": "^2.0.2", "homedir-polyfill": "^1.0.1", @@ -3870,12 +4860,14 @@ "globals": { "version": "11.12.0", "resolved": "https://registry.npmjs.org/globals/-/globals-11.12.0.tgz", - "integrity": "sha512-WOBp/EEGUiIsJSp7wcv/y6MO+lV9UoncWqxuFfm8eBwzWNgyfBd6Gz+IeKQ9jCmyhoH99g15M3T+QaVHFjizVA==" + "integrity": "sha512-WOBp/EEGUiIsJSp7wcv/y6MO+lV9UoncWqxuFfm8eBwzWNgyfBd6Gz+IeKQ9jCmyhoH99g15M3T+QaVHFjizVA==", + "dev": true }, "globby": { "version": "8.0.2", "resolved": "https://registry.npmjs.org/globby/-/globby-8.0.2.tgz", "integrity": "sha512-yTzMmKygLp8RUpG1Ymu2VXPSJQZjNAZPD4ywgYEaG7e4tBJeUQBO8OpXrf1RCNcEs5alsoJYPAMiIHP0cmeC7w==", + "dev": true, "requires": { "array-union": "^1.0.1", "dir-glob": "2.0.0", @@ -3889,7 +4881,8 @@ "pify": { "version": "3.0.0", "resolved": "https://registry.npmjs.org/pify/-/pify-3.0.0.tgz", - "integrity": "sha1-5aSs0sEB/fPZpNB/DbxNtJ3SgXY=" + "integrity": "sha1-5aSs0sEB/fPZpNB/DbxNtJ3SgXY=", + "dev": true } } }, @@ -3897,29 +4890,67 @@ "version": "0.1.4", "resolved": "https://registry.npmjs.org/globs/-/globs-0.1.4.tgz", "integrity": "sha512-D23dWbOq48vlOraoSigbcQV4tWrnhwk+E/Um2cMuDS3/5dwGmdFeA7L/vAvDhLFlQOTDqHcXh35m/71g2A2WzQ==", + "dev": true, "requires": { "glob": "^7.1.1" } }, "graceful-fs": { - "version": "4.2.2", - "resolved": "https://registry.npmjs.org/graceful-fs/-/graceful-fs-4.2.2.tgz", - "integrity": "sha512-IItsdsea19BoLC7ELy13q1iJFNmd7ofZH5+X/pJr90/nRoPEX0DJo1dHDbgtYWOhJhcCgMDTOw84RZ72q6lB+Q==" + "version": "4.2.3", + "resolved": "https://registry.npmjs.org/graceful-fs/-/graceful-fs-4.2.3.tgz", + "integrity": "sha512-a30VEBm4PEdx1dRB7MFK7BejejvCvBronbLjht+sHuGYj8PHs7M/5Z+rt5lw551vZ7yfTCj4Vuyy3mSJytDWRQ==", + "dev": true + }, + "graphql": { + "version": "14.5.8", + "resolved": "https://registry.npmjs.org/graphql/-/graphql-14.5.8.tgz", + "integrity": "sha512-MMwmi0zlVLQKLdGiMfWkgQD7dY/TUKt4L+zgJ/aR0Howebod3aNgP5JkgvAULiR2HPVZaP2VEElqtdidHweLkg==", + "dev": true, + "requires": { + "iterall": "^1.2.2" + } + }, + "graphql-tag": { + "version": "2.10.1", + "resolved": "https://registry.npmjs.org/graphql-tag/-/graphql-tag-2.10.1.tgz", + "integrity": "sha512-jApXqWBzNXQ8jYa/HLkZJaVw9jgwNqZkywa2zfFn16Iv1Zb7ELNHkJaXHR7Quvd5SIGsy6Ny7SUKATgnu05uEg==", + "dev": true }, "growly": { "version": "1.3.0", "resolved": "https://registry.npmjs.org/growly/-/growly-1.3.0.tgz", - "integrity": "sha1-8QdIy+dq+WS3yWyTxrzCivEgwIE=" + "integrity": "sha1-8QdIy+dq+WS3yWyTxrzCivEgwIE=", + "dev": true }, "handle-thing": { "version": "2.0.0", "resolved": "https://registry.npmjs.org/handle-thing/-/handle-thing-2.0.0.tgz", - "integrity": "sha512-d4sze1JNC454Wdo2fkuyzCr6aHcbL6PGGuFAz0Li/NcOm1tCHGnWDRmJP85dh9IhQErTc2svWFEX5xHIOo//kQ==" + "integrity": "sha512-d4sze1JNC454Wdo2fkuyzCr6aHcbL6PGGuFAz0Li/NcOm1tCHGnWDRmJP85dh9IhQErTc2svWFEX5xHIOo//kQ==", + "dev": true + }, + "har-schema": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/har-schema/-/har-schema-2.0.0.tgz", + "integrity": "sha1-qUwiJOvKwEeCoNkDVSHyRzW37JI=", + "dev": true, + "optional": true + }, + "har-validator": { + "version": "5.1.3", + "resolved": "https://registry.npmjs.org/har-validator/-/har-validator-5.1.3.tgz", + "integrity": "sha512-sNvOCzEQNr/qrvJgc3UG/kD4QtlHycrzwS+6mfTrrSq97BvaYcPZZI1ZSqGSPR73Cxn4LKTD4PttRwfU7jWq5g==", + "dev": true, + "optional": true, + "requires": { + "ajv": "^6.5.5", + "har-schema": "^2.0.0" + } }, "has": { "version": "1.0.3", "resolved": "https://registry.npmjs.org/has/-/has-1.0.3.tgz", "integrity": "sha512-f2dvO0VU6Oej7RkWJGrehjbzMAjFp5/VKPp5tTpWIV4JHHZK1/BxbFRtf/siA2SWTe09caDmVtYYzWEIbBS4zw==", + "dev": true, "requires": { "function-bind": "^1.1.1" } @@ -3928,6 +4959,7 @@ "version": "2.0.0", "resolved": "https://registry.npmjs.org/has-ansi/-/has-ansi-2.0.0.tgz", "integrity": "sha1-NPUEnOHs3ysGSa8+8k5F7TVBbZE=", + "dev": true, "requires": { "ansi-regex": "^2.0.0" } @@ -3935,17 +4967,20 @@ "has-flag": { "version": "3.0.0", "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-3.0.0.tgz", - "integrity": "sha1-tdRU3CGZriJWmfNGfloH87lVuv0=" + "integrity": "sha1-tdRU3CGZriJWmfNGfloH87lVuv0=", + "dev": true }, "has-symbols": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/has-symbols/-/has-symbols-1.0.0.tgz", - "integrity": "sha1-uhqPGvKg/DllD1yFA2dwQSIGO0Q=" + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/has-symbols/-/has-symbols-1.0.1.tgz", + "integrity": "sha512-PLcsoqu++dmEIZB+6totNFKq/7Do+Z0u4oT0zKOJNl3lYK6vGwwu2hjHs+68OEZbTjiUE9bgOABXbP/GvrS0Kg==", + "dev": true }, "has-value": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/has-value/-/has-value-1.0.0.tgz", "integrity": "sha1-GLKB2lhbHFxR3vJMkw7SmgvmsXc=", + "dev": true, "requires": { "get-value": "^2.0.6", "has-values": "^1.0.0", @@ -3956,15 +4991,23 @@ "version": "1.0.0", "resolved": "https://registry.npmjs.org/has-values/-/has-values-1.0.0.tgz", "integrity": "sha1-lbC2P+whRmGab+V/51Yo1aOe/k8=", + "dev": true, "requires": { "is-number": "^3.0.0", "kind-of": "^4.0.0" }, "dependencies": { + "is-buffer": { + "version": "1.1.6", + "resolved": "https://registry.npmjs.org/is-buffer/-/is-buffer-1.1.6.tgz", + "integrity": "sha512-NcdALwpXkTm5Zvvbk7owOUSvVvBKDgKP5/ewfXEznmQFfs4ZRmanOeKBTjRVjka3QFoN6XJ+9F3USqfHqTaU5w==", + "dev": true + }, "kind-of": { "version": "4.0.0", "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-4.0.0.tgz", "integrity": "sha1-IIE989cSkosgc3hpGkUGb65y3Vc=", + "dev": true, "requires": { "is-buffer": "^1.1.5" } @@ -3975,6 +5018,7 @@ "version": "3.0.4", "resolved": "https://registry.npmjs.org/hash-base/-/hash-base-3.0.4.tgz", "integrity": "sha1-X8hoaEfs1zSZQDMZprCj8/auSRg=", + "dev": true, "requires": { "inherits": "^2.0.1", "safe-buffer": "^5.0.1" @@ -3983,12 +5027,14 @@ "hash-sum": { "version": "1.0.2", "resolved": "https://registry.npmjs.org/hash-sum/-/hash-sum-1.0.2.tgz", - "integrity": "sha1-M7QHd3VMZDJXPBIMw4CLvRDUfwQ=" + "integrity": "sha1-M7QHd3VMZDJXPBIMw4CLvRDUfwQ=", + "dev": true }, "hash.js": { "version": "1.1.7", "resolved": "https://registry.npmjs.org/hash.js/-/hash.js-1.1.7.tgz", "integrity": "sha512-taOaskGt4z4SOANNseOviYDvjEJinIkRgmp7LbKP2YTTmVxWBl87s/uzK9r+44BclBSp2X7K1hqeNfz9JbBeXA==", + "dev": true, "requires": { "inherits": "^2.0.3", "minimalistic-assert": "^1.0.1" @@ -3997,17 +5043,20 @@ "he": { "version": "1.2.0", "resolved": "https://registry.npmjs.org/he/-/he-1.2.0.tgz", - "integrity": "sha512-F/1DnUGPopORZi0ni+CvrCgHQ5FyEAHRLSApuYWMmrbSwoN2Mn/7k+Gl38gJnR7yyDZk6WLXwiGod1JOWNDKGw==" + "integrity": "sha512-F/1DnUGPopORZi0ni+CvrCgHQ5FyEAHRLSApuYWMmrbSwoN2Mn/7k+Gl38gJnR7yyDZk6WLXwiGod1JOWNDKGw==", + "dev": true }, "hex-color-regex": { "version": "1.1.0", "resolved": "https://registry.npmjs.org/hex-color-regex/-/hex-color-regex-1.1.0.tgz", - "integrity": "sha512-l9sfDFsuqtOqKDsQdqrMRk0U85RZc0RtOR9yPI7mRVOa4FsR/BVnZ0shmQRM96Ji99kYZP/7hn1cedc1+ApsTQ==" + "integrity": "sha512-l9sfDFsuqtOqKDsQdqrMRk0U85RZc0RtOR9yPI7mRVOa4FsR/BVnZ0shmQRM96Ji99kYZP/7hn1cedc1+ApsTQ==", + "dev": true }, "hmac-drbg": { "version": "1.0.1", "resolved": "https://registry.npmjs.org/hmac-drbg/-/hmac-drbg-1.0.1.tgz", "integrity": "sha1-0nRXAQJabHdabFRXk+1QL8DGSaE=", + "dev": true, "requires": { "hash.js": "^1.0.3", "minimalistic-assert": "^1.0.0", @@ -4018,6 +5067,7 @@ "version": "1.0.3", "resolved": "https://registry.npmjs.org/homedir-polyfill/-/homedir-polyfill-1.0.3.tgz", "integrity": "sha512-eSmmWE5bZTK2Nou4g0AI3zZ9rswp7GRKoKXS1BLUkvPviOqs4YTN1djQIqrXy9k5gEtdLPy86JjRwsNM9tnDcA==", + "dev": true, "requires": { "parse-passwd": "^1.0.0" } @@ -4026,6 +5076,7 @@ "version": "2.1.6", "resolved": "https://registry.npmjs.org/hpack.js/-/hpack.js-2.1.6.tgz", "integrity": "sha1-h3dMCUnlE/QuhFdbPEVoH63ioLI=", + "dev": true, "requires": { "inherits": "^2.0.1", "obuf": "^1.0.0", @@ -4036,27 +5087,32 @@ "hsl-regex": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/hsl-regex/-/hsl-regex-1.0.0.tgz", - "integrity": "sha1-1JMwx4ntgZ4nakwNJy3/owsY/m4=" + "integrity": "sha1-1JMwx4ntgZ4nakwNJy3/owsY/m4=", + "dev": true }, "hsla-regex": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/hsla-regex/-/hsla-regex-1.0.0.tgz", - "integrity": "sha1-wc56MWjIxmFAM6S194d/OyJfnDg=" + "integrity": "sha1-wc56MWjIxmFAM6S194d/OyJfnDg=", + "dev": true }, "html-comment-regex": { "version": "1.1.2", "resolved": "https://registry.npmjs.org/html-comment-regex/-/html-comment-regex-1.1.2.tgz", - "integrity": "sha512-P+M65QY2JQ5Y0G9KKdlDpo0zK+/OHptU5AaBwUfAIDJZk1MYf32Frm84EcOytfJE0t5JvkAnKlmjsXDnWzCJmQ==" + "integrity": "sha512-P+M65QY2JQ5Y0G9KKdlDpo0zK+/OHptU5AaBwUfAIDJZk1MYf32Frm84EcOytfJE0t5JvkAnKlmjsXDnWzCJmQ==", + "dev": true }, "html-entities": { "version": "1.2.1", "resolved": "https://registry.npmjs.org/html-entities/-/html-entities-1.2.1.tgz", - "integrity": "sha1-DfKTUfByEWNRXfueVUPl9u7VFi8=" + "integrity": "sha1-DfKTUfByEWNRXfueVUPl9u7VFi8=", + "dev": true }, "html-loader": { "version": "0.5.5", "resolved": "https://registry.npmjs.org/html-loader/-/html-loader-0.5.5.tgz", "integrity": "sha512-7hIW7YinOYUpo//kSYcPB6dCKoceKLmOwjEMmhIobHuWGDVl0Nwe4l68mdG/Ru0wcUxQjVMEoZpkalZ/SE7zog==", + "dev": true, "requires": { "es6-templates": "^0.2.3", "fastparse": "^1.1.1", @@ -4069,6 +5125,7 @@ "version": "3.5.21", "resolved": "https://registry.npmjs.org/html-minifier/-/html-minifier-3.5.21.tgz", "integrity": "sha512-LKUKwuJDhxNa3uf/LPR/KVjm/l3rBqtYeCOAekvG8F1vItxMUpueGd94i/asDDr8/1u7InxzFA5EeGjhhG5mMA==", + "dev": true, "requires": { "camel-case": "3.0.x", "clean-css": "4.2.x", @@ -4082,12 +5139,14 @@ "http-deceiver": { "version": "1.2.7", "resolved": "https://registry.npmjs.org/http-deceiver/-/http-deceiver-1.2.7.tgz", - "integrity": "sha1-+nFolEq5pRnTN8sL7HKE3D5yPYc=" + "integrity": "sha1-+nFolEq5pRnTN8sL7HKE3D5yPYc=", + "dev": true }, "http-errors": { "version": "1.7.2", "resolved": "https://registry.npmjs.org/http-errors/-/http-errors-1.7.2.tgz", "integrity": "sha512-uUQBt3H/cSIVfch6i1EuPNy/YsRSOUBXTVfZ+yR7Zjez3qjBz6i9+i4zjNaoqcoFVI4lQJ5plg63TvGfRSDCRg==", + "dev": true, "requires": { "depd": "~1.1.2", "inherits": "2.0.3", @@ -4099,19 +5158,22 @@ "inherits": { "version": "2.0.3", "resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.3.tgz", - "integrity": "sha1-Yzwsg+PaQqUC9SRmAiSA9CCCYd4=" + "integrity": "sha1-Yzwsg+PaQqUC9SRmAiSA9CCCYd4=", + "dev": true } } }, "http-parser-js": { "version": "0.4.10", "resolved": "https://registry.npmjs.org/http-parser-js/-/http-parser-js-0.4.10.tgz", - "integrity": "sha1-ksnBN0w1CF912zWexWzCV8u5P6Q=" + "integrity": "sha1-ksnBN0w1CF912zWexWzCV8u5P6Q=", + "dev": true }, "http-proxy": { "version": "1.18.0", "resolved": "https://registry.npmjs.org/http-proxy/-/http-proxy-1.18.0.tgz", "integrity": "sha512-84I2iJM/n1d4Hdgc6y2+qY5mDaz2PUVjlg9znE9byl+q0uC3DeByqBGReQu5tpLK0TAqTIXScRUV+dg7+bUPpQ==", + "dev": true, "requires": { "eventemitter3": "^4.0.0", "follow-redirects": "^1.0.0", @@ -4122,6 +5184,7 @@ "version": "0.19.1", "resolved": "https://registry.npmjs.org/http-proxy-middleware/-/http-proxy-middleware-0.19.1.tgz", "integrity": "sha512-yHYTgWMQO8VvwNS22eLLloAkvungsKdKTLO8AJlftYIKNfJr3GK3zK0ZCfzDDGUBttdGc8xFy1mCitvNKQtC3Q==", + "dev": true, "requires": { "http-proxy": "^1.17.0", "is-glob": "^4.0.0", @@ -4129,15 +5192,29 @@ "micromatch": "^3.1.10" } }, + "http-signature": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/http-signature/-/http-signature-1.2.0.tgz", + "integrity": "sha1-muzZJRFHcvPZW2WmCruPfBj7rOE=", + "dev": true, + "optional": true, + "requires": { + "assert-plus": "^1.0.0", + "jsprim": "^1.2.2", + "sshpk": "^1.7.0" + } + }, "https-browserify": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/https-browserify/-/https-browserify-1.0.0.tgz", - "integrity": "sha1-7AbBDgo0wPL68Zn3/X/Hj//QPHM=" + "integrity": "sha1-7AbBDgo0wPL68Zn3/X/Hj//QPHM=", + "dev": true }, "iconv-lite": { "version": "0.4.24", "resolved": "https://registry.npmjs.org/iconv-lite/-/iconv-lite-0.4.24.tgz", "integrity": "sha512-v3MXnZAcvnywkTUEZomIActle7RXXeedOR31wwl7VlyoXO4Qi9arvSenNQWne1TcRwhCL1HwLI21bEqdpj8/rA==", + "dev": true, "requires": { "safer-buffer": ">= 2.1.2 < 3" } @@ -4145,12 +5222,14 @@ "icss-replace-symbols": { "version": "1.1.0", "resolved": "https://registry.npmjs.org/icss-replace-symbols/-/icss-replace-symbols-1.1.0.tgz", - "integrity": "sha1-Bupvg2ead0njhs/h/oEq5dsiPe0=" + "integrity": "sha1-Bupvg2ead0njhs/h/oEq5dsiPe0=", + "dev": true }, "icss-utils": { "version": "2.1.0", "resolved": "https://registry.npmjs.org/icss-utils/-/icss-utils-2.1.0.tgz", "integrity": "sha1-g/Cg7DeL8yRheLbCrZE28TWxyWI=", + "dev": true, "requires": { "postcss": "^6.0.1" }, @@ -4159,6 +5238,7 @@ "version": "6.0.23", "resolved": "https://registry.npmjs.org/postcss/-/postcss-6.0.23.tgz", "integrity": "sha512-soOk1h6J3VMTZtVeVpv15/Hpdl2cBLX3CAw4TAbkpTJiNPk9YP/zWcD1ND+xEtvyuuvKzbxliTOIyvkSeSJ6ag==", + "dev": true, "requires": { "chalk": "^2.4.1", "source-map": "^0.6.1", @@ -4168,29 +5248,41 @@ "source-map": { "version": "0.6.1", "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", - "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==" + "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==", + "dev": true } } }, "ieee754": { "version": "1.1.13", "resolved": "https://registry.npmjs.org/ieee754/-/ieee754-1.1.13.tgz", - "integrity": "sha512-4vf7I2LYV/HaWerSo3XmlMkp5eZ83i+/CDluXi/IGTs/O1sejBNhTtnxzmRZfvOUqj7lZjqHkeTvpgSFDlWZTg==" + "integrity": "sha512-4vf7I2LYV/HaWerSo3XmlMkp5eZ83i+/CDluXi/IGTs/O1sejBNhTtnxzmRZfvOUqj7lZjqHkeTvpgSFDlWZTg==", + "dev": true }, "iferr": { "version": "0.1.5", "resolved": "https://registry.npmjs.org/iferr/-/iferr-0.1.5.tgz", - "integrity": "sha1-xg7taebY/bazEEofy8ocGS3FtQE=" + "integrity": "sha1-xg7taebY/bazEEofy8ocGS3FtQE=", + "dev": true }, "ignore": { "version": "3.3.10", "resolved": "https://registry.npmjs.org/ignore/-/ignore-3.3.10.tgz", - "integrity": "sha512-Pgs951kaMm5GXP7MOvxERINe3gsaVjUWFm+UZPSq9xYriQAksyhg0csnS0KXSNRD5NmNdapXEpjxG49+AKh/ug==" + "integrity": "sha512-Pgs951kaMm5GXP7MOvxERINe3gsaVjUWFm+UZPSq9xYriQAksyhg0csnS0KXSNRD5NmNdapXEpjxG49+AKh/ug==", + "dev": true + }, + "image-size": { + "version": "0.5.5", + "resolved": "https://registry.npmjs.org/image-size/-/image-size-0.5.5.tgz", + "integrity": "sha1-Cd/Uq50g4p6xw+gLiZA3jfnjy5w=", + "dev": true, + "optional": true }, "imagemin": { "version": "6.1.0", "resolved": "https://registry.npmjs.org/imagemin/-/imagemin-6.1.0.tgz", "integrity": "sha512-8ryJBL1CN5uSHpiBMX0rJw79C9F9aJqMnjGnrd/1CafegpNuA81RBAAru/jQQEOWlOJJlpRnlcVFF6wq+Ist0A==", + "dev": true, "requires": { "file-type": "^10.7.0", "globby": "^8.0.1", @@ -4204,6 +5296,7 @@ "version": "1.3.0", "resolved": "https://registry.npmjs.org/make-dir/-/make-dir-1.3.0.tgz", "integrity": "sha512-2w31R7SJtieJJnQtGc7RVL2StM2vGYVfqUOvUDxH6bC6aJTxPxTF0GnIgCyu7tjockiUWAYQRbxa7vKn34s5sQ==", + "dev": true, "requires": { "pify": "^3.0.0" }, @@ -4211,7 +5304,8 @@ "pify": { "version": "3.0.0", "resolved": "https://registry.npmjs.org/pify/-/pify-3.0.0.tgz", - "integrity": "sha1-5aSs0sEB/fPZpNB/DbxNtJ3SgXY=" + "integrity": "sha1-5aSs0sEB/fPZpNB/DbxNtJ3SgXY=", + "dev": true } } } @@ -4221,6 +5315,7 @@ "version": "3.0.1", "resolved": "https://registry.npmjs.org/img-loader/-/img-loader-3.0.1.tgz", "integrity": "sha512-0jDJqexgzOuq3zlXwFTBKJlMcaP1uXyl5t4Qu6b1IgXb3IwBDjPfVylBC8vHFIIESDw/S+5QkBbtBrt4T8wESA==", + "dev": true, "requires": { "loader-utils": "^1.1.0" } @@ -4229,6 +5324,7 @@ "version": "2.1.0", "resolved": "https://registry.npmjs.org/import-cwd/-/import-cwd-2.1.0.tgz", "integrity": "sha1-qmzzbnInYShcs3HsZRn1PiQ1sKk=", + "dev": true, "requires": { "import-from": "^2.1.0" } @@ -4237,6 +5333,7 @@ "version": "2.0.0", "resolved": "https://registry.npmjs.org/import-fresh/-/import-fresh-2.0.0.tgz", "integrity": "sha1-2BNVwVYS04bGH53dOSLUMEgipUY=", + "dev": true, "requires": { "caller-path": "^2.0.0", "resolve-from": "^3.0.0" @@ -4246,6 +5343,7 @@ "version": "2.1.0", "resolved": "https://registry.npmjs.org/import-from/-/import-from-2.1.0.tgz", "integrity": "sha1-M1238qev/VOqpHHUuAId7ja387E=", + "dev": true, "requires": { "resolve-from": "^3.0.0" } @@ -4254,6 +5352,7 @@ "version": "2.0.0", "resolved": "https://registry.npmjs.org/import-local/-/import-local-2.0.0.tgz", "integrity": "sha512-b6s04m3O+s3CGSbqDIyP4R6aAwAeYlVq9+WUWep6iHa8ETRf9yei1U48C5MmfJmV9AiLYYBKPMq/W+/WRpQmCQ==", + "dev": true, "requires": { "pkg-dir": "^3.0.0", "resolve-cwd": "^2.0.0" @@ -4262,22 +5361,26 @@ "imurmurhash": { "version": "0.1.4", "resolved": "https://registry.npmjs.org/imurmurhash/-/imurmurhash-0.1.4.tgz", - "integrity": "sha1-khi5srkoojixPcT7a21XbyMUU+o=" + "integrity": "sha1-khi5srkoojixPcT7a21XbyMUU+o=", + "dev": true }, "indexes-of": { "version": "1.0.1", "resolved": "https://registry.npmjs.org/indexes-of/-/indexes-of-1.0.1.tgz", - "integrity": "sha1-8w9xbI4r00bHtn0985FVZqfAVgc=" + "integrity": "sha1-8w9xbI4r00bHtn0985FVZqfAVgc=", + "dev": true }, "infer-owner": { "version": "1.0.4", "resolved": "https://registry.npmjs.org/infer-owner/-/infer-owner-1.0.4.tgz", - "integrity": "sha512-IClj+Xz94+d7irH5qRyfJonOdfTzuDaifE6ZPWfx0N0+/ATZCbuTPq2prFl526urkQd90WyUKIh1DfBQ2hMz9A==" + "integrity": "sha512-IClj+Xz94+d7irH5qRyfJonOdfTzuDaifE6ZPWfx0N0+/ATZCbuTPq2prFl526urkQd90WyUKIh1DfBQ2hMz9A==", + "dev": true }, "inflight": { "version": "1.0.6", "resolved": "https://registry.npmjs.org/inflight/-/inflight-1.0.6.tgz", "integrity": "sha1-Sb1jMdfQLQwJvJEKEHW6gWW1bfk=", + "dev": true, "requires": { "once": "^1.3.0", "wrappy": "1" @@ -4286,17 +5389,20 @@ "inherits": { "version": "2.0.4", "resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.4.tgz", - "integrity": "sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==" + "integrity": "sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==", + "dev": true }, "ini": { "version": "1.3.5", "resolved": "https://registry.npmjs.org/ini/-/ini-1.3.5.tgz", - "integrity": "sha512-RZY5huIKCMRWDUqZlEi72f/lmXKMvuszcMBduliQ3nnWbx9X/ZBQO7DijMEYS9EhHBb2qacRUMtC7svLwe0lcw==" + "integrity": "sha512-RZY5huIKCMRWDUqZlEi72f/lmXKMvuszcMBduliQ3nnWbx9X/ZBQO7DijMEYS9EhHBb2qacRUMtC7svLwe0lcw==", + "dev": true }, "internal-ip": { "version": "4.3.0", "resolved": "https://registry.npmjs.org/internal-ip/-/internal-ip-4.3.0.tgz", "integrity": "sha512-S1zBo1D6zcsyuC6PMmY5+55YMILQ9av8lotMx447Bq6SAgo/sDK6y6uUKmuYhW7eacnIhFfsPmCNYdDzsnnDCg==", + "dev": true, "requires": { "default-gateway": "^4.2.0", "ipaddr.js": "^1.9.0" @@ -4305,12 +5411,20 @@ "interpret": { "version": "1.2.0", "resolved": "https://registry.npmjs.org/interpret/-/interpret-1.2.0.tgz", - "integrity": "sha512-mT34yGKMNceBQUoVn7iCDKDntA7SC6gycMAWzGx1z/CMCTV7b2AAtXlo3nRyHZ1FelRkQbQjprHSYGwzLtkVbw==" + "integrity": "sha512-mT34yGKMNceBQUoVn7iCDKDntA7SC6gycMAWzGx1z/CMCTV7b2AAtXlo3nRyHZ1FelRkQbQjprHSYGwzLtkVbw==", + "dev": true + }, + "intersperse": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/intersperse/-/intersperse-1.0.0.tgz", + "integrity": "sha1-8lYfsc/vn1J3zDNHoiiGtDUaUYE=", + "dev": true }, "invariant": { "version": "2.2.4", "resolved": "https://registry.npmjs.org/invariant/-/invariant-2.2.4.tgz", "integrity": "sha512-phJfQVBuaJM5raOpJjSfkiD6BpbCE4Ns//LaXl6wGYtUBY83nWS6Rf9tXm2e8VaK60JEjYldbPif/A2B1C2gNA==", + "dev": true, "requires": { "loose-envify": "^1.0.0" } @@ -4318,40 +5432,53 @@ "invert-kv": { "version": "2.0.0", "resolved": "https://registry.npmjs.org/invert-kv/-/invert-kv-2.0.0.tgz", - "integrity": "sha512-wPVv/y/QQ/Uiirj/vh3oP+1Ww+AWehmi1g5fFWGPF6IpCBCDVrhgHRMvrLfdYcwDh3QJbGXDW4JAuzxElLSqKA==" + "integrity": "sha512-wPVv/y/QQ/Uiirj/vh3oP+1Ww+AWehmi1g5fFWGPF6IpCBCDVrhgHRMvrLfdYcwDh3QJbGXDW4JAuzxElLSqKA==", + "dev": true }, "ip": { "version": "1.1.5", "resolved": "https://registry.npmjs.org/ip/-/ip-1.1.5.tgz", - "integrity": "sha1-vd7XARQpCCjAoDnnLvJfWq7ENUo=" + "integrity": "sha1-vd7XARQpCCjAoDnnLvJfWq7ENUo=", + "dev": true }, "ip-regex": { "version": "2.1.0", "resolved": "https://registry.npmjs.org/ip-regex/-/ip-regex-2.1.0.tgz", - "integrity": "sha1-+ni/XS5pE8kRzp+BnuUUa7bYROk=" + "integrity": "sha1-+ni/XS5pE8kRzp+BnuUUa7bYROk=", + "dev": true }, "ipaddr.js": { "version": "1.9.0", "resolved": "https://registry.npmjs.org/ipaddr.js/-/ipaddr.js-1.9.0.tgz", - "integrity": "sha512-M4Sjn6N/+O6/IXSJseKqHoFc+5FdGJ22sXqnjTpdZweHK64MzEPAyQZyEU3R/KRv2GLoa7nNtg/C2Ev6m7z+eA==" + "integrity": "sha512-M4Sjn6N/+O6/IXSJseKqHoFc+5FdGJ22sXqnjTpdZweHK64MzEPAyQZyEU3R/KRv2GLoa7nNtg/C2Ev6m7z+eA==", + "dev": true }, "is-absolute-url": { "version": "2.1.0", "resolved": "https://registry.npmjs.org/is-absolute-url/-/is-absolute-url-2.1.0.tgz", - "integrity": "sha1-UFMN+4T8yap9vnhS6Do3uTufKqY=" + "integrity": "sha1-UFMN+4T8yap9vnhS6Do3uTufKqY=", + "dev": true }, "is-accessor-descriptor": { "version": "0.1.6", "resolved": "https://registry.npmjs.org/is-accessor-descriptor/-/is-accessor-descriptor-0.1.6.tgz", "integrity": "sha1-qeEss66Nh2cn7u84Q/igiXtcmNY=", + "dev": true, "requires": { "kind-of": "^3.0.2" }, "dependencies": { + "is-buffer": { + "version": "1.1.6", + "resolved": "https://registry.npmjs.org/is-buffer/-/is-buffer-1.1.6.tgz", + "integrity": "sha512-NcdALwpXkTm5Zvvbk7owOUSvVvBKDgKP5/ewfXEznmQFfs4ZRmanOeKBTjRVjka3QFoN6XJ+9F3USqfHqTaU5w==", + "dev": true + }, "kind-of": { "version": "3.2.2", "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-3.2.2.tgz", "integrity": "sha1-MeohpzS6ubuw8yRm2JOupR5KPGQ=", + "dev": true, "requires": { "is-buffer": "^1.1.5" } @@ -4361,35 +5488,41 @@ "is-arguments": { "version": "1.0.4", "resolved": "https://registry.npmjs.org/is-arguments/-/is-arguments-1.0.4.tgz", - "integrity": "sha512-xPh0Rmt8NE65sNzvyUmWgI1tz3mKq74lGA0mL8LYZcoIzKOzDh6HmrYm3d18k60nHerC8A9Km8kYu87zfSFnLA==" + "integrity": "sha512-xPh0Rmt8NE65sNzvyUmWgI1tz3mKq74lGA0mL8LYZcoIzKOzDh6HmrYm3d18k60nHerC8A9Km8kYu87zfSFnLA==", + "dev": true }, "is-arrayish": { "version": "0.2.1", "resolved": "https://registry.npmjs.org/is-arrayish/-/is-arrayish-0.2.1.tgz", - "integrity": "sha1-d8mYQFJ6qOyxqLppe4BkWnqSap0=" + "integrity": "sha1-d8mYQFJ6qOyxqLppe4BkWnqSap0=", + "dev": true }, "is-binary-path": { "version": "1.0.1", "resolved": "https://registry.npmjs.org/is-binary-path/-/is-binary-path-1.0.1.tgz", "integrity": "sha1-dfFmQrSA8YenEcgUFh/TpKdlWJg=", + "dev": true, "requires": { "binary-extensions": "^1.0.0" } }, "is-buffer": { - "version": "1.1.6", - "resolved": "https://registry.npmjs.org/is-buffer/-/is-buffer-1.1.6.tgz", - "integrity": "sha512-NcdALwpXkTm5Zvvbk7owOUSvVvBKDgKP5/ewfXEznmQFfs4ZRmanOeKBTjRVjka3QFoN6XJ+9F3USqfHqTaU5w==" + "version": "2.0.4", + "resolved": "https://registry.npmjs.org/is-buffer/-/is-buffer-2.0.4.tgz", + "integrity": "sha512-Kq1rokWXOPXWuaMAqZiJW4XxsmD9zGx9q4aePabbn3qCRGedtH7Cm+zV8WETitMfu1wdh+Rvd6w5egwSngUX2A==", + "dev": true }, "is-callable": { "version": "1.1.4", "resolved": "https://registry.npmjs.org/is-callable/-/is-callable-1.1.4.tgz", - "integrity": "sha512-r5p9sxJjYnArLjObpjA4xu5EKI3CuKHkJXMhT7kwbpUyIFD1n5PMAsoPvWnvtZiNz7LjkYDRZhd7FlI0eMijEA==" + "integrity": "sha512-r5p9sxJjYnArLjObpjA4xu5EKI3CuKHkJXMhT7kwbpUyIFD1n5PMAsoPvWnvtZiNz7LjkYDRZhd7FlI0eMijEA==", + "dev": true }, "is-color-stop": { "version": "1.1.0", "resolved": "https://registry.npmjs.org/is-color-stop/-/is-color-stop-1.1.0.tgz", "integrity": "sha1-z/9HGu5N1cnhWFmPvhKWe1za00U=", + "dev": true, "requires": { "css-color-names": "^0.0.4", "hex-color-regex": "^1.1.0", @@ -4403,14 +5536,22 @@ "version": "0.1.4", "resolved": "https://registry.npmjs.org/is-data-descriptor/-/is-data-descriptor-0.1.4.tgz", "integrity": "sha1-C17mSDiOLIYCgueT8YVv7D8wG1Y=", + "dev": true, "requires": { "kind-of": "^3.0.2" }, "dependencies": { + "is-buffer": { + "version": "1.1.6", + "resolved": "https://registry.npmjs.org/is-buffer/-/is-buffer-1.1.6.tgz", + "integrity": "sha512-NcdALwpXkTm5Zvvbk7owOUSvVvBKDgKP5/ewfXEznmQFfs4ZRmanOeKBTjRVjka3QFoN6XJ+9F3USqfHqTaU5w==", + "dev": true + }, "kind-of": { "version": "3.2.2", "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-3.2.2.tgz", "integrity": "sha1-MeohpzS6ubuw8yRm2JOupR5KPGQ=", + "dev": true, "requires": { "is-buffer": "^1.1.5" } @@ -4420,12 +5561,14 @@ "is-date-object": { "version": "1.0.1", "resolved": "https://registry.npmjs.org/is-date-object/-/is-date-object-1.0.1.tgz", - "integrity": "sha1-mqIOtq7rv/d/vTPnTKAbM1gdOhY=" + "integrity": "sha1-mqIOtq7rv/d/vTPnTKAbM1gdOhY=", + "dev": true }, "is-descriptor": { "version": "0.1.6", "resolved": "https://registry.npmjs.org/is-descriptor/-/is-descriptor-0.1.6.tgz", "integrity": "sha512-avDYr0SB3DwO9zsMov0gKCESFYqCnE4hq/4z3TdUlukEy5t9C0YRq7HLrsN52NAcqXKaepeCD0n+B0arnVG3Hg==", + "dev": true, "requires": { "is-accessor-descriptor": "^0.1.6", "is-data-descriptor": "^0.1.4", @@ -4435,19 +5578,22 @@ "kind-of": { "version": "5.1.0", "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-5.1.0.tgz", - "integrity": "sha512-NGEErnH6F2vUuXDh+OlbcKW7/wOcfdRHaZ7VWtqCztfHri/++YKmP51OdWeGPuqCOba6kk2OTe5d02VmTB80Pw==" + "integrity": "sha512-NGEErnH6F2vUuXDh+OlbcKW7/wOcfdRHaZ7VWtqCztfHri/++YKmP51OdWeGPuqCOba6kk2OTe5d02VmTB80Pw==", + "dev": true } } }, "is-directory": { "version": "0.3.1", "resolved": "https://registry.npmjs.org/is-directory/-/is-directory-0.3.1.tgz", - "integrity": "sha1-YTObbyR1/Hcv2cnYP1yFddwVSuE=" + "integrity": "sha1-YTObbyR1/Hcv2cnYP1yFddwVSuE=", + "dev": true }, "is-extendable": { "version": "1.0.1", "resolved": "https://registry.npmjs.org/is-extendable/-/is-extendable-1.0.1.tgz", "integrity": "sha512-arnXMxT1hhoKo9k1LZdmlNyJdDDfy2v0fXjFlmok4+i8ul/6WlbVge9bhM74OpNPQPMGUToDtz+KXa1PneJxOA==", + "dev": true, "requires": { "is-plain-object": "^2.0.4" } @@ -4455,33 +5601,50 @@ "is-extglob": { "version": "2.1.1", "resolved": "https://registry.npmjs.org/is-extglob/-/is-extglob-2.1.1.tgz", - "integrity": "sha1-qIwCU1eR8C7TfHahueqXc8gz+MI=" + "integrity": "sha1-qIwCU1eR8C7TfHahueqXc8gz+MI=", + "dev": true }, "is-fullwidth-code-point": { "version": "2.0.0", "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-2.0.0.tgz", - "integrity": "sha1-o7MKXE8ZkYMWeqq5O+764937ZU8=" + "integrity": "sha1-o7MKXE8ZkYMWeqq5O+764937ZU8=", + "dev": true }, "is-glob": { "version": "4.0.1", "resolved": "https://registry.npmjs.org/is-glob/-/is-glob-4.0.1.tgz", "integrity": "sha512-5G0tKtBTFImOqDnLB2hG6Bp2qcKEFduo4tZu9MT/H6NQv/ghhy30o55ufafxJ/LdH79LLs2Kfrn85TLKyA7BUg==", + "dev": true, "requires": { "is-extglob": "^2.1.1" } }, + "is-negative-zero": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/is-negative-zero/-/is-negative-zero-2.0.0.tgz", + "integrity": "sha1-lVOxIbD6wohp2p7UWeIMdUN4hGE=", + "dev": true + }, "is-number": { "version": "3.0.0", "resolved": "https://registry.npmjs.org/is-number/-/is-number-3.0.0.tgz", "integrity": "sha1-JP1iAaR4LPUFYcgQJ2r8fRLXEZU=", + "dev": true, "requires": { "kind-of": "^3.0.2" }, "dependencies": { + "is-buffer": { + "version": "1.1.6", + "resolved": "https://registry.npmjs.org/is-buffer/-/is-buffer-1.1.6.tgz", + "integrity": "sha512-NcdALwpXkTm5Zvvbk7owOUSvVvBKDgKP5/ewfXEznmQFfs4ZRmanOeKBTjRVjka3QFoN6XJ+9F3USqfHqTaU5w==", + "dev": true + }, "kind-of": { "version": "3.2.2", "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-3.2.2.tgz", "integrity": "sha1-MeohpzS6ubuw8yRm2JOupR5KPGQ=", + "dev": true, "requires": { "is-buffer": "^1.1.5" } @@ -4491,17 +5654,20 @@ "is-obj": { "version": "1.0.1", "resolved": "https://registry.npmjs.org/is-obj/-/is-obj-1.0.1.tgz", - "integrity": "sha1-PkcprB9f3gJc19g6iW2rn09n2w8=" + "integrity": "sha1-PkcprB9f3gJc19g6iW2rn09n2w8=", + "dev": true }, "is-path-cwd": { "version": "2.2.0", "resolved": "https://registry.npmjs.org/is-path-cwd/-/is-path-cwd-2.2.0.tgz", - "integrity": "sha512-w942bTcih8fdJPJmQHFzkS76NEP8Kzzvmw92cXsazb8intwLqPibPPdXf4ANdKV3rYMuuQYGIWtvz9JilB3NFQ==" + "integrity": "sha512-w942bTcih8fdJPJmQHFzkS76NEP8Kzzvmw92cXsazb8intwLqPibPPdXf4ANdKV3rYMuuQYGIWtvz9JilB3NFQ==", + "dev": true }, "is-path-in-cwd": { "version": "2.1.0", "resolved": "https://registry.npmjs.org/is-path-in-cwd/-/is-path-in-cwd-2.1.0.tgz", "integrity": "sha512-rNocXHgipO+rvnP6dk3zI20RpOtrAM/kzbB258Uw5BWr3TpXi861yzjo16Dn4hUox07iw5AyeMLHWsujkjzvRQ==", + "dev": true, "requires": { "is-path-inside": "^2.1.0" } @@ -4510,6 +5676,7 @@ "version": "2.1.0", "resolved": "https://registry.npmjs.org/is-path-inside/-/is-path-inside-2.1.0.tgz", "integrity": "sha512-wiyhTzfDWsvwAW53OBWF5zuvaOGlZ6PwYxAbPVDhpm+gM09xKQGjBq/8uYN12aDvMxnAnq3dxTyoSoRNmg5YFg==", + "dev": true, "requires": { "path-is-inside": "^1.0.2" } @@ -4518,6 +5685,7 @@ "version": "2.0.4", "resolved": "https://registry.npmjs.org/is-plain-object/-/is-plain-object-2.0.4.tgz", "integrity": "sha512-h5PpgXkWitc38BBMYawTYMWJHFZJVnBquFE57xFpjB8pJFiF6gZ+bU+WyI/yqXiFR5mdLsgYNaPe8uao6Uv9Og==", + "dev": true, "requires": { "isobject": "^3.0.1" } @@ -4526,6 +5694,7 @@ "version": "1.0.4", "resolved": "https://registry.npmjs.org/is-regex/-/is-regex-1.0.4.tgz", "integrity": "sha1-VRdIm1RwkbCTDglWVM7SXul+lJE=", + "dev": true, "requires": { "has": "^1.0.1" } @@ -4533,17 +5702,20 @@ "is-resolvable": { "version": "1.1.0", "resolved": "https://registry.npmjs.org/is-resolvable/-/is-resolvable-1.1.0.tgz", - "integrity": "sha512-qgDYXFSR5WvEfuS5dMj6oTMEbrrSaM0CrFk2Yiq/gXnBvD9pMa2jGXxyhGLfvhZpuMZe18CJpFxAt3CRs42NMg==" + "integrity": "sha512-qgDYXFSR5WvEfuS5dMj6oTMEbrrSaM0CrFk2Yiq/gXnBvD9pMa2jGXxyhGLfvhZpuMZe18CJpFxAt3CRs42NMg==", + "dev": true }, "is-stream": { "version": "1.1.0", "resolved": "https://registry.npmjs.org/is-stream/-/is-stream-1.1.0.tgz", - "integrity": "sha1-EtSj3U5o4Lec6428hBc66A2RykQ=" + "integrity": "sha1-EtSj3U5o4Lec6428hBc66A2RykQ=", + "dev": true }, "is-svg": { "version": "3.0.0", "resolved": "https://registry.npmjs.org/is-svg/-/is-svg-3.0.0.tgz", "integrity": "sha512-gi4iHK53LR2ujhLVVj+37Ykh9GLqYHX6JOVXbLAucaG/Cqw9xwdFOjDM2qeifLs1sF1npXXFvDu0r5HNgCMrzQ==", + "dev": true, "requires": { "html-comment-regex": "^1.1.0" } @@ -4552,49 +5724,84 @@ "version": "1.0.2", "resolved": "https://registry.npmjs.org/is-symbol/-/is-symbol-1.0.2.tgz", "integrity": "sha512-HS8bZ9ox60yCJLH9snBpIwv9pYUAkcuLhSA1oero1UB5y9aiQpRA8y2ex945AOtCZL1lJDeIk3G5LthswI46Lw==", + "dev": true, "requires": { "has-symbols": "^1.0.0" } }, + "is-typedarray": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/is-typedarray/-/is-typedarray-1.0.0.tgz", + "integrity": "sha1-5HnICFjfDBsR3dppQPlgEfzaSpo=", + "dev": true, + "optional": true + }, "is-windows": { "version": "1.0.2", "resolved": "https://registry.npmjs.org/is-windows/-/is-windows-1.0.2.tgz", - "integrity": "sha512-eXK1UInq2bPmjyX6e3VHIzMLobc4J94i4AWn+Hpq3OU5KkrRC96OAcR3PRJ/pGu6m8TRnBHP9dkXQVsT/COVIA==" + "integrity": "sha512-eXK1UInq2bPmjyX6e3VHIzMLobc4J94i4AWn+Hpq3OU5KkrRC96OAcR3PRJ/pGu6m8TRnBHP9dkXQVsT/COVIA==", + "dev": true }, "is-wsl": { "version": "1.1.0", "resolved": "https://registry.npmjs.org/is-wsl/-/is-wsl-1.1.0.tgz", - "integrity": "sha1-HxbkqiKwTRM2tmGIpmrzxgDDpm0=" + "integrity": "sha1-HxbkqiKwTRM2tmGIpmrzxgDDpm0=", + "dev": true }, "isarray": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/isarray/-/isarray-1.0.0.tgz", - "integrity": "sha1-u5NdSFgsuhaMBoNJV6VKPgcSTxE=" + "integrity": "sha1-u5NdSFgsuhaMBoNJV6VKPgcSTxE=", + "dev": true }, "isexe": { "version": "2.0.0", "resolved": "https://registry.npmjs.org/isexe/-/isexe-2.0.0.tgz", - "integrity": "sha1-6PvzdNxVb/iUehDcsFctYz8s+hA=" + "integrity": "sha1-6PvzdNxVb/iUehDcsFctYz8s+hA=", + "dev": true + }, + "ismobilejs": { + "version": "0.5.2", + "resolved": "https://registry.npmjs.org/ismobilejs/-/ismobilejs-0.5.2.tgz", + "integrity": "sha512-ta9UdV60xVZk/ZafFtSFslQaE76SvNkcs1r73d2PVR21zVzx9xuYv9tNe4MxA1NN7WoeCc2RjGot3Bz1eHDx3Q==", + "dev": true }, "isobject": { "version": "3.0.1", "resolved": "https://registry.npmjs.org/isobject/-/isobject-3.0.1.tgz", - "integrity": "sha1-TkMekrEalzFjaqH5yNHMvP2reN8=" + "integrity": "sha1-TkMekrEalzFjaqH5yNHMvP2reN8=", + "dev": true + }, + "isstream": { + "version": "0.1.2", + "resolved": "https://registry.npmjs.org/isstream/-/isstream-0.1.2.tgz", + "integrity": "sha1-R+Y/evVa+m+S4VAOaQ64uFKcCZo=", + "dev": true, + "optional": true + }, + "iterall": { + "version": "1.2.2", + "resolved": "https://registry.npmjs.org/iterall/-/iterall-1.2.2.tgz", + "integrity": "sha512-yynBb1g+RFUPY64fTrFv7nsjRrENBQJaX2UL+2Szc9REFrSNm1rpSXHGzhmAy7a9uv3vlvgBlXnf9RqmPH1/DA==", + "dev": true }, "js-levenshtein": { "version": "1.1.6", "resolved": "https://registry.npmjs.org/js-levenshtein/-/js-levenshtein-1.1.6.tgz", - "integrity": "sha512-X2BB11YZtrRqY4EnQcLX5Rh373zbK4alC1FW7D7MBhL2gtcC17cTnr6DmfHZeS0s2rTHjUTMMHfG7gO8SSdw+g==" + "integrity": "sha512-X2BB11YZtrRqY4EnQcLX5Rh373zbK4alC1FW7D7MBhL2gtcC17cTnr6DmfHZeS0s2rTHjUTMMHfG7gO8SSdw+g==", + "dev": true }, "js-tokens": { "version": "4.0.0", "resolved": "https://registry.npmjs.org/js-tokens/-/js-tokens-4.0.0.tgz", - "integrity": "sha512-RdJUflcE3cUzKiMqQgsCu06FPu9UdIJO0beYbPhHN4k6apgJtifcoCtT9bcxOpYBtpD2kCM6Sbzg4CausW/PKQ==" + "integrity": "sha512-RdJUflcE3cUzKiMqQgsCu06FPu9UdIJO0beYbPhHN4k6apgJtifcoCtT9bcxOpYBtpD2kCM6Sbzg4CausW/PKQ==", + "dev": true }, "js-yaml": { "version": "3.13.1", "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-3.13.1.tgz", "integrity": "sha512-YfbcO7jXDdyj0DGxYVSlSeQNHbD7XPWvrVWeVUujrQEoZzWJIRrCPoyk6kL6IAjAG2IolMK4T0hNUe0HOUs5Jw==", + "dev": true, "requires": { "argparse": "^1.0.7", "esprima": "^4.0.0" @@ -4603,34 +5810,70 @@ "esprima": { "version": "4.0.1", "resolved": "https://registry.npmjs.org/esprima/-/esprima-4.0.1.tgz", - "integrity": "sha512-eGuFFw7Upda+g4p+QHvnW0RyTX/SVeJBDM/gCtMARO0cLuT2HcEKnTPvhjV6aGeqrCB/sbNop0Kszm0jsaWU4A==" + "integrity": "sha512-eGuFFw7Upda+g4p+QHvnW0RyTX/SVeJBDM/gCtMARO0cLuT2HcEKnTPvhjV6aGeqrCB/sbNop0Kszm0jsaWU4A==", + "dev": true } } }, + "jsbn": { + "version": "0.1.1", + "resolved": "https://registry.npmjs.org/jsbn/-/jsbn-0.1.1.tgz", + "integrity": "sha1-peZUwuWi3rXyAdls77yoDA7y9RM=", + "dev": true, + "optional": true + }, "jsesc": { "version": "2.5.2", "resolved": "https://registry.npmjs.org/jsesc/-/jsesc-2.5.2.tgz", - "integrity": "sha512-OYu7XEzjkCQ3C5Ps3QIZsQfNpqoJyZZA99wd9aWd05NCtC5pWOkShK2mkL6HXQR6/Cy2lbNdPlZBpuQHXE63gA==" + "integrity": "sha512-OYu7XEzjkCQ3C5Ps3QIZsQfNpqoJyZZA99wd9aWd05NCtC5pWOkShK2mkL6HXQR6/Cy2lbNdPlZBpuQHXE63gA==", + "dev": true }, "json-parse-better-errors": { "version": "1.0.2", "resolved": "https://registry.npmjs.org/json-parse-better-errors/-/json-parse-better-errors-1.0.2.tgz", - "integrity": "sha512-mrqyZKfX5EhL7hvqcV6WG1yYjnjeuYDzDhhcAAUrq8Po85NBQBJP+ZDUT75qZQ98IkUoBqdkExkukOU7Ts2wrw==" + "integrity": "sha512-mrqyZKfX5EhL7hvqcV6WG1yYjnjeuYDzDhhcAAUrq8Po85NBQBJP+ZDUT75qZQ98IkUoBqdkExkukOU7Ts2wrw==", + "dev": true + }, + "json-schema": { + "version": "0.2.3", + "resolved": "https://registry.npmjs.org/json-schema/-/json-schema-0.2.3.tgz", + "integrity": "sha1-tIDIkuWaLwWVTOcnvT8qTogvnhM=", + "dev": true, + "optional": true }, "json-schema-traverse": { "version": "0.4.1", "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-0.4.1.tgz", - "integrity": "sha512-xbbCH5dCYU5T8LcEhhuh7HJ88HXuW3qsI3Y0zOZFKfZEHcpWiHU/Jxzk629Brsab/mMiHQti9wMP+845RPe3Vg==" + "integrity": "sha512-xbbCH5dCYU5T8LcEhhuh7HJ88HXuW3qsI3Y0zOZFKfZEHcpWiHU/Jxzk629Brsab/mMiHQti9wMP+845RPe3Vg==", + "dev": true + }, + "json-stringify-safe": { + "version": "5.0.1", + "resolved": "https://registry.npmjs.org/json-stringify-safe/-/json-stringify-safe-5.0.1.tgz", + "integrity": "sha1-Epai1Y/UXxmg9s4B1lcB4sc1tus=", + "dev": true, + "optional": true + }, + "json2mq": { + "version": "0.2.0", + "resolved": "https://registry.npmjs.org/json2mq/-/json2mq-0.2.0.tgz", + "integrity": "sha1-tje9O6nqvhIsg+lyBIOusQ0skEo=", + "dev": true, + "requires": { + "string-convert": "^0.2.0" + } }, "json3": { "version": "3.3.3", "resolved": "https://registry.npmjs.org/json3/-/json3-3.3.3.tgz", - "integrity": "sha512-c7/8mbUsKigAbLkD5B010BK4D9LZm7A1pNItkEwiUZRpIN66exu/e7YQWysGun+TRKaJp8MhemM+VkfWv42aCA==" + "integrity": "sha512-c7/8mbUsKigAbLkD5B010BK4D9LZm7A1pNItkEwiUZRpIN66exu/e7YQWysGun+TRKaJp8MhemM+VkfWv42aCA==", + "dev": true }, "json5": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/json5/-/json5-2.1.0.tgz", - "integrity": "sha512-8Mh9h6xViijj36g7Dxi+Y4S6hNGV96vcJZr/SrlHh1LR/pEn/8j/+qIBbs44YKl69Lrfctp4QD+AdWLTMqEZAQ==", + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/json5/-/json5-2.1.1.tgz", + "integrity": "sha512-l+3HXD0GEI3huGq1njuqtzYK8OYJyXMkOLtQ53pjWh89tvWS2h6l+1zMkYWqlb57+SiQodKZyvMEFb2X+KrFhQ==", + "dev": true, "requires": { "minimist": "^1.2.0" } @@ -4639,24 +5882,41 @@ "version": "4.0.0", "resolved": "https://registry.npmjs.org/jsonfile/-/jsonfile-4.0.0.tgz", "integrity": "sha1-h3Gq4HmbZAdrdmQPygWPnBDjPss=", + "dev": true, "requires": { "graceful-fs": "^4.1.6" } }, + "jsprim": { + "version": "1.4.1", + "resolved": "https://registry.npmjs.org/jsprim/-/jsprim-1.4.1.tgz", + "integrity": "sha1-MT5mvB5cwG5Di8G3SZwuXFastqI=", + "dev": true, + "optional": true, + "requires": { + "assert-plus": "1.0.0", + "extsprintf": "1.3.0", + "json-schema": "0.2.3", + "verror": "1.10.0" + } + }, "killable": { "version": "1.0.1", "resolved": "https://registry.npmjs.org/killable/-/killable-1.0.1.tgz", - "integrity": "sha512-LzqtLKlUwirEUyl/nicirVmNiPvYs7l5n8wOPP7fyJVpUPkvCnW/vuiXGpylGUlnPDnB7311rARzAt3Mhswpjg==" + "integrity": "sha512-LzqtLKlUwirEUyl/nicirVmNiPvYs7l5n8wOPP7fyJVpUPkvCnW/vuiXGpylGUlnPDnB7311rARzAt3Mhswpjg==", + "dev": true }, "kind-of": { "version": "6.0.2", "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-6.0.2.tgz", - "integrity": "sha512-s5kLOcnH0XqDO+FvuaLX8DDjZ18CGFk7VygH40QoKPUQhW4e2rvM0rwUq0t8IQDOwYSeLK01U90OjzBTme2QqA==" + "integrity": "sha512-s5kLOcnH0XqDO+FvuaLX8DDjZ18CGFk7VygH40QoKPUQhW4e2rvM0rwUq0t8IQDOwYSeLK01U90OjzBTme2QqA==", + "dev": true }, "laravel-mix": { "version": "4.1.4", "resolved": "https://registry.npmjs.org/laravel-mix/-/laravel-mix-4.1.4.tgz", "integrity": "sha512-fpFNpPyYAdeZ5mozlKbHpw+tCiRFUCCdSsK/D2+yYhlyIEbzPcAe4ar5cjeT33TnDNiKXSS42cB58yUSW5Y5tg==", + "dev": true, "requires": { "@babel/core": "^7.2.0", "@babel/plugin-proposal-object-rest-spread": "^7.2.0", @@ -4702,6 +5962,7 @@ "version": "3.0.0", "resolved": "https://registry.npmjs.org/last-call-webpack-plugin/-/last-call-webpack-plugin-3.0.0.tgz", "integrity": "sha512-7KI2l2GIZa9p2spzPIVZBYyNKkN+e/SQPpnjlTiPhdbDW3F86tdKKELxKpzJ5sgU19wQWsACULZmpTPYHeWO5w==", + "dev": true, "requires": { "lodash": "^4.17.5", "webpack-sources": "^1.1.0" @@ -4711,19 +5972,59 @@ "version": "2.0.0", "resolved": "https://registry.npmjs.org/lcid/-/lcid-2.0.0.tgz", "integrity": "sha512-avPEb8P8EGnwXKClwsNUgryVjllcRqtMYa49NTsbQagYuT1DcXnl1915oxWjoyGrXR6zH/Y0Zc96xWsPcoDKeA==", + "dev": true, "requires": { "invert-kv": "^2.0.0" } }, + "less": { + "version": "3.10.3", + "resolved": "https://registry.npmjs.org/less/-/less-3.10.3.tgz", + "integrity": "sha512-vz32vqfgmoxF1h3K4J+yKCtajH0PWmjkIFgbs5d78E/c/e+UQTnI+lWK+1eQRE95PXM2mC3rJlLSSP9VQHnaow==", + "dev": true, + "requires": { + "clone": "^2.1.2", + "errno": "^0.1.1", + "graceful-fs": "^4.1.2", + "image-size": "~0.5.0", + "mime": "^1.4.1", + "mkdirp": "^0.5.0", + "promise": "^7.1.1", + "request": "^2.83.0", + "source-map": "~0.6.0" + }, + "dependencies": { + "source-map": { + "version": "0.6.1", + "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", + "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==", + "dev": true, + "optional": true + } + } + }, + "less-loader": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/less-loader/-/less-loader-5.0.0.tgz", + "integrity": "sha512-bquCU89mO/yWLaUq0Clk7qCsKhsF/TZpJUzETRvJa9KSVEL9SO3ovCvdEHISBhrC81OwC8QSVX7E0bzElZj9cg==", + "dev": true, + "requires": { + "clone": "^2.1.1", + "loader-utils": "^1.1.0", + "pify": "^4.0.1" + } + }, "loader-runner": { "version": "2.4.0", "resolved": "https://registry.npmjs.org/loader-runner/-/loader-runner-2.4.0.tgz", - "integrity": "sha512-Jsmr89RcXGIwivFY21FcRrisYZfvLMTWx5kOLc+JTxtpBOG6xML0vzbc6SEQG2FO9/4Fc3wW4LVcB5DmGflaRw==" + "integrity": "sha512-Jsmr89RcXGIwivFY21FcRrisYZfvLMTWx5kOLc+JTxtpBOG6xML0vzbc6SEQG2FO9/4Fc3wW4LVcB5DmGflaRw==", + "dev": true }, "loader-utils": { "version": "1.2.3", "resolved": "https://registry.npmjs.org/loader-utils/-/loader-utils-1.2.3.tgz", "integrity": "sha512-fkpz8ejdnEMG3s37wGL07iSBDg99O9D5yflE9RGNH3hRdx9SOwYfnGYdZOUIZitN8E+E2vkq3MUMYMvPYl5ZZA==", + "dev": true, "requires": { "big.js": "^5.2.2", "emojis-list": "^2.0.0", @@ -4734,6 +6035,7 @@ "version": "1.0.1", "resolved": "https://registry.npmjs.org/json5/-/json5-1.0.1.tgz", "integrity": "sha512-aKS4WQjPenRxiQsC93MNfjx+nbF4PAdYzmd/1JIj8HYzqfbu86beTuNgXDzPknWk0n0uARlyewZo4s++ES36Ow==", + "dev": true, "requires": { "minimist": "^1.2.0" } @@ -4744,35 +6046,133 @@ "version": "3.0.0", "resolved": "https://registry.npmjs.org/locate-path/-/locate-path-3.0.0.tgz", "integrity": "sha512-7AO748wWnIhNqAuaty2ZWHkQHRSNfPVIsPIfwEOWO22AmaoVrWavlOcMR5nzTLNYvp36X220/maaRsrec1G65A==", + "dev": true, + "requires": { + "p-locate": "^3.0.0", + "path-exists": "^3.0.0" + } + }, + "lodash": { + "version": "4.17.15", + "resolved": "https://registry.npmjs.org/lodash/-/lodash-4.17.15.tgz", + "integrity": "sha512-8xOcRHvCjnocdS5cpwXQXVzmmh5e5+saE2QGoeQmbKmRS6J3VQppPOIt0MnmE+4xlZoumy0GPG0D0MVIQbNA1A==", + "dev": true + }, + "lodash._baseassign": { + "version": "3.2.0", + "resolved": "https://registry.npmjs.org/lodash._baseassign/-/lodash._baseassign-3.2.0.tgz", + "integrity": "sha1-jDigmVAPIVrQnlnxci/QxSv+Ck4=", + "dev": true, + "requires": { + "lodash._basecopy": "^3.0.0", + "lodash.keys": "^3.0.0" + } + }, + "lodash._basecopy": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/lodash._basecopy/-/lodash._basecopy-3.0.1.tgz", + "integrity": "sha1-jaDmqHbPNEwK2KVIghEd08XHyjY=", + "dev": true + }, + "lodash._bindcallback": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/lodash._bindcallback/-/lodash._bindcallback-3.0.1.tgz", + "integrity": "sha1-5THCdkTPi1epnhftlbNcdIeJOS4=", + "dev": true + }, + "lodash._createassigner": { + "version": "3.1.1", + "resolved": "https://registry.npmjs.org/lodash._createassigner/-/lodash._createassigner-3.1.1.tgz", + "integrity": "sha1-g4pbri/aymOsIt7o4Z+k5taXCxE=", + "dev": true, "requires": { - "p-locate": "^3.0.0", - "path-exists": "^3.0.0" + "lodash._bindcallback": "^3.0.0", + "lodash._isiterateecall": "^3.0.0", + "lodash.restparam": "^3.0.0" } }, - "lodash": { - "version": "4.17.15", - "resolved": "https://registry.npmjs.org/lodash/-/lodash-4.17.15.tgz", - "integrity": "sha512-8xOcRHvCjnocdS5cpwXQXVzmmh5e5+saE2QGoeQmbKmRS6J3VQppPOIt0MnmE+4xlZoumy0GPG0D0MVIQbNA1A==" + "lodash._getnative": { + "version": "3.9.1", + "resolved": "https://registry.npmjs.org/lodash._getnative/-/lodash._getnative-3.9.1.tgz", + "integrity": "sha1-VwvH3t5G1hzc3mh9ZdPuy6o6r/U=", + "dev": true + }, + "lodash._isiterateecall": { + "version": "3.0.9", + "resolved": "https://registry.npmjs.org/lodash._isiterateecall/-/lodash._isiterateecall-3.0.9.tgz", + "integrity": "sha1-UgOte6Ql+uhCRg5pbbnPPmqsBXw=", + "dev": true + }, + "lodash.assign": { + "version": "4.2.0", + "resolved": "https://registry.npmjs.org/lodash.assign/-/lodash.assign-4.2.0.tgz", + "integrity": "sha1-DZnzzNem0mHRm9rrkkUAXShYCOc=", + "dev": true + }, + "lodash.defaults": { + "version": "4.2.0", + "resolved": "https://registry.npmjs.org/lodash.defaults/-/lodash.defaults-4.2.0.tgz", + "integrity": "sha1-0JF4cW/+pN3p5ft7N/bwgCJ0WAw=", + "dev": true + }, + "lodash.isarguments": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/lodash.isarguments/-/lodash.isarguments-3.1.0.tgz", + "integrity": "sha1-L1c9hcaiQon/AGY7SRwdM4/zRYo=", + "dev": true + }, + "lodash.isarray": { + "version": "3.0.4", + "resolved": "https://registry.npmjs.org/lodash.isarray/-/lodash.isarray-3.0.4.tgz", + "integrity": "sha1-eeTriMNqgSKvhvhEqpvNhRtfu1U=", + "dev": true + }, + "lodash.keys": { + "version": "3.1.2", + "resolved": "https://registry.npmjs.org/lodash.keys/-/lodash.keys-3.1.2.tgz", + "integrity": "sha1-TbwEcrFWvlCgsoaFXRvQsMZWCYo=", + "dev": true, + "requires": { + "lodash._getnative": "^3.0.0", + "lodash.isarguments": "^3.0.0", + "lodash.isarray": "^3.0.0" + } }, "lodash.memoize": { "version": "4.1.2", "resolved": "https://registry.npmjs.org/lodash.memoize/-/lodash.memoize-4.1.2.tgz", - "integrity": "sha1-vMbEmkKihA7Zl/Mj6tpezRguC/4=" + "integrity": "sha1-vMbEmkKihA7Zl/Mj6tpezRguC/4=", + "dev": true + }, + "lodash.restparam": { + "version": "3.6.1", + "resolved": "https://registry.npmjs.org/lodash.restparam/-/lodash.restparam-3.6.1.tgz", + "integrity": "sha1-k2pOMJ7zMKdkXtQUWYbIWuWyCAU=", + "dev": true + }, + "lodash.toarray": { + "version": "4.4.0", + "resolved": "https://registry.npmjs.org/lodash.toarray/-/lodash.toarray-4.4.0.tgz", + "integrity": "sha1-JMS/zWsvuji/0FlNsRedjptlZWE=", + "dev": true }, "lodash.uniq": { "version": "4.5.0", "resolved": "https://registry.npmjs.org/lodash.uniq/-/lodash.uniq-4.5.0.tgz", - "integrity": "sha1-0CJTc662Uq3BvILklFM5qEJ1R3M=" + "integrity": "sha1-0CJTc662Uq3BvILklFM5qEJ1R3M=", + "dev": true }, "loglevel": { - "version": "1.6.4", - "resolved": "https://registry.npmjs.org/loglevel/-/loglevel-1.6.4.tgz", - "integrity": "sha512-p0b6mOGKcGa+7nnmKbpzR6qloPbrgLcnio++E+14Vo/XffOGwZtRpUhr8dTH/x2oCMmEoIU0Zwm3ZauhvYD17g==" + "version": "1.6.6", + "resolved": "https://registry.npmjs.org/loglevel/-/loglevel-1.6.6.tgz", + "integrity": "sha512-Sgr5lbboAUBo3eXCSPL4/KoVz3ROKquOjcctxmHIt+vol2DrqTQe3SwkKKuYhEiWB5kYa13YyopJ69deJ1irzQ==", + "dev": true }, "loose-envify": { "version": "1.4.0", "resolved": "https://registry.npmjs.org/loose-envify/-/loose-envify-1.4.0.tgz", "integrity": "sha512-lyuxPGr/Wfhrlem2CL/UcnUc1zcqKAImBDzukY7Y5F/yQiNdko6+fRLevlw1HgMySw7f611UIY408EtxRSoK3Q==", + "dev": true, "requires": { "js-tokens": "^3.0.0 || ^4.0.0" } @@ -4780,12 +6180,14 @@ "lower-case": { "version": "1.1.4", "resolved": "https://registry.npmjs.org/lower-case/-/lower-case-1.1.4.tgz", - "integrity": "sha1-miyr0bno4K6ZOkv31YdcOcQujqw=" + "integrity": "sha1-miyr0bno4K6ZOkv31YdcOcQujqw=", + "dev": true }, "lru-cache": { "version": "5.1.1", "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-5.1.1.tgz", "integrity": "sha512-KpNARQA3Iwv+jTA0utUVVbrh+Jlrr1Fv0e56GGzAFOXN7dk/FviaDW8LHmK52DlcH4WP2n6gI8vN1aesBFgo9w==", + "dev": true, "requires": { "yallist": "^3.0.2" } @@ -4794,6 +6196,7 @@ "version": "2.1.0", "resolved": "https://registry.npmjs.org/make-dir/-/make-dir-2.1.0.tgz", "integrity": "sha512-LS9X+dc8KLxXCb8dni79fLIIUA5VyZoyjSMCwTluaXA0o27cCK0bhXkpgw+sTXVpPy/lSO57ilRixqk0vDmtRA==", + "dev": true, "requires": { "pify": "^4.0.1", "semver": "^5.6.0" @@ -4802,12 +6205,14 @@ "mamacro": { "version": "0.0.3", "resolved": "https://registry.npmjs.org/mamacro/-/mamacro-0.0.3.tgz", - "integrity": "sha512-qMEwh+UujcQ+kbz3T6V+wAmO2U8veoq2w+3wY8MquqwVA3jChfwY+Tk52GZKDfACEPjuZ7r2oJLejwpt8jtwTA==" + "integrity": "sha512-qMEwh+UujcQ+kbz3T6V+wAmO2U8veoq2w+3wY8MquqwVA3jChfwY+Tk52GZKDfACEPjuZ7r2oJLejwpt8jtwTA==", + "dev": true }, "map-age-cleaner": { "version": "0.1.3", "resolved": "https://registry.npmjs.org/map-age-cleaner/-/map-age-cleaner-0.1.3.tgz", "integrity": "sha512-bJzx6nMoP6PDLPBFmg7+xRKeFZvFboMrGlxmNj9ClvX53KrmvM5bXFXEWjbz4cz1AFn+jWJ9z/DJSz7hrs0w3w==", + "dev": true, "requires": { "p-defer": "^1.0.0" } @@ -4815,12 +6220,14 @@ "map-cache": { "version": "0.2.2", "resolved": "https://registry.npmjs.org/map-cache/-/map-cache-0.2.2.tgz", - "integrity": "sha1-wyq9C9ZSXZsFFkW7TyasXcmKDb8=" + "integrity": "sha1-wyq9C9ZSXZsFFkW7TyasXcmKDb8=", + "dev": true }, "map-visit": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/map-visit/-/map-visit-1.0.0.tgz", "integrity": "sha1-7Nyo8TFE5mDxtb1B8S80edmN+48=", + "dev": true, "requires": { "object-visit": "^1.0.0" } @@ -4829,16 +6236,26 @@ "version": "2.2.1", "resolved": "https://registry.npmjs.org/md5/-/md5-2.2.1.tgz", "integrity": "sha1-U6s41f48iJG6RlMp6iP6wFQBJvk=", + "dev": true, "requires": { "charenc": "~0.0.1", "crypt": "~0.0.1", "is-buffer": "~1.1.1" + }, + "dependencies": { + "is-buffer": { + "version": "1.1.6", + "resolved": "https://registry.npmjs.org/is-buffer/-/is-buffer-1.1.6.tgz", + "integrity": "sha512-NcdALwpXkTm5Zvvbk7owOUSvVvBKDgKP5/ewfXEznmQFfs4ZRmanOeKBTjRVjka3QFoN6XJ+9F3USqfHqTaU5w==", + "dev": true + } } }, "md5.js": { "version": "1.3.5", "resolved": "https://registry.npmjs.org/md5.js/-/md5.js-1.3.5.tgz", "integrity": "sha512-xitP+WxNPcTTOgnTJcrhM0xvdPepipPSf3I8EIpGKeFLjt3PlJLIDG3u8EX53ZIubkb+5U2+3rELYpEhHhzdkg==", + "dev": true, "requires": { "hash-base": "^3.0.0", "inherits": "^2.0.1", @@ -4848,17 +6265,20 @@ "mdn-data": { "version": "2.0.4", "resolved": "https://registry.npmjs.org/mdn-data/-/mdn-data-2.0.4.tgz", - "integrity": "sha512-iV3XNKw06j5Q7mi6h+9vbx23Tv7JkjEVgKHW4pimwyDGWm0OIQntJJ+u1C6mg6mK1EaTv42XQ7w76yuzH7M2cA==" + "integrity": "sha512-iV3XNKw06j5Q7mi6h+9vbx23Tv7JkjEVgKHW4pimwyDGWm0OIQntJJ+u1C6mg6mK1EaTv42XQ7w76yuzH7M2cA==", + "dev": true }, "media-typer": { "version": "0.3.0", "resolved": "https://registry.npmjs.org/media-typer/-/media-typer-0.3.0.tgz", - "integrity": "sha1-hxDXrwqmJvj/+hzgAWhUUmMlV0g=" + "integrity": "sha1-hxDXrwqmJvj/+hzgAWhUUmMlV0g=", + "dev": true }, "mem": { "version": "4.3.0", "resolved": "https://registry.npmjs.org/mem/-/mem-4.3.0.tgz", "integrity": "sha512-qX2bG48pTqYRVmDB37rn/6PT7LcR8T7oAX3bf99u1Tt1nzxYfxkgqDwUwolPlXweM0XzBOBFzSx4kfp7KP1s/w==", + "dev": true, "requires": { "map-age-cleaner": "^0.1.1", "mimic-fn": "^2.0.0", @@ -4869,6 +6289,7 @@ "version": "0.4.1", "resolved": "https://registry.npmjs.org/memory-fs/-/memory-fs-0.4.1.tgz", "integrity": "sha1-OpoguEYlI+RHz7x+i7gO1me/xVI=", + "dev": true, "requires": { "errno": "^0.1.3", "readable-stream": "^2.0.1" @@ -4877,12 +6298,14 @@ "merge-descriptors": { "version": "1.0.1", "resolved": "https://registry.npmjs.org/merge-descriptors/-/merge-descriptors-1.0.1.tgz", - "integrity": "sha1-sAqqVW3YtEVoFQ7J0blT8/kMu2E=" + "integrity": "sha1-sAqqVW3YtEVoFQ7J0blT8/kMu2E=", + "dev": true }, "merge-source-map": { "version": "1.1.0", "resolved": "https://registry.npmjs.org/merge-source-map/-/merge-source-map-1.1.0.tgz", "integrity": "sha512-Qkcp7P2ygktpMPh2mCQZaf3jhN6D3Z/qVZHSdWvQ+2Ef5HgRAPBO57A77+ENm0CPx2+1Ce/MYKi3ymqdfuqibw==", + "dev": true, "requires": { "source-map": "^0.6.1" }, @@ -4890,24 +6313,28 @@ "source-map": { "version": "0.6.1", "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", - "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==" + "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==", + "dev": true } } }, "merge2": { "version": "1.3.0", "resolved": "https://registry.npmjs.org/merge2/-/merge2-1.3.0.tgz", - "integrity": "sha512-2j4DAdlBOkiSZIsaXk4mTE3sRS02yBHAtfy127xRV3bQUFqXkjHCHLW6Scv7DwNRbIWNHH8zpnz9zMaKXIdvYw==" + "integrity": "sha512-2j4DAdlBOkiSZIsaXk4mTE3sRS02yBHAtfy127xRV3bQUFqXkjHCHLW6Scv7DwNRbIWNHH8zpnz9zMaKXIdvYw==", + "dev": true }, "methods": { "version": "1.1.2", "resolved": "https://registry.npmjs.org/methods/-/methods-1.1.2.tgz", - "integrity": "sha1-VSmk1nZUE07cxSZmVoNbD4Ua/O4=" + "integrity": "sha1-VSmk1nZUE07cxSZmVoNbD4Ua/O4=", + "dev": true }, "micromatch": { "version": "3.1.10", "resolved": "https://registry.npmjs.org/micromatch/-/micromatch-3.1.10.tgz", "integrity": "sha512-MWikgl9n9M3w+bpsY3He8L+w9eF9338xRl8IAO5viDizwSzziFEyUzo2xrrloB64ADbTf8uA8vRqqttDTOmccg==", + "dev": true, "requires": { "arr-diff": "^4.0.0", "array-unique": "^0.3.2", @@ -4928,6 +6355,7 @@ "version": "4.0.1", "resolved": "https://registry.npmjs.org/miller-rabin/-/miller-rabin-4.0.1.tgz", "integrity": "sha512-115fLhvZVqWwHPbClyntxEVfVDfl9DLLTuJvq3g2O/Oxi8AiNouAHvDSzHS0viUJc+V5vm3eq91Xwqn9dp4jRA==", + "dev": true, "requires": { "bn.js": "^4.0.0", "brorand": "^1.0.1" @@ -4936,40 +6364,47 @@ "mime": { "version": "1.6.0", "resolved": "https://registry.npmjs.org/mime/-/mime-1.6.0.tgz", - "integrity": "sha512-x0Vn8spI+wuJ1O6S7gnbaQg8Pxh4NNHb7KSINmEWKiPE4RKOplvijn+NkmYmmRgP68mc70j2EbeTFRsrswaQeg==" + "integrity": "sha512-x0Vn8spI+wuJ1O6S7gnbaQg8Pxh4NNHb7KSINmEWKiPE4RKOplvijn+NkmYmmRgP68mc70j2EbeTFRsrswaQeg==", + "dev": true }, "mime-db": { - "version": "1.40.0", - "resolved": "https://registry.npmjs.org/mime-db/-/mime-db-1.40.0.tgz", - "integrity": "sha512-jYdeOMPy9vnxEqFRRo6ZvTZ8d9oPb+k18PKoYNYUe2stVEBPPwsln/qWzdbmaIvnhZ9v2P+CuecK+fpUfsV2mA==" + "version": "1.42.0", + "resolved": "https://registry.npmjs.org/mime-db/-/mime-db-1.42.0.tgz", + "integrity": "sha512-UbfJCR4UAVRNgMpfImz05smAXK7+c+ZntjaA26ANtkXLlOe947Aag5zdIcKQULAiF9Cq4WxBi9jUs5zkA84bYQ==", + "dev": true }, "mime-types": { - "version": "2.1.24", - "resolved": "https://registry.npmjs.org/mime-types/-/mime-types-2.1.24.tgz", - "integrity": "sha512-WaFHS3MCl5fapm3oLxU4eYDw77IQM2ACcxQ9RIxfaC3ooc6PFuBMGZZsYpvoXS5D5QTWPieo1jjLdAm3TBP3cQ==", + "version": "2.1.25", + "resolved": "https://registry.npmjs.org/mime-types/-/mime-types-2.1.25.tgz", + "integrity": "sha512-5KhStqB5xpTAeGqKBAMgwaYMnQik7teQN4IAzC7npDv6kzeU6prfkR67bc87J1kWMPGkoaZSq1npmexMgkmEVg==", + "dev": true, "requires": { - "mime-db": "1.40.0" + "mime-db": "1.42.0" } }, "mimic-fn": { "version": "2.1.0", "resolved": "https://registry.npmjs.org/mimic-fn/-/mimic-fn-2.1.0.tgz", - "integrity": "sha512-OqbOk5oEQeAZ8WXWydlu9HJjz9WVdEIvamMCcXmuqUYjTknH/sqsWvhQ3vgwKFRR1HpjvNBKQ37nbJgYzGqGcg==" + "integrity": "sha512-OqbOk5oEQeAZ8WXWydlu9HJjz9WVdEIvamMCcXmuqUYjTknH/sqsWvhQ3vgwKFRR1HpjvNBKQ37nbJgYzGqGcg==", + "dev": true }, "minimalistic-assert": { "version": "1.0.1", "resolved": "https://registry.npmjs.org/minimalistic-assert/-/minimalistic-assert-1.0.1.tgz", - "integrity": "sha512-UtJcAD4yEaGtjPezWuO9wC4nwUnVH/8/Im3yEHQP4b67cXlD/Qr9hdITCU1xDbSEXg2XKNaP8jsReV7vQd00/A==" + "integrity": "sha512-UtJcAD4yEaGtjPezWuO9wC4nwUnVH/8/Im3yEHQP4b67cXlD/Qr9hdITCU1xDbSEXg2XKNaP8jsReV7vQd00/A==", + "dev": true }, "minimalistic-crypto-utils": { "version": "1.0.1", "resolved": "https://registry.npmjs.org/minimalistic-crypto-utils/-/minimalistic-crypto-utils-1.0.1.tgz", - "integrity": "sha1-9sAMHAsIIkblxNmd+4x8CDsrWCo=" + "integrity": "sha1-9sAMHAsIIkblxNmd+4x8CDsrWCo=", + "dev": true }, "minimatch": { "version": "3.0.4", "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.0.4.tgz", "integrity": "sha512-yJHVQEhyqPLUTgt9B83PXu6W3rx4MvvHvSUvToogpwoGDOUQ+yDrR0HRot+yOCdCO7u4hX3pWft6kWBBcqh0UA==", + "dev": true, "requires": { "brace-expansion": "^1.1.7" } @@ -4977,12 +6412,14 @@ "minimist": { "version": "1.2.0", "resolved": "https://registry.npmjs.org/minimist/-/minimist-1.2.0.tgz", - "integrity": "sha1-o1AIsg9BOD7sH7kU9M1d95omQoQ=" + "integrity": "sha1-o1AIsg9BOD7sH7kU9M1d95omQoQ=", + "dev": true }, "mississippi": { "version": "3.0.0", "resolved": "https://registry.npmjs.org/mississippi/-/mississippi-3.0.0.tgz", "integrity": "sha512-x471SsVjUtBRtcvd4BzKE9kFC+/2TeWgKCgw0bZcw1b9l2X3QX5vCWgF+KaZaYm87Ss//rHnWryupDrgLvmSkA==", + "dev": true, "requires": { "concat-stream": "^1.5.0", "duplexify": "^3.4.2", @@ -5000,6 +6437,7 @@ "version": "1.3.2", "resolved": "https://registry.npmjs.org/mixin-deep/-/mixin-deep-1.3.2.tgz", "integrity": "sha512-WRoDn//mXBiJ1H40rqa3vH0toePwSsGb45iInWlTySa+Uu4k3tYUSxa2v1KqAiLtvlrSzaExqS1gtk96A9zvEA==", + "dev": true, "requires": { "for-in": "^1.0.2", "is-extendable": "^1.0.1" @@ -5009,6 +6447,7 @@ "version": "0.5.1", "resolved": "https://registry.npmjs.org/mkdirp/-/mkdirp-0.5.1.tgz", "integrity": "sha1-MAV0OOrGz3+MR2fzhkjWaX11yQM=", + "dev": true, "requires": { "minimist": "0.0.8" }, @@ -5016,14 +6455,22 @@ "minimist": { "version": "0.0.8", "resolved": "https://registry.npmjs.org/minimist/-/minimist-0.0.8.tgz", - "integrity": "sha1-hX/Kv8M5fSYluCKCYuhqp6ARsF0=" + "integrity": "sha1-hX/Kv8M5fSYluCKCYuhqp6ARsF0=", + "dev": true } } }, + "moment": { + "version": "2.24.0", + "resolved": "https://registry.npmjs.org/moment/-/moment-2.24.0.tgz", + "integrity": "sha512-bV7f+6l2QigeBBZSM/6yTNq4P2fNpSWj/0e7jQcy87A8e7o2nAfP/34/2ky5Vw4B9S446EtIhodAzkFCcR4dQg==", + "dev": true + }, "move-concurrently": { "version": "1.0.1", "resolved": "https://registry.npmjs.org/move-concurrently/-/move-concurrently-1.0.1.tgz", "integrity": "sha1-viwAX9oy4LKa8fBdfEszIUxwH5I=", + "dev": true, "requires": { "aproba": "^1.1.1", "copy-concurrently": "^1.0.0", @@ -5034,14 +6481,16 @@ } }, "ms": { - "version": "2.1.2", - "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.2.tgz", - "integrity": "sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w==" + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz", + "integrity": "sha1-VgiurfwAvmwpAd9fmGF4jeDVl8g=", + "dev": true }, "multicast-dns": { "version": "6.2.3", "resolved": "https://registry.npmjs.org/multicast-dns/-/multicast-dns-6.2.3.tgz", "integrity": "sha512-ji6J5enbMyGRHIAkAOu3WdV8nggqviKCEKtXcOqfphZZtQrmHKycfynJ2V7eVPUA4NhJ6V7Wf4TmGbTwKE9B6g==", + "dev": true, "requires": { "dns-packet": "^1.3.1", "thunky": "^1.0.2" @@ -5050,18 +6499,27 @@ "multicast-dns-service-types": { "version": "1.1.0", "resolved": "https://registry.npmjs.org/multicast-dns-service-types/-/multicast-dns-service-types-1.1.0.tgz", - "integrity": "sha1-iZ8R2WhuXgXLkbNdXw5jt3PPyQE=" + "integrity": "sha1-iZ8R2WhuXgXLkbNdXw5jt3PPyQE=", + "dev": true + }, + "mutationobserver-shim": { + "version": "0.3.3", + "resolved": "https://registry.npmjs.org/mutationobserver-shim/-/mutationobserver-shim-0.3.3.tgz", + "integrity": "sha512-gciOLNN8Vsf7YzcqRjKzlAJ6y7e+B86u7i3KXes0xfxx/nfLmozlW1Vn+Sc9x3tPIePFgc1AeIFhtRgkqTjzDQ==", + "dev": true }, "nan": { "version": "2.14.0", "resolved": "https://registry.npmjs.org/nan/-/nan-2.14.0.tgz", "integrity": "sha512-INOFj37C7k3AfaNTtX8RhsTw7qRy7eLET14cROi9+5HAVbbHuIWUHEauBv5qT4Av2tWasiTY1Jw6puUNqRJXQg==", + "dev": true, "optional": true }, "nanomatch": { "version": "1.2.13", "resolved": "https://registry.npmjs.org/nanomatch/-/nanomatch-1.2.13.tgz", "integrity": "sha512-fpoe2T0RbHwBTBUOftAfBPaDEi06ufaUai0mE6Yn1kacc3SnTErfb/h+X94VXzI64rKFHYImXSvdwGGCmwOqCA==", + "dev": true, "requires": { "arr-diff": "^4.0.0", "array-unique": "^0.3.2", @@ -5079,35 +6537,50 @@ "negotiator": { "version": "0.6.2", "resolved": "https://registry.npmjs.org/negotiator/-/negotiator-0.6.2.tgz", - "integrity": "sha512-hZXc7K2e+PgeI1eDBe/10Ard4ekbfrrqG8Ep+8Jmf4JID2bNg7NvCPOZN+kfF574pFQI7mum2AUqDidoKqcTOw==" + "integrity": "sha512-hZXc7K2e+PgeI1eDBe/10Ard4ekbfrrqG8Ep+8Jmf4JID2bNg7NvCPOZN+kfF574pFQI7mum2AUqDidoKqcTOw==", + "dev": true }, "neo-async": { "version": "2.6.1", "resolved": "https://registry.npmjs.org/neo-async/-/neo-async-2.6.1.tgz", - "integrity": "sha512-iyam8fBuCUpWeKPGpaNMetEocMt364qkCsfL9JuhjXX6dRnguRVOfk2GZaDpPjcOKiiXCPINZC1GczQ7iTq3Zw==" + "integrity": "sha512-iyam8fBuCUpWeKPGpaNMetEocMt364qkCsfL9JuhjXX6dRnguRVOfk2GZaDpPjcOKiiXCPINZC1GczQ7iTq3Zw==", + "dev": true }, "nice-try": { "version": "1.0.5", "resolved": "https://registry.npmjs.org/nice-try/-/nice-try-1.0.5.tgz", - "integrity": "sha512-1nh45deeb5olNY7eX82BkPO7SSxR5SSYJiPTrTdFUVYwAl8CKMA5N9PjTYkHiRjisVcxcQ1HXdLhx2qxxJzLNQ==" + "integrity": "sha512-1nh45deeb5olNY7eX82BkPO7SSxR5SSYJiPTrTdFUVYwAl8CKMA5N9PjTYkHiRjisVcxcQ1HXdLhx2qxxJzLNQ==", + "dev": true }, "no-case": { "version": "2.3.2", "resolved": "https://registry.npmjs.org/no-case/-/no-case-2.3.2.tgz", "integrity": "sha512-rmTZ9kz+f3rCvK2TD1Ue/oZlns7OGoIWP4fc3llxxRXlOkHKoWPPWJOfFYpITabSow43QJbRIoHQXtt10VldyQ==", + "dev": true, "requires": { "lower-case": "^1.1.1" } }, + "node-emoji": { + "version": "1.10.0", + "resolved": "https://registry.npmjs.org/node-emoji/-/node-emoji-1.10.0.tgz", + "integrity": "sha512-Yt3384If5H6BYGVHiHwTL+99OzJKHhgp82S8/dktEK73T26BazdgZ4JZh92xSVtGNJvz9UbXdNAc5hcrXV42vw==", + "dev": true, + "requires": { + "lodash.toarray": "^4.4.0" + } + }, "node-forge": { - "version": "0.8.2", - "resolved": "https://registry.npmjs.org/node-forge/-/node-forge-0.8.2.tgz", - "integrity": "sha512-mXQ9GBq1N3uDCyV1pdSzgIguwgtVpM7f5/5J4ipz12PKWElmPpVWLDuWl8iXmhysr21+WmX/OJ5UKx82wjomgg==" + "version": "0.9.0", + "resolved": "https://registry.npmjs.org/node-forge/-/node-forge-0.9.0.tgz", + "integrity": "sha512-7ASaDa3pD+lJ3WvXFsxekJQelBKRpne+GOVbLbtHYdd7pFspyeuJHnWfLplGf3SwKGbfs/aYl5V/JCIaHVUKKQ==", + "dev": true }, "node-libs-browser": { "version": "2.2.1", "resolved": "https://registry.npmjs.org/node-libs-browser/-/node-libs-browser-2.2.1.tgz", "integrity": "sha512-h/zcD8H9kaDZ9ALUWwlBUDo6TKF8a7qBSCSEGfjTVIYeqsioSKaAX+BN7NgiMGp6iSIXZ3PxgCu8KS3b71YK5Q==", + "dev": true, "requires": { "assert": "^1.1.1", "browserify-zlib": "^0.2.0", @@ -5137,7 +6610,8 @@ "punycode": { "version": "1.4.1", "resolved": "https://registry.npmjs.org/punycode/-/punycode-1.4.1.tgz", - "integrity": "sha1-wNWmOycYgArY4esPpSachN1BhF4=" + "integrity": "sha1-wNWmOycYgArY4esPpSachN1BhF4=", + "dev": true } } }, @@ -5145,6 +6619,7 @@ "version": "5.4.3", "resolved": "https://registry.npmjs.org/node-notifier/-/node-notifier-5.4.3.tgz", "integrity": "sha512-M4UBGcs4jeOK9CjTsYwkvH6/MzuUmGCyTW+kCY7uO+1ZVr0+FHGdPdIf5CCLqAaxnRrWidyoQlNkMIIVwbKB8Q==", + "dev": true, "requires": { "growly": "^1.3.0", "is-wsl": "^1.1.0", @@ -5154,32 +6629,45 @@ } }, "node-releases": { - "version": "1.1.32", - "resolved": "https://registry.npmjs.org/node-releases/-/node-releases-1.1.32.tgz", - "integrity": "sha512-VhVknkitq8dqtWoluagsGPn3dxTvN9fwgR59fV3D7sLBHe0JfDramsMI8n8mY//ccq/Kkrf8ZRHRpsyVZ3qw1A==", + "version": "1.1.40", + "resolved": "https://registry.npmjs.org/node-releases/-/node-releases-1.1.40.tgz", + "integrity": "sha512-r4LPcC5b/bS8BdtWH1fbeK88ib/wg9aqmg6/s3ngNLn2Ewkn/8J6Iw3P9RTlfIAdSdvYvQl2thCY5Y+qTAQ2iQ==", + "dev": true, "requires": { - "semver": "^5.3.0" + "semver": "^6.3.0" + }, + "dependencies": { + "semver": { + "version": "6.3.0", + "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.0.tgz", + "integrity": "sha512-b39TBaTSfV6yBrapU89p5fKekE2m/NwnDocOVruQFS1/veMgdzuPcnOM34M6CwxW8jH/lxEa5rBoDeUwu5HHTw==", + "dev": true + } } }, "normalize-path": { "version": "3.0.0", "resolved": "https://registry.npmjs.org/normalize-path/-/normalize-path-3.0.0.tgz", - "integrity": "sha512-6eZs5Ls3WtCisHWp9S2GUy8dqkpGi4BVSz3GaqiE6ezub0512ESztXUwUB6C6IKbQkY2Pnb/mD4WYojCRwcwLA==" + "integrity": "sha512-6eZs5Ls3WtCisHWp9S2GUy8dqkpGi4BVSz3GaqiE6ezub0512ESztXUwUB6C6IKbQkY2Pnb/mD4WYojCRwcwLA==", + "dev": true }, "normalize-range": { "version": "0.1.2", "resolved": "https://registry.npmjs.org/normalize-range/-/normalize-range-0.1.2.tgz", - "integrity": "sha1-LRDAa9/TEuqXd2laTShDlFa3WUI=" + "integrity": "sha1-LRDAa9/TEuqXd2laTShDlFa3WUI=", + "dev": true }, "normalize-url": { "version": "3.3.0", "resolved": "https://registry.npmjs.org/normalize-url/-/normalize-url-3.3.0.tgz", - "integrity": "sha512-U+JJi7duF1o+u2pynbp2zXDW2/PADgC30f0GsHZtRh+HOcXHnw137TrNlyxxRvWW5fjKd3bcLHPxofWuCjaeZg==" + "integrity": "sha512-U+JJi7duF1o+u2pynbp2zXDW2/PADgC30f0GsHZtRh+HOcXHnw137TrNlyxxRvWW5fjKd3bcLHPxofWuCjaeZg==", + "dev": true }, "npm-run-path": { "version": "2.0.2", "resolved": "https://registry.npmjs.org/npm-run-path/-/npm-run-path-2.0.2.tgz", "integrity": "sha1-NakjLfo11wZ7TLLd8jV7GHFTbF8=", + "dev": true, "requires": { "path-key": "^2.0.0" } @@ -5188,6 +6676,7 @@ "version": "1.0.2", "resolved": "https://registry.npmjs.org/nth-check/-/nth-check-1.0.2.tgz", "integrity": "sha512-WeBOdju8SnzPN5vTUJYxYUxLeXpCaVP5i5e0LF8fg7WORF2Wd7wFX/pk0tYZk7s8T+J7VLy0Da6J1+wCT0AtHg==", + "dev": true, "requires": { "boolbase": "~1.0.0" } @@ -5195,22 +6684,33 @@ "num2fraction": { "version": "1.2.2", "resolved": "https://registry.npmjs.org/num2fraction/-/num2fraction-1.2.2.tgz", - "integrity": "sha1-b2gragJ6Tp3fpFZM0lidHU5mnt4=" + "integrity": "sha1-b2gragJ6Tp3fpFZM0lidHU5mnt4=", + "dev": true }, "number-is-nan": { "version": "1.0.1", "resolved": "https://registry.npmjs.org/number-is-nan/-/number-is-nan-1.0.1.tgz", - "integrity": "sha1-CXtgK1NCKlIsGvuHkDGDNpQaAR0=" + "integrity": "sha1-CXtgK1NCKlIsGvuHkDGDNpQaAR0=", + "dev": true + }, + "oauth-sign": { + "version": "0.9.0", + "resolved": "https://registry.npmjs.org/oauth-sign/-/oauth-sign-0.9.0.tgz", + "integrity": "sha512-fexhUFFPTGV8ybAtSIGbV6gOkSv8UtRbDBnAyLQw4QPKkgNlsH2ByPGtMUqdWkos6YCRmAqViwgZrJc/mRDzZQ==", + "dev": true, + "optional": true }, "object-assign": { "version": "4.1.1", "resolved": "https://registry.npmjs.org/object-assign/-/object-assign-4.1.1.tgz", - "integrity": "sha1-IQmtx5ZYh8/AXLvUQsrIv7s2CGM=" + "integrity": "sha1-IQmtx5ZYh8/AXLvUQsrIv7s2CGM=", + "dev": true }, "object-copy": { "version": "0.1.0", "resolved": "https://registry.npmjs.org/object-copy/-/object-copy-0.1.0.tgz", "integrity": "sha1-fn2Fi3gb18mRpBupde04EnVOmYw=", + "dev": true, "requires": { "copy-descriptor": "^0.1.0", "define-property": "^0.2.5", @@ -5221,14 +6721,22 @@ "version": "0.2.5", "resolved": "https://registry.npmjs.org/define-property/-/define-property-0.2.5.tgz", "integrity": "sha1-w1se+RjsPJkPmlvFe+BKrOxcgRY=", + "dev": true, "requires": { "is-descriptor": "^0.1.0" } }, + "is-buffer": { + "version": "1.1.6", + "resolved": "https://registry.npmjs.org/is-buffer/-/is-buffer-1.1.6.tgz", + "integrity": "sha512-NcdALwpXkTm5Zvvbk7owOUSvVvBKDgKP5/ewfXEznmQFfs4ZRmanOeKBTjRVjka3QFoN6XJ+9F3USqfHqTaU5w==", + "dev": true + }, "kind-of": { "version": "3.2.2", "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-3.2.2.tgz", "integrity": "sha1-MeohpzS6ubuw8yRm2JOupR5KPGQ=", + "dev": true, "requires": { "is-buffer": "^1.1.5" } @@ -5236,24 +6744,34 @@ } }, "object-inspect": { - "version": "1.6.0", - "resolved": "https://registry.npmjs.org/object-inspect/-/object-inspect-1.6.0.tgz", - "integrity": "sha512-GJzfBZ6DgDAmnuaM3104jR4s1Myxr3Y3zfIyN4z3UdqN69oSRacNK8UhnobDdC+7J2AHCjGwxQubNJfE70SXXQ==" + "version": "1.7.0", + "resolved": "https://registry.npmjs.org/object-inspect/-/object-inspect-1.7.0.tgz", + "integrity": "sha512-a7pEHdh1xKIAgTySUGgLMx/xwDZskN1Ud6egYYN3EdRW4ZMPNEDUTF+hwy2LUC+Bl+SyLXANnwz/jyh/qutKUw==", + "dev": true }, "object-is": { "version": "1.0.1", "resolved": "https://registry.npmjs.org/object-is/-/object-is-1.0.1.tgz", - "integrity": "sha1-CqYOyZiaCz7Xlc9NBvYs8a1lObY=" + "integrity": "sha1-CqYOyZiaCz7Xlc9NBvYs8a1lObY=", + "dev": true }, "object-keys": { "version": "1.1.1", "resolved": "https://registry.npmjs.org/object-keys/-/object-keys-1.1.1.tgz", - "integrity": "sha512-NuAESUOUMrlIXOfHKzD6bpPu3tYt3xvjNdRIQ+FeT0lNb4K8WR70CaDxhuNguS2XG+GjkyMwOzsN5ZktImfhLA==" + "integrity": "sha512-NuAESUOUMrlIXOfHKzD6bpPu3tYt3xvjNdRIQ+FeT0lNb4K8WR70CaDxhuNguS2XG+GjkyMwOzsN5ZktImfhLA==", + "dev": true + }, + "object-path": { + "version": "0.9.2", + "resolved": "https://registry.npmjs.org/object-path/-/object-path-0.9.2.tgz", + "integrity": "sha1-D9mnT8X60a45aLWGvaXGMr1sBaU=", + "dev": true }, "object-visit": { "version": "1.0.1", "resolved": "https://registry.npmjs.org/object-visit/-/object-visit-1.0.1.tgz", "integrity": "sha1-95xEk68MU3e1n+OdOV5BBC3QRbs=", + "dev": true, "requires": { "isobject": "^3.0.0" } @@ -5262,6 +6780,7 @@ "version": "4.1.0", "resolved": "https://registry.npmjs.org/object.assign/-/object.assign-4.1.0.tgz", "integrity": "sha512-exHJeq6kBKj58mqGyTQ9DFvrZC/eR6OwxzoM9YRoGBqrXYonaFyGiFMuc9VZrXf7DarreEwMpurG3dd+CNyW5w==", + "dev": true, "requires": { "define-properties": "^1.1.2", "function-bind": "^1.1.1", @@ -5273,6 +6792,7 @@ "version": "2.0.3", "resolved": "https://registry.npmjs.org/object.getownpropertydescriptors/-/object.getownpropertydescriptors-2.0.3.tgz", "integrity": "sha1-h1jIRvW0B62rDyNuCYbxSwUcqhY=", + "dev": true, "requires": { "define-properties": "^1.1.2", "es-abstract": "^1.5.1" @@ -5282,6 +6802,7 @@ "version": "3.0.0", "resolved": "https://registry.npmjs.org/object.omit/-/object.omit-3.0.0.tgz", "integrity": "sha512-EO+BCv6LJfu+gBIF3ggLicFebFLN5zqzz/WWJlMFfkMyGth+oBkhxzDl0wx2W4GkLzuQs/FsSkXZb2IMWQqmBQ==", + "dev": true, "requires": { "is-extendable": "^1.0.0" } @@ -5290,6 +6811,7 @@ "version": "1.3.0", "resolved": "https://registry.npmjs.org/object.pick/-/object.pick-1.3.0.tgz", "integrity": "sha1-h6EKxMFpS9Lhy/U1kaZhQftd10c=", + "dev": true, "requires": { "isobject": "^3.0.1" } @@ -5298,6 +6820,7 @@ "version": "1.1.0", "resolved": "https://registry.npmjs.org/object.values/-/object.values-1.1.0.tgz", "integrity": "sha512-8mf0nKLAoFX6VlNVdhGj31SVYpaNFtUnuoOXWyFEstsWRgU837AK+JYM0iAxwkSzGRbwn8cbFmgbyxj1j4VbXg==", + "dev": true, "requires": { "define-properties": "^1.1.3", "es-abstract": "^1.12.0", @@ -5308,12 +6831,23 @@ "obuf": { "version": "1.1.2", "resolved": "https://registry.npmjs.org/obuf/-/obuf-1.1.2.tgz", - "integrity": "sha512-PX1wu0AmAdPqOL1mWhqmlOd8kOIZQwGZw6rh7uby9fTc5lhaOWFLX3I6R1hrF9k3zUY40e6igsLGkDXK92LJNg==" + "integrity": "sha512-PX1wu0AmAdPqOL1mWhqmlOd8kOIZQwGZw6rh7uby9fTc5lhaOWFLX3I6R1hrF9k3zUY40e6igsLGkDXK92LJNg==", + "dev": true + }, + "omit.js": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/omit.js/-/omit.js-1.0.2.tgz", + "integrity": "sha512-/QPc6G2NS+8d4L/cQhbk6Yit1WTB6Us2g84A7A/1+w9d/eRGHyEqC5kkQtHVoHZ5NFWGG7tUGgrhVZwgZanKrQ==", + "dev": true, + "requires": { + "babel-runtime": "^6.23.0" + } }, "on-finished": { "version": "2.3.0", "resolved": "https://registry.npmjs.org/on-finished/-/on-finished-2.3.0.tgz", "integrity": "sha1-IPEzZIGwg811M3mSoWlxqi2QaUc=", + "dev": true, "requires": { "ee-first": "1.1.1" } @@ -5321,12 +6855,14 @@ "on-headers": { "version": "1.0.2", "resolved": "https://registry.npmjs.org/on-headers/-/on-headers-1.0.2.tgz", - "integrity": "sha512-pZAE+FJLoyITytdqK0U5s+FIpjN0JP3OzFi/u8Rx+EV5/W+JTWGXG8xFzevE7AjBfDqHv/8vL8qQsIhHnqRkrA==" + "integrity": "sha512-pZAE+FJLoyITytdqK0U5s+FIpjN0JP3OzFi/u8Rx+EV5/W+JTWGXG8xFzevE7AjBfDqHv/8vL8qQsIhHnqRkrA==", + "dev": true }, "once": { "version": "1.4.0", "resolved": "https://registry.npmjs.org/once/-/once-1.4.0.tgz", "integrity": "sha1-WDsap3WWHUsROsF9nFC6753Xa9E=", + "dev": true, "requires": { "wrappy": "1" } @@ -5335,14 +6871,25 @@ "version": "5.5.0", "resolved": "https://registry.npmjs.org/opn/-/opn-5.5.0.tgz", "integrity": "sha512-PqHpggC9bLV0VeWcdKhkpxY+3JTzetLSqTCWL/z/tFIbI6G8JCjondXklT1JinczLz2Xib62sSp0T/gKT4KksA==", + "dev": true, "requires": { "is-wsl": "^1.1.0" } }, + "optimism": { + "version": "0.10.3", + "resolved": "https://registry.npmjs.org/optimism/-/optimism-0.10.3.tgz", + "integrity": "sha512-9A5pqGoQk49H6Vhjb9kPgAeeECfUDF6aIICbMDL23kDLStBn1MWk3YvcZ4xWF9CsSf6XEgvRLkXy4xof/56vVw==", + "dev": true, + "requires": { + "@wry/context": "^0.4.0" + } + }, "optimize-css-assets-webpack-plugin": { "version": "5.0.3", "resolved": "https://registry.npmjs.org/optimize-css-assets-webpack-plugin/-/optimize-css-assets-webpack-plugin-5.0.3.tgz", "integrity": "sha512-q9fbvCRS6EYtUKKSwI87qm2IxlyJK5b4dygW1rKUBT6mMDhdG5e5bZT63v6tnJR9F9FB/H5a0HTmtw+laUBxKA==", + "dev": true, "requires": { "cssnano": "^4.1.10", "last-call-webpack-plugin": "^3.0.0" @@ -5352,6 +6899,7 @@ "version": "1.0.2", "resolved": "https://registry.npmjs.org/original/-/original-1.0.2.tgz", "integrity": "sha512-hyBVl6iqqUOJ8FqRe+l/gS8H+kKYjrEndd5Pm1MfBtsEKA038HkkdbAl/72EAXGyonD/PFsvmVG+EvcIpliMBg==", + "dev": true, "requires": { "url-parse": "^1.4.3" } @@ -5359,12 +6907,14 @@ "os-browserify": { "version": "0.3.0", "resolved": "https://registry.npmjs.org/os-browserify/-/os-browserify-0.3.0.tgz", - "integrity": "sha1-hUNzx/XCMVkU/Jv8a9gjj92h7Cc=" + "integrity": "sha1-hUNzx/XCMVkU/Jv8a9gjj92h7Cc=", + "dev": true }, "os-locale": { "version": "3.1.0", "resolved": "https://registry.npmjs.org/os-locale/-/os-locale-3.1.0.tgz", "integrity": "sha512-Z8l3R4wYWM40/52Z+S265okfFj8Kt2cC2MKY+xNi3kFs+XGI7WXu/I309QQQYbRW4ijiZ+yxs9pqEhJh0DqW3Q==", + "dev": true, "requires": { "execa": "^1.0.0", "lcid": "^2.0.0", @@ -5374,22 +6924,26 @@ "p-defer": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/p-defer/-/p-defer-1.0.0.tgz", - "integrity": "sha1-n26xgvbJqozXQwBKfU+WsZaw+ww=" + "integrity": "sha1-n26xgvbJqozXQwBKfU+WsZaw+ww=", + "dev": true }, "p-finally": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/p-finally/-/p-finally-1.0.0.tgz", - "integrity": "sha1-P7z7FbiZpEEjs0ttzBi3JDNqLK4=" + "integrity": "sha1-P7z7FbiZpEEjs0ttzBi3JDNqLK4=", + "dev": true }, "p-is-promise": { "version": "2.1.0", "resolved": "https://registry.npmjs.org/p-is-promise/-/p-is-promise-2.1.0.tgz", - "integrity": "sha512-Y3W0wlRPK8ZMRbNq97l4M5otioeA5lm1z7bkNkxCka8HSPjR0xRWmpCmc9utiaLP9Jb1eD8BgeIxTW4AIF45Pg==" + "integrity": "sha512-Y3W0wlRPK8ZMRbNq97l4M5otioeA5lm1z7bkNkxCka8HSPjR0xRWmpCmc9utiaLP9Jb1eD8BgeIxTW4AIF45Pg==", + "dev": true }, "p-limit": { "version": "2.2.1", "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-2.2.1.tgz", "integrity": "sha512-85Tk+90UCVWvbDavCLKPOLC9vvY8OwEX/RtKF+/1OADJMVlFfEHOiMTPVyxg7mk/dKa+ipdHm0OUkTvCpMTuwg==", + "dev": true, "requires": { "p-try": "^2.0.0" } @@ -5398,6 +6952,7 @@ "version": "3.0.0", "resolved": "https://registry.npmjs.org/p-locate/-/p-locate-3.0.0.tgz", "integrity": "sha512-x+12w/To+4GFfgJhBEpiDcLozRJGegY+Ei7/z0tSLkMmxGZNybVMSfWj9aJn8Z5Fc7dBUNJOOVgPv2H7IwulSQ==", + "dev": true, "requires": { "p-limit": "^2.0.0" } @@ -5405,17 +6960,20 @@ "p-map": { "version": "2.1.0", "resolved": "https://registry.npmjs.org/p-map/-/p-map-2.1.0.tgz", - "integrity": "sha512-y3b8Kpd8OAN444hxfBbFfj1FY/RjtTd8tzYwhUqNYXx0fXx2iX4maP4Qr6qhIKbQXI02wTLAda4fYUbDagTUFw==" + "integrity": "sha512-y3b8Kpd8OAN444hxfBbFfj1FY/RjtTd8tzYwhUqNYXx0fXx2iX4maP4Qr6qhIKbQXI02wTLAda4fYUbDagTUFw==", + "dev": true }, "p-pipe": { "version": "1.2.0", "resolved": "https://registry.npmjs.org/p-pipe/-/p-pipe-1.2.0.tgz", - "integrity": "sha1-SxoROZoRUgpneQ7loMHViB1r7+k=" + "integrity": "sha1-SxoROZoRUgpneQ7loMHViB1r7+k=", + "dev": true }, "p-retry": { "version": "3.0.1", "resolved": "https://registry.npmjs.org/p-retry/-/p-retry-3.0.1.tgz", "integrity": "sha512-XE6G4+YTTkT2a0UWb2kjZe8xNwf8bIbnqpc/IS/idOBVhyves0mK5OJgeocjx7q5pvX/6m23xuzVPYT1uGM73w==", + "dev": true, "requires": { "retry": "^0.12.0" } @@ -5423,17 +6981,20 @@ "p-try": { "version": "2.2.0", "resolved": "https://registry.npmjs.org/p-try/-/p-try-2.2.0.tgz", - "integrity": "sha512-R4nPAVTAU0B9D35/Gk3uJf/7XYbQcyohSKdvAxIRSNghFl4e71hVoGnBNQz9cWaXxO2I10KTC+3jMdvvoKw6dQ==" + "integrity": "sha512-R4nPAVTAU0B9D35/Gk3uJf/7XYbQcyohSKdvAxIRSNghFl4e71hVoGnBNQz9cWaXxO2I10KTC+3jMdvvoKw6dQ==", + "dev": true }, "pako": { "version": "1.0.10", "resolved": "https://registry.npmjs.org/pako/-/pako-1.0.10.tgz", - "integrity": "sha512-0DTvPVU3ed8+HNXOu5Bs+o//Mbdj9VNQMUOe9oKCwh8l0GNwpTDMKCWbRjgtD291AWnkAgkqA/LOnQS8AmS1tw==" + "integrity": "sha512-0DTvPVU3ed8+HNXOu5Bs+o//Mbdj9VNQMUOe9oKCwh8l0GNwpTDMKCWbRjgtD291AWnkAgkqA/LOnQS8AmS1tw==", + "dev": true }, "parallel-transform": { "version": "1.2.0", "resolved": "https://registry.npmjs.org/parallel-transform/-/parallel-transform-1.2.0.tgz", "integrity": "sha512-P2vSmIu38uIlvdcU7fDkyrxj33gTUy/ABO5ZUbGowxNCopBq/OoD42bP4UmMrJoPyk4Uqf0mu3mtWBhHCZD8yg==", + "dev": true, "requires": { "cyclist": "^1.0.1", "inherits": "^2.0.3", @@ -5444,14 +7005,22 @@ "version": "2.1.1", "resolved": "https://registry.npmjs.org/param-case/-/param-case-2.1.1.tgz", "integrity": "sha1-35T9jPZTHs915r75oIWPvHK+Ikc=", + "dev": true, "requires": { "no-case": "^2.2.0" } }, + "parchment": { + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/parchment/-/parchment-1.1.4.tgz", + "integrity": "sha512-J5FBQt/pM2inLzg4hEWmzQx/8h8D0CiDxaG3vyp9rKrQRSDgBlhjdP5jQGgosEajXPSQouXGHOmVdgo7QmJuOg==", + "dev": true + }, "parse-asn1": { "version": "5.1.5", "resolved": "https://registry.npmjs.org/parse-asn1/-/parse-asn1-5.1.5.tgz", "integrity": "sha512-jkMYn1dcJqF6d5CpU689bq7w/b5ALS9ROVSpQDPrZsqqesUJii9qutvoT5ltGedNXMO2e16YUWIghG9KxaViTQ==", + "dev": true, "requires": { "asn1.js": "^4.0.0", "browserify-aes": "^1.0.0", @@ -5465,6 +7034,7 @@ "version": "4.0.0", "resolved": "https://registry.npmjs.org/parse-json/-/parse-json-4.0.0.tgz", "integrity": "sha1-vjX1Qlvh9/bHRxhPmKeIy5lHfuA=", + "dev": true, "requires": { "error-ex": "^1.3.1", "json-parse-better-errors": "^1.0.1" @@ -5473,62 +7043,74 @@ "parse-passwd": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/parse-passwd/-/parse-passwd-1.0.0.tgz", - "integrity": "sha1-bVuTSkVpk7I9N/QKOC1vFmao5cY=" + "integrity": "sha1-bVuTSkVpk7I9N/QKOC1vFmao5cY=", + "dev": true }, "parseurl": { "version": "1.3.3", "resolved": "https://registry.npmjs.org/parseurl/-/parseurl-1.3.3.tgz", - "integrity": "sha512-CiyeOxFT/JZyN5m0z9PfXw4SCBJ6Sygz1Dpl0wqjlhDEGGBP1GnsUVEL0p63hoG1fcj3fHynXi9NYO4nWOL+qQ==" + "integrity": "sha512-CiyeOxFT/JZyN5m0z9PfXw4SCBJ6Sygz1Dpl0wqjlhDEGGBP1GnsUVEL0p63hoG1fcj3fHynXi9NYO4nWOL+qQ==", + "dev": true }, "pascalcase": { "version": "0.1.1", "resolved": "https://registry.npmjs.org/pascalcase/-/pascalcase-0.1.1.tgz", - "integrity": "sha1-s2PlXoAGym/iF4TS2yK9FdeRfxQ=" + "integrity": "sha1-s2PlXoAGym/iF4TS2yK9FdeRfxQ=", + "dev": true }, "path-browserify": { "version": "0.0.1", "resolved": "https://registry.npmjs.org/path-browserify/-/path-browserify-0.0.1.tgz", - "integrity": "sha512-BapA40NHICOS+USX9SN4tyhq+A2RrN/Ws5F0Z5aMHDp98Fl86lX8Oti8B7uN93L4Ifv4fHOEA+pQw87gmMO/lQ==" + "integrity": "sha512-BapA40NHICOS+USX9SN4tyhq+A2RrN/Ws5F0Z5aMHDp98Fl86lX8Oti8B7uN93L4Ifv4fHOEA+pQw87gmMO/lQ==", + "dev": true }, "path-dirname": { "version": "1.0.2", "resolved": "https://registry.npmjs.org/path-dirname/-/path-dirname-1.0.2.tgz", - "integrity": "sha1-zDPSTVJeCZpTiMAzbG4yuRYGCeA=" + "integrity": "sha1-zDPSTVJeCZpTiMAzbG4yuRYGCeA=", + "dev": true }, "path-exists": { "version": "3.0.0", "resolved": "https://registry.npmjs.org/path-exists/-/path-exists-3.0.0.tgz", - "integrity": "sha1-zg6+ql94yxiSXqfYENe1mwEP1RU=" + "integrity": "sha1-zg6+ql94yxiSXqfYENe1mwEP1RU=", + "dev": true }, "path-is-absolute": { "version": "1.0.1", "resolved": "https://registry.npmjs.org/path-is-absolute/-/path-is-absolute-1.0.1.tgz", - "integrity": "sha1-F0uSaHNVNP+8es5r9TpanhtcX18=" + "integrity": "sha1-F0uSaHNVNP+8es5r9TpanhtcX18=", + "dev": true }, "path-is-inside": { "version": "1.0.2", "resolved": "https://registry.npmjs.org/path-is-inside/-/path-is-inside-1.0.2.tgz", - "integrity": "sha1-NlQX3t5EQw0cEa9hAn+s8HS9/FM=" + "integrity": "sha1-NlQX3t5EQw0cEa9hAn+s8HS9/FM=", + "dev": true }, "path-key": { "version": "2.0.1", "resolved": "https://registry.npmjs.org/path-key/-/path-key-2.0.1.tgz", - "integrity": "sha1-QRyttXTFoUDTpLGRDUDYDMn0C0A=" + "integrity": "sha1-QRyttXTFoUDTpLGRDUDYDMn0C0A=", + "dev": true }, "path-parse": { "version": "1.0.6", "resolved": "https://registry.npmjs.org/path-parse/-/path-parse-1.0.6.tgz", - "integrity": "sha512-GSmOT2EbHrINBf9SR7CDELwlJ8AENk3Qn7OikK4nFYAu3Ote2+JYNVvkpAEQm3/TLNEJFD/xZJjzyxg3KBWOzw==" + "integrity": "sha512-GSmOT2EbHrINBf9SR7CDELwlJ8AENk3Qn7OikK4nFYAu3Ote2+JYNVvkpAEQm3/TLNEJFD/xZJjzyxg3KBWOzw==", + "dev": true }, "path-to-regexp": { "version": "0.1.7", "resolved": "https://registry.npmjs.org/path-to-regexp/-/path-to-regexp-0.1.7.tgz", - "integrity": "sha1-32BBeABfUi8V60SQ5yR6G/qmf4w=" + "integrity": "sha1-32BBeABfUi8V60SQ5yR6G/qmf4w=", + "dev": true }, "path-type": { "version": "3.0.0", "resolved": "https://registry.npmjs.org/path-type/-/path-type-3.0.0.tgz", "integrity": "sha512-T2ZUsdZFHgA3u4e5PfPbjd7HDDpxPnQb5jN0SrDsjNSuVXHJqtwTnWqG0B1jZrgmJ/7lj1EmVIByWt1gxGkWvg==", + "dev": true, "requires": { "pify": "^3.0.0" }, @@ -5536,7 +7118,8 @@ "pify": { "version": "3.0.0", "resolved": "https://registry.npmjs.org/pify/-/pify-3.0.0.tgz", - "integrity": "sha1-5aSs0sEB/fPZpNB/DbxNtJ3SgXY=" + "integrity": "sha1-5aSs0sEB/fPZpNB/DbxNtJ3SgXY=", + "dev": true } } }, @@ -5544,6 +7127,7 @@ "version": "3.0.17", "resolved": "https://registry.npmjs.org/pbkdf2/-/pbkdf2-3.0.17.tgz", "integrity": "sha512-U/il5MsrZp7mGg3mSQfn742na2T+1/vHDCG5/iTI3X9MKUuYUZVLQhyRsg06mCgDBTd57TxzgZt7P+fYfjRLtA==", + "dev": true, "requires": { "create-hash": "^1.1.2", "create-hmac": "^1.1.4", @@ -5552,20 +7136,29 @@ "sha.js": "^2.4.8" } }, + "performance-now": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/performance-now/-/performance-now-2.1.0.tgz", + "integrity": "sha1-Ywn04OX6kT7BxpMHrjZLSzd8nns=", + "dev": true + }, "pify": { "version": "4.0.1", "resolved": "https://registry.npmjs.org/pify/-/pify-4.0.1.tgz", - "integrity": "sha512-uB80kBFb/tfd68bVleG9T5GGsGPjJrLAUpR5PZIrhBnIaRTQRjqdJSsIKkOP6OAIFbj7GOrcudc5pNjZ+geV2g==" + "integrity": "sha512-uB80kBFb/tfd68bVleG9T5GGsGPjJrLAUpR5PZIrhBnIaRTQRjqdJSsIKkOP6OAIFbj7GOrcudc5pNjZ+geV2g==", + "dev": true }, "pinkie": { "version": "2.0.4", "resolved": "https://registry.npmjs.org/pinkie/-/pinkie-2.0.4.tgz", - "integrity": "sha1-clVrgM+g1IqXToDnckjoDtT3+HA=" + "integrity": "sha1-clVrgM+g1IqXToDnckjoDtT3+HA=", + "dev": true }, "pinkie-promise": { "version": "2.0.1", "resolved": "https://registry.npmjs.org/pinkie-promise/-/pinkie-promise-2.0.1.tgz", "integrity": "sha1-ITXW36ejWMBprJsXh3YogihFD/o=", + "dev": true, "requires": { "pinkie": "^2.0.0" } @@ -5574,49 +7167,50 @@ "version": "3.0.0", "resolved": "https://registry.npmjs.org/pkg-dir/-/pkg-dir-3.0.0.tgz", "integrity": "sha512-/E57AYkoeQ25qkxMj5PBOVgF8Kiu/h7cYS30Z5+R7WaiCCBfLq58ZI/dSeaEKb9WVJV5n/03QwrN3IeWIFllvw==", + "dev": true, "requires": { "find-up": "^3.0.0" } }, "portfinder": { - "version": "1.0.24", - "resolved": "https://registry.npmjs.org/portfinder/-/portfinder-1.0.24.tgz", - "integrity": "sha512-ekRl7zD2qxYndYflwiryJwMioBI7LI7rVXg3EnLK3sjkouT5eOuhS3gS255XxBksa30VG8UPZYZCdgfGOfkSUg==", - "requires": { - "async": "^1.5.2", - "debug": "^2.2.0", - "mkdirp": "0.5.x" + "version": "1.0.25", + "resolved": "https://registry.npmjs.org/portfinder/-/portfinder-1.0.25.tgz", + "integrity": "sha512-6ElJnHBbxVA1XSLgBp7G1FiCkQdlqGzuF7DswL5tcea+E8UpuvPU7beVAjjRwCioTS9ZluNbu+ZyRvgTsmqEBg==", + "dev": true, + "requires": { + "async": "^2.6.2", + "debug": "^3.1.1", + "mkdirp": "^0.5.1" }, "dependencies": { - "async": { - "version": "1.5.2", - "resolved": "https://registry.npmjs.org/async/-/async-1.5.2.tgz", - "integrity": "sha1-7GphrlZIDAw8skHJVhjiCJL5Zyo=" - }, "debug": { - "version": "2.6.9", - "resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz", - "integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==", + "version": "3.2.6", + "resolved": "https://registry.npmjs.org/debug/-/debug-3.2.6.tgz", + "integrity": "sha512-mel+jf7nrtEl5Pn1Qx46zARXKDpBbvzezse7p7LqINmdoIk8PYP5SySaxEmYv6TZ0JyEKA1hsCId6DIhgITtWQ==", + "dev": true, "requires": { - "ms": "2.0.0" + "ms": "^2.1.1" } }, "ms": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz", - "integrity": "sha1-VgiurfwAvmwpAd9fmGF4jeDVl8g=" + "version": "2.1.2", + "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.2.tgz", + "integrity": "sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w==", + "dev": true } } }, "posix-character-classes": { "version": "0.1.1", "resolved": "https://registry.npmjs.org/posix-character-classes/-/posix-character-classes-0.1.1.tgz", - "integrity": "sha1-AerA/jta9xoqbAL+q7jB/vfgDqs=" + "integrity": "sha1-AerA/jta9xoqbAL+q7jB/vfgDqs=", + "dev": true }, "postcss": { - "version": "7.0.18", - "resolved": "https://registry.npmjs.org/postcss/-/postcss-7.0.18.tgz", - "integrity": "sha512-/7g1QXXgegpF+9GJj4iN7ChGF40sYuGYJ8WZu8DZWnmhQ/G36hfdk3q9LBJmoK+lZ+yzZ5KYpOoxq7LF1BxE8g==", + "version": "7.0.23", + "resolved": "https://registry.npmjs.org/postcss/-/postcss-7.0.23.tgz", + "integrity": "sha512-hOlMf3ouRIFXD+j2VJecwssTwbvsPGJVMzupptg+85WA+i7MwyrydmQAgY3R+m0Bc0exunhbJmijy8u8+vufuQ==", + "dev": true, "requires": { "chalk": "^2.4.2", "source-map": "^0.6.1", @@ -5626,12 +7220,14 @@ "source-map": { "version": "0.6.1", "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", - "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==" + "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==", + "dev": true }, "supports-color": { "version": "6.1.0", "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-6.1.0.tgz", "integrity": "sha512-qe1jfm1Mg7Nq/NSh6XE24gPXROEVsWHxC1LIx//XNlD9iw7YZQGjZNjYN7xGaEG6iKdA8EtNFW6R0gjnVXp+wQ==", + "dev": true, "requires": { "has-flag": "^3.0.0" } @@ -5642,6 +7238,7 @@ "version": "7.0.1", "resolved": "https://registry.npmjs.org/postcss-calc/-/postcss-calc-7.0.1.tgz", "integrity": "sha512-oXqx0m6tb4N3JGdmeMSc/i91KppbYsFZKdH0xMOqK8V1rJlzrKlTdokz8ozUXLVejydRN6u2IddxpcijRj2FqQ==", + "dev": true, "requires": { "css-unit-converter": "^1.1.1", "postcss": "^7.0.5", @@ -5652,7 +7249,8 @@ "postcss-value-parser": { "version": "3.3.1", "resolved": "https://registry.npmjs.org/postcss-value-parser/-/postcss-value-parser-3.3.1.tgz", - "integrity": "sha512-pISE66AbVkp4fDQ7VHBwRNXzAAKJjw4Vw7nWI/+Q3vuly7SNfgYXvm6i5IgFylHGK5sP/xHAbB7N49OS4gWNyQ==" + "integrity": "sha512-pISE66AbVkp4fDQ7VHBwRNXzAAKJjw4Vw7nWI/+Q3vuly7SNfgYXvm6i5IgFylHGK5sP/xHAbB7N49OS4gWNyQ==", + "dev": true } } }, @@ -5660,6 +7258,7 @@ "version": "4.0.3", "resolved": "https://registry.npmjs.org/postcss-colormin/-/postcss-colormin-4.0.3.tgz", "integrity": "sha512-WyQFAdDZpExQh32j0U0feWisZ0dmOtPl44qYmJKkq9xFWY3p+4qnRzCHeNrkeRhwPHz9bQ3mo0/yVkaply0MNw==", + "dev": true, "requires": { "browserslist": "^4.0.0", "color": "^3.0.0", @@ -5671,7 +7270,8 @@ "postcss-value-parser": { "version": "3.3.1", "resolved": "https://registry.npmjs.org/postcss-value-parser/-/postcss-value-parser-3.3.1.tgz", - "integrity": "sha512-pISE66AbVkp4fDQ7VHBwRNXzAAKJjw4Vw7nWI/+Q3vuly7SNfgYXvm6i5IgFylHGK5sP/xHAbB7N49OS4gWNyQ==" + "integrity": "sha512-pISE66AbVkp4fDQ7VHBwRNXzAAKJjw4Vw7nWI/+Q3vuly7SNfgYXvm6i5IgFylHGK5sP/xHAbB7N49OS4gWNyQ==", + "dev": true } } }, @@ -5679,6 +7279,7 @@ "version": "4.0.1", "resolved": "https://registry.npmjs.org/postcss-convert-values/-/postcss-convert-values-4.0.1.tgz", "integrity": "sha512-Kisdo1y77KUC0Jmn0OXU/COOJbzM8cImvw1ZFsBgBgMgb1iL23Zs/LXRe3r+EZqM3vGYKdQ2YJVQ5VkJI+zEJQ==", + "dev": true, "requires": { "postcss": "^7.0.0", "postcss-value-parser": "^3.0.0" @@ -5687,7 +7288,8 @@ "postcss-value-parser": { "version": "3.3.1", "resolved": "https://registry.npmjs.org/postcss-value-parser/-/postcss-value-parser-3.3.1.tgz", - "integrity": "sha512-pISE66AbVkp4fDQ7VHBwRNXzAAKJjw4Vw7nWI/+Q3vuly7SNfgYXvm6i5IgFylHGK5sP/xHAbB7N49OS4gWNyQ==" + "integrity": "sha512-pISE66AbVkp4fDQ7VHBwRNXzAAKJjw4Vw7nWI/+Q3vuly7SNfgYXvm6i5IgFylHGK5sP/xHAbB7N49OS4gWNyQ==", + "dev": true } } }, @@ -5695,6 +7297,7 @@ "version": "4.0.2", "resolved": "https://registry.npmjs.org/postcss-discard-comments/-/postcss-discard-comments-4.0.2.tgz", "integrity": "sha512-RJutN259iuRf3IW7GZyLM5Sw4GLTOH8FmsXBnv8Ab/Tc2k4SR4qbV4DNbyyY4+Sjo362SyDmW2DQ7lBSChrpkg==", + "dev": true, "requires": { "postcss": "^7.0.0" } @@ -5703,6 +7306,7 @@ "version": "4.0.2", "resolved": "https://registry.npmjs.org/postcss-discard-duplicates/-/postcss-discard-duplicates-4.0.2.tgz", "integrity": "sha512-ZNQfR1gPNAiXZhgENFfEglF93pciw0WxMkJeVmw8eF+JZBbMD7jp6C67GqJAXVZP2BWbOztKfbsdmMp/k8c6oQ==", + "dev": true, "requires": { "postcss": "^7.0.0" } @@ -5711,6 +7315,7 @@ "version": "4.0.1", "resolved": "https://registry.npmjs.org/postcss-discard-empty/-/postcss-discard-empty-4.0.1.tgz", "integrity": "sha512-B9miTzbznhDjTfjvipfHoqbWKwd0Mj+/fL5s1QOz06wufguil+Xheo4XpOnc4NqKYBCNqqEzgPv2aPBIJLox0w==", + "dev": true, "requires": { "postcss": "^7.0.0" } @@ -5719,6 +7324,7 @@ "version": "4.0.1", "resolved": "https://registry.npmjs.org/postcss-discard-overridden/-/postcss-discard-overridden-4.0.1.tgz", "integrity": "sha512-IYY2bEDD7g1XM1IDEsUT4//iEYCxAmP5oDSFMVU/JVvT7gh+l4fmjciLqGgwjdWpQIdb0Che2VX00QObS5+cTg==", + "dev": true, "requires": { "postcss": "^7.0.0" } @@ -5727,6 +7333,7 @@ "version": "2.1.0", "resolved": "https://registry.npmjs.org/postcss-load-config/-/postcss-load-config-2.1.0.tgz", "integrity": "sha512-4pV3JJVPLd5+RueiVVB+gFOAa7GWc25XQcMp86Zexzke69mKf6Nx9LRcQywdz7yZI9n1udOxmLuAwTBypypF8Q==", + "dev": true, "requires": { "cosmiconfig": "^5.0.0", "import-cwd": "^2.0.0" @@ -5736,6 +7343,7 @@ "version": "3.0.0", "resolved": "https://registry.npmjs.org/postcss-loader/-/postcss-loader-3.0.0.tgz", "integrity": "sha512-cLWoDEY5OwHcAjDnkyRQzAXfs2jrKjXpO/HQFcc5b5u/r7aa471wdmChmwfnv7x2u840iat/wi0lQ5nbRgSkUA==", + "dev": true, "requires": { "loader-utils": "^1.1.0", "postcss": "^7.0.0", @@ -5747,6 +7355,7 @@ "version": "1.0.0", "resolved": "https://registry.npmjs.org/schema-utils/-/schema-utils-1.0.0.tgz", "integrity": "sha512-i27Mic4KovM/lnGsy8whRCHhc7VicJajAjTrYg11K9zfZXnYIt4k5F+kZkwjnrhKzLic/HLU4j11mjsz2G/75g==", + "dev": true, "requires": { "ajv": "^6.1.0", "ajv-errors": "^1.0.0", @@ -5759,6 +7368,7 @@ "version": "4.0.11", "resolved": "https://registry.npmjs.org/postcss-merge-longhand/-/postcss-merge-longhand-4.0.11.tgz", "integrity": "sha512-alx/zmoeXvJjp7L4mxEMjh8lxVlDFX1gqWHzaaQewwMZiVhLo42TEClKaeHbRf6J7j82ZOdTJ808RtN0ZOZwvw==", + "dev": true, "requires": { "css-color-names": "0.0.4", "postcss": "^7.0.0", @@ -5769,7 +7379,8 @@ "postcss-value-parser": { "version": "3.3.1", "resolved": "https://registry.npmjs.org/postcss-value-parser/-/postcss-value-parser-3.3.1.tgz", - "integrity": "sha512-pISE66AbVkp4fDQ7VHBwRNXzAAKJjw4Vw7nWI/+Q3vuly7SNfgYXvm6i5IgFylHGK5sP/xHAbB7N49OS4gWNyQ==" + "integrity": "sha512-pISE66AbVkp4fDQ7VHBwRNXzAAKJjw4Vw7nWI/+Q3vuly7SNfgYXvm6i5IgFylHGK5sP/xHAbB7N49OS4gWNyQ==", + "dev": true } } }, @@ -5777,6 +7388,7 @@ "version": "4.0.3", "resolved": "https://registry.npmjs.org/postcss-merge-rules/-/postcss-merge-rules-4.0.3.tgz", "integrity": "sha512-U7e3r1SbvYzO0Jr3UT/zKBVgYYyhAz0aitvGIYOYK5CPmkNih+WDSsS5tvPrJ8YMQYlEMvsZIiqmn7HdFUaeEQ==", + "dev": true, "requires": { "browserslist": "^4.0.0", "caniuse-api": "^3.0.0", @@ -5790,6 +7402,7 @@ "version": "3.1.1", "resolved": "https://registry.npmjs.org/postcss-selector-parser/-/postcss-selector-parser-3.1.1.tgz", "integrity": "sha1-T4dfSvsMllc9XPTXQBGu4lCn6GU=", + "dev": true, "requires": { "dot-prop": "^4.1.1", "indexes-of": "^1.0.1", @@ -5802,6 +7415,7 @@ "version": "4.0.2", "resolved": "https://registry.npmjs.org/postcss-minify-font-values/-/postcss-minify-font-values-4.0.2.tgz", "integrity": "sha512-j85oO6OnRU9zPf04+PZv1LYIYOprWm6IA6zkXkrJXyRveDEuQggG6tvoy8ir8ZwjLxLuGfNkCZEQG7zan+Hbtg==", + "dev": true, "requires": { "postcss": "^7.0.0", "postcss-value-parser": "^3.0.0" @@ -5810,7 +7424,8 @@ "postcss-value-parser": { "version": "3.3.1", "resolved": "https://registry.npmjs.org/postcss-value-parser/-/postcss-value-parser-3.3.1.tgz", - "integrity": "sha512-pISE66AbVkp4fDQ7VHBwRNXzAAKJjw4Vw7nWI/+Q3vuly7SNfgYXvm6i5IgFylHGK5sP/xHAbB7N49OS4gWNyQ==" + "integrity": "sha512-pISE66AbVkp4fDQ7VHBwRNXzAAKJjw4Vw7nWI/+Q3vuly7SNfgYXvm6i5IgFylHGK5sP/xHAbB7N49OS4gWNyQ==", + "dev": true } } }, @@ -5818,6 +7433,7 @@ "version": "4.0.2", "resolved": "https://registry.npmjs.org/postcss-minify-gradients/-/postcss-minify-gradients-4.0.2.tgz", "integrity": "sha512-qKPfwlONdcf/AndP1U8SJ/uzIJtowHlMaSioKzebAXSG4iJthlWC9iSWznQcX4f66gIWX44RSA841HTHj3wK+Q==", + "dev": true, "requires": { "cssnano-util-get-arguments": "^4.0.0", "is-color-stop": "^1.0.0", @@ -5828,7 +7444,8 @@ "postcss-value-parser": { "version": "3.3.1", "resolved": "https://registry.npmjs.org/postcss-value-parser/-/postcss-value-parser-3.3.1.tgz", - "integrity": "sha512-pISE66AbVkp4fDQ7VHBwRNXzAAKJjw4Vw7nWI/+Q3vuly7SNfgYXvm6i5IgFylHGK5sP/xHAbB7N49OS4gWNyQ==" + "integrity": "sha512-pISE66AbVkp4fDQ7VHBwRNXzAAKJjw4Vw7nWI/+Q3vuly7SNfgYXvm6i5IgFylHGK5sP/xHAbB7N49OS4gWNyQ==", + "dev": true } } }, @@ -5836,6 +7453,7 @@ "version": "4.0.2", "resolved": "https://registry.npmjs.org/postcss-minify-params/-/postcss-minify-params-4.0.2.tgz", "integrity": "sha512-G7eWyzEx0xL4/wiBBJxJOz48zAKV2WG3iZOqVhPet/9geefm/Px5uo1fzlHu+DOjT+m0Mmiz3jkQzVHe6wxAWg==", + "dev": true, "requires": { "alphanum-sort": "^1.0.0", "browserslist": "^4.0.0", @@ -5848,7 +7466,8 @@ "postcss-value-parser": { "version": "3.3.1", "resolved": "https://registry.npmjs.org/postcss-value-parser/-/postcss-value-parser-3.3.1.tgz", - "integrity": "sha512-pISE66AbVkp4fDQ7VHBwRNXzAAKJjw4Vw7nWI/+Q3vuly7SNfgYXvm6i5IgFylHGK5sP/xHAbB7N49OS4gWNyQ==" + "integrity": "sha512-pISE66AbVkp4fDQ7VHBwRNXzAAKJjw4Vw7nWI/+Q3vuly7SNfgYXvm6i5IgFylHGK5sP/xHAbB7N49OS4gWNyQ==", + "dev": true } } }, @@ -5856,6 +7475,7 @@ "version": "4.0.2", "resolved": "https://registry.npmjs.org/postcss-minify-selectors/-/postcss-minify-selectors-4.0.2.tgz", "integrity": "sha512-D5S1iViljXBj9kflQo4YutWnJmwm8VvIsU1GeXJGiG9j8CIg9zs4voPMdQDUmIxetUOh60VilsNzCiAFTOqu3g==", + "dev": true, "requires": { "alphanum-sort": "^1.0.0", "has": "^1.0.0", @@ -5867,6 +7487,7 @@ "version": "3.1.1", "resolved": "https://registry.npmjs.org/postcss-selector-parser/-/postcss-selector-parser-3.1.1.tgz", "integrity": "sha1-T4dfSvsMllc9XPTXQBGu4lCn6GU=", + "dev": true, "requires": { "dot-prop": "^4.1.1", "indexes-of": "^1.0.1", @@ -5879,6 +7500,7 @@ "version": "1.2.1", "resolved": "https://registry.npmjs.org/postcss-modules-extract-imports/-/postcss-modules-extract-imports-1.2.1.tgz", "integrity": "sha512-6jt9XZwUhwmRUhb/CkyJY020PYaPJsCyt3UjbaWo6XEbH/94Hmv6MP7fG2C5NDU/BcHzyGYxNtHvM+LTf9HrYw==", + "dev": true, "requires": { "postcss": "^6.0.1" }, @@ -5887,6 +7509,7 @@ "version": "6.0.23", "resolved": "https://registry.npmjs.org/postcss/-/postcss-6.0.23.tgz", "integrity": "sha512-soOk1h6J3VMTZtVeVpv15/Hpdl2cBLX3CAw4TAbkpTJiNPk9YP/zWcD1ND+xEtvyuuvKzbxliTOIyvkSeSJ6ag==", + "dev": true, "requires": { "chalk": "^2.4.1", "source-map": "^0.6.1", @@ -5896,7 +7519,8 @@ "source-map": { "version": "0.6.1", "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", - "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==" + "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==", + "dev": true } } }, @@ -5904,6 +7528,7 @@ "version": "1.2.0", "resolved": "https://registry.npmjs.org/postcss-modules-local-by-default/-/postcss-modules-local-by-default-1.2.0.tgz", "integrity": "sha1-99gMOYxaOT+nlkRmvRlQCn1hwGk=", + "dev": true, "requires": { "css-selector-tokenizer": "^0.7.0", "postcss": "^6.0.1" @@ -5913,6 +7538,7 @@ "version": "6.0.23", "resolved": "https://registry.npmjs.org/postcss/-/postcss-6.0.23.tgz", "integrity": "sha512-soOk1h6J3VMTZtVeVpv15/Hpdl2cBLX3CAw4TAbkpTJiNPk9YP/zWcD1ND+xEtvyuuvKzbxliTOIyvkSeSJ6ag==", + "dev": true, "requires": { "chalk": "^2.4.1", "source-map": "^0.6.1", @@ -5922,7 +7548,8 @@ "source-map": { "version": "0.6.1", "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", - "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==" + "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==", + "dev": true } } }, @@ -5930,6 +7557,7 @@ "version": "1.1.0", "resolved": "https://registry.npmjs.org/postcss-modules-scope/-/postcss-modules-scope-1.1.0.tgz", "integrity": "sha1-1upkmUx5+XtipytCb75gVqGUu5A=", + "dev": true, "requires": { "css-selector-tokenizer": "^0.7.0", "postcss": "^6.0.1" @@ -5939,6 +7567,7 @@ "version": "6.0.23", "resolved": "https://registry.npmjs.org/postcss/-/postcss-6.0.23.tgz", "integrity": "sha512-soOk1h6J3VMTZtVeVpv15/Hpdl2cBLX3CAw4TAbkpTJiNPk9YP/zWcD1ND+xEtvyuuvKzbxliTOIyvkSeSJ6ag==", + "dev": true, "requires": { "chalk": "^2.4.1", "source-map": "^0.6.1", @@ -5948,7 +7577,8 @@ "source-map": { "version": "0.6.1", "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", - "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==" + "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==", + "dev": true } } }, @@ -5956,6 +7586,7 @@ "version": "1.3.0", "resolved": "https://registry.npmjs.org/postcss-modules-values/-/postcss-modules-values-1.3.0.tgz", "integrity": "sha1-7P+p1+GSUYOJ9CrQ6D9yrsRW6iA=", + "dev": true, "requires": { "icss-replace-symbols": "^1.1.0", "postcss": "^6.0.1" @@ -5965,6 +7596,7 @@ "version": "6.0.23", "resolved": "https://registry.npmjs.org/postcss/-/postcss-6.0.23.tgz", "integrity": "sha512-soOk1h6J3VMTZtVeVpv15/Hpdl2cBLX3CAw4TAbkpTJiNPk9YP/zWcD1ND+xEtvyuuvKzbxliTOIyvkSeSJ6ag==", + "dev": true, "requires": { "chalk": "^2.4.1", "source-map": "^0.6.1", @@ -5974,7 +7606,8 @@ "source-map": { "version": "0.6.1", "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", - "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==" + "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==", + "dev": true } } }, @@ -5982,6 +7615,7 @@ "version": "4.0.1", "resolved": "https://registry.npmjs.org/postcss-normalize-charset/-/postcss-normalize-charset-4.0.1.tgz", "integrity": "sha512-gMXCrrlWh6G27U0hF3vNvR3w8I1s2wOBILvA87iNXaPvSNo5uZAMYsZG7XjCUf1eVxuPfyL4TJ7++SGZLc9A3g==", + "dev": true, "requires": { "postcss": "^7.0.0" } @@ -5990,6 +7624,7 @@ "version": "4.0.2", "resolved": "https://registry.npmjs.org/postcss-normalize-display-values/-/postcss-normalize-display-values-4.0.2.tgz", "integrity": "sha512-3F2jcsaMW7+VtRMAqf/3m4cPFhPD3EFRgNs18u+k3lTJJlVe7d0YPO+bnwqo2xg8YiRpDXJI2u8A0wqJxMsQuQ==", + "dev": true, "requires": { "cssnano-util-get-match": "^4.0.0", "postcss": "^7.0.0", @@ -5999,7 +7634,8 @@ "postcss-value-parser": { "version": "3.3.1", "resolved": "https://registry.npmjs.org/postcss-value-parser/-/postcss-value-parser-3.3.1.tgz", - "integrity": "sha512-pISE66AbVkp4fDQ7VHBwRNXzAAKJjw4Vw7nWI/+Q3vuly7SNfgYXvm6i5IgFylHGK5sP/xHAbB7N49OS4gWNyQ==" + "integrity": "sha512-pISE66AbVkp4fDQ7VHBwRNXzAAKJjw4Vw7nWI/+Q3vuly7SNfgYXvm6i5IgFylHGK5sP/xHAbB7N49OS4gWNyQ==", + "dev": true } } }, @@ -6007,6 +7643,7 @@ "version": "4.0.2", "resolved": "https://registry.npmjs.org/postcss-normalize-positions/-/postcss-normalize-positions-4.0.2.tgz", "integrity": "sha512-Dlf3/9AxpxE+NF1fJxYDeggi5WwV35MXGFnnoccP/9qDtFrTArZ0D0R+iKcg5WsUd8nUYMIl8yXDCtcrT8JrdA==", + "dev": true, "requires": { "cssnano-util-get-arguments": "^4.0.0", "has": "^1.0.0", @@ -6017,7 +7654,8 @@ "postcss-value-parser": { "version": "3.3.1", "resolved": "https://registry.npmjs.org/postcss-value-parser/-/postcss-value-parser-3.3.1.tgz", - "integrity": "sha512-pISE66AbVkp4fDQ7VHBwRNXzAAKJjw4Vw7nWI/+Q3vuly7SNfgYXvm6i5IgFylHGK5sP/xHAbB7N49OS4gWNyQ==" + "integrity": "sha512-pISE66AbVkp4fDQ7VHBwRNXzAAKJjw4Vw7nWI/+Q3vuly7SNfgYXvm6i5IgFylHGK5sP/xHAbB7N49OS4gWNyQ==", + "dev": true } } }, @@ -6025,6 +7663,7 @@ "version": "4.0.2", "resolved": "https://registry.npmjs.org/postcss-normalize-repeat-style/-/postcss-normalize-repeat-style-4.0.2.tgz", "integrity": "sha512-qvigdYYMpSuoFs3Is/f5nHdRLJN/ITA7huIoCyqqENJe9PvPmLhNLMu7QTjPdtnVf6OcYYO5SHonx4+fbJE1+Q==", + "dev": true, "requires": { "cssnano-util-get-arguments": "^4.0.0", "cssnano-util-get-match": "^4.0.0", @@ -6035,7 +7674,8 @@ "postcss-value-parser": { "version": "3.3.1", "resolved": "https://registry.npmjs.org/postcss-value-parser/-/postcss-value-parser-3.3.1.tgz", - "integrity": "sha512-pISE66AbVkp4fDQ7VHBwRNXzAAKJjw4Vw7nWI/+Q3vuly7SNfgYXvm6i5IgFylHGK5sP/xHAbB7N49OS4gWNyQ==" + "integrity": "sha512-pISE66AbVkp4fDQ7VHBwRNXzAAKJjw4Vw7nWI/+Q3vuly7SNfgYXvm6i5IgFylHGK5sP/xHAbB7N49OS4gWNyQ==", + "dev": true } } }, @@ -6043,6 +7683,7 @@ "version": "4.0.2", "resolved": "https://registry.npmjs.org/postcss-normalize-string/-/postcss-normalize-string-4.0.2.tgz", "integrity": "sha512-RrERod97Dnwqq49WNz8qo66ps0swYZDSb6rM57kN2J+aoyEAJfZ6bMx0sx/F9TIEX0xthPGCmeyiam/jXif0eA==", + "dev": true, "requires": { "has": "^1.0.0", "postcss": "^7.0.0", @@ -6052,7 +7693,8 @@ "postcss-value-parser": { "version": "3.3.1", "resolved": "https://registry.npmjs.org/postcss-value-parser/-/postcss-value-parser-3.3.1.tgz", - "integrity": "sha512-pISE66AbVkp4fDQ7VHBwRNXzAAKJjw4Vw7nWI/+Q3vuly7SNfgYXvm6i5IgFylHGK5sP/xHAbB7N49OS4gWNyQ==" + "integrity": "sha512-pISE66AbVkp4fDQ7VHBwRNXzAAKJjw4Vw7nWI/+Q3vuly7SNfgYXvm6i5IgFylHGK5sP/xHAbB7N49OS4gWNyQ==", + "dev": true } } }, @@ -6060,6 +7702,7 @@ "version": "4.0.2", "resolved": "https://registry.npmjs.org/postcss-normalize-timing-functions/-/postcss-normalize-timing-functions-4.0.2.tgz", "integrity": "sha512-acwJY95edP762e++00Ehq9L4sZCEcOPyaHwoaFOhIwWCDfik6YvqsYNxckee65JHLKzuNSSmAdxwD2Cud1Z54A==", + "dev": true, "requires": { "cssnano-util-get-match": "^4.0.0", "postcss": "^7.0.0", @@ -6069,7 +7712,8 @@ "postcss-value-parser": { "version": "3.3.1", "resolved": "https://registry.npmjs.org/postcss-value-parser/-/postcss-value-parser-3.3.1.tgz", - "integrity": "sha512-pISE66AbVkp4fDQ7VHBwRNXzAAKJjw4Vw7nWI/+Q3vuly7SNfgYXvm6i5IgFylHGK5sP/xHAbB7N49OS4gWNyQ==" + "integrity": "sha512-pISE66AbVkp4fDQ7VHBwRNXzAAKJjw4Vw7nWI/+Q3vuly7SNfgYXvm6i5IgFylHGK5sP/xHAbB7N49OS4gWNyQ==", + "dev": true } } }, @@ -6077,6 +7721,7 @@ "version": "4.0.1", "resolved": "https://registry.npmjs.org/postcss-normalize-unicode/-/postcss-normalize-unicode-4.0.1.tgz", "integrity": "sha512-od18Uq2wCYn+vZ/qCOeutvHjB5jm57ToxRaMeNuf0nWVHaP9Hua56QyMF6fs/4FSUnVIw0CBPsU0K4LnBPwYwg==", + "dev": true, "requires": { "browserslist": "^4.0.0", "postcss": "^7.0.0", @@ -6086,7 +7731,8 @@ "postcss-value-parser": { "version": "3.3.1", "resolved": "https://registry.npmjs.org/postcss-value-parser/-/postcss-value-parser-3.3.1.tgz", - "integrity": "sha512-pISE66AbVkp4fDQ7VHBwRNXzAAKJjw4Vw7nWI/+Q3vuly7SNfgYXvm6i5IgFylHGK5sP/xHAbB7N49OS4gWNyQ==" + "integrity": "sha512-pISE66AbVkp4fDQ7VHBwRNXzAAKJjw4Vw7nWI/+Q3vuly7SNfgYXvm6i5IgFylHGK5sP/xHAbB7N49OS4gWNyQ==", + "dev": true } } }, @@ -6094,6 +7740,7 @@ "version": "4.0.1", "resolved": "https://registry.npmjs.org/postcss-normalize-url/-/postcss-normalize-url-4.0.1.tgz", "integrity": "sha512-p5oVaF4+IHwu7VpMan/SSpmpYxcJMtkGppYf0VbdH5B6hN8YNmVyJLuY9FmLQTzY3fag5ESUUHDqM+heid0UVA==", + "dev": true, "requires": { "is-absolute-url": "^2.0.0", "normalize-url": "^3.0.0", @@ -6104,7 +7751,8 @@ "postcss-value-parser": { "version": "3.3.1", "resolved": "https://registry.npmjs.org/postcss-value-parser/-/postcss-value-parser-3.3.1.tgz", - "integrity": "sha512-pISE66AbVkp4fDQ7VHBwRNXzAAKJjw4Vw7nWI/+Q3vuly7SNfgYXvm6i5IgFylHGK5sP/xHAbB7N49OS4gWNyQ==" + "integrity": "sha512-pISE66AbVkp4fDQ7VHBwRNXzAAKJjw4Vw7nWI/+Q3vuly7SNfgYXvm6i5IgFylHGK5sP/xHAbB7N49OS4gWNyQ==", + "dev": true } } }, @@ -6112,6 +7760,7 @@ "version": "4.0.2", "resolved": "https://registry.npmjs.org/postcss-normalize-whitespace/-/postcss-normalize-whitespace-4.0.2.tgz", "integrity": "sha512-tO8QIgrsI3p95r8fyqKV+ufKlSHh9hMJqACqbv2XknufqEDhDvbguXGBBqxw9nsQoXWf0qOqppziKJKHMD4GtA==", + "dev": true, "requires": { "postcss": "^7.0.0", "postcss-value-parser": "^3.0.0" @@ -6120,7 +7769,8 @@ "postcss-value-parser": { "version": "3.3.1", "resolved": "https://registry.npmjs.org/postcss-value-parser/-/postcss-value-parser-3.3.1.tgz", - "integrity": "sha512-pISE66AbVkp4fDQ7VHBwRNXzAAKJjw4Vw7nWI/+Q3vuly7SNfgYXvm6i5IgFylHGK5sP/xHAbB7N49OS4gWNyQ==" + "integrity": "sha512-pISE66AbVkp4fDQ7VHBwRNXzAAKJjw4Vw7nWI/+Q3vuly7SNfgYXvm6i5IgFylHGK5sP/xHAbB7N49OS4gWNyQ==", + "dev": true } } }, @@ -6128,6 +7778,7 @@ "version": "4.1.2", "resolved": "https://registry.npmjs.org/postcss-ordered-values/-/postcss-ordered-values-4.1.2.tgz", "integrity": "sha512-2fCObh5UanxvSxeXrtLtlwVThBvHn6MQcu4ksNT2tsaV2Fg76R2CV98W7wNSlX+5/pFwEyaDwKLLoEV7uRybAw==", + "dev": true, "requires": { "cssnano-util-get-arguments": "^4.0.0", "postcss": "^7.0.0", @@ -6137,7 +7788,8 @@ "postcss-value-parser": { "version": "3.3.1", "resolved": "https://registry.npmjs.org/postcss-value-parser/-/postcss-value-parser-3.3.1.tgz", - "integrity": "sha512-pISE66AbVkp4fDQ7VHBwRNXzAAKJjw4Vw7nWI/+Q3vuly7SNfgYXvm6i5IgFylHGK5sP/xHAbB7N49OS4gWNyQ==" + "integrity": "sha512-pISE66AbVkp4fDQ7VHBwRNXzAAKJjw4Vw7nWI/+Q3vuly7SNfgYXvm6i5IgFylHGK5sP/xHAbB7N49OS4gWNyQ==", + "dev": true } } }, @@ -6145,6 +7797,7 @@ "version": "4.0.3", "resolved": "https://registry.npmjs.org/postcss-reduce-initial/-/postcss-reduce-initial-4.0.3.tgz", "integrity": "sha512-gKWmR5aUulSjbzOfD9AlJiHCGH6AEVLaM0AV+aSioxUDd16qXP1PCh8d1/BGVvpdWn8k/HiK7n6TjeoXN1F7DA==", + "dev": true, "requires": { "browserslist": "^4.0.0", "caniuse-api": "^3.0.0", @@ -6156,6 +7809,7 @@ "version": "4.0.2", "resolved": "https://registry.npmjs.org/postcss-reduce-transforms/-/postcss-reduce-transforms-4.0.2.tgz", "integrity": "sha512-EEVig1Q2QJ4ELpJXMZR8Vt5DQx8/mo+dGWSR7vWXqcob2gQLyQGsionYcGKATXvQzMPn6DSN1vTN7yFximdIAg==", + "dev": true, "requires": { "cssnano-util-get-match": "^4.0.0", "has": "^1.0.0", @@ -6166,7 +7820,8 @@ "postcss-value-parser": { "version": "3.3.1", "resolved": "https://registry.npmjs.org/postcss-value-parser/-/postcss-value-parser-3.3.1.tgz", - "integrity": "sha512-pISE66AbVkp4fDQ7VHBwRNXzAAKJjw4Vw7nWI/+Q3vuly7SNfgYXvm6i5IgFylHGK5sP/xHAbB7N49OS4gWNyQ==" + "integrity": "sha512-pISE66AbVkp4fDQ7VHBwRNXzAAKJjw4Vw7nWI/+Q3vuly7SNfgYXvm6i5IgFylHGK5sP/xHAbB7N49OS4gWNyQ==", + "dev": true } } }, @@ -6174,6 +7829,7 @@ "version": "5.0.0", "resolved": "https://registry.npmjs.org/postcss-selector-parser/-/postcss-selector-parser-5.0.0.tgz", "integrity": "sha512-w+zLE5Jhg6Liz8+rQOWEAwtwkyqpfnmsinXjXg6cY7YIONZZtgvE0v2O0uhQBs0peNomOJwWRKt6JBfTdTd3OQ==", + "dev": true, "requires": { "cssesc": "^2.0.0", "indexes-of": "^1.0.1", @@ -6183,7 +7839,8 @@ "cssesc": { "version": "2.0.0", "resolved": "https://registry.npmjs.org/cssesc/-/cssesc-2.0.0.tgz", - "integrity": "sha512-MsCAG1z9lPdoO/IUMLSBWBSVxVtJ1395VGIQ+Fc2gNdkQ1hNDnQdw3YhA71WJCBW1vdwA0cAnk/DnW6bqoEUYg==" + "integrity": "sha512-MsCAG1z9lPdoO/IUMLSBWBSVxVtJ1395VGIQ+Fc2gNdkQ1hNDnQdw3YhA71WJCBW1vdwA0cAnk/DnW6bqoEUYg==", + "dev": true } } }, @@ -6191,6 +7848,7 @@ "version": "4.0.2", "resolved": "https://registry.npmjs.org/postcss-svgo/-/postcss-svgo-4.0.2.tgz", "integrity": "sha512-C6wyjo3VwFm0QgBy+Fu7gCYOkCmgmClghO+pjcxvrcBKtiKt0uCF+hvbMO1fyv5BMImRK90SMb+dwUnfbGd+jw==", + "dev": true, "requires": { "is-svg": "^3.0.0", "postcss": "^7.0.0", @@ -6201,7 +7859,8 @@ "postcss-value-parser": { "version": "3.3.1", "resolved": "https://registry.npmjs.org/postcss-value-parser/-/postcss-value-parser-3.3.1.tgz", - "integrity": "sha512-pISE66AbVkp4fDQ7VHBwRNXzAAKJjw4Vw7nWI/+Q3vuly7SNfgYXvm6i5IgFylHGK5sP/xHAbB7N49OS4gWNyQ==" + "integrity": "sha512-pISE66AbVkp4fDQ7VHBwRNXzAAKJjw4Vw7nWI/+Q3vuly7SNfgYXvm6i5IgFylHGK5sP/xHAbB7N49OS4gWNyQ==", + "dev": true } } }, @@ -6209,6 +7868,7 @@ "version": "4.0.1", "resolved": "https://registry.npmjs.org/postcss-unique-selectors/-/postcss-unique-selectors-4.0.1.tgz", "integrity": "sha512-+JanVaryLo9QwZjKrmJgkI4Fn8SBgRO6WXQBJi7KiAVPlmxikB5Jzc4EvXMT2H0/m0RjrVVm9rGNhZddm/8Spg==", + "dev": true, "requires": { "alphanum-sort": "^1.0.0", "postcss": "^7.0.0", @@ -6218,37 +7878,54 @@ "postcss-value-parser": { "version": "4.0.2", "resolved": "https://registry.npmjs.org/postcss-value-parser/-/postcss-value-parser-4.0.2.tgz", - "integrity": "sha512-LmeoohTpp/K4UiyQCwuGWlONxXamGzCMtFxLq4W1nZVGIQLYvMCJx3yAF9qyyuFpflABI9yVdtJAqbihOsCsJQ==" + "integrity": "sha512-LmeoohTpp/K4UiyQCwuGWlONxXamGzCMtFxLq4W1nZVGIQLYvMCJx3yAF9qyyuFpflABI9yVdtJAqbihOsCsJQ==", + "dev": true }, "prettier": { - "version": "1.16.3", - "resolved": "https://registry.npmjs.org/prettier/-/prettier-1.16.3.tgz", - "integrity": "sha512-kn/GU6SMRYPxUakNXhpP0EedT/KmaPzr0H5lIsDogrykbaxOpOfAFfk5XA7DZrJyMAv1wlMV3CPcZruGXVVUZw==" + "version": "1.19.1", + "resolved": "https://registry.npmjs.org/prettier/-/prettier-1.19.1.tgz", + "integrity": "sha512-s7PoyDv/II1ObgQunCbB9PdLmUcBZcnWOcxDh7O0N/UwDEsHyqkW+Qh28jW+mVuCdx7gLB0BotYI1Y6uI9iyew==", + "dev": true }, "private": { "version": "0.1.8", "resolved": "https://registry.npmjs.org/private/-/private-0.1.8.tgz", - "integrity": "sha512-VvivMrbvd2nKkiG38qjULzlc+4Vx4wm/whI9pQD35YrARNnhxeiRktSOhSukRLFNlzg6Br/cJPet5J/u19r/mg==" + "integrity": "sha512-VvivMrbvd2nKkiG38qjULzlc+4Vx4wm/whI9pQD35YrARNnhxeiRktSOhSukRLFNlzg6Br/cJPet5J/u19r/mg==", + "dev": true }, "process": { "version": "0.11.10", "resolved": "https://registry.npmjs.org/process/-/process-0.11.10.tgz", - "integrity": "sha1-czIwDoQBYb2j5podHZGn1LwW8YI=" + "integrity": "sha1-czIwDoQBYb2j5podHZGn1LwW8YI=", + "dev": true }, "process-nextick-args": { "version": "2.0.1", "resolved": "https://registry.npmjs.org/process-nextick-args/-/process-nextick-args-2.0.1.tgz", - "integrity": "sha512-3ouUOpQhtgrbOa17J7+uxOTpITYWaGP7/AhoR3+A+/1e9skrzelGi/dXzEYyvbxubEF6Wn2ypscTKiKJFFn1ag==" + "integrity": "sha512-3ouUOpQhtgrbOa17J7+uxOTpITYWaGP7/AhoR3+A+/1e9skrzelGi/dXzEYyvbxubEF6Wn2ypscTKiKJFFn1ag==", + "dev": true + }, + "promise": { + "version": "7.3.1", + "resolved": "https://registry.npmjs.org/promise/-/promise-7.3.1.tgz", + "integrity": "sha512-nolQXZ/4L+bP/UGlkfaIujX9BKxGwmQ9OT4mOt5yvy8iK1h3wqTEJCijzGANTCCl9nWjY41juyAn2K3Q1hLLTg==", + "dev": true, + "optional": true, + "requires": { + "asap": "~2.0.3" + } }, "promise-inflight": { "version": "1.0.1", "resolved": "https://registry.npmjs.org/promise-inflight/-/promise-inflight-1.0.1.tgz", - "integrity": "sha1-mEcocL8igTL8vdhoEputEsPAKeM=" + "integrity": "sha1-mEcocL8igTL8vdhoEputEsPAKeM=", + "dev": true }, "proxy-addr": { "version": "2.0.5", "resolved": "https://registry.npmjs.org/proxy-addr/-/proxy-addr-2.0.5.tgz", "integrity": "sha512-t/7RxHXPH6cJtP0pRG6smSr9QJidhB+3kXu0KgXnbGYMgzEnUxRQ4/LDdfOwZEMyIh3/xHb8PX3t+lfL9z+YVQ==", + "dev": true, "requires": { "forwarded": "~0.1.2", "ipaddr.js": "1.9.0" @@ -6257,17 +7934,27 @@ "prr": { "version": "1.0.1", "resolved": "https://registry.npmjs.org/prr/-/prr-1.0.1.tgz", - "integrity": "sha1-0/wRS6BplaRexok/SEzrHXj19HY=" + "integrity": "sha1-0/wRS6BplaRexok/SEzrHXj19HY=", + "dev": true }, "pseudomap": { "version": "1.0.2", "resolved": "https://registry.npmjs.org/pseudomap/-/pseudomap-1.0.2.tgz", - "integrity": "sha1-8FKijacOYYkX7wqKw0wa5aaChrM=" + "integrity": "sha1-8FKijacOYYkX7wqKw0wa5aaChrM=", + "dev": true + }, + "psl": { + "version": "1.4.0", + "resolved": "https://registry.npmjs.org/psl/-/psl-1.4.0.tgz", + "integrity": "sha512-HZzqCGPecFLyoRj5HLfuDSKYTJkAfB5thKBIkRHtGjWwY7p1dAyveIbXIq4tO0KYfDF2tHqPUgY9SDnGm00uFw==", + "dev": true, + "optional": true }, "public-encrypt": { "version": "4.0.3", "resolved": "https://registry.npmjs.org/public-encrypt/-/public-encrypt-4.0.3.tgz", "integrity": "sha512-zVpa8oKZSz5bTMTFClc1fQOnyyEzpl5ozpi1B5YcvBrdohMjH2rfsBtyXcuNuwjsDIXmBYlF2N5FlJYhR29t8Q==", + "dev": true, "requires": { "bn.js": "^4.1.0", "browserify-rsa": "^4.0.0", @@ -6281,6 +7968,7 @@ "version": "3.0.0", "resolved": "https://registry.npmjs.org/pump/-/pump-3.0.0.tgz", "integrity": "sha512-LwZy+p3SFs1Pytd/jYct4wpv49HiYCqd9Rlc5ZVdk0V+8Yzv6jR5Blk3TRmPL1ft69TxP0IMZGJ+WPFU2BFhww==", + "dev": true, "requires": { "end-of-stream": "^1.1.0", "once": "^1.3.1" @@ -6290,6 +7978,7 @@ "version": "1.5.1", "resolved": "https://registry.npmjs.org/pumpify/-/pumpify-1.5.1.tgz", "integrity": "sha512-oClZI37HvuUJJxSKKrC17bZ9Cu0ZYhEAGPsPUy9KlMUmv9dKX2o77RUmq7f3XjIxbwyGwYzbzQ1L2Ks8sIradQ==", + "dev": true, "requires": { "duplexify": "^3.6.0", "inherits": "^2.0.3", @@ -6300,6 +7989,7 @@ "version": "2.0.1", "resolved": "https://registry.npmjs.org/pump/-/pump-2.0.1.tgz", "integrity": "sha512-ruPMNRkN3MHP1cWJc9OWr+T/xDP0jhXYCLfJcBuX54hhfIBnaQmAUMfDcG4DM5UMWByBbJY69QSphm3jtDKIkA==", + "dev": true, "requires": { "end-of-stream": "^1.1.0", "once": "^1.3.1" @@ -6310,37 +8000,86 @@ "punycode": { "version": "2.1.1", "resolved": "https://registry.npmjs.org/punycode/-/punycode-2.1.1.tgz", - "integrity": "sha512-XRsRjdf+j5ml+y/6GKHPZbrF/8p2Yga0JPtdqTIY2Xe5ohJPD9saDJJLPvp9+NSBprVvevdXZybnj2cv8OEd0A==" + "integrity": "sha512-XRsRjdf+j5ml+y/6GKHPZbrF/8p2Yga0JPtdqTIY2Xe5ohJPD9saDJJLPvp9+NSBprVvevdXZybnj2cv8OEd0A==", + "dev": true }, "q": { "version": "1.5.1", "resolved": "https://registry.npmjs.org/q/-/q-1.5.1.tgz", - "integrity": "sha1-fjL3W0E4EpHQRhHxvxQQmsAGUdc=" + "integrity": "sha1-fjL3W0E4EpHQRhHxvxQQmsAGUdc=", + "dev": true }, "qs": { "version": "6.7.0", "resolved": "https://registry.npmjs.org/qs/-/qs-6.7.0.tgz", - "integrity": "sha512-VCdBRNFTX1fyE7Nb6FYoURo/SPe62QCaAyzJvUjwRaIsc+NePBEniHlvxFmmX56+HZphIGtV0XeCirBtpDrTyQ==" + "integrity": "sha512-VCdBRNFTX1fyE7Nb6FYoURo/SPe62QCaAyzJvUjwRaIsc+NePBEniHlvxFmmX56+HZphIGtV0XeCirBtpDrTyQ==", + "dev": true }, "querystring": { "version": "0.2.0", "resolved": "https://registry.npmjs.org/querystring/-/querystring-0.2.0.tgz", - "integrity": "sha1-sgmEkgO7Jd+CDadW50cAWHhSFiA=" + "integrity": "sha1-sgmEkgO7Jd+CDadW50cAWHhSFiA=", + "dev": true }, "querystring-es3": { "version": "0.2.1", "resolved": "https://registry.npmjs.org/querystring-es3/-/querystring-es3-0.2.1.tgz", - "integrity": "sha1-nsYfeQSYdXB9aUFFlv2Qek1xHnM=" + "integrity": "sha1-nsYfeQSYdXB9aUFFlv2Qek1xHnM=", + "dev": true }, "querystringify": { "version": "2.1.1", "resolved": "https://registry.npmjs.org/querystringify/-/querystringify-2.1.1.tgz", - "integrity": "sha512-w7fLxIRCRT7U8Qu53jQnJyPkYZIaR4n5151KMfcJlO/A9397Wxb1amJvROTK6TOnp7PfoAmg/qXiNHI+08jRfA==" + "integrity": "sha512-w7fLxIRCRT7U8Qu53jQnJyPkYZIaR4n5151KMfcJlO/A9397Wxb1amJvROTK6TOnp7PfoAmg/qXiNHI+08jRfA==", + "dev": true + }, + "quill": { + "version": "1.3.7", + "resolved": "https://registry.npmjs.org/quill/-/quill-1.3.7.tgz", + "integrity": "sha512-hG/DVzh/TiknWtE6QmWAF/pxoZKYxfe3J/d/+ShUWkDvvkZQVTPeVmUJVu1uE6DDooC4fWTiCLh84ul89oNz5g==", + "dev": true, + "requires": { + "clone": "^2.1.1", + "deep-equal": "^1.0.1", + "eventemitter3": "^2.0.3", + "extend": "^3.0.2", + "parchment": "^1.1.4", + "quill-delta": "^3.6.2" + }, + "dependencies": { + "eventemitter3": { + "version": "2.0.3", + "resolved": "https://registry.npmjs.org/eventemitter3/-/eventemitter3-2.0.3.tgz", + "integrity": "sha1-teEHm1n7XhuidxwKmTvgYKWMmbo=", + "dev": true + } + } + }, + "quill-delta": { + "version": "3.6.3", + "resolved": "https://registry.npmjs.org/quill-delta/-/quill-delta-3.6.3.tgz", + "integrity": "sha512-wdIGBlcX13tCHOXGMVnnTVFtGRLoP0imqxM696fIPwIf5ODIYUHIvHbZcyvGlZFiFhK5XzDC2lpjbxRhnM05Tg==", + "dev": true, + "requires": { + "deep-equal": "^1.0.1", + "extend": "^3.0.2", + "fast-diff": "1.1.2" + } + }, + "raf": { + "version": "3.4.1", + "resolved": "https://registry.npmjs.org/raf/-/raf-3.4.1.tgz", + "integrity": "sha512-Sq4CW4QhwOHE8ucn6J34MqtZCeWFP2aQSmrlroYgqAV1PjStIhJXxYuTgUIfkEk7zTLjmIjLmU5q+fbD1NnOJA==", + "dev": true, + "requires": { + "performance-now": "^2.1.0" + } }, "randombytes": { "version": "2.1.0", "resolved": "https://registry.npmjs.org/randombytes/-/randombytes-2.1.0.tgz", "integrity": "sha512-vYl3iOX+4CKUWuxGi9Ukhie6fsqXqS9FE2Zaic4tNFD2N2QQaXOMFbuKK4QmDHC0JO6B1Zp41J0LpT0oR68amQ==", + "dev": true, "requires": { "safe-buffer": "^5.1.0" } @@ -6349,6 +8088,7 @@ "version": "1.0.4", "resolved": "https://registry.npmjs.org/randomfill/-/randomfill-1.0.4.tgz", "integrity": "sha512-87lcbR8+MhcWcUiQ+9e+Rwx8MyR2P7qnt15ynUlbm3TU/fjbgz4GsvfSUDTemtCCtVCqb4ZcEFlyPNTh9bBTLw==", + "dev": true, "requires": { "randombytes": "^2.0.5", "safe-buffer": "^5.1.0" @@ -6357,12 +8097,14 @@ "range-parser": { "version": "1.2.1", "resolved": "https://registry.npmjs.org/range-parser/-/range-parser-1.2.1.tgz", - "integrity": "sha512-Hrgsx+orqoygnmhFbKaHE6c296J+HTAQXoxEF6gNupROmmGJRoyzfG3ccAveqCBrwr/2yxQ5BVd/GTl5agOwSg==" + "integrity": "sha512-Hrgsx+orqoygnmhFbKaHE6c296J+HTAQXoxEF6gNupROmmGJRoyzfG3ccAveqCBrwr/2yxQ5BVd/GTl5agOwSg==", + "dev": true }, "raw-body": { "version": "2.4.0", "resolved": "https://registry.npmjs.org/raw-body/-/raw-body-2.4.0.tgz", "integrity": "sha512-4Oz8DUIwdvoa5qMJelxipzi/iJIi40O5cGV1wNYp5hvZP8ZN0T+jiNkL0QepXs+EsQ9XJ8ipEDoiH70ySUJP3Q==", + "dev": true, "requires": { "bytes": "3.1.0", "http-errors": "1.7.2", @@ -6373,7 +8115,8 @@ "bytes": { "version": "3.1.0", "resolved": "https://registry.npmjs.org/bytes/-/bytes-3.1.0.tgz", - "integrity": "sha512-zauLjrfCG+xvoyaqLoV8bLVXXNGC4JqlxFCutSDWA6fJrTo2ZuvLYTqZ7aHBLZSMOopbzwv8f+wZcVzfVTI2Dg==" + "integrity": "sha512-zauLjrfCG+xvoyaqLoV8bLVXXNGC4JqlxFCutSDWA6fJrTo2ZuvLYTqZ7aHBLZSMOopbzwv8f+wZcVzfVTI2Dg==", + "dev": true } } }, @@ -6381,6 +8124,7 @@ "version": "2.3.6", "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-2.3.6.tgz", "integrity": "sha512-tQtKA9WIAhBF3+VLAseyMqZeBjW0AHJoxOtYqSUZNJxauErmLbVm2FW1y+J/YA9dUrAC39ITejlZWhVIwawkKw==", + "dev": true, "requires": { "core-util-is": "~1.0.0", "inherits": "~2.0.3", @@ -6395,6 +8139,7 @@ "version": "2.2.1", "resolved": "https://registry.npmjs.org/readdirp/-/readdirp-2.2.1.tgz", "integrity": "sha512-1JU/8q+VgFZyxwrJ+SVIOsh+KywWGpds3NTqikiKpDMZWScmAYyKIgqkO+ARvNWJfXeXR1zxz7aHF4u4CyH6vQ==", + "dev": true, "requires": { "graceful-fs": "^4.1.11", "micromatch": "^3.1.10", @@ -6405,6 +8150,7 @@ "version": "0.11.23", "resolved": "https://registry.npmjs.org/recast/-/recast-0.11.23.tgz", "integrity": "sha1-RR/TAEqx5N+bTktmN2sqIZEkYtM=", + "dev": true, "requires": { "ast-types": "0.9.6", "esprima": "~3.1.0", @@ -6415,25 +8161,29 @@ "regenerate": { "version": "1.4.0", "resolved": "https://registry.npmjs.org/regenerate/-/regenerate-1.4.0.tgz", - "integrity": "sha512-1G6jJVDWrt0rK99kBjvEtziZNCICAuvIPkSiUFIQxVP06RCVpq3dmDo2oi6ABpYaDYaTRr67BEhL8r1wgEZZKg==" + "integrity": "sha512-1G6jJVDWrt0rK99kBjvEtziZNCICAuvIPkSiUFIQxVP06RCVpq3dmDo2oi6ABpYaDYaTRr67BEhL8r1wgEZZKg==", + "dev": true }, "regenerate-unicode-properties": { "version": "8.1.0", "resolved": "https://registry.npmjs.org/regenerate-unicode-properties/-/regenerate-unicode-properties-8.1.0.tgz", "integrity": "sha512-LGZzkgtLY79GeXLm8Dp0BVLdQlWICzBnJz/ipWUgo59qBaZ+BHtq51P2q1uVZlppMuUAT37SDk39qUbjTWB7bA==", + "dev": true, "requires": { "regenerate": "^1.4.0" } }, "regenerator-runtime": { - "version": "0.13.3", - "resolved": "https://registry.npmjs.org/regenerator-runtime/-/regenerator-runtime-0.13.3.tgz", - "integrity": "sha512-naKIZz2GQ8JWh///G7L3X6LaQUAMp2lvb1rvwwsURe/VXwD6VMfr+/1NuNw3ag8v2kY1aQ/go5SNn79O9JU7yw==" + "version": "0.11.1", + "resolved": "https://registry.npmjs.org/regenerator-runtime/-/regenerator-runtime-0.11.1.tgz", + "integrity": "sha512-MguG95oij0fC3QV3URf4V2SDYGJhJnJGqvIIgdECeODCT98wSWDAJ94SSuVpYQUoTcGUIL6L4yNB7j1DFFHSBg==", + "dev": true }, "regenerator-transform": { "version": "0.14.1", "resolved": "https://registry.npmjs.org/regenerator-transform/-/regenerator-transform-0.14.1.tgz", "integrity": "sha512-flVuee02C3FKRISbxhXl9mGzdbWUVHubl1SMaknjxkFB1/iqpJhArQUvRxOOPEc/9tAiX0BaQ28FJH10E4isSQ==", + "dev": true, "requires": { "private": "^0.1.6" } @@ -6442,20 +8192,23 @@ "version": "1.0.2", "resolved": "https://registry.npmjs.org/regex-not/-/regex-not-1.0.2.tgz", "integrity": "sha512-J6SDjUgDxQj5NusnOtdFxDwN/+HWykR8GELwctJ7mdqhcyy1xEc4SRFHUXvxTp661YaVKAjfRLZ9cCqS6tn32A==", + "dev": true, "requires": { "extend-shallow": "^3.0.2", "safe-regex": "^1.1.0" } }, - "regexp-tree": { - "version": "0.1.13", - "resolved": "https://registry.npmjs.org/regexp-tree/-/regexp-tree-0.1.13.tgz", - "integrity": "sha512-hwdV/GQY5F8ReLZWO+W1SRoN5YfpOKY6852+tBFcma72DKBIcHjPRIlIvQN35bCOljuAfP2G2iB0FC/w236mUw==" + "regex-parser": { + "version": "2.2.10", + "resolved": "https://registry.npmjs.org/regex-parser/-/regex-parser-2.2.10.tgz", + "integrity": "sha512-8t6074A68gHfU8Neftl0Le6KTDwfGAj7IyjPIMSfikI2wJUTHDMaIq42bUsfVnj8mhx0R+45rdUXHGpN164avA==", + "dev": true }, "regexp.prototype.flags": { "version": "1.2.0", "resolved": "https://registry.npmjs.org/regexp.prototype.flags/-/regexp.prototype.flags-1.2.0.tgz", "integrity": "sha512-ztaw4M1VqgMwl9HlPpOuiYgItcHlunW0He2fE6eNfT6E/CF2FtYi9ofOYe4mKntstYk0Fyh/rDRBdS3AnxjlrA==", + "dev": true, "requires": { "define-properties": "^1.1.2" } @@ -6464,6 +8217,7 @@ "version": "4.6.0", "resolved": "https://registry.npmjs.org/regexpu-core/-/regexpu-core-4.6.0.tgz", "integrity": "sha512-YlVaefl8P5BnFYOITTNzDvan1ulLOiXJzCNZxduTIosN17b87h3bvG9yHMoHaRuo88H4mQ06Aodj5VtYGGGiTg==", + "dev": true, "requires": { "regenerate": "^1.4.0", "regenerate-unicode-properties": "^8.1.0", @@ -6474,14 +8228,16 @@ } }, "regjsgen": { - "version": "0.5.0", - "resolved": "https://registry.npmjs.org/regjsgen/-/regjsgen-0.5.0.tgz", - "integrity": "sha512-RnIrLhrXCX5ow/E5/Mh2O4e/oa1/jW0eaBKTSy3LaCj+M3Bqvm97GWDp2yUtzIs4LEn65zR2yiYGFqb2ApnzDA==" + "version": "0.5.1", + "resolved": "https://registry.npmjs.org/regjsgen/-/regjsgen-0.5.1.tgz", + "integrity": "sha512-5qxzGZjDs9w4tzT3TPhCJqWdCc3RLYwy9J2NB0nm5Lz+S273lvWcpjaTGHsT1dc6Hhfq41uSEOw8wBmxrKOuyg==", + "dev": true }, "regjsparser": { "version": "0.6.0", "resolved": "https://registry.npmjs.org/regjsparser/-/regjsparser-0.6.0.tgz", "integrity": "sha512-RQ7YyokLiQBomUJuUG8iGVvkgOLxwyZM8k6d3q5SAXpg4r5TZJZigKFvC6PpD+qQ98bCDC5YelPeA3EucDoNeQ==", + "dev": true, "requires": { "jsesc": "~0.5.0" }, @@ -6489,54 +8245,108 @@ "jsesc": { "version": "0.5.0", "resolved": "https://registry.npmjs.org/jsesc/-/jsesc-0.5.0.tgz", - "integrity": "sha1-597mbjXW/Bb3EP6R1c9p9w8IkR0=" + "integrity": "sha1-597mbjXW/Bb3EP6R1c9p9w8IkR0=", + "dev": true } } }, "relateurl": { "version": "0.2.7", "resolved": "https://registry.npmjs.org/relateurl/-/relateurl-0.2.7.tgz", - "integrity": "sha1-VNvzd+UUQKypCkzSdGANP/LYiKk=" + "integrity": "sha1-VNvzd+UUQKypCkzSdGANP/LYiKk=", + "dev": true }, "remove-trailing-separator": { "version": "1.1.0", "resolved": "https://registry.npmjs.org/remove-trailing-separator/-/remove-trailing-separator-1.1.0.tgz", - "integrity": "sha1-wkvOKig62tW8P1jg1IJJuSN52O8=" + "integrity": "sha1-wkvOKig62tW8P1jg1IJJuSN52O8=", + "dev": true }, "repeat-element": { "version": "1.1.3", "resolved": "https://registry.npmjs.org/repeat-element/-/repeat-element-1.1.3.tgz", - "integrity": "sha512-ahGq0ZnV5m5XtZLMb+vP76kcAM5nkLqk0lpqAuojSKGgQtn4eRi4ZZGm2olo2zKFH+sMsWaqOCW1dqAnOru72g==" + "integrity": "sha512-ahGq0ZnV5m5XtZLMb+vP76kcAM5nkLqk0lpqAuojSKGgQtn4eRi4ZZGm2olo2zKFH+sMsWaqOCW1dqAnOru72g==", + "dev": true }, "repeat-string": { "version": "1.6.1", "resolved": "https://registry.npmjs.org/repeat-string/-/repeat-string-1.6.1.tgz", - "integrity": "sha1-jcrkcOHIirwtYA//Sndihtp15jc=" + "integrity": "sha1-jcrkcOHIirwtYA//Sndihtp15jc=", + "dev": true }, "replace-ext": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/replace-ext/-/replace-ext-1.0.0.tgz", - "integrity": "sha1-3mMSg3P8v3w8z6TeWkgMRaZ5WOs=" + "integrity": "sha1-3mMSg3P8v3w8z6TeWkgMRaZ5WOs=", + "dev": true + }, + "request": { + "version": "2.88.0", + "resolved": "https://registry.npmjs.org/request/-/request-2.88.0.tgz", + "integrity": "sha512-NAqBSrijGLZdM0WZNsInLJpkJokL72XYjUpnB0iwsRgxh7dB6COrHnTBNwN0E+lHDAJzu7kLAkDeY08z2/A0hg==", + "dev": true, + "optional": true, + "requires": { + "aws-sign2": "~0.7.0", + "aws4": "^1.8.0", + "caseless": "~0.12.0", + "combined-stream": "~1.0.6", + "extend": "~3.0.2", + "forever-agent": "~0.6.1", + "form-data": "~2.3.2", + "har-validator": "~5.1.0", + "http-signature": "~1.2.0", + "is-typedarray": "~1.0.0", + "isstream": "~0.1.2", + "json-stringify-safe": "~5.0.1", + "mime-types": "~2.1.19", + "oauth-sign": "~0.9.0", + "performance-now": "^2.1.0", + "qs": "~6.5.2", + "safe-buffer": "^5.1.2", + "tough-cookie": "~2.4.3", + "tunnel-agent": "^0.6.0", + "uuid": "^3.3.2" + }, + "dependencies": { + "qs": { + "version": "6.5.2", + "resolved": "https://registry.npmjs.org/qs/-/qs-6.5.2.tgz", + "integrity": "sha512-N5ZAX4/LxJmF+7wN74pUD6qAh9/wnvdQcjq9TZjevvXzSUo7bfmw91saqMjzGS2xq91/odN2dW/WOl7qQHNDGA==", + "dev": true, + "optional": true + } + } }, "require-directory": { "version": "2.1.1", "resolved": "https://registry.npmjs.org/require-directory/-/require-directory-2.1.1.tgz", - "integrity": "sha1-jGStX9MNqxyXbiNE/+f3kqam30I=" + "integrity": "sha1-jGStX9MNqxyXbiNE/+f3kqam30I=", + "dev": true }, "require-main-filename": { "version": "2.0.0", "resolved": "https://registry.npmjs.org/require-main-filename/-/require-main-filename-2.0.0.tgz", - "integrity": "sha512-NKN5kMDylKuldxYLSUfrbo5Tuzh4hd+2E8NPPX02mZtn1VuREQToYe/ZdlJy+J3uCpfaiGF05e7B8W0iXbQHmg==" + "integrity": "sha512-NKN5kMDylKuldxYLSUfrbo5Tuzh4hd+2E8NPPX02mZtn1VuREQToYe/ZdlJy+J3uCpfaiGF05e7B8W0iXbQHmg==", + "dev": true }, "requires-port": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/requires-port/-/requires-port-1.0.0.tgz", - "integrity": "sha1-kl0mAdOaxIXgkc8NpcbmlNw9yv8=" + "integrity": "sha1-kl0mAdOaxIXgkc8NpcbmlNw9yv8=", + "dev": true + }, + "resize-observer-polyfill": { + "version": "1.5.1", + "resolved": "https://registry.npmjs.org/resize-observer-polyfill/-/resize-observer-polyfill-1.5.1.tgz", + "integrity": "sha512-LwZrotdHOo12nQuZlHEmtuXdqGoOD0OhaxopaNFxWzInpEgaLWoVuAMbTzixuosCx2nEG58ngzW3vxdWoxIgdg==", + "dev": true }, "resolve": { "version": "1.12.0", "resolved": "https://registry.npmjs.org/resolve/-/resolve-1.12.0.tgz", "integrity": "sha512-B/dOmuoAik5bKcD6s6nXDCjzUKnaDvdkRyAk6rsmsKLipWj4797iothd7jmmUhWTfinVMU+wc56rYKsit2Qy4w==", + "dev": true, "requires": { "path-parse": "^1.0.6" } @@ -6545,6 +8355,7 @@ "version": "2.0.0", "resolved": "https://registry.npmjs.org/resolve-cwd/-/resolve-cwd-2.0.0.tgz", "integrity": "sha1-AKn3OHVW4nA46uIyyqNypqWbZlo=", + "dev": true, "requires": { "resolve-from": "^3.0.0" } @@ -6553,6 +8364,7 @@ "version": "1.0.1", "resolved": "https://registry.npmjs.org/resolve-dir/-/resolve-dir-1.0.1.tgz", "integrity": "sha1-eaQGRMNivoLybv/nOcm7U4IEb0M=", + "dev": true, "requires": { "expand-tilde": "^2.0.0", "global-modules": "^1.0.0" @@ -6562,6 +8374,7 @@ "version": "1.0.0", "resolved": "https://registry.npmjs.org/global-modules/-/global-modules-1.0.0.tgz", "integrity": "sha512-sKzpEkf11GpOFuw0Zzjzmt4B4UZwjOcG757PPvrfhxcLFbq0wpsgpOqxpxtxFiCG4DtG93M6XRVbF2oGdev7bg==", + "dev": true, "requires": { "global-prefix": "^1.0.1", "is-windows": "^1.0.1", @@ -6573,37 +8386,93 @@ "resolve-from": { "version": "3.0.0", "resolved": "https://registry.npmjs.org/resolve-from/-/resolve-from-3.0.0.tgz", - "integrity": "sha1-six699nWiBvItuZTM17rywoYh0g=" + "integrity": "sha1-six699nWiBvItuZTM17rywoYh0g=", + "dev": true }, "resolve-url": { "version": "0.2.1", "resolved": "https://registry.npmjs.org/resolve-url/-/resolve-url-0.2.1.tgz", - "integrity": "sha1-LGN/53yJOv0qZj/iGqkIAGjiBSo=" + "integrity": "sha1-LGN/53yJOv0qZj/iGqkIAGjiBSo=", + "dev": true + }, + "resolve-url-loader": { + "version": "2.3.2", + "resolved": "https://registry.npmjs.org/resolve-url-loader/-/resolve-url-loader-2.3.2.tgz", + "integrity": "sha512-sc/UVgiADdoTc+4cGPB7cUCnlEkzlxD1NXHw4oa9qA0fp30H8mAQ2ePJBP9MQ029DUuhEPouhNdvzT37pBCV0g==", + "dev": true, + "requires": { + "adjust-sourcemap-loader": "^1.1.0", + "camelcase": "^4.1.0", + "convert-source-map": "^1.5.1", + "loader-utils": "^1.1.0", + "lodash.defaults": "^4.0.0", + "rework": "^1.0.1", + "rework-visit": "^1.0.0", + "source-map": "^0.5.7", + "urix": "^0.1.0" + }, + "dependencies": { + "camelcase": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/camelcase/-/camelcase-4.1.0.tgz", + "integrity": "sha1-1UVjW+HjPFQmScaRc+Xeas+uNN0=", + "dev": true + } + } }, "ret": { "version": "0.1.15", "resolved": "https://registry.npmjs.org/ret/-/ret-0.1.15.tgz", - "integrity": "sha512-TTlYpa+OL+vMMNG24xSlQGEJ3B/RzEfUlLct7b5G/ytav+wPrplCpVMFuwzXbkecJrb6IYo1iFb0S9v37754mg==" + "integrity": "sha512-TTlYpa+OL+vMMNG24xSlQGEJ3B/RzEfUlLct7b5G/ytav+wPrplCpVMFuwzXbkecJrb6IYo1iFb0S9v37754mg==", + "dev": true }, "retry": { "version": "0.12.0", "resolved": "https://registry.npmjs.org/retry/-/retry-0.12.0.tgz", - "integrity": "sha1-G0KmJmoh8HQh0bC1S33BZ7AcATs=" + "integrity": "sha1-G0KmJmoh8HQh0bC1S33BZ7AcATs=", + "dev": true + }, + "rework": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/rework/-/rework-1.0.1.tgz", + "integrity": "sha1-MIBqhBNCtUUQqkEQhQzUhTQUSqc=", + "dev": true, + "requires": { + "convert-source-map": "^0.3.3", + "css": "^2.0.0" + }, + "dependencies": { + "convert-source-map": { + "version": "0.3.5", + "resolved": "https://registry.npmjs.org/convert-source-map/-/convert-source-map-0.3.5.tgz", + "integrity": "sha1-8dgClQr33SYxof6+BZZVDIarMZA=", + "dev": true + } + } + }, + "rework-visit": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/rework-visit/-/rework-visit-1.0.0.tgz", + "integrity": "sha1-mUWygD8hni96ygCtuLyfZA+ELJo=", + "dev": true }, "rgb-regex": { "version": "1.0.1", "resolved": "https://registry.npmjs.org/rgb-regex/-/rgb-regex-1.0.1.tgz", - "integrity": "sha1-wODWiC3w4jviVKR16O3UGRX+rrE=" + "integrity": "sha1-wODWiC3w4jviVKR16O3UGRX+rrE=", + "dev": true }, "rgba-regex": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/rgba-regex/-/rgba-regex-1.0.0.tgz", - "integrity": "sha1-QzdOLiyglosO8VI0YLfXMP8i7rM=" + "integrity": "sha1-QzdOLiyglosO8VI0YLfXMP8i7rM=", + "dev": true }, "rimraf": { "version": "2.7.1", "resolved": "https://registry.npmjs.org/rimraf/-/rimraf-2.7.1.tgz", "integrity": "sha512-uWjbaKIK3T1OSVptzX7Nl6PvQ3qAGtKEtVRjRuazjfL3Bx5eI409VZSqgND+4UNnmzLVdPj9FqFJNPqBZFve4w==", + "dev": true, "requires": { "glob": "^7.1.3" } @@ -6612,6 +8481,7 @@ "version": "2.0.2", "resolved": "https://registry.npmjs.org/ripemd160/-/ripemd160-2.0.2.tgz", "integrity": "sha512-ii4iagi25WusVoiC4B4lq7pbXfAp3D9v5CwfkY33vffw2+pkDjY1D8GaN7spsxvCSx8dkPqOZCEZyfxcmJG2IA==", + "dev": true, "requires": { "hash-base": "^3.0.0", "inherits": "^2.0.1" @@ -6621,6 +8491,7 @@ "version": "1.0.3", "resolved": "https://registry.npmjs.org/run-queue/-/run-queue-1.0.3.tgz", "integrity": "sha1-6Eg5bwV9Ij8kOGkkYY4laUFh7Ec=", + "dev": true, "requires": { "aproba": "^1.1.1" } @@ -6628,12 +8499,14 @@ "safe-buffer": { "version": "5.1.2", "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.1.2.tgz", - "integrity": "sha512-Gd2UZBJDkXlY7GbJxfsE8/nvKkUEU1G38c1siN6QP6a9PT9MmHB8GnpscSmMJSoF8LOIrt8ud/wPtojys4G6+g==" + "integrity": "sha512-Gd2UZBJDkXlY7GbJxfsE8/nvKkUEU1G38c1siN6QP6a9PT9MmHB8GnpscSmMJSoF8LOIrt8ud/wPtojys4G6+g==", + "dev": true }, "safe-regex": { "version": "1.1.0", "resolved": "https://registry.npmjs.org/safe-regex/-/safe-regex-1.1.0.tgz", "integrity": "sha1-QKNmnzsHfR6UPURinhV91IAjvy4=", + "dev": true, "requires": { "ret": "~0.1.10" } @@ -6641,17 +8514,20 @@ "safer-buffer": { "version": "2.1.2", "resolved": "https://registry.npmjs.org/safer-buffer/-/safer-buffer-2.1.2.tgz", - "integrity": "sha512-YZo3K82SD7Riyi0E1EQPojLz7kpepnSQI9IyPbHHg1XXXevb5dJI7tpyN2ADxGcQbHG7vcyRHk0cbwqcQriUtg==" + "integrity": "sha512-YZo3K82SD7Riyi0E1EQPojLz7kpepnSQI9IyPbHHg1XXXevb5dJI7tpyN2ADxGcQbHG7vcyRHk0cbwqcQriUtg==", + "dev": true }, "sax": { "version": "1.2.4", "resolved": "https://registry.npmjs.org/sax/-/sax-1.2.4.tgz", - "integrity": "sha512-NqVDv9TpANUjFm0N8uM5GxL36UgKi9/atZw+x7YFnQ8ckwFGKrl4xX4yWtrey3UJm5nP1kUbnYgLopqWNSRhWw==" + "integrity": "sha512-NqVDv9TpANUjFm0N8uM5GxL36UgKi9/atZw+x7YFnQ8ckwFGKrl4xX4yWtrey3UJm5nP1kUbnYgLopqWNSRhWw==", + "dev": true }, "schema-utils": { "version": "0.4.7", "resolved": "https://registry.npmjs.org/schema-utils/-/schema-utils-0.4.7.tgz", "integrity": "sha512-v/iwU6wvwGK8HbU9yi3/nhGzP0yGSuhQMzL6ySiec1FSrZZDkhm4noOSWzrNFo/jEc+SJY6jRTwuwbSXJPDUnQ==", + "dev": true, "requires": { "ajv": "^6.1.0", "ajv-keywords": "^3.1.0" @@ -6660,25 +8536,29 @@ "select-hose": { "version": "2.0.0", "resolved": "https://registry.npmjs.org/select-hose/-/select-hose-2.0.0.tgz", - "integrity": "sha1-Yl2GWPhlr0Psliv8N2o3NZpJlMo=" + "integrity": "sha1-Yl2GWPhlr0Psliv8N2o3NZpJlMo=", + "dev": true }, "selfsigned": { - "version": "1.10.6", - "resolved": "https://registry.npmjs.org/selfsigned/-/selfsigned-1.10.6.tgz", - "integrity": "sha512-i3+CeqxL7DpAazgVpAGdKMwHuL63B5nhJMh9NQ7xmChGkA3jNFflq6Jyo1LLJYcr3idWiNOPWHCrm4zMayLG4w==", + "version": "1.10.7", + "resolved": "https://registry.npmjs.org/selfsigned/-/selfsigned-1.10.7.tgz", + "integrity": "sha512-8M3wBCzeWIJnQfl43IKwOmC4H/RAp50S8DF60znzjW5GVqTcSe2vWclt7hmYVPkKPlHWOu5EaWOMZ2Y6W8ZXTA==", + "dev": true, "requires": { - "node-forge": "0.8.2" + "node-forge": "0.9.0" } }, "semver": { "version": "5.7.1", "resolved": "https://registry.npmjs.org/semver/-/semver-5.7.1.tgz", - "integrity": "sha512-sauaDf/PZdVgrLTNYHRtpXa1iRiKcaebiKQ1BJdpQlWH2lCvexQdX55snPFyK7QzpudqbCI0qXFfOasHdyNDGQ==" + "integrity": "sha512-sauaDf/PZdVgrLTNYHRtpXa1iRiKcaebiKQ1BJdpQlWH2lCvexQdX55snPFyK7QzpudqbCI0qXFfOasHdyNDGQ==", + "dev": true }, "send": { "version": "0.17.1", "resolved": "https://registry.npmjs.org/send/-/send-0.17.1.tgz", "integrity": "sha512-BsVKsiGcQMFwT8UxypobUKyv7irCNRHk1T0G680vk88yf6LBByGcZJOTJCrTP2xVN6yI+XjPJcNuE3V4fT9sAg==", + "dev": true, "requires": { "debug": "2.6.9", "depd": "~1.1.2", @@ -6699,6 +8579,7 @@ "version": "2.6.9", "resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz", "integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==", + "dev": true, "requires": { "ms": "2.0.0" }, @@ -6706,26 +8587,30 @@ "ms": { "version": "2.0.0", "resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz", - "integrity": "sha1-VgiurfwAvmwpAd9fmGF4jeDVl8g=" + "integrity": "sha1-VgiurfwAvmwpAd9fmGF4jeDVl8g=", + "dev": true } } }, "ms": { "version": "2.1.1", "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.1.tgz", - "integrity": "sha512-tgp+dl5cGk28utYktBsrFqA7HKgrhgPsg6Z/EfhWI4gl1Hwq8B/GmY/0oXZ6nF8hDVesS/FpnYaD/kOWhYQvyg==" + "integrity": "sha512-tgp+dl5cGk28utYktBsrFqA7HKgrhgPsg6Z/EfhWI4gl1Hwq8B/GmY/0oXZ6nF8hDVesS/FpnYaD/kOWhYQvyg==", + "dev": true } } }, "serialize-javascript": { "version": "1.9.1", "resolved": "https://registry.npmjs.org/serialize-javascript/-/serialize-javascript-1.9.1.tgz", - "integrity": "sha512-0Vb/54WJ6k5v8sSWN09S0ora+Hnr+cX40r9F170nT+mSkaxltoE/7R3OrIdBSUv1OoiobH1QoWQbCnAO+e8J1A==" + "integrity": "sha512-0Vb/54WJ6k5v8sSWN09S0ora+Hnr+cX40r9F170nT+mSkaxltoE/7R3OrIdBSUv1OoiobH1QoWQbCnAO+e8J1A==", + "dev": true }, "serve-index": { "version": "1.9.1", "resolved": "https://registry.npmjs.org/serve-index/-/serve-index-1.9.1.tgz", "integrity": "sha1-03aNabHn2C5c4FD/9bRTvqEqkjk=", + "dev": true, "requires": { "accepts": "~1.3.4", "batch": "0.6.1", @@ -6740,6 +8625,7 @@ "version": "2.6.9", "resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz", "integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==", + "dev": true, "requires": { "ms": "2.0.0" } @@ -6748,6 +8634,7 @@ "version": "1.6.3", "resolved": "https://registry.npmjs.org/http-errors/-/http-errors-1.6.3.tgz", "integrity": "sha1-i1VoC7S+KDoLW/TqLjhYC+HZMg0=", + "dev": true, "requires": { "depd": "~1.1.2", "inherits": "2.0.3", @@ -6758,17 +8645,14 @@ "inherits": { "version": "2.0.3", "resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.3.tgz", - "integrity": "sha1-Yzwsg+PaQqUC9SRmAiSA9CCCYd4=" - }, - "ms": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz", - "integrity": "sha1-VgiurfwAvmwpAd9fmGF4jeDVl8g=" + "integrity": "sha1-Yzwsg+PaQqUC9SRmAiSA9CCCYd4=", + "dev": true }, "setprototypeof": { "version": "1.1.0", "resolved": "https://registry.npmjs.org/setprototypeof/-/setprototypeof-1.1.0.tgz", - "integrity": "sha512-BvE/TwpZX4FXExxOxZyRGQQv651MSwmWKZGqvmPcRIjDqWub67kTKuIMx43cZZrS/cBBzwBcNDWoFxt2XEFIpQ==" + "integrity": "sha512-BvE/TwpZX4FXExxOxZyRGQQv651MSwmWKZGqvmPcRIjDqWub67kTKuIMx43cZZrS/cBBzwBcNDWoFxt2XEFIpQ==", + "dev": true } } }, @@ -6776,6 +8660,7 @@ "version": "1.14.1", "resolved": "https://registry.npmjs.org/serve-static/-/serve-static-1.14.1.tgz", "integrity": "sha512-JMrvUwE54emCYWlTI+hGrGv5I8dEwmco/00EvkzIIsR7MqrHonbD9pO2MOfFnpFntl7ecpZs+3mW+XbQZu9QCg==", + "dev": true, "requires": { "encodeurl": "~1.0.2", "escape-html": "~1.0.3", @@ -6786,12 +8671,14 @@ "set-blocking": { "version": "2.0.0", "resolved": "https://registry.npmjs.org/set-blocking/-/set-blocking-2.0.0.tgz", - "integrity": "sha1-BF+XgtARrppoA93TgrJDkrPYkPc=" + "integrity": "sha1-BF+XgtARrppoA93TgrJDkrPYkPc=", + "dev": true }, "set-value": { "version": "2.0.1", "resolved": "https://registry.npmjs.org/set-value/-/set-value-2.0.1.tgz", "integrity": "sha512-JxHc1weCN68wRY0fhCoXpyK55m/XPHafOmK4UWD7m2CI14GMcFypt4w/0+NV5f/ZMby2F6S2wwA7fgynh9gWSw==", + "dev": true, "requires": { "extend-shallow": "^2.0.1", "is-extendable": "^0.1.1", @@ -6803,6 +8690,7 @@ "version": "2.0.1", "resolved": "https://registry.npmjs.org/extend-shallow/-/extend-shallow-2.0.1.tgz", "integrity": "sha1-Ua99YUrZqfYQ6huvu5idaxxWiQ8=", + "dev": true, "requires": { "is-extendable": "^0.1.0" } @@ -6810,33 +8698,50 @@ "is-extendable": { "version": "0.1.1", "resolved": "https://registry.npmjs.org/is-extendable/-/is-extendable-0.1.1.tgz", - "integrity": "sha1-YrEQ4omkcUGOPsNqYX1HLjAd/Ik=" + "integrity": "sha1-YrEQ4omkcUGOPsNqYX1HLjAd/Ik=", + "dev": true } } }, "setimmediate": { "version": "1.0.5", "resolved": "https://registry.npmjs.org/setimmediate/-/setimmediate-1.0.5.tgz", - "integrity": "sha1-KQy7Iy4waULX1+qbg3Mqt4VvgoU=" + "integrity": "sha1-KQy7Iy4waULX1+qbg3Mqt4VvgoU=", + "dev": true }, "setprototypeof": { "version": "1.1.1", "resolved": "https://registry.npmjs.org/setprototypeof/-/setprototypeof-1.1.1.tgz", - "integrity": "sha512-JvdAWfbXeIGaZ9cILp38HntZSFSo3mWg6xGcJJsd+d4aRMOqauag1C63dJfDw7OaMYwEbHMOxEZ1lqVRYP2OAw==" + "integrity": "sha512-JvdAWfbXeIGaZ9cILp38HntZSFSo3mWg6xGcJJsd+d4aRMOqauag1C63dJfDw7OaMYwEbHMOxEZ1lqVRYP2OAw==", + "dev": true }, "sha.js": { "version": "2.4.11", "resolved": "https://registry.npmjs.org/sha.js/-/sha.js-2.4.11.tgz", "integrity": "sha512-QMEp5B7cftE7APOjk5Y6xgrbWu+WkLVQwk8JNjZ8nKRciZaByEW6MubieAiToS7+dwvrjGhH8jRXz3MVd0AYqQ==", + "dev": true, "requires": { "inherits": "^2.0.1", "safe-buffer": "^5.0.1" } }, + "shallow-equal": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/shallow-equal/-/shallow-equal-1.2.0.tgz", + "integrity": "sha512-Z21pVxR4cXsfwpMKMhCEIO1PCi5sp7KEp+CmOpBQ+E8GpHwKOw2sEzk7sgblM3d/j4z4gakoWEoPcjK0VJQogA==", + "dev": true + }, + "shallowequal": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/shallowequal/-/shallowequal-1.1.0.tgz", + "integrity": "sha512-y0m1JoUZSlPAjXVtPPW70aZWfIL/dSP7AFkRnniLCrK/8MDKog3TySTBmckD+RObVxH0v4Tox67+F14PdED2oQ==", + "dev": true + }, "shebang-command": { "version": "1.2.0", "resolved": "https://registry.npmjs.org/shebang-command/-/shebang-command-1.2.0.tgz", "integrity": "sha1-RKrGW2lbAzmJaMOfNj/uXer98eo=", + "dev": true, "requires": { "shebang-regex": "^1.0.0" } @@ -6844,22 +8749,26 @@ "shebang-regex": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/shebang-regex/-/shebang-regex-1.0.0.tgz", - "integrity": "sha1-2kL0l0DAtC2yypcoVxyxkMmO/qM=" + "integrity": "sha1-2kL0l0DAtC2yypcoVxyxkMmO/qM=", + "dev": true }, "shellwords": { "version": "0.1.1", "resolved": "https://registry.npmjs.org/shellwords/-/shellwords-0.1.1.tgz", - "integrity": "sha512-vFwSUfQvqybiICwZY5+DAWIPLKsWO31Q91JSKl3UYv+K5c2QRPzn0qzec6QPu1Qc9eHYItiP3NdJqNVqetYAww==" + "integrity": "sha512-vFwSUfQvqybiICwZY5+DAWIPLKsWO31Q91JSKl3UYv+K5c2QRPzn0qzec6QPu1Qc9eHYItiP3NdJqNVqetYAww==", + "dev": true }, "signal-exit": { "version": "3.0.2", "resolved": "https://registry.npmjs.org/signal-exit/-/signal-exit-3.0.2.tgz", - "integrity": "sha1-tf3AjxKH6hF4Yo5BXiUTK3NkbG0=" + "integrity": "sha1-tf3AjxKH6hF4Yo5BXiUTK3NkbG0=", + "dev": true }, "simple-swizzle": { "version": "0.2.2", "resolved": "https://registry.npmjs.org/simple-swizzle/-/simple-swizzle-0.2.2.tgz", "integrity": "sha1-pNprY1/8zMoz9w0Xy5JZLeleVXo=", + "dev": true, "requires": { "is-arrayish": "^0.3.1" }, @@ -6867,19 +8776,22 @@ "is-arrayish": { "version": "0.3.2", "resolved": "https://registry.npmjs.org/is-arrayish/-/is-arrayish-0.3.2.tgz", - "integrity": "sha512-eVRqCvVlZbuw3GrM63ovNSNAeA1K16kaR/LRY/92w0zxQ5/1YzwblUX652i4Xs9RwAGjW9d9y6X88t8OaAJfWQ==" + "integrity": "sha512-eVRqCvVlZbuw3GrM63ovNSNAeA1K16kaR/LRY/92w0zxQ5/1YzwblUX652i4Xs9RwAGjW9d9y6X88t8OaAJfWQ==", + "dev": true } } }, "slash": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/slash/-/slash-1.0.0.tgz", - "integrity": "sha1-xB8vbDn8FtHNF61LXYlhFK5HDVU=" + "integrity": "sha1-xB8vbDn8FtHNF61LXYlhFK5HDVU=", + "dev": true }, "snapdragon": { "version": "0.8.2", "resolved": "https://registry.npmjs.org/snapdragon/-/snapdragon-0.8.2.tgz", "integrity": "sha512-FtyOnWN/wCHTVXOMwvSv26d+ko5vWlIDD6zoUJ7LW8vh+ZBC8QdljveRP+crNrtBwioEUWy/4dMtbBjA4ioNlg==", + "dev": true, "requires": { "base": "^0.11.1", "debug": "^2.2.0", @@ -6895,6 +8807,7 @@ "version": "2.6.9", "resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz", "integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==", + "dev": true, "requires": { "ms": "2.0.0" } @@ -6903,6 +8816,7 @@ "version": "0.2.5", "resolved": "https://registry.npmjs.org/define-property/-/define-property-0.2.5.tgz", "integrity": "sha1-w1se+RjsPJkPmlvFe+BKrOxcgRY=", + "dev": true, "requires": { "is-descriptor": "^0.1.0" } @@ -6911,6 +8825,7 @@ "version": "2.0.1", "resolved": "https://registry.npmjs.org/extend-shallow/-/extend-shallow-2.0.1.tgz", "integrity": "sha1-Ua99YUrZqfYQ6huvu5idaxxWiQ8=", + "dev": true, "requires": { "is-extendable": "^0.1.0" } @@ -6918,12 +8833,8 @@ "is-extendable": { "version": "0.1.1", "resolved": "https://registry.npmjs.org/is-extendable/-/is-extendable-0.1.1.tgz", - "integrity": "sha1-YrEQ4omkcUGOPsNqYX1HLjAd/Ik=" - }, - "ms": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz", - "integrity": "sha1-VgiurfwAvmwpAd9fmGF4jeDVl8g=" + "integrity": "sha1-YrEQ4omkcUGOPsNqYX1HLjAd/Ik=", + "dev": true } } }, @@ -6931,6 +8842,7 @@ "version": "2.1.1", "resolved": "https://registry.npmjs.org/snapdragon-node/-/snapdragon-node-2.1.1.tgz", "integrity": "sha512-O27l4xaMYt/RSQ5TR3vpWCAB5Kb/czIcqUFOM/C4fYcLnbZUc1PkjTAMjof2pBWaSTwOUd6qUHcFGVGj7aIwnw==", + "dev": true, "requires": { "define-property": "^1.0.0", "isobject": "^3.0.0", @@ -6941,6 +8853,7 @@ "version": "1.0.0", "resolved": "https://registry.npmjs.org/define-property/-/define-property-1.0.0.tgz", "integrity": "sha1-dp66rz9KY6rTr56NMEybvnm/sOY=", + "dev": true, "requires": { "is-descriptor": "^1.0.0" } @@ -6949,6 +8862,7 @@ "version": "1.0.0", "resolved": "https://registry.npmjs.org/is-accessor-descriptor/-/is-accessor-descriptor-1.0.0.tgz", "integrity": "sha512-m5hnHTkcVsPfqx3AKlyttIPb7J+XykHvJP2B9bZDjlhLIoEq4XoK64Vg7boZlVWYK6LUY94dYPEE7Lh0ZkZKcQ==", + "dev": true, "requires": { "kind-of": "^6.0.0" } @@ -6957,6 +8871,7 @@ "version": "1.0.0", "resolved": "https://registry.npmjs.org/is-data-descriptor/-/is-data-descriptor-1.0.0.tgz", "integrity": "sha512-jbRXy1FmtAoCjQkVmIVYwuuqDFUbaOeDjmed1tOGPrsMhtJA4rD9tkgA0F1qJ3gRFRXcHYVkdeaP50Q5rE/jLQ==", + "dev": true, "requires": { "kind-of": "^6.0.0" } @@ -6965,6 +8880,7 @@ "version": "1.0.2", "resolved": "https://registry.npmjs.org/is-descriptor/-/is-descriptor-1.0.2.tgz", "integrity": "sha512-2eis5WqQGV7peooDyLmNEPUrps9+SXX5c9pL3xEB+4e9HnGuDa7mB7kHxHw4CbqS9k1T2hOH3miL8n8WtiYVtg==", + "dev": true, "requires": { "is-accessor-descriptor": "^1.0.0", "is-data-descriptor": "^1.0.0", @@ -6977,14 +8893,22 @@ "version": "3.0.1", "resolved": "https://registry.npmjs.org/snapdragon-util/-/snapdragon-util-3.0.1.tgz", "integrity": "sha512-mbKkMdQKsjX4BAL4bRYTj21edOf8cN7XHdYUJEe+Zn99hVEYcMvKPct1IqNe7+AZPirn8BCDOQBHQZknqmKlZQ==", + "dev": true, "requires": { "kind-of": "^3.2.0" }, "dependencies": { + "is-buffer": { + "version": "1.1.6", + "resolved": "https://registry.npmjs.org/is-buffer/-/is-buffer-1.1.6.tgz", + "integrity": "sha512-NcdALwpXkTm5Zvvbk7owOUSvVvBKDgKP5/ewfXEznmQFfs4ZRmanOeKBTjRVjka3QFoN6XJ+9F3USqfHqTaU5w==", + "dev": true + }, "kind-of": { "version": "3.2.2", "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-3.2.2.tgz", "integrity": "sha1-MeohpzS6ubuw8yRm2JOupR5KPGQ=", + "dev": true, "requires": { "is-buffer": "^1.1.5" } @@ -6995,6 +8919,7 @@ "version": "0.3.19", "resolved": "https://registry.npmjs.org/sockjs/-/sockjs-0.3.19.tgz", "integrity": "sha512-V48klKZl8T6MzatbLlzzRNhMepEys9Y4oGFpypBFFn1gLI/QQ9HtLLyWJNbPlwGLelOVOEijUbTTJeLLI59jLw==", + "dev": true, "requires": { "faye-websocket": "^0.10.0", "uuid": "^3.0.1" @@ -7004,6 +8929,7 @@ "version": "1.4.0", "resolved": "https://registry.npmjs.org/sockjs-client/-/sockjs-client-1.4.0.tgz", "integrity": "sha512-5zaLyO8/nri5cua0VtOrFXBPK1jbL4+1cebT/mmKA1E1ZXOvJrII75bPu0l0k843G/+iAbhEqzyKr0w/eCCj7g==", + "dev": true, "requires": { "debug": "^3.2.5", "eventsource": "^1.0.7", @@ -7017,6 +8943,7 @@ "version": "3.2.6", "resolved": "https://registry.npmjs.org/debug/-/debug-3.2.6.tgz", "integrity": "sha512-mel+jf7nrtEl5Pn1Qx46zARXKDpBbvzezse7p7LqINmdoIk8PYP5SySaxEmYv6TZ0JyEKA1hsCId6DIhgITtWQ==", + "dev": true, "requires": { "ms": "^2.1.1" } @@ -7025,26 +8952,36 @@ "version": "0.11.3", "resolved": "https://registry.npmjs.org/faye-websocket/-/faye-websocket-0.11.3.tgz", "integrity": "sha512-D2y4bovYpzziGgbHYtGCMjlJM36vAl/y+xUyn1C+FVx8szd1E+86KwVw6XvYSzOP8iMpm1X0I4xJD+QtUb36OA==", + "dev": true, "requires": { "websocket-driver": ">=0.5.1" } + }, + "ms": { + "version": "2.1.2", + "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.2.tgz", + "integrity": "sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w==", + "dev": true } } }, "source-list-map": { "version": "2.0.1", "resolved": "https://registry.npmjs.org/source-list-map/-/source-list-map-2.0.1.tgz", - "integrity": "sha512-qnQ7gVMxGNxsiL4lEuJwe/To8UnK7fAnmbGEEH8RpLouuKbeEm0lhbQVFIrNSuB+G7tVrAlVsZgETT5nljf+Iw==" + "integrity": "sha512-qnQ7gVMxGNxsiL4lEuJwe/To8UnK7fAnmbGEEH8RpLouuKbeEm0lhbQVFIrNSuB+G7tVrAlVsZgETT5nljf+Iw==", + "dev": true }, "source-map": { "version": "0.5.7", "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.5.7.tgz", - "integrity": "sha1-igOdLRAh0i0eoUyA2OpGi6LvP8w=" + "integrity": "sha1-igOdLRAh0i0eoUyA2OpGi6LvP8w=", + "dev": true }, "source-map-resolve": { "version": "0.5.2", "resolved": "https://registry.npmjs.org/source-map-resolve/-/source-map-resolve-0.5.2.tgz", "integrity": "sha512-MjqsvNwyz1s0k81Goz/9vRBe9SZdB09Bdw+/zYyO+3CuPk6fouTaxscHkgtE8jKvf01kVfl8riHzERQ/kefaSA==", + "dev": true, "requires": { "atob": "^2.1.1", "decode-uri-component": "^0.2.0", @@ -7054,9 +8991,10 @@ } }, "source-map-support": { - "version": "0.5.13", - "resolved": "https://registry.npmjs.org/source-map-support/-/source-map-support-0.5.13.tgz", - "integrity": "sha512-SHSKFHadjVA5oR4PPqhtAVdcBWwRYVd6g6cAXnIbRiIwc2EhPrTuKUBdSLvlEKyIP3GCf89fltvcZiP9MMFA1w==", + "version": "0.5.16", + "resolved": "https://registry.npmjs.org/source-map-support/-/source-map-support-0.5.16.tgz", + "integrity": "sha512-efyLRJDr68D9hBBNIPWFjhpFzURh+KJykQwvMyW5UiZzYwoF6l4YMMDIJJEyFWxWCqfyxLzz6tSfUFR+kXXsVQ==", + "dev": true, "requires": { "buffer-from": "^1.0.0", "source-map": "^0.6.0" @@ -7065,31 +9003,52 @@ "source-map": { "version": "0.6.1", "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", - "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==" + "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==", + "dev": true } } }, "source-map-url": { "version": "0.4.0", "resolved": "https://registry.npmjs.org/source-map-url/-/source-map-url-0.4.0.tgz", - "integrity": "sha1-PpNdfd1zYxuXZZlW1VEo6HtQhKM=" + "integrity": "sha1-PpNdfd1zYxuXZZlW1VEo6HtQhKM=", + "dev": true }, "spdy": { "version": "4.0.1", "resolved": "https://registry.npmjs.org/spdy/-/spdy-4.0.1.tgz", "integrity": "sha512-HeZS3PBdMA+sZSu0qwpCxl3DeALD5ASx8pAX0jZdKXSpPWbQ6SYGnlg3BBmYLx5LtiZrmkAZfErCm2oECBcioA==", + "dev": true, "requires": { "debug": "^4.1.0", "handle-thing": "^2.0.0", "http-deceiver": "^1.2.7", "select-hose": "^2.0.0", "spdy-transport": "^3.0.0" + }, + "dependencies": { + "debug": { + "version": "4.1.1", + "resolved": "https://registry.npmjs.org/debug/-/debug-4.1.1.tgz", + "integrity": "sha512-pYAIzeRo8J6KPEaJ0VWOh5Pzkbw/RetuzehGM7QRRX5he4fPHx2rdKMB256ehJCkX+XRQm16eZLqLNS8RSZXZw==", + "dev": true, + "requires": { + "ms": "^2.1.1" + } + }, + "ms": { + "version": "2.1.2", + "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.2.tgz", + "integrity": "sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w==", + "dev": true + } } }, "spdy-transport": { "version": "3.0.0", "resolved": "https://registry.npmjs.org/spdy-transport/-/spdy-transport-3.0.0.tgz", "integrity": "sha512-hsLVFE5SjA6TCisWeJXFKniGGOpBgMLmerfO2aCyCU5s7nJ/rpAepqmFifv/GCbSbueEeAJJnmSQ2rKC/g8Fcw==", + "dev": true, "requires": { "debug": "^4.1.0", "detect-node": "^2.0.4", @@ -7099,10 +9058,26 @@ "wbuf": "^1.7.3" }, "dependencies": { + "debug": { + "version": "4.1.1", + "resolved": "https://registry.npmjs.org/debug/-/debug-4.1.1.tgz", + "integrity": "sha512-pYAIzeRo8J6KPEaJ0VWOh5Pzkbw/RetuzehGM7QRRX5he4fPHx2rdKMB256ehJCkX+XRQm16eZLqLNS8RSZXZw==", + "dev": true, + "requires": { + "ms": "^2.1.1" + } + }, + "ms": { + "version": "2.1.2", + "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.2.tgz", + "integrity": "sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w==", + "dev": true + }, "readable-stream": { "version": "3.4.0", "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-3.4.0.tgz", "integrity": "sha512-jItXPLmrSR8jmTRmRWJXCnGJsfy85mB3Wd/uINMXA65yrnFo0cPClFIUWzo2najVNSl+mx7/4W8ttlLWJe99pQ==", + "dev": true, "requires": { "inherits": "^2.0.3", "string_decoder": "^1.1.1", @@ -7115,6 +9090,7 @@ "version": "3.1.0", "resolved": "https://registry.npmjs.org/split-string/-/split-string-3.1.0.tgz", "integrity": "sha512-NzNVhJDYpwceVVii8/Hu6DKfD2G+NrQHlS/V/qgv763EYudVwEcMQNxd2lh+0VrUByXN/oJkl5grOhYWvQUYiw==", + "dev": true, "requires": { "extend-shallow": "^3.0.0" } @@ -7122,12 +9098,32 @@ "sprintf-js": { "version": "1.0.3", "resolved": "https://registry.npmjs.org/sprintf-js/-/sprintf-js-1.0.3.tgz", - "integrity": "sha1-BOaSb2YolTVPPdAVIDYzuFcpfiw=" + "integrity": "sha1-BOaSb2YolTVPPdAVIDYzuFcpfiw=", + "dev": true + }, + "sshpk": { + "version": "1.16.1", + "resolved": "https://registry.npmjs.org/sshpk/-/sshpk-1.16.1.tgz", + "integrity": "sha512-HXXqVUq7+pcKeLqqZj6mHFUMvXtOJt1uoUx09pFW6011inTMxqI8BA8PM95myrIyyKwdnzjdFjLiE6KBPVtJIg==", + "dev": true, + "optional": true, + "requires": { + "asn1": "~0.2.3", + "assert-plus": "^1.0.0", + "bcrypt-pbkdf": "^1.0.0", + "dashdash": "^1.12.0", + "ecc-jsbn": "~0.1.1", + "getpass": "^0.1.1", + "jsbn": "~0.1.0", + "safer-buffer": "^2.0.2", + "tweetnacl": "~0.14.0" + } }, "ssri": { "version": "6.0.1", "resolved": "https://registry.npmjs.org/ssri/-/ssri-6.0.1.tgz", "integrity": "sha512-3Wge10hNcT1Kur4PDFwEieXSCMCJs/7WvSACcrMYrNp+b8kDL1/0wJch5Ni2WrtwEa2IO8OsVfeKIciKCDx/QA==", + "dev": true, "requires": { "figgy-pudding": "^3.5.1" } @@ -7135,17 +9131,20 @@ "stable": { "version": "0.1.8", "resolved": "https://registry.npmjs.org/stable/-/stable-0.1.8.tgz", - "integrity": "sha512-ji9qxRnOVfcuLDySj9qzhGSEFVobyt1kIOSkj1qZzYLzq7Tos/oUUWvotUPQLlrsidqsK6tBH89Bc9kL5zHA6w==" + "integrity": "sha512-ji9qxRnOVfcuLDySj9qzhGSEFVobyt1kIOSkj1qZzYLzq7Tos/oUUWvotUPQLlrsidqsK6tBH89Bc9kL5zHA6w==", + "dev": true }, "stackframe": { "version": "1.1.0", "resolved": "https://registry.npmjs.org/stackframe/-/stackframe-1.1.0.tgz", - "integrity": "sha512-Vx6W1Yvy+AM1R/ckVwcHQHV147pTPBKWCRLrXMuPrFVfvBUc3os7PR1QLIWCMhPpRg5eX9ojzbQIMLGBwyLjqg==" + "integrity": "sha512-Vx6W1Yvy+AM1R/ckVwcHQHV147pTPBKWCRLrXMuPrFVfvBUc3os7PR1QLIWCMhPpRg5eX9ojzbQIMLGBwyLjqg==", + "dev": true }, "static-extend": { "version": "0.1.2", "resolved": "https://registry.npmjs.org/static-extend/-/static-extend-0.1.2.tgz", "integrity": "sha1-YICcOcv/VTNyJv1eC1IPNB8ftcY=", + "dev": true, "requires": { "define-property": "^0.2.5", "object-copy": "^0.1.0" @@ -7155,6 +9154,7 @@ "version": "0.2.5", "resolved": "https://registry.npmjs.org/define-property/-/define-property-0.2.5.tgz", "integrity": "sha1-w1se+RjsPJkPmlvFe+BKrOxcgRY=", + "dev": true, "requires": { "is-descriptor": "^0.1.0" } @@ -7164,12 +9164,14 @@ "statuses": { "version": "1.5.0", "resolved": "https://registry.npmjs.org/statuses/-/statuses-1.5.0.tgz", - "integrity": "sha1-Fhx9rBd2Wf2YEfQ3cfqZOBR4Yow=" + "integrity": "sha1-Fhx9rBd2Wf2YEfQ3cfqZOBR4Yow=", + "dev": true }, "stream-browserify": { "version": "2.0.2", "resolved": "https://registry.npmjs.org/stream-browserify/-/stream-browserify-2.0.2.tgz", "integrity": "sha512-nX6hmklHs/gr2FuxYDltq8fJA1GDlxKQCz8O/IM4atRqBH8OORmBNgfvW5gG10GT/qQ9u0CzIvr2X5Pkt6ntqg==", + "dev": true, "requires": { "inherits": "~2.0.1", "readable-stream": "^2.0.2" @@ -7179,6 +9181,7 @@ "version": "1.2.3", "resolved": "https://registry.npmjs.org/stream-each/-/stream-each-1.2.3.tgz", "integrity": "sha512-vlMC2f8I2u/bZGqkdfLQW/13Zihpej/7PmSiMQsbYddxuTsJp8vRe2x2FvVExZg7FaOds43ROAuFJwPR4MTZLw==", + "dev": true, "requires": { "end-of-stream": "^1.1.0", "stream-shift": "^1.0.0" @@ -7188,6 +9191,7 @@ "version": "2.8.3", "resolved": "https://registry.npmjs.org/stream-http/-/stream-http-2.8.3.tgz", "integrity": "sha512-+TSkfINHDo4J+ZobQLWiMouQYB+UVYFttRA94FpEzzJ7ZdqcL4uUUQ7WkdkI4DSozGmgBUE/a47L+38PenXhUw==", + "dev": true, "requires": { "builtin-status-codes": "^3.0.0", "inherits": "^2.0.1", @@ -7199,12 +9203,20 @@ "stream-shift": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/stream-shift/-/stream-shift-1.0.0.tgz", - "integrity": "sha1-1cdSgl5TZ+eG944Y5EXqIjoVWVI=" + "integrity": "sha1-1cdSgl5TZ+eG944Y5EXqIjoVWVI=", + "dev": true + }, + "string-convert": { + "version": "0.2.1", + "resolved": "https://registry.npmjs.org/string-convert/-/string-convert-0.2.1.tgz", + "integrity": "sha1-aYLMMEn7tM2F+LJFaLnZvznu/5c=", + "dev": true }, "string-width": { "version": "2.1.1", "resolved": "https://registry.npmjs.org/string-width/-/string-width-2.1.1.tgz", "integrity": "sha512-nOqH59deCq9SRHlxq1Aw85Jnt4w6KvLKqWVik6oA9ZklXLNIOlqg4F2yrT1MVaTjAqvVwdfeZ7w7aCvJD7ugkw==", + "dev": true, "requires": { "is-fullwidth-code-point": "^2.0.0", "strip-ansi": "^4.0.0" @@ -7213,12 +9225,14 @@ "ansi-regex": { "version": "3.0.0", "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-3.0.0.tgz", - "integrity": "sha1-7QMXwyIGT3lGbAKWa922Bas32Zg=" + "integrity": "sha1-7QMXwyIGT3lGbAKWa922Bas32Zg=", + "dev": true }, "strip-ansi": { "version": "4.0.0", "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-4.0.0.tgz", "integrity": "sha1-qEeQIusaw2iocTibY1JixQXuNo8=", + "dev": true, "requires": { "ansi-regex": "^3.0.0" } @@ -7229,6 +9243,7 @@ "version": "2.1.0", "resolved": "https://registry.npmjs.org/string.prototype.trimleft/-/string.prototype.trimleft-2.1.0.tgz", "integrity": "sha512-FJ6b7EgdKxxbDxc79cOlok6Afd++TTs5szo+zJTUyow3ycrRfJVE2pq3vcN53XexvKZu/DJMDfeI/qMiZTrjTw==", + "dev": true, "requires": { "define-properties": "^1.1.3", "function-bind": "^1.1.1" @@ -7238,6 +9253,7 @@ "version": "2.1.0", "resolved": "https://registry.npmjs.org/string.prototype.trimright/-/string.prototype.trimright-2.1.0.tgz", "integrity": "sha512-fXZTSV55dNBwv16uw+hh5jkghxSnc5oHq+5K/gXgizHwAvMetdAJlHqqoFC1FSDVPYWLkAKl2cxpUT41sV7nSg==", + "dev": true, "requires": { "define-properties": "^1.1.3", "function-bind": "^1.1.1" @@ -7247,6 +9263,7 @@ "version": "1.1.1", "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-1.1.1.tgz", "integrity": "sha512-n/ShnvDi6FHbbVfviro+WojiFzv+s8MPMHBczVePfUpDJLwoLT0ht1l4YwBCbi8pJAveEEdnkHyPyTP/mzRfwg==", + "dev": true, "requires": { "safe-buffer": "~5.1.0" } @@ -7255,6 +9272,7 @@ "version": "3.0.1", "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-3.0.1.tgz", "integrity": "sha1-ajhfuIU9lS1f8F0Oiq+UJ43GPc8=", + "dev": true, "requires": { "ansi-regex": "^2.0.0" } @@ -7262,12 +9280,14 @@ "strip-eof": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/strip-eof/-/strip-eof-1.0.0.tgz", - "integrity": "sha1-u0P/VZim6wXYm1n80SnJgzE2Br8=" + "integrity": "sha1-u0P/VZim6wXYm1n80SnJgzE2Br8=", + "dev": true }, "style-loader": { "version": "0.23.1", "resolved": "https://registry.npmjs.org/style-loader/-/style-loader-0.23.1.tgz", "integrity": "sha512-XK+uv9kWwhZMZ1y7mysB+zoihsEj4wneFWAS5qoiLwzW0WzSqMrrsIy+a3zkQJq0ipFtBpX5W3MqyRIBF/WFGg==", + "dev": true, "requires": { "loader-utils": "^1.1.0", "schema-utils": "^1.0.0" @@ -7277,6 +9297,7 @@ "version": "1.0.0", "resolved": "https://registry.npmjs.org/schema-utils/-/schema-utils-1.0.0.tgz", "integrity": "sha512-i27Mic4KovM/lnGsy8whRCHhc7VicJajAjTrYg11K9zfZXnYIt4k5F+kZkwjnrhKzLic/HLU4j11mjsz2G/75g==", + "dev": true, "requires": { "ajv": "^6.1.0", "ajv-errors": "^1.0.0", @@ -7289,6 +9310,7 @@ "version": "4.0.3", "resolved": "https://registry.npmjs.org/stylehacks/-/stylehacks-4.0.3.tgz", "integrity": "sha512-7GlLk9JwlElY4Y6a/rmbH2MhVlTyVmiJd1PfTCqFaIBEGMYNsrO/v3SeGTdhBThLg4Z+NbOk/qFMwCa+J+3p/g==", + "dev": true, "requires": { "browserslist": "^4.0.0", "postcss": "^7.0.0", @@ -7299,6 +9321,7 @@ "version": "3.1.1", "resolved": "https://registry.npmjs.org/postcss-selector-parser/-/postcss-selector-parser-3.1.1.tgz", "integrity": "sha1-T4dfSvsMllc9XPTXQBGu4lCn6GU=", + "dev": true, "requires": { "dot-prop": "^4.1.1", "indexes-of": "^1.0.1", @@ -7311,21 +9334,23 @@ "version": "5.5.0", "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-5.5.0.tgz", "integrity": "sha512-QjVjwdXIt408MIiAqCX4oUKsgU2EqAGzs2Ppkm4aQYbjm+ZEWEcW4SfFNTr4uMNZma0ey4f5lgLrkB0aX0QMow==", + "dev": true, "requires": { "has-flag": "^3.0.0" } }, "svgo": { - "version": "1.3.0", - "resolved": "https://registry.npmjs.org/svgo/-/svgo-1.3.0.tgz", - "integrity": "sha512-MLfUA6O+qauLDbym+mMZgtXCGRfIxyQoeH6IKVcFslyODEe/ElJNwr0FohQ3xG4C6HK6bk3KYPPXwHVJk3V5NQ==", + "version": "1.3.2", + "resolved": "https://registry.npmjs.org/svgo/-/svgo-1.3.2.tgz", + "integrity": "sha512-yhy/sQYxR5BkC98CY7o31VGsg014AKLEPxdfhora76l36hD9Rdy5NZA/Ocn6yayNPgSamYdtX2rFJdcv07AYVw==", + "dev": true, "requires": { "chalk": "^2.4.1", "coa": "^2.0.2", "css-select": "^2.0.0", "css-select-base-adapter": "^0.1.1", - "css-tree": "1.0.0-alpha.33", - "csso": "^3.5.1", + "css-tree": "1.0.0-alpha.37", + "csso": "^4.0.2", "js-yaml": "^3.13.1", "mkdirp": "~0.5.1", "object.values": "^1.1.0", @@ -7335,15 +9360,23 @@ "util.promisify": "~1.0.0" } }, + "symbol-observable": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/symbol-observable/-/symbol-observable-1.2.0.tgz", + "integrity": "sha512-e900nM8RRtGhlV36KGEU9k65K3mPb1WV70OdjfxlG2EAuM1noi/E/BaW/uMhL7bPEssK8QV57vN3esixjUvcXQ==", + "dev": true + }, "tapable": { "version": "1.1.3", "resolved": "https://registry.npmjs.org/tapable/-/tapable-1.1.3.tgz", - "integrity": "sha512-4WK/bYZmj8xLr+HUCODHGF1ZFzsYffasLUgEiMBY4fgtltdO6B4WJtlSbPaDTLpYTcGVwM2qLnFTICEcNxs3kA==" + "integrity": "sha512-4WK/bYZmj8xLr+HUCODHGF1ZFzsYffasLUgEiMBY4fgtltdO6B4WJtlSbPaDTLpYTcGVwM2qLnFTICEcNxs3kA==", + "dev": true }, "terser": { "version": "3.17.0", "resolved": "https://registry.npmjs.org/terser/-/terser-3.17.0.tgz", "integrity": "sha512-/FQzzPJmCpjAH9Xvk2paiWrFq+5M6aVOf+2KRbwhByISDX/EujxsK+BAvrhb6H+2rtrLCHK9N01wO014vrIwVQ==", + "dev": true, "requires": { "commander": "^2.19.0", "source-map": "~0.6.1", @@ -7351,14 +9384,16 @@ }, "dependencies": { "commander": { - "version": "2.20.0", - "resolved": "https://registry.npmjs.org/commander/-/commander-2.20.0.tgz", - "integrity": "sha512-7j2y+40w61zy6YC2iRNpUe/NwhNyoXrYpHMrSunaMG64nRnaf96zO/KMQR4OyN/UnE5KLyEBnKHd4aG3rskjpQ==" + "version": "2.20.3", + "resolved": "https://registry.npmjs.org/commander/-/commander-2.20.3.tgz", + "integrity": "sha512-GpVkmM8vF2vQUkj2LvZmD35JxeJOLCwJ9cUkugyk2nuhbv3+mJvpLYYt+0+USMxE+oj+ey/lJEnhZw75x/OMcQ==", + "dev": true }, "source-map": { "version": "0.6.1", "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", - "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==" + "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==", + "dev": true } } }, @@ -7366,6 +9401,7 @@ "version": "1.4.1", "resolved": "https://registry.npmjs.org/terser-webpack-plugin/-/terser-webpack-plugin-1.4.1.tgz", "integrity": "sha512-ZXmmfiwtCLfz8WKZyYUuuHf3dMYEjg8NrjHMb0JqHVHVOSkzp3cW2/XG1fP3tRhqEqSzMwzzRQGtAPbs4Cncxg==", + "dev": true, "requires": { "cacache": "^12.0.2", "find-cache-dir": "^2.1.0", @@ -7379,14 +9415,16 @@ }, "dependencies": { "commander": { - "version": "2.20.0", - "resolved": "https://registry.npmjs.org/commander/-/commander-2.20.0.tgz", - "integrity": "sha512-7j2y+40w61zy6YC2iRNpUe/NwhNyoXrYpHMrSunaMG64nRnaf96zO/KMQR4OyN/UnE5KLyEBnKHd4aG3rskjpQ==" + "version": "2.20.3", + "resolved": "https://registry.npmjs.org/commander/-/commander-2.20.3.tgz", + "integrity": "sha512-GpVkmM8vF2vQUkj2LvZmD35JxeJOLCwJ9cUkugyk2nuhbv3+mJvpLYYt+0+USMxE+oj+ey/lJEnhZw75x/OMcQ==", + "dev": true }, "schema-utils": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/schema-utils/-/schema-utils-1.0.0.tgz", "integrity": "sha512-i27Mic4KovM/lnGsy8whRCHhc7VicJajAjTrYg11K9zfZXnYIt4k5F+kZkwjnrhKzLic/HLU4j11mjsz2G/75g==", + "dev": true, "requires": { "ajv": "^6.1.0", "ajv-errors": "^1.0.0", @@ -7396,12 +9434,14 @@ "source-map": { "version": "0.6.1", "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", - "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==" + "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==", + "dev": true }, "terser": { - "version": "4.3.1", - "resolved": "https://registry.npmjs.org/terser/-/terser-4.3.1.tgz", - "integrity": "sha512-pnzH6dnFEsR2aa2SJaKb1uSCl3QmIsJ8dEkj0Fky+2AwMMcC9doMqLOQIH6wVTEKaVfKVvLSk5qxPBEZT9mywg==", + "version": "4.4.0", + "resolved": "https://registry.npmjs.org/terser/-/terser-4.4.0.tgz", + "integrity": "sha512-oDG16n2WKm27JO8h4y/w3iqBGAOSCtq7k8dRmrn4Wf9NouL0b2WpMHGChFGZq4nFAQy1FsNJrVQHfurXOSTmOA==", + "dev": true, "requires": { "commander": "^2.20.0", "source-map": "~0.6.1", @@ -7410,29 +9450,39 @@ } } }, + "throttle-debounce": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/throttle-debounce/-/throttle-debounce-2.1.0.tgz", + "integrity": "sha512-AOvyNahXQuU7NN+VVvOOX+uW6FPaWdAOdRP5HfwYxAfCzXTFKRMoIMk+n+po318+ktcChx+F1Dd91G3YHeMKyg==", + "dev": true + }, "through": { "version": "2.3.8", "resolved": "https://registry.npmjs.org/through/-/through-2.3.8.tgz", - "integrity": "sha1-DdTJ/6q8NXlgsbckEV1+Doai4fU=" + "integrity": "sha1-DdTJ/6q8NXlgsbckEV1+Doai4fU=", + "dev": true }, "through2": { "version": "2.0.5", "resolved": "https://registry.npmjs.org/through2/-/through2-2.0.5.tgz", "integrity": "sha512-/mrRod8xqpA+IHSLyGCQ2s8SPHiCDEeQJSep1jqLYeEUClOFG2Qsh+4FU6G9VeqpZnGW/Su8LQGc4YKni5rYSQ==", + "dev": true, "requires": { "readable-stream": "~2.3.6", "xtend": "~4.0.1" } }, "thunky": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/thunky/-/thunky-1.0.3.tgz", - "integrity": "sha512-YwT8pjmNcAXBZqrubu22P4FYsh2D4dxRmnWBOL8Jk8bUcRUtc5326kx32tuTmFDAZtLOGEVNl8POAR8j896Iow==" + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/thunky/-/thunky-1.1.0.tgz", + "integrity": "sha512-eHY7nBftgThBqOyHGVN+l8gF0BucP09fMo0oO/Lb0w1OF80dJv+lDVpXG60WMQvkcxAkNybKsrEIE3ZtKGmPrA==", + "dev": true }, "timers-browserify": { "version": "2.0.11", "resolved": "https://registry.npmjs.org/timers-browserify/-/timers-browserify-2.0.11.tgz", "integrity": "sha512-60aV6sgJ5YEbzUdn9c8kYGIqOubPoUdqQCul3SBAsRCZ40s6Y5cMcrW4dt3/k/EsbLVJNl9n6Vz3fTc+k2GeKQ==", + "dev": true, "requires": { "setimmediate": "^1.0.4" } @@ -7440,30 +9490,47 @@ "timsort": { "version": "0.3.0", "resolved": "https://registry.npmjs.org/timsort/-/timsort-0.3.0.tgz", - "integrity": "sha1-QFQRqOfmM5/mTbmiNN4R3DHgK9Q=" + "integrity": "sha1-QFQRqOfmM5/mTbmiNN4R3DHgK9Q=", + "dev": true + }, + "tinycolor2": { + "version": "1.4.1", + "resolved": "https://registry.npmjs.org/tinycolor2/-/tinycolor2-1.4.1.tgz", + "integrity": "sha1-9PrTM0R7wLB9TcjpIJ2POaisd+g=", + "dev": true }, "to-arraybuffer": { "version": "1.0.1", "resolved": "https://registry.npmjs.org/to-arraybuffer/-/to-arraybuffer-1.0.1.tgz", - "integrity": "sha1-fSKbH8xjfkZsoIEYCDanqr/4P0M=" + "integrity": "sha1-fSKbH8xjfkZsoIEYCDanqr/4P0M=", + "dev": true }, "to-fast-properties": { "version": "2.0.0", "resolved": "https://registry.npmjs.org/to-fast-properties/-/to-fast-properties-2.0.0.tgz", - "integrity": "sha1-3F5pjL0HkmW8c+A3doGk5Og/YW4=" + "integrity": "sha1-3F5pjL0HkmW8c+A3doGk5Og/YW4=", + "dev": true }, "to-object-path": { "version": "0.3.0", "resolved": "https://registry.npmjs.org/to-object-path/-/to-object-path-0.3.0.tgz", "integrity": "sha1-KXWIt7Dn4KwI4E5nL4XB9JmeF68=", + "dev": true, "requires": { "kind-of": "^3.0.2" }, "dependencies": { + "is-buffer": { + "version": "1.1.6", + "resolved": "https://registry.npmjs.org/is-buffer/-/is-buffer-1.1.6.tgz", + "integrity": "sha512-NcdALwpXkTm5Zvvbk7owOUSvVvBKDgKP5/ewfXEznmQFfs4ZRmanOeKBTjRVjka3QFoN6XJ+9F3USqfHqTaU5w==", + "dev": true + }, "kind-of": { "version": "3.2.2", "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-3.2.2.tgz", "integrity": "sha1-MeohpzS6ubuw8yRm2JOupR5KPGQ=", + "dev": true, "requires": { "is-buffer": "^1.1.5" } @@ -7474,6 +9541,7 @@ "version": "3.0.2", "resolved": "https://registry.npmjs.org/to-regex/-/to-regex-3.0.2.tgz", "integrity": "sha512-FWtleNAtZ/Ki2qtqej2CXTOayOH9bHDQF+Q48VpWyDXjbYxA4Yz8iDB31zXOBUlOHHKidDbqGVrTUvQMPmBGBw==", + "dev": true, "requires": { "define-property": "^2.0.2", "extend-shallow": "^3.0.2", @@ -7485,6 +9553,7 @@ "version": "2.1.1", "resolved": "https://registry.npmjs.org/to-regex-range/-/to-regex-range-2.1.1.tgz", "integrity": "sha1-fIDBe53+vlmeJzZ+DU3VWQFB2zg=", + "dev": true, "requires": { "is-number": "^3.0.0", "repeat-string": "^1.6.1" @@ -7493,27 +9562,72 @@ "toidentifier": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/toidentifier/-/toidentifier-1.0.0.tgz", - "integrity": "sha512-yaOH/Pk/VEhBWWTlhI+qXxDFXlejDGcQipMlyxda9nthulaxLZUNcUqFxokp0vcYnvteJln5FNQDRrxj3YcbVw==" + "integrity": "sha512-yaOH/Pk/VEhBWWTlhI+qXxDFXlejDGcQipMlyxda9nthulaxLZUNcUqFxokp0vcYnvteJln5FNQDRrxj3YcbVw==", + "dev": true + }, + "tough-cookie": { + "version": "2.4.3", + "resolved": "https://registry.npmjs.org/tough-cookie/-/tough-cookie-2.4.3.tgz", + "integrity": "sha512-Q5srk/4vDM54WJsJio3XNn6K2sCG+CQ8G5Wz6bZhRZoAe/+TxjWB/GlFAnYEbkYVlON9FMk/fE3h2RLpPXo4lQ==", + "dev": true, + "optional": true, + "requires": { + "psl": "^1.1.24", + "punycode": "^1.4.1" + }, + "dependencies": { + "punycode": { + "version": "1.4.1", + "resolved": "https://registry.npmjs.org/punycode/-/punycode-1.4.1.tgz", + "integrity": "sha1-wNWmOycYgArY4esPpSachN1BhF4=", + "dev": true, + "optional": true + } + } }, - "trim-right": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/trim-right/-/trim-right-1.0.1.tgz", - "integrity": "sha1-yy4SAwZ+DI3h9hQJS5/kVwTqYAM=" + "ts-invariant": { + "version": "0.4.4", + "resolved": "https://registry.npmjs.org/ts-invariant/-/ts-invariant-0.4.4.tgz", + "integrity": "sha512-uEtWkFM/sdZvRNNDL3Ehu4WVpwaulhwQszV8mrtcdeE8nN00BV9mAmQ88RkrBhFgl9gMgvjJLAQcZbnPXI9mlA==", + "dev": true, + "requires": { + "tslib": "^1.9.3" + } }, "tslib": { "version": "1.10.0", "resolved": "https://registry.npmjs.org/tslib/-/tslib-1.10.0.tgz", - "integrity": "sha512-qOebF53frne81cf0S9B41ByenJ3/IuH8yJKngAX35CmiZySA0khhkovshKK+jGCaMnVomla7gVlIcc3EvKPbTQ==" + "integrity": "sha512-qOebF53frne81cf0S9B41ByenJ3/IuH8yJKngAX35CmiZySA0khhkovshKK+jGCaMnVomla7gVlIcc3EvKPbTQ==", + "dev": true }, "tty-browserify": { "version": "0.0.0", "resolved": "https://registry.npmjs.org/tty-browserify/-/tty-browserify-0.0.0.tgz", - "integrity": "sha1-oVe6QC2iTpv5V/mqadUk7tQpAaY=" + "integrity": "sha1-oVe6QC2iTpv5V/mqadUk7tQpAaY=", + "dev": true + }, + "tunnel-agent": { + "version": "0.6.0", + "resolved": "https://registry.npmjs.org/tunnel-agent/-/tunnel-agent-0.6.0.tgz", + "integrity": "sha1-J6XeoGs2sEoKmWZ3SykIaPD8QP0=", + "dev": true, + "optional": true, + "requires": { + "safe-buffer": "^5.0.1" + } + }, + "tweetnacl": { + "version": "0.14.5", + "resolved": "https://registry.npmjs.org/tweetnacl/-/tweetnacl-0.14.5.tgz", + "integrity": "sha1-WuaBd/GS1EViadEIr6k/+HQ/T2Q=", + "dev": true, + "optional": true }, "type-is": { "version": "1.6.18", "resolved": "https://registry.npmjs.org/type-is/-/type-is-1.6.18.tgz", "integrity": "sha512-TkRKr9sUTxEH8MdfuCSP7VizJyzRNMjj2J2do2Jr3Kym598JVdEksuzPQCnlFPW4ky9Q+iA+ma9BGm06XQBy8g==", + "dev": true, "requires": { "media-typer": "0.3.0", "mime-types": "~2.1.24" @@ -7522,12 +9636,14 @@ "typedarray": { "version": "0.0.6", "resolved": "https://registry.npmjs.org/typedarray/-/typedarray-0.0.6.tgz", - "integrity": "sha1-hnrHTjhkGHsdPUfZlqeOxciDB3c=" + "integrity": "sha1-hnrHTjhkGHsdPUfZlqeOxciDB3c=", + "dev": true }, "uglify-js": { "version": "3.4.10", "resolved": "https://registry.npmjs.org/uglify-js/-/uglify-js-3.4.10.tgz", "integrity": "sha512-Y2VsbPVs0FIshJztycsO2SfPk7/KAF/T72qzv9u5EpQ4kB2hQoHlhNQTsNyy6ul7lQtqJN/AoWeS23OzEiEFxw==", + "dev": true, "requires": { "commander": "~2.19.0", "source-map": "~0.6.1" @@ -7536,24 +9652,28 @@ "commander": { "version": "2.19.0", "resolved": "https://registry.npmjs.org/commander/-/commander-2.19.0.tgz", - "integrity": "sha512-6tvAOO+D6OENvRAh524Dh9jcfKTYDQAqvqezbCW82xj5X0pSrcpxtvRKHLG0yBY6SD7PSDrJaj+0AiOcKVd1Xg==" + "integrity": "sha512-6tvAOO+D6OENvRAh524Dh9jcfKTYDQAqvqezbCW82xj5X0pSrcpxtvRKHLG0yBY6SD7PSDrJaj+0AiOcKVd1Xg==", + "dev": true }, "source-map": { "version": "0.6.1", "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", - "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==" + "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==", + "dev": true } } }, "unicode-canonical-property-names-ecmascript": { "version": "1.0.4", "resolved": "https://registry.npmjs.org/unicode-canonical-property-names-ecmascript/-/unicode-canonical-property-names-ecmascript-1.0.4.tgz", - "integrity": "sha512-jDrNnXWHd4oHiTZnx/ZG7gtUTVp+gCcTTKr8L0HjlwphROEW3+Him+IpvC+xcJEFegapiMZyZe02CyuOnRmbnQ==" + "integrity": "sha512-jDrNnXWHd4oHiTZnx/ZG7gtUTVp+gCcTTKr8L0HjlwphROEW3+Him+IpvC+xcJEFegapiMZyZe02CyuOnRmbnQ==", + "dev": true }, "unicode-match-property-ecmascript": { "version": "1.0.4", "resolved": "https://registry.npmjs.org/unicode-match-property-ecmascript/-/unicode-match-property-ecmascript-1.0.4.tgz", "integrity": "sha512-L4Qoh15vTfntsn4P1zqnHulG0LdXgjSO035fEpdtp6YxXhMT51Q6vgM5lYdG/5X3MjS+k/Y9Xw4SFCY9IkR0rg==", + "dev": true, "requires": { "unicode-canonical-property-names-ecmascript": "^1.0.4", "unicode-property-aliases-ecmascript": "^1.0.4" @@ -7562,17 +9682,20 @@ "unicode-match-property-value-ecmascript": { "version": "1.1.0", "resolved": "https://registry.npmjs.org/unicode-match-property-value-ecmascript/-/unicode-match-property-value-ecmascript-1.1.0.tgz", - "integrity": "sha512-hDTHvaBk3RmFzvSl0UVrUmC3PuW9wKVnpoUDYH0JDkSIovzw+J5viQmeYHxVSBptubnr7PbH2e0fnpDRQnQl5g==" + "integrity": "sha512-hDTHvaBk3RmFzvSl0UVrUmC3PuW9wKVnpoUDYH0JDkSIovzw+J5viQmeYHxVSBptubnr7PbH2e0fnpDRQnQl5g==", + "dev": true }, "unicode-property-aliases-ecmascript": { "version": "1.0.5", "resolved": "https://registry.npmjs.org/unicode-property-aliases-ecmascript/-/unicode-property-aliases-ecmascript-1.0.5.tgz", - "integrity": "sha512-L5RAqCfXqAwR3RriF8pM0lU0w4Ryf/GgzONwi6KnL1taJQa7x1TCxdJnILX59WIGOwR57IVxn7Nej0fz1Ny6fw==" + "integrity": "sha512-L5RAqCfXqAwR3RriF8pM0lU0w4Ryf/GgzONwi6KnL1taJQa7x1TCxdJnILX59WIGOwR57IVxn7Nej0fz1Ny6fw==", + "dev": true }, "union-value": { "version": "1.0.1", "resolved": "https://registry.npmjs.org/union-value/-/union-value-1.0.1.tgz", "integrity": "sha512-tJfXmxMeWYnczCVs7XAEvIV7ieppALdyepWMkHkwciRpZraG/xwT+s2JN8+pr1+8jCRf80FFzvr+MpQeeoF4Xg==", + "dev": true, "requires": { "arr-union": "^3.1.0", "get-value": "^2.0.6", @@ -7583,24 +9706,28 @@ "is-extendable": { "version": "0.1.1", "resolved": "https://registry.npmjs.org/is-extendable/-/is-extendable-0.1.1.tgz", - "integrity": "sha1-YrEQ4omkcUGOPsNqYX1HLjAd/Ik=" + "integrity": "sha1-YrEQ4omkcUGOPsNqYX1HLjAd/Ik=", + "dev": true } } }, "uniq": { "version": "1.0.1", "resolved": "https://registry.npmjs.org/uniq/-/uniq-1.0.1.tgz", - "integrity": "sha1-sxxa6CVIRKOoKBVBzisEuGWnNP8=" + "integrity": "sha1-sxxa6CVIRKOoKBVBzisEuGWnNP8=", + "dev": true }, "uniqs": { "version": "2.0.0", "resolved": "https://registry.npmjs.org/uniqs/-/uniqs-2.0.0.tgz", - "integrity": "sha1-/+3ks2slKQaW5uFl1KWe25mOawI=" + "integrity": "sha1-/+3ks2slKQaW5uFl1KWe25mOawI=", + "dev": true }, "unique-filename": { "version": "1.1.1", "resolved": "https://registry.npmjs.org/unique-filename/-/unique-filename-1.1.1.tgz", "integrity": "sha512-Vmp0jIp2ln35UTXuryvjzkjGdRyf9b2lTXuSYUiPmzRcl3FDtYqAwOnTJkAngD9SWhnoJzDbTKwaOrZ+STtxNQ==", + "dev": true, "requires": { "unique-slug": "^2.0.0" } @@ -7609,6 +9736,7 @@ "version": "2.0.2", "resolved": "https://registry.npmjs.org/unique-slug/-/unique-slug-2.0.2.tgz", "integrity": "sha512-zoWr9ObaxALD3DOPfjPSqxt4fnZiWblxHIgeWqW8x7UqDzEtHEQLzji2cuJYQFCU6KmoJikOYAZlrTHHebjx2w==", + "dev": true, "requires": { "imurmurhash": "^0.1.4" } @@ -7616,22 +9744,26 @@ "universalify": { "version": "0.1.2", "resolved": "https://registry.npmjs.org/universalify/-/universalify-0.1.2.tgz", - "integrity": "sha512-rBJeI5CXAlmy1pV+617WB9J63U6XcazHHF2f2dbJix4XzpUF0RS3Zbj0FGIOCAva5P/d/GBOYaACQ1w+0azUkg==" + "integrity": "sha512-rBJeI5CXAlmy1pV+617WB9J63U6XcazHHF2f2dbJix4XzpUF0RS3Zbj0FGIOCAva5P/d/GBOYaACQ1w+0azUkg==", + "dev": true }, "unpipe": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/unpipe/-/unpipe-1.0.0.tgz", - "integrity": "sha1-sr9O6FFKrmFltIF4KdIbLvSZBOw=" + "integrity": "sha1-sr9O6FFKrmFltIF4KdIbLvSZBOw=", + "dev": true }, "unquote": { "version": "1.1.1", "resolved": "https://registry.npmjs.org/unquote/-/unquote-1.1.1.tgz", - "integrity": "sha1-j97XMk7G6IoP+LkF58CYzcCG1UQ=" + "integrity": "sha1-j97XMk7G6IoP+LkF58CYzcCG1UQ=", + "dev": true }, "unset-value": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/unset-value/-/unset-value-1.0.0.tgz", "integrity": "sha1-g3aHP30jNRef+x5vw6jtDfyKtVk=", + "dev": true, "requires": { "has-value": "^0.3.1", "isobject": "^3.0.0" @@ -7641,6 +9773,7 @@ "version": "0.3.1", "resolved": "https://registry.npmjs.org/has-value/-/has-value-0.3.1.tgz", "integrity": "sha1-ex9YutpiyoJ+wKIHgCVlSEWZXh8=", + "dev": true, "requires": { "get-value": "^2.0.3", "has-values": "^0.1.4", @@ -7651,6 +9784,7 @@ "version": "2.1.0", "resolved": "https://registry.npmjs.org/isobject/-/isobject-2.1.0.tgz", "integrity": "sha1-8GVWEJaj8dou9GJy+BXIQNh+DIk=", + "dev": true, "requires": { "isarray": "1.0.0" } @@ -7660,24 +9794,28 @@ "has-values": { "version": "0.1.4", "resolved": "https://registry.npmjs.org/has-values/-/has-values-0.1.4.tgz", - "integrity": "sha1-bWHeldkd/Km5oCCJrThL/49it3E=" + "integrity": "sha1-bWHeldkd/Km5oCCJrThL/49it3E=", + "dev": true } } }, "upath": { "version": "1.2.0", "resolved": "https://registry.npmjs.org/upath/-/upath-1.2.0.tgz", - "integrity": "sha512-aZwGpamFO61g3OlfT7OQCHqhGnW43ieH9WZeP7QxN/G/jS4jfqUkZxoryvJgVPEcrl5NL/ggHsSmLMHuH64Lhg==" + "integrity": "sha512-aZwGpamFO61g3OlfT7OQCHqhGnW43ieH9WZeP7QxN/G/jS4jfqUkZxoryvJgVPEcrl5NL/ggHsSmLMHuH64Lhg==", + "dev": true }, "upper-case": { "version": "1.1.3", "resolved": "https://registry.npmjs.org/upper-case/-/upper-case-1.1.3.tgz", - "integrity": "sha1-9rRQHC7EzdJrp4vnIilh3ndiFZg=" + "integrity": "sha1-9rRQHC7EzdJrp4vnIilh3ndiFZg=", + "dev": true }, "uri-js": { "version": "4.2.2", "resolved": "https://registry.npmjs.org/uri-js/-/uri-js-4.2.2.tgz", "integrity": "sha512-KY9Frmirql91X2Qgjry0Wd4Y+YTdrdZheS8TFwvkbLWf/G5KNJDCh6pKL5OZctEW4+0Baa5idK2ZQuELRwPznQ==", + "dev": true, "requires": { "punycode": "^2.1.0" } @@ -7685,12 +9823,14 @@ "urix": { "version": "0.1.0", "resolved": "https://registry.npmjs.org/urix/-/urix-0.1.0.tgz", - "integrity": "sha1-2pN/emLiH+wf0Y1Js1wpNQZ6bHI=" + "integrity": "sha1-2pN/emLiH+wf0Y1Js1wpNQZ6bHI=", + "dev": true }, "url": { "version": "0.11.0", "resolved": "https://registry.npmjs.org/url/-/url-0.11.0.tgz", "integrity": "sha1-ODjpfPxgUh63PFJajlW/3Z4uKPE=", + "dev": true, "requires": { "punycode": "1.3.2", "querystring": "0.2.0" @@ -7699,7 +9839,8 @@ "punycode": { "version": "1.3.2", "resolved": "https://registry.npmjs.org/punycode/-/punycode-1.3.2.tgz", - "integrity": "sha1-llOgNvt8HuQjQvIyXM7v6jkmxI0=" + "integrity": "sha1-llOgNvt8HuQjQvIyXM7v6jkmxI0=", + "dev": true } } }, @@ -7707,6 +9848,7 @@ "version": "1.4.7", "resolved": "https://registry.npmjs.org/url-parse/-/url-parse-1.4.7.tgz", "integrity": "sha512-d3uaVyzDB9tQoSXFvuSUNFibTd9zxd2bkVrDRvF5TmvWWQwqE4lgYJ5m+x1DbecWkw+LK4RNl2CU1hHuOKPVlg==", + "dev": true, "requires": { "querystringify": "^2.1.1", "requires-port": "^1.0.0" @@ -7715,12 +9857,14 @@ "use": { "version": "3.1.1", "resolved": "https://registry.npmjs.org/use/-/use-3.1.1.tgz", - "integrity": "sha512-cwESVXlO3url9YWlFW/TA9cshCEhtu7IKJ/p5soJ/gGpj7vbvFrAY/eIioQ6Dw23KjZhYgiIo8HOs1nQ2vr/oQ==" + "integrity": "sha512-cwESVXlO3url9YWlFW/TA9cshCEhtu7IKJ/p5soJ/gGpj7vbvFrAY/eIioQ6Dw23KjZhYgiIo8HOs1nQ2vr/oQ==", + "dev": true }, "util": { "version": "0.11.1", "resolved": "https://registry.npmjs.org/util/-/util-0.11.1.tgz", "integrity": "sha512-HShAsny+zS2TZfaXxD9tYj4HQGlBezXZMZuM/S5PKLLoZkShZiGk9o5CzukI1LVHZvjdvZ2Sj1aW/Ndn2NB/HQ==", + "dev": true, "requires": { "inherits": "2.0.3" }, @@ -7728,19 +9872,22 @@ "inherits": { "version": "2.0.3", "resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.3.tgz", - "integrity": "sha1-Yzwsg+PaQqUC9SRmAiSA9CCCYd4=" + "integrity": "sha1-Yzwsg+PaQqUC9SRmAiSA9CCCYd4=", + "dev": true } } }, "util-deprecate": { "version": "1.0.2", "resolved": "https://registry.npmjs.org/util-deprecate/-/util-deprecate-1.0.2.tgz", - "integrity": "sha1-RQ1Nyfpw3nMnYvvS1KKJgUGaDM8=" + "integrity": "sha1-RQ1Nyfpw3nMnYvvS1KKJgUGaDM8=", + "dev": true }, "util.promisify": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/util.promisify/-/util.promisify-1.0.0.tgz", "integrity": "sha512-i+6qA2MPhvoKLuxnJNpXAGhg7HphQOSUq2LKMZD0m15EiskXUkMvKdF4Uui0WYeCUGea+o2cw/ZuwehtfsrNkA==", + "dev": true, "requires": { "define-properties": "^1.1.2", "object.getownpropertydescriptors": "^2.0.3" @@ -7749,42 +9896,101 @@ "utils-merge": { "version": "1.0.1", "resolved": "https://registry.npmjs.org/utils-merge/-/utils-merge-1.0.1.tgz", - "integrity": "sha1-n5VxD1CiZ5R7LMwSR0HBAoQn5xM=" + "integrity": "sha1-n5VxD1CiZ5R7LMwSR0HBAoQn5xM=", + "dev": true }, "uuid": { "version": "3.3.3", "resolved": "https://registry.npmjs.org/uuid/-/uuid-3.3.3.tgz", - "integrity": "sha512-pW0No1RGHgzlpHJO1nsVrHKpOEIxkGg1xB+v0ZmdNH5OAeAwzAVrCnI2/6Mtx+Uys6iaylxa+D3g4j63IKKjSQ==" + "integrity": "sha512-pW0No1RGHgzlpHJO1nsVrHKpOEIxkGg1xB+v0ZmdNH5OAeAwzAVrCnI2/6Mtx+Uys6iaylxa+D3g4j63IKKjSQ==", + "dev": true }, "v8-compile-cache": { "version": "2.0.3", "resolved": "https://registry.npmjs.org/v8-compile-cache/-/v8-compile-cache-2.0.3.tgz", - "integrity": "sha512-CNmdbwQMBjwr9Gsmohvm0pbL954tJrNzf6gWL3K+QMQf00PF7ERGrEiLgjuU3mKreLC2MeGhUsNV9ybTbLgd3w==" + "integrity": "sha512-CNmdbwQMBjwr9Gsmohvm0pbL954tJrNzf6gWL3K+QMQf00PF7ERGrEiLgjuU3mKreLC2MeGhUsNV9ybTbLgd3w==", + "dev": true }, "vary": { "version": "1.1.2", "resolved": "https://registry.npmjs.org/vary/-/vary-1.1.2.tgz", - "integrity": "sha1-IpnwLG3tMNSllhsLn3RSShj2NPw=" + "integrity": "sha1-IpnwLG3tMNSllhsLn3RSShj2NPw=", + "dev": true + }, + "vddl": { + "version": "0.7.1", + "resolved": "https://registry.npmjs.org/vddl/-/vddl-0.7.1.tgz", + "integrity": "sha512-6vnkOlzeBqP9Qd90Foz01zHym8oyF0cgM6vIexXK8pDMVsnHDjI3uKPcV6Yn1JOxHlbfdworGLfPAzfoxnXnyQ==", + "dev": true, + "requires": { + "vue": "^2.4.2" + } }, "vendors": { "version": "1.0.3", "resolved": "https://registry.npmjs.org/vendors/-/vendors-1.0.3.tgz", - "integrity": "sha512-fOi47nsJP5Wqefa43kyWSg80qF+Q3XA6MUkgi7Hp1HQaKDQW4cQrK2D0P7mmbFtsV1N89am55Yru/nyEwRubcw==" + "integrity": "sha512-fOi47nsJP5Wqefa43kyWSg80qF+Q3XA6MUkgi7Hp1HQaKDQW4cQrK2D0P7mmbFtsV1N89am55Yru/nyEwRubcw==", + "dev": true + }, + "verror": { + "version": "1.10.0", + "resolved": "https://registry.npmjs.org/verror/-/verror-1.10.0.tgz", + "integrity": "sha1-OhBcoXBTr1XW4nDB+CiGguGNpAA=", + "dev": true, + "optional": true, + "requires": { + "assert-plus": "^1.0.0", + "core-util-is": "1.0.2", + "extsprintf": "^1.2.0" + } }, "vm-browserify": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/vm-browserify/-/vm-browserify-1.1.0.tgz", - "integrity": "sha512-iq+S7vZJE60yejDYM0ek6zg308+UZsdtPExWP9VZoCFCz1zkJoXFnAX7aZfd/ZwrkidzdUZL0C/ryW+JwAiIGw==" + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/vm-browserify/-/vm-browserify-1.1.2.tgz", + "integrity": "sha512-2ham8XPWTONajOR0ohOKOHXkm3+gaBmGut3SRuu75xLd/RRaY6vqgh8NBYYk7+RW3u5AtzPQZG8F10LHkl0lAQ==", + "dev": true + }, + "vue": { + "version": "2.6.10", + "resolved": "https://registry.npmjs.org/vue/-/vue-2.6.10.tgz", + "integrity": "sha512-ImThpeNU9HbdZL3utgMCq0oiMzAkt1mcgy3/E6zWC/G6AaQoeuFdsl9nDhTDU3X1R6FK7nsIUuRACVcjI+A2GQ==", + "dev": true + }, + "vue-apollo": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/vue-apollo/-/vue-apollo-3.0.0.tgz", + "integrity": "sha512-ByeKajmgItICrOkUl2j/XzqWjv2FOdQYAPsuGyry4yrQBCU641gSoZZn1TjHiR9rAsR2aycGsY9vuV0sN14Mbg==", + "dev": true, + "requires": { + "chalk": "^2.4.2", + "serialize-javascript": "^2.1.0", + "throttle-debounce": "^2.1.0" + }, + "dependencies": { + "serialize-javascript": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/serialize-javascript/-/serialize-javascript-2.1.0.tgz", + "integrity": "sha512-a/mxFfU00QT88umAJQsNWOnUKckhNCqOl028N48e7wFmo2/EHpTo9Wso+iJJCMrQnmFvcjto5RJdAHEvVhcyUQ==", + "dev": true + } + } }, "vue-hot-reload-api": { "version": "2.3.4", "resolved": "https://registry.npmjs.org/vue-hot-reload-api/-/vue-hot-reload-api-2.3.4.tgz", - "integrity": "sha512-BXq3jwIagosjgNVae6tkHzzIk6a8MHFtzAdwhnV5VlvPTFxDCvIttgSiHWjdGoTJvXtmRu5HacExfdarRcFhog==" + "integrity": "sha512-BXq3jwIagosjgNVae6tkHzzIk6a8MHFtzAdwhnV5VlvPTFxDCvIttgSiHWjdGoTJvXtmRu5HacExfdarRcFhog==", + "dev": true + }, + "vue-i18n": { + "version": "8.15.0", + "resolved": "https://registry.npmjs.org/vue-i18n/-/vue-i18n-8.15.0.tgz", + "integrity": "sha512-juJ/avAP39bOMycC+qQDLJ8U9z9LtLF/9PsRoJLBSfsYZo9bqYntyyX5QPicwlb1emJKjgxhZ3YofHiQcXBu0Q==" }, "vue-loader": { - "version": "15.7.1", - "resolved": "https://registry.npmjs.org/vue-loader/-/vue-loader-15.7.1.tgz", - "integrity": "sha512-fwIKtA23Pl/rqfYP5TSGK7gkEuLhoTvRYW+TU7ER3q9GpNLt/PjG5NLv3XHRDiTg7OPM1JcckBgds+VnAc+HbA==", + "version": "15.7.2", + "resolved": "https://registry.npmjs.org/vue-loader/-/vue-loader-15.7.2.tgz", + "integrity": "sha512-H/P9xt/nkocyu4hZKg5TzPqyCT1oKOaCSk9zs0JCbJuy0Q8KtR0bjJpnT/5R5x/Ckd1GFkkLQnQ1C4x6xXeLZg==", + "dev": true, "requires": { "@vue/component-compiler-utils": "^3.0.0", "hash-sum": "^1.0.2", @@ -7793,24 +9999,68 @@ "vue-style-loader": "^4.1.0" } }, + "vue-quill-editor": { + "version": "3.0.6", + "resolved": "https://registry.npmjs.org/vue-quill-editor/-/vue-quill-editor-3.0.6.tgz", + "integrity": "sha512-g20oSZNWg8Hbu41Kinjd55e235qVWPLfg4NvsLW6d+DhgBTFbEuMpcWlUdrD6qT3+Noim6DRu18VLM9lVShXOQ==", + "dev": true, + "requires": { + "object-assign": "^4.1.1", + "quill": "^1.3.4" + } + }, + "vue-ref": { + "version": "1.0.6", + "resolved": "https://registry.npmjs.org/vue-ref/-/vue-ref-1.0.6.tgz", + "integrity": "sha512-UzD8t1CG+aoWVOOpGd5KcaCNtCgUc0byaKhJMH+6N7H/p1ThVkYl/VCt7DmCrdhUlzZK+hT5JPTKAdrbWi0nNw==", + "dev": true + }, + "vue-router": { + "version": "3.1.3", + "resolved": "https://registry.npmjs.org/vue-router/-/vue-router-3.1.3.tgz", + "integrity": "sha512-8iSa4mGNXBjyuSZFCCO4fiKfvzqk+mhL0lnKuGcQtO1eoj8nq3CmbEG8FwK5QqoqwDgsjsf1GDuisDX4cdb/aQ==", + "dev": true + }, "vue-style-loader": { "version": "4.1.2", "resolved": "https://registry.npmjs.org/vue-style-loader/-/vue-style-loader-4.1.2.tgz", "integrity": "sha512-0ip8ge6Gzz/Bk0iHovU9XAUQaFt/G2B61bnWa2tCcqqdgfHs1lF9xXorFbE55Gmy92okFT+8bfmySuUOu13vxQ==", + "dev": true, "requires": { "hash-sum": "^1.0.2", "loader-utils": "^1.0.2" } }, + "vue-template-compiler": { + "version": "2.6.10", + "resolved": "https://registry.npmjs.org/vue-template-compiler/-/vue-template-compiler-2.6.10.tgz", + "integrity": "sha512-jVZkw4/I/HT5ZMvRnhv78okGusqe0+qH2A0Em0Cp8aq78+NK9TII263CDVz2QXZsIT+yyV/gZc/j/vlwa+Epyg==", + "dev": true, + "requires": { + "de-indent": "^1.0.2", + "he": "^1.1.0" + } + }, "vue-template-es2015-compiler": { "version": "1.9.1", "resolved": "https://registry.npmjs.org/vue-template-es2015-compiler/-/vue-template-es2015-compiler-1.9.1.tgz", - "integrity": "sha512-4gDntzrifFnCEvyoO8PqyJDmguXgVPxKiIxrBKjIowvL9l+N66196+72XVYR8BBf1Uv1Fgt3bGevJ+sEmxfZzw==" + "integrity": "sha512-4gDntzrifFnCEvyoO8PqyJDmguXgVPxKiIxrBKjIowvL9l+N66196+72XVYR8BBf1Uv1Fgt3bGevJ+sEmxfZzw==", + "dev": true + }, + "warning": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/warning/-/warning-3.0.0.tgz", + "integrity": "sha1-MuU3fLVy3kqwR1O9+IIcAe1gW3w=", + "dev": true, + "requires": { + "loose-envify": "^1.0.0" + } }, "watchpack": { "version": "1.6.0", "resolved": "https://registry.npmjs.org/watchpack/-/watchpack-1.6.0.tgz", "integrity": "sha512-i6dHe3EyLjMmDlU1/bGQpEw25XSjkJULPuAVKCbNRefQVq48yXKUpwg538F7AZTf9kyr57zj++pQFltUa5H7yA==", + "dev": true, "requires": { "chokidar": "^2.0.2", "graceful-fs": "^4.1.2", @@ -7821,14 +10071,16 @@ "version": "1.7.3", "resolved": "https://registry.npmjs.org/wbuf/-/wbuf-1.7.3.tgz", "integrity": "sha512-O84QOnr0icsbFGLS0O3bI5FswxzRr8/gHwWkDlQFskhSPryQXvrTMxjxGP4+iWYoauLoBvfDpkrOauZ+0iZpDA==", + "dev": true, "requires": { "minimalistic-assert": "^1.0.0" } }, "webpack": { - "version": "4.40.2", - "resolved": "https://registry.npmjs.org/webpack/-/webpack-4.40.2.tgz", - "integrity": "sha512-5nIvteTDCUws2DVvP9Qe+JPla7kWPPIDFZv55To7IycHWZ+Z5qBdaBYPyuXWdhggTufZkQwfIK+5rKQTVovm2A==", + "version": "4.41.2", + "resolved": "https://registry.npmjs.org/webpack/-/webpack-4.41.2.tgz", + "integrity": "sha512-Zhw69edTGfbz9/8JJoyRQ/pq8FYUoY0diOXqW0T6yhgdhCv6wr0hra5DwwWexNRns2Z2+gsnrNcbe9hbGBgk/A==", + "dev": true, "requires": { "@webassemblyjs/ast": "1.8.5", "@webassemblyjs/helper-module-context": "1.8.5", @@ -7859,6 +10111,7 @@ "version": "1.0.0", "resolved": "https://registry.npmjs.org/schema-utils/-/schema-utils-1.0.0.tgz", "integrity": "sha512-i27Mic4KovM/lnGsy8whRCHhc7VicJajAjTrYg11K9zfZXnYIt4k5F+kZkwjnrhKzLic/HLU4j11mjsz2G/75g==", + "dev": true, "requires": { "ajv": "^6.1.0", "ajv-errors": "^1.0.0", @@ -7868,9 +10121,10 @@ } }, "webpack-cli": { - "version": "3.3.9", - "resolved": "https://registry.npmjs.org/webpack-cli/-/webpack-cli-3.3.9.tgz", - "integrity": "sha512-xwnSxWl8nZtBl/AFJCOn9pG7s5CYUYdZxmmukv+fAHLcBIHM36dImfpQg3WfShZXeArkWlf6QRw24Klcsv8a5A==", + "version": "3.3.10", + "resolved": "https://registry.npmjs.org/webpack-cli/-/webpack-cli-3.3.10.tgz", + "integrity": "sha512-u1dgND9+MXaEt74sJR4PR7qkPxXUSQ0RXYq8x1L6Jg1MYVEmGPrH6Ah6C4arD4r0J1P5HKjRqpab36k0eIzPqg==", + "dev": true, "requires": { "chalk": "2.4.2", "cross-spawn": "6.0.5", @@ -7888,12 +10142,25 @@ "ansi-regex": { "version": "4.1.0", "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-4.1.0.tgz", - "integrity": "sha512-1apePfXM1UOSqw0o9IiFAovVz9M5S1Dg+4TrDwfMewQ6p/rmMueb7tWZjQ1rx4Loy1ArBggoqGpfqqdI4rondg==" + "integrity": "sha512-1apePfXM1UOSqw0o9IiFAovVz9M5S1Dg+4TrDwfMewQ6p/rmMueb7tWZjQ1rx4Loy1ArBggoqGpfqqdI4rondg==", + "dev": true + }, + "enhanced-resolve": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/enhanced-resolve/-/enhanced-resolve-4.1.0.tgz", + "integrity": "sha512-F/7vkyTtyc/llOIn8oWclcB25KdRaiPBpZYDgJHgh/UHtpgT2p2eldQgtQnLtUvfMKPKxbRaQM/hHkvLHt1Vng==", + "dev": true, + "requires": { + "graceful-fs": "^4.1.2", + "memory-fs": "^0.4.0", + "tapable": "^1.0.0" + } }, "string-width": { "version": "3.1.0", "resolved": "https://registry.npmjs.org/string-width/-/string-width-3.1.0.tgz", "integrity": "sha512-vafcv6KjVZKSgz06oM/H6GDBrAtz8vdhQakGjFIvNrHA6y3HCF1CInLy+QLq8dTJPQ1b+KDUqDFctkdRW44e1w==", + "dev": true, "requires": { "emoji-regex": "^7.0.1", "is-fullwidth-code-point": "^2.0.0", @@ -7904,6 +10171,7 @@ "version": "5.2.0", "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-5.2.0.tgz", "integrity": "sha512-DuRs1gKbBqsMKIZlrffwlug8MHkcnpjs5VPmL1PAh+mA30U0DTotfDZ0d2UUsXpPmPmMMJ6W773MaA3J+lbiWA==", + "dev": true, "requires": { "ansi-regex": "^4.1.0" } @@ -7912,6 +10180,7 @@ "version": "6.1.0", "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-6.1.0.tgz", "integrity": "sha512-qe1jfm1Mg7Nq/NSh6XE24gPXROEVsWHxC1LIx//XNlD9iw7YZQGjZNjYN7xGaEG6iKdA8EtNFW6R0gjnVXp+wQ==", + "dev": true, "requires": { "has-flag": "^3.0.0" } @@ -7920,6 +10189,7 @@ "version": "13.2.4", "resolved": "https://registry.npmjs.org/yargs/-/yargs-13.2.4.tgz", "integrity": "sha512-HG/DWAJa1PAnHT9JAhNa8AbAv3FPaiLzioSjCcmuXXhP8MlpHO5vwls4g4j6n30Z74GVQj8Xa62dWVx1QCGklg==", + "dev": true, "requires": { "cliui": "^5.0.0", "find-up": "^3.0.0", @@ -7937,9 +10207,10 @@ } }, "webpack-dev-middleware": { - "version": "3.7.1", - "resolved": "https://registry.npmjs.org/webpack-dev-middleware/-/webpack-dev-middleware-3.7.1.tgz", - "integrity": "sha512-5MWu9SH1z3hY7oHOV6Kbkz5x7hXbxK56mGHNqHTe6d+ewxOwKUxoUJBs7QIaJb33lPjl9bJZ3X0vCoooUzC36A==", + "version": "3.7.2", + "resolved": "https://registry.npmjs.org/webpack-dev-middleware/-/webpack-dev-middleware-3.7.2.tgz", + "integrity": "sha512-1xC42LxbYoqLNAhV6YzTYacicgMZQTqRd27Sim9wn5hJrX3I5nxYy1SxSd4+gjUFsz1dQFj+yEe6zEVmSkeJjw==", + "dev": true, "requires": { "memory-fs": "^0.4.1", "mime": "^2.4.4", @@ -7951,14 +10222,16 @@ "mime": { "version": "2.4.4", "resolved": "https://registry.npmjs.org/mime/-/mime-2.4.4.tgz", - "integrity": "sha512-LRxmNwziLPT828z+4YkNzloCFC2YM4wrB99k+AV5ZbEyfGNWfG8SO1FUXLmLDBSo89NrJZ4DIWeLjy1CHGhMGA==" + "integrity": "sha512-LRxmNwziLPT828z+4YkNzloCFC2YM4wrB99k+AV5ZbEyfGNWfG8SO1FUXLmLDBSo89NrJZ4DIWeLjy1CHGhMGA==", + "dev": true } } }, "webpack-dev-server": { - "version": "3.8.1", - "resolved": "https://registry.npmjs.org/webpack-dev-server/-/webpack-dev-server-3.8.1.tgz", - "integrity": "sha512-9F5DnfFA9bsrhpUCAfQic/AXBVHvq+3gQS+x6Zj0yc1fVVE0erKh2MV4IV12TBewuTrYeeTIRwCH9qLMvdNvTw==", + "version": "3.9.0", + "resolved": "https://registry.npmjs.org/webpack-dev-server/-/webpack-dev-server-3.9.0.tgz", + "integrity": "sha512-E6uQ4kRrTX9URN9s/lIbqTAztwEPdvzVrcmHE8EQ9YnuT9J8Es5Wrd8n9BKg1a0oZ5EgEke/EQFgUsp18dSTBw==", + "dev": true, "requires": { "ansi-html": "0.0.7", "bonjour": "^3.5.0", @@ -7969,18 +10242,18 @@ "del": "^4.1.1", "express": "^4.17.1", "html-entities": "^1.2.1", - "http-proxy-middleware": "^0.19.1", + "http-proxy-middleware": "0.19.1", "import-local": "^2.0.0", "internal-ip": "^4.3.0", "ip": "^1.1.5", - "is-absolute-url": "^3.0.2", + "is-absolute-url": "^3.0.3", "killable": "^1.0.1", "loglevel": "^1.6.4", "opn": "^5.5.0", "p-retry": "^3.0.1", - "portfinder": "^1.0.24", + "portfinder": "^1.0.25", "schema-utils": "^1.0.0", - "selfsigned": "^1.10.6", + "selfsigned": "^1.10.7", "semver": "^6.3.0", "serve-index": "^1.9.1", "sockjs": "0.3.19", @@ -7989,21 +10262,38 @@ "strip-ansi": "^3.0.1", "supports-color": "^6.1.0", "url": "^0.11.0", - "webpack-dev-middleware": "^3.7.1", + "webpack-dev-middleware": "^3.7.2", "webpack-log": "^2.0.0", "ws": "^6.2.1", "yargs": "12.0.5" }, "dependencies": { + "debug": { + "version": "4.1.1", + "resolved": "https://registry.npmjs.org/debug/-/debug-4.1.1.tgz", + "integrity": "sha512-pYAIzeRo8J6KPEaJ0VWOh5Pzkbw/RetuzehGM7QRRX5he4fPHx2rdKMB256ehJCkX+XRQm16eZLqLNS8RSZXZw==", + "dev": true, + "requires": { + "ms": "^2.1.1" + } + }, "is-absolute-url": { - "version": "3.0.2", - "resolved": "https://registry.npmjs.org/is-absolute-url/-/is-absolute-url-3.0.2.tgz", - "integrity": "sha512-+5g/wLlcm1AcxSP7014m6GvbPHswDx980vD/3bZaap8aGV9Yfs7Q6y6tfaupgZ5O74Byzc8dGrSCJ+bFXx0KdA==" + "version": "3.0.3", + "resolved": "https://registry.npmjs.org/is-absolute-url/-/is-absolute-url-3.0.3.tgz", + "integrity": "sha512-opmNIX7uFnS96NtPmhWQgQx6/NYFgsUXYMllcfzwWKUMwfo8kku1TvE6hkNcH+Q1ts5cMVrsY7j0bxXQDciu9Q==", + "dev": true + }, + "ms": { + "version": "2.1.2", + "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.2.tgz", + "integrity": "sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w==", + "dev": true }, "schema-utils": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/schema-utils/-/schema-utils-1.0.0.tgz", "integrity": "sha512-i27Mic4KovM/lnGsy8whRCHhc7VicJajAjTrYg11K9zfZXnYIt4k5F+kZkwjnrhKzLic/HLU4j11mjsz2G/75g==", + "dev": true, "requires": { "ajv": "^6.1.0", "ajv-errors": "^1.0.0", @@ -8013,12 +10303,14 @@ "semver": { "version": "6.3.0", "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.0.tgz", - "integrity": "sha512-b39TBaTSfV6yBrapU89p5fKekE2m/NwnDocOVruQFS1/veMgdzuPcnOM34M6CwxW8jH/lxEa5rBoDeUwu5HHTw==" + "integrity": "sha512-b39TBaTSfV6yBrapU89p5fKekE2m/NwnDocOVruQFS1/veMgdzuPcnOM34M6CwxW8jH/lxEa5rBoDeUwu5HHTw==", + "dev": true }, "supports-color": { "version": "6.1.0", "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-6.1.0.tgz", "integrity": "sha512-qe1jfm1Mg7Nq/NSh6XE24gPXROEVsWHxC1LIx//XNlD9iw7YZQGjZNjYN7xGaEG6iKdA8EtNFW6R0gjnVXp+wQ==", + "dev": true, "requires": { "has-flag": "^3.0.0" } @@ -8029,6 +10321,7 @@ "version": "2.0.0", "resolved": "https://registry.npmjs.org/webpack-log/-/webpack-log-2.0.0.tgz", "integrity": "sha512-cX8G2vR/85UYG59FgkoMamwHUIkSSlV3bBMRsbxVXVUk2j6NleCKjQ/WE9eYg9WY4w25O9w8wKP4rzNZFmUcUg==", + "dev": true, "requires": { "ansi-colors": "^3.0.0", "uuid": "^3.3.2" @@ -8038,6 +10331,7 @@ "version": "4.2.2", "resolved": "https://registry.npmjs.org/webpack-merge/-/webpack-merge-4.2.2.tgz", "integrity": "sha512-TUE1UGoTX2Cd42j3krGYqObZbOD+xF7u28WB7tfUordytSjbWTIjK/8V0amkBfTYN4/pB/GIDlJZZ657BGG19g==", + "dev": true, "requires": { "lodash": "^4.17.15" } @@ -8046,6 +10340,7 @@ "version": "1.8.0", "resolved": "https://registry.npmjs.org/webpack-notifier/-/webpack-notifier-1.8.0.tgz", "integrity": "sha512-I6t76NoPe5DZCCm5geELmDV2wlJ89LbU425uN6T2FG8Ywrrt1ZcUMz6g8yWGNg4pttqTPFQJYUPjWAlzUEQ+cQ==", + "dev": true, "requires": { "node-notifier": "^5.1.2", "object-assign": "^4.1.0", @@ -8056,6 +10351,7 @@ "version": "1.4.3", "resolved": "https://registry.npmjs.org/webpack-sources/-/webpack-sources-1.4.3.tgz", "integrity": "sha512-lgTS3Xhv1lCOKo7SA5TjKXMjpSM4sBjNV5+q2bqesbSPs5FjGmU6jjtBSkX9b4qW87vDIsCIlUPOEhbZrMdjeQ==", + "dev": true, "requires": { "source-list-map": "^2.0.0", "source-map": "~0.6.1" @@ -8064,7 +10360,8 @@ "source-map": { "version": "0.6.1", "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", - "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==" + "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==", + "dev": true } } }, @@ -8072,6 +10369,7 @@ "version": "0.7.3", "resolved": "https://registry.npmjs.org/websocket-driver/-/websocket-driver-0.7.3.tgz", "integrity": "sha512-bpxWlvbbB459Mlipc5GBzzZwhoZgGEZLuqPaR0INBGnPAY1vdBX6hPnoFXiw+3yWxDuHyQjO2oXTMyS8A5haFg==", + "dev": true, "requires": { "http-parser-js": ">=0.4.0 <0.4.11", "safe-buffer": ">=5.1.0", @@ -8081,12 +10379,14 @@ "websocket-extensions": { "version": "0.1.3", "resolved": "https://registry.npmjs.org/websocket-extensions/-/websocket-extensions-0.1.3.tgz", - "integrity": "sha512-nqHUnMXmBzT0w570r2JpJxfiSD1IzoI+HGVdd3aZ0yNi3ngvQ4jv1dtHt5VGxfI2yj5yqImPhOK4vmIh2xMbGg==" + "integrity": "sha512-nqHUnMXmBzT0w570r2JpJxfiSD1IzoI+HGVdd3aZ0yNi3ngvQ4jv1dtHt5VGxfI2yj5yqImPhOK4vmIh2xMbGg==", + "dev": true }, "which": { "version": "1.3.1", "resolved": "https://registry.npmjs.org/which/-/which-1.3.1.tgz", "integrity": "sha512-HxJdYWq1MTIQbJ3nw0cqssHoTNU267KlrDuGZ1WYlxDStUtKUhOaJmh112/TZmHxxUfuJqPXSOm7tDyas0OSIQ==", + "dev": true, "requires": { "isexe": "^2.0.0" } @@ -8094,12 +10394,14 @@ "which-module": { "version": "2.0.0", "resolved": "https://registry.npmjs.org/which-module/-/which-module-2.0.0.tgz", - "integrity": "sha1-2e8H3Od7mQK4o6j6SzHD4/fm6Ho=" + "integrity": "sha1-2e8H3Od7mQK4o6j6SzHD4/fm6Ho=", + "dev": true }, "worker-farm": { "version": "1.7.0", "resolved": "https://registry.npmjs.org/worker-farm/-/worker-farm-1.7.0.tgz", "integrity": "sha512-rvw3QTZc8lAxyVrqcSGVm5yP/IJ2UcB3U0graE3LCFoZ0Yn2x4EoVSqJKdB/T5M+FLcRPjz4TDacRf3OCfNUzw==", + "dev": true, "requires": { "errno": "~0.1.7" } @@ -8108,6 +10410,7 @@ "version": "5.1.0", "resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-5.1.0.tgz", "integrity": "sha512-QC1/iN/2/RPVJ5jYK8BGttj5z83LmSKmvbvrXPNCLZSEb32KKVDJDl/MOt2N01qU2H/FkzEa9PKto1BqDjtd7Q==", + "dev": true, "requires": { "ansi-styles": "^3.2.0", "string-width": "^3.0.0", @@ -8117,12 +10420,14 @@ "ansi-regex": { "version": "4.1.0", "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-4.1.0.tgz", - "integrity": "sha512-1apePfXM1UOSqw0o9IiFAovVz9M5S1Dg+4TrDwfMewQ6p/rmMueb7tWZjQ1rx4Loy1ArBggoqGpfqqdI4rondg==" + "integrity": "sha512-1apePfXM1UOSqw0o9IiFAovVz9M5S1Dg+4TrDwfMewQ6p/rmMueb7tWZjQ1rx4Loy1ArBggoqGpfqqdI4rondg==", + "dev": true }, "string-width": { "version": "3.1.0", "resolved": "https://registry.npmjs.org/string-width/-/string-width-3.1.0.tgz", "integrity": "sha512-vafcv6KjVZKSgz06oM/H6GDBrAtz8vdhQakGjFIvNrHA6y3HCF1CInLy+QLq8dTJPQ1b+KDUqDFctkdRW44e1w==", + "dev": true, "requires": { "emoji-regex": "^7.0.1", "is-fullwidth-code-point": "^2.0.0", @@ -8133,6 +10438,7 @@ "version": "5.2.0", "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-5.2.0.tgz", "integrity": "sha512-DuRs1gKbBqsMKIZlrffwlug8MHkcnpjs5VPmL1PAh+mA30U0DTotfDZ0d2UUsXpPmPmMMJ6W773MaA3J+lbiWA==", + "dev": true, "requires": { "ansi-regex": "^4.1.0" } @@ -8142,12 +10448,14 @@ "wrappy": { "version": "1.0.2", "resolved": "https://registry.npmjs.org/wrappy/-/wrappy-1.0.2.tgz", - "integrity": "sha1-tSQ9jz7BqjXxNkYFvA0QNuMKtp8=" + "integrity": "sha1-tSQ9jz7BqjXxNkYFvA0QNuMKtp8=", + "dev": true }, "ws": { "version": "6.2.1", "resolved": "https://registry.npmjs.org/ws/-/ws-6.2.1.tgz", "integrity": "sha512-GIyAXC2cB7LjvpgMt9EKS2ldqr0MTrORaleiOno6TweZ6r3TKtoFQWay/2PceJ3RuBasOHzXNn5Lrw1X0bEjqA==", + "dev": true, "requires": { "async-limiter": "~1.0.0" } @@ -8155,22 +10463,26 @@ "xtend": { "version": "4.0.2", "resolved": "https://registry.npmjs.org/xtend/-/xtend-4.0.2.tgz", - "integrity": "sha512-LKYU1iAXJXUgAXn9URjiu+MWhyUXHsvfp7mcuYm9dSUKK0/CjtrUwFAxD82/mCWbtLsGjFIad0wIsod4zrTAEQ==" + "integrity": "sha512-LKYU1iAXJXUgAXn9URjiu+MWhyUXHsvfp7mcuYm9dSUKK0/CjtrUwFAxD82/mCWbtLsGjFIad0wIsod4zrTAEQ==", + "dev": true }, "y18n": { "version": "4.0.0", "resolved": "https://registry.npmjs.org/y18n/-/y18n-4.0.0.tgz", - "integrity": "sha512-r9S/ZyXu/Xu9q1tYlpsLIsa3EeLXXk0VwlxqTcFRfg9EhMW+17kbt9G0NrgCmhGb5vT2hyhJZLfDGx+7+5Uj/w==" + "integrity": "sha512-r9S/ZyXu/Xu9q1tYlpsLIsa3EeLXXk0VwlxqTcFRfg9EhMW+17kbt9G0NrgCmhGb5vT2hyhJZLfDGx+7+5Uj/w==", + "dev": true }, "yallist": { - "version": "3.0.3", - "resolved": "https://registry.npmjs.org/yallist/-/yallist-3.0.3.tgz", - "integrity": "sha512-S+Zk8DEWE6oKpV+vI3qWkaK+jSbIK86pCwe2IF/xwIpQ8jEuxpw9NyaGjmp9+BoJv5FV2piqCDcoCtStppiq2A==" + "version": "3.1.1", + "resolved": "https://registry.npmjs.org/yallist/-/yallist-3.1.1.tgz", + "integrity": "sha512-a4UGQaWPH59mOXUYnAG2ewncQS4i4F43Tv3JoAM+s2VDAmS9NsK8GpDMLrCHPksFT7h3K6TOoUNn2pb7RoXx4g==", + "dev": true }, "yargs": { "version": "12.0.5", "resolved": "https://registry.npmjs.org/yargs/-/yargs-12.0.5.tgz", "integrity": "sha512-Lhz8TLaYnxq/2ObqHDql8dX8CJi97oHxrjUcYtzKbbykPtVW9WB+poxI+NM2UIzsMgNCZTIf0AQwsjK5yMAqZw==", + "dev": true, "requires": { "cliui": "^4.0.0", "decamelize": "^1.2.0", @@ -8189,12 +10501,14 @@ "ansi-regex": { "version": "3.0.0", "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-3.0.0.tgz", - "integrity": "sha1-7QMXwyIGT3lGbAKWa922Bas32Zg=" + "integrity": "sha1-7QMXwyIGT3lGbAKWa922Bas32Zg=", + "dev": true }, "cliui": { "version": "4.1.0", "resolved": "https://registry.npmjs.org/cliui/-/cliui-4.1.0.tgz", "integrity": "sha512-4FG+RSG9DL7uEwRUZXZn3SS34DiDPfzP0VOiEwtUWlE+AR2EIg+hSyvrIgUUfhdgR/UkAeW2QHgeP+hWrXs7jQ==", + "dev": true, "requires": { "string-width": "^2.1.1", "strip-ansi": "^4.0.0", @@ -8204,12 +10518,14 @@ "get-caller-file": { "version": "1.0.3", "resolved": "https://registry.npmjs.org/get-caller-file/-/get-caller-file-1.0.3.tgz", - "integrity": "sha512-3t6rVToeoZfYSGd8YoLFR2DJkiQrIiUrGcjvFX2mDw3bn6k2OtwHN0TNCLbBO+w8qTvimhDkv+LSscbJY1vE6w==" + "integrity": "sha512-3t6rVToeoZfYSGd8YoLFR2DJkiQrIiUrGcjvFX2mDw3bn6k2OtwHN0TNCLbBO+w8qTvimhDkv+LSscbJY1vE6w==", + "dev": true }, "is-fullwidth-code-point": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-1.0.0.tgz", "integrity": "sha1-754xOG8DGn8NZDr4L95QxFfvAMs=", + "dev": true, "requires": { "number-is-nan": "^1.0.0" } @@ -8217,12 +10533,14 @@ "require-main-filename": { "version": "1.0.1", "resolved": "https://registry.npmjs.org/require-main-filename/-/require-main-filename-1.0.1.tgz", - "integrity": "sha1-l/cXtp1IeE9fUmpsWqj/3aBVpNE=" + "integrity": "sha1-l/cXtp1IeE9fUmpsWqj/3aBVpNE=", + "dev": true }, "strip-ansi": { "version": "4.0.0", "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-4.0.0.tgz", "integrity": "sha1-qEeQIusaw2iocTibY1JixQXuNo8=", + "dev": true, "requires": { "ansi-regex": "^3.0.0" } @@ -8231,6 +10549,7 @@ "version": "2.1.0", "resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-2.1.0.tgz", "integrity": "sha1-2Pw9KE3QV5T+hJc8rs3Rz4JP3YU=", + "dev": true, "requires": { "string-width": "^1.0.1", "strip-ansi": "^3.0.1" @@ -8239,12 +10558,14 @@ "ansi-regex": { "version": "2.1.1", "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-2.1.1.tgz", - "integrity": "sha1-w7M6te42DYbg5ijwRorn7yfWVN8=" + "integrity": "sha1-w7M6te42DYbg5ijwRorn7yfWVN8=", + "dev": true }, "string-width": { "version": "1.0.2", "resolved": "https://registry.npmjs.org/string-width/-/string-width-1.0.2.tgz", "integrity": "sha1-EYvfW4zcUaKn5w0hHgfisLmxB9M=", + "dev": true, "requires": { "code-point-at": "^1.0.0", "is-fullwidth-code-point": "^1.0.0", @@ -8255,6 +10576,7 @@ "version": "3.0.1", "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-3.0.1.tgz", "integrity": "sha1-ajhfuIU9lS1f8F0Oiq+UJ43GPc8=", + "dev": true, "requires": { "ansi-regex": "^2.0.0" } @@ -8265,6 +10587,7 @@ "version": "11.1.1", "resolved": "https://registry.npmjs.org/yargs-parser/-/yargs-parser-11.1.1.tgz", "integrity": "sha512-C6kB/WJDiaxONLJQnF8ccx9SEeoTTLek8RVbaOIsrAUS8VrBEXfmeSnCZxygc+XC2sNMBIwOOnfcxiynjHsVSQ==", + "dev": true, "requires": { "camelcase": "^5.0.0", "decamelize": "^1.2.0" @@ -8276,10 +10599,27 @@ "version": "13.1.1", "resolved": "https://registry.npmjs.org/yargs-parser/-/yargs-parser-13.1.1.tgz", "integrity": "sha512-oVAVsHz6uFrg3XQheFII8ESO2ssAf9luWuAd6Wexsu4F3OtIW0o8IribPXYrD4WC24LWtPrJlGy87y5udK+dxQ==", + "dev": true, "requires": { "camelcase": "^5.0.0", "decamelize": "^1.2.0" } + }, + "zen-observable": { + "version": "0.8.15", + "resolved": "https://registry.npmjs.org/zen-observable/-/zen-observable-0.8.15.tgz", + "integrity": "sha512-PQ2PC7R9rslx84ndNBZB/Dkv8V8fZEpk83RLgXtYd0fwUgEjseMn1Dgajh2x6S8QbZAFa9p2qVCEuYZNgve0dQ==", + "dev": true + }, + "zen-observable-ts": { + "version": "0.8.20", + "resolved": "https://registry.npmjs.org/zen-observable-ts/-/zen-observable-ts-0.8.20.tgz", + "integrity": "sha512-2rkjiPALhOtRaDX6pWyNqK1fnP5KkJJybYebopNSn6wDG1lxBoFs2+nwwXKoA6glHIrtwrfBBy6da0stkKtTAA==", + "dev": true, + "requires": { + "tslib": "^1.9.3", + "zen-observable": "^0.8.0" + } } } } diff --git a/package.json b/package.json index 88345d499..cddb6bdf3 100644 --- a/package.json +++ b/package.json @@ -14,8 +14,10 @@ }, "devDependencies": { "ant-design-vue": "^1.3.13", + "apollo-boost": "^0.4.4", "axios": "^0.19", "cross-env": "^5.1", + "graphql": "^14.5.8", "laravel-mix": "^4.1.2", "less": "^3.9.0", "less-loader": "^5.0.0", @@ -24,7 +26,17 @@ "resolve-url-loader": "^2.3.1", "vddl": "^0.7.1", "vue": "^2.5.17", + "vue-apollo": "^3.0.0", "vue-quill-editor": "^3.0.6", - "vue-template-compiler": "^2.6.10" + "vue-router": "^3.1.3", + "vue-template-compiler": "^2.6.10", + "apollo-cache-inmemory": "^1.6.3", + "apollo-client": "^2.6.4", + "apollo-link": "^1.2.13", + "apollo-link-http": "^1.5.16", + "graphql-tag": "^2.10.1" + }, + "dependencies": { + "vue-i18n": "^8.15.0" } } diff --git a/public/avored-admin/css/app.css b/public/avored-admin/css/app.css index 2eaf341dc..f45dc6eb6 100644 --- a/public/avored-admin/css/app.css +++ b/public/avored-admin/css/app.css @@ -1,5 +1,5 @@ /*! - * Quill Editor v1.3.6 + * Quill Editor v1.3.7 * https://quilljs.com/ * Copyright (c) 2014, Jason Chen * Copyright (c) 2013, salesforce.com @@ -396,283 +396,8 @@ position: absolute; right: 15px; } -var map = { - "./af": "./node_modules/moment/locale/af.js", - "./af.js": "./node_modules/moment/locale/af.js", - "./ar": "./node_modules/moment/locale/ar.js", - "./ar-dz": "./node_modules/moment/locale/ar-dz.js", - "./ar-dz.js": "./node_modules/moment/locale/ar-dz.js", - "./ar-kw": "./node_modules/moment/locale/ar-kw.js", - "./ar-kw.js": "./node_modules/moment/locale/ar-kw.js", - "./ar-ly": "./node_modules/moment/locale/ar-ly.js", - "./ar-ly.js": "./node_modules/moment/locale/ar-ly.js", - "./ar-ma": "./node_modules/moment/locale/ar-ma.js", - "./ar-ma.js": "./node_modules/moment/locale/ar-ma.js", - "./ar-sa": "./node_modules/moment/locale/ar-sa.js", - "./ar-sa.js": "./node_modules/moment/locale/ar-sa.js", - "./ar-tn": "./node_modules/moment/locale/ar-tn.js", - "./ar-tn.js": "./node_modules/moment/locale/ar-tn.js", - "./ar.js": "./node_modules/moment/locale/ar.js", - "./az": "./node_modules/moment/locale/az.js", - "./az.js": "./node_modules/moment/locale/az.js", - "./be": "./node_modules/moment/locale/be.js", - "./be.js": "./node_modules/moment/locale/be.js", - "./bg": "./node_modules/moment/locale/bg.js", - "./bg.js": "./node_modules/moment/locale/bg.js", - "./bm": "./node_modules/moment/locale/bm.js", - "./bm.js": "./node_modules/moment/locale/bm.js", - "./bn": "./node_modules/moment/locale/bn.js", - "./bn.js": "./node_modules/moment/locale/bn.js", - "./bo": "./node_modules/moment/locale/bo.js", - "./bo.js": "./node_modules/moment/locale/bo.js", - "./br": "./node_modules/moment/locale/br.js", - "./br.js": "./node_modules/moment/locale/br.js", - "./bs": "./node_modules/moment/locale/bs.js", - "./bs.js": "./node_modules/moment/locale/bs.js", - "./ca": "./node_modules/moment/locale/ca.js", - "./ca.js": "./node_modules/moment/locale/ca.js", - "./cs": "./node_modules/moment/locale/cs.js", - "./cs.js": "./node_modules/moment/locale/cs.js", - "./cv": "./node_modules/moment/locale/cv.js", - "./cv.js": "./node_modules/moment/locale/cv.js", - "./cy": "./node_modules/moment/locale/cy.js", - "./cy.js": "./node_modules/moment/locale/cy.js", - "./da": "./node_modules/moment/locale/da.js", - "./da.js": "./node_modules/moment/locale/da.js", - "./de": "./node_modules/moment/locale/de.js", - "./de-at": "./node_modules/moment/locale/de-at.js", - "./de-at.js": "./node_modules/moment/locale/de-at.js", - "./de-ch": "./node_modules/moment/locale/de-ch.js", - "./de-ch.js": "./node_modules/moment/locale/de-ch.js", - "./de.js": "./node_modules/moment/locale/de.js", - "./dv": "./node_modules/moment/locale/dv.js", - "./dv.js": "./node_modules/moment/locale/dv.js", - "./el": "./node_modules/moment/locale/el.js", - "./el.js": "./node_modules/moment/locale/el.js", - "./en-SG": "./node_modules/moment/locale/en-SG.js", - "./en-SG.js": "./node_modules/moment/locale/en-SG.js", - "./en-au": "./node_modules/moment/locale/en-au.js", - "./en-au.js": "./node_modules/moment/locale/en-au.js", - "./en-ca": "./node_modules/moment/locale/en-ca.js", - "./en-ca.js": "./node_modules/moment/locale/en-ca.js", - "./en-gb": "./node_modules/moment/locale/en-gb.js", - "./en-gb.js": "./node_modules/moment/locale/en-gb.js", - "./en-ie": "./node_modules/moment/locale/en-ie.js", - "./en-ie.js": "./node_modules/moment/locale/en-ie.js", - "./en-il": "./node_modules/moment/locale/en-il.js", - "./en-il.js": "./node_modules/moment/locale/en-il.js", - "./en-nz": "./node_modules/moment/locale/en-nz.js", - "./en-nz.js": "./node_modules/moment/locale/en-nz.js", - "./eo": "./node_modules/moment/locale/eo.js", - "./eo.js": "./node_modules/moment/locale/eo.js", - "./es": "./node_modules/moment/locale/es.js", - "./es-do": "./node_modules/moment/locale/es-do.js", - "./es-do.js": "./node_modules/moment/locale/es-do.js", - "./es-us": "./node_modules/moment/locale/es-us.js", - "./es-us.js": "./node_modules/moment/locale/es-us.js", - "./es.js": "./node_modules/moment/locale/es.js", - "./et": "./node_modules/moment/locale/et.js", - "./et.js": "./node_modules/moment/locale/et.js", - "./eu": "./node_modules/moment/locale/eu.js", - "./eu.js": "./node_modules/moment/locale/eu.js", - "./fa": "./node_modules/moment/locale/fa.js", - "./fa.js": "./node_modules/moment/locale/fa.js", - "./fi": "./node_modules/moment/locale/fi.js", - "./fi.js": "./node_modules/moment/locale/fi.js", - "./fo": "./node_modules/moment/locale/fo.js", - "./fo.js": "./node_modules/moment/locale/fo.js", - "./fr": "./node_modules/moment/locale/fr.js", - "./fr-ca": "./node_modules/moment/locale/fr-ca.js", - "./fr-ca.js": "./node_modules/moment/locale/fr-ca.js", - "./fr-ch": "./node_modules/moment/locale/fr-ch.js", - "./fr-ch.js": "./node_modules/moment/locale/fr-ch.js", - "./fr.js": "./node_modules/moment/locale/fr.js", - "./fy": "./node_modules/moment/locale/fy.js", - "./fy.js": "./node_modules/moment/locale/fy.js", - "./ga": "./node_modules/moment/locale/ga.js", - "./ga.js": "./node_modules/moment/locale/ga.js", - "./gd": "./node_modules/moment/locale/gd.js", - "./gd.js": "./node_modules/moment/locale/gd.js", - "./gl": "./node_modules/moment/locale/gl.js", - "./gl.js": "./node_modules/moment/locale/gl.js", - "./gom-latn": "./node_modules/moment/locale/gom-latn.js", - "./gom-latn.js": "./node_modules/moment/locale/gom-latn.js", - "./gu": "./node_modules/moment/locale/gu.js", - "./gu.js": "./node_modules/moment/locale/gu.js", - "./he": "./node_modules/moment/locale/he.js", - "./he.js": "./node_modules/moment/locale/he.js", - "./hi": "./node_modules/moment/locale/hi.js", - "./hi.js": "./node_modules/moment/locale/hi.js", - "./hr": "./node_modules/moment/locale/hr.js", - "./hr.js": "./node_modules/moment/locale/hr.js", - "./hu": "./node_modules/moment/locale/hu.js", - "./hu.js": "./node_modules/moment/locale/hu.js", - "./hy-am": "./node_modules/moment/locale/hy-am.js", - "./hy-am.js": "./node_modules/moment/locale/hy-am.js", - "./id": "./node_modules/moment/locale/id.js", - "./id.js": "./node_modules/moment/locale/id.js", - "./is": "./node_modules/moment/locale/is.js", - "./is.js": "./node_modules/moment/locale/is.js", - "./it": "./node_modules/moment/locale/it.js", - "./it-ch": "./node_modules/moment/locale/it-ch.js", - "./it-ch.js": "./node_modules/moment/locale/it-ch.js", - "./it.js": "./node_modules/moment/locale/it.js", - "./ja": "./node_modules/moment/locale/ja.js", - "./ja.js": "./node_modules/moment/locale/ja.js", - "./jv": "./node_modules/moment/locale/jv.js", - "./jv.js": "./node_modules/moment/locale/jv.js", - "./ka": "./node_modules/moment/locale/ka.js", - "./ka.js": "./node_modules/moment/locale/ka.js", - "./kk": "./node_modules/moment/locale/kk.js", - "./kk.js": "./node_modules/moment/locale/kk.js", - "./km": "./node_modules/moment/locale/km.js", - "./km.js": "./node_modules/moment/locale/km.js", - "./kn": "./node_modules/moment/locale/kn.js", - "./kn.js": "./node_modules/moment/locale/kn.js", - "./ko": "./node_modules/moment/locale/ko.js", - "./ko.js": "./node_modules/moment/locale/ko.js", - "./ku": "./node_modules/moment/locale/ku.js", - "./ku.js": "./node_modules/moment/locale/ku.js", - "./ky": "./node_modules/moment/locale/ky.js", - "./ky.js": "./node_modules/moment/locale/ky.js", - "./lb": "./node_modules/moment/locale/lb.js", - "./lb.js": "./node_modules/moment/locale/lb.js", - "./lo": "./node_modules/moment/locale/lo.js", - "./lo.js": "./node_modules/moment/locale/lo.js", - "./lt": "./node_modules/moment/locale/lt.js", - "./lt.js": "./node_modules/moment/locale/lt.js", - "./lv": "./node_modules/moment/locale/lv.js", - "./lv.js": "./node_modules/moment/locale/lv.js", - "./me": "./node_modules/moment/locale/me.js", - "./me.js": "./node_modules/moment/locale/me.js", - "./mi": "./node_modules/moment/locale/mi.js", - "./mi.js": "./node_modules/moment/locale/mi.js", - "./mk": "./node_modules/moment/locale/mk.js", - "./mk.js": "./node_modules/moment/locale/mk.js", - "./ml": "./node_modules/moment/locale/ml.js", - "./ml.js": "./node_modules/moment/locale/ml.js", - "./mn": "./node_modules/moment/locale/mn.js", - "./mn.js": "./node_modules/moment/locale/mn.js", - "./mr": "./node_modules/moment/locale/mr.js", - "./mr.js": "./node_modules/moment/locale/mr.js", - "./ms": "./node_modules/moment/locale/ms.js", - "./ms-my": "./node_modules/moment/locale/ms-my.js", - "./ms-my.js": "./node_modules/moment/locale/ms-my.js", - "./ms.js": "./node_modules/moment/locale/ms.js", - "./mt": "./node_modules/moment/locale/mt.js", - "./mt.js": "./node_modules/moment/locale/mt.js", - "./my": "./node_modules/moment/locale/my.js", - "./my.js": "./node_modules/moment/locale/my.js", - "./nb": "./node_modules/moment/locale/nb.js", - "./nb.js": "./node_modules/moment/locale/nb.js", - "./ne": "./node_modules/moment/locale/ne.js", - "./ne.js": "./node_modules/moment/locale/ne.js", - "./nl": "./node_modules/moment/locale/nl.js", - "./nl-be": "./node_modules/moment/locale/nl-be.js", - "./nl-be.js": "./node_modules/moment/locale/nl-be.js", - "./nl.js": "./node_modules/moment/locale/nl.js", - "./nn": "./node_modules/moment/locale/nn.js", - "./nn.js": "./node_modules/moment/locale/nn.js", - "./pa-in": "./node_modules/moment/locale/pa-in.js", - "./pa-in.js": "./node_modules/moment/locale/pa-in.js", - "./pl": "./node_modules/moment/locale/pl.js", - "./pl.js": "./node_modules/moment/locale/pl.js", - "./pt": "./node_modules/moment/locale/pt.js", - "./pt-br": "./node_modules/moment/locale/pt-br.js", - "./pt-br.js": "./node_modules/moment/locale/pt-br.js", - "./pt.js": "./node_modules/moment/locale/pt.js", - "./ro": "./node_modules/moment/locale/ro.js", - "./ro.js": "./node_modules/moment/locale/ro.js", - "./ru": "./node_modules/moment/locale/ru.js", - "./ru.js": "./node_modules/moment/locale/ru.js", - "./sd": "./node_modules/moment/locale/sd.js", - "./sd.js": "./node_modules/moment/locale/sd.js", - "./se": "./node_modules/moment/locale/se.js", - "./se.js": "./node_modules/moment/locale/se.js", - "./si": "./node_modules/moment/locale/si.js", - "./si.js": "./node_modules/moment/locale/si.js", - "./sk": "./node_modules/moment/locale/sk.js", - "./sk.js": "./node_modules/moment/locale/sk.js", - "./sl": "./node_modules/moment/locale/sl.js", - "./sl.js": "./node_modules/moment/locale/sl.js", - "./sq": "./node_modules/moment/locale/sq.js", - "./sq.js": "./node_modules/moment/locale/sq.js", - "./sr": "./node_modules/moment/locale/sr.js", - "./sr-cyrl": "./node_modules/moment/locale/sr-cyrl.js", - "./sr-cyrl.js": "./node_modules/moment/locale/sr-cyrl.js", - "./sr.js": "./node_modules/moment/locale/sr.js", - "./ss": "./node_modules/moment/locale/ss.js", - "./ss.js": "./node_modules/moment/locale/ss.js", - "./sv": "./node_modules/moment/locale/sv.js", - "./sv.js": "./node_modules/moment/locale/sv.js", - "./sw": "./node_modules/moment/locale/sw.js", - "./sw.js": "./node_modules/moment/locale/sw.js", - "./ta": "./node_modules/moment/locale/ta.js", - "./ta.js": "./node_modules/moment/locale/ta.js", - "./te": "./node_modules/moment/locale/te.js", - "./te.js": "./node_modules/moment/locale/te.js", - "./tet": "./node_modules/moment/locale/tet.js", - "./tet.js": "./node_modules/moment/locale/tet.js", - "./tg": "./node_modules/moment/locale/tg.js", - "./tg.js": "./node_modules/moment/locale/tg.js", - "./th": "./node_modules/moment/locale/th.js", - "./th.js": "./node_modules/moment/locale/th.js", - "./tl-ph": "./node_modules/moment/locale/tl-ph.js", - "./tl-ph.js": "./node_modules/moment/locale/tl-ph.js", - "./tlh": "./node_modules/moment/locale/tlh.js", - "./tlh.js": "./node_modules/moment/locale/tlh.js", - "./tr": "./node_modules/moment/locale/tr.js", - "./tr.js": "./node_modules/moment/locale/tr.js", - "./tzl": "./node_modules/moment/locale/tzl.js", - "./tzl.js": "./node_modules/moment/locale/tzl.js", - "./tzm": "./node_modules/moment/locale/tzm.js", - "./tzm-latn": "./node_modules/moment/locale/tzm-latn.js", - "./tzm-latn.js": "./node_modules/moment/locale/tzm-latn.js", - "./tzm.js": "./node_modules/moment/locale/tzm.js", - "./ug-cn": "./node_modules/moment/locale/ug-cn.js", - "./ug-cn.js": "./node_modules/moment/locale/ug-cn.js", - "./uk": "./node_modules/moment/locale/uk.js", - "./uk.js": "./node_modules/moment/locale/uk.js", - "./ur": "./node_modules/moment/locale/ur.js", - "./ur.js": "./node_modules/moment/locale/ur.js", - "./uz": "./node_modules/moment/locale/uz.js", - "./uz-latn": "./node_modules/moment/locale/uz-latn.js", - "./uz-latn.js": "./node_modules/moment/locale/uz-latn.js", - "./uz.js": "./node_modules/moment/locale/uz.js", - "./vi": "./node_modules/moment/locale/vi.js", - "./vi.js": "./node_modules/moment/locale/vi.js", - "./x-pseudo": "./node_modules/moment/locale/x-pseudo.js", - "./x-pseudo.js": "./node_modules/moment/locale/x-pseudo.js", - "./yo": "./node_modules/moment/locale/yo.js", - "./yo.js": "./node_modules/moment/locale/yo.js", - "./zh-cn": "./node_modules/moment/locale/zh-cn.js", - "./zh-cn.js": "./node_modules/moment/locale/zh-cn.js", - "./zh-hk": "./node_modules/moment/locale/zh-hk.js", - "./zh-hk.js": "./node_modules/moment/locale/zh-hk.js", - "./zh-tw": "./node_modules/moment/locale/zh-tw.js", - "./zh-tw.js": "./node_modules/moment/locale/zh-tw.js" -}; - - -function webpackContext(req) { - var id = webpackContextResolve(req); - return __webpack_require__(id); -} -function webpackContextResolve(req) { - if(!__webpack_require__.o(map, req)) { - var e = new Error("Cannot find module '" + req + "'"); - e.code = 'MODULE_NOT_FOUND'; - throw e; - } - return map[req]; -} -webpackContext.keys = function webpackContextKeys() { - return Object.keys(map); -}; -webpackContext.resolve = webpackContextResolve; -module.exports = webpackContext; -webpackContext.id = "./node_modules/moment/locale sync recursive ^\\.\\/.*$";/*! - * Quill Editor v1.3.6 +/*! + * Quill Editor v1.3.7 * https://quilljs.com/ * Copyright (c) 2014, Jason Chen * Copyright (c) 2013, salesforce.com @@ -1208,14 +933,16 @@ webpackContext.id = "./node_modules/moment/locale sync recursive ^\\.\\/.*$";/*! } .ql-snow .ql-tooltip { position: absolute; - transform: translateY(10px); + -webkit-transform: translateY(10px); + transform: translateY(10px); } .ql-snow .ql-tooltip a { cursor: pointer; text-decoration: none; } .ql-snow .ql-tooltip.ql-flip { - transform: translateY(-10px); + -webkit-transform: translateY(-10px); + transform: translateY(-10px); } .ql-snow .ql-formats { display: inline-block; @@ -1622,11 +1349,6 @@ webpackContext.id = "./node_modules/moment/locale sync recursive ^\\.\\/.*$";/*! /* stylelint-disable */ /* stylelint-disable declaration-bang-space-before,no-duplicate-selectors,string-no-newline */ /* stylelint-disable at-rule-no-unknown */ -@font-face { - font-family: 'Chinese Quote'; - src: local('PingFang SC'), local('SimSun'); - unicode-range: U+2018, U+2019, U+201c, U+201d; -} html, body { width: 100%; @@ -1667,12 +1389,13 @@ section { } body { margin: 0; - font-family: "Chinese Quote", -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"; + color: rgba(0, 0, 0, 0.65); font-size: 14px; + font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', 'Helvetica Neue', Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol'; font-variant: tabular-nums; line-height: 1.5; - color: rgba(0, 0, 0, 0.65); background-color: #fff; + font-feature-settings: 'tnum'; } [tabindex='-1']:focus { outline: none !important; @@ -1702,8 +1425,8 @@ abbr[data-original-title] { text-decoration: underline; -webkit-text-decoration: underline dotted; text-decoration: underline dotted; - cursor: help; border-bottom: 0; + cursor: help; } address { margin-bottom: 1em; @@ -1763,10 +1486,11 @@ sup { } a { color: #C12E32; - background-color: transparent; text-decoration: none; + background-color: transparent; outline: none; cursor: pointer; + -webkit-transition: color 0.3s; transition: color 0.3s; -webkit-text-decoration-skip: objects; } @@ -1783,8 +1507,8 @@ a:active { } a:active, a:hover { - outline: 0; text-decoration: none; + outline: 0; } a[disabled] { color: rgba(0, 0, 0, 0.25); @@ -1795,8 +1519,8 @@ pre, code, kbd, samp { - font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, Courier, monospace; font-size: 1em; + font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, Courier, monospace; } pre { margin-top: 0; @@ -1843,10 +1567,10 @@ select, optgroup, textarea { margin: 0; - font-family: inherit; + color: inherit; font-size: inherit; + font-family: inherit; line-height: inherit; - color: inherit; } button, input { @@ -1886,19 +1610,19 @@ textarea { } fieldset { min-width: 0; - padding: 0; margin: 0; + padding: 0; border: 0; } legend { display: block; width: 100%; max-width: 100%; - padding: 0; margin-bottom: 0.5em; + padding: 0; + color: inherit; font-size: 1.5em; line-height: inherit; - color: inherit; white-space: normal; } progress { @@ -1937,31 +1661,31 @@ mark { background-color: #feffe6; } ::-moz-selection { - background: #E64448; color: #fff; + background: #E64448; } ::selection { - background: #E64448; color: #fff; + background: #E64448; } .clearfix { zoom: 1; } -.clearfix:before, -.clearfix:after { +.clearfix::before, +.clearfix::after { content: ''; display: table; } -.clearfix:after { +.clearfix::after { clear: both; } .anticon { display: inline-block; font-style: normal; - vertical-align: -0.125em; + line-height: 0; text-align: center; text-transform: none; - line-height: 0; + vertical-align: -0.125em; text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; @@ -1972,13 +1696,16 @@ mark { .anticon svg { display: inline-block; } -.anticon:before { +.anticon::before { display: none; } .anticon .anticon-icon { display: block; } -.anticon-spin:before { +.anticon[tabindex] { + cursor: pointer; +} +.anticon-spin::before { display: inline-block; -webkit-animation: loadingCircle 1s infinite linear; animation: loadingCircle 1s infinite linear; @@ -2227,243 +1954,309 @@ mark { } @-webkit-keyframes antMoveDownIn { 0% { - transform-origin: 0 0; - transform: translateY(100%); + -webkit-transform: translateY(100%); + transform: translateY(100%); + -webkit-transform-origin: 0 0; + transform-origin: 0 0; opacity: 0; } 100% { - transform-origin: 0 0; - transform: translateY(0%); + -webkit-transform: translateY(0%); + transform: translateY(0%); + -webkit-transform-origin: 0 0; + transform-origin: 0 0; opacity: 1; } } @keyframes antMoveDownIn { 0% { - transform-origin: 0 0; - transform: translateY(100%); + -webkit-transform: translateY(100%); + transform: translateY(100%); + -webkit-transform-origin: 0 0; + transform-origin: 0 0; opacity: 0; } 100% { - transform-origin: 0 0; - transform: translateY(0%); + -webkit-transform: translateY(0%); + transform: translateY(0%); + -webkit-transform-origin: 0 0; + transform-origin: 0 0; opacity: 1; } } @-webkit-keyframes antMoveDownOut { 0% { - transform-origin: 0 0; - transform: translateY(0%); + -webkit-transform: translateY(0%); + transform: translateY(0%); + -webkit-transform-origin: 0 0; + transform-origin: 0 0; opacity: 1; } 100% { - transform-origin: 0 0; - transform: translateY(100%); + -webkit-transform: translateY(100%); + transform: translateY(100%); + -webkit-transform-origin: 0 0; + transform-origin: 0 0; opacity: 0; } } @keyframes antMoveDownOut { 0% { - transform-origin: 0 0; - transform: translateY(0%); + -webkit-transform: translateY(0%); + transform: translateY(0%); + -webkit-transform-origin: 0 0; + transform-origin: 0 0; opacity: 1; } 100% { - transform-origin: 0 0; - transform: translateY(100%); + -webkit-transform: translateY(100%); + transform: translateY(100%); + -webkit-transform-origin: 0 0; + transform-origin: 0 0; opacity: 0; } } @-webkit-keyframes antMoveLeftIn { 0% { - transform-origin: 0 0; - transform: translateX(-100%); + -webkit-transform: translateX(-100%); + transform: translateX(-100%); + -webkit-transform-origin: 0 0; + transform-origin: 0 0; opacity: 0; } 100% { - transform-origin: 0 0; - transform: translateX(0%); + -webkit-transform: translateX(0%); + transform: translateX(0%); + -webkit-transform-origin: 0 0; + transform-origin: 0 0; opacity: 1; } } @keyframes antMoveLeftIn { 0% { - transform-origin: 0 0; - transform: translateX(-100%); + -webkit-transform: translateX(-100%); + transform: translateX(-100%); + -webkit-transform-origin: 0 0; + transform-origin: 0 0; opacity: 0; } 100% { - transform-origin: 0 0; - transform: translateX(0%); + -webkit-transform: translateX(0%); + transform: translateX(0%); + -webkit-transform-origin: 0 0; + transform-origin: 0 0; opacity: 1; } } @-webkit-keyframes antMoveLeftOut { 0% { - transform-origin: 0 0; - transform: translateX(0%); + -webkit-transform: translateX(0%); + transform: translateX(0%); + -webkit-transform-origin: 0 0; + transform-origin: 0 0; opacity: 1; } 100% { - transform-origin: 0 0; - transform: translateX(-100%); + -webkit-transform: translateX(-100%); + transform: translateX(-100%); + -webkit-transform-origin: 0 0; + transform-origin: 0 0; opacity: 0; } } @keyframes antMoveLeftOut { 0% { - transform-origin: 0 0; - transform: translateX(0%); + -webkit-transform: translateX(0%); + transform: translateX(0%); + -webkit-transform-origin: 0 0; + transform-origin: 0 0; opacity: 1; } 100% { - transform-origin: 0 0; - transform: translateX(-100%); + -webkit-transform: translateX(-100%); + transform: translateX(-100%); + -webkit-transform-origin: 0 0; + transform-origin: 0 0; opacity: 0; } } @-webkit-keyframes antMoveRightIn { 0% { + -webkit-transform: translateX(100%); + transform: translateX(100%); + -webkit-transform-origin: 0 0; + transform-origin: 0 0; opacity: 0; - transform-origin: 0 0; - transform: translateX(100%); } 100% { + -webkit-transform: translateX(0%); + transform: translateX(0%); + -webkit-transform-origin: 0 0; + transform-origin: 0 0; opacity: 1; - transform-origin: 0 0; - transform: translateX(0%); } } @keyframes antMoveRightIn { 0% { + -webkit-transform: translateX(100%); + transform: translateX(100%); + -webkit-transform-origin: 0 0; + transform-origin: 0 0; opacity: 0; - transform-origin: 0 0; - transform: translateX(100%); } 100% { + -webkit-transform: translateX(0%); + transform: translateX(0%); + -webkit-transform-origin: 0 0; + transform-origin: 0 0; opacity: 1; - transform-origin: 0 0; - transform: translateX(0%); } } @-webkit-keyframes antMoveRightOut { 0% { - transform-origin: 0 0; - transform: translateX(0%); + -webkit-transform: translateX(0%); + transform: translateX(0%); + -webkit-transform-origin: 0 0; + transform-origin: 0 0; opacity: 1; } 100% { - transform-origin: 0 0; - transform: translateX(100%); + -webkit-transform: translateX(100%); + transform: translateX(100%); + -webkit-transform-origin: 0 0; + transform-origin: 0 0; opacity: 0; } } @keyframes antMoveRightOut { 0% { - transform-origin: 0 0; - transform: translateX(0%); + -webkit-transform: translateX(0%); + transform: translateX(0%); + -webkit-transform-origin: 0 0; + transform-origin: 0 0; opacity: 1; } 100% { - transform-origin: 0 0; - transform: translateX(100%); + -webkit-transform: translateX(100%); + transform: translateX(100%); + -webkit-transform-origin: 0 0; + transform-origin: 0 0; opacity: 0; } } @-webkit-keyframes antMoveUpIn { 0% { - transform-origin: 0 0; - transform: translateY(-100%); + -webkit-transform: translateY(-100%); + transform: translateY(-100%); + -webkit-transform-origin: 0 0; + transform-origin: 0 0; opacity: 0; } 100% { - transform-origin: 0 0; - transform: translateY(0%); + -webkit-transform: translateY(0%); + transform: translateY(0%); + -webkit-transform-origin: 0 0; + transform-origin: 0 0; opacity: 1; } } @keyframes antMoveUpIn { 0% { - transform-origin: 0 0; - transform: translateY(-100%); + -webkit-transform: translateY(-100%); + transform: translateY(-100%); + -webkit-transform-origin: 0 0; + transform-origin: 0 0; opacity: 0; } 100% { - transform-origin: 0 0; - transform: translateY(0%); + -webkit-transform: translateY(0%); + transform: translateY(0%); + -webkit-transform-origin: 0 0; + transform-origin: 0 0; opacity: 1; } } @-webkit-keyframes antMoveUpOut { 0% { - transform-origin: 0 0; - transform: translateY(0%); + -webkit-transform: translateY(0%); + transform: translateY(0%); + -webkit-transform-origin: 0 0; + transform-origin: 0 0; opacity: 1; } 100% { - transform-origin: 0 0; - transform: translateY(-100%); + -webkit-transform: translateY(-100%); + transform: translateY(-100%); + -webkit-transform-origin: 0 0; + transform-origin: 0 0; opacity: 0; } } @keyframes antMoveUpOut { 0% { - transform-origin: 0 0; - transform: translateY(0%); + -webkit-transform: translateY(0%); + transform: translateY(0%); + -webkit-transform-origin: 0 0; + transform-origin: 0 0; opacity: 1; } 100% { - transform-origin: 0 0; - transform: translateY(-100%); + -webkit-transform: translateY(-100%); + transform: translateY(-100%); + -webkit-transform-origin: 0 0; + transform-origin: 0 0; opacity: 0; } } @-webkit-keyframes loadingCircle { 100% { - transform: rotate(360deg); + -webkit-transform: rotate(360deg); + transform: rotate(360deg); } } @keyframes loadingCircle { 100% { - transform: rotate(360deg); + -webkit-transform: rotate(360deg); + transform: rotate(360deg); } } -[ant-click-animating], -[ant-click-animating-without-extra-node] { +[ant-click-animating='true'], +[ant-click-animating-without-extra-node='true'] { position: relative; } -[ant-click-animating-without-extra-node]:after, +[ant-click-animating-without-extra-node='true']::after, .ant-click-animating-node { - content: ''; position: absolute; top: -1px; - left: -1px; - bottom: -1px; right: -1px; - border-radius: inherit; + bottom: -1px; + left: -1px; + display: block; border: 0 solid #E64448; + border-radius: inherit; opacity: 0.2; -webkit-animation: fadeEffect 2s cubic-bezier(0.08, 0.82, 0.17, 1), waveEffect 0.4s cubic-bezier(0.08, 0.82, 0.17, 1); animation: fadeEffect 2s cubic-bezier(0.08, 0.82, 0.17, 1), waveEffect 0.4s cubic-bezier(0.08, 0.82, 0.17, 1); -webkit-animation-fill-mode: forwards; animation-fill-mode: forwards; - display: block; pointer-events: none; + content: ''; } @-webkit-keyframes waveEffect { 100% { top: -6px; - left: -6px; - bottom: -6px; right: -6px; + bottom: -6px; + left: -6px; border-width: 6px; } } @keyframes waveEffect { 100% { top: -6px; - left: -6px; - bottom: -6px; right: -6px; + bottom: -6px; + left: -6px; border-width: 6px; } } @@ -2643,194 +2436,258 @@ mark { } @-webkit-keyframes antSlideUpIn { 0% { + -webkit-transform: scaleY(0.8); + transform: scaleY(0.8); + -webkit-transform-origin: 0% 0%; + transform-origin: 0% 0%; opacity: 0; - transform-origin: 0% 0%; - transform: scaleY(0.8); } 100% { + -webkit-transform: scaleY(1); + transform: scaleY(1); + -webkit-transform-origin: 0% 0%; + transform-origin: 0% 0%; opacity: 1; - transform-origin: 0% 0%; - transform: scaleY(1); } } @keyframes antSlideUpIn { 0% { + -webkit-transform: scaleY(0.8); + transform: scaleY(0.8); + -webkit-transform-origin: 0% 0%; + transform-origin: 0% 0%; opacity: 0; - transform-origin: 0% 0%; - transform: scaleY(0.8); } 100% { + -webkit-transform: scaleY(1); + transform: scaleY(1); + -webkit-transform-origin: 0% 0%; + transform-origin: 0% 0%; opacity: 1; - transform-origin: 0% 0%; - transform: scaleY(1); } } @-webkit-keyframes antSlideUpOut { 0% { + -webkit-transform: scaleY(1); + transform: scaleY(1); + -webkit-transform-origin: 0% 0%; + transform-origin: 0% 0%; opacity: 1; - transform-origin: 0% 0%; - transform: scaleY(1); } 100% { + -webkit-transform: scaleY(0.8); + transform: scaleY(0.8); + -webkit-transform-origin: 0% 0%; + transform-origin: 0% 0%; opacity: 0; - transform-origin: 0% 0%; - transform: scaleY(0.8); } } @keyframes antSlideUpOut { 0% { + -webkit-transform: scaleY(1); + transform: scaleY(1); + -webkit-transform-origin: 0% 0%; + transform-origin: 0% 0%; opacity: 1; - transform-origin: 0% 0%; - transform: scaleY(1); } 100% { + -webkit-transform: scaleY(0.8); + transform: scaleY(0.8); + -webkit-transform-origin: 0% 0%; + transform-origin: 0% 0%; opacity: 0; - transform-origin: 0% 0%; - transform: scaleY(0.8); } } @-webkit-keyframes antSlideDownIn { 0% { + -webkit-transform: scaleY(0.8); + transform: scaleY(0.8); + -webkit-transform-origin: 100% 100%; + transform-origin: 100% 100%; opacity: 0; - transform-origin: 100% 100%; - transform: scaleY(0.8); } 100% { + -webkit-transform: scaleY(1); + transform: scaleY(1); + -webkit-transform-origin: 100% 100%; + transform-origin: 100% 100%; opacity: 1; - transform-origin: 100% 100%; - transform: scaleY(1); } } @keyframes antSlideDownIn { 0% { + -webkit-transform: scaleY(0.8); + transform: scaleY(0.8); + -webkit-transform-origin: 100% 100%; + transform-origin: 100% 100%; opacity: 0; - transform-origin: 100% 100%; - transform: scaleY(0.8); } 100% { + -webkit-transform: scaleY(1); + transform: scaleY(1); + -webkit-transform-origin: 100% 100%; + transform-origin: 100% 100%; opacity: 1; - transform-origin: 100% 100%; - transform: scaleY(1); } } @-webkit-keyframes antSlideDownOut { 0% { + -webkit-transform: scaleY(1); + transform: scaleY(1); + -webkit-transform-origin: 100% 100%; + transform-origin: 100% 100%; opacity: 1; - transform-origin: 100% 100%; - transform: scaleY(1); } 100% { + -webkit-transform: scaleY(0.8); + transform: scaleY(0.8); + -webkit-transform-origin: 100% 100%; + transform-origin: 100% 100%; opacity: 0; - transform-origin: 100% 100%; - transform: scaleY(0.8); } } @keyframes antSlideDownOut { 0% { + -webkit-transform: scaleY(1); + transform: scaleY(1); + -webkit-transform-origin: 100% 100%; + transform-origin: 100% 100%; opacity: 1; - transform-origin: 100% 100%; - transform: scaleY(1); } 100% { + -webkit-transform: scaleY(0.8); + transform: scaleY(0.8); + -webkit-transform-origin: 100% 100%; + transform-origin: 100% 100%; opacity: 0; - transform-origin: 100% 100%; - transform: scaleY(0.8); } } @-webkit-keyframes antSlideLeftIn { 0% { + -webkit-transform: scaleX(0.8); + transform: scaleX(0.8); + -webkit-transform-origin: 0% 0%; + transform-origin: 0% 0%; opacity: 0; - transform-origin: 0% 0%; - transform: scaleX(0.8); } 100% { + -webkit-transform: scaleX(1); + transform: scaleX(1); + -webkit-transform-origin: 0% 0%; + transform-origin: 0% 0%; opacity: 1; - transform-origin: 0% 0%; - transform: scaleX(1); } } @keyframes antSlideLeftIn { 0% { + -webkit-transform: scaleX(0.8); + transform: scaleX(0.8); + -webkit-transform-origin: 0% 0%; + transform-origin: 0% 0%; opacity: 0; - transform-origin: 0% 0%; - transform: scaleX(0.8); } 100% { + -webkit-transform: scaleX(1); + transform: scaleX(1); + -webkit-transform-origin: 0% 0%; + transform-origin: 0% 0%; opacity: 1; - transform-origin: 0% 0%; - transform: scaleX(1); } } @-webkit-keyframes antSlideLeftOut { 0% { + -webkit-transform: scaleX(1); + transform: scaleX(1); + -webkit-transform-origin: 0% 0%; + transform-origin: 0% 0%; opacity: 1; - transform-origin: 0% 0%; - transform: scaleX(1); } 100% { + -webkit-transform: scaleX(0.8); + transform: scaleX(0.8); + -webkit-transform-origin: 0% 0%; + transform-origin: 0% 0%; opacity: 0; - transform-origin: 0% 0%; - transform: scaleX(0.8); } } @keyframes antSlideLeftOut { 0% { + -webkit-transform: scaleX(1); + transform: scaleX(1); + -webkit-transform-origin: 0% 0%; + transform-origin: 0% 0%; opacity: 1; - transform-origin: 0% 0%; - transform: scaleX(1); } 100% { + -webkit-transform: scaleX(0.8); + transform: scaleX(0.8); + -webkit-transform-origin: 0% 0%; + transform-origin: 0% 0%; opacity: 0; - transform-origin: 0% 0%; - transform: scaleX(0.8); } } @-webkit-keyframes antSlideRightIn { 0% { + -webkit-transform: scaleX(0.8); + transform: scaleX(0.8); + -webkit-transform-origin: 100% 0%; + transform-origin: 100% 0%; opacity: 0; - transform-origin: 100% 0%; - transform: scaleX(0.8); } 100% { + -webkit-transform: scaleX(1); + transform: scaleX(1); + -webkit-transform-origin: 100% 0%; + transform-origin: 100% 0%; opacity: 1; - transform-origin: 100% 0%; - transform: scaleX(1); } } @keyframes antSlideRightIn { 0% { + -webkit-transform: scaleX(0.8); + transform: scaleX(0.8); + -webkit-transform-origin: 100% 0%; + transform-origin: 100% 0%; opacity: 0; - transform-origin: 100% 0%; - transform: scaleX(0.8); } 100% { + -webkit-transform: scaleX(1); + transform: scaleX(1); + -webkit-transform-origin: 100% 0%; + transform-origin: 100% 0%; opacity: 1; - transform-origin: 100% 0%; - transform: scaleX(1); } } @-webkit-keyframes antSlideRightOut { 0% { + -webkit-transform: scaleX(1); + transform: scaleX(1); + -webkit-transform-origin: 100% 0%; + transform-origin: 100% 0%; opacity: 1; - transform-origin: 100% 0%; - transform: scaleX(1); } 100% { + -webkit-transform: scaleX(0.8); + transform: scaleX(0.8); + -webkit-transform-origin: 100% 0%; + transform-origin: 100% 0%; opacity: 0; - transform-origin: 100% 0%; - transform: scaleX(0.8); } } @keyframes antSlideRightOut { 0% { + -webkit-transform: scaleX(1); + transform: scaleX(1); + -webkit-transform-origin: 100% 0%; + transform-origin: 100% 0%; opacity: 1; - transform-origin: 100% 0%; - transform: scaleX(1); } 100% { + -webkit-transform: scaleX(0.8); + transform: scaleX(0.8); + -webkit-transform-origin: 100% 0%; + transform-origin: 100% 0%; opacity: 0; - transform-origin: 100% 0%; - transform: scaleX(0.8); } } .swing-enter, @@ -2852,37 +2709,47 @@ mark { @-webkit-keyframes antSwingIn { 0%, 100% { - transform: translateX(0); + -webkit-transform: translateX(0); + transform: translateX(0); } 20% { - transform: translateX(-10px); + -webkit-transform: translateX(-10px); + transform: translateX(-10px); } 40% { - transform: translateX(10px); + -webkit-transform: translateX(10px); + transform: translateX(10px); } 60% { - transform: translateX(-5px); + -webkit-transform: translateX(-5px); + transform: translateX(-5px); } 80% { - transform: translateX(5px); + -webkit-transform: translateX(5px); + transform: translateX(5px); } } @keyframes antSwingIn { 0%, 100% { - transform: translateX(0); + -webkit-transform: translateX(0); + transform: translateX(0); } 20% { - transform: translateX(-10px); + -webkit-transform: translateX(-10px); + transform: translateX(-10px); } 40% { - transform: translateX(10px); + -webkit-transform: translateX(10px); + transform: translateX(10px); } 60% { - transform: translateX(-5px); + -webkit-transform: translateX(-5px); + transform: translateX(-5px); } 80% { - transform: translateX(5px); + -webkit-transform: translateX(5px); + transform: translateX(5px); } } .zoom-enter, @@ -2918,7 +2785,9 @@ mark { } .zoom-enter, .zoom-appear { - transform: scale(0); + -webkit-transform: scale(0); + transform: scale(0); + opacity: 0; -webkit-animation-timing-function: cubic-bezier(0.08, 0.82, 0.17, 1); animation-timing-function: cubic-bezier(0.08, 0.82, 0.17, 1); } @@ -2959,7 +2828,9 @@ mark { } .zoom-big-enter, .zoom-big-appear { - transform: scale(0); + -webkit-transform: scale(0); + transform: scale(0); + opacity: 0; -webkit-animation-timing-function: cubic-bezier(0.08, 0.82, 0.17, 1); animation-timing-function: cubic-bezier(0.08, 0.82, 0.17, 1); } @@ -3000,7 +2871,9 @@ mark { } .zoom-big-fast-enter, .zoom-big-fast-appear { - transform: scale(0); + -webkit-transform: scale(0); + transform: scale(0); + opacity: 0; -webkit-animation-timing-function: cubic-bezier(0.08, 0.82, 0.17, 1); animation-timing-function: cubic-bezier(0.08, 0.82, 0.17, 1); } @@ -3041,7 +2914,9 @@ mark { } .zoom-up-enter, .zoom-up-appear { - transform: scale(0); + -webkit-transform: scale(0); + transform: scale(0); + opacity: 0; -webkit-animation-timing-function: cubic-bezier(0.08, 0.82, 0.17, 1); animation-timing-function: cubic-bezier(0.08, 0.82, 0.17, 1); } @@ -3082,7 +2957,9 @@ mark { } .zoom-down-enter, .zoom-down-appear { - transform: scale(0); + -webkit-transform: scale(0); + transform: scale(0); + opacity: 0; -webkit-animation-timing-function: cubic-bezier(0.08, 0.82, 0.17, 1); animation-timing-function: cubic-bezier(0.08, 0.82, 0.17, 1); } @@ -3123,7 +3000,9 @@ mark { } .zoom-left-enter, .zoom-left-appear { - transform: scale(0); + -webkit-transform: scale(0); + transform: scale(0); + opacity: 0; -webkit-animation-timing-function: cubic-bezier(0.08, 0.82, 0.17, 1); animation-timing-function: cubic-bezier(0.08, 0.82, 0.17, 1); } @@ -3164,7 +3043,9 @@ mark { } .zoom-right-enter, .zoom-right-appear { - transform: scale(0); + -webkit-transform: scale(0); + transform: scale(0); + opacity: 0; -webkit-animation-timing-function: cubic-bezier(0.08, 0.82, 0.17, 1); animation-timing-function: cubic-bezier(0.08, 0.82, 0.17, 1); } @@ -3174,258 +3055,341 @@ mark { } @-webkit-keyframes antZoomIn { 0% { + -webkit-transform: scale(0.2); + transform: scale(0.2); opacity: 0; - transform: scale(0.2); } 100% { + -webkit-transform: scale(1); + transform: scale(1); opacity: 1; - transform: scale(1); } } @keyframes antZoomIn { 0% { + -webkit-transform: scale(0.2); + transform: scale(0.2); opacity: 0; - transform: scale(0.2); } 100% { + -webkit-transform: scale(1); + transform: scale(1); opacity: 1; - transform: scale(1); } } @-webkit-keyframes antZoomOut { 0% { - transform: scale(1); + -webkit-transform: scale(1); + transform: scale(1); } 100% { + -webkit-transform: scale(0.2); + transform: scale(0.2); opacity: 0; - transform: scale(0.2); } } @keyframes antZoomOut { 0% { - transform: scale(1); + -webkit-transform: scale(1); + transform: scale(1); } 100% { + -webkit-transform: scale(0.2); + transform: scale(0.2); opacity: 0; - transform: scale(0.2); } } @-webkit-keyframes antZoomBigIn { 0% { + -webkit-transform: scale(0.8); + transform: scale(0.8); opacity: 0; - transform: scale(0.8); } 100% { - transform: scale(1); + -webkit-transform: scale(1); + transform: scale(1); + opacity: 1; } } @keyframes antZoomBigIn { 0% { + -webkit-transform: scale(0.8); + transform: scale(0.8); opacity: 0; - transform: scale(0.8); } 100% { - transform: scale(1); + -webkit-transform: scale(1); + transform: scale(1); + opacity: 1; } } @-webkit-keyframes antZoomBigOut { 0% { - transform: scale(1); + -webkit-transform: scale(1); + transform: scale(1); } 100% { + -webkit-transform: scale(0.8); + transform: scale(0.8); opacity: 0; - transform: scale(0.8); } } @keyframes antZoomBigOut { 0% { - transform: scale(1); + -webkit-transform: scale(1); + transform: scale(1); } 100% { + -webkit-transform: scale(0.8); + transform: scale(0.8); opacity: 0; - transform: scale(0.8); } } @-webkit-keyframes antZoomUpIn { 0% { + -webkit-transform: scale(0.8); + transform: scale(0.8); + -webkit-transform-origin: 50% 0%; + transform-origin: 50% 0%; opacity: 0; - transform-origin: 50% 0%; - transform: scale(0.8); } 100% { - transform-origin: 50% 0%; - transform: scale(1); + -webkit-transform: scale(1); + transform: scale(1); + -webkit-transform-origin: 50% 0%; + transform-origin: 50% 0%; } } @keyframes antZoomUpIn { 0% { + -webkit-transform: scale(0.8); + transform: scale(0.8); + -webkit-transform-origin: 50% 0%; + transform-origin: 50% 0%; opacity: 0; - transform-origin: 50% 0%; - transform: scale(0.8); } 100% { - transform-origin: 50% 0%; - transform: scale(1); + -webkit-transform: scale(1); + transform: scale(1); + -webkit-transform-origin: 50% 0%; + transform-origin: 50% 0%; } } @-webkit-keyframes antZoomUpOut { 0% { - transform-origin: 50% 0%; - transform: scale(1); + -webkit-transform: scale(1); + transform: scale(1); + -webkit-transform-origin: 50% 0%; + transform-origin: 50% 0%; } 100% { + -webkit-transform: scale(0.8); + transform: scale(0.8); + -webkit-transform-origin: 50% 0%; + transform-origin: 50% 0%; opacity: 0; - transform-origin: 50% 0%; - transform: scale(0.8); } } @keyframes antZoomUpOut { 0% { - transform-origin: 50% 0%; - transform: scale(1); + -webkit-transform: scale(1); + transform: scale(1); + -webkit-transform-origin: 50% 0%; + transform-origin: 50% 0%; } 100% { + -webkit-transform: scale(0.8); + transform: scale(0.8); + -webkit-transform-origin: 50% 0%; + transform-origin: 50% 0%; opacity: 0; - transform-origin: 50% 0%; - transform: scale(0.8); } } @-webkit-keyframes antZoomLeftIn { 0% { + -webkit-transform: scale(0.8); + transform: scale(0.8); + -webkit-transform-origin: 0% 50%; + transform-origin: 0% 50%; opacity: 0; - transform-origin: 0% 50%; - transform: scale(0.8); } 100% { - transform-origin: 0% 50%; - transform: scale(1); + -webkit-transform: scale(1); + transform: scale(1); + -webkit-transform-origin: 0% 50%; + transform-origin: 0% 50%; } } @keyframes antZoomLeftIn { 0% { + -webkit-transform: scale(0.8); + transform: scale(0.8); + -webkit-transform-origin: 0% 50%; + transform-origin: 0% 50%; opacity: 0; - transform-origin: 0% 50%; - transform: scale(0.8); } 100% { - transform-origin: 0% 50%; - transform: scale(1); + -webkit-transform: scale(1); + transform: scale(1); + -webkit-transform-origin: 0% 50%; + transform-origin: 0% 50%; } } @-webkit-keyframes antZoomLeftOut { 0% { - transform-origin: 0% 50%; - transform: scale(1); + -webkit-transform: scale(1); + transform: scale(1); + -webkit-transform-origin: 0% 50%; + transform-origin: 0% 50%; } 100% { + -webkit-transform: scale(0.8); + transform: scale(0.8); + -webkit-transform-origin: 0% 50%; + transform-origin: 0% 50%; opacity: 0; - transform-origin: 0% 50%; - transform: scale(0.8); } } @keyframes antZoomLeftOut { 0% { - transform-origin: 0% 50%; - transform: scale(1); + -webkit-transform: scale(1); + transform: scale(1); + -webkit-transform-origin: 0% 50%; + transform-origin: 0% 50%; } 100% { + -webkit-transform: scale(0.8); + transform: scale(0.8); + -webkit-transform-origin: 0% 50%; + transform-origin: 0% 50%; opacity: 0; - transform-origin: 0% 50%; - transform: scale(0.8); } } @-webkit-keyframes antZoomRightIn { 0% { + -webkit-transform: scale(0.8); + transform: scale(0.8); + -webkit-transform-origin: 100% 50%; + transform-origin: 100% 50%; opacity: 0; - transform-origin: 100% 50%; - transform: scale(0.8); } 100% { - transform-origin: 100% 50%; - transform: scale(1); + -webkit-transform: scale(1); + transform: scale(1); + -webkit-transform-origin: 100% 50%; + transform-origin: 100% 50%; } } @keyframes antZoomRightIn { 0% { + -webkit-transform: scale(0.8); + transform: scale(0.8); + -webkit-transform-origin: 100% 50%; + transform-origin: 100% 50%; opacity: 0; - transform-origin: 100% 50%; - transform: scale(0.8); } 100% { - transform-origin: 100% 50%; - transform: scale(1); + -webkit-transform: scale(1); + transform: scale(1); + -webkit-transform-origin: 100% 50%; + transform-origin: 100% 50%; } } @-webkit-keyframes antZoomRightOut { 0% { - transform-origin: 100% 50%; - transform: scale(1); + -webkit-transform: scale(1); + transform: scale(1); + -webkit-transform-origin: 100% 50%; + transform-origin: 100% 50%; } 100% { + -webkit-transform: scale(0.8); + transform: scale(0.8); + -webkit-transform-origin: 100% 50%; + transform-origin: 100% 50%; opacity: 0; - transform-origin: 100% 50%; - transform: scale(0.8); } } @keyframes antZoomRightOut { 0% { - transform-origin: 100% 50%; - transform: scale(1); + -webkit-transform: scale(1); + transform: scale(1); + -webkit-transform-origin: 100% 50%; + transform-origin: 100% 50%; } 100% { + -webkit-transform: scale(0.8); + transform: scale(0.8); + -webkit-transform-origin: 100% 50%; + transform-origin: 100% 50%; opacity: 0; - transform-origin: 100% 50%; - transform: scale(0.8); } } @-webkit-keyframes antZoomDownIn { 0% { + -webkit-transform: scale(0.8); + transform: scale(0.8); + -webkit-transform-origin: 50% 100%; + transform-origin: 50% 100%; opacity: 0; - transform-origin: 50% 100%; - transform: scale(0.8); } 100% { - transform-origin: 50% 100%; - transform: scale(1); + -webkit-transform: scale(1); + transform: scale(1); + -webkit-transform-origin: 50% 100%; + transform-origin: 50% 100%; } } @keyframes antZoomDownIn { 0% { + -webkit-transform: scale(0.8); + transform: scale(0.8); + -webkit-transform-origin: 50% 100%; + transform-origin: 50% 100%; opacity: 0; - transform-origin: 50% 100%; - transform: scale(0.8); } 100% { - transform-origin: 50% 100%; - transform: scale(1); + -webkit-transform: scale(1); + transform: scale(1); + -webkit-transform-origin: 50% 100%; + transform-origin: 50% 100%; } } @-webkit-keyframes antZoomDownOut { 0% { - transform-origin: 50% 100%; - transform: scale(1); + -webkit-transform: scale(1); + transform: scale(1); + -webkit-transform-origin: 50% 100%; + transform-origin: 50% 100%; } 100% { + -webkit-transform: scale(0.8); + transform: scale(0.8); + -webkit-transform-origin: 50% 100%; + transform-origin: 50% 100%; opacity: 0; - transform-origin: 50% 100%; - transform: scale(0.8); } } @keyframes antZoomDownOut { 0% { - transform-origin: 50% 100%; - transform: scale(1); + -webkit-transform: scale(1); + transform: scale(1); + -webkit-transform-origin: 50% 100%; + transform-origin: 50% 100%; } 100% { + -webkit-transform: scale(0.8); + transform: scale(0.8); + -webkit-transform-origin: 50% 100%; + transform-origin: 50% 100%; opacity: 0; - transform-origin: 50% 100%; - transform: scale(0.8); } } .ant-motion-collapse { overflow: hidden; } .ant-motion-collapse-active { + -webkit-transition: height 0.15s cubic-bezier(0.645, 0.045, 0.355, 1), opacity 0.15s cubic-bezier(0.645, 0.045, 0.355, 1) !important; transition: height 0.15s cubic-bezier(0.645, 0.045, 0.355, 1), opacity 0.15s cubic-bezier(0.645, 0.045, 0.355, 1) !important; } .ant-affix { @@ -3433,15 +3397,15 @@ mark { z-index: 10; } .ant-alert { - font-family: "Chinese Quote", -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"; - font-size: 14px; - font-variant: tabular-nums; - line-height: 1.5; - color: rgba(0, 0, 0, 0.65); box-sizing: border-box; margin: 0; padding: 0; + color: rgba(0, 0, 0, 0.65); + font-size: 14px; + font-variant: tabular-nums; + line-height: 1.5; list-style: none; + font-feature-settings: 'tnum'; position: relative; padding: 8px 15px 8px 37px; border-radius: 5px; @@ -3453,69 +3417,70 @@ mark { padding-right: 30px; } .ant-alert-icon { + position: absolute; top: 11.5px; left: 16px; - position: absolute; } .ant-alert-description { + display: none; font-size: 14px; line-height: 22px; - display: none; } .ant-alert-success { - border: 1px solid #b7eb8f; background-color: #f6ffed; + border: 1px solid #b7eb8f; } .ant-alert-success .ant-alert-icon { color: #52c41a; } .ant-alert-info { - border: 1px solid #91d5ff; background-color: #e6f7ff; + border: 1px solid #91d5ff; } .ant-alert-info .ant-alert-icon { color: #1890ff; } .ant-alert-warning { - border: 1px solid #ffe58f; background-color: #fffbe6; + border: 1px solid #ffe58f; } .ant-alert-warning .ant-alert-icon { color: #faad14; } .ant-alert-error { - border: 1px solid #ffa39e; background-color: #fff1f0; + border: 1px solid #ffa39e; } .ant-alert-error .ant-alert-icon { color: #f5222d; } .ant-alert-close-icon { - font-size: 12px; position: absolute; - right: 16px; top: 8px; - line-height: 22px; + right: 16px; overflow: hidden; + font-size: 12px; + line-height: 22px; cursor: pointer; } .ant-alert-close-icon .anticon-close { color: rgba(0, 0, 0, 0.45); + -webkit-transition: color 0.3s; transition: color 0.3s; } .ant-alert-close-icon .anticon-close:hover { - color: #404040; + color: rgba(0, 0, 0, 0.75); } .ant-alert-close-text { position: absolute; right: 16px; } .ant-alert-with-description { - padding: 15px 15px 15px 64px; position: relative; - border-radius: 5px; + padding: 15px 15px 15px 64px; color: rgba(0, 0, 0, 0.65); line-height: 1.5; + border-radius: 5px; } .ant-alert-with-description.ant-alert-no-icon { padding: 15px; @@ -3530,14 +3495,14 @@ mark { position: absolute; top: 16px; right: 16px; - cursor: pointer; font-size: 14px; + cursor: pointer; } .ant-alert-with-description .ant-alert-message { - font-size: 16px; - color: rgba(0, 0, 0, 0.85); display: block; margin-bottom: 4px; + color: rgba(0, 0, 0, 0.85); + font-size: 16px; } .ant-alert-with-description .ant-alert-description { display: block; @@ -3547,8 +3512,10 @@ mark { margin: 0; padding-top: 0; padding-bottom: 0; + -webkit-transform-origin: 50% 0; + transform-origin: 50% 0; + -webkit-transition: all 0.3s cubic-bezier(0.78, 0.14, 0.15, 0.86); transition: all 0.3s cubic-bezier(0.78, 0.14, 0.15, 0.86); - transform-origin: 50% 0; } .ant-alert-slide-up-leave { -webkit-animation: antAlertSlideUpOut 0.3s cubic-bezier(0.78, 0.14, 0.15, 0.86); @@ -3557,103 +3524,121 @@ mark { animation-fill-mode: both; } .ant-alert-banner { - border-radius: 0; - border: 0; margin-bottom: 0; + border: 0; + border-radius: 0; } @-webkit-keyframes antAlertSlideUpIn { 0% { + -webkit-transform: scaleY(0); + transform: scaleY(0); + -webkit-transform-origin: 0% 0%; + transform-origin: 0% 0%; opacity: 0; - transform-origin: 0% 0%; - transform: scaleY(0); } 100% { + -webkit-transform: scaleY(1); + transform: scaleY(1); + -webkit-transform-origin: 0% 0%; + transform-origin: 0% 0%; opacity: 1; - transform-origin: 0% 0%; - transform: scaleY(1); } } @keyframes antAlertSlideUpIn { 0% { + -webkit-transform: scaleY(0); + transform: scaleY(0); + -webkit-transform-origin: 0% 0%; + transform-origin: 0% 0%; opacity: 0; - transform-origin: 0% 0%; - transform: scaleY(0); } 100% { + -webkit-transform: scaleY(1); + transform: scaleY(1); + -webkit-transform-origin: 0% 0%; + transform-origin: 0% 0%; opacity: 1; - transform-origin: 0% 0%; - transform: scaleY(1); } } @-webkit-keyframes antAlertSlideUpOut { 0% { + -webkit-transform: scaleY(1); + transform: scaleY(1); + -webkit-transform-origin: 0% 0%; + transform-origin: 0% 0%; opacity: 1; - transform-origin: 0% 0%; - transform: scaleY(1); } 100% { + -webkit-transform: scaleY(0); + transform: scaleY(0); + -webkit-transform-origin: 0% 0%; + transform-origin: 0% 0%; opacity: 0; - transform-origin: 0% 0%; - transform: scaleY(0); } } @keyframes antAlertSlideUpOut { 0% { + -webkit-transform: scaleY(1); + transform: scaleY(1); + -webkit-transform-origin: 0% 0%; + transform-origin: 0% 0%; opacity: 1; - transform-origin: 0% 0%; - transform: scaleY(1); } 100% { + -webkit-transform: scaleY(0); + transform: scaleY(0); + -webkit-transform-origin: 0% 0%; + transform-origin: 0% 0%; opacity: 0; - transform-origin: 0% 0%; - transform: scaleY(0); } } .ant-anchor { - font-family: "Chinese Quote", -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"; - font-size: 14px; - font-variant: tabular-nums; - line-height: 1.5; - color: rgba(0, 0, 0, 0.65); box-sizing: border-box; margin: 0; padding: 0; + color: rgba(0, 0, 0, 0.65); + font-size: 14px; + font-variant: tabular-nums; + line-height: 1.5; list-style: none; + font-feature-settings: 'tnum'; position: relative; padding-left: 2px; } .ant-anchor-wrapper { - background-color: #fff; - overflow: auto; - padding-left: 4px; margin-left: -4px; + padding-left: 4px; + overflow: auto; + background-color: #fff; } .ant-anchor-ink { position: absolute; - height: 100%; - left: 0; top: 0; + left: 0; + height: 100%; } -.ant-anchor-ink:before { - content: ' '; +.ant-anchor-ink::before { position: relative; + display: block; width: 2px; height: 100%; - display: block; - background-color: #e8e8e8; margin: 0 auto; + background-color: #e8e8e8; + content: ' '; } .ant-anchor-ink-ball { - display: none; position: absolute; + left: 50%; + display: none; width: 8px; height: 8px; - border-radius: 8px; - border: 2px solid #E64448; background-color: #fff; - left: 50%; + border: 2px solid #E64448; + border-radius: 8px; + -webkit-transform: translateX(-50%); + transform: translateX(-50%); + -webkit-transition: top 0.3s ease-in-out; transition: top 0.3s ease-in-out; - transform: translateX(-50%); } .ant-anchor-ink-ball.visible { display: inline-block; @@ -3666,14 +3651,15 @@ mark { line-height: 1.143; } .ant-anchor-link-title { - display: block; position: relative; - transition: all 0.3s; + display: block; + margin-bottom: 6px; + overflow: hidden; color: rgba(0, 0, 0, 0.65); white-space: nowrap; - overflow: hidden; text-overflow: ellipsis; - margin-bottom: 6px; + -webkit-transition: all 0.3s; + transition: all 0.3s; } .ant-anchor-link-title:only-child { margin-bottom: 0; @@ -3686,29 +3672,29 @@ mark { padding-bottom: 5px; } .ant-select-auto-complete { - font-family: "Chinese Quote", -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"; - font-size: 14px; - font-variant: tabular-nums; - line-height: 1.5; - color: rgba(0, 0, 0, 0.65); box-sizing: border-box; margin: 0; padding: 0; + color: rgba(0, 0, 0, 0.65); + font-size: 14px; + font-variant: tabular-nums; + line-height: 1.5; list-style: none; + font-feature-settings: 'tnum'; } .ant-select-auto-complete.ant-select .ant-select-selection { border: 0; box-shadow: none; } .ant-select-auto-complete.ant-select .ant-select-selection__rendered { - margin-left: 0; - margin-right: 0; height: 100%; + margin-right: 0; + margin-left: 0; line-height: 32px; } .ant-select-auto-complete.ant-select .ant-select-selection__placeholder { - margin-left: 12px; margin-right: 12px; + margin-left: 12px; } .ant-select-auto-complete.ant-select .ant-select-selection--single { height: auto; @@ -3721,10 +3707,10 @@ mark { margin-right: 0 !important; } .ant-select-auto-complete.ant-select .ant-input { + height: 32px; + line-height: 1.5; background: transparent; border-width: 1px; - line-height: 1.5; - height: 32px; } .ant-select-auto-complete.ant-select .ant-input:focus, .ant-select-auto-complete.ant-select .ant-input:hover { @@ -3732,10 +3718,10 @@ mark { border-right-width: 1px !important; } .ant-select-auto-complete.ant-select .ant-input[disabled] { + color: rgba(0, 0, 0, 0.25); background-color: #f5f5f5; - opacity: 1; cursor: not-allowed; - color: rgba(0, 0, 0, 0.25); + opacity: 1; background-color: transparent; } .ant-select-auto-complete.ant-select .ant-input[disabled]:hover { @@ -3746,36 +3732,36 @@ mark { line-height: 40px; } .ant-select-auto-complete.ant-select-lg .ant-input { + height: 40px; padding-top: 6px; padding-bottom: 6px; - height: 40px; } .ant-select-auto-complete.ant-select-sm .ant-select-selection__rendered { line-height: 24px; } .ant-select-auto-complete.ant-select-sm .ant-input { + height: 24px; padding-top: 1px; padding-bottom: 1px; - height: 24px; } .ant-avatar { - font-family: "Chinese Quote", -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"; - font-size: 14px; - font-variant: tabular-nums; - line-height: 1.5; - color: rgba(0, 0, 0, 0.65); box-sizing: border-box; margin: 0; padding: 0; + color: rgba(0, 0, 0, 0.65); + font-size: 14px; + font-variant: tabular-nums; + line-height: 1.5; list-style: none; + font-feature-settings: 'tnum'; + position: relative; display: inline-block; - text-align: center; - background: #ccc; + overflow: hidden; color: #fff; white-space: nowrap; - position: relative; - overflow: hidden; + text-align: center; vertical-align: middle; + background: #ccc; width: 32px; height: 32px; line-height: 32px; @@ -3787,7 +3773,8 @@ mark { .ant-avatar-string { position: absolute; left: 50%; - transform-origin: 0 center; + -webkit-transform-origin: 0 center; + transform-origin: 0 center; } .ant-avatar.ant-avatar-icon { font-size: 18px; @@ -3801,7 +3788,8 @@ mark { .ant-avatar-lg-string { position: absolute; left: 50%; - transform-origin: 0 center; + -webkit-transform-origin: 0 center; + transform-origin: 0 center; } .ant-avatar-lg.ant-avatar-icon { font-size: 24px; @@ -3815,7 +3803,8 @@ mark { .ant-avatar-sm-string { position: absolute; left: 50%; - transform-origin: 0 center; + -webkit-transform-origin: 0 center; + transform-origin: 0 center; } .ant-avatar-sm.ant-avatar-icon { font-size: 14px; @@ -3824,46 +3813,48 @@ mark { border-radius: 5px; } .ant-avatar > img { + display: block; width: 100%; height: 100%; - display: block; } .ant-back-top { - font-family: "Chinese Quote", -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"; - font-size: 14px; - font-variant: tabular-nums; - line-height: 1.5; - color: rgba(0, 0, 0, 0.65); box-sizing: border-box; margin: 0; padding: 0; + color: rgba(0, 0, 0, 0.65); + font-size: 14px; + font-variant: tabular-nums; + line-height: 1.5; list-style: none; - z-index: 10; + font-feature-settings: 'tnum'; position: fixed; right: 100px; bottom: 50px; - height: 40px; + z-index: 10; width: 40px; + height: 40px; cursor: pointer; } .ant-back-top-content { - height: 40px; width: 40px; - border-radius: 20px; - background-color: rgba(0, 0, 0, 0.45); + height: 40px; + overflow: hidden; color: #fff; text-align: center; + background-color: rgba(0, 0, 0, 0.45); + border-radius: 20px; + -webkit-transition: all 0.3s cubic-bezier(0.645, 0.045, 0.355, 1); transition: all 0.3s cubic-bezier(0.645, 0.045, 0.355, 1); - overflow: hidden; } .ant-back-top-content:hover { background-color: rgba(0, 0, 0, 0.65); + -webkit-transition: all 0.3s cubic-bezier(0.645, 0.045, 0.355, 1); transition: all 0.3s cubic-bezier(0.645, 0.045, 0.355, 1); } .ant-back-top-icon { - margin: 12px auto; width: 14px; height: 16px; + margin: 12px auto; background: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACQAAAAoCAYAAACWwljjAAAABGdBTUEAALGPC/xhBQAAAbtJREFUWAntmMtKw0AUhhMvS5cuxILgQlRUpIggIoKIIoigG1eC+AA+jo+i6FIXBfeuXIgoeKVeitVWJX5HWhhDksnUpp3FDPyZk3Nm5nycmZKkXhAEOXSA3lG7muTeRzmfy6HneUvIhnYkQK+Q9NhAA0Opg0vBEhjBKHiyb8iGMyQMOYuK41BcBSypAL+MYXSKjtFAW7EAGEO3qN4uMQbbAkXiSfRQJ1H6a+yhlkKRcAoVFYiweYNjtCVQJJpBz2GCiPt7fBOZQpFgDpUikse5HgnkM4Fi4QX0Fpc5wf9EbLqpUCy4jMoJSXWhFwbMNgWKhVbRhy5jirhs9fy/oFhgHVVTJEs7RLZ8sSEoJm6iz7SZDMbJ+/OKERQTttCXQRLToRUmrKWCYuA2+jbN0MB4OQobYShfdTCgn/sL1K36M7TLrN3n+758aPy2rrpR6+/od5E8tf/A1uLS9aId5T7J3CNYihkQ4D9PiMdMC7mp4rjB9kjFjZp8BlnVHJBuO1yFXIV0FdDF3RlyFdJVQBdv5AxVdIsq8apiZ2PyYO1EVykesGfZEESsCkweyR8MUW+V8uJ1gkYipmpdP1pm2aJVPEGzAAAAAElFTkSuQmCC) 100%/100% no-repeat; } @media screen and (max-width: 768px) { @@ -3877,35 +3868,34 @@ mark { } } .ant-badge { - font-family: "Chinese Quote", -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"; - font-size: 14px; - font-variant: tabular-nums; - line-height: 1.5; - color: rgba(0, 0, 0, 0.65); box-sizing: border-box; margin: 0; padding: 0; + color: rgba(0, 0, 0, 0.65); + font-size: 14px; + font-variant: tabular-nums; + line-height: 1.5; list-style: none; + font-feature-settings: 'tnum'; position: relative; display: inline-block; - line-height: 1; color: unset; + line-height: 1; } .ant-badge-count { - top: -10px; - height: 20px; - border-radius: 10px; + z-index: 10; min-width: 20px; - background: #f5222d; - color: #fff; - line-height: 20px; - text-align: center; + height: 20px; padding: 0 6px; - font-size: 12px; + color: #fff; font-weight: normal; + font-size: 12px; + line-height: 20px; white-space: nowrap; + text-align: center; + background: #f5222d; + border-radius: 10px; box-shadow: 0 0 0 1px #fff; - z-index: 10; } .ant-badge-count a, .ant-badge-count a:hover { @@ -3915,56 +3905,55 @@ mark { padding: 0 8px; } .ant-badge-dot { - top: -3px; - height: 6px; + z-index: 10; width: 6px; - border-radius: 100%; + height: 6px; background: #f5222d; - z-index: 10; + border-radius: 100%; box-shadow: 0 0 0 1px #fff; } .ant-badge-count, .ant-badge-dot, .ant-badge .ant-scroll-number-custom-component { position: absolute; + top: 0; right: 0; - transform: translateX(50%); - transform-origin: 100%; -} -.ant-badge .ant-scroll-number-custom-component { - transform: translate(50%, -50%); + -webkit-transform: translate(50%, -50%); + transform: translate(50%, -50%); + -webkit-transform-origin: 100% 0%; + transform-origin: 100% 0%; } .ant-badge-status { line-height: inherit; vertical-align: baseline; } .ant-badge-status-dot { + position: relative; + top: -1px; + display: inline-block; width: 6px; height: 6px; - display: inline-block; - border-radius: 50%; vertical-align: middle; - position: relative; - top: -1px; + border-radius: 50%; } .ant-badge-status-success { background-color: #52c41a; } .ant-badge-status-processing { - background-color: #1890ff; position: relative; + background-color: #1890ff; } -.ant-badge-status-processing:after { +.ant-badge-status-processing::after { position: absolute; top: 0; left: 0; width: 100%; height: 100%; - border-radius: 50%; border: 1px solid #1890ff; - content: ''; + border-radius: 50%; -webkit-animation: antStatusProcessing 1.2s infinite ease-in-out; animation: antStatusProcessing 1.2s infinite ease-in-out; + content: ''; } .ant-badge-status-default { background-color: #d9d9d9; @@ -3976,9 +3965,9 @@ mark { background-color: #faad14; } .ant-badge-status-text { + margin-left: 8px; color: rgba(0, 0, 0, 0.65); font-size: 14px; - margin-left: 8px; } .ant-badge-zoom-appear, .ant-badge-zoom-enter { @@ -3997,30 +3986,35 @@ mark { vertical-align: middle; } .ant-badge-not-a-wrapper .ant-scroll-number { + position: relative; top: auto; display: block; - position: relative; } .ant-badge-not-a-wrapper .ant-badge-count { - transform: none; + -webkit-transform: none; + transform: none; } @-webkit-keyframes antStatusProcessing { 0% { - transform: scale(0.8); + -webkit-transform: scale(0.8); + transform: scale(0.8); opacity: 0.5; } 100% { - transform: scale(2.4); + -webkit-transform: scale(2.4); + transform: scale(2.4); opacity: 0; } } @keyframes antStatusProcessing { 0% { - transform: scale(0.8); + -webkit-transform: scale(0.8); + transform: scale(0.8); opacity: 0.5; } 100% { - transform: scale(2.4); + -webkit-transform: scale(2.4); + transform: scale(2.4); opacity: 0; } } @@ -4029,8 +4023,9 @@ mark { } .ant-scroll-number-only { display: inline-block; - transition: all 0.3s cubic-bezier(0.645, 0.045, 0.355, 1); height: 20px; + -webkit-transition: all 0.3s cubic-bezier(0.645, 0.045, 0.355, 1); + transition: all 0.3s cubic-bezier(0.645, 0.045, 0.355, 1); } .ant-scroll-number-only > p { height: 20px; @@ -4038,49 +4033,57 @@ mark { } @-webkit-keyframes antZoomBadgeIn { 0% { + -webkit-transform: scale(0) translate(50%, -50%); + transform: scale(0) translate(50%, -50%); opacity: 0; - transform: scale(0) translateX(50%); } 100% { - transform: scale(1) translateX(50%); + -webkit-transform: scale(1) translate(50%, -50%); + transform: scale(1) translate(50%, -50%); } } @keyframes antZoomBadgeIn { 0% { + -webkit-transform: scale(0) translate(50%, -50%); + transform: scale(0) translate(50%, -50%); opacity: 0; - transform: scale(0) translateX(50%); } 100% { - transform: scale(1) translateX(50%); + -webkit-transform: scale(1) translate(50%, -50%); + transform: scale(1) translate(50%, -50%); } } @-webkit-keyframes antZoomBadgeOut { 0% { - transform: scale(1) translateX(50%); + -webkit-transform: scale(1) translate(50%, -50%); + transform: scale(1) translate(50%, -50%); } 100% { + -webkit-transform: scale(0) translate(50%, -50%); + transform: scale(0) translate(50%, -50%); opacity: 0; - transform: scale(0) translateX(50%); } } @keyframes antZoomBadgeOut { 0% { - transform: scale(1) translateX(50%); + -webkit-transform: scale(1) translate(50%, -50%); + transform: scale(1) translate(50%, -50%); } 100% { + -webkit-transform: scale(0) translate(50%, -50%); + transform: scale(0) translate(50%, -50%); opacity: 0; - transform: scale(0) translateX(50%); } } .ant-breadcrumb { - font-family: "Chinese Quote", -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"; - font-variant: tabular-nums; - line-height: 1.5; - color: rgba(0, 0, 0, 0.65); box-sizing: border-box; margin: 0; padding: 0; + color: rgba(0, 0, 0, 0.65); + font-variant: tabular-nums; + line-height: 1.5; list-style: none; + font-feature-settings: 'tnum'; color: rgba(0, 0, 0, 0.45); font-size: 14px; } @@ -4089,6 +4092,7 @@ mark { } .ant-breadcrumb a { color: rgba(0, 0, 0, 0.45); + -webkit-transition: color 0.3s; transition: color 0.3s; } .ant-breadcrumb a:hover { @@ -4109,25 +4113,26 @@ mark { } .ant-btn { line-height: 1.499; + position: relative; display: inline-block; font-weight: 400; + white-space: nowrap; text-align: center; - touch-action: manipulation; - cursor: pointer; background-image: none; border: 1px solid transparent; - white-space: nowrap; - padding: 0 15px; - font-size: 14px; - border-radius: 5px; - height: 32px; + box-shadow: 0 2px 0 rgba(0, 0, 0, 0.015); + cursor: pointer; + -webkit-transition: all 0.3s cubic-bezier(0.645, 0.045, 0.355, 1); + transition: all 0.3s cubic-bezier(0.645, 0.045, 0.355, 1); -webkit-user-select: none; -moz-user-select: none; -ms-user-select: none; user-select: none; - transition: all 0.3s cubic-bezier(0.645, 0.045, 0.355, 1); - position: relative; - box-shadow: 0 2px 0 rgba(0, 0, 0, 0.015); + touch-action: manipulation; + height: 32px; + padding: 0 15px; + font-size: 14px; + border-radius: 5px; color: rgba(0, 0, 0, 0.65); background-color: #fff; border-color: #d9d9d9; @@ -4156,28 +4161,28 @@ mark { pointer-events: none; } .ant-btn-lg { + height: 40px; padding: 0 15px; font-size: 16px; border-radius: 5px; - height: 40px; } .ant-btn-sm { + height: 24px; padding: 0 7px; font-size: 14px; border-radius: 5px; - height: 24px; } .ant-btn > a:only-child { color: currentColor; } -.ant-btn > a:only-child:after { - content: ''; +.ant-btn > a:only-child::after { position: absolute; top: 0; - left: 0; - bottom: 0; right: 0; + bottom: 0; + left: 0; background: transparent; + content: ''; } .ant-btn:hover, .ant-btn:focus { @@ -4189,15 +4194,15 @@ mark { .ant-btn:focus > a:only-child { color: currentColor; } -.ant-btn:hover > a:only-child:after, -.ant-btn:focus > a:only-child:after { - content: ''; +.ant-btn:hover > a:only-child::after, +.ant-btn:focus > a:only-child::after { position: absolute; top: 0; - left: 0; - bottom: 0; right: 0; + bottom: 0; + left: 0; background: transparent; + content: ''; } .ant-btn:active, .ant-btn.active { @@ -4209,24 +4214,29 @@ mark { .ant-btn.active > a:only-child { color: currentColor; } -.ant-btn:active > a:only-child:after, -.ant-btn.active > a:only-child:after { - content: ''; +.ant-btn:active > a:only-child::after, +.ant-btn.active > a:only-child::after { position: absolute; top: 0; - left: 0; - bottom: 0; right: 0; + bottom: 0; + left: 0; background: transparent; + content: ''; } +.ant-btn-disabled, .ant-btn.disabled, .ant-btn[disabled], +.ant-btn-disabled:hover, .ant-btn.disabled:hover, .ant-btn[disabled]:hover, +.ant-btn-disabled:focus, .ant-btn.disabled:focus, .ant-btn[disabled]:focus, +.ant-btn-disabled:active, .ant-btn.disabled:active, .ant-btn[disabled]:active, +.ant-btn-disabled.active, .ant-btn.disabled.active, .ant-btn[disabled].active { color: rgba(0, 0, 0, 0.25); @@ -4235,47 +4245,57 @@ mark { text-shadow: none; box-shadow: none; } +.ant-btn-disabled > a:only-child, .ant-btn.disabled > a:only-child, .ant-btn[disabled] > a:only-child, +.ant-btn-disabled:hover > a:only-child, .ant-btn.disabled:hover > a:only-child, .ant-btn[disabled]:hover > a:only-child, +.ant-btn-disabled:focus > a:only-child, .ant-btn.disabled:focus > a:only-child, .ant-btn[disabled]:focus > a:only-child, +.ant-btn-disabled:active > a:only-child, .ant-btn.disabled:active > a:only-child, .ant-btn[disabled]:active > a:only-child, +.ant-btn-disabled.active > a:only-child, .ant-btn.disabled.active > a:only-child, .ant-btn[disabled].active > a:only-child { color: currentColor; } -.ant-btn.disabled > a:only-child:after, -.ant-btn[disabled] > a:only-child:after, -.ant-btn.disabled:hover > a:only-child:after, -.ant-btn[disabled]:hover > a:only-child:after, -.ant-btn.disabled:focus > a:only-child:after, -.ant-btn[disabled]:focus > a:only-child:after, -.ant-btn.disabled:active > a:only-child:after, -.ant-btn[disabled]:active > a:only-child:after, -.ant-btn.disabled.active > a:only-child:after, -.ant-btn[disabled].active > a:only-child:after { - content: ''; +.ant-btn-disabled > a:only-child::after, +.ant-btn.disabled > a:only-child::after, +.ant-btn[disabled] > a:only-child::after, +.ant-btn-disabled:hover > a:only-child::after, +.ant-btn.disabled:hover > a:only-child::after, +.ant-btn[disabled]:hover > a:only-child::after, +.ant-btn-disabled:focus > a:only-child::after, +.ant-btn.disabled:focus > a:only-child::after, +.ant-btn[disabled]:focus > a:only-child::after, +.ant-btn-disabled:active > a:only-child::after, +.ant-btn.disabled:active > a:only-child::after, +.ant-btn[disabled]:active > a:only-child::after, +.ant-btn-disabled.active > a:only-child::after, +.ant-btn.disabled.active > a:only-child::after, +.ant-btn[disabled].active > a:only-child::after { position: absolute; top: 0; - left: 0; - bottom: 0; right: 0; + bottom: 0; + left: 0; background: transparent; + content: ''; } .ant-btn:hover, .ant-btn:focus, .ant-btn:active, .ant-btn.active { - background: #fff; text-decoration: none; + background: #fff; } .ant-btn > i, .ant-btn > span { - pointer-events: none; display: inline-block; + pointer-events: none; } .ant-btn-primary { color: #fff; @@ -4287,14 +4307,14 @@ mark { .ant-btn-primary > a:only-child { color: currentColor; } -.ant-btn-primary > a:only-child:after { - content: ''; +.ant-btn-primary > a:only-child::after { position: absolute; top: 0; - left: 0; - bottom: 0; right: 0; + bottom: 0; + left: 0; background: transparent; + content: ''; } .ant-btn-primary:hover, .ant-btn-primary:focus { @@ -4306,15 +4326,15 @@ mark { .ant-btn-primary:focus > a:only-child { color: currentColor; } -.ant-btn-primary:hover > a:only-child:after, -.ant-btn-primary:focus > a:only-child:after { - content: ''; +.ant-btn-primary:hover > a:only-child::after, +.ant-btn-primary:focus > a:only-child::after { position: absolute; top: 0; - left: 0; - bottom: 0; right: 0; + bottom: 0; + left: 0; background: transparent; + content: ''; } .ant-btn-primary:active, .ant-btn-primary.active { @@ -4326,24 +4346,29 @@ mark { .ant-btn-primary.active > a:only-child { color: currentColor; } -.ant-btn-primary:active > a:only-child:after, -.ant-btn-primary.active > a:only-child:after { - content: ''; +.ant-btn-primary:active > a:only-child::after, +.ant-btn-primary.active > a:only-child::after { position: absolute; top: 0; - left: 0; - bottom: 0; right: 0; + bottom: 0; + left: 0; background: transparent; + content: ''; } +.ant-btn-primary-disabled, .ant-btn-primary.disabled, .ant-btn-primary[disabled], +.ant-btn-primary-disabled:hover, .ant-btn-primary.disabled:hover, .ant-btn-primary[disabled]:hover, +.ant-btn-primary-disabled:focus, .ant-btn-primary.disabled:focus, .ant-btn-primary[disabled]:focus, +.ant-btn-primary-disabled:active, .ant-btn-primary.disabled:active, .ant-btn-primary[disabled]:active, +.ant-btn-primary-disabled.active, .ant-btn-primary.disabled.active, .ant-btn-primary[disabled].active { color: rgba(0, 0, 0, 0.25); @@ -4352,35 +4377,45 @@ mark { text-shadow: none; box-shadow: none; } +.ant-btn-primary-disabled > a:only-child, .ant-btn-primary.disabled > a:only-child, .ant-btn-primary[disabled] > a:only-child, +.ant-btn-primary-disabled:hover > a:only-child, .ant-btn-primary.disabled:hover > a:only-child, .ant-btn-primary[disabled]:hover > a:only-child, +.ant-btn-primary-disabled:focus > a:only-child, .ant-btn-primary.disabled:focus > a:only-child, .ant-btn-primary[disabled]:focus > a:only-child, +.ant-btn-primary-disabled:active > a:only-child, .ant-btn-primary.disabled:active > a:only-child, .ant-btn-primary[disabled]:active > a:only-child, +.ant-btn-primary-disabled.active > a:only-child, .ant-btn-primary.disabled.active > a:only-child, .ant-btn-primary[disabled].active > a:only-child { color: currentColor; } -.ant-btn-primary.disabled > a:only-child:after, -.ant-btn-primary[disabled] > a:only-child:after, -.ant-btn-primary.disabled:hover > a:only-child:after, -.ant-btn-primary[disabled]:hover > a:only-child:after, -.ant-btn-primary.disabled:focus > a:only-child:after, -.ant-btn-primary[disabled]:focus > a:only-child:after, -.ant-btn-primary.disabled:active > a:only-child:after, -.ant-btn-primary[disabled]:active > a:only-child:after, -.ant-btn-primary.disabled.active > a:only-child:after, -.ant-btn-primary[disabled].active > a:only-child:after { - content: ''; +.ant-btn-primary-disabled > a:only-child::after, +.ant-btn-primary.disabled > a:only-child::after, +.ant-btn-primary[disabled] > a:only-child::after, +.ant-btn-primary-disabled:hover > a:only-child::after, +.ant-btn-primary.disabled:hover > a:only-child::after, +.ant-btn-primary[disabled]:hover > a:only-child::after, +.ant-btn-primary-disabled:focus > a:only-child::after, +.ant-btn-primary.disabled:focus > a:only-child::after, +.ant-btn-primary[disabled]:focus > a:only-child::after, +.ant-btn-primary-disabled:active > a:only-child::after, +.ant-btn-primary.disabled:active > a:only-child::after, +.ant-btn-primary[disabled]:active > a:only-child::after, +.ant-btn-primary-disabled.active > a:only-child::after, +.ant-btn-primary.disabled.active > a:only-child::after, +.ant-btn-primary[disabled].active > a:only-child::after { position: absolute; top: 0; - left: 0; - bottom: 0; right: 0; + bottom: 0; + left: 0; background: transparent; + content: ''; } .ant-btn-group .ant-btn-primary:not(:first-child):not(:last-child) { border-right-color: #f2726f; @@ -4411,14 +4446,14 @@ mark { .ant-btn-ghost > a:only-child { color: currentColor; } -.ant-btn-ghost > a:only-child:after { - content: ''; +.ant-btn-ghost > a:only-child::after { position: absolute; top: 0; - left: 0; - bottom: 0; right: 0; + bottom: 0; + left: 0; background: transparent; + content: ''; } .ant-btn-ghost:hover, .ant-btn-ghost:focus { @@ -4430,15 +4465,15 @@ mark { .ant-btn-ghost:focus > a:only-child { color: currentColor; } -.ant-btn-ghost:hover > a:only-child:after, -.ant-btn-ghost:focus > a:only-child:after { - content: ''; +.ant-btn-ghost:hover > a:only-child::after, +.ant-btn-ghost:focus > a:only-child::after { position: absolute; top: 0; - left: 0; - bottom: 0; right: 0; + bottom: 0; + left: 0; background: transparent; + content: ''; } .ant-btn-ghost:active, .ant-btn-ghost.active { @@ -4450,24 +4485,29 @@ mark { .ant-btn-ghost.active > a:only-child { color: currentColor; } -.ant-btn-ghost:active > a:only-child:after, -.ant-btn-ghost.active > a:only-child:after { - content: ''; +.ant-btn-ghost:active > a:only-child::after, +.ant-btn-ghost.active > a:only-child::after { position: absolute; top: 0; - left: 0; - bottom: 0; right: 0; + bottom: 0; + left: 0; background: transparent; + content: ''; } +.ant-btn-ghost-disabled, .ant-btn-ghost.disabled, .ant-btn-ghost[disabled], +.ant-btn-ghost-disabled:hover, .ant-btn-ghost.disabled:hover, .ant-btn-ghost[disabled]:hover, +.ant-btn-ghost-disabled:focus, .ant-btn-ghost.disabled:focus, .ant-btn-ghost[disabled]:focus, +.ant-btn-ghost-disabled:active, .ant-btn-ghost.disabled:active, .ant-btn-ghost[disabled]:active, +.ant-btn-ghost-disabled.active, .ant-btn-ghost.disabled.active, .ant-btn-ghost[disabled].active { color: rgba(0, 0, 0, 0.25); @@ -4476,35 +4516,45 @@ mark { text-shadow: none; box-shadow: none; } +.ant-btn-ghost-disabled > a:only-child, .ant-btn-ghost.disabled > a:only-child, .ant-btn-ghost[disabled] > a:only-child, +.ant-btn-ghost-disabled:hover > a:only-child, .ant-btn-ghost.disabled:hover > a:only-child, .ant-btn-ghost[disabled]:hover > a:only-child, +.ant-btn-ghost-disabled:focus > a:only-child, .ant-btn-ghost.disabled:focus > a:only-child, .ant-btn-ghost[disabled]:focus > a:only-child, +.ant-btn-ghost-disabled:active > a:only-child, .ant-btn-ghost.disabled:active > a:only-child, .ant-btn-ghost[disabled]:active > a:only-child, +.ant-btn-ghost-disabled.active > a:only-child, .ant-btn-ghost.disabled.active > a:only-child, .ant-btn-ghost[disabled].active > a:only-child { color: currentColor; } -.ant-btn-ghost.disabled > a:only-child:after, -.ant-btn-ghost[disabled] > a:only-child:after, -.ant-btn-ghost.disabled:hover > a:only-child:after, -.ant-btn-ghost[disabled]:hover > a:only-child:after, -.ant-btn-ghost.disabled:focus > a:only-child:after, -.ant-btn-ghost[disabled]:focus > a:only-child:after, -.ant-btn-ghost.disabled:active > a:only-child:after, -.ant-btn-ghost[disabled]:active > a:only-child:after, -.ant-btn-ghost.disabled.active > a:only-child:after, -.ant-btn-ghost[disabled].active > a:only-child:after { - content: ''; +.ant-btn-ghost-disabled > a:only-child::after, +.ant-btn-ghost.disabled > a:only-child::after, +.ant-btn-ghost[disabled] > a:only-child::after, +.ant-btn-ghost-disabled:hover > a:only-child::after, +.ant-btn-ghost.disabled:hover > a:only-child::after, +.ant-btn-ghost[disabled]:hover > a:only-child::after, +.ant-btn-ghost-disabled:focus > a:only-child::after, +.ant-btn-ghost.disabled:focus > a:only-child::after, +.ant-btn-ghost[disabled]:focus > a:only-child::after, +.ant-btn-ghost-disabled:active > a:only-child::after, +.ant-btn-ghost.disabled:active > a:only-child::after, +.ant-btn-ghost[disabled]:active > a:only-child::after, +.ant-btn-ghost-disabled.active > a:only-child::after, +.ant-btn-ghost.disabled.active > a:only-child::after, +.ant-btn-ghost[disabled].active > a:only-child::after { position: absolute; top: 0; - left: 0; - bottom: 0; right: 0; + bottom: 0; + left: 0; background: transparent; + content: ''; } .ant-btn-dashed { color: rgba(0, 0, 0, 0.65); @@ -4515,14 +4565,14 @@ mark { .ant-btn-dashed > a:only-child { color: currentColor; } -.ant-btn-dashed > a:only-child:after { - content: ''; +.ant-btn-dashed > a:only-child::after { position: absolute; top: 0; - left: 0; - bottom: 0; right: 0; + bottom: 0; + left: 0; background: transparent; + content: ''; } .ant-btn-dashed:hover, .ant-btn-dashed:focus { @@ -4534,15 +4584,15 @@ mark { .ant-btn-dashed:focus > a:only-child { color: currentColor; } -.ant-btn-dashed:hover > a:only-child:after, -.ant-btn-dashed:focus > a:only-child:after { - content: ''; +.ant-btn-dashed:hover > a:only-child::after, +.ant-btn-dashed:focus > a:only-child::after { position: absolute; top: 0; - left: 0; - bottom: 0; right: 0; + bottom: 0; + left: 0; background: transparent; + content: ''; } .ant-btn-dashed:active, .ant-btn-dashed.active { @@ -4554,24 +4604,29 @@ mark { .ant-btn-dashed.active > a:only-child { color: currentColor; } -.ant-btn-dashed:active > a:only-child:after, -.ant-btn-dashed.active > a:only-child:after { - content: ''; +.ant-btn-dashed:active > a:only-child::after, +.ant-btn-dashed.active > a:only-child::after { position: absolute; top: 0; - left: 0; - bottom: 0; right: 0; + bottom: 0; + left: 0; background: transparent; + content: ''; } +.ant-btn-dashed-disabled, .ant-btn-dashed.disabled, .ant-btn-dashed[disabled], +.ant-btn-dashed-disabled:hover, .ant-btn-dashed.disabled:hover, .ant-btn-dashed[disabled]:hover, +.ant-btn-dashed-disabled:focus, .ant-btn-dashed.disabled:focus, .ant-btn-dashed[disabled]:focus, +.ant-btn-dashed-disabled:active, .ant-btn-dashed.disabled:active, .ant-btn-dashed[disabled]:active, +.ant-btn-dashed-disabled.active, .ant-btn-dashed.disabled.active, .ant-btn-dashed[disabled].active { color: rgba(0, 0, 0, 0.25); @@ -4580,35 +4635,45 @@ mark { text-shadow: none; box-shadow: none; } +.ant-btn-dashed-disabled > a:only-child, .ant-btn-dashed.disabled > a:only-child, .ant-btn-dashed[disabled] > a:only-child, +.ant-btn-dashed-disabled:hover > a:only-child, .ant-btn-dashed.disabled:hover > a:only-child, .ant-btn-dashed[disabled]:hover > a:only-child, +.ant-btn-dashed-disabled:focus > a:only-child, .ant-btn-dashed.disabled:focus > a:only-child, .ant-btn-dashed[disabled]:focus > a:only-child, +.ant-btn-dashed-disabled:active > a:only-child, .ant-btn-dashed.disabled:active > a:only-child, .ant-btn-dashed[disabled]:active > a:only-child, +.ant-btn-dashed-disabled.active > a:only-child, .ant-btn-dashed.disabled.active > a:only-child, .ant-btn-dashed[disabled].active > a:only-child { color: currentColor; } -.ant-btn-dashed.disabled > a:only-child:after, -.ant-btn-dashed[disabled] > a:only-child:after, -.ant-btn-dashed.disabled:hover > a:only-child:after, -.ant-btn-dashed[disabled]:hover > a:only-child:after, -.ant-btn-dashed.disabled:focus > a:only-child:after, -.ant-btn-dashed[disabled]:focus > a:only-child:after, -.ant-btn-dashed.disabled:active > a:only-child:after, -.ant-btn-dashed[disabled]:active > a:only-child:after, -.ant-btn-dashed.disabled.active > a:only-child:after, -.ant-btn-dashed[disabled].active > a:only-child:after { - content: ''; +.ant-btn-dashed-disabled > a:only-child::after, +.ant-btn-dashed.disabled > a:only-child::after, +.ant-btn-dashed[disabled] > a:only-child::after, +.ant-btn-dashed-disabled:hover > a:only-child::after, +.ant-btn-dashed.disabled:hover > a:only-child::after, +.ant-btn-dashed[disabled]:hover > a:only-child::after, +.ant-btn-dashed-disabled:focus > a:only-child::after, +.ant-btn-dashed.disabled:focus > a:only-child::after, +.ant-btn-dashed[disabled]:focus > a:only-child::after, +.ant-btn-dashed-disabled:active > a:only-child::after, +.ant-btn-dashed.disabled:active > a:only-child::after, +.ant-btn-dashed[disabled]:active > a:only-child::after, +.ant-btn-dashed-disabled.active > a:only-child::after, +.ant-btn-dashed.disabled.active > a:only-child::after, +.ant-btn-dashed[disabled].active > a:only-child::after { position: absolute; top: 0; - left: 0; - bottom: 0; right: 0; + bottom: 0; + left: 0; background: transparent; + content: ''; } .ant-btn-danger { color: #f5222d; @@ -4618,14 +4683,14 @@ mark { .ant-btn-danger > a:only-child { color: currentColor; } -.ant-btn-danger > a:only-child:after { - content: ''; +.ant-btn-danger > a:only-child::after { position: absolute; top: 0; - left: 0; - bottom: 0; right: 0; + bottom: 0; + left: 0; background: transparent; + content: ''; } .ant-btn-danger:hover { color: #fff; @@ -4635,14 +4700,14 @@ mark { .ant-btn-danger:hover > a:only-child { color: currentColor; } -.ant-btn-danger:hover > a:only-child:after { - content: ''; +.ant-btn-danger:hover > a:only-child::after { position: absolute; top: 0; - left: 0; - bottom: 0; right: 0; + bottom: 0; + left: 0; background: transparent; + content: ''; } .ant-btn-danger:focus { color: #ff4d4f; @@ -4652,14 +4717,14 @@ mark { .ant-btn-danger:focus > a:only-child { color: currentColor; } -.ant-btn-danger:focus > a:only-child:after { - content: ''; +.ant-btn-danger:focus > a:only-child::after { position: absolute; top: 0; - left: 0; - bottom: 0; right: 0; + bottom: 0; + left: 0; background: transparent; + content: ''; } .ant-btn-danger:active, .ant-btn-danger.active { @@ -4671,24 +4736,29 @@ mark { .ant-btn-danger.active > a:only-child { color: currentColor; } -.ant-btn-danger:active > a:only-child:after, -.ant-btn-danger.active > a:only-child:after { - content: ''; +.ant-btn-danger:active > a:only-child::after, +.ant-btn-danger.active > a:only-child::after { position: absolute; top: 0; - left: 0; - bottom: 0; right: 0; + bottom: 0; + left: 0; background: transparent; + content: ''; } +.ant-btn-danger-disabled, .ant-btn-danger.disabled, .ant-btn-danger[disabled], +.ant-btn-danger-disabled:hover, .ant-btn-danger.disabled:hover, .ant-btn-danger[disabled]:hover, +.ant-btn-danger-disabled:focus, .ant-btn-danger.disabled:focus, .ant-btn-danger[disabled]:focus, +.ant-btn-danger-disabled:active, .ant-btn-danger.disabled:active, .ant-btn-danger[disabled]:active, +.ant-btn-danger-disabled.active, .ant-btn-danger.disabled.active, .ant-btn-danger[disabled].active { color: rgba(0, 0, 0, 0.25); @@ -4697,89 +4767,304 @@ mark { text-shadow: none; box-shadow: none; } +.ant-btn-danger-disabled > a:only-child, .ant-btn-danger.disabled > a:only-child, .ant-btn-danger[disabled] > a:only-child, +.ant-btn-danger-disabled:hover > a:only-child, .ant-btn-danger.disabled:hover > a:only-child, .ant-btn-danger[disabled]:hover > a:only-child, +.ant-btn-danger-disabled:focus > a:only-child, .ant-btn-danger.disabled:focus > a:only-child, .ant-btn-danger[disabled]:focus > a:only-child, +.ant-btn-danger-disabled:active > a:only-child, .ant-btn-danger.disabled:active > a:only-child, .ant-btn-danger[disabled]:active > a:only-child, +.ant-btn-danger-disabled.active > a:only-child, .ant-btn-danger.disabled.active > a:only-child, .ant-btn-danger[disabled].active > a:only-child { color: currentColor; } -.ant-btn-danger.disabled > a:only-child:after, -.ant-btn-danger[disabled] > a:only-child:after, -.ant-btn-danger.disabled:hover > a:only-child:after, -.ant-btn-danger[disabled]:hover > a:only-child:after, -.ant-btn-danger.disabled:focus > a:only-child:after, -.ant-btn-danger[disabled]:focus > a:only-child:after, -.ant-btn-danger.disabled:active > a:only-child:after, -.ant-btn-danger[disabled]:active > a:only-child:after, -.ant-btn-danger.disabled.active > a:only-child:after, -.ant-btn-danger[disabled].active > a:only-child:after { +.ant-btn-danger-disabled > a:only-child::after, +.ant-btn-danger.disabled > a:only-child::after, +.ant-btn-danger[disabled] > a:only-child::after, +.ant-btn-danger-disabled:hover > a:only-child::after, +.ant-btn-danger.disabled:hover > a:only-child::after, +.ant-btn-danger[disabled]:hover > a:only-child::after, +.ant-btn-danger-disabled:focus > a:only-child::after, +.ant-btn-danger.disabled:focus > a:only-child::after, +.ant-btn-danger[disabled]:focus > a:only-child::after, +.ant-btn-danger-disabled:active > a:only-child::after, +.ant-btn-danger.disabled:active > a:only-child::after, +.ant-btn-danger[disabled]:active > a:only-child::after, +.ant-btn-danger-disabled.active > a:only-child::after, +.ant-btn-danger.disabled.active > a:only-child::after, +.ant-btn-danger[disabled].active > a:only-child::after { + position: absolute; + top: 0; + right: 0; + bottom: 0; + left: 0; + background: transparent; + content: ''; +} +.ant-btn-link { + color: #E64448; + background-color: transparent; + border-color: transparent; + box-shadow: none; +} +.ant-btn-link > a:only-child { + color: currentColor; +} +.ant-btn-link > a:only-child::after { + position: absolute; + top: 0; + right: 0; + bottom: 0; + left: 0; + background: transparent; + content: ''; +} +.ant-btn-link:hover, +.ant-btn-link:focus { + color: #f2726f; + background-color: transparent; + border-color: #f2726f; +} +.ant-btn-link:hover > a:only-child, +.ant-btn-link:focus > a:only-child { + color: currentColor; +} +.ant-btn-link:hover > a:only-child::after, +.ant-btn-link:focus > a:only-child::after { + position: absolute; + top: 0; + right: 0; + bottom: 0; + left: 0; + background: transparent; content: ''; +} +.ant-btn-link:active, +.ant-btn-link.active { + color: #bf3037; + background-color: transparent; + border-color: #bf3037; +} +.ant-btn-link:active > a:only-child, +.ant-btn-link.active > a:only-child { + color: currentColor; +} +.ant-btn-link:active > a:only-child::after, +.ant-btn-link.active > a:only-child::after { position: absolute; top: 0; + right: 0; + bottom: 0; left: 0; + background: transparent; + content: ''; +} +.ant-btn-link-disabled, +.ant-btn-link.disabled, +.ant-btn-link[disabled], +.ant-btn-link-disabled:hover, +.ant-btn-link.disabled:hover, +.ant-btn-link[disabled]:hover, +.ant-btn-link-disabled:focus, +.ant-btn-link.disabled:focus, +.ant-btn-link[disabled]:focus, +.ant-btn-link-disabled:active, +.ant-btn-link.disabled:active, +.ant-btn-link[disabled]:active, +.ant-btn-link-disabled.active, +.ant-btn-link.disabled.active, +.ant-btn-link[disabled].active { + color: rgba(0, 0, 0, 0.25); + background-color: #f5f5f5; + border-color: #d9d9d9; + text-shadow: none; + box-shadow: none; +} +.ant-btn-link-disabled > a:only-child, +.ant-btn-link.disabled > a:only-child, +.ant-btn-link[disabled] > a:only-child, +.ant-btn-link-disabled:hover > a:only-child, +.ant-btn-link.disabled:hover > a:only-child, +.ant-btn-link[disabled]:hover > a:only-child, +.ant-btn-link-disabled:focus > a:only-child, +.ant-btn-link.disabled:focus > a:only-child, +.ant-btn-link[disabled]:focus > a:only-child, +.ant-btn-link-disabled:active > a:only-child, +.ant-btn-link.disabled:active > a:only-child, +.ant-btn-link[disabled]:active > a:only-child, +.ant-btn-link-disabled.active > a:only-child, +.ant-btn-link.disabled.active > a:only-child, +.ant-btn-link[disabled].active > a:only-child { + color: currentColor; +} +.ant-btn-link-disabled > a:only-child::after, +.ant-btn-link.disabled > a:only-child::after, +.ant-btn-link[disabled] > a:only-child::after, +.ant-btn-link-disabled:hover > a:only-child::after, +.ant-btn-link.disabled:hover > a:only-child::after, +.ant-btn-link[disabled]:hover > a:only-child::after, +.ant-btn-link-disabled:focus > a:only-child::after, +.ant-btn-link.disabled:focus > a:only-child::after, +.ant-btn-link[disabled]:focus > a:only-child::after, +.ant-btn-link-disabled:active > a:only-child::after, +.ant-btn-link.disabled:active > a:only-child::after, +.ant-btn-link[disabled]:active > a:only-child::after, +.ant-btn-link-disabled.active > a:only-child::after, +.ant-btn-link.disabled.active > a:only-child::after, +.ant-btn-link[disabled].active > a:only-child::after { + position: absolute; + top: 0; + right: 0; bottom: 0; + left: 0; + background: transparent; + content: ''; +} +.ant-btn-link:hover, +.ant-btn-link:focus, +.ant-btn-link:active { + border-color: transparent; +} +.ant-btn-link-disabled, +.ant-btn-link.disabled, +.ant-btn-link[disabled], +.ant-btn-link-disabled:hover, +.ant-btn-link.disabled:hover, +.ant-btn-link[disabled]:hover, +.ant-btn-link-disabled:focus, +.ant-btn-link.disabled:focus, +.ant-btn-link[disabled]:focus, +.ant-btn-link-disabled:active, +.ant-btn-link.disabled:active, +.ant-btn-link[disabled]:active, +.ant-btn-link-disabled.active, +.ant-btn-link.disabled.active, +.ant-btn-link[disabled].active { + color: rgba(0, 0, 0, 0.25); + background-color: transparent; + border-color: transparent; + text-shadow: none; + box-shadow: none; +} +.ant-btn-link-disabled > a:only-child, +.ant-btn-link.disabled > a:only-child, +.ant-btn-link[disabled] > a:only-child, +.ant-btn-link-disabled:hover > a:only-child, +.ant-btn-link.disabled:hover > a:only-child, +.ant-btn-link[disabled]:hover > a:only-child, +.ant-btn-link-disabled:focus > a:only-child, +.ant-btn-link.disabled:focus > a:only-child, +.ant-btn-link[disabled]:focus > a:only-child, +.ant-btn-link-disabled:active > a:only-child, +.ant-btn-link.disabled:active > a:only-child, +.ant-btn-link[disabled]:active > a:only-child, +.ant-btn-link-disabled.active > a:only-child, +.ant-btn-link.disabled.active > a:only-child, +.ant-btn-link[disabled].active > a:only-child { + color: currentColor; +} +.ant-btn-link-disabled > a:only-child::after, +.ant-btn-link.disabled > a:only-child::after, +.ant-btn-link[disabled] > a:only-child::after, +.ant-btn-link-disabled:hover > a:only-child::after, +.ant-btn-link.disabled:hover > a:only-child::after, +.ant-btn-link[disabled]:hover > a:only-child::after, +.ant-btn-link-disabled:focus > a:only-child::after, +.ant-btn-link.disabled:focus > a:only-child::after, +.ant-btn-link[disabled]:focus > a:only-child::after, +.ant-btn-link-disabled:active > a:only-child::after, +.ant-btn-link.disabled:active > a:only-child::after, +.ant-btn-link[disabled]:active > a:only-child::after, +.ant-btn-link-disabled.active > a:only-child::after, +.ant-btn-link.disabled.active > a:only-child::after, +.ant-btn-link[disabled].active > a:only-child::after { + position: absolute; + top: 0; right: 0; + bottom: 0; + left: 0; background: transparent; + content: ''; +} +.ant-btn-round { + height: 32px; + padding: 0 16px; + font-size: 16px; + border-radius: 32px; +} +.ant-btn-round.ant-btn-lg { + height: 40px; + padding: 0 20px; + font-size: 18px; + border-radius: 40px; +} +.ant-btn-round.ant-btn-sm { + height: 24px; + padding: 0 12px; + font-size: 14px; + border-radius: 24px; } .ant-btn-circle, .ant-btn-circle-outline { width: 32px; + height: 32px; padding: 0; font-size: 16px; border-radius: 50%; - height: 32px; } .ant-btn-circle.ant-btn-lg, .ant-btn-circle-outline.ant-btn-lg { width: 40px; + height: 40px; padding: 0; font-size: 18px; border-radius: 50%; - height: 40px; } .ant-btn-circle.ant-btn-sm, .ant-btn-circle-outline.ant-btn-sm { width: 24px; + height: 24px; padding: 0; font-size: 14px; border-radius: 50%; - height: 24px; } -.ant-btn:before { +.ant-btn::before { position: absolute; top: -1px; - left: -1px; - bottom: -1px; right: -1px; + bottom: -1px; + left: -1px; + z-index: 1; + display: none; background: #fff; - opacity: 0.35; - content: ''; border-radius: inherit; - z-index: 1; + opacity: 0.35; + -webkit-transition: opacity 0.2s; transition: opacity 0.2s; pointer-events: none; - display: none; + content: ''; } .ant-btn .anticon { + -webkit-transition: margin-left 0.3s cubic-bezier(0.645, 0.045, 0.355, 1); transition: margin-left 0.3s cubic-bezier(0.645, 0.045, 0.355, 1); } .ant-btn .anticon.anticon-plus > svg, .ant-btn .anticon.anticon-minus > svg { shape-rendering: optimizeSpeed; } -.ant-btn.ant-btn-loading:before { +.ant-btn.ant-btn-loading::before { display: block; } .ant-btn.ant-btn-loading:not(.ant-btn-circle):not(.ant-btn-circle-outline):not(.ant-btn-icon-only) { + position: relative; padding-left: 29px; pointer-events: none; - position: relative; } .ant-btn.ant-btn-loading:not(.ant-btn-circle):not(.ant-btn-circle-outline):not(.ant-btn-icon-only) .anticon:not(:last-child) { margin-left: -14px; @@ -4814,18 +5099,18 @@ mark { } .ant-btn-group-lg > .ant-btn, .ant-btn-group-lg > span > .ant-btn { + height: 40px; padding: 0 15px; font-size: 16px; border-radius: 0; - height: 40px; line-height: 38px; } .ant-btn-group-sm > .ant-btn, .ant-btn-group-sm > span > .ant-btn { + height: 24px; padding: 0 7px; font-size: 14px; border-radius: 0; - height: 24px; line-height: 22px; } .ant-btn-group-sm > .ant-btn > .anticon, @@ -4859,13 +5144,13 @@ mark { } .ant-btn-group > .ant-btn:first-child:not(:last-child), .ant-btn-group > span:first-child:not(:last-child) > .ant-btn { - border-bottom-left-radius: 5px; border-top-left-radius: 5px; + border-bottom-left-radius: 5px; } .ant-btn-group > .ant-btn:last-child:not(:first-child), .ant-btn-group > span:last-child:not(:first-child) > .ant-btn { - border-bottom-right-radius: 5px; border-top-right-radius: 5px; + border-bottom-right-radius: 5px; } .ant-btn-group-sm > .ant-btn:only-child { border-radius: 5px; @@ -4875,13 +5160,13 @@ mark { } .ant-btn-group-sm > .ant-btn:first-child:not(:last-child), .ant-btn-group-sm > span:first-child:not(:last-child) > .ant-btn { - border-bottom-left-radius: 5px; border-top-left-radius: 5px; + border-bottom-left-radius: 5px; } .ant-btn-group-sm > .ant-btn:last-child:not(:first-child), .ant-btn-group-sm > span:last-child:not(:first-child) > .ant-btn { - border-bottom-right-radius: 5px; border-top-right-radius: 5px; + border-bottom-right-radius: 5px; } .ant-btn-group > .ant-btn-group { float: left; @@ -4890,18 +5175,18 @@ mark { border-radius: 0; } .ant-btn-group > .ant-btn-group:first-child:not(:last-child) > .ant-btn:last-child { - border-bottom-right-radius: 0; - border-top-right-radius: 0; padding-right: 8px; + border-top-right-radius: 0; + border-bottom-right-radius: 0; } .ant-btn-group > .ant-btn-group:last-child:not(:first-child) > .ant-btn:first-child { - border-bottom-left-radius: 0; - border-top-left-radius: 0; padding-left: 8px; + border-top-left-radius: 0; + border-bottom-left-radius: 0; } .ant-btn:not(.ant-btn-circle):not(.ant-btn-circle-outline).ant-btn-icon-only { - padding-left: 8px; padding-right: 8px; + padding-left: 8px; } .ant-btn:focus > span, .ant-btn:active > span { @@ -4912,9 +5197,9 @@ mark { margin-left: 8px; } .ant-btn-background-ghost { + color: #fff; background: transparent !important; border-color: #fff; - color: #fff; } .ant-btn-background-ghost.ant-btn-primary { color: #E64448; @@ -4925,14 +5210,14 @@ mark { .ant-btn-background-ghost.ant-btn-primary > a:only-child { color: currentColor; } -.ant-btn-background-ghost.ant-btn-primary > a:only-child:after { - content: ''; +.ant-btn-background-ghost.ant-btn-primary > a:only-child::after { position: absolute; top: 0; - left: 0; - bottom: 0; right: 0; + bottom: 0; + left: 0; background: transparent; + content: ''; } .ant-btn-background-ghost.ant-btn-primary:hover, .ant-btn-background-ghost.ant-btn-primary:focus { @@ -4944,15 +5229,15 @@ mark { .ant-btn-background-ghost.ant-btn-primary:focus > a:only-child { color: currentColor; } -.ant-btn-background-ghost.ant-btn-primary:hover > a:only-child:after, -.ant-btn-background-ghost.ant-btn-primary:focus > a:only-child:after { - content: ''; +.ant-btn-background-ghost.ant-btn-primary:hover > a:only-child::after, +.ant-btn-background-ghost.ant-btn-primary:focus > a:only-child::after { position: absolute; top: 0; - left: 0; - bottom: 0; right: 0; + bottom: 0; + left: 0; background: transparent; + content: ''; } .ant-btn-background-ghost.ant-btn-primary:active, .ant-btn-background-ghost.ant-btn-primary.active { @@ -4964,24 +5249,29 @@ mark { .ant-btn-background-ghost.ant-btn-primary.active > a:only-child { color: currentColor; } -.ant-btn-background-ghost.ant-btn-primary:active > a:only-child:after, -.ant-btn-background-ghost.ant-btn-primary.active > a:only-child:after { - content: ''; +.ant-btn-background-ghost.ant-btn-primary:active > a:only-child::after, +.ant-btn-background-ghost.ant-btn-primary.active > a:only-child::after { position: absolute; top: 0; - left: 0; - bottom: 0; right: 0; + bottom: 0; + left: 0; background: transparent; + content: ''; } +.ant-btn-background-ghost.ant-btn-primary-disabled, .ant-btn-background-ghost.ant-btn-primary.disabled, .ant-btn-background-ghost.ant-btn-primary[disabled], +.ant-btn-background-ghost.ant-btn-primary-disabled:hover, .ant-btn-background-ghost.ant-btn-primary.disabled:hover, .ant-btn-background-ghost.ant-btn-primary[disabled]:hover, +.ant-btn-background-ghost.ant-btn-primary-disabled:focus, .ant-btn-background-ghost.ant-btn-primary.disabled:focus, .ant-btn-background-ghost.ant-btn-primary[disabled]:focus, +.ant-btn-background-ghost.ant-btn-primary-disabled:active, .ant-btn-background-ghost.ant-btn-primary.disabled:active, .ant-btn-background-ghost.ant-btn-primary[disabled]:active, +.ant-btn-background-ghost.ant-btn-primary-disabled.active, .ant-btn-background-ghost.ant-btn-primary.disabled.active, .ant-btn-background-ghost.ant-btn-primary[disabled].active { color: rgba(0, 0, 0, 0.25); @@ -4990,35 +5280,45 @@ mark { text-shadow: none; box-shadow: none; } +.ant-btn-background-ghost.ant-btn-primary-disabled > a:only-child, .ant-btn-background-ghost.ant-btn-primary.disabled > a:only-child, .ant-btn-background-ghost.ant-btn-primary[disabled] > a:only-child, +.ant-btn-background-ghost.ant-btn-primary-disabled:hover > a:only-child, .ant-btn-background-ghost.ant-btn-primary.disabled:hover > a:only-child, .ant-btn-background-ghost.ant-btn-primary[disabled]:hover > a:only-child, +.ant-btn-background-ghost.ant-btn-primary-disabled:focus > a:only-child, .ant-btn-background-ghost.ant-btn-primary.disabled:focus > a:only-child, .ant-btn-background-ghost.ant-btn-primary[disabled]:focus > a:only-child, +.ant-btn-background-ghost.ant-btn-primary-disabled:active > a:only-child, .ant-btn-background-ghost.ant-btn-primary.disabled:active > a:only-child, .ant-btn-background-ghost.ant-btn-primary[disabled]:active > a:only-child, +.ant-btn-background-ghost.ant-btn-primary-disabled.active > a:only-child, .ant-btn-background-ghost.ant-btn-primary.disabled.active > a:only-child, .ant-btn-background-ghost.ant-btn-primary[disabled].active > a:only-child { color: currentColor; } -.ant-btn-background-ghost.ant-btn-primary.disabled > a:only-child:after, -.ant-btn-background-ghost.ant-btn-primary[disabled] > a:only-child:after, -.ant-btn-background-ghost.ant-btn-primary.disabled:hover > a:only-child:after, -.ant-btn-background-ghost.ant-btn-primary[disabled]:hover > a:only-child:after, -.ant-btn-background-ghost.ant-btn-primary.disabled:focus > a:only-child:after, -.ant-btn-background-ghost.ant-btn-primary[disabled]:focus > a:only-child:after, -.ant-btn-background-ghost.ant-btn-primary.disabled:active > a:only-child:after, -.ant-btn-background-ghost.ant-btn-primary[disabled]:active > a:only-child:after, -.ant-btn-background-ghost.ant-btn-primary.disabled.active > a:only-child:after, -.ant-btn-background-ghost.ant-btn-primary[disabled].active > a:only-child:after { - content: ''; +.ant-btn-background-ghost.ant-btn-primary-disabled > a:only-child::after, +.ant-btn-background-ghost.ant-btn-primary.disabled > a:only-child::after, +.ant-btn-background-ghost.ant-btn-primary[disabled] > a:only-child::after, +.ant-btn-background-ghost.ant-btn-primary-disabled:hover > a:only-child::after, +.ant-btn-background-ghost.ant-btn-primary.disabled:hover > a:only-child::after, +.ant-btn-background-ghost.ant-btn-primary[disabled]:hover > a:only-child::after, +.ant-btn-background-ghost.ant-btn-primary-disabled:focus > a:only-child::after, +.ant-btn-background-ghost.ant-btn-primary.disabled:focus > a:only-child::after, +.ant-btn-background-ghost.ant-btn-primary[disabled]:focus > a:only-child::after, +.ant-btn-background-ghost.ant-btn-primary-disabled:active > a:only-child::after, +.ant-btn-background-ghost.ant-btn-primary.disabled:active > a:only-child::after, +.ant-btn-background-ghost.ant-btn-primary[disabled]:active > a:only-child::after, +.ant-btn-background-ghost.ant-btn-primary-disabled.active > a:only-child::after, +.ant-btn-background-ghost.ant-btn-primary.disabled.active > a:only-child::after, +.ant-btn-background-ghost.ant-btn-primary[disabled].active > a:only-child::after { position: absolute; top: 0; - left: 0; - bottom: 0; right: 0; + bottom: 0; + left: 0; background: transparent; + content: ''; } .ant-btn-background-ghost.ant-btn-danger { color: #f5222d; @@ -5029,14 +5329,14 @@ mark { .ant-btn-background-ghost.ant-btn-danger > a:only-child { color: currentColor; } -.ant-btn-background-ghost.ant-btn-danger > a:only-child:after { - content: ''; +.ant-btn-background-ghost.ant-btn-danger > a:only-child::after { position: absolute; top: 0; - left: 0; - bottom: 0; right: 0; + bottom: 0; + left: 0; background: transparent; + content: ''; } .ant-btn-background-ghost.ant-btn-danger:hover, .ant-btn-background-ghost.ant-btn-danger:focus { @@ -5048,88 +5348,223 @@ mark { .ant-btn-background-ghost.ant-btn-danger:focus > a:only-child { color: currentColor; } -.ant-btn-background-ghost.ant-btn-danger:hover > a:only-child:after, -.ant-btn-background-ghost.ant-btn-danger:focus > a:only-child:after { +.ant-btn-background-ghost.ant-btn-danger:hover > a:only-child::after, +.ant-btn-background-ghost.ant-btn-danger:focus > a:only-child::after { + position: absolute; + top: 0; + right: 0; + bottom: 0; + left: 0; + background: transparent; + content: ''; +} +.ant-btn-background-ghost.ant-btn-danger:active, +.ant-btn-background-ghost.ant-btn-danger.active { + color: #cf1322; + background-color: transparent; + border-color: #cf1322; +} +.ant-btn-background-ghost.ant-btn-danger:active > a:only-child, +.ant-btn-background-ghost.ant-btn-danger.active > a:only-child { + color: currentColor; +} +.ant-btn-background-ghost.ant-btn-danger:active > a:only-child::after, +.ant-btn-background-ghost.ant-btn-danger.active > a:only-child::after { + position: absolute; + top: 0; + right: 0; + bottom: 0; + left: 0; + background: transparent; + content: ''; +} +.ant-btn-background-ghost.ant-btn-danger-disabled, +.ant-btn-background-ghost.ant-btn-danger.disabled, +.ant-btn-background-ghost.ant-btn-danger[disabled], +.ant-btn-background-ghost.ant-btn-danger-disabled:hover, +.ant-btn-background-ghost.ant-btn-danger.disabled:hover, +.ant-btn-background-ghost.ant-btn-danger[disabled]:hover, +.ant-btn-background-ghost.ant-btn-danger-disabled:focus, +.ant-btn-background-ghost.ant-btn-danger.disabled:focus, +.ant-btn-background-ghost.ant-btn-danger[disabled]:focus, +.ant-btn-background-ghost.ant-btn-danger-disabled:active, +.ant-btn-background-ghost.ant-btn-danger.disabled:active, +.ant-btn-background-ghost.ant-btn-danger[disabled]:active, +.ant-btn-background-ghost.ant-btn-danger-disabled.active, +.ant-btn-background-ghost.ant-btn-danger.disabled.active, +.ant-btn-background-ghost.ant-btn-danger[disabled].active { + color: rgba(0, 0, 0, 0.25); + background-color: #f5f5f5; + border-color: #d9d9d9; + text-shadow: none; + box-shadow: none; +} +.ant-btn-background-ghost.ant-btn-danger-disabled > a:only-child, +.ant-btn-background-ghost.ant-btn-danger.disabled > a:only-child, +.ant-btn-background-ghost.ant-btn-danger[disabled] > a:only-child, +.ant-btn-background-ghost.ant-btn-danger-disabled:hover > a:only-child, +.ant-btn-background-ghost.ant-btn-danger.disabled:hover > a:only-child, +.ant-btn-background-ghost.ant-btn-danger[disabled]:hover > a:only-child, +.ant-btn-background-ghost.ant-btn-danger-disabled:focus > a:only-child, +.ant-btn-background-ghost.ant-btn-danger.disabled:focus > a:only-child, +.ant-btn-background-ghost.ant-btn-danger[disabled]:focus > a:only-child, +.ant-btn-background-ghost.ant-btn-danger-disabled:active > a:only-child, +.ant-btn-background-ghost.ant-btn-danger.disabled:active > a:only-child, +.ant-btn-background-ghost.ant-btn-danger[disabled]:active > a:only-child, +.ant-btn-background-ghost.ant-btn-danger-disabled.active > a:only-child, +.ant-btn-background-ghost.ant-btn-danger.disabled.active > a:only-child, +.ant-btn-background-ghost.ant-btn-danger[disabled].active > a:only-child { + color: currentColor; +} +.ant-btn-background-ghost.ant-btn-danger-disabled > a:only-child::after, +.ant-btn-background-ghost.ant-btn-danger.disabled > a:only-child::after, +.ant-btn-background-ghost.ant-btn-danger[disabled] > a:only-child::after, +.ant-btn-background-ghost.ant-btn-danger-disabled:hover > a:only-child::after, +.ant-btn-background-ghost.ant-btn-danger.disabled:hover > a:only-child::after, +.ant-btn-background-ghost.ant-btn-danger[disabled]:hover > a:only-child::after, +.ant-btn-background-ghost.ant-btn-danger-disabled:focus > a:only-child::after, +.ant-btn-background-ghost.ant-btn-danger.disabled:focus > a:only-child::after, +.ant-btn-background-ghost.ant-btn-danger[disabled]:focus > a:only-child::after, +.ant-btn-background-ghost.ant-btn-danger-disabled:active > a:only-child::after, +.ant-btn-background-ghost.ant-btn-danger.disabled:active > a:only-child::after, +.ant-btn-background-ghost.ant-btn-danger[disabled]:active > a:only-child::after, +.ant-btn-background-ghost.ant-btn-danger-disabled.active > a:only-child::after, +.ant-btn-background-ghost.ant-btn-danger.disabled.active > a:only-child::after, +.ant-btn-background-ghost.ant-btn-danger[disabled].active > a:only-child::after { + position: absolute; + top: 0; + right: 0; + bottom: 0; + left: 0; + background: transparent; + content: ''; +} +.ant-btn-background-ghost.ant-btn-link { + color: #E64448; + background-color: transparent; + border-color: transparent; + text-shadow: none; + color: #fff; +} +.ant-btn-background-ghost.ant-btn-link > a:only-child { + color: currentColor; +} +.ant-btn-background-ghost.ant-btn-link > a:only-child::after { + position: absolute; + top: 0; + right: 0; + bottom: 0; + left: 0; + background: transparent; content: ''; +} +.ant-btn-background-ghost.ant-btn-link:hover, +.ant-btn-background-ghost.ant-btn-link:focus { + color: #f2726f; + background-color: transparent; + border-color: transparent; +} +.ant-btn-background-ghost.ant-btn-link:hover > a:only-child, +.ant-btn-background-ghost.ant-btn-link:focus > a:only-child { + color: currentColor; +} +.ant-btn-background-ghost.ant-btn-link:hover > a:only-child::after, +.ant-btn-background-ghost.ant-btn-link:focus > a:only-child::after { position: absolute; top: 0; - left: 0; - bottom: 0; right: 0; + bottom: 0; + left: 0; background: transparent; + content: ''; } -.ant-btn-background-ghost.ant-btn-danger:active, -.ant-btn-background-ghost.ant-btn-danger.active { - color: #cf1322; +.ant-btn-background-ghost.ant-btn-link:active, +.ant-btn-background-ghost.ant-btn-link.active { + color: #bf3037; background-color: transparent; - border-color: #cf1322; + border-color: transparent; } -.ant-btn-background-ghost.ant-btn-danger:active > a:only-child, -.ant-btn-background-ghost.ant-btn-danger.active > a:only-child { +.ant-btn-background-ghost.ant-btn-link:active > a:only-child, +.ant-btn-background-ghost.ant-btn-link.active > a:only-child { color: currentColor; } -.ant-btn-background-ghost.ant-btn-danger:active > a:only-child:after, -.ant-btn-background-ghost.ant-btn-danger.active > a:only-child:after { - content: ''; +.ant-btn-background-ghost.ant-btn-link:active > a:only-child::after, +.ant-btn-background-ghost.ant-btn-link.active > a:only-child::after { position: absolute; top: 0; - left: 0; - bottom: 0; right: 0; + bottom: 0; + left: 0; background: transparent; + content: ''; } -.ant-btn-background-ghost.ant-btn-danger.disabled, -.ant-btn-background-ghost.ant-btn-danger[disabled], -.ant-btn-background-ghost.ant-btn-danger.disabled:hover, -.ant-btn-background-ghost.ant-btn-danger[disabled]:hover, -.ant-btn-background-ghost.ant-btn-danger.disabled:focus, -.ant-btn-background-ghost.ant-btn-danger[disabled]:focus, -.ant-btn-background-ghost.ant-btn-danger.disabled:active, -.ant-btn-background-ghost.ant-btn-danger[disabled]:active, -.ant-btn-background-ghost.ant-btn-danger.disabled.active, -.ant-btn-background-ghost.ant-btn-danger[disabled].active { +.ant-btn-background-ghost.ant-btn-link-disabled, +.ant-btn-background-ghost.ant-btn-link.disabled, +.ant-btn-background-ghost.ant-btn-link[disabled], +.ant-btn-background-ghost.ant-btn-link-disabled:hover, +.ant-btn-background-ghost.ant-btn-link.disabled:hover, +.ant-btn-background-ghost.ant-btn-link[disabled]:hover, +.ant-btn-background-ghost.ant-btn-link-disabled:focus, +.ant-btn-background-ghost.ant-btn-link.disabled:focus, +.ant-btn-background-ghost.ant-btn-link[disabled]:focus, +.ant-btn-background-ghost.ant-btn-link-disabled:active, +.ant-btn-background-ghost.ant-btn-link.disabled:active, +.ant-btn-background-ghost.ant-btn-link[disabled]:active, +.ant-btn-background-ghost.ant-btn-link-disabled.active, +.ant-btn-background-ghost.ant-btn-link.disabled.active, +.ant-btn-background-ghost.ant-btn-link[disabled].active { color: rgba(0, 0, 0, 0.25); background-color: #f5f5f5; border-color: #d9d9d9; text-shadow: none; box-shadow: none; } -.ant-btn-background-ghost.ant-btn-danger.disabled > a:only-child, -.ant-btn-background-ghost.ant-btn-danger[disabled] > a:only-child, -.ant-btn-background-ghost.ant-btn-danger.disabled:hover > a:only-child, -.ant-btn-background-ghost.ant-btn-danger[disabled]:hover > a:only-child, -.ant-btn-background-ghost.ant-btn-danger.disabled:focus > a:only-child, -.ant-btn-background-ghost.ant-btn-danger[disabled]:focus > a:only-child, -.ant-btn-background-ghost.ant-btn-danger.disabled:active > a:only-child, -.ant-btn-background-ghost.ant-btn-danger[disabled]:active > a:only-child, -.ant-btn-background-ghost.ant-btn-danger.disabled.active > a:only-child, -.ant-btn-background-ghost.ant-btn-danger[disabled].active > a:only-child { +.ant-btn-background-ghost.ant-btn-link-disabled > a:only-child, +.ant-btn-background-ghost.ant-btn-link.disabled > a:only-child, +.ant-btn-background-ghost.ant-btn-link[disabled] > a:only-child, +.ant-btn-background-ghost.ant-btn-link-disabled:hover > a:only-child, +.ant-btn-background-ghost.ant-btn-link.disabled:hover > a:only-child, +.ant-btn-background-ghost.ant-btn-link[disabled]:hover > a:only-child, +.ant-btn-background-ghost.ant-btn-link-disabled:focus > a:only-child, +.ant-btn-background-ghost.ant-btn-link.disabled:focus > a:only-child, +.ant-btn-background-ghost.ant-btn-link[disabled]:focus > a:only-child, +.ant-btn-background-ghost.ant-btn-link-disabled:active > a:only-child, +.ant-btn-background-ghost.ant-btn-link.disabled:active > a:only-child, +.ant-btn-background-ghost.ant-btn-link[disabled]:active > a:only-child, +.ant-btn-background-ghost.ant-btn-link-disabled.active > a:only-child, +.ant-btn-background-ghost.ant-btn-link.disabled.active > a:only-child, +.ant-btn-background-ghost.ant-btn-link[disabled].active > a:only-child { color: currentColor; } -.ant-btn-background-ghost.ant-btn-danger.disabled > a:only-child:after, -.ant-btn-background-ghost.ant-btn-danger[disabled] > a:only-child:after, -.ant-btn-background-ghost.ant-btn-danger.disabled:hover > a:only-child:after, -.ant-btn-background-ghost.ant-btn-danger[disabled]:hover > a:only-child:after, -.ant-btn-background-ghost.ant-btn-danger.disabled:focus > a:only-child:after, -.ant-btn-background-ghost.ant-btn-danger[disabled]:focus > a:only-child:after, -.ant-btn-background-ghost.ant-btn-danger.disabled:active > a:only-child:after, -.ant-btn-background-ghost.ant-btn-danger[disabled]:active > a:only-child:after, -.ant-btn-background-ghost.ant-btn-danger.disabled.active > a:only-child:after, -.ant-btn-background-ghost.ant-btn-danger[disabled].active > a:only-child:after { - content: ''; +.ant-btn-background-ghost.ant-btn-link-disabled > a:only-child::after, +.ant-btn-background-ghost.ant-btn-link.disabled > a:only-child::after, +.ant-btn-background-ghost.ant-btn-link[disabled] > a:only-child::after, +.ant-btn-background-ghost.ant-btn-link-disabled:hover > a:only-child::after, +.ant-btn-background-ghost.ant-btn-link.disabled:hover > a:only-child::after, +.ant-btn-background-ghost.ant-btn-link[disabled]:hover > a:only-child::after, +.ant-btn-background-ghost.ant-btn-link-disabled:focus > a:only-child::after, +.ant-btn-background-ghost.ant-btn-link.disabled:focus > a:only-child::after, +.ant-btn-background-ghost.ant-btn-link[disabled]:focus > a:only-child::after, +.ant-btn-background-ghost.ant-btn-link-disabled:active > a:only-child::after, +.ant-btn-background-ghost.ant-btn-link.disabled:active > a:only-child::after, +.ant-btn-background-ghost.ant-btn-link[disabled]:active > a:only-child::after, +.ant-btn-background-ghost.ant-btn-link-disabled.active > a:only-child::after, +.ant-btn-background-ghost.ant-btn-link.disabled.active > a:only-child::after, +.ant-btn-background-ghost.ant-btn-link[disabled].active > a:only-child::after { position: absolute; top: 0; - left: 0; - bottom: 0; right: 0; + bottom: 0; + left: 0; background: transparent; + content: ''; } -.ant-btn-two-chinese-chars:first-letter { +.ant-btn-two-chinese-chars::first-letter { letter-spacing: 0.34em; } .ant-btn-two-chinese-chars > *:not(.anticon) { - letter-spacing: 0.34em; margin-right: -0.34em; + letter-spacing: 0.34em; } .ant-btn-block { width: 100%; @@ -5147,20 +5582,30 @@ a.ant-btn-sm { line-height: 22px; } .ant-fullcalendar { - font-family: "Chinese Quote", -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"; - font-size: 14px; - font-variant: tabular-nums; - line-height: 1.5; - color: rgba(0, 0, 0, 0.65); box-sizing: border-box; margin: 0; padding: 0; + color: rgba(0, 0, 0, 0.65); + font-size: 14px; + font-variant: tabular-nums; + line-height: 1.5; list-style: none; - outline: none; + font-feature-settings: 'tnum'; border-top: 1px solid #d9d9d9; + outline: none; } -.ant-fullcalendar-month-select { - margin-left: 5px; +.ant-select.ant-fullcalendar-year-select { + min-width: 90px; +} +.ant-select.ant-fullcalendar-year-select.ant-select-sm { + min-width: 70px; +} +.ant-select.ant-fullcalendar-month-select { + min-width: 80px; + margin-left: 8px; +} +.ant-select.ant-fullcalendar-month-select.ant-select-sm { + min-width: 60px; } .ant-fullcalendar-header { padding: 11px 16px 11px 0; @@ -5175,8 +5620,8 @@ a.ant-btn-sm { } .ant-fullcalendar-header label.ant-radio-button { height: 22px; - line-height: 20px; padding: 0 10px; + line-height: 20px; } .ant-fullcalendar-date-panel { position: relative; @@ -5186,11 +5631,11 @@ a.ant-btn-sm { padding: 8px 12px; } .ant-fullcalendar table { - border-collapse: collapse; - max-width: 100%; - background-color: transparent; width: 100%; + max-width: 100%; height: 256px; + background-color: transparent; + border-collapse: collapse; } .ant-fullcalendar table, .ant-fullcalendar th, @@ -5201,13 +5646,13 @@ a.ant-btn-sm { position: relative; } .ant-fullcalendar-calendar-table { - border-spacing: 0; margin-bottom: 0; + border-spacing: 0; } .ant-fullcalendar-column-header { - line-height: 18px; - padding: 0; width: 33px; + padding: 0; + line-height: 18px; text-align: center; } .ant-fullcalendar-column-header .ant-fullcalendar-column-header-inner { @@ -5220,18 +5665,20 @@ a.ant-btn-sm { .ant-fullcalendar-month, .ant-fullcalendar-date { text-align: center; + -webkit-transition: all 0.3s; transition: all 0.3s; } .ant-fullcalendar-value { display: block; - margin: 0 auto; - color: rgba(0, 0, 0, 0.65); - border-radius: 2px; width: 24px; height: 24px; + margin: 0 auto; padding: 0; - background: transparent; + color: rgba(0, 0, 0, 0.65); line-height: 24px; + background: transparent; + border-radius: 2px; + -webkit-transition: all 0.3s; transition: all 0.3s; } .ant-fullcalendar-value:hover { @@ -5239,8 +5686,8 @@ a.ant-btn-sm { cursor: pointer; } .ant-fullcalendar-value:active { - background: #E64448; color: #fff; + background: #E64448; } .ant-fullcalendar-month-panel-cell .ant-fullcalendar-value { width: 48px; @@ -5251,8 +5698,8 @@ a.ant-btn-sm { } .ant-fullcalendar-selected-day .ant-fullcalendar-value, .ant-fullcalendar-month-panel-selected-cell .ant-fullcalendar-value { - background: #E64448; color: #fff; + background: #E64448; } .ant-fullcalendar-disabled-cell-first-of-row .ant-fullcalendar-value { border-top-left-radius: 5px; @@ -5267,15 +5714,15 @@ a.ant-btn-sm { color: rgba(0, 0, 0, 0.25); } .ant-fullcalendar-month-panel-table { - table-layout: fixed; width: 100%; + table-layout: fixed; border-collapse: separate; } .ant-fullcalendar-content { position: absolute; - width: 100%; - left: 0; bottom: -9px; + left: 0; + width: 100%; } .ant-fullcalendar-fullscreen { border-top: 0; @@ -5292,13 +5739,14 @@ a.ant-btn-sm { } .ant-fullcalendar-fullscreen .ant-fullcalendar-month, .ant-fullcalendar-fullscreen .ant-fullcalendar-date { - text-align: left; - margin: 0 4px; display: block; - color: rgba(0, 0, 0, 0.65); height: 116px; + margin: 0 4px; padding: 4px 8px; + color: rgba(0, 0, 0, 0.65); + text-align: left; border-top: 2px solid #e8e8e8; + -webkit-transition: background 0.3s; transition: background 0.3s; } .ant-fullcalendar-fullscreen .ant-fullcalendar-month:hover, @@ -5311,22 +5759,22 @@ a.ant-btn-sm { background: #fff1f0; } .ant-fullcalendar-fullscreen .ant-fullcalendar-column-header { - text-align: right; padding-right: 12px; padding-bottom: 5px; + text-align: right; } .ant-fullcalendar-fullscreen .ant-fullcalendar-value { + width: auto; text-align: right; background: transparent; - width: auto; } .ant-fullcalendar-fullscreen .ant-fullcalendar-today .ant-fullcalendar-value { color: rgba(0, 0, 0, 0.65); } .ant-fullcalendar-fullscreen .ant-fullcalendar-month-panel-current-cell .ant-fullcalendar-month, .ant-fullcalendar-fullscreen .ant-fullcalendar-today .ant-fullcalendar-date { - border-top-color: #E64448; background: transparent; + border-top-color: #E64448; } .ant-fullcalendar-fullscreen .ant-fullcalendar-month-panel-current-cell .ant-fullcalendar-value, .ant-fullcalendar-fullscreen .ant-fullcalendar-today .ant-fullcalendar-value { @@ -5345,12 +5793,10 @@ a.ant-btn-sm { color: rgba(0, 0, 0, 0.25); } .ant-fullcalendar-fullscreen .ant-fullcalendar-content { - height: 88px; - overflow-y: auto; position: static; width: auto; - left: auto; - bottom: auto; + height: 88px; + overflow-y: auto; } .ant-fullcalendar-disabled-cell .ant-fullcalendar-date, .ant-fullcalendar-disabled-cell .ant-fullcalendar-date:hover { @@ -5361,112 +5807,116 @@ a.ant-btn-sm { background: transparent; } .ant-fullcalendar-disabled-cell .ant-fullcalendar-value { + width: auto; color: rgba(0, 0, 0, 0.25); border-radius: 0; - width: auto; cursor: not-allowed; } .ant-card { - font-family: "Chinese Quote", -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"; - font-size: 14px; - font-variant: tabular-nums; - line-height: 1.5; - color: rgba(0, 0, 0, 0.65); box-sizing: border-box; margin: 0; padding: 0; + color: rgba(0, 0, 0, 0.65); + font-size: 14px; + font-variant: tabular-nums; + line-height: 1.5; list-style: none; + font-feature-settings: 'tnum'; + position: relative; background: #fff; border-radius: 2px; - position: relative; + -webkit-transition: all 0.3s; transition: all 0.3s; } .ant-card-hoverable { cursor: pointer; } .ant-card-hoverable:hover { - box-shadow: 0 2px 8px rgba(0, 0, 0, 0.09); border-color: rgba(0, 0, 0, 0.09); + box-shadow: 0 2px 8px rgba(0, 0, 0, 0.09); } .ant-card-bordered { border: 1px solid #e8e8e8; } .ant-card-head { + min-height: 48px; + margin-bottom: -1px; + padding: 0 24px; + color: rgba(0, 0, 0, 0.85); + font-weight: 500; + font-size: 16px; background: transparent; border-bottom: 1px solid #e8e8e8; - padding: 0 24px; border-radius: 2px 2px 0 0; zoom: 1; - margin-bottom: -1px; - min-height: 48px; - font-size: 16px; - color: rgba(0, 0, 0, 0.85); - font-weight: 500; } -.ant-card-head:before, -.ant-card-head:after { +.ant-card-head::before, +.ant-card-head::after { content: ''; display: table; } -.ant-card-head:after { +.ant-card-head::after { clear: both; } -.ant-card-head:before, -.ant-card-head:after { +.ant-card-head::before, +.ant-card-head::after { content: ''; display: table; } -.ant-card-head:after { +.ant-card-head::after { clear: both; } .ant-card-head-wrapper { + display: -webkit-box; display: flex; - align-items: center; + -webkit-box-align: center; + align-items: center; } .ant-card-head-title { + display: inline-block; + -webkit-box-flex: 1; + flex: 1; padding: 16px 0; - text-overflow: ellipsis; overflow: hidden; white-space: nowrap; - flex: 1; - display: inline-block; + text-overflow: ellipsis; } .ant-card-head .ant-tabs { - margin-bottom: -17px; clear: both; - font-size: 14px; + margin-bottom: -17px; color: rgba(0, 0, 0, 0.65); font-weight: normal; + font-size: 14px; } .ant-card-head .ant-tabs-bar { border-bottom: 1px solid #e8e8e8; } .ant-card-extra { float: right; + margin-left: auto; padding: 16px 0; - font-size: 14px; color: rgba(0, 0, 0, 0.65); font-weight: normal; - margin-left: auto; + font-size: 14px; } .ant-card-body { padding: 24px; zoom: 1; } -.ant-card-body:before, -.ant-card-body:after { +.ant-card-body::before, +.ant-card-body::after { content: ''; display: table; } -.ant-card-body:after { +.ant-card-body::after { clear: both; } -.ant-card-body:before, -.ant-card-body:after { +.ant-card-body::before, +.ant-card-body::after { content: ''; display: table; } -.ant-card-body:after { +.ant-card-body::after { clear: both; } .ant-card-contain-grid:not(.ant-card-loading) .ant-card-body { @@ -5474,12 +5924,13 @@ a.ant-btn-sm { padding: 0; } .ant-card-grid { - border-radius: 0; - border: 0; - box-shadow: 1px 0 0 0 #e8e8e8, 0 1px 0 0 #e8e8e8, 1px 1px 0 0 #e8e8e8, 1px 0 0 0 #e8e8e8 inset, 0 1px 0 0 #e8e8e8 inset; - width: 33.33%; float: left; + width: 33.33%; padding: 24px; + border: 0; + border-radius: 0; + box-shadow: 1px 0 0 0 #e8e8e8, 0 1px 0 0 #e8e8e8, 1px 1px 0 0 #e8e8e8, 1px 0 0 0 #e8e8e8 inset, 0 1px 0 0 #e8e8e8 inset; + -webkit-transition: all 0.3s; transition: all 0.3s; } .ant-card-grid:hover { @@ -5488,59 +5939,60 @@ a.ant-btn-sm { box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15); } .ant-card-contain-tabs > .ant-card-head .ant-card-head-title { - padding-bottom: 0; min-height: 32px; + padding-bottom: 0; } .ant-card-contain-tabs .ant-card-extra { padding-bottom: 0; } .ant-card-cover > * { - width: 100%; display: block; + width: 100%; } .ant-card-cover img { border-radius: 2px 2px 0 0; } .ant-card-actions { - border-top: 1px solid #e8e8e8; - background: #fafafa; - zoom: 1; - list-style: none; margin: 0; padding: 0; + list-style: none; + background: #fafafa; + border-top: 1px solid #e8e8e8; + zoom: 1; } -.ant-card-actions:before, -.ant-card-actions:after { +.ant-card-actions::before, +.ant-card-actions::after { content: ''; display: table; } -.ant-card-actions:after { +.ant-card-actions::after { clear: both; } -.ant-card-actions:before, -.ant-card-actions:after { +.ant-card-actions::before, +.ant-card-actions::after { content: ''; display: table; } -.ant-card-actions:after { +.ant-card-actions::after { clear: both; } .ant-card-actions > li { float: left; - text-align: center; margin: 12px 0; color: rgba(0, 0, 0, 0.45); + text-align: center; } .ant-card-actions > li > span { + position: relative; display: inline-block; + min-width: 32px; font-size: 14px; - cursor: pointer; line-height: 22px; - min-width: 32px; - position: relative; + cursor: pointer; } .ant-card-actions > li > span:hover { color: #E64448; + -webkit-transition: color 0.3s; transition: color 0.3s; } .ant-card-actions > li > span > .anticon { @@ -5548,10 +6000,10 @@ a.ant-btn-sm { line-height: 22px; } .ant-card-actions > li > span a { - color: rgba(0, 0, 0, 0.45); - line-height: 22px; display: inline-block; width: 100%; + color: rgba(0, 0, 0, 0.45); + line-height: 22px; } .ant-card-actions > li > span a:hover { color: #E64448; @@ -5567,6 +6019,7 @@ a.ant-btn-sm { } .ant-card-padding-transition .ant-card-head, .ant-card-padding-transition .ant-card-body { + -webkit-transition: padding 0.3s; transition: padding 0.3s; } .ant-card-type-inner .ant-card-head { @@ -5587,25 +6040,25 @@ a.ant-btn-sm { margin: -4px 0; zoom: 1; } -.ant-card-meta:before, -.ant-card-meta:after { +.ant-card-meta::before, +.ant-card-meta::after { content: ''; display: table; } -.ant-card-meta:after { +.ant-card-meta::after { clear: both; } -.ant-card-meta:before, -.ant-card-meta:after { +.ant-card-meta::before, +.ant-card-meta::after { content: ''; display: table; } -.ant-card-meta:after { +.ant-card-meta::after { clear: both; } .ant-card-meta-avatar { - padding-right: 16px; float: left; + padding-right: 16px; } .ant-card-meta-detail { overflow: hidden; @@ -5614,28 +6067,18 @@ a.ant-btn-sm { margin-bottom: 8px; } .ant-card-meta-title { - font-size: 16px; - text-overflow: ellipsis; overflow: hidden; - white-space: nowrap; color: rgba(0, 0, 0, 0.85); font-weight: 500; + font-size: 16px; + white-space: nowrap; + text-overflow: ellipsis; } .ant-card-meta-description { color: rgba(0, 0, 0, 0.45); } .ant-card-loading { overflow: hidden; - position: relative; -} -.ant-card-loading:after { - position: absolute; - bottom: 0; - left: 0; - width: 100%; - height: 24px; - background: #fff; - content: ''; } .ant-card-loading .ant-card-body { -webkit-user-select: none; @@ -5649,11 +6092,12 @@ a.ant-btn-sm { .ant-card-loading-block { height: 14px; margin: 4px 0; - border-radius: 2px; + background: -webkit-gradient(linear, left top, right top, from(rgba(207, 216, 220, 0.2)), color-stop(rgba(207, 216, 220, 0.4)), to(rgba(207, 216, 220, 0.2))); background: linear-gradient(90deg, rgba(207, 216, 220, 0.2), rgba(207, 216, 220, 0.4), rgba(207, 216, 220, 0.2)); + background-size: 600% 600%; + border-radius: 2px; -webkit-animation: card-loading 1.4s ease infinite; animation: card-loading 1.4s ease infinite; - background-size: 600% 600%; } @-webkit-keyframes card-loading { 0%, @@ -5673,16 +6117,31 @@ a.ant-btn-sm { background-position: 100% 50%; } } -.ant-carousel { - font-family: "Chinese Quote", -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"; +.ant-card-small > .ant-card-head { + min-height: 36px; + padding: 0 12px; font-size: 14px; - font-variant: tabular-nums; - line-height: 1.5; - color: rgba(0, 0, 0, 0.65); +} +.ant-card-small > .ant-card-head > .ant-card-head-wrapper > .ant-card-head-title { + padding: 8px 0; +} +.ant-card-small > .ant-card-head > .ant-card-head-wrapper > .ant-card-extra { + padding: 8px 0; + font-size: 14px; +} +.ant-card-small > .ant-card-body { + padding: 12px; +} +.ant-carousel { box-sizing: border-box; margin: 0; padding: 0; + color: rgba(0, 0, 0, 0.65); + font-size: 14px; + font-variant: tabular-nums; + line-height: 1.5; list-style: none; + font-feature-settings: 'tnum'; } .ant-carousel .slick-slider { position: relative; @@ -5694,10 +6153,10 @@ a.ant-btn-sm { } .ant-carousel .slick-list { position: relative; - overflow: hidden; display: block; margin: 0; padding: 0; + overflow: hidden; } .ant-carousel .slick-list:focus { outline: none; @@ -5713,30 +6172,31 @@ a.ant-btn-sm { } .ant-carousel .slick-slider .slick-track, .ant-carousel .slick-slider .slick-list { - transform: translate3d(0, 0, 0); + -webkit-transform: translate3d(0, 0, 0); + transform: translate3d(0, 0, 0); } .ant-carousel .slick-track { position: relative; - left: 0; top: 0; + left: 0; display: block; } -.ant-carousel .slick-track:before, -.ant-carousel .slick-track:after { - content: ''; +.ant-carousel .slick-track::before, +.ant-carousel .slick-track::after { display: table; + content: ''; } -.ant-carousel .slick-track:after { +.ant-carousel .slick-track::after { clear: both; } .slick-loading .ant-carousel .slick-track { visibility: hidden; } .ant-carousel .slick-slide { + display: none; float: left; height: 100%; min-height: 1px; - display: none; } [dir='rtl'] .ant-carousel .slick-slide { float: right; @@ -5767,104 +6227,106 @@ a.ant-btn-sm { .ant-carousel .slick-prev, .ant-carousel .slick-next { position: absolute; + top: 50%; display: block; - height: 20px; width: 20px; - line-height: 0; - font-size: 0; - cursor: pointer; - background: transparent; - color: transparent; - top: 50%; + height: 20px; margin-top: -10px; padding: 0; + color: transparent; + font-size: 0; + line-height: 0; + background: transparent; border: 0; outline: none; + cursor: pointer; } .ant-carousel .slick-prev:hover, .ant-carousel .slick-next:hover, .ant-carousel .slick-prev:focus, .ant-carousel .slick-next:focus { - outline: none; - background: transparent; color: transparent; + background: transparent; + outline: none; } -.ant-carousel .slick-prev:hover:before, -.ant-carousel .slick-next:hover:before, -.ant-carousel .slick-prev:focus:before, -.ant-carousel .slick-next:focus:before { +.ant-carousel .slick-prev:hover::before, +.ant-carousel .slick-next:hover::before, +.ant-carousel .slick-prev:focus::before, +.ant-carousel .slick-next:focus::before { opacity: 1; } -.ant-carousel .slick-prev.slick-disabled:before, -.ant-carousel .slick-next.slick-disabled:before { +.ant-carousel .slick-prev.slick-disabled::before, +.ant-carousel .slick-next.slick-disabled::before { opacity: 0.25; } .ant-carousel .slick-prev { left: -25px; } -.ant-carousel .slick-prev:before { +.ant-carousel .slick-prev::before { content: '\2190'; } .ant-carousel .slick-next { right: -25px; } -.ant-carousel .slick-next:before { +.ant-carousel .slick-next::before { content: '\2192'; } .ant-carousel .slick-dots { position: absolute; bottom: 12px; - list-style: none; display: block; - text-align: center; - margin: 0; - padding: 0; width: 100%; height: 3px; + margin: 0; + padding: 0; + text-align: center; + list-style: none; } .ant-carousel .slick-dots li { position: relative; display: inline-block; - vertical-align: top; - text-align: center; margin: 0 2px; padding: 0; + text-align: center; + vertical-align: top; } .ant-carousel .slick-dots li button { - border: 0; - cursor: pointer; - background: #fff; - opacity: 0.3; display: block; width: 16px; height: 3px; + padding: 0; + color: transparent; + font-size: 0; + background: #fff; + border: 0; border-radius: 1px; outline: none; - font-size: 0; - color: transparent; + cursor: pointer; + opacity: 0.3; + -webkit-transition: all 0.5s; transition: all 0.5s; - padding: 0; } .ant-carousel .slick-dots li button:hover, .ant-carousel .slick-dots li button:focus { opacity: 0.75; } .ant-carousel .slick-dots li.slick-active button { + width: 24px; background: #fff; opacity: 1; - width: 24px; } .ant-carousel .slick-dots li.slick-active button:hover, .ant-carousel .slick-dots li.slick-active button:focus { opacity: 1; } .ant-carousel-vertical .slick-dots { - width: 3px; - bottom: auto; - right: 12px; top: 50%; - transform: translateY(-50%); + right: 12px; + bottom: auto; + width: 3px; height: auto; + -webkit-transform: translateY(-50%); + transform: translateY(-50%); } .ant-carousel-vertical .slick-dots li { margin: 0 2px; @@ -5879,90 +6341,92 @@ a.ant-btn-sm { height: 24px; } .ant-cascader { - font-family: "Chinese Quote", -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"; - font-size: 14px; - font-variant: tabular-nums; - line-height: 1.5; - color: rgba(0, 0, 0, 0.65); box-sizing: border-box; margin: 0; padding: 0; + color: rgba(0, 0, 0, 0.65); + font-size: 14px; + font-variant: tabular-nums; + line-height: 1.5; list-style: none; + font-feature-settings: 'tnum'; } .ant-cascader-input.ant-input { + position: relative; + width: 100%; background-color: transparent !important; cursor: pointer; - width: 100%; - position: relative; } .ant-cascader-picker-show-search .ant-cascader-input.ant-input { position: relative; } .ant-cascader-picker { - font-family: "Chinese Quote", -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"; - font-size: 14px; - font-variant: tabular-nums; - line-height: 1.5; - color: rgba(0, 0, 0, 0.65); box-sizing: border-box; margin: 0; padding: 0; + color: rgba(0, 0, 0, 0.65); + font-size: 14px; + font-variant: tabular-nums; + line-height: 1.5; list-style: none; + font-feature-settings: 'tnum'; position: relative; display: inline-block; - cursor: pointer; background-color: #fff; border-radius: 5px; outline: 0; + cursor: pointer; + -webkit-transition: color 0.3s; transition: color 0.3s; } .ant-cascader-picker-with-value .ant-cascader-picker-label { color: transparent; } .ant-cascader-picker-disabled { - cursor: not-allowed; - background: #f5f5f5; color: rgba(0, 0, 0, 0.25); + background: #f5f5f5; + cursor: not-allowed; } .ant-cascader-picker-disabled .ant-cascader-input { cursor: not-allowed; } .ant-cascader-picker:focus .ant-cascader-input { border-color: #f2726f; + border-right-width: 1px !important; outline: 0; box-shadow: 0 0 0 2px rgba(230, 68, 72, 0.2); - border-right-width: 1px !important; } .ant-cascader-picker-show-search.ant-cascader-picker-focused { color: rgba(0, 0, 0, 0.25); } .ant-cascader-picker-label { position: absolute; + top: 50%; left: 0; + width: 100%; height: 20px; - line-height: 20px; - top: 50%; margin-top: -10px; + padding: 0 12px; + overflow: hidden; + line-height: 20px; white-space: nowrap; text-overflow: ellipsis; - overflow: hidden; - width: 100%; - padding: 0 12px; } .ant-cascader-picker-clear { - opacity: 0; position: absolute; + top: 50%; right: 12px; z-index: 2; - background: #fff; - top: 50%; - font-size: 12px; - color: rgba(0, 0, 0, 0.25); width: 12px; height: 12px; margin-top: -6px; + color: rgba(0, 0, 0, 0.25); + font-size: 12px; line-height: 12px; + background: #fff; cursor: pointer; + opacity: 0; + -webkit-transition: color 0.3s ease, opacity 0.15s ease; transition: color 0.3s ease, opacity 0.15s ease; } .ant-cascader-picker-clear:hover { @@ -5973,38 +6437,42 @@ a.ant-btn-sm { } .ant-cascader-picker-arrow { position: absolute; - z-index: 1; top: 50%; right: 12px; + z-index: 1; width: 12px; height: 12px; - font-size: 12px; margin-top: -6px; - line-height: 12px; color: rgba(0, 0, 0, 0.25); + font-size: 12px; + line-height: 12px; + -webkit-transition: -webkit-transform 0.2s; + transition: -webkit-transform 0.2s; transition: transform 0.2s; + transition: transform 0.2s, -webkit-transform 0.2s; } .ant-cascader-picker-arrow.ant-cascader-picker-arrow-expand { - transform: rotate(180deg); + -webkit-transform: rotate(180deg); + transform: rotate(180deg); } .ant-cascader-picker-small .ant-cascader-picker-clear, .ant-cascader-picker-small .ant-cascader-picker-arrow { right: 8px; } .ant-cascader-menus { - font-size: 14px; - background: #fff; position: absolute; z-index: 1050; + font-size: 14px; + white-space: nowrap; + background: #fff; border-radius: 5px; box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15); - white-space: nowrap; } .ant-cascader-menus ul, .ant-cascader-menus ol { - list-style: none; margin: 0; padding: 0; + list-style: none; } .ant-cascader-menus-empty, .ant-cascader-menus-hidden { @@ -6030,22 +6498,22 @@ a.ant-btn-sm { } .ant-cascader-menu { display: inline-block; - vertical-align: top; min-width: 111px; height: 180px; - list-style: none; margin: 0; padding: 0; - border-right: 1px solid #e8e8e8; overflow: auto; + vertical-align: top; + list-style: none; + border-right: 1px solid #e8e8e8; -ms-overflow-style: -ms-autohiding-scrollbar; } .ant-cascader-menu:first-child { border-radius: 5px 0 0 5px; } .ant-cascader-menu:last-child { - border-right-color: transparent; margin-right: -1px; + border-right-color: transparent; border-radius: 0 5px 5px 0; } .ant-cascader-menu:only-child { @@ -6054,24 +6522,25 @@ a.ant-btn-sm { .ant-cascader-menu-item { padding: 5px 12px; line-height: 22px; - cursor: pointer; white-space: nowrap; + cursor: pointer; + -webkit-transition: all 0.3s; transition: all 0.3s; } .ant-cascader-menu-item:hover { background: #fff2f0; } .ant-cascader-menu-item-disabled { - cursor: not-allowed; color: rgba(0, 0, 0, 0.25); + cursor: not-allowed; } .ant-cascader-menu-item-disabled:hover { background: transparent; } .ant-cascader-menu-item-active:not(.ant-cascader-menu-item-disabled), .ant-cascader-menu-item-active:not(.ant-cascader-menu-item-disabled):hover { - background: #f5f5f5; font-weight: 600; + background: #f5f5f5; } .ant-cascader-menu-item-expand { position: relative; @@ -6082,10 +6551,11 @@ a.ant-btn-sm { display: inline-block; font-size: 12px; font-size: 10px \9; - transform: scale(0.83333333) rotate(0deg); - color: rgba(0, 0, 0, 0.45); + -webkit-transform: scale(0.83333333) rotate(0deg); + transform: scale(0.83333333) rotate(0deg); position: absolute; right: 12px; + color: rgba(0, 0, 0, 0.45); } :root .ant-cascader-menu-item-expand .ant-cascader-menu-item-expand-icon, :root .ant-cascader-menu-item-expand .ant-cascader-menu-item-loading-icon { @@ -6096,65 +6566,69 @@ a.ant-btn-sm { } @-webkit-keyframes antCheckboxEffect { 0% { - transform: scale(1); + -webkit-transform: scale(1); + transform: scale(1); opacity: 0.5; } 100% { - transform: scale(1.6); + -webkit-transform: scale(1.6); + transform: scale(1.6); opacity: 0; } } @keyframes antCheckboxEffect { 0% { - transform: scale(1); + -webkit-transform: scale(1); + transform: scale(1); opacity: 0.5; } 100% { - transform: scale(1.6); + -webkit-transform: scale(1.6); + transform: scale(1.6); opacity: 0; } } .ant-checkbox { - font-family: "Chinese Quote", -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"; - font-size: 14px; - font-variant: tabular-nums; - line-height: 1.5; - color: rgba(0, 0, 0, 0.65); box-sizing: border-box; margin: 0; padding: 0; + color: rgba(0, 0, 0, 0.65); + font-size: 14px; + font-variant: tabular-nums; + line-height: 1.5; list-style: none; - white-space: nowrap; - cursor: pointer; - outline: none; + font-feature-settings: 'tnum'; + position: relative; + top: -0.09em; display: inline-block; line-height: 1; - position: relative; + white-space: nowrap; vertical-align: middle; - top: -0.09em; + outline: none; + cursor: pointer; } .ant-checkbox-wrapper:hover .ant-checkbox-inner, .ant-checkbox:hover .ant-checkbox-inner, .ant-checkbox-input:focus + .ant-checkbox-inner { border-color: #E64448; } -.ant-checkbox-checked:after { +.ant-checkbox-checked::after { position: absolute; top: 0; left: 0; width: 100%; height: 100%; - border-radius: 2px; border: 1px solid #E64448; - content: ''; + border-radius: 2px; + visibility: hidden; -webkit-animation: antCheckboxEffect 0.36s ease-in-out; animation: antCheckboxEffect 0.36s ease-in-out; -webkit-animation-fill-mode: both; animation-fill-mode: both; - visibility: hidden; + content: ''; } -.ant-checkbox:hover:after, -.ant-checkbox-wrapper:hover .ant-checkbox:after { +.ant-checkbox:hover::after, +.ant-checkbox-wrapper:hover .ant-checkbox::after { visibility: visible; } .ant-checkbox-inner { @@ -6164,49 +6638,54 @@ a.ant-btn-sm { display: block; width: 16px; height: 16px; + background-color: #fff; border: 1px solid #d9d9d9; border-radius: 2px; - background-color: #fff; - transition: all 0.3s; border-collapse: separate; + -webkit-transition: all 0.3s; + transition: all 0.3s; } -.ant-checkbox-inner:after { - transform: rotate(45deg) scale(0); +.ant-checkbox-inner::after { position: absolute; - left: 4.57142857px; - top: 1.14285714px; + top: 50%; + left: 21%; display: table; width: 5.71428571px; height: 9.14285714px; border: 2px solid #fff; border-top: 0; border-left: 0; - content: ' '; - transition: all 0.1s cubic-bezier(0.71, -0.46, 0.88, 0.6), opacity 0.1s; + -webkit-transform: rotate(45deg) scale(0) translate(-50%, -50%); + transform: rotate(45deg) scale(0) translate(-50%, -50%); opacity: 0; + -webkit-transition: all 0.1s cubic-bezier(0.71, -0.46, 0.88, 0.6), opacity 0.1s; + transition: all 0.1s cubic-bezier(0.71, -0.46, 0.88, 0.6), opacity 0.1s; + content: ' '; } .ant-checkbox-input { position: absolute; - left: 0; - z-index: 1; - cursor: pointer; - opacity: 0; top: 0; - bottom: 0; right: 0; + bottom: 0; + left: 0; + z-index: 1; width: 100%; height: 100%; + cursor: pointer; + opacity: 0; } -.ant-checkbox-checked .ant-checkbox-inner:after { - transform: rotate(45deg) scale(1); +.ant-checkbox-checked .ant-checkbox-inner::after { position: absolute; display: table; border: 2px solid #fff; border-top: 0; border-left: 0; - content: ' '; - transition: all 0.2s cubic-bezier(0.12, 0.4, 0.29, 1.46) 0.1s; + -webkit-transform: rotate(45deg) scale(1) translate(-50%, -50%); + transform: rotate(45deg) scale(1) translate(-50%, -50%); opacity: 1; + -webkit-transition: all 0.2s cubic-bezier(0.12, 0.4, 0.29, 1.46) 0.1s; + transition: all 0.2s cubic-bezier(0.12, 0.4, 0.29, 1.46) 0.1s; + content: ' '; } .ant-checkbox-checked .ant-checkbox-inner { background-color: #E64448; @@ -6215,60 +6694,60 @@ a.ant-btn-sm { .ant-checkbox-disabled { cursor: not-allowed; } -.ant-checkbox-disabled.ant-checkbox-checked .ant-checkbox-inner:after { +.ant-checkbox-disabled.ant-checkbox-checked .ant-checkbox-inner::after { + border-color: rgba(0, 0, 0, 0.25); -webkit-animation-name: none; animation-name: none; - border-color: rgba(0, 0, 0, 0.25); } .ant-checkbox-disabled .ant-checkbox-input { cursor: not-allowed; } .ant-checkbox-disabled .ant-checkbox-inner { - border-color: #d9d9d9 !important; background-color: #f5f5f5; + border-color: #d9d9d9 !important; } -.ant-checkbox-disabled .ant-checkbox-inner:after { - -webkit-animation-name: none; - animation-name: none; +.ant-checkbox-disabled .ant-checkbox-inner::after { border-color: #f5f5f5; border-collapse: separate; + -webkit-animation-name: none; + animation-name: none; } .ant-checkbox-disabled + span { color: rgba(0, 0, 0, 0.25); cursor: not-allowed; } .ant-checkbox-wrapper { - font-family: "Chinese Quote", -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"; - font-size: 14px; - font-variant: tabular-nums; - line-height: 1.5; - color: rgba(0, 0, 0, 0.65); box-sizing: border-box; margin: 0; padding: 0; + color: rgba(0, 0, 0, 0.65); + font-size: 14px; + font-variant: tabular-nums; + line-height: 1.5; list-style: none; + font-feature-settings: 'tnum'; + display: inline-block; line-height: unset; cursor: pointer; - display: inline-block; } .ant-checkbox-wrapper + .ant-checkbox-wrapper { margin-left: 8px; } .ant-checkbox-wrapper + span, .ant-checkbox + span { - padding-left: 8px; padding-right: 8px; + padding-left: 8px; } .ant-checkbox-group { - font-family: "Chinese Quote", -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"; - font-size: 14px; - font-variant: tabular-nums; - line-height: 1.5; - color: rgba(0, 0, 0, 0.65); box-sizing: border-box; margin: 0; padding: 0; + color: rgba(0, 0, 0, 0.65); + font-size: 14px; + font-variant: tabular-nums; + line-height: 1.5; list-style: none; + font-feature-settings: 'tnum'; display: inline-block; } .ant-checkbox-group-item { @@ -6285,35 +6764,36 @@ a.ant-btn-sm { background-color: #fff; border-color: #d9d9d9; } -.ant-checkbox-indeterminate .ant-checkbox-inner:after { - content: ' '; - transform: translate(-50%, -50%) scale(1); - border: 0; - left: 50%; +.ant-checkbox-indeterminate .ant-checkbox-inner::after { top: 50%; + left: 50%; width: 8px; height: 8px; background-color: #E64448; + border: 0; + -webkit-transform: translate(-50%, -50%) scale(1); + transform: translate(-50%, -50%) scale(1); opacity: 1; + content: ' '; } -.ant-checkbox-indeterminate.ant-checkbox-disabled .ant-checkbox-inner:after { - border-color: rgba(0, 0, 0, 0.25); +.ant-checkbox-indeterminate.ant-checkbox-disabled .ant-checkbox-inner::after { background-color: rgba(0, 0, 0, 0.25); + border-color: rgba(0, 0, 0, 0.25); } .ant-collapse { - font-family: "Chinese Quote", -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"; - font-size: 14px; - font-variant: tabular-nums; - line-height: 1.5; - color: rgba(0, 0, 0, 0.65); box-sizing: border-box; margin: 0; padding: 0; + color: rgba(0, 0, 0, 0.65); + font-size: 14px; + font-variant: tabular-nums; + line-height: 1.5; list-style: none; + font-feature-settings: 'tnum'; background-color: #fafafa; - border-radius: 5px; border: 1px solid #d9d9d9; border-bottom: 0; + border-radius: 5px; } .ant-collapse > .ant-collapse-item { border-bottom: 1px solid #d9d9d9; @@ -6323,46 +6803,50 @@ a.ant-btn-sm { border-radius: 0 0 5px 5px; } .ant-collapse > .ant-collapse-item > .ant-collapse-header { - line-height: 22px; + position: relative; padding: 12px 0 12px 40px; color: rgba(0, 0, 0, 0.85); + line-height: 22px; cursor: pointer; - position: relative; + -webkit-transition: all 0.3s; transition: all 0.3s; } -.ant-collapse > .ant-collapse-item > .ant-collapse-header .arrow { +.ant-collapse > .ant-collapse-item > .ant-collapse-header .ant-collapse-arrow { font-style: normal; - vertical-align: -0.125em; + line-height: 0; text-align: center; text-transform: none; - line-height: 0; + vertical-align: -0.125em; text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; - font-size: 12px; position: absolute; - display: inline-block; - line-height: 46px; - vertical-align: top; top: 50%; - transform: translateY(-50%); left: 16px; + display: inline-block; + margin-top: 2px; + font-size: 12px; + line-height: 46px; + -webkit-transform: translateY(-50%); + transform: translateY(-50%); } -.ant-collapse > .ant-collapse-item > .ant-collapse-header .arrow > * { +.ant-collapse > .ant-collapse-item > .ant-collapse-header .ant-collapse-arrow > * { line-height: 1; } -.ant-collapse > .ant-collapse-item > .ant-collapse-header .arrow svg { +.ant-collapse > .ant-collapse-item > .ant-collapse-header .ant-collapse-arrow svg { display: inline-block; } -.ant-collapse > .ant-collapse-item > .ant-collapse-header .arrow:before { +.ant-collapse > .ant-collapse-item > .ant-collapse-header .ant-collapse-arrow::before { display: none; } -.ant-collapse > .ant-collapse-item > .ant-collapse-header .arrow .ant-collapse > .ant-collapse-item > .ant-collapse-header .arrow-icon { +.ant-collapse > .ant-collapse-item > .ant-collapse-header .ant-collapse-arrow .ant-collapse > .ant-collapse-item > .ant-collapse-header .ant-collapse-arrow-icon { display: block; } -.ant-collapse > .ant-collapse-item > .ant-collapse-header .arrow svg { - transform: rotate(0); +.ant-collapse > .ant-collapse-item > .ant-collapse-header .ant-collapse-arrow svg { + -webkit-transition: -webkit-transform 0.24s; + transition: -webkit-transform 0.24s; transition: transform 0.24s; + transition: transform 0.24s, -webkit-transform 0.24s; } .ant-collapse > .ant-collapse-item > .ant-collapse-header:focus { outline: none; @@ -6371,6 +6855,7 @@ a.ant-btn-sm { padding-left: 12px; } .ant-collapse-anim-active { + -webkit-transition: height 0.2s cubic-bezier(0.215, 0.61, 0.355, 1); transition: height 0.2s cubic-bezier(0.215, 0.61, 0.355, 1); } .ant-collapse-content { @@ -6388,9 +6873,6 @@ a.ant-btn-sm { .ant-collapse-item:last-child > .ant-collapse-content { border-radius: 0 0 5px 5px; } -.ant-collapse > .ant-collapse-item > .ant-collapse-header[aria-expanded='true'] .anticon-right svg { - transform: rotate(90deg); -} .ant-collapse-borderless { background-color: #fff; border: 0; @@ -6411,19 +6893,20 @@ a.ant-btn-sm { } .ant-collapse .ant-collapse-item-disabled > .ant-collapse-header, .ant-collapse .ant-collapse-item-disabled > .ant-collapse-header > .arrow { - cursor: not-allowed; color: rgba(0, 0, 0, 0.25); + cursor: not-allowed; } .ant-comment { position: relative; } .ant-comment-inner { - padding: 16px 0; + display: -webkit-box; display: flex; + padding: 16px 0; } .ant-comment-avatar { - flex-shrink: 0; position: relative; + flex-shrink: 0; margin-right: 12px; cursor: pointer; } @@ -6434,28 +6917,32 @@ a.ant-btn-sm { } .ant-comment-content { position: relative; - font-size: 14px; - flex: 1 1 auto; + -webkit-box-flex: 1; + flex: 1 1 auto; min-width: 1px; + font-size: 14px; word-wrap: break-word; } .ant-comment-content-author { + display: -webkit-box; + display: flex; + -webkit-box-pack: start; + justify-content: flex-start; margin-bottom: 4px; font-size: 14px; - display: flex; - justify-content: flex-start; } .ant-comment-content-author > a, .ant-comment-content-author > span { height: 18px; + padding-right: 8px; font-size: 12px; line-height: 18px; - padding-right: 8px; } .ant-comment-content-author-name { - transition: color 0.3s; - font-size: 14px; color: rgba(0, 0, 0, 0.45); + font-size: 14px; + -webkit-transition: color 0.3s; + transition: color 0.3s; } .ant-comment-content-author-name > * { color: rgba(0, 0, 0, 0.45); @@ -6464,9 +6951,9 @@ a.ant-btn-sm { color: rgba(0, 0, 0, 0.45); } .ant-comment-content-author-time { - cursor: auto; color: #ccc; white-space: nowrap; + cursor: auto; } .ant-comment-content-detail p { white-space: pre-wrap; @@ -6481,10 +6968,11 @@ a.ant-btn-sm { } .ant-comment-actions > li > span { padding-right: 10px; - transition: color 0.3s; - font-size: 12px; color: rgba(0, 0, 0, 0.45); + font-size: 12px; cursor: pointer; + -webkit-transition: color 0.3s; + transition: color 0.3s; -webkit-user-select: none; -moz-user-select: none; -ms-user-select: none; @@ -6497,17 +6985,18 @@ a.ant-btn-sm { margin-left: 44px; } .ant-calendar-picker-container { - font-size: 14px; - font-variant: tabular-nums; - line-height: 1.5; - color: rgba(0, 0, 0, 0.65); box-sizing: border-box; margin: 0; padding: 0; + color: rgba(0, 0, 0, 0.65); + font-size: 14px; + font-variant: tabular-nums; + line-height: 1.5; list-style: none; - font-family: "Chinese Quote", -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"; + font-feature-settings: 'tnum'; position: absolute; z-index: 1050; + font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', 'Helvetica Neue', Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol'; } .ant-calendar-picker-container.slide-up-enter.slide-up-enter-active.ant-calendar-picker-container-placement-topLeft, .ant-calendar-picker-container.slide-up-enter.slide-up-enter-active.ant-calendar-picker-container-placement-topRight, @@ -6534,18 +7023,19 @@ a.ant-btn-sm { animation-name: antSlideUpOut; } .ant-calendar-picker { - font-family: "Chinese Quote", -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"; - font-size: 14px; - font-variant: tabular-nums; - line-height: 1.5; - color: rgba(0, 0, 0, 0.65); box-sizing: border-box; margin: 0; padding: 0; + color: rgba(0, 0, 0, 0.65); + font-size: 14px; + font-variant: tabular-nums; + line-height: 1.5; list-style: none; + font-feature-settings: 'tnum'; position: relative; display: inline-block; outline: none; + -webkit-transition: opacity 0.3s; transition: opacity 0.3s; } .ant-calendar-picker-input { @@ -6560,35 +7050,36 @@ a.ant-btn-sm { } .ant-calendar-picker:focus .ant-calendar-picker-input:not(.ant-input-disabled) { border-color: #f2726f; + border-right-width: 1px !important; outline: 0; box-shadow: 0 0 0 2px rgba(230, 68, 72, 0.2); - border-right-width: 1px !important; } .ant-calendar-picker-clear, .ant-calendar-picker-icon { position: absolute; + top: 50%; + right: 12px; + z-index: 1; width: 14px; height: 14px; - right: 12px; - top: 50%; margin-top: -7px; - line-height: 14px; font-size: 12px; + line-height: 14px; + -webkit-transition: all 0.3s; transition: all 0.3s; -webkit-user-select: none; -moz-user-select: none; -ms-user-select: none; user-select: none; - z-index: 1; } .ant-calendar-picker-clear { - opacity: 0; z-index: 2; - font-size: 14px; color: rgba(0, 0, 0, 0.25); + font-size: 14px; background: #fff; - pointer-events: none; cursor: pointer; + opacity: 0; + pointer-events: none; } .ant-calendar-picker-clear:hover { color: rgba(0, 0, 0, 0.45); @@ -6598,10 +7089,9 @@ a.ant-btn-sm { pointer-events: auto; } .ant-calendar-picker-icon { - font-family: 'anticon'; - font-size: 14px; - color: rgba(0, 0, 0, 0.25); display: inline-block; + color: rgba(0, 0, 0, 0.25); + font-size: 14px; line-height: 1; } .ant-calendar-picker-small .ant-calendar-picker-clear, @@ -6610,17 +7100,17 @@ a.ant-btn-sm { } .ant-calendar { position: relative; - outline: none; width: 280px; - border: 1px solid #fff; - list-style: none; font-size: 14px; + line-height: 1.5; text-align: left; + list-style: none; background-color: #fff; + background-clip: padding-box; + border: 1px solid #fff; border-radius: 5px; + outline: none; box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15); - background-clip: padding-box; - line-height: 1.5; } .ant-calendar-input-wrap { height: 34px; @@ -6628,13 +7118,13 @@ a.ant-btn-sm { border-bottom: 1px solid #e8e8e8; } .ant-calendar-input { - border: 0; width: 100%; - cursor: auto; - outline: 0; height: 22px; color: rgba(0, 0, 0, 0.65); background: #fff; + border: 0; + outline: 0; + cursor: auto; } .ant-calendar-input::-moz-placeholder { color: #bfbfbf; @@ -6656,11 +7146,11 @@ a.ant-btn-sm { height: 40px; line-height: 40px; text-align: center; + border-bottom: 1px solid #e8e8e8; -webkit-user-select: none; -moz-user-select: none; -ms-user-select: none; user-select: none; - border-bottom: 1px solid #e8e8e8; } .ant-calendar-header a:hover { color: #cf5353; @@ -6669,10 +7159,10 @@ a.ant-btn-sm { .ant-calendar-header .ant-calendar-decade-select, .ant-calendar-header .ant-calendar-year-select, .ant-calendar-header .ant-calendar-month-select { - padding: 0 2px; - font-weight: 500; display: inline-block; + padding: 0 2px; color: rgba(0, 0, 0, 0.85); + font-weight: 500; line-height: 40px; } .ant-calendar-header .ant-calendar-century-select-arrow, @@ -6691,11 +7181,11 @@ a.ant-btn-sm { .ant-calendar-header .ant-calendar-next-year-btn { position: absolute; top: 0; - color: rgba(0, 0, 0, 0.45); - font-family: Arial, 'Hiragino Sans GB', 'Microsoft Yahei', 'Microsoft Sans Serif', sans-serif; + display: inline-block; padding: 0 5px; + color: rgba(0, 0, 0, 0.45); font-size: 16px; - display: inline-block; + font-family: Arial, 'Hiragino Sans GB', 'Microsoft Yahei', 'Microsoft Sans Serif', sans-serif; line-height: 40px; } .ant-calendar-header .ant-calendar-prev-century-btn, @@ -6703,9 +7193,9 @@ a.ant-btn-sm { .ant-calendar-header .ant-calendar-prev-year-btn { left: 7px; } -.ant-calendar-header .ant-calendar-prev-century-btn:after, -.ant-calendar-header .ant-calendar-prev-decade-btn:after, -.ant-calendar-header .ant-calendar-prev-year-btn:after { +.ant-calendar-header .ant-calendar-prev-century-btn::after, +.ant-calendar-header .ant-calendar-prev-decade-btn::after, +.ant-calendar-header .ant-calendar-prev-year-btn::after { content: '\AB'; } .ant-calendar-header .ant-calendar-next-century-btn, @@ -6713,46 +7203,46 @@ a.ant-btn-sm { .ant-calendar-header .ant-calendar-next-year-btn { right: 7px; } -.ant-calendar-header .ant-calendar-next-century-btn:after, -.ant-calendar-header .ant-calendar-next-decade-btn:after, -.ant-calendar-header .ant-calendar-next-year-btn:after { +.ant-calendar-header .ant-calendar-next-century-btn::after, +.ant-calendar-header .ant-calendar-next-decade-btn::after, +.ant-calendar-header .ant-calendar-next-year-btn::after { content: '\BB'; } .ant-calendar-header .ant-calendar-prev-month-btn { left: 29px; } -.ant-calendar-header .ant-calendar-prev-month-btn:after { +.ant-calendar-header .ant-calendar-prev-month-btn::after { content: '\2039'; } .ant-calendar-header .ant-calendar-next-month-btn { right: 29px; } -.ant-calendar-header .ant-calendar-next-month-btn:after { +.ant-calendar-header .ant-calendar-next-month-btn::after { content: '\203A'; } .ant-calendar-body { padding: 8px 12px; } .ant-calendar table { - border-collapse: collapse; + width: 100%; max-width: 100%; background-color: transparent; - width: 100%; + border-collapse: collapse; } .ant-calendar table, .ant-calendar th, .ant-calendar td { - border: 0; text-align: center; + border: 0; } .ant-calendar-calendar-table { - border-spacing: 0; margin-bottom: 0; + border-spacing: 0; } .ant-calendar-column-header { - line-height: 18px; width: 33px; padding: 6px 0; + line-height: 18px; text-align: center; } .ant-calendar-column-header .ant-calendar-column-header-inner { @@ -6763,25 +7253,27 @@ a.ant-btn-sm { display: none; } .ant-calendar-cell { - padding: 3px 0; height: 30px; + padding: 3px 0; } .ant-calendar-date { display: block; - margin: 0 auto; - color: rgba(0, 0, 0, 0.65); - border-radius: 2px; width: 24px; height: 24px; - line-height: 22px; - border: 1px solid transparent; + margin: 0 auto; padding: 0; - background: transparent; + color: rgba(0, 0, 0, 0.65); + line-height: 22px; text-align: center; + background: transparent; + border: 1px solid transparent; + border-radius: 2px; + -webkit-transition: background 0.3s ease; transition: background 0.3s ease; } .ant-calendar-date-panel { position: relative; + outline: none; } .ant-calendar-date:hover { background: #fff2f0; @@ -6792,9 +7284,9 @@ a.ant-btn-sm { background: #f2726f; } .ant-calendar-today .ant-calendar-date { - border-color: #E64448; - font-weight: bold; color: #E64448; + font-weight: bold; + border-color: #E64448; } .ant-calendar-last-month-cell .ant-calendar-date, .ant-calendar-next-month-btn-day .ant-calendar-date { @@ -6806,8 +7298,8 @@ a.ant-btn-sm { .ant-calendar-selected-date .ant-calendar-date, .ant-calendar-selected-start-date .ant-calendar-date, .ant-calendar-selected-end-date .ant-calendar-date { - background: #E64448; color: #fff; + background: #E64448; border: 1px solid transparent; } .ant-calendar-selected-date .ant-calendar-date:hover, @@ -6816,12 +7308,12 @@ a.ant-btn-sm { background: #E64448; } .ant-calendar-disabled-cell .ant-calendar-date { - cursor: not-allowed; - color: #bcbcbc; - background: #f5f5f5; - border-radius: 0; width: auto; + color: rgba(0, 0, 0, 0.25); + background: #f5f5f5; border: 1px solid transparent; + border-radius: 0; + cursor: not-allowed; } .ant-calendar-disabled-cell .ant-calendar-date:hover { background: #f5f5f5; @@ -6831,15 +7323,15 @@ a.ant-btn-sm { padding-right: 5px; padding-left: 5px; } -.ant-calendar-disabled-cell.ant-calendar-today .ant-calendar-date:before { - content: ' '; +.ant-calendar-disabled-cell.ant-calendar-today .ant-calendar-date::before { position: absolute; top: -1px; left: 5px; width: 24px; height: 24px; - border: 1px solid #bcbcbc; + border: 1px solid rgba(0, 0, 0, 0.25); border-radius: 2px; + content: ' '; } .ant-calendar-disabled-cell-first-of-row .ant-calendar-date { border-top-left-radius: 4px; @@ -6850,16 +7342,16 @@ a.ant-btn-sm { border-bottom-right-radius: 4px; } .ant-calendar-footer { - border-top: 1px solid #e8e8e8; - line-height: 38px; padding: 0 12px; + line-height: 38px; + border-top: 1px solid #e8e8e8; } .ant-calendar-footer:empty { border-top: 0; } .ant-calendar-footer-btn { - text-align: center; display: block; + text-align: center; } .ant-calendar-footer-extra { text-align: left; @@ -6867,8 +7359,8 @@ a.ant-btn-sm { .ant-calendar .ant-calendar-today-btn, .ant-calendar .ant-calendar-clear-btn { display: inline-block; - text-align: center; margin: 0 0 0 8px; + text-align: center; } .ant-calendar .ant-calendar-today-btn-disabled, .ant-calendar .ant-calendar-clear-btn-disabled { @@ -6880,57 +7372,59 @@ a.ant-btn-sm { margin: 0; } .ant-calendar .ant-calendar-clear-btn { - display: none; position: absolute; + top: 7px; right: 5px; - text-indent: -76px; - overflow: hidden; + display: none; width: 20px; height: 20px; - text-align: center; - line-height: 20px; - top: 7px; margin: 0; + overflow: hidden; + line-height: 20px; + text-align: center; + text-indent: -76px; } -.ant-calendar .ant-calendar-clear-btn:after { - font-size: 14px; - color: rgba(0, 0, 0, 0.25); +.ant-calendar .ant-calendar-clear-btn::after { display: inline-block; - line-height: 1; width: 20px; + color: rgba(0, 0, 0, 0.25); + font-size: 14px; + line-height: 1; text-indent: 43px; + -webkit-transition: color 0.3s ease; transition: color 0.3s ease; } -.ant-calendar .ant-calendar-clear-btn:hover:after { +.ant-calendar .ant-calendar-clear-btn:hover::after { color: rgba(0, 0, 0, 0.45); } .ant-calendar .ant-calendar-ok-btn { + position: relative; display: inline-block; font-weight: 400; + white-space: nowrap; text-align: center; - touch-action: manipulation; - cursor: pointer; background-image: none; border: 1px solid transparent; - white-space: nowrap; - padding: 0 15px; - height: 32px; + box-shadow: 0 2px 0 rgba(0, 0, 0, 0.015); + cursor: pointer; + -webkit-transition: all 0.3s cubic-bezier(0.645, 0.045, 0.355, 1); + transition: all 0.3s cubic-bezier(0.645, 0.045, 0.355, 1); -webkit-user-select: none; -moz-user-select: none; -ms-user-select: none; user-select: none; - transition: all 0.3s cubic-bezier(0.645, 0.045, 0.355, 1); - position: relative; - box-shadow: 0 2px 0 rgba(0, 0, 0, 0.015); + touch-action: manipulation; + height: 32px; + padding: 0 15px; color: #fff; background-color: #E64448; border-color: #E64448; text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.12); box-shadow: 0 2px 0 rgba(0, 0, 0, 0.045); + height: 24px; padding: 0 7px; font-size: 14px; border-radius: 5px; - height: 24px; line-height: 22px; } .ant-calendar .ant-calendar-ok-btn > .anticon { @@ -6957,28 +7451,28 @@ a.ant-btn-sm { pointer-events: none; } .ant-calendar .ant-calendar-ok-btn-lg { + height: 40px; padding: 0 15px; font-size: 16px; border-radius: 5px; - height: 40px; } .ant-calendar .ant-calendar-ok-btn-sm { + height: 24px; padding: 0 7px; font-size: 14px; border-radius: 5px; - height: 24px; } .ant-calendar .ant-calendar-ok-btn > a:only-child { color: currentColor; } -.ant-calendar .ant-calendar-ok-btn > a:only-child:after { - content: ''; +.ant-calendar .ant-calendar-ok-btn > a:only-child::after { position: absolute; top: 0; - left: 0; - bottom: 0; right: 0; + bottom: 0; + left: 0; background: transparent; + content: ''; } .ant-calendar .ant-calendar-ok-btn:hover, .ant-calendar .ant-calendar-ok-btn:focus { @@ -6990,15 +7484,15 @@ a.ant-btn-sm { .ant-calendar .ant-calendar-ok-btn:focus > a:only-child { color: currentColor; } -.ant-calendar .ant-calendar-ok-btn:hover > a:only-child:after, -.ant-calendar .ant-calendar-ok-btn:focus > a:only-child:after { - content: ''; +.ant-calendar .ant-calendar-ok-btn:hover > a:only-child::after, +.ant-calendar .ant-calendar-ok-btn:focus > a:only-child::after { position: absolute; top: 0; - left: 0; - bottom: 0; right: 0; + bottom: 0; + left: 0; background: transparent; + content: ''; } .ant-calendar .ant-calendar-ok-btn:active, .ant-calendar .ant-calendar-ok-btn.active { @@ -7010,24 +7504,29 @@ a.ant-btn-sm { .ant-calendar .ant-calendar-ok-btn.active > a:only-child { color: currentColor; } -.ant-calendar .ant-calendar-ok-btn:active > a:only-child:after, -.ant-calendar .ant-calendar-ok-btn.active > a:only-child:after { - content: ''; +.ant-calendar .ant-calendar-ok-btn:active > a:only-child::after, +.ant-calendar .ant-calendar-ok-btn.active > a:only-child::after { position: absolute; top: 0; - left: 0; - bottom: 0; right: 0; + bottom: 0; + left: 0; background: transparent; + content: ''; } +.ant-calendar .ant-calendar-ok-btn-disabled, .ant-calendar .ant-calendar-ok-btn.disabled, .ant-calendar .ant-calendar-ok-btn[disabled], +.ant-calendar .ant-calendar-ok-btn-disabled:hover, .ant-calendar .ant-calendar-ok-btn.disabled:hover, .ant-calendar .ant-calendar-ok-btn[disabled]:hover, +.ant-calendar .ant-calendar-ok-btn-disabled:focus, .ant-calendar .ant-calendar-ok-btn.disabled:focus, .ant-calendar .ant-calendar-ok-btn[disabled]:focus, +.ant-calendar .ant-calendar-ok-btn-disabled:active, .ant-calendar .ant-calendar-ok-btn.disabled:active, .ant-calendar .ant-calendar-ok-btn[disabled]:active, +.ant-calendar .ant-calendar-ok-btn-disabled.active, .ant-calendar .ant-calendar-ok-btn.disabled.active, .ant-calendar .ant-calendar-ok-btn[disabled].active { color: rgba(0, 0, 0, 0.25); @@ -7036,78 +7535,114 @@ a.ant-btn-sm { text-shadow: none; box-shadow: none; } +.ant-calendar .ant-calendar-ok-btn-disabled > a:only-child, .ant-calendar .ant-calendar-ok-btn.disabled > a:only-child, .ant-calendar .ant-calendar-ok-btn[disabled] > a:only-child, +.ant-calendar .ant-calendar-ok-btn-disabled:hover > a:only-child, .ant-calendar .ant-calendar-ok-btn.disabled:hover > a:only-child, .ant-calendar .ant-calendar-ok-btn[disabled]:hover > a:only-child, +.ant-calendar .ant-calendar-ok-btn-disabled:focus > a:only-child, .ant-calendar .ant-calendar-ok-btn.disabled:focus > a:only-child, .ant-calendar .ant-calendar-ok-btn[disabled]:focus > a:only-child, +.ant-calendar .ant-calendar-ok-btn-disabled:active > a:only-child, .ant-calendar .ant-calendar-ok-btn.disabled:active > a:only-child, .ant-calendar .ant-calendar-ok-btn[disabled]:active > a:only-child, +.ant-calendar .ant-calendar-ok-btn-disabled.active > a:only-child, .ant-calendar .ant-calendar-ok-btn.disabled.active > a:only-child, .ant-calendar .ant-calendar-ok-btn[disabled].active > a:only-child { color: currentColor; } -.ant-calendar .ant-calendar-ok-btn.disabled > a:only-child:after, -.ant-calendar .ant-calendar-ok-btn[disabled] > a:only-child:after, -.ant-calendar .ant-calendar-ok-btn.disabled:hover > a:only-child:after, -.ant-calendar .ant-calendar-ok-btn[disabled]:hover > a:only-child:after, -.ant-calendar .ant-calendar-ok-btn.disabled:focus > a:only-child:after, -.ant-calendar .ant-calendar-ok-btn[disabled]:focus > a:only-child:after, -.ant-calendar .ant-calendar-ok-btn.disabled:active > a:only-child:after, -.ant-calendar .ant-calendar-ok-btn[disabled]:active > a:only-child:after, -.ant-calendar .ant-calendar-ok-btn.disabled.active > a:only-child:after, -.ant-calendar .ant-calendar-ok-btn[disabled].active > a:only-child:after { - content: ''; +.ant-calendar .ant-calendar-ok-btn-disabled > a:only-child::after, +.ant-calendar .ant-calendar-ok-btn.disabled > a:only-child::after, +.ant-calendar .ant-calendar-ok-btn[disabled] > a:only-child::after, +.ant-calendar .ant-calendar-ok-btn-disabled:hover > a:only-child::after, +.ant-calendar .ant-calendar-ok-btn.disabled:hover > a:only-child::after, +.ant-calendar .ant-calendar-ok-btn[disabled]:hover > a:only-child::after, +.ant-calendar .ant-calendar-ok-btn-disabled:focus > a:only-child::after, +.ant-calendar .ant-calendar-ok-btn.disabled:focus > a:only-child::after, +.ant-calendar .ant-calendar-ok-btn[disabled]:focus > a:only-child::after, +.ant-calendar .ant-calendar-ok-btn-disabled:active > a:only-child::after, +.ant-calendar .ant-calendar-ok-btn.disabled:active > a:only-child::after, +.ant-calendar .ant-calendar-ok-btn[disabled]:active > a:only-child::after, +.ant-calendar .ant-calendar-ok-btn-disabled.active > a:only-child::after, +.ant-calendar .ant-calendar-ok-btn.disabled.active > a:only-child::after, +.ant-calendar .ant-calendar-ok-btn[disabled].active > a:only-child::after { position: absolute; top: 0; - left: 0; - bottom: 0; right: 0; - background: transparent; -} -.ant-calendar .ant-calendar-ok-btn-disabled { - color: rgba(0, 0, 0, 0.25); - background-color: #f5f5f5; - border-color: #d9d9d9; - cursor: not-allowed; -} -.ant-calendar .ant-calendar-ok-btn-disabled > a:only-child { - color: currentColor; -} -.ant-calendar .ant-calendar-ok-btn-disabled > a:only-child:after { - content: ''; - position: absolute; - top: 0; - left: 0; bottom: 0; - right: 0; + left: 0; background: transparent; + content: ''; } -.ant-calendar .ant-calendar-ok-btn-disabled:hover { +.ant-calendar .ant-calendar-ok-btn-disabled, +.ant-calendar .ant-calendar-ok-btn.disabled, +.ant-calendar .ant-calendar-ok-btn[disabled], +.ant-calendar .ant-calendar-ok-btn-disabled:hover, +.ant-calendar .ant-calendar-ok-btn.disabled:hover, +.ant-calendar .ant-calendar-ok-btn[disabled]:hover, +.ant-calendar .ant-calendar-ok-btn-disabled:focus, +.ant-calendar .ant-calendar-ok-btn.disabled:focus, +.ant-calendar .ant-calendar-ok-btn[disabled]:focus, +.ant-calendar .ant-calendar-ok-btn-disabled:active, +.ant-calendar .ant-calendar-ok-btn.disabled:active, +.ant-calendar .ant-calendar-ok-btn[disabled]:active, +.ant-calendar .ant-calendar-ok-btn-disabled.active, +.ant-calendar .ant-calendar-ok-btn.disabled.active, +.ant-calendar .ant-calendar-ok-btn[disabled].active { color: rgba(0, 0, 0, 0.25); background-color: #f5f5f5; border-color: #d9d9d9; + text-shadow: none; + box-shadow: none; } -.ant-calendar .ant-calendar-ok-btn-disabled:hover > a:only-child { +.ant-calendar .ant-calendar-ok-btn-disabled > a:only-child, +.ant-calendar .ant-calendar-ok-btn.disabled > a:only-child, +.ant-calendar .ant-calendar-ok-btn[disabled] > a:only-child, +.ant-calendar .ant-calendar-ok-btn-disabled:hover > a:only-child, +.ant-calendar .ant-calendar-ok-btn.disabled:hover > a:only-child, +.ant-calendar .ant-calendar-ok-btn[disabled]:hover > a:only-child, +.ant-calendar .ant-calendar-ok-btn-disabled:focus > a:only-child, +.ant-calendar .ant-calendar-ok-btn.disabled:focus > a:only-child, +.ant-calendar .ant-calendar-ok-btn[disabled]:focus > a:only-child, +.ant-calendar .ant-calendar-ok-btn-disabled:active > a:only-child, +.ant-calendar .ant-calendar-ok-btn.disabled:active > a:only-child, +.ant-calendar .ant-calendar-ok-btn[disabled]:active > a:only-child, +.ant-calendar .ant-calendar-ok-btn-disabled.active > a:only-child, +.ant-calendar .ant-calendar-ok-btn.disabled.active > a:only-child, +.ant-calendar .ant-calendar-ok-btn[disabled].active > a:only-child { color: currentColor; } -.ant-calendar .ant-calendar-ok-btn-disabled:hover > a:only-child:after { - content: ''; +.ant-calendar .ant-calendar-ok-btn-disabled > a:only-child::after, +.ant-calendar .ant-calendar-ok-btn.disabled > a:only-child::after, +.ant-calendar .ant-calendar-ok-btn[disabled] > a:only-child::after, +.ant-calendar .ant-calendar-ok-btn-disabled:hover > a:only-child::after, +.ant-calendar .ant-calendar-ok-btn.disabled:hover > a:only-child::after, +.ant-calendar .ant-calendar-ok-btn[disabled]:hover > a:only-child::after, +.ant-calendar .ant-calendar-ok-btn-disabled:focus > a:only-child::after, +.ant-calendar .ant-calendar-ok-btn.disabled:focus > a:only-child::after, +.ant-calendar .ant-calendar-ok-btn[disabled]:focus > a:only-child::after, +.ant-calendar .ant-calendar-ok-btn-disabled:active > a:only-child::after, +.ant-calendar .ant-calendar-ok-btn.disabled:active > a:only-child::after, +.ant-calendar .ant-calendar-ok-btn[disabled]:active > a:only-child::after, +.ant-calendar .ant-calendar-ok-btn-disabled.active > a:only-child::after, +.ant-calendar .ant-calendar-ok-btn.disabled.active > a:only-child::after, +.ant-calendar .ant-calendar-ok-btn[disabled].active > a:only-child::after { position: absolute; top: 0; - left: 0; - bottom: 0; right: 0; + bottom: 0; + left: 0; background: transparent; + content: ''; } .ant-calendar-range-picker-input { + width: 44%; + height: 99%; + text-align: center; background-color: transparent; border: 0; - height: 99%; outline: 0; - width: 44%; - text-align: center; } .ant-calendar-range-picker-input::-moz-placeholder { color: #bfbfbf; @@ -7123,10 +7658,10 @@ a.ant-btn-sm { cursor: not-allowed; } .ant-calendar-range-picker-separator { - color: rgba(0, 0, 0, 0.45); - width: 10px; display: inline-block; + width: 10px; height: 100%; + color: rgba(0, 0, 0, 0.45); vertical-align: top; } .ant-calendar-range { @@ -7134,15 +7669,15 @@ a.ant-btn-sm { overflow: hidden; } .ant-calendar-range .ant-calendar-date-panel::after { - content: '.'; display: block; - height: 0; clear: both; + height: 0; visibility: hidden; + content: '.'; } .ant-calendar-range-part { - width: 50%; position: relative; + width: 50%; } .ant-calendar-range-left { float: left; @@ -7160,11 +7695,11 @@ a.ant-btn-sm { position: absolute; left: 50%; width: 20px; - margin-left: -132px; - text-align: center; height: 34px; - line-height: 34px; + margin-left: -132px; color: rgba(0, 0, 0, 0.45); + line-height: 34px; + text-align: center; } .ant-calendar-range-right .ant-calendar-date-input-wrap { margin-left: -118px; @@ -7183,22 +7718,23 @@ a.ant-btn-sm { .ant-calendar-range .ant-calendar-time-picker-input { position: relative; display: inline-block; - padding: 4px 11px; width: 100%; height: 32px; + padding: 4px 11px; + color: rgba(0, 0, 0, 0.65); font-size: 14px; line-height: 1.5; - color: rgba(0, 0, 0, 0.65); background-color: #fff; background-image: none; border: 1px solid #d9d9d9; border-radius: 5px; + -webkit-transition: all 0.3s; transition: all 0.3s; height: 24px; + padding-right: 0; + padding-left: 0; border: 0; box-shadow: none; - padding-left: 0; - padding-right: 0; } .ant-calendar-range .ant-calendar-input::-moz-placeholder, .ant-calendar-range .ant-calendar-time-picker-input::-moz-placeholder { @@ -7221,16 +7757,16 @@ a.ant-btn-sm { .ant-calendar-range .ant-calendar-input:focus, .ant-calendar-range .ant-calendar-time-picker-input:focus { border-color: #f2726f; + border-right-width: 1px !important; outline: 0; box-shadow: 0 0 0 2px rgba(230, 68, 72, 0.2); - border-right-width: 1px !important; } .ant-calendar-range .ant-calendar-input-disabled, .ant-calendar-range .ant-calendar-time-picker-input-disabled { + color: rgba(0, 0, 0, 0.25); background-color: #f5f5f5; - opacity: 1; cursor: not-allowed; - color: rgba(0, 0, 0, 0.25); + opacity: 1; } .ant-calendar-range .ant-calendar-input-disabled:hover, .ant-calendar-range .ant-calendar-time-picker-input-disabled:hover { @@ -7241,20 +7777,21 @@ textarea.ant-calendar-range .ant-calendar-input, textarea.ant-calendar-range .ant-calendar-time-picker-input { max-width: 100%; height: auto; + min-height: 32px; vertical-align: bottom; + -webkit-transition: all 0.3s, height 0s; transition: all 0.3s, height 0s; - min-height: 32px; } .ant-calendar-range .ant-calendar-input-lg, .ant-calendar-range .ant-calendar-time-picker-input-lg { - padding: 6px 11px; height: 40px; + padding: 6px 11px; font-size: 16px; } .ant-calendar-range .ant-calendar-input-sm, .ant-calendar-range .ant-calendar-time-picker-input-sm { - padding: 1px 7px; height: 24px; + padding: 1px 7px; } .ant-calendar-range .ant-calendar-input:focus, .ant-calendar-range .ant-calendar-time-picker-input:focus { @@ -7283,24 +7820,24 @@ textarea.ant-calendar-range .ant-calendar-time-picker-input { height: 208px; } .ant-calendar-range .ant-calendar-in-range-cell { - border-radius: 0; position: relative; + border-radius: 0; } .ant-calendar-range .ant-calendar-in-range-cell > div { position: relative; z-index: 1; } -.ant-calendar-range .ant-calendar-in-range-cell:before { - content: ''; - display: block; - background: #fff2f0; - border-radius: 0; - border: 0; +.ant-calendar-range .ant-calendar-in-range-cell::before { position: absolute; top: 4px; + right: 0; bottom: 4px; left: 0; - right: 0; + display: block; + background: #fff2f0; + border: 0; + border-radius: 0; + content: ''; } .ant-calendar-range .ant-calendar-footer-extra { float: left; @@ -7322,18 +7859,18 @@ div.ant-calendar-range-quick-selector > a { border-top: 1px solid #e8e8e8; } .ant-calendar-range.ant-calendar-time .ant-calendar-time-picker { - height: 207px; - width: 100%; top: 68px; z-index: 2; + width: 100%; + height: 207px; } .ant-calendar-range.ant-calendar-time .ant-calendar-time-picker-panel { height: 267px; margin-top: -34px; } .ant-calendar-range.ant-calendar-time .ant-calendar-time-picker-inner { - padding-top: 40px; height: 100%; + padding-top: 40px; background: none; } .ant-calendar-range.ant-calendar-time .ant-calendar-time-picker-combobox { @@ -7352,8 +7889,8 @@ div.ant-calendar-range-quick-selector > a { margin-right: 8px; } .ant-calendar-range.ant-calendar-time .ant-calendar-today-btn { - margin: 8px 12px; height: 22px; + margin: 8px 12px; line-height: 22px; } .ant-calendar-range-with-ranges.ant-calendar-time .ant-calendar-time-picker { @@ -7364,27 +7901,27 @@ div.ant-calendar-range-quick-selector > a { } .ant-calendar-time-picker { position: absolute; - width: 100%; top: 40px; + width: 100%; background-color: #fff; } .ant-calendar-time-picker-panel { - z-index: 1050; position: absolute; + z-index: 1050; width: 100%; } .ant-calendar-time-picker-inner { - display: inline-block; position: relative; - outline: none; - list-style: none; + display: inline-block; + width: 100%; + overflow: hidden; font-size: 14px; + line-height: 1.5; text-align: left; + list-style: none; background-color: #fff; background-clip: padding-box; - line-height: 1.5; - overflow: hidden; - width: 100%; + outline: none; } .ant-calendar-time-picker-combobox { width: 100%; @@ -7406,58 +7943,59 @@ div.ant-calendar-range-quick-selector > a { display: none; } .ant-calendar-time-picker-select { + position: relative; float: left; - font-size: 14px; - border-right: 1px solid #e8e8e8; box-sizing: border-box; - overflow: hidden; - position: relative; height: 226px; + overflow: hidden; + font-size: 14px; + border-right: 1px solid #e8e8e8; } .ant-calendar-time-picker-select:hover { overflow-y: auto; } .ant-calendar-time-picker-select:first-child { - border-left: 0; margin-left: 0; + border-left: 0; } .ant-calendar-time-picker-select:last-child { border-right: 0; } .ant-calendar-time-picker-select ul { - list-style: none; box-sizing: border-box; - margin: 0; - padding: 0; width: 100%; max-height: 206px; + margin: 0; + padding: 0; + list-style: none; } .ant-calendar-time-picker-select li { - padding-left: 32px; - list-style: none; box-sizing: content-box; - margin: 0; width: 100%; height: 24px; + margin: 0; + padding-left: 32px; line-height: 24px; + list-style: none; cursor: pointer; + -webkit-transition: background 0.3s ease; + transition: background 0.3s ease; -webkit-user-select: none; -moz-user-select: none; -ms-user-select: none; user-select: none; - transition: background 0.3s ease; } -.ant-calendar-time-picker-select li:last-child:after { - content: ''; - height: 202px; +.ant-calendar-time-picker-select li:last-child::after { display: block; + height: 202px; + content: ''; } .ant-calendar-time-picker-select li:hover { background: #fff2f0; } li.ant-calendar-time-picker-select-option-selected { - background: #f5f5f5; font-weight: bold; + background: #f5f5f5; } li.ant-calendar-time-picker-select-option-disabled { color: rgba(0, 0, 0, 0.25); @@ -7467,10 +8005,10 @@ li.ant-calendar-time-picker-select-option-disabled:hover { cursor: not-allowed; } .ant-calendar-time .ant-calendar-day-select { - padding: 0 2px; - font-weight: 500; display: inline-block; + padding: 0 2px; color: rgba(0, 0, 0, 0.85); + font-weight: 500; line-height: 34px; } .ant-calendar-time .ant-calendar-footer { @@ -7498,11 +8036,16 @@ li.ant-calendar-time-picker-select-option-disabled:hover { bottom: 0; left: 0; z-index: 10; - border-radius: 5px; background: #fff; + border-radius: 5px; outline: none; } .ant-calendar-month-panel > div { + display: -webkit-box; + display: flex; + -webkit-box-orient: vertical; + -webkit-box-direction: normal; + flex-direction: column; height: 100%; } .ant-calendar-month-panel-hidden { @@ -7512,11 +8055,11 @@ li.ant-calendar-time-picker-select-option-disabled:hover { height: 40px; line-height: 40px; text-align: center; + border-bottom: 1px solid #e8e8e8; -webkit-user-select: none; -moz-user-select: none; -ms-user-select: none; user-select: none; - border-bottom: 1px solid #e8e8e8; } .ant-calendar-month-panel-header a:hover { color: #cf5353; @@ -7525,10 +8068,10 @@ li.ant-calendar-time-picker-select-option-disabled:hover { .ant-calendar-month-panel-header .ant-calendar-month-panel-decade-select, .ant-calendar-month-panel-header .ant-calendar-month-panel-year-select, .ant-calendar-month-panel-header .ant-calendar-month-panel-month-select { - padding: 0 2px; - font-weight: 500; display: inline-block; + padding: 0 2px; color: rgba(0, 0, 0, 0.85); + font-weight: 500; line-height: 40px; } .ant-calendar-month-panel-header .ant-calendar-month-panel-century-select-arrow, @@ -7547,11 +8090,11 @@ li.ant-calendar-time-picker-select-option-disabled:hover { .ant-calendar-month-panel-header .ant-calendar-month-panel-next-year-btn { position: absolute; top: 0; - color: rgba(0, 0, 0, 0.45); - font-family: Arial, 'Hiragino Sans GB', 'Microsoft Yahei', 'Microsoft Sans Serif', sans-serif; + display: inline-block; padding: 0 5px; + color: rgba(0, 0, 0, 0.45); font-size: 16px; - display: inline-block; + font-family: Arial, 'Hiragino Sans GB', 'Microsoft Yahei', 'Microsoft Sans Serif', sans-serif; line-height: 40px; } .ant-calendar-month-panel-header .ant-calendar-month-panel-prev-century-btn, @@ -7559,9 +8102,9 @@ li.ant-calendar-time-picker-select-option-disabled:hover { .ant-calendar-month-panel-header .ant-calendar-month-panel-prev-year-btn { left: 7px; } -.ant-calendar-month-panel-header .ant-calendar-month-panel-prev-century-btn:after, -.ant-calendar-month-panel-header .ant-calendar-month-panel-prev-decade-btn:after, -.ant-calendar-month-panel-header .ant-calendar-month-panel-prev-year-btn:after { +.ant-calendar-month-panel-header .ant-calendar-month-panel-prev-century-btn::after, +.ant-calendar-month-panel-header .ant-calendar-month-panel-prev-decade-btn::after, +.ant-calendar-month-panel-header .ant-calendar-month-panel-prev-year-btn::after { content: '\AB'; } .ant-calendar-month-panel-header .ant-calendar-month-panel-next-century-btn, @@ -7569,59 +8112,67 @@ li.ant-calendar-time-picker-select-option-disabled:hover { .ant-calendar-month-panel-header .ant-calendar-month-panel-next-year-btn { right: 7px; } -.ant-calendar-month-panel-header .ant-calendar-month-panel-next-century-btn:after, -.ant-calendar-month-panel-header .ant-calendar-month-panel-next-decade-btn:after, -.ant-calendar-month-panel-header .ant-calendar-month-panel-next-year-btn:after { +.ant-calendar-month-panel-header .ant-calendar-month-panel-next-century-btn::after, +.ant-calendar-month-panel-header .ant-calendar-month-panel-next-decade-btn::after, +.ant-calendar-month-panel-header .ant-calendar-month-panel-next-year-btn::after { content: '\BB'; } .ant-calendar-month-panel-header .ant-calendar-month-panel-prev-month-btn { left: 29px; } -.ant-calendar-month-panel-header .ant-calendar-month-panel-prev-month-btn:after { +.ant-calendar-month-panel-header .ant-calendar-month-panel-prev-month-btn::after { content: '\2039'; } .ant-calendar-month-panel-header .ant-calendar-month-panel-next-month-btn { right: 29px; } -.ant-calendar-month-panel-header .ant-calendar-month-panel-next-month-btn:after { +.ant-calendar-month-panel-header .ant-calendar-month-panel-next-month-btn::after { content: '\203A'; } .ant-calendar-month-panel-body { - height: calc(100% - 40px); + -webkit-box-flex: 1; + flex: 1; +} +.ant-calendar-month-panel-footer { + border-top: 1px solid #e8e8e8; +} +.ant-calendar-month-panel-footer .ant-calendar-footer-extra { + padding: 0 12px; } .ant-calendar-month-panel-table { - table-layout: fixed; width: 100%; height: 100%; + table-layout: fixed; border-collapse: separate; } .ant-calendar-month-panel-selected-cell .ant-calendar-month-panel-month { - background: #E64448; color: #fff; + background: #E64448; } .ant-calendar-month-panel-selected-cell .ant-calendar-month-panel-month:hover { - background: #E64448; color: #fff; + background: #E64448; } .ant-calendar-month-panel-cell { text-align: center; } .ant-calendar-month-panel-cell-disabled .ant-calendar-month-panel-month, .ant-calendar-month-panel-cell-disabled .ant-calendar-month-panel-month:hover { - cursor: not-allowed; - color: #bcbcbc; + color: rgba(0, 0, 0, 0.25); background: #f5f5f5; + cursor: not-allowed; } .ant-calendar-month-panel-month { display: inline-block; + height: 24px; margin: 0 auto; + padding: 0 8px; color: rgba(0, 0, 0, 0.65); - background: transparent; - text-align: center; - height: 24px; line-height: 24px; - padding: 0 8px; + text-align: center; + background: transparent; border-radius: 2px; + -webkit-transition: background 0.3s ease; transition: background 0.3s ease; } .ant-calendar-month-panel-month:hover { @@ -7635,11 +8186,16 @@ li.ant-calendar-time-picker-select-option-disabled:hover { bottom: 0; left: 0; z-index: 10; - border-radius: 5px; background: #fff; + border-radius: 5px; outline: none; } .ant-calendar-year-panel > div { + display: -webkit-box; + display: flex; + -webkit-box-orient: vertical; + -webkit-box-direction: normal; + flex-direction: column; height: 100%; } .ant-calendar-year-panel-hidden { @@ -7649,11 +8205,11 @@ li.ant-calendar-time-picker-select-option-disabled:hover { height: 40px; line-height: 40px; text-align: center; + border-bottom: 1px solid #e8e8e8; -webkit-user-select: none; -moz-user-select: none; -ms-user-select: none; user-select: none; - border-bottom: 1px solid #e8e8e8; } .ant-calendar-year-panel-header a:hover { color: #cf5353; @@ -7662,10 +8218,10 @@ li.ant-calendar-time-picker-select-option-disabled:hover { .ant-calendar-year-panel-header .ant-calendar-year-panel-decade-select, .ant-calendar-year-panel-header .ant-calendar-year-panel-year-select, .ant-calendar-year-panel-header .ant-calendar-year-panel-month-select { - padding: 0 2px; - font-weight: 500; display: inline-block; + padding: 0 2px; color: rgba(0, 0, 0, 0.85); + font-weight: 500; line-height: 40px; } .ant-calendar-year-panel-header .ant-calendar-year-panel-century-select-arrow, @@ -7684,11 +8240,11 @@ li.ant-calendar-time-picker-select-option-disabled:hover { .ant-calendar-year-panel-header .ant-calendar-year-panel-next-year-btn { position: absolute; top: 0; - color: rgba(0, 0, 0, 0.45); - font-family: Arial, 'Hiragino Sans GB', 'Microsoft Yahei', 'Microsoft Sans Serif', sans-serif; + display: inline-block; padding: 0 5px; + color: rgba(0, 0, 0, 0.45); font-size: 16px; - display: inline-block; + font-family: Arial, 'Hiragino Sans GB', 'Microsoft Yahei', 'Microsoft Sans Serif', sans-serif; line-height: 40px; } .ant-calendar-year-panel-header .ant-calendar-year-panel-prev-century-btn, @@ -7696,9 +8252,9 @@ li.ant-calendar-time-picker-select-option-disabled:hover { .ant-calendar-year-panel-header .ant-calendar-year-panel-prev-year-btn { left: 7px; } -.ant-calendar-year-panel-header .ant-calendar-year-panel-prev-century-btn:after, -.ant-calendar-year-panel-header .ant-calendar-year-panel-prev-decade-btn:after, -.ant-calendar-year-panel-header .ant-calendar-year-panel-prev-year-btn:after { +.ant-calendar-year-panel-header .ant-calendar-year-panel-prev-century-btn::after, +.ant-calendar-year-panel-header .ant-calendar-year-panel-prev-decade-btn::after, +.ant-calendar-year-panel-header .ant-calendar-year-panel-prev-year-btn::after { content: '\AB'; } .ant-calendar-year-panel-header .ant-calendar-year-panel-next-century-btn, @@ -7706,30 +8262,37 @@ li.ant-calendar-time-picker-select-option-disabled:hover { .ant-calendar-year-panel-header .ant-calendar-year-panel-next-year-btn { right: 7px; } -.ant-calendar-year-panel-header .ant-calendar-year-panel-next-century-btn:after, -.ant-calendar-year-panel-header .ant-calendar-year-panel-next-decade-btn:after, -.ant-calendar-year-panel-header .ant-calendar-year-panel-next-year-btn:after { +.ant-calendar-year-panel-header .ant-calendar-year-panel-next-century-btn::after, +.ant-calendar-year-panel-header .ant-calendar-year-panel-next-decade-btn::after, +.ant-calendar-year-panel-header .ant-calendar-year-panel-next-year-btn::after { content: '\BB'; } .ant-calendar-year-panel-header .ant-calendar-year-panel-prev-month-btn { left: 29px; } -.ant-calendar-year-panel-header .ant-calendar-year-panel-prev-month-btn:after { +.ant-calendar-year-panel-header .ant-calendar-year-panel-prev-month-btn::after { content: '\2039'; } .ant-calendar-year-panel-header .ant-calendar-year-panel-next-month-btn { right: 29px; } -.ant-calendar-year-panel-header .ant-calendar-year-panel-next-month-btn:after { +.ant-calendar-year-panel-header .ant-calendar-year-panel-next-month-btn::after { content: '\203A'; } .ant-calendar-year-panel-body { - height: calc(100% - 40px); + -webkit-box-flex: 1; + flex: 1; +} +.ant-calendar-year-panel-footer { + border-top: 1px solid #e8e8e8; +} +.ant-calendar-year-panel-footer .ant-calendar-footer-extra { + padding: 0 12px; } .ant-calendar-year-panel-table { - table-layout: fixed; width: 100%; height: 100%; + table-layout: fixed; border-collapse: separate; } .ant-calendar-year-panel-cell { @@ -7737,14 +8300,15 @@ li.ant-calendar-time-picker-select-option-disabled:hover { } .ant-calendar-year-panel-year { display: inline-block; + height: 24px; margin: 0 auto; + padding: 0 8px; color: rgba(0, 0, 0, 0.65); - background: transparent; - text-align: center; - height: 24px; line-height: 24px; - padding: 0 8px; + text-align: center; + background: transparent; border-radius: 2px; + -webkit-transition: background 0.3s ease; transition: background 0.3s ease; } .ant-calendar-year-panel-year:hover { @@ -7752,20 +8316,20 @@ li.ant-calendar-time-picker-select-option-disabled:hover { cursor: pointer; } .ant-calendar-year-panel-selected-cell .ant-calendar-year-panel-year { - background: #E64448; color: #fff; + background: #E64448; } .ant-calendar-year-panel-selected-cell .ant-calendar-year-panel-year:hover { - background: #E64448; color: #fff; + background: #E64448; } .ant-calendar-year-panel-last-decade-cell .ant-calendar-year-panel-year, .ant-calendar-year-panel-next-decade-cell .ant-calendar-year-panel-year { + color: rgba(0, 0, 0, 0.25); -webkit-user-select: none; -moz-user-select: none; -ms-user-select: none; user-select: none; - color: rgba(0, 0, 0, 0.25); } .ant-calendar-decade-panel { position: absolute; @@ -7774,6 +8338,11 @@ li.ant-calendar-time-picker-select-option-disabled:hover { bottom: 0; left: 0; z-index: 10; + display: -webkit-box; + display: flex; + -webkit-box-orient: vertical; + -webkit-box-direction: normal; + flex-direction: column; background: #fff; border-radius: 5px; outline: none; @@ -7785,11 +8354,11 @@ li.ant-calendar-time-picker-select-option-disabled:hover { height: 40px; line-height: 40px; text-align: center; + border-bottom: 1px solid #e8e8e8; -webkit-user-select: none; -moz-user-select: none; -ms-user-select: none; user-select: none; - border-bottom: 1px solid #e8e8e8; } .ant-calendar-decade-panel-header a:hover { color: #cf5353; @@ -7798,10 +8367,10 @@ li.ant-calendar-time-picker-select-option-disabled:hover { .ant-calendar-decade-panel-header .ant-calendar-decade-panel-decade-select, .ant-calendar-decade-panel-header .ant-calendar-decade-panel-year-select, .ant-calendar-decade-panel-header .ant-calendar-decade-panel-month-select { - padding: 0 2px; - font-weight: 500; display: inline-block; + padding: 0 2px; color: rgba(0, 0, 0, 0.85); + font-weight: 500; line-height: 40px; } .ant-calendar-decade-panel-header .ant-calendar-decade-panel-century-select-arrow, @@ -7820,11 +8389,11 @@ li.ant-calendar-time-picker-select-option-disabled:hover { .ant-calendar-decade-panel-header .ant-calendar-decade-panel-next-year-btn { position: absolute; top: 0; - color: rgba(0, 0, 0, 0.45); - font-family: Arial, 'Hiragino Sans GB', 'Microsoft Yahei', 'Microsoft Sans Serif', sans-serif; + display: inline-block; padding: 0 5px; + color: rgba(0, 0, 0, 0.45); font-size: 16px; - display: inline-block; + font-family: Arial, 'Hiragino Sans GB', 'Microsoft Yahei', 'Microsoft Sans Serif', sans-serif; line-height: 40px; } .ant-calendar-decade-panel-header .ant-calendar-decade-panel-prev-century-btn, @@ -7832,9 +8401,9 @@ li.ant-calendar-time-picker-select-option-disabled:hover { .ant-calendar-decade-panel-header .ant-calendar-decade-panel-prev-year-btn { left: 7px; } -.ant-calendar-decade-panel-header .ant-calendar-decade-panel-prev-century-btn:after, -.ant-calendar-decade-panel-header .ant-calendar-decade-panel-prev-decade-btn:after, -.ant-calendar-decade-panel-header .ant-calendar-decade-panel-prev-year-btn:after { +.ant-calendar-decade-panel-header .ant-calendar-decade-panel-prev-century-btn::after, +.ant-calendar-decade-panel-header .ant-calendar-decade-panel-prev-decade-btn::after, +.ant-calendar-decade-panel-header .ant-calendar-decade-panel-prev-year-btn::after { content: '\AB'; } .ant-calendar-decade-panel-header .ant-calendar-decade-panel-next-century-btn, @@ -7842,46 +8411,54 @@ li.ant-calendar-time-picker-select-option-disabled:hover { .ant-calendar-decade-panel-header .ant-calendar-decade-panel-next-year-btn { right: 7px; } -.ant-calendar-decade-panel-header .ant-calendar-decade-panel-next-century-btn:after, -.ant-calendar-decade-panel-header .ant-calendar-decade-panel-next-decade-btn:after, -.ant-calendar-decade-panel-header .ant-calendar-decade-panel-next-year-btn:after { +.ant-calendar-decade-panel-header .ant-calendar-decade-panel-next-century-btn::after, +.ant-calendar-decade-panel-header .ant-calendar-decade-panel-next-decade-btn::after, +.ant-calendar-decade-panel-header .ant-calendar-decade-panel-next-year-btn::after { content: '\BB'; } .ant-calendar-decade-panel-header .ant-calendar-decade-panel-prev-month-btn { left: 29px; } -.ant-calendar-decade-panel-header .ant-calendar-decade-panel-prev-month-btn:after { +.ant-calendar-decade-panel-header .ant-calendar-decade-panel-prev-month-btn::after { content: '\2039'; } .ant-calendar-decade-panel-header .ant-calendar-decade-panel-next-month-btn { right: 29px; } -.ant-calendar-decade-panel-header .ant-calendar-decade-panel-next-month-btn:after { +.ant-calendar-decade-panel-header .ant-calendar-decade-panel-next-month-btn::after { content: '\203A'; } .ant-calendar-decade-panel-body { - height: calc(100% - 40px); + -webkit-box-flex: 1; + flex: 1; +} +.ant-calendar-decade-panel-footer { + border-top: 1px solid #e8e8e8; +} +.ant-calendar-decade-panel-footer .ant-calendar-footer-extra { + padding: 0 12px; } .ant-calendar-decade-panel-table { - table-layout: fixed; width: 100%; height: 100%; + table-layout: fixed; border-collapse: separate; } .ant-calendar-decade-panel-cell { - text-align: center; white-space: nowrap; + text-align: center; } .ant-calendar-decade-panel-decade { display: inline-block; + height: 24px; margin: 0 auto; + padding: 0 6px; color: rgba(0, 0, 0, 0.65); - background: transparent; - text-align: center; - height: 24px; line-height: 24px; - padding: 0 6px; + text-align: center; + background: transparent; border-radius: 2px; + -webkit-transition: background 0.3s ease; transition: background 0.3s ease; } .ant-calendar-decade-panel-decade:hover { @@ -7889,20 +8466,20 @@ li.ant-calendar-time-picker-select-option-disabled:hover { cursor: pointer; } .ant-calendar-decade-panel-selected-cell .ant-calendar-decade-panel-decade { - background: #E64448; color: #fff; + background: #E64448; } .ant-calendar-decade-panel-selected-cell .ant-calendar-decade-panel-decade:hover { - background: #E64448; color: #fff; + background: #E64448; } .ant-calendar-decade-panel-last-century-cell .ant-calendar-decade-panel-decade, .ant-calendar-decade-panel-next-century-cell .ant-calendar-decade-panel-decade { + color: rgba(0, 0, 0, 0.25); -webkit-user-select: none; -moz-user-select: none; -ms-user-select: none; user-select: none; - color: rgba(0, 0, 0, 0.25); } .ant-calendar-month .ant-calendar-month-header-wrap { position: relative; @@ -7917,95 +8494,97 @@ li.ant-calendar-time-picker-select-option-disabled:hover { opacity: 0.5; } .ant-calendar-week-number .ant-calendar-body tr { - transition: all 0.3s; cursor: pointer; + -webkit-transition: all 0.3s; + transition: all 0.3s; } .ant-calendar-week-number .ant-calendar-body tr:hover { background: #fff2f0; } .ant-calendar-week-number .ant-calendar-body tr.ant-calendar-active-week { - background: #fff1f0; font-weight: bold; + background: #fff1f0; } .ant-calendar-week-number .ant-calendar-body tr .ant-calendar-selected-day .ant-calendar-date, .ant-calendar-week-number .ant-calendar-body tr .ant-calendar-selected-day:hover .ant-calendar-date { - background: transparent; color: rgba(0, 0, 0, 0.65); + background: transparent; } .ant-divider { - font-family: "Chinese Quote", -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"; - font-size: 14px; - font-variant: tabular-nums; - line-height: 1.5; - color: rgba(0, 0, 0, 0.65); box-sizing: border-box; margin: 0; padding: 0; + color: rgba(0, 0, 0, 0.65); + font-size: 14px; + font-variant: tabular-nums; + line-height: 1.5; list-style: none; + font-feature-settings: 'tnum'; background: #e8e8e8; } .ant-divider, .ant-divider-vertical { - margin: 0 8px; + position: relative; + top: -0.06em; display: inline-block; - height: 0.9em; width: 1px; + height: 0.9em; + margin: 0 8px; vertical-align: middle; - position: relative; - top: -0.06em; } .ant-divider-horizontal { display: block; - height: 1px; + clear: both; width: 100%; min-width: 100%; + height: 1px; margin: 24px 0; - clear: both; } .ant-divider-horizontal.ant-divider-with-text, .ant-divider-horizontal.ant-divider-with-text-left, .ant-divider-horizontal.ant-divider-with-text-right { display: table; + margin: 16px 0; + color: rgba(0, 0, 0, 0.85); + font-weight: 500; + font-size: 16px; white-space: nowrap; text-align: center; background: transparent; - font-weight: 500; - color: rgba(0, 0, 0, 0.85); - font-size: 16px; - margin: 16px 0; } -.ant-divider-horizontal.ant-divider-with-text:before, -.ant-divider-horizontal.ant-divider-with-text-left:before, -.ant-divider-horizontal.ant-divider-with-text-right:before, -.ant-divider-horizontal.ant-divider-with-text:after, -.ant-divider-horizontal.ant-divider-with-text-left:after, -.ant-divider-horizontal.ant-divider-with-text-right:after { - content: ''; - display: table-cell; +.ant-divider-horizontal.ant-divider-with-text::before, +.ant-divider-horizontal.ant-divider-with-text-left::before, +.ant-divider-horizontal.ant-divider-with-text-right::before, +.ant-divider-horizontal.ant-divider-with-text::after, +.ant-divider-horizontal.ant-divider-with-text-left::after, +.ant-divider-horizontal.ant-divider-with-text-right::after { position: relative; top: 50%; + display: table-cell; width: 50%; border-top: 1px solid #e8e8e8; - transform: translateY(50%); + -webkit-transform: translateY(50%); + transform: translateY(50%); + content: ''; } .ant-divider-horizontal.ant-divider-with-text-left .ant-divider-inner-text, .ant-divider-horizontal.ant-divider-with-text-right .ant-divider-inner-text { display: inline-block; padding: 0 10px; } -.ant-divider-horizontal.ant-divider-with-text-left:before { +.ant-divider-horizontal.ant-divider-with-text-left::before { top: 50%; width: 5%; } -.ant-divider-horizontal.ant-divider-with-text-left:after { +.ant-divider-horizontal.ant-divider-with-text-left::after { top: 50%; width: 95%; } -.ant-divider-horizontal.ant-divider-with-text-right:before { +.ant-divider-horizontal.ant-divider-with-text-right::before { top: 50%; width: 95%; } -.ant-divider-horizontal.ant-divider-with-text-right:after { +.ant-divider-horizontal.ant-divider-with-text-right::after { top: 50%; width: 5%; } @@ -8022,23 +8601,26 @@ li.ant-calendar-time-picker-select-option-disabled:hover { .ant-divider-horizontal.ant-divider-with-text-right.ant-divider-dashed { border-top: 0; } -.ant-divider-horizontal.ant-divider-with-text.ant-divider-dashed:before, -.ant-divider-horizontal.ant-divider-with-text-left.ant-divider-dashed:before, -.ant-divider-horizontal.ant-divider-with-text-right.ant-divider-dashed:before, -.ant-divider-horizontal.ant-divider-with-text.ant-divider-dashed:after, -.ant-divider-horizontal.ant-divider-with-text-left.ant-divider-dashed:after, -.ant-divider-horizontal.ant-divider-with-text-right.ant-divider-dashed:after { +.ant-divider-horizontal.ant-divider-with-text.ant-divider-dashed::before, +.ant-divider-horizontal.ant-divider-with-text-left.ant-divider-dashed::before, +.ant-divider-horizontal.ant-divider-with-text-right.ant-divider-dashed::before, +.ant-divider-horizontal.ant-divider-with-text.ant-divider-dashed::after, +.ant-divider-horizontal.ant-divider-with-text-left.ant-divider-dashed::after, +.ant-divider-horizontal.ant-divider-with-text-right.ant-divider-dashed::after { border-style: dashed none none; } .ant-drawer { position: fixed; top: 0; + z-index: 1000; width: 0%; height: 100%; - z-index: 1000; } .ant-drawer > * { + -webkit-transition: -webkit-transform 0.3s cubic-bezier(0.9, 0, 0.3, 0.7); + transition: -webkit-transform 0.3s cubic-bezier(0.9, 0, 0.3, 0.7); transition: transform 0.3s cubic-bezier(0.9, 0, 0.3, 0.7); + transition: transform 0.3s cubic-bezier(0.9, 0, 0.3, 0.7), -webkit-transform 0.3s cubic-bezier(0.9, 0, 0.3, 0.7); } .ant-drawer-content-wrapper { position: fixed; @@ -8100,64 +8682,68 @@ li.ant-calendar-time-picker-select-option-disabled:hover { box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.15); } .ant-drawer.ant-drawer-open .ant-drawer-mask { - opacity: 0.3; height: 100%; + opacity: 0.3; + -webkit-transition: none; + transition: none; -webkit-animation: antdDrawerFadeIn 0.3s cubic-bezier(0.7, 0.3, 0.1, 1); animation: antdDrawerFadeIn 0.3s cubic-bezier(0.7, 0.3, 0.1, 1); - transition: none; } .ant-drawer-title { margin: 0; + color: rgba(0, 0, 0, 0.85); + font-weight: 500; font-size: 16px; line-height: 22px; - font-weight: 500; - color: rgba(0, 0, 0, 0.85); } .ant-drawer-content { position: relative; + z-index: 1; background-color: #fff; - border: 0; background-clip: padding-box; - z-index: 1; + border: 0; } .ant-drawer-close { - cursor: pointer; - border: 0; - background: transparent; position: absolute; - right: 0; top: 0; + right: 0; z-index: 10; - font-weight: 700; - line-height: 1; - text-decoration: none; - transition: color 0.3s; - color: rgba(0, 0, 0, 0.45); - outline: 0; - padding: 0; -} -.ant-drawer-close-x { display: block; + width: 56px; + height: 56px; + padding: 0; + color: rgba(0, 0, 0, 0.45); + font-weight: 700; + font-size: 16px; font-style: normal; + line-height: 56px; text-align: center; text-transform: none; + text-decoration: none; + background: transparent; + border: 0; + outline: 0; + cursor: pointer; + -webkit-transition: color 0.3s; + transition: color 0.3s; text-rendering: auto; - width: 56px; - height: 56px; - line-height: 56px; - font-size: 16px; } .ant-drawer-close:focus, .ant-drawer-close:hover { - color: #444; + color: rgba(0, 0, 0, 0.75); text-decoration: none; } .ant-drawer-header { + position: relative; padding: 16px 24px; - border-radius: 5px 5px 0 0; - background: #fff; color: rgba(0, 0, 0, 0.65); + background: #fff; border-bottom: 1px solid #e8e8e8; + border-radius: 5px 5px 0 0; +} +.ant-drawer-header-no-title { + color: rgba(0, 0, 0, 0.65); + background: #fff; } .ant-drawer-body { padding: 24px; @@ -8169,13 +8755,17 @@ li.ant-calendar-time-picker-select-option-disabled:hover { position: fixed; width: 100%; height: 0; - opacity: 0; background-color: rgba(0, 0, 0, 0.65); + opacity: 0; filter: alpha(opacity=50); + -webkit-transition: opacity 0.3s linear, height 0s ease 0.3s; transition: opacity 0.3s linear, height 0s ease 0.3s; } .ant-drawer-open { + -webkit-transition: -webkit-transform 0.3s cubic-bezier(0.7, 0.3, 0.1, 1); + transition: -webkit-transform 0.3s cubic-bezier(0.7, 0.3, 0.1, 1); transition: transform 0.3s cubic-bezier(0.7, 0.3, 0.1, 1); + transition: transform 0.3s cubic-bezier(0.7, 0.3, 0.1, 1), -webkit-transform 0.3s cubic-bezier(0.7, 0.3, 0.1, 1); } .ant-drawer-open-content { box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15); @@ -8197,29 +8787,30 @@ li.ant-calendar-time-picker-select-option-disabled:hover { } } .ant-dropdown { - font-family: "Chinese Quote", -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"; - font-size: 14px; - font-variant: tabular-nums; - line-height: 1.5; - color: rgba(0, 0, 0, 0.65); box-sizing: border-box; margin: 0; padding: 0; + color: rgba(0, 0, 0, 0.65); + font-size: 14px; + font-variant: tabular-nums; + line-height: 1.5; list-style: none; + font-feature-settings: 'tnum'; position: absolute; - left: -9999px; top: -9999px; + left: -9999px; z-index: 1050; display: block; } -.ant-dropdown:before { +.ant-dropdown::before { position: absolute; top: -7px; - left: -7px; right: 0; bottom: -7px; - content: ' '; + left: -7px; + z-index: -9999; opacity: 0.0001; + content: ' '; } .ant-dropdown-wrap { position: relative; @@ -8228,36 +8819,43 @@ li.ant-calendar-time-picker-select-option-disabled:hover { display: inline-block; font-size: 12px; font-size: 10px \9; - transform: scale(0.83333333) rotate(0deg); + -webkit-transform: scale(0.83333333) rotate(0deg); + transform: scale(0.83333333) rotate(0deg); } :root .ant-dropdown-wrap .ant-btn > .anticon-down { font-size: 12px; } -.ant-dropdown-wrap .anticon-down:before { +.ant-dropdown-wrap .anticon-down::before { + -webkit-transition: -webkit-transform 0.2s; + transition: -webkit-transform 0.2s; transition: transform 0.2s; + transition: transform 0.2s, -webkit-transform 0.2s; } -.ant-dropdown-wrap-open .anticon-down:before { - transform: rotate(180deg); +.ant-dropdown-wrap-open .anticon-down::before { + -webkit-transform: rotate(180deg); + transform: rotate(180deg); } .ant-dropdown-hidden, .ant-dropdown-menu-hidden { display: none; } .ant-dropdown-menu { - outline: none; position: relative; - list-style-type: none; - padding: 4px 0; margin: 0; + padding: 4px 0; text-align: left; + list-style-type: none; background-color: #fff; + background-clip: padding-box; border-radius: 5px; + outline: none; box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15); - background-clip: padding-box; + -webkit-transform: translate3d(0, 0, 0); } .ant-dropdown-menu-item-group-title { - color: rgba(0, 0, 0, 0.45); padding: 5px 12px; + color: rgba(0, 0, 0, 0.45); + -webkit-transition: all 0.3s; transition: all 0.3s; } .ant-dropdown-menu-submenu-popup { @@ -8265,20 +8863,22 @@ li.ant-calendar-time-picker-select-option-disabled:hover { z-index: 1050; } .ant-dropdown-menu-submenu-popup > .ant-dropdown-menu { - transform-origin: 0 0; + -webkit-transform-origin: 0 0; + transform-origin: 0 0; } .ant-dropdown-menu-item, .ant-dropdown-menu-submenu-title { - padding: 5px 12px; - margin: 0; clear: both; - font-size: 14px; - font-weight: normal; + margin: 0; + padding: 5px 12px; color: rgba(0, 0, 0, 0.65); + font-weight: normal; + font-size: 14px; + line-height: 22px; white-space: nowrap; cursor: pointer; + -webkit-transition: all 0.3s; transition: all 0.3s; - line-height: 22px; } .ant-dropdown-menu-item > .anticon:first-child, .ant-dropdown-menu-submenu-title > .anticon:first-child { @@ -8287,10 +8887,11 @@ li.ant-calendar-time-picker-select-option-disabled:hover { } .ant-dropdown-menu-item > a, .ant-dropdown-menu-submenu-title > a { - color: rgba(0, 0, 0, 0.65); display: block; - padding: 5px 12px; margin: -5px -12px; + padding: 5px 12px; + color: rgba(0, 0, 0, 0.65); + -webkit-transition: all 0.3s; transition: all 0.3s; } .ant-dropdown-menu-item > a:focus, @@ -8322,10 +8923,10 @@ li.ant-calendar-time-picker-select-option-disabled:hover { .ant-dropdown-menu-item-divider, .ant-dropdown-menu-submenu-title-divider { height: 1px; + margin: 4px 0; overflow: hidden; - background-color: #e8e8e8; line-height: 0; - margin: 4px 0; + background-color: #e8e8e8; } .ant-dropdown-menu-item .ant-dropdown-menu-submenu-arrow, .ant-dropdown-menu-submenu-title .ant-dropdown-menu-submenu-arrow { @@ -8334,12 +8935,13 @@ li.ant-calendar-time-picker-select-option-disabled:hover { } .ant-dropdown-menu-item .ant-dropdown-menu-submenu-arrow-icon, .ant-dropdown-menu-submenu-title .ant-dropdown-menu-submenu-arrow-icon { - font-style: normal; color: rgba(0, 0, 0, 0.45); + font-style: normal; display: inline-block; font-size: 12px; font-size: 10px \9; - transform: scale(0.83333333) rotate(0deg); + -webkit-transform: scale(0.83333333) rotate(0deg); + transform: scale(0.83333333) rotate(0deg); } :root .ant-dropdown-menu-item .ant-dropdown-menu-submenu-arrow-icon, :root .ant-dropdown-menu-submenu-title .ant-dropdown-menu-submenu-arrow-icon { @@ -8352,12 +8954,13 @@ li.ant-calendar-time-picker-select-option-disabled:hover { position: relative; } .ant-dropdown-menu-submenu-vertical > .ant-dropdown-menu { + position: absolute; top: 0; left: 100%; - position: absolute; min-width: 100%; margin-left: 4px; - transform-origin: 0 0; + -webkit-transform-origin: 0 0; + transform-origin: 0 0; } .ant-dropdown-menu-submenu.ant-dropdown-menu-submenu-disabled .ant-dropdown-menu-submenu-title, .ant-dropdown-menu-submenu.ant-dropdown-menu-submenu-disabled .ant-dropdown-menu-submenu-title .ant-dropdown-menu-submenu-arrow-icon { @@ -8400,7 +9003,8 @@ li.ant-calendar-time-picker-select-option-disabled:hover { display: inline-block; font-size: 12px; font-size: 10px \9; - transform: scale(0.83333333) rotate(0deg); + -webkit-transform: scale(0.83333333) rotate(0deg); + transform: scale(0.83333333) rotate(0deg); } :root .ant-dropdown-trigger > .anticon.anticon-down, :root .ant-dropdown-link > .anticon.anticon-down { @@ -8410,14 +9014,15 @@ li.ant-calendar-time-picker-select-option-disabled:hover { white-space: nowrap; } .ant-dropdown-button.ant-btn-group > .ant-btn:last-child:not(:first-child) { - padding-left: 8px; padding-right: 8px; + padding-left: 8px; } .ant-dropdown-button .anticon.anticon-down { display: inline-block; font-size: 12px; font-size: 10px \9; - transform: scale(0.83333333) rotate(0deg); + -webkit-transform: scale(0.83333333) rotate(0deg); + transform: scale(0.83333333) rotate(0deg); } :root .ant-dropdown-button .anticon.anticon-down { font-size: 12px; @@ -8431,9 +9036,9 @@ li.ant-calendar-time-picker-select-option-disabled:hover { .ant-dropdown-menu-dark .ant-dropdown-menu-item > a { color: rgba(255, 255, 255, 0.65); } -.ant-dropdown-menu-dark .ant-dropdown-menu-item .ant-dropdown-menu-submenu-arrow:after, -.ant-dropdown-menu-dark .ant-dropdown-menu-submenu-title .ant-dropdown-menu-submenu-arrow:after, -.ant-dropdown-menu-dark .ant-dropdown-menu-item > a .ant-dropdown-menu-submenu-arrow:after { +.ant-dropdown-menu-dark .ant-dropdown-menu-item .ant-dropdown-menu-submenu-arrow::after, +.ant-dropdown-menu-dark .ant-dropdown-menu-submenu-title .ant-dropdown-menu-submenu-arrow::after, +.ant-dropdown-menu-dark .ant-dropdown-menu-item > a .ant-dropdown-menu-submenu-arrow::after { color: rgba(255, 255, 255, 0.65); } .ant-dropdown-menu-dark .ant-dropdown-menu-item:hover, @@ -8445,28 +9050,62 @@ li.ant-calendar-time-picker-select-option-disabled:hover { .ant-dropdown-menu-dark .ant-dropdown-menu-item-selected, .ant-dropdown-menu-dark .ant-dropdown-menu-item-selected:hover, .ant-dropdown-menu-dark .ant-dropdown-menu-item-selected > a { - background: #E64448; color: #fff; + background: #E64448; } -.ant-form { - font-family: "Chinese Quote", -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"; +.ant-empty { + margin: 0 8px; font-size: 14px; - font-variant: tabular-nums; - line-height: 1.5; - color: rgba(0, 0, 0, 0.65); + line-height: 22px; + text-align: center; +} +.ant-empty-image { + height: 100px; + margin-bottom: 8px; +} +.ant-empty-image img { + height: 100%; +} +.ant-empty-description { + margin: 0; +} +.ant-empty-footer { + margin-top: 16px; +} +.ant-empty-small { + margin: 8px 0; +} +.ant-empty-small .ant-empty-image { + height: 35px; +} +.ant-empty-normal { + margin: 32px 0; +} +.ant-empty-normal .ant-empty-image { + height: 40px; +} +.ant-select-dropdown--multiple .ant-select-dropdown-menu-item .ant-empty-small { + margin-left: 32px; +} +.ant-form { box-sizing: border-box; margin: 0; padding: 0; + color: rgba(0, 0, 0, 0.65); + font-size: 14px; + font-variant: tabular-nums; + line-height: 1.5; list-style: none; + font-feature-settings: 'tnum'; } .ant-form legend { display: block; width: 100%; - padding: 0; margin-bottom: 20px; + padding: 0; + color: rgba(0, 0, 0, 0.45); font-size: 16px; line-height: inherit; - color: rgba(0, 0, 0, 0.45); border: 0; border-bottom: 1px solid #d9d9d9; } @@ -8501,20 +9140,20 @@ li.ant-calendar-time-picker-select-option-disabled:hover { .ant-form output { display: block; padding-top: 15px; + color: rgba(0, 0, 0, 0.65); font-size: 14px; line-height: 1.5; - color: rgba(0, 0, 0, 0.65); } -.ant-form-item-required:before { +.ant-form-item-required::before { display: inline-block; margin-right: 4px; - content: '*'; - font-family: SimSun; - line-height: 1; - font-size: 14px; color: #f5222d; + font-size: 14px; + font-family: SimSun, sans-serif; + line-height: 1; + content: '*'; } -.ant-form-hide-required-mark .ant-form-item-required:before { +.ant-form-hide-required-mark .ant-form-item-required::before { display: none; } input[type='radio'][disabled], @@ -8534,15 +9173,15 @@ input[type='checkbox'].disabled { cursor: not-allowed; } .ant-form-item { - font-family: "Chinese Quote", -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"; - font-size: 14px; - font-variant: tabular-nums; - line-height: 1.5; - color: rgba(0, 0, 0, 0.65); box-sizing: border-box; margin: 0; padding: 0; + color: rgba(0, 0, 0, 0.65); + font-size: 14px; + font-variant: tabular-nums; + line-height: 1.5; list-style: none; + font-feature-settings: 'tnum'; margin-bottom: 24px; vertical-align: top; } @@ -8550,28 +9189,28 @@ input[type='checkbox'].disabled { position: relative; } .ant-form-item label > .anticon { - vertical-align: top; font-size: 14px; + vertical-align: top; } .ant-form-item-control { - line-height: 39.9999px; position: relative; + line-height: 40px; zoom: 1; } -.ant-form-item-control:before, -.ant-form-item-control:after { +.ant-form-item-control::before, +.ant-form-item-control::after { content: ''; display: table; } -.ant-form-item-control:after { +.ant-form-item-control::after { clear: both; } -.ant-form-item-control:before, -.ant-form-item-control:after { +.ant-form-item-control::before, +.ant-form-item-control::after { content: ''; display: table; } -.ant-form-item-control:after { +.ant-form-item-control::after { clear: both; } .ant-form-item-children { @@ -8581,35 +9220,40 @@ input[type='checkbox'].disabled { margin-bottom: 5px; } .ant-form-item-label { - text-align: right; - vertical-align: middle; - line-height: 39.9999px; display: inline-block; overflow: hidden; + line-height: 39.9999px; white-space: nowrap; + text-align: right; + vertical-align: middle; } .ant-form-item-label label { color: rgba(0, 0, 0, 0.85); } -.ant-form-item-label label:after { +.ant-form-item-label label::after { content: ':'; - margin: 0 8px 0 2px; position: relative; top: -0.5px; + margin: 0 8px 0 2px; } .ant-form-item .ant-switch { margin: 2px 0 4px; } -.ant-form-item-no-colon .ant-form-item-label label:after { +.ant-form-item-no-colon .ant-form-item-label label::after { content: ' '; } .ant-form-explain, .ant-form-extra { + clear: both; + min-height: 22px; + margin-top: -2px; color: rgba(0, 0, 0, 0.45); - line-height: 1.524; + line-height: 1.5; + -webkit-transition: color 0.3s cubic-bezier(0.215, 0.61, 0.355, 1); transition: color 0.3s cubic-bezier(0.215, 0.61, 0.355, 1); - margin-top: -2px; - clear: both; +} +.ant-form-explain { + margin-bottom: -1px; } .ant-form-extra { padding-top: 4px; @@ -8665,10 +9309,10 @@ form input[type='checkbox'] { form .ant-radio-inline, form .ant-checkbox-inline { display: inline-block; - vertical-align: middle; + margin-left: 8px; font-weight: normal; + vertical-align: middle; cursor: pointer; - margin-left: 8px; } form .ant-radio-inline:first-child, form .ant-checkbox-inline:first-child { @@ -8698,26 +9342,26 @@ form .ant-input-group .ant-cascader-picker { } form :not(.ant-input-group-wrapper) > .ant-input-group, form .ant-input-group-wrapper { - display: inline-block; - vertical-align: middle; position: relative; top: -1px; + display: inline-block; + vertical-align: middle; } .ant-input-group-wrap .ant-select-selection { - border-bottom-left-radius: 0; border-top-left-radius: 0; + border-bottom-left-radius: 0; } .ant-input-group-wrap .ant-select-selection:hover { border-color: #d9d9d9; } .ant-input-group-wrap .ant-select-selection--single { - margin-left: -1px; height: 40px; - background-color: #eee; + margin-left: -1px; + background-color: rgba(0, 0, 0, 0.07); } .ant-input-group-wrap .ant-select-selection--single .ant-select-selection__rendered { - padding-left: 8px; padding-right: 25px; + padding-left: 8px; line-height: 30px; } .ant-input-group-wrap .ant-select-open .ant-select-selection { @@ -8727,15 +9371,16 @@ form .ant-input-group-wrapper { .ant-form-vertical .ant-form-item-label, .ant-col-24.ant-form-item-label, .ant-col-xl-24.ant-form-item-label { - padding: 0 0 8px; - margin: 0; display: block; - text-align: left; + margin: 0; + padding: 0 0 8px; line-height: 1.5; + white-space: initial; + text-align: left; } -.ant-form-vertical .ant-form-item-label label:after, -.ant-col-24.ant-form-item-label label:after, -.ant-col-xl-24.ant-form-item-label label:after { +.ant-form-vertical .ant-form-item-label label::after, +.ant-col-24.ant-form-item-label label::after, +.ant-col-xl-24.ant-form-item-label label::after { display: none; } .ant-form-vertical .ant-form-item { @@ -8744,7 +9389,10 @@ form .ant-input-group-wrapper { .ant-form-vertical .ant-form-item-control { line-height: 1.5; } -.ant-form-vertical .ant-form-explain, +.ant-form-vertical .ant-form-explain { + margin-top: 2px; + margin-bottom: -5px; +} .ant-form-vertical .ant-form-extra { margin-top: 2px; margin-bottom: -4px; @@ -8756,71 +9404,77 @@ form .ant-input-group-wrapper { width: 100%; } .ant-form-item-label { - padding: 0 0 8px; - margin: 0; display: block; - text-align: left; + margin: 0; + padding: 0 0 8px; line-height: 1.5; + white-space: initial; + text-align: left; } - .ant-form-item-label label:after { + .ant-form-item-label label::after { display: none; } .ant-col-xs-24.ant-form-item-label { - padding: 0 0 8px; - margin: 0; display: block; - text-align: left; + margin: 0; + padding: 0 0 8px; line-height: 1.5; + white-space: initial; + text-align: left; } - .ant-col-xs-24.ant-form-item-label label:after { + .ant-col-xs-24.ant-form-item-label label::after { display: none; } } @media (max-width: 767px) { .ant-col-sm-24.ant-form-item-label { - padding: 0 0 8px; - margin: 0; display: block; - text-align: left; + margin: 0; + padding: 0 0 8px; line-height: 1.5; + white-space: initial; + text-align: left; } - .ant-col-sm-24.ant-form-item-label label:after { + .ant-col-sm-24.ant-form-item-label label::after { display: none; } } @media (max-width: 991px) { .ant-col-md-24.ant-form-item-label { - padding: 0 0 8px; - margin: 0; display: block; - text-align: left; + margin: 0; + padding: 0 0 8px; line-height: 1.5; + white-space: initial; + text-align: left; } - .ant-col-md-24.ant-form-item-label label:after { + .ant-col-md-24.ant-form-item-label label::after { display: none; } } @media (max-width: 1199px) { .ant-col-lg-24.ant-form-item-label { - padding: 0 0 8px; - margin: 0; display: block; - text-align: left; + margin: 0; + padding: 0 0 8px; line-height: 1.5; + white-space: initial; + text-align: left; } - .ant-col-lg-24.ant-form-item-label label:after { + .ant-col-lg-24.ant-form-item-label label::after { display: none; } } @media (max-width: 1599px) { .ant-col-xl-24.ant-form-item-label { - padding: 0 0 8px; - margin: 0; display: block; - text-align: left; + margin: 0; + padding: 0 0 8px; line-height: 1.5; + white-space: initial; + text-align: left; } - .ant-col-xl-24.ant-form-item-label label:after { + .ant-col-xl-24.ant-form-item-label label::after { display: none; } } @@ -8850,17 +9504,17 @@ form .ant-input-group-wrapper { position: absolute; top: 50%; right: 0; - visibility: visible; - pointer-events: none; + z-index: 1; width: 32px; height: 20px; - line-height: 20px; margin-top: -10px; - text-align: center; font-size: 14px; + line-height: 20px; + text-align: center; + visibility: visible; -webkit-animation: zoomIn 0.3s cubic-bezier(0.12, 0.4, 0.29, 1.46); animation: zoomIn 0.3s cubic-bezier(0.12, 0.4, 0.29, 1.46); - z-index: 1; + pointer-events: none; } .has-success.has-feedback .ant-form-item-children-icon svg, .has-warning.has-feedback .ant-form-item-children-icon svg, @@ -8874,9 +9528,9 @@ form .ant-input-group-wrapper { margin: auto; } .has-success.has-feedback .ant-form-item-children-icon { + color: #52c41a; -webkit-animation-name: diffZoomIn1 !important; animation-name: diffZoomIn1 !important; - color: #52c41a; } .has-warning .ant-form-explain, .has-warning .ant-form-split { @@ -8888,18 +9542,18 @@ form .ant-input-group-wrapper { } .has-warning .ant-input:focus { border-color: #ffc53d; + border-right-width: 1px !important; outline: 0; box-shadow: 0 0 0 2px rgba(250, 173, 20, 0.2); - border-right-width: 1px !important; } .has-warning .ant-input:not([disabled]):hover { border-color: #faad14; } .has-warning .ant-calendar-picker-open .ant-calendar-picker-input { border-color: #ffc53d; + border-right-width: 1px !important; outline: 0; box-shadow: 0 0 0 2px rgba(250, 173, 20, 0.2); - border-right-width: 1px !important; } .has-warning .ant-input-affix-wrapper .ant-input, .has-warning .ant-input-affix-wrapper .ant-input:hover { @@ -8907,9 +9561,9 @@ form .ant-input-group-wrapper { } .has-warning .ant-input-affix-wrapper .ant-input:focus { border-color: #ffc53d; + border-right-width: 1px !important; outline: 0; box-shadow: 0 0 0 2px rgba(250, 173, 20, 0.2); - border-right-width: 1px !important; } .has-warning .ant-input-affix-wrapper:hover .ant-input:not(.ant-input-disabled) { border-color: #faad14; @@ -8919,8 +9573,8 @@ form .ant-input-group-wrapper { } .has-warning .ant-input-group-addon { color: #faad14; - border-color: #faad14; background-color: #fff; + border-color: #faad14; } .has-warning .has-feedback { color: #faad14; @@ -8939,13 +9593,13 @@ form .ant-input-group-wrapper { .has-warning .ant-select-open .ant-select-selection, .has-warning .ant-select-focused .ant-select-selection { border-color: #ffc53d; + border-right-width: 1px !important; outline: 0; box-shadow: 0 0 0 2px rgba(250, 173, 20, 0.2); - border-right-width: 1px !important; } -.has-warning .ant-calendar-picker-icon:after, -.has-warning .ant-time-picker-icon:after, -.has-warning .ant-picker-icon:after, +.has-warning .ant-calendar-picker-icon::after, +.has-warning .ant-time-picker-icon::after, +.has-warning .ant-picker-icon::after, .has-warning .ant-select-arrow, .has-warning .ant-cascader-picker-arrow { color: #faad14; @@ -8959,9 +9613,9 @@ form .ant-input-group-wrapper { .has-warning .ant-input-number:focus, .has-warning .ant-time-picker-input:focus { border-color: #ffc53d; + border-right-width: 1px !important; outline: 0; box-shadow: 0 0 0 2px rgba(250, 173, 20, 0.2); - border-right-width: 1px !important; } .has-warning .ant-input-number:not([disabled]):hover, .has-warning .ant-time-picker-input:not([disabled]):hover { @@ -8969,9 +9623,9 @@ form .ant-input-group-wrapper { } .has-warning .ant-cascader-picker:focus .ant-cascader-input { border-color: #ffc53d; + border-right-width: 1px !important; outline: 0; box-shadow: 0 0 0 2px rgba(250, 173, 20, 0.2); - border-right-width: 1px !important; } .has-error .ant-form-explain, .has-error .ant-form-split { @@ -8983,18 +9637,18 @@ form .ant-input-group-wrapper { } .has-error .ant-input:focus { border-color: #ff4d4f; + border-right-width: 1px !important; outline: 0; box-shadow: 0 0 0 2px rgba(245, 34, 45, 0.2); - border-right-width: 1px !important; } .has-error .ant-input:not([disabled]):hover { border-color: #f5222d; } .has-error .ant-calendar-picker-open .ant-calendar-picker-input { border-color: #ff4d4f; + border-right-width: 1px !important; outline: 0; box-shadow: 0 0 0 2px rgba(245, 34, 45, 0.2); - border-right-width: 1px !important; } .has-error .ant-input-affix-wrapper .ant-input, .has-error .ant-input-affix-wrapper .ant-input:hover { @@ -9002,9 +9656,9 @@ form .ant-input-group-wrapper { } .has-error .ant-input-affix-wrapper .ant-input:focus { border-color: #ff4d4f; + border-right-width: 1px !important; outline: 0; box-shadow: 0 0 0 2px rgba(245, 34, 45, 0.2); - border-right-width: 1px !important; } .has-error .ant-input-affix-wrapper:hover .ant-input:not(.ant-input-disabled) { border-color: #f5222d; @@ -9014,8 +9668,8 @@ form .ant-input-group-wrapper { } .has-error .ant-input-group-addon { color: #f5222d; - border-color: #f5222d; background-color: #fff; + border-color: #f5222d; } .has-error .has-feedback { color: #f5222d; @@ -9034,9 +9688,9 @@ form .ant-input-group-wrapper { .has-error .ant-select-open .ant-select-selection, .has-error .ant-select-focused .ant-select-selection { border-color: #ff4d4f; + border-right-width: 1px !important; outline: 0; box-shadow: 0 0 0 2px rgba(245, 34, 45, 0.2); - border-right-width: 1px !important; } .has-error .ant-select.ant-select-auto-complete .ant-input:focus { border-color: #f5222d; @@ -9045,9 +9699,9 @@ form .ant-input-group-wrapper { border-color: transparent; box-shadow: none; } -.has-error .ant-calendar-picker-icon:after, -.has-error .ant-time-picker-icon:after, -.has-error .ant-picker-icon:after, +.has-error .ant-calendar-picker-icon::after, +.has-error .ant-time-picker-icon::after, +.has-error .ant-picker-icon::after, .has-error .ant-select-arrow, .has-error .ant-cascader-picker-arrow { color: #f5222d; @@ -9061,9 +9715,9 @@ form .ant-input-group-wrapper { .has-error .ant-input-number:focus, .has-error .ant-time-picker-input:focus { border-color: #ff4d4f; + border-right-width: 1px !important; outline: 0; box-shadow: 0 0 0 2px rgba(245, 34, 45, 0.2); - border-right-width: 1px !important; } .has-error .ant-input-number:not([disabled]):hover, .has-error .ant-time-picker-input:not([disabled]):hover { @@ -9076,15 +9730,15 @@ form .ant-input-group-wrapper { .has-error .ant-mention-wrapper.ant-mention-active:not([disabled]) .ant-mention-editor, .has-error .ant-mention-wrapper .ant-mention-editor:not([disabled]):focus { border-color: #ff4d4f; + border-right-width: 1px !important; outline: 0; box-shadow: 0 0 0 2px rgba(245, 34, 45, 0.2); - border-right-width: 1px !important; } .has-error .ant-cascader-picker:focus .ant-cascader-input { border-color: #ff4d4f; + border-right-width: 1px !important; outline: 0; box-shadow: 0 0 0 2px rgba(245, 34, 45, 0.2); - border-right-width: 1px !important; } .has-error .ant-transfer-list { border-color: #f5222d; @@ -9098,9 +9752,9 @@ form .ant-input-group-wrapper { } .has-error .ant-transfer-list-search:not([disabled]):focus { border-color: #f2726f; + border-right-width: 1px !important; outline: 0; box-shadow: 0 0 0 2px rgba(230, 68, 72, 0.2); - border-right-width: 1px !important; } .is-validating.has-feedback .ant-form-item-children-icon { display: inline-block; @@ -9155,140 +9809,169 @@ form .ant-input-group-wrapper { } @-webkit-keyframes antShowHelpIn { 0% { + -webkit-transform: translateY(-5px); + transform: translateY(-5px); opacity: 0; - transform: translateY(-5px); } 100% { + -webkit-transform: translateY(0); + transform: translateY(0); opacity: 1; - transform: translateY(0); } } @keyframes antShowHelpIn { 0% { + -webkit-transform: translateY(-5px); + transform: translateY(-5px); opacity: 0; - transform: translateY(-5px); } 100% { + -webkit-transform: translateY(0); + transform: translateY(0); opacity: 1; - transform: translateY(0); } } @-webkit-keyframes antShowHelpOut { to { + -webkit-transform: translateY(-5px); + transform: translateY(-5px); opacity: 0; - transform: translateY(-5px); } } @keyframes antShowHelpOut { to { + -webkit-transform: translateY(-5px); + transform: translateY(-5px); opacity: 0; - transform: translateY(-5px); } } @-webkit-keyframes diffZoomIn1 { 0% { - transform: scale(0); + -webkit-transform: scale(0); + transform: scale(0); } 100% { - transform: scale(1); + -webkit-transform: scale(1); + transform: scale(1); } } @keyframes diffZoomIn1 { 0% { - transform: scale(0); + -webkit-transform: scale(0); + transform: scale(0); } 100% { - transform: scale(1); + -webkit-transform: scale(1); + transform: scale(1); } } @-webkit-keyframes diffZoomIn2 { 0% { - transform: scale(0); + -webkit-transform: scale(0); + transform: scale(0); } 100% { - transform: scale(1); + -webkit-transform: scale(1); + transform: scale(1); } } @keyframes diffZoomIn2 { 0% { - transform: scale(0); + -webkit-transform: scale(0); + transform: scale(0); } 100% { - transform: scale(1); + -webkit-transform: scale(1); + transform: scale(1); } } @-webkit-keyframes diffZoomIn3 { 0% { - transform: scale(0); + -webkit-transform: scale(0); + transform: scale(0); } 100% { - transform: scale(1); + -webkit-transform: scale(1); + transform: scale(1); } } @keyframes diffZoomIn3 { 0% { - transform: scale(0); + -webkit-transform: scale(0); + transform: scale(0); } 100% { - transform: scale(1); + -webkit-transform: scale(1); + transform: scale(1); } } .ant-row { position: relative; - margin-left: 0; - margin-right: 0; height: auto; + margin-right: 0; + margin-left: 0; zoom: 1; display: block; box-sizing: border-box; } -.ant-row:before, -.ant-row:after { +.ant-row::before, +.ant-row::after { content: ''; display: table; } -.ant-row:after { +.ant-row::after { clear: both; } -.ant-row:before, -.ant-row:after { +.ant-row::before, +.ant-row::after { content: ''; display: table; } -.ant-row:after { +.ant-row::after { clear: both; } .ant-row-flex { + display: -webkit-box; display: flex; - flex-flow: row wrap; + -webkit-box-orient: horizontal; + -webkit-box-direction: normal; + flex-flow: row wrap; } -.ant-row-flex:before, -.ant-row-flex:after { +.ant-row-flex::before, +.ant-row-flex::after { + display: -webkit-box; display: flex; } .ant-row-flex-start { - justify-content: flex-start; + -webkit-box-pack: start; + justify-content: flex-start; } .ant-row-flex-center { - justify-content: center; + -webkit-box-pack: center; + justify-content: center; } .ant-row-flex-end { - justify-content: flex-end; + -webkit-box-pack: end; + justify-content: flex-end; } .ant-row-flex-space-between { - justify-content: space-between; + -webkit-box-pack: justify; + justify-content: space-between; } .ant-row-flex-space-around { justify-content: space-around; } .ant-row-flex-top { - align-items: flex-start; + -webkit-box-align: start; + align-items: flex-start; } .ant-row-flex-middle { - align-items: center; + -webkit-box-align: center; + align-items: center; } .ant-row-flex-bottom { - align-items: flex-end; + -webkit-box-align: end; + align-items: flex-end; } .ant-col { position: relative; @@ -9416,8 +10099,8 @@ form .ant-input-group-wrapper { .ant-col-lg-24 { position: relative; min-height: 1px; - padding-left: 0; padding-right: 0; + padding-left: 0; } .ant-col-1, .ant-col-2, @@ -9443,8 +10126,9 @@ form .ant-input-group-wrapper { .ant-col-22, .ant-col-23, .ant-col-24 { + -webkit-box-flex: 0; + flex: 0 0 auto; float: left; - flex: 0 0 auto; } .ant-col-24 { display: block; @@ -9461,7 +10145,8 @@ form .ant-input-group-wrapper { margin-left: 100%; } .ant-col-order-24 { - order: 24; + -webkit-box-ordinal-group: 25; + order: 24; } .ant-col-23 { display: block; @@ -9478,7 +10163,8 @@ form .ant-input-group-wrapper { margin-left: 95.83333333%; } .ant-col-order-23 { - order: 23; + -webkit-box-ordinal-group: 24; + order: 23; } .ant-col-22 { display: block; @@ -9495,7 +10181,8 @@ form .ant-input-group-wrapper { margin-left: 91.66666667%; } .ant-col-order-22 { - order: 22; + -webkit-box-ordinal-group: 23; + order: 22; } .ant-col-21 { display: block; @@ -9512,7 +10199,8 @@ form .ant-input-group-wrapper { margin-left: 87.5%; } .ant-col-order-21 { - order: 21; + -webkit-box-ordinal-group: 22; + order: 21; } .ant-col-20 { display: block; @@ -9529,7 +10217,8 @@ form .ant-input-group-wrapper { margin-left: 83.33333333%; } .ant-col-order-20 { - order: 20; + -webkit-box-ordinal-group: 21; + order: 20; } .ant-col-19 { display: block; @@ -9546,7 +10235,8 @@ form .ant-input-group-wrapper { margin-left: 79.16666667%; } .ant-col-order-19 { - order: 19; + -webkit-box-ordinal-group: 20; + order: 19; } .ant-col-18 { display: block; @@ -9563,7 +10253,8 @@ form .ant-input-group-wrapper { margin-left: 75%; } .ant-col-order-18 { - order: 18; + -webkit-box-ordinal-group: 19; + order: 18; } .ant-col-17 { display: block; @@ -9580,7 +10271,8 @@ form .ant-input-group-wrapper { margin-left: 70.83333333%; } .ant-col-order-17 { - order: 17; + -webkit-box-ordinal-group: 18; + order: 17; } .ant-col-16 { display: block; @@ -9597,7 +10289,8 @@ form .ant-input-group-wrapper { margin-left: 66.66666667%; } .ant-col-order-16 { - order: 16; + -webkit-box-ordinal-group: 17; + order: 16; } .ant-col-15 { display: block; @@ -9614,7 +10307,8 @@ form .ant-input-group-wrapper { margin-left: 62.5%; } .ant-col-order-15 { - order: 15; + -webkit-box-ordinal-group: 16; + order: 15; } .ant-col-14 { display: block; @@ -9631,7 +10325,8 @@ form .ant-input-group-wrapper { margin-left: 58.33333333%; } .ant-col-order-14 { - order: 14; + -webkit-box-ordinal-group: 15; + order: 14; } .ant-col-13 { display: block; @@ -9648,7 +10343,8 @@ form .ant-input-group-wrapper { margin-left: 54.16666667%; } .ant-col-order-13 { - order: 13; + -webkit-box-ordinal-group: 14; + order: 13; } .ant-col-12 { display: block; @@ -9665,7 +10361,8 @@ form .ant-input-group-wrapper { margin-left: 50%; } .ant-col-order-12 { - order: 12; + -webkit-box-ordinal-group: 13; + order: 12; } .ant-col-11 { display: block; @@ -9682,7 +10379,8 @@ form .ant-input-group-wrapper { margin-left: 45.83333333%; } .ant-col-order-11 { - order: 11; + -webkit-box-ordinal-group: 12; + order: 11; } .ant-col-10 { display: block; @@ -9699,7 +10397,8 @@ form .ant-input-group-wrapper { margin-left: 41.66666667%; } .ant-col-order-10 { - order: 10; + -webkit-box-ordinal-group: 11; + order: 10; } .ant-col-9 { display: block; @@ -9716,7 +10415,8 @@ form .ant-input-group-wrapper { margin-left: 37.5%; } .ant-col-order-9 { - order: 9; + -webkit-box-ordinal-group: 10; + order: 9; } .ant-col-8 { display: block; @@ -9733,7 +10433,8 @@ form .ant-input-group-wrapper { margin-left: 33.33333333%; } .ant-col-order-8 { - order: 8; + -webkit-box-ordinal-group: 9; + order: 8; } .ant-col-7 { display: block; @@ -9750,7 +10451,8 @@ form .ant-input-group-wrapper { margin-left: 29.16666667%; } .ant-col-order-7 { - order: 7; + -webkit-box-ordinal-group: 8; + order: 7; } .ant-col-6 { display: block; @@ -9767,7 +10469,8 @@ form .ant-input-group-wrapper { margin-left: 25%; } .ant-col-order-6 { - order: 6; + -webkit-box-ordinal-group: 7; + order: 6; } .ant-col-5 { display: block; @@ -9784,7 +10487,8 @@ form .ant-input-group-wrapper { margin-left: 20.83333333%; } .ant-col-order-5 { - order: 5; + -webkit-box-ordinal-group: 6; + order: 5; } .ant-col-4 { display: block; @@ -9801,7 +10505,8 @@ form .ant-input-group-wrapper { margin-left: 16.66666667%; } .ant-col-order-4 { - order: 4; + -webkit-box-ordinal-group: 5; + order: 4; } .ant-col-3 { display: block; @@ -9818,7 +10523,8 @@ form .ant-input-group-wrapper { margin-left: 12.5%; } .ant-col-order-3 { - order: 3; + -webkit-box-ordinal-group: 4; + order: 3; } .ant-col-2 { display: block; @@ -9835,7 +10541,8 @@ form .ant-input-group-wrapper { margin-left: 8.33333333%; } .ant-col-order-2 { - order: 2; + -webkit-box-ordinal-group: 3; + order: 2; } .ant-col-1 { display: block; @@ -9852,7 +10559,8 @@ form .ant-input-group-wrapper { margin-left: 4.16666667%; } .ant-col-order-1 { - order: 1; + -webkit-box-ordinal-group: 2; + order: 1; } .ant-col-0 { display: none; @@ -9873,7 +10581,8 @@ form .ant-input-group-wrapper { margin-left: 0; } .ant-col-order-0 { - order: 0; + -webkit-box-ordinal-group: 1; + order: 0; } .ant-col-xs-1, .ant-col-xs-2, @@ -9899,8 +10608,9 @@ form .ant-input-group-wrapper { .ant-col-xs-22, .ant-col-xs-23, .ant-col-xs-24 { + -webkit-box-flex: 0; + flex: 0 0 auto; float: left; - flex: 0 0 auto; } .ant-col-xs-24 { display: block; @@ -9917,7 +10627,8 @@ form .ant-input-group-wrapper { margin-left: 100%; } .ant-col-xs-order-24 { - order: 24; + -webkit-box-ordinal-group: 25; + order: 24; } .ant-col-xs-23 { display: block; @@ -9934,7 +10645,8 @@ form .ant-input-group-wrapper { margin-left: 95.83333333%; } .ant-col-xs-order-23 { - order: 23; + -webkit-box-ordinal-group: 24; + order: 23; } .ant-col-xs-22 { display: block; @@ -9951,7 +10663,8 @@ form .ant-input-group-wrapper { margin-left: 91.66666667%; } .ant-col-xs-order-22 { - order: 22; + -webkit-box-ordinal-group: 23; + order: 22; } .ant-col-xs-21 { display: block; @@ -9968,7 +10681,8 @@ form .ant-input-group-wrapper { margin-left: 87.5%; } .ant-col-xs-order-21 { - order: 21; + -webkit-box-ordinal-group: 22; + order: 21; } .ant-col-xs-20 { display: block; @@ -9985,7 +10699,8 @@ form .ant-input-group-wrapper { margin-left: 83.33333333%; } .ant-col-xs-order-20 { - order: 20; + -webkit-box-ordinal-group: 21; + order: 20; } .ant-col-xs-19 { display: block; @@ -10002,7 +10717,8 @@ form .ant-input-group-wrapper { margin-left: 79.16666667%; } .ant-col-xs-order-19 { - order: 19; + -webkit-box-ordinal-group: 20; + order: 19; } .ant-col-xs-18 { display: block; @@ -10019,7 +10735,8 @@ form .ant-input-group-wrapper { margin-left: 75%; } .ant-col-xs-order-18 { - order: 18; + -webkit-box-ordinal-group: 19; + order: 18; } .ant-col-xs-17 { display: block; @@ -10036,7 +10753,8 @@ form .ant-input-group-wrapper { margin-left: 70.83333333%; } .ant-col-xs-order-17 { - order: 17; + -webkit-box-ordinal-group: 18; + order: 17; } .ant-col-xs-16 { display: block; @@ -10053,7 +10771,8 @@ form .ant-input-group-wrapper { margin-left: 66.66666667%; } .ant-col-xs-order-16 { - order: 16; + -webkit-box-ordinal-group: 17; + order: 16; } .ant-col-xs-15 { display: block; @@ -10070,7 +10789,8 @@ form .ant-input-group-wrapper { margin-left: 62.5%; } .ant-col-xs-order-15 { - order: 15; + -webkit-box-ordinal-group: 16; + order: 15; } .ant-col-xs-14 { display: block; @@ -10087,7 +10807,8 @@ form .ant-input-group-wrapper { margin-left: 58.33333333%; } .ant-col-xs-order-14 { - order: 14; + -webkit-box-ordinal-group: 15; + order: 14; } .ant-col-xs-13 { display: block; @@ -10104,7 +10825,8 @@ form .ant-input-group-wrapper { margin-left: 54.16666667%; } .ant-col-xs-order-13 { - order: 13; + -webkit-box-ordinal-group: 14; + order: 13; } .ant-col-xs-12 { display: block; @@ -10121,7 +10843,8 @@ form .ant-input-group-wrapper { margin-left: 50%; } .ant-col-xs-order-12 { - order: 12; + -webkit-box-ordinal-group: 13; + order: 12; } .ant-col-xs-11 { display: block; @@ -10138,7 +10861,8 @@ form .ant-input-group-wrapper { margin-left: 45.83333333%; } .ant-col-xs-order-11 { - order: 11; + -webkit-box-ordinal-group: 12; + order: 11; } .ant-col-xs-10 { display: block; @@ -10155,7 +10879,8 @@ form .ant-input-group-wrapper { margin-left: 41.66666667%; } .ant-col-xs-order-10 { - order: 10; + -webkit-box-ordinal-group: 11; + order: 10; } .ant-col-xs-9 { display: block; @@ -10172,7 +10897,8 @@ form .ant-input-group-wrapper { margin-left: 37.5%; } .ant-col-xs-order-9 { - order: 9; + -webkit-box-ordinal-group: 10; + order: 9; } .ant-col-xs-8 { display: block; @@ -10189,7 +10915,8 @@ form .ant-input-group-wrapper { margin-left: 33.33333333%; } .ant-col-xs-order-8 { - order: 8; + -webkit-box-ordinal-group: 9; + order: 8; } .ant-col-xs-7 { display: block; @@ -10206,7 +10933,8 @@ form .ant-input-group-wrapper { margin-left: 29.16666667%; } .ant-col-xs-order-7 { - order: 7; + -webkit-box-ordinal-group: 8; + order: 7; } .ant-col-xs-6 { display: block; @@ -10223,7 +10951,8 @@ form .ant-input-group-wrapper { margin-left: 25%; } .ant-col-xs-order-6 { - order: 6; + -webkit-box-ordinal-group: 7; + order: 6; } .ant-col-xs-5 { display: block; @@ -10240,7 +10969,8 @@ form .ant-input-group-wrapper { margin-left: 20.83333333%; } .ant-col-xs-order-5 { - order: 5; + -webkit-box-ordinal-group: 6; + order: 5; } .ant-col-xs-4 { display: block; @@ -10257,7 +10987,8 @@ form .ant-input-group-wrapper { margin-left: 16.66666667%; } .ant-col-xs-order-4 { - order: 4; + -webkit-box-ordinal-group: 5; + order: 4; } .ant-col-xs-3 { display: block; @@ -10274,7 +11005,8 @@ form .ant-input-group-wrapper { margin-left: 12.5%; } .ant-col-xs-order-3 { - order: 3; + -webkit-box-ordinal-group: 4; + order: 3; } .ant-col-xs-2 { display: block; @@ -10291,7 +11023,8 @@ form .ant-input-group-wrapper { margin-left: 8.33333333%; } .ant-col-xs-order-2 { - order: 2; + -webkit-box-ordinal-group: 3; + order: 2; } .ant-col-xs-1 { display: block; @@ -10308,7 +11041,8 @@ form .ant-input-group-wrapper { margin-left: 4.16666667%; } .ant-col-xs-order-1 { - order: 1; + -webkit-box-ordinal-group: 2; + order: 1; } .ant-col-xs-0 { display: none; @@ -10329,7 +11063,8 @@ form .ant-input-group-wrapper { margin-left: 0; } .ant-col-xs-order-0 { - order: 0; + -webkit-box-ordinal-group: 1; + order: 0; } @media (min-width: 576px) { .ant-col-sm-1, @@ -10356,8 +11091,9 @@ form .ant-input-group-wrapper { .ant-col-sm-22, .ant-col-sm-23, .ant-col-sm-24 { + -webkit-box-flex: 0; + flex: 0 0 auto; float: left; - flex: 0 0 auto; } .ant-col-sm-24 { display: block; @@ -10374,7 +11110,8 @@ form .ant-input-group-wrapper { margin-left: 100%; } .ant-col-sm-order-24 { - order: 24; + -webkit-box-ordinal-group: 25; + order: 24; } .ant-col-sm-23 { display: block; @@ -10391,7 +11128,8 @@ form .ant-input-group-wrapper { margin-left: 95.83333333%; } .ant-col-sm-order-23 { - order: 23; + -webkit-box-ordinal-group: 24; + order: 23; } .ant-col-sm-22 { display: block; @@ -10408,7 +11146,8 @@ form .ant-input-group-wrapper { margin-left: 91.66666667%; } .ant-col-sm-order-22 { - order: 22; + -webkit-box-ordinal-group: 23; + order: 22; } .ant-col-sm-21 { display: block; @@ -10425,7 +11164,8 @@ form .ant-input-group-wrapper { margin-left: 87.5%; } .ant-col-sm-order-21 { - order: 21; + -webkit-box-ordinal-group: 22; + order: 21; } .ant-col-sm-20 { display: block; @@ -10442,7 +11182,8 @@ form .ant-input-group-wrapper { margin-left: 83.33333333%; } .ant-col-sm-order-20 { - order: 20; + -webkit-box-ordinal-group: 21; + order: 20; } .ant-col-sm-19 { display: block; @@ -10459,7 +11200,8 @@ form .ant-input-group-wrapper { margin-left: 79.16666667%; } .ant-col-sm-order-19 { - order: 19; + -webkit-box-ordinal-group: 20; + order: 19; } .ant-col-sm-18 { display: block; @@ -10476,7 +11218,8 @@ form .ant-input-group-wrapper { margin-left: 75%; } .ant-col-sm-order-18 { - order: 18; + -webkit-box-ordinal-group: 19; + order: 18; } .ant-col-sm-17 { display: block; @@ -10493,7 +11236,8 @@ form .ant-input-group-wrapper { margin-left: 70.83333333%; } .ant-col-sm-order-17 { - order: 17; + -webkit-box-ordinal-group: 18; + order: 17; } .ant-col-sm-16 { display: block; @@ -10510,7 +11254,8 @@ form .ant-input-group-wrapper { margin-left: 66.66666667%; } .ant-col-sm-order-16 { - order: 16; + -webkit-box-ordinal-group: 17; + order: 16; } .ant-col-sm-15 { display: block; @@ -10527,7 +11272,8 @@ form .ant-input-group-wrapper { margin-left: 62.5%; } .ant-col-sm-order-15 { - order: 15; + -webkit-box-ordinal-group: 16; + order: 15; } .ant-col-sm-14 { display: block; @@ -10544,7 +11290,8 @@ form .ant-input-group-wrapper { margin-left: 58.33333333%; } .ant-col-sm-order-14 { - order: 14; + -webkit-box-ordinal-group: 15; + order: 14; } .ant-col-sm-13 { display: block; @@ -10561,7 +11308,8 @@ form .ant-input-group-wrapper { margin-left: 54.16666667%; } .ant-col-sm-order-13 { - order: 13; + -webkit-box-ordinal-group: 14; + order: 13; } .ant-col-sm-12 { display: block; @@ -10578,7 +11326,8 @@ form .ant-input-group-wrapper { margin-left: 50%; } .ant-col-sm-order-12 { - order: 12; + -webkit-box-ordinal-group: 13; + order: 12; } .ant-col-sm-11 { display: block; @@ -10595,7 +11344,8 @@ form .ant-input-group-wrapper { margin-left: 45.83333333%; } .ant-col-sm-order-11 { - order: 11; + -webkit-box-ordinal-group: 12; + order: 11; } .ant-col-sm-10 { display: block; @@ -10612,7 +11362,8 @@ form .ant-input-group-wrapper { margin-left: 41.66666667%; } .ant-col-sm-order-10 { - order: 10; + -webkit-box-ordinal-group: 11; + order: 10; } .ant-col-sm-9 { display: block; @@ -10629,7 +11380,8 @@ form .ant-input-group-wrapper { margin-left: 37.5%; } .ant-col-sm-order-9 { - order: 9; + -webkit-box-ordinal-group: 10; + order: 9; } .ant-col-sm-8 { display: block; @@ -10646,7 +11398,8 @@ form .ant-input-group-wrapper { margin-left: 33.33333333%; } .ant-col-sm-order-8 { - order: 8; + -webkit-box-ordinal-group: 9; + order: 8; } .ant-col-sm-7 { display: block; @@ -10663,7 +11416,8 @@ form .ant-input-group-wrapper { margin-left: 29.16666667%; } .ant-col-sm-order-7 { - order: 7; + -webkit-box-ordinal-group: 8; + order: 7; } .ant-col-sm-6 { display: block; @@ -10680,7 +11434,8 @@ form .ant-input-group-wrapper { margin-left: 25%; } .ant-col-sm-order-6 { - order: 6; + -webkit-box-ordinal-group: 7; + order: 6; } .ant-col-sm-5 { display: block; @@ -10697,7 +11452,8 @@ form .ant-input-group-wrapper { margin-left: 20.83333333%; } .ant-col-sm-order-5 { - order: 5; + -webkit-box-ordinal-group: 6; + order: 5; } .ant-col-sm-4 { display: block; @@ -10714,7 +11470,8 @@ form .ant-input-group-wrapper { margin-left: 16.66666667%; } .ant-col-sm-order-4 { - order: 4; + -webkit-box-ordinal-group: 5; + order: 4; } .ant-col-sm-3 { display: block; @@ -10731,7 +11488,8 @@ form .ant-input-group-wrapper { margin-left: 12.5%; } .ant-col-sm-order-3 { - order: 3; + -webkit-box-ordinal-group: 4; + order: 3; } .ant-col-sm-2 { display: block; @@ -10748,7 +11506,8 @@ form .ant-input-group-wrapper { margin-left: 8.33333333%; } .ant-col-sm-order-2 { - order: 2; + -webkit-box-ordinal-group: 3; + order: 2; } .ant-col-sm-1 { display: block; @@ -10765,7 +11524,8 @@ form .ant-input-group-wrapper { margin-left: 4.16666667%; } .ant-col-sm-order-1 { - order: 1; + -webkit-box-ordinal-group: 2; + order: 1; } .ant-col-sm-0 { display: none; @@ -10786,7 +11546,8 @@ form .ant-input-group-wrapper { margin-left: 0; } .ant-col-sm-order-0 { - order: 0; + -webkit-box-ordinal-group: 1; + order: 0; } } @media (min-width: 768px) { @@ -10814,8 +11575,9 @@ form .ant-input-group-wrapper { .ant-col-md-22, .ant-col-md-23, .ant-col-md-24 { + -webkit-box-flex: 0; + flex: 0 0 auto; float: left; - flex: 0 0 auto; } .ant-col-md-24 { display: block; @@ -10832,7 +11594,8 @@ form .ant-input-group-wrapper { margin-left: 100%; } .ant-col-md-order-24 { - order: 24; + -webkit-box-ordinal-group: 25; + order: 24; } .ant-col-md-23 { display: block; @@ -10849,7 +11612,8 @@ form .ant-input-group-wrapper { margin-left: 95.83333333%; } .ant-col-md-order-23 { - order: 23; + -webkit-box-ordinal-group: 24; + order: 23; } .ant-col-md-22 { display: block; @@ -10866,7 +11630,8 @@ form .ant-input-group-wrapper { margin-left: 91.66666667%; } .ant-col-md-order-22 { - order: 22; + -webkit-box-ordinal-group: 23; + order: 22; } .ant-col-md-21 { display: block; @@ -10883,7 +11648,8 @@ form .ant-input-group-wrapper { margin-left: 87.5%; } .ant-col-md-order-21 { - order: 21; + -webkit-box-ordinal-group: 22; + order: 21; } .ant-col-md-20 { display: block; @@ -10900,7 +11666,8 @@ form .ant-input-group-wrapper { margin-left: 83.33333333%; } .ant-col-md-order-20 { - order: 20; + -webkit-box-ordinal-group: 21; + order: 20; } .ant-col-md-19 { display: block; @@ -10917,7 +11684,8 @@ form .ant-input-group-wrapper { margin-left: 79.16666667%; } .ant-col-md-order-19 { - order: 19; + -webkit-box-ordinal-group: 20; + order: 19; } .ant-col-md-18 { display: block; @@ -10934,7 +11702,8 @@ form .ant-input-group-wrapper { margin-left: 75%; } .ant-col-md-order-18 { - order: 18; + -webkit-box-ordinal-group: 19; + order: 18; } .ant-col-md-17 { display: block; @@ -10951,7 +11720,8 @@ form .ant-input-group-wrapper { margin-left: 70.83333333%; } .ant-col-md-order-17 { - order: 17; + -webkit-box-ordinal-group: 18; + order: 17; } .ant-col-md-16 { display: block; @@ -10968,7 +11738,8 @@ form .ant-input-group-wrapper { margin-left: 66.66666667%; } .ant-col-md-order-16 { - order: 16; + -webkit-box-ordinal-group: 17; + order: 16; } .ant-col-md-15 { display: block; @@ -10985,7 +11756,8 @@ form .ant-input-group-wrapper { margin-left: 62.5%; } .ant-col-md-order-15 { - order: 15; + -webkit-box-ordinal-group: 16; + order: 15; } .ant-col-md-14 { display: block; @@ -11002,7 +11774,8 @@ form .ant-input-group-wrapper { margin-left: 58.33333333%; } .ant-col-md-order-14 { - order: 14; + -webkit-box-ordinal-group: 15; + order: 14; } .ant-col-md-13 { display: block; @@ -11019,7 +11792,8 @@ form .ant-input-group-wrapper { margin-left: 54.16666667%; } .ant-col-md-order-13 { - order: 13; + -webkit-box-ordinal-group: 14; + order: 13; } .ant-col-md-12 { display: block; @@ -11036,7 +11810,8 @@ form .ant-input-group-wrapper { margin-left: 50%; } .ant-col-md-order-12 { - order: 12; + -webkit-box-ordinal-group: 13; + order: 12; } .ant-col-md-11 { display: block; @@ -11053,7 +11828,8 @@ form .ant-input-group-wrapper { margin-left: 45.83333333%; } .ant-col-md-order-11 { - order: 11; + -webkit-box-ordinal-group: 12; + order: 11; } .ant-col-md-10 { display: block; @@ -11070,7 +11846,8 @@ form .ant-input-group-wrapper { margin-left: 41.66666667%; } .ant-col-md-order-10 { - order: 10; + -webkit-box-ordinal-group: 11; + order: 10; } .ant-col-md-9 { display: block; @@ -11087,7 +11864,8 @@ form .ant-input-group-wrapper { margin-left: 37.5%; } .ant-col-md-order-9 { - order: 9; + -webkit-box-ordinal-group: 10; + order: 9; } .ant-col-md-8 { display: block; @@ -11104,7 +11882,8 @@ form .ant-input-group-wrapper { margin-left: 33.33333333%; } .ant-col-md-order-8 { - order: 8; + -webkit-box-ordinal-group: 9; + order: 8; } .ant-col-md-7 { display: block; @@ -11121,7 +11900,8 @@ form .ant-input-group-wrapper { margin-left: 29.16666667%; } .ant-col-md-order-7 { - order: 7; + -webkit-box-ordinal-group: 8; + order: 7; } .ant-col-md-6 { display: block; @@ -11138,7 +11918,8 @@ form .ant-input-group-wrapper { margin-left: 25%; } .ant-col-md-order-6 { - order: 6; + -webkit-box-ordinal-group: 7; + order: 6; } .ant-col-md-5 { display: block; @@ -11155,7 +11936,8 @@ form .ant-input-group-wrapper { margin-left: 20.83333333%; } .ant-col-md-order-5 { - order: 5; + -webkit-box-ordinal-group: 6; + order: 5; } .ant-col-md-4 { display: block; @@ -11172,7 +11954,8 @@ form .ant-input-group-wrapper { margin-left: 16.66666667%; } .ant-col-md-order-4 { - order: 4; + -webkit-box-ordinal-group: 5; + order: 4; } .ant-col-md-3 { display: block; @@ -11189,7 +11972,8 @@ form .ant-input-group-wrapper { margin-left: 12.5%; } .ant-col-md-order-3 { - order: 3; + -webkit-box-ordinal-group: 4; + order: 3; } .ant-col-md-2 { display: block; @@ -11206,7 +11990,8 @@ form .ant-input-group-wrapper { margin-left: 8.33333333%; } .ant-col-md-order-2 { - order: 2; + -webkit-box-ordinal-group: 3; + order: 2; } .ant-col-md-1 { display: block; @@ -11223,7 +12008,8 @@ form .ant-input-group-wrapper { margin-left: 4.16666667%; } .ant-col-md-order-1 { - order: 1; + -webkit-box-ordinal-group: 2; + order: 1; } .ant-col-md-0 { display: none; @@ -11244,7 +12030,8 @@ form .ant-input-group-wrapper { margin-left: 0; } .ant-col-md-order-0 { - order: 0; + -webkit-box-ordinal-group: 1; + order: 0; } } @media (min-width: 992px) { @@ -11272,8 +12059,9 @@ form .ant-input-group-wrapper { .ant-col-lg-22, .ant-col-lg-23, .ant-col-lg-24 { + -webkit-box-flex: 0; + flex: 0 0 auto; float: left; - flex: 0 0 auto; } .ant-col-lg-24 { display: block; @@ -11290,7 +12078,8 @@ form .ant-input-group-wrapper { margin-left: 100%; } .ant-col-lg-order-24 { - order: 24; + -webkit-box-ordinal-group: 25; + order: 24; } .ant-col-lg-23 { display: block; @@ -11307,7 +12096,8 @@ form .ant-input-group-wrapper { margin-left: 95.83333333%; } .ant-col-lg-order-23 { - order: 23; + -webkit-box-ordinal-group: 24; + order: 23; } .ant-col-lg-22 { display: block; @@ -11324,7 +12114,8 @@ form .ant-input-group-wrapper { margin-left: 91.66666667%; } .ant-col-lg-order-22 { - order: 22; + -webkit-box-ordinal-group: 23; + order: 22; } .ant-col-lg-21 { display: block; @@ -11341,7 +12132,8 @@ form .ant-input-group-wrapper { margin-left: 87.5%; } .ant-col-lg-order-21 { - order: 21; + -webkit-box-ordinal-group: 22; + order: 21; } .ant-col-lg-20 { display: block; @@ -11358,7 +12150,8 @@ form .ant-input-group-wrapper { margin-left: 83.33333333%; } .ant-col-lg-order-20 { - order: 20; + -webkit-box-ordinal-group: 21; + order: 20; } .ant-col-lg-19 { display: block; @@ -11375,7 +12168,8 @@ form .ant-input-group-wrapper { margin-left: 79.16666667%; } .ant-col-lg-order-19 { - order: 19; + -webkit-box-ordinal-group: 20; + order: 19; } .ant-col-lg-18 { display: block; @@ -11392,7 +12186,8 @@ form .ant-input-group-wrapper { margin-left: 75%; } .ant-col-lg-order-18 { - order: 18; + -webkit-box-ordinal-group: 19; + order: 18; } .ant-col-lg-17 { display: block; @@ -11409,7 +12204,8 @@ form .ant-input-group-wrapper { margin-left: 70.83333333%; } .ant-col-lg-order-17 { - order: 17; + -webkit-box-ordinal-group: 18; + order: 17; } .ant-col-lg-16 { display: block; @@ -11426,7 +12222,8 @@ form .ant-input-group-wrapper { margin-left: 66.66666667%; } .ant-col-lg-order-16 { - order: 16; + -webkit-box-ordinal-group: 17; + order: 16; } .ant-col-lg-15 { display: block; @@ -11443,7 +12240,8 @@ form .ant-input-group-wrapper { margin-left: 62.5%; } .ant-col-lg-order-15 { - order: 15; + -webkit-box-ordinal-group: 16; + order: 15; } .ant-col-lg-14 { display: block; @@ -11460,7 +12258,8 @@ form .ant-input-group-wrapper { margin-left: 58.33333333%; } .ant-col-lg-order-14 { - order: 14; + -webkit-box-ordinal-group: 15; + order: 14; } .ant-col-lg-13 { display: block; @@ -11477,7 +12276,8 @@ form .ant-input-group-wrapper { margin-left: 54.16666667%; } .ant-col-lg-order-13 { - order: 13; + -webkit-box-ordinal-group: 14; + order: 13; } .ant-col-lg-12 { display: block; @@ -11494,7 +12294,8 @@ form .ant-input-group-wrapper { margin-left: 50%; } .ant-col-lg-order-12 { - order: 12; + -webkit-box-ordinal-group: 13; + order: 12; } .ant-col-lg-11 { display: block; @@ -11511,7 +12312,8 @@ form .ant-input-group-wrapper { margin-left: 45.83333333%; } .ant-col-lg-order-11 { - order: 11; + -webkit-box-ordinal-group: 12; + order: 11; } .ant-col-lg-10 { display: block; @@ -11528,7 +12330,8 @@ form .ant-input-group-wrapper { margin-left: 41.66666667%; } .ant-col-lg-order-10 { - order: 10; + -webkit-box-ordinal-group: 11; + order: 10; } .ant-col-lg-9 { display: block; @@ -11545,7 +12348,8 @@ form .ant-input-group-wrapper { margin-left: 37.5%; } .ant-col-lg-order-9 { - order: 9; + -webkit-box-ordinal-group: 10; + order: 9; } .ant-col-lg-8 { display: block; @@ -11562,7 +12366,8 @@ form .ant-input-group-wrapper { margin-left: 33.33333333%; } .ant-col-lg-order-8 { - order: 8; + -webkit-box-ordinal-group: 9; + order: 8; } .ant-col-lg-7 { display: block; @@ -11579,7 +12384,8 @@ form .ant-input-group-wrapper { margin-left: 29.16666667%; } .ant-col-lg-order-7 { - order: 7; + -webkit-box-ordinal-group: 8; + order: 7; } .ant-col-lg-6 { display: block; @@ -11596,7 +12402,8 @@ form .ant-input-group-wrapper { margin-left: 25%; } .ant-col-lg-order-6 { - order: 6; + -webkit-box-ordinal-group: 7; + order: 6; } .ant-col-lg-5 { display: block; @@ -11613,7 +12420,8 @@ form .ant-input-group-wrapper { margin-left: 20.83333333%; } .ant-col-lg-order-5 { - order: 5; + -webkit-box-ordinal-group: 6; + order: 5; } .ant-col-lg-4 { display: block; @@ -11630,7 +12438,8 @@ form .ant-input-group-wrapper { margin-left: 16.66666667%; } .ant-col-lg-order-4 { - order: 4; + -webkit-box-ordinal-group: 5; + order: 4; } .ant-col-lg-3 { display: block; @@ -11647,7 +12456,8 @@ form .ant-input-group-wrapper { margin-left: 12.5%; } .ant-col-lg-order-3 { - order: 3; + -webkit-box-ordinal-group: 4; + order: 3; } .ant-col-lg-2 { display: block; @@ -11664,7 +12474,8 @@ form .ant-input-group-wrapper { margin-left: 8.33333333%; } .ant-col-lg-order-2 { - order: 2; + -webkit-box-ordinal-group: 3; + order: 2; } .ant-col-lg-1 { display: block; @@ -11681,7 +12492,8 @@ form .ant-input-group-wrapper { margin-left: 4.16666667%; } .ant-col-lg-order-1 { - order: 1; + -webkit-box-ordinal-group: 2; + order: 1; } .ant-col-lg-0 { display: none; @@ -11702,7 +12514,8 @@ form .ant-input-group-wrapper { margin-left: 0; } .ant-col-lg-order-0 { - order: 0; + -webkit-box-ordinal-group: 1; + order: 0; } } @media (min-width: 1200px) { @@ -11730,8 +12543,9 @@ form .ant-input-group-wrapper { .ant-col-xl-22, .ant-col-xl-23, .ant-col-xl-24 { + -webkit-box-flex: 0; + flex: 0 0 auto; float: left; - flex: 0 0 auto; } .ant-col-xl-24 { display: block; @@ -11748,7 +12562,8 @@ form .ant-input-group-wrapper { margin-left: 100%; } .ant-col-xl-order-24 { - order: 24; + -webkit-box-ordinal-group: 25; + order: 24; } .ant-col-xl-23 { display: block; @@ -11765,7 +12580,8 @@ form .ant-input-group-wrapper { margin-left: 95.83333333%; } .ant-col-xl-order-23 { - order: 23; + -webkit-box-ordinal-group: 24; + order: 23; } .ant-col-xl-22 { display: block; @@ -11782,7 +12598,8 @@ form .ant-input-group-wrapper { margin-left: 91.66666667%; } .ant-col-xl-order-22 { - order: 22; + -webkit-box-ordinal-group: 23; + order: 22; } .ant-col-xl-21 { display: block; @@ -11799,7 +12616,8 @@ form .ant-input-group-wrapper { margin-left: 87.5%; } .ant-col-xl-order-21 { - order: 21; + -webkit-box-ordinal-group: 22; + order: 21; } .ant-col-xl-20 { display: block; @@ -11816,7 +12634,8 @@ form .ant-input-group-wrapper { margin-left: 83.33333333%; } .ant-col-xl-order-20 { - order: 20; + -webkit-box-ordinal-group: 21; + order: 20; } .ant-col-xl-19 { display: block; @@ -11833,7 +12652,8 @@ form .ant-input-group-wrapper { margin-left: 79.16666667%; } .ant-col-xl-order-19 { - order: 19; + -webkit-box-ordinal-group: 20; + order: 19; } .ant-col-xl-18 { display: block; @@ -11850,7 +12670,8 @@ form .ant-input-group-wrapper { margin-left: 75%; } .ant-col-xl-order-18 { - order: 18; + -webkit-box-ordinal-group: 19; + order: 18; } .ant-col-xl-17 { display: block; @@ -11867,7 +12688,8 @@ form .ant-input-group-wrapper { margin-left: 70.83333333%; } .ant-col-xl-order-17 { - order: 17; + -webkit-box-ordinal-group: 18; + order: 17; } .ant-col-xl-16 { display: block; @@ -11884,7 +12706,8 @@ form .ant-input-group-wrapper { margin-left: 66.66666667%; } .ant-col-xl-order-16 { - order: 16; + -webkit-box-ordinal-group: 17; + order: 16; } .ant-col-xl-15 { display: block; @@ -11901,7 +12724,8 @@ form .ant-input-group-wrapper { margin-left: 62.5%; } .ant-col-xl-order-15 { - order: 15; + -webkit-box-ordinal-group: 16; + order: 15; } .ant-col-xl-14 { display: block; @@ -11918,7 +12742,8 @@ form .ant-input-group-wrapper { margin-left: 58.33333333%; } .ant-col-xl-order-14 { - order: 14; + -webkit-box-ordinal-group: 15; + order: 14; } .ant-col-xl-13 { display: block; @@ -11935,7 +12760,8 @@ form .ant-input-group-wrapper { margin-left: 54.16666667%; } .ant-col-xl-order-13 { - order: 13; + -webkit-box-ordinal-group: 14; + order: 13; } .ant-col-xl-12 { display: block; @@ -11952,7 +12778,8 @@ form .ant-input-group-wrapper { margin-left: 50%; } .ant-col-xl-order-12 { - order: 12; + -webkit-box-ordinal-group: 13; + order: 12; } .ant-col-xl-11 { display: block; @@ -11969,7 +12796,8 @@ form .ant-input-group-wrapper { margin-left: 45.83333333%; } .ant-col-xl-order-11 { - order: 11; + -webkit-box-ordinal-group: 12; + order: 11; } .ant-col-xl-10 { display: block; @@ -11986,7 +12814,8 @@ form .ant-input-group-wrapper { margin-left: 41.66666667%; } .ant-col-xl-order-10 { - order: 10; + -webkit-box-ordinal-group: 11; + order: 10; } .ant-col-xl-9 { display: block; @@ -12003,7 +12832,8 @@ form .ant-input-group-wrapper { margin-left: 37.5%; } .ant-col-xl-order-9 { - order: 9; + -webkit-box-ordinal-group: 10; + order: 9; } .ant-col-xl-8 { display: block; @@ -12020,7 +12850,8 @@ form .ant-input-group-wrapper { margin-left: 33.33333333%; } .ant-col-xl-order-8 { - order: 8; + -webkit-box-ordinal-group: 9; + order: 8; } .ant-col-xl-7 { display: block; @@ -12037,7 +12868,8 @@ form .ant-input-group-wrapper { margin-left: 29.16666667%; } .ant-col-xl-order-7 { - order: 7; + -webkit-box-ordinal-group: 8; + order: 7; } .ant-col-xl-6 { display: block; @@ -12054,7 +12886,8 @@ form .ant-input-group-wrapper { margin-left: 25%; } .ant-col-xl-order-6 { - order: 6; + -webkit-box-ordinal-group: 7; + order: 6; } .ant-col-xl-5 { display: block; @@ -12071,7 +12904,8 @@ form .ant-input-group-wrapper { margin-left: 20.83333333%; } .ant-col-xl-order-5 { - order: 5; + -webkit-box-ordinal-group: 6; + order: 5; } .ant-col-xl-4 { display: block; @@ -12088,7 +12922,8 @@ form .ant-input-group-wrapper { margin-left: 16.66666667%; } .ant-col-xl-order-4 { - order: 4; + -webkit-box-ordinal-group: 5; + order: 4; } .ant-col-xl-3 { display: block; @@ -12105,7 +12940,8 @@ form .ant-input-group-wrapper { margin-left: 12.5%; } .ant-col-xl-order-3 { - order: 3; + -webkit-box-ordinal-group: 4; + order: 3; } .ant-col-xl-2 { display: block; @@ -12122,7 +12958,8 @@ form .ant-input-group-wrapper { margin-left: 8.33333333%; } .ant-col-xl-order-2 { - order: 2; + -webkit-box-ordinal-group: 3; + order: 2; } .ant-col-xl-1 { display: block; @@ -12139,7 +12976,8 @@ form .ant-input-group-wrapper { margin-left: 4.16666667%; } .ant-col-xl-order-1 { - order: 1; + -webkit-box-ordinal-group: 2; + order: 1; } .ant-col-xl-0 { display: none; @@ -12160,7 +12998,8 @@ form .ant-input-group-wrapper { margin-left: 0; } .ant-col-xl-order-0 { - order: 0; + -webkit-box-ordinal-group: 1; + order: 0; } } @media (min-width: 1600px) { @@ -12188,8 +13027,9 @@ form .ant-input-group-wrapper { .ant-col-xxl-22, .ant-col-xxl-23, .ant-col-xxl-24 { + -webkit-box-flex: 0; + flex: 0 0 auto; float: left; - flex: 0 0 auto; } .ant-col-xxl-24 { display: block; @@ -12206,7 +13046,8 @@ form .ant-input-group-wrapper { margin-left: 100%; } .ant-col-xxl-order-24 { - order: 24; + -webkit-box-ordinal-group: 25; + order: 24; } .ant-col-xxl-23 { display: block; @@ -12223,7 +13064,8 @@ form .ant-input-group-wrapper { margin-left: 95.83333333%; } .ant-col-xxl-order-23 { - order: 23; + -webkit-box-ordinal-group: 24; + order: 23; } .ant-col-xxl-22 { display: block; @@ -12240,7 +13082,8 @@ form .ant-input-group-wrapper { margin-left: 91.66666667%; } .ant-col-xxl-order-22 { - order: 22; + -webkit-box-ordinal-group: 23; + order: 22; } .ant-col-xxl-21 { display: block; @@ -12257,7 +13100,8 @@ form .ant-input-group-wrapper { margin-left: 87.5%; } .ant-col-xxl-order-21 { - order: 21; + -webkit-box-ordinal-group: 22; + order: 21; } .ant-col-xxl-20 { display: block; @@ -12274,7 +13118,8 @@ form .ant-input-group-wrapper { margin-left: 83.33333333%; } .ant-col-xxl-order-20 { - order: 20; + -webkit-box-ordinal-group: 21; + order: 20; } .ant-col-xxl-19 { display: block; @@ -12291,7 +13136,8 @@ form .ant-input-group-wrapper { margin-left: 79.16666667%; } .ant-col-xxl-order-19 { - order: 19; + -webkit-box-ordinal-group: 20; + order: 19; } .ant-col-xxl-18 { display: block; @@ -12308,7 +13154,8 @@ form .ant-input-group-wrapper { margin-left: 75%; } .ant-col-xxl-order-18 { - order: 18; + -webkit-box-ordinal-group: 19; + order: 18; } .ant-col-xxl-17 { display: block; @@ -12325,7 +13172,8 @@ form .ant-input-group-wrapper { margin-left: 70.83333333%; } .ant-col-xxl-order-17 { - order: 17; + -webkit-box-ordinal-group: 18; + order: 17; } .ant-col-xxl-16 { display: block; @@ -12342,7 +13190,8 @@ form .ant-input-group-wrapper { margin-left: 66.66666667%; } .ant-col-xxl-order-16 { - order: 16; + -webkit-box-ordinal-group: 17; + order: 16; } .ant-col-xxl-15 { display: block; @@ -12359,7 +13208,8 @@ form .ant-input-group-wrapper { margin-left: 62.5%; } .ant-col-xxl-order-15 { - order: 15; + -webkit-box-ordinal-group: 16; + order: 15; } .ant-col-xxl-14 { display: block; @@ -12376,7 +13226,8 @@ form .ant-input-group-wrapper { margin-left: 58.33333333%; } .ant-col-xxl-order-14 { - order: 14; + -webkit-box-ordinal-group: 15; + order: 14; } .ant-col-xxl-13 { display: block; @@ -12393,7 +13244,8 @@ form .ant-input-group-wrapper { margin-left: 54.16666667%; } .ant-col-xxl-order-13 { - order: 13; + -webkit-box-ordinal-group: 14; + order: 13; } .ant-col-xxl-12 { display: block; @@ -12410,7 +13262,8 @@ form .ant-input-group-wrapper { margin-left: 50%; } .ant-col-xxl-order-12 { - order: 12; + -webkit-box-ordinal-group: 13; + order: 12; } .ant-col-xxl-11 { display: block; @@ -12427,7 +13280,8 @@ form .ant-input-group-wrapper { margin-left: 45.83333333%; } .ant-col-xxl-order-11 { - order: 11; + -webkit-box-ordinal-group: 12; + order: 11; } .ant-col-xxl-10 { display: block; @@ -12444,7 +13298,8 @@ form .ant-input-group-wrapper { margin-left: 41.66666667%; } .ant-col-xxl-order-10 { - order: 10; + -webkit-box-ordinal-group: 11; + order: 10; } .ant-col-xxl-9 { display: block; @@ -12461,7 +13316,8 @@ form .ant-input-group-wrapper { margin-left: 37.5%; } .ant-col-xxl-order-9 { - order: 9; + -webkit-box-ordinal-group: 10; + order: 9; } .ant-col-xxl-8 { display: block; @@ -12478,7 +13334,8 @@ form .ant-input-group-wrapper { margin-left: 33.33333333%; } .ant-col-xxl-order-8 { - order: 8; + -webkit-box-ordinal-group: 9; + order: 8; } .ant-col-xxl-7 { display: block; @@ -12495,7 +13352,8 @@ form .ant-input-group-wrapper { margin-left: 29.16666667%; } .ant-col-xxl-order-7 { - order: 7; + -webkit-box-ordinal-group: 8; + order: 7; } .ant-col-xxl-6 { display: block; @@ -12512,7 +13370,8 @@ form .ant-input-group-wrapper { margin-left: 25%; } .ant-col-xxl-order-6 { - order: 6; + -webkit-box-ordinal-group: 7; + order: 6; } .ant-col-xxl-5 { display: block; @@ -12529,7 +13388,8 @@ form .ant-input-group-wrapper { margin-left: 20.83333333%; } .ant-col-xxl-order-5 { - order: 5; + -webkit-box-ordinal-group: 6; + order: 5; } .ant-col-xxl-4 { display: block; @@ -12546,7 +13406,8 @@ form .ant-input-group-wrapper { margin-left: 16.66666667%; } .ant-col-xxl-order-4 { - order: 4; + -webkit-box-ordinal-group: 5; + order: 4; } .ant-col-xxl-3 { display: block; @@ -12563,7 +13424,8 @@ form .ant-input-group-wrapper { margin-left: 12.5%; } .ant-col-xxl-order-3 { - order: 3; + -webkit-box-ordinal-group: 4; + order: 3; } .ant-col-xxl-2 { display: block; @@ -12580,7 +13442,8 @@ form .ant-input-group-wrapper { margin-left: 8.33333333%; } .ant-col-xxl-order-2 { - order: 2; + -webkit-box-ordinal-group: 3; + order: 2; } .ant-col-xxl-1 { display: block; @@ -12597,7 +13460,8 @@ form .ant-input-group-wrapper { margin-left: 4.16666667%; } .ant-col-xxl-order-1 { - order: 1; + -webkit-box-ordinal-group: 2; + order: 1; } .ant-col-xxl-0 { display: none; @@ -12618,28 +13482,30 @@ form .ant-input-group-wrapper { margin-left: 0; } .ant-col-xxl-order-0 { - order: 0; + -webkit-box-ordinal-group: 1; + order: 0; } } .ant-input { - font-family: "Chinese Quote", -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"; - font-variant: tabular-nums; box-sizing: border-box; margin: 0; padding: 0; + font-variant: tabular-nums; list-style: none; + font-feature-settings: 'tnum'; position: relative; display: inline-block; - padding: 4px 11px; width: 100%; height: 32px; + padding: 4px 11px; + color: rgba(0, 0, 0, 0.65); font-size: 14px; line-height: 1.5; - color: rgba(0, 0, 0, 0.65); background-color: #fff; background-image: none; border: 1px solid #d9d9d9; border-radius: 5px; + -webkit-transition: all 0.3s; transition: all 0.3s; } .ant-input::-moz-placeholder { @@ -12658,15 +13524,15 @@ form .ant-input-group-wrapper { } .ant-input:focus { border-color: #f2726f; + border-right-width: 1px !important; outline: 0; box-shadow: 0 0 0 2px rgba(230, 68, 72, 0.2); - border-right-width: 1px !important; } .ant-input-disabled { + color: rgba(0, 0, 0, 0.25); background-color: #f5f5f5; - opacity: 1; cursor: not-allowed; - color: rgba(0, 0, 0, 0.25); + opacity: 1; } .ant-input-disabled:hover { border-color: #e6d8d8; @@ -12675,39 +13541,40 @@ form .ant-input-group-wrapper { textarea.ant-input { max-width: 100%; height: auto; + min-height: 32px; vertical-align: bottom; + -webkit-transition: all 0.3s, height 0s; transition: all 0.3s, height 0s; - min-height: 32px; } .ant-input-lg { - padding: 6px 11px; height: 40px; + padding: 6px 11px; font-size: 16px; } .ant-input-sm { - padding: 1px 7px; height: 24px; + padding: 1px 7px; } .ant-input-group { - font-family: "Chinese Quote", -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"; - font-size: 14px; - font-variant: tabular-nums; - line-height: 1.5; - color: rgba(0, 0, 0, 0.65); box-sizing: border-box; margin: 0; padding: 0; + color: rgba(0, 0, 0, 0.65); + font-size: 14px; + font-variant: tabular-nums; + line-height: 1.5; list-style: none; + font-feature-settings: 'tnum'; position: relative; display: table; + width: 100%; border-collapse: separate; border-spacing: 0; - width: 100%; } .ant-input-group[class*='col-'] { float: none; - padding-left: 0; padding-right: 0; + padding-left: 0; } .ant-input-group > [class*='col-'] { padding-right: 8px; @@ -12738,6 +13605,7 @@ textarea.ant-input { float: left; width: 100%; margin-bottom: 0; + text-align: inherit; } .ant-input-group .ant-input:focus { z-index: 1; @@ -12748,24 +13616,25 @@ textarea.ant-input { border-right-width: 1px; } .ant-input-group-addon { + position: relative; padding: 0 11px; - font-size: 14px; + color: rgba(0, 0, 0, 0.65); font-weight: normal; + font-size: 14px; line-height: 1; - color: rgba(0, 0, 0, 0.65); text-align: center; background-color: #fafafa; border: 1px solid #d9d9d9; border-radius: 5px; - position: relative; + -webkit-transition: all 0.3s; transition: all 0.3s; } .ant-input-group-addon .ant-select { margin: -5px -11px; } .ant-input-group-addon .ant-select .ant-select-selection { - background-color: inherit; margin: -1px; + background-color: inherit; border: 1px solid transparent; box-shadow: none; } @@ -12773,31 +13642,31 @@ textarea.ant-input { .ant-input-group-addon .ant-select-focused .ant-select-selection { color: #E64448; } -.ant-input-group-addon > i:only-child:after { +.ant-input-group-addon > i:only-child::after { position: absolute; - content: ''; top: 0; - left: 0; right: 0; bottom: 0; + left: 0; + content: ''; } .ant-input-group > .ant-input:first-child, .ant-input-group-addon:first-child { - border-bottom-right-radius: 0; border-top-right-radius: 0; + border-bottom-right-radius: 0; } .ant-input-group > .ant-input:first-child .ant-select .ant-select-selection, .ant-input-group-addon:first-child .ant-select .ant-select-selection { - border-bottom-right-radius: 0; border-top-right-radius: 0; + border-bottom-right-radius: 0; } .ant-input-group > .ant-input-affix-wrapper:not(:first-child) .ant-input { - border-bottom-left-radius: 0; border-top-left-radius: 0; + border-bottom-left-radius: 0; } .ant-input-group > .ant-input-affix-wrapper:not(:last-child) .ant-input { - border-bottom-right-radius: 0; border-top-right-radius: 0; + border-bottom-right-radius: 0; } .ant-input-group-addon:first-child { border-right: 0; @@ -12807,24 +13676,24 @@ textarea.ant-input { } .ant-input-group > .ant-input:last-child, .ant-input-group-addon:last-child { - border-bottom-left-radius: 0; border-top-left-radius: 0; + border-bottom-left-radius: 0; } .ant-input-group > .ant-input:last-child .ant-select .ant-select-selection, .ant-input-group-addon:last-child .ant-select .ant-select-selection { - border-bottom-left-radius: 0; border-top-left-radius: 0; + border-bottom-left-radius: 0; } .ant-input-group-lg .ant-input, .ant-input-group-lg > .ant-input-group-addon { - padding: 6px 11px; height: 40px; + padding: 6px 11px; font-size: 16px; } .ant-input-group-sm .ant-input, .ant-input-group-sm > .ant-input-group-addon { - padding: 1px 7px; height: 24px; + padding: 1px 7px; } .ant-input-group-lg .ant-select-selection--single { height: 40px; @@ -12834,27 +13703,27 @@ textarea.ant-input { } .ant-input-group .ant-input-affix-wrapper { display: table-cell; - width: 100%; float: left; + width: 100%; } .ant-input-group.ant-input-group-compact { display: block; zoom: 1; } -.ant-input-group.ant-input-group-compact:before, -.ant-input-group.ant-input-group-compact:after { +.ant-input-group.ant-input-group-compact::before, +.ant-input-group.ant-input-group-compact::after { content: ''; display: table; } -.ant-input-group.ant-input-group-compact:after { +.ant-input-group.ant-input-group-compact::after { clear: both; } -.ant-input-group.ant-input-group-compact:before, -.ant-input-group.ant-input-group-compact:after { +.ant-input-group.ant-input-group-compact::before, +.ant-input-group.ant-input-group-compact::after { content: ''; display: table; } -.ant-input-group.ant-input-group-compact:after { +.ant-input-group.ant-input-group-compact::after { clear: both; } .ant-input-group.ant-input-group-compact-addon:not(:first-child):not(:last-child), @@ -12873,14 +13742,14 @@ textarea.ant-input { z-index: 1; } .ant-input-group.ant-input-group-compact > * { - border-radius: 0; - vertical-align: top; - float: none; display: inline-block; + float: none; + vertical-align: top; + border-radius: 0; } .ant-input-group.ant-input-group-compact > *:not(:last-child) { - border-right-width: 1px; margin-right: -1px; + border-right-width: 1px; } .ant-input-group.ant-input-group-compact .ant-input { float: none; @@ -12891,8 +13760,8 @@ textarea.ant-input { .ant-input-group.ant-input-group-compact > .ant-cascader-picker .ant-input, .ant-input-group.ant-input-group-compact > .ant-mention-wrapper .ant-mention-editor, .ant-input-group.ant-input-group-compact > .ant-time-picker .ant-time-picker-input { - border-radius: 0; border-right-width: 1px; + border-radius: 0; } .ant-input-group.ant-input-group-compact > .ant-select > .ant-select-selection:hover, .ant-input-group.ant-input-group-compact > .ant-calendar-picker .ant-input:hover, @@ -12928,31 +13797,33 @@ textarea.ant-input { .ant-input-group.ant-input-group-compact > .ant-cascader-picker-focused:last-child .ant-input, .ant-input-group.ant-input-group-compact > .ant-mention-wrapper:last-child .ant-mention-editor, .ant-input-group.ant-input-group-compact > .ant-time-picker:last-child .ant-time-picker-input { + border-right-width: 1px; border-top-right-radius: 5px; border-bottom-right-radius: 5px; - border-right-width: 1px; } .ant-input-group.ant-input-group-compact > .ant-select-auto-complete .ant-input { vertical-align: top; } .ant-input-group-wrapper { display: inline-block; - vertical-align: top; width: 100%; + text-align: start; + vertical-align: top; } .ant-input-affix-wrapper { - font-family: "Chinese Quote", -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"; - font-size: 14px; - font-variant: tabular-nums; - line-height: 1.5; - color: rgba(0, 0, 0, 0.65); box-sizing: border-box; margin: 0; padding: 0; + color: rgba(0, 0, 0, 0.65); + font-size: 14px; + font-variant: tabular-nums; + line-height: 1.5; list-style: none; + font-feature-settings: 'tnum'; position: relative; display: inline-block; width: 100%; + text-align: start; } .ant-input-affix-wrapper:hover .ant-input:not(.ant-input-disabled) { border-color: #f2726f; @@ -12960,15 +13831,21 @@ textarea.ant-input { } .ant-input-affix-wrapper .ant-input { position: relative; + text-align: inherit; } .ant-input-affix-wrapper .ant-input-prefix, .ant-input-affix-wrapper .ant-input-suffix { position: absolute; top: 50%; z-index: 2; - transform: translateY(-50%); - line-height: 0; + display: -webkit-box; + display: flex; + -webkit-box-align: center; + align-items: center; color: rgba(0, 0, 0, 0.65); + line-height: 0; + -webkit-transform: translateY(-50%); + transform: translateY(-50%); } .ant-input-affix-wrapper .ant-input-prefix :not(.anticon), .ant-input-affix-wrapper .ant-input-suffix :not(.anticon) { @@ -12989,51 +13866,71 @@ textarea.ant-input { .ant-input-affix-wrapper .ant-input { min-height: 100%; } +.ant-input-password-icon { + cursor: pointer; + -webkit-transition: all 0.3s; + transition: all 0.3s; +} +.ant-input-password-icon:hover { + color: #333; +} +.ant-input-clear-icon { + color: rgba(0, 0, 0, 0.25); + font-size: 12px; + vertical-align: 0; + cursor: pointer; + -webkit-transition: color 0.3s; + transition: color 0.3s; +} +.ant-input-clear-icon:hover { + color: rgba(0, 0, 0, 0.45); +} +.ant-input-clear-icon:active { + color: rgba(0, 0, 0, 0.65); +} +.ant-input-clear-icon + i { + margin-left: 6px; +} .ant-input-search-icon { color: rgba(0, 0, 0, 0.45); cursor: pointer; + -webkit-transition: all 0.3s; transition: all 0.3s; } .ant-input-search-icon:hover { - color: #333; + color: rgba(0, 0, 0, 0.8); } -.ant-input-search:not(.ant-input-search-small) > .ant-input-suffix { - right: 12px; +.ant-input-search-enter-button .ant-input-group-addon { + padding: 0; + border: 0; } -.ant-input-search > .ant-input-suffix > .ant-input-search-button { +.ant-input-search-enter-button .ant-input-group-addon .ant-input-search-button { + width: 100%; border-top-left-radius: 0; border-bottom-left-radius: 0; } -.ant-input-search > .ant-input-suffix > .ant-input-search-button > .anticon-search { - font-size: 16px; -} -.ant-input-search.ant-input-search-enter-button > .ant-input { - padding-right: 46px; -} -.ant-input-search.ant-input-search-enter-button > .ant-input-suffix { - right: 0; -} .ant-input-number { - font-family: "Chinese Quote", -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"; - font-variant: tabular-nums; box-sizing: border-box; + font-variant: tabular-nums; list-style: none; + font-feature-settings: 'tnum'; position: relative; - padding: 4px 11px; width: 100%; height: 32px; + padding: 4px 11px; + color: rgba(0, 0, 0, 0.65); font-size: 14px; line-height: 1.5; - color: rgba(0, 0, 0, 0.65); background-color: #fff; background-image: none; + -webkit-transition: all 0.3s; transition: all 0.3s; + display: inline-block; + width: 90px; margin: 0; padding: 0; - display: inline-block; border: 1px solid #d9d9d9; border-radius: 5px; - width: 90px; } .ant-input-number::-moz-placeholder { color: #bfbfbf; @@ -13051,15 +13948,15 @@ textarea.ant-input { } .ant-input-number:focus { border-color: #f2726f; + border-right-width: 1px !important; outline: 0; box-shadow: 0 0 0 2px rgba(230, 68, 72, 0.2); - border-right-width: 1px !important; } .ant-input-number-disabled { + color: rgba(0, 0, 0, 0.25); background-color: #f5f5f5; - opacity: 1; cursor: not-allowed; - color: rgba(0, 0, 0, 0.25); + opacity: 1; } .ant-input-number-disabled:hover { border-color: #e6d8d8; @@ -13068,30 +13965,32 @@ textarea.ant-input { textarea.ant-input-number { max-width: 100%; height: auto; + min-height: 32px; vertical-align: bottom; + -webkit-transition: all 0.3s, height 0s; transition: all 0.3s, height 0s; - min-height: 32px; } .ant-input-number-lg { - padding: 6px 11px; height: 40px; + padding: 6px 11px; font-size: 16px; } .ant-input-number-sm { - padding: 1px 7px; height: 24px; + padding: 1px 7px; } .ant-input-number-handler { - text-align: center; - line-height: 0; - height: 50%; - overflow: hidden; - color: rgba(0, 0, 0, 0.45); position: relative; - transition: all 0.1s linear; display: block; width: 100%; + height: 50%; + overflow: hidden; + color: rgba(0, 0, 0, 0.45); font-weight: bold; + line-height: 0; + text-align: center; + -webkit-transition: all 0.1s linear; + transition: all 0.1s linear; } .ant-input-number-handler:active { background: #f4f4f4; @@ -13102,29 +14001,27 @@ textarea.ant-input-number { } .ant-input-number-handler-up-inner, .ant-input-number-handler-down-inner { + display: inline-block; font-style: normal; - vertical-align: -0.125em; + line-height: 0; text-align: center; text-transform: none; - line-height: 0; + vertical-align: -0.125em; text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; + position: absolute; + right: 4px; + width: 12px; + height: 12px; + color: rgba(0, 0, 0, 0.45); line-height: 12px; + -webkit-transition: all 0.1s linear; + transition: all 0.1s linear; -webkit-user-select: none; -moz-user-select: none; -ms-user-select: none; user-select: none; - position: absolute; - width: 12px; - height: 12px; - transition: all 0.1s linear; - display: inline-block; - font-size: 12px; - font-size: 7px \9; - transform: scale(0.58333333) rotate(0deg); - right: 4px; - color: rgba(0, 0, 0, 0.45); } .ant-input-number-handler-up-inner > *, .ant-input-number-handler-down-inner > * { @@ -13134,8 +14031,8 @@ textarea.ant-input-number { .ant-input-number-handler-down-inner svg { display: inline-block; } -.ant-input-number-handler-up-inner:before, -.ant-input-number-handler-down-inner:before { +.ant-input-number-handler-up-inner::before, +.ant-input-number-handler-down-inner::before { display: none; } .ant-input-number-handler-up-inner .ant-input-number-handler-up-inner-icon, @@ -13144,25 +14041,21 @@ textarea.ant-input-number { .ant-input-number-handler-down-inner .ant-input-number-handler-down-inner-icon { display: block; } -:root .ant-input-number-handler-up-inner, -:root .ant-input-number-handler-down-inner { - font-size: 12px; -} .ant-input-number:hover { border-color: #f2726f; border-right-width: 1px !important; } .ant-input-number-focused { border-color: #f2726f; + border-right-width: 1px !important; outline: 0; box-shadow: 0 0 0 2px rgba(230, 68, 72, 0.2); - border-right-width: 1px !important; } .ant-input-number-disabled { + color: rgba(0, 0, 0, 0.25); background-color: #f5f5f5; - opacity: 1; cursor: not-allowed; - color: rgba(0, 0, 0, 0.25); + opacity: 1; } .ant-input-number-disabled:hover { border-color: #e6d8d8; @@ -13176,15 +14069,16 @@ textarea.ant-input-number { } .ant-input-number-input { width: 100%; - text-align: left; - outline: 0; - -moz-appearance: textfield; height: 30px; - transition: all 0.3s linear; + padding: 0 11px; + text-align: left; background-color: transparent; border: 0; border-radius: 5px; - padding: 0 11px; + outline: 0; + -webkit-transition: all 0.3s linear; + transition: all 0.3s linear; + -moz-appearance: textfield; } .ant-input-number-input::-moz-placeholder { color: #bfbfbf; @@ -13211,17 +14105,32 @@ textarea.ant-input-number { padding: 0 7px; } .ant-input-number-handler-wrap { - border-left: 1px solid #d9d9d9; - width: 22px; - height: 100%; - background: #fff; position: absolute; top: 0; right: 0; - opacity: 0; + width: 22px; + height: 100%; + background: #fff; + border-left: 1px solid #d9d9d9; border-radius: 0 5px 5px 0; + opacity: 0; + -webkit-transition: opacity 0.24s linear 0.1s; transition: opacity 0.24s linear 0.1s; } +.ant-input-number-handler-wrap .ant-input-number-handler .ant-input-number-handler-up-inner, +.ant-input-number-handler-wrap .ant-input-number-handler .ant-input-number-handler-down-inner { + display: inline-block; + font-size: 12px; + font-size: 7px \9; + -webkit-transform: scale(0.58333333) rotate(0deg); + transform: scale(0.58333333) rotate(0deg); + min-width: auto; + margin-right: 0; +} +:root .ant-input-number-handler-wrap .ant-input-number-handler .ant-input-number-handler-up-inner, +:root .ant-input-number-handler-wrap .ant-input-number-handler .ant-input-number-handler-down-inner { + font-size: 12px; +} .ant-input-number-handler-wrap:hover .ant-input-number-handler { height: 40%; } @@ -13240,8 +14149,8 @@ textarea.ant-input-number { height: 60% !important; } .ant-input-number-handler-down { - border-top: 1px solid #d9d9d9; top: 0; + border-top: 1px solid #d9d9d9; cursor: pointer; } .ant-input-number-handler-down-inner { @@ -13261,19 +14170,25 @@ textarea.ant-input-number { color: rgba(0, 0, 0, 0.25); } .ant-layout { + display: -webkit-box; display: flex; - flex-direction: column; - flex: auto; - background: #f0f2f5; + -webkit-box-flex: 1; + flex: auto; + -webkit-box-orient: vertical; + -webkit-box-direction: normal; + flex-direction: column; /* fix firefox can't set height smaller than content on flex item */ min-height: 0; + background: #f0f2f5; } .ant-layout, .ant-layout * { box-sizing: border-box; } .ant-layout.ant-layout-has-sider { - flex-direction: row; + -webkit-box-orient: horizontal; + -webkit-box-direction: normal; + flex-direction: row; } .ant-layout.ant-layout-has-sider > .ant-layout, .ant-layout.ant-layout-has-sider > .ant-layout-content { @@ -13281,53 +14196,58 @@ textarea.ant-input-number { } .ant-layout-header, .ant-layout-footer { - flex: 0 0 auto; + -webkit-box-flex: 0; + flex: 0 0 auto; } .ant-layout-header { - background: #001529; - padding: 0 50px; height: 64px; + padding: 0 50px; line-height: 64px; + background: #001529; } .ant-layout-footer { - background: #f0f2f5; padding: 24px 50px; color: rgba(0, 0, 0, 0.65); font-size: 14px; + background: #f0f2f5; } .ant-layout-content { - flex: auto; + -webkit-box-flex: 1; + flex: auto; /* fix firefox can't set height smaller than content on flex item */ min-height: 0; } .ant-layout-sider { - transition: all 0.2s; position: relative; - background: #001529; /* fix firefox can't set width smaller than content on flex item */ min-width: 0; + background: #001529; + -webkit-transition: all 0.2s; + transition: all 0.2s; } .ant-layout-sider-children { height: 100%; - padding-top: 0.1px; margin-top: -0.1px; + padding-top: 0.1px; } .ant-layout-sider-has-trigger { padding-bottom: 48px; } .ant-layout-sider-right { - order: 1; + -webkit-box-ordinal-group: 2; + order: 1; } .ant-layout-sider-trigger { position: fixed; - text-align: center; bottom: 0; - cursor: pointer; + z-index: 1; height: 48px; - line-height: 48px; color: #fff; + line-height: 48px; + text-align: center; background: #002140; - z-index: 1; + cursor: pointer; + -webkit-transition: all 0.2s; transition: all 0.2s; } .ant-layout-sider-zero-width > * { @@ -13337,20 +14257,24 @@ textarea.ant-input-number { position: absolute; top: 64px; right: -36px; - text-align: center; width: 36px; height: 42px; - line-height: 42px; - background: #001529; color: #fff; font-size: 18px; + line-height: 42px; + text-align: center; + background: #001529; border-radius: 0 5px 5px 0; cursor: pointer; + -webkit-transition: background 0.3s ease; transition: background 0.3s ease; } .ant-layout-sider-zero-width-trigger:hover { background: #192c3e; } +.ant-layout-sider-zero-width-trigger-right { + left: -36px; +} .ant-layout-sider-light { background: #fff; } @@ -13363,15 +14287,15 @@ textarea.ant-input-number { background: #fff; } .ant-list { - font-family: "Chinese Quote", -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"; - font-size: 14px; - font-variant: tabular-nums; - line-height: 1.5; - color: rgba(0, 0, 0, 0.65); box-sizing: border-box; margin: 0; padding: 0; + color: rgba(0, 0, 0, 0.65); + font-size: 14px; + font-variant: tabular-nums; + line-height: 1.5; list-style: none; + font-feature-settings: 'tnum'; position: relative; } .ant-list * { @@ -13386,44 +14310,51 @@ textarea.ant-input-number { text-align: center; } .ant-list-more button { - padding-left: 32px; padding-right: 32px; + padding-left: 32px; } .ant-list-spin { - text-align: center; min-height: 40px; + text-align: center; } .ant-list-empty-text { + padding: 16px; color: rgba(0, 0, 0, 0.45); font-size: 14px; - padding: 16px; text-align: center; } .ant-list-item { - align-items: center; + display: -webkit-box; display: flex; + -webkit-box-align: center; + align-items: center; padding: 12px 0; } .ant-list-item-meta { - align-items: flex-start; + display: -webkit-box; display: flex; - flex: 1; + -webkit-box-flex: 1; + flex: 1; + -webkit-box-align: start; + align-items: flex-start; font-size: 0; } .ant-list-item-meta-avatar { margin-right: 16px; } .ant-list-item-meta-content { - flex: 1 0; + -webkit-box-flex: 1; + flex: 1 0; } .ant-list-item-meta-title { - color: rgba(0, 0, 0, 0.65); margin-bottom: 4px; + color: rgba(0, 0, 0, 0.65); font-size: 14px; line-height: 22px; } .ant-list-item-meta-title > a { color: rgba(0, 0, 0, 0.65); + -webkit-transition: all 0.3s; transition: all 0.3s; } .ant-list-item-meta-title > a:hover { @@ -13435,45 +14366,58 @@ textarea.ant-input-number { line-height: 22px; } .ant-list-item-content { + display: -webkit-box; display: flex; - flex: 1; - justify-content: flex-end; + -webkit-box-flex: 1; + flex: 1; + -webkit-box-pack: end; + justify-content: flex-end; } .ant-list-item-content-single { - justify-content: flex-start; + -webkit-box-pack: start; + justify-content: flex-start; } .ant-list-item-action { - font-size: 0; - flex: 0 0 auto; + -webkit-box-flex: 0; + flex: 0 0 auto; margin-left: 48px; padding: 0; + font-size: 0; list-style: none; } .ant-list-item-action > li { + position: relative; display: inline-block; - color: rgba(0, 0, 0, 0.45); - cursor: pointer; padding: 0 8px; - position: relative; + color: rgba(0, 0, 0, 0.45); font-size: 14px; line-height: 22px; text-align: center; + cursor: pointer; } .ant-list-item-action > li:first-child { padding-left: 0; } .ant-list-item-action-split { - background-color: #e8e8e8; - margin-top: -7px; position: absolute; top: 50%; right: 0; width: 1px; height: 14px; + margin-top: -7px; + background-color: #e8e8e8; } .ant-list-item-main { + display: -webkit-box; display: flex; - flex: 1; + -webkit-box-flex: 1; + flex: 1; +} +.ant-list-header { + background: transparent; +} +.ant-list-footer { + background: transparent; } .ant-list-header, .ant-list-footer { @@ -13481,8 +14425,8 @@ textarea.ant-input-number { padding-bottom: 12px; } .ant-list-empty { - color: rgba(0, 0, 0, 0.45); padding: 16px 0; + color: rgba(0, 0, 0, 0.45); font-size: 12px; text-align: center; } @@ -13513,11 +14457,13 @@ textarea.ant-input-number { display: block; } .ant-list-vertical .ant-list-item-extra-wrap { + display: -webkit-box; display: flex; } .ant-list-vertical .ant-list-item-main { display: block; - flex: 1; + -webkit-box-flex: 1; + flex: 1; } .ant-list-vertical .ant-list-item-extra { margin-left: 58px; @@ -13526,16 +14472,16 @@ textarea.ant-input-number { margin-bottom: 16px; } .ant-list-vertical .ant-list-item-meta-title { - color: rgba(0, 0, 0, 0.85); margin-bottom: 12px; + color: rgba(0, 0, 0, 0.85); font-size: 16px; line-height: 24px; } .ant-list-vertical .ant-list-item-content { display: block; + margin: 0 0 16px 0; color: rgba(0, 0, 0, 0.65); font-size: 14px; - margin: 0 0 16px 0; } .ant-list-vertical .ant-list-item-action { margin-left: auto; @@ -13547,38 +14493,38 @@ textarea.ant-input-number { padding-left: 0; } .ant-list-grid .ant-list-item { - border-bottom: none; + margin-bottom: 16px; padding-top: 0; padding-bottom: 0; - margin-bottom: 16px; + border-bottom: none; } .ant-list-grid .ant-list-item-content { display: block; max-width: 100%; } .ant-list-bordered { - border-radius: 5px; border: 1px solid #d9d9d9; + border-radius: 5px; } .ant-list-bordered .ant-list-header { - padding-left: 24px; padding-right: 24px; + padding-left: 24px; } .ant-list-bordered .ant-list-footer { - padding-left: 24px; padding-right: 24px; + padding-left: 24px; } .ant-list-bordered .ant-list-item { - border-bottom: 1px solid #e8e8e8; - padding-left: 24px; padding-right: 24px; + padding-left: 24px; + border-bottom: 1px solid #e8e8e8; } .ant-list-bordered .ant-list-pagination { margin: 16px 24px; } .ant-list-bordered.ant-list-sm .ant-list-item { - padding-left: 16px; padding-right: 16px; + padding-left: 16px; } .ant-list-bordered.ant-list-sm .ant-list-header, .ant-list-bordered.ant-list-sm .ant-list-footer { @@ -13614,58 +14560,61 @@ textarea.ant-input-number { } } .ant-menu { - font-family: "Chinese Quote", -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"; - font-size: 14px; - font-variant: tabular-nums; - line-height: 1.5; box-sizing: border-box; margin: 0; padding: 0; - outline: none; + font-size: 14px; + font-variant: tabular-nums; + line-height: 1.5; + font-feature-settings: 'tnum'; margin-bottom: 0; padding-left: 0; - list-style: none; - box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15); color: rgba(0, 0, 0, 0.65); - background: #fff; line-height: 0; + list-style: none; + background: #fff; + outline: none; + box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15); + -webkit-transition: background 0.3s, width 0.2s; transition: background 0.3s, width 0.2s; zoom: 1; } -.ant-menu:before, -.ant-menu:after { +.ant-menu::before, +.ant-menu::after { content: ''; display: table; } -.ant-menu:after { +.ant-menu::after { clear: both; } -.ant-menu:before, -.ant-menu:after { +.ant-menu::before, +.ant-menu::after { content: ''; display: table; } -.ant-menu:after { +.ant-menu::after { clear: both; } .ant-menu ul, .ant-menu ol { - list-style: none; margin: 0; padding: 0; + list-style: none; } .ant-menu-hidden { display: none; } .ant-menu-item-group-title { + padding: 8px 16px; color: rgba(0, 0, 0, 0.45); font-size: 14px; line-height: 1.5; - padding: 8px 16px; + -webkit-transition: all 0.3s; transition: all 0.3s; } .ant-menu-submenu, .ant-menu-submenu-inline { + -webkit-transition: border-color 0.3s cubic-bezier(0.645, 0.045, 0.355, 1), background 0.3s cubic-bezier(0.645, 0.045, 0.355, 1), padding 0.15s cubic-bezier(0.645, 0.045, 0.355, 1); transition: border-color 0.3s cubic-bezier(0.645, 0.045, 0.355, 1), background 0.3s cubic-bezier(0.645, 0.045, 0.355, 1), padding 0.15s cubic-bezier(0.645, 0.045, 0.355, 1); } .ant-menu-item:active, @@ -13674,6 +14623,7 @@ textarea.ant-input-number { } .ant-menu-submenu .ant-menu-sub { cursor: initial; + -webkit-transition: background 0.3s cubic-bezier(0.645, 0.045, 0.355, 1), padding 0.3s cubic-bezier(0.645, 0.045, 0.355, 1); transition: background 0.3s cubic-bezier(0.645, 0.045, 0.355, 1), padding 0.3s cubic-bezier(0.645, 0.045, 0.355, 1); } .ant-menu-item > a { @@ -13686,20 +14636,20 @@ textarea.ant-input-number { .ant-menu-item > a:focus { text-decoration: none; } -.ant-menu-item > a:before { +.ant-menu-item > a::before { position: absolute; - background-color: transparent; top: 0; - left: 0; - bottom: 0; right: 0; + bottom: 0; + left: 0; + background-color: transparent; content: ''; } .ant-menu-item-divider { height: 1px; overflow: hidden; - background-color: #e8e8e8; line-height: 0; + background-color: #e8e8e8; } .ant-menu-item:hover, .ant-menu-item-active, @@ -13738,20 +14688,21 @@ textarea.ant-input-number { .ant-menu-vertical.ant-menu-sub, .ant-menu-vertical-left.ant-menu-sub, .ant-menu-vertical-right.ant-menu-sub { - border-right: 0; padding: 0; - transform-origin: 0 0; + border-right: 0; + -webkit-transform-origin: 0 0; + transform-origin: 0 0; } .ant-menu-vertical.ant-menu-sub .ant-menu-item, .ant-menu-vertical-left.ant-menu-sub .ant-menu-item, .ant-menu-vertical-right.ant-menu-sub .ant-menu-item { - border-right: 0; - margin-left: 0; left: 0; + margin-left: 0; + border-right: 0; } -.ant-menu-vertical.ant-menu-sub .ant-menu-item:after, -.ant-menu-vertical-left.ant-menu-sub .ant-menu-item:after, -.ant-menu-vertical-right.ant-menu-sub .ant-menu-item:after { +.ant-menu-vertical.ant-menu-sub .ant-menu-item::after, +.ant-menu-vertical-left.ant-menu-sub .ant-menu-item::after, +.ant-menu-vertical-right.ant-menu-sub .ant-menu-item::after { border-right: 0; } .ant-menu-vertical.ant-menu-sub > .ant-menu-item, @@ -13760,7 +14711,8 @@ textarea.ant-input-number { .ant-menu-vertical.ant-menu-sub > .ant-menu-submenu, .ant-menu-vertical-left.ant-menu-sub > .ant-menu-submenu, .ant-menu-vertical-right.ant-menu-sub > .ant-menu-submenu { - transform-origin: 0 0; + -webkit-transform-origin: 0 0; + transform-origin: 0 0; } .ant-menu-horizontal.ant-menu-sub, .ant-menu-vertical.ant-menu-sub, @@ -13770,12 +14722,13 @@ textarea.ant-input-number { } .ant-menu-item, .ant-menu-submenu-title { - cursor: pointer; - margin: 0; - padding: 0 20px; position: relative; display: block; + margin: 0; + padding: 0 20px; white-space: nowrap; + cursor: pointer; + -webkit-transition: color 0.3s cubic-bezier(0.645, 0.045, 0.355, 1), border-color 0.3s cubic-bezier(0.645, 0.045, 0.355, 1), background 0.3s cubic-bezier(0.645, 0.045, 0.355, 1), padding 0.15s cubic-bezier(0.645, 0.045, 0.355, 1); transition: color 0.3s cubic-bezier(0.645, 0.045, 0.355, 1), border-color 0.3s cubic-bezier(0.645, 0.045, 0.355, 1), background 0.3s cubic-bezier(0.645, 0.045, 0.355, 1), padding 0.15s cubic-bezier(0.645, 0.045, 0.355, 1); } .ant-menu-item .anticon, @@ -13783,110 +14736,129 @@ textarea.ant-input-number { min-width: 14px; margin-right: 10px; font-size: 14px; + -webkit-transition: font-size 0.15s cubic-bezier(0.215, 0.61, 0.355, 1), margin 0.3s cubic-bezier(0.645, 0.045, 0.355, 1); transition: font-size 0.15s cubic-bezier(0.215, 0.61, 0.355, 1), margin 0.3s cubic-bezier(0.645, 0.045, 0.355, 1); } .ant-menu-item .anticon + span, .ant-menu-submenu-title .anticon + span { - transition: opacity 0.3s cubic-bezier(0.645, 0.045, 0.355, 1), width 0.3s cubic-bezier(0.645, 0.045, 0.355, 1); opacity: 1; + -webkit-transition: opacity 0.3s cubic-bezier(0.645, 0.045, 0.355, 1), width 0.3s cubic-bezier(0.645, 0.045, 0.355, 1); + transition: opacity 0.3s cubic-bezier(0.645, 0.045, 0.355, 1), width 0.3s cubic-bezier(0.645, 0.045, 0.355, 1); } .ant-menu > .ant-menu-item-divider { height: 1px; margin: 1px 0; - overflow: hidden; padding: 0; + overflow: hidden; line-height: 0; background-color: #e8e8e8; } .ant-menu-submenu-popup { position: absolute; - border-radius: 5px; z-index: 1050; background: #fff; + border-radius: 5px; } .ant-menu-submenu-popup .submenu-title-wrapper { padding-right: 20px; } -.ant-menu-submenu-popup:before { +.ant-menu-submenu-popup::before { position: absolute; top: -7px; - left: 0; right: 0; bottom: 0; - content: ' '; + left: 0; opacity: 0.0001; + content: ' '; } .ant-menu-submenu > .ant-menu { background-color: #fff; border-radius: 5px; } -.ant-menu-submenu > .ant-menu-submenu-title:after { +.ant-menu-submenu > .ant-menu-submenu-title::after { + -webkit-transition: -webkit-transform 0.3s cubic-bezier(0.645, 0.045, 0.355, 1); + transition: -webkit-transform 0.3s cubic-bezier(0.645, 0.045, 0.355, 1); transition: transform 0.3s cubic-bezier(0.645, 0.045, 0.355, 1); + transition: transform 0.3s cubic-bezier(0.645, 0.045, 0.355, 1), -webkit-transform 0.3s cubic-bezier(0.645, 0.045, 0.355, 1); } .ant-menu-submenu-vertical > .ant-menu-submenu-title .ant-menu-submenu-arrow, .ant-menu-submenu-vertical-left > .ant-menu-submenu-title .ant-menu-submenu-arrow, .ant-menu-submenu-vertical-right > .ant-menu-submenu-title .ant-menu-submenu-arrow, .ant-menu-submenu-inline > .ant-menu-submenu-title .ant-menu-submenu-arrow { - transition: transform 0.3s cubic-bezier(0.645, 0.045, 0.355, 1); position: absolute; top: 50%; right: 16px; width: 10px; -} -.ant-menu-submenu-vertical > .ant-menu-submenu-title .ant-menu-submenu-arrow:before, -.ant-menu-submenu-vertical-left > .ant-menu-submenu-title .ant-menu-submenu-arrow:before, -.ant-menu-submenu-vertical-right > .ant-menu-submenu-title .ant-menu-submenu-arrow:before, -.ant-menu-submenu-inline > .ant-menu-submenu-title .ant-menu-submenu-arrow:before, -.ant-menu-submenu-vertical > .ant-menu-submenu-title .ant-menu-submenu-arrow:after, -.ant-menu-submenu-vertical-left > .ant-menu-submenu-title .ant-menu-submenu-arrow:after, -.ant-menu-submenu-vertical-right > .ant-menu-submenu-title .ant-menu-submenu-arrow:after, -.ant-menu-submenu-inline > .ant-menu-submenu-title .ant-menu-submenu-arrow:after { - content: ''; + -webkit-transition: -webkit-transform 0.3s cubic-bezier(0.645, 0.045, 0.355, 1); + transition: -webkit-transform 0.3s cubic-bezier(0.645, 0.045, 0.355, 1); + transition: transform 0.3s cubic-bezier(0.645, 0.045, 0.355, 1); + transition: transform 0.3s cubic-bezier(0.645, 0.045, 0.355, 1), -webkit-transform 0.3s cubic-bezier(0.645, 0.045, 0.355, 1); +} +.ant-menu-submenu-vertical > .ant-menu-submenu-title .ant-menu-submenu-arrow::before, +.ant-menu-submenu-vertical-left > .ant-menu-submenu-title .ant-menu-submenu-arrow::before, +.ant-menu-submenu-vertical-right > .ant-menu-submenu-title .ant-menu-submenu-arrow::before, +.ant-menu-submenu-inline > .ant-menu-submenu-title .ant-menu-submenu-arrow::before, +.ant-menu-submenu-vertical > .ant-menu-submenu-title .ant-menu-submenu-arrow::after, +.ant-menu-submenu-vertical-left > .ant-menu-submenu-title .ant-menu-submenu-arrow::after, +.ant-menu-submenu-vertical-right > .ant-menu-submenu-title .ant-menu-submenu-arrow::after, +.ant-menu-submenu-inline > .ant-menu-submenu-title .ant-menu-submenu-arrow::after { position: absolute; - vertical-align: baseline; - background: #fff; - background-image: linear-gradient(to right, rgba(0, 0, 0, 0.65), rgba(0, 0, 0, 0.65)); width: 6px; height: 1.5px; + background: #fff; + background-image: -webkit-gradient(linear, left top, right top, from(rgba(0, 0, 0, 0.65)), to(rgba(0, 0, 0, 0.65))); + background-image: linear-gradient(to right, rgba(0, 0, 0, 0.65), rgba(0, 0, 0, 0.65)); border-radius: 2px; + -webkit-transition: background 0.3s cubic-bezier(0.645, 0.045, 0.355, 1), top 0.3s cubic-bezier(0.645, 0.045, 0.355, 1), -webkit-transform 0.3s cubic-bezier(0.645, 0.045, 0.355, 1); + transition: background 0.3s cubic-bezier(0.645, 0.045, 0.355, 1), top 0.3s cubic-bezier(0.645, 0.045, 0.355, 1), -webkit-transform 0.3s cubic-bezier(0.645, 0.045, 0.355, 1); transition: background 0.3s cubic-bezier(0.645, 0.045, 0.355, 1), transform 0.3s cubic-bezier(0.645, 0.045, 0.355, 1), top 0.3s cubic-bezier(0.645, 0.045, 0.355, 1); + transition: background 0.3s cubic-bezier(0.645, 0.045, 0.355, 1), transform 0.3s cubic-bezier(0.645, 0.045, 0.355, 1), top 0.3s cubic-bezier(0.645, 0.045, 0.355, 1), -webkit-transform 0.3s cubic-bezier(0.645, 0.045, 0.355, 1); + content: ''; } -.ant-menu-submenu-vertical > .ant-menu-submenu-title .ant-menu-submenu-arrow:before, -.ant-menu-submenu-vertical-left > .ant-menu-submenu-title .ant-menu-submenu-arrow:before, -.ant-menu-submenu-vertical-right > .ant-menu-submenu-title .ant-menu-submenu-arrow:before, -.ant-menu-submenu-inline > .ant-menu-submenu-title .ant-menu-submenu-arrow:before { - transform: rotate(45deg) translateY(-2px); -} -.ant-menu-submenu-vertical > .ant-menu-submenu-title .ant-menu-submenu-arrow:after, -.ant-menu-submenu-vertical-left > .ant-menu-submenu-title .ant-menu-submenu-arrow:after, -.ant-menu-submenu-vertical-right > .ant-menu-submenu-title .ant-menu-submenu-arrow:after, -.ant-menu-submenu-inline > .ant-menu-submenu-title .ant-menu-submenu-arrow:after { - transform: rotate(-45deg) translateY(2px); -} -.ant-menu-submenu-vertical > .ant-menu-submenu-title:hover .ant-menu-submenu-arrow:after, -.ant-menu-submenu-vertical-left > .ant-menu-submenu-title:hover .ant-menu-submenu-arrow:after, -.ant-menu-submenu-vertical-right > .ant-menu-submenu-title:hover .ant-menu-submenu-arrow:after, -.ant-menu-submenu-inline > .ant-menu-submenu-title:hover .ant-menu-submenu-arrow:after, -.ant-menu-submenu-vertical > .ant-menu-submenu-title:hover .ant-menu-submenu-arrow:before, -.ant-menu-submenu-vertical-left > .ant-menu-submenu-title:hover .ant-menu-submenu-arrow:before, -.ant-menu-submenu-vertical-right > .ant-menu-submenu-title:hover .ant-menu-submenu-arrow:before, -.ant-menu-submenu-inline > .ant-menu-submenu-title:hover .ant-menu-submenu-arrow:before { +.ant-menu-submenu-vertical > .ant-menu-submenu-title .ant-menu-submenu-arrow::before, +.ant-menu-submenu-vertical-left > .ant-menu-submenu-title .ant-menu-submenu-arrow::before, +.ant-menu-submenu-vertical-right > .ant-menu-submenu-title .ant-menu-submenu-arrow::before, +.ant-menu-submenu-inline > .ant-menu-submenu-title .ant-menu-submenu-arrow::before { + -webkit-transform: rotate(45deg) translateY(-2px); + transform: rotate(45deg) translateY(-2px); +} +.ant-menu-submenu-vertical > .ant-menu-submenu-title .ant-menu-submenu-arrow::after, +.ant-menu-submenu-vertical-left > .ant-menu-submenu-title .ant-menu-submenu-arrow::after, +.ant-menu-submenu-vertical-right > .ant-menu-submenu-title .ant-menu-submenu-arrow::after, +.ant-menu-submenu-inline > .ant-menu-submenu-title .ant-menu-submenu-arrow::after { + -webkit-transform: rotate(-45deg) translateY(2px); + transform: rotate(-45deg) translateY(2px); +} +.ant-menu-submenu-vertical > .ant-menu-submenu-title:hover .ant-menu-submenu-arrow::after, +.ant-menu-submenu-vertical-left > .ant-menu-submenu-title:hover .ant-menu-submenu-arrow::after, +.ant-menu-submenu-vertical-right > .ant-menu-submenu-title:hover .ant-menu-submenu-arrow::after, +.ant-menu-submenu-inline > .ant-menu-submenu-title:hover .ant-menu-submenu-arrow::after, +.ant-menu-submenu-vertical > .ant-menu-submenu-title:hover .ant-menu-submenu-arrow::before, +.ant-menu-submenu-vertical-left > .ant-menu-submenu-title:hover .ant-menu-submenu-arrow::before, +.ant-menu-submenu-vertical-right > .ant-menu-submenu-title:hover .ant-menu-submenu-arrow::before, +.ant-menu-submenu-inline > .ant-menu-submenu-title:hover .ant-menu-submenu-arrow::before { + background: -webkit-gradient(linear, left top, right top, from(#E64448), to(#E64448)); background: linear-gradient(to right, #E64448, #E64448); } -.ant-menu-submenu-inline > .ant-menu-submenu-title .ant-menu-submenu-arrow:before { - transform: rotate(-45deg) translateX(2px); +.ant-menu-submenu-inline > .ant-menu-submenu-title .ant-menu-submenu-arrow::before { + -webkit-transform: rotate(-45deg) translateX(2px); + transform: rotate(-45deg) translateX(2px); } -.ant-menu-submenu-inline > .ant-menu-submenu-title .ant-menu-submenu-arrow:after { - transform: rotate(45deg) translateX(-2px); +.ant-menu-submenu-inline > .ant-menu-submenu-title .ant-menu-submenu-arrow::after { + -webkit-transform: rotate(45deg) translateX(-2px); + transform: rotate(45deg) translateX(-2px); } .ant-menu-submenu-open.ant-menu-submenu-inline > .ant-menu-submenu-title .ant-menu-submenu-arrow { - transform: translateY(-2px); + -webkit-transform: translateY(-2px); + transform: translateY(-2px); } -.ant-menu-submenu-open.ant-menu-submenu-inline > .ant-menu-submenu-title .ant-menu-submenu-arrow:after { - transform: rotate(-45deg) translateX(-2px); +.ant-menu-submenu-open.ant-menu-submenu-inline > .ant-menu-submenu-title .ant-menu-submenu-arrow::after { + -webkit-transform: rotate(-45deg) translateX(-2px); + transform: rotate(-45deg) translateX(-2px); } -.ant-menu-submenu-open.ant-menu-submenu-inline > .ant-menu-submenu-title .ant-menu-submenu-arrow:before { - transform: rotate(45deg) translateX(2px); +.ant-menu-submenu-open.ant-menu-submenu-inline > .ant-menu-submenu-title .ant-menu-submenu-arrow::before { + -webkit-transform: rotate(45deg) translateX(2px); + transform: rotate(45deg) translateX(2px); } .ant-menu-vertical .ant-menu-submenu-selected, .ant-menu-vertical-left .ant-menu-submenu-selected, @@ -13899,11 +14871,11 @@ textarea.ant-input-number { color: #E64448; } .ant-menu-horizontal { + line-height: 46px; + white-space: nowrap; border: 0; border-bottom: 1px solid #e8e8e8; box-shadow: none; - line-height: 46px; - white-space: nowrap; } .ant-menu-horizontal > .ant-menu-item, .ant-menu-horizontal > .ant-menu-submenu { @@ -13921,8 +14893,8 @@ textarea.ant-input-number { .ant-menu-horizontal > .ant-menu-submenu-open, .ant-menu-horizontal > .ant-menu-item-selected, .ant-menu-horizontal > .ant-menu-submenu-selected { - border-bottom: 2px solid #E64448; color: #E64448; + border-bottom: 2px solid #E64448; } .ant-menu-horizontal > .ant-menu-item > a { display: block; @@ -13931,17 +14903,17 @@ textarea.ant-input-number { .ant-menu-horizontal > .ant-menu-item > a:hover { color: #E64448; } -.ant-menu-horizontal > .ant-menu-item > a:before { +.ant-menu-horizontal > .ant-menu-item > a::before { bottom: -2px; } .ant-menu-horizontal > .ant-menu-item-selected > a { color: #E64448; } -.ant-menu-horizontal:after { - content: ' '; +.ant-menu-horizontal::after { display: block; - height: 0; clear: both; + height: 0; + content: ' '; } .ant-menu-vertical .ant-menu-item, .ant-menu-vertical-left .ant-menu-item, @@ -13949,19 +14921,23 @@ textarea.ant-input-number { .ant-menu-inline .ant-menu-item { position: relative; } -.ant-menu-vertical .ant-menu-item:after, -.ant-menu-vertical-left .ant-menu-item:after, -.ant-menu-vertical-right .ant-menu-item:after, -.ant-menu-inline .ant-menu-item:after { - content: ''; +.ant-menu-vertical .ant-menu-item::after, +.ant-menu-vertical-left .ant-menu-item::after, +.ant-menu-vertical-right .ant-menu-item::after, +.ant-menu-inline .ant-menu-item::after { position: absolute; - right: 0; top: 0; + right: 0; bottom: 0; border-right: 3px solid #E64448; - transform: scaleY(0.0001); + -webkit-transform: scaleY(0.0001); + transform: scaleY(0.0001); opacity: 0; + -webkit-transition: opacity 0.15s cubic-bezier(0.215, 0.61, 0.355, 1), -webkit-transform 0.15s cubic-bezier(0.215, 0.61, 0.355, 1); + transition: opacity 0.15s cubic-bezier(0.215, 0.61, 0.355, 1), -webkit-transform 0.15s cubic-bezier(0.215, 0.61, 0.355, 1); transition: transform 0.15s cubic-bezier(0.215, 0.61, 0.355, 1), opacity 0.15s cubic-bezier(0.215, 0.61, 0.355, 1); + transition: transform 0.15s cubic-bezier(0.215, 0.61, 0.355, 1), opacity 0.15s cubic-bezier(0.215, 0.61, 0.355, 1), -webkit-transform 0.15s cubic-bezier(0.215, 0.61, 0.355, 1); + content: ''; } .ant-menu-vertical .ant-menu-item, .ant-menu-vertical-left .ant-menu-item, @@ -13971,20 +14947,20 @@ textarea.ant-input-number { .ant-menu-vertical-left .ant-menu-submenu-title, .ant-menu-vertical-right .ant-menu-submenu-title, .ant-menu-inline .ant-menu-submenu-title { - padding: 0 16px; - font-size: 14px; - line-height: 40px; height: 40px; margin-top: 4px; margin-bottom: 4px; + padding: 0 16px; overflow: hidden; + font-size: 14px; + line-height: 40px; text-overflow: ellipsis; } .ant-menu-vertical .ant-menu-submenu, .ant-menu-vertical-left .ant-menu-submenu, .ant-menu-vertical-right .ant-menu-submenu, .ant-menu-inline .ant-menu-submenu { - padding-bottom: 0.01px; + padding-bottom: 0.02px; } .ant-menu-vertical .ant-menu-item:not(:last-child), .ant-menu-vertical-left .ant-menu-item:not(:last-child), @@ -14000,17 +14976,21 @@ textarea.ant-input-number { .ant-menu-vertical-left > .ant-menu-submenu > .ant-menu-submenu-title, .ant-menu-vertical-right > .ant-menu-submenu > .ant-menu-submenu-title, .ant-menu-inline > .ant-menu-submenu > .ant-menu-submenu-title { - line-height: 40px; height: 40px; + line-height: 40px; } .ant-menu-inline { width: 100%; } -.ant-menu-inline .ant-menu-selected:after, -.ant-menu-inline .ant-menu-item-selected:after { - transition: transform 0.15s cubic-bezier(0.645, 0.045, 0.355, 1), opacity 0.15s cubic-bezier(0.645, 0.045, 0.355, 1); +.ant-menu-inline .ant-menu-selected::after, +.ant-menu-inline .ant-menu-item-selected::after { + -webkit-transform: scaleY(1); + transform: scaleY(1); opacity: 1; - transform: scaleY(1); + -webkit-transition: opacity 0.15s cubic-bezier(0.645, 0.045, 0.355, 1), -webkit-transform 0.15s cubic-bezier(0.645, 0.045, 0.355, 1); + transition: opacity 0.15s cubic-bezier(0.645, 0.045, 0.355, 1), -webkit-transform 0.15s cubic-bezier(0.645, 0.045, 0.355, 1); + transition: transform 0.15s cubic-bezier(0.645, 0.045, 0.355, 1), opacity 0.15s cubic-bezier(0.645, 0.045, 0.355, 1); + transition: transform 0.15s cubic-bezier(0.645, 0.045, 0.355, 1), opacity 0.15s cubic-bezier(0.645, 0.045, 0.355, 1), -webkit-transform 0.15s cubic-bezier(0.645, 0.045, 0.355, 1); } .ant-menu-inline .ant-menu-item, .ant-menu-inline .ant-menu-submenu-title { @@ -14027,8 +15007,8 @@ textarea.ant-input-number { .ant-menu-inline-collapsed > .ant-menu-item-group > .ant-menu-item-group-list > .ant-menu-submenu > .ant-menu-submenu-title, .ant-menu-inline-collapsed > .ant-menu-submenu > .ant-menu-submenu-title { left: 0; - text-overflow: clip; padding: 0 32px !important; + text-overflow: clip; } .ant-menu-inline-collapsed > .ant-menu-item .ant-menu-submenu-arrow, .ant-menu-inline-collapsed > .ant-menu-item-group > .ant-menu-item-group-list > .ant-menu-item .ant-menu-submenu-arrow, @@ -14040,16 +15020,16 @@ textarea.ant-input-number { .ant-menu-inline-collapsed > .ant-menu-item-group > .ant-menu-item-group-list > .ant-menu-item .anticon, .ant-menu-inline-collapsed > .ant-menu-item-group > .ant-menu-item-group-list > .ant-menu-submenu > .ant-menu-submenu-title .anticon, .ant-menu-inline-collapsed > .ant-menu-submenu > .ant-menu-submenu-title .anticon { + margin: 0; font-size: 16px; line-height: 40px; - margin: 0; } .ant-menu-inline-collapsed > .ant-menu-item .anticon + span, .ant-menu-inline-collapsed > .ant-menu-item-group > .ant-menu-item-group-list > .ant-menu-item .anticon + span, .ant-menu-inline-collapsed > .ant-menu-item-group > .ant-menu-item-group-list > .ant-menu-submenu > .ant-menu-submenu-title .anticon + span, .ant-menu-inline-collapsed > .ant-menu-submenu > .ant-menu-submenu-title .anticon + span { - max-width: 0; display: inline-block; + max-width: 0; opacity: 0; } .ant-menu-inline-collapsed-tooltip { @@ -14062,11 +15042,11 @@ textarea.ant-input-number { color: rgba(255, 255, 255, 0.85); } .ant-menu-inline-collapsed .ant-menu-item-group-title { + padding-right: 4px; + padding-left: 4px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; - padding-left: 4px; - padding-right: 4px; } .ant-menu-item-group-list { margin: 0; @@ -14085,15 +15065,15 @@ textarea.ant-input-number { .ant-menu-sub.ant-menu-inline { padding: 0; border: 0; - box-shadow: none; border-radius: 0; + box-shadow: none; } .ant-menu-sub.ant-menu-inline > .ant-menu-item, .ant-menu-sub.ant-menu-inline > .ant-menu-submenu > .ant-menu-submenu-title { - line-height: 40px; height: 40px; - list-style-type: disc; + line-height: 40px; list-style-position: inside; + list-style-type: disc; } .ant-menu-sub.ant-menu-inline .ant-menu-item-group-title { padding-left: 32px; @@ -14101,9 +15081,9 @@ textarea.ant-input-number { .ant-menu-item-disabled, .ant-menu-submenu-disabled { color: rgba(0, 0, 0, 0.25) !important; - cursor: not-allowed; background: none; border-color: transparent !important; + cursor: not-allowed; } .ant-menu-item-disabled > a, .ant-menu-submenu-disabled > a { @@ -14115,10 +15095,10 @@ textarea.ant-input-number { color: rgba(0, 0, 0, 0.25) !important; cursor: not-allowed; } -.ant-menu-item-disabled > .ant-menu-submenu-title > .ant-menu-submenu-arrow:before, -.ant-menu-submenu-disabled > .ant-menu-submenu-title > .ant-menu-submenu-arrow:before, -.ant-menu-item-disabled > .ant-menu-submenu-title > .ant-menu-submenu-arrow:after, -.ant-menu-submenu-disabled > .ant-menu-submenu-title > .ant-menu-submenu-arrow:after { +.ant-menu-item-disabled > .ant-menu-submenu-title > .ant-menu-submenu-arrow::before, +.ant-menu-submenu-disabled > .ant-menu-submenu-title > .ant-menu-submenu-arrow::before, +.ant-menu-item-disabled > .ant-menu-submenu-title > .ant-menu-submenu-arrow::after, +.ant-menu-submenu-disabled > .ant-menu-submenu-title > .ant-menu-submenu-arrow::after { background: rgba(0, 0, 0, 0.25) !important; } .ant-menu-dark, @@ -14129,12 +15109,13 @@ textarea.ant-input-number { .ant-menu-dark .ant-menu-submenu-title .ant-menu-submenu-arrow, .ant-menu-dark .ant-menu-sub .ant-menu-submenu-title .ant-menu-submenu-arrow { opacity: 0.45; + -webkit-transition: all 0.3s; transition: all 0.3s; } -.ant-menu-dark .ant-menu-submenu-title .ant-menu-submenu-arrow:after, -.ant-menu-dark .ant-menu-sub .ant-menu-submenu-title .ant-menu-submenu-arrow:after, -.ant-menu-dark .ant-menu-submenu-title .ant-menu-submenu-arrow:before, -.ant-menu-dark .ant-menu-sub .ant-menu-submenu-title .ant-menu-submenu-arrow:before { +.ant-menu-dark .ant-menu-submenu-title .ant-menu-submenu-arrow::after, +.ant-menu-dark .ant-menu-sub .ant-menu-submenu-title .ant-menu-submenu-arrow::after, +.ant-menu-dark .ant-menu-submenu-title .ant-menu-submenu-arrow::before, +.ant-menu-dark .ant-menu-sub .ant-menu-submenu-title .ant-menu-submenu-arrow::before { background: #fff; } .ant-menu-dark.ant-menu-submenu-popup { @@ -14149,12 +15130,12 @@ textarea.ant-input-number { } .ant-menu-dark.ant-menu-horizontal > .ant-menu-item, .ant-menu-dark.ant-menu-horizontal > .ant-menu-submenu { - border-color: #001529; - border-bottom: 0; top: 0; margin-top: 0; + border-color: #001529; + border-bottom: 0; } -.ant-menu-dark.ant-menu-horizontal > .ant-menu-item > a:before { +.ant-menu-dark.ant-menu-horizontal > .ant-menu-item > a::before { bottom: 0; } .ant-menu-dark .ant-menu-item, @@ -14172,14 +15153,14 @@ textarea.ant-input-number { .ant-menu-dark.ant-menu-vertical .ant-menu-item, .ant-menu-dark.ant-menu-vertical-left .ant-menu-item, .ant-menu-dark.ant-menu-vertical-right .ant-menu-item { - border-right: 0; - margin-left: 0; left: 0; + margin-left: 0; + border-right: 0; } -.ant-menu-dark.ant-menu-inline .ant-menu-item:after, -.ant-menu-dark.ant-menu-vertical .ant-menu-item:after, -.ant-menu-dark.ant-menu-vertical-left .ant-menu-item:after, -.ant-menu-dark.ant-menu-vertical-right .ant-menu-item:after { +.ant-menu-dark.ant-menu-inline .ant-menu-item::after, +.ant-menu-dark.ant-menu-vertical .ant-menu-item::after, +.ant-menu-dark.ant-menu-vertical-left .ant-menu-item::after, +.ant-menu-dark.ant-menu-vertical-right .ant-menu-item::after { border-right: 0; } .ant-menu-dark.ant-menu-inline .ant-menu-item, @@ -14192,8 +15173,8 @@ textarea.ant-input-number { .ant-menu-dark .ant-menu-submenu-open, .ant-menu-dark .ant-menu-submenu-selected, .ant-menu-dark .ant-menu-submenu-title:hover { - background-color: transparent; color: #fff; + background-color: transparent; } .ant-menu-dark .ant-menu-item:hover > a, .ant-menu-dark .ant-menu-item-active > a, @@ -14217,37 +15198,37 @@ textarea.ant-input-number { .ant-menu-dark .ant-menu-submenu-title:hover > .ant-menu-submenu-title:hover > .ant-menu-submenu-arrow { opacity: 1; } -.ant-menu-dark .ant-menu-item:hover > .ant-menu-submenu-title > .ant-menu-submenu-arrow:after, -.ant-menu-dark .ant-menu-item-active > .ant-menu-submenu-title > .ant-menu-submenu-arrow:after, -.ant-menu-dark .ant-menu-submenu-active > .ant-menu-submenu-title > .ant-menu-submenu-arrow:after, -.ant-menu-dark .ant-menu-submenu-open > .ant-menu-submenu-title > .ant-menu-submenu-arrow:after, -.ant-menu-dark .ant-menu-submenu-selected > .ant-menu-submenu-title > .ant-menu-submenu-arrow:after, -.ant-menu-dark .ant-menu-submenu-title:hover > .ant-menu-submenu-title > .ant-menu-submenu-arrow:after, -.ant-menu-dark .ant-menu-item:hover > .ant-menu-submenu-title:hover > .ant-menu-submenu-arrow:after, -.ant-menu-dark .ant-menu-item-active > .ant-menu-submenu-title:hover > .ant-menu-submenu-arrow:after, -.ant-menu-dark .ant-menu-submenu-active > .ant-menu-submenu-title:hover > .ant-menu-submenu-arrow:after, -.ant-menu-dark .ant-menu-submenu-open > .ant-menu-submenu-title:hover > .ant-menu-submenu-arrow:after, -.ant-menu-dark .ant-menu-submenu-selected > .ant-menu-submenu-title:hover > .ant-menu-submenu-arrow:after, -.ant-menu-dark .ant-menu-submenu-title:hover > .ant-menu-submenu-title:hover > .ant-menu-submenu-arrow:after, -.ant-menu-dark .ant-menu-item:hover > .ant-menu-submenu-title > .ant-menu-submenu-arrow:before, -.ant-menu-dark .ant-menu-item-active > .ant-menu-submenu-title > .ant-menu-submenu-arrow:before, -.ant-menu-dark .ant-menu-submenu-active > .ant-menu-submenu-title > .ant-menu-submenu-arrow:before, -.ant-menu-dark .ant-menu-submenu-open > .ant-menu-submenu-title > .ant-menu-submenu-arrow:before, -.ant-menu-dark .ant-menu-submenu-selected > .ant-menu-submenu-title > .ant-menu-submenu-arrow:before, -.ant-menu-dark .ant-menu-submenu-title:hover > .ant-menu-submenu-title > .ant-menu-submenu-arrow:before, -.ant-menu-dark .ant-menu-item:hover > .ant-menu-submenu-title:hover > .ant-menu-submenu-arrow:before, -.ant-menu-dark .ant-menu-item-active > .ant-menu-submenu-title:hover > .ant-menu-submenu-arrow:before, -.ant-menu-dark .ant-menu-submenu-active > .ant-menu-submenu-title:hover > .ant-menu-submenu-arrow:before, -.ant-menu-dark .ant-menu-submenu-open > .ant-menu-submenu-title:hover > .ant-menu-submenu-arrow:before, -.ant-menu-dark .ant-menu-submenu-selected > .ant-menu-submenu-title:hover > .ant-menu-submenu-arrow:before, -.ant-menu-dark .ant-menu-submenu-title:hover > .ant-menu-submenu-title:hover > .ant-menu-submenu-arrow:before { +.ant-menu-dark .ant-menu-item:hover > .ant-menu-submenu-title > .ant-menu-submenu-arrow::after, +.ant-menu-dark .ant-menu-item-active > .ant-menu-submenu-title > .ant-menu-submenu-arrow::after, +.ant-menu-dark .ant-menu-submenu-active > .ant-menu-submenu-title > .ant-menu-submenu-arrow::after, +.ant-menu-dark .ant-menu-submenu-open > .ant-menu-submenu-title > .ant-menu-submenu-arrow::after, +.ant-menu-dark .ant-menu-submenu-selected > .ant-menu-submenu-title > .ant-menu-submenu-arrow::after, +.ant-menu-dark .ant-menu-submenu-title:hover > .ant-menu-submenu-title > .ant-menu-submenu-arrow::after, +.ant-menu-dark .ant-menu-item:hover > .ant-menu-submenu-title:hover > .ant-menu-submenu-arrow::after, +.ant-menu-dark .ant-menu-item-active > .ant-menu-submenu-title:hover > .ant-menu-submenu-arrow::after, +.ant-menu-dark .ant-menu-submenu-active > .ant-menu-submenu-title:hover > .ant-menu-submenu-arrow::after, +.ant-menu-dark .ant-menu-submenu-open > .ant-menu-submenu-title:hover > .ant-menu-submenu-arrow::after, +.ant-menu-dark .ant-menu-submenu-selected > .ant-menu-submenu-title:hover > .ant-menu-submenu-arrow::after, +.ant-menu-dark .ant-menu-submenu-title:hover > .ant-menu-submenu-title:hover > .ant-menu-submenu-arrow::after, +.ant-menu-dark .ant-menu-item:hover > .ant-menu-submenu-title > .ant-menu-submenu-arrow::before, +.ant-menu-dark .ant-menu-item-active > .ant-menu-submenu-title > .ant-menu-submenu-arrow::before, +.ant-menu-dark .ant-menu-submenu-active > .ant-menu-submenu-title > .ant-menu-submenu-arrow::before, +.ant-menu-dark .ant-menu-submenu-open > .ant-menu-submenu-title > .ant-menu-submenu-arrow::before, +.ant-menu-dark .ant-menu-submenu-selected > .ant-menu-submenu-title > .ant-menu-submenu-arrow::before, +.ant-menu-dark .ant-menu-submenu-title:hover > .ant-menu-submenu-title > .ant-menu-submenu-arrow::before, +.ant-menu-dark .ant-menu-item:hover > .ant-menu-submenu-title:hover > .ant-menu-submenu-arrow::before, +.ant-menu-dark .ant-menu-item-active > .ant-menu-submenu-title:hover > .ant-menu-submenu-arrow::before, +.ant-menu-dark .ant-menu-submenu-active > .ant-menu-submenu-title:hover > .ant-menu-submenu-arrow::before, +.ant-menu-dark .ant-menu-submenu-open > .ant-menu-submenu-title:hover > .ant-menu-submenu-arrow::before, +.ant-menu-dark .ant-menu-submenu-selected > .ant-menu-submenu-title:hover > .ant-menu-submenu-arrow::before, +.ant-menu-dark .ant-menu-submenu-title:hover > .ant-menu-submenu-title:hover > .ant-menu-submenu-arrow::before { background: #fff; } .ant-menu-dark .ant-menu-item-selected { - border-right: 0; color: #fff; + border-right: 0; } -.ant-menu-dark .ant-menu-item-selected:after { +.ant-menu-dark .ant-menu-item-selected::after { border-right: 0; } .ant-menu-dark .ant-menu-item-selected > a, @@ -14262,34 +15243,34 @@ textarea.ant-input-number { .ant-menu-dark .ant-menu-submenu-disabled, .ant-menu-dark .ant-menu-item-disabled > a, .ant-menu-dark .ant-menu-submenu-disabled > a { - opacity: 0.8; color: rgba(255, 255, 255, 0.35) !important; + opacity: 0.8; } .ant-menu-dark .ant-menu-item-disabled > .ant-menu-submenu-title, .ant-menu-dark .ant-menu-submenu-disabled > .ant-menu-submenu-title { color: rgba(255, 255, 255, 0.35) !important; } -.ant-menu-dark .ant-menu-item-disabled > .ant-menu-submenu-title > .ant-menu-submenu-arrow:before, -.ant-menu-dark .ant-menu-submenu-disabled > .ant-menu-submenu-title > .ant-menu-submenu-arrow:before, -.ant-menu-dark .ant-menu-item-disabled > .ant-menu-submenu-title > .ant-menu-submenu-arrow:after, -.ant-menu-dark .ant-menu-submenu-disabled > .ant-menu-submenu-title > .ant-menu-submenu-arrow:after { +.ant-menu-dark .ant-menu-item-disabled > .ant-menu-submenu-title > .ant-menu-submenu-arrow::before, +.ant-menu-dark .ant-menu-submenu-disabled > .ant-menu-submenu-title > .ant-menu-submenu-arrow::before, +.ant-menu-dark .ant-menu-item-disabled > .ant-menu-submenu-title > .ant-menu-submenu-arrow::after, +.ant-menu-dark .ant-menu-submenu-disabled > .ant-menu-submenu-title > .ant-menu-submenu-arrow::after { background: rgba(255, 255, 255, 0.35) !important; } .ant-message { - font-family: "Chinese Quote", -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"; - font-size: 14px; - font-variant: tabular-nums; - line-height: 1.5; - color: rgba(0, 0, 0, 0.65); box-sizing: border-box; margin: 0; padding: 0; + color: rgba(0, 0, 0, 0.65); + font-size: 14px; + font-variant: tabular-nums; + line-height: 1.5; list-style: none; + font-feature-settings: 'tnum'; position: fixed; - z-index: 1010; - width: 100%; top: 16px; left: 0; + z-index: 1010; + width: 100%; pointer-events: none; } .ant-message-notice { @@ -14300,11 +15281,11 @@ textarea.ant-input-number { margin-top: -8px; } .ant-message-notice-content { + display: inline-block; padding: 10px 16px; + background: #fff; border-radius: 5px; box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15); - background: #fff; - display: inline-block; pointer-events: all; } .ant-message-success .anticon { @@ -14321,123 +15302,123 @@ textarea.ant-input-number { color: #1890ff; } .ant-message .anticon { + position: relative; + top: 1px; margin-right: 8px; font-size: 16px; - top: 1px; - position: relative; } .ant-message-notice.move-up-leave.move-up-leave-active { + overflow: hidden; -webkit-animation-name: MessageMoveOut; animation-name: MessageMoveOut; - overflow: hidden; -webkit-animation-duration: 0.3s; animation-duration: 0.3s; } @-webkit-keyframes MessageMoveOut { 0% { - opacity: 1; max-height: 150px; padding: 8px; + opacity: 1; } 100% { - opacity: 0; max-height: 0; padding: 0; + opacity: 0; } } @keyframes MessageMoveOut { 0% { - opacity: 1; max-height: 150px; padding: 8px; + opacity: 1; } 100% { - opacity: 0; max-height: 0; padding: 0; + opacity: 0; } } .ant-modal { - font-family: "Chinese Quote", -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"; - font-size: 14px; - font-variant: tabular-nums; - line-height: 1.5; - color: rgba(0, 0, 0, 0.65); box-sizing: border-box; margin: 0; padding: 0; + color: rgba(0, 0, 0, 0.65); + font-size: 14px; + font-variant: tabular-nums; + line-height: 1.5; list-style: none; + font-feature-settings: 'tnum'; position: relative; + top: 100px; width: auto; margin: 0 auto; - top: 100px; padding-bottom: 24px; } .ant-modal-wrap { position: fixed; - overflow: auto; top: 0; right: 0; bottom: 0; left: 0; z-index: 1000; - -webkit-overflow-scrolling: touch; + overflow: auto; outline: 0; + -webkit-overflow-scrolling: touch; } .ant-modal-title { margin: 0; + color: rgba(0, 0, 0, 0.85); + font-weight: 500; font-size: 16px; line-height: 22px; - font-weight: 500; - color: rgba(0, 0, 0, 0.85); } .ant-modal-content { position: relative; background-color: #fff; + background-clip: padding-box; border: 0; border-radius: 5px; - background-clip: padding-box; box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15); } .ant-modal-close { - cursor: pointer; - border: 0; - background: transparent; position: absolute; - right: 0; top: 0; + right: 0; z-index: 10; + padding: 0; + color: rgba(0, 0, 0, 0.45); font-weight: 700; line-height: 1; text-decoration: none; - transition: color 0.3s; - color: rgba(0, 0, 0, 0.45); + background: transparent; + border: 0; outline: 0; - padding: 0; + cursor: pointer; + -webkit-transition: color 0.3s; + transition: color 0.3s; } .ant-modal-close-x { display: block; + width: 56px; + height: 56px; + font-size: 16px; font-style: normal; - vertical-align: baseline; + line-height: 56px; text-align: center; text-transform: none; text-rendering: auto; - width: 56px; - height: 56px; - line-height: 56px; - font-size: 16px; } .ant-modal-close:focus, .ant-modal-close:hover { - color: #444; + color: rgba(0, 0, 0, 0.75); text-decoration: none; } .ant-modal-header { padding: 16px 24px; - border-radius: 5px 5px 0 0; - background: #fff; color: rgba(0, 0, 0, 0.65); + background: #fff; border-bottom: 1px solid #e8e8e8; + border-radius: 5px 5px 0 0; } .ant-modal-body { padding: 24px; @@ -14446,21 +15427,22 @@ textarea.ant-input-number { word-wrap: break-word; } .ant-modal-footer { - border-top: 1px solid #e8e8e8; padding: 10px 16px; text-align: right; + border-top: 1px solid #e8e8e8; border-radius: 0 0 5px 5px; } .ant-modal-footer button + button { - margin-left: 8px; margin-bottom: 0; + margin-left: 8px; } .ant-modal.zoom-enter, .ant-modal.zoom-appear { + -webkit-transform: none; + transform: none; + opacity: 0; -webkit-animation-duration: 0.3s; animation-duration: 0.3s; - transform: none; - opacity: 0; -webkit-user-select: none; -moz-user-select: none; -ms-user-select: none; @@ -14470,11 +15452,11 @@ textarea.ant-input-number { position: fixed; top: 0; right: 0; - left: 0; bottom: 0; - background-color: rgba(0, 0, 0, 0.65); - height: 100%; + left: 0; z-index: 1000; + height: 100%; + background-color: rgba(0, 0, 0, 0.65); filter: alpha(opacity=50); } .ant-modal-mask-hidden { @@ -14486,79 +15468,83 @@ textarea.ant-input-number { .ant-modal-centered { text-align: center; } -.ant-modal-centered:before { - content: ''; +.ant-modal-centered::before { display: inline-block; + width: 0; height: 100%; vertical-align: middle; - width: 0; + content: ''; } .ant-modal-centered .ant-modal { - display: inline-block; - vertical-align: middle; top: 0; + display: inline-block; text-align: left; + vertical-align: middle; } @media (max-width: 767px) { .ant-modal { - width: auto !important; - margin: 10px; + max-width: calc(100vw - 16px); + margin: 8px auto; } .ant-modal-centered .ant-modal { - flex: 1; + -webkit-box-flex: 1; + flex: 1; } } .ant-modal-confirm .ant-modal-header { display: none; } +.ant-modal-confirm .ant-modal-close { + display: none; +} .ant-modal-confirm .ant-modal-body { padding: 32px 32px 24px; } .ant-modal-confirm-body-wrapper { zoom: 1; } -.ant-modal-confirm-body-wrapper:before, -.ant-modal-confirm-body-wrapper:after { +.ant-modal-confirm-body-wrapper::before, +.ant-modal-confirm-body-wrapper::after { content: ''; display: table; } -.ant-modal-confirm-body-wrapper:after { +.ant-modal-confirm-body-wrapper::after { clear: both; } -.ant-modal-confirm-body-wrapper:before, -.ant-modal-confirm-body-wrapper:after { +.ant-modal-confirm-body-wrapper::before, +.ant-modal-confirm-body-wrapper::after { content: ''; display: table; } -.ant-modal-confirm-body-wrapper:after { +.ant-modal-confirm-body-wrapper::after { clear: both; } .ant-modal-confirm-body .ant-modal-confirm-title { + display: block; + overflow: hidden; color: rgba(0, 0, 0, 0.85); font-weight: 500; font-size: 16px; line-height: 1.4; - display: block; - overflow: hidden; } .ant-modal-confirm-body .ant-modal-confirm-content { + margin-top: 8px; margin-left: 38px; - font-size: 14px; color: rgba(0, 0, 0, 0.65); - margin-top: 8px; + font-size: 14px; } .ant-modal-confirm-body > .anticon { - font-size: 22px; - margin-right: 16px; float: left; + margin-right: 16px; + font-size: 22px; } .ant-modal-confirm .ant-modal-confirm-btns { - margin-top: 24px; float: right; + margin-top: 24px; } .ant-modal-confirm .ant-modal-confirm-btns button + button { - margin-left: 8px; margin-bottom: 0; + margin-left: 8px; } .ant-modal-confirm-error .ant-modal-confirm-body > .anticon { color: #f5222d; @@ -14574,15 +15560,15 @@ textarea.ant-input-number { color: #52c41a; } .ant-notification { - font-family: "Chinese Quote", -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"; - font-size: 14px; - font-variant: tabular-nums; - line-height: 1.5; - color: rgba(0, 0, 0, 0.65); box-sizing: border-box; margin: 0; padding: 0; + color: rgba(0, 0, 0, 0.65); + font-size: 14px; + font-variant: tabular-nums; + line-height: 1.5; list-style: none; + font-feature-settings: 'tnum'; position: fixed; z-index: 1010; width: 384px; @@ -14591,8 +15577,8 @@ textarea.ant-input-number { } .ant-notification-topLeft, .ant-notification-bottomLeft { - margin-left: 24px; margin-right: 0; + margin-left: 24px; } .ant-notification-topLeft .ant-notification-fade-enter.ant-notification-fade-enter-active, .ant-notification-bottomLeft .ant-notification-fade-enter.ant-notification-fade-enter-active, @@ -14606,32 +15592,32 @@ textarea.ant-input-number { cursor: pointer; } .ant-notification-notice { - padding: 16px 24px; - border-radius: 5px; - box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15); - background: #fff; - line-height: 1.5; position: relative; margin-bottom: 16px; + padding: 16px 24px; overflow: hidden; + line-height: 1.5; + background: #fff; + border-radius: 5px; + box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15); } .ant-notification-notice-message { - font-size: 16px; - color: rgba(0, 0, 0, 0.85); + display: inline-block; margin-bottom: 8px; + color: rgba(0, 0, 0, 0.85); + font-size: 16px; line-height: 24px; - display: inline-block; } .ant-notification-notice-message-single-line-auto-margin { + display: block; width: calc(384px - 24px * 2 - 24px - 48px - 100%); + max-width: 4px; background-color: transparent; pointer-events: none; - display: block; - max-width: 4px; } -.ant-notification-notice-message-single-line-auto-margin:before { - content: ''; +.ant-notification-notice-message-single-line-auto-margin::before { display: block; + content: ''; } .ant-notification-notice-description { font-size: 14px; @@ -14640,9 +15626,9 @@ textarea.ant-input-number { padding-right: 24px; } .ant-notification-notice-with-icon .ant-notification-notice-message { - font-size: 16px; - margin-left: 48px; margin-bottom: 4px; + margin-left: 48px; + font-size: 16px; } .ant-notification-notice-with-icon .ant-notification-notice-description { margin-left: 48px; @@ -14650,9 +15636,9 @@ textarea.ant-input-number { } .ant-notification-notice-icon { position: absolute; + margin-left: 4px; font-size: 24px; line-height: 24px; - margin-left: 4px; } .ant-notification-notice-icon-success { color: #52c41a; @@ -14668,8 +15654,8 @@ textarea.ant-input-number { } .ant-notification-notice-close { position: absolute; - right: 22px; top: 16px; + right: 22px; color: rgba(0, 0, 0, 0.45); outline: none; } @@ -14686,30 +15672,30 @@ a.ant-notification-notice-close:focus { .ant-notification .notification-fade-effect { -webkit-animation-duration: 0.24s; animation-duration: 0.24s; - -webkit-animation-fill-mode: both; - animation-fill-mode: both; -webkit-animation-timing-function: cubic-bezier(0.645, 0.045, 0.355, 1); animation-timing-function: cubic-bezier(0.645, 0.045, 0.355, 1); + -webkit-animation-fill-mode: both; + animation-fill-mode: both; } .ant-notification-fade-enter, .ant-notification-fade-appear { opacity: 0; -webkit-animation-duration: 0.24s; animation-duration: 0.24s; - -webkit-animation-fill-mode: both; - animation-fill-mode: both; -webkit-animation-timing-function: cubic-bezier(0.645, 0.045, 0.355, 1); animation-timing-function: cubic-bezier(0.645, 0.045, 0.355, 1); + -webkit-animation-fill-mode: both; + animation-fill-mode: both; -webkit-animation-play-state: paused; animation-play-state: paused; } .ant-notification-fade-leave { -webkit-animation-duration: 0.24s; animation-duration: 0.24s; - -webkit-animation-fill-mode: both; - animation-fill-mode: both; -webkit-animation-timing-function: cubic-bezier(0.645, 0.045, 0.355, 1); animation-timing-function: cubic-bezier(0.645, 0.045, 0.355, 1); + -webkit-animation-fill-mode: both; + animation-fill-mode: both; -webkit-animation-duration: 0.2s; animation-duration: 0.2s; -webkit-animation-play-state: paused; @@ -14730,8 +15716,8 @@ a.ant-notification-notice-close:focus { } @-webkit-keyframes NotificationFadeIn { 0% { - opacity: 0; left: 384px; + opacity: 0; } 100% { left: 0; @@ -14740,8 +15726,8 @@ a.ant-notification-notice-close:focus { } @keyframes NotificationFadeIn { 0% { - opacity: 0; left: 384px; + opacity: 0; } 100% { left: 0; @@ -14750,8 +15736,8 @@ a.ant-notification-notice-close:focus { } @-webkit-keyframes NotificationLeftFadeIn { 0% { - opacity: 0; right: 384px; + opacity: 0; } 100% { right: 0; @@ -14760,8 +15746,8 @@ a.ant-notification-notice-close:focus { } @keyframes NotificationLeftFadeIn { 0% { - opacity: 0; right: 384px; + opacity: 0; } 100% { right: 0; @@ -14770,46 +15756,46 @@ a.ant-notification-notice-close:focus { } @-webkit-keyframes NotificationFadeOut { 0% { - opacity: 1; + max-height: 150px; margin-bottom: 16px; padding-top: 16px 24px; padding-bottom: 16px 24px; - max-height: 150px; + opacity: 1; } 100% { - opacity: 0; + max-height: 0; margin-bottom: 0; padding-top: 0; padding-bottom: 0; - max-height: 0; + opacity: 0; } } @keyframes NotificationFadeOut { 0% { - opacity: 1; + max-height: 150px; margin-bottom: 16px; padding-top: 16px 24px; padding-bottom: 16px 24px; - max-height: 150px; + opacity: 1; } 100% { - opacity: 0; + max-height: 0; margin-bottom: 0; padding-top: 0; padding-bottom: 0; - max-height: 0; + opacity: 0; } } .ant-pagination { - font-family: "Chinese Quote", -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"; - font-size: 14px; - font-variant: tabular-nums; - line-height: 1.5; - color: rgba(0, 0, 0, 0.65); box-sizing: border-box; margin: 0; padding: 0; + color: rgba(0, 0, 0, 0.65); + font-size: 14px; + font-variant: tabular-nums; + line-height: 1.5; list-style: none; + font-feature-settings: 'tnum'; } .ant-pagination ul, .ant-pagination ol { @@ -14817,59 +15803,61 @@ a.ant-notification-notice-close:focus { padding: 0; list-style: none; } -.ant-pagination:after { - content: ' '; +.ant-pagination::after { display: block; - height: 0; clear: both; + height: 0; overflow: hidden; visibility: hidden; + content: ' '; } .ant-pagination-total-text { display: inline-block; - vertical-align: middle; height: 32px; - line-height: 30px; margin-right: 8px; + line-height: 30px; + vertical-align: middle; } .ant-pagination-item { - cursor: pointer; - border-radius: 5px; - -webkit-user-select: none; - -moz-user-select: none; - -ms-user-select: none; - user-select: none; + display: inline-block; min-width: 32px; height: 32px; + margin-right: 8px; + font-family: Arial; line-height: 30px; text-align: center; - list-style: none; - display: inline-block; vertical-align: middle; - border: 1px solid #d9d9d9; + list-style: none; background-color: #fff; - margin-right: 8px; - font-family: Arial; + border: 1px solid #d9d9d9; + border-radius: 5px; outline: 0; + cursor: pointer; + -webkit-user-select: none; + -moz-user-select: none; + -ms-user-select: none; + user-select: none; } .ant-pagination-item a { - text-decoration: none; + margin: 0 6px; color: rgba(0, 0, 0, 0.65); + text-decoration: none; + -webkit-transition: none; transition: none; - margin: 0 6px; } .ant-pagination-item:focus, .ant-pagination-item:hover { - transition: all 0.3s; border-color: #E64448; + -webkit-transition: all 0.3s; + transition: all 0.3s; } .ant-pagination-item:focus a, .ant-pagination-item:hover a { color: #E64448; } .ant-pagination-item-active { - border-color: #E64448; font-weight: 500; + border-color: #E64448; } .ant-pagination-item-active a { color: #E64448; @@ -14895,10 +15883,12 @@ a.ant-notification-notice-close:focus { display: inline-block; font-size: 12px; font-size: 12px \9; - transform: scale(1) rotate(0deg); + -webkit-transform: scale(1) rotate(0deg); + transform: scale(1) rotate(0deg); color: #E64448; letter-spacing: -1px; opacity: 0; + -webkit-transition: all 0.2s; transition: all 0.2s; } :root .ant-pagination-jump-prev .ant-pagination-item-container .ant-pagination-item-link-icon, @@ -14916,17 +15906,19 @@ a.ant-notification-notice-close:focus { .ant-pagination-jump-prev .ant-pagination-item-container .ant-pagination-item-ellipsis, .ant-pagination-jump-next .ant-pagination-item-container .ant-pagination-item-ellipsis { position: absolute; - display: block; - letter-spacing: 2px; - color: rgba(0, 0, 0, 0.25); - text-align: center; - opacity: 1; - transition: all 0.2s; top: 0; right: 0; bottom: 0; left: 0; + display: block; margin: auto; + color: rgba(0, 0, 0, 0.25); + letter-spacing: 2px; + text-align: center; + text-indent: 0.13em; + opacity: 1; + -webkit-transition: all 0.2s; + transition: all 0.2s; } .ant-pagination-jump-prev:focus .ant-pagination-item-link-icon, .ant-pagination-jump-next:focus .ant-pagination-item-link-icon, @@ -14949,18 +15941,19 @@ a.ant-notification-notice-close:focus { .ant-pagination-next, .ant-pagination-jump-prev, .ant-pagination-jump-next { - font-family: Arial; - cursor: pointer; - color: rgba(0, 0, 0, 0.65); - border-radius: 5px; - list-style: none; + display: inline-block; min-width: 32px; height: 32px; + color: rgba(0, 0, 0, 0.65); + font-family: Arial; line-height: 32px; text-align: center; - transition: all 0.3s; - display: inline-block; vertical-align: middle; + list-style: none; + border-radius: 5px; + cursor: pointer; + -webkit-transition: all 0.3s; + transition: all 0.3s; } .ant-pagination-prev, .ant-pagination-next { @@ -14980,22 +15973,23 @@ a.ant-notification-notice-close:focus { } .ant-pagination-prev .ant-pagination-item-link, .ant-pagination-next .ant-pagination-item-link { - border: 1px solid #d9d9d9; + display: block; + height: 100%; + font-size: 12px; + text-align: center; background-color: #fff; + border: 1px solid #d9d9d9; border-radius: 5px; outline: none; - display: block; + -webkit-transition: all 0.3s; transition: all 0.3s; - font-size: 12px; - height: 100%; - text-align: center; } .ant-pagination-prev:focus .ant-pagination-item-link, .ant-pagination-next:focus .ant-pagination-item-link, .ant-pagination-prev:hover .ant-pagination-item-link, .ant-pagination-next:hover .ant-pagination-item-link { - border-color: #E64448; color: #E64448; + border-color: #E64448; } .ant-pagination-disabled, .ant-pagination-disabled:hover, @@ -15008,8 +16002,8 @@ a.ant-notification-notice-close:focus { .ant-pagination-disabled .ant-pagination-item-link, .ant-pagination-disabled:hover .ant-pagination-item-link, .ant-pagination-disabled:focus .ant-pagination-item-link { - border-color: #d9d9d9; color: rgba(0, 0, 0, 0.25); + border-color: #d9d9d9; cursor: not-allowed; } .ant-pagination-slash { @@ -15017,8 +16011,8 @@ a.ant-notification-notice-close:focus { } .ant-pagination-options { display: inline-block; - vertical-align: middle; margin-left: 16px; + vertical-align: middle; } .ant-pagination-options-size-changer.ant-select { display: inline-block; @@ -15027,26 +16021,27 @@ a.ant-notification-notice-close:focus { } .ant-pagination-options-quick-jumper { display: inline-block; - vertical-align: top; height: 32px; line-height: 32px; + vertical-align: top; } .ant-pagination-options-quick-jumper input { position: relative; display: inline-block; - padding: 4px 11px; width: 100%; height: 32px; + padding: 4px 11px; + color: rgba(0, 0, 0, 0.65); font-size: 14px; line-height: 1.5; - color: rgba(0, 0, 0, 0.65); background-color: #fff; background-image: none; border: 1px solid #d9d9d9; border-radius: 5px; + -webkit-transition: all 0.3s; transition: all 0.3s; - margin: 0 8px; width: 50px; + margin: 0 8px; } .ant-pagination-options-quick-jumper input::-moz-placeholder { color: #bfbfbf; @@ -15064,15 +16059,15 @@ a.ant-notification-notice-close:focus { } .ant-pagination-options-quick-jumper input:focus { border-color: #f2726f; + border-right-width: 1px !important; outline: 0; box-shadow: 0 0 0 2px rgba(230, 68, 72, 0.2); - border-right-width: 1px !important; } .ant-pagination-options-quick-jumper input-disabled { + color: rgba(0, 0, 0, 0.25); background-color: #f5f5f5; - opacity: 1; cursor: not-allowed; - color: rgba(0, 0, 0, 0.25); + opacity: 1; } .ant-pagination-options-quick-jumper input-disabled:hover { border-color: #e6d8d8; @@ -15081,18 +16076,19 @@ a.ant-notification-notice-close:focus { textarea.ant-pagination-options-quick-jumper input { max-width: 100%; height: auto; + min-height: 32px; vertical-align: bottom; + -webkit-transition: all 0.3s, height 0s; transition: all 0.3s, height 0s; - min-height: 32px; } .ant-pagination-options-quick-jumper input-lg { - padding: 6px 11px; height: 40px; + padding: 6px 11px; font-size: 16px; } .ant-pagination-options-quick-jumper input-sm { - padding: 1px 7px; height: 24px; + padding: 1px 7px; } .ant-pagination-simple .ant-pagination-prev, .ant-pagination-simple .ant-pagination-next { @@ -15102,29 +16098,30 @@ textarea.ant-pagination-options-quick-jumper input { } .ant-pagination-simple .ant-pagination-prev .ant-pagination-item-link, .ant-pagination-simple .ant-pagination-next .ant-pagination-item-link { - border: 0; height: 24px; + border: 0; } -.ant-pagination-simple .ant-pagination-prev .ant-pagination-item-link:after, -.ant-pagination-simple .ant-pagination-next .ant-pagination-item-link:after { +.ant-pagination-simple .ant-pagination-prev .ant-pagination-item-link::after, +.ant-pagination-simple .ant-pagination-next .ant-pagination-item-link::after { height: 24px; line-height: 24px; } .ant-pagination-simple .ant-pagination-simple-pager { display: inline-block; - margin-right: 8px; height: 24px; + margin-right: 8px; } .ant-pagination-simple .ant-pagination-simple-pager input { - margin-right: 8px; box-sizing: border-box; + height: 100%; + margin-right: 8px; + padding: 0 6px; + text-align: center; background-color: #fff; - border-radius: 5px; border: 1px solid #d9d9d9; + border-radius: 5px; outline: none; - padding: 0 6px; - height: 100%; - text-align: center; + -webkit-transition: border-color 0.3s; transition: border-color 0.3s; } .ant-pagination-simple .ant-pagination-simple-pager input:hover { @@ -15136,9 +16133,9 @@ textarea.ant-pagination-options-quick-jumper input { line-height: 24px; } .ant-pagination.mini .ant-pagination-item { - margin: 0; min-width: 24px; height: 24px; + margin: 0; line-height: 22px; } .ant-pagination.mini .ant-pagination-item:not(.ant-pagination-item-active) { @@ -15147,26 +16144,26 @@ textarea.ant-pagination-options-quick-jumper input { } .ant-pagination.mini .ant-pagination-prev, .ant-pagination.mini .ant-pagination-next { - margin: 0; min-width: 24px; height: 24px; + margin: 0; line-height: 24px; } .ant-pagination.mini .ant-pagination-prev .ant-pagination-item-link, .ant-pagination.mini .ant-pagination-next .ant-pagination-item-link { - border-color: transparent; background: transparent; + border-color: transparent; } -.ant-pagination.mini .ant-pagination-prev .ant-pagination-item-link:after, -.ant-pagination.mini .ant-pagination-next .ant-pagination-item-link:after { +.ant-pagination.mini .ant-pagination-prev .ant-pagination-item-link::after, +.ant-pagination.mini .ant-pagination-next .ant-pagination-item-link::after { height: 24px; line-height: 24px; } .ant-pagination.mini .ant-pagination-jump-prev, .ant-pagination.mini .ant-pagination-jump-next { height: 24px; - line-height: 24px; margin-right: 0; + line-height: 24px; } .ant-pagination.mini .ant-pagination-options { margin-left: 2px; @@ -15176,8 +16173,8 @@ textarea.ant-pagination-options-quick-jumper input { line-height: 24px; } .ant-pagination.mini .ant-pagination-options-quick-jumper input { - padding: 1px 7px; height: 24px; + padding: 1px 7px; width: 44px; } @media only screen and (max-width: 992px) { @@ -15192,15 +16189,15 @@ textarea.ant-pagination-options-quick-jumper input { } } .ant-popover { - font-family: "Chinese Quote", -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"; - font-size: 14px; - font-variant: tabular-nums; - line-height: 1.5; - color: rgba(0, 0, 0, 0.65); box-sizing: border-box; margin: 0; padding: 0; + color: rgba(0, 0, 0, 0.65); + font-size: 14px; + font-variant: tabular-nums; + line-height: 1.5; list-style: none; + font-feature-settings: 'tnum'; position: absolute; top: 0; left: 0; @@ -15300,7 +16297,8 @@ textarea.ant-pagination-options-quick-jumper input { background: transparent; border-width: 4.24264069px; border-style: solid; - transform: rotate(45deg); + -webkit-transform: rotate(45deg); + transform: rotate(45deg); } .ant-popover-placement-top > .ant-popover-content > .ant-popover-arrow, .ant-popover-placement-topLeft > .ant-popover-content > .ant-popover-arrow, @@ -15314,7 +16312,8 @@ textarea.ant-pagination-options-quick-jumper input { } .ant-popover-placement-top > .ant-popover-content > .ant-popover-arrow { left: 50%; - transform: translateX(-50%) rotate(45deg); + -webkit-transform: translateX(-50%) rotate(45deg); + transform: translateX(-50%) rotate(45deg); } .ant-popover-placement-topLeft > .ant-popover-content > .ant-popover-arrow { left: 16px; @@ -15334,7 +16333,8 @@ textarea.ant-pagination-options-quick-jumper input { } .ant-popover-placement-right > .ant-popover-content > .ant-popover-arrow { top: 50%; - transform: translateY(-50%) rotate(45deg); + -webkit-transform: translateY(-50%) rotate(45deg); + transform: translateY(-50%) rotate(45deg); } .ant-popover-placement-rightTop > .ant-popover-content > .ant-popover-arrow { top: 12px; @@ -15354,7 +16354,8 @@ textarea.ant-pagination-options-quick-jumper input { } .ant-popover-placement-bottom > .ant-popover-content > .ant-popover-arrow { left: 50%; - transform: translateX(-50%) rotate(45deg); + -webkit-transform: translateX(-50%) rotate(45deg); + transform: translateX(-50%) rotate(45deg); } .ant-popover-placement-bottomLeft > .ant-popover-content > .ant-popover-arrow { left: 16px; @@ -15374,7 +16375,8 @@ textarea.ant-pagination-options-quick-jumper input { } .ant-popover-placement-left > .ant-popover-content > .ant-popover-arrow { top: 50%; - transform: translateY(-50%) rotate(45deg); + -webkit-transform: translateY(-50%) rotate(45deg); + transform: translateY(-50%) rotate(45deg); } .ant-popover-placement-leftTop > .ant-popover-content > .ant-popover-arrow { top: 12px; @@ -15383,21 +16385,21 @@ textarea.ant-pagination-options-quick-jumper input { bottom: 12px; } .ant-progress { - font-family: "Chinese Quote", -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"; - font-size: 14px; - font-variant: tabular-nums; - line-height: 1.5; - color: rgba(0, 0, 0, 0.65); box-sizing: border-box; margin: 0; padding: 0; + color: rgba(0, 0, 0, 0.65); + font-size: 14px; + font-variant: tabular-nums; + line-height: 1.5; list-style: none; + font-feature-settings: 'tnum'; display: inline-block; } .ant-progress-line { + position: relative; width: 100%; font-size: 14px; - position: relative; } .ant-progress-small.ant-progress-line, .ant-progress-small.ant-progress-line .ant-progress-text .anticon { @@ -15410,64 +16412,66 @@ textarea.ant-pagination-options-quick-jumper input { padding-right: 0; } .ant-progress-show-info .ant-progress-outer { - padding-right: calc(2em + 8px); margin-right: calc(-2em - 8px); + padding-right: calc(2em + 8px); } .ant-progress-inner { + position: relative; display: inline-block; width: 100%; + vertical-align: middle; background-color: #f5f5f5; border-radius: 100px; - vertical-align: middle; - position: relative; + overflow: hidden; } .ant-progress-circle-trail { stroke: #f5f5f5; } .ant-progress-circle-path { - stroke: #1890ff; -webkit-animation: ant-progress-appear 0.3s; animation: ant-progress-appear 0.3s; + stroke: #1890ff; } .ant-progress-success-bg, .ant-progress-bg { + position: relative; background-color: #1890ff; + -webkit-transition: all 0.4s cubic-bezier(0.08, 0.82, 0.17, 1) 0s; transition: all 0.4s cubic-bezier(0.08, 0.82, 0.17, 1) 0s; - position: relative; } .ant-progress-success-bg { - background-color: #52c41a; position: absolute; top: 0; left: 0; + background-color: #52c41a; } .ant-progress-text { - word-break: normal; + display: inline-block; width: 2em; - text-align: left; - font-size: 1em; margin-left: 8px; - vertical-align: middle; - display: inline-block; - white-space: nowrap; color: rgba(0, 0, 0, 0.45); + font-size: 1em; line-height: 1; + white-space: nowrap; + text-align: left; + vertical-align: middle; + word-break: normal; } .ant-progress-text .anticon { font-size: 14px; } -.ant-progress-status-active .ant-progress-bg:before { - content: ''; - opacity: 0; +.ant-progress-status-active .ant-progress-bg::before { position: absolute; top: 0; - left: 0; right: 0; bottom: 0; + left: 0; background: #fff; border-radius: 10px; + opacity: 0; -webkit-animation: ant-progress-active 2.4s cubic-bezier(0.23, 1, 0.32, 1) infinite; animation: ant-progress-active 2.4s cubic-bezier(0.23, 1, 0.32, 1) infinite; + content: ''; } .ant-progress-status-exception .ant-progress-bg { background-color: #f5222d; @@ -15493,18 +16497,18 @@ textarea.ant-pagination-options-quick-jumper input { background-color: transparent; } .ant-progress-circle .ant-progress-text { - display: block; position: absolute; - width: 100%; - text-align: center; - line-height: 1; top: 50%; - transform: translateY(-50%); - left: 0; + left: 50%; + width: 100%; margin: 0; + padding: 0; color: rgba(0, 0, 0, 0.65); + line-height: 1; white-space: normal; - padding: 0 6px; + text-align: center; + -webkit-transform: translate(-50%, -50%); + transform: translate(-50%, -50%); } .ant-progress-circle .ant-progress-text .anticon { font-size: 1.16666667em; @@ -15517,101 +16521,104 @@ textarea.ant-pagination-options-quick-jumper input { } @-webkit-keyframes ant-progress-active { 0% { - opacity: 0.1; width: 0; + opacity: 0.1; } 20% { - opacity: 0.5; width: 0; + opacity: 0.5; } 100% { - opacity: 0; width: 100%; + opacity: 0; } } @keyframes ant-progress-active { 0% { - opacity: 0.1; width: 0; + opacity: 0.1; } 20% { - opacity: 0.5; width: 0; + opacity: 0.5; } 100% { - opacity: 0; width: 100%; + opacity: 0; } -} -.ant-radio-group { - font-family: "Chinese Quote", -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"; - font-size: 14px; - font-variant: tabular-nums; - line-height: 1.5; - color: rgba(0, 0, 0, 0.65); +} +.ant-radio-group { box-sizing: border-box; margin: 0; padding: 0; + color: rgba(0, 0, 0, 0.65); + font-size: 14px; + font-variant: tabular-nums; + line-height: 1.5; list-style: none; + font-feature-settings: 'tnum'; display: inline-block; line-height: unset; } .ant-radio-wrapper { - font-family: "Chinese Quote", -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"; - font-size: 14px; - font-variant: tabular-nums; - line-height: 1.5; - color: rgba(0, 0, 0, 0.65); box-sizing: border-box; margin: 0; padding: 0; + color: rgba(0, 0, 0, 0.65); + font-size: 14px; + font-variant: tabular-nums; + line-height: 1.5; list-style: none; - display: inline-block; + font-feature-settings: 'tnum'; position: relative; - white-space: nowrap; + display: inline-block; margin-right: 8px; + white-space: nowrap; cursor: pointer; } .ant-radio { - font-family: "Chinese Quote", -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"; - font-size: 14px; - font-variant: tabular-nums; - line-height: 1.5; - color: rgba(0, 0, 0, 0.65); box-sizing: border-box; margin: 0; padding: 0; + color: rgba(0, 0, 0, 0.65); + font-size: 14px; + font-variant: tabular-nums; + line-height: 1.5; list-style: none; - white-space: nowrap; - outline: none; - display: inline-block; + font-feature-settings: 'tnum'; position: relative; + display: inline-block; line-height: 1; + white-space: nowrap; vertical-align: sub; + outline: none; cursor: pointer; } -.ant-radio-wrapper:hover .ant-radio .ant-radio-inner, +.ant-radio-wrapper:hover .ant-radio, .ant-radio:hover .ant-radio-inner, -.ant-radio-focused .ant-radio-inner { +.ant-radio-input:focus + .ant-radio-inner { border-color: #E64448; } -.ant-radio-checked:after { +.ant-radio-input:focus + .ant-radio-inner { + box-shadow: 0 0 0 3px rgba(230, 68, 72, 0.08); +} +.ant-radio-checked::after { position: absolute; top: 0; left: 0; width: 100%; height: 100%; - border-radius: 50%; border: 1px solid #E64448; - content: ''; + border-radius: 50%; + visibility: hidden; -webkit-animation: antRadioEffect 0.36s ease-in-out; animation: antRadioEffect 0.36s ease-in-out; -webkit-animation-fill-mode: both; animation-fill-mode: both; - visibility: hidden; + content: ''; } -.ant-radio:hover:after, -.ant-radio-wrapper:hover .ant-radio:after { +.ant-radio:hover::after, +.ant-radio-wrapper:hover .ant-radio::after { visibility: visible; } .ant-radio-inner { @@ -15621,54 +16628,59 @@ textarea.ant-pagination-options-quick-jumper input { display: block; width: 16px; height: 16px; + background-color: #fff; border-width: 1px; border-style: solid; - border-radius: 100px; border-color: #d9d9d9; - background-color: #fff; + border-radius: 100px; + -webkit-transition: all 0.3s; transition: all 0.3s; } -.ant-radio-inner:after { +.ant-radio-inner::after { position: absolute; - width: 8px; - height: 8px; - left: 3px; top: 3px; - border-radius: 8px; + left: 3px; display: table; + width: 8px; + height: 8px; + background-color: #E64448; border-top: 0; border-left: 0; - content: ' '; - background-color: #E64448; + border-radius: 8px; + -webkit-transform: scale(0); + transform: scale(0); opacity: 0; - transform: scale(0); + -webkit-transition: all 0.3s cubic-bezier(0.78, 0.14, 0.15, 0.86); transition: all 0.3s cubic-bezier(0.78, 0.14, 0.15, 0.86); + content: ' '; } .ant-radio-input { position: absolute; + top: 0; + right: 0; + bottom: 0; left: 0; z-index: 1; cursor: pointer; opacity: 0; - top: 0; - bottom: 0; - right: 0; } .ant-radio-checked .ant-radio-inner { border-color: #E64448; } -.ant-radio-checked .ant-radio-inner:after { - transform: scale(0.875); +.ant-radio-checked .ant-radio-inner::after { + -webkit-transform: scale(0.875); + transform: scale(0.875); opacity: 1; + -webkit-transition: all 0.3s cubic-bezier(0.78, 0.14, 0.15, 0.86); transition: all 0.3s cubic-bezier(0.78, 0.14, 0.15, 0.86); } .ant-radio-disabled .ant-radio-inner { - border-color: #d9d9d9 !important; background-color: #f5f5f5; + border-color: #d9d9d9 !important; cursor: not-allowed; } -.ant-radio-disabled .ant-radio-inner:after { - background-color: #ccc; +.ant-radio-disabled .ant-radio-inner::after { + background-color: rgba(0, 0, 0, 0.2); } .ant-radio-disabled .ant-radio-input { cursor: not-allowed; @@ -15678,56 +16690,57 @@ textarea.ant-pagination-options-quick-jumper input { cursor: not-allowed; } span.ant-radio + * { - padding-left: 8px; padding-right: 8px; + padding-left: 8px; } .ant-radio-button-wrapper { - margin: 0; + position: relative; + display: inline-block; height: 32px; - line-height: 30px; + margin: 0; + padding: 0 15px; color: rgba(0, 0, 0, 0.65); - display: inline-block; - transition: all 0.3s ease; - cursor: pointer; + line-height: 30px; + background: #fff; border: 1px solid #d9d9d9; - border-left: 0; border-top-width: 1.02px; - background: #fff; - padding: 0 15px; - position: relative; + border-left: 0; + cursor: pointer; + -webkit-transition: color 0.3s, background 0.3s, border-color 0.3s; + transition: color 0.3s, background 0.3s, border-color 0.3s; } .ant-radio-button-wrapper a { color: rgba(0, 0, 0, 0.65); } .ant-radio-button-wrapper > .ant-radio-button { - margin-left: 0; display: block; width: 0; height: 0; + margin-left: 0; } .ant-radio-group-large .ant-radio-button-wrapper { height: 40px; - line-height: 38px; font-size: 16px; + line-height: 38px; } .ant-radio-group-small .ant-radio-button-wrapper { height: 24px; - line-height: 22px; padding: 0 7px; + line-height: 22px; } .ant-radio-button-wrapper:not(:first-child)::before { - content: ''; - display: block; + position: absolute; top: 0; left: -1px; + display: block; width: 1px; height: 100%; - position: absolute; background-color: #d9d9d9; + content: ''; } .ant-radio-button-wrapper:first-child { - border-radius: 5px 0 0 5px; border-left: 1px solid #d9d9d9; + border-radius: 5px 0 0 5px; } .ant-radio-button-wrapper:last-child { border-radius: 0 5px 5px 0; @@ -15735,24 +16748,27 @@ span.ant-radio + * { .ant-radio-button-wrapper:first-child:last-child { border-radius: 5px; } -.ant-radio-button-wrapper:hover, -.ant-radio-button-wrapper-focused { - color: #E64448; +.ant-radio-button-wrapper:hover { position: relative; + color: #E64448; +} +.ant-radio-button-wrapper:focus-within { + outline: 3px solid rgba(230, 68, 72, 0.06); } .ant-radio-button-wrapper .ant-radio-inner, .ant-radio-button-wrapper input[type='checkbox'], .ant-radio-button-wrapper input[type='radio'] { - opacity: 0; width: 0; height: 0; + opacity: 0; + pointer-events: none; } .ant-radio-button-wrapper-checked { + z-index: 1; + color: #E64448; background: #fff; border-color: #E64448; - color: #E64448; box-shadow: -1px 0 0 0 #E64448; - z-index: 1; } .ant-radio-button-wrapper-checked::before { background-color: #E64448 !important; @@ -15763,41 +16779,47 @@ span.ant-radio + * { box-shadow: none !important; } .ant-radio-button-wrapper-checked:hover { + color: #f2726f; border-color: #f2726f; box-shadow: -1px 0 0 0 #f2726f; - color: #f2726f; } .ant-radio-button-wrapper-checked:active { + color: #bf3037; border-color: #bf3037; box-shadow: -1px 0 0 0 #bf3037; - color: #bf3037; +} +.ant-radio-button-wrapper-checked:focus-within { + outline: 3px solid rgba(230, 68, 72, 0.06); } .ant-radio-group-solid .ant-radio-button-wrapper-checked:not(.ant-radio-button-wrapper-disabled) { + color: #fff; background: #E64448; border-color: #E64448; - color: #fff; } .ant-radio-group-solid .ant-radio-button-wrapper-checked:not(.ant-radio-button-wrapper-disabled):hover { - border-color: #f2726f; - background: #f2726f; color: #fff; + background: #f2726f; + border-color: #f2726f; } .ant-radio-group-solid .ant-radio-button-wrapper-checked:not(.ant-radio-button-wrapper-disabled):active { - border-color: #bf3037; - background: #bf3037; color: #fff; + background: #bf3037; + border-color: #bf3037; +} +.ant-radio-group-solid .ant-radio-button-wrapper-checked:not(.ant-radio-button-wrapper-disabled):focus-within { + outline: 3px solid rgba(230, 68, 72, 0.06); } .ant-radio-button-wrapper-disabled { - border-color: #d9d9d9; + color: rgba(0, 0, 0, 0.25); background-color: #f5f5f5; + border-color: #d9d9d9; cursor: not-allowed; - color: rgba(0, 0, 0, 0.25); } .ant-radio-button-wrapper-disabled:first-child, .ant-radio-button-wrapper-disabled:hover { - border-color: #d9d9d9; - background-color: #f5f5f5; color: rgba(0, 0, 0, 0.25); + background-color: #f5f5f5; + border-color: #d9d9d9; } .ant-radio-button-wrapper-disabled:first-child { border-left-color: #d9d9d9; @@ -15810,21 +16832,25 @@ span.ant-radio + * { } @-webkit-keyframes antRadioEffect { 0% { - transform: scale(1); + -webkit-transform: scale(1); + transform: scale(1); opacity: 0.5; } 100% { - transform: scale(1.6); + -webkit-transform: scale(1.6); + transform: scale(1.6); opacity: 0; } } @keyframes antRadioEffect { 0% { - transform: scale(1); + -webkit-transform: scale(1); + transform: scale(1); opacity: 0.5; } 100% { - transform: scale(1.6); + -webkit-transform: scale(1.6); + transform: scale(1.6); opacity: 0; } } @@ -15834,61 +16860,65 @@ span.ant-radio + * { } } .ant-rate { - font-family: "Chinese Quote", -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"; + box-sizing: border-box; + color: rgba(0, 0, 0, 0.65); font-size: 14px; font-variant: tabular-nums; line-height: 1.5; - color: rgba(0, 0, 0, 0.65); - box-sizing: border-box; - line-height: unset; + font-feature-settings: 'tnum'; + display: inline-block; margin: 0; padding: 0; - list-style: none; - font-size: 20px; - display: inline-block; color: #fadb14; + font-size: 20px; + line-height: unset; + list-style: none; outline: none; } .ant-rate-disabled .ant-rate-star { cursor: default; } .ant-rate-disabled .ant-rate-star:hover { - transform: scale(1); + -webkit-transform: scale(1); + transform: scale(1); } .ant-rate-star { - margin: 0; - padding: 0; + position: relative; display: inline-block; + margin: 0; margin-right: 8px; - position: relative; - transition: all 0.3s; + padding: 0; color: inherit; cursor: pointer; + -webkit-transition: all 0.3s; + transition: all 0.3s; } -.ant-rate-star:focus { +.ant-rate-star > div:focus { outline: 0; } +.ant-rate-star > div:hover, +.ant-rate-star > div:focus { + -webkit-transform: scale(1.1); + transform: scale(1.1); +} .ant-rate-star-first, .ant-rate-star-second { + color: #e8e8e8; + -webkit-transition: all 0.3s; + transition: all 0.3s; -webkit-user-select: none; -moz-user-select: none; -ms-user-select: none; user-select: none; - transition: all 0.3s; - color: #e8e8e8; } .ant-rate-star-first .anticon, .ant-rate-star-second .anticon { vertical-align: middle; } -.ant-rate-star:hover, -.ant-rate-star:focus { - transform: scale(1.1); -} .ant-rate-star-first { position: absolute; - left: 0; top: 0; + left: 0; width: 50%; height: 100%; overflow: hidden; @@ -15903,22 +16933,22 @@ span.ant-radio + * { color: inherit; } .ant-rate-text { - margin-left: 8px; display: inline-block; + margin-left: 8px; font-size: 14px; } .ant-select { - font-family: "Chinese Quote", -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"; - font-size: 14px; - font-variant: tabular-nums; - line-height: 1.5; - color: rgba(0, 0, 0, 0.65); box-sizing: border-box; margin: 0; padding: 0; + color: rgba(0, 0, 0, 0.65); + font-size: 14px; + font-variant: tabular-nums; + line-height: 1.5; list-style: none; - display: inline-block; + font-feature-settings: 'tnum'; position: relative; + display: inline-block; outline: 0; } .ant-select ul, @@ -15934,21 +16964,22 @@ span.ant-radio + * { .ant-select-arrow { display: inline-block; font-style: normal; - vertical-align: -0.125em; + line-height: 0; text-align: center; text-transform: none; - line-height: 0; + vertical-align: -0.125em; text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; position: absolute; top: 50%; right: 11px; - line-height: 1; margin-top: -6px; - transform-origin: 50% 50%; color: rgba(0, 0, 0, 0.25); font-size: 12px; + line-height: 1; + -webkit-transform-origin: 50% 50%; + transform-origin: 50% 50%; } .ant-select-arrow > * { line-height: 1; @@ -15956,28 +16987,32 @@ span.ant-radio + * { .ant-select-arrow svg { display: inline-block; } -.ant-select-arrow:before { +.ant-select-arrow::before { display: none; } .ant-select-arrow .ant-select-arrow-icon { display: block; } .ant-select-arrow .ant-select-arrow-icon svg { + -webkit-transition: -webkit-transform 0.3s; + transition: -webkit-transform 0.3s; transition: transform 0.3s; + transition: transform 0.3s, -webkit-transform 0.3s; } .ant-select-selection { - outline: none; - -webkit-user-select: none; - -moz-user-select: none; - -ms-user-select: none; - user-select: none; - box-sizing: border-box; display: block; + box-sizing: border-box; background-color: #fff; - border-radius: 5px; border: 1px solid #d9d9d9; border-top-width: 1.02px; + border-radius: 5px; + outline: none; + -webkit-transition: all 0.3s cubic-bezier(0.645, 0.045, 0.355, 1); transition: all 0.3s cubic-bezier(0.645, 0.045, 0.355, 1); + -webkit-user-select: none; + -moz-user-select: none; + -ms-user-select: none; + user-select: none; } .ant-select-selection:hover { border-color: #f2726f; @@ -15987,33 +17022,33 @@ span.ant-radio + * { .ant-select-selection:focus, .ant-select-selection:active { border-color: #f2726f; + border-right-width: 1px !important; outline: 0; box-shadow: 0 0 0 2px rgba(230, 68, 72, 0.2); - border-right-width: 1px !important; } .ant-select-selection__clear { - display: inline-block; - font-style: normal; - vertical-align: baseline; - text-align: center; - text-transform: none; - text-rendering: auto; - opacity: 0; position: absolute; + top: 50%; right: 11px; z-index: 1; - background: #fff; - top: 50%; - font-size: 12px; - color: rgba(0, 0, 0, 0.25); + display: inline-block; width: 12px; height: 12px; margin-top: -6px; + color: rgba(0, 0, 0, 0.25); + font-size: 12px; + font-style: normal; line-height: 12px; + text-align: center; + text-transform: none; + background: #fff; cursor: pointer; + opacity: 0; + -webkit-transition: color 0.3s ease, opacity 0.15s ease; transition: color 0.3s ease, opacity 0.15s ease; + text-rendering: auto; } -.ant-select-selection__clear:before { +.ant-select-selection__clear::before { display: block; } .ant-select-selection__clear:hover { @@ -16024,11 +17059,11 @@ span.ant-radio + * { } .ant-select-selection-selected-value { float: left; - overflow: hidden; - text-overflow: ellipsis; - white-space: nowrap; max-width: 100%; padding-right: 20px; + overflow: hidden; + white-space: nowrap; + text-overflow: ellipsis; } .ant-select-no-arrow .ant-select-selection-selected-value { padding-right: 0; @@ -16052,31 +17087,31 @@ span.ant-radio + * { pointer-events: none; } .ant-select-disabled .ant-select-selection--multiple .ant-select-selection__choice { - background: #f5f5f5; - color: #aaa; padding-right: 10px; + color: rgba(0, 0, 0, 0.33); + background: #f5f5f5; } .ant-select-disabled .ant-select-selection--multiple .ant-select-selection__choice__remove { display: none; } .ant-select-selection--single { - height: 32px; position: relative; + height: 32px; cursor: pointer; } .ant-select-selection__rendered { + position: relative; display: block; - margin-left: 11px; margin-right: 11px; - position: relative; + margin-left: 11px; line-height: 30px; } -.ant-select-selection__rendered:after { - content: '.'; - visibility: hidden; - pointer-events: none; +.ant-select-selection__rendered::after { display: inline-block; width: 0; + visibility: hidden; + pointer-events: none; + content: '.'; } .ant-select-lg { font-size: 16px; @@ -16101,8 +17136,8 @@ span.ant-radio + * { height: 24px; } .ant-select-sm .ant-select-selection__rendered { - line-height: 22px; margin: 0 7px; + line-height: 22px; } .ant-select-sm .ant-select-selection--multiple { min-height: 24px; @@ -16126,24 +17161,24 @@ span.ant-radio + * { color: rgba(0, 0, 0, 0.25); } .ant-select-search__field__wrap { - display: inline-block; position: relative; + display: inline-block; } .ant-select-selection__placeholder, .ant-select-search__field__placeholder { position: absolute; top: 50%; - left: 0; right: 9px; - color: #bfbfbf; - line-height: 20px; - height: 20px; + left: 0; max-width: 100%; + height: 20px; margin-top: -10px; overflow: hidden; - text-overflow: ellipsis; + color: #bfbfbf; + line-height: 20px; white-space: nowrap; text-align: left; + text-overflow: ellipsis; } .ant-select-search__field__placeholder { left: 12px; @@ -16153,123 +17188,127 @@ span.ant-radio + * { top: 0; left: 0; white-space: pre; - pointer-events: none; opacity: 0; + pointer-events: none; } .ant-select-search--inline { position: absolute; - height: 100%; width: 100%; + height: 100%; } .ant-select-search--inline .ant-select-search__field__wrap { width: 100%; height: 100%; } .ant-select-search--inline .ant-select-search__field { - border-width: 0; - font-size: 100%; - height: 100%; width: 100%; + height: 100%; + font-size: 100%; + line-height: 1; background: transparent; - outline: 0; + border-width: 0; border-radius: 5px; - line-height: 1; + outline: 0; } .ant-select-search--inline > i { float: right; } .ant-select-selection--multiple { min-height: 32px; - cursor: text; padding-bottom: 3px; + cursor: text; zoom: 1; } -.ant-select-selection--multiple:before, -.ant-select-selection--multiple:after { +.ant-select-selection--multiple::before, +.ant-select-selection--multiple::after { content: ''; display: table; } -.ant-select-selection--multiple:after { +.ant-select-selection--multiple::after { clear: both; } -.ant-select-selection--multiple:before, -.ant-select-selection--multiple:after { +.ant-select-selection--multiple::before, +.ant-select-selection--multiple::after { content: ''; display: table; } -.ant-select-selection--multiple:after { +.ant-select-selection--multiple::after { clear: both; } .ant-select-selection--multiple .ant-select-search--inline { - float: left; position: static; + float: left; width: auto; - padding: 0; max-width: 100%; + padding: 0; } .ant-select-selection--multiple .ant-select-search--inline .ant-select-search__field { - max-width: 100%; width: 0.75em; + max-width: 100%; } .ant-select-selection--multiple .ant-select-selection__rendered { - margin-left: 5px; - margin-bottom: -3px; height: auto; + margin-bottom: -3px; + margin-left: 5px; } .ant-select-selection--multiple .ant-select-selection__placeholder { margin-left: 6px; } .ant-select-selection--multiple > ul > li, .ant-select-selection--multiple .ant-select-selection__rendered > ul > li { - margin-top: 3px; height: 24px; + margin-top: 3px; line-height: 22px; } .ant-select-selection--multiple .ant-select-selection__choice { + position: relative; + float: left; + max-width: 99%; + margin-right: 4px; + padding: 0 20px 0 10px; + overflow: hidden; color: rgba(0, 0, 0, 0.65); background-color: #fafafa; border: 1px solid #e8e8e8; border-radius: 2px; cursor: default; - float: left; - margin-right: 4px; - max-width: 99%; - position: relative; - overflow: hidden; + -webkit-transition: padding 0.3s cubic-bezier(0.645, 0.045, 0.355, 1); transition: padding 0.3s cubic-bezier(0.645, 0.045, 0.355, 1); - padding: 0 20px 0 10px; } .ant-select-selection--multiple .ant-select-selection__choice__disabled { padding: 0 10px; } .ant-select-selection--multiple .ant-select-selection__choice__content { display: inline-block; - white-space: nowrap; + max-width: 100%; overflow: hidden; + white-space: nowrap; text-overflow: ellipsis; - max-width: 100%; + -webkit-transition: margin 0.3s cubic-bezier(0.645, 0.045, 0.355, 1); transition: margin 0.3s cubic-bezier(0.645, 0.045, 0.355, 1); } .ant-select-selection--multiple .ant-select-selection__choice__remove { font-style: normal; - vertical-align: -0.125em; + line-height: 0; text-align: center; text-transform: none; - line-height: 0; + vertical-align: -0.125em; text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; + position: absolute; + right: 4px; color: rgba(0, 0, 0, 0.45); + font-weight: bold; line-height: inherit; cursor: pointer; - font-weight: bold; + -webkit-transition: all 0.3s; transition: all 0.3s; display: inline-block; font-size: 12px; font-size: 10px \9; - transform: scale(0.83333333) rotate(0deg); - position: absolute; - right: 4px; + -webkit-transform: scale(0.83333333) rotate(0deg); + transform: scale(0.83333333) rotate(0deg); } .ant-select-selection--multiple .ant-select-selection__choice__remove > * { line-height: 1; @@ -16277,7 +17316,7 @@ span.ant-radio + * { .ant-select-selection--multiple .ant-select-selection__choice__remove svg { display: inline-block; } -.ant-select-selection--multiple .ant-select-selection__choice__remove:before { +.ant-select-selection--multiple .ant-select-selection__choice__remove::before { display: none; } .ant-select-selection--multiple .ant-select-selection__choice__remove .ant-select-selection--multiple .ant-select-selection__choice__remove-icon { @@ -16287,7 +17326,7 @@ span.ant-radio + * { font-size: 12px; } .ant-select-selection--multiple .ant-select-selection__choice__remove:hover { - color: #404040; + color: rgba(0, 0, 0, 0.75); } .ant-select-selection--multiple .ant-select-selection__clear { top: 16px; @@ -16299,56 +17338,58 @@ span.ant-radio + * { margin-right: 20px; } .ant-select-open .ant-select-arrow-icon svg { - transform: rotate(180deg); + -webkit-transform: rotate(180deg); + transform: rotate(180deg); } .ant-select-open .ant-select-selection { border-color: #f2726f; + border-right-width: 1px !important; outline: 0; box-shadow: 0 0 0 2px rgba(230, 68, 72, 0.2); - border-right-width: 1px !important; } .ant-select-combobox .ant-select-arrow { display: none; } .ant-select-combobox .ant-select-search--inline { - height: 100%; - width: 100%; float: none; + width: 100%; + height: 100%; } .ant-select-combobox .ant-select-search__field__wrap { width: 100%; height: 100%; } .ant-select-combobox .ant-select-search__field { - width: 100%; - height: 100%; position: relative; z-index: 1; - transition: all 0.3s cubic-bezier(0.645, 0.045, 0.355, 1), height 0s; + width: 100%; + height: 100%; box-shadow: none; + -webkit-transition: all 0.3s cubic-bezier(0.645, 0.045, 0.355, 1), height 0s; + transition: all 0.3s cubic-bezier(0.645, 0.045, 0.355, 1), height 0s; } .ant-select-combobox.ant-select-allow-clear .ant-select-selection:hover .ant-select-selection__rendered { margin-right: 20px; } .ant-select-dropdown { - font-family: "Chinese Quote", -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"; - font-variant: tabular-nums; - line-height: 1.5; - color: rgba(0, 0, 0, 0.65); margin: 0; padding: 0; + color: rgba(0, 0, 0, 0.65); + font-variant: tabular-nums; + line-height: 1.5; list-style: none; + font-feature-settings: 'tnum'; + position: absolute; + top: -9999px; + left: -9999px; + z-index: 1050; + box-sizing: border-box; + font-size: 14px; font-variant: initial; background-color: #fff; - box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15); border-radius: 5px; - box-sizing: border-box; - z-index: 1050; - left: -9999px; - top: -9999px; - position: absolute; outline: none; - font-size: 14px; + box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15); } .ant-select-dropdown.slide-up-enter.slide-up-enter-active.ant-select-dropdown-placement-bottomLeft, .ant-select-dropdown.slide-up-appear.slide-up-appear-active.ant-select-dropdown-placement-bottomLeft { @@ -16372,12 +17413,12 @@ span.ant-radio + * { display: none; } .ant-select-dropdown-menu { - outline: none; + max-height: 250px; margin-bottom: 0; padding-left: 0; - list-style: none; - max-height: 250px; overflow: auto; + list-style: none; + outline: none; } .ant-select-dropdown-menu-item-group-list { margin: 0; @@ -16387,11 +17428,11 @@ span.ant-radio + * { padding-left: 20px; } .ant-select-dropdown-menu-item-group-title { - color: rgba(0, 0, 0, 0.45); - padding: 0 12px; height: 32px; - line-height: 32px; + padding: 0 12px; + color: rgba(0, 0, 0, 0.45); font-size: 12px; + line-height: 32px; } .ant-select-dropdown-menu-item-group-list .ant-select-dropdown-menu-item:first-child:not(:last-child), .ant-select-dropdown-menu-item-group:not(:last-child) .ant-select-dropdown-menu-item-group-list .ant-select-dropdown-menu-item:last-child { @@ -16401,13 +17442,14 @@ span.ant-radio + * { position: relative; display: block; padding: 5px 12px; - line-height: 22px; - font-weight: normal; + overflow: hidden; color: rgba(0, 0, 0, 0.65); + font-weight: normal; + line-height: 22px; white-space: nowrap; - cursor: pointer; - overflow: hidden; text-overflow: ellipsis; + cursor: pointer; + -webkit-transition: background 0.3s ease; transition: background 0.3s ease; } .ant-select-dropdown-menu-item:hover { @@ -16430,9 +17472,9 @@ span.ant-radio + * { } .ant-select-dropdown-menu-item-selected, .ant-select-dropdown-menu-item-selected:hover { - background-color: #fafafa; - font-weight: 600; color: rgba(0, 0, 0, 0.65); + font-weight: 600; + background-color: #fafafa; } .ant-select-dropdown-menu-item-active { background-color: #fff2f0; @@ -16441,39 +17483,35 @@ span.ant-radio + * { height: 1px; margin: 1px 0; overflow: hidden; - background-color: #e8e8e8; line-height: 0; + background-color: #e8e8e8; } .ant-select-dropdown.ant-select-dropdown--multiple .ant-select-dropdown-menu-item { padding-right: 32px; } .ant-select-dropdown.ant-select-dropdown--multiple .ant-select-dropdown-menu-item .ant-select-selected-icon { - color: transparent; - display: inline-block; - font-size: 12px; - font-size: 10px \9; - transform: scale(0.83333333) rotate(0deg); - transition: all 0.2s ease; position: absolute; top: 50%; - transform: translateY(-50%); right: 12px; + color: transparent; font-weight: bold; - text-shadow: 0 0.1px 0, 0.1px 0 0, 0 -0.1px 0, -0.1px 0; -} -:root .ant-select-dropdown.ant-select-dropdown--multiple .ant-select-dropdown-menu-item .ant-select-selected-icon { font-size: 12px; + text-shadow: 0 0.1px 0, 0.1px 0 0, 0 -0.1px 0, -0.1px 0; + -webkit-transform: translateY(-50%); + transform: translateY(-50%); + -webkit-transition: all 0.2s; + transition: all 0.2s; } .ant-select-dropdown.ant-select-dropdown--multiple .ant-select-dropdown-menu-item:hover .ant-select-selected-icon { - color: #ddd; + color: rgba(0, 0, 0, 0.87); } .ant-select-dropdown.ant-select-dropdown--multiple .ant-select-dropdown-menu-item-disabled .ant-select-selected-icon { display: none; } .ant-select-dropdown.ant-select-dropdown--multiple .ant-select-dropdown-menu-item-selected .ant-select-selected-icon, .ant-select-dropdown.ant-select-dropdown--multiple .ant-select-dropdown-menu-item-selected:hover .ant-select-selected-icon { - color: #E64448; display: inline-block; + color: #E64448; } .ant-select-dropdown-container-open .ant-select-dropdown, .ant-select-dropdown-open .ant-select-dropdown { @@ -16485,8 +17523,8 @@ span.ant-radio + * { } .ant-skeleton-header { display: table-cell; - vertical-align: top; padding-right: 16px; + vertical-align: top; } .ant-skeleton-header .ant-skeleton-avatar { display: inline-block; @@ -16517,23 +17555,23 @@ span.ant-radio + * { } .ant-skeleton-content { display: table-cell; - vertical-align: top; width: 100%; + vertical-align: top; } .ant-skeleton-content .ant-skeleton-title { - margin-top: 16px; - height: 16px; width: 100%; + height: 16px; + margin-top: 16px; background: #f2f2f2; } .ant-skeleton-content .ant-skeleton-title + .ant-skeleton-paragraph { margin-top: 24px; } .ant-skeleton-content .ant-skeleton-paragraph > li { + width: 100%; height: 16px; - background: #f2f2f2; list-style: none; - width: 100%; + background: #f2f2f2; } .ant-skeleton-content .ant-skeleton-paragraph > li:last-child:not(:first-child):not(:nth-child(2)) { width: 61%; @@ -16549,16 +17587,18 @@ span.ant-radio + * { } .ant-skeleton.ant-skeleton-active .ant-skeleton-content .ant-skeleton-title, .ant-skeleton.ant-skeleton-active .ant-skeleton-content .ant-skeleton-paragraph > li { + background: -webkit-gradient(linear, left top, right top, color-stop(25%, #f2f2f2), color-stop(37%, #e6e6e6), color-stop(63%, #f2f2f2)); background: linear-gradient(90deg, #f2f2f2 25%, #e6e6e6 37%, #f2f2f2 63%); + background-size: 400% 100%; -webkit-animation: ant-skeleton-loading 1.4s ease infinite; animation: ant-skeleton-loading 1.4s ease infinite; - background-size: 400% 100%; } .ant-skeleton.ant-skeleton-active .ant-skeleton-avatar { + background: -webkit-gradient(linear, left top, right top, color-stop(25%, #f2f2f2), color-stop(37%, #e6e6e6), color-stop(63%, #f2f2f2)); background: linear-gradient(90deg, #f2f2f2 25%, #e6e6e6 37%, #f2f2f2 63%); + background-size: 400% 100%; -webkit-animation: ant-skeleton-loading 1.4s ease infinite; animation: ant-skeleton-loading 1.4s ease infinite; - background-size: 400% 100%; } @-webkit-keyframes ant-skeleton-loading { 0% { @@ -16577,19 +17617,19 @@ span.ant-radio + * { } } .ant-slider { - font-family: "Chinese Quote", -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"; - font-size: 14px; - font-variant: tabular-nums; - line-height: 1.5; - color: rgba(0, 0, 0, 0.65); box-sizing: border-box; margin: 0; padding: 0; + color: rgba(0, 0, 0, 0.65); + font-size: 14px; + font-variant: tabular-nums; + line-height: 1.5; list-style: none; + font-feature-settings: 'tnum'; position: relative; + height: 12px; margin: 14px 6px 10px; padding: 4px 0; - height: 12px; cursor: pointer; touch-action: none; } @@ -16600,15 +17640,15 @@ span.ant-radio + * { padding: 0 4px; } .ant-slider-vertical .ant-slider-rail { - height: 100%; width: 4px; + height: 100%; } .ant-slider-vertical .ant-slider-track { width: 4px; } .ant-slider-vertical .ant-slider-handle { - margin-left: -5px; margin-bottom: -7px; + margin-left: -5px; } .ant-slider-vertical .ant-slider-mark { top: 0; @@ -16636,34 +17676,39 @@ span.ant-radio + * { position: absolute; width: 100%; height: 4px; - border-radius: 2px; background-color: #f5f5f5; + border-radius: 2px; + -webkit-transition: background-color 0.3s; transition: background-color 0.3s; } .ant-slider-track { position: absolute; height: 4px; + background-color: #ffccc7; border-radius: 5px; - background-color: #f2726f; + -webkit-transition: background-color 0.3s ease; transition: background-color 0.3s ease; } .ant-slider-handle { position: absolute; - margin-left: -7px; - margin-top: -5px; width: 14px; height: 14px; - cursor: pointer; - border-radius: 50%; - border: solid 2px #f2726f; + margin-top: -5px; + margin-left: -7px; background-color: #fff; + border: solid 2px #ffccc7; + border-radius: 50%; box-shadow: 0; + cursor: pointer; + -webkit-transition: border-color 0.3s, box-shadow 0.6s, -webkit-transform 0.3s cubic-bezier(0.18, 0.89, 0.32, 1.28); + transition: border-color 0.3s, box-shadow 0.6s, -webkit-transform 0.3s cubic-bezier(0.18, 0.89, 0.32, 1.28); transition: border-color 0.3s, box-shadow 0.6s, transform 0.3s cubic-bezier(0.18, 0.89, 0.32, 1.28); + transition: border-color 0.3s, box-shadow 0.6s, transform 0.3s cubic-bezier(0.18, 0.89, 0.32, 1.28), -webkit-transform 0.3s cubic-bezier(0.18, 0.89, 0.32, 1.28); } .ant-slider-handle:focus { border-color: #eb696d; - box-shadow: 0 0 0 5px rgba(230, 68, 72, 0.2); outline: none; + box-shadow: 0 0 0 5px rgba(230, 68, 72, 0.2); } .ant-slider-handle.ant-tooltip-open { border-color: #E64448; @@ -16672,10 +17717,10 @@ span.ant-radio + * { background-color: #e1e1e1; } .ant-slider:hover .ant-slider-track { - background-color: #E64448; + background-color: #ffa39e; } .ant-slider:hover .ant-slider-handle:not(.ant-tooltip-open) { - border-color: #E64448; + border-color: #ffa39e; } .ant-slider-mark { position: absolute; @@ -16687,10 +17732,9 @@ span.ant-radio + * { .ant-slider-mark-text { position: absolute; display: inline-block; - vertical-align: middle; + color: rgba(0, 0, 0, 0.45); text-align: center; cursor: pointer; - color: rgba(0, 0, 0, 0.45); } .ant-slider-mark-text-active { color: rgba(0, 0, 0, 0.65); @@ -16704,14 +17748,13 @@ span.ant-radio + * { .ant-slider-dot { position: absolute; top: -2px; - margin-left: -4px; width: 8px; height: 8px; - border: 2px solid #e8e8e8; + margin-left: -4px; background-color: #fff; - cursor: pointer; + border: 2px solid #e8e8e8; border-radius: 50%; - vertical-align: middle; + cursor: pointer; } .ant-slider-dot:first-child { margin-left: -4px; @@ -16720,7 +17763,7 @@ span.ant-radio + * { margin-left: -4px; } .ant-slider-dot-active { - border-color: #f2726f; + border-color: #f3a2a4; } .ant-slider-disabled { cursor: not-allowed; @@ -16730,48 +17773,51 @@ span.ant-radio + * { } .ant-slider-disabled .ant-slider-handle, .ant-slider-disabled .ant-slider-dot { - border-color: rgba(0, 0, 0, 0.25) !important; background-color: #fff; - cursor: not-allowed; + border-color: rgba(0, 0, 0, 0.25) !important; box-shadow: none; + cursor: not-allowed; } .ant-slider-disabled .ant-slider-mark-text, .ant-slider-disabled .ant-slider-dot { cursor: not-allowed !important; } .ant-spin { - font-family: "Chinese Quote", -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"; - font-size: 14px; - font-variant: tabular-nums; - line-height: 1.5; - color: rgba(0, 0, 0, 0.65); box-sizing: border-box; margin: 0; padding: 0; + color: rgba(0, 0, 0, 0.65); + font-size: 14px; + font-variant: tabular-nums; + line-height: 1.5; list-style: none; + font-feature-settings: 'tnum'; + position: absolute; + display: none; color: #E64448; - vertical-align: middle; text-align: center; + vertical-align: middle; opacity: 0; - position: absolute; + -webkit-transition: -webkit-transform 0.3s cubic-bezier(0.78, 0.14, 0.15, 0.86); + transition: -webkit-transform 0.3s cubic-bezier(0.78, 0.14, 0.15, 0.86); transition: transform 0.3s cubic-bezier(0.78, 0.14, 0.15, 0.86); - display: none; + transition: transform 0.3s cubic-bezier(0.78, 0.14, 0.15, 0.86), -webkit-transform 0.3s cubic-bezier(0.78, 0.14, 0.15, 0.86); } .ant-spin-spinning { - opacity: 1; position: static; display: inline-block; + opacity: 1; } .ant-spin-nested-loading { position: relative; } .ant-spin-nested-loading > div > .ant-spin { - display: block; position: absolute; + z-index: 4; + display: block; + width: 100%; height: 100%; max-height: 400px; - width: 100%; - z-index: 4; } .ant-spin-nested-loading > div > .ant-spin .ant-spin-dot { position: absolute; @@ -16809,34 +17855,37 @@ span.ant-radio + * { } .ant-spin-container { position: relative; + -webkit-transition: opacity 0.3s; transition: opacity 0.3s; } -.ant-spin-container:after { - content: ''; +.ant-spin-container::after { position: absolute; - left: 0; - right: 0; top: 0; + right: 0; bottom: 0; + left: 0; + z-index: 10; + display: none \9; + width: 100%; + height: 100%; background: #fff; opacity: 0; - pointer-events: none; + -webkit-transition: all 0.3s; transition: all 0.3s; - display: none \9; - height: 100%; - width: 100%; - z-index: 10; + pointer-events: none; + content: ''; } .ant-spin-blur { - pointer-events: none; + clear: both; + overflow: hidden; + opacity: 0.5; -webkit-user-select: none; -moz-user-select: none; -ms-user-select: none; user-select: none; - overflow: hidden; - opacity: 0.5; + pointer-events: none; } -.ant-spin-blur:after { +.ant-spin-blur::after { opacity: 0.4; pointer-events: auto; } @@ -16851,25 +17900,27 @@ span.ant-radio + * { height: 20px; } .ant-spin-dot i { + position: absolute; + display: block; width: 9px; height: 9px; - border-radius: 100%; background-color: #E64448; - transform: scale(0.75); - display: block; - position: absolute; + border-radius: 100%; + -webkit-transform: scale(0.75); + transform: scale(0.75); + -webkit-transform-origin: 50% 50%; + transform-origin: 50% 50%; opacity: 0.3; -webkit-animation: antSpinMove 1s infinite linear alternate; animation: antSpinMove 1s infinite linear alternate; - transform-origin: 50% 50%; } .ant-spin-dot i:nth-child(1) { - left: 0; top: 0; + left: 0; } .ant-spin-dot i:nth-child(2) { - right: 0; top: 0; + right: 0; -webkit-animation-delay: 0.4s; animation-delay: 0.4s; } @@ -16880,13 +17931,14 @@ span.ant-radio + * { animation-delay: 0.8s; } .ant-spin-dot i:nth-child(4) { - left: 0; bottom: 0; + left: 0; -webkit-animation-delay: 1.2s; animation-delay: 1.2s; } .ant-spin-dot-spin { - transform: rotate(45deg); + -webkit-transform: rotate(45deg); + transform: rotate(45deg); -webkit-animation: antRotate 1.2s infinite linear; animation: antRotate 1.2s infinite linear; } @@ -16923,47 +17975,85 @@ span.ant-radio + * { opacity: 1; } } -@keyframes antSpinMove { - to { - opacity: 1; - } +@keyframes antSpinMove { + to { + opacity: 1; + } +} +@-webkit-keyframes antRotate { + to { + -webkit-transform: rotate(405deg); + transform: rotate(405deg); + } +} +@keyframes antRotate { + to { + -webkit-transform: rotate(405deg); + transform: rotate(405deg); + } +} +.ant-statistic { + box-sizing: border-box; + margin: 0; + padding: 0; + color: rgba(0, 0, 0, 0.65); + font-size: 14px; + font-variant: tabular-nums; + line-height: 1.5; + list-style: none; + font-feature-settings: 'tnum'; +} +.ant-statistic-title { + margin-bottom: 4px; + font-size: 14px; +} +.ant-statistic-content { + font-size: 24px; + font-family: Tahoma, 'Helvetica Neue', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', 'Helvetica Neue', Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol'; } -@-webkit-keyframes antRotate { - to { - transform: rotate(405deg); - } +.ant-statistic-content-value-decimal { + font-size: 16px; } -@keyframes antRotate { - to { - transform: rotate(405deg); - } +.ant-statistic-content-prefix, +.ant-statistic-content-suffix { + display: inline-block; +} +.ant-statistic-content-prefix { + margin-right: 4px; +} +.ant-statistic-content-suffix { + margin-left: 4px; + font-size: 16px; } .ant-steps { - font-family: "Chinese Quote", -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"; - font-size: 14px; - font-variant: tabular-nums; - line-height: 1.5; - color: rgba(0, 0, 0, 0.65); box-sizing: border-box; margin: 0; padding: 0; + color: rgba(0, 0, 0, 0.65); + font-size: 14px; + font-variant: tabular-nums; + line-height: 1.5; list-style: none; - font-size: 0; - width: 100%; + font-feature-settings: 'tnum'; + display: -webkit-box; display: flex; + width: 100%; + font-size: 0; } .ant-steps-item { position: relative; display: inline-block; - vertical-align: top; - flex: 1; + -webkit-box-flex: 1; + flex: 1; overflow: hidden; + vertical-align: top; } .ant-steps-item:last-child { - flex: none; + -webkit-box-flex: 0; + flex: none; } .ant-steps-item:last-child .ant-steps-item-tail, -.ant-steps-item:last-child .ant-steps-item-title:after { +.ant-steps-item:last-child .ant-steps-item-title::after { display: none; } .ant-steps-item-icon, @@ -16972,64 +18062,66 @@ span.ant-radio + * { vertical-align: top; } .ant-steps-item-icon { - border: 1px solid rgba(0, 0, 0, 0.25); width: 32px; height: 32px; + margin-right: 8px; + font-size: 16px; + font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', 'Helvetica Neue', Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol'; line-height: 32px; text-align: center; + border: 1px solid rgba(0, 0, 0, 0.25); border-radius: 32px; - font-size: 16px; - margin-right: 8px; + -webkit-transition: background-color 0.3s, border-color 0.3s; transition: background-color 0.3s, border-color 0.3s; - font-family: "Chinese Quote", -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"; } .ant-steps-item-icon > .ant-steps-icon { - line-height: 1; + position: relative; top: -1px; color: #E64448; - position: relative; + line-height: 1; } .ant-steps-item-tail { position: absolute; + top: 12px; left: 0; width: 100%; - top: 12px; padding: 0 10px; } -.ant-steps-item-tail:after { - content: ''; +.ant-steps-item-tail::after { display: inline-block; - background: #e8e8e8; + width: 100%; height: 1px; + background: #e8e8e8; border-radius: 1px; - width: 100%; + -webkit-transition: background 0.3s; transition: background 0.3s; + content: ''; } .ant-steps-item-title { - font-size: 16px; - color: rgba(0, 0, 0, 0.65); + position: relative; display: inline-block; padding-right: 16px; - position: relative; + color: rgba(0, 0, 0, 0.65); + font-size: 16px; line-height: 32px; } -.ant-steps-item-title:after { - content: ''; - height: 1px; - width: 9999px; - background: #e8e8e8; - display: block; +.ant-steps-item-title::after { position: absolute; top: 16px; left: 100%; + display: block; + width: 9999px; + height: 1px; + background: #e8e8e8; + content: ''; } .ant-steps-item-description { - font-size: 14px; color: rgba(0, 0, 0, 0.45); + font-size: 14px; } .ant-steps-item-wait .ant-steps-item-icon { - border-color: rgba(0, 0, 0, 0.25); background-color: #fff; + border-color: rgba(0, 0, 0, 0.25); } .ant-steps-item-wait .ant-steps-item-icon > .ant-steps-icon { color: rgba(0, 0, 0, 0.25); @@ -17040,18 +18132,18 @@ span.ant-radio + * { .ant-steps-item-wait > .ant-steps-item-content > .ant-steps-item-title { color: rgba(0, 0, 0, 0.45); } -.ant-steps-item-wait > .ant-steps-item-content > .ant-steps-item-title:after { +.ant-steps-item-wait > .ant-steps-item-content > .ant-steps-item-title::after { background-color: #e8e8e8; } .ant-steps-item-wait > .ant-steps-item-content > .ant-steps-item-description { color: rgba(0, 0, 0, 0.45); } -.ant-steps-item-wait > .ant-steps-item-tail:after { +.ant-steps-item-wait > .ant-steps-item-tail::after { background-color: #e8e8e8; } .ant-steps-item-process .ant-steps-item-icon { - border-color: #E64448; background-color: #fff; + border-color: #E64448; } .ant-steps-item-process .ant-steps-item-icon > .ant-steps-icon { color: #E64448; @@ -17062,13 +18154,13 @@ span.ant-radio + * { .ant-steps-item-process > .ant-steps-item-content > .ant-steps-item-title { color: rgba(0, 0, 0, 0.85); } -.ant-steps-item-process > .ant-steps-item-content > .ant-steps-item-title:after { +.ant-steps-item-process > .ant-steps-item-content > .ant-steps-item-title::after { background-color: #e8e8e8; } .ant-steps-item-process > .ant-steps-item-content > .ant-steps-item-description { color: rgba(0, 0, 0, 0.65); } -.ant-steps-item-process > .ant-steps-item-tail:after { +.ant-steps-item-process > .ant-steps-item-tail::after { background-color: #e8e8e8; } .ant-steps-item-process .ant-steps-item-icon { @@ -17081,8 +18173,8 @@ span.ant-radio + * { font-weight: 500; } .ant-steps-item-finish .ant-steps-item-icon { - border-color: #E64448; background-color: #fff; + border-color: #E64448; } .ant-steps-item-finish .ant-steps-item-icon > .ant-steps-icon { color: #E64448; @@ -17093,18 +18185,18 @@ span.ant-radio + * { .ant-steps-item-finish > .ant-steps-item-content > .ant-steps-item-title { color: rgba(0, 0, 0, 0.65); } -.ant-steps-item-finish > .ant-steps-item-content > .ant-steps-item-title:after { +.ant-steps-item-finish > .ant-steps-item-content > .ant-steps-item-title::after { background-color: #E64448; } .ant-steps-item-finish > .ant-steps-item-content > .ant-steps-item-description { color: rgba(0, 0, 0, 0.45); } -.ant-steps-item-finish > .ant-steps-item-tail:after { +.ant-steps-item-finish > .ant-steps-item-tail::after { background-color: #E64448; } .ant-steps-item-error .ant-steps-item-icon { - border-color: #f5222d; background-color: #fff; + border-color: #f5222d; } .ant-steps-item-error .ant-steps-item-icon > .ant-steps-icon { color: #f5222d; @@ -17115,16 +18207,16 @@ span.ant-radio + * { .ant-steps-item-error > .ant-steps-item-content > .ant-steps-item-title { color: #f5222d; } -.ant-steps-item-error > .ant-steps-item-content > .ant-steps-item-title:after { +.ant-steps-item-error > .ant-steps-item-content > .ant-steps-item-title::after { background-color: #e8e8e8; } .ant-steps-item-error > .ant-steps-item-content > .ant-steps-item-description { color: #f5222d; } -.ant-steps-item-error > .ant-steps-item-tail:after { +.ant-steps-item-error > .ant-steps-item-tail::after { background-color: #e8e8e8; } -.ant-steps-item.ant-steps-next-error .ant-steps-item-title:after { +.ant-steps-item.ant-steps-next-error .ant-steps-item-title::after { background: #f5222d; } .ant-steps-horizontal:not(.ant-steps-label-vertical) .ant-steps-item { @@ -17145,22 +18237,24 @@ span.ant-radio + * { white-space: normal; } .ant-steps-item-custom .ant-steps-item-icon { + height: auto; background: none; border: 0; - width: auto; - height: auto; } .ant-steps-item-custom .ant-steps-item-icon > .ant-steps-icon { - font-size: 24px; - line-height: 32px; top: 0; left: 0.5px; width: 32px; height: 32px; + font-size: 24px; + line-height: 32px; } .ant-steps-item-custom.ant-steps-item-process .ant-steps-item-icon > .ant-steps-icon { color: #E64448; } +.ant-steps:not(.ant-steps-vertical) .ant-steps-item-custom .ant-steps-item-icon { + width: auto; +} .ant-steps-small.ant-steps-horizontal:not(.ant-steps-label-vertical) .ant-steps-item { margin-right: 12px; } @@ -17170,22 +18264,22 @@ span.ant-radio + * { .ant-steps-small .ant-steps-item-icon { width: 24px; height: 24px; + font-size: 12px; line-height: 24px; text-align: center; border-radius: 24px; - font-size: 12px; } .ant-steps-small .ant-steps-item-title { + padding-right: 12px; font-size: 14px; line-height: 24px; - padding-right: 12px; } -.ant-steps-small .ant-steps-item-title:after { +.ant-steps-small .ant-steps-item-title::after { top: 12px; } .ant-steps-small .ant-steps-item-description { - font-size: 14px; color: rgba(0, 0, 0, 0.45); + font-size: 14px; } .ant-steps-small .ant-steps-item-tail { top: 8px; @@ -17195,14 +18289,15 @@ span.ant-radio + * { width: inherit; height: inherit; line-height: inherit; - border-radius: 0; - border: 0; background: none; + border: 0; + border-radius: 0; } .ant-steps-small .ant-steps-item-custom .ant-steps-item-icon > .ant-steps-icon { font-size: 24px; line-height: 24px; - transform: none; + -webkit-transform: none; + transform: none; } .ant-steps-vertical { display: block; @@ -17216,9 +18311,9 @@ span.ant-radio + * { margin-right: 16px; } .ant-steps-vertical .ant-steps-item-content { + display: block; min-height: 48px; overflow: hidden; - display: block; } .ant-steps-vertical .ant-steps-item-title { line-height: 32px; @@ -17228,26 +18323,26 @@ span.ant-radio + * { } .ant-steps-vertical > .ant-steps-item > .ant-steps-item-tail { position: absolute; - left: 16px; top: 0; - height: 100%; + left: 16px; width: 1px; + height: 100%; padding: 38px 0 6px; } -.ant-steps-vertical > .ant-steps-item > .ant-steps-item-tail:after { - height: 100%; +.ant-steps-vertical > .ant-steps-item > .ant-steps-item-tail::after { width: 1px; + height: 100%; } .ant-steps-vertical > .ant-steps-item:not(:last-child) > .ant-steps-item-tail { display: block; } -.ant-steps-vertical > .ant-steps-item > .ant-steps-item-content > .ant-steps-item-title:after { +.ant-steps-vertical > .ant-steps-item > .ant-steps-item-content > .ant-steps-item-title::after { display: none; } .ant-steps-vertical.ant-steps-small .ant-steps-item-tail { position: absolute; - left: 12px; top: 0; + left: 12px; padding: 30px 0 6px; } .ant-steps-vertical.ant-steps-small .ant-steps-item-title { @@ -17266,9 +18361,9 @@ span.ant-radio + * { margin-right: 16px; } .ant-steps-horizontal.ant-steps-label-horizontal .ant-steps-item-content { + display: block; min-height: 48px; overflow: hidden; - display: block; } .ant-steps-horizontal.ant-steps-label-horizontal .ant-steps-item-title { line-height: 32px; @@ -17278,26 +18373,26 @@ span.ant-radio + * { } .ant-steps-horizontal.ant-steps-label-horizontal > .ant-steps-item > .ant-steps-item-tail { position: absolute; - left: 16px; top: 0; - height: 100%; + left: 16px; width: 1px; + height: 100%; padding: 38px 0 6px; } - .ant-steps-horizontal.ant-steps-label-horizontal > .ant-steps-item > .ant-steps-item-tail:after { - height: 100%; + .ant-steps-horizontal.ant-steps-label-horizontal > .ant-steps-item > .ant-steps-item-tail::after { width: 1px; + height: 100%; } .ant-steps-horizontal.ant-steps-label-horizontal > .ant-steps-item:not(:last-child) > .ant-steps-item-tail { display: block; } - .ant-steps-horizontal.ant-steps-label-horizontal > .ant-steps-item > .ant-steps-item-content > .ant-steps-item-title:after { + .ant-steps-horizontal.ant-steps-label-horizontal > .ant-steps-item > .ant-steps-item-content > .ant-steps-item-title::after { display: none; } .ant-steps-horizontal.ant-steps-label-horizontal.ant-steps-small .ant-steps-item-tail { position: absolute; - left: 12px; top: 0; + left: 12px; padding: 30px 0 6px; } .ant-steps-horizontal.ant-steps-label-horizontal.ant-steps-small .ant-steps-item-title { @@ -17308,14 +18403,14 @@ span.ant-radio + * { overflow: visible; } .ant-steps-label-vertical .ant-steps-item-tail { - padding: 0 24px; - margin-left: 48px; + margin-left: 51px; + padding: 3.5px 24px; } .ant-steps-label-vertical .ant-steps-item-content { display: block; - text-align: center; - margin-top: 8px; width: 104px; + margin-top: 8px; + text-align: center; } .ant-steps-label-vertical .ant-steps-item-icon { display: inline-block; @@ -17324,52 +18419,53 @@ span.ant-radio + * { .ant-steps-label-vertical .ant-steps-item-title { padding-right: 0; } -.ant-steps-label-vertical .ant-steps-item-title:after { +.ant-steps-label-vertical .ant-steps-item-title::after { display: none; } .ant-steps-dot .ant-steps-item-title { line-height: 1.5; } .ant-steps-dot .ant-steps-item-tail { - width: 100%; top: 2px; + width: 100%; margin: 0 0 0 70px; padding: 0; } -.ant-steps-dot .ant-steps-item-tail:after { - height: 3px; +.ant-steps-dot .ant-steps-item-tail::after { width: calc(100% - 20px); + height: 3px; margin-left: 12px; } .ant-steps-dot .ant-steps-item:first-child .ant-steps-icon-dot { left: 2px; } .ant-steps-dot .ant-steps-item-icon { - padding-right: 0; width: 8px; height: 8px; - line-height: 8px; - border: 0; margin-left: 67px; + padding-right: 0; + line-height: 8px; background: transparent; + border: 0; } .ant-steps-dot .ant-steps-item-icon .ant-steps-icon-dot { + position: relative; float: left; width: 100%; height: 100%; border-radius: 100px; - position: relative; + -webkit-transition: all 0.3s; transition: all 0.3s; /* expand hover area */ } -.ant-steps-dot .ant-steps-item-icon .ant-steps-icon-dot:after { - content: ''; - background: rgba(0, 0, 0, 0.001); - width: 60px; - height: 32px; +.ant-steps-dot .ant-steps-item-icon .ant-steps-icon-dot::after { position: absolute; top: -12px; left: -26px; + width: 60px; + height: 32px; + background: rgba(0, 0, 0, 0.001); + content: ''; } .ant-steps-dot .ant-steps-item-content { width: 140px; @@ -17383,13 +18479,13 @@ span.ant-radio + * { top: -1px; } .ant-steps-vertical.ant-steps-dot .ant-steps-item-icon { - margin-left: 0; margin-top: 8px; + margin-left: 0; } .ant-steps-vertical.ant-steps-dot .ant-steps-item-tail { - margin: 0; - left: -9px; top: 2px; + left: -9px; + margin: 0; padding: 22px 0 4px; } .ant-steps-vertical.ant-steps-dot .ant-steps-item:first-child .ant-steps-icon-dot { @@ -17398,26 +18494,60 @@ span.ant-radio + * { .ant-steps-vertical.ant-steps-dot .ant-steps-item-process .ant-steps-icon-dot { left: -2px; } +.ant-steps-flex-not-supported.ant-steps-horizontal.ant-steps-label-horizontal .ant-steps-item { + margin-left: -16px; + padding-left: 16px; + background: #fff; +} +.ant-steps-flex-not-supported.ant-steps-horizontal.ant-steps-label-horizontal.ant-steps-small .ant-steps-item { + margin-left: -12px; + padding-left: 12px; +} +.ant-steps-flex-not-supported.ant-steps-dot .ant-steps-item:last-child { + overflow: hidden; +} +.ant-steps-flex-not-supported.ant-steps-dot .ant-steps-item:last-child .ant-steps-icon-dot::after { + right: -200px; + width: 200px; +} +.ant-steps-flex-not-supported.ant-steps-dot .ant-steps-item .ant-steps-icon-dot::before, +.ant-steps-flex-not-supported.ant-steps-dot .ant-steps-item .ant-steps-icon-dot::after { + position: absolute; + top: 0; + left: -10px; + width: 10px; + height: 8px; + background: #fff; + content: ''; +} +.ant-steps-flex-not-supported.ant-steps-dot .ant-steps-item .ant-steps-icon-dot::after { + right: -10px; + left: auto; +} +.ant-steps-flex-not-supported.ant-steps-dot .ant-steps-item-wait .ant-steps-item-icon > .ant-steps-icon .ant-steps-icon-dot { + background: #ccc; +} .ant-switch { - font-family: "Chinese Quote", -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"; + margin: 0; + padding: 0; + color: rgba(0, 0, 0, 0.65); font-size: 14px; font-variant: tabular-nums; line-height: 1.5; - color: rgba(0, 0, 0, 0.65); - margin: 0; - padding: 0; list-style: none; + font-feature-settings: 'tnum'; position: relative; display: inline-block; box-sizing: border-box; - height: 22px; min-width: 44px; + height: 22px; line-height: 20px; vertical-align: middle; - border-radius: 100px; - border: 1px solid transparent; background-color: rgba(0, 0, 0, 0.25); + border: 1px solid transparent; + border-radius: 100px; cursor: pointer; + -webkit-transition: all 0.36s; transition: all 0.36s; -webkit-user-select: none; -moz-user-select: none; @@ -17425,44 +18555,45 @@ span.ant-radio + * { user-select: none; } .ant-switch-inner { + display: block; + margin-right: 6px; + margin-left: 24px; color: #fff; font-size: 12px; - margin-left: 24px; - margin-right: 6px; - display: block; } .ant-switch-loading-icon, -.ant-switch:after { +.ant-switch::after { position: absolute; + top: 1px; + left: 1px; width: 18px; height: 18px; - left: 1px; - top: 1px; - border-radius: 18px; background-color: #fff; - content: ' '; + border-radius: 18px; cursor: pointer; + -webkit-transition: all 0.36s cubic-bezier(0.78, 0.14, 0.15, 0.86); transition: all 0.36s cubic-bezier(0.78, 0.14, 0.15, 0.86); + content: ' '; } -.ant-switch:after { +.ant-switch::after { box-shadow: 0 2px 4px 0 rgba(0, 35, 11, 0.2); } -.ant-switch:active:before, -.ant-switch:active:after { +.ant-switch:active::before, +.ant-switch:active::after { width: 24px; } .ant-switch-loading-icon { - background: transparent; z-index: 1; display: none; font-size: 12px; + background: transparent; } .ant-switch-loading-icon svg { position: absolute; - left: 0; top: 0; right: 0; bottom: 0; + left: 0; margin: auto; } .ant-switch-loading .ant-switch-loading-icon { @@ -17473,28 +18604,28 @@ span.ant-radio + * { color: #E64448; } .ant-switch:focus { - box-shadow: 0 0 0 2px rgba(230, 68, 72, 0.2); outline: 0; + box-shadow: 0 0 0 2px rgba(230, 68, 72, 0.2); } .ant-switch:focus:hover { box-shadow: none; } .ant-switch-small { - height: 16px; min-width: 28px; + height: 16px; line-height: 14px; } .ant-switch-small .ant-switch-inner { - margin-left: 18px; margin-right: 3px; + margin-left: 18px; font-size: 12px; } -.ant-switch-small:after { +.ant-switch-small::after { width: 12px; height: 12px; } -.ant-switch-small:active:before, -.ant-switch-small:active:after { +.ant-switch-small:active::before, +.ant-switch-small:active::after { width: 16px; } .ant-switch-small .ant-switch-loading-icon { @@ -17502,28 +18633,30 @@ span.ant-radio + * { height: 12px; } .ant-switch-small.ant-switch-checked .ant-switch-inner { - margin-left: 3px; margin-right: 18px; + margin-left: 3px; } .ant-switch-small.ant-switch-checked .ant-switch-loading-icon { left: 100%; margin-left: -13px; } .ant-switch-small.ant-switch-loading .ant-switch-loading-icon { - transform: scale(0.66667); font-weight: bold; + -webkit-transform: scale(0.66667); + transform: scale(0.66667); } .ant-switch-checked { background-color: #E64448; } .ant-switch-checked .ant-switch-inner { - margin-left: 6px; margin-right: 24px; + margin-left: 6px; } -.ant-switch-checked:after { +.ant-switch-checked::after { left: 100%; - transform: translateX(-100%); margin-left: -1px; + -webkit-transform: translateX(-100%); + transform: translateX(-100%); } .ant-switch-checked .ant-switch-loading-icon { left: 100%; @@ -17538,59 +18671,74 @@ span.ant-radio + * { .ant-switch-disabled * { cursor: not-allowed; } +.ant-switch-loading::before, +.ant-switch-disabled::before, +.ant-switch-loading::after, +.ant-switch-disabled::after { + cursor: not-allowed; +} @-webkit-keyframes AntSwitchSmallLoadingCircle { 0% { - transform-origin: 50% 50%; - transform: rotate(0deg) scale(0.66667); + -webkit-transform: rotate(0deg) scale(0.66667); + transform: rotate(0deg) scale(0.66667); + -webkit-transform-origin: 50% 50%; + transform-origin: 50% 50%; } 100% { - transform-origin: 50% 50%; - transform: rotate(360deg) scale(0.66667); + -webkit-transform: rotate(360deg) scale(0.66667); + transform: rotate(360deg) scale(0.66667); + -webkit-transform-origin: 50% 50%; + transform-origin: 50% 50%; } } @keyframes AntSwitchSmallLoadingCircle { 0% { - transform-origin: 50% 50%; - transform: rotate(0deg) scale(0.66667); + -webkit-transform: rotate(0deg) scale(0.66667); + transform: rotate(0deg) scale(0.66667); + -webkit-transform-origin: 50% 50%; + transform-origin: 50% 50%; } 100% { - transform-origin: 50% 50%; - transform: rotate(360deg) scale(0.66667); + -webkit-transform: rotate(360deg) scale(0.66667); + transform: rotate(360deg) scale(0.66667); + -webkit-transform-origin: 50% 50%; + transform-origin: 50% 50%; } } .ant-table-wrapper { zoom: 1; } -.ant-table-wrapper:before, -.ant-table-wrapper:after { +.ant-table-wrapper::before, +.ant-table-wrapper::after { content: ''; display: table; } -.ant-table-wrapper:after { +.ant-table-wrapper::after { clear: both; } -.ant-table-wrapper:before, -.ant-table-wrapper:after { +.ant-table-wrapper::before, +.ant-table-wrapper::after { content: ''; display: table; } -.ant-table-wrapper:after { +.ant-table-wrapper::after { clear: both; } .ant-table { - font-family: "Chinese Quote", -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"; - font-size: 14px; - font-variant: tabular-nums; - line-height: 1.5; - color: rgba(0, 0, 0, 0.65); box-sizing: border-box; margin: 0; padding: 0; + color: rgba(0, 0, 0, 0.65); + font-size: 14px; + font-variant: tabular-nums; + line-height: 1.5; list-style: none; + font-feature-settings: 'tnum'; position: relative; clear: both; } .ant-table-body { + -webkit-transition: opacity 0.3s; transition: opacity 0.3s; } .ant-table-empty .ant-table-body { @@ -17598,33 +18746,35 @@ span.ant-radio + * { } .ant-table table { width: 100%; - border-collapse: collapse; text-align: left; border-radius: 5px 5px 0 0; + border-collapse: collapse; } .ant-table-thead > tr > th { - background: #fafafa; - transition: background 0.3s ease; - text-align: left; color: rgba(0, 0, 0, 0.85); font-weight: 500; + text-align: left; + background: #fafafa; border-bottom: 1px solid #e8e8e8; + -webkit-transition: background 0.3s ease; + transition: background 0.3s ease; } .ant-table-thead > tr > th[colspan] { text-align: center; } .ant-table-thead > tr > th .anticon-filter, .ant-table-thead > tr > th .ant-table-filter-icon { - font-size: 12px; - cursor: pointer; - color: #bfbfbf; - transition: all 0.3s; - width: 28px; position: absolute; top: 0; right: 0; + width: 28px; height: 100%; + color: #bfbfbf; + font-size: 12px; text-align: center; + cursor: pointer; + -webkit-transition: all 0.3s; + transition: all 0.3s; } .ant-table-thead > tr > th .anticon-filter > svg, .ant-table-thead > tr > th .ant-table-filter-icon > svg { @@ -17639,13 +18789,14 @@ span.ant-radio + * { } .ant-table-thead > tr > th .ant-table-column-sorter { position: absolute; - right: 6px; top: 50%; + right: 6px; width: 14px; height: 17px; margin-top: -8.5px; - text-align: center; color: #bfbfbf; + text-align: center; + -webkit-transition: all 0.3s; transition: all 0.3s; } .ant-table-thead > tr > th .ant-table-column-sorter-up, @@ -17653,11 +18804,13 @@ span.ant-radio + * { display: inline-block; font-size: 12px; font-size: 11px \9; - transform: scale(0.91666667) rotate(0deg); - line-height: 4px; + -webkit-transform: scale(0.91666667) rotate(0deg); + transform: scale(0.91666667) rotate(0deg); + display: block; height: 4px; + line-height: 4px; + -webkit-transition: all 0.3s; transition: all 0.3s; - display: block; } :root .ant-table-thead > tr > th .ant-table-column-sorter-up, :root .ant-table-thead > tr > th .ant-table-column-sorter-down { @@ -17673,6 +18826,8 @@ span.ant-radio + * { .ant-table-thead > tr > th.ant-table-column-has-actions { position: relative; background-clip: padding-box; + /* stylelint-disable-next-line */ + -webkit-background-clip: border-box; } .ant-table-thead > tr > th.ant-table-column-has-actions.ant-table-column-has-filters .anticon-filter.ant-table-filter-open, .ant-table-thead > tr > th.ant-table-column-has-actions.ant-table-column-has-filters .ant-table-filter-icon.ant-table-filter-open { @@ -17709,17 +18864,21 @@ span.ant-radio + * { .ant-table-thead > tr > th.ant-table-column-has-actions.ant-table-column-has-sorters.ant-table-column-has-filters { padding-right: 54px !important; } -.ant-table-thead > tr > th .ant-table-column-sorters:before { +.ant-table-thead > tr > th .ant-table-column-sorters > *:not(.ant-table-column-sorter) { + position: relative; +} +.ant-table-thead > tr > th .ant-table-column-sorters::before { position: absolute; - content: ''; top: 0; - left: 0; right: 0; bottom: 0; + left: 0; background: transparent; + -webkit-transition: all 0.3s; transition: all 0.3s; + content: ''; } -.ant-table-thead > tr > th .ant-table-column-sorters:hover:before { +.ant-table-thead > tr > th .ant-table-column-sorters:hover::before { background: rgba(0, 0, 0, 0.04); } .ant-table-thead > tr > th.ant-table-column-has-filters .ant-table-column-sorter { @@ -17742,10 +18901,12 @@ span.ant-radio + * { } .ant-table-tbody > tr > td { border-bottom: 1px solid #e8e8e8; + -webkit-transition: all 0.3s, border 0s; transition: all 0.3s, border 0s; } .ant-table-thead > tr, .ant-table-tbody > tr { + -webkit-transition: all 0.3s, height 0s; transition: all 0.3s, height 0s; } .ant-table-thead > tr.ant-table-row-hover:not(.ant-table-expanded-row) > td, @@ -17758,39 +18919,39 @@ span.ant-radio + * { background: none; } .ant-table-footer { + position: relative; padding: 16px 16px; background: #fafafa; - border-radius: 0 0 5px 5px; - position: relative; border-top: 1px solid #e8e8e8; -} -.ant-table-footer:before { - content: ''; - height: 1px; - background: #fafafa; + border-radius: 0 0 5px 5px; +} +.ant-table-footer::before { position: absolute; top: -1px; - width: 100%; left: 0; + width: 100%; + height: 1px; + background: #fafafa; + content: ''; } .ant-table.ant-table-bordered .ant-table-footer { border: 1px solid #e8e8e8; } .ant-table-title { - padding: 16px 0; position: relative; top: 1px; + padding: 16px 0; border-radius: 5px 5px 0 0; } .ant-table.ant-table-bordered .ant-table-title { - border: 1px solid #e8e8e8; - padding-left: 16px; padding-right: 16px; + padding-left: 16px; + border: 1px solid #e8e8e8; } .ant-table-title + .ant-table-content { position: relative; - border-radius: 5px 5px 0 0; overflow: hidden; + border-radius: 5px 5px 0 0; } .ant-table-bordered .ant-table-title + .ant-table-content, .ant-table-bordered .ant-table-title + .ant-table-content table, @@ -17801,6 +18962,10 @@ span.ant-radio + * { .ant-table-without-column-header table { border-radius: 0; } +.ant-table-without-column-header.ant-table-bordered.ant-table-empty .ant-table-placeholder { + border-top: 1px solid #e8e8e8; + border-radius: 5px; +} .ant-table-tbody > tr.ant-table-row-selected td { background: #fafafa; } @@ -17820,8 +18985,6 @@ span.ant-radio + * { .ant-table-thead > tr > th.ant-table-selection-column, .ant-table-tbody > tr > td.ant-table-selection-column { text-align: center; - min-width: 62px; - width: 62px; } .ant-table-thead > tr > th.ant-table-selection-column .ant-radio-wrapper, .ant-table-tbody > tr > td.ant-table-selection-column .ant-radio-wrapper { @@ -17829,13 +18992,13 @@ span.ant-radio + * { } .ant-table-expand-icon-th, .ant-table-row-expand-icon-cell { - text-align: center; - min-width: 50px; width: 50px; + min-width: 50px; + text-align: center; } .ant-table-header { - background: #fafafa; overflow: hidden; + background: #fafafa; } .ant-table-header table { border-radius: 5px 5px 0 0; @@ -17848,12 +19011,12 @@ span.ant-radio + * { opacity: 0.5; } .ant-table-loading .ant-table-spin-holder { - height: 20px; - line-height: 20px; - left: 50%; + position: absolute; top: 50%; + left: 50%; + height: 20px; margin-left: -30px; - position: absolute; + line-height: 20px; } .ant-table-loading .ant-table-with-pagination { margin-top: -20px; @@ -17870,23 +19033,20 @@ span.ant-radio + * { border-bottom: 0; } .ant-table-bordered.ant-table-empty .ant-table-placeholder { - border-left: 1px solid #e8e8e8; border-right: 1px solid #e8e8e8; + border-left: 1px solid #e8e8e8; } .ant-table-bordered.ant-table-fixed-header .ant-table-header > table { border-bottom: 0; } .ant-table-bordered.ant-table-fixed-header .ant-table-body > table { - border-top: 0; border-top-left-radius: 0; border-top-right-radius: 0; } +.ant-table-bordered.ant-table-fixed-header .ant-table-header + .ant-table-body > table, .ant-table-bordered.ant-table-fixed-header .ant-table-body-inner > table { border-top: 0; } -.ant-table-bordered.ant-table-fixed-header .ant-table-placeholder { - border: 0; -} .ant-table-bordered .ant-table-thead > tr:not(:last-child) > th { border-bottom: 1px solid #e8e8e8; } @@ -17894,35 +19054,40 @@ span.ant-radio + * { .ant-table-bordered .ant-table-tbody > tr > td { border-right: 1px solid #e8e8e8; } +.ant-table-bordered .ant-table-title + .ant-table-content .ant-table-fixed-left, +.ant-table-bordered .ant-table-title + .ant-table-content .ant-table-fixed-right { + border-radius: 0; +} .ant-table-placeholder { position: relative; + z-index: 1; padding: 16px 16px; + color: rgba(0, 0, 0, 0.45); + font-size: 14px; + text-align: center; background: #fff; border-bottom: 1px solid #e8e8e8; - text-align: center; - font-size: 14px; - color: rgba(0, 0, 0, 0.45); - z-index: 1; + border-radius: 0 0 5px 5px; } .ant-table-placeholder .anticon { margin-right: 4px; } .ant-table-pagination.ant-pagination { - margin: 16px 0; float: right; + margin: 16px 0; } .ant-table-filter-dropdown { + position: relative; min-width: 96px; margin-left: -8px; background: #fff; border-radius: 5px; box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15); - position: relative; } .ant-table-filter-dropdown .ant-dropdown-menu { border: 0; - box-shadow: none; border-radius: 5px 5px 0 0; + box-shadow: none; } .ant-table-filter-dropdown .ant-dropdown-menu-without-submenu { max-height: 400px; @@ -17935,7 +19100,7 @@ span.ant-radio + * { border-radius: 5px; box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15); } -.ant-table-filter-dropdown .ant-dropdown-menu .ant-dropdown-submenu-contain-selected .ant-dropdown-menu-submenu-title:after { +.ant-table-filter-dropdown .ant-dropdown-menu .ant-dropdown-submenu-contain-selected .ant-dropdown-menu-submenu-title::after { color: #E64448; font-weight: bold; text-shadow: 0 0 2px #fff1f0; @@ -17948,8 +19113,8 @@ span.ant-radio + * { border-radius: 0; } .ant-table-filter-dropdown-btns { - overflow: hidden; padding: 7px 8px; + overflow: hidden; border-top: 1px solid #e8e8e8; } .ant-table-filter-dropdown-link { @@ -17967,11 +19132,15 @@ span.ant-radio + * { .ant-table-filter-dropdown-link.clear { float: right; } +.ant-table-selection { + white-space: nowrap; +} .ant-table-selection-select-all-custom { margin-right: 4px !important; } .ant-table-selection .anticon-down { color: #bfbfbf; + -webkit-transition: all 0.3s; transition: all 0.3s; } .ant-table-selection-menu { @@ -17986,38 +19155,38 @@ span.ant-radio + * { color: #bfbfbf; } .ant-table-selection-down { - cursor: pointer; - padding: 0; display: inline-block; + padding: 0; line-height: 1; + cursor: pointer; } .ant-table-selection-down:hover .anticon-down { - color: #666; + color: rgba(0, 0, 0, 0.6); } .ant-table-row-expand-icon { - cursor: pointer; display: inline-block; width: 17px; height: 17px; - text-align: center; line-height: 14px; + text-align: center; + background: #fff; border: 1px solid #e8e8e8; + cursor: pointer; -webkit-user-select: none; -moz-user-select: none; -ms-user-select: none; user-select: none; - background: #fff; } -.ant-table-row-expanded:after { +.ant-table-row-expanded::after { content: '-'; } -.ant-table-row-collapsed:after { +.ant-table-row-collapsed::after { content: '+'; } .ant-table-row-spaced { visibility: hidden; } -.ant-table-row-spaced:after { +.ant-table-row-spaced::after { content: '.'; } .ant-table-row[class*='ant-table-row-level-0'] .ant-table-selection-column > span { @@ -18041,6 +19210,9 @@ tr.ant-table-expanded-row td > .ant-table-wrapper { width: auto; min-width: 100%; } +.ant-table-scroll table .ant-table-fixed-columns-in-body { + visibility: hidden; +} .ant-table-body-inner { height: 100%; } @@ -18052,18 +19224,20 @@ tr.ant-table-expanded-row td > .ant-table-wrapper { overflow: scroll; } .ant-table-fixed-header .ant-table-scroll .ant-table-header { - overflow: scroll; - padding-bottom: 20px; margin-bottom: -20px; + padding-bottom: 20px; + overflow: scroll; opacity: 0.9999; } .ant-table-fixed-left, .ant-table-fixed-right { position: absolute; top: 0; + z-index: 20; overflow: hidden; - transition: box-shadow 0.3s ease; border-radius: 0; + -webkit-transition: box-shadow 0.3s ease; + transition: box-shadow 0.3s ease; } .ant-table-fixed-left table, .ant-table-fixed-right table { @@ -18150,8 +19324,8 @@ tr.ant-table-expanded-row td > .ant-table-wrapper { padding: 8px 8px; } .ant-table-small > .ant-table-title { - border-bottom: 1px solid #e8e8e8; top: 0; + border-bottom: 1px solid #e8e8e8; } .ant-table-small > .ant-table-content > .ant-table-body { margin: 0 8px; @@ -18192,7 +19366,7 @@ tr.ant-table-expanded-row td > .ant-table-wrapper { .ant-table-small > .ant-table-content > .ant-table-fixed-right > .ant-table-header > table > .ant-table-thead > tr > th, .ant-table-small > .ant-table-content > .ant-table-fixed-left > .ant-table-body-outer > .ant-table-body-inner > table > .ant-table-thead > tr > th, .ant-table-small > .ant-table-content > .ant-table-fixed-right > .ant-table-body-outer > .ant-table-body-inner > table > .ant-table-thead > tr > th { - background-color: #fff; + background-color: transparent; border-bottom: 1px solid #e8e8e8; } .ant-table-small > .ant-table-content > .ant-table-header > table > .ant-table-thead > tr > th.ant-table-column-sort, @@ -18225,8 +19399,8 @@ tr.ant-table-expanded-row td > .ant-table-wrapper { } .ant-table-small.ant-table-bordered .ant-table-title { border: 0; - border-bottom: 1px solid #e8e8e8; border-right: 1px solid #e8e8e8; + border-bottom: 1px solid #e8e8e8; } .ant-table-small.ant-table-bordered .ant-table-content { border-right: 1px solid #e8e8e8; @@ -18236,13 +19410,13 @@ tr.ant-table-expanded-row td > .ant-table-wrapper { border-top: 1px solid #e8e8e8; border-right: 1px solid #e8e8e8; } -.ant-table-small.ant-table-bordered .ant-table-footer:before { +.ant-table-small.ant-table-bordered .ant-table-footer::before { display: none; } .ant-table-small.ant-table-bordered .ant-table-placeholder { - border-left: 0; - border-bottom: 0; border-right: 0; + border-bottom: 0; + border-left: 0; } .ant-table-small.ant-table-bordered .ant-table-thead > tr > th:last-child, .ant-table-small.ant-table-bordered .ant-table-tbody > tr > td:last-child { @@ -18253,8 +19427,8 @@ tr.ant-table-expanded-row td > .ant-table-wrapper { border-right: 1px solid #e8e8e8; } .ant-table-small.ant-table-bordered .ant-table-fixed-right { - border-left: 1px solid #e8e8e8; border-right: 1px solid #e8e8e8; + border-left: 1px solid #e8e8e8; } .ant-table-small tr.ant-table-expanded-row td > .ant-table-wrapper { margin: -8px -16px -9px; @@ -18267,20 +19441,21 @@ tr.ant-table-expanded-row td > .ant-table-wrapper { } .ant-tabs.ant-tabs-card .ant-tabs-card-bar .ant-tabs-tab { margin: 0; + margin-right: 2px; + padding: 0 16px; + line-height: 38px; + background: #fafafa; border: 1px solid #e8e8e8; border-bottom: 0; border-radius: 5px 5px 0 0; - background: #fafafa; - margin-right: 2px; - padding: 0 16px; + -webkit-transition: all 0.3s cubic-bezier(0.645, 0.045, 0.355, 1); transition: all 0.3s cubic-bezier(0.645, 0.045, 0.355, 1); - line-height: 38px; } .ant-tabs.ant-tabs-card .ant-tabs-card-bar .ant-tabs-tab-active { + padding-bottom: 1px; + color: #E64448; background: #fff; border-color: #e8e8e8; - color: #E64448; - padding-bottom: 1px; } .ant-tabs.ant-tabs-card .ant-tabs-card-bar .ant-tabs-tab-inactive { padding: 0; @@ -18289,22 +19464,24 @@ tr.ant-table-expanded-row td > .ant-table-wrapper { margin-bottom: 0; } .ant-tabs.ant-tabs-card .ant-tabs-card-bar .ant-tabs-tab .ant-tabs-close-x { - color: rgba(0, 0, 0, 0.45); - transition: all 0.3s; - font-size: 12px; - margin-left: 3px; - margin-right: -5px; - overflow: hidden; - vertical-align: middle; width: 16px; height: 16px; height: 14px; + margin-right: -5px; + margin-left: 3px; + overflow: hidden; + color: rgba(0, 0, 0, 0.45); + font-size: 12px; + vertical-align: middle; + -webkit-transition: all 0.3s; + transition: all 0.3s; } .ant-tabs.ant-tabs-card .ant-tabs-card-bar .ant-tabs-tab .ant-tabs-close-x:hover { color: rgba(0, 0, 0, 0.85); } .ant-tabs.ant-tabs-card .ant-tabs-card-content > .ant-tabs-tabpane, .ant-tabs.ant-tabs-editable-card .ant-tabs-card-content > .ant-tabs-tabpane { + -webkit-transition: none !important; transition: none !important; } .ant-tabs.ant-tabs-card .ant-tabs-card-content > .ant-tabs-tabpane-inactive, @@ -18321,13 +19498,14 @@ tr.ant-table-expanded-row td > .ant-table-wrapper { position: relative; width: 20px; height: 20px; + color: rgba(0, 0, 0, 0.65); + font-size: 12px; line-height: 20px; text-align: center; - cursor: pointer; - border-radius: 2px; border: 1px solid #e8e8e8; - font-size: 12px; - color: rgba(0, 0, 0, 0.65); + border-radius: 2px; + cursor: pointer; + -webkit-transition: all 0.3s; transition: all 0.3s; } .ant-tabs-extra-content .ant-tabs-new-tab:hover { @@ -18348,8 +19526,8 @@ tr.ant-table-expanded-row td > .ant-table-wrapper { } .ant-tabs-vertical.ant-tabs-card .ant-tabs-card-bar.ant-tabs-left-bar .ant-tabs-tab, .ant-tabs-vertical.ant-tabs-card .ant-tabs-card-bar.ant-tabs-right-bar .ant-tabs-tab { - border-bottom: 1px solid #e8e8e8; margin-bottom: 8px; + border-bottom: 1px solid #e8e8e8; } .ant-tabs-vertical.ant-tabs-card .ant-tabs-card-bar.ant-tabs-left-bar .ant-tabs-tab-active, .ant-tabs-vertical.ant-tabs-card .ant-tabs-card-bar.ant-tabs-right-bar .ant-tabs-tab-active { @@ -18367,9 +19545,9 @@ tr.ant-table-expanded-row td > .ant-table-wrapper { margin-right: 0; } .ant-tabs-vertical.ant-tabs-card.ant-tabs-left .ant-tabs-card-bar.ant-tabs-left-bar .ant-tabs-tab { + margin-right: 1px; border-right: 0; border-radius: 5px 0 0 5px; - margin-right: 1px; } .ant-tabs-vertical.ant-tabs-card.ant-tabs-left .ant-tabs-card-bar.ant-tabs-left-bar .ant-tabs-tab-active { margin-right: -1px; @@ -18379,139 +19557,143 @@ tr.ant-table-expanded-row td > .ant-table-wrapper { margin-left: 0; } .ant-tabs-vertical.ant-tabs-card.ant-tabs-right .ant-tabs-card-bar.ant-tabs-right-bar .ant-tabs-tab { + margin-left: 1px; border-left: 0; border-radius: 0 5px 5px 0; - margin-left: 1px; } .ant-tabs-vertical.ant-tabs-card.ant-tabs-right .ant-tabs-card-bar.ant-tabs-right-bar .ant-tabs-tab-active { margin-left: -1px; padding-left: 18px; } .ant-tabs .ant-tabs-card-bar.ant-tabs-bottom-bar .ant-tabs-tab { - border-bottom: 1px solid #e8e8e8; border-top: 0; + border-bottom: 1px solid #e8e8e8; border-radius: 0 0 5px 5px; } .ant-tabs .ant-tabs-card-bar.ant-tabs-bottom-bar .ant-tabs-tab-active { - color: #E64448; - padding-bottom: 0; padding-top: 1px; + padding-bottom: 0; + color: #E64448; } .ant-tabs { - font-family: "Chinese Quote", -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"; - font-size: 14px; - font-variant: tabular-nums; - line-height: 1.5; - color: rgba(0, 0, 0, 0.65); box-sizing: border-box; margin: 0; padding: 0; + color: rgba(0, 0, 0, 0.65); + font-size: 14px; + font-variant: tabular-nums; + line-height: 1.5; list-style: none; + font-feature-settings: 'tnum'; position: relative; overflow: hidden; zoom: 1; } -.ant-tabs:before, -.ant-tabs:after { +.ant-tabs::before, +.ant-tabs::after { content: ''; display: table; } -.ant-tabs:after { +.ant-tabs::after { clear: both; } -.ant-tabs:before, -.ant-tabs:after { +.ant-tabs::before, +.ant-tabs::after { content: ''; display: table; } -.ant-tabs:after { +.ant-tabs::after { clear: both; } .ant-tabs-ink-bar { - z-index: 1; position: absolute; - left: 0; bottom: 1px; + left: 0; + z-index: 1; box-sizing: border-box; height: 2px; background-color: #E64448; - transform-origin: 0 0; + -webkit-transform-origin: 0 0; + transform-origin: 0 0; } .ant-tabs-bar { - border-bottom: 1px solid #e8e8e8; margin: 0 0 16px 0; + border-bottom: 1px solid #e8e8e8; outline: none; + -webkit-transition: padding 0.3s cubic-bezier(0.645, 0.045, 0.355, 1); transition: padding 0.3s cubic-bezier(0.645, 0.045, 0.355, 1); } .ant-tabs-nav-container { + position: relative; + box-sizing: border-box; + margin-bottom: -1px; overflow: hidden; font-size: 14px; line-height: 1.5; - box-sizing: border-box; - position: relative; white-space: nowrap; - margin-bottom: -1px; + -webkit-transition: padding 0.3s cubic-bezier(0.645, 0.045, 0.355, 1); transition: padding 0.3s cubic-bezier(0.645, 0.045, 0.355, 1); zoom: 1; } -.ant-tabs-nav-container:before, -.ant-tabs-nav-container:after { +.ant-tabs-nav-container::before, +.ant-tabs-nav-container::after { content: ''; display: table; } -.ant-tabs-nav-container:after { +.ant-tabs-nav-container::after { clear: both; } -.ant-tabs-nav-container:before, -.ant-tabs-nav-container:after { +.ant-tabs-nav-container::before, +.ant-tabs-nav-container::after { content: ''; display: table; } -.ant-tabs-nav-container:after { +.ant-tabs-nav-container::after { clear: both; } .ant-tabs-nav-container-scrolling { - padding-left: 32px; padding-right: 32px; + padding-left: 32px; } .ant-tabs-bottom .ant-tabs-bottom-bar { - margin-bottom: 0; margin-top: 16px; - border-bottom: none; + margin-bottom: 0; border-top: 1px solid #e8e8e8; + border-bottom: none; } .ant-tabs-bottom .ant-tabs-bottom-bar .ant-tabs-ink-bar { - bottom: auto; top: 1px; + bottom: auto; } .ant-tabs-bottom .ant-tabs-bottom-bar .ant-tabs-nav-container { - margin-bottom: 0; margin-top: -1px; + margin-bottom: 0; } .ant-tabs-tab-prev, .ant-tabs-tab-next { - -webkit-user-select: none; - -moz-user-select: none; - -ms-user-select: none; - user-select: none; + position: absolute; z-index: 2; width: 0; height: 100%; - cursor: pointer; - border: 0; - background-color: transparent; - position: absolute; - text-align: center; color: rgba(0, 0, 0, 0.45); - transition: width 0.3s cubic-bezier(0.645, 0.045, 0.355, 1), opacity 0.3s cubic-bezier(0.645, 0.045, 0.355, 1), color 0.3s cubic-bezier(0.645, 0.045, 0.355, 1); + text-align: center; + background-color: transparent; + border: 0; + cursor: pointer; opacity: 0; + -webkit-transition: width 0.3s cubic-bezier(0.645, 0.045, 0.355, 1), opacity 0.3s cubic-bezier(0.645, 0.045, 0.355, 1), color 0.3s cubic-bezier(0.645, 0.045, 0.355, 1); + transition: width 0.3s cubic-bezier(0.645, 0.045, 0.355, 1), opacity 0.3s cubic-bezier(0.645, 0.045, 0.355, 1), color 0.3s cubic-bezier(0.645, 0.045, 0.355, 1); + -webkit-user-select: none; + -moz-user-select: none; + -ms-user-select: none; + user-select: none; pointer-events: none; } .ant-tabs-tab-prev.ant-tabs-tab-arrow-show, .ant-tabs-tab-next.ant-tabs-tab-arrow-show { - opacity: 1; width: 32px; height: 100%; + opacity: 1; pointer-events: auto; } .ant-tabs-tab-prev:hover, @@ -18520,17 +19702,17 @@ tr.ant-table-expanded-row td > .ant-table-wrapper { } .ant-tabs-tab-prev-icon, .ant-tabs-tab-next-icon { - font-style: normal; - font-weight: bold; - font-variant: normal; - line-height: inherit; - vertical-align: baseline; position: absolute; top: 50%; left: 50%; - transform: translate(-50%, -50%); + font-weight: bold; + font-style: normal; + font-variant: normal; + line-height: inherit; text-align: center; text-transform: none; + -webkit-transform: translate(-50%, -50%); + transform: translate(-50%, -50%); } .ant-tabs-tab-prev-icon-target, .ant-tabs-tab-next-icon-target { @@ -18538,7 +19720,8 @@ tr.ant-table-expanded-row td > .ant-table-wrapper { display: inline-block; font-size: 12px; font-size: 10px \9; - transform: scale(0.83333333) rotate(0deg); + -webkit-transform: scale(0.83333333) rotate(0deg); + transform: scale(0.83333333) rotate(0deg); } :root .ant-tabs-tab-prev-icon-target, :root .ant-tabs-tab-next-icon-target { @@ -18562,40 +19745,44 @@ tr.ant-table-expanded-row td > .ant-table-wrapper { filter: none; } .ant-tabs-nav-wrap { - overflow: hidden; margin-bottom: -1px; + overflow: hidden; } .ant-tabs-nav-scroll { overflow: hidden; white-space: nowrap; } .ant-tabs-nav { - box-sizing: border-box; - padding-left: 0; - transition: transform 0.3s cubic-bezier(0.645, 0.045, 0.355, 1); position: relative; + display: inline-block; + box-sizing: border-box; margin: 0; + padding-left: 0; list-style: none; - display: inline-block; + -webkit-transition: -webkit-transform 0.3s cubic-bezier(0.645, 0.045, 0.355, 1); + transition: -webkit-transform 0.3s cubic-bezier(0.645, 0.045, 0.355, 1); + transition: transform 0.3s cubic-bezier(0.645, 0.045, 0.355, 1); + transition: transform 0.3s cubic-bezier(0.645, 0.045, 0.355, 1), -webkit-transform 0.3s cubic-bezier(0.645, 0.045, 0.355, 1); } -.ant-tabs-nav:before, -.ant-tabs-nav:after { +.ant-tabs-nav::before, +.ant-tabs-nav::after { display: table; content: ' '; } -.ant-tabs-nav:after { +.ant-tabs-nav::after { clear: both; } .ant-tabs-nav .ant-tabs-tab { + position: relative; display: inline-block; + box-sizing: border-box; height: 100%; margin: 0 32px 0 0; padding: 12px 16px; - box-sizing: border-box; - position: relative; - transition: color 0.3s cubic-bezier(0.645, 0.045, 0.355, 1); - cursor: pointer; text-decoration: none; + cursor: pointer; + -webkit-transition: color 0.3s cubic-bezier(0.645, 0.045, 0.355, 1); + transition: color 0.3s cubic-bezier(0.645, 0.045, 0.355, 1); } .ant-tabs-nav .ant-tabs-tab:last-child { margin-right: 0; @@ -18611,8 +19798,8 @@ tr.ant-table-expanded-row td > .ant-table-wrapper { } .ant-tabs-nav .ant-tabs-tab-disabled, .ant-tabs-nav .ant-tabs-tab-disabled:hover { - cursor: not-allowed; color: rgba(0, 0, 0, 0.25); + cursor: not-allowed; } .ant-tabs-nav .ant-tabs-tab-active { color: #E64448; @@ -18638,14 +19825,15 @@ tr.ant-table-expanded-row td > .ant-table-wrapper { .ant-tabs .ant-tabs-bottom-content > .ant-tabs-tabpane { flex-shrink: 0; width: 100%; - transition: opacity 0.45s; opacity: 1; + -webkit-transition: opacity 0.45s; + transition: opacity 0.45s; } .ant-tabs .ant-tabs-top-content > .ant-tabs-tabpane-inactive, .ant-tabs .ant-tabs-bottom-content > .ant-tabs-tabpane-inactive { - opacity: 0; height: 0; padding: 0 !important; + opacity: 0; pointer-events: none; } .ant-tabs .ant-tabs-top-content > .ant-tabs-tabpane-inactive input, @@ -18654,15 +19842,19 @@ tr.ant-table-expanded-row td > .ant-table-wrapper { } .ant-tabs .ant-tabs-top-content.ant-tabs-content-animated, .ant-tabs .ant-tabs-bottom-content.ant-tabs-content-animated { + display: -webkit-box; display: flex; - flex-direction: row; - will-change: margin-left; + -webkit-box-orient: horizontal; + -webkit-box-direction: normal; + flex-direction: row; + -webkit-transition: margin-left 0.3s cubic-bezier(0.645, 0.045, 0.355, 1); transition: margin-left 0.3s cubic-bezier(0.645, 0.045, 0.355, 1); + will-change: margin-left; } .ant-tabs .ant-tabs-left-bar, .ant-tabs .ant-tabs-right-bar { - border-bottom: 0; height: 100%; + border-bottom: 0; } .ant-tabs .ant-tabs-left-bar-tab-prev, .ant-tabs .ant-tabs-right-bar-tab-prev, @@ -18670,6 +19862,7 @@ tr.ant-table-expanded-row td > .ant-table-wrapper { .ant-tabs .ant-tabs-right-bar-tab-next { width: 32px; height: 0; + -webkit-transition: height 0.3s cubic-bezier(0.645, 0.045, 0.355, 1), opacity 0.3s cubic-bezier(0.645, 0.045, 0.355, 1), color 0.3s cubic-bezier(0.645, 0.045, 0.355, 1); transition: height 0.3s cubic-bezier(0.645, 0.045, 0.355, 1), opacity 0.3s cubic-bezier(0.645, 0.045, 0.355, 1), color 0.3s cubic-bezier(0.645, 0.045, 0.355, 1); } .ant-tabs .ant-tabs-left-bar-tab-prev.ant-tabs-tab-arrow-show, @@ -18681,10 +19874,10 @@ tr.ant-table-expanded-row td > .ant-table-wrapper { } .ant-tabs .ant-tabs-left-bar .ant-tabs-tab, .ant-tabs .ant-tabs-right-bar .ant-tabs-tab { + display: block; float: none; margin: 0 0 16px 0; padding: 8px 24px; - display: block; } .ant-tabs .ant-tabs-left-bar .ant-tabs-tab:last-child, .ant-tabs .ant-tabs-right-bar .ant-tabs-tab:last-child { @@ -18722,16 +19915,16 @@ tr.ant-table-expanded-row td > .ant-table-wrapper { } .ant-tabs .ant-tabs-left-bar .ant-tabs-ink-bar, .ant-tabs .ant-tabs-right-bar .ant-tabs-ink-bar { - width: 2px; top: 0; + bottom: auto; left: auto; + width: 2px; height: auto; - bottom: auto; } .ant-tabs .ant-tabs-left-bar .ant-tabs-tab-next, .ant-tabs .ant-tabs-right-bar .ant-tabs-tab-next { - width: 100%; bottom: 0; + width: 100%; height: 32px; } .ant-tabs .ant-tabs-left-bar .ant-tabs-tab-prev, @@ -18742,15 +19935,15 @@ tr.ant-table-expanded-row td > .ant-table-wrapper { } .ant-tabs .ant-tabs-left-content, .ant-tabs .ant-tabs-right-content { - overflow: hidden; width: auto; margin-top: 0 !important; + overflow: hidden; } .ant-tabs .ant-tabs-left-bar { float: left; - border-right: 1px solid #e8e8e8; margin-right: -1px; margin-bottom: 0; + border-right: 1px solid #e8e8e8; } .ant-tabs .ant-tabs-left-bar .ant-tabs-tab { text-align: right; @@ -18770,9 +19963,9 @@ tr.ant-table-expanded-row td > .ant-table-wrapper { } .ant-tabs .ant-tabs-right-bar { float: right; - border-left: 1px solid #e8e8e8; - margin-left: -1px; margin-bottom: 0; + margin-left: -1px; + border-left: 1px solid #e8e8e8; } .ant-tabs .ant-tabs-right-bar .ant-tabs-nav-container { margin-left: -1px; @@ -18789,16 +19982,23 @@ tr.ant-table-expanded-row td > .ant-table-wrapper { } .ant-tabs-top .ant-tabs-ink-bar-animated, .ant-tabs-bottom .ant-tabs-ink-bar-animated { + -webkit-transition: width 0.3s cubic-bezier(0.645, 0.045, 0.355, 1), left 0.3s cubic-bezier(0.645, 0.045, 0.355, 1), -webkit-transform 0.3s cubic-bezier(0.645, 0.045, 0.355, 1); + transition: width 0.3s cubic-bezier(0.645, 0.045, 0.355, 1), left 0.3s cubic-bezier(0.645, 0.045, 0.355, 1), -webkit-transform 0.3s cubic-bezier(0.645, 0.045, 0.355, 1); transition: transform 0.3s cubic-bezier(0.645, 0.045, 0.355, 1), width 0.3s cubic-bezier(0.645, 0.045, 0.355, 1), left 0.3s cubic-bezier(0.645, 0.045, 0.355, 1); + transition: transform 0.3s cubic-bezier(0.645, 0.045, 0.355, 1), width 0.3s cubic-bezier(0.645, 0.045, 0.355, 1), left 0.3s cubic-bezier(0.645, 0.045, 0.355, 1), -webkit-transform 0.3s cubic-bezier(0.645, 0.045, 0.355, 1); } .ant-tabs-left .ant-tabs-ink-bar-animated, .ant-tabs-right .ant-tabs-ink-bar-animated { + -webkit-transition: height 0.3s cubic-bezier(0.645, 0.045, 0.355, 1), top 0.3s cubic-bezier(0.645, 0.045, 0.355, 1), -webkit-transform 0.3s cubic-bezier(0.645, 0.045, 0.355, 1); + transition: height 0.3s cubic-bezier(0.645, 0.045, 0.355, 1), top 0.3s cubic-bezier(0.645, 0.045, 0.355, 1), -webkit-transform 0.3s cubic-bezier(0.645, 0.045, 0.355, 1); transition: transform 0.3s cubic-bezier(0.645, 0.045, 0.355, 1), height 0.3s cubic-bezier(0.645, 0.045, 0.355, 1), top 0.3s cubic-bezier(0.645, 0.045, 0.355, 1); + transition: transform 0.3s cubic-bezier(0.645, 0.045, 0.355, 1), height 0.3s cubic-bezier(0.645, 0.045, 0.355, 1), top 0.3s cubic-bezier(0.645, 0.045, 0.355, 1), -webkit-transform 0.3s cubic-bezier(0.645, 0.045, 0.355, 1); } .no-flex > .ant-tabs-content > .ant-tabs-content-animated, .ant-tabs-no-animation > .ant-tabs-content > .ant-tabs-content-animated { - transform: none !important; margin-left: 0 !important; + -webkit-transform: none !important; + transform: none !important; } .no-flex > .ant-tabs-content > .ant-tabs-tabpane-inactive, .ant-tabs-no-animation > .ant-tabs-content > .ant-tabs-tabpane-inactive { @@ -18806,36 +20006,38 @@ tr.ant-table-expanded-row td > .ant-table-wrapper { } .ant-tabs-left-content > .ant-tabs-content-animated, .ant-tabs-right-content > .ant-tabs-content-animated { - transform: none !important; margin-left: 0 !important; + -webkit-transform: none !important; + transform: none !important; } .ant-tabs-left-content > .ant-tabs-tabpane-inactive, .ant-tabs-right-content > .ant-tabs-tabpane-inactive { display: none; } .ant-tag { - font-family: "Chinese Quote", -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"; - font-size: 14px; - font-variant: tabular-nums; - line-height: 1.5; - color: rgba(0, 0, 0, 0.65); box-sizing: border-box; margin: 0; padding: 0; + color: rgba(0, 0, 0, 0.65); + font-size: 14px; + font-variant: tabular-nums; + line-height: 1.5; list-style: none; + font-feature-settings: 'tnum'; display: inline-block; - line-height: 20px; height: 22px; + margin-right: 8px; padding: 0 7px; - border-radius: 5px; - border: 1px solid #d9d9d9; - background: #fafafa; font-size: 12px; - transition: all 0.3s cubic-bezier(0.215, 0.61, 0.355, 1); - opacity: 1; - margin-right: 8px; - cursor: pointer; + line-height: 20px; white-space: nowrap; + background: #fafafa; + border: 1px solid #d9d9d9; + border-radius: 5px; + cursor: pointer; + opacity: 1; + -webkit-transition: all 0.3s cubic-bezier(0.215, 0.61, 0.355, 1); + transition: all 0.3s cubic-bezier(0.215, 0.61, 0.355, 1); } .ant-tag:hover { opacity: 0.85; @@ -18854,12 +20056,14 @@ tr.ant-table-expanded-row td > .ant-table-wrapper { display: inline-block; font-size: 12px; font-size: 10px \9; - transform: scale(0.83333333) rotate(0deg); - cursor: pointer; + -webkit-transform: scale(0.83333333) rotate(0deg); + transform: scale(0.83333333) rotate(0deg); margin-left: 3px; - transition: all 0.3s; color: rgba(0, 0, 0, 0.45); font-weight: bold; + cursor: pointer; + -webkit-transition: all 0.3s; + transition: all 0.3s; } :root .ant-tag .anticon-close { font-size: 12px; @@ -18896,8 +20100,8 @@ tr.ant-table-expanded-row td > .ant-table-wrapper { } .ant-tag-close { width: 0 !important; - padding: 0; margin: 0; + padding: 0; } .ant-tag-zoom-enter, .ant-tag-zoom-appear { @@ -18921,9 +20125,9 @@ tr.ant-table-expanded-row td > .ant-table-wrapper { border-color: #ffadd2; } .ant-tag-pink-inverse { + color: #fff; background: #eb2f96; border-color: #eb2f96; - color: #fff; } .ant-tag-magenta { color: #eb2f96; @@ -18931,9 +20135,9 @@ tr.ant-table-expanded-row td > .ant-table-wrapper { border-color: #ffadd2; } .ant-tag-magenta-inverse { + color: #fff; background: #eb2f96; border-color: #eb2f96; - color: #fff; } .ant-tag-red { color: #f5222d; @@ -18941,9 +20145,9 @@ tr.ant-table-expanded-row td > .ant-table-wrapper { border-color: #ffa39e; } .ant-tag-red-inverse { + color: #fff; background: #f5222d; border-color: #f5222d; - color: #fff; } .ant-tag-volcano { color: #fa541c; @@ -18951,9 +20155,9 @@ tr.ant-table-expanded-row td > .ant-table-wrapper { border-color: #ffbb96; } .ant-tag-volcano-inverse { + color: #fff; background: #fa541c; border-color: #fa541c; - color: #fff; } .ant-tag-orange { color: #fa8c16; @@ -18961,9 +20165,9 @@ tr.ant-table-expanded-row td > .ant-table-wrapper { border-color: #ffd591; } .ant-tag-orange-inverse { + color: #fff; background: #fa8c16; border-color: #fa8c16; - color: #fff; } .ant-tag-yellow { color: #fadb14; @@ -18971,9 +20175,9 @@ tr.ant-table-expanded-row td > .ant-table-wrapper { border-color: #fffb8f; } .ant-tag-yellow-inverse { + color: #fff; background: #fadb14; border-color: #fadb14; - color: #fff; } .ant-tag-gold { color: #faad14; @@ -18981,9 +20185,9 @@ tr.ant-table-expanded-row td > .ant-table-wrapper { border-color: #ffe58f; } .ant-tag-gold-inverse { + color: #fff; background: #faad14; border-color: #faad14; - color: #fff; } .ant-tag-cyan { color: #13c2c2; @@ -18991,9 +20195,9 @@ tr.ant-table-expanded-row td > .ant-table-wrapper { border-color: #87e8de; } .ant-tag-cyan-inverse { + color: #fff; background: #13c2c2; border-color: #13c2c2; - color: #fff; } .ant-tag-lime { color: #a0d911; @@ -19001,9 +20205,9 @@ tr.ant-table-expanded-row td > .ant-table-wrapper { border-color: #eaff8f; } .ant-tag-lime-inverse { + color: #fff; background: #a0d911; border-color: #a0d911; - color: #fff; } .ant-tag-green { color: #52c41a; @@ -19011,9 +20215,9 @@ tr.ant-table-expanded-row td > .ant-table-wrapper { border-color: #b7eb8f; } .ant-tag-green-inverse { + color: #fff; background: #52c41a; border-color: #52c41a; - color: #fff; } .ant-tag-blue { color: #1890ff; @@ -19021,9 +20225,9 @@ tr.ant-table-expanded-row td > .ant-table-wrapper { border-color: #91d5ff; } .ant-tag-blue-inverse { + color: #fff; background: #1890ff; border-color: #1890ff; - color: #fff; } .ant-tag-geekblue { color: #2f54eb; @@ -19031,9 +20235,9 @@ tr.ant-table-expanded-row td > .ant-table-wrapper { border-color: #adc6ff; } .ant-tag-geekblue-inverse { + color: #fff; background: #2f54eb; border-color: #2f54eb; - color: #fff; } .ant-tag-purple { color: #722ed1; @@ -19041,44 +20245,45 @@ tr.ant-table-expanded-row td > .ant-table-wrapper { border-color: #d3adf7; } .ant-tag-purple-inverse { + color: #fff; background: #722ed1; border-color: #722ed1; - color: #fff; } .ant-time-picker-panel { - font-size: 14px; - font-variant: tabular-nums; - line-height: 1.5; - color: rgba(0, 0, 0, 0.65); box-sizing: border-box; margin: 0; padding: 0; + color: rgba(0, 0, 0, 0.65); + font-size: 14px; + font-variant: tabular-nums; + line-height: 1.5; list-style: none; - font-family: "Chinese Quote", -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"; - z-index: 1050; + font-feature-settings: 'tnum'; position: absolute; + z-index: 1050; + font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', 'Helvetica Neue', Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol'; } .ant-time-picker-panel-inner { position: relative; - outline: none; - list-style: none; + left: -2px; font-size: 14px; text-align: left; + list-style: none; background-color: #fff; + background-clip: padding-box; border-radius: 5px; + outline: none; box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15); - background-clip: padding-box; - left: -2px; } .ant-time-picker-panel-input { width: 100%; + max-width: 154px; margin: 0; padding: 0; + line-height: normal; border: 0; - max-width: 154px; - cursor: auto; outline: 0; - line-height: normal; + cursor: auto; } .ant-time-picker-panel-input::-moz-placeholder { color: #bfbfbf; @@ -19091,60 +20296,33 @@ tr.ant-table-expanded-row td > .ant-table-wrapper { color: #bfbfbf; } .ant-time-picker-panel-input-wrap { - box-sizing: border-box; position: relative; + box-sizing: border-box; padding: 7px 2px 7px 12px; border-bottom: 1px solid #e8e8e8; } .ant-time-picker-panel-input-invalid { border-color: #f5222d; } -.ant-time-picker-panel-clear-btn { - position: absolute; - right: 8px; - cursor: pointer; - overflow: hidden; - width: 20px; - height: 20px; - text-align: center; - line-height: 20px; - top: 7px; - margin: 0; -} -.ant-time-picker-panel-clear-btn-icon svg { - position: absolute; - top: 0; - right: 0; - bottom: 0; - left: 0; - margin: auto; - font-size: 14px; - color: rgba(0, 0, 0, 0.25); - display: inline-block; - transition: color 0.3s ease; -} -.ant-time-picker-panel-clear-btn-icon svg:hover { - color: rgba(0, 0, 0, 0.45); -} .ant-time-picker-panel-narrow .ant-time-picker-panel-input-wrap { max-width: 112px; } .ant-time-picker-panel-select { + position: relative; float: left; - font-size: 14px; - border-left: 1px solid #e8e8e8; box-sizing: border-box; width: 56px; - overflow: hidden; - position: relative; max-height: 192px; + overflow: hidden; + font-size: 14px; + border-left: 1px solid #e8e8e8; } .ant-time-picker-panel-select:hover { overflow-y: auto; } .ant-time-picker-panel-select:first-child { - border-left: 0; margin-left: 0; + border-left: 0; } .ant-time-picker-panel-select:last-child { border-right: 0; @@ -19153,34 +20331,35 @@ tr.ant-table-expanded-row td > .ant-table-wrapper { width: 100%; } .ant-time-picker-panel-select ul { - list-style: none; box-sizing: border-box; + width: 100%; margin: 0; padding: 0 0 160px; - width: 100%; + list-style: none; } .ant-time-picker-panel-select li { - list-style: none; box-sizing: content-box; - margin: 0; - padding: 0 0 0 12px; width: 100%; height: 32px; + margin: 0; + padding: 0 0 0 12px; line-height: 32px; text-align: left; + list-style: none; cursor: pointer; + -webkit-transition: background 0.3s; + transition: background 0.3s; -webkit-user-select: none; -moz-user-select: none; -ms-user-select: none; user-select: none; - transition: background 0.3s; } .ant-time-picker-panel-select li:hover { background: #fff2f0; } li.ant-time-picker-panel-select-option-selected { - background: #f5f5f5; font-weight: bold; + background: #f5f5f5; } li.ant-time-picker-panel-select-option-selected:hover { background: #f5f5f5; @@ -19195,20 +20374,20 @@ li.ant-time-picker-panel-select-option-disabled:hover { .ant-time-picker-panel-combobox { zoom: 1; } -.ant-time-picker-panel-combobox:before, -.ant-time-picker-panel-combobox:after { +.ant-time-picker-panel-combobox::before, +.ant-time-picker-panel-combobox::after { content: ''; display: table; } -.ant-time-picker-panel-combobox:after { +.ant-time-picker-panel-combobox::after { clear: both; } -.ant-time-picker-panel-combobox:before, -.ant-time-picker-panel-combobox:after { +.ant-time-picker-panel-combobox::before, +.ant-time-picker-panel-combobox::after { content: ''; display: table; } -.ant-time-picker-panel-combobox:after { +.ant-time-picker-panel-combobox::after { clear: both; } .ant-time-picker-panel-addon { @@ -19240,34 +20419,36 @@ li.ant-time-picker-panel-select-option-disabled:hover { animation-name: antSlideUpOut; } .ant-time-picker { - font-family: "Chinese Quote", -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"; - font-size: 14px; - font-variant: tabular-nums; - line-height: 1.5; - color: rgba(0, 0, 0, 0.65); box-sizing: border-box; margin: 0; padding: 0; + color: rgba(0, 0, 0, 0.65); + font-size: 14px; + font-variant: tabular-nums; + line-height: 1.5; list-style: none; + font-feature-settings: 'tnum'; position: relative; display: inline-block; + width: 128px; outline: none; + -webkit-transition: opacity 0.3s; transition: opacity 0.3s; - width: 128px; } .ant-time-picker-input { position: relative; display: inline-block; - padding: 4px 11px; width: 100%; height: 32px; + padding: 4px 11px; + color: rgba(0, 0, 0, 0.65); font-size: 14px; line-height: 1.5; - color: rgba(0, 0, 0, 0.65); background-color: #fff; background-image: none; border: 1px solid #d9d9d9; border-radius: 5px; + -webkit-transition: all 0.3s; transition: all 0.3s; } .ant-time-picker-input::-moz-placeholder { @@ -19286,15 +20467,15 @@ li.ant-time-picker-panel-select-option-disabled:hover { } .ant-time-picker-input:focus { border-color: #f2726f; + border-right-width: 1px !important; outline: 0; box-shadow: 0 0 0 2px rgba(230, 68, 72, 0.2); - border-right-width: 1px !important; } .ant-time-picker-input-disabled { + color: rgba(0, 0, 0, 0.25); background-color: #f5f5f5; - opacity: 1; cursor: not-allowed; - color: rgba(0, 0, 0, 0.25); + opacity: 1; } .ant-time-picker-input-disabled:hover { border-color: #e6d8d8; @@ -19303,24 +20484,25 @@ li.ant-time-picker-panel-select-option-disabled:hover { textarea.ant-time-picker-input { max-width: 100%; height: auto; + min-height: 32px; vertical-align: bottom; + -webkit-transition: all 0.3s, height 0s; transition: all 0.3s, height 0s; - min-height: 32px; } .ant-time-picker-input-lg { - padding: 6px 11px; height: 40px; + padding: 6px 11px; font-size: 16px; } .ant-time-picker-input-sm { - padding: 1px 7px; height: 24px; + padding: 1px 7px; } .ant-time-picker-input[disabled] { + color: rgba(0, 0, 0, 0.25); background-color: #f5f5f5; - opacity: 1; cursor: not-allowed; - color: rgba(0, 0, 0, 0.25); + opacity: 1; } .ant-time-picker-input[disabled]:hover { border-color: #e6d8d8; @@ -19329,60 +20511,78 @@ textarea.ant-time-picker-input { .ant-time-picker-open { opacity: 0; } -.ant-time-picker-icon { +.ant-time-picker-icon, +.ant-time-picker-clear { position: absolute; + top: 50%; + right: 11px; + z-index: 1; + width: 14px; + height: 14px; + margin-top: -7px; + color: rgba(0, 0, 0, 0.25); + line-height: 14px; + -webkit-transition: all 0.3s cubic-bezier(0.645, 0.045, 0.355, 1); + transition: all 0.3s cubic-bezier(0.645, 0.045, 0.355, 1); -webkit-user-select: none; -moz-user-select: none; -ms-user-select: none; user-select: none; - transition: all 0.3s cubic-bezier(0.645, 0.045, 0.355, 1); - width: 14px; - height: 14px; - line-height: 14px; - right: 11px; - color: rgba(0, 0, 0, 0.25); - top: 50%; - margin-top: -7px; } -.ant-time-picker-icon .ant-time-picker-clock-icon { - color: rgba(0, 0, 0, 0.25); +.ant-time-picker-icon .ant-time-picker-clock-icon, +.ant-time-picker-clear .ant-time-picker-clock-icon { display: block; + color: rgba(0, 0, 0, 0.25); line-height: 1; } +.ant-time-picker-clear { + z-index: 2; + background: #fff; + opacity: 0; + pointer-events: none; +} +.ant-time-picker-clear:hover { + color: rgba(0, 0, 0, 0.45); +} +.ant-time-picker:hover .ant-time-picker-clear { + opacity: 1; + pointer-events: auto; +} .ant-time-picker-large .ant-time-picker-input { - padding: 6px 11px; height: 40px; + padding: 6px 11px; font-size: 16px; } .ant-time-picker-small .ant-time-picker-input { - padding: 1px 7px; height: 24px; + padding: 1px 7px; } -.ant-time-picker-small .ant-time-picker-icon { +.ant-time-picker-small .ant-time-picker-icon, +.ant-time-picker-small .ant-time-picker-clear { right: 7px; } .ant-timeline { - font-family: "Chinese Quote", -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"; + box-sizing: border-box; + color: rgba(0, 0, 0, 0.65); font-size: 14px; font-variant: tabular-nums; line-height: 1.5; - color: rgba(0, 0, 0, 0.65); - box-sizing: border-box; - list-style: none; + font-feature-settings: 'tnum'; margin: 0; padding: 0; + list-style: none; } .ant-timeline-item { position: relative; - padding: 0 0 20px; - list-style: none; margin: 0; + padding: 0 0 20px; font-size: 14px; + list-style: none; } .ant-timeline-item-tail { position: absolute; - left: 4px; top: 0.75em; + left: 4px; height: 100%; border-left: 2px solid #e8e8e8; } @@ -19397,44 +20597,45 @@ textarea.ant-time-picker-input { width: 10px; height: 10px; background-color: #fff; - border-radius: 100px; border: 2px solid transparent; + border-radius: 100px; } .ant-timeline-item-head-blue { - border-color: #E64448; color: #E64448; + border-color: #E64448; } .ant-timeline-item-head-red { - border-color: #f5222d; color: #f5222d; + border-color: #f5222d; } .ant-timeline-item-head-green { - border-color: #52c41a; color: #52c41a; + border-color: #52c41a; } .ant-timeline-item-head-custom { position: absolute; - text-align: center; - line-height: 1; - margin-top: 0; - border: 0; - height: auto; - border-radius: 0; - padding: 3px 1px; - transform: translate(-50%, -50%); top: 5.5px; left: 5px; width: auto; + height: auto; + margin-top: 0; + padding: 3px 1px; + line-height: 1; + text-align: center; + border: 0; + border-radius: 0; + -webkit-transform: translate(-50%, -50%); + transform: translate(-50%, -50%); } .ant-timeline-item-content { - margin: 0 0 0 18px; position: relative; top: -6px; + margin: 0 0 0 18px; } -.ant-timeline-item-last .ant-timeline-item-tail { +.ant-timeline-item-last > .ant-timeline-item-tail { display: none; } -.ant-timeline-item-last .ant-timeline-item-content { +.ant-timeline-item-last > .ant-timeline-item-content { min-height: 48px; } .ant-timeline.ant-timeline-alternate .ant-timeline-item-tail, @@ -19455,17 +20656,17 @@ textarea.ant-time-picker-input { } .ant-timeline.ant-timeline-alternate .ant-timeline-item-left .ant-timeline-item-content, .ant-timeline.ant-timeline-right .ant-timeline-item-left .ant-timeline-item-content { - text-align: left; left: 50%; width: 50%; + text-align: left; } .ant-timeline.ant-timeline-alternate .ant-timeline-item-right .ant-timeline-item-content, .ant-timeline.ant-timeline-right .ant-timeline-item-right .ant-timeline-item-content { - text-align: right; right: 50%; - margin-right: 18px; - width: 50%; left: -30px; + width: 50%; + margin-right: 18px; + text-align: right; } .ant-timeline.ant-timeline-right .ant-timeline-item-right .ant-timeline-item-tail, .ant-timeline.ant-timeline-right .ant-timeline-item-right .ant-timeline-item-head, @@ -19474,38 +20675,38 @@ textarea.ant-time-picker-input { } .ant-timeline.ant-timeline-right .ant-timeline-item-right .ant-timeline-item-content { right: 0; - width: 100%; left: -30px; + width: 100%; } .ant-timeline.ant-timeline-pending .ant-timeline-item-last .ant-timeline-item-tail { - border-left: 2px dotted #e8e8e8; display: block; + border-left: 2px dotted #e8e8e8; } .ant-timeline.ant-timeline-reverse .ant-timeline-item-last .ant-timeline-item-tail { display: none; } .ant-timeline.ant-timeline-reverse .ant-timeline-item-pending .ant-timeline-item-tail { - border-left: 2px dotted #e8e8e8; display: block; + border-left: 2px dotted #e8e8e8; } .ant-timeline.ant-timeline-reverse .ant-timeline-item-pending .ant-timeline-item-content { min-height: 48px; } .ant-tooltip { - font-family: "Chinese Quote", -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"; - font-size: 14px; - font-variant: tabular-nums; - line-height: 1.5; - color: rgba(0, 0, 0, 0.65); box-sizing: border-box; margin: 0; padding: 0; + color: rgba(0, 0, 0, 0.65); + font-size: 14px; + font-variant: tabular-nums; + line-height: 1.5; list-style: none; + font-feature-settings: 'tnum'; position: absolute; z-index: 1060; display: block; - visibility: visible; max-width: 250px; + visibility: visible; } .ant-tooltip-hidden { display: none; @@ -19531,22 +20732,23 @@ textarea.ant-time-picker-input { padding-right: 8px; } .ant-tooltip-inner { + min-width: 30px; + min-height: 32px; padding: 6px 8px; color: #fff; text-align: left; text-decoration: none; + word-wrap: break-word; background-color: rgba(0, 0, 0, 0.75); border-radius: 5px; box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15); - min-height: 32px; - word-wrap: break-word; } .ant-tooltip-arrow { position: absolute; width: 0; height: 0; - border-color: transparent; border-style: solid; + border-color: transparent; } .ant-tooltip-placement-top .ant-tooltip-arrow, .ant-tooltip-placement-topLeft .ant-tooltip-arrow, @@ -19617,29 +20819,29 @@ textarea.ant-time-picker-input { right: 16px; } .ant-transfer { - font-family: "Chinese Quote", -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"; - font-size: 14px; - font-variant: tabular-nums; - line-height: 1.5; - color: rgba(0, 0, 0, 0.65); box-sizing: border-box; margin: 0; padding: 0; + color: rgba(0, 0, 0, 0.65); + font-size: 14px; + font-variant: tabular-nums; + line-height: 1.5; list-style: none; + font-feature-settings: 'tnum'; position: relative; } .ant-transfer-disabled .ant-transfer-list { background: #f5f5f5; } .ant-transfer-list { - border: 1px solid #d9d9d9; - display: inline-block; - border-radius: 5px; - vertical-align: middle; position: relative; + display: inline-block; width: 180px; height: 200px; padding-top: 34px; + vertical-align: middle; + border: 1px solid #d9d9d9; + border-radius: 5px; } .ant-transfer-list-with-footer { padding-bottom: 34px; @@ -19648,18 +20850,19 @@ textarea.ant-time-picker-input { padding: 0 8px; } .ant-transfer-list-search-action { - color: rgba(0, 0, 0, 0.25); position: absolute; top: 4px; right: 4px; bottom: 4px; width: 28px; + color: rgba(0, 0, 0, 0.25); line-height: 32px; text-align: center; } .ant-transfer-list-search-action .anticon { - transition: all 0.3s; color: rgba(0, 0, 0, 0.25); + -webkit-transition: all 0.3s; + transition: all 0.3s; } .ant-transfer-list-search-action .anticon:hover { color: rgba(0, 0, 0, 0.45); @@ -19668,87 +20871,92 @@ span.ant-transfer-list-search-action { pointer-events: none; } .ant-transfer-list-header { - padding: 6px 12px; - border-radius: 5px 5px 0 0; - background: #fff; - color: rgba(0, 0, 0, 0.65); - border-bottom: 1px solid #e8e8e8; - overflow: hidden; position: absolute; top: 0; left: 0; width: 100%; + padding: 6px 12px; + overflow: hidden; + color: rgba(0, 0, 0, 0.65); + background: #fff; + border-bottom: 1px solid #e8e8e8; + border-radius: 5px 5px 0 0; } .ant-transfer-list-header-title { position: absolute; right: 12px; } .ant-transfer-list-body { - font-size: 14px; position: relative; height: 100%; + font-size: 14px; } .ant-transfer-list-body-search-wrapper { position: absolute; top: 0; left: 0; - padding: 4px; width: 100%; + padding: 4px; } .ant-transfer-list-body-with-search { padding-top: 40px; } .ant-transfer-list-content { height: 100%; + margin: 0; + padding: 0; overflow: auto; list-style: none; - padding: 0; - margin: 0; } .ant-transfer-list-content > .LazyLoad { -webkit-animation: transferHighlightIn 1s; animation: transferHighlightIn 1s; } .ant-transfer-list-content-item { + min-height: 32px; + padding: 6px 12px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; - padding: 6px 12px; - min-height: 32px; + -webkit-transition: all 0.3s; transition: all 0.3s; } .ant-transfer-list-content-item > span { padding-right: 0; } .ant-transfer-list-content-item:not(.ant-transfer-list-content-item-disabled):hover { - cursor: pointer; background-color: #fff2f0; + cursor: pointer; } .ant-transfer-list-content-item-disabled { - cursor: not-allowed; color: rgba(0, 0, 0, 0.25); + cursor: not-allowed; } .ant-transfer-list-body-not-found { - padding-top: 0; - color: rgba(0, 0, 0, 0.25); - text-align: center; position: absolute; top: 50%; width: 100%; - margin-top: -10px; + padding-top: 0; + color: rgba(0, 0, 0, 0.25); + text-align: center; + -webkit-transform: translateY(-50%); + transform: translateY(-50%); +} +.ant-transfer-list-body-with-search .ant-transfer-list-body-not-found { + margin-top: 16px; } .ant-transfer-list-footer { - border-top: 1px solid #e8e8e8; - border-radius: 0 0 5px 5px; position: absolute; bottom: 0; left: 0; width: 100%; + border-top: 1px solid #e8e8e8; + border-radius: 0 0 5px 5px; } .ant-transfer-operation { display: inline-block; - overflow: hidden; margin: 0 8px; + overflow: hidden; vertical-align: middle; } .ant-transfer-operation .ant-btn { @@ -19795,18 +21003,18 @@ span.ant-transfer-list-search-action { } .ant-tree.ant-tree-directory > li span.ant-tree-node-content-wrapper, .ant-tree.ant-tree-directory .ant-tree-child-tree > li span.ant-tree-node-content-wrapper { + border-radius: 0; -webkit-user-select: none; -moz-user-select: none; -ms-user-select: none; user-select: none; - border-radius: 0; } .ant-tree.ant-tree-directory > li span.ant-tree-node-content-wrapper:hover, .ant-tree.ant-tree-directory .ant-tree-child-tree > li span.ant-tree-node-content-wrapper:hover { background: transparent; } -.ant-tree.ant-tree-directory > li span.ant-tree-node-content-wrapper:hover:before, -.ant-tree.ant-tree-directory .ant-tree-child-tree > li span.ant-tree-node-content-wrapper:hover:before { +.ant-tree.ant-tree-directory > li span.ant-tree-node-content-wrapper:hover::before, +.ant-tree.ant-tree-directory .ant-tree-child-tree > li span.ant-tree-node-content-wrapper:hover::before { background: #fff2f0; } .ant-tree.ant-tree-directory > li span.ant-tree-node-content-wrapper.ant-tree-node-selected, @@ -19814,14 +21022,15 @@ span.ant-transfer-list-search-action { color: #fff; background: transparent; } -.ant-tree.ant-tree-directory > li span.ant-tree-node-content-wrapper:before, -.ant-tree.ant-tree-directory .ant-tree-child-tree > li span.ant-tree-node-content-wrapper:before { - content: ''; +.ant-tree.ant-tree-directory > li span.ant-tree-node-content-wrapper::before, +.ant-tree.ant-tree-directory .ant-tree-child-tree > li span.ant-tree-node-content-wrapper::before { position: absolute; - left: 0; right: 0; + left: 0; height: 24px; + -webkit-transition: all 0.3s; transition: all 0.3s; + content: ''; } .ant-tree.ant-tree-directory > li span.ant-tree-node-content-wrapper > span, .ant-tree.ant-tree-directory .ant-tree-child-tree > li span.ant-tree-node-content-wrapper > span { @@ -19836,63 +21045,63 @@ span.ant-transfer-list-search-action { .ant-tree.ant-tree-directory .ant-tree-child-tree > li.ant-tree-treenode-selected > span.ant-tree-checkbox .ant-tree-checkbox-inner { border-color: #E64448; } -.ant-tree.ant-tree-directory > li.ant-tree-treenode-selected > span.ant-tree-checkbox.ant-tree-checkbox-checked:after, -.ant-tree.ant-tree-directory .ant-tree-child-tree > li.ant-tree-treenode-selected > span.ant-tree-checkbox.ant-tree-checkbox-checked:after { +.ant-tree.ant-tree-directory > li.ant-tree-treenode-selected > span.ant-tree-checkbox.ant-tree-checkbox-checked::after, +.ant-tree.ant-tree-directory .ant-tree-child-tree > li.ant-tree-treenode-selected > span.ant-tree-checkbox.ant-tree-checkbox-checked::after { border-color: #fff; } .ant-tree.ant-tree-directory > li.ant-tree-treenode-selected > span.ant-tree-checkbox.ant-tree-checkbox-checked .ant-tree-checkbox-inner, .ant-tree.ant-tree-directory .ant-tree-child-tree > li.ant-tree-treenode-selected > span.ant-tree-checkbox.ant-tree-checkbox-checked .ant-tree-checkbox-inner { background: #fff; } -.ant-tree.ant-tree-directory > li.ant-tree-treenode-selected > span.ant-tree-checkbox.ant-tree-checkbox-checked .ant-tree-checkbox-inner:after, -.ant-tree.ant-tree-directory .ant-tree-child-tree > li.ant-tree-treenode-selected > span.ant-tree-checkbox.ant-tree-checkbox-checked .ant-tree-checkbox-inner:after { +.ant-tree.ant-tree-directory > li.ant-tree-treenode-selected > span.ant-tree-checkbox.ant-tree-checkbox-checked .ant-tree-checkbox-inner::after, +.ant-tree.ant-tree-directory .ant-tree-child-tree > li.ant-tree-treenode-selected > span.ant-tree-checkbox.ant-tree-checkbox-checked .ant-tree-checkbox-inner::after { border-color: #E64448; } -.ant-tree.ant-tree-directory > li.ant-tree-treenode-selected > span.ant-tree-node-content-wrapper:before, -.ant-tree.ant-tree-directory .ant-tree-child-tree > li.ant-tree-treenode-selected > span.ant-tree-node-content-wrapper:before { +.ant-tree.ant-tree-directory > li.ant-tree-treenode-selected > span.ant-tree-node-content-wrapper::before, +.ant-tree.ant-tree-directory .ant-tree-child-tree > li.ant-tree-treenode-selected > span.ant-tree-node-content-wrapper::before { background: #E64448; } .ant-tree-checkbox { - font-family: "Chinese Quote", -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"; - font-size: 14px; - font-variant: tabular-nums; - line-height: 1.5; - color: rgba(0, 0, 0, 0.65); box-sizing: border-box; margin: 0; padding: 0; + color: rgba(0, 0, 0, 0.65); + font-size: 14px; + font-variant: tabular-nums; + line-height: 1.5; list-style: none; - white-space: nowrap; - cursor: pointer; - outline: none; + font-feature-settings: 'tnum'; + position: relative; + top: -0.09em; display: inline-block; line-height: 1; - position: relative; + white-space: nowrap; vertical-align: middle; - top: -0.09em; + outline: none; + cursor: pointer; } .ant-tree-checkbox-wrapper:hover .ant-tree-checkbox-inner, .ant-tree-checkbox:hover .ant-tree-checkbox-inner, .ant-tree-checkbox-input:focus + .ant-tree-checkbox-inner { border-color: #E64448; } -.ant-tree-checkbox-checked:after { +.ant-tree-checkbox-checked::after { position: absolute; top: 0; left: 0; width: 100%; height: 100%; - border-radius: 2px; border: 1px solid #E64448; - content: ''; + border-radius: 2px; + visibility: hidden; -webkit-animation: antCheckboxEffect 0.36s ease-in-out; animation: antCheckboxEffect 0.36s ease-in-out; -webkit-animation-fill-mode: both; animation-fill-mode: both; - visibility: hidden; + content: ''; } -.ant-tree-checkbox:hover:after, -.ant-tree-checkbox-wrapper:hover .ant-tree-checkbox:after { +.ant-tree-checkbox:hover::after, +.ant-tree-checkbox-wrapper:hover .ant-tree-checkbox::after { visibility: visible; } .ant-tree-checkbox-inner { @@ -19902,49 +21111,54 @@ span.ant-transfer-list-search-action { display: block; width: 16px; height: 16px; + background-color: #fff; border: 1px solid #d9d9d9; border-radius: 2px; - background-color: #fff; - transition: all 0.3s; border-collapse: separate; + -webkit-transition: all 0.3s; + transition: all 0.3s; } -.ant-tree-checkbox-inner:after { - transform: rotate(45deg) scale(0); +.ant-tree-checkbox-inner::after { position: absolute; - left: 4.57142857px; - top: 1.14285714px; + top: 50%; + left: 21%; display: table; width: 5.71428571px; height: 9.14285714px; border: 2px solid #fff; border-top: 0; border-left: 0; - content: ' '; - transition: all 0.1s cubic-bezier(0.71, -0.46, 0.88, 0.6), opacity 0.1s; + -webkit-transform: rotate(45deg) scale(0) translate(-50%, -50%); + transform: rotate(45deg) scale(0) translate(-50%, -50%); opacity: 0; + -webkit-transition: all 0.1s cubic-bezier(0.71, -0.46, 0.88, 0.6), opacity 0.1s; + transition: all 0.1s cubic-bezier(0.71, -0.46, 0.88, 0.6), opacity 0.1s; + content: ' '; } .ant-tree-checkbox-input { position: absolute; - left: 0; - z-index: 1; - cursor: pointer; - opacity: 0; top: 0; - bottom: 0; right: 0; + bottom: 0; + left: 0; + z-index: 1; width: 100%; height: 100%; + cursor: pointer; + opacity: 0; } -.ant-tree-checkbox-checked .ant-tree-checkbox-inner:after { - transform: rotate(45deg) scale(1); +.ant-tree-checkbox-checked .ant-tree-checkbox-inner::after { position: absolute; display: table; border: 2px solid #fff; border-top: 0; border-left: 0; - content: ' '; - transition: all 0.2s cubic-bezier(0.12, 0.4, 0.29, 1.46) 0.1s; + -webkit-transform: rotate(45deg) scale(1) translate(-50%, -50%); + transform: rotate(45deg) scale(1) translate(-50%, -50%); opacity: 1; + -webkit-transition: all 0.2s cubic-bezier(0.12, 0.4, 0.29, 1.46) 0.1s; + transition: all 0.2s cubic-bezier(0.12, 0.4, 0.29, 1.46) 0.1s; + content: ' '; } .ant-tree-checkbox-checked .ant-tree-checkbox-inner { background-color: #E64448; @@ -19953,60 +21167,60 @@ span.ant-transfer-list-search-action { .ant-tree-checkbox-disabled { cursor: not-allowed; } -.ant-tree-checkbox-disabled.ant-tree-checkbox-checked .ant-tree-checkbox-inner:after { +.ant-tree-checkbox-disabled.ant-tree-checkbox-checked .ant-tree-checkbox-inner::after { + border-color: rgba(0, 0, 0, 0.25); -webkit-animation-name: none; animation-name: none; - border-color: rgba(0, 0, 0, 0.25); } .ant-tree-checkbox-disabled .ant-tree-checkbox-input { cursor: not-allowed; } .ant-tree-checkbox-disabled .ant-tree-checkbox-inner { - border-color: #d9d9d9 !important; background-color: #f5f5f5; + border-color: #d9d9d9 !important; } -.ant-tree-checkbox-disabled .ant-tree-checkbox-inner:after { - -webkit-animation-name: none; - animation-name: none; +.ant-tree-checkbox-disabled .ant-tree-checkbox-inner::after { border-color: #f5f5f5; border-collapse: separate; + -webkit-animation-name: none; + animation-name: none; } .ant-tree-checkbox-disabled + span { color: rgba(0, 0, 0, 0.25); cursor: not-allowed; } .ant-tree-checkbox-wrapper { - font-family: "Chinese Quote", -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"; - font-size: 14px; - font-variant: tabular-nums; - line-height: 1.5; - color: rgba(0, 0, 0, 0.65); box-sizing: border-box; margin: 0; padding: 0; + color: rgba(0, 0, 0, 0.65); + font-size: 14px; + font-variant: tabular-nums; + line-height: 1.5; list-style: none; + font-feature-settings: 'tnum'; + display: inline-block; line-height: unset; cursor: pointer; - display: inline-block; } .ant-tree-checkbox-wrapper + .ant-tree-checkbox-wrapper { margin-left: 8px; } .ant-tree-checkbox-wrapper + span, .ant-tree-checkbox + span { - padding-left: 8px; padding-right: 8px; + padding-left: 8px; } .ant-tree-checkbox-group { - font-family: "Chinese Quote", -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"; - font-size: 14px; - font-variant: tabular-nums; - line-height: 1.5; - color: rgba(0, 0, 0, 0.65); box-sizing: border-box; margin: 0; padding: 0; + color: rgba(0, 0, 0, 0.65); + font-size: 14px; + font-variant: tabular-nums; + line-height: 1.5; list-style: none; + font-feature-settings: 'tnum'; display: inline-block; } .ant-tree-checkbox-group-item { @@ -20023,61 +21237,62 @@ span.ant-transfer-list-search-action { background-color: #fff; border-color: #d9d9d9; } -.ant-tree-checkbox-indeterminate .ant-tree-checkbox-inner:after { - content: ' '; - transform: translate(-50%, -50%) scale(1); - border: 0; - left: 50%; +.ant-tree-checkbox-indeterminate .ant-tree-checkbox-inner::after { top: 50%; + left: 50%; width: 8px; height: 8px; background-color: #E64448; + border: 0; + -webkit-transform: translate(-50%, -50%) scale(1); + transform: translate(-50%, -50%) scale(1); opacity: 1; + content: ' '; } -.ant-tree-checkbox-indeterminate.ant-tree-checkbox-disabled .ant-tree-checkbox-inner:after { - border-color: rgba(0, 0, 0, 0.25); +.ant-tree-checkbox-indeterminate.ant-tree-checkbox-disabled .ant-tree-checkbox-inner::after { background-color: rgba(0, 0, 0, 0.25); + border-color: rgba(0, 0, 0, 0.25); } .ant-tree { - font-family: "Chinese Quote", -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"; + box-sizing: border-box; + color: rgba(0, 0, 0, 0.65); font-size: 14px; font-variant: tabular-nums; line-height: 1.5; - color: rgba(0, 0, 0, 0.65); - box-sizing: border-box; list-style: none; + font-feature-settings: 'tnum'; margin: 0; padding: 0; } .ant-tree ol, .ant-tree ul { - list-style: none; margin: 0; padding: 0; + list-style: none; } .ant-tree li { - padding: 4px 0; margin: 0; - list-style: none; + padding: 4px 0; white-space: nowrap; + list-style: none; outline: 0; } .ant-tree li span[draggable], .ant-tree li span[draggable='true'] { + line-height: 20px; + border-top: 2px transparent solid; + border-bottom: 2px transparent solid; -webkit-user-select: none; -moz-user-select: none; -ms-user-select: none; user-select: none; - border-top: 2px transparent solid; - border-bottom: 2px transparent solid; /* Required to make elements draggable in old WebKit */ -khtml-user-drag: element; -webkit-user-drag: element; - line-height: 20px; } .ant-tree li.drag-over > span[draggable] { - background-color: #E64448; color: white; + background-color: #E64448; opacity: 0.8; } .ant-tree li.drag-over-gap-top > span[draggable] { @@ -20092,14 +21307,15 @@ span.ant-transfer-list-search-action { } .ant-tree li.ant-tree-treenode-loading span.ant-tree-switcher.ant-tree-switcher_open .ant-tree-switcher-loading-icon, .ant-tree li.ant-tree-treenode-loading span.ant-tree-switcher.ant-tree-switcher_close .ant-tree-switcher-loading-icon { - display: inline-block; position: absolute; left: 0; + display: inline-block; width: 24px; height: 24px; color: #E64448; - transform: none; font-size: 14px; + -webkit-transform: none; + transform: none; } .ant-tree li.ant-tree-treenode-loading span.ant-tree-switcher.ant-tree-switcher_open .ant-tree-switcher-loading-icon svg, .ant-tree li.ant-tree-treenode-loading span.ant-tree-switcher.ant-tree-switcher_close .ant-tree-switcher-loading-icon svg { @@ -20110,8 +21326,8 @@ span.ant-transfer-list-search-action { left: 0; margin: auto; } -:root .ant-tree li.ant-tree-treenode-loading span.ant-tree-switcher.ant-tree-switcher_open:after, -:root .ant-tree li.ant-tree-treenode-loading span.ant-tree-switcher.ant-tree-switcher_close:after { +:root .ant-tree li.ant-tree-treenode-loading span.ant-tree-switcher.ant-tree-switcher_open::after, +:root .ant-tree li.ant-tree-treenode-loading span.ant-tree-switcher.ant-tree-switcher_close::after { opacity: 0; } .ant-tree li ul { @@ -20120,16 +21336,17 @@ span.ant-transfer-list-search-action { } .ant-tree li .ant-tree-node-content-wrapper { display: inline-block; - padding: 0 5px; - border-radius: 2px; + height: 24px; margin: 0; - cursor: pointer; + padding: 0 5px; + color: rgba(0, 0, 0, 0.65); + line-height: 24px; text-decoration: none; vertical-align: top; - color: rgba(0, 0, 0, 0.65); + border-radius: 2px; + cursor: pointer; + -webkit-transition: all 0.3s; transition: all 0.3s; - height: 24px; - line-height: 24px; } .ant-tree li .ant-tree-node-content-wrapper:hover { background-color: #fff2f0; @@ -20142,16 +21359,16 @@ span.ant-transfer-list-search-action { } .ant-tree li span.ant-tree-switcher, .ant-tree li span.ant-tree-iconEle { - margin: 0; + display: inline-block; width: 24px; height: 24px; + margin: 0; line-height: 24px; - display: inline-block; + text-align: center; vertical-align: top; border: 0 none; - cursor: pointer; outline: none; - text-align: center; + cursor: pointer; } .ant-tree li span.ant-tree-switcher { position: relative; @@ -20163,7 +21380,8 @@ span.ant-transfer-list-search-action { .ant-tree li span.ant-tree-switcher.ant-tree-switcher_open .ant-select-switcher-icon { font-size: 12px; font-size: 10px \9; - transform: scale(0.83333333) rotate(0deg); + -webkit-transform: scale(0.83333333) rotate(0deg); + transform: scale(0.83333333) rotate(0deg); display: inline-block; font-weight: bold; } @@ -20173,13 +21391,17 @@ span.ant-transfer-list-search-action { } .ant-tree li span.ant-tree-switcher.ant-tree-switcher_open .ant-tree-switcher-icon svg, .ant-tree li span.ant-tree-switcher.ant-tree-switcher_open .ant-select-switcher-icon svg { + -webkit-transition: -webkit-transform 0.3s; + transition: -webkit-transform 0.3s; transition: transform 0.3s; + transition: transform 0.3s, -webkit-transform 0.3s; } .ant-tree li span.ant-tree-switcher.ant-tree-switcher_close .ant-tree-switcher-icon, .ant-tree li span.ant-tree-switcher.ant-tree-switcher_close .ant-select-switcher-icon { font-size: 12px; font-size: 10px \9; - transform: scale(0.83333333) rotate(0deg); + -webkit-transform: scale(0.83333333) rotate(0deg); + transform: scale(0.83333333) rotate(0deg); display: inline-block; font-weight: bold; } @@ -20189,18 +21411,19 @@ span.ant-transfer-list-search-action { } .ant-tree li span.ant-tree-switcher.ant-tree-switcher_close .ant-tree-switcher-icon svg, .ant-tree li span.ant-tree-switcher.ant-tree-switcher_close .ant-select-switcher-icon svg { + -webkit-transition: -webkit-transform 0.3s; + transition: -webkit-transform 0.3s; transition: transform 0.3s; + transition: transform 0.3s, -webkit-transform 0.3s; } .ant-tree li span.ant-tree-switcher.ant-tree-switcher_close .ant-tree-switcher-icon svg { - transform: rotate(-90deg); + -webkit-transform: rotate(-90deg); + transform: rotate(-90deg); } -.ant-tree li:last-child > span.ant-tree-switcher:before, -.ant-tree li:last-child > span.ant-tree-iconEle:before { +.ant-tree li:last-child > span.ant-tree-switcher::before, +.ant-tree li:last-child > span.ant-tree-iconEle::before { display: none; } -.ant-tree ul > li:first-child { - padding-top: 4px; -} .ant-tree > li:first-child { padding-top: 7px; } @@ -20240,92 +21463,101 @@ li.ant-tree-treenode-disabled > .ant-tree-node-content-wrapper:hover { position: relative; } .ant-tree.ant-tree-show-line li span.ant-tree-switcher { - background: #fff; color: rgba(0, 0, 0, 0.45); + background: #fff; } .ant-tree.ant-tree-show-line li span.ant-tree-switcher.ant-tree-switcher-noop .ant-tree-switcher-icon, .ant-tree.ant-tree-show-line li span.ant-tree-switcher.ant-tree-switcher-noop .ant-select-switcher-icon { - font-size: 12px; display: inline-block; font-weight: normal; + font-size: 12px; } .ant-tree.ant-tree-show-line li span.ant-tree-switcher.ant-tree-switcher-noop .ant-tree-switcher-icon svg, .ant-tree.ant-tree-show-line li span.ant-tree-switcher.ant-tree-switcher-noop .ant-select-switcher-icon svg { + -webkit-transition: -webkit-transform 0.3s; + transition: -webkit-transform 0.3s; transition: transform 0.3s; + transition: transform 0.3s, -webkit-transform 0.3s; } .ant-tree.ant-tree-show-line li span.ant-tree-switcher.ant-tree-switcher_open .ant-tree-switcher-icon, .ant-tree.ant-tree-show-line li span.ant-tree-switcher.ant-tree-switcher_open .ant-select-switcher-icon { - font-size: 12px; display: inline-block; font-weight: normal; + font-size: 12px; } .ant-tree.ant-tree-show-line li span.ant-tree-switcher.ant-tree-switcher_open .ant-tree-switcher-icon svg, .ant-tree.ant-tree-show-line li span.ant-tree-switcher.ant-tree-switcher_open .ant-select-switcher-icon svg { + -webkit-transition: -webkit-transform 0.3s; + transition: -webkit-transform 0.3s; transition: transform 0.3s; + transition: transform 0.3s, -webkit-transform 0.3s; } .ant-tree.ant-tree-show-line li span.ant-tree-switcher.ant-tree-switcher_close .ant-tree-switcher-icon, .ant-tree.ant-tree-show-line li span.ant-tree-switcher.ant-tree-switcher_close .ant-select-switcher-icon { - font-size: 12px; display: inline-block; font-weight: normal; + font-size: 12px; } .ant-tree.ant-tree-show-line li span.ant-tree-switcher.ant-tree-switcher_close .ant-tree-switcher-icon svg, .ant-tree.ant-tree-show-line li span.ant-tree-switcher.ant-tree-switcher_close .ant-select-switcher-icon svg { + -webkit-transition: -webkit-transform 0.3s; + transition: -webkit-transform 0.3s; transition: transform 0.3s; + transition: transform 0.3s, -webkit-transform 0.3s; } -.ant-tree.ant-tree-show-line li:not(:last-child):before { - content: ' '; - width: 1px; - border-left: 1px solid #d9d9d9; - height: 100%; +.ant-tree.ant-tree-show-line li:not(:last-child)::before { position: absolute; left: 12px; + width: 1px; + height: 100%; margin: 22px 0; + border-left: 1px solid #d9d9d9; + content: ' '; } .ant-tree.ant-tree-icon-hide .ant-tree-treenode-loading .ant-tree-iconEle { display: none; } .ant-select-tree-checkbox { - font-family: "Chinese Quote", -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"; - font-size: 14px; - font-variant: tabular-nums; - line-height: 1.5; - color: rgba(0, 0, 0, 0.65); box-sizing: border-box; margin: 0; padding: 0; + color: rgba(0, 0, 0, 0.65); + font-size: 14px; + font-variant: tabular-nums; + line-height: 1.5; list-style: none; - white-space: nowrap; - cursor: pointer; - outline: none; + font-feature-settings: 'tnum'; + position: relative; + top: -0.09em; display: inline-block; line-height: 1; - position: relative; + white-space: nowrap; vertical-align: middle; - top: -0.09em; + outline: none; + cursor: pointer; } .ant-select-tree-checkbox-wrapper:hover .ant-select-tree-checkbox-inner, .ant-select-tree-checkbox:hover .ant-select-tree-checkbox-inner, .ant-select-tree-checkbox-input:focus + .ant-select-tree-checkbox-inner { border-color: #E64448; } -.ant-select-tree-checkbox-checked:after { +.ant-select-tree-checkbox-checked::after { position: absolute; top: 0; left: 0; width: 100%; height: 100%; - border-radius: 2px; border: 1px solid #E64448; - content: ''; + border-radius: 2px; + visibility: hidden; -webkit-animation: antCheckboxEffect 0.36s ease-in-out; animation: antCheckboxEffect 0.36s ease-in-out; -webkit-animation-fill-mode: both; animation-fill-mode: both; - visibility: hidden; + content: ''; } -.ant-select-tree-checkbox:hover:after, -.ant-select-tree-checkbox-wrapper:hover .ant-select-tree-checkbox:after { +.ant-select-tree-checkbox:hover::after, +.ant-select-tree-checkbox-wrapper:hover .ant-select-tree-checkbox::after { visibility: visible; } .ant-select-tree-checkbox-inner { @@ -20335,49 +21567,54 @@ li.ant-tree-treenode-disabled > .ant-tree-node-content-wrapper:hover { display: block; width: 16px; height: 16px; + background-color: #fff; border: 1px solid #d9d9d9; border-radius: 2px; - background-color: #fff; - transition: all 0.3s; border-collapse: separate; + -webkit-transition: all 0.3s; + transition: all 0.3s; } -.ant-select-tree-checkbox-inner:after { - transform: rotate(45deg) scale(0); +.ant-select-tree-checkbox-inner::after { position: absolute; - left: 4.57142857px; - top: 1.14285714px; + top: 50%; + left: 21%; display: table; width: 5.71428571px; height: 9.14285714px; border: 2px solid #fff; border-top: 0; border-left: 0; - content: ' '; - transition: all 0.1s cubic-bezier(0.71, -0.46, 0.88, 0.6), opacity 0.1s; + -webkit-transform: rotate(45deg) scale(0) translate(-50%, -50%); + transform: rotate(45deg) scale(0) translate(-50%, -50%); opacity: 0; + -webkit-transition: all 0.1s cubic-bezier(0.71, -0.46, 0.88, 0.6), opacity 0.1s; + transition: all 0.1s cubic-bezier(0.71, -0.46, 0.88, 0.6), opacity 0.1s; + content: ' '; } .ant-select-tree-checkbox-input { position: absolute; - left: 0; - z-index: 1; - cursor: pointer; - opacity: 0; top: 0; - bottom: 0; right: 0; + bottom: 0; + left: 0; + z-index: 1; width: 100%; height: 100%; + cursor: pointer; + opacity: 0; } -.ant-select-tree-checkbox-checked .ant-select-tree-checkbox-inner:after { - transform: rotate(45deg) scale(1); +.ant-select-tree-checkbox-checked .ant-select-tree-checkbox-inner::after { position: absolute; display: table; border: 2px solid #fff; border-top: 0; border-left: 0; - content: ' '; - transition: all 0.2s cubic-bezier(0.12, 0.4, 0.29, 1.46) 0.1s; + -webkit-transform: rotate(45deg) scale(1) translate(-50%, -50%); + transform: rotate(45deg) scale(1) translate(-50%, -50%); opacity: 1; + -webkit-transition: all 0.2s cubic-bezier(0.12, 0.4, 0.29, 1.46) 0.1s; + transition: all 0.2s cubic-bezier(0.12, 0.4, 0.29, 1.46) 0.1s; + content: ' '; } .ant-select-tree-checkbox-checked .ant-select-tree-checkbox-inner { background-color: #E64448; @@ -20386,60 +21623,60 @@ li.ant-tree-treenode-disabled > .ant-tree-node-content-wrapper:hover { .ant-select-tree-checkbox-disabled { cursor: not-allowed; } -.ant-select-tree-checkbox-disabled.ant-select-tree-checkbox-checked .ant-select-tree-checkbox-inner:after { +.ant-select-tree-checkbox-disabled.ant-select-tree-checkbox-checked .ant-select-tree-checkbox-inner::after { + border-color: rgba(0, 0, 0, 0.25); -webkit-animation-name: none; animation-name: none; - border-color: rgba(0, 0, 0, 0.25); } .ant-select-tree-checkbox-disabled .ant-select-tree-checkbox-input { cursor: not-allowed; } .ant-select-tree-checkbox-disabled .ant-select-tree-checkbox-inner { - border-color: #d9d9d9 !important; background-color: #f5f5f5; + border-color: #d9d9d9 !important; } -.ant-select-tree-checkbox-disabled .ant-select-tree-checkbox-inner:after { - -webkit-animation-name: none; - animation-name: none; +.ant-select-tree-checkbox-disabled .ant-select-tree-checkbox-inner::after { border-color: #f5f5f5; border-collapse: separate; + -webkit-animation-name: none; + animation-name: none; } .ant-select-tree-checkbox-disabled + span { color: rgba(0, 0, 0, 0.25); cursor: not-allowed; } -.ant-select-tree-checkbox-wrapper { - font-family: "Chinese Quote", -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"; - font-size: 14px; - font-variant: tabular-nums; - line-height: 1.5; - color: rgba(0, 0, 0, 0.65); +.ant-select-tree-checkbox-wrapper { box-sizing: border-box; margin: 0; padding: 0; + color: rgba(0, 0, 0, 0.65); + font-size: 14px; + font-variant: tabular-nums; + line-height: 1.5; list-style: none; + font-feature-settings: 'tnum'; + display: inline-block; line-height: unset; cursor: pointer; - display: inline-block; } .ant-select-tree-checkbox-wrapper + .ant-select-tree-checkbox-wrapper { margin-left: 8px; } .ant-select-tree-checkbox-wrapper + span, .ant-select-tree-checkbox + span { - padding-left: 8px; padding-right: 8px; + padding-left: 8px; } .ant-select-tree-checkbox-group { - font-family: "Chinese Quote", -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"; - font-size: 14px; - font-variant: tabular-nums; - line-height: 1.5; - color: rgba(0, 0, 0, 0.65); box-sizing: border-box; margin: 0; padding: 0; + color: rgba(0, 0, 0, 0.65); + font-size: 14px; + font-variant: tabular-nums; + line-height: 1.5; list-style: none; + font-feature-settings: 'tnum'; display: inline-block; } .ant-select-tree-checkbox-group-item { @@ -20456,39 +21693,40 @@ li.ant-tree-treenode-disabled > .ant-tree-node-content-wrapper:hover { background-color: #fff; border-color: #d9d9d9; } -.ant-select-tree-checkbox-indeterminate .ant-select-tree-checkbox-inner:after { - content: ' '; - transform: translate(-50%, -50%) scale(1); - border: 0; - left: 50%; +.ant-select-tree-checkbox-indeterminate .ant-select-tree-checkbox-inner::after { top: 50%; + left: 50%; width: 8px; height: 8px; background-color: #E64448; + border: 0; + -webkit-transform: translate(-50%, -50%) scale(1); + transform: translate(-50%, -50%) scale(1); opacity: 1; + content: ' '; } -.ant-select-tree-checkbox-indeterminate.ant-select-tree-checkbox-disabled .ant-select-tree-checkbox-inner:after { - border-color: rgba(0, 0, 0, 0.25); +.ant-select-tree-checkbox-indeterminate.ant-select-tree-checkbox-disabled .ant-select-tree-checkbox-inner::after { background-color: rgba(0, 0, 0, 0.25); + border-color: rgba(0, 0, 0, 0.25); } .ant-select-tree { - font-family: "Chinese Quote", -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"; + box-sizing: border-box; + padding: 0; + color: rgba(0, 0, 0, 0.65); font-size: 14px; font-variant: tabular-nums; line-height: 1.5; - color: rgba(0, 0, 0, 0.65); - box-sizing: border-box; - padding: 0; list-style: none; + font-feature-settings: 'tnum'; margin: 0; - padding: 0 4px; margin-top: -4px; + padding: 0 4px; } .ant-select-tree li { - padding: 0; margin: 8px 0; - list-style: none; + padding: 0; white-space: nowrap; + list-style: none; outline: 0; } .ant-select-tree li.filter-node > span { @@ -20500,14 +21738,15 @@ li.ant-tree-treenode-disabled > .ant-tree-node-content-wrapper:hover { } .ant-select-tree li .ant-select-tree-node-content-wrapper { display: inline-block; + width: calc(100% - 24px); + margin: 0; padding: 3px 5px; + color: rgba(0, 0, 0, 0.65); + text-decoration: none; border-radius: 2px; - margin: 0; cursor: pointer; - text-decoration: none; - color: rgba(0, 0, 0, 0.65); + -webkit-transition: all 0.3s; transition: all 0.3s; - width: calc(100% - 24px); } .ant-select-tree li .ant-select-tree-node-content-wrapper:hover { background-color: #fff2f0; @@ -20523,24 +21762,25 @@ li.ant-tree-treenode-disabled > .ant-tree-node-content-wrapper:hover { } .ant-select-tree li span.ant-select-tree-switcher, .ant-select-tree li span.ant-select-tree-iconEle { - margin: 0; + display: inline-block; width: 24px; height: 24px; + margin: 0; line-height: 22px; - display: inline-block; + text-align: center; vertical-align: middle; border: 0 none; - cursor: pointer; outline: none; - text-align: center; + cursor: pointer; } .ant-select-tree li span.ant-select-icon_loading .ant-select-switcher-loading-icon { - display: inline-block; position: absolute; left: 0; + display: inline-block; color: #E64448; - transform: none; font-size: 14px; + -webkit-transform: none; + transform: none; } .ant-select-tree li span.ant-select-icon_loading .ant-select-switcher-loading-icon svg { position: absolute; @@ -20560,7 +21800,8 @@ li.ant-tree-treenode-disabled > .ant-tree-node-content-wrapper:hover { .ant-select-tree li span.ant-select-tree-switcher.ant-select-tree-switcher_open .ant-select-switcher-icon { font-size: 12px; font-size: 10px \9; - transform: scale(0.83333333) rotate(0deg); + -webkit-transform: scale(0.83333333) rotate(0deg); + transform: scale(0.83333333) rotate(0deg); display: inline-block; font-weight: bold; } @@ -20570,13 +21811,17 @@ li.ant-tree-treenode-disabled > .ant-tree-node-content-wrapper:hover { } .ant-select-tree li span.ant-select-tree-switcher.ant-select-tree-switcher_open .ant-tree-switcher-icon svg, .ant-select-tree li span.ant-select-tree-switcher.ant-select-tree-switcher_open .ant-select-switcher-icon svg { + -webkit-transition: -webkit-transform 0.3s; + transition: -webkit-transform 0.3s; transition: transform 0.3s; + transition: transform 0.3s, -webkit-transform 0.3s; } .ant-select-tree li span.ant-select-tree-switcher.ant-select-tree-switcher_close .ant-tree-switcher-icon, .ant-select-tree li span.ant-select-tree-switcher.ant-select-tree-switcher_close .ant-select-switcher-icon { font-size: 12px; font-size: 10px \9; - transform: scale(0.83333333) rotate(0deg); + -webkit-transform: scale(0.83333333) rotate(0deg); + transform: scale(0.83333333) rotate(0deg); display: inline-block; font-weight: bold; } @@ -20586,21 +21831,26 @@ li.ant-tree-treenode-disabled > .ant-tree-node-content-wrapper:hover { } .ant-select-tree li span.ant-select-tree-switcher.ant-select-tree-switcher_close .ant-tree-switcher-icon svg, .ant-select-tree li span.ant-select-tree-switcher.ant-select-tree-switcher_close .ant-select-switcher-icon svg { + -webkit-transition: -webkit-transform 0.3s; + transition: -webkit-transform 0.3s; transition: transform 0.3s; + transition: transform 0.3s, -webkit-transform 0.3s; } .ant-select-tree li span.ant-select-tree-switcher.ant-select-tree-switcher_close .ant-select-switcher-icon svg { - transform: rotate(-90deg); + -webkit-transform: rotate(-90deg); + transform: rotate(-90deg); } .ant-select-tree li span.ant-select-tree-switcher.ant-select-tree-switcher_open .ant-select-switcher-loading-icon, .ant-select-tree li span.ant-select-tree-switcher.ant-select-tree-switcher_close .ant-select-switcher-loading-icon { - display: inline-block; position: absolute; left: 0; + display: inline-block; width: 24px; height: 24px; color: #E64448; - transform: none; font-size: 14px; + -webkit-transform: none; + transform: none; } .ant-select-tree li span.ant-select-tree-switcher.ant-select-tree-switcher_open .ant-select-switcher-loading-icon svg, .ant-select-tree li span.ant-select-tree-switcher.ant-select-tree-switcher_close .ant-select-switcher-loading-icon svg { @@ -20638,15 +21888,15 @@ li.ant-select-tree-treenode-disabled > .ant-select-tree-node-content-wrapper:hov vertical-align: top; } .ant-select-tree-dropdown { - font-family: "Chinese Quote", -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"; - font-size: 14px; - font-variant: tabular-nums; - line-height: 1.5; - color: rgba(0, 0, 0, 0.65); box-sizing: border-box; margin: 0; padding: 0; + color: rgba(0, 0, 0, 0.65); + font-size: 14px; + font-variant: tabular-nums; + line-height: 1.5; list-style: none; + font-feature-settings: 'tnum'; } .ant-select-tree-dropdown .ant-select-dropdown-search { display: block; @@ -20656,9 +21906,9 @@ li.ant-select-tree-treenode-disabled > .ant-select-tree-node-content-wrapper:hov width: 100%; } .ant-select-tree-dropdown .ant-select-dropdown-search .ant-select-search__field { - padding: 4px 7px; - width: 100%; box-sizing: border-box; + width: 100%; + padding: 4px 7px; border: 1px solid #d9d9d9; border-radius: 4px; outline: none; @@ -20667,21 +21917,21 @@ li.ant-select-tree-treenode-disabled > .ant-select-tree-node-content-wrapper:hov display: none; } .ant-select-tree-dropdown .ant-select-not-found { - cursor: not-allowed; - color: rgba(0, 0, 0, 0.25); - padding: 7px 16px; display: block; + padding: 7px 16px; + color: rgba(0, 0, 0, 0.25); + cursor: not-allowed; } .ant-upload { - font-family: "Chinese Quote", -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"; - font-size: 14px; - font-variant: tabular-nums; - line-height: 1.5; - color: rgba(0, 0, 0, 0.65); box-sizing: border-box; margin: 0; padding: 0; + color: rgba(0, 0, 0, 0.65); + font-size: 14px; + font-variant: tabular-nums; + line-height: 1.5; list-style: none; + font-feature-settings: 'tnum'; outline: 0; } .ant-upload p { @@ -20699,40 +21949,42 @@ li.ant-select-tree-treenode-disabled > .ant-select-tree-node-content-wrapper:hov display: inline-block; } .ant-upload.ant-upload-select-picture-card { - border: 1px dashed #d9d9d9; + display: table; width: 104px; height: 104px; - border-radius: 5px; - background-color: #fafafa; + margin-right: 8px; + margin-bottom: 8px; text-align: center; + vertical-align: top; + background-color: #fafafa; + border: 1px dashed #d9d9d9; + border-radius: 5px; cursor: pointer; + -webkit-transition: border-color 0.3s ease; transition: border-color 0.3s ease; - vertical-align: top; - margin-right: 8px; - margin-bottom: 8px; - display: table; } .ant-upload.ant-upload-select-picture-card > .ant-upload { + display: table-cell; width: 100%; height: 100%; - display: table-cell; + padding: 8px; text-align: center; vertical-align: middle; - padding: 8px; } .ant-upload.ant-upload-select-picture-card:hover { border-color: #E64448; } .ant-upload.ant-upload-drag { - border: 1px dashed #d9d9d9; - transition: border-color 0.3s; - cursor: pointer; - border-radius: 5px; - text-align: center; + position: relative; width: 100%; height: 100%; - position: relative; + text-align: center; background: #fafafa; + border: 1px dashed #d9d9d9; + border-radius: 5px; + cursor: pointer; + -webkit-transition: border-color 0.3s; + transition: border-color 0.3s; } .ant-upload.ant-upload-drag .ant-upload { padding: 16px 0; @@ -20758,22 +22010,23 @@ li.ant-select-tree-treenode-disabled > .ant-select-tree-node-content-wrapper:hov margin-bottom: 20px; } .ant-upload.ant-upload-drag p.ant-upload-drag-icon .anticon { - font-size: 48px; color: #f2726f; + font-size: 48px; } .ant-upload.ant-upload-drag p.ant-upload-text { - font-size: 16px; margin: 0 0 4px; color: rgba(0, 0, 0, 0.85); + font-size: 16px; } .ant-upload.ant-upload-drag p.ant-upload-hint { - font-size: 14px; color: rgba(0, 0, 0, 0.45); + font-size: 14px; } .ant-upload.ant-upload-drag .anticon-plus { + color: rgba(0, 0, 0, 0.25); font-size: 30px; + -webkit-transition: all 0.3s; transition: all 0.3s; - color: rgba(0, 0, 0, 0.25); } .ant-upload.ant-upload-drag .anticon-plus:hover { color: rgba(0, 0, 0, 0.45); @@ -20782,50 +22035,51 @@ li.ant-select-tree-treenode-disabled > .ant-select-tree-node-content-wrapper:hov color: rgba(0, 0, 0, 0.45); } .ant-upload-list { - font-family: "Chinese Quote", -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"; - font-size: 14px; - font-variant: tabular-nums; - line-height: 1.5; - color: rgba(0, 0, 0, 0.65); box-sizing: border-box; margin: 0; padding: 0; + color: rgba(0, 0, 0, 0.65); + font-size: 14px; + font-variant: tabular-nums; + line-height: 1.5; list-style: none; + font-feature-settings: 'tnum'; zoom: 1; } -.ant-upload-list:before, -.ant-upload-list:after { +.ant-upload-list::before, +.ant-upload-list::after { content: ''; display: table; } -.ant-upload-list:after { +.ant-upload-list::after { clear: both; } -.ant-upload-list:before, -.ant-upload-list:after { +.ant-upload-list::before, +.ant-upload-list::after { content: ''; display: table; } -.ant-upload-list:after { +.ant-upload-list::after { clear: both; } .ant-upload-list-item { - margin-top: 8px; - font-size: 14px; position: relative; height: 22px; + margin-top: 8px; + font-size: 14px; } .ant-upload-list-item-name { + display: inline-block; + width: 100%; + padding-left: 22px; overflow: hidden; - text-overflow: ellipsis; white-space: nowrap; - padding-left: 22px; - width: 100%; - display: inline-block; + text-overflow: ellipsis; } .ant-upload-list-item-info { height: 100%; padding: 0 12px 0 4px; + -webkit-transition: background-color 0.3s; transition: background-color 0.3s; } .ant-upload-list-item-info > span { @@ -20833,24 +22087,26 @@ li.ant-select-tree-treenode-disabled > .ant-select-tree-node-content-wrapper:hov } .ant-upload-list-item-info .anticon-loading, .ant-upload-list-item-info .anticon-paper-clip { - font-size: 14px; - color: rgba(0, 0, 0, 0.45); position: absolute; top: 5px; + color: rgba(0, 0, 0, 0.45); + font-size: 14px; } .ant-upload-list-item .anticon-close { display: inline-block; font-size: 12px; font-size: 10px \9; - transform: scale(0.83333333) rotate(0deg); - transition: all 0.3s; - opacity: 0; - cursor: pointer; + -webkit-transform: scale(0.83333333) rotate(0deg); + transform: scale(0.83333333) rotate(0deg); position: absolute; top: 6px; right: 4px; color: rgba(0, 0, 0, 0.45); line-height: 0; + cursor: pointer; + opacity: 0; + -webkit-transition: all 0.3s; + transition: all 0.3s; } :root .ant-upload-list-item .anticon-close { font-size: 12px; @@ -20870,24 +22126,24 @@ li.ant-select-tree-treenode-disabled > .ant-select-tree-node-content-wrapper:hov color: #f5222d; } .ant-upload-list-item-error .anticon-close { - opacity: 1; color: #f5222d !important; + opacity: 1; } .ant-upload-list-item-progress { - line-height: 0; - font-size: 14px; position: absolute; - width: 100%; bottom: -12px; + width: 100%; padding-left: 26px; + font-size: 14px; + line-height: 0; } .ant-upload-list-picture .ant-upload-list-item, .ant-upload-list-picture-card .ant-upload-list-item { + position: relative; + height: 66px; padding: 8px; - border-radius: 5px; border: 1px solid #d9d9d9; - height: 66px; - position: relative; + border-radius: 5px; } .ant-upload-list-picture .ant-upload-list-item:hover, .ant-upload-list-picture-card .ant-upload-list-item:hover { @@ -20911,44 +22167,46 @@ li.ant-select-tree-treenode-disabled > .ant-select-tree-node-content-wrapper:hov } .ant-upload-list-picture .ant-upload-list-item-thumbnail, .ant-upload-list-picture-card .ant-upload-list-item-thumbnail { - width: 48px; - height: 48px; position: absolute; top: 8px; left: 8px; - text-align: center; - line-height: 54px; + width: 48px; + height: 48px; font-size: 26px; + line-height: 54px; + text-align: center; opacity: 0.8; } .ant-upload-list-picture .ant-upload-list-item-icon, .ant-upload-list-picture-card .ant-upload-list-item-icon { - font-size: 26px; position: absolute; top: 50%; left: 50%; - transform: translate(-50%, -50%); + font-size: 26px; + -webkit-transform: translate(-50%, -50%); + transform: translate(-50%, -50%); } .ant-upload-list-picture .ant-upload-list-item-thumbnail img, .ant-upload-list-picture-card .ant-upload-list-item-thumbnail img { + display: block; width: 48px; height: 48px; - display: block; overflow: hidden; } .ant-upload-list-picture .ant-upload-list-item-name, .ant-upload-list-picture-card .ant-upload-list-item-name { - overflow: hidden; - text-overflow: ellipsis; - white-space: nowrap; + display: inline-block; + box-sizing: border-box; + max-width: 100%; margin: 0 0 0 8px; + padding-right: 8px; + padding-left: 48px; + overflow: hidden; line-height: 44px; + white-space: nowrap; + text-overflow: ellipsis; + -webkit-transition: all 0.3s; transition: all 0.3s; - padding-left: 48px; - padding-right: 8px; - max-width: 100%; - display: inline-block; - box-sizing: border-box; } .ant-upload-list-picture .ant-upload-list-item-uploading .ant-upload-list-item-name, .ant-upload-list-picture-card .ant-upload-list-item-uploading .ant-upload-list-item-name { @@ -20956,23 +22214,23 @@ li.ant-select-tree-treenode-disabled > .ant-select-tree-node-content-wrapper:hov } .ant-upload-list-picture .ant-upload-list-item-progress, .ant-upload-list-picture-card .ant-upload-list-item-progress { - padding-left: 56px; - margin-top: 0; bottom: 14px; width: calc(100% - 24px); + margin-top: 0; + padding-left: 56px; } .ant-upload-list-picture .anticon-close, .ant-upload-list-picture-card .anticon-close { position: absolute; - right: 8px; top: 8px; + right: 8px; line-height: 1; opacity: 1; } .ant-upload-list-picture-card { float: left; } -.ant-upload-list-picture-card.ant-upload-list:after { +.ant-upload-list-picture-card.ant-upload-list::after { display: none; } .ant-upload-list-picture-card .ant-upload-list-item { @@ -20982,42 +22240,46 @@ li.ant-select-tree-treenode-disabled > .ant-select-tree-node-content-wrapper:hov margin: 0 8px 8px 0; } .ant-upload-list-picture-card .ant-upload-list-item-info { - height: 100%; position: relative; + height: 100%; overflow: hidden; } -.ant-upload-list-picture-card .ant-upload-list-item-info:before { - content: ' '; +.ant-upload-list-picture-card .ant-upload-list-item-info::before { position: absolute; z-index: 1; - background-color: rgba(0, 0, 0, 0.5); - transition: all 0.3s; width: 100%; height: 100%; + background-color: rgba(0, 0, 0, 0.5); opacity: 0; + -webkit-transition: all 0.3s; + transition: all 0.3s; + content: ' '; } -.ant-upload-list-picture-card .ant-upload-list-item:hover .ant-upload-list-item-info:before { +.ant-upload-list-picture-card .ant-upload-list-item:hover .ant-upload-list-item-info::before { opacity: 1; } .ant-upload-list-picture-card .ant-upload-list-item-actions { position: absolute; - left: 50%; top: 50%; - transform: translate(-50%, -50%); + left: 50%; z-index: 10; white-space: nowrap; + -webkit-transform: translate(-50%, -50%); + transform: translate(-50%, -50%); opacity: 0; + -webkit-transition: all 0.3s; transition: all 0.3s; } .ant-upload-list-picture-card .ant-upload-list-item-actions .anticon-eye-o, .ant-upload-list-picture-card .ant-upload-list-item-actions .anticon-delete { z-index: 10; - transition: all 0.3s; - cursor: pointer; - font-size: 16px; width: 16px; - color: rgba(255, 255, 255, 0.85); margin: 0 4px; + color: rgba(255, 255, 255, 0.85); + font-size: 16px; + cursor: pointer; + -webkit-transition: all 0.3s; + transition: all 0.3s; } .ant-upload-list-picture-card .ant-upload-list-item-actions .anticon-eye-o:hover, .ant-upload-list-picture-card .ant-upload-list-item-actions .anticon-delete:hover { @@ -21029,17 +22291,17 @@ li.ant-select-tree-treenode-disabled > .ant-select-tree-node-content-wrapper:hov } .ant-upload-list-picture-card .ant-upload-list-item-thumbnail, .ant-upload-list-picture-card .ant-upload-list-item-thumbnail img { + position: static; display: block; width: 100%; height: 100%; - position: static; } .ant-upload-list-picture-card .ant-upload-list-item-name { + display: none; margin: 8px 0 0; padding: 0; - text-align: center; line-height: 1.5; - display: none; + text-align: center; } .ant-upload-list-picture-card .anticon-picture + .ant-upload-list-item-name { display: block; @@ -21050,7 +22312,7 @@ li.ant-select-tree-treenode-disabled > .ant-select-tree-node-content-wrapper:hov .ant-upload-list-picture-card .ant-upload-list-item-uploading .ant-upload-list-item-info { height: auto; } -.ant-upload-list-picture-card .ant-upload-list-item-uploading .ant-upload-list-item-info:before, +.ant-upload-list-picture-card .ant-upload-list-item-uploading .ant-upload-list-item-info::before, .ant-upload-list-picture-card .ant-upload-list-item-uploading .ant-upload-list-item-info .anticon-eye-o, .ant-upload-list-picture-card .ant-upload-list-item-uploading .ant-upload-list-item-info .anticon-delete { display: none; @@ -21060,8 +22322,8 @@ li.ant-select-tree-treenode-disabled > .ant-select-tree-node-content-wrapper:hov color: rgba(0, 0, 0, 0.45); } .ant-upload-list-picture-card .ant-upload-list-item-progress { - padding-left: 0; bottom: 32px; + padding-left: 0; } .ant-upload-list .ant-upload-success-icon { color: #52c41a; @@ -21096,16 +22358,16 @@ li.ant-select-tree-treenode-disabled > .ant-select-tree-node-content-wrapper:hov from { height: 0; margin: 0; - opacity: 0; padding: 0; + opacity: 0; } } @keyframes uploadAnimateIn { from { height: 0; margin: 0; - opacity: 0; padding: 0; + opacity: 0; } } @-webkit-keyframes uploadAnimateOut { @@ -21129,8 +22391,8 @@ li.ant-select-tree-treenode-disabled > .ant-select-tree-node-content-wrapper:hov width: 0; height: 0; margin: 0; - opacity: 0; padding: 0; + opacity: 0; } } @keyframes uploadAnimateInlineIn { @@ -21138,8 +22400,8 @@ li.ant-select-tree-treenode-disabled > .ant-select-tree-node-content-wrapper:hov width: 0; height: 0; margin: 0; - opacity: 0; padding: 0; + opacity: 0; } } @-webkit-keyframes uploadAnimateInlineOut { @@ -21316,6 +22578,7 @@ li.ant-select-tree-treenode-disabled > .ant-select-tree-node-content-wrapper:hov } .account-settings-info-main { width: 100%; + display: -webkit-box; display: flex; height: 100%; overflow: auto; @@ -21339,7 +22602,8 @@ li.ant-select-tree-treenode-disabled > .ant-select-tree-node-content-wrapper:hov width: 224px; } .account-settings-info-main .account-settings-info-right { - flex: 1 1; + -webkit-box-flex: 1; + flex: 1 1; padding: 8px 40px; } .account-settings-info-main .account-settings-info-right .account-settings-info-title { @@ -21349,6 +22613,282 @@ li.ant-select-tree-treenode-disabled > .ant-select-tree-node-content-wrapper:hov line-height: 28px; margin-bottom: 12px; } -.account-settings-info-main .account-settings-info-right .account-settings-info-view { - padding-top: 12px; +.account-settings-info-main .account-settings-info-right .account-settings-info-view { + padding-top: 12px; +} +var map = { + "./af": "./node_modules/moment/locale/af.js", + "./af.js": "./node_modules/moment/locale/af.js", + "./ar": "./node_modules/moment/locale/ar.js", + "./ar-dz": "./node_modules/moment/locale/ar-dz.js", + "./ar-dz.js": "./node_modules/moment/locale/ar-dz.js", + "./ar-kw": "./node_modules/moment/locale/ar-kw.js", + "./ar-kw.js": "./node_modules/moment/locale/ar-kw.js", + "./ar-ly": "./node_modules/moment/locale/ar-ly.js", + "./ar-ly.js": "./node_modules/moment/locale/ar-ly.js", + "./ar-ma": "./node_modules/moment/locale/ar-ma.js", + "./ar-ma.js": "./node_modules/moment/locale/ar-ma.js", + "./ar-sa": "./node_modules/moment/locale/ar-sa.js", + "./ar-sa.js": "./node_modules/moment/locale/ar-sa.js", + "./ar-tn": "./node_modules/moment/locale/ar-tn.js", + "./ar-tn.js": "./node_modules/moment/locale/ar-tn.js", + "./ar.js": "./node_modules/moment/locale/ar.js", + "./az": "./node_modules/moment/locale/az.js", + "./az.js": "./node_modules/moment/locale/az.js", + "./be": "./node_modules/moment/locale/be.js", + "./be.js": "./node_modules/moment/locale/be.js", + "./bg": "./node_modules/moment/locale/bg.js", + "./bg.js": "./node_modules/moment/locale/bg.js", + "./bm": "./node_modules/moment/locale/bm.js", + "./bm.js": "./node_modules/moment/locale/bm.js", + "./bn": "./node_modules/moment/locale/bn.js", + "./bn.js": "./node_modules/moment/locale/bn.js", + "./bo": "./node_modules/moment/locale/bo.js", + "./bo.js": "./node_modules/moment/locale/bo.js", + "./br": "./node_modules/moment/locale/br.js", + "./br.js": "./node_modules/moment/locale/br.js", + "./bs": "./node_modules/moment/locale/bs.js", + "./bs.js": "./node_modules/moment/locale/bs.js", + "./ca": "./node_modules/moment/locale/ca.js", + "./ca.js": "./node_modules/moment/locale/ca.js", + "./cs": "./node_modules/moment/locale/cs.js", + "./cs.js": "./node_modules/moment/locale/cs.js", + "./cv": "./node_modules/moment/locale/cv.js", + "./cv.js": "./node_modules/moment/locale/cv.js", + "./cy": "./node_modules/moment/locale/cy.js", + "./cy.js": "./node_modules/moment/locale/cy.js", + "./da": "./node_modules/moment/locale/da.js", + "./da.js": "./node_modules/moment/locale/da.js", + "./de": "./node_modules/moment/locale/de.js", + "./de-at": "./node_modules/moment/locale/de-at.js", + "./de-at.js": "./node_modules/moment/locale/de-at.js", + "./de-ch": "./node_modules/moment/locale/de-ch.js", + "./de-ch.js": "./node_modules/moment/locale/de-ch.js", + "./de.js": "./node_modules/moment/locale/de.js", + "./dv": "./node_modules/moment/locale/dv.js", + "./dv.js": "./node_modules/moment/locale/dv.js", + "./el": "./node_modules/moment/locale/el.js", + "./el.js": "./node_modules/moment/locale/el.js", + "./en-SG": "./node_modules/moment/locale/en-SG.js", + "./en-SG.js": "./node_modules/moment/locale/en-SG.js", + "./en-au": "./node_modules/moment/locale/en-au.js", + "./en-au.js": "./node_modules/moment/locale/en-au.js", + "./en-ca": "./node_modules/moment/locale/en-ca.js", + "./en-ca.js": "./node_modules/moment/locale/en-ca.js", + "./en-gb": "./node_modules/moment/locale/en-gb.js", + "./en-gb.js": "./node_modules/moment/locale/en-gb.js", + "./en-ie": "./node_modules/moment/locale/en-ie.js", + "./en-ie.js": "./node_modules/moment/locale/en-ie.js", + "./en-il": "./node_modules/moment/locale/en-il.js", + "./en-il.js": "./node_modules/moment/locale/en-il.js", + "./en-nz": "./node_modules/moment/locale/en-nz.js", + "./en-nz.js": "./node_modules/moment/locale/en-nz.js", + "./eo": "./node_modules/moment/locale/eo.js", + "./eo.js": "./node_modules/moment/locale/eo.js", + "./es": "./node_modules/moment/locale/es.js", + "./es-do": "./node_modules/moment/locale/es-do.js", + "./es-do.js": "./node_modules/moment/locale/es-do.js", + "./es-us": "./node_modules/moment/locale/es-us.js", + "./es-us.js": "./node_modules/moment/locale/es-us.js", + "./es.js": "./node_modules/moment/locale/es.js", + "./et": "./node_modules/moment/locale/et.js", + "./et.js": "./node_modules/moment/locale/et.js", + "./eu": "./node_modules/moment/locale/eu.js", + "./eu.js": "./node_modules/moment/locale/eu.js", + "./fa": "./node_modules/moment/locale/fa.js", + "./fa.js": "./node_modules/moment/locale/fa.js", + "./fi": "./node_modules/moment/locale/fi.js", + "./fi.js": "./node_modules/moment/locale/fi.js", + "./fo": "./node_modules/moment/locale/fo.js", + "./fo.js": "./node_modules/moment/locale/fo.js", + "./fr": "./node_modules/moment/locale/fr.js", + "./fr-ca": "./node_modules/moment/locale/fr-ca.js", + "./fr-ca.js": "./node_modules/moment/locale/fr-ca.js", + "./fr-ch": "./node_modules/moment/locale/fr-ch.js", + "./fr-ch.js": "./node_modules/moment/locale/fr-ch.js", + "./fr.js": "./node_modules/moment/locale/fr.js", + "./fy": "./node_modules/moment/locale/fy.js", + "./fy.js": "./node_modules/moment/locale/fy.js", + "./ga": "./node_modules/moment/locale/ga.js", + "./ga.js": "./node_modules/moment/locale/ga.js", + "./gd": "./node_modules/moment/locale/gd.js", + "./gd.js": "./node_modules/moment/locale/gd.js", + "./gl": "./node_modules/moment/locale/gl.js", + "./gl.js": "./node_modules/moment/locale/gl.js", + "./gom-latn": "./node_modules/moment/locale/gom-latn.js", + "./gom-latn.js": "./node_modules/moment/locale/gom-latn.js", + "./gu": "./node_modules/moment/locale/gu.js", + "./gu.js": "./node_modules/moment/locale/gu.js", + "./he": "./node_modules/moment/locale/he.js", + "./he.js": "./node_modules/moment/locale/he.js", + "./hi": "./node_modules/moment/locale/hi.js", + "./hi.js": "./node_modules/moment/locale/hi.js", + "./hr": "./node_modules/moment/locale/hr.js", + "./hr.js": "./node_modules/moment/locale/hr.js", + "./hu": "./node_modules/moment/locale/hu.js", + "./hu.js": "./node_modules/moment/locale/hu.js", + "./hy-am": "./node_modules/moment/locale/hy-am.js", + "./hy-am.js": "./node_modules/moment/locale/hy-am.js", + "./id": "./node_modules/moment/locale/id.js", + "./id.js": "./node_modules/moment/locale/id.js", + "./is": "./node_modules/moment/locale/is.js", + "./is.js": "./node_modules/moment/locale/is.js", + "./it": "./node_modules/moment/locale/it.js", + "./it-ch": "./node_modules/moment/locale/it-ch.js", + "./it-ch.js": "./node_modules/moment/locale/it-ch.js", + "./it.js": "./node_modules/moment/locale/it.js", + "./ja": "./node_modules/moment/locale/ja.js", + "./ja.js": "./node_modules/moment/locale/ja.js", + "./jv": "./node_modules/moment/locale/jv.js", + "./jv.js": "./node_modules/moment/locale/jv.js", + "./ka": "./node_modules/moment/locale/ka.js", + "./ka.js": "./node_modules/moment/locale/ka.js", + "./kk": "./node_modules/moment/locale/kk.js", + "./kk.js": "./node_modules/moment/locale/kk.js", + "./km": "./node_modules/moment/locale/km.js", + "./km.js": "./node_modules/moment/locale/km.js", + "./kn": "./node_modules/moment/locale/kn.js", + "./kn.js": "./node_modules/moment/locale/kn.js", + "./ko": "./node_modules/moment/locale/ko.js", + "./ko.js": "./node_modules/moment/locale/ko.js", + "./ku": "./node_modules/moment/locale/ku.js", + "./ku.js": "./node_modules/moment/locale/ku.js", + "./ky": "./node_modules/moment/locale/ky.js", + "./ky.js": "./node_modules/moment/locale/ky.js", + "./lb": "./node_modules/moment/locale/lb.js", + "./lb.js": "./node_modules/moment/locale/lb.js", + "./lo": "./node_modules/moment/locale/lo.js", + "./lo.js": "./node_modules/moment/locale/lo.js", + "./lt": "./node_modules/moment/locale/lt.js", + "./lt.js": "./node_modules/moment/locale/lt.js", + "./lv": "./node_modules/moment/locale/lv.js", + "./lv.js": "./node_modules/moment/locale/lv.js", + "./me": "./node_modules/moment/locale/me.js", + "./me.js": "./node_modules/moment/locale/me.js", + "./mi": "./node_modules/moment/locale/mi.js", + "./mi.js": "./node_modules/moment/locale/mi.js", + "./mk": "./node_modules/moment/locale/mk.js", + "./mk.js": "./node_modules/moment/locale/mk.js", + "./ml": "./node_modules/moment/locale/ml.js", + "./ml.js": "./node_modules/moment/locale/ml.js", + "./mn": "./node_modules/moment/locale/mn.js", + "./mn.js": "./node_modules/moment/locale/mn.js", + "./mr": "./node_modules/moment/locale/mr.js", + "./mr.js": "./node_modules/moment/locale/mr.js", + "./ms": "./node_modules/moment/locale/ms.js", + "./ms-my": "./node_modules/moment/locale/ms-my.js", + "./ms-my.js": "./node_modules/moment/locale/ms-my.js", + "./ms.js": "./node_modules/moment/locale/ms.js", + "./mt": "./node_modules/moment/locale/mt.js", + "./mt.js": "./node_modules/moment/locale/mt.js", + "./my": "./node_modules/moment/locale/my.js", + "./my.js": "./node_modules/moment/locale/my.js", + "./nb": "./node_modules/moment/locale/nb.js", + "./nb.js": "./node_modules/moment/locale/nb.js", + "./ne": "./node_modules/moment/locale/ne.js", + "./ne.js": "./node_modules/moment/locale/ne.js", + "./nl": "./node_modules/moment/locale/nl.js", + "./nl-be": "./node_modules/moment/locale/nl-be.js", + "./nl-be.js": "./node_modules/moment/locale/nl-be.js", + "./nl.js": "./node_modules/moment/locale/nl.js", + "./nn": "./node_modules/moment/locale/nn.js", + "./nn.js": "./node_modules/moment/locale/nn.js", + "./pa-in": "./node_modules/moment/locale/pa-in.js", + "./pa-in.js": "./node_modules/moment/locale/pa-in.js", + "./pl": "./node_modules/moment/locale/pl.js", + "./pl.js": "./node_modules/moment/locale/pl.js", + "./pt": "./node_modules/moment/locale/pt.js", + "./pt-br": "./node_modules/moment/locale/pt-br.js", + "./pt-br.js": "./node_modules/moment/locale/pt-br.js", + "./pt.js": "./node_modules/moment/locale/pt.js", + "./ro": "./node_modules/moment/locale/ro.js", + "./ro.js": "./node_modules/moment/locale/ro.js", + "./ru": "./node_modules/moment/locale/ru.js", + "./ru.js": "./node_modules/moment/locale/ru.js", + "./sd": "./node_modules/moment/locale/sd.js", + "./sd.js": "./node_modules/moment/locale/sd.js", + "./se": "./node_modules/moment/locale/se.js", + "./se.js": "./node_modules/moment/locale/se.js", + "./si": "./node_modules/moment/locale/si.js", + "./si.js": "./node_modules/moment/locale/si.js", + "./sk": "./node_modules/moment/locale/sk.js", + "./sk.js": "./node_modules/moment/locale/sk.js", + "./sl": "./node_modules/moment/locale/sl.js", + "./sl.js": "./node_modules/moment/locale/sl.js", + "./sq": "./node_modules/moment/locale/sq.js", + "./sq.js": "./node_modules/moment/locale/sq.js", + "./sr": "./node_modules/moment/locale/sr.js", + "./sr-cyrl": "./node_modules/moment/locale/sr-cyrl.js", + "./sr-cyrl.js": "./node_modules/moment/locale/sr-cyrl.js", + "./sr.js": "./node_modules/moment/locale/sr.js", + "./ss": "./node_modules/moment/locale/ss.js", + "./ss.js": "./node_modules/moment/locale/ss.js", + "./sv": "./node_modules/moment/locale/sv.js", + "./sv.js": "./node_modules/moment/locale/sv.js", + "./sw": "./node_modules/moment/locale/sw.js", + "./sw.js": "./node_modules/moment/locale/sw.js", + "./ta": "./node_modules/moment/locale/ta.js", + "./ta.js": "./node_modules/moment/locale/ta.js", + "./te": "./node_modules/moment/locale/te.js", + "./te.js": "./node_modules/moment/locale/te.js", + "./tet": "./node_modules/moment/locale/tet.js", + "./tet.js": "./node_modules/moment/locale/tet.js", + "./tg": "./node_modules/moment/locale/tg.js", + "./tg.js": "./node_modules/moment/locale/tg.js", + "./th": "./node_modules/moment/locale/th.js", + "./th.js": "./node_modules/moment/locale/th.js", + "./tl-ph": "./node_modules/moment/locale/tl-ph.js", + "./tl-ph.js": "./node_modules/moment/locale/tl-ph.js", + "./tlh": "./node_modules/moment/locale/tlh.js", + "./tlh.js": "./node_modules/moment/locale/tlh.js", + "./tr": "./node_modules/moment/locale/tr.js", + "./tr.js": "./node_modules/moment/locale/tr.js", + "./tzl": "./node_modules/moment/locale/tzl.js", + "./tzl.js": "./node_modules/moment/locale/tzl.js", + "./tzm": "./node_modules/moment/locale/tzm.js", + "./tzm-latn": "./node_modules/moment/locale/tzm-latn.js", + "./tzm-latn.js": "./node_modules/moment/locale/tzm-latn.js", + "./tzm.js": "./node_modules/moment/locale/tzm.js", + "./ug-cn": "./node_modules/moment/locale/ug-cn.js", + "./ug-cn.js": "./node_modules/moment/locale/ug-cn.js", + "./uk": "./node_modules/moment/locale/uk.js", + "./uk.js": "./node_modules/moment/locale/uk.js", + "./ur": "./node_modules/moment/locale/ur.js", + "./ur.js": "./node_modules/moment/locale/ur.js", + "./uz": "./node_modules/moment/locale/uz.js", + "./uz-latn": "./node_modules/moment/locale/uz-latn.js", + "./uz-latn.js": "./node_modules/moment/locale/uz-latn.js", + "./uz.js": "./node_modules/moment/locale/uz.js", + "./vi": "./node_modules/moment/locale/vi.js", + "./vi.js": "./node_modules/moment/locale/vi.js", + "./x-pseudo": "./node_modules/moment/locale/x-pseudo.js", + "./x-pseudo.js": "./node_modules/moment/locale/x-pseudo.js", + "./yo": "./node_modules/moment/locale/yo.js", + "./yo.js": "./node_modules/moment/locale/yo.js", + "./zh-cn": "./node_modules/moment/locale/zh-cn.js", + "./zh-cn.js": "./node_modules/moment/locale/zh-cn.js", + "./zh-hk": "./node_modules/moment/locale/zh-hk.js", + "./zh-hk.js": "./node_modules/moment/locale/zh-hk.js", + "./zh-tw": "./node_modules/moment/locale/zh-tw.js", + "./zh-tw.js": "./node_modules/moment/locale/zh-tw.js" +}; + + +function webpackContext(req) { + var id = webpackContextResolve(req); + return __webpack_require__(id); +} +function webpackContextResolve(req) { + if(!__webpack_require__.o(map, req)) { + var e = new Error("Cannot find module '" + req + "'"); + e.code = 'MODULE_NOT_FOUND'; + throw e; + } + return map[req]; } +webpackContext.keys = function webpackContextKeys() { + return Object.keys(map); +}; +webpackContext.resolve = webpackContextResolve; +module.exports = webpackContext; +webpackContext.id = "./node_modules/moment/locale sync recursive ^\\.\\/.*$"; \ No newline at end of file diff --git a/public/avored-admin/js/app.js b/public/avored-admin/js/app.js index 7527426d7..9c525820f 100644 --- a/public/avored-admin/js/app.js +++ b/public/avored-admin/js/app.js @@ -337,7 +337,7 @@ var presetPalettes = {}; exports.presetPalettes = presetPalettes; Object.keys(presetPrimaryColors).forEach(function (key) { presetPalettes[key] = generate_1.default(presetPrimaryColors[key]); - presetPalettes[key].primary = presetPalettes[key][6]; + presetPalettes[key].primary = presetPalettes[key][5]; }); var red = presetPalettes.red; exports.red = red; @@ -345,6 +345,8 @@ var volcano = presetPalettes.volcano; exports.volcano = volcano; var gold = presetPalettes.gold; exports.gold = gold; +var orange = presetPalettes.orange; +exports.orange = orange; var yellow = presetPalettes.yellow; exports.yellow = yellow; var lime = presetPalettes.lime; @@ -3441,6 +3443,10 @@ var _vueTypes = __webpack_require__(/*! ./vue-types */ "./node_modules/ant-desig var _vueTypes2 = _interopRequireDefault(_vueTypes); +var _base = __webpack_require__(/*! ../base */ "./node_modules/ant-design-vue/lib/base/index.js"); + +var _base2 = _interopRequireDefault(_base); + function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } exports['default'] = { @@ -3497,9 +3503,9 @@ exports['default'] = { this.componentEl = el; this.container.appendChild(el); } - if (!this._component) { - this._component = new _vue2['default']({ + var V = _base2['default'].Vue || _vue2['default']; + this._component = new V({ el: el, parent: self.parent, data: { @@ -4156,6 +4162,134 @@ exports['default'] = KeyCode; /***/ }), +/***/ "./node_modules/ant-design-vue/lib/_util/antDirective.js": +/*!***************************************************************!*\ + !*** ./node_modules/ant-design-vue/lib/_util/antDirective.js ***! + \***************************************************************/ +/*! no static exports found */ +/***/ (function(module, exports, __webpack_require__) { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", { + value: true +}); + +var _vueRef = __webpack_require__(/*! vue-ref */ "./node_modules/vue-ref/index.js"); + +var _vueRef2 = _interopRequireDefault(_vueRef); + +var _antInputDirective = __webpack_require__(/*! ./antInputDirective */ "./node_modules/ant-design-vue/lib/_util/antInputDirective.js"); + +var _FormDecoratorDirective = __webpack_require__(/*! ./FormDecoratorDirective */ "./node_modules/ant-design-vue/lib/_util/FormDecoratorDirective.js"); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } + +exports['default'] = { + install: function install(Vue) { + Vue.use(_vueRef2['default'], { name: 'ant-ref' }); + (0, _antInputDirective.antInput)(Vue); + (0, _FormDecoratorDirective.antDecorator)(Vue); + } +}; + +/***/ }), + +/***/ "./node_modules/ant-design-vue/lib/_util/antInputDirective.js": +/*!********************************************************************!*\ + !*** ./node_modules/ant-design-vue/lib/_util/antInputDirective.js ***! + \********************************************************************/ +/*! no static exports found */ +/***/ (function(module, exports, __webpack_require__) { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.antInput = antInput; +/** + * Not type checking this file because flow doesn't like attaching + * properties to Elements. + */ + +var inBrowser = exports.inBrowser = typeof window !== 'undefined'; +var UA = exports.UA = inBrowser && window.navigator.userAgent.toLowerCase(); +var isIE9 = exports.isIE9 = UA && UA.indexOf('msie 9.0') > 0; +function makeMap(str, expectsLowerCase) { + var map = Object.create(null); + var list = str.split(','); + for (var i = 0; i < list.length; i++) { + map[list[i]] = true; + } + return expectsLowerCase ? function (val) { + return map[val.toLowerCase()]; + } : function (val) { + return map[val]; + }; +} +var isTextInputType = makeMap('text,number,password,search,email,tel,url'); + +function onCompositionStart(e) { + e.target.composing = true; +} + +function onCompositionEnd(e) { + // prevent triggering an input event for no reason + if (!e.target.composing) return; + e.target.composing = false; + trigger(e.target, 'input'); +} + +function trigger(el, type) { + var e = document.createEvent('HTMLEvents'); + e.initEvent(type, true, true); + el.dispatchEvent(e); +} + +/* istanbul ignore if */ +if (isIE9) { + // http://www.matts411.com/post/internet-explorer-9-oninput/ + document.addEventListener('selectionchange', function () { + var el = document.activeElement; + if (el && el.vmodel) { + trigger(el, 'input'); + } + }); +} + +function antInput(Vue) { + return Vue.directive('ant-input', { + inserted: function inserted(el, binding, vnode) { + if (vnode.tag === 'textarea' || isTextInputType(el.type)) { + if (!binding.modifiers || !binding.modifiers.lazy) { + el.addEventListener('compositionstart', onCompositionStart); + el.addEventListener('compositionend', onCompositionEnd); + // Safari < 10.2 & UIWebView doesn't fire compositionend when + // switching focus before confirming composition choice + // this also fixes the issue where some browsers e.g. iOS Chrome + // fires "change" instead of "input" on autocomplete. + el.addEventListener('change', onCompositionEnd); + /* istanbul ignore if */ + if (isIE9) { + el.vmodel = true; + } + } + } + } + }); +} + +exports['default'] = { + install: function install(Vue) { + antInput(Vue); + } +}; + +/***/ }), + /***/ "./node_modules/ant-design-vue/lib/_util/createChainedFunction.js": /*!************************************************************************!*\ !*** ./node_modules/ant-design-vue/lib/_util/createChainedFunction.js ***! @@ -4545,6 +4679,35 @@ exports['default'] = cssAnimation; /***/ }), +/***/ "./node_modules/ant-design-vue/lib/_util/env.js": +/*!******************************************************!*\ + !*** ./node_modules/ant-design-vue/lib/_util/env.js ***! + \******************************************************/ +/*! no static exports found */ +/***/ (function(module, exports, __webpack_require__) { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", { + value: true +}); +// Browser environment sniffing +var inBrowser = exports.inBrowser = typeof window !== 'undefined'; +var inWeex = exports.inWeex = typeof WXEnvironment !== 'undefined' && !!WXEnvironment.platform; +var weexPlatform = exports.weexPlatform = inWeex && WXEnvironment.platform.toLowerCase(); +var UA = exports.UA = inBrowser && window.navigator.userAgent.toLowerCase(); +var isIE = exports.isIE = UA && /msie|trident/.test(UA); +var isIE9 = exports.isIE9 = UA && UA.indexOf('msie 9.0') > 0; +var isEdge = exports.isEdge = UA && UA.indexOf('edge/') > 0; +var isAndroid = exports.isAndroid = UA && UA.indexOf('android') > 0 || weexPlatform === 'android'; +var isIOS = exports.isIOS = UA && /iphone|ipad|ipod|ios/.test(UA) || weexPlatform === 'ios'; +var isChrome = exports.isChrome = UA && /chrome\/\d+/.test(UA) && !isEdge; +var isPhantomJS = exports.isPhantomJS = UA && /phantomjs/.test(UA); +var isFF = exports.isFF = UA && UA.match(/firefox\/(\d+)/); + +/***/ }), + /***/ "./node_modules/ant-design-vue/lib/_util/getRequestAnimationFrame.js": /*!***************************************************************************!*\ !*** ./node_modules/ant-design-vue/lib/_util/getRequestAnimationFrame.js ***! @@ -4722,31 +4885,6 @@ exports['default'] = getTransitionProps; /***/ }), -/***/ "./node_modules/ant-design-vue/lib/_util/isFlexSupported.js": -/*!******************************************************************!*\ - !*** ./node_modules/ant-design-vue/lib/_util/isFlexSupported.js ***! - \******************************************************************/ -/*! no static exports found */ -/***/ (function(module, exports, __webpack_require__) { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", { - value: true -}); -exports['default'] = isFlexSupported; -function isFlexSupported() { - if (typeof window !== 'undefined' && window.document && window.document.documentElement) { - var documentElement = window.document.documentElement; - - return 'flex' in documentElement.style || 'webkitFlex' in documentElement.style || 'Flex' in documentElement.style || 'msFlex' in documentElement.style; - } - return false; -} - -/***/ }), - /***/ "./node_modules/ant-design-vue/lib/_util/isNumeric.js": /*!************************************************************!*\ !*** ./node_modules/ant-design-vue/lib/_util/isNumeric.js ***! @@ -4789,6 +4927,10 @@ var _raf = __webpack_require__(/*! raf */ "./node_modules/raf/index.js"); var _raf2 = _interopRequireDefault(_raf); +var _vue = __webpack_require__(/*! vue */ "./node_modules/vue/dist/vue.common.js"); + +var _vue2 = _interopRequireDefault(_vue); + function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } function animate(node, show, done) { @@ -4844,7 +4986,9 @@ function animate(node, show, done) { var animation = { enter: function enter(node, done) { - return animate(node, true, done); + _vue2['default'].nextTick(function () { + animate(node, true, done); + }); }, leave: function leave(node, done) { return animate(node, false, done); @@ -4868,20 +5012,20 @@ exports['default'] = animation; Object.defineProperty(exports, "__esModule", { value: true }); -exports.getAllChildren = exports.getAllProps = exports.getSlots = exports.camelize = exports.isValidElement = exports.initDefaultProps = exports.parseStyleText = exports.getValueByProp = exports.getAttrs = exports.getKey = exports.getPropsData = exports.slotHasProp = exports.getSlotOptions = exports.getComponentFromProp = exports.getOptionProps = exports.filterProps = exports.hasProp = undefined; +exports.getAllChildren = exports.getAllProps = exports.getSlot = exports.getSlots = exports.camelize = exports.isValidElement = exports.initDefaultProps = exports.parseStyleText = exports.getValueByProp = exports.getAttrs = exports.getKey = exports.getPropsData = exports.slotHasProp = exports.getSlotOptions = exports.getComponentFromProp = exports.getOptionProps = exports.filterProps = exports.hasProp = undefined; var _typeof2 = __webpack_require__(/*! babel-runtime/helpers/typeof */ "./node_modules/babel-runtime/helpers/typeof.js"); var _typeof3 = _interopRequireDefault(_typeof2); -var _extends2 = __webpack_require__(/*! babel-runtime/helpers/extends */ "./node_modules/babel-runtime/helpers/extends.js"); - -var _extends3 = _interopRequireDefault(_extends2); - var _slicedToArray2 = __webpack_require__(/*! babel-runtime/helpers/slicedToArray */ "./node_modules/babel-runtime/helpers/slicedToArray.js"); var _slicedToArray3 = _interopRequireDefault(_slicedToArray2); +var _extends2 = __webpack_require__(/*! babel-runtime/helpers/extends */ "./node_modules/babel-runtime/helpers/extends.js"); + +var _extends3 = _interopRequireDefault(_extends2); + exports.getEvents = getEvents; exports.getClass = getClass; exports.getStyle = getStyle; @@ -4951,6 +5095,11 @@ var filterProps = function filterProps(props) { }); return res; }; + +var getScopedSlots = function getScopedSlots(ele) { + return ele.data && ele.data.scopedSlots || {}; +}; + var getSlots = function getSlots(ele) { var componentOptions = ele.componentOptions || {}; if (ele.$vnode) { @@ -4965,8 +5114,15 @@ var getSlots = function getSlots(ele) { slots[name].push(child); } }); - return slots; + return (0, _extends3['default'])({}, slots, getScopedSlots(ele)); +}; +var getSlot = function getSlot(self) { + var name = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 'default'; + var options = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {}; + + return self.$scopedSlots && self.$scopedSlots[name] && self.$scopedSlots[name](options) || self.$slots[name] || []; }; + var getAllChildren = function getAllChildren(ele) { var componentOptions = ele.componentOptions || {}; if (ele.$vnode) { @@ -5048,17 +5204,24 @@ var getComponentFromProp = function getComponentFromProp(instance, prop) { if (temp !== undefined) { return typeof temp === 'function' && execute ? temp(h, options) : temp; } - return instance.$slots[prop] || instance.$scopedSlots[prop] && execute && instance.$scopedSlots[prop](options) || instance.$scopedSlots[prop] || undefined; + return instance.$scopedSlots[prop] && execute && instance.$scopedSlots[prop](options) || instance.$scopedSlots[prop] || instance.$slots[prop] || undefined; } else { var _h = instance.context.$createElement; var _temp = getPropsData(instance)[prop]; if (_temp !== undefined) { return typeof _temp === 'function' && execute ? _temp(_h, options) : _temp; } + var slotScope = getScopedSlots(instance)[prop]; + if (slotScope !== undefined) { + return typeof slotScope === 'function' && execute ? slotScope(_h, options) : slotScope; + } var slotsProp = []; var componentOptions = instance.componentOptions || {}; (componentOptions.children || []).forEach(function (child) { if (child.data && child.data.slot === prop) { + if (child.data.attrs) { + delete child.data.attrs.slot; + } if (child.tag === 'template') { slotsProp.push(child.children); } else { @@ -5251,6 +5414,7 @@ exports.initDefaultProps = initDefaultProps; exports.isValidElement = isValidElement; exports.camelize = camelize; exports.getSlots = getSlots; +exports.getSlot = getSlot; exports.getAllProps = getAllProps; exports.getAllChildren = getAllChildren; exports['default'] = hasProp; @@ -5404,9 +5568,9 @@ function wrapperRaf(callback) { return myId; } -wrapperRaf.cancel = function (id) { - _raf2['default'].cancel(ids[id]); - delete ids[id]; +wrapperRaf.cancel = function (pid) { + _raf2['default'].cancel(ids[pid]); + delete ids[pid]; }; /***/ }), @@ -5779,6 +5943,77 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'd /***/ }), +/***/ "./node_modules/ant-design-vue/lib/_util/styleChecker.js": +/*!***************************************************************!*\ + !*** ./node_modules/ant-design-vue/lib/_util/styleChecker.js ***! + \***************************************************************/ +/*! no static exports found */ +/***/ (function(module, exports, __webpack_require__) { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", { + value: true +}); +function isStyleSupport(styleName) { + if (typeof window !== 'undefined' && window.document && window.document.documentElement) { + var styleNameList = Array.isArray(styleName) ? styleName : [styleName]; + var documentElement = window.document.documentElement; + + + return styleNameList.some(function (name) { + return name in documentElement.style; + }); + } + return false; +} + +var isFlexSupported = exports.isFlexSupported = isStyleSupport(['flex', 'webkitFlex', 'Flex', 'msFlex']); + +exports['default'] = isStyleSupport; + +/***/ }), + +/***/ "./node_modules/ant-design-vue/lib/_util/switchScrollingEffect.js": +/*!************************************************************************!*\ + !*** ./node_modules/ant-design-vue/lib/_util/switchScrollingEffect.js ***! + \************************************************************************/ +/*! no static exports found */ +/***/ (function(module, exports, __webpack_require__) { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", { + value: true +}); + +var _getScrollBarSize = __webpack_require__(/*! ./getScrollBarSize */ "./node_modules/ant-design-vue/lib/_util/getScrollBarSize.js"); + +var _getScrollBarSize2 = _interopRequireDefault(_getScrollBarSize); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } + +exports['default'] = function (close) { + var bodyIsOverflowing = document.body.scrollHeight > (window.innerHeight || document.documentElement.clientHeight) && window.innerWidth > document.body.offsetWidth; + if (!bodyIsOverflowing) { + return; + } + if (close) { + document.body.style.position = ''; + document.body.style.width = ''; + return; + } + var scrollBarSize = (0, _getScrollBarSize2['default'])(); + if (scrollBarSize) { + document.body.style.position = 'relative'; + document.body.style.width = 'calc(100% - ' + scrollBarSize + 'px)'; + } +}; + +/***/ }), + /***/ "./node_modules/ant-design-vue/lib/_util/vnode.js": /*!********************************************************!*\ !*** ./node_modules/ant-design-vue/lib/_util/vnode.js ***! @@ -5807,6 +6042,10 @@ exports.cloneElement = cloneElement; var _propsUtil = __webpack_require__(/*! ./props-util */ "./node_modules/ant-design-vue/lib/_util/props-util.js"); +var _classnames = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js"); + +var _classnames2 = _interopRequireDefault(_classnames); + function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } function cloneVNode(vnode, deep) { @@ -5904,6 +6143,10 @@ function cloneElement(n) { data['class'].split(' ').forEach(function (c) { cls[c.trim()] = true; }); + } else if (Array.isArray(data['class'])) { + (0, _classnames2['default'])(data['class']).split(' ').forEach(function (c) { + cls[c.trim()] = true; + }); } else { cls = (0, _extends3['default'])({}, data['class'], cls); } @@ -5935,6 +6178,10 @@ function cloneElement(n) { node.data.on = (0, _extends3['default'])({}, node.data.on || {}, on); } + if (node.fnOptions && node.fnOptions.functional) { + node.data.on = (0, _extends3['default'])({}, node.data.on || {}, on); + } + if (key !== undefined) { node.key = key; node.data.key = key; @@ -6475,21 +6722,50 @@ exports.warn = warn; Object.defineProperty(exports, "__esModule", { value: true }); +exports.warning = warning; +exports.note = note; +exports.resetWarned = resetWarned; +exports.call = call; +exports.warningOnce = warningOnce; +exports.noteOnce = noteOnce; +/* eslint-disable no-console */ +var warned = {}; -var _warning = __webpack_require__(/*! warning */ "./node_modules/warning/browser.js"); - -var _warning2 = _interopRequireDefault(_warning); +function warning(valid, message) { + // Support uglify + if ( true && !valid && console !== undefined) { + console.error('Warning: ' + message); + } +} -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } +function note(valid, message) { + // Support uglify + if ( true && !valid && console !== undefined) { + console.warn('Note: ' + message); + } +} -var warned = {}; +function resetWarned() { + warned = {}; +} -exports['default'] = function (valid, message) { +function call(method, valid, message) { if (!valid && !warned[message]) { - (0, _warning2['default'])(false, message); + method(false, message); warned[message] = true; } -}; +} + +function warningOnce(valid, message) { + call(warning, valid, message); +} + +function noteOnce(valid, message) { + call(note, valid, message); +} + +exports['default'] = warningOnce; +/* eslint-enable */ /***/ }), @@ -6672,6 +6948,37 @@ exports['default'] = { /***/ }), +/***/ "./node_modules/ant-design-vue/lib/base/index.js": +/*!*******************************************************!*\ + !*** ./node_modules/ant-design-vue/lib/base/index.js ***! + \*******************************************************/ +/*! no static exports found */ +/***/ (function(module, exports, __webpack_require__) { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", { + value: true +}); + +var _antDirective = __webpack_require__(/*! ../_util/antDirective */ "./node_modules/ant-design-vue/lib/_util/antDirective.js"); + +var _antDirective2 = _interopRequireDefault(_antDirective); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } + +var base = {}; +var install = function install(Vue) { + base.Vue = Vue; + Vue.use(_antDirective2['default']); +}; +base.install = install; + +exports['default'] = base; + +/***/ }), + /***/ "./node_modules/ant-design-vue/lib/breadcrumb/Breadcrumb.js": /*!******************************************************************!*\ !*** ./node_modules/ant-design-vue/lib/breadcrumb/Breadcrumb.js ***! @@ -6698,6 +7005,8 @@ var _warning = __webpack_require__(/*! ../_util/warning */ "./node_modules/ant-d var _warning2 = _interopRequireDefault(_warning); +var _configProvider = __webpack_require__(/*! ../config-provider */ "./node_modules/ant-design-vue/lib/config-provider/index.js"); + var _BreadcrumbItem = __webpack_require__(/*! ./BreadcrumbItem */ "./node_modules/ant-design-vue/lib/breadcrumb/BreadcrumbItem.js"); var _BreadcrumbItem2 = _interopRequireDefault(_BreadcrumbItem); @@ -6710,7 +7019,7 @@ var Route = _vueTypes2['default'].shape({ }).loose; var BreadcrumbProps = { - prefixCls: _vueTypes2['default'].string.def('ant-breadcrumb'), + prefixCls: _vueTypes2['default'].string, routes: _vueTypes2['default'].arrayOf(Route), params: _vueTypes2['default'].any, separator: _vueTypes2['default'].any, @@ -6731,6 +7040,11 @@ function getBreadcrumbName(route, params) { exports['default'] = { name: 'ABreadcrumb', props: BreadcrumbProps, + inject: { + configProvider: { 'default': function _default() { + return _configProvider.ConfigConsumerProps; + } } + }, methods: { defaultItemRender: function defaultItemRender(_ref) { var route = _ref.route, @@ -6754,13 +7068,16 @@ exports['default'] = { var h = arguments[0]; var crumbs = void 0; - var prefixCls = this.prefixCls, + var customizePrefixCls = this.prefixCls, routes = this.routes, _params = this.params, params = _params === undefined ? {} : _params, $slots = this.$slots, $scopedSlots = this.$scopedSlots; + var getPrefixCls = this.configProvider.getPrefixCls; + var prefixCls = getPrefixCls('breadcrumb', customizePrefixCls); + var children = (0, _propsUtil.filterEmpty)($slots['default']); var separator = (0, _propsUtil.getComponentFromProp)(this, 'separator'); if (routes && routes.length > 0) { @@ -6822,21 +7139,31 @@ var _vueTypes2 = _interopRequireDefault(_vueTypes); var _propsUtil = __webpack_require__(/*! ../_util/props-util */ "./node_modules/ant-design-vue/lib/_util/props-util.js"); +var _configProvider = __webpack_require__(/*! ../config-provider */ "./node_modules/ant-design-vue/lib/config-provider/index.js"); + function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } exports['default'] = { name: 'ABreadcrumbItem', __ANT_BREADCRUMB_ITEM: true, props: { - prefixCls: _vueTypes2['default'].string.def('ant-breadcrumb'), + prefixCls: _vueTypes2['default'].string, href: _vueTypes2['default'].string, separator: _vueTypes2['default'].any }, + inject: { + configProvider: { 'default': function _default() { + return _configProvider.ConfigConsumerProps; + } } + }, render: function render() { var h = arguments[0]; - var prefixCls = this.prefixCls, + var customizePrefixCls = this.prefixCls, $slots = this.$slots; + var getPrefixCls = this.configProvider.getPrefixCls; + var prefixCls = getPrefixCls('breadcrumb', customizePrefixCls); + var children = $slots['default']; var link = void 0; if ((0, _propsUtil.hasProp)(this, 'href')) { @@ -6887,12 +7214,17 @@ var _BreadcrumbItem = __webpack_require__(/*! ./BreadcrumbItem */ "./node_module var _BreadcrumbItem2 = _interopRequireDefault(_BreadcrumbItem); +var _base = __webpack_require__(/*! ../base */ "./node_modules/ant-design-vue/lib/base/index.js"); + +var _base2 = _interopRequireDefault(_base); + function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } _Breadcrumb2['default'].Item = _BreadcrumbItem2['default']; /* istanbul ignore next */ _Breadcrumb2['default'].install = function (Vue) { + Vue.use(_base2['default']); Vue.component(_Breadcrumb2['default'].name, _Breadcrumb2['default']); Vue.component(_BreadcrumbItem2['default'].name, _BreadcrumbItem2['default']); }; @@ -6922,13 +7254,16 @@ var _defineProperty3 = _interopRequireDefault(_defineProperty2); var _propsUtil = __webpack_require__(/*! ../_util/props-util */ "./node_modules/ant-design-vue/lib/_util/props-util.js"); +var _vueTypes = __webpack_require__(/*! ../_util/vue-types */ "./node_modules/ant-design-vue/lib/_util/vue-types/index.js"); + +var _vueTypes2 = _interopRequireDefault(_vueTypes); + +var _configProvider = __webpack_require__(/*! ../config-provider */ "./node_modules/ant-design-vue/lib/config-provider/index.js"); + function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } var ButtonGroupProps = { - prefixCls: { - 'default': 'ant-btn-group', - type: String - }, + prefixCls: _vueTypes2['default'].string, size: { validator: function validator(value) { return ['small', 'large', 'default'].includes(value); @@ -6939,6 +7274,11 @@ exports.ButtonGroupProps = ButtonGroupProps; exports['default'] = { name: 'AButtonGroup', props: ButtonGroupProps, + inject: { + configProvider: { 'default': function _default() { + return _configProvider.ConfigConsumerProps; + } } + }, data: function data() { return { sizeMap: { @@ -6947,24 +7287,31 @@ exports['default'] = { } }; }, - - computed: { - classes: function classes() { - var _ref; - - var prefixCls = this.prefixCls, - size = this.size, - sizeMap = this.sizeMap; - - var sizeCls = sizeMap[size] || ''; - return [(_ref = {}, (0, _defineProperty3['default'])(_ref, '' + prefixCls, true), (0, _defineProperty3['default'])(_ref, prefixCls + '-' + sizeCls, sizeCls), _ref)]; - } - }, render: function render() { + var _classes; + var h = arguments[0]; - var classes = this.classes, + var customizePrefixCls = this.prefixCls, + size = this.size, + sizeMap = this.sizeMap, $slots = this.$slots; + var getPrefixCls = this.configProvider.getPrefixCls; + var prefixCls = getPrefixCls('btn-group', customizePrefixCls); + + // large => lg + // small => sm + var sizeCls = ''; + switch (size) { + case 'large': + sizeCls = 'lg'; + break; + case 'small': + sizeCls = 'sm'; + default: + break; + } + var classes = (_classes = {}, (0, _defineProperty3['default'])(_classes, '' + prefixCls, true), (0, _defineProperty3['default'])(_classes, prefixCls + '-' + sizeCls, sizeCls), _classes); return h( 'div', { 'class': classes }, @@ -7015,24 +7362,29 @@ var _buttonTypes2 = _interopRequireDefault(_buttonTypes); var _propsUtil = __webpack_require__(/*! ../_util/props-util */ "./node_modules/ant-design-vue/lib/_util/props-util.js"); +var _configProvider = __webpack_require__(/*! ../config-provider */ "./node_modules/ant-design-vue/lib/config-provider/index.js"); + function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } var rxTwoCNChar = /^[\u4e00-\u9fa5]{2}$/; var isTwoCNChar = rxTwoCNChar.test.bind(rxTwoCNChar); - var props = (0, _buttonTypes2['default'])(); exports['default'] = { name: 'AButton', inheritAttrs: false, __ANT_BUTTON: true, props: props, + inject: { + configProvider: { 'default': function _default() { + return _configProvider.ConfigConsumerProps; + } } + }, data: function data() { return { sizeMap: { large: 'lg', small: 'sm' }, - // clicked: false, sLoading: !!this.loading, hasTwoCNChar: false }; @@ -7042,7 +7394,7 @@ exports['default'] = { classes: function classes() { var _ref; - var prefixCls = this.prefixCls, + var customizePrefixCls = this.prefixCls, type = this.type, shape = this.shape, size = this.size, @@ -7054,17 +7406,24 @@ exports['default'] = { icon = this.icon, $slots = this.$slots; + var getPrefixCls = this.configProvider.getPrefixCls; + var prefixCls = getPrefixCls('btn', customizePrefixCls); + var autoInsertSpace = this.configProvider.autoInsertSpaceInButton !== false; + var sizeCls = sizeMap[size] || ''; + var iconType = sLoading ? 'loading' : icon; var children = (0, _propsUtil.filterEmpty)($slots['default']); - return _ref = {}, (0, _defineProperty3['default'])(_ref, '' + prefixCls, true), (0, _defineProperty3['default'])(_ref, prefixCls + '-' + type, type), (0, _defineProperty3['default'])(_ref, prefixCls + '-' + shape, shape), (0, _defineProperty3['default'])(_ref, prefixCls + '-' + sizeCls, sizeCls), (0, _defineProperty3['default'])(_ref, prefixCls + '-icon-only', !children && children !== 0 && icon), (0, _defineProperty3['default'])(_ref, prefixCls + '-loading', sLoading), (0, _defineProperty3['default'])(_ref, prefixCls + '-background-ghost', ghost || type === 'ghost'), (0, _defineProperty3['default'])(_ref, prefixCls + '-two-chinese-chars', hasTwoCNChar), (0, _defineProperty3['default'])(_ref, prefixCls + '-block', block), _ref; + return _ref = {}, (0, _defineProperty3['default'])(_ref, '' + prefixCls, true), (0, _defineProperty3['default'])(_ref, prefixCls + '-' + type, type), (0, _defineProperty3['default'])(_ref, prefixCls + '-' + shape, shape), (0, _defineProperty3['default'])(_ref, prefixCls + '-' + sizeCls, sizeCls), (0, _defineProperty3['default'])(_ref, prefixCls + '-icon-only', children.length === 0 && iconType), (0, _defineProperty3['default'])(_ref, prefixCls + '-loading', sLoading), (0, _defineProperty3['default'])(_ref, prefixCls + '-background-ghost', ghost || type === 'ghost'), (0, _defineProperty3['default'])(_ref, prefixCls + '-two-chinese-chars', hasTwoCNChar && autoInsertSpace), (0, _defineProperty3['default'])(_ref, prefixCls + '-block', block), _ref; } }, watch: { - loading: function loading(val) { + loading: function loading(val, preVal) { var _this = this; - clearTimeout(this.delayTimeout); - if (typeof val !== 'boolean' && val && val.delay) { + if (preVal && typeof preVal !== 'boolean') { + clearTimeout(this.delayTimeout); + } + if (val && typeof val !== 'boolean' && val.delay) { this.delayTimeout = setTimeout(function () { _this.sLoading = !!val; }, val.delay); @@ -7136,7 +7495,8 @@ exports['default'] = { var _this2 = this; var h = arguments[0]; - var htmlType = this.htmlType, + var type = this.type, + htmlType = this.htmlType, classes = this.classes, icon = this.icon, disabled = this.disabled, @@ -7160,8 +7520,9 @@ exports['default'] = { attrs: { type: iconType } }) : null; var children = (0, _propsUtil.filterEmpty)($slots['default']); + var autoInsertSpace = this.configProvider.autoInsertSpaceInButton !== false; var kids = children.map(function (child) { - return _this2.insertSpace(child, _this2.isNeedInserted()); + return _this2.insertSpace(child, _this2.isNeedInserted() && autoInsertSpace); }); if ($attrs.href !== undefined) { @@ -7170,14 +7531,20 @@ exports['default'] = { (0, _babelHelperVueJsxMergeProps2['default'])([buttonProps, { ref: 'buttonNode' }]), [iconNode, kids] ); - } else { - return h(_wave2['default'], [h( - 'button', - (0, _babelHelperVueJsxMergeProps2['default'])([buttonProps, { ref: 'buttonNode', attrs: { type: htmlType || 'button' } - }]), - [iconNode, kids] - )]); } + + var buttonNode = h( + 'button', + (0, _babelHelperVueJsxMergeProps2['default'])([buttonProps, { ref: 'buttonNode', attrs: { type: htmlType || 'button' } + }]), + [iconNode, kids] + ); + + if (type === 'link') { + return buttonNode; + } + + return h(_wave2['default'], [buttonNode]); } }; @@ -7205,11 +7572,11 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'd exports['default'] = function () { return { - prefixCls: _vueTypes2['default'].string.def('ant-btn'), - type: _vueTypes2['default'].oneOf(['primary', 'danger', 'dashed', 'ghost', 'default']).def('default'), + prefixCls: _vueTypes2['default'].string, + type: _vueTypes2['default'].string, htmlType: _vueTypes2['default'].oneOf(['button', 'submit', 'reset']).def('button'), icon: _vueTypes2['default'].string, - shape: _vueTypes2['default'].oneOf(['circle', 'circle-outline']), + shape: _vueTypes2['default'].oneOf(['circle', 'circle-outline', 'round']), size: _vueTypes2['default'].oneOf(['small', 'large', 'default']).def('default'), loading: _vueTypes2['default'].oneOfType([_vueTypes2['default'].bool, _vueTypes2['default'].object]), disabled: _vueTypes2['default'].bool, @@ -7242,12 +7609,17 @@ var _buttonGroup = __webpack_require__(/*! ./button-group */ "./node_modules/ant var _buttonGroup2 = _interopRequireDefault(_buttonGroup); +var _base = __webpack_require__(/*! ../base */ "./node_modules/ant-design-vue/lib/base/index.js"); + +var _base2 = _interopRequireDefault(_base); + function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } _button2['default'].Group = _buttonGroup2['default']; /* istanbul ignore next */ _button2['default'].install = function (Vue) { + Vue.use(_base2['default']); Vue.component(_button2['default'].name, _button2['default']); Vue.component(_buttonGroup2['default'].name, _buttonGroup2['default']); }; @@ -7280,6 +7652,198 @@ exports['default'] = _en_US2['default']; /***/ }), +/***/ "./node_modules/ant-design-vue/lib/config-provider/index.js": +/*!******************************************************************!*\ + !*** ./node_modules/ant-design-vue/lib/config-provider/index.js ***! + \******************************************************************/ +/*! no static exports found */ +/***/ (function(module, exports, __webpack_require__) { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.ConfigConsumerProps = undefined; + +var _extends2 = __webpack_require__(/*! babel-runtime/helpers/extends */ "./node_modules/babel-runtime/helpers/extends.js"); + +var _extends3 = _interopRequireDefault(_extends2); + +var _vue = __webpack_require__(/*! vue */ "./node_modules/vue/dist/vue.common.js"); + +var _vue2 = _interopRequireDefault(_vue); + +var _vueTypes = __webpack_require__(/*! ../_util/vue-types */ "./node_modules/ant-design-vue/lib/_util/vue-types/index.js"); + +var _vueTypes2 = _interopRequireDefault(_vueTypes); + +var _propsUtil = __webpack_require__(/*! ../_util/props-util */ "./node_modules/ant-design-vue/lib/_util/props-util.js"); + +var _renderEmpty = __webpack_require__(/*! ./renderEmpty */ "./node_modules/ant-design-vue/lib/config-provider/renderEmpty.js"); + +var _renderEmpty2 = _interopRequireDefault(_renderEmpty); + +var _base = __webpack_require__(/*! ../base */ "./node_modules/ant-design-vue/lib/base/index.js"); + +var _base2 = _interopRequireDefault(_base); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } + +function getWatch() { + var keys = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : []; + + var watch = {}; + keys.forEach(function (k) { + watch[k] = function () { + this._proxyVm._data[k] = value; + }; + }); + return watch; +} + +var ConfigProvider = { + name: 'AConfigProvider', + props: { + getPopupContainer: _vueTypes2['default'].func, + prefixCls: _vueTypes2['default'].string, + renderEmpty: _vueTypes2['default'].func, + csp: _vueTypes2['default'].object, + autoInsertSpaceInButton: _vueTypes2['default'].bool + }, + provide: function provide() { + var _self = this; + this._proxyVm = new _vue2['default']({ + data: function data() { + return (0, _extends3['default'])({}, _self.$props, { + getPrefixCls: _self.getPrefixCls, + renderEmpty: _self.renderEmptyComponent + }); + } + }); + return { + configProvider: this._proxyVm._data + }; + }, + + watch: (0, _extends3['default'])({}, getWatch(['prefixCls', 'csp', 'autoInsertSpaceInButton'])), + methods: { + renderEmptyComponent: function renderEmptyComponent(h, name) { + var renderEmpty = (0, _propsUtil.getComponentFromProp)(this, 'renderEmpty', {}, false) || _renderEmpty2['default']; + return renderEmpty(h, name); + }, + getPrefixCls: function getPrefixCls(suffixCls, customizePrefixCls) { + var _$props$prefixCls = this.$props.prefixCls, + prefixCls = _$props$prefixCls === undefined ? 'ant' : _$props$prefixCls; + + if (customizePrefixCls) return customizePrefixCls; + return suffixCls ? prefixCls + '-' + suffixCls : prefixCls; + } + }, + render: function render() { + return this.$slots['default'] ? (0, _propsUtil.filterEmpty)(this.$slots['default']) : null; + } +}; + +var ConfigConsumerProps = exports.ConfigConsumerProps = { + getPrefixCls: function getPrefixCls(suffixCls, customizePrefixCls) { + if (customizePrefixCls) return customizePrefixCls; + return 'ant-' + suffixCls; + }, + renderEmpty: _renderEmpty2['default'] +}; + +/* istanbul ignore next */ +ConfigProvider.install = function (Vue) { + Vue.use(_base2['default']); + Vue.component(ConfigProvider.name, ConfigProvider); +}; + +exports['default'] = ConfigProvider; + +/***/ }), + +/***/ "./node_modules/ant-design-vue/lib/config-provider/renderEmpty.js": +/*!************************************************************************!*\ + !*** ./node_modules/ant-design-vue/lib/config-provider/renderEmpty.js ***! + \************************************************************************/ +/*! no static exports found */ +/***/ (function(module, exports, __webpack_require__) { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", { + value: true +}); + +var _vueTypes = __webpack_require__(/*! ../_util/vue-types */ "./node_modules/ant-design-vue/lib/_util/vue-types/index.js"); + +var _vueTypes2 = _interopRequireDefault(_vueTypes); + +var _empty = __webpack_require__(/*! ../empty */ "./node_modules/ant-design-vue/lib/empty/index.js"); + +var _empty2 = _interopRequireDefault(_empty); + +var _ = __webpack_require__(/*! ./ */ "./node_modules/ant-design-vue/lib/config-provider/index.js"); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } + +/* babel-plugin-inline-import './empty.svg' */var emptyImg = 'data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNjQiIGhlaWdodD0iNDEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+CiAgPGcgdHJhbnNmb3JtPSJ0cmFuc2xhdGUoMCAxKSIgZmlsbD0ibm9uZSIgZmlsbC1ydWxlPSJldmVub2RkIj4KICAgIDxlbGxpcHNlIGZpbGw9IiNGNUY1RjUiIGN4PSIzMiIgY3k9IjMzIiByeD0iMzIiIHJ5PSI3Ii8+CiAgICA8ZyBmaWxsLXJ1bGU9Im5vbnplcm8iIHN0cm9rZT0iI0Q5RDlEOSI+CiAgICAgIDxwYXRoIGQ9Ik01NSAxMi43Nkw0NC44NTQgMS4yNThDNDQuMzY3LjQ3NCA0My42NTYgMCA0Mi45MDcgMEgyMS4wOTNjLS43NDkgMC0xLjQ2LjQ3NC0xLjk0NyAxLjI1N0w5IDEyLjc2MVYyMmg0NnYtOS4yNHoiLz4KICAgICAgPHBhdGggZD0iTTQxLjYxMyAxNS45MzFjMC0xLjYwNS45OTQtMi45MyAyLjIyNy0yLjkzMUg1NXYxOC4xMzdDNTUgMzMuMjYgNTMuNjggMzUgNTIuMDUgMzVoLTQwLjFDMTAuMzIgMzUgOSAzMy4yNTkgOSAzMS4xMzdWMTNoMTEuMTZjMS4yMzMgMCAyLjIyNyAxLjMyMyAyLjIyNyAyLjkyOHYuMDIyYzAgMS42MDUgMS4wMDUgMi45MDEgMi4yMzcgMi45MDFoMTQuNzUyYzEuMjMyIDAgMi4yMzctMS4zMDggMi4yMzctMi45MTN2LS4wMDd6IiBmaWxsPSIjRkFGQUZBIi8+CiAgICA8L2c+CiAgPC9nPgo8L3N2Zz4K'; + + +var RenderEmpty = { + functional: true, + inject: { + configProvider: { 'default': function _default() { + return _.ConfigConsumerProps; + } } + }, + props: { + componentName: _vueTypes2['default'].string + }, + render: function render(createElement, context) { + var h = arguments[0]; + var props = context.props, + injections = context.injections; + + function renderHtml(componentName) { + var getPrefixCls = injections.configProvider.getPrefixCls; + var prefix = getPrefixCls('empty'); + switch (componentName) { + case 'Table': + case 'List': + return h(_empty2['default'], { + attrs: { image: emptyImg }, + 'class': prefix + '-normal' }); + + case 'Select': + case 'TreeSelect': + case 'Cascader': + case 'Transfer': + return h(_empty2['default'], { + attrs: { image: emptyImg }, + 'class': prefix + '-small' }); + + default: + return h(_empty2['default']); + } + } + return renderHtml(props.componentName); + } +}; + +function renderEmpty(h, componentName) { + return h(RenderEmpty, { + attrs: { componentName: componentName } + }); +} + +exports['default'] = renderEmpty; + +/***/ }), + /***/ "./node_modules/ant-design-vue/lib/date-picker/locale/en_US.js": /*!*********************************************************************!*\ !*** ./node_modules/ant-design-vue/lib/date-picker/locale/en_US.js ***! @@ -7340,10 +7904,6 @@ Object.defineProperty(exports, "__esModule", { }); exports.DropdownButtonProps = undefined; -var _babelHelperVueJsxMergeProps = __webpack_require__(/*! babel-helper-vue-jsx-merge-props */ "./node_modules/babel-helper-vue-jsx-merge-props/index.js"); - -var _babelHelperVueJsxMergeProps2 = _interopRequireDefault(_babelHelperVueJsxMergeProps); - var _objectWithoutProperties2 = __webpack_require__(/*! babel-runtime/helpers/objectWithoutProperties */ "./node_modules/babel-runtime/helpers/objectWithoutProperties.js"); var _objectWithoutProperties3 = _interopRequireDefault(_objectWithoutProperties2); @@ -7376,6 +7936,8 @@ var _getDropdownProps = __webpack_require__(/*! ./getDropdownProps */ "./node_mo var _getDropdownProps2 = _interopRequireDefault(_getDropdownProps); +var _configProvider = __webpack_require__(/*! ../config-provider */ "./node_modules/ant-design-vue/lib/config-provider/index.js"); + function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } var ButtonTypesProps = (0, _buttonTypes2['default'])(); @@ -7383,9 +7945,11 @@ var DropdownProps = (0, _getDropdownProps2['default'])(); var ButtonGroup = _button2['default'].Group; var DropdownButtonProps = (0, _extends3['default'])({}, _buttonGroup.ButtonGroupProps, DropdownProps, { type: _vueTypes2['default'].oneOf(['primary', 'ghost', 'dashed', 'danger', 'default']).def('default'), + size: _vueTypes2['default'].oneOf(['small', 'large', 'default']).def('default'), htmlType: ButtonTypesProps.htmlType, + href: _vueTypes2['default'].string, disabled: _vueTypes2['default'].bool, - prefixCls: _vueTypes2['default'].string.def('ant-dropdown-button'), + prefixCls: _vueTypes2['default'].string, placement: DropdownProps.placement.def('bottomRight') }); exports.DropdownButtonProps = DropdownButtonProps; @@ -7404,7 +7968,7 @@ exports['default'] = { inject: { configProvider: { 'default': function _default() { - return {}; + return _configProvider.ConfigConsumerProps; } } }, methods: { @@ -7424,15 +7988,18 @@ exports['default'] = { type = _$props.type, disabled = _$props.disabled, htmlType = _$props.htmlType, - prefixCls = _$props.prefixCls, + customizePrefixCls = _$props.prefixCls, trigger = _$props.trigger, align = _$props.align, visible = _$props.visible, placement = _$props.placement, getPopupContainer = _$props.getPopupContainer, - restProps = (0, _objectWithoutProperties3['default'])(_$props, ['type', 'disabled', 'htmlType', 'prefixCls', 'trigger', 'align', 'visible', 'placement', 'getPopupContainer']); + href = _$props.href, + restProps = (0, _objectWithoutProperties3['default'])(_$props, ['type', 'disabled', 'htmlType', 'prefixCls', 'trigger', 'align', 'visible', 'placement', 'getPopupContainer', 'href']); var getContextPopupContainer = this.configProvider.getPopupContainer; + var getPrefixCls = this.configProvider.getPrefixCls; + var prefixCls = getPrefixCls('dropdown-button', customizePrefixCls); var dropdownProps = { props: { align: align, @@ -7449,13 +8016,24 @@ exports['default'] = { dropdownProps.props.visible = visible; } + var buttonGroupProps = { + props: (0, _extends3['default'])({}, restProps), + 'class': prefixCls + }; + return h( ButtonGroup, - (0, _babelHelperVueJsxMergeProps2['default'])([restProps, { 'class': prefixCls }]), + buttonGroupProps, [h( _button2['default'], { - attrs: { type: type, disabled: disabled, htmlType: htmlType }, + attrs: { + type: type, + disabled: disabled, + + htmlType: htmlType, + href: href + }, on: { 'click': this.onClick } @@ -7517,6 +8095,8 @@ var _getDropdownProps = __webpack_require__(/*! ./getDropdownProps */ "./node_mo var _getDropdownProps2 = _interopRequireDefault(_getDropdownProps); +var _configProvider = __webpack_require__(/*! ../config-provider */ "./node_modules/ant-design-vue/lib/config-provider/index.js"); + var _icon = __webpack_require__(/*! ../icon */ "./node_modules/ant-design-vue/lib/icon/index.js"); var _icon2 = _interopRequireDefault(_icon); @@ -7527,7 +8107,7 @@ var DropdownProps = (0, _getDropdownProps2['default'])(); var Dropdown = { name: 'ADropdown', props: (0, _extends3['default'])({}, DropdownProps, { - prefixCls: _vueTypes2['default'].string.def('ant-dropdown'), + prefixCls: _vueTypes2['default'].string, mouseEnterDelay: _vueTypes2['default'].number.def(0.15), mouseLeaveDelay: _vueTypes2['default'].number.def(0.1), placement: DropdownProps.placement.def('bottomLeft') @@ -7544,7 +8124,7 @@ var Dropdown = { inject: { configProvider: { 'default': function _default() { - return {}; + return _configProvider.ConfigConsumerProps; } } }, methods: { @@ -7564,6 +8144,39 @@ var Dropdown = { return 'slide-down'; } return 'slide-up'; + }, + renderOverlay: function renderOverlay(prefixCls) { + var h = this.$createElement; + + var overlay = (0, _propsUtil.getComponentFromProp)(this, 'overlay'); + var overlayNode = Array.isArray(overlay) ? overlay[0] : overlay; + // menu cannot be selectable in dropdown defaultly + // menu should be focusable in dropdown defaultly + var overlayProps = overlayNode && (0, _propsUtil.getPropsData)(overlayNode); + + var _ref = overlayProps || {}, + _ref$selectable = _ref.selectable, + selectable = _ref$selectable === undefined ? false : _ref$selectable, + _ref$focusable = _ref.focusable, + focusable = _ref$focusable === undefined ? true : _ref$focusable; + + var expandIcon = h( + 'span', + { 'class': prefixCls + '-menu-submenu-arrow' }, + [h(_icon2['default'], { + attrs: { type: 'right' }, + 'class': prefixCls + '-menu-submenu-arrow-icon' })] + ); + + var fixedModeOverlay = overlayNode && overlayNode.componentOptions ? (0, _vnode.cloneElement)(overlayNode, { + props: { + mode: 'vertical', + selectable: selectable, + focusable: focusable, + expandIcon: expandIcon + } + }) : overlay; + return fixedModeOverlay; } }, @@ -7573,43 +8186,21 @@ var Dropdown = { $listeners = this.$listeners; var props = (0, _propsUtil.getOptionProps)(this); - var prefixCls = props.prefixCls, + var customizePrefixCls = props.prefixCls, trigger = props.trigger, disabled = props.disabled, getPopupContainer = props.getPopupContainer; var getContextPopupContainer = this.configProvider.getPopupContainer; + var getPrefixCls = this.configProvider.getPrefixCls; + var prefixCls = getPrefixCls('dropdown', customizePrefixCls); + var dropdownTrigger = (0, _vnode.cloneElement)($slots['default'], { 'class': prefixCls + '-trigger', - disabled: disabled - }); - var overlay = this.overlay || $slots.overlay && $slots.overlay[0]; - // menu cannot be selectable in dropdown defaultly - // menu should be focusable in dropdown defaultly - var overlayProps = overlay && (0, _propsUtil.getPropsData)(overlay); - - var _ref = overlayProps || {}, - _ref$selectable = _ref.selectable, - selectable = _ref$selectable === undefined ? false : _ref$selectable, - _ref$focusable = _ref.focusable, - focusable = _ref$focusable === undefined ? true : _ref$focusable; - - var expandIcon = h( - 'span', - { 'class': prefixCls + '-menu-submenu-arrow' }, - [h(_icon2['default'], { - attrs: { type: 'right' }, - 'class': prefixCls + '-menu-submenu-arrow-icon' })] - ); - - var fixedModeOverlay = overlay && overlay.componentOptions ? (0, _vnode.cloneElement)(overlay, { props: { - mode: 'vertical', - selectable: selectable, - focusable: focusable, - expandIcon: expandIcon + disabled: disabled } - }) : overlay; + }); var triggerActions = disabled ? [] : trigger; var alignPoint = void 0; if (triggerActions && triggerActions.indexOf('contextmenu') !== -1) { @@ -7619,6 +8210,7 @@ var Dropdown = { props: (0, _extends3['default'])({ alignPoint: alignPoint }, props, { + prefixCls: prefixCls, getPopupContainer: getPopupContainer || getContextPopupContainer, transitionName: this.getTransitionName(), trigger: triggerActions @@ -7631,7 +8223,7 @@ var Dropdown = { [dropdownTrigger, h( 'template', { slot: 'overlay' }, - [fixedModeOverlay] + [this.renderOverlay(prefixCls)] )] ); } @@ -7679,6 +8271,7 @@ exports['default'] = function () { forceRender: _vueTypes2['default'].bool, mouseEnterDelay: _vueTypes2['default'].number, mouseLeaveDelay: _vueTypes2['default'].number, + openClassName: _vueTypes2['default'].string, minOverlayWidthMatchTrigger: _vueTypes2['default'].bool }; }; @@ -7722,12 +8315,17 @@ var _dropdown2 = _interopRequireDefault(_dropdown); var _dropdownButton2 = _interopRequireDefault(_dropdownButton); +var _base = __webpack_require__(/*! ../base */ "./node_modules/ant-design-vue/lib/base/index.js"); + +var _base2 = _interopRequireDefault(_base); + function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } _dropdown2['default'].Button = _dropdownButton2['default']; /* istanbul ignore next */ _dropdown2['default'].install = function (Vue) { + Vue.use(_base2['default']); Vue.component(_dropdown2['default'].name, _dropdown2['default']); Vue.component(_dropdownButton2['default'].name, _dropdownButton2['default']); }; @@ -7736,6 +8334,133 @@ exports['default'] = _dropdown2['default']; /***/ }), +/***/ "./node_modules/ant-design-vue/lib/empty/index.js": +/*!********************************************************!*\ + !*** ./node_modules/ant-design-vue/lib/empty/index.js ***! + \********************************************************/ +/*! no static exports found */ +/***/ (function(module, exports, __webpack_require__) { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.EmptyProps = exports.TransferLocale = undefined; + +var _babelHelperVueJsxMergeProps = __webpack_require__(/*! babel-helper-vue-jsx-merge-props */ "./node_modules/babel-helper-vue-jsx-merge-props/index.js"); + +var _babelHelperVueJsxMergeProps2 = _interopRequireDefault(_babelHelperVueJsxMergeProps); + +var _objectWithoutProperties2 = __webpack_require__(/*! babel-runtime/helpers/objectWithoutProperties */ "./node_modules/babel-runtime/helpers/objectWithoutProperties.js"); + +var _objectWithoutProperties3 = _interopRequireDefault(_objectWithoutProperties2); + +var _extends2 = __webpack_require__(/*! babel-runtime/helpers/extends */ "./node_modules/babel-runtime/helpers/extends.js"); + +var _extends3 = _interopRequireDefault(_extends2); + +var _vueTypes = __webpack_require__(/*! ../_util/vue-types */ "./node_modules/ant-design-vue/lib/_util/vue-types/index.js"); + +var _vueTypes2 = _interopRequireDefault(_vueTypes); + +var _configProvider = __webpack_require__(/*! ../config-provider */ "./node_modules/ant-design-vue/lib/config-provider/index.js"); + +var _propsUtil = __webpack_require__(/*! ../_util/props-util */ "./node_modules/ant-design-vue/lib/_util/props-util.js"); + +var _LocaleReceiver = __webpack_require__(/*! ../locale-provider/LocaleReceiver */ "./node_modules/ant-design-vue/lib/locale-provider/LocaleReceiver.js"); + +var _LocaleReceiver2 = _interopRequireDefault(_LocaleReceiver); + +var _base = __webpack_require__(/*! ../base */ "./node_modules/ant-design-vue/lib/base/index.js"); + +var _base2 = _interopRequireDefault(_base); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } + +/* babel-plugin-inline-import './empty.svg' */var emptyImg = 'data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTg0IiBoZWlnaHQ9IjE1MiIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KICA8ZyBmaWxsPSJub25lIiBmaWxsLXJ1bGU9ImV2ZW5vZGQiPgogICAgPGcgdHJhbnNmb3JtPSJ0cmFuc2xhdGUoMjQgMzEuNjcpIj4KICAgICAgPGVsbGlwc2UgZmlsbC1vcGFjaXR5PSIuOCIgZmlsbD0iI0Y1RjVGNyIgY3g9IjY3Ljc5NyIgY3k9IjEwNi44OSIgcng9IjY3Ljc5NyIgcnk9IjEyLjY2OCIvPgogICAgICA8cGF0aCBkPSJNMTIyLjAzNCA2OS42NzRMOTguMTA5IDQwLjIyOWMtMS4xNDgtMS4zODYtMi44MjYtMi4yMjUtNC41OTMtMi4yMjVoLTUxLjQ0Yy0xLjc2NiAwLTMuNDQ0LjgzOS00LjU5MiAyLjIyNUwxMy41NiA2OS42NzR2MTUuMzgzaDEwOC40NzVWNjkuNjc0eiIgZmlsbD0iI0FFQjhDMiIvPgogICAgICA8cGF0aCBkPSJNMTAxLjUzNyA4Ni4yMTRMODAuNjMgNjEuMTAyYy0xLjAwMS0xLjIwNy0yLjUwNy0xLjg2Ny00LjA0OC0xLjg2N0gzMS43MjRjLTEuNTQgMC0zLjA0Ny42Ni00LjA0OCAxLjg2N0w2Ljc2OSA4Ni4yMTR2MTMuNzkyaDk0Ljc2OFY4Ni4yMTR6IiBmaWxsPSJ1cmwoI2xpbmVhckdyYWRpZW50LTEpIiB0cmFuc2Zvcm09InRyYW5zbGF0ZSgxMy41NikiLz4KICAgICAgPHBhdGggZD0iTTMzLjgzIDBoNjcuOTMzYTQgNCAwIDAgMSA0IDR2OTMuMzQ0YTQgNCAwIDAgMS00IDRIMzMuODNhNCA0IDAgMCAxLTQtNFY0YTQgNCAwIDAgMSA0LTR6IiBmaWxsPSIjRjVGNUY3Ii8+CiAgICAgIDxwYXRoIGQ9Ik00Mi42NzggOS45NTNoNTAuMjM3YTIgMiAwIDAgMSAyIDJWMzYuOTFhMiAyIDAgMCAxLTIgMkg0Mi42NzhhMiAyIDAgMCAxLTItMlYxMS45NTNhMiAyIDAgMCAxIDItMnpNNDIuOTQgNDkuNzY3aDQ5LjcxM2EyLjI2MiAyLjI2MiAwIDEgMSAwIDQuNTI0SDQyLjk0YTIuMjYyIDIuMjYyIDAgMCAxIDAtNC41MjR6TTQyLjk0IDYxLjUzaDQ5LjcxM2EyLjI2MiAyLjI2MiAwIDEgMSAwIDQuNTI1SDQyLjk0YTIuMjYyIDIuMjYyIDAgMCAxIDAtNC41MjV6TTEyMS44MTMgMTA1LjAzMmMtLjc3NSAzLjA3MS0zLjQ5NyA1LjM2LTYuNzM1IDUuMzZIMjAuNTE1Yy0zLjIzOCAwLTUuOTYtMi4yOS02LjczNC01LjM2YTcuMzA5IDcuMzA5IDAgMCAxLS4yMjItMS43OVY2OS42NzVoMjYuMzE4YzIuOTA3IDAgNS4yNSAyLjQ0OCA1LjI1IDUuNDJ2LjA0YzAgMi45NzEgMi4zNyA1LjM3IDUuMjc3IDUuMzdoMzQuNzg1YzIuOTA3IDAgNS4yNzctMi40MjEgNS4yNzctNS4zOTNWNzUuMWMwLTIuOTcyIDIuMzQzLTUuNDI2IDUuMjUtNS40MjZoMjYuMzE4djMzLjU2OWMwIC42MTctLjA3NyAxLjIxNi0uMjIxIDEuNzg5eiIgZmlsbD0iI0RDRTBFNiIvPgogICAgPC9nPgogICAgPHBhdGggZD0iTTE0OS4xMjEgMzMuMjkybC02LjgzIDIuNjVhMSAxIDAgMCAxLTEuMzE3LTEuMjNsMS45MzctNi4yMDdjLTIuNTg5LTIuOTQ0LTQuMTA5LTYuNTM0LTQuMTA5LTEwLjQwOEMxMzguODAyIDguMTAyIDE0OC45MiAwIDE2MS40MDIgMCAxNzMuODgxIDAgMTg0IDguMTAyIDE4NCAxOC4wOTdjMCA5Ljk5NS0xMC4xMTggMTguMDk3LTIyLjU5OSAxOC4wOTctNC41MjggMC04Ljc0NC0xLjA2Ni0xMi4yOC0yLjkwMnoiIGZpbGw9IiNEQ0UwRTYiLz4KICAgIDxnIHRyYW5zZm9ybT0idHJhbnNsYXRlKDE0OS42NSAxNS4zODMpIiBmaWxsPSIjRkZGIj4KICAgICAgPGVsbGlwc2UgY3g9IjIwLjY1NCIgY3k9IjMuMTY3IiByeD0iMi44NDkiIHJ5PSIyLjgxNSIvPgogICAgICA8cGF0aCBkPSJNNS42OTggNS42M0gwTDIuODk4LjcwNHpNOS4yNTkuNzA0aDQuOTg1VjUuNjNIOS4yNTl6Ii8+CiAgICA8L2c+CiAgPC9nPgo8L3N2Zz4K'; +var TransferLocale = exports.TransferLocale = function TransferLocale() { + return { + description: _vueTypes2['default'].string + }; +}; + +var EmptyProps = exports.EmptyProps = function EmptyProps() { + return { + prefixCls: _vueTypes2['default'].string, + image: _vueTypes2['default'].any, + description: _vueTypes2['default'].any + }; +}; + +var Empty = { + name: 'AEmpty', + props: (0, _extends3['default'])({}, EmptyProps()), + methods: { + renderEmpty: function renderEmpty(contentLocale) { + var h = this.$createElement; + var _$props = this.$props, + customizePrefixCls = _$props.prefixCls, + restProps = (0, _objectWithoutProperties3['default'])(_$props, ['prefixCls']); + + var prefixCls = _configProvider.ConfigConsumerProps.getPrefixCls('empty', customizePrefixCls); + var image = (0, _propsUtil.getComponentFromProp)(this, 'image'); + var description = (0, _propsUtil.getComponentFromProp)(this, 'description'); + + var des = description || contentLocale.description; + var alt = typeof des === 'string' ? des : 'empty'; + + var imageNode = null; + if (!image) { + imageNode = h('img', { + attrs: { alt: alt, src: emptyImg } + }); + } else if (typeof image === 'string') { + imageNode = h('img', { + attrs: { alt: alt, src: image } + }); + } else { + imageNode = image; + } + return h( + 'div', + (0, _babelHelperVueJsxMergeProps2['default'])([{ 'class': prefixCls }, { on: this.$listeners }]), + [h( + 'div', + { 'class': prefixCls + '-image' }, + [imageNode] + ), h( + 'p', + { 'class': prefixCls + '-description' }, + [des] + ), this.$slots['default'] && h( + 'div', + { 'class': prefixCls + '-footer' }, + [this.$slots['default']] + )] + ); + } + }, + render: function render() { + var h = arguments[0]; + + return h(_LocaleReceiver2['default'], { + attrs: { componentName: 'Empty' }, + scopedSlots: { 'default': this.renderEmpty } }); + } +}; + +/* istanbul ignore next */ +Empty.install = function (Vue) { + Vue.use(_base2['default']); + Vue.component(Empty.name, Empty); +}; + +exports['default'] = Empty; + +/***/ }), + /***/ "./node_modules/ant-design-vue/lib/form/Form.js": /*!******************************************************!*\ !*** ./node_modules/ant-design-vue/lib/form/Form.js ***! @@ -7767,6 +8492,8 @@ var _classnames = __webpack_require__(/*! classnames */ "./node_modules/classnam var _classnames2 = _interopRequireDefault(_classnames); +var _Col = __webpack_require__(/*! ../grid/Col */ "./node_modules/ant-design-vue/lib/grid/Col.js"); + var _vue = __webpack_require__(/*! vue */ "./node_modules/vue/dist/vue.common.js"); var _vue2 = _interopRequireDefault(_vue); @@ -7795,6 +8522,12 @@ var _constants = __webpack_require__(/*! ./constants */ "./node_modules/ant-desi var _propsUtil = __webpack_require__(/*! ../_util/props-util */ "./node_modules/ant-design-vue/lib/_util/props-util.js"); +var _configProvider = __webpack_require__(/*! ../config-provider */ "./node_modules/ant-design-vue/lib/config-provider/index.js"); + +var _base = __webpack_require__(/*! ../base */ "./node_modules/ant-design-vue/lib/base/index.js"); + +var _base2 = _interopRequireDefault(_base); + function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } var FormCreateOption = exports.FormCreateOption = { @@ -7802,7 +8535,8 @@ var FormCreateOption = exports.FormCreateOption = { onValuesChange: _vueTypes2['default'].func, mapPropsToFields: _vueTypes2['default'].func, validateMessages: _vueTypes2['default'].any, - withRef: _vueTypes2['default'].bool + withRef: _vueTypes2['default'].bool, + name: _vueTypes2['default'].string }; // function create @@ -7844,12 +8578,15 @@ var WrappedFormUtils = exports.WrappedFormUtils = { var FormProps = exports.FormProps = { layout: _vueTypes2['default'].oneOf(['horizontal', 'inline', 'vertical']), + labelCol: _vueTypes2['default'].shape(_Col.ColProps).loose, + wrapperCol: _vueTypes2['default'].shape(_Col.ColProps).loose, form: _vueTypes2['default'].object, // onSubmit: React.FormEventHandler; prefixCls: _vueTypes2['default'].string, hideRequiredMark: _vueTypes2['default'].bool, autoFormCreate: _vueTypes2['default'].func, - options: _vueTypes2['default'].object + options: _vueTypes2['default'].object, + selfUpdate: _vueTypes2['default'].bool }; var ValidationRule = exports.ValidationRule = { @@ -7907,15 +8644,11 @@ var ValidationRule = exports.ValidationRule = { var Form = { name: 'AForm', props: (0, _propsUtil.initDefaultProps)(FormProps, { - prefixCls: 'ant-form', layout: 'horizontal', hideRequiredMark: false }), - Item: _FormItem2['default'], - createFormField: _createFormField2['default'], - create: function create() { var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {}; @@ -7929,7 +8662,8 @@ var Form = { createForm: function createForm(context) { var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; - return new _vue2['default'](Form.create((0, _extends3['default'])({}, options, { templateContext: context }))()); + var V = _base2['default'].Vue || _vue2['default']; + return new V(Form.create((0, _extends3['default'])({}, options, { templateContext: context }))()); }, created: function created() { this.formItemContexts = new Map(); @@ -7960,6 +8694,11 @@ var Form = { }; }, + inject: { + configProvider: { 'default': function _default() { + return _configProvider.ConfigConsumerProps; + } } + }, watch: { form: function form() { this.$forceUpdate(); @@ -7995,7 +8734,7 @@ var Form = { _this2 = this; var h = arguments[0]; - var prefixCls = this.prefixCls, + var customizePrefixCls = this.prefixCls, hideRequiredMark = this.hideRequiredMark, layout = this.layout, onSubmit = this.onSubmit, @@ -8004,6 +8743,8 @@ var Form = { _options = this.options, options = _options === undefined ? {} : _options; + var getPrefixCls = this.configProvider.getPrefixCls; + var prefixCls = getPrefixCls('form', customizePrefixCls); var formClassName = (0, _classnames2['default'])(prefixCls, (_classNames = {}, (0, _defineProperty3['default'])(_classNames, prefixCls + '-horizontal', layout === 'horizontal'), (0, _defineProperty3['default'])(_classNames, prefixCls + '-vertical', layout === 'vertical'), (0, _defineProperty3['default'])(_classNames, prefixCls + '-inline', layout === 'inline'), (0, _defineProperty3['default'])(_classNames, prefixCls + '-hide-required-mark', hideRequiredMark), _classNames)); if (autoFormCreate) { @@ -8113,10 +8854,6 @@ var _toConsumableArray2 = __webpack_require__(/*! babel-runtime/helpers/toConsum var _toConsumableArray3 = _interopRequireDefault(_toConsumableArray2); -var _intersperse = __webpack_require__(/*! intersperse */ "./node_modules/intersperse/lib/intersperse.js"); - -var _intersperse2 = _interopRequireDefault(_intersperse); - var _vueTypes = __webpack_require__(/*! ../_util/vue-types */ "./node_modules/ant-design-vue/lib/_util/vue-types/index.js"); var _vueTypes2 = _interopRequireDefault(_vueTypes); @@ -8159,9 +8896,17 @@ var _icon = __webpack_require__(/*! ../icon */ "./node_modules/ant-design-vue/li var _icon2 = _interopRequireDefault(_icon); +var _configProvider = __webpack_require__(/*! ../config-provider */ "./node_modules/ant-design-vue/lib/config-provider/index.js"); + function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } function noop() {} + +function intersperseSpace(list) { + return list.reduce(function (current, item) { + return [].concat((0, _toConsumableArray3['default'])(current), [' ', item]); + }, []).slice(1); +} var FormItemProps = exports.FormItemProps = { id: _vueTypes2['default'].string, prefixCls: _vueTypes2['default'].string, @@ -8175,7 +8920,8 @@ var FormItemProps = exports.FormItemProps = { required: _vueTypes2['default'].bool, colon: _vueTypes2['default'].bool, fieldDecoratorId: _vueTypes2['default'].string, - fieldDecoratorOptions: _vueTypes2['default'].object + fieldDecoratorOptions: _vueTypes2['default'].object, + selfUpdate: _vueTypes2['default'].bool }; function comeFromSlot() { var vnodes = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : []; @@ -8187,7 +8933,8 @@ function comeFromSlot() { if (vnode && (vnode === itemVnode || vnode.$vnode === itemVnode)) { isSlot = true; } else { - var children = vnode.componentOptions ? vnode.componentOptions.children : vnode.children; + var componentOptions = vnode.componentOptions || vnode.$vnode && vnode.$vnode.componentOptions; + var children = componentOptions ? componentOptions.children : vnode.$children; isSlot = comeFromSlot(children, itemVnode); } if (isSlot) { @@ -8203,7 +8950,6 @@ exports['default'] = { mixins: [_BaseMixin2['default']], props: (0, _propsUtil.initDefaultProps)(FormItemProps, { hasFeedback: false, - prefixCls: 'ant-form', colon: true }), inject: { @@ -8215,11 +8961,20 @@ exports['default'] = { } }, collectFormItemContext: { 'default': function _default() { return noop; + } }, + configProvider: { 'default': function _default() { + return _configProvider.ConfigConsumerProps; } } }, data: function data() { return { helpShow: false }; }, + + computed: { + itemSelfUpdate: function itemSelfUpdate() { + return !!(this.selfUpdate === undefined ? this.FormProps.selfUpdate : this.selfUpdate); + } + }, created: function created() { this.collectContext(); }, @@ -8232,7 +8987,11 @@ exports['default'] = { this.collectFormItemContext(this.$vnode.context, 'delete'); }, mounted: function mounted() { - (0, _warning2['default'])(this.getControls(this.slotDefault, true).length <= 1, '`Form.Item` cannot generate `validateStatus` and `help` automatically, ' + 'while there are more than one `getFieldDecorator` in it.'); + var _$props = this.$props, + help = _$props.help, + validateStatus = _$props.validateStatus; + + (0, _warning2['default'])(this.getControls(this.slotDefault, true).length <= 1 || help !== undefined || validateStatus !== undefined, '`Form.Item` cannot generate `validateStatus` and `help` automatically, ' + 'while there are more than one `getFieldDecorator` in it.'); (0, _warning2['default'])(!this.fieldDecoratorId, '`fieldDecoratorId` is deprecated. please use `v-decorator={id, options}` instead.'); }, @@ -8262,9 +9021,15 @@ exports['default'] = { if (help === undefined && onlyControl) { var errors = this.getField().errors; if (errors) { - return (0, _intersperse2['default'])(errors.map(function (e, index) { - return (0, _propsUtil.isValidElement)(e.message) ? (0, _vnode.cloneElement)(e.message, { key: index }) : e.message; - }), ' '); + return intersperseSpace(errors.map(function (e, index) { + var node = null; + if ((0, _propsUtil.isValidElement)(e)) { + node = e; + } else if ((0, _propsUtil.isValidElement)(e.message)) { + node = e.message; + } + return node ? (0, _vnode.cloneElement)(node, { key: index }) : e.message; + })); } else { return ''; } @@ -8333,12 +9098,11 @@ exports['default'] = { this.$forceUpdate(); } }, - renderHelp: function renderHelp() { + renderHelp: function renderHelp(prefixCls) { var _this = this; var h = this.$createElement; - var prefixCls = this.prefixCls; var help = this.getHelpMessage(); var children = help ? h( 'div', @@ -8362,9 +9126,8 @@ exports['default'] = { [children] ); }, - renderExtra: function renderExtra() { + renderExtra: function renderExtra(prefixCls) { var h = this.$createElement; - var prefixCls = this.prefixCls; var extra = (0, _propsUtil.getComponentFromProp)(this, 'extra'); return extra ? h( @@ -8391,16 +9154,16 @@ exports['default'] = { } return ''; }, - renderValidateWrapper: function renderValidateWrapper(c1, c2, c3) { + renderValidateWrapper: function renderValidateWrapper(prefixCls, c1, c2, c3) { var h = this.$createElement; var props = this.$props; var onlyControl = this.getOnlyControl; var validateStatus = props.validateStatus === undefined && onlyControl ? this.getValidateStatus() : props.validateStatus; - var classes = props.prefixCls + '-item-control'; + var classes = prefixCls + '-item-control'; if (validateStatus) { - classes = (0, _classnames2['default'])(props.prefixCls + '-item-control', { + classes = (0, _classnames2['default'])(prefixCls + '-item-control', { 'has-feedback': props.hasFeedback || validateStatus === 'validating', 'has-success': validateStatus === 'success', 'has-warning': validateStatus === 'warning', @@ -8428,7 +9191,7 @@ exports['default'] = { } var icon = props.hasFeedback && iconType ? h( 'span', - { 'class': props.prefixCls + '-item-children-icon' }, + { 'class': prefixCls + '-item-children-icon' }, [h(_icon2['default'], { attrs: { type: iconType, theme: iconType === 'loading' ? 'outlined' : 'filled' } })] @@ -8438,16 +9201,19 @@ exports['default'] = { { 'class': classes }, [h( 'span', - { 'class': props.prefixCls + '-item-children' }, + { 'class': prefixCls + '-item-children' }, [c1, icon] ), c2, c3] ); }, - renderWrapper: function renderWrapper(children) { + renderWrapper: function renderWrapper(prefixCls, children) { var h = this.$createElement; - var prefixCls = this.prefixCls, - _wrapperCol = this.wrapperCol, - wrapperCol = _wrapperCol === undefined ? {} : _wrapperCol; + var _FormProps = this.FormProps; + _FormProps = _FormProps === undefined ? {} : _FormProps; + var _FormProps$wrapperCol = _FormProps.wrapperCol, + wrapperColForm = _FormProps$wrapperCol === undefined ? {} : _FormProps$wrapperCol; + var _wrapperCol = this.wrapperCol, + wrapperCol = _wrapperCol === undefined ? wrapperColForm : _wrapperCol; var cls = wrapperCol['class'], style = wrapperCol.style, id = wrapperCol.id, @@ -8499,24 +9265,27 @@ exports['default'] = { if (!id) { return; } - var controls = document.querySelectorAll('[id="' + id + '"]'); - if (controls.length !== 1) { + var formItemNode = this.$el; + var control = formItemNode.querySelector('[id="' + id + '"]'); + if (control) { // Only prevent in default situation // Avoid preventing event in `label={link}`` if (typeof label === 'string') { e.preventDefault(); } - var control = this.$el.querySelector('[id="' + id + '"]'); - if (control && control.focus) { + if (control.focus) { control.focus(); } } }, - renderLabel: function renderLabel() { + renderLabel: function renderLabel(prefixCls) { var h = this.$createElement; - var prefixCls = this.prefixCls, - _labelCol = this.labelCol, - labelCol = _labelCol === undefined ? {} : _labelCol, + var _FormProps2 = this.FormProps; + _FormProps2 = _FormProps2 === undefined ? {} : _FormProps2; + var _FormProps2$labelCol = _FormProps2.labelCol, + labelColForm = _FormProps2$labelCol === undefined ? {} : _FormProps2$labelCol; + var _labelCol = this.labelCol, + labelCol = _labelCol === undefined ? labelColForm : _labelCol, colon = this.colon, id = this.id; @@ -8566,17 +9335,21 @@ exports['default'] = { )] ) : null; }, - renderChildren: function renderChildren() { - return [this.renderLabel(), this.renderWrapper(this.renderValidateWrapper(this.slotDefault, this.renderHelp(), this.renderExtra()))]; + renderChildren: function renderChildren(prefixCls) { + return [this.renderLabel(prefixCls), this.renderWrapper(prefixCls, this.renderValidateWrapper(prefixCls, this.slotDefault, this.renderHelp(prefixCls), this.renderExtra(prefixCls)))]; }, - renderFormItem: function renderFormItem(children) { + renderFormItem: function renderFormItem() { var _itemClassName; var h = this.$createElement; + var _$props2 = this.$props, + customizePrefixCls = _$props2.prefixCls, + colon = _$props2.colon; - var props = this.$props; - var prefixCls = props.prefixCls; - var itemClassName = (_itemClassName = {}, (0, _defineProperty3['default'])(_itemClassName, prefixCls + '-item', true), (0, _defineProperty3['default'])(_itemClassName, prefixCls + '-item-with-help', this.helpShow), (0, _defineProperty3['default'])(_itemClassName, prefixCls + '-item-no-colon', !props.colon), _itemClassName); + var getPrefixCls = this.configProvider.getPrefixCls; + var prefixCls = getPrefixCls('form', customizePrefixCls); + var children = this.renderChildren(prefixCls); + var itemClassName = (_itemClassName = {}, (0, _defineProperty3['default'])(_itemClassName, prefixCls + '-item', true), (0, _defineProperty3['default'])(_itemClassName, prefixCls + '-item-with-help', this.helpShow), (0, _defineProperty3['default'])(_itemClassName, prefixCls + '-item-no-colon', !colon), _itemClassName); return h( _Row2['default'], @@ -8609,7 +9382,7 @@ exports['default'] = { } var option = this.decoratorOption(vnode); if (option && option[0]) { - vnodes[i] = getFieldDecorator(option[0], option[1])(vnode); + vnodes[i] = getFieldDecorator(option[0], option[1], this)(vnode); } } return vnodes; @@ -8627,7 +9400,7 @@ exports['default'] = { var child = (0, _propsUtil.filterEmpty)($slots['default'] || []); if (decoratorFormProps.form && fieldDecoratorId && child.length) { var getFieldDecorator = decoratorFormProps.form.getFieldDecorator; - child[0] = getFieldDecorator(fieldDecoratorId, fieldDecoratorOptions)(child[0]); + child[0] = getFieldDecorator(fieldDecoratorId, fieldDecoratorOptions, this)(child[0]); (0, _warning2['default'])(!(child.length > 1), '`autoFormCreate` just `decorator` then first children. but you can use JSX to support multiple children'); this.slotDefault = child; } else if (FormProps.form) { @@ -8636,9 +9409,7 @@ exports['default'] = { } else { this.slotDefault = child; } - - var children = this.renderChildren(); - return this.renderFormItem(children); + return this.renderFormItem(); } }; @@ -8721,6 +9492,10 @@ var _FormDecoratorDirective = __webpack_require__(/*! ../_util/FormDecoratorDire var _FormDecoratorDirective2 = _interopRequireDefault(_FormDecoratorDirective); +var _base = __webpack_require__(/*! ../base */ "./node_modules/ant-design-vue/lib/base/index.js"); + +var _base2 = _interopRequireDefault(_base); + function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } _vue2['default'].use(_vueRef2['default'], { name: 'ant-ref' }); @@ -8729,6 +9504,7 @@ _vue2['default'].prototype.$form = _Form2['default']; /* istanbul ignore next */ _Form2['default'].install = function (Vue) { + Vue.use(_base2['default']); Vue.component(_Form2['default'].name, _Form2['default']); Vue.component(_Form2['default'].Item.name, _Form2['default'].Item); Vue.prototype.$form = _Form2['default']; @@ -8769,6 +9545,8 @@ var _vueTypes = __webpack_require__(/*! ../_util/vue-types */ "./node_modules/an var _vueTypes2 = _interopRequireDefault(_vueTypes); +var _configProvider = __webpack_require__(/*! ../config-provider */ "./node_modules/ant-design-vue/lib/config-provider/index.js"); + function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } var stringOrNumber = _vueTypes2['default'].oneOfType([_vueTypes2['default'].string, _vueTypes2['default'].number]); @@ -8781,7 +9559,7 @@ var ColSize = exports.ColSize = _vueTypes2['default'].shape({ pull: stringOrNumber }).loose; -var objectOrNumber = _vueTypes2['default'].oneOfType([_vueTypes2['default'].number, ColSize]); +var objectOrNumber = _vueTypes2['default'].oneOfType([_vueTypes2['default'].string, _vueTypes2['default'].number, ColSize]); var ColProps = exports.ColProps = { span: stringOrNumber, @@ -8802,6 +9580,9 @@ exports['default'] = { name: 'ACol', props: ColProps, inject: { + configProvider: { 'default': function _default() { + return _configProvider.ConfigConsumerProps; + } }, rowContext: { 'default': function _default() { return null; @@ -8818,13 +9599,15 @@ exports['default'] = { offset = this.offset, push = this.push, pull = this.pull, - _prefixCls = this.prefixCls, - prefixCls = _prefixCls === undefined ? 'ant-col' : _prefixCls, + customizePrefixCls = this.prefixCls, $slots = this.$slots, $attrs = this.$attrs, $listeners = this.$listeners, rowContext = this.rowContext; + var getPrefixCls = this.configProvider.getPrefixCls; + var prefixCls = getPrefixCls('col', customizePrefixCls); + var sizeClassObj = {}; ['xs', 'sm', 'md', 'lg', 'xl', 'xxl'].forEach(function (size) { var _extends2; @@ -8898,6 +9681,8 @@ var _BaseMixin = __webpack_require__(/*! ../_util/BaseMixin */ "./node_modules/a var _BaseMixin2 = _interopRequireDefault(_BaseMixin); +var _configProvider = __webpack_require__(/*! ../config-provider */ "./node_modules/ant-design-vue/lib/config-provider/index.js"); + function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } // matchMedia polyfill for @@ -8955,6 +9740,12 @@ exports['default'] = { rowContext: this }; }, + + inject: { + configProvider: { 'default': function _default() { + return _configProvider.ConfigConsumerProps; + } } + }, data: function data() { return { screens: {} @@ -9021,10 +9812,12 @@ exports['default'] = { var type = this.type, justify = this.justify, align = this.align, - _prefixCls = this.prefixCls, - prefixCls = _prefixCls === undefined ? 'ant-row' : _prefixCls, + customizePrefixCls = this.prefixCls, $slots = this.$slots; + var getPrefixCls = this.configProvider.getPrefixCls; + var prefixCls = getPrefixCls('row', customizePrefixCls); + var gutter = this.getGutter(); var classes = (_classes = {}, (0, _defineProperty3['default'])(_classes, prefixCls, !type), (0, _defineProperty3['default'])(_classes, prefixCls + '-' + type, type), (0, _defineProperty3['default'])(_classes, prefixCls + '-' + type + '-' + justify, type && justify), (0, _defineProperty3['default'])(_classes, prefixCls + '-' + type + '-' + align, type && align), _classes); var rowStyle = gutter > 0 ? { @@ -9140,6 +9933,10 @@ Object.defineProperty(exports, "__esModule", { value: true }); +var _objectWithoutProperties2 = __webpack_require__(/*! babel-runtime/helpers/objectWithoutProperties */ "./node_modules/babel-runtime/helpers/objectWithoutProperties.js"); + +var _objectWithoutProperties3 = _interopRequireDefault(_objectWithoutProperties2); + var _babelHelperVueJsxMergeProps = __webpack_require__(/*! babel-helper-vue-jsx-merge-props */ "./node_modules/babel-helper-vue-jsx-merge-props/index.js"); var _babelHelperVueJsxMergeProps2 = _interopRequireDefault(_babelHelperVueJsxMergeProps); @@ -9182,10 +9979,18 @@ var _warning = __webpack_require__(/*! ../_util/warning */ "./node_modules/ant-d var _warning2 = _interopRequireDefault(_warning); +var _LocaleReceiver = __webpack_require__(/*! ../locale-provider/LocaleReceiver */ "./node_modules/ant-design-vue/lib/locale-provider/LocaleReceiver.js"); + +var _LocaleReceiver2 = _interopRequireDefault(_LocaleReceiver); + var _twoTonePrimaryColor = __webpack_require__(/*! ./twoTonePrimaryColor */ "./node_modules/ant-design-vue/lib/icon/twoTonePrimaryColor.js"); var _propsUtil = __webpack_require__(/*! ../_util/props-util */ "./node_modules/ant-design-vue/lib/_util/props-util.js"); +var _base = __webpack_require__(/*! ../base */ "./node_modules/ant-design-vue/lib/base/index.js"); + +var _base2 = _interopRequireDefault(_base); + function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) newObj[key] = obj[key]; } } newObj['default'] = obj; return newObj; } } function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } @@ -9198,102 +10003,137 @@ _iconsVue2['default'].add.apply(_iconsVue2['default'], (0, _toConsumableArray3[' var defaultTheme = 'outlined'; var dangerousTheme = void 0; +function renderIcon(h, locale, context) { + var _extends2; + + var props = context.props, + slots = context.slots, + listeners = context.listeners, + data = context.data; + var type = props.type, + Component = props.component, + viewBox = props.viewBox, + spin = props.spin, + theme = props.theme, + twoToneColor = props.twoToneColor, + rotate = props.rotate, + tabIndex = props.tabIndex; + + var slotsMap = slots(); + var children = (0, _propsUtil.filterEmpty)(slotsMap['default']); + children = children.length === 0 ? undefined : children; + (0, _warning2['default'])(Boolean(type || Component || children), 'Icon should have `type` prop or `component` prop or `children`.'); + + var classString = (0, _classnames2['default'])((0, _extends4['default'])({}, (0, _propsUtil.getClass)(context), (_extends2 = {}, (0, _defineProperty3['default'])(_extends2, 'anticon', true), (0, _defineProperty3['default'])(_extends2, 'anticon-' + type, !!type), _extends2))); + + var svgClassString = (0, _classnames2['default'])((0, _defineProperty3['default'])({}, 'anticon-spin', !!spin || type === 'loading')); + + var svgStyle = rotate ? { + msTransform: 'rotate(' + rotate + 'deg)', + transform: 'rotate(' + rotate + 'deg)' + } : undefined; + + var innerNode = void 0; + + // component > children > type + if (Component) { + var innerSvgProps = { + attrs: (0, _extends4['default'])({}, _utils.svgBaseProps, { + viewBox: viewBox + }), + 'class': svgClassString, + style: svgStyle + }; + if (!viewBox) { + delete innerSvgProps.attrs.viewBox; + } + + innerNode = h( + Component, + innerSvgProps, + [children] + ); + } + if (children) { + (0, _warning2['default'])(Boolean(viewBox) || children.length === 1 && children[0].tag === 'use', 'Make sure that you provide correct `viewBox`' + ' prop (default `0 0 1024 1024`) to the icon.'); + var _innerSvgProps = { + attrs: (0, _extends4['default'])({}, _utils.svgBaseProps), + 'class': svgClassString, + style: svgStyle + }; + innerNode = h( + 'svg', + (0, _babelHelperVueJsxMergeProps2['default'])([_innerSvgProps, { + attrs: { viewBox: viewBox } + }]), + [children] + ); + } + + if (typeof type === 'string') { + var computedType = type; + if (theme) { + var themeInName = (0, _utils.getThemeFromTypeName)(type); + (0, _warning2['default'])(!themeInName || theme === themeInName, 'The icon name \'' + type + '\' already specify a theme \'' + themeInName + '\',' + (' the \'theme\' prop \'' + theme + '\' will be ignored.')); + } + computedType = (0, _utils.withThemeSuffix)((0, _utils.removeTypeTheme)((0, _utils.alias)(computedType)), dangerousTheme || theme || defaultTheme); + innerNode = h(_iconsVue2['default'], { + attrs: { + focusable: 'false', + + type: computedType, + primaryColor: twoToneColor + }, + 'class': svgClassString, style: svgStyle + }); + } + var iconTabIndex = tabIndex; + if (iconTabIndex === undefined && 'click' in listeners) { + iconTabIndex = -1; + } + var attrs = data.attrs, + restDataProps = (0, _objectWithoutProperties3['default'])(data, ['attrs']); + // functional component not support nativeOn,https://github.com/vuejs/vue/issues/7526 + + var iProps = (0, _extends4['default'])({}, restDataProps, { + attrs: (0, _extends4['default'])({}, attrs, { + 'aria-label': type && locale.icon + ': ' + type, + tabIndex: iconTabIndex + }), + on: (0, _extends4['default'])({}, listeners, data.nativeOn), + 'class': classString, + staticClass: '' + }); + return h( + 'i', + iProps, + [innerNode] + ); +} + var Icon = { functional: true, name: 'AIcon', props: { + tabIndex: _vueTypes2['default'].number, type: _vueTypes2['default'].string, component: _vueTypes2['default'].any, viewBox: _vueTypes2['default'].any, spin: _vueTypes2['default'].bool.def(false), + rotate: _vueTypes2['default'].number, theme: _vueTypes2['default'].oneOf(['filled', 'outlined', 'twoTone']), - twoToneColor: _vueTypes2['default'].string + twoToneColor: _vueTypes2['default'].string, + role: _vueTypes2['default'].string }, render: function render(h, context) { - var _extends2; - - var props = context.props, - slots = context.slots, - listeners = context.listeners, - data = context.data; - var type = props.type, - Component = props.component, - viewBox = props.viewBox, - spin = props.spin, - theme = props.theme, - twoToneColor = props.twoToneColor; - - var slotsMap = slots(); - var children = (0, _propsUtil.filterEmpty)(slotsMap['default']); - children = children.length === 0 ? undefined : children; - (0, _warning2['default'])(Boolean(type || Component || children), 'Icon should have `type` prop or `component` prop or `children`.'); - - var classString = (0, _classnames2['default'])((0, _extends4['default'])({}, (0, _propsUtil.getClass)(context), (_extends2 = {}, (0, _defineProperty3['default'])(_extends2, 'anticon', true), (0, _defineProperty3['default'])(_extends2, 'anticon-' + type, !!type), _extends2))); - - var svgClassString = (0, _classnames2['default'])((0, _defineProperty3['default'])({}, 'anticon-spin', !!spin || type === 'loading')); - - var innerNode = void 0; - - // component > children > type - if (Component) { - var innerSvgProps = { - attrs: (0, _extends4['default'])({}, _utils.svgBaseProps, { - viewBox: viewBox - }), - 'class': svgClassString - }; - if (!viewBox) { - delete innerSvgProps.attrs.viewBox; - } - - innerNode = h( - Component, - innerSvgProps, - [children] - ); - } - if (children) { - (0, _warning2['default'])(Boolean(viewBox) || children.length === 1 && children[0].tag === 'use', 'Make sure that you provide correct `viewBox`' + ' prop (default `0 0 1024 1024`) to the icon.'); - var _innerSvgProps = { - attrs: (0, _extends4['default'])({}, _utils.svgBaseProps), - 'class': svgClassString - }; - innerNode = h( - 'svg', - (0, _babelHelperVueJsxMergeProps2['default'])([_innerSvgProps, { - attrs: { viewBox: viewBox } - }]), - [children] - ); - } - - if (typeof type === 'string') { - var computedType = type; - if (theme) { - var themeInName = (0, _utils.getThemeFromTypeName)(type); - (0, _warning2['default'])(!themeInName || theme === themeInName, 'The icon name \'' + type + '\' already specify a theme \'' + themeInName + '\',' + (' the \'theme\' prop \'' + theme + '\' will be ignored.')); - } - computedType = (0, _utils.withThemeSuffix)((0, _utils.removeTypeTheme)((0, _utils.alias)(computedType)), dangerousTheme || theme || defaultTheme); - innerNode = h(_iconsVue2['default'], { - attrs: { - focusable: 'false', - - type: computedType, - primaryColor: twoToneColor - }, - 'class': svgClassString }); - } - // functional component not support nativeOn,https://github.com/vuejs/vue/issues/7526 - var iProps = (0, _extends4['default'])({}, data, { - on: (0, _extends4['default'])({}, listeners, data.nativeOn), - 'class': classString, - staticClass: '' + return h(_LocaleReceiver2['default'], { + attrs: { + componentName: 'Icon' + }, + scopedSlots: { 'default': function _default(locale) { + return renderIcon(h, locale, context); + } } }); - return h( - 'i', - iProps, - [innerNode] - ); } }; @@ -9303,6 +10143,7 @@ Icon.setTwoToneColor = _twoTonePrimaryColor.setTwoToneColor; /* istanbul ignore next */ Icon.install = function (Vue) { + Vue.use(_base2['default']); Vue.component(Icon.name, Icon); }; @@ -9467,6 +10308,8 @@ var _isNumeric = __webpack_require__(/*! ../_util/isNumeric */ "./node_modules/a var _isNumeric2 = _interopRequireDefault(_isNumeric); +var _configProvider = __webpack_require__(/*! ../config-provider */ "./node_modules/ant-design-vue/lib/config-provider/index.js"); + function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } // matchMedia polyfill for @@ -9537,14 +10380,12 @@ exports['default'] = { event: 'collapse' }, props: (0, _propsUtil.initDefaultProps)(SiderProps, { - prefixCls: 'ant-layout-sider', collapsible: false, defaultCollapsed: false, reverseArrow: false, width: 200, collapsedWidth: 80 }), - data: function data() { this.uniqueId = generateId('ant-sider-'); var matchMedia = void 0; @@ -9576,6 +10417,9 @@ exports['default'] = { inject: { siderHook: { 'default': function _default() { return {}; + } }, + configProvider: { 'default': function _default() { + return _configProvider.ConfigConsumerProps; } } }, // getChildContext() { @@ -9647,13 +10491,16 @@ exports['default'] = { var h = arguments[0]; var _getOptionProps = (0, _propsUtil.getOptionProps)(this), - prefixCls = _getOptionProps.prefixCls, + customizePrefixCls = _getOptionProps.prefixCls, theme = _getOptionProps.theme, collapsible = _getOptionProps.collapsible, reverseArrow = _getOptionProps.reverseArrow, width = _getOptionProps.width, collapsedWidth = _getOptionProps.collapsedWidth; + var getPrefixCls = this.configProvider.getPrefixCls; + var prefixCls = getPrefixCls('layout-sider', customizePrefixCls); + var trigger = (0, _propsUtil.getComponentFromProp)(this, 'trigger'); var rawWidth = this.sCollapsed ? collapsedWidth : width; // use "px" as fallback unit for width @@ -9665,7 +10512,9 @@ exports['default'] = { on: { 'click': this.toggle }, - 'class': prefixCls + '-zero-width-trigger' }, + + 'class': prefixCls + '-zero-width-trigger ' + prefixCls + '-zero-width-trigger-' + (reverseArrow ? 'right' : 'left') + }, [h(_icon2['default'], { attrs: { type: 'bars' } })] @@ -9741,12 +10590,17 @@ var _Sider = __webpack_require__(/*! ./Sider */ "./node_modules/ant-design-vue/l var _Sider2 = _interopRequireDefault(_Sider); +var _base = __webpack_require__(/*! ../base */ "./node_modules/ant-design-vue/lib/base/index.js"); + +var _base2 = _interopRequireDefault(_base); + function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } _layout2['default'].Sider = _Sider2['default']; /* istanbul ignore next */ _layout2['default'].install = function (Vue) { + Vue.use(_base2['default']); Vue.component(_layout2['default'].name, _layout2['default']); Vue.component(_layout2['default'].Header.name, _layout2['default'].Header); Vue.component(_layout2['default'].Footer.name, _layout2['default'].Footer); @@ -9794,6 +10648,8 @@ var _classnames2 = _interopRequireDefault(_classnames); var _propsUtil = __webpack_require__(/*! ../_util/props-util */ "./node_modules/ant-design-vue/lib/_util/props-util.js"); +var _configProvider = __webpack_require__(/*! ../config-provider */ "./node_modules/ant-design-vue/lib/config-provider/index.js"); + function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } var BasicProps = exports.BasicProps = { @@ -9806,9 +10662,18 @@ function generator(props, name) { return { name: name, props: BasicComponent.props, + inject: { + configProvider: { 'default': function _default() { + return _configProvider.ConfigConsumerProps; + } } + }, render: function render() { var h = arguments[0]; - var prefixCls = props.prefixCls; + var suffixCls = props.suffixCls; + var customizePrefixCls = this.$props.prefixCls; + + var getPrefixCls = this.configProvider.getPrefixCls; + var prefixCls = getPrefixCls(suffixCls, customizePrefixCls); var basicComponentProps = { props: (0, _extends3['default'])({ @@ -9890,19 +10755,19 @@ var BasicLayout = { }; var Layout = generator({ - prefixCls: 'ant-layout' + suffixCls: 'layout' }, 'ALayout')(BasicLayout); var Header = generator({ - prefixCls: 'ant-layout-header' + suffixCls: 'layout-header' }, 'ALayoutHeader')(Basic); var Footer = generator({ - prefixCls: 'ant-layout-footer' + suffixCls: 'layout-footer' }, 'ALayoutFooter')(Basic); var Content = generator({ - prefixCls: 'ant-layout-content' + suffixCls: 'layout-content' }, 'ALayoutContent')(Basic); Layout.Header = Header; @@ -10024,7 +10889,6 @@ exports['default'] = { DatePicker: _en_US4['default'], TimePicker: _en_US6['default'], Calendar: _en_US8['default'], - // locales for all comoponents global: { placeholder: 'Please select' }, @@ -10032,7 +10896,6 @@ exports['default'] = { filterTitle: 'Filter menu', filterConfirm: 'OK', filterReset: 'Reset', - emptyText: 'No data', selectAll: 'Select current page', selectInvert: 'Invert current page', sortTitle: 'Sort' @@ -10048,19 +10911,21 @@ exports['default'] = { }, Transfer: { titles: ['', ''], - notFoundContent: 'Not Found', searchPlaceholder: 'Search here', itemUnit: 'item', itemsUnit: 'items' }, - Select: { - notFoundContent: 'Not Found' - }, Upload: { uploading: 'Uploading...', removeFile: 'Remove file', uploadError: 'Upload error', previewFile: 'Preview file' + }, + Empty: { + description: 'No Data' + }, + Icon: { + icon: 'icon' } }; @@ -10221,6 +11086,12 @@ var _commonPropsType = __webpack_require__(/*! ../vc-menu/commonPropsType */ "./ var _commonPropsType2 = _interopRequireDefault(_commonPropsType); +var _configProvider = __webpack_require__(/*! ../config-provider */ "./node_modules/ant-design-vue/lib/config-provider/index.js"); + +var _base = __webpack_require__(/*! ../base */ "./node_modules/ant-design-vue/lib/base/index.js"); + +var _base2 = _interopRequireDefault(_base); + function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } var MenuMode = exports.MenuMode = _vueTypes2['default'].oneOf(['vertical', 'vertical-left', 'vertical-right', 'horizontal', 'inline']); @@ -10235,7 +11106,7 @@ var menuProps = exports.menuProps = (0, _extends3['default'])({}, _commonPropsTy defaultOpenKeys: _vueTypes2['default'].array, openAnimation: _vueTypes2['default'].oneOfType([_vueTypes2['default'].string, _vueTypes2['default'].object]), openTransitionName: _vueTypes2['default'].string, - prefixCls: _vueTypes2['default'].string.def('ant-menu'), + prefixCls: _vueTypes2['default'].string, multiple: _vueTypes2['default'].bool, inlineIndent: _vueTypes2['default'].number.def(24), inlineCollapsed: _vueTypes2['default'].bool, @@ -10262,7 +11133,7 @@ var Menu = { return {}; } }, configProvider: { 'default': function _default() { - return {}; + return _configProvider.ConfigConsumerProps; } } }, model: { @@ -10431,10 +11302,12 @@ var Menu = { var collapsedWidth = layoutSiderContext.collapsedWidth; var getContextPopupContainer = this.configProvider.getPopupContainer; var _$props2 = this.$props, - prefixCls = _$props2.prefixCls, + customizePrefixCls = _$props2.prefixCls, theme = _$props2.theme, getPopupContainer = _$props2.getPopupContainer; + var getPrefixCls = this.configProvider.getPrefixCls; + var prefixCls = getPrefixCls('menu', customizePrefixCls); var menuMode = this.getRealMenuMode(); var menuOpenAnimation = this.getMenuOpenAnimation(menuMode); @@ -10444,7 +11317,8 @@ var Menu = { props: (0, _extends3['default'])({}, (0, _omit2['default'])(this.$props, ['inlineCollapsed']), { getPopupContainer: getPopupContainer || getContextPopupContainer, openKeys: this.sOpenKeys, - mode: menuMode + mode: menuMode, + prefixCls: prefixCls }), on: (0, _extends3['default'])({}, $listeners, { select: this.handleSelect, @@ -10486,6 +11360,7 @@ var Menu = { /* istanbul ignore next */ Menu.install = function (Vue) { + Vue.use(_base2['default']); Vue.component(Menu.name, Menu); Vue.component(Menu.Item.name, Menu.Item); Vue.component(Menu.SubMenu.name, Menu.SubMenu); @@ -10654,6 +11529,10 @@ var _ActionButton2 = _interopRequireDefault(_ActionButton); var _locale = __webpack_require__(/*! ./locale */ "./node_modules/ant-design-vue/lib/modal/locale.js"); +var _warning = __webpack_require__(/*! ../_util/warning */ "./node_modules/ant-design-vue/lib/_util/warning.js"); + +var _warning2 = _interopRequireDefault(_warning); + function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } exports['default'] = { @@ -10672,10 +11551,13 @@ exports['default'] = { maskStyle = props.maskStyle, okButtonProps = props.okButtonProps, cancelButtonProps = props.cancelButtonProps, + _props$iconType = props.iconType, + iconType = _props$iconType === undefined ? 'question-circle' : _props$iconType, _props$closable = props.closable, closable = _props$closable === undefined ? false : _props$closable; - var iconType = props.iconType || 'question-circle'; + (0, _warning2['default'])(!('iconType' in props), 'The property \'iconType\' is deprecated. Use the property \'icon\' instead.'); + var icon = props.icon ? props.icon : iconType; var okType = props.okType || 'primary'; var prefixCls = props.prefixCls || 'ant-modal'; var contentPrefixCls = prefixCls + '-confirm'; @@ -10683,12 +11565,15 @@ exports['default'] = { var okCancel = 'okCancel' in props ? props.okCancel : true; var width = props.width || 416; var style = props.style || {}; + var mask = props.mask === undefined ? true : props.mask; // 默认为 false,保持旧版默认行为 var maskClosable = props.maskClosable === undefined ? false : props.maskClosable; var runtimeLocale = (0, _locale.getConfirmLocale)(); var okText = props.okText || (okCancel ? runtimeLocale.okText : runtimeLocale.justOkText); var cancelText = props.cancelText || runtimeLocale.cancelText; var autoFocusButton = props.autoFocusButton === null ? false : props.autoFocusButton || 'ok'; + var transitionName = props.transitionName || 'zoom'; + var maskTransitionName = props.maskTransitionName || 'fade'; var classString = (0, _classnames2['default'])(contentPrefixCls, contentPrefixCls + '-' + props.type, prefixCls + '-' + props.type, props['class']); @@ -10704,6 +11589,9 @@ exports['default'] = { }, [cancelText] ); + var iconNode = typeof icon === 'string' ? h(_icon2['default'], { + attrs: { type: icon } + }) : icon(h); return h( _Modal2['default'], @@ -10716,9 +11604,10 @@ exports['default'] = { visible: visible, closable: closable, title: '', - transitionName: 'zoom', + transitionName: transitionName, footer: '', - maskTransitionName: 'fade', + maskTransitionName: maskTransitionName, + mask: mask, maskClosable: maskClosable, maskStyle: maskStyle, @@ -10741,16 +11630,14 @@ exports['default'] = { [h( 'div', { 'class': contentPrefixCls + '-body' }, - [h(_icon2['default'], { - attrs: { type: iconType } - }), h( + [iconNode, h( 'span', { 'class': contentPrefixCls + '-title' }, - [props.title] + [typeof props.title === 'function' ? props.title(h) : props.title] ), h( 'div', { 'class': contentPrefixCls + '-content' }, - [props.content] + [typeof props.content === 'function' ? props.content(h) : props.content] )] ), h( 'div', @@ -10789,6 +11676,7 @@ exports['default'] = { Object.defineProperty(exports, "__esModule", { value: true }); +exports.destroyFns = undefined; var _defineProperty2 = __webpack_require__(/*! babel-runtime/helpers/defineProperty */ "./node_modules/babel-runtime/helpers/defineProperty.js"); @@ -10814,6 +11702,12 @@ var _addEventListener = __webpack_require__(/*! ../_util/Dom/addEventListener */ var _addEventListener2 = _interopRequireDefault(_addEventListener); +var _locale = __webpack_require__(/*! ./locale */ "./node_modules/ant-design-vue/lib/modal/locale.js"); + +var _icon = __webpack_require__(/*! ../icon */ "./node_modules/ant-design-vue/lib/icon/index.js"); + +var _icon2 = _interopRequireDefault(_icon); + var _button = __webpack_require__(/*! ../button */ "./node_modules/ant-design-vue/lib/button/index.js"); var _button2 = _interopRequireDefault(_button); @@ -10826,13 +11720,9 @@ var _LocaleReceiver = __webpack_require__(/*! ../locale-provider/LocaleReceiver var _LocaleReceiver2 = _interopRequireDefault(_LocaleReceiver); -var _locale = __webpack_require__(/*! ./locale */ "./node_modules/ant-design-vue/lib/modal/locale.js"); - var _propsUtil = __webpack_require__(/*! ../_util/props-util */ "./node_modules/ant-design-vue/lib/_util/props-util.js"); -var _icon = __webpack_require__(/*! ../icon */ "./node_modules/ant-design-vue/lib/icon/index.js"); - -var _icon2 = _interopRequireDefault(_icon); +var _configProvider = __webpack_require__(/*! ../config-provider */ "./node_modules/ant-design-vue/lib/config-provider/index.js"); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } @@ -10867,13 +11757,16 @@ var modalProps = function modalProps() { /** 底部内容*/ footer: _vueTypes2['default'].any, /** 确认按钮文字*/ - okText: _vueTypes2['default'].string, + okText: _vueTypes2['default'].any, /** 确认按钮类型*/ okType: ButtonType, /** 取消按钮文字*/ - cancelText: _vueTypes2['default'].string, + cancelText: _vueTypes2['default'].any, + icon: _vueTypes2['default'].any, /** 点击蒙层是否允许关闭*/ maskClosable: _vueTypes2['default'].bool, + /** 强制渲染 Modal*/ + forceRender: _vueTypes2['default'].bool, okButtonProps: _vueTypes2['default'].object, cancelButtonProps: _vueTypes2['default'].object, destroyOnClose: _vueTypes2['default'].bool, @@ -10891,6 +11784,8 @@ var modalProps = function modalProps() { return (0, _propsUtil.initDefaultProps)(props, defaultProps); }; +var destroyFns = exports.destroyFns = []; + exports['default'] = { name: 'AModal', model: { @@ -10898,7 +11793,6 @@ exports['default'] = { event: 'change' }, props: modalProps({ - prefixCls: 'ant-modal', width: 520, transitionName: 'zoom', maskTransitionName: 'fade', @@ -10908,6 +11802,11 @@ exports['default'] = { // okButtonDisabled: false, // cancelButtonDisabled: false, }), + inject: { + configProvider: { 'default': function _default() { + return _configProvider.ConfigConsumerProps; + } } + }, mounted: function mounted() { if (mousePositionEventBinded) { return; @@ -10969,14 +11868,17 @@ exports['default'] = { render: function render() { var h = arguments[0]; - var visible = this.visible, + var customizePrefixCls = this.prefixCls, + visible = this.visible, wrapClassName = this.wrapClassName, centered = this.centered, - prefixCls = this.prefixCls, $listeners = this.$listeners, $slots = this.$slots; + var getPrefixCls = this.configProvider.getPrefixCls; + var prefixCls = getPrefixCls('modal', customizePrefixCls); + var defaultFooter = h(_LocaleReceiver2['default'], { attrs: { componentName: 'Modal', @@ -11046,6 +11948,12 @@ var _ConfirmDialog = __webpack_require__(/*! ./ConfirmDialog */ "./node_modules/ var _ConfirmDialog2 = _interopRequireDefault(_ConfirmDialog); +var _Modal = __webpack_require__(/*! ./Modal */ "./node_modules/ant-design-vue/lib/modal/Modal.js"); + +var _base = __webpack_require__(/*! ../base */ "./node_modules/ant-design-vue/lib/base/index.js"); + +var _base2 = _interopRequireDefault(_base); + function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } function confirm(config) { @@ -11081,11 +11989,19 @@ function confirm(config) { if (config.onCancel && triggerCancel) { config.onCancel.apply(config, args); } + for (var i = 0; i < _Modal.destroyFns.length; i++) { + var fn = _Modal.destroyFns[i]; + if (fn === close) { + _Modal.destroyFns.splice(i, 1); + break; + } + } } function render(props) { confirmDialogProps.props = props; - return new _vue2['default']({ + var V = _base2['default'].Vue || _vue2['default']; + return new V({ el: el, data: function data() { return { confirmDialogProps: confirmDialogProps }; @@ -11101,7 +12017,7 @@ function confirm(config) { } confirmDialogInstance = render(currentConfig); - + _Modal.destroyFns.push(close); return { destroy: close, update: update @@ -11136,6 +12052,14 @@ var _confirm = __webpack_require__(/*! ./confirm */ "./node_modules/ant-design-v var _confirm2 = _interopRequireDefault(_confirm); +var _icon = __webpack_require__(/*! ../icon */ "./node_modules/ant-design-vue/lib/icon/index.js"); + +var _icon2 = _interopRequireDefault(_icon); + +var _base = __webpack_require__(/*! ../base */ "./node_modules/ant-design-vue/lib/base/index.js"); + +var _base2 = _interopRequireDefault(_base); + function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } // export { ActionButtonProps } from './ActionButton' @@ -11144,7 +12068,11 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'd var info = function info(props) { var config = (0, _extends3['default'])({ type: 'info', - iconType: 'info-circle', + icon: function icon(h) { + return h(_icon2['default'], { + attrs: { type: 'info-circle' } + }); + }, okCancel: false }, props); return (0, _confirm2['default'])(config); @@ -11153,7 +12081,11 @@ var info = function info(props) { var success = function success(props) { var config = (0, _extends3['default'])({ type: 'success', - iconType: 'check-circle', + icon: function icon(h) { + return h(_icon2['default'], { + attrs: { type: 'check-circle' } + }); + }, okCancel: false }, props); return (0, _confirm2['default'])(config); @@ -11162,7 +12094,11 @@ var success = function success(props) { var error = function error(props) { var config = (0, _extends3['default'])({ type: 'error', - iconType: 'close-circle', + icon: function icon(h) { + return h(_icon2['default'], { + attrs: { type: 'close-circle' } + }); + }, okCancel: false }, props); return (0, _confirm2['default'])(config); @@ -11171,7 +12107,11 @@ var error = function error(props) { var warning = function warning(props) { var config = (0, _extends3['default'])({ type: 'warning', - iconType: 'exclamation-circle', + icon: function icon(h) { + return h(_icon2['default'], { + attrs: { type: 'exclamation-circle' } + }); + }, okCancel: false }, props); return (0, _confirm2['default'])(config); @@ -11192,8 +12132,18 @@ _Modal2['default'].warning = warning; _Modal2['default'].warn = warn; _Modal2['default'].confirm = confirm; +_Modal2['default'].destroyAll = function () { + while (_Modal.destroyFns.length) { + var close = _Modal.destroyFns.pop(); + if (close) { + close(); + } + } +}; + /* istanbul ignore next */ _Modal2['default'].install = function (Vue) { + Vue.use(_base2['default']); Vue.component(_Modal2['default'].name, _Modal2['default']); }; @@ -11533,7 +12483,7 @@ var _extends2 = __webpack_require__(/*! babel-runtime/helpers/extends */ "./node var _extends3 = _interopRequireDefault(_extends2); -var _warning = __webpack_require__(/*! warning */ "./node_modules/warning/browser.js"); +var _warning = __webpack_require__(/*! ../_util/warning */ "./node_modules/ant-design-vue/lib/_util/warning.js"); var _warning2 = _interopRequireDefault(_warning); @@ -11547,13 +12497,7 @@ var _vueTypes2 = _interopRequireDefault(_vueTypes); var _vcSelect = __webpack_require__(/*! ../vc-select */ "./node_modules/ant-design-vue/lib/vc-select/index.js"); -var _LocaleReceiver = __webpack_require__(/*! ../locale-provider/LocaleReceiver */ "./node_modules/ant-design-vue/lib/locale-provider/LocaleReceiver.js"); - -var _LocaleReceiver2 = _interopRequireDefault(_LocaleReceiver); - -var _default2 = __webpack_require__(/*! ../locale-provider/default */ "./node_modules/ant-design-vue/lib/locale-provider/default.js"); - -var _default3 = _interopRequireDefault(_default2); +var _configProvider = __webpack_require__(/*! ../config-provider */ "./node_modules/ant-design-vue/lib/config-provider/index.js"); var _propsUtil = __webpack_require__(/*! ../_util/props-util */ "./node_modules/ant-design-vue/lib/_util/props-util.js"); @@ -11563,6 +12507,10 @@ var _icon2 = _interopRequireDefault(_icon); var _vnode = __webpack_require__(/*! ../_util/vnode */ "./node_modules/ant-design-vue/lib/_util/vnode.js"); +var _base = __webpack_require__(/*! ../base */ "./node_modules/ant-design-vue/lib/base/index.js"); + +var _base2 = _interopRequireDefault(_base); + function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } var AbstractSelectProps = function AbstractSelectProps() { @@ -11597,7 +12545,7 @@ var AbstractSelectProps = function AbstractSelectProps() { }; }; var Value = _vueTypes2['default'].shape({ - key: _vueTypes2['default'].string + key: _vueTypes2['default'].oneOfType([_vueTypes2['default'].string, _vueTypes2['default'].number]) }).loose; var SelectValue = _vueTypes2['default'].oneOfType([_vueTypes2['default'].string, _vueTypes2['default'].number, _vueTypes2['default'].arrayOf(_vueTypes2['default'].oneOfType([Value, _vueTypes2['default'].string, _vueTypes2['default'].number])), Value]); @@ -11611,6 +12559,7 @@ var SelectProps = (0, _extends3['default'])({}, AbstractSelectProps(), { firstActiveValue: _vueTypes2['default'].oneOfType([String, _vueTypes2['default'].arrayOf(String)]), maxTagCount: _vueTypes2['default'].number, maxTagPlaceholder: _vueTypes2['default'].any, + maxTagTextLength: _vueTypes2['default'].number, dropdownMatchSelectWidth: _vueTypes2['default'].bool, optionFilterProp: _vueTypes2['default'].string, labelInValue: _vueTypes2['default'].boolean, @@ -11646,7 +12595,6 @@ var Select = { OptGroup: (0, _extends3['default'])({}, _vcSelect.OptGroup, { name: 'ASelectOptGroup' }), name: 'ASelect', props: (0, _extends3['default'])({}, SelectProps, { - prefixCls: _vueTypes2['default'].string.def('ant-select'), showSearch: _vueTypes2['default'].bool.def(false), transitionName: _vueTypes2['default'].string.def('slide-up'), choiceTransitionName: _vueTypes2['default'].string.def('zoom') @@ -11664,7 +12612,7 @@ var Select = { inject: { configProvider: { 'default': function _default() { - return {}; + return _configProvider.ConfigConsumerProps; } } }, created: function created() { @@ -11681,24 +12629,25 @@ var Select = { blur: function blur() { this.$refs.vcSelect.blur(); }, - getNotFoundContent: function getNotFoundContent(locale) { + getNotFoundContent: function getNotFoundContent(renderEmpty) { + var h = this.$createElement; var notFoundContent = (0, _propsUtil.getComponentFromProp)(this, 'notFoundContent'); + if (notFoundContent !== undefined) { + return notFoundContent; + } if (this.isCombobox()) { - // AutoComplete don't have notFoundContent defaultly - return notFoundContent === undefined ? null : notFoundContent; + return null; } - return notFoundContent === undefined ? locale.notFoundContent : notFoundContent; + return renderEmpty(h, 'Select'); }, isCombobox: function isCombobox() { var mode = this.mode; return mode === 'combobox' || mode === SECRET_COMBOBOX_MODE_DO_NOT_USE; }, - renderSuffixIcon: function renderSuffixIcon() { + renderSuffixIcon: function renderSuffixIcon(prefixCls) { var h = this.$createElement; - var _$props = this.$props, - prefixCls = _$props.prefixCls, - loading = _$props.loading; + var loading = this.$props.loading; var suffixIcon = (0, _propsUtil.getComponentFromProp)(this, 'suffixIcon'); suffixIcon = Array.isArray(suffixIcon) ? suffixIcon[0] : suffixIcon; @@ -11713,109 +12662,103 @@ var Select = { return h(_icon2['default'], { attrs: { type: 'down' }, 'class': prefixCls + '-arrow-icon' }); - }, - renderSelect: function renderSelect(locale) { - var _cls; + } + }, + render: function render() { + var _cls; - var h = this.$createElement; + var h = arguments[0]; - var _getOptionProps = (0, _propsUtil.getOptionProps)(this), - prefixCls = _getOptionProps.prefixCls, - size = _getOptionProps.size, - mode = _getOptionProps.mode, - options = _getOptionProps.options, - getPopupContainer = _getOptionProps.getPopupContainer, - restProps = (0, _objectWithoutProperties3['default'])(_getOptionProps, ['prefixCls', 'size', 'mode', 'options', 'getPopupContainer']); + var _getOptionProps = (0, _propsUtil.getOptionProps)(this), + customizePrefixCls = _getOptionProps.prefixCls, + size = _getOptionProps.size, + mode = _getOptionProps.mode, + options = _getOptionProps.options, + getPopupContainer = _getOptionProps.getPopupContainer, + restProps = (0, _objectWithoutProperties3['default'])(_getOptionProps, ['prefixCls', 'size', 'mode', 'options', 'getPopupContainer']); - var getContextPopupContainer = this.configProvider.getPopupContainer; + var getPrefixCls = this.configProvider.getPrefixCls; + var renderEmpty = this.configProvider.renderEmpty; + var prefixCls = getPrefixCls('select', customizePrefixCls); - var removeIcon = (0, _propsUtil.getComponentFromProp)(this, 'removeIcon'); - removeIcon = Array.isArray(removeIcon) ? removeIcon[0] : removeIcon; - var clearIcon = (0, _propsUtil.getComponentFromProp)(this, 'clearIcon'); - clearIcon = Array.isArray(clearIcon) ? clearIcon[0] : clearIcon; - var menuItemSelectedIcon = (0, _propsUtil.getComponentFromProp)(this, 'menuItemSelectedIcon'); - menuItemSelectedIcon = Array.isArray(menuItemSelectedIcon) ? menuItemSelectedIcon[0] : menuItemSelectedIcon; - var rest = (0, _omit2['default'])(restProps, ['inputIcon', 'removeIcon', 'clearIcon', 'suffixIcon', 'menuItemSelectedIcon']); + var getContextPopupContainer = this.configProvider.getPopupContainer; - var cls = (_cls = {}, (0, _defineProperty3['default'])(_cls, prefixCls + '-lg', size === 'large'), (0, _defineProperty3['default'])(_cls, prefixCls + '-sm', size === 'small'), _cls); + var removeIcon = (0, _propsUtil.getComponentFromProp)(this, 'removeIcon'); + removeIcon = Array.isArray(removeIcon) ? removeIcon[0] : removeIcon; + var clearIcon = (0, _propsUtil.getComponentFromProp)(this, 'clearIcon'); + clearIcon = Array.isArray(clearIcon) ? clearIcon[0] : clearIcon; + var menuItemSelectedIcon = (0, _propsUtil.getComponentFromProp)(this, 'menuItemSelectedIcon'); + menuItemSelectedIcon = Array.isArray(menuItemSelectedIcon) ? menuItemSelectedIcon[0] : menuItemSelectedIcon; + var rest = (0, _omit2['default'])(restProps, ['inputIcon', 'removeIcon', 'clearIcon', 'suffixIcon', 'menuItemSelectedIcon']); - var optionLabelProp = this.$props.optionLabelProp; + var cls = (_cls = {}, (0, _defineProperty3['default'])(_cls, prefixCls + '-lg', size === 'large'), (0, _defineProperty3['default'])(_cls, prefixCls + '-sm', size === 'small'), _cls); - if (this.isCombobox()) { - // children 带 dom 结构时,无法填入输入框 - optionLabelProp = optionLabelProp || 'value'; - } + var optionLabelProp = this.$props.optionLabelProp; - var modeConfig = { - multiple: mode === 'multiple', - tags: mode === 'tags', - combobox: this.isCombobox() - }; - var finalRemoveIcon = removeIcon && ((0, _propsUtil.isValidElement)(removeIcon) ? (0, _vnode.cloneElement)(removeIcon, { 'class': prefixCls + '-remove-icon' }) : removeIcon) || h(_icon2['default'], { - attrs: { type: 'close' }, - 'class': prefixCls + '-remove-icon' }); + if (this.isCombobox()) { + // children 带 dom 结构时,无法填入输入框 + optionLabelProp = optionLabelProp || 'value'; + } - var finalClearIcon = clearIcon && ((0, _propsUtil.isValidElement)(clearIcon) ? (0, _vnode.cloneElement)(clearIcon, { 'class': prefixCls + '-clear-icon' }) : clearIcon) || h(_icon2['default'], { - attrs: { type: 'close-circle', theme: 'filled' }, - 'class': prefixCls + '-clear-icon' }); + var modeConfig = { + multiple: mode === 'multiple', + tags: mode === 'tags', + combobox: this.isCombobox() + }; + var finalRemoveIcon = removeIcon && ((0, _propsUtil.isValidElement)(removeIcon) ? (0, _vnode.cloneElement)(removeIcon, { 'class': prefixCls + '-remove-icon' }) : removeIcon) || h(_icon2['default'], { + attrs: { type: 'close' }, + 'class': prefixCls + '-remove-icon' }); - var finalMenuItemSelectedIcon = menuItemSelectedIcon && ((0, _propsUtil.isValidElement)(menuItemSelectedIcon) ? (0, _vnode.cloneElement)(menuItemSelectedIcon, { 'class': prefixCls + '-selected-icon' }) : menuItemSelectedIcon) || h(_icon2['default'], { - attrs: { type: 'check' }, - 'class': prefixCls + '-selected-icon' }); + var finalClearIcon = clearIcon && ((0, _propsUtil.isValidElement)(clearIcon) ? (0, _vnode.cloneElement)(clearIcon, { 'class': prefixCls + '-clear-icon' }) : clearIcon) || h(_icon2['default'], { + attrs: { type: 'close-circle', theme: 'filled' }, + 'class': prefixCls + '-clear-icon' }); - var selectProps = { - props: (0, _extends3['default'])({ - inputIcon: this.renderSuffixIcon(), - removeIcon: finalRemoveIcon, - clearIcon: finalClearIcon, - menuItemSelectedIcon: finalMenuItemSelectedIcon - }, rest, modeConfig, { - prefixCls: prefixCls, - optionLabelProp: optionLabelProp || 'children', - notFoundContent: this.getNotFoundContent(locale), - maxTagPlaceholder: (0, _propsUtil.getComponentFromProp)(this, 'maxTagPlaceholder'), - placeholder: (0, _propsUtil.getComponentFromProp)(this, 'placeholder'), - children: options ? options.map(function (option) { - var key = option.key, - _option$label = option.label, - label = _option$label === undefined ? option.title : _option$label, - on = option.on, - cls = option['class'], - style = option.style, - restOption = (0, _objectWithoutProperties3['default'])(option, ['key', 'label', 'on', 'class', 'style']); + var finalMenuItemSelectedIcon = menuItemSelectedIcon && ((0, _propsUtil.isValidElement)(menuItemSelectedIcon) ? (0, _vnode.cloneElement)(menuItemSelectedIcon, { 'class': prefixCls + '-selected-icon' }) : menuItemSelectedIcon) || h(_icon2['default'], { + attrs: { type: 'check' }, + 'class': prefixCls + '-selected-icon' }); - return h( - _vcSelect.Option, - (0, _babelHelperVueJsxMergeProps2['default'])([{ key: key }, { props: restOption, on: on, 'class': cls, style: style }]), - [label] - ); - }) : (0, _propsUtil.filterEmpty)(this.$slots['default']), - __propsSymbol__: Symbol(), - dropdownRender: (0, _propsUtil.getComponentFromProp)(this, 'dropdownRender', {}, false), - getPopupContainer: getPopupContainer || getContextPopupContainer - }), - on: this.$listeners, - 'class': cls, - ref: 'vcSelect' - }; - return h(_vcSelect.Select, selectProps); - } - }, - render: function render() { - var h = arguments[0]; + var selectProps = { + props: (0, _extends3['default'])({ + inputIcon: this.renderSuffixIcon(prefixCls), + removeIcon: finalRemoveIcon, + clearIcon: finalClearIcon, + menuItemSelectedIcon: finalMenuItemSelectedIcon + }, rest, modeConfig, { + prefixCls: prefixCls, + optionLabelProp: optionLabelProp || 'children', + notFoundContent: this.getNotFoundContent(renderEmpty), + maxTagPlaceholder: (0, _propsUtil.getComponentFromProp)(this, 'maxTagPlaceholder'), + placeholder: (0, _propsUtil.getComponentFromProp)(this, 'placeholder'), + children: options ? options.map(function (option) { + var key = option.key, + _option$label = option.label, + label = _option$label === undefined ? option.title : _option$label, + on = option.on, + cls = option['class'], + style = option.style, + restOption = (0, _objectWithoutProperties3['default'])(option, ['key', 'label', 'on', 'class', 'style']); - return h(_LocaleReceiver2['default'], { - attrs: { - componentName: 'Select', - defaultLocale: _default3['default'].Select - }, - scopedSlots: { 'default': this.renderSelect } - }); + return h( + _vcSelect.Option, + (0, _babelHelperVueJsxMergeProps2['default'])([{ key: key }, { props: restOption, on: on, 'class': cls, style: style }]), + [label] + ); + }) : (0, _propsUtil.filterEmpty)(this.$slots['default']), + __propsSymbol__: Symbol(), + dropdownRender: (0, _propsUtil.getComponentFromProp)(this, 'dropdownRender', {}, false), + getPopupContainer: getPopupContainer || getContextPopupContainer + }), + on: this.$listeners, + 'class': cls, + ref: 'vcSelect' + }; + return h(_vcSelect.Select, selectProps); } }; /* istanbul ignore next */ Select.install = function (Vue) { + Vue.use(_base2['default']); Vue.component(Select.name, Select); Vue.component(Select.Option.name, Select.Option); Vue.component(Select.OptGroup.name, Select.OptGroup); @@ -11970,6 +12913,10 @@ var _TabContent = __webpack_require__(/*! ../vc-tabs/src/TabContent */ "./node_m var _TabContent2 = _interopRequireDefault(_TabContent); +var _base = __webpack_require__(/*! ../base */ "./node_modules/ant-design-vue/lib/base/index.js"); + +var _base2 = _interopRequireDefault(_base); + function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } _tabs2['default'].TabPane = (0, _extends3['default'])({}, _TabPane2['default'], { name: 'ATabPane', __ANT_TAB_PANE: true }); @@ -11978,6 +12925,7 @@ _vue2['default'].use(_vueRef2['default'], { name: 'ant-ref' }); /* istanbul ignore next */ _tabs2['default'].install = function (Vue) { + Vue.use(_base2['default']); Vue.component(_tabs2['default'].name, _tabs2['default']); Vue.component(_tabs2['default'].TabPane.name, _tabs2['default'].TabPane); Vue.component(_tabs2['default'].TabContent.name, _tabs2['default'].TabContent); @@ -12027,9 +12975,7 @@ var _TabContent = __webpack_require__(/*! ../vc-tabs/src/TabContent */ "./node_m var _TabContent2 = _interopRequireDefault(_TabContent); -var _isFlexSupported = __webpack_require__(/*! ../_util/isFlexSupported */ "./node_modules/ant-design-vue/lib/_util/isFlexSupported.js"); - -var _isFlexSupported2 = _interopRequireDefault(_isFlexSupported); +var _styleChecker = __webpack_require__(/*! ../_util/styleChecker */ "./node_modules/ant-design-vue/lib/_util/styleChecker.js"); var _vueTypes = __webpack_require__(/*! ../_util/vue-types */ "./node_modules/ant-design-vue/lib/_util/vue-types/index.js"); @@ -12039,6 +12985,8 @@ var _propsUtil = __webpack_require__(/*! ../_util/props-util */ "./node_modules/ var _vnode = __webpack_require__(/*! ../_util/vnode */ "./node_modules/ant-design-vue/lib/_util/vnode.js"); +var _configProvider = __webpack_require__(/*! ../config-provider */ "./node_modules/ant-design-vue/lib/config-provider/index.js"); + var _TabBar = __webpack_require__(/*! ./TabBar */ "./node_modules/ant-design-vue/lib/tabs/TabBar.js"); var _TabBar2 = _interopRequireDefault(_TabBar); @@ -12053,7 +13001,7 @@ exports['default'] = { event: 'change' }, props: { - prefixCls: _vueTypes2['default'].string.def('ant-tabs'), + prefixCls: _vueTypes2['default'].string, activeKey: _vueTypes2['default'].oneOfType([_vueTypes2['default'].string, _vueTypes2['default'].number]), defaultActiveKey: _vueTypes2['default'].oneOfType([_vueTypes2['default'].string, _vueTypes2['default'].number]), hideAdd: _vueTypes2['default'].bool.def(false), @@ -12067,10 +13015,15 @@ exports['default'] = { tabBarGutter: _vueTypes2['default'].number, renderTabBar: _vueTypes2['default'].func }, + inject: { + configProvider: { 'default': function _default() { + return _configProvider.ConfigConsumerProps; + } } + }, mounted: function mounted() { var NO_FLEX = ' no-flex'; var tabNode = this.$el; - if (tabNode && !(0, _isFlexSupported2['default'])() && tabNode.className.indexOf(NO_FLEX) === -1) { + if (tabNode && !_styleChecker.isFlexSupported && tabNode.className.indexOf(NO_FLEX) === -1) { tabNode.className += NO_FLEX; } }, @@ -12108,7 +13061,7 @@ exports['default'] = { var h = arguments[0]; var props = (0, _propsUtil.getOptionProps)(this); - var prefixCls = props.prefixCls, + var customizePrefixCls = props.prefixCls, size = props.size, _props$type = props.type, type = _props$type === undefined ? 'line' : _props$type, @@ -12118,6 +13071,8 @@ exports['default'] = { hideAdd = props.hideAdd, renderTabBar = props.renderTabBar; + var getPrefixCls = this.configProvider.getPrefixCls; + var prefixCls = getPrefixCls('tabs', customizePrefixCls); var children = (0, _propsUtil.filterEmpty)(this.$slots['default']); var tabBarExtraContent = (0, _propsUtil.getComponentFromProp)(this, 'tabBarExtraContent'); @@ -12178,6 +13133,7 @@ exports['default'] = { var renderTabBarSlot = renderTabBar || this.$scopedSlots.renderTabBar; var tabBarProps = { props: (0, _extends3['default'])({}, this.$props, { + prefixCls: prefixCls, tabBarExtraContent: tabBarExtraContent, renderTabBar: renderTabBarSlot }), @@ -12186,6 +13142,7 @@ exports['default'] = { var contentCls = (_contentCls = {}, (0, _defineProperty3['default'])(_contentCls, prefixCls + '-' + tabPosition + '-content', true), (0, _defineProperty3['default'])(_contentCls, prefixCls + '-card-content', type.indexOf('card') >= 0), _contentCls); var tabsProps = { props: (0, _extends3['default'])({}, (0, _propsUtil.getOptionProps)(this), { + prefixCls: prefixCls, tabBarPosition: tabPosition, renderTabBar: function renderTabBar() { return h(_TabBar2['default'], tabBarProps); @@ -12267,6 +13224,8 @@ var _vueTypes2 = _interopRequireDefault(_vueTypes); var _propsUtil = __webpack_require__(/*! ../_util/props-util */ "./node_modules/ant-design-vue/lib/_util/props-util.js"); +var _configProvider = __webpack_require__(/*! ../config-provider */ "./node_modules/ant-design-vue/lib/config-provider/index.js"); + var _abstractTooltipProps = __webpack_require__(/*! ./abstractTooltipProps */ "./node_modules/ant-design-vue/lib/tooltip/abstractTooltipProps.js"); var _abstractTooltipProps2 = _interopRequireDefault(_abstractTooltipProps); @@ -12296,12 +13255,12 @@ exports['default'] = { }), inject: { configProvider: { 'default': function _default() { - return {}; + return _configProvider.ConfigConsumerProps; } } }, data: function data() { return { - sVisible: !!this.$props.visible + sVisible: !!this.$props.visible || !!this.$props.defaultVisible }; }, @@ -12415,11 +13374,13 @@ exports['default'] = { $data = this.$data, $slots = this.$slots, $listeners = this.$listeners; - var prefixCls = $props.prefixCls, + var customizePrefixCls = $props.prefixCls, openClassName = $props.openClassName, getPopupContainer = $props.getPopupContainer; var getContextPopupContainer = this.configProvider.getPopupContainer; + var getPrefixCls = this.configProvider.getPrefixCls; + var prefixCls = getPrefixCls('tooltip', customizePrefixCls); var children = ($slots['default'] || []).filter(function (c) { return c.tag || c.text.trim() !== ''; }); @@ -12436,6 +13397,7 @@ exports['default'] = { var childCls = (0, _defineProperty3['default'])({}, openClassName || prefixCls + '-open', true); var tooltipProps = { props: (0, _extends3['default'])({}, $props, { + prefixCls: prefixCls, getTooltipContainer: getPopupContainer || getContextPopupContainer, builtinPlacements: this.getPlacements(), visible: sVisible @@ -12492,14 +13454,15 @@ exports['default'] = function () { // onVisibleChange: PropTypes.func, overlayStyle: _vueTypes2['default'].object.def({}), overlayClassName: _vueTypes2['default'].string, - prefixCls: _vueTypes2['default'].string.def('ant-tooltip'), + prefixCls: _vueTypes2['default'].string, mouseEnterDelay: _vueTypes2['default'].number.def(0.1), mouseLeaveDelay: _vueTypes2['default'].number.def(0.1), getPopupContainer: _vueTypes2['default'].func, arrowPointAtCenter: _vueTypes2['default'].bool.def(false), autoAdjustOverflow: _vueTypes2['default'].oneOfType([_vueTypes2['default'].bool, _vueTypes2['default'].object]).def(true), destroyTooltipOnHide: _vueTypes2['default'].bool.def(false), - align: _vueTypes2['default'].object.def({}) + align: _vueTypes2['default'].object.def({}), + builtinPlacements: _vueTypes2['default'].object }; }; @@ -12523,10 +13486,15 @@ var _Tooltip = __webpack_require__(/*! ./Tooltip */ "./node_modules/ant-design-v var _Tooltip2 = _interopRequireDefault(_Tooltip); +var _base = __webpack_require__(/*! ../base */ "./node_modules/ant-design-vue/lib/base/index.js"); + +var _base2 = _interopRequireDefault(_base); + function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } /* istanbul ignore next */ _Tooltip2['default'].install = function (Vue) { + Vue.use(_base2['default']); Vue.component(_Tooltip2['default'].name, _Tooltip2['default']); }; @@ -12692,6 +13660,8 @@ var _cloneDeep = __webpack_require__(/*! lodash/cloneDeep */ "./node_modules/lod var _cloneDeep2 = _interopRequireDefault(_cloneDeep); +var _propsUtil = __webpack_require__(/*! ../_util/props-util */ "./node_modules/ant-design-vue/lib/_util/props-util.js"); + function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } function getElement(func) { @@ -12762,7 +13732,7 @@ exports['default'] = { // If source element size changed var preRect = _this2.sourceRect || {}; - if (!reAlign && source && (preRect.width !== sourceRect.width || preRect.height !== sourceRect.height)) { + if (!reAlign && source && (!(0, _util.isSimilarValue)(preRect.width, sourceRect.width) || !(0, _util.isSimilarValue)(preRect.height, sourceRect.height))) { reAlign = true; } } @@ -12812,11 +13782,16 @@ exports['default'] = { var element = getElement(target); var point = getPoint(target); + // IE lose focus after element realign + // We should record activeElement and restore later + var activeElement = document.activeElement; + if (element) { result = (0, _domAlign.alignElement)(source, element, align); } else if (point) { result = (0, _domAlign.alignPoint)(source, point, align); } + (0, _util.restoreFocus)(activeElement, source); this.aligned = true; this.$listeners.align && this.$listeners.align(source, result); } @@ -12826,8 +13801,8 @@ exports['default'] = { render: function render() { var childrenProps = this.$props.childrenProps; - var child = this.$slots['default'][0]; - if (childrenProps) { + var child = (0, _propsUtil.getSlot)(this)[0]; + if (child && childrenProps) { return (0, _vnode.cloneElement)(child, { props: childrenProps }); } return child; @@ -12856,7 +13831,7 @@ var _Align2 = _interopRequireDefault(_Align); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } -exports['default'] = _Align2['default']; // based on vc-align 2.4.3 +exports['default'] = _Align2['default']; // based on vc-align 2.4.5 /***/ }), @@ -12881,6 +13856,12 @@ var _typeof3 = _interopRequireDefault(_typeof2); exports.buffer = buffer; exports.isSamePoint = isSamePoint; exports.isWindow = isWindow; +exports.isSimilarValue = isSimilarValue; +exports.restoreFocus = restoreFocus; + +var _contains = __webpack_require__(/*! ../_util/Dom/contains */ "./node_modules/ant-design-vue/lib/_util/Dom/contains.js"); + +var _contains2 = _interopRequireDefault(_contains); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } @@ -12923,6 +13904,19 @@ function isWindow(obj) { return obj && (typeof obj === 'undefined' ? 'undefined' : (0, _typeof3['default'])(obj)) === 'object' && obj.window === obj; } +function isSimilarValue(val1, val2) { + var int1 = Math.floor(val1); + var int2 = Math.floor(val2); + return Math.abs(int1 - int2) <= 1; +} + +function restoreFocus(activeElement, container) { + // Focus back if is in the container + if (activeElement !== document.activeElement && (0, _contains2['default'])(container, activeElement)) { + activeElement.focus(); + } +} + /***/ }), /***/ "./node_modules/ant-design-vue/lib/vc-calendar/src/locale/en_US.js": @@ -13017,9 +14011,9 @@ var _getTransitionProps = __webpack_require__(/*! ../_util/getTransitionProps */ var _getTransitionProps2 = _interopRequireDefault(_getTransitionProps); -var _getScrollBarSize = __webpack_require__(/*! ../_util/getScrollBarSize */ "./node_modules/ant-design-vue/lib/_util/getScrollBarSize.js"); +var _switchScrollingEffect = __webpack_require__(/*! ../_util/switchScrollingEffect */ "./node_modules/ant-design-vue/lib/_util/switchScrollingEffect.js"); -var _getScrollBarSize2 = _interopRequireDefault(_getScrollBarSize); +var _switchScrollingEffect2 = _interopRequireDefault(_switchScrollingEffect); var _IDialogPropTypes = __webpack_require__(/*! ./IDialogPropTypes */ "./node_modules/ant-design-vue/lib/vc-dialog/IDialogPropTypes.js"); @@ -13030,7 +14024,6 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'd var IDialogPropTypes = (0, _IDialogPropTypes2['default'])(); var uuid = 0; -var openCount = 0; /* eslint react/no-is-mounted:0 */ function noop() {} @@ -13067,22 +14060,21 @@ function offset(el) { pos.top += getScroll(w, true); return pos; } -var initDefaultProps = function initDefaultProps(propTypes, defaultProps) { - return Object.keys(defaultProps).map(function (k) { - return propTypes[k].def(defaultProps[k]); - }); -}; + exports['default'] = { mixins: [_BaseMixin2['default']], - props: (0, _extends4['default'])({}, IDialogPropTypes, initDefaultProps(IDialogPropTypes, { + props: (0, _propsUtil.initDefaultProps)(IDialogPropTypes, { mask: true, visible: false, keyboard: true, closable: true, maskClosable: true, destroyOnClose: false, - prefixCls: 'rc-dialog' - })), + prefixCls: 'rc-dialog', + getOpenCount: function getOpenCount() { + return null; + } + }), data: function data() { return { destroyPopup: false @@ -13122,12 +14114,20 @@ exports['default'] = { this.$nextTick(function () { _this2.updatedCallback(false); + // if forceRender is true, set element style display to be none; + if ((_this2.forceRender || _this2.getContainer === false && !_this2.visible) && _this2.$refs.wrap) { + _this2.$refs.wrap.style.display = 'none'; + } }); }, beforeDestroy: function beforeDestroy() { - if (this.visible || this.inTransition) { + var visible = this.visible, + getOpenCount = this.getOpenCount; + + if ((visible || this.inTransition) && !getOpenCount()) { this.removeScrollingEffect(); } + clearTimeout(this.timeoutId); }, methods: { @@ -13185,12 +14185,24 @@ exports['default'] = { afterClose(); } }, + onDialogMouseDown: function onDialogMouseDown() { + this.dialogMouseDown = true; + }, + onMaskMouseUp: function onMaskMouseUp() { + var _this3 = this; + + if (this.dialogMouseDown) { + this.timeoutId = setTimeout(function () { + _this3.dialogMouseDown = false; + }, 0); + } + }, onMaskClick: function onMaskClick(e) { // android trigger click on open (fastclick??) if (Date.now() - this.openTime < 300) { return; } - if (e.target === e.currentTarget) { + if (e.target === e.currentTarget && !this.dialogMouseDown) { this.close(e); } }, @@ -13265,13 +14277,15 @@ exports['default'] = { closer = h( 'button', { + attrs: { + type: 'button', + + 'aria-label': 'Close' + }, key: 'close', on: { 'click': this.close || noop }, - attrs: { - 'aria-label': 'Close' - }, 'class': prefixCls + '-close' }, [closeIcon || h('span', { 'class': prefixCls + '-close-x' })] @@ -13295,15 +14309,14 @@ exports['default'] = { }, ref: 'dialog', style: style, - 'class': cls + 'class': cls, + on: { + 'mousedown': this.onDialogMouseDown + } }, - [h( - 'div', - { - attrs: { tabIndex: 0 }, - ref: 'sentinelStart', style: sentinelStyle }, - ['sentinelStart'] - ), h( + [h('div', { + attrs: { tabIndex: 0, 'aria-hidden': 'true' }, + ref: 'sentinelStart', style: sentinelStyle }), h( 'div', { 'class': prefixCls + '-content' }, [closer, header, h( @@ -13311,13 +14324,9 @@ exports['default'] = { (0, _babelHelperVueJsxMergeProps2['default'])([{ key: 'body', 'class': prefixCls + '-body', style: bodyStyle, ref: 'body' }, bodyProps]), [this.$slots['default']] ), footer] - ), h( - 'div', - { - attrs: { tabIndex: 0 }, - ref: 'sentinelEnd', style: sentinelStyle }, - ['sentinelEnd'] - )] + ), h('div', { + attrs: { tabIndex: 0, 'aria-hidden': 'true' }, + ref: 'sentinelEnd', style: sentinelStyle })] ); var dialogTransitionProps = (0, _getTransitionProps2['default'])(transitionName, { afterLeave: this.onAnimateLeave @@ -13388,59 +14397,35 @@ exports['default'] = { } return transitionName; }, - setScrollbar: function setScrollbar() { - if (this.bodyIsOverflowing && this.scrollbarWidth !== undefined) { - document.body.style.paddingRight = this.scrollbarWidth + 'px'; - } - }, + + // setScrollbar() { + // if (this.bodyIsOverflowing && this.scrollbarWidth !== undefined) { + // document.body.style.paddingRight = `${this.scrollbarWidth}px`; + // } + // }, addScrollingEffect: function addScrollingEffect() { - openCount++; + var getOpenCount = this.getOpenCount; + + var openCount = getOpenCount(); if (openCount !== 1) { return; } - this.checkScrollbar(); - this.setScrollbar(); + (0, _switchScrollingEffect2['default'])(); document.body.style.overflow = 'hidden'; - // this.adjustDialog(); }, removeScrollingEffect: function removeScrollingEffect() { - openCount--; + var getOpenCount = this.getOpenCount; + + var openCount = getOpenCount(); if (openCount !== 0) { return; } document.body.style.overflow = ''; - this.resetScrollbar(); + (0, _switchScrollingEffect2['default'])(true); // this.resetAdjustments(); }, close: function close(e) { this.__emit('close', e); - }, - checkScrollbar: function checkScrollbar() { - var fullWindowWidth = window.innerWidth; - if (!fullWindowWidth) { - // workaround for missing window.innerWidth in IE8 - var documentElementRect = document.documentElement.getBoundingClientRect(); - fullWindowWidth = documentElementRect.right - Math.abs(documentElementRect.left); - } - this.bodyIsOverflowing = document.body.clientWidth < fullWindowWidth; - if (this.bodyIsOverflowing) { - this.scrollbarWidth = (0, _getScrollBarSize2['default'])(); - } - }, - resetScrollbar: function resetScrollbar() { - document.body.style.paddingRight = ''; - }, - adjustDialog: function adjustDialog() { - if (this.$refs.wrap && this.scrollbarWidth !== undefined) { - var modalIsOverflowing = this.$refs.wrap.scrollHeight > document.documentElement.clientHeight; - this.$refs.wrap.style.paddingLeft = (!this.bodyIsOverflowing && modalIsOverflowing ? this.scrollbarWidth : '') + 'px'; - this.$refs.wrap.style.paddingRight = (this.bodyIsOverflowing && !modalIsOverflowing ? this.scrollbarWidth : '') + 'px'; - } - }, - resetAdjustments: function resetAdjustments() { - if (this.$refs.wrap) { - this.$refs.wrap.style.paddingLeft = this.$refs.wrap.style.paddingLeft = ''; - } } }, render: function render() { @@ -13469,7 +14454,8 @@ exports['default'] = { }, on: { 'keydown': this.onKeydown, - 'click': maskClosable ? this.onMaskClick : noop + 'click': maskClosable ? this.onMaskClick : noop, + 'mouseup': maskClosable ? this.onMaskMouseUp : noop }, 'class': prefixCls + '-wrap ' + (wrapClassName || ''), @@ -13664,10 +14650,12 @@ function IDialogPropTypes() { bodyProps: _vueTypes2['default'].any, maskProps: _vueTypes2['default'].any, wrapProps: _vueTypes2['default'].any, - getContainer: _vueTypes2['default'].func, + getContainer: _vueTypes2['default'].any, dialogStyle: _vueTypes2['default'].object.def({}), dialogClass: _vueTypes2['default'].object.def({}), - closeIcon: _vueTypes2['default'].any + closeIcon: _vueTypes2['default'].any, + forceRender: _vueTypes2['default'].bool, + getOpenCount: _vueTypes2['default'].func }; } @@ -13705,7 +14693,11 @@ exports['default'] = { render: function render() { var h = arguments[0]; - return h('div', [this.$slots['default']]); + return h( + 'div', + { on: this.$listeners }, + [this.$slots['default']] + ); } }; @@ -13731,7 +14723,7 @@ var _DialogWrap2 = _interopRequireDefault(_DialogWrap); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } -exports['default'] = _DialogWrap2['default']; // based on vc-dialog 7.2.1 +exports['default'] = _DialogWrap2['default']; // based on vc-dialog 7.5.5 /***/ }), @@ -13786,10 +14778,12 @@ exports['default'] = { prefixCls: _vueTypes2['default'].string.def('rc-dropdown'), transitionName: _vueTypes2['default'].string, overlayClassName: _vueTypes2['default'].string.def(''), + openClassName: _vueTypes2['default'].string, animation: _vueTypes2['default'].any, align: _vueTypes2['default'].object, overlayStyle: _vueTypes2['default'].object.def({}), placement: _vueTypes2['default'].string.def('bottomLeft'), + overlay: _vueTypes2['default'].any, trigger: _vueTypes2['default'].array.def(['hover']), alignPoint: _vueTypes2['default'].bool, showAction: _vueTypes2['default'].array.def([]), @@ -13851,6 +14845,16 @@ exports['default'] = { return !alignPoint; }, + getOverlayElement: function getOverlayElement() { + var overlay = this.overlay || this.$slots.overlay || this.$scopedSlots.overlay; + var overlayElement = void 0; + if (typeof overlay === 'function') { + overlayElement = overlay(); + } else { + overlayElement = overlay; + } + return overlayElement; + }, getMenuElement: function getMenuElement() { var _this = this; @@ -13859,6 +14863,7 @@ exports['default'] = { $slots = this.$slots; this.childOriginEvents = (0, _propsUtil.getEvents)($slots.overlay[0]); + var overlayElement = this.getOverlayElement(); var extraOverlayProps = { props: { prefixCls: prefixCls + '-menu', @@ -13870,11 +14875,31 @@ exports['default'] = { click: onClick } }; + if (typeof overlayElement.type === 'string') { + delete extraOverlayProps.props.prefixCls; + } return (0, _vnode.cloneElement)($slots.overlay[0], extraOverlayProps); }, + getMenuElementOrLambda: function getMenuElementOrLambda() { + var overlay = this.overlay || this.$slots.overlay || this.$scopedSlots.overlay; + if (typeof overlay === 'function') { + return this.getMenuElement; + } + return this.getMenuElement(); + }, getPopupDomNode: function getPopupDomNode() { return this.$refs.trigger.getPopupDomNode(); }, + getOpenClassName: function getOpenClassName() { + var _$props = this.$props, + openClassName = _$props.openClassName, + prefixCls = _$props.prefixCls; + + if (openClassName !== undefined) { + return openClassName; + } + return prefixCls + '-open'; + }, afterVisibleChange: function afterVisibleChange(visible) { if (visible && this.getMinOverlayWidthMatchTrigger()) { var overlayNode = this.getPopupDomNode(); @@ -13886,24 +14911,30 @@ exports['default'] = { } } } + }, + renderChildren: function renderChildren() { + var children = this.$slots['default'] && this.$slots['default'][0]; + var sVisible = this.sVisible; + + return sVisible && children ? (0, _vnode.cloneElement)(children, { 'class': this.getOpenClassName() }) : children; } }, render: function render() { var h = arguments[0]; - var _$props = this.$props, - prefixCls = _$props.prefixCls, - transitionName = _$props.transitionName, - animation = _$props.animation, - align = _$props.align, - placement = _$props.placement, - getPopupContainer = _$props.getPopupContainer, - showAction = _$props.showAction, - hideAction = _$props.hideAction, - overlayClassName = _$props.overlayClassName, - overlayStyle = _$props.overlayStyle, - trigger = _$props.trigger, - otherProps = (0, _objectWithoutProperties3['default'])(_$props, ['prefixCls', 'transitionName', 'animation', 'align', 'placement', 'getPopupContainer', 'showAction', 'hideAction', 'overlayClassName', 'overlayStyle', 'trigger']); + var _$props2 = this.$props, + prefixCls = _$props2.prefixCls, + transitionName = _$props2.transitionName, + animation = _$props2.animation, + align = _$props2.align, + placement = _$props2.placement, + getPopupContainer = _$props2.getPopupContainer, + showAction = _$props2.showAction, + hideAction = _$props2.hideAction, + overlayClassName = _$props2.overlayClassName, + overlayStyle = _$props2.overlayStyle, + trigger = _$props2.trigger, + otherProps = (0, _objectWithoutProperties3['default'])(_$props2, ['prefixCls', 'transitionName', 'animation', 'align', 'placement', 'getPopupContainer', 'showAction', 'hideAction', 'overlayClassName', 'overlayStyle', 'trigger']); var triggerHideAction = hideAction; if (!triggerHideAction && trigger.indexOf('contextmenu') !== -1) { @@ -13936,7 +14967,7 @@ exports['default'] = { return h( _vcTrigger2['default'], triggerProps, - [child && !child.tag ? h('span', [child]) : child, h( + [this.renderChildren(), h( 'template', { slot: 'popup' }, [this.$slots.overlay && this.getMenuElement()] @@ -13967,7 +14998,7 @@ var _Dropdown2 = _interopRequireDefault(_Dropdown); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } -exports['default'] = _Dropdown2['default']; // base in 2.2.1 +exports['default'] = _Dropdown2['default']; // base in 2.4.1 /***/ }), @@ -14060,15 +15091,15 @@ var _defineProperty2 = __webpack_require__(/*! babel-runtime/helpers/definePrope var _defineProperty3 = _interopRequireDefault(_defineProperty2); -var _extends2 = __webpack_require__(/*! babel-runtime/helpers/extends */ "./node_modules/babel-runtime/helpers/extends.js"); +var _extends4 = __webpack_require__(/*! babel-runtime/helpers/extends */ "./node_modules/babel-runtime/helpers/extends.js"); -var _extends3 = _interopRequireDefault(_extends2); +var _extends5 = _interopRequireDefault(_extends4); var _toConsumableArray2 = __webpack_require__(/*! babel-runtime/helpers/toConsumableArray */ "./node_modules/babel-runtime/helpers/toConsumableArray.js"); var _toConsumableArray3 = _interopRequireDefault(_toConsumableArray2); -var _asyncValidator = __webpack_require__(/*! async-validator */ "./node_modules/async-validator/es/index.js"); +var _asyncValidator = __webpack_require__(/*! async-validator */ "./node_modules/async-validator/dist-web/index.js"); var _asyncValidator2 = _interopRequireDefault(_asyncValidator); @@ -14084,6 +15115,10 @@ var _set = __webpack_require__(/*! lodash/set */ "./node_modules/lodash/set.js") var _set2 = _interopRequireDefault(_set); +var _eq = __webpack_require__(/*! lodash/eq */ "./node_modules/lodash/eq.js"); + +var _eq2 = _interopRequireDefault(_eq); + var _omit = __webpack_require__(/*! lodash/omit */ "./node_modules/lodash/omit.js"); var _omit2 = _interopRequireDefault(_omit); @@ -14140,7 +15175,7 @@ function createBaseForm() { } var Form = { mixins: [_BaseMixin2['default']].concat((0, _toConsumableArray3['default'])(mixins)), - props: (0, _extends3['default'])({}, formProps, { + props: (0, _extends5['default'])({}, formProps, { wrappedComponentRef: _vueTypes2['default'].func.def(function () {}) }), data: function data() { @@ -14152,7 +15187,7 @@ function createBaseForm() { this.instances = {}; this.cachedBind = {}; this.clearedFieldMetaCache = {}; - + this.formItems = {}; this.renderFields = {}; this.domFields = {}; @@ -14214,10 +15249,10 @@ function createBaseForm() { Object.keys(valuesAll).forEach(function (key) { return (0, _set2['default'])(valuesAllSet, key, valuesAll[key]); }); - onValuesChange(this, (0, _set2['default'])({}, name, value), valuesAllSet); + onValuesChange((0, _extends5['default'])((0, _defineProperty3['default'])({}, formPropName, this.getForm()), this.$props), (0, _set2['default'])({}, name, value), valuesAllSet); } var field = this.fieldsStore.getField(name); - return { name: name, field: (0, _extends3['default'])({}, field, { value: value, touched: true }), fieldMeta: fieldMeta }; + return { name: name, field: (0, _extends5['default'])({}, field, { value: value, touched: true }), fieldMeta: fieldMeta }; }, onCollect: function onCollect(name_, action) { for (var _len = arguments.length, args = Array(_len > 2 ? _len - 2 : 0), _key = 2; _key < _len; _key++) { @@ -14231,7 +15266,8 @@ function createBaseForm() { var validate = fieldMeta.validate; - var newField = (0, _extends3['default'])({}, field, { + this.fieldsStore.setFieldsAsDirty(); + var newField = (0, _extends5['default'])({}, field, { dirty: (0, _utils.hasRules)(validate) }); this.setFields((0, _defineProperty3['default'])({}, name, newField)); @@ -14245,9 +15281,10 @@ function createBaseForm() { field = _onCollectCommon2.field, fieldMeta = _onCollectCommon2.fieldMeta; - var newField = (0, _extends3['default'])({}, field, { + var newField = (0, _extends5['default'])({}, field, { dirty: true }); + this.fieldsStore.setFieldsAsDirty(); this.validateFieldsInternal([newField], { action: action, options: { @@ -14268,13 +15305,14 @@ function createBaseForm() { } return cache[action].fn; }, - getFieldDecorator: function getFieldDecorator(name, fieldOption) { + getFieldDecorator: function getFieldDecorator(name, fieldOption, formItem) { var _this2 = this; var _getFieldProps = this.getFieldProps(name, fieldOption), props = _getFieldProps.props, restProps = (0, _objectWithoutProperties3['default'])(_getFieldProps, ['props']); + this.formItems[name] = formItem; return function (fieldElem) { // We should put field in record if it is rendered _this2.renderFields[name] = true; @@ -14285,14 +15323,14 @@ function createBaseForm() { if (true) { var valuePropName = fieldMeta.valuePropName; (0, _warning2['default'])(!(0, _propsUtil.slotHasProp)(fieldElem, valuePropName), '`getFieldDecorator` will override `' + valuePropName + '`, ' + ('so please don\'t set `' + valuePropName + ' and v-model` directly ') + 'and use `setFieldsValue` to set it.'); - (0, _warning2['default'])(!(!(0, _propsUtil.slotHasProp)(fieldElem, valuePropName) && valuePropName in originalProps && !(fieldOption && fieldOption.initialValue)), (0, _propsUtil.getComponentName)(fieldElem.componentOptions) + ' `default value` can not collect, ' + ' please use `option.initialValue` to set default value.'); + (0, _warning2['default'])(!(!(0, _propsUtil.slotHasProp)(fieldElem, valuePropName) && valuePropName in originalProps && !(fieldOption && 'initialValue' in fieldOption)), (0, _propsUtil.getComponentName)(fieldElem.componentOptions) + ' `default value` can not collect, ' + ' please use `option.initialValue` to set default value.'); var defaultValuePropName = 'default' + valuePropName[0].toUpperCase() + valuePropName.slice(1); (0, _warning2['default'])(!(0, _propsUtil.slotHasProp)(fieldElem, defaultValuePropName), '`' + defaultValuePropName + '` is invalid ' + ('for `getFieldDecorator` will set `' + valuePropName + '`,') + ' please use `option.initialValue` instead.'); } fieldMeta.originalProps = originalProps; // fieldMeta.ref = fieldElem.data && fieldElem.data.ref - var newProps = (0, _extends3['default'])({ - props: (0, _extends3['default'])({}, props, _this2.fieldsStore.getFieldValuePropValue(fieldMeta)) + var newProps = (0, _extends5['default'])({ + props: (0, _extends5['default'])({}, props, _this2.fieldsStore.getFieldValuePropValue(fieldMeta)) }, restProps); newProps.domProps.value = newProps.props.value; var newEvents = {}; @@ -14307,7 +15345,7 @@ function createBaseForm() { newEvents[key] = newProps.on[key]; } }); - return (0, _vnode.cloneElement)(fieldElem, (0, _extends3['default'])({}, newProps, { on: newEvents })); + return (0, _vnode.cloneElement)(fieldElem, (0, _extends5['default'])({}, newProps, { on: newEvents })); }; }, getFieldProps: function getFieldProps(name) { @@ -14319,13 +15357,13 @@ function createBaseForm() { throw new Error('Must call `getFieldProps` with valid name string!'); } if (true) { - (0, _warning2['default'])(this.fieldsStore.isValidNestedFieldName(name), 'One field name cannot be part of another, e.g. `a` and `a.b`.'); + (0, _warning2['default'])(this.fieldsStore.isValidNestedFieldName(name), 'One field name cannot be part of another, e.g. `a` and `a.b`. Check field: ' + name); (0, _warning2['default'])(!('exclusive' in usersFieldOption), '`option.exclusive` of `getFieldProps`|`getFieldDecorator` had been remove.'); } delete this.clearedFieldMetaCache[name]; - var fieldOption = (0, _extends3['default'])({ + var fieldOption = (0, _extends5['default'])({ name: name, trigger: DEFAULT_TRIGGER, valuePropName: 'value', @@ -14344,7 +15382,7 @@ function createBaseForm() { fieldMeta.initialValue = fieldOption.initialValue; } - var inputProps = (0, _extends3['default'])({}, this.fieldsStore.getFieldValuePropValue(fieldOption)); + var inputProps = (0, _extends5['default'])({}, this.fieldsStore.getFieldValuePropValue(fieldOption)); var inputListeners = {}; var inputAttrs = {}; if (fieldNameProp) { @@ -14363,7 +15401,7 @@ function createBaseForm() { inputListeners[trigger] = this.getCacheBind(name, trigger, this.onCollect); } - var meta = (0, _extends3['default'])({}, fieldMeta, fieldOption, { + var meta = (0, _extends5['default'])({}, fieldMeta, fieldOption, { validate: validateRules }); this.fieldsStore.setFieldMeta(name, meta); @@ -14382,7 +15420,7 @@ function createBaseForm() { domProps: { value: inputProps.value }, - attrs: (0, _extends3['default'])({}, inputAttrs, { + attrs: (0, _extends5['default'])({}, inputAttrs, { id: inputProps.id }), directives: [{ @@ -14408,16 +15446,28 @@ function createBaseForm() { var fields = this.fieldsStore.flattenRegisteredFields(maybeNestedFields); this.fieldsStore.setFields(fields); + var changedFields = Object.keys(fields).reduce(function (acc, name) { + return (0, _set2['default'])(acc, name, _this4.fieldsStore.getField(name)); + }, {}); if (onFieldsChange) { - var changedFields = Object.keys(fields).reduce(function (acc, name) { + var _changedFields = Object.keys(fields).reduce(function (acc, name) { return (0, _set2['default'])(acc, name, _this4.fieldsStore.getField(name)); }, {}); - onFieldsChange(this, changedFields, this.fieldsStore.getNestedAllFields()); + onFieldsChange(this, _changedFields, this.fieldsStore.getNestedAllFields()); } - if (templateContext) { - templateContext.$forceUpdate(); - } else { - this.$forceUpdate(); + var formContext = templateContext || this; + var allUpdate = false; + Object.keys(changedFields).forEach(function (key) { + var formItem = _this4.formItems[key]; + formItem = typeof formItem === 'function' ? formItem() : formItem; + if (formItem && formItem.itemSelfUpdate) { + formItem.$forceUpdate(); + } else { + allUpdate = true; + } + }); + if (allUpdate) { + formContext.$forceUpdate(); } this.$nextTick(function () { callback && callback(); @@ -14443,7 +15493,7 @@ function createBaseForm() { this.setFields(newFields, callback); if (onValuesChange) { var allValues = this.fieldsStore.getAllValues(); - onValuesChange(this, changedValues, allValues); + onValuesChange((0, _extends5['default'])((0, _defineProperty3['default'])({}, formPropName, this.getForm()), this.$props), changedValues, allValues); } }, saveRef: function saveRef(name, _, component) { @@ -14536,7 +15586,7 @@ function createBaseForm() { return; } var fieldMeta = _this7.fieldsStore.getFieldMeta(name); - var newField = (0, _extends3['default'])({}, field); + var newField = (0, _extends5['default'])({}, field); newField.errors = undefined; newField.validating = true; newField.dirty = true; @@ -14558,10 +15608,41 @@ function createBaseForm() { validator.messages(validateMessages); } validator.validate(allValues, options, function (errors) { - var errorsGroup = (0, _extends3['default'])({}, alreadyErrors); + var errorsGroup = (0, _extends5['default'])({}, alreadyErrors); if (errors && errors.length) { errors.forEach(function (e) { - var fieldName = e.field; + var errorFieldName = e.field; + var fieldName = errorFieldName; + + // Handle using array validation rule. + // ref: https://github.com/ant-design/ant-design/issues/14275 + Object.keys(allRules).some(function (ruleFieldName) { + var rules = allRules[ruleFieldName] || []; + + // Exist if match rule + if (ruleFieldName === errorFieldName) { + fieldName = ruleFieldName; + return true; + } + + // Skip if not match array type + if (rules.every(function (_ref2) { + var type = _ref2.type; + return type !== 'array'; + }) && errorFieldName.indexOf(ruleFieldName) !== 0) { + return false; + } + + // Exist if match the field name + var restPath = errorFieldName.slice(ruleFieldName.length + 1); + if (/^\d+$/.test(restPath)) { + fieldName = ruleFieldName; + return true; + } + + return false; + }); + var field = (0, _get2['default'])(errorsGroup, fieldName); if ((typeof field === 'undefined' ? 'undefined' : (0, _typeof3['default'])(field)) !== 'object' || Array.isArray(field)) { (0, _set2['default'])(errorsGroup, fieldName, { errors: [] }); @@ -14576,7 +15657,7 @@ function createBaseForm() { var fieldErrors = (0, _get2['default'])(errorsGroup, name); var nowField = _this7.fieldsStore.getField(name); // avoid concurrency problems - if (nowField.value !== allValues[name]) { + if (!(0, _eq2['default'])(nowField.value, allValues[name])) { expired.push({ name: name }); @@ -14591,8 +15672,8 @@ function createBaseForm() { _this7.setFields(nowAllFields); if (callback) { if (expired.length) { - expired.forEach(function (_ref2) { - var name = _ref2.name; + expired.forEach(function (_ref3) { + var name = _ref3.name; var fieldErrors = [{ message: name + ' need to revalidate', @@ -14642,9 +15723,7 @@ function createBaseForm() { return field; }); if (!fields.length) { - if (callback) { - callback(null, _this8.fieldsStore.getFieldsValue(fieldNames)); - } + callback(null, _this8.fieldsStore.getFieldsValue(fieldNames)); return; } if (!('firstFields' in options)) { @@ -14659,7 +15738,7 @@ function createBaseForm() { }, callback); }); pending['catch'](function (e) { - if (console.error) { + if (console.error && "development" !== 'production') { console.error(e); } return e; @@ -14676,7 +15755,7 @@ function createBaseForm() { var _this9 = this; if (true) { - (0, _warning2['default'])(false, '`submit` is deprecated.' + "Actually, it's more convenient to handle submitting status by yourself."); + (0, _warning2['default'])(false, '`submit` is deprecated. ' + "Actually, it's more convenient to handle submitting status by yourself."); } var fn = function fn() { _this9.setState({ @@ -14702,7 +15781,7 @@ function createBaseForm() { restProps = (0, _objectWithoutProperties3['default'])(_getOptionProps, ['wrappedComponentRef']); var wrappedComponentProps = { - props: mapProps.call(this, (0, _extends3['default'])({}, formProps, restProps)), + props: mapProps.call(this, (0, _extends5['default'])({}, formProps, restProps)), on: $listeners, ref: 'WrappedComponent', directives: [{ @@ -14993,6 +16072,21 @@ var FieldsStore = function () { value: function setFieldMeta(name, meta) { this.fieldsMeta[name] = meta; } + }, { + key: 'setFieldsAsDirty', + value: function setFieldsAsDirty() { + var _this2 = this; + + Object.keys(this.fields).forEach(function (name) { + var field = _this2.fields[name]; + var fieldMeta = _this2.fieldsMeta[name]; + if (field && fieldMeta && (0, _utils.hasRules)(fieldMeta.validate)) { + _this2.fields[name] = (0, _extends3['default'])({}, field, { + dirty: true + }); + } + }); + } }, { key: 'getFieldMeta', value: function getFieldMeta(name) { @@ -15012,12 +16106,12 @@ var FieldsStore = function () { }, { key: 'getValidFieldsName', value: function getValidFieldsName() { - var _this2 = this; + var _this3 = this; var fieldsMeta = this.fieldsMeta; return fieldsMeta ? Object.keys(fieldsMeta).filter(function (name) { - return !_this2.getFieldMeta(name).hidden; + return !_this3.getFieldMeta(name).hidden; }) : []; } }, { @@ -15061,16 +16155,16 @@ var FieldsStore = function () { }, { key: 'getNotCollectedFields', value: function getNotCollectedFields() { - var _this3 = this; + var _this4 = this; var fieldsName = this.getValidFieldsName(); return fieldsName.filter(function (name) { - return !_this3.fields[name]; + return !_this4.fields[name]; }).map(function (name) { return { name: name, dirty: false, - value: _this3.getFieldMeta(name).initialValue + value: _this4.getFieldMeta(name).initialValue }; }).reduce(function (acc, field) { return (0, _set2['default'])(acc, field.name, (0, _createFormField2['default'])(field)); @@ -15079,10 +16173,10 @@ var FieldsStore = function () { }, { key: 'getNestedAllFields', value: function getNestedAllFields() { - var _this4 = this; + var _this5 = this; return Object.keys(this.fields).reduce(function (acc, name) { - return (0, _set2['default'])(acc, name, (0, _createFormField2['default'])(_this4.fields[name])); + return (0, _set2['default'])(acc, name, (0, _createFormField2['default'])(_this5.fields[name])); }, this.getNotCollectedFields()); } }, { @@ -15136,14 +16230,14 @@ var FieldsStore = function () { }(); var _initialiseProps = function _initialiseProps() { - var _this5 = this; + var _this6 = this; this.setFieldsInitialValue = function (initialValues) { - var flattenedInitialValues = _this5.flattenRegisteredFields(initialValues); - var fieldsMeta = _this5.fieldsMeta; + var flattenedInitialValues = _this6.flattenRegisteredFields(initialValues); + var fieldsMeta = _this6.fieldsMeta; Object.keys(flattenedInitialValues).forEach(function (name) { if (fieldsMeta[name]) { - _this5.setFieldMeta(name, (0, _extends3['default'])({}, _this5.getFieldMeta(name), { + _this6.setFieldMeta(name, (0, _extends3['default'])({}, _this6.getFieldMeta(name), { initialValue: flattenedInitialValues[name] })); } @@ -15151,55 +16245,55 @@ var _initialiseProps = function _initialiseProps() { }; this.getAllValues = function () { - var fieldsMeta = _this5.fieldsMeta, - fields = _this5.fields; + var fieldsMeta = _this6.fieldsMeta, + fields = _this6.fields; return Object.keys(fieldsMeta).reduce(function (acc, name) { - return (0, _set2['default'])(acc, name, _this5.getValueFromFields(name, fields)); + return (0, _set2['default'])(acc, name, _this6.getValueFromFields(name, fields)); }, {}); }; this.getFieldsValue = function (names) { - return _this5.getNestedFields(names, _this5.getFieldValue); + return _this6.getNestedFields(names, _this6.getFieldValue); }; this.getFieldValue = function (name) { - var fields = _this5.fields; + var fields = _this6.fields; - return _this5.getNestedField(name, function (fullName) { - return _this5.getValueFromFields(fullName, fields); + return _this6.getNestedField(name, function (fullName) { + return _this6.getValueFromFields(fullName, fields); }); }; this.getFieldsError = function (names) { - return _this5.getNestedFields(names, _this5.getFieldError); + return _this6.getNestedFields(names, _this6.getFieldError); }; this.getFieldError = function (name) { - return _this5.getNestedField(name, function (fullName) { - return (0, _utils.getErrorStrs)(_this5.getFieldMember(fullName, 'errors')); + return _this6.getNestedField(name, function (fullName) { + return (0, _utils.getErrorStrs)(_this6.getFieldMember(fullName, 'errors')); }); }; this.isFieldValidating = function (name) { - return _this5.getFieldMember(name, 'validating'); + return _this6.getFieldMember(name, 'validating'); }; this.isFieldsValidating = function (ns) { - var names = ns || _this5.getValidFieldsName(); + var names = ns || _this6.getValidFieldsName(); return names.some(function (n) { - return _this5.isFieldValidating(n); + return _this6.isFieldValidating(n); }); }; this.isFieldTouched = function (name) { - return _this5.getFieldMember(name, 'touched'); + return _this6.getFieldMember(name, 'touched'); }; this.isFieldsTouched = function (ns) { - var names = ns || _this5.getValidFieldsName(); + var names = ns || _this6.getValidFieldsName(); return names.some(function (n) { - return _this5.isFieldTouched(n); + return _this6.isFieldTouched(n); }); }; }; @@ -17858,7 +18952,10 @@ exports['default'] = { }, methods: { - close: function close() { + close: function close(e) { + if (e) { + e.stopPropagation(); + } this.clearCloseTimer(); this.__emit('close'); }, @@ -17979,6 +19076,10 @@ var _Notice = __webpack_require__(/*! ./Notice */ "./node_modules/ant-design-vue var _Notice2 = _interopRequireDefault(_Notice); +var _base = __webpack_require__(/*! ../base */ "./node_modules/ant-design-vue/lib/base/index.js"); + +var _base2 = _interopRequireDefault(_base); + function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } function noop() {} @@ -18129,7 +19230,8 @@ Notification.newInstance = function newNotificationInstance(properties, callback } else { document.body.appendChild(div); } - new _vue2['default']({ + var V = _base2['default'].Vue || _vue2['default']; + new V({ el: div, mounted: function mounted() { var self = this; @@ -18188,7 +19290,7 @@ var _Notification2 = _interopRequireDefault(_Notification); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } -exports['default'] = _Notification2['default']; // based on rc-notification 3.3.0 +exports['default'] = _Notification2['default']; // based on rc-notification 3.3.1 /***/ }), @@ -18408,8 +19510,8 @@ exports['default'] = { } var activeKeyProps = {}; - var clonedMenuItems = menuItems; var defaultActiveFirst = defaultActiveFirstOption; + var clonedMenuItems = menuItems; if (selectedKeys.length || firstActiveValue) { if (props.visible && !this.lastVisible) { activeKeyProps.activeKey = selectedKeys[0] || firstActiveValue; @@ -18658,14 +19760,14 @@ Object.defineProperty(exports, "__esModule", { }); exports.Select = undefined; -var _babelHelperVueJsxMergeProps = __webpack_require__(/*! babel-helper-vue-jsx-merge-props */ "./node_modules/babel-helper-vue-jsx-merge-props/index.js"); - -var _babelHelperVueJsxMergeProps2 = _interopRequireDefault(_babelHelperVueJsxMergeProps); - var _defineProperty2 = __webpack_require__(/*! babel-runtime/helpers/defineProperty */ "./node_modules/babel-runtime/helpers/defineProperty.js"); var _defineProperty3 = _interopRequireDefault(_defineProperty2); +var _babelHelperVueJsxMergeProps = __webpack_require__(/*! babel-helper-vue-jsx-merge-props */ "./node_modules/babel-helper-vue-jsx-merge-props/index.js"); + +var _babelHelperVueJsxMergeProps2 = _interopRequireDefault(_babelHelperVueJsxMergeProps); + var _extends2 = __webpack_require__(/*! babel-runtime/helpers/extends */ "./node_modules/babel-runtime/helpers/extends.js"); var _extends3 = _interopRequireDefault(_extends2); @@ -18732,6 +19834,12 @@ var _util = __webpack_require__(/*! ./util */ "./node_modules/ant-design-vue/lib var _PropTypes = __webpack_require__(/*! ./PropTypes */ "./node_modules/ant-design-vue/lib/vc-select/PropTypes.js"); +var _contains = __webpack_require__(/*! ../_util/Dom/contains */ "./node_modules/ant-design-vue/lib/_util/Dom/contains.js"); + +var _contains2 = _interopRequireDefault(_contains); + +var _env = __webpack_require__(/*! ../_util/env */ "./node_modules/ant-design-vue/lib/_util/env.js"); + function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } _vue2['default'].use(_vueRef2['default'], { name: 'ant-ref' }); @@ -18774,7 +19882,7 @@ var Select = { showSearch: _PropTypes.SelectPropTypes.showSearch.def(true), allowClear: _PropTypes.SelectPropTypes.allowClear.def(false), placeholder: _PropTypes.SelectPropTypes.placeholder.def(''), - showArrow: _PropTypes.SelectPropTypes.showArrow.def(true), + // showArrow: SelectPropTypes.showArrow.def(true), dropdownMatchSelectWidth: _vueTypes2['default'].bool.def(true), dropdownStyle: _PropTypes.SelectPropTypes.dropdownStyle.def({}), dropdownMenuStyle: _vueTypes2['default'].object.def({}), @@ -18812,6 +19920,7 @@ var Select = { this._focused = false; this._mouseDown = false; this._options = []; + this._empty = false; }, data: function data() { var props = (0, _propsUtil.getOptionProps)(this); @@ -18834,7 +19943,14 @@ var Select = { var _this = this; this.$nextTick(function () { - _this.autoFocus && _this.focus(); + // when defaultOpen is true, we should auto focus search input + // https://github.com/ant-design/ant-design/issues/14254 + if (_this.autoFocus || _this._open) { + _this.focus(); + } + // this.setState({ + // _ariaId: generateUUID(), + // }); }); }, @@ -18850,7 +19966,7 @@ var Select = { if ((0, _util.isMultipleOrTags)(_this2.$props)) { var inputNode = _this2.getInputDOMNode(); var mirrorNode = _this2.getInputMirrorDOMNode(); - if (inputNode.value && inputNode.value && mirrorNode) { + if (inputNode && inputNode.value && mirrorNode) { inputNode.style.width = ''; inputNode.style.width = mirrorNode.clientWidth + 10 + 'px'; } else if (inputNode) { @@ -18947,7 +20063,8 @@ var Select = { option: option, value: singleValue, label: _this4.getLabelFromOption(props, option), - title: (0, _propsUtil.getValueByProp)(option, 'title') + title: (0, _propsUtil.getValueByProp)(option, 'title'), + disabled: (0, _propsUtil.getValueByProp)(option, 'disabled') }; }); if (preState) { @@ -18980,10 +20097,17 @@ var Select = { } return value; }, - onInputChange: function onInputChange(event) { + onInputChange: function onInputChange(e) { + var _e$target = e.target, + val = _e$target.value, + composing = _e$target.composing; + + var _$data$_inputValue = this.$data._inputValue, + _inputValue = _$data$_inputValue === undefined ? '' : _$data$_inputValue; + + if (composing || _inputValue === val) return; var tokenSeparators = this.$props.tokenSeparators; - var val = event.target.value; if ((0, _util.isMultipleOrTags)(this.$props) && tokenSeparators.length && (0, _util.includesSeparators)(val, tokenSeparators)) { var nextValue = this.getValueByInput(val); if (nextValue !== undefined) { @@ -19025,6 +20149,7 @@ var Select = { this.onInputKeydown(event); } else if (keyCode === _KeyCode2['default'].ENTER || keyCode === _KeyCode2['default'].DOWN) { // vue state是同步更新,onKeyDown在onMenuSelect后会再次调用,单选时不在调用setOpenState + // https://github.com/vueComponent/ant-design-vue/issues/1142 if (keyCode === _KeyCode2['default'].ENTER && !(0, _util.isMultipleOrTags)(this.$props)) { this.maybeFocus(true); } else if (!open) { @@ -19045,6 +20170,7 @@ var Select = { return; } var state = this.$data; + var isRealOpen = this.getRealOpenState(state); var keyCode = event.keyCode; if ((0, _util.isMultipleOrTags)(props) && !event.target.value && keyCode === _KeyCode2['default'].BACKSPACE) { event.preventDefault(); @@ -19065,7 +20191,10 @@ var Select = { } else if (keyCode === _KeyCode2['default'].ENTER && state._open) { // Aviod trigger form submit when select item // https://github.com/ant-design/ant-design/issues/10861 - event.preventDefault(); + // https://github.com/ant-design/ant-design/issues/14544 + if (isRealOpen || !props.combobox) { + event.preventDefault(); + } } else if (keyCode === _KeyCode2['default'].ESC) { if (state._open) { this.setOpenState(false); @@ -19075,7 +20204,7 @@ var Select = { return; } - if (this.getRealOpenState(state) && this.selectTriggerRef) { + if (isRealOpen && this.selectTriggerRef) { var menu = this.selectTriggerRef.getInnerMenu(); if (menu && menu.onKeyDown(event, this.handleBackfill)) { event.preventDefault(); @@ -19100,7 +20229,7 @@ var Select = { } value = value.concat([selectedValue]); } else { - if (lastValue !== undefined && lastValue === selectedValue && selectedValue !== this.$data._backfillValue) { + if (!(0, _util.isCombobox)(props) && lastValue !== undefined && lastValue === selectedValue && selectedValue !== this.$data._backfillValue) { this.setOpenState(false, true); return; } @@ -19132,6 +20261,7 @@ var Select = { onArrowClick: function onArrowClick(e) { e.stopPropagation(); e.preventDefault(); + this.clearBlurTime(); if (!this.disabled) { this.setOpenState(!this.$data._open, !this.$data._open); } @@ -19221,6 +20351,11 @@ var Select = { var value = null; Object.keys(this.$data._optionsInfo).forEach(function (key) { var info = _this6.$data._optionsInfo[key]; + var disabled = info.disabled; + + if (disabled) { + return; + } var oldLable = (0, _util.toArray)(info.label); if (oldLable && oldLable.join('') === label) { value = info.value; @@ -19316,11 +20451,21 @@ var Select = { this._focused = false; } }, - inputBlur: function inputBlur() { + inputBlur: function inputBlur(e) { var _this8 = this; + var target = e.relatedTarget || document.activeElement; + + // https://github.com/vueComponent/ant-design-vue/issues/999 + // https://github.com/vueComponent/ant-design-vue/issues/1223 + if ((_env.isIE || _env.isEdge) && (e.relatedTarget === this.$refs.arrow || target && this.selectTriggerRef && this.selectTriggerRef.getInnerMenu() && this.selectTriggerRef.getInnerMenu().$el === target || (0, _contains2['default'])(e.target, target))) { + e.target.focus(); + e.preventDefault(); + return; + } this.clearBlurTime(); if (this.disabled) { + e.preventDefault(); return; } this.blurTimer = setTimeout(function () { @@ -19346,11 +20491,9 @@ var Select = { } else { // why not use setState? _this8.$data._inputValue = ''; - _this8.$nextTick(function () { - if (_this8.getInputDOMNode && _this8.getInputDOMNode()) { - _this8.getInputDOMNode().value = ''; - } - }); + if (_this8.getInputDOMNode && _this8.getInputDOMNode()) { + _this8.getInputDOMNode().value = ''; + } } var tmpValue = _this8.getValueByInput(inputValue); if (tmpValue !== undefined) { @@ -19366,7 +20509,7 @@ var Select = { } _this8.setOpenState(false); _this8.$emit('blur', _this8.getVLForOnChange(value)); - }, 10); + }, 200); }, inputFocus: function inputFocus(e) { if (this.$props.disabled) { @@ -19394,9 +20537,16 @@ var Select = { var inputValue = this.$data._inputValue; var attrs = (0, _propsUtil.getAttrs)(this); - var defaultInput = h('input', { - attrs: { id: attrs.id, autoComplete: 'off' } - }); + var defaultInput = h('input', (0, _babelHelperVueJsxMergeProps2['default'])([{ + directives: [{ + name: 'ant-input' + }] + }, { + attrs: { + id: attrs.id, + autoComplete: 'off' + } + }])); var inputElement = props.getInputElement ? props.getInputElement() : defaultInput; var inputCls = (0, _classnames3['default'])((0, _propsUtil.getClass)(inputElement), (0, _defineProperty3['default'])({}, props.prefixCls + '-search__field', true)); @@ -19736,6 +20886,7 @@ var Select = { var menuItems = []; var childrenKeys = []; + var empty = false; var options = this.renderFilterOptionsFromChildren(children, childrenKeys, menuItems); if (tags) { // tags value must be string @@ -19743,6 +20894,12 @@ var Select = { value = value.filter(function (singleValue) { return childrenKeys.indexOf(singleValue) === -1 && (!inputValue || String(singleValue).indexOf(String(inputValue)) > -1); }); + + // sort by length + value.sort(function (val1, val2) { + return val1.length - val2.length; + }); + value.forEach(function (singleValue) { var key = singleValue; var attrs = (0, _extends3['default'])({}, _util.UNSELECTABLE_ATTRIBUTE, { @@ -19792,6 +20949,7 @@ var Select = { } if (!options.length && notFoundContent) { + empty = true; var _p = { attrs: _util.UNSELECTABLE_ATTRIBUTE, key: 'NOT_FOUND', @@ -19808,7 +20966,7 @@ var Select = { [notFoundContent] )]; } - return options; + return { empty: empty, options: options }; }, renderFilterOptionsFromChildren: function renderFilterOptionsFromChildren() { var children = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : []; @@ -19837,6 +20995,7 @@ var Select = { label = key; } var childChildren = (0, _propsUtil.getSlots)(child)['default']; + childChildren = typeof childChildren === 'function' ? childChildren() : childChildren; // Match option group label if (inputValue && _this13._filterOption(inputValue, child)) { var innerItems = childChildren.map(function (subChild) { @@ -20102,19 +21261,19 @@ var Select = { }, renderArrow: function renderArrow(multiple) { var h = this.$createElement; + + // showArrow : Set to true if not multiple by default but keep set value. var _$props3 = this.$props, - showArrow = _$props3.showArrow, + _$props3$showArrow = _$props3.showArrow, + showArrow = _$props3$showArrow === undefined ? !multiple : _$props3$showArrow, loading = _$props3.loading, prefixCls = _$props3.prefixCls; var inputIcon = (0, _propsUtil.getComponentFromProp)(this, 'inputIcon'); - if (!showArrow) { + if (!showArrow && !loading) { return null; } // if loading have loading icon - if (multiple && !loading) { - return null; - } var defaultIcon = loading ? h('i', { 'class': prefixCls + '-arrow-loading' }) : h('i', { 'class': prefixCls + '-arrow-icon' }); return h( 'span', @@ -20125,7 +21284,9 @@ var Select = { }, { attrs: _util.UNSELECTABLE_ATTRIBUTE }, { on: { 'click': this.onArrowClick - } + }, + + ref: 'arrow' }]), [inputIcon || defaultIcon] ); @@ -20181,31 +21342,36 @@ var Select = { return null; }, selectionRefClick: function selectionRefClick(e) { - e.stopPropagation(); + //e.stopPropagation(); if (!this.disabled) { var input = this.getInputDOMNode(); if (this._focused && this.$data._open) { - this._focused = false; + // this._focused = false; this.setOpenState(false, false); input && input.blur(); } else { this.clearBlurTime(); - this._focused = true; + //this._focused = true; this.setOpenState(true, true); input && input.focus(); } } }, - selectionRefFocus: function selectionRefFocus() { - if (this._focused || this.disabled) { + selectionRefFocus: function selectionRefFocus(e) { + if (this._focused || this.disabled || (0, _util.isMultipleOrTagsOrCombobox)(this.$props)) { + e.preventDefault(); return; } this._focused = true; this.updateFocusClassName(); this.$emit('focus'); }, - selectionRefBlur: function selectionRefBlur() { - this.inputBlur(); + selectionRefBlur: function selectionRefBlur(e) { + if ((0, _util.isMultipleOrTagsOrCombobox)(this.$props)) { + e.preventDefault(); + return; + } + this.inputBlur(e); } }, @@ -20216,9 +21382,14 @@ var Select = { var props = this.$props; var multiple = (0, _util.isMultipleOrTags)(props); + // Default set showArrow to true if not set (not set directly in defaultProps to handle multiple case) + var _props$showArrow = props.showArrow, + showArrow = _props$showArrow === undefined ? true : _props$showArrow; + var state = this.$data; var disabled = props.disabled, - prefixCls = props.prefixCls; + prefixCls = props.prefixCls, + loading = props.loading; var ctrlNode = this.renderTopControlNode(); var _$data4 = this.$data, @@ -20227,9 +21398,12 @@ var Select = { value = _$data4._value; if (open) { - this._options = this.renderFilterOptions(); + var filterOptions = this.renderFilterOptions(); + this._empty = filterOptions.empty; + this._options = filterOptions.options; } var realOpen = this.getRealOpenState(); + var empty = this._empty; var options = this._options || []; var $listeners = this.$listeners; var _$listeners$mouseente = $listeners.mouseenter, @@ -20249,22 +21423,24 @@ var Select = { 'aria-controls': this.$data._ariaId }, on: { - click: this.selectionRefClick + // click: this.selectionRefClick, }, 'class': prefixCls + '-selection ' + prefixCls + '-selection--' + (multiple ? 'multiple' : 'single'), - directives: [{ - name: 'ant-ref', - value: this.saveSelectionRef - }], + // directives: [ + // { + // name: 'ant-ref', + // value: this.saveSelectionRef, + // }, + // ], key: 'selection' }; - if (!(0, _util.isMultipleOrTagsOrCombobox)(props)) { - selectionProps.on.keydown = this.onKeyDown; - selectionProps.on.focus = this.selectionRefFocus; - selectionProps.on.blur = this.selectionRefBlur; - selectionProps.attrs.tabIndex = props.disabled ? -1 : props.tabIndex; - } - var rootCls = (_rootCls = {}, (0, _defineProperty3['default'])(_rootCls, prefixCls, true), (0, _defineProperty3['default'])(_rootCls, prefixCls + '-open', open), (0, _defineProperty3['default'])(_rootCls, prefixCls + '-focused', open || !!this._focused), (0, _defineProperty3['default'])(_rootCls, prefixCls + '-combobox', (0, _util.isCombobox)(props)), (0, _defineProperty3['default'])(_rootCls, prefixCls + '-disabled', disabled), (0, _defineProperty3['default'])(_rootCls, prefixCls + '-enabled', !disabled), (0, _defineProperty3['default'])(_rootCls, prefixCls + '-allow-clear', !!props.allowClear), (0, _defineProperty3['default'])(_rootCls, prefixCls + '-no-arrow', !props.showArrow), _rootCls); + //if (!isMultipleOrTagsOrCombobox(props)) { + // selectionProps.on.keydown = this.onKeyDown; + // selectionProps.on.focus = this.selectionRefFocus; + // selectionProps.on.blur = this.selectionRefBlur; + // selectionProps.attrs.tabIndex = props.disabled ? -1 : props.tabIndex; + //} + var rootCls = (_rootCls = {}, (0, _defineProperty3['default'])(_rootCls, prefixCls, true), (0, _defineProperty3['default'])(_rootCls, prefixCls + '-open', open), (0, _defineProperty3['default'])(_rootCls, prefixCls + '-focused', open || !!this._focused), (0, _defineProperty3['default'])(_rootCls, prefixCls + '-combobox', (0, _util.isCombobox)(props)), (0, _defineProperty3['default'])(_rootCls, prefixCls + '-disabled', disabled), (0, _defineProperty3['default'])(_rootCls, prefixCls + '-enabled', !disabled), (0, _defineProperty3['default'])(_rootCls, prefixCls + '-allow-clear', !!props.allowClear), (0, _defineProperty3['default'])(_rootCls, prefixCls + '-no-arrow', !showArrow), (0, _defineProperty3['default'])(_rootCls, prefixCls + '-loading', !!loading), _rootCls); return h( _SelectTrigger2['default'], (0, _babelHelperVueJsxMergeProps2['default'])([{ @@ -20281,6 +21457,7 @@ var Select = { combobox: props.combobox, showSearch: props.showSearch, options: options, + empty: empty, multiple: multiple, disabled: disabled, visible: realOpen, @@ -20319,7 +21496,7 @@ var Select = { (0, _babelHelperVueJsxMergeProps2['default'])([{ directives: [{ name: 'ant-ref', - value: this.saveRootRef + value: chaining(this.saveRootRef, this.saveSelectionRef) }] }, { style: (0, _propsUtil.getStyle)(this), @@ -20327,7 +21504,14 @@ var Select = { on: { 'mousedown': this.markMouseDown, 'mouseup': this.markMouseLeave, - 'mouseout': this.markMouseLeave + 'mouseout': this.markMouseLeave, + 'blur': this.selectionRefBlur, + 'focus': this.selectionRefFocus, + 'click': this.selectionRefClick, + 'keydown': (0, _util.isMultipleOrTagsOrCombobox)(props) ? noop : this.onKeyDown + }, + attrs: { + tabIndex: props.disabled ? -1 : props.tabIndex } }]), [h( @@ -20427,6 +21611,7 @@ exports['default'] = { multiple: _vueTypes2['default'].bool, inputValue: _vueTypes2['default'].string, filterOption: _vueTypes2['default'].any, + empty: _vueTypes2['default'].bool, options: _vueTypes2['default'].any, prefixCls: _vueTypes2['default'].string, popupClassName: _vueTypes2['default'].string, @@ -20557,14 +21742,15 @@ exports['default'] = { dropdownMatchSelectWidth = $props.dropdownMatchSelectWidth, options = $props.options, getPopupContainer = $props.getPopupContainer, - showAction = $props.showAction; + showAction = $props.showAction, + empty = $props.empty; var mouseenter = $listeners.mouseenter, mouseleave = $listeners.mouseleave, popupFocus = $listeners.popupFocus, dropdownVisibleChange = $listeners.dropdownVisibleChange; var dropdownPrefixCls = this.getDropdownPrefixCls(); - var popupClassName = (_popupClassName = {}, (0, _defineProperty3['default'])(_popupClassName, dropdownClassName, !!dropdownClassName), (0, _defineProperty3['default'])(_popupClassName, dropdownPrefixCls + '--' + (multiple ? 'multiple' : 'single'), 1), _popupClassName); + var popupClassName = (_popupClassName = {}, (0, _defineProperty3['default'])(_popupClassName, dropdownClassName, !!dropdownClassName), (0, _defineProperty3['default'])(_popupClassName, dropdownPrefixCls + '--' + (multiple ? 'multiple' : 'single'), 1), (0, _defineProperty3['default'])(_popupClassName, dropdownPrefixCls + '--empty', empty), _popupClassName); var popupElement = this.getDropdownElement({ props: { menuItems: options, @@ -20663,7 +21849,7 @@ var _OptGroup2 = _interopRequireDefault(_OptGroup); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } -// based on vc-select 8.7.0 +// based on vc-select 8.9.0 _Select.Select.Option = _Option2['default']; _Select.Select.OptGroup = _OptGroup2['default']; _Select2['default'].Option = _Option2['default']; @@ -21238,6 +22424,8 @@ exports['default'] = { var props = (0, _extends3['default'])({}, this.$props); var listeners = this.$listeners; + var renderTabBarNode = this.$scopedSlots['default']; + return h(_SaveRef2['default'], { attrs: { children: function children(saveRef, getRef) { @@ -21252,8 +22440,10 @@ exports['default'] = { attrs: { saveRef: saveRef, getRef: getRef } }, { props: props, on: listeners }]), [h(_TabBarTabsNode2['default'], (0, _babelHelperVueJsxMergeProps2['default'])([{ - attrs: { saveRef: saveRef } - }, { props: props, on: listeners }])), h(_InkTabBarNode2['default'], (0, _babelHelperVueJsxMergeProps2['default'])([{ + attrs: { + saveRef: saveRef + } + }, { props: (0, _extends3['default'])({}, props, { renderTabBarNode: renderTabBarNode }), on: listeners }])), h(_InkTabBarNode2['default'], (0, _babelHelperVueJsxMergeProps2['default'])([{ attrs: { saveRef: saveRef, getRef: getRef } }, { props: props, on: listeners }]))] )] @@ -21319,15 +22509,15 @@ exports['default'] = { name: 'ScrollableTabBarNode', mixins: [_BaseMixin2['default']], props: { - saveRef: _vueTypes2['default'].func.def(function () {}), + activeKey: _vueTypes2['default'].any, getRef: _vueTypes2['default'].func.def(function () {}), + saveRef: _vueTypes2['default'].func.def(function () {}), tabBarPosition: _vueTypes2['default'].oneOf(['left', 'right', 'top', 'bottom']).def('left'), prefixCls: _vueTypes2['default'].string.def(''), scrollAnimated: _vueTypes2['default'].bool.def(true), navWrapper: _vueTypes2['default'].func.def(function (arg) { return arg; }), - activeKey: _vueTypes2['default'].any, prevIcon: _vueTypes2['default'].any, nextIcon: _vueTypes2['default'].any }, @@ -21915,6 +23105,7 @@ exports['default'] = { onTabClick: _vueTypes2['default'].func, saveRef: _vueTypes2['default'].func.def(noop), getRef: _vueTypes2['default'].func.def(noop), + renderTabBarNode: _vueTypes2['default'].func, tabBarPosition: _vueTypes2['default'].string }, render: function render() { @@ -21930,7 +23121,7 @@ exports['default'] = { tabBarPosition = _$props.tabBarPosition; var rst = []; - + var renderTabBarNode = this.renderTabBarNode || this.$scopedSlots.renderTabBarNode; children.forEach(function (child, index) { if (!child) { return; @@ -21960,7 +23151,7 @@ exports['default'] = { gutter = typeof gutter === 'number' ? gutter + 'px' : gutter; var style = (0, _defineProperty3['default'])({}, (0, _utils.isVertical)(tabBarPosition) ? 'marginBottom' : 'marginRight', gutter); (0, _warning2['default'])(tab !== undefined, 'There must be `tab` property or slot on children of Tabs.'); - rst.push(h( + var node = h( 'div', (0, _babelHelperVueJsxMergeProps2['default'])([{ attrs: { @@ -21974,7 +23165,12 @@ exports['default'] = { style: style }, { directives: directives }]), [tab] - )); + ); + if (renderTabBarNode) { + node = renderTabBarNode(node); + } + + rst.push(node); }); return h( @@ -22529,7 +23725,7 @@ var _TabContent2 = _interopRequireDefault(_TabContent); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } -_vue2['default'].use(_vueRef2['default'], { name: 'ant-ref' }); // based on rc-tabs 9.5.8 +_vue2['default'].use(_vueRef2['default'], { name: 'ant-ref' }); // based on rc-tabs 9.6.1 exports['default'] = _Tabs2['default']; exports.TabPane = _TabPane2['default']; exports.TabContent = _TabContent2['default']; @@ -23140,6 +24336,7 @@ exports['default'] = { }) }, data: function data() { + this.domEl = null; return { // Used for stretch stretchChecked: false, @@ -23155,6 +24352,12 @@ exports['default'] = { _this.setStretchSize(); }); }, + beforeUpdate: function beforeUpdate() { + if (this.domEl && this.domEl.rcEndListener) { + this.domEl.rcEndListener(); + this.domEl = null; + } + }, updated: function updated() { var _this2 = this; @@ -23333,18 +24536,22 @@ exports['default'] = { var transitionEvent = { beforeEnter: function beforeEnter() { // el.style.display = el.__vOriginalDisplay - // this.$refs.alignInstance.forceAlign() + // this.$refs.alignInstance.forceAlign(); }, enter: function enter(el, done) { - // align updated后执行动画 + // render 后 vue 会移除通过animate动态添加的 class导致动画闪动,延迟两帧添加动画class,可以进一步定位或者重写 transition 组件 _this3.$nextTick(function () { if (_this3.$refs.alignInstance) { _this3.$refs.alignInstance.$nextTick(function () { + _this3.domEl = el; (0, _cssAnimation2['default'])(el, transitionName + '-enter', done); }); } }); }, + beforeLeave: function beforeLeave() { + _this3.domEl = null; + }, leave: function leave(el, done) { (0, _cssAnimation2['default'])(el, transitionName + '-leave', done); } @@ -23687,7 +24894,7 @@ exports['default'] = { this.$nextTick(function () { _this.renderComponent(null, function () { - _this.afterPopupVisibleChange(val); + _this.afterPopupVisibleChange(_this.sPopupVisible); }); }); } @@ -23797,10 +25004,12 @@ exports['default'] = { this.preTouchTime = Date.now(); }, onBlur: function onBlur(e) { - this.fireEvents('blur', e); - this.clearDelayTimer(); - if (this.isBlurToHide()) { - this.delaySetPopupVisible(false, this.$props.blurDelay); + if (!(0, _contains2['default'])(e.target, e.relatedTarget || document.activeElement)) { + this.fireEvents('blur', e); + this.clearDelayTimer(); + if (this.isBlurToHide()) { + this.delaySetPopupVisible(false, this.$props.blurDelay); + } } }, onContextmenu: function onContextmenu(e) { @@ -24304,559 +25513,277 @@ function noop() {} /***/ }), -/***/ "./node_modules/async-validator/es/index.js": -/*!**************************************************!*\ - !*** ./node_modules/async-validator/es/index.js ***! - \**************************************************/ -/*! no static exports found */ -/***/ (function(module, exports, __webpack_require__) { +/***/ "./node_modules/async-validator/dist-web/index.js": +/*!********************************************************!*\ + !*** ./node_modules/async-validator/dist-web/index.js ***! + \********************************************************/ +/*! exports provided: default */ +/***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; +__webpack_require__.r(__webpack_exports__); +/* WEBPACK VAR INJECTION */(function(process) {function _extends() { + _extends = Object.assign || function (target) { + for (var i = 1; i < arguments.length; i++) { + var source = arguments[i]; + for (var key in source) { + if (Object.prototype.hasOwnProperty.call(source, key)) { + target[key] = source[key]; + } + } + } -Object.defineProperty(exports, "__esModule", { - value: true -}); - -var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; + return target; + }; -var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; + return _extends.apply(this, arguments); +} -var _util = __webpack_require__(/*! ./util */ "./node_modules/async-validator/es/util.js"); +/* eslint no-console:0 */ +var formatRegExp = /%[sdj%]/g; +var warning = function warning() {}; // don't print warning message when in production env or node runtime -var _validator = __webpack_require__(/*! ./validator/ */ "./node_modules/async-validator/es/validator/index.js"); +if (typeof process !== 'undefined' && process.env && "development" !== 'production' && typeof window !== 'undefined' && typeof document !== 'undefined') { + warning = function warning(type, errors) { + if (typeof console !== 'undefined' && console.warn) { + if (errors.every(function (e) { + return typeof e === 'string'; + })) { + console.warn(type, errors); + } + } + }; +} -var _validator2 = _interopRequireDefault(_validator); +function convertFieldsError(errors) { + if (!errors || !errors.length) return null; + var fields = {}; + errors.forEach(function (error) { + var field = error.field; + fields[field] = fields[field] || []; + fields[field].push(error); + }); + return fields; +} +function format() { + for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) { + args[_key] = arguments[_key]; + } -var _messages2 = __webpack_require__(/*! ./messages */ "./node_modules/async-validator/es/messages.js"); + var i = 1; + var f = args[0]; + var len = args.length; -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } + if (typeof f === 'function') { + return f.apply(null, args.slice(1)); + } -/** - * Encapsulates a validation schema. - * - * @param descriptor An object declaring validation rules - * for this schema. - */ -function Schema(descriptor) { - this.rules = null; - this._messages = _messages2.messages; - this.define(descriptor); -} + if (typeof f === 'string') { + var str = String(f).replace(formatRegExp, function (x) { + if (x === '%%') { + return '%'; + } -Schema.prototype = { - messages: function messages(_messages) { - if (_messages) { - this._messages = (0, _util.deepMerge)((0, _messages2.newMessages)(), _messages); - } - return this._messages; - }, - define: function define(rules) { - if (!rules) { - throw new Error('Cannot configure a schema with no rules'); - } - if ((typeof rules === 'undefined' ? 'undefined' : _typeof(rules)) !== 'object' || Array.isArray(rules)) { - throw new Error('Rules must be an object'); - } - this.rules = {}; - var z = void 0; - var item = void 0; - for (z in rules) { - if (rules.hasOwnProperty(z)) { - item = rules[z]; - this.rules[z] = Array.isArray(item) ? item : [item]; + if (i >= len) { + return x; } - } - }, - validate: function validate(source_) { - var _this = this; - var o = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; - var oc = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : function () {}; + switch (x) { + case '%s': + return String(args[i++]); + + case '%d': + return Number(args[i++]); - var source = source_; - var options = o; - var callback = oc; - if (typeof options === 'function') { - callback = options; - options = {}; - } - if (!this.rules || Object.keys(this.rules).length === 0) { - if (callback) { - callback(); + case '%j': + try { + return JSON.stringify(args[i++]); + } catch (_) { + return '[Circular]'; + } + + break; + + default: + return x; } - return Promise.resolve(); + }); + + for (var arg = args[i]; i < len; arg = args[++i]) { + str += " " + arg; } - function complete(results) { - var i = void 0; - var errors = []; - var fields = {}; + return str; + } - function add(e) { - if (Array.isArray(e)) { - var _errors; + return f; +} - errors = (_errors = errors).concat.apply(_errors, e); - } else { - errors.push(e); - } - } +function isNativeStringType(type) { + return type === 'string' || type === 'url' || type === 'hex' || type === 'email' || type === 'pattern'; +} - for (i = 0; i < results.length; i++) { - add(results[i]); - } - if (!errors.length) { - errors = null; - fields = null; - } else { - fields = (0, _util.convertFieldsError)(errors); - } - callback(errors, fields); +function isEmptyValue(value, type) { + if (value === undefined || value === null) { + return true; + } + + if (type === 'array' && Array.isArray(value) && !value.length) { + return true; + } + + if (isNativeStringType(type) && typeof value === 'string' && !value) { + return true; + } + + return false; +} + +function asyncParallelArray(arr, func, callback) { + var results = []; + var total = 0; + var arrLength = arr.length; + + function count(errors) { + results.push.apply(results, errors); + total++; + + if (total === arrLength) { + callback(results); } + } - if (options.messages) { - var messages = this.messages(); - if (messages === _messages2.messages) { - messages = (0, _messages2.newMessages)(); - } - (0, _util.deepMerge)(messages, options.messages); - options.messages = messages; + arr.forEach(function (a) { + func(a, count); + }); +} + +function asyncSerialArray(arr, func, callback) { + var index = 0; + var arrLength = arr.length; + + function next(errors) { + if (errors && errors.length) { + callback(errors); + return; + } + + var original = index; + index = index + 1; + + if (original < arrLength) { + func(arr[original], next); } else { - options.messages = this.messages(); + callback([]); } - var arr = void 0; - var value = void 0; - var series = {}; - var keys = options.keys || Object.keys(this.rules); - keys.forEach(function (z) { - arr = _this.rules[z]; - value = source[z]; - arr.forEach(function (r) { - var rule = r; - if (typeof rule.transform === 'function') { - if (source === source_) { - source = _extends({}, source); - } - value = source[z] = rule.transform(value); - } - if (typeof rule === 'function') { - rule = { - validator: rule - }; - } else { - rule = _extends({}, rule); - } - rule.validator = _this.getValidationMethod(rule); - rule.field = z; - rule.fullField = rule.fullField || z; - rule.type = _this.getType(rule); - if (!rule.validator) { - return; - } - series[z] = series[z] || []; - series[z].push({ - rule: rule, - value: value, - source: source, - field: z - }); - }); + } + + next([]); +} + +function flattenObjArr(objArr) { + var ret = []; + Object.keys(objArr).forEach(function (k) { + ret.push.apply(ret, objArr[k]); + }); + return ret; +} + +function asyncMap(objArr, option, func, callback) { + if (option.first) { + var _pending = new Promise(function (resolve, reject) { + var next = function next(errors) { + callback(errors); + return errors.length ? reject({ + errors: errors, + fields: convertFieldsError(errors) + }) : resolve(); + }; + + var flattenArr = flattenObjArr(objArr); + asyncSerialArray(flattenArr, func, next); }); - var errorFields = {}; - return (0, _util.asyncMap)(series, options, function (data, doIt) { - var rule = data.rule; - var deep = (rule.type === 'object' || rule.type === 'array') && (_typeof(rule.fields) === 'object' || _typeof(rule.defaultField) === 'object'); - deep = deep && (rule.required || !rule.required && data.value); - rule.field = data.field; - function addFullfield(key, schema) { - return _extends({}, schema, { - fullField: rule.fullField + '.' + key - }); - } + _pending["catch"](function (e) { + return e; + }); - function cb() { - var e = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : []; + return _pending; + } - var errors = e; - if (!Array.isArray(errors)) { - errors = [errors]; - } - if (!options.suppressWarning && errors.length) { - Schema.warning('async-validator:', errors); - } - if (errors.length && rule.message) { - errors = [].concat(rule.message); - } + var firstFields = option.firstFields || []; - errors = errors.map((0, _util.complementError)(rule)); + if (firstFields === true) { + firstFields = Object.keys(objArr); + } - if (options.first && errors.length) { - errorFields[rule.field] = 1; - return doIt(errors); - } - if (!deep) { - doIt(errors); - } else { - // if rule is required but the target object - // does not exist fail at the rule level and don't - // go deeper - if (rule.required && !data.value) { - if (rule.message) { - errors = [].concat(rule.message).map((0, _util.complementError)(rule)); - } else if (options.error) { - errors = [options.error(rule, (0, _util.format)(options.messages.required, rule.field))]; - } else { - errors = []; - } - return doIt(errors); - } + var objArrKeys = Object.keys(objArr); + var objArrLength = objArrKeys.length; + var total = 0; + var results = []; + var pending = new Promise(function (resolve, reject) { + var next = function next(errors) { + results.push.apply(results, errors); + total++; - var fieldsSchema = {}; - if (rule.defaultField) { - for (var k in data.value) { - if (data.value.hasOwnProperty(k)) { - fieldsSchema[k] = rule.defaultField; - } - } - } - fieldsSchema = _extends({}, fieldsSchema, data.rule.fields); - for (var f in fieldsSchema) { - if (fieldsSchema.hasOwnProperty(f)) { - var fieldSchema = Array.isArray(fieldsSchema[f]) ? fieldsSchema[f] : [fieldsSchema[f]]; - fieldsSchema[f] = fieldSchema.map(addFullfield.bind(null, f)); - } - } - var schema = new Schema(fieldsSchema); - schema.messages(options.messages); - if (data.rule.options) { - data.rule.options.messages = options.messages; - data.rule.options.error = options.error; - } - schema.validate(data.value, data.rule.options || options, function (errs) { - var finalErrors = []; - if (errors && errors.length) { - finalErrors.push.apply(finalErrors, errors); - } - if (errs && errs.length) { - finalErrors.push.apply(finalErrors, errs); - } - doIt(finalErrors.length ? finalErrors : null); - }); - } + if (total === objArrLength) { + callback(results); + return results.length ? reject({ + errors: results, + fields: convertFieldsError(results) + }) : resolve(); } + }; - var res = void 0; - if (rule.asyncValidator) { - res = rule.asyncValidator(rule, data.value, cb, data.source, options); - } else if (rule.validator) { - res = rule.validator(rule, data.value, cb, data.source, options); - if (res === true) { - cb(); - } else if (res === false) { - cb(rule.message || rule.field + ' fails'); - } else if (res instanceof Array) { - cb(res); - } else if (res instanceof Error) { - cb(res.message); - } - } - if (res && res.then) { - res.then(function () { - return cb(); - }, function (e) { - return cb(e); - }); + objArrKeys.forEach(function (key) { + var arr = objArr[key]; + + if (firstFields.indexOf(key) !== -1) { + asyncSerialArray(arr, func, next); + } else { + asyncParallelArray(arr, func, next); } - }, function (results) { - complete(results); }); - }, - getType: function getType(rule) { - if (rule.type === undefined && rule.pattern instanceof RegExp) { - rule.type = 'pattern'; - } - if (typeof rule.validator !== 'function' && rule.type && !_validator2['default'].hasOwnProperty(rule.type)) { - throw new Error((0, _util.format)('Unknown rule type %s', rule.type)); - } - return rule.type || 'string'; - }, - getValidationMethod: function getValidationMethod(rule) { - if (typeof rule.validator === 'function') { - return rule.validator; - } - var keys = Object.keys(rule); - var messageIndex = keys.indexOf('message'); - if (messageIndex !== -1) { - keys.splice(messageIndex, 1); - } - if (keys.length === 1 && keys[0] === 'required') { - return _validator2['default'].required; + }); + pending["catch"](function (e) { + return e; + }); + return pending; +} +function complementError(rule) { + return function (oe) { + if (oe && oe.message) { + oe.field = oe.field || rule.fullField; + return oe; } - return _validator2['default'][this.getType(rule)] || false; - } -}; - -Schema.register = function register(type, validator) { - if (typeof validator !== 'function') { - throw new Error('Cannot register a validator by type, validator is not a function'); - } - _validator2['default'][type] = validator; -}; - -Schema.warning = _util.warning; - -Schema.messages = _messages2.messages; - -exports['default'] = Schema; - -/***/ }), - -/***/ "./node_modules/async-validator/es/messages.js": -/*!*****************************************************!*\ - !*** ./node_modules/async-validator/es/messages.js ***! - \*****************************************************/ -/*! no static exports found */ -/***/ (function(module, exports, __webpack_require__) { - -"use strict"; - -Object.defineProperty(exports, "__esModule", { - value: true -}); -exports.newMessages = newMessages; -function newMessages() { - return { - 'default': 'Validation error on field %s', - required: '%s is required', - 'enum': '%s must be one of %s', - whitespace: '%s cannot be empty', - date: { - format: '%s date %s is invalid for format %s', - parse: '%s date could not be parsed, %s is invalid ', - invalid: '%s date %s is invalid' - }, - types: { - string: '%s is not a %s', - method: '%s is not a %s (function)', - array: '%s is not an %s', - object: '%s is not an %s', - number: '%s is not a %s', - date: '%s is not a %s', - boolean: '%s is not a %s', - integer: '%s is not an %s', - float: '%s is not a %s', - regexp: '%s is not a valid %s', - email: '%s is not a valid %s', - url: '%s is not a valid %s', - hex: '%s is not a valid %s' - }, - string: { - len: '%s must be exactly %s characters', - min: '%s must be at least %s characters', - max: '%s cannot be longer than %s characters', - range: '%s must be between %s and %s characters' - }, - number: { - len: '%s must equal %s', - min: '%s cannot be less than %s', - max: '%s cannot be greater than %s', - range: '%s must be between %s and %s' - }, - array: { - len: '%s must be exactly %s in length', - min: '%s cannot be less than %s in length', - max: '%s cannot be greater than %s in length', - range: '%s must be between %s and %s in length' - }, - pattern: { - mismatch: '%s value %s does not match pattern %s' - }, - clone: function clone() { - var cloned = JSON.parse(JSON.stringify(this)); - cloned.clone = this.clone; - return cloned; - } + return { + message: typeof oe === 'function' ? oe() : oe, + field: oe.field || rule.fullField + }; }; } +function deepMerge(target, source) { + if (source) { + for (var s in source) { + if (source.hasOwnProperty(s)) { + var value = source[s]; -var messages = exports.messages = newMessages(); - -/***/ }), - -/***/ "./node_modules/async-validator/es/rule/enum.js": -/*!******************************************************!*\ - !*** ./node_modules/async-validator/es/rule/enum.js ***! - \******************************************************/ -/*! no static exports found */ -/***/ (function(module, exports, __webpack_require__) { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", { - value: true -}); - -var _util = __webpack_require__(/*! ../util */ "./node_modules/async-validator/es/util.js"); - -var util = _interopRequireWildcard(_util); - -function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) newObj[key] = obj[key]; } } newObj['default'] = obj; return newObj; } } - -var ENUM = 'enum'; - -/** - * Rule for validating a value exists in an enumerable list. - * - * @param rule The validation rule. - * @param value The value of the field on the source object. - * @param source The source object being validated. - * @param errors An array of errors that this rule may add - * validation errors to. - * @param options The validation options. - * @param options.messages The validation messages. - */ -function enumerable(rule, value, source, errors, options) { - rule[ENUM] = Array.isArray(rule[ENUM]) ? rule[ENUM] : []; - if (rule[ENUM].indexOf(value) === -1) { - errors.push(util.format(options.messages[ENUM], rule.fullField, rule[ENUM].join(', '))); - } -} - -exports['default'] = enumerable; - -/***/ }), - -/***/ "./node_modules/async-validator/es/rule/index.js": -/*!*******************************************************!*\ - !*** ./node_modules/async-validator/es/rule/index.js ***! - \*******************************************************/ -/*! no static exports found */ -/***/ (function(module, exports, __webpack_require__) { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", { - value: true -}); - -var _required = __webpack_require__(/*! ./required */ "./node_modules/async-validator/es/rule/required.js"); - -var _required2 = _interopRequireDefault(_required); - -var _whitespace = __webpack_require__(/*! ./whitespace */ "./node_modules/async-validator/es/rule/whitespace.js"); - -var _whitespace2 = _interopRequireDefault(_whitespace); - -var _type = __webpack_require__(/*! ./type */ "./node_modules/async-validator/es/rule/type.js"); - -var _type2 = _interopRequireDefault(_type); - -var _range = __webpack_require__(/*! ./range */ "./node_modules/async-validator/es/rule/range.js"); - -var _range2 = _interopRequireDefault(_range); - -var _enum = __webpack_require__(/*! ./enum */ "./node_modules/async-validator/es/rule/enum.js"); - -var _enum2 = _interopRequireDefault(_enum); - -var _pattern = __webpack_require__(/*! ./pattern */ "./node_modules/async-validator/es/rule/pattern.js"); - -var _pattern2 = _interopRequireDefault(_pattern); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } - -exports['default'] = { - required: _required2['default'], - whitespace: _whitespace2['default'], - type: _type2['default'], - range: _range2['default'], - 'enum': _enum2['default'], - pattern: _pattern2['default'] -}; - -/***/ }), - -/***/ "./node_modules/async-validator/es/rule/pattern.js": -/*!*********************************************************!*\ - !*** ./node_modules/async-validator/es/rule/pattern.js ***! - \*********************************************************/ -/*! no static exports found */ -/***/ (function(module, exports, __webpack_require__) { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", { - value: true -}); - -var _util = __webpack_require__(/*! ../util */ "./node_modules/async-validator/es/util.js"); - -var util = _interopRequireWildcard(_util); - -function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) newObj[key] = obj[key]; } } newObj['default'] = obj; return newObj; } } - -/** - * Rule for validating a regular expression pattern. - * - * @param rule The validation rule. - * @param value The value of the field on the source object. - * @param source The source object being validated. - * @param errors An array of errors that this rule may add - * validation errors to. - * @param options The validation options. - * @param options.messages The validation messages. - */ -function pattern(rule, value, source, errors, options) { - if (rule.pattern) { - if (rule.pattern instanceof RegExp) { - // if a RegExp instance is passed, reset `lastIndex` in case its `global` - // flag is accidentally set to `true`, which in a validation scenario - // is not necessary and the result might be misleading - rule.pattern.lastIndex = 0; - if (!rule.pattern.test(value)) { - errors.push(util.format(options.messages.pattern.mismatch, rule.fullField, value, rule.pattern)); - } - } else if (typeof rule.pattern === 'string') { - var _pattern = new RegExp(rule.pattern); - if (!_pattern.test(value)) { - errors.push(util.format(options.messages.pattern.mismatch, rule.fullField, value, rule.pattern)); + if (typeof value === 'object' && typeof target[s] === 'object') { + target[s] = _extends({}, target[s], {}, value); + } else { + target[s] = value; + } } } } -} - -exports['default'] = pattern; - -/***/ }), - -/***/ "./node_modules/async-validator/es/rule/range.js": -/*!*******************************************************!*\ - !*** ./node_modules/async-validator/es/rule/range.js ***! - \*******************************************************/ -/*! no static exports found */ -/***/ (function(module, exports, __webpack_require__) { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", { - value: true -}); - -var _util = __webpack_require__(/*! ../util */ "./node_modules/async-validator/es/util.js"); - -var util = _interopRequireWildcard(_util); -function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) newObj[key] = obj[key]; } } newObj['default'] = obj; return newObj; } } + return target; +} /** - * Rule for validating minimum and maximum allowed values. + * Rule for validating required fields. * * @param rule The validation rule. * @param value The value of the field on the source object. @@ -24866,76 +25793,15 @@ function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; * @param options The validation options. * @param options.messages The validation messages. */ -function range(rule, value, source, errors, options) { - var len = typeof rule.len === 'number'; - var min = typeof rule.min === 'number'; - var max = typeof rule.max === 'number'; - // 正则匹配码点范围从U+010000一直到U+10FFFF的文字(补充平面Supplementary Plane) - var spRegexp = /[\uD800-\uDBFF][\uDC00-\uDFFF]/g; - var val = value; - var key = null; - var num = typeof value === 'number'; - var str = typeof value === 'string'; - var arr = Array.isArray(value); - if (num) { - key = 'number'; - } else if (str) { - key = 'string'; - } else if (arr) { - key = 'array'; - } - // if the value is not of a supported type for range validation - // the validation rule rule should use the - // type property to also test for a particular type - if (!key) { - return false; - } - if (arr) { - val = value.length; - } - if (str) { - // 处理码点大于U+010000的文字length属性不准确的bug,如"𠮷𠮷𠮷".lenght !== 3 - val = value.replace(spRegexp, '_').length; - } - if (len) { - if (val !== rule.len) { - errors.push(util.format(options.messages[key].len, rule.fullField, rule.len)); - } - } else if (min && !max && val < rule.min) { - errors.push(util.format(options.messages[key].min, rule.fullField, rule.min)); - } else if (max && !min && val > rule.max) { - errors.push(util.format(options.messages[key].max, rule.fullField, rule.max)); - } else if (min && max && (val < rule.min || val > rule.max)) { - errors.push(util.format(options.messages[key].range, rule.fullField, rule.min, rule.max)); + +function required(rule, value, source, errors, options, type) { + if (rule.required && (!source.hasOwnProperty(rule.field) || isEmptyValue(value, type || rule.type))) { + errors.push(format(options.messages.required, rule.fullField)); } } -exports['default'] = range; - -/***/ }), - -/***/ "./node_modules/async-validator/es/rule/required.js": -/*!**********************************************************!*\ - !*** ./node_modules/async-validator/es/rule/required.js ***! - \**********************************************************/ -/*! no static exports found */ -/***/ (function(module, exports, __webpack_require__) { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", { - value: true -}); - -var _util = __webpack_require__(/*! ../util */ "./node_modules/async-validator/es/util.js"); - -var util = _interopRequireWildcard(_util); - -function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) newObj[key] = obj[key]; } } newObj['default'] = obj; return newObj; } } - /** - * Rule for validating required fields. + * Rule for validating whitespace. * * @param rule The validation rule. * @param value The value of the field on the source object. @@ -24945,58 +25811,26 @@ function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; * @param options The validation options. * @param options.messages The validation messages. */ -function required(rule, value, source, errors, options, type) { - if (rule.required && (!source.hasOwnProperty(rule.field) || util.isEmptyValue(value, type || rule.type))) { - errors.push(util.format(options.messages.required, rule.fullField)); + +function whitespace(rule, value, source, errors, options) { + if (/^\s+$/.test(value) || value === '') { + errors.push(format(options.messages.whitespace, rule.fullField)); } } -exports['default'] = required; - -/***/ }), - -/***/ "./node_modules/async-validator/es/rule/type.js": -/*!******************************************************!*\ - !*** ./node_modules/async-validator/es/rule/type.js ***! - \******************************************************/ -/*! no static exports found */ -/***/ (function(module, exports, __webpack_require__) { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", { - value: true -}); - -var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; - -var _util = __webpack_require__(/*! ../util */ "./node_modules/async-validator/es/util.js"); - -var util = _interopRequireWildcard(_util); - -var _required = __webpack_require__(/*! ./required */ "./node_modules/async-validator/es/rule/required.js"); - -var _required2 = _interopRequireDefault(_required); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } - -function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) newObj[key] = obj[key]; } } newObj['default'] = obj; return newObj; } } - /* eslint max-len:0 */ var pattern = { // http://emailregex.com/ email: /^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/, - url: new RegExp('^(?!mailto:)(?:(?:http|https|ftp)://|//)(?:\\S+(?::\\S*)?@)?(?:(?:(?:[1-9]\\d?|1\\d\\d|2[01]\\d|22[0-3])(?:\\.(?:1?\\d{1,2}|2[0-4]\\d|25[0-5])){2}(?:\\.(?:[0-9]\\d?|1\\d\\d|2[0-4]\\d|25[0-4]))|(?:(?:[a-z\\u00a1-\\uffff0-9]+-?)*[a-z\\u00a1-\\uffff0-9]+)(?:\\.(?:[a-z\\u00a1-\\uffff0-9]+-?)*[a-z\\u00a1-\\uffff0-9]+)*(?:\\.(?:[a-z\\u00a1-\\uffff]{2,})))|localhost)(?::\\d{2,5})?(?:(/|\\?|#)[^\\s]*)?$', 'i'), + url: new RegExp("^(?!mailto:)(?:(?:http|https|ftp)://|//)(?:\\S+(?::\\S*)?@)?(?:(?:(?:[1-9]\\d?|1\\d\\d|2[01]\\d|22[0-3])(?:\\.(?:1?\\d{1,2}|2[0-4]\\d|25[0-5])){2}(?:\\.(?:[0-9]\\d?|1\\d\\d|2[0-4]\\d|25[0-4]))|(?:(?:[a-z\\u00a1-\\uffff0-9]+-*)*[a-z\\u00a1-\\uffff0-9]+)(?:\\.(?:[a-z\\u00a1-\\uffff0-9]+-*)*[a-z\\u00a1-\\uffff0-9]+)*(?:\\.(?:[a-z\\u00a1-\\uffff]{2,})))|localhost)(?::\\d{2,5})?(?:(/|\\?|#)[^\\s]*)?$", 'i'), hex: /^#?([a-f0-9]{6}|[a-f0-9]{3})$/i }; - var types = { integer: function integer(value) { return types.number(value) && parseInt(value, 10) === value; }, - float: function float(value) { + "float": function float(value) { return types.number(value) && !types.integer(value); }, array: function array(value) { @@ -25006,6 +25840,7 @@ var types = { if (value instanceof RegExp) { return true; } + try { return !!new RegExp(value); } catch (e) { @@ -25019,10 +25854,11 @@ var types = { if (isNaN(value)) { return false; } + return typeof value === 'number'; }, object: function object(value) { - return (typeof value === 'undefined' ? 'undefined' : _typeof(value)) === 'object' && !types.array(value); + return typeof value === 'object' && !types.array(value); }, method: function method(value) { return typeof value === 'function'; @@ -25037,7 +25873,6 @@ var types = { return typeof value === 'string' && !!value.match(pattern.hex); } }; - /** * Rule for validating the type of a value. * @@ -25049,49 +25884,28 @@ var types = { * @param options The validation options. * @param options.messages The validation messages. */ + function type(rule, value, source, errors, options) { if (rule.required && value === undefined) { - (0, _required2['default'])(rule, value, source, errors, options); + required(rule, value, source, errors, options); return; } + var custom = ['integer', 'float', 'array', 'regexp', 'object', 'method', 'email', 'number', 'date', 'url', 'hex']; var ruleType = rule.type; + if (custom.indexOf(ruleType) > -1) { if (!types[ruleType](value)) { - errors.push(util.format(options.messages.types[ruleType], rule.fullField, rule.type)); - } - // straight typeof check - } else if (ruleType && (typeof value === 'undefined' ? 'undefined' : _typeof(value)) !== rule.type) { - errors.push(util.format(options.messages.types[ruleType], rule.fullField, rule.type)); + errors.push(format(options.messages.types[ruleType], rule.fullField, rule.type)); + } // straight typeof check + + } else if (ruleType && typeof value !== rule.type) { + errors.push(format(options.messages.types[ruleType], rule.fullField, rule.type)); } } -exports['default'] = type; - -/***/ }), - -/***/ "./node_modules/async-validator/es/rule/whitespace.js": -/*!************************************************************!*\ - !*** ./node_modules/async-validator/es/rule/whitespace.js ***! - \************************************************************/ -/*! no static exports found */ -/***/ (function(module, exports, __webpack_require__) { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", { - value: true -}); - -var _util = __webpack_require__(/*! ../util */ "./node_modules/async-validator/es/util.js"); - -var util = _interopRequireWildcard(_util); - -function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) newObj[key] = obj[key]; } } newObj['default'] = obj; return newObj; } } - /** - * Rule for validating whitespace. + * Rule for validating minimum and maximum allowed values. * * @param rule The validation rule. * @param value The value of the field on the source object. @@ -25101,274 +25915,157 @@ function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; * @param options The validation options. * @param options.messages The validation messages. */ -function whitespace(rule, value, source, errors, options) { - if (/^\s+$/.test(value) || value === '') { - errors.push(util.format(options.messages.whitespace, rule.fullField)); - } -} - -exports['default'] = whitespace; -/***/ }), - -/***/ "./node_modules/async-validator/es/util.js": -/*!*************************************************!*\ - !*** ./node_modules/async-validator/es/util.js ***! - \*************************************************/ -/*! no static exports found */ -/***/ (function(module, exports, __webpack_require__) { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", { - value: true -}); - -var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; - -var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; - -exports.convertFieldsError = convertFieldsError; -exports.format = format; -exports.isEmptyValue = isEmptyValue; -exports.isEmptyObject = isEmptyObject; -exports.asyncMap = asyncMap; -exports.complementError = complementError; -exports.deepMerge = deepMerge; -/* eslint no-console:0 */ - -var formatRegExp = /%[sdj%]/g; +function range(rule, value, source, errors, options) { + var len = typeof rule.len === 'number'; + var min = typeof rule.min === 'number'; + var max = typeof rule.max === 'number'; // 正则匹配码点范围从U+010000一直到U+10FFFF的文字(补充平面Supplementary Plane) -var warning = exports.warning = function warning() {}; + var spRegexp = /[\uD800-\uDBFF][\uDC00-\uDFFF]/g; + var val = value; + var key = null; + var num = typeof value === 'number'; + var str = typeof value === 'string'; + var arr = Array.isArray(value); -// don't print warning message when in production env or node runtime -if ( true && typeof window !== 'undefined' && typeof document !== 'undefined') { - exports.warning = warning = function warning(type, errors) { - if (typeof console !== 'undefined' && console.warn) { - if (errors.every(function (e) { - return typeof e === 'string'; - })) { - console.warn(type, errors); - } - } - }; -} + if (num) { + key = 'number'; + } else if (str) { + key = 'string'; + } else if (arr) { + key = 'array'; + } // if the value is not of a supported type for range validation + // the validation rule rule should use the + // type property to also test for a particular type -function convertFieldsError(errors) { - if (!errors || !errors.length) return null; - var fields = {}; - errors.forEach(function (error) { - var field = error.field; - fields[field] = fields[field] || []; - fields[field].push(error); - }); - return fields; -} -function format() { - for (var _len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++) { - args[_key] = arguments[_key]; + if (!key) { + return false; } - var i = 1; - var f = args[0]; - var len = args.length; - if (typeof f === 'function') { - return f.apply(null, args.slice(1)); - } - if (typeof f === 'string') { - var str = String(f).replace(formatRegExp, function (x) { - if (x === '%%') { - return '%'; - } - if (i >= len) { - return x; - } - switch (x) { - case '%s': - return String(args[i++]); - case '%d': - return Number(args[i++]); - case '%j': - try { - return JSON.stringify(args[i++]); - } catch (_) { - return '[Circular]'; - } - break; - default: - return x; - } - }); - for (var arg = args[i]; i < len; arg = args[++i]) { - str += ' ' + arg; - } - return str; + if (arr) { + val = value.length; } - return f; -} -function isNativeStringType(type) { - return type === 'string' || type === 'url' || type === 'hex' || type === 'email' || type === 'pattern'; -} - -function isEmptyValue(value, type) { - if (value === undefined || value === null) { - return true; - } - if (type === 'array' && Array.isArray(value) && !value.length) { - return true; - } - if (isNativeStringType(type) && typeof value === 'string' && !value) { - return true; + if (str) { + // 处理码点大于U+010000的文字length属性不准确的bug,如"𠮷𠮷𠮷".lenght !== 3 + val = value.replace(spRegexp, '_').length; } - return false; -} - -function isEmptyObject(obj) { - return Object.keys(obj).length === 0; -} - -function asyncParallelArray(arr, func, callback) { - var results = []; - var total = 0; - var arrLength = arr.length; - function count(errors) { - results.push.apply(results, errors); - total++; - if (total === arrLength) { - callback(results); + if (len) { + if (val !== rule.len) { + errors.push(format(options.messages[key].len, rule.fullField, rule.len)); } + } else if (min && !max && val < rule.min) { + errors.push(format(options.messages[key].min, rule.fullField, rule.min)); + } else if (max && !min && val > rule.max) { + errors.push(format(options.messages[key].max, rule.fullField, rule.max)); + } else if (min && max && (val < rule.min || val > rule.max)) { + errors.push(format(options.messages[key].range, rule.fullField, rule.min, rule.max)); } - - arr.forEach(function (a) { - func(a, count); - }); } -function asyncSerialArray(arr, func, callback) { - var index = 0; - var arrLength = arr.length; - - function next(errors) { - if (errors && errors.length) { - callback(errors); - return; - } - var original = index; - index = index + 1; - if (original < arrLength) { - func(arr[original], next); - } else { - callback([]); - } - } - - next([]); -} +var ENUM = 'enum'; +/** + * Rule for validating a value exists in an enumerable list. + * + * @param rule The validation rule. + * @param value The value of the field on the source object. + * @param source The source object being validated. + * @param errors An array of errors that this rule may add + * validation errors to. + * @param options The validation options. + * @param options.messages The validation messages. + */ -function flattenObjArr(objArr) { - var ret = []; - Object.keys(objArr).forEach(function (k) { - ret.push.apply(ret, objArr[k]); - }); - return ret; -} +function enumerable(rule, value, source, errors, options) { + rule[ENUM] = Array.isArray(rule[ENUM]) ? rule[ENUM] : []; -function asyncMap(objArr, option, func, callback) { - if (option.first) { - var flattenArr = flattenObjArr(objArr); - return asyncSerialArray(flattenArr, func, callback); - } - var firstFields = option.firstFields || []; - if (firstFields === true) { - firstFields = Object.keys(objArr); + if (rule[ENUM].indexOf(value) === -1) { + errors.push(format(options.messages[ENUM], rule.fullField, rule[ENUM].join(', '))); } - var objArrKeys = Object.keys(objArr); - var objArrLength = objArrKeys.length; - var total = 0; - var results = []; - var pending = new Promise(function (resolve, reject) { - var next = function next(errors) { - results.push.apply(results, errors); - total++; - if (total === objArrLength) { - callback(results); - return results.length ? reject({ errors: results, fields: convertFieldsError(results) }) : resolve(); - } - }; - objArrKeys.forEach(function (key) { - var arr = objArr[key]; - if (firstFields.indexOf(key) !== -1) { - asyncSerialArray(arr, func, next); - } else { - asyncParallelArray(arr, func, next); - } - }); - }); - pending['catch'](function (e) { - return e; - }); - return pending; } -function complementError(rule) { - return function (oe) { - if (oe && oe.message) { - oe.field = oe.field || rule.fullField; - return oe; - } - return { - message: typeof oe === 'function' ? oe() : oe, - field: oe.field || rule.fullField - }; - }; -} +/** + * Rule for validating a regular expression pattern. + * + * @param rule The validation rule. + * @param value The value of the field on the source object. + * @param source The source object being validated. + * @param errors An array of errors that this rule may add + * validation errors to. + * @param options The validation options. + * @param options.messages The validation messages. + */ + +function pattern$1(rule, value, source, errors, options) { + if (rule.pattern) { + if (rule.pattern instanceof RegExp) { + // if a RegExp instance is passed, reset `lastIndex` in case its `global` + // flag is accidentally set to `true`, which in a validation scenario + // is not necessary and the result might be misleading + rule.pattern.lastIndex = 0; -function deepMerge(target, source) { - if (source) { - for (var s in source) { - if (source.hasOwnProperty(s)) { - var value = source[s]; - if ((typeof value === 'undefined' ? 'undefined' : _typeof(value)) === 'object' && _typeof(target[s]) === 'object') { - target[s] = _extends({}, target[s], value); - } else { - target[s] = value; - } + if (!rule.pattern.test(value)) { + errors.push(format(options.messages.pattern.mismatch, rule.fullField, value, rule.pattern)); + } + } else if (typeof rule.pattern === 'string') { + var _pattern = new RegExp(rule.pattern); + + if (!_pattern.test(value)) { + errors.push(format(options.messages.pattern.mismatch, rule.fullField, value, rule.pattern)); } } } - return target; } -/***/ }), - -/***/ "./node_modules/async-validator/es/validator/array.js": -/*!************************************************************!*\ - !*** ./node_modules/async-validator/es/validator/array.js ***! - \************************************************************/ -/*! no static exports found */ -/***/ (function(module, exports, __webpack_require__) { +var rules = { + required: required, + whitespace: whitespace, + type: type, + range: range, + "enum": enumerable, + pattern: pattern$1 +}; -"use strict"; +/** + * Performs validation for string types. + * + * @param rule The validation rule. + * @param value The value of the field on the source object. + * @param callback The callback function. + * @param source The source object being validated. + * @param options The validation options. + * @param options.messages The validation messages. + */ +function string(rule, value, callback, source, options) { + var errors = []; + var validate = rule.required || !rule.required && source.hasOwnProperty(rule.field); -Object.defineProperty(exports, "__esModule", { - value: true -}); + if (validate) { + if (isEmptyValue(value, 'string') && !rule.required) { + return callback(); + } -var _rule = __webpack_require__(/*! ../rule/ */ "./node_modules/async-validator/es/rule/index.js"); + rules.required(rule, value, source, errors, options, 'string'); -var _rule2 = _interopRequireDefault(_rule); + if (!isEmptyValue(value, 'string')) { + rules.type(rule, value, source, errors, options); + rules.range(rule, value, source, errors, options); + rules.pattern(rule, value, source, errors, options); -var _util = __webpack_require__(/*! ../util */ "./node_modules/async-validator/es/util.js"); + if (rule.whitespace === true) { + rules.whitespace(rule, value, source, errors, options); + } + } + } -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } + callback(errors); +} /** - * Validates an array. + * Validates a function. * * @param rule The validation rule. * @param value The value of the field on the source object. @@ -25377,47 +26074,60 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'd * @param options The validation options. * @param options.messages The validation messages. */ -function array(rule, value, callback, source, options) { + +function method(rule, value, callback, source, options) { var errors = []; var validate = rule.required || !rule.required && source.hasOwnProperty(rule.field); + if (validate) { - if ((0, _util.isEmptyValue)(value, 'array') && !rule.required) { + if (isEmptyValue(value) && !rule.required) { return callback(); } - _rule2['default'].required(rule, value, source, errors, options, 'array'); - if (!(0, _util.isEmptyValue)(value, 'array')) { - _rule2['default'].type(rule, value, source, errors, options); - _rule2['default'].range(rule, value, source, errors, options); + + rules.required(rule, value, source, errors, options); + + if (value !== undefined) { + rules.type(rule, value, source, errors, options); } } + callback(errors); } -exports['default'] = array; - -/***/ }), - -/***/ "./node_modules/async-validator/es/validator/boolean.js": -/*!**************************************************************!*\ - !*** ./node_modules/async-validator/es/validator/boolean.js ***! - \**************************************************************/ -/*! no static exports found */ -/***/ (function(module, exports, __webpack_require__) { - -"use strict"; +/** + * Validates a number. + * + * @param rule The validation rule. + * @param value The value of the field on the source object. + * @param callback The callback function. + * @param source The source object being validated. + * @param options The validation options. + * @param options.messages The validation messages. + */ +function number(rule, value, callback, source, options) { + var errors = []; + var validate = rule.required || !rule.required && source.hasOwnProperty(rule.field); -Object.defineProperty(exports, "__esModule", { - value: true -}); + if (validate) { + if (value === '') { + value = undefined; + } -var _util = __webpack_require__(/*! ../util */ "./node_modules/async-validator/es/util.js"); + if (isEmptyValue(value) && !rule.required) { + return callback(); + } -var _rule = __webpack_require__(/*! ../rule/ */ "./node_modules/async-validator/es/rule/index.js"); + rules.required(rule, value, source, errors, options); -var _rule2 = _interopRequireDefault(_rule); + if (value !== undefined) { + rules.type(rule, value, source, errors, options); + rules.range(rule, value, source, errors, options); + } + } -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } + callback(errors); +} /** * Validates a boolean. @@ -25429,105 +26139,58 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'd * @param options The validation options. * @param options.messages The validation messages. */ -function boolean(rule, value, callback, source, options) { + +function _boolean(rule, value, callback, source, options) { var errors = []; var validate = rule.required || !rule.required && source.hasOwnProperty(rule.field); + if (validate) { - if ((0, _util.isEmptyValue)(value) && !rule.required) { + if (isEmptyValue(value) && !rule.required) { return callback(); } - _rule2['default'].required(rule, value, source, errors, options); + + rules.required(rule, value, source, errors, options); + if (value !== undefined) { - _rule2['default'].type(rule, value, source, errors, options); + rules.type(rule, value, source, errors, options); } } + callback(errors); } -exports['default'] = boolean; - -/***/ }), - -/***/ "./node_modules/async-validator/es/validator/date.js": -/*!***********************************************************!*\ - !*** ./node_modules/async-validator/es/validator/date.js ***! - \***********************************************************/ -/*! no static exports found */ -/***/ (function(module, exports, __webpack_require__) { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", { - value: true -}); - -var _rule = __webpack_require__(/*! ../rule/ */ "./node_modules/async-validator/es/rule/index.js"); - -var _rule2 = _interopRequireDefault(_rule); - -var _util = __webpack_require__(/*! ../util */ "./node_modules/async-validator/es/util.js"); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } +/** + * Validates the regular expression type. + * + * @param rule The validation rule. + * @param value The value of the field on the source object. + * @param callback The callback function. + * @param source The source object being validated. + * @param options The validation options. + * @param options.messages The validation messages. + */ -function date(rule, value, callback, source, options) { - // console.log('integer rule called %j', rule); +function regexp(rule, value, callback, source, options) { var errors = []; var validate = rule.required || !rule.required && source.hasOwnProperty(rule.field); - // console.log('validate on %s value', value); + if (validate) { - if ((0, _util.isEmptyValue)(value) && !rule.required) { + if (isEmptyValue(value) && !rule.required) { return callback(); } - _rule2['default'].required(rule, value, source, errors, options); - if (!(0, _util.isEmptyValue)(value)) { - var dateObject = void 0; - if (typeof value === 'number') { - dateObject = new Date(value); - } else { - dateObject = value; - } + rules.required(rule, value, source, errors, options); - _rule2['default'].type(rule, dateObject, source, errors, options); - if (dateObject) { - _rule2['default'].range(rule, dateObject.getTime(), source, errors, options); - } + if (!isEmptyValue(value)) { + rules.type(rule, value, source, errors, options); } } + callback(errors); } -exports['default'] = date; - -/***/ }), - -/***/ "./node_modules/async-validator/es/validator/enum.js": -/*!***********************************************************!*\ - !*** ./node_modules/async-validator/es/validator/enum.js ***! - \***********************************************************/ -/*! no static exports found */ -/***/ (function(module, exports, __webpack_require__) { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", { - value: true -}); - -var _rule = __webpack_require__(/*! ../rule/ */ "./node_modules/async-validator/es/rule/index.js"); - -var _rule2 = _interopRequireDefault(_rule); - -var _util = __webpack_require__(/*! ../util */ "./node_modules/async-validator/es/util.js"); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } - -var ENUM = 'enum'; - /** - * Validates an enumerable list. + * Validates a number is an integer. * * @param rule The validation rule. * @param value The value of the field on the source object. @@ -25536,47 +26199,27 @@ var ENUM = 'enum'; * @param options The validation options. * @param options.messages The validation messages. */ -function enumerable(rule, value, callback, source, options) { + +function integer(rule, value, callback, source, options) { var errors = []; var validate = rule.required || !rule.required && source.hasOwnProperty(rule.field); + if (validate) { - if ((0, _util.isEmptyValue)(value) && !rule.required) { + if (isEmptyValue(value) && !rule.required) { return callback(); } - _rule2['default'].required(rule, value, source, errors, options); - if (value) { - _rule2['default'][ENUM](rule, value, source, errors, options); + + rules.required(rule, value, source, errors, options); + + if (value !== undefined) { + rules.type(rule, value, source, errors, options); + rules.range(rule, value, source, errors, options); } } + callback(errors); } -exports['default'] = enumerable; - -/***/ }), - -/***/ "./node_modules/async-validator/es/validator/float.js": -/*!************************************************************!*\ - !*** ./node_modules/async-validator/es/validator/float.js ***! - \************************************************************/ -/*! no static exports found */ -/***/ (function(module, exports, __webpack_require__) { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", { - value: true -}); - -var _rule = __webpack_require__(/*! ../rule/ */ "./node_modules/async-validator/es/rule/index.js"); - -var _rule2 = _interopRequireDefault(_rule); - -var _util = __webpack_require__(/*! ../util */ "./node_modules/async-validator/es/util.js"); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } - /** * Validates a number is a floating point number. * @@ -25587,143 +26230,60 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'd * @param options The validation options. * @param options.messages The validation messages. */ + function floatFn(rule, value, callback, source, options) { var errors = []; var validate = rule.required || !rule.required && source.hasOwnProperty(rule.field); + if (validate) { - if ((0, _util.isEmptyValue)(value) && !rule.required) { + if (isEmptyValue(value) && !rule.required) { return callback(); } - _rule2['default'].required(rule, value, source, errors, options); + + rules.required(rule, value, source, errors, options); + if (value !== undefined) { - _rule2['default'].type(rule, value, source, errors, options); - _rule2['default'].range(rule, value, source, errors, options); + rules.type(rule, value, source, errors, options); + rules.range(rule, value, source, errors, options); } } + callback(errors); } -exports['default'] = floatFn; - -/***/ }), - -/***/ "./node_modules/async-validator/es/validator/index.js": -/*!************************************************************!*\ - !*** ./node_modules/async-validator/es/validator/index.js ***! - \************************************************************/ -/*! no static exports found */ -/***/ (function(module, exports, __webpack_require__) { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", { - value: true -}); - -var _string = __webpack_require__(/*! ./string */ "./node_modules/async-validator/es/validator/string.js"); - -var _string2 = _interopRequireDefault(_string); - -var _method = __webpack_require__(/*! ./method */ "./node_modules/async-validator/es/validator/method.js"); - -var _method2 = _interopRequireDefault(_method); - -var _number = __webpack_require__(/*! ./number */ "./node_modules/async-validator/es/validator/number.js"); - -var _number2 = _interopRequireDefault(_number); - -var _boolean = __webpack_require__(/*! ./boolean */ "./node_modules/async-validator/es/validator/boolean.js"); - -var _boolean2 = _interopRequireDefault(_boolean); - -var _regexp = __webpack_require__(/*! ./regexp */ "./node_modules/async-validator/es/validator/regexp.js"); - -var _regexp2 = _interopRequireDefault(_regexp); - -var _integer = __webpack_require__(/*! ./integer */ "./node_modules/async-validator/es/validator/integer.js"); - -var _integer2 = _interopRequireDefault(_integer); - -var _float = __webpack_require__(/*! ./float */ "./node_modules/async-validator/es/validator/float.js"); - -var _float2 = _interopRequireDefault(_float); - -var _array = __webpack_require__(/*! ./array */ "./node_modules/async-validator/es/validator/array.js"); - -var _array2 = _interopRequireDefault(_array); - -var _object = __webpack_require__(/*! ./object */ "./node_modules/async-validator/es/validator/object.js"); - -var _object2 = _interopRequireDefault(_object); - -var _enum = __webpack_require__(/*! ./enum */ "./node_modules/async-validator/es/validator/enum.js"); - -var _enum2 = _interopRequireDefault(_enum); - -var _pattern = __webpack_require__(/*! ./pattern */ "./node_modules/async-validator/es/validator/pattern.js"); - -var _pattern2 = _interopRequireDefault(_pattern); - -var _date = __webpack_require__(/*! ./date */ "./node_modules/async-validator/es/validator/date.js"); - -var _date2 = _interopRequireDefault(_date); - -var _required = __webpack_require__(/*! ./required */ "./node_modules/async-validator/es/validator/required.js"); - -var _required2 = _interopRequireDefault(_required); - -var _type = __webpack_require__(/*! ./type */ "./node_modules/async-validator/es/validator/type.js"); - -var _type2 = _interopRequireDefault(_type); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } - -exports['default'] = { - string: _string2['default'], - method: _method2['default'], - number: _number2['default'], - boolean: _boolean2['default'], - regexp: _regexp2['default'], - integer: _integer2['default'], - float: _float2['default'], - array: _array2['default'], - object: _object2['default'], - 'enum': _enum2['default'], - pattern: _pattern2['default'], - date: _date2['default'], - url: _type2['default'], - hex: _type2['default'], - email: _type2['default'], - required: _required2['default'] -}; - -/***/ }), - -/***/ "./node_modules/async-validator/es/validator/integer.js": -/*!**************************************************************!*\ - !*** ./node_modules/async-validator/es/validator/integer.js ***! - \**************************************************************/ -/*! no static exports found */ -/***/ (function(module, exports, __webpack_require__) { - -"use strict"; - +/** + * Validates an array. + * + * @param rule The validation rule. + * @param value The value of the field on the source object. + * @param callback The callback function. + * @param source The source object being validated. + * @param options The validation options. + * @param options.messages The validation messages. + */ -Object.defineProperty(exports, "__esModule", { - value: true -}); +function array(rule, value, callback, source, options) { + var errors = []; + var validate = rule.required || !rule.required && source.hasOwnProperty(rule.field); -var _rule = __webpack_require__(/*! ../rule/ */ "./node_modules/async-validator/es/rule/index.js"); + if (validate) { + if (isEmptyValue(value, 'array') && !rule.required) { + return callback(); + } -var _rule2 = _interopRequireDefault(_rule); + rules.required(rule, value, source, errors, options, 'array'); -var _util = __webpack_require__(/*! ../util */ "./node_modules/async-validator/es/util.js"); + if (!isEmptyValue(value, 'array')) { + rules.type(rule, value, source, errors, options); + rules.range(rule, value, source, errors, options); + } + } -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } + callback(errors); +} /** - * Validates a number is an integer. + * Validates an object. * * @param rule The validation rule. * @param value The value of the field on the source object. @@ -25732,50 +26292,29 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'd * @param options The validation options. * @param options.messages The validation messages. */ -function integer(rule, value, callback, source, options) { + +function object(rule, value, callback, source, options) { var errors = []; var validate = rule.required || !rule.required && source.hasOwnProperty(rule.field); + if (validate) { - if ((0, _util.isEmptyValue)(value) && !rule.required) { + if (isEmptyValue(value) && !rule.required) { return callback(); } - _rule2['default'].required(rule, value, source, errors, options); + + rules.required(rule, value, source, errors, options); + if (value !== undefined) { - _rule2['default'].type(rule, value, source, errors, options); - _rule2['default'].range(rule, value, source, errors, options); + rules.type(rule, value, source, errors, options); } } + callback(errors); } -exports['default'] = integer; - -/***/ }), - -/***/ "./node_modules/async-validator/es/validator/method.js": -/*!*************************************************************!*\ - !*** ./node_modules/async-validator/es/validator/method.js ***! - \*************************************************************/ -/*! no static exports found */ -/***/ (function(module, exports, __webpack_require__) { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", { - value: true -}); - -var _rule = __webpack_require__(/*! ../rule/ */ "./node_modules/async-validator/es/rule/index.js"); - -var _rule2 = _interopRequireDefault(_rule); - -var _util = __webpack_require__(/*! ../util */ "./node_modules/async-validator/es/util.js"); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } - +var ENUM$1 = 'enum'; /** - * Validates a function. + * Validates an enumerable list. * * @param rule The validation rule. * @param value The value of the field on the source object. @@ -25784,49 +26323,31 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'd * @param options The validation options. * @param options.messages The validation messages. */ -function method(rule, value, callback, source, options) { + +function enumerable$1(rule, value, callback, source, options) { var errors = []; var validate = rule.required || !rule.required && source.hasOwnProperty(rule.field); + if (validate) { - if ((0, _util.isEmptyValue)(value) && !rule.required) { + if (isEmptyValue(value) && !rule.required) { return callback(); } - _rule2['default'].required(rule, value, source, errors, options); + + rules.required(rule, value, source, errors, options); + if (value !== undefined) { - _rule2['default'].type(rule, value, source, errors, options); + rules[ENUM$1](rule, value, source, errors, options); } } + callback(errors); } -exports['default'] = method; - -/***/ }), - -/***/ "./node_modules/async-validator/es/validator/number.js": -/*!*************************************************************!*\ - !*** ./node_modules/async-validator/es/validator/number.js ***! - \*************************************************************/ -/*! no static exports found */ -/***/ (function(module, exports, __webpack_require__) { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", { - value: true -}); - -var _rule = __webpack_require__(/*! ../rule/ */ "./node_modules/async-validator/es/rule/index.js"); - -var _rule2 = _interopRequireDefault(_rule); - -var _util = __webpack_require__(/*! ../util */ "./node_modules/async-validator/es/util.js"); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } - /** - * Validates a number. + * Validates a regular expression pattern. + * + * Performs validation when a rule only contains + * a pattern property but is not declared as a string type. * * @param rule The validation rule. * @param value The value of the field on the source object. @@ -25835,53 +26356,87 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'd * @param options The validation options. * @param options.messages The validation messages. */ -function number(rule, value, callback, source, options) { + +function pattern$2(rule, value, callback, source, options) { var errors = []; var validate = rule.required || !rule.required && source.hasOwnProperty(rule.field); + if (validate) { - if (value === '') { - value = undefined; - } - if ((0, _util.isEmptyValue)(value) && !rule.required) { + if (isEmptyValue(value, 'string') && !rule.required) { return callback(); } - _rule2['default'].required(rule, value, source, errors, options); - if (value !== undefined) { - _rule2['default'].type(rule, value, source, errors, options); - _rule2['default'].range(rule, value, source, errors, options); + + rules.required(rule, value, source, errors, options); + + if (!isEmptyValue(value, 'string')) { + rules.pattern(rule, value, source, errors, options); } } + callback(errors); } -exports['default'] = number; +function date(rule, value, callback, source, options) { + // console.log('integer rule called %j', rule); + var errors = []; + var validate = rule.required || !rule.required && source.hasOwnProperty(rule.field); // console.log('validate on %s value', value); -/***/ }), + if (validate) { + if (isEmptyValue(value) && !rule.required) { + return callback(); + } -/***/ "./node_modules/async-validator/es/validator/object.js": -/*!*************************************************************!*\ - !*** ./node_modules/async-validator/es/validator/object.js ***! - \*************************************************************/ -/*! no static exports found */ -/***/ (function(module, exports, __webpack_require__) { + rules.required(rule, value, source, errors, options); -"use strict"; + if (!isEmptyValue(value)) { + var dateObject; + if (typeof value === 'number') { + dateObject = new Date(value); + } else { + dateObject = value; + } -Object.defineProperty(exports, "__esModule", { - value: true -}); + rules.type(rule, dateObject, source, errors, options); + + if (dateObject) { + rules.range(rule, dateObject.getTime(), source, errors, options); + } + } + } + + callback(errors); +} -var _rule = __webpack_require__(/*! ../rule/ */ "./node_modules/async-validator/es/rule/index.js"); +function required$1(rule, value, callback, source, options) { + var errors = []; + var type = Array.isArray(value) ? 'array' : typeof value; + rules.required(rule, value, source, errors, options, type); + callback(errors); +} + +function type$1(rule, value, callback, source, options) { + var ruleType = rule.type; + var errors = []; + var validate = rule.required || !rule.required && source.hasOwnProperty(rule.field); + + if (validate) { + if (isEmptyValue(value, ruleType) && !rule.required) { + return callback(); + } -var _rule2 = _interopRequireDefault(_rule); + rules.required(rule, value, source, errors, options, ruleType); -var _util = __webpack_require__(/*! ../util */ "./node_modules/async-validator/es/util.js"); + if (!isEmptyValue(value, ruleType)) { + rules.type(rule, value, source, errors, options); + } + } -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } + callback(errors); +} /** - * Validates an object. + * Performs validation for any type. * * @param rule The validation rule. * @param value The value of the field on the source object. @@ -25890,258 +26445,428 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'd * @param options The validation options. * @param options.messages The validation messages. */ -function object(rule, value, callback, source, options) { + +function any(rule, value, callback, source, options) { var errors = []; var validate = rule.required || !rule.required && source.hasOwnProperty(rule.field); + if (validate) { - if ((0, _util.isEmptyValue)(value) && !rule.required) { + if (isEmptyValue(value) && !rule.required) { return callback(); } - _rule2['default'].required(rule, value, source, errors, options); - if (value !== undefined) { - _rule2['default'].type(rule, value, source, errors, options); - } + + rules.required(rule, value, source, errors, options); } + callback(errors); } -exports['default'] = object; +var validators = { + string: string, + method: method, + number: number, + "boolean": _boolean, + regexp: regexp, + integer: integer, + "float": floatFn, + array: array, + object: object, + "enum": enumerable$1, + pattern: pattern$2, + date: date, + url: type$1, + hex: type$1, + email: type$1, + required: required$1, + any: any +}; + +function newMessages() { + return { + "default": 'Validation error on field %s', + required: '%s is required', + "enum": '%s must be one of %s', + whitespace: '%s cannot be empty', + date: { + format: '%s date %s is invalid for format %s', + parse: '%s date could not be parsed, %s is invalid ', + invalid: '%s date %s is invalid' + }, + types: { + string: '%s is not a %s', + method: '%s is not a %s (function)', + array: '%s is not an %s', + object: '%s is not an %s', + number: '%s is not a %s', + date: '%s is not a %s', + "boolean": '%s is not a %s', + integer: '%s is not an %s', + "float": '%s is not a %s', + regexp: '%s is not a valid %s', + email: '%s is not a valid %s', + url: '%s is not a valid %s', + hex: '%s is not a valid %s' + }, + string: { + len: '%s must be exactly %s characters', + min: '%s must be at least %s characters', + max: '%s cannot be longer than %s characters', + range: '%s must be between %s and %s characters' + }, + number: { + len: '%s must equal %s', + min: '%s cannot be less than %s', + max: '%s cannot be greater than %s', + range: '%s must be between %s and %s' + }, + array: { + len: '%s must be exactly %s in length', + min: '%s cannot be less than %s in length', + max: '%s cannot be greater than %s in length', + range: '%s must be between %s and %s in length' + }, + pattern: { + mismatch: '%s value %s does not match pattern %s' + }, + clone: function clone() { + var cloned = JSON.parse(JSON.stringify(this)); + cloned.clone = this.clone; + return cloned; + } + }; +} +var messages = newMessages(); + +/** + * Encapsulates a validation schema. + * + * @param descriptor An object declaring validation rules + * for this schema. + */ + +function Schema(descriptor) { + this.rules = null; + this._messages = messages; + this.define(descriptor); +} + +Schema.prototype = { + messages: function messages(_messages) { + if (_messages) { + this._messages = deepMerge(newMessages(), _messages); + } + + return this._messages; + }, + define: function define(rules) { + if (!rules) { + throw new Error('Cannot configure a schema with no rules'); + } + + if (typeof rules !== 'object' || Array.isArray(rules)) { + throw new Error('Rules must be an object'); + } + + this.rules = {}; + var z; + var item; + + for (z in rules) { + if (rules.hasOwnProperty(z)) { + item = rules[z]; + this.rules[z] = Array.isArray(item) ? item : [item]; + } + } + }, + validate: function validate(source_, o, oc) { + var _this = this; + + if (o === void 0) { + o = {}; + } + + if (oc === void 0) { + oc = function oc() {}; + } + + var source = source_; + var options = o; + var callback = oc; + + if (typeof options === 'function') { + callback = options; + options = {}; + } + + if (!this.rules || Object.keys(this.rules).length === 0) { + if (callback) { + callback(); + } -/***/ }), + return Promise.resolve(); + } -/***/ "./node_modules/async-validator/es/validator/pattern.js": -/*!**************************************************************!*\ - !*** ./node_modules/async-validator/es/validator/pattern.js ***! - \**************************************************************/ -/*! no static exports found */ -/***/ (function(module, exports, __webpack_require__) { + function complete(results) { + var i; + var errors = []; + var fields = {}; -"use strict"; + function add(e) { + if (Array.isArray(e)) { + var _errors; + errors = (_errors = errors).concat.apply(_errors, e); + } else { + errors.push(e); + } + } -Object.defineProperty(exports, "__esModule", { - value: true -}); + for (i = 0; i < results.length; i++) { + add(results[i]); + } -var _rule = __webpack_require__(/*! ../rule/ */ "./node_modules/async-validator/es/rule/index.js"); + if (!errors.length) { + errors = null; + fields = null; + } else { + fields = convertFieldsError(errors); + } -var _rule2 = _interopRequireDefault(_rule); + callback(errors, fields); + } -var _util = __webpack_require__(/*! ../util */ "./node_modules/async-validator/es/util.js"); + if (options.messages) { + var messages$1 = this.messages(); -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } + if (messages$1 === messages) { + messages$1 = newMessages(); + } -/** - * Validates a regular expression pattern. - * - * Performs validation when a rule only contains - * a pattern property but is not declared as a string type. - * - * @param rule The validation rule. - * @param value The value of the field on the source object. - * @param callback The callback function. - * @param source The source object being validated. - * @param options The validation options. - * @param options.messages The validation messages. - */ -function pattern(rule, value, callback, source, options) { - var errors = []; - var validate = rule.required || !rule.required && source.hasOwnProperty(rule.field); - if (validate) { - if ((0, _util.isEmptyValue)(value, 'string') && !rule.required) { - return callback(); - } - _rule2['default'].required(rule, value, source, errors, options); - if (!(0, _util.isEmptyValue)(value, 'string')) { - _rule2['default'].pattern(rule, value, source, errors, options); + deepMerge(messages$1, options.messages); + options.messages = messages$1; + } else { + options.messages = this.messages(); } - } - callback(errors); -} - -exports['default'] = pattern; -/***/ }), - -/***/ "./node_modules/async-validator/es/validator/regexp.js": -/*!*************************************************************!*\ - !*** ./node_modules/async-validator/es/validator/regexp.js ***! - \*************************************************************/ -/*! no static exports found */ -/***/ (function(module, exports, __webpack_require__) { + var arr; + var value; + var series = {}; + var keys = options.keys || Object.keys(this.rules); + keys.forEach(function (z) { + arr = _this.rules[z]; + value = source[z]; + arr.forEach(function (r) { + var rule = r; -"use strict"; + if (typeof rule.transform === 'function') { + if (source === source_) { + source = _extends({}, source); + } + value = source[z] = rule.transform(value); + } -Object.defineProperty(exports, "__esModule", { - value: true -}); + if (typeof rule === 'function') { + rule = { + validator: rule + }; + } else { + rule = _extends({}, rule); + } -var _rule = __webpack_require__(/*! ../rule/ */ "./node_modules/async-validator/es/rule/index.js"); + rule.validator = _this.getValidationMethod(rule); + rule.field = z; + rule.fullField = rule.fullField || z; + rule.type = _this.getType(rule); -var _rule2 = _interopRequireDefault(_rule); + if (!rule.validator) { + return; + } -var _util = __webpack_require__(/*! ../util */ "./node_modules/async-validator/es/util.js"); + series[z] = series[z] || []; + series[z].push({ + rule: rule, + value: value, + source: source, + field: z + }); + }); + }); + var errorFields = {}; + return asyncMap(series, options, function (data, doIt) { + var rule = data.rule; + var deep = (rule.type === 'object' || rule.type === 'array') && (typeof rule.fields === 'object' || typeof rule.defaultField === 'object'); + deep = deep && (rule.required || !rule.required && data.value); + rule.field = data.field; -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } + function addFullfield(key, schema) { + return _extends({}, schema, { + fullField: rule.fullField + "." + key + }); + } -/** - * Validates the regular expression type. - * - * @param rule The validation rule. - * @param value The value of the field on the source object. - * @param callback The callback function. - * @param source The source object being validated. - * @param options The validation options. - * @param options.messages The validation messages. - */ -function regexp(rule, value, callback, source, options) { - var errors = []; - var validate = rule.required || !rule.required && source.hasOwnProperty(rule.field); - if (validate) { - if ((0, _util.isEmptyValue)(value) && !rule.required) { - return callback(); - } - _rule2['default'].required(rule, value, source, errors, options); - if (!(0, _util.isEmptyValue)(value)) { - _rule2['default'].type(rule, value, source, errors, options); - } - } - callback(errors); -} + function cb(e) { + if (e === void 0) { + e = []; + } -exports['default'] = regexp; + var errors = e; -/***/ }), + if (!Array.isArray(errors)) { + errors = [errors]; + } -/***/ "./node_modules/async-validator/es/validator/required.js": -/*!***************************************************************!*\ - !*** ./node_modules/async-validator/es/validator/required.js ***! - \***************************************************************/ -/*! no static exports found */ -/***/ (function(module, exports, __webpack_require__) { + if (!options.suppressWarning && errors.length) { + Schema.warning('async-validator:', errors); + } -"use strict"; + if (errors.length && rule.message) { + errors = [].concat(rule.message); + } + errors = errors.map(complementError(rule)); -Object.defineProperty(exports, "__esModule", { - value: true -}); + if (options.first && errors.length) { + errorFields[rule.field] = 1; + return doIt(errors); + } -var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; + if (!deep) { + doIt(errors); + } else { + // if rule is required but the target object + // does not exist fail at the rule level and don't + // go deeper + if (rule.required && !data.value) { + if (rule.message) { + errors = [].concat(rule.message).map(complementError(rule)); + } else if (options.error) { + errors = [options.error(rule, format(options.messages.required, rule.field))]; + } else { + errors = []; + } -var _rule = __webpack_require__(/*! ../rule/ */ "./node_modules/async-validator/es/rule/index.js"); + return doIt(errors); + } -var _rule2 = _interopRequireDefault(_rule); + var fieldsSchema = {}; -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } + if (rule.defaultField) { + for (var k in data.value) { + if (data.value.hasOwnProperty(k)) { + fieldsSchema[k] = rule.defaultField; + } + } + } -function required(rule, value, callback, source, options) { - var errors = []; - var type = Array.isArray(value) ? 'array' : typeof value === 'undefined' ? 'undefined' : _typeof(value); - _rule2['default'].required(rule, value, source, errors, options, type); - callback(errors); -} + fieldsSchema = _extends({}, fieldsSchema, {}, data.rule.fields); -exports['default'] = required; + for (var f in fieldsSchema) { + if (fieldsSchema.hasOwnProperty(f)) { + var fieldSchema = Array.isArray(fieldsSchema[f]) ? fieldsSchema[f] : [fieldsSchema[f]]; + fieldsSchema[f] = fieldSchema.map(addFullfield.bind(null, f)); + } + } -/***/ }), + var schema = new Schema(fieldsSchema); + schema.messages(options.messages); -/***/ "./node_modules/async-validator/es/validator/string.js": -/*!*************************************************************!*\ - !*** ./node_modules/async-validator/es/validator/string.js ***! - \*************************************************************/ -/*! no static exports found */ -/***/ (function(module, exports, __webpack_require__) { + if (data.rule.options) { + data.rule.options.messages = options.messages; + data.rule.options.error = options.error; + } -"use strict"; + schema.validate(data.value, data.rule.options || options, function (errs) { + var finalErrors = []; + if (errors && errors.length) { + finalErrors.push.apply(finalErrors, errors); + } -Object.defineProperty(exports, "__esModule", { - value: true -}); + if (errs && errs.length) { + finalErrors.push.apply(finalErrors, errs); + } -var _rule = __webpack_require__(/*! ../rule/ */ "./node_modules/async-validator/es/rule/index.js"); + doIt(finalErrors.length ? finalErrors : null); + }); + } + } -var _rule2 = _interopRequireDefault(_rule); + var res; -var _util = __webpack_require__(/*! ../util */ "./node_modules/async-validator/es/util.js"); + if (rule.asyncValidator) { + res = rule.asyncValidator(rule, data.value, cb, data.source, options); + } else if (rule.validator) { + res = rule.validator(rule, data.value, cb, data.source, options); -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } + if (res === true) { + cb(); + } else if (res === false) { + cb(rule.message || rule.field + " fails"); + } else if (res instanceof Array) { + cb(res); + } else if (res instanceof Error) { + cb(res.message); + } + } -/** - * Performs validation for string types. - * - * @param rule The validation rule. - * @param value The value of the field on the source object. - * @param callback The callback function. - * @param source The source object being validated. - * @param options The validation options. - * @param options.messages The validation messages. - */ -function string(rule, value, callback, source, options) { - var errors = []; - var validate = rule.required || !rule.required && source.hasOwnProperty(rule.field); - if (validate) { - if ((0, _util.isEmptyValue)(value, 'string') && !rule.required) { - return callback(); - } - _rule2['default'].required(rule, value, source, errors, options, 'string'); - if (!(0, _util.isEmptyValue)(value, 'string')) { - _rule2['default'].type(rule, value, source, errors, options); - _rule2['default'].range(rule, value, source, errors, options); - _rule2['default'].pattern(rule, value, source, errors, options); - if (rule.whitespace === true) { - _rule2['default'].whitespace(rule, value, source, errors, options); + if (res && res.then) { + res.then(function () { + return cb(); + }, function (e) { + return cb(e); + }); } + }, function (results) { + complete(results); + }); + }, + getType: function getType(rule) { + if (rule.type === undefined && rule.pattern instanceof RegExp) { + rule.type = 'pattern'; } - } - callback(errors); -} -exports['default'] = string; - -/***/ }), + if (typeof rule.validator !== 'function' && rule.type && !validators.hasOwnProperty(rule.type)) { + throw new Error(format('Unknown rule type %s', rule.type)); + } -/***/ "./node_modules/async-validator/es/validator/type.js": -/*!***********************************************************!*\ - !*** ./node_modules/async-validator/es/validator/type.js ***! - \***********************************************************/ -/*! no static exports found */ -/***/ (function(module, exports, __webpack_require__) { + return rule.type || 'string'; + }, + getValidationMethod: function getValidationMethod(rule) { + if (typeof rule.validator === 'function') { + return rule.validator; + } -"use strict"; + var keys = Object.keys(rule); + var messageIndex = keys.indexOf('message'); + if (messageIndex !== -1) { + keys.splice(messageIndex, 1); + } -Object.defineProperty(exports, "__esModule", { - value: true -}); + if (keys.length === 1 && keys[0] === 'required') { + return validators.required; + } -var _rule = __webpack_require__(/*! ../rule/ */ "./node_modules/async-validator/es/rule/index.js"); + return validators[this.getType(rule)] || false; + } +}; -var _rule2 = _interopRequireDefault(_rule); +Schema.register = function register(type, validator) { + if (typeof validator !== 'function') { + throw new Error('Cannot register a validator by type, validator is not a function'); + } -var _util = __webpack_require__(/*! ../util */ "./node_modules/async-validator/es/util.js"); + validators[type] = validator; +}; -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } +Schema.warning = warning; +Schema.messages = messages; -function type(rule, value, callback, source, options) { - var ruleType = rule.type; - var errors = []; - var validate = rule.required || !rule.required && source.hasOwnProperty(rule.field); - if (validate) { - if ((0, _util.isEmptyValue)(value, ruleType) && !rule.required) { - return callback(); - } - _rule2['default'].required(rule, value, source, errors, options, ruleType); - if (!(0, _util.isEmptyValue)(value, ruleType)) { - _rule2['default'].type(rule, value, source, errors, options); - } - } - callback(errors); -} +/* harmony default export */ __webpack_exports__["default"] = (Schema); +//# sourceMappingURL=index.js.map -exports['default'] = type; +/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./../../process/browser.js */ "./node_modules/process/browser.js"))) /***/ }), @@ -27949,10 +28674,10 @@ function mergeFn (a, b) { /***/ }), -/***/ "./node_modules/babel-loader/lib/index.js?!./node_modules/vue-loader/lib/index.js?!./vendor/avored/framework/resources/components/cms/page/PageSave.vue?vue&type=script&lang=js&": -/*!*************************************************************************************************************************************************************************************************!*\ - !*** ./node_modules/babel-loader/lib??ref--4-0!./node_modules/vue-loader/lib??vue-loader-options!./vendor/avored/framework/resources/components/cms/page/PageSave.vue?vue&type=script&lang=js& ***! - \*************************************************************************************************************************************************************************************************/ +/***/ "./node_modules/babel-loader/lib/index.js?!./node_modules/vue-loader/lib/index.js?!./packages/framework/resources/components/cms/page/PageSave.vue?vue&type=script&lang=js&": +/*!********************************************************************************************************************************************************************************************!*\ + !*** ./node_modules/babel-loader/lib??ref--4-0!./node_modules/vue-loader/lib??vue-loader-options!./packages/framework/resources/components/cms/page/PageSave.vue?vue&type=script&lang=js& ***! + \********************************************************************************************************************************************************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { @@ -27966,8 +28691,8 @@ __webpack_require__.r(__webpack_exports__); /* harmony import */ var vue__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(vue__WEBPACK_IMPORTED_MODULE_2__); /* harmony import */ var lodash_isNil__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! lodash/isNil */ "./node_modules/lodash/isNil.js"); /* harmony import */ var lodash_isNil__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(lodash_isNil__WEBPACK_IMPORTED_MODULE_3__); -/* harmony import */ var _widget__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./widget */ "./vendor/avored/framework/resources/components/cms/page/widget.js"); -/* harmony import */ var _js_app__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../../js/app */ "./vendor/avored/framework/resources/js/app.js"); +/* harmony import */ var _widget__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./widget */ "./packages/framework/resources/components/cms/page/widget.js"); +/* harmony import */ var _js_app__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../../js/app */ "./packages/framework/resources/js/app.js"); @@ -28046,10 +28771,48 @@ var container = [['bold', 'italic', 'underline', 'strike'], [{ /***/ }), -/***/ "./node_modules/babel-loader/lib/index.js?!./node_modules/vue-loader/lib/index.js?!./vendor/avored/framework/resources/components/system/admin-user/AdminUserSave.vue?vue&type=script&lang=js&": -/*!***************************************************************************************************************************************************************************************************************!*\ - !*** ./node_modules/babel-loader/lib??ref--4-0!./node_modules/vue-loader/lib??vue-loader-options!./vendor/avored/framework/resources/components/system/admin-user/AdminUserSave.vue?vue&type=script&lang=js& ***! - \***************************************************************************************************************************************************************************************************************/ +/***/ "./node_modules/babel-loader/lib/index.js?!./node_modules/vue-loader/lib/index.js?!./packages/framework/resources/components/system/LoginFields.vue?vue&type=script&lang=js&": +/*!*********************************************************************************************************************************************************************************************!*\ + !*** ./node_modules/babel-loader/lib??ref--4-0!./node_modules/vue-loader/lib??vue-loader-options!./packages/framework/resources/components/system/LoginFields.vue?vue&type=script&lang=js& ***! + \*********************************************************************************************************************************************************************************************/ +/*! exports provided: default */ +/***/ (function(module, __webpack_exports__, __webpack_require__) { + +"use strict"; +__webpack_require__.r(__webpack_exports__); +// +// +// +// +/* harmony default export */ __webpack_exports__["default"] = ({ + props: [], + data: function data() { + return { + loginForm: this.$form.createForm(this), + loadingSubmitBtn: false + }; + }, + methods: { + handleSubmit: function handleSubmit(e) { + var _this = this; + + this.loadingSubmitBtn = true; + this.loginForm.validateFields(function (err, values) { + if (err) { + _this.loadingSubmitBtn = false; + e.preventDefault(); + } + }); + } + } +}); + +/***/ }), + +/***/ "./node_modules/babel-loader/lib/index.js?!./node_modules/vue-loader/lib/index.js?!./packages/framework/resources/components/system/admin-user/AdminUserSave.vue?vue&type=script&lang=js&": +/*!**********************************************************************************************************************************************************************************************************!*\ + !*** ./node_modules/babel-loader/lib??ref--4-0!./node_modules/vue-loader/lib??vue-loader-options!./packages/framework/resources/components/system/admin-user/AdminUserSave.vue?vue&type=script&lang=js& ***! + \**********************************************************************************************************************************************************************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { @@ -28559,7 +29322,8 @@ function toByteArray (b64) { ? validLen - 4 : validLen - for (var i = 0; i < len; i += 4) { + var i + for (i = 0; i < len; i += 4) { tmp = (revLookup[b64.charCodeAt(i)] << 18) | (revLookup[b64.charCodeAt(i + 1)] << 12) | @@ -28658,7 +29422,7 @@ function fromByteArray (uint8) { /* WEBPACK VAR INJECTION */(function(global) {/*! * The buffer module from node.js, for the browser. * - * @author Feross Aboukhadijeh + * @author Feross Aboukhadijeh * @license MIT */ /* eslint-disable no-proto */ @@ -30965,7 +31729,7 @@ module.exports = function (it) { /*! no static exports found */ /***/ (function(module, exports) { -var core = module.exports = { version: '2.6.9' }; +var core = module.exports = { version: '2.6.10' }; if (typeof __e == 'number') __e = core; // eslint-disable-line no-undef @@ -32761,14 +33525,14 @@ for (var i = 0; i < DOMIterables.length; i++) { /***/ }), -/***/ "./node_modules/css-loader/index.js?!./node_modules/vue-loader/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/src/index.js?!./node_modules/vue-loader/lib/index.js?!./vendor/avored/framework/resources/components/system/admin-user/AdminUserSave.vue?vue&type=style&index=0&lang=css&": -/*!**********************************************************************************************************************************************************************************************************************************************************************************************************************!*\ - !*** ./node_modules/css-loader??ref--6-1!./node_modules/vue-loader/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/src??ref--6-2!./node_modules/vue-loader/lib??vue-loader-options!./vendor/avored/framework/resources/components/system/admin-user/AdminUserSave.vue?vue&type=style&index=0&lang=css& ***! - \**********************************************************************************************************************************************************************************************************************************************************************************************************************/ +/***/ "./node_modules/css-loader/index.js?!./node_modules/vue-loader/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/src/index.js?!./node_modules/vue-loader/lib/index.js?!./packages/framework/resources/components/system/admin-user/AdminUserSave.vue?vue&type=style&index=0&lang=css&": +/*!*****************************************************************************************************************************************************************************************************************************************************************************************************************!*\ + !*** ./node_modules/css-loader??ref--6-1!./node_modules/vue-loader/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/src??ref--6-2!./node_modules/vue-loader/lib??vue-loader-options!./packages/framework/resources/components/system/admin-user/AdminUserSave.vue?vue&type=style&index=0&lang=css& ***! + \*****************************************************************************************************************************************************************************************************************************************************************************************************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { -exports = module.exports = __webpack_require__(/*! ../../../../../../../node_modules/css-loader/lib/css-base.js */ "./node_modules/css-loader/lib/css-base.js")(false); +exports = module.exports = __webpack_require__(/*! ../../../../../../node_modules/css-loader/lib/css-base.js */ "./node_modules/css-loader/lib/css-base.js")(false); // imports @@ -32878,6 +33642,69 @@ function toComment(sourceMap) { __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "alignElement", function() { return alignElement; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "alignPoint", function() { return alignPoint; }); +function _typeof(obj) { + if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { + _typeof = function (obj) { + return typeof obj; + }; + } else { + _typeof = function (obj) { + return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; + }; + } + + return _typeof(obj); +} + +function _defineProperty(obj, key, value) { + if (key in obj) { + Object.defineProperty(obj, key, { + value: value, + enumerable: true, + configurable: true, + writable: true + }); + } else { + obj[key] = value; + } + + return obj; +} + +function ownKeys(object, enumerableOnly) { + var keys = Object.keys(object); + + if (Object.getOwnPropertySymbols) { + var symbols = Object.getOwnPropertySymbols(object); + if (enumerableOnly) symbols = symbols.filter(function (sym) { + return Object.getOwnPropertyDescriptor(object, sym).enumerable; + }); + keys.push.apply(keys, symbols); + } + + return keys; +} + +function _objectSpread2(target) { + for (var i = 1; i < arguments.length; i++) { + var source = arguments[i] != null ? arguments[i] : {}; + + if (i % 2) { + ownKeys(source, true).forEach(function (key) { + _defineProperty(target, key, source[key]); + }); + } else if (Object.getOwnPropertyDescriptors) { + Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); + } else { + ownKeys(source).forEach(function (key) { + Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); + }); + } + } + + return target; +} + var vendorPrefix; var jsCssMap = { Webkit: '-webkit-', @@ -32988,7 +33815,6 @@ function setTransformXY(node, xy) { } } -function _typeof(obj) { if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); } var RE_NUM = /[\-+]?(?:\d*\.|)\d+(?:[eE][\-+]?\d+|)/.source; var getComputedStyleX; // https://stackoverflow.com/a/3485654/3040605 @@ -34092,11 +34918,6 @@ function alignElement(el, refNode, align) { alignElement.__getOffsetParent = getOffsetParent; alignElement.__getVisibleRectForElement = getVisibleRectForElement; -function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; } - -function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(source, true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(source).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; } - -function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } /** * `tgtPoint`: { pageX, pageY } or { clientX, clientY }. * If client position provided, will internal convert to page position. @@ -34133,13 +34954,14 @@ function alignPoint(el, tgtPoint, align) { var pointInView = pageX >= 0 && pageX <= scrollX + viewportWidth && pageY >= 0 && pageY <= scrollY + viewportHeight; // Provide default target point var points = [align.points[0], 'cc']; - return doAlign(el, tgtRegion, _objectSpread({}, align, { + return doAlign(el, tgtRegion, _objectSpread2({}, align, { points: points }), pointInView); } /* harmony default export */ __webpack_exports__["default"] = (alignElement); +//# sourceMappingURL=index.js.map /***/ }), @@ -35194,29 +36016,6 @@ exports.write = function (buffer, value, offset, isLE, mLen, nBytes) { } -/***/ }), - -/***/ "./node_modules/intersperse/lib/intersperse.js": -/*!*****************************************************!*\ - !*** ./node_modules/intersperse/lib/intersperse.js ***! - \*****************************************************/ -/*! no static exports found */ -/***/ (function(module, exports) { - -module.exports = intersperse; - -function intersperse(arr, obj) { - if (!arr.length) return []; - if (arr.length === 1) return arr.slice(0); - - var items = [arr[0]]; - for (var i = 1, len = arr.length; i < len; ++i) { - items.push(obj, arr[i]); - } - - return items; -} - /***/ }), /***/ "./node_modules/is-buffer/index.js": @@ -42818,7 +43617,7 @@ process.umask = function() { return 0; }; /***/ (function(module, exports, __webpack_require__) { /* WEBPACK VAR INJECTION */(function(Buffer) {/*! - * Quill Editor v1.3.6 + * Quill Editor v1.3.7 * https://quilljs.com/ * Copyright (c) 2014, Jason Chen * Copyright (c) 2013, salesforce.com @@ -43253,7 +44052,19 @@ Delta.prototype.slice = function (start, end) { Delta.prototype.compose = function (other) { var thisIter = op.iterator(this.ops); var otherIter = op.iterator(other.ops); - var delta = new Delta(); + var ops = []; + var firstOther = otherIter.peek(); + if (firstOther != null && typeof firstOther.retain === 'number' && firstOther.attributes == null) { + var firstLeft = firstOther.retain; + while (thisIter.peekType() === 'insert' && thisIter.peekLength() <= firstLeft) { + firstLeft -= thisIter.peekLength(); + ops.push(thisIter.next()); + } + if (firstOther.retain - firstLeft > 0) { + otherIter.next(firstOther.retain - firstLeft); + } + } + var delta = new Delta(ops); while (thisIter.hasNext() || otherIter.hasNext()) { if (otherIter.peekType() === 'insert') { delta.push(otherIter.next()); @@ -43274,6 +44085,13 @@ Delta.prototype.compose = function (other) { var attributes = op.attributes.compose(thisOp.attributes, otherOp.attributes, typeof thisOp.retain === 'number'); if (attributes) newOp.attributes = attributes; delta.push(newOp); + + // Optimization if rest of other is just retain + if (!otherIter.hasNext() && equal(delta.ops[delta.ops.length - 1], newOp)) { + var rest = new Delta(thisIter.rest()); + return delta.concat(rest).chop(); + } + // Other op should be delete, we could be an insert or retain // Insert + delete cancels out } else if (typeof otherOp['delete'] === 'number' && typeof thisOp.retain === 'number') { @@ -43431,6 +44249,8 @@ module.exports = Delta; var hasOwn = Object.prototype.hasOwnProperty; var toStr = Object.prototype.toString; +var defineProperty = Object.defineProperty; +var gOPD = Object.getOwnPropertyDescriptor; var isArray = function isArray(arr) { if (typeof Array.isArray === 'function') { @@ -43460,6 +44280,35 @@ var isPlainObject = function isPlainObject(obj) { return typeof key === 'undefined' || hasOwn.call(obj, key); }; +// If name is '__proto__', and Object.defineProperty is available, define __proto__ as an own property on target +var setProperty = function setProperty(target, options) { + if (defineProperty && options.name === '__proto__') { + defineProperty(target, options.name, { + enumerable: true, + configurable: true, + value: options.newValue, + writable: true + }); + } else { + target[options.name] = options.newValue; + } +}; + +// Return undefined instead of __proto__ if '__proto__' is not an own property +var getProperty = function getProperty(obj, name) { + if (name === '__proto__') { + if (!hasOwn.call(obj, name)) { + return void 0; + } else if (gOPD) { + // In early versions of node, obj['__proto__'] is buggy when obj has + // __proto__ as an own property. Object.getOwnPropertyDescriptor() works. + return gOPD(obj, name).value; + } + } + + return obj[name]; +}; + module.exports = function extend() { var options, name, src, copy, copyIsArray, clone; var target = arguments[0]; @@ -43484,8 +44333,8 @@ module.exports = function extend() { if (options != null) { // Extend the base object for (name in options) { - src = target[name]; - copy = options[name]; + src = getProperty(target, name); + copy = getProperty(options, name); // Prevent never-ending loop if (target !== copy) { @@ -43499,11 +44348,11 @@ module.exports = function extend() { } // Never move original objects, clone them - target[name] = extend(deep, clone, copy); + setProperty(target, { name: name, newValue: extend(deep, clone, copy) }); // Don't bring in undefined values } else if (typeof copy !== 'undefined') { - target[name] = copy; + setProperty(target, { name: name, newValue: copy }); } } } @@ -44347,7 +45196,7 @@ Quill.DEFAULTS = { Quill.events = _emitter4.default.events; Quill.sources = _emitter4.default.sources; // eslint-disable-next-line no-undef -Quill.version = false ? undefined : "1.3.6"; +Quill.version = false ? undefined : "1.3.7"; Quill.imports = { 'delta': _quillDelta2.default, @@ -46496,8 +47345,8 @@ var LeafBlot = /** @class */ (function (_super) { return [this.parent.domNode, offset]; }; LeafBlot.prototype.value = function () { - return _a = {}, _a[this.statics.blotName] = this.statics.value(this.domNode) || true, _a; var _a; + return _a = {}, _a[this.statics.blotName] = this.statics.value(this.domNode) || true, _a; }; LeafBlot.scope = Registry.Scope.INLINE_BLOT; return LeafBlot; @@ -46646,6 +47495,22 @@ Iterator.prototype.peekType = function () { return 'retain'; }; +Iterator.prototype.rest = function () { + if (!this.hasNext()) { + return []; + } else if (this.offset === 0) { + return this.ops.slice(this.index); + } else { + var offset = this.offset; + var index = this.index; + var next = this.next(); + var rest = this.ops.slice(this.index); + this.offset = offset; + this.index = index; + return [next].concat(rest); + } +}; + module.exports = lib; @@ -46760,7 +47625,13 @@ function clone(parent, circular, depth, prototype, includeNonEnumerable) { } else if (clone.__isDate(parent)) { child = new Date(parent.getTime()); } else if (useBuffer && Buffer.isBuffer(parent)) { - child = new Buffer(parent.length); + if (Buffer.allocUnsafe) { + // Node.js >= 4.5.0 + child = Buffer.allocUnsafe(parent.length); + } else { + // Older Node.js versions + child = new Buffer(parent.length); + } parent.copy(child); return child; } else if (_instanceof(parent, Error)) { @@ -48105,6 +48976,7 @@ var Link = function (_Inline) { var node = _get(Link.__proto__ || Object.getPrototypeOf(Link), 'create', this).call(this, value); value = this.sanitize(value); node.setAttribute('href', value); + node.setAttribute('rel', 'noopener noreferrer'); node.setAttribute('target', '_blank'); return node; } @@ -52768,7 +53640,7 @@ var SnowTooltip = function (_BaseTooltip) { return SnowTooltip; }(_base.BaseTooltip); -SnowTooltip.TEMPLATE = ['', '', '', ''].join(''); +SnowTooltip.TEMPLATE = ['', '', '', ''].join(''); exports.default = SnowTheme; @@ -55589,15 +56461,15 @@ module.exports = function shallowEqual(objA, objB, compare, compareContext) { /***/ }), -/***/ "./node_modules/style-loader/index.js!./node_modules/css-loader/index.js?!./node_modules/vue-loader/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/src/index.js?!./node_modules/vue-loader/lib/index.js?!./vendor/avored/framework/resources/components/system/admin-user/AdminUserSave.vue?vue&type=style&index=0&lang=css&": -/*!**************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\ - !*** ./node_modules/style-loader!./node_modules/css-loader??ref--6-1!./node_modules/vue-loader/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/src??ref--6-2!./node_modules/vue-loader/lib??vue-loader-options!./vendor/avored/framework/resources/components/system/admin-user/AdminUserSave.vue?vue&type=style&index=0&lang=css& ***! - \**************************************************************************************************************************************************************************************************************************************************************************************************************************************************/ +/***/ "./node_modules/style-loader/index.js!./node_modules/css-loader/index.js?!./node_modules/vue-loader/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/src/index.js?!./node_modules/vue-loader/lib/index.js?!./packages/framework/resources/components/system/admin-user/AdminUserSave.vue?vue&type=style&index=0&lang=css&": +/*!*********************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\ + !*** ./node_modules/style-loader!./node_modules/css-loader??ref--6-1!./node_modules/vue-loader/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/src??ref--6-2!./node_modules/vue-loader/lib??vue-loader-options!./packages/framework/resources/components/system/admin-user/AdminUserSave.vue?vue&type=style&index=0&lang=css& ***! + \*********************************************************************************************************************************************************************************************************************************************************************************************************************************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { -var content = __webpack_require__(/*! !../../../../../../../node_modules/css-loader??ref--6-1!../../../../../../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../../../../../node_modules/postcss-loader/src??ref--6-2!../../../../../../../node_modules/vue-loader/lib??vue-loader-options!./AdminUserSave.vue?vue&type=style&index=0&lang=css& */ "./node_modules/css-loader/index.js?!./node_modules/vue-loader/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/src/index.js?!./node_modules/vue-loader/lib/index.js?!./vendor/avored/framework/resources/components/system/admin-user/AdminUserSave.vue?vue&type=style&index=0&lang=css&"); +var content = __webpack_require__(/*! !../../../../../../node_modules/css-loader??ref--6-1!../../../../../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../../../../node_modules/postcss-loader/src??ref--6-2!../../../../../../node_modules/vue-loader/lib??vue-loader-options!./AdminUserSave.vue?vue&type=style&index=0&lang=css& */ "./node_modules/css-loader/index.js?!./node_modules/vue-loader/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/src/index.js?!./node_modules/vue-loader/lib/index.js?!./packages/framework/resources/components/system/admin-user/AdminUserSave.vue?vue&type=style&index=0&lang=css&"); if(typeof content === 'string') content = [[module.i, content, '']]; @@ -55611,7 +56483,7 @@ var options = {"hmr":true} options.transform = transform options.insertInto = undefined; -var update = __webpack_require__(/*! ../../../../../../../node_modules/style-loader/lib/addStyles.js */ "./node_modules/style-loader/lib/addStyles.js")(content, options); +var update = __webpack_require__(/*! ../../../../../../node_modules/style-loader/lib/addStyles.js */ "./node_modules/style-loader/lib/addStyles.js")(content, options); if(content.locals) module.exports = content.locals; @@ -57914,6 +58786,30 @@ return install$1; }))); +/***/ }), + +/***/ "./node_modules/vue-loader/lib/loaders/templateLoader.js?!./node_modules/vue-loader/lib/index.js?!./packages/framework/resources/components/system/LoginFields.vue?vue&type=template&id=2bcd53e8&": +/*!*************************************************************************************************************************************************************************************************************************************!*\ + !*** ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/framework/resources/components/system/LoginFields.vue?vue&type=template&id=2bcd53e8& ***! + \*************************************************************************************************************************************************************************************************************************************/ +/*! exports provided: render, staticRenderFns */ +/***/ (function(module, __webpack_exports__, __webpack_require__) { + +"use strict"; +__webpack_require__.r(__webpack_exports__); +/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "render", function() { return render; }); +/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "staticRenderFns", function() { return staticRenderFns; }); +var render = function() { + var _vm = this + var _h = _vm.$createElement + var _c = _vm._self._c || _h + return _c("div") +} +var staticRenderFns = [] +render._withStripped = true + + + /***/ }), /***/ "./node_modules/vue-loader/lib/runtime/componentNormalizer.js": @@ -70182,17 +71078,17 @@ module.exports = function(module) { /***/ }), -/***/ "./vendor/avored/framework/resources/components/cms/page/PageSave.vue": -/*!****************************************************************************!*\ - !*** ./vendor/avored/framework/resources/components/cms/page/PageSave.vue ***! - \****************************************************************************/ +/***/ "./packages/framework/resources/components/cms/page/PageSave.vue": +/*!***********************************************************************!*\ + !*** ./packages/framework/resources/components/cms/page/PageSave.vue ***! + \***********************************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); -/* harmony import */ var _PageSave_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./PageSave.vue?vue&type=script&lang=js& */ "./vendor/avored/framework/resources/components/cms/page/PageSave.vue?vue&type=script&lang=js&"); -/* empty/unused harmony star reexport *//* harmony import */ var _node_modules_vue_loader_lib_runtime_componentNormalizer_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../../../../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js */ "./node_modules/vue-loader/lib/runtime/componentNormalizer.js"); +/* harmony import */ var _PageSave_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./PageSave.vue?vue&type=script&lang=js& */ "./packages/framework/resources/components/cms/page/PageSave.vue?vue&type=script&lang=js&"); +/* empty/unused harmony star reexport *//* harmony import */ var _node_modules_vue_loader_lib_runtime_componentNormalizer_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../../../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js */ "./node_modules/vue-loader/lib/runtime/componentNormalizer.js"); var render, staticRenderFns @@ -70213,37 +71109,37 @@ var component = Object(_node_modules_vue_loader_lib_runtime_componentNormalizer_ /* hot reload */ if (false) { var api; } -component.options.__file = "vendor/avored/framework/resources/components/cms/page/PageSave.vue" +component.options.__file = "packages/framework/resources/components/cms/page/PageSave.vue" /* harmony default export */ __webpack_exports__["default"] = (component.exports); /***/ }), -/***/ "./vendor/avored/framework/resources/components/cms/page/PageSave.vue?vue&type=script&lang=js&": -/*!*****************************************************************************************************!*\ - !*** ./vendor/avored/framework/resources/components/cms/page/PageSave.vue?vue&type=script&lang=js& ***! - \*****************************************************************************************************/ +/***/ "./packages/framework/resources/components/cms/page/PageSave.vue?vue&type=script&lang=js&": +/*!************************************************************************************************!*\ + !*** ./packages/framework/resources/components/cms/page/PageSave.vue?vue&type=script&lang=js& ***! + \************************************************************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); -/* harmony import */ var _node_modules_babel_loader_lib_index_js_ref_4_0_node_modules_vue_loader_lib_index_js_vue_loader_options_PageSave_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! -!../../../../../../../node_modules/babel-loader/lib??ref--4-0!../../../../../../../node_modules/vue-loader/lib??vue-loader-options!./PageSave.vue?vue&type=script&lang=js& */ "./node_modules/babel-loader/lib/index.js?!./node_modules/vue-loader/lib/index.js?!./vendor/avored/framework/resources/components/cms/page/PageSave.vue?vue&type=script&lang=js&"); +/* harmony import */ var _node_modules_babel_loader_lib_index_js_ref_4_0_node_modules_vue_loader_lib_index_js_vue_loader_options_PageSave_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! -!../../../../../../node_modules/babel-loader/lib??ref--4-0!../../../../../../node_modules/vue-loader/lib??vue-loader-options!./PageSave.vue?vue&type=script&lang=js& */ "./node_modules/babel-loader/lib/index.js?!./node_modules/vue-loader/lib/index.js?!./packages/framework/resources/components/cms/page/PageSave.vue?vue&type=script&lang=js&"); /* empty/unused harmony star reexport */ /* harmony default export */ __webpack_exports__["default"] = (_node_modules_babel_loader_lib_index_js_ref_4_0_node_modules_vue_loader_lib_index_js_vue_loader_options_PageSave_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0__["default"]); /***/ }), -/***/ "./vendor/avored/framework/resources/components/cms/page/widget.js": -/*!*************************************************************************!*\ - !*** ./vendor/avored/framework/resources/components/cms/page/widget.js ***! - \*************************************************************************/ +/***/ "./packages/framework/resources/components/cms/page/widget.js": +/*!********************************************************************!*\ + !*** ./packages/framework/resources/components/cms/page/widget.js ***! + \********************************************************************/ /*! exports provided: Widget */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Widget", function() { return Widget; }); -/* harmony import */ var _PageSave_vue__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./PageSave.vue */ "./vendor/avored/framework/resources/components/cms/page/PageSave.vue"); -/* harmony import */ var _js_app__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../../js/app */ "./vendor/avored/framework/resources/js/app.js"); +/* harmony import */ var _PageSave_vue__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./PageSave.vue */ "./packages/framework/resources/components/cms/page/PageSave.vue"); +/* harmony import */ var _js_app__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../../js/app */ "./packages/framework/resources/js/app.js"); var Widget = { @@ -70255,18 +71151,87 @@ var Widget = { /***/ }), -/***/ "./vendor/avored/framework/resources/components/system/admin-user/AdminUserSave.vue": -/*!******************************************************************************************!*\ - !*** ./vendor/avored/framework/resources/components/system/admin-user/AdminUserSave.vue ***! - \******************************************************************************************/ +/***/ "./packages/framework/resources/components/system/LoginFields.vue": +/*!************************************************************************!*\ + !*** ./packages/framework/resources/components/system/LoginFields.vue ***! + \************************************************************************/ +/*! exports provided: default */ +/***/ (function(module, __webpack_exports__, __webpack_require__) { + +"use strict"; +__webpack_require__.r(__webpack_exports__); +/* harmony import */ var _LoginFields_vue_vue_type_template_id_2bcd53e8___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./LoginFields.vue?vue&type=template&id=2bcd53e8& */ "./packages/framework/resources/components/system/LoginFields.vue?vue&type=template&id=2bcd53e8&"); +/* harmony import */ var _LoginFields_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./LoginFields.vue?vue&type=script&lang=js& */ "./packages/framework/resources/components/system/LoginFields.vue?vue&type=script&lang=js&"); +/* empty/unused harmony star reexport *//* harmony import */ var _node_modules_vue_loader_lib_runtime_componentNormalizer_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js */ "./node_modules/vue-loader/lib/runtime/componentNormalizer.js"); + + + + + +/* normalize component */ + +var component = Object(_node_modules_vue_loader_lib_runtime_componentNormalizer_js__WEBPACK_IMPORTED_MODULE_2__["default"])( + _LoginFields_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_1__["default"], + _LoginFields_vue_vue_type_template_id_2bcd53e8___WEBPACK_IMPORTED_MODULE_0__["render"], + _LoginFields_vue_vue_type_template_id_2bcd53e8___WEBPACK_IMPORTED_MODULE_0__["staticRenderFns"], + false, + null, + null, + null + +) + +/* hot reload */ +if (false) { var api; } +component.options.__file = "packages/framework/resources/components/system/LoginFields.vue" +/* harmony default export */ __webpack_exports__["default"] = (component.exports); + +/***/ }), + +/***/ "./packages/framework/resources/components/system/LoginFields.vue?vue&type=script&lang=js&": +/*!*************************************************************************************************!*\ + !*** ./packages/framework/resources/components/system/LoginFields.vue?vue&type=script&lang=js& ***! + \*************************************************************************************************/ +/*! exports provided: default */ +/***/ (function(module, __webpack_exports__, __webpack_require__) { + +"use strict"; +__webpack_require__.r(__webpack_exports__); +/* harmony import */ var _node_modules_babel_loader_lib_index_js_ref_4_0_node_modules_vue_loader_lib_index_js_vue_loader_options_LoginFields_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! -!../../../../../node_modules/babel-loader/lib??ref--4-0!../../../../../node_modules/vue-loader/lib??vue-loader-options!./LoginFields.vue?vue&type=script&lang=js& */ "./node_modules/babel-loader/lib/index.js?!./node_modules/vue-loader/lib/index.js?!./packages/framework/resources/components/system/LoginFields.vue?vue&type=script&lang=js&"); +/* empty/unused harmony star reexport */ /* harmony default export */ __webpack_exports__["default"] = (_node_modules_babel_loader_lib_index_js_ref_4_0_node_modules_vue_loader_lib_index_js_vue_loader_options_LoginFields_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0__["default"]); + +/***/ }), + +/***/ "./packages/framework/resources/components/system/LoginFields.vue?vue&type=template&id=2bcd53e8&": +/*!*******************************************************************************************************!*\ + !*** ./packages/framework/resources/components/system/LoginFields.vue?vue&type=template&id=2bcd53e8& ***! + \*******************************************************************************************************/ +/*! exports provided: render, staticRenderFns */ +/***/ (function(module, __webpack_exports__, __webpack_require__) { + +"use strict"; +__webpack_require__.r(__webpack_exports__); +/* harmony import */ var _node_modules_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_node_modules_vue_loader_lib_index_js_vue_loader_options_LoginFields_vue_vue_type_template_id_2bcd53e8___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! -!../../../../../node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!../../../../../node_modules/vue-loader/lib??vue-loader-options!./LoginFields.vue?vue&type=template&id=2bcd53e8& */ "./node_modules/vue-loader/lib/loaders/templateLoader.js?!./node_modules/vue-loader/lib/index.js?!./packages/framework/resources/components/system/LoginFields.vue?vue&type=template&id=2bcd53e8&"); +/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "render", function() { return _node_modules_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_node_modules_vue_loader_lib_index_js_vue_loader_options_LoginFields_vue_vue_type_template_id_2bcd53e8___WEBPACK_IMPORTED_MODULE_0__["render"]; }); + +/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "staticRenderFns", function() { return _node_modules_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_node_modules_vue_loader_lib_index_js_vue_loader_options_LoginFields_vue_vue_type_template_id_2bcd53e8___WEBPACK_IMPORTED_MODULE_0__["staticRenderFns"]; }); + + + +/***/ }), + +/***/ "./packages/framework/resources/components/system/admin-user/AdminUserSave.vue": +/*!*************************************************************************************!*\ + !*** ./packages/framework/resources/components/system/admin-user/AdminUserSave.vue ***! + \*************************************************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); -/* harmony import */ var _AdminUserSave_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./AdminUserSave.vue?vue&type=script&lang=js& */ "./vendor/avored/framework/resources/components/system/admin-user/AdminUserSave.vue?vue&type=script&lang=js&"); -/* empty/unused harmony star reexport *//* harmony import */ var _AdminUserSave_vue_vue_type_style_index_0_lang_css___WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./AdminUserSave.vue?vue&type=style&index=0&lang=css& */ "./vendor/avored/framework/resources/components/system/admin-user/AdminUserSave.vue?vue&type=style&index=0&lang=css&"); -/* harmony import */ var _node_modules_vue_loader_lib_runtime_componentNormalizer_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../../../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js */ "./node_modules/vue-loader/lib/runtime/componentNormalizer.js"); +/* harmony import */ var _AdminUserSave_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./AdminUserSave.vue?vue&type=script&lang=js& */ "./packages/framework/resources/components/system/admin-user/AdminUserSave.vue?vue&type=script&lang=js&"); +/* empty/unused harmony star reexport *//* harmony import */ var _AdminUserSave_vue_vue_type_style_index_0_lang_css___WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./AdminUserSave.vue?vue&type=style&index=0&lang=css& */ "./packages/framework/resources/components/system/admin-user/AdminUserSave.vue?vue&type=style&index=0&lang=css&"); +/* harmony import */ var _node_modules_vue_loader_lib_runtime_componentNormalizer_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js */ "./node_modules/vue-loader/lib/runtime/componentNormalizer.js"); var render, staticRenderFns @@ -70288,52 +71253,52 @@ var component = Object(_node_modules_vue_loader_lib_runtime_componentNormalizer_ /* hot reload */ if (false) { var api; } -component.options.__file = "vendor/avored/framework/resources/components/system/admin-user/AdminUserSave.vue" +component.options.__file = "packages/framework/resources/components/system/admin-user/AdminUserSave.vue" /* harmony default export */ __webpack_exports__["default"] = (component.exports); /***/ }), -/***/ "./vendor/avored/framework/resources/components/system/admin-user/AdminUserSave.vue?vue&type=script&lang=js&": -/*!*******************************************************************************************************************!*\ - !*** ./vendor/avored/framework/resources/components/system/admin-user/AdminUserSave.vue?vue&type=script&lang=js& ***! - \*******************************************************************************************************************/ +/***/ "./packages/framework/resources/components/system/admin-user/AdminUserSave.vue?vue&type=script&lang=js&": +/*!**************************************************************************************************************!*\ + !*** ./packages/framework/resources/components/system/admin-user/AdminUserSave.vue?vue&type=script&lang=js& ***! + \**************************************************************************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); -/* harmony import */ var _node_modules_babel_loader_lib_index_js_ref_4_0_node_modules_vue_loader_lib_index_js_vue_loader_options_AdminUserSave_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! -!../../../../../../../node_modules/babel-loader/lib??ref--4-0!../../../../../../../node_modules/vue-loader/lib??vue-loader-options!./AdminUserSave.vue?vue&type=script&lang=js& */ "./node_modules/babel-loader/lib/index.js?!./node_modules/vue-loader/lib/index.js?!./vendor/avored/framework/resources/components/system/admin-user/AdminUserSave.vue?vue&type=script&lang=js&"); +/* harmony import */ var _node_modules_babel_loader_lib_index_js_ref_4_0_node_modules_vue_loader_lib_index_js_vue_loader_options_AdminUserSave_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! -!../../../../../../node_modules/babel-loader/lib??ref--4-0!../../../../../../node_modules/vue-loader/lib??vue-loader-options!./AdminUserSave.vue?vue&type=script&lang=js& */ "./node_modules/babel-loader/lib/index.js?!./node_modules/vue-loader/lib/index.js?!./packages/framework/resources/components/system/admin-user/AdminUserSave.vue?vue&type=script&lang=js&"); /* empty/unused harmony star reexport */ /* harmony default export */ __webpack_exports__["default"] = (_node_modules_babel_loader_lib_index_js_ref_4_0_node_modules_vue_loader_lib_index_js_vue_loader_options_AdminUserSave_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0__["default"]); /***/ }), -/***/ "./vendor/avored/framework/resources/components/system/admin-user/AdminUserSave.vue?vue&type=style&index=0&lang=css&": -/*!***************************************************************************************************************************!*\ - !*** ./vendor/avored/framework/resources/components/system/admin-user/AdminUserSave.vue?vue&type=style&index=0&lang=css& ***! - \***************************************************************************************************************************/ +/***/ "./packages/framework/resources/components/system/admin-user/AdminUserSave.vue?vue&type=style&index=0&lang=css&": +/*!**********************************************************************************************************************!*\ + !*** ./packages/framework/resources/components/system/admin-user/AdminUserSave.vue?vue&type=style&index=0&lang=css& ***! + \**********************************************************************************************************************/ /*! no static exports found */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); -/* harmony import */ var _node_modules_style_loader_index_js_node_modules_css_loader_index_js_ref_6_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_6_2_node_modules_vue_loader_lib_index_js_vue_loader_options_AdminUserSave_vue_vue_type_style_index_0_lang_css___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! -!../../../../../../../node_modules/style-loader!../../../../../../../node_modules/css-loader??ref--6-1!../../../../../../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../../../../../node_modules/postcss-loader/src??ref--6-2!../../../../../../../node_modules/vue-loader/lib??vue-loader-options!./AdminUserSave.vue?vue&type=style&index=0&lang=css& */ "./node_modules/style-loader/index.js!./node_modules/css-loader/index.js?!./node_modules/vue-loader/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/src/index.js?!./node_modules/vue-loader/lib/index.js?!./vendor/avored/framework/resources/components/system/admin-user/AdminUserSave.vue?vue&type=style&index=0&lang=css&"); +/* harmony import */ var _node_modules_style_loader_index_js_node_modules_css_loader_index_js_ref_6_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_6_2_node_modules_vue_loader_lib_index_js_vue_loader_options_AdminUserSave_vue_vue_type_style_index_0_lang_css___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! -!../../../../../../node_modules/style-loader!../../../../../../node_modules/css-loader??ref--6-1!../../../../../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../../../../node_modules/postcss-loader/src??ref--6-2!../../../../../../node_modules/vue-loader/lib??vue-loader-options!./AdminUserSave.vue?vue&type=style&index=0&lang=css& */ "./node_modules/style-loader/index.js!./node_modules/css-loader/index.js?!./node_modules/vue-loader/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/src/index.js?!./node_modules/vue-loader/lib/index.js?!./packages/framework/resources/components/system/admin-user/AdminUserSave.vue?vue&type=style&index=0&lang=css&"); /* harmony import */ var _node_modules_style_loader_index_js_node_modules_css_loader_index_js_ref_6_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_6_2_node_modules_vue_loader_lib_index_js_vue_loader_options_AdminUserSave_vue_vue_type_style_index_0_lang_css___WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_node_modules_style_loader_index_js_node_modules_css_loader_index_js_ref_6_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_6_2_node_modules_vue_loader_lib_index_js_vue_loader_options_AdminUserSave_vue_vue_type_style_index_0_lang_css___WEBPACK_IMPORTED_MODULE_0__); /* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _node_modules_style_loader_index_js_node_modules_css_loader_index_js_ref_6_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_6_2_node_modules_vue_loader_lib_index_js_vue_loader_options_AdminUserSave_vue_vue_type_style_index_0_lang_css___WEBPACK_IMPORTED_MODULE_0__) if(__WEBPACK_IMPORT_KEY__ !== 'default') (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _node_modules_style_loader_index_js_node_modules_css_loader_index_js_ref_6_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_6_2_node_modules_vue_loader_lib_index_js_vue_loader_options_AdminUserSave_vue_vue_type_style_index_0_lang_css___WEBPACK_IMPORTED_MODULE_0__[key]; }) }(__WEBPACK_IMPORT_KEY__)); /* harmony default export */ __webpack_exports__["default"] = (_node_modules_style_loader_index_js_node_modules_css_loader_index_js_ref_6_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_6_2_node_modules_vue_loader_lib_index_js_vue_loader_options_AdminUserSave_vue_vue_type_style_index_0_lang_css___WEBPACK_IMPORTED_MODULE_0___default.a); /***/ }), -/***/ "./vendor/avored/framework/resources/js/app.js": -/*!*****************************************************!*\ - !*** ./vendor/avored/framework/resources/js/app.js ***! - \*****************************************************/ +/***/ "./packages/framework/resources/js/app.js": +/*!************************************************!*\ + !*** ./packages/framework/resources/js/app.js ***! + \************************************************/ /*! exports provided: EventBus */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "EventBus", function() { return EventBus; }); -/* harmony import */ var _avored__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./avored */ "./vendor/avored/framework/resources/js/avored.js"); +/* harmony import */ var _avored__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./avored */ "./packages/framework/resources/js/avored.js"); /* harmony import */ var _avored__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_avored__WEBPACK_IMPORTED_MODULE_0__); /* harmony import */ var ant_design_vue_lib_layout__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ant-design-vue/lib/layout */ "./node_modules/ant-design-vue/lib/layout/index.js"); /* harmony import */ var ant_design_vue_lib_layout__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(ant_design_vue_lib_layout__WEBPACK_IMPORTED_MODULE_1__); @@ -70365,9 +71330,12 @@ if (token) { console.error('CSRF token not found: https://laravel.com/docs/csrf#csrf-x-csrf-token'); } + //import router from './router' +//import apolloProvider from './vue-apollo' window.Vue = __webpack_require__(/*! vue */ "./node_modules/vue/dist/vue.common.js"); -window.AvoRed = _avored__WEBPACK_IMPORTED_MODULE_0___default.a; +window.AvoRed = _avored__WEBPACK_IMPORTED_MODULE_0___default.a; //import i18n from 'vue-i18n' + @@ -70386,25 +71354,25 @@ Vue.use(ant_design_vue_lib_tabs__WEBPACK_IMPORTED_MODULE_6___default.a); Vue.use(ant_design_vue_lib_modal__WEBPACK_IMPORTED_MODULE_7___default.a); Vue.use(ant_design_vue_lib_dropdown__WEBPACK_IMPORTED_MODULE_9___default.a); Vue.component('a-date-picker', function () { - return Promise.all(/*! import() */[__webpack_require__.e(0), __webpack_require__.e(3), __webpack_require__.e(49)]).then(__webpack_require__.t.bind(null, /*! ant-design-vue/lib/date-picker */ "./node_modules/ant-design-vue/lib/date-picker/index.js", 7)); + return Promise.all(/*! import() */[__webpack_require__.e(0), __webpack_require__.e(3), __webpack_require__.e(50)]).then(__webpack_require__.t.bind(null, /*! ant-design-vue/lib/date-picker */ "./node_modules/ant-design-vue/lib/date-picker/index.js", 7)); }); Vue.component('a-icon', function () { return Promise.resolve(/*! import() */).then(__webpack_require__.t.bind(null, /*! ant-design-vue/lib/icon */ "./node_modules/ant-design-vue/lib/icon/index.js", 7)); }); Vue.component('a-avatar', function () { - return __webpack_require__.e(/*! import() */ 46).then(__webpack_require__.t.bind(null, /*! ant-design-vue/lib/avatar */ "./node_modules/ant-design-vue/lib/avatar/index.js", 7)); + return __webpack_require__.e(/*! import() */ 47).then(__webpack_require__.t.bind(null, /*! ant-design-vue/lib/avatar */ "./node_modules/ant-design-vue/lib/avatar/index.js", 7)); }); Vue.component('a-row', function () { - return __webpack_require__.e(/*! import() */ 48).then(__webpack_require__.t.bind(null, /*! ant-design-vue/lib/row */ "./node_modules/ant-design-vue/lib/row/index.js", 7)); + return __webpack_require__.e(/*! import() */ 49).then(__webpack_require__.t.bind(null, /*! ant-design-vue/lib/row */ "./node_modules/ant-design-vue/lib/row/index.js", 7)); }); Vue.component('a-col', function () { - return __webpack_require__.e(/*! import() */ 47).then(__webpack_require__.t.bind(null, /*! ant-design-vue/lib/col */ "./node_modules/ant-design-vue/lib/col/index.js", 7)); + return __webpack_require__.e(/*! import() */ 48).then(__webpack_require__.t.bind(null, /*! ant-design-vue/lib/col */ "./node_modules/ant-design-vue/lib/col/index.js", 7)); }); Vue.component('a-icon', function () { return Promise.resolve(/*! import() */).then(__webpack_require__.t.bind(null, /*! ant-design-vue/lib/icon */ "./node_modules/ant-design-vue/lib/icon/index.js", 7)); }); Vue.component('a-drawer', function () { - return __webpack_require__.e(/*! import() */ 7).then(__webpack_require__.t.bind(null, /*! ant-design-vue/lib/drawer */ "./node_modules/ant-design-vue/lib/drawer/index.js", 7)); + return __webpack_require__.e(/*! import() */ 8).then(__webpack_require__.t.bind(null, /*! ant-design-vue/lib/drawer */ "./node_modules/ant-design-vue/lib/drawer/index.js", 7)); }); Vue.component('a-card', function () { return __webpack_require__.e(/*! import() */ 5).then(__webpack_require__.t.bind(null, /*! ant-design-vue/lib/card */ "./node_modules/ant-design-vue/lib/card/index.js", 7)); @@ -70422,13 +71390,13 @@ Vue.component('a-upload', function () { return __webpack_require__.e(/*! import() */ 1).then(__webpack_require__.t.bind(null, /*! ant-design-vue/lib/upload */ "./node_modules/ant-design-vue/lib/upload/index.js", 7)); }); Vue.component('a-input', function () { - return __webpack_require__.e(/*! import() */ 4).then(__webpack_require__.t.bind(null, /*! ant-design-vue/lib/input */ "./node_modules/ant-design-vue/lib/input/index.js", 7)); + return __webpack_require__.e(/*! import() */ 6).then(__webpack_require__.t.bind(null, /*! ant-design-vue/lib/input */ "./node_modules/ant-design-vue/lib/input/index.js", 7)); }); Vue.component('a-switch', function () { - return __webpack_require__.e(/*! import() */ 8).then(__webpack_require__.t.bind(null, /*! ant-design-vue/lib/switch */ "./node_modules/ant-design-vue/lib/switch/index.js", 7)); + return __webpack_require__.e(/*! import() */ 10).then(__webpack_require__.t.bind(null, /*! ant-design-vue/lib/switch */ "./node_modules/ant-design-vue/lib/switch/index.js", 7)); }); Vue.component('a-tag', function () { - return __webpack_require__.e(/*! import() */ 10).then(__webpack_require__.t.bind(null, /*! ant-design-vue/lib/tag */ "./node_modules/ant-design-vue/lib/tag/index.js", 7)); + return __webpack_require__.e(/*! import() */ 12).then(__webpack_require__.t.bind(null, /*! ant-design-vue/lib/tag */ "./node_modules/ant-design-vue/lib/tag/index.js", 7)); }); Vue.prototype.$notification = ant_design_vue_lib_notification__WEBPACK_IMPORTED_MODULE_8___default.a; Vue.prototype.$confirm = ant_design_vue_lib_modal__WEBPACK_IMPORTED_MODULE_7___default.a.confirm; @@ -70440,135 +71408,130 @@ Vue.prototype.$confirm = ant_design_vue_lib_modal__WEBPACK_IMPORTED_MODULE_7___d Vue.use(vddl__WEBPACK_IMPORTED_MODULE_10___default.a); Vue.component('order-table', function () { - return __webpack_require__.e(/*! import() */ 23).then(__webpack_require__.bind(null, /*! ../components/order/order/OrderTable.vue */ "./vendor/avored/framework/resources/components/order/order/OrderTable.vue")); + return __webpack_require__.e(/*! import() */ 25).then(__webpack_require__.bind(null, /*! ../components/order/order/OrderTable.vue */ "./packages/framework/resources/components/order/order/OrderTable.vue")); }); Vue.component('language-table', function () { - return __webpack_require__.e(/*! import() */ 35).then(__webpack_require__.bind(null, /*! ../components/system/language/LanguageTable.vue */ "./vendor/avored/framework/resources/components/system/language/LanguageTable.vue")); + return __webpack_require__.e(/*! import() */ 36).then(__webpack_require__.bind(null, /*! ../components/system/language/LanguageTable.vue */ "./packages/framework/resources/components/system/language/LanguageTable.vue")); }); Vue.component('language-save', function () { - return __webpack_require__.e(/*! import() */ 34).then(__webpack_require__.bind(null, /*! ../components/system/language/LanguageSave.vue */ "./vendor/avored/framework/resources/components/system/language/LanguageSave.vue")); + return __webpack_require__.e(/*! import() */ 35).then(__webpack_require__.bind(null, /*! ../components/system/language/LanguageSave.vue */ "./packages/framework/resources/components/system/language/LanguageSave.vue")); }); Vue.component('user-group-table', function () { - return __webpack_require__.e(/*! import() */ 45).then(__webpack_require__.bind(null, /*! ../components/user/user-group/UserGroupTable.vue */ "./vendor/avored/framework/resources/components/user/user-group/UserGroupTable.vue")); + return __webpack_require__.e(/*! import() */ 46).then(__webpack_require__.bind(null, /*! ../components/user/user-group/UserGroupTable.vue */ "./packages/framework/resources/components/user/user-group/UserGroupTable.vue")); }); Vue.component('user-group-save', function () { - return __webpack_require__.e(/*! import() */ 44).then(__webpack_require__.bind(null, /*! ../components/user/user-group/UserGroupSave.vue */ "./vendor/avored/framework/resources/components/user/user-group/UserGroupSave.vue")); + return __webpack_require__.e(/*! import() */ 45).then(__webpack_require__.bind(null, /*! ../components/user/user-group/UserGroupSave.vue */ "./packages/framework/resources/components/user/user-group/UserGroupSave.vue")); }); Vue.component('tax-group-table', function () { - return __webpack_require__.e(/*! import() */ 41).then(__webpack_require__.bind(null, /*! ../components/system/tax-group/TaxGroupTable.vue */ "./vendor/avored/framework/resources/components/system/tax-group/TaxGroupTable.vue")); + return __webpack_require__.e(/*! import() */ 42).then(__webpack_require__.bind(null, /*! ../components/system/tax-group/TaxGroupTable.vue */ "./packages/framework/resources/components/system/tax-group/TaxGroupTable.vue")); }); Vue.component('tax-group-save', function () { - return __webpack_require__.e(/*! import() */ 40).then(__webpack_require__.bind(null, /*! ../components/system/tax-group/TaxGroupSave.vue */ "./vendor/avored/framework/resources/components/system/tax-group/TaxGroupSave.vue")); + return __webpack_require__.e(/*! import() */ 41).then(__webpack_require__.bind(null, /*! ../components/system/tax-group/TaxGroupSave.vue */ "./packages/framework/resources/components/system/tax-group/TaxGroupSave.vue")); }); Vue.component('tax-rate-table', function () { - return __webpack_require__.e(/*! import() */ 43).then(__webpack_require__.bind(null, /*! ../components/system/tax-rate/TaxRateTable.vue */ "./vendor/avored/framework/resources/components/system/tax-rate/TaxRateTable.vue")); + return __webpack_require__.e(/*! import() */ 44).then(__webpack_require__.bind(null, /*! ../components/system/tax-rate/TaxRateTable.vue */ "./packages/framework/resources/components/system/tax-rate/TaxRateTable.vue")); }); Vue.component('tax-rate-save', function () { - return __webpack_require__.e(/*! import() */ 42).then(__webpack_require__.bind(null, /*! ../components/system/tax-rate/TaxRateSave.vue */ "./vendor/avored/framework/resources/components/system/tax-rate/TaxRateSave.vue")); + return __webpack_require__.e(/*! import() */ 43).then(__webpack_require__.bind(null, /*! ../components/system/tax-rate/TaxRateSave.vue */ "./packages/framework/resources/components/system/tax-rate/TaxRateSave.vue")); }); Vue.component('attribute-table', function () { - return __webpack_require__.e(/*! import() */ 12).then(__webpack_require__.bind(null, /*! ../components/catalog/attribute/AttributeTable.vue */ "./vendor/avored/framework/resources/components/catalog/attribute/AttributeTable.vue")); + return __webpack_require__.e(/*! import() */ 14).then(__webpack_require__.bind(null, /*! ../components/catalog/attribute/AttributeTable.vue */ "./packages/framework/resources/components/catalog/attribute/AttributeTable.vue")); }); Vue.component('attribute-save', function () { - return __webpack_require__.e(/*! import() */ 11).then(__webpack_require__.bind(null, /*! ../components/catalog/attribute/AttributeSave.vue */ "./vendor/avored/framework/resources/components/catalog/attribute/AttributeSave.vue")); + return __webpack_require__.e(/*! import() */ 13).then(__webpack_require__.bind(null, /*! ../components/catalog/attribute/AttributeSave.vue */ "./packages/framework/resources/components/catalog/attribute/AttributeSave.vue")); }); Vue.component('property-table', function () { - return __webpack_require__.e(/*! import() */ 18).then(__webpack_require__.bind(null, /*! ../components/catalog/property/PropertyTable.vue */ "./vendor/avored/framework/resources/components/catalog/property/PropertyTable.vue")); + return __webpack_require__.e(/*! import() */ 20).then(__webpack_require__.bind(null, /*! ../components/catalog/property/PropertyTable.vue */ "./packages/framework/resources/components/catalog/property/PropertyTable.vue")); }); Vue.component('property-save', function () { - return __webpack_require__.e(/*! import() */ 17).then(__webpack_require__.bind(null, /*! ../components/catalog/property/PropertySave.vue */ "./vendor/avored/framework/resources/components/catalog/property/PropertySave.vue")); + return __webpack_require__.e(/*! import() */ 19).then(__webpack_require__.bind(null, /*! ../components/catalog/property/PropertySave.vue */ "./packages/framework/resources/components/catalog/property/PropertySave.vue")); }); Vue.component('product-table', function () { - return __webpack_require__.e(/*! import() */ 15).then(__webpack_require__.bind(null, /*! ../components/catalog/product/ProductIndex.vue */ "./vendor/avored/framework/resources/components/catalog/product/ProductIndex.vue")); + return __webpack_require__.e(/*! import() */ 17).then(__webpack_require__.bind(null, /*! ../components/catalog/product/ProductIndex.vue */ "./packages/framework/resources/components/catalog/product/ProductIndex.vue")); }); Vue.component('product-save', function () { - return __webpack_require__.e(/*! import() */ 16).then(__webpack_require__.bind(null, /*! ../components/catalog/product/ProductSave.vue */ "./vendor/avored/framework/resources/components/catalog/product/ProductSave.vue")); + return __webpack_require__.e(/*! import() */ 18).then(__webpack_require__.bind(null, /*! ../components/catalog/product/ProductSave.vue */ "./packages/framework/resources/components/catalog/product/ProductSave.vue")); }); Vue.component('state-table', function () { - return __webpack_require__.e(/*! import() */ 39).then(__webpack_require__.bind(null, /*! ../components/system/state/StateTable.vue */ "./vendor/avored/framework/resources/components/system/state/StateTable.vue")); + return __webpack_require__.e(/*! import() */ 40).then(__webpack_require__.bind(null, /*! ../components/system/state/StateTable.vue */ "./packages/framework/resources/components/system/state/StateTable.vue")); }); Vue.component('state-save', function () { - return __webpack_require__.e(/*! import() */ 38).then(__webpack_require__.bind(null, /*! ../components/system/state/StateSave.vue */ "./vendor/avored/framework/resources/components/system/state/StateSave.vue")); + return __webpack_require__.e(/*! import() */ 39).then(__webpack_require__.bind(null, /*! ../components/system/state/StateSave.vue */ "./packages/framework/resources/components/system/state/StateSave.vue")); }); Vue.component('currency-table', function () { - return __webpack_require__.e(/*! import() */ 32).then(__webpack_require__.bind(null, /*! ../components/system/currency/CurrencyIndex.vue */ "./vendor/avored/framework/resources/components/system/currency/CurrencyIndex.vue")); + return __webpack_require__.e(/*! import() */ 33).then(__webpack_require__.bind(null, /*! ../components/system/currency/CurrencyIndex.vue */ "./packages/framework/resources/components/system/currency/CurrencyIndex.vue")); }); Vue.component('currency-save', function () { - return __webpack_require__.e(/*! import() */ 33).then(__webpack_require__.bind(null, /*! ../components/system/currency/CurrencySave.vue */ "./vendor/avored/framework/resources/components/system/currency/CurrencySave.vue")); + return __webpack_require__.e(/*! import() */ 34).then(__webpack_require__.bind(null, /*! ../components/system/currency/CurrencySave.vue */ "./packages/framework/resources/components/system/currency/CurrencySave.vue")); }); Vue.component('category-table', function () { - return __webpack_require__.e(/*! import() */ 14).then(__webpack_require__.bind(null, /*! ../components/catalog/category/CategoryTable.vue */ "./vendor/avored/framework/resources/components/catalog/category/CategoryTable.vue")); + return __webpack_require__.e(/*! import() */ 16).then(__webpack_require__.bind(null, /*! ../components/catalog/category/CategoryTable.vue */ "./packages/framework/resources/components/catalog/category/CategoryTable.vue")); }); Vue.component('category-save', function () { - return __webpack_require__.e(/*! import() */ 13).then(__webpack_require__.bind(null, /*! ../components/catalog/category/CategorySave.vue */ "./vendor/avored/framework/resources/components/catalog/category/CategorySave.vue")); + return __webpack_require__.e(/*! import() */ 15).then(__webpack_require__.bind(null, /*! ../components/catalog/category/CategorySave.vue */ "./packages/framework/resources/components/catalog/category/CategorySave.vue")); }); Vue.component('configuration-save', function () { - return __webpack_require__.e(/*! import() */ 31).then(__webpack_require__.bind(null, /*! ../components/system/configuration/ConfigurationSave.vue */ "./vendor/avored/framework/resources/components/system/configuration/ConfigurationSave.vue")); + return __webpack_require__.e(/*! import() */ 32).then(__webpack_require__.bind(null, /*! ../components/system/configuration/ConfigurationSave.vue */ "./packages/framework/resources/components/system/configuration/ConfigurationSave.vue")); }); Vue.component('menu-save', function () { - return __webpack_require__.e(/*! import() */ 6).then(__webpack_require__.bind(null, /*! ../components/cms/menu/MenuSave.vue */ "./vendor/avored/framework/resources/components/cms/menu/MenuSave.vue")); + return __webpack_require__.e(/*! import() */ 7).then(__webpack_require__.bind(null, /*! ../components/cms/menu/MenuSave.vue */ "./packages/framework/resources/components/cms/menu/MenuSave.vue")); }); Vue.component('menu-table', function () { - return __webpack_require__.e(/*! import() */ 19).then(__webpack_require__.bind(null, /*! ../components/cms/menu/MenuTable.vue */ "./vendor/avored/framework/resources/components/cms/menu/MenuTable.vue")); + return __webpack_require__.e(/*! import() */ 21).then(__webpack_require__.bind(null, /*! ../components/cms/menu/MenuTable.vue */ "./packages/framework/resources/components/cms/menu/MenuTable.vue")); }); Vue.component('page-table', function () { - return __webpack_require__.e(/*! import() */ 20).then(__webpack_require__.bind(null, /*! ../components/cms/page/PageTable.vue */ "./vendor/avored/framework/resources/components/cms/page/PageTable.vue")); + return __webpack_require__.e(/*! import() */ 22).then(__webpack_require__.bind(null, /*! ../components/cms/page/PageTable.vue */ "./packages/framework/resources/components/cms/page/PageTable.vue")); }); -Vue.component('page-save', __webpack_require__(/*! ../components/cms/page/PageSave.vue */ "./vendor/avored/framework/resources/components/cms/page/PageSave.vue")["default"]); +Vue.component('page-save', __webpack_require__(/*! ../components/cms/page/PageSave.vue */ "./packages/framework/resources/components/cms/page/PageSave.vue")["default"]); Vue.component('order-status-table', function () { - return __webpack_require__.e(/*! import() */ 22).then(__webpack_require__.bind(null, /*! ../components/order/order-status/OrderStatusTable.vue */ "./vendor/avored/framework/resources/components/order/order-status/OrderStatusTable.vue")); + return __webpack_require__.e(/*! import() */ 24).then(__webpack_require__.bind(null, /*! ../components/order/order-status/OrderStatusTable.vue */ "./packages/framework/resources/components/order/order-status/OrderStatusTable.vue")); }); Vue.component('order-status-save', function () { - return __webpack_require__.e(/*! import() */ 21).then(__webpack_require__.bind(null, /*! ../components/order/order-status/OrderStatusSave.vue */ "./vendor/avored/framework/resources/components/order/order-status/OrderStatusSave.vue")); + return __webpack_require__.e(/*! import() */ 23).then(__webpack_require__.bind(null, /*! ../components/order/order-status/OrderStatusSave.vue */ "./packages/framework/resources/components/order/order-status/OrderStatusSave.vue")); }); Vue.component('role-index', function () { - return __webpack_require__.e(/*! import() */ 37).then(__webpack_require__.bind(null, /*! ../components/system/role/RoleTable.vue */ "./vendor/avored/framework/resources/components/system/role/RoleTable.vue")); + return __webpack_require__.e(/*! import() */ 38).then(__webpack_require__.bind(null, /*! ../components/system/role/RoleTable.vue */ "./packages/framework/resources/components/system/role/RoleTable.vue")); }); Vue.component('system-role-save', function () { - return __webpack_require__.e(/*! import() */ 36).then(__webpack_require__.bind(null, /*! ../components/system/role/RoleSave.vue */ "./vendor/avored/framework/resources/components/system/role/RoleSave.vue")); + return __webpack_require__.e(/*! import() */ 37).then(__webpack_require__.bind(null, /*! ../components/system/role/RoleSave.vue */ "./packages/framework/resources/components/system/role/RoleSave.vue")); }); Vue.component('admin-user-table', function () { - return __webpack_require__.e(/*! import() */ 30).then(__webpack_require__.bind(null, /*! ../components/system/admin-user/AdminUserTable.vue */ "./vendor/avored/framework/resources/components/system/admin-user/AdminUserTable.vue")); + return __webpack_require__.e(/*! import() */ 31).then(__webpack_require__.bind(null, /*! ../components/system/admin-user/AdminUserTable.vue */ "./packages/framework/resources/components/system/admin-user/AdminUserTable.vue")); }); -Vue.component('admin-user-save', __webpack_require__(/*! ../components/system/admin-user/AdminUserSave.vue */ "./vendor/avored/framework/resources/components/system/admin-user/AdminUserSave.vue")["default"]); +Vue.component('admin-user-save', __webpack_require__(/*! ../components/system/admin-user/AdminUserSave.vue */ "./packages/framework/resources/components/system/admin-user/AdminUserSave.vue")["default"]); Vue.component('promotion-code-table', function () { - return __webpack_require__.e(/*! import() */ 24).then(__webpack_require__.bind(null, /*! ../components/promotion/promotion-code/PromotionCodeTable.vue */ "./vendor/avored/framework/resources/components/promotion/promotion-code/PromotionCodeTable.vue")); + return __webpack_require__.e(/*! import() */ 26).then(__webpack_require__.bind(null, /*! ../components/promotion/promotion-code/PromotionCodeTable.vue */ "./packages/framework/resources/components/promotion/promotion-code/PromotionCodeTable.vue")); }); Vue.component('promotion-code-edit', function () { - return Promise.all(/*! import() */[__webpack_require__.e(0), __webpack_require__.e(9)]).then(__webpack_require__.bind(null, /*! ../components/promotion/promotion-code/PromotionCodeEdit.vue */ "./vendor/avored/framework/resources/components/promotion/promotion-code/PromotionCodeEdit.vue")); + return Promise.all(/*! import() */[__webpack_require__.e(0), __webpack_require__.e(11)]).then(__webpack_require__.bind(null, /*! ../components/promotion/promotion-code/PromotionCodeEdit.vue */ "./packages/framework/resources/components/promotion/promotion-code/PromotionCodeEdit.vue")); }); Vue.component('avored-layout', function () { - return __webpack_require__.e(/*! import() */ 26).then(__webpack_require__.bind(null, /*! ../components/system/Layout.vue */ "./vendor/avored/framework/resources/components/system/Layout.vue")); + return Promise.all(/*! import() */[__webpack_require__.e(4), __webpack_require__.e(28)]).then(__webpack_require__.bind(null, /*! ../components/system/Layout.vue */ "./packages/framework/resources/components/system/Layout.vue")); }); Vue.component('avored-flash', function () { - return __webpack_require__.e(/*! import() */ 25).then(__webpack_require__.bind(null, /*! ../components/system/Flash.vue */ "./vendor/avored/framework/resources/components/system/Flash.vue")); -}); -Vue.component('login-fields', function () { - return __webpack_require__.e(/*! import() */ 27).then(__webpack_require__.bind(null, /*! ../components/system/LoginFields.vue */ "./vendor/avored/framework/resources/components/system/LoginFields.vue")); + return __webpack_require__.e(/*! import() */ 27).then(__webpack_require__.bind(null, /*! ../components/system/Flash.vue */ "./packages/framework/resources/components/system/Flash.vue")); }); +Vue.component('login-fields', __webpack_require__(/*! ../components/system/LoginFields.vue */ "./packages/framework/resources/components/system/LoginFields.vue")["default"]); Vue.component('password-reset-page', function () { - return __webpack_require__.e(/*! import() */ 29).then(__webpack_require__.bind(null, /*! ../components/system/PasswordResetPage.vue */ "./vendor/avored/framework/resources/components/system/PasswordResetPage.vue")); + return __webpack_require__.e(/*! import() */ 30).then(__webpack_require__.bind(null, /*! ../components/system/PasswordResetPage.vue */ "./packages/framework/resources/components/system/PasswordResetPage.vue")); }); Vue.component('password-new-page', function () { - return __webpack_require__.e(/*! import() */ 28).then(__webpack_require__.bind(null, /*! ../components/system/PasswordNewPage.vue */ "./vendor/avored/framework/resources/components/system/PasswordNewPage.vue")); + return __webpack_require__.e(/*! import() */ 29).then(__webpack_require__.bind(null, /*! ../components/system/PasswordNewPage.vue */ "./packages/framework/resources/components/system/PasswordNewPage.vue")); }); -/** - * Next, we will create a fresh Vue application instance and attach it to - * the page. Then, you may begin adding components to this application - * or customize the JavaScript scaffolding to fit your unique needs. - */ - var app = new Vue({ - el: '#app' + el: '#app' //router, + //i18n, + //apolloProvider + }); var EventBus = new Vue(); /***/ }), -/***/ "./vendor/avored/framework/resources/js/avored.js": -/*!********************************************************!*\ - !*** ./vendor/avored/framework/resources/js/avored.js ***! - \********************************************************/ +/***/ "./packages/framework/resources/js/avored.js": +/*!***************************************************!*\ + !*** ./packages/framework/resources/js/avored.js ***! + \***************************************************/ /*! no static exports found */ /***/ (function(module, exports) { @@ -70584,10 +71547,10 @@ exports = module.exports = AvoRed; /***/ }), -/***/ "./vendor/avored/framework/resources/less/app.less": -/*!*********************************************************!*\ - !*** ./vendor/avored/framework/resources/less/app.less ***! - \*********************************************************/ +/***/ "./packages/framework/resources/less/app.less": +/*!****************************************************!*\ + !*** ./packages/framework/resources/less/app.less ***! + \****************************************************/ /*! no static exports found */ /***/ (function(module, exports) { @@ -70596,14 +71559,14 @@ exports = module.exports = AvoRed; /***/ }), /***/ 0: -/*!*************************************************************************************************************!*\ - !*** multi ./vendor/avored/framework/resources/js/app.js ./vendor/avored/framework/resources/less/app.less ***! - \*************************************************************************************************************/ +/*!***************************************************************************************************!*\ + !*** multi ./packages/framework/resources/js/app.js ./packages/framework/resources/less/app.less ***! + \***************************************************************************************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { -__webpack_require__(/*! /Users/purveshpatel/avored/ecommerce/vendor/avored/framework/resources/js/app.js */"./vendor/avored/framework/resources/js/app.js"); -module.exports = __webpack_require__(/*! /Users/purveshpatel/avored/ecommerce/vendor/avored/framework/resources/less/app.less */"./vendor/avored/framework/resources/less/app.less"); +__webpack_require__(/*! /Users/purvesh/code/ecommerce/packages/framework/resources/js/app.js */"./packages/framework/resources/js/app.js"); +module.exports = __webpack_require__(/*! /Users/purvesh/code/ecommerce/packages/framework/resources/less/app.less */"./packages/framework/resources/less/app.less"); /***/ }) diff --git a/public/avored-admin/js/chunk/1.js b/public/avored-admin/js/chunk/1.js index b8885ba1e..c9b1072f0 100644 --- a/public/avored-admin/js/chunk/1.js +++ b/public/avored-admin/js/chunk/1.js @@ -1,5 +1,98 @@ (window["webpackJsonp"] = window["webpackJsonp"] || []).push([[1],{ +/***/ "./node_modules/ant-design-vue/lib/progress/circle.js": +/*!************************************************************!*\ + !*** ./node_modules/ant-design-vue/lib/progress/circle.js ***! + \************************************************************/ +/*! no static exports found */ +/***/ (function(module, exports, __webpack_require__) { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", { + value: true +}); + +var _vcProgress = __webpack_require__(/*! ../vc-progress */ "./node_modules/ant-design-vue/lib/vc-progress/index.js"); + +var _utils = __webpack_require__(/*! ./utils */ "./node_modules/ant-design-vue/lib/progress/utils.js"); + +var statusColorMap = { + normal: '#108ee9', + exception: '#ff5500', + success: '#87d068' +}; + +function getPercentage(_ref) { + var percent = _ref.percent, + successPercent = _ref.successPercent; + + var ptg = (0, _utils.validProgress)(percent); + if (!successPercent) return ptg; + + var successPtg = (0, _utils.validProgress)(successPercent); + return [successPercent, (0, _utils.validProgress)(ptg - successPtg)]; +} + +function getStrokeColor(_ref2) { + var progressStatus = _ref2.progressStatus, + successPercent = _ref2.successPercent, + strokeColor = _ref2.strokeColor; + + var color = strokeColor || statusColorMap[progressStatus]; + if (!successPercent) return color; + return [statusColorMap.success, color]; +} + +var Circle = { + functional: true, + render: function render(h, context) { + var props = context.props, + children = context.children; + var prefixCls = props.prefixCls, + width = props.width, + strokeWidth = props.strokeWidth, + trailColor = props.trailColor, + strokeLinecap = props.strokeLinecap, + gapPosition = props.gapPosition, + gapDegree = props.gapDegree, + type = props.type; + + var circleSize = width || 120; + var circleStyle = { + width: typeof circleSize === 'number' ? circleSize + 'px' : circleSize, + height: typeof circleSize === 'number' ? circleSize + 'px' : circleSize, + fontSize: circleSize * 0.15 + 6 + }; + var circleWidth = strokeWidth || 6; + var gapPos = gapPosition || type === 'dashboard' && 'bottom' || 'top'; + var gapDeg = gapDegree || type === 'dashboard' && 75; + + return h( + 'div', + { 'class': prefixCls + '-inner', style: circleStyle }, + [h(_vcProgress.Circle, { + attrs: { + percent: getPercentage(props), + strokeWidth: circleWidth, + trailWidth: circleWidth, + strokeColor: getStrokeColor(props), + strokeLinecap: strokeLinecap, + trailColor: trailColor, + prefixCls: prefixCls, + gapDegree: gapDeg, + gapPosition: gapPos + } + }), children] + ); + } +}; + +exports['default'] = Circle; + +/***/ }), + /***/ "./node_modules/ant-design-vue/lib/progress/index.js": /*!***********************************************************!*\ !*** ./node_modules/ant-design-vue/lib/progress/index.js ***! @@ -26,10 +119,15 @@ Object.defineProperty(exports, 'ProgressProps', { var _progress2 = _interopRequireDefault(_progress); +var _base = __webpack_require__(/*! ../base */ "./node_modules/ant-design-vue/lib/base/index.js"); + +var _base2 = _interopRequireDefault(_base); + function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } /* istanbul ignore next */ _progress2['default'].install = function (Vue) { + Vue.use(_base2['default']); Vue.component(_progress2['default'].name, _progress2['default']); }; @@ -37,6 +135,63 @@ exports['default'] = _progress2['default']; /***/ }), +/***/ "./node_modules/ant-design-vue/lib/progress/line.js": +/*!**********************************************************!*\ + !*** ./node_modules/ant-design-vue/lib/progress/line.js ***! + \**********************************************************/ +/*! no static exports found */ +/***/ (function(module, exports, __webpack_require__) { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", { + value: true +}); + +var _utils = __webpack_require__(/*! ./utils */ "./node_modules/ant-design-vue/lib/progress/utils.js"); + +var Line = { + functional: true, + render: function render(h, context) { + var props = context.props, + children = context.children; + var prefixCls = props.prefixCls, + percent = props.percent, + successPercent = props.successPercent, + strokeWidth = props.strokeWidth, + size = props.size, + strokeColor = props.strokeColor, + strokeLinecap = props.strokeLinecap; + + var percentStyle = { + width: (0, _utils.validProgress)(percent) + '%', + height: (strokeWidth || (size === 'small' ? 6 : 8)) + 'px', + background: strokeColor, + borderRadius: strokeLinecap === 'square' ? 0 : '100px' + }; + var successPercentStyle = { + width: (0, _utils.validProgress)(successPercent) + '%', + height: (strokeWidth || (size === 'small' ? 6 : 8)) + 'px', + borderRadius: strokeLinecap === 'square' ? 0 : '100px' + }; + var successSegment = successPercent !== undefined ? h('div', { 'class': prefixCls + '-success-bg', style: successPercentStyle }) : null; + return h('div', [h( + 'div', + { 'class': prefixCls + '-outer' }, + [h( + 'div', + { 'class': prefixCls + '-inner' }, + [h('div', { 'class': prefixCls + '-bg', style: percentStyle }), successSegment] + )] + ), children]); + } +}; + +exports['default'] = Line; + +/***/ }), + /***/ "./node_modules/ant-design-vue/lib/progress/progress.js": /*!**************************************************************!*\ !*** ./node_modules/ant-design-vue/lib/progress/progress.js ***! @@ -52,14 +207,14 @@ Object.defineProperty(exports, "__esModule", { }); exports.ProgressProps = exports.ProgressSize = exports.ProgressType = undefined; -var _extends2 = __webpack_require__(/*! babel-runtime/helpers/extends */ "./node_modules/babel-runtime/helpers/extends.js"); - -var _extends3 = _interopRequireDefault(_extends2); - var _defineProperty2 = __webpack_require__(/*! babel-runtime/helpers/defineProperty */ "./node_modules/babel-runtime/helpers/defineProperty.js"); var _defineProperty3 = _interopRequireDefault(_defineProperty2); +var _extends2 = __webpack_require__(/*! babel-runtime/helpers/extends */ "./node_modules/babel-runtime/helpers/extends.js"); + +var _extends3 = _interopRequireDefault(_extends2); + var _objectWithoutProperties2 = __webpack_require__(/*! babel-runtime/helpers/objectWithoutProperties */ "./node_modules/babel-runtime/helpers/objectWithoutProperties.js"); var _objectWithoutProperties3 = _interopRequireDefault(_objectWithoutProperties2); @@ -74,11 +229,21 @@ var _vueTypes2 = _interopRequireDefault(_vueTypes); var _propsUtil = __webpack_require__(/*! ../_util/props-util */ "./node_modules/ant-design-vue/lib/_util/props-util.js"); +var _configProvider = __webpack_require__(/*! ../config-provider */ "./node_modules/ant-design-vue/lib/config-provider/index.js"); + var _icon = __webpack_require__(/*! ../icon */ "./node_modules/ant-design-vue/lib/icon/index.js"); var _icon2 = _interopRequireDefault(_icon); -var _vcProgress = __webpack_require__(/*! ../vc-progress */ "./node_modules/ant-design-vue/lib/vc-progress/index.js"); +var _line = __webpack_require__(/*! ./line */ "./node_modules/ant-design-vue/lib/progress/line.js"); + +var _line2 = _interopRequireDefault(_line); + +var _circle = __webpack_require__(/*! ./circle */ "./node_modules/ant-design-vue/lib/progress/circle.js"); + +var _circle2 = _interopRequireDefault(_circle); + +var _utils = __webpack_require__(/*! ./utils */ "./node_modules/ant-design-vue/lib/progress/utils.js"); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } @@ -86,11 +251,6 @@ function addUnit(num, unit) { var unitType = unit || 'px'; return num ? num + unitType : null; } -var statusColorMap = { - normal: '#108ee9', - exception: '#ff5500', - success: '#87d068' -}; var ProgressType = exports.ProgressType = _vueTypes2['default'].oneOf(['line', 'circle', 'dashboard']); var ProgressSize = exports.ProgressSize = _vueTypes2['default'].oneOf(['default', 'small']); @@ -113,15 +273,6 @@ var ProgressProps = exports.ProgressProps = { size: ProgressSize }; -var validProgress = function validProgress(progress) { - if (!progress || progress < 0) { - return 0; - } else if (progress > 100) { - return 100; - } - return progress; -}; - exports['default'] = { name: 'AProgress', props: (0, _propsUtil.initDefaultProps)(ProgressProps, { @@ -129,17 +280,58 @@ exports['default'] = { percent: 0, showInfo: true, trailColor: '#f3f3f3', - prefixCls: 'ant-progress', - size: 'default' + size: 'default', + gapDegree: 0, + strokeLinecap: 'round' }), + inject: { + configProvider: { 'default': function _default() { + return _configProvider.ConfigConsumerProps; + } } + }, + methods: { + renderProcessInfo: function renderProcessInfo(prefixCls, progressStatus) { + var h = this.$createElement; + var _$props = this.$props, + showInfo = _$props.showInfo, + format = _$props.format, + type = _$props.type, + percent = _$props.percent, + successPercent = _$props.successPercent; + + if (!showInfo) return null; + var text = void 0; + var textFormatter = format || this.$scopedSlots.format || function (percentNumber) { + return percentNumber + '%'; + }; + var iconType = type === 'circle' || type === 'dashboard' ? '' : '-circle'; + if (format || this.$scopedSlots.format || progressStatus !== 'exception' && progressStatus !== 'success') { + text = textFormatter((0, _utils.validProgress)(percent), (0, _utils.validProgress)(successPercent)); + } else if (progressStatus === 'exception') { + text = h(_icon2['default'], { + attrs: { type: 'close' + iconType, theme: type === 'line' ? 'filled' : 'outlined' } + }); + } else if (progressStatus === 'success') { + text = h(_icon2['default'], { + attrs: { type: 'check' + iconType, theme: type === 'line' ? 'filled' : 'outlined' } + }); + } + return h( + 'span', + { 'class': prefixCls + '-text', attrs: { title: typeof text === 'string' ? text : undefined } + }, + [text] + ); + } + }, render: function render() { var _classNames; var h = arguments[0]; var props = (0, _propsUtil.getOptionProps)(this); - var prefixCls = props.prefixCls, + var customizePrefixCls = props.prefixCls, _props$percent = props.percent, percent = _props$percent === undefined ? 0 : _props$percent, status = props.status, @@ -159,83 +351,36 @@ exports['default'] = { strokeLinecap = _props$strokeLinecap === undefined ? 'round' : _props$strokeLinecap, restProps = (0, _objectWithoutProperties3['default'])(props, ['prefixCls', 'percent', 'status', 'format', 'trailColor', 'size', 'successPercent', 'type', 'strokeWidth', 'width', 'showInfo', 'gapDegree', 'gapPosition', 'strokeColor', 'strokeLinecap']); - var progressStatus = parseInt(successPercent ? successPercent.toString() : percent.toString(), 10) >= 100 && !('status' in props) ? 'success' : status || 'normal'; - var progressInfo = void 0; - var progress = void 0; - var textFormatter = format || function (percentNumber) { - return percentNumber + '%'; - }; + var getPrefixCls = this.configProvider.getPrefixCls; + var prefixCls = getPrefixCls('progress', customizePrefixCls); - if (showInfo) { - var text = void 0; - var iconType = type === 'circle' || type === 'dashboard' ? '' : '-circle'; - if (format || progressStatus !== 'exception' && progressStatus !== 'success') { - text = textFormatter(validProgress(percent), validProgress(successPercent)); - } else if (progressStatus === 'exception') { - text = h(_icon2['default'], { - attrs: { type: 'close' + iconType, theme: type === 'line' ? 'filled' : 'outlined' } - }); - } else if (progressStatus === 'success') { - text = h(_icon2['default'], { - attrs: { type: 'check' + iconType, theme: type === 'line' ? 'filled' : 'outlined' } - }); - } - progressInfo = h( - 'span', - { 'class': prefixCls + '-text', attrs: { title: typeof text === 'string' ? text : undefined } - }, - [text] - ); - } + var progressStatus = parseInt(successPercent !== undefined ? successPercent.toString() : percent.toString(), 10) >= 100 && !('status' in props) ? 'success' : status || 'normal'; + var progress = void 0; + var progressInfo = this.renderProcessInfo(prefixCls, progressStatus); + // Render progress shape if (type === 'line') { - var percentStyle = { - width: validProgress(percent) + '%', - height: (strokeWidth || (size === 'small' ? 6 : 8)) + 'px', - background: strokeColor, - borderRadius: strokeLinecap === 'square' ? 0 : '100px' - }; - var successPercentStyle = { - width: validProgress(successPercent) + '%', - height: (strokeWidth || (size === 'small' ? 6 : 8)) + 'px', - borderRadius: strokeLinecap === 'square' ? 0 : '100px' + var lineProps = { + props: (0, _extends3['default'])({}, props, { + prefixCls: prefixCls + }) }; - var successSegment = successPercent !== undefined ? h('div', { 'class': prefixCls + '-success-bg', style: successPercentStyle }) : null; - progress = h('div', [h( - 'div', - { 'class': prefixCls + '-outer' }, - [h( - 'div', - { 'class': prefixCls + '-inner' }, - [h('div', { 'class': prefixCls + '-bg', style: percentStyle }), successSegment] - )] - ), progressInfo]); + progress = h( + _line2['default'], + lineProps, + [progressInfo] + ); } else if (type === 'circle' || type === 'dashboard') { - var circleSize = width || 120; - var circleStyle = { - width: addUnit(circleSize), - height: addUnit(circleSize), - fontSize: addUnit(circleSize * 0.15 + 6) + var circleProps = { + props: (0, _extends3['default'])({}, props, { + prefixCls: prefixCls, + progressStatus: progressStatus + }) }; - var circleWidth = strokeWidth || 6; - var gapPos = gapPosition || type === 'dashboard' && 'bottom' || 'top'; - var gapDeg = gapDegree || type === 'dashboard' && 75; progress = h( - 'div', - { 'class': prefixCls + '-inner', style: circleStyle }, - [h(_vcProgress.Circle, { - attrs: { - percent: validProgress(percent), - strokeWidth: circleWidth, - trailWidth: circleWidth, - strokeColor: strokeColor || statusColorMap[progressStatus], - strokeLinecap: strokeLinecap, - trailColor: trailColor, - prefixCls: prefixCls, - gapDegree: gapDeg || 0, - gapPosition: gapPos - } - }), progressInfo] + _circle2['default'], + circleProps, + [progressInfo] ); } @@ -256,6 +401,31 @@ exports['default'] = { /***/ }), +/***/ "./node_modules/ant-design-vue/lib/progress/utils.js": +/*!***********************************************************!*\ + !*** ./node_modules/ant-design-vue/lib/progress/utils.js ***! + \***********************************************************/ +/*! no static exports found */ +/***/ (function(module, exports, __webpack_require__) { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.validProgress = validProgress; +function validProgress(progress) { + if (!progress || progress < 0) { + return 0; + } else if (progress > 100) { + return 100; + } + return progress; +} + +/***/ }), + /***/ "./node_modules/ant-design-vue/lib/upload/Dragger.js": /*!***********************************************************!*\ !*** ./node_modules/ant-design-vue/lib/upload/Dragger.js ***! @@ -339,6 +509,10 @@ var _uniqBy = __webpack_require__(/*! lodash/uniqBy */ "./node_modules/lodash/un var _uniqBy2 = _interopRequireDefault(_uniqBy); +var _findIndex = __webpack_require__(/*! lodash/findIndex */ "./node_modules/lodash/findIndex.js"); + +var _findIndex2 = _interopRequireDefault(_findIndex); + var _vcUpload = __webpack_require__(/*! ../vc-upload */ "./node_modules/ant-design-vue/lib/vc-upload/index.js"); var _vcUpload2 = _interopRequireDefault(_vcUpload); @@ -353,9 +527,11 @@ var _LocaleReceiver = __webpack_require__(/*! ../locale-provider/LocaleReceiver var _LocaleReceiver2 = _interopRequireDefault(_LocaleReceiver); -var _default = __webpack_require__(/*! ../locale-provider/default */ "./node_modules/ant-design-vue/lib/locale-provider/default.js"); +var _default2 = __webpack_require__(/*! ../locale-provider/default */ "./node_modules/ant-design-vue/lib/locale-provider/default.js"); + +var _default3 = _interopRequireDefault(_default2); -var _default2 = _interopRequireDefault(_default); +var _configProvider = __webpack_require__(/*! ../config-provider */ "./node_modules/ant-design-vue/lib/config-provider/index.js"); var _Dragger = __webpack_require__(/*! ./Dragger */ "./node_modules/ant-design-vue/lib/upload/Dragger.js"); @@ -378,7 +554,6 @@ exports['default'] = { inheritAttrs: false, Dragger: _Dragger2['default'], props: (0, _propsUtil.initDefaultProps)(_interface.UploadProps, { - prefixCls: 'ant-upload', type: 'select', multiple: false, action: '', @@ -390,6 +565,11 @@ exports['default'] = { disabled: false, supportServerRender: true }), + inject: { + configProvider: { 'default': function _default() { + return _configProvider.ConfigConsumerProps; + } } + }, // recentUploadStatus: boolean | PromiseLike; data: function data() { this.progressTimer = null; @@ -413,7 +593,7 @@ exports['default'] = { var targetItem = (0, _utils.fileToObject)(file); targetItem.status = 'uploading'; var nextFileList = this.sFileList.concat(); - var fileIndex = nextFileList.findIndex(function (_ref) { + var fileIndex = (0, _findIndex2['default'])(nextFileList, function (_ref) { var uid = _ref.uid; return uid === targetItem.uid; }); @@ -496,15 +676,21 @@ exports['default'] = { fileList: fileList }); }, + onReject: function onReject(fileList) { + this.$emit('reject', fileList); + }, handleRemove: function handleRemove(file) { var _this2 = this; - var _getOptionProps = (0, _propsUtil.getOptionProps)(this), - remove = _getOptionProps.remove; + var remove = this.remove; + var status = file.status; + + file.status = 'removed'; // eslint-disable-line Promise.resolve(typeof remove === 'function' ? remove(file) : remove).then(function (ret) { // Prevent removing file if (ret === false) { + file.status = status; return; } @@ -518,8 +704,9 @@ exports['default'] = { }); }, handleManualRemove: function handleManualRemove(file) { - this.$refs.uploadRef.abort(file); - file.status = 'removed'; // eslint-disable-line + if (this.$refs.uploadRef) { + this.$refs.uploadRef.abort(file); + } this.handleRemove(file); }, onChange: function onChange(info) { @@ -546,7 +733,8 @@ exports['default'] = { }) }); return false; - } else if (result && result.then) { + } + if (result && result.then) { return result; } return true; @@ -557,10 +745,10 @@ exports['default'] = { renderUploadList: function renderUploadList(locale) { var h = this.$createElement; - var _getOptionProps2 = (0, _propsUtil.getOptionProps)(this), - _getOptionProps2$show = _getOptionProps2.showUploadList, - showUploadList = _getOptionProps2$show === undefined ? {} : _getOptionProps2$show, - listType = _getOptionProps2.listType; + var _getOptionProps = (0, _propsUtil.getOptionProps)(this), + _getOptionProps$showU = _getOptionProps.showUploadList, + showUploadList = _getOptionProps$showU === undefined ? {} : _getOptionProps$showU, + listType = _getOptionProps.listType; var showRemoveIcon = showUploadList.showRemoveIcon, showPreviewIcon = showUploadList.showPreviewIcon; @@ -588,16 +776,19 @@ exports['default'] = { var h = arguments[0]; - var _getOptionProps3 = (0, _propsUtil.getOptionProps)(this), - _getOptionProps3$pref = _getOptionProps3.prefixCls, - prefixCls = _getOptionProps3$pref === undefined ? '' : _getOptionProps3$pref, - showUploadList = _getOptionProps3.showUploadList, - listType = _getOptionProps3.listType, - type = _getOptionProps3.type, - disabled = _getOptionProps3.disabled; + var _getOptionProps2 = (0, _propsUtil.getOptionProps)(this), + customizePrefixCls = _getOptionProps2.prefixCls, + showUploadList = _getOptionProps2.showUploadList, + listType = _getOptionProps2.listType, + type = _getOptionProps2.type, + disabled = _getOptionProps2.disabled; + + var getPrefixCls = this.configProvider.getPrefixCls; + var prefixCls = getPrefixCls('upload', customizePrefixCls); var vcUploadProps = { props: (0, _extends3['default'])({}, this.$props, { + prefixCls: prefixCls, beforeUpload: this.reBeforeUpload }), on: { @@ -605,17 +796,17 @@ exports['default'] = { start: this.onStart, error: this.onError, progress: this.onProgress, - success: this.onSuccess + success: this.onSuccess, + reject: this.onReject }, ref: 'uploadRef', - 'class': prefixCls + '-btn', attrs: this.$attrs }; var uploadList = showUploadList ? h(_LocaleReceiver2['default'], { attrs: { componentName: 'Upload', - defaultLocale: _default2['default'].Upload + defaultLocale: _default3['default'].Upload }, scopedSlots: { 'default': this.renderUploadList } }) : null; @@ -651,9 +842,16 @@ exports['default'] = { } var uploadButtonCls = (0, _classnames2['default'])(prefixCls, (_classNames2 = {}, (0, _defineProperty3['default'])(_classNames2, prefixCls + '-select', true), (0, _defineProperty3['default'])(_classNames2, prefixCls + '-select-' + listType, true), (0, _defineProperty3['default'])(_classNames2, prefixCls + '-disabled', disabled), _classNames2)); + + // Remove id to avoid open by label when trigger is hidden + // https://github.com/ant-design/ant-design/issues/14298 + if (!children) { + delete vcUploadProps.props.id; + } + var uploadButton = h( 'div', - { 'class': uploadButtonCls, style: { display: children ? '' : 'none' } }, + { 'class': uploadButtonCls, style: children ? undefined : { display: 'none' } }, [h( _vcUpload2['default'], vcUploadProps, @@ -706,6 +904,8 @@ var _getTransitionProps = __webpack_require__(/*! ../_util/getTransitionProps */ var _getTransitionProps2 = _interopRequireDefault(_getTransitionProps); +var _configProvider = __webpack_require__(/*! ../config-provider */ "./node_modules/ant-design-vue/lib/config-provider/index.js"); + var _icon = __webpack_require__(/*! ../icon */ "./node_modules/ant-design-vue/lib/icon/index.js"); var _icon2 = _interopRequireDefault(_icon); @@ -726,7 +926,7 @@ var _interface = __webpack_require__(/*! ./interface */ "./node_modules/ant-desi function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } -var imageTypes = ['image', 'webp', 'png', 'svg', 'gif', 'jpg', 'jpeg', 'bmp', 'ico']; +var imageTypes = ['image', 'webp', 'png', 'svg', 'gif', 'jpg', 'jpeg', 'bmp', 'dpg', 'ico']; // https://developer.mozilla.org/en-US/docs/Web/API/FileReader/readAsDataURL var previewFile = function previewFile(file, callback) { if (file.type && !imageTypes.includes(file.type)) { @@ -755,7 +955,7 @@ var isImageUrl = function isImageUrl(file) { } var url = file.thumbUrl || file.url; var extension = extname(url); - if (/^data:image\//.test(url) || /(webp|svg|png|gif|jpg|jpeg|bmp|ico)$/i.test(extension)) { + if (/^data:image\//.test(url) || /(webp|svg|png|gif|jpg|jpeg|bmp|dpg|ico)$/i.test(extension)) { return true; } else if (/^data:/.test(url)) { // other file types of base64 @@ -776,10 +976,14 @@ exports['default'] = { strokeWidth: 2, showInfo: false }, - prefixCls: 'ant-upload', showRemoveIcon: true, showPreviewIcon: true }), + inject: { + configProvider: { 'default': function _default() { + return _configProvider.ConfigConsumerProps; + } } + }, updated: function updated() { var _this = this; @@ -825,7 +1029,7 @@ exports['default'] = { var h = arguments[0]; var _getOptionProps = (0, _propsUtil.getOptionProps)(this), - prefixCls = _getOptionProps.prefixCls, + customizePrefixCls = _getOptionProps.prefixCls, _getOptionProps$items = _getOptionProps.items, items = _getOptionProps$items === undefined ? [] : _getOptionProps$items, listType = _getOptionProps.listType, @@ -833,6 +1037,9 @@ exports['default'] = { showRemoveIcon = _getOptionProps.showRemoveIcon, locale = _getOptionProps.locale; + var getPrefixCls = this.configProvider.getPrefixCls; + var prefixCls = getPrefixCls('upload', customizePrefixCls); + var list = items.map(function (file) { var _classNames; @@ -1061,12 +1268,17 @@ var _Dragger = __webpack_require__(/*! ./Dragger */ "./node_modules/ant-design-v var _Dragger2 = _interopRequireDefault(_Dragger); +var _base = __webpack_require__(/*! ../base */ "./node_modules/ant-design-vue/lib/base/index.js"); + +var _base2 = _interopRequireDefault(_base); + function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } _Upload2['default'].Dragger = _Dragger2['default']; /* istanbul ignore next */ _Upload2['default'].install = function (Vue) { + Vue.use(_base2['default']); Vue.component(_Upload2['default'].name, _Upload2['default']); Vue.component(_Dragger2['default'].name, _Dragger2['default']); }; @@ -1181,7 +1393,8 @@ var UploadProps = exports.UploadProps = { withCredentials: _vueTypes2['default'].bool, openFileDialogOnClick: _vueTypes2['default'].bool, locale: UploadLocale, - height: _vueTypes2['default'].number + height: _vueTypes2['default'].number, + id: _vueTypes2['default'].string }; var UploadState = exports.UploadState = { @@ -1315,7 +1528,7 @@ var _src2 = _interopRequireDefault(_src); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } exports.Line = _src.Line; -exports.Circle = _src.Circle; // based on rc-progress 2.2.7 +exports.Circle = _src.Circle; // based on rc-progress 2.3.0 exports['default'] = _src2['default']; @@ -1347,6 +1560,14 @@ var _extends2 = __webpack_require__(/*! babel-runtime/helpers/extends */ "./node var _extends3 = _interopRequireDefault(_extends2); +var _vue = __webpack_require__(/*! vue */ "./node_modules/vue/dist/vue.common.js"); + +var _vue2 = _interopRequireDefault(_vue); + +var _vueRef = __webpack_require__(/*! vue-ref */ "./node_modules/vue-ref/index.js"); + +var _vueRef2 = _interopRequireDefault(_vueRef); + var _vueTypes = __webpack_require__(/*! ../../_util/vue-types */ "./node_modules/ant-design-vue/lib/_util/vue-types/index.js"); var _vueTypes2 = _interopRequireDefault(_vueTypes); @@ -1363,24 +1584,25 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'd var circlePropTypes = (0, _extends3['default'])({}, _types.propTypes, { gapPosition: _vueTypes2['default'].oneOf(['top', 'bottom', 'left', 'right']), - gapDegree: _vueTypes2['default'].number + gapDegree: _vueTypes2['default'].oneOfType([_vueTypes2['default'].number, _vueTypes2['default'].string, _vueTypes2['default'].bool]) }); var circleDefaultProps = (0, _extends3['default'])({}, _types.defaultProps, { gapPosition: 'top' }); +_vue2['default'].use(_vueRef2['default'], { name: 'ant-ref' }); + var Circle = { props: (0, _propsUtil.initDefaultProps)(circlePropTypes, circleDefaultProps), + created: function created() { + this.paths = {}; + }, + methods: { - getPathStyles: function getPathStyles() { - var _$props = this.$props, - percent = _$props.percent, - strokeWidth = _$props.strokeWidth, - strokeColor = _$props.strokeColor, - _$props$gapDegree = _$props.gapDegree, - gapDegree = _$props$gapDegree === undefined ? 0 : _$props$gapDegree, - gapPosition = _$props.gapPosition; + getPathStyles: function getPathStyles(offset, percent, strokeColor, strokeWidth) { + var gapDegree = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : 0; + var gapPosition = arguments[5]; var radius = 50 - strokeWidth / 2; var beginPositionX = 0; @@ -1408,39 +1630,82 @@ var Circle = { } var pathString = 'M 50,50 m ' + beginPositionX + ',' + beginPositionY + '\n a ' + radius + ',' + radius + ' 0 1 1 ' + endPositionX + ',' + -endPositionY + '\n a ' + radius + ',' + radius + ' 0 1 1 ' + -endPositionX + ',' + endPositionY; var len = Math.PI * 2 * radius; - var trailPathStyle = { - strokeDasharray: len - gapDegree + 'px ' + len + 'px', - strokeDashoffset: '-' + gapDegree / 2 + 'px', - transition: 'stroke-dashoffset .3s ease 0s, stroke-dasharray .3s ease 0s, stroke .3s' - }; - var strokePathStyle = { + var pathStyle = { stroke: strokeColor, strokeDasharray: percent / 100 * (len - gapDegree) + 'px ' + len + 'px', - strokeDashoffset: '-' + gapDegree / 2 + 'px', + strokeDashoffset: '-' + (gapDegree / 2 + offset / 100 * (len - gapDegree)) + 'px', transition: 'stroke-dashoffset .3s ease 0s, stroke-dasharray .3s ease 0s, stroke .3s, stroke-width .06s ease .3s' // eslint-disable-line }; - return { pathString: pathString, trailPathStyle: trailPathStyle, strokePathStyle: strokePathStyle }; + return { + pathString: pathString, + pathStyle: pathStyle + }; + }, + getStokeList: function getStokeList() { + var _this = this; + + var h = this.$createElement; + var _$props = this.$props, + prefixCls = _$props.prefixCls, + percent = _$props.percent, + strokeColor = _$props.strokeColor, + strokeWidth = _$props.strokeWidth, + strokeLinecap = _$props.strokeLinecap, + gapDegree = _$props.gapDegree, + gapPosition = _$props.gapPosition; + + var percentList = Array.isArray(percent) ? percent : [percent]; + var strokeColorList = Array.isArray(strokeColor) ? strokeColor : [strokeColor]; + + var stackPtg = 0; + return percentList.map(function (ptg, index) { + var color = strokeColorList[index] || strokeColorList[strokeColorList.length - 1]; + + var _getPathStyles = _this.getPathStyles(stackPtg, ptg, color, strokeWidth, gapDegree, gapPosition), + pathString = _getPathStyles.pathString, + pathStyle = _getPathStyles.pathStyle; + + stackPtg += ptg; + + var pathProps = { + key: index, + attrs: { + d: pathString, + 'stroke-linecap': strokeLinecap, + 'stroke-width': ptg === 0 ? 0 : strokeWidth, + 'fill-opacity': '0' + }, + 'class': prefixCls + '-circle-path', + style: pathStyle, + directives: [{ + name: 'ant-ref', + value: function value(c) { + _this.paths[index] = c; + } + }] + }; + return h('path', pathProps); + }); } }, + render: function render() { var h = arguments[0]; var _$props2 = this.$props, prefixCls = _$props2.prefixCls, strokeWidth = _$props2.strokeWidth, trailWidth = _$props2.trailWidth, + gapDegree = _$props2.gapDegree, + gapPosition = _$props2.gapPosition, trailColor = _$props2.trailColor, strokeLinecap = _$props2.strokeLinecap, - percent = _$props2.percent, - restProps = (0, _objectWithoutProperties3['default'])(_$props2, ['prefixCls', 'strokeWidth', 'trailWidth', 'trailColor', 'strokeLinecap', 'percent']); + restProps = (0, _objectWithoutProperties3['default'])(_$props2, ['prefixCls', 'strokeWidth', 'trailWidth', 'gapDegree', 'gapPosition', 'trailColor', 'strokeLinecap']); - var _getPathStyles = this.getPathStyles(), - pathString = _getPathStyles.pathString, - trailPathStyle = _getPathStyles.trailPathStyle, - strokePathStyle = _getPathStyles.strokePathStyle; + var _getPathStyles2 = this.getPathStyles(0, 100, trailColor, strokeWidth, gapDegree, gapPosition), + pathString = _getPathStyles2.pathString, + pathStyle = _getPathStyles2.pathStyle; delete restProps.percent; - delete restProps.gapDegree; - delete restProps.gapPosition; delete restProps.strokeColor; var pathFirst = { attrs: { @@ -1451,24 +1716,14 @@ var Circle = { 'fill-opacity': '0' }, 'class': prefixCls + '-circle-trail', - style: trailPathStyle - }; - var pathSecond = { - attrs: { - d: pathString, - 'stroke-linecap': strokeLinecap, - 'stroke-width': percent === 0 ? 0 : strokeWidth, - 'fill-opacity': '0' - }, - 'class': prefixCls + '-circle-path', - style: strokePathStyle, - ref: 'svgPathRef' + style: pathStyle }; + return h( 'svg', (0, _babelHelperVueJsxMergeProps2['default'])([{ 'class': prefixCls + '-circle', attrs: { viewBox: '0 0 100 100' } }, restProps]), - [h('path', pathFirst), h('path', pathSecond)] + [h('path', pathFirst), this.getStokeList()] ); } }; @@ -1499,6 +1754,14 @@ var _objectWithoutProperties2 = __webpack_require__(/*! babel-runtime/helpers/ob var _objectWithoutProperties3 = _interopRequireDefault(_objectWithoutProperties2); +var _vue = __webpack_require__(/*! vue */ "./node_modules/vue/dist/vue.common.js"); + +var _vue2 = _interopRequireDefault(_vue); + +var _vueRef = __webpack_require__(/*! vue-ref */ "./node_modules/vue-ref/index.js"); + +var _vueRef2 = _interopRequireDefault(_vueRef); + var _propsUtil = __webpack_require__(/*! ../../_util/props-util */ "./node_modules/ant-design-vue/lib/_util/props-util.js"); var _enhancer = __webpack_require__(/*! ./enhancer */ "./node_modules/ant-design-vue/lib/vc-progress/src/enhancer.js"); @@ -1509,9 +1772,16 @@ var _types = __webpack_require__(/*! ./types */ "./node_modules/ant-design-vue/l function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } +_vue2['default'].use(_vueRef2['default'], { name: 'ant-ref' }); + var Line = { props: (0, _propsUtil.initDefaultProps)(_types.propTypes, _types.defaultProps), + created: function created() { + this.paths = {}; + }, render: function render() { + var _this = this; + var h = arguments[0]; var _$props = this.$props, percent = _$props.percent, @@ -1526,17 +1796,16 @@ var Line = { delete restProps.gapPosition; - var pathStyle = { - strokeDasharray: '100px, 100px', - strokeDashoffset: 100 - percent + 'px', - transition: 'stroke-dashoffset 0.3s ease 0s, stroke 0.3s linear' - }; + var percentList = Array.isArray(percent) ? percent : [percent]; + var strokeColorList = Array.isArray(strokeColor) ? strokeColor : [strokeColor]; var center = strokeWidth / 2; var right = 100 - strokeWidth / 2; var pathString = 'M ' + (strokeLinecap === 'round' ? center : 0) + ',' + center + '\n L ' + (strokeLinecap === 'round' ? right : 100) + ',' + center; var viewBoxString = '0 0 100 ' + strokeWidth; + var stackPtg = 0; + var pathFirst = { attrs: { d: pathString, @@ -1547,18 +1816,6 @@ var Line = { }, 'class': prefixCls + '-line-trail' }; - var pathSecond = { - attrs: { - d: pathString, - 'stroke-linecap': strokeLinecap, - stroke: strokeColor, - 'stroke-width': strokeWidth, - 'fill-opacity': '0' - }, - 'class': prefixCls + '-line-path', - style: pathStyle, - ref: 'svgPathRef' - }; return h( 'svg', (0, _babelHelperVueJsxMergeProps2['default'])([{ @@ -1567,7 +1824,37 @@ var Line = { preserveAspectRatio: 'none' } }, restProps]), - [h('path', pathFirst), h('path', pathSecond)] + [h('path', pathFirst), percentList.map(function (ptg, index) { + var pathStyle = { + strokeDasharray: ptg + 'px, 100px', + strokeDashoffset: '-' + stackPtg + 'px', + transition: 'stroke-dashoffset 0.3s ease 0s, stroke-dasharray .3s ease 0s, stroke 0.3s linear' + }; + var color = strokeColorList[index] || strokeColorList[strokeColorList.length - 1]; + + stackPtg += ptg; + + var pathProps = { + key: index, + attrs: { + d: pathString, + 'stroke-linecap': strokeLinecap, + stroke: color, + 'stroke-width': strokeWidth, + 'fill-opacity': '0' + }, + 'class': prefixCls + '-line-path', + style: pathStyle, + directives: [{ + name: 'ant-ref', + value: function value(c) { + _this.paths[index] = c; + } + }] + }; + + return h('path', pathProps); + })] ); } }; @@ -1595,18 +1882,27 @@ function enhancer(Component) { updated: function updated() { var _this = this; - this.$nextTick(function () { - if (!_this.$refs.svgPathRef) { + var now = Date.now(); + var updated = false; + + Object.keys(this.paths).forEach(function (key) { + var path = _this.paths[key]; + + if (!path) { return; } - var pathStyle = _this.$refs.svgPathRef.style; + + updated = true; + var pathStyle = path.style; pathStyle.transitionDuration = '.3s, .3s, .3s, .06s'; - var now = Date.now(); + if (_this.prevTimeStamp && now - _this.prevTimeStamp < 100) { pathStyle.transitionDuration = '0s, 0s'; } - _this.prevTimeStamp = Date.now(); }); + if (updated) { + this.prevTimeStamp = Date.now(); + } } }; } @@ -1681,17 +1977,18 @@ var defaultProps = exports.defaultProps = { trailColor: '#D9D9D9', trailWidth: 1 }; +var mixedType = _vueTypes2['default'].oneOfType([_vueTypes2['default'].number, _vueTypes2['default'].string]); var propTypes = exports.propTypes = { // className: PropTypes.string, - percent: _vueTypes2['default'].oneOfType([_vueTypes2['default'].number, _vueTypes2['default'].string]), + percent: _vueTypes2['default'].oneOfType([mixedType, _vueTypes2['default'].arrayOf(mixedType)]), prefixCls: _vueTypes2['default'].string, - strokeColor: _vueTypes2['default'].string, + strokeColor: _vueTypes2['default'].oneOfType([_vueTypes2['default'].string, _vueTypes2['default'].arrayOf(_vueTypes2['default'].string)]), strokeLinecap: _vueTypes2['default'].oneOf(['butt', 'round', 'square']), - strokeWidth: _vueTypes2['default'].oneOfType([_vueTypes2['default'].number, _vueTypes2['default'].string]), + strokeWidth: mixedType, // style: PropTypes.object, trailColor: _vueTypes2['default'].string, - trailWidth: _vueTypes2['default'].oneOfType([_vueTypes2['default'].number, _vueTypes2['default'].string]) + trailWidth: mixedType }; /***/ }), @@ -1716,7 +2013,7 @@ var _src2 = _interopRequireDefault(_src); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } -exports['default'] = _src2['default']; // rc-upload 2.6.0 +exports['default'] = _src2['default']; // rc-upload 2.6.3 /***/ }), @@ -1750,6 +2047,10 @@ var _BaseMixin = __webpack_require__(/*! ../../_util/BaseMixin */ "./node_module var _BaseMixin2 = _interopRequireDefault(_BaseMixin); +var _partition = __webpack_require__(/*! lodash/partition */ "./node_modules/lodash/partition.js"); + +var _partition2 = _interopRequireDefault(_partition); + var _classnames = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js"); var _classnames2 = _interopRequireDefault(_classnames); @@ -1843,10 +2144,13 @@ var AjaxUploader = { return (0, _attrAccept2['default'])(_file, _this.accept); }); } else { - var files = Array.prototype.slice.call(e.dataTransfer.files).filter(function (file) { + var files = (0, _partition2['default'])(Array.prototype.slice.call(e.dataTransfer.files), function (file) { return (0, _attrAccept2['default'])(file, _this.accept); }); - this.uploadFiles(files); + this.uploadFiles(files[0]); + if (files[1].length) { + this.$emit('reject', files[1]); + } } }, uploadFiles: function uploadFiles(files) { @@ -2122,7 +2426,7 @@ var IframeUploader = { // http://stackoverflow.com/questions/12830058/ie8-input-type-file-get-files var file = this.file = { uid: (0, _uid2['default'])(), - name: target.value + name: target.value && target.value.substring(target.value.lastIndexOf('\\') + 1, target.value.length) }; this.startUpload(); var props = this.$props; @@ -2518,8 +2822,7 @@ var _Upload2 = _interopRequireDefault(_Upload); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } -exports['default'] = _Upload2['default']; // based on rc-upload 2.4.4 -// export this package's api +exports['default'] = _Upload2['default']; // export this package's api /***/ }), @@ -2650,6 +2953,29 @@ function upload(option) { Object.defineProperty(exports, "__esModule", { value: true }); +function loopFiles(item, callback) { + var dirReader = item.createReader(); + var fileList = []; + + function sequence() { + dirReader.readEntries(function (entries) { + var entryList = Array.prototype.slice.apply(entries); + fileList = fileList.concat(entryList); + + // Check if all the file has been viewed + var isFinished = !entryList.length; + + if (isFinished) { + callback(fileList); + } else { + sequence(); + } + }); + } + + sequence(); +} + var traverseFileTree = function traverseFileTree(files, callback, isAccepted) { var _traverseFileTree = function _traverseFileTree(item, path) { path = path || ''; @@ -2660,57 +2986,34 @@ var traverseFileTree = function traverseFileTree(files, callback, isAccepted) { } }); } else if (item.isDirectory) { - var dirReader = item.createReader(); - - dirReader.readEntries(function (entries) { - var _iteratorNormalCompletion = true; - var _didIteratorError = false; - var _iteratorError = undefined; - - try { - for (var _iterator = entries[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) { - var entrieItem = _step.value; - - _traverseFileTree(entrieItem, '' + path + item.name + '/'); - } - } catch (err) { - _didIteratorError = true; - _iteratorError = err; - } finally { - try { - if (!_iteratorNormalCompletion && _iterator['return']) { - _iterator['return'](); - } - } finally { - if (_didIteratorError) { - throw _iteratorError; - } - } - } + loopFiles(item, function (entries) { + entries.forEach(function (entryItem) { + _traverseFileTree(entryItem, '' + path + item.name + '/'); + }); }); } }; - var _iteratorNormalCompletion2 = true; - var _didIteratorError2 = false; - var _iteratorError2 = undefined; + var _iteratorNormalCompletion = true; + var _didIteratorError = false; + var _iteratorError = undefined; try { - for (var _iterator2 = files[Symbol.iterator](), _step2; !(_iteratorNormalCompletion2 = (_step2 = _iterator2.next()).done); _iteratorNormalCompletion2 = true) { - var file = _step2.value; + for (var _iterator = files[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) { + var file = _step.value; _traverseFileTree(file.webkitGetAsEntry()); } } catch (err) { - _didIteratorError2 = true; - _iteratorError2 = err; + _didIteratorError = true; + _iteratorError = err; } finally { try { - if (!_iteratorNormalCompletion2 && _iterator2['return']) { - _iterator2['return'](); + if (!_iteratorNormalCompletion && _iterator['return']) { + _iterator['return'](); } } finally { - if (_didIteratorError2) { - throw _iteratorError2; + if (_didIteratorError) { + throw _iteratorError; } } } @@ -2741,6 +3044,39 @@ function uid() { return "vc-upload-" + now + "-" + ++index; } +/***/ }), + +/***/ "./node_modules/lodash/_arrayAggregator.js": +/*!*************************************************!*\ + !*** ./node_modules/lodash/_arrayAggregator.js ***! + \*************************************************/ +/*! no static exports found */ +/***/ (function(module, exports) { + +/** + * A specialized version of `baseAggregator` for arrays. + * + * @private + * @param {Array} [array] The array to iterate over. + * @param {Function} setter The function to set `accumulator` values. + * @param {Function} iteratee The iteratee to transform keys. + * @param {Object} accumulator The initial aggregated object. + * @returns {Function} Returns `accumulator`. + */ +function arrayAggregator(array, setter, iteratee, accumulator) { + var index = -1, + length = array == null ? 0 : array.length; + + while (++index < length) { + var value = array[index]; + setter(accumulator, value, iteratee(value), array); + } + return accumulator; +} + +module.exports = arrayAggregator; + + /***/ }), /***/ "./node_modules/lodash/_arrayIncludes.js": @@ -2802,6 +3138,117 @@ function arrayIncludesWith(array, value, comparator) { module.exports = arrayIncludesWith; +/***/ }), + +/***/ "./node_modules/lodash/_baseAggregator.js": +/*!************************************************!*\ + !*** ./node_modules/lodash/_baseAggregator.js ***! + \************************************************/ +/*! no static exports found */ +/***/ (function(module, exports, __webpack_require__) { + +var baseEach = __webpack_require__(/*! ./_baseEach */ "./node_modules/lodash/_baseEach.js"); + +/** + * Aggregates elements of `collection` on `accumulator` with keys transformed + * by `iteratee` and values set by `setter`. + * + * @private + * @param {Array|Object} collection The collection to iterate over. + * @param {Function} setter The function to set `accumulator` values. + * @param {Function} iteratee The iteratee to transform keys. + * @param {Object} accumulator The initial aggregated object. + * @returns {Function} Returns `accumulator`. + */ +function baseAggregator(collection, setter, iteratee, accumulator) { + baseEach(collection, function(value, key, collection) { + setter(accumulator, value, iteratee(value), collection); + }); + return accumulator; +} + +module.exports = baseAggregator; + + +/***/ }), + +/***/ "./node_modules/lodash/_baseEach.js": +/*!******************************************!*\ + !*** ./node_modules/lodash/_baseEach.js ***! + \******************************************/ +/*! no static exports found */ +/***/ (function(module, exports, __webpack_require__) { + +var baseForOwn = __webpack_require__(/*! ./_baseForOwn */ "./node_modules/lodash/_baseForOwn.js"), + createBaseEach = __webpack_require__(/*! ./_createBaseEach */ "./node_modules/lodash/_createBaseEach.js"); + +/** + * The base implementation of `_.forEach` without support for iteratee shorthands. + * + * @private + * @param {Array|Object} collection The collection to iterate over. + * @param {Function} iteratee The function invoked per iteration. + * @returns {Array|Object} Returns `collection`. + */ +var baseEach = createBaseEach(baseForOwn); + +module.exports = baseEach; + + +/***/ }), + +/***/ "./node_modules/lodash/_baseFor.js": +/*!*****************************************!*\ + !*** ./node_modules/lodash/_baseFor.js ***! + \*****************************************/ +/*! no static exports found */ +/***/ (function(module, exports, __webpack_require__) { + +var createBaseFor = __webpack_require__(/*! ./_createBaseFor */ "./node_modules/lodash/_createBaseFor.js"); + +/** + * The base implementation of `baseForOwn` which iterates over `object` + * properties returned by `keysFunc` and invokes `iteratee` for each property. + * Iteratee functions may exit iteration early by explicitly returning `false`. + * + * @private + * @param {Object} object The object to iterate over. + * @param {Function} iteratee The function invoked per iteration. + * @param {Function} keysFunc The function to get the keys of `object`. + * @returns {Object} Returns `object`. + */ +var baseFor = createBaseFor(); + +module.exports = baseFor; + + +/***/ }), + +/***/ "./node_modules/lodash/_baseForOwn.js": +/*!********************************************!*\ + !*** ./node_modules/lodash/_baseForOwn.js ***! + \********************************************/ +/*! no static exports found */ +/***/ (function(module, exports, __webpack_require__) { + +var baseFor = __webpack_require__(/*! ./_baseFor */ "./node_modules/lodash/_baseFor.js"), + keys = __webpack_require__(/*! ./keys */ "./node_modules/lodash/keys.js"); + +/** + * The base implementation of `_.forOwn` without support for iteratee shorthands. + * + * @private + * @param {Object} object The object to iterate over. + * @param {Function} iteratee The function invoked per iteration. + * @returns {Object} Returns `object`. + */ +function baseForOwn(object, iteratee) { + return object && baseFor(object, iteratee, keys); +} + +module.exports = baseForOwn; + + /***/ }), /***/ "./node_modules/lodash/_baseIndexOf.js": @@ -2939,6 +3386,119 @@ function baseUniq(array, iteratee, comparator) { module.exports = baseUniq; +/***/ }), + +/***/ "./node_modules/lodash/_createAggregator.js": +/*!**************************************************!*\ + !*** ./node_modules/lodash/_createAggregator.js ***! + \**************************************************/ +/*! no static exports found */ +/***/ (function(module, exports, __webpack_require__) { + +var arrayAggregator = __webpack_require__(/*! ./_arrayAggregator */ "./node_modules/lodash/_arrayAggregator.js"), + baseAggregator = __webpack_require__(/*! ./_baseAggregator */ "./node_modules/lodash/_baseAggregator.js"), + baseIteratee = __webpack_require__(/*! ./_baseIteratee */ "./node_modules/lodash/_baseIteratee.js"), + isArray = __webpack_require__(/*! ./isArray */ "./node_modules/lodash/isArray.js"); + +/** + * Creates a function like `_.groupBy`. + * + * @private + * @param {Function} setter The function to set accumulator values. + * @param {Function} [initializer] The accumulator object initializer. + * @returns {Function} Returns the new aggregator function. + */ +function createAggregator(setter, initializer) { + return function(collection, iteratee) { + var func = isArray(collection) ? arrayAggregator : baseAggregator, + accumulator = initializer ? initializer() : {}; + + return func(collection, setter, baseIteratee(iteratee, 2), accumulator); + }; +} + +module.exports = createAggregator; + + +/***/ }), + +/***/ "./node_modules/lodash/_createBaseEach.js": +/*!************************************************!*\ + !*** ./node_modules/lodash/_createBaseEach.js ***! + \************************************************/ +/*! no static exports found */ +/***/ (function(module, exports, __webpack_require__) { + +var isArrayLike = __webpack_require__(/*! ./isArrayLike */ "./node_modules/lodash/isArrayLike.js"); + +/** + * Creates a `baseEach` or `baseEachRight` function. + * + * @private + * @param {Function} eachFunc The function to iterate over a collection. + * @param {boolean} [fromRight] Specify iterating from right to left. + * @returns {Function} Returns the new base function. + */ +function createBaseEach(eachFunc, fromRight) { + return function(collection, iteratee) { + if (collection == null) { + return collection; + } + if (!isArrayLike(collection)) { + return eachFunc(collection, iteratee); + } + var length = collection.length, + index = fromRight ? length : -1, + iterable = Object(collection); + + while ((fromRight ? index-- : ++index < length)) { + if (iteratee(iterable[index], index, iterable) === false) { + break; + } + } + return collection; + }; +} + +module.exports = createBaseEach; + + +/***/ }), + +/***/ "./node_modules/lodash/_createBaseFor.js": +/*!***********************************************!*\ + !*** ./node_modules/lodash/_createBaseFor.js ***! + \***********************************************/ +/*! no static exports found */ +/***/ (function(module, exports) { + +/** + * Creates a base function for methods like `_.forIn` and `_.forOwn`. + * + * @private + * @param {boolean} [fromRight] Specify iterating from right to left. + * @returns {Function} Returns the new base function. + */ +function createBaseFor(fromRight) { + return function(object, iteratee, keysFunc) { + var index = -1, + iterable = Object(object), + props = keysFunc(object), + length = props.length; + + while (length--) { + var key = props[fromRight ? length : ++index]; + if (iteratee(iterable[key], key, iterable) === false) { + break; + } + } + return object; + }; +} + +module.exports = createBaseFor; + + /***/ }), /***/ "./node_modules/lodash/_createSet.js": @@ -3031,6 +3591,60 @@ function noop() { module.exports = noop; +/***/ }), + +/***/ "./node_modules/lodash/partition.js": +/*!******************************************!*\ + !*** ./node_modules/lodash/partition.js ***! + \******************************************/ +/*! no static exports found */ +/***/ (function(module, exports, __webpack_require__) { + +var createAggregator = __webpack_require__(/*! ./_createAggregator */ "./node_modules/lodash/_createAggregator.js"); + +/** + * Creates an array of elements split into two groups, the first of which + * contains elements `predicate` returns truthy for, the second of which + * contains elements `predicate` returns falsey for. The predicate is + * invoked with one argument: (value). + * + * @static + * @memberOf _ + * @since 3.0.0 + * @category Collection + * @param {Array|Object} collection The collection to iterate over. + * @param {Function} [predicate=_.identity] The function invoked per iteration. + * @returns {Array} Returns the array of grouped elements. + * @example + * + * var users = [ + * { 'user': 'barney', 'age': 36, 'active': false }, + * { 'user': 'fred', 'age': 40, 'active': true }, + * { 'user': 'pebbles', 'age': 1, 'active': false } + * ]; + * + * _.partition(users, function(o) { return o.active; }); + * // => objects for [['fred'], ['barney', 'pebbles']] + * + * // The `_.matches` iteratee shorthand. + * _.partition(users, { 'age': 1, 'active': false }); + * // => objects for [['pebbles'], ['barney', 'fred']] + * + * // The `_.matchesProperty` iteratee shorthand. + * _.partition(users, ['active', false]); + * // => objects for [['barney', 'pebbles'], ['fred']] + * + * // The `_.property` iteratee shorthand. + * _.partition(users, 'active'); + * // => objects for [['fred'], ['barney', 'pebbles']] + */ +var partition = createAggregator(function(result, value, key) { + result[key ? 0 : 1].push(value); +}, function() { return [[], []]; }); + +module.exports = partition; + + /***/ }), /***/ "./node_modules/lodash/uniqBy.js": diff --git a/public/avored-admin/js/chunk/10.js b/public/avored-admin/js/chunk/10.js index 2fd96fc86..68d0e1bc7 100644 --- a/public/avored-admin/js/chunk/10.js +++ b/public/avored-admin/js/chunk/10.js @@ -1,9 +1,9 @@ (window["webpackJsonp"] = window["webpackJsonp"] || []).push([[10],{ -/***/ "./node_modules/ant-design-vue/lib/tag/CheckableTag.js": -/*!*************************************************************!*\ - !*** ./node_modules/ant-design-vue/lib/tag/CheckableTag.js ***! - \*************************************************************/ +/***/ "./node_modules/ant-design-vue/lib/switch/index.js": +/*!*********************************************************!*\ + !*** ./node_modules/ant-design-vue/lib/switch/index.js ***! + \*********************************************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { @@ -14,65 +14,132 @@ Object.defineProperty(exports, "__esModule", { value: true }); +var _extends2 = __webpack_require__(/*! babel-runtime/helpers/extends */ "./node_modules/babel-runtime/helpers/extends.js"); + +var _extends3 = _interopRequireDefault(_extends2); + var _defineProperty2 = __webpack_require__(/*! babel-runtime/helpers/defineProperty */ "./node_modules/babel-runtime/helpers/defineProperty.js"); var _defineProperty3 = _interopRequireDefault(_defineProperty2); +var _objectWithoutProperties2 = __webpack_require__(/*! babel-runtime/helpers/objectWithoutProperties */ "./node_modules/babel-runtime/helpers/objectWithoutProperties.js"); + +var _objectWithoutProperties3 = _interopRequireDefault(_objectWithoutProperties2); + +var _vueTypes = __webpack_require__(/*! ../_util/vue-types */ "./node_modules/ant-design-vue/lib/_util/vue-types/index.js"); + +var _vueTypes2 = _interopRequireDefault(_vueTypes); + +var _propsUtil = __webpack_require__(/*! ../_util/props-util */ "./node_modules/ant-design-vue/lib/_util/props-util.js"); + +var _vcSwitch = __webpack_require__(/*! ../vc-switch */ "./node_modules/ant-design-vue/lib/vc-switch/index.js"); + +var _vcSwitch2 = _interopRequireDefault(_vcSwitch); + +var _wave = __webpack_require__(/*! ../_util/wave */ "./node_modules/ant-design-vue/lib/_util/wave.js"); + +var _wave2 = _interopRequireDefault(_wave); + +var _icon = __webpack_require__(/*! ../icon */ "./node_modules/ant-design-vue/lib/icon/index.js"); + +var _icon2 = _interopRequireDefault(_icon); + +var _configProvider = __webpack_require__(/*! ../config-provider */ "./node_modules/ant-design-vue/lib/config-provider/index.js"); + +var _base = __webpack_require__(/*! ../base */ "./node_modules/ant-design-vue/lib/base/index.js"); + +var _base2 = _interopRequireDefault(_base); + function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } -exports['default'] = { - name: 'ACheckableTag', +var Switch = { + name: 'ASwitch', model: { - prop: 'checked' + prop: 'checked', + event: 'change' }, props: { - prefixCls: { - 'default': 'ant-tag', - type: String - }, - checked: Boolean + prefixCls: _vueTypes2['default'].string, + // size=default and size=large are the same + size: _vueTypes2['default'].oneOf(['small', 'default', 'large']), + disabled: _vueTypes2['default'].bool, + checkedChildren: _vueTypes2['default'].any, + unCheckedChildren: _vueTypes2['default'].any, + tabIndex: _vueTypes2['default'].oneOfType([_vueTypes2['default'].string, _vueTypes2['default'].number]), + checked: _vueTypes2['default'].bool, + defaultChecked: _vueTypes2['default'].bool, + autoFocus: _vueTypes2['default'].bool, + loading: _vueTypes2['default'].bool }, - computed: { - classes: function classes() { - var _ref; - - var prefixCls = this.prefixCls, - checked = this.checked; - - return _ref = {}, (0, _defineProperty3['default'])(_ref, '' + prefixCls, true), (0, _defineProperty3['default'])(_ref, prefixCls + '-checkable', true), (0, _defineProperty3['default'])(_ref, prefixCls + '-checkable-checked', checked), _ref; - } + inject: { + configProvider: { 'default': function _default() { + return _configProvider.ConfigConsumerProps; + } } }, methods: { - handleClick: function handleClick() { - var checked = this.checked; - - this.$emit('input', !checked); - this.$emit('change', !checked); + focus: function focus() { + this.$refs.refSwitchNode.focus(); + }, + blur: function blur() { + this.$refs.refSwitchNode.blur(); } }, + render: function render() { + var _classes; + var h = arguments[0]; - var classes = this.classes, - handleClick = this.handleClick, - $slots = this.$slots; + var _getOptionProps = (0, _propsUtil.getOptionProps)(this), + customizePrefixCls = _getOptionProps.prefixCls, + size = _getOptionProps.size, + loading = _getOptionProps.loading, + disabled = _getOptionProps.disabled, + restProps = (0, _objectWithoutProperties3['default'])(_getOptionProps, ['prefixCls', 'size', 'loading', 'disabled']); + + var getPrefixCls = this.configProvider.getPrefixCls; + var prefixCls = getPrefixCls('switch', customizePrefixCls); + + var classes = (_classes = {}, (0, _defineProperty3['default'])(_classes, prefixCls + '-small', size === 'small'), (0, _defineProperty3['default'])(_classes, prefixCls + '-loading', loading), _classes); + var loadingIcon = loading ? h(_icon2['default'], { + attrs: { type: 'loading' }, + 'class': prefixCls + '-loading-icon' }) : null; + var switchProps = { + props: (0, _extends3['default'])({}, restProps, { + prefixCls: prefixCls, + loadingIcon: loadingIcon, + checkedChildren: (0, _propsUtil.getComponentFromProp)(this, 'checkedChildren'), + unCheckedChildren: (0, _propsUtil.getComponentFromProp)(this, 'unCheckedChildren'), + disabled: disabled || loading + }), + on: this.$listeners, + 'class': classes, + ref: 'refSwitchNode' + }; return h( - 'div', - { 'class': classes, on: { - 'click': handleClick - } + _wave2['default'], + { + attrs: { insertExtraNode: true } }, - [$slots['default']] + [h(_vcSwitch2['default'], switchProps)] ); } }; +/* istanbul ignore next */ +Switch.install = function (Vue) { + Vue.use(_base2['default']); + Vue.component(Switch.name, Switch); +}; + +exports['default'] = Switch; + /***/ }), -/***/ "./node_modules/ant-design-vue/lib/tag/Tag.js": -/*!****************************************************!*\ - !*** ./node_modules/ant-design-vue/lib/tag/Tag.js ***! - \****************************************************/ +/***/ "./node_modules/ant-design-vue/lib/vc-switch/PropTypes.js": +/*!****************************************************************!*\ + !*** ./node_modules/ant-design-vue/lib/vc-switch/PropTypes.js ***! + \****************************************************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { @@ -82,168 +149,197 @@ exports['default'] = { Object.defineProperty(exports, "__esModule", { value: true }); +exports.switchPropTypes = undefined; -var _babelHelperVueJsxMergeProps = __webpack_require__(/*! babel-helper-vue-jsx-merge-props */ "./node_modules/babel-helper-vue-jsx-merge-props/index.js"); +var _vueTypes = __webpack_require__(/*! ../_util/vue-types */ "./node_modules/ant-design-vue/lib/_util/vue-types/index.js"); -var _babelHelperVueJsxMergeProps2 = _interopRequireDefault(_babelHelperVueJsxMergeProps); +var _vueTypes2 = _interopRequireDefault(_vueTypes); -var _defineProperty2 = __webpack_require__(/*! babel-runtime/helpers/defineProperty */ "./node_modules/babel-runtime/helpers/defineProperty.js"); +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } -var _defineProperty3 = _interopRequireDefault(_defineProperty2); +var switchPropTypes = exports.switchPropTypes = { + prefixCls: _vueTypes2['default'].string, + disabled: _vueTypes2['default'].bool.def(false), + checkedChildren: _vueTypes2['default'].any, + unCheckedChildren: _vueTypes2['default'].any, + // onChange: PropTypes.func, + // onMouseUp: PropTypes.func, + // onClick: PropTypes.func, + tabIndex: _vueTypes2['default'].oneOfType([_vueTypes2['default'].string, _vueTypes2['default'].number]), + checked: _vueTypes2['default'].bool.def(false), + defaultChecked: _vueTypes2['default'].bool.def(false), + autoFocus: _vueTypes2['default'].bool.def(false), + loadingIcon: _vueTypes2['default'].any +}; -var _vueTypes = __webpack_require__(/*! ../_util/vue-types */ "./node_modules/ant-design-vue/lib/_util/vue-types/index.js"); +/***/ }), -var _vueTypes2 = _interopRequireDefault(_vueTypes); +/***/ "./node_modules/ant-design-vue/lib/vc-switch/Switch.js": +/*!*************************************************************!*\ + !*** ./node_modules/ant-design-vue/lib/vc-switch/Switch.js ***! + \*************************************************************/ +/*! no static exports found */ +/***/ (function(module, exports, __webpack_require__) { -var _icon = __webpack_require__(/*! ../icon */ "./node_modules/ant-design-vue/lib/icon/index.js"); +"use strict"; -var _icon2 = _interopRequireDefault(_icon); -var _getTransitionProps = __webpack_require__(/*! ../_util/getTransitionProps */ "./node_modules/ant-design-vue/lib/_util/getTransitionProps.js"); +Object.defineProperty(exports, "__esModule", { + value: true +}); -var _getTransitionProps2 = _interopRequireDefault(_getTransitionProps); +var _defineProperty2 = __webpack_require__(/*! babel-runtime/helpers/defineProperty */ "./node_modules/babel-runtime/helpers/defineProperty.js"); -var _omit = __webpack_require__(/*! omit.js */ "./node_modules/omit.js/es/index.js"); +var _defineProperty3 = _interopRequireDefault(_defineProperty2); -var _omit2 = _interopRequireDefault(_omit); +var _objectWithoutProperties2 = __webpack_require__(/*! babel-runtime/helpers/objectWithoutProperties */ "./node_modules/babel-runtime/helpers/objectWithoutProperties.js"); -var _wave = __webpack_require__(/*! ../_util/wave */ "./node_modules/ant-design-vue/lib/_util/wave.js"); +var _objectWithoutProperties3 = _interopRequireDefault(_objectWithoutProperties2); -var _wave2 = _interopRequireDefault(_wave); +var _extends2 = __webpack_require__(/*! babel-runtime/helpers/extends */ "./node_modules/babel-runtime/helpers/extends.js"); -var _propsUtil = __webpack_require__(/*! ../_util/props-util */ "./node_modules/ant-design-vue/lib/_util/props-util.js"); +var _extends3 = _interopRequireDefault(_extends2); + +var _PropTypes = __webpack_require__(/*! ./PropTypes */ "./node_modules/ant-design-vue/lib/vc-switch/PropTypes.js"); var _BaseMixin = __webpack_require__(/*! ../_util/BaseMixin */ "./node_modules/ant-design-vue/lib/_util/BaseMixin.js"); var _BaseMixin2 = _interopRequireDefault(_BaseMixin); +var _propsUtil = __webpack_require__(/*! ../_util/props-util */ "./node_modules/ant-design-vue/lib/_util/props-util.js"); + function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } +// function noop () { +// } exports['default'] = { - name: 'ATag', + name: 'VcSwitch', mixins: [_BaseMixin2['default']], model: { - prop: 'visible', - event: 'close.visible' - }, - props: { - prefixCls: _vueTypes2['default'].string.def('ant-tag'), - color: _vueTypes2['default'].string, - closable: _vueTypes2['default'].bool.def(false), - visible: _vueTypes2['default'].bool, - afterClose: _vueTypes2['default'].func + prop: 'checked', + event: 'change' }, + props: (0, _extends3['default'])({}, _PropTypes.switchPropTypes, { + prefixCls: _PropTypes.switchPropTypes.prefixCls.def('rc-switch') + // onChange: switchPropTypes.onChange.def(noop), + // onClick: switchPropTypes.onClick.def(noop), + }), data: function data() { - var _visible = true; - if ((0, _propsUtil.hasProp)(this, 'visible')) { - _visible = this.visible; + var checked = false; + if ((0, _propsUtil.hasProp)(this, 'checked')) { + checked = !!this.checked; + } else { + checked = !!this.defaultChecked; } return { - _visible: _visible + stateChecked: checked }; }, watch: { - visible: function visible(val) { - this.setState({ - _visible: val - }); + checked: function checked(val) { + this.stateChecked = val; } }, + mounted: function mounted() { + var _this = this; + + this.$nextTick(function () { + var autoFocus = _this.autoFocus, + disabled = _this.disabled; + + if (autoFocus && !disabled) { + _this.focus(); + } + }); + }, + methods: { - setVisible: function setVisible(visible, e) { - this.$emit('close', e); - this.$emit('close.visible', false); - if (e.defaultPrevented) { + setChecked: function setChecked(checked, e) { + if (this.disabled) { return; } - if (!(0, _propsUtil.hasProp)(this, 'visible')) { - this.setState({ _visible: visible }); + if (!(0, _propsUtil.hasProp)(this, 'checked')) { + this.stateChecked = checked; } + this.$emit('change', checked, e); }, - handleIconClick: function handleIconClick(e) { - this.setVisible(false, e); + handleClick: function handleClick(e) { + var checked = !this.stateChecked; + this.setChecked(checked, e); + this.$emit('click', checked, e); }, - animationEnd: function animationEnd() { - var afterClose = this.afterClose; - if (afterClose) { - afterClose(); + handleKeyDown: function handleKeyDown(e) { + if (e.keyCode === 37) { + // Left + this.setChecked(false, e); + } else if (e.keyCode === 39) { + // Right + this.setChecked(true, e); } }, - isPresetColor: function isPresetColor(color) { - if (!color) { - return false; + handleMouseUp: function handleMouseUp(e) { + if (this.$refs.refSwitchNode) { + this.$refs.refSwitchNode.blur(); } - return (/^(pink|red|yellow|orange|cyan|green|blue|purple|geekblue|magenta|volcano|gold|lime)(-inverse)?$/.test(color) - ); + this.$emit('mouseup', e); }, - getTagStyle: function getTagStyle() { - var color = this.$props.color; - - var isPresetColor = this.isPresetColor(color); - return { - backgroundColor: color && !isPresetColor ? color : undefined - }; + focus: function focus() { + this.$refs.refSwitchNode.focus(); }, - getTagClassName: function getTagClassName() { - var _ref; - - var _$props = this.$props, - prefixCls = _$props.prefixCls, - color = _$props.color; - - var isPresetColor = this.isPresetColor(color); - return _ref = {}, (0, _defineProperty3['default'])(_ref, prefixCls, true), (0, _defineProperty3['default'])(_ref, prefixCls + '-' + color, isPresetColor), (0, _defineProperty3['default'])(_ref, prefixCls + '-has-color', color && !isPresetColor), _ref; - }, - renderCloseIcon: function renderCloseIcon() { - var h = this.$createElement; - var closable = this.$props.closable; - - return closable ? h(_icon2['default'], { - attrs: { type: 'close' }, - on: { - 'click': this.handleIconClick - } - }) : null; + blur: function blur() { + this.$refs.refSwitchNode.blur(); } }, - render: function render() { + var _switchClassName; + var h = arguments[0]; - var prefixCls = this.$props.prefixCls; - var visible = this.$data._visible; - - var tag = h( - 'div', - (0, _babelHelperVueJsxMergeProps2['default'])([{ - directives: [{ - name: 'show', - value: visible - }] - }, { on: (0, _omit2['default'])(this.$listeners, ['close']) }, { - 'class': this.getTagClassName(), - style: this.getTagStyle() - }]), - [this.$slots['default'], this.renderCloseIcon()] + + var _getOptionProps = (0, _propsUtil.getOptionProps)(this), + prefixCls = _getOptionProps.prefixCls, + disabled = _getOptionProps.disabled, + loadingIcon = _getOptionProps.loadingIcon, + tabIndex = _getOptionProps.tabIndex, + restProps = (0, _objectWithoutProperties3['default'])(_getOptionProps, ['prefixCls', 'disabled', 'loadingIcon', 'tabIndex']); + + var checked = this.stateChecked; + var switchClassName = (_switchClassName = {}, (0, _defineProperty3['default'])(_switchClassName, prefixCls, true), (0, _defineProperty3['default'])(_switchClassName, prefixCls + '-checked', checked), (0, _defineProperty3['default'])(_switchClassName, prefixCls + '-disabled', disabled), _switchClassName); + var spanProps = { + props: (0, _extends3['default'])({}, restProps), + on: (0, _extends3['default'])({}, this.$listeners, { + keydown: this.handleKeyDown, + click: this.handleClick, + mouseup: this.handleMouseUp + }), + attrs: { + type: 'button', + role: 'switch', + 'aria-checked': checked, + disabled: disabled, + tabIndex: tabIndex + }, + 'class': switchClassName, + ref: 'refSwitchNode' + }; + return h( + 'button', + spanProps, + [loadingIcon, h( + 'span', + { 'class': prefixCls + '-inner' }, + [checked ? (0, _propsUtil.getComponentFromProp)(this, 'checkedChildren') : (0, _propsUtil.getComponentFromProp)(this, 'unCheckedChildren')] + )] ); - var transitionProps = (0, _getTransitionProps2['default'])(prefixCls + '-zoom', { - appear: false, - afterLeave: this.animationEnd - }); - return h(_wave2['default'], [h( - 'transition', - transitionProps, - [tag] - )]); } }; /***/ }), -/***/ "./node_modules/ant-design-vue/lib/tag/index.js": -/*!******************************************************!*\ - !*** ./node_modules/ant-design-vue/lib/tag/index.js ***! - \******************************************************/ +/***/ "./node_modules/ant-design-vue/lib/vc-switch/index.js": +/*!************************************************************!*\ + !*** ./node_modules/ant-design-vue/lib/vc-switch/index.js ***! + \************************************************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { @@ -254,25 +350,13 @@ Object.defineProperty(exports, "__esModule", { value: true }); -var _Tag = __webpack_require__(/*! ./Tag */ "./node_modules/ant-design-vue/lib/tag/Tag.js"); - -var _Tag2 = _interopRequireDefault(_Tag); +var _Switch = __webpack_require__(/*! ./Switch */ "./node_modules/ant-design-vue/lib/vc-switch/Switch.js"); -var _CheckableTag = __webpack_require__(/*! ./CheckableTag */ "./node_modules/ant-design-vue/lib/tag/CheckableTag.js"); - -var _CheckableTag2 = _interopRequireDefault(_CheckableTag); +var _Switch2 = _interopRequireDefault(_Switch); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } -_Tag2['default'].CheckableTag = _CheckableTag2['default']; - -/* istanbul ignore next */ -_Tag2['default'].install = function (Vue) { - Vue.component(_Tag2['default'].name, _Tag2['default']); - Vue.component(_Tag2['default'].CheckableTag.name, _Tag2['default'].CheckableTag); -}; - -exports['default'] = _Tag2['default']; +exports['default'] = _Switch2['default']; // base rc-switch 1.9.0 /***/ }) diff --git a/public/avored-admin/js/chunk/11.js b/public/avored-admin/js/chunk/11.js index a666d890c..f5d44e00c 100644 --- a/public/avored-admin/js/chunk/11.js +++ b/public/avored-admin/js/chunk/11.js @@ -1,152 +1,382 @@ (window["webpackJsonp"] = window["webpackJsonp"] || []).push([[11],{ -/***/ "./node_modules/babel-loader/lib/index.js?!./node_modules/vue-loader/lib/index.js?!./vendor/avored/framework/resources/components/catalog/attribute/AttributeSave.vue?vue&type=script&lang=js&": -/*!***************************************************************************************************************************************************************************************************************!*\ - !*** ./node_modules/babel-loader/lib??ref--4-0!./node_modules/vue-loader/lib??vue-loader-options!./vendor/avored/framework/resources/components/catalog/attribute/AttributeSave.vue?vue&type=script&lang=js& ***! - \***************************************************************************************************************************************************************************************************************/ +/***/ "./node_modules/babel-loader/lib/index.js?!./node_modules/vue-loader/lib/index.js?!./packages/framework/resources/components/promotion/promotion-code/PromotionCodeEdit.vue?vue&type=script&lang=js&": +/*!*********************************************************************************************************************************************************************************************************************!*\ + !*** ./node_modules/babel-loader/lib??ref--4-0!./node_modules/vue-loader/lib??vue-loader-options!./packages/framework/resources/components/promotion/promotion-code/PromotionCodeEdit.vue?vue&type=script&lang=js& ***! + \*********************************************************************************************************************************************************************************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); -/* harmony import */ var lodash_isNil__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! lodash/isNil */ "./node_modules/lodash/isNil.js"); -/* harmony import */ var lodash_isNil__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(lodash_isNil__WEBPACK_IMPORTED_MODULE_0__); +/* harmony import */ var vue_quill_editor__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! vue-quill-editor */ "./node_modules/vue-quill-editor/dist/vue-quill-editor.js"); +/* harmony import */ var vue_quill_editor__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(vue_quill_editor__WEBPACK_IMPORTED_MODULE_0__); +/* harmony import */ var lodash_isNil__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! lodash/isNil */ "./node_modules/lodash/isNil.js"); +/* harmony import */ var lodash_isNil__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(lodash_isNil__WEBPACK_IMPORTED_MODULE_1__); +/* harmony import */ var moment__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! moment */ "./node_modules/moment/moment.js"); +/* harmony import */ var moment__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(moment__WEBPACK_IMPORTED_MODULE_2__); + + -var id = 0; /* harmony default export */ __webpack_exports__["default"] = ({ - props: ['attribute', 'baseUrl'], + props: ['promotionCode', 'baseUrl'], data: function data() { return { - attributeForm: this.$form.createForm(this), - dropdownOptions: [], - image_path_lists: [], - headers: {}, - display_as: '', - fields: ['name', 'slug', 'display_as'] + form: this.$form.createForm(this), + status: 0, + type: null, + activeFrom: null, + activeTill: null, + dateFormat: 'DD-MM-Y', + activeFromDefault: null, + activeTillDefault: null }; }, methods: { handleSubmit: function handleSubmit() { - this.attributeForm.validateFields(function (err, values) { + this.form.validateFields(function (err, values) { if (err) { e.preventDefault(); } }); }, - imagePathName: function imagePathName(path) { - var name = "dropdown_option["; - Object.keys(path).forEach(function (key) { - name += key; - }); - name += "][path]"; - return name; - }, - imagePathValue: function imagePathValue(path) { - var value = ""; - Object.keys(path).forEach(function (key) { - value += path[key]; - }); - return value; - }, - handleUploadImageChange: function handleUploadImageChange(info, record) { - if (info.file.status == "done") { - var object = {}; - object[record] = info.file.response.path; - this.image_path_lists.push(object); - } + onActiveFromChange: function onActiveFromChange(val) { + this.activeFrom = val.format('Y-MM-DD'); }, - displayAsChange: function displayAsChange(val) { - this.display_as = val; + onActiveTillChange: function onActiveTillChange(val) { + this.activeTill = val.format('Y-MM-DD'); }, - cancelAttribute: function cancelAttribute() { - window.location = this.baseUrl + '/attribute'; + handleTypeChange: function handleTypeChange(val) { + this.type = val; }, - randomString: function randomString() { - var random_string = ''; - var random_ascii; - - for (var i = 0; i < 6; i++) { - random_ascii = Math.floor(Math.random() * 25 + 97); - random_string += String.fromCharCode(random_ascii); - } - - return random_string; - }, - dropdownOptionChange: function dropdownOptionChange(index) { - if (index == this.dropdownOptions.length - 1) { - this.dropdownOptions.push(this.randomString()); + changeStatus: function changeStatus(val) { + if (val) { + this.status = 1; } else { - this.dropdownOptions.splice(index, 1); - } - }, - getDefaultFile: function getDefaultFile(record) { - if (lodash_isNil__WEBPACK_IMPORTED_MODULE_0___default()(this.attribute)) { - return []; - } - - var dropdownOption = this.attribute.dropdown_options[record]; - - if (!lodash_isNil__WEBPACK_IMPORTED_MODULE_0___default()(dropdownOption) && !lodash_isNil__WEBPACK_IMPORTED_MODULE_0___default()(dropdownOption.path)) { - var filename = dropdownOption.path.replace(/^.*[\\\/]/, ''); - return [{ - uid: dropdownOption.id, - name: filename, - status: 'done', - url: '/storage/' + dropdownOption.path - }]; + this.status = 0; } }, - dropdownOptionDisplayTextName: function dropdownOptionDisplayTextName(index) { - return 'dropdown_option[' + index + '][display_text]'; - }, - dropdown_options_image: function dropdown_options_image(index) { - return 'dropdown_option_image[' + index + ']'; + clickCancelButton: function clickCancelButton() { + window.location = this.baseUrl + '/promotion-code'; } }, mounted: function mounted() { - var _this = this; - - this.headers = { - 'X-CSRF-TOKEN': document.head.querySelector('meta[name="csrf-token"]').content - }; - - if (!lodash_isNil__WEBPACK_IMPORTED_MODULE_0___default()(this.attribute)) { - this.display_as = this.attribute.display_as; - this.fields.forEach(function (field) { - _this.attributeForm.getFieldDecorator(field, { - initialValue: _this.attribute[field] - }); - }); + if (!lodash_isNil__WEBPACK_IMPORTED_MODULE_1___default()(this.promotionCode)) { + this.status = this.promotionCode.status; + this.type = this.promotionCode.type; + } - if (this.attribute.dropdown_options.length > 0) { - this.attribute.dropdown_options.forEach(function (element) { - _this.dropdownOptions.push(element.id); + if (!lodash_isNil__WEBPACK_IMPORTED_MODULE_1___default()(this.promotionCode.active_from)) { + this.activeFromDefault = moment__WEBPACK_IMPORTED_MODULE_2___default()(this.promotionCode.active_from, 'Y-MM-DD'); + this.activeFrom = this.promotionCode.active_from; + } - _this.attributeForm.getFieldDecorator('dropdown_options[' + element.id + ']', { - initialValue: element.display_text, - preserve: true - }); - }); - } - } else { - this.dropdownOptions.push(this.randomString()); + if (!lodash_isNil__WEBPACK_IMPORTED_MODULE_1___default()(this.promotionCode.active_till)) { + this.activeTillDefault = moment__WEBPACK_IMPORTED_MODULE_2___default()(this.promotionCode.active_till, 'Y-MM-DD'); + this.activeTill = this.promotionCode.active_till; } } }); /***/ }), -/***/ "./vendor/avored/framework/resources/components/catalog/attribute/AttributeSave.vue": -/*!******************************************************************************************!*\ - !*** ./vendor/avored/framework/resources/components/catalog/attribute/AttributeSave.vue ***! - \******************************************************************************************/ +/***/ "./node_modules/moment/locale sync recursive ^\\.\\/.*$": +/*!**************************************************!*\ + !*** ./node_modules/moment/locale sync ^\.\/.*$ ***! + \**************************************************/ +/*! no static exports found */ +/***/ (function(module, exports, __webpack_require__) { + +var map = { + "./af": "./node_modules/moment/locale/af.js", + "./af.js": "./node_modules/moment/locale/af.js", + "./ar": "./node_modules/moment/locale/ar.js", + "./ar-dz": "./node_modules/moment/locale/ar-dz.js", + "./ar-dz.js": "./node_modules/moment/locale/ar-dz.js", + "./ar-kw": "./node_modules/moment/locale/ar-kw.js", + "./ar-kw.js": "./node_modules/moment/locale/ar-kw.js", + "./ar-ly": "./node_modules/moment/locale/ar-ly.js", + "./ar-ly.js": "./node_modules/moment/locale/ar-ly.js", + "./ar-ma": "./node_modules/moment/locale/ar-ma.js", + "./ar-ma.js": "./node_modules/moment/locale/ar-ma.js", + "./ar-sa": "./node_modules/moment/locale/ar-sa.js", + "./ar-sa.js": "./node_modules/moment/locale/ar-sa.js", + "./ar-tn": "./node_modules/moment/locale/ar-tn.js", + "./ar-tn.js": "./node_modules/moment/locale/ar-tn.js", + "./ar.js": "./node_modules/moment/locale/ar.js", + "./az": "./node_modules/moment/locale/az.js", + "./az.js": "./node_modules/moment/locale/az.js", + "./be": "./node_modules/moment/locale/be.js", + "./be.js": "./node_modules/moment/locale/be.js", + "./bg": "./node_modules/moment/locale/bg.js", + "./bg.js": "./node_modules/moment/locale/bg.js", + "./bm": "./node_modules/moment/locale/bm.js", + "./bm.js": "./node_modules/moment/locale/bm.js", + "./bn": "./node_modules/moment/locale/bn.js", + "./bn.js": "./node_modules/moment/locale/bn.js", + "./bo": "./node_modules/moment/locale/bo.js", + "./bo.js": "./node_modules/moment/locale/bo.js", + "./br": "./node_modules/moment/locale/br.js", + "./br.js": "./node_modules/moment/locale/br.js", + "./bs": "./node_modules/moment/locale/bs.js", + "./bs.js": "./node_modules/moment/locale/bs.js", + "./ca": "./node_modules/moment/locale/ca.js", + "./ca.js": "./node_modules/moment/locale/ca.js", + "./cs": "./node_modules/moment/locale/cs.js", + "./cs.js": "./node_modules/moment/locale/cs.js", + "./cv": "./node_modules/moment/locale/cv.js", + "./cv.js": "./node_modules/moment/locale/cv.js", + "./cy": "./node_modules/moment/locale/cy.js", + "./cy.js": "./node_modules/moment/locale/cy.js", + "./da": "./node_modules/moment/locale/da.js", + "./da.js": "./node_modules/moment/locale/da.js", + "./de": "./node_modules/moment/locale/de.js", + "./de-at": "./node_modules/moment/locale/de-at.js", + "./de-at.js": "./node_modules/moment/locale/de-at.js", + "./de-ch": "./node_modules/moment/locale/de-ch.js", + "./de-ch.js": "./node_modules/moment/locale/de-ch.js", + "./de.js": "./node_modules/moment/locale/de.js", + "./dv": "./node_modules/moment/locale/dv.js", + "./dv.js": "./node_modules/moment/locale/dv.js", + "./el": "./node_modules/moment/locale/el.js", + "./el.js": "./node_modules/moment/locale/el.js", + "./en-SG": "./node_modules/moment/locale/en-SG.js", + "./en-SG.js": "./node_modules/moment/locale/en-SG.js", + "./en-au": "./node_modules/moment/locale/en-au.js", + "./en-au.js": "./node_modules/moment/locale/en-au.js", + "./en-ca": "./node_modules/moment/locale/en-ca.js", + "./en-ca.js": "./node_modules/moment/locale/en-ca.js", + "./en-gb": "./node_modules/moment/locale/en-gb.js", + "./en-gb.js": "./node_modules/moment/locale/en-gb.js", + "./en-ie": "./node_modules/moment/locale/en-ie.js", + "./en-ie.js": "./node_modules/moment/locale/en-ie.js", + "./en-il": "./node_modules/moment/locale/en-il.js", + "./en-il.js": "./node_modules/moment/locale/en-il.js", + "./en-nz": "./node_modules/moment/locale/en-nz.js", + "./en-nz.js": "./node_modules/moment/locale/en-nz.js", + "./eo": "./node_modules/moment/locale/eo.js", + "./eo.js": "./node_modules/moment/locale/eo.js", + "./es": "./node_modules/moment/locale/es.js", + "./es-do": "./node_modules/moment/locale/es-do.js", + "./es-do.js": "./node_modules/moment/locale/es-do.js", + "./es-us": "./node_modules/moment/locale/es-us.js", + "./es-us.js": "./node_modules/moment/locale/es-us.js", + "./es.js": "./node_modules/moment/locale/es.js", + "./et": "./node_modules/moment/locale/et.js", + "./et.js": "./node_modules/moment/locale/et.js", + "./eu": "./node_modules/moment/locale/eu.js", + "./eu.js": "./node_modules/moment/locale/eu.js", + "./fa": "./node_modules/moment/locale/fa.js", + "./fa.js": "./node_modules/moment/locale/fa.js", + "./fi": "./node_modules/moment/locale/fi.js", + "./fi.js": "./node_modules/moment/locale/fi.js", + "./fo": "./node_modules/moment/locale/fo.js", + "./fo.js": "./node_modules/moment/locale/fo.js", + "./fr": "./node_modules/moment/locale/fr.js", + "./fr-ca": "./node_modules/moment/locale/fr-ca.js", + "./fr-ca.js": "./node_modules/moment/locale/fr-ca.js", + "./fr-ch": "./node_modules/moment/locale/fr-ch.js", + "./fr-ch.js": "./node_modules/moment/locale/fr-ch.js", + "./fr.js": "./node_modules/moment/locale/fr.js", + "./fy": "./node_modules/moment/locale/fy.js", + "./fy.js": "./node_modules/moment/locale/fy.js", + "./ga": "./node_modules/moment/locale/ga.js", + "./ga.js": "./node_modules/moment/locale/ga.js", + "./gd": "./node_modules/moment/locale/gd.js", + "./gd.js": "./node_modules/moment/locale/gd.js", + "./gl": "./node_modules/moment/locale/gl.js", + "./gl.js": "./node_modules/moment/locale/gl.js", + "./gom-latn": "./node_modules/moment/locale/gom-latn.js", + "./gom-latn.js": "./node_modules/moment/locale/gom-latn.js", + "./gu": "./node_modules/moment/locale/gu.js", + "./gu.js": "./node_modules/moment/locale/gu.js", + "./he": "./node_modules/moment/locale/he.js", + "./he.js": "./node_modules/moment/locale/he.js", + "./hi": "./node_modules/moment/locale/hi.js", + "./hi.js": "./node_modules/moment/locale/hi.js", + "./hr": "./node_modules/moment/locale/hr.js", + "./hr.js": "./node_modules/moment/locale/hr.js", + "./hu": "./node_modules/moment/locale/hu.js", + "./hu.js": "./node_modules/moment/locale/hu.js", + "./hy-am": "./node_modules/moment/locale/hy-am.js", + "./hy-am.js": "./node_modules/moment/locale/hy-am.js", + "./id": "./node_modules/moment/locale/id.js", + "./id.js": "./node_modules/moment/locale/id.js", + "./is": "./node_modules/moment/locale/is.js", + "./is.js": "./node_modules/moment/locale/is.js", + "./it": "./node_modules/moment/locale/it.js", + "./it-ch": "./node_modules/moment/locale/it-ch.js", + "./it-ch.js": "./node_modules/moment/locale/it-ch.js", + "./it.js": "./node_modules/moment/locale/it.js", + "./ja": "./node_modules/moment/locale/ja.js", + "./ja.js": "./node_modules/moment/locale/ja.js", + "./jv": "./node_modules/moment/locale/jv.js", + "./jv.js": "./node_modules/moment/locale/jv.js", + "./ka": "./node_modules/moment/locale/ka.js", + "./ka.js": "./node_modules/moment/locale/ka.js", + "./kk": "./node_modules/moment/locale/kk.js", + "./kk.js": "./node_modules/moment/locale/kk.js", + "./km": "./node_modules/moment/locale/km.js", + "./km.js": "./node_modules/moment/locale/km.js", + "./kn": "./node_modules/moment/locale/kn.js", + "./kn.js": "./node_modules/moment/locale/kn.js", + "./ko": "./node_modules/moment/locale/ko.js", + "./ko.js": "./node_modules/moment/locale/ko.js", + "./ku": "./node_modules/moment/locale/ku.js", + "./ku.js": "./node_modules/moment/locale/ku.js", + "./ky": "./node_modules/moment/locale/ky.js", + "./ky.js": "./node_modules/moment/locale/ky.js", + "./lb": "./node_modules/moment/locale/lb.js", + "./lb.js": "./node_modules/moment/locale/lb.js", + "./lo": "./node_modules/moment/locale/lo.js", + "./lo.js": "./node_modules/moment/locale/lo.js", + "./lt": "./node_modules/moment/locale/lt.js", + "./lt.js": "./node_modules/moment/locale/lt.js", + "./lv": "./node_modules/moment/locale/lv.js", + "./lv.js": "./node_modules/moment/locale/lv.js", + "./me": "./node_modules/moment/locale/me.js", + "./me.js": "./node_modules/moment/locale/me.js", + "./mi": "./node_modules/moment/locale/mi.js", + "./mi.js": "./node_modules/moment/locale/mi.js", + "./mk": "./node_modules/moment/locale/mk.js", + "./mk.js": "./node_modules/moment/locale/mk.js", + "./ml": "./node_modules/moment/locale/ml.js", + "./ml.js": "./node_modules/moment/locale/ml.js", + "./mn": "./node_modules/moment/locale/mn.js", + "./mn.js": "./node_modules/moment/locale/mn.js", + "./mr": "./node_modules/moment/locale/mr.js", + "./mr.js": "./node_modules/moment/locale/mr.js", + "./ms": "./node_modules/moment/locale/ms.js", + "./ms-my": "./node_modules/moment/locale/ms-my.js", + "./ms-my.js": "./node_modules/moment/locale/ms-my.js", + "./ms.js": "./node_modules/moment/locale/ms.js", + "./mt": "./node_modules/moment/locale/mt.js", + "./mt.js": "./node_modules/moment/locale/mt.js", + "./my": "./node_modules/moment/locale/my.js", + "./my.js": "./node_modules/moment/locale/my.js", + "./nb": "./node_modules/moment/locale/nb.js", + "./nb.js": "./node_modules/moment/locale/nb.js", + "./ne": "./node_modules/moment/locale/ne.js", + "./ne.js": "./node_modules/moment/locale/ne.js", + "./nl": "./node_modules/moment/locale/nl.js", + "./nl-be": "./node_modules/moment/locale/nl-be.js", + "./nl-be.js": "./node_modules/moment/locale/nl-be.js", + "./nl.js": "./node_modules/moment/locale/nl.js", + "./nn": "./node_modules/moment/locale/nn.js", + "./nn.js": "./node_modules/moment/locale/nn.js", + "./pa-in": "./node_modules/moment/locale/pa-in.js", + "./pa-in.js": "./node_modules/moment/locale/pa-in.js", + "./pl": "./node_modules/moment/locale/pl.js", + "./pl.js": "./node_modules/moment/locale/pl.js", + "./pt": "./node_modules/moment/locale/pt.js", + "./pt-br": "./node_modules/moment/locale/pt-br.js", + "./pt-br.js": "./node_modules/moment/locale/pt-br.js", + "./pt.js": "./node_modules/moment/locale/pt.js", + "./ro": "./node_modules/moment/locale/ro.js", + "./ro.js": "./node_modules/moment/locale/ro.js", + "./ru": "./node_modules/moment/locale/ru.js", + "./ru.js": "./node_modules/moment/locale/ru.js", + "./sd": "./node_modules/moment/locale/sd.js", + "./sd.js": "./node_modules/moment/locale/sd.js", + "./se": "./node_modules/moment/locale/se.js", + "./se.js": "./node_modules/moment/locale/se.js", + "./si": "./node_modules/moment/locale/si.js", + "./si.js": "./node_modules/moment/locale/si.js", + "./sk": "./node_modules/moment/locale/sk.js", + "./sk.js": "./node_modules/moment/locale/sk.js", + "./sl": "./node_modules/moment/locale/sl.js", + "./sl.js": "./node_modules/moment/locale/sl.js", + "./sq": "./node_modules/moment/locale/sq.js", + "./sq.js": "./node_modules/moment/locale/sq.js", + "./sr": "./node_modules/moment/locale/sr.js", + "./sr-cyrl": "./node_modules/moment/locale/sr-cyrl.js", + "./sr-cyrl.js": "./node_modules/moment/locale/sr-cyrl.js", + "./sr.js": "./node_modules/moment/locale/sr.js", + "./ss": "./node_modules/moment/locale/ss.js", + "./ss.js": "./node_modules/moment/locale/ss.js", + "./sv": "./node_modules/moment/locale/sv.js", + "./sv.js": "./node_modules/moment/locale/sv.js", + "./sw": "./node_modules/moment/locale/sw.js", + "./sw.js": "./node_modules/moment/locale/sw.js", + "./ta": "./node_modules/moment/locale/ta.js", + "./ta.js": "./node_modules/moment/locale/ta.js", + "./te": "./node_modules/moment/locale/te.js", + "./te.js": "./node_modules/moment/locale/te.js", + "./tet": "./node_modules/moment/locale/tet.js", + "./tet.js": "./node_modules/moment/locale/tet.js", + "./tg": "./node_modules/moment/locale/tg.js", + "./tg.js": "./node_modules/moment/locale/tg.js", + "./th": "./node_modules/moment/locale/th.js", + "./th.js": "./node_modules/moment/locale/th.js", + "./tl-ph": "./node_modules/moment/locale/tl-ph.js", + "./tl-ph.js": "./node_modules/moment/locale/tl-ph.js", + "./tlh": "./node_modules/moment/locale/tlh.js", + "./tlh.js": "./node_modules/moment/locale/tlh.js", + "./tr": "./node_modules/moment/locale/tr.js", + "./tr.js": "./node_modules/moment/locale/tr.js", + "./tzl": "./node_modules/moment/locale/tzl.js", + "./tzl.js": "./node_modules/moment/locale/tzl.js", + "./tzm": "./node_modules/moment/locale/tzm.js", + "./tzm-latn": "./node_modules/moment/locale/tzm-latn.js", + "./tzm-latn.js": "./node_modules/moment/locale/tzm-latn.js", + "./tzm.js": "./node_modules/moment/locale/tzm.js", + "./ug-cn": "./node_modules/moment/locale/ug-cn.js", + "./ug-cn.js": "./node_modules/moment/locale/ug-cn.js", + "./uk": "./node_modules/moment/locale/uk.js", + "./uk.js": "./node_modules/moment/locale/uk.js", + "./ur": "./node_modules/moment/locale/ur.js", + "./ur.js": "./node_modules/moment/locale/ur.js", + "./uz": "./node_modules/moment/locale/uz.js", + "./uz-latn": "./node_modules/moment/locale/uz-latn.js", + "./uz-latn.js": "./node_modules/moment/locale/uz-latn.js", + "./uz.js": "./node_modules/moment/locale/uz.js", + "./vi": "./node_modules/moment/locale/vi.js", + "./vi.js": "./node_modules/moment/locale/vi.js", + "./x-pseudo": "./node_modules/moment/locale/x-pseudo.js", + "./x-pseudo.js": "./node_modules/moment/locale/x-pseudo.js", + "./yo": "./node_modules/moment/locale/yo.js", + "./yo.js": "./node_modules/moment/locale/yo.js", + "./zh-cn": "./node_modules/moment/locale/zh-cn.js", + "./zh-cn.js": "./node_modules/moment/locale/zh-cn.js", + "./zh-hk": "./node_modules/moment/locale/zh-hk.js", + "./zh-hk.js": "./node_modules/moment/locale/zh-hk.js", + "./zh-tw": "./node_modules/moment/locale/zh-tw.js", + "./zh-tw.js": "./node_modules/moment/locale/zh-tw.js" +}; + + +function webpackContext(req) { + var id = webpackContextResolve(req); + return __webpack_require__(id); +} +function webpackContextResolve(req) { + if(!__webpack_require__.o(map, req)) { + var e = new Error("Cannot find module '" + req + "'"); + e.code = 'MODULE_NOT_FOUND'; + throw e; + } + return map[req]; +} +webpackContext.keys = function webpackContextKeys() { + return Object.keys(map); +}; +webpackContext.resolve = webpackContextResolve; +module.exports = webpackContext; +webpackContext.id = "./node_modules/moment/locale sync recursive ^\\.\\/.*$"; + +/***/ }), + +/***/ "./packages/framework/resources/components/promotion/promotion-code/PromotionCodeEdit.vue": +/*!************************************************************************************************!*\ + !*** ./packages/framework/resources/components/promotion/promotion-code/PromotionCodeEdit.vue ***! + \************************************************************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); -/* harmony import */ var _AttributeSave_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./AttributeSave.vue?vue&type=script&lang=js& */ "./vendor/avored/framework/resources/components/catalog/attribute/AttributeSave.vue?vue&type=script&lang=js&"); -/* empty/unused harmony star reexport *//* harmony import */ var _node_modules_vue_loader_lib_runtime_componentNormalizer_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../../../../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js */ "./node_modules/vue-loader/lib/runtime/componentNormalizer.js"); +/* harmony import */ var _PromotionCodeEdit_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./PromotionCodeEdit.vue?vue&type=script&lang=js& */ "./packages/framework/resources/components/promotion/promotion-code/PromotionCodeEdit.vue?vue&type=script&lang=js&"); +/* empty/unused harmony star reexport *//* harmony import */ var _node_modules_vue_loader_lib_runtime_componentNormalizer_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../../../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js */ "./node_modules/vue-loader/lib/runtime/componentNormalizer.js"); var render, staticRenderFns @@ -155,7 +385,7 @@ var render, staticRenderFns /* normalize component */ var component = Object(_node_modules_vue_loader_lib_runtime_componentNormalizer_js__WEBPACK_IMPORTED_MODULE_1__["default"])( - _AttributeSave_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0__["default"], + _PromotionCodeEdit_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0__["default"], render, staticRenderFns, false, @@ -167,22 +397,22 @@ var component = Object(_node_modules_vue_loader_lib_runtime_componentNormalizer_ /* hot reload */ if (false) { var api; } -component.options.__file = "vendor/avored/framework/resources/components/catalog/attribute/AttributeSave.vue" +component.options.__file = "packages/framework/resources/components/promotion/promotion-code/PromotionCodeEdit.vue" /* harmony default export */ __webpack_exports__["default"] = (component.exports); /***/ }), -/***/ "./vendor/avored/framework/resources/components/catalog/attribute/AttributeSave.vue?vue&type=script&lang=js&": -/*!*******************************************************************************************************************!*\ - !*** ./vendor/avored/framework/resources/components/catalog/attribute/AttributeSave.vue?vue&type=script&lang=js& ***! - \*******************************************************************************************************************/ +/***/ "./packages/framework/resources/components/promotion/promotion-code/PromotionCodeEdit.vue?vue&type=script&lang=js&": +/*!*************************************************************************************************************************!*\ + !*** ./packages/framework/resources/components/promotion/promotion-code/PromotionCodeEdit.vue?vue&type=script&lang=js& ***! + \*************************************************************************************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); -/* harmony import */ var _node_modules_babel_loader_lib_index_js_ref_4_0_node_modules_vue_loader_lib_index_js_vue_loader_options_AttributeSave_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! -!../../../../../../../node_modules/babel-loader/lib??ref--4-0!../../../../../../../node_modules/vue-loader/lib??vue-loader-options!./AttributeSave.vue?vue&type=script&lang=js& */ "./node_modules/babel-loader/lib/index.js?!./node_modules/vue-loader/lib/index.js?!./vendor/avored/framework/resources/components/catalog/attribute/AttributeSave.vue?vue&type=script&lang=js&"); -/* empty/unused harmony star reexport */ /* harmony default export */ __webpack_exports__["default"] = (_node_modules_babel_loader_lib_index_js_ref_4_0_node_modules_vue_loader_lib_index_js_vue_loader_options_AttributeSave_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0__["default"]); +/* harmony import */ var _node_modules_babel_loader_lib_index_js_ref_4_0_node_modules_vue_loader_lib_index_js_vue_loader_options_PromotionCodeEdit_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! -!../../../../../../node_modules/babel-loader/lib??ref--4-0!../../../../../../node_modules/vue-loader/lib??vue-loader-options!./PromotionCodeEdit.vue?vue&type=script&lang=js& */ "./node_modules/babel-loader/lib/index.js?!./node_modules/vue-loader/lib/index.js?!./packages/framework/resources/components/promotion/promotion-code/PromotionCodeEdit.vue?vue&type=script&lang=js&"); +/* empty/unused harmony star reexport */ /* harmony default export */ __webpack_exports__["default"] = (_node_modules_babel_loader_lib_index_js_ref_4_0_node_modules_vue_loader_lib_index_js_vue_loader_options_PromotionCodeEdit_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0__["default"]); /***/ }) diff --git a/public/avored-admin/js/chunk/12.js b/public/avored-admin/js/chunk/12.js index 27c9b4107..714a122d6 100644 --- a/public/avored-admin/js/chunk/12.js +++ b/public/avored-admin/js/chunk/12.js @@ -1,155 +1,301 @@ (window["webpackJsonp"] = window["webpackJsonp"] || []).push([[12],{ -/***/ "./node_modules/babel-loader/lib/index.js?!./node_modules/vue-loader/lib/index.js?!./vendor/avored/framework/resources/components/catalog/attribute/AttributeTable.vue?vue&type=script&lang=js&": -/*!****************************************************************************************************************************************************************************************************************!*\ - !*** ./node_modules/babel-loader/lib??ref--4-0!./node_modules/vue-loader/lib??vue-loader-options!./vendor/avored/framework/resources/components/catalog/attribute/AttributeTable.vue?vue&type=script&lang=js& ***! - \****************************************************************************************************************************************************************************************************************/ -/*! exports provided: default */ -/***/ (function(module, __webpack_exports__, __webpack_require__) { +/***/ "./node_modules/ant-design-vue/lib/tag/CheckableTag.js": +/*!*************************************************************!*\ + !*** ./node_modules/ant-design-vue/lib/tag/CheckableTag.js ***! + \*************************************************************/ +/*! no static exports found */ +/***/ (function(module, exports, __webpack_require__) { "use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony import */ var lodash_isNil__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! lodash/isNil */ "./node_modules/lodash/isNil.js"); -/* harmony import */ var lodash_isNil__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(lodash_isNil__WEBPACK_IMPORTED_MODULE_0__); - -var columns = [{ - title: 'Name', - dataIndex: 'name', - key: 'name', - sorter: true -}, { - title: 'Slug', - dataIndex: 'slug', - key: 'slug', - sorter: true -}, { - title: 'Action', - key: 'action', - scopedSlots: { - customRender: 'action' + + +Object.defineProperty(exports, "__esModule", { + value: true +}); + +var _defineProperty2 = __webpack_require__(/*! babel-runtime/helpers/defineProperty */ "./node_modules/babel-runtime/helpers/defineProperty.js"); + +var _defineProperty3 = _interopRequireDefault(_defineProperty2); + +var _vueTypes = __webpack_require__(/*! ../_util/vue-types */ "./node_modules/ant-design-vue/lib/_util/vue-types/index.js"); + +var _vueTypes2 = _interopRequireDefault(_vueTypes); + +var _configProvider = __webpack_require__(/*! ../config-provider */ "./node_modules/ant-design-vue/lib/config-provider/index.js"); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } + +exports['default'] = { + name: 'ACheckableTag', + model: { + prop: 'checked' }, - sorter: false, - width: "10%" -}]; -/* harmony default export */ __webpack_exports__["default"] = ({ - props: ['baseUrl', 'attributes'], - data: function data() { - return { - columns: columns - }; + props: { + prefixCls: _vueTypes2['default'].string, + checked: Boolean + }, + inject: { + configProvider: { 'default': function _default() { + return _configProvider.ConfigConsumerProps; + } } + }, + computed: { + classes: function classes() { + var _ref; + + var checked = this.checked, + customizePrefixCls = this.prefixCls; + + var getPrefixCls = this.configProvider.getPrefixCls; + var prefixCls = getPrefixCls('tag', customizePrefixCls); + return _ref = {}, (0, _defineProperty3['default'])(_ref, '' + prefixCls, true), (0, _defineProperty3['default'])(_ref, prefixCls + '-checkable', true), (0, _defineProperty3['default'])(_ref, prefixCls + '-checkable-checked', checked), _ref; + } }, methods: { - handleTableChange: function handleTableChange(pagination, filters, sorter) { - this.attributes.sort(function (a, b) { - var columnKey = sorter.columnKey; - var order = sorter.order; + handleClick: function handleClick() { + var checked = this.checked; - if (lodash_isNil__WEBPACK_IMPORTED_MODULE_0___default()(a[columnKey])) { - a[columnKey] = ''; - } + this.$emit('input', !checked); + this.$emit('change', !checked); + } + }, + render: function render() { + var h = arguments[0]; + var classes = this.classes, + handleClick = this.handleClick, + $slots = this.$slots; - if (lodash_isNil__WEBPACK_IMPORTED_MODULE_0___default()(b[columnKey])) { - b[columnKey] = ''; + return h( + 'div', + { 'class': classes, on: { + 'click': handleClick } + }, + [$slots['default']] + ); + } +}; - if (order === 'ascend') { - if (a[columnKey] < b[columnKey]) return -1; - if (a[columnKey] > b[columnKey]) return 1; - } +/***/ }), - if (order === 'descend') { - if (a[columnKey] > b[columnKey]) return -1; - if (a[columnKey] < b[columnKey]) return 1; - } +/***/ "./node_modules/ant-design-vue/lib/tag/Tag.js": +/*!****************************************************!*\ + !*** ./node_modules/ant-design-vue/lib/tag/Tag.js ***! + \****************************************************/ +/*! no static exports found */ +/***/ (function(module, exports, __webpack_require__) { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", { + value: true +}); + +var _babelHelperVueJsxMergeProps = __webpack_require__(/*! babel-helper-vue-jsx-merge-props */ "./node_modules/babel-helper-vue-jsx-merge-props/index.js"); + +var _babelHelperVueJsxMergeProps2 = _interopRequireDefault(_babelHelperVueJsxMergeProps); + +var _defineProperty2 = __webpack_require__(/*! babel-runtime/helpers/defineProperty */ "./node_modules/babel-runtime/helpers/defineProperty.js"); + +var _defineProperty3 = _interopRequireDefault(_defineProperty2); + +var _vueTypes = __webpack_require__(/*! ../_util/vue-types */ "./node_modules/ant-design-vue/lib/_util/vue-types/index.js"); + +var _vueTypes2 = _interopRequireDefault(_vueTypes); + +var _icon = __webpack_require__(/*! ../icon */ "./node_modules/ant-design-vue/lib/icon/index.js"); + +var _icon2 = _interopRequireDefault(_icon); + +var _getTransitionProps = __webpack_require__(/*! ../_util/getTransitionProps */ "./node_modules/ant-design-vue/lib/_util/getTransitionProps.js"); + +var _getTransitionProps2 = _interopRequireDefault(_getTransitionProps); - return 0; +var _omit = __webpack_require__(/*! omit.js */ "./node_modules/omit.js/es/index.js"); + +var _omit2 = _interopRequireDefault(_omit); + +var _wave = __webpack_require__(/*! ../_util/wave */ "./node_modules/ant-design-vue/lib/_util/wave.js"); + +var _wave2 = _interopRequireDefault(_wave); + +var _propsUtil = __webpack_require__(/*! ../_util/props-util */ "./node_modules/ant-design-vue/lib/_util/props-util.js"); + +var _BaseMixin = __webpack_require__(/*! ../_util/BaseMixin */ "./node_modules/ant-design-vue/lib/_util/BaseMixin.js"); + +var _BaseMixin2 = _interopRequireDefault(_BaseMixin); + +var _configProvider = __webpack_require__(/*! ../config-provider */ "./node_modules/ant-design-vue/lib/config-provider/index.js"); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } + +exports['default'] = { + name: 'ATag', + mixins: [_BaseMixin2['default']], + model: { + prop: 'visible', + event: 'close.visible' + }, + props: { + prefixCls: _vueTypes2['default'].string, + color: _vueTypes2['default'].string, + closable: _vueTypes2['default'].bool.def(false), + visible: _vueTypes2['default'].bool, + afterClose: _vueTypes2['default'].func + }, + inject: { + configProvider: { 'default': function _default() { + return _configProvider.ConfigConsumerProps; + } } + }, + data: function data() { + var _visible = true; + if ((0, _propsUtil.hasProp)(this, 'visible')) { + _visible = this.visible; + } + return { + _visible: _visible + }; + }, + + watch: { + visible: function visible(val) { + this.setState({ + _visible: val }); + } + }, + methods: { + setVisible: function setVisible(visible, e) { + this.$emit('close', e); + this.$emit('close.visible', false); + if (e.defaultPrevented) { + return; + } + if (!(0, _propsUtil.hasProp)(this, 'visible')) { + this.setState({ _visible: visible }); + } + }, + handleIconClick: function handleIconClick(e) { + this.setVisible(false, e); + }, + animationEnd: function animationEnd() { + var afterClose = this.afterClose; + if (afterClose) { + afterClose(); + } }, - getEditUrl: function getEditUrl(record) { - return this.baseUrl + '/attribute/' + record.id + '/edit'; + isPresetColor: function isPresetColor(color) { + if (!color) { + return false; + } + return (/^(pink|red|yellow|orange|cyan|green|blue|purple|geekblue|magenta|volcano|gold|lime)(-inverse)?$/.test(color) + ); + }, + getTagStyle: function getTagStyle() { + var color = this.$props.color; + + var isPresetColor = this.isPresetColor(color); + return { + backgroundColor: color && !isPresetColor ? color : undefined + }; }, - getDeleteUrl: function getDeleteUrl(record) { - return this.baseUrl + '/attribute/' + record.id; + getTagClassName: function getTagClassName(prefixCls) { + var _ref; + + var color = this.$props.color; + + var isPresetColor = this.isPresetColor(color); + return _ref = {}, (0, _defineProperty3['default'])(_ref, prefixCls, true), (0, _defineProperty3['default'])(_ref, prefixCls + '-' + color, isPresetColor), (0, _defineProperty3['default'])(_ref, prefixCls + '-has-color', color && !isPresetColor), _ref; }, - deleteAttribute: function deleteAttribute(record) { - var url = this.baseUrl + '/attribute/' + record.id; - var app = this; - this.$confirm({ - title: 'Do you Want to delete ' + record.name + ' attribute?', - okType: 'danger', - onOk: function onOk() { - axios["delete"](url).then(function (response) { - if (response.data.success === true) { - app.$notification.error({ - key: 'attribute.delete.success', - message: response.data.message - }); - } - - window.location.reload(); - })["catch"](function (errors) { - app.$notification.error({ - key: 'attribute.delete.error', - message: errors.message - }); - }); - }, - onCancel: function onCancel() {// Do nothing + renderCloseIcon: function renderCloseIcon() { + var h = this.$createElement; + var closable = this.$props.closable; + + return closable ? h(_icon2['default'], { + attrs: { type: 'close' }, + on: { + 'click': this.handleIconClick } - }); + }) : null; } + }, + + render: function render() { + var h = arguments[0]; + var customizePrefixCls = this.$props.prefixCls; + + var getPrefixCls = this.configProvider.getPrefixCls; + var prefixCls = getPrefixCls('tag', customizePrefixCls); + var visible = this.$data._visible; + + var tag = h( + 'div', + (0, _babelHelperVueJsxMergeProps2['default'])([{ + directives: [{ + name: 'show', + value: visible + }] + }, { on: (0, _omit2['default'])(this.$listeners, ['close']) }, { + 'class': this.getTagClassName(prefixCls), + style: this.getTagStyle() + }]), + [this.$slots['default'], this.renderCloseIcon()] + ); + var transitionProps = (0, _getTransitionProps2['default'])(prefixCls + '-zoom', { + appear: false, + afterLeave: this.animationEnd + }); + return h(_wave2['default'], [h( + 'transition', + transitionProps, + [tag] + )]); } -}); +}; /***/ }), -/***/ "./vendor/avored/framework/resources/components/catalog/attribute/AttributeTable.vue": -/*!*******************************************************************************************!*\ - !*** ./vendor/avored/framework/resources/components/catalog/attribute/AttributeTable.vue ***! - \*******************************************************************************************/ -/*! exports provided: default */ -/***/ (function(module, __webpack_exports__, __webpack_require__) { +/***/ "./node_modules/ant-design-vue/lib/tag/index.js": +/*!******************************************************!*\ + !*** ./node_modules/ant-design-vue/lib/tag/index.js ***! + \******************************************************/ +/*! no static exports found */ +/***/ (function(module, exports, __webpack_require__) { "use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony import */ var _AttributeTable_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./AttributeTable.vue?vue&type=script&lang=js& */ "./vendor/avored/framework/resources/components/catalog/attribute/AttributeTable.vue?vue&type=script&lang=js&"); -/* empty/unused harmony star reexport *//* harmony import */ var _node_modules_vue_loader_lib_runtime_componentNormalizer_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../../../../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js */ "./node_modules/vue-loader/lib/runtime/componentNormalizer.js"); -var render, staticRenderFns +Object.defineProperty(exports, "__esModule", { + value: true +}); + +var _Tag = __webpack_require__(/*! ./Tag */ "./node_modules/ant-design-vue/lib/tag/Tag.js"); +var _Tag2 = _interopRequireDefault(_Tag); -/* normalize component */ +var _CheckableTag = __webpack_require__(/*! ./CheckableTag */ "./node_modules/ant-design-vue/lib/tag/CheckableTag.js"); -var component = Object(_node_modules_vue_loader_lib_runtime_componentNormalizer_js__WEBPACK_IMPORTED_MODULE_1__["default"])( - _AttributeTable_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0__["default"], - render, - staticRenderFns, - false, - null, - null, - null - -) +var _CheckableTag2 = _interopRequireDefault(_CheckableTag); -/* hot reload */ -if (false) { var api; } -component.options.__file = "vendor/avored/framework/resources/components/catalog/attribute/AttributeTable.vue" -/* harmony default export */ __webpack_exports__["default"] = (component.exports); +var _base = __webpack_require__(/*! ../base */ "./node_modules/ant-design-vue/lib/base/index.js"); -/***/ }), +var _base2 = _interopRequireDefault(_base); -/***/ "./vendor/avored/framework/resources/components/catalog/attribute/AttributeTable.vue?vue&type=script&lang=js&": -/*!********************************************************************************************************************!*\ - !*** ./vendor/avored/framework/resources/components/catalog/attribute/AttributeTable.vue?vue&type=script&lang=js& ***! - \********************************************************************************************************************/ -/*! exports provided: default */ -/***/ (function(module, __webpack_exports__, __webpack_require__) { +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony import */ var _node_modules_babel_loader_lib_index_js_ref_4_0_node_modules_vue_loader_lib_index_js_vue_loader_options_AttributeTable_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! -!../../../../../../../node_modules/babel-loader/lib??ref--4-0!../../../../../../../node_modules/vue-loader/lib??vue-loader-options!./AttributeTable.vue?vue&type=script&lang=js& */ "./node_modules/babel-loader/lib/index.js?!./node_modules/vue-loader/lib/index.js?!./vendor/avored/framework/resources/components/catalog/attribute/AttributeTable.vue?vue&type=script&lang=js&"); -/* empty/unused harmony star reexport */ /* harmony default export */ __webpack_exports__["default"] = (_node_modules_babel_loader_lib_index_js_ref_4_0_node_modules_vue_loader_lib_index_js_vue_loader_options_AttributeTable_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0__["default"]); +_Tag2['default'].CheckableTag = _CheckableTag2['default']; + +/* istanbul ignore next */ +_Tag2['default'].install = function (Vue) { + Vue.use(_base2['default']); + Vue.component(_Tag2['default'].name, _Tag2['default']); + Vue.component(_Tag2['default'].CheckableTag.name, _Tag2['default'].CheckableTag); +}; + +exports['default'] = _Tag2['default']; /***/ }) diff --git a/public/avored-admin/js/chunk/13.js b/public/avored-admin/js/chunk/13.js index ab24f3c92..6046de9ac 100644 --- a/public/avored-admin/js/chunk/13.js +++ b/public/avored-admin/js/chunk/13.js @@ -1,48 +1,152 @@ (window["webpackJsonp"] = window["webpackJsonp"] || []).push([[13],{ -/***/ "./node_modules/babel-loader/lib/index.js?!./node_modules/vue-loader/lib/index.js?!./vendor/avored/framework/resources/components/catalog/category/CategorySave.vue?vue&type=script&lang=js&": -/*!*************************************************************************************************************************************************************************************************************!*\ - !*** ./node_modules/babel-loader/lib??ref--4-0!./node_modules/vue-loader/lib??vue-loader-options!./vendor/avored/framework/resources/components/catalog/category/CategorySave.vue?vue&type=script&lang=js& ***! - \*************************************************************************************************************************************************************************************************************/ +/***/ "./node_modules/babel-loader/lib/index.js?!./node_modules/vue-loader/lib/index.js?!./packages/framework/resources/components/catalog/attribute/AttributeSave.vue?vue&type=script&lang=js&": +/*!**********************************************************************************************************************************************************************************************************!*\ + !*** ./node_modules/babel-loader/lib??ref--4-0!./node_modules/vue-loader/lib??vue-loader-options!./packages/framework/resources/components/catalog/attribute/AttributeSave.vue?vue&type=script&lang=js& ***! + \**********************************************************************************************************************************************************************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); +/* harmony import */ var lodash_isNil__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! lodash/isNil */ "./node_modules/lodash/isNil.js"); +/* harmony import */ var lodash_isNil__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(lodash_isNil__WEBPACK_IMPORTED_MODULE_0__); + +var id = 0; /* harmony default export */ __webpack_exports__["default"] = ({ - props: ['category', 'baseUrl'], + props: ['attribute', 'baseUrl'], data: function data() { return { - categoryForm: this.$form.createForm(this) + attributeForm: this.$form.createForm(this), + dropdownOptions: [], + image_path_lists: [], + headers: {}, + display_as: '', + fields: ['name', 'slug', 'display_as'] }; }, methods: { handleSubmit: function handleSubmit() { - this.categoryForm.validateFields(function (err, values) { + this.attributeForm.validateFields(function (err, values) { if (err) { e.preventDefault(); } }); }, - cancelCategory: function cancelCategory() { - window.location = this.baseUrl + '/category'; + imagePathName: function imagePathName(path) { + var name = "dropdown_option["; + Object.keys(path).forEach(function (key) { + name += key; + }); + name += "][path]"; + return name; + }, + imagePathValue: function imagePathValue(path) { + var value = ""; + Object.keys(path).forEach(function (key) { + value += path[key]; + }); + return value; + }, + handleUploadImageChange: function handleUploadImageChange(info, record) { + if (info.file.status == "done") { + var object = {}; + object[record] = info.file.response.path; + this.image_path_lists.push(object); + } + }, + displayAsChange: function displayAsChange(val) { + this.display_as = val; + }, + cancelAttribute: function cancelAttribute() { + window.location = this.baseUrl + '/attribute'; + }, + randomString: function randomString() { + var random_string = ''; + var random_ascii; + + for (var i = 0; i < 6; i++) { + random_ascii = Math.floor(Math.random() * 25 + 97); + random_string += String.fromCharCode(random_ascii); + } + + return random_string; + }, + dropdownOptionChange: function dropdownOptionChange(index) { + if (index == this.dropdownOptions.length - 1) { + this.dropdownOptions.push(this.randomString()); + } else { + this.dropdownOptions.splice(index, 1); + } + }, + getDefaultFile: function getDefaultFile(record) { + if (lodash_isNil__WEBPACK_IMPORTED_MODULE_0___default()(this.attribute)) { + return []; + } + + var dropdownOption = this.attribute.dropdown_options[record]; + + if (!lodash_isNil__WEBPACK_IMPORTED_MODULE_0___default()(dropdownOption) && !lodash_isNil__WEBPACK_IMPORTED_MODULE_0___default()(dropdownOption.path)) { + var filename = dropdownOption.path.replace(/^.*[\\\/]/, ''); + return [{ + uid: dropdownOption.id, + name: filename, + status: 'done', + url: '/storage/' + dropdownOption.path + }]; + } + }, + dropdownOptionDisplayTextName: function dropdownOptionDisplayTextName(index) { + return 'dropdown_option[' + index + '][display_text]'; + }, + dropdown_options_image: function dropdown_options_image(index) { + return 'dropdown_option_image[' + index + ']'; + } + }, + mounted: function mounted() { + var _this = this; + + this.headers = { + 'X-CSRF-TOKEN': document.head.querySelector('meta[name="csrf-token"]').content + }; + + if (!lodash_isNil__WEBPACK_IMPORTED_MODULE_0___default()(this.attribute)) { + this.display_as = this.attribute.display_as; + this.fields.forEach(function (field) { + _this.attributeForm.getFieldDecorator(field, { + initialValue: _this.attribute[field] + }); + }); + + if (this.attribute.dropdown_options.length > 0) { + this.attribute.dropdown_options.forEach(function (element) { + _this.dropdownOptions.push(element.id); + + _this.attributeForm.getFieldDecorator('dropdown_options[' + element.id + ']', { + initialValue: element.display_text, + preserve: true + }); + }); + } + } else { + this.dropdownOptions.push(this.randomString()); } } }); /***/ }), -/***/ "./vendor/avored/framework/resources/components/catalog/category/CategorySave.vue": -/*!****************************************************************************************!*\ - !*** ./vendor/avored/framework/resources/components/catalog/category/CategorySave.vue ***! - \****************************************************************************************/ +/***/ "./packages/framework/resources/components/catalog/attribute/AttributeSave.vue": +/*!*************************************************************************************!*\ + !*** ./packages/framework/resources/components/catalog/attribute/AttributeSave.vue ***! + \*************************************************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); -/* harmony import */ var _CategorySave_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./CategorySave.vue?vue&type=script&lang=js& */ "./vendor/avored/framework/resources/components/catalog/category/CategorySave.vue?vue&type=script&lang=js&"); -/* empty/unused harmony star reexport *//* harmony import */ var _node_modules_vue_loader_lib_runtime_componentNormalizer_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../../../../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js */ "./node_modules/vue-loader/lib/runtime/componentNormalizer.js"); +/* harmony import */ var _AttributeSave_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./AttributeSave.vue?vue&type=script&lang=js& */ "./packages/framework/resources/components/catalog/attribute/AttributeSave.vue?vue&type=script&lang=js&"); +/* empty/unused harmony star reexport *//* harmony import */ var _node_modules_vue_loader_lib_runtime_componentNormalizer_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../../../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js */ "./node_modules/vue-loader/lib/runtime/componentNormalizer.js"); var render, staticRenderFns @@ -51,7 +155,7 @@ var render, staticRenderFns /* normalize component */ var component = Object(_node_modules_vue_loader_lib_runtime_componentNormalizer_js__WEBPACK_IMPORTED_MODULE_1__["default"])( - _CategorySave_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0__["default"], + _AttributeSave_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0__["default"], render, staticRenderFns, false, @@ -63,22 +167,22 @@ var component = Object(_node_modules_vue_loader_lib_runtime_componentNormalizer_ /* hot reload */ if (false) { var api; } -component.options.__file = "vendor/avored/framework/resources/components/catalog/category/CategorySave.vue" +component.options.__file = "packages/framework/resources/components/catalog/attribute/AttributeSave.vue" /* harmony default export */ __webpack_exports__["default"] = (component.exports); /***/ }), -/***/ "./vendor/avored/framework/resources/components/catalog/category/CategorySave.vue?vue&type=script&lang=js&": -/*!*****************************************************************************************************************!*\ - !*** ./vendor/avored/framework/resources/components/catalog/category/CategorySave.vue?vue&type=script&lang=js& ***! - \*****************************************************************************************************************/ +/***/ "./packages/framework/resources/components/catalog/attribute/AttributeSave.vue?vue&type=script&lang=js&": +/*!**************************************************************************************************************!*\ + !*** ./packages/framework/resources/components/catalog/attribute/AttributeSave.vue?vue&type=script&lang=js& ***! + \**************************************************************************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); -/* harmony import */ var _node_modules_babel_loader_lib_index_js_ref_4_0_node_modules_vue_loader_lib_index_js_vue_loader_options_CategorySave_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! -!../../../../../../../node_modules/babel-loader/lib??ref--4-0!../../../../../../../node_modules/vue-loader/lib??vue-loader-options!./CategorySave.vue?vue&type=script&lang=js& */ "./node_modules/babel-loader/lib/index.js?!./node_modules/vue-loader/lib/index.js?!./vendor/avored/framework/resources/components/catalog/category/CategorySave.vue?vue&type=script&lang=js&"); -/* empty/unused harmony star reexport */ /* harmony default export */ __webpack_exports__["default"] = (_node_modules_babel_loader_lib_index_js_ref_4_0_node_modules_vue_loader_lib_index_js_vue_loader_options_CategorySave_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0__["default"]); +/* harmony import */ var _node_modules_babel_loader_lib_index_js_ref_4_0_node_modules_vue_loader_lib_index_js_vue_loader_options_AttributeSave_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! -!../../../../../../node_modules/babel-loader/lib??ref--4-0!../../../../../../node_modules/vue-loader/lib??vue-loader-options!./AttributeSave.vue?vue&type=script&lang=js& */ "./node_modules/babel-loader/lib/index.js?!./node_modules/vue-loader/lib/index.js?!./packages/framework/resources/components/catalog/attribute/AttributeSave.vue?vue&type=script&lang=js&"); +/* empty/unused harmony star reexport */ /* harmony default export */ __webpack_exports__["default"] = (_node_modules_babel_loader_lib_index_js_ref_4_0_node_modules_vue_loader_lib_index_js_vue_loader_options_AttributeSave_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0__["default"]); /***/ }) diff --git a/public/avored-admin/js/chunk/14.js b/public/avored-admin/js/chunk/14.js index 2e720edca..6a9bb3ca2 100644 --- a/public/avored-admin/js/chunk/14.js +++ b/public/avored-admin/js/chunk/14.js @@ -1,9 +1,9 @@ (window["webpackJsonp"] = window["webpackJsonp"] || []).push([[14],{ -/***/ "./node_modules/babel-loader/lib/index.js?!./node_modules/vue-loader/lib/index.js?!./vendor/avored/framework/resources/components/catalog/category/CategoryTable.vue?vue&type=script&lang=js&": -/*!**************************************************************************************************************************************************************************************************************!*\ - !*** ./node_modules/babel-loader/lib??ref--4-0!./node_modules/vue-loader/lib??vue-loader-options!./vendor/avored/framework/resources/components/catalog/category/CategoryTable.vue?vue&type=script&lang=js& ***! - \**************************************************************************************************************************************************************************************************************/ +/***/ "./node_modules/babel-loader/lib/index.js?!./node_modules/vue-loader/lib/index.js?!./packages/framework/resources/components/catalog/attribute/AttributeTable.vue?vue&type=script&lang=js&": +/*!***********************************************************************************************************************************************************************************************************!*\ + !*** ./node_modules/babel-loader/lib??ref--4-0!./node_modules/vue-loader/lib??vue-loader-options!./packages/framework/resources/components/catalog/attribute/AttributeTable.vue?vue&type=script&lang=js& ***! + \***********************************************************************************************************************************************************************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { @@ -22,11 +22,6 @@ var columns = [{ dataIndex: 'slug', key: 'slug', sorter: true -}, { - title: 'Meta Title', - dataIndex: 'meta_title', - key: 'meta_title', - sorter: true }, { title: 'Action', key: 'action', @@ -37,7 +32,7 @@ var columns = [{ width: "10%" }]; /* harmony default export */ __webpack_exports__["default"] = ({ - props: ['baseUrl', 'categoryData'], + props: ['baseUrl', 'attributes'], data: function data() { return { columns: columns @@ -45,7 +40,7 @@ var columns = [{ }, methods: { handleTableChange: function handleTableChange(pagination, filters, sorter) { - this.categoryData.sort(function (a, b) { + this.attributes.sort(function (a, b) { var columnKey = sorter.columnKey; var order = sorter.order; @@ -71,22 +66,22 @@ var columns = [{ }); }, getEditUrl: function getEditUrl(record) { - return this.baseUrl + '/category/' + record.id + '/edit'; + return this.baseUrl + '/attribute/' + record.id + '/edit'; }, getDeleteUrl: function getDeleteUrl(record) { - return this.baseUrl + '/category/' + record.id; + return this.baseUrl + '/attribute/' + record.id; }, - deleteCategory: function deleteCategory(record) { - var url = this.baseUrl + '/category/' + record.id; + deleteAttribute: function deleteAttribute(record) { + var url = this.baseUrl + '/attribute/' + record.id; var app = this; this.$confirm({ - title: 'Do you Want to delete ' + record.name + ' category?', + title: 'Do you Want to delete ' + record.name + ' attribute?', okType: 'danger', onOk: function onOk() { axios["delete"](url).then(function (response) { if (response.data.success === true) { app.$notification.error({ - key: 'category.delete.success', + key: 'attribute.delete.success', message: response.data.message }); } @@ -94,7 +89,7 @@ var columns = [{ window.location.reload(); })["catch"](function (errors) { app.$notification.error({ - key: 'category.delete.error', + key: 'attribute.delete.error', message: errors.message }); }); @@ -108,17 +103,17 @@ var columns = [{ /***/ }), -/***/ "./vendor/avored/framework/resources/components/catalog/category/CategoryTable.vue": -/*!*****************************************************************************************!*\ - !*** ./vendor/avored/framework/resources/components/catalog/category/CategoryTable.vue ***! - \*****************************************************************************************/ +/***/ "./packages/framework/resources/components/catalog/attribute/AttributeTable.vue": +/*!**************************************************************************************!*\ + !*** ./packages/framework/resources/components/catalog/attribute/AttributeTable.vue ***! + \**************************************************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); -/* harmony import */ var _CategoryTable_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./CategoryTable.vue?vue&type=script&lang=js& */ "./vendor/avored/framework/resources/components/catalog/category/CategoryTable.vue?vue&type=script&lang=js&"); -/* empty/unused harmony star reexport *//* harmony import */ var _node_modules_vue_loader_lib_runtime_componentNormalizer_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../../../../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js */ "./node_modules/vue-loader/lib/runtime/componentNormalizer.js"); +/* harmony import */ var _AttributeTable_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./AttributeTable.vue?vue&type=script&lang=js& */ "./packages/framework/resources/components/catalog/attribute/AttributeTable.vue?vue&type=script&lang=js&"); +/* empty/unused harmony star reexport *//* harmony import */ var _node_modules_vue_loader_lib_runtime_componentNormalizer_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../../../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js */ "./node_modules/vue-loader/lib/runtime/componentNormalizer.js"); var render, staticRenderFns @@ -127,7 +122,7 @@ var render, staticRenderFns /* normalize component */ var component = Object(_node_modules_vue_loader_lib_runtime_componentNormalizer_js__WEBPACK_IMPORTED_MODULE_1__["default"])( - _CategoryTable_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0__["default"], + _AttributeTable_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0__["default"], render, staticRenderFns, false, @@ -139,22 +134,22 @@ var component = Object(_node_modules_vue_loader_lib_runtime_componentNormalizer_ /* hot reload */ if (false) { var api; } -component.options.__file = "vendor/avored/framework/resources/components/catalog/category/CategoryTable.vue" +component.options.__file = "packages/framework/resources/components/catalog/attribute/AttributeTable.vue" /* harmony default export */ __webpack_exports__["default"] = (component.exports); /***/ }), -/***/ "./vendor/avored/framework/resources/components/catalog/category/CategoryTable.vue?vue&type=script&lang=js&": -/*!******************************************************************************************************************!*\ - !*** ./vendor/avored/framework/resources/components/catalog/category/CategoryTable.vue?vue&type=script&lang=js& ***! - \******************************************************************************************************************/ +/***/ "./packages/framework/resources/components/catalog/attribute/AttributeTable.vue?vue&type=script&lang=js&": +/*!***************************************************************************************************************!*\ + !*** ./packages/framework/resources/components/catalog/attribute/AttributeTable.vue?vue&type=script&lang=js& ***! + \***************************************************************************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); -/* harmony import */ var _node_modules_babel_loader_lib_index_js_ref_4_0_node_modules_vue_loader_lib_index_js_vue_loader_options_CategoryTable_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! -!../../../../../../../node_modules/babel-loader/lib??ref--4-0!../../../../../../../node_modules/vue-loader/lib??vue-loader-options!./CategoryTable.vue?vue&type=script&lang=js& */ "./node_modules/babel-loader/lib/index.js?!./node_modules/vue-loader/lib/index.js?!./vendor/avored/framework/resources/components/catalog/category/CategoryTable.vue?vue&type=script&lang=js&"); -/* empty/unused harmony star reexport */ /* harmony default export */ __webpack_exports__["default"] = (_node_modules_babel_loader_lib_index_js_ref_4_0_node_modules_vue_loader_lib_index_js_vue_loader_options_CategoryTable_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0__["default"]); +/* harmony import */ var _node_modules_babel_loader_lib_index_js_ref_4_0_node_modules_vue_loader_lib_index_js_vue_loader_options_AttributeTable_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! -!../../../../../../node_modules/babel-loader/lib??ref--4-0!../../../../../../node_modules/vue-loader/lib??vue-loader-options!./AttributeTable.vue?vue&type=script&lang=js& */ "./node_modules/babel-loader/lib/index.js?!./node_modules/vue-loader/lib/index.js?!./packages/framework/resources/components/catalog/attribute/AttributeTable.vue?vue&type=script&lang=js&"); +/* empty/unused harmony star reexport */ /* harmony default export */ __webpack_exports__["default"] = (_node_modules_babel_loader_lib_index_js_ref_4_0_node_modules_vue_loader_lib_index_js_vue_loader_options_AttributeTable_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0__["default"]); /***/ }) diff --git a/public/avored-admin/js/chunk/15.js b/public/avored-admin/js/chunk/15.js index 370a33d9e..ecafe6fe1 100644 --- a/public/avored-admin/js/chunk/15.js +++ b/public/avored-admin/js/chunk/15.js @@ -1,95 +1,48 @@ (window["webpackJsonp"] = window["webpackJsonp"] || []).push([[15],{ -/***/ "./node_modules/babel-loader/lib/index.js?!./node_modules/vue-loader/lib/index.js?!./vendor/avored/framework/resources/components/catalog/product/ProductIndex.vue?vue&type=script&lang=js&": -/*!************************************************************************************************************************************************************************************************************!*\ - !*** ./node_modules/babel-loader/lib??ref--4-0!./node_modules/vue-loader/lib??vue-loader-options!./vendor/avored/framework/resources/components/catalog/product/ProductIndex.vue?vue&type=script&lang=js& ***! - \************************************************************************************************************************************************************************************************************/ +/***/ "./node_modules/babel-loader/lib/index.js?!./node_modules/vue-loader/lib/index.js?!./packages/framework/resources/components/catalog/category/CategorySave.vue?vue&type=script&lang=js&": +/*!********************************************************************************************************************************************************************************************************!*\ + !*** ./node_modules/babel-loader/lib??ref--4-0!./node_modules/vue-loader/lib??vue-loader-options!./packages/framework/resources/components/catalog/category/CategorySave.vue?vue&type=script&lang=js& ***! + \********************************************************************************************************************************************************************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); -var columns = [{ - title: 'Name', - dataIndex: 'name', - key: 'name', - sorter: true -}, { - title: 'Slug', - dataIndex: 'slug', - key: 'slug', - sorter: true -}, { - title: 'Meta Title', - dataIndex: 'meta_title', - key: 'meta_title', - sorter: true -}, { - title: 'Action', - key: 'action', - scopedSlots: { - customRender: 'action' - }, - sorter: false, - width: "10%" -}]; /* harmony default export */ __webpack_exports__["default"] = ({ - props: ['baseUrl'], + props: ['category', 'baseUrl'], data: function data() { return { - columns: columns + categoryForm: this.$form.createForm(this) }; }, methods: { - getEditUrl: function getEditUrl(record) { - return this.baseUrl + '/product/' + record.id + '/edit'; - }, - getDeleteUrl: function getDeleteUrl(record) { - return this.baseUrl + '/product/' + record.id; - }, - deleteProduct: function deleteProduct(record) { - var url = this.baseUrl + '/product/' + record.id; - var app = this; - this.$confirm({ - title: 'Do you Want to delete ' + record.name + ' product?', - okType: 'danger', - onOk: function onOk() { - axios["delete"](url).then(function (response) { - if (response.success === true) { - app.$notification.error({ - key: 'product.delete.success', - message: response.data.message - }); - } - - window.location.reload(); - })["catch"](function (errors) { - app.$notification.error({ - key: 'product.delete.error', - message: errors.message - }); - }); - }, - onCancel: function onCancel() {// Do nothing + handleSubmit: function handleSubmit() { + this.categoryForm.validateFields(function (err, values) { + if (err) { + e.preventDefault(); } }); + }, + cancelCategory: function cancelCategory() { + window.location = this.baseUrl + '/category'; } } }); /***/ }), -/***/ "./vendor/avored/framework/resources/components/catalog/product/ProductIndex.vue": -/*!***************************************************************************************!*\ - !*** ./vendor/avored/framework/resources/components/catalog/product/ProductIndex.vue ***! - \***************************************************************************************/ +/***/ "./packages/framework/resources/components/catalog/category/CategorySave.vue": +/*!***********************************************************************************!*\ + !*** ./packages/framework/resources/components/catalog/category/CategorySave.vue ***! + \***********************************************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); -/* harmony import */ var _ProductIndex_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./ProductIndex.vue?vue&type=script&lang=js& */ "./vendor/avored/framework/resources/components/catalog/product/ProductIndex.vue?vue&type=script&lang=js&"); -/* empty/unused harmony star reexport *//* harmony import */ var _node_modules_vue_loader_lib_runtime_componentNormalizer_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../../../../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js */ "./node_modules/vue-loader/lib/runtime/componentNormalizer.js"); +/* harmony import */ var _CategorySave_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./CategorySave.vue?vue&type=script&lang=js& */ "./packages/framework/resources/components/catalog/category/CategorySave.vue?vue&type=script&lang=js&"); +/* empty/unused harmony star reexport *//* harmony import */ var _node_modules_vue_loader_lib_runtime_componentNormalizer_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../../../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js */ "./node_modules/vue-loader/lib/runtime/componentNormalizer.js"); var render, staticRenderFns @@ -98,7 +51,7 @@ var render, staticRenderFns /* normalize component */ var component = Object(_node_modules_vue_loader_lib_runtime_componentNormalizer_js__WEBPACK_IMPORTED_MODULE_1__["default"])( - _ProductIndex_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0__["default"], + _CategorySave_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0__["default"], render, staticRenderFns, false, @@ -110,22 +63,22 @@ var component = Object(_node_modules_vue_loader_lib_runtime_componentNormalizer_ /* hot reload */ if (false) { var api; } -component.options.__file = "vendor/avored/framework/resources/components/catalog/product/ProductIndex.vue" +component.options.__file = "packages/framework/resources/components/catalog/category/CategorySave.vue" /* harmony default export */ __webpack_exports__["default"] = (component.exports); /***/ }), -/***/ "./vendor/avored/framework/resources/components/catalog/product/ProductIndex.vue?vue&type=script&lang=js&": -/*!****************************************************************************************************************!*\ - !*** ./vendor/avored/framework/resources/components/catalog/product/ProductIndex.vue?vue&type=script&lang=js& ***! - \****************************************************************************************************************/ +/***/ "./packages/framework/resources/components/catalog/category/CategorySave.vue?vue&type=script&lang=js&": +/*!************************************************************************************************************!*\ + !*** ./packages/framework/resources/components/catalog/category/CategorySave.vue?vue&type=script&lang=js& ***! + \************************************************************************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); -/* harmony import */ var _node_modules_babel_loader_lib_index_js_ref_4_0_node_modules_vue_loader_lib_index_js_vue_loader_options_ProductIndex_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! -!../../../../../../../node_modules/babel-loader/lib??ref--4-0!../../../../../../../node_modules/vue-loader/lib??vue-loader-options!./ProductIndex.vue?vue&type=script&lang=js& */ "./node_modules/babel-loader/lib/index.js?!./node_modules/vue-loader/lib/index.js?!./vendor/avored/framework/resources/components/catalog/product/ProductIndex.vue?vue&type=script&lang=js&"); -/* empty/unused harmony star reexport */ /* harmony default export */ __webpack_exports__["default"] = (_node_modules_babel_loader_lib_index_js_ref_4_0_node_modules_vue_loader_lib_index_js_vue_loader_options_ProductIndex_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0__["default"]); +/* harmony import */ var _node_modules_babel_loader_lib_index_js_ref_4_0_node_modules_vue_loader_lib_index_js_vue_loader_options_CategorySave_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! -!../../../../../../node_modules/babel-loader/lib??ref--4-0!../../../../../../node_modules/vue-loader/lib??vue-loader-options!./CategorySave.vue?vue&type=script&lang=js& */ "./node_modules/babel-loader/lib/index.js?!./node_modules/vue-loader/lib/index.js?!./packages/framework/resources/components/catalog/category/CategorySave.vue?vue&type=script&lang=js&"); +/* empty/unused harmony star reexport */ /* harmony default export */ __webpack_exports__["default"] = (_node_modules_babel_loader_lib_index_js_ref_4_0_node_modules_vue_loader_lib_index_js_vue_loader_options_CategorySave_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0__["default"]); /***/ }) diff --git a/public/avored-admin/js/chunk/16.js b/public/avored-admin/js/chunk/16.js index 4ea516c7e..97e9af051 100644 --- a/public/avored-admin/js/chunk/16.js +++ b/public/avored-admin/js/chunk/16.js @@ -1,9 +1,9 @@ (window["webpackJsonp"] = window["webpackJsonp"] || []).push([[16],{ -/***/ "./node_modules/babel-loader/lib/index.js?!./node_modules/vue-loader/lib/index.js?!./vendor/avored/framework/resources/components/catalog/product/ProductSave.vue?vue&type=script&lang=js&": -/*!***********************************************************************************************************************************************************************************************************!*\ - !*** ./node_modules/babel-loader/lib??ref--4-0!./node_modules/vue-loader/lib??vue-loader-options!./vendor/avored/framework/resources/components/catalog/product/ProductSave.vue?vue&type=script&lang=js& ***! - \***********************************************************************************************************************************************************************************************************/ +/***/ "./node_modules/babel-loader/lib/index.js?!./node_modules/vue-loader/lib/index.js?!./packages/framework/resources/components/catalog/category/CategoryTable.vue?vue&type=script&lang=js&": +/*!*********************************************************************************************************************************************************************************************************!*\ + !*** ./node_modules/babel-loader/lib??ref--4-0!./node_modules/vue-loader/lib??vue-loader-options!./packages/framework/resources/components/catalog/category/CategoryTable.vue?vue&type=script&lang=js& ***! + \*********************************************************************************************************************************************************************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { @@ -11,259 +11,114 @@ __webpack_require__.r(__webpack_exports__); /* harmony import */ var lodash_isNil__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! lodash/isNil */ "./node_modules/lodash/isNil.js"); /* harmony import */ var lodash_isNil__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(lodash_isNil__WEBPACK_IMPORTED_MODULE_0__); -/* harmony import */ var lodash_isObject__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! lodash/isObject */ "./node_modules/lodash/isObject.js"); -/* harmony import */ var lodash_isObject__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(lodash_isObject__WEBPACK_IMPORTED_MODULE_1__); -/* harmony import */ var vue_quill_editor__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! vue-quill-editor */ "./node_modules/vue-quill-editor/dist/vue-quill-editor.js"); -/* harmony import */ var vue_quill_editor__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(vue_quill_editor__WEBPACK_IMPORTED_MODULE_2__); -/* harmony import */ var axios__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! axios */ "./node_modules/axios/index.js"); -/* harmony import */ var axios__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(axios__WEBPACK_IMPORTED_MODULE_3__); - - - var columns = [{ + title: 'Name', dataIndex: 'name', key: 'name', - title: 'Name', - scopedSlots: { - customRender: 'name' - } + sorter: true }, { - title: 'Price', - dataIndex: 'price', - key: 'price', - scopedSlots: { - customRender: 'price' - } + title: 'Slug', + dataIndex: 'slug', + key: 'slug', + sorter: true }, { - title: 'Qty', - dataIndex: 'qty', - key: 'qty', - scopedSlots: { - customRender: 'qty' - } + title: 'Meta Title', + dataIndex: 'meta_title', + key: 'meta_title', + sorter: true }, { title: 'Action', key: 'action', scopedSlots: { customRender: 'action' - } + }, + sorter: false, + width: "10%" }]; /* harmony default export */ __webpack_exports__["default"] = ({ - props: ['product', 'baseUrl', 'productProperties', 'productAttributes', 'productVariations'], - components: { - 'quil-editor': vue_quill_editor__WEBPACK_IMPORTED_MODULE_2__["quillEditor"] - }, + props: ['baseUrl', 'categoryData'], data: function data() { return { - productForm: this.$form.createForm(this), - variationForm: this.$form.createForm(this), - type: null, - headers: {}, - description: null, - status: 0, - track_stock: 0, - is_taxable: 0, - categories: [], - property: {}, - productImages: [], - attributeIds: [], - variationUploadImagePath: '', - variationImageList: {}, - columns: columns, - variationModelVisible: false, - variationFields: ['id', 'name', 'slug', 'barcode', 'sku', 'qty', 'price', 'weight', 'length', 'width', 'height'] + columns: columns }; }, methods: { - handleUploadImageChange: function handleUploadImageChange() {}, - clickVariationSave: function clickVariationSave(e) { - var _this = this; + handleTableChange: function handleTableChange(pagination, filters, sorter) { + this.categoryData.sort(function (a, b) { + var columnKey = sorter.columnKey; + var order = sorter.order; - this.variationForm.validateFields(function (err, data) { - if (lodash_isNil__WEBPACK_IMPORTED_MODULE_0___default()(err)) { - var url = _this.baseUrl + '/variation/' + _this.product.id + '/save-variation'; - var app = _this; - axios__WEBPACK_IMPORTED_MODULE_3___default.a.post(url, data).then(function (res) { - if (res.data.success) { - app.$notification.success({ - key: 'product.save.variation.success', - message: res.data.message - }); - window.location.reload(); - } else { - alert('there is an error'); - } - }); - } - }); - }, - deleteVariation: function deleteVariation(model) { - var url = this.baseUrl + '/variation/' + model.variation_id; - var app = this; - axios__WEBPACK_IMPORTED_MODULE_3___default.a["delete"](url).then(function (res) { - if (res.data.success) { - app.$notification.success({ - key: 'product.delete.variation.success', - message: res.data.message - }); - window.location.reload(); - } else { - alert('there is an error'); + if (lodash_isNil__WEBPACK_IMPORTED_MODULE_0___default()(a[columnKey])) { + a[columnKey] = ''; } - }); - }, - getVariationUploadAction: function getVariationUploadAction() {}, - editVariationModel: function editVariationModel(model) { - var _this2 = this; - this.variationModelVisible = true; - var variationModel = model.variation; - this.variationFields.forEach(function (field) { - _this2.variationForm.getFieldDecorator(field, { - initialValue: variationModel[field] - }); - }); - this.variationUploadImagePath = this.baseUrl + '/product-image/' + variationModel.id + '/upload'; - - if (!lodash_isNil__WEBPACK_IMPORTED_MODULE_0___default()(variationModel.images[0])) { - var fileName = variationModel.images[0].path.replace(/^.*[\\\/]/, ''); - this.variationImageList = [{ - uid: variationModel.images[0].id, - name: fileName, - status: 'done', - url: '/storage/' + variationModel.images[0].path - }]; - } else { - this.variationImageList = []; - } - }, - handleSubmit: function handleSubmit(e) { - this.productForm.validateFields(function (err, values) { - if (err !== null) { - e.preventDefault(); + if (lodash_isNil__WEBPACK_IMPORTED_MODULE_0___default()(b[columnKey])) { + b[columnKey] = ''; } - }); - }, - handleVariationBtnClick: function handleVariationBtnClick(e) { - var data = { - attributes: this.attributeIds - }; - var url = this.baseUrl + '/variation/' + this.product.id + '/create-variation'; - var app = this; - axios__WEBPACK_IMPORTED_MODULE_3___default.a.post(url, data).then(function (res) { - if (res.data.success) { - app.$notification.success({ - key: 'product.create.variation.success', - message: res.data.message - }); - window.location.reload(); - } else { - alert('there is an error'); + + if (order === 'ascend') { + if (a[columnKey] < b[columnKey]) return -1; + if (a[columnKey] > b[columnKey]) return 1; } - }); - }, - changeVariation: function changeVariation(values) { - var app = this; - values.forEach(function (val) { - app.attributeIds.push(val); - }); - }, - handlePropertyChange: function handlePropertyChange(id, val) { - var propertyValue = ''; - propertyValue = val; - if (lodash_isObject__WEBPACK_IMPORTED_MODULE_1___default()(val)) { - propertyValue = val.target.value; - } + if (order === 'descend') { + if (a[columnKey] > b[columnKey]) return -1; + if (a[columnKey] < b[columnKey]) return 1; + } - this.property[id] = propertyValue; - }, - handleTypeChange: function handleTypeChange(val) { - this.type = val; - }, - handleStatusChange: function handleStatusChange(val) { - if (val) { - this.status = 1; - } else { - this.status = 0; - } - }, - handleCategoryChange: function handleCategoryChange(val) { - this.categories = val; - }, - handleTrackStockChange: function handleTrackStockChange(val) { - if (val) { - this.track_stock = 1; - } else { - this.track_stock = 0; - } - }, - handleIsTaxableChange: function handleIsTaxableChange(val) { - if (val) { - this.is_taxable = 1; - } else { - this.is_taxable = 0; - } + return 0; + }); }, - cancelProduct: function cancelProduct() { - window.location = this.baseUrl + '/product'; + getEditUrl: function getEditUrl(record) { + return this.baseUrl + '/category/' + record.id + '/edit'; }, - uploadFileChange: function uploadFileChange(file) { - if (file.file.status == 'done') { - this.productImages.push(file.file.response.image); - } + getDeleteUrl: function getDeleteUrl(record) { + return this.baseUrl + '/category/' + record.id; }, - deleteImage: function deleteImage(id) { - var deleteImageUrl = this.baseUrl + '/product-image/' + id; + deleteCategory: function deleteCategory(record) { + var url = this.baseUrl + '/category/' + record.id; var app = this; - var imageId = id; - axios__WEBPACK_IMPORTED_MODULE_3___default.a["delete"](deleteImageUrl).then(function (result) { - if (result.data.success) { - var index = app.productImages.findIndex(function (image) { - return image.id === imageId; + this.$confirm({ + title: 'Do you Want to delete ' + record.name + ' category?', + okType: 'danger', + onOk: function onOk() { + axios["delete"](url).then(function (response) { + if (response.data.success === true) { + app.$notification.error({ + key: 'category.delete.success', + message: response.data.message + }); + } + + window.location.reload(); + })["catch"](function (errors) { + app.$notification.error({ + key: 'category.delete.error', + message: errors.message + }); }); - app.productImages.splice(index, 1); + }, + onCancel: function onCancel() {// Do nothing } }); } - }, - mounted: function mounted() { - var _this3 = this; - - this.headers = { - 'X-CSRF-TOKEN': document.head.querySelector('meta[name="csrf-token"]').content - }; - - if (!lodash_isNil__WEBPACK_IMPORTED_MODULE_0___default()(this.product)) { - this.type = this.product.type; - this.description = this.product.description; - this.productProperties.forEach(function (record) { - _this3.property[record.id] = record.product_value.value; - }); - this.productAttributes.forEach(function (record) { - _this3.attributeIds.push(record.id); - }); - this.product.images.forEach(function (record) { - _this3.productImages.push(record); - }); - } } }); /***/ }), -/***/ "./vendor/avored/framework/resources/components/catalog/product/ProductSave.vue": -/*!**************************************************************************************!*\ - !*** ./vendor/avored/framework/resources/components/catalog/product/ProductSave.vue ***! - \**************************************************************************************/ +/***/ "./packages/framework/resources/components/catalog/category/CategoryTable.vue": +/*!************************************************************************************!*\ + !*** ./packages/framework/resources/components/catalog/category/CategoryTable.vue ***! + \************************************************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); -/* harmony import */ var _ProductSave_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./ProductSave.vue?vue&type=script&lang=js& */ "./vendor/avored/framework/resources/components/catalog/product/ProductSave.vue?vue&type=script&lang=js&"); -/* empty/unused harmony star reexport *//* harmony import */ var _node_modules_vue_loader_lib_runtime_componentNormalizer_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../../../../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js */ "./node_modules/vue-loader/lib/runtime/componentNormalizer.js"); +/* harmony import */ var _CategoryTable_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./CategoryTable.vue?vue&type=script&lang=js& */ "./packages/framework/resources/components/catalog/category/CategoryTable.vue?vue&type=script&lang=js&"); +/* empty/unused harmony star reexport *//* harmony import */ var _node_modules_vue_loader_lib_runtime_componentNormalizer_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../../../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js */ "./node_modules/vue-loader/lib/runtime/componentNormalizer.js"); var render, staticRenderFns @@ -272,7 +127,7 @@ var render, staticRenderFns /* normalize component */ var component = Object(_node_modules_vue_loader_lib_runtime_componentNormalizer_js__WEBPACK_IMPORTED_MODULE_1__["default"])( - _ProductSave_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0__["default"], + _CategoryTable_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0__["default"], render, staticRenderFns, false, @@ -284,22 +139,22 @@ var component = Object(_node_modules_vue_loader_lib_runtime_componentNormalizer_ /* hot reload */ if (false) { var api; } -component.options.__file = "vendor/avored/framework/resources/components/catalog/product/ProductSave.vue" +component.options.__file = "packages/framework/resources/components/catalog/category/CategoryTable.vue" /* harmony default export */ __webpack_exports__["default"] = (component.exports); /***/ }), -/***/ "./vendor/avored/framework/resources/components/catalog/product/ProductSave.vue?vue&type=script&lang=js&": -/*!***************************************************************************************************************!*\ - !*** ./vendor/avored/framework/resources/components/catalog/product/ProductSave.vue?vue&type=script&lang=js& ***! - \***************************************************************************************************************/ +/***/ "./packages/framework/resources/components/catalog/category/CategoryTable.vue?vue&type=script&lang=js&": +/*!*************************************************************************************************************!*\ + !*** ./packages/framework/resources/components/catalog/category/CategoryTable.vue?vue&type=script&lang=js& ***! + \*************************************************************************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); -/* harmony import */ var _node_modules_babel_loader_lib_index_js_ref_4_0_node_modules_vue_loader_lib_index_js_vue_loader_options_ProductSave_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! -!../../../../../../../node_modules/babel-loader/lib??ref--4-0!../../../../../../../node_modules/vue-loader/lib??vue-loader-options!./ProductSave.vue?vue&type=script&lang=js& */ "./node_modules/babel-loader/lib/index.js?!./node_modules/vue-loader/lib/index.js?!./vendor/avored/framework/resources/components/catalog/product/ProductSave.vue?vue&type=script&lang=js&"); -/* empty/unused harmony star reexport */ /* harmony default export */ __webpack_exports__["default"] = (_node_modules_babel_loader_lib_index_js_ref_4_0_node_modules_vue_loader_lib_index_js_vue_loader_options_ProductSave_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0__["default"]); +/* harmony import */ var _node_modules_babel_loader_lib_index_js_ref_4_0_node_modules_vue_loader_lib_index_js_vue_loader_options_CategoryTable_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! -!../../../../../../node_modules/babel-loader/lib??ref--4-0!../../../../../../node_modules/vue-loader/lib??vue-loader-options!./CategoryTable.vue?vue&type=script&lang=js& */ "./node_modules/babel-loader/lib/index.js?!./node_modules/vue-loader/lib/index.js?!./packages/framework/resources/components/catalog/category/CategoryTable.vue?vue&type=script&lang=js&"); +/* empty/unused harmony star reexport */ /* harmony default export */ __webpack_exports__["default"] = (_node_modules_babel_loader_lib_index_js_ref_4_0_node_modules_vue_loader_lib_index_js_vue_loader_options_CategoryTable_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0__["default"]); /***/ }) diff --git a/public/avored-admin/js/chunk/17.js b/public/avored-admin/js/chunk/17.js index 6fdefd4b2..8880743fb 100644 --- a/public/avored-admin/js/chunk/17.js +++ b/public/avored-admin/js/chunk/17.js @@ -1,133 +1,95 @@ (window["webpackJsonp"] = window["webpackJsonp"] || []).push([[17],{ -/***/ "./node_modules/babel-loader/lib/index.js?!./node_modules/vue-loader/lib/index.js?!./vendor/avored/framework/resources/components/catalog/property/PropertySave.vue?vue&type=script&lang=js&": -/*!*************************************************************************************************************************************************************************************************************!*\ - !*** ./node_modules/babel-loader/lib??ref--4-0!./node_modules/vue-loader/lib??vue-loader-options!./vendor/avored/framework/resources/components/catalog/property/PropertySave.vue?vue&type=script&lang=js& ***! - \*************************************************************************************************************************************************************************************************************/ +/***/ "./node_modules/babel-loader/lib/index.js?!./node_modules/vue-loader/lib/index.js?!./packages/framework/resources/components/catalog/product/ProductIndex.vue?vue&type=script&lang=js&": +/*!*******************************************************************************************************************************************************************************************************!*\ + !*** ./node_modules/babel-loader/lib??ref--4-0!./node_modules/vue-loader/lib??vue-loader-options!./packages/framework/resources/components/catalog/product/ProductIndex.vue?vue&type=script&lang=js& ***! + \*******************************************************************************************************************************************************************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); -/* harmony import */ var lodash_isNil__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! lodash/isNil */ "./node_modules/lodash/isNil.js"); -/* harmony import */ var lodash_isNil__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(lodash_isNil__WEBPACK_IMPORTED_MODULE_0__); - -var id = 0; +var columns = [{ + title: 'Name', + dataIndex: 'name', + key: 'name', + sorter: true +}, { + title: 'Slug', + dataIndex: 'slug', + key: 'slug', + sorter: true +}, { + title: 'Meta Title', + dataIndex: 'meta_title', + key: 'meta_title', + sorter: true +}, { + title: 'Action', + key: 'action', + scopedSlots: { + customRender: 'action' + }, + sorter: false, + width: "10%" +}]; /* harmony default export */ __webpack_exports__["default"] = ({ - props: ['property', 'baseUrl'], + props: ['baseUrl'], data: function data() { return { - propertyForm: this.$form.createForm(this), - use_for_all_products: 0, - use_for_category_filter: 0, - is_visible_frontend: 0, - data_type: '', - field_type: '', - dropdownOptions: [] + columns: columns }; }, methods: { - handleSubmit: function handleSubmit() { - this.propertyForm.validateFields(function (err, values) { - if (err) { - e.preventDefault(); - } - }); - }, - fieldTypeChange: function fieldTypeChange(val) { - this.field_type = val; - - if (val === 'SELECT' || val === 'RADIO') { - this.dropdownOptions.push(this.randomString()); - } else { - this.dropdownOptions = []; - } - }, - dataTypeChange: function dataTypeChange(val) { - this.data_type = val; - }, - useForAllProductSwitchChange: function useForAllProductSwitchChange(val) { - if (val) { - this.use_for_all_products = 1; - } else { - this.use_for_all_products = 0; - } - }, - useForCategoryFilterSwitchChange: function useForCategoryFilterSwitchChange(val) { - if (val) { - this.use_for_category_filter = 1; - } else { - this.use_for_category_filter = 0; - } - }, - isVisibleInFrontendSwitchChange: function isVisibleInFrontendSwitchChange(val) { - if (val) { - this.is_visible_frontend = 1; - } else { - this.is_visible_frontend = 0; - } + getEditUrl: function getEditUrl(record) { + return this.baseUrl + '/product/' + record.id + '/edit'; }, - cancelProperty: function cancelProperty() { - window.location = this.baseUrl + '/property'; + getDeleteUrl: function getDeleteUrl(record) { + return this.baseUrl + '/product/' + record.id; }, - randomString: function randomString() { - var random_string = ''; - var random_ascii; - - for (var i = 0; i < 6; i++) { - random_ascii = Math.floor(Math.random() * 25 + 97); - random_string += String.fromCharCode(random_ascii); - } - - return random_string; - }, - dropdownOptionChange: function dropdownOptionChange(index) { - if (index == this.dropdownOptions.length - 1) { - this.dropdownOptions.push(this.randomString()); - } else { - this.dropdownOptions.splice(index, 1); - } - }, - dropdown_options: function dropdown_options(index) { - return 'dropdown_option[' + index + ']'; - } - }, - mounted: function mounted() { - var _this = this; - - if (!lodash_isNil__WEBPACK_IMPORTED_MODULE_0___default()(this.property)) { - this.is_visible_frontend = this.property.is_visible_frontend; - this.use_for_all_products = this.property.use_for_all_products; - this.data_type = this.property.data_type; - this.field_type = this.property.field_type; - - if (!lodash_isNil__WEBPACK_IMPORTED_MODULE_0___default()(this.property.dropdown_options) && this.property.dropdown_options.length > 0) { - this.property.dropdown_options.forEach(function (element) { - _this.dropdownOptions.push(element.id); - - _this.propertyForm.getFieldDecorator('dropdown_options[' + element.id + ']', { - initialValue: element.display_text, - preserve: true + deleteProduct: function deleteProduct(record) { + var url = this.baseUrl + '/product/' + record.id; + var app = this; + this.$confirm({ + title: 'Do you Want to delete ' + record.name + ' product?', + okType: 'danger', + onOk: function onOk() { + axios["delete"](url).then(function (response) { + if (response.success === true) { + app.$notification.error({ + key: 'product.delete.success', + message: response.data.message + }); + } + + window.location.reload(); + })["catch"](function (errors) { + app.$notification.error({ + key: 'product.delete.error', + message: errors.message + }); }); - }); - } + }, + onCancel: function onCancel() {// Do nothing + } + }); } } }); /***/ }), -/***/ "./vendor/avored/framework/resources/components/catalog/property/PropertySave.vue": -/*!****************************************************************************************!*\ - !*** ./vendor/avored/framework/resources/components/catalog/property/PropertySave.vue ***! - \****************************************************************************************/ +/***/ "./packages/framework/resources/components/catalog/product/ProductIndex.vue": +/*!**********************************************************************************!*\ + !*** ./packages/framework/resources/components/catalog/product/ProductIndex.vue ***! + \**********************************************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); -/* harmony import */ var _PropertySave_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./PropertySave.vue?vue&type=script&lang=js& */ "./vendor/avored/framework/resources/components/catalog/property/PropertySave.vue?vue&type=script&lang=js&"); -/* empty/unused harmony star reexport *//* harmony import */ var _node_modules_vue_loader_lib_runtime_componentNormalizer_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../../../../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js */ "./node_modules/vue-loader/lib/runtime/componentNormalizer.js"); +/* harmony import */ var _ProductIndex_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./ProductIndex.vue?vue&type=script&lang=js& */ "./packages/framework/resources/components/catalog/product/ProductIndex.vue?vue&type=script&lang=js&"); +/* empty/unused harmony star reexport *//* harmony import */ var _node_modules_vue_loader_lib_runtime_componentNormalizer_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../../../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js */ "./node_modules/vue-loader/lib/runtime/componentNormalizer.js"); var render, staticRenderFns @@ -136,7 +98,7 @@ var render, staticRenderFns /* normalize component */ var component = Object(_node_modules_vue_loader_lib_runtime_componentNormalizer_js__WEBPACK_IMPORTED_MODULE_1__["default"])( - _PropertySave_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0__["default"], + _ProductIndex_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0__["default"], render, staticRenderFns, false, @@ -148,22 +110,22 @@ var component = Object(_node_modules_vue_loader_lib_runtime_componentNormalizer_ /* hot reload */ if (false) { var api; } -component.options.__file = "vendor/avored/framework/resources/components/catalog/property/PropertySave.vue" +component.options.__file = "packages/framework/resources/components/catalog/product/ProductIndex.vue" /* harmony default export */ __webpack_exports__["default"] = (component.exports); /***/ }), -/***/ "./vendor/avored/framework/resources/components/catalog/property/PropertySave.vue?vue&type=script&lang=js&": -/*!*****************************************************************************************************************!*\ - !*** ./vendor/avored/framework/resources/components/catalog/property/PropertySave.vue?vue&type=script&lang=js& ***! - \*****************************************************************************************************************/ +/***/ "./packages/framework/resources/components/catalog/product/ProductIndex.vue?vue&type=script&lang=js&": +/*!***********************************************************************************************************!*\ + !*** ./packages/framework/resources/components/catalog/product/ProductIndex.vue?vue&type=script&lang=js& ***! + \***********************************************************************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); -/* harmony import */ var _node_modules_babel_loader_lib_index_js_ref_4_0_node_modules_vue_loader_lib_index_js_vue_loader_options_PropertySave_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! -!../../../../../../../node_modules/babel-loader/lib??ref--4-0!../../../../../../../node_modules/vue-loader/lib??vue-loader-options!./PropertySave.vue?vue&type=script&lang=js& */ "./node_modules/babel-loader/lib/index.js?!./node_modules/vue-loader/lib/index.js?!./vendor/avored/framework/resources/components/catalog/property/PropertySave.vue?vue&type=script&lang=js&"); -/* empty/unused harmony star reexport */ /* harmony default export */ __webpack_exports__["default"] = (_node_modules_babel_loader_lib_index_js_ref_4_0_node_modules_vue_loader_lib_index_js_vue_loader_options_PropertySave_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0__["default"]); +/* harmony import */ var _node_modules_babel_loader_lib_index_js_ref_4_0_node_modules_vue_loader_lib_index_js_vue_loader_options_ProductIndex_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! -!../../../../../../node_modules/babel-loader/lib??ref--4-0!../../../../../../node_modules/vue-loader/lib??vue-loader-options!./ProductIndex.vue?vue&type=script&lang=js& */ "./node_modules/babel-loader/lib/index.js?!./node_modules/vue-loader/lib/index.js?!./packages/framework/resources/components/catalog/product/ProductIndex.vue?vue&type=script&lang=js&"); +/* empty/unused harmony star reexport */ /* harmony default export */ __webpack_exports__["default"] = (_node_modules_babel_loader_lib_index_js_ref_4_0_node_modules_vue_loader_lib_index_js_vue_loader_options_ProductIndex_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0__["default"]); /***/ }) diff --git a/public/avored-admin/js/chunk/18.js b/public/avored-admin/js/chunk/18.js index 16379bf7c..f5a48c766 100644 --- a/public/avored-admin/js/chunk/18.js +++ b/public/avored-admin/js/chunk/18.js @@ -1,9 +1,9 @@ (window["webpackJsonp"] = window["webpackJsonp"] || []).push([[18],{ -/***/ "./node_modules/babel-loader/lib/index.js?!./node_modules/vue-loader/lib/index.js?!./vendor/avored/framework/resources/components/catalog/property/PropertyTable.vue?vue&type=script&lang=js&": -/*!**************************************************************************************************************************************************************************************************************!*\ - !*** ./node_modules/babel-loader/lib??ref--4-0!./node_modules/vue-loader/lib??vue-loader-options!./vendor/avored/framework/resources/components/catalog/property/PropertyTable.vue?vue&type=script&lang=js& ***! - \**************************************************************************************************************************************************************************************************************/ +/***/ "./node_modules/babel-loader/lib/index.js?!./node_modules/vue-loader/lib/index.js?!./packages/framework/resources/components/catalog/product/ProductSave.vue?vue&type=script&lang=js&": +/*!******************************************************************************************************************************************************************************************************!*\ + !*** ./node_modules/babel-loader/lib??ref--4-0!./node_modules/vue-loader/lib??vue-loader-options!./packages/framework/resources/components/catalog/product/ProductSave.vue?vue&type=script&lang=js& ***! + \******************************************************************************************************************************************************************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { @@ -11,109 +11,259 @@ __webpack_require__.r(__webpack_exports__); /* harmony import */ var lodash_isNil__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! lodash/isNil */ "./node_modules/lodash/isNil.js"); /* harmony import */ var lodash_isNil__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(lodash_isNil__WEBPACK_IMPORTED_MODULE_0__); +/* harmony import */ var lodash_isObject__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! lodash/isObject */ "./node_modules/lodash/isObject.js"); +/* harmony import */ var lodash_isObject__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(lodash_isObject__WEBPACK_IMPORTED_MODULE_1__); +/* harmony import */ var vue_quill_editor__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! vue-quill-editor */ "./node_modules/vue-quill-editor/dist/vue-quill-editor.js"); +/* harmony import */ var vue_quill_editor__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(vue_quill_editor__WEBPACK_IMPORTED_MODULE_2__); +/* harmony import */ var axios__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! axios */ "./node_modules/axios/index.js"); +/* harmony import */ var axios__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(axios__WEBPACK_IMPORTED_MODULE_3__); + + + var columns = [{ - title: 'Name', dataIndex: 'name', key: 'name', - sorter: true + title: 'Name', + scopedSlots: { + customRender: 'name' + } }, { - title: 'Slug', - dataIndex: 'slug', - key: 'slug', - sorter: true + title: 'Price', + dataIndex: 'price', + key: 'price', + scopedSlots: { + customRender: 'price' + } +}, { + title: 'Qty', + dataIndex: 'qty', + key: 'qty', + scopedSlots: { + customRender: 'qty' + } }, { title: 'Action', key: 'action', scopedSlots: { customRender: 'action' - }, - sorter: false, - width: "10%" + } }]; /* harmony default export */ __webpack_exports__["default"] = ({ - props: ['baseUrl', 'properties'], + props: ['product', 'baseUrl', 'productProperties', 'productAttributes', 'productVariations'], + components: { + 'quil-editor': vue_quill_editor__WEBPACK_IMPORTED_MODULE_2__["quillEditor"] + }, data: function data() { return { - columns: columns + productForm: this.$form.createForm(this), + variationForm: this.$form.createForm(this), + type: null, + headers: {}, + description: null, + status: 0, + track_stock: 0, + is_taxable: 0, + categories: [], + property: {}, + productImages: [], + attributeIds: [], + variationUploadImagePath: '', + variationImageList: {}, + columns: columns, + variationModelVisible: false, + variationFields: ['id', 'name', 'slug', 'barcode', 'sku', 'qty', 'price', 'weight', 'length', 'width', 'height'] }; }, methods: { - handleTableChange: function handleTableChange(pagination, filters, sorter) { - this.properties.sort(function (a, b) { - var columnKey = sorter.columnKey; - var order = sorter.order; + handleUploadImageChange: function handleUploadImageChange() {}, + clickVariationSave: function clickVariationSave(e) { + var _this = this; - if (lodash_isNil__WEBPACK_IMPORTED_MODULE_0___default()(a[columnKey])) { - a[columnKey] = ''; + this.variationForm.validateFields(function (err, data) { + if (lodash_isNil__WEBPACK_IMPORTED_MODULE_0___default()(err)) { + var url = _this.baseUrl + '/variation/' + _this.product.id + '/save-variation'; + var app = _this; + axios__WEBPACK_IMPORTED_MODULE_3___default.a.post(url, data).then(function (res) { + if (res.data.success) { + app.$notification.success({ + key: 'product.save.variation.success', + message: res.data.message + }); + window.location.reload(); + } else { + alert('there is an error'); + } + }); } - - if (lodash_isNil__WEBPACK_IMPORTED_MODULE_0___default()(b[columnKey])) { - b[columnKey] = ''; + }); + }, + deleteVariation: function deleteVariation(model) { + var url = this.baseUrl + '/variation/' + model.variation_id; + var app = this; + axios__WEBPACK_IMPORTED_MODULE_3___default.a["delete"](url).then(function (res) { + if (res.data.success) { + app.$notification.success({ + key: 'product.delete.variation.success', + message: res.data.message + }); + window.location.reload(); + } else { + alert('there is an error'); } + }); + }, + getVariationUploadAction: function getVariationUploadAction() {}, + editVariationModel: function editVariationModel(model) { + var _this2 = this; - if (order === 'ascend') { - if (a[columnKey] < b[columnKey]) return -1; - if (a[columnKey] > b[columnKey]) return 1; - } + this.variationModelVisible = true; + var variationModel = model.variation; + this.variationFields.forEach(function (field) { + _this2.variationForm.getFieldDecorator(field, { + initialValue: variationModel[field] + }); + }); + this.variationUploadImagePath = this.baseUrl + '/product-image/' + variationModel.id + '/upload'; - if (order === 'descend') { - if (a[columnKey] > b[columnKey]) return -1; - if (a[columnKey] < b[columnKey]) return 1; + if (!lodash_isNil__WEBPACK_IMPORTED_MODULE_0___default()(variationModel.images[0])) { + var fileName = variationModel.images[0].path.replace(/^.*[\\\/]/, ''); + this.variationImageList = [{ + uid: variationModel.images[0].id, + name: fileName, + status: 'done', + url: '/storage/' + variationModel.images[0].path + }]; + } else { + this.variationImageList = []; + } + }, + handleSubmit: function handleSubmit(e) { + this.productForm.validateFields(function (err, values) { + if (err !== null) { + e.preventDefault(); } - - return 0; }); }, - getEditUrl: function getEditUrl(record) { - return this.baseUrl + '/property/' + record.id + '/edit'; - }, - getDeleteUrl: function getDeleteUrl(record) { - return this.baseUrl + '/property/' + record.id; + handleVariationBtnClick: function handleVariationBtnClick(e) { + var data = { + attributes: this.attributeIds + }; + var url = this.baseUrl + '/variation/' + this.product.id + '/create-variation'; + var app = this; + axios__WEBPACK_IMPORTED_MODULE_3___default.a.post(url, data).then(function (res) { + if (res.data.success) { + app.$notification.success({ + key: 'product.create.variation.success', + message: res.data.message + }); + window.location.reload(); + } else { + alert('there is an error'); + } + }); }, - deleteProperty: function deleteProperty(record) { - var url = this.baseUrl + '/property/' + record.id; + changeVariation: function changeVariation(values) { var app = this; - this.$confirm({ - title: 'Do you Want to delete ' + record.name + ' property?', - okType: 'danger', - onOk: function onOk() { - axios["delete"](url).then(function (response) { - if (response.data.success === true) { - app.$notification.error({ - key: 'property.delete.success', - message: response.data.message - }); - } + values.forEach(function (val) { + app.attributeIds.push(val); + }); + }, + handlePropertyChange: function handlePropertyChange(id, val) { + var propertyValue = ''; + propertyValue = val; + + if (lodash_isObject__WEBPACK_IMPORTED_MODULE_1___default()(val)) { + propertyValue = val.target.value; + } - window.location.reload(); - })["catch"](function (errors) { - app.$notification.error({ - key: 'property.delete.error', - message: errors.message - }); + this.property[id] = propertyValue; + }, + handleTypeChange: function handleTypeChange(val) { + this.type = val; + }, + handleStatusChange: function handleStatusChange(val) { + if (val) { + this.status = 1; + } else { + this.status = 0; + } + }, + handleCategoryChange: function handleCategoryChange(val) { + this.categories = val; + }, + handleTrackStockChange: function handleTrackStockChange(val) { + if (val) { + this.track_stock = 1; + } else { + this.track_stock = 0; + } + }, + handleIsTaxableChange: function handleIsTaxableChange(val) { + if (val) { + this.is_taxable = 1; + } else { + this.is_taxable = 0; + } + }, + cancelProduct: function cancelProduct() { + window.location = this.baseUrl + '/product'; + }, + uploadFileChange: function uploadFileChange(file) { + if (file.file.status == 'done') { + this.productImages.push(file.file.response.image); + } + }, + deleteImage: function deleteImage(id) { + var deleteImageUrl = this.baseUrl + '/product-image/' + id; + var app = this; + var imageId = id; + axios__WEBPACK_IMPORTED_MODULE_3___default.a["delete"](deleteImageUrl).then(function (result) { + if (result.data.success) { + var index = app.productImages.findIndex(function (image) { + return image.id === imageId; }); - }, - onCancel: function onCancel() {// Do nothing + app.productImages.splice(index, 1); } }); } + }, + mounted: function mounted() { + var _this3 = this; + + this.headers = { + 'X-CSRF-TOKEN': document.head.querySelector('meta[name="csrf-token"]').content + }; + + if (!lodash_isNil__WEBPACK_IMPORTED_MODULE_0___default()(this.product)) { + this.type = this.product.type; + this.description = this.product.description; + this.productProperties.forEach(function (record) { + _this3.property[record.id] = record.product_value.value; + }); + this.productAttributes.forEach(function (record) { + _this3.attributeIds.push(record.id); + }); + this.product.images.forEach(function (record) { + _this3.productImages.push(record); + }); + } } }); /***/ }), -/***/ "./vendor/avored/framework/resources/components/catalog/property/PropertyTable.vue": -/*!*****************************************************************************************!*\ - !*** ./vendor/avored/framework/resources/components/catalog/property/PropertyTable.vue ***! - \*****************************************************************************************/ +/***/ "./packages/framework/resources/components/catalog/product/ProductSave.vue": +/*!*********************************************************************************!*\ + !*** ./packages/framework/resources/components/catalog/product/ProductSave.vue ***! + \*********************************************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); -/* harmony import */ var _PropertyTable_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./PropertyTable.vue?vue&type=script&lang=js& */ "./vendor/avored/framework/resources/components/catalog/property/PropertyTable.vue?vue&type=script&lang=js&"); -/* empty/unused harmony star reexport *//* harmony import */ var _node_modules_vue_loader_lib_runtime_componentNormalizer_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../../../../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js */ "./node_modules/vue-loader/lib/runtime/componentNormalizer.js"); +/* harmony import */ var _ProductSave_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./ProductSave.vue?vue&type=script&lang=js& */ "./packages/framework/resources/components/catalog/product/ProductSave.vue?vue&type=script&lang=js&"); +/* empty/unused harmony star reexport *//* harmony import */ var _node_modules_vue_loader_lib_runtime_componentNormalizer_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../../../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js */ "./node_modules/vue-loader/lib/runtime/componentNormalizer.js"); var render, staticRenderFns @@ -122,7 +272,7 @@ var render, staticRenderFns /* normalize component */ var component = Object(_node_modules_vue_loader_lib_runtime_componentNormalizer_js__WEBPACK_IMPORTED_MODULE_1__["default"])( - _PropertyTable_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0__["default"], + _ProductSave_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0__["default"], render, staticRenderFns, false, @@ -134,22 +284,22 @@ var component = Object(_node_modules_vue_loader_lib_runtime_componentNormalizer_ /* hot reload */ if (false) { var api; } -component.options.__file = "vendor/avored/framework/resources/components/catalog/property/PropertyTable.vue" +component.options.__file = "packages/framework/resources/components/catalog/product/ProductSave.vue" /* harmony default export */ __webpack_exports__["default"] = (component.exports); /***/ }), -/***/ "./vendor/avored/framework/resources/components/catalog/property/PropertyTable.vue?vue&type=script&lang=js&": -/*!******************************************************************************************************************!*\ - !*** ./vendor/avored/framework/resources/components/catalog/property/PropertyTable.vue?vue&type=script&lang=js& ***! - \******************************************************************************************************************/ +/***/ "./packages/framework/resources/components/catalog/product/ProductSave.vue?vue&type=script&lang=js&": +/*!**********************************************************************************************************!*\ + !*** ./packages/framework/resources/components/catalog/product/ProductSave.vue?vue&type=script&lang=js& ***! + \**********************************************************************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); -/* harmony import */ var _node_modules_babel_loader_lib_index_js_ref_4_0_node_modules_vue_loader_lib_index_js_vue_loader_options_PropertyTable_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! -!../../../../../../../node_modules/babel-loader/lib??ref--4-0!../../../../../../../node_modules/vue-loader/lib??vue-loader-options!./PropertyTable.vue?vue&type=script&lang=js& */ "./node_modules/babel-loader/lib/index.js?!./node_modules/vue-loader/lib/index.js?!./vendor/avored/framework/resources/components/catalog/property/PropertyTable.vue?vue&type=script&lang=js&"); -/* empty/unused harmony star reexport */ /* harmony default export */ __webpack_exports__["default"] = (_node_modules_babel_loader_lib_index_js_ref_4_0_node_modules_vue_loader_lib_index_js_vue_loader_options_PropertyTable_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0__["default"]); +/* harmony import */ var _node_modules_babel_loader_lib_index_js_ref_4_0_node_modules_vue_loader_lib_index_js_vue_loader_options_ProductSave_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! -!../../../../../../node_modules/babel-loader/lib??ref--4-0!../../../../../../node_modules/vue-loader/lib??vue-loader-options!./ProductSave.vue?vue&type=script&lang=js& */ "./node_modules/babel-loader/lib/index.js?!./node_modules/vue-loader/lib/index.js?!./packages/framework/resources/components/catalog/product/ProductSave.vue?vue&type=script&lang=js&"); +/* empty/unused harmony star reexport */ /* harmony default export */ __webpack_exports__["default"] = (_node_modules_babel_loader_lib_index_js_ref_4_0_node_modules_vue_loader_lib_index_js_vue_loader_options_ProductSave_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0__["default"]); /***/ }) diff --git a/public/avored-admin/js/chunk/19.js b/public/avored-admin/js/chunk/19.js index 23167742e..014b9e2f6 100644 --- a/public/avored-admin/js/chunk/19.js +++ b/public/avored-admin/js/chunk/19.js @@ -1,9 +1,9 @@ (window["webpackJsonp"] = window["webpackJsonp"] || []).push([[19],{ -/***/ "./node_modules/babel-loader/lib/index.js?!./node_modules/vue-loader/lib/index.js?!./vendor/avored/framework/resources/components/cms/menu/MenuTable.vue?vue&type=script&lang=js&": -/*!**************************************************************************************************************************************************************************************************!*\ - !*** ./node_modules/babel-loader/lib??ref--4-0!./node_modules/vue-loader/lib??vue-loader-options!./vendor/avored/framework/resources/components/cms/menu/MenuTable.vue?vue&type=script&lang=js& ***! - \**************************************************************************************************************************************************************************************************/ +/***/ "./node_modules/babel-loader/lib/index.js?!./node_modules/vue-loader/lib/index.js?!./packages/framework/resources/components/catalog/property/PropertySave.vue?vue&type=script&lang=js&": +/*!********************************************************************************************************************************************************************************************************!*\ + !*** ./node_modules/babel-loader/lib??ref--4-0!./node_modules/vue-loader/lib??vue-loader-options!./packages/framework/resources/components/catalog/property/PropertySave.vue?vue&type=script&lang=js& ***! + \********************************************************************************************************************************************************************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { @@ -12,108 +12,122 @@ __webpack_require__.r(__webpack_exports__); /* harmony import */ var lodash_isNil__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! lodash/isNil */ "./node_modules/lodash/isNil.js"); /* harmony import */ var lodash_isNil__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(lodash_isNil__WEBPACK_IMPORTED_MODULE_0__); -var columns = [{ - title: 'Name', - dataIndex: 'name', - key: 'name', - sorter: true -}, { - title: 'Identifier', - dataIndex: 'identifier', - key: 'identifier', - sorter: true -}, { - title: 'Action', - key: 'action', - scopedSlots: { - customRender: 'action' - }, - sorter: false, - width: "10%" -}]; +var id = 0; /* harmony default export */ __webpack_exports__["default"] = ({ - props: ['baseUrl', 'menuGroups'], + props: ['property', 'baseUrl'], data: function data() { return { - columns: columns + propertyForm: this.$form.createForm(this), + use_for_all_products: 0, + use_for_category_filter: 0, + is_visible_frontend: 0, + data_type: '', + field_type: '', + dropdownOptions: [] }; }, methods: { - handleTableChange: function handleTableChange(pagination, filters, sorter) { - this.menuGroups.sort(function (a, b) { - var columnKey = sorter.columnKey; - var order = sorter.order; - - if (lodash_isNil__WEBPACK_IMPORTED_MODULE_0___default()(a[columnKey])) { - a[columnKey] = ''; - } - - if (lodash_isNil__WEBPACK_IMPORTED_MODULE_0___default()(b[columnKey])) { - b[columnKey] = ''; - } - - if (order === 'ascend') { - if (a[columnKey] < b[columnKey]) return -1; - if (a[columnKey] > b[columnKey]) return 1; + handleSubmit: function handleSubmit() { + this.propertyForm.validateFields(function (err, values) { + if (err) { + e.preventDefault(); } - - if (order === 'descend') { - if (a[columnKey] > b[columnKey]) return -1; - if (a[columnKey] < b[columnKey]) return 1; - } - - return 0; }); }, - getEditUrl: function getEditUrl(record) { - return this.baseUrl + '/menu-group/' + record.id + '/edit'; + fieldTypeChange: function fieldTypeChange(val) { + this.field_type = val; + + if (val === 'SELECT' || val === 'RADIO') { + this.dropdownOptions.push(this.randomString()); + } else { + this.dropdownOptions = []; + } + }, + dataTypeChange: function dataTypeChange(val) { + this.data_type = val; + }, + useForAllProductSwitchChange: function useForAllProductSwitchChange(val) { + if (val) { + this.use_for_all_products = 1; + } else { + this.use_for_all_products = 0; + } }, - getDeleteUrl: function getDeleteUrl(record) { - return this.baseUrl + '/menu-group/' + record.id; + useForCategoryFilterSwitchChange: function useForCategoryFilterSwitchChange(val) { + if (val) { + this.use_for_category_filter = 1; + } else { + this.use_for_category_filter = 0; + } }, - deleteMenuGroup: function deleteMenuGroup(record) { - var url = this.baseUrl + '/menu-group/' + record.id; - var app = this; - this.$confirm({ - title: 'Do you Want to delete ' + record.name + ' menu-group?', - okType: 'danger', - onOk: function onOk() { - axios["delete"](url).then(function (response) { - if (response.data.success === true) { - app.$notification.error({ - key: 'menu-group.delete.success', - message: response.data.message - }); - } - - window.location.reload(); - })["catch"](function (errors) { - app.$notification.error({ - key: 'menu-group.delete.error', - message: errors.message - }); + isVisibleInFrontendSwitchChange: function isVisibleInFrontendSwitchChange(val) { + if (val) { + this.is_visible_frontend = 1; + } else { + this.is_visible_frontend = 0; + } + }, + cancelProperty: function cancelProperty() { + window.location = this.baseUrl + '/property'; + }, + randomString: function randomString() { + var random_string = ''; + var random_ascii; + + for (var i = 0; i < 6; i++) { + random_ascii = Math.floor(Math.random() * 25 + 97); + random_string += String.fromCharCode(random_ascii); + } + + return random_string; + }, + dropdownOptionChange: function dropdownOptionChange(index) { + if (index == this.dropdownOptions.length - 1) { + this.dropdownOptions.push(this.randomString()); + } else { + this.dropdownOptions.splice(index, 1); + } + }, + dropdown_options: function dropdown_options(index) { + return 'dropdown_option[' + index + ']'; + } + }, + mounted: function mounted() { + var _this = this; + + if (!lodash_isNil__WEBPACK_IMPORTED_MODULE_0___default()(this.property)) { + this.is_visible_frontend = this.property.is_visible_frontend; + this.use_for_all_products = this.property.use_for_all_products; + this.data_type = this.property.data_type; + this.field_type = this.property.field_type; + + if (!lodash_isNil__WEBPACK_IMPORTED_MODULE_0___default()(this.property.dropdown_options) && this.property.dropdown_options.length > 0) { + this.property.dropdown_options.forEach(function (element) { + _this.dropdownOptions.push(element.id); + + _this.propertyForm.getFieldDecorator('dropdown_options[' + element.id + ']', { + initialValue: element.display_text, + preserve: true }); - }, - onCancel: function onCancel() {// Do nothing - } - }); + }); + } } } }); /***/ }), -/***/ "./vendor/avored/framework/resources/components/cms/menu/MenuTable.vue": -/*!*****************************************************************************!*\ - !*** ./vendor/avored/framework/resources/components/cms/menu/MenuTable.vue ***! - \*****************************************************************************/ +/***/ "./packages/framework/resources/components/catalog/property/PropertySave.vue": +/*!***********************************************************************************!*\ + !*** ./packages/framework/resources/components/catalog/property/PropertySave.vue ***! + \***********************************************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); -/* harmony import */ var _MenuTable_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./MenuTable.vue?vue&type=script&lang=js& */ "./vendor/avored/framework/resources/components/cms/menu/MenuTable.vue?vue&type=script&lang=js&"); -/* empty/unused harmony star reexport *//* harmony import */ var _node_modules_vue_loader_lib_runtime_componentNormalizer_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../../../../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js */ "./node_modules/vue-loader/lib/runtime/componentNormalizer.js"); +/* harmony import */ var _PropertySave_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./PropertySave.vue?vue&type=script&lang=js& */ "./packages/framework/resources/components/catalog/property/PropertySave.vue?vue&type=script&lang=js&"); +/* empty/unused harmony star reexport *//* harmony import */ var _node_modules_vue_loader_lib_runtime_componentNormalizer_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../../../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js */ "./node_modules/vue-loader/lib/runtime/componentNormalizer.js"); var render, staticRenderFns @@ -122,7 +136,7 @@ var render, staticRenderFns /* normalize component */ var component = Object(_node_modules_vue_loader_lib_runtime_componentNormalizer_js__WEBPACK_IMPORTED_MODULE_1__["default"])( - _MenuTable_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0__["default"], + _PropertySave_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0__["default"], render, staticRenderFns, false, @@ -134,22 +148,22 @@ var component = Object(_node_modules_vue_loader_lib_runtime_componentNormalizer_ /* hot reload */ if (false) { var api; } -component.options.__file = "vendor/avored/framework/resources/components/cms/menu/MenuTable.vue" +component.options.__file = "packages/framework/resources/components/catalog/property/PropertySave.vue" /* harmony default export */ __webpack_exports__["default"] = (component.exports); /***/ }), -/***/ "./vendor/avored/framework/resources/components/cms/menu/MenuTable.vue?vue&type=script&lang=js&": -/*!******************************************************************************************************!*\ - !*** ./vendor/avored/framework/resources/components/cms/menu/MenuTable.vue?vue&type=script&lang=js& ***! - \******************************************************************************************************/ +/***/ "./packages/framework/resources/components/catalog/property/PropertySave.vue?vue&type=script&lang=js&": +/*!************************************************************************************************************!*\ + !*** ./packages/framework/resources/components/catalog/property/PropertySave.vue?vue&type=script&lang=js& ***! + \************************************************************************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); -/* harmony import */ var _node_modules_babel_loader_lib_index_js_ref_4_0_node_modules_vue_loader_lib_index_js_vue_loader_options_MenuTable_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! -!../../../../../../../node_modules/babel-loader/lib??ref--4-0!../../../../../../../node_modules/vue-loader/lib??vue-loader-options!./MenuTable.vue?vue&type=script&lang=js& */ "./node_modules/babel-loader/lib/index.js?!./node_modules/vue-loader/lib/index.js?!./vendor/avored/framework/resources/components/cms/menu/MenuTable.vue?vue&type=script&lang=js&"); -/* empty/unused harmony star reexport */ /* harmony default export */ __webpack_exports__["default"] = (_node_modules_babel_loader_lib_index_js_ref_4_0_node_modules_vue_loader_lib_index_js_vue_loader_options_MenuTable_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0__["default"]); +/* harmony import */ var _node_modules_babel_loader_lib_index_js_ref_4_0_node_modules_vue_loader_lib_index_js_vue_loader_options_PropertySave_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! -!../../../../../../node_modules/babel-loader/lib??ref--4-0!../../../../../../node_modules/vue-loader/lib??vue-loader-options!./PropertySave.vue?vue&type=script&lang=js& */ "./node_modules/babel-loader/lib/index.js?!./node_modules/vue-loader/lib/index.js?!./packages/framework/resources/components/catalog/property/PropertySave.vue?vue&type=script&lang=js&"); +/* empty/unused harmony star reexport */ /* harmony default export */ __webpack_exports__["default"] = (_node_modules_babel_loader_lib_index_js_ref_4_0_node_modules_vue_loader_lib_index_js_vue_loader_options_PropertySave_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0__["default"]); /***/ }) diff --git a/public/avored-admin/js/chunk/2.js b/public/avored-admin/js/chunk/2.js index 3aec0afac..68376c17b 100644 --- a/public/avored-admin/js/chunk/2.js +++ b/public/avored-admin/js/chunk/2.js @@ -44,6 +44,8 @@ var _vcCheckbox2 = _interopRequireDefault(_vcCheckbox); var _propsUtil = __webpack_require__(/*! ../_util/props-util */ "./node_modules/ant-design-vue/lib/_util/props-util.js"); +var _configProvider = __webpack_require__(/*! ../config-provider */ "./node_modules/ant-design-vue/lib/config-provider/index.js"); + function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } function noop() {} @@ -55,22 +57,22 @@ exports['default'] = { prop: 'checked' }, props: { - prefixCls: { - 'default': 'ant-checkbox', - type: String - }, + prefixCls: _vueTypes2['default'].string, defaultChecked: _vueTypes2['default'].bool, checked: _vueTypes2['default'].bool, disabled: _vueTypes2['default'].bool, - isGroup: Boolean, + isGroup: _vueTypes2['default'].bool, value: _vueTypes2['default'].any, - name: String, - id: String, - indeterminate: Boolean, + name: _vueTypes2['default'].string, + id: _vueTypes2['default'].string, + indeterminate: _vueTypes2['default'].bool, type: _vueTypes2['default'].string.def('checkbox'), - autoFocus: Boolean + autoFocus: _vueTypes2['default'].bool }, inject: { + configProvider: { 'default': function _default() { + return _configProvider.ConfigConsumerProps; + } }, checkboxGroupContext: { 'default': function _default() { return null; } } @@ -104,11 +106,15 @@ exports['default'] = { mouseenter = _$listeners$mouseente === undefined ? noop : _$listeners$mouseente, _$listeners$mouseleav = $listeners.mouseleave, mouseleave = _$listeners$mouseleav === undefined ? noop : _$listeners$mouseleav, - restListeners = (0, _objectWithoutProperties3['default'])($listeners, ['mouseenter', 'mouseleave']); - var prefixCls = props.prefixCls, + input = $listeners.input, + restListeners = (0, _objectWithoutProperties3['default'])($listeners, ['mouseenter', 'mouseleave', 'input']); + var customizePrefixCls = props.prefixCls, indeterminate = props.indeterminate, restProps = (0, _objectWithoutProperties3['default'])(props, ['prefixCls', 'indeterminate']); + var getPrefixCls = this.configProvider.getPrefixCls; + var prefixCls = getPrefixCls('checkbox', customizePrefixCls); + var checkboxProps = { props: (0, _extends3['default'])({}, restProps, { prefixCls: prefixCls }), on: restListeners, @@ -166,6 +172,10 @@ var _extends2 = __webpack_require__(/*! babel-runtime/helpers/extends */ "./node var _extends3 = _interopRequireDefault(_extends2); +var _vueTypes = __webpack_require__(/*! ../_util/vue-types */ "./node_modules/ant-design-vue/lib/_util/vue-types/index.js"); + +var _vueTypes2 = _interopRequireDefault(_vueTypes); + var _Checkbox = __webpack_require__(/*! ./Checkbox */ "./node_modules/ant-design-vue/lib/checkbox/Checkbox.js"); var _Checkbox2 = _interopRequireDefault(_Checkbox); @@ -174,6 +184,8 @@ var _propsUtil = __webpack_require__(/*! ../_util/props-util */ "./node_modules/ var _propsUtil2 = _interopRequireDefault(_propsUtil); +var _configProvider = __webpack_require__(/*! ../config-provider */ "./node_modules/ant-design-vue/lib/config-provider/index.js"); + function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } function noop() {} @@ -183,31 +195,23 @@ exports['default'] = { prop: 'value' }, props: { - prefixCls: { - 'default': 'ant-checkbox', - type: String - }, - defaultValue: { - 'default': undefined, - type: Array - }, - value: { - 'default': undefined, - type: Array - }, - options: { - 'default': function _default() { - return []; - }, - type: Array - }, - disabled: Boolean + prefixCls: _vueTypes2['default'].string, + defaultValue: _vueTypes2['default'].array, + value: _vueTypes2['default'].array, + options: _vueTypes2['default'].array.def([]), + disabled: _vueTypes2['default'].bool }, provide: function provide() { return { checkboxGroupContext: this }; }, + + inject: { + configProvider: { 'default': function _default() { + return _configProvider.ConfigConsumerProps; + } } + }, data: function data() { var value = this.value, defaultValue = this.defaultValue; @@ -219,7 +223,7 @@ exports['default'] = { watch: { value: function value(val) { - this.sValue = val; + this.sValue = val || []; } }, methods: { @@ -261,9 +265,12 @@ exports['default'] = { var props = this.$props, state = this.$data, $slots = this.$slots; - var prefixCls = props.prefixCls, + var customizePrefixCls = props.prefixCls, options = props.options; + var getPrefixCls = this.configProvider.getPrefixCls; + var prefixCls = getPrefixCls('checkbox', customizePrefixCls); + var children = $slots['default']; var groupPrefixCls = prefixCls + '-group'; if (options && options.length > 0) { @@ -320,12 +327,17 @@ var _Group = __webpack_require__(/*! ./Group */ "./node_modules/ant-design-vue/l var _Group2 = _interopRequireDefault(_Group); +var _base = __webpack_require__(/*! ../base */ "./node_modules/ant-design-vue/lib/base/index.js"); + +var _base2 = _interopRequireDefault(_base); + function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } _Checkbox2['default'].Group = _Group2['default']; /* istanbul ignore next */ _Checkbox2['default'].install = function (Vue) { + Vue.use(_base2['default']); Vue.component(_Checkbox2['default'].name, _Checkbox2['default']); Vue.component(_Group2['default'].name, _Group2['default']); }; @@ -428,10 +440,16 @@ var _vcPagination = __webpack_require__(/*! ../vc-pagination */ "./node_modules/ var _vcPagination2 = _interopRequireDefault(_vcPagination); +var _en_US = __webpack_require__(/*! ../vc-pagination/locale/en_US */ "./node_modules/ant-design-vue/lib/vc-pagination/locale/en_US.js"); + +var _en_US2 = _interopRequireDefault(_en_US); + var _icon = __webpack_require__(/*! ../icon */ "./node_modules/ant-design-vue/lib/icon/index.js"); var _icon2 = _interopRequireDefault(_icon); +var _configProvider = __webpack_require__(/*! ../config-provider */ "./node_modules/ant-design-vue/lib/config-provider/index.js"); + function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } var PaginationProps = exports.PaginationProps = function PaginationProps() { @@ -470,14 +488,15 @@ exports['default'] = { prop: 'current', event: 'change.current' }, - props: (0, _extends3['default'])({}, PaginationProps(), { - prefixCls: _vueTypes2['default'].string.def('ant-pagination'), - selectPrefixCls: _vueTypes2['default'].string.def('ant-select') - }), + props: (0, _extends3['default'])({}, PaginationProps()), + inject: { + configProvider: { 'default': function _default() { + return _configProvider.ConfigConsumerProps; + } } + }, methods: { - getIconsProps: function getIconsProps() { + getIconsProps: function getIconsProps(prefixCls) { var h = this.$createElement; - var prefixCls = this.$props.prefixCls; var prevIcon = h( 'a', @@ -532,14 +551,23 @@ exports['default'] = { var h = this.$createElement; var _getOptionProps = (0, _propsUtil.getOptionProps)(this), + customizePrefixCls = _getOptionProps.prefixCls, + customizeSelectPrefixCls = _getOptionProps.selectPrefixCls, buildOptionText = _getOptionProps.buildOptionText, size = _getOptionProps.size, customLocale = _getOptionProps.locale, - restProps = (0, _objectWithoutProperties3['default'])(_getOptionProps, ['buildOptionText', 'size', 'locale']); + restProps = (0, _objectWithoutProperties3['default'])(_getOptionProps, ['prefixCls', 'selectPrefixCls', 'buildOptionText', 'size', 'locale']); + + var getPrefixCls = this.configProvider.getPrefixCls; + var prefixCls = getPrefixCls('pagination', customizePrefixCls); + var selectPrefixCls = getPrefixCls('select', customizeSelectPrefixCls); var isSmall = size === 'small'; var paginationProps = { - props: (0, _extends3['default'])({}, restProps, this.getIconsProps(), { + props: (0, _extends3['default'])({ + prefixCls: prefixCls, + selectPrefixCls: selectPrefixCls + }, restProps, this.getIconsProps(prefixCls), { selectComponentClass: isSmall ? _MiniSelect2['default'] : _select2['default'], locale: (0, _extends3['default'])({}, contextLocale, customLocale), buildOptionText: buildOptionText || this.$scopedSlots.buildOptionText @@ -557,8 +585,12 @@ exports['default'] = { var h = arguments[0]; return h(_LocaleReceiver2['default'], { - attrs: { componentName: 'Pagination' }, - scopedSlots: { 'default': this.renderPagination } }); + attrs: { + componentName: 'Pagination', + defaultLocale: _en_US2['default'] + }, + scopedSlots: { 'default': this.renderPagination } + }); } }; @@ -596,10 +628,15 @@ Object.defineProperty(exports, 'PaginationConfig', { var _Pagination2 = _interopRequireDefault(_Pagination); +var _base = __webpack_require__(/*! ../base */ "./node_modules/ant-design-vue/lib/base/index.js"); + +var _base2 = _interopRequireDefault(_base); + function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } /* istanbul ignore next */ _Pagination2['default'].install = function (Vue) { + Vue.use(_base2['default']); Vue.component(_Pagination2['default'].name, _Pagination2['default']); }; @@ -643,6 +680,8 @@ var _Radio2 = _interopRequireDefault(_Radio); var _propsUtil = __webpack_require__(/*! ../_util/props-util */ "./node_modules/ant-design-vue/lib/_util/props-util.js"); +var _configProvider = __webpack_require__(/*! ../config-provider */ "./node_modules/ant-design-vue/lib/config-provider/index.js"); + function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } function noop() {} @@ -653,10 +692,7 @@ exports['default'] = { prop: 'value' }, props: { - prefixCls: { - 'default': 'ant-radio', - type: String - }, + prefixCls: _vueTypes2['default'].string, defaultValue: _vueTypes2['default'].any, value: _vueTypes2['default'].any, size: { @@ -679,6 +715,7 @@ exports['default'] = { var value = this.value, defaultValue = this.defaultValue; + this.updatingValue = false; return { stateValue: value === undefined ? defaultValue : value }; @@ -689,6 +726,11 @@ exports['default'] = { }; }, + inject: { + configProvider: { 'default': function _default() { + return _configProvider.ConfigConsumerProps; + } } + }, computed: { radioOptions: function radioOptions() { var disabled = this.disabled; @@ -708,25 +750,33 @@ exports['default'] = { }, watch: { value: function value(val) { + this.updatingValue = false; this.stateValue = val; } }, methods: { onRadioChange: function onRadioChange(ev) { + var _this = this; + var lastValue = this.stateValue; var value = ev.target.value; if (!(0, _propsUtil.hasProp)(this, 'value')) { this.stateValue = value; } - if (value !== lastValue) { + // nextTick for https://github.com/vueComponent/ant-design-vue/issues/1280 + if (!this.updatingValue && value !== lastValue) { + this.updatingValue = true; this.$emit('input', value); this.$emit('change', ev); } + this.$nextTick(function () { + _this.updatingValue = false; + }); } }, render: function render() { - var _this = this; + var _this2 = this; var h = arguments[0]; var _$listeners = this.$listeners, @@ -736,10 +786,13 @@ exports['default'] = { mouseleave = _$listeners$mouseleav === undefined ? noop : _$listeners$mouseleav; var props = (0, _propsUtil.getOptionProps)(this); - var prefixCls = props.prefixCls, + var customizePrefixCls = props.prefixCls, options = props.options, buttonStyle = props.buttonStyle; + var getPrefixCls = this.configProvider.getPrefixCls; + var prefixCls = getPrefixCls('radio', customizePrefixCls); + var groupPrefixCls = prefixCls + '-group'; var classString = (0, _classnames2['default'])(groupPrefixCls, groupPrefixCls + '-' + buttonStyle, (0, _defineProperty3['default'])({}, groupPrefixCls + '-' + props.size, props.size)); @@ -756,11 +809,7 @@ exports['default'] = { attrs: { prefixCls: prefixCls, disabled: props.disabled, value: option, - - checked: _this.stateValue === option - }, - on: { - 'change': _this.onRadioChange + checked: _this2.stateValue === option } }, [option] @@ -773,11 +822,7 @@ exports['default'] = { attrs: { prefixCls: prefixCls, disabled: option.disabled || props.disabled, value: option.value, - - checked: _this.stateValue === option.value - }, - on: { - 'change': _this.onRadioChange + checked: _this2.stateValue === option.value } }, [option.label] @@ -844,6 +889,8 @@ var _classnames2 = _interopRequireDefault(_classnames); var _propsUtil = __webpack_require__(/*! ../_util/props-util */ "./node_modules/ant-design-vue/lib/_util/props-util.js"); +var _configProvider = __webpack_require__(/*! ../config-provider */ "./node_modules/ant-design-vue/lib/config-provider/index.js"); + function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } function noop() {} @@ -854,10 +901,7 @@ exports['default'] = { prop: 'checked' }, props: { - prefixCls: { - 'default': 'ant-radio', - type: String - }, + prefixCls: _vueTypes2['default'].string, defaultChecked: Boolean, checked: { type: Boolean, 'default': undefined }, disabled: Boolean, @@ -869,7 +913,10 @@ exports['default'] = { type: _vueTypes2['default'].string.def('radio') }, inject: { - radioGroupContext: { 'default': undefined } + radioGroupContext: { 'default': undefined }, + configProvider: { 'default': function _default() { + return _configProvider.ConfigConsumerProps; + } } }, methods: { handleChange: function handleChange(event) { @@ -882,6 +929,12 @@ exports['default'] = { }, blur: function blur() { this.$refs.vcCheckbox.blur(); + }, + onChange: function onChange(e) { + this.$emit('change', e); + if (this.radioGroupContext && this.radioGroupContext.onRadioChange) { + this.radioGroupContext.onRadioChange(e); + } } }, @@ -900,9 +953,12 @@ exports['default'] = { _$listeners$mouseleav = $listeners.mouseleave, mouseleave = _$listeners$mouseleav === undefined ? noop : _$listeners$mouseleav, restListeners = (0, _objectWithoutProperties3['default'])($listeners, ['mouseenter', 'mouseleave']); - var prefixCls = props.prefixCls, + var customizePrefixCls = props.prefixCls, restProps = (0, _objectWithoutProperties3['default'])(props, ['prefixCls']); + var getPrefixCls = this.configProvider.getPrefixCls; + var prefixCls = getPrefixCls('radio', customizePrefixCls); + var radioProps = { props: (0, _extends3['default'])({}, restProps, { prefixCls: prefixCls }), on: restListeners, @@ -911,7 +967,7 @@ exports['default'] = { if (radioGroup) { radioProps.props.name = radioGroup.name; - radioProps.on.change = radioGroup.onRadioChange; + radioProps.on.change = this.onChange; radioProps.props.checked = props.value === radioGroup.stateValue; radioProps.props.disabled = props.disabled || radioGroup.disabled; } else { @@ -947,6 +1003,10 @@ Object.defineProperty(exports, "__esModule", { value: true }); +var _objectWithoutProperties2 = __webpack_require__(/*! babel-runtime/helpers/objectWithoutProperties */ "./node_modules/babel-runtime/helpers/objectWithoutProperties.js"); + +var _objectWithoutProperties3 = _interopRequireDefault(_objectWithoutProperties2); + var _extends2 = __webpack_require__(/*! babel-runtime/helpers/extends */ "./node_modules/babel-runtime/helpers/extends.js"); var _extends3 = _interopRequireDefault(_extends2); @@ -955,30 +1015,45 @@ var _Radio = __webpack_require__(/*! ./Radio */ "./node_modules/ant-design-vue/l var _Radio2 = _interopRequireDefault(_Radio); +var _vueTypes = __webpack_require__(/*! ../_util/vue-types */ "./node_modules/ant-design-vue/lib/_util/vue-types/index.js"); + +var _vueTypes2 = _interopRequireDefault(_vueTypes); + var _propsUtil = __webpack_require__(/*! ../_util/props-util */ "./node_modules/ant-design-vue/lib/_util/props-util.js"); +var _configProvider = __webpack_require__(/*! ../config-provider */ "./node_modules/ant-design-vue/lib/config-provider/index.js"); + function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } exports['default'] = { name: 'ARadioButton', - props: (0, _extends3['default'])({}, _Radio2['default'].props, { - prefixCls: { - 'default': 'ant-radio-button', - type: String - } - }), + props: (0, _extends3['default'])({}, _Radio2['default'].props), inject: { - radioGroupContext: { 'default': undefined } + radioGroupContext: { 'default': undefined }, + configProvider: { 'default': function _default() { + return _configProvider.ConfigConsumerProps; + } } }, render: function render() { var h = arguments[0]; - var props = (0, _propsUtil.getOptionProps)(this); - var radioProps = { props: props, on: (0, _extends3['default'])({}, this.$listeners) }; + var _getOptionProps = (0, _propsUtil.getOptionProps)(this), + customizePrefixCls = _getOptionProps.prefixCls, + otherProps = (0, _objectWithoutProperties3['default'])(_getOptionProps, ['prefixCls']); + + var getPrefixCls = this.configProvider.getPrefixCls; + var prefixCls = getPrefixCls('radio-button', customizePrefixCls); + + var radioProps = { + props: (0, _extends3['default'])({}, otherProps, { + prefixCls: prefixCls + }), + on: (0, _extends3['default'])({}, this.$listeners) + }; if (this.radioGroupContext) { radioProps.on.change = this.radioGroupContext.onRadioChange; - radioProps.props.checked = props.value === this.radioGroupContext.stateValue; - radioProps.props.disabled = props.disabled || this.radioGroupContext.disabled; + radioProps.props.checked = this.$props.value === this.radioGroupContext.stateValue; + radioProps.props.disabled = this.$props.disabled || this.radioGroupContext.disabled; } return h( _Radio2['default'], @@ -1017,6 +1092,10 @@ var _RadioButton = __webpack_require__(/*! ./RadioButton */ "./node_modules/ant- var _RadioButton2 = _interopRequireDefault(_RadioButton); +var _base = __webpack_require__(/*! ../base */ "./node_modules/ant-design-vue/lib/base/index.js"); + +var _base2 = _interopRequireDefault(_base); + function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } _Radio2['default'].Group = _Group2['default']; @@ -1024,6 +1103,7 @@ _Radio2['default'].Button = _RadioButton2['default']; /* istanbul ignore next */ _Radio2['default'].install = function (Vue) { + Vue.use(_base2['default']); Vue.component(_Radio2['default'].name, _Radio2['default']); Vue.component(_Radio2['default'].Group.name, _Radio2['default'].Group); Vue.component(_Radio2['default'].Button.name, _Radio2['default'].Button); @@ -1064,6 +1144,10 @@ var _objectWithoutProperties3 = _interopRequireDefault(_objectWithoutProperties2 exports.setDefaultIndicator = setDefaultIndicator; +var _debounce = __webpack_require__(/*! lodash/debounce */ "./node_modules/lodash/debounce.js"); + +var _debounce2 = _interopRequireDefault(_debounce); + var _vueTypes = __webpack_require__(/*! ../_util/vue-types */ "./node_modules/ant-design-vue/lib/_util/vue-types/index.js"); var _vueTypes2 = _interopRequireDefault(_vueTypes); @@ -1076,6 +1160,8 @@ var _propsUtil = __webpack_require__(/*! ../_util/props-util */ "./node_modules/ var _vnode = __webpack_require__(/*! ../_util/vnode */ "./node_modules/ant-design-vue/lib/_util/vnode.js"); +var _configProvider = __webpack_require__(/*! ../config-provider */ "./node_modules/ant-design-vue/lib/config-provider/index.js"); + function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } var SpinSize = exports.SpinSize = _vueTypes2['default'].oneOf(['small', 'default', 'large']); @@ -1109,66 +1195,53 @@ exports['default'] = { name: 'ASpin', mixins: [_BaseMixin2['default']], props: (0, _propsUtil.initDefaultProps)(SpinProps(), { - prefixCls: 'ant-spin', size: 'default', spinning: true, wrapperClassName: '' }), + inject: { + configProvider: { 'default': function _default() { + return _configProvider.ConfigConsumerProps; + } } + }, data: function data() { var spinning = this.spinning, delay = this.delay; - this.debounceTimeout = null; - this.delayTimeout = null; + var shouldBeDelayed = shouldDelay(spinning, delay); + this.originalUpdateSpinning = this.updateSpinning; + this.debouncifyUpdateSpinning(this.$props); return { - sSpinning: spinning && !shouldDelay(spinning, delay) + sSpinning: spinning && !shouldBeDelayed }; }, + mounted: function mounted() { + this.updateSpinning(); + }, updated: function updated() { var _this = this; this.$nextTick(function () { - var delay = _this.delay, - spinning = _this.spinning, - sSpinning = _this.sSpinning; - - if (sSpinning === spinning) { - return; - } - - if (_this.debounceTimeout) { - clearTimeout(_this.debounceTimeout); - } - if (sSpinning && !spinning) { - _this.debounceTimeout = window.setTimeout(function () { - return _this.setState({ sSpinning: spinning }); - }, 200); - if (_this.delayTimeout) { - clearTimeout(_this.delayTimeout); - } - } else { - if (shouldDelay(spinning, delay)) { - if (_this.delayTimeout) { - clearTimeout(_this.delayTimeout); - } - _this.delayTimeout = window.setTimeout(_this.delayUpdateSpinning, delay); - } else { - _this.setState({ sSpinning: spinning }); - } - } + _this.debouncifyUpdateSpinning(); + _this.updateSpinning(); }); }, beforeDestroy: function beforeDestroy() { - if (this.debounceTimeout) { - clearTimeout(this.debounceTimeout); - } - if (this.delayTimeout) { - clearTimeout(this.delayTimeout); + if (this.updateSpinning && this.updateSpinning.cancel) { + this.updateSpinning.cancel(); } }, methods: { - delayUpdateSpinning: function delayUpdateSpinning() { + debouncifyUpdateSpinning: function debouncifyUpdateSpinning(props) { + var _ref = props || this.$props, + delay = _ref.delay; + + if (delay) { + this.updateSpinning = (0, _debounce2['default'])(this.originalUpdateSpinning, delay); + } + }, + updateSpinning: function updateSpinning() { var spinning = this.spinning, sSpinning = this.sSpinning; @@ -1182,10 +1255,8 @@ exports['default'] = { } return null; }, - renderIndicator: function renderIndicator(h, props) { + renderIndicator: function renderIndicator(h, prefixCls) { // const h = this.$createElement - var prefixCls = props.prefixCls; - var dotClassName = prefixCls + '-dot'; var indicator = (0, _propsUtil.getComponentFromProp)(this, 'indicator'); if (Array.isArray(indicator)) { @@ -1212,10 +1283,14 @@ exports['default'] = { var _$props = this.$props, size = _$props.size, - prefixCls = _$props.prefixCls, + customizePrefixCls = _$props.prefixCls, tip = _$props.tip, wrapperClassName = _$props.wrapperClassName, restProps = (0, _objectWithoutProperties3['default'])(_$props, ['size', 'prefixCls', 'tip', 'wrapperClassName']); + + var getPrefixCls = this.configProvider.getPrefixCls; + var prefixCls = getPrefixCls('spin', customizePrefixCls); + var sSpinning = this.sSpinning; var spinClassName = (_spinClassName = {}, (0, _defineProperty3['default'])(_spinClassName, prefixCls, true), (0, _defineProperty3['default'])(_spinClassName, prefixCls + '-sm', size === 'small'), (0, _defineProperty3['default'])(_spinClassName, prefixCls + '-lg', size === 'large'), (0, _defineProperty3['default'])(_spinClassName, prefixCls + '-spinning', sSpinning), (0, _defineProperty3['default'])(_spinClassName, prefixCls + '-show-text', !!tip), _spinClassName); @@ -1223,7 +1298,7 @@ exports['default'] = { var spinElement = h( 'div', (0, _babelHelperVueJsxMergeProps2['default'])([restProps, { 'class': spinClassName }]), - [this.renderIndicator(h, this.$props), tip ? h( + [this.renderIndicator(h, prefixCls), tip ? h( 'div', { 'class': prefixCls + '-text' }, [tip] @@ -1281,12 +1356,17 @@ Object.defineProperty(exports, 'SpinProps', { var _Spin2 = _interopRequireDefault(_Spin); +var _base = __webpack_require__(/*! ../base */ "./node_modules/ant-design-vue/lib/base/index.js"); + +var _base2 = _interopRequireDefault(_base); + function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } _Spin2['default'].setDefaultIndicator = _Spin.setDefaultIndicator; /* istanbul ignore next */ _Spin2['default'].install = function (Vue) { + Vue.use(_base2['default']); Vue.component(_Spin2['default'].name, _Spin2['default']); }; @@ -1360,10 +1440,11 @@ exports['default'] = { Object.defineProperty(exports, "__esModule", { value: true }); -exports['default'] = { +exports["default"] = { methods: { handelClick: function handelClick(e) { - this.$emit('click', e); + e.stopPropagation(); + //this.$emit('click', e); } }, render: function render() { @@ -1372,13 +1453,13 @@ exports['default'] = { handelClick = this.handelClick; return h( - 'div', + "div", { on: { - 'click': handelClick + "click": handelClick } }, - [$slots['default']] + [$slots["default"]] ); } }; @@ -1761,10 +1842,6 @@ var _objectWithoutProperties2 = __webpack_require__(/*! babel-runtime/helpers/ob var _objectWithoutProperties3 = _interopRequireDefault(_objectWithoutProperties2); -var _typeof2 = __webpack_require__(/*! babel-runtime/helpers/typeof */ "./node_modules/babel-runtime/helpers/typeof.js"); - -var _typeof3 = _interopRequireDefault(_typeof2); - var _defineProperty2 = __webpack_require__(/*! babel-runtime/helpers/defineProperty */ "./node_modules/babel-runtime/helpers/defineProperty.js"); var _defineProperty3 = _interopRequireDefault(_defineProperty2); @@ -1773,6 +1850,10 @@ var _toConsumableArray2 = __webpack_require__(/*! babel-runtime/helpers/toConsum var _toConsumableArray3 = _interopRequireDefault(_toConsumableArray2); +var _typeof2 = __webpack_require__(/*! babel-runtime/helpers/typeof */ "./node_modules/babel-runtime/helpers/typeof.js"); + +var _typeof3 = _interopRequireDefault(_typeof2); + var _extends4 = __webpack_require__(/*! babel-runtime/helpers/extends */ "./node_modules/babel-runtime/helpers/extends.js"); var _extends5 = _interopRequireDefault(_extends4); @@ -1789,30 +1870,6 @@ var _shallowequal = __webpack_require__(/*! shallowequal */ "./node_modules/shal var _shallowequal2 = _interopRequireDefault(_shallowequal); -var _pagination = __webpack_require__(/*! ../pagination */ "./node_modules/ant-design-vue/lib/pagination/index.js"); - -var _pagination2 = _interopRequireDefault(_pagination); - -var _icon = __webpack_require__(/*! ../icon */ "./node_modules/ant-design-vue/lib/icon/index.js"); - -var _icon2 = _interopRequireDefault(_icon); - -var _spin = __webpack_require__(/*! ../spin */ "./node_modules/ant-design-vue/lib/spin/index.js"); - -var _spin2 = _interopRequireDefault(_spin); - -var _LocaleReceiver = __webpack_require__(/*! ../locale-provider/LocaleReceiver */ "./node_modules/ant-design-vue/lib/locale-provider/LocaleReceiver.js"); - -var _LocaleReceiver2 = _interopRequireDefault(_LocaleReceiver); - -var _default = __webpack_require__(/*! ../locale-provider/default */ "./node_modules/ant-design-vue/lib/locale-provider/default.js"); - -var _default2 = _interopRequireDefault(_default); - -var _warning = __webpack_require__(/*! ../_util/warning */ "./node_modules/ant-design-vue/lib/_util/warning.js"); - -var _warning2 = _interopRequireDefault(_warning); - var _filterDropdown = __webpack_require__(/*! ./filterDropdown */ "./node_modules/ant-design-vue/lib/table/filterDropdown.js"); var _filterDropdown2 = _interopRequireDefault(_filterDropdown); @@ -1849,8 +1906,34 @@ var _BaseMixin = __webpack_require__(/*! ../_util/BaseMixin */ "./node_modules/a var _BaseMixin2 = _interopRequireDefault(_BaseMixin); +var _configProvider = __webpack_require__(/*! ../config-provider */ "./node_modules/ant-design-vue/lib/config-provider/index.js"); + var _interface = __webpack_require__(/*! ./interface */ "./node_modules/ant-design-vue/lib/table/interface.js"); +var _pagination = __webpack_require__(/*! ../pagination */ "./node_modules/ant-design-vue/lib/pagination/index.js"); + +var _pagination2 = _interopRequireDefault(_pagination); + +var _icon = __webpack_require__(/*! ../icon */ "./node_modules/ant-design-vue/lib/icon/index.js"); + +var _icon2 = _interopRequireDefault(_icon); + +var _spin = __webpack_require__(/*! ../spin */ "./node_modules/ant-design-vue/lib/spin/index.js"); + +var _spin2 = _interopRequireDefault(_spin); + +var _LocaleReceiver = __webpack_require__(/*! ../locale-provider/LocaleReceiver */ "./node_modules/ant-design-vue/lib/locale-provider/LocaleReceiver.js"); + +var _LocaleReceiver2 = _interopRequireDefault(_LocaleReceiver); + +var _default2 = __webpack_require__(/*! ../locale-provider/default */ "./node_modules/ant-design-vue/lib/locale-provider/default.js"); + +var _default3 = _interopRequireDefault(_default2); + +var _warning = __webpack_require__(/*! ../_util/warning */ "./node_modules/ant-design-vue/lib/_util/warning.js"); + +var _warning2 = _interopRequireDefault(_warning); + function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } function noop() {} @@ -1871,6 +1954,8 @@ var defaultPagination = { onShowSizeChange: noop }; +var ROW_SELECTION_COLUMN_WIDTH = '62px'; + /** * Avoid creating new object, so that parent component's shouldComponentUpdate * can works appropriately。 @@ -1884,7 +1969,6 @@ exports['default'] = { mixins: [_BaseMixin2['default']], props: (0, _propsUtil.initDefaultProps)(_interface.TableProps, { dataSource: [], - prefixCls: 'ant-table', useFixedHeader: false, // rowSelection: null, size: 'default', @@ -1893,9 +1977,15 @@ exports['default'] = { indentSize: 20, locale: {}, rowKey: 'key', - showHeader: true + showHeader: true, + sortDirections: ['ascend', 'descend'] }), + inject: { + configProvider: { 'default': function _default() { + return _configProvider.ConfigConsumerProps; + } } + }, // CheckboxPropsCache: { // [key: string]: any; // }; @@ -1905,7 +1995,8 @@ exports['default'] = { data: function data() { // this.columns = props.columns || normalizeColumns(props.children) - + var props = (0, _propsUtil.getOptionProps)(this); + (0, _warning2['default'])(!props.expandedRowRender || !('scroll' in props), '`expandedRowRender` and `scroll` are not compatible. Please use one of them at one time.'); this.createComponents(this.components); this.CheckboxPropsCache = {}; @@ -1935,7 +2026,7 @@ exports['default'] = { deep: true }, rowSelection: { - handler: function handler(val) { + handler: function handler(val, oldVal) { if (val && 'selectedRowKeys' in val) { this.store.setState({ selectedRowKeys: val.selectedRowKeys || [] @@ -1945,6 +2036,10 @@ exports['default'] = { if (rowSelection && val.getCheckboxProps !== rowSelection.getCheckboxProps) { this.CheckboxPropsCache = {}; } + } else if (oldVal && !val) { + this.store.setState({ + selectedRowKeys: [] + }); } }, @@ -2008,15 +2103,26 @@ exports['default'] = { }); }, getDefaultPagination: function getDefaultPagination(props) { - var pagination = props.pagination || {}; + var pagination = (0, _typeof3['default'])(props.pagination) === 'object' ? props.pagination : {}; + var current = void 0; + if ('current' in pagination) { + current = pagination.current; + } else if ('defaultCurrent' in pagination) { + current = pagination.defaultCurrent; + } + var pageSize = void 0; + if ('pageSize' in pagination) { + pageSize = pagination.pageSize; + } else if ('defaultPageSize' in pagination) { + pageSize = pagination.defaultPageSize; + } return this.hasPagination(props) ? (0, _extends5['default'])({}, defaultPagination, pagination, { - current: pagination.defaultCurrent || pagination.current || 1, - pageSize: pagination.defaultPageSize || pagination.pageSize || 10 + current: current || 1, + pageSize: pageSize || 10 }) : {}; }, - onRow: function onRow(record, index) { - var prefixCls = this.prefixCls, - customRow = this.customRow; + onRow: function onRow(prefixCls, record, index) { + var customRow = this.customRow; var custom = customRow ? customRow(record, index) : {}; return (0, _propsUtil.mergeProps)(custom, { @@ -2169,20 +2275,19 @@ exports['default'] = { if (!column.sorter) { return; } + var sortDirections = column.sortDirections || this.sortDirections; var sortOrder = this.sSortOrder, sortColumn = this.sSortColumn; // 只同时允许一列进行排序,否则会导致排序顺序的逻辑问题 var newSortOrder = void 0; // 切换另一列时,丢弃 sortOrder 的状态 - var oldSortOrder = this.isSameColumn(sortColumn, column) ? sortOrder : undefined; - // 切换排序状态,按照降序/升序/不排序的顺序 - if (!oldSortOrder) { - newSortOrder = 'ascend'; - } else if (oldSortOrder === 'ascend') { - newSortOrder = 'descend'; + if (this.isSameColumn(sortColumn, column) && sortOrder !== undefined) { + // 按照sortDirections的内容依次切换排序状态 + var methodIndex = sortDirections.indexOf(sortOrder) + 1; + newSortOrder = methodIndex === sortDirections.length ? undefined : sortDirections[methodIndex]; } else { - newSortOrder = undefined; + newSortOrder = sortDirections[0]; } var newState = { sSortOrder: newSortOrder, @@ -2499,12 +2604,18 @@ exports['default'] = { getPopupContainer: function getPopupContainer() { return this.$el; }, - renderRowSelection: function renderRowSelection(locale) { + generatePopupContainerFunc: function generatePopupContainerFunc() { + var scroll = this.$props.scroll; + + // Use undefined to let rc component use default logic. + + return scroll ? this.getPopupContainer : undefined; + }, + renderRowSelection: function renderRowSelection(prefixCls, locale) { var _this9 = this; var h = this.$createElement; - var prefixCls = this.prefixCls, - rowSelection = this.rowSelection, + var rowSelection = this.rowSelection, childrenColumnName = this.childrenColumnName; var columns = this.columns.concat(); @@ -2521,7 +2632,7 @@ exports['default'] = { customRender: this.renderSelectionBox(rowSelection.type), className: selectionColumnClass, fixed: rowSelection.fixed, - width: rowSelection.columnWidth, + width: rowSelection.columnWidth || ROW_SELECTION_COLUMN_WIDTH, title: rowSelection.columnTitle }; if (rowSelection.type !== 'radio') { @@ -2540,7 +2651,7 @@ exports['default'] = { selections: rowSelection.selections, hideDefaultSelections: rowSelection.hideDefaultSelections, - getPopupContainer: this.getPopupContainer + getPopupContainer: this.generatePopupContainerFunc() }, on: { 'select': this.handleSelectRow @@ -2583,12 +2694,10 @@ exports['default'] = { } return this.getColumnKey(sortColumn) === this.getColumnKey(column); }, - renderColumnsDropdown: function renderColumnsDropdown(columns, locale) { + renderColumnsDropdown: function renderColumnsDropdown(prefixCls, dropdownPrefixCls, columns, locale) { var _this10 = this; var h = this.$createElement; - var prefixCls = this.prefixCls, - dropdownPrefixCls = this.dropdownPrefixCls; var sortOrder = this.sSortOrder, filters = this.sFilters; @@ -2599,7 +2708,7 @@ exports['default'] = { var filterDropdown = void 0; var sortButton = void 0; var customHeaderCell = column.customHeaderCell; - var sortTitle = _this10.getColumnTitle(column.title, {}) || locale.sortTitle; + var title = _this10.renderColumnTitle(column.title); var isSortColumn = _this10.isSortColumn(column); if (column.filters && column.filters.length > 0 || column.filterDropdown) { var colFilters = key in filters ? filters[key] : []; @@ -2612,28 +2721,37 @@ exports['default'] = { confirmFilter: _this10.handleFilter, prefixCls: prefixCls + '-filter', dropdownPrefixCls: dropdownPrefixCls || 'ant-dropdown', - getPopupContainer: _this10.getPopupContainer + getPopupContainer: _this10.generatePopupContainerFunc() }, key: 'filter-dropdown' }); } if (column.sorter) { + var sortDirections = column.sortDirections || _this10.sortDirections; var isAscend = isSortColumn && sortOrder === 'ascend'; var isDescend = isSortColumn && sortOrder === 'descend'; + var ascend = sortDirections.indexOf('ascend') !== -1 && h(_icon2['default'], { + 'class': prefixCls + '-column-sorter-up ' + (isAscend ? 'on' : 'off'), + attrs: { type: 'caret-up', + theme: 'filled' + }, + key: 'caret-up' + }); + + var descend = sortDirections.indexOf('descend') !== -1 && h(_icon2['default'], { + 'class': prefixCls + '-column-sorter-down ' + (isDescend ? 'on' : 'off'), + attrs: { type: 'caret-down', + theme: 'filled' + }, + key: 'caret-down' + }); + sortButton = h( 'div', - { 'class': prefixCls + '-column-sorter', key: 'sorter' }, - [h(_icon2['default'], { - 'class': prefixCls + '-column-sorter-up ' + (isAscend ? 'on' : 'off'), - attrs: { type: 'caret-up', - theme: 'filled' - } - }), h(_icon2['default'], { - 'class': prefixCls + '-column-sorter-down ' + (isDescend ? 'on' : 'off'), - attrs: { type: 'caret-down', - theme: 'filled' - } - })] + { + attrs: { title: locale.sortTitle }, + 'class': prefixCls + '-column-sorter', key: 'sorter' }, + [ascend, descend] ); customHeaderCell = function customHeaderCell(col) { var colProps = {}; @@ -2653,18 +2771,12 @@ exports['default'] = { return colProps; }; } - var sortTitleString = sortButton && typeof sortTitle === 'string' ? sortTitle : undefined; return (0, _extends5['default'])({}, column, { className: (0, _classnames2['default'])(column.className, (_classNames2 = {}, (0, _defineProperty3['default'])(_classNames2, prefixCls + '-column-has-actions', sortButton || filterDropdown), (0, _defineProperty3['default'])(_classNames2, prefixCls + '-column-has-filters', filterDropdown), (0, _defineProperty3['default'])(_classNames2, prefixCls + '-column-has-sorters', sortButton), (0, _defineProperty3['default'])(_classNames2, prefixCls + '-column-sort', isSortColumn && sortOrder), _classNames2)), title: [h( 'div', - { - key: 'title', - attrs: { title: sortTitleString - }, - 'class': sortButton ? prefixCls + '-column-sorters' : undefined - }, - [_this10.renderColumnTitle(column.title), sortButton] + { key: 'title', 'class': sortButton ? prefixCls + '-column-sorters' : undefined }, + [title, sortButton] ), filterDropdown], customHeaderCell: customHeaderCell }); @@ -2684,33 +2796,6 @@ exports['default'] = { } return title; }, - getColumnTitle: function getColumnTitle(title, parentNode) { - if (!title) { - return; - } - if ((0, _propsUtil.isValidElement)(title)) { - var props = title.componentOptions; - var children = null; - if (props && props.children) { - // for component - children = (0, _propsUtil.filterEmpty)(props.children); - } else if (title.children) { - // for dom - children = (0, _propsUtil.filterEmpty)(title.children); - } - if (children && children.length === 1) { - children = children[0]; - var attrs = (0, _propsUtil.getAllProps)(title); - if (!children.tag && children.text) { - // for textNode - children = children.text; - } - return this.getColumnTitle(children, attrs); - } - } else { - return parentNode.title || title; - } - }, handleShowSizeChange: function handleShowSizeChange(current, pageSize) { var pagination = this.sPagination; pagination.onShowSizeChange(current, pageSize); @@ -2723,7 +2808,7 @@ exports['default'] = { sPagination: nextPagination }))))); }, - renderPagination: function renderPagination(paginationPosition) { + renderPagination: function renderPagination(prefixCls, paginationPosition) { var h = this.$createElement; // 强制不需要分页 @@ -2748,7 +2833,7 @@ exports['default'] = { var paginationProps = (0, _propsUtil.mergeProps)({ key: 'pagination-' + paginationPosition, - 'class': (0, _classnames2['default'])(cls, this.prefixCls + '-pagination'), + 'class': (0, _classnames2['default'])(cls, prefixCls + '-pagination'), props: (0, _extends5['default'])({}, restProps, { total: total, size: size, @@ -2888,7 +2973,7 @@ exports['default'] = { }) }); }, - renderTable: function renderTable(contextLocale, loading) { + renderTable: function renderTable(prefixCls, renderEmpty, dropdownPrefixCls, contextLocale, loading) { var _classNames3, _this14 = this; @@ -2897,17 +2982,21 @@ exports['default'] = { var locale = (0, _extends5['default'])({}, contextLocale, this.locale); var _getOptionProps = (0, _propsUtil.getOptionProps)(this), - prefixCls = _getOptionProps.prefixCls, showHeader = _getOptionProps.showHeader, - restProps = (0, _objectWithoutProperties3['default'])(_getOptionProps, ['prefixCls', 'showHeader']); + restProps = (0, _objectWithoutProperties3['default'])(_getOptionProps, ['showHeader']); var data = this.getCurrentPageData(); var expandIconAsCell = this.expandedRowRender && this.expandIconAsCell !== false; + var mergedLocale = (0, _extends5['default'])({}, contextLocale, locale); + if (!locale || !locale.emptyText) { + mergedLocale.emptyText = renderEmpty(h, 'Table'); + } + var classString = (0, _classnames2['default'])((_classNames3 = {}, (0, _defineProperty3['default'])(_classNames3, prefixCls + '-' + this.size, true), (0, _defineProperty3['default'])(_classNames3, prefixCls + '-bordered', this.bordered), (0, _defineProperty3['default'])(_classNames3, prefixCls + '-empty', !data.length), (0, _defineProperty3['default'])(_classNames3, prefixCls + '-without-column-header', !showHeader), _classNames3)); - var columns = this.renderRowSelection(locale); - columns = this.renderColumnsDropdown(columns, locale); + var columns = this.renderRowSelection(prefixCls, mergedLocale); + columns = this.renderColumnsDropdown(prefixCls, dropdownPrefixCls, columns, mergedLocale); columns = columns.map(function (column, i) { var newColumn = (0, _extends5['default'])({}, column); newColumn.key = _this14.getColumnKey(newColumn, i); @@ -2920,7 +3009,9 @@ exports['default'] = { var vcTableProps = { key: 'table', props: (0, _extends5['default'])({}, restProps, { - customRow: this.onRow, + customRow: function customRow(record, index) { + return _this14.onRow(prefixCls, record, index); + }, components: this.customComponents, prefixCls: prefixCls, data: data, @@ -2928,7 +3019,7 @@ exports['default'] = { showHeader: showHeader, expandIconColumnIndex: expandIconColumnIndex, expandIconAsCell: expandIconAsCell, - emptyText: !(loading.props && loading.props.spinning) && locale.emptyText + emptyText: !(loading.props && loading.props.spinning) && mergedLocale.emptyText }), on: this.$listeners, 'class': classString @@ -2941,7 +3032,8 @@ exports['default'] = { var _this15 = this; var h = arguments[0]; - var prefixCls = this.prefixCls; + var customizePrefixCls = this.prefixCls, + customizeDropdownPrefixCls = this.dropdownPrefixCls; var data = this.getCurrentPageData(); @@ -2957,13 +3049,18 @@ exports['default'] = { props: (0, _extends5['default'])({}, loading) }; } + var getPrefixCls = this.configProvider.getPrefixCls; + var renderEmpty = this.configProvider.renderEmpty; + + var prefixCls = getPrefixCls('table', customizePrefixCls); + var dropdownPrefixCls = getPrefixCls('dropdown', customizeDropdownPrefixCls); var table = h(_LocaleReceiver2['default'], { attrs: { componentName: 'Table', - defaultLocale: _default2['default'].Table, + defaultLocale: _default3['default'].Table, children: function children(locale) { - return _this15.renderTable(locale, loading); + return _this15.renderTable(prefixCls, renderEmpty, dropdownPrefixCls, locale, loading); } } }); @@ -2980,7 +3077,7 @@ exports['default'] = { [h( _spin2['default'], spinProps, - [this.renderPagination('top'), table, this.renderPagination('bottom')] + [this.renderPagination(prefixCls, 'top'), table, this.renderPagination(prefixCls, 'bottom')] )] ); } @@ -3448,7 +3545,11 @@ exports['default'] = { }); } - var menus = filterDropdown ? h(_FilterDropdownMenuWrapper2['default'], [filterDropdown]) : h( + var menus = filterDropdown ? h( + _FilterDropdownMenuWrapper2['default'], + { 'class': prefixCls + '-dropdown' }, + [filterDropdown] + ) : h( _FilterDropdownMenuWrapper2['default'], { 'class': prefixCls + '-dropdown' }, [h( @@ -3547,6 +3648,10 @@ var _Table2 = _interopRequireDefault(_Table); var _propsUtil = __webpack_require__(/*! ../_util/props-util */ "./node_modules/ant-design-vue/lib/_util/props-util.js"); +var _base = __webpack_require__(/*! ../base */ "./node_modules/ant-design-vue/lib/base/index.js"); + +var _base2 = _interopRequireDefault(_base); + function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } var Table = { @@ -3585,7 +3690,7 @@ var Table = { column.key = key; } if ((0, _propsUtil.getSlotOptions)(element).__ANT_TABLE_COLUMN_GROUP) { - column.children = _this.normalize(children); + column.children = _this.normalize(typeof children === 'function' ? children() : children); } else { var customRender = element.data && element.data.scopedSlots && element.data.scopedSlots['default']; column.customRender = column.customRender || customRender; @@ -3666,6 +3771,7 @@ var Table = { }; /* istanbul ignore next */ Table.install = function (Vue) { + Vue.use(_base2['default']); Vue.component(Table.name, Table); Vue.component(Table.Column.name, Table.Column); Vue.component(Table.ColumnGroup.name, Table.ColumnGroup); @@ -3738,7 +3844,8 @@ var ColumnProps = exports.ColumnProps = { fixed: _vueTypes2['default'].oneOfType([_vueTypes2['default'].bool, _vueTypes2['default'].oneOf(['left', 'right'])]), filterIcon: _vueTypes2['default'].any, filteredValue: _vueTypes2['default'].array, - sortOrder: _vueTypes2['default'].oneOf(['ascend', 'descend']) + sortOrder: _vueTypes2['default'].oneOfType([_vueTypes2['default'].bool, _vueTypes2['default'].oneOf(['ascend', 'descend'])]), + sortDirections: _vueTypes2['default'].array // children?: ColumnProps[]; // onCellClick?: (record: T, event: any) => void; // onCell?: (record: T) => any; @@ -3812,7 +3919,7 @@ var TableProps = exports.TableProps = { // onExpand?: (expanded: boolean, record: T) => void; // onChange?: (pagination: PaginationProps | boolean, filters: string[], sorter: Object) => any; loading: _vueTypes2['default'].oneOfType([_vueTypes2['default'].shape(SpinProps).loose, _vueTypes2['default'].bool]), - locale: _vueTypes2['default'].object, + locale: TableLocale, indentSize: _vueTypes2['default'].number, // onRowClick?: (record: T, index: number, event: Event) => any; customRow: _vueTypes2['default'].func, @@ -3825,6 +3932,7 @@ var TableProps = exports.TableProps = { scroll: _vueTypes2['default'].object, childrenColumnName: _vueTypes2['default'].oneOfType([_vueTypes2['default'].array, _vueTypes2['default'].string]), bodyStyle: _vueTypes2['default'].any, + sortDirections: _vueTypes2['default'].array, expandIcon: _vueTypes2['default'].func // className?: PropTypes.string, // style?: React.CSSProperties; @@ -4294,6 +4402,10 @@ Object.defineProperty(exports, "__esModule", { value: true }); +var _babelHelperVueJsxMergeProps = __webpack_require__(/*! babel-helper-vue-jsx-merge-props */ "./node_modules/babel-helper-vue-jsx-merge-props/index.js"); + +var _babelHelperVueJsxMergeProps2 = _interopRequireDefault(_babelHelperVueJsxMergeProps); + var _vueTypes = __webpack_require__(/*! ../_util/vue-types */ "./node_modules/ant-design-vue/lib/_util/vue-types/index.js"); var _vueTypes2 = _interopRequireDefault(_vueTypes); @@ -4311,8 +4423,7 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'd exports['default'] = { mixins: [_BaseMixin2['default']], props: { - rootPrefixCls: _vueTypes2['default'].String, - selectPrefixCls: _vueTypes2['default'].String, + disabled: _vueTypes2['default'].bool, changeSize: _vueTypes2['default'].func, quickGo: _vueTypes2['default'].func, selectComponentClass: _vueTypes2['default'].any, @@ -4321,6 +4432,8 @@ exports['default'] = { pageSize: _vueTypes2['default'].number, buildOptionText: _vueTypes2['default'].func, locale: _vueTypes2['default'].object, + rootPrefixCls: _vueTypes2['default'].string, + selectPrefixCls: _vueTypes2['default'].string, goButton: _vueTypes2['default'].any }, data: function data() { @@ -4330,25 +4443,46 @@ exports['default'] = { }, methods: { + getValidValue: function getValidValue() { + var goInputText = this.goInputText, + current = this.current; + + return isNaN(goInputText) ? current : Number(goInputText); + }, defaultBuildOptionText: function defaultBuildOptionText(opt) { return opt.value + ' ' + this.locale.items_per_page; }, handleChange: function handleChange(e) { + var _e$target = e.target, + value = _e$target.value, + composing = _e$target.composing; + + if (composing || this.goInputText === value) return; this.setState({ - goInputText: e.target.value + goInputText: value }); }, + handleBlur: function handleBlur() { + var goButton = this.goButton, + quickGo = this.quickGo; + + if (goButton) { + return; + } + quickGo(this.getValidValue()); + }, go: function go(e) { - var val = this.goInputText; - if (val === '') { + var goInputText = this.goInputText; + + if (goInputText === '') { return; } - val = isNaN(val) ? this.current : Number(val); if (e.keyCode === _KeyCode2['default'].ENTER || e.type === 'click') { + // https://github.com/vueComponent/ant-design-vue/issues/1316 + this.quickGo(this.getValidValue()); this.setState({ goInputText: '' }); - this.quickGo(val); } } }, @@ -4362,24 +4496,27 @@ exports['default'] = { quickGo = this.quickGo, goButton = this.goButton, Select = this.selectComponentClass, - defaultBuildOptionText = this.defaultBuildOptionText; + defaultBuildOptionText = this.defaultBuildOptionText, + selectPrefixCls = this.selectPrefixCls, + pageSize = this.pageSize, + pageSizeOptions = this.pageSizeOptions, + goInputText = this.goInputText, + disabled = this.disabled; var prefixCls = rootPrefixCls + '-options'; var changeSelect = null; var goInput = null; var gotoButton = null; - if (!(changeSize || quickGo)) { + if (!changeSize && !quickGo) { return null; } if (changeSize && Select) { - var Option = Select.Option; - var pageSize = this.pageSize || this.pageSizeOptions[0]; var buildOptionText = this.buildOptionText || defaultBuildOptionText; - var options = this.pageSizeOptions.map(function (opt, i) { + var options = pageSizeOptions.map(function (opt, i) { return h( - Option, + Select.Option, { key: i, attrs: { value: opt } }, [buildOptionText({ value: opt })] @@ -4390,12 +4527,13 @@ exports['default'] = { Select, { attrs: { - prefixCls: this.selectPrefixCls, + disabled: disabled, + prefixCls: selectPrefixCls, showSearch: false, optionLabelProp: 'children', dropdownMatchSelectWidth: false, - value: pageSize.toString(), + value: (pageSize || pageSizeOptions[0]).toString(), getPopupContainer: function getPopupContainer(triggerNode) { return triggerNode.parentNode; @@ -4413,46 +4551,48 @@ exports['default'] = { if (quickGo) { if (goButton) { - if (typeof goButton === 'boolean') { - gotoButton = h( - 'button', - { - attrs: { type: 'button' }, - on: { - 'click': this.go, - 'keyup': this.go - } - }, - [locale.jump_to_confirm] - ); - } else { - gotoButton = h( - 'span', - { - on: { - 'click': this.go, - 'keyup': this.go - } - }, - [goButton] - ); - } + gotoButton = typeof goButton === 'boolean' ? h( + 'button', + { + attrs: { type: 'button', disabled: disabled }, + on: { + 'click': this.go, + 'keyup': this.go + } + }, + [locale.jump_to_confirm] + ) : h( + 'span', + { + on: { + 'click': this.go, + 'keyup': this.go + } + }, + [goButton] + ); } goInput = h( 'div', { 'class': prefixCls + '-quick-jumper' }, - [locale.jump_to, h('input', { + [locale.jump_to, h('input', (0, _babelHelperVueJsxMergeProps2['default'])([{ attrs: { + disabled: disabled, type: 'text' }, domProps: { - 'value': this.goInputText + 'value': goInputText }, on: { 'input': this.handleChange, - 'keyup': this.go + 'keyup': this.go, + 'blur': this.handleBlur } - }), locale.page, gotoButton] + }, { + directives: [{ + name: 'ant-input' + }] + }])), locale.page, gotoButton] ); } @@ -4569,6 +4709,10 @@ Object.defineProperty(exports, "__esModule", { value: true }); +var _defineProperty2 = __webpack_require__(/*! babel-runtime/helpers/defineProperty */ "./node_modules/babel-runtime/helpers/defineProperty.js"); + +var _defineProperty3 = _interopRequireDefault(_defineProperty2); + var _babelHelperVueJsxMergeProps = __webpack_require__(/*! babel-helper-vue-jsx-merge-props */ "./node_modules/babel-helper-vue-jsx-merge-props/index.js"); var _babelHelperVueJsxMergeProps2 = _interopRequireDefault(_babelHelperVueJsxMergeProps); @@ -4632,6 +4776,7 @@ exports['default'] = { event: 'change.current' }, props: { + disabled: _vueTypes2['default'].bool, prefixCls: _vueTypes2['default'].string.def('rc-pagination'), selectPrefixCls: _vueTypes2['default'].string.def('rc-select'), current: _vueTypes2['default'].number, @@ -4729,9 +4874,34 @@ exports['default'] = { var iconNode = (0, _propsUtil.getComponentFromProp)(this, icon, this.$props) || h('a', { 'class': prefixCls + '-item-link' }); return iconNode; }, + getValidValue: function getValidValue(e) { + var inputValue = e.target.value; + var stateCurrentInputValue = this.$data.stateCurrentInputValue; + + var value = void 0; + if (inputValue === '') { + value = inputValue; + } else if (isNaN(Number(inputValue))) { + value = stateCurrentInputValue; + } else { + value = Number(inputValue); + } + return value; + }, isValid: function isValid(page) { return isInteger(page) && page >= 1 && page !== this.stateCurrent; }, + shouldDisplayQuickJumper: function shouldDisplayQuickJumper() { + var _$props = this.$props, + showQuickJumper = _$props.showQuickJumper, + pageSize = _$props.pageSize, + total = _$props.total; + + if (total <= pageSize) { + return false; + } + return showQuickJumper; + }, // calculatePage (p) { // let pageSize = p @@ -4745,18 +4915,10 @@ exports['default'] = { event.preventDefault(); } }, - handleKeyUp: function handleKeyUp(event) { - var inputValue = event.target.value; + handleKeyUp: function handleKeyUp(e) { + if (e.target.composing) return; + var value = this.getValidValue(e); var stateCurrentInputValue = this.stateCurrentInputValue; - var value = void 0; - - if (inputValue === '') { - value = inputValue; - } else if (isNaN(Number(inputValue))) { - value = stateCurrentInputValue; - } else { - value = Number(inputValue); - } if (value !== stateCurrentInputValue) { this.setState({ @@ -4764,11 +4926,11 @@ exports['default'] = { }); } - if (event.keyCode === _KeyCode2['default'].ENTER) { + if (e.keyCode === _KeyCode2['default'].ENTER) { this.handleChange(value); - } else if (event.keyCode === _KeyCode2['default'].ARROW_UP) { + } else if (e.keyCode === _KeyCode2['default'].ARROW_UP) { this.handleChange(value - 1); - } else if (event.keyCode === _KeyCode2['default'].ARROW_DOWN) { + } else if (e.keyCode === _KeyCode2['default'].ARROW_DOWN) { this.handleChange(value + 1); } }, @@ -4802,8 +4964,10 @@ exports['default'] = { } }, handleChange: function handleChange(p) { + var disabled = this.$props.disabled; + var page = p; - if (this.isValid(page)) { + if (this.isValid(page) && !disabled) { var currentPage = calculatePage(undefined, this.$data, this.$props); if (page > currentPage) { page = currentPage; @@ -4871,16 +5035,21 @@ exports['default'] = { } }, render: function render() { + var _ref; + var h = arguments[0]; + var _$props2 = this.$props, + prefixCls = _$props2.prefixCls, + disabled = _$props2.disabled; // When hideOnSinglePage is true and there is only 1 page, hide the pager + if (this.hideOnSinglePage === true && this.total <= this.statePageSize) { return null; } var props = this.$props; var locale = this.locale; - var prefixCls = this.prefixCls; var allPages = calculatePage(undefined, this.$data, this.$props); var pagerList = []; var jumpPrev = null; @@ -4963,7 +5132,7 @@ exports['default'] = { }, 'class': prefixCls + '-simple-pager' }, - [h('input', { + [h('input', (0, _babelHelperVueJsxMergeProps2['default'])([{ attrs: { type: 'text', @@ -4977,7 +5146,11 @@ exports['default'] = { 'keyup': this.handleKeyUp, 'input': this.handleKeyUp } - }), h( + }, { + directives: [{ + name: 'ant-input' + }] + }])), h( 'span', { 'class': prefixCls + '-slash' }, ['\uFF0F'] @@ -5193,7 +5366,7 @@ exports['default'] = { totalText = h( 'li', { 'class': prefixCls + '-total-text' }, - [this.showTotal(this.total, [(stateCurrent - 1) * statePageSize + 1, stateCurrent * statePageSize > this.total ? this.total : stateCurrent * statePageSize])] + [this.showTotal(this.total, [this.total === 0 ? 0 : (stateCurrent - 1) * statePageSize + 1, stateCurrent * statePageSize > this.total ? this.total : stateCurrent * statePageSize])] ); } var prevDisabled = !this.hasPrev() || !allPages; @@ -5201,8 +5374,12 @@ exports['default'] = { var buildOptionText = this.buildOptionText || this.$scopedSlots.buildOptionText; return h( 'ul', - { 'class': '' + prefixCls, attrs: { unselectable: 'unselectable' }, - ref: 'paginationNode' }, + { + 'class': (_ref = {}, (0, _defineProperty3['default'])(_ref, '' + prefixCls, true), (0, _defineProperty3['default'])(_ref, prefixCls + '-disabled', disabled), _ref), + attrs: { unselectable: 'unselectable' + }, + ref: 'paginationNode' + }, [totalText, h( 'li', { @@ -5239,6 +5416,7 @@ exports['default'] = { [this.itemRender(nextPage, 'next', this.getItemIcon('nextIcon'))] ), h(_Options2['default'], { attrs: { + disabled: disabled, locale: locale, rootPrefixCls: prefixCls, selectComponentClass: this.selectComponentClass, @@ -5248,7 +5426,7 @@ exports['default'] = { pageSize: statePageSize, pageSizeOptions: this.pageSizeOptions, buildOptionText: buildOptionText || null, - quickGo: this.showQuickJumper ? this.handleChange : null, + quickGo: this.shouldDisplayQuickJumper() ? this.handleChange : null, goButton: goButton } })] @@ -5388,7 +5566,7 @@ var Table = { column.key = key; } if ((0, _propsUtil.getSlotOptions)(element).isTableColumnGroup) { - column.children = _this.normalize(children); + column.children = _this.normalize(typeof children === 'function' ? children() : children); } else { var customRender = element.data && element.data.scopedSlots && element.data.scopedSlots['default']; column.customRender = column.customRender || customRender; diff --git a/public/avored-admin/js/chunk/20.js b/public/avored-admin/js/chunk/20.js index b4b1b34c6..52d7510b6 100644 --- a/public/avored-admin/js/chunk/20.js +++ b/public/avored-admin/js/chunk/20.js @@ -1,9 +1,9 @@ (window["webpackJsonp"] = window["webpackJsonp"] || []).push([[20],{ -/***/ "./node_modules/babel-loader/lib/index.js?!./node_modules/vue-loader/lib/index.js?!./vendor/avored/framework/resources/components/cms/page/PageTable.vue?vue&type=script&lang=js&": -/*!**************************************************************************************************************************************************************************************************!*\ - !*** ./node_modules/babel-loader/lib??ref--4-0!./node_modules/vue-loader/lib??vue-loader-options!./vendor/avored/framework/resources/components/cms/page/PageTable.vue?vue&type=script&lang=js& ***! - \**************************************************************************************************************************************************************************************************/ +/***/ "./node_modules/babel-loader/lib/index.js?!./node_modules/vue-loader/lib/index.js?!./packages/framework/resources/components/catalog/property/PropertyTable.vue?vue&type=script&lang=js&": +/*!*********************************************************************************************************************************************************************************************************!*\ + !*** ./node_modules/babel-loader/lib??ref--4-0!./node_modules/vue-loader/lib??vue-loader-options!./packages/framework/resources/components/catalog/property/PropertyTable.vue?vue&type=script&lang=js& ***! + \*********************************************************************************************************************************************************************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { @@ -22,11 +22,6 @@ var columns = [{ dataIndex: 'slug', key: 'slug', sorter: true -}, { - title: 'Meta Title', - dataIndex: 'meta_title', - key: 'meta_title', - sorter: true }, { title: 'Action', key: 'action', @@ -37,7 +32,7 @@ var columns = [{ width: "10%" }]; /* harmony default export */ __webpack_exports__["default"] = ({ - props: ['baseUrl', 'pages'], + props: ['baseUrl', 'properties'], data: function data() { return { columns: columns @@ -45,7 +40,7 @@ var columns = [{ }, methods: { handleTableChange: function handleTableChange(pagination, filters, sorter) { - this.pages.sort(function (a, b) { + this.properties.sort(function (a, b) { var columnKey = sorter.columnKey; var order = sorter.order; @@ -71,22 +66,22 @@ var columns = [{ }); }, getEditUrl: function getEditUrl(record) { - return this.baseUrl + '/page/' + record.id + '/edit'; + return this.baseUrl + '/property/' + record.id + '/edit'; }, getDeleteUrl: function getDeleteUrl(record) { - return this.baseUrl + '/page/' + record.id; + return this.baseUrl + '/property/' + record.id; }, - deletePage: function deletePage(record) { - var url = this.baseUrl + '/page/' + record.id; + deleteProperty: function deleteProperty(record) { + var url = this.baseUrl + '/property/' + record.id; var app = this; this.$confirm({ - title: 'Do you Want to delete ' + record.name + ' page?', + title: 'Do you Want to delete ' + record.name + ' property?', okType: 'danger', onOk: function onOk() { axios["delete"](url).then(function (response) { if (response.data.success === true) { app.$notification.error({ - key: 'page.delete.success', + key: 'property.delete.success', message: response.data.message }); } @@ -94,7 +89,7 @@ var columns = [{ window.location.reload(); })["catch"](function (errors) { app.$notification.error({ - key: 'page.delete.error', + key: 'property.delete.error', message: errors.message }); }); @@ -108,17 +103,17 @@ var columns = [{ /***/ }), -/***/ "./vendor/avored/framework/resources/components/cms/page/PageTable.vue": -/*!*****************************************************************************!*\ - !*** ./vendor/avored/framework/resources/components/cms/page/PageTable.vue ***! - \*****************************************************************************/ +/***/ "./packages/framework/resources/components/catalog/property/PropertyTable.vue": +/*!************************************************************************************!*\ + !*** ./packages/framework/resources/components/catalog/property/PropertyTable.vue ***! + \************************************************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); -/* harmony import */ var _PageTable_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./PageTable.vue?vue&type=script&lang=js& */ "./vendor/avored/framework/resources/components/cms/page/PageTable.vue?vue&type=script&lang=js&"); -/* empty/unused harmony star reexport *//* harmony import */ var _node_modules_vue_loader_lib_runtime_componentNormalizer_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../../../../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js */ "./node_modules/vue-loader/lib/runtime/componentNormalizer.js"); +/* harmony import */ var _PropertyTable_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./PropertyTable.vue?vue&type=script&lang=js& */ "./packages/framework/resources/components/catalog/property/PropertyTable.vue?vue&type=script&lang=js&"); +/* empty/unused harmony star reexport *//* harmony import */ var _node_modules_vue_loader_lib_runtime_componentNormalizer_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../../../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js */ "./node_modules/vue-loader/lib/runtime/componentNormalizer.js"); var render, staticRenderFns @@ -127,7 +122,7 @@ var render, staticRenderFns /* normalize component */ var component = Object(_node_modules_vue_loader_lib_runtime_componentNormalizer_js__WEBPACK_IMPORTED_MODULE_1__["default"])( - _PageTable_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0__["default"], + _PropertyTable_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0__["default"], render, staticRenderFns, false, @@ -139,22 +134,22 @@ var component = Object(_node_modules_vue_loader_lib_runtime_componentNormalizer_ /* hot reload */ if (false) { var api; } -component.options.__file = "vendor/avored/framework/resources/components/cms/page/PageTable.vue" +component.options.__file = "packages/framework/resources/components/catalog/property/PropertyTable.vue" /* harmony default export */ __webpack_exports__["default"] = (component.exports); /***/ }), -/***/ "./vendor/avored/framework/resources/components/cms/page/PageTable.vue?vue&type=script&lang=js&": -/*!******************************************************************************************************!*\ - !*** ./vendor/avored/framework/resources/components/cms/page/PageTable.vue?vue&type=script&lang=js& ***! - \******************************************************************************************************/ +/***/ "./packages/framework/resources/components/catalog/property/PropertyTable.vue?vue&type=script&lang=js&": +/*!*************************************************************************************************************!*\ + !*** ./packages/framework/resources/components/catalog/property/PropertyTable.vue?vue&type=script&lang=js& ***! + \*************************************************************************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); -/* harmony import */ var _node_modules_babel_loader_lib_index_js_ref_4_0_node_modules_vue_loader_lib_index_js_vue_loader_options_PageTable_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! -!../../../../../../../node_modules/babel-loader/lib??ref--4-0!../../../../../../../node_modules/vue-loader/lib??vue-loader-options!./PageTable.vue?vue&type=script&lang=js& */ "./node_modules/babel-loader/lib/index.js?!./node_modules/vue-loader/lib/index.js?!./vendor/avored/framework/resources/components/cms/page/PageTable.vue?vue&type=script&lang=js&"); -/* empty/unused harmony star reexport */ /* harmony default export */ __webpack_exports__["default"] = (_node_modules_babel_loader_lib_index_js_ref_4_0_node_modules_vue_loader_lib_index_js_vue_loader_options_PageTable_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0__["default"]); +/* harmony import */ var _node_modules_babel_loader_lib_index_js_ref_4_0_node_modules_vue_loader_lib_index_js_vue_loader_options_PropertyTable_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! -!../../../../../../node_modules/babel-loader/lib??ref--4-0!../../../../../../node_modules/vue-loader/lib??vue-loader-options!./PropertyTable.vue?vue&type=script&lang=js& */ "./node_modules/babel-loader/lib/index.js?!./node_modules/vue-loader/lib/index.js?!./packages/framework/resources/components/catalog/property/PropertyTable.vue?vue&type=script&lang=js&"); +/* empty/unused harmony star reexport */ /* harmony default export */ __webpack_exports__["default"] = (_node_modules_babel_loader_lib_index_js_ref_4_0_node_modules_vue_loader_lib_index_js_vue_loader_options_PropertyTable_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0__["default"]); /***/ }) diff --git a/public/avored-admin/js/chunk/21.js b/public/avored-admin/js/chunk/21.js index e7698e019..8edff3a2e 100644 --- a/public/avored-admin/js/chunk/21.js +++ b/public/avored-admin/js/chunk/21.js @@ -1,9 +1,9 @@ (window["webpackJsonp"] = window["webpackJsonp"] || []).push([[21],{ -/***/ "./node_modules/babel-loader/lib/index.js?!./node_modules/vue-loader/lib/index.js?!./vendor/avored/framework/resources/components/order/order-status/OrderStatusSave.vue?vue&type=script&lang=js&": -/*!******************************************************************************************************************************************************************************************************************!*\ - !*** ./node_modules/babel-loader/lib??ref--4-0!./node_modules/vue-loader/lib??vue-loader-options!./vendor/avored/framework/resources/components/order/order-status/OrderStatusSave.vue?vue&type=script&lang=js& ***! - \******************************************************************************************************************************************************************************************************************/ +/***/ "./node_modules/babel-loader/lib/index.js?!./node_modules/vue-loader/lib/index.js?!./packages/framework/resources/components/cms/menu/MenuTable.vue?vue&type=script&lang=js&": +/*!*********************************************************************************************************************************************************************************************!*\ + !*** ./node_modules/babel-loader/lib??ref--4-0!./node_modules/vue-loader/lib??vue-loader-options!./packages/framework/resources/components/cms/menu/MenuTable.vue?vue&type=script&lang=js& ***! + \*********************************************************************************************************************************************************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { @@ -12,53 +12,108 @@ __webpack_require__.r(__webpack_exports__); /* harmony import */ var lodash_isNil__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! lodash/isNil */ "./node_modules/lodash/isNil.js"); /* harmony import */ var lodash_isNil__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(lodash_isNil__WEBPACK_IMPORTED_MODULE_0__); +var columns = [{ + title: 'Name', + dataIndex: 'name', + key: 'name', + sorter: true +}, { + title: 'Identifier', + dataIndex: 'identifier', + key: 'identifier', + sorter: true +}, { + title: 'Action', + key: 'action', + scopedSlots: { + customRender: 'action' + }, + sorter: false, + width: "10%" +}]; /* harmony default export */ __webpack_exports__["default"] = ({ - props: ['orderStatus', 'baseUrl'], + props: ['baseUrl', 'menuGroups'], data: function data() { return { - orderStatusForm: this.$form.createForm(this), - is_default: '' + columns: columns }; }, methods: { - handleSubmit: function handleSubmit() { - this.orderStatusForm.validateFields(function (err, values) { - if (err) { - e.preventDefault(); + handleTableChange: function handleTableChange(pagination, filters, sorter) { + this.menuGroups.sort(function (a, b) { + var columnKey = sorter.columnKey; + var order = sorter.order; + + if (lodash_isNil__WEBPACK_IMPORTED_MODULE_0___default()(a[columnKey])) { + a[columnKey] = ''; + } + + if (lodash_isNil__WEBPACK_IMPORTED_MODULE_0___default()(b[columnKey])) { + b[columnKey] = ''; + } + + if (order === 'ascend') { + if (a[columnKey] < b[columnKey]) return -1; + if (a[columnKey] > b[columnKey]) return 1; + } + + if (order === 'descend') { + if (a[columnKey] > b[columnKey]) return -1; + if (a[columnKey] < b[columnKey]) return 1; } + + return 0; }); }, - isOrderStatusDefaultSwitchChange: function isOrderStatusDefaultSwitchChange(checked) { - if (checked) { - this.is_default = 1; - } else { - this.is_default = 0; - } + getEditUrl: function getEditUrl(record) { + return this.baseUrl + '/menu-group/' + record.id + '/edit'; }, - cancelOrderStatus: function cancelOrderStatus() { - window.location = this.baseUrl + '/order-status'; - } - }, - mounted: function mounted() { - if (!lodash_isNil__WEBPACK_IMPORTED_MODULE_0___default()(this.orderStatus)) { - this.is_default = this.orderStatus.is_default; + getDeleteUrl: function getDeleteUrl(record) { + return this.baseUrl + '/menu-group/' + record.id; + }, + deleteMenuGroup: function deleteMenuGroup(record) { + var url = this.baseUrl + '/menu-group/' + record.id; + var app = this; + this.$confirm({ + title: 'Do you Want to delete ' + record.name + ' menu-group?', + okType: 'danger', + onOk: function onOk() { + axios["delete"](url).then(function (response) { + if (response.data.success === true) { + app.$notification.error({ + key: 'menu-group.delete.success', + message: response.data.message + }); + } + + window.location.reload(); + })["catch"](function (errors) { + app.$notification.error({ + key: 'menu-group.delete.error', + message: errors.message + }); + }); + }, + onCancel: function onCancel() {// Do nothing + } + }); } } }); /***/ }), -/***/ "./vendor/avored/framework/resources/components/order/order-status/OrderStatusSave.vue": -/*!*********************************************************************************************!*\ - !*** ./vendor/avored/framework/resources/components/order/order-status/OrderStatusSave.vue ***! - \*********************************************************************************************/ +/***/ "./packages/framework/resources/components/cms/menu/MenuTable.vue": +/*!************************************************************************!*\ + !*** ./packages/framework/resources/components/cms/menu/MenuTable.vue ***! + \************************************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); -/* harmony import */ var _OrderStatusSave_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./OrderStatusSave.vue?vue&type=script&lang=js& */ "./vendor/avored/framework/resources/components/order/order-status/OrderStatusSave.vue?vue&type=script&lang=js&"); -/* empty/unused harmony star reexport *//* harmony import */ var _node_modules_vue_loader_lib_runtime_componentNormalizer_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../../../../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js */ "./node_modules/vue-loader/lib/runtime/componentNormalizer.js"); +/* harmony import */ var _MenuTable_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./MenuTable.vue?vue&type=script&lang=js& */ "./packages/framework/resources/components/cms/menu/MenuTable.vue?vue&type=script&lang=js&"); +/* empty/unused harmony star reexport *//* harmony import */ var _node_modules_vue_loader_lib_runtime_componentNormalizer_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../../../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js */ "./node_modules/vue-loader/lib/runtime/componentNormalizer.js"); var render, staticRenderFns @@ -67,7 +122,7 @@ var render, staticRenderFns /* normalize component */ var component = Object(_node_modules_vue_loader_lib_runtime_componentNormalizer_js__WEBPACK_IMPORTED_MODULE_1__["default"])( - _OrderStatusSave_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0__["default"], + _MenuTable_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0__["default"], render, staticRenderFns, false, @@ -79,22 +134,22 @@ var component = Object(_node_modules_vue_loader_lib_runtime_componentNormalizer_ /* hot reload */ if (false) { var api; } -component.options.__file = "vendor/avored/framework/resources/components/order/order-status/OrderStatusSave.vue" +component.options.__file = "packages/framework/resources/components/cms/menu/MenuTable.vue" /* harmony default export */ __webpack_exports__["default"] = (component.exports); /***/ }), -/***/ "./vendor/avored/framework/resources/components/order/order-status/OrderStatusSave.vue?vue&type=script&lang=js&": -/*!**********************************************************************************************************************!*\ - !*** ./vendor/avored/framework/resources/components/order/order-status/OrderStatusSave.vue?vue&type=script&lang=js& ***! - \**********************************************************************************************************************/ +/***/ "./packages/framework/resources/components/cms/menu/MenuTable.vue?vue&type=script&lang=js&": +/*!*************************************************************************************************!*\ + !*** ./packages/framework/resources/components/cms/menu/MenuTable.vue?vue&type=script&lang=js& ***! + \*************************************************************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); -/* harmony import */ var _node_modules_babel_loader_lib_index_js_ref_4_0_node_modules_vue_loader_lib_index_js_vue_loader_options_OrderStatusSave_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! -!../../../../../../../node_modules/babel-loader/lib??ref--4-0!../../../../../../../node_modules/vue-loader/lib??vue-loader-options!./OrderStatusSave.vue?vue&type=script&lang=js& */ "./node_modules/babel-loader/lib/index.js?!./node_modules/vue-loader/lib/index.js?!./vendor/avored/framework/resources/components/order/order-status/OrderStatusSave.vue?vue&type=script&lang=js&"); -/* empty/unused harmony star reexport */ /* harmony default export */ __webpack_exports__["default"] = (_node_modules_babel_loader_lib_index_js_ref_4_0_node_modules_vue_loader_lib_index_js_vue_loader_options_OrderStatusSave_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0__["default"]); +/* harmony import */ var _node_modules_babel_loader_lib_index_js_ref_4_0_node_modules_vue_loader_lib_index_js_vue_loader_options_MenuTable_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! -!../../../../../../node_modules/babel-loader/lib??ref--4-0!../../../../../../node_modules/vue-loader/lib??vue-loader-options!./MenuTable.vue?vue&type=script&lang=js& */ "./node_modules/babel-loader/lib/index.js?!./node_modules/vue-loader/lib/index.js?!./packages/framework/resources/components/cms/menu/MenuTable.vue?vue&type=script&lang=js&"); +/* empty/unused harmony star reexport */ /* harmony default export */ __webpack_exports__["default"] = (_node_modules_babel_loader_lib_index_js_ref_4_0_node_modules_vue_loader_lib_index_js_vue_loader_options_MenuTable_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0__["default"]); /***/ }) diff --git a/public/avored-admin/js/chunk/22.js b/public/avored-admin/js/chunk/22.js index d91d308d4..74fbd8076 100644 --- a/public/avored-admin/js/chunk/22.js +++ b/public/avored-admin/js/chunk/22.js @@ -1,9 +1,9 @@ (window["webpackJsonp"] = window["webpackJsonp"] || []).push([[22],{ -/***/ "./node_modules/babel-loader/lib/index.js?!./node_modules/vue-loader/lib/index.js?!./vendor/avored/framework/resources/components/order/order-status/OrderStatusTable.vue?vue&type=script&lang=js&": -/*!*******************************************************************************************************************************************************************************************************************!*\ - !*** ./node_modules/babel-loader/lib??ref--4-0!./node_modules/vue-loader/lib??vue-loader-options!./vendor/avored/framework/resources/components/order/order-status/OrderStatusTable.vue?vue&type=script&lang=js& ***! - \*******************************************************************************************************************************************************************************************************************/ +/***/ "./node_modules/babel-loader/lib/index.js?!./node_modules/vue-loader/lib/index.js?!./packages/framework/resources/components/cms/page/PageTable.vue?vue&type=script&lang=js&": +/*!*********************************************************************************************************************************************************************************************!*\ + !*** ./node_modules/babel-loader/lib??ref--4-0!./node_modules/vue-loader/lib??vue-loader-options!./packages/framework/resources/components/cms/page/PageTable.vue?vue&type=script&lang=js& ***! + \*********************************************************************************************************************************************************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { @@ -17,6 +17,16 @@ var columns = [{ dataIndex: 'name', key: 'name', sorter: true +}, { + title: 'Slug', + dataIndex: 'slug', + key: 'slug', + sorter: true +}, { + title: 'Meta Title', + dataIndex: 'meta_title', + key: 'meta_title', + sorter: true }, { title: 'Action', key: 'action', @@ -27,7 +37,7 @@ var columns = [{ width: "10%" }]; /* harmony default export */ __webpack_exports__["default"] = ({ - props: ['baseUrl', 'orderStatuses'], + props: ['baseUrl', 'pages'], data: function data() { return { columns: columns @@ -35,7 +45,7 @@ var columns = [{ }, methods: { handleTableChange: function handleTableChange(pagination, filters, sorter) { - this.orderStatuses.sort(function (a, b) { + this.pages.sort(function (a, b) { var columnKey = sorter.columnKey; var order = sorter.order; @@ -61,22 +71,22 @@ var columns = [{ }); }, getEditUrl: function getEditUrl(record) { - return this.baseUrl + '/order-status/' + record.id + '/edit'; + return this.baseUrl + '/page/' + record.id + '/edit'; }, getDeleteUrl: function getDeleteUrl(record) { - return this.baseUrl + '/order-status/' + record.id; + return this.baseUrl + '/page/' + record.id; }, - deleteOrderStatus: function deleteOrderStatus(record) { - var url = this.baseUrl + '/order-status/' + record.id; + deletePage: function deletePage(record) { + var url = this.baseUrl + '/page/' + record.id; var app = this; this.$confirm({ - title: 'Do you Want to delete ' + record.name + ' order-status?', + title: 'Do you Want to delete ' + record.name + ' page?', okType: 'danger', onOk: function onOk() { axios["delete"](url).then(function (response) { if (response.data.success === true) { app.$notification.error({ - key: 'order-status.delete.success', + key: 'page.delete.success', message: response.data.message }); } @@ -84,7 +94,7 @@ var columns = [{ window.location.reload(); })["catch"](function (errors) { app.$notification.error({ - key: 'order-status.delete.error', + key: 'page.delete.error', message: errors.message }); }); @@ -98,17 +108,17 @@ var columns = [{ /***/ }), -/***/ "./vendor/avored/framework/resources/components/order/order-status/OrderStatusTable.vue": -/*!**********************************************************************************************!*\ - !*** ./vendor/avored/framework/resources/components/order/order-status/OrderStatusTable.vue ***! - \**********************************************************************************************/ +/***/ "./packages/framework/resources/components/cms/page/PageTable.vue": +/*!************************************************************************!*\ + !*** ./packages/framework/resources/components/cms/page/PageTable.vue ***! + \************************************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); -/* harmony import */ var _OrderStatusTable_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./OrderStatusTable.vue?vue&type=script&lang=js& */ "./vendor/avored/framework/resources/components/order/order-status/OrderStatusTable.vue?vue&type=script&lang=js&"); -/* empty/unused harmony star reexport *//* harmony import */ var _node_modules_vue_loader_lib_runtime_componentNormalizer_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../../../../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js */ "./node_modules/vue-loader/lib/runtime/componentNormalizer.js"); +/* harmony import */ var _PageTable_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./PageTable.vue?vue&type=script&lang=js& */ "./packages/framework/resources/components/cms/page/PageTable.vue?vue&type=script&lang=js&"); +/* empty/unused harmony star reexport *//* harmony import */ var _node_modules_vue_loader_lib_runtime_componentNormalizer_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../../../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js */ "./node_modules/vue-loader/lib/runtime/componentNormalizer.js"); var render, staticRenderFns @@ -117,7 +127,7 @@ var render, staticRenderFns /* normalize component */ var component = Object(_node_modules_vue_loader_lib_runtime_componentNormalizer_js__WEBPACK_IMPORTED_MODULE_1__["default"])( - _OrderStatusTable_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0__["default"], + _PageTable_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0__["default"], render, staticRenderFns, false, @@ -129,22 +139,22 @@ var component = Object(_node_modules_vue_loader_lib_runtime_componentNormalizer_ /* hot reload */ if (false) { var api; } -component.options.__file = "vendor/avored/framework/resources/components/order/order-status/OrderStatusTable.vue" +component.options.__file = "packages/framework/resources/components/cms/page/PageTable.vue" /* harmony default export */ __webpack_exports__["default"] = (component.exports); /***/ }), -/***/ "./vendor/avored/framework/resources/components/order/order-status/OrderStatusTable.vue?vue&type=script&lang=js&": -/*!***********************************************************************************************************************!*\ - !*** ./vendor/avored/framework/resources/components/order/order-status/OrderStatusTable.vue?vue&type=script&lang=js& ***! - \***********************************************************************************************************************/ +/***/ "./packages/framework/resources/components/cms/page/PageTable.vue?vue&type=script&lang=js&": +/*!*************************************************************************************************!*\ + !*** ./packages/framework/resources/components/cms/page/PageTable.vue?vue&type=script&lang=js& ***! + \*************************************************************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); -/* harmony import */ var _node_modules_babel_loader_lib_index_js_ref_4_0_node_modules_vue_loader_lib_index_js_vue_loader_options_OrderStatusTable_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! -!../../../../../../../node_modules/babel-loader/lib??ref--4-0!../../../../../../../node_modules/vue-loader/lib??vue-loader-options!./OrderStatusTable.vue?vue&type=script&lang=js& */ "./node_modules/babel-loader/lib/index.js?!./node_modules/vue-loader/lib/index.js?!./vendor/avored/framework/resources/components/order/order-status/OrderStatusTable.vue?vue&type=script&lang=js&"); -/* empty/unused harmony star reexport */ /* harmony default export */ __webpack_exports__["default"] = (_node_modules_babel_loader_lib_index_js_ref_4_0_node_modules_vue_loader_lib_index_js_vue_loader_options_OrderStatusTable_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0__["default"]); +/* harmony import */ var _node_modules_babel_loader_lib_index_js_ref_4_0_node_modules_vue_loader_lib_index_js_vue_loader_options_PageTable_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! -!../../../../../../node_modules/babel-loader/lib??ref--4-0!../../../../../../node_modules/vue-loader/lib??vue-loader-options!./PageTable.vue?vue&type=script&lang=js& */ "./node_modules/babel-loader/lib/index.js?!./node_modules/vue-loader/lib/index.js?!./packages/framework/resources/components/cms/page/PageTable.vue?vue&type=script&lang=js&"); +/* empty/unused harmony star reexport */ /* harmony default export */ __webpack_exports__["default"] = (_node_modules_babel_loader_lib_index_js_ref_4_0_node_modules_vue_loader_lib_index_js_vue_loader_options_PageTable_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0__["default"]); /***/ }) diff --git a/public/avored-admin/js/chunk/23.js b/public/avored-admin/js/chunk/23.js index d14c5ca7f..f8b5ef0a9 100644 --- a/public/avored-admin/js/chunk/23.js +++ b/public/avored-admin/js/chunk/23.js @@ -1,166 +1,64 @@ (window["webpackJsonp"] = window["webpackJsonp"] || []).push([[23],{ -/***/ "./node_modules/babel-loader/lib/index.js?!./node_modules/vue-loader/lib/index.js?!./vendor/avored/framework/resources/components/order/order/OrderTable.vue?vue&type=script&lang=js&": -/*!******************************************************************************************************************************************************************************************************!*\ - !*** ./node_modules/babel-loader/lib??ref--4-0!./node_modules/vue-loader/lib??vue-loader-options!./vendor/avored/framework/resources/components/order/order/OrderTable.vue?vue&type=script&lang=js& ***! - \******************************************************************************************************************************************************************************************************/ +/***/ "./node_modules/babel-loader/lib/index.js?!./node_modules/vue-loader/lib/index.js?!./packages/framework/resources/components/order/order-status/OrderStatusSave.vue?vue&type=script&lang=js&": +/*!*************************************************************************************************************************************************************************************************************!*\ + !*** ./node_modules/babel-loader/lib??ref--4-0!./node_modules/vue-loader/lib??vue-loader-options!./packages/framework/resources/components/order/order-status/OrderStatusSave.vue?vue&type=script&lang=js& ***! + \*************************************************************************************************************************************************************************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); -/* harmony import */ var axios__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! axios */ "./node_modules/axios/index.js"); -/* harmony import */ var axios__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(axios__WEBPACK_IMPORTED_MODULE_0__); -var columns = [{ - title: 'Payment Options', - dataIndex: 'payment_option', - key: 'payment_option', - sorter: true -}, { - title: 'Shipping Options', - dataIndex: 'shipping_option', - key: 'shipping_option', - sorter: true -}, { - title: 'Status', - dataIndex: 'order_status_id', - scopedSlots: { - customRender: 'order_status' - }, - key: 'order_status_id', - sorter: true -}, { - title: 'Action', - key: 'action', - scopedSlots: { - customRender: 'action' - }, - sorter: false, - width: "20%" -}]; +/* harmony import */ var lodash_isNil__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! lodash/isNil */ "./node_modules/lodash/isNil.js"); +/* harmony import */ var lodash_isNil__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(lodash_isNil__WEBPACK_IMPORTED_MODULE_0__); /* harmony default export */ __webpack_exports__["default"] = ({ - props: ['baseUrl', 'orderStatus'], + props: ['orderStatus', 'baseUrl'], data: function data() { return { - columns: columns, - changeStatusId: null, - track_code: '', - track_code_modal_visibility: false, - change_status_modal_visibility: false, - currentRecord: {} + orderStatusForm: this.$form.createForm(this), + is_default: '' }; }, methods: { - getShowUrl: function getShowUrl(record) { - return this.baseUrl + '/order/' + record.id; - }, - changeStatusDropdown: function changeStatusDropdown(val) { - this.changeStatusId = val; - }, - downloadOrderAction: function downloadOrderAction(record) { - return this.baseUrl + '/order-download-invoice/' + record.id; - }, - getOrderStatus: function getOrderStatus(statusId) { - var index; - index = this.orderStatus.findIndex(function (ele) { - return ele.id === statusId; - }); - - if (index >= 0) { - return this.orderStatus[index].name; - } - - return ''; - }, - emailInvoiceOrderAction: function emailInvoiceOrderAction(record) { - return this.baseUrl + '/order-email-invoice/' + record.id; - }, - shippingLabelOrderAction: function shippingLabelOrderAction(record) { - return this.baseUrl + '/order-shipping-label/' + record.id; - }, - orderShowAction: function orderShowAction(record) { - return this.baseUrl + '/order/' + record.id; - }, - handleTrackCodeOk: function handleTrackCodeOk(e) { - var data = { - track_code: this.track_code - }; - var url = this.baseUrl + '/save-order-track-code/' + this.currentRecord.id; - var app = this; - axios__WEBPACK_IMPORTED_MODULE_0___default.a.post(url, data).then(function (response) { - if (response.data.success === true) { - app.$notification.success({ - key: 'save.order.track.code.success', - message: response.data.message - }); + handleSubmit: function handleSubmit() { + this.orderStatusForm.validateFields(function (err, values) { + if (err) { + e.preventDefault(); } - - window.location.reload(); - app.track_code_modal_visibility = false; - })["catch"](function (errors) { - app.$notification.error({ - key: 'save.order.track.code.error', - message: errors.message - }); }); }, - changeStatusMenuClick: function changeStatusMenuClick(record, e) { - e.preventDefault(); - this.currentRecord = record; - this.change_status = record.order_Status_id; - this.change_status_modal_visibility = true; - }, - addTrackingCodeMenuClick: function addTrackingCodeMenuClick(record, e) { - e.preventDefault(); - this.currentRecord = record; - this.track_code = record.track_code; - this.track_code_modal_visibility = true; - }, - handleTrackCodeCancel: function handleTrackCodeCancel() { - this.track_code_modal_visibility = false; - }, - handleChangeStatusCancel: function handleChangeStatusCancel() { - this.change_status_modal_visibility = false; + isOrderStatusDefaultSwitchChange: function isOrderStatusDefaultSwitchChange(checked) { + if (checked) { + this.is_default = 1; + } else { + this.is_default = 0; + } }, - handleChangeStatusOk: function handleChangeStatusOk() { - var data = { - order_status_id: this.changeStatusId - }; - var url = this.baseUrl + '/order-change-status/' + this.currentRecord.id; - var app = this; - axios__WEBPACK_IMPORTED_MODULE_0___default.a.post(url, data).then(function (response) { - if (response.data.success === true) { - app.$notification.success({ - key: 'order.delete.success', - message: response.data.message - }); - } - - window.location.reload(); - })["catch"](function (errors) { - app.$notification.error({ - key: 'order.delete.error', - message: errors.message - }); - }); + cancelOrderStatus: function cancelOrderStatus() { + window.location = this.baseUrl + '/order-status'; + } + }, + mounted: function mounted() { + if (!lodash_isNil__WEBPACK_IMPORTED_MODULE_0___default()(this.orderStatus)) { + this.is_default = this.orderStatus.is_default; } } }); /***/ }), -/***/ "./vendor/avored/framework/resources/components/order/order/OrderTable.vue": -/*!*********************************************************************************!*\ - !*** ./vendor/avored/framework/resources/components/order/order/OrderTable.vue ***! - \*********************************************************************************/ +/***/ "./packages/framework/resources/components/order/order-status/OrderStatusSave.vue": +/*!****************************************************************************************!*\ + !*** ./packages/framework/resources/components/order/order-status/OrderStatusSave.vue ***! + \****************************************************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); -/* harmony import */ var _OrderTable_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./OrderTable.vue?vue&type=script&lang=js& */ "./vendor/avored/framework/resources/components/order/order/OrderTable.vue?vue&type=script&lang=js&"); -/* empty/unused harmony star reexport *//* harmony import */ var _node_modules_vue_loader_lib_runtime_componentNormalizer_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../../../../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js */ "./node_modules/vue-loader/lib/runtime/componentNormalizer.js"); +/* harmony import */ var _OrderStatusSave_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./OrderStatusSave.vue?vue&type=script&lang=js& */ "./packages/framework/resources/components/order/order-status/OrderStatusSave.vue?vue&type=script&lang=js&"); +/* empty/unused harmony star reexport *//* harmony import */ var _node_modules_vue_loader_lib_runtime_componentNormalizer_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../../../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js */ "./node_modules/vue-loader/lib/runtime/componentNormalizer.js"); var render, staticRenderFns @@ -169,7 +67,7 @@ var render, staticRenderFns /* normalize component */ var component = Object(_node_modules_vue_loader_lib_runtime_componentNormalizer_js__WEBPACK_IMPORTED_MODULE_1__["default"])( - _OrderTable_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0__["default"], + _OrderStatusSave_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0__["default"], render, staticRenderFns, false, @@ -181,22 +79,22 @@ var component = Object(_node_modules_vue_loader_lib_runtime_componentNormalizer_ /* hot reload */ if (false) { var api; } -component.options.__file = "vendor/avored/framework/resources/components/order/order/OrderTable.vue" +component.options.__file = "packages/framework/resources/components/order/order-status/OrderStatusSave.vue" /* harmony default export */ __webpack_exports__["default"] = (component.exports); /***/ }), -/***/ "./vendor/avored/framework/resources/components/order/order/OrderTable.vue?vue&type=script&lang=js&": -/*!**********************************************************************************************************!*\ - !*** ./vendor/avored/framework/resources/components/order/order/OrderTable.vue?vue&type=script&lang=js& ***! - \**********************************************************************************************************/ +/***/ "./packages/framework/resources/components/order/order-status/OrderStatusSave.vue?vue&type=script&lang=js&": +/*!*****************************************************************************************************************!*\ + !*** ./packages/framework/resources/components/order/order-status/OrderStatusSave.vue?vue&type=script&lang=js& ***! + \*****************************************************************************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); -/* harmony import */ var _node_modules_babel_loader_lib_index_js_ref_4_0_node_modules_vue_loader_lib_index_js_vue_loader_options_OrderTable_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! -!../../../../../../../node_modules/babel-loader/lib??ref--4-0!../../../../../../../node_modules/vue-loader/lib??vue-loader-options!./OrderTable.vue?vue&type=script&lang=js& */ "./node_modules/babel-loader/lib/index.js?!./node_modules/vue-loader/lib/index.js?!./vendor/avored/framework/resources/components/order/order/OrderTable.vue?vue&type=script&lang=js&"); -/* empty/unused harmony star reexport */ /* harmony default export */ __webpack_exports__["default"] = (_node_modules_babel_loader_lib_index_js_ref_4_0_node_modules_vue_loader_lib_index_js_vue_loader_options_OrderTable_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0__["default"]); +/* harmony import */ var _node_modules_babel_loader_lib_index_js_ref_4_0_node_modules_vue_loader_lib_index_js_vue_loader_options_OrderStatusSave_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! -!../../../../../../node_modules/babel-loader/lib??ref--4-0!../../../../../../node_modules/vue-loader/lib??vue-loader-options!./OrderStatusSave.vue?vue&type=script&lang=js& */ "./node_modules/babel-loader/lib/index.js?!./node_modules/vue-loader/lib/index.js?!./packages/framework/resources/components/order/order-status/OrderStatusSave.vue?vue&type=script&lang=js&"); +/* empty/unused harmony star reexport */ /* harmony default export */ __webpack_exports__["default"] = (_node_modules_babel_loader_lib_index_js_ref_4_0_node_modules_vue_loader_lib_index_js_vue_loader_options_OrderStatusSave_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0__["default"]); /***/ }) diff --git a/public/avored-admin/js/chunk/24.js b/public/avored-admin/js/chunk/24.js index a9f8ed65b..28998deb7 100644 --- a/public/avored-admin/js/chunk/24.js +++ b/public/avored-admin/js/chunk/24.js @@ -1,9 +1,9 @@ (window["webpackJsonp"] = window["webpackJsonp"] || []).push([[24],{ -/***/ "./node_modules/babel-loader/lib/index.js?!./node_modules/vue-loader/lib/index.js?!./vendor/avored/framework/resources/components/promotion/promotion-code/PromotionCodeTable.vue?vue&type=script&lang=js&": -/*!***************************************************************************************************************************************************************************************************************************!*\ - !*** ./node_modules/babel-loader/lib??ref--4-0!./node_modules/vue-loader/lib??vue-loader-options!./vendor/avored/framework/resources/components/promotion/promotion-code/PromotionCodeTable.vue?vue&type=script&lang=js& ***! - \***************************************************************************************************************************************************************************************************************************/ +/***/ "./node_modules/babel-loader/lib/index.js?!./node_modules/vue-loader/lib/index.js?!./packages/framework/resources/components/order/order-status/OrderStatusTable.vue?vue&type=script&lang=js&": +/*!**************************************************************************************************************************************************************************************************************!*\ + !*** ./node_modules/babel-loader/lib??ref--4-0!./node_modules/vue-loader/lib??vue-loader-options!./packages/framework/resources/components/order/order-status/OrderStatusTable.vue?vue&type=script&lang=js& ***! + \**************************************************************************************************************************************************************************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { @@ -17,11 +17,6 @@ var columns = [{ dataIndex: 'name', key: 'name', sorter: true -}, { - title: 'Code', - dataIndex: 'code', - key: 'code', - sorter: true }, { title: 'Action', key: 'action', @@ -32,7 +27,7 @@ var columns = [{ width: "10%" }]; /* harmony default export */ __webpack_exports__["default"] = ({ - props: ['baseUrl', 'promotionCodes'], + props: ['baseUrl', 'orderStatuses'], data: function data() { return { columns: columns @@ -40,7 +35,7 @@ var columns = [{ }, methods: { handleTableChange: function handleTableChange(pagination, filters, sorter) { - this.promotionCodes.sort(function (a, b) { + this.orderStatuses.sort(function (a, b) { var columnKey = sorter.columnKey; var order = sorter.order; @@ -66,22 +61,22 @@ var columns = [{ }); }, getEditUrl: function getEditUrl(record) { - return this.baseUrl + '/promotion-code-edit/' + record.id; + return this.baseUrl + '/order-status/' + record.id + '/edit'; }, getDeleteUrl: function getDeleteUrl(record) { - return this.baseUrl + '/promotion-code/' + record.id; + return this.baseUrl + '/order-status/' + record.id; }, - clickOnDeleteIcon: function clickOnDeleteIcon(record) { - var url = this.baseUrl + '/promotion-code/' + record.id; + deleteOrderStatus: function deleteOrderStatus(record) { + var url = this.baseUrl + '/order-status/' + record.id; var app = this; this.$confirm({ - title: 'Do you Want to delete ' + record.name + ' promotion-code?', + title: 'Do you Want to delete ' + record.name + ' order-status?', okType: 'danger', onOk: function onOk() { axios["delete"](url).then(function (response) { if (response.data.success === true) { app.$notification.error({ - key: 'promotion-code.delete.success', + key: 'order-status.delete.success', message: response.data.message }); } @@ -89,7 +84,7 @@ var columns = [{ window.location.reload(); })["catch"](function (errors) { app.$notification.error({ - key: 'promotion-code.delete.error', + key: 'order-status.delete.error', message: errors.message }); }); @@ -103,17 +98,17 @@ var columns = [{ /***/ }), -/***/ "./vendor/avored/framework/resources/components/promotion/promotion-code/PromotionCodeTable.vue": -/*!******************************************************************************************************!*\ - !*** ./vendor/avored/framework/resources/components/promotion/promotion-code/PromotionCodeTable.vue ***! - \******************************************************************************************************/ +/***/ "./packages/framework/resources/components/order/order-status/OrderStatusTable.vue": +/*!*****************************************************************************************!*\ + !*** ./packages/framework/resources/components/order/order-status/OrderStatusTable.vue ***! + \*****************************************************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); -/* harmony import */ var _PromotionCodeTable_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./PromotionCodeTable.vue?vue&type=script&lang=js& */ "./vendor/avored/framework/resources/components/promotion/promotion-code/PromotionCodeTable.vue?vue&type=script&lang=js&"); -/* empty/unused harmony star reexport *//* harmony import */ var _node_modules_vue_loader_lib_runtime_componentNormalizer_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../../../../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js */ "./node_modules/vue-loader/lib/runtime/componentNormalizer.js"); +/* harmony import */ var _OrderStatusTable_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./OrderStatusTable.vue?vue&type=script&lang=js& */ "./packages/framework/resources/components/order/order-status/OrderStatusTable.vue?vue&type=script&lang=js&"); +/* empty/unused harmony star reexport *//* harmony import */ var _node_modules_vue_loader_lib_runtime_componentNormalizer_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../../../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js */ "./node_modules/vue-loader/lib/runtime/componentNormalizer.js"); var render, staticRenderFns @@ -122,7 +117,7 @@ var render, staticRenderFns /* normalize component */ var component = Object(_node_modules_vue_loader_lib_runtime_componentNormalizer_js__WEBPACK_IMPORTED_MODULE_1__["default"])( - _PromotionCodeTable_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0__["default"], + _OrderStatusTable_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0__["default"], render, staticRenderFns, false, @@ -134,22 +129,22 @@ var component = Object(_node_modules_vue_loader_lib_runtime_componentNormalizer_ /* hot reload */ if (false) { var api; } -component.options.__file = "vendor/avored/framework/resources/components/promotion/promotion-code/PromotionCodeTable.vue" +component.options.__file = "packages/framework/resources/components/order/order-status/OrderStatusTable.vue" /* harmony default export */ __webpack_exports__["default"] = (component.exports); /***/ }), -/***/ "./vendor/avored/framework/resources/components/promotion/promotion-code/PromotionCodeTable.vue?vue&type=script&lang=js&": -/*!*******************************************************************************************************************************!*\ - !*** ./vendor/avored/framework/resources/components/promotion/promotion-code/PromotionCodeTable.vue?vue&type=script&lang=js& ***! - \*******************************************************************************************************************************/ +/***/ "./packages/framework/resources/components/order/order-status/OrderStatusTable.vue?vue&type=script&lang=js&": +/*!******************************************************************************************************************!*\ + !*** ./packages/framework/resources/components/order/order-status/OrderStatusTable.vue?vue&type=script&lang=js& ***! + \******************************************************************************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); -/* harmony import */ var _node_modules_babel_loader_lib_index_js_ref_4_0_node_modules_vue_loader_lib_index_js_vue_loader_options_PromotionCodeTable_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! -!../../../../../../../node_modules/babel-loader/lib??ref--4-0!../../../../../../../node_modules/vue-loader/lib??vue-loader-options!./PromotionCodeTable.vue?vue&type=script&lang=js& */ "./node_modules/babel-loader/lib/index.js?!./node_modules/vue-loader/lib/index.js?!./vendor/avored/framework/resources/components/promotion/promotion-code/PromotionCodeTable.vue?vue&type=script&lang=js&"); -/* empty/unused harmony star reexport */ /* harmony default export */ __webpack_exports__["default"] = (_node_modules_babel_loader_lib_index_js_ref_4_0_node_modules_vue_loader_lib_index_js_vue_loader_options_PromotionCodeTable_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0__["default"]); +/* harmony import */ var _node_modules_babel_loader_lib_index_js_ref_4_0_node_modules_vue_loader_lib_index_js_vue_loader_options_OrderStatusTable_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! -!../../../../../../node_modules/babel-loader/lib??ref--4-0!../../../../../../node_modules/vue-loader/lib??vue-loader-options!./OrderStatusTable.vue?vue&type=script&lang=js& */ "./node_modules/babel-loader/lib/index.js?!./node_modules/vue-loader/lib/index.js?!./packages/framework/resources/components/order/order-status/OrderStatusTable.vue?vue&type=script&lang=js&"); +/* empty/unused harmony star reexport */ /* harmony default export */ __webpack_exports__["default"] = (_node_modules_babel_loader_lib_index_js_ref_4_0_node_modules_vue_loader_lib_index_js_vue_loader_options_OrderStatusTable_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0__["default"]); /***/ }) diff --git a/public/avored-admin/js/chunk/25.js b/public/avored-admin/js/chunk/25.js index dc5bd8f34..43d255626 100644 --- a/public/avored-admin/js/chunk/25.js +++ b/public/avored-admin/js/chunk/25.js @@ -1,31 +1,148 @@ (window["webpackJsonp"] = window["webpackJsonp"] || []).push([[25],{ -/***/ "./node_modules/babel-loader/lib/index.js?!./node_modules/vue-loader/lib/index.js?!./vendor/avored/framework/resources/components/system/Flash.vue?vue&type=script&lang=js&": -/*!********************************************************************************************************************************************************************************************!*\ - !*** ./node_modules/babel-loader/lib??ref--4-0!./node_modules/vue-loader/lib??vue-loader-options!./vendor/avored/framework/resources/components/system/Flash.vue?vue&type=script&lang=js& ***! - \********************************************************************************************************************************************************************************************/ +/***/ "./node_modules/babel-loader/lib/index.js?!./node_modules/vue-loader/lib/index.js?!./packages/framework/resources/components/order/order/OrderTable.vue?vue&type=script&lang=js&": +/*!*************************************************************************************************************************************************************************************************!*\ + !*** ./node_modules/babel-loader/lib??ref--4-0!./node_modules/vue-loader/lib??vue-loader-options!./packages/framework/resources/components/order/order/OrderTable.vue?vue&type=script&lang=js& ***! + \*************************************************************************************************************************************************************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); -/* harmony import */ var lodash_isEmpty__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! lodash/isEmpty */ "./node_modules/lodash/isEmpty.js"); -/* harmony import */ var lodash_isEmpty__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(lodash_isEmpty__WEBPACK_IMPORTED_MODULE_0__); -// +/* harmony import */ var axios__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! axios */ "./node_modules/axios/index.js"); +/* harmony import */ var axios__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(axios__WEBPACK_IMPORTED_MODULE_0__); +var columns = [{ + title: 'Payment Options', + dataIndex: 'payment_option', + key: 'payment_option', + sorter: true +}, { + title: 'Shipping Options', + dataIndex: 'shipping_option', + key: 'shipping_option', + sorter: true +}, { + title: 'Status', + dataIndex: 'order_status_id', + scopedSlots: { + customRender: 'order_status' + }, + key: 'order_status_id', + sorter: true +}, { + title: 'Action', + key: 'action', + scopedSlots: { + customRender: 'action' + }, + sorter: false, + width: "20%" +}]; -var successNotificationKey = 'success-notification'; /* harmony default export */ __webpack_exports__["default"] = ({ - props: ['successNotification'], + props: ['baseUrl', 'orderStatus'], data: function data() { return { - collapsed: false + columns: columns, + changeStatusId: null, + track_code: '', + track_code_modal_visibility: false, + change_status_modal_visibility: false, + currentRecord: {} }; }, - mounted: function mounted() { - if (!lodash_isEmpty__WEBPACK_IMPORTED_MODULE_0___default()(this.successNotification)) { - this.$notification['success']({ - key: successNotificationKey, - message: this.successNotification + methods: { + getShowUrl: function getShowUrl(record) { + return this.baseUrl + '/order/' + record.id; + }, + changeStatusDropdown: function changeStatusDropdown(val) { + this.changeStatusId = val; + }, + downloadOrderAction: function downloadOrderAction(record) { + return this.baseUrl + '/order-download-invoice/' + record.id; + }, + getOrderStatus: function getOrderStatus(statusId) { + var index; + index = this.orderStatus.findIndex(function (ele) { + return ele.id === statusId; + }); + + if (index >= 0) { + return this.orderStatus[index].name; + } + + return ''; + }, + emailInvoiceOrderAction: function emailInvoiceOrderAction(record) { + return this.baseUrl + '/order-email-invoice/' + record.id; + }, + shippingLabelOrderAction: function shippingLabelOrderAction(record) { + return this.baseUrl + '/order-shipping-label/' + record.id; + }, + orderShowAction: function orderShowAction(record) { + return this.baseUrl + '/order/' + record.id; + }, + handleTrackCodeOk: function handleTrackCodeOk(e) { + var data = { + track_code: this.track_code + }; + var url = this.baseUrl + '/save-order-track-code/' + this.currentRecord.id; + var app = this; + axios__WEBPACK_IMPORTED_MODULE_0___default.a.post(url, data).then(function (response) { + if (response.data.success === true) { + app.$notification.success({ + key: 'save.order.track.code.success', + message: response.data.message + }); + } + + window.location.reload(); + app.track_code_modal_visibility = false; + })["catch"](function (errors) { + app.$notification.error({ + key: 'save.order.track.code.error', + message: errors.message + }); + }); + }, + changeStatusMenuClick: function changeStatusMenuClick(record, e) { + e.preventDefault(); + this.currentRecord = record; + this.change_status = record.order_Status_id; + this.change_status_modal_visibility = true; + }, + addTrackingCodeMenuClick: function addTrackingCodeMenuClick(record, e) { + e.preventDefault(); + this.currentRecord = record; + this.track_code = record.track_code; + this.track_code_modal_visibility = true; + }, + handleTrackCodeCancel: function handleTrackCodeCancel() { + this.track_code_modal_visibility = false; + }, + handleChangeStatusCancel: function handleChangeStatusCancel() { + this.change_status_modal_visibility = false; + }, + handleChangeStatusOk: function handleChangeStatusOk() { + var data = { + order_status_id: this.changeStatusId + }; + var url = this.baseUrl + '/order-change-status/' + this.currentRecord.id; + var app = this; + axios__WEBPACK_IMPORTED_MODULE_0___default.a.post(url, data).then(function (response) { + if (response.data.success === true) { + app.$notification.success({ + key: 'order.delete.success', + message: response.data.message + }); + } + + window.location.reload(); + })["catch"](function (errors) { + app.$notification.error({ + key: 'order.delete.error', + message: errors.message + }); }); } } @@ -33,16 +150,16 @@ var successNotificationKey = 'success-notification'; /***/ }), -/***/ "./vendor/avored/framework/resources/components/system/Flash.vue": -/*!***********************************************************************!*\ - !*** ./vendor/avored/framework/resources/components/system/Flash.vue ***! - \***********************************************************************/ +/***/ "./packages/framework/resources/components/order/order/OrderTable.vue": +/*!****************************************************************************!*\ + !*** ./packages/framework/resources/components/order/order/OrderTable.vue ***! + \****************************************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); -/* harmony import */ var _Flash_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./Flash.vue?vue&type=script&lang=js& */ "./vendor/avored/framework/resources/components/system/Flash.vue?vue&type=script&lang=js&"); +/* harmony import */ var _OrderTable_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./OrderTable.vue?vue&type=script&lang=js& */ "./packages/framework/resources/components/order/order/OrderTable.vue?vue&type=script&lang=js&"); /* empty/unused harmony star reexport *//* harmony import */ var _node_modules_vue_loader_lib_runtime_componentNormalizer_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../../../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js */ "./node_modules/vue-loader/lib/runtime/componentNormalizer.js"); var render, staticRenderFns @@ -52,7 +169,7 @@ var render, staticRenderFns /* normalize component */ var component = Object(_node_modules_vue_loader_lib_runtime_componentNormalizer_js__WEBPACK_IMPORTED_MODULE_1__["default"])( - _Flash_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0__["default"], + _OrderTable_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0__["default"], render, staticRenderFns, false, @@ -64,22 +181,22 @@ var component = Object(_node_modules_vue_loader_lib_runtime_componentNormalizer_ /* hot reload */ if (false) { var api; } -component.options.__file = "vendor/avored/framework/resources/components/system/Flash.vue" +component.options.__file = "packages/framework/resources/components/order/order/OrderTable.vue" /* harmony default export */ __webpack_exports__["default"] = (component.exports); /***/ }), -/***/ "./vendor/avored/framework/resources/components/system/Flash.vue?vue&type=script&lang=js&": -/*!************************************************************************************************!*\ - !*** ./vendor/avored/framework/resources/components/system/Flash.vue?vue&type=script&lang=js& ***! - \************************************************************************************************/ +/***/ "./packages/framework/resources/components/order/order/OrderTable.vue?vue&type=script&lang=js&": +/*!*****************************************************************************************************!*\ + !*** ./packages/framework/resources/components/order/order/OrderTable.vue?vue&type=script&lang=js& ***! + \*****************************************************************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); -/* harmony import */ var _node_modules_babel_loader_lib_index_js_ref_4_0_node_modules_vue_loader_lib_index_js_vue_loader_options_Flash_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! -!../../../../../../node_modules/babel-loader/lib??ref--4-0!../../../../../../node_modules/vue-loader/lib??vue-loader-options!./Flash.vue?vue&type=script&lang=js& */ "./node_modules/babel-loader/lib/index.js?!./node_modules/vue-loader/lib/index.js?!./vendor/avored/framework/resources/components/system/Flash.vue?vue&type=script&lang=js&"); -/* empty/unused harmony star reexport */ /* harmony default export */ __webpack_exports__["default"] = (_node_modules_babel_loader_lib_index_js_ref_4_0_node_modules_vue_loader_lib_index_js_vue_loader_options_Flash_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0__["default"]); +/* harmony import */ var _node_modules_babel_loader_lib_index_js_ref_4_0_node_modules_vue_loader_lib_index_js_vue_loader_options_OrderTable_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! -!../../../../../../node_modules/babel-loader/lib??ref--4-0!../../../../../../node_modules/vue-loader/lib??vue-loader-options!./OrderTable.vue?vue&type=script&lang=js& */ "./node_modules/babel-loader/lib/index.js?!./node_modules/vue-loader/lib/index.js?!./packages/framework/resources/components/order/order/OrderTable.vue?vue&type=script&lang=js&"); +/* empty/unused harmony star reexport */ /* harmony default export */ __webpack_exports__["default"] = (_node_modules_babel_loader_lib_index_js_ref_4_0_node_modules_vue_loader_lib_index_js_vue_loader_options_OrderTable_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0__["default"]); /***/ }) diff --git a/public/avored-admin/js/chunk/26.js b/public/avored-admin/js/chunk/26.js index 54d757b3c..b8b5c45a0 100644 --- a/public/avored-admin/js/chunk/26.js +++ b/public/avored-admin/js/chunk/26.js @@ -1,35 +1,118 @@ (window["webpackJsonp"] = window["webpackJsonp"] || []).push([[26],{ -/***/ "./node_modules/babel-loader/lib/index.js?!./node_modules/vue-loader/lib/index.js?!./vendor/avored/framework/resources/components/system/Layout.vue?vue&type=script&lang=js&": -/*!*********************************************************************************************************************************************************************************************!*\ - !*** ./node_modules/babel-loader/lib??ref--4-0!./node_modules/vue-loader/lib??vue-loader-options!./vendor/avored/framework/resources/components/system/Layout.vue?vue&type=script&lang=js& ***! - \*********************************************************************************************************************************************************************************************/ +/***/ "./node_modules/babel-loader/lib/index.js?!./node_modules/vue-loader/lib/index.js?!./packages/framework/resources/components/promotion/promotion-code/PromotionCodeTable.vue?vue&type=script&lang=js&": +/*!**********************************************************************************************************************************************************************************************************************!*\ + !*** ./node_modules/babel-loader/lib??ref--4-0!./node_modules/vue-loader/lib??vue-loader-options!./packages/framework/resources/components/promotion/promotion-code/PromotionCodeTable.vue?vue&type=script&lang=js& ***! + \**********************************************************************************************************************************************************************************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); -// +/* harmony import */ var lodash_isNil__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! lodash/isNil */ "./node_modules/lodash/isNil.js"); +/* harmony import */ var lodash_isNil__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(lodash_isNil__WEBPACK_IMPORTED_MODULE_0__); + +var columns = [{ + title: 'Name', + dataIndex: 'name', + key: 'name', + sorter: true +}, { + title: 'Code', + dataIndex: 'code', + key: 'code', + sorter: true +}, { + title: 'Action', + key: 'action', + scopedSlots: { + customRender: 'action' + }, + sorter: false, + width: "10%" +}]; /* harmony default export */ __webpack_exports__["default"] = ({ + props: ['baseUrl', 'promotionCodes'], data: function data() { return { - collapsed: false + columns: columns }; + }, + methods: { + handleTableChange: function handleTableChange(pagination, filters, sorter) { + this.promotionCodes.sort(function (a, b) { + var columnKey = sorter.columnKey; + var order = sorter.order; + + if (lodash_isNil__WEBPACK_IMPORTED_MODULE_0___default()(a[columnKey])) { + a[columnKey] = ''; + } + + if (lodash_isNil__WEBPACK_IMPORTED_MODULE_0___default()(b[columnKey])) { + b[columnKey] = ''; + } + + if (order === 'ascend') { + if (a[columnKey] < b[columnKey]) return -1; + if (a[columnKey] > b[columnKey]) return 1; + } + + if (order === 'descend') { + if (a[columnKey] > b[columnKey]) return -1; + if (a[columnKey] < b[columnKey]) return 1; + } + + return 0; + }); + }, + getEditUrl: function getEditUrl(record) { + return this.baseUrl + '/promotion-code-edit/' + record.id; + }, + getDeleteUrl: function getDeleteUrl(record) { + return this.baseUrl + '/promotion-code/' + record.id; + }, + clickOnDeleteIcon: function clickOnDeleteIcon(record) { + var url = this.baseUrl + '/promotion-code/' + record.id; + var app = this; + this.$confirm({ + title: 'Do you Want to delete ' + record.name + ' promotion-code?', + okType: 'danger', + onOk: function onOk() { + axios["delete"](url).then(function (response) { + if (response.data.success === true) { + app.$notification.error({ + key: 'promotion-code.delete.success', + message: response.data.message + }); + } + + window.location.reload(); + })["catch"](function (errors) { + app.$notification.error({ + key: 'promotion-code.delete.error', + message: errors.message + }); + }); + }, + onCancel: function onCancel() {// Do nothing + } + }); + } } }); /***/ }), -/***/ "./vendor/avored/framework/resources/components/system/Layout.vue": -/*!************************************************************************!*\ - !*** ./vendor/avored/framework/resources/components/system/Layout.vue ***! - \************************************************************************/ +/***/ "./packages/framework/resources/components/promotion/promotion-code/PromotionCodeTable.vue": +/*!*************************************************************************************************!*\ + !*** ./packages/framework/resources/components/promotion/promotion-code/PromotionCodeTable.vue ***! + \*************************************************************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); -/* harmony import */ var _Layout_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./Layout.vue?vue&type=script&lang=js& */ "./vendor/avored/framework/resources/components/system/Layout.vue?vue&type=script&lang=js&"); +/* harmony import */ var _PromotionCodeTable_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./PromotionCodeTable.vue?vue&type=script&lang=js& */ "./packages/framework/resources/components/promotion/promotion-code/PromotionCodeTable.vue?vue&type=script&lang=js&"); /* empty/unused harmony star reexport *//* harmony import */ var _node_modules_vue_loader_lib_runtime_componentNormalizer_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../../../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js */ "./node_modules/vue-loader/lib/runtime/componentNormalizer.js"); var render, staticRenderFns @@ -39,7 +122,7 @@ var render, staticRenderFns /* normalize component */ var component = Object(_node_modules_vue_loader_lib_runtime_componentNormalizer_js__WEBPACK_IMPORTED_MODULE_1__["default"])( - _Layout_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0__["default"], + _PromotionCodeTable_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0__["default"], render, staticRenderFns, false, @@ -51,22 +134,22 @@ var component = Object(_node_modules_vue_loader_lib_runtime_componentNormalizer_ /* hot reload */ if (false) { var api; } -component.options.__file = "vendor/avored/framework/resources/components/system/Layout.vue" +component.options.__file = "packages/framework/resources/components/promotion/promotion-code/PromotionCodeTable.vue" /* harmony default export */ __webpack_exports__["default"] = (component.exports); /***/ }), -/***/ "./vendor/avored/framework/resources/components/system/Layout.vue?vue&type=script&lang=js&": -/*!*************************************************************************************************!*\ - !*** ./vendor/avored/framework/resources/components/system/Layout.vue?vue&type=script&lang=js& ***! - \*************************************************************************************************/ +/***/ "./packages/framework/resources/components/promotion/promotion-code/PromotionCodeTable.vue?vue&type=script&lang=js&": +/*!**************************************************************************************************************************!*\ + !*** ./packages/framework/resources/components/promotion/promotion-code/PromotionCodeTable.vue?vue&type=script&lang=js& ***! + \**************************************************************************************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); -/* harmony import */ var _node_modules_babel_loader_lib_index_js_ref_4_0_node_modules_vue_loader_lib_index_js_vue_loader_options_Layout_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! -!../../../../../../node_modules/babel-loader/lib??ref--4-0!../../../../../../node_modules/vue-loader/lib??vue-loader-options!./Layout.vue?vue&type=script&lang=js& */ "./node_modules/babel-loader/lib/index.js?!./node_modules/vue-loader/lib/index.js?!./vendor/avored/framework/resources/components/system/Layout.vue?vue&type=script&lang=js&"); -/* empty/unused harmony star reexport */ /* harmony default export */ __webpack_exports__["default"] = (_node_modules_babel_loader_lib_index_js_ref_4_0_node_modules_vue_loader_lib_index_js_vue_loader_options_Layout_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0__["default"]); +/* harmony import */ var _node_modules_babel_loader_lib_index_js_ref_4_0_node_modules_vue_loader_lib_index_js_vue_loader_options_PromotionCodeTable_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! -!../../../../../../node_modules/babel-loader/lib??ref--4-0!../../../../../../node_modules/vue-loader/lib??vue-loader-options!./PromotionCodeTable.vue?vue&type=script&lang=js& */ "./node_modules/babel-loader/lib/index.js?!./node_modules/vue-loader/lib/index.js?!./packages/framework/resources/components/promotion/promotion-code/PromotionCodeTable.vue?vue&type=script&lang=js&"); +/* empty/unused harmony star reexport */ /* harmony default export */ __webpack_exports__["default"] = (_node_modules_babel_loader_lib_index_js_ref_4_0_node_modules_vue_loader_lib_index_js_vue_loader_options_PromotionCodeTable_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0__["default"]); /***/ }) diff --git a/public/avored-admin/js/chunk/27.js b/public/avored-admin/js/chunk/27.js index 3f00417be..a7f4eab2b 100644 --- a/public/avored-admin/js/chunk/27.js +++ b/public/avored-admin/js/chunk/27.js @@ -1,35 +1,31 @@ (window["webpackJsonp"] = window["webpackJsonp"] || []).push([[27],{ -/***/ "./node_modules/babel-loader/lib/index.js?!./node_modules/vue-loader/lib/index.js?!./vendor/avored/framework/resources/components/system/LoginFields.vue?vue&type=script&lang=js&": -/*!**************************************************************************************************************************************************************************************************!*\ - !*** ./node_modules/babel-loader/lib??ref--4-0!./node_modules/vue-loader/lib??vue-loader-options!./vendor/avored/framework/resources/components/system/LoginFields.vue?vue&type=script&lang=js& ***! - \**************************************************************************************************************************************************************************************************/ +/***/ "./node_modules/babel-loader/lib/index.js?!./node_modules/vue-loader/lib/index.js?!./packages/framework/resources/components/system/Flash.vue?vue&type=script&lang=js&": +/*!***************************************************************************************************************************************************************************************!*\ + !*** ./node_modules/babel-loader/lib??ref--4-0!./node_modules/vue-loader/lib??vue-loader-options!./packages/framework/resources/components/system/Flash.vue?vue&type=script&lang=js& ***! + \***************************************************************************************************************************************************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); +/* harmony import */ var lodash_isEmpty__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! lodash/isEmpty */ "./node_modules/lodash/isEmpty.js"); +/* harmony import */ var lodash_isEmpty__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(lodash_isEmpty__WEBPACK_IMPORTED_MODULE_0__); +// + +var successNotificationKey = 'success-notification'; /* harmony default export */ __webpack_exports__["default"] = ({ - props: { - name: 'loginpost', - type: String - }, + props: ['successNotification'], data: function data() { return { - loginForm: this.$form.createForm(this), - loadingSubmitBtn: false + collapsed: false }; }, - methods: { - handleSubmit: function handleSubmit(e) { - var _this = this; - - this.loadingSubmitBtn = true; - this.loginForm.validateFields(function (err, values) { - if (err) { - _this.loadingSubmitBtn = false; - e.preventDefault(); - } + mounted: function mounted() { + if (!lodash_isEmpty__WEBPACK_IMPORTED_MODULE_0___default()(this.successNotification)) { + this.$notification['success']({ + key: successNotificationKey, + message: this.successNotification }); } } @@ -37,17 +33,17 @@ __webpack_require__.r(__webpack_exports__); /***/ }), -/***/ "./vendor/avored/framework/resources/components/system/LoginFields.vue": -/*!*****************************************************************************!*\ - !*** ./vendor/avored/framework/resources/components/system/LoginFields.vue ***! - \*****************************************************************************/ +/***/ "./packages/framework/resources/components/system/Flash.vue": +/*!******************************************************************!*\ + !*** ./packages/framework/resources/components/system/Flash.vue ***! + \******************************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); -/* harmony import */ var _LoginFields_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./LoginFields.vue?vue&type=script&lang=js& */ "./vendor/avored/framework/resources/components/system/LoginFields.vue?vue&type=script&lang=js&"); -/* empty/unused harmony star reexport *//* harmony import */ var _node_modules_vue_loader_lib_runtime_componentNormalizer_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../../../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js */ "./node_modules/vue-loader/lib/runtime/componentNormalizer.js"); +/* harmony import */ var _Flash_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./Flash.vue?vue&type=script&lang=js& */ "./packages/framework/resources/components/system/Flash.vue?vue&type=script&lang=js&"); +/* empty/unused harmony star reexport *//* harmony import */ var _node_modules_vue_loader_lib_runtime_componentNormalizer_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js */ "./node_modules/vue-loader/lib/runtime/componentNormalizer.js"); var render, staticRenderFns @@ -56,7 +52,7 @@ var render, staticRenderFns /* normalize component */ var component = Object(_node_modules_vue_loader_lib_runtime_componentNormalizer_js__WEBPACK_IMPORTED_MODULE_1__["default"])( - _LoginFields_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0__["default"], + _Flash_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0__["default"], render, staticRenderFns, false, @@ -68,22 +64,22 @@ var component = Object(_node_modules_vue_loader_lib_runtime_componentNormalizer_ /* hot reload */ if (false) { var api; } -component.options.__file = "vendor/avored/framework/resources/components/system/LoginFields.vue" +component.options.__file = "packages/framework/resources/components/system/Flash.vue" /* harmony default export */ __webpack_exports__["default"] = (component.exports); /***/ }), -/***/ "./vendor/avored/framework/resources/components/system/LoginFields.vue?vue&type=script&lang=js&": -/*!******************************************************************************************************!*\ - !*** ./vendor/avored/framework/resources/components/system/LoginFields.vue?vue&type=script&lang=js& ***! - \******************************************************************************************************/ +/***/ "./packages/framework/resources/components/system/Flash.vue?vue&type=script&lang=js&": +/*!*******************************************************************************************!*\ + !*** ./packages/framework/resources/components/system/Flash.vue?vue&type=script&lang=js& ***! + \*******************************************************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); -/* harmony import */ var _node_modules_babel_loader_lib_index_js_ref_4_0_node_modules_vue_loader_lib_index_js_vue_loader_options_LoginFields_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! -!../../../../../../node_modules/babel-loader/lib??ref--4-0!../../../../../../node_modules/vue-loader/lib??vue-loader-options!./LoginFields.vue?vue&type=script&lang=js& */ "./node_modules/babel-loader/lib/index.js?!./node_modules/vue-loader/lib/index.js?!./vendor/avored/framework/resources/components/system/LoginFields.vue?vue&type=script&lang=js&"); -/* empty/unused harmony star reexport */ /* harmony default export */ __webpack_exports__["default"] = (_node_modules_babel_loader_lib_index_js_ref_4_0_node_modules_vue_loader_lib_index_js_vue_loader_options_LoginFields_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0__["default"]); +/* harmony import */ var _node_modules_babel_loader_lib_index_js_ref_4_0_node_modules_vue_loader_lib_index_js_vue_loader_options_Flash_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! -!../../../../../node_modules/babel-loader/lib??ref--4-0!../../../../../node_modules/vue-loader/lib??vue-loader-options!./Flash.vue?vue&type=script&lang=js& */ "./node_modules/babel-loader/lib/index.js?!./node_modules/vue-loader/lib/index.js?!./packages/framework/resources/components/system/Flash.vue?vue&type=script&lang=js&"); +/* empty/unused harmony star reexport */ /* harmony default export */ __webpack_exports__["default"] = (_node_modules_babel_loader_lib_index_js_ref_4_0_node_modules_vue_loader_lib_index_js_vue_loader_options_Flash_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0__["default"]); /***/ }) diff --git a/public/avored-admin/js/chunk/28.js b/public/avored-admin/js/chunk/28.js index 32f46ac88..0b8d56d42 100644 --- a/public/avored-admin/js/chunk/28.js +++ b/public/avored-admin/js/chunk/28.js @@ -1,52 +1,53 @@ (window["webpackJsonp"] = window["webpackJsonp"] || []).push([[28],{ -/***/ "./node_modules/babel-loader/lib/index.js?!./node_modules/vue-loader/lib/index.js?!./vendor/avored/framework/resources/components/system/PasswordNewPage.vue?vue&type=script&lang=js&": -/*!******************************************************************************************************************************************************************************************************!*\ - !*** ./node_modules/babel-loader/lib??ref--4-0!./node_modules/vue-loader/lib??vue-loader-options!./vendor/avored/framework/resources/components/system/PasswordNewPage.vue?vue&type=script&lang=js& ***! - \******************************************************************************************************************************************************************************************************/ +/***/ "./node_modules/babel-loader/lib/index.js?!./node_modules/vue-loader/lib/index.js?!./packages/framework/resources/components/system/Layout.vue?vue&type=script&lang=js&": +/*!****************************************************************************************************************************************************************************************!*\ + !*** ./node_modules/babel-loader/lib??ref--4-0!./node_modules/vue-loader/lib??vue-loader-options!./packages/framework/resources/components/system/Layout.vue?vue&type=script&lang=js& ***! + \****************************************************************************************************************************************************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); -/* harmony import */ var lodash_isNil__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! lodash/isNil */ "./node_modules/lodash/isNil.js"); -/* harmony import */ var lodash_isNil__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(lodash_isNil__WEBPACK_IMPORTED_MODULE_0__); +/* harmony import */ var graphql_tag__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! graphql-tag */ "./node_modules/graphql-tag/src/index.js"); +/* harmony import */ var graphql_tag__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(graphql_tag__WEBPACK_IMPORTED_MODULE_0__); +// /* harmony default export */ __webpack_exports__["default"] = ({ data: function data() { return { - form: this.$form.createForm(this), - loadingSubmitBtn: false + collapsed: false }; }, - methods: { - handleSubmit: function handleSubmit(e) { - var _this = this; - - this.loadingSubmitBtn = true; - this.form.validateFields(function (err, values) { - if (!lodash_isNil__WEBPACK_IMPORTED_MODULE_0___default()(err)) { - _this.loadingSubmitBtn = false; - e.preventDefault(); - } - }); - } + mounted: function mounted() {// let data = this.$apollo.query({ + // query: gql `query AllCategories { + // allCategory { + // id + // name + // slug + // meta_title + // meta_description + // } + // }` + // }).then(res => { + // console.log(res.data.allCategory); + // }); } }); /***/ }), -/***/ "./vendor/avored/framework/resources/components/system/PasswordNewPage.vue": -/*!*********************************************************************************!*\ - !*** ./vendor/avored/framework/resources/components/system/PasswordNewPage.vue ***! - \*********************************************************************************/ +/***/ "./packages/framework/resources/components/system/Layout.vue": +/*!*******************************************************************!*\ + !*** ./packages/framework/resources/components/system/Layout.vue ***! + \*******************************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); -/* harmony import */ var _PasswordNewPage_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./PasswordNewPage.vue?vue&type=script&lang=js& */ "./vendor/avored/framework/resources/components/system/PasswordNewPage.vue?vue&type=script&lang=js&"); -/* empty/unused harmony star reexport *//* harmony import */ var _node_modules_vue_loader_lib_runtime_componentNormalizer_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../../../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js */ "./node_modules/vue-loader/lib/runtime/componentNormalizer.js"); +/* harmony import */ var _Layout_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./Layout.vue?vue&type=script&lang=js& */ "./packages/framework/resources/components/system/Layout.vue?vue&type=script&lang=js&"); +/* empty/unused harmony star reexport *//* harmony import */ var _node_modules_vue_loader_lib_runtime_componentNormalizer_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js */ "./node_modules/vue-loader/lib/runtime/componentNormalizer.js"); var render, staticRenderFns @@ -55,7 +56,7 @@ var render, staticRenderFns /* normalize component */ var component = Object(_node_modules_vue_loader_lib_runtime_componentNormalizer_js__WEBPACK_IMPORTED_MODULE_1__["default"])( - _PasswordNewPage_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0__["default"], + _Layout_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0__["default"], render, staticRenderFns, false, @@ -67,22 +68,22 @@ var component = Object(_node_modules_vue_loader_lib_runtime_componentNormalizer_ /* hot reload */ if (false) { var api; } -component.options.__file = "vendor/avored/framework/resources/components/system/PasswordNewPage.vue" +component.options.__file = "packages/framework/resources/components/system/Layout.vue" /* harmony default export */ __webpack_exports__["default"] = (component.exports); /***/ }), -/***/ "./vendor/avored/framework/resources/components/system/PasswordNewPage.vue?vue&type=script&lang=js&": -/*!**********************************************************************************************************!*\ - !*** ./vendor/avored/framework/resources/components/system/PasswordNewPage.vue?vue&type=script&lang=js& ***! - \**********************************************************************************************************/ +/***/ "./packages/framework/resources/components/system/Layout.vue?vue&type=script&lang=js&": +/*!********************************************************************************************!*\ + !*** ./packages/framework/resources/components/system/Layout.vue?vue&type=script&lang=js& ***! + \********************************************************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); -/* harmony import */ var _node_modules_babel_loader_lib_index_js_ref_4_0_node_modules_vue_loader_lib_index_js_vue_loader_options_PasswordNewPage_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! -!../../../../../../node_modules/babel-loader/lib??ref--4-0!../../../../../../node_modules/vue-loader/lib??vue-loader-options!./PasswordNewPage.vue?vue&type=script&lang=js& */ "./node_modules/babel-loader/lib/index.js?!./node_modules/vue-loader/lib/index.js?!./vendor/avored/framework/resources/components/system/PasswordNewPage.vue?vue&type=script&lang=js&"); -/* empty/unused harmony star reexport */ /* harmony default export */ __webpack_exports__["default"] = (_node_modules_babel_loader_lib_index_js_ref_4_0_node_modules_vue_loader_lib_index_js_vue_loader_options_PasswordNewPage_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0__["default"]); +/* harmony import */ var _node_modules_babel_loader_lib_index_js_ref_4_0_node_modules_vue_loader_lib_index_js_vue_loader_options_Layout_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! -!../../../../../node_modules/babel-loader/lib??ref--4-0!../../../../../node_modules/vue-loader/lib??vue-loader-options!./Layout.vue?vue&type=script&lang=js& */ "./node_modules/babel-loader/lib/index.js?!./node_modules/vue-loader/lib/index.js?!./packages/framework/resources/components/system/Layout.vue?vue&type=script&lang=js&"); +/* empty/unused harmony star reexport */ /* harmony default export */ __webpack_exports__["default"] = (_node_modules_babel_loader_lib_index_js_ref_4_0_node_modules_vue_loader_lib_index_js_vue_loader_options_Layout_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0__["default"]); /***/ }) diff --git a/public/avored-admin/js/chunk/29.js b/public/avored-admin/js/chunk/29.js index dd6865d71..775e399b5 100644 --- a/public/avored-admin/js/chunk/29.js +++ b/public/avored-admin/js/chunk/29.js @@ -1,9 +1,9 @@ (window["webpackJsonp"] = window["webpackJsonp"] || []).push([[29],{ -/***/ "./node_modules/babel-loader/lib/index.js?!./node_modules/vue-loader/lib/index.js?!./vendor/avored/framework/resources/components/system/PasswordResetPage.vue?vue&type=script&lang=js&": -/*!********************************************************************************************************************************************************************************************************!*\ - !*** ./node_modules/babel-loader/lib??ref--4-0!./node_modules/vue-loader/lib??vue-loader-options!./vendor/avored/framework/resources/components/system/PasswordResetPage.vue?vue&type=script&lang=js& ***! - \********************************************************************************************************************************************************************************************************/ +/***/ "./node_modules/babel-loader/lib/index.js?!./node_modules/vue-loader/lib/index.js?!./packages/framework/resources/components/system/PasswordNewPage.vue?vue&type=script&lang=js&": +/*!*************************************************************************************************************************************************************************************************!*\ + !*** ./node_modules/babel-loader/lib??ref--4-0!./node_modules/vue-loader/lib??vue-loader-options!./packages/framework/resources/components/system/PasswordNewPage.vue?vue&type=script&lang=js& ***! + \*************************************************************************************************************************************************************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { @@ -36,17 +36,17 @@ __webpack_require__.r(__webpack_exports__); /***/ }), -/***/ "./vendor/avored/framework/resources/components/system/PasswordResetPage.vue": -/*!***********************************************************************************!*\ - !*** ./vendor/avored/framework/resources/components/system/PasswordResetPage.vue ***! - \***********************************************************************************/ +/***/ "./packages/framework/resources/components/system/PasswordNewPage.vue": +/*!****************************************************************************!*\ + !*** ./packages/framework/resources/components/system/PasswordNewPage.vue ***! + \****************************************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); -/* harmony import */ var _PasswordResetPage_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./PasswordResetPage.vue?vue&type=script&lang=js& */ "./vendor/avored/framework/resources/components/system/PasswordResetPage.vue?vue&type=script&lang=js&"); -/* empty/unused harmony star reexport *//* harmony import */ var _node_modules_vue_loader_lib_runtime_componentNormalizer_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../../../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js */ "./node_modules/vue-loader/lib/runtime/componentNormalizer.js"); +/* harmony import */ var _PasswordNewPage_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./PasswordNewPage.vue?vue&type=script&lang=js& */ "./packages/framework/resources/components/system/PasswordNewPage.vue?vue&type=script&lang=js&"); +/* empty/unused harmony star reexport *//* harmony import */ var _node_modules_vue_loader_lib_runtime_componentNormalizer_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js */ "./node_modules/vue-loader/lib/runtime/componentNormalizer.js"); var render, staticRenderFns @@ -55,7 +55,7 @@ var render, staticRenderFns /* normalize component */ var component = Object(_node_modules_vue_loader_lib_runtime_componentNormalizer_js__WEBPACK_IMPORTED_MODULE_1__["default"])( - _PasswordResetPage_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0__["default"], + _PasswordNewPage_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0__["default"], render, staticRenderFns, false, @@ -67,22 +67,22 @@ var component = Object(_node_modules_vue_loader_lib_runtime_componentNormalizer_ /* hot reload */ if (false) { var api; } -component.options.__file = "vendor/avored/framework/resources/components/system/PasswordResetPage.vue" +component.options.__file = "packages/framework/resources/components/system/PasswordNewPage.vue" /* harmony default export */ __webpack_exports__["default"] = (component.exports); /***/ }), -/***/ "./vendor/avored/framework/resources/components/system/PasswordResetPage.vue?vue&type=script&lang=js&": -/*!************************************************************************************************************!*\ - !*** ./vendor/avored/framework/resources/components/system/PasswordResetPage.vue?vue&type=script&lang=js& ***! - \************************************************************************************************************/ +/***/ "./packages/framework/resources/components/system/PasswordNewPage.vue?vue&type=script&lang=js&": +/*!*****************************************************************************************************!*\ + !*** ./packages/framework/resources/components/system/PasswordNewPage.vue?vue&type=script&lang=js& ***! + \*****************************************************************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); -/* harmony import */ var _node_modules_babel_loader_lib_index_js_ref_4_0_node_modules_vue_loader_lib_index_js_vue_loader_options_PasswordResetPage_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! -!../../../../../../node_modules/babel-loader/lib??ref--4-0!../../../../../../node_modules/vue-loader/lib??vue-loader-options!./PasswordResetPage.vue?vue&type=script&lang=js& */ "./node_modules/babel-loader/lib/index.js?!./node_modules/vue-loader/lib/index.js?!./vendor/avored/framework/resources/components/system/PasswordResetPage.vue?vue&type=script&lang=js&"); -/* empty/unused harmony star reexport */ /* harmony default export */ __webpack_exports__["default"] = (_node_modules_babel_loader_lib_index_js_ref_4_0_node_modules_vue_loader_lib_index_js_vue_loader_options_PasswordResetPage_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0__["default"]); +/* harmony import */ var _node_modules_babel_loader_lib_index_js_ref_4_0_node_modules_vue_loader_lib_index_js_vue_loader_options_PasswordNewPage_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! -!../../../../../node_modules/babel-loader/lib??ref--4-0!../../../../../node_modules/vue-loader/lib??vue-loader-options!./PasswordNewPage.vue?vue&type=script&lang=js& */ "./node_modules/babel-loader/lib/index.js?!./node_modules/vue-loader/lib/index.js?!./packages/framework/resources/components/system/PasswordNewPage.vue?vue&type=script&lang=js&"); +/* empty/unused harmony star reexport */ /* harmony default export */ __webpack_exports__["default"] = (_node_modules_babel_loader_lib_index_js_ref_4_0_node_modules_vue_loader_lib_index_js_vue_loader_options_PasswordNewPage_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0__["default"]); /***/ }) diff --git a/public/avored-admin/js/chunk/3.js b/public/avored-admin/js/chunk/3.js index b4050ce9a..a11f57cd7 100644 --- a/public/avored-admin/js/chunk/3.js +++ b/public/avored-admin/js/chunk/3.js @@ -1,25 +1,5 @@ (window["webpackJsonp"] = window["webpackJsonp"] || []).push([[3],{ -/***/ "./node_modules/ant-design-vue/lib/_util/env.js": -/*!******************************************************!*\ - !*** ./node_modules/ant-design-vue/lib/_util/env.js ***! - \******************************************************/ -/*! no static exports found */ -/***/ (function(module, exports, __webpack_require__) { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", { - value: true -}); -var inBrowser = exports.inBrowser = typeof window !== 'undefined'; -var UA = exports.UA = inBrowser && window.navigator.userAgent.toLowerCase(); -var isIE = exports.isIE = UA && /msie|trident/.test(UA); -var isIE9 = exports.isIE9 = UA && UA.indexOf('msie 9.0') > 0; - -/***/ }), - /***/ "./node_modules/ant-design-vue/lib/_util/interopDefault.js": /*!*****************************************************************!*\ !*** ./node_modules/ant-design-vue/lib/_util/interopDefault.js ***! @@ -95,6 +75,8 @@ var _tag = __webpack_require__(/*! ../tag */ "./node_modules/ant-design-vue/lib/ var _tag2 = _interopRequireDefault(_tag); +var _configProvider = __webpack_require__(/*! ../config-provider */ "./node_modules/ant-design-vue/lib/config-provider/index.js"); + var _interopDefault = __webpack_require__(/*! ../_util/interopDefault */ "./node_modules/ant-design-vue/lib/_util/interopDefault.js"); var _interopDefault2 = _interopRequireDefault(_interopDefault); @@ -179,11 +161,14 @@ exports['default'] = { event: 'change' }, props: (0, _propsUtil.initDefaultProps)((0, _interface.RangePickerProps)(), { - prefixCls: 'ant-calendar', - tagPrefixCls: 'ant-tag', allowClear: true, showToday: false }), + inject: { + configProvider: { 'default': function _default() { + return _configProvider.ConfigConsumerProps; + } } + }, data: function data() { var value = this.value || this.defaultValue || []; @@ -215,8 +200,16 @@ exports['default'] = { this.setState(state); }, open: function open(val) { - this.setState({ - sOpen: val + var state = { sOpen: val }; + this.setState(state); + }, + sOpen: function sOpen(val, oldVal) { + var _this = this; + + this.$nextTick(function () { + if (!(0, _propsUtil.hasProp)(_this, 'open') && oldVal && !val) { + _this.focus(); + } }); } }, @@ -256,10 +249,6 @@ exports['default'] = { this.clearHoverValue(); } this.$emit('openChange', open); - - if (!open) { - this.focus(); - } }, handleShowDateChange: function handleShowDateChange(showDate) { this.setState({ sShowDate: showDate }); @@ -315,14 +304,14 @@ exports['default'] = { this.$refs.picker.blur(); }, renderFooter: function renderFooter() { - var _this = this; + var _this2 = this; var h = this.$createElement; - var prefixCls = this.prefixCls, - ranges = this.ranges, + var ranges = this.ranges, $scopedSlots = this.$scopedSlots, - $slots = this.$slots, - tagPrefixCls = this.tagPrefixCls; + $slots = this.$slots; + var prefixCls = this._prefixCls, + tagPrefixCls = this._tagPrefixCls; var renderExtraFooter = this.renderExtraFooter || $scopedSlots.renderExtraFooter || $slots.renderExtraFooter; if (!ranges && !renderExtraFooter) { @@ -344,12 +333,12 @@ exports['default'] = { }, on: { 'click': function click() { - return _this.handleRangeClick(value); + return _this2.handleRangeClick(value); }, 'mouseenter': function mouseenter() { - return _this.setState({ sHoverValue: value }); + return _this2.setState({ sHoverValue: value }); }, - 'mouseleave': _this.handleRangeMouseLeave + 'mouseleave': _this2.handleRangeMouseLeave } }, [range] @@ -366,7 +355,7 @@ exports['default'] = { render: function render() { var _classNames, - _this2 = this; + _this3 = this; var h = arguments[0]; @@ -389,7 +378,8 @@ exports['default'] = { blur = _$listeners$blur === undefined ? noop : _$listeners$blur, _$listeners$panelChan = $listeners.panelChange, panelChange = _$listeners$panelChan === undefined ? noop : _$listeners$panelChan; - var prefixCls = props.prefixCls, + var customizePrefixCls = props.prefixCls, + customizeTagPrefixCls = props.tagPrefixCls, popupStyle = props.popupStyle, disabledDate = props.disabledDate, disabledTime = props.disabledTime, @@ -400,6 +390,12 @@ exports['default'] = { localeCode = props.localeCode, format = props.format; + var getPrefixCls = this.configProvider.getPrefixCls; + var prefixCls = getPrefixCls('calendar', customizePrefixCls); + var tagPrefixCls = getPrefixCls('tag', customizeTagPrefixCls); + this._prefixCls = prefixCls; + this._tagPrefixCls = tagPrefixCls; + var dateRender = props.dateRender || $scopedSlots.dateRender; fixLocale(value, localeCode); fixLocale(showDate, localeCode); @@ -420,7 +416,7 @@ exports['default'] = { }; if (props.timePicker) { pickerChangeHandler.on.change = function (changedValue) { - return _this2.handleChange(changedValue); + return _this3.handleChange(changedValue); }; } else { calendarProps = { on: {}, props: {} }; @@ -604,6 +600,8 @@ var _icon = __webpack_require__(/*! ../icon */ "./node_modules/ant-design-vue/li var _icon2 = _interopRequireDefault(_icon); +var _configProvider = __webpack_require__(/*! ../config-provider */ "./node_modules/ant-design-vue/lib/config-provider/index.js"); + var _propsUtil = __webpack_require__(/*! ../_util/props-util */ "./node_modules/ant-design-vue/lib/_util/props-util.js"); var _BaseMixin = __webpack_require__(/*! ../_util/BaseMixin */ "./node_modules/ant-design-vue/lib/_util/BaseMixin.js"); @@ -644,6 +642,11 @@ exports['default'] = { format: 'gggg-wo', allowClear: true }), + inject: { + configProvider: { 'default': function _default() { + return _configProvider.ConfigConsumerProps; + } } + }, data: function data() { var value = this.value || this.defaultValue; if (value && !(0, _interopDefault2['default'])(moment).isMoment(value)) { @@ -657,20 +660,48 @@ exports['default'] = { watch: { value: function value(val) { - this.setState({ _value: val }); + var state = { _value: val }; + this.setState(state); + this.prevState = (0, _extends3['default'])({}, this.$data, state); }, open: function open(val) { - this.setState({ _open: val }); + var state = { _open: val }; + this.setState(state); + this.prevState = (0, _extends3['default'])({}, this.$data, state); + }, + _open: function _open(val, oldVal) { + var _this = this; + + this.$nextTick(function () { + if (!(0, _propsUtil.hasProp)(_this, 'open') && oldVal && !val) { + _this.focus(); + } + }); } }, + mounted: function mounted() { + this.prevState = (0, _extends3['default'])({}, this.$data); + }, + updated: function updated() { + var _this2 = this; + + this.$nextTick(function () { + if (!(0, _propsUtil.hasProp)(_this2, 'open') && _this2.prevState._open && !_this2._open) { + _this2.focus(); + } + }); + }, methods: { weekDateRender: function weekDateRender(current) { var h = this.$createElement; var selectedValue = this.$data._value; - var prefixCls = this.prefixCls; + var prefixCls = this._prefixCls, + $scopedSlots = this.$scopedSlots; + var dateRender = this.dateRender || $scopedSlots.dateRender; + var dateNode = dateRender ? dateRender(current) : current.date(); if (selectedValue && current.year() === selectedValue.year() && current.week() === selectedValue.week()) { return h( 'div', @@ -678,14 +709,14 @@ exports['default'] = { [h( 'div', { 'class': prefixCls + '-date' }, - [current.date()] + [dateNode] )] ); } return h( 'div', { 'class': prefixCls + '-date' }, - [current.date()] + [dateNode] ); }, handleChange: function handleChange(value) { @@ -699,16 +730,24 @@ exports['default'] = { this.setState({ _open: open }); } this.$emit('openChange', open); - - if (!open) { - this.focus(); - } }, clearSelection: function clearSelection(e) { e.preventDefault(); e.stopPropagation(); this.handleChange(null); }, + renderFooter: function renderFooter() { + var h = this.$createElement; + var prefixCls = this._prefixCls, + $scopedSlots = this.$scopedSlots; + + var renderExtraFooter = this.renderExtraFooter || $scopedSlots.renderExtraFooter; + return renderExtraFooter ? h( + 'div', + { 'class': prefixCls + '-footer-extra' }, + [renderExtraFooter.apply(undefined, arguments)] + ) : null; + }, focus: function focus() { this.$refs.input.focus(); }, @@ -723,7 +762,7 @@ exports['default'] = { var props = (0, _propsUtil.getOptionProps)(this); var suffixIcon = (0, _propsUtil.getComponentFromProp)(this, 'suffixIcon'); suffixIcon = Array.isArray(suffixIcon) ? suffixIcon[0] : suffixIcon; - var prefixCls = this.prefixCls, + var customizePrefixCls = this.prefixCls, disabled = this.disabled, pickerClass = this.pickerClass, popupStyle = this.popupStyle, @@ -736,6 +775,12 @@ exports['default'] = { $data = this.$data, $listeners = this.$listeners, $scopedSlots = this.$scopedSlots; + + + var getPrefixCls = this.configProvider.getPrefixCls; + var prefixCls = getPrefixCls('calendar', customizePrefixCls); + this._prefixCls = prefixCls; + var pickerValue = $data._value, open = $data._open; var _$listeners$focus = $listeners.focus, @@ -759,7 +804,8 @@ exports['default'] = { locale: locale.lang, showDateInput: false, showToday: false, - disabledDate: disabledDate + disabledDate: disabledDate, + renderFooter: this.renderFooter } }); var clearIcon = !disabled && allowClear && $data._value ? h(_icon2['default'], { @@ -883,6 +929,8 @@ var _icon = __webpack_require__(/*! ../icon */ "./node_modules/ant-design-vue/li var _icon2 = _interopRequireDefault(_icon); +var _configProvider = __webpack_require__(/*! ../config-provider */ "./node_modules/ant-design-vue/lib/config-provider/index.js"); + var _interopDefault = __webpack_require__(/*! ../_util/interopDefault */ "./node_modules/ant-design-vue/lib/_util/interopDefault.js"); var _interopDefault2 = _interopRequireDefault(_interopDefault); @@ -906,15 +954,7 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'd function noop() {} function createPicker(TheCalendar, props) { return { - // static defaultProps = { - // prefixCls: 'ant-calendar', - // allowClear: true, - // showToday: true, - // }; - - // private input: any; props: (0, _propsUtil.initDefaultProps)(props, { - prefixCls: 'ant-calendar', allowClear: true, showToday: true }), @@ -923,6 +963,11 @@ function createPicker(TheCalendar, props) { prop: 'value', event: 'change' }, + inject: { + configProvider: { 'default': function _default() { + return _configProvider.ConfigConsumerProps; + } } + }, data: function data() { var value = this.value || this.defaultValue; if (value && !(0, _interopDefault2['default'])(moment).isMoment(value)) { @@ -952,14 +997,23 @@ function createPicker(TheCalendar, props) { state.showDate = val; } this.setState(state); + }, + _open: function _open(val, oldVal) { + var _this = this; + + this.$nextTick(function () { + if (!(0, _propsUtil.hasProp)(_this, 'open') && oldVal && !val) { + _this.focus(); + } + }); } }, methods: { renderFooter: function renderFooter() { var h = this.$createElement; - var prefixCls = this.prefixCls, - $scopedSlots = this.$scopedSlots, - $slots = this.$slots; + var $scopedSlots = this.$scopedSlots, + $slots = this.$slots, + prefixCls = this._prefixCls; var renderExtraFooter = this.renderExtraFooter || $scopedSlots.renderExtraFooter || $slots.renderExtraFooter; return renderExtraFooter ? h( @@ -991,9 +1045,6 @@ function createPicker(TheCalendar, props) { this.setState({ _open: open }); } this.$emit('openChange', open); - if (!open) { - this.focus(); - } }, focus: function focus() { this.$refs.input.focus(); @@ -1032,10 +1083,15 @@ function createPicker(TheCalendar, props) { ok = _$listeners$ok === undefined ? noop : _$listeners$ok; var props = (0, _propsUtil.getOptionProps)(this); - var prefixCls = props.prefixCls, + + var customizePrefixCls = props.prefixCls, locale = props.locale, localeCode = props.localeCode; + var getPrefixCls = this.configProvider.getPrefixCls; + var prefixCls = getPrefixCls('calendar', customizePrefixCls); + this._prefixCls = prefixCls; + var dateRender = props.dateRender || $scopedSlots.dateRender; var monthCellContentRender = props.monthCellContentRender || $scopedSlots.monthCellContentRender; var placeholder = 'placeholder' in props ? props.placeholder : locale.lang.placeholder; @@ -1208,20 +1264,25 @@ var _WeekPicker2 = _interopRequireDefault(_WeekPicker); var _interface = __webpack_require__(/*! ./interface */ "./node_modules/ant-design-vue/lib/date-picker/interface.js"); +var _base = __webpack_require__(/*! ../base */ "./node_modules/ant-design-vue/lib/base/index.js"); + +var _base2 = _interopRequireDefault(_base); + function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } -var DatePicker = (0, _wrapPicker2['default'])((0, _extends3['default'])({}, (0, _createPicker2['default'])(_vcCalendar2['default'], (0, _interface.DatePickerProps)()), { name: 'ADatePicker' }), (0, _interface.DatePickerProps)()); +var DatePicker = (0, _wrapPicker2['default'])((0, _extends3['default'])({}, (0, _createPicker2['default'])(_vcCalendar2['default'], (0, _interface.DatePickerProps)()), { name: 'ADatePicker' }), (0, _interface.DatePickerProps)(), 'date'); -var MonthPicker = (0, _wrapPicker2['default'])((0, _extends3['default'])({}, (0, _createPicker2['default'])(_MonthCalendar2['default'], (0, _interface.MonthPickerProps)()), { name: 'AMonthPicker' }), (0, _interface.MonthPickerProps)(), 'YYYY-MM'); +var MonthPicker = (0, _wrapPicker2['default'])((0, _extends3['default'])({}, (0, _createPicker2['default'])(_MonthCalendar2['default'], (0, _interface.MonthPickerProps)()), { name: 'AMonthPicker' }), (0, _interface.MonthPickerProps)(), 'month'); (0, _extends3['default'])(DatePicker, { - RangePicker: (0, _wrapPicker2['default'])(_RangePicker2['default'], (0, _interface.RangePickerProps)()), + RangePicker: (0, _wrapPicker2['default'])(_RangePicker2['default'], (0, _interface.RangePickerProps)(), 'date'), MonthPicker: MonthPicker, - WeekPicker: (0, _wrapPicker2['default'])(_WeekPicker2['default'], (0, _interface.WeekPickerProps)(), 'gggg-wo') + WeekPicker: (0, _wrapPicker2['default'])(_WeekPicker2['default'], (0, _interface.WeekPickerProps)(), 'week') }); /* istanbul ignore next */ DatePicker.install = function (Vue) { + Vue.use(_base2['default']); Vue.component(DatePicker.name, DatePicker); Vue.component(DatePicker.RangePicker.name, DatePicker.RangePicker); Vue.component(DatePicker.MonthPicker.name, DatePicker.MonthPicker); @@ -1316,7 +1377,8 @@ var DatePickerProps = exports.DatePickerProps = function DatePickerProps() { disabledTime: _vueTypes2['default'].func, // onOpenChange?: (status: bool) => void; // onOk?: (selectedTime: moment.Moment) => void; - placeholder: _vueTypes2['default'].string + placeholder: _vueTypes2['default'].string, + mode: _vueTypes2['default'].oneOf(['time', 'date', 'month', 'year']) }); }; @@ -1414,8 +1476,24 @@ var _en_US2 = _interopRequireDefault(_en_US); var _propsUtil = __webpack_require__(/*! ../_util/props-util */ "./node_modules/ant-design-vue/lib/_util/props-util.js"); +var _configProvider = __webpack_require__(/*! ../config-provider */ "./node_modules/ant-design-vue/lib/config-provider/index.js"); + function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } +var DEFAULT_FORMAT = { + date: 'YYYY-MM-DD', + dateTime: 'YYYY-MM-DD HH:mm:ss', + week: 'gggg-wo', + month: 'YYYY-MM' +}; + +var LOCALE_FORMAT_MAPPING = { + date: 'dateFormat', + dateTime: 'dateTimeFormat', + week: 'weekFormat', + month: 'monthFormat' +}; + function getColumns(_ref) { var showHour = _ref.showHour, showMinute = _ref.showMinute, @@ -1438,21 +1516,23 @@ function getColumns(_ref) { return column; } -function wrapPicker(Picker, props, defaultFormat) { +function wrapPicker(Picker, props, pickerType) { return { name: Picker.name, props: (0, _propsUtil.initDefaultProps)(props, { - format: defaultFormat || 'YYYY-MM-DD', transitionName: 'slide-up', popupStyle: {}, - locale: {}, - prefixCls: 'ant-calendar', - inputPrefixCls: 'ant-input' + locale: {} }), model: { prop: 'value', event: 'change' }, + inject: { + configProvider: { 'default': function _default() { + return _configProvider.ConfigConsumerProps; + } } + }, provide: function provide() { return { savePopupRef: this.savePopupRef @@ -1508,11 +1588,19 @@ function wrapPicker(Picker, props, defaultFormat) { var h = this.$createElement; var props = (0, _propsUtil.getOptionProps)(this); - var prefixCls = props.prefixCls, - inputPrefixCls = props.inputPrefixCls, + var customizePrefixCls = props.prefixCls, + customizeInputPrefixCls = props.inputPrefixCls, size = props.size, showTime = props.showTime, - disabled = props.disabled; + disabled = props.disabled, + format = props.format; + + var mergedPickerType = showTime ? pickerType + 'Time' : pickerType; + var mergedFormat = format || locale[LOCALE_FORMAT_MAPPING[mergedPickerType]] || DEFAULT_FORMAT[mergedPickerType]; + + var getPrefixCls = this.configProvider.getPrefixCls; + var prefixCls = getPrefixCls('calendar', customizePrefixCls); + var inputPrefixCls = getPrefixCls('input', customizeInputPrefixCls); var pickerClass = (0, _classnames2['default'])(prefixCls + '-picker', (0, _defineProperty3['default'])({}, prefixCls + '-picker-' + size, !!size)); var pickerInputClass = (0, _classnames2['default'])(prefixCls + '-picker-input', inputPrefixCls, (_classNames2 = {}, (0, _defineProperty3['default'])(_classNames2, inputPrefixCls + '-lg', size === 'large'), (0, _defineProperty3['default'])(_classNames2, inputPrefixCls + '-sm', size === 'small'), (0, _defineProperty3['default'])(_classNames2, inputPrefixCls + '-disabled', disabled), _classNames2)); @@ -1535,6 +1623,7 @@ function wrapPicker(Picker, props, defaultFormat) { var timePicker = showTime ? h(_Panel2['default'], timePickerPanelProps) : null; var pickerProps = { props: (0, _extends3['default'])({}, props, { + format: mergedFormat, pickerClass: pickerClass, pickerInputClass: pickerInputClass, locale: locale, @@ -1599,6 +1688,12 @@ var _defineProperty2 = __webpack_require__(/*! babel-runtime/helpers/definePrope var _defineProperty3 = _interopRequireDefault(_defineProperty2); +var _vueTypes = __webpack_require__(/*! ../_util/vue-types */ "./node_modules/ant-design-vue/lib/_util/vue-types/index.js"); + +var _vueTypes2 = _interopRequireDefault(_vueTypes); + +var _configProvider = __webpack_require__(/*! ../config-provider */ "./node_modules/ant-design-vue/lib/config-provider/index.js"); + function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } exports['default'] = { @@ -1607,19 +1702,23 @@ exports['default'] = { prop: 'checked' }, props: { - prefixCls: { - 'default': 'ant-tag', - type: String - }, + prefixCls: _vueTypes2['default'].string, checked: Boolean }, + inject: { + configProvider: { 'default': function _default() { + return _configProvider.ConfigConsumerProps; + } } + }, computed: { classes: function classes() { var _ref; - var prefixCls = this.prefixCls, - checked = this.checked; + var checked = this.checked, + customizePrefixCls = this.prefixCls; + var getPrefixCls = this.configProvider.getPrefixCls; + var prefixCls = getPrefixCls('tag', customizePrefixCls); return _ref = {}, (0, _defineProperty3['default'])(_ref, '' + prefixCls, true), (0, _defineProperty3['default'])(_ref, prefixCls + '-checkable', true), (0, _defineProperty3['default'])(_ref, prefixCls + '-checkable-checked', checked), _ref; } }, @@ -1698,6 +1797,8 @@ var _BaseMixin = __webpack_require__(/*! ../_util/BaseMixin */ "./node_modules/a var _BaseMixin2 = _interopRequireDefault(_BaseMixin); +var _configProvider = __webpack_require__(/*! ../config-provider */ "./node_modules/ant-design-vue/lib/config-provider/index.js"); + function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } exports['default'] = { @@ -1708,12 +1809,17 @@ exports['default'] = { event: 'close.visible' }, props: { - prefixCls: _vueTypes2['default'].string.def('ant-tag'), + prefixCls: _vueTypes2['default'].string, color: _vueTypes2['default'].string, closable: _vueTypes2['default'].bool.def(false), visible: _vueTypes2['default'].bool, afterClose: _vueTypes2['default'].func }, + inject: { + configProvider: { 'default': function _default() { + return _configProvider.ConfigConsumerProps; + } } + }, data: function data() { var _visible = true; if ((0, _propsUtil.hasProp)(this, 'visible')) { @@ -1766,12 +1872,10 @@ exports['default'] = { backgroundColor: color && !isPresetColor ? color : undefined }; }, - getTagClassName: function getTagClassName() { + getTagClassName: function getTagClassName(prefixCls) { var _ref; - var _$props = this.$props, - prefixCls = _$props.prefixCls, - color = _$props.color; + var color = this.$props.color; var isPresetColor = this.isPresetColor(color); return _ref = {}, (0, _defineProperty3['default'])(_ref, prefixCls, true), (0, _defineProperty3['default'])(_ref, prefixCls + '-' + color, isPresetColor), (0, _defineProperty3['default'])(_ref, prefixCls + '-has-color', color && !isPresetColor), _ref; @@ -1791,7 +1895,10 @@ exports['default'] = { render: function render() { var h = arguments[0]; - var prefixCls = this.$props.prefixCls; + var customizePrefixCls = this.$props.prefixCls; + + var getPrefixCls = this.configProvider.getPrefixCls; + var prefixCls = getPrefixCls('tag', customizePrefixCls); var visible = this.$data._visible; var tag = h( @@ -1802,7 +1909,7 @@ exports['default'] = { value: visible }] }, { on: (0, _omit2['default'])(this.$listeners, ['close']) }, { - 'class': this.getTagClassName(), + 'class': this.getTagClassName(prefixCls), style: this.getTagStyle() }]), [this.$slots['default'], this.renderCloseIcon()] @@ -1843,12 +1950,17 @@ var _CheckableTag = __webpack_require__(/*! ./CheckableTag */ "./node_modules/an var _CheckableTag2 = _interopRequireDefault(_CheckableTag); +var _base = __webpack_require__(/*! ../base */ "./node_modules/ant-design-vue/lib/base/index.js"); + +var _base2 = _interopRequireDefault(_base); + function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } _Tag2['default'].CheckableTag = _CheckableTag2['default']; /* istanbul ignore next */ _Tag2['default'].install = function (Vue) { + Vue.use(_base2['default']); Vue.component(_Tag2['default'].name, _Tag2['default']); Vue.component(_Tag2['default'].CheckableTag.name, _Tag2['default'].CheckableTag); }; @@ -1886,6 +1998,10 @@ var _moment = __webpack_require__(/*! moment */ "./node_modules/moment/moment.js var moment = _interopRequireWildcard(_moment); +var _omit = __webpack_require__(/*! omit.js */ "./node_modules/omit.js/es/index.js"); + +var _omit2 = _interopRequireDefault(_omit); + var _vcTimePicker = __webpack_require__(/*! ../vc-time-picker */ "./node_modules/ant-design-vue/lib/vc-time-picker/index.js"); var _vcTimePicker2 = _interopRequireDefault(_vcTimePicker); @@ -1906,6 +2022,10 @@ var _vueTypes = __webpack_require__(/*! ../_util/vue-types */ "./node_modules/an var _vueTypes2 = _interopRequireDefault(_vueTypes); +var _warning = __webpack_require__(/*! ../_util/warning */ "./node_modules/ant-design-vue/lib/_util/warning.js"); + +var _warning2 = _interopRequireDefault(_warning); + var _icon = __webpack_require__(/*! ../icon */ "./node_modules/ant-design-vue/lib/icon/index.js"); var _icon2 = _interopRequireDefault(_icon); @@ -1918,6 +2038,12 @@ var _propsUtil = __webpack_require__(/*! ../_util/props-util */ "./node_modules/ var _vnode = __webpack_require__(/*! ../_util/vnode */ "./node_modules/ant-design-vue/lib/_util/vnode.js"); +var _configProvider = __webpack_require__(/*! ../config-provider */ "./node_modules/ant-design-vue/lib/config-provider/index.js"); + +var _base = __webpack_require__(/*! ../base */ "./node_modules/ant-design-vue/lib/base/index.js"); + +var _base2 = _interopRequireDefault(_base); + function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) newObj[key] = obj[key]; } } newObj['default'] = obj; return newObj; } } function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } @@ -1961,10 +2087,12 @@ var TimePickerProps = exports.TimePickerProps = function TimePickerProps() { minuteStep: _vueTypes2['default'].number, secondStep: _vueTypes2['default'].number, allowEmpty: _vueTypes2['default'].bool, + allowClear: _vueTypes2['default'].bool, inputReadOnly: _vueTypes2['default'].bool, clearText: _vueTypes2['default'].string, defaultOpenValue: _vueTypes2['default'].object, popupClassName: _vueTypes2['default'].string, + popupStyle: _vueTypes2['default'].object, suffixIcon: _vueTypes2['default'].any, align: _vueTypes2['default'].object, placement: _vueTypes2['default'].any, @@ -1978,7 +2106,6 @@ var TimePicker = { name: 'ATimePicker', mixins: [_BaseMixin2['default']], props: (0, _propsUtil.initDefaultProps)(TimePickerProps(), { - prefixCls: 'ant-time-picker', align: { offset: [0, -2] }, @@ -2003,7 +2130,7 @@ var TimePicker = { inject: { configProvider: { 'default': function _default() { - return {}; + return _configProvider.ConfigConsumerProps; } } }, data: function data() { @@ -2011,6 +2138,7 @@ var TimePicker = { if (value && !(0, _interopDefault2['default'])(moment).isMoment(value)) { throw new Error('The value/defaultValue of TimePicker must be a moment object, '); } + (0, _warning2['default'])(!(0, _propsUtil.hasProp)(this, 'allowEmpty'), '`allowEmpty` in TimePicker is deprecated. Please use `allowClear` instead.'); return { sValue: value }; @@ -2057,24 +2185,18 @@ var TimePicker = { } return 'HH:mm:ss'; }, - renderTimePicker: function renderTimePicker(locale) { - var h = this.$createElement; - - var props = (0, _propsUtil.getOptionProps)(this); - delete props.defaultValue; + getAllowClear: function getAllowClear() { + var _$props = this.$props, + allowClear = _$props.allowClear, + allowEmpty = _$props.allowEmpty; - var format = this.getDefaultFormat(); - var className = (0, _defineProperty3['default'])({}, props.prefixCls + '-' + props.size, !!props.size); - var tempAddon = (0, _propsUtil.getComponentFromProp)(this, 'addon', {}, false); - var addon = function addon(panel) { - return tempAddon ? h( - 'div', - { 'class': props.prefixCls + '-panel-addon' }, - [typeof tempAddon === 'function' ? tempAddon(panel) : tempAddon] - ) : null; - }; - var prefixCls = props.prefixCls, - getPopupContainer = props.getPopupContainer; + if ((0, _propsUtil.hasProp)(this, 'allowClear')) { + return allowClear; + } + return allowEmpty; + }, + renderInputIcon: function renderInputIcon(prefixCls) { + var h = this.$createElement; var suffixIcon = (0, _propsUtil.getComponentFromProp)(this, 'suffixIcon'); suffixIcon = Array.isArray(suffixIcon) ? suffixIcon[0] : suffixIcon; @@ -2088,28 +2210,62 @@ var TimePicker = { attrs: { type: 'clock-circle', theme: 'outlined' }, 'class': prefixCls + '-clock-icon' }); - var inputIcon = h( + return h( 'span', { 'class': prefixCls + '-icon' }, [clockIcon] ); + }, + renderClearIcon: function renderClearIcon(prefixCls) { + var h = this.$createElement; var clearIcon = h(_icon2['default'], { attrs: { type: 'close-circle', theme: 'filled' }, - 'class': prefixCls + '-panel-clear-btn-icon' }); + 'class': prefixCls + '-clear' }); + return clearIcon; + }, + renderTimePicker: function renderTimePicker(locale) { + var h = this.$createElement; + + var props = (0, _propsUtil.getOptionProps)(this); + props = (0, _omit2['default'])(props, ['defaultValue', 'suffixIcon', 'allowEmpty', 'allowClear']); + + var _props = props, + customizePrefixCls = _props.prefixCls, + getPopupContainer = _props.getPopupContainer, + placeholder = _props.placeholder, + size = _props.size; + + var getPrefixCls = this.configProvider.getPrefixCls; + var prefixCls = getPrefixCls('time-picker', customizePrefixCls); + + var format = this.getDefaultFormat(); + var pickerClassName = (0, _defineProperty3['default'])({}, prefixCls + '-' + size, !!size); + var tempAddon = (0, _propsUtil.getComponentFromProp)(this, 'addon', {}, false); + var pickerAddon = function pickerAddon(panel) { + return tempAddon ? h( + 'div', + { 'class': prefixCls + '-panel-addon' }, + [typeof tempAddon === 'function' ? tempAddon(panel) : tempAddon] + ) : null; + }; + var inputIcon = this.renderInputIcon(prefixCls); + var clearIcon = this.renderClearIcon(prefixCls); var getContextPopupContainer = this.configProvider.getPopupContainer; var timeProps = { props: (0, _extends3['default'])({}, generateShowHourMinuteSecond(format), props, { + allowEmpty: this.getAllowClear(), + prefixCls: prefixCls, getPopupContainer: getPopupContainer || getContextPopupContainer, format: format, value: this.sValue, - placeholder: props.placeholder === undefined ? locale.placeholder : props.placeholder, - addon: addon, + placeholder: placeholder === undefined ? locale.placeholder : placeholder, + addon: pickerAddon, inputIcon: inputIcon, clearIcon: clearIcon }), - 'class': className, + 'class': pickerClassName, ref: 'timePicker', on: (0, _extends3['default'])({}, this.$listeners, { change: this.handleChange, @@ -2136,6 +2292,7 @@ var TimePicker = { /* istanbul ignore next */ TimePicker.install = function (Vue) { + Vue.use(_base2['default']); Vue.component(TimePicker.name, TimePicker); }; @@ -2157,13 +2314,22 @@ Object.defineProperty(exports, "__esModule", { value: true }); +var _vue = __webpack_require__(/*! vue */ "./node_modules/vue/dist/vue.common.js"); + +var _vue2 = _interopRequireDefault(_vue); + +var _vueRef = __webpack_require__(/*! vue-ref */ "./node_modules/vue-ref/index.js"); + +var _vueRef2 = _interopRequireDefault(_vueRef); + var _src = __webpack_require__(/*! ./src/ */ "./node_modules/ant-design-vue/lib/vc-calendar/src/index.js"); var _src2 = _interopRequireDefault(_src); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } -exports['default'] = _src2['default']; // based on rc-calendar 9.8.2 +_vue2['default'].use(_vueRef2['default'], { name: 'ant-ref' }); // based on rc-calendar 9.10.10 +exports['default'] = _src2['default']; /***/ }), @@ -2203,7 +2369,7 @@ var _KeyCode2 = _interopRequireDefault(_KeyCode); var _moment = __webpack_require__(/*! moment */ "./node_modules/moment/moment.js"); -var moment = _interopRequireWildcard(_moment); +var _moment2 = _interopRequireDefault(_moment); var _DateTable = __webpack_require__(/*! ./date/DateTable */ "./node_modules/ant-design-vue/lib/vc-calendar/src/date/DateTable.js"); @@ -2237,20 +2403,8 @@ var _util = __webpack_require__(/*! ./util */ "./node_modules/ant-design-vue/lib var _toTime = __webpack_require__(/*! ./util/toTime */ "./node_modules/ant-design-vue/lib/vc-calendar/src/util/toTime.js"); -function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) newObj[key] = obj[key]; } } newObj['default'] = obj; return newObj; } } - function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } -function isMoment(value) { - if (Array.isArray(value)) { - return value.length === 0 || value.findIndex(function (val) { - return val === undefined || moment.isMoment(val); - }) !== -1; - } else { - return value === undefined || moment.isMoment(value); - } -} -var MomentType = _vueTypes2['default'].custom(isMoment); var Calendar = { props: { locale: _vueTypes2['default'].object.def(_en_US2['default']), @@ -2258,9 +2412,10 @@ var Calendar = { visible: _vueTypes2['default'].bool.def(true), prefixCls: _vueTypes2['default'].string.def('rc-calendar'), // prefixCls: PropTypes.string, - defaultValue: MomentType, - value: MomentType, - selectedValue: MomentType, + defaultValue: _vueTypes2['default'].object, + value: _vueTypes2['default'].object, + selectedValue: _vueTypes2['default'].object, + defaultSelectedValue: _vueTypes2['default'].object, mode: _vueTypes2['default'].oneOf(['time', 'date', 'month', 'year', 'decade']), // locale: PropTypes.object, showDateInput: _vueTypes2['default'].bool.def(true), @@ -2284,23 +2439,54 @@ var Calendar = { renderSidebar: _vueTypes2['default'].func.def(function () { return null; }), - clearIcon: _vueTypes2['default'].any + clearIcon: _vueTypes2['default'].any, + focusablePanel: _vueTypes2['default'].bool.def(true) }, mixins: [_BaseMixin2['default'], _CommonMixin2['default'], _CalendarMixin2['default']], data: function data() { + var props = this.$props; return { - sMode: this.mode || 'date' + sMode: this.mode || 'date', + sValue: props.value || props.defaultValue || (0, _moment2['default'])(), + sSelectedValue: props.selectedValue || props.defaultSelectedValue }; }, watch: { mode: function mode(val) { this.setState({ sMode: val }); + }, + value: function value(val) { + var sValue = val || this.defaultValue || (0, _CalendarMixin.getNowByCurrentStateValue)(this.sValue); + this.setState({ + sValue: sValue + }); + }, + selectedValue: function selectedValue(val) { + this.setState({ + sSelectedValue: val + }); } }, + mounted: function mounted() { + var _this = this; + + this.$nextTick(function () { + _this.saveFocusElement(_DateInput2['default'].getInstance()); + }); + }, + methods: { + onPanelChange: function onPanelChange(value, mode) { + var sValue = this.sValue; + + if (!(0, _propsUtil.hasProp)(this, 'mode')) { + this.setState({ sMode: mode }); + } + this.__emit('panelChange', value || sValue, mode); + }, onKeyDown: function onKeyDown(event) { if (event.target.nodeName.toLowerCase() === 'input') { return undefined; @@ -2381,6 +2567,11 @@ var Calendar = { source: 'dateInput' }); }, + onDateInputSelect: function onDateInputSelect(value) { + this.onSelect(value, { + source: 'dateInputSelect' + }); + }, onDateTableSelect: function onDateTableSelect(value) { var timePicker = this.timePicker, sSelectedValue = this.sSelectedValue; @@ -2402,14 +2593,6 @@ var Calendar = { source: 'todayButton' }); }, - onPanelChange: function onPanelChange(value, mode) { - var sValue = this.sValue; - - if (!(0, _propsUtil.hasProp)(this, 'mode')) { - this.setState({ sMode: mode }); - } - this.__emit('panelChange', value || sValue, mode); - }, getRootDOMNode: function getRootDOMNode() { return this.$el; }, @@ -2433,10 +2616,10 @@ var Calendar = { timePicker = this.timePicker, disabledTime = this.disabledTime, showDateInput = this.showDateInput, - renderSidebar = this.renderSidebar, sValue = this.sValue, sSelectedValue = this.sSelectedValue, sMode = this.sMode, + renderFooter = this.renderFooter, props = this.$props; var clearIcon = (0, _propsUtil.getComponentFromProp)(this, 'clearIcon'); @@ -2485,21 +2668,29 @@ var Calendar = { }, key: 'date-input', on: { 'clear': this.onClear, - 'change': this.onDateInputChange + 'change': this.onDateInputChange, + 'select': this.onDateInputSelect } }) : null; - var children = [renderSidebar(), h( + var children = []; + if (props.renderSidebar) { + children.push(props.renderSidebar()); + } + children.push(h( 'div', { 'class': prefixCls + '-panel', key: 'panel' }, [dateInputElement, h( 'div', - { 'class': prefixCls + '-date-panel' }, + { + attrs: { tabIndex: props.focusablePanel ? 0 : undefined }, + 'class': prefixCls + '-date-panel' }, [h(_CalendarHeader2['default'], { attrs: { locale: locale, mode: sMode, value: sValue, + renderFooter: renderFooter, showTimePicker: showTimePicker, prefixCls: prefixCls }, @@ -2536,6 +2727,7 @@ var Calendar = { ), h(_CalendarFooter2['default'], { attrs: { showOk: props.showOk, + mode: sMode, renderFooter: props.renderFooter, locale: locale, prefixCls: prefixCls, @@ -2558,7 +2750,7 @@ var Calendar = { } })] )] - )]; + )); return this.renderRoot({ children: children, @@ -2585,6 +2777,10 @@ Object.defineProperty(exports, "__esModule", { value: true }); +var _moment = __webpack_require__(/*! moment */ "./node_modules/moment/moment.js"); + +var _moment2 = _interopRequireDefault(_moment); + var _vueTypes = __webpack_require__(/*! ../../_util/vue-types */ "./node_modules/ant-design-vue/lib/_util/vue-types/index.js"); var _vueTypes2 = _interopRequireDefault(_vueTypes); @@ -2627,6 +2823,10 @@ var MonthCalendar = { prefixCls: _vueTypes2['default'].string.def('rc-calendar'), monthCellRender: _vueTypes2['default'].func, dateCellRender: _vueTypes2['default'].func, + value: _vueTypes2['default'].object, + defaultValue: _vueTypes2['default'].object, + selectedValue: _vueTypes2['default'].object, + defaultSelectedValue: _vueTypes2['default'].object, disabledDate: _vueTypes2['default'].func, monthCellContentRender: _vueTypes2['default'].func, renderFooter: _vueTypes2['default'].func.def(function () { @@ -2639,7 +2839,12 @@ var MonthCalendar = { mixins: [_BaseMixin2['default'], _CommonMixin2['default'], _CalendarMixin2['default']], data: function data() { - return { mode: 'month' }; + var props = this.$props; + return { + mode: 'month', + sValue: props.value || props.defaultValue || (0, _moment2['default'])(), + sSelectedValue: props.selectedValue || props.defaultSelectedValue + }; }, methods: { @@ -2887,13 +3092,13 @@ var Picker = { }); } var calendarProps = (0, _propsUtil.getOptionProps)(props.calendar); - if (cause.source === 'keyboard' || !calendarProps.timePicker && cause.source !== 'dateInput' || cause.source === 'todayButton') { + if (cause.source === 'keyboard' || cause.source === 'dateInputSelect' || !calendarProps.timePicker && cause.source !== 'dateInput' || cause.source === 'todayButton') { this.closeCalendar(this.focus); } this.__emit('change', value); }, onKeyDown: function onKeyDown(event) { - if (event.keyCode === _KeyCode2['default'].DOWN && !this.sOpen) { + if (!this.sOpen && (event.keyCode === _KeyCode2['default'].DOWN || event.keyCode === _KeyCode2['default'].ENTER)) { this.openCalendar(); event.preventDefault(); } @@ -3143,7 +3348,7 @@ function generateOptions(length, extraOptionGen) { return arr; } -function onInputSelect(direction, value) { +function onInputSelect(direction, value, cause) { if (!value) { return; } @@ -3155,7 +3360,7 @@ function onInputSelect(direction, value) { selectedValue[1 - index] = this.showTimePicker ? selectedValue[index] : undefined; } this.__emit('inputSelect', selectedValue); - this.fireSelectValueChange(selectedValue); + this.fireSelectValueChange(selectedValue, null, cause || { source: 'dateInput' }); } var RangeCalendar = { @@ -3164,6 +3369,7 @@ var RangeCalendar = { visible: _vueTypes2['default'].bool.def(true), prefixCls: _vueTypes2['default'].string.def('rc-calendar'), dateInputPlaceholder: _vueTypes2['default'].any, + seperator: _vueTypes2['default'].string.def('~'), defaultValue: _vueTypes2['default'].any, value: _vueTypes2['default'].any, hoverValue: _vueTypes2['default'].any, @@ -3483,7 +3689,7 @@ var RangeCalendar = { this.__emit('ok', sSelectedValue); } }, - onStartInputSelect: function onStartInputSelect() { + onStartInputChange: function onStartInputChange() { for (var _len = arguments.length, oargs = Array(_len), _key = 0; _key < _len; _key++) { oargs[_key] = arguments[_key]; } @@ -3491,7 +3697,7 @@ var RangeCalendar = { var args = ['left'].concat(oargs); return onInputSelect.apply(this, args); }, - onEndInputSelect: function onEndInputSelect() { + onEndInputChange: function onEndInputChange() { for (var _len2 = arguments.length, oargs = Array(_len2), _key2 = 0; _key2 < _len2; _key2++) { oargs[_key2] = arguments[_key2]; } @@ -3499,6 +3705,14 @@ var RangeCalendar = { var args = ['right'].concat(oargs); return onInputSelect.apply(this, args); }, + onStartInputSelect: function onStartInputSelect(value) { + var args = ['left', value, { source: 'dateInputSelect' }]; + return onInputSelect.apply(this, args); + }, + onEndInputSelect: function onEndInputSelect(value) { + var args = ['right', value, { source: 'dateInputSelect' }]; + return onInputSelect.apply(this, args); + }, onStartValueChange: function onStartValueChange(leftValue) { var value = [].concat((0, _toConsumableArray3['default'])(this.sValue)); value[0] = leftValue; @@ -3624,7 +3838,7 @@ var RangeCalendar = { } return v1.diff(v2, 'days'); }, - fireSelectValueChange: function fireSelectValueChange(selectedValue, direct) { + fireSelectValueChange: function fireSelectValueChange(selectedValue, direct, cause) { var timePicker = this.timePicker, prevSelectedValue = this.prevSelectedValue; @@ -3661,7 +3875,7 @@ var RangeCalendar = { firstSelectedValue: null }); this.fireHoverValueChange([]); - this.__emit('select', selectedValue); + this.__emit('select', selectedValue, cause); } if (!(0, _propsUtil.hasProp)(this, 'selectedValue')) { this.setState({ @@ -3718,7 +3932,8 @@ var RangeCalendar = { locale = props.locale, showClear = props.showClear, showToday = props.showToday, - type = props.type; + type = props.type, + seperator = props.seperator; var clearIcon = (0, _propsUtil.getComponentFromProp)(this, 'clearIcon'); var sHoverValue = this.sHoverValue, @@ -3785,6 +4000,7 @@ var RangeCalendar = { clearIcon: clearIcon }, on: { + inputChange: this.onStartInputChange, inputSelect: this.onStartInputSelect, valueChange: this.onStartValueChange, panelChange: this.onStartPanelChange @@ -3809,6 +4025,7 @@ var RangeCalendar = { clearIcon: clearIcon }, on: { + inputChange: this.onEndInputChange, inputSelect: this.onEndInputSelect, valueChange: this.onEndValueChange, panelChange: this.onEndPanelChange @@ -3856,7 +4073,7 @@ var RangeCalendar = { }); OkButtonNode = h(_OkButton2['default'], (0, _babelHelperVueJsxMergeProps2['default'])([{ key: 'okButtonNode' }, okButtonProps])); } - var extraFooter = this.renderFooter(); + var extraFooter = this.renderFooter(sMode); return h( 'div', { ref: 'rootInstance', 'class': className, attrs: { tabIndex: '0' }, @@ -3888,7 +4105,7 @@ var RangeCalendar = { [h(_CalendarPart2['default'], leftPartProps), h( 'span', { 'class': prefixCls + '-range-middle' }, - ['~'] + [seperator] ), h(_CalendarPart2['default'], rightPartProps)] ), h( 'div', @@ -3975,7 +4192,8 @@ var CalendarFooter = { showToday: _vueTypes2['default'].bool, disabledDate: _vueTypes2['default'].func, showTimePicker: _vueTypes2['default'].bool, - okDisabled: _vueTypes2['default'].bool + okDisabled: _vueTypes2['default'].bool, + mode: _vueTypes2['default'].string }, methods: { onSelect: function onSelect(value) { @@ -3996,10 +4214,11 @@ var CalendarFooter = { showOk = props.showOk, timePicker = props.timePicker, renderFooter = props.renderFooter, - showToday = props.showToday; + showToday = props.showToday, + mode = props.mode; var footerEl = null; - var extraFooter = renderFooter(); + var extraFooter = renderFooter && renderFooter(mode); if (showToday || timePicker || extraFooter) { var _cls; @@ -4115,7 +4334,8 @@ var CalendarHeader = { disabledMonth: _vueTypes2['default'].func, mode: _vueTypes2['default'].any, monthCellRender: _vueTypes2['default'].func, - monthCellContentRender: _vueTypes2['default'].func + monthCellContentRender: _vueTypes2['default'].func, + renderFooter: _vueTypes2['default'].func }, data: function data() { this.nextMonth = goMonth.bind(this, 1); @@ -4236,7 +4456,8 @@ var CalendarHeader = { showTimePicker = props.showTimePicker, enableNext = props.enableNext, enablePrev = props.enablePrev, - disabledMonth = props.disabledMonth; + disabledMonth = props.disabledMonth, + renderFooter = props.renderFooter; var panel = null; @@ -4249,7 +4470,8 @@ var CalendarHeader = { disabledDate: disabledMonth, cellRender: props.monthCellRender, - contentRender: props.monthCellContentRender + contentRender: props.monthCellContentRender, + renderFooter: renderFooter }, on: { 'select': this.onMonthSelect, @@ -4264,7 +4486,9 @@ var CalendarHeader = { attrs: { locale: locale, defaultValue: value, - rootPrefixCls: prefixCls + rootPrefixCls: prefixCls, + + renderFooter: renderFooter }, on: { 'select': this.onYearSelect, @@ -4277,7 +4501,9 @@ var CalendarHeader = { attrs: { locale: locale, defaultValue: value, - rootPrefixCls: prefixCls + rootPrefixCls: prefixCls, + + renderFooter: renderFooter }, on: { 'select': this.onDecadeSelect @@ -4528,6 +4754,10 @@ Object.defineProperty(exports, "__esModule", { value: true }); +var _babelHelperVueJsxMergeProps = __webpack_require__(/*! babel-helper-vue-jsx-merge-props */ "./node_modules/babel-helper-vue-jsx-merge-props/index.js"); + +var _babelHelperVueJsxMergeProps2 = _interopRequireDefault(_babelHelperVueJsxMergeProps); + var _vueTypes = __webpack_require__(/*! ../../../_util/vue-types */ "./node_modules/ant-design-vue/lib/_util/vue-types/index.js"); var _vueTypes2 = _interopRequireDefault(_vueTypes); @@ -4544,10 +4774,19 @@ var _moment2 = _interopRequireDefault(_moment); var _util = __webpack_require__(/*! ../util */ "./node_modules/ant-design-vue/lib/vc-calendar/src/util/index.js"); +var _KeyCode = __webpack_require__(/*! ../../../_util/KeyCode */ "./node_modules/ant-design-vue/lib/_util/KeyCode.js"); + +var _KeyCode2 = _interopRequireDefault(_KeyCode); + var _env = __webpack_require__(/*! ../../../_util/env */ "./node_modules/ant-design-vue/lib/_util/env.js"); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } +var cachedSelectionStart = void 0; +var cachedSelectionEnd = void 0; +var dateInputInstance = void 0; + + var DateInput = { mixins: [_BaseMixin2['default']], props: { @@ -4588,16 +4827,21 @@ var DateInput = { var _this = this; this.$nextTick(function () { - if (_this.$data.hasFocus && !_this.invalid && !(_this.cachedSelectionStart === 0 && _this.cachedSelectionEnd === 0)) { - _this.$refs.dateInputInstance.setSelectionRange(_this.cachedSelectionStart, _this.cachedSelectionEnd); + if (dateInputInstance && _this.$data.hasFocus && !_this.invalid && !(cachedSelectionStart === 0 && cachedSelectionEnd === 0)) { + dateInputInstance.setSelectionRange(cachedSelectionStart, cachedSelectionEnd); } }); }, + getInstance: function getInstance() { + return dateInputInstance; + }, methods: { updateState: function updateState() { - this.cachedSelectionStart = this.$refs.dateInputInstance.selectionStart; - this.cachedSelectionEnd = this.$refs.dateInputInstance.selectionEnd; + if (dateInputInstance) { + cachedSelectionStart = dateInputInstance.selectionStart; + cachedSelectionEnd = dateInputInstance.selectionEnd; + } // when popup show, click body will call this, bug! var selectedValue = this.selectedValue; if (!this.$data.hasFocus) { @@ -4607,12 +4851,21 @@ var DateInput = { }); } }, - onInputChange: function onInputChange(event) { - var str = event.target.value; - // https://github.com/vueComponent/ant-design-vue/issues/92 - if (_env.isIE && !_env.isIE9 && this.str === str) { - return; - } + onClear: function onClear() { + this.setState({ + str: '' + }); + this.__emit('clear', null); + }, + onInputChange: function onInputChange(e) { + var _e$target = e.target, + str = _e$target.value, + composing = _e$target.composing; + var _str = this.str, + oldStr = _str === undefined ? '' : _str; + + if (composing || oldStr === str) return; + var _$props = this.$props, disabledDate = _$props.disabledDate, format = _$props.format, @@ -4629,6 +4882,7 @@ var DateInput = { return; } + // 不合法直接退出 var parsed = (0, _moment2['default'])(str, format, true); if (!parsed.isValid()) { this.setState({ @@ -4650,25 +4904,12 @@ var DateInput = { if (selectedValue !== value || selectedValue && value && !selectedValue.isSame(value)) { this.setState({ + invalid: false, str: str }); this.__emit('change', value); } }, - onClear: function onClear() { - this.setState({ - str: '' - }); - this.__emit('clear', null); - }, - getRootDOMNode: function getRootDOMNode() { - return this.$el; - }, - focus: function focus() { - if (this.$refs.dateInputInstance) { - this.$refs.dateInputInstance.focus(); - } - }, onFocus: function onFocus() { this.setState({ hasFocus: true }); }, @@ -4679,6 +4920,30 @@ var DateInput = { str: (0, _util.formatDate)(prevProps.value, prevProps.format) }; }); + }, + onKeyDown: function onKeyDown(_ref) { + var keyCode = _ref.keyCode; + var _$props2 = this.$props, + value = _$props2.value, + disabledDate = _$props2.disabledDate; + + if (keyCode === _KeyCode2['default'].ENTER) { + var validateDate = !disabledDate || !disabledDate(value); + if (validateDate) { + this.__emit('select', value.clone()); + } + } + }, + getRootDOMNode: function getRootDOMNode() { + return this.$el; + }, + focus: function focus() { + if (dateInputInstance) { + dateInputInstance.focus(); + } + }, + saveDateInput: function saveDateInput(dateInput) { + dateInputInstance = dateInput; } }, @@ -4700,8 +4965,14 @@ var DateInput = { [h( 'div', { 'class': prefixCls + '-date-input-wrap' }, - [h('input', { - ref: 'dateInputInstance', + [h('input', (0, _babelHelperVueJsxMergeProps2['default'])([{ + directives: [{ + name: 'ant-ref', + value: this.saveDateInput + }, { + name: 'ant-input' + }] + }, { 'class': prefixCls + '-input ' + invalidClass, domProps: { 'value': str @@ -4712,10 +4983,11 @@ var DateInput = { }, on: { 'input': this.onInputChange, + 'keydown': this.onKeyDown, 'focus': this.onFocus, 'blur': this.onBlur } - })] + }]))] ), showClear ? h( 'a', { @@ -5215,7 +5487,8 @@ exports['default'] = { locale: _vueTypes2['default'].object, value: _vueTypes2['default'].object, defaultValue: _vueTypes2['default'].object, - rootPrefixCls: _vueTypes2['default'].string + rootPrefixCls: _vueTypes2['default'].string, + renderFooter: _vueTypes2['default'].func }, data: function data() { this.nextCentury = goYear.bind(this, 100); @@ -5230,7 +5503,10 @@ exports['default'] = { var h = arguments[0]; var value = this.sValue; - var locale = this.locale; + var _$props = this.$props, + locale = _$props.locale, + renderFooter = _$props.renderFooter; + var currentYear = value.year(); var startYear = parseInt(currentYear / 100, 10) * 100; var preYear = startYear - 10; @@ -5252,6 +5528,7 @@ exports['default'] = { } } + var footer = renderFooter && renderFooter('decade'); var decadesEls = decades.map(function (row, decadeIndex) { var tds = row.map(function (decadeData) { var _classNameMap; @@ -5334,6 +5611,10 @@ exports['default'] = { [decadesEls] )] )] + ), footer && h( + 'div', + { 'class': prefixCls + '-footer' }, + [footer] )] ); } @@ -5383,6 +5664,8 @@ var _defineProperty2 = __webpack_require__(/*! babel-runtime/helpers/definePrope var _defineProperty3 = _interopRequireDefault(_defineProperty2); +exports.getNowByCurrentStateValue = getNowByCurrentStateValue; + var _vueTypes = __webpack_require__(/*! ../../../_util/vue-types */ "./node_modules/ant-design-vue/lib/_util/vue-types/index.js"); var _vueTypes2 = _interopRequireDefault(_vueTypes); @@ -5402,16 +5685,13 @@ var _index = __webpack_require__(/*! ../util/index */ "./node_modules/ant-design function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } function noop() {} -function getNow() { - return (0, _moment2['default'])(); -} function getNowByCurrentStateValue(value) { var ret = void 0; if (value) { ret = (0, _index.getTodayTime)(value); } else { - ret = getNow(); + ret = (0, _moment2['default'])(); } return ret; } @@ -5427,6 +5707,7 @@ function isMoment(value) { var MomentType = _vueTypes2['default'].custom(isMoment); var CalendarMixin = { mixins: [_BaseMixin2['default']], + name: 'CalendarMixinWrapper', props: { value: MomentType, defaultValue: MomentType @@ -5434,7 +5715,7 @@ var CalendarMixin = { data: function data() { var props = this.$props; - var sValue = props.value || props.defaultValue || getNow(); + var sValue = props.value || props.defaultValue || getNowByCurrentStateValue(); return { sValue: sValue, sSelectedValue: props.selectedValue || props.defaultSelectedValue @@ -5561,9 +5842,14 @@ exports["default"] = { return format; }, focus: function focus() { - if (this.$refs.rootInstance) { + if (this.focusElement) { + this.focusElement.focus(); + } else if (this.$refs.rootInstance) { this.$refs.rootInstance.focus(); } + }, + saveFocusElement: function saveFocusElement(focusElement) { + this.focusElement = focusElement; } } }; @@ -5618,8 +5904,9 @@ var MonthPanel = { locale: _vueTypes2['default'].any, rootPrefixCls: _vueTypes2['default'].string, // onChange: PropTypes.func, - disabledDate: _vueTypes2['default'].func + disabledDate: _vueTypes2['default'].func, // onSelect: PropTypes.func, + renderFooter: _vueTypes2['default'].func }, data: function data() { @@ -5667,11 +5954,14 @@ var MonthPanel = { locale = this.locale, rootPrefixCls = this.rootPrefixCls, disabledDate = this.disabledDate, + renderFooter = this.renderFooter, _$listeners = this.$listeners, $listeners = _$listeners === undefined ? {} : _$listeners; var year = sValue.year(); var prefixCls = rootPrefixCls + '-month-panel'; + + var footer = renderFooter && renderFooter('month'); return h( 'div', { 'class': prefixCls }, @@ -5735,6 +6025,10 @@ var MonthPanel = { 'select': this.setAndSelectValue } })] + ), footer && h( + 'div', + { 'class': prefixCls + '-footer' }, + [footer] )])] ); } @@ -5991,6 +6285,10 @@ Object.defineProperty(exports, "__esModule", { value: true }); +var _defineProperty2 = __webpack_require__(/*! babel-runtime/helpers/defineProperty */ "./node_modules/babel-runtime/helpers/defineProperty.js"); + +var _defineProperty3 = _interopRequireDefault(_defineProperty2); + var _extends2 = __webpack_require__(/*! babel-runtime/helpers/extends */ "./node_modules/babel-runtime/helpers/extends.js"); var _extends3 = _interopRequireDefault(_extends2); @@ -6051,6 +6349,8 @@ var CalendarPart = { clearIcon: _vueTypes2['default'].any }, render: function render() { + var _on; + var h = arguments[0]; var props = this.$props, _$listeners = this.$listeners, @@ -6077,7 +6377,9 @@ var CalendarPart = { showWeekNumber = props.showWeekNumber; var clearIcon = (0, _propsUtil.getComponentFromProp)(this, 'clearIcon'); - var _$listeners$inputSele = $listeners.inputSelect, + var _$listeners$inputChan = $listeners.inputChange, + inputChange = _$listeners$inputChan === undefined ? noop : _$listeners$inputChan, + _$listeners$inputSele = $listeners.inputSelect, inputSelect = _$listeners$inputSele === undefined ? noop : _$listeners$inputSele, _$listeners$valueChan = $listeners.valueChange, valueChange = _$listeners$valueChan === undefined ? noop : _$listeners$valueChan, @@ -6111,7 +6413,7 @@ var CalendarPart = { value: selectedValue[index] }), on: { - change: inputSelect + change: inputChange } }); } @@ -6131,9 +6433,9 @@ var CalendarPart = { clearIcon: clearIcon }, - on: { + on: (_on = { 'change': inputSelect - } + }, (0, _defineProperty3['default'])(_on, 'change', inputChange), (0, _defineProperty3['default'])(_on, 'select', inputSelect), _on) }); var headerProps = { props: (0, _extends3['default'])({}, newProps, { @@ -6408,6 +6710,7 @@ function chooseYear(year) { var value = this.sValue.clone(); value.year(year); value.month(this.sValue.month()); + this.sValue = value; this.__emit('select', value); } @@ -6417,7 +6720,8 @@ exports['default'] = { rootPrefixCls: _vueTypes2['default'].string, value: _vueTypes2['default'].object, defaultValue: _vueTypes2['default'].object, - locale: _vueTypes2['default'].object + locale: _vueTypes2['default'].object, + renderFooter: _vueTypes2['default'].func }, data: function data() { this.nextDecade = goYear.bind(this, 10); @@ -6458,6 +6762,7 @@ exports['default'] = { var h = arguments[0]; var value = this.sValue, locale = this.locale, + renderFooter = this.renderFooter, _$listeners = this.$listeners, $listeners = _$listeners === undefined ? {} : _$listeners; @@ -6509,7 +6814,7 @@ exports['default'] = { [tds] ); }); - + var footer = renderFooter && renderFooter('year'); return h( 'div', { 'class': prefixCls }, @@ -6569,6 +6874,10 @@ exports['default'] = { [yeasEls] )] )] + ), footer && h( + 'div', + { 'class': prefixCls + '-footer' }, + [footer] )])] ); } @@ -6630,6 +6939,7 @@ var Combobox = { prefixCls: _vueTypes2['default'].string, value: _vueTypes2['default'].object, // onChange: PropTypes.func, + // onAmPmChange: PropTypes.func, showHour: _vueTypes2['default'].bool, showMinute: _vueTypes2['default'].bool, showSecond: _vueTypes2['default'].bool, @@ -6647,9 +6957,10 @@ var Combobox = { onItemChange: function onItemChange(type, itemValue) { var defaultOpenValue = this.defaultOpenValue, use12Hours = this.use12Hours, + propValue = this.value, isAM = this.isAM; - var value = (this.value || defaultOpenValue).clone(); + var value = (propValue || defaultOpenValue).clone(); if (type === 'hour') { if (use12Hours) { @@ -6676,6 +6987,7 @@ var Combobox = { } } } + this.__emit('amPmChange', ampm); } else { value.second(+itemValue); } @@ -6685,6 +6997,8 @@ var Combobox = { this.__emit('currentSelectPanelChange', range); }, getHourSelect: function getHourSelect(hour) { + var _this = this; + var h = this.$createElement; var prefixCls = this.prefixCls, hourOptions = this.hourOptions, @@ -6719,22 +7033,27 @@ var Combobox = { }, on: { 'select': this.onItemChange, - 'mouseenter': this.onEnterSelectPanel.bind(this, 'hour') + 'mouseenter': function mouseenter() { + return _this.onEnterSelectPanel('hour'); + } } }); }, getMinuteSelect: function getMinuteSelect(minute) { + var _this2 = this; + var h = this.$createElement; var prefixCls = this.prefixCls, minuteOptions = this.minuteOptions, disabledMinutes = this.disabledMinutes, defaultOpenValue = this.defaultOpenValue, - showMinute = this.showMinute; + showMinute = this.showMinute, + propValue = this.value; if (!showMinute) { return null; } - var value = this.value || defaultOpenValue; + var value = propValue || defaultOpenValue; var disabledOptions = disabledMinutes(value.hour()); return h(_Select2['default'], { @@ -6748,22 +7067,27 @@ var Combobox = { }, on: { 'select': this.onItemChange, - 'mouseenter': this.onEnterSelectPanel.bind(this, 'minute') + 'mouseenter': function mouseenter() { + return _this2.onEnterSelectPanel('minute'); + } } }); }, getSecondSelect: function getSecondSelect(second) { + var _this3 = this; + var h = this.$createElement; var prefixCls = this.prefixCls, secondOptions = this.secondOptions, disabledSeconds = this.disabledSeconds, showSecond = this.showSecond, - defaultOpenValue = this.defaultOpenValue; + defaultOpenValue = this.defaultOpenValue, + propValue = this.value; if (!showSecond) { return null; } - var value = this.value || defaultOpenValue; + var value = propValue || defaultOpenValue; var disabledOptions = disabledSeconds(value.hour(), value.minute()); return h(_Select2['default'], { @@ -6777,11 +7101,15 @@ var Combobox = { }, on: { 'select': this.onItemChange, - 'mouseenter': this.onEnterSelectPanel.bind(this, 'second') + 'mouseenter': function mouseenter() { + return _this3.onEnterSelectPanel('second'); + } } }); }, getAMPMSelect: function getAMPMSelect() { + var _this4 = this; + var h = this.$createElement; var prefixCls = this.prefixCls, use12Hours = this.use12Hours, @@ -6810,7 +7138,9 @@ var Combobox = { }, on: { 'select': this.onItemChange, - 'mouseenter': this.onEnterSelectPanel.bind(this, 'ampm') + 'mouseenter': function mouseenter() { + return _this4.onEnterSelectPanel('ampm'); + } } }); } @@ -6819,9 +7149,10 @@ var Combobox = { render: function render() { var h = arguments[0]; var prefixCls = this.prefixCls, - defaultOpenValue = this.defaultOpenValue; + defaultOpenValue = this.defaultOpenValue, + propValue = this.value; - var value = this.value || defaultOpenValue; + var value = propValue || defaultOpenValue; return h( 'div', { 'class': prefixCls + '-combobox' }, @@ -6848,6 +7179,10 @@ Object.defineProperty(exports, "__esModule", { value: true }); +var _babelHelperVueJsxMergeProps = __webpack_require__(/*! babel-helper-vue-jsx-merge-props */ "./node_modules/babel-helper-vue-jsx-merge-props/index.js"); + +var _babelHelperVueJsxMergeProps2 = _interopRequireDefault(_babelHelperVueJsxMergeProps); + var _vueTypes = __webpack_require__(/*! ../_util/vue-types */ "./node_modules/ant-design-vue/lib/_util/vue-types/index.js"); var _vueTypes2 = _interopRequireDefault(_vueTypes); @@ -6890,7 +7225,6 @@ var Header = { currentSelectPanel: _vueTypes2['default'].string, focusOnOpen: _vueTypes2['default'].bool, // onKeyDown: PropTypes.func, - showStr: _vueTypes2['default'].bool.def(true), clearIcon: _vueTypes2['default'].any }, data: function data() { @@ -6931,14 +7265,15 @@ var Header = { }, methods: { - onInputChange: function onInputChange(event) { - var str = event.target.value; - // https://github.com/vueComponent/ant-design-vue/issues/92 - if (_env.isIE && !_env.isIE9 && this.str === str) { - return; - } + onInputChange: function onInputChange(e) { + var _e$target = e.target, + str = _e$target.value, + composing = _e$target.composing; + var _str = this.str, + oldStr = _str === undefined ? '' : _str; + + if (composing || oldStr === str) return; - this.showStr = true; this.setState({ str: str }); @@ -7014,35 +7349,6 @@ var Header = { } this.__emit('keydown', e); }, - onClear: function onClear() { - this.__emit('clear'); - this.setState({ str: '' }); - }, - getClearButton: function getClearButton() { - var h = this.$createElement; - var prefixCls = this.prefixCls, - allowEmpty = this.allowEmpty, - clearText = this.clearText; - - var clearIcon = (0, _propsUtil.getComponentFromProp)(this, 'clearIcon'); - if (!allowEmpty) { - return null; - } - return h( - 'a', - { - attrs: { - role: 'button', - - title: clearText - }, - 'class': prefixCls + '-clear-btn', on: { - 'mousedown': this.onClear - } - }, - [clearIcon || h('i', { 'class': prefixCls + '-clear-btn-icon' })] - ); - }, getProtoValue: function getProtoValue() { return this.value || this.defaultOpenValue; }, @@ -7052,11 +7358,10 @@ var Header = { placeholder = this.placeholder, inputReadOnly = this.inputReadOnly, invalid = this.invalid, - str = this.str, - showStr = this.showStr; + str = this.str; var invalidClass = invalid ? prefixCls + '-input-invalid' : ''; - return h('input', { + return h('input', (0, _babelHelperVueJsxMergeProps2['default'])([{ 'class': prefixCls + '-input ' + invalidClass, ref: 'input', on: { @@ -7064,14 +7369,18 @@ var Header = { 'input': this.onInputChange }, domProps: { - 'value': showStr ? str : '' + 'value': str }, attrs: { placeholder: placeholder, readOnly: !!inputReadOnly } - }); + }, { + directives: [{ + name: 'ant-input' + }] + }])); } }, @@ -7082,7 +7391,7 @@ var Header = { return h( 'div', { 'class': prefixCls + '-input-wrap' }, - [this.getInput(), this.getClearButton()] + [this.getInput()] ); } }; @@ -7105,6 +7414,10 @@ Object.defineProperty(exports, "__esModule", { value: true }); +var _moment = __webpack_require__(/*! moment */ "./node_modules/moment/moment.js"); + +var _moment2 = _interopRequireDefault(_moment); + var _vueTypes = __webpack_require__(/*! ../_util/vue-types */ "./node_modules/ant-design-vue/lib/_util/vue-types/index.js"); var _vueTypes2 = _interopRequireDefault(_vueTypes); @@ -7121,10 +7434,6 @@ var _Combobox = __webpack_require__(/*! ./Combobox */ "./node_modules/ant-design var _Combobox2 = _interopRequireDefault(_Combobox); -var _moment = __webpack_require__(/*! moment */ "./node_modules/moment/moment.js"); - -var _moment2 = _interopRequireDefault(_moment); - var _propsUtil = __webpack_require__(/*! ../_util/props-util */ "./node_modules/ant-design-vue/lib/_util/props-util.js"); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } @@ -7142,6 +7451,20 @@ function generateOptions(length, disabledOptions, hideDisabledOptions) { } return arr; } + +function toNearestValidTime(time, hourOptions, minuteOptions, secondOptions) { + var hour = hourOptions.slice().sort(function (a, b) { + return Math.abs(time.hour() - a) - Math.abs(time.hour() - b); + })[0]; + var minute = minuteOptions.slice().sort(function (a, b) { + return Math.abs(time.minute() - a) - Math.abs(time.minute() - b); + })[0]; + var second = secondOptions.slice().sort(function (a, b) { + return Math.abs(time.second() - a) - Math.abs(time.second() - b); + })[0]; + return (0, _moment2['default'])(hour + ':' + minute + ':' + second, 'HH:mm:ss'); +} + var Panel = { mixins: [_BaseMixin2['default']], props: { @@ -7182,8 +7505,7 @@ var Panel = { return { sValue: this.value, selectionRange: [], - currentSelectPanel: '', - showStr: true + currentSelectPanel: '' }; }, @@ -7191,12 +7513,7 @@ var Panel = { value: function value(val) { if (val) { this.setState({ - sValue: val, - showStr: true - }); - } else { - this.setState({ - showStr: false + sValue: val }); } } @@ -7207,6 +7524,9 @@ var Panel = { this.setState({ sValue: newValue }); this.__emit('change', newValue); }, + onAmPmChange: function onAmPmChange(ampm) { + this.__emit('amPmChange', ampm); + }, onCurrentSelectPanelChange: function onCurrentSelectPanelChange(currentSelectPanel) { this.setState({ currentSelectPanel: currentSelectPanel }); }, @@ -7265,7 +7585,6 @@ var Panel = { inputReadOnly = this.inputReadOnly, sValue = this.sValue, currentSelectPanel = this.currentSelectPanel, - showStr = this.showStr, _$listeners = this.$listeners, $listeners = _$listeners === undefined ? {} : _$listeners; @@ -7284,7 +7603,7 @@ var Panel = { var hourOptions = generateOptions(24, disabledHourOptions, hideDisabledOptions, hourStep); var minuteOptions = generateOptions(60, disabledMinuteOptions, hideDisabledOptions, minuteStep); var secondOptions = generateOptions(60, disabledSecondOptions, hideDisabledOptions, secondStep); - + var validDefaultOpenValue = toNearestValidTime(defaultOpenValue, hourOptions, minuteOptions, secondOptions); return h( 'div', { 'class': prefixCls + '-inner' }, @@ -7292,7 +7611,7 @@ var Panel = { attrs: { clearText: clearText, prefixCls: prefixCls, - defaultOpenValue: defaultOpenValue, + defaultOpenValue: validDefaultOpenValue, value: sValue, currentSelectPanel: currentSelectPanel, @@ -7309,20 +7628,18 @@ var Panel = { focusOnOpen: focusOnOpen, inputReadOnly: inputReadOnly, - showStr: showStr, clearIcon: clearIcon }, on: { 'esc': esc, 'change': this.onChange, - 'clear': clear, 'keydown': keydown } }), h(_Combobox2['default'], { attrs: { prefixCls: prefixCls, value: sValue, - defaultOpenValue: defaultOpenValue, + defaultOpenValue: validDefaultOpenValue, format: format, showHour: showHour, @@ -7340,6 +7657,7 @@ var Panel = { }, on: { 'change': this.onChange, + 'amPmChange': this.onAmPmChange, 'currentSelectPanelChange': this.onCurrentSelectPanelChange } }), addon(this)] @@ -7397,7 +7715,7 @@ var scrollTo = function scrollTo(element, to, duration) { var perTick = difference / duration * 10; requestAnimationFrame(function () { - element.scrollTop = element.scrollTop + perTick; + element.scrollTop += perTick; if (element.scrollTop === to) return; scrollTo(element, to, duration - 10); }); @@ -7455,21 +7773,28 @@ var Select = { var _classnames; var cls = (0, _classnames3['default'])((_classnames = {}, (0, _defineProperty3['default'])(_classnames, prefixCls + '-select-option-selected', selectedIndex === index), (0, _defineProperty3['default'])(_classnames, prefixCls + '-select-option-disabled', item.disabled), _classnames)); - var onClick = noop; - if (!item.disabled) { - onClick = _this3.onSelect.bind(_this3, item.value); - } + var onClick = item.disabled ? noop : function () { + _this3.onSelect(item.value); + }; return h( 'li', - { 'class': cls, key: index, on: { + { + attrs: { role: 'button', disabled: item.disabled }, + on: { 'click': onClick }, - attrs: { disabled: item.disabled } - }, + 'class': cls, key: index }, [item.value] ); }); }, + handleMouseEnter: function handleMouseEnter(e) { + this.setState({ active: true }); + this.__emit('mouseenter', e); + }, + handleMouseLeave: function handleMouseLeave() { + this.setState({ active: false }); + }, scrollToSelected: function scrollToSelected(duration) { // move to selected item var select = this.$el; @@ -7484,13 +7809,6 @@ var Select = { var topOption = list.children[index]; var to = topOption.offsetTop; scrollTo(select, to, duration); - }, - handleMouseEnter: function handleMouseEnter(e) { - this.setState({ active: true }); - this.__emit('mouseenter', e); - }, - handleMouseLeave: function handleMouseLeave() { - this.setState({ active: false }); } }, @@ -7498,14 +7816,15 @@ var Select = { var _cls; var h = arguments[0]; + var prefixCls = this.prefixCls, + options = this.options, + active = this.active; - if (this.options.length === 0) { + if (options.length === 0) { return null; } - var prefixCls = this.prefixCls; - - var cls = (_cls = {}, (0, _defineProperty3['default'])(_cls, prefixCls + '-select', 1), (0, _defineProperty3['default'])(_cls, prefixCls + '-select-active', this.active), _cls); + var cls = (_cls = {}, (0, _defineProperty3['default'])(_cls, prefixCls + '-select', 1), (0, _defineProperty3['default'])(_cls, prefixCls + '-select-active', active), _cls); return h( 'div', @@ -7541,6 +7860,10 @@ Object.defineProperty(exports, "__esModule", { value: true }); +var _moment = __webpack_require__(/*! moment */ "./node_modules/moment/moment.js"); + +var _moment2 = _interopRequireDefault(_moment); + var _vueTypes = __webpack_require__(/*! ../_util/vue-types */ "./node_modules/ant-design-vue/lib/_util/vue-types/index.js"); var _vueTypes2 = _interopRequireDefault(_vueTypes); @@ -7549,6 +7872,10 @@ var _BaseMixin = __webpack_require__(/*! ../_util/BaseMixin */ "./node_modules/a var _BaseMixin2 = _interopRequireDefault(_BaseMixin); +var _propsUtil = __webpack_require__(/*! ../_util/props-util */ "./node_modules/ant-design-vue/lib/_util/props-util.js"); + +var _vnode = __webpack_require__(/*! ../_util/vnode */ "./node_modules/ant-design-vue/lib/_util/vnode.js"); + var _vcTrigger = __webpack_require__(/*! ../vc-trigger */ "./node_modules/ant-design-vue/lib/vc-trigger/index.js"); var _vcTrigger2 = _interopRequireDefault(_vcTrigger); @@ -7561,12 +7888,6 @@ var _placements = __webpack_require__(/*! ./placements */ "./node_modules/ant-de var _placements2 = _interopRequireDefault(_placements); -var _moment = __webpack_require__(/*! moment */ "./node_modules/moment/moment.js"); - -var _moment2 = _interopRequireDefault(_moment); - -var _propsUtil = __webpack_require__(/*! ../_util/props-util */ "./node_modules/ant-design-vue/lib/_util/props-util.js"); - function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } function noop() {} @@ -7600,11 +7921,13 @@ exports['default'] = { showMinute: _vueTypes2['default'].bool, showSecond: _vueTypes2['default'].bool, popupClassName: _vueTypes2['default'].string, + popupStyle: _vueTypes2['default'].object, disabledHours: _vueTypes2['default'].func, disabledMinutes: _vueTypes2['default'].func, disabledSeconds: _vueTypes2['default'].func, hideDisabledOptions: _vueTypes2['default'].bool, // onChange: PropTypes.func, + // onAmPmChange: PropTypes.func, // onOpen: PropTypes.func, // onClose: PropTypes.func, // onFocus: PropTypes.func, @@ -7628,6 +7951,7 @@ exports['default'] = { defaultOpen: false, inputReadOnly: false, popupClassName: '', + popupStyle: {}, align: {}, id: '', allowEmpty: true, @@ -7685,7 +8009,11 @@ exports['default'] = { onPanelChange: function onPanelChange(value) { this.setValue(value); }, - onPanelClear: function onPanelClear() { + onAmPmChange: function onAmPmChange(ampm) { + this.__emit('amPmChange', ampm); + }, + onClear: function onClear(event) { + event.stopPropagation(); this.setValue(null); this.setOpen(false); }, @@ -7791,7 +8119,7 @@ exports['default'] = { }, ref: 'panel', on: { 'change': this.onPanelChange, - 'clear': this.onPanelClear, + 'amPmChange': this.onAmPmChange, 'esc': this.onEsc, 'keydown': onKeyDown2 } @@ -7848,6 +8176,51 @@ exports['default'] = { }, onBlur: function onBlur(e) { this.__emit('blur', e); + }, + renderClearButton: function renderClearButton() { + var _this2 = this; + + var h = this.$createElement; + var sValue = this.sValue; + var _$props = this.$props, + prefixCls = _$props.prefixCls, + allowEmpty = _$props.allowEmpty, + clearText = _$props.clearText; + + if (!allowEmpty || !sValue) { + return null; + } + var clearIcon = (0, _propsUtil.getComponentFromProp)(this, 'clearIcon'); + if ((0, _propsUtil.isValidElement)(clearIcon)) { + var _ref = (0, _propsUtil.getEvents)(clearIcon) || {}, + _click = _ref.click; + + return (0, _vnode.cloneElement)(clearIcon, { + on: { + click: function click() { + if (_click) _click.apply(undefined, arguments); + _this2.onClear.apply(_this2, arguments); + } + } + }); + } + + return h( + 'a', + { + attrs: { + role: 'button', + + title: clearText, + + tabIndex: 0 + }, + 'class': prefixCls + '-clear', on: { + 'click': this.onClear + } + }, + [clearIcon || h('i', { 'class': prefixCls + '-clear-icon' })] + ); } }, @@ -7868,7 +8241,8 @@ exports['default'] = { sOpen = this.sOpen, sValue = this.sValue, onFocus = this.onFocus, - onBlur = this.onBlur; + onBlur = this.onBlur, + popupStyle = this.popupStyle; var popupClassName = this.getPopupClassName(); var inputIcon = (0, _propsUtil.getComponentFromProp)(this, 'inputIcon'); @@ -7878,6 +8252,7 @@ exports['default'] = { attrs: { prefixCls: prefixCls + '-panel', popupClassName: popupClassName, + popupStyle: popupStyle, popupAlign: align, builtinPlacements: _placements2['default'], popupPlacement: placement, @@ -7921,7 +8296,7 @@ exports['default'] = { domProps: { 'value': sValue && sValue.format(this.getFormat()) || '' } - }), inputIcon || h('span', { 'class': prefixCls + '-icon' })] + }), inputIcon || h('span', { 'class': prefixCls + '-icon' }), this.renderClearButton()] )] ); } diff --git a/public/avored-admin/js/chunk/30.js b/public/avored-admin/js/chunk/30.js index dc6658817..d601f5fc7 100644 --- a/public/avored-admin/js/chunk/30.js +++ b/public/avored-admin/js/chunk/30.js @@ -1,9 +1,9 @@ (window["webpackJsonp"] = window["webpackJsonp"] || []).push([[30],{ -/***/ "./node_modules/babel-loader/lib/index.js?!./node_modules/vue-loader/lib/index.js?!./vendor/avored/framework/resources/components/system/admin-user/AdminUserTable.vue?vue&type=script&lang=js&": -/*!****************************************************************************************************************************************************************************************************************!*\ - !*** ./node_modules/babel-loader/lib??ref--4-0!./node_modules/vue-loader/lib??vue-loader-options!./vendor/avored/framework/resources/components/system/admin-user/AdminUserTable.vue?vue&type=script&lang=js& ***! - \****************************************************************************************************************************************************************************************************************/ +/***/ "./node_modules/babel-loader/lib/index.js?!./node_modules/vue-loader/lib/index.js?!./packages/framework/resources/components/system/PasswordResetPage.vue?vue&type=script&lang=js&": +/*!***************************************************************************************************************************************************************************************************!*\ + !*** ./node_modules/babel-loader/lib??ref--4-0!./node_modules/vue-loader/lib??vue-loader-options!./packages/framework/resources/components/system/PasswordResetPage.vue?vue&type=script&lang=js& ***! + \***************************************************************************************************************************************************************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { @@ -12,94 +12,22 @@ __webpack_require__.r(__webpack_exports__); /* harmony import */ var lodash_isNil__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! lodash/isNil */ "./node_modules/lodash/isNil.js"); /* harmony import */ var lodash_isNil__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(lodash_isNil__WEBPACK_IMPORTED_MODULE_0__); -var columns = [{ - title: 'First Name', - dataIndex: 'first_name', - key: 'first_name', - sorter: true -}, { - title: 'Last Name', - dataIndex: 'last_name', - key: 'last_name', - sorter: true -}, { - title: 'Email', - dataIndex: 'email', - key: 'email', - sorter: true -}, { - title: 'Action', - key: 'action', - scopedSlots: { - customRender: 'action' - }, - sorter: false, - width: "10%" -}]; /* harmony default export */ __webpack_exports__["default"] = ({ - props: ['adminUsers', 'baseUrl'], data: function data() { return { - columns: columns + form: this.$form.createForm(this), + loadingSubmitBtn: false }; }, methods: { - handleTableChange: function handleTableChange(pagination, filters, sorter) { - this.adminUsers.sort(function (a, b) { - var columnKey = sorter.columnKey; - var order = sorter.order; - - if (lodash_isNil__WEBPACK_IMPORTED_MODULE_0___default()(a[columnKey])) { - a[columnKey] = ''; - } - - if (lodash_isNil__WEBPACK_IMPORTED_MODULE_0___default()(b[columnKey])) { - b[columnKey] = ''; - } - - if (order === 'ascend') { - if (a[columnKey] < b[columnKey]) return -1; - if (a[columnKey] > b[columnKey]) return 1; - } - - if (order === 'descend') { - if (a[columnKey] > b[columnKey]) return -1; - if (a[columnKey] < b[columnKey]) return 1; - } - - return 0; - }); - }, - getEditUrl: function getEditUrl(record) { - return this.baseUrl + '/admin-user/' + record.id + '/edit'; - }, - getDeleteUrl: function getDeleteUrl(record) { - return this.baseUrl + '/admin-user/' + record.id; - }, - deleteRole: function deleteRole(record) { - var url = this.baseUrl + '/admin-user/' + record.id; - var app = this; - this.$confirm({ - title: 'Do you Want to delete ' + record.name + ' admin-user?', - okType: 'danger', - onOk: function onOk() { - axios["delete"](url).then(function (response) { - if (response.data.success === true) { - app.$notification.error({ - key: 'admin.user.delete.success', - message: response.data.message - }); - } - - window.location.reload(); - })["catch"](function (errors) { - app.$notification.error({ - key: 'admin.user.delete.error', - message: errors.message - }); - }); - }, - onCancel: function onCancel() {// Do nothing + handleSubmit: function handleSubmit(e) { + var _this = this; + + this.loadingSubmitBtn = true; + this.form.validateFields(function (err, values) { + if (!lodash_isNil__WEBPACK_IMPORTED_MODULE_0___default()(err)) { + _this.loadingSubmitBtn = false; + e.preventDefault(); } }); } @@ -108,17 +36,17 @@ var columns = [{ /***/ }), -/***/ "./vendor/avored/framework/resources/components/system/admin-user/AdminUserTable.vue": -/*!*******************************************************************************************!*\ - !*** ./vendor/avored/framework/resources/components/system/admin-user/AdminUserTable.vue ***! - \*******************************************************************************************/ +/***/ "./packages/framework/resources/components/system/PasswordResetPage.vue": +/*!******************************************************************************!*\ + !*** ./packages/framework/resources/components/system/PasswordResetPage.vue ***! + \******************************************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); -/* harmony import */ var _AdminUserTable_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./AdminUserTable.vue?vue&type=script&lang=js& */ "./vendor/avored/framework/resources/components/system/admin-user/AdminUserTable.vue?vue&type=script&lang=js&"); -/* empty/unused harmony star reexport *//* harmony import */ var _node_modules_vue_loader_lib_runtime_componentNormalizer_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../../../../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js */ "./node_modules/vue-loader/lib/runtime/componentNormalizer.js"); +/* harmony import */ var _PasswordResetPage_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./PasswordResetPage.vue?vue&type=script&lang=js& */ "./packages/framework/resources/components/system/PasswordResetPage.vue?vue&type=script&lang=js&"); +/* empty/unused harmony star reexport *//* harmony import */ var _node_modules_vue_loader_lib_runtime_componentNormalizer_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js */ "./node_modules/vue-loader/lib/runtime/componentNormalizer.js"); var render, staticRenderFns @@ -127,7 +55,7 @@ var render, staticRenderFns /* normalize component */ var component = Object(_node_modules_vue_loader_lib_runtime_componentNormalizer_js__WEBPACK_IMPORTED_MODULE_1__["default"])( - _AdminUserTable_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0__["default"], + _PasswordResetPage_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0__["default"], render, staticRenderFns, false, @@ -139,22 +67,22 @@ var component = Object(_node_modules_vue_loader_lib_runtime_componentNormalizer_ /* hot reload */ if (false) { var api; } -component.options.__file = "vendor/avored/framework/resources/components/system/admin-user/AdminUserTable.vue" +component.options.__file = "packages/framework/resources/components/system/PasswordResetPage.vue" /* harmony default export */ __webpack_exports__["default"] = (component.exports); /***/ }), -/***/ "./vendor/avored/framework/resources/components/system/admin-user/AdminUserTable.vue?vue&type=script&lang=js&": -/*!********************************************************************************************************************!*\ - !*** ./vendor/avored/framework/resources/components/system/admin-user/AdminUserTable.vue?vue&type=script&lang=js& ***! - \********************************************************************************************************************/ +/***/ "./packages/framework/resources/components/system/PasswordResetPage.vue?vue&type=script&lang=js&": +/*!*******************************************************************************************************!*\ + !*** ./packages/framework/resources/components/system/PasswordResetPage.vue?vue&type=script&lang=js& ***! + \*******************************************************************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); -/* harmony import */ var _node_modules_babel_loader_lib_index_js_ref_4_0_node_modules_vue_loader_lib_index_js_vue_loader_options_AdminUserTable_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! -!../../../../../../../node_modules/babel-loader/lib??ref--4-0!../../../../../../../node_modules/vue-loader/lib??vue-loader-options!./AdminUserTable.vue?vue&type=script&lang=js& */ "./node_modules/babel-loader/lib/index.js?!./node_modules/vue-loader/lib/index.js?!./vendor/avored/framework/resources/components/system/admin-user/AdminUserTable.vue?vue&type=script&lang=js&"); -/* empty/unused harmony star reexport */ /* harmony default export */ __webpack_exports__["default"] = (_node_modules_babel_loader_lib_index_js_ref_4_0_node_modules_vue_loader_lib_index_js_vue_loader_options_AdminUserTable_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0__["default"]); +/* harmony import */ var _node_modules_babel_loader_lib_index_js_ref_4_0_node_modules_vue_loader_lib_index_js_vue_loader_options_PasswordResetPage_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! -!../../../../../node_modules/babel-loader/lib??ref--4-0!../../../../../node_modules/vue-loader/lib??vue-loader-options!./PasswordResetPage.vue?vue&type=script&lang=js& */ "./node_modules/babel-loader/lib/index.js?!./node_modules/vue-loader/lib/index.js?!./packages/framework/resources/components/system/PasswordResetPage.vue?vue&type=script&lang=js&"); +/* empty/unused harmony star reexport */ /* harmony default export */ __webpack_exports__["default"] = (_node_modules_babel_loader_lib_index_js_ref_4_0_node_modules_vue_loader_lib_index_js_vue_loader_options_PasswordResetPage_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0__["default"]); /***/ }) diff --git a/public/avored-admin/js/chunk/31.js b/public/avored-admin/js/chunk/31.js index c2c3c9d7d..57dddbd6b 100644 --- a/public/avored-admin/js/chunk/31.js +++ b/public/avored-admin/js/chunk/31.js @@ -1,49 +1,124 @@ (window["webpackJsonp"] = window["webpackJsonp"] || []).push([[31],{ -/***/ "./node_modules/babel-loader/lib/index.js?!./node_modules/vue-loader/lib/index.js?!./vendor/avored/framework/resources/components/system/configuration/ConfigurationSave.vue?vue&type=script&lang=js&": -/*!**********************************************************************************************************************************************************************************************************************!*\ - !*** ./node_modules/babel-loader/lib??ref--4-0!./node_modules/vue-loader/lib??vue-loader-options!./vendor/avored/framework/resources/components/system/configuration/ConfigurationSave.vue?vue&type=script&lang=js& ***! - \**********************************************************************************************************************************************************************************************************************/ +/***/ "./node_modules/babel-loader/lib/index.js?!./node_modules/vue-loader/lib/index.js?!./packages/framework/resources/components/system/admin-user/AdminUserTable.vue?vue&type=script&lang=js&": +/*!***********************************************************************************************************************************************************************************************************!*\ + !*** ./node_modules/babel-loader/lib??ref--4-0!./node_modules/vue-loader/lib??vue-loader-options!./packages/framework/resources/components/system/admin-user/AdminUserTable.vue?vue&type=script&lang=js& ***! + \***********************************************************************************************************************************************************************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); +/* harmony import */ var lodash_isNil__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! lodash/isNil */ "./node_modules/lodash/isNil.js"); +/* harmony import */ var lodash_isNil__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(lodash_isNil__WEBPACK_IMPORTED_MODULE_0__); + +var columns = [{ + title: 'First Name', + dataIndex: 'first_name', + key: 'first_name', + sorter: true +}, { + title: 'Last Name', + dataIndex: 'last_name', + key: 'last_name', + sorter: true +}, { + title: 'Email', + dataIndex: 'email', + key: 'email', + sorter: true +}, { + title: 'Action', + key: 'action', + scopedSlots: { + customRender: 'action' + }, + sorter: false, + width: "10%" +}]; /* harmony default export */ __webpack_exports__["default"] = ({ - props: ['baseUrl'], + props: ['adminUsers', 'baseUrl'], data: function data() { return { - configurationForm: this.$form.createForm(this) + columns: columns }; }, methods: { - handleSubmit: function handleSubmit(e) { - this.configurationForm.validateFields(function (err, values) { - if (err) { - e.preventDefault(); + handleTableChange: function handleTableChange(pagination, filters, sorter) { + this.adminUsers.sort(function (a, b) { + var columnKey = sorter.columnKey; + var order = sorter.order; + + if (lodash_isNil__WEBPACK_IMPORTED_MODULE_0___default()(a[columnKey])) { + a[columnKey] = ''; + } + + if (lodash_isNil__WEBPACK_IMPORTED_MODULE_0___default()(b[columnKey])) { + b[columnKey] = ''; + } + + if (order === 'ascend') { + if (a[columnKey] < b[columnKey]) return -1; + if (a[columnKey] > b[columnKey]) return 1; + } + + if (order === 'descend') { + if (a[columnKey] > b[columnKey]) return -1; + if (a[columnKey] < b[columnKey]) return 1; } + + return 0; }); }, - cancelConfiguration: function cancelConfiguration() { - window.location = this.baseUrl + '/configuration'; + getEditUrl: function getEditUrl(record) { + return this.baseUrl + '/admin-user/' + record.id + '/edit'; + }, + getDeleteUrl: function getDeleteUrl(record) { + return this.baseUrl + '/admin-user/' + record.id; + }, + deleteRole: function deleteRole(record) { + var url = this.baseUrl + '/admin-user/' + record.id; + var app = this; + this.$confirm({ + title: 'Do you Want to delete ' + record.name + ' admin-user?', + okType: 'danger', + onOk: function onOk() { + axios["delete"](url).then(function (response) { + if (response.data.success === true) { + app.$notification.error({ + key: 'admin.user.delete.success', + message: response.data.message + }); + } + + window.location.reload(); + })["catch"](function (errors) { + app.$notification.error({ + key: 'admin.user.delete.error', + message: errors.message + }); + }); + }, + onCancel: function onCancel() {// Do nothing + } + }); } - }, - mounted: function mounted() {} + } }); /***/ }), -/***/ "./vendor/avored/framework/resources/components/system/configuration/ConfigurationSave.vue": -/*!*************************************************************************************************!*\ - !*** ./vendor/avored/framework/resources/components/system/configuration/ConfigurationSave.vue ***! - \*************************************************************************************************/ +/***/ "./packages/framework/resources/components/system/admin-user/AdminUserTable.vue": +/*!**************************************************************************************!*\ + !*** ./packages/framework/resources/components/system/admin-user/AdminUserTable.vue ***! + \**************************************************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); -/* harmony import */ var _ConfigurationSave_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./ConfigurationSave.vue?vue&type=script&lang=js& */ "./vendor/avored/framework/resources/components/system/configuration/ConfigurationSave.vue?vue&type=script&lang=js&"); -/* empty/unused harmony star reexport *//* harmony import */ var _node_modules_vue_loader_lib_runtime_componentNormalizer_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../../../../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js */ "./node_modules/vue-loader/lib/runtime/componentNormalizer.js"); +/* harmony import */ var _AdminUserTable_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./AdminUserTable.vue?vue&type=script&lang=js& */ "./packages/framework/resources/components/system/admin-user/AdminUserTable.vue?vue&type=script&lang=js&"); +/* empty/unused harmony star reexport *//* harmony import */ var _node_modules_vue_loader_lib_runtime_componentNormalizer_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../../../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js */ "./node_modules/vue-loader/lib/runtime/componentNormalizer.js"); var render, staticRenderFns @@ -52,7 +127,7 @@ var render, staticRenderFns /* normalize component */ var component = Object(_node_modules_vue_loader_lib_runtime_componentNormalizer_js__WEBPACK_IMPORTED_MODULE_1__["default"])( - _ConfigurationSave_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0__["default"], + _AdminUserTable_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0__["default"], render, staticRenderFns, false, @@ -64,22 +139,22 @@ var component = Object(_node_modules_vue_loader_lib_runtime_componentNormalizer_ /* hot reload */ if (false) { var api; } -component.options.__file = "vendor/avored/framework/resources/components/system/configuration/ConfigurationSave.vue" +component.options.__file = "packages/framework/resources/components/system/admin-user/AdminUserTable.vue" /* harmony default export */ __webpack_exports__["default"] = (component.exports); /***/ }), -/***/ "./vendor/avored/framework/resources/components/system/configuration/ConfigurationSave.vue?vue&type=script&lang=js&": -/*!**************************************************************************************************************************!*\ - !*** ./vendor/avored/framework/resources/components/system/configuration/ConfigurationSave.vue?vue&type=script&lang=js& ***! - \**************************************************************************************************************************/ +/***/ "./packages/framework/resources/components/system/admin-user/AdminUserTable.vue?vue&type=script&lang=js&": +/*!***************************************************************************************************************!*\ + !*** ./packages/framework/resources/components/system/admin-user/AdminUserTable.vue?vue&type=script&lang=js& ***! + \***************************************************************************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); -/* harmony import */ var _node_modules_babel_loader_lib_index_js_ref_4_0_node_modules_vue_loader_lib_index_js_vue_loader_options_ConfigurationSave_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! -!../../../../../../../node_modules/babel-loader/lib??ref--4-0!../../../../../../../node_modules/vue-loader/lib??vue-loader-options!./ConfigurationSave.vue?vue&type=script&lang=js& */ "./node_modules/babel-loader/lib/index.js?!./node_modules/vue-loader/lib/index.js?!./vendor/avored/framework/resources/components/system/configuration/ConfigurationSave.vue?vue&type=script&lang=js&"); -/* empty/unused harmony star reexport */ /* harmony default export */ __webpack_exports__["default"] = (_node_modules_babel_loader_lib_index_js_ref_4_0_node_modules_vue_loader_lib_index_js_vue_loader_options_ConfigurationSave_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0__["default"]); +/* harmony import */ var _node_modules_babel_loader_lib_index_js_ref_4_0_node_modules_vue_loader_lib_index_js_vue_loader_options_AdminUserTable_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! -!../../../../../../node_modules/babel-loader/lib??ref--4-0!../../../../../../node_modules/vue-loader/lib??vue-loader-options!./AdminUserTable.vue?vue&type=script&lang=js& */ "./node_modules/babel-loader/lib/index.js?!./node_modules/vue-loader/lib/index.js?!./packages/framework/resources/components/system/admin-user/AdminUserTable.vue?vue&type=script&lang=js&"); +/* empty/unused harmony star reexport */ /* harmony default export */ __webpack_exports__["default"] = (_node_modules_babel_loader_lib_index_js_ref_4_0_node_modules_vue_loader_lib_index_js_vue_loader_options_AdminUserTable_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0__["default"]); /***/ }) diff --git a/public/avored-admin/js/chunk/32.js b/public/avored-admin/js/chunk/32.js index ff7fe7556..6b67fb205 100644 --- a/public/avored-admin/js/chunk/32.js +++ b/public/avored-admin/js/chunk/32.js @@ -1,93 +1,49 @@ (window["webpackJsonp"] = window["webpackJsonp"] || []).push([[32],{ -/***/ "./node_modules/babel-loader/lib/index.js?!./node_modules/vue-loader/lib/index.js?!./vendor/avored/framework/resources/components/system/currency/CurrencyIndex.vue?vue&type=script&lang=js&": -/*!*************************************************************************************************************************************************************************************************************!*\ - !*** ./node_modules/babel-loader/lib??ref--4-0!./node_modules/vue-loader/lib??vue-loader-options!./vendor/avored/framework/resources/components/system/currency/CurrencyIndex.vue?vue&type=script&lang=js& ***! - \*************************************************************************************************************************************************************************************************************/ +/***/ "./node_modules/babel-loader/lib/index.js?!./node_modules/vue-loader/lib/index.js?!./packages/framework/resources/components/system/configuration/ConfigurationSave.vue?vue&type=script&lang=js&": +/*!*****************************************************************************************************************************************************************************************************************!*\ + !*** ./node_modules/babel-loader/lib??ref--4-0!./node_modules/vue-loader/lib??vue-loader-options!./packages/framework/resources/components/system/configuration/ConfigurationSave.vue?vue&type=script&lang=js& ***! + \*****************************************************************************************************************************************************************************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); -var columns = [{ - title: 'Name', - dataIndex: 'name', - key: 'name', - sorter: true -}, { - title: 'Code', - dataIndex: 'code', - key: 'code', - sorter: true -}, { - title: 'Action', - key: 'action', - scopedSlots: { - customRender: 'action' - }, - sorter: false, - width: "10%" -}]; /* harmony default export */ __webpack_exports__["default"] = ({ - props: ['currencies', 'baseUrl'], + props: ['baseUrl'], data: function data() { return { - columns: columns + configurationForm: this.$form.createForm(this) }; }, methods: { - getData: function getData() { - return this.currencies; - }, - getEditUrl: function getEditUrl(record) { - return this.baseUrl + '/currency/' + record.id + '/edit'; - }, - getDeleteUrl: function getDeleteUrl(record) { - return this.baseUrl + '/currency/' + record.id; - }, - deleteCurrency: function deleteCurrency(record) { - var url = this.baseUrl + '/currency/' + record.id; - var app = this; - this.$confirm({ - title: 'Do you Want to delete ' + record.name + ' currency?', - okType: 'danger', - onOk: function onOk() { - axios["delete"](url).then(function (response) { - if (response.data.success === true) { - app.$notification.error({ - key: 'currency.delete.success', - message: response.data.message - }); - } - - window.location.reload(); - })["catch"](function (errors) { - app.$notification.error({ - key: 'currency.delete.error', - message: errors.message - }); - }); - }, - onCancel: function onCancel() {// Do nothing + handleSubmit: function handleSubmit(e) { + this.configurationForm.validateFields(function (err, values) { + if (err) { + e.preventDefault(); } }); + }, + cancelConfiguration: function cancelConfiguration() { + window.location = this.baseUrl + '/configuration'; } - } + }, + mounted: function mounted() {} }); /***/ }), -/***/ "./vendor/avored/framework/resources/components/system/currency/CurrencyIndex.vue": -/*!****************************************************************************************!*\ - !*** ./vendor/avored/framework/resources/components/system/currency/CurrencyIndex.vue ***! - \****************************************************************************************/ +/***/ "./packages/framework/resources/components/system/configuration/ConfigurationSave.vue": +/*!********************************************************************************************!*\ + !*** ./packages/framework/resources/components/system/configuration/ConfigurationSave.vue ***! + \********************************************************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); -/* harmony import */ var _CurrencyIndex_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./CurrencyIndex.vue?vue&type=script&lang=js& */ "./vendor/avored/framework/resources/components/system/currency/CurrencyIndex.vue?vue&type=script&lang=js&"); -/* empty/unused harmony star reexport *//* harmony import */ var _node_modules_vue_loader_lib_runtime_componentNormalizer_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../../../../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js */ "./node_modules/vue-loader/lib/runtime/componentNormalizer.js"); +/* harmony import */ var _ConfigurationSave_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./ConfigurationSave.vue?vue&type=script&lang=js& */ "./packages/framework/resources/components/system/configuration/ConfigurationSave.vue?vue&type=script&lang=js&"); +/* empty/unused harmony star reexport *//* harmony import */ var _node_modules_vue_loader_lib_runtime_componentNormalizer_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../../../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js */ "./node_modules/vue-loader/lib/runtime/componentNormalizer.js"); var render, staticRenderFns @@ -96,7 +52,7 @@ var render, staticRenderFns /* normalize component */ var component = Object(_node_modules_vue_loader_lib_runtime_componentNormalizer_js__WEBPACK_IMPORTED_MODULE_1__["default"])( - _CurrencyIndex_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0__["default"], + _ConfigurationSave_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0__["default"], render, staticRenderFns, false, @@ -108,22 +64,22 @@ var component = Object(_node_modules_vue_loader_lib_runtime_componentNormalizer_ /* hot reload */ if (false) { var api; } -component.options.__file = "vendor/avored/framework/resources/components/system/currency/CurrencyIndex.vue" +component.options.__file = "packages/framework/resources/components/system/configuration/ConfigurationSave.vue" /* harmony default export */ __webpack_exports__["default"] = (component.exports); /***/ }), -/***/ "./vendor/avored/framework/resources/components/system/currency/CurrencyIndex.vue?vue&type=script&lang=js&": -/*!*****************************************************************************************************************!*\ - !*** ./vendor/avored/framework/resources/components/system/currency/CurrencyIndex.vue?vue&type=script&lang=js& ***! - \*****************************************************************************************************************/ +/***/ "./packages/framework/resources/components/system/configuration/ConfigurationSave.vue?vue&type=script&lang=js&": +/*!*********************************************************************************************************************!*\ + !*** ./packages/framework/resources/components/system/configuration/ConfigurationSave.vue?vue&type=script&lang=js& ***! + \*********************************************************************************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); -/* harmony import */ var _node_modules_babel_loader_lib_index_js_ref_4_0_node_modules_vue_loader_lib_index_js_vue_loader_options_CurrencyIndex_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! -!../../../../../../../node_modules/babel-loader/lib??ref--4-0!../../../../../../../node_modules/vue-loader/lib??vue-loader-options!./CurrencyIndex.vue?vue&type=script&lang=js& */ "./node_modules/babel-loader/lib/index.js?!./node_modules/vue-loader/lib/index.js?!./vendor/avored/framework/resources/components/system/currency/CurrencyIndex.vue?vue&type=script&lang=js&"); -/* empty/unused harmony star reexport */ /* harmony default export */ __webpack_exports__["default"] = (_node_modules_babel_loader_lib_index_js_ref_4_0_node_modules_vue_loader_lib_index_js_vue_loader_options_CurrencyIndex_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0__["default"]); +/* harmony import */ var _node_modules_babel_loader_lib_index_js_ref_4_0_node_modules_vue_loader_lib_index_js_vue_loader_options_ConfigurationSave_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! -!../../../../../../node_modules/babel-loader/lib??ref--4-0!../../../../../../node_modules/vue-loader/lib??vue-loader-options!./ConfigurationSave.vue?vue&type=script&lang=js& */ "./node_modules/babel-loader/lib/index.js?!./node_modules/vue-loader/lib/index.js?!./packages/framework/resources/components/system/configuration/ConfigurationSave.vue?vue&type=script&lang=js&"); +/* empty/unused harmony star reexport */ /* harmony default export */ __webpack_exports__["default"] = (_node_modules_babel_loader_lib_index_js_ref_4_0_node_modules_vue_loader_lib_index_js_vue_loader_options_ConfigurationSave_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0__["default"]); /***/ }) diff --git a/public/avored-admin/js/chunk/33.js b/public/avored-admin/js/chunk/33.js index 355296882..b401edde4 100644 --- a/public/avored-admin/js/chunk/33.js +++ b/public/avored-admin/js/chunk/33.js @@ -1,74 +1,93 @@ (window["webpackJsonp"] = window["webpackJsonp"] || []).push([[33],{ -/***/ "./node_modules/babel-loader/lib/index.js?!./node_modules/vue-loader/lib/index.js?!./vendor/avored/framework/resources/components/system/currency/CurrencySave.vue?vue&type=script&lang=js&": -/*!************************************************************************************************************************************************************************************************************!*\ - !*** ./node_modules/babel-loader/lib??ref--4-0!./node_modules/vue-loader/lib??vue-loader-options!./vendor/avored/framework/resources/components/system/currency/CurrencySave.vue?vue&type=script&lang=js& ***! - \************************************************************************************************************************************************************************************************************/ +/***/ "./node_modules/babel-loader/lib/index.js?!./node_modules/vue-loader/lib/index.js?!./packages/framework/resources/components/system/currency/CurrencyIndex.vue?vue&type=script&lang=js&": +/*!********************************************************************************************************************************************************************************************************!*\ + !*** ./node_modules/babel-loader/lib??ref--4-0!./node_modules/vue-loader/lib??vue-loader-options!./packages/framework/resources/components/system/currency/CurrencyIndex.vue?vue&type=script&lang=js& ***! + \********************************************************************************************************************************************************************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); -/* harmony import */ var lodash_isNil__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! lodash/isNil */ "./node_modules/lodash/isNil.js"); -/* harmony import */ var lodash_isNil__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(lodash_isNil__WEBPACK_IMPORTED_MODULE_0__); - +var columns = [{ + title: 'Name', + dataIndex: 'name', + key: 'name', + sorter: true +}, { + title: 'Code', + dataIndex: 'code', + key: 'code', + sorter: true +}, { + title: 'Action', + key: 'action', + scopedSlots: { + customRender: 'action' + }, + sorter: false, + width: "10%" +}]; /* harmony default export */ __webpack_exports__["default"] = ({ - props: ['currency', 'baseUrl'], + props: ['currencies', 'baseUrl'], data: function data() { return { - currencyForm: this.$form.createForm(this), - status: 0, - symbol: '', - code: '' + columns: columns }; }, methods: { - handleSubmit: function handleSubmit() { - this.currencyForm.validateFields(function (err, values) { - if (err) { - e.preventDefault(); - } - }); - }, - isStatusSwitchChange: function isStatusSwitchChange(checked) { - if (checked) { - this.status = 1; - } else { - this.status = 0; - } + getData: function getData() { + return this.currencies; }, - handleSymbolSelectChange: function handleSymbolSelectChange(value) { - this.symbol = value; + getEditUrl: function getEditUrl(record) { + return this.baseUrl + '/currency/' + record.id + '/edit'; }, - handleCodeSelectChange: function handleCodeSelectChange(value) { - this.code = value; + getDeleteUrl: function getDeleteUrl(record) { + return this.baseUrl + '/currency/' + record.id; }, - cancelCurrency: function cancelCurrency() { - window.location = this.baseUrl + '/currency'; - } - }, - mounted: function mounted() { - if (!lodash_isNil__WEBPACK_IMPORTED_MODULE_0___default()(this.currency)) { - this.status = this.currency.status; - this.symbol = this.currency.symbol; - this.code = this.currency.code; + deleteCurrency: function deleteCurrency(record) { + var url = this.baseUrl + '/currency/' + record.id; + var app = this; + this.$confirm({ + title: 'Do you Want to delete ' + record.name + ' currency?', + okType: 'danger', + onOk: function onOk() { + axios["delete"](url).then(function (response) { + if (response.data.success === true) { + app.$notification.error({ + key: 'currency.delete.success', + message: response.data.message + }); + } + + window.location.reload(); + })["catch"](function (errors) { + app.$notification.error({ + key: 'currency.delete.error', + message: errors.message + }); + }); + }, + onCancel: function onCancel() {// Do nothing + } + }); } } }); /***/ }), -/***/ "./vendor/avored/framework/resources/components/system/currency/CurrencySave.vue": -/*!***************************************************************************************!*\ - !*** ./vendor/avored/framework/resources/components/system/currency/CurrencySave.vue ***! - \***************************************************************************************/ +/***/ "./packages/framework/resources/components/system/currency/CurrencyIndex.vue": +/*!***********************************************************************************!*\ + !*** ./packages/framework/resources/components/system/currency/CurrencyIndex.vue ***! + \***********************************************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); -/* harmony import */ var _CurrencySave_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./CurrencySave.vue?vue&type=script&lang=js& */ "./vendor/avored/framework/resources/components/system/currency/CurrencySave.vue?vue&type=script&lang=js&"); -/* empty/unused harmony star reexport *//* harmony import */ var _node_modules_vue_loader_lib_runtime_componentNormalizer_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../../../../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js */ "./node_modules/vue-loader/lib/runtime/componentNormalizer.js"); +/* harmony import */ var _CurrencyIndex_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./CurrencyIndex.vue?vue&type=script&lang=js& */ "./packages/framework/resources/components/system/currency/CurrencyIndex.vue?vue&type=script&lang=js&"); +/* empty/unused harmony star reexport *//* harmony import */ var _node_modules_vue_loader_lib_runtime_componentNormalizer_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../../../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js */ "./node_modules/vue-loader/lib/runtime/componentNormalizer.js"); var render, staticRenderFns @@ -77,7 +96,7 @@ var render, staticRenderFns /* normalize component */ var component = Object(_node_modules_vue_loader_lib_runtime_componentNormalizer_js__WEBPACK_IMPORTED_MODULE_1__["default"])( - _CurrencySave_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0__["default"], + _CurrencyIndex_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0__["default"], render, staticRenderFns, false, @@ -89,22 +108,22 @@ var component = Object(_node_modules_vue_loader_lib_runtime_componentNormalizer_ /* hot reload */ if (false) { var api; } -component.options.__file = "vendor/avored/framework/resources/components/system/currency/CurrencySave.vue" +component.options.__file = "packages/framework/resources/components/system/currency/CurrencyIndex.vue" /* harmony default export */ __webpack_exports__["default"] = (component.exports); /***/ }), -/***/ "./vendor/avored/framework/resources/components/system/currency/CurrencySave.vue?vue&type=script&lang=js&": -/*!****************************************************************************************************************!*\ - !*** ./vendor/avored/framework/resources/components/system/currency/CurrencySave.vue?vue&type=script&lang=js& ***! - \****************************************************************************************************************/ +/***/ "./packages/framework/resources/components/system/currency/CurrencyIndex.vue?vue&type=script&lang=js&": +/*!************************************************************************************************************!*\ + !*** ./packages/framework/resources/components/system/currency/CurrencyIndex.vue?vue&type=script&lang=js& ***! + \************************************************************************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); -/* harmony import */ var _node_modules_babel_loader_lib_index_js_ref_4_0_node_modules_vue_loader_lib_index_js_vue_loader_options_CurrencySave_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! -!../../../../../../../node_modules/babel-loader/lib??ref--4-0!../../../../../../../node_modules/vue-loader/lib??vue-loader-options!./CurrencySave.vue?vue&type=script&lang=js& */ "./node_modules/babel-loader/lib/index.js?!./node_modules/vue-loader/lib/index.js?!./vendor/avored/framework/resources/components/system/currency/CurrencySave.vue?vue&type=script&lang=js&"); -/* empty/unused harmony star reexport */ /* harmony default export */ __webpack_exports__["default"] = (_node_modules_babel_loader_lib_index_js_ref_4_0_node_modules_vue_loader_lib_index_js_vue_loader_options_CurrencySave_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0__["default"]); +/* harmony import */ var _node_modules_babel_loader_lib_index_js_ref_4_0_node_modules_vue_loader_lib_index_js_vue_loader_options_CurrencyIndex_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! -!../../../../../../node_modules/babel-loader/lib??ref--4-0!../../../../../../node_modules/vue-loader/lib??vue-loader-options!./CurrencyIndex.vue?vue&type=script&lang=js& */ "./node_modules/babel-loader/lib/index.js?!./node_modules/vue-loader/lib/index.js?!./packages/framework/resources/components/system/currency/CurrencyIndex.vue?vue&type=script&lang=js&"); +/* empty/unused harmony star reexport */ /* harmony default export */ __webpack_exports__["default"] = (_node_modules_babel_loader_lib_index_js_ref_4_0_node_modules_vue_loader_lib_index_js_vue_loader_options_CurrencyIndex_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0__["default"]); /***/ }) diff --git a/public/avored-admin/js/chunk/34.js b/public/avored-admin/js/chunk/34.js index 115967642..1b8df7f98 100644 --- a/public/avored-admin/js/chunk/34.js +++ b/public/avored-admin/js/chunk/34.js @@ -1,9 +1,9 @@ (window["webpackJsonp"] = window["webpackJsonp"] || []).push([[34],{ -/***/ "./node_modules/babel-loader/lib/index.js?!./node_modules/vue-loader/lib/index.js?!./vendor/avored/framework/resources/components/system/language/LanguageSave.vue?vue&type=script&lang=js&": -/*!************************************************************************************************************************************************************************************************************!*\ - !*** ./node_modules/babel-loader/lib??ref--4-0!./node_modules/vue-loader/lib??vue-loader-options!./vendor/avored/framework/resources/components/system/language/LanguageSave.vue?vue&type=script&lang=js& ***! - \************************************************************************************************************************************************************************************************************/ +/***/ "./node_modules/babel-loader/lib/index.js?!./node_modules/vue-loader/lib/index.js?!./packages/framework/resources/components/system/currency/CurrencySave.vue?vue&type=script&lang=js&": +/*!*******************************************************************************************************************************************************************************************************!*\ + !*** ./node_modules/babel-loader/lib??ref--4-0!./node_modules/vue-loader/lib??vue-loader-options!./packages/framework/resources/components/system/currency/CurrencySave.vue?vue&type=script&lang=js& ***! + \*******************************************************************************************************************************************************************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { @@ -13,52 +13,62 @@ __webpack_require__.r(__webpack_exports__); /* harmony import */ var lodash_isNil__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(lodash_isNil__WEBPACK_IMPORTED_MODULE_0__); /* harmony default export */ __webpack_exports__["default"] = ({ - props: ['language', 'baseUrl'], + props: ['currency', 'baseUrl'], data: function data() { return { - languageForm: this.$form.createForm(this), - is_default: 0 + currencyForm: this.$form.createForm(this), + status: 0, + symbol: '', + code: '' }; }, methods: { handleSubmit: function handleSubmit() { - this.languageForm.validateFields(function (err, values) { + this.currencyForm.validateFields(function (err, values) { if (err) { e.preventDefault(); } }); }, - isLanguageDefaultSwitchChange: function isLanguageDefaultSwitchChange(checked) { + isStatusSwitchChange: function isStatusSwitchChange(checked) { if (checked) { - this.is_default = 1; + this.status = 1; } else { - this.is_default = 0; + this.status = 0; } }, - cancelLanguage: function cancelLanguage() { - window.location = this.baseUrl + '/language'; + handleSymbolSelectChange: function handleSymbolSelectChange(value) { + this.symbol = value; + }, + handleCodeSelectChange: function handleCodeSelectChange(value) { + this.code = value; + }, + cancelCurrency: function cancelCurrency() { + window.location = this.baseUrl + '/currency'; } }, mounted: function mounted() { - if (!lodash_isNil__WEBPACK_IMPORTED_MODULE_0___default()(this.language)) { - this.is_default = this.language.is_default; + if (!lodash_isNil__WEBPACK_IMPORTED_MODULE_0___default()(this.currency)) { + this.status = this.currency.status; + this.symbol = this.currency.symbol; + this.code = this.currency.code; } } }); /***/ }), -/***/ "./vendor/avored/framework/resources/components/system/language/LanguageSave.vue": -/*!***************************************************************************************!*\ - !*** ./vendor/avored/framework/resources/components/system/language/LanguageSave.vue ***! - \***************************************************************************************/ +/***/ "./packages/framework/resources/components/system/currency/CurrencySave.vue": +/*!**********************************************************************************!*\ + !*** ./packages/framework/resources/components/system/currency/CurrencySave.vue ***! + \**********************************************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); -/* harmony import */ var _LanguageSave_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./LanguageSave.vue?vue&type=script&lang=js& */ "./vendor/avored/framework/resources/components/system/language/LanguageSave.vue?vue&type=script&lang=js&"); -/* empty/unused harmony star reexport *//* harmony import */ var _node_modules_vue_loader_lib_runtime_componentNormalizer_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../../../../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js */ "./node_modules/vue-loader/lib/runtime/componentNormalizer.js"); +/* harmony import */ var _CurrencySave_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./CurrencySave.vue?vue&type=script&lang=js& */ "./packages/framework/resources/components/system/currency/CurrencySave.vue?vue&type=script&lang=js&"); +/* empty/unused harmony star reexport *//* harmony import */ var _node_modules_vue_loader_lib_runtime_componentNormalizer_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../../../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js */ "./node_modules/vue-loader/lib/runtime/componentNormalizer.js"); var render, staticRenderFns @@ -67,7 +77,7 @@ var render, staticRenderFns /* normalize component */ var component = Object(_node_modules_vue_loader_lib_runtime_componentNormalizer_js__WEBPACK_IMPORTED_MODULE_1__["default"])( - _LanguageSave_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0__["default"], + _CurrencySave_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0__["default"], render, staticRenderFns, false, @@ -79,22 +89,22 @@ var component = Object(_node_modules_vue_loader_lib_runtime_componentNormalizer_ /* hot reload */ if (false) { var api; } -component.options.__file = "vendor/avored/framework/resources/components/system/language/LanguageSave.vue" +component.options.__file = "packages/framework/resources/components/system/currency/CurrencySave.vue" /* harmony default export */ __webpack_exports__["default"] = (component.exports); /***/ }), -/***/ "./vendor/avored/framework/resources/components/system/language/LanguageSave.vue?vue&type=script&lang=js&": -/*!****************************************************************************************************************!*\ - !*** ./vendor/avored/framework/resources/components/system/language/LanguageSave.vue?vue&type=script&lang=js& ***! - \****************************************************************************************************************/ +/***/ "./packages/framework/resources/components/system/currency/CurrencySave.vue?vue&type=script&lang=js&": +/*!***********************************************************************************************************!*\ + !*** ./packages/framework/resources/components/system/currency/CurrencySave.vue?vue&type=script&lang=js& ***! + \***********************************************************************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); -/* harmony import */ var _node_modules_babel_loader_lib_index_js_ref_4_0_node_modules_vue_loader_lib_index_js_vue_loader_options_LanguageSave_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! -!../../../../../../../node_modules/babel-loader/lib??ref--4-0!../../../../../../../node_modules/vue-loader/lib??vue-loader-options!./LanguageSave.vue?vue&type=script&lang=js& */ "./node_modules/babel-loader/lib/index.js?!./node_modules/vue-loader/lib/index.js?!./vendor/avored/framework/resources/components/system/language/LanguageSave.vue?vue&type=script&lang=js&"); -/* empty/unused harmony star reexport */ /* harmony default export */ __webpack_exports__["default"] = (_node_modules_babel_loader_lib_index_js_ref_4_0_node_modules_vue_loader_lib_index_js_vue_loader_options_LanguageSave_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0__["default"]); +/* harmony import */ var _node_modules_babel_loader_lib_index_js_ref_4_0_node_modules_vue_loader_lib_index_js_vue_loader_options_CurrencySave_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! -!../../../../../../node_modules/babel-loader/lib??ref--4-0!../../../../../../node_modules/vue-loader/lib??vue-loader-options!./CurrencySave.vue?vue&type=script&lang=js& */ "./node_modules/babel-loader/lib/index.js?!./node_modules/vue-loader/lib/index.js?!./packages/framework/resources/components/system/currency/CurrencySave.vue?vue&type=script&lang=js&"); +/* empty/unused harmony star reexport */ /* harmony default export */ __webpack_exports__["default"] = (_node_modules_babel_loader_lib_index_js_ref_4_0_node_modules_vue_loader_lib_index_js_vue_loader_options_CurrencySave_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0__["default"]); /***/ }) diff --git a/public/avored-admin/js/chunk/35.js b/public/avored-admin/js/chunk/35.js index fcd2fe6d5..526ad7007 100644 --- a/public/avored-admin/js/chunk/35.js +++ b/public/avored-admin/js/chunk/35.js @@ -1,9 +1,9 @@ (window["webpackJsonp"] = window["webpackJsonp"] || []).push([[35],{ -/***/ "./node_modules/babel-loader/lib/index.js?!./node_modules/vue-loader/lib/index.js?!./vendor/avored/framework/resources/components/system/language/LanguageTable.vue?vue&type=script&lang=js&": -/*!*************************************************************************************************************************************************************************************************************!*\ - !*** ./node_modules/babel-loader/lib??ref--4-0!./node_modules/vue-loader/lib??vue-loader-options!./vendor/avored/framework/resources/components/system/language/LanguageTable.vue?vue&type=script&lang=js& ***! - \*************************************************************************************************************************************************************************************************************/ +/***/ "./node_modules/babel-loader/lib/index.js?!./node_modules/vue-loader/lib/index.js?!./packages/framework/resources/components/system/language/LanguageSave.vue?vue&type=script&lang=js&": +/*!*******************************************************************************************************************************************************************************************************!*\ + !*** ./node_modules/babel-loader/lib??ref--4-0!./node_modules/vue-loader/lib??vue-loader-options!./packages/framework/resources/components/system/language/LanguageSave.vue?vue&type=script&lang=js& ***! + \*******************************************************************************************************************************************************************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { @@ -12,108 +12,53 @@ __webpack_require__.r(__webpack_exports__); /* harmony import */ var lodash_isNil__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! lodash/isNil */ "./node_modules/lodash/isNil.js"); /* harmony import */ var lodash_isNil__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(lodash_isNil__WEBPACK_IMPORTED_MODULE_0__); -var columns = [{ - title: 'Name', - dataIndex: 'name', - key: 'name', - sorter: true -}, { - title: 'Code', - dataIndex: 'code', - key: 'code', - sorter: true -}, { - title: 'Action', - key: 'action', - scopedSlots: { - customRender: 'action' - }, - sorter: false, - width: "10%" -}]; /* harmony default export */ __webpack_exports__["default"] = ({ - props: ['languages', 'baseUrl'], + props: ['language', 'baseUrl'], data: function data() { return { - columns: columns + languageForm: this.$form.createForm(this), + is_default: 0 }; }, methods: { - handleTableChange: function handleTableChange(pagination, filters, sorter) { - this.languages.sort(function (a, b) { - var columnKey = sorter.columnKey; - var order = sorter.order; - - if (lodash_isNil__WEBPACK_IMPORTED_MODULE_0___default()(a[columnKey])) { - a[columnKey] = ''; - } - - if (lodash_isNil__WEBPACK_IMPORTED_MODULE_0___default()(b[columnKey])) { - b[columnKey] = ''; - } - - if (order === 'ascend') { - if (a[columnKey] < b[columnKey]) return -1; - if (a[columnKey] > b[columnKey]) return 1; - } - - if (order === 'descend') { - if (a[columnKey] > b[columnKey]) return -1; - if (a[columnKey] < b[columnKey]) return 1; + handleSubmit: function handleSubmit() { + this.languageForm.validateFields(function (err, values) { + if (err) { + e.preventDefault(); } - - return 0; }); }, - getEditUrl: function getEditUrl(record) { - return this.baseUrl + '/language/' + record.id + '/edit'; + isLanguageDefaultSwitchChange: function isLanguageDefaultSwitchChange(checked) { + if (checked) { + this.is_default = 1; + } else { + this.is_default = 0; + } }, - getDeleteUrl: function getDeleteUrl(record) { - return this.baseUrl + '/language/' + record.id; - }, - deleteLanguage: function deleteLanguage(record) { - var url = this.baseUrl + '/language/' + record.id; - var app = this; - this.$confirm({ - title: 'Do you Want to delete ' + record.name + ' languages?', - okType: 'danger', - onOk: function onOk() { - axios["delete"](url).then(function (response) { - if (response.data.success === true) { - app.$notification.error({ - key: 'language.delete.success', - message: response.data.message - }); - } - - window.location.reload(); - })["catch"](function (errors) { - app.$notification.error({ - key: 'language.delete.error', - message: errors.message - }); - }); - }, - onCancel: function onCancel() {// Do nothing - } - }); + cancelLanguage: function cancelLanguage() { + window.location = this.baseUrl + '/language'; + } + }, + mounted: function mounted() { + if (!lodash_isNil__WEBPACK_IMPORTED_MODULE_0___default()(this.language)) { + this.is_default = this.language.is_default; } } }); /***/ }), -/***/ "./vendor/avored/framework/resources/components/system/language/LanguageTable.vue": -/*!****************************************************************************************!*\ - !*** ./vendor/avored/framework/resources/components/system/language/LanguageTable.vue ***! - \****************************************************************************************/ +/***/ "./packages/framework/resources/components/system/language/LanguageSave.vue": +/*!**********************************************************************************!*\ + !*** ./packages/framework/resources/components/system/language/LanguageSave.vue ***! + \**********************************************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); -/* harmony import */ var _LanguageTable_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./LanguageTable.vue?vue&type=script&lang=js& */ "./vendor/avored/framework/resources/components/system/language/LanguageTable.vue?vue&type=script&lang=js&"); -/* empty/unused harmony star reexport *//* harmony import */ var _node_modules_vue_loader_lib_runtime_componentNormalizer_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../../../../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js */ "./node_modules/vue-loader/lib/runtime/componentNormalizer.js"); +/* harmony import */ var _LanguageSave_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./LanguageSave.vue?vue&type=script&lang=js& */ "./packages/framework/resources/components/system/language/LanguageSave.vue?vue&type=script&lang=js&"); +/* empty/unused harmony star reexport *//* harmony import */ var _node_modules_vue_loader_lib_runtime_componentNormalizer_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../../../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js */ "./node_modules/vue-loader/lib/runtime/componentNormalizer.js"); var render, staticRenderFns @@ -122,7 +67,7 @@ var render, staticRenderFns /* normalize component */ var component = Object(_node_modules_vue_loader_lib_runtime_componentNormalizer_js__WEBPACK_IMPORTED_MODULE_1__["default"])( - _LanguageTable_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0__["default"], + _LanguageSave_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0__["default"], render, staticRenderFns, false, @@ -134,22 +79,22 @@ var component = Object(_node_modules_vue_loader_lib_runtime_componentNormalizer_ /* hot reload */ if (false) { var api; } -component.options.__file = "vendor/avored/framework/resources/components/system/language/LanguageTable.vue" +component.options.__file = "packages/framework/resources/components/system/language/LanguageSave.vue" /* harmony default export */ __webpack_exports__["default"] = (component.exports); /***/ }), -/***/ "./vendor/avored/framework/resources/components/system/language/LanguageTable.vue?vue&type=script&lang=js&": -/*!*****************************************************************************************************************!*\ - !*** ./vendor/avored/framework/resources/components/system/language/LanguageTable.vue?vue&type=script&lang=js& ***! - \*****************************************************************************************************************/ +/***/ "./packages/framework/resources/components/system/language/LanguageSave.vue?vue&type=script&lang=js&": +/*!***********************************************************************************************************!*\ + !*** ./packages/framework/resources/components/system/language/LanguageSave.vue?vue&type=script&lang=js& ***! + \***********************************************************************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); -/* harmony import */ var _node_modules_babel_loader_lib_index_js_ref_4_0_node_modules_vue_loader_lib_index_js_vue_loader_options_LanguageTable_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! -!../../../../../../../node_modules/babel-loader/lib??ref--4-0!../../../../../../../node_modules/vue-loader/lib??vue-loader-options!./LanguageTable.vue?vue&type=script&lang=js& */ "./node_modules/babel-loader/lib/index.js?!./node_modules/vue-loader/lib/index.js?!./vendor/avored/framework/resources/components/system/language/LanguageTable.vue?vue&type=script&lang=js&"); -/* empty/unused harmony star reexport */ /* harmony default export */ __webpack_exports__["default"] = (_node_modules_babel_loader_lib_index_js_ref_4_0_node_modules_vue_loader_lib_index_js_vue_loader_options_LanguageTable_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0__["default"]); +/* harmony import */ var _node_modules_babel_loader_lib_index_js_ref_4_0_node_modules_vue_loader_lib_index_js_vue_loader_options_LanguageSave_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! -!../../../../../../node_modules/babel-loader/lib??ref--4-0!../../../../../../node_modules/vue-loader/lib??vue-loader-options!./LanguageSave.vue?vue&type=script&lang=js& */ "./node_modules/babel-loader/lib/index.js?!./node_modules/vue-loader/lib/index.js?!./packages/framework/resources/components/system/language/LanguageSave.vue?vue&type=script&lang=js&"); +/* empty/unused harmony star reexport */ /* harmony default export */ __webpack_exports__["default"] = (_node_modules_babel_loader_lib_index_js_ref_4_0_node_modules_vue_loader_lib_index_js_vue_loader_options_LanguageSave_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0__["default"]); /***/ }) diff --git a/public/avored-admin/js/chunk/36.js b/public/avored-admin/js/chunk/36.js index 8607296e9..0806f13fd 100644 --- a/public/avored-admin/js/chunk/36.js +++ b/public/avored-admin/js/chunk/36.js @@ -1,58 +1,119 @@ (window["webpackJsonp"] = window["webpackJsonp"] || []).push([[36],{ -/***/ "./node_modules/babel-loader/lib/index.js?!./node_modules/vue-loader/lib/index.js?!./vendor/avored/framework/resources/components/system/role/RoleSave.vue?vue&type=script&lang=js&": -/*!****************************************************************************************************************************************************************************************************!*\ - !*** ./node_modules/babel-loader/lib??ref--4-0!./node_modules/vue-loader/lib??vue-loader-options!./vendor/avored/framework/resources/components/system/role/RoleSave.vue?vue&type=script&lang=js& ***! - \****************************************************************************************************************************************************************************************************/ +/***/ "./node_modules/babel-loader/lib/index.js?!./node_modules/vue-loader/lib/index.js?!./packages/framework/resources/components/system/language/LanguageTable.vue?vue&type=script&lang=js&": +/*!********************************************************************************************************************************************************************************************************!*\ + !*** ./node_modules/babel-loader/lib??ref--4-0!./node_modules/vue-loader/lib??vue-loader-options!./packages/framework/resources/components/system/language/LanguageTable.vue?vue&type=script&lang=js& ***! + \********************************************************************************************************************************************************************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); +/* harmony import */ var lodash_isNil__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! lodash/isNil */ "./node_modules/lodash/isNil.js"); +/* harmony import */ var lodash_isNil__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(lodash_isNil__WEBPACK_IMPORTED_MODULE_0__); + +var columns = [{ + title: 'Name', + dataIndex: 'name', + key: 'name', + sorter: true +}, { + title: 'Code', + dataIndex: 'code', + key: 'code', + sorter: true +}, { + title: 'Action', + key: 'action', + scopedSlots: { + customRender: 'action' + }, + sorter: false, + width: "10%" +}]; /* harmony default export */ __webpack_exports__["default"] = ({ - props: ['role', 'baseUrl'], + props: ['languages', 'baseUrl'], data: function data() { return { - roleForm: this.$form.createForm(this) + columns: columns }; }, methods: { - handleSubmit: function handleSubmit() { - this.roleForm.validateFields(function (err, values) { - if (err) { - e.preventDefault(); + handleTableChange: function handleTableChange(pagination, filters, sorter) { + this.languages.sort(function (a, b) { + var columnKey = sorter.columnKey; + var order = sorter.order; + + if (lodash_isNil__WEBPACK_IMPORTED_MODULE_0___default()(a[columnKey])) { + a[columnKey] = ''; + } + + if (lodash_isNil__WEBPACK_IMPORTED_MODULE_0___default()(b[columnKey])) { + b[columnKey] = ''; + } + + if (order === 'ascend') { + if (a[columnKey] < b[columnKey]) return -1; + if (a[columnKey] > b[columnKey]) return 1; } + + if (order === 'descend') { + if (a[columnKey] > b[columnKey]) return -1; + if (a[columnKey] < b[columnKey]) return 1; + } + + return 0; }); }, - cancelRole: function cancelRole() { - window.location = this.baseUrl + '/role'; + getEditUrl: function getEditUrl(record) { + return this.baseUrl + '/language/' + record.id + '/edit'; }, - onUserPermissionSwitchChange: function onUserPermissionSwitchChange(checked, key) { - if (checked) { - var ele = document.getElementById('permissions-' + key); - ele.value = 1; - } else { - var _ele = document.getElementById('permissions-' + key); - - _ele.value = 0; - } + getDeleteUrl: function getDeleteUrl(record) { + return this.baseUrl + '/language/' + record.id; + }, + deleteLanguage: function deleteLanguage(record) { + var url = this.baseUrl + '/language/' + record.id; + var app = this; + this.$confirm({ + title: 'Do you Want to delete ' + record.name + ' languages?', + okType: 'danger', + onOk: function onOk() { + axios["delete"](url).then(function (response) { + if (response.data.success === true) { + app.$notification.error({ + key: 'language.delete.success', + message: response.data.message + }); + } + + window.location.reload(); + })["catch"](function (errors) { + app.$notification.error({ + key: 'language.delete.error', + message: errors.message + }); + }); + }, + onCancel: function onCancel() {// Do nothing + } + }); } } }); /***/ }), -/***/ "./vendor/avored/framework/resources/components/system/role/RoleSave.vue": -/*!*******************************************************************************!*\ - !*** ./vendor/avored/framework/resources/components/system/role/RoleSave.vue ***! - \*******************************************************************************/ +/***/ "./packages/framework/resources/components/system/language/LanguageTable.vue": +/*!***********************************************************************************!*\ + !*** ./packages/framework/resources/components/system/language/LanguageTable.vue ***! + \***********************************************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); -/* harmony import */ var _RoleSave_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./RoleSave.vue?vue&type=script&lang=js& */ "./vendor/avored/framework/resources/components/system/role/RoleSave.vue?vue&type=script&lang=js&"); -/* empty/unused harmony star reexport *//* harmony import */ var _node_modules_vue_loader_lib_runtime_componentNormalizer_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../../../../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js */ "./node_modules/vue-loader/lib/runtime/componentNormalizer.js"); +/* harmony import */ var _LanguageTable_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./LanguageTable.vue?vue&type=script&lang=js& */ "./packages/framework/resources/components/system/language/LanguageTable.vue?vue&type=script&lang=js&"); +/* empty/unused harmony star reexport *//* harmony import */ var _node_modules_vue_loader_lib_runtime_componentNormalizer_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../../../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js */ "./node_modules/vue-loader/lib/runtime/componentNormalizer.js"); var render, staticRenderFns @@ -61,7 +122,7 @@ var render, staticRenderFns /* normalize component */ var component = Object(_node_modules_vue_loader_lib_runtime_componentNormalizer_js__WEBPACK_IMPORTED_MODULE_1__["default"])( - _RoleSave_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0__["default"], + _LanguageTable_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0__["default"], render, staticRenderFns, false, @@ -73,22 +134,22 @@ var component = Object(_node_modules_vue_loader_lib_runtime_componentNormalizer_ /* hot reload */ if (false) { var api; } -component.options.__file = "vendor/avored/framework/resources/components/system/role/RoleSave.vue" +component.options.__file = "packages/framework/resources/components/system/language/LanguageTable.vue" /* harmony default export */ __webpack_exports__["default"] = (component.exports); /***/ }), -/***/ "./vendor/avored/framework/resources/components/system/role/RoleSave.vue?vue&type=script&lang=js&": -/*!********************************************************************************************************!*\ - !*** ./vendor/avored/framework/resources/components/system/role/RoleSave.vue?vue&type=script&lang=js& ***! - \********************************************************************************************************/ +/***/ "./packages/framework/resources/components/system/language/LanguageTable.vue?vue&type=script&lang=js&": +/*!************************************************************************************************************!*\ + !*** ./packages/framework/resources/components/system/language/LanguageTable.vue?vue&type=script&lang=js& ***! + \************************************************************************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); -/* harmony import */ var _node_modules_babel_loader_lib_index_js_ref_4_0_node_modules_vue_loader_lib_index_js_vue_loader_options_RoleSave_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! -!../../../../../../../node_modules/babel-loader/lib??ref--4-0!../../../../../../../node_modules/vue-loader/lib??vue-loader-options!./RoleSave.vue?vue&type=script&lang=js& */ "./node_modules/babel-loader/lib/index.js?!./node_modules/vue-loader/lib/index.js?!./vendor/avored/framework/resources/components/system/role/RoleSave.vue?vue&type=script&lang=js&"); -/* empty/unused harmony star reexport */ /* harmony default export */ __webpack_exports__["default"] = (_node_modules_babel_loader_lib_index_js_ref_4_0_node_modules_vue_loader_lib_index_js_vue_loader_options_RoleSave_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0__["default"]); +/* harmony import */ var _node_modules_babel_loader_lib_index_js_ref_4_0_node_modules_vue_loader_lib_index_js_vue_loader_options_LanguageTable_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! -!../../../../../../node_modules/babel-loader/lib??ref--4-0!../../../../../../node_modules/vue-loader/lib??vue-loader-options!./LanguageTable.vue?vue&type=script&lang=js& */ "./node_modules/babel-loader/lib/index.js?!./node_modules/vue-loader/lib/index.js?!./packages/framework/resources/components/system/language/LanguageTable.vue?vue&type=script&lang=js&"); +/* empty/unused harmony star reexport */ /* harmony default export */ __webpack_exports__["default"] = (_node_modules_babel_loader_lib_index_js_ref_4_0_node_modules_vue_loader_lib_index_js_vue_loader_options_LanguageTable_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0__["default"]); /***/ }) diff --git a/public/avored-admin/js/chunk/37.js b/public/avored-admin/js/chunk/37.js index 134ecfbd1..b4aebf9f5 100644 --- a/public/avored-admin/js/chunk/37.js +++ b/public/avored-admin/js/chunk/37.js @@ -1,114 +1,58 @@ (window["webpackJsonp"] = window["webpackJsonp"] || []).push([[37],{ -/***/ "./node_modules/babel-loader/lib/index.js?!./node_modules/vue-loader/lib/index.js?!./vendor/avored/framework/resources/components/system/role/RoleTable.vue?vue&type=script&lang=js&": -/*!*****************************************************************************************************************************************************************************************************!*\ - !*** ./node_modules/babel-loader/lib??ref--4-0!./node_modules/vue-loader/lib??vue-loader-options!./vendor/avored/framework/resources/components/system/role/RoleTable.vue?vue&type=script&lang=js& ***! - \*****************************************************************************************************************************************************************************************************/ +/***/ "./node_modules/babel-loader/lib/index.js?!./node_modules/vue-loader/lib/index.js?!./packages/framework/resources/components/system/role/RoleSave.vue?vue&type=script&lang=js&": +/*!***********************************************************************************************************************************************************************************************!*\ + !*** ./node_modules/babel-loader/lib??ref--4-0!./node_modules/vue-loader/lib??vue-loader-options!./packages/framework/resources/components/system/role/RoleSave.vue?vue&type=script&lang=js& ***! + \***********************************************************************************************************************************************************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); -/* harmony import */ var lodash_isNil__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! lodash/isNil */ "./node_modules/lodash/isNil.js"); -/* harmony import */ var lodash_isNil__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(lodash_isNil__WEBPACK_IMPORTED_MODULE_0__); - -var columns = [{ - title: 'Name', - dataIndex: 'name', - key: 'name', - sorter: true -}, { - title: 'Action', - key: 'action', - scopedSlots: { - customRender: 'action' - }, - sorter: false, - width: "10%" -}]; /* harmony default export */ __webpack_exports__["default"] = ({ - props: ['roles', 'baseUrl'], + props: ['role', 'baseUrl'], data: function data() { return { - columns: columns + roleForm: this.$form.createForm(this) }; }, methods: { - handleTableChange: function handleTableChange(pagination, filters, sorter) { - this.roles.sort(function (a, b) { - var columnKey = sorter.columnKey; - var order = sorter.order; - - if (lodash_isNil__WEBPACK_IMPORTED_MODULE_0___default()(a[columnKey])) { - a[columnKey] = ''; - } - - if (lodash_isNil__WEBPACK_IMPORTED_MODULE_0___default()(b[columnKey])) { - b[columnKey] = ''; - } - - if (order === 'ascend') { - if (a[columnKey] < b[columnKey]) return -1; - if (a[columnKey] > b[columnKey]) return 1; + handleSubmit: function handleSubmit() { + this.roleForm.validateFields(function (err, values) { + if (err) { + e.preventDefault(); } - - if (order === 'descend') { - if (a[columnKey] > b[columnKey]) return -1; - if (a[columnKey] < b[columnKey]) return 1; - } - - return 0; }); }, - getEditUrl: function getEditUrl(record) { - return this.baseUrl + '/role/' + record.id + '/edit'; + cancelRole: function cancelRole() { + window.location = this.baseUrl + '/role'; }, - getDeleteUrl: function getDeleteUrl(record) { - return this.baseUrl + '/role/' + record.id; - }, - deleteRole: function deleteRole(record) { - var url = this.baseUrl + '/role/' + record.id; - var app = this; - this.$confirm({ - title: 'Do you Want to delete ' + record.name + ' role?', - okType: 'danger', - onOk: function onOk() { - axios["delete"](url).then(function (response) { - if (response.data.success === true) { - app.$notification.error({ - key: 'role.delete.success', - message: response.data.message - }); - } - - window.location.reload(); - })["catch"](function (errors) { - app.$notification.error({ - key: 'role.delete.error', - message: errors.message - }); - }); - }, - onCancel: function onCancel() {// Do nothing - } - }); + onUserPermissionSwitchChange: function onUserPermissionSwitchChange(checked, key) { + if (checked) { + var ele = document.getElementById('permissions-' + key); + ele.value = 1; + } else { + var _ele = document.getElementById('permissions-' + key); + + _ele.value = 0; + } } } }); /***/ }), -/***/ "./vendor/avored/framework/resources/components/system/role/RoleTable.vue": -/*!********************************************************************************!*\ - !*** ./vendor/avored/framework/resources/components/system/role/RoleTable.vue ***! - \********************************************************************************/ +/***/ "./packages/framework/resources/components/system/role/RoleSave.vue": +/*!**************************************************************************!*\ + !*** ./packages/framework/resources/components/system/role/RoleSave.vue ***! + \**************************************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); -/* harmony import */ var _RoleTable_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./RoleTable.vue?vue&type=script&lang=js& */ "./vendor/avored/framework/resources/components/system/role/RoleTable.vue?vue&type=script&lang=js&"); -/* empty/unused harmony star reexport *//* harmony import */ var _node_modules_vue_loader_lib_runtime_componentNormalizer_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../../../../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js */ "./node_modules/vue-loader/lib/runtime/componentNormalizer.js"); +/* harmony import */ var _RoleSave_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./RoleSave.vue?vue&type=script&lang=js& */ "./packages/framework/resources/components/system/role/RoleSave.vue?vue&type=script&lang=js&"); +/* empty/unused harmony star reexport *//* harmony import */ var _node_modules_vue_loader_lib_runtime_componentNormalizer_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../../../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js */ "./node_modules/vue-loader/lib/runtime/componentNormalizer.js"); var render, staticRenderFns @@ -117,7 +61,7 @@ var render, staticRenderFns /* normalize component */ var component = Object(_node_modules_vue_loader_lib_runtime_componentNormalizer_js__WEBPACK_IMPORTED_MODULE_1__["default"])( - _RoleTable_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0__["default"], + _RoleSave_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0__["default"], render, staticRenderFns, false, @@ -129,22 +73,22 @@ var component = Object(_node_modules_vue_loader_lib_runtime_componentNormalizer_ /* hot reload */ if (false) { var api; } -component.options.__file = "vendor/avored/framework/resources/components/system/role/RoleTable.vue" +component.options.__file = "packages/framework/resources/components/system/role/RoleSave.vue" /* harmony default export */ __webpack_exports__["default"] = (component.exports); /***/ }), -/***/ "./vendor/avored/framework/resources/components/system/role/RoleTable.vue?vue&type=script&lang=js&": -/*!*********************************************************************************************************!*\ - !*** ./vendor/avored/framework/resources/components/system/role/RoleTable.vue?vue&type=script&lang=js& ***! - \*********************************************************************************************************/ +/***/ "./packages/framework/resources/components/system/role/RoleSave.vue?vue&type=script&lang=js&": +/*!***************************************************************************************************!*\ + !*** ./packages/framework/resources/components/system/role/RoleSave.vue?vue&type=script&lang=js& ***! + \***************************************************************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); -/* harmony import */ var _node_modules_babel_loader_lib_index_js_ref_4_0_node_modules_vue_loader_lib_index_js_vue_loader_options_RoleTable_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! -!../../../../../../../node_modules/babel-loader/lib??ref--4-0!../../../../../../../node_modules/vue-loader/lib??vue-loader-options!./RoleTable.vue?vue&type=script&lang=js& */ "./node_modules/babel-loader/lib/index.js?!./node_modules/vue-loader/lib/index.js?!./vendor/avored/framework/resources/components/system/role/RoleTable.vue?vue&type=script&lang=js&"); -/* empty/unused harmony star reexport */ /* harmony default export */ __webpack_exports__["default"] = (_node_modules_babel_loader_lib_index_js_ref_4_0_node_modules_vue_loader_lib_index_js_vue_loader_options_RoleTable_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0__["default"]); +/* harmony import */ var _node_modules_babel_loader_lib_index_js_ref_4_0_node_modules_vue_loader_lib_index_js_vue_loader_options_RoleSave_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! -!../../../../../../node_modules/babel-loader/lib??ref--4-0!../../../../../../node_modules/vue-loader/lib??vue-loader-options!./RoleSave.vue?vue&type=script&lang=js& */ "./node_modules/babel-loader/lib/index.js?!./node_modules/vue-loader/lib/index.js?!./packages/framework/resources/components/system/role/RoleSave.vue?vue&type=script&lang=js&"); +/* empty/unused harmony star reexport */ /* harmony default export */ __webpack_exports__["default"] = (_node_modules_babel_loader_lib_index_js_ref_4_0_node_modules_vue_loader_lib_index_js_vue_loader_options_RoleSave_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0__["default"]); /***/ }) diff --git a/public/avored-admin/js/chunk/38.js b/public/avored-admin/js/chunk/38.js index 7c14b6a72..edabe9159 100644 --- a/public/avored-admin/js/chunk/38.js +++ b/public/avored-admin/js/chunk/38.js @@ -1,9 +1,9 @@ (window["webpackJsonp"] = window["webpackJsonp"] || []).push([[38],{ -/***/ "./node_modules/babel-loader/lib/index.js?!./node_modules/vue-loader/lib/index.js?!./vendor/avored/framework/resources/components/system/state/StateSave.vue?vue&type=script&lang=js&": -/*!******************************************************************************************************************************************************************************************************!*\ - !*** ./node_modules/babel-loader/lib??ref--4-0!./node_modules/vue-loader/lib??vue-loader-options!./vendor/avored/framework/resources/components/system/state/StateSave.vue?vue&type=script&lang=js& ***! - \******************************************************************************************************************************************************************************************************/ +/***/ "./node_modules/babel-loader/lib/index.js?!./node_modules/vue-loader/lib/index.js?!./packages/framework/resources/components/system/role/RoleTable.vue?vue&type=script&lang=js&": +/*!************************************************************************************************************************************************************************************************!*\ + !*** ./node_modules/babel-loader/lib??ref--4-0!./node_modules/vue-loader/lib??vue-loader-options!./packages/framework/resources/components/system/role/RoleTable.vue?vue&type=script&lang=js& ***! + \************************************************************************************************************************************************************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { @@ -12,49 +12,103 @@ __webpack_require__.r(__webpack_exports__); /* harmony import */ var lodash_isNil__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! lodash/isNil */ "./node_modules/lodash/isNil.js"); /* harmony import */ var lodash_isNil__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(lodash_isNil__WEBPACK_IMPORTED_MODULE_0__); +var columns = [{ + title: 'Name', + dataIndex: 'name', + key: 'name', + sorter: true +}, { + title: 'Action', + key: 'action', + scopedSlots: { + customRender: 'action' + }, + sorter: false, + width: "10%" +}]; /* harmony default export */ __webpack_exports__["default"] = ({ - props: ['state', 'baseUrl'], + props: ['roles', 'baseUrl'], data: function data() { return { - stateForm: this.$form.createForm(this), - country_id: 0 + columns: columns }; }, methods: { - handleSubmit: function handleSubmit() { - this.stateForm.validateFields(function (err, values) { - if (err) { - e.preventDefault(); + handleTableChange: function handleTableChange(pagination, filters, sorter) { + this.roles.sort(function (a, b) { + var columnKey = sorter.columnKey; + var order = sorter.order; + + if (lodash_isNil__WEBPACK_IMPORTED_MODULE_0___default()(a[columnKey])) { + a[columnKey] = ''; + } + + if (lodash_isNil__WEBPACK_IMPORTED_MODULE_0___default()(b[columnKey])) { + b[columnKey] = ''; + } + + if (order === 'ascend') { + if (a[columnKey] < b[columnKey]) return -1; + if (a[columnKey] > b[columnKey]) return 1; + } + + if (order === 'descend') { + if (a[columnKey] > b[columnKey]) return -1; + if (a[columnKey] < b[columnKey]) return 1; } + + return 0; }); }, - handleCountrySelectChange: function handleCountrySelectChange(value) { - this.country_id = value; + getEditUrl: function getEditUrl(record) { + return this.baseUrl + '/role/' + record.id + '/edit'; }, - cancelState: function cancelState() { - window.location = this.baseUrl + '/state'; - } - }, - mounted: function mounted() { - if (!lodash_isNil__WEBPACK_IMPORTED_MODULE_0___default()(this.state)) { - this.country_id = this.state.country_id; + getDeleteUrl: function getDeleteUrl(record) { + return this.baseUrl + '/role/' + record.id; + }, + deleteRole: function deleteRole(record) { + var url = this.baseUrl + '/role/' + record.id; + var app = this; + this.$confirm({ + title: 'Do you Want to delete ' + record.name + ' role?', + okType: 'danger', + onOk: function onOk() { + axios["delete"](url).then(function (response) { + if (response.data.success === true) { + app.$notification.error({ + key: 'role.delete.success', + message: response.data.message + }); + } + + window.location.reload(); + })["catch"](function (errors) { + app.$notification.error({ + key: 'role.delete.error', + message: errors.message + }); + }); + }, + onCancel: function onCancel() {// Do nothing + } + }); } } }); /***/ }), -/***/ "./vendor/avored/framework/resources/components/system/state/StateSave.vue": -/*!*********************************************************************************!*\ - !*** ./vendor/avored/framework/resources/components/system/state/StateSave.vue ***! - \*********************************************************************************/ +/***/ "./packages/framework/resources/components/system/role/RoleTable.vue": +/*!***************************************************************************!*\ + !*** ./packages/framework/resources/components/system/role/RoleTable.vue ***! + \***************************************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); -/* harmony import */ var _StateSave_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./StateSave.vue?vue&type=script&lang=js& */ "./vendor/avored/framework/resources/components/system/state/StateSave.vue?vue&type=script&lang=js&"); -/* empty/unused harmony star reexport *//* harmony import */ var _node_modules_vue_loader_lib_runtime_componentNormalizer_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../../../../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js */ "./node_modules/vue-loader/lib/runtime/componentNormalizer.js"); +/* harmony import */ var _RoleTable_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./RoleTable.vue?vue&type=script&lang=js& */ "./packages/framework/resources/components/system/role/RoleTable.vue?vue&type=script&lang=js&"); +/* empty/unused harmony star reexport *//* harmony import */ var _node_modules_vue_loader_lib_runtime_componentNormalizer_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../../../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js */ "./node_modules/vue-loader/lib/runtime/componentNormalizer.js"); var render, staticRenderFns @@ -63,7 +117,7 @@ var render, staticRenderFns /* normalize component */ var component = Object(_node_modules_vue_loader_lib_runtime_componentNormalizer_js__WEBPACK_IMPORTED_MODULE_1__["default"])( - _StateSave_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0__["default"], + _RoleTable_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0__["default"], render, staticRenderFns, false, @@ -75,22 +129,22 @@ var component = Object(_node_modules_vue_loader_lib_runtime_componentNormalizer_ /* hot reload */ if (false) { var api; } -component.options.__file = "vendor/avored/framework/resources/components/system/state/StateSave.vue" +component.options.__file = "packages/framework/resources/components/system/role/RoleTable.vue" /* harmony default export */ __webpack_exports__["default"] = (component.exports); /***/ }), -/***/ "./vendor/avored/framework/resources/components/system/state/StateSave.vue?vue&type=script&lang=js&": -/*!**********************************************************************************************************!*\ - !*** ./vendor/avored/framework/resources/components/system/state/StateSave.vue?vue&type=script&lang=js& ***! - \**********************************************************************************************************/ +/***/ "./packages/framework/resources/components/system/role/RoleTable.vue?vue&type=script&lang=js&": +/*!****************************************************************************************************!*\ + !*** ./packages/framework/resources/components/system/role/RoleTable.vue?vue&type=script&lang=js& ***! + \****************************************************************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); -/* harmony import */ var _node_modules_babel_loader_lib_index_js_ref_4_0_node_modules_vue_loader_lib_index_js_vue_loader_options_StateSave_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! -!../../../../../../../node_modules/babel-loader/lib??ref--4-0!../../../../../../../node_modules/vue-loader/lib??vue-loader-options!./StateSave.vue?vue&type=script&lang=js& */ "./node_modules/babel-loader/lib/index.js?!./node_modules/vue-loader/lib/index.js?!./vendor/avored/framework/resources/components/system/state/StateSave.vue?vue&type=script&lang=js&"); -/* empty/unused harmony star reexport */ /* harmony default export */ __webpack_exports__["default"] = (_node_modules_babel_loader_lib_index_js_ref_4_0_node_modules_vue_loader_lib_index_js_vue_loader_options_StateSave_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0__["default"]); +/* harmony import */ var _node_modules_babel_loader_lib_index_js_ref_4_0_node_modules_vue_loader_lib_index_js_vue_loader_options_RoleTable_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! -!../../../../../../node_modules/babel-loader/lib??ref--4-0!../../../../../../node_modules/vue-loader/lib??vue-loader-options!./RoleTable.vue?vue&type=script&lang=js& */ "./node_modules/babel-loader/lib/index.js?!./node_modules/vue-loader/lib/index.js?!./packages/framework/resources/components/system/role/RoleTable.vue?vue&type=script&lang=js&"); +/* empty/unused harmony star reexport */ /* harmony default export */ __webpack_exports__["default"] = (_node_modules_babel_loader_lib_index_js_ref_4_0_node_modules_vue_loader_lib_index_js_vue_loader_options_RoleTable_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0__["default"]); /***/ }) diff --git a/public/avored-admin/js/chunk/39.js b/public/avored-admin/js/chunk/39.js index 865e2364b..9bd13a5c6 100644 --- a/public/avored-admin/js/chunk/39.js +++ b/public/avored-admin/js/chunk/39.js @@ -1,9 +1,9 @@ (window["webpackJsonp"] = window["webpackJsonp"] || []).push([[39],{ -/***/ "./node_modules/babel-loader/lib/index.js?!./node_modules/vue-loader/lib/index.js?!./vendor/avored/framework/resources/components/system/state/StateTable.vue?vue&type=script&lang=js&": -/*!*******************************************************************************************************************************************************************************************************!*\ - !*** ./node_modules/babel-loader/lib??ref--4-0!./node_modules/vue-loader/lib??vue-loader-options!./vendor/avored/framework/resources/components/system/state/StateTable.vue?vue&type=script&lang=js& ***! - \*******************************************************************************************************************************************************************************************************/ +/***/ "./node_modules/babel-loader/lib/index.js?!./node_modules/vue-loader/lib/index.js?!./packages/framework/resources/components/system/state/StateSave.vue?vue&type=script&lang=js&": +/*!*************************************************************************************************************************************************************************************************!*\ + !*** ./node_modules/babel-loader/lib??ref--4-0!./node_modules/vue-loader/lib??vue-loader-options!./packages/framework/resources/components/system/state/StateSave.vue?vue&type=script&lang=js& ***! + \*************************************************************************************************************************************************************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { @@ -12,108 +12,49 @@ __webpack_require__.r(__webpack_exports__); /* harmony import */ var lodash_isNil__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! lodash/isNil */ "./node_modules/lodash/isNil.js"); /* harmony import */ var lodash_isNil__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(lodash_isNil__WEBPACK_IMPORTED_MODULE_0__); -var columns = [{ - title: 'Name', - dataIndex: 'name', - key: 'name', - sorter: true -}, { - title: 'Code', - dataIndex: 'code', - key: 'code', - sorter: true -}, { - title: 'Action', - key: 'action', - scopedSlots: { - customRender: 'action' - }, - sorter: false, - width: "10%" -}]; /* harmony default export */ __webpack_exports__["default"] = ({ - props: ['states', 'baseUrl'], + props: ['state', 'baseUrl'], data: function data() { return { - columns: columns + stateForm: this.$form.createForm(this), + country_id: 0 }; }, methods: { - handleTableChange: function handleTableChange(pagination, filters, sorter) { - this.states.sort(function (a, b) { - var columnKey = sorter.columnKey; - var order = sorter.order; - - if (lodash_isNil__WEBPACK_IMPORTED_MODULE_0___default()(a[columnKey])) { - a[columnKey] = ''; - } - - if (lodash_isNil__WEBPACK_IMPORTED_MODULE_0___default()(b[columnKey])) { - b[columnKey] = ''; - } - - if (order === 'ascend') { - if (a[columnKey] < b[columnKey]) return -1; - if (a[columnKey] > b[columnKey]) return 1; - } - - if (order === 'descend') { - if (a[columnKey] > b[columnKey]) return -1; - if (a[columnKey] < b[columnKey]) return 1; + handleSubmit: function handleSubmit() { + this.stateForm.validateFields(function (err, values) { + if (err) { + e.preventDefault(); } - - return 0; }); }, - getEditUrl: function getEditUrl(record) { - return this.baseUrl + '/state/' + record.id + '/edit'; + handleCountrySelectChange: function handleCountrySelectChange(value) { + this.country_id = value; }, - getDeleteUrl: function getDeleteUrl(record) { - return this.baseUrl + '/state/' + record.id; - }, - deleteState: function deleteState(record) { - var url = this.baseUrl + '/state/' + record.id; - var app = this; - this.$confirm({ - title: 'Do you Want to delete ' + record.name + ' state?', - okType: 'danger', - onOk: function onOk() { - axios["delete"](url).then(function (response) { - if (response.data.success === true) { - app.$notification.error({ - key: 'state.delete.success', - message: response.data.message - }); - } - - window.location.reload(); - })["catch"](function (errors) { - app.$notification.error({ - key: 'state.delete.error', - message: errors.message - }); - }); - }, - onCancel: function onCancel() {// Do nothing - } - }); + cancelState: function cancelState() { + window.location = this.baseUrl + '/state'; + } + }, + mounted: function mounted() { + if (!lodash_isNil__WEBPACK_IMPORTED_MODULE_0___default()(this.state)) { + this.country_id = this.state.country_id; } } }); /***/ }), -/***/ "./vendor/avored/framework/resources/components/system/state/StateTable.vue": -/*!**********************************************************************************!*\ - !*** ./vendor/avored/framework/resources/components/system/state/StateTable.vue ***! - \**********************************************************************************/ +/***/ "./packages/framework/resources/components/system/state/StateSave.vue": +/*!****************************************************************************!*\ + !*** ./packages/framework/resources/components/system/state/StateSave.vue ***! + \****************************************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); -/* harmony import */ var _StateTable_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./StateTable.vue?vue&type=script&lang=js& */ "./vendor/avored/framework/resources/components/system/state/StateTable.vue?vue&type=script&lang=js&"); -/* empty/unused harmony star reexport *//* harmony import */ var _node_modules_vue_loader_lib_runtime_componentNormalizer_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../../../../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js */ "./node_modules/vue-loader/lib/runtime/componentNormalizer.js"); +/* harmony import */ var _StateSave_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./StateSave.vue?vue&type=script&lang=js& */ "./packages/framework/resources/components/system/state/StateSave.vue?vue&type=script&lang=js&"); +/* empty/unused harmony star reexport *//* harmony import */ var _node_modules_vue_loader_lib_runtime_componentNormalizer_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../../../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js */ "./node_modules/vue-loader/lib/runtime/componentNormalizer.js"); var render, staticRenderFns @@ -122,7 +63,7 @@ var render, staticRenderFns /* normalize component */ var component = Object(_node_modules_vue_loader_lib_runtime_componentNormalizer_js__WEBPACK_IMPORTED_MODULE_1__["default"])( - _StateTable_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0__["default"], + _StateSave_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0__["default"], render, staticRenderFns, false, @@ -134,22 +75,22 @@ var component = Object(_node_modules_vue_loader_lib_runtime_componentNormalizer_ /* hot reload */ if (false) { var api; } -component.options.__file = "vendor/avored/framework/resources/components/system/state/StateTable.vue" +component.options.__file = "packages/framework/resources/components/system/state/StateSave.vue" /* harmony default export */ __webpack_exports__["default"] = (component.exports); /***/ }), -/***/ "./vendor/avored/framework/resources/components/system/state/StateTable.vue?vue&type=script&lang=js&": -/*!***********************************************************************************************************!*\ - !*** ./vendor/avored/framework/resources/components/system/state/StateTable.vue?vue&type=script&lang=js& ***! - \***********************************************************************************************************/ +/***/ "./packages/framework/resources/components/system/state/StateSave.vue?vue&type=script&lang=js&": +/*!*****************************************************************************************************!*\ + !*** ./packages/framework/resources/components/system/state/StateSave.vue?vue&type=script&lang=js& ***! + \*****************************************************************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); -/* harmony import */ var _node_modules_babel_loader_lib_index_js_ref_4_0_node_modules_vue_loader_lib_index_js_vue_loader_options_StateTable_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! -!../../../../../../../node_modules/babel-loader/lib??ref--4-0!../../../../../../../node_modules/vue-loader/lib??vue-loader-options!./StateTable.vue?vue&type=script&lang=js& */ "./node_modules/babel-loader/lib/index.js?!./node_modules/vue-loader/lib/index.js?!./vendor/avored/framework/resources/components/system/state/StateTable.vue?vue&type=script&lang=js&"); -/* empty/unused harmony star reexport */ /* harmony default export */ __webpack_exports__["default"] = (_node_modules_babel_loader_lib_index_js_ref_4_0_node_modules_vue_loader_lib_index_js_vue_loader_options_StateTable_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0__["default"]); +/* harmony import */ var _node_modules_babel_loader_lib_index_js_ref_4_0_node_modules_vue_loader_lib_index_js_vue_loader_options_StateSave_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! -!../../../../../../node_modules/babel-loader/lib??ref--4-0!../../../../../../node_modules/vue-loader/lib??vue-loader-options!./StateSave.vue?vue&type=script&lang=js& */ "./node_modules/babel-loader/lib/index.js?!./node_modules/vue-loader/lib/index.js?!./packages/framework/resources/components/system/state/StateSave.vue?vue&type=script&lang=js&"); +/* empty/unused harmony star reexport */ /* harmony default export */ __webpack_exports__["default"] = (_node_modules_babel_loader_lib_index_js_ref_4_0_node_modules_vue_loader_lib_index_js_vue_loader_options_StateSave_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0__["default"]); /***/ }) diff --git a/public/avored-admin/js/chunk/4.js b/public/avored-admin/js/chunk/4.js index dee39dc71..7119ee3ca 100644 --- a/public/avored-admin/js/chunk/4.js +++ b/public/avored-admin/js/chunk/4.js @@ -1,1108 +1,3287 @@ (window["webpackJsonp"] = window["webpackJsonp"] || []).push([[4],{ -/***/ "./node_modules/ant-design-vue/lib/_util/antInputDirective.js": -/*!********************************************************************!*\ - !*** ./node_modules/ant-design-vue/lib/_util/antInputDirective.js ***! - \********************************************************************/ +/***/ "./node_modules/graphql-tag/src/index.js": +/*!***********************************************!*\ + !*** ./node_modules/graphql-tag/src/index.js ***! + \***********************************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { -"use strict"; - +var parser = __webpack_require__(/*! graphql/language/parser */ "./node_modules/graphql/language/parser.mjs"); -Object.defineProperty(exports, "__esModule", { - value: true -}); -exports.antInput = antInput; -/** - * Not type checking this file because flow doesn't like attaching - * properties to Elements. - */ +var parse = parser.parse; -var inBrowser = exports.inBrowser = typeof window !== 'undefined'; -var UA = exports.UA = inBrowser && window.navigator.userAgent.toLowerCase(); -var isIE9 = exports.isIE9 = UA && UA.indexOf('msie 9.0') > 0; -function makeMap(str, expectsLowerCase) { - var map = Object.create(null); - var list = str.split(','); - for (var i = 0; i < list.length; i++) { - map[list[i]] = true; - } - return expectsLowerCase ? function (val) { - return map[val.toLowerCase()]; - } : function (val) { - return map[val]; - }; +// Strip insignificant whitespace +// Note that this could do a lot more, such as reorder fields etc. +function normalize(string) { + return string.replace(/[\s,]+/g, ' ').trim(); } -var isTextInputType = makeMap('text,number,password,search,email,tel,url'); -function onCompositionStart(e) { - e.target.composing = true; -} +// A map docString -> graphql document +var docCache = {}; -function onCompositionEnd(e) { - // prevent triggering an input event for no reason - if (!e.target.composing) return; - e.target.composing = false; - trigger(e.target, 'input'); -} +// A map fragmentName -> [normalized source] +var fragmentSourceMap = {}; -function trigger(el, type) { - var e = document.createEvent('HTMLEvents'); - e.initEvent(type, true, true); - el.dispatchEvent(e); +function cacheKeyFromLoc(loc) { + return normalize(loc.source.body.substring(loc.start, loc.end)); } -/* istanbul ignore if */ -if (isIE9) { - // http://www.matts411.com/post/internet-explorer-9-oninput/ - document.addEventListener('selectionchange', function () { - var el = document.activeElement; - if (el && el.vmodel) { - trigger(el, 'input'); - } - }); +// For testing. +function resetCaches() { + docCache = {}; + fragmentSourceMap = {}; } -function antInput(Vue) { - return Vue.directive('ant-input', { - inserted: function inserted(el, binding, vnode) { - if (vnode.tag === 'textarea' || isTextInputType(el.type)) { - if (!binding.modifiers || !binding.modifiers.lazy) { - el.addEventListener('compositionstart', onCompositionStart); - el.addEventListener('compositionend', onCompositionEnd); - // Safari < 10.2 & UIWebView doesn't fire compositionend when - // switching focus before confirming composition choice - // this also fixes the issue where some browsers e.g. iOS Chrome - // fires "change" instead of "input" on autocomplete. - el.addEventListener('change', onCompositionEnd); - /* istanbul ignore if */ - if (isIE9) { - el.vmodel = true; - } +// Take a unstripped parsed document (query/mutation or even fragment), and +// check all fragment definitions, checking for name->source uniqueness. +// We also want to make sure only unique fragments exist in the document. +var printFragmentWarnings = true; +function processFragments(ast) { + var astFragmentMap = {}; + var definitions = []; + + for (var i = 0; i < ast.definitions.length; i++) { + var fragmentDefinition = ast.definitions[i]; + + if (fragmentDefinition.kind === 'FragmentDefinition') { + var fragmentName = fragmentDefinition.name.value; + var sourceKey = cacheKeyFromLoc(fragmentDefinition.loc); + + // We know something about this fragment + if (fragmentSourceMap.hasOwnProperty(fragmentName) && !fragmentSourceMap[fragmentName][sourceKey]) { + + // this is a problem because the app developer is trying to register another fragment with + // the same name as one previously registered. So, we tell them about it. + if (printFragmentWarnings) { + console.warn("Warning: fragment with name " + fragmentName + " already exists.\n" + + "graphql-tag enforces all fragment names across your application to be unique; read more about\n" + + "this in the docs: http://dev.apollodata.com/core/fragments.html#unique-names"); } + + fragmentSourceMap[fragmentName][sourceKey] = true; + + } else if (!fragmentSourceMap.hasOwnProperty(fragmentName)) { + fragmentSourceMap[fragmentName] = {}; + fragmentSourceMap[fragmentName][sourceKey] = true; } - } - }); -} -exports['default'] = { - install: function install(Vue) { - antInput(Vue); + if (!astFragmentMap[sourceKey]) { + astFragmentMap[sourceKey] = true; + definitions.push(fragmentDefinition); + } + } else { + definitions.push(fragmentDefinition); + } } -}; -/***/ }), + ast.definitions = definitions; + return ast; +} -/***/ "./node_modules/ant-design-vue/lib/_util/env.js": -/*!******************************************************!*\ - !*** ./node_modules/ant-design-vue/lib/_util/env.js ***! - \******************************************************/ -/*! no static exports found */ -/***/ (function(module, exports, __webpack_require__) { +function disableFragmentWarnings() { + printFragmentWarnings = false; +} -"use strict"; +function stripLoc(doc, removeLocAtThisLevel) { + var docType = Object.prototype.toString.call(doc); + if (docType === '[object Array]') { + return doc.map(function (d) { + return stripLoc(d, removeLocAtThisLevel); + }); + } -Object.defineProperty(exports, "__esModule", { - value: true -}); -var inBrowser = exports.inBrowser = typeof window !== 'undefined'; -var UA = exports.UA = inBrowser && window.navigator.userAgent.toLowerCase(); -var isIE = exports.isIE = UA && /msie|trident/.test(UA); -var isIE9 = exports.isIE9 = UA && UA.indexOf('msie 9.0') > 0; + if (docType !== '[object Object]') { + throw new Error('Unexpected input.'); + } -/***/ }), + // We don't want to remove the root loc field so we can use it + // for fragment substitution (see below) + if (removeLocAtThisLevel && doc.loc) { + delete doc.loc; + } -/***/ "./node_modules/ant-design-vue/lib/input/Group.js": -/*!********************************************************!*\ - !*** ./node_modules/ant-design-vue/lib/input/Group.js ***! - \********************************************************/ -/*! no static exports found */ -/***/ (function(module, exports, __webpack_require__) { + // https://github.com/apollographql/graphql-tag/issues/40 + if (doc.loc) { + delete doc.loc.startToken; + delete doc.loc.endToken; + } -"use strict"; + var keys = Object.keys(doc); + var key; + var value; + var valueType; + for (key in keys) { + if (keys.hasOwnProperty(key)) { + value = doc[keys[key]]; + valueType = Object.prototype.toString.call(value); -Object.defineProperty(exports, "__esModule", { - value: true -}); + if (valueType === '[object Object]' || valueType === '[object Array]') { + doc[keys[key]] = stripLoc(value, true); + } + } + } -var _babelHelperVueJsxMergeProps = __webpack_require__(/*! babel-helper-vue-jsx-merge-props */ "./node_modules/babel-helper-vue-jsx-merge-props/index.js"); + return doc; +} -var _babelHelperVueJsxMergeProps2 = _interopRequireDefault(_babelHelperVueJsxMergeProps); +var experimentalFragmentVariables = false; +function parseDocument(doc) { + var cacheKey = normalize(doc); -var _defineProperty2 = __webpack_require__(/*! babel-runtime/helpers/defineProperty */ "./node_modules/babel-runtime/helpers/defineProperty.js"); + if (docCache[cacheKey]) { + return docCache[cacheKey]; + } -var _defineProperty3 = _interopRequireDefault(_defineProperty2); + var parsed = parse(doc, { experimentalFragmentVariables: experimentalFragmentVariables }); + if (!parsed || parsed.kind !== 'Document') { + throw new Error('Not a valid GraphQL document.'); + } -var _propsUtil = __webpack_require__(/*! ../_util/props-util */ "./node_modules/ant-design-vue/lib/_util/props-util.js"); + // check that all "new" fragments inside the documents are consistent with + // existing fragments of the same name + parsed = processFragments(parsed); + parsed = stripLoc(parsed, false); + docCache[cacheKey] = parsed; -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } + return parsed; +} -exports['default'] = { - name: 'AInputGroup', - props: { - prefixCls: { - 'default': 'ant-input-group', - type: String - }, - size: { - validator: function validator(value) { - return ['small', 'large', 'default'].includes(value); - } - }, - compact: Boolean - }, - computed: { - classes: function classes() { - var _ref; +function enableExperimentalFragmentVariables() { + experimentalFragmentVariables = true; +} - var prefixCls = this.prefixCls, - size = this.size, - _compact = this.compact, - compact = _compact === undefined ? false : _compact; +function disableExperimentalFragmentVariables() { + experimentalFragmentVariables = false; +} - return _ref = {}, (0, _defineProperty3['default'])(_ref, '' + prefixCls, true), (0, _defineProperty3['default'])(_ref, prefixCls + '-lg', size === 'large'), (0, _defineProperty3['default'])(_ref, prefixCls + '-sm', size === 'small'), (0, _defineProperty3['default'])(_ref, prefixCls + '-compact', compact), _ref; - } - }, - methods: {}, - render: function render() { - var h = arguments[0]; - var $listeners = this.$listeners; +// XXX This should eventually disallow arbitrary string interpolation, like Relay does +function gql(/* arguments */) { + var args = Array.prototype.slice.call(arguments); - return h( - 'span', - (0, _babelHelperVueJsxMergeProps2['default'])([{ 'class': this.classes }, { on: $listeners }]), - [(0, _propsUtil.filterEmpty)(this.$slots['default'])] - ); - } -}; + var literals = args[0]; -/***/ }), + // We always get literals[0] and then matching post literals for each arg given + var result = (typeof(literals) === "string") ? literals : literals[0]; -/***/ "./node_modules/ant-design-vue/lib/input/Input.js": -/*!********************************************************!*\ - !*** ./node_modules/ant-design-vue/lib/input/Input.js ***! - \********************************************************/ -/*! no static exports found */ -/***/ (function(module, exports, __webpack_require__) { + for (var i = 1; i < args.length; i++) { + if (args[i] && args[i].kind && args[i].kind === 'Document') { + result += args[i].loc.source.body; + } else { + result += args[i]; + } -"use strict"; + result += literals[i]; + } + return parseDocument(result); +} -Object.defineProperty(exports, "__esModule", { - value: true -}); +// Support typescript, which isn't as nice as Babel about default exports +gql.default = gql; +gql.resetCaches = resetCaches; +gql.disableFragmentWarnings = disableFragmentWarnings; +gql.enableExperimentalFragmentVariables = enableExperimentalFragmentVariables; +gql.disableExperimentalFragmentVariables = disableExperimentalFragmentVariables; -var _babelHelperVueJsxMergeProps = __webpack_require__(/*! babel-helper-vue-jsx-merge-props */ "./node_modules/babel-helper-vue-jsx-merge-props/index.js"); +module.exports = gql; -var _babelHelperVueJsxMergeProps2 = _interopRequireDefault(_babelHelperVueJsxMergeProps); -var _defineProperty2 = __webpack_require__(/*! babel-runtime/helpers/defineProperty */ "./node_modules/babel-runtime/helpers/defineProperty.js"); +/***/ }), -var _defineProperty3 = _interopRequireDefault(_defineProperty2); +/***/ "./node_modules/graphql/error/GraphQLError.mjs": +/*!*****************************************************!*\ + !*** ./node_modules/graphql/error/GraphQLError.mjs ***! + \*****************************************************/ +/*! exports provided: GraphQLError, printError */ +/***/ (function(__webpack_module__, __webpack_exports__, __webpack_require__) { -var _extends2 = __webpack_require__(/*! babel-runtime/helpers/extends */ "./node_modules/babel-runtime/helpers/extends.js"); +"use strict"; +__webpack_require__.r(__webpack_exports__); +/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "GraphQLError", function() { return GraphQLError; }); +/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "printError", function() { return printError; }); +/* harmony import */ var _jsutils_isObjectLike__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../jsutils/isObjectLike */ "./node_modules/graphql/jsutils/isObjectLike.mjs"); +/* harmony import */ var _language_location__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../language/location */ "./node_modules/graphql/language/location.mjs"); +/* harmony import */ var _language_printLocation__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../language/printLocation */ "./node_modules/graphql/language/printLocation.mjs"); -var _extends3 = _interopRequireDefault(_extends2); -var _classnames = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js"); -var _classnames2 = _interopRequireDefault(_classnames); +/** + * A GraphQLError describes an Error found during the parse, validate, or + * execute phases of performing a GraphQL operation. In addition to a message + * and stack trace, it also includes information about the locations in a + * GraphQL document and/or execution result that correspond to the Error. + */ -var _TextArea = __webpack_require__(/*! ./TextArea */ "./node_modules/ant-design-vue/lib/input/TextArea.js"); +function GraphQLError( // eslint-disable-line no-redeclare +message, nodes, source, positions, path, originalError, extensions) { + // Compute list of blame nodes. + var _nodes = Array.isArray(nodes) ? nodes.length !== 0 ? nodes : undefined : nodes ? [nodes] : undefined; // Compute locations in the source for the given nodes/positions. -var _TextArea2 = _interopRequireDefault(_TextArea); -var _omit = __webpack_require__(/*! omit.js */ "./node_modules/omit.js/es/index.js"); + var _source = source; -var _omit2 = _interopRequireDefault(_omit); + if (!_source && _nodes) { + var node = _nodes[0]; + _source = node && node.loc && node.loc.source; + } -var _inputProps = __webpack_require__(/*! ./inputProps */ "./node_modules/ant-design-vue/lib/input/inputProps.js"); + var _positions = positions; -var _inputProps2 = _interopRequireDefault(_inputProps); + if (!_positions && _nodes) { + _positions = _nodes.reduce(function (list, node) { + if (node.loc) { + list.push(node.loc.start); + } -var _propsUtil = __webpack_require__(/*! ../_util/props-util */ "./node_modules/ant-design-vue/lib/_util/props-util.js"); + return list; + }, []); + } -var _env = __webpack_require__(/*! ../_util/env */ "./node_modules/ant-design-vue/lib/_util/env.js"); + if (_positions && _positions.length === 0) { + _positions = undefined; + } -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } + var _locations; -function noop() {} + if (positions && source) { + _locations = positions.map(function (pos) { + return Object(_language_location__WEBPACK_IMPORTED_MODULE_1__["getLocation"])(source, pos); + }); + } else if (_nodes) { + _locations = _nodes.reduce(function (list, node) { + if (node.loc) { + list.push(Object(_language_location__WEBPACK_IMPORTED_MODULE_1__["getLocation"])(node.loc.source, node.loc.start)); + } -function fixControlledValue(value) { - if (typeof value === 'undefined' || value === null) { - return ''; + return list; + }, []); } - return value; -} -exports['default'] = { - name: 'AInput', - inheritAttrs: false, - model: { - prop: 'value', - event: 'change.value' - }, - props: (0, _extends3['default'])({}, _inputProps2['default']), - data: function data() { - var _$props = this.$props, - value = _$props.value, - defaultValue = _$props.defaultValue; + var _extensions = extensions; - return { - stateValue: fixControlledValue(!(0, _propsUtil.hasProp)(this, 'value') ? defaultValue : value) - }; - }, + if (_extensions == null && originalError != null) { + var originalExtensions = originalError.extensions; - watch: { - value: function value(val) { - this.stateValue = fixControlledValue(val); + if (Object(_jsutils_isObjectLike__WEBPACK_IMPORTED_MODULE_0__["default"])(originalExtensions)) { + _extensions = originalExtensions; } - }, - mounted: function mounted() { - var _this = this; - - this.$nextTick(function () { - if (_this.autoFocus) { - _this.focus(); - } - }); - }, + } - methods: { - handleKeyDown: function handleKeyDown(e) { - if (e.keyCode === 13) { - this.$emit('pressEnter', e); - } - this.$emit('keydown', e); + Object.defineProperties(this, { + message: { + value: message, + // By being enumerable, JSON.stringify will include `message` in the + // resulting output. This ensures that the simplest possible GraphQL + // service adheres to the spec. + enumerable: true, + writable: true }, - handleChange: function handleChange(e) { - // https://github.com/vueComponent/ant-design-vue/issues/92 - if (_env.isIE && !_env.isIE9 && this.stateValue === e.target.value) { - return; - } - if (!(0, _propsUtil.hasProp)(this, 'value')) { - this.stateValue = e.target.value; - } else { - this.$forceUpdate(); - } - if (!e.target.composing) { - this.$emit('change.value', e.target.value); - } - this.$emit('change', e); - this.$emit('input', e); + locations: { + // Coercing falsey values to undefined ensures they will not be included + // in JSON.stringify() when not provided. + value: _locations || undefined, + // By being enumerable, JSON.stringify will include `locations` in the + // resulting output. This ensures that the simplest possible GraphQL + // service adheres to the spec. + enumerable: Boolean(_locations) }, - focus: function focus() { - this.$refs.input.focus(); + path: { + // Coercing falsey values to undefined ensures they will not be included + // in JSON.stringify() when not provided. + value: path || undefined, + // By being enumerable, JSON.stringify will include `path` in the + // resulting output. This ensures that the simplest possible GraphQL + // service adheres to the spec. + enumerable: Boolean(path) }, - blur: function blur() { - this.$refs.input.blur(); + nodes: { + value: _nodes || undefined }, - select: function select() { - this.$refs.input.select(); + source: { + value: _source || undefined }, - getInputClassName: function getInputClassName() { - var _ref; - - var _$props2 = this.$props, - prefixCls = _$props2.prefixCls, - size = _$props2.size, - disabled = _$props2.disabled; - - return _ref = {}, (0, _defineProperty3['default'])(_ref, '' + prefixCls, true), (0, _defineProperty3['default'])(_ref, prefixCls + '-sm', size === 'small'), (0, _defineProperty3['default'])(_ref, prefixCls + '-lg', size === 'large'), (0, _defineProperty3['default'])(_ref, prefixCls + '-disabled', disabled), _ref; + positions: { + value: _positions || undefined + }, + originalError: { + value: originalError }, - renderLabeledInput: function renderLabeledInput(children) { - var _className, _classNames; + extensions: { + // Coercing falsey values to undefined ensures they will not be included + // in JSON.stringify() when not provided. + value: _extensions || undefined, + // By being enumerable, JSON.stringify will include `path` in the + // resulting output. This ensures that the simplest possible GraphQL + // service adheres to the spec. + enumerable: Boolean(_extensions) + } + }); // Include (non-enumerable) stack trace. - var h = this.$createElement; + if (originalError && originalError.stack) { + Object.defineProperty(this, 'stack', { + value: originalError.stack, + writable: true, + configurable: true + }); + } else if (Error.captureStackTrace) { + Error.captureStackTrace(this, GraphQLError); + } else { + Object.defineProperty(this, 'stack', { + value: Error().stack, + writable: true, + configurable: true + }); + } +} +GraphQLError.prototype = Object.create(Error.prototype, { + constructor: { + value: GraphQLError + }, + name: { + value: 'GraphQLError' + }, + toString: { + value: function toString() { + return printError(this); + } + } +}); +/** + * Prints a GraphQLError to a string, representing useful location information + * about the error's position in the source. + */ - var props = this.$props; - var addonAfter = (0, _propsUtil.getComponentFromProp)(this, 'addonAfter'); - var addonBefore = (0, _propsUtil.getComponentFromProp)(this, 'addonBefore'); - // Not wrap when there is not addons - if (!addonBefore && !addonAfter) { - return children; - } +function printError(error) { + var output = error.message; - var wrapperClassName = props.prefixCls + '-group'; - var addonClassName = wrapperClassName + '-addon'; - addonBefore = addonBefore ? h( - 'span', - { 'class': addonClassName }, - [addonBefore] - ) : null; - - addonAfter = addonAfter ? h( - 'span', - { 'class': addonClassName }, - [addonAfter] - ) : null; - - var className = (_className = {}, (0, _defineProperty3['default'])(_className, props.prefixCls + '-wrapper', true), (0, _defineProperty3['default'])(_className, wrapperClassName, addonBefore || addonAfter), _className); - - var groupClassName = (0, _classnames2['default'])(props.prefixCls + '-group-wrapper', (_classNames = {}, (0, _defineProperty3['default'])(_classNames, props.prefixCls + '-group-wrapper-sm', props.size === 'small'), (0, _defineProperty3['default'])(_classNames, props.prefixCls + '-group-wrapper-lg', props.size === 'large'), _classNames)); - return h( - 'span', - { 'class': groupClassName }, - [h( - 'span', - { 'class': className }, - [addonBefore, children, addonAfter] - )] - ); - }, - renderLabeledIcon: function renderLabeledIcon(children) { - var _classNames2; - - var h = this.$createElement; - var _$props3 = this.$props, - prefixCls = _$props3.prefixCls, - size = _$props3.size; - - var prefix = (0, _propsUtil.getComponentFromProp)(this, 'prefix'); - var suffix = (0, _propsUtil.getComponentFromProp)(this, 'suffix'); - if (!prefix && !suffix) { - return children; - } + if (error.nodes) { + for (var _i2 = 0, _error$nodes2 = error.nodes; _i2 < _error$nodes2.length; _i2++) { + var node = _error$nodes2[_i2]; - prefix = prefix ? h( - 'span', - { 'class': prefixCls + '-prefix' }, - [prefix] - ) : null; - - suffix = suffix ? h( - 'span', - { 'class': prefixCls + '-suffix' }, - [suffix] - ) : null; - var affixWrapperCls = (0, _classnames2['default'])(prefixCls + '-affix-wrapper', (_classNames2 = {}, (0, _defineProperty3['default'])(_classNames2, prefixCls + '-affix-wrapper-sm', size === 'small'), (0, _defineProperty3['default'])(_classNames2, prefixCls + '-affix-wrapper-lg', size === 'large'), _classNames2)); - return h( - 'span', - { 'class': affixWrapperCls }, - [prefix, children, suffix] - ); - }, - renderInput: function renderInput() { - var h = this.$createElement; - - var otherProps = (0, _omit2['default'])(this.$props, ['prefixCls', 'addonBefore', 'addonAfter', 'prefix', 'suffix', 'value', 'defaultValue']); - var stateValue = this.stateValue, - getInputClassName = this.getInputClassName, - handleKeyDown = this.handleKeyDown, - handleChange = this.handleChange, - $listeners = this.$listeners; - - var inputProps = { - domProps: { - value: stateValue - }, - attrs: (0, _extends3['default'])({}, otherProps, this.$attrs), - on: (0, _extends3['default'])({}, $listeners, { - keydown: handleKeyDown, - input: handleChange, - change: noop - }), - 'class': getInputClassName(), - ref: 'input' - }; - if ($listeners['change.value']) { - inputProps.directives = [{ name: 'ant-input' }]; + if (node.loc) { + output += '\n\n' + Object(_language_printLocation__WEBPACK_IMPORTED_MODULE_2__["printLocation"])(node.loc); } - return this.renderLabeledIcon(h('input', inputProps)); } - }, - render: function render() { - var h = arguments[0]; - - if (this.$props.type === 'textarea') { - var $listeners = this.$listeners; - - var textareaProps = { - props: this.$props, - attrs: this.$attrs, - on: (0, _extends3['default'])({}, $listeners, { - change: this.handleChange, - keydown: this.handleKeyDown - }), - directives: [{ - name: 'ant-input' - }] - }; - return h(_TextArea2['default'], (0, _babelHelperVueJsxMergeProps2['default'])([textareaProps, { ref: 'input' }])); + } else if (error.source && error.locations) { + for (var _i4 = 0, _error$locations2 = error.locations; _i4 < _error$locations2.length; _i4++) { + var location = _error$locations2[_i4]; + output += '\n\n' + Object(_language_printLocation__WEBPACK_IMPORTED_MODULE_2__["printSourceLocation"])(error.source, location); } - return this.renderLabeledInput(this.renderInput()); } -}; -/***/ }), + return output; +} -/***/ "./node_modules/ant-design-vue/lib/input/Search.js": -/*!*********************************************************!*\ - !*** ./node_modules/ant-design-vue/lib/input/Search.js ***! - \*********************************************************/ -/*! no static exports found */ -/***/ (function(module, exports, __webpack_require__) { -"use strict"; +/***/ }), +/***/ "./node_modules/graphql/error/syntaxError.mjs": +/*!****************************************************!*\ + !*** ./node_modules/graphql/error/syntaxError.mjs ***! + \****************************************************/ +/*! exports provided: syntaxError */ +/***/ (function(__webpack_module__, __webpack_exports__, __webpack_require__) { -Object.defineProperty(exports, "__esModule", { - value: true -}); +"use strict"; +__webpack_require__.r(__webpack_exports__); +/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "syntaxError", function() { return syntaxError; }); +/* harmony import */ var _GraphQLError__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./GraphQLError */ "./node_modules/graphql/error/GraphQLError.mjs"); -var _babelHelperVueJsxMergeProps = __webpack_require__(/*! babel-helper-vue-jsx-merge-props */ "./node_modules/babel-helper-vue-jsx-merge-props/index.js"); +/** + * Produces a GraphQLError representing a syntax error, containing useful + * descriptive information about the syntax error's position in the source. + */ -var _babelHelperVueJsxMergeProps2 = _interopRequireDefault(_babelHelperVueJsxMergeProps); +function syntaxError(source, position, description) { + return new _GraphQLError__WEBPACK_IMPORTED_MODULE_0__["GraphQLError"]("Syntax Error: ".concat(description), undefined, source, [position]); +} -var _defineProperty2 = __webpack_require__(/*! babel-runtime/helpers/defineProperty */ "./node_modules/babel-runtime/helpers/defineProperty.js"); -var _defineProperty3 = _interopRequireDefault(_defineProperty2); +/***/ }), -var _objectWithoutProperties2 = __webpack_require__(/*! babel-runtime/helpers/objectWithoutProperties */ "./node_modules/babel-runtime/helpers/objectWithoutProperties.js"); +/***/ "./node_modules/graphql/jsutils/defineToJSON.mjs": +/*!*******************************************************!*\ + !*** ./node_modules/graphql/jsutils/defineToJSON.mjs ***! + \*******************************************************/ +/*! exports provided: default */ +/***/ (function(__webpack_module__, __webpack_exports__, __webpack_require__) { -var _objectWithoutProperties3 = _interopRequireDefault(_objectWithoutProperties2); +"use strict"; +__webpack_require__.r(__webpack_exports__); +/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return defineToJSON; }); +/* harmony import */ var _nodejsCustomInspectSymbol__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./nodejsCustomInspectSymbol */ "./node_modules/graphql/jsutils/nodejsCustomInspectSymbol.mjs"); -var _extends2 = __webpack_require__(/*! babel-runtime/helpers/extends */ "./node_modules/babel-runtime/helpers/extends.js"); +/** + * The `defineToJSON()` function defines toJSON() and inspect() prototype + * methods, if no function provided they become aliases for toString(). + */ -var _extends3 = _interopRequireDefault(_extends2); +function defineToJSON(classObject) { + var fn = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : classObject.prototype.toString; + classObject.prototype.toJSON = fn; + classObject.prototype.inspect = fn; -var _classnames = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js"); + if (_nodejsCustomInspectSymbol__WEBPACK_IMPORTED_MODULE_0__["default"]) { + classObject.prototype[_nodejsCustomInspectSymbol__WEBPACK_IMPORTED_MODULE_0__["default"]] = fn; + } +} -var _classnames2 = _interopRequireDefault(_classnames); -var _Input = __webpack_require__(/*! ./Input */ "./node_modules/ant-design-vue/lib/input/Input.js"); +/***/ }), -var _Input2 = _interopRequireDefault(_Input); +/***/ "./node_modules/graphql/jsutils/defineToStringTag.mjs": +/*!************************************************************!*\ + !*** ./node_modules/graphql/jsutils/defineToStringTag.mjs ***! + \************************************************************/ +/*! exports provided: default */ +/***/ (function(__webpack_module__, __webpack_exports__, __webpack_require__) { -var _icon = __webpack_require__(/*! ../icon */ "./node_modules/ant-design-vue/lib/icon/index.js"); +"use strict"; +__webpack_require__.r(__webpack_exports__); +/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return defineToStringTag; }); +/** + * The `defineToStringTag()` function checks first to see if the runtime + * supports the `Symbol` class and then if the `Symbol.toStringTag` constant + * is defined as a `Symbol` instance. If both conditions are met, the + * Symbol.toStringTag property is defined as a getter that returns the + * supplied class constructor's name. + * + * @method defineToStringTag + * + * @param {Class} classObject a class such as Object, String, Number but + * typically one of your own creation through the class keyword; `class A {}`, + * for example. + */ +function defineToStringTag(classObject) { + if (typeof Symbol === 'function' && Symbol.toStringTag) { + Object.defineProperty(classObject.prototype, Symbol.toStringTag, { + get: function get() { + return this.constructor.name; + } + }); + } +} -var _icon2 = _interopRequireDefault(_icon); -var _inputProps = __webpack_require__(/*! ./inputProps */ "./node_modules/ant-design-vue/lib/input/inputProps.js"); +/***/ }), -var _inputProps2 = _interopRequireDefault(_inputProps); +/***/ "./node_modules/graphql/jsutils/devAssert.mjs": +/*!****************************************************!*\ + !*** ./node_modules/graphql/jsutils/devAssert.mjs ***! + \****************************************************/ +/*! exports provided: default */ +/***/ (function(__webpack_module__, __webpack_exports__, __webpack_require__) { -var _button = __webpack_require__(/*! ../button */ "./node_modules/ant-design-vue/lib/button/index.js"); +"use strict"; +__webpack_require__.r(__webpack_exports__); +/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return devAssert; }); +function devAssert(condition, message) { + var booleanCondition = Boolean(condition); -var _button2 = _interopRequireDefault(_button); + if (!booleanCondition) { + throw new Error(message); + } +} -var _vnode = __webpack_require__(/*! ../_util/vnode */ "./node_modules/ant-design-vue/lib/_util/vnode.js"); -var _propsUtil = __webpack_require__(/*! ../_util/props-util */ "./node_modules/ant-design-vue/lib/_util/props-util.js"); +/***/ }), -var _vueTypes = __webpack_require__(/*! ../_util/vue-types */ "./node_modules/ant-design-vue/lib/_util/vue-types/index.js"); +/***/ "./node_modules/graphql/jsutils/inspect.mjs": +/*!**************************************************!*\ + !*** ./node_modules/graphql/jsutils/inspect.mjs ***! + \**************************************************/ +/*! exports provided: default */ +/***/ (function(__webpack_module__, __webpack_exports__, __webpack_require__) { -var _vueTypes2 = _interopRequireDefault(_vueTypes); +"use strict"; +__webpack_require__.r(__webpack_exports__); +/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return inspect; }); +/* harmony import */ var _nodejsCustomInspectSymbol__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./nodejsCustomInspectSymbol */ "./node_modules/graphql/jsutils/nodejsCustomInspectSymbol.mjs"); +function _typeof(obj) { if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); } -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } -exports['default'] = { - name: 'AInputSearch', - inheritAttrs: false, - model: { - prop: 'value', - event: 'change.value' - }, - props: (0, _extends3['default'])({}, _inputProps2['default'], { - prefixCls: { - 'default': 'ant-input-search', - type: String - }, - inputPrefixCls: { - 'default': 'ant-input', - type: String - }, - enterButton: _vueTypes2['default'].oneOfType([_vueTypes2['default'].bool, _vueTypes2['default'].string, _vueTypes2['default'].object]) - }), - methods: { - onSearch: function onSearch(e) { - this.$emit('search', this.$refs.input.stateValue, e); - this.$refs.input.focus(); - }, - focus: function focus() { - this.$refs.input.focus(); - }, - blur: function blur() { - this.$refs.input.blur(); - }, - getButtonOrIcon: function getButtonOrIcon() { - var h = this.$createElement; - var prefixCls = this.prefixCls, - size = this.size, - disabled = this.disabled; - - var enterButton = (0, _propsUtil.getComponentFromProp)(this, 'enterButton'); - var enterButtonAsElement = Array.isArray(enterButton) ? enterButton[0] : enterButton; - var node = void 0; - if (!enterButton) { - node = h(_icon2['default'], { 'class': prefixCls + '-icon', attrs: { type: 'search' }, - key: 'searchIcon' }); - } else if (enterButtonAsElement.tag === 'button' || enterButtonAsElement.componentOptions && enterButtonAsElement.componentOptions.Ctor.extendOptions.__ANT_BUTTON) { - node = (0, _vnode.cloneElement)(enterButtonAsElement, { - 'class': prefixCls + '-button', - props: { size: size } - }); - } else { - node = h( - _button2['default'], - { - 'class': prefixCls + '-button', - attrs: { type: 'primary', - size: size, - disabled: disabled - }, - key: 'enterButton' - }, - [enterButton === true ? h(_icon2['default'], { - attrs: { type: 'search' } - }) : enterButton] - ); - } - return (0, _vnode.cloneElement)(node, { - on: { - click: this.onSearch - } - }); - } - }, - render: function render() { - var _classNames; - - var h = arguments[0]; - - var _getOptionProps = (0, _propsUtil.getOptionProps)(this), - prefixCls = _getOptionProps.prefixCls, - inputPrefixCls = _getOptionProps.inputPrefixCls, - size = _getOptionProps.size, - others = (0, _objectWithoutProperties3['default'])(_getOptionProps, ['prefixCls', 'inputPrefixCls', 'size']); - - var suffix = (0, _propsUtil.getComponentFromProp)(this, 'suffix'); - var enterButton = (0, _propsUtil.getComponentFromProp)(this, 'enterButton'); - var addonAfter = (0, _propsUtil.getComponentFromProp)(this, 'addonAfter'); - var addonBefore = (0, _propsUtil.getComponentFromProp)(this, 'addonBefore'); - var buttonOrIcon = this.getButtonOrIcon(); - var searchSuffix = suffix ? [suffix, buttonOrIcon] : buttonOrIcon; - if (Array.isArray(searchSuffix)) { - searchSuffix = searchSuffix.map(function (item, index) { - if (!(0, _propsUtil.isValidElement)(item) || item.key) { - return item; - } - return (0, _vnode.cloneElement)(item, { key: index }); - }); - } - var inputClassName = (0, _classnames2['default'])(prefixCls, (_classNames = {}, (0, _defineProperty3['default'])(_classNames, prefixCls + '-enter-button', !!enterButton), (0, _defineProperty3['default'])(_classNames, prefixCls + '-' + size, !!size), _classNames)); - var on = (0, _extends3['default'])({}, this.$listeners); - delete on.search; - var inputProps = { - props: (0, _extends3['default'])({}, others, { - prefixCls: inputPrefixCls, - size: size, - suffix: searchSuffix, - addonAfter: addonAfter, - addonBefore: addonBefore - }), - attrs: this.$attrs, - on: (0, _extends3['default'])({ - pressEnter: this.onSearch - }, on) - }; - return h(_Input2['default'], (0, _babelHelperVueJsxMergeProps2['default'])([inputProps, { 'class': inputClassName, ref: 'input' }])); - } -}; +var MAX_ARRAY_LENGTH = 10; +var MAX_RECURSIVE_DEPTH = 2; +/** + * Used to print values in error messages. + */ -/***/ }), +function inspect(value) { + return formatValue(value, []); +} -/***/ "./node_modules/ant-design-vue/lib/input/TextArea.js": -/*!***********************************************************!*\ - !*** ./node_modules/ant-design-vue/lib/input/TextArea.js ***! - \***********************************************************/ -/*! no static exports found */ -/***/ (function(module, exports, __webpack_require__) { +function formatValue(value, seenValues) { + switch (_typeof(value)) { + case 'string': + return JSON.stringify(value); -"use strict"; + case 'function': + return value.name ? "[function ".concat(value.name, "]") : '[function]'; + case 'object': + if (value === null) { + return 'null'; + } -Object.defineProperty(exports, "__esModule", { - value: true -}); + return formatObjectValue(value, seenValues); -var _babelHelperVueJsxMergeProps = __webpack_require__(/*! babel-helper-vue-jsx-merge-props */ "./node_modules/babel-helper-vue-jsx-merge-props/index.js"); + default: + return String(value); + } +} -var _babelHelperVueJsxMergeProps2 = _interopRequireDefault(_babelHelperVueJsxMergeProps); +function formatObjectValue(value, previouslySeenValues) { + if (previouslySeenValues.indexOf(value) !== -1) { + return '[Circular]'; + } -var _defineProperty2 = __webpack_require__(/*! babel-runtime/helpers/defineProperty */ "./node_modules/babel-runtime/helpers/defineProperty.js"); + var seenValues = [].concat(previouslySeenValues, [value]); + var customInspectFn = getCustomFn(value); -var _defineProperty3 = _interopRequireDefault(_defineProperty2); + if (customInspectFn !== undefined) { + // $FlowFixMe(>=0.90.0) + var customValue = customInspectFn.call(value); // check for infinite recursion -var _extends2 = __webpack_require__(/*! babel-runtime/helpers/extends */ "./node_modules/babel-runtime/helpers/extends.js"); + if (customValue !== value) { + return typeof customValue === 'string' ? customValue : formatValue(customValue, seenValues); + } + } else if (Array.isArray(value)) { + return formatArray(value, seenValues); + } -var _extends3 = _interopRequireDefault(_extends2); + return formatObject(value, seenValues); +} -var _omit = __webpack_require__(/*! omit.js */ "./node_modules/omit.js/es/index.js"); +function formatObject(object, seenValues) { + var keys = Object.keys(object); -var _omit2 = _interopRequireDefault(_omit); + if (keys.length === 0) { + return '{}'; + } -var _resizeObserverPolyfill = __webpack_require__(/*! resize-observer-polyfill */ "./node_modules/resize-observer-polyfill/dist/ResizeObserver.es.js"); + if (seenValues.length > MAX_RECURSIVE_DEPTH) { + return '[' + getObjectTag(object) + ']'; + } -var _resizeObserverPolyfill2 = _interopRequireDefault(_resizeObserverPolyfill); + var properties = keys.map(function (key) { + var value = formatValue(object[key], seenValues); + return key + ': ' + value; + }); + return '{ ' + properties.join(', ') + ' }'; +} -var _inputProps = __webpack_require__(/*! ./inputProps */ "./node_modules/ant-design-vue/lib/input/inputProps.js"); +function formatArray(array, seenValues) { + if (array.length === 0) { + return '[]'; + } -var _inputProps2 = _interopRequireDefault(_inputProps); + if (seenValues.length > MAX_RECURSIVE_DEPTH) { + return '[Array]'; + } -var _calculateNodeHeight = __webpack_require__(/*! ./calculateNodeHeight */ "./node_modules/ant-design-vue/lib/input/calculateNodeHeight.js"); + var len = Math.min(MAX_ARRAY_LENGTH, array.length); + var remaining = array.length - len; + var items = []; -var _calculateNodeHeight2 = _interopRequireDefault(_calculateNodeHeight); + for (var i = 0; i < len; ++i) { + items.push(formatValue(array[i], seenValues)); + } -var _propsUtil = __webpack_require__(/*! ../_util/props-util */ "./node_modules/ant-design-vue/lib/_util/props-util.js"); + if (remaining === 1) { + items.push('... 1 more item'); + } else if (remaining > 1) { + items.push("... ".concat(remaining, " more items")); + } -var _propsUtil2 = _interopRequireDefault(_propsUtil); + return '[' + items.join(', ') + ']'; +} -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } +function getCustomFn(object) { + var customInspectFn = object[String(_nodejsCustomInspectSymbol__WEBPACK_IMPORTED_MODULE_0__["default"])]; -function onNextFrame(cb) { - if (window.requestAnimationFrame) { - return window.requestAnimationFrame(cb); + if (typeof customInspectFn === 'function') { + return customInspectFn; } - return window.setTimeout(cb, 1); -} -function clearNextFrameAction(nextFrameId) { - if (window.cancelAnimationFrame) { - window.cancelAnimationFrame(nextFrameId); - } else { - window.clearTimeout(nextFrameId); - } -} -function fixControlledValue(value) { - if (typeof value === 'undefined' || value === null) { - return ''; + if (typeof object.inspect === 'function') { + return object.inspect; } - return value; } -function noop() {} - -exports['default'] = { - name: 'ATextarea', - model: { - prop: 'value', - event: 'change.value' - }, - props: (0, _extends3['default'])({}, _inputProps2['default'], { - autosize: [Object, Boolean] - }), - data: function data() { - var _$props = this.$props, - value = _$props.value, - defaultValue = _$props.defaultValue; - return { - stateValue: fixControlledValue(!(0, _propsUtil2['default'])(this, 'value') ? defaultValue : value), - nextFrameActionId: undefined, - textareaStyles: {} - }; - }, +function getObjectTag(object) { + var tag = Object.prototype.toString.call(object).replace(/^\[object /, '').replace(/]$/, ''); - computed: {}, - watch: { - value: function value(val) { - var _this = this; + if (tag === 'Object' && typeof object.constructor === 'function') { + var name = object.constructor.name; - this.$nextTick(function () { - _this.resizeOnNextFrame(); - }); - this.stateValue = fixControlledValue(val); - }, - autosize: function autosize(val) { - if (!val && this.$refs.textArea) { - this.textareaStyles = (0, _omit2['default'])(this.textareaStyles, ['overflowY']); - } + if (typeof name === 'string' && name !== '') { + return name; } - }, - mounted: function mounted() { - var _this2 = this; + } - this.$nextTick(function () { - _this2.resizeTextarea(); - _this2.updateResizeObserverHook(); - if (_this2.autoFocus) { - _this2.focus(); - } - }); - }, - updated: function updated() { - this.updateResizeObserverHook(); - }, - beforeDestroy: function beforeDestroy() { - if (this.resizeObserver) { - this.resizeObserver.disconnect(); - } - }, + return tag; +} - methods: { - resizeOnNextFrame: function resizeOnNextFrame() { - if (this.nextFrameActionId) { - clearNextFrameAction(this.nextFrameActionId); - } - this.nextFrameActionId = onNextFrame(this.resizeTextarea); - }, - // We will update hooks if `autosize` prop change - updateResizeObserverHook: function updateResizeObserverHook() { - if (!this.resizeObserver && this.$props.autosize) { - // Add resize observer - this.resizeObserver = new _resizeObserverPolyfill2['default'](this.resizeOnNextFrame); - this.resizeObserver.observe(this.$refs.textArea); - } else if (this.resizeObserver && !this.$props.autosize) { - // Remove resize observer - this.resizeObserver.disconnect(); - this.resizeObserver = null; - } - }, - handleKeyDown: function handleKeyDown(e) { - if (e.keyCode === 13) { - this.$emit('pressEnter', e); - } - this.$emit('keydown', e); - }, - resizeTextarea: function resizeTextarea() { - var autosize = this.$props.autosize; +/***/ }), - if (!autosize || !this.$refs.textArea) { - return; - } - var minRows = autosize ? autosize.minRows : null; - var maxRows = autosize ? autosize.maxRows : null; - var textareaStyles = (0, _calculateNodeHeight2['default'])(this.$refs.textArea, false, minRows, maxRows); - this.textareaStyles = textareaStyles; - }, - getTextAreaClassName: function getTextAreaClassName() { - var _ref; +/***/ "./node_modules/graphql/jsutils/isObjectLike.mjs": +/*!*******************************************************!*\ + !*** ./node_modules/graphql/jsutils/isObjectLike.mjs ***! + \*******************************************************/ +/*! exports provided: default */ +/***/ (function(__webpack_module__, __webpack_exports__, __webpack_require__) { - var _$props2 = this.$props, - prefixCls = _$props2.prefixCls, - disabled = _$props2.disabled; +"use strict"; +__webpack_require__.r(__webpack_exports__); +/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return isObjectLike; }); +function _typeof(obj) { if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); } - return _ref = {}, (0, _defineProperty3['default'])(_ref, prefixCls, true), (0, _defineProperty3['default'])(_ref, prefixCls + '-disabled', disabled), _ref; - }, - handleTextareaChange: function handleTextareaChange(e) { - if (!(0, _propsUtil2['default'])(this, 'value')) { - this.stateValue = e.target.value; - this.resizeTextarea(); - } else { - this.$forceUpdate(); - } - if (!e.target.composing) { - this.$emit('change.value', e.target.value); - } - this.$emit('change', e); - this.$emit('input', e); - }, - focus: function focus() { - this.$refs.textArea.focus(); - }, - blur: function blur() { - this.$refs.textArea.blur(); - } - }, - render: function render() { - var h = arguments[0]; - var stateValue = this.stateValue, - getTextAreaClassName = this.getTextAreaClassName, - handleKeyDown = this.handleKeyDown, - handleTextareaChange = this.handleTextareaChange, - textareaStyles = this.textareaStyles, - $attrs = this.$attrs, - $listeners = this.$listeners; - - var otherProps = (0, _omit2['default'])(this.$props, ['prefixCls', 'autosize', 'type', 'value', 'defaultValue']); - var textareaProps = { - attrs: (0, _extends3['default'])({}, otherProps, $attrs), - on: (0, _extends3['default'])({}, $listeners, { - keydown: handleKeyDown, - input: handleTextareaChange, - change: noop - }) - }; - if ($listeners['change.value']) { - textareaProps.directives = [{ name: 'ant-input' }]; - } - return h('textarea', (0, _babelHelperVueJsxMergeProps2['default'])([textareaProps, { - domProps: { - 'value': stateValue - }, +/** + * Return true if `value` is object-like. A value is object-like if it's not + * `null` and has a `typeof` result of "object". + */ +function isObjectLike(value) { + return _typeof(value) == 'object' && value !== null; +} - 'class': getTextAreaClassName(), - style: textareaStyles, - ref: 'textArea' - }])); - } -}; /***/ }), -/***/ "./node_modules/ant-design-vue/lib/input/calculateNodeHeight.js": -/*!**********************************************************************!*\ - !*** ./node_modules/ant-design-vue/lib/input/calculateNodeHeight.js ***! - \**********************************************************************/ -/*! no static exports found */ -/***/ (function(module, exports, __webpack_require__) { +/***/ "./node_modules/graphql/jsutils/nodejsCustomInspectSymbol.mjs": +/*!********************************************************************!*\ + !*** ./node_modules/graphql/jsutils/nodejsCustomInspectSymbol.mjs ***! + \********************************************************************/ +/*! exports provided: default */ +/***/ (function(__webpack_module__, __webpack_exports__, __webpack_require__) { "use strict"; +__webpack_require__.r(__webpack_exports__); +var nodejsCustomInspectSymbol = typeof Symbol === 'function' && typeof Symbol.for === 'function' ? Symbol.for('nodejs.util.inspect.custom') : undefined; +/* harmony default export */ __webpack_exports__["default"] = (nodejsCustomInspectSymbol); -Object.defineProperty(exports, "__esModule", { - value: true -}); -exports['default'] = calculateNodeHeight; -// Thanks to https://github.com/andreypopp/react-textarea-autosize/ +/***/ }), + +/***/ "./node_modules/graphql/language/blockString.mjs": +/*!*******************************************************!*\ + !*** ./node_modules/graphql/language/blockString.mjs ***! + \*******************************************************/ +/*! exports provided: dedentBlockStringValue, getBlockStringIndentation, printBlockString */ +/***/ (function(__webpack_module__, __webpack_exports__, __webpack_require__) { +"use strict"; +__webpack_require__.r(__webpack_exports__); +/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "dedentBlockStringValue", function() { return dedentBlockStringValue; }); +/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getBlockStringIndentation", function() { return getBlockStringIndentation; }); +/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "printBlockString", function() { return printBlockString; }); /** - * calculateNodeHeight(uiTextNode, useCache = false) + * Produces the value of a block string from its parsed raw value, similar to + * CoffeeScript's block string, Python's docstring trim or Ruby's strip_heredoc. + * + * This implements the GraphQL spec's BlockStringValue() static algorithm. */ +function dedentBlockStringValue(rawString) { + // Expand a block string's raw value into independent lines. + var lines = rawString.split(/\r\n|[\n\r]/g); // Remove common indentation from all lines but first. -var HIDDEN_TEXTAREA_STYLE = '\n min-height:0 !important;\n max-height:none !important;\n height:0 !important;\n visibility:hidden !important;\n overflow:hidden !important;\n position:absolute !important;\n z-index:-1000 !important;\n top:0 !important;\n right:0 !important\n'; - -var SIZING_STYLE = ['letter-spacing', 'line-height', 'padding-top', 'padding-bottom', 'font-family', 'font-weight', 'font-size', 'text-rendering', 'text-transform', 'width', 'text-indent', 'padding-left', 'padding-right', 'border-width', 'box-sizing']; + var commonIndent = getBlockStringIndentation(lines); -var computedStyleCache = {}; -var hiddenTextarea = void 0; - -function calculateNodeStyling(node) { - var useCache = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false; + if (commonIndent !== 0) { + for (var i = 1; i < lines.length; i++) { + lines[i] = lines[i].slice(commonIndent); + } + } // Remove leading and trailing blank lines. - var nodeRef = node.getAttribute('id') || node.getAttribute('data-reactid') || node.getAttribute('name'); - if (useCache && computedStyleCache[nodeRef]) { - return computedStyleCache[nodeRef]; + while (lines.length > 0 && isBlank(lines[0])) { + lines.shift(); } - var style = window.getComputedStyle(node); + while (lines.length > 0 && isBlank(lines[lines.length - 1])) { + lines.pop(); + } // Return a string of the lines joined with U+000A. - var boxSizing = style.getPropertyValue('box-sizing') || style.getPropertyValue('-moz-box-sizing') || style.getPropertyValue('-webkit-box-sizing'); - var paddingSize = parseFloat(style.getPropertyValue('padding-bottom')) + parseFloat(style.getPropertyValue('padding-top')); + return lines.join('\n'); +} // @internal - var borderSize = parseFloat(style.getPropertyValue('border-bottom-width')) + parseFloat(style.getPropertyValue('border-top-width')); +function getBlockStringIndentation(lines) { + var commonIndent = null; - var sizingStyle = SIZING_STYLE.map(function (name) { - return name + ':' + style.getPropertyValue(name); - }).join(';'); + for (var i = 1; i < lines.length; i++) { + var line = lines[i]; + var indent = leadingWhitespace(line); - var nodeInfo = { - sizingStyle: sizingStyle, - paddingSize: paddingSize, - borderSize: borderSize, - boxSizing: boxSizing - }; + if (indent === line.length) { + continue; // skip empty lines + } - if (useCache && nodeRef) { - computedStyleCache[nodeRef] = nodeInfo; + if (commonIndent === null || indent < commonIndent) { + commonIndent = indent; + + if (commonIndent === 0) { + break; + } + } } - return nodeInfo; + return commonIndent === null ? 0 : commonIndent; } -function calculateNodeHeight(uiTextNode) { - var useCache = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false; - var minRows = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : null; - var maxRows = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : null; - - if (!hiddenTextarea) { - hiddenTextarea = document.createElement('textarea'); - document.body.appendChild(hiddenTextarea); - } +function leadingWhitespace(str) { + var i = 0; - // Fix wrap="off" issue - // https://github.com/ant-design/ant-design/issues/6577 - if (uiTextNode.getAttribute('wrap')) { - hiddenTextarea.setAttribute('wrap', uiTextNode.getAttribute('wrap')); - } else { - hiddenTextarea.removeAttribute('wrap'); + while (i < str.length && (str[i] === ' ' || str[i] === '\t')) { + i++; } - // Copy all CSS properties that have an impact on the height of the content in - // the textbox + return i; +} - var _calculateNodeStyling = calculateNodeStyling(uiTextNode, useCache), - paddingSize = _calculateNodeStyling.paddingSize, - borderSize = _calculateNodeStyling.borderSize, - boxSizing = _calculateNodeStyling.boxSizing, - sizingStyle = _calculateNodeStyling.sizingStyle; +function isBlank(str) { + return leadingWhitespace(str) === str.length; +} +/** + * Print a block string in the indented block form by adding a leading and + * trailing blank line. However, if a block string starts with whitespace and is + * a single-line, adding a leading blank line would strip that whitespace. + */ - // Need to have the overflow attribute to hide the scrollbar otherwise - // text-lines will not calculated properly as the shadow will technically be - // narrower for content +function printBlockString(value) { + var indentation = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : ''; + var preferMultipleLines = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : false; + var isSingleLine = value.indexOf('\n') === -1; + var hasLeadingSpace = value[0] === ' ' || value[0] === '\t'; + var hasTrailingQuote = value[value.length - 1] === '"'; + var printAsMultipleLines = !isSingleLine || hasTrailingQuote || preferMultipleLines; + var result = ''; // Format a multi-line block quote to account for leading space. - hiddenTextarea.setAttribute('style', sizingStyle + ';' + HIDDEN_TEXTAREA_STYLE); - hiddenTextarea.value = uiTextNode.value || uiTextNode.placeholder || ''; + if (printAsMultipleLines && !(isSingleLine && hasLeadingSpace)) { + result += '\n' + indentation; + } - var minHeight = Number.MIN_SAFE_INTEGER; - var maxHeight = Number.MAX_SAFE_INTEGER; - var height = hiddenTextarea.scrollHeight; - var overflowY = void 0; + result += indentation ? value.replace(/\n/g, '\n' + indentation) : value; - if (boxSizing === 'border-box') { - // border-box: add border, since height = content + padding + border - height = height + borderSize; - } else if (boxSizing === 'content-box') { - // remove padding, since height = content - height = height - paddingSize; + if (printAsMultipleLines) { + result += '\n'; } - if (minRows !== null || maxRows !== null) { - // measure height of a textarea with a single row - hiddenTextarea.value = ' '; - var singleRowHeight = hiddenTextarea.scrollHeight - paddingSize; - if (minRows !== null) { - minHeight = singleRowHeight * minRows; - if (boxSizing === 'border-box') { - minHeight = minHeight + paddingSize + borderSize; - } - height = Math.max(minHeight, height); + return '"""' + result.replace(/"""/g, '\\"""') + '"""'; +} + + +/***/ }), + +/***/ "./node_modules/graphql/language/directiveLocation.mjs": +/*!*************************************************************!*\ + !*** ./node_modules/graphql/language/directiveLocation.mjs ***! + \*************************************************************/ +/*! exports provided: DirectiveLocation */ +/***/ (function(__webpack_module__, __webpack_exports__, __webpack_require__) { + +"use strict"; +__webpack_require__.r(__webpack_exports__); +/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DirectiveLocation", function() { return DirectiveLocation; }); +/** + * The set of allowed directive location values. + */ +var DirectiveLocation = Object.freeze({ + // Request Definitions + QUERY: 'QUERY', + MUTATION: 'MUTATION', + SUBSCRIPTION: 'SUBSCRIPTION', + FIELD: 'FIELD', + FRAGMENT_DEFINITION: 'FRAGMENT_DEFINITION', + FRAGMENT_SPREAD: 'FRAGMENT_SPREAD', + INLINE_FRAGMENT: 'INLINE_FRAGMENT', + VARIABLE_DEFINITION: 'VARIABLE_DEFINITION', + // Type System Definitions + SCHEMA: 'SCHEMA', + SCALAR: 'SCALAR', + OBJECT: 'OBJECT', + FIELD_DEFINITION: 'FIELD_DEFINITION', + ARGUMENT_DEFINITION: 'ARGUMENT_DEFINITION', + INTERFACE: 'INTERFACE', + UNION: 'UNION', + ENUM: 'ENUM', + ENUM_VALUE: 'ENUM_VALUE', + INPUT_OBJECT: 'INPUT_OBJECT', + INPUT_FIELD_DEFINITION: 'INPUT_FIELD_DEFINITION' +}); +/** + * The enum type representing the directive location values. + */ + + +/***/ }), + +/***/ "./node_modules/graphql/language/kinds.mjs": +/*!*************************************************!*\ + !*** ./node_modules/graphql/language/kinds.mjs ***! + \*************************************************/ +/*! exports provided: Kind */ +/***/ (function(__webpack_module__, __webpack_exports__, __webpack_require__) { + +"use strict"; +__webpack_require__.r(__webpack_exports__); +/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Kind", function() { return Kind; }); +/** + * The set of allowed kind values for AST nodes. + */ +var Kind = Object.freeze({ + // Name + NAME: 'Name', + // Document + DOCUMENT: 'Document', + OPERATION_DEFINITION: 'OperationDefinition', + VARIABLE_DEFINITION: 'VariableDefinition', + SELECTION_SET: 'SelectionSet', + FIELD: 'Field', + ARGUMENT: 'Argument', + // Fragments + FRAGMENT_SPREAD: 'FragmentSpread', + INLINE_FRAGMENT: 'InlineFragment', + FRAGMENT_DEFINITION: 'FragmentDefinition', + // Values + VARIABLE: 'Variable', + INT: 'IntValue', + FLOAT: 'FloatValue', + STRING: 'StringValue', + BOOLEAN: 'BooleanValue', + NULL: 'NullValue', + ENUM: 'EnumValue', + LIST: 'ListValue', + OBJECT: 'ObjectValue', + OBJECT_FIELD: 'ObjectField', + // Directives + DIRECTIVE: 'Directive', + // Types + NAMED_TYPE: 'NamedType', + LIST_TYPE: 'ListType', + NON_NULL_TYPE: 'NonNullType', + // Type System Definitions + SCHEMA_DEFINITION: 'SchemaDefinition', + OPERATION_TYPE_DEFINITION: 'OperationTypeDefinition', + // Type Definitions + SCALAR_TYPE_DEFINITION: 'ScalarTypeDefinition', + OBJECT_TYPE_DEFINITION: 'ObjectTypeDefinition', + FIELD_DEFINITION: 'FieldDefinition', + INPUT_VALUE_DEFINITION: 'InputValueDefinition', + INTERFACE_TYPE_DEFINITION: 'InterfaceTypeDefinition', + UNION_TYPE_DEFINITION: 'UnionTypeDefinition', + ENUM_TYPE_DEFINITION: 'EnumTypeDefinition', + ENUM_VALUE_DEFINITION: 'EnumValueDefinition', + INPUT_OBJECT_TYPE_DEFINITION: 'InputObjectTypeDefinition', + // Directive Definitions + DIRECTIVE_DEFINITION: 'DirectiveDefinition', + // Type System Extensions + SCHEMA_EXTENSION: 'SchemaExtension', + // Type Extensions + SCALAR_TYPE_EXTENSION: 'ScalarTypeExtension', + OBJECT_TYPE_EXTENSION: 'ObjectTypeExtension', + INTERFACE_TYPE_EXTENSION: 'InterfaceTypeExtension', + UNION_TYPE_EXTENSION: 'UnionTypeExtension', + ENUM_TYPE_EXTENSION: 'EnumTypeExtension', + INPUT_OBJECT_TYPE_EXTENSION: 'InputObjectTypeExtension' +}); +/** + * The enum type representing the possible kind values of AST nodes. + */ + + +/***/ }), + +/***/ "./node_modules/graphql/language/lexer.mjs": +/*!*************************************************!*\ + !*** ./node_modules/graphql/language/lexer.mjs ***! + \*************************************************/ +/*! exports provided: createLexer, isPunctuatorToken */ +/***/ (function(__webpack_module__, __webpack_exports__, __webpack_require__) { + +"use strict"; +__webpack_require__.r(__webpack_exports__); +/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "createLexer", function() { return createLexer; }); +/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "isPunctuatorToken", function() { return isPunctuatorToken; }); +/* harmony import */ var _jsutils_defineToJSON__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../jsutils/defineToJSON */ "./node_modules/graphql/jsutils/defineToJSON.mjs"); +/* harmony import */ var _error_syntaxError__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../error/syntaxError */ "./node_modules/graphql/error/syntaxError.mjs"); +/* harmony import */ var _blockString__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./blockString */ "./node_modules/graphql/language/blockString.mjs"); +/* harmony import */ var _tokenKind__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./tokenKind */ "./node_modules/graphql/language/tokenKind.mjs"); + + + + +/** + * Given a Source object, this returns a Lexer for that source. + * A Lexer is a stateful stream generator in that every time + * it is advanced, it returns the next token in the Source. Assuming the + * source lexes, the final Token emitted by the lexer will be of kind + * EOF, after which the lexer will repeatedly return the same EOF token + * whenever called. + */ + +function createLexer(source, options) { + var startOfFileToken = new Tok(_tokenKind__WEBPACK_IMPORTED_MODULE_3__["TokenKind"].SOF, 0, 0, 0, 0, null); + var lexer = { + source: source, + options: options, + lastToken: startOfFileToken, + token: startOfFileToken, + line: 1, + lineStart: 0, + advance: advanceLexer, + lookahead: lookahead + }; + return lexer; +} + +function advanceLexer() { + this.lastToken = this.token; + var token = this.token = this.lookahead(); + return token; +} + +function lookahead() { + var token = this.token; + + if (token.kind !== _tokenKind__WEBPACK_IMPORTED_MODULE_3__["TokenKind"].EOF) { + do { + // Note: next is only mutable during parsing, so we cast to allow this. + token = token.next || (token.next = readToken(this, token)); + } while (token.kind === _tokenKind__WEBPACK_IMPORTED_MODULE_3__["TokenKind"].COMMENT); + } + + return token; +} +/** + * The return type of createLexer. + */ + + +// @internal +function isPunctuatorToken(token) { + var kind = token.kind; + return kind === _tokenKind__WEBPACK_IMPORTED_MODULE_3__["TokenKind"].BANG || kind === _tokenKind__WEBPACK_IMPORTED_MODULE_3__["TokenKind"].DOLLAR || kind === _tokenKind__WEBPACK_IMPORTED_MODULE_3__["TokenKind"].AMP || kind === _tokenKind__WEBPACK_IMPORTED_MODULE_3__["TokenKind"].PAREN_L || kind === _tokenKind__WEBPACK_IMPORTED_MODULE_3__["TokenKind"].PAREN_R || kind === _tokenKind__WEBPACK_IMPORTED_MODULE_3__["TokenKind"].SPREAD || kind === _tokenKind__WEBPACK_IMPORTED_MODULE_3__["TokenKind"].COLON || kind === _tokenKind__WEBPACK_IMPORTED_MODULE_3__["TokenKind"].EQUALS || kind === _tokenKind__WEBPACK_IMPORTED_MODULE_3__["TokenKind"].AT || kind === _tokenKind__WEBPACK_IMPORTED_MODULE_3__["TokenKind"].BRACKET_L || kind === _tokenKind__WEBPACK_IMPORTED_MODULE_3__["TokenKind"].BRACKET_R || kind === _tokenKind__WEBPACK_IMPORTED_MODULE_3__["TokenKind"].BRACE_L || kind === _tokenKind__WEBPACK_IMPORTED_MODULE_3__["TokenKind"].PIPE || kind === _tokenKind__WEBPACK_IMPORTED_MODULE_3__["TokenKind"].BRACE_R; +} +/** + * Helper function for constructing the Token object. + */ + +function Tok(kind, start, end, line, column, prev, value) { + this.kind = kind; + this.start = start; + this.end = end; + this.line = line; + this.column = column; + this.value = value; + this.prev = prev; + this.next = null; +} // Print a simplified form when appearing in JSON/util.inspect. + + +Object(_jsutils_defineToJSON__WEBPACK_IMPORTED_MODULE_0__["default"])(Tok, function () { + return { + kind: this.kind, + value: this.value, + line: this.line, + column: this.column + }; +}); + +function printCharCode(code) { + return (// NaN/undefined represents access beyond the end of the file. + isNaN(code) ? _tokenKind__WEBPACK_IMPORTED_MODULE_3__["TokenKind"].EOF : // Trust JSON for ASCII. + code < 0x007f ? JSON.stringify(String.fromCharCode(code)) : // Otherwise print the escaped form. + "\"\\u".concat(('00' + code.toString(16).toUpperCase()).slice(-4), "\"") + ); +} +/** + * Gets the next token from the source starting at the given position. + * + * This skips over whitespace until it finds the next lexable token, then lexes + * punctuators immediately or calls the appropriate helper function for more + * complicated tokens. + */ + + +function readToken(lexer, prev) { + var source = lexer.source; + var body = source.body; + var bodyLength = body.length; + var pos = positionAfterWhitespace(body, prev.end, lexer); + var line = lexer.line; + var col = 1 + pos - lexer.lineStart; + + if (pos >= bodyLength) { + return new Tok(_tokenKind__WEBPACK_IMPORTED_MODULE_3__["TokenKind"].EOF, bodyLength, bodyLength, line, col, prev); + } + + var code = body.charCodeAt(pos); // SourceCharacter + + switch (code) { + // ! + case 33: + return new Tok(_tokenKind__WEBPACK_IMPORTED_MODULE_3__["TokenKind"].BANG, pos, pos + 1, line, col, prev); + // # + + case 35: + return readComment(source, pos, line, col, prev); + // $ + + case 36: + return new Tok(_tokenKind__WEBPACK_IMPORTED_MODULE_3__["TokenKind"].DOLLAR, pos, pos + 1, line, col, prev); + // & + + case 38: + return new Tok(_tokenKind__WEBPACK_IMPORTED_MODULE_3__["TokenKind"].AMP, pos, pos + 1, line, col, prev); + // ( + + case 40: + return new Tok(_tokenKind__WEBPACK_IMPORTED_MODULE_3__["TokenKind"].PAREN_L, pos, pos + 1, line, col, prev); + // ) + + case 41: + return new Tok(_tokenKind__WEBPACK_IMPORTED_MODULE_3__["TokenKind"].PAREN_R, pos, pos + 1, line, col, prev); + // . + + case 46: + if (body.charCodeAt(pos + 1) === 46 && body.charCodeAt(pos + 2) === 46) { + return new Tok(_tokenKind__WEBPACK_IMPORTED_MODULE_3__["TokenKind"].SPREAD, pos, pos + 3, line, col, prev); + } + + break; + // : + + case 58: + return new Tok(_tokenKind__WEBPACK_IMPORTED_MODULE_3__["TokenKind"].COLON, pos, pos + 1, line, col, prev); + // = + + case 61: + return new Tok(_tokenKind__WEBPACK_IMPORTED_MODULE_3__["TokenKind"].EQUALS, pos, pos + 1, line, col, prev); + // @ + + case 64: + return new Tok(_tokenKind__WEBPACK_IMPORTED_MODULE_3__["TokenKind"].AT, pos, pos + 1, line, col, prev); + // [ + + case 91: + return new Tok(_tokenKind__WEBPACK_IMPORTED_MODULE_3__["TokenKind"].BRACKET_L, pos, pos + 1, line, col, prev); + // ] + + case 93: + return new Tok(_tokenKind__WEBPACK_IMPORTED_MODULE_3__["TokenKind"].BRACKET_R, pos, pos + 1, line, col, prev); + // { + + case 123: + return new Tok(_tokenKind__WEBPACK_IMPORTED_MODULE_3__["TokenKind"].BRACE_L, pos, pos + 1, line, col, prev); + // | + + case 124: + return new Tok(_tokenKind__WEBPACK_IMPORTED_MODULE_3__["TokenKind"].PIPE, pos, pos + 1, line, col, prev); + // } + + case 125: + return new Tok(_tokenKind__WEBPACK_IMPORTED_MODULE_3__["TokenKind"].BRACE_R, pos, pos + 1, line, col, prev); + // A-Z _ a-z + + case 65: + case 66: + case 67: + case 68: + case 69: + case 70: + case 71: + case 72: + case 73: + case 74: + case 75: + case 76: + case 77: + case 78: + case 79: + case 80: + case 81: + case 82: + case 83: + case 84: + case 85: + case 86: + case 87: + case 88: + case 89: + case 90: + case 95: + case 97: + case 98: + case 99: + case 100: + case 101: + case 102: + case 103: + case 104: + case 105: + case 106: + case 107: + case 108: + case 109: + case 110: + case 111: + case 112: + case 113: + case 114: + case 115: + case 116: + case 117: + case 118: + case 119: + case 120: + case 121: + case 122: + return readName(source, pos, line, col, prev); + // - 0-9 + + case 45: + case 48: + case 49: + case 50: + case 51: + case 52: + case 53: + case 54: + case 55: + case 56: + case 57: + return readNumber(source, pos, code, line, col, prev); + // " + + case 34: + if (body.charCodeAt(pos + 1) === 34 && body.charCodeAt(pos + 2) === 34) { + return readBlockString(source, pos, line, col, prev, lexer); + } + + return readString(source, pos, line, col, prev); + } + + throw Object(_error_syntaxError__WEBPACK_IMPORTED_MODULE_1__["syntaxError"])(source, pos, unexpectedCharacterMessage(code)); +} +/** + * Report a message that an unexpected character was encountered. + */ + + +function unexpectedCharacterMessage(code) { + if (code < 0x0020 && code !== 0x0009 && code !== 0x000a && code !== 0x000d) { + return "Cannot contain the invalid character ".concat(printCharCode(code), "."); + } + + if (code === 39) { + // ' + return 'Unexpected single quote character (\'), did you mean to use a double quote (")?'; + } + + return "Cannot parse the unexpected character ".concat(printCharCode(code), "."); +} +/** + * Reads from body starting at startPosition until it finds a non-whitespace + * character, then returns the position of that character for lexing. + */ + + +function positionAfterWhitespace(body, startPosition, lexer) { + var bodyLength = body.length; + var position = startPosition; + + while (position < bodyLength) { + var code = body.charCodeAt(position); // tab | space | comma | BOM + + if (code === 9 || code === 32 || code === 44 || code === 0xfeff) { + ++position; + } else if (code === 10) { + // new line + ++position; + ++lexer.line; + lexer.lineStart = position; + } else if (code === 13) { + // carriage return + if (body.charCodeAt(position + 1) === 10) { + position += 2; + } else { + ++position; + } + + ++lexer.line; + lexer.lineStart = position; + } else { + break; + } + } + + return position; +} +/** + * Reads a comment token from the source file. + * + * #[\u0009\u0020-\uFFFF]* + */ + + +function readComment(source, start, line, col, prev) { + var body = source.body; + var code; + var position = start; + + do { + code = body.charCodeAt(++position); + } while (!isNaN(code) && ( // SourceCharacter but not LineTerminator + code > 0x001f || code === 0x0009)); + + return new Tok(_tokenKind__WEBPACK_IMPORTED_MODULE_3__["TokenKind"].COMMENT, start, position, line, col, prev, body.slice(start + 1, position)); +} +/** + * Reads a number token from the source file, either a float + * or an int depending on whether a decimal point appears. + * + * Int: -?(0|[1-9][0-9]*) + * Float: -?(0|[1-9][0-9]*)(\.[0-9]+)?((E|e)(+|-)?[0-9]+)? + */ + + +function readNumber(source, start, firstCode, line, col, prev) { + var body = source.body; + var code = firstCode; + var position = start; + var isFloat = false; + + if (code === 45) { + // - + code = body.charCodeAt(++position); + } + + if (code === 48) { + // 0 + code = body.charCodeAt(++position); + + if (code >= 48 && code <= 57) { + throw Object(_error_syntaxError__WEBPACK_IMPORTED_MODULE_1__["syntaxError"])(source, position, "Invalid number, unexpected digit after 0: ".concat(printCharCode(code), ".")); + } + } else { + position = readDigits(source, position, code); + code = body.charCodeAt(position); + } + + if (code === 46) { + // . + isFloat = true; + code = body.charCodeAt(++position); + position = readDigits(source, position, code); + code = body.charCodeAt(position); + } + + if (code === 69 || code === 101) { + // E e + isFloat = true; + code = body.charCodeAt(++position); + + if (code === 43 || code === 45) { + // + - + code = body.charCodeAt(++position); + } + + position = readDigits(source, position, code); + code = body.charCodeAt(position); + } // Numbers cannot be followed by . or e + + + if (code === 46 || code === 69 || code === 101) { + throw Object(_error_syntaxError__WEBPACK_IMPORTED_MODULE_1__["syntaxError"])(source, position, "Invalid number, expected digit but got: ".concat(printCharCode(code), ".")); + } + + return new Tok(isFloat ? _tokenKind__WEBPACK_IMPORTED_MODULE_3__["TokenKind"].FLOAT : _tokenKind__WEBPACK_IMPORTED_MODULE_3__["TokenKind"].INT, start, position, line, col, prev, body.slice(start, position)); +} +/** + * Returns the new position in the source after reading digits. + */ + + +function readDigits(source, start, firstCode) { + var body = source.body; + var position = start; + var code = firstCode; + + if (code >= 48 && code <= 57) { + // 0 - 9 + do { + code = body.charCodeAt(++position); + } while (code >= 48 && code <= 57); // 0 - 9 + + + return position; + } + + throw Object(_error_syntaxError__WEBPACK_IMPORTED_MODULE_1__["syntaxError"])(source, position, "Invalid number, expected digit but got: ".concat(printCharCode(code), ".")); +} +/** + * Reads a string token from the source file. + * + * "([^"\\\u000A\u000D]|(\\(u[0-9a-fA-F]{4}|["\\/bfnrt])))*" + */ + + +function readString(source, start, line, col, prev) { + var body = source.body; + var position = start + 1; + var chunkStart = position; + var code = 0; + var value = ''; + + while (position < body.length && !isNaN(code = body.charCodeAt(position)) && // not LineTerminator + code !== 0x000a && code !== 0x000d) { + // Closing Quote (") + if (code === 34) { + value += body.slice(chunkStart, position); + return new Tok(_tokenKind__WEBPACK_IMPORTED_MODULE_3__["TokenKind"].STRING, start, position + 1, line, col, prev, value); + } // SourceCharacter + + + if (code < 0x0020 && code !== 0x0009) { + throw Object(_error_syntaxError__WEBPACK_IMPORTED_MODULE_1__["syntaxError"])(source, position, "Invalid character within String: ".concat(printCharCode(code), ".")); + } + + ++position; + + if (code === 92) { + // \ + value += body.slice(chunkStart, position - 1); + code = body.charCodeAt(position); + + switch (code) { + case 34: + value += '"'; + break; + + case 47: + value += '/'; + break; + + case 92: + value += '\\'; + break; + + case 98: + value += '\b'; + break; + + case 102: + value += '\f'; + break; + + case 110: + value += '\n'; + break; + + case 114: + value += '\r'; + break; + + case 116: + value += '\t'; + break; + + case 117: + { + // uXXXX + var charCode = uniCharCode(body.charCodeAt(position + 1), body.charCodeAt(position + 2), body.charCodeAt(position + 3), body.charCodeAt(position + 4)); + + if (charCode < 0) { + var invalidSequence = body.slice(position + 1, position + 5); + throw Object(_error_syntaxError__WEBPACK_IMPORTED_MODULE_1__["syntaxError"])(source, position, "Invalid character escape sequence: \\u".concat(invalidSequence, ".")); + } + + value += String.fromCharCode(charCode); + position += 4; + break; + } + + default: + throw Object(_error_syntaxError__WEBPACK_IMPORTED_MODULE_1__["syntaxError"])(source, position, "Invalid character escape sequence: \\".concat(String.fromCharCode(code), ".")); + } + + ++position; + chunkStart = position; + } + } + + throw Object(_error_syntaxError__WEBPACK_IMPORTED_MODULE_1__["syntaxError"])(source, position, 'Unterminated string.'); +} +/** + * Reads a block string token from the source file. + * + * """("?"?(\\"""|\\(?!=""")|[^"\\]))*""" + */ + + +function readBlockString(source, start, line, col, prev, lexer) { + var body = source.body; + var position = start + 3; + var chunkStart = position; + var code = 0; + var rawValue = ''; + + while (position < body.length && !isNaN(code = body.charCodeAt(position))) { + // Closing Triple-Quote (""") + if (code === 34 && body.charCodeAt(position + 1) === 34 && body.charCodeAt(position + 2) === 34) { + rawValue += body.slice(chunkStart, position); + return new Tok(_tokenKind__WEBPACK_IMPORTED_MODULE_3__["TokenKind"].BLOCK_STRING, start, position + 3, line, col, prev, Object(_blockString__WEBPACK_IMPORTED_MODULE_2__["dedentBlockStringValue"])(rawValue)); + } // SourceCharacter + + + if (code < 0x0020 && code !== 0x0009 && code !== 0x000a && code !== 0x000d) { + throw Object(_error_syntaxError__WEBPACK_IMPORTED_MODULE_1__["syntaxError"])(source, position, "Invalid character within String: ".concat(printCharCode(code), ".")); } - if (maxRows !== null) { - maxHeight = singleRowHeight * maxRows; - if (boxSizing === 'border-box') { - maxHeight = maxHeight + paddingSize + borderSize; + + if (code === 10) { + // new line + ++position; + ++lexer.line; + lexer.lineStart = position; + } else if (code === 13) { + // carriage return + if (body.charCodeAt(position + 1) === 10) { + position += 2; + } else { + ++position; } - overflowY = height > maxHeight ? '' : 'hidden'; - height = Math.min(maxHeight, height); + + ++lexer.line; + lexer.lineStart = position; + } else if ( // Escape Triple-Quote (\""") + code === 92 && body.charCodeAt(position + 1) === 34 && body.charCodeAt(position + 2) === 34 && body.charCodeAt(position + 3) === 34) { + rawValue += body.slice(chunkStart, position) + '"""'; + position += 4; + chunkStart = position; + } else { + ++position; } } - // Remove scroll bar flash when autosize without maxRows - // donot remove in vue - if (!maxRows) { - overflowY = 'hidden'; + + throw Object(_error_syntaxError__WEBPACK_IMPORTED_MODULE_1__["syntaxError"])(source, position, 'Unterminated string.'); +} +/** + * Converts four hexadecimal chars to the integer that the + * string represents. For example, uniCharCode('0','0','0','f') + * will return 15, and uniCharCode('0','0','f','f') returns 255. + * + * Returns a negative number on error, if a char was invalid. + * + * This is implemented by noting that char2hex() returns -1 on error, + * which means the result of ORing the char2hex() will also be negative. + */ + + +function uniCharCode(a, b, c, d) { + return char2hex(a) << 12 | char2hex(b) << 8 | char2hex(c) << 4 | char2hex(d); +} +/** + * Converts a hex character to its integer value. + * '0' becomes 0, '9' becomes 9 + * 'A' becomes 10, 'F' becomes 15 + * 'a' becomes 10, 'f' becomes 15 + * + * Returns -1 on error. + */ + + +function char2hex(a) { + return a >= 48 && a <= 57 ? a - 48 // 0-9 + : a >= 65 && a <= 70 ? a - 55 // A-F + : a >= 97 && a <= 102 ? a - 87 // a-f + : -1; +} +/** + * Reads an alphanumeric + underscore name from the source. + * + * [_A-Za-z][_0-9A-Za-z]* + */ + + +function readName(source, start, line, col, prev) { + var body = source.body; + var bodyLength = body.length; + var position = start + 1; + var code = 0; + + while (position !== bodyLength && !isNaN(code = body.charCodeAt(position)) && (code === 95 || // _ + code >= 48 && code <= 57 || // 0-9 + code >= 65 && code <= 90 || // A-Z + code >= 97 && code <= 122) // a-z + ) { + ++position; + } + + return new Tok(_tokenKind__WEBPACK_IMPORTED_MODULE_3__["TokenKind"].NAME, start, position, line, col, prev, body.slice(start, position)); +} + + +/***/ }), + +/***/ "./node_modules/graphql/language/location.mjs": +/*!****************************************************!*\ + !*** ./node_modules/graphql/language/location.mjs ***! + \****************************************************/ +/*! exports provided: getLocation */ +/***/ (function(__webpack_module__, __webpack_exports__, __webpack_require__) { + +"use strict"; +__webpack_require__.r(__webpack_exports__); +/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getLocation", function() { return getLocation; }); +/** + * Represents a location in a Source. + */ + +/** + * Takes a Source and a UTF-8 character offset, and returns the corresponding + * line and column as a SourceLocation. + */ +function getLocation(source, position) { + var lineRegexp = /\r\n|[\n\r]/g; + var line = 1; + var column = position + 1; + var match; + + while ((match = lineRegexp.exec(source.body)) && match.index < position) { + line += 1; + column = position + 1 - (match.index + match[0].length); } + return { - height: height + 'px', - minHeight: minHeight + 'px', - maxHeight: maxHeight + 'px', - overflowY: overflowY + line: line, + column: column }; } + /***/ }), -/***/ "./node_modules/ant-design-vue/lib/input/index.js": -/*!********************************************************!*\ - !*** ./node_modules/ant-design-vue/lib/input/index.js ***! - \********************************************************/ -/*! no static exports found */ -/***/ (function(module, exports, __webpack_require__) { +/***/ "./node_modules/graphql/language/parser.mjs": +/*!**************************************************!*\ + !*** ./node_modules/graphql/language/parser.mjs ***! + \**************************************************/ +/*! exports provided: parse, parseValue, parseType */ +/***/ (function(__webpack_module__, __webpack_exports__, __webpack_require__) { "use strict"; +__webpack_require__.r(__webpack_exports__); +/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "parse", function() { return parse; }); +/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "parseValue", function() { return parseValue; }); +/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "parseType", function() { return parseType; }); +/* harmony import */ var _jsutils_inspect__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../jsutils/inspect */ "./node_modules/graphql/jsutils/inspect.mjs"); +/* harmony import */ var _jsutils_devAssert__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../jsutils/devAssert */ "./node_modules/graphql/jsutils/devAssert.mjs"); +/* harmony import */ var _jsutils_defineToJSON__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../jsutils/defineToJSON */ "./node_modules/graphql/jsutils/defineToJSON.mjs"); +/* harmony import */ var _error_syntaxError__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../error/syntaxError */ "./node_modules/graphql/error/syntaxError.mjs"); +/* harmony import */ var _kinds__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./kinds */ "./node_modules/graphql/language/kinds.mjs"); +/* harmony import */ var _source__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./source */ "./node_modules/graphql/language/source.mjs"); +/* harmony import */ var _lexer__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./lexer */ "./node_modules/graphql/language/lexer.mjs"); +/* harmony import */ var _directiveLocation__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./directiveLocation */ "./node_modules/graphql/language/directiveLocation.mjs"); +/* harmony import */ var _tokenKind__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./tokenKind */ "./node_modules/graphql/language/tokenKind.mjs"); -Object.defineProperty(exports, "__esModule", { - value: true -}); -var _vue = __webpack_require__(/*! vue */ "./node_modules/vue/dist/vue.common.js"); -var _vue2 = _interopRequireDefault(_vue); -var _Input = __webpack_require__(/*! ./Input */ "./node_modules/ant-design-vue/lib/input/Input.js"); -var _Input2 = _interopRequireDefault(_Input); -var _Group = __webpack_require__(/*! ./Group */ "./node_modules/ant-design-vue/lib/input/Group.js"); -var _Group2 = _interopRequireDefault(_Group); -var _Search = __webpack_require__(/*! ./Search */ "./node_modules/ant-design-vue/lib/input/Search.js"); -var _Search2 = _interopRequireDefault(_Search); +/** + * Given a GraphQL source, parses it into a Document. + * Throws GraphQLError if a syntax error is encountered. + */ +function parse(source, options) { + var parser = new Parser(source, options); + return parser.parseDocument(); +} +/** + * Given a string containing a GraphQL value (ex. `[42]`), parse the AST for + * that value. + * Throws GraphQLError if a syntax error is encountered. + * + * This is useful within tools that operate upon GraphQL Values directly and + * in isolation of complete GraphQL documents. + * + * Consider providing the results to the utility function: valueFromAST(). + */ -var _TextArea = __webpack_require__(/*! ./TextArea */ "./node_modules/ant-design-vue/lib/input/TextArea.js"); +function parseValue(source, options) { + var parser = new Parser(source, options); + parser.expectToken(_tokenKind__WEBPACK_IMPORTED_MODULE_8__["TokenKind"].SOF); + var value = parser.parseValueLiteral(false); + parser.expectToken(_tokenKind__WEBPACK_IMPORTED_MODULE_8__["TokenKind"].EOF); + return value; +} +/** + * Given a string containing a GraphQL Type (ex. `[Int!]`), parse the AST for + * that type. + * Throws GraphQLError if a syntax error is encountered. + * + * This is useful within tools that operate upon GraphQL Types directly and + * in isolation of complete GraphQL documents. + * + * Consider providing the results to the utility function: typeFromAST(). + */ -var _TextArea2 = _interopRequireDefault(_TextArea); +function parseType(source, options) { + var parser = new Parser(source, options); + parser.expectToken(_tokenKind__WEBPACK_IMPORTED_MODULE_8__["TokenKind"].SOF); + var type = parser.parseTypeReference(); + parser.expectToken(_tokenKind__WEBPACK_IMPORTED_MODULE_8__["TokenKind"].EOF); + return type; +} -var _antInputDirective = __webpack_require__(/*! ../_util/antInputDirective */ "./node_modules/ant-design-vue/lib/_util/antInputDirective.js"); +var Parser = +/*#__PURE__*/ +function () { + function Parser(source, options) { + var sourceObj = typeof source === 'string' ? new _source__WEBPACK_IMPORTED_MODULE_5__["Source"](source) : source; + sourceObj instanceof _source__WEBPACK_IMPORTED_MODULE_5__["Source"] || Object(_jsutils_devAssert__WEBPACK_IMPORTED_MODULE_1__["default"])(0, "Must provide Source. Received: ".concat(Object(_jsutils_inspect__WEBPACK_IMPORTED_MODULE_0__["default"])(sourceObj))); + this._lexer = Object(_lexer__WEBPACK_IMPORTED_MODULE_6__["createLexer"])(sourceObj); + this._options = options || {}; + } + /** + * Converts a name lex token into a name parse node. + */ -var _antInputDirective2 = _interopRequireDefault(_antInputDirective); -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } + var _proto = Parser.prototype; -_vue2['default'].use(_antInputDirective2['default']); + _proto.parseName = function parseName() { + var token = this.expectToken(_tokenKind__WEBPACK_IMPORTED_MODULE_8__["TokenKind"].NAME); + return { + kind: _kinds__WEBPACK_IMPORTED_MODULE_4__["Kind"].NAME, + value: token.value, + loc: this.loc(token) + }; + } // Implements the parsing rules in the Document section. -_Input2['default'].Group = _Group2['default']; -_Input2['default'].Search = _Search2['default']; -_Input2['default'].TextArea = _TextArea2['default']; + /** + * Document : Definition+ + */ + ; -/* istanbul ignore next */ -_Input2['default'].install = function (Vue) { - Vue.component(_Input2['default'].name, _Input2['default']); - Vue.component(_Input2['default'].Group.name, _Input2['default'].Group); - Vue.component(_Input2['default'].Search.name, _Input2['default'].Search); - Vue.component(_Input2['default'].TextArea.name, _Input2['default'].TextArea); -}; + _proto.parseDocument = function parseDocument() { + var start = this._lexer.token; + return { + kind: _kinds__WEBPACK_IMPORTED_MODULE_4__["Kind"].DOCUMENT, + definitions: this.many(_tokenKind__WEBPACK_IMPORTED_MODULE_8__["TokenKind"].SOF, this.parseDefinition, _tokenKind__WEBPACK_IMPORTED_MODULE_8__["TokenKind"].EOF), + loc: this.loc(start) + }; + } + /** + * Definition : + * - ExecutableDefinition + * - TypeSystemDefinition + * - TypeSystemExtension + * + * ExecutableDefinition : + * - OperationDefinition + * - FragmentDefinition + */ + ; + + _proto.parseDefinition = function parseDefinition() { + if (this.peek(_tokenKind__WEBPACK_IMPORTED_MODULE_8__["TokenKind"].NAME)) { + switch (this._lexer.token.value) { + case 'query': + case 'mutation': + case 'subscription': + return this.parseOperationDefinition(); + + case 'fragment': + return this.parseFragmentDefinition(); + + case 'schema': + case 'scalar': + case 'type': + case 'interface': + case 'union': + case 'enum': + case 'input': + case 'directive': + return this.parseTypeSystemDefinition(); + + case 'extend': + return this.parseTypeSystemExtension(); + } + } else if (this.peek(_tokenKind__WEBPACK_IMPORTED_MODULE_8__["TokenKind"].BRACE_L)) { + return this.parseOperationDefinition(); + } else if (this.peekDescription()) { + return this.parseTypeSystemDefinition(); + } -exports['default'] = _Input2['default']; + throw this.unexpected(); + } // Implements the parsing rules in the Operations section. + + /** + * OperationDefinition : + * - SelectionSet + * - OperationType Name? VariableDefinitions? Directives? SelectionSet + */ + ; + + _proto.parseOperationDefinition = function parseOperationDefinition() { + var start = this._lexer.token; + + if (this.peek(_tokenKind__WEBPACK_IMPORTED_MODULE_8__["TokenKind"].BRACE_L)) { + return { + kind: _kinds__WEBPACK_IMPORTED_MODULE_4__["Kind"].OPERATION_DEFINITION, + operation: 'query', + name: undefined, + variableDefinitions: [], + directives: [], + selectionSet: this.parseSelectionSet(), + loc: this.loc(start) + }; + } -/***/ }), + var operation = this.parseOperationType(); + var name; -/***/ "./node_modules/ant-design-vue/lib/input/inputProps.js": -/*!*************************************************************!*\ - !*** ./node_modules/ant-design-vue/lib/input/inputProps.js ***! - \*************************************************************/ -/*! no static exports found */ -/***/ (function(module, exports, __webpack_require__) { + if (this.peek(_tokenKind__WEBPACK_IMPORTED_MODULE_8__["TokenKind"].NAME)) { + name = this.parseName(); + } -"use strict"; + return { + kind: _kinds__WEBPACK_IMPORTED_MODULE_4__["Kind"].OPERATION_DEFINITION, + operation: operation, + name: name, + variableDefinitions: this.parseVariableDefinitions(), + directives: this.parseDirectives(false), + selectionSet: this.parseSelectionSet(), + loc: this.loc(start) + }; + } + /** + * OperationType : one of query mutation subscription + */ + ; + _proto.parseOperationType = function parseOperationType() { + var operationToken = this.expectToken(_tokenKind__WEBPACK_IMPORTED_MODULE_8__["TokenKind"].NAME); -Object.defineProperty(exports, "__esModule", { - value: true -}); + switch (operationToken.value) { + case 'query': + return 'query'; -var _vueTypes = __webpack_require__(/*! ../_util/vue-types */ "./node_modules/ant-design-vue/lib/_util/vue-types/index.js"); + case 'mutation': + return 'mutation'; -var _vueTypes2 = _interopRequireDefault(_vueTypes); + case 'subscription': + return 'subscription'; + } -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } + throw this.unexpected(operationToken); + } + /** + * VariableDefinitions : ( VariableDefinition+ ) + */ + ; + + _proto.parseVariableDefinitions = function parseVariableDefinitions() { + return this.optionalMany(_tokenKind__WEBPACK_IMPORTED_MODULE_8__["TokenKind"].PAREN_L, this.parseVariableDefinition, _tokenKind__WEBPACK_IMPORTED_MODULE_8__["TokenKind"].PAREN_R); + } + /** + * VariableDefinition : Variable : Type DefaultValue? Directives[Const]? + */ + ; + + _proto.parseVariableDefinition = function parseVariableDefinition() { + var start = this._lexer.token; + return { + kind: _kinds__WEBPACK_IMPORTED_MODULE_4__["Kind"].VARIABLE_DEFINITION, + variable: this.parseVariable(), + type: (this.expectToken(_tokenKind__WEBPACK_IMPORTED_MODULE_8__["TokenKind"].COLON), this.parseTypeReference()), + defaultValue: this.expectOptionalToken(_tokenKind__WEBPACK_IMPORTED_MODULE_8__["TokenKind"].EQUALS) ? this.parseValueLiteral(true) : undefined, + directives: this.parseDirectives(true), + loc: this.loc(start) + }; + } + /** + * Variable : $ Name + */ + ; + + _proto.parseVariable = function parseVariable() { + var start = this._lexer.token; + this.expectToken(_tokenKind__WEBPACK_IMPORTED_MODULE_8__["TokenKind"].DOLLAR); + return { + kind: _kinds__WEBPACK_IMPORTED_MODULE_4__["Kind"].VARIABLE, + name: this.parseName(), + loc: this.loc(start) + }; + } + /** + * SelectionSet : { Selection+ } + */ + ; + + _proto.parseSelectionSet = function parseSelectionSet() { + var start = this._lexer.token; + return { + kind: _kinds__WEBPACK_IMPORTED_MODULE_4__["Kind"].SELECTION_SET, + selections: this.many(_tokenKind__WEBPACK_IMPORTED_MODULE_8__["TokenKind"].BRACE_L, this.parseSelection, _tokenKind__WEBPACK_IMPORTED_MODULE_8__["TokenKind"].BRACE_R), + loc: this.loc(start) + }; + } + /** + * Selection : + * - Field + * - FragmentSpread + * - InlineFragment + */ + ; + + _proto.parseSelection = function parseSelection() { + return this.peek(_tokenKind__WEBPACK_IMPORTED_MODULE_8__["TokenKind"].SPREAD) ? this.parseFragment() : this.parseField(); + } + /** + * Field : Alias? Name Arguments? Directives? SelectionSet? + * + * Alias : Name : + */ + ; + + _proto.parseField = function parseField() { + var start = this._lexer.token; + var nameOrAlias = this.parseName(); + var alias; + var name; + + if (this.expectOptionalToken(_tokenKind__WEBPACK_IMPORTED_MODULE_8__["TokenKind"].COLON)) { + alias = nameOrAlias; + name = this.parseName(); + } else { + name = nameOrAlias; + } + + return { + kind: _kinds__WEBPACK_IMPORTED_MODULE_4__["Kind"].FIELD, + alias: alias, + name: name, + arguments: this.parseArguments(false), + directives: this.parseDirectives(false), + selectionSet: this.peek(_tokenKind__WEBPACK_IMPORTED_MODULE_8__["TokenKind"].BRACE_L) ? this.parseSelectionSet() : undefined, + loc: this.loc(start) + }; + } + /** + * Arguments[Const] : ( Argument[?Const]+ ) + */ + ; + + _proto.parseArguments = function parseArguments(isConst) { + var item = isConst ? this.parseConstArgument : this.parseArgument; + return this.optionalMany(_tokenKind__WEBPACK_IMPORTED_MODULE_8__["TokenKind"].PAREN_L, item, _tokenKind__WEBPACK_IMPORTED_MODULE_8__["TokenKind"].PAREN_R); + } + /** + * Argument[Const] : Name : Value[?Const] + */ + ; + + _proto.parseArgument = function parseArgument() { + var start = this._lexer.token; + var name = this.parseName(); + this.expectToken(_tokenKind__WEBPACK_IMPORTED_MODULE_8__["TokenKind"].COLON); + return { + kind: _kinds__WEBPACK_IMPORTED_MODULE_4__["Kind"].ARGUMENT, + name: name, + value: this.parseValueLiteral(false), + loc: this.loc(start) + }; + }; + + _proto.parseConstArgument = function parseConstArgument() { + var start = this._lexer.token; + return { + kind: _kinds__WEBPACK_IMPORTED_MODULE_4__["Kind"].ARGUMENT, + name: this.parseName(), + value: (this.expectToken(_tokenKind__WEBPACK_IMPORTED_MODULE_8__["TokenKind"].COLON), this.parseValueLiteral(true)), + loc: this.loc(start) + }; + } // Implements the parsing rules in the Fragments section. + + /** + * Corresponds to both FragmentSpread and InlineFragment in the spec. + * + * FragmentSpread : ... FragmentName Directives? + * + * InlineFragment : ... TypeCondition? Directives? SelectionSet + */ + ; + + _proto.parseFragment = function parseFragment() { + var start = this._lexer.token; + this.expectToken(_tokenKind__WEBPACK_IMPORTED_MODULE_8__["TokenKind"].SPREAD); + var hasTypeCondition = this.expectOptionalKeyword('on'); + + if (!hasTypeCondition && this.peek(_tokenKind__WEBPACK_IMPORTED_MODULE_8__["TokenKind"].NAME)) { + return { + kind: _kinds__WEBPACK_IMPORTED_MODULE_4__["Kind"].FRAGMENT_SPREAD, + name: this.parseFragmentName(), + directives: this.parseDirectives(false), + loc: this.loc(start) + }; + } + + return { + kind: _kinds__WEBPACK_IMPORTED_MODULE_4__["Kind"].INLINE_FRAGMENT, + typeCondition: hasTypeCondition ? this.parseNamedType() : undefined, + directives: this.parseDirectives(false), + selectionSet: this.parseSelectionSet(), + loc: this.loc(start) + }; + } + /** + * FragmentDefinition : + * - fragment FragmentName on TypeCondition Directives? SelectionSet + * + * TypeCondition : NamedType + */ + ; + + _proto.parseFragmentDefinition = function parseFragmentDefinition() { + var start = this._lexer.token; + this.expectKeyword('fragment'); // Experimental support for defining variables within fragments changes + // the grammar of FragmentDefinition: + // - fragment FragmentName VariableDefinitions? on TypeCondition Directives? SelectionSet + + if (this._options.experimentalFragmentVariables) { + return { + kind: _kinds__WEBPACK_IMPORTED_MODULE_4__["Kind"].FRAGMENT_DEFINITION, + name: this.parseFragmentName(), + variableDefinitions: this.parseVariableDefinitions(), + typeCondition: (this.expectKeyword('on'), this.parseNamedType()), + directives: this.parseDirectives(false), + selectionSet: this.parseSelectionSet(), + loc: this.loc(start) + }; + } + + return { + kind: _kinds__WEBPACK_IMPORTED_MODULE_4__["Kind"].FRAGMENT_DEFINITION, + name: this.parseFragmentName(), + typeCondition: (this.expectKeyword('on'), this.parseNamedType()), + directives: this.parseDirectives(false), + selectionSet: this.parseSelectionSet(), + loc: this.loc(start) + }; + } + /** + * FragmentName : Name but not `on` + */ + ; + + _proto.parseFragmentName = function parseFragmentName() { + if (this._lexer.token.value === 'on') { + throw this.unexpected(); + } + + return this.parseName(); + } // Implements the parsing rules in the Values section. + + /** + * Value[Const] : + * - [~Const] Variable + * - IntValue + * - FloatValue + * - StringValue + * - BooleanValue + * - NullValue + * - EnumValue + * - ListValue[?Const] + * - ObjectValue[?Const] + * + * BooleanValue : one of `true` `false` + * + * NullValue : `null` + * + * EnumValue : Name but not `true`, `false` or `null` + */ + ; + + _proto.parseValueLiteral = function parseValueLiteral(isConst) { + var token = this._lexer.token; + + switch (token.kind) { + case _tokenKind__WEBPACK_IMPORTED_MODULE_8__["TokenKind"].BRACKET_L: + return this.parseList(isConst); + + case _tokenKind__WEBPACK_IMPORTED_MODULE_8__["TokenKind"].BRACE_L: + return this.parseObject(isConst); + + case _tokenKind__WEBPACK_IMPORTED_MODULE_8__["TokenKind"].INT: + this._lexer.advance(); + + return { + kind: _kinds__WEBPACK_IMPORTED_MODULE_4__["Kind"].INT, + value: token.value, + loc: this.loc(token) + }; + + case _tokenKind__WEBPACK_IMPORTED_MODULE_8__["TokenKind"].FLOAT: + this._lexer.advance(); + + return { + kind: _kinds__WEBPACK_IMPORTED_MODULE_4__["Kind"].FLOAT, + value: token.value, + loc: this.loc(token) + }; + + case _tokenKind__WEBPACK_IMPORTED_MODULE_8__["TokenKind"].STRING: + case _tokenKind__WEBPACK_IMPORTED_MODULE_8__["TokenKind"].BLOCK_STRING: + return this.parseStringLiteral(); + + case _tokenKind__WEBPACK_IMPORTED_MODULE_8__["TokenKind"].NAME: + if (token.value === 'true' || token.value === 'false') { + this._lexer.advance(); + + return { + kind: _kinds__WEBPACK_IMPORTED_MODULE_4__["Kind"].BOOLEAN, + value: token.value === 'true', + loc: this.loc(token) + }; + } else if (token.value === 'null') { + this._lexer.advance(); + + return { + kind: _kinds__WEBPACK_IMPORTED_MODULE_4__["Kind"].NULL, + loc: this.loc(token) + }; + } + + this._lexer.advance(); + + return { + kind: _kinds__WEBPACK_IMPORTED_MODULE_4__["Kind"].ENUM, + value: token.value, + loc: this.loc(token) + }; + + case _tokenKind__WEBPACK_IMPORTED_MODULE_8__["TokenKind"].DOLLAR: + if (!isConst) { + return this.parseVariable(); + } + + break; + } + + throw this.unexpected(); + }; + + _proto.parseStringLiteral = function parseStringLiteral() { + var token = this._lexer.token; + + this._lexer.advance(); + + return { + kind: _kinds__WEBPACK_IMPORTED_MODULE_4__["Kind"].STRING, + value: token.value, + block: token.kind === _tokenKind__WEBPACK_IMPORTED_MODULE_8__["TokenKind"].BLOCK_STRING, + loc: this.loc(token) + }; + } + /** + * ListValue[Const] : + * - [ ] + * - [ Value[?Const]+ ] + */ + ; + + _proto.parseList = function parseList(isConst) { + var _this = this; + + var start = this._lexer.token; + + var item = function item() { + return _this.parseValueLiteral(isConst); + }; + + return { + kind: _kinds__WEBPACK_IMPORTED_MODULE_4__["Kind"].LIST, + values: this.any(_tokenKind__WEBPACK_IMPORTED_MODULE_8__["TokenKind"].BRACKET_L, item, _tokenKind__WEBPACK_IMPORTED_MODULE_8__["TokenKind"].BRACKET_R), + loc: this.loc(start) + }; + } + /** + * ObjectValue[Const] : + * - { } + * - { ObjectField[?Const]+ } + */ + ; + + _proto.parseObject = function parseObject(isConst) { + var _this2 = this; + + var start = this._lexer.token; + + var item = function item() { + return _this2.parseObjectField(isConst); + }; + + return { + kind: _kinds__WEBPACK_IMPORTED_MODULE_4__["Kind"].OBJECT, + fields: this.any(_tokenKind__WEBPACK_IMPORTED_MODULE_8__["TokenKind"].BRACE_L, item, _tokenKind__WEBPACK_IMPORTED_MODULE_8__["TokenKind"].BRACE_R), + loc: this.loc(start) + }; + } + /** + * ObjectField[Const] : Name : Value[?Const] + */ + ; + + _proto.parseObjectField = function parseObjectField(isConst) { + var start = this._lexer.token; + var name = this.parseName(); + this.expectToken(_tokenKind__WEBPACK_IMPORTED_MODULE_8__["TokenKind"].COLON); + return { + kind: _kinds__WEBPACK_IMPORTED_MODULE_4__["Kind"].OBJECT_FIELD, + name: name, + value: this.parseValueLiteral(isConst), + loc: this.loc(start) + }; + } // Implements the parsing rules in the Directives section. + + /** + * Directives[Const] : Directive[?Const]+ + */ + ; + + _proto.parseDirectives = function parseDirectives(isConst) { + var directives = []; + + while (this.peek(_tokenKind__WEBPACK_IMPORTED_MODULE_8__["TokenKind"].AT)) { + directives.push(this.parseDirective(isConst)); + } + + return directives; + } + /** + * Directive[Const] : @ Name Arguments[?Const]? + */ + ; + + _proto.parseDirective = function parseDirective(isConst) { + var start = this._lexer.token; + this.expectToken(_tokenKind__WEBPACK_IMPORTED_MODULE_8__["TokenKind"].AT); + return { + kind: _kinds__WEBPACK_IMPORTED_MODULE_4__["Kind"].DIRECTIVE, + name: this.parseName(), + arguments: this.parseArguments(isConst), + loc: this.loc(start) + }; + } // Implements the parsing rules in the Types section. + + /** + * Type : + * - NamedType + * - ListType + * - NonNullType + */ + ; + + _proto.parseTypeReference = function parseTypeReference() { + var start = this._lexer.token; + var type; + + if (this.expectOptionalToken(_tokenKind__WEBPACK_IMPORTED_MODULE_8__["TokenKind"].BRACKET_L)) { + type = this.parseTypeReference(); + this.expectToken(_tokenKind__WEBPACK_IMPORTED_MODULE_8__["TokenKind"].BRACKET_R); + type = { + kind: _kinds__WEBPACK_IMPORTED_MODULE_4__["Kind"].LIST_TYPE, + type: type, + loc: this.loc(start) + }; + } else { + type = this.parseNamedType(); + } + + if (this.expectOptionalToken(_tokenKind__WEBPACK_IMPORTED_MODULE_8__["TokenKind"].BANG)) { + return { + kind: _kinds__WEBPACK_IMPORTED_MODULE_4__["Kind"].NON_NULL_TYPE, + type: type, + loc: this.loc(start) + }; + } + + return type; + } + /** + * NamedType : Name + */ + ; + + _proto.parseNamedType = function parseNamedType() { + var start = this._lexer.token; + return { + kind: _kinds__WEBPACK_IMPORTED_MODULE_4__["Kind"].NAMED_TYPE, + name: this.parseName(), + loc: this.loc(start) + }; + } // Implements the parsing rules in the Type Definition section. + + /** + * TypeSystemDefinition : + * - SchemaDefinition + * - TypeDefinition + * - DirectiveDefinition + * + * TypeDefinition : + * - ScalarTypeDefinition + * - ObjectTypeDefinition + * - InterfaceTypeDefinition + * - UnionTypeDefinition + * - EnumTypeDefinition + * - InputObjectTypeDefinition + */ + ; + + _proto.parseTypeSystemDefinition = function parseTypeSystemDefinition() { + // Many definitions begin with a description and require a lookahead. + var keywordToken = this.peekDescription() ? this._lexer.lookahead() : this._lexer.token; + + if (keywordToken.kind === _tokenKind__WEBPACK_IMPORTED_MODULE_8__["TokenKind"].NAME) { + switch (keywordToken.value) { + case 'schema': + return this.parseSchemaDefinition(); + + case 'scalar': + return this.parseScalarTypeDefinition(); + + case 'type': + return this.parseObjectTypeDefinition(); + + case 'interface': + return this.parseInterfaceTypeDefinition(); + + case 'union': + return this.parseUnionTypeDefinition(); + + case 'enum': + return this.parseEnumTypeDefinition(); + + case 'input': + return this.parseInputObjectTypeDefinition(); + + case 'directive': + return this.parseDirectiveDefinition(); + } + } + + throw this.unexpected(keywordToken); + }; + + _proto.peekDescription = function peekDescription() { + return this.peek(_tokenKind__WEBPACK_IMPORTED_MODULE_8__["TokenKind"].STRING) || this.peek(_tokenKind__WEBPACK_IMPORTED_MODULE_8__["TokenKind"].BLOCK_STRING); + } + /** + * Description : StringValue + */ + ; + + _proto.parseDescription = function parseDescription() { + if (this.peekDescription()) { + return this.parseStringLiteral(); + } + } + /** + * SchemaDefinition : schema Directives[Const]? { OperationTypeDefinition+ } + */ + ; + + _proto.parseSchemaDefinition = function parseSchemaDefinition() { + var start = this._lexer.token; + this.expectKeyword('schema'); + var directives = this.parseDirectives(true); + var operationTypes = this.many(_tokenKind__WEBPACK_IMPORTED_MODULE_8__["TokenKind"].BRACE_L, this.parseOperationTypeDefinition, _tokenKind__WEBPACK_IMPORTED_MODULE_8__["TokenKind"].BRACE_R); + return { + kind: _kinds__WEBPACK_IMPORTED_MODULE_4__["Kind"].SCHEMA_DEFINITION, + directives: directives, + operationTypes: operationTypes, + loc: this.loc(start) + }; + } + /** + * OperationTypeDefinition : OperationType : NamedType + */ + ; + + _proto.parseOperationTypeDefinition = function parseOperationTypeDefinition() { + var start = this._lexer.token; + var operation = this.parseOperationType(); + this.expectToken(_tokenKind__WEBPACK_IMPORTED_MODULE_8__["TokenKind"].COLON); + var type = this.parseNamedType(); + return { + kind: _kinds__WEBPACK_IMPORTED_MODULE_4__["Kind"].OPERATION_TYPE_DEFINITION, + operation: operation, + type: type, + loc: this.loc(start) + }; + } + /** + * ScalarTypeDefinition : Description? scalar Name Directives[Const]? + */ + ; + + _proto.parseScalarTypeDefinition = function parseScalarTypeDefinition() { + var start = this._lexer.token; + var description = this.parseDescription(); + this.expectKeyword('scalar'); + var name = this.parseName(); + var directives = this.parseDirectives(true); + return { + kind: _kinds__WEBPACK_IMPORTED_MODULE_4__["Kind"].SCALAR_TYPE_DEFINITION, + description: description, + name: name, + directives: directives, + loc: this.loc(start) + }; + } + /** + * ObjectTypeDefinition : + * Description? + * type Name ImplementsInterfaces? Directives[Const]? FieldsDefinition? + */ + ; + + _proto.parseObjectTypeDefinition = function parseObjectTypeDefinition() { + var start = this._lexer.token; + var description = this.parseDescription(); + this.expectKeyword('type'); + var name = this.parseName(); + var interfaces = this.parseImplementsInterfaces(); + var directives = this.parseDirectives(true); + var fields = this.parseFieldsDefinition(); + return { + kind: _kinds__WEBPACK_IMPORTED_MODULE_4__["Kind"].OBJECT_TYPE_DEFINITION, + description: description, + name: name, + interfaces: interfaces, + directives: directives, + fields: fields, + loc: this.loc(start) + }; + } + /** + * ImplementsInterfaces : + * - implements `&`? NamedType + * - ImplementsInterfaces & NamedType + */ + ; + + _proto.parseImplementsInterfaces = function parseImplementsInterfaces() { + var types = []; + + if (this.expectOptionalKeyword('implements')) { + // Optional leading ampersand + this.expectOptionalToken(_tokenKind__WEBPACK_IMPORTED_MODULE_8__["TokenKind"].AMP); + + do { + types.push(this.parseNamedType()); + } while (this.expectOptionalToken(_tokenKind__WEBPACK_IMPORTED_MODULE_8__["TokenKind"].AMP) || // Legacy support for the SDL? + this._options.allowLegacySDLImplementsInterfaces && this.peek(_tokenKind__WEBPACK_IMPORTED_MODULE_8__["TokenKind"].NAME)); + } + + return types; + } + /** + * FieldsDefinition : { FieldDefinition+ } + */ + ; + + _proto.parseFieldsDefinition = function parseFieldsDefinition() { + // Legacy support for the SDL? + if (this._options.allowLegacySDLEmptyFields && this.peek(_tokenKind__WEBPACK_IMPORTED_MODULE_8__["TokenKind"].BRACE_L) && this._lexer.lookahead().kind === _tokenKind__WEBPACK_IMPORTED_MODULE_8__["TokenKind"].BRACE_R) { + this._lexer.advance(); + + this._lexer.advance(); + + return []; + } + + return this.optionalMany(_tokenKind__WEBPACK_IMPORTED_MODULE_8__["TokenKind"].BRACE_L, this.parseFieldDefinition, _tokenKind__WEBPACK_IMPORTED_MODULE_8__["TokenKind"].BRACE_R); + } + /** + * FieldDefinition : + * - Description? Name ArgumentsDefinition? : Type Directives[Const]? + */ + ; + + _proto.parseFieldDefinition = function parseFieldDefinition() { + var start = this._lexer.token; + var description = this.parseDescription(); + var name = this.parseName(); + var args = this.parseArgumentDefs(); + this.expectToken(_tokenKind__WEBPACK_IMPORTED_MODULE_8__["TokenKind"].COLON); + var type = this.parseTypeReference(); + var directives = this.parseDirectives(true); + return { + kind: _kinds__WEBPACK_IMPORTED_MODULE_4__["Kind"].FIELD_DEFINITION, + description: description, + name: name, + arguments: args, + type: type, + directives: directives, + loc: this.loc(start) + }; + } + /** + * ArgumentsDefinition : ( InputValueDefinition+ ) + */ + ; + + _proto.parseArgumentDefs = function parseArgumentDefs() { + return this.optionalMany(_tokenKind__WEBPACK_IMPORTED_MODULE_8__["TokenKind"].PAREN_L, this.parseInputValueDef, _tokenKind__WEBPACK_IMPORTED_MODULE_8__["TokenKind"].PAREN_R); + } + /** + * InputValueDefinition : + * - Description? Name : Type DefaultValue? Directives[Const]? + */ + ; + + _proto.parseInputValueDef = function parseInputValueDef() { + var start = this._lexer.token; + var description = this.parseDescription(); + var name = this.parseName(); + this.expectToken(_tokenKind__WEBPACK_IMPORTED_MODULE_8__["TokenKind"].COLON); + var type = this.parseTypeReference(); + var defaultValue; + + if (this.expectOptionalToken(_tokenKind__WEBPACK_IMPORTED_MODULE_8__["TokenKind"].EQUALS)) { + defaultValue = this.parseValueLiteral(true); + } + + var directives = this.parseDirectives(true); + return { + kind: _kinds__WEBPACK_IMPORTED_MODULE_4__["Kind"].INPUT_VALUE_DEFINITION, + description: description, + name: name, + type: type, + defaultValue: defaultValue, + directives: directives, + loc: this.loc(start) + }; + } + /** + * InterfaceTypeDefinition : + * - Description? interface Name Directives[Const]? FieldsDefinition? + */ + ; + + _proto.parseInterfaceTypeDefinition = function parseInterfaceTypeDefinition() { + var start = this._lexer.token; + var description = this.parseDescription(); + this.expectKeyword('interface'); + var name = this.parseName(); + var directives = this.parseDirectives(true); + var fields = this.parseFieldsDefinition(); + return { + kind: _kinds__WEBPACK_IMPORTED_MODULE_4__["Kind"].INTERFACE_TYPE_DEFINITION, + description: description, + name: name, + directives: directives, + fields: fields, + loc: this.loc(start) + }; + } + /** + * UnionTypeDefinition : + * - Description? union Name Directives[Const]? UnionMemberTypes? + */ + ; + + _proto.parseUnionTypeDefinition = function parseUnionTypeDefinition() { + var start = this._lexer.token; + var description = this.parseDescription(); + this.expectKeyword('union'); + var name = this.parseName(); + var directives = this.parseDirectives(true); + var types = this.parseUnionMemberTypes(); + return { + kind: _kinds__WEBPACK_IMPORTED_MODULE_4__["Kind"].UNION_TYPE_DEFINITION, + description: description, + name: name, + directives: directives, + types: types, + loc: this.loc(start) + }; + } + /** + * UnionMemberTypes : + * - = `|`? NamedType + * - UnionMemberTypes | NamedType + */ + ; + + _proto.parseUnionMemberTypes = function parseUnionMemberTypes() { + var types = []; + + if (this.expectOptionalToken(_tokenKind__WEBPACK_IMPORTED_MODULE_8__["TokenKind"].EQUALS)) { + // Optional leading pipe + this.expectOptionalToken(_tokenKind__WEBPACK_IMPORTED_MODULE_8__["TokenKind"].PIPE); + + do { + types.push(this.parseNamedType()); + } while (this.expectOptionalToken(_tokenKind__WEBPACK_IMPORTED_MODULE_8__["TokenKind"].PIPE)); + } + + return types; + } + /** + * EnumTypeDefinition : + * - Description? enum Name Directives[Const]? EnumValuesDefinition? + */ + ; + + _proto.parseEnumTypeDefinition = function parseEnumTypeDefinition() { + var start = this._lexer.token; + var description = this.parseDescription(); + this.expectKeyword('enum'); + var name = this.parseName(); + var directives = this.parseDirectives(true); + var values = this.parseEnumValuesDefinition(); + return { + kind: _kinds__WEBPACK_IMPORTED_MODULE_4__["Kind"].ENUM_TYPE_DEFINITION, + description: description, + name: name, + directives: directives, + values: values, + loc: this.loc(start) + }; + } + /** + * EnumValuesDefinition : { EnumValueDefinition+ } + */ + ; + + _proto.parseEnumValuesDefinition = function parseEnumValuesDefinition() { + return this.optionalMany(_tokenKind__WEBPACK_IMPORTED_MODULE_8__["TokenKind"].BRACE_L, this.parseEnumValueDefinition, _tokenKind__WEBPACK_IMPORTED_MODULE_8__["TokenKind"].BRACE_R); + } + /** + * EnumValueDefinition : Description? EnumValue Directives[Const]? + * + * EnumValue : Name + */ + ; + + _proto.parseEnumValueDefinition = function parseEnumValueDefinition() { + var start = this._lexer.token; + var description = this.parseDescription(); + var name = this.parseName(); + var directives = this.parseDirectives(true); + return { + kind: _kinds__WEBPACK_IMPORTED_MODULE_4__["Kind"].ENUM_VALUE_DEFINITION, + description: description, + name: name, + directives: directives, + loc: this.loc(start) + }; + } + /** + * InputObjectTypeDefinition : + * - Description? input Name Directives[Const]? InputFieldsDefinition? + */ + ; + + _proto.parseInputObjectTypeDefinition = function parseInputObjectTypeDefinition() { + var start = this._lexer.token; + var description = this.parseDescription(); + this.expectKeyword('input'); + var name = this.parseName(); + var directives = this.parseDirectives(true); + var fields = this.parseInputFieldsDefinition(); + return { + kind: _kinds__WEBPACK_IMPORTED_MODULE_4__["Kind"].INPUT_OBJECT_TYPE_DEFINITION, + description: description, + name: name, + directives: directives, + fields: fields, + loc: this.loc(start) + }; + } + /** + * InputFieldsDefinition : { InputValueDefinition+ } + */ + ; + + _proto.parseInputFieldsDefinition = function parseInputFieldsDefinition() { + return this.optionalMany(_tokenKind__WEBPACK_IMPORTED_MODULE_8__["TokenKind"].BRACE_L, this.parseInputValueDef, _tokenKind__WEBPACK_IMPORTED_MODULE_8__["TokenKind"].BRACE_R); + } + /** + * TypeSystemExtension : + * - SchemaExtension + * - TypeExtension + * + * TypeExtension : + * - ScalarTypeExtension + * - ObjectTypeExtension + * - InterfaceTypeExtension + * - UnionTypeExtension + * - EnumTypeExtension + * - InputObjectTypeDefinition + */ + ; + + _proto.parseTypeSystemExtension = function parseTypeSystemExtension() { + var keywordToken = this._lexer.lookahead(); + + if (keywordToken.kind === _tokenKind__WEBPACK_IMPORTED_MODULE_8__["TokenKind"].NAME) { + switch (keywordToken.value) { + case 'schema': + return this.parseSchemaExtension(); + + case 'scalar': + return this.parseScalarTypeExtension(); + + case 'type': + return this.parseObjectTypeExtension(); + + case 'interface': + return this.parseInterfaceTypeExtension(); + + case 'union': + return this.parseUnionTypeExtension(); + + case 'enum': + return this.parseEnumTypeExtension(); + + case 'input': + return this.parseInputObjectTypeExtension(); + } + } + + throw this.unexpected(keywordToken); + } + /** + * SchemaExtension : + * - extend schema Directives[Const]? { OperationTypeDefinition+ } + * - extend schema Directives[Const] + */ + ; + + _proto.parseSchemaExtension = function parseSchemaExtension() { + var start = this._lexer.token; + this.expectKeyword('extend'); + this.expectKeyword('schema'); + var directives = this.parseDirectives(true); + var operationTypes = this.optionalMany(_tokenKind__WEBPACK_IMPORTED_MODULE_8__["TokenKind"].BRACE_L, this.parseOperationTypeDefinition, _tokenKind__WEBPACK_IMPORTED_MODULE_8__["TokenKind"].BRACE_R); + + if (directives.length === 0 && operationTypes.length === 0) { + throw this.unexpected(); + } + + return { + kind: _kinds__WEBPACK_IMPORTED_MODULE_4__["Kind"].SCHEMA_EXTENSION, + directives: directives, + operationTypes: operationTypes, + loc: this.loc(start) + }; + } + /** + * ScalarTypeExtension : + * - extend scalar Name Directives[Const] + */ + ; + + _proto.parseScalarTypeExtension = function parseScalarTypeExtension() { + var start = this._lexer.token; + this.expectKeyword('extend'); + this.expectKeyword('scalar'); + var name = this.parseName(); + var directives = this.parseDirectives(true); + + if (directives.length === 0) { + throw this.unexpected(); + } + + return { + kind: _kinds__WEBPACK_IMPORTED_MODULE_4__["Kind"].SCALAR_TYPE_EXTENSION, + name: name, + directives: directives, + loc: this.loc(start) + }; + } + /** + * ObjectTypeExtension : + * - extend type Name ImplementsInterfaces? Directives[Const]? FieldsDefinition + * - extend type Name ImplementsInterfaces? Directives[Const] + * - extend type Name ImplementsInterfaces + */ + ; + + _proto.parseObjectTypeExtension = function parseObjectTypeExtension() { + var start = this._lexer.token; + this.expectKeyword('extend'); + this.expectKeyword('type'); + var name = this.parseName(); + var interfaces = this.parseImplementsInterfaces(); + var directives = this.parseDirectives(true); + var fields = this.parseFieldsDefinition(); + + if (interfaces.length === 0 && directives.length === 0 && fields.length === 0) { + throw this.unexpected(); + } + + return { + kind: _kinds__WEBPACK_IMPORTED_MODULE_4__["Kind"].OBJECT_TYPE_EXTENSION, + name: name, + interfaces: interfaces, + directives: directives, + fields: fields, + loc: this.loc(start) + }; + } + /** + * InterfaceTypeExtension : + * - extend interface Name Directives[Const]? FieldsDefinition + * - extend interface Name Directives[Const] + */ + ; + + _proto.parseInterfaceTypeExtension = function parseInterfaceTypeExtension() { + var start = this._lexer.token; + this.expectKeyword('extend'); + this.expectKeyword('interface'); + var name = this.parseName(); + var directives = this.parseDirectives(true); + var fields = this.parseFieldsDefinition(); + + if (directives.length === 0 && fields.length === 0) { + throw this.unexpected(); + } + + return { + kind: _kinds__WEBPACK_IMPORTED_MODULE_4__["Kind"].INTERFACE_TYPE_EXTENSION, + name: name, + directives: directives, + fields: fields, + loc: this.loc(start) + }; + } + /** + * UnionTypeExtension : + * - extend union Name Directives[Const]? UnionMemberTypes + * - extend union Name Directives[Const] + */ + ; + + _proto.parseUnionTypeExtension = function parseUnionTypeExtension() { + var start = this._lexer.token; + this.expectKeyword('extend'); + this.expectKeyword('union'); + var name = this.parseName(); + var directives = this.parseDirectives(true); + var types = this.parseUnionMemberTypes(); + + if (directives.length === 0 && types.length === 0) { + throw this.unexpected(); + } + + return { + kind: _kinds__WEBPACK_IMPORTED_MODULE_4__["Kind"].UNION_TYPE_EXTENSION, + name: name, + directives: directives, + types: types, + loc: this.loc(start) + }; + } + /** + * EnumTypeExtension : + * - extend enum Name Directives[Const]? EnumValuesDefinition + * - extend enum Name Directives[Const] + */ + ; + + _proto.parseEnumTypeExtension = function parseEnumTypeExtension() { + var start = this._lexer.token; + this.expectKeyword('extend'); + this.expectKeyword('enum'); + var name = this.parseName(); + var directives = this.parseDirectives(true); + var values = this.parseEnumValuesDefinition(); + + if (directives.length === 0 && values.length === 0) { + throw this.unexpected(); + } + + return { + kind: _kinds__WEBPACK_IMPORTED_MODULE_4__["Kind"].ENUM_TYPE_EXTENSION, + name: name, + directives: directives, + values: values, + loc: this.loc(start) + }; + } + /** + * InputObjectTypeExtension : + * - extend input Name Directives[Const]? InputFieldsDefinition + * - extend input Name Directives[Const] + */ + ; + + _proto.parseInputObjectTypeExtension = function parseInputObjectTypeExtension() { + var start = this._lexer.token; + this.expectKeyword('extend'); + this.expectKeyword('input'); + var name = this.parseName(); + var directives = this.parseDirectives(true); + var fields = this.parseInputFieldsDefinition(); + + if (directives.length === 0 && fields.length === 0) { + throw this.unexpected(); + } + + return { + kind: _kinds__WEBPACK_IMPORTED_MODULE_4__["Kind"].INPUT_OBJECT_TYPE_EXTENSION, + name: name, + directives: directives, + fields: fields, + loc: this.loc(start) + }; + } + /** + * DirectiveDefinition : + * - Description? directive @ Name ArgumentsDefinition? `repeatable`? on DirectiveLocations + */ + ; + + _proto.parseDirectiveDefinition = function parseDirectiveDefinition() { + var start = this._lexer.token; + var description = this.parseDescription(); + this.expectKeyword('directive'); + this.expectToken(_tokenKind__WEBPACK_IMPORTED_MODULE_8__["TokenKind"].AT); + var name = this.parseName(); + var args = this.parseArgumentDefs(); + var repeatable = this.expectOptionalKeyword('repeatable'); + this.expectKeyword('on'); + var locations = this.parseDirectiveLocations(); + return { + kind: _kinds__WEBPACK_IMPORTED_MODULE_4__["Kind"].DIRECTIVE_DEFINITION, + description: description, + name: name, + arguments: args, + repeatable: repeatable, + locations: locations, + loc: this.loc(start) + }; + } + /** + * DirectiveLocations : + * - `|`? DirectiveLocation + * - DirectiveLocations | DirectiveLocation + */ + ; + + _proto.parseDirectiveLocations = function parseDirectiveLocations() { + // Optional leading pipe + this.expectOptionalToken(_tokenKind__WEBPACK_IMPORTED_MODULE_8__["TokenKind"].PIPE); + var locations = []; + + do { + locations.push(this.parseDirectiveLocation()); + } while (this.expectOptionalToken(_tokenKind__WEBPACK_IMPORTED_MODULE_8__["TokenKind"].PIPE)); + + return locations; + } + /* + * DirectiveLocation : + * - ExecutableDirectiveLocation + * - TypeSystemDirectiveLocation + * + * ExecutableDirectiveLocation : one of + * `QUERY` + * `MUTATION` + * `SUBSCRIPTION` + * `FIELD` + * `FRAGMENT_DEFINITION` + * `FRAGMENT_SPREAD` + * `INLINE_FRAGMENT` + * + * TypeSystemDirectiveLocation : one of + * `SCHEMA` + * `SCALAR` + * `OBJECT` + * `FIELD_DEFINITION` + * `ARGUMENT_DEFINITION` + * `INTERFACE` + * `UNION` + * `ENUM` + * `ENUM_VALUE` + * `INPUT_OBJECT` + * `INPUT_FIELD_DEFINITION` + */ + ; + + _proto.parseDirectiveLocation = function parseDirectiveLocation() { + var start = this._lexer.token; + var name = this.parseName(); + + if (_directiveLocation__WEBPACK_IMPORTED_MODULE_7__["DirectiveLocation"][name.value] !== undefined) { + return name; + } + + throw this.unexpected(start); + } // Core parsing utility functions + + /** + * Returns a location object, used to identify the place in + * the source that created a given parsed object. + */ + ; + + _proto.loc = function loc(startToken) { + if (!this._options.noLocation) { + return new Loc(startToken, this._lexer.lastToken, this._lexer.source); + } + } + /** + * Determines if the next token is of a given kind + */ + ; + + _proto.peek = function peek(kind) { + return this._lexer.token.kind === kind; + } + /** + * If the next token is of the given kind, return that token after advancing + * the lexer. Otherwise, do not change the parser state and throw an error. + */ + ; + + _proto.expectToken = function expectToken(kind) { + var token = this._lexer.token; + + if (token.kind === kind) { + this._lexer.advance(); + + return token; + } + + throw Object(_error_syntaxError__WEBPACK_IMPORTED_MODULE_3__["syntaxError"])(this._lexer.source, token.start, "Expected ".concat(kind, ", found ").concat(getTokenDesc(token))); + } + /** + * If the next token is of the given kind, return that token after advancing + * the lexer. Otherwise, do not change the parser state and return undefined. + */ + ; + + _proto.expectOptionalToken = function expectOptionalToken(kind) { + var token = this._lexer.token; + + if (token.kind === kind) { + this._lexer.advance(); + + return token; + } + + return undefined; + } + /** + * If the next token is a given keyword, advance the lexer. + * Otherwise, do not change the parser state and throw an error. + */ + ; + + _proto.expectKeyword = function expectKeyword(value) { + var token = this._lexer.token; + + if (token.kind === _tokenKind__WEBPACK_IMPORTED_MODULE_8__["TokenKind"].NAME && token.value === value) { + this._lexer.advance(); + } else { + throw Object(_error_syntaxError__WEBPACK_IMPORTED_MODULE_3__["syntaxError"])(this._lexer.source, token.start, "Expected \"".concat(value, "\", found ").concat(getTokenDesc(token))); + } + } + /** + * If the next token is a given keyword, return "true" after advancing + * the lexer. Otherwise, do not change the parser state and return "false". + */ + ; + + _proto.expectOptionalKeyword = function expectOptionalKeyword(value) { + var token = this._lexer.token; + + if (token.kind === _tokenKind__WEBPACK_IMPORTED_MODULE_8__["TokenKind"].NAME && token.value === value) { + this._lexer.advance(); + + return true; + } + + return false; + } + /** + * Helper function for creating an error when an unexpected lexed token + * is encountered. + */ + ; + + _proto.unexpected = function unexpected(atToken) { + var token = atToken || this._lexer.token; + return Object(_error_syntaxError__WEBPACK_IMPORTED_MODULE_3__["syntaxError"])(this._lexer.source, token.start, "Unexpected ".concat(getTokenDesc(token))); + } + /** + * Returns a possibly empty list of parse nodes, determined by + * the parseFn. This list begins with a lex token of openKind + * and ends with a lex token of closeKind. Advances the parser + * to the next lex token after the closing token. + */ + ; + + _proto.any = function any(openKind, parseFn, closeKind) { + this.expectToken(openKind); + var nodes = []; + + while (!this.expectOptionalToken(closeKind)) { + nodes.push(parseFn.call(this)); + } + + return nodes; + } + /** + * Returns a list of parse nodes, determined by the parseFn. + * It can be empty only if open token is missing otherwise it will always + * return non-empty list that begins with a lex token of openKind and ends + * with a lex token of closeKind. Advances the parser to the next lex token + * after the closing token. + */ + ; + + _proto.optionalMany = function optionalMany(openKind, parseFn, closeKind) { + if (this.expectOptionalToken(openKind)) { + var nodes = []; + + do { + nodes.push(parseFn.call(this)); + } while (!this.expectOptionalToken(closeKind)); + + return nodes; + } + + return []; + } + /** + * Returns a non-empty list of parse nodes, determined by + * the parseFn. This list begins with a lex token of openKind + * and ends with a lex token of closeKind. Advances the parser + * to the next lex token after the closing token. + */ + ; + + _proto.many = function many(openKind, parseFn, closeKind) { + this.expectToken(openKind); + var nodes = []; + + do { + nodes.push(parseFn.call(this)); + } while (!this.expectOptionalToken(closeKind)); + + return nodes; + }; + + return Parser; +}(); + +function Loc(startToken, endToken, source) { + this.start = startToken.start; + this.end = endToken.end; + this.startToken = startToken; + this.endToken = endToken; + this.source = source; +} // Print a simplified form when appearing in JSON/util.inspect. + + +Object(_jsutils_defineToJSON__WEBPACK_IMPORTED_MODULE_2__["default"])(Loc, function () { + return { + start: this.start, + end: this.end + }; +}); +/** + * A helper function to describe a token as a string for debugging + */ + +function getTokenDesc(token) { + var value = token.value; + return value ? "".concat(token.kind, " \"").concat(value, "\"") : token.kind; +} + + +/***/ }), + +/***/ "./node_modules/graphql/language/printLocation.mjs": +/*!*********************************************************!*\ + !*** ./node_modules/graphql/language/printLocation.mjs ***! + \*********************************************************/ +/*! exports provided: printLocation, printSourceLocation */ +/***/ (function(__webpack_module__, __webpack_exports__, __webpack_require__) { + +"use strict"; +__webpack_require__.r(__webpack_exports__); +/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "printLocation", function() { return printLocation; }); +/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "printSourceLocation", function() { return printSourceLocation; }); +/* harmony import */ var _language_location__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../language/location */ "./node_modules/graphql/language/location.mjs"); + +/** + * Render a helpful description of the location in the GraphQL Source document. + */ + +function printLocation(location) { + return printSourceLocation(location.source, Object(_language_location__WEBPACK_IMPORTED_MODULE_0__["getLocation"])(location.source, location.start)); +} +/** + * Render a helpful description of the location in the GraphQL Source document. + */ + +function printSourceLocation(source, sourceLocation) { + var firstLineColumnOffset = source.locationOffset.column - 1; + var body = whitespace(firstLineColumnOffset) + source.body; + var lineIndex = sourceLocation.line - 1; + var lineOffset = source.locationOffset.line - 1; + var lineNum = sourceLocation.line + lineOffset; + var columnOffset = sourceLocation.line === 1 ? firstLineColumnOffset : 0; + var columnNum = sourceLocation.column + columnOffset; + var locationStr = "".concat(source.name, ":").concat(lineNum, ":").concat(columnNum, "\n"); + var lines = body.split(/\r\n|[\n\r]/g); + var locationLine = lines[lineIndex]; // Special case for minified documents + + if (locationLine.length > 120) { + var sublineIndex = Math.floor(columnNum / 80); + var sublineColumnNum = columnNum % 80; + var sublines = []; + + for (var i = 0; i < locationLine.length; i += 80) { + sublines.push(locationLine.slice(i, i + 80)); + } + + return locationStr + printPrefixedLines([["".concat(lineNum), sublines[0]]].concat(sublines.slice(1, sublineIndex + 1).map(function (subline) { + return ['', subline]; + }), [[' ', whitespace(sublineColumnNum - 1) + '^'], ['', sublines[sublineIndex + 1]]])); + } + + return locationStr + printPrefixedLines([// Lines specified like this: ["prefix", "string"], + ["".concat(lineNum - 1), lines[lineIndex - 1]], ["".concat(lineNum), locationLine], ['', whitespace(columnNum - 1) + '^'], ["".concat(lineNum + 1), lines[lineIndex + 1]]]); +} + +function printPrefixedLines(lines) { + var existingLines = lines.filter(function (_ref) { + var _ = _ref[0], + line = _ref[1]; + return line !== undefined; + }); + var padLen = Math.max.apply(Math, existingLines.map(function (_ref2) { + var prefix = _ref2[0]; + return prefix.length; + })); + return existingLines.map(function (_ref3) { + var prefix = _ref3[0], + line = _ref3[1]; + return lpad(padLen, prefix) + (line ? ' | ' + line : ' |'); + }).join('\n'); +} + +function whitespace(len) { + return Array(len + 1).join(' '); +} + +function lpad(len, str) { + return whitespace(len - str.length) + str; +} + + +/***/ }), + +/***/ "./node_modules/graphql/language/source.mjs": +/*!**************************************************!*\ + !*** ./node_modules/graphql/language/source.mjs ***! + \**************************************************/ +/*! exports provided: Source */ +/***/ (function(__webpack_module__, __webpack_exports__, __webpack_require__) { + +"use strict"; +__webpack_require__.r(__webpack_exports__); +/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Source", function() { return Source; }); +/* harmony import */ var _jsutils_devAssert__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../jsutils/devAssert */ "./node_modules/graphql/jsutils/devAssert.mjs"); +/* harmony import */ var _jsutils_defineToStringTag__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../jsutils/defineToStringTag */ "./node_modules/graphql/jsutils/defineToStringTag.mjs"); + + + +/** + * A representation of source input to GraphQL. + * `name` and `locationOffset` are optional. They are useful for clients who + * store GraphQL documents in source files; for example, if the GraphQL input + * starts at line 40 in a file named Foo.graphql, it might be useful for name to + * be "Foo.graphql" and location to be `{ line: 40, column: 0 }`. + * line and column in locationOffset are 1-indexed + */ +var Source = function Source(body, name, locationOffset) { + this.body = body; + this.name = name || 'GraphQL request'; + this.locationOffset = locationOffset || { + line: 1, + column: 1 + }; + this.locationOffset.line > 0 || Object(_jsutils_devAssert__WEBPACK_IMPORTED_MODULE_0__["default"])(0, 'line in locationOffset is 1-indexed and must be positive'); + this.locationOffset.column > 0 || Object(_jsutils_devAssert__WEBPACK_IMPORTED_MODULE_0__["default"])(0, 'column in locationOffset is 1-indexed and must be positive'); +}; // Conditionally apply `[Symbol.toStringTag]` if `Symbol`s are supported + +Object(_jsutils_defineToStringTag__WEBPACK_IMPORTED_MODULE_1__["default"])(Source); + + +/***/ }), + +/***/ "./node_modules/graphql/language/tokenKind.mjs": +/*!*****************************************************!*\ + !*** ./node_modules/graphql/language/tokenKind.mjs ***! + \*****************************************************/ +/*! exports provided: TokenKind */ +/***/ (function(__webpack_module__, __webpack_exports__, __webpack_require__) { + +"use strict"; +__webpack_require__.r(__webpack_exports__); +/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "TokenKind", function() { return TokenKind; }); +/** + * An exported enum describing the different kinds of tokens that the + * lexer emits. + */ +var TokenKind = Object.freeze({ + SOF: '', + EOF: '', + BANG: '!', + DOLLAR: '$', + AMP: '&', + PAREN_L: '(', + PAREN_R: ')', + SPREAD: '...', + COLON: ':', + EQUALS: '=', + AT: '@', + BRACKET_L: '[', + BRACKET_R: ']', + BRACE_L: '{', + PIPE: '|', + BRACE_R: '}', + NAME: 'Name', + INT: 'Int', + FLOAT: 'Float', + STRING: 'String', + BLOCK_STRING: 'BlockString', + COMMENT: 'Comment' +}); +/** + * The enum type representing the token kinds values. + */ -exports['default'] = { - prefixCls: { - 'default': 'ant-input', - type: String - }, - defaultValue: [String, Number], - value: [String, Number], - placeholder: [String, Number], - type: { - 'default': 'text', - type: String - }, - name: String, - size: { - validator: function validator(value) { - return ['small', 'large', 'default'].includes(value); - } - }, - disabled: { - 'default': false, - type: Boolean - }, - readOnly: Boolean, - addonBefore: _vueTypes2['default'].any, - addonAfter: _vueTypes2['default'].any, - // onPressEnter?: React.FormEventHandler; - // onKeyDown?: React.FormEventHandler; - // onChange?: React.ChangeEventHandler; - // onClick?: React.FormEventHandler; - // onFocus?: React.FormEventHandler; - // onBlur?: React.FormEventHandler; - prefix: _vueTypes2['default'].any, - suffix: _vueTypes2['default'].any, - spellCheck: Boolean, - autoFocus: Boolean -}; /***/ }) diff --git a/public/avored-admin/js/chunk/40.js b/public/avored-admin/js/chunk/40.js index 6508828b6..5ed313c29 100644 --- a/public/avored-admin/js/chunk/40.js +++ b/public/avored-admin/js/chunk/40.js @@ -1,9 +1,9 @@ (window["webpackJsonp"] = window["webpackJsonp"] || []).push([[40],{ -/***/ "./node_modules/babel-loader/lib/index.js?!./node_modules/vue-loader/lib/index.js?!./vendor/avored/framework/resources/components/system/tax-group/TaxGroupSave.vue?vue&type=script&lang=js&": -/*!*************************************************************************************************************************************************************************************************************!*\ - !*** ./node_modules/babel-loader/lib??ref--4-0!./node_modules/vue-loader/lib??vue-loader-options!./vendor/avored/framework/resources/components/system/tax-group/TaxGroupSave.vue?vue&type=script&lang=js& ***! - \*************************************************************************************************************************************************************************************************************/ +/***/ "./node_modules/babel-loader/lib/index.js?!./node_modules/vue-loader/lib/index.js?!./packages/framework/resources/components/system/state/StateTable.vue?vue&type=script&lang=js&": +/*!**************************************************************************************************************************************************************************************************!*\ + !*** ./node_modules/babel-loader/lib??ref--4-0!./node_modules/vue-loader/lib??vue-loader-options!./packages/framework/resources/components/system/state/StateTable.vue?vue&type=script&lang=js& ***! + \**************************************************************************************************************************************************************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { @@ -12,41 +12,108 @@ __webpack_require__.r(__webpack_exports__); /* harmony import */ var lodash_isNil__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! lodash/isNil */ "./node_modules/lodash/isNil.js"); /* harmony import */ var lodash_isNil__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(lodash_isNil__WEBPACK_IMPORTED_MODULE_0__); +var columns = [{ + title: 'Name', + dataIndex: 'name', + key: 'name', + sorter: true +}, { + title: 'Code', + dataIndex: 'code', + key: 'code', + sorter: true +}, { + title: 'Action', + key: 'action', + scopedSlots: { + customRender: 'action' + }, + sorter: false, + width: "10%" +}]; /* harmony default export */ __webpack_exports__["default"] = ({ - props: ['taxGroup', 'baseUrl'], + props: ['states', 'baseUrl'], data: function data() { return { - taxGroupForm: this.$form.createForm(this) + columns: columns }; }, methods: { - handleSubmit: function handleSubmit() { - this.taxGroupForm.validateFields(function (err, values) { - if (err) { - e.preventDefault(); + handleTableChange: function handleTableChange(pagination, filters, sorter) { + this.states.sort(function (a, b) { + var columnKey = sorter.columnKey; + var order = sorter.order; + + if (lodash_isNil__WEBPACK_IMPORTED_MODULE_0___default()(a[columnKey])) { + a[columnKey] = ''; + } + + if (lodash_isNil__WEBPACK_IMPORTED_MODULE_0___default()(b[columnKey])) { + b[columnKey] = ''; + } + + if (order === 'ascend') { + if (a[columnKey] < b[columnKey]) return -1; + if (a[columnKey] > b[columnKey]) return 1; + } + + if (order === 'descend') { + if (a[columnKey] > b[columnKey]) return -1; + if (a[columnKey] < b[columnKey]) return 1; } + + return 0; }); }, - cancelTaxGroup: function cancelTaxGroup() { - window.location = this.baseUrl + '/tax-group'; + getEditUrl: function getEditUrl(record) { + return this.baseUrl + '/state/' + record.id + '/edit'; + }, + getDeleteUrl: function getDeleteUrl(record) { + return this.baseUrl + '/state/' + record.id; + }, + deleteState: function deleteState(record) { + var url = this.baseUrl + '/state/' + record.id; + var app = this; + this.$confirm({ + title: 'Do you Want to delete ' + record.name + ' state?', + okType: 'danger', + onOk: function onOk() { + axios["delete"](url).then(function (response) { + if (response.data.success === true) { + app.$notification.error({ + key: 'state.delete.success', + message: response.data.message + }); + } + + window.location.reload(); + })["catch"](function (errors) { + app.$notification.error({ + key: 'state.delete.error', + message: errors.message + }); + }); + }, + onCancel: function onCancel() {// Do nothing + } + }); } - }, - mounted: function mounted() {} + } }); /***/ }), -/***/ "./vendor/avored/framework/resources/components/system/tax-group/TaxGroupSave.vue": -/*!****************************************************************************************!*\ - !*** ./vendor/avored/framework/resources/components/system/tax-group/TaxGroupSave.vue ***! - \****************************************************************************************/ +/***/ "./packages/framework/resources/components/system/state/StateTable.vue": +/*!*****************************************************************************!*\ + !*** ./packages/framework/resources/components/system/state/StateTable.vue ***! + \*****************************************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); -/* harmony import */ var _TaxGroupSave_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./TaxGroupSave.vue?vue&type=script&lang=js& */ "./vendor/avored/framework/resources/components/system/tax-group/TaxGroupSave.vue?vue&type=script&lang=js&"); -/* empty/unused harmony star reexport *//* harmony import */ var _node_modules_vue_loader_lib_runtime_componentNormalizer_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../../../../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js */ "./node_modules/vue-loader/lib/runtime/componentNormalizer.js"); +/* harmony import */ var _StateTable_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./StateTable.vue?vue&type=script&lang=js& */ "./packages/framework/resources/components/system/state/StateTable.vue?vue&type=script&lang=js&"); +/* empty/unused harmony star reexport *//* harmony import */ var _node_modules_vue_loader_lib_runtime_componentNormalizer_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../../../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js */ "./node_modules/vue-loader/lib/runtime/componentNormalizer.js"); var render, staticRenderFns @@ -55,7 +122,7 @@ var render, staticRenderFns /* normalize component */ var component = Object(_node_modules_vue_loader_lib_runtime_componentNormalizer_js__WEBPACK_IMPORTED_MODULE_1__["default"])( - _TaxGroupSave_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0__["default"], + _StateTable_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0__["default"], render, staticRenderFns, false, @@ -67,22 +134,22 @@ var component = Object(_node_modules_vue_loader_lib_runtime_componentNormalizer_ /* hot reload */ if (false) { var api; } -component.options.__file = "vendor/avored/framework/resources/components/system/tax-group/TaxGroupSave.vue" +component.options.__file = "packages/framework/resources/components/system/state/StateTable.vue" /* harmony default export */ __webpack_exports__["default"] = (component.exports); /***/ }), -/***/ "./vendor/avored/framework/resources/components/system/tax-group/TaxGroupSave.vue?vue&type=script&lang=js&": -/*!*****************************************************************************************************************!*\ - !*** ./vendor/avored/framework/resources/components/system/tax-group/TaxGroupSave.vue?vue&type=script&lang=js& ***! - \*****************************************************************************************************************/ +/***/ "./packages/framework/resources/components/system/state/StateTable.vue?vue&type=script&lang=js&": +/*!******************************************************************************************************!*\ + !*** ./packages/framework/resources/components/system/state/StateTable.vue?vue&type=script&lang=js& ***! + \******************************************************************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); -/* harmony import */ var _node_modules_babel_loader_lib_index_js_ref_4_0_node_modules_vue_loader_lib_index_js_vue_loader_options_TaxGroupSave_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! -!../../../../../../../node_modules/babel-loader/lib??ref--4-0!../../../../../../../node_modules/vue-loader/lib??vue-loader-options!./TaxGroupSave.vue?vue&type=script&lang=js& */ "./node_modules/babel-loader/lib/index.js?!./node_modules/vue-loader/lib/index.js?!./vendor/avored/framework/resources/components/system/tax-group/TaxGroupSave.vue?vue&type=script&lang=js&"); -/* empty/unused harmony star reexport */ /* harmony default export */ __webpack_exports__["default"] = (_node_modules_babel_loader_lib_index_js_ref_4_0_node_modules_vue_loader_lib_index_js_vue_loader_options_TaxGroupSave_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0__["default"]); +/* harmony import */ var _node_modules_babel_loader_lib_index_js_ref_4_0_node_modules_vue_loader_lib_index_js_vue_loader_options_StateTable_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! -!../../../../../../node_modules/babel-loader/lib??ref--4-0!../../../../../../node_modules/vue-loader/lib??vue-loader-options!./StateTable.vue?vue&type=script&lang=js& */ "./node_modules/babel-loader/lib/index.js?!./node_modules/vue-loader/lib/index.js?!./packages/framework/resources/components/system/state/StateTable.vue?vue&type=script&lang=js&"); +/* empty/unused harmony star reexport */ /* harmony default export */ __webpack_exports__["default"] = (_node_modules_babel_loader_lib_index_js_ref_4_0_node_modules_vue_loader_lib_index_js_vue_loader_options_StateTable_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0__["default"]); /***/ }) diff --git a/public/avored-admin/js/chunk/41.js b/public/avored-admin/js/chunk/41.js index 4d7f118fc..2087ed28e 100644 --- a/public/avored-admin/js/chunk/41.js +++ b/public/avored-admin/js/chunk/41.js @@ -1,9 +1,9 @@ (window["webpackJsonp"] = window["webpackJsonp"] || []).push([[41],{ -/***/ "./node_modules/babel-loader/lib/index.js?!./node_modules/vue-loader/lib/index.js?!./vendor/avored/framework/resources/components/system/tax-group/TaxGroupTable.vue?vue&type=script&lang=js&": -/*!**************************************************************************************************************************************************************************************************************!*\ - !*** ./node_modules/babel-loader/lib??ref--4-0!./node_modules/vue-loader/lib??vue-loader-options!./vendor/avored/framework/resources/components/system/tax-group/TaxGroupTable.vue?vue&type=script&lang=js& ***! - \**************************************************************************************************************************************************************************************************************/ +/***/ "./node_modules/babel-loader/lib/index.js?!./node_modules/vue-loader/lib/index.js?!./packages/framework/resources/components/system/tax-group/TaxGroupSave.vue?vue&type=script&lang=js&": +/*!********************************************************************************************************************************************************************************************************!*\ + !*** ./node_modules/babel-loader/lib??ref--4-0!./node_modules/vue-loader/lib??vue-loader-options!./packages/framework/resources/components/system/tax-group/TaxGroupSave.vue?vue&type=script&lang=js& ***! + \********************************************************************************************************************************************************************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { @@ -12,103 +12,41 @@ __webpack_require__.r(__webpack_exports__); /* harmony import */ var lodash_isNil__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! lodash/isNil */ "./node_modules/lodash/isNil.js"); /* harmony import */ var lodash_isNil__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(lodash_isNil__WEBPACK_IMPORTED_MODULE_0__); -var columns = [{ - title: 'Name', - dataIndex: 'name', - key: 'name', - sorter: true -}, { - title: 'Action', - key: 'action', - scopedSlots: { - customRender: 'action' - }, - sorter: false, - width: "10%" -}]; /* harmony default export */ __webpack_exports__["default"] = ({ - props: ['baseUrl', 'taxGroups'], + props: ['taxGroup', 'baseUrl'], data: function data() { return { - columns: columns + taxGroupForm: this.$form.createForm(this) }; }, methods: { - handleTableChange: function handleTableChange(pagination, filters, sorter) { - this.taxGroups.sort(function (a, b) { - var columnKey = sorter.columnKey; - var order = sorter.order; - - if (lodash_isNil__WEBPACK_IMPORTED_MODULE_0___default()(a[columnKey])) { - a[columnKey] = ''; - } - - if (lodash_isNil__WEBPACK_IMPORTED_MODULE_0___default()(b[columnKey])) { - b[columnKey] = ''; - } - - if (order === 'ascend') { - if (a[columnKey] < b[columnKey]) return -1; - if (a[columnKey] > b[columnKey]) return 1; - } - - if (order === 'descend') { - if (a[columnKey] > b[columnKey]) return -1; - if (a[columnKey] < b[columnKey]) return 1; + handleSubmit: function handleSubmit() { + this.taxGroupForm.validateFields(function (err, values) { + if (err) { + e.preventDefault(); } - - return 0; }); }, - getEditUrl: function getEditUrl(record) { - return this.baseUrl + '/tax-group/' + record.id + '/edit'; - }, - getDeleteUrl: function getDeleteUrl(record) { - return this.baseUrl + '/tax-group/' + record.id; - }, - deleteTaxGroup: function deleteTaxGroup(record) { - var url = this.baseUrl + '/tax-group/' + record.id; - var app = this; - this.$confirm({ - title: 'Do you Want to delete ' + record.name + ' tax-group?', - okType: 'danger', - onOk: function onOk() { - axios["delete"](url).then(function (response) { - if (response.data.success === true) { - app.$notification.error({ - key: 'tax-group.delete.success', - message: response.data.message - }); - } - - window.location.reload(); - })["catch"](function (errors) { - app.$notification.error({ - key: 'tax-group.delete.error', - message: errors.message - }); - }); - }, - onCancel: function onCancel() {// Do nothing - } - }); + cancelTaxGroup: function cancelTaxGroup() { + window.location = this.baseUrl + '/tax-group'; } - } + }, + mounted: function mounted() {} }); /***/ }), -/***/ "./vendor/avored/framework/resources/components/system/tax-group/TaxGroupTable.vue": -/*!*****************************************************************************************!*\ - !*** ./vendor/avored/framework/resources/components/system/tax-group/TaxGroupTable.vue ***! - \*****************************************************************************************/ +/***/ "./packages/framework/resources/components/system/tax-group/TaxGroupSave.vue": +/*!***********************************************************************************!*\ + !*** ./packages/framework/resources/components/system/tax-group/TaxGroupSave.vue ***! + \***********************************************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); -/* harmony import */ var _TaxGroupTable_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./TaxGroupTable.vue?vue&type=script&lang=js& */ "./vendor/avored/framework/resources/components/system/tax-group/TaxGroupTable.vue?vue&type=script&lang=js&"); -/* empty/unused harmony star reexport *//* harmony import */ var _node_modules_vue_loader_lib_runtime_componentNormalizer_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../../../../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js */ "./node_modules/vue-loader/lib/runtime/componentNormalizer.js"); +/* harmony import */ var _TaxGroupSave_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./TaxGroupSave.vue?vue&type=script&lang=js& */ "./packages/framework/resources/components/system/tax-group/TaxGroupSave.vue?vue&type=script&lang=js&"); +/* empty/unused harmony star reexport *//* harmony import */ var _node_modules_vue_loader_lib_runtime_componentNormalizer_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../../../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js */ "./node_modules/vue-loader/lib/runtime/componentNormalizer.js"); var render, staticRenderFns @@ -117,7 +55,7 @@ var render, staticRenderFns /* normalize component */ var component = Object(_node_modules_vue_loader_lib_runtime_componentNormalizer_js__WEBPACK_IMPORTED_MODULE_1__["default"])( - _TaxGroupTable_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0__["default"], + _TaxGroupSave_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0__["default"], render, staticRenderFns, false, @@ -129,22 +67,22 @@ var component = Object(_node_modules_vue_loader_lib_runtime_componentNormalizer_ /* hot reload */ if (false) { var api; } -component.options.__file = "vendor/avored/framework/resources/components/system/tax-group/TaxGroupTable.vue" +component.options.__file = "packages/framework/resources/components/system/tax-group/TaxGroupSave.vue" /* harmony default export */ __webpack_exports__["default"] = (component.exports); /***/ }), -/***/ "./vendor/avored/framework/resources/components/system/tax-group/TaxGroupTable.vue?vue&type=script&lang=js&": -/*!******************************************************************************************************************!*\ - !*** ./vendor/avored/framework/resources/components/system/tax-group/TaxGroupTable.vue?vue&type=script&lang=js& ***! - \******************************************************************************************************************/ +/***/ "./packages/framework/resources/components/system/tax-group/TaxGroupSave.vue?vue&type=script&lang=js&": +/*!************************************************************************************************************!*\ + !*** ./packages/framework/resources/components/system/tax-group/TaxGroupSave.vue?vue&type=script&lang=js& ***! + \************************************************************************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); -/* harmony import */ var _node_modules_babel_loader_lib_index_js_ref_4_0_node_modules_vue_loader_lib_index_js_vue_loader_options_TaxGroupTable_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! -!../../../../../../../node_modules/babel-loader/lib??ref--4-0!../../../../../../../node_modules/vue-loader/lib??vue-loader-options!./TaxGroupTable.vue?vue&type=script&lang=js& */ "./node_modules/babel-loader/lib/index.js?!./node_modules/vue-loader/lib/index.js?!./vendor/avored/framework/resources/components/system/tax-group/TaxGroupTable.vue?vue&type=script&lang=js&"); -/* empty/unused harmony star reexport */ /* harmony default export */ __webpack_exports__["default"] = (_node_modules_babel_loader_lib_index_js_ref_4_0_node_modules_vue_loader_lib_index_js_vue_loader_options_TaxGroupTable_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0__["default"]); +/* harmony import */ var _node_modules_babel_loader_lib_index_js_ref_4_0_node_modules_vue_loader_lib_index_js_vue_loader_options_TaxGroupSave_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! -!../../../../../../node_modules/babel-loader/lib??ref--4-0!../../../../../../node_modules/vue-loader/lib??vue-loader-options!./TaxGroupSave.vue?vue&type=script&lang=js& */ "./node_modules/babel-loader/lib/index.js?!./node_modules/vue-loader/lib/index.js?!./packages/framework/resources/components/system/tax-group/TaxGroupSave.vue?vue&type=script&lang=js&"); +/* empty/unused harmony star reexport */ /* harmony default export */ __webpack_exports__["default"] = (_node_modules_babel_loader_lib_index_js_ref_4_0_node_modules_vue_loader_lib_index_js_vue_loader_options_TaxGroupSave_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0__["default"]); /***/ }) diff --git a/public/avored-admin/js/chunk/42.js b/public/avored-admin/js/chunk/42.js index fdc6b1d7a..ddae69e5b 100644 --- a/public/avored-admin/js/chunk/42.js +++ b/public/avored-admin/js/chunk/42.js @@ -1,9 +1,9 @@ (window["webpackJsonp"] = window["webpackJsonp"] || []).push([[42],{ -/***/ "./node_modules/babel-loader/lib/index.js?!./node_modules/vue-loader/lib/index.js?!./vendor/avored/framework/resources/components/system/tax-rate/TaxRateSave.vue?vue&type=script&lang=js&": -/*!***********************************************************************************************************************************************************************************************************!*\ - !*** ./node_modules/babel-loader/lib??ref--4-0!./node_modules/vue-loader/lib??vue-loader-options!./vendor/avored/framework/resources/components/system/tax-rate/TaxRateSave.vue?vue&type=script&lang=js& ***! - \***********************************************************************************************************************************************************************************************************/ +/***/ "./node_modules/babel-loader/lib/index.js?!./node_modules/vue-loader/lib/index.js?!./packages/framework/resources/components/system/tax-group/TaxGroupTable.vue?vue&type=script&lang=js&": +/*!*********************************************************************************************************************************************************************************************************!*\ + !*** ./node_modules/babel-loader/lib??ref--4-0!./node_modules/vue-loader/lib??vue-loader-options!./packages/framework/resources/components/system/tax-group/TaxGroupTable.vue?vue&type=script&lang=js& ***! + \*********************************************************************************************************************************************************************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { @@ -12,54 +12,103 @@ __webpack_require__.r(__webpack_exports__); /* harmony import */ var lodash_isNil__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! lodash/isNil */ "./node_modules/lodash/isNil.js"); /* harmony import */ var lodash_isNil__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(lodash_isNil__WEBPACK_IMPORTED_MODULE_0__); +var columns = [{ + title: 'Name', + dataIndex: 'name', + key: 'name', + sorter: true +}, { + title: 'Action', + key: 'action', + scopedSlots: { + customRender: 'action' + }, + sorter: false, + width: "10%" +}]; /* harmony default export */ __webpack_exports__["default"] = ({ - props: ['taxRate', 'baseUrl'], + props: ['baseUrl', 'taxGroups'], data: function data() { return { - taxRateForm: this.$form.createForm(this), - rate_type: '', - country_id: 0 + columns: columns }; }, methods: { - handleSubmit: function handleSubmit() { - this.taxRateForm.validateFields(function (err, values) { - if (err) { - e.preventDefault(); + handleTableChange: function handleTableChange(pagination, filters, sorter) { + this.taxGroups.sort(function (a, b) { + var columnKey = sorter.columnKey; + var order = sorter.order; + + if (lodash_isNil__WEBPACK_IMPORTED_MODULE_0___default()(a[columnKey])) { + a[columnKey] = ''; + } + + if (lodash_isNil__WEBPACK_IMPORTED_MODULE_0___default()(b[columnKey])) { + b[columnKey] = ''; } + + if (order === 'ascend') { + if (a[columnKey] < b[columnKey]) return -1; + if (a[columnKey] > b[columnKey]) return 1; + } + + if (order === 'descend') { + if (a[columnKey] > b[columnKey]) return -1; + if (a[columnKey] < b[columnKey]) return 1; + } + + return 0; }); }, - handleRateTypeChange: function handleRateTypeChange(val) { - this.rate_type = val; + getEditUrl: function getEditUrl(record) { + return this.baseUrl + '/tax-group/' + record.id + '/edit'; }, - handleCountrySelectChange: function handleCountrySelectChange(value) { - this.country_id = value; + getDeleteUrl: function getDeleteUrl(record) { + return this.baseUrl + '/tax-group/' + record.id; }, - cancelTaxRate: function cancelTaxRate() { - window.location = this.baseUrl + '/tax-group'; - } - }, - mounted: function mounted() { - if (!lodash_isNil__WEBPACK_IMPORTED_MODULE_0___default()(this.taxRate)) { - this.country_id = this.taxRate.country_id; - this.rate_type = this.taxRate.rate_type; + deleteTaxGroup: function deleteTaxGroup(record) { + var url = this.baseUrl + '/tax-group/' + record.id; + var app = this; + this.$confirm({ + title: 'Do you Want to delete ' + record.name + ' tax-group?', + okType: 'danger', + onOk: function onOk() { + axios["delete"](url).then(function (response) { + if (response.data.success === true) { + app.$notification.error({ + key: 'tax-group.delete.success', + message: response.data.message + }); + } + + window.location.reload(); + })["catch"](function (errors) { + app.$notification.error({ + key: 'tax-group.delete.error', + message: errors.message + }); + }); + }, + onCancel: function onCancel() {// Do nothing + } + }); } } }); /***/ }), -/***/ "./vendor/avored/framework/resources/components/system/tax-rate/TaxRateSave.vue": -/*!**************************************************************************************!*\ - !*** ./vendor/avored/framework/resources/components/system/tax-rate/TaxRateSave.vue ***! - \**************************************************************************************/ +/***/ "./packages/framework/resources/components/system/tax-group/TaxGroupTable.vue": +/*!************************************************************************************!*\ + !*** ./packages/framework/resources/components/system/tax-group/TaxGroupTable.vue ***! + \************************************************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); -/* harmony import */ var _TaxRateSave_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./TaxRateSave.vue?vue&type=script&lang=js& */ "./vendor/avored/framework/resources/components/system/tax-rate/TaxRateSave.vue?vue&type=script&lang=js&"); -/* empty/unused harmony star reexport *//* harmony import */ var _node_modules_vue_loader_lib_runtime_componentNormalizer_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../../../../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js */ "./node_modules/vue-loader/lib/runtime/componentNormalizer.js"); +/* harmony import */ var _TaxGroupTable_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./TaxGroupTable.vue?vue&type=script&lang=js& */ "./packages/framework/resources/components/system/tax-group/TaxGroupTable.vue?vue&type=script&lang=js&"); +/* empty/unused harmony star reexport *//* harmony import */ var _node_modules_vue_loader_lib_runtime_componentNormalizer_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../../../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js */ "./node_modules/vue-loader/lib/runtime/componentNormalizer.js"); var render, staticRenderFns @@ -68,7 +117,7 @@ var render, staticRenderFns /* normalize component */ var component = Object(_node_modules_vue_loader_lib_runtime_componentNormalizer_js__WEBPACK_IMPORTED_MODULE_1__["default"])( - _TaxRateSave_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0__["default"], + _TaxGroupTable_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0__["default"], render, staticRenderFns, false, @@ -80,22 +129,22 @@ var component = Object(_node_modules_vue_loader_lib_runtime_componentNormalizer_ /* hot reload */ if (false) { var api; } -component.options.__file = "vendor/avored/framework/resources/components/system/tax-rate/TaxRateSave.vue" +component.options.__file = "packages/framework/resources/components/system/tax-group/TaxGroupTable.vue" /* harmony default export */ __webpack_exports__["default"] = (component.exports); /***/ }), -/***/ "./vendor/avored/framework/resources/components/system/tax-rate/TaxRateSave.vue?vue&type=script&lang=js&": -/*!***************************************************************************************************************!*\ - !*** ./vendor/avored/framework/resources/components/system/tax-rate/TaxRateSave.vue?vue&type=script&lang=js& ***! - \***************************************************************************************************************/ +/***/ "./packages/framework/resources/components/system/tax-group/TaxGroupTable.vue?vue&type=script&lang=js&": +/*!*************************************************************************************************************!*\ + !*** ./packages/framework/resources/components/system/tax-group/TaxGroupTable.vue?vue&type=script&lang=js& ***! + \*************************************************************************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); -/* harmony import */ var _node_modules_babel_loader_lib_index_js_ref_4_0_node_modules_vue_loader_lib_index_js_vue_loader_options_TaxRateSave_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! -!../../../../../../../node_modules/babel-loader/lib??ref--4-0!../../../../../../../node_modules/vue-loader/lib??vue-loader-options!./TaxRateSave.vue?vue&type=script&lang=js& */ "./node_modules/babel-loader/lib/index.js?!./node_modules/vue-loader/lib/index.js?!./vendor/avored/framework/resources/components/system/tax-rate/TaxRateSave.vue?vue&type=script&lang=js&"); -/* empty/unused harmony star reexport */ /* harmony default export */ __webpack_exports__["default"] = (_node_modules_babel_loader_lib_index_js_ref_4_0_node_modules_vue_loader_lib_index_js_vue_loader_options_TaxRateSave_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0__["default"]); +/* harmony import */ var _node_modules_babel_loader_lib_index_js_ref_4_0_node_modules_vue_loader_lib_index_js_vue_loader_options_TaxGroupTable_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! -!../../../../../../node_modules/babel-loader/lib??ref--4-0!../../../../../../node_modules/vue-loader/lib??vue-loader-options!./TaxGroupTable.vue?vue&type=script&lang=js& */ "./node_modules/babel-loader/lib/index.js?!./node_modules/vue-loader/lib/index.js?!./packages/framework/resources/components/system/tax-group/TaxGroupTable.vue?vue&type=script&lang=js&"); +/* empty/unused harmony star reexport */ /* harmony default export */ __webpack_exports__["default"] = (_node_modules_babel_loader_lib_index_js_ref_4_0_node_modules_vue_loader_lib_index_js_vue_loader_options_TaxGroupTable_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0__["default"]); /***/ }) diff --git a/public/avored-admin/js/chunk/43.js b/public/avored-admin/js/chunk/43.js index 2a3ec9a71..ca2303ca8 100644 --- a/public/avored-admin/js/chunk/43.js +++ b/public/avored-admin/js/chunk/43.js @@ -1,9 +1,9 @@ (window["webpackJsonp"] = window["webpackJsonp"] || []).push([[43],{ -/***/ "./node_modules/babel-loader/lib/index.js?!./node_modules/vue-loader/lib/index.js?!./vendor/avored/framework/resources/components/system/tax-rate/TaxRateTable.vue?vue&type=script&lang=js&": -/*!************************************************************************************************************************************************************************************************************!*\ - !*** ./node_modules/babel-loader/lib??ref--4-0!./node_modules/vue-loader/lib??vue-loader-options!./vendor/avored/framework/resources/components/system/tax-rate/TaxRateTable.vue?vue&type=script&lang=js& ***! - \************************************************************************************************************************************************************************************************************/ +/***/ "./node_modules/babel-loader/lib/index.js?!./node_modules/vue-loader/lib/index.js?!./packages/framework/resources/components/system/tax-rate/TaxRateSave.vue?vue&type=script&lang=js&": +/*!******************************************************************************************************************************************************************************************************!*\ + !*** ./node_modules/babel-loader/lib??ref--4-0!./node_modules/vue-loader/lib??vue-loader-options!./packages/framework/resources/components/system/tax-rate/TaxRateSave.vue?vue&type=script&lang=js& ***! + \******************************************************************************************************************************************************************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { @@ -11,105 +11,55 @@ __webpack_require__.r(__webpack_exports__); /* harmony import */ var lodash_isNil__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! lodash/isNil */ "./node_modules/lodash/isNil.js"); /* harmony import */ var lodash_isNil__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(lodash_isNil__WEBPACK_IMPORTED_MODULE_0__); -// - -var columns = [{ - title: 'Name', - dataIndex: 'name', - key: 'name', - sorter: true -}, { - title: 'Action', - key: 'action', - scopedSlots: { - customRender: 'action' - }, - sorter: false, - width: "10%" -}]; + /* harmony default export */ __webpack_exports__["default"] = ({ - props: ['baseUrl', 'taxRates'], + props: ['taxRate', 'baseUrl'], data: function data() { return { - columns: columns + taxRateForm: this.$form.createForm(this), + rate_type: '', + country_id: 0 }; }, methods: { - handleTableChange: function handleTableChange(pagination, filters, sorter) { - this.taxRates.sort(function (a, b) { - var columnKey = sorter.columnKey; - var order = sorter.order; - - if (lodash_isNil__WEBPACK_IMPORTED_MODULE_0___default()(a[columnKey])) { - a[columnKey] = ''; - } - - if (lodash_isNil__WEBPACK_IMPORTED_MODULE_0___default()(b[columnKey])) { - b[columnKey] = ''; - } - - if (order === 'ascend') { - if (a[columnKey] < b[columnKey]) return -1; - if (a[columnKey] > b[columnKey]) return 1; + handleSubmit: function handleSubmit() { + this.taxRateForm.validateFields(function (err, values) { + if (err) { + e.preventDefault(); } - - if (order === 'descend') { - if (a[columnKey] > b[columnKey]) return -1; - if (a[columnKey] < b[columnKey]) return 1; - } - - return 0; }); }, - getEditUrl: function getEditUrl(record) { - return this.baseUrl + '/tax-rate/' + record.id + '/edit'; + handleRateTypeChange: function handleRateTypeChange(val) { + this.rate_type = val; }, - getDeleteUrl: function getDeleteUrl(record) { - return this.baseUrl + '/tax-rate/' + record.id; + handleCountrySelectChange: function handleCountrySelectChange(value) { + this.country_id = value; }, - deleteTaxRate: function deleteTaxRate(record) { - var url = this.baseUrl + '/tax-rate/' + record.id; - var app = this; - this.$confirm({ - title: 'Do you Want to delete ' + record.name + ' tax-rate?', - okType: 'danger', - onOk: function onOk() { - axios["delete"](url).then(function (response) { - if (response.data.success === true) { - app.$notification.error({ - key: 'tax-rate.delete.success', - message: response.data.message - }); - } - - window.location.reload(); - })["catch"](function (errors) { - app.$notification.error({ - key: 'tax-rate.delete.error', - message: errors.message - }); - }); - }, - onCancel: function onCancel() {// Do nothing - } - }); + cancelTaxRate: function cancelTaxRate() { + window.location = this.baseUrl + '/tax-group'; + } + }, + mounted: function mounted() { + if (!lodash_isNil__WEBPACK_IMPORTED_MODULE_0___default()(this.taxRate)) { + this.country_id = this.taxRate.country_id; + this.rate_type = this.taxRate.rate_type; } } }); /***/ }), -/***/ "./vendor/avored/framework/resources/components/system/tax-rate/TaxRateTable.vue": -/*!***************************************************************************************!*\ - !*** ./vendor/avored/framework/resources/components/system/tax-rate/TaxRateTable.vue ***! - \***************************************************************************************/ +/***/ "./packages/framework/resources/components/system/tax-rate/TaxRateSave.vue": +/*!*********************************************************************************!*\ + !*** ./packages/framework/resources/components/system/tax-rate/TaxRateSave.vue ***! + \*********************************************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); -/* harmony import */ var _TaxRateTable_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./TaxRateTable.vue?vue&type=script&lang=js& */ "./vendor/avored/framework/resources/components/system/tax-rate/TaxRateTable.vue?vue&type=script&lang=js&"); -/* empty/unused harmony star reexport *//* harmony import */ var _node_modules_vue_loader_lib_runtime_componentNormalizer_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../../../../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js */ "./node_modules/vue-loader/lib/runtime/componentNormalizer.js"); +/* harmony import */ var _TaxRateSave_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./TaxRateSave.vue?vue&type=script&lang=js& */ "./packages/framework/resources/components/system/tax-rate/TaxRateSave.vue?vue&type=script&lang=js&"); +/* empty/unused harmony star reexport *//* harmony import */ var _node_modules_vue_loader_lib_runtime_componentNormalizer_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../../../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js */ "./node_modules/vue-loader/lib/runtime/componentNormalizer.js"); var render, staticRenderFns @@ -118,7 +68,7 @@ var render, staticRenderFns /* normalize component */ var component = Object(_node_modules_vue_loader_lib_runtime_componentNormalizer_js__WEBPACK_IMPORTED_MODULE_1__["default"])( - _TaxRateTable_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0__["default"], + _TaxRateSave_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0__["default"], render, staticRenderFns, false, @@ -130,22 +80,22 @@ var component = Object(_node_modules_vue_loader_lib_runtime_componentNormalizer_ /* hot reload */ if (false) { var api; } -component.options.__file = "vendor/avored/framework/resources/components/system/tax-rate/TaxRateTable.vue" +component.options.__file = "packages/framework/resources/components/system/tax-rate/TaxRateSave.vue" /* harmony default export */ __webpack_exports__["default"] = (component.exports); /***/ }), -/***/ "./vendor/avored/framework/resources/components/system/tax-rate/TaxRateTable.vue?vue&type=script&lang=js&": -/*!****************************************************************************************************************!*\ - !*** ./vendor/avored/framework/resources/components/system/tax-rate/TaxRateTable.vue?vue&type=script&lang=js& ***! - \****************************************************************************************************************/ +/***/ "./packages/framework/resources/components/system/tax-rate/TaxRateSave.vue?vue&type=script&lang=js&": +/*!**********************************************************************************************************!*\ + !*** ./packages/framework/resources/components/system/tax-rate/TaxRateSave.vue?vue&type=script&lang=js& ***! + \**********************************************************************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); -/* harmony import */ var _node_modules_babel_loader_lib_index_js_ref_4_0_node_modules_vue_loader_lib_index_js_vue_loader_options_TaxRateTable_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! -!../../../../../../../node_modules/babel-loader/lib??ref--4-0!../../../../../../../node_modules/vue-loader/lib??vue-loader-options!./TaxRateTable.vue?vue&type=script&lang=js& */ "./node_modules/babel-loader/lib/index.js?!./node_modules/vue-loader/lib/index.js?!./vendor/avored/framework/resources/components/system/tax-rate/TaxRateTable.vue?vue&type=script&lang=js&"); -/* empty/unused harmony star reexport */ /* harmony default export */ __webpack_exports__["default"] = (_node_modules_babel_loader_lib_index_js_ref_4_0_node_modules_vue_loader_lib_index_js_vue_loader_options_TaxRateTable_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0__["default"]); +/* harmony import */ var _node_modules_babel_loader_lib_index_js_ref_4_0_node_modules_vue_loader_lib_index_js_vue_loader_options_TaxRateSave_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! -!../../../../../../node_modules/babel-loader/lib??ref--4-0!../../../../../../node_modules/vue-loader/lib??vue-loader-options!./TaxRateSave.vue?vue&type=script&lang=js& */ "./node_modules/babel-loader/lib/index.js?!./node_modules/vue-loader/lib/index.js?!./packages/framework/resources/components/system/tax-rate/TaxRateSave.vue?vue&type=script&lang=js&"); +/* empty/unused harmony star reexport */ /* harmony default export */ __webpack_exports__["default"] = (_node_modules_babel_loader_lib_index_js_ref_4_0_node_modules_vue_loader_lib_index_js_vue_loader_options_TaxRateSave_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0__["default"]); /***/ }) diff --git a/public/avored-admin/js/chunk/44.js b/public/avored-admin/js/chunk/44.js index 23ce98fd1..c020ca54c 100644 --- a/public/avored-admin/js/chunk/44.js +++ b/public/avored-admin/js/chunk/44.js @@ -1,67 +1,115 @@ (window["webpackJsonp"] = window["webpackJsonp"] || []).push([[44],{ -/***/ "./node_modules/babel-loader/lib/index.js?!./node_modules/vue-loader/lib/index.js?!./vendor/avored/framework/resources/components/user/user-group/UserGroupSave.vue?vue&type=script&lang=js&": -/*!*************************************************************************************************************************************************************************************************************!*\ - !*** ./node_modules/babel-loader/lib??ref--4-0!./node_modules/vue-loader/lib??vue-loader-options!./vendor/avored/framework/resources/components/user/user-group/UserGroupSave.vue?vue&type=script&lang=js& ***! - \*************************************************************************************************************************************************************************************************************/ +/***/ "./node_modules/babel-loader/lib/index.js?!./node_modules/vue-loader/lib/index.js?!./packages/framework/resources/components/system/tax-rate/TaxRateTable.vue?vue&type=script&lang=js&": +/*!*******************************************************************************************************************************************************************************************************!*\ + !*** ./node_modules/babel-loader/lib??ref--4-0!./node_modules/vue-loader/lib??vue-loader-options!./packages/framework/resources/components/system/tax-rate/TaxRateTable.vue?vue&type=script&lang=js& ***! + \*******************************************************************************************************************************************************************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); -/* harmony import */ var vue_quill_editor__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! vue-quill-editor */ "./node_modules/vue-quill-editor/dist/vue-quill-editor.js"); -/* harmony import */ var vue_quill_editor__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(vue_quill_editor__WEBPACK_IMPORTED_MODULE_0__); -/* harmony import */ var lodash_isNil__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! lodash/isNil */ "./node_modules/lodash/isNil.js"); -/* harmony import */ var lodash_isNil__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(lodash_isNil__WEBPACK_IMPORTED_MODULE_1__); - - +/* harmony import */ var lodash_isNil__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! lodash/isNil */ "./node_modules/lodash/isNil.js"); +/* harmony import */ var lodash_isNil__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(lodash_isNil__WEBPACK_IMPORTED_MODULE_0__); +// + +var columns = [{ + title: 'Name', + dataIndex: 'name', + key: 'name', + sorter: true +}, { + title: 'Action', + key: 'action', + scopedSlots: { + customRender: 'action' + }, + sorter: false, + width: "10%" +}]; /* harmony default export */ __webpack_exports__["default"] = ({ - props: ['userGroup', 'baseUrl'], + props: ['baseUrl', 'taxRates'], data: function data() { return { - userGroupForm: this.$form.createForm(this), - is_default: 1 + columns: columns }; }, methods: { - handleSubmit: function handleSubmit() { - this.userGroupForm.validateFields(function (err, values) { - if (err) { - e.preventDefault(); + handleTableChange: function handleTableChange(pagination, filters, sorter) { + this.taxRates.sort(function (a, b) { + var columnKey = sorter.columnKey; + var order = sorter.order; + + if (lodash_isNil__WEBPACK_IMPORTED_MODULE_0___default()(a[columnKey])) { + a[columnKey] = ''; + } + + if (lodash_isNil__WEBPACK_IMPORTED_MODULE_0___default()(b[columnKey])) { + b[columnKey] = ''; + } + + if (order === 'ascend') { + if (a[columnKey] < b[columnKey]) return -1; + if (a[columnKey] > b[columnKey]) return 1; } + + if (order === 'descend') { + if (a[columnKey] > b[columnKey]) return -1; + if (a[columnKey] < b[columnKey]) return 1; + } + + return 0; }); }, - isDefaultSwitchChange: function isDefaultSwitchChange(val) { - if (val) { - this.is_default = 1; - } else { - this.is_default = 0; - } + getEditUrl: function getEditUrl(record) { + return this.baseUrl + '/tax-rate/' + record.id + '/edit'; }, - cancelUserGroup: function cancelUserGroup() { - window.location = this.baseUrl + '/user-group'; - } - }, - mounted: function mounted() { - if (!lodash_isNil__WEBPACK_IMPORTED_MODULE_1___default()(this.userGroup)) { - this.is_default = this.userGroup.is_default; + getDeleteUrl: function getDeleteUrl(record) { + return this.baseUrl + '/tax-rate/' + record.id; + }, + deleteTaxRate: function deleteTaxRate(record) { + var url = this.baseUrl + '/tax-rate/' + record.id; + var app = this; + this.$confirm({ + title: 'Do you Want to delete ' + record.name + ' tax-rate?', + okType: 'danger', + onOk: function onOk() { + axios["delete"](url).then(function (response) { + if (response.data.success === true) { + app.$notification.error({ + key: 'tax-rate.delete.success', + message: response.data.message + }); + } + + window.location.reload(); + })["catch"](function (errors) { + app.$notification.error({ + key: 'tax-rate.delete.error', + message: errors.message + }); + }); + }, + onCancel: function onCancel() {// Do nothing + } + }); } } }); /***/ }), -/***/ "./vendor/avored/framework/resources/components/user/user-group/UserGroupSave.vue": -/*!****************************************************************************************!*\ - !*** ./vendor/avored/framework/resources/components/user/user-group/UserGroupSave.vue ***! - \****************************************************************************************/ +/***/ "./packages/framework/resources/components/system/tax-rate/TaxRateTable.vue": +/*!**********************************************************************************!*\ + !*** ./packages/framework/resources/components/system/tax-rate/TaxRateTable.vue ***! + \**********************************************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); -/* harmony import */ var _UserGroupSave_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./UserGroupSave.vue?vue&type=script&lang=js& */ "./vendor/avored/framework/resources/components/user/user-group/UserGroupSave.vue?vue&type=script&lang=js&"); -/* empty/unused harmony star reexport *//* harmony import */ var _node_modules_vue_loader_lib_runtime_componentNormalizer_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../../../../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js */ "./node_modules/vue-loader/lib/runtime/componentNormalizer.js"); +/* harmony import */ var _TaxRateTable_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./TaxRateTable.vue?vue&type=script&lang=js& */ "./packages/framework/resources/components/system/tax-rate/TaxRateTable.vue?vue&type=script&lang=js&"); +/* empty/unused harmony star reexport *//* harmony import */ var _node_modules_vue_loader_lib_runtime_componentNormalizer_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../../../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js */ "./node_modules/vue-loader/lib/runtime/componentNormalizer.js"); var render, staticRenderFns @@ -70,7 +118,7 @@ var render, staticRenderFns /* normalize component */ var component = Object(_node_modules_vue_loader_lib_runtime_componentNormalizer_js__WEBPACK_IMPORTED_MODULE_1__["default"])( - _UserGroupSave_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0__["default"], + _TaxRateTable_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0__["default"], render, staticRenderFns, false, @@ -82,22 +130,22 @@ var component = Object(_node_modules_vue_loader_lib_runtime_componentNormalizer_ /* hot reload */ if (false) { var api; } -component.options.__file = "vendor/avored/framework/resources/components/user/user-group/UserGroupSave.vue" +component.options.__file = "packages/framework/resources/components/system/tax-rate/TaxRateTable.vue" /* harmony default export */ __webpack_exports__["default"] = (component.exports); /***/ }), -/***/ "./vendor/avored/framework/resources/components/user/user-group/UserGroupSave.vue?vue&type=script&lang=js&": -/*!*****************************************************************************************************************!*\ - !*** ./vendor/avored/framework/resources/components/user/user-group/UserGroupSave.vue?vue&type=script&lang=js& ***! - \*****************************************************************************************************************/ +/***/ "./packages/framework/resources/components/system/tax-rate/TaxRateTable.vue?vue&type=script&lang=js&": +/*!***********************************************************************************************************!*\ + !*** ./packages/framework/resources/components/system/tax-rate/TaxRateTable.vue?vue&type=script&lang=js& ***! + \***********************************************************************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); -/* harmony import */ var _node_modules_babel_loader_lib_index_js_ref_4_0_node_modules_vue_loader_lib_index_js_vue_loader_options_UserGroupSave_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! -!../../../../../../../node_modules/babel-loader/lib??ref--4-0!../../../../../../../node_modules/vue-loader/lib??vue-loader-options!./UserGroupSave.vue?vue&type=script&lang=js& */ "./node_modules/babel-loader/lib/index.js?!./node_modules/vue-loader/lib/index.js?!./vendor/avored/framework/resources/components/user/user-group/UserGroupSave.vue?vue&type=script&lang=js&"); -/* empty/unused harmony star reexport */ /* harmony default export */ __webpack_exports__["default"] = (_node_modules_babel_loader_lib_index_js_ref_4_0_node_modules_vue_loader_lib_index_js_vue_loader_options_UserGroupSave_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0__["default"]); +/* harmony import */ var _node_modules_babel_loader_lib_index_js_ref_4_0_node_modules_vue_loader_lib_index_js_vue_loader_options_TaxRateTable_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! -!../../../../../../node_modules/babel-loader/lib??ref--4-0!../../../../../../node_modules/vue-loader/lib??vue-loader-options!./TaxRateTable.vue?vue&type=script&lang=js& */ "./node_modules/babel-loader/lib/index.js?!./node_modules/vue-loader/lib/index.js?!./packages/framework/resources/components/system/tax-rate/TaxRateTable.vue?vue&type=script&lang=js&"); +/* empty/unused harmony star reexport */ /* harmony default export */ __webpack_exports__["default"] = (_node_modules_babel_loader_lib_index_js_ref_4_0_node_modules_vue_loader_lib_index_js_vue_loader_options_TaxRateTable_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0__["default"]); /***/ }) diff --git a/public/avored-admin/js/chunk/45.js b/public/avored-admin/js/chunk/45.js index c480e77fd..e344c8806 100644 --- a/public/avored-admin/js/chunk/45.js +++ b/public/avored-admin/js/chunk/45.js @@ -1,119 +1,67 @@ (window["webpackJsonp"] = window["webpackJsonp"] || []).push([[45],{ -/***/ "./node_modules/babel-loader/lib/index.js?!./node_modules/vue-loader/lib/index.js?!./vendor/avored/framework/resources/components/user/user-group/UserGroupTable.vue?vue&type=script&lang=js&": -/*!**************************************************************************************************************************************************************************************************************!*\ - !*** ./node_modules/babel-loader/lib??ref--4-0!./node_modules/vue-loader/lib??vue-loader-options!./vendor/avored/framework/resources/components/user/user-group/UserGroupTable.vue?vue&type=script&lang=js& ***! - \**************************************************************************************************************************************************************************************************************/ +/***/ "./node_modules/babel-loader/lib/index.js?!./node_modules/vue-loader/lib/index.js?!./packages/framework/resources/components/user/user-group/UserGroupSave.vue?vue&type=script&lang=js&": +/*!********************************************************************************************************************************************************************************************************!*\ + !*** ./node_modules/babel-loader/lib??ref--4-0!./node_modules/vue-loader/lib??vue-loader-options!./packages/framework/resources/components/user/user-group/UserGroupSave.vue?vue&type=script&lang=js& ***! + \********************************************************************************************************************************************************************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); -/* harmony import */ var lodash_isNil__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! lodash/isNil */ "./node_modules/lodash/isNil.js"); -/* harmony import */ var lodash_isNil__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(lodash_isNil__WEBPACK_IMPORTED_MODULE_0__); - -var columns = [{ - title: 'Name', - dataIndex: 'name', - key: 'name', - sorter: true -}, { - title: 'Is Default', - dataIndex: 'is_default', - key: 'is_default', - sorter: true -}, { - title: 'Action', - key: 'action', - scopedSlots: { - customRender: 'action' - }, - sorter: false, - width: "10%" -}]; +/* harmony import */ var vue_quill_editor__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! vue-quill-editor */ "./node_modules/vue-quill-editor/dist/vue-quill-editor.js"); +/* harmony import */ var vue_quill_editor__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(vue_quill_editor__WEBPACK_IMPORTED_MODULE_0__); +/* harmony import */ var lodash_isNil__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! lodash/isNil */ "./node_modules/lodash/isNil.js"); +/* harmony import */ var lodash_isNil__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(lodash_isNil__WEBPACK_IMPORTED_MODULE_1__); + + /* harmony default export */ __webpack_exports__["default"] = ({ - props: ['baseUrl', 'userGroups'], + props: ['userGroup', 'baseUrl'], data: function data() { return { - columns: columns + userGroupForm: this.$form.createForm(this), + is_default: 1 }; }, methods: { - handleTableChange: function handleTableChange(pagination, filters, sorter) { - this.userGroups.sort(function (a, b) { - var columnKey = sorter.columnKey; - var order = sorter.order; - - if (lodash_isNil__WEBPACK_IMPORTED_MODULE_0___default()(a[columnKey])) { - a[columnKey] = ''; - } - - if (lodash_isNil__WEBPACK_IMPORTED_MODULE_0___default()(b[columnKey])) { - b[columnKey] = ''; - } - - if (order === 'ascend') { - if (a[columnKey] < b[columnKey]) return -1; - if (a[columnKey] > b[columnKey]) return 1; + handleSubmit: function handleSubmit() { + this.userGroupForm.validateFields(function (err, values) { + if (err) { + e.preventDefault(); } - - if (order === 'descend') { - if (a[columnKey] > b[columnKey]) return -1; - if (a[columnKey] < b[columnKey]) return 1; - } - - return 0; }); }, - getEditUrl: function getEditUrl(record) { - return this.baseUrl + '/user-group/' + record.id + '/edit'; - }, - getDeleteUrl: function getDeleteUrl(record) { - return this.baseUrl + '/user-group/' + record.id; + isDefaultSwitchChange: function isDefaultSwitchChange(val) { + if (val) { + this.is_default = 1; + } else { + this.is_default = 0; + } }, - deleteUserGroup: function deleteUserGroup(record) { - var url = this.baseUrl + '/user-group/' + record.id; - var app = this; - this.$confirm({ - title: 'Do you Want to delete ' + record.name + ' user-group?', - okType: 'danger', - onOk: function onOk() { - axios["delete"](url).then(function (response) { - if (response.data.success === true) { - app.$notification.error({ - key: 'user-group.delete.success', - message: response.data.message - }); - } - - window.location.reload(); - })["catch"](function (errors) { - app.$notification.error({ - key: 'user-group.delete.error', - message: errors.message - }); - }); - }, - onCancel: function onCancel() {// Do nothing - } - }); + cancelUserGroup: function cancelUserGroup() { + window.location = this.baseUrl + '/user-group'; + } + }, + mounted: function mounted() { + if (!lodash_isNil__WEBPACK_IMPORTED_MODULE_1___default()(this.userGroup)) { + this.is_default = this.userGroup.is_default; } } }); /***/ }), -/***/ "./vendor/avored/framework/resources/components/user/user-group/UserGroupTable.vue": -/*!*****************************************************************************************!*\ - !*** ./vendor/avored/framework/resources/components/user/user-group/UserGroupTable.vue ***! - \*****************************************************************************************/ +/***/ "./packages/framework/resources/components/user/user-group/UserGroupSave.vue": +/*!***********************************************************************************!*\ + !*** ./packages/framework/resources/components/user/user-group/UserGroupSave.vue ***! + \***********************************************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); -/* harmony import */ var _UserGroupTable_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./UserGroupTable.vue?vue&type=script&lang=js& */ "./vendor/avored/framework/resources/components/user/user-group/UserGroupTable.vue?vue&type=script&lang=js&"); -/* empty/unused harmony star reexport *//* harmony import */ var _node_modules_vue_loader_lib_runtime_componentNormalizer_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../../../../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js */ "./node_modules/vue-loader/lib/runtime/componentNormalizer.js"); +/* harmony import */ var _UserGroupSave_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./UserGroupSave.vue?vue&type=script&lang=js& */ "./packages/framework/resources/components/user/user-group/UserGroupSave.vue?vue&type=script&lang=js&"); +/* empty/unused harmony star reexport *//* harmony import */ var _node_modules_vue_loader_lib_runtime_componentNormalizer_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../../../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js */ "./node_modules/vue-loader/lib/runtime/componentNormalizer.js"); var render, staticRenderFns @@ -122,7 +70,7 @@ var render, staticRenderFns /* normalize component */ var component = Object(_node_modules_vue_loader_lib_runtime_componentNormalizer_js__WEBPACK_IMPORTED_MODULE_1__["default"])( - _UserGroupTable_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0__["default"], + _UserGroupSave_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0__["default"], render, staticRenderFns, false, @@ -134,22 +82,22 @@ var component = Object(_node_modules_vue_loader_lib_runtime_componentNormalizer_ /* hot reload */ if (false) { var api; } -component.options.__file = "vendor/avored/framework/resources/components/user/user-group/UserGroupTable.vue" +component.options.__file = "packages/framework/resources/components/user/user-group/UserGroupSave.vue" /* harmony default export */ __webpack_exports__["default"] = (component.exports); /***/ }), -/***/ "./vendor/avored/framework/resources/components/user/user-group/UserGroupTable.vue?vue&type=script&lang=js&": -/*!******************************************************************************************************************!*\ - !*** ./vendor/avored/framework/resources/components/user/user-group/UserGroupTable.vue?vue&type=script&lang=js& ***! - \******************************************************************************************************************/ +/***/ "./packages/framework/resources/components/user/user-group/UserGroupSave.vue?vue&type=script&lang=js&": +/*!************************************************************************************************************!*\ + !*** ./packages/framework/resources/components/user/user-group/UserGroupSave.vue?vue&type=script&lang=js& ***! + \************************************************************************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); -/* harmony import */ var _node_modules_babel_loader_lib_index_js_ref_4_0_node_modules_vue_loader_lib_index_js_vue_loader_options_UserGroupTable_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! -!../../../../../../../node_modules/babel-loader/lib??ref--4-0!../../../../../../../node_modules/vue-loader/lib??vue-loader-options!./UserGroupTable.vue?vue&type=script&lang=js& */ "./node_modules/babel-loader/lib/index.js?!./node_modules/vue-loader/lib/index.js?!./vendor/avored/framework/resources/components/user/user-group/UserGroupTable.vue?vue&type=script&lang=js&"); -/* empty/unused harmony star reexport */ /* harmony default export */ __webpack_exports__["default"] = (_node_modules_babel_loader_lib_index_js_ref_4_0_node_modules_vue_loader_lib_index_js_vue_loader_options_UserGroupTable_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0__["default"]); +/* harmony import */ var _node_modules_babel_loader_lib_index_js_ref_4_0_node_modules_vue_loader_lib_index_js_vue_loader_options_UserGroupSave_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! -!../../../../../../node_modules/babel-loader/lib??ref--4-0!../../../../../../node_modules/vue-loader/lib??vue-loader-options!./UserGroupSave.vue?vue&type=script&lang=js& */ "./node_modules/babel-loader/lib/index.js?!./node_modules/vue-loader/lib/index.js?!./packages/framework/resources/components/user/user-group/UserGroupSave.vue?vue&type=script&lang=js&"); +/* empty/unused harmony star reexport */ /* harmony default export */ __webpack_exports__["default"] = (_node_modules_babel_loader_lib_index_js_ref_4_0_node_modules_vue_loader_lib_index_js_vue_loader_options_UserGroupSave_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0__["default"]); /***/ }) diff --git a/public/avored-admin/js/chunk/46.js b/public/avored-admin/js/chunk/46.js index b97260c15..aa9e25dae 100644 --- a/public/avored-admin/js/chunk/46.js +++ b/public/avored-admin/js/chunk/46.js @@ -1,221 +1,155 @@ (window["webpackJsonp"] = window["webpackJsonp"] || []).push([[46],{ -/***/ "./node_modules/ant-design-vue/lib/avatar/Avatar.js": -/*!**********************************************************!*\ - !*** ./node_modules/ant-design-vue/lib/avatar/Avatar.js ***! - \**********************************************************/ -/*! no static exports found */ -/***/ (function(module, exports, __webpack_require__) { +/***/ "./node_modules/babel-loader/lib/index.js?!./node_modules/vue-loader/lib/index.js?!./packages/framework/resources/components/user/user-group/UserGroupTable.vue?vue&type=script&lang=js&": +/*!*********************************************************************************************************************************************************************************************************!*\ + !*** ./node_modules/babel-loader/lib??ref--4-0!./node_modules/vue-loader/lib??vue-loader-options!./packages/framework/resources/components/user/user-group/UserGroupTable.vue?vue&type=script&lang=js& ***! + \*********************************************************************************************************************************************************************************************************/ +/*! exports provided: default */ +/***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; - - -Object.defineProperty(exports, "__esModule", { - value: true -}); - -var _defineProperty2 = __webpack_require__(/*! babel-runtime/helpers/defineProperty */ "./node_modules/babel-runtime/helpers/defineProperty.js"); - -var _defineProperty3 = _interopRequireDefault(_defineProperty2); - -var _extends4 = __webpack_require__(/*! babel-runtime/helpers/extends */ "./node_modules/babel-runtime/helpers/extends.js"); - -var _extends5 = _interopRequireDefault(_extends4); - -var _icon = __webpack_require__(/*! ../icon */ "./node_modules/ant-design-vue/lib/icon/index.js"); - -var _icon2 = _interopRequireDefault(_icon); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } - -exports['default'] = { - name: 'AAvatar', - props: { - prefixCls: { - type: String, - 'default': 'ant-avatar' - }, - shape: { - validator: function validator(val) { - return ['circle', 'square'].includes(val); - }, - 'default': 'circle' - }, - size: { - validator: function validator(val) { - return typeof val === 'number' || ['small', 'large', 'default'].includes(val); - }, - 'default': 'default' - }, - src: String, - /** Srcset of image avatar */ - srcSet: String, - icon: String, - alt: String, - loadError: Function +__webpack_require__.r(__webpack_exports__); +/* harmony import */ var lodash_isNil__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! lodash/isNil */ "./node_modules/lodash/isNil.js"); +/* harmony import */ var lodash_isNil__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(lodash_isNil__WEBPACK_IMPORTED_MODULE_0__); + +var columns = [{ + title: 'Name', + dataIndex: 'name', + key: 'name', + sorter: true +}, { + title: 'Is Default', + dataIndex: 'is_default', + key: 'is_default', + sorter: true +}, { + title: 'Action', + key: 'action', + scopedSlots: { + customRender: 'action' }, + sorter: false, + width: "10%" +}]; +/* harmony default export */ __webpack_exports__["default"] = ({ + props: ['baseUrl', 'userGroups'], data: function data() { return { - isImgExist: true, - scale: 1 + columns: columns }; }, + methods: { + handleTableChange: function handleTableChange(pagination, filters, sorter) { + this.userGroups.sort(function (a, b) { + var columnKey = sorter.columnKey; + var order = sorter.order; - watch: { - src: function src() { - this.isImgExist = true; - this.scale = 1; - } - }, - mounted: function mounted() { - var _this = this; - - this.prevChildren = this.$slots['default']; - this.prevState = (0, _extends5['default'])({}, this.$data); - this.$nextTick(function () { - _this.setScale(); - }); - }, - updated: function updated() { - var _this2 = this; + if (lodash_isNil__WEBPACK_IMPORTED_MODULE_0___default()(a[columnKey])) { + a[columnKey] = ''; + } - if (this.preChildren !== this.$slots['default'] || this.prevState.scale !== this.$data.scale && this.$data.scale === 1 || this.prevState.isImgExist !== this.$data.isImgExist) { - this.$nextTick(function () { - _this2.setScale(); - }); - } - this.preChildren = this.$slots['default']; - this.prevState = (0, _extends5['default'])({}, this.$data); - }, + if (lodash_isNil__WEBPACK_IMPORTED_MODULE_0___default()(b[columnKey])) { + b[columnKey] = ''; + } - methods: { - setScale: function setScale() { - var childrenNode = this.$refs.avatarChildren; - if (childrenNode) { - var childrenWidth = childrenNode.offsetWidth; - var avatarWidth = this.$el.getBoundingClientRect().width; - if (avatarWidth - 8 < childrenWidth) { - this.scale = (avatarWidth - 8) / childrenWidth; - } else { - this.scale = 1; + if (order === 'ascend') { + if (a[columnKey] < b[columnKey]) return -1; + if (a[columnKey] > b[columnKey]) return 1; } - this.$forceUpdate(); - } - }, - handleImgLoadError: function handleImgLoadError() { - var loadError = this.$props.loadError; - var errorFlag = loadError ? loadError() : undefined; - if (errorFlag !== false) { - this.isImgExist = false; - } - } - }, - render: function render() { - var _sizeCls, _extends3; - - var h = arguments[0]; - var _$props = this.$props, - prefixCls = _$props.prefixCls, - shape = _$props.shape, - size = _$props.size, - src = _$props.src, - icon = _$props.icon, - alt = _$props.alt, - srcSet = _$props.srcSet; - var _$data = this.$data, - isImgExist = _$data.isImgExist, - scale = _$data.scale; - - - var sizeCls = (_sizeCls = {}, (0, _defineProperty3['default'])(_sizeCls, prefixCls + '-lg', size === 'large'), (0, _defineProperty3['default'])(_sizeCls, prefixCls + '-sm', size === 'small'), _sizeCls); - - var classString = (0, _extends5['default'])((0, _defineProperty3['default'])({}, prefixCls, true), sizeCls, (_extends3 = {}, (0, _defineProperty3['default'])(_extends3, prefixCls + '-' + shape, shape), (0, _defineProperty3['default'])(_extends3, prefixCls + '-image', src && isImgExist), (0, _defineProperty3['default'])(_extends3, prefixCls + '-icon', icon), _extends3)); - - var sizeStyle = typeof size === 'number' ? { - width: size + 'px', - height: size + 'px', - lineHeight: size + 'px', - fontSize: icon ? size / 2 + 'px' : '18px' - } : {}; - - var children = this.$slots['default']; - if (src && isImgExist) { - children = h('img', { - attrs: { src: src, srcSet: srcSet, alt: alt }, - on: { - 'error': this.handleImgLoadError + if (order === 'descend') { + if (a[columnKey] > b[columnKey]) return -1; + if (a[columnKey] < b[columnKey]) return 1; } + + return 0; }); - } else if (icon) { - children = h(_icon2['default'], { - attrs: { type: icon } + }, + getEditUrl: function getEditUrl(record) { + return this.baseUrl + '/user-group/' + record.id + '/edit'; + }, + getDeleteUrl: function getDeleteUrl(record) { + return this.baseUrl + '/user-group/' + record.id; + }, + deleteUserGroup: function deleteUserGroup(record) { + var url = this.baseUrl + '/user-group/' + record.id; + var app = this; + this.$confirm({ + title: 'Do you Want to delete ' + record.name + ' user-group?', + okType: 'danger', + onOk: function onOk() { + axios["delete"](url).then(function (response) { + if (response.data.success === true) { + app.$notification.error({ + key: 'user-group.delete.success', + message: response.data.message + }); + } + + window.location.reload(); + })["catch"](function (errors) { + app.$notification.error({ + key: 'user-group.delete.error', + message: errors.message + }); + }); + }, + onCancel: function onCancel() {// Do nothing + } }); - } else { - var childrenNode = this.$refs.avatarChildren; - if (childrenNode || scale !== 1 && childrenNode) { - var transformString = 'scale(' + scale + ') translateX(-50%)'; - var childrenStyle = { - msTransform: transformString, - WebkitTransform: transformString, - transform: transformString - }; - var sizeChildrenStyle = typeof size === 'number' ? { - lineHeight: size + 'px' - } : {}; - children = h( - 'span', - { - 'class': prefixCls + '-string', - ref: 'avatarChildren', - style: (0, _extends5['default'])({}, sizeChildrenStyle, childrenStyle) - }, - [children] - ); - } else { - children = h( - 'span', - { 'class': prefixCls + '-string', ref: 'avatarChildren' }, - [children] - ); - } } - return h( - 'span', - { on: this.$listeners, 'class': classString, style: sizeStyle }, - [children] - ); } -}; +}); /***/ }), -/***/ "./node_modules/ant-design-vue/lib/avatar/index.js": -/*!*********************************************************!*\ - !*** ./node_modules/ant-design-vue/lib/avatar/index.js ***! - \*********************************************************/ -/*! no static exports found */ -/***/ (function(module, exports, __webpack_require__) { +/***/ "./packages/framework/resources/components/user/user-group/UserGroupTable.vue": +/*!************************************************************************************!*\ + !*** ./packages/framework/resources/components/user/user-group/UserGroupTable.vue ***! + \************************************************************************************/ +/*! exports provided: default */ +/***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; +__webpack_require__.r(__webpack_exports__); +/* harmony import */ var _UserGroupTable_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./UserGroupTable.vue?vue&type=script&lang=js& */ "./packages/framework/resources/components/user/user-group/UserGroupTable.vue?vue&type=script&lang=js&"); +/* empty/unused harmony star reexport *//* harmony import */ var _node_modules_vue_loader_lib_runtime_componentNormalizer_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../../../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js */ "./node_modules/vue-loader/lib/runtime/componentNormalizer.js"); +var render, staticRenderFns -Object.defineProperty(exports, "__esModule", { - value: true -}); -var _Avatar = __webpack_require__(/*! ./Avatar */ "./node_modules/ant-design-vue/lib/avatar/Avatar.js"); -var _Avatar2 = _interopRequireDefault(_Avatar); +/* normalize component */ -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } +var component = Object(_node_modules_vue_loader_lib_runtime_componentNormalizer_js__WEBPACK_IMPORTED_MODULE_1__["default"])( + _UserGroupTable_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0__["default"], + render, + staticRenderFns, + false, + null, + null, + null + +) -/* istanbul ignore next */ -_Avatar2['default'].install = function (Vue) { - Vue.component(_Avatar2['default'].name, _Avatar2['default']); -}; +/* hot reload */ +if (false) { var api; } +component.options.__file = "packages/framework/resources/components/user/user-group/UserGroupTable.vue" +/* harmony default export */ __webpack_exports__["default"] = (component.exports); -exports['default'] = _Avatar2['default']; +/***/ }), + +/***/ "./packages/framework/resources/components/user/user-group/UserGroupTable.vue?vue&type=script&lang=js&": +/*!*************************************************************************************************************!*\ + !*** ./packages/framework/resources/components/user/user-group/UserGroupTable.vue?vue&type=script&lang=js& ***! + \*************************************************************************************************************/ +/*! exports provided: default */ +/***/ (function(module, __webpack_exports__, __webpack_require__) { + +"use strict"; +__webpack_require__.r(__webpack_exports__); +/* harmony import */ var _node_modules_babel_loader_lib_index_js_ref_4_0_node_modules_vue_loader_lib_index_js_vue_loader_options_UserGroupTable_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! -!../../../../../../node_modules/babel-loader/lib??ref--4-0!../../../../../../node_modules/vue-loader/lib??vue-loader-options!./UserGroupTable.vue?vue&type=script&lang=js& */ "./node_modules/babel-loader/lib/index.js?!./node_modules/vue-loader/lib/index.js?!./packages/framework/resources/components/user/user-group/UserGroupTable.vue?vue&type=script&lang=js&"); +/* empty/unused harmony star reexport */ /* harmony default export */ __webpack_exports__["default"] = (_node_modules_babel_loader_lib_index_js_ref_4_0_node_modules_vue_loader_lib_index_js_vue_loader_options_UserGroupTable_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0__["default"]); /***/ }) diff --git a/public/avored-admin/js/chunk/47.js b/public/avored-admin/js/chunk/47.js index db7770164..02be9cce7 100644 --- a/public/avored-admin/js/chunk/47.js +++ b/public/avored-admin/js/chunk/47.js @@ -1,9 +1,9 @@ (window["webpackJsonp"] = window["webpackJsonp"] || []).push([[47],{ -/***/ "./node_modules/ant-design-vue/lib/col/index.js": -/*!******************************************************!*\ - !*** ./node_modules/ant-design-vue/lib/col/index.js ***! - \******************************************************/ +/***/ "./node_modules/ant-design-vue/lib/avatar/Avatar.js": +/*!**********************************************************!*\ + !*** ./node_modules/ant-design-vue/lib/avatar/Avatar.js ***! + \**********************************************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { @@ -14,21 +14,204 @@ Object.defineProperty(exports, "__esModule", { value: true }); -var _grid = __webpack_require__(/*! ../grid */ "./node_modules/ant-design-vue/lib/grid/index.js"); +var _defineProperty2 = __webpack_require__(/*! babel-runtime/helpers/defineProperty */ "./node_modules/babel-runtime/helpers/defineProperty.js"); -/* istanbul ignore next */ -_grid.Col.install = function (Vue) { - Vue.component(_grid.Col.name, _grid.Col); -}; +var _defineProperty3 = _interopRequireDefault(_defineProperty2); + +var _extends4 = __webpack_require__(/*! babel-runtime/helpers/extends */ "./node_modules/babel-runtime/helpers/extends.js"); + +var _extends5 = _interopRequireDefault(_extends4); -exports['default'] = _grid.Col; +var _configProvider = __webpack_require__(/*! ../config-provider */ "./node_modules/ant-design-vue/lib/config-provider/index.js"); + +var _icon = __webpack_require__(/*! ../icon */ "./node_modules/ant-design-vue/lib/icon/index.js"); + +var _icon2 = _interopRequireDefault(_icon); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } + +exports['default'] = { + name: 'AAvatar', + props: { + prefixCls: { + type: String, + 'default': undefined + }, + shape: { + validator: function validator(val) { + return ['circle', 'square'].includes(val); + }, + 'default': 'circle' + }, + size: { + validator: function validator(val) { + return typeof val === 'number' || ['small', 'large', 'default'].includes(val); + }, + 'default': 'default' + }, + src: String, + /** Srcset of image avatar */ + srcSet: String, + icon: String, + alt: String, + loadError: Function + }, + inject: { + configProvider: { 'default': function _default() { + return _configProvider.ConfigConsumerProps; + } } + }, + data: function data() { + return { + isImgExist: true, + scale: 1 + }; + }, + + watch: { + src: function src() { + var _this = this; + + this.$nextTick(function () { + _this.isImgExist = true; + _this.scale = 1; + // force uodate for position + _this.$forceUpdate(); + }); + } + }, + mounted: function mounted() { + var _this2 = this; + + this.prevChildren = this.$slots['default']; + this.prevState = (0, _extends5['default'])({}, this.$data); + this.$nextTick(function () { + _this2.setScale(); + }); + }, + updated: function updated() { + var _this3 = this; + + if (this.preChildren !== this.$slots['default'] || this.prevState.scale !== this.$data.scale && this.$data.scale === 1 || this.prevState.isImgExist !== this.$data.isImgExist) { + this.$nextTick(function () { + _this3.setScale(); + }); + } + this.preChildren = this.$slots['default']; + this.prevState = (0, _extends5['default'])({}, this.$data); + }, + + methods: { + setScale: function setScale() { + var childrenNode = this.$refs.avatarChildren; + if (childrenNode) { + var childrenWidth = childrenNode.offsetWidth; + var avatarWidth = this.$el.getBoundingClientRect().width; + if (avatarWidth - 8 < childrenWidth) { + this.scale = (avatarWidth - 8) / childrenWidth; + } else { + this.scale = 1; + } + this.$forceUpdate(); + } + }, + handleImgLoadError: function handleImgLoadError() { + var loadError = this.$props.loadError; + + var errorFlag = loadError ? loadError() : undefined; + if (errorFlag !== false) { + this.isImgExist = false; + } + } + }, + render: function render() { + var _sizeCls, _extends3; + + var h = arguments[0]; + var _$props = this.$props, + customizePrefixCls = _$props.prefixCls, + shape = _$props.shape, + size = _$props.size, + src = _$props.src, + icon = _$props.icon, + alt = _$props.alt, + srcSet = _$props.srcSet; + + + var getPrefixCls = this.configProvider.getPrefixCls; + var prefixCls = getPrefixCls('avatar', customizePrefixCls); + + var _$data = this.$data, + isImgExist = _$data.isImgExist, + scale = _$data.scale; + + + var sizeCls = (_sizeCls = {}, (0, _defineProperty3['default'])(_sizeCls, prefixCls + '-lg', size === 'large'), (0, _defineProperty3['default'])(_sizeCls, prefixCls + '-sm', size === 'small'), _sizeCls); + + var classString = (0, _extends5['default'])((0, _defineProperty3['default'])({}, prefixCls, true), sizeCls, (_extends3 = {}, (0, _defineProperty3['default'])(_extends3, prefixCls + '-' + shape, shape), (0, _defineProperty3['default'])(_extends3, prefixCls + '-image', src && isImgExist), (0, _defineProperty3['default'])(_extends3, prefixCls + '-icon', icon), _extends3)); + + var sizeStyle = typeof size === 'number' ? { + width: size + 'px', + height: size + 'px', + lineHeight: size + 'px', + fontSize: icon ? size / 2 + 'px' : '18px' + } : {}; + + var children = this.$slots['default']; + if (src && isImgExist) { + children = h('img', { + attrs: { src: src, srcSet: srcSet, alt: alt }, + on: { + 'error': this.handleImgLoadError + } + }); + } else if (icon) { + children = h(_icon2['default'], { + attrs: { type: icon } + }); + } else { + var childrenNode = this.$refs.avatarChildren; + if (childrenNode || scale !== 1 && childrenNode) { + var transformString = 'scale(' + scale + ') translateX(-50%)'; + var childrenStyle = { + msTransform: transformString, + WebkitTransform: transformString, + transform: transformString + }; + var sizeChildrenStyle = typeof size === 'number' ? { + lineHeight: size + 'px' + } : {}; + children = h( + 'span', + { + 'class': prefixCls + '-string', + ref: 'avatarChildren', + style: (0, _extends5['default'])({}, sizeChildrenStyle, childrenStyle) + }, + [children] + ); + } else { + children = h( + 'span', + { 'class': prefixCls + '-string', ref: 'avatarChildren' }, + [children] + ); + } + } + return h( + 'span', + { on: this.$listeners, 'class': classString, style: sizeStyle }, + [children] + ); + } +}; /***/ }), -/***/ "./node_modules/ant-design-vue/lib/grid/index.js": -/*!*******************************************************!*\ - !*** ./node_modules/ant-design-vue/lib/grid/index.js ***! - \*******************************************************/ +/***/ "./node_modules/ant-design-vue/lib/avatar/index.js": +/*!*********************************************************!*\ + !*** ./node_modules/ant-design-vue/lib/avatar/index.js ***! + \*********************************************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { @@ -38,20 +221,24 @@ exports['default'] = _grid.Col; Object.defineProperty(exports, "__esModule", { value: true }); -exports.Col = exports.Row = undefined; -var _Row = __webpack_require__(/*! ./Row */ "./node_modules/ant-design-vue/lib/grid/Row.js"); +var _Avatar = __webpack_require__(/*! ./Avatar */ "./node_modules/ant-design-vue/lib/avatar/Avatar.js"); -var _Row2 = _interopRequireDefault(_Row); +var _Avatar2 = _interopRequireDefault(_Avatar); -var _Col = __webpack_require__(/*! ./Col */ "./node_modules/ant-design-vue/lib/grid/Col.js"); +var _base = __webpack_require__(/*! ../base */ "./node_modules/ant-design-vue/lib/base/index.js"); -var _Col2 = _interopRequireDefault(_Col); +var _base2 = _interopRequireDefault(_base); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } -exports.Row = _Row2['default']; -exports.Col = _Col2['default']; +/* istanbul ignore next */ +_Avatar2['default'].install = function (Vue) { + Vue.use(_base2['default']); + Vue.component(_Avatar2['default'].name, _Avatar2['default']); +}; + +exports['default'] = _Avatar2['default']; /***/ }) diff --git a/public/avored-admin/js/chunk/48.js b/public/avored-admin/js/chunk/48.js index 890ce3442..b262e3efa 100644 --- a/public/avored-admin/js/chunk/48.js +++ b/public/avored-admin/js/chunk/48.js @@ -1,9 +1,9 @@ (window["webpackJsonp"] = window["webpackJsonp"] || []).push([[48],{ -/***/ "./node_modules/ant-design-vue/lib/grid/index.js": -/*!*******************************************************!*\ - !*** ./node_modules/ant-design-vue/lib/grid/index.js ***! - \*******************************************************/ +/***/ "./node_modules/ant-design-vue/lib/col/index.js": +/*!******************************************************!*\ + !*** ./node_modules/ant-design-vue/lib/col/index.js ***! + \******************************************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { @@ -13,27 +13,29 @@ Object.defineProperty(exports, "__esModule", { value: true }); -exports.Col = exports.Row = undefined; -var _Row = __webpack_require__(/*! ./Row */ "./node_modules/ant-design-vue/lib/grid/Row.js"); - -var _Row2 = _interopRequireDefault(_Row); +var _grid = __webpack_require__(/*! ../grid */ "./node_modules/ant-design-vue/lib/grid/index.js"); -var _Col = __webpack_require__(/*! ./Col */ "./node_modules/ant-design-vue/lib/grid/Col.js"); +var _base = __webpack_require__(/*! ../base */ "./node_modules/ant-design-vue/lib/base/index.js"); -var _Col2 = _interopRequireDefault(_Col); +var _base2 = _interopRequireDefault(_base); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } -exports.Row = _Row2['default']; -exports.Col = _Col2['default']; +/* istanbul ignore next */ +_grid.Col.install = function (Vue) { + Vue.use(_base2['default']); + Vue.component(_grid.Col.name, _grid.Col); +}; + +exports['default'] = _grid.Col; /***/ }), -/***/ "./node_modules/ant-design-vue/lib/row/index.js": -/*!******************************************************!*\ - !*** ./node_modules/ant-design-vue/lib/row/index.js ***! - \******************************************************/ +/***/ "./node_modules/ant-design-vue/lib/grid/index.js": +/*!*******************************************************!*\ + !*** ./node_modules/ant-design-vue/lib/grid/index.js ***! + \*******************************************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { @@ -43,15 +45,20 @@ exports.Col = _Col2['default']; Object.defineProperty(exports, "__esModule", { value: true }); +exports.Col = exports.Row = undefined; -var _grid = __webpack_require__(/*! ../grid */ "./node_modules/ant-design-vue/lib/grid/index.js"); +var _Row = __webpack_require__(/*! ./Row */ "./node_modules/ant-design-vue/lib/grid/Row.js"); -/* istanbul ignore next */ -_grid.Row.install = function (Vue) { - Vue.component(_grid.Row.name, _grid.Row); -}; +var _Row2 = _interopRequireDefault(_Row); + +var _Col = __webpack_require__(/*! ./Col */ "./node_modules/ant-design-vue/lib/grid/Col.js"); + +var _Col2 = _interopRequireDefault(_Col); -exports['default'] = _grid.Row; +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } + +exports.Row = _Row2['default']; +exports.Col = _Col2['default']; /***/ }) diff --git a/public/avored-admin/js/chunk/49.js b/public/avored-admin/js/chunk/49.js index 8fe7dc738..00107dce2 100644 --- a/public/avored-admin/js/chunk/49.js +++ b/public/avored-admin/js/chunk/49.js @@ -1,288 +1,64 @@ (window["webpackJsonp"] = window["webpackJsonp"] || []).push([[49],{ -/***/ "./node_modules/moment/locale sync recursive ^\\.\\/.*$": -/*!**************************************************!*\ - !*** ./node_modules/moment/locale sync ^\.\/.*$ ***! - \**************************************************/ +/***/ "./node_modules/ant-design-vue/lib/grid/index.js": +/*!*******************************************************!*\ + !*** ./node_modules/ant-design-vue/lib/grid/index.js ***! + \*******************************************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { -var map = { - "./af": "./node_modules/moment/locale/af.js", - "./af.js": "./node_modules/moment/locale/af.js", - "./ar": "./node_modules/moment/locale/ar.js", - "./ar-dz": "./node_modules/moment/locale/ar-dz.js", - "./ar-dz.js": "./node_modules/moment/locale/ar-dz.js", - "./ar-kw": "./node_modules/moment/locale/ar-kw.js", - "./ar-kw.js": "./node_modules/moment/locale/ar-kw.js", - "./ar-ly": "./node_modules/moment/locale/ar-ly.js", - "./ar-ly.js": "./node_modules/moment/locale/ar-ly.js", - "./ar-ma": "./node_modules/moment/locale/ar-ma.js", - "./ar-ma.js": "./node_modules/moment/locale/ar-ma.js", - "./ar-sa": "./node_modules/moment/locale/ar-sa.js", - "./ar-sa.js": "./node_modules/moment/locale/ar-sa.js", - "./ar-tn": "./node_modules/moment/locale/ar-tn.js", - "./ar-tn.js": "./node_modules/moment/locale/ar-tn.js", - "./ar.js": "./node_modules/moment/locale/ar.js", - "./az": "./node_modules/moment/locale/az.js", - "./az.js": "./node_modules/moment/locale/az.js", - "./be": "./node_modules/moment/locale/be.js", - "./be.js": "./node_modules/moment/locale/be.js", - "./bg": "./node_modules/moment/locale/bg.js", - "./bg.js": "./node_modules/moment/locale/bg.js", - "./bm": "./node_modules/moment/locale/bm.js", - "./bm.js": "./node_modules/moment/locale/bm.js", - "./bn": "./node_modules/moment/locale/bn.js", - "./bn.js": "./node_modules/moment/locale/bn.js", - "./bo": "./node_modules/moment/locale/bo.js", - "./bo.js": "./node_modules/moment/locale/bo.js", - "./br": "./node_modules/moment/locale/br.js", - "./br.js": "./node_modules/moment/locale/br.js", - "./bs": "./node_modules/moment/locale/bs.js", - "./bs.js": "./node_modules/moment/locale/bs.js", - "./ca": "./node_modules/moment/locale/ca.js", - "./ca.js": "./node_modules/moment/locale/ca.js", - "./cs": "./node_modules/moment/locale/cs.js", - "./cs.js": "./node_modules/moment/locale/cs.js", - "./cv": "./node_modules/moment/locale/cv.js", - "./cv.js": "./node_modules/moment/locale/cv.js", - "./cy": "./node_modules/moment/locale/cy.js", - "./cy.js": "./node_modules/moment/locale/cy.js", - "./da": "./node_modules/moment/locale/da.js", - "./da.js": "./node_modules/moment/locale/da.js", - "./de": "./node_modules/moment/locale/de.js", - "./de-at": "./node_modules/moment/locale/de-at.js", - "./de-at.js": "./node_modules/moment/locale/de-at.js", - "./de-ch": "./node_modules/moment/locale/de-ch.js", - "./de-ch.js": "./node_modules/moment/locale/de-ch.js", - "./de.js": "./node_modules/moment/locale/de.js", - "./dv": "./node_modules/moment/locale/dv.js", - "./dv.js": "./node_modules/moment/locale/dv.js", - "./el": "./node_modules/moment/locale/el.js", - "./el.js": "./node_modules/moment/locale/el.js", - "./en-SG": "./node_modules/moment/locale/en-SG.js", - "./en-SG.js": "./node_modules/moment/locale/en-SG.js", - "./en-au": "./node_modules/moment/locale/en-au.js", - "./en-au.js": "./node_modules/moment/locale/en-au.js", - "./en-ca": "./node_modules/moment/locale/en-ca.js", - "./en-ca.js": "./node_modules/moment/locale/en-ca.js", - "./en-gb": "./node_modules/moment/locale/en-gb.js", - "./en-gb.js": "./node_modules/moment/locale/en-gb.js", - "./en-ie": "./node_modules/moment/locale/en-ie.js", - "./en-ie.js": "./node_modules/moment/locale/en-ie.js", - "./en-il": "./node_modules/moment/locale/en-il.js", - "./en-il.js": "./node_modules/moment/locale/en-il.js", - "./en-nz": "./node_modules/moment/locale/en-nz.js", - "./en-nz.js": "./node_modules/moment/locale/en-nz.js", - "./eo": "./node_modules/moment/locale/eo.js", - "./eo.js": "./node_modules/moment/locale/eo.js", - "./es": "./node_modules/moment/locale/es.js", - "./es-do": "./node_modules/moment/locale/es-do.js", - "./es-do.js": "./node_modules/moment/locale/es-do.js", - "./es-us": "./node_modules/moment/locale/es-us.js", - "./es-us.js": "./node_modules/moment/locale/es-us.js", - "./es.js": "./node_modules/moment/locale/es.js", - "./et": "./node_modules/moment/locale/et.js", - "./et.js": "./node_modules/moment/locale/et.js", - "./eu": "./node_modules/moment/locale/eu.js", - "./eu.js": "./node_modules/moment/locale/eu.js", - "./fa": "./node_modules/moment/locale/fa.js", - "./fa.js": "./node_modules/moment/locale/fa.js", - "./fi": "./node_modules/moment/locale/fi.js", - "./fi.js": "./node_modules/moment/locale/fi.js", - "./fo": "./node_modules/moment/locale/fo.js", - "./fo.js": "./node_modules/moment/locale/fo.js", - "./fr": "./node_modules/moment/locale/fr.js", - "./fr-ca": "./node_modules/moment/locale/fr-ca.js", - "./fr-ca.js": "./node_modules/moment/locale/fr-ca.js", - "./fr-ch": "./node_modules/moment/locale/fr-ch.js", - "./fr-ch.js": "./node_modules/moment/locale/fr-ch.js", - "./fr.js": "./node_modules/moment/locale/fr.js", - "./fy": "./node_modules/moment/locale/fy.js", - "./fy.js": "./node_modules/moment/locale/fy.js", - "./ga": "./node_modules/moment/locale/ga.js", - "./ga.js": "./node_modules/moment/locale/ga.js", - "./gd": "./node_modules/moment/locale/gd.js", - "./gd.js": "./node_modules/moment/locale/gd.js", - "./gl": "./node_modules/moment/locale/gl.js", - "./gl.js": "./node_modules/moment/locale/gl.js", - "./gom-latn": "./node_modules/moment/locale/gom-latn.js", - "./gom-latn.js": "./node_modules/moment/locale/gom-latn.js", - "./gu": "./node_modules/moment/locale/gu.js", - "./gu.js": "./node_modules/moment/locale/gu.js", - "./he": "./node_modules/moment/locale/he.js", - "./he.js": "./node_modules/moment/locale/he.js", - "./hi": "./node_modules/moment/locale/hi.js", - "./hi.js": "./node_modules/moment/locale/hi.js", - "./hr": "./node_modules/moment/locale/hr.js", - "./hr.js": "./node_modules/moment/locale/hr.js", - "./hu": "./node_modules/moment/locale/hu.js", - "./hu.js": "./node_modules/moment/locale/hu.js", - "./hy-am": "./node_modules/moment/locale/hy-am.js", - "./hy-am.js": "./node_modules/moment/locale/hy-am.js", - "./id": "./node_modules/moment/locale/id.js", - "./id.js": "./node_modules/moment/locale/id.js", - "./is": "./node_modules/moment/locale/is.js", - "./is.js": "./node_modules/moment/locale/is.js", - "./it": "./node_modules/moment/locale/it.js", - "./it-ch": "./node_modules/moment/locale/it-ch.js", - "./it-ch.js": "./node_modules/moment/locale/it-ch.js", - "./it.js": "./node_modules/moment/locale/it.js", - "./ja": "./node_modules/moment/locale/ja.js", - "./ja.js": "./node_modules/moment/locale/ja.js", - "./jv": "./node_modules/moment/locale/jv.js", - "./jv.js": "./node_modules/moment/locale/jv.js", - "./ka": "./node_modules/moment/locale/ka.js", - "./ka.js": "./node_modules/moment/locale/ka.js", - "./kk": "./node_modules/moment/locale/kk.js", - "./kk.js": "./node_modules/moment/locale/kk.js", - "./km": "./node_modules/moment/locale/km.js", - "./km.js": "./node_modules/moment/locale/km.js", - "./kn": "./node_modules/moment/locale/kn.js", - "./kn.js": "./node_modules/moment/locale/kn.js", - "./ko": "./node_modules/moment/locale/ko.js", - "./ko.js": "./node_modules/moment/locale/ko.js", - "./ku": "./node_modules/moment/locale/ku.js", - "./ku.js": "./node_modules/moment/locale/ku.js", - "./ky": "./node_modules/moment/locale/ky.js", - "./ky.js": "./node_modules/moment/locale/ky.js", - "./lb": "./node_modules/moment/locale/lb.js", - "./lb.js": "./node_modules/moment/locale/lb.js", - "./lo": "./node_modules/moment/locale/lo.js", - "./lo.js": "./node_modules/moment/locale/lo.js", - "./lt": "./node_modules/moment/locale/lt.js", - "./lt.js": "./node_modules/moment/locale/lt.js", - "./lv": "./node_modules/moment/locale/lv.js", - "./lv.js": "./node_modules/moment/locale/lv.js", - "./me": "./node_modules/moment/locale/me.js", - "./me.js": "./node_modules/moment/locale/me.js", - "./mi": "./node_modules/moment/locale/mi.js", - "./mi.js": "./node_modules/moment/locale/mi.js", - "./mk": "./node_modules/moment/locale/mk.js", - "./mk.js": "./node_modules/moment/locale/mk.js", - "./ml": "./node_modules/moment/locale/ml.js", - "./ml.js": "./node_modules/moment/locale/ml.js", - "./mn": "./node_modules/moment/locale/mn.js", - "./mn.js": "./node_modules/moment/locale/mn.js", - "./mr": "./node_modules/moment/locale/mr.js", - "./mr.js": "./node_modules/moment/locale/mr.js", - "./ms": "./node_modules/moment/locale/ms.js", - "./ms-my": "./node_modules/moment/locale/ms-my.js", - "./ms-my.js": "./node_modules/moment/locale/ms-my.js", - "./ms.js": "./node_modules/moment/locale/ms.js", - "./mt": "./node_modules/moment/locale/mt.js", - "./mt.js": "./node_modules/moment/locale/mt.js", - "./my": "./node_modules/moment/locale/my.js", - "./my.js": "./node_modules/moment/locale/my.js", - "./nb": "./node_modules/moment/locale/nb.js", - "./nb.js": "./node_modules/moment/locale/nb.js", - "./ne": "./node_modules/moment/locale/ne.js", - "./ne.js": "./node_modules/moment/locale/ne.js", - "./nl": "./node_modules/moment/locale/nl.js", - "./nl-be": "./node_modules/moment/locale/nl-be.js", - "./nl-be.js": "./node_modules/moment/locale/nl-be.js", - "./nl.js": "./node_modules/moment/locale/nl.js", - "./nn": "./node_modules/moment/locale/nn.js", - "./nn.js": "./node_modules/moment/locale/nn.js", - "./pa-in": "./node_modules/moment/locale/pa-in.js", - "./pa-in.js": "./node_modules/moment/locale/pa-in.js", - "./pl": "./node_modules/moment/locale/pl.js", - "./pl.js": "./node_modules/moment/locale/pl.js", - "./pt": "./node_modules/moment/locale/pt.js", - "./pt-br": "./node_modules/moment/locale/pt-br.js", - "./pt-br.js": "./node_modules/moment/locale/pt-br.js", - "./pt.js": "./node_modules/moment/locale/pt.js", - "./ro": "./node_modules/moment/locale/ro.js", - "./ro.js": "./node_modules/moment/locale/ro.js", - "./ru": "./node_modules/moment/locale/ru.js", - "./ru.js": "./node_modules/moment/locale/ru.js", - "./sd": "./node_modules/moment/locale/sd.js", - "./sd.js": "./node_modules/moment/locale/sd.js", - "./se": "./node_modules/moment/locale/se.js", - "./se.js": "./node_modules/moment/locale/se.js", - "./si": "./node_modules/moment/locale/si.js", - "./si.js": "./node_modules/moment/locale/si.js", - "./sk": "./node_modules/moment/locale/sk.js", - "./sk.js": "./node_modules/moment/locale/sk.js", - "./sl": "./node_modules/moment/locale/sl.js", - "./sl.js": "./node_modules/moment/locale/sl.js", - "./sq": "./node_modules/moment/locale/sq.js", - "./sq.js": "./node_modules/moment/locale/sq.js", - "./sr": "./node_modules/moment/locale/sr.js", - "./sr-cyrl": "./node_modules/moment/locale/sr-cyrl.js", - "./sr-cyrl.js": "./node_modules/moment/locale/sr-cyrl.js", - "./sr.js": "./node_modules/moment/locale/sr.js", - "./ss": "./node_modules/moment/locale/ss.js", - "./ss.js": "./node_modules/moment/locale/ss.js", - "./sv": "./node_modules/moment/locale/sv.js", - "./sv.js": "./node_modules/moment/locale/sv.js", - "./sw": "./node_modules/moment/locale/sw.js", - "./sw.js": "./node_modules/moment/locale/sw.js", - "./ta": "./node_modules/moment/locale/ta.js", - "./ta.js": "./node_modules/moment/locale/ta.js", - "./te": "./node_modules/moment/locale/te.js", - "./te.js": "./node_modules/moment/locale/te.js", - "./tet": "./node_modules/moment/locale/tet.js", - "./tet.js": "./node_modules/moment/locale/tet.js", - "./tg": "./node_modules/moment/locale/tg.js", - "./tg.js": "./node_modules/moment/locale/tg.js", - "./th": "./node_modules/moment/locale/th.js", - "./th.js": "./node_modules/moment/locale/th.js", - "./tl-ph": "./node_modules/moment/locale/tl-ph.js", - "./tl-ph.js": "./node_modules/moment/locale/tl-ph.js", - "./tlh": "./node_modules/moment/locale/tlh.js", - "./tlh.js": "./node_modules/moment/locale/tlh.js", - "./tr": "./node_modules/moment/locale/tr.js", - "./tr.js": "./node_modules/moment/locale/tr.js", - "./tzl": "./node_modules/moment/locale/tzl.js", - "./tzl.js": "./node_modules/moment/locale/tzl.js", - "./tzm": "./node_modules/moment/locale/tzm.js", - "./tzm-latn": "./node_modules/moment/locale/tzm-latn.js", - "./tzm-latn.js": "./node_modules/moment/locale/tzm-latn.js", - "./tzm.js": "./node_modules/moment/locale/tzm.js", - "./ug-cn": "./node_modules/moment/locale/ug-cn.js", - "./ug-cn.js": "./node_modules/moment/locale/ug-cn.js", - "./uk": "./node_modules/moment/locale/uk.js", - "./uk.js": "./node_modules/moment/locale/uk.js", - "./ur": "./node_modules/moment/locale/ur.js", - "./ur.js": "./node_modules/moment/locale/ur.js", - "./uz": "./node_modules/moment/locale/uz.js", - "./uz-latn": "./node_modules/moment/locale/uz-latn.js", - "./uz-latn.js": "./node_modules/moment/locale/uz-latn.js", - "./uz.js": "./node_modules/moment/locale/uz.js", - "./vi": "./node_modules/moment/locale/vi.js", - "./vi.js": "./node_modules/moment/locale/vi.js", - "./x-pseudo": "./node_modules/moment/locale/x-pseudo.js", - "./x-pseudo.js": "./node_modules/moment/locale/x-pseudo.js", - "./yo": "./node_modules/moment/locale/yo.js", - "./yo.js": "./node_modules/moment/locale/yo.js", - "./zh-cn": "./node_modules/moment/locale/zh-cn.js", - "./zh-cn.js": "./node_modules/moment/locale/zh-cn.js", - "./zh-hk": "./node_modules/moment/locale/zh-hk.js", - "./zh-hk.js": "./node_modules/moment/locale/zh-hk.js", - "./zh-tw": "./node_modules/moment/locale/zh-tw.js", - "./zh-tw.js": "./node_modules/moment/locale/zh-tw.js" -}; +"use strict"; + + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.Col = exports.Row = undefined; + +var _Row = __webpack_require__(/*! ./Row */ "./node_modules/ant-design-vue/lib/grid/Row.js"); + +var _Row2 = _interopRequireDefault(_Row); + +var _Col = __webpack_require__(/*! ./Col */ "./node_modules/ant-design-vue/lib/grid/Col.js"); + +var _Col2 = _interopRequireDefault(_Col); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } + +exports.Row = _Row2['default']; +exports.Col = _Col2['default']; + +/***/ }), +/***/ "./node_modules/ant-design-vue/lib/row/index.js": +/*!******************************************************!*\ + !*** ./node_modules/ant-design-vue/lib/row/index.js ***! + \******************************************************/ +/*! no static exports found */ +/***/ (function(module, exports, __webpack_require__) { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", { + value: true +}); -function webpackContext(req) { - var id = webpackContextResolve(req); - return __webpack_require__(id); -} -function webpackContextResolve(req) { - if(!__webpack_require__.o(map, req)) { - var e = new Error("Cannot find module '" + req + "'"); - e.code = 'MODULE_NOT_FOUND'; - throw e; - } - return map[req]; -} -webpackContext.keys = function webpackContextKeys() { - return Object.keys(map); +var _grid = __webpack_require__(/*! ../grid */ "./node_modules/ant-design-vue/lib/grid/index.js"); + +var _base = __webpack_require__(/*! ../base */ "./node_modules/ant-design-vue/lib/base/index.js"); + +var _base2 = _interopRequireDefault(_base); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } + +/* istanbul ignore next */ +_grid.Row.install = function (Vue) { + Vue.use(_base2['default']); + Vue.component(_grid.Row.name, _grid.Row); }; -webpackContext.resolve = webpackContextResolve; -module.exports = webpackContext; -webpackContext.id = "./node_modules/moment/locale sync recursive ^\\.\\/.*$"; + +exports['default'] = _grid.Row; /***/ }) diff --git a/public/avored-admin/js/chunk/5.js b/public/avored-admin/js/chunk/5.js index f8f68476c..5559de57f 100644 --- a/public/avored-admin/js/chunk/5.js +++ b/public/avored-admin/js/chunk/5.js @@ -137,6 +137,8 @@ var _BaseMixin = __webpack_require__(/*! ../_util/BaseMixin */ "./node_modules/a var _BaseMixin2 = _interopRequireDefault(_BaseMixin); +var _configProvider = __webpack_require__(/*! ../config-provider */ "./node_modules/ant-design-vue/lib/config-provider/index.js"); + function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } var TabPane = _tabs2['default'].TabPane; @@ -144,7 +146,7 @@ exports['default'] = { name: 'ACard', mixins: [_BaseMixin2['default']], props: { - prefixCls: _vueTypes2['default'].string.def('ant-card'), + prefixCls: _vueTypes2['default'].string, title: _vueTypes2['default'].any, extra: _vueTypes2['default'].any, bordered: _vueTypes2['default'].bool.def(true), @@ -153,11 +155,17 @@ exports['default'] = { loading: _vueTypes2['default'].bool.def(false), hoverable: _vueTypes2['default'].bool.def(false), type: _vueTypes2['default'].string, + size: _vueTypes2['default'].oneOf(['default', 'small']), actions: _vueTypes2['default'].any, tabList: _vueTypes2['default'].array, activeTabKey: _vueTypes2['default'].string, defaultActiveTabKey: _vueTypes2['default'].string }, + inject: { + configProvider: { 'default': function _default() { + return _configProvider.ConfigConsumerProps; + } } + }, data: function data() { this.updateWiderPaddingCalled = false; return { @@ -234,8 +242,7 @@ exports['default'] = { var h = arguments[0]; var _$props = this.$props, - _$props$prefixCls = _$props.prefixCls, - prefixCls = _$props$prefixCls === undefined ? 'ant-card' : _$props$prefixCls, + customizePrefixCls = _$props.prefixCls, _$props$headStyle = _$props.headStyle, headStyle = _$props$headStyle === undefined ? {} : _$props$headStyle, _$props$bodyStyle = _$props.bodyStyle, @@ -243,17 +250,24 @@ exports['default'] = { loading = _$props.loading, _$props$bordered = _$props.bordered, bordered = _$props$bordered === undefined ? true : _$props$bordered, + _$props$size = _$props.size, + size = _$props$size === undefined ? 'default' : _$props$size, type = _$props.type, tabList = _$props.tabList, hoverable = _$props.hoverable, activeTabKey = _$props.activeTabKey, defaultActiveTabKey = _$props.defaultActiveTabKey; + + + var getPrefixCls = this.configProvider.getPrefixCls; + var prefixCls = getPrefixCls('card', customizePrefixCls); + var $slots = this.$slots, $scopedSlots = this.$scopedSlots, $listeners = this.$listeners; - var classString = (_classString = {}, (0, _defineProperty3['default'])(_classString, '' + prefixCls, true), (0, _defineProperty3['default'])(_classString, prefixCls + '-loading', loading), (0, _defineProperty3['default'])(_classString, prefixCls + '-bordered', bordered), (0, _defineProperty3['default'])(_classString, prefixCls + '-hoverable', !!hoverable), (0, _defineProperty3['default'])(_classString, prefixCls + '-wider-padding', this.widerPadding), (0, _defineProperty3['default'])(_classString, prefixCls + '-padding-transition', this.updateWiderPaddingCalled), (0, _defineProperty3['default'])(_classString, prefixCls + '-contain-grid', this.isContainGrid($slots['default'])), (0, _defineProperty3['default'])(_classString, prefixCls + '-contain-tabs', tabList && tabList.length), (0, _defineProperty3['default'])(_classString, prefixCls + '-type-' + type, !!type), _classString); + var classString = (_classString = {}, (0, _defineProperty3['default'])(_classString, '' + prefixCls, true), (0, _defineProperty3['default'])(_classString, prefixCls + '-loading', loading), (0, _defineProperty3['default'])(_classString, prefixCls + '-bordered', bordered), (0, _defineProperty3['default'])(_classString, prefixCls + '-hoverable', !!hoverable), (0, _defineProperty3['default'])(_classString, prefixCls + '-wider-padding', this.widerPadding), (0, _defineProperty3['default'])(_classString, prefixCls + '-padding-transition', this.updateWiderPaddingCalled), (0, _defineProperty3['default'])(_classString, prefixCls + '-contain-grid', this.isContainGrid($slots['default'])), (0, _defineProperty3['default'])(_classString, prefixCls + '-contain-tabs', tabList && tabList.length), (0, _defineProperty3['default'])(_classString, prefixCls + '-' + size, size !== 'default'), (0, _defineProperty3['default'])(_classString, prefixCls + '-type-' + type, !!type), _classString); var loadingBlockStyle = bodyStyle.padding === 0 || bodyStyle.padding === '0px' ? { padding: 24 } : undefined; @@ -350,30 +364,6 @@ exports['default'] = { }, [h('div', { 'class': prefixCls + '-loading-block' })] )] - ), h( - _row2['default'], - { - attrs: { gutter: 8 } - }, - [h( - _col2['default'], - { - attrs: { span: 8 } - }, - [h('div', { 'class': prefixCls + '-loading-block' })] - ), h( - _col2['default'], - { - attrs: { span: 6 } - }, - [h('div', { 'class': prefixCls + '-loading-block' })] - ), h( - _col2['default'], - { - attrs: { span: 8 } - }, - [h('div', { 'class': prefixCls + '-loading-block' })] - )] )] ); @@ -484,18 +474,28 @@ var _vueTypes = __webpack_require__(/*! ../_util/vue-types */ "./node_modules/an var _vueTypes2 = _interopRequireDefault(_vueTypes); +var _configProvider = __webpack_require__(/*! ../config-provider */ "./node_modules/ant-design-vue/lib/config-provider/index.js"); + function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } exports['default'] = { name: 'ACardGrid', __ANT_CARD_GRID: true, props: { - prefixCls: _vueTypes2['default'].string.def('ant-card') + prefixCls: _vueTypes2['default'].string + }, + inject: { + configProvider: { 'default': function _default() { + return _configProvider.ConfigConsumerProps; + } } }, render: function render() { var h = arguments[0]; - var _$props$prefixCls = this.$props.prefixCls, - prefixCls = _$props$prefixCls === undefined ? 'ant-card' : _$props$prefixCls; + var customizePrefixCls = this.$props.prefixCls; + + + var getPrefixCls = this.configProvider.getPrefixCls; + var prefixCls = getPrefixCls('card', customizePrefixCls); var classString = (0, _defineProperty3['default'])({}, prefixCls + '-grid', true); return h( @@ -536,19 +536,29 @@ var _vueTypes2 = _interopRequireDefault(_vueTypes); var _propsUtil = __webpack_require__(/*! ../_util/props-util */ "./node_modules/ant-design-vue/lib/_util/props-util.js"); +var _configProvider = __webpack_require__(/*! ../config-provider */ "./node_modules/ant-design-vue/lib/config-provider/index.js"); + function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } exports['default'] = { name: 'ACardMeta', props: { - prefixCls: _vueTypes2['default'].string.def('ant-card'), + prefixCls: _vueTypes2['default'].string, title: _vueTypes2['default'].any, description: _vueTypes2['default'].any }, + inject: { + configProvider: { 'default': function _default() { + return _configProvider.ConfigConsumerProps; + } } + }, render: function render() { var h = arguments[0]; - var _$props$prefixCls = this.$props.prefixCls, - prefixCls = _$props$prefixCls === undefined ? 'ant-card' : _$props$prefixCls; + var customizePrefixCls = this.$props.prefixCls; + + + var getPrefixCls = this.configProvider.getPrefixCls; + var prefixCls = getPrefixCls('card', customizePrefixCls); var classString = (0, _defineProperty3['default'])({}, prefixCls + '-meta', true); @@ -612,6 +622,10 @@ var _Grid = __webpack_require__(/*! ./Grid */ "./node_modules/ant-design-vue/lib var _Grid2 = _interopRequireDefault(_Grid); +var _base = __webpack_require__(/*! ../base */ "./node_modules/ant-design-vue/lib/base/index.js"); + +var _base2 = _interopRequireDefault(_base); + function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } _Card2['default'].Meta = _Meta2['default']; @@ -619,6 +633,7 @@ _Card2['default'].Grid = _Grid2['default']; /* istanbul ignore next */ _Card2['default'].install = function (Vue) { + Vue.use(_base2['default']); Vue.component(_Card2['default'].name, _Card2['default']); Vue.component(_Meta2['default'].name, _Meta2['default']); Vue.component(_Grid2['default'].name, _Grid2['default']); @@ -644,8 +659,15 @@ Object.defineProperty(exports, "__esModule", { var _grid = __webpack_require__(/*! ../grid */ "./node_modules/ant-design-vue/lib/grid/index.js"); +var _base = __webpack_require__(/*! ../base */ "./node_modules/ant-design-vue/lib/base/index.js"); + +var _base2 = _interopRequireDefault(_base); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } + /* istanbul ignore next */ _grid.Col.install = function (Vue) { + Vue.use(_base2['default']); Vue.component(_grid.Col.name, _grid.Col); }; @@ -699,8 +721,15 @@ Object.defineProperty(exports, "__esModule", { var _grid = __webpack_require__(/*! ../grid */ "./node_modules/ant-design-vue/lib/grid/index.js"); +var _base = __webpack_require__(/*! ../base */ "./node_modules/ant-design-vue/lib/base/index.js"); + +var _base2 = _interopRequireDefault(_base); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } + /* istanbul ignore next */ _grid.Row.install = function (Vue) { + Vue.use(_base2['default']); Vue.component(_grid.Row.name, _grid.Row); }; diff --git a/public/avored-admin/js/chunk/6.js b/public/avored-admin/js/chunk/6.js index e4cace30b..6ef1d5151 100644 --- a/public/avored-admin/js/chunk/6.js +++ b/public/avored-admin/js/chunk/6.js @@ -1,217 +1,1274 @@ (window["webpackJsonp"] = window["webpackJsonp"] || []).push([[6],{ -/***/ "./node_modules/babel-loader/lib/index.js?!./node_modules/vue-loader/lib/index.js?!./vendor/avored/framework/resources/components/cms/menu/MenuSave.vue?vue&type=script&lang=js&": -/*!*************************************************************************************************************************************************************************************************!*\ - !*** ./node_modules/babel-loader/lib??ref--4-0!./node_modules/vue-loader/lib??vue-loader-options!./vendor/avored/framework/resources/components/cms/menu/MenuSave.vue?vue&type=script&lang=js& ***! - \*************************************************************************************************************************************************************************************************/ -/*! exports provided: default */ -/***/ (function(module, __webpack_exports__, __webpack_require__) { +/***/ "./node_modules/ant-design-vue/lib/input/Group.js": +/*!********************************************************!*\ + !*** ./node_modules/ant-design-vue/lib/input/Group.js ***! + \********************************************************/ +/*! no static exports found */ +/***/ (function(module, exports, __webpack_require__) { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", { + value: true +}); + +var _babelHelperVueJsxMergeProps = __webpack_require__(/*! babel-helper-vue-jsx-merge-props */ "./node_modules/babel-helper-vue-jsx-merge-props/index.js"); + +var _babelHelperVueJsxMergeProps2 = _interopRequireDefault(_babelHelperVueJsxMergeProps); + +var _defineProperty2 = __webpack_require__(/*! babel-runtime/helpers/defineProperty */ "./node_modules/babel-runtime/helpers/defineProperty.js"); + +var _defineProperty3 = _interopRequireDefault(_defineProperty2); + +var _vueTypes = __webpack_require__(/*! ../_util/vue-types */ "./node_modules/ant-design-vue/lib/_util/vue-types/index.js"); + +var _vueTypes2 = _interopRequireDefault(_vueTypes); + +var _propsUtil = __webpack_require__(/*! ../_util/props-util */ "./node_modules/ant-design-vue/lib/_util/props-util.js"); + +var _configProvider = __webpack_require__(/*! ../config-provider */ "./node_modules/ant-design-vue/lib/config-provider/index.js"); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } + +exports['default'] = { + name: 'AInputGroup', + props: { + prefixCls: _vueTypes2['default'].string, + size: { + validator: function validator(value) { + return ['small', 'large', 'default'].includes(value); + } + }, + compact: Boolean + }, + inject: { + configProvider: { 'default': function _default() { + return _configProvider.ConfigConsumerProps; + } } + }, + computed: { + classes: function classes() { + var _ref; + + var customizePrefixCls = this.prefixCls, + size = this.size, + _compact = this.compact, + compact = _compact === undefined ? false : _compact; + + var getPrefixCls = this.configProvider.getPrefixCls; + var prefixCls = getPrefixCls('input-group', customizePrefixCls); + + return _ref = {}, (0, _defineProperty3['default'])(_ref, '' + prefixCls, true), (0, _defineProperty3['default'])(_ref, prefixCls + '-lg', size === 'large'), (0, _defineProperty3['default'])(_ref, prefixCls + '-sm', size === 'small'), (0, _defineProperty3['default'])(_ref, prefixCls + '-compact', compact), _ref; + } + }, + methods: {}, + render: function render() { + var h = arguments[0]; + var $listeners = this.$listeners; + + return h( + 'span', + (0, _babelHelperVueJsxMergeProps2['default'])([{ 'class': this.classes }, { on: $listeners }]), + [(0, _propsUtil.filterEmpty)(this.$slots['default'])] + ); + } +}; + +/***/ }), + +/***/ "./node_modules/ant-design-vue/lib/input/Input.js": +/*!********************************************************!*\ + !*** ./node_modules/ant-design-vue/lib/input/Input.js ***! + \********************************************************/ +/*! no static exports found */ +/***/ (function(module, exports, __webpack_require__) { "use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony import */ var lodash_isNil__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! lodash/isNil */ "./node_modules/lodash/isNil.js"); -/* harmony import */ var lodash_isNil__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(lodash_isNil__WEBPACK_IMPORTED_MODULE_0__); -/* harmony default export */ __webpack_exports__["default"] = ({ - props: ['propCategories', 'baseUrl', 'propMenus', 'menuGroup', 'propFrontMenus'], + +Object.defineProperty(exports, "__esModule", { + value: true +}); + +var _babelHelperVueJsxMergeProps = __webpack_require__(/*! babel-helper-vue-jsx-merge-props */ "./node_modules/babel-helper-vue-jsx-merge-props/index.js"); + +var _babelHelperVueJsxMergeProps2 = _interopRequireDefault(_babelHelperVueJsxMergeProps); + +var _defineProperty2 = __webpack_require__(/*! babel-runtime/helpers/defineProperty */ "./node_modules/babel-runtime/helpers/defineProperty.js"); + +var _defineProperty3 = _interopRequireDefault(_defineProperty2); + +var _extends2 = __webpack_require__(/*! babel-runtime/helpers/extends */ "./node_modules/babel-runtime/helpers/extends.js"); + +var _extends3 = _interopRequireDefault(_extends2); + +var _classnames = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js"); + +var _classnames2 = _interopRequireDefault(_classnames); + +var _TextArea = __webpack_require__(/*! ./TextArea */ "./node_modules/ant-design-vue/lib/input/TextArea.js"); + +var _TextArea2 = _interopRequireDefault(_TextArea); + +var _omit = __webpack_require__(/*! omit.js */ "./node_modules/omit.js/es/index.js"); + +var _omit2 = _interopRequireDefault(_omit); + +var _inputProps = __webpack_require__(/*! ./inputProps */ "./node_modules/ant-design-vue/lib/input/inputProps.js"); + +var _inputProps2 = _interopRequireDefault(_inputProps); + +var _propsUtil = __webpack_require__(/*! ../_util/props-util */ "./node_modules/ant-design-vue/lib/_util/props-util.js"); + +var _env = __webpack_require__(/*! ../_util/env */ "./node_modules/ant-design-vue/lib/_util/env.js"); + +var _configProvider = __webpack_require__(/*! ../config-provider */ "./node_modules/ant-design-vue/lib/config-provider/index.js"); + +var _icon = __webpack_require__(/*! ../icon */ "./node_modules/ant-design-vue/lib/icon/index.js"); + +var _icon2 = _interopRequireDefault(_icon); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } + +function noop() {} + +function fixControlledValue(value) { + if (typeof value === 'undefined' || value === null) { + return ''; + } + return value; +} + +function hasPrefixSuffix(instance) { + return !!((0, _propsUtil.getComponentFromProp)(instance, 'prefix') || (0, _propsUtil.getComponentFromProp)(instance, 'suffix') || instance.$props.allowClear); +} + +exports['default'] = { + name: 'AInput', + inheritAttrs: false, + model: { + prop: 'value', + event: 'change.value' + }, + props: (0, _extends3['default'])({}, _inputProps2['default']), + inject: { + configProvider: { 'default': function _default() { + return _configProvider.ConfigConsumerProps; + } } + }, data: function data() { + var _$props = this.$props, + _$props$value = _$props.value, + value = _$props$value === undefined ? '' : _$props$value, + _$props$defaultValue = _$props.defaultValue, + defaultValue = _$props$defaultValue === undefined ? '' : _$props$defaultValue; + return { - categories: [], - frontMenus: [], - selected: null, - menus: [], - form: this.$form.createForm(this), - menu_json: '', - fields: ['name', 'identifier'] + stateValue: !(0, _propsUtil.hasProp)(this, 'value') ? defaultValue : value }; }, + + watch: { + value: function value(val) { + this.stateValue = val; + } + }, + mounted: function mounted() { + var _this = this; + + this.$nextTick(function () { + if (_this.autoFocus) { + _this.focus(); + } + }); + }, + methods: { - handleSubmit: function handleSubmit(e) { - this.form.validateFields(function (err, values) { - if (err) { - e.preventDefault(); - } + handleKeyDown: function handleKeyDown(e) { + if (e.keyCode === 13) { + this.$emit('pressEnter', e); + } + this.$emit('keydown', e); + }, + focus: function focus() { + this.$refs.input.focus(); + }, + blur: function blur() { + this.$refs.input.blur(); + }, + select: function select() { + this.$refs.input.select(); + }, + getInputClassName: function getInputClassName(prefixCls) { + var _ref; + + var _$props2 = this.$props, + size = _$props2.size, + disabled = _$props2.disabled; + + return _ref = {}, (0, _defineProperty3['default'])(_ref, '' + prefixCls, true), (0, _defineProperty3['default'])(_ref, prefixCls + '-sm', size === 'small'), (0, _defineProperty3['default'])(_ref, prefixCls + '-lg', size === 'large'), (0, _defineProperty3['default'])(_ref, prefixCls + '-disabled', disabled), _ref; + }, + setValue: function setValue(value, e) { + if (this.stateValue === value) { + return; + } + if (!(0, _propsUtil.hasProp)(this, 'value')) { + this.stateValue = value; + } else { + this.$forceUpdate(); + } + this.$emit('change.value', value); + var event = e; + if (e.type === 'click' && this.$refs.input) { + // click clear icon + event = (0, _extends3['default'])({}, e); + event.target = this.$refs.input; + event.currentTarget = this.$refs.input; + var originalInputValue = this.$refs.input.value; + // change input value cause e.target.value should be '' when clear input + this.$refs.input.value = ''; + this.$emit('change', event); + this.$emit('input', event); + // reset input value + this.$refs.input.value = originalInputValue; + return; + } + this.$emit('change', e); + this.$emit('input', e); + }, + handleReset: function handleReset(e) { + var _this2 = this; + + this.setValue('', e); + this.$nextTick(function () { + _this2.focus(); }); }, - handleDrop: function handleDrop(data) { - var index = data.index, - list = data.list, - item = data.item; - item.id = new Date().getTime(); - list.splice(index, 0, item); - this.menu_json = JSON.stringify(this.menus); - return true; - }, - handleSubMenuDrop: function handleSubMenuDrop(data) { - var index = data.index, - list = data.list, - item = data.item; - item.id = new Date().getTime(); - list.splice(index, 0, item); - this.menu_json = JSON.stringify(this.menus); - return true; - }, - cancelMenu: function cancelMenu() { - location = this.baseUrl + '/menu-group/'; + handleChange: function handleChange(e) { + var _e$target = e.target, + value = _e$target.value, + composing = _e$target.composing; + + if (composing || this.stateValue === value) return; + this.setValue(value, e); + }, + renderClearIcon: function renderClearIcon(prefixCls) { + var h = this.$createElement; + var _$props3 = this.$props, + allowClear = _$props3.allowClear, + disabled = _$props3.disabled; + var stateValue = this.stateValue; + + if (!allowClear || disabled || stateValue === undefined || stateValue === null || stateValue === '') { + return null; + } + return h(_icon2['default'], { + attrs: { + type: 'close-circle', + theme: 'filled', + + role: 'button' + }, + on: { + 'click': this.handleReset + }, + + 'class': prefixCls + '-clear-icon' }); + }, + renderSuffix: function renderSuffix(prefixCls) { + var h = this.$createElement; + var allowClear = this.$props.allowClear; + + var suffix = (0, _propsUtil.getComponentFromProp)(this, 'suffix'); + if (suffix || allowClear) { + return h( + 'span', + { 'class': prefixCls + '-suffix', key: 'suffix' }, + [this.renderClearIcon(prefixCls), suffix] + ); + } + return null; + }, + renderLabeledInput: function renderLabeledInput(prefixCls, children) { + var _mergedWrapperClassNa, _classNames; + + var h = this.$createElement; + + var props = this.$props; + var addonAfter = (0, _propsUtil.getComponentFromProp)(this, 'addonAfter'); + var addonBefore = (0, _propsUtil.getComponentFromProp)(this, 'addonBefore'); + // Not wrap when there is not addons + if (!addonBefore && !addonAfter) { + return children; + } + + var wrapperClassName = prefixCls + '-group'; + var addonClassName = wrapperClassName + '-addon'; + addonBefore = addonBefore ? h( + 'span', + { 'class': addonClassName }, + [addonBefore] + ) : null; + + addonAfter = addonAfter ? h( + 'span', + { 'class': addonClassName }, + [addonAfter] + ) : null; + + var mergedWrapperClassName = (_mergedWrapperClassNa = {}, (0, _defineProperty3['default'])(_mergedWrapperClassNa, prefixCls + '-wrapper', true), (0, _defineProperty3['default'])(_mergedWrapperClassNa, wrapperClassName, addonBefore || addonAfter), _mergedWrapperClassNa); + + var mergedGroupClassName = (0, _classnames2['default'])(prefixCls + '-group-wrapper', (_classNames = {}, (0, _defineProperty3['default'])(_classNames, prefixCls + '-group-wrapper-sm', props.size === 'small'), (0, _defineProperty3['default'])(_classNames, prefixCls + '-group-wrapper-lg', props.size === 'large'), _classNames)); + return h( + 'span', + { 'class': mergedGroupClassName }, + [h( + 'span', + { 'class': mergedWrapperClassName }, + [addonBefore, children, addonAfter] + )] + ); + }, + renderLabeledIcon: function renderLabeledIcon(prefixCls, children) { + var _classNames2; + + var h = this.$createElement; + var size = this.$props.size; + + var suffix = this.renderSuffix(prefixCls); + if (!hasPrefixSuffix(this)) { + return children; + } + var prefix = (0, _propsUtil.getComponentFromProp)(this, 'prefix'); + prefix = prefix ? h( + 'span', + { 'class': prefixCls + '-prefix', key: 'prefix' }, + [prefix] + ) : null; + + var affixWrapperCls = (0, _classnames2['default'])(prefixCls + '-affix-wrapper', (_classNames2 = {}, (0, _defineProperty3['default'])(_classNames2, prefixCls + '-affix-wrapper-sm', size === 'small'), (0, _defineProperty3['default'])(_classNames2, prefixCls + '-affix-wrapper-lg', size === 'large'), _classNames2)); + return h( + 'span', + { 'class': affixWrapperCls, key: 'affix' }, + [prefix, children, suffix] + ); + }, + renderInput: function renderInput(prefixCls) { + var h = this.$createElement; + + var otherProps = (0, _omit2['default'])(this.$props, ['prefixCls', 'addonBefore', 'addonAfter', 'prefix', 'suffix', 'allowClear', 'value', 'defaultValue']); + var stateValue = this.stateValue, + getInputClassName = this.getInputClassName, + handleKeyDown = this.handleKeyDown, + handleChange = this.handleChange, + $listeners = this.$listeners; + + var inputProps = { + directives: [{ name: 'ant-input' }], + domProps: { + value: fixControlledValue(stateValue) + }, + attrs: (0, _extends3['default'])({}, otherProps, this.$attrs), + on: (0, _extends3['default'])({}, $listeners, { + keydown: handleKeyDown, + input: handleChange, + change: noop + }), + 'class': getInputClassName(prefixCls), + ref: 'input', + key: 'ant-input' + }; + return this.renderLabeledIcon(prefixCls, h('input', inputProps)); } }, - mounted: function mounted() { - var _this = this; + render: function render() { + var h = arguments[0]; + + if (this.$props.type === 'textarea') { + var $listeners = this.$listeners; - if (!lodash_isNil__WEBPACK_IMPORTED_MODULE_0___default()(this.page)) { - this.content = this.page.content; + var textareaProps = { + props: this.$props, + attrs: this.$attrs, + on: (0, _extends3['default'])({}, $listeners, { + input: this.handleChange, + keydown: this.handleKeyDown, + change: noop + }), + directives: [{ + name: 'ant-input' + }] + }; + return h(_TextArea2['default'], (0, _babelHelperVueJsxMergeProps2['default'])([textareaProps, { ref: 'input' }])); } + var customizePrefixCls = this.$props.prefixCls; + + var getPrefixCls = this.configProvider.getPrefixCls; + var prefixCls = getPrefixCls('input', customizePrefixCls); + return this.renderLabeledInput(prefixCls, this.renderInput(prefixCls)); + } +}; + +/***/ }), + +/***/ "./node_modules/ant-design-vue/lib/input/Password.js": +/*!***********************************************************!*\ + !*** ./node_modules/ant-design-vue/lib/input/Password.js ***! + \***********************************************************/ +/*! no static exports found */ +/***/ (function(module, exports, __webpack_require__) { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", { + value: true +}); + +var _objectWithoutProperties2 = __webpack_require__(/*! babel-runtime/helpers/objectWithoutProperties */ "./node_modules/babel-runtime/helpers/objectWithoutProperties.js"); + +var _objectWithoutProperties3 = _interopRequireDefault(_objectWithoutProperties2); + +var _defineProperty2 = __webpack_require__(/*! babel-runtime/helpers/defineProperty */ "./node_modules/babel-runtime/helpers/defineProperty.js"); + +var _defineProperty3 = _interopRequireDefault(_defineProperty2); + +var _extends2 = __webpack_require__(/*! babel-runtime/helpers/extends */ "./node_modules/babel-runtime/helpers/extends.js"); + +var _extends3 = _interopRequireDefault(_extends2); + +var _classnames = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js"); + +var _classnames2 = _interopRequireDefault(_classnames); + +var _propsUtil = __webpack_require__(/*! ../_util/props-util */ "./node_modules/ant-design-vue/lib/_util/props-util.js"); - if (!lodash_isNil__WEBPACK_IMPORTED_MODULE_0___default()(this.propCategories)) { - this.propCategories.forEach(function (ele) { - return _this.categories.push(ele); +var _Input = __webpack_require__(/*! ./Input */ "./node_modules/ant-design-vue/lib/input/Input.js"); + +var _Input2 = _interopRequireDefault(_Input); + +var _icon = __webpack_require__(/*! ../icon */ "./node_modules/ant-design-vue/lib/icon/index.js"); + +var _icon2 = _interopRequireDefault(_icon); + +var _inputProps = __webpack_require__(/*! ./inputProps */ "./node_modules/ant-design-vue/lib/input/inputProps.js"); + +var _inputProps2 = _interopRequireDefault(_inputProps); + +var _vueTypes = __webpack_require__(/*! ../_util/vue-types */ "./node_modules/ant-design-vue/lib/_util/vue-types/index.js"); + +var _vueTypes2 = _interopRequireDefault(_vueTypes); + +var _BaseMixin = __webpack_require__(/*! ../_util/BaseMixin */ "./node_modules/ant-design-vue/lib/_util/BaseMixin.js"); + +var _BaseMixin2 = _interopRequireDefault(_BaseMixin); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } + +var ActionMap = { + click: 'click', + hover: 'mouseover' +}; + +exports['default'] = { + name: 'AInputPassword', + mixins: [_BaseMixin2['default']], + model: { + prop: 'value', + event: 'change.value' + }, + props: (0, _extends3['default'])({}, _inputProps2['default'], { + prefixCls: _vueTypes2['default'].string.def('ant-input-password'), + inputPrefixCls: _vueTypes2['default'].string.def('ant-input'), + action: _vueTypes2['default'].string.def('click'), + visibilityToggle: _vueTypes2['default'].bool.def(true) + }), + data: function data() { + return { + visible: false + }; + }, + + methods: { + onChange: function onChange() { + this.setState({ + visible: !this.visible }); + }, + getIcon: function getIcon() { + var _on; + + var h = this.$createElement; + var _$props = this.$props, + prefixCls = _$props.prefixCls, + action = _$props.action; + + var iconTrigger = ActionMap[action] || ''; + var iconProps = { + props: { + type: this.visible ? 'eye' : 'eye-invisible' + }, + on: (_on = {}, (0, _defineProperty3['default'])(_on, iconTrigger, this.onChange), (0, _defineProperty3['default'])(_on, 'mousedown', function mousedown(e) { + // Prevent focused state lost + // https://github.com/ant-design/ant-design/issues/15173 + e.preventDefault(); + }), _on), + 'class': prefixCls + '-icon', + key: 'passwordIcon' + }; + return h(_icon2['default'], iconProps); } + }, + render: function render() { + var h = arguments[0]; + + var _getOptionProps = (0, _propsUtil.getOptionProps)(this), + prefixCls = _getOptionProps.prefixCls, + inputPrefixCls = _getOptionProps.inputPrefixCls, + size = _getOptionProps.size, + suffix = _getOptionProps.suffix, + visibilityToggle = _getOptionProps.visibilityToggle, + restProps = (0, _objectWithoutProperties3['default'])(_getOptionProps, ['prefixCls', 'inputPrefixCls', 'size', 'suffix', 'visibilityToggle']); + + var suffixIcon = visibilityToggle && this.getIcon(); + var inputClassName = (0, _classnames2['default'])(prefixCls, (0, _defineProperty3['default'])({}, prefixCls + '-' + size, !!size)); + var inputProps = { + props: (0, _extends3['default'])({}, restProps, { + prefixCls: inputPrefixCls, + size: size, + suffix: suffixIcon, + prefix: (0, _propsUtil.getComponentFromProp)(this, 'prefix'), + addonAfter: (0, _propsUtil.getComponentFromProp)(this, 'addonAfter'), + addonBefore: (0, _propsUtil.getComponentFromProp)(this, 'addonBefore') + }), + attrs: (0, _extends3['default'])({}, this.$attrs, { + type: this.visible ? 'text' : 'password' + }), + 'class': inputClassName, + on: this.$listeners + }; + return h(_Input2['default'], inputProps); + } +}; + +/***/ }), + +/***/ "./node_modules/ant-design-vue/lib/input/Search.js": +/*!*********************************************************!*\ + !*** ./node_modules/ant-design-vue/lib/input/Search.js ***! + \*********************************************************/ +/*! no static exports found */ +/***/ (function(module, exports, __webpack_require__) { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", { + value: true +}); + +var _defineProperty2 = __webpack_require__(/*! babel-runtime/helpers/defineProperty */ "./node_modules/babel-runtime/helpers/defineProperty.js"); + +var _defineProperty3 = _interopRequireDefault(_defineProperty2); + +var _objectWithoutProperties2 = __webpack_require__(/*! babel-runtime/helpers/objectWithoutProperties */ "./node_modules/babel-runtime/helpers/objectWithoutProperties.js"); - if (!lodash_isNil__WEBPACK_IMPORTED_MODULE_0___default()(this.propFrontMenus)) { - Object.keys(this.propFrontMenus).forEach(function (key) { - _this.frontMenus.push(_this.propFrontMenus[key]); +var _objectWithoutProperties3 = _interopRequireDefault(_objectWithoutProperties2); + +var _extends2 = __webpack_require__(/*! babel-runtime/helpers/extends */ "./node_modules/babel-runtime/helpers/extends.js"); + +var _extends3 = _interopRequireDefault(_extends2); + +var _classnames = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js"); + +var _classnames2 = _interopRequireDefault(_classnames); + +var _Input = __webpack_require__(/*! ./Input */ "./node_modules/ant-design-vue/lib/input/Input.js"); + +var _Input2 = _interopRequireDefault(_Input); + +var _icon = __webpack_require__(/*! ../icon */ "./node_modules/ant-design-vue/lib/icon/index.js"); + +var _icon2 = _interopRequireDefault(_icon); + +var _inputProps = __webpack_require__(/*! ./inputProps */ "./node_modules/ant-design-vue/lib/input/inputProps.js"); + +var _inputProps2 = _interopRequireDefault(_inputProps); + +var _button = __webpack_require__(/*! ../button */ "./node_modules/ant-design-vue/lib/button/index.js"); + +var _button2 = _interopRequireDefault(_button); + +var _vnode = __webpack_require__(/*! ../_util/vnode */ "./node_modules/ant-design-vue/lib/_util/vnode.js"); + +var _propsUtil = __webpack_require__(/*! ../_util/props-util */ "./node_modules/ant-design-vue/lib/_util/props-util.js"); + +var _vueTypes = __webpack_require__(/*! ../_util/vue-types */ "./node_modules/ant-design-vue/lib/_util/vue-types/index.js"); + +var _vueTypes2 = _interopRequireDefault(_vueTypes); + +var _configProvider = __webpack_require__(/*! ../config-provider */ "./node_modules/ant-design-vue/lib/config-provider/index.js"); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } + +exports['default'] = { + name: 'AInputSearch', + inheritAttrs: false, + model: { + prop: 'value', + event: 'change.value' + }, + props: (0, _extends3['default'])({}, _inputProps2['default'], { + enterButton: _vueTypes2['default'].oneOfType([_vueTypes2['default'].bool, _vueTypes2['default'].string, _vueTypes2['default'].object]) + }), + inject: { + configProvider: { 'default': function _default() { + return _configProvider.ConfigConsumerProps; + } } + }, + methods: { + onSearch: function onSearch(e) { + this.$emit('search', this.$refs.input.stateValue, e); + this.$refs.input.focus(); + }, + focus: function focus() { + this.$refs.input.focus(); + }, + blur: function blur() { + this.$refs.input.blur(); + }, + renderSuffix: function renderSuffix(prefixCls) { + var h = this.$createElement; + + var suffix = (0, _propsUtil.getComponentFromProp)(this, 'suffix'); + var enterButton = (0, _propsUtil.getComponentFromProp)(this, 'enterButton'); + if (enterButton) return suffix; + + var node = h(_icon2['default'], { 'class': prefixCls + '-icon', attrs: { type: 'search' }, + key: 'searchIcon', on: { + 'click': this.onSearch + } }); + + if (suffix) { + // let cloneSuffix = suffix; + // if (isValidElement(cloneSuffix) && !cloneSuffix.key) { + // cloneSuffix = cloneElement(cloneSuffix, { + // key: 'originSuffix', + // }); + // } + return [suffix, node]; + } + + return node; + }, + renderAddonAfter: function renderAddonAfter(prefixCls) { + var h = this.$createElement; + var size = this.size, + disabled = this.disabled; + + var enterButton = (0, _propsUtil.getComponentFromProp)(this, 'enterButton'); + var addonAfter = (0, _propsUtil.getComponentFromProp)(this, 'addonAfter'); + if (!enterButton) return addonAfter; + var btnClassName = prefixCls + '-button'; + var enterButtonAsElement = Array.isArray(enterButton) ? enterButton[0] : enterButton; + var button = void 0; + if (enterButtonAsElement.tag === 'button' || enterButtonAsElement.componentOptions && enterButtonAsElement.componentOptions.Ctor.extendOptions.__ANT_BUTTON) { + button = (0, _vnode.cloneElement)(enterButtonAsElement, { + 'class': btnClassName, + props: { size: size }, + on: { + click: this.onSearch + } + }); + } else { + button = h( + _button2['default'], + { + 'class': btnClassName, + attrs: { type: 'primary', + size: size, + disabled: disabled + }, + key: 'enterButton', + on: { + 'click': this.onSearch + } + }, + [enterButton === true ? h(_icon2['default'], { + attrs: { type: 'search' } + }) : enterButton] + ); + } + if (addonAfter) { + return [button, addonAfter]; + } + + return button; + } + }, + render: function render() { + var h = arguments[0]; + + var _getOptionProps = (0, _propsUtil.getOptionProps)(this), + customizePrefixCls = _getOptionProps.prefixCls, + customizeInputPrefixCls = _getOptionProps.inputPrefixCls, + size = _getOptionProps.size, + others = (0, _objectWithoutProperties3['default'])(_getOptionProps, ['prefixCls', 'inputPrefixCls', 'size']); + + var getPrefixCls = this.configProvider.getPrefixCls; + var prefixCls = getPrefixCls('input-search', customizePrefixCls); + var inputPrefixCls = getPrefixCls('input', customizeInputPrefixCls); + + var enterButton = (0, _propsUtil.getComponentFromProp)(this, 'enterButton'); + var addonBefore = (0, _propsUtil.getComponentFromProp)(this, 'addonBefore'); + var inputClassName = void 0; + if (enterButton) { + var _classNames; + + inputClassName = (0, _classnames2['default'])(prefixCls, (_classNames = {}, (0, _defineProperty3['default'])(_classNames, prefixCls + '-enter-button', !!enterButton), (0, _defineProperty3['default'])(_classNames, prefixCls + '-' + size, !!size), _classNames)); + } else { + inputClassName = prefixCls; } - if (!lodash_isNil__WEBPACK_IMPORTED_MODULE_0___default()(this.propMenus)) { - this.propMenus.forEach(function (ele) { - _this.menus.push(ele); + var on = (0, _extends3['default'])({}, this.$listeners); + delete on.search; + var inputProps = { + props: (0, _extends3['default'])({}, others, { + prefixCls: inputPrefixCls, + size: size, + suffix: this.renderSuffix(prefixCls), + prefix: (0, _propsUtil.getComponentFromProp)(this, 'prefix'), + addonAfter: this.renderAddonAfter(prefixCls), + addonBefore: addonBefore + }), + attrs: this.$attrs, + 'class': inputClassName, + ref: 'input', + on: (0, _extends3['default'])({ + pressEnter: this.onSearch + }, on) + }; + return h(_Input2['default'], inputProps); + } +}; + +/***/ }), + +/***/ "./node_modules/ant-design-vue/lib/input/TextArea.js": +/*!***********************************************************!*\ + !*** ./node_modules/ant-design-vue/lib/input/TextArea.js ***! + \***********************************************************/ +/*! no static exports found */ +/***/ (function(module, exports, __webpack_require__) { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", { + value: true +}); + +var _babelHelperVueJsxMergeProps = __webpack_require__(/*! babel-helper-vue-jsx-merge-props */ "./node_modules/babel-helper-vue-jsx-merge-props/index.js"); + +var _babelHelperVueJsxMergeProps2 = _interopRequireDefault(_babelHelperVueJsxMergeProps); + +var _defineProperty2 = __webpack_require__(/*! babel-runtime/helpers/defineProperty */ "./node_modules/babel-runtime/helpers/defineProperty.js"); + +var _defineProperty3 = _interopRequireDefault(_defineProperty2); + +var _extends2 = __webpack_require__(/*! babel-runtime/helpers/extends */ "./node_modules/babel-runtime/helpers/extends.js"); + +var _extends3 = _interopRequireDefault(_extends2); + +var _classnames = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js"); + +var _classnames2 = _interopRequireDefault(_classnames); + +var _omit = __webpack_require__(/*! omit.js */ "./node_modules/omit.js/es/index.js"); + +var _omit2 = _interopRequireDefault(_omit); + +var _resizeObserverPolyfill = __webpack_require__(/*! resize-observer-polyfill */ "./node_modules/resize-observer-polyfill/dist/ResizeObserver.es.js"); + +var _resizeObserverPolyfill2 = _interopRequireDefault(_resizeObserverPolyfill); + +var _inputProps = __webpack_require__(/*! ./inputProps */ "./node_modules/ant-design-vue/lib/input/inputProps.js"); + +var _inputProps2 = _interopRequireDefault(_inputProps); + +var _calculateNodeHeight = __webpack_require__(/*! ./calculateNodeHeight */ "./node_modules/ant-design-vue/lib/input/calculateNodeHeight.js"); + +var _calculateNodeHeight2 = _interopRequireDefault(_calculateNodeHeight); + +var _propsUtil = __webpack_require__(/*! ../_util/props-util */ "./node_modules/ant-design-vue/lib/_util/props-util.js"); + +var _propsUtil2 = _interopRequireDefault(_propsUtil); + +var _configProvider = __webpack_require__(/*! ../config-provider */ "./node_modules/ant-design-vue/lib/config-provider/index.js"); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } + +function onNextFrame(cb) { + if (window.requestAnimationFrame) { + return window.requestAnimationFrame(cb); + } + return window.setTimeout(cb, 1); +} + +function clearNextFrameAction(nextFrameId) { + if (window.cancelAnimationFrame) { + window.cancelAnimationFrame(nextFrameId); + } else { + window.clearTimeout(nextFrameId); + } +} +function fixControlledValue(value) { + if (typeof value === 'undefined' || value === null) { + return ''; + } + return value; +} +function noop() {} + +exports['default'] = { + name: 'ATextarea', + model: { + prop: 'value', + event: 'change.value' + }, + props: (0, _extends3['default'])({}, _inputProps2['default'], { + autosize: [Object, Boolean] + }), + inject: { + configProvider: { 'default': function _default() { + return _configProvider.ConfigConsumerProps; + } } + }, + data: function data() { + var _$props = this.$props, + _$props$value = _$props.value, + value = _$props$value === undefined ? '' : _$props$value, + _$props$defaultValue = _$props.defaultValue, + defaultValue = _$props$defaultValue === undefined ? '' : _$props$defaultValue; + + return { + stateValue: fixControlledValue(!(0, _propsUtil2['default'])(this, 'value') ? defaultValue : value), + nextFrameActionId: undefined, + textareaStyles: {} + }; + }, + + computed: {}, + watch: { + value: function value(val) { + var _this = this; + + this.$nextTick(function () { + _this.resizeOnNextFrame(); }); + this.stateValue = fixControlledValue(val); + }, + autosize: function autosize(val) { + if (!val && this.$refs.textArea) { + this.textareaStyles = (0, _omit2['default'])(this.textareaStyles, ['overflowY']); + } } + }, + mounted: function mounted() { + var _this2 = this; - if (!lodash_isNil__WEBPACK_IMPORTED_MODULE_0___default()(this.menus)) { - this.menu_json = JSON.stringify(this.menus); + this.$nextTick(function () { + _this2.resizeTextarea(); + _this2.updateResizeObserverHook(); + if (_this2.autoFocus) { + _this2.focus(); + } + }); + }, + updated: function updated() { + this.updateResizeObserverHook(); + }, + beforeDestroy: function beforeDestroy() { + if (this.resizeObserver) { + this.resizeObserver.disconnect(); } + }, - if (!lodash_isNil__WEBPACK_IMPORTED_MODULE_0___default()(this.menuGroup)) { - this.fields.forEach(function (field) { - console.log(window.x = _this); + methods: { + resizeOnNextFrame: function resizeOnNextFrame() { + if (this.nextFrameActionId) { + clearNextFrameAction(this.nextFrameActionId); + } + this.nextFrameActionId = onNextFrame(this.resizeTextarea); + }, - _this.form.getFieldDecorator(field, { - 'name': _this.menuGroup[field] - }); - }); + // We will update hooks if `autosize` prop change + updateResizeObserverHook: function updateResizeObserverHook() { + if (!this.resizeObserver && this.$props.autosize) { + // Add resize observer + this.resizeObserver = new _resizeObserverPolyfill2['default'](this.resizeOnNextFrame); + this.resizeObserver.observe(this.$refs.textArea); + } else if (this.resizeObserver && !this.$props.autosize) { + // Remove resize observer + this.resizeObserver.disconnect(); + this.resizeObserver = null; + } + }, + handleKeyDown: function handleKeyDown(e) { + if (e.keyCode === 13) { + this.$emit('pressEnter', e); + } + this.$emit('keydown', e); + }, + resizeTextarea: function resizeTextarea() { + var autosize = this.$props.autosize; + + if (!autosize || !this.$refs.textArea) { + return; + } + var minRows = autosize.minRows, + maxRows = autosize.maxRows; + + var textareaStyles = (0, _calculateNodeHeight2['default'])(this.$refs.textArea, false, minRows, maxRows); + this.textareaStyles = textareaStyles; + }, + handleTextareaChange: function handleTextareaChange(e) { + var _e$target = e.target, + value = _e$target.value, + composing = _e$target.composing; + + if (composing || this.stateValue === value) return; + if (!(0, _propsUtil2['default'])(this, 'value')) { + this.stateValue = value; + this.resizeTextarea(); + } else { + this.$forceUpdate(); + } + + this.$emit('change.value', value); + this.$emit('change', e); + this.$emit('input', e); + }, + focus: function focus() { + this.$refs.textArea.focus(); + }, + blur: function blur() { + this.$refs.textArea.blur(); } + }, + render: function render() { + var h = arguments[0]; + var stateValue = this.stateValue, + handleKeyDown = this.handleKeyDown, + handleTextareaChange = this.handleTextareaChange, + textareaStyles = this.textareaStyles, + $attrs = this.$attrs, + $listeners = this.$listeners, + customizePrefixCls = this.prefixCls, + disabled = this.disabled; + + var otherProps = (0, _omit2['default'])(this.$props, ['prefixCls', 'autosize', 'type', 'value', 'defaultValue']); + var getPrefixCls = this.configProvider.getPrefixCls; + var prefixCls = getPrefixCls('input', customizePrefixCls); + + var cls = (0, _classnames2['default'])(prefixCls, (0, _defineProperty3['default'])({}, prefixCls + '-disabled', disabled)); + + var textareaProps = { + directives: [{ name: 'ant-input' }], + attrs: (0, _extends3['default'])({}, otherProps, $attrs), + on: (0, _extends3['default'])({}, $listeners, { + keydown: handleKeyDown, + input: handleTextareaChange, + change: noop + }) + }; + return h('textarea', (0, _babelHelperVueJsxMergeProps2['default'])([textareaProps, { + domProps: { + 'value': stateValue + }, + + 'class': cls, + style: textareaStyles, + ref: 'textArea' + }])); } -}); +}; /***/ }), -/***/ "./node_modules/css-loader/index.js?!./node_modules/vue-loader/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/src/index.js?!./node_modules/vue-loader/lib/index.js?!./vendor/avored/framework/resources/components/cms/menu/MenuSave.vue?vue&type=style&index=0&lang=css&": -/*!********************************************************************************************************************************************************************************************************************************************************************************************************!*\ - !*** ./node_modules/css-loader??ref--6-1!./node_modules/vue-loader/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/src??ref--6-2!./node_modules/vue-loader/lib??vue-loader-options!./vendor/avored/framework/resources/components/cms/menu/MenuSave.vue?vue&type=style&index=0&lang=css& ***! - \********************************************************************************************************************************************************************************************************************************************************************************************************/ +/***/ "./node_modules/ant-design-vue/lib/input/calculateNodeHeight.js": +/*!**********************************************************************!*\ + !*** ./node_modules/ant-design-vue/lib/input/calculateNodeHeight.js ***! + \**********************************************************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { -exports = module.exports = __webpack_require__(/*! ../../../../../../../node_modules/css-loader/lib/css-base.js */ "./node_modules/css-loader/lib/css-base.js")(false); -// imports +"use strict"; + + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.calculateNodeStyling = calculateNodeStyling; +exports['default'] = calculateNodeHeight; +// Thanks to https://github.com/andreypopp/react-textarea-autosize/ + +/** + * calculateNodeHeight(uiTextNode, useCache = false) + */ + +var HIDDEN_TEXTAREA_STYLE = '\n min-height:0 !important;\n max-height:none !important;\n height:0 !important;\n visibility:hidden !important;\n overflow:hidden !important;\n position:absolute !important;\n z-index:-1000 !important;\n top:0 !important;\n right:0 !important\n'; + +var SIZING_STYLE = ['letter-spacing', 'line-height', 'padding-top', 'padding-bottom', 'font-family', 'font-weight', 'font-size', 'font-variant', 'text-rendering', 'text-transform', 'width', 'text-indent', 'padding-left', 'padding-right', 'border-width', 'box-sizing']; + +var computedStyleCache = {}; +var hiddenTextarea = void 0; + +function calculateNodeStyling(node) { + var useCache = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false; + + var nodeRef = node.getAttribute('id') || node.getAttribute('data-reactid') || node.getAttribute('name'); + + if (useCache && computedStyleCache[nodeRef]) { + return computedStyleCache[nodeRef]; + } + var style = window.getComputedStyle(node); -// module -exports.push([module.i, "\n.vddl-list, .vddl-draggable {\n position: relative;\n}\n.vddl-list {\n min-height: 44px;\n}\n", ""]); + var boxSizing = style.getPropertyValue('box-sizing') || style.getPropertyValue('-moz-box-sizing') || style.getPropertyValue('-webkit-box-sizing'); -// exports + var paddingSize = parseFloat(style.getPropertyValue('padding-bottom')) + parseFloat(style.getPropertyValue('padding-top')); + var borderSize = parseFloat(style.getPropertyValue('border-bottom-width')) + parseFloat(style.getPropertyValue('border-top-width')); + + var sizingStyle = SIZING_STYLE.map(function (name) { + return name + ':' + style.getPropertyValue(name); + }).join(';'); + + var nodeInfo = { + sizingStyle: sizingStyle, + paddingSize: paddingSize, + borderSize: borderSize, + boxSizing: boxSizing + }; + + if (useCache && nodeRef) { + computedStyleCache[nodeRef] = nodeInfo; + } + + return nodeInfo; +} + +function calculateNodeHeight(uiTextNode) { + var useCache = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false; + var minRows = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : null; + var maxRows = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : null; + + if (!hiddenTextarea) { + hiddenTextarea = document.createElement('textarea'); + document.body.appendChild(hiddenTextarea); + } + + // Fix wrap="off" issue + // https://github.com/ant-design/ant-design/issues/6577 + if (uiTextNode.getAttribute('wrap')) { + hiddenTextarea.setAttribute('wrap', uiTextNode.getAttribute('wrap')); + } else { + hiddenTextarea.removeAttribute('wrap'); + } + + // Copy all CSS properties that have an impact on the height of the content in + // the textbox + + var _calculateNodeStyling = calculateNodeStyling(uiTextNode, useCache), + paddingSize = _calculateNodeStyling.paddingSize, + borderSize = _calculateNodeStyling.borderSize, + boxSizing = _calculateNodeStyling.boxSizing, + sizingStyle = _calculateNodeStyling.sizingStyle; + + // Need to have the overflow attribute to hide the scrollbar otherwise + // text-lines will not calculated properly as the shadow will technically be + // narrower for content + + + hiddenTextarea.setAttribute('style', sizingStyle + ';' + HIDDEN_TEXTAREA_STYLE); + hiddenTextarea.value = uiTextNode.value || uiTextNode.placeholder || ''; + + var minHeight = Number.MIN_SAFE_INTEGER; + var maxHeight = Number.MAX_SAFE_INTEGER; + var height = hiddenTextarea.scrollHeight; + var overflowY = void 0; + + if (boxSizing === 'border-box') { + // border-box: add border, since height = content + padding + border + height = height + borderSize; + } else if (boxSizing === 'content-box') { + // remove padding, since height = content + height = height - paddingSize; + } + + if (minRows !== null || maxRows !== null) { + // measure height of a textarea with a single row + hiddenTextarea.value = ' '; + var singleRowHeight = hiddenTextarea.scrollHeight - paddingSize; + if (minRows !== null) { + minHeight = singleRowHeight * minRows; + if (boxSizing === 'border-box') { + minHeight = minHeight + paddingSize + borderSize; + } + height = Math.max(minHeight, height); + } + if (maxRows !== null) { + maxHeight = singleRowHeight * maxRows; + if (boxSizing === 'border-box') { + maxHeight = maxHeight + paddingSize + borderSize; + } + overflowY = height > maxHeight ? '' : 'hidden'; + height = Math.min(maxHeight, height); + } + } + // Remove scroll bar flash when autosize without maxRows + // donot remove in vue + if (!maxRows) { + overflowY = 'hidden'; + } + return { + height: height + 'px', + minHeight: minHeight + 'px', + maxHeight: maxHeight + 'px', + overflowY: overflowY + }; +} /***/ }), -/***/ "./node_modules/style-loader/index.js!./node_modules/css-loader/index.js?!./node_modules/vue-loader/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/src/index.js?!./node_modules/vue-loader/lib/index.js?!./vendor/avored/framework/resources/components/cms/menu/MenuSave.vue?vue&type=style&index=0&lang=css&": -/*!************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\ - !*** ./node_modules/style-loader!./node_modules/css-loader??ref--6-1!./node_modules/vue-loader/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/src??ref--6-2!./node_modules/vue-loader/lib??vue-loader-options!./vendor/avored/framework/resources/components/cms/menu/MenuSave.vue?vue&type=style&index=0&lang=css& ***! - \************************************************************************************************************************************************************************************************************************************************************************************************************************************/ +/***/ "./node_modules/ant-design-vue/lib/input/index.js": +/*!********************************************************!*\ + !*** ./node_modules/ant-design-vue/lib/input/index.js ***! + \********************************************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { +"use strict"; -var content = __webpack_require__(/*! !../../../../../../../node_modules/css-loader??ref--6-1!../../../../../../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../../../../../node_modules/postcss-loader/src??ref--6-2!../../../../../../../node_modules/vue-loader/lib??vue-loader-options!./MenuSave.vue?vue&type=style&index=0&lang=css& */ "./node_modules/css-loader/index.js?!./node_modules/vue-loader/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/src/index.js?!./node_modules/vue-loader/lib/index.js?!./vendor/avored/framework/resources/components/cms/menu/MenuSave.vue?vue&type=style&index=0&lang=css&"); -if(typeof content === 'string') content = [[module.i, content, '']]; +Object.defineProperty(exports, "__esModule", { + value: true +}); -var transform; -var insertInto; +var _vue = __webpack_require__(/*! vue */ "./node_modules/vue/dist/vue.common.js"); +var _vue2 = _interopRequireDefault(_vue); +var _Input = __webpack_require__(/*! ./Input */ "./node_modules/ant-design-vue/lib/input/Input.js"); -var options = {"hmr":true} +var _Input2 = _interopRequireDefault(_Input); -options.transform = transform -options.insertInto = undefined; +var _Group = __webpack_require__(/*! ./Group */ "./node_modules/ant-design-vue/lib/input/Group.js"); -var update = __webpack_require__(/*! ../../../../../../../node_modules/style-loader/lib/addStyles.js */ "./node_modules/style-loader/lib/addStyles.js")(content, options); +var _Group2 = _interopRequireDefault(_Group); -if(content.locals) module.exports = content.locals; +var _Search = __webpack_require__(/*! ./Search */ "./node_modules/ant-design-vue/lib/input/Search.js"); -if(false) {} +var _Search2 = _interopRequireDefault(_Search); -/***/ }), +var _TextArea = __webpack_require__(/*! ./TextArea */ "./node_modules/ant-design-vue/lib/input/TextArea.js"); -/***/ "./vendor/avored/framework/resources/components/cms/menu/MenuSave.vue": -/*!****************************************************************************!*\ - !*** ./vendor/avored/framework/resources/components/cms/menu/MenuSave.vue ***! - \****************************************************************************/ -/*! exports provided: default */ -/***/ (function(module, __webpack_exports__, __webpack_require__) { +var _TextArea2 = _interopRequireDefault(_TextArea); -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony import */ var _MenuSave_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./MenuSave.vue?vue&type=script&lang=js& */ "./vendor/avored/framework/resources/components/cms/menu/MenuSave.vue?vue&type=script&lang=js&"); -/* empty/unused harmony star reexport *//* harmony import */ var _MenuSave_vue_vue_type_style_index_0_lang_css___WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./MenuSave.vue?vue&type=style&index=0&lang=css& */ "./vendor/avored/framework/resources/components/cms/menu/MenuSave.vue?vue&type=style&index=0&lang=css&"); -/* harmony import */ var _node_modules_vue_loader_lib_runtime_componentNormalizer_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../../../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js */ "./node_modules/vue-loader/lib/runtime/componentNormalizer.js"); -var render, staticRenderFns +var _Password = __webpack_require__(/*! ./Password */ "./node_modules/ant-design-vue/lib/input/Password.js"); +var _Password2 = _interopRequireDefault(_Password); +var _antInputDirective = __webpack_require__(/*! ../_util/antInputDirective */ "./node_modules/ant-design-vue/lib/_util/antInputDirective.js"); +var _antInputDirective2 = _interopRequireDefault(_antInputDirective); +var _base = __webpack_require__(/*! ../base */ "./node_modules/ant-design-vue/lib/base/index.js"); -/* normalize component */ +var _base2 = _interopRequireDefault(_base); -var component = Object(_node_modules_vue_loader_lib_runtime_componentNormalizer_js__WEBPACK_IMPORTED_MODULE_2__["default"])( - _MenuSave_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0__["default"], - render, - staticRenderFns, - false, - null, - null, - null - -) +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } -/* hot reload */ -if (false) { var api; } -component.options.__file = "vendor/avored/framework/resources/components/cms/menu/MenuSave.vue" -/* harmony default export */ __webpack_exports__["default"] = (component.exports); +_vue2['default'].use(_antInputDirective2['default']); -/***/ }), +_Input2['default'].Group = _Group2['default']; +_Input2['default'].Search = _Search2['default']; +_Input2['default'].TextArea = _TextArea2['default']; +_Input2['default'].Password = _Password2['default']; -/***/ "./vendor/avored/framework/resources/components/cms/menu/MenuSave.vue?vue&type=script&lang=js&": -/*!*****************************************************************************************************!*\ - !*** ./vendor/avored/framework/resources/components/cms/menu/MenuSave.vue?vue&type=script&lang=js& ***! - \*****************************************************************************************************/ -/*! exports provided: default */ -/***/ (function(module, __webpack_exports__, __webpack_require__) { +/* istanbul ignore next */ +_Input2['default'].install = function (Vue) { + Vue.use(_base2['default']); + Vue.component(_Input2['default'].name, _Input2['default']); + Vue.component(_Input2['default'].Group.name, _Input2['default'].Group); + Vue.component(_Input2['default'].Search.name, _Input2['default'].Search); + Vue.component(_Input2['default'].TextArea.name, _Input2['default'].TextArea); + Vue.component(_Input2['default'].Password.name, _Input2['default'].Password); +}; -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony import */ var _node_modules_babel_loader_lib_index_js_ref_4_0_node_modules_vue_loader_lib_index_js_vue_loader_options_MenuSave_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! -!../../../../../../../node_modules/babel-loader/lib??ref--4-0!../../../../../../../node_modules/vue-loader/lib??vue-loader-options!./MenuSave.vue?vue&type=script&lang=js& */ "./node_modules/babel-loader/lib/index.js?!./node_modules/vue-loader/lib/index.js?!./vendor/avored/framework/resources/components/cms/menu/MenuSave.vue?vue&type=script&lang=js&"); -/* empty/unused harmony star reexport */ /* harmony default export */ __webpack_exports__["default"] = (_node_modules_babel_loader_lib_index_js_ref_4_0_node_modules_vue_loader_lib_index_js_vue_loader_options_MenuSave_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0__["default"]); +exports['default'] = _Input2['default']; /***/ }), -/***/ "./vendor/avored/framework/resources/components/cms/menu/MenuSave.vue?vue&type=style&index=0&lang=css&": -/*!*************************************************************************************************************!*\ - !*** ./vendor/avored/framework/resources/components/cms/menu/MenuSave.vue?vue&type=style&index=0&lang=css& ***! - \*************************************************************************************************************/ +/***/ "./node_modules/ant-design-vue/lib/input/inputProps.js": +/*!*************************************************************!*\ + !*** ./node_modules/ant-design-vue/lib/input/inputProps.js ***! + \*************************************************************/ /*! no static exports found */ -/***/ (function(module, __webpack_exports__, __webpack_require__) { +/***/ (function(module, exports, __webpack_require__) { "use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony import */ var _node_modules_style_loader_index_js_node_modules_css_loader_index_js_ref_6_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_6_2_node_modules_vue_loader_lib_index_js_vue_loader_options_MenuSave_vue_vue_type_style_index_0_lang_css___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! -!../../../../../../../node_modules/style-loader!../../../../../../../node_modules/css-loader??ref--6-1!../../../../../../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../../../../../node_modules/postcss-loader/src??ref--6-2!../../../../../../../node_modules/vue-loader/lib??vue-loader-options!./MenuSave.vue?vue&type=style&index=0&lang=css& */ "./node_modules/style-loader/index.js!./node_modules/css-loader/index.js?!./node_modules/vue-loader/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/src/index.js?!./node_modules/vue-loader/lib/index.js?!./vendor/avored/framework/resources/components/cms/menu/MenuSave.vue?vue&type=style&index=0&lang=css&"); -/* harmony import */ var _node_modules_style_loader_index_js_node_modules_css_loader_index_js_ref_6_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_6_2_node_modules_vue_loader_lib_index_js_vue_loader_options_MenuSave_vue_vue_type_style_index_0_lang_css___WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_node_modules_style_loader_index_js_node_modules_css_loader_index_js_ref_6_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_6_2_node_modules_vue_loader_lib_index_js_vue_loader_options_MenuSave_vue_vue_type_style_index_0_lang_css___WEBPACK_IMPORTED_MODULE_0__); -/* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _node_modules_style_loader_index_js_node_modules_css_loader_index_js_ref_6_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_6_2_node_modules_vue_loader_lib_index_js_vue_loader_options_MenuSave_vue_vue_type_style_index_0_lang_css___WEBPACK_IMPORTED_MODULE_0__) if(__WEBPACK_IMPORT_KEY__ !== 'default') (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _node_modules_style_loader_index_js_node_modules_css_loader_index_js_ref_6_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_6_2_node_modules_vue_loader_lib_index_js_vue_loader_options_MenuSave_vue_vue_type_style_index_0_lang_css___WEBPACK_IMPORTED_MODULE_0__[key]; }) }(__WEBPACK_IMPORT_KEY__)); - /* harmony default export */ __webpack_exports__["default"] = (_node_modules_style_loader_index_js_node_modules_css_loader_index_js_ref_6_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_6_2_node_modules_vue_loader_lib_index_js_vue_loader_options_MenuSave_vue_vue_type_style_index_0_lang_css___WEBPACK_IMPORTED_MODULE_0___default.a); + + +Object.defineProperty(exports, "__esModule", { + value: true +}); + +var _vueTypes = __webpack_require__(/*! ../_util/vue-types */ "./node_modules/ant-design-vue/lib/_util/vue-types/index.js"); + +var _vueTypes2 = _interopRequireDefault(_vueTypes); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } + +exports['default'] = { + prefixCls: _vueTypes2['default'].string, + inputPrefixCls: _vueTypes2['default'].string, + defaultValue: [String, Number], + value: [String, Number], + placeholder: [String, Number], + type: { + 'default': 'text', + type: String + }, + name: String, + size: { + validator: function validator(value) { + return ['small', 'large', 'default'].includes(value); + } + }, + disabled: { + 'default': false, + type: Boolean + }, + readOnly: Boolean, + addonBefore: _vueTypes2['default'].any, + addonAfter: _vueTypes2['default'].any, + // onPressEnter?: React.FormEventHandler; + // onKeyDown?: React.FormEventHandler; + // onChange?: React.ChangeEventHandler; + // onClick?: React.FormEventHandler; + // onFocus?: React.FormEventHandler; + // onBlur?: React.FormEventHandler; + prefix: _vueTypes2['default'].any, + suffix: _vueTypes2['default'].any, + spellCheck: Boolean, + autoFocus: Boolean, + allowClear: Boolean +}; /***/ }) diff --git a/public/avored-admin/js/chunk/7.js b/public/avored-admin/js/chunk/7.js index 2352abc01..b6fcdfd0c 100644 --- a/public/avored-admin/js/chunk/7.js +++ b/public/avored-admin/js/chunk/7.js @@ -1,1118 +1,217 @@ (window["webpackJsonp"] = window["webpackJsonp"] || []).push([[7],{ -/***/ "./node_modules/ant-design-vue/lib/drawer/index.js": -/*!*********************************************************!*\ - !*** ./node_modules/ant-design-vue/lib/drawer/index.js ***! - \*********************************************************/ -/*! no static exports found */ -/***/ (function(module, exports, __webpack_require__) { +/***/ "./node_modules/babel-loader/lib/index.js?!./node_modules/vue-loader/lib/index.js?!./packages/framework/resources/components/cms/menu/MenuSave.vue?vue&type=script&lang=js&": +/*!********************************************************************************************************************************************************************************************!*\ + !*** ./node_modules/babel-loader/lib??ref--4-0!./node_modules/vue-loader/lib??vue-loader-options!./packages/framework/resources/components/cms/menu/MenuSave.vue?vue&type=script&lang=js& ***! + \********************************************************************************************************************************************************************************************/ +/*! exports provided: default */ +/***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; +__webpack_require__.r(__webpack_exports__); +/* harmony import */ var lodash_isNil__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! lodash/isNil */ "./node_modules/lodash/isNil.js"); +/* harmony import */ var lodash_isNil__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(lodash_isNil__WEBPACK_IMPORTED_MODULE_0__); - -Object.defineProperty(exports, "__esModule", { - value: true -}); - -var _defineProperty2 = __webpack_require__(/*! babel-runtime/helpers/defineProperty */ "./node_modules/babel-runtime/helpers/defineProperty.js"); - -var _defineProperty3 = _interopRequireDefault(_defineProperty2); - -var _objectWithoutProperties2 = __webpack_require__(/*! babel-runtime/helpers/objectWithoutProperties */ "./node_modules/babel-runtime/helpers/objectWithoutProperties.js"); - -var _objectWithoutProperties3 = _interopRequireDefault(_objectWithoutProperties2); - -var _extends2 = __webpack_require__(/*! babel-runtime/helpers/extends */ "./node_modules/babel-runtime/helpers/extends.js"); - -var _extends3 = _interopRequireDefault(_extends2); - -var _classnames2 = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js"); - -var _classnames3 = _interopRequireDefault(_classnames2); - -var _src = __webpack_require__(/*! ../vc-drawer/src */ "./node_modules/ant-design-vue/lib/vc-drawer/src/index.js"); - -var _src2 = _interopRequireDefault(_src); - -var _vueTypes = __webpack_require__(/*! ../_util/vue-types */ "./node_modules/ant-design-vue/lib/_util/vue-types/index.js"); - -var _vueTypes2 = _interopRequireDefault(_vueTypes); - -var _BaseMixin = __webpack_require__(/*! ../_util/BaseMixin */ "./node_modules/ant-design-vue/lib/_util/BaseMixin.js"); - -var _BaseMixin2 = _interopRequireDefault(_BaseMixin); - -var _icon = __webpack_require__(/*! ../icon */ "./node_modules/ant-design-vue/lib/icon/index.js"); - -var _icon2 = _interopRequireDefault(_icon); - -var _propsUtil = __webpack_require__(/*! ../_util/props-util */ "./node_modules/ant-design-vue/lib/_util/props-util.js"); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } - -var Drawer = { - name: 'ADrawer', - props: { - closable: _vueTypes2['default'].bool.def(true), - destroyOnClose: _vueTypes2['default'].bool, - getContainer: _vueTypes2['default'].any, - maskClosable: _vueTypes2['default'].bool.def(true), - mask: _vueTypes2['default'].bool.def(true), - maskStyle: _vueTypes2['default'].object, - wrapStyle: _vueTypes2['default'].object, - title: _vueTypes2['default'].any, - visible: _vueTypes2['default'].bool, - width: _vueTypes2['default'].oneOfType([_vueTypes2['default'].string, _vueTypes2['default'].number]).def(256), - height: _vueTypes2['default'].oneOfType([_vueTypes2['default'].string, _vueTypes2['default'].number]).def(256), - zIndex: _vueTypes2['default'].number, - prefixCls: _vueTypes2['default'].string.def('ant-drawer'), - placement: _vueTypes2['default'].oneOf(['top', 'right', 'bottom', 'left']).def('right'), - level: _vueTypes2['default'].any.def(null), - wrapClassName: _vueTypes2['default'].string, // not use class like react, vue will add class to root dom - handle: _vueTypes2['default'].any - }, - mixins: [_BaseMixin2['default']], +/* harmony default export */ __webpack_exports__["default"] = ({ + props: ['propCategories', 'baseUrl', 'propMenus', 'menuGroup', 'propFrontMenus'], data: function data() { - this.destoryClose = false; - this.preVisible = this.$props.visible; return { - _push: false + categories: [], + frontMenus: [], + selected: null, + menus: [], + form: this.$form.createForm(this), + menu_json: '', + fields: ['name', 'identifier'] }; }, - - inject: { - parentDrawer: { - 'default': function _default() { - return null; - } - } - }, - provide: function provide() { - return { - parentDrawer: this - }; - }, - updated: function updated() { - var _this = this; - - this.$nextTick(function () { - if (_this.preVisible !== _this.visible && _this.parentDrawer) { - if (_this.visible) { - _this.parentDrawer.push(); - } else { - _this.parentDrawer.pull(); - } - } - _this.preVisible = _this.visible; - }); - }, - methods: { - close: function close(e) { - if (this.visible !== undefined) { - this.$emit('close', e); - return; - } - }, - onMaskClick: function onMaskClick(e) { - if (!this.maskClosable) { - return; - } - this.close(e); - }, - push: function push() { - this.setState({ - _push: true - }); - }, - pull: function pull() { - this.setState({ - _push: false + handleSubmit: function handleSubmit(e) { + this.form.validateFields(function (err, values) { + if (err) { + e.preventDefault(); + } }); }, - onDestoryTransitionEnd: function onDestoryTransitionEnd() { - var isDestroyOnClose = this.getDestoryOnClose(); - if (!isDestroyOnClose) { - return; - } - if (!this.visible) { - this.destoryClose = true; - this.$forceUpdate(); - } - }, - getDestoryOnClose: function getDestoryOnClose() { - return this.destroyOnClose && !this.visible; - }, - - // get drawar push width or height - getPushTransform: function getPushTransform(placement) { - if (placement === 'left' || placement === 'right') { - return 'translateX(' + (placement === 'left' ? 180 : -180) + 'px)'; - } - if (placement === 'top' || placement === 'bottom') { - return 'translateY(' + (placement === 'top' ? 180 : -180) + 'px)'; - } - }, - - // render drawer body dom - renderBody: function renderBody() { - var h = this.$createElement; - - if (this.destoryClose && !this.visible) { - return null; - } - this.destoryClose = false; - var placement = this.$props.placement; - - - var containerStyle = placement === 'left' || placement === 'right' ? { - overflow: 'auto', - height: '100%' - } : {}; - - var isDestroyOnClose = this.getDestoryOnClose(); - if (isDestroyOnClose) { - // Increase the opacity transition, delete children after closing. - containerStyle.opacity = 0; - containerStyle.transition = 'opacity .3s'; - } - var _$props = this.$props, - prefixCls = _$props.prefixCls, - closable = _$props.closable; - - var title = (0, _propsUtil.getComponentFromProp)(this, 'title'); - // is have header dom - var header = void 0; - if (title) { - header = h( - 'div', - { key: 'header', 'class': prefixCls + '-header' }, - [h( - 'div', - { 'class': prefixCls + '-title' }, - [title] - )] - ); - } - // is have closer button - var closer = void 0; - if (closable) { - closer = h( - 'button', - { key: 'closer', on: { - 'click': this.close - }, - attrs: { 'aria-label': 'Close' }, - 'class': prefixCls + '-close' }, - [h( - 'span', - { 'class': prefixCls + '-close-x' }, - [h(_icon2['default'], { - attrs: { type: 'close' } - })] - )] - ); - } - - return h( - 'div', - { - 'class': prefixCls + '-wrapper-body', - style: containerStyle, - on: { - 'transitionend': this.onDestoryTransitionEnd - } - }, - [header, closer, h( - 'div', - { key: 'body', 'class': prefixCls + '-body' }, - [this.$slots['default']] - )] - ); - }, - getRcDrawerStyle: function getRcDrawerStyle() { - var _$props2 = this.$props, - zIndex = _$props2.zIndex, - placement = _$props2.placement, - maskStyle = _$props2.maskStyle, - wrapStyle = _$props2.wrapStyle; - var push = this.$data._push; - - return (0, _extends3['default'])({}, maskStyle, { - zIndex: zIndex, - transform: push ? this.getPushTransform(placement) : undefined - }, wrapStyle); + handleDrop: function handleDrop(data) { + var index = data.index, + list = data.list, + item = data.item; + item.id = new Date().getTime(); + list.splice(index, 0, item); + this.menu_json = JSON.stringify(this.menus); + return true; + }, + handleSubMenuDrop: function handleSubMenuDrop(data) { + var index = data.index, + list = data.list, + item = data.item; + item.id = new Date().getTime(); + list.splice(index, 0, item); + this.menu_json = JSON.stringify(this.menus); + return true; + }, + cancelMenu: function cancelMenu() { + location = this.baseUrl + '/menu-group/'; } }, - render: function render() { - var _classnames; - - var h = arguments[0]; - - var props = (0, _propsUtil.getOptionProps)(this); - var width = props.width, - height = props.height, - visible = props.visible, - placement = props.placement, - wrapClassName = props.wrapClassName, - rest = (0, _objectWithoutProperties3['default'])(props, ['width', 'height', 'visible', 'placement', 'wrapClassName']); - - var haveMask = rest.mask ? '' : 'no-mask'; - var offsetStyle = {}; - if (placement === 'left' || placement === 'right') { - offsetStyle.width = typeof width === 'number' ? width + 'px' : width; - } else { - offsetStyle.height = typeof height === 'number' ? height + 'px' : height; - } - var handler = (0, _propsUtil.getComponentFromProp)(this, 'handle') || false; - var vcDrawerProps = { - props: (0, _extends3['default'])({}, rest, { - handler: handler - }, offsetStyle, { - open: visible, - showMask: props.mask, - placement: placement, - className: (0, _classnames3['default'])((_classnames = {}, (0, _defineProperty3['default'])(_classnames, wrapClassName, !!wrapClassName), (0, _defineProperty3['default'])(_classnames, haveMask, !!haveMask), _classnames)), - wrapStyle: this.getRcDrawerStyle() - }), - on: (0, _extends3['default'])({ - maskClick: this.onMaskClick - }, this.$listeners) - }; - return h( - _src2['default'], - vcDrawerProps, - [this.renderBody()] - ); - } -}; - -/* istanbul ignore next */ -Drawer.install = function (Vue) { - Vue.component(Drawer.name, Drawer); -}; - -exports['default'] = Drawer; - -/***/ }), - -/***/ "./node_modules/ant-design-vue/lib/vc-drawer/src/Drawer.js": -/*!*****************************************************************!*\ - !*** ./node_modules/ant-design-vue/lib/vc-drawer/src/Drawer.js ***! - \*****************************************************************/ -/*! no static exports found */ -/***/ (function(module, exports, __webpack_require__) { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", { - value: true -}); - -var _babelHelperVueJsxMergeProps = __webpack_require__(/*! babel-helper-vue-jsx-merge-props */ "./node_modules/babel-helper-vue-jsx-merge-props/index.js"); - -var _babelHelperVueJsxMergeProps2 = _interopRequireDefault(_babelHelperVueJsxMergeProps); - -var _defineProperty2 = __webpack_require__(/*! babel-runtime/helpers/defineProperty */ "./node_modules/babel-runtime/helpers/defineProperty.js"); - -var _defineProperty3 = _interopRequireDefault(_defineProperty2); - -var _typeof2 = __webpack_require__(/*! babel-runtime/helpers/typeof */ "./node_modules/babel-runtime/helpers/typeof.js"); - -var _typeof3 = _interopRequireDefault(_typeof2); - -var _extends2 = __webpack_require__(/*! babel-runtime/helpers/extends */ "./node_modules/babel-runtime/helpers/extends.js"); - -var _extends3 = _interopRequireDefault(_extends2); - -var _classnames2 = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js"); - -var _classnames3 = _interopRequireDefault(_classnames2); - -var _vue = __webpack_require__(/*! vue */ "./node_modules/vue/dist/vue.common.js"); - -var _vue2 = _interopRequireDefault(_vue); - -var _vueRef = __webpack_require__(/*! vue-ref */ "./node_modules/vue-ref/index.js"); - -var _vueRef2 = _interopRequireDefault(_vueRef); - -var _BaseMixin = __webpack_require__(/*! ../../_util/BaseMixin */ "./node_modules/ant-design-vue/lib/_util/BaseMixin.js"); - -var _BaseMixin2 = _interopRequireDefault(_BaseMixin); - -var _propsUtil = __webpack_require__(/*! ../../_util/props-util */ "./node_modules/ant-design-vue/lib/_util/props-util.js"); - -var _vnode = __webpack_require__(/*! ../../_util/vnode */ "./node_modules/ant-design-vue/lib/_util/vnode.js"); - -var _ContainerRender = __webpack_require__(/*! ../../_util/ContainerRender */ "./node_modules/ant-design-vue/lib/_util/ContainerRender.js"); - -var _ContainerRender2 = _interopRequireDefault(_ContainerRender); - -var _getScrollBarSize = __webpack_require__(/*! ../../_util/getScrollBarSize */ "./node_modules/ant-design-vue/lib/_util/getScrollBarSize.js"); - -var _getScrollBarSize2 = _interopRequireDefault(_getScrollBarSize); - -var _drawerProps = __webpack_require__(/*! ./drawerProps */ "./node_modules/ant-design-vue/lib/vc-drawer/src/drawerProps.js"); - -var _drawerProps2 = _interopRequireDefault(_drawerProps); - -var _utils = __webpack_require__(/*! ./utils */ "./node_modules/ant-design-vue/lib/vc-drawer/src/utils.js"); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } - -function noop() {} - -var currentDrawer = {}; -var windowIsUndefined = !(typeof window !== 'undefined' && window.document && window.document.createElement); - -_vue2['default'].use(_vueRef2['default'], { name: 'ant-ref' }); -var Drawer = { - mixins: [_BaseMixin2['default']], - props: (0, _propsUtil.initDefaultProps)(_drawerProps2['default'], { - prefixCls: 'drawer', - placement: 'left', - getContainer: 'body', - level: 'all', - duration: '.3s', - ease: 'cubic-bezier(0.78, 0.14, 0.15, 0.86)', - firstEnter: false, // 记录首次进入. - showMask: true, - handler: true, - maskStyle: {}, - wrapperClassName: '', - className: '' - }), - data: function data() { - this.levelDom = []; - this.contentDom = null; - this.maskDom = null; - this.handlerdom = null; - this.mousePos = null; - this.sFirstEnter = this.firstEnter; - this.timeout = null; - this.children = null; - this.drawerId = Number((Date.now() + Math.random()).toString().replace('.', Math.round(Math.random() * 9))).toString(16); - var open = this.open !== undefined ? this.open : !!this.defaultOpen; - currentDrawer[this.drawerId] = open; - this.orignalOpen = this.open; - this.preProps = (0, _extends3['default'])({}, this.$props); - return { - sOpen: open - }; - }, mounted: function mounted() { var _this = this; - this.$nextTick(function () { - if (!windowIsUndefined) { - var passiveSupported = false; - window.addEventListener('test', null, Object.defineProperty({}, 'passive', { - get: function get() { - passiveSupported = true; - return null; - } - })); - _this.passive = passiveSupported ? { passive: false } : false; - } - var open = _this.getOpen(); - if (_this.handler || open || _this.sFirstEnter) { - _this.getDefault(_this.$props); - if (open) { - _this.isOpenChange = true; - } - _this.$forceUpdate(); - } - }); - }, - - watch: { - open: function (_open) { - function open(_x) { - return _open.apply(this, arguments); - } - - open.toString = function () { - return _open.toString(); - }; - - return open; - }(function (val) { - if (val !== undefined && val !== this.preProps.open) { - this.isOpenChange = true; - // 没渲染 dom 时,获取默认数据; - if (!this.container) { - this.getDefault(this.$props); - } - this.setState({ - sOpen: open - }); - } - this.preProps.open = val; - }), - placement: function placement(val) { - if (val !== this.preProps.placement) { - // test 的 bug, 有动画过场,删除 dom - this.contentDom = null; - } - this.preProps.placement = val; - }, - level: function level(val) { - if (this.preProps.level !== val) { - this.getParentAndLevelDom(this.$props); - } - this.preProps.level = val; + if (!lodash_isNil__WEBPACK_IMPORTED_MODULE_0___default()(this.page)) { + this.content = this.page.content; } - }, - updated: function updated() { - var _this2 = this; - this.$nextTick(function () { - // dom 没渲染时,重走一遍。 - if (!_this2.sFirstEnter && _this2.container) { - _this2.$forceUpdate(); - _this2.sFirstEnter = true; - } - }); - }, - beforeDestroy: function beforeDestroy() { - delete currentDrawer[this.drawerId]; - delete this.isOpenChange; - if (this.container) { - if (this.sOpen) { - this.setLevelDomTransform(false, true); - } - document.body.style.overflow = ''; - // 拦不住。。直接删除; - if (this.getSelfContainer) { - this.container.parentNode.removeChild(this.container); - } + if (!lodash_isNil__WEBPACK_IMPORTED_MODULE_0___default()(this.propCategories)) { + this.propCategories.forEach(function (ele) { + return _this.categories.push(ele); + }); } - this.sFirstEnter = false; - clearTimeout(this.timeout); - // 需要 didmount 后也会渲染,直接 unmount 将不会渲染,加上判断. - if (this.renderComponent) { - this.renderComponent({ - afterClose: this.removeContainer, - onClose: function onClose() {}, - visible: false + if (!lodash_isNil__WEBPACK_IMPORTED_MODULE_0___default()(this.propFrontMenus)) { + Object.keys(this.propFrontMenus).forEach(function (key) { + _this.frontMenus.push(_this.propFrontMenus[key]); }); } - }, - methods: { - onMaskTouchEnd: function onMaskTouchEnd(e) { - this.$emit('maskClick', e); - this.onTouchEnd(e, true); - }, - onIconTouchEnd: function onIconTouchEnd(e) { - this.$emit('handleClick', e); - this.onTouchEnd(e); - }, - onTouchEnd: function onTouchEnd(e, close) { - if (this.open !== undefined) { - return; - } - var open = close || this.sOpen; - this.isOpenChange = true; - this.setState({ - sOpen: !open - }); - }, - onWrapperTransitionEnd: function onWrapperTransitionEnd(e) { - if (e.target === this.contentWrapper) { - this.dom.style.transition = ''; - if (!this.sOpen && this.getCurrentDrawerSome()) { - document.body.style.overflowX = ''; - if (this.maskDom) { - this.maskDom.style.left = ''; - this.maskDom.style.width = ''; - } - } - } - }, - getDefault: function getDefault(props) { - this.getParentAndLevelDom(props); - if (props.getContainer || props.parent) { - this.container = this.defaultGetContainer(); - } - }, - getCurrentDrawerSome: function getCurrentDrawerSome() { - return !Object.keys(currentDrawer).some(function (key) { - return currentDrawer[key]; + if (!lodash_isNil__WEBPACK_IMPORTED_MODULE_0___default()(this.propMenus)) { + this.propMenus.forEach(function (ele) { + _this.menus.push(ele); }); - }, - getSelfContainer: function getSelfContainer() { - return this.container; - }, - getParentAndLevelDom: function getParentAndLevelDom(props) { - var _this3 = this; - - if (windowIsUndefined) { - return; - } - var level = props.level, - getContainer = props.getContainer; + } - this.levelDom = []; - if (getContainer) { - if (typeof getContainer === 'string') { - var dom = document.querySelectorAll(getContainer)[0]; - this.parent = dom; - } - if (typeof getContainer === 'function') { - this.parent = getContainer(); - } - if ((typeof getContainer === 'undefined' ? 'undefined' : (0, _typeof3['default'])(getContainer)) === 'object' && getContainer instanceof window.HTMLElement) { - this.parent = getContainer; - } - } - if (!getContainer && this.container) { - this.parent = this.container.parentNode; - } - if (level === 'all') { - var children = Array.prototype.slice.call(this.parent.children); - children.forEach(function (child) { - if (child.nodeName !== 'SCRIPT' && child.nodeName !== 'STYLE' && child.nodeName !== 'LINK' && child !== _this3.container) { - _this3.levelDom.push(child); - } - }); - } else if (level) { - (0, _utils.dataToArray)(level).forEach(function (key) { - document.querySelectorAll(key).forEach(function (item) { - _this3.levelDom.push(item); - }); - }); - } - }, - setLevelDomTransform: function setLevelDomTransform(open, openTransition, placementName, value) { - var _this4 = this; + if (!lodash_isNil__WEBPACK_IMPORTED_MODULE_0___default()(this.menus)) { + this.menu_json = JSON.stringify(this.menus); + } - var _$props = this.$props, - placement = _$props.placement, - levelMove = _$props.levelMove, - duration = _$props.duration, - ease = _$props.ease, - getContainer = _$props.getContainer; + if (!lodash_isNil__WEBPACK_IMPORTED_MODULE_0___default()(this.menuGroup)) { + this.fields.forEach(function (field) { + console.log(window.x = _this); - if (!windowIsUndefined) { - this.levelDom.forEach(function (dom) { - if (_this4.isOpenChange || openTransition) { - /* eslint no-param-reassign: "error" */ - dom.style.transition = 'transform ' + duration + ' ' + ease; - (0, _utils.addEventListener)(dom, _utils.transitionEnd, _this4.trnasitionEnd); - var levelValue = open ? value : 0; - if (levelMove) { - var $levelMove = (0, _utils.transformArguments)(levelMove, { target: dom, open: open }); - levelValue = open ? $levelMove[0] : $levelMove[1] || 0; - } - var $value = typeof levelValue === 'number' ? levelValue + 'px' : levelValue; - var placementPos = placement === 'left' || placement === 'top' ? $value : '-' + $value; - dom.style.transform = levelValue ? placementName + '(' + placementPos + ')' : ''; - dom.style.msTransform = levelValue ? placementName + '(' + placementPos + ')' : ''; - } + _this.form.getFieldDecorator(field, { + 'name': _this.menuGroup[field] }); - // 处理 body 滚动 - if (getContainer === 'body') { - var eventArray = ['touchstart']; - var domArray = [document.body, this.maskDom, this.handlerdom, this.contentDom]; - var right = document.body.scrollHeight > (window.innerHeight || document.documentElement.clientHeight) && window.innerWidth > document.body.offsetWidth ? (0, _getScrollBarSize2['default'])(1) : 0; - var widthTransition = 'width ' + duration + ' ' + ease; - var trannsformTransition = 'transform ' + duration + ' ' + ease; - if (open && document.body.style.overflow !== 'hidden') { - document.body.style.overflow = 'hidden'; - if (right) { - document.body.style.position = 'relative'; - document.body.style.width = 'calc(100% - ' + right + 'px)'; - this.dom.style.transition = 'none'; - switch (placement) { - case 'right': - this.dom.style.transform = 'translateX(-' + right + 'px)'; - this.dom.style.msTransform = 'translateX(-' + right + 'px)'; - break; - case 'top': - case 'bottom': - this.dom.style.width = 'calc(100% - ' + right + 'px)'; - this.dom.style.transform = 'translateZ(0)'; - break; - default: - break; - } - clearTimeout(this.timeout); - this.timeout = setTimeout(function () { - _this4.dom.style.transition = trannsformTransition + ',' + widthTransition; - _this4.dom.style.width = ''; - _this4.dom.style.transform = ''; - _this4.dom.style.msTransform = ''; - }); - } - // 手机禁滚 - domArray.forEach(function (item, i) { - if (!item) { - return; - } - (0, _utils.addEventListener)(item, eventArray[i] || 'touchmove', i ? _this4.removeMoveHandler : _this4.removeStartHandler, _this4.passive); - }); - } else if (this.getCurrentDrawerSome()) { - document.body.style.overflow = ''; - if ((this.isOpenChange || openTransition) && right) { - document.body.style.position = ''; - document.body.style.width = ''; - if (_utils.transitionStr) { - document.body.style.overflowX = 'hidden'; - } - this.dom.style.transition = 'none'; - var heightTransition = void 0; - switch (placement) { - case 'right': - { - this.dom.style.transform = 'translateX(' + right + 'px)'; - this.dom.style.msTransform = 'translateX(' + right + 'px)'; - this.dom.style.width = '100%'; - widthTransition = 'width 0s ' + ease + ' ' + duration; - if (this.maskDom) { - this.maskDom.style.left = '-' + right + 'px'; - this.maskDom.style.width = 'calc(100% + ' + right + 'px)'; - } - break; - } - case 'top': - case 'bottom': - { - this.dom.style.width = 'calc(100% + ' + right + 'px)'; - this.dom.style.height = '100%'; - this.dom.style.transform = 'translateZ(0)'; - heightTransition = 'height 0s ' + ease + ' ' + duration; - break; - } - default: - break; - } - clearTimeout(this.timeout); - this.timeout = setTimeout(function () { - _this4.dom.style.transition = trannsformTransition + ',' + (heightTransition ? heightTransition + ',' : '') + widthTransition; - _this4.dom.style.transform = ''; - _this4.dom.style.msTransform = ''; - _this4.dom.style.width = ''; - _this4.dom.style.height = ''; - }); - } - domArray.forEach(function (item, i) { - if (!item) { - return; - } - (0, _utils.removeEventListener)(item, eventArray[i] || 'touchmove', i ? _this4.removeMoveHandler : _this4.removeStartHandler, _this4.passive); - }); - } - } - } - var change = this.$listeners.change; - - if (change && this.isOpenChange && this.sFirstEnter) { - change(open); - this.isOpenChange = false; - } - }, - getChildToRender: function getChildToRender(open) { - var _classnames, - _this5 = this; - - var h = this.$createElement; - var _$props2 = this.$props, - className = _$props2.className, - prefixCls = _$props2.prefixCls, - placement = _$props2.placement, - handler = _$props2.handler, - showMask = _$props2.showMask, - maskStyle = _$props2.maskStyle, - width = _$props2.width, - height = _$props2.height, - wrapStyle = _$props2.wrapStyle; - - var children = this.$slots['default']; - var wrapperClassname = (0, _classnames3['default'])(prefixCls, (_classnames = {}, (0, _defineProperty3['default'])(_classnames, prefixCls + '-' + placement, true), (0, _defineProperty3['default'])(_classnames, prefixCls + '-open', open), (0, _defineProperty3['default'])(_classnames, className, !!className), _classnames)); - var isOpenChange = this.isOpenChange; - var isHorizontal = placement === 'left' || placement === 'right'; - var placementName = 'translate' + (isHorizontal ? 'X' : 'Y'); - // 百分比与像素动画不同步,第一次打用后全用像素动画。 - // const defaultValue = !this.contentDom || !level ? '100%' : `${value}px`; - var placementPos = placement === 'left' || placement === 'top' ? '-100%' : '100%'; - var transform = open ? '' : placementName + '(' + placementPos + ')'; - if (isOpenChange === undefined || isOpenChange) { - var contentValue = this.contentDom ? this.contentDom.getBoundingClientRect()[isHorizontal ? 'width' : 'height'] : 0; - var value = (isHorizontal ? width : height) || contentValue; - this.setLevelDomTransform(open, false, placementName, value); - } - var handlerChildren = void 0; - if (handler !== false) { - var handlerDefalut = h( - 'div', - { 'class': 'drawer-handle' }, - [h('i', { 'class': 'drawer-handle-icon' })] - ); - var handlerSlot = this.handler; - - var handlerSlotVnode = handlerSlot && handlerSlot[0] || handlerDefalut; + }); + } + } +}); - var _getEvents = (0, _propsUtil.getEvents)(handlerSlotVnode), - handleIconClick = _getEvents.click; +/***/ }), - handlerChildren = (0, _vnode.cloneElement)(handlerSlotVnode, { - on: { - click: function click(e) { - handleIconClick && handleIconClick(); - _this5.onIconTouchEnd(e); - } - }, - directives: [{ - name: 'ant-ref', - value: function value(c) { - _this5.handlerdom = c; - } - }] - }); - } +/***/ "./node_modules/css-loader/index.js?!./node_modules/vue-loader/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/src/index.js?!./node_modules/vue-loader/lib/index.js?!./packages/framework/resources/components/cms/menu/MenuSave.vue?vue&type=style&index=0&lang=css&": +/*!***************************************************************************************************************************************************************************************************************************************************************************************************!*\ + !*** ./node_modules/css-loader??ref--6-1!./node_modules/vue-loader/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/src??ref--6-2!./node_modules/vue-loader/lib??vue-loader-options!./packages/framework/resources/components/cms/menu/MenuSave.vue?vue&type=style&index=0&lang=css& ***! + \***************************************************************************************************************************************************************************************************************************************************************************************************/ +/*! no static exports found */ +/***/ (function(module, exports, __webpack_require__) { - var domContProps = { - 'class': wrapperClassname, - directives: [{ - name: 'ant-ref', - value: function value(c) { - _this5.dom = c; - } - }], - on: { - transitionend: this.onWrapperTransitionEnd - }, - style: wrapStyle - }; - var directivesMaskDom = [{ - name: 'ant-ref', - value: function value(c) { - _this5.maskDom = c; - } - }]; - var directivesContentWrapper = [{ - name: 'ant-ref', - value: function value(c) { - _this5.contentWrapper = c; - } - }]; - var directivesContentDom = [{ - name: 'ant-ref', - value: function value(c) { - _this5.contentDom = c; - } - }]; - return h( - 'div', - domContProps, - [showMask && h('div', (0, _babelHelperVueJsxMergeProps2['default'])([{ - 'class': prefixCls + '-mask', - on: { - 'click': this.onMaskTouchEnd - }, +exports = module.exports = __webpack_require__(/*! ../../../../../../node_modules/css-loader/lib/css-base.js */ "./node_modules/css-loader/lib/css-base.js")(false); +// imports - style: maskStyle - }, { directives: directivesMaskDom }])), h( - 'div', - (0, _babelHelperVueJsxMergeProps2['default'])([{ - 'class': prefixCls + '-content-wrapper', - style: { - transform: transform, - msTransform: transform, - width: (0, _utils.isNumeric)(width) ? width + 'px' : width, - height: (0, _utils.isNumeric)(height) ? height + 'px' : height - } - }, { directives: directivesContentWrapper }]), - [h( - 'div', - (0, _babelHelperVueJsxMergeProps2['default'])([{ - 'class': prefixCls + '-content' - }, { directives: directivesContentDom }, { - on: { - 'touchstart': open ? this.removeStartHandler : noop, - 'touchmove': open ? this.removeMoveHandler : noop - } - }]), - [children] - ), handlerChildren] - )] - ); - }, - getOpen: function getOpen() { - return this.open !== undefined ? this.open : this.sOpen; - }, - getTouchParentScroll: function getTouchParentScroll(root, currentTarget, differX, differY) { - if (!currentTarget || currentTarget === document) { - return false; - } - // root 为 drawer-content 设定了 overflow, 判断为 root 的 parent 时结束滚动; - if (currentTarget === root.parentNode) { - return true; - } - var isY = Math.max(Math.abs(differX), Math.abs(differY)) === Math.abs(differY); - var isX = Math.max(Math.abs(differX), Math.abs(differY)) === Math.abs(differX); +// module +exports.push([module.i, "\n.vddl-list, .vddl-draggable {\n position: relative;\n}\n.vddl-list {\n min-height: 44px;\n}\n", ""]); - var scrollY = currentTarget.scrollHeight - currentTarget.clientHeight; - var scrollX = currentTarget.scrollWidth - currentTarget.clientWidth; - /** - *
- *
- *
- * 在没设定 overflow: auto 或 scroll 时,currentTarget 里获取不到 scrollTop 或 scrollLeft, - * 预先用 scrollTo 来滚动,如果取出的值跟滚动前取出不同,则 currnetTarget 被设定了 overflow; 否则就是上面这种。 - */ - var t = currentTarget.scrollTop; - var l = currentTarget.scrollLeft; - if (currentTarget.scrollTo) { - currentTarget.scrollTo(currentTarget.scrollLeft + 1, currentTarget.scrollTop + 1); - } - var currentT = currentTarget.scrollTop; - var currentL = currentTarget.scrollLeft; - if (currentTarget.scrollTo) { - currentTarget.scrollTo(currentTarget.scrollLeft - 1, currentTarget.scrollTop - 1); - } - if (isY && (!scrollY || !(currentT - t) || scrollY && (currentTarget.scrollTop >= scrollY && differY < 0 || currentTarget.scrollTop <= 0 && differY > 0)) || isX && (!scrollX || !(currentL - l) || scrollX && (currentTarget.scrollLeft >= scrollX && differX < 0 || currentTarget.scrollLeft <= 0 && differX > 0))) { - return this.getTouchParentScroll(root, currentTarget.parentNode, differX, differY); - } - return false; - }, - removeStartHandler: function removeStartHandler(e) { - if (e.touches.length > 1) { - return; - } - this.startPos = { - x: e.touches[0].clientX, - y: e.touches[0].clientY - }; - }, - removeMoveHandler: function removeMoveHandler(e) { - if (e.changedTouches.length > 1) { - return; - } - var currentTarget = e.currentTarget; - var differX = e.changedTouches[0].clientX - this.startPos.x; - var differY = e.changedTouches[0].clientY - this.startPos.y; - if (currentTarget === this.maskDom || currentTarget === this.handlerdom || currentTarget === this.contentDom && this.getTouchParentScroll(currentTarget, e.target, differX, differY)) { - e.preventDefault(); - } - }, - trnasitionEnd: function trnasitionEnd(e) { - (0, _utils.removeEventListener)(e.target, _utils.transitionEnd, this.trnasitionEnd); - e.target.style.transition = ''; - }, - defaultGetContainer: function defaultGetContainer() { - if (windowIsUndefined) { - return null; - } - var container = document.createElement('div'); - this.parent.appendChild(container); - if (this.wrapperClassName) { - container.className = this.wrapperClassName; - } - return container; - } - }, +// exports - render: function render() { - var _this6 = this; - var h = arguments[0]; - var _$props3 = this.$props, - getContainer = _$props3.getContainer, - wrapperClassName = _$props3.wrapperClassName; +/***/ }), - var open = this.getOpen(); - currentDrawer[this.drawerId] = open ? this.container : open; - var children = this.getChildToRender(this.sFirstEnter ? open : false); - if (!getContainer) { - var directives = [{ - name: 'ant-ref', - value: function value(c) { - _this6.container = c; - } - }]; - return h( - 'div', - (0, _babelHelperVueJsxMergeProps2['default'])([{ 'class': wrapperClassName }, { directives: directives }]), - [children] - ); - } - if (!this.container || !open && !this.sFirstEnter) { - return null; - } - return h(_ContainerRender2['default'], { - attrs: { - parent: this, - visible: true, - autoMount: true, - autoDestroy: false, - getComponent: function getComponent() { - return children; - }, - getContainer: this.getSelfContainer, - children: function children(_ref) { - var renderComponent = _ref.renderComponent, - removeContainer = _ref.removeContainer; +/***/ "./node_modules/style-loader/index.js!./node_modules/css-loader/index.js?!./node_modules/vue-loader/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/src/index.js?!./node_modules/vue-loader/lib/index.js?!./packages/framework/resources/components/cms/menu/MenuSave.vue?vue&type=style&index=0&lang=css&": +/*!*******************************************************************************************************************************************************************************************************************************************************************************************************************************!*\ + !*** ./node_modules/style-loader!./node_modules/css-loader??ref--6-1!./node_modules/vue-loader/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/src??ref--6-2!./node_modules/vue-loader/lib??vue-loader-options!./packages/framework/resources/components/cms/menu/MenuSave.vue?vue&type=style&index=0&lang=css& ***! + \*******************************************************************************************************************************************************************************************************************************************************************************************************************************/ +/*! no static exports found */ +/***/ (function(module, exports, __webpack_require__) { - _this6.renderComponent = renderComponent; - _this6.removeContainer = removeContainer; - return null; - } - } - }); - } -}; -exports['default'] = Drawer; +var content = __webpack_require__(/*! !../../../../../../node_modules/css-loader??ref--6-1!../../../../../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../../../../node_modules/postcss-loader/src??ref--6-2!../../../../../../node_modules/vue-loader/lib??vue-loader-options!./MenuSave.vue?vue&type=style&index=0&lang=css& */ "./node_modules/css-loader/index.js?!./node_modules/vue-loader/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/src/index.js?!./node_modules/vue-loader/lib/index.js?!./packages/framework/resources/components/cms/menu/MenuSave.vue?vue&type=style&index=0&lang=css&"); -/***/ }), +if(typeof content === 'string') content = [[module.i, content, '']]; -/***/ "./node_modules/ant-design-vue/lib/vc-drawer/src/drawerProps.js": -/*!**********************************************************************!*\ - !*** ./node_modules/ant-design-vue/lib/vc-drawer/src/drawerProps.js ***! - \**********************************************************************/ -/*! no static exports found */ -/***/ (function(module, exports, __webpack_require__) { +var transform; +var insertInto; -"use strict"; -Object.defineProperty(exports, "__esModule", { - value: true -}); +var options = {"hmr":true} -var _vueTypes = __webpack_require__(/*! ../../_util/vue-types */ "./node_modules/ant-design-vue/lib/_util/vue-types/index.js"); +options.transform = transform +options.insertInto = undefined; -var _vueTypes2 = _interopRequireDefault(_vueTypes); +var update = __webpack_require__(/*! ../../../../../../node_modules/style-loader/lib/addStyles.js */ "./node_modules/style-loader/lib/addStyles.js")(content, options); -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } +if(content.locals) module.exports = content.locals; -exports['default'] = { - wrapperClassName: _vueTypes2['default'].string, - width: _vueTypes2['default'].any, - height: _vueTypes2['default'].any, - defaultOpen: _vueTypes2['default'].bool, - firstEnter: _vueTypes2['default'].bool, - open: _vueTypes2['default'].bool, - prefixCls: _vueTypes2['default'].string, - placement: _vueTypes2['default'].string, - level: _vueTypes2['default'].oneOfType([_vueTypes2['default'].string, _vueTypes2['default'].array]), - levelMove: _vueTypes2['default'].oneOfType([_vueTypes2['default'].number, _vueTypes2['default'].func, _vueTypes2['default'].array]), - ease: _vueTypes2['default'].string, - duration: _vueTypes2['default'].string, - getContainer: _vueTypes2['default'].oneOfType([_vueTypes2['default'].string, _vueTypes2['default'].func, _vueTypes2['default'].object, _vueTypes2['default'].bool]), - handler: _vueTypes2['default'].any, - showMask: _vueTypes2['default'].bool, - maskStyle: _vueTypes2['default'].object, - className: _vueTypes2['default'].string, - wrapStyle: _vueTypes2['default'].object -}; +if(false) {} /***/ }), -/***/ "./node_modules/ant-design-vue/lib/vc-drawer/src/index.js": -/*!****************************************************************!*\ - !*** ./node_modules/ant-design-vue/lib/vc-drawer/src/index.js ***! - \****************************************************************/ -/*! no static exports found */ -/***/ (function(module, exports, __webpack_require__) { +/***/ "./packages/framework/resources/components/cms/menu/MenuSave.vue": +/*!***********************************************************************!*\ + !*** ./packages/framework/resources/components/cms/menu/MenuSave.vue ***! + \***********************************************************************/ +/*! exports provided: default */ +/***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; +__webpack_require__.r(__webpack_exports__); +/* harmony import */ var _MenuSave_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./MenuSave.vue?vue&type=script&lang=js& */ "./packages/framework/resources/components/cms/menu/MenuSave.vue?vue&type=script&lang=js&"); +/* empty/unused harmony star reexport *//* harmony import */ var _MenuSave_vue_vue_type_style_index_0_lang_css___WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./MenuSave.vue?vue&type=style&index=0&lang=css& */ "./packages/framework/resources/components/cms/menu/MenuSave.vue?vue&type=style&index=0&lang=css&"); +/* harmony import */ var _node_modules_vue_loader_lib_runtime_componentNormalizer_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js */ "./node_modules/vue-loader/lib/runtime/componentNormalizer.js"); +var render, staticRenderFns + -Object.defineProperty(exports, "__esModule", { - value: true -}); -var _Drawer = __webpack_require__(/*! ./Drawer */ "./node_modules/ant-design-vue/lib/vc-drawer/src/Drawer.js"); -var _Drawer2 = _interopRequireDefault(_Drawer); +/* normalize component */ -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } +var component = Object(_node_modules_vue_loader_lib_runtime_componentNormalizer_js__WEBPACK_IMPORTED_MODULE_2__["default"])( + _MenuSave_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0__["default"], + render, + staticRenderFns, + false, + null, + null, + null + +) -exports['default'] = _Drawer2['default']; // base in 1.7.7 -// export this package's api +/* hot reload */ +if (false) { var api; } +component.options.__file = "packages/framework/resources/components/cms/menu/MenuSave.vue" +/* harmony default export */ __webpack_exports__["default"] = (component.exports); /***/ }), -/***/ "./node_modules/ant-design-vue/lib/vc-drawer/src/utils.js": -/*!****************************************************************!*\ - !*** ./node_modules/ant-design-vue/lib/vc-drawer/src/utils.js ***! - \****************************************************************/ -/*! no static exports found */ -/***/ (function(module, exports, __webpack_require__) { +/***/ "./packages/framework/resources/components/cms/menu/MenuSave.vue?vue&type=script&lang=js&": +/*!************************************************************************************************!*\ + !*** ./packages/framework/resources/components/cms/menu/MenuSave.vue?vue&type=script&lang=js& ***! + \************************************************************************************************/ +/*! exports provided: default */ +/***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; +__webpack_require__.r(__webpack_exports__); +/* harmony import */ var _node_modules_babel_loader_lib_index_js_ref_4_0_node_modules_vue_loader_lib_index_js_vue_loader_options_MenuSave_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! -!../../../../../../node_modules/babel-loader/lib??ref--4-0!../../../../../../node_modules/vue-loader/lib??vue-loader-options!./MenuSave.vue?vue&type=script&lang=js& */ "./node_modules/babel-loader/lib/index.js?!./node_modules/vue-loader/lib/index.js?!./packages/framework/resources/components/cms/menu/MenuSave.vue?vue&type=script&lang=js&"); +/* empty/unused harmony star reexport */ /* harmony default export */ __webpack_exports__["default"] = (_node_modules_babel_loader_lib_index_js_ref_4_0_node_modules_vue_loader_lib_index_js_vue_loader_options_MenuSave_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0__["default"]); +/***/ }), -Object.defineProperty(exports, "__esModule", { - value: true -}); -exports.dataToArray = dataToArray; -exports.addEventListener = addEventListener; -exports.removeEventListener = removeEventListener; -exports.transformArguments = transformArguments; -function dataToArray(vars) { - if (Array.isArray(vars)) { - return vars; - } - return [vars]; -} -var transitionEndObject = { - transition: 'transitionend', - WebkitTransition: 'webkitTransitionEnd', - MozTransition: 'transitionend', - OTransition: 'oTransitionEnd otransitionend' -}; -var transitionStr = exports.transitionStr = Object.keys(transitionEndObject).filter(function (key) { - if (typeof document === 'undefined') { - return false; - } - var html = document.getElementsByTagName('html')[0]; - return key in (html ? html.style : {}); -})[0]; -var transitionEnd = exports.transitionEnd = transitionEndObject[transitionStr]; - -function addEventListener(target, eventType, callback, options) { - if (target.addEventListener) { - target.addEventListener(eventType, callback, options); - } else if (target.attachEvent) { - target.attachEvent('on' + eventType, callback); - } -} - -function removeEventListener(target, eventType, callback, options) { - if (target.removeEventListener) { - target.removeEventListener(eventType, callback, options); - } else if (target.attachEvent) { - target.detachEvent('on' + eventType, callback); - } -} - -function transformArguments(arg, cb) { - var result = void 0; - if (typeof arg === 'function') { - result = arg(cb); - } else { - result = arg; - } - if (Array.isArray(result)) { - if (result.length === 2) { - return result; - } - return [result[0], result[1]]; - } - return [result]; -} +/***/ "./packages/framework/resources/components/cms/menu/MenuSave.vue?vue&type=style&index=0&lang=css&": +/*!********************************************************************************************************!*\ + !*** ./packages/framework/resources/components/cms/menu/MenuSave.vue?vue&type=style&index=0&lang=css& ***! + \********************************************************************************************************/ +/*! no static exports found */ +/***/ (function(module, __webpack_exports__, __webpack_require__) { -var isNumeric = exports.isNumeric = function isNumeric(value) { - return !isNaN(parseFloat(value)) && isFinite(value); // eslint-disable-line -}; +"use strict"; +__webpack_require__.r(__webpack_exports__); +/* harmony import */ var _node_modules_style_loader_index_js_node_modules_css_loader_index_js_ref_6_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_6_2_node_modules_vue_loader_lib_index_js_vue_loader_options_MenuSave_vue_vue_type_style_index_0_lang_css___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! -!../../../../../../node_modules/style-loader!../../../../../../node_modules/css-loader??ref--6-1!../../../../../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../../../../node_modules/postcss-loader/src??ref--6-2!../../../../../../node_modules/vue-loader/lib??vue-loader-options!./MenuSave.vue?vue&type=style&index=0&lang=css& */ "./node_modules/style-loader/index.js!./node_modules/css-loader/index.js?!./node_modules/vue-loader/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/src/index.js?!./node_modules/vue-loader/lib/index.js?!./packages/framework/resources/components/cms/menu/MenuSave.vue?vue&type=style&index=0&lang=css&"); +/* harmony import */ var _node_modules_style_loader_index_js_node_modules_css_loader_index_js_ref_6_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_6_2_node_modules_vue_loader_lib_index_js_vue_loader_options_MenuSave_vue_vue_type_style_index_0_lang_css___WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_node_modules_style_loader_index_js_node_modules_css_loader_index_js_ref_6_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_6_2_node_modules_vue_loader_lib_index_js_vue_loader_options_MenuSave_vue_vue_type_style_index_0_lang_css___WEBPACK_IMPORTED_MODULE_0__); +/* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _node_modules_style_loader_index_js_node_modules_css_loader_index_js_ref_6_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_6_2_node_modules_vue_loader_lib_index_js_vue_loader_options_MenuSave_vue_vue_type_style_index_0_lang_css___WEBPACK_IMPORTED_MODULE_0__) if(__WEBPACK_IMPORT_KEY__ !== 'default') (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _node_modules_style_loader_index_js_node_modules_css_loader_index_js_ref_6_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_6_2_node_modules_vue_loader_lib_index_js_vue_loader_options_MenuSave_vue_vue_type_style_index_0_lang_css___WEBPACK_IMPORTED_MODULE_0__[key]; }) }(__WEBPACK_IMPORT_KEY__)); + /* harmony default export */ __webpack_exports__["default"] = (_node_modules_style_loader_index_js_node_modules_css_loader_index_js_ref_6_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_6_2_node_modules_vue_loader_lib_index_js_vue_loader_options_MenuSave_vue_vue_type_style_index_0_lang_css___WEBPACK_IMPORTED_MODULE_0___default.a); /***/ }) diff --git a/public/avored-admin/js/chunk/8.js b/public/avored-admin/js/chunk/8.js index 0e1be551b..1210fa372 100644 --- a/public/avored-admin/js/chunk/8.js +++ b/public/avored-admin/js/chunk/8.js @@ -1,8 +1,8 @@ (window["webpackJsonp"] = window["webpackJsonp"] || []).push([[8],{ -/***/ "./node_modules/ant-design-vue/lib/switch/index.js": +/***/ "./node_modules/ant-design-vue/lib/drawer/index.js": /*!*********************************************************!*\ - !*** ./node_modules/ant-design-vue/lib/switch/index.js ***! + !*** ./node_modules/ant-design-vue/lib/drawer/index.js ***! \*********************************************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { @@ -14,117 +14,306 @@ Object.defineProperty(exports, "__esModule", { value: true }); -var _extends2 = __webpack_require__(/*! babel-runtime/helpers/extends */ "./node_modules/babel-runtime/helpers/extends.js"); - -var _extends3 = _interopRequireDefault(_extends2); - var _defineProperty2 = __webpack_require__(/*! babel-runtime/helpers/defineProperty */ "./node_modules/babel-runtime/helpers/defineProperty.js"); var _defineProperty3 = _interopRequireDefault(_defineProperty2); +var _extends2 = __webpack_require__(/*! babel-runtime/helpers/extends */ "./node_modules/babel-runtime/helpers/extends.js"); + +var _extends3 = _interopRequireDefault(_extends2); + var _objectWithoutProperties2 = __webpack_require__(/*! babel-runtime/helpers/objectWithoutProperties */ "./node_modules/babel-runtime/helpers/objectWithoutProperties.js"); var _objectWithoutProperties3 = _interopRequireDefault(_objectWithoutProperties2); -var _vueTypes = __webpack_require__(/*! ../_util/vue-types */ "./node_modules/ant-design-vue/lib/_util/vue-types/index.js"); +var _classnames2 = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js"); -var _vueTypes2 = _interopRequireDefault(_vueTypes); +var _classnames3 = _interopRequireDefault(_classnames2); -var _propsUtil = __webpack_require__(/*! ../_util/props-util */ "./node_modules/ant-design-vue/lib/_util/props-util.js"); +var _src = __webpack_require__(/*! ../vc-drawer/src */ "./node_modules/ant-design-vue/lib/vc-drawer/src/index.js"); -var _vcSwitch = __webpack_require__(/*! ../vc-switch */ "./node_modules/ant-design-vue/lib/vc-switch/index.js"); +var _src2 = _interopRequireDefault(_src); -var _vcSwitch2 = _interopRequireDefault(_vcSwitch); +var _vueTypes = __webpack_require__(/*! ../_util/vue-types */ "./node_modules/ant-design-vue/lib/_util/vue-types/index.js"); -var _wave = __webpack_require__(/*! ../_util/wave */ "./node_modules/ant-design-vue/lib/_util/wave.js"); +var _vueTypes2 = _interopRequireDefault(_vueTypes); -var _wave2 = _interopRequireDefault(_wave); +var _BaseMixin = __webpack_require__(/*! ../_util/BaseMixin */ "./node_modules/ant-design-vue/lib/_util/BaseMixin.js"); + +var _BaseMixin2 = _interopRequireDefault(_BaseMixin); var _icon = __webpack_require__(/*! ../icon */ "./node_modules/ant-design-vue/lib/icon/index.js"); var _icon2 = _interopRequireDefault(_icon); +var _propsUtil = __webpack_require__(/*! ../_util/props-util */ "./node_modules/ant-design-vue/lib/_util/props-util.js"); + +var _configProvider = __webpack_require__(/*! ../config-provider */ "./node_modules/ant-design-vue/lib/config-provider/index.js"); + +var _base = __webpack_require__(/*! ../base */ "./node_modules/ant-design-vue/lib/base/index.js"); + +var _base2 = _interopRequireDefault(_base); + function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } -var Switch = { - name: 'ASwitch', - model: { - prop: 'checked', - event: 'change' - }, +var Drawer = { + name: 'ADrawer', props: { - prefixCls: _vueTypes2['default'].string.def('ant-switch'), - // size=default and size=large are the same - size: _vueTypes2['default'].oneOf(['small', 'default', 'large']), - disabled: _vueTypes2['default'].bool, - checkedChildren: _vueTypes2['default'].any, - unCheckedChildren: _vueTypes2['default'].any, - tabIndex: _vueTypes2['default'].number, - checked: _vueTypes2['default'].bool, - defaultChecked: _vueTypes2['default'].bool, - autoFocus: _vueTypes2['default'].bool, - loading: _vueTypes2['default'].bool + closable: _vueTypes2['default'].bool.def(true), + destroyOnClose: _vueTypes2['default'].bool, + getContainer: _vueTypes2['default'].any, + maskClosable: _vueTypes2['default'].bool.def(true), + mask: _vueTypes2['default'].bool.def(true), + maskStyle: _vueTypes2['default'].object, + wrapStyle: _vueTypes2['default'].object, + bodyStyle: _vueTypes2['default'].object, + title: _vueTypes2['default'].any, + visible: _vueTypes2['default'].bool, + width: _vueTypes2['default'].oneOfType([_vueTypes2['default'].string, _vueTypes2['default'].number]).def(256), + height: _vueTypes2['default'].oneOfType([_vueTypes2['default'].string, _vueTypes2['default'].number]).def(256), + zIndex: _vueTypes2['default'].number, + prefixCls: _vueTypes2['default'].string, + placement: _vueTypes2['default'].oneOf(['top', 'right', 'bottom', 'left']).def('right'), + level: _vueTypes2['default'].any.def(null), + wrapClassName: _vueTypes2['default'].string, // not use class like react, vue will add class to root dom + handle: _vueTypes2['default'].any }, + mixins: [_BaseMixin2['default']], + data: function data() { + this.destroyClose = false; + this.preVisible = this.$props.visible; + return { + _push: false + }; + }, + + inject: { + parentDrawer: { + 'default': function _default() { + return null; + } + }, + configProvider: { 'default': function _default() { + return _configProvider.ConfigConsumerProps; + } } + }, + provide: function provide() { + return { + parentDrawer: this + }; + }, + updated: function updated() { + var _this = this; + + this.$nextTick(function () { + if (_this.preVisible !== _this.visible && _this.parentDrawer) { + if (_this.visible) { + _this.parentDrawer.push(); + } else { + _this.parentDrawer.pull(); + } + } + _this.preVisible = _this.visible; + }); + }, + methods: { - focus: function focus() { - this.$refs.refSwitchNode.focus(); + close: function close(e) { + if (this.visible !== undefined) { + this.$emit('close', e); + return; + } + }, + onMaskClick: function onMaskClick(e) { + if (!this.maskClosable) { + return; + } + this.close(e); + }, + push: function push() { + this.setState({ + _push: true + }); + }, + pull: function pull() { + this.setState({ + _push: false + }); + }, + onDestroyTransitionEnd: function onDestroyTransitionEnd() { + var isDestroyOnClose = this.getDestroyOnClose(); + if (!isDestroyOnClose) { + return; + } + if (!this.visible) { + this.destroyClose = true; + this.$forceUpdate(); + } + }, + getDestroyOnClose: function getDestroyOnClose() { + return this.destroyOnClose && !this.visible; + }, + + // get drawar push width or height + getPushTransform: function getPushTransform(placement) { + if (placement === 'left' || placement === 'right') { + return 'translateX(' + (placement === 'left' ? 180 : -180) + 'px)'; + } + if (placement === 'top' || placement === 'bottom') { + return 'translateY(' + (placement === 'top' ? 180 : -180) + 'px)'; + } }, - blur: function blur() { - this.$refs.refSwitchNode.blur(); + getRcDrawerStyle: function getRcDrawerStyle() { + var _$props = this.$props, + zIndex = _$props.zIndex, + placement = _$props.placement; + var push = this.$data._push; + + return { + zIndex: zIndex, + transform: push ? this.getPushTransform(placement) : undefined + }; + }, + renderHeader: function renderHeader(prefixCls) { + var h = this.$createElement; + var closable = this.$props.closable; + + var title = (0, _propsUtil.getComponentFromProp)(this, 'title'); + if (!title && !closable) { + return null; + } + + var headerClassName = title ? prefixCls + '-header' : prefixCls + '-header-no-title'; + return h( + 'div', + { 'class': headerClassName }, + [title && h( + 'div', + { 'class': prefixCls + '-title' }, + [title] + ), closable ? this.renderCloseIcon(prefixCls) : null] + ); + }, + renderCloseIcon: function renderCloseIcon(prefixCls) { + var h = this.$createElement; + + return h( + 'button', + { key: 'closer', on: { + 'click': this.close + }, + attrs: { 'aria-label': 'Close' }, + 'class': prefixCls + '-close' }, + [h(_icon2['default'], { + attrs: { type: 'close' } + })] + ); + }, + + // render drawer body dom + renderBody: function renderBody(prefixCls) { + var h = this.$createElement; + + if (this.destroyClose && !this.visible) { + return null; + } + this.destroyClose = false; + var _$props2 = this.$props, + placement = _$props2.placement, + bodyStyle = _$props2.bodyStyle; + + + var containerStyle = placement === 'left' || placement === 'right' ? { + overflow: 'auto', + height: '100%' + } : {}; + + var isDestroyOnClose = this.getDestroyOnClose(); + if (isDestroyOnClose) { + // Increase the opacity transition, delete children after closing. + containerStyle.opacity = 0; + containerStyle.transition = 'opacity .3s'; + } + + return h( + 'div', + { + 'class': prefixCls + '-wrapper-body', + style: containerStyle, + on: { + 'transitionend': this.onDestroyTransitionEnd + } + }, + [this.renderHeader(prefixCls), h( + 'div', + { key: 'body', 'class': prefixCls + '-body', style: bodyStyle }, + [this.$slots['default']] + )] + ); } }, - render: function render() { - var _classes; + var _classnames; var h = arguments[0]; - var _getOptionProps = (0, _propsUtil.getOptionProps)(this), - prefixCls = _getOptionProps.prefixCls, - size = _getOptionProps.size, - loading = _getOptionProps.loading, - disabled = _getOptionProps.disabled, - restProps = (0, _objectWithoutProperties3['default'])(_getOptionProps, ['prefixCls', 'size', 'loading', 'disabled']); - - var classes = (_classes = {}, (0, _defineProperty3['default'])(_classes, prefixCls + '-small', size === 'small'), (0, _defineProperty3['default'])(_classes, prefixCls + '-loading', loading), _classes); - var loadingIcon = loading ? h(_icon2['default'], { - attrs: { type: 'loading' }, - 'class': prefixCls + '-loading-icon' }) : null; - var switchProps = { - props: (0, _extends3['default'])({}, restProps, { + var props = (0, _propsUtil.getOptionProps)(this); + var customizePrefixCls = props.prefixCls, + width = props.width, + height = props.height, + visible = props.visible, + placement = props.placement, + wrapClassName = props.wrapClassName, + rest = (0, _objectWithoutProperties3['default'])(props, ['prefixCls', 'width', 'height', 'visible', 'placement', 'wrapClassName']); + + var haveMask = rest.mask ? '' : 'no-mask'; + var offsetStyle = {}; + if (placement === 'left' || placement === 'right') { + offsetStyle.width = typeof width === 'number' ? width + 'px' : width; + } else { + offsetStyle.height = typeof height === 'number' ? height + 'px' : height; + } + var handler = (0, _propsUtil.getComponentFromProp)(this, 'handle') || false; + var getPrefixCls = this.configProvider.getPrefixCls; + var prefixCls = getPrefixCls('drawer', customizePrefixCls); + + var vcDrawerProps = { + props: (0, _extends3['default'])({}, rest, { + handler: handler + }, offsetStyle, { prefixCls: prefixCls, - loadingIcon: loadingIcon, - checkedChildren: (0, _propsUtil.getComponentFromProp)(this, 'checkedChildren'), - unCheckedChildren: (0, _propsUtil.getComponentFromProp)(this, 'unCheckedChildren'), - disabled: disabled || loading + open: visible, + showMask: props.mask, + placement: placement, + className: (0, _classnames3['default'])((_classnames = {}, (0, _defineProperty3['default'])(_classnames, wrapClassName, !!wrapClassName), (0, _defineProperty3['default'])(_classnames, haveMask, !!haveMask), _classnames)), + wrapStyle: this.getRcDrawerStyle() }), - on: this.$listeners, - 'class': classes, - ref: 'refSwitchNode' + on: (0, _extends3['default'])({ + maskClick: this.onMaskClick + }, this.$listeners) }; return h( - _wave2['default'], - { - attrs: { insertExtraNode: true } - }, - [h(_vcSwitch2['default'], switchProps)] + _src2['default'], + vcDrawerProps, + [this.renderBody(prefixCls)] ); } }; /* istanbul ignore next */ -Switch.install = function (Vue) { - Vue.component(Switch.name, Switch); +Drawer.install = function (Vue) { + Vue.use(_base2['default']); + Vue.component(Drawer.name, Drawer); }; -exports['default'] = Switch; +exports['default'] = Drawer; /***/ }), -/***/ "./node_modules/ant-design-vue/lib/vc-switch/PropTypes.js": -/*!****************************************************************!*\ - !*** ./node_modules/ant-design-vue/lib/vc-switch/PropTypes.js ***! - \****************************************************************/ +/***/ "./node_modules/ant-design-vue/lib/vc-drawer/src/Drawer.js": +/*!*****************************************************************!*\ + !*** ./node_modules/ant-design-vue/lib/vc-drawer/src/Drawer.js ***! + \*****************************************************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { @@ -134,195 +323,716 @@ exports['default'] = Switch; Object.defineProperty(exports, "__esModule", { value: true }); -exports.switchPropTypes = undefined; -var _vueTypes = __webpack_require__(/*! ../_util/vue-types */ "./node_modules/ant-design-vue/lib/_util/vue-types/index.js"); +var _babelHelperVueJsxMergeProps = __webpack_require__(/*! babel-helper-vue-jsx-merge-props */ "./node_modules/babel-helper-vue-jsx-merge-props/index.js"); -var _vueTypes2 = _interopRequireDefault(_vueTypes); +var _babelHelperVueJsxMergeProps2 = _interopRequireDefault(_babelHelperVueJsxMergeProps); -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } +var _defineProperty2 = __webpack_require__(/*! babel-runtime/helpers/defineProperty */ "./node_modules/babel-runtime/helpers/defineProperty.js"); -var switchPropTypes = exports.switchPropTypes = { - prefixCls: _vueTypes2['default'].string, - disabled: _vueTypes2['default'].bool.def(false), - checkedChildren: _vueTypes2['default'].any, - unCheckedChildren: _vueTypes2['default'].any, - // onChange: PropTypes.func, - // onMouseUp: PropTypes.func, - // onClick: PropTypes.func, - tabIndex: _vueTypes2['default'].number, - checked: _vueTypes2['default'].bool.def(false), - defaultChecked: _vueTypes2['default'].bool.def(false), - autoFocus: _vueTypes2['default'].bool.def(false), - loadingIcon: _vueTypes2['default'].any -}; +var _defineProperty3 = _interopRequireDefault(_defineProperty2); -/***/ }), +var _typeof2 = __webpack_require__(/*! babel-runtime/helpers/typeof */ "./node_modules/babel-runtime/helpers/typeof.js"); -/***/ "./node_modules/ant-design-vue/lib/vc-switch/Switch.js": -/*!*************************************************************!*\ - !*** ./node_modules/ant-design-vue/lib/vc-switch/Switch.js ***! - \*************************************************************/ -/*! no static exports found */ -/***/ (function(module, exports, __webpack_require__) { +var _typeof3 = _interopRequireDefault(_typeof2); -"use strict"; +var _extends2 = __webpack_require__(/*! babel-runtime/helpers/extends */ "./node_modules/babel-runtime/helpers/extends.js"); +var _extends3 = _interopRequireDefault(_extends2); -Object.defineProperty(exports, "__esModule", { - value: true -}); +var _classnames2 = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js"); -var _defineProperty2 = __webpack_require__(/*! babel-runtime/helpers/defineProperty */ "./node_modules/babel-runtime/helpers/defineProperty.js"); +var _classnames3 = _interopRequireDefault(_classnames2); -var _defineProperty3 = _interopRequireDefault(_defineProperty2); +var _vue = __webpack_require__(/*! vue */ "./node_modules/vue/dist/vue.common.js"); -var _objectWithoutProperties2 = __webpack_require__(/*! babel-runtime/helpers/objectWithoutProperties */ "./node_modules/babel-runtime/helpers/objectWithoutProperties.js"); +var _vue2 = _interopRequireDefault(_vue); -var _objectWithoutProperties3 = _interopRequireDefault(_objectWithoutProperties2); +var _vueRef = __webpack_require__(/*! vue-ref */ "./node_modules/vue-ref/index.js"); -var _extends2 = __webpack_require__(/*! babel-runtime/helpers/extends */ "./node_modules/babel-runtime/helpers/extends.js"); +var _vueRef2 = _interopRequireDefault(_vueRef); -var _extends3 = _interopRequireDefault(_extends2); +var _BaseMixin = __webpack_require__(/*! ../../_util/BaseMixin */ "./node_modules/ant-design-vue/lib/_util/BaseMixin.js"); -var _PropTypes = __webpack_require__(/*! ./PropTypes */ "./node_modules/ant-design-vue/lib/vc-switch/PropTypes.js"); +var _BaseMixin2 = _interopRequireDefault(_BaseMixin); -var _BaseMixin = __webpack_require__(/*! ../_util/BaseMixin */ "./node_modules/ant-design-vue/lib/_util/BaseMixin.js"); +var _propsUtil = __webpack_require__(/*! ../../_util/props-util */ "./node_modules/ant-design-vue/lib/_util/props-util.js"); -var _BaseMixin2 = _interopRequireDefault(_BaseMixin); +var _vnode = __webpack_require__(/*! ../../_util/vnode */ "./node_modules/ant-design-vue/lib/_util/vnode.js"); -var _propsUtil = __webpack_require__(/*! ../_util/props-util */ "./node_modules/ant-design-vue/lib/_util/props-util.js"); +var _ContainerRender = __webpack_require__(/*! ../../_util/ContainerRender */ "./node_modules/ant-design-vue/lib/_util/ContainerRender.js"); + +var _ContainerRender2 = _interopRequireDefault(_ContainerRender); + +var _getScrollBarSize = __webpack_require__(/*! ../../_util/getScrollBarSize */ "./node_modules/ant-design-vue/lib/_util/getScrollBarSize.js"); + +var _getScrollBarSize2 = _interopRequireDefault(_getScrollBarSize); + +var _drawerProps = __webpack_require__(/*! ./drawerProps */ "./node_modules/ant-design-vue/lib/vc-drawer/src/drawerProps.js"); + +var _drawerProps2 = _interopRequireDefault(_drawerProps); + +var _utils = __webpack_require__(/*! ./utils */ "./node_modules/ant-design-vue/lib/vc-drawer/src/utils.js"); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } -// function noop () { -// } -exports['default'] = { - name: 'VcSwitch', +function noop() {} + +var currentDrawer = {}; +var windowIsUndefined = !(typeof window !== 'undefined' && window.document && window.document.createElement); + +_vue2['default'].use(_vueRef2['default'], { name: 'ant-ref' }); +var Drawer = { mixins: [_BaseMixin2['default']], - model: { - prop: 'checked', - event: 'change' - }, - props: (0, _extends3['default'])({}, _PropTypes.switchPropTypes, { - prefixCls: _PropTypes.switchPropTypes.prefixCls.def('rc-switch') - // onChange: switchPropTypes.onChange.def(noop), - // onClick: switchPropTypes.onClick.def(noop), + props: (0, _propsUtil.initDefaultProps)(_drawerProps2['default'], { + prefixCls: 'drawer', + placement: 'left', + getContainer: 'body', + level: 'all', + duration: '.3s', + ease: 'cubic-bezier(0.78, 0.14, 0.15, 0.86)', + firstEnter: false, // 记录首次进入. + showMask: true, + handler: true, + maskStyle: {}, + wrapperClassName: '', + className: '' }), data: function data() { - var checked = false; - if ((0, _propsUtil.hasProp)(this, 'checked')) { - checked = !!this.checked; - } else { - checked = !!this.defaultChecked; - } + this.levelDom = []; + this.contentDom = null; + this.maskDom = null; + this.handlerdom = null; + this.mousePos = null; + this.sFirstEnter = this.firstEnter; + this.timeout = null; + this.children = null; + this.drawerId = Number((Date.now() + Math.random()).toString().replace('.', Math.round(Math.random() * 9))).toString(16); + var open = this.open !== undefined ? this.open : !!this.defaultOpen; + currentDrawer[this.drawerId] = open; + this.orignalOpen = this.open; + this.preProps = (0, _extends3['default'])({}, this.$props); return { - stateChecked: checked + sOpen: open }; }, + mounted: function mounted() { + var _this = this; + + this.$nextTick(function () { + if (!windowIsUndefined) { + var passiveSupported = false; + window.addEventListener('test', null, Object.defineProperty({}, 'passive', { + get: function get() { + passiveSupported = true; + return null; + } + })); + _this.passive = passiveSupported ? { passive: false } : false; + } + var open = _this.getOpen(); + if (_this.handler || open || _this.sFirstEnter) { + _this.getDefault(_this.$props); + if (open) { + _this.isOpenChange = true; + } + _this.$forceUpdate(); + } + }); + }, watch: { - checked: function checked(val) { - this.stateChecked = val; + open: function (_open) { + function open(_x) { + return _open.apply(this, arguments); + } + + open.toString = function () { + return _open.toString(); + }; + + return open; + }(function (val) { + if (val !== undefined && val !== this.preProps.open) { + this.isOpenChange = true; + // 没渲染 dom 时,获取默认数据; + if (!this.container) { + this.getDefault(this.$props); + } + this.setState({ + sOpen: open + }); + } + this.preProps.open = val; + }), + placement: function placement(val) { + if (val !== this.preProps.placement) { + // test 的 bug, 有动画过场,删除 dom + this.contentDom = null; + } + this.preProps.placement = val; + }, + level: function level(val) { + if (this.preProps.level !== val) { + this.getParentAndLevelDom(this.$props); + } + this.preProps.level = val; } }, - mounted: function mounted() { - var _this = this; + updated: function updated() { + var _this2 = this; this.$nextTick(function () { - var autoFocus = _this.autoFocus, - disabled = _this.disabled; - - if (autoFocus && !disabled) { - _this.focus(); + // dom 没渲染时,重走一遍。 + if (!_this2.sFirstEnter && _this2.container) { + _this2.$forceUpdate(); + _this2.sFirstEnter = true; } }); }, + beforeDestroy: function beforeDestroy() { + delete currentDrawer[this.drawerId]; + delete this.isOpenChange; + if (this.container) { + if (this.sOpen) { + this.setLevelDomTransform(false, true); + } + document.body.style.overflow = ''; + // 拦不住。。直接删除; + if (this.getSelfContainer) { + this.container.parentNode.removeChild(this.container); + } + } + this.sFirstEnter = false; + clearTimeout(this.timeout); + // 需要 didmount 后也会渲染,直接 unmount 将不会渲染,加上判断. + if (this.renderComponent) { + this.renderComponent({ + afterClose: this.removeContainer, + onClose: function onClose() {}, + + visible: false + }); + } + }, methods: { - setChecked: function setChecked(checked) { - if (this.disabled) { + onMaskTouchEnd: function onMaskTouchEnd(e) { + this.$emit('maskClick', e); + this.onTouchEnd(e, true); + }, + onIconTouchEnd: function onIconTouchEnd(e) { + this.$emit('handleClick', e); + this.onTouchEnd(e); + }, + onTouchEnd: function onTouchEnd(e, close) { + if (this.open !== undefined) { return; } - if (!(0, _propsUtil.hasProp)(this, 'checked')) { - this.stateChecked = checked; + var open = close || this.sOpen; + this.isOpenChange = true; + this.setState({ + sOpen: !open + }); + }, + onWrapperTransitionEnd: function onWrapperTransitionEnd(e) { + if (e.target === this.contentWrapper) { + this.dom.style.transition = ''; + if (!this.sOpen && this.getCurrentDrawerSome()) { + document.body.style.overflowX = ''; + if (this.maskDom) { + this.maskDom.style.left = ''; + this.maskDom.style.width = ''; + } + } + } + }, + getDefault: function getDefault(props) { + this.getParentAndLevelDom(props); + if (props.getContainer || props.parent) { + this.container = this.defaultGetContainer(); } - this.$emit('change', checked); }, - toggle: function toggle() { - var checked = !this.stateChecked; - this.setChecked(checked); - this.$emit('click', checked); + getCurrentDrawerSome: function getCurrentDrawerSome() { + return !Object.keys(currentDrawer).some(function (key) { + return currentDrawer[key]; + }); + }, + getSelfContainer: function getSelfContainer() { + return this.container; }, - handleKeyDown: function handleKeyDown(e) { - if (e.keyCode === 37) { - // Left - this.setChecked(false); - } else if (e.keyCode === 39) { - // Right - this.setChecked(true); + getParentAndLevelDom: function getParentAndLevelDom(props) { + var _this3 = this; + + if (windowIsUndefined) { + return; + } + var level = props.level, + getContainer = props.getContainer; + + this.levelDom = []; + if (getContainer) { + if (typeof getContainer === 'string') { + var dom = document.querySelectorAll(getContainer)[0]; + this.parent = dom; + } + if (typeof getContainer === 'function') { + this.parent = getContainer(); + } + if ((typeof getContainer === 'undefined' ? 'undefined' : (0, _typeof3['default'])(getContainer)) === 'object' && getContainer instanceof window.HTMLElement) { + this.parent = getContainer; + } } + if (!getContainer && this.container) { + this.parent = this.container.parentNode; + } + if (level === 'all') { + var children = Array.prototype.slice.call(this.parent.children); + children.forEach(function (child) { + if (child.nodeName !== 'SCRIPT' && child.nodeName !== 'STYLE' && child.nodeName !== 'LINK' && child !== _this3.container) { + _this3.levelDom.push(child); + } + }); + } else if (level) { + (0, _utils.dataToArray)(level).forEach(function (key) { + document.querySelectorAll(key).forEach(function (item) { + _this3.levelDom.push(item); + }); + }); + } + }, + setLevelDomTransform: function setLevelDomTransform(open, openTransition, placementName, value) { + var _this4 = this; + + var _$props = this.$props, + placement = _$props.placement, + levelMove = _$props.levelMove, + duration = _$props.duration, + ease = _$props.ease, + getContainer = _$props.getContainer; + + if (!windowIsUndefined) { + this.levelDom.forEach(function (dom) { + if (_this4.isOpenChange || openTransition) { + /* eslint no-param-reassign: "error" */ + dom.style.transition = 'transform ' + duration + ' ' + ease; + (0, _utils.addEventListener)(dom, _utils.transitionEnd, _this4.trnasitionEnd); + var levelValue = open ? value : 0; + if (levelMove) { + var $levelMove = (0, _utils.transformArguments)(levelMove, { target: dom, open: open }); + levelValue = open ? $levelMove[0] : $levelMove[1] || 0; + } + var $value = typeof levelValue === 'number' ? levelValue + 'px' : levelValue; + var placementPos = placement === 'left' || placement === 'top' ? $value : '-' + $value; + dom.style.transform = levelValue ? placementName + '(' + placementPos + ')' : ''; + dom.style.msTransform = levelValue ? placementName + '(' + placementPos + ')' : ''; + } + }); + // 处理 body 滚动 + if (getContainer === 'body') { + var eventArray = ['touchstart']; + var domArray = [document.body, this.maskDom, this.handlerdom, this.contentDom]; + var right = document.body.scrollHeight > (window.innerHeight || document.documentElement.clientHeight) && window.innerWidth > document.body.offsetWidth ? (0, _getScrollBarSize2['default'])(1) : 0; + var widthTransition = 'width ' + duration + ' ' + ease; + var trannsformTransition = 'transform ' + duration + ' ' + ease; + if (open && document.body.style.overflow !== 'hidden') { + document.body.style.overflow = 'hidden'; + if (right) { + document.body.style.position = 'relative'; + document.body.style.width = 'calc(100% - ' + right + 'px)'; + this.dom.style.transition = 'none'; + switch (placement) { + case 'right': + this.dom.style.transform = 'translateX(-' + right + 'px)'; + this.dom.style.msTransform = 'translateX(-' + right + 'px)'; + break; + case 'top': + case 'bottom': + this.dom.style.width = 'calc(100% - ' + right + 'px)'; + this.dom.style.transform = 'translateZ(0)'; + break; + default: + break; + } + clearTimeout(this.timeout); + this.timeout = setTimeout(function () { + _this4.dom.style.transition = trannsformTransition + ',' + widthTransition; + _this4.dom.style.width = ''; + _this4.dom.style.transform = ''; + _this4.dom.style.msTransform = ''; + }); + } + // 手机禁滚 + domArray.forEach(function (item, i) { + if (!item) { + return; + } + (0, _utils.addEventListener)(item, eventArray[i] || 'touchmove', i ? _this4.removeMoveHandler : _this4.removeStartHandler, _this4.passive); + }); + } else if (this.getCurrentDrawerSome()) { + document.body.style.overflow = ''; + if ((this.isOpenChange || openTransition) && right) { + document.body.style.position = ''; + document.body.style.width = ''; + if (_utils.transitionStr) { + document.body.style.overflowX = 'hidden'; + } + this.dom.style.transition = 'none'; + var heightTransition = void 0; + switch (placement) { + case 'right': + { + this.dom.style.transform = 'translateX(' + right + 'px)'; + this.dom.style.msTransform = 'translateX(' + right + 'px)'; + this.dom.style.width = '100%'; + widthTransition = 'width 0s ' + ease + ' ' + duration; + if (this.maskDom) { + this.maskDom.style.left = '-' + right + 'px'; + this.maskDom.style.width = 'calc(100% + ' + right + 'px)'; + } + break; + } + case 'top': + case 'bottom': + { + this.dom.style.width = 'calc(100% + ' + right + 'px)'; + this.dom.style.height = '100%'; + this.dom.style.transform = 'translateZ(0)'; + heightTransition = 'height 0s ' + ease + ' ' + duration; + break; + } + default: + break; + } + clearTimeout(this.timeout); + this.timeout = setTimeout(function () { + _this4.dom.style.transition = trannsformTransition + ',' + (heightTransition ? heightTransition + ',' : '') + widthTransition; + _this4.dom.style.transform = ''; + _this4.dom.style.msTransform = ''; + _this4.dom.style.width = ''; + _this4.dom.style.height = ''; + }); + } + domArray.forEach(function (item, i) { + if (!item) { + return; + } + (0, _utils.removeEventListener)(item, eventArray[i] || 'touchmove', i ? _this4.removeMoveHandler : _this4.removeStartHandler, _this4.passive); + }); + } + } + } + var change = this.$listeners.change; + + if (change && this.isOpenChange && this.sFirstEnter) { + change(open); + this.isOpenChange = false; + } + }, + getChildToRender: function getChildToRender(open) { + var _classnames, + _this5 = this; + + var h = this.$createElement; + var _$props2 = this.$props, + className = _$props2.className, + prefixCls = _$props2.prefixCls, + placement = _$props2.placement, + handler = _$props2.handler, + showMask = _$props2.showMask, + maskStyle = _$props2.maskStyle, + width = _$props2.width, + height = _$props2.height, + wrapStyle = _$props2.wrapStyle; + + var children = this.$slots['default']; + var wrapperClassname = (0, _classnames3['default'])(prefixCls, (_classnames = {}, (0, _defineProperty3['default'])(_classnames, prefixCls + '-' + placement, true), (0, _defineProperty3['default'])(_classnames, prefixCls + '-open', open), (0, _defineProperty3['default'])(_classnames, className, !!className), _classnames)); + var isOpenChange = this.isOpenChange; + var isHorizontal = placement === 'left' || placement === 'right'; + var placementName = 'translate' + (isHorizontal ? 'X' : 'Y'); + // 百分比与像素动画不同步,第一次打用后全用像素动画。 + // const defaultValue = !this.contentDom || !level ? '100%' : `${value}px`; + var placementPos = placement === 'left' || placement === 'top' ? '-100%' : '100%'; + var transform = open ? '' : placementName + '(' + placementPos + ')'; + if (isOpenChange === undefined || isOpenChange) { + var contentValue = this.contentDom ? this.contentDom.getBoundingClientRect()[isHorizontal ? 'width' : 'height'] : 0; + var value = (isHorizontal ? width : height) || contentValue; + this.setLevelDomTransform(open, false, placementName, value); + } + var handlerChildren = void 0; + if (handler !== false) { + var handlerDefalut = h( + 'div', + { 'class': 'drawer-handle' }, + [h('i', { 'class': 'drawer-handle-icon' })] + ); + var handlerSlot = this.handler; + + var handlerSlotVnode = handlerSlot && handlerSlot[0] || handlerDefalut; + + var _getEvents = (0, _propsUtil.getEvents)(handlerSlotVnode), + handleIconClick = _getEvents.click; + + handlerChildren = (0, _vnode.cloneElement)(handlerSlotVnode, { + on: { + click: function click(e) { + handleIconClick && handleIconClick(); + _this5.onIconTouchEnd(e); + } + }, + directives: [{ + name: 'ant-ref', + value: function value(c) { + _this5.handlerdom = c; + } + }] + }); + } + + var domContProps = { + 'class': wrapperClassname, + directives: [{ + name: 'ant-ref', + value: function value(c) { + _this5.dom = c; + } + }], + on: { + transitionend: this.onWrapperTransitionEnd + }, + style: wrapStyle + }; + var directivesMaskDom = [{ + name: 'ant-ref', + value: function value(c) { + _this5.maskDom = c; + } + }]; + var directivesContentWrapper = [{ + name: 'ant-ref', + value: function value(c) { + _this5.contentWrapper = c; + } + }]; + var directivesContentDom = [{ + name: 'ant-ref', + value: function value(c) { + _this5.contentDom = c; + } + }]; + return h( + 'div', + domContProps, + [showMask && h('div', (0, _babelHelperVueJsxMergeProps2['default'])([{ + 'class': prefixCls + '-mask', + on: { + 'click': this.onMaskTouchEnd + }, + + style: maskStyle + }, { directives: directivesMaskDom }])), h( + 'div', + (0, _babelHelperVueJsxMergeProps2['default'])([{ + 'class': prefixCls + '-content-wrapper', + style: { + transform: transform, + msTransform: transform, + width: (0, _utils.isNumeric)(width) ? width + 'px' : width, + height: (0, _utils.isNumeric)(height) ? height + 'px' : height + } + }, { directives: directivesContentWrapper }]), + [h( + 'div', + (0, _babelHelperVueJsxMergeProps2['default'])([{ + 'class': prefixCls + '-content' + }, { directives: directivesContentDom }, { + on: { + 'touchstart': open ? this.removeStartHandler : noop, + 'touchmove': open ? this.removeMoveHandler : noop + } + }]), + [children] + ), handlerChildren] + )] + ); + }, + getOpen: function getOpen() { + return this.open !== undefined ? this.open : this.sOpen; + }, + getTouchParentScroll: function getTouchParentScroll(root, currentTarget, differX, differY) { + if (!currentTarget || currentTarget === document) { + return false; + } + // root 为 drawer-content 设定了 overflow, 判断为 root 的 parent 时结束滚动; + if (currentTarget === root.parentNode) { + return true; + } + + var isY = Math.max(Math.abs(differX), Math.abs(differY)) === Math.abs(differY); + var isX = Math.max(Math.abs(differX), Math.abs(differY)) === Math.abs(differX); + + var scrollY = currentTarget.scrollHeight - currentTarget.clientHeight; + var scrollX = currentTarget.scrollWidth - currentTarget.clientWidth; + /** + *
+ *
+ *
+ * 在没设定 overflow: auto 或 scroll 时,currentTarget 里获取不到 scrollTop 或 scrollLeft, + * 预先用 scrollTo 来滚动,如果取出的值跟滚动前取出不同,则 currnetTarget 被设定了 overflow; 否则就是上面这种。 + */ + var t = currentTarget.scrollTop; + var l = currentTarget.scrollLeft; + if (currentTarget.scrollTo) { + currentTarget.scrollTo(currentTarget.scrollLeft + 1, currentTarget.scrollTop + 1); + } + var currentT = currentTarget.scrollTop; + var currentL = currentTarget.scrollLeft; + if (currentTarget.scrollTo) { + currentTarget.scrollTo(currentTarget.scrollLeft - 1, currentTarget.scrollTop - 1); + } + if (isY && (!scrollY || !(currentT - t) || scrollY && (currentTarget.scrollTop >= scrollY && differY < 0 || currentTarget.scrollTop <= 0 && differY > 0)) || isX && (!scrollX || !(currentL - l) || scrollX && (currentTarget.scrollLeft >= scrollX && differX < 0 || currentTarget.scrollLeft <= 0 && differX > 0))) { + return this.getTouchParentScroll(root, currentTarget.parentNode, differX, differY); + } + return false; + }, + removeStartHandler: function removeStartHandler(e) { + if (e.touches.length > 1) { + return; + } + this.startPos = { + x: e.touches[0].clientX, + y: e.touches[0].clientY + }; }, - handleMouseUp: function handleMouseUp(e) { - if (this.$refs.refSwitchNode) { - this.$refs.refSwitchNode.blur(); + removeMoveHandler: function removeMoveHandler(e) { + if (e.changedTouches.length > 1) { + return; + } + var currentTarget = e.currentTarget; + var differX = e.changedTouches[0].clientX - this.startPos.x; + var differY = e.changedTouches[0].clientY - this.startPos.y; + if (currentTarget === this.maskDom || currentTarget === this.handlerdom || currentTarget === this.contentDom && this.getTouchParentScroll(currentTarget, e.target, differX, differY)) { + e.preventDefault(); } - this.$emit('mouseup', e); }, - focus: function focus() { - this.$refs.refSwitchNode.focus(); + trnasitionEnd: function trnasitionEnd(e) { + (0, _utils.removeEventListener)(e.target, _utils.transitionEnd, this.trnasitionEnd); + e.target.style.transition = ''; }, - blur: function blur() { - this.$refs.refSwitchNode.blur(); + defaultGetContainer: function defaultGetContainer() { + if (windowIsUndefined) { + return null; + } + var container = document.createElement('div'); + this.parent.appendChild(container); + if (this.wrapperClassName) { + container.className = this.wrapperClassName; + } + return container; } }, + render: function render() { - var _switchClassName; + var _this6 = this; var h = arguments[0]; - - var _getOptionProps = (0, _propsUtil.getOptionProps)(this), - prefixCls = _getOptionProps.prefixCls, - disabled = _getOptionProps.disabled, - loadingIcon = _getOptionProps.loadingIcon, - restProps = (0, _objectWithoutProperties3['default'])(_getOptionProps, ['prefixCls', 'disabled', 'loadingIcon']); - - var checked = this.stateChecked; - var switchClassName = (_switchClassName = {}, (0, _defineProperty3['default'])(_switchClassName, prefixCls, true), (0, _defineProperty3['default'])(_switchClassName, prefixCls + '-checked', checked), (0, _defineProperty3['default'])(_switchClassName, prefixCls + '-disabled', disabled), _switchClassName); - var spanProps = { - props: (0, _extends3['default'])({}, restProps), - on: (0, _extends3['default'])({}, this.$listeners, { - keydown: this.handleKeyDown, - click: this.toggle, - mouseup: this.handleMouseUp - }), + var _$props3 = this.$props, + getContainer = _$props3.getContainer, + wrapperClassName = _$props3.wrapperClassName; + + var open = this.getOpen(); + currentDrawer[this.drawerId] = open ? this.container : open; + var children = this.getChildToRender(this.sFirstEnter ? open : false); + if (!getContainer) { + var directives = [{ + name: 'ant-ref', + value: function value(c) { + _this6.container = c; + } + }]; + return h( + 'div', + (0, _babelHelperVueJsxMergeProps2['default'])([{ 'class': wrapperClassName }, { directives: directives }]), + [children] + ); + } + if (!this.container || !open && !this.sFirstEnter) { + return null; + } + return h(_ContainerRender2['default'], { attrs: { - type: 'button', - role: 'switch', - 'aria-checked': checked, - disabled: disabled - }, - 'class': switchClassName, - ref: 'refSwitchNode' - }; - return h( - 'button', - spanProps, - [loadingIcon, h( - 'span', - { 'class': prefixCls + '-inner' }, - [checked ? (0, _propsUtil.getComponentFromProp)(this, 'checkedChildren') : (0, _propsUtil.getComponentFromProp)(this, 'unCheckedChildren')] - )] - ); + parent: this, + visible: true, + autoMount: true, + autoDestroy: false, + getComponent: function getComponent() { + return children; + }, + getContainer: this.getSelfContainer, + children: function children(_ref) { + var renderComponent = _ref.renderComponent, + removeContainer = _ref.removeContainer; + + _this6.renderComponent = renderComponent; + _this6.removeContainer = removeContainer; + return null; + } + } + }); } }; +exports['default'] = Drawer; + +/***/ }), + +/***/ "./node_modules/ant-design-vue/lib/vc-drawer/src/drawerProps.js": +/*!**********************************************************************!*\ + !*** ./node_modules/ant-design-vue/lib/vc-drawer/src/drawerProps.js ***! + \**********************************************************************/ +/*! no static exports found */ +/***/ (function(module, exports, __webpack_require__) { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", { + value: true +}); + +var _vueTypes = __webpack_require__(/*! ../../_util/vue-types */ "./node_modules/ant-design-vue/lib/_util/vue-types/index.js"); + +var _vueTypes2 = _interopRequireDefault(_vueTypes); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } + +exports['default'] = { + wrapperClassName: _vueTypes2['default'].string, + width: _vueTypes2['default'].any, + height: _vueTypes2['default'].any, + defaultOpen: _vueTypes2['default'].bool, + firstEnter: _vueTypes2['default'].bool, + open: _vueTypes2['default'].bool, + prefixCls: _vueTypes2['default'].string, + placement: _vueTypes2['default'].string, + level: _vueTypes2['default'].oneOfType([_vueTypes2['default'].string, _vueTypes2['default'].array]), + levelMove: _vueTypes2['default'].oneOfType([_vueTypes2['default'].number, _vueTypes2['default'].func, _vueTypes2['default'].array]), + ease: _vueTypes2['default'].string, + duration: _vueTypes2['default'].string, + getContainer: _vueTypes2['default'].oneOfType([_vueTypes2['default'].string, _vueTypes2['default'].func, _vueTypes2['default'].object, _vueTypes2['default'].bool]), + handler: _vueTypes2['default'].any, + showMask: _vueTypes2['default'].bool, + maskStyle: _vueTypes2['default'].object, + className: _vueTypes2['default'].string, + wrapStyle: _vueTypes2['default'].object +}; + /***/ }), -/***/ "./node_modules/ant-design-vue/lib/vc-switch/index.js": -/*!************************************************************!*\ - !*** ./node_modules/ant-design-vue/lib/vc-switch/index.js ***! - \************************************************************/ +/***/ "./node_modules/ant-design-vue/lib/vc-drawer/src/index.js": +/*!****************************************************************!*\ + !*** ./node_modules/ant-design-vue/lib/vc-drawer/src/index.js ***! + \****************************************************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { @@ -333,13 +1043,90 @@ Object.defineProperty(exports, "__esModule", { value: true }); -var _Switch = __webpack_require__(/*! ./Switch */ "./node_modules/ant-design-vue/lib/vc-switch/Switch.js"); +var _Drawer = __webpack_require__(/*! ./Drawer */ "./node_modules/ant-design-vue/lib/vc-drawer/src/Drawer.js"); -var _Switch2 = _interopRequireDefault(_Switch); +var _Drawer2 = _interopRequireDefault(_Drawer); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } -exports['default'] = _Switch2['default']; // base rc-switch 1.8.0 +exports['default'] = _Drawer2['default']; // base in 1.7.7 +// export this package's api + +/***/ }), + +/***/ "./node_modules/ant-design-vue/lib/vc-drawer/src/utils.js": +/*!****************************************************************!*\ + !*** ./node_modules/ant-design-vue/lib/vc-drawer/src/utils.js ***! + \****************************************************************/ +/*! no static exports found */ +/***/ (function(module, exports, __webpack_require__) { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.dataToArray = dataToArray; +exports.addEventListener = addEventListener; +exports.removeEventListener = removeEventListener; +exports.transformArguments = transformArguments; +function dataToArray(vars) { + if (Array.isArray(vars)) { + return vars; + } + return [vars]; +} +var transitionEndObject = { + transition: 'transitionend', + WebkitTransition: 'webkitTransitionEnd', + MozTransition: 'transitionend', + OTransition: 'oTransitionEnd otransitionend' +}; +var transitionStr = exports.transitionStr = Object.keys(transitionEndObject).filter(function (key) { + if (typeof document === 'undefined') { + return false; + } + var html = document.getElementsByTagName('html')[0]; + return key in (html ? html.style : {}); +})[0]; +var transitionEnd = exports.transitionEnd = transitionEndObject[transitionStr]; + +function addEventListener(target, eventType, callback, options) { + if (target.addEventListener) { + target.addEventListener(eventType, callback, options); + } else if (target.attachEvent) { + target.attachEvent('on' + eventType, callback); + } +} + +function removeEventListener(target, eventType, callback, options) { + if (target.removeEventListener) { + target.removeEventListener(eventType, callback, options); + } else if (target.attachEvent) { + target.detachEvent('on' + eventType, callback); + } +} + +function transformArguments(arg, cb) { + var result = void 0; + if (typeof arg === 'function') { + result = arg(cb); + } else { + result = arg; + } + if (Array.isArray(result)) { + if (result.length === 2) { + return result; + } + return [result[0], result[1]]; + } + return [result]; +} + +var isNumeric = exports.isNumeric = function isNumeric(value) { + return !isNaN(parseFloat(value)) && isFinite(value); // eslint-disable-line +}; /***/ }) diff --git a/public/avored-admin/js/chunk/9.js b/public/avored-admin/js/chunk/9.js index 8650d466a..4b57d035f 100644 --- a/public/avored-admin/js/chunk/9.js +++ b/public/avored-admin/js/chunk/9.js @@ -1,393 +1,90 @@ (window["webpackJsonp"] = window["webpackJsonp"] || []).push([[9],{ -/***/ "./node_modules/babel-loader/lib/index.js?!./node_modules/vue-loader/lib/index.js?!./vendor/avored/framework/resources/components/promotion/promotion-code/PromotionCodeEdit.vue?vue&type=script&lang=js&": -/*!**************************************************************************************************************************************************************************************************************************!*\ - !*** ./node_modules/babel-loader/lib??ref--4-0!./node_modules/vue-loader/lib??vue-loader-options!./vendor/avored/framework/resources/components/promotion/promotion-code/PromotionCodeEdit.vue?vue&type=script&lang=js& ***! - \**************************************************************************************************************************************************************************************************************************/ +/***/ "./node_modules/babel-loader/lib/index.js?!./node_modules/vue-loader/lib/index.js?!./packages/framework/resources/components/system/LoginFields.vue?vue&type=script&lang=js&": +/*!*********************************************************************************************************************************************************************************************!*\ + !*** ./node_modules/babel-loader/lib??ref--4-0!./node_modules/vue-loader/lib??vue-loader-options!./packages/framework/resources/components/system/LoginFields.vue?vue&type=script&lang=js& ***! + \*********************************************************************************************************************************************************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); -/* harmony import */ var vue_quill_editor__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! vue-quill-editor */ "./node_modules/vue-quill-editor/dist/vue-quill-editor.js"); -/* harmony import */ var vue_quill_editor__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(vue_quill_editor__WEBPACK_IMPORTED_MODULE_0__); -/* harmony import */ var lodash_isNil__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! lodash/isNil */ "./node_modules/lodash/isNil.js"); -/* harmony import */ var lodash_isNil__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(lodash_isNil__WEBPACK_IMPORTED_MODULE_1__); -/* harmony import */ var moment__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! moment */ "./node_modules/moment/moment.js"); -/* harmony import */ var moment__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(moment__WEBPACK_IMPORTED_MODULE_2__); - - - +// +// +// +// /* harmony default export */ __webpack_exports__["default"] = ({ - props: ['promotionCode', 'baseUrl'], + props: [], data: function data() { return { - form: this.$form.createForm(this), - status: 0, - type: null, - activeFrom: null, - activeTill: null, - dateFormat: 'DD-MM-Y', - activeFromDefault: null, - activeTillDefault: null + loginForm: this.$form.createForm(this), + loadingSubmitBtn: false }; }, methods: { - handleSubmit: function handleSubmit() { - this.form.validateFields(function (err, values) { + handleSubmit: function handleSubmit(e) { + var _this = this; + + this.loadingSubmitBtn = true; + this.loginForm.validateFields(function (err, values) { if (err) { + _this.loadingSubmitBtn = false; e.preventDefault(); } }); - }, - onActiveFromChange: function onActiveFromChange(val) { - this.activeFrom = val.format('Y-MM-DD'); - }, - onActiveTillChange: function onActiveTillChange(val) { - this.activeTill = val.format('Y-MM-DD'); - }, - handleTypeChange: function handleTypeChange(val) { - this.type = val; - }, - changeStatus: function changeStatus(val) { - if (val) { - this.status = 1; - } else { - this.status = 0; - } - }, - clickCancelButton: function clickCancelButton() { - window.location = this.baseUrl + '/promotion-code'; - } - }, - mounted: function mounted() { - if (!lodash_isNil__WEBPACK_IMPORTED_MODULE_1___default()(this.promotionCode)) { - this.status = this.promotionCode.status; - this.type = this.promotionCode.type; - } - - if (!lodash_isNil__WEBPACK_IMPORTED_MODULE_1___default()(this.promotionCode.active_from)) { - this.activeFromDefault = moment__WEBPACK_IMPORTED_MODULE_2___default()(this.promotionCode.active_from, 'Y-MM-DD'); - this.activeFrom = this.promotionCode.active_from; - } - - if (!lodash_isNil__WEBPACK_IMPORTED_MODULE_1___default()(this.promotionCode.active_till)) { - this.activeTillDefault = moment__WEBPACK_IMPORTED_MODULE_2___default()(this.promotionCode.active_till, 'Y-MM-DD'); - this.activeTill = this.promotionCode.active_till; } } }); /***/ }), -/***/ "./node_modules/moment/locale sync recursive ^\\.\\/.*$": -/*!**************************************************!*\ - !*** ./node_modules/moment/locale sync ^\.\/.*$ ***! - \**************************************************/ -/*! no static exports found */ -/***/ (function(module, exports, __webpack_require__) { +/***/ "./node_modules/vue-loader/lib/loaders/templateLoader.js?!./node_modules/vue-loader/lib/index.js?!./packages/framework/resources/components/system/LoginFields.vue?vue&type=template&id=2bcd53e8&": +/*!*************************************************************************************************************************************************************************************************************************************!*\ + !*** ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/framework/resources/components/system/LoginFields.vue?vue&type=template&id=2bcd53e8& ***! + \*************************************************************************************************************************************************************************************************************************************/ +/*! exports provided: render, staticRenderFns */ +/***/ (function(module, __webpack_exports__, __webpack_require__) { -var map = { - "./af": "./node_modules/moment/locale/af.js", - "./af.js": "./node_modules/moment/locale/af.js", - "./ar": "./node_modules/moment/locale/ar.js", - "./ar-dz": "./node_modules/moment/locale/ar-dz.js", - "./ar-dz.js": "./node_modules/moment/locale/ar-dz.js", - "./ar-kw": "./node_modules/moment/locale/ar-kw.js", - "./ar-kw.js": "./node_modules/moment/locale/ar-kw.js", - "./ar-ly": "./node_modules/moment/locale/ar-ly.js", - "./ar-ly.js": "./node_modules/moment/locale/ar-ly.js", - "./ar-ma": "./node_modules/moment/locale/ar-ma.js", - "./ar-ma.js": "./node_modules/moment/locale/ar-ma.js", - "./ar-sa": "./node_modules/moment/locale/ar-sa.js", - "./ar-sa.js": "./node_modules/moment/locale/ar-sa.js", - "./ar-tn": "./node_modules/moment/locale/ar-tn.js", - "./ar-tn.js": "./node_modules/moment/locale/ar-tn.js", - "./ar.js": "./node_modules/moment/locale/ar.js", - "./az": "./node_modules/moment/locale/az.js", - "./az.js": "./node_modules/moment/locale/az.js", - "./be": "./node_modules/moment/locale/be.js", - "./be.js": "./node_modules/moment/locale/be.js", - "./bg": "./node_modules/moment/locale/bg.js", - "./bg.js": "./node_modules/moment/locale/bg.js", - "./bm": "./node_modules/moment/locale/bm.js", - "./bm.js": "./node_modules/moment/locale/bm.js", - "./bn": "./node_modules/moment/locale/bn.js", - "./bn.js": "./node_modules/moment/locale/bn.js", - "./bo": "./node_modules/moment/locale/bo.js", - "./bo.js": "./node_modules/moment/locale/bo.js", - "./br": "./node_modules/moment/locale/br.js", - "./br.js": "./node_modules/moment/locale/br.js", - "./bs": "./node_modules/moment/locale/bs.js", - "./bs.js": "./node_modules/moment/locale/bs.js", - "./ca": "./node_modules/moment/locale/ca.js", - "./ca.js": "./node_modules/moment/locale/ca.js", - "./cs": "./node_modules/moment/locale/cs.js", - "./cs.js": "./node_modules/moment/locale/cs.js", - "./cv": "./node_modules/moment/locale/cv.js", - "./cv.js": "./node_modules/moment/locale/cv.js", - "./cy": "./node_modules/moment/locale/cy.js", - "./cy.js": "./node_modules/moment/locale/cy.js", - "./da": "./node_modules/moment/locale/da.js", - "./da.js": "./node_modules/moment/locale/da.js", - "./de": "./node_modules/moment/locale/de.js", - "./de-at": "./node_modules/moment/locale/de-at.js", - "./de-at.js": "./node_modules/moment/locale/de-at.js", - "./de-ch": "./node_modules/moment/locale/de-ch.js", - "./de-ch.js": "./node_modules/moment/locale/de-ch.js", - "./de.js": "./node_modules/moment/locale/de.js", - "./dv": "./node_modules/moment/locale/dv.js", - "./dv.js": "./node_modules/moment/locale/dv.js", - "./el": "./node_modules/moment/locale/el.js", - "./el.js": "./node_modules/moment/locale/el.js", - "./en-SG": "./node_modules/moment/locale/en-SG.js", - "./en-SG.js": "./node_modules/moment/locale/en-SG.js", - "./en-au": "./node_modules/moment/locale/en-au.js", - "./en-au.js": "./node_modules/moment/locale/en-au.js", - "./en-ca": "./node_modules/moment/locale/en-ca.js", - "./en-ca.js": "./node_modules/moment/locale/en-ca.js", - "./en-gb": "./node_modules/moment/locale/en-gb.js", - "./en-gb.js": "./node_modules/moment/locale/en-gb.js", - "./en-ie": "./node_modules/moment/locale/en-ie.js", - "./en-ie.js": "./node_modules/moment/locale/en-ie.js", - "./en-il": "./node_modules/moment/locale/en-il.js", - "./en-il.js": "./node_modules/moment/locale/en-il.js", - "./en-nz": "./node_modules/moment/locale/en-nz.js", - "./en-nz.js": "./node_modules/moment/locale/en-nz.js", - "./eo": "./node_modules/moment/locale/eo.js", - "./eo.js": "./node_modules/moment/locale/eo.js", - "./es": "./node_modules/moment/locale/es.js", - "./es-do": "./node_modules/moment/locale/es-do.js", - "./es-do.js": "./node_modules/moment/locale/es-do.js", - "./es-us": "./node_modules/moment/locale/es-us.js", - "./es-us.js": "./node_modules/moment/locale/es-us.js", - "./es.js": "./node_modules/moment/locale/es.js", - "./et": "./node_modules/moment/locale/et.js", - "./et.js": "./node_modules/moment/locale/et.js", - "./eu": "./node_modules/moment/locale/eu.js", - "./eu.js": "./node_modules/moment/locale/eu.js", - "./fa": "./node_modules/moment/locale/fa.js", - "./fa.js": "./node_modules/moment/locale/fa.js", - "./fi": "./node_modules/moment/locale/fi.js", - "./fi.js": "./node_modules/moment/locale/fi.js", - "./fo": "./node_modules/moment/locale/fo.js", - "./fo.js": "./node_modules/moment/locale/fo.js", - "./fr": "./node_modules/moment/locale/fr.js", - "./fr-ca": "./node_modules/moment/locale/fr-ca.js", - "./fr-ca.js": "./node_modules/moment/locale/fr-ca.js", - "./fr-ch": "./node_modules/moment/locale/fr-ch.js", - "./fr-ch.js": "./node_modules/moment/locale/fr-ch.js", - "./fr.js": "./node_modules/moment/locale/fr.js", - "./fy": "./node_modules/moment/locale/fy.js", - "./fy.js": "./node_modules/moment/locale/fy.js", - "./ga": "./node_modules/moment/locale/ga.js", - "./ga.js": "./node_modules/moment/locale/ga.js", - "./gd": "./node_modules/moment/locale/gd.js", - "./gd.js": "./node_modules/moment/locale/gd.js", - "./gl": "./node_modules/moment/locale/gl.js", - "./gl.js": "./node_modules/moment/locale/gl.js", - "./gom-latn": "./node_modules/moment/locale/gom-latn.js", - "./gom-latn.js": "./node_modules/moment/locale/gom-latn.js", - "./gu": "./node_modules/moment/locale/gu.js", - "./gu.js": "./node_modules/moment/locale/gu.js", - "./he": "./node_modules/moment/locale/he.js", - "./he.js": "./node_modules/moment/locale/he.js", - "./hi": "./node_modules/moment/locale/hi.js", - "./hi.js": "./node_modules/moment/locale/hi.js", - "./hr": "./node_modules/moment/locale/hr.js", - "./hr.js": "./node_modules/moment/locale/hr.js", - "./hu": "./node_modules/moment/locale/hu.js", - "./hu.js": "./node_modules/moment/locale/hu.js", - "./hy-am": "./node_modules/moment/locale/hy-am.js", - "./hy-am.js": "./node_modules/moment/locale/hy-am.js", - "./id": "./node_modules/moment/locale/id.js", - "./id.js": "./node_modules/moment/locale/id.js", - "./is": "./node_modules/moment/locale/is.js", - "./is.js": "./node_modules/moment/locale/is.js", - "./it": "./node_modules/moment/locale/it.js", - "./it-ch": "./node_modules/moment/locale/it-ch.js", - "./it-ch.js": "./node_modules/moment/locale/it-ch.js", - "./it.js": "./node_modules/moment/locale/it.js", - "./ja": "./node_modules/moment/locale/ja.js", - "./ja.js": "./node_modules/moment/locale/ja.js", - "./jv": "./node_modules/moment/locale/jv.js", - "./jv.js": "./node_modules/moment/locale/jv.js", - "./ka": "./node_modules/moment/locale/ka.js", - "./ka.js": "./node_modules/moment/locale/ka.js", - "./kk": "./node_modules/moment/locale/kk.js", - "./kk.js": "./node_modules/moment/locale/kk.js", - "./km": "./node_modules/moment/locale/km.js", - "./km.js": "./node_modules/moment/locale/km.js", - "./kn": "./node_modules/moment/locale/kn.js", - "./kn.js": "./node_modules/moment/locale/kn.js", - "./ko": "./node_modules/moment/locale/ko.js", - "./ko.js": "./node_modules/moment/locale/ko.js", - "./ku": "./node_modules/moment/locale/ku.js", - "./ku.js": "./node_modules/moment/locale/ku.js", - "./ky": "./node_modules/moment/locale/ky.js", - "./ky.js": "./node_modules/moment/locale/ky.js", - "./lb": "./node_modules/moment/locale/lb.js", - "./lb.js": "./node_modules/moment/locale/lb.js", - "./lo": "./node_modules/moment/locale/lo.js", - "./lo.js": "./node_modules/moment/locale/lo.js", - "./lt": "./node_modules/moment/locale/lt.js", - "./lt.js": "./node_modules/moment/locale/lt.js", - "./lv": "./node_modules/moment/locale/lv.js", - "./lv.js": "./node_modules/moment/locale/lv.js", - "./me": "./node_modules/moment/locale/me.js", - "./me.js": "./node_modules/moment/locale/me.js", - "./mi": "./node_modules/moment/locale/mi.js", - "./mi.js": "./node_modules/moment/locale/mi.js", - "./mk": "./node_modules/moment/locale/mk.js", - "./mk.js": "./node_modules/moment/locale/mk.js", - "./ml": "./node_modules/moment/locale/ml.js", - "./ml.js": "./node_modules/moment/locale/ml.js", - "./mn": "./node_modules/moment/locale/mn.js", - "./mn.js": "./node_modules/moment/locale/mn.js", - "./mr": "./node_modules/moment/locale/mr.js", - "./mr.js": "./node_modules/moment/locale/mr.js", - "./ms": "./node_modules/moment/locale/ms.js", - "./ms-my": "./node_modules/moment/locale/ms-my.js", - "./ms-my.js": "./node_modules/moment/locale/ms-my.js", - "./ms.js": "./node_modules/moment/locale/ms.js", - "./mt": "./node_modules/moment/locale/mt.js", - "./mt.js": "./node_modules/moment/locale/mt.js", - "./my": "./node_modules/moment/locale/my.js", - "./my.js": "./node_modules/moment/locale/my.js", - "./nb": "./node_modules/moment/locale/nb.js", - "./nb.js": "./node_modules/moment/locale/nb.js", - "./ne": "./node_modules/moment/locale/ne.js", - "./ne.js": "./node_modules/moment/locale/ne.js", - "./nl": "./node_modules/moment/locale/nl.js", - "./nl-be": "./node_modules/moment/locale/nl-be.js", - "./nl-be.js": "./node_modules/moment/locale/nl-be.js", - "./nl.js": "./node_modules/moment/locale/nl.js", - "./nn": "./node_modules/moment/locale/nn.js", - "./nn.js": "./node_modules/moment/locale/nn.js", - "./pa-in": "./node_modules/moment/locale/pa-in.js", - "./pa-in.js": "./node_modules/moment/locale/pa-in.js", - "./pl": "./node_modules/moment/locale/pl.js", - "./pl.js": "./node_modules/moment/locale/pl.js", - "./pt": "./node_modules/moment/locale/pt.js", - "./pt-br": "./node_modules/moment/locale/pt-br.js", - "./pt-br.js": "./node_modules/moment/locale/pt-br.js", - "./pt.js": "./node_modules/moment/locale/pt.js", - "./ro": "./node_modules/moment/locale/ro.js", - "./ro.js": "./node_modules/moment/locale/ro.js", - "./ru": "./node_modules/moment/locale/ru.js", - "./ru.js": "./node_modules/moment/locale/ru.js", - "./sd": "./node_modules/moment/locale/sd.js", - "./sd.js": "./node_modules/moment/locale/sd.js", - "./se": "./node_modules/moment/locale/se.js", - "./se.js": "./node_modules/moment/locale/se.js", - "./si": "./node_modules/moment/locale/si.js", - "./si.js": "./node_modules/moment/locale/si.js", - "./sk": "./node_modules/moment/locale/sk.js", - "./sk.js": "./node_modules/moment/locale/sk.js", - "./sl": "./node_modules/moment/locale/sl.js", - "./sl.js": "./node_modules/moment/locale/sl.js", - "./sq": "./node_modules/moment/locale/sq.js", - "./sq.js": "./node_modules/moment/locale/sq.js", - "./sr": "./node_modules/moment/locale/sr.js", - "./sr-cyrl": "./node_modules/moment/locale/sr-cyrl.js", - "./sr-cyrl.js": "./node_modules/moment/locale/sr-cyrl.js", - "./sr.js": "./node_modules/moment/locale/sr.js", - "./ss": "./node_modules/moment/locale/ss.js", - "./ss.js": "./node_modules/moment/locale/ss.js", - "./sv": "./node_modules/moment/locale/sv.js", - "./sv.js": "./node_modules/moment/locale/sv.js", - "./sw": "./node_modules/moment/locale/sw.js", - "./sw.js": "./node_modules/moment/locale/sw.js", - "./ta": "./node_modules/moment/locale/ta.js", - "./ta.js": "./node_modules/moment/locale/ta.js", - "./te": "./node_modules/moment/locale/te.js", - "./te.js": "./node_modules/moment/locale/te.js", - "./tet": "./node_modules/moment/locale/tet.js", - "./tet.js": "./node_modules/moment/locale/tet.js", - "./tg": "./node_modules/moment/locale/tg.js", - "./tg.js": "./node_modules/moment/locale/tg.js", - "./th": "./node_modules/moment/locale/th.js", - "./th.js": "./node_modules/moment/locale/th.js", - "./tl-ph": "./node_modules/moment/locale/tl-ph.js", - "./tl-ph.js": "./node_modules/moment/locale/tl-ph.js", - "./tlh": "./node_modules/moment/locale/tlh.js", - "./tlh.js": "./node_modules/moment/locale/tlh.js", - "./tr": "./node_modules/moment/locale/tr.js", - "./tr.js": "./node_modules/moment/locale/tr.js", - "./tzl": "./node_modules/moment/locale/tzl.js", - "./tzl.js": "./node_modules/moment/locale/tzl.js", - "./tzm": "./node_modules/moment/locale/tzm.js", - "./tzm-latn": "./node_modules/moment/locale/tzm-latn.js", - "./tzm-latn.js": "./node_modules/moment/locale/tzm-latn.js", - "./tzm.js": "./node_modules/moment/locale/tzm.js", - "./ug-cn": "./node_modules/moment/locale/ug-cn.js", - "./ug-cn.js": "./node_modules/moment/locale/ug-cn.js", - "./uk": "./node_modules/moment/locale/uk.js", - "./uk.js": "./node_modules/moment/locale/uk.js", - "./ur": "./node_modules/moment/locale/ur.js", - "./ur.js": "./node_modules/moment/locale/ur.js", - "./uz": "./node_modules/moment/locale/uz.js", - "./uz-latn": "./node_modules/moment/locale/uz-latn.js", - "./uz-latn.js": "./node_modules/moment/locale/uz-latn.js", - "./uz.js": "./node_modules/moment/locale/uz.js", - "./vi": "./node_modules/moment/locale/vi.js", - "./vi.js": "./node_modules/moment/locale/vi.js", - "./x-pseudo": "./node_modules/moment/locale/x-pseudo.js", - "./x-pseudo.js": "./node_modules/moment/locale/x-pseudo.js", - "./yo": "./node_modules/moment/locale/yo.js", - "./yo.js": "./node_modules/moment/locale/yo.js", - "./zh-cn": "./node_modules/moment/locale/zh-cn.js", - "./zh-cn.js": "./node_modules/moment/locale/zh-cn.js", - "./zh-hk": "./node_modules/moment/locale/zh-hk.js", - "./zh-hk.js": "./node_modules/moment/locale/zh-hk.js", - "./zh-tw": "./node_modules/moment/locale/zh-tw.js", - "./zh-tw.js": "./node_modules/moment/locale/zh-tw.js" -}; +"use strict"; +__webpack_require__.r(__webpack_exports__); +/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "render", function() { return render; }); +/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "staticRenderFns", function() { return staticRenderFns; }); +var render = function() { + var _vm = this + var _h = _vm.$createElement + var _c = _vm._self._c || _h + return _c("div") +} +var staticRenderFns = [] +render._withStripped = true -function webpackContext(req) { - var id = webpackContextResolve(req); - return __webpack_require__(id); -} -function webpackContextResolve(req) { - if(!__webpack_require__.o(map, req)) { - var e = new Error("Cannot find module '" + req + "'"); - e.code = 'MODULE_NOT_FOUND'; - throw e; - } - return map[req]; -} -webpackContext.keys = function webpackContextKeys() { - return Object.keys(map); -}; -webpackContext.resolve = webpackContextResolve; -module.exports = webpackContext; -webpackContext.id = "./node_modules/moment/locale sync recursive ^\\.\\/.*$"; /***/ }), -/***/ "./vendor/avored/framework/resources/components/promotion/promotion-code/PromotionCodeEdit.vue": -/*!*****************************************************************************************************!*\ - !*** ./vendor/avored/framework/resources/components/promotion/promotion-code/PromotionCodeEdit.vue ***! - \*****************************************************************************************************/ +/***/ "./packages/framework/resources/components/system/LoginFields.vue": +/*!************************************************************************!*\ + !*** ./packages/framework/resources/components/system/LoginFields.vue ***! + \************************************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); -/* harmony import */ var _PromotionCodeEdit_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./PromotionCodeEdit.vue?vue&type=script&lang=js& */ "./vendor/avored/framework/resources/components/promotion/promotion-code/PromotionCodeEdit.vue?vue&type=script&lang=js&"); -/* empty/unused harmony star reexport *//* harmony import */ var _node_modules_vue_loader_lib_runtime_componentNormalizer_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../../../../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js */ "./node_modules/vue-loader/lib/runtime/componentNormalizer.js"); -var render, staticRenderFns +/* harmony import */ var _LoginFields_vue_vue_type_template_id_2bcd53e8___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./LoginFields.vue?vue&type=template&id=2bcd53e8& */ "./packages/framework/resources/components/system/LoginFields.vue?vue&type=template&id=2bcd53e8&"); +/* harmony import */ var _LoginFields_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./LoginFields.vue?vue&type=script&lang=js& */ "./packages/framework/resources/components/system/LoginFields.vue?vue&type=script&lang=js&"); +/* empty/unused harmony star reexport *//* harmony import */ var _node_modules_vue_loader_lib_runtime_componentNormalizer_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js */ "./node_modules/vue-loader/lib/runtime/componentNormalizer.js"); + /* normalize component */ -var component = Object(_node_modules_vue_loader_lib_runtime_componentNormalizer_js__WEBPACK_IMPORTED_MODULE_1__["default"])( - _PromotionCodeEdit_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0__["default"], - render, - staticRenderFns, +var component = Object(_node_modules_vue_loader_lib_runtime_componentNormalizer_js__WEBPACK_IMPORTED_MODULE_2__["default"])( + _LoginFields_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_1__["default"], + _LoginFields_vue_vue_type_template_id_2bcd53e8___WEBPACK_IMPORTED_MODULE_0__["render"], + _LoginFields_vue_vue_type_template_id_2bcd53e8___WEBPACK_IMPORTED_MODULE_0__["staticRenderFns"], false, null, null, @@ -397,22 +94,40 @@ var component = Object(_node_modules_vue_loader_lib_runtime_componentNormalizer_ /* hot reload */ if (false) { var api; } -component.options.__file = "vendor/avored/framework/resources/components/promotion/promotion-code/PromotionCodeEdit.vue" +component.options.__file = "packages/framework/resources/components/system/LoginFields.vue" /* harmony default export */ __webpack_exports__["default"] = (component.exports); /***/ }), -/***/ "./vendor/avored/framework/resources/components/promotion/promotion-code/PromotionCodeEdit.vue?vue&type=script&lang=js&": -/*!******************************************************************************************************************************!*\ - !*** ./vendor/avored/framework/resources/components/promotion/promotion-code/PromotionCodeEdit.vue?vue&type=script&lang=js& ***! - \******************************************************************************************************************************/ +/***/ "./packages/framework/resources/components/system/LoginFields.vue?vue&type=script&lang=js&": +/*!*************************************************************************************************!*\ + !*** ./packages/framework/resources/components/system/LoginFields.vue?vue&type=script&lang=js& ***! + \*************************************************************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); -/* harmony import */ var _node_modules_babel_loader_lib_index_js_ref_4_0_node_modules_vue_loader_lib_index_js_vue_loader_options_PromotionCodeEdit_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! -!../../../../../../../node_modules/babel-loader/lib??ref--4-0!../../../../../../../node_modules/vue-loader/lib??vue-loader-options!./PromotionCodeEdit.vue?vue&type=script&lang=js& */ "./node_modules/babel-loader/lib/index.js?!./node_modules/vue-loader/lib/index.js?!./vendor/avored/framework/resources/components/promotion/promotion-code/PromotionCodeEdit.vue?vue&type=script&lang=js&"); -/* empty/unused harmony star reexport */ /* harmony default export */ __webpack_exports__["default"] = (_node_modules_babel_loader_lib_index_js_ref_4_0_node_modules_vue_loader_lib_index_js_vue_loader_options_PromotionCodeEdit_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0__["default"]); +/* harmony import */ var _node_modules_babel_loader_lib_index_js_ref_4_0_node_modules_vue_loader_lib_index_js_vue_loader_options_LoginFields_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! -!../../../../../node_modules/babel-loader/lib??ref--4-0!../../../../../node_modules/vue-loader/lib??vue-loader-options!./LoginFields.vue?vue&type=script&lang=js& */ "./node_modules/babel-loader/lib/index.js?!./node_modules/vue-loader/lib/index.js?!./packages/framework/resources/components/system/LoginFields.vue?vue&type=script&lang=js&"); +/* empty/unused harmony star reexport */ /* harmony default export */ __webpack_exports__["default"] = (_node_modules_babel_loader_lib_index_js_ref_4_0_node_modules_vue_loader_lib_index_js_vue_loader_options_LoginFields_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0__["default"]); + +/***/ }), + +/***/ "./packages/framework/resources/components/system/LoginFields.vue?vue&type=template&id=2bcd53e8&": +/*!*******************************************************************************************************!*\ + !*** ./packages/framework/resources/components/system/LoginFields.vue?vue&type=template&id=2bcd53e8& ***! + \*******************************************************************************************************/ +/*! exports provided: render, staticRenderFns */ +/***/ (function(module, __webpack_exports__, __webpack_require__) { + +"use strict"; +__webpack_require__.r(__webpack_exports__); +/* harmony import */ var _node_modules_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_node_modules_vue_loader_lib_index_js_vue_loader_options_LoginFields_vue_vue_type_template_id_2bcd53e8___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! -!../../../../../node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!../../../../../node_modules/vue-loader/lib??vue-loader-options!./LoginFields.vue?vue&type=template&id=2bcd53e8& */ "./node_modules/vue-loader/lib/loaders/templateLoader.js?!./node_modules/vue-loader/lib/index.js?!./packages/framework/resources/components/system/LoginFields.vue?vue&type=template&id=2bcd53e8&"); +/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "render", function() { return _node_modules_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_node_modules_vue_loader_lib_index_js_vue_loader_options_LoginFields_vue_vue_type_template_id_2bcd53e8___WEBPACK_IMPORTED_MODULE_0__["render"]; }); + +/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "staticRenderFns", function() { return _node_modules_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_node_modules_vue_loader_lib_index_js_vue_loader_options_LoginFields_vue_vue_type_template_id_2bcd53e8___WEBPACK_IMPORTED_MODULE_0__["staticRenderFns"]; }); + + /***/ }) diff --git a/public/css/app.css b/public/css/app.css index 9a87f607d..e023fa222 100644 --- a/public/css/app.css +++ b/public/css/app.css @@ -3,11 +3,6 @@ /* stylelint-disable */ /* stylelint-disable declaration-bang-space-before,no-duplicate-selectors,string-no-newline */ /* stylelint-disable at-rule-no-unknown */ -@font-face { - font-family: 'Chinese Quote'; - src: local('PingFang SC'), local('SimSun'); - unicode-range: U+2018, U+2019, U+201c, U+201d; -} html, body { width: 100%; @@ -48,12 +43,13 @@ section { } body { margin: 0; - font-family: "Chinese Quote", -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"; + color: rgba(0, 0, 0, 0.65); font-size: 14px; + font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', 'Helvetica Neue', Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol'; font-variant: tabular-nums; line-height: 1.5; - color: rgba(0, 0, 0, 0.65); background-color: #fff; + font-feature-settings: 'tnum'; } [tabindex='-1']:focus { outline: none !important; @@ -83,8 +79,8 @@ abbr[data-original-title] { text-decoration: underline; -webkit-text-decoration: underline dotted; text-decoration: underline dotted; - cursor: help; border-bottom: 0; + cursor: help; } address { margin-bottom: 1em; @@ -144,10 +140,11 @@ sup { } a { color: #C12E32; - background-color: transparent; text-decoration: none; + background-color: transparent; outline: none; cursor: pointer; + -webkit-transition: color 0.3s; transition: color 0.3s; -webkit-text-decoration-skip: objects; } @@ -164,8 +161,8 @@ a:active { } a:active, a:hover { - outline: 0; text-decoration: none; + outline: 0; } a[disabled] { color: rgba(0, 0, 0, 0.25); @@ -176,8 +173,8 @@ pre, code, kbd, samp { - font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, Courier, monospace; font-size: 1em; + font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, Courier, monospace; } pre { margin-top: 0; @@ -224,10 +221,10 @@ select, optgroup, textarea { margin: 0; - font-family: inherit; + color: inherit; font-size: inherit; + font-family: inherit; line-height: inherit; - color: inherit; } button, input { @@ -267,19 +264,19 @@ textarea { } fieldset { min-width: 0; - padding: 0; margin: 0; + padding: 0; border: 0; } legend { display: block; width: 100%; max-width: 100%; - padding: 0; margin-bottom: 0.5em; + padding: 0; + color: inherit; font-size: 1.5em; line-height: inherit; - color: inherit; white-space: normal; } progress { @@ -318,31 +315,31 @@ mark { background-color: #feffe6; } ::-moz-selection { - background: #E64448; color: #fff; + background: #E64448; } ::selection { - background: #E64448; color: #fff; + background: #E64448; } .clearfix { zoom: 1; } -.clearfix:before, -.clearfix:after { +.clearfix::before, +.clearfix::after { content: ''; display: table; } -.clearfix:after { +.clearfix::after { clear: both; } .anticon { display: inline-block; font-style: normal; - vertical-align: -0.125em; + line-height: 0; text-align: center; text-transform: none; - line-height: 0; + vertical-align: -0.125em; text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; @@ -353,13 +350,16 @@ mark { .anticon svg { display: inline-block; } -.anticon:before { +.anticon::before { display: none; } .anticon .anticon-icon { display: block; } -.anticon-spin:before { +.anticon[tabindex] { + cursor: pointer; +} +.anticon-spin::before { display: inline-block; -webkit-animation: loadingCircle 1s infinite linear; animation: loadingCircle 1s infinite linear; @@ -608,243 +608,309 @@ mark { } @-webkit-keyframes antMoveDownIn { 0% { - transform-origin: 0 0; - transform: translateY(100%); + -webkit-transform: translateY(100%); + transform: translateY(100%); + -webkit-transform-origin: 0 0; + transform-origin: 0 0; opacity: 0; } 100% { - transform-origin: 0 0; - transform: translateY(0%); + -webkit-transform: translateY(0%); + transform: translateY(0%); + -webkit-transform-origin: 0 0; + transform-origin: 0 0; opacity: 1; } } @keyframes antMoveDownIn { 0% { - transform-origin: 0 0; - transform: translateY(100%); + -webkit-transform: translateY(100%); + transform: translateY(100%); + -webkit-transform-origin: 0 0; + transform-origin: 0 0; opacity: 0; } 100% { - transform-origin: 0 0; - transform: translateY(0%); + -webkit-transform: translateY(0%); + transform: translateY(0%); + -webkit-transform-origin: 0 0; + transform-origin: 0 0; opacity: 1; } } @-webkit-keyframes antMoveDownOut { 0% { - transform-origin: 0 0; - transform: translateY(0%); + -webkit-transform: translateY(0%); + transform: translateY(0%); + -webkit-transform-origin: 0 0; + transform-origin: 0 0; opacity: 1; } 100% { - transform-origin: 0 0; - transform: translateY(100%); + -webkit-transform: translateY(100%); + transform: translateY(100%); + -webkit-transform-origin: 0 0; + transform-origin: 0 0; opacity: 0; } } @keyframes antMoveDownOut { 0% { - transform-origin: 0 0; - transform: translateY(0%); + -webkit-transform: translateY(0%); + transform: translateY(0%); + -webkit-transform-origin: 0 0; + transform-origin: 0 0; opacity: 1; } 100% { - transform-origin: 0 0; - transform: translateY(100%); + -webkit-transform: translateY(100%); + transform: translateY(100%); + -webkit-transform-origin: 0 0; + transform-origin: 0 0; opacity: 0; } } @-webkit-keyframes antMoveLeftIn { 0% { - transform-origin: 0 0; - transform: translateX(-100%); + -webkit-transform: translateX(-100%); + transform: translateX(-100%); + -webkit-transform-origin: 0 0; + transform-origin: 0 0; opacity: 0; } 100% { - transform-origin: 0 0; - transform: translateX(0%); + -webkit-transform: translateX(0%); + transform: translateX(0%); + -webkit-transform-origin: 0 0; + transform-origin: 0 0; opacity: 1; } } @keyframes antMoveLeftIn { 0% { - transform-origin: 0 0; - transform: translateX(-100%); + -webkit-transform: translateX(-100%); + transform: translateX(-100%); + -webkit-transform-origin: 0 0; + transform-origin: 0 0; opacity: 0; } 100% { - transform-origin: 0 0; - transform: translateX(0%); + -webkit-transform: translateX(0%); + transform: translateX(0%); + -webkit-transform-origin: 0 0; + transform-origin: 0 0; opacity: 1; } } @-webkit-keyframes antMoveLeftOut { 0% { - transform-origin: 0 0; - transform: translateX(0%); + -webkit-transform: translateX(0%); + transform: translateX(0%); + -webkit-transform-origin: 0 0; + transform-origin: 0 0; opacity: 1; } 100% { - transform-origin: 0 0; - transform: translateX(-100%); + -webkit-transform: translateX(-100%); + transform: translateX(-100%); + -webkit-transform-origin: 0 0; + transform-origin: 0 0; opacity: 0; } } @keyframes antMoveLeftOut { 0% { - transform-origin: 0 0; - transform: translateX(0%); + -webkit-transform: translateX(0%); + transform: translateX(0%); + -webkit-transform-origin: 0 0; + transform-origin: 0 0; opacity: 1; } 100% { - transform-origin: 0 0; - transform: translateX(-100%); + -webkit-transform: translateX(-100%); + transform: translateX(-100%); + -webkit-transform-origin: 0 0; + transform-origin: 0 0; opacity: 0; } } @-webkit-keyframes antMoveRightIn { 0% { + -webkit-transform: translateX(100%); + transform: translateX(100%); + -webkit-transform-origin: 0 0; + transform-origin: 0 0; opacity: 0; - transform-origin: 0 0; - transform: translateX(100%); } 100% { + -webkit-transform: translateX(0%); + transform: translateX(0%); + -webkit-transform-origin: 0 0; + transform-origin: 0 0; opacity: 1; - transform-origin: 0 0; - transform: translateX(0%); } } @keyframes antMoveRightIn { 0% { + -webkit-transform: translateX(100%); + transform: translateX(100%); + -webkit-transform-origin: 0 0; + transform-origin: 0 0; opacity: 0; - transform-origin: 0 0; - transform: translateX(100%); } 100% { + -webkit-transform: translateX(0%); + transform: translateX(0%); + -webkit-transform-origin: 0 0; + transform-origin: 0 0; opacity: 1; - transform-origin: 0 0; - transform: translateX(0%); } } @-webkit-keyframes antMoveRightOut { 0% { - transform-origin: 0 0; - transform: translateX(0%); + -webkit-transform: translateX(0%); + transform: translateX(0%); + -webkit-transform-origin: 0 0; + transform-origin: 0 0; opacity: 1; } 100% { - transform-origin: 0 0; - transform: translateX(100%); + -webkit-transform: translateX(100%); + transform: translateX(100%); + -webkit-transform-origin: 0 0; + transform-origin: 0 0; opacity: 0; } } @keyframes antMoveRightOut { 0% { - transform-origin: 0 0; - transform: translateX(0%); + -webkit-transform: translateX(0%); + transform: translateX(0%); + -webkit-transform-origin: 0 0; + transform-origin: 0 0; opacity: 1; } 100% { - transform-origin: 0 0; - transform: translateX(100%); + -webkit-transform: translateX(100%); + transform: translateX(100%); + -webkit-transform-origin: 0 0; + transform-origin: 0 0; opacity: 0; } } @-webkit-keyframes antMoveUpIn { 0% { - transform-origin: 0 0; - transform: translateY(-100%); + -webkit-transform: translateY(-100%); + transform: translateY(-100%); + -webkit-transform-origin: 0 0; + transform-origin: 0 0; opacity: 0; } 100% { - transform-origin: 0 0; - transform: translateY(0%); + -webkit-transform: translateY(0%); + transform: translateY(0%); + -webkit-transform-origin: 0 0; + transform-origin: 0 0; opacity: 1; } } @keyframes antMoveUpIn { 0% { - transform-origin: 0 0; - transform: translateY(-100%); + -webkit-transform: translateY(-100%); + transform: translateY(-100%); + -webkit-transform-origin: 0 0; + transform-origin: 0 0; opacity: 0; } 100% { - transform-origin: 0 0; - transform: translateY(0%); + -webkit-transform: translateY(0%); + transform: translateY(0%); + -webkit-transform-origin: 0 0; + transform-origin: 0 0; opacity: 1; } } @-webkit-keyframes antMoveUpOut { 0% { - transform-origin: 0 0; - transform: translateY(0%); + -webkit-transform: translateY(0%); + transform: translateY(0%); + -webkit-transform-origin: 0 0; + transform-origin: 0 0; opacity: 1; } 100% { - transform-origin: 0 0; - transform: translateY(-100%); + -webkit-transform: translateY(-100%); + transform: translateY(-100%); + -webkit-transform-origin: 0 0; + transform-origin: 0 0; opacity: 0; } } @keyframes antMoveUpOut { 0% { - transform-origin: 0 0; - transform: translateY(0%); + -webkit-transform: translateY(0%); + transform: translateY(0%); + -webkit-transform-origin: 0 0; + transform-origin: 0 0; opacity: 1; } 100% { - transform-origin: 0 0; - transform: translateY(-100%); + -webkit-transform: translateY(-100%); + transform: translateY(-100%); + -webkit-transform-origin: 0 0; + transform-origin: 0 0; opacity: 0; } } @-webkit-keyframes loadingCircle { 100% { - transform: rotate(360deg); + -webkit-transform: rotate(360deg); + transform: rotate(360deg); } } @keyframes loadingCircle { 100% { - transform: rotate(360deg); + -webkit-transform: rotate(360deg); + transform: rotate(360deg); } } -[ant-click-animating], -[ant-click-animating-without-extra-node] { +[ant-click-animating='true'], +[ant-click-animating-without-extra-node='true'] { position: relative; } -[ant-click-animating-without-extra-node]:after, +[ant-click-animating-without-extra-node='true']::after, .ant-click-animating-node { - content: ''; position: absolute; top: -1px; - left: -1px; - bottom: -1px; right: -1px; - border-radius: inherit; + bottom: -1px; + left: -1px; + display: block; border: 0 solid #E64448; + border-radius: inherit; opacity: 0.2; -webkit-animation: fadeEffect 2s cubic-bezier(0.08, 0.82, 0.17, 1), waveEffect 0.4s cubic-bezier(0.08, 0.82, 0.17, 1); animation: fadeEffect 2s cubic-bezier(0.08, 0.82, 0.17, 1), waveEffect 0.4s cubic-bezier(0.08, 0.82, 0.17, 1); -webkit-animation-fill-mode: forwards; animation-fill-mode: forwards; - display: block; pointer-events: none; + content: ''; } @-webkit-keyframes waveEffect { 100% { top: -6px; - left: -6px; - bottom: -6px; right: -6px; + bottom: -6px; + left: -6px; border-width: 6px; } } @keyframes waveEffect { 100% { top: -6px; - left: -6px; - bottom: -6px; right: -6px; + bottom: -6px; + left: -6px; border-width: 6px; } } @@ -1024,194 +1090,258 @@ mark { } @-webkit-keyframes antSlideUpIn { 0% { + -webkit-transform: scaleY(0.8); + transform: scaleY(0.8); + -webkit-transform-origin: 0% 0%; + transform-origin: 0% 0%; opacity: 0; - transform-origin: 0% 0%; - transform: scaleY(0.8); } 100% { + -webkit-transform: scaleY(1); + transform: scaleY(1); + -webkit-transform-origin: 0% 0%; + transform-origin: 0% 0%; opacity: 1; - transform-origin: 0% 0%; - transform: scaleY(1); } } @keyframes antSlideUpIn { 0% { + -webkit-transform: scaleY(0.8); + transform: scaleY(0.8); + -webkit-transform-origin: 0% 0%; + transform-origin: 0% 0%; opacity: 0; - transform-origin: 0% 0%; - transform: scaleY(0.8); } 100% { + -webkit-transform: scaleY(1); + transform: scaleY(1); + -webkit-transform-origin: 0% 0%; + transform-origin: 0% 0%; opacity: 1; - transform-origin: 0% 0%; - transform: scaleY(1); } } @-webkit-keyframes antSlideUpOut { 0% { + -webkit-transform: scaleY(1); + transform: scaleY(1); + -webkit-transform-origin: 0% 0%; + transform-origin: 0% 0%; opacity: 1; - transform-origin: 0% 0%; - transform: scaleY(1); } 100% { + -webkit-transform: scaleY(0.8); + transform: scaleY(0.8); + -webkit-transform-origin: 0% 0%; + transform-origin: 0% 0%; opacity: 0; - transform-origin: 0% 0%; - transform: scaleY(0.8); } } @keyframes antSlideUpOut { 0% { + -webkit-transform: scaleY(1); + transform: scaleY(1); + -webkit-transform-origin: 0% 0%; + transform-origin: 0% 0%; opacity: 1; - transform-origin: 0% 0%; - transform: scaleY(1); } 100% { + -webkit-transform: scaleY(0.8); + transform: scaleY(0.8); + -webkit-transform-origin: 0% 0%; + transform-origin: 0% 0%; opacity: 0; - transform-origin: 0% 0%; - transform: scaleY(0.8); } } @-webkit-keyframes antSlideDownIn { 0% { + -webkit-transform: scaleY(0.8); + transform: scaleY(0.8); + -webkit-transform-origin: 100% 100%; + transform-origin: 100% 100%; opacity: 0; - transform-origin: 100% 100%; - transform: scaleY(0.8); } 100% { + -webkit-transform: scaleY(1); + transform: scaleY(1); + -webkit-transform-origin: 100% 100%; + transform-origin: 100% 100%; opacity: 1; - transform-origin: 100% 100%; - transform: scaleY(1); } } @keyframes antSlideDownIn { 0% { + -webkit-transform: scaleY(0.8); + transform: scaleY(0.8); + -webkit-transform-origin: 100% 100%; + transform-origin: 100% 100%; opacity: 0; - transform-origin: 100% 100%; - transform: scaleY(0.8); } 100% { + -webkit-transform: scaleY(1); + transform: scaleY(1); + -webkit-transform-origin: 100% 100%; + transform-origin: 100% 100%; opacity: 1; - transform-origin: 100% 100%; - transform: scaleY(1); } } @-webkit-keyframes antSlideDownOut { 0% { + -webkit-transform: scaleY(1); + transform: scaleY(1); + -webkit-transform-origin: 100% 100%; + transform-origin: 100% 100%; opacity: 1; - transform-origin: 100% 100%; - transform: scaleY(1); } 100% { + -webkit-transform: scaleY(0.8); + transform: scaleY(0.8); + -webkit-transform-origin: 100% 100%; + transform-origin: 100% 100%; opacity: 0; - transform-origin: 100% 100%; - transform: scaleY(0.8); } } @keyframes antSlideDownOut { 0% { + -webkit-transform: scaleY(1); + transform: scaleY(1); + -webkit-transform-origin: 100% 100%; + transform-origin: 100% 100%; opacity: 1; - transform-origin: 100% 100%; - transform: scaleY(1); } 100% { + -webkit-transform: scaleY(0.8); + transform: scaleY(0.8); + -webkit-transform-origin: 100% 100%; + transform-origin: 100% 100%; opacity: 0; - transform-origin: 100% 100%; - transform: scaleY(0.8); } } @-webkit-keyframes antSlideLeftIn { 0% { + -webkit-transform: scaleX(0.8); + transform: scaleX(0.8); + -webkit-transform-origin: 0% 0%; + transform-origin: 0% 0%; opacity: 0; - transform-origin: 0% 0%; - transform: scaleX(0.8); } 100% { + -webkit-transform: scaleX(1); + transform: scaleX(1); + -webkit-transform-origin: 0% 0%; + transform-origin: 0% 0%; opacity: 1; - transform-origin: 0% 0%; - transform: scaleX(1); } } @keyframes antSlideLeftIn { 0% { + -webkit-transform: scaleX(0.8); + transform: scaleX(0.8); + -webkit-transform-origin: 0% 0%; + transform-origin: 0% 0%; opacity: 0; - transform-origin: 0% 0%; - transform: scaleX(0.8); } 100% { + -webkit-transform: scaleX(1); + transform: scaleX(1); + -webkit-transform-origin: 0% 0%; + transform-origin: 0% 0%; opacity: 1; - transform-origin: 0% 0%; - transform: scaleX(1); } } @-webkit-keyframes antSlideLeftOut { 0% { + -webkit-transform: scaleX(1); + transform: scaleX(1); + -webkit-transform-origin: 0% 0%; + transform-origin: 0% 0%; opacity: 1; - transform-origin: 0% 0%; - transform: scaleX(1); } 100% { + -webkit-transform: scaleX(0.8); + transform: scaleX(0.8); + -webkit-transform-origin: 0% 0%; + transform-origin: 0% 0%; opacity: 0; - transform-origin: 0% 0%; - transform: scaleX(0.8); } } @keyframes antSlideLeftOut { 0% { + -webkit-transform: scaleX(1); + transform: scaleX(1); + -webkit-transform-origin: 0% 0%; + transform-origin: 0% 0%; opacity: 1; - transform-origin: 0% 0%; - transform: scaleX(1); } 100% { + -webkit-transform: scaleX(0.8); + transform: scaleX(0.8); + -webkit-transform-origin: 0% 0%; + transform-origin: 0% 0%; opacity: 0; - transform-origin: 0% 0%; - transform: scaleX(0.8); } } @-webkit-keyframes antSlideRightIn { 0% { + -webkit-transform: scaleX(0.8); + transform: scaleX(0.8); + -webkit-transform-origin: 100% 0%; + transform-origin: 100% 0%; opacity: 0; - transform-origin: 100% 0%; - transform: scaleX(0.8); } 100% { + -webkit-transform: scaleX(1); + transform: scaleX(1); + -webkit-transform-origin: 100% 0%; + transform-origin: 100% 0%; opacity: 1; - transform-origin: 100% 0%; - transform: scaleX(1); } } @keyframes antSlideRightIn { 0% { + -webkit-transform: scaleX(0.8); + transform: scaleX(0.8); + -webkit-transform-origin: 100% 0%; + transform-origin: 100% 0%; opacity: 0; - transform-origin: 100% 0%; - transform: scaleX(0.8); } 100% { + -webkit-transform: scaleX(1); + transform: scaleX(1); + -webkit-transform-origin: 100% 0%; + transform-origin: 100% 0%; opacity: 1; - transform-origin: 100% 0%; - transform: scaleX(1); } } @-webkit-keyframes antSlideRightOut { 0% { + -webkit-transform: scaleX(1); + transform: scaleX(1); + -webkit-transform-origin: 100% 0%; + transform-origin: 100% 0%; opacity: 1; - transform-origin: 100% 0%; - transform: scaleX(1); } 100% { + -webkit-transform: scaleX(0.8); + transform: scaleX(0.8); + -webkit-transform-origin: 100% 0%; + transform-origin: 100% 0%; opacity: 0; - transform-origin: 100% 0%; - transform: scaleX(0.8); } } @keyframes antSlideRightOut { 0% { + -webkit-transform: scaleX(1); + transform: scaleX(1); + -webkit-transform-origin: 100% 0%; + transform-origin: 100% 0%; opacity: 1; - transform-origin: 100% 0%; - transform: scaleX(1); } 100% { + -webkit-transform: scaleX(0.8); + transform: scaleX(0.8); + -webkit-transform-origin: 100% 0%; + transform-origin: 100% 0%; opacity: 0; - transform-origin: 100% 0%; - transform: scaleX(0.8); } } .swing-enter, @@ -1233,37 +1363,47 @@ mark { @-webkit-keyframes antSwingIn { 0%, 100% { - transform: translateX(0); + -webkit-transform: translateX(0); + transform: translateX(0); } 20% { - transform: translateX(-10px); + -webkit-transform: translateX(-10px); + transform: translateX(-10px); } 40% { - transform: translateX(10px); + -webkit-transform: translateX(10px); + transform: translateX(10px); } 60% { - transform: translateX(-5px); + -webkit-transform: translateX(-5px); + transform: translateX(-5px); } 80% { - transform: translateX(5px); + -webkit-transform: translateX(5px); + transform: translateX(5px); } } @keyframes antSwingIn { 0%, 100% { - transform: translateX(0); + -webkit-transform: translateX(0); + transform: translateX(0); } 20% { - transform: translateX(-10px); + -webkit-transform: translateX(-10px); + transform: translateX(-10px); } 40% { - transform: translateX(10px); + -webkit-transform: translateX(10px); + transform: translateX(10px); } 60% { - transform: translateX(-5px); + -webkit-transform: translateX(-5px); + transform: translateX(-5px); } 80% { - transform: translateX(5px); + -webkit-transform: translateX(5px); + transform: translateX(5px); } } .zoom-enter, @@ -1299,7 +1439,9 @@ mark { } .zoom-enter, .zoom-appear { - transform: scale(0); + -webkit-transform: scale(0); + transform: scale(0); + opacity: 0; -webkit-animation-timing-function: cubic-bezier(0.08, 0.82, 0.17, 1); animation-timing-function: cubic-bezier(0.08, 0.82, 0.17, 1); } @@ -1340,7 +1482,9 @@ mark { } .zoom-big-enter, .zoom-big-appear { - transform: scale(0); + -webkit-transform: scale(0); + transform: scale(0); + opacity: 0; -webkit-animation-timing-function: cubic-bezier(0.08, 0.82, 0.17, 1); animation-timing-function: cubic-bezier(0.08, 0.82, 0.17, 1); } @@ -1381,7 +1525,9 @@ mark { } .zoom-big-fast-enter, .zoom-big-fast-appear { - transform: scale(0); + -webkit-transform: scale(0); + transform: scale(0); + opacity: 0; -webkit-animation-timing-function: cubic-bezier(0.08, 0.82, 0.17, 1); animation-timing-function: cubic-bezier(0.08, 0.82, 0.17, 1); } @@ -1422,7 +1568,9 @@ mark { } .zoom-up-enter, .zoom-up-appear { - transform: scale(0); + -webkit-transform: scale(0); + transform: scale(0); + opacity: 0; -webkit-animation-timing-function: cubic-bezier(0.08, 0.82, 0.17, 1); animation-timing-function: cubic-bezier(0.08, 0.82, 0.17, 1); } @@ -1463,7 +1611,9 @@ mark { } .zoom-down-enter, .zoom-down-appear { - transform: scale(0); + -webkit-transform: scale(0); + transform: scale(0); + opacity: 0; -webkit-animation-timing-function: cubic-bezier(0.08, 0.82, 0.17, 1); animation-timing-function: cubic-bezier(0.08, 0.82, 0.17, 1); } @@ -1504,7 +1654,9 @@ mark { } .zoom-left-enter, .zoom-left-appear { - transform: scale(0); + -webkit-transform: scale(0); + transform: scale(0); + opacity: 0; -webkit-animation-timing-function: cubic-bezier(0.08, 0.82, 0.17, 1); animation-timing-function: cubic-bezier(0.08, 0.82, 0.17, 1); } @@ -1545,7 +1697,9 @@ mark { } .zoom-right-enter, .zoom-right-appear { - transform: scale(0); + -webkit-transform: scale(0); + transform: scale(0); + opacity: 0; -webkit-animation-timing-function: cubic-bezier(0.08, 0.82, 0.17, 1); animation-timing-function: cubic-bezier(0.08, 0.82, 0.17, 1); } @@ -1555,258 +1709,341 @@ mark { } @-webkit-keyframes antZoomIn { 0% { + -webkit-transform: scale(0.2); + transform: scale(0.2); opacity: 0; - transform: scale(0.2); } 100% { + -webkit-transform: scale(1); + transform: scale(1); opacity: 1; - transform: scale(1); } } @keyframes antZoomIn { 0% { + -webkit-transform: scale(0.2); + transform: scale(0.2); opacity: 0; - transform: scale(0.2); } 100% { + -webkit-transform: scale(1); + transform: scale(1); opacity: 1; - transform: scale(1); } } @-webkit-keyframes antZoomOut { 0% { - transform: scale(1); + -webkit-transform: scale(1); + transform: scale(1); } 100% { + -webkit-transform: scale(0.2); + transform: scale(0.2); opacity: 0; - transform: scale(0.2); } } @keyframes antZoomOut { 0% { - transform: scale(1); + -webkit-transform: scale(1); + transform: scale(1); } 100% { + -webkit-transform: scale(0.2); + transform: scale(0.2); opacity: 0; - transform: scale(0.2); } } @-webkit-keyframes antZoomBigIn { 0% { + -webkit-transform: scale(0.8); + transform: scale(0.8); opacity: 0; - transform: scale(0.8); } 100% { - transform: scale(1); + -webkit-transform: scale(1); + transform: scale(1); + opacity: 1; } } @keyframes antZoomBigIn { 0% { + -webkit-transform: scale(0.8); + transform: scale(0.8); opacity: 0; - transform: scale(0.8); } 100% { - transform: scale(1); + -webkit-transform: scale(1); + transform: scale(1); + opacity: 1; } } @-webkit-keyframes antZoomBigOut { 0% { - transform: scale(1); + -webkit-transform: scale(1); + transform: scale(1); } 100% { + -webkit-transform: scale(0.8); + transform: scale(0.8); opacity: 0; - transform: scale(0.8); } } @keyframes antZoomBigOut { 0% { - transform: scale(1); + -webkit-transform: scale(1); + transform: scale(1); } 100% { + -webkit-transform: scale(0.8); + transform: scale(0.8); opacity: 0; - transform: scale(0.8); } } @-webkit-keyframes antZoomUpIn { 0% { + -webkit-transform: scale(0.8); + transform: scale(0.8); + -webkit-transform-origin: 50% 0%; + transform-origin: 50% 0%; opacity: 0; - transform-origin: 50% 0%; - transform: scale(0.8); } 100% { - transform-origin: 50% 0%; - transform: scale(1); + -webkit-transform: scale(1); + transform: scale(1); + -webkit-transform-origin: 50% 0%; + transform-origin: 50% 0%; } } @keyframes antZoomUpIn { 0% { + -webkit-transform: scale(0.8); + transform: scale(0.8); + -webkit-transform-origin: 50% 0%; + transform-origin: 50% 0%; opacity: 0; - transform-origin: 50% 0%; - transform: scale(0.8); } 100% { - transform-origin: 50% 0%; - transform: scale(1); + -webkit-transform: scale(1); + transform: scale(1); + -webkit-transform-origin: 50% 0%; + transform-origin: 50% 0%; } } @-webkit-keyframes antZoomUpOut { 0% { - transform-origin: 50% 0%; - transform: scale(1); + -webkit-transform: scale(1); + transform: scale(1); + -webkit-transform-origin: 50% 0%; + transform-origin: 50% 0%; } 100% { + -webkit-transform: scale(0.8); + transform: scale(0.8); + -webkit-transform-origin: 50% 0%; + transform-origin: 50% 0%; opacity: 0; - transform-origin: 50% 0%; - transform: scale(0.8); } } @keyframes antZoomUpOut { 0% { - transform-origin: 50% 0%; - transform: scale(1); + -webkit-transform: scale(1); + transform: scale(1); + -webkit-transform-origin: 50% 0%; + transform-origin: 50% 0%; } 100% { + -webkit-transform: scale(0.8); + transform: scale(0.8); + -webkit-transform-origin: 50% 0%; + transform-origin: 50% 0%; opacity: 0; - transform-origin: 50% 0%; - transform: scale(0.8); } } @-webkit-keyframes antZoomLeftIn { 0% { + -webkit-transform: scale(0.8); + transform: scale(0.8); + -webkit-transform-origin: 0% 50%; + transform-origin: 0% 50%; opacity: 0; - transform-origin: 0% 50%; - transform: scale(0.8); } 100% { - transform-origin: 0% 50%; - transform: scale(1); + -webkit-transform: scale(1); + transform: scale(1); + -webkit-transform-origin: 0% 50%; + transform-origin: 0% 50%; } } @keyframes antZoomLeftIn { 0% { + -webkit-transform: scale(0.8); + transform: scale(0.8); + -webkit-transform-origin: 0% 50%; + transform-origin: 0% 50%; opacity: 0; - transform-origin: 0% 50%; - transform: scale(0.8); } 100% { - transform-origin: 0% 50%; - transform: scale(1); + -webkit-transform: scale(1); + transform: scale(1); + -webkit-transform-origin: 0% 50%; + transform-origin: 0% 50%; } } @-webkit-keyframes antZoomLeftOut { 0% { - transform-origin: 0% 50%; - transform: scale(1); + -webkit-transform: scale(1); + transform: scale(1); + -webkit-transform-origin: 0% 50%; + transform-origin: 0% 50%; } 100% { + -webkit-transform: scale(0.8); + transform: scale(0.8); + -webkit-transform-origin: 0% 50%; + transform-origin: 0% 50%; opacity: 0; - transform-origin: 0% 50%; - transform: scale(0.8); } } @keyframes antZoomLeftOut { 0% { - transform-origin: 0% 50%; - transform: scale(1); + -webkit-transform: scale(1); + transform: scale(1); + -webkit-transform-origin: 0% 50%; + transform-origin: 0% 50%; } 100% { + -webkit-transform: scale(0.8); + transform: scale(0.8); + -webkit-transform-origin: 0% 50%; + transform-origin: 0% 50%; opacity: 0; - transform-origin: 0% 50%; - transform: scale(0.8); } } @-webkit-keyframes antZoomRightIn { 0% { + -webkit-transform: scale(0.8); + transform: scale(0.8); + -webkit-transform-origin: 100% 50%; + transform-origin: 100% 50%; opacity: 0; - transform-origin: 100% 50%; - transform: scale(0.8); } 100% { - transform-origin: 100% 50%; - transform: scale(1); + -webkit-transform: scale(1); + transform: scale(1); + -webkit-transform-origin: 100% 50%; + transform-origin: 100% 50%; } } @keyframes antZoomRightIn { 0% { + -webkit-transform: scale(0.8); + transform: scale(0.8); + -webkit-transform-origin: 100% 50%; + transform-origin: 100% 50%; opacity: 0; - transform-origin: 100% 50%; - transform: scale(0.8); } 100% { - transform-origin: 100% 50%; - transform: scale(1); + -webkit-transform: scale(1); + transform: scale(1); + -webkit-transform-origin: 100% 50%; + transform-origin: 100% 50%; } } @-webkit-keyframes antZoomRightOut { 0% { - transform-origin: 100% 50%; - transform: scale(1); + -webkit-transform: scale(1); + transform: scale(1); + -webkit-transform-origin: 100% 50%; + transform-origin: 100% 50%; } 100% { + -webkit-transform: scale(0.8); + transform: scale(0.8); + -webkit-transform-origin: 100% 50%; + transform-origin: 100% 50%; opacity: 0; - transform-origin: 100% 50%; - transform: scale(0.8); } } @keyframes antZoomRightOut { 0% { - transform-origin: 100% 50%; - transform: scale(1); + -webkit-transform: scale(1); + transform: scale(1); + -webkit-transform-origin: 100% 50%; + transform-origin: 100% 50%; } 100% { + -webkit-transform: scale(0.8); + transform: scale(0.8); + -webkit-transform-origin: 100% 50%; + transform-origin: 100% 50%; opacity: 0; - transform-origin: 100% 50%; - transform: scale(0.8); } } @-webkit-keyframes antZoomDownIn { 0% { + -webkit-transform: scale(0.8); + transform: scale(0.8); + -webkit-transform-origin: 50% 100%; + transform-origin: 50% 100%; opacity: 0; - transform-origin: 50% 100%; - transform: scale(0.8); } 100% { - transform-origin: 50% 100%; - transform: scale(1); + -webkit-transform: scale(1); + transform: scale(1); + -webkit-transform-origin: 50% 100%; + transform-origin: 50% 100%; } } @keyframes antZoomDownIn { 0% { + -webkit-transform: scale(0.8); + transform: scale(0.8); + -webkit-transform-origin: 50% 100%; + transform-origin: 50% 100%; opacity: 0; - transform-origin: 50% 100%; - transform: scale(0.8); } 100% { - transform-origin: 50% 100%; - transform: scale(1); + -webkit-transform: scale(1); + transform: scale(1); + -webkit-transform-origin: 50% 100%; + transform-origin: 50% 100%; } } @-webkit-keyframes antZoomDownOut { 0% { - transform-origin: 50% 100%; - transform: scale(1); + -webkit-transform: scale(1); + transform: scale(1); + -webkit-transform-origin: 50% 100%; + transform-origin: 50% 100%; } 100% { + -webkit-transform: scale(0.8); + transform: scale(0.8); + -webkit-transform-origin: 50% 100%; + transform-origin: 50% 100%; opacity: 0; - transform-origin: 50% 100%; - transform: scale(0.8); } } @keyframes antZoomDownOut { 0% { - transform-origin: 50% 100%; - transform: scale(1); + -webkit-transform: scale(1); + transform: scale(1); + -webkit-transform-origin: 50% 100%; + transform-origin: 50% 100%; } 100% { + -webkit-transform: scale(0.8); + transform: scale(0.8); + -webkit-transform-origin: 50% 100%; + transform-origin: 50% 100%; opacity: 0; - transform-origin: 50% 100%; - transform: scale(0.8); } } .ant-motion-collapse { overflow: hidden; } .ant-motion-collapse-active { + -webkit-transition: height 0.15s cubic-bezier(0.645, 0.045, 0.355, 1), opacity 0.15s cubic-bezier(0.645, 0.045, 0.355, 1) !important; transition: height 0.15s cubic-bezier(0.645, 0.045, 0.355, 1), opacity 0.15s cubic-bezier(0.645, 0.045, 0.355, 1) !important; } .ant-affix { @@ -1814,15 +2051,15 @@ mark { z-index: 10; } .ant-alert { - font-family: "Chinese Quote", -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"; - font-size: 14px; - font-variant: tabular-nums; - line-height: 1.5; - color: rgba(0, 0, 0, 0.65); box-sizing: border-box; margin: 0; padding: 0; + color: rgba(0, 0, 0, 0.65); + font-size: 14px; + font-variant: tabular-nums; + line-height: 1.5; list-style: none; + font-feature-settings: 'tnum'; position: relative; padding: 8px 15px 8px 37px; border-radius: 5px; @@ -1834,69 +2071,70 @@ mark { padding-right: 30px; } .ant-alert-icon { + position: absolute; top: 11.5px; left: 16px; - position: absolute; } .ant-alert-description { + display: none; font-size: 14px; line-height: 22px; - display: none; } .ant-alert-success { - border: 1px solid #b7eb8f; background-color: #f6ffed; + border: 1px solid #b7eb8f; } .ant-alert-success .ant-alert-icon { color: #52c41a; } .ant-alert-info { - border: 1px solid #91d5ff; background-color: #e6f7ff; + border: 1px solid #91d5ff; } .ant-alert-info .ant-alert-icon { color: #1890ff; } .ant-alert-warning { - border: 1px solid #ffe58f; background-color: #fffbe6; + border: 1px solid #ffe58f; } .ant-alert-warning .ant-alert-icon { color: #faad14; } .ant-alert-error { - border: 1px solid #ffa39e; background-color: #fff1f0; + border: 1px solid #ffa39e; } .ant-alert-error .ant-alert-icon { color: #f5222d; } .ant-alert-close-icon { - font-size: 12px; position: absolute; - right: 16px; top: 8px; - line-height: 22px; + right: 16px; overflow: hidden; + font-size: 12px; + line-height: 22px; cursor: pointer; } .ant-alert-close-icon .anticon-close { color: rgba(0, 0, 0, 0.45); + -webkit-transition: color 0.3s; transition: color 0.3s; } .ant-alert-close-icon .anticon-close:hover { - color: #404040; + color: rgba(0, 0, 0, 0.75); } .ant-alert-close-text { position: absolute; right: 16px; } .ant-alert-with-description { - padding: 15px 15px 15px 64px; position: relative; - border-radius: 5px; + padding: 15px 15px 15px 64px; color: rgba(0, 0, 0, 0.65); line-height: 1.5; + border-radius: 5px; } .ant-alert-with-description.ant-alert-no-icon { padding: 15px; @@ -1911,14 +2149,14 @@ mark { position: absolute; top: 16px; right: 16px; - cursor: pointer; font-size: 14px; + cursor: pointer; } .ant-alert-with-description .ant-alert-message { - font-size: 16px; - color: rgba(0, 0, 0, 0.85); display: block; margin-bottom: 4px; + color: rgba(0, 0, 0, 0.85); + font-size: 16px; } .ant-alert-with-description .ant-alert-description { display: block; @@ -1928,8 +2166,10 @@ mark { margin: 0; padding-top: 0; padding-bottom: 0; + -webkit-transform-origin: 50% 0; + transform-origin: 50% 0; + -webkit-transition: all 0.3s cubic-bezier(0.78, 0.14, 0.15, 0.86); transition: all 0.3s cubic-bezier(0.78, 0.14, 0.15, 0.86); - transform-origin: 50% 0; } .ant-alert-slide-up-leave { -webkit-animation: antAlertSlideUpOut 0.3s cubic-bezier(0.78, 0.14, 0.15, 0.86); @@ -1938,103 +2178,121 @@ mark { animation-fill-mode: both; } .ant-alert-banner { - border-radius: 0; - border: 0; margin-bottom: 0; + border: 0; + border-radius: 0; } @-webkit-keyframes antAlertSlideUpIn { 0% { + -webkit-transform: scaleY(0); + transform: scaleY(0); + -webkit-transform-origin: 0% 0%; + transform-origin: 0% 0%; opacity: 0; - transform-origin: 0% 0%; - transform: scaleY(0); } 100% { + -webkit-transform: scaleY(1); + transform: scaleY(1); + -webkit-transform-origin: 0% 0%; + transform-origin: 0% 0%; opacity: 1; - transform-origin: 0% 0%; - transform: scaleY(1); } } @keyframes antAlertSlideUpIn { 0% { + -webkit-transform: scaleY(0); + transform: scaleY(0); + -webkit-transform-origin: 0% 0%; + transform-origin: 0% 0%; opacity: 0; - transform-origin: 0% 0%; - transform: scaleY(0); } 100% { + -webkit-transform: scaleY(1); + transform: scaleY(1); + -webkit-transform-origin: 0% 0%; + transform-origin: 0% 0%; opacity: 1; - transform-origin: 0% 0%; - transform: scaleY(1); } } @-webkit-keyframes antAlertSlideUpOut { 0% { + -webkit-transform: scaleY(1); + transform: scaleY(1); + -webkit-transform-origin: 0% 0%; + transform-origin: 0% 0%; opacity: 1; - transform-origin: 0% 0%; - transform: scaleY(1); } 100% { + -webkit-transform: scaleY(0); + transform: scaleY(0); + -webkit-transform-origin: 0% 0%; + transform-origin: 0% 0%; opacity: 0; - transform-origin: 0% 0%; - transform: scaleY(0); } } @keyframes antAlertSlideUpOut { 0% { + -webkit-transform: scaleY(1); + transform: scaleY(1); + -webkit-transform-origin: 0% 0%; + transform-origin: 0% 0%; opacity: 1; - transform-origin: 0% 0%; - transform: scaleY(1); } 100% { + -webkit-transform: scaleY(0); + transform: scaleY(0); + -webkit-transform-origin: 0% 0%; + transform-origin: 0% 0%; opacity: 0; - transform-origin: 0% 0%; - transform: scaleY(0); } } .ant-anchor { - font-family: "Chinese Quote", -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"; - font-size: 14px; - font-variant: tabular-nums; - line-height: 1.5; - color: rgba(0, 0, 0, 0.65); box-sizing: border-box; margin: 0; padding: 0; + color: rgba(0, 0, 0, 0.65); + font-size: 14px; + font-variant: tabular-nums; + line-height: 1.5; list-style: none; + font-feature-settings: 'tnum'; position: relative; padding-left: 2px; } .ant-anchor-wrapper { - background-color: #fff; - overflow: auto; - padding-left: 4px; margin-left: -4px; + padding-left: 4px; + overflow: auto; + background-color: #fff; } .ant-anchor-ink { position: absolute; - height: 100%; - left: 0; top: 0; + left: 0; + height: 100%; } -.ant-anchor-ink:before { - content: ' '; +.ant-anchor-ink::before { position: relative; + display: block; width: 2px; height: 100%; - display: block; - background-color: #e8e8e8; margin: 0 auto; + background-color: #e8e8e8; + content: ' '; } .ant-anchor-ink-ball { - display: none; position: absolute; + left: 50%; + display: none; width: 8px; height: 8px; - border-radius: 8px; - border: 2px solid #E64448; background-color: #fff; - left: 50%; + border: 2px solid #E64448; + border-radius: 8px; + -webkit-transform: translateX(-50%); + transform: translateX(-50%); + -webkit-transition: top 0.3s ease-in-out; transition: top 0.3s ease-in-out; - transform: translateX(-50%); } .ant-anchor-ink-ball.visible { display: inline-block; @@ -2047,14 +2305,15 @@ mark { line-height: 1.143; } .ant-anchor-link-title { - display: block; position: relative; - transition: all 0.3s; + display: block; + margin-bottom: 6px; + overflow: hidden; color: rgba(0, 0, 0, 0.65); white-space: nowrap; - overflow: hidden; text-overflow: ellipsis; - margin-bottom: 6px; + -webkit-transition: all 0.3s; + transition: all 0.3s; } .ant-anchor-link-title:only-child { margin-bottom: 0; @@ -2067,29 +2326,29 @@ mark { padding-bottom: 5px; } .ant-select-auto-complete { - font-family: "Chinese Quote", -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"; - font-size: 14px; - font-variant: tabular-nums; - line-height: 1.5; - color: rgba(0, 0, 0, 0.65); box-sizing: border-box; margin: 0; padding: 0; + color: rgba(0, 0, 0, 0.65); + font-size: 14px; + font-variant: tabular-nums; + line-height: 1.5; list-style: none; + font-feature-settings: 'tnum'; } .ant-select-auto-complete.ant-select .ant-select-selection { border: 0; box-shadow: none; } .ant-select-auto-complete.ant-select .ant-select-selection__rendered { - margin-left: 0; - margin-right: 0; height: 100%; + margin-right: 0; + margin-left: 0; line-height: 32px; } .ant-select-auto-complete.ant-select .ant-select-selection__placeholder { - margin-left: 12px; margin-right: 12px; + margin-left: 12px; } .ant-select-auto-complete.ant-select .ant-select-selection--single { height: auto; @@ -2102,10 +2361,10 @@ mark { margin-right: 0 !important; } .ant-select-auto-complete.ant-select .ant-input { + height: 32px; + line-height: 1.5; background: transparent; border-width: 1px; - line-height: 1.5; - height: 32px; } .ant-select-auto-complete.ant-select .ant-input:focus, .ant-select-auto-complete.ant-select .ant-input:hover { @@ -2113,10 +2372,10 @@ mark { border-right-width: 1px !important; } .ant-select-auto-complete.ant-select .ant-input[disabled] { + color: rgba(0, 0, 0, 0.25); background-color: #f5f5f5; - opacity: 1; cursor: not-allowed; - color: rgba(0, 0, 0, 0.25); + opacity: 1; background-color: transparent; } .ant-select-auto-complete.ant-select .ant-input[disabled]:hover { @@ -2127,36 +2386,36 @@ mark { line-height: 40px; } .ant-select-auto-complete.ant-select-lg .ant-input { + height: 40px; padding-top: 6px; padding-bottom: 6px; - height: 40px; } .ant-select-auto-complete.ant-select-sm .ant-select-selection__rendered { line-height: 24px; } .ant-select-auto-complete.ant-select-sm .ant-input { + height: 24px; padding-top: 1px; padding-bottom: 1px; - height: 24px; } .ant-avatar { - font-family: "Chinese Quote", -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"; - font-size: 14px; - font-variant: tabular-nums; - line-height: 1.5; - color: rgba(0, 0, 0, 0.65); box-sizing: border-box; margin: 0; padding: 0; + color: rgba(0, 0, 0, 0.65); + font-size: 14px; + font-variant: tabular-nums; + line-height: 1.5; list-style: none; + font-feature-settings: 'tnum'; + position: relative; display: inline-block; - text-align: center; - background: #ccc; + overflow: hidden; color: #fff; white-space: nowrap; - position: relative; - overflow: hidden; + text-align: center; vertical-align: middle; + background: #ccc; width: 32px; height: 32px; line-height: 32px; @@ -2168,7 +2427,8 @@ mark { .ant-avatar-string { position: absolute; left: 50%; - transform-origin: 0 center; + -webkit-transform-origin: 0 center; + transform-origin: 0 center; } .ant-avatar.ant-avatar-icon { font-size: 18px; @@ -2182,7 +2442,8 @@ mark { .ant-avatar-lg-string { position: absolute; left: 50%; - transform-origin: 0 center; + -webkit-transform-origin: 0 center; + transform-origin: 0 center; } .ant-avatar-lg.ant-avatar-icon { font-size: 24px; @@ -2196,7 +2457,8 @@ mark { .ant-avatar-sm-string { position: absolute; left: 50%; - transform-origin: 0 center; + -webkit-transform-origin: 0 center; + transform-origin: 0 center; } .ant-avatar-sm.ant-avatar-icon { font-size: 14px; @@ -2205,46 +2467,48 @@ mark { border-radius: 5px; } .ant-avatar > img { + display: block; width: 100%; height: 100%; - display: block; } .ant-back-top { - font-family: "Chinese Quote", -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"; - font-size: 14px; - font-variant: tabular-nums; - line-height: 1.5; - color: rgba(0, 0, 0, 0.65); box-sizing: border-box; margin: 0; padding: 0; + color: rgba(0, 0, 0, 0.65); + font-size: 14px; + font-variant: tabular-nums; + line-height: 1.5; list-style: none; - z-index: 10; + font-feature-settings: 'tnum'; position: fixed; right: 100px; bottom: 50px; - height: 40px; + z-index: 10; width: 40px; + height: 40px; cursor: pointer; } .ant-back-top-content { - height: 40px; width: 40px; - border-radius: 20px; - background-color: rgba(0, 0, 0, 0.45); + height: 40px; + overflow: hidden; color: #fff; text-align: center; + background-color: rgba(0, 0, 0, 0.45); + border-radius: 20px; + -webkit-transition: all 0.3s cubic-bezier(0.645, 0.045, 0.355, 1); transition: all 0.3s cubic-bezier(0.645, 0.045, 0.355, 1); - overflow: hidden; } .ant-back-top-content:hover { background-color: rgba(0, 0, 0, 0.65); + -webkit-transition: all 0.3s cubic-bezier(0.645, 0.045, 0.355, 1); transition: all 0.3s cubic-bezier(0.645, 0.045, 0.355, 1); } .ant-back-top-icon { - margin: 12px auto; width: 14px; height: 16px; + margin: 12px auto; background: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACQAAAAoCAYAAACWwljjAAAABGdBTUEAALGPC/xhBQAAAbtJREFUWAntmMtKw0AUhhMvS5cuxILgQlRUpIggIoKIIoigG1eC+AA+jo+i6FIXBfeuXIgoeKVeitVWJX5HWhhDksnUpp3FDPyZk3Nm5nycmZKkXhAEOXSA3lG7muTeRzmfy6HneUvIhnYkQK+Q9NhAA0Opg0vBEhjBKHiyb8iGMyQMOYuK41BcBSypAL+MYXSKjtFAW7EAGEO3qN4uMQbbAkXiSfRQJ1H6a+yhlkKRcAoVFYiweYNjtCVQJJpBz2GCiPt7fBOZQpFgDpUikse5HgnkM4Fi4QX0Fpc5wf9EbLqpUCy4jMoJSXWhFwbMNgWKhVbRhy5jirhs9fy/oFhgHVVTJEs7RLZ8sSEoJm6iz7SZDMbJ+/OKERQTttCXQRLToRUmrKWCYuA2+jbN0MB4OQobYShfdTCgn/sL1K36M7TLrN3n+758aPy2rrpR6+/od5E8tf/A1uLS9aId5T7J3CNYihkQ4D9PiMdMC7mp4rjB9kjFjZp8BlnVHJBuO1yFXIV0FdDF3RlyFdJVQBdv5AxVdIsq8apiZ2PyYO1EVykesGfZEESsCkweyR8MUW+V8uJ1gkYipmpdP1pm2aJVPEGzAAAAAElFTkSuQmCC) 100%/100% no-repeat; } @media screen and (max-width: 768px) { @@ -2258,35 +2522,34 @@ mark { } } .ant-badge { - font-family: "Chinese Quote", -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"; - font-size: 14px; - font-variant: tabular-nums; - line-height: 1.5; - color: rgba(0, 0, 0, 0.65); box-sizing: border-box; margin: 0; padding: 0; + color: rgba(0, 0, 0, 0.65); + font-size: 14px; + font-variant: tabular-nums; + line-height: 1.5; list-style: none; + font-feature-settings: 'tnum'; position: relative; display: inline-block; - line-height: 1; color: unset; + line-height: 1; } .ant-badge-count { - top: -10px; - height: 20px; - border-radius: 10px; + z-index: 10; min-width: 20px; - background: #f5222d; - color: #fff; - line-height: 20px; - text-align: center; + height: 20px; padding: 0 6px; - font-size: 12px; + color: #fff; font-weight: normal; + font-size: 12px; + line-height: 20px; white-space: nowrap; + text-align: center; + background: #f5222d; + border-radius: 10px; box-shadow: 0 0 0 1px #fff; - z-index: 10; } .ant-badge-count a, .ant-badge-count a:hover { @@ -2296,56 +2559,55 @@ mark { padding: 0 8px; } .ant-badge-dot { - top: -3px; - height: 6px; + z-index: 10; width: 6px; - border-radius: 100%; + height: 6px; background: #f5222d; - z-index: 10; + border-radius: 100%; box-shadow: 0 0 0 1px #fff; } .ant-badge-count, .ant-badge-dot, .ant-badge .ant-scroll-number-custom-component { position: absolute; + top: 0; right: 0; - transform: translateX(50%); - transform-origin: 100%; -} -.ant-badge .ant-scroll-number-custom-component { - transform: translate(50%, -50%); + -webkit-transform: translate(50%, -50%); + transform: translate(50%, -50%); + -webkit-transform-origin: 100% 0%; + transform-origin: 100% 0%; } .ant-badge-status { line-height: inherit; vertical-align: baseline; } .ant-badge-status-dot { + position: relative; + top: -1px; + display: inline-block; width: 6px; height: 6px; - display: inline-block; - border-radius: 50%; vertical-align: middle; - position: relative; - top: -1px; + border-radius: 50%; } .ant-badge-status-success { background-color: #52c41a; } .ant-badge-status-processing { - background-color: #1890ff; position: relative; + background-color: #1890ff; } -.ant-badge-status-processing:after { +.ant-badge-status-processing::after { position: absolute; top: 0; left: 0; width: 100%; height: 100%; - border-radius: 50%; border: 1px solid #1890ff; - content: ''; + border-radius: 50%; -webkit-animation: antStatusProcessing 1.2s infinite ease-in-out; animation: antStatusProcessing 1.2s infinite ease-in-out; + content: ''; } .ant-badge-status-default { background-color: #d9d9d9; @@ -2357,9 +2619,9 @@ mark { background-color: #faad14; } .ant-badge-status-text { + margin-left: 8px; color: rgba(0, 0, 0, 0.65); font-size: 14px; - margin-left: 8px; } .ant-badge-zoom-appear, .ant-badge-zoom-enter { @@ -2378,30 +2640,35 @@ mark { vertical-align: middle; } .ant-badge-not-a-wrapper .ant-scroll-number { + position: relative; top: auto; display: block; - position: relative; } .ant-badge-not-a-wrapper .ant-badge-count { - transform: none; + -webkit-transform: none; + transform: none; } @-webkit-keyframes antStatusProcessing { 0% { - transform: scale(0.8); + -webkit-transform: scale(0.8); + transform: scale(0.8); opacity: 0.5; } 100% { - transform: scale(2.4); + -webkit-transform: scale(2.4); + transform: scale(2.4); opacity: 0; } } @keyframes antStatusProcessing { 0% { - transform: scale(0.8); + -webkit-transform: scale(0.8); + transform: scale(0.8); opacity: 0.5; } 100% { - transform: scale(2.4); + -webkit-transform: scale(2.4); + transform: scale(2.4); opacity: 0; } } @@ -2410,8 +2677,9 @@ mark { } .ant-scroll-number-only { display: inline-block; - transition: all 0.3s cubic-bezier(0.645, 0.045, 0.355, 1); height: 20px; + -webkit-transition: all 0.3s cubic-bezier(0.645, 0.045, 0.355, 1); + transition: all 0.3s cubic-bezier(0.645, 0.045, 0.355, 1); } .ant-scroll-number-only > p { height: 20px; @@ -2419,49 +2687,57 @@ mark { } @-webkit-keyframes antZoomBadgeIn { 0% { + -webkit-transform: scale(0) translate(50%, -50%); + transform: scale(0) translate(50%, -50%); opacity: 0; - transform: scale(0) translateX(50%); } 100% { - transform: scale(1) translateX(50%); + -webkit-transform: scale(1) translate(50%, -50%); + transform: scale(1) translate(50%, -50%); } } @keyframes antZoomBadgeIn { 0% { + -webkit-transform: scale(0) translate(50%, -50%); + transform: scale(0) translate(50%, -50%); opacity: 0; - transform: scale(0) translateX(50%); } 100% { - transform: scale(1) translateX(50%); + -webkit-transform: scale(1) translate(50%, -50%); + transform: scale(1) translate(50%, -50%); } } @-webkit-keyframes antZoomBadgeOut { 0% { - transform: scale(1) translateX(50%); + -webkit-transform: scale(1) translate(50%, -50%); + transform: scale(1) translate(50%, -50%); } 100% { + -webkit-transform: scale(0) translate(50%, -50%); + transform: scale(0) translate(50%, -50%); opacity: 0; - transform: scale(0) translateX(50%); } } @keyframes antZoomBadgeOut { 0% { - transform: scale(1) translateX(50%); + -webkit-transform: scale(1) translate(50%, -50%); + transform: scale(1) translate(50%, -50%); } 100% { + -webkit-transform: scale(0) translate(50%, -50%); + transform: scale(0) translate(50%, -50%); opacity: 0; - transform: scale(0) translateX(50%); } } .ant-breadcrumb { - font-family: "Chinese Quote", -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"; - font-variant: tabular-nums; - line-height: 1.5; - color: rgba(0, 0, 0, 0.65); box-sizing: border-box; margin: 0; padding: 0; + color: rgba(0, 0, 0, 0.65); + font-variant: tabular-nums; + line-height: 1.5; list-style: none; + font-feature-settings: 'tnum'; color: rgba(0, 0, 0, 0.45); font-size: 14px; } @@ -2470,6 +2746,7 @@ mark { } .ant-breadcrumb a { color: rgba(0, 0, 0, 0.45); + -webkit-transition: color 0.3s; transition: color 0.3s; } .ant-breadcrumb a:hover { @@ -2490,25 +2767,26 @@ mark { } .ant-btn { line-height: 1.499; + position: relative; display: inline-block; font-weight: 400; + white-space: nowrap; text-align: center; - touch-action: manipulation; - cursor: pointer; background-image: none; border: 1px solid transparent; - white-space: nowrap; - padding: 0 15px; - font-size: 14px; - border-radius: 5px; - height: 32px; + box-shadow: 0 2px 0 rgba(0, 0, 0, 0.015); + cursor: pointer; + -webkit-transition: all 0.3s cubic-bezier(0.645, 0.045, 0.355, 1); + transition: all 0.3s cubic-bezier(0.645, 0.045, 0.355, 1); -webkit-user-select: none; -moz-user-select: none; -ms-user-select: none; user-select: none; - transition: all 0.3s cubic-bezier(0.645, 0.045, 0.355, 1); - position: relative; - box-shadow: 0 2px 0 rgba(0, 0, 0, 0.015); + touch-action: manipulation; + height: 32px; + padding: 0 15px; + font-size: 14px; + border-radius: 5px; color: rgba(0, 0, 0, 0.65); background-color: #fff; border-color: #d9d9d9; @@ -2537,28 +2815,28 @@ mark { pointer-events: none; } .ant-btn-lg { + height: 40px; padding: 0 15px; font-size: 16px; border-radius: 5px; - height: 40px; } .ant-btn-sm { + height: 24px; padding: 0 7px; font-size: 14px; border-radius: 5px; - height: 24px; } .ant-btn > a:only-child { color: currentColor; } -.ant-btn > a:only-child:after { - content: ''; +.ant-btn > a:only-child::after { position: absolute; top: 0; - left: 0; - bottom: 0; right: 0; + bottom: 0; + left: 0; background: transparent; + content: ''; } .ant-btn:hover, .ant-btn:focus { @@ -2570,15 +2848,15 @@ mark { .ant-btn:focus > a:only-child { color: currentColor; } -.ant-btn:hover > a:only-child:after, -.ant-btn:focus > a:only-child:after { - content: ''; +.ant-btn:hover > a:only-child::after, +.ant-btn:focus > a:only-child::after { position: absolute; top: 0; - left: 0; - bottom: 0; right: 0; + bottom: 0; + left: 0; background: transparent; + content: ''; } .ant-btn:active, .ant-btn.active { @@ -2590,24 +2868,29 @@ mark { .ant-btn.active > a:only-child { color: currentColor; } -.ant-btn:active > a:only-child:after, -.ant-btn.active > a:only-child:after { - content: ''; +.ant-btn:active > a:only-child::after, +.ant-btn.active > a:only-child::after { position: absolute; top: 0; - left: 0; - bottom: 0; right: 0; + bottom: 0; + left: 0; background: transparent; + content: ''; } +.ant-btn-disabled, .ant-btn.disabled, .ant-btn[disabled], +.ant-btn-disabled:hover, .ant-btn.disabled:hover, .ant-btn[disabled]:hover, +.ant-btn-disabled:focus, .ant-btn.disabled:focus, .ant-btn[disabled]:focus, +.ant-btn-disabled:active, .ant-btn.disabled:active, .ant-btn[disabled]:active, +.ant-btn-disabled.active, .ant-btn.disabled.active, .ant-btn[disabled].active { color: rgba(0, 0, 0, 0.25); @@ -2616,47 +2899,57 @@ mark { text-shadow: none; box-shadow: none; } +.ant-btn-disabled > a:only-child, .ant-btn.disabled > a:only-child, .ant-btn[disabled] > a:only-child, +.ant-btn-disabled:hover > a:only-child, .ant-btn.disabled:hover > a:only-child, .ant-btn[disabled]:hover > a:only-child, +.ant-btn-disabled:focus > a:only-child, .ant-btn.disabled:focus > a:only-child, .ant-btn[disabled]:focus > a:only-child, +.ant-btn-disabled:active > a:only-child, .ant-btn.disabled:active > a:only-child, .ant-btn[disabled]:active > a:only-child, +.ant-btn-disabled.active > a:only-child, .ant-btn.disabled.active > a:only-child, .ant-btn[disabled].active > a:only-child { color: currentColor; } -.ant-btn.disabled > a:only-child:after, -.ant-btn[disabled] > a:only-child:after, -.ant-btn.disabled:hover > a:only-child:after, -.ant-btn[disabled]:hover > a:only-child:after, -.ant-btn.disabled:focus > a:only-child:after, -.ant-btn[disabled]:focus > a:only-child:after, -.ant-btn.disabled:active > a:only-child:after, -.ant-btn[disabled]:active > a:only-child:after, -.ant-btn.disabled.active > a:only-child:after, -.ant-btn[disabled].active > a:only-child:after { - content: ''; +.ant-btn-disabled > a:only-child::after, +.ant-btn.disabled > a:only-child::after, +.ant-btn[disabled] > a:only-child::after, +.ant-btn-disabled:hover > a:only-child::after, +.ant-btn.disabled:hover > a:only-child::after, +.ant-btn[disabled]:hover > a:only-child::after, +.ant-btn-disabled:focus > a:only-child::after, +.ant-btn.disabled:focus > a:only-child::after, +.ant-btn[disabled]:focus > a:only-child::after, +.ant-btn-disabled:active > a:only-child::after, +.ant-btn.disabled:active > a:only-child::after, +.ant-btn[disabled]:active > a:only-child::after, +.ant-btn-disabled.active > a:only-child::after, +.ant-btn.disabled.active > a:only-child::after, +.ant-btn[disabled].active > a:only-child::after { position: absolute; top: 0; - left: 0; - bottom: 0; right: 0; + bottom: 0; + left: 0; background: transparent; + content: ''; } .ant-btn:hover, .ant-btn:focus, .ant-btn:active, .ant-btn.active { - background: #fff; text-decoration: none; + background: #fff; } .ant-btn > i, .ant-btn > span { - pointer-events: none; display: inline-block; + pointer-events: none; } .ant-btn-primary { color: #fff; @@ -2668,14 +2961,14 @@ mark { .ant-btn-primary > a:only-child { color: currentColor; } -.ant-btn-primary > a:only-child:after { - content: ''; +.ant-btn-primary > a:only-child::after { position: absolute; top: 0; - left: 0; - bottom: 0; right: 0; + bottom: 0; + left: 0; background: transparent; + content: ''; } .ant-btn-primary:hover, .ant-btn-primary:focus { @@ -2687,15 +2980,15 @@ mark { .ant-btn-primary:focus > a:only-child { color: currentColor; } -.ant-btn-primary:hover > a:only-child:after, -.ant-btn-primary:focus > a:only-child:after { - content: ''; +.ant-btn-primary:hover > a:only-child::after, +.ant-btn-primary:focus > a:only-child::after { position: absolute; top: 0; - left: 0; - bottom: 0; right: 0; + bottom: 0; + left: 0; background: transparent; + content: ''; } .ant-btn-primary:active, .ant-btn-primary.active { @@ -2707,24 +3000,29 @@ mark { .ant-btn-primary.active > a:only-child { color: currentColor; } -.ant-btn-primary:active > a:only-child:after, -.ant-btn-primary.active > a:only-child:after { - content: ''; +.ant-btn-primary:active > a:only-child::after, +.ant-btn-primary.active > a:only-child::after { position: absolute; top: 0; - left: 0; - bottom: 0; right: 0; + bottom: 0; + left: 0; background: transparent; + content: ''; } +.ant-btn-primary-disabled, .ant-btn-primary.disabled, .ant-btn-primary[disabled], +.ant-btn-primary-disabled:hover, .ant-btn-primary.disabled:hover, .ant-btn-primary[disabled]:hover, +.ant-btn-primary-disabled:focus, .ant-btn-primary.disabled:focus, .ant-btn-primary[disabled]:focus, +.ant-btn-primary-disabled:active, .ant-btn-primary.disabled:active, .ant-btn-primary[disabled]:active, +.ant-btn-primary-disabled.active, .ant-btn-primary.disabled.active, .ant-btn-primary[disabled].active { color: rgba(0, 0, 0, 0.25); @@ -2733,35 +3031,45 @@ mark { text-shadow: none; box-shadow: none; } +.ant-btn-primary-disabled > a:only-child, .ant-btn-primary.disabled > a:only-child, .ant-btn-primary[disabled] > a:only-child, +.ant-btn-primary-disabled:hover > a:only-child, .ant-btn-primary.disabled:hover > a:only-child, .ant-btn-primary[disabled]:hover > a:only-child, +.ant-btn-primary-disabled:focus > a:only-child, .ant-btn-primary.disabled:focus > a:only-child, .ant-btn-primary[disabled]:focus > a:only-child, +.ant-btn-primary-disabled:active > a:only-child, .ant-btn-primary.disabled:active > a:only-child, .ant-btn-primary[disabled]:active > a:only-child, +.ant-btn-primary-disabled.active > a:only-child, .ant-btn-primary.disabled.active > a:only-child, .ant-btn-primary[disabled].active > a:only-child { color: currentColor; } -.ant-btn-primary.disabled > a:only-child:after, -.ant-btn-primary[disabled] > a:only-child:after, -.ant-btn-primary.disabled:hover > a:only-child:after, -.ant-btn-primary[disabled]:hover > a:only-child:after, -.ant-btn-primary.disabled:focus > a:only-child:after, -.ant-btn-primary[disabled]:focus > a:only-child:after, -.ant-btn-primary.disabled:active > a:only-child:after, -.ant-btn-primary[disabled]:active > a:only-child:after, -.ant-btn-primary.disabled.active > a:only-child:after, -.ant-btn-primary[disabled].active > a:only-child:after { - content: ''; +.ant-btn-primary-disabled > a:only-child::after, +.ant-btn-primary.disabled > a:only-child::after, +.ant-btn-primary[disabled] > a:only-child::after, +.ant-btn-primary-disabled:hover > a:only-child::after, +.ant-btn-primary.disabled:hover > a:only-child::after, +.ant-btn-primary[disabled]:hover > a:only-child::after, +.ant-btn-primary-disabled:focus > a:only-child::after, +.ant-btn-primary.disabled:focus > a:only-child::after, +.ant-btn-primary[disabled]:focus > a:only-child::after, +.ant-btn-primary-disabled:active > a:only-child::after, +.ant-btn-primary.disabled:active > a:only-child::after, +.ant-btn-primary[disabled]:active > a:only-child::after, +.ant-btn-primary-disabled.active > a:only-child::after, +.ant-btn-primary.disabled.active > a:only-child::after, +.ant-btn-primary[disabled].active > a:only-child::after { position: absolute; top: 0; - left: 0; - bottom: 0; right: 0; + bottom: 0; + left: 0; background: transparent; + content: ''; } .ant-btn-group .ant-btn-primary:not(:first-child):not(:last-child) { border-right-color: #f2726f; @@ -2792,14 +3100,14 @@ mark { .ant-btn-ghost > a:only-child { color: currentColor; } -.ant-btn-ghost > a:only-child:after { - content: ''; +.ant-btn-ghost > a:only-child::after { position: absolute; top: 0; - left: 0; - bottom: 0; right: 0; + bottom: 0; + left: 0; background: transparent; + content: ''; } .ant-btn-ghost:hover, .ant-btn-ghost:focus { @@ -2811,15 +3119,15 @@ mark { .ant-btn-ghost:focus > a:only-child { color: currentColor; } -.ant-btn-ghost:hover > a:only-child:after, -.ant-btn-ghost:focus > a:only-child:after { - content: ''; +.ant-btn-ghost:hover > a:only-child::after, +.ant-btn-ghost:focus > a:only-child::after { position: absolute; top: 0; - left: 0; - bottom: 0; right: 0; + bottom: 0; + left: 0; background: transparent; + content: ''; } .ant-btn-ghost:active, .ant-btn-ghost.active { @@ -2831,24 +3139,29 @@ mark { .ant-btn-ghost.active > a:only-child { color: currentColor; } -.ant-btn-ghost:active > a:only-child:after, -.ant-btn-ghost.active > a:only-child:after { - content: ''; +.ant-btn-ghost:active > a:only-child::after, +.ant-btn-ghost.active > a:only-child::after { position: absolute; top: 0; - left: 0; - bottom: 0; right: 0; + bottom: 0; + left: 0; background: transparent; + content: ''; } +.ant-btn-ghost-disabled, .ant-btn-ghost.disabled, .ant-btn-ghost[disabled], +.ant-btn-ghost-disabled:hover, .ant-btn-ghost.disabled:hover, .ant-btn-ghost[disabled]:hover, +.ant-btn-ghost-disabled:focus, .ant-btn-ghost.disabled:focus, .ant-btn-ghost[disabled]:focus, +.ant-btn-ghost-disabled:active, .ant-btn-ghost.disabled:active, .ant-btn-ghost[disabled]:active, +.ant-btn-ghost-disabled.active, .ant-btn-ghost.disabled.active, .ant-btn-ghost[disabled].active { color: rgba(0, 0, 0, 0.25); @@ -2857,35 +3170,45 @@ mark { text-shadow: none; box-shadow: none; } +.ant-btn-ghost-disabled > a:only-child, .ant-btn-ghost.disabled > a:only-child, .ant-btn-ghost[disabled] > a:only-child, +.ant-btn-ghost-disabled:hover > a:only-child, .ant-btn-ghost.disabled:hover > a:only-child, .ant-btn-ghost[disabled]:hover > a:only-child, +.ant-btn-ghost-disabled:focus > a:only-child, .ant-btn-ghost.disabled:focus > a:only-child, .ant-btn-ghost[disabled]:focus > a:only-child, +.ant-btn-ghost-disabled:active > a:only-child, .ant-btn-ghost.disabled:active > a:only-child, .ant-btn-ghost[disabled]:active > a:only-child, +.ant-btn-ghost-disabled.active > a:only-child, .ant-btn-ghost.disabled.active > a:only-child, .ant-btn-ghost[disabled].active > a:only-child { color: currentColor; } -.ant-btn-ghost.disabled > a:only-child:after, -.ant-btn-ghost[disabled] > a:only-child:after, -.ant-btn-ghost.disabled:hover > a:only-child:after, -.ant-btn-ghost[disabled]:hover > a:only-child:after, -.ant-btn-ghost.disabled:focus > a:only-child:after, -.ant-btn-ghost[disabled]:focus > a:only-child:after, -.ant-btn-ghost.disabled:active > a:only-child:after, -.ant-btn-ghost[disabled]:active > a:only-child:after, -.ant-btn-ghost.disabled.active > a:only-child:after, -.ant-btn-ghost[disabled].active > a:only-child:after { - content: ''; +.ant-btn-ghost-disabled > a:only-child::after, +.ant-btn-ghost.disabled > a:only-child::after, +.ant-btn-ghost[disabled] > a:only-child::after, +.ant-btn-ghost-disabled:hover > a:only-child::after, +.ant-btn-ghost.disabled:hover > a:only-child::after, +.ant-btn-ghost[disabled]:hover > a:only-child::after, +.ant-btn-ghost-disabled:focus > a:only-child::after, +.ant-btn-ghost.disabled:focus > a:only-child::after, +.ant-btn-ghost[disabled]:focus > a:only-child::after, +.ant-btn-ghost-disabled:active > a:only-child::after, +.ant-btn-ghost.disabled:active > a:only-child::after, +.ant-btn-ghost[disabled]:active > a:only-child::after, +.ant-btn-ghost-disabled.active > a:only-child::after, +.ant-btn-ghost.disabled.active > a:only-child::after, +.ant-btn-ghost[disabled].active > a:only-child::after { position: absolute; top: 0; - left: 0; - bottom: 0; right: 0; + bottom: 0; + left: 0; background: transparent; + content: ''; } .ant-btn-dashed { color: rgba(0, 0, 0, 0.65); @@ -2896,14 +3219,14 @@ mark { .ant-btn-dashed > a:only-child { color: currentColor; } -.ant-btn-dashed > a:only-child:after { - content: ''; +.ant-btn-dashed > a:only-child::after { position: absolute; top: 0; - left: 0; - bottom: 0; right: 0; + bottom: 0; + left: 0; background: transparent; + content: ''; } .ant-btn-dashed:hover, .ant-btn-dashed:focus { @@ -2915,15 +3238,15 @@ mark { .ant-btn-dashed:focus > a:only-child { color: currentColor; } -.ant-btn-dashed:hover > a:only-child:after, -.ant-btn-dashed:focus > a:only-child:after { - content: ''; +.ant-btn-dashed:hover > a:only-child::after, +.ant-btn-dashed:focus > a:only-child::after { position: absolute; top: 0; - left: 0; - bottom: 0; right: 0; + bottom: 0; + left: 0; background: transparent; + content: ''; } .ant-btn-dashed:active, .ant-btn-dashed.active { @@ -2935,24 +3258,29 @@ mark { .ant-btn-dashed.active > a:only-child { color: currentColor; } -.ant-btn-dashed:active > a:only-child:after, -.ant-btn-dashed.active > a:only-child:after { - content: ''; +.ant-btn-dashed:active > a:only-child::after, +.ant-btn-dashed.active > a:only-child::after { position: absolute; top: 0; - left: 0; - bottom: 0; right: 0; + bottom: 0; + left: 0; background: transparent; + content: ''; } +.ant-btn-dashed-disabled, .ant-btn-dashed.disabled, .ant-btn-dashed[disabled], +.ant-btn-dashed-disabled:hover, .ant-btn-dashed.disabled:hover, .ant-btn-dashed[disabled]:hover, +.ant-btn-dashed-disabled:focus, .ant-btn-dashed.disabled:focus, .ant-btn-dashed[disabled]:focus, +.ant-btn-dashed-disabled:active, .ant-btn-dashed.disabled:active, .ant-btn-dashed[disabled]:active, +.ant-btn-dashed-disabled.active, .ant-btn-dashed.disabled.active, .ant-btn-dashed[disabled].active { color: rgba(0, 0, 0, 0.25); @@ -2961,35 +3289,45 @@ mark { text-shadow: none; box-shadow: none; } +.ant-btn-dashed-disabled > a:only-child, .ant-btn-dashed.disabled > a:only-child, .ant-btn-dashed[disabled] > a:only-child, +.ant-btn-dashed-disabled:hover > a:only-child, .ant-btn-dashed.disabled:hover > a:only-child, .ant-btn-dashed[disabled]:hover > a:only-child, +.ant-btn-dashed-disabled:focus > a:only-child, .ant-btn-dashed.disabled:focus > a:only-child, .ant-btn-dashed[disabled]:focus > a:only-child, +.ant-btn-dashed-disabled:active > a:only-child, .ant-btn-dashed.disabled:active > a:only-child, .ant-btn-dashed[disabled]:active > a:only-child, +.ant-btn-dashed-disabled.active > a:only-child, .ant-btn-dashed.disabled.active > a:only-child, .ant-btn-dashed[disabled].active > a:only-child { color: currentColor; } -.ant-btn-dashed.disabled > a:only-child:after, -.ant-btn-dashed[disabled] > a:only-child:after, -.ant-btn-dashed.disabled:hover > a:only-child:after, -.ant-btn-dashed[disabled]:hover > a:only-child:after, -.ant-btn-dashed.disabled:focus > a:only-child:after, -.ant-btn-dashed[disabled]:focus > a:only-child:after, -.ant-btn-dashed.disabled:active > a:only-child:after, -.ant-btn-dashed[disabled]:active > a:only-child:after, -.ant-btn-dashed.disabled.active > a:only-child:after, -.ant-btn-dashed[disabled].active > a:only-child:after { - content: ''; +.ant-btn-dashed-disabled > a:only-child::after, +.ant-btn-dashed.disabled > a:only-child::after, +.ant-btn-dashed[disabled] > a:only-child::after, +.ant-btn-dashed-disabled:hover > a:only-child::after, +.ant-btn-dashed.disabled:hover > a:only-child::after, +.ant-btn-dashed[disabled]:hover > a:only-child::after, +.ant-btn-dashed-disabled:focus > a:only-child::after, +.ant-btn-dashed.disabled:focus > a:only-child::after, +.ant-btn-dashed[disabled]:focus > a:only-child::after, +.ant-btn-dashed-disabled:active > a:only-child::after, +.ant-btn-dashed.disabled:active > a:only-child::after, +.ant-btn-dashed[disabled]:active > a:only-child::after, +.ant-btn-dashed-disabled.active > a:only-child::after, +.ant-btn-dashed.disabled.active > a:only-child::after, +.ant-btn-dashed[disabled].active > a:only-child::after { position: absolute; top: 0; - left: 0; - bottom: 0; right: 0; + bottom: 0; + left: 0; background: transparent; + content: ''; } .ant-btn-danger { color: #f5222d; @@ -2999,14 +3337,14 @@ mark { .ant-btn-danger > a:only-child { color: currentColor; } -.ant-btn-danger > a:only-child:after { - content: ''; +.ant-btn-danger > a:only-child::after { position: absolute; top: 0; - left: 0; - bottom: 0; right: 0; + bottom: 0; + left: 0; background: transparent; + content: ''; } .ant-btn-danger:hover { color: #fff; @@ -3016,14 +3354,14 @@ mark { .ant-btn-danger:hover > a:only-child { color: currentColor; } -.ant-btn-danger:hover > a:only-child:after { - content: ''; +.ant-btn-danger:hover > a:only-child::after { position: absolute; top: 0; - left: 0; - bottom: 0; right: 0; + bottom: 0; + left: 0; background: transparent; + content: ''; } .ant-btn-danger:focus { color: #ff4d4f; @@ -3033,14 +3371,14 @@ mark { .ant-btn-danger:focus > a:only-child { color: currentColor; } -.ant-btn-danger:focus > a:only-child:after { - content: ''; +.ant-btn-danger:focus > a:only-child::after { position: absolute; top: 0; - left: 0; - bottom: 0; right: 0; + bottom: 0; + left: 0; background: transparent; + content: ''; } .ant-btn-danger:active, .ant-btn-danger.active { @@ -3052,24 +3390,29 @@ mark { .ant-btn-danger.active > a:only-child { color: currentColor; } -.ant-btn-danger:active > a:only-child:after, -.ant-btn-danger.active > a:only-child:after { - content: ''; +.ant-btn-danger:active > a:only-child::after, +.ant-btn-danger.active > a:only-child::after { position: absolute; top: 0; - left: 0; - bottom: 0; right: 0; + bottom: 0; + left: 0; background: transparent; + content: ''; } +.ant-btn-danger-disabled, .ant-btn-danger.disabled, .ant-btn-danger[disabled], +.ant-btn-danger-disabled:hover, .ant-btn-danger.disabled:hover, .ant-btn-danger[disabled]:hover, +.ant-btn-danger-disabled:focus, .ant-btn-danger.disabled:focus, .ant-btn-danger[disabled]:focus, +.ant-btn-danger-disabled:active, .ant-btn-danger.disabled:active, .ant-btn-danger[disabled]:active, +.ant-btn-danger-disabled.active, .ant-btn-danger.disabled.active, .ant-btn-danger[disabled].active { color: rgba(0, 0, 0, 0.25); @@ -3078,89 +3421,304 @@ mark { text-shadow: none; box-shadow: none; } +.ant-btn-danger-disabled > a:only-child, .ant-btn-danger.disabled > a:only-child, .ant-btn-danger[disabled] > a:only-child, +.ant-btn-danger-disabled:hover > a:only-child, .ant-btn-danger.disabled:hover > a:only-child, .ant-btn-danger[disabled]:hover > a:only-child, +.ant-btn-danger-disabled:focus > a:only-child, .ant-btn-danger.disabled:focus > a:only-child, .ant-btn-danger[disabled]:focus > a:only-child, +.ant-btn-danger-disabled:active > a:only-child, .ant-btn-danger.disabled:active > a:only-child, .ant-btn-danger[disabled]:active > a:only-child, +.ant-btn-danger-disabled.active > a:only-child, .ant-btn-danger.disabled.active > a:only-child, .ant-btn-danger[disabled].active > a:only-child { color: currentColor; } -.ant-btn-danger.disabled > a:only-child:after, -.ant-btn-danger[disabled] > a:only-child:after, -.ant-btn-danger.disabled:hover > a:only-child:after, -.ant-btn-danger[disabled]:hover > a:only-child:after, -.ant-btn-danger.disabled:focus > a:only-child:after, -.ant-btn-danger[disabled]:focus > a:only-child:after, -.ant-btn-danger.disabled:active > a:only-child:after, -.ant-btn-danger[disabled]:active > a:only-child:after, -.ant-btn-danger.disabled.active > a:only-child:after, -.ant-btn-danger[disabled].active > a:only-child:after { +.ant-btn-danger-disabled > a:only-child::after, +.ant-btn-danger.disabled > a:only-child::after, +.ant-btn-danger[disabled] > a:only-child::after, +.ant-btn-danger-disabled:hover > a:only-child::after, +.ant-btn-danger.disabled:hover > a:only-child::after, +.ant-btn-danger[disabled]:hover > a:only-child::after, +.ant-btn-danger-disabled:focus > a:only-child::after, +.ant-btn-danger.disabled:focus > a:only-child::after, +.ant-btn-danger[disabled]:focus > a:only-child::after, +.ant-btn-danger-disabled:active > a:only-child::after, +.ant-btn-danger.disabled:active > a:only-child::after, +.ant-btn-danger[disabled]:active > a:only-child::after, +.ant-btn-danger-disabled.active > a:only-child::after, +.ant-btn-danger.disabled.active > a:only-child::after, +.ant-btn-danger[disabled].active > a:only-child::after { + position: absolute; + top: 0; + right: 0; + bottom: 0; + left: 0; + background: transparent; + content: ''; +} +.ant-btn-link { + color: #E64448; + background-color: transparent; + border-color: transparent; + box-shadow: none; +} +.ant-btn-link > a:only-child { + color: currentColor; +} +.ant-btn-link > a:only-child::after { + position: absolute; + top: 0; + right: 0; + bottom: 0; + left: 0; + background: transparent; + content: ''; +} +.ant-btn-link:hover, +.ant-btn-link:focus { + color: #f2726f; + background-color: transparent; + border-color: #f2726f; +} +.ant-btn-link:hover > a:only-child, +.ant-btn-link:focus > a:only-child { + color: currentColor; +} +.ant-btn-link:hover > a:only-child::after, +.ant-btn-link:focus > a:only-child::after { + position: absolute; + top: 0; + right: 0; + bottom: 0; + left: 0; + background: transparent; content: ''; +} +.ant-btn-link:active, +.ant-btn-link.active { + color: #bf3037; + background-color: transparent; + border-color: #bf3037; +} +.ant-btn-link:active > a:only-child, +.ant-btn-link.active > a:only-child { + color: currentColor; +} +.ant-btn-link:active > a:only-child::after, +.ant-btn-link.active > a:only-child::after { position: absolute; top: 0; + right: 0; + bottom: 0; left: 0; + background: transparent; + content: ''; +} +.ant-btn-link-disabled, +.ant-btn-link.disabled, +.ant-btn-link[disabled], +.ant-btn-link-disabled:hover, +.ant-btn-link.disabled:hover, +.ant-btn-link[disabled]:hover, +.ant-btn-link-disabled:focus, +.ant-btn-link.disabled:focus, +.ant-btn-link[disabled]:focus, +.ant-btn-link-disabled:active, +.ant-btn-link.disabled:active, +.ant-btn-link[disabled]:active, +.ant-btn-link-disabled.active, +.ant-btn-link.disabled.active, +.ant-btn-link[disabled].active { + color: rgba(0, 0, 0, 0.25); + background-color: #f5f5f5; + border-color: #d9d9d9; + text-shadow: none; + box-shadow: none; +} +.ant-btn-link-disabled > a:only-child, +.ant-btn-link.disabled > a:only-child, +.ant-btn-link[disabled] > a:only-child, +.ant-btn-link-disabled:hover > a:only-child, +.ant-btn-link.disabled:hover > a:only-child, +.ant-btn-link[disabled]:hover > a:only-child, +.ant-btn-link-disabled:focus > a:only-child, +.ant-btn-link.disabled:focus > a:only-child, +.ant-btn-link[disabled]:focus > a:only-child, +.ant-btn-link-disabled:active > a:only-child, +.ant-btn-link.disabled:active > a:only-child, +.ant-btn-link[disabled]:active > a:only-child, +.ant-btn-link-disabled.active > a:only-child, +.ant-btn-link.disabled.active > a:only-child, +.ant-btn-link[disabled].active > a:only-child { + color: currentColor; +} +.ant-btn-link-disabled > a:only-child::after, +.ant-btn-link.disabled > a:only-child::after, +.ant-btn-link[disabled] > a:only-child::after, +.ant-btn-link-disabled:hover > a:only-child::after, +.ant-btn-link.disabled:hover > a:only-child::after, +.ant-btn-link[disabled]:hover > a:only-child::after, +.ant-btn-link-disabled:focus > a:only-child::after, +.ant-btn-link.disabled:focus > a:only-child::after, +.ant-btn-link[disabled]:focus > a:only-child::after, +.ant-btn-link-disabled:active > a:only-child::after, +.ant-btn-link.disabled:active > a:only-child::after, +.ant-btn-link[disabled]:active > a:only-child::after, +.ant-btn-link-disabled.active > a:only-child::after, +.ant-btn-link.disabled.active > a:only-child::after, +.ant-btn-link[disabled].active > a:only-child::after { + position: absolute; + top: 0; + right: 0; bottom: 0; + left: 0; + background: transparent; + content: ''; +} +.ant-btn-link:hover, +.ant-btn-link:focus, +.ant-btn-link:active { + border-color: transparent; +} +.ant-btn-link-disabled, +.ant-btn-link.disabled, +.ant-btn-link[disabled], +.ant-btn-link-disabled:hover, +.ant-btn-link.disabled:hover, +.ant-btn-link[disabled]:hover, +.ant-btn-link-disabled:focus, +.ant-btn-link.disabled:focus, +.ant-btn-link[disabled]:focus, +.ant-btn-link-disabled:active, +.ant-btn-link.disabled:active, +.ant-btn-link[disabled]:active, +.ant-btn-link-disabled.active, +.ant-btn-link.disabled.active, +.ant-btn-link[disabled].active { + color: rgba(0, 0, 0, 0.25); + background-color: transparent; + border-color: transparent; + text-shadow: none; + box-shadow: none; +} +.ant-btn-link-disabled > a:only-child, +.ant-btn-link.disabled > a:only-child, +.ant-btn-link[disabled] > a:only-child, +.ant-btn-link-disabled:hover > a:only-child, +.ant-btn-link.disabled:hover > a:only-child, +.ant-btn-link[disabled]:hover > a:only-child, +.ant-btn-link-disabled:focus > a:only-child, +.ant-btn-link.disabled:focus > a:only-child, +.ant-btn-link[disabled]:focus > a:only-child, +.ant-btn-link-disabled:active > a:only-child, +.ant-btn-link.disabled:active > a:only-child, +.ant-btn-link[disabled]:active > a:only-child, +.ant-btn-link-disabled.active > a:only-child, +.ant-btn-link.disabled.active > a:only-child, +.ant-btn-link[disabled].active > a:only-child { + color: currentColor; +} +.ant-btn-link-disabled > a:only-child::after, +.ant-btn-link.disabled > a:only-child::after, +.ant-btn-link[disabled] > a:only-child::after, +.ant-btn-link-disabled:hover > a:only-child::after, +.ant-btn-link.disabled:hover > a:only-child::after, +.ant-btn-link[disabled]:hover > a:only-child::after, +.ant-btn-link-disabled:focus > a:only-child::after, +.ant-btn-link.disabled:focus > a:only-child::after, +.ant-btn-link[disabled]:focus > a:only-child::after, +.ant-btn-link-disabled:active > a:only-child::after, +.ant-btn-link.disabled:active > a:only-child::after, +.ant-btn-link[disabled]:active > a:only-child::after, +.ant-btn-link-disabled.active > a:only-child::after, +.ant-btn-link.disabled.active > a:only-child::after, +.ant-btn-link[disabled].active > a:only-child::after { + position: absolute; + top: 0; right: 0; + bottom: 0; + left: 0; background: transparent; + content: ''; +} +.ant-btn-round { + height: 32px; + padding: 0 16px; + font-size: 16px; + border-radius: 32px; +} +.ant-btn-round.ant-btn-lg { + height: 40px; + padding: 0 20px; + font-size: 18px; + border-radius: 40px; +} +.ant-btn-round.ant-btn-sm { + height: 24px; + padding: 0 12px; + font-size: 14px; + border-radius: 24px; } .ant-btn-circle, .ant-btn-circle-outline { width: 32px; + height: 32px; padding: 0; font-size: 16px; border-radius: 50%; - height: 32px; } .ant-btn-circle.ant-btn-lg, .ant-btn-circle-outline.ant-btn-lg { width: 40px; + height: 40px; padding: 0; font-size: 18px; border-radius: 50%; - height: 40px; } .ant-btn-circle.ant-btn-sm, .ant-btn-circle-outline.ant-btn-sm { width: 24px; + height: 24px; padding: 0; font-size: 14px; border-radius: 50%; - height: 24px; } -.ant-btn:before { +.ant-btn::before { position: absolute; top: -1px; - left: -1px; - bottom: -1px; right: -1px; - background: #fff; - opacity: 0.35; - content: ''; - border-radius: inherit; + bottom: -1px; + left: -1px; z-index: 1; + display: none; + background: #fff; + border-radius: inherit; + opacity: 0.35; + -webkit-transition: opacity 0.2s; transition: opacity 0.2s; pointer-events: none; - display: none; + content: ''; } .ant-btn .anticon { + -webkit-transition: margin-left 0.3s cubic-bezier(0.645, 0.045, 0.355, 1); transition: margin-left 0.3s cubic-bezier(0.645, 0.045, 0.355, 1); } .ant-btn .anticon.anticon-plus > svg, .ant-btn .anticon.anticon-minus > svg { shape-rendering: optimizeSpeed; } -.ant-btn.ant-btn-loading:before { +.ant-btn.ant-btn-loading::before { display: block; } .ant-btn.ant-btn-loading:not(.ant-btn-circle):not(.ant-btn-circle-outline):not(.ant-btn-icon-only) { + position: relative; padding-left: 29px; pointer-events: none; - position: relative; } .ant-btn.ant-btn-loading:not(.ant-btn-circle):not(.ant-btn-circle-outline):not(.ant-btn-icon-only) .anticon:not(:last-child) { margin-left: -14px; @@ -3195,18 +3753,18 @@ mark { } .ant-btn-group-lg > .ant-btn, .ant-btn-group-lg > span > .ant-btn { + height: 40px; padding: 0 15px; font-size: 16px; border-radius: 0; - height: 40px; line-height: 38px; } .ant-btn-group-sm > .ant-btn, .ant-btn-group-sm > span > .ant-btn { + height: 24px; padding: 0 7px; font-size: 14px; border-radius: 0; - height: 24px; line-height: 22px; } .ant-btn-group-sm > .ant-btn > .anticon, @@ -3240,13 +3798,13 @@ mark { } .ant-btn-group > .ant-btn:first-child:not(:last-child), .ant-btn-group > span:first-child:not(:last-child) > .ant-btn { - border-bottom-left-radius: 5px; border-top-left-radius: 5px; + border-bottom-left-radius: 5px; } .ant-btn-group > .ant-btn:last-child:not(:first-child), .ant-btn-group > span:last-child:not(:first-child) > .ant-btn { - border-bottom-right-radius: 5px; border-top-right-radius: 5px; + border-bottom-right-radius: 5px; } .ant-btn-group-sm > .ant-btn:only-child { border-radius: 5px; @@ -3256,13 +3814,13 @@ mark { } .ant-btn-group-sm > .ant-btn:first-child:not(:last-child), .ant-btn-group-sm > span:first-child:not(:last-child) > .ant-btn { - border-bottom-left-radius: 5px; border-top-left-radius: 5px; + border-bottom-left-radius: 5px; } .ant-btn-group-sm > .ant-btn:last-child:not(:first-child), .ant-btn-group-sm > span:last-child:not(:first-child) > .ant-btn { - border-bottom-right-radius: 5px; border-top-right-radius: 5px; + border-bottom-right-radius: 5px; } .ant-btn-group > .ant-btn-group { float: left; @@ -3271,18 +3829,18 @@ mark { border-radius: 0; } .ant-btn-group > .ant-btn-group:first-child:not(:last-child) > .ant-btn:last-child { - border-bottom-right-radius: 0; - border-top-right-radius: 0; padding-right: 8px; + border-top-right-radius: 0; + border-bottom-right-radius: 0; } .ant-btn-group > .ant-btn-group:last-child:not(:first-child) > .ant-btn:first-child { - border-bottom-left-radius: 0; - border-top-left-radius: 0; padding-left: 8px; + border-top-left-radius: 0; + border-bottom-left-radius: 0; } .ant-btn:not(.ant-btn-circle):not(.ant-btn-circle-outline).ant-btn-icon-only { - padding-left: 8px; padding-right: 8px; + padding-left: 8px; } .ant-btn:focus > span, .ant-btn:active > span { @@ -3293,9 +3851,9 @@ mark { margin-left: 8px; } .ant-btn-background-ghost { + color: #fff; background: transparent !important; border-color: #fff; - color: #fff; } .ant-btn-background-ghost.ant-btn-primary { color: #E64448; @@ -3306,14 +3864,14 @@ mark { .ant-btn-background-ghost.ant-btn-primary > a:only-child { color: currentColor; } -.ant-btn-background-ghost.ant-btn-primary > a:only-child:after { - content: ''; +.ant-btn-background-ghost.ant-btn-primary > a:only-child::after { position: absolute; top: 0; - left: 0; - bottom: 0; right: 0; + bottom: 0; + left: 0; background: transparent; + content: ''; } .ant-btn-background-ghost.ant-btn-primary:hover, .ant-btn-background-ghost.ant-btn-primary:focus { @@ -3325,15 +3883,15 @@ mark { .ant-btn-background-ghost.ant-btn-primary:focus > a:only-child { color: currentColor; } -.ant-btn-background-ghost.ant-btn-primary:hover > a:only-child:after, -.ant-btn-background-ghost.ant-btn-primary:focus > a:only-child:after { - content: ''; +.ant-btn-background-ghost.ant-btn-primary:hover > a:only-child::after, +.ant-btn-background-ghost.ant-btn-primary:focus > a:only-child::after { position: absolute; top: 0; - left: 0; - bottom: 0; right: 0; + bottom: 0; + left: 0; background: transparent; + content: ''; } .ant-btn-background-ghost.ant-btn-primary:active, .ant-btn-background-ghost.ant-btn-primary.active { @@ -3345,24 +3903,29 @@ mark { .ant-btn-background-ghost.ant-btn-primary.active > a:only-child { color: currentColor; } -.ant-btn-background-ghost.ant-btn-primary:active > a:only-child:after, -.ant-btn-background-ghost.ant-btn-primary.active > a:only-child:after { - content: ''; +.ant-btn-background-ghost.ant-btn-primary:active > a:only-child::after, +.ant-btn-background-ghost.ant-btn-primary.active > a:only-child::after { position: absolute; top: 0; - left: 0; - bottom: 0; right: 0; + bottom: 0; + left: 0; background: transparent; + content: ''; } +.ant-btn-background-ghost.ant-btn-primary-disabled, .ant-btn-background-ghost.ant-btn-primary.disabled, .ant-btn-background-ghost.ant-btn-primary[disabled], +.ant-btn-background-ghost.ant-btn-primary-disabled:hover, .ant-btn-background-ghost.ant-btn-primary.disabled:hover, .ant-btn-background-ghost.ant-btn-primary[disabled]:hover, +.ant-btn-background-ghost.ant-btn-primary-disabled:focus, .ant-btn-background-ghost.ant-btn-primary.disabled:focus, .ant-btn-background-ghost.ant-btn-primary[disabled]:focus, +.ant-btn-background-ghost.ant-btn-primary-disabled:active, .ant-btn-background-ghost.ant-btn-primary.disabled:active, .ant-btn-background-ghost.ant-btn-primary[disabled]:active, +.ant-btn-background-ghost.ant-btn-primary-disabled.active, .ant-btn-background-ghost.ant-btn-primary.disabled.active, .ant-btn-background-ghost.ant-btn-primary[disabled].active { color: rgba(0, 0, 0, 0.25); @@ -3371,35 +3934,45 @@ mark { text-shadow: none; box-shadow: none; } +.ant-btn-background-ghost.ant-btn-primary-disabled > a:only-child, .ant-btn-background-ghost.ant-btn-primary.disabled > a:only-child, .ant-btn-background-ghost.ant-btn-primary[disabled] > a:only-child, +.ant-btn-background-ghost.ant-btn-primary-disabled:hover > a:only-child, .ant-btn-background-ghost.ant-btn-primary.disabled:hover > a:only-child, .ant-btn-background-ghost.ant-btn-primary[disabled]:hover > a:only-child, +.ant-btn-background-ghost.ant-btn-primary-disabled:focus > a:only-child, .ant-btn-background-ghost.ant-btn-primary.disabled:focus > a:only-child, .ant-btn-background-ghost.ant-btn-primary[disabled]:focus > a:only-child, +.ant-btn-background-ghost.ant-btn-primary-disabled:active > a:only-child, .ant-btn-background-ghost.ant-btn-primary.disabled:active > a:only-child, .ant-btn-background-ghost.ant-btn-primary[disabled]:active > a:only-child, +.ant-btn-background-ghost.ant-btn-primary-disabled.active > a:only-child, .ant-btn-background-ghost.ant-btn-primary.disabled.active > a:only-child, .ant-btn-background-ghost.ant-btn-primary[disabled].active > a:only-child { color: currentColor; } -.ant-btn-background-ghost.ant-btn-primary.disabled > a:only-child:after, -.ant-btn-background-ghost.ant-btn-primary[disabled] > a:only-child:after, -.ant-btn-background-ghost.ant-btn-primary.disabled:hover > a:only-child:after, -.ant-btn-background-ghost.ant-btn-primary[disabled]:hover > a:only-child:after, -.ant-btn-background-ghost.ant-btn-primary.disabled:focus > a:only-child:after, -.ant-btn-background-ghost.ant-btn-primary[disabled]:focus > a:only-child:after, -.ant-btn-background-ghost.ant-btn-primary.disabled:active > a:only-child:after, -.ant-btn-background-ghost.ant-btn-primary[disabled]:active > a:only-child:after, -.ant-btn-background-ghost.ant-btn-primary.disabled.active > a:only-child:after, -.ant-btn-background-ghost.ant-btn-primary[disabled].active > a:only-child:after { - content: ''; +.ant-btn-background-ghost.ant-btn-primary-disabled > a:only-child::after, +.ant-btn-background-ghost.ant-btn-primary.disabled > a:only-child::after, +.ant-btn-background-ghost.ant-btn-primary[disabled] > a:only-child::after, +.ant-btn-background-ghost.ant-btn-primary-disabled:hover > a:only-child::after, +.ant-btn-background-ghost.ant-btn-primary.disabled:hover > a:only-child::after, +.ant-btn-background-ghost.ant-btn-primary[disabled]:hover > a:only-child::after, +.ant-btn-background-ghost.ant-btn-primary-disabled:focus > a:only-child::after, +.ant-btn-background-ghost.ant-btn-primary.disabled:focus > a:only-child::after, +.ant-btn-background-ghost.ant-btn-primary[disabled]:focus > a:only-child::after, +.ant-btn-background-ghost.ant-btn-primary-disabled:active > a:only-child::after, +.ant-btn-background-ghost.ant-btn-primary.disabled:active > a:only-child::after, +.ant-btn-background-ghost.ant-btn-primary[disabled]:active > a:only-child::after, +.ant-btn-background-ghost.ant-btn-primary-disabled.active > a:only-child::after, +.ant-btn-background-ghost.ant-btn-primary.disabled.active > a:only-child::after, +.ant-btn-background-ghost.ant-btn-primary[disabled].active > a:only-child::after { position: absolute; top: 0; - left: 0; - bottom: 0; right: 0; + bottom: 0; + left: 0; background: transparent; + content: ''; } .ant-btn-background-ghost.ant-btn-danger { color: #f5222d; @@ -3410,14 +3983,14 @@ mark { .ant-btn-background-ghost.ant-btn-danger > a:only-child { color: currentColor; } -.ant-btn-background-ghost.ant-btn-danger > a:only-child:after { - content: ''; +.ant-btn-background-ghost.ant-btn-danger > a:only-child::after { position: absolute; top: 0; - left: 0; - bottom: 0; right: 0; + bottom: 0; + left: 0; background: transparent; + content: ''; } .ant-btn-background-ghost.ant-btn-danger:hover, .ant-btn-background-ghost.ant-btn-danger:focus { @@ -3429,15 +4002,15 @@ mark { .ant-btn-background-ghost.ant-btn-danger:focus > a:only-child { color: currentColor; } -.ant-btn-background-ghost.ant-btn-danger:hover > a:only-child:after, -.ant-btn-background-ghost.ant-btn-danger:focus > a:only-child:after { - content: ''; +.ant-btn-background-ghost.ant-btn-danger:hover > a:only-child::after, +.ant-btn-background-ghost.ant-btn-danger:focus > a:only-child::after { position: absolute; top: 0; - left: 0; - bottom: 0; right: 0; + bottom: 0; + left: 0; background: transparent; + content: ''; } .ant-btn-background-ghost.ant-btn-danger:active, .ant-btn-background-ghost.ant-btn-danger.active { @@ -3449,24 +4022,29 @@ mark { .ant-btn-background-ghost.ant-btn-danger.active > a:only-child { color: currentColor; } -.ant-btn-background-ghost.ant-btn-danger:active > a:only-child:after, -.ant-btn-background-ghost.ant-btn-danger.active > a:only-child:after { - content: ''; +.ant-btn-background-ghost.ant-btn-danger:active > a:only-child::after, +.ant-btn-background-ghost.ant-btn-danger.active > a:only-child::after { position: absolute; top: 0; - left: 0; - bottom: 0; right: 0; + bottom: 0; + left: 0; background: transparent; + content: ''; } +.ant-btn-background-ghost.ant-btn-danger-disabled, .ant-btn-background-ghost.ant-btn-danger.disabled, .ant-btn-background-ghost.ant-btn-danger[disabled], +.ant-btn-background-ghost.ant-btn-danger-disabled:hover, .ant-btn-background-ghost.ant-btn-danger.disabled:hover, .ant-btn-background-ghost.ant-btn-danger[disabled]:hover, +.ant-btn-background-ghost.ant-btn-danger-disabled:focus, .ant-btn-background-ghost.ant-btn-danger.disabled:focus, .ant-btn-background-ghost.ant-btn-danger[disabled]:focus, +.ant-btn-background-ghost.ant-btn-danger-disabled:active, .ant-btn-background-ghost.ant-btn-danger.disabled:active, .ant-btn-background-ghost.ant-btn-danger[disabled]:active, +.ant-btn-background-ghost.ant-btn-danger-disabled.active, .ant-btn-background-ghost.ant-btn-danger.disabled.active, .ant-btn-background-ghost.ant-btn-danger[disabled].active { color: rgba(0, 0, 0, 0.25); @@ -3475,42 +4053,172 @@ mark { text-shadow: none; box-shadow: none; } +.ant-btn-background-ghost.ant-btn-danger-disabled > a:only-child, .ant-btn-background-ghost.ant-btn-danger.disabled > a:only-child, .ant-btn-background-ghost.ant-btn-danger[disabled] > a:only-child, +.ant-btn-background-ghost.ant-btn-danger-disabled:hover > a:only-child, .ant-btn-background-ghost.ant-btn-danger.disabled:hover > a:only-child, .ant-btn-background-ghost.ant-btn-danger[disabled]:hover > a:only-child, +.ant-btn-background-ghost.ant-btn-danger-disabled:focus > a:only-child, .ant-btn-background-ghost.ant-btn-danger.disabled:focus > a:only-child, .ant-btn-background-ghost.ant-btn-danger[disabled]:focus > a:only-child, +.ant-btn-background-ghost.ant-btn-danger-disabled:active > a:only-child, .ant-btn-background-ghost.ant-btn-danger.disabled:active > a:only-child, .ant-btn-background-ghost.ant-btn-danger[disabled]:active > a:only-child, +.ant-btn-background-ghost.ant-btn-danger-disabled.active > a:only-child, .ant-btn-background-ghost.ant-btn-danger.disabled.active > a:only-child, .ant-btn-background-ghost.ant-btn-danger[disabled].active > a:only-child { color: currentColor; } -.ant-btn-background-ghost.ant-btn-danger.disabled > a:only-child:after, -.ant-btn-background-ghost.ant-btn-danger[disabled] > a:only-child:after, -.ant-btn-background-ghost.ant-btn-danger.disabled:hover > a:only-child:after, -.ant-btn-background-ghost.ant-btn-danger[disabled]:hover > a:only-child:after, -.ant-btn-background-ghost.ant-btn-danger.disabled:focus > a:only-child:after, -.ant-btn-background-ghost.ant-btn-danger[disabled]:focus > a:only-child:after, -.ant-btn-background-ghost.ant-btn-danger.disabled:active > a:only-child:after, -.ant-btn-background-ghost.ant-btn-danger[disabled]:active > a:only-child:after, -.ant-btn-background-ghost.ant-btn-danger.disabled.active > a:only-child:after, -.ant-btn-background-ghost.ant-btn-danger[disabled].active > a:only-child:after { +.ant-btn-background-ghost.ant-btn-danger-disabled > a:only-child::after, +.ant-btn-background-ghost.ant-btn-danger.disabled > a:only-child::after, +.ant-btn-background-ghost.ant-btn-danger[disabled] > a:only-child::after, +.ant-btn-background-ghost.ant-btn-danger-disabled:hover > a:only-child::after, +.ant-btn-background-ghost.ant-btn-danger.disabled:hover > a:only-child::after, +.ant-btn-background-ghost.ant-btn-danger[disabled]:hover > a:only-child::after, +.ant-btn-background-ghost.ant-btn-danger-disabled:focus > a:only-child::after, +.ant-btn-background-ghost.ant-btn-danger.disabled:focus > a:only-child::after, +.ant-btn-background-ghost.ant-btn-danger[disabled]:focus > a:only-child::after, +.ant-btn-background-ghost.ant-btn-danger-disabled:active > a:only-child::after, +.ant-btn-background-ghost.ant-btn-danger.disabled:active > a:only-child::after, +.ant-btn-background-ghost.ant-btn-danger[disabled]:active > a:only-child::after, +.ant-btn-background-ghost.ant-btn-danger-disabled.active > a:only-child::after, +.ant-btn-background-ghost.ant-btn-danger.disabled.active > a:only-child::after, +.ant-btn-background-ghost.ant-btn-danger[disabled].active > a:only-child::after { + position: absolute; + top: 0; + right: 0; + bottom: 0; + left: 0; + background: transparent; + content: ''; +} +.ant-btn-background-ghost.ant-btn-link { + color: #E64448; + background-color: transparent; + border-color: transparent; + text-shadow: none; + color: #fff; +} +.ant-btn-background-ghost.ant-btn-link > a:only-child { + color: currentColor; +} +.ant-btn-background-ghost.ant-btn-link > a:only-child::after { + position: absolute; + top: 0; + right: 0; + bottom: 0; + left: 0; + background: transparent; content: ''; +} +.ant-btn-background-ghost.ant-btn-link:hover, +.ant-btn-background-ghost.ant-btn-link:focus { + color: #f2726f; + background-color: transparent; + border-color: transparent; +} +.ant-btn-background-ghost.ant-btn-link:hover > a:only-child, +.ant-btn-background-ghost.ant-btn-link:focus > a:only-child { + color: currentColor; +} +.ant-btn-background-ghost.ant-btn-link:hover > a:only-child::after, +.ant-btn-background-ghost.ant-btn-link:focus > a:only-child::after { position: absolute; top: 0; + right: 0; + bottom: 0; left: 0; + background: transparent; + content: ''; +} +.ant-btn-background-ghost.ant-btn-link:active, +.ant-btn-background-ghost.ant-btn-link.active { + color: #bf3037; + background-color: transparent; + border-color: transparent; +} +.ant-btn-background-ghost.ant-btn-link:active > a:only-child, +.ant-btn-background-ghost.ant-btn-link.active > a:only-child { + color: currentColor; +} +.ant-btn-background-ghost.ant-btn-link:active > a:only-child::after, +.ant-btn-background-ghost.ant-btn-link.active > a:only-child::after { + position: absolute; + top: 0; + right: 0; bottom: 0; + left: 0; + background: transparent; + content: ''; +} +.ant-btn-background-ghost.ant-btn-link-disabled, +.ant-btn-background-ghost.ant-btn-link.disabled, +.ant-btn-background-ghost.ant-btn-link[disabled], +.ant-btn-background-ghost.ant-btn-link-disabled:hover, +.ant-btn-background-ghost.ant-btn-link.disabled:hover, +.ant-btn-background-ghost.ant-btn-link[disabled]:hover, +.ant-btn-background-ghost.ant-btn-link-disabled:focus, +.ant-btn-background-ghost.ant-btn-link.disabled:focus, +.ant-btn-background-ghost.ant-btn-link[disabled]:focus, +.ant-btn-background-ghost.ant-btn-link-disabled:active, +.ant-btn-background-ghost.ant-btn-link.disabled:active, +.ant-btn-background-ghost.ant-btn-link[disabled]:active, +.ant-btn-background-ghost.ant-btn-link-disabled.active, +.ant-btn-background-ghost.ant-btn-link.disabled.active, +.ant-btn-background-ghost.ant-btn-link[disabled].active { + color: rgba(0, 0, 0, 0.25); + background-color: #f5f5f5; + border-color: #d9d9d9; + text-shadow: none; + box-shadow: none; +} +.ant-btn-background-ghost.ant-btn-link-disabled > a:only-child, +.ant-btn-background-ghost.ant-btn-link.disabled > a:only-child, +.ant-btn-background-ghost.ant-btn-link[disabled] > a:only-child, +.ant-btn-background-ghost.ant-btn-link-disabled:hover > a:only-child, +.ant-btn-background-ghost.ant-btn-link.disabled:hover > a:only-child, +.ant-btn-background-ghost.ant-btn-link[disabled]:hover > a:only-child, +.ant-btn-background-ghost.ant-btn-link-disabled:focus > a:only-child, +.ant-btn-background-ghost.ant-btn-link.disabled:focus > a:only-child, +.ant-btn-background-ghost.ant-btn-link[disabled]:focus > a:only-child, +.ant-btn-background-ghost.ant-btn-link-disabled:active > a:only-child, +.ant-btn-background-ghost.ant-btn-link.disabled:active > a:only-child, +.ant-btn-background-ghost.ant-btn-link[disabled]:active > a:only-child, +.ant-btn-background-ghost.ant-btn-link-disabled.active > a:only-child, +.ant-btn-background-ghost.ant-btn-link.disabled.active > a:only-child, +.ant-btn-background-ghost.ant-btn-link[disabled].active > a:only-child { + color: currentColor; +} +.ant-btn-background-ghost.ant-btn-link-disabled > a:only-child::after, +.ant-btn-background-ghost.ant-btn-link.disabled > a:only-child::after, +.ant-btn-background-ghost.ant-btn-link[disabled] > a:only-child::after, +.ant-btn-background-ghost.ant-btn-link-disabled:hover > a:only-child::after, +.ant-btn-background-ghost.ant-btn-link.disabled:hover > a:only-child::after, +.ant-btn-background-ghost.ant-btn-link[disabled]:hover > a:only-child::after, +.ant-btn-background-ghost.ant-btn-link-disabled:focus > a:only-child::after, +.ant-btn-background-ghost.ant-btn-link.disabled:focus > a:only-child::after, +.ant-btn-background-ghost.ant-btn-link[disabled]:focus > a:only-child::after, +.ant-btn-background-ghost.ant-btn-link-disabled:active > a:only-child::after, +.ant-btn-background-ghost.ant-btn-link.disabled:active > a:only-child::after, +.ant-btn-background-ghost.ant-btn-link[disabled]:active > a:only-child::after, +.ant-btn-background-ghost.ant-btn-link-disabled.active > a:only-child::after, +.ant-btn-background-ghost.ant-btn-link.disabled.active > a:only-child::after, +.ant-btn-background-ghost.ant-btn-link[disabled].active > a:only-child::after { + position: absolute; + top: 0; right: 0; + bottom: 0; + left: 0; background: transparent; + content: ''; } -.ant-btn-two-chinese-chars:first-letter { +.ant-btn-two-chinese-chars::first-letter { letter-spacing: 0.34em; } .ant-btn-two-chinese-chars > *:not(.anticon) { - letter-spacing: 0.34em; margin-right: -0.34em; + letter-spacing: 0.34em; } .ant-btn-block { width: 100%; @@ -3528,20 +4236,30 @@ a.ant-btn-sm { line-height: 22px; } .ant-fullcalendar { - font-family: "Chinese Quote", -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"; - font-size: 14px; - font-variant: tabular-nums; - line-height: 1.5; - color: rgba(0, 0, 0, 0.65); box-sizing: border-box; margin: 0; padding: 0; + color: rgba(0, 0, 0, 0.65); + font-size: 14px; + font-variant: tabular-nums; + line-height: 1.5; list-style: none; - outline: none; + font-feature-settings: 'tnum'; border-top: 1px solid #d9d9d9; + outline: none; } -.ant-fullcalendar-month-select { - margin-left: 5px; +.ant-select.ant-fullcalendar-year-select { + min-width: 90px; +} +.ant-select.ant-fullcalendar-year-select.ant-select-sm { + min-width: 70px; +} +.ant-select.ant-fullcalendar-month-select { + min-width: 80px; + margin-left: 8px; +} +.ant-select.ant-fullcalendar-month-select.ant-select-sm { + min-width: 60px; } .ant-fullcalendar-header { padding: 11px 16px 11px 0; @@ -3556,8 +4274,8 @@ a.ant-btn-sm { } .ant-fullcalendar-header label.ant-radio-button { height: 22px; - line-height: 20px; padding: 0 10px; + line-height: 20px; } .ant-fullcalendar-date-panel { position: relative; @@ -3567,11 +4285,11 @@ a.ant-btn-sm { padding: 8px 12px; } .ant-fullcalendar table { - border-collapse: collapse; - max-width: 100%; - background-color: transparent; width: 100%; + max-width: 100%; height: 256px; + background-color: transparent; + border-collapse: collapse; } .ant-fullcalendar table, .ant-fullcalendar th, @@ -3582,13 +4300,13 @@ a.ant-btn-sm { position: relative; } .ant-fullcalendar-calendar-table { - border-spacing: 0; margin-bottom: 0; + border-spacing: 0; } .ant-fullcalendar-column-header { - line-height: 18px; - padding: 0; width: 33px; + padding: 0; + line-height: 18px; text-align: center; } .ant-fullcalendar-column-header .ant-fullcalendar-column-header-inner { @@ -3601,18 +4319,20 @@ a.ant-btn-sm { .ant-fullcalendar-month, .ant-fullcalendar-date { text-align: center; + -webkit-transition: all 0.3s; transition: all 0.3s; } .ant-fullcalendar-value { display: block; - margin: 0 auto; - color: rgba(0, 0, 0, 0.65); - border-radius: 2px; width: 24px; height: 24px; + margin: 0 auto; padding: 0; - background: transparent; + color: rgba(0, 0, 0, 0.65); line-height: 24px; + background: transparent; + border-radius: 2px; + -webkit-transition: all 0.3s; transition: all 0.3s; } .ant-fullcalendar-value:hover { @@ -3620,8 +4340,8 @@ a.ant-btn-sm { cursor: pointer; } .ant-fullcalendar-value:active { - background: #E64448; color: #fff; + background: #E64448; } .ant-fullcalendar-month-panel-cell .ant-fullcalendar-value { width: 48px; @@ -3632,8 +4352,8 @@ a.ant-btn-sm { } .ant-fullcalendar-selected-day .ant-fullcalendar-value, .ant-fullcalendar-month-panel-selected-cell .ant-fullcalendar-value { - background: #E64448; color: #fff; + background: #E64448; } .ant-fullcalendar-disabled-cell-first-of-row .ant-fullcalendar-value { border-top-left-radius: 5px; @@ -3648,15 +4368,15 @@ a.ant-btn-sm { color: rgba(0, 0, 0, 0.25); } .ant-fullcalendar-month-panel-table { - table-layout: fixed; width: 100%; + table-layout: fixed; border-collapse: separate; } .ant-fullcalendar-content { position: absolute; - width: 100%; - left: 0; bottom: -9px; + left: 0; + width: 100%; } .ant-fullcalendar-fullscreen { border-top: 0; @@ -3673,13 +4393,14 @@ a.ant-btn-sm { } .ant-fullcalendar-fullscreen .ant-fullcalendar-month, .ant-fullcalendar-fullscreen .ant-fullcalendar-date { - text-align: left; - margin: 0 4px; display: block; - color: rgba(0, 0, 0, 0.65); height: 116px; + margin: 0 4px; padding: 4px 8px; + color: rgba(0, 0, 0, 0.65); + text-align: left; border-top: 2px solid #e8e8e8; + -webkit-transition: background 0.3s; transition: background 0.3s; } .ant-fullcalendar-fullscreen .ant-fullcalendar-month:hover, @@ -3692,22 +4413,22 @@ a.ant-btn-sm { background: #fff1f0; } .ant-fullcalendar-fullscreen .ant-fullcalendar-column-header { - text-align: right; padding-right: 12px; padding-bottom: 5px; + text-align: right; } .ant-fullcalendar-fullscreen .ant-fullcalendar-value { + width: auto; text-align: right; background: transparent; - width: auto; } .ant-fullcalendar-fullscreen .ant-fullcalendar-today .ant-fullcalendar-value { color: rgba(0, 0, 0, 0.65); } .ant-fullcalendar-fullscreen .ant-fullcalendar-month-panel-current-cell .ant-fullcalendar-month, .ant-fullcalendar-fullscreen .ant-fullcalendar-today .ant-fullcalendar-date { - border-top-color: #E64448; background: transparent; + border-top-color: #E64448; } .ant-fullcalendar-fullscreen .ant-fullcalendar-month-panel-current-cell .ant-fullcalendar-value, .ant-fullcalendar-fullscreen .ant-fullcalendar-today .ant-fullcalendar-value { @@ -3726,12 +4447,10 @@ a.ant-btn-sm { color: rgba(0, 0, 0, 0.25); } .ant-fullcalendar-fullscreen .ant-fullcalendar-content { - height: 88px; - overflow-y: auto; position: static; width: auto; - left: auto; - bottom: auto; + height: 88px; + overflow-y: auto; } .ant-fullcalendar-disabled-cell .ant-fullcalendar-date, .ant-fullcalendar-disabled-cell .ant-fullcalendar-date:hover { @@ -3742,112 +4461,116 @@ a.ant-btn-sm { background: transparent; } .ant-fullcalendar-disabled-cell .ant-fullcalendar-value { + width: auto; color: rgba(0, 0, 0, 0.25); border-radius: 0; - width: auto; cursor: not-allowed; } .ant-card { - font-family: "Chinese Quote", -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"; - font-size: 14px; - font-variant: tabular-nums; - line-height: 1.5; - color: rgba(0, 0, 0, 0.65); box-sizing: border-box; margin: 0; padding: 0; + color: rgba(0, 0, 0, 0.65); + font-size: 14px; + font-variant: tabular-nums; + line-height: 1.5; list-style: none; + font-feature-settings: 'tnum'; + position: relative; background: #fff; border-radius: 2px; - position: relative; + -webkit-transition: all 0.3s; transition: all 0.3s; } .ant-card-hoverable { cursor: pointer; } .ant-card-hoverable:hover { - box-shadow: 0 2px 8px rgba(0, 0, 0, 0.09); border-color: rgba(0, 0, 0, 0.09); + box-shadow: 0 2px 8px rgba(0, 0, 0, 0.09); } .ant-card-bordered { border: 1px solid #e8e8e8; } .ant-card-head { + min-height: 48px; + margin-bottom: -1px; + padding: 0 24px; + color: rgba(0, 0, 0, 0.85); + font-weight: 500; + font-size: 16px; background: transparent; border-bottom: 1px solid #e8e8e8; - padding: 0 24px; border-radius: 2px 2px 0 0; zoom: 1; - margin-bottom: -1px; - min-height: 48px; - font-size: 16px; - color: rgba(0, 0, 0, 0.85); - font-weight: 500; } -.ant-card-head:before, -.ant-card-head:after { +.ant-card-head::before, +.ant-card-head::after { content: ''; display: table; } -.ant-card-head:after { +.ant-card-head::after { clear: both; } -.ant-card-head:before, -.ant-card-head:after { +.ant-card-head::before, +.ant-card-head::after { content: ''; display: table; } -.ant-card-head:after { +.ant-card-head::after { clear: both; } .ant-card-head-wrapper { + display: -webkit-box; display: flex; - align-items: center; + -webkit-box-align: center; + align-items: center; } .ant-card-head-title { + display: inline-block; + -webkit-box-flex: 1; + flex: 1; padding: 16px 0; - text-overflow: ellipsis; overflow: hidden; white-space: nowrap; - flex: 1; - display: inline-block; + text-overflow: ellipsis; } .ant-card-head .ant-tabs { - margin-bottom: -17px; clear: both; - font-size: 14px; + margin-bottom: -17px; color: rgba(0, 0, 0, 0.65); font-weight: normal; + font-size: 14px; } .ant-card-head .ant-tabs-bar { border-bottom: 1px solid #e8e8e8; } .ant-card-extra { float: right; + margin-left: auto; padding: 16px 0; - font-size: 14px; color: rgba(0, 0, 0, 0.65); font-weight: normal; - margin-left: auto; + font-size: 14px; } .ant-card-body { padding: 24px; zoom: 1; } -.ant-card-body:before, -.ant-card-body:after { +.ant-card-body::before, +.ant-card-body::after { content: ''; display: table; } -.ant-card-body:after { +.ant-card-body::after { clear: both; } -.ant-card-body:before, -.ant-card-body:after { +.ant-card-body::before, +.ant-card-body::after { content: ''; display: table; } -.ant-card-body:after { +.ant-card-body::after { clear: both; } .ant-card-contain-grid:not(.ant-card-loading) .ant-card-body { @@ -3855,12 +4578,13 @@ a.ant-btn-sm { padding: 0; } .ant-card-grid { - border-radius: 0; - border: 0; - box-shadow: 1px 0 0 0 #e8e8e8, 0 1px 0 0 #e8e8e8, 1px 1px 0 0 #e8e8e8, 1px 0 0 0 #e8e8e8 inset, 0 1px 0 0 #e8e8e8 inset; - width: 33.33%; float: left; + width: 33.33%; padding: 24px; + border: 0; + border-radius: 0; + box-shadow: 1px 0 0 0 #e8e8e8, 0 1px 0 0 #e8e8e8, 1px 1px 0 0 #e8e8e8, 1px 0 0 0 #e8e8e8 inset, 0 1px 0 0 #e8e8e8 inset; + -webkit-transition: all 0.3s; transition: all 0.3s; } .ant-card-grid:hover { @@ -3869,59 +4593,60 @@ a.ant-btn-sm { box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15); } .ant-card-contain-tabs > .ant-card-head .ant-card-head-title { - padding-bottom: 0; min-height: 32px; + padding-bottom: 0; } .ant-card-contain-tabs .ant-card-extra { padding-bottom: 0; } .ant-card-cover > * { - width: 100%; display: block; + width: 100%; } .ant-card-cover img { border-radius: 2px 2px 0 0; } .ant-card-actions { - border-top: 1px solid #e8e8e8; - background: #fafafa; - zoom: 1; - list-style: none; margin: 0; padding: 0; + list-style: none; + background: #fafafa; + border-top: 1px solid #e8e8e8; + zoom: 1; } -.ant-card-actions:before, -.ant-card-actions:after { +.ant-card-actions::before, +.ant-card-actions::after { content: ''; display: table; } -.ant-card-actions:after { +.ant-card-actions::after { clear: both; } -.ant-card-actions:before, -.ant-card-actions:after { +.ant-card-actions::before, +.ant-card-actions::after { content: ''; display: table; } -.ant-card-actions:after { +.ant-card-actions::after { clear: both; } .ant-card-actions > li { float: left; - text-align: center; margin: 12px 0; color: rgba(0, 0, 0, 0.45); + text-align: center; } .ant-card-actions > li > span { + position: relative; display: inline-block; + min-width: 32px; font-size: 14px; - cursor: pointer; line-height: 22px; - min-width: 32px; - position: relative; + cursor: pointer; } .ant-card-actions > li > span:hover { color: #E64448; + -webkit-transition: color 0.3s; transition: color 0.3s; } .ant-card-actions > li > span > .anticon { @@ -3929,10 +4654,10 @@ a.ant-btn-sm { line-height: 22px; } .ant-card-actions > li > span a { - color: rgba(0, 0, 0, 0.45); - line-height: 22px; display: inline-block; width: 100%; + color: rgba(0, 0, 0, 0.45); + line-height: 22px; } .ant-card-actions > li > span a:hover { color: #E64448; @@ -3948,6 +4673,7 @@ a.ant-btn-sm { } .ant-card-padding-transition .ant-card-head, .ant-card-padding-transition .ant-card-body { + -webkit-transition: padding 0.3s; transition: padding 0.3s; } .ant-card-type-inner .ant-card-head { @@ -3968,25 +4694,25 @@ a.ant-btn-sm { margin: -4px 0; zoom: 1; } -.ant-card-meta:before, -.ant-card-meta:after { +.ant-card-meta::before, +.ant-card-meta::after { content: ''; display: table; } -.ant-card-meta:after { +.ant-card-meta::after { clear: both; } -.ant-card-meta:before, -.ant-card-meta:after { +.ant-card-meta::before, +.ant-card-meta::after { content: ''; display: table; } -.ant-card-meta:after { +.ant-card-meta::after { clear: both; } .ant-card-meta-avatar { - padding-right: 16px; float: left; + padding-right: 16px; } .ant-card-meta-detail { overflow: hidden; @@ -3995,28 +4721,18 @@ a.ant-btn-sm { margin-bottom: 8px; } .ant-card-meta-title { - font-size: 16px; - text-overflow: ellipsis; overflow: hidden; - white-space: nowrap; color: rgba(0, 0, 0, 0.85); font-weight: 500; + font-size: 16px; + white-space: nowrap; + text-overflow: ellipsis; } .ant-card-meta-description { color: rgba(0, 0, 0, 0.45); } .ant-card-loading { overflow: hidden; - position: relative; -} -.ant-card-loading:after { - position: absolute; - bottom: 0; - left: 0; - width: 100%; - height: 24px; - background: #fff; - content: ''; } .ant-card-loading .ant-card-body { -webkit-user-select: none; @@ -4030,11 +4746,12 @@ a.ant-btn-sm { .ant-card-loading-block { height: 14px; margin: 4px 0; - border-radius: 2px; + background: -webkit-gradient(linear, left top, right top, from(rgba(207, 216, 220, 0.2)), color-stop(rgba(207, 216, 220, 0.4)), to(rgba(207, 216, 220, 0.2))); background: linear-gradient(90deg, rgba(207, 216, 220, 0.2), rgba(207, 216, 220, 0.4), rgba(207, 216, 220, 0.2)); + background-size: 600% 600%; + border-radius: 2px; -webkit-animation: card-loading 1.4s ease infinite; animation: card-loading 1.4s ease infinite; - background-size: 600% 600%; } @-webkit-keyframes card-loading { 0%, @@ -4054,16 +4771,31 @@ a.ant-btn-sm { background-position: 100% 50%; } } -.ant-carousel { - font-family: "Chinese Quote", -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"; +.ant-card-small > .ant-card-head { + min-height: 36px; + padding: 0 12px; font-size: 14px; - font-variant: tabular-nums; - line-height: 1.5; - color: rgba(0, 0, 0, 0.65); +} +.ant-card-small > .ant-card-head > .ant-card-head-wrapper > .ant-card-head-title { + padding: 8px 0; +} +.ant-card-small > .ant-card-head > .ant-card-head-wrapper > .ant-card-extra { + padding: 8px 0; + font-size: 14px; +} +.ant-card-small > .ant-card-body { + padding: 12px; +} +.ant-carousel { box-sizing: border-box; margin: 0; padding: 0; + color: rgba(0, 0, 0, 0.65); + font-size: 14px; + font-variant: tabular-nums; + line-height: 1.5; list-style: none; + font-feature-settings: 'tnum'; } .ant-carousel .slick-slider { position: relative; @@ -4075,10 +4807,10 @@ a.ant-btn-sm { } .ant-carousel .slick-list { position: relative; - overflow: hidden; display: block; margin: 0; padding: 0; + overflow: hidden; } .ant-carousel .slick-list:focus { outline: none; @@ -4094,30 +4826,31 @@ a.ant-btn-sm { } .ant-carousel .slick-slider .slick-track, .ant-carousel .slick-slider .slick-list { - transform: translate3d(0, 0, 0); + -webkit-transform: translate3d(0, 0, 0); + transform: translate3d(0, 0, 0); } .ant-carousel .slick-track { position: relative; - left: 0; top: 0; + left: 0; display: block; } -.ant-carousel .slick-track:before, -.ant-carousel .slick-track:after { - content: ''; +.ant-carousel .slick-track::before, +.ant-carousel .slick-track::after { display: table; + content: ''; } -.ant-carousel .slick-track:after { +.ant-carousel .slick-track::after { clear: both; } .slick-loading .ant-carousel .slick-track { visibility: hidden; } .ant-carousel .slick-slide { + display: none; float: left; height: 100%; min-height: 1px; - display: none; } [dir='rtl'] .ant-carousel .slick-slide { float: right; @@ -4148,104 +4881,106 @@ a.ant-btn-sm { .ant-carousel .slick-prev, .ant-carousel .slick-next { position: absolute; + top: 50%; display: block; - height: 20px; width: 20px; - line-height: 0; - font-size: 0; - cursor: pointer; - background: transparent; - color: transparent; - top: 50%; + height: 20px; margin-top: -10px; padding: 0; + color: transparent; + font-size: 0; + line-height: 0; + background: transparent; border: 0; outline: none; + cursor: pointer; } .ant-carousel .slick-prev:hover, .ant-carousel .slick-next:hover, .ant-carousel .slick-prev:focus, .ant-carousel .slick-next:focus { - outline: none; - background: transparent; color: transparent; + background: transparent; + outline: none; } -.ant-carousel .slick-prev:hover:before, -.ant-carousel .slick-next:hover:before, -.ant-carousel .slick-prev:focus:before, -.ant-carousel .slick-next:focus:before { +.ant-carousel .slick-prev:hover::before, +.ant-carousel .slick-next:hover::before, +.ant-carousel .slick-prev:focus::before, +.ant-carousel .slick-next:focus::before { opacity: 1; } -.ant-carousel .slick-prev.slick-disabled:before, -.ant-carousel .slick-next.slick-disabled:before { +.ant-carousel .slick-prev.slick-disabled::before, +.ant-carousel .slick-next.slick-disabled::before { opacity: 0.25; } .ant-carousel .slick-prev { left: -25px; } -.ant-carousel .slick-prev:before { +.ant-carousel .slick-prev::before { content: '\2190'; } .ant-carousel .slick-next { right: -25px; } -.ant-carousel .slick-next:before { +.ant-carousel .slick-next::before { content: '\2192'; } .ant-carousel .slick-dots { position: absolute; bottom: 12px; - list-style: none; display: block; - text-align: center; - margin: 0; - padding: 0; width: 100%; height: 3px; + margin: 0; + padding: 0; + text-align: center; + list-style: none; } .ant-carousel .slick-dots li { position: relative; display: inline-block; - vertical-align: top; - text-align: center; margin: 0 2px; padding: 0; + text-align: center; + vertical-align: top; } .ant-carousel .slick-dots li button { - border: 0; - cursor: pointer; - background: #fff; - opacity: 0.3; display: block; width: 16px; height: 3px; + padding: 0; + color: transparent; + font-size: 0; + background: #fff; + border: 0; border-radius: 1px; outline: none; - font-size: 0; - color: transparent; + cursor: pointer; + opacity: 0.3; + -webkit-transition: all 0.5s; transition: all 0.5s; - padding: 0; } .ant-carousel .slick-dots li button:hover, .ant-carousel .slick-dots li button:focus { opacity: 0.75; } .ant-carousel .slick-dots li.slick-active button { + width: 24px; background: #fff; opacity: 1; - width: 24px; } .ant-carousel .slick-dots li.slick-active button:hover, .ant-carousel .slick-dots li.slick-active button:focus { opacity: 1; } .ant-carousel-vertical .slick-dots { - width: 3px; - bottom: auto; - right: 12px; top: 50%; - transform: translateY(-50%); + right: 12px; + bottom: auto; + width: 3px; height: auto; + -webkit-transform: translateY(-50%); + transform: translateY(-50%); } .ant-carousel-vertical .slick-dots li { margin: 0 2px; @@ -4260,90 +4995,92 @@ a.ant-btn-sm { height: 24px; } .ant-cascader { - font-family: "Chinese Quote", -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"; - font-size: 14px; - font-variant: tabular-nums; - line-height: 1.5; - color: rgba(0, 0, 0, 0.65); box-sizing: border-box; margin: 0; padding: 0; + color: rgba(0, 0, 0, 0.65); + font-size: 14px; + font-variant: tabular-nums; + line-height: 1.5; list-style: none; + font-feature-settings: 'tnum'; } .ant-cascader-input.ant-input { + position: relative; + width: 100%; background-color: transparent !important; cursor: pointer; - width: 100%; - position: relative; } .ant-cascader-picker-show-search .ant-cascader-input.ant-input { position: relative; } .ant-cascader-picker { - font-family: "Chinese Quote", -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"; - font-size: 14px; - font-variant: tabular-nums; - line-height: 1.5; - color: rgba(0, 0, 0, 0.65); box-sizing: border-box; margin: 0; padding: 0; + color: rgba(0, 0, 0, 0.65); + font-size: 14px; + font-variant: tabular-nums; + line-height: 1.5; list-style: none; + font-feature-settings: 'tnum'; position: relative; display: inline-block; - cursor: pointer; background-color: #fff; border-radius: 5px; outline: 0; + cursor: pointer; + -webkit-transition: color 0.3s; transition: color 0.3s; } .ant-cascader-picker-with-value .ant-cascader-picker-label { color: transparent; } .ant-cascader-picker-disabled { - cursor: not-allowed; - background: #f5f5f5; color: rgba(0, 0, 0, 0.25); + background: #f5f5f5; + cursor: not-allowed; } .ant-cascader-picker-disabled .ant-cascader-input { cursor: not-allowed; } .ant-cascader-picker:focus .ant-cascader-input { border-color: #f2726f; + border-right-width: 1px !important; outline: 0; box-shadow: 0 0 0 2px rgba(230, 68, 72, 0.2); - border-right-width: 1px !important; } .ant-cascader-picker-show-search.ant-cascader-picker-focused { color: rgba(0, 0, 0, 0.25); } .ant-cascader-picker-label { position: absolute; + top: 50%; left: 0; + width: 100%; height: 20px; - line-height: 20px; - top: 50%; margin-top: -10px; + padding: 0 12px; + overflow: hidden; + line-height: 20px; white-space: nowrap; text-overflow: ellipsis; - overflow: hidden; - width: 100%; - padding: 0 12px; } .ant-cascader-picker-clear { - opacity: 0; position: absolute; + top: 50%; right: 12px; z-index: 2; - background: #fff; - top: 50%; - font-size: 12px; - color: rgba(0, 0, 0, 0.25); width: 12px; height: 12px; margin-top: -6px; + color: rgba(0, 0, 0, 0.25); + font-size: 12px; line-height: 12px; + background: #fff; cursor: pointer; + opacity: 0; + -webkit-transition: color 0.3s ease, opacity 0.15s ease; transition: color 0.3s ease, opacity 0.15s ease; } .ant-cascader-picker-clear:hover { @@ -4354,38 +5091,42 @@ a.ant-btn-sm { } .ant-cascader-picker-arrow { position: absolute; - z-index: 1; top: 50%; right: 12px; + z-index: 1; width: 12px; height: 12px; - font-size: 12px; margin-top: -6px; - line-height: 12px; color: rgba(0, 0, 0, 0.25); + font-size: 12px; + line-height: 12px; + -webkit-transition: -webkit-transform 0.2s; + transition: -webkit-transform 0.2s; transition: transform 0.2s; + transition: transform 0.2s, -webkit-transform 0.2s; } .ant-cascader-picker-arrow.ant-cascader-picker-arrow-expand { - transform: rotate(180deg); + -webkit-transform: rotate(180deg); + transform: rotate(180deg); } .ant-cascader-picker-small .ant-cascader-picker-clear, .ant-cascader-picker-small .ant-cascader-picker-arrow { right: 8px; } .ant-cascader-menus { - font-size: 14px; - background: #fff; position: absolute; z-index: 1050; + font-size: 14px; + white-space: nowrap; + background: #fff; border-radius: 5px; box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15); - white-space: nowrap; } .ant-cascader-menus ul, .ant-cascader-menus ol { - list-style: none; margin: 0; padding: 0; + list-style: none; } .ant-cascader-menus-empty, .ant-cascader-menus-hidden { @@ -4411,22 +5152,22 @@ a.ant-btn-sm { } .ant-cascader-menu { display: inline-block; - vertical-align: top; min-width: 111px; height: 180px; - list-style: none; margin: 0; padding: 0; - border-right: 1px solid #e8e8e8; overflow: auto; + vertical-align: top; + list-style: none; + border-right: 1px solid #e8e8e8; -ms-overflow-style: -ms-autohiding-scrollbar; } .ant-cascader-menu:first-child { border-radius: 5px 0 0 5px; } .ant-cascader-menu:last-child { - border-right-color: transparent; margin-right: -1px; + border-right-color: transparent; border-radius: 0 5px 5px 0; } .ant-cascader-menu:only-child { @@ -4435,24 +5176,25 @@ a.ant-btn-sm { .ant-cascader-menu-item { padding: 5px 12px; line-height: 22px; - cursor: pointer; white-space: nowrap; + cursor: pointer; + -webkit-transition: all 0.3s; transition: all 0.3s; } .ant-cascader-menu-item:hover { background: #fff2f0; } .ant-cascader-menu-item-disabled { - cursor: not-allowed; color: rgba(0, 0, 0, 0.25); + cursor: not-allowed; } .ant-cascader-menu-item-disabled:hover { background: transparent; } .ant-cascader-menu-item-active:not(.ant-cascader-menu-item-disabled), .ant-cascader-menu-item-active:not(.ant-cascader-menu-item-disabled):hover { - background: #f5f5f5; font-weight: 600; + background: #f5f5f5; } .ant-cascader-menu-item-expand { position: relative; @@ -4463,10 +5205,11 @@ a.ant-btn-sm { display: inline-block; font-size: 12px; font-size: 10px \9; - transform: scale(0.83333333) rotate(0deg); - color: rgba(0, 0, 0, 0.45); + -webkit-transform: scale(0.83333333) rotate(0deg); + transform: scale(0.83333333) rotate(0deg); position: absolute; right: 12px; + color: rgba(0, 0, 0, 0.45); } :root .ant-cascader-menu-item-expand .ant-cascader-menu-item-expand-icon, :root .ant-cascader-menu-item-expand .ant-cascader-menu-item-loading-icon { @@ -4477,65 +5220,69 @@ a.ant-btn-sm { } @-webkit-keyframes antCheckboxEffect { 0% { - transform: scale(1); + -webkit-transform: scale(1); + transform: scale(1); opacity: 0.5; } 100% { - transform: scale(1.6); + -webkit-transform: scale(1.6); + transform: scale(1.6); opacity: 0; } } @keyframes antCheckboxEffect { 0% { - transform: scale(1); + -webkit-transform: scale(1); + transform: scale(1); opacity: 0.5; } 100% { - transform: scale(1.6); + -webkit-transform: scale(1.6); + transform: scale(1.6); opacity: 0; } } .ant-checkbox { - font-family: "Chinese Quote", -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"; - font-size: 14px; - font-variant: tabular-nums; - line-height: 1.5; - color: rgba(0, 0, 0, 0.65); box-sizing: border-box; margin: 0; padding: 0; + color: rgba(0, 0, 0, 0.65); + font-size: 14px; + font-variant: tabular-nums; + line-height: 1.5; list-style: none; - white-space: nowrap; - cursor: pointer; - outline: none; + font-feature-settings: 'tnum'; + position: relative; + top: -0.09em; display: inline-block; line-height: 1; - position: relative; + white-space: nowrap; vertical-align: middle; - top: -0.09em; + outline: none; + cursor: pointer; } .ant-checkbox-wrapper:hover .ant-checkbox-inner, .ant-checkbox:hover .ant-checkbox-inner, .ant-checkbox-input:focus + .ant-checkbox-inner { border-color: #E64448; } -.ant-checkbox-checked:after { +.ant-checkbox-checked::after { position: absolute; top: 0; left: 0; width: 100%; height: 100%; - border-radius: 2px; border: 1px solid #E64448; - content: ''; + border-radius: 2px; + visibility: hidden; -webkit-animation: antCheckboxEffect 0.36s ease-in-out; animation: antCheckboxEffect 0.36s ease-in-out; -webkit-animation-fill-mode: both; animation-fill-mode: both; - visibility: hidden; + content: ''; } -.ant-checkbox:hover:after, -.ant-checkbox-wrapper:hover .ant-checkbox:after { +.ant-checkbox:hover::after, +.ant-checkbox-wrapper:hover .ant-checkbox::after { visibility: visible; } .ant-checkbox-inner { @@ -4545,49 +5292,54 @@ a.ant-btn-sm { display: block; width: 16px; height: 16px; + background-color: #fff; border: 1px solid #d9d9d9; border-radius: 2px; - background-color: #fff; - transition: all 0.3s; border-collapse: separate; + -webkit-transition: all 0.3s; + transition: all 0.3s; } -.ant-checkbox-inner:after { - transform: rotate(45deg) scale(0); +.ant-checkbox-inner::after { position: absolute; - left: 4.57142857px; - top: 1.14285714px; + top: 50%; + left: 21%; display: table; width: 5.71428571px; height: 9.14285714px; border: 2px solid #fff; border-top: 0; border-left: 0; - content: ' '; - transition: all 0.1s cubic-bezier(0.71, -0.46, 0.88, 0.6), opacity 0.1s; + -webkit-transform: rotate(45deg) scale(0) translate(-50%, -50%); + transform: rotate(45deg) scale(0) translate(-50%, -50%); opacity: 0; + -webkit-transition: all 0.1s cubic-bezier(0.71, -0.46, 0.88, 0.6), opacity 0.1s; + transition: all 0.1s cubic-bezier(0.71, -0.46, 0.88, 0.6), opacity 0.1s; + content: ' '; } .ant-checkbox-input { position: absolute; - left: 0; - z-index: 1; - cursor: pointer; - opacity: 0; top: 0; - bottom: 0; right: 0; + bottom: 0; + left: 0; + z-index: 1; width: 100%; height: 100%; + cursor: pointer; + opacity: 0; } -.ant-checkbox-checked .ant-checkbox-inner:after { - transform: rotate(45deg) scale(1); +.ant-checkbox-checked .ant-checkbox-inner::after { position: absolute; display: table; border: 2px solid #fff; border-top: 0; border-left: 0; - content: ' '; - transition: all 0.2s cubic-bezier(0.12, 0.4, 0.29, 1.46) 0.1s; + -webkit-transform: rotate(45deg) scale(1) translate(-50%, -50%); + transform: rotate(45deg) scale(1) translate(-50%, -50%); opacity: 1; + -webkit-transition: all 0.2s cubic-bezier(0.12, 0.4, 0.29, 1.46) 0.1s; + transition: all 0.2s cubic-bezier(0.12, 0.4, 0.29, 1.46) 0.1s; + content: ' '; } .ant-checkbox-checked .ant-checkbox-inner { background-color: #E64448; @@ -4596,60 +5348,60 @@ a.ant-btn-sm { .ant-checkbox-disabled { cursor: not-allowed; } -.ant-checkbox-disabled.ant-checkbox-checked .ant-checkbox-inner:after { +.ant-checkbox-disabled.ant-checkbox-checked .ant-checkbox-inner::after { + border-color: rgba(0, 0, 0, 0.25); -webkit-animation-name: none; animation-name: none; - border-color: rgba(0, 0, 0, 0.25); } .ant-checkbox-disabled .ant-checkbox-input { cursor: not-allowed; } .ant-checkbox-disabled .ant-checkbox-inner { - border-color: #d9d9d9 !important; background-color: #f5f5f5; + border-color: #d9d9d9 !important; } -.ant-checkbox-disabled .ant-checkbox-inner:after { - -webkit-animation-name: none; - animation-name: none; +.ant-checkbox-disabled .ant-checkbox-inner::after { border-color: #f5f5f5; border-collapse: separate; + -webkit-animation-name: none; + animation-name: none; } .ant-checkbox-disabled + span { color: rgba(0, 0, 0, 0.25); cursor: not-allowed; } .ant-checkbox-wrapper { - font-family: "Chinese Quote", -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"; - font-size: 14px; - font-variant: tabular-nums; - line-height: 1.5; - color: rgba(0, 0, 0, 0.65); box-sizing: border-box; margin: 0; padding: 0; + color: rgba(0, 0, 0, 0.65); + font-size: 14px; + font-variant: tabular-nums; + line-height: 1.5; list-style: none; + font-feature-settings: 'tnum'; + display: inline-block; line-height: unset; cursor: pointer; - display: inline-block; } .ant-checkbox-wrapper + .ant-checkbox-wrapper { margin-left: 8px; } .ant-checkbox-wrapper + span, .ant-checkbox + span { - padding-left: 8px; padding-right: 8px; + padding-left: 8px; } .ant-checkbox-group { - font-family: "Chinese Quote", -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"; - font-size: 14px; - font-variant: tabular-nums; - line-height: 1.5; - color: rgba(0, 0, 0, 0.65); box-sizing: border-box; margin: 0; padding: 0; + color: rgba(0, 0, 0, 0.65); + font-size: 14px; + font-variant: tabular-nums; + line-height: 1.5; list-style: none; + font-feature-settings: 'tnum'; display: inline-block; } .ant-checkbox-group-item { @@ -4666,35 +5418,36 @@ a.ant-btn-sm { background-color: #fff; border-color: #d9d9d9; } -.ant-checkbox-indeterminate .ant-checkbox-inner:after { - content: ' '; - transform: translate(-50%, -50%) scale(1); - border: 0; - left: 50%; +.ant-checkbox-indeterminate .ant-checkbox-inner::after { top: 50%; + left: 50%; width: 8px; height: 8px; background-color: #E64448; + border: 0; + -webkit-transform: translate(-50%, -50%) scale(1); + transform: translate(-50%, -50%) scale(1); opacity: 1; + content: ' '; } -.ant-checkbox-indeterminate.ant-checkbox-disabled .ant-checkbox-inner:after { - border-color: rgba(0, 0, 0, 0.25); +.ant-checkbox-indeterminate.ant-checkbox-disabled .ant-checkbox-inner::after { background-color: rgba(0, 0, 0, 0.25); + border-color: rgba(0, 0, 0, 0.25); } .ant-collapse { - font-family: "Chinese Quote", -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"; - font-size: 14px; - font-variant: tabular-nums; - line-height: 1.5; - color: rgba(0, 0, 0, 0.65); box-sizing: border-box; margin: 0; padding: 0; + color: rgba(0, 0, 0, 0.65); + font-size: 14px; + font-variant: tabular-nums; + line-height: 1.5; list-style: none; + font-feature-settings: 'tnum'; background-color: #fafafa; - border-radius: 5px; border: 1px solid #d9d9d9; border-bottom: 0; + border-radius: 5px; } .ant-collapse > .ant-collapse-item { border-bottom: 1px solid #d9d9d9; @@ -4704,46 +5457,50 @@ a.ant-btn-sm { border-radius: 0 0 5px 5px; } .ant-collapse > .ant-collapse-item > .ant-collapse-header { - line-height: 22px; + position: relative; padding: 12px 0 12px 40px; color: rgba(0, 0, 0, 0.85); + line-height: 22px; cursor: pointer; - position: relative; + -webkit-transition: all 0.3s; transition: all 0.3s; } -.ant-collapse > .ant-collapse-item > .ant-collapse-header .arrow { +.ant-collapse > .ant-collapse-item > .ant-collapse-header .ant-collapse-arrow { font-style: normal; - vertical-align: -0.125em; + line-height: 0; text-align: center; text-transform: none; - line-height: 0; + vertical-align: -0.125em; text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; - font-size: 12px; position: absolute; - display: inline-block; - line-height: 46px; - vertical-align: top; top: 50%; - transform: translateY(-50%); left: 16px; + display: inline-block; + margin-top: 2px; + font-size: 12px; + line-height: 46px; + -webkit-transform: translateY(-50%); + transform: translateY(-50%); } -.ant-collapse > .ant-collapse-item > .ant-collapse-header .arrow > * { +.ant-collapse > .ant-collapse-item > .ant-collapse-header .ant-collapse-arrow > * { line-height: 1; } -.ant-collapse > .ant-collapse-item > .ant-collapse-header .arrow svg { +.ant-collapse > .ant-collapse-item > .ant-collapse-header .ant-collapse-arrow svg { display: inline-block; } -.ant-collapse > .ant-collapse-item > .ant-collapse-header .arrow:before { +.ant-collapse > .ant-collapse-item > .ant-collapse-header .ant-collapse-arrow::before { display: none; } -.ant-collapse > .ant-collapse-item > .ant-collapse-header .arrow .ant-collapse > .ant-collapse-item > .ant-collapse-header .arrow-icon { +.ant-collapse > .ant-collapse-item > .ant-collapse-header .ant-collapse-arrow .ant-collapse > .ant-collapse-item > .ant-collapse-header .ant-collapse-arrow-icon { display: block; } -.ant-collapse > .ant-collapse-item > .ant-collapse-header .arrow svg { - transform: rotate(0); +.ant-collapse > .ant-collapse-item > .ant-collapse-header .ant-collapse-arrow svg { + -webkit-transition: -webkit-transform 0.24s; + transition: -webkit-transform 0.24s; transition: transform 0.24s; + transition: transform 0.24s, -webkit-transform 0.24s; } .ant-collapse > .ant-collapse-item > .ant-collapse-header:focus { outline: none; @@ -4752,6 +5509,7 @@ a.ant-btn-sm { padding-left: 12px; } .ant-collapse-anim-active { + -webkit-transition: height 0.2s cubic-bezier(0.215, 0.61, 0.355, 1); transition: height 0.2s cubic-bezier(0.215, 0.61, 0.355, 1); } .ant-collapse-content { @@ -4769,9 +5527,6 @@ a.ant-btn-sm { .ant-collapse-item:last-child > .ant-collapse-content { border-radius: 0 0 5px 5px; } -.ant-collapse > .ant-collapse-item > .ant-collapse-header[aria-expanded='true'] .anticon-right svg { - transform: rotate(90deg); -} .ant-collapse-borderless { background-color: #fff; border: 0; @@ -4792,19 +5547,20 @@ a.ant-btn-sm { } .ant-collapse .ant-collapse-item-disabled > .ant-collapse-header, .ant-collapse .ant-collapse-item-disabled > .ant-collapse-header > .arrow { - cursor: not-allowed; color: rgba(0, 0, 0, 0.25); + cursor: not-allowed; } .ant-comment { position: relative; } .ant-comment-inner { - padding: 16px 0; + display: -webkit-box; display: flex; + padding: 16px 0; } .ant-comment-avatar { - flex-shrink: 0; position: relative; + flex-shrink: 0; margin-right: 12px; cursor: pointer; } @@ -4815,28 +5571,32 @@ a.ant-btn-sm { } .ant-comment-content { position: relative; - font-size: 14px; - flex: 1 1 auto; + -webkit-box-flex: 1; + flex: 1 1 auto; min-width: 1px; + font-size: 14px; word-wrap: break-word; } .ant-comment-content-author { + display: -webkit-box; + display: flex; + -webkit-box-pack: start; + justify-content: flex-start; margin-bottom: 4px; font-size: 14px; - display: flex; - justify-content: flex-start; } .ant-comment-content-author > a, .ant-comment-content-author > span { height: 18px; + padding-right: 8px; font-size: 12px; line-height: 18px; - padding-right: 8px; } .ant-comment-content-author-name { - transition: color 0.3s; - font-size: 14px; color: rgba(0, 0, 0, 0.45); + font-size: 14px; + -webkit-transition: color 0.3s; + transition: color 0.3s; } .ant-comment-content-author-name > * { color: rgba(0, 0, 0, 0.45); @@ -4845,9 +5605,9 @@ a.ant-btn-sm { color: rgba(0, 0, 0, 0.45); } .ant-comment-content-author-time { - cursor: auto; color: #ccc; white-space: nowrap; + cursor: auto; } .ant-comment-content-detail p { white-space: pre-wrap; @@ -4862,10 +5622,11 @@ a.ant-btn-sm { } .ant-comment-actions > li > span { padding-right: 10px; - transition: color 0.3s; - font-size: 12px; color: rgba(0, 0, 0, 0.45); + font-size: 12px; cursor: pointer; + -webkit-transition: color 0.3s; + transition: color 0.3s; -webkit-user-select: none; -moz-user-select: none; -ms-user-select: none; @@ -4878,17 +5639,18 @@ a.ant-btn-sm { margin-left: 44px; } .ant-calendar-picker-container { - font-size: 14px; - font-variant: tabular-nums; - line-height: 1.5; - color: rgba(0, 0, 0, 0.65); box-sizing: border-box; margin: 0; padding: 0; + color: rgba(0, 0, 0, 0.65); + font-size: 14px; + font-variant: tabular-nums; + line-height: 1.5; list-style: none; - font-family: "Chinese Quote", -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"; + font-feature-settings: 'tnum'; position: absolute; z-index: 1050; + font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', 'Helvetica Neue', Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol'; } .ant-calendar-picker-container.slide-up-enter.slide-up-enter-active.ant-calendar-picker-container-placement-topLeft, .ant-calendar-picker-container.slide-up-enter.slide-up-enter-active.ant-calendar-picker-container-placement-topRight, @@ -4915,18 +5677,19 @@ a.ant-btn-sm { animation-name: antSlideUpOut; } .ant-calendar-picker { - font-family: "Chinese Quote", -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"; - font-size: 14px; - font-variant: tabular-nums; - line-height: 1.5; - color: rgba(0, 0, 0, 0.65); box-sizing: border-box; margin: 0; padding: 0; + color: rgba(0, 0, 0, 0.65); + font-size: 14px; + font-variant: tabular-nums; + line-height: 1.5; list-style: none; + font-feature-settings: 'tnum'; position: relative; display: inline-block; outline: none; + -webkit-transition: opacity 0.3s; transition: opacity 0.3s; } .ant-calendar-picker-input { @@ -4941,35 +5704,36 @@ a.ant-btn-sm { } .ant-calendar-picker:focus .ant-calendar-picker-input:not(.ant-input-disabled) { border-color: #f2726f; + border-right-width: 1px !important; outline: 0; box-shadow: 0 0 0 2px rgba(230, 68, 72, 0.2); - border-right-width: 1px !important; } .ant-calendar-picker-clear, .ant-calendar-picker-icon { position: absolute; + top: 50%; + right: 12px; + z-index: 1; width: 14px; height: 14px; - right: 12px; - top: 50%; margin-top: -7px; - line-height: 14px; font-size: 12px; + line-height: 14px; + -webkit-transition: all 0.3s; transition: all 0.3s; -webkit-user-select: none; -moz-user-select: none; -ms-user-select: none; user-select: none; - z-index: 1; } .ant-calendar-picker-clear { - opacity: 0; z-index: 2; - font-size: 14px; color: rgba(0, 0, 0, 0.25); + font-size: 14px; background: #fff; - pointer-events: none; cursor: pointer; + opacity: 0; + pointer-events: none; } .ant-calendar-picker-clear:hover { color: rgba(0, 0, 0, 0.45); @@ -4979,10 +5743,9 @@ a.ant-btn-sm { pointer-events: auto; } .ant-calendar-picker-icon { - font-family: 'anticon'; - font-size: 14px; - color: rgba(0, 0, 0, 0.25); display: inline-block; + color: rgba(0, 0, 0, 0.25); + font-size: 14px; line-height: 1; } .ant-calendar-picker-small .ant-calendar-picker-clear, @@ -4991,17 +5754,17 @@ a.ant-btn-sm { } .ant-calendar { position: relative; - outline: none; width: 280px; - border: 1px solid #fff; - list-style: none; font-size: 14px; + line-height: 1.5; text-align: left; + list-style: none; background-color: #fff; + background-clip: padding-box; + border: 1px solid #fff; border-radius: 5px; + outline: none; box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15); - background-clip: padding-box; - line-height: 1.5; } .ant-calendar-input-wrap { height: 34px; @@ -5009,13 +5772,13 @@ a.ant-btn-sm { border-bottom: 1px solid #e8e8e8; } .ant-calendar-input { - border: 0; width: 100%; - cursor: auto; - outline: 0; height: 22px; color: rgba(0, 0, 0, 0.65); background: #fff; + border: 0; + outline: 0; + cursor: auto; } .ant-calendar-input::-moz-placeholder { color: #bfbfbf; @@ -5037,11 +5800,11 @@ a.ant-btn-sm { height: 40px; line-height: 40px; text-align: center; + border-bottom: 1px solid #e8e8e8; -webkit-user-select: none; -moz-user-select: none; -ms-user-select: none; user-select: none; - border-bottom: 1px solid #e8e8e8; } .ant-calendar-header a:hover { color: #cf5353; @@ -5050,10 +5813,10 @@ a.ant-btn-sm { .ant-calendar-header .ant-calendar-decade-select, .ant-calendar-header .ant-calendar-year-select, .ant-calendar-header .ant-calendar-month-select { - padding: 0 2px; - font-weight: 500; display: inline-block; + padding: 0 2px; color: rgba(0, 0, 0, 0.85); + font-weight: 500; line-height: 40px; } .ant-calendar-header .ant-calendar-century-select-arrow, @@ -5072,11 +5835,11 @@ a.ant-btn-sm { .ant-calendar-header .ant-calendar-next-year-btn { position: absolute; top: 0; - color: rgba(0, 0, 0, 0.45); - font-family: Arial, 'Hiragino Sans GB', 'Microsoft Yahei', 'Microsoft Sans Serif', sans-serif; + display: inline-block; padding: 0 5px; + color: rgba(0, 0, 0, 0.45); font-size: 16px; - display: inline-block; + font-family: Arial, 'Hiragino Sans GB', 'Microsoft Yahei', 'Microsoft Sans Serif', sans-serif; line-height: 40px; } .ant-calendar-header .ant-calendar-prev-century-btn, @@ -5084,9 +5847,9 @@ a.ant-btn-sm { .ant-calendar-header .ant-calendar-prev-year-btn { left: 7px; } -.ant-calendar-header .ant-calendar-prev-century-btn:after, -.ant-calendar-header .ant-calendar-prev-decade-btn:after, -.ant-calendar-header .ant-calendar-prev-year-btn:after { +.ant-calendar-header .ant-calendar-prev-century-btn::after, +.ant-calendar-header .ant-calendar-prev-decade-btn::after, +.ant-calendar-header .ant-calendar-prev-year-btn::after { content: '\AB'; } .ant-calendar-header .ant-calendar-next-century-btn, @@ -5094,46 +5857,46 @@ a.ant-btn-sm { .ant-calendar-header .ant-calendar-next-year-btn { right: 7px; } -.ant-calendar-header .ant-calendar-next-century-btn:after, -.ant-calendar-header .ant-calendar-next-decade-btn:after, -.ant-calendar-header .ant-calendar-next-year-btn:after { +.ant-calendar-header .ant-calendar-next-century-btn::after, +.ant-calendar-header .ant-calendar-next-decade-btn::after, +.ant-calendar-header .ant-calendar-next-year-btn::after { content: '\BB'; } .ant-calendar-header .ant-calendar-prev-month-btn { left: 29px; } -.ant-calendar-header .ant-calendar-prev-month-btn:after { +.ant-calendar-header .ant-calendar-prev-month-btn::after { content: '\2039'; } .ant-calendar-header .ant-calendar-next-month-btn { right: 29px; } -.ant-calendar-header .ant-calendar-next-month-btn:after { +.ant-calendar-header .ant-calendar-next-month-btn::after { content: '\203A'; } .ant-calendar-body { padding: 8px 12px; } .ant-calendar table { - border-collapse: collapse; + width: 100%; max-width: 100%; background-color: transparent; - width: 100%; + border-collapse: collapse; } .ant-calendar table, .ant-calendar th, .ant-calendar td { - border: 0; text-align: center; + border: 0; } .ant-calendar-calendar-table { - border-spacing: 0; margin-bottom: 0; + border-spacing: 0; } .ant-calendar-column-header { - line-height: 18px; width: 33px; padding: 6px 0; + line-height: 18px; text-align: center; } .ant-calendar-column-header .ant-calendar-column-header-inner { @@ -5144,25 +5907,27 @@ a.ant-btn-sm { display: none; } .ant-calendar-cell { - padding: 3px 0; height: 30px; + padding: 3px 0; } .ant-calendar-date { display: block; - margin: 0 auto; - color: rgba(0, 0, 0, 0.65); - border-radius: 2px; width: 24px; height: 24px; - line-height: 22px; - border: 1px solid transparent; + margin: 0 auto; padding: 0; - background: transparent; + color: rgba(0, 0, 0, 0.65); + line-height: 22px; text-align: center; + background: transparent; + border: 1px solid transparent; + border-radius: 2px; + -webkit-transition: background 0.3s ease; transition: background 0.3s ease; } .ant-calendar-date-panel { position: relative; + outline: none; } .ant-calendar-date:hover { background: #fff2f0; @@ -5173,9 +5938,9 @@ a.ant-btn-sm { background: #f2726f; } .ant-calendar-today .ant-calendar-date { - border-color: #E64448; - font-weight: bold; color: #E64448; + font-weight: bold; + border-color: #E64448; } .ant-calendar-last-month-cell .ant-calendar-date, .ant-calendar-next-month-btn-day .ant-calendar-date { @@ -5187,8 +5952,8 @@ a.ant-btn-sm { .ant-calendar-selected-date .ant-calendar-date, .ant-calendar-selected-start-date .ant-calendar-date, .ant-calendar-selected-end-date .ant-calendar-date { - background: #E64448; color: #fff; + background: #E64448; border: 1px solid transparent; } .ant-calendar-selected-date .ant-calendar-date:hover, @@ -5197,12 +5962,12 @@ a.ant-btn-sm { background: #E64448; } .ant-calendar-disabled-cell .ant-calendar-date { - cursor: not-allowed; - color: #bcbcbc; - background: #f5f5f5; - border-radius: 0; width: auto; + color: rgba(0, 0, 0, 0.25); + background: #f5f5f5; border: 1px solid transparent; + border-radius: 0; + cursor: not-allowed; } .ant-calendar-disabled-cell .ant-calendar-date:hover { background: #f5f5f5; @@ -5212,15 +5977,15 @@ a.ant-btn-sm { padding-right: 5px; padding-left: 5px; } -.ant-calendar-disabled-cell.ant-calendar-today .ant-calendar-date:before { - content: ' '; +.ant-calendar-disabled-cell.ant-calendar-today .ant-calendar-date::before { position: absolute; top: -1px; left: 5px; width: 24px; height: 24px; - border: 1px solid #bcbcbc; + border: 1px solid rgba(0, 0, 0, 0.25); border-radius: 2px; + content: ' '; } .ant-calendar-disabled-cell-first-of-row .ant-calendar-date { border-top-left-radius: 4px; @@ -5231,16 +5996,16 @@ a.ant-btn-sm { border-bottom-right-radius: 4px; } .ant-calendar-footer { - border-top: 1px solid #e8e8e8; - line-height: 38px; padding: 0 12px; + line-height: 38px; + border-top: 1px solid #e8e8e8; } .ant-calendar-footer:empty { border-top: 0; } .ant-calendar-footer-btn { - text-align: center; display: block; + text-align: center; } .ant-calendar-footer-extra { text-align: left; @@ -5248,8 +6013,8 @@ a.ant-btn-sm { .ant-calendar .ant-calendar-today-btn, .ant-calendar .ant-calendar-clear-btn { display: inline-block; - text-align: center; margin: 0 0 0 8px; + text-align: center; } .ant-calendar .ant-calendar-today-btn-disabled, .ant-calendar .ant-calendar-clear-btn-disabled { @@ -5261,57 +6026,59 @@ a.ant-btn-sm { margin: 0; } .ant-calendar .ant-calendar-clear-btn { - display: none; position: absolute; + top: 7px; right: 5px; - text-indent: -76px; - overflow: hidden; + display: none; width: 20px; height: 20px; - text-align: center; - line-height: 20px; - top: 7px; margin: 0; + overflow: hidden; + line-height: 20px; + text-align: center; + text-indent: -76px; } -.ant-calendar .ant-calendar-clear-btn:after { - font-size: 14px; - color: rgba(0, 0, 0, 0.25); +.ant-calendar .ant-calendar-clear-btn::after { display: inline-block; - line-height: 1; width: 20px; + color: rgba(0, 0, 0, 0.25); + font-size: 14px; + line-height: 1; text-indent: 43px; + -webkit-transition: color 0.3s ease; transition: color 0.3s ease; } -.ant-calendar .ant-calendar-clear-btn:hover:after { +.ant-calendar .ant-calendar-clear-btn:hover::after { color: rgba(0, 0, 0, 0.45); } .ant-calendar .ant-calendar-ok-btn { + position: relative; display: inline-block; font-weight: 400; + white-space: nowrap; text-align: center; - touch-action: manipulation; - cursor: pointer; background-image: none; border: 1px solid transparent; - white-space: nowrap; - padding: 0 15px; - height: 32px; + box-shadow: 0 2px 0 rgba(0, 0, 0, 0.015); + cursor: pointer; + -webkit-transition: all 0.3s cubic-bezier(0.645, 0.045, 0.355, 1); + transition: all 0.3s cubic-bezier(0.645, 0.045, 0.355, 1); -webkit-user-select: none; -moz-user-select: none; -ms-user-select: none; user-select: none; - transition: all 0.3s cubic-bezier(0.645, 0.045, 0.355, 1); - position: relative; - box-shadow: 0 2px 0 rgba(0, 0, 0, 0.015); + touch-action: manipulation; + height: 32px; + padding: 0 15px; color: #fff; background-color: #E64448; border-color: #E64448; text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.12); box-shadow: 0 2px 0 rgba(0, 0, 0, 0.045); + height: 24px; padding: 0 7px; font-size: 14px; border-radius: 5px; - height: 24px; line-height: 22px; } .ant-calendar .ant-calendar-ok-btn > .anticon { @@ -5338,28 +6105,28 @@ a.ant-btn-sm { pointer-events: none; } .ant-calendar .ant-calendar-ok-btn-lg { + height: 40px; padding: 0 15px; font-size: 16px; border-radius: 5px; - height: 40px; } .ant-calendar .ant-calendar-ok-btn-sm { + height: 24px; padding: 0 7px; font-size: 14px; border-radius: 5px; - height: 24px; } .ant-calendar .ant-calendar-ok-btn > a:only-child { color: currentColor; } -.ant-calendar .ant-calendar-ok-btn > a:only-child:after { - content: ''; +.ant-calendar .ant-calendar-ok-btn > a:only-child::after { position: absolute; top: 0; - left: 0; - bottom: 0; right: 0; + bottom: 0; + left: 0; background: transparent; + content: ''; } .ant-calendar .ant-calendar-ok-btn:hover, .ant-calendar .ant-calendar-ok-btn:focus { @@ -5371,15 +6138,15 @@ a.ant-btn-sm { .ant-calendar .ant-calendar-ok-btn:focus > a:only-child { color: currentColor; } -.ant-calendar .ant-calendar-ok-btn:hover > a:only-child:after, -.ant-calendar .ant-calendar-ok-btn:focus > a:only-child:after { - content: ''; +.ant-calendar .ant-calendar-ok-btn:hover > a:only-child::after, +.ant-calendar .ant-calendar-ok-btn:focus > a:only-child::after { position: absolute; top: 0; - left: 0; - bottom: 0; right: 0; + bottom: 0; + left: 0; background: transparent; + content: ''; } .ant-calendar .ant-calendar-ok-btn:active, .ant-calendar .ant-calendar-ok-btn.active { @@ -5391,24 +6158,29 @@ a.ant-btn-sm { .ant-calendar .ant-calendar-ok-btn.active > a:only-child { color: currentColor; } -.ant-calendar .ant-calendar-ok-btn:active > a:only-child:after, -.ant-calendar .ant-calendar-ok-btn.active > a:only-child:after { - content: ''; +.ant-calendar .ant-calendar-ok-btn:active > a:only-child::after, +.ant-calendar .ant-calendar-ok-btn.active > a:only-child::after { position: absolute; top: 0; - left: 0; - bottom: 0; right: 0; + bottom: 0; + left: 0; background: transparent; + content: ''; } +.ant-calendar .ant-calendar-ok-btn-disabled, .ant-calendar .ant-calendar-ok-btn.disabled, .ant-calendar .ant-calendar-ok-btn[disabled], +.ant-calendar .ant-calendar-ok-btn-disabled:hover, .ant-calendar .ant-calendar-ok-btn.disabled:hover, .ant-calendar .ant-calendar-ok-btn[disabled]:hover, +.ant-calendar .ant-calendar-ok-btn-disabled:focus, .ant-calendar .ant-calendar-ok-btn.disabled:focus, .ant-calendar .ant-calendar-ok-btn[disabled]:focus, +.ant-calendar .ant-calendar-ok-btn-disabled:active, .ant-calendar .ant-calendar-ok-btn.disabled:active, .ant-calendar .ant-calendar-ok-btn[disabled]:active, +.ant-calendar .ant-calendar-ok-btn-disabled.active, .ant-calendar .ant-calendar-ok-btn.disabled.active, .ant-calendar .ant-calendar-ok-btn[disabled].active { color: rgba(0, 0, 0, 0.25); @@ -5417,78 +6189,114 @@ a.ant-btn-sm { text-shadow: none; box-shadow: none; } +.ant-calendar .ant-calendar-ok-btn-disabled > a:only-child, .ant-calendar .ant-calendar-ok-btn.disabled > a:only-child, .ant-calendar .ant-calendar-ok-btn[disabled] > a:only-child, +.ant-calendar .ant-calendar-ok-btn-disabled:hover > a:only-child, .ant-calendar .ant-calendar-ok-btn.disabled:hover > a:only-child, .ant-calendar .ant-calendar-ok-btn[disabled]:hover > a:only-child, +.ant-calendar .ant-calendar-ok-btn-disabled:focus > a:only-child, .ant-calendar .ant-calendar-ok-btn.disabled:focus > a:only-child, .ant-calendar .ant-calendar-ok-btn[disabled]:focus > a:only-child, +.ant-calendar .ant-calendar-ok-btn-disabled:active > a:only-child, .ant-calendar .ant-calendar-ok-btn.disabled:active > a:only-child, .ant-calendar .ant-calendar-ok-btn[disabled]:active > a:only-child, +.ant-calendar .ant-calendar-ok-btn-disabled.active > a:only-child, .ant-calendar .ant-calendar-ok-btn.disabled.active > a:only-child, .ant-calendar .ant-calendar-ok-btn[disabled].active > a:only-child { color: currentColor; } -.ant-calendar .ant-calendar-ok-btn.disabled > a:only-child:after, -.ant-calendar .ant-calendar-ok-btn[disabled] > a:only-child:after, -.ant-calendar .ant-calendar-ok-btn.disabled:hover > a:only-child:after, -.ant-calendar .ant-calendar-ok-btn[disabled]:hover > a:only-child:after, -.ant-calendar .ant-calendar-ok-btn.disabled:focus > a:only-child:after, -.ant-calendar .ant-calendar-ok-btn[disabled]:focus > a:only-child:after, -.ant-calendar .ant-calendar-ok-btn.disabled:active > a:only-child:after, -.ant-calendar .ant-calendar-ok-btn[disabled]:active > a:only-child:after, -.ant-calendar .ant-calendar-ok-btn.disabled.active > a:only-child:after, -.ant-calendar .ant-calendar-ok-btn[disabled].active > a:only-child:after { - content: ''; +.ant-calendar .ant-calendar-ok-btn-disabled > a:only-child::after, +.ant-calendar .ant-calendar-ok-btn.disabled > a:only-child::after, +.ant-calendar .ant-calendar-ok-btn[disabled] > a:only-child::after, +.ant-calendar .ant-calendar-ok-btn-disabled:hover > a:only-child::after, +.ant-calendar .ant-calendar-ok-btn.disabled:hover > a:only-child::after, +.ant-calendar .ant-calendar-ok-btn[disabled]:hover > a:only-child::after, +.ant-calendar .ant-calendar-ok-btn-disabled:focus > a:only-child::after, +.ant-calendar .ant-calendar-ok-btn.disabled:focus > a:only-child::after, +.ant-calendar .ant-calendar-ok-btn[disabled]:focus > a:only-child::after, +.ant-calendar .ant-calendar-ok-btn-disabled:active > a:only-child::after, +.ant-calendar .ant-calendar-ok-btn.disabled:active > a:only-child::after, +.ant-calendar .ant-calendar-ok-btn[disabled]:active > a:only-child::after, +.ant-calendar .ant-calendar-ok-btn-disabled.active > a:only-child::after, +.ant-calendar .ant-calendar-ok-btn.disabled.active > a:only-child::after, +.ant-calendar .ant-calendar-ok-btn[disabled].active > a:only-child::after { position: absolute; top: 0; - left: 0; - bottom: 0; right: 0; + bottom: 0; + left: 0; background: transparent; + content: ''; } -.ant-calendar .ant-calendar-ok-btn-disabled { +.ant-calendar .ant-calendar-ok-btn-disabled, +.ant-calendar .ant-calendar-ok-btn.disabled, +.ant-calendar .ant-calendar-ok-btn[disabled], +.ant-calendar .ant-calendar-ok-btn-disabled:hover, +.ant-calendar .ant-calendar-ok-btn.disabled:hover, +.ant-calendar .ant-calendar-ok-btn[disabled]:hover, +.ant-calendar .ant-calendar-ok-btn-disabled:focus, +.ant-calendar .ant-calendar-ok-btn.disabled:focus, +.ant-calendar .ant-calendar-ok-btn[disabled]:focus, +.ant-calendar .ant-calendar-ok-btn-disabled:active, +.ant-calendar .ant-calendar-ok-btn.disabled:active, +.ant-calendar .ant-calendar-ok-btn[disabled]:active, +.ant-calendar .ant-calendar-ok-btn-disabled.active, +.ant-calendar .ant-calendar-ok-btn.disabled.active, +.ant-calendar .ant-calendar-ok-btn[disabled].active { color: rgba(0, 0, 0, 0.25); background-color: #f5f5f5; border-color: #d9d9d9; - cursor: not-allowed; + text-shadow: none; + box-shadow: none; } -.ant-calendar .ant-calendar-ok-btn-disabled > a:only-child { +.ant-calendar .ant-calendar-ok-btn-disabled > a:only-child, +.ant-calendar .ant-calendar-ok-btn.disabled > a:only-child, +.ant-calendar .ant-calendar-ok-btn[disabled] > a:only-child, +.ant-calendar .ant-calendar-ok-btn-disabled:hover > a:only-child, +.ant-calendar .ant-calendar-ok-btn.disabled:hover > a:only-child, +.ant-calendar .ant-calendar-ok-btn[disabled]:hover > a:only-child, +.ant-calendar .ant-calendar-ok-btn-disabled:focus > a:only-child, +.ant-calendar .ant-calendar-ok-btn.disabled:focus > a:only-child, +.ant-calendar .ant-calendar-ok-btn[disabled]:focus > a:only-child, +.ant-calendar .ant-calendar-ok-btn-disabled:active > a:only-child, +.ant-calendar .ant-calendar-ok-btn.disabled:active > a:only-child, +.ant-calendar .ant-calendar-ok-btn[disabled]:active > a:only-child, +.ant-calendar .ant-calendar-ok-btn-disabled.active > a:only-child, +.ant-calendar .ant-calendar-ok-btn.disabled.active > a:only-child, +.ant-calendar .ant-calendar-ok-btn[disabled].active > a:only-child { color: currentColor; } -.ant-calendar .ant-calendar-ok-btn-disabled > a:only-child:after { - content: ''; +.ant-calendar .ant-calendar-ok-btn-disabled > a:only-child::after, +.ant-calendar .ant-calendar-ok-btn.disabled > a:only-child::after, +.ant-calendar .ant-calendar-ok-btn[disabled] > a:only-child::after, +.ant-calendar .ant-calendar-ok-btn-disabled:hover > a:only-child::after, +.ant-calendar .ant-calendar-ok-btn.disabled:hover > a:only-child::after, +.ant-calendar .ant-calendar-ok-btn[disabled]:hover > a:only-child::after, +.ant-calendar .ant-calendar-ok-btn-disabled:focus > a:only-child::after, +.ant-calendar .ant-calendar-ok-btn.disabled:focus > a:only-child::after, +.ant-calendar .ant-calendar-ok-btn[disabled]:focus > a:only-child::after, +.ant-calendar .ant-calendar-ok-btn-disabled:active > a:only-child::after, +.ant-calendar .ant-calendar-ok-btn.disabled:active > a:only-child::after, +.ant-calendar .ant-calendar-ok-btn[disabled]:active > a:only-child::after, +.ant-calendar .ant-calendar-ok-btn-disabled.active > a:only-child::after, +.ant-calendar .ant-calendar-ok-btn.disabled.active > a:only-child::after, +.ant-calendar .ant-calendar-ok-btn[disabled].active > a:only-child::after { position: absolute; top: 0; - left: 0; - bottom: 0; right: 0; - background: transparent; -} -.ant-calendar .ant-calendar-ok-btn-disabled:hover { - color: rgba(0, 0, 0, 0.25); - background-color: #f5f5f5; - border-color: #d9d9d9; -} -.ant-calendar .ant-calendar-ok-btn-disabled:hover > a:only-child { - color: currentColor; -} -.ant-calendar .ant-calendar-ok-btn-disabled:hover > a:only-child:after { - content: ''; - position: absolute; - top: 0; - left: 0; bottom: 0; - right: 0; + left: 0; background: transparent; + content: ''; } .ant-calendar-range-picker-input { + width: 44%; + height: 99%; + text-align: center; background-color: transparent; border: 0; - height: 99%; outline: 0; - width: 44%; - text-align: center; } .ant-calendar-range-picker-input::-moz-placeholder { color: #bfbfbf; @@ -5504,10 +6312,10 @@ a.ant-btn-sm { cursor: not-allowed; } .ant-calendar-range-picker-separator { - color: rgba(0, 0, 0, 0.45); - width: 10px; display: inline-block; + width: 10px; height: 100%; + color: rgba(0, 0, 0, 0.45); vertical-align: top; } .ant-calendar-range { @@ -5515,15 +6323,15 @@ a.ant-btn-sm { overflow: hidden; } .ant-calendar-range .ant-calendar-date-panel::after { - content: '.'; display: block; - height: 0; clear: both; + height: 0; visibility: hidden; + content: '.'; } .ant-calendar-range-part { - width: 50%; position: relative; + width: 50%; } .ant-calendar-range-left { float: left; @@ -5541,11 +6349,11 @@ a.ant-btn-sm { position: absolute; left: 50%; width: 20px; - margin-left: -132px; - text-align: center; height: 34px; - line-height: 34px; + margin-left: -132px; color: rgba(0, 0, 0, 0.45); + line-height: 34px; + text-align: center; } .ant-calendar-range-right .ant-calendar-date-input-wrap { margin-left: -118px; @@ -5564,22 +6372,23 @@ a.ant-btn-sm { .ant-calendar-range .ant-calendar-time-picker-input { position: relative; display: inline-block; - padding: 4px 11px; width: 100%; height: 32px; + padding: 4px 11px; + color: rgba(0, 0, 0, 0.65); font-size: 14px; line-height: 1.5; - color: rgba(0, 0, 0, 0.65); background-color: #fff; background-image: none; border: 1px solid #d9d9d9; border-radius: 5px; + -webkit-transition: all 0.3s; transition: all 0.3s; height: 24px; + padding-right: 0; + padding-left: 0; border: 0; box-shadow: none; - padding-left: 0; - padding-right: 0; } .ant-calendar-range .ant-calendar-input::-moz-placeholder, .ant-calendar-range .ant-calendar-time-picker-input::-moz-placeholder { @@ -5602,16 +6411,16 @@ a.ant-btn-sm { .ant-calendar-range .ant-calendar-input:focus, .ant-calendar-range .ant-calendar-time-picker-input:focus { border-color: #f2726f; + border-right-width: 1px !important; outline: 0; box-shadow: 0 0 0 2px rgba(230, 68, 72, 0.2); - border-right-width: 1px !important; } .ant-calendar-range .ant-calendar-input-disabled, .ant-calendar-range .ant-calendar-time-picker-input-disabled { + color: rgba(0, 0, 0, 0.25); background-color: #f5f5f5; - opacity: 1; cursor: not-allowed; - color: rgba(0, 0, 0, 0.25); + opacity: 1; } .ant-calendar-range .ant-calendar-input-disabled:hover, .ant-calendar-range .ant-calendar-time-picker-input-disabled:hover { @@ -5622,20 +6431,21 @@ textarea.ant-calendar-range .ant-calendar-input, textarea.ant-calendar-range .ant-calendar-time-picker-input { max-width: 100%; height: auto; + min-height: 32px; vertical-align: bottom; + -webkit-transition: all 0.3s, height 0s; transition: all 0.3s, height 0s; - min-height: 32px; } .ant-calendar-range .ant-calendar-input-lg, .ant-calendar-range .ant-calendar-time-picker-input-lg { - padding: 6px 11px; height: 40px; + padding: 6px 11px; font-size: 16px; } .ant-calendar-range .ant-calendar-input-sm, .ant-calendar-range .ant-calendar-time-picker-input-sm { - padding: 1px 7px; height: 24px; + padding: 1px 7px; } .ant-calendar-range .ant-calendar-input:focus, .ant-calendar-range .ant-calendar-time-picker-input:focus { @@ -5664,24 +6474,24 @@ textarea.ant-calendar-range .ant-calendar-time-picker-input { height: 208px; } .ant-calendar-range .ant-calendar-in-range-cell { - border-radius: 0; position: relative; + border-radius: 0; } .ant-calendar-range .ant-calendar-in-range-cell > div { position: relative; z-index: 1; } -.ant-calendar-range .ant-calendar-in-range-cell:before { - content: ''; - display: block; - background: #fff2f0; - border-radius: 0; - border: 0; +.ant-calendar-range .ant-calendar-in-range-cell::before { position: absolute; top: 4px; + right: 0; bottom: 4px; left: 0; - right: 0; + display: block; + background: #fff2f0; + border: 0; + border-radius: 0; + content: ''; } .ant-calendar-range .ant-calendar-footer-extra { float: left; @@ -5703,18 +6513,18 @@ div.ant-calendar-range-quick-selector > a { border-top: 1px solid #e8e8e8; } .ant-calendar-range.ant-calendar-time .ant-calendar-time-picker { - height: 207px; - width: 100%; top: 68px; z-index: 2; + width: 100%; + height: 207px; } .ant-calendar-range.ant-calendar-time .ant-calendar-time-picker-panel { height: 267px; margin-top: -34px; } .ant-calendar-range.ant-calendar-time .ant-calendar-time-picker-inner { - padding-top: 40px; height: 100%; + padding-top: 40px; background: none; } .ant-calendar-range.ant-calendar-time .ant-calendar-time-picker-combobox { @@ -5733,8 +6543,8 @@ div.ant-calendar-range-quick-selector > a { margin-right: 8px; } .ant-calendar-range.ant-calendar-time .ant-calendar-today-btn { - margin: 8px 12px; height: 22px; + margin: 8px 12px; line-height: 22px; } .ant-calendar-range-with-ranges.ant-calendar-time .ant-calendar-time-picker { @@ -5745,27 +6555,27 @@ div.ant-calendar-range-quick-selector > a { } .ant-calendar-time-picker { position: absolute; - width: 100%; top: 40px; + width: 100%; background-color: #fff; } .ant-calendar-time-picker-panel { - z-index: 1050; position: absolute; + z-index: 1050; width: 100%; } .ant-calendar-time-picker-inner { - display: inline-block; position: relative; - outline: none; - list-style: none; + display: inline-block; + width: 100%; + overflow: hidden; font-size: 14px; + line-height: 1.5; text-align: left; + list-style: none; background-color: #fff; background-clip: padding-box; - line-height: 1.5; - overflow: hidden; - width: 100%; + outline: none; } .ant-calendar-time-picker-combobox { width: 100%; @@ -5787,58 +6597,59 @@ div.ant-calendar-range-quick-selector > a { display: none; } .ant-calendar-time-picker-select { + position: relative; float: left; - font-size: 14px; - border-right: 1px solid #e8e8e8; box-sizing: border-box; - overflow: hidden; - position: relative; height: 226px; + overflow: hidden; + font-size: 14px; + border-right: 1px solid #e8e8e8; } .ant-calendar-time-picker-select:hover { overflow-y: auto; } .ant-calendar-time-picker-select:first-child { - border-left: 0; margin-left: 0; + border-left: 0; } .ant-calendar-time-picker-select:last-child { border-right: 0; } .ant-calendar-time-picker-select ul { - list-style: none; box-sizing: border-box; - margin: 0; - padding: 0; width: 100%; max-height: 206px; + margin: 0; + padding: 0; + list-style: none; } .ant-calendar-time-picker-select li { - padding-left: 32px; - list-style: none; box-sizing: content-box; - margin: 0; width: 100%; height: 24px; + margin: 0; + padding-left: 32px; line-height: 24px; + list-style: none; cursor: pointer; + -webkit-transition: background 0.3s ease; + transition: background 0.3s ease; -webkit-user-select: none; -moz-user-select: none; -ms-user-select: none; user-select: none; - transition: background 0.3s ease; } -.ant-calendar-time-picker-select li:last-child:after { - content: ''; - height: 202px; +.ant-calendar-time-picker-select li:last-child::after { display: block; + height: 202px; + content: ''; } .ant-calendar-time-picker-select li:hover { background: #fff2f0; } li.ant-calendar-time-picker-select-option-selected { - background: #f5f5f5; font-weight: bold; + background: #f5f5f5; } li.ant-calendar-time-picker-select-option-disabled { color: rgba(0, 0, 0, 0.25); @@ -5848,10 +6659,10 @@ li.ant-calendar-time-picker-select-option-disabled:hover { cursor: not-allowed; } .ant-calendar-time .ant-calendar-day-select { - padding: 0 2px; - font-weight: 500; display: inline-block; + padding: 0 2px; color: rgba(0, 0, 0, 0.85); + font-weight: 500; line-height: 34px; } .ant-calendar-time .ant-calendar-footer { @@ -5879,11 +6690,16 @@ li.ant-calendar-time-picker-select-option-disabled:hover { bottom: 0; left: 0; z-index: 10; - border-radius: 5px; background: #fff; + border-radius: 5px; outline: none; } .ant-calendar-month-panel > div { + display: -webkit-box; + display: flex; + -webkit-box-orient: vertical; + -webkit-box-direction: normal; + flex-direction: column; height: 100%; } .ant-calendar-month-panel-hidden { @@ -5893,11 +6709,11 @@ li.ant-calendar-time-picker-select-option-disabled:hover { height: 40px; line-height: 40px; text-align: center; + border-bottom: 1px solid #e8e8e8; -webkit-user-select: none; -moz-user-select: none; -ms-user-select: none; user-select: none; - border-bottom: 1px solid #e8e8e8; } .ant-calendar-month-panel-header a:hover { color: #cf5353; @@ -5906,10 +6722,10 @@ li.ant-calendar-time-picker-select-option-disabled:hover { .ant-calendar-month-panel-header .ant-calendar-month-panel-decade-select, .ant-calendar-month-panel-header .ant-calendar-month-panel-year-select, .ant-calendar-month-panel-header .ant-calendar-month-panel-month-select { - padding: 0 2px; - font-weight: 500; display: inline-block; + padding: 0 2px; color: rgba(0, 0, 0, 0.85); + font-weight: 500; line-height: 40px; } .ant-calendar-month-panel-header .ant-calendar-month-panel-century-select-arrow, @@ -5928,11 +6744,11 @@ li.ant-calendar-time-picker-select-option-disabled:hover { .ant-calendar-month-panel-header .ant-calendar-month-panel-next-year-btn { position: absolute; top: 0; - color: rgba(0, 0, 0, 0.45); - font-family: Arial, 'Hiragino Sans GB', 'Microsoft Yahei', 'Microsoft Sans Serif', sans-serif; + display: inline-block; padding: 0 5px; + color: rgba(0, 0, 0, 0.45); font-size: 16px; - display: inline-block; + font-family: Arial, 'Hiragino Sans GB', 'Microsoft Yahei', 'Microsoft Sans Serif', sans-serif; line-height: 40px; } .ant-calendar-month-panel-header .ant-calendar-month-panel-prev-century-btn, @@ -5940,9 +6756,9 @@ li.ant-calendar-time-picker-select-option-disabled:hover { .ant-calendar-month-panel-header .ant-calendar-month-panel-prev-year-btn { left: 7px; } -.ant-calendar-month-panel-header .ant-calendar-month-panel-prev-century-btn:after, -.ant-calendar-month-panel-header .ant-calendar-month-panel-prev-decade-btn:after, -.ant-calendar-month-panel-header .ant-calendar-month-panel-prev-year-btn:after { +.ant-calendar-month-panel-header .ant-calendar-month-panel-prev-century-btn::after, +.ant-calendar-month-panel-header .ant-calendar-month-panel-prev-decade-btn::after, +.ant-calendar-month-panel-header .ant-calendar-month-panel-prev-year-btn::after { content: '\AB'; } .ant-calendar-month-panel-header .ant-calendar-month-panel-next-century-btn, @@ -5950,59 +6766,67 @@ li.ant-calendar-time-picker-select-option-disabled:hover { .ant-calendar-month-panel-header .ant-calendar-month-panel-next-year-btn { right: 7px; } -.ant-calendar-month-panel-header .ant-calendar-month-panel-next-century-btn:after, -.ant-calendar-month-panel-header .ant-calendar-month-panel-next-decade-btn:after, -.ant-calendar-month-panel-header .ant-calendar-month-panel-next-year-btn:after { +.ant-calendar-month-panel-header .ant-calendar-month-panel-next-century-btn::after, +.ant-calendar-month-panel-header .ant-calendar-month-panel-next-decade-btn::after, +.ant-calendar-month-panel-header .ant-calendar-month-panel-next-year-btn::after { content: '\BB'; } .ant-calendar-month-panel-header .ant-calendar-month-panel-prev-month-btn { left: 29px; } -.ant-calendar-month-panel-header .ant-calendar-month-panel-prev-month-btn:after { +.ant-calendar-month-panel-header .ant-calendar-month-panel-prev-month-btn::after { content: '\2039'; } .ant-calendar-month-panel-header .ant-calendar-month-panel-next-month-btn { right: 29px; } -.ant-calendar-month-panel-header .ant-calendar-month-panel-next-month-btn:after { +.ant-calendar-month-panel-header .ant-calendar-month-panel-next-month-btn::after { content: '\203A'; } .ant-calendar-month-panel-body { - height: calc(100% - 40px); + -webkit-box-flex: 1; + flex: 1; +} +.ant-calendar-month-panel-footer { + border-top: 1px solid #e8e8e8; +} +.ant-calendar-month-panel-footer .ant-calendar-footer-extra { + padding: 0 12px; } .ant-calendar-month-panel-table { - table-layout: fixed; width: 100%; height: 100%; + table-layout: fixed; border-collapse: separate; } .ant-calendar-month-panel-selected-cell .ant-calendar-month-panel-month { - background: #E64448; color: #fff; + background: #E64448; } .ant-calendar-month-panel-selected-cell .ant-calendar-month-panel-month:hover { - background: #E64448; color: #fff; + background: #E64448; } .ant-calendar-month-panel-cell { text-align: center; } .ant-calendar-month-panel-cell-disabled .ant-calendar-month-panel-month, .ant-calendar-month-panel-cell-disabled .ant-calendar-month-panel-month:hover { - cursor: not-allowed; - color: #bcbcbc; + color: rgba(0, 0, 0, 0.25); background: #f5f5f5; + cursor: not-allowed; } .ant-calendar-month-panel-month { display: inline-block; + height: 24px; margin: 0 auto; + padding: 0 8px; color: rgba(0, 0, 0, 0.65); - background: transparent; - text-align: center; - height: 24px; line-height: 24px; - padding: 0 8px; + text-align: center; + background: transparent; border-radius: 2px; + -webkit-transition: background 0.3s ease; transition: background 0.3s ease; } .ant-calendar-month-panel-month:hover { @@ -6016,11 +6840,16 @@ li.ant-calendar-time-picker-select-option-disabled:hover { bottom: 0; left: 0; z-index: 10; - border-radius: 5px; background: #fff; + border-radius: 5px; outline: none; } .ant-calendar-year-panel > div { + display: -webkit-box; + display: flex; + -webkit-box-orient: vertical; + -webkit-box-direction: normal; + flex-direction: column; height: 100%; } .ant-calendar-year-panel-hidden { @@ -6030,11 +6859,11 @@ li.ant-calendar-time-picker-select-option-disabled:hover { height: 40px; line-height: 40px; text-align: center; + border-bottom: 1px solid #e8e8e8; -webkit-user-select: none; -moz-user-select: none; -ms-user-select: none; user-select: none; - border-bottom: 1px solid #e8e8e8; } .ant-calendar-year-panel-header a:hover { color: #cf5353; @@ -6043,10 +6872,10 @@ li.ant-calendar-time-picker-select-option-disabled:hover { .ant-calendar-year-panel-header .ant-calendar-year-panel-decade-select, .ant-calendar-year-panel-header .ant-calendar-year-panel-year-select, .ant-calendar-year-panel-header .ant-calendar-year-panel-month-select { - padding: 0 2px; - font-weight: 500; display: inline-block; + padding: 0 2px; color: rgba(0, 0, 0, 0.85); + font-weight: 500; line-height: 40px; } .ant-calendar-year-panel-header .ant-calendar-year-panel-century-select-arrow, @@ -6065,11 +6894,11 @@ li.ant-calendar-time-picker-select-option-disabled:hover { .ant-calendar-year-panel-header .ant-calendar-year-panel-next-year-btn { position: absolute; top: 0; - color: rgba(0, 0, 0, 0.45); - font-family: Arial, 'Hiragino Sans GB', 'Microsoft Yahei', 'Microsoft Sans Serif', sans-serif; + display: inline-block; padding: 0 5px; + color: rgba(0, 0, 0, 0.45); font-size: 16px; - display: inline-block; + font-family: Arial, 'Hiragino Sans GB', 'Microsoft Yahei', 'Microsoft Sans Serif', sans-serif; line-height: 40px; } .ant-calendar-year-panel-header .ant-calendar-year-panel-prev-century-btn, @@ -6077,9 +6906,9 @@ li.ant-calendar-time-picker-select-option-disabled:hover { .ant-calendar-year-panel-header .ant-calendar-year-panel-prev-year-btn { left: 7px; } -.ant-calendar-year-panel-header .ant-calendar-year-panel-prev-century-btn:after, -.ant-calendar-year-panel-header .ant-calendar-year-panel-prev-decade-btn:after, -.ant-calendar-year-panel-header .ant-calendar-year-panel-prev-year-btn:after { +.ant-calendar-year-panel-header .ant-calendar-year-panel-prev-century-btn::after, +.ant-calendar-year-panel-header .ant-calendar-year-panel-prev-decade-btn::after, +.ant-calendar-year-panel-header .ant-calendar-year-panel-prev-year-btn::after { content: '\AB'; } .ant-calendar-year-panel-header .ant-calendar-year-panel-next-century-btn, @@ -6087,30 +6916,37 @@ li.ant-calendar-time-picker-select-option-disabled:hover { .ant-calendar-year-panel-header .ant-calendar-year-panel-next-year-btn { right: 7px; } -.ant-calendar-year-panel-header .ant-calendar-year-panel-next-century-btn:after, -.ant-calendar-year-panel-header .ant-calendar-year-panel-next-decade-btn:after, -.ant-calendar-year-panel-header .ant-calendar-year-panel-next-year-btn:after { +.ant-calendar-year-panel-header .ant-calendar-year-panel-next-century-btn::after, +.ant-calendar-year-panel-header .ant-calendar-year-panel-next-decade-btn::after, +.ant-calendar-year-panel-header .ant-calendar-year-panel-next-year-btn::after { content: '\BB'; } .ant-calendar-year-panel-header .ant-calendar-year-panel-prev-month-btn { left: 29px; } -.ant-calendar-year-panel-header .ant-calendar-year-panel-prev-month-btn:after { +.ant-calendar-year-panel-header .ant-calendar-year-panel-prev-month-btn::after { content: '\2039'; } .ant-calendar-year-panel-header .ant-calendar-year-panel-next-month-btn { right: 29px; } -.ant-calendar-year-panel-header .ant-calendar-year-panel-next-month-btn:after { +.ant-calendar-year-panel-header .ant-calendar-year-panel-next-month-btn::after { content: '\203A'; } .ant-calendar-year-panel-body { - height: calc(100% - 40px); + -webkit-box-flex: 1; + flex: 1; +} +.ant-calendar-year-panel-footer { + border-top: 1px solid #e8e8e8; +} +.ant-calendar-year-panel-footer .ant-calendar-footer-extra { + padding: 0 12px; } .ant-calendar-year-panel-table { - table-layout: fixed; width: 100%; height: 100%; + table-layout: fixed; border-collapse: separate; } .ant-calendar-year-panel-cell { @@ -6118,14 +6954,15 @@ li.ant-calendar-time-picker-select-option-disabled:hover { } .ant-calendar-year-panel-year { display: inline-block; + height: 24px; margin: 0 auto; + padding: 0 8px; color: rgba(0, 0, 0, 0.65); - background: transparent; - text-align: center; - height: 24px; line-height: 24px; - padding: 0 8px; + text-align: center; + background: transparent; border-radius: 2px; + -webkit-transition: background 0.3s ease; transition: background 0.3s ease; } .ant-calendar-year-panel-year:hover { @@ -6133,20 +6970,20 @@ li.ant-calendar-time-picker-select-option-disabled:hover { cursor: pointer; } .ant-calendar-year-panel-selected-cell .ant-calendar-year-panel-year { - background: #E64448; color: #fff; + background: #E64448; } .ant-calendar-year-panel-selected-cell .ant-calendar-year-panel-year:hover { - background: #E64448; color: #fff; + background: #E64448; } .ant-calendar-year-panel-last-decade-cell .ant-calendar-year-panel-year, .ant-calendar-year-panel-next-decade-cell .ant-calendar-year-panel-year { + color: rgba(0, 0, 0, 0.25); -webkit-user-select: none; -moz-user-select: none; -ms-user-select: none; user-select: none; - color: rgba(0, 0, 0, 0.25); } .ant-calendar-decade-panel { position: absolute; @@ -6155,6 +6992,11 @@ li.ant-calendar-time-picker-select-option-disabled:hover { bottom: 0; left: 0; z-index: 10; + display: -webkit-box; + display: flex; + -webkit-box-orient: vertical; + -webkit-box-direction: normal; + flex-direction: column; background: #fff; border-radius: 5px; outline: none; @@ -6166,11 +7008,11 @@ li.ant-calendar-time-picker-select-option-disabled:hover { height: 40px; line-height: 40px; text-align: center; + border-bottom: 1px solid #e8e8e8; -webkit-user-select: none; -moz-user-select: none; -ms-user-select: none; user-select: none; - border-bottom: 1px solid #e8e8e8; } .ant-calendar-decade-panel-header a:hover { color: #cf5353; @@ -6179,10 +7021,10 @@ li.ant-calendar-time-picker-select-option-disabled:hover { .ant-calendar-decade-panel-header .ant-calendar-decade-panel-decade-select, .ant-calendar-decade-panel-header .ant-calendar-decade-panel-year-select, .ant-calendar-decade-panel-header .ant-calendar-decade-panel-month-select { - padding: 0 2px; - font-weight: 500; display: inline-block; + padding: 0 2px; color: rgba(0, 0, 0, 0.85); + font-weight: 500; line-height: 40px; } .ant-calendar-decade-panel-header .ant-calendar-decade-panel-century-select-arrow, @@ -6201,11 +7043,11 @@ li.ant-calendar-time-picker-select-option-disabled:hover { .ant-calendar-decade-panel-header .ant-calendar-decade-panel-next-year-btn { position: absolute; top: 0; - color: rgba(0, 0, 0, 0.45); - font-family: Arial, 'Hiragino Sans GB', 'Microsoft Yahei', 'Microsoft Sans Serif', sans-serif; + display: inline-block; padding: 0 5px; + color: rgba(0, 0, 0, 0.45); font-size: 16px; - display: inline-block; + font-family: Arial, 'Hiragino Sans GB', 'Microsoft Yahei', 'Microsoft Sans Serif', sans-serif; line-height: 40px; } .ant-calendar-decade-panel-header .ant-calendar-decade-panel-prev-century-btn, @@ -6213,9 +7055,9 @@ li.ant-calendar-time-picker-select-option-disabled:hover { .ant-calendar-decade-panel-header .ant-calendar-decade-panel-prev-year-btn { left: 7px; } -.ant-calendar-decade-panel-header .ant-calendar-decade-panel-prev-century-btn:after, -.ant-calendar-decade-panel-header .ant-calendar-decade-panel-prev-decade-btn:after, -.ant-calendar-decade-panel-header .ant-calendar-decade-panel-prev-year-btn:after { +.ant-calendar-decade-panel-header .ant-calendar-decade-panel-prev-century-btn::after, +.ant-calendar-decade-panel-header .ant-calendar-decade-panel-prev-decade-btn::after, +.ant-calendar-decade-panel-header .ant-calendar-decade-panel-prev-year-btn::after { content: '\AB'; } .ant-calendar-decade-panel-header .ant-calendar-decade-panel-next-century-btn, @@ -6223,46 +7065,54 @@ li.ant-calendar-time-picker-select-option-disabled:hover { .ant-calendar-decade-panel-header .ant-calendar-decade-panel-next-year-btn { right: 7px; } -.ant-calendar-decade-panel-header .ant-calendar-decade-panel-next-century-btn:after, -.ant-calendar-decade-panel-header .ant-calendar-decade-panel-next-decade-btn:after, -.ant-calendar-decade-panel-header .ant-calendar-decade-panel-next-year-btn:after { +.ant-calendar-decade-panel-header .ant-calendar-decade-panel-next-century-btn::after, +.ant-calendar-decade-panel-header .ant-calendar-decade-panel-next-decade-btn::after, +.ant-calendar-decade-panel-header .ant-calendar-decade-panel-next-year-btn::after { content: '\BB'; } .ant-calendar-decade-panel-header .ant-calendar-decade-panel-prev-month-btn { left: 29px; } -.ant-calendar-decade-panel-header .ant-calendar-decade-panel-prev-month-btn:after { +.ant-calendar-decade-panel-header .ant-calendar-decade-panel-prev-month-btn::after { content: '\2039'; } .ant-calendar-decade-panel-header .ant-calendar-decade-panel-next-month-btn { right: 29px; } -.ant-calendar-decade-panel-header .ant-calendar-decade-panel-next-month-btn:after { +.ant-calendar-decade-panel-header .ant-calendar-decade-panel-next-month-btn::after { content: '\203A'; } .ant-calendar-decade-panel-body { - height: calc(100% - 40px); + -webkit-box-flex: 1; + flex: 1; +} +.ant-calendar-decade-panel-footer { + border-top: 1px solid #e8e8e8; +} +.ant-calendar-decade-panel-footer .ant-calendar-footer-extra { + padding: 0 12px; } .ant-calendar-decade-panel-table { - table-layout: fixed; width: 100%; height: 100%; + table-layout: fixed; border-collapse: separate; } .ant-calendar-decade-panel-cell { - text-align: center; white-space: nowrap; + text-align: center; } .ant-calendar-decade-panel-decade { display: inline-block; + height: 24px; margin: 0 auto; + padding: 0 6px; color: rgba(0, 0, 0, 0.65); - background: transparent; - text-align: center; - height: 24px; line-height: 24px; - padding: 0 6px; + text-align: center; + background: transparent; border-radius: 2px; + -webkit-transition: background 0.3s ease; transition: background 0.3s ease; } .ant-calendar-decade-panel-decade:hover { @@ -6270,20 +7120,20 @@ li.ant-calendar-time-picker-select-option-disabled:hover { cursor: pointer; } .ant-calendar-decade-panel-selected-cell .ant-calendar-decade-panel-decade { - background: #E64448; color: #fff; + background: #E64448; } .ant-calendar-decade-panel-selected-cell .ant-calendar-decade-panel-decade:hover { - background: #E64448; color: #fff; + background: #E64448; } .ant-calendar-decade-panel-last-century-cell .ant-calendar-decade-panel-decade, .ant-calendar-decade-panel-next-century-cell .ant-calendar-decade-panel-decade { + color: rgba(0, 0, 0, 0.25); -webkit-user-select: none; -moz-user-select: none; -ms-user-select: none; user-select: none; - color: rgba(0, 0, 0, 0.25); } .ant-calendar-month .ant-calendar-month-header-wrap { position: relative; @@ -6298,95 +7148,97 @@ li.ant-calendar-time-picker-select-option-disabled:hover { opacity: 0.5; } .ant-calendar-week-number .ant-calendar-body tr { - transition: all 0.3s; cursor: pointer; + -webkit-transition: all 0.3s; + transition: all 0.3s; } .ant-calendar-week-number .ant-calendar-body tr:hover { background: #fff2f0; } .ant-calendar-week-number .ant-calendar-body tr.ant-calendar-active-week { - background: #fff1f0; font-weight: bold; + background: #fff1f0; } .ant-calendar-week-number .ant-calendar-body tr .ant-calendar-selected-day .ant-calendar-date, .ant-calendar-week-number .ant-calendar-body tr .ant-calendar-selected-day:hover .ant-calendar-date { - background: transparent; color: rgba(0, 0, 0, 0.65); + background: transparent; } .ant-divider { - font-family: "Chinese Quote", -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"; - font-size: 14px; - font-variant: tabular-nums; - line-height: 1.5; - color: rgba(0, 0, 0, 0.65); box-sizing: border-box; margin: 0; padding: 0; + color: rgba(0, 0, 0, 0.65); + font-size: 14px; + font-variant: tabular-nums; + line-height: 1.5; list-style: none; + font-feature-settings: 'tnum'; background: #e8e8e8; } .ant-divider, .ant-divider-vertical { - margin: 0 8px; + position: relative; + top: -0.06em; display: inline-block; - height: 0.9em; width: 1px; + height: 0.9em; + margin: 0 8px; vertical-align: middle; - position: relative; - top: -0.06em; } .ant-divider-horizontal { display: block; - height: 1px; + clear: both; width: 100%; min-width: 100%; + height: 1px; margin: 24px 0; - clear: both; } .ant-divider-horizontal.ant-divider-with-text, .ant-divider-horizontal.ant-divider-with-text-left, .ant-divider-horizontal.ant-divider-with-text-right { display: table; + margin: 16px 0; + color: rgba(0, 0, 0, 0.85); + font-weight: 500; + font-size: 16px; white-space: nowrap; text-align: center; background: transparent; - font-weight: 500; - color: rgba(0, 0, 0, 0.85); - font-size: 16px; - margin: 16px 0; } -.ant-divider-horizontal.ant-divider-with-text:before, -.ant-divider-horizontal.ant-divider-with-text-left:before, -.ant-divider-horizontal.ant-divider-with-text-right:before, -.ant-divider-horizontal.ant-divider-with-text:after, -.ant-divider-horizontal.ant-divider-with-text-left:after, -.ant-divider-horizontal.ant-divider-with-text-right:after { - content: ''; - display: table-cell; +.ant-divider-horizontal.ant-divider-with-text::before, +.ant-divider-horizontal.ant-divider-with-text-left::before, +.ant-divider-horizontal.ant-divider-with-text-right::before, +.ant-divider-horizontal.ant-divider-with-text::after, +.ant-divider-horizontal.ant-divider-with-text-left::after, +.ant-divider-horizontal.ant-divider-with-text-right::after { position: relative; top: 50%; + display: table-cell; width: 50%; border-top: 1px solid #e8e8e8; - transform: translateY(50%); + -webkit-transform: translateY(50%); + transform: translateY(50%); + content: ''; } .ant-divider-horizontal.ant-divider-with-text-left .ant-divider-inner-text, .ant-divider-horizontal.ant-divider-with-text-right .ant-divider-inner-text { display: inline-block; padding: 0 10px; } -.ant-divider-horizontal.ant-divider-with-text-left:before { +.ant-divider-horizontal.ant-divider-with-text-left::before { top: 50%; width: 5%; } -.ant-divider-horizontal.ant-divider-with-text-left:after { +.ant-divider-horizontal.ant-divider-with-text-left::after { top: 50%; width: 95%; } -.ant-divider-horizontal.ant-divider-with-text-right:before { +.ant-divider-horizontal.ant-divider-with-text-right::before { top: 50%; width: 95%; } -.ant-divider-horizontal.ant-divider-with-text-right:after { +.ant-divider-horizontal.ant-divider-with-text-right::after { top: 50%; width: 5%; } @@ -6403,23 +7255,26 @@ li.ant-calendar-time-picker-select-option-disabled:hover { .ant-divider-horizontal.ant-divider-with-text-right.ant-divider-dashed { border-top: 0; } -.ant-divider-horizontal.ant-divider-with-text.ant-divider-dashed:before, -.ant-divider-horizontal.ant-divider-with-text-left.ant-divider-dashed:before, -.ant-divider-horizontal.ant-divider-with-text-right.ant-divider-dashed:before, -.ant-divider-horizontal.ant-divider-with-text.ant-divider-dashed:after, -.ant-divider-horizontal.ant-divider-with-text-left.ant-divider-dashed:after, -.ant-divider-horizontal.ant-divider-with-text-right.ant-divider-dashed:after { +.ant-divider-horizontal.ant-divider-with-text.ant-divider-dashed::before, +.ant-divider-horizontal.ant-divider-with-text-left.ant-divider-dashed::before, +.ant-divider-horizontal.ant-divider-with-text-right.ant-divider-dashed::before, +.ant-divider-horizontal.ant-divider-with-text.ant-divider-dashed::after, +.ant-divider-horizontal.ant-divider-with-text-left.ant-divider-dashed::after, +.ant-divider-horizontal.ant-divider-with-text-right.ant-divider-dashed::after { border-style: dashed none none; } .ant-drawer { position: fixed; top: 0; + z-index: 1000; width: 0%; height: 100%; - z-index: 1000; } .ant-drawer > * { + -webkit-transition: -webkit-transform 0.3s cubic-bezier(0.9, 0, 0.3, 0.7); + transition: -webkit-transform 0.3s cubic-bezier(0.9, 0, 0.3, 0.7); transition: transform 0.3s cubic-bezier(0.9, 0, 0.3, 0.7); + transition: transform 0.3s cubic-bezier(0.9, 0, 0.3, 0.7), -webkit-transform 0.3s cubic-bezier(0.9, 0, 0.3, 0.7); } .ant-drawer-content-wrapper { position: fixed; @@ -6481,64 +7336,68 @@ li.ant-calendar-time-picker-select-option-disabled:hover { box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.15); } .ant-drawer.ant-drawer-open .ant-drawer-mask { - opacity: 0.3; height: 100%; + opacity: 0.3; + -webkit-transition: none; + transition: none; -webkit-animation: antdDrawerFadeIn 0.3s cubic-bezier(0.7, 0.3, 0.1, 1); animation: antdDrawerFadeIn 0.3s cubic-bezier(0.7, 0.3, 0.1, 1); - transition: none; } .ant-drawer-title { margin: 0; + color: rgba(0, 0, 0, 0.85); + font-weight: 500; font-size: 16px; line-height: 22px; - font-weight: 500; - color: rgba(0, 0, 0, 0.85); } .ant-drawer-content { position: relative; + z-index: 1; background-color: #fff; - border: 0; background-clip: padding-box; - z-index: 1; + border: 0; } .ant-drawer-close { - cursor: pointer; - border: 0; - background: transparent; position: absolute; - right: 0; top: 0; + right: 0; z-index: 10; - font-weight: 700; - line-height: 1; - text-decoration: none; - transition: color 0.3s; - color: rgba(0, 0, 0, 0.45); - outline: 0; - padding: 0; -} -.ant-drawer-close-x { display: block; + width: 56px; + height: 56px; + padding: 0; + color: rgba(0, 0, 0, 0.45); + font-weight: 700; + font-size: 16px; font-style: normal; + line-height: 56px; text-align: center; text-transform: none; + text-decoration: none; + background: transparent; + border: 0; + outline: 0; + cursor: pointer; + -webkit-transition: color 0.3s; + transition: color 0.3s; text-rendering: auto; - width: 56px; - height: 56px; - line-height: 56px; - font-size: 16px; } .ant-drawer-close:focus, .ant-drawer-close:hover { - color: #444; + color: rgba(0, 0, 0, 0.75); text-decoration: none; } .ant-drawer-header { + position: relative; padding: 16px 24px; - border-radius: 5px 5px 0 0; - background: #fff; color: rgba(0, 0, 0, 0.65); + background: #fff; border-bottom: 1px solid #e8e8e8; + border-radius: 5px 5px 0 0; +} +.ant-drawer-header-no-title { + color: rgba(0, 0, 0, 0.65); + background: #fff; } .ant-drawer-body { padding: 24px; @@ -6550,13 +7409,17 @@ li.ant-calendar-time-picker-select-option-disabled:hover { position: fixed; width: 100%; height: 0; - opacity: 0; background-color: rgba(0, 0, 0, 0.65); + opacity: 0; filter: alpha(opacity=50); + -webkit-transition: opacity 0.3s linear, height 0s ease 0.3s; transition: opacity 0.3s linear, height 0s ease 0.3s; } .ant-drawer-open { + -webkit-transition: -webkit-transform 0.3s cubic-bezier(0.7, 0.3, 0.1, 1); + transition: -webkit-transform 0.3s cubic-bezier(0.7, 0.3, 0.1, 1); transition: transform 0.3s cubic-bezier(0.7, 0.3, 0.1, 1); + transition: transform 0.3s cubic-bezier(0.7, 0.3, 0.1, 1), -webkit-transform 0.3s cubic-bezier(0.7, 0.3, 0.1, 1); } .ant-drawer-open-content { box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15); @@ -6578,29 +7441,30 @@ li.ant-calendar-time-picker-select-option-disabled:hover { } } .ant-dropdown { - font-family: "Chinese Quote", -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"; - font-size: 14px; - font-variant: tabular-nums; - line-height: 1.5; - color: rgba(0, 0, 0, 0.65); box-sizing: border-box; margin: 0; padding: 0; + color: rgba(0, 0, 0, 0.65); + font-size: 14px; + font-variant: tabular-nums; + line-height: 1.5; list-style: none; + font-feature-settings: 'tnum'; position: absolute; - left: -9999px; top: -9999px; + left: -9999px; z-index: 1050; display: block; } -.ant-dropdown:before { +.ant-dropdown::before { position: absolute; top: -7px; - left: -7px; right: 0; bottom: -7px; - content: ' '; + left: -7px; + z-index: -9999; opacity: 0.0001; + content: ' '; } .ant-dropdown-wrap { position: relative; @@ -6609,36 +7473,43 @@ li.ant-calendar-time-picker-select-option-disabled:hover { display: inline-block; font-size: 12px; font-size: 10px \9; - transform: scale(0.83333333) rotate(0deg); + -webkit-transform: scale(0.83333333) rotate(0deg); + transform: scale(0.83333333) rotate(0deg); } :root .ant-dropdown-wrap .ant-btn > .anticon-down { font-size: 12px; } -.ant-dropdown-wrap .anticon-down:before { +.ant-dropdown-wrap .anticon-down::before { + -webkit-transition: -webkit-transform 0.2s; + transition: -webkit-transform 0.2s; transition: transform 0.2s; + transition: transform 0.2s, -webkit-transform 0.2s; } -.ant-dropdown-wrap-open .anticon-down:before { - transform: rotate(180deg); +.ant-dropdown-wrap-open .anticon-down::before { + -webkit-transform: rotate(180deg); + transform: rotate(180deg); } .ant-dropdown-hidden, .ant-dropdown-menu-hidden { display: none; } .ant-dropdown-menu { - outline: none; position: relative; - list-style-type: none; - padding: 4px 0; margin: 0; + padding: 4px 0; text-align: left; + list-style-type: none; background-color: #fff; + background-clip: padding-box; border-radius: 5px; + outline: none; box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15); - background-clip: padding-box; + -webkit-transform: translate3d(0, 0, 0); } .ant-dropdown-menu-item-group-title { - color: rgba(0, 0, 0, 0.45); padding: 5px 12px; + color: rgba(0, 0, 0, 0.45); + -webkit-transition: all 0.3s; transition: all 0.3s; } .ant-dropdown-menu-submenu-popup { @@ -6646,20 +7517,22 @@ li.ant-calendar-time-picker-select-option-disabled:hover { z-index: 1050; } .ant-dropdown-menu-submenu-popup > .ant-dropdown-menu { - transform-origin: 0 0; + -webkit-transform-origin: 0 0; + transform-origin: 0 0; } .ant-dropdown-menu-item, .ant-dropdown-menu-submenu-title { - padding: 5px 12px; - margin: 0; clear: both; - font-size: 14px; - font-weight: normal; + margin: 0; + padding: 5px 12px; color: rgba(0, 0, 0, 0.65); + font-weight: normal; + font-size: 14px; + line-height: 22px; white-space: nowrap; cursor: pointer; + -webkit-transition: all 0.3s; transition: all 0.3s; - line-height: 22px; } .ant-dropdown-menu-item > .anticon:first-child, .ant-dropdown-menu-submenu-title > .anticon:first-child { @@ -6668,10 +7541,11 @@ li.ant-calendar-time-picker-select-option-disabled:hover { } .ant-dropdown-menu-item > a, .ant-dropdown-menu-submenu-title > a { - color: rgba(0, 0, 0, 0.65); display: block; - padding: 5px 12px; margin: -5px -12px; + padding: 5px 12px; + color: rgba(0, 0, 0, 0.65); + -webkit-transition: all 0.3s; transition: all 0.3s; } .ant-dropdown-menu-item > a:focus, @@ -6703,10 +7577,10 @@ li.ant-calendar-time-picker-select-option-disabled:hover { .ant-dropdown-menu-item-divider, .ant-dropdown-menu-submenu-title-divider { height: 1px; + margin: 4px 0; overflow: hidden; - background-color: #e8e8e8; line-height: 0; - margin: 4px 0; + background-color: #e8e8e8; } .ant-dropdown-menu-item .ant-dropdown-menu-submenu-arrow, .ant-dropdown-menu-submenu-title .ant-dropdown-menu-submenu-arrow { @@ -6715,12 +7589,13 @@ li.ant-calendar-time-picker-select-option-disabled:hover { } .ant-dropdown-menu-item .ant-dropdown-menu-submenu-arrow-icon, .ant-dropdown-menu-submenu-title .ant-dropdown-menu-submenu-arrow-icon { - font-style: normal; color: rgba(0, 0, 0, 0.45); + font-style: normal; display: inline-block; font-size: 12px; font-size: 10px \9; - transform: scale(0.83333333) rotate(0deg); + -webkit-transform: scale(0.83333333) rotate(0deg); + transform: scale(0.83333333) rotate(0deg); } :root .ant-dropdown-menu-item .ant-dropdown-menu-submenu-arrow-icon, :root .ant-dropdown-menu-submenu-title .ant-dropdown-menu-submenu-arrow-icon { @@ -6733,12 +7608,13 @@ li.ant-calendar-time-picker-select-option-disabled:hover { position: relative; } .ant-dropdown-menu-submenu-vertical > .ant-dropdown-menu { + position: absolute; top: 0; left: 100%; - position: absolute; min-width: 100%; margin-left: 4px; - transform-origin: 0 0; + -webkit-transform-origin: 0 0; + transform-origin: 0 0; } .ant-dropdown-menu-submenu.ant-dropdown-menu-submenu-disabled .ant-dropdown-menu-submenu-title, .ant-dropdown-menu-submenu.ant-dropdown-menu-submenu-disabled .ant-dropdown-menu-submenu-title .ant-dropdown-menu-submenu-arrow-icon { @@ -6781,7 +7657,8 @@ li.ant-calendar-time-picker-select-option-disabled:hover { display: inline-block; font-size: 12px; font-size: 10px \9; - transform: scale(0.83333333) rotate(0deg); + -webkit-transform: scale(0.83333333) rotate(0deg); + transform: scale(0.83333333) rotate(0deg); } :root .ant-dropdown-trigger > .anticon.anticon-down, :root .ant-dropdown-link > .anticon.anticon-down { @@ -6791,14 +7668,15 @@ li.ant-calendar-time-picker-select-option-disabled:hover { white-space: nowrap; } .ant-dropdown-button.ant-btn-group > .ant-btn:last-child:not(:first-child) { - padding-left: 8px; padding-right: 8px; + padding-left: 8px; } .ant-dropdown-button .anticon.anticon-down { display: inline-block; font-size: 12px; font-size: 10px \9; - transform: scale(0.83333333) rotate(0deg); + -webkit-transform: scale(0.83333333) rotate(0deg); + transform: scale(0.83333333) rotate(0deg); } :root .ant-dropdown-button .anticon.anticon-down { font-size: 12px; @@ -6812,9 +7690,9 @@ li.ant-calendar-time-picker-select-option-disabled:hover { .ant-dropdown-menu-dark .ant-dropdown-menu-item > a { color: rgba(255, 255, 255, 0.65); } -.ant-dropdown-menu-dark .ant-dropdown-menu-item .ant-dropdown-menu-submenu-arrow:after, -.ant-dropdown-menu-dark .ant-dropdown-menu-submenu-title .ant-dropdown-menu-submenu-arrow:after, -.ant-dropdown-menu-dark .ant-dropdown-menu-item > a .ant-dropdown-menu-submenu-arrow:after { +.ant-dropdown-menu-dark .ant-dropdown-menu-item .ant-dropdown-menu-submenu-arrow::after, +.ant-dropdown-menu-dark .ant-dropdown-menu-submenu-title .ant-dropdown-menu-submenu-arrow::after, +.ant-dropdown-menu-dark .ant-dropdown-menu-item > a .ant-dropdown-menu-submenu-arrow::after { color: rgba(255, 255, 255, 0.65); } .ant-dropdown-menu-dark .ant-dropdown-menu-item:hover, @@ -6826,28 +7704,62 @@ li.ant-calendar-time-picker-select-option-disabled:hover { .ant-dropdown-menu-dark .ant-dropdown-menu-item-selected, .ant-dropdown-menu-dark .ant-dropdown-menu-item-selected:hover, .ant-dropdown-menu-dark .ant-dropdown-menu-item-selected > a { - background: #E64448; color: #fff; + background: #E64448; } -.ant-form { - font-family: "Chinese Quote", -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"; +.ant-empty { + margin: 0 8px; font-size: 14px; - font-variant: tabular-nums; - line-height: 1.5; - color: rgba(0, 0, 0, 0.65); + line-height: 22px; + text-align: center; +} +.ant-empty-image { + height: 100px; + margin-bottom: 8px; +} +.ant-empty-image img { + height: 100%; +} +.ant-empty-description { + margin: 0; +} +.ant-empty-footer { + margin-top: 16px; +} +.ant-empty-small { + margin: 8px 0; +} +.ant-empty-small .ant-empty-image { + height: 35px; +} +.ant-empty-normal { + margin: 32px 0; +} +.ant-empty-normal .ant-empty-image { + height: 40px; +} +.ant-select-dropdown--multiple .ant-select-dropdown-menu-item .ant-empty-small { + margin-left: 32px; +} +.ant-form { box-sizing: border-box; margin: 0; padding: 0; + color: rgba(0, 0, 0, 0.65); + font-size: 14px; + font-variant: tabular-nums; + line-height: 1.5; list-style: none; + font-feature-settings: 'tnum'; } .ant-form legend { display: block; width: 100%; - padding: 0; margin-bottom: 20px; + padding: 0; + color: rgba(0, 0, 0, 0.45); font-size: 16px; line-height: inherit; - color: rgba(0, 0, 0, 0.45); border: 0; border-bottom: 1px solid #d9d9d9; } @@ -6882,20 +7794,20 @@ li.ant-calendar-time-picker-select-option-disabled:hover { .ant-form output { display: block; padding-top: 15px; + color: rgba(0, 0, 0, 0.65); font-size: 14px; line-height: 1.5; - color: rgba(0, 0, 0, 0.65); } -.ant-form-item-required:before { +.ant-form-item-required::before { display: inline-block; margin-right: 4px; - content: '*'; - font-family: SimSun; - line-height: 1; - font-size: 14px; color: #f5222d; + font-size: 14px; + font-family: SimSun, sans-serif; + line-height: 1; + content: '*'; } -.ant-form-hide-required-mark .ant-form-item-required:before { +.ant-form-hide-required-mark .ant-form-item-required::before { display: none; } input[type='radio'][disabled], @@ -6915,15 +7827,15 @@ input[type='checkbox'].disabled { cursor: not-allowed; } .ant-form-item { - font-family: "Chinese Quote", -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"; - font-size: 14px; - font-variant: tabular-nums; - line-height: 1.5; - color: rgba(0, 0, 0, 0.65); box-sizing: border-box; margin: 0; padding: 0; + color: rgba(0, 0, 0, 0.65); + font-size: 14px; + font-variant: tabular-nums; + line-height: 1.5; list-style: none; + font-feature-settings: 'tnum'; margin-bottom: 24px; vertical-align: top; } @@ -6931,28 +7843,28 @@ input[type='checkbox'].disabled { position: relative; } .ant-form-item label > .anticon { - vertical-align: top; font-size: 14px; + vertical-align: top; } .ant-form-item-control { - line-height: 39.9999px; position: relative; + line-height: 40px; zoom: 1; } -.ant-form-item-control:before, -.ant-form-item-control:after { +.ant-form-item-control::before, +.ant-form-item-control::after { content: ''; display: table; } -.ant-form-item-control:after { +.ant-form-item-control::after { clear: both; } -.ant-form-item-control:before, -.ant-form-item-control:after { +.ant-form-item-control::before, +.ant-form-item-control::after { content: ''; display: table; } -.ant-form-item-control:after { +.ant-form-item-control::after { clear: both; } .ant-form-item-children { @@ -6962,35 +7874,40 @@ input[type='checkbox'].disabled { margin-bottom: 5px; } .ant-form-item-label { - text-align: right; - vertical-align: middle; - line-height: 39.9999px; display: inline-block; overflow: hidden; + line-height: 39.9999px; white-space: nowrap; + text-align: right; + vertical-align: middle; } .ant-form-item-label label { color: rgba(0, 0, 0, 0.85); } -.ant-form-item-label label:after { +.ant-form-item-label label::after { content: ':'; - margin: 0 8px 0 2px; position: relative; top: -0.5px; + margin: 0 8px 0 2px; } .ant-form-item .ant-switch { margin: 2px 0 4px; } -.ant-form-item-no-colon .ant-form-item-label label:after { +.ant-form-item-no-colon .ant-form-item-label label::after { content: ' '; } .ant-form-explain, .ant-form-extra { + clear: both; + min-height: 22px; + margin-top: -2px; color: rgba(0, 0, 0, 0.45); - line-height: 1.524; + line-height: 1.5; + -webkit-transition: color 0.3s cubic-bezier(0.215, 0.61, 0.355, 1); transition: color 0.3s cubic-bezier(0.215, 0.61, 0.355, 1); - margin-top: -2px; - clear: both; +} +.ant-form-explain { + margin-bottom: -1px; } .ant-form-extra { padding-top: 4px; @@ -7046,10 +7963,10 @@ form input[type='checkbox'] { form .ant-radio-inline, form .ant-checkbox-inline { display: inline-block; - vertical-align: middle; + margin-left: 8px; font-weight: normal; + vertical-align: middle; cursor: pointer; - margin-left: 8px; } form .ant-radio-inline:first-child, form .ant-checkbox-inline:first-child { @@ -7079,26 +7996,26 @@ form .ant-input-group .ant-cascader-picker { } form :not(.ant-input-group-wrapper) > .ant-input-group, form .ant-input-group-wrapper { - display: inline-block; - vertical-align: middle; position: relative; top: -1px; + display: inline-block; + vertical-align: middle; } .ant-input-group-wrap .ant-select-selection { - border-bottom-left-radius: 0; border-top-left-radius: 0; + border-bottom-left-radius: 0; } .ant-input-group-wrap .ant-select-selection:hover { border-color: #d9d9d9; } .ant-input-group-wrap .ant-select-selection--single { - margin-left: -1px; height: 40px; - background-color: #eee; + margin-left: -1px; + background-color: rgba(0, 0, 0, 0.07); } .ant-input-group-wrap .ant-select-selection--single .ant-select-selection__rendered { - padding-left: 8px; padding-right: 25px; + padding-left: 8px; line-height: 30px; } .ant-input-group-wrap .ant-select-open .ant-select-selection { @@ -7108,15 +8025,16 @@ form .ant-input-group-wrapper { .ant-form-vertical .ant-form-item-label, .ant-col-24.ant-form-item-label, .ant-col-xl-24.ant-form-item-label { - padding: 0 0 8px; - margin: 0; display: block; - text-align: left; + margin: 0; + padding: 0 0 8px; line-height: 1.5; + white-space: initial; + text-align: left; } -.ant-form-vertical .ant-form-item-label label:after, -.ant-col-24.ant-form-item-label label:after, -.ant-col-xl-24.ant-form-item-label label:after { +.ant-form-vertical .ant-form-item-label label::after, +.ant-col-24.ant-form-item-label label::after, +.ant-col-xl-24.ant-form-item-label label::after { display: none; } .ant-form-vertical .ant-form-item { @@ -7125,7 +8043,10 @@ form .ant-input-group-wrapper { .ant-form-vertical .ant-form-item-control { line-height: 1.5; } -.ant-form-vertical .ant-form-explain, +.ant-form-vertical .ant-form-explain { + margin-top: 2px; + margin-bottom: -5px; +} .ant-form-vertical .ant-form-extra { margin-top: 2px; margin-bottom: -4px; @@ -7137,71 +8058,77 @@ form .ant-input-group-wrapper { width: 100%; } .ant-form-item-label { - padding: 0 0 8px; - margin: 0; display: block; - text-align: left; + margin: 0; + padding: 0 0 8px; line-height: 1.5; + white-space: initial; + text-align: left; } - .ant-form-item-label label:after { + .ant-form-item-label label::after { display: none; } .ant-col-xs-24.ant-form-item-label { - padding: 0 0 8px; - margin: 0; display: block; - text-align: left; + margin: 0; + padding: 0 0 8px; line-height: 1.5; + white-space: initial; + text-align: left; } - .ant-col-xs-24.ant-form-item-label label:after { + .ant-col-xs-24.ant-form-item-label label::after { display: none; } } @media (max-width: 767px) { .ant-col-sm-24.ant-form-item-label { - padding: 0 0 8px; - margin: 0; display: block; - text-align: left; + margin: 0; + padding: 0 0 8px; line-height: 1.5; + white-space: initial; + text-align: left; } - .ant-col-sm-24.ant-form-item-label label:after { + .ant-col-sm-24.ant-form-item-label label::after { display: none; } } @media (max-width: 991px) { .ant-col-md-24.ant-form-item-label { - padding: 0 0 8px; - margin: 0; display: block; - text-align: left; + margin: 0; + padding: 0 0 8px; line-height: 1.5; + white-space: initial; + text-align: left; } - .ant-col-md-24.ant-form-item-label label:after { + .ant-col-md-24.ant-form-item-label label::after { display: none; } } @media (max-width: 1199px) { .ant-col-lg-24.ant-form-item-label { - padding: 0 0 8px; - margin: 0; display: block; - text-align: left; + margin: 0; + padding: 0 0 8px; line-height: 1.5; + white-space: initial; + text-align: left; } - .ant-col-lg-24.ant-form-item-label label:after { + .ant-col-lg-24.ant-form-item-label label::after { display: none; } } @media (max-width: 1599px) { .ant-col-xl-24.ant-form-item-label { - padding: 0 0 8px; - margin: 0; display: block; - text-align: left; + margin: 0; + padding: 0 0 8px; line-height: 1.5; + white-space: initial; + text-align: left; } - .ant-col-xl-24.ant-form-item-label label:after { + .ant-col-xl-24.ant-form-item-label label::after { display: none; } } @@ -7231,17 +8158,17 @@ form .ant-input-group-wrapper { position: absolute; top: 50%; right: 0; - visibility: visible; - pointer-events: none; + z-index: 1; width: 32px; height: 20px; - line-height: 20px; margin-top: -10px; - text-align: center; font-size: 14px; + line-height: 20px; + text-align: center; + visibility: visible; -webkit-animation: zoomIn 0.3s cubic-bezier(0.12, 0.4, 0.29, 1.46); animation: zoomIn 0.3s cubic-bezier(0.12, 0.4, 0.29, 1.46); - z-index: 1; + pointer-events: none; } .has-success.has-feedback .ant-form-item-children-icon svg, .has-warning.has-feedback .ant-form-item-children-icon svg, @@ -7255,9 +8182,9 @@ form .ant-input-group-wrapper { margin: auto; } .has-success.has-feedback .ant-form-item-children-icon { + color: #52c41a; -webkit-animation-name: diffZoomIn1 !important; animation-name: diffZoomIn1 !important; - color: #52c41a; } .has-warning .ant-form-explain, .has-warning .ant-form-split { @@ -7269,18 +8196,18 @@ form .ant-input-group-wrapper { } .has-warning .ant-input:focus { border-color: #ffc53d; + border-right-width: 1px !important; outline: 0; box-shadow: 0 0 0 2px rgba(250, 173, 20, 0.2); - border-right-width: 1px !important; } .has-warning .ant-input:not([disabled]):hover { border-color: #faad14; } .has-warning .ant-calendar-picker-open .ant-calendar-picker-input { border-color: #ffc53d; + border-right-width: 1px !important; outline: 0; box-shadow: 0 0 0 2px rgba(250, 173, 20, 0.2); - border-right-width: 1px !important; } .has-warning .ant-input-affix-wrapper .ant-input, .has-warning .ant-input-affix-wrapper .ant-input:hover { @@ -7288,9 +8215,9 @@ form .ant-input-group-wrapper { } .has-warning .ant-input-affix-wrapper .ant-input:focus { border-color: #ffc53d; + border-right-width: 1px !important; outline: 0; box-shadow: 0 0 0 2px rgba(250, 173, 20, 0.2); - border-right-width: 1px !important; } .has-warning .ant-input-affix-wrapper:hover .ant-input:not(.ant-input-disabled) { border-color: #faad14; @@ -7300,8 +8227,8 @@ form .ant-input-group-wrapper { } .has-warning .ant-input-group-addon { color: #faad14; - border-color: #faad14; background-color: #fff; + border-color: #faad14; } .has-warning .has-feedback { color: #faad14; @@ -7320,13 +8247,13 @@ form .ant-input-group-wrapper { .has-warning .ant-select-open .ant-select-selection, .has-warning .ant-select-focused .ant-select-selection { border-color: #ffc53d; + border-right-width: 1px !important; outline: 0; box-shadow: 0 0 0 2px rgba(250, 173, 20, 0.2); - border-right-width: 1px !important; } -.has-warning .ant-calendar-picker-icon:after, -.has-warning .ant-time-picker-icon:after, -.has-warning .ant-picker-icon:after, +.has-warning .ant-calendar-picker-icon::after, +.has-warning .ant-time-picker-icon::after, +.has-warning .ant-picker-icon::after, .has-warning .ant-select-arrow, .has-warning .ant-cascader-picker-arrow { color: #faad14; @@ -7340,9 +8267,9 @@ form .ant-input-group-wrapper { .has-warning .ant-input-number:focus, .has-warning .ant-time-picker-input:focus { border-color: #ffc53d; + border-right-width: 1px !important; outline: 0; box-shadow: 0 0 0 2px rgba(250, 173, 20, 0.2); - border-right-width: 1px !important; } .has-warning .ant-input-number:not([disabled]):hover, .has-warning .ant-time-picker-input:not([disabled]):hover { @@ -7350,9 +8277,9 @@ form .ant-input-group-wrapper { } .has-warning .ant-cascader-picker:focus .ant-cascader-input { border-color: #ffc53d; + border-right-width: 1px !important; outline: 0; box-shadow: 0 0 0 2px rgba(250, 173, 20, 0.2); - border-right-width: 1px !important; } .has-error .ant-form-explain, .has-error .ant-form-split { @@ -7364,18 +8291,18 @@ form .ant-input-group-wrapper { } .has-error .ant-input:focus { border-color: #ff4d4f; + border-right-width: 1px !important; outline: 0; box-shadow: 0 0 0 2px rgba(245, 34, 45, 0.2); - border-right-width: 1px !important; } .has-error .ant-input:not([disabled]):hover { border-color: #f5222d; } .has-error .ant-calendar-picker-open .ant-calendar-picker-input { border-color: #ff4d4f; + border-right-width: 1px !important; outline: 0; box-shadow: 0 0 0 2px rgba(245, 34, 45, 0.2); - border-right-width: 1px !important; } .has-error .ant-input-affix-wrapper .ant-input, .has-error .ant-input-affix-wrapper .ant-input:hover { @@ -7383,9 +8310,9 @@ form .ant-input-group-wrapper { } .has-error .ant-input-affix-wrapper .ant-input:focus { border-color: #ff4d4f; + border-right-width: 1px !important; outline: 0; box-shadow: 0 0 0 2px rgba(245, 34, 45, 0.2); - border-right-width: 1px !important; } .has-error .ant-input-affix-wrapper:hover .ant-input:not(.ant-input-disabled) { border-color: #f5222d; @@ -7395,8 +8322,8 @@ form .ant-input-group-wrapper { } .has-error .ant-input-group-addon { color: #f5222d; - border-color: #f5222d; background-color: #fff; + border-color: #f5222d; } .has-error .has-feedback { color: #f5222d; @@ -7415,9 +8342,9 @@ form .ant-input-group-wrapper { .has-error .ant-select-open .ant-select-selection, .has-error .ant-select-focused .ant-select-selection { border-color: #ff4d4f; + border-right-width: 1px !important; outline: 0; box-shadow: 0 0 0 2px rgba(245, 34, 45, 0.2); - border-right-width: 1px !important; } .has-error .ant-select.ant-select-auto-complete .ant-input:focus { border-color: #f5222d; @@ -7426,9 +8353,9 @@ form .ant-input-group-wrapper { border-color: transparent; box-shadow: none; } -.has-error .ant-calendar-picker-icon:after, -.has-error .ant-time-picker-icon:after, -.has-error .ant-picker-icon:after, +.has-error .ant-calendar-picker-icon::after, +.has-error .ant-time-picker-icon::after, +.has-error .ant-picker-icon::after, .has-error .ant-select-arrow, .has-error .ant-cascader-picker-arrow { color: #f5222d; @@ -7442,9 +8369,9 @@ form .ant-input-group-wrapper { .has-error .ant-input-number:focus, .has-error .ant-time-picker-input:focus { border-color: #ff4d4f; + border-right-width: 1px !important; outline: 0; box-shadow: 0 0 0 2px rgba(245, 34, 45, 0.2); - border-right-width: 1px !important; } .has-error .ant-input-number:not([disabled]):hover, .has-error .ant-time-picker-input:not([disabled]):hover { @@ -7457,15 +8384,15 @@ form .ant-input-group-wrapper { .has-error .ant-mention-wrapper.ant-mention-active:not([disabled]) .ant-mention-editor, .has-error .ant-mention-wrapper .ant-mention-editor:not([disabled]):focus { border-color: #ff4d4f; + border-right-width: 1px !important; outline: 0; box-shadow: 0 0 0 2px rgba(245, 34, 45, 0.2); - border-right-width: 1px !important; } .has-error .ant-cascader-picker:focus .ant-cascader-input { border-color: #ff4d4f; + border-right-width: 1px !important; outline: 0; box-shadow: 0 0 0 2px rgba(245, 34, 45, 0.2); - border-right-width: 1px !important; } .has-error .ant-transfer-list { border-color: #f5222d; @@ -7479,9 +8406,9 @@ form .ant-input-group-wrapper { } .has-error .ant-transfer-list-search:not([disabled]):focus { border-color: #f2726f; + border-right-width: 1px !important; outline: 0; box-shadow: 0 0 0 2px rgba(230, 68, 72, 0.2); - border-right-width: 1px !important; } .is-validating.has-feedback .ant-form-item-children-icon { display: inline-block; @@ -7536,140 +8463,169 @@ form .ant-input-group-wrapper { } @-webkit-keyframes antShowHelpIn { 0% { + -webkit-transform: translateY(-5px); + transform: translateY(-5px); opacity: 0; - transform: translateY(-5px); } 100% { + -webkit-transform: translateY(0); + transform: translateY(0); opacity: 1; - transform: translateY(0); } } @keyframes antShowHelpIn { 0% { + -webkit-transform: translateY(-5px); + transform: translateY(-5px); opacity: 0; - transform: translateY(-5px); } 100% { + -webkit-transform: translateY(0); + transform: translateY(0); opacity: 1; - transform: translateY(0); } } @-webkit-keyframes antShowHelpOut { to { + -webkit-transform: translateY(-5px); + transform: translateY(-5px); opacity: 0; - transform: translateY(-5px); } } @keyframes antShowHelpOut { to { + -webkit-transform: translateY(-5px); + transform: translateY(-5px); opacity: 0; - transform: translateY(-5px); } } @-webkit-keyframes diffZoomIn1 { 0% { - transform: scale(0); + -webkit-transform: scale(0); + transform: scale(0); } 100% { - transform: scale(1); + -webkit-transform: scale(1); + transform: scale(1); } } @keyframes diffZoomIn1 { 0% { - transform: scale(0); + -webkit-transform: scale(0); + transform: scale(0); } 100% { - transform: scale(1); + -webkit-transform: scale(1); + transform: scale(1); } } @-webkit-keyframes diffZoomIn2 { 0% { - transform: scale(0); + -webkit-transform: scale(0); + transform: scale(0); } 100% { - transform: scale(1); + -webkit-transform: scale(1); + transform: scale(1); } } @keyframes diffZoomIn2 { 0% { - transform: scale(0); + -webkit-transform: scale(0); + transform: scale(0); } 100% { - transform: scale(1); + -webkit-transform: scale(1); + transform: scale(1); } } @-webkit-keyframes diffZoomIn3 { 0% { - transform: scale(0); + -webkit-transform: scale(0); + transform: scale(0); } 100% { - transform: scale(1); + -webkit-transform: scale(1); + transform: scale(1); } } @keyframes diffZoomIn3 { 0% { - transform: scale(0); + -webkit-transform: scale(0); + transform: scale(0); } 100% { - transform: scale(1); + -webkit-transform: scale(1); + transform: scale(1); } } .ant-row { position: relative; - margin-left: 0; - margin-right: 0; height: auto; + margin-right: 0; + margin-left: 0; zoom: 1; display: block; box-sizing: border-box; } -.ant-row:before, -.ant-row:after { +.ant-row::before, +.ant-row::after { content: ''; display: table; } -.ant-row:after { +.ant-row::after { clear: both; } -.ant-row:before, -.ant-row:after { +.ant-row::before, +.ant-row::after { content: ''; display: table; } -.ant-row:after { +.ant-row::after { clear: both; } .ant-row-flex { + display: -webkit-box; display: flex; - flex-flow: row wrap; + -webkit-box-orient: horizontal; + -webkit-box-direction: normal; + flex-flow: row wrap; } -.ant-row-flex:before, -.ant-row-flex:after { +.ant-row-flex::before, +.ant-row-flex::after { + display: -webkit-box; display: flex; } .ant-row-flex-start { - justify-content: flex-start; + -webkit-box-pack: start; + justify-content: flex-start; } .ant-row-flex-center { - justify-content: center; + -webkit-box-pack: center; + justify-content: center; } .ant-row-flex-end { - justify-content: flex-end; + -webkit-box-pack: end; + justify-content: flex-end; } .ant-row-flex-space-between { - justify-content: space-between; + -webkit-box-pack: justify; + justify-content: space-between; } .ant-row-flex-space-around { justify-content: space-around; } .ant-row-flex-top { - align-items: flex-start; + -webkit-box-align: start; + align-items: flex-start; } .ant-row-flex-middle { - align-items: center; + -webkit-box-align: center; + align-items: center; } .ant-row-flex-bottom { - align-items: flex-end; + -webkit-box-align: end; + align-items: flex-end; } .ant-col { position: relative; @@ -7797,8 +8753,8 @@ form .ant-input-group-wrapper { .ant-col-lg-24 { position: relative; min-height: 1px; - padding-left: 0; padding-right: 0; + padding-left: 0; } .ant-col-1, .ant-col-2, @@ -7824,8 +8780,9 @@ form .ant-input-group-wrapper { .ant-col-22, .ant-col-23, .ant-col-24 { + -webkit-box-flex: 0; + flex: 0 0 auto; float: left; - flex: 0 0 auto; } .ant-col-24 { display: block; @@ -7842,7 +8799,8 @@ form .ant-input-group-wrapper { margin-left: 100%; } .ant-col-order-24 { - order: 24; + -webkit-box-ordinal-group: 25; + order: 24; } .ant-col-23 { display: block; @@ -7859,7 +8817,8 @@ form .ant-input-group-wrapper { margin-left: 95.83333333%; } .ant-col-order-23 { - order: 23; + -webkit-box-ordinal-group: 24; + order: 23; } .ant-col-22 { display: block; @@ -7876,7 +8835,8 @@ form .ant-input-group-wrapper { margin-left: 91.66666667%; } .ant-col-order-22 { - order: 22; + -webkit-box-ordinal-group: 23; + order: 22; } .ant-col-21 { display: block; @@ -7893,7 +8853,8 @@ form .ant-input-group-wrapper { margin-left: 87.5%; } .ant-col-order-21 { - order: 21; + -webkit-box-ordinal-group: 22; + order: 21; } .ant-col-20 { display: block; @@ -7910,7 +8871,8 @@ form .ant-input-group-wrapper { margin-left: 83.33333333%; } .ant-col-order-20 { - order: 20; + -webkit-box-ordinal-group: 21; + order: 20; } .ant-col-19 { display: block; @@ -7927,7 +8889,8 @@ form .ant-input-group-wrapper { margin-left: 79.16666667%; } .ant-col-order-19 { - order: 19; + -webkit-box-ordinal-group: 20; + order: 19; } .ant-col-18 { display: block; @@ -7944,7 +8907,8 @@ form .ant-input-group-wrapper { margin-left: 75%; } .ant-col-order-18 { - order: 18; + -webkit-box-ordinal-group: 19; + order: 18; } .ant-col-17 { display: block; @@ -7961,7 +8925,8 @@ form .ant-input-group-wrapper { margin-left: 70.83333333%; } .ant-col-order-17 { - order: 17; + -webkit-box-ordinal-group: 18; + order: 17; } .ant-col-16 { display: block; @@ -7978,7 +8943,8 @@ form .ant-input-group-wrapper { margin-left: 66.66666667%; } .ant-col-order-16 { - order: 16; + -webkit-box-ordinal-group: 17; + order: 16; } .ant-col-15 { display: block; @@ -7995,7 +8961,8 @@ form .ant-input-group-wrapper { margin-left: 62.5%; } .ant-col-order-15 { - order: 15; + -webkit-box-ordinal-group: 16; + order: 15; } .ant-col-14 { display: block; @@ -8012,7 +8979,8 @@ form .ant-input-group-wrapper { margin-left: 58.33333333%; } .ant-col-order-14 { - order: 14; + -webkit-box-ordinal-group: 15; + order: 14; } .ant-col-13 { display: block; @@ -8029,7 +8997,8 @@ form .ant-input-group-wrapper { margin-left: 54.16666667%; } .ant-col-order-13 { - order: 13; + -webkit-box-ordinal-group: 14; + order: 13; } .ant-col-12 { display: block; @@ -8046,7 +9015,8 @@ form .ant-input-group-wrapper { margin-left: 50%; } .ant-col-order-12 { - order: 12; + -webkit-box-ordinal-group: 13; + order: 12; } .ant-col-11 { display: block; @@ -8063,7 +9033,8 @@ form .ant-input-group-wrapper { margin-left: 45.83333333%; } .ant-col-order-11 { - order: 11; + -webkit-box-ordinal-group: 12; + order: 11; } .ant-col-10 { display: block; @@ -8080,7 +9051,8 @@ form .ant-input-group-wrapper { margin-left: 41.66666667%; } .ant-col-order-10 { - order: 10; + -webkit-box-ordinal-group: 11; + order: 10; } .ant-col-9 { display: block; @@ -8097,7 +9069,8 @@ form .ant-input-group-wrapper { margin-left: 37.5%; } .ant-col-order-9 { - order: 9; + -webkit-box-ordinal-group: 10; + order: 9; } .ant-col-8 { display: block; @@ -8114,7 +9087,8 @@ form .ant-input-group-wrapper { margin-left: 33.33333333%; } .ant-col-order-8 { - order: 8; + -webkit-box-ordinal-group: 9; + order: 8; } .ant-col-7 { display: block; @@ -8131,7 +9105,8 @@ form .ant-input-group-wrapper { margin-left: 29.16666667%; } .ant-col-order-7 { - order: 7; + -webkit-box-ordinal-group: 8; + order: 7; } .ant-col-6 { display: block; @@ -8148,7 +9123,8 @@ form .ant-input-group-wrapper { margin-left: 25%; } .ant-col-order-6 { - order: 6; + -webkit-box-ordinal-group: 7; + order: 6; } .ant-col-5 { display: block; @@ -8165,7 +9141,8 @@ form .ant-input-group-wrapper { margin-left: 20.83333333%; } .ant-col-order-5 { - order: 5; + -webkit-box-ordinal-group: 6; + order: 5; } .ant-col-4 { display: block; @@ -8182,7 +9159,8 @@ form .ant-input-group-wrapper { margin-left: 16.66666667%; } .ant-col-order-4 { - order: 4; + -webkit-box-ordinal-group: 5; + order: 4; } .ant-col-3 { display: block; @@ -8199,7 +9177,8 @@ form .ant-input-group-wrapper { margin-left: 12.5%; } .ant-col-order-3 { - order: 3; + -webkit-box-ordinal-group: 4; + order: 3; } .ant-col-2 { display: block; @@ -8216,7 +9195,8 @@ form .ant-input-group-wrapper { margin-left: 8.33333333%; } .ant-col-order-2 { - order: 2; + -webkit-box-ordinal-group: 3; + order: 2; } .ant-col-1 { display: block; @@ -8233,7 +9213,8 @@ form .ant-input-group-wrapper { margin-left: 4.16666667%; } .ant-col-order-1 { - order: 1; + -webkit-box-ordinal-group: 2; + order: 1; } .ant-col-0 { display: none; @@ -8254,7 +9235,8 @@ form .ant-input-group-wrapper { margin-left: 0; } .ant-col-order-0 { - order: 0; + -webkit-box-ordinal-group: 1; + order: 0; } .ant-col-xs-1, .ant-col-xs-2, @@ -8280,8 +9262,9 @@ form .ant-input-group-wrapper { .ant-col-xs-22, .ant-col-xs-23, .ant-col-xs-24 { + -webkit-box-flex: 0; + flex: 0 0 auto; float: left; - flex: 0 0 auto; } .ant-col-xs-24 { display: block; @@ -8298,7 +9281,8 @@ form .ant-input-group-wrapper { margin-left: 100%; } .ant-col-xs-order-24 { - order: 24; + -webkit-box-ordinal-group: 25; + order: 24; } .ant-col-xs-23 { display: block; @@ -8315,7 +9299,8 @@ form .ant-input-group-wrapper { margin-left: 95.83333333%; } .ant-col-xs-order-23 { - order: 23; + -webkit-box-ordinal-group: 24; + order: 23; } .ant-col-xs-22 { display: block; @@ -8332,7 +9317,8 @@ form .ant-input-group-wrapper { margin-left: 91.66666667%; } .ant-col-xs-order-22 { - order: 22; + -webkit-box-ordinal-group: 23; + order: 22; } .ant-col-xs-21 { display: block; @@ -8349,7 +9335,8 @@ form .ant-input-group-wrapper { margin-left: 87.5%; } .ant-col-xs-order-21 { - order: 21; + -webkit-box-ordinal-group: 22; + order: 21; } .ant-col-xs-20 { display: block; @@ -8366,7 +9353,8 @@ form .ant-input-group-wrapper { margin-left: 83.33333333%; } .ant-col-xs-order-20 { - order: 20; + -webkit-box-ordinal-group: 21; + order: 20; } .ant-col-xs-19 { display: block; @@ -8383,7 +9371,8 @@ form .ant-input-group-wrapper { margin-left: 79.16666667%; } .ant-col-xs-order-19 { - order: 19; + -webkit-box-ordinal-group: 20; + order: 19; } .ant-col-xs-18 { display: block; @@ -8400,7 +9389,8 @@ form .ant-input-group-wrapper { margin-left: 75%; } .ant-col-xs-order-18 { - order: 18; + -webkit-box-ordinal-group: 19; + order: 18; } .ant-col-xs-17 { display: block; @@ -8417,7 +9407,8 @@ form .ant-input-group-wrapper { margin-left: 70.83333333%; } .ant-col-xs-order-17 { - order: 17; + -webkit-box-ordinal-group: 18; + order: 17; } .ant-col-xs-16 { display: block; @@ -8434,7 +9425,8 @@ form .ant-input-group-wrapper { margin-left: 66.66666667%; } .ant-col-xs-order-16 { - order: 16; + -webkit-box-ordinal-group: 17; + order: 16; } .ant-col-xs-15 { display: block; @@ -8451,7 +9443,8 @@ form .ant-input-group-wrapper { margin-left: 62.5%; } .ant-col-xs-order-15 { - order: 15; + -webkit-box-ordinal-group: 16; + order: 15; } .ant-col-xs-14 { display: block; @@ -8468,7 +9461,8 @@ form .ant-input-group-wrapper { margin-left: 58.33333333%; } .ant-col-xs-order-14 { - order: 14; + -webkit-box-ordinal-group: 15; + order: 14; } .ant-col-xs-13 { display: block; @@ -8485,7 +9479,8 @@ form .ant-input-group-wrapper { margin-left: 54.16666667%; } .ant-col-xs-order-13 { - order: 13; + -webkit-box-ordinal-group: 14; + order: 13; } .ant-col-xs-12 { display: block; @@ -8502,7 +9497,8 @@ form .ant-input-group-wrapper { margin-left: 50%; } .ant-col-xs-order-12 { - order: 12; + -webkit-box-ordinal-group: 13; + order: 12; } .ant-col-xs-11 { display: block; @@ -8519,7 +9515,8 @@ form .ant-input-group-wrapper { margin-left: 45.83333333%; } .ant-col-xs-order-11 { - order: 11; + -webkit-box-ordinal-group: 12; + order: 11; } .ant-col-xs-10 { display: block; @@ -8536,7 +9533,8 @@ form .ant-input-group-wrapper { margin-left: 41.66666667%; } .ant-col-xs-order-10 { - order: 10; + -webkit-box-ordinal-group: 11; + order: 10; } .ant-col-xs-9 { display: block; @@ -8553,7 +9551,8 @@ form .ant-input-group-wrapper { margin-left: 37.5%; } .ant-col-xs-order-9 { - order: 9; + -webkit-box-ordinal-group: 10; + order: 9; } .ant-col-xs-8 { display: block; @@ -8570,7 +9569,8 @@ form .ant-input-group-wrapper { margin-left: 33.33333333%; } .ant-col-xs-order-8 { - order: 8; + -webkit-box-ordinal-group: 9; + order: 8; } .ant-col-xs-7 { display: block; @@ -8587,7 +9587,8 @@ form .ant-input-group-wrapper { margin-left: 29.16666667%; } .ant-col-xs-order-7 { - order: 7; + -webkit-box-ordinal-group: 8; + order: 7; } .ant-col-xs-6 { display: block; @@ -8604,7 +9605,8 @@ form .ant-input-group-wrapper { margin-left: 25%; } .ant-col-xs-order-6 { - order: 6; + -webkit-box-ordinal-group: 7; + order: 6; } .ant-col-xs-5 { display: block; @@ -8621,7 +9623,8 @@ form .ant-input-group-wrapper { margin-left: 20.83333333%; } .ant-col-xs-order-5 { - order: 5; + -webkit-box-ordinal-group: 6; + order: 5; } .ant-col-xs-4 { display: block; @@ -8638,7 +9641,8 @@ form .ant-input-group-wrapper { margin-left: 16.66666667%; } .ant-col-xs-order-4 { - order: 4; + -webkit-box-ordinal-group: 5; + order: 4; } .ant-col-xs-3 { display: block; @@ -8655,7 +9659,8 @@ form .ant-input-group-wrapper { margin-left: 12.5%; } .ant-col-xs-order-3 { - order: 3; + -webkit-box-ordinal-group: 4; + order: 3; } .ant-col-xs-2 { display: block; @@ -8672,7 +9677,8 @@ form .ant-input-group-wrapper { margin-left: 8.33333333%; } .ant-col-xs-order-2 { - order: 2; + -webkit-box-ordinal-group: 3; + order: 2; } .ant-col-xs-1 { display: block; @@ -8689,7 +9695,8 @@ form .ant-input-group-wrapper { margin-left: 4.16666667%; } .ant-col-xs-order-1 { - order: 1; + -webkit-box-ordinal-group: 2; + order: 1; } .ant-col-xs-0 { display: none; @@ -8710,7 +9717,8 @@ form .ant-input-group-wrapper { margin-left: 0; } .ant-col-xs-order-0 { - order: 0; + -webkit-box-ordinal-group: 1; + order: 0; } @media (min-width: 576px) { .ant-col-sm-1, @@ -8737,8 +9745,9 @@ form .ant-input-group-wrapper { .ant-col-sm-22, .ant-col-sm-23, .ant-col-sm-24 { + -webkit-box-flex: 0; + flex: 0 0 auto; float: left; - flex: 0 0 auto; } .ant-col-sm-24 { display: block; @@ -8755,7 +9764,8 @@ form .ant-input-group-wrapper { margin-left: 100%; } .ant-col-sm-order-24 { - order: 24; + -webkit-box-ordinal-group: 25; + order: 24; } .ant-col-sm-23 { display: block; @@ -8772,7 +9782,8 @@ form .ant-input-group-wrapper { margin-left: 95.83333333%; } .ant-col-sm-order-23 { - order: 23; + -webkit-box-ordinal-group: 24; + order: 23; } .ant-col-sm-22 { display: block; @@ -8789,7 +9800,8 @@ form .ant-input-group-wrapper { margin-left: 91.66666667%; } .ant-col-sm-order-22 { - order: 22; + -webkit-box-ordinal-group: 23; + order: 22; } .ant-col-sm-21 { display: block; @@ -8806,7 +9818,8 @@ form .ant-input-group-wrapper { margin-left: 87.5%; } .ant-col-sm-order-21 { - order: 21; + -webkit-box-ordinal-group: 22; + order: 21; } .ant-col-sm-20 { display: block; @@ -8823,7 +9836,8 @@ form .ant-input-group-wrapper { margin-left: 83.33333333%; } .ant-col-sm-order-20 { - order: 20; + -webkit-box-ordinal-group: 21; + order: 20; } .ant-col-sm-19 { display: block; @@ -8840,7 +9854,8 @@ form .ant-input-group-wrapper { margin-left: 79.16666667%; } .ant-col-sm-order-19 { - order: 19; + -webkit-box-ordinal-group: 20; + order: 19; } .ant-col-sm-18 { display: block; @@ -8857,7 +9872,8 @@ form .ant-input-group-wrapper { margin-left: 75%; } .ant-col-sm-order-18 { - order: 18; + -webkit-box-ordinal-group: 19; + order: 18; } .ant-col-sm-17 { display: block; @@ -8874,7 +9890,8 @@ form .ant-input-group-wrapper { margin-left: 70.83333333%; } .ant-col-sm-order-17 { - order: 17; + -webkit-box-ordinal-group: 18; + order: 17; } .ant-col-sm-16 { display: block; @@ -8891,7 +9908,8 @@ form .ant-input-group-wrapper { margin-left: 66.66666667%; } .ant-col-sm-order-16 { - order: 16; + -webkit-box-ordinal-group: 17; + order: 16; } .ant-col-sm-15 { display: block; @@ -8908,7 +9926,8 @@ form .ant-input-group-wrapper { margin-left: 62.5%; } .ant-col-sm-order-15 { - order: 15; + -webkit-box-ordinal-group: 16; + order: 15; } .ant-col-sm-14 { display: block; @@ -8925,7 +9944,8 @@ form .ant-input-group-wrapper { margin-left: 58.33333333%; } .ant-col-sm-order-14 { - order: 14; + -webkit-box-ordinal-group: 15; + order: 14; } .ant-col-sm-13 { display: block; @@ -8942,7 +9962,8 @@ form .ant-input-group-wrapper { margin-left: 54.16666667%; } .ant-col-sm-order-13 { - order: 13; + -webkit-box-ordinal-group: 14; + order: 13; } .ant-col-sm-12 { display: block; @@ -8959,7 +9980,8 @@ form .ant-input-group-wrapper { margin-left: 50%; } .ant-col-sm-order-12 { - order: 12; + -webkit-box-ordinal-group: 13; + order: 12; } .ant-col-sm-11 { display: block; @@ -8976,7 +9998,8 @@ form .ant-input-group-wrapper { margin-left: 45.83333333%; } .ant-col-sm-order-11 { - order: 11; + -webkit-box-ordinal-group: 12; + order: 11; } .ant-col-sm-10 { display: block; @@ -8993,7 +10016,8 @@ form .ant-input-group-wrapper { margin-left: 41.66666667%; } .ant-col-sm-order-10 { - order: 10; + -webkit-box-ordinal-group: 11; + order: 10; } .ant-col-sm-9 { display: block; @@ -9010,7 +10034,8 @@ form .ant-input-group-wrapper { margin-left: 37.5%; } .ant-col-sm-order-9 { - order: 9; + -webkit-box-ordinal-group: 10; + order: 9; } .ant-col-sm-8 { display: block; @@ -9027,7 +10052,8 @@ form .ant-input-group-wrapper { margin-left: 33.33333333%; } .ant-col-sm-order-8 { - order: 8; + -webkit-box-ordinal-group: 9; + order: 8; } .ant-col-sm-7 { display: block; @@ -9044,7 +10070,8 @@ form .ant-input-group-wrapper { margin-left: 29.16666667%; } .ant-col-sm-order-7 { - order: 7; + -webkit-box-ordinal-group: 8; + order: 7; } .ant-col-sm-6 { display: block; @@ -9061,7 +10088,8 @@ form .ant-input-group-wrapper { margin-left: 25%; } .ant-col-sm-order-6 { - order: 6; + -webkit-box-ordinal-group: 7; + order: 6; } .ant-col-sm-5 { display: block; @@ -9078,7 +10106,8 @@ form .ant-input-group-wrapper { margin-left: 20.83333333%; } .ant-col-sm-order-5 { - order: 5; + -webkit-box-ordinal-group: 6; + order: 5; } .ant-col-sm-4 { display: block; @@ -9095,7 +10124,8 @@ form .ant-input-group-wrapper { margin-left: 16.66666667%; } .ant-col-sm-order-4 { - order: 4; + -webkit-box-ordinal-group: 5; + order: 4; } .ant-col-sm-3 { display: block; @@ -9112,7 +10142,8 @@ form .ant-input-group-wrapper { margin-left: 12.5%; } .ant-col-sm-order-3 { - order: 3; + -webkit-box-ordinal-group: 4; + order: 3; } .ant-col-sm-2 { display: block; @@ -9129,7 +10160,8 @@ form .ant-input-group-wrapper { margin-left: 8.33333333%; } .ant-col-sm-order-2 { - order: 2; + -webkit-box-ordinal-group: 3; + order: 2; } .ant-col-sm-1 { display: block; @@ -9146,7 +10178,8 @@ form .ant-input-group-wrapper { margin-left: 4.16666667%; } .ant-col-sm-order-1 { - order: 1; + -webkit-box-ordinal-group: 2; + order: 1; } .ant-col-sm-0 { display: none; @@ -9167,7 +10200,8 @@ form .ant-input-group-wrapper { margin-left: 0; } .ant-col-sm-order-0 { - order: 0; + -webkit-box-ordinal-group: 1; + order: 0; } } @media (min-width: 768px) { @@ -9195,8 +10229,9 @@ form .ant-input-group-wrapper { .ant-col-md-22, .ant-col-md-23, .ant-col-md-24 { + -webkit-box-flex: 0; + flex: 0 0 auto; float: left; - flex: 0 0 auto; } .ant-col-md-24 { display: block; @@ -9213,7 +10248,8 @@ form .ant-input-group-wrapper { margin-left: 100%; } .ant-col-md-order-24 { - order: 24; + -webkit-box-ordinal-group: 25; + order: 24; } .ant-col-md-23 { display: block; @@ -9230,7 +10266,8 @@ form .ant-input-group-wrapper { margin-left: 95.83333333%; } .ant-col-md-order-23 { - order: 23; + -webkit-box-ordinal-group: 24; + order: 23; } .ant-col-md-22 { display: block; @@ -9247,7 +10284,8 @@ form .ant-input-group-wrapper { margin-left: 91.66666667%; } .ant-col-md-order-22 { - order: 22; + -webkit-box-ordinal-group: 23; + order: 22; } .ant-col-md-21 { display: block; @@ -9264,7 +10302,8 @@ form .ant-input-group-wrapper { margin-left: 87.5%; } .ant-col-md-order-21 { - order: 21; + -webkit-box-ordinal-group: 22; + order: 21; } .ant-col-md-20 { display: block; @@ -9281,7 +10320,8 @@ form .ant-input-group-wrapper { margin-left: 83.33333333%; } .ant-col-md-order-20 { - order: 20; + -webkit-box-ordinal-group: 21; + order: 20; } .ant-col-md-19 { display: block; @@ -9298,7 +10338,8 @@ form .ant-input-group-wrapper { margin-left: 79.16666667%; } .ant-col-md-order-19 { - order: 19; + -webkit-box-ordinal-group: 20; + order: 19; } .ant-col-md-18 { display: block; @@ -9315,7 +10356,8 @@ form .ant-input-group-wrapper { margin-left: 75%; } .ant-col-md-order-18 { - order: 18; + -webkit-box-ordinal-group: 19; + order: 18; } .ant-col-md-17 { display: block; @@ -9332,7 +10374,8 @@ form .ant-input-group-wrapper { margin-left: 70.83333333%; } .ant-col-md-order-17 { - order: 17; + -webkit-box-ordinal-group: 18; + order: 17; } .ant-col-md-16 { display: block; @@ -9349,7 +10392,8 @@ form .ant-input-group-wrapper { margin-left: 66.66666667%; } .ant-col-md-order-16 { - order: 16; + -webkit-box-ordinal-group: 17; + order: 16; } .ant-col-md-15 { display: block; @@ -9366,7 +10410,8 @@ form .ant-input-group-wrapper { margin-left: 62.5%; } .ant-col-md-order-15 { - order: 15; + -webkit-box-ordinal-group: 16; + order: 15; } .ant-col-md-14 { display: block; @@ -9383,7 +10428,8 @@ form .ant-input-group-wrapper { margin-left: 58.33333333%; } .ant-col-md-order-14 { - order: 14; + -webkit-box-ordinal-group: 15; + order: 14; } .ant-col-md-13 { display: block; @@ -9400,7 +10446,8 @@ form .ant-input-group-wrapper { margin-left: 54.16666667%; } .ant-col-md-order-13 { - order: 13; + -webkit-box-ordinal-group: 14; + order: 13; } .ant-col-md-12 { display: block; @@ -9417,7 +10464,8 @@ form .ant-input-group-wrapper { margin-left: 50%; } .ant-col-md-order-12 { - order: 12; + -webkit-box-ordinal-group: 13; + order: 12; } .ant-col-md-11 { display: block; @@ -9434,7 +10482,8 @@ form .ant-input-group-wrapper { margin-left: 45.83333333%; } .ant-col-md-order-11 { - order: 11; + -webkit-box-ordinal-group: 12; + order: 11; } .ant-col-md-10 { display: block; @@ -9451,7 +10500,8 @@ form .ant-input-group-wrapper { margin-left: 41.66666667%; } .ant-col-md-order-10 { - order: 10; + -webkit-box-ordinal-group: 11; + order: 10; } .ant-col-md-9 { display: block; @@ -9468,7 +10518,8 @@ form .ant-input-group-wrapper { margin-left: 37.5%; } .ant-col-md-order-9 { - order: 9; + -webkit-box-ordinal-group: 10; + order: 9; } .ant-col-md-8 { display: block; @@ -9485,7 +10536,8 @@ form .ant-input-group-wrapper { margin-left: 33.33333333%; } .ant-col-md-order-8 { - order: 8; + -webkit-box-ordinal-group: 9; + order: 8; } .ant-col-md-7 { display: block; @@ -9502,7 +10554,8 @@ form .ant-input-group-wrapper { margin-left: 29.16666667%; } .ant-col-md-order-7 { - order: 7; + -webkit-box-ordinal-group: 8; + order: 7; } .ant-col-md-6 { display: block; @@ -9519,7 +10572,8 @@ form .ant-input-group-wrapper { margin-left: 25%; } .ant-col-md-order-6 { - order: 6; + -webkit-box-ordinal-group: 7; + order: 6; } .ant-col-md-5 { display: block; @@ -9536,7 +10590,8 @@ form .ant-input-group-wrapper { margin-left: 20.83333333%; } .ant-col-md-order-5 { - order: 5; + -webkit-box-ordinal-group: 6; + order: 5; } .ant-col-md-4 { display: block; @@ -9553,7 +10608,8 @@ form .ant-input-group-wrapper { margin-left: 16.66666667%; } .ant-col-md-order-4 { - order: 4; + -webkit-box-ordinal-group: 5; + order: 4; } .ant-col-md-3 { display: block; @@ -9570,7 +10626,8 @@ form .ant-input-group-wrapper { margin-left: 12.5%; } .ant-col-md-order-3 { - order: 3; + -webkit-box-ordinal-group: 4; + order: 3; } .ant-col-md-2 { display: block; @@ -9587,7 +10644,8 @@ form .ant-input-group-wrapper { margin-left: 8.33333333%; } .ant-col-md-order-2 { - order: 2; + -webkit-box-ordinal-group: 3; + order: 2; } .ant-col-md-1 { display: block; @@ -9604,7 +10662,8 @@ form .ant-input-group-wrapper { margin-left: 4.16666667%; } .ant-col-md-order-1 { - order: 1; + -webkit-box-ordinal-group: 2; + order: 1; } .ant-col-md-0 { display: none; @@ -9625,7 +10684,8 @@ form .ant-input-group-wrapper { margin-left: 0; } .ant-col-md-order-0 { - order: 0; + -webkit-box-ordinal-group: 1; + order: 0; } } @media (min-width: 992px) { @@ -9653,8 +10713,9 @@ form .ant-input-group-wrapper { .ant-col-lg-22, .ant-col-lg-23, .ant-col-lg-24 { + -webkit-box-flex: 0; + flex: 0 0 auto; float: left; - flex: 0 0 auto; } .ant-col-lg-24 { display: block; @@ -9671,7 +10732,8 @@ form .ant-input-group-wrapper { margin-left: 100%; } .ant-col-lg-order-24 { - order: 24; + -webkit-box-ordinal-group: 25; + order: 24; } .ant-col-lg-23 { display: block; @@ -9688,7 +10750,8 @@ form .ant-input-group-wrapper { margin-left: 95.83333333%; } .ant-col-lg-order-23 { - order: 23; + -webkit-box-ordinal-group: 24; + order: 23; } .ant-col-lg-22 { display: block; @@ -9705,7 +10768,8 @@ form .ant-input-group-wrapper { margin-left: 91.66666667%; } .ant-col-lg-order-22 { - order: 22; + -webkit-box-ordinal-group: 23; + order: 22; } .ant-col-lg-21 { display: block; @@ -9722,7 +10786,8 @@ form .ant-input-group-wrapper { margin-left: 87.5%; } .ant-col-lg-order-21 { - order: 21; + -webkit-box-ordinal-group: 22; + order: 21; } .ant-col-lg-20 { display: block; @@ -9739,7 +10804,8 @@ form .ant-input-group-wrapper { margin-left: 83.33333333%; } .ant-col-lg-order-20 { - order: 20; + -webkit-box-ordinal-group: 21; + order: 20; } .ant-col-lg-19 { display: block; @@ -9756,7 +10822,8 @@ form .ant-input-group-wrapper { margin-left: 79.16666667%; } .ant-col-lg-order-19 { - order: 19; + -webkit-box-ordinal-group: 20; + order: 19; } .ant-col-lg-18 { display: block; @@ -9773,7 +10840,8 @@ form .ant-input-group-wrapper { margin-left: 75%; } .ant-col-lg-order-18 { - order: 18; + -webkit-box-ordinal-group: 19; + order: 18; } .ant-col-lg-17 { display: block; @@ -9790,7 +10858,8 @@ form .ant-input-group-wrapper { margin-left: 70.83333333%; } .ant-col-lg-order-17 { - order: 17; + -webkit-box-ordinal-group: 18; + order: 17; } .ant-col-lg-16 { display: block; @@ -9807,7 +10876,8 @@ form .ant-input-group-wrapper { margin-left: 66.66666667%; } .ant-col-lg-order-16 { - order: 16; + -webkit-box-ordinal-group: 17; + order: 16; } .ant-col-lg-15 { display: block; @@ -9824,7 +10894,8 @@ form .ant-input-group-wrapper { margin-left: 62.5%; } .ant-col-lg-order-15 { - order: 15; + -webkit-box-ordinal-group: 16; + order: 15; } .ant-col-lg-14 { display: block; @@ -9841,7 +10912,8 @@ form .ant-input-group-wrapper { margin-left: 58.33333333%; } .ant-col-lg-order-14 { - order: 14; + -webkit-box-ordinal-group: 15; + order: 14; } .ant-col-lg-13 { display: block; @@ -9858,7 +10930,8 @@ form .ant-input-group-wrapper { margin-left: 54.16666667%; } .ant-col-lg-order-13 { - order: 13; + -webkit-box-ordinal-group: 14; + order: 13; } .ant-col-lg-12 { display: block; @@ -9875,7 +10948,8 @@ form .ant-input-group-wrapper { margin-left: 50%; } .ant-col-lg-order-12 { - order: 12; + -webkit-box-ordinal-group: 13; + order: 12; } .ant-col-lg-11 { display: block; @@ -9892,7 +10966,8 @@ form .ant-input-group-wrapper { margin-left: 45.83333333%; } .ant-col-lg-order-11 { - order: 11; + -webkit-box-ordinal-group: 12; + order: 11; } .ant-col-lg-10 { display: block; @@ -9909,7 +10984,8 @@ form .ant-input-group-wrapper { margin-left: 41.66666667%; } .ant-col-lg-order-10 { - order: 10; + -webkit-box-ordinal-group: 11; + order: 10; } .ant-col-lg-9 { display: block; @@ -9926,7 +11002,8 @@ form .ant-input-group-wrapper { margin-left: 37.5%; } .ant-col-lg-order-9 { - order: 9; + -webkit-box-ordinal-group: 10; + order: 9; } .ant-col-lg-8 { display: block; @@ -9943,7 +11020,8 @@ form .ant-input-group-wrapper { margin-left: 33.33333333%; } .ant-col-lg-order-8 { - order: 8; + -webkit-box-ordinal-group: 9; + order: 8; } .ant-col-lg-7 { display: block; @@ -9960,7 +11038,8 @@ form .ant-input-group-wrapper { margin-left: 29.16666667%; } .ant-col-lg-order-7 { - order: 7; + -webkit-box-ordinal-group: 8; + order: 7; } .ant-col-lg-6 { display: block; @@ -9977,7 +11056,8 @@ form .ant-input-group-wrapper { margin-left: 25%; } .ant-col-lg-order-6 { - order: 6; + -webkit-box-ordinal-group: 7; + order: 6; } .ant-col-lg-5 { display: block; @@ -9994,7 +11074,8 @@ form .ant-input-group-wrapper { margin-left: 20.83333333%; } .ant-col-lg-order-5 { - order: 5; + -webkit-box-ordinal-group: 6; + order: 5; } .ant-col-lg-4 { display: block; @@ -10011,7 +11092,8 @@ form .ant-input-group-wrapper { margin-left: 16.66666667%; } .ant-col-lg-order-4 { - order: 4; + -webkit-box-ordinal-group: 5; + order: 4; } .ant-col-lg-3 { display: block; @@ -10028,7 +11110,8 @@ form .ant-input-group-wrapper { margin-left: 12.5%; } .ant-col-lg-order-3 { - order: 3; + -webkit-box-ordinal-group: 4; + order: 3; } .ant-col-lg-2 { display: block; @@ -10045,7 +11128,8 @@ form .ant-input-group-wrapper { margin-left: 8.33333333%; } .ant-col-lg-order-2 { - order: 2; + -webkit-box-ordinal-group: 3; + order: 2; } .ant-col-lg-1 { display: block; @@ -10062,7 +11146,8 @@ form .ant-input-group-wrapper { margin-left: 4.16666667%; } .ant-col-lg-order-1 { - order: 1; + -webkit-box-ordinal-group: 2; + order: 1; } .ant-col-lg-0 { display: none; @@ -10083,7 +11168,8 @@ form .ant-input-group-wrapper { margin-left: 0; } .ant-col-lg-order-0 { - order: 0; + -webkit-box-ordinal-group: 1; + order: 0; } } @media (min-width: 1200px) { @@ -10111,8 +11197,9 @@ form .ant-input-group-wrapper { .ant-col-xl-22, .ant-col-xl-23, .ant-col-xl-24 { + -webkit-box-flex: 0; + flex: 0 0 auto; float: left; - flex: 0 0 auto; } .ant-col-xl-24 { display: block; @@ -10129,7 +11216,8 @@ form .ant-input-group-wrapper { margin-left: 100%; } .ant-col-xl-order-24 { - order: 24; + -webkit-box-ordinal-group: 25; + order: 24; } .ant-col-xl-23 { display: block; @@ -10146,7 +11234,8 @@ form .ant-input-group-wrapper { margin-left: 95.83333333%; } .ant-col-xl-order-23 { - order: 23; + -webkit-box-ordinal-group: 24; + order: 23; } .ant-col-xl-22 { display: block; @@ -10163,7 +11252,8 @@ form .ant-input-group-wrapper { margin-left: 91.66666667%; } .ant-col-xl-order-22 { - order: 22; + -webkit-box-ordinal-group: 23; + order: 22; } .ant-col-xl-21 { display: block; @@ -10180,7 +11270,8 @@ form .ant-input-group-wrapper { margin-left: 87.5%; } .ant-col-xl-order-21 { - order: 21; + -webkit-box-ordinal-group: 22; + order: 21; } .ant-col-xl-20 { display: block; @@ -10197,7 +11288,8 @@ form .ant-input-group-wrapper { margin-left: 83.33333333%; } .ant-col-xl-order-20 { - order: 20; + -webkit-box-ordinal-group: 21; + order: 20; } .ant-col-xl-19 { display: block; @@ -10214,7 +11306,8 @@ form .ant-input-group-wrapper { margin-left: 79.16666667%; } .ant-col-xl-order-19 { - order: 19; + -webkit-box-ordinal-group: 20; + order: 19; } .ant-col-xl-18 { display: block; @@ -10231,7 +11324,8 @@ form .ant-input-group-wrapper { margin-left: 75%; } .ant-col-xl-order-18 { - order: 18; + -webkit-box-ordinal-group: 19; + order: 18; } .ant-col-xl-17 { display: block; @@ -10248,7 +11342,8 @@ form .ant-input-group-wrapper { margin-left: 70.83333333%; } .ant-col-xl-order-17 { - order: 17; + -webkit-box-ordinal-group: 18; + order: 17; } .ant-col-xl-16 { display: block; @@ -10265,7 +11360,8 @@ form .ant-input-group-wrapper { margin-left: 66.66666667%; } .ant-col-xl-order-16 { - order: 16; + -webkit-box-ordinal-group: 17; + order: 16; } .ant-col-xl-15 { display: block; @@ -10282,7 +11378,8 @@ form .ant-input-group-wrapper { margin-left: 62.5%; } .ant-col-xl-order-15 { - order: 15; + -webkit-box-ordinal-group: 16; + order: 15; } .ant-col-xl-14 { display: block; @@ -10299,7 +11396,8 @@ form .ant-input-group-wrapper { margin-left: 58.33333333%; } .ant-col-xl-order-14 { - order: 14; + -webkit-box-ordinal-group: 15; + order: 14; } .ant-col-xl-13 { display: block; @@ -10316,7 +11414,8 @@ form .ant-input-group-wrapper { margin-left: 54.16666667%; } .ant-col-xl-order-13 { - order: 13; + -webkit-box-ordinal-group: 14; + order: 13; } .ant-col-xl-12 { display: block; @@ -10333,7 +11432,8 @@ form .ant-input-group-wrapper { margin-left: 50%; } .ant-col-xl-order-12 { - order: 12; + -webkit-box-ordinal-group: 13; + order: 12; } .ant-col-xl-11 { display: block; @@ -10350,7 +11450,8 @@ form .ant-input-group-wrapper { margin-left: 45.83333333%; } .ant-col-xl-order-11 { - order: 11; + -webkit-box-ordinal-group: 12; + order: 11; } .ant-col-xl-10 { display: block; @@ -10367,7 +11468,8 @@ form .ant-input-group-wrapper { margin-left: 41.66666667%; } .ant-col-xl-order-10 { - order: 10; + -webkit-box-ordinal-group: 11; + order: 10; } .ant-col-xl-9 { display: block; @@ -10384,7 +11486,8 @@ form .ant-input-group-wrapper { margin-left: 37.5%; } .ant-col-xl-order-9 { - order: 9; + -webkit-box-ordinal-group: 10; + order: 9; } .ant-col-xl-8 { display: block; @@ -10401,7 +11504,8 @@ form .ant-input-group-wrapper { margin-left: 33.33333333%; } .ant-col-xl-order-8 { - order: 8; + -webkit-box-ordinal-group: 9; + order: 8; } .ant-col-xl-7 { display: block; @@ -10418,7 +11522,8 @@ form .ant-input-group-wrapper { margin-left: 29.16666667%; } .ant-col-xl-order-7 { - order: 7; + -webkit-box-ordinal-group: 8; + order: 7; } .ant-col-xl-6 { display: block; @@ -10435,7 +11540,8 @@ form .ant-input-group-wrapper { margin-left: 25%; } .ant-col-xl-order-6 { - order: 6; + -webkit-box-ordinal-group: 7; + order: 6; } .ant-col-xl-5 { display: block; @@ -10452,7 +11558,8 @@ form .ant-input-group-wrapper { margin-left: 20.83333333%; } .ant-col-xl-order-5 { - order: 5; + -webkit-box-ordinal-group: 6; + order: 5; } .ant-col-xl-4 { display: block; @@ -10469,7 +11576,8 @@ form .ant-input-group-wrapper { margin-left: 16.66666667%; } .ant-col-xl-order-4 { - order: 4; + -webkit-box-ordinal-group: 5; + order: 4; } .ant-col-xl-3 { display: block; @@ -10486,7 +11594,8 @@ form .ant-input-group-wrapper { margin-left: 12.5%; } .ant-col-xl-order-3 { - order: 3; + -webkit-box-ordinal-group: 4; + order: 3; } .ant-col-xl-2 { display: block; @@ -10503,7 +11612,8 @@ form .ant-input-group-wrapper { margin-left: 8.33333333%; } .ant-col-xl-order-2 { - order: 2; + -webkit-box-ordinal-group: 3; + order: 2; } .ant-col-xl-1 { display: block; @@ -10520,7 +11630,8 @@ form .ant-input-group-wrapper { margin-left: 4.16666667%; } .ant-col-xl-order-1 { - order: 1; + -webkit-box-ordinal-group: 2; + order: 1; } .ant-col-xl-0 { display: none; @@ -10541,7 +11652,8 @@ form .ant-input-group-wrapper { margin-left: 0; } .ant-col-xl-order-0 { - order: 0; + -webkit-box-ordinal-group: 1; + order: 0; } } @media (min-width: 1600px) { @@ -10569,8 +11681,9 @@ form .ant-input-group-wrapper { .ant-col-xxl-22, .ant-col-xxl-23, .ant-col-xxl-24 { + -webkit-box-flex: 0; + flex: 0 0 auto; float: left; - flex: 0 0 auto; } .ant-col-xxl-24 { display: block; @@ -10587,7 +11700,8 @@ form .ant-input-group-wrapper { margin-left: 100%; } .ant-col-xxl-order-24 { - order: 24; + -webkit-box-ordinal-group: 25; + order: 24; } .ant-col-xxl-23 { display: block; @@ -10604,7 +11718,8 @@ form .ant-input-group-wrapper { margin-left: 95.83333333%; } .ant-col-xxl-order-23 { - order: 23; + -webkit-box-ordinal-group: 24; + order: 23; } .ant-col-xxl-22 { display: block; @@ -10621,7 +11736,8 @@ form .ant-input-group-wrapper { margin-left: 91.66666667%; } .ant-col-xxl-order-22 { - order: 22; + -webkit-box-ordinal-group: 23; + order: 22; } .ant-col-xxl-21 { display: block; @@ -10638,7 +11754,8 @@ form .ant-input-group-wrapper { margin-left: 87.5%; } .ant-col-xxl-order-21 { - order: 21; + -webkit-box-ordinal-group: 22; + order: 21; } .ant-col-xxl-20 { display: block; @@ -10655,7 +11772,8 @@ form .ant-input-group-wrapper { margin-left: 83.33333333%; } .ant-col-xxl-order-20 { - order: 20; + -webkit-box-ordinal-group: 21; + order: 20; } .ant-col-xxl-19 { display: block; @@ -10672,7 +11790,8 @@ form .ant-input-group-wrapper { margin-left: 79.16666667%; } .ant-col-xxl-order-19 { - order: 19; + -webkit-box-ordinal-group: 20; + order: 19; } .ant-col-xxl-18 { display: block; @@ -10689,7 +11808,8 @@ form .ant-input-group-wrapper { margin-left: 75%; } .ant-col-xxl-order-18 { - order: 18; + -webkit-box-ordinal-group: 19; + order: 18; } .ant-col-xxl-17 { display: block; @@ -10706,7 +11826,8 @@ form .ant-input-group-wrapper { margin-left: 70.83333333%; } .ant-col-xxl-order-17 { - order: 17; + -webkit-box-ordinal-group: 18; + order: 17; } .ant-col-xxl-16 { display: block; @@ -10723,7 +11844,8 @@ form .ant-input-group-wrapper { margin-left: 66.66666667%; } .ant-col-xxl-order-16 { - order: 16; + -webkit-box-ordinal-group: 17; + order: 16; } .ant-col-xxl-15 { display: block; @@ -10740,7 +11862,8 @@ form .ant-input-group-wrapper { margin-left: 62.5%; } .ant-col-xxl-order-15 { - order: 15; + -webkit-box-ordinal-group: 16; + order: 15; } .ant-col-xxl-14 { display: block; @@ -10757,7 +11880,8 @@ form .ant-input-group-wrapper { margin-left: 58.33333333%; } .ant-col-xxl-order-14 { - order: 14; + -webkit-box-ordinal-group: 15; + order: 14; } .ant-col-xxl-13 { display: block; @@ -10774,7 +11898,8 @@ form .ant-input-group-wrapper { margin-left: 54.16666667%; } .ant-col-xxl-order-13 { - order: 13; + -webkit-box-ordinal-group: 14; + order: 13; } .ant-col-xxl-12 { display: block; @@ -10791,7 +11916,8 @@ form .ant-input-group-wrapper { margin-left: 50%; } .ant-col-xxl-order-12 { - order: 12; + -webkit-box-ordinal-group: 13; + order: 12; } .ant-col-xxl-11 { display: block; @@ -10808,7 +11934,8 @@ form .ant-input-group-wrapper { margin-left: 45.83333333%; } .ant-col-xxl-order-11 { - order: 11; + -webkit-box-ordinal-group: 12; + order: 11; } .ant-col-xxl-10 { display: block; @@ -10825,7 +11952,8 @@ form .ant-input-group-wrapper { margin-left: 41.66666667%; } .ant-col-xxl-order-10 { - order: 10; + -webkit-box-ordinal-group: 11; + order: 10; } .ant-col-xxl-9 { display: block; @@ -10842,7 +11970,8 @@ form .ant-input-group-wrapper { margin-left: 37.5%; } .ant-col-xxl-order-9 { - order: 9; + -webkit-box-ordinal-group: 10; + order: 9; } .ant-col-xxl-8 { display: block; @@ -10859,7 +11988,8 @@ form .ant-input-group-wrapper { margin-left: 33.33333333%; } .ant-col-xxl-order-8 { - order: 8; + -webkit-box-ordinal-group: 9; + order: 8; } .ant-col-xxl-7 { display: block; @@ -10876,7 +12006,8 @@ form .ant-input-group-wrapper { margin-left: 29.16666667%; } .ant-col-xxl-order-7 { - order: 7; + -webkit-box-ordinal-group: 8; + order: 7; } .ant-col-xxl-6 { display: block; @@ -10893,7 +12024,8 @@ form .ant-input-group-wrapper { margin-left: 25%; } .ant-col-xxl-order-6 { - order: 6; + -webkit-box-ordinal-group: 7; + order: 6; } .ant-col-xxl-5 { display: block; @@ -10910,7 +12042,8 @@ form .ant-input-group-wrapper { margin-left: 20.83333333%; } .ant-col-xxl-order-5 { - order: 5; + -webkit-box-ordinal-group: 6; + order: 5; } .ant-col-xxl-4 { display: block; @@ -10927,7 +12060,8 @@ form .ant-input-group-wrapper { margin-left: 16.66666667%; } .ant-col-xxl-order-4 { - order: 4; + -webkit-box-ordinal-group: 5; + order: 4; } .ant-col-xxl-3 { display: block; @@ -10944,7 +12078,8 @@ form .ant-input-group-wrapper { margin-left: 12.5%; } .ant-col-xxl-order-3 { - order: 3; + -webkit-box-ordinal-group: 4; + order: 3; } .ant-col-xxl-2 { display: block; @@ -10961,7 +12096,8 @@ form .ant-input-group-wrapper { margin-left: 8.33333333%; } .ant-col-xxl-order-2 { - order: 2; + -webkit-box-ordinal-group: 3; + order: 2; } .ant-col-xxl-1 { display: block; @@ -10978,7 +12114,8 @@ form .ant-input-group-wrapper { margin-left: 4.16666667%; } .ant-col-xxl-order-1 { - order: 1; + -webkit-box-ordinal-group: 2; + order: 1; } .ant-col-xxl-0 { display: none; @@ -10999,28 +12136,30 @@ form .ant-input-group-wrapper { margin-left: 0; } .ant-col-xxl-order-0 { - order: 0; + -webkit-box-ordinal-group: 1; + order: 0; } } .ant-input { - font-family: "Chinese Quote", -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"; - font-variant: tabular-nums; box-sizing: border-box; margin: 0; padding: 0; + font-variant: tabular-nums; list-style: none; + font-feature-settings: 'tnum'; position: relative; display: inline-block; - padding: 4px 11px; width: 100%; height: 32px; + padding: 4px 11px; + color: rgba(0, 0, 0, 0.65); font-size: 14px; line-height: 1.5; - color: rgba(0, 0, 0, 0.65); background-color: #fff; background-image: none; border: 1px solid #d9d9d9; border-radius: 5px; + -webkit-transition: all 0.3s; transition: all 0.3s; } .ant-input::-moz-placeholder { @@ -11039,15 +12178,15 @@ form .ant-input-group-wrapper { } .ant-input:focus { border-color: #f2726f; + border-right-width: 1px !important; outline: 0; box-shadow: 0 0 0 2px rgba(230, 68, 72, 0.2); - border-right-width: 1px !important; } .ant-input-disabled { + color: rgba(0, 0, 0, 0.25); background-color: #f5f5f5; - opacity: 1; cursor: not-allowed; - color: rgba(0, 0, 0, 0.25); + opacity: 1; } .ant-input-disabled:hover { border-color: #e6d8d8; @@ -11056,39 +12195,40 @@ form .ant-input-group-wrapper { textarea.ant-input { max-width: 100%; height: auto; + min-height: 32px; vertical-align: bottom; + -webkit-transition: all 0.3s, height 0s; transition: all 0.3s, height 0s; - min-height: 32px; } .ant-input-lg { - padding: 6px 11px; height: 40px; + padding: 6px 11px; font-size: 16px; } .ant-input-sm { - padding: 1px 7px; height: 24px; + padding: 1px 7px; } .ant-input-group { - font-family: "Chinese Quote", -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"; - font-size: 14px; - font-variant: tabular-nums; - line-height: 1.5; - color: rgba(0, 0, 0, 0.65); box-sizing: border-box; margin: 0; padding: 0; + color: rgba(0, 0, 0, 0.65); + font-size: 14px; + font-variant: tabular-nums; + line-height: 1.5; list-style: none; + font-feature-settings: 'tnum'; position: relative; display: table; + width: 100%; border-collapse: separate; border-spacing: 0; - width: 100%; } .ant-input-group[class*='col-'] { float: none; - padding-left: 0; padding-right: 0; + padding-left: 0; } .ant-input-group > [class*='col-'] { padding-right: 8px; @@ -11119,6 +12259,7 @@ textarea.ant-input { float: left; width: 100%; margin-bottom: 0; + text-align: inherit; } .ant-input-group .ant-input:focus { z-index: 1; @@ -11129,24 +12270,25 @@ textarea.ant-input { border-right-width: 1px; } .ant-input-group-addon { + position: relative; padding: 0 11px; - font-size: 14px; + color: rgba(0, 0, 0, 0.65); font-weight: normal; + font-size: 14px; line-height: 1; - color: rgba(0, 0, 0, 0.65); text-align: center; background-color: #fafafa; border: 1px solid #d9d9d9; border-radius: 5px; - position: relative; + -webkit-transition: all 0.3s; transition: all 0.3s; } .ant-input-group-addon .ant-select { margin: -5px -11px; } .ant-input-group-addon .ant-select .ant-select-selection { - background-color: inherit; margin: -1px; + background-color: inherit; border: 1px solid transparent; box-shadow: none; } @@ -11154,31 +12296,31 @@ textarea.ant-input { .ant-input-group-addon .ant-select-focused .ant-select-selection { color: #E64448; } -.ant-input-group-addon > i:only-child:after { +.ant-input-group-addon > i:only-child::after { position: absolute; - content: ''; top: 0; - left: 0; right: 0; bottom: 0; + left: 0; + content: ''; } .ant-input-group > .ant-input:first-child, .ant-input-group-addon:first-child { - border-bottom-right-radius: 0; border-top-right-radius: 0; + border-bottom-right-radius: 0; } .ant-input-group > .ant-input:first-child .ant-select .ant-select-selection, .ant-input-group-addon:first-child .ant-select .ant-select-selection { - border-bottom-right-radius: 0; border-top-right-radius: 0; + border-bottom-right-radius: 0; } .ant-input-group > .ant-input-affix-wrapper:not(:first-child) .ant-input { - border-bottom-left-radius: 0; border-top-left-radius: 0; + border-bottom-left-radius: 0; } .ant-input-group > .ant-input-affix-wrapper:not(:last-child) .ant-input { - border-bottom-right-radius: 0; border-top-right-radius: 0; + border-bottom-right-radius: 0; } .ant-input-group-addon:first-child { border-right: 0; @@ -11188,24 +12330,24 @@ textarea.ant-input { } .ant-input-group > .ant-input:last-child, .ant-input-group-addon:last-child { - border-bottom-left-radius: 0; border-top-left-radius: 0; + border-bottom-left-radius: 0; } .ant-input-group > .ant-input:last-child .ant-select .ant-select-selection, .ant-input-group-addon:last-child .ant-select .ant-select-selection { - border-bottom-left-radius: 0; border-top-left-radius: 0; + border-bottom-left-radius: 0; } .ant-input-group-lg .ant-input, .ant-input-group-lg > .ant-input-group-addon { - padding: 6px 11px; height: 40px; + padding: 6px 11px; font-size: 16px; } .ant-input-group-sm .ant-input, .ant-input-group-sm > .ant-input-group-addon { - padding: 1px 7px; height: 24px; + padding: 1px 7px; } .ant-input-group-lg .ant-select-selection--single { height: 40px; @@ -11215,27 +12357,27 @@ textarea.ant-input { } .ant-input-group .ant-input-affix-wrapper { display: table-cell; - width: 100%; float: left; + width: 100%; } .ant-input-group.ant-input-group-compact { display: block; zoom: 1; } -.ant-input-group.ant-input-group-compact:before, -.ant-input-group.ant-input-group-compact:after { +.ant-input-group.ant-input-group-compact::before, +.ant-input-group.ant-input-group-compact::after { content: ''; display: table; } -.ant-input-group.ant-input-group-compact:after { +.ant-input-group.ant-input-group-compact::after { clear: both; } -.ant-input-group.ant-input-group-compact:before, -.ant-input-group.ant-input-group-compact:after { +.ant-input-group.ant-input-group-compact::before, +.ant-input-group.ant-input-group-compact::after { content: ''; display: table; } -.ant-input-group.ant-input-group-compact:after { +.ant-input-group.ant-input-group-compact::after { clear: both; } .ant-input-group.ant-input-group-compact-addon:not(:first-child):not(:last-child), @@ -11254,14 +12396,14 @@ textarea.ant-input { z-index: 1; } .ant-input-group.ant-input-group-compact > * { - border-radius: 0; - vertical-align: top; - float: none; display: inline-block; + float: none; + vertical-align: top; + border-radius: 0; } .ant-input-group.ant-input-group-compact > *:not(:last-child) { - border-right-width: 1px; margin-right: -1px; + border-right-width: 1px; } .ant-input-group.ant-input-group-compact .ant-input { float: none; @@ -11272,8 +12414,8 @@ textarea.ant-input { .ant-input-group.ant-input-group-compact > .ant-cascader-picker .ant-input, .ant-input-group.ant-input-group-compact > .ant-mention-wrapper .ant-mention-editor, .ant-input-group.ant-input-group-compact > .ant-time-picker .ant-time-picker-input { - border-radius: 0; border-right-width: 1px; + border-radius: 0; } .ant-input-group.ant-input-group-compact > .ant-select > .ant-select-selection:hover, .ant-input-group.ant-input-group-compact > .ant-calendar-picker .ant-input:hover, @@ -11309,31 +12451,33 @@ textarea.ant-input { .ant-input-group.ant-input-group-compact > .ant-cascader-picker-focused:last-child .ant-input, .ant-input-group.ant-input-group-compact > .ant-mention-wrapper:last-child .ant-mention-editor, .ant-input-group.ant-input-group-compact > .ant-time-picker:last-child .ant-time-picker-input { + border-right-width: 1px; border-top-right-radius: 5px; border-bottom-right-radius: 5px; - border-right-width: 1px; } .ant-input-group.ant-input-group-compact > .ant-select-auto-complete .ant-input { vertical-align: top; } .ant-input-group-wrapper { display: inline-block; - vertical-align: top; width: 100%; + text-align: start; + vertical-align: top; } .ant-input-affix-wrapper { - font-family: "Chinese Quote", -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"; - font-size: 14px; - font-variant: tabular-nums; - line-height: 1.5; - color: rgba(0, 0, 0, 0.65); box-sizing: border-box; margin: 0; padding: 0; + color: rgba(0, 0, 0, 0.65); + font-size: 14px; + font-variant: tabular-nums; + line-height: 1.5; list-style: none; + font-feature-settings: 'tnum'; position: relative; display: inline-block; width: 100%; + text-align: start; } .ant-input-affix-wrapper:hover .ant-input:not(.ant-input-disabled) { border-color: #f2726f; @@ -11341,15 +12485,21 @@ textarea.ant-input { } .ant-input-affix-wrapper .ant-input { position: relative; + text-align: inherit; } .ant-input-affix-wrapper .ant-input-prefix, .ant-input-affix-wrapper .ant-input-suffix { position: absolute; top: 50%; z-index: 2; - transform: translateY(-50%); - line-height: 0; + display: -webkit-box; + display: flex; + -webkit-box-align: center; + align-items: center; color: rgba(0, 0, 0, 0.65); + line-height: 0; + -webkit-transform: translateY(-50%); + transform: translateY(-50%); } .ant-input-affix-wrapper .ant-input-prefix :not(.anticon), .ant-input-affix-wrapper .ant-input-suffix :not(.anticon) { @@ -11370,51 +12520,71 @@ textarea.ant-input { .ant-input-affix-wrapper .ant-input { min-height: 100%; } +.ant-input-password-icon { + cursor: pointer; + -webkit-transition: all 0.3s; + transition: all 0.3s; +} +.ant-input-password-icon:hover { + color: #333; +} +.ant-input-clear-icon { + color: rgba(0, 0, 0, 0.25); + font-size: 12px; + vertical-align: 0; + cursor: pointer; + -webkit-transition: color 0.3s; + transition: color 0.3s; +} +.ant-input-clear-icon:hover { + color: rgba(0, 0, 0, 0.45); +} +.ant-input-clear-icon:active { + color: rgba(0, 0, 0, 0.65); +} +.ant-input-clear-icon + i { + margin-left: 6px; +} .ant-input-search-icon { color: rgba(0, 0, 0, 0.45); cursor: pointer; + -webkit-transition: all 0.3s; transition: all 0.3s; } .ant-input-search-icon:hover { - color: #333; + color: rgba(0, 0, 0, 0.8); } -.ant-input-search:not(.ant-input-search-small) > .ant-input-suffix { - right: 12px; +.ant-input-search-enter-button .ant-input-group-addon { + padding: 0; + border: 0; } -.ant-input-search > .ant-input-suffix > .ant-input-search-button { +.ant-input-search-enter-button .ant-input-group-addon .ant-input-search-button { + width: 100%; border-top-left-radius: 0; border-bottom-left-radius: 0; } -.ant-input-search > .ant-input-suffix > .ant-input-search-button > .anticon-search { - font-size: 16px; -} -.ant-input-search.ant-input-search-enter-button > .ant-input { - padding-right: 46px; -} -.ant-input-search.ant-input-search-enter-button > .ant-input-suffix { - right: 0; -} .ant-input-number { - font-family: "Chinese Quote", -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"; - font-variant: tabular-nums; box-sizing: border-box; + font-variant: tabular-nums; list-style: none; + font-feature-settings: 'tnum'; position: relative; - padding: 4px 11px; width: 100%; height: 32px; + padding: 4px 11px; + color: rgba(0, 0, 0, 0.65); font-size: 14px; line-height: 1.5; - color: rgba(0, 0, 0, 0.65); background-color: #fff; background-image: none; + -webkit-transition: all 0.3s; transition: all 0.3s; + display: inline-block; + width: 90px; margin: 0; padding: 0; - display: inline-block; border: 1px solid #d9d9d9; border-radius: 5px; - width: 90px; } .ant-input-number::-moz-placeholder { color: #bfbfbf; @@ -11432,15 +12602,15 @@ textarea.ant-input { } .ant-input-number:focus { border-color: #f2726f; + border-right-width: 1px !important; outline: 0; box-shadow: 0 0 0 2px rgba(230, 68, 72, 0.2); - border-right-width: 1px !important; } .ant-input-number-disabled { + color: rgba(0, 0, 0, 0.25); background-color: #f5f5f5; - opacity: 1; cursor: not-allowed; - color: rgba(0, 0, 0, 0.25); + opacity: 1; } .ant-input-number-disabled:hover { border-color: #e6d8d8; @@ -11449,30 +12619,32 @@ textarea.ant-input { textarea.ant-input-number { max-width: 100%; height: auto; + min-height: 32px; vertical-align: bottom; + -webkit-transition: all 0.3s, height 0s; transition: all 0.3s, height 0s; - min-height: 32px; } .ant-input-number-lg { - padding: 6px 11px; height: 40px; + padding: 6px 11px; font-size: 16px; } .ant-input-number-sm { - padding: 1px 7px; height: 24px; + padding: 1px 7px; } .ant-input-number-handler { - text-align: center; - line-height: 0; - height: 50%; - overflow: hidden; - color: rgba(0, 0, 0, 0.45); position: relative; - transition: all 0.1s linear; display: block; width: 100%; + height: 50%; + overflow: hidden; + color: rgba(0, 0, 0, 0.45); font-weight: bold; + line-height: 0; + text-align: center; + -webkit-transition: all 0.1s linear; + transition: all 0.1s linear; } .ant-input-number-handler:active { background: #f4f4f4; @@ -11483,29 +12655,27 @@ textarea.ant-input-number { } .ant-input-number-handler-up-inner, .ant-input-number-handler-down-inner { + display: inline-block; font-style: normal; - vertical-align: -0.125em; + line-height: 0; text-align: center; text-transform: none; - line-height: 0; + vertical-align: -0.125em; text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; + position: absolute; + right: 4px; + width: 12px; + height: 12px; + color: rgba(0, 0, 0, 0.45); line-height: 12px; + -webkit-transition: all 0.1s linear; + transition: all 0.1s linear; -webkit-user-select: none; -moz-user-select: none; -ms-user-select: none; user-select: none; - position: absolute; - width: 12px; - height: 12px; - transition: all 0.1s linear; - display: inline-block; - font-size: 12px; - font-size: 7px \9; - transform: scale(0.58333333) rotate(0deg); - right: 4px; - color: rgba(0, 0, 0, 0.45); } .ant-input-number-handler-up-inner > *, .ant-input-number-handler-down-inner > * { @@ -11515,8 +12685,8 @@ textarea.ant-input-number { .ant-input-number-handler-down-inner svg { display: inline-block; } -.ant-input-number-handler-up-inner:before, -.ant-input-number-handler-down-inner:before { +.ant-input-number-handler-up-inner::before, +.ant-input-number-handler-down-inner::before { display: none; } .ant-input-number-handler-up-inner .ant-input-number-handler-up-inner-icon, @@ -11525,25 +12695,21 @@ textarea.ant-input-number { .ant-input-number-handler-down-inner .ant-input-number-handler-down-inner-icon { display: block; } -:root .ant-input-number-handler-up-inner, -:root .ant-input-number-handler-down-inner { - font-size: 12px; -} .ant-input-number:hover { border-color: #f2726f; border-right-width: 1px !important; } .ant-input-number-focused { border-color: #f2726f; + border-right-width: 1px !important; outline: 0; box-shadow: 0 0 0 2px rgba(230, 68, 72, 0.2); - border-right-width: 1px !important; } .ant-input-number-disabled { + color: rgba(0, 0, 0, 0.25); background-color: #f5f5f5; - opacity: 1; cursor: not-allowed; - color: rgba(0, 0, 0, 0.25); + opacity: 1; } .ant-input-number-disabled:hover { border-color: #e6d8d8; @@ -11557,15 +12723,16 @@ textarea.ant-input-number { } .ant-input-number-input { width: 100%; - text-align: left; - outline: 0; - -moz-appearance: textfield; height: 30px; - transition: all 0.3s linear; + padding: 0 11px; + text-align: left; background-color: transparent; border: 0; border-radius: 5px; - padding: 0 11px; + outline: 0; + -webkit-transition: all 0.3s linear; + transition: all 0.3s linear; + -moz-appearance: textfield; } .ant-input-number-input::-moz-placeholder { color: #bfbfbf; @@ -11592,22 +12759,37 @@ textarea.ant-input-number { padding: 0 7px; } .ant-input-number-handler-wrap { - border-left: 1px solid #d9d9d9; - width: 22px; - height: 100%; - background: #fff; position: absolute; top: 0; right: 0; - opacity: 0; + width: 22px; + height: 100%; + background: #fff; + border-left: 1px solid #d9d9d9; border-radius: 0 5px 5px 0; + opacity: 0; + -webkit-transition: opacity 0.24s linear 0.1s; transition: opacity 0.24s linear 0.1s; } -.ant-input-number-handler-wrap:hover .ant-input-number-handler { - height: 40%; -} -.ant-input-number:hover .ant-input-number-handler-wrap { - opacity: 1; +.ant-input-number-handler-wrap .ant-input-number-handler .ant-input-number-handler-up-inner, +.ant-input-number-handler-wrap .ant-input-number-handler .ant-input-number-handler-down-inner { + display: inline-block; + font-size: 12px; + font-size: 7px \9; + -webkit-transform: scale(0.58333333) rotate(0deg); + transform: scale(0.58333333) rotate(0deg); + min-width: auto; + margin-right: 0; +} +:root .ant-input-number-handler-wrap .ant-input-number-handler .ant-input-number-handler-up-inner, +:root .ant-input-number-handler-wrap .ant-input-number-handler .ant-input-number-handler-down-inner { + font-size: 12px; +} +.ant-input-number-handler-wrap:hover .ant-input-number-handler { + height: 40%; +} +.ant-input-number:hover .ant-input-number-handler-wrap { + opacity: 1; } .ant-input-number-handler-up { cursor: pointer; @@ -11621,8 +12803,8 @@ textarea.ant-input-number { height: 60% !important; } .ant-input-number-handler-down { - border-top: 1px solid #d9d9d9; top: 0; + border-top: 1px solid #d9d9d9; cursor: pointer; } .ant-input-number-handler-down-inner { @@ -11642,19 +12824,25 @@ textarea.ant-input-number { color: rgba(0, 0, 0, 0.25); } .ant-layout { + display: -webkit-box; display: flex; - flex-direction: column; - flex: auto; - background: #f0f2f5; + -webkit-box-flex: 1; + flex: auto; + -webkit-box-orient: vertical; + -webkit-box-direction: normal; + flex-direction: column; /* fix firefox can't set height smaller than content on flex item */ min-height: 0; + background: #f0f2f5; } .ant-layout, .ant-layout * { box-sizing: border-box; } .ant-layout.ant-layout-has-sider { - flex-direction: row; + -webkit-box-orient: horizontal; + -webkit-box-direction: normal; + flex-direction: row; } .ant-layout.ant-layout-has-sider > .ant-layout, .ant-layout.ant-layout-has-sider > .ant-layout-content { @@ -11662,53 +12850,58 @@ textarea.ant-input-number { } .ant-layout-header, .ant-layout-footer { - flex: 0 0 auto; + -webkit-box-flex: 0; + flex: 0 0 auto; } .ant-layout-header { - background: #001529; - padding: 0 50px; height: 64px; + padding: 0 50px; line-height: 64px; + background: #001529; } .ant-layout-footer { - background: #f0f2f5; padding: 24px 50px; color: rgba(0, 0, 0, 0.65); font-size: 14px; + background: #f0f2f5; } .ant-layout-content { - flex: auto; + -webkit-box-flex: 1; + flex: auto; /* fix firefox can't set height smaller than content on flex item */ min-height: 0; } .ant-layout-sider { - transition: all 0.2s; position: relative; - background: #001529; /* fix firefox can't set width smaller than content on flex item */ min-width: 0; + background: #001529; + -webkit-transition: all 0.2s; + transition: all 0.2s; } .ant-layout-sider-children { height: 100%; - padding-top: 0.1px; margin-top: -0.1px; + padding-top: 0.1px; } .ant-layout-sider-has-trigger { padding-bottom: 48px; } .ant-layout-sider-right { - order: 1; + -webkit-box-ordinal-group: 2; + order: 1; } .ant-layout-sider-trigger { position: fixed; - text-align: center; bottom: 0; - cursor: pointer; + z-index: 1; height: 48px; - line-height: 48px; color: #fff; + line-height: 48px; + text-align: center; background: #002140; - z-index: 1; + cursor: pointer; + -webkit-transition: all 0.2s; transition: all 0.2s; } .ant-layout-sider-zero-width > * { @@ -11718,20 +12911,24 @@ textarea.ant-input-number { position: absolute; top: 64px; right: -36px; - text-align: center; width: 36px; height: 42px; - line-height: 42px; - background: #001529; color: #fff; font-size: 18px; + line-height: 42px; + text-align: center; + background: #001529; border-radius: 0 5px 5px 0; cursor: pointer; + -webkit-transition: background 0.3s ease; transition: background 0.3s ease; } .ant-layout-sider-zero-width-trigger:hover { background: #192c3e; } +.ant-layout-sider-zero-width-trigger-right { + left: -36px; +} .ant-layout-sider-light { background: #fff; } @@ -11744,15 +12941,15 @@ textarea.ant-input-number { background: #fff; } .ant-list { - font-family: "Chinese Quote", -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"; - font-size: 14px; - font-variant: tabular-nums; - line-height: 1.5; - color: rgba(0, 0, 0, 0.65); box-sizing: border-box; margin: 0; padding: 0; + color: rgba(0, 0, 0, 0.65); + font-size: 14px; + font-variant: tabular-nums; + line-height: 1.5; list-style: none; + font-feature-settings: 'tnum'; position: relative; } .ant-list * { @@ -11767,44 +12964,51 @@ textarea.ant-input-number { text-align: center; } .ant-list-more button { - padding-left: 32px; padding-right: 32px; + padding-left: 32px; } .ant-list-spin { - text-align: center; min-height: 40px; + text-align: center; } .ant-list-empty-text { + padding: 16px; color: rgba(0, 0, 0, 0.45); font-size: 14px; - padding: 16px; text-align: center; } .ant-list-item { - align-items: center; + display: -webkit-box; display: flex; + -webkit-box-align: center; + align-items: center; padding: 12px 0; } .ant-list-item-meta { - align-items: flex-start; + display: -webkit-box; display: flex; - flex: 1; + -webkit-box-flex: 1; + flex: 1; + -webkit-box-align: start; + align-items: flex-start; font-size: 0; } .ant-list-item-meta-avatar { margin-right: 16px; } .ant-list-item-meta-content { - flex: 1 0; + -webkit-box-flex: 1; + flex: 1 0; } .ant-list-item-meta-title { - color: rgba(0, 0, 0, 0.65); margin-bottom: 4px; + color: rgba(0, 0, 0, 0.65); font-size: 14px; line-height: 22px; } .ant-list-item-meta-title > a { color: rgba(0, 0, 0, 0.65); + -webkit-transition: all 0.3s; transition: all 0.3s; } .ant-list-item-meta-title > a:hover { @@ -11816,45 +13020,58 @@ textarea.ant-input-number { line-height: 22px; } .ant-list-item-content { + display: -webkit-box; display: flex; - flex: 1; - justify-content: flex-end; + -webkit-box-flex: 1; + flex: 1; + -webkit-box-pack: end; + justify-content: flex-end; } .ant-list-item-content-single { - justify-content: flex-start; + -webkit-box-pack: start; + justify-content: flex-start; } .ant-list-item-action { - font-size: 0; - flex: 0 0 auto; + -webkit-box-flex: 0; + flex: 0 0 auto; margin-left: 48px; padding: 0; + font-size: 0; list-style: none; } .ant-list-item-action > li { + position: relative; display: inline-block; - color: rgba(0, 0, 0, 0.45); - cursor: pointer; padding: 0 8px; - position: relative; + color: rgba(0, 0, 0, 0.45); font-size: 14px; line-height: 22px; text-align: center; + cursor: pointer; } .ant-list-item-action > li:first-child { padding-left: 0; } .ant-list-item-action-split { - background-color: #e8e8e8; - margin-top: -7px; position: absolute; top: 50%; right: 0; width: 1px; height: 14px; + margin-top: -7px; + background-color: #e8e8e8; } .ant-list-item-main { + display: -webkit-box; display: flex; - flex: 1; + -webkit-box-flex: 1; + flex: 1; +} +.ant-list-header { + background: transparent; +} +.ant-list-footer { + background: transparent; } .ant-list-header, .ant-list-footer { @@ -11862,8 +13079,8 @@ textarea.ant-input-number { padding-bottom: 12px; } .ant-list-empty { - color: rgba(0, 0, 0, 0.45); padding: 16px 0; + color: rgba(0, 0, 0, 0.45); font-size: 12px; text-align: center; } @@ -11894,11 +13111,13 @@ textarea.ant-input-number { display: block; } .ant-list-vertical .ant-list-item-extra-wrap { + display: -webkit-box; display: flex; } .ant-list-vertical .ant-list-item-main { display: block; - flex: 1; + -webkit-box-flex: 1; + flex: 1; } .ant-list-vertical .ant-list-item-extra { margin-left: 58px; @@ -11907,16 +13126,16 @@ textarea.ant-input-number { margin-bottom: 16px; } .ant-list-vertical .ant-list-item-meta-title { - color: rgba(0, 0, 0, 0.85); margin-bottom: 12px; + color: rgba(0, 0, 0, 0.85); font-size: 16px; line-height: 24px; } .ant-list-vertical .ant-list-item-content { display: block; + margin: 0 0 16px 0; color: rgba(0, 0, 0, 0.65); font-size: 14px; - margin: 0 0 16px 0; } .ant-list-vertical .ant-list-item-action { margin-left: auto; @@ -11928,38 +13147,38 @@ textarea.ant-input-number { padding-left: 0; } .ant-list-grid .ant-list-item { - border-bottom: none; + margin-bottom: 16px; padding-top: 0; padding-bottom: 0; - margin-bottom: 16px; + border-bottom: none; } .ant-list-grid .ant-list-item-content { display: block; max-width: 100%; } .ant-list-bordered { - border-radius: 5px; border: 1px solid #d9d9d9; + border-radius: 5px; } .ant-list-bordered .ant-list-header { - padding-left: 24px; padding-right: 24px; + padding-left: 24px; } .ant-list-bordered .ant-list-footer { - padding-left: 24px; padding-right: 24px; + padding-left: 24px; } .ant-list-bordered .ant-list-item { - border-bottom: 1px solid #e8e8e8; - padding-left: 24px; padding-right: 24px; + padding-left: 24px; + border-bottom: 1px solid #e8e8e8; } .ant-list-bordered .ant-list-pagination { margin: 16px 24px; } .ant-list-bordered.ant-list-sm .ant-list-item { - padding-left: 16px; padding-right: 16px; + padding-left: 16px; } .ant-list-bordered.ant-list-sm .ant-list-header, .ant-list-bordered.ant-list-sm .ant-list-footer { @@ -11995,58 +13214,61 @@ textarea.ant-input-number { } } .ant-menu { - font-family: "Chinese Quote", -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"; - font-size: 14px; - font-variant: tabular-nums; - line-height: 1.5; box-sizing: border-box; margin: 0; padding: 0; - outline: none; + font-size: 14px; + font-variant: tabular-nums; + line-height: 1.5; + font-feature-settings: 'tnum'; margin-bottom: 0; padding-left: 0; - list-style: none; - box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15); color: rgba(0, 0, 0, 0.65); - background: #fff; line-height: 0; + list-style: none; + background: #fff; + outline: none; + box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15); + -webkit-transition: background 0.3s, width 0.2s; transition: background 0.3s, width 0.2s; zoom: 1; } -.ant-menu:before, -.ant-menu:after { +.ant-menu::before, +.ant-menu::after { content: ''; display: table; } -.ant-menu:after { +.ant-menu::after { clear: both; } -.ant-menu:before, -.ant-menu:after { +.ant-menu::before, +.ant-menu::after { content: ''; display: table; } -.ant-menu:after { +.ant-menu::after { clear: both; } .ant-menu ul, .ant-menu ol { - list-style: none; margin: 0; padding: 0; + list-style: none; } .ant-menu-hidden { display: none; } .ant-menu-item-group-title { + padding: 8px 16px; color: rgba(0, 0, 0, 0.45); font-size: 14px; line-height: 1.5; - padding: 8px 16px; + -webkit-transition: all 0.3s; transition: all 0.3s; } .ant-menu-submenu, .ant-menu-submenu-inline { + -webkit-transition: border-color 0.3s cubic-bezier(0.645, 0.045, 0.355, 1), background 0.3s cubic-bezier(0.645, 0.045, 0.355, 1), padding 0.15s cubic-bezier(0.645, 0.045, 0.355, 1); transition: border-color 0.3s cubic-bezier(0.645, 0.045, 0.355, 1), background 0.3s cubic-bezier(0.645, 0.045, 0.355, 1), padding 0.15s cubic-bezier(0.645, 0.045, 0.355, 1); } .ant-menu-item:active, @@ -12055,6 +13277,7 @@ textarea.ant-input-number { } .ant-menu-submenu .ant-menu-sub { cursor: initial; + -webkit-transition: background 0.3s cubic-bezier(0.645, 0.045, 0.355, 1), padding 0.3s cubic-bezier(0.645, 0.045, 0.355, 1); transition: background 0.3s cubic-bezier(0.645, 0.045, 0.355, 1), padding 0.3s cubic-bezier(0.645, 0.045, 0.355, 1); } .ant-menu-item > a { @@ -12067,20 +13290,20 @@ textarea.ant-input-number { .ant-menu-item > a:focus { text-decoration: none; } -.ant-menu-item > a:before { +.ant-menu-item > a::before { position: absolute; - background-color: transparent; top: 0; - left: 0; - bottom: 0; right: 0; + bottom: 0; + left: 0; + background-color: transparent; content: ''; } .ant-menu-item-divider { height: 1px; overflow: hidden; - background-color: #e8e8e8; line-height: 0; + background-color: #e8e8e8; } .ant-menu-item:hover, .ant-menu-item-active, @@ -12119,20 +13342,21 @@ textarea.ant-input-number { .ant-menu-vertical.ant-menu-sub, .ant-menu-vertical-left.ant-menu-sub, .ant-menu-vertical-right.ant-menu-sub { - border-right: 0; padding: 0; - transform-origin: 0 0; + border-right: 0; + -webkit-transform-origin: 0 0; + transform-origin: 0 0; } .ant-menu-vertical.ant-menu-sub .ant-menu-item, .ant-menu-vertical-left.ant-menu-sub .ant-menu-item, .ant-menu-vertical-right.ant-menu-sub .ant-menu-item { - border-right: 0; - margin-left: 0; left: 0; + margin-left: 0; + border-right: 0; } -.ant-menu-vertical.ant-menu-sub .ant-menu-item:after, -.ant-menu-vertical-left.ant-menu-sub .ant-menu-item:after, -.ant-menu-vertical-right.ant-menu-sub .ant-menu-item:after { +.ant-menu-vertical.ant-menu-sub .ant-menu-item::after, +.ant-menu-vertical-left.ant-menu-sub .ant-menu-item::after, +.ant-menu-vertical-right.ant-menu-sub .ant-menu-item::after { border-right: 0; } .ant-menu-vertical.ant-menu-sub > .ant-menu-item, @@ -12141,7 +13365,8 @@ textarea.ant-input-number { .ant-menu-vertical.ant-menu-sub > .ant-menu-submenu, .ant-menu-vertical-left.ant-menu-sub > .ant-menu-submenu, .ant-menu-vertical-right.ant-menu-sub > .ant-menu-submenu { - transform-origin: 0 0; + -webkit-transform-origin: 0 0; + transform-origin: 0 0; } .ant-menu-horizontal.ant-menu-sub, .ant-menu-vertical.ant-menu-sub, @@ -12151,12 +13376,13 @@ textarea.ant-input-number { } .ant-menu-item, .ant-menu-submenu-title { - cursor: pointer; - margin: 0; - padding: 0 20px; position: relative; display: block; + margin: 0; + padding: 0 20px; white-space: nowrap; + cursor: pointer; + -webkit-transition: color 0.3s cubic-bezier(0.645, 0.045, 0.355, 1), border-color 0.3s cubic-bezier(0.645, 0.045, 0.355, 1), background 0.3s cubic-bezier(0.645, 0.045, 0.355, 1), padding 0.15s cubic-bezier(0.645, 0.045, 0.355, 1); transition: color 0.3s cubic-bezier(0.645, 0.045, 0.355, 1), border-color 0.3s cubic-bezier(0.645, 0.045, 0.355, 1), background 0.3s cubic-bezier(0.645, 0.045, 0.355, 1), padding 0.15s cubic-bezier(0.645, 0.045, 0.355, 1); } .ant-menu-item .anticon, @@ -12164,110 +13390,129 @@ textarea.ant-input-number { min-width: 14px; margin-right: 10px; font-size: 14px; + -webkit-transition: font-size 0.15s cubic-bezier(0.215, 0.61, 0.355, 1), margin 0.3s cubic-bezier(0.645, 0.045, 0.355, 1); transition: font-size 0.15s cubic-bezier(0.215, 0.61, 0.355, 1), margin 0.3s cubic-bezier(0.645, 0.045, 0.355, 1); } .ant-menu-item .anticon + span, .ant-menu-submenu-title .anticon + span { - transition: opacity 0.3s cubic-bezier(0.645, 0.045, 0.355, 1), width 0.3s cubic-bezier(0.645, 0.045, 0.355, 1); opacity: 1; + -webkit-transition: opacity 0.3s cubic-bezier(0.645, 0.045, 0.355, 1), width 0.3s cubic-bezier(0.645, 0.045, 0.355, 1); + transition: opacity 0.3s cubic-bezier(0.645, 0.045, 0.355, 1), width 0.3s cubic-bezier(0.645, 0.045, 0.355, 1); } .ant-menu > .ant-menu-item-divider { height: 1px; margin: 1px 0; - overflow: hidden; padding: 0; + overflow: hidden; line-height: 0; background-color: #e8e8e8; } .ant-menu-submenu-popup { position: absolute; - border-radius: 5px; z-index: 1050; background: #fff; + border-radius: 5px; } .ant-menu-submenu-popup .submenu-title-wrapper { padding-right: 20px; } -.ant-menu-submenu-popup:before { +.ant-menu-submenu-popup::before { position: absolute; top: -7px; - left: 0; right: 0; bottom: 0; - content: ' '; + left: 0; opacity: 0.0001; + content: ' '; } .ant-menu-submenu > .ant-menu { background-color: #fff; border-radius: 5px; } -.ant-menu-submenu > .ant-menu-submenu-title:after { +.ant-menu-submenu > .ant-menu-submenu-title::after { + -webkit-transition: -webkit-transform 0.3s cubic-bezier(0.645, 0.045, 0.355, 1); + transition: -webkit-transform 0.3s cubic-bezier(0.645, 0.045, 0.355, 1); transition: transform 0.3s cubic-bezier(0.645, 0.045, 0.355, 1); + transition: transform 0.3s cubic-bezier(0.645, 0.045, 0.355, 1), -webkit-transform 0.3s cubic-bezier(0.645, 0.045, 0.355, 1); } .ant-menu-submenu-vertical > .ant-menu-submenu-title .ant-menu-submenu-arrow, .ant-menu-submenu-vertical-left > .ant-menu-submenu-title .ant-menu-submenu-arrow, .ant-menu-submenu-vertical-right > .ant-menu-submenu-title .ant-menu-submenu-arrow, .ant-menu-submenu-inline > .ant-menu-submenu-title .ant-menu-submenu-arrow { - transition: transform 0.3s cubic-bezier(0.645, 0.045, 0.355, 1); position: absolute; top: 50%; right: 16px; width: 10px; -} -.ant-menu-submenu-vertical > .ant-menu-submenu-title .ant-menu-submenu-arrow:before, -.ant-menu-submenu-vertical-left > .ant-menu-submenu-title .ant-menu-submenu-arrow:before, -.ant-menu-submenu-vertical-right > .ant-menu-submenu-title .ant-menu-submenu-arrow:before, -.ant-menu-submenu-inline > .ant-menu-submenu-title .ant-menu-submenu-arrow:before, -.ant-menu-submenu-vertical > .ant-menu-submenu-title .ant-menu-submenu-arrow:after, -.ant-menu-submenu-vertical-left > .ant-menu-submenu-title .ant-menu-submenu-arrow:after, -.ant-menu-submenu-vertical-right > .ant-menu-submenu-title .ant-menu-submenu-arrow:after, -.ant-menu-submenu-inline > .ant-menu-submenu-title .ant-menu-submenu-arrow:after { - content: ''; + -webkit-transition: -webkit-transform 0.3s cubic-bezier(0.645, 0.045, 0.355, 1); + transition: -webkit-transform 0.3s cubic-bezier(0.645, 0.045, 0.355, 1); + transition: transform 0.3s cubic-bezier(0.645, 0.045, 0.355, 1); + transition: transform 0.3s cubic-bezier(0.645, 0.045, 0.355, 1), -webkit-transform 0.3s cubic-bezier(0.645, 0.045, 0.355, 1); +} +.ant-menu-submenu-vertical > .ant-menu-submenu-title .ant-menu-submenu-arrow::before, +.ant-menu-submenu-vertical-left > .ant-menu-submenu-title .ant-menu-submenu-arrow::before, +.ant-menu-submenu-vertical-right > .ant-menu-submenu-title .ant-menu-submenu-arrow::before, +.ant-menu-submenu-inline > .ant-menu-submenu-title .ant-menu-submenu-arrow::before, +.ant-menu-submenu-vertical > .ant-menu-submenu-title .ant-menu-submenu-arrow::after, +.ant-menu-submenu-vertical-left > .ant-menu-submenu-title .ant-menu-submenu-arrow::after, +.ant-menu-submenu-vertical-right > .ant-menu-submenu-title .ant-menu-submenu-arrow::after, +.ant-menu-submenu-inline > .ant-menu-submenu-title .ant-menu-submenu-arrow::after { position: absolute; - vertical-align: baseline; - background: #fff; - background-image: linear-gradient(to right, rgba(0, 0, 0, 0.65), rgba(0, 0, 0, 0.65)); width: 6px; height: 1.5px; + background: #fff; + background-image: -webkit-gradient(linear, left top, right top, from(rgba(0, 0, 0, 0.65)), to(rgba(0, 0, 0, 0.65))); + background-image: linear-gradient(to right, rgba(0, 0, 0, 0.65), rgba(0, 0, 0, 0.65)); border-radius: 2px; + -webkit-transition: background 0.3s cubic-bezier(0.645, 0.045, 0.355, 1), top 0.3s cubic-bezier(0.645, 0.045, 0.355, 1), -webkit-transform 0.3s cubic-bezier(0.645, 0.045, 0.355, 1); + transition: background 0.3s cubic-bezier(0.645, 0.045, 0.355, 1), top 0.3s cubic-bezier(0.645, 0.045, 0.355, 1), -webkit-transform 0.3s cubic-bezier(0.645, 0.045, 0.355, 1); transition: background 0.3s cubic-bezier(0.645, 0.045, 0.355, 1), transform 0.3s cubic-bezier(0.645, 0.045, 0.355, 1), top 0.3s cubic-bezier(0.645, 0.045, 0.355, 1); + transition: background 0.3s cubic-bezier(0.645, 0.045, 0.355, 1), transform 0.3s cubic-bezier(0.645, 0.045, 0.355, 1), top 0.3s cubic-bezier(0.645, 0.045, 0.355, 1), -webkit-transform 0.3s cubic-bezier(0.645, 0.045, 0.355, 1); + content: ''; } -.ant-menu-submenu-vertical > .ant-menu-submenu-title .ant-menu-submenu-arrow:before, -.ant-menu-submenu-vertical-left > .ant-menu-submenu-title .ant-menu-submenu-arrow:before, -.ant-menu-submenu-vertical-right > .ant-menu-submenu-title .ant-menu-submenu-arrow:before, -.ant-menu-submenu-inline > .ant-menu-submenu-title .ant-menu-submenu-arrow:before { - transform: rotate(45deg) translateY(-2px); -} -.ant-menu-submenu-vertical > .ant-menu-submenu-title .ant-menu-submenu-arrow:after, -.ant-menu-submenu-vertical-left > .ant-menu-submenu-title .ant-menu-submenu-arrow:after, -.ant-menu-submenu-vertical-right > .ant-menu-submenu-title .ant-menu-submenu-arrow:after, -.ant-menu-submenu-inline > .ant-menu-submenu-title .ant-menu-submenu-arrow:after { - transform: rotate(-45deg) translateY(2px); -} -.ant-menu-submenu-vertical > .ant-menu-submenu-title:hover .ant-menu-submenu-arrow:after, -.ant-menu-submenu-vertical-left > .ant-menu-submenu-title:hover .ant-menu-submenu-arrow:after, -.ant-menu-submenu-vertical-right > .ant-menu-submenu-title:hover .ant-menu-submenu-arrow:after, -.ant-menu-submenu-inline > .ant-menu-submenu-title:hover .ant-menu-submenu-arrow:after, -.ant-menu-submenu-vertical > .ant-menu-submenu-title:hover .ant-menu-submenu-arrow:before, -.ant-menu-submenu-vertical-left > .ant-menu-submenu-title:hover .ant-menu-submenu-arrow:before, -.ant-menu-submenu-vertical-right > .ant-menu-submenu-title:hover .ant-menu-submenu-arrow:before, -.ant-menu-submenu-inline > .ant-menu-submenu-title:hover .ant-menu-submenu-arrow:before { +.ant-menu-submenu-vertical > .ant-menu-submenu-title .ant-menu-submenu-arrow::before, +.ant-menu-submenu-vertical-left > .ant-menu-submenu-title .ant-menu-submenu-arrow::before, +.ant-menu-submenu-vertical-right > .ant-menu-submenu-title .ant-menu-submenu-arrow::before, +.ant-menu-submenu-inline > .ant-menu-submenu-title .ant-menu-submenu-arrow::before { + -webkit-transform: rotate(45deg) translateY(-2px); + transform: rotate(45deg) translateY(-2px); +} +.ant-menu-submenu-vertical > .ant-menu-submenu-title .ant-menu-submenu-arrow::after, +.ant-menu-submenu-vertical-left > .ant-menu-submenu-title .ant-menu-submenu-arrow::after, +.ant-menu-submenu-vertical-right > .ant-menu-submenu-title .ant-menu-submenu-arrow::after, +.ant-menu-submenu-inline > .ant-menu-submenu-title .ant-menu-submenu-arrow::after { + -webkit-transform: rotate(-45deg) translateY(2px); + transform: rotate(-45deg) translateY(2px); +} +.ant-menu-submenu-vertical > .ant-menu-submenu-title:hover .ant-menu-submenu-arrow::after, +.ant-menu-submenu-vertical-left > .ant-menu-submenu-title:hover .ant-menu-submenu-arrow::after, +.ant-menu-submenu-vertical-right > .ant-menu-submenu-title:hover .ant-menu-submenu-arrow::after, +.ant-menu-submenu-inline > .ant-menu-submenu-title:hover .ant-menu-submenu-arrow::after, +.ant-menu-submenu-vertical > .ant-menu-submenu-title:hover .ant-menu-submenu-arrow::before, +.ant-menu-submenu-vertical-left > .ant-menu-submenu-title:hover .ant-menu-submenu-arrow::before, +.ant-menu-submenu-vertical-right > .ant-menu-submenu-title:hover .ant-menu-submenu-arrow::before, +.ant-menu-submenu-inline > .ant-menu-submenu-title:hover .ant-menu-submenu-arrow::before { + background: -webkit-gradient(linear, left top, right top, from(#E64448), to(#E64448)); background: linear-gradient(to right, #E64448, #E64448); } -.ant-menu-submenu-inline > .ant-menu-submenu-title .ant-menu-submenu-arrow:before { - transform: rotate(-45deg) translateX(2px); +.ant-menu-submenu-inline > .ant-menu-submenu-title .ant-menu-submenu-arrow::before { + -webkit-transform: rotate(-45deg) translateX(2px); + transform: rotate(-45deg) translateX(2px); } -.ant-menu-submenu-inline > .ant-menu-submenu-title .ant-menu-submenu-arrow:after { - transform: rotate(45deg) translateX(-2px); +.ant-menu-submenu-inline > .ant-menu-submenu-title .ant-menu-submenu-arrow::after { + -webkit-transform: rotate(45deg) translateX(-2px); + transform: rotate(45deg) translateX(-2px); } .ant-menu-submenu-open.ant-menu-submenu-inline > .ant-menu-submenu-title .ant-menu-submenu-arrow { - transform: translateY(-2px); + -webkit-transform: translateY(-2px); + transform: translateY(-2px); } -.ant-menu-submenu-open.ant-menu-submenu-inline > .ant-menu-submenu-title .ant-menu-submenu-arrow:after { - transform: rotate(-45deg) translateX(-2px); +.ant-menu-submenu-open.ant-menu-submenu-inline > .ant-menu-submenu-title .ant-menu-submenu-arrow::after { + -webkit-transform: rotate(-45deg) translateX(-2px); + transform: rotate(-45deg) translateX(-2px); } -.ant-menu-submenu-open.ant-menu-submenu-inline > .ant-menu-submenu-title .ant-menu-submenu-arrow:before { - transform: rotate(45deg) translateX(2px); +.ant-menu-submenu-open.ant-menu-submenu-inline > .ant-menu-submenu-title .ant-menu-submenu-arrow::before { + -webkit-transform: rotate(45deg) translateX(2px); + transform: rotate(45deg) translateX(2px); } .ant-menu-vertical .ant-menu-submenu-selected, .ant-menu-vertical-left .ant-menu-submenu-selected, @@ -12280,11 +13525,11 @@ textarea.ant-input-number { color: #E64448; } .ant-menu-horizontal { + line-height: 46px; + white-space: nowrap; border: 0; border-bottom: 1px solid #e8e8e8; box-shadow: none; - line-height: 46px; - white-space: nowrap; } .ant-menu-horizontal > .ant-menu-item, .ant-menu-horizontal > .ant-menu-submenu { @@ -12302,8 +13547,8 @@ textarea.ant-input-number { .ant-menu-horizontal > .ant-menu-submenu-open, .ant-menu-horizontal > .ant-menu-item-selected, .ant-menu-horizontal > .ant-menu-submenu-selected { - border-bottom: 2px solid #E64448; color: #E64448; + border-bottom: 2px solid #E64448; } .ant-menu-horizontal > .ant-menu-item > a { display: block; @@ -12312,17 +13557,17 @@ textarea.ant-input-number { .ant-menu-horizontal > .ant-menu-item > a:hover { color: #E64448; } -.ant-menu-horizontal > .ant-menu-item > a:before { +.ant-menu-horizontal > .ant-menu-item > a::before { bottom: -2px; } .ant-menu-horizontal > .ant-menu-item-selected > a { color: #E64448; } -.ant-menu-horizontal:after { - content: ' '; +.ant-menu-horizontal::after { display: block; - height: 0; clear: both; + height: 0; + content: ' '; } .ant-menu-vertical .ant-menu-item, .ant-menu-vertical-left .ant-menu-item, @@ -12330,19 +13575,23 @@ textarea.ant-input-number { .ant-menu-inline .ant-menu-item { position: relative; } -.ant-menu-vertical .ant-menu-item:after, -.ant-menu-vertical-left .ant-menu-item:after, -.ant-menu-vertical-right .ant-menu-item:after, -.ant-menu-inline .ant-menu-item:after { - content: ''; +.ant-menu-vertical .ant-menu-item::after, +.ant-menu-vertical-left .ant-menu-item::after, +.ant-menu-vertical-right .ant-menu-item::after, +.ant-menu-inline .ant-menu-item::after { position: absolute; - right: 0; top: 0; + right: 0; bottom: 0; border-right: 3px solid #E64448; - transform: scaleY(0.0001); + -webkit-transform: scaleY(0.0001); + transform: scaleY(0.0001); opacity: 0; + -webkit-transition: opacity 0.15s cubic-bezier(0.215, 0.61, 0.355, 1), -webkit-transform 0.15s cubic-bezier(0.215, 0.61, 0.355, 1); + transition: opacity 0.15s cubic-bezier(0.215, 0.61, 0.355, 1), -webkit-transform 0.15s cubic-bezier(0.215, 0.61, 0.355, 1); transition: transform 0.15s cubic-bezier(0.215, 0.61, 0.355, 1), opacity 0.15s cubic-bezier(0.215, 0.61, 0.355, 1); + transition: transform 0.15s cubic-bezier(0.215, 0.61, 0.355, 1), opacity 0.15s cubic-bezier(0.215, 0.61, 0.355, 1), -webkit-transform 0.15s cubic-bezier(0.215, 0.61, 0.355, 1); + content: ''; } .ant-menu-vertical .ant-menu-item, .ant-menu-vertical-left .ant-menu-item, @@ -12352,20 +13601,20 @@ textarea.ant-input-number { .ant-menu-vertical-left .ant-menu-submenu-title, .ant-menu-vertical-right .ant-menu-submenu-title, .ant-menu-inline .ant-menu-submenu-title { - padding: 0 16px; - font-size: 14px; - line-height: 40px; height: 40px; margin-top: 4px; margin-bottom: 4px; + padding: 0 16px; overflow: hidden; + font-size: 14px; + line-height: 40px; text-overflow: ellipsis; } .ant-menu-vertical .ant-menu-submenu, .ant-menu-vertical-left .ant-menu-submenu, .ant-menu-vertical-right .ant-menu-submenu, .ant-menu-inline .ant-menu-submenu { - padding-bottom: 0.01px; + padding-bottom: 0.02px; } .ant-menu-vertical .ant-menu-item:not(:last-child), .ant-menu-vertical-left .ant-menu-item:not(:last-child), @@ -12381,17 +13630,21 @@ textarea.ant-input-number { .ant-menu-vertical-left > .ant-menu-submenu > .ant-menu-submenu-title, .ant-menu-vertical-right > .ant-menu-submenu > .ant-menu-submenu-title, .ant-menu-inline > .ant-menu-submenu > .ant-menu-submenu-title { - line-height: 40px; height: 40px; + line-height: 40px; } .ant-menu-inline { width: 100%; } -.ant-menu-inline .ant-menu-selected:after, -.ant-menu-inline .ant-menu-item-selected:after { - transition: transform 0.15s cubic-bezier(0.645, 0.045, 0.355, 1), opacity 0.15s cubic-bezier(0.645, 0.045, 0.355, 1); +.ant-menu-inline .ant-menu-selected::after, +.ant-menu-inline .ant-menu-item-selected::after { + -webkit-transform: scaleY(1); + transform: scaleY(1); opacity: 1; - transform: scaleY(1); + -webkit-transition: opacity 0.15s cubic-bezier(0.645, 0.045, 0.355, 1), -webkit-transform 0.15s cubic-bezier(0.645, 0.045, 0.355, 1); + transition: opacity 0.15s cubic-bezier(0.645, 0.045, 0.355, 1), -webkit-transform 0.15s cubic-bezier(0.645, 0.045, 0.355, 1); + transition: transform 0.15s cubic-bezier(0.645, 0.045, 0.355, 1), opacity 0.15s cubic-bezier(0.645, 0.045, 0.355, 1); + transition: transform 0.15s cubic-bezier(0.645, 0.045, 0.355, 1), opacity 0.15s cubic-bezier(0.645, 0.045, 0.355, 1), -webkit-transform 0.15s cubic-bezier(0.645, 0.045, 0.355, 1); } .ant-menu-inline .ant-menu-item, .ant-menu-inline .ant-menu-submenu-title { @@ -12408,8 +13661,8 @@ textarea.ant-input-number { .ant-menu-inline-collapsed > .ant-menu-item-group > .ant-menu-item-group-list > .ant-menu-submenu > .ant-menu-submenu-title, .ant-menu-inline-collapsed > .ant-menu-submenu > .ant-menu-submenu-title { left: 0; - text-overflow: clip; padding: 0 32px !important; + text-overflow: clip; } .ant-menu-inline-collapsed > .ant-menu-item .ant-menu-submenu-arrow, .ant-menu-inline-collapsed > .ant-menu-item-group > .ant-menu-item-group-list > .ant-menu-item .ant-menu-submenu-arrow, @@ -12421,16 +13674,16 @@ textarea.ant-input-number { .ant-menu-inline-collapsed > .ant-menu-item-group > .ant-menu-item-group-list > .ant-menu-item .anticon, .ant-menu-inline-collapsed > .ant-menu-item-group > .ant-menu-item-group-list > .ant-menu-submenu > .ant-menu-submenu-title .anticon, .ant-menu-inline-collapsed > .ant-menu-submenu > .ant-menu-submenu-title .anticon { + margin: 0; font-size: 16px; line-height: 40px; - margin: 0; } .ant-menu-inline-collapsed > .ant-menu-item .anticon + span, .ant-menu-inline-collapsed > .ant-menu-item-group > .ant-menu-item-group-list > .ant-menu-item .anticon + span, .ant-menu-inline-collapsed > .ant-menu-item-group > .ant-menu-item-group-list > .ant-menu-submenu > .ant-menu-submenu-title .anticon + span, .ant-menu-inline-collapsed > .ant-menu-submenu > .ant-menu-submenu-title .anticon + span { - max-width: 0; display: inline-block; + max-width: 0; opacity: 0; } .ant-menu-inline-collapsed-tooltip { @@ -12443,11 +13696,11 @@ textarea.ant-input-number { color: rgba(255, 255, 255, 0.85); } .ant-menu-inline-collapsed .ant-menu-item-group-title { + padding-right: 4px; + padding-left: 4px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; - padding-left: 4px; - padding-right: 4px; } .ant-menu-item-group-list { margin: 0; @@ -12466,15 +13719,15 @@ textarea.ant-input-number { .ant-menu-sub.ant-menu-inline { padding: 0; border: 0; - box-shadow: none; border-radius: 0; + box-shadow: none; } .ant-menu-sub.ant-menu-inline > .ant-menu-item, .ant-menu-sub.ant-menu-inline > .ant-menu-submenu > .ant-menu-submenu-title { - line-height: 40px; height: 40px; - list-style-type: disc; + line-height: 40px; list-style-position: inside; + list-style-type: disc; } .ant-menu-sub.ant-menu-inline .ant-menu-item-group-title { padding-left: 32px; @@ -12482,9 +13735,9 @@ textarea.ant-input-number { .ant-menu-item-disabled, .ant-menu-submenu-disabled { color: rgba(0, 0, 0, 0.25) !important; - cursor: not-allowed; background: none; border-color: transparent !important; + cursor: not-allowed; } .ant-menu-item-disabled > a, .ant-menu-submenu-disabled > a { @@ -12496,10 +13749,10 @@ textarea.ant-input-number { color: rgba(0, 0, 0, 0.25) !important; cursor: not-allowed; } -.ant-menu-item-disabled > .ant-menu-submenu-title > .ant-menu-submenu-arrow:before, -.ant-menu-submenu-disabled > .ant-menu-submenu-title > .ant-menu-submenu-arrow:before, -.ant-menu-item-disabled > .ant-menu-submenu-title > .ant-menu-submenu-arrow:after, -.ant-menu-submenu-disabled > .ant-menu-submenu-title > .ant-menu-submenu-arrow:after { +.ant-menu-item-disabled > .ant-menu-submenu-title > .ant-menu-submenu-arrow::before, +.ant-menu-submenu-disabled > .ant-menu-submenu-title > .ant-menu-submenu-arrow::before, +.ant-menu-item-disabled > .ant-menu-submenu-title > .ant-menu-submenu-arrow::after, +.ant-menu-submenu-disabled > .ant-menu-submenu-title > .ant-menu-submenu-arrow::after { background: rgba(0, 0, 0, 0.25) !important; } .ant-menu-dark, @@ -12510,12 +13763,13 @@ textarea.ant-input-number { .ant-menu-dark .ant-menu-submenu-title .ant-menu-submenu-arrow, .ant-menu-dark .ant-menu-sub .ant-menu-submenu-title .ant-menu-submenu-arrow { opacity: 0.45; + -webkit-transition: all 0.3s; transition: all 0.3s; } -.ant-menu-dark .ant-menu-submenu-title .ant-menu-submenu-arrow:after, -.ant-menu-dark .ant-menu-sub .ant-menu-submenu-title .ant-menu-submenu-arrow:after, -.ant-menu-dark .ant-menu-submenu-title .ant-menu-submenu-arrow:before, -.ant-menu-dark .ant-menu-sub .ant-menu-submenu-title .ant-menu-submenu-arrow:before { +.ant-menu-dark .ant-menu-submenu-title .ant-menu-submenu-arrow::after, +.ant-menu-dark .ant-menu-sub .ant-menu-submenu-title .ant-menu-submenu-arrow::after, +.ant-menu-dark .ant-menu-submenu-title .ant-menu-submenu-arrow::before, +.ant-menu-dark .ant-menu-sub .ant-menu-submenu-title .ant-menu-submenu-arrow::before { background: #fff; } .ant-menu-dark.ant-menu-submenu-popup { @@ -12530,12 +13784,12 @@ textarea.ant-input-number { } .ant-menu-dark.ant-menu-horizontal > .ant-menu-item, .ant-menu-dark.ant-menu-horizontal > .ant-menu-submenu { - border-color: #001529; - border-bottom: 0; top: 0; margin-top: 0; + border-color: #001529; + border-bottom: 0; } -.ant-menu-dark.ant-menu-horizontal > .ant-menu-item > a:before { +.ant-menu-dark.ant-menu-horizontal > .ant-menu-item > a::before { bottom: 0; } .ant-menu-dark .ant-menu-item, @@ -12553,14 +13807,14 @@ textarea.ant-input-number { .ant-menu-dark.ant-menu-vertical .ant-menu-item, .ant-menu-dark.ant-menu-vertical-left .ant-menu-item, .ant-menu-dark.ant-menu-vertical-right .ant-menu-item { - border-right: 0; - margin-left: 0; left: 0; + margin-left: 0; + border-right: 0; } -.ant-menu-dark.ant-menu-inline .ant-menu-item:after, -.ant-menu-dark.ant-menu-vertical .ant-menu-item:after, -.ant-menu-dark.ant-menu-vertical-left .ant-menu-item:after, -.ant-menu-dark.ant-menu-vertical-right .ant-menu-item:after { +.ant-menu-dark.ant-menu-inline .ant-menu-item::after, +.ant-menu-dark.ant-menu-vertical .ant-menu-item::after, +.ant-menu-dark.ant-menu-vertical-left .ant-menu-item::after, +.ant-menu-dark.ant-menu-vertical-right .ant-menu-item::after { border-right: 0; } .ant-menu-dark.ant-menu-inline .ant-menu-item, @@ -12573,8 +13827,8 @@ textarea.ant-input-number { .ant-menu-dark .ant-menu-submenu-open, .ant-menu-dark .ant-menu-submenu-selected, .ant-menu-dark .ant-menu-submenu-title:hover { - background-color: transparent; color: #fff; + background-color: transparent; } .ant-menu-dark .ant-menu-item:hover > a, .ant-menu-dark .ant-menu-item-active > a, @@ -12598,37 +13852,37 @@ textarea.ant-input-number { .ant-menu-dark .ant-menu-submenu-title:hover > .ant-menu-submenu-title:hover > .ant-menu-submenu-arrow { opacity: 1; } -.ant-menu-dark .ant-menu-item:hover > .ant-menu-submenu-title > .ant-menu-submenu-arrow:after, -.ant-menu-dark .ant-menu-item-active > .ant-menu-submenu-title > .ant-menu-submenu-arrow:after, -.ant-menu-dark .ant-menu-submenu-active > .ant-menu-submenu-title > .ant-menu-submenu-arrow:after, -.ant-menu-dark .ant-menu-submenu-open > .ant-menu-submenu-title > .ant-menu-submenu-arrow:after, -.ant-menu-dark .ant-menu-submenu-selected > .ant-menu-submenu-title > .ant-menu-submenu-arrow:after, -.ant-menu-dark .ant-menu-submenu-title:hover > .ant-menu-submenu-title > .ant-menu-submenu-arrow:after, -.ant-menu-dark .ant-menu-item:hover > .ant-menu-submenu-title:hover > .ant-menu-submenu-arrow:after, -.ant-menu-dark .ant-menu-item-active > .ant-menu-submenu-title:hover > .ant-menu-submenu-arrow:after, -.ant-menu-dark .ant-menu-submenu-active > .ant-menu-submenu-title:hover > .ant-menu-submenu-arrow:after, -.ant-menu-dark .ant-menu-submenu-open > .ant-menu-submenu-title:hover > .ant-menu-submenu-arrow:after, -.ant-menu-dark .ant-menu-submenu-selected > .ant-menu-submenu-title:hover > .ant-menu-submenu-arrow:after, -.ant-menu-dark .ant-menu-submenu-title:hover > .ant-menu-submenu-title:hover > .ant-menu-submenu-arrow:after, -.ant-menu-dark .ant-menu-item:hover > .ant-menu-submenu-title > .ant-menu-submenu-arrow:before, -.ant-menu-dark .ant-menu-item-active > .ant-menu-submenu-title > .ant-menu-submenu-arrow:before, -.ant-menu-dark .ant-menu-submenu-active > .ant-menu-submenu-title > .ant-menu-submenu-arrow:before, -.ant-menu-dark .ant-menu-submenu-open > .ant-menu-submenu-title > .ant-menu-submenu-arrow:before, -.ant-menu-dark .ant-menu-submenu-selected > .ant-menu-submenu-title > .ant-menu-submenu-arrow:before, -.ant-menu-dark .ant-menu-submenu-title:hover > .ant-menu-submenu-title > .ant-menu-submenu-arrow:before, -.ant-menu-dark .ant-menu-item:hover > .ant-menu-submenu-title:hover > .ant-menu-submenu-arrow:before, -.ant-menu-dark .ant-menu-item-active > .ant-menu-submenu-title:hover > .ant-menu-submenu-arrow:before, -.ant-menu-dark .ant-menu-submenu-active > .ant-menu-submenu-title:hover > .ant-menu-submenu-arrow:before, -.ant-menu-dark .ant-menu-submenu-open > .ant-menu-submenu-title:hover > .ant-menu-submenu-arrow:before, -.ant-menu-dark .ant-menu-submenu-selected > .ant-menu-submenu-title:hover > .ant-menu-submenu-arrow:before, -.ant-menu-dark .ant-menu-submenu-title:hover > .ant-menu-submenu-title:hover > .ant-menu-submenu-arrow:before { +.ant-menu-dark .ant-menu-item:hover > .ant-menu-submenu-title > .ant-menu-submenu-arrow::after, +.ant-menu-dark .ant-menu-item-active > .ant-menu-submenu-title > .ant-menu-submenu-arrow::after, +.ant-menu-dark .ant-menu-submenu-active > .ant-menu-submenu-title > .ant-menu-submenu-arrow::after, +.ant-menu-dark .ant-menu-submenu-open > .ant-menu-submenu-title > .ant-menu-submenu-arrow::after, +.ant-menu-dark .ant-menu-submenu-selected > .ant-menu-submenu-title > .ant-menu-submenu-arrow::after, +.ant-menu-dark .ant-menu-submenu-title:hover > .ant-menu-submenu-title > .ant-menu-submenu-arrow::after, +.ant-menu-dark .ant-menu-item:hover > .ant-menu-submenu-title:hover > .ant-menu-submenu-arrow::after, +.ant-menu-dark .ant-menu-item-active > .ant-menu-submenu-title:hover > .ant-menu-submenu-arrow::after, +.ant-menu-dark .ant-menu-submenu-active > .ant-menu-submenu-title:hover > .ant-menu-submenu-arrow::after, +.ant-menu-dark .ant-menu-submenu-open > .ant-menu-submenu-title:hover > .ant-menu-submenu-arrow::after, +.ant-menu-dark .ant-menu-submenu-selected > .ant-menu-submenu-title:hover > .ant-menu-submenu-arrow::after, +.ant-menu-dark .ant-menu-submenu-title:hover > .ant-menu-submenu-title:hover > .ant-menu-submenu-arrow::after, +.ant-menu-dark .ant-menu-item:hover > .ant-menu-submenu-title > .ant-menu-submenu-arrow::before, +.ant-menu-dark .ant-menu-item-active > .ant-menu-submenu-title > .ant-menu-submenu-arrow::before, +.ant-menu-dark .ant-menu-submenu-active > .ant-menu-submenu-title > .ant-menu-submenu-arrow::before, +.ant-menu-dark .ant-menu-submenu-open > .ant-menu-submenu-title > .ant-menu-submenu-arrow::before, +.ant-menu-dark .ant-menu-submenu-selected > .ant-menu-submenu-title > .ant-menu-submenu-arrow::before, +.ant-menu-dark .ant-menu-submenu-title:hover > .ant-menu-submenu-title > .ant-menu-submenu-arrow::before, +.ant-menu-dark .ant-menu-item:hover > .ant-menu-submenu-title:hover > .ant-menu-submenu-arrow::before, +.ant-menu-dark .ant-menu-item-active > .ant-menu-submenu-title:hover > .ant-menu-submenu-arrow::before, +.ant-menu-dark .ant-menu-submenu-active > .ant-menu-submenu-title:hover > .ant-menu-submenu-arrow::before, +.ant-menu-dark .ant-menu-submenu-open > .ant-menu-submenu-title:hover > .ant-menu-submenu-arrow::before, +.ant-menu-dark .ant-menu-submenu-selected > .ant-menu-submenu-title:hover > .ant-menu-submenu-arrow::before, +.ant-menu-dark .ant-menu-submenu-title:hover > .ant-menu-submenu-title:hover > .ant-menu-submenu-arrow::before { background: #fff; } .ant-menu-dark .ant-menu-item-selected { - border-right: 0; color: #fff; + border-right: 0; } -.ant-menu-dark .ant-menu-item-selected:after { +.ant-menu-dark .ant-menu-item-selected::after { border-right: 0; } .ant-menu-dark .ant-menu-item-selected > a, @@ -12643,34 +13897,34 @@ textarea.ant-input-number { .ant-menu-dark .ant-menu-submenu-disabled, .ant-menu-dark .ant-menu-item-disabled > a, .ant-menu-dark .ant-menu-submenu-disabled > a { - opacity: 0.8; color: rgba(255, 255, 255, 0.35) !important; + opacity: 0.8; } .ant-menu-dark .ant-menu-item-disabled > .ant-menu-submenu-title, .ant-menu-dark .ant-menu-submenu-disabled > .ant-menu-submenu-title { color: rgba(255, 255, 255, 0.35) !important; } -.ant-menu-dark .ant-menu-item-disabled > .ant-menu-submenu-title > .ant-menu-submenu-arrow:before, -.ant-menu-dark .ant-menu-submenu-disabled > .ant-menu-submenu-title > .ant-menu-submenu-arrow:before, -.ant-menu-dark .ant-menu-item-disabled > .ant-menu-submenu-title > .ant-menu-submenu-arrow:after, -.ant-menu-dark .ant-menu-submenu-disabled > .ant-menu-submenu-title > .ant-menu-submenu-arrow:after { +.ant-menu-dark .ant-menu-item-disabled > .ant-menu-submenu-title > .ant-menu-submenu-arrow::before, +.ant-menu-dark .ant-menu-submenu-disabled > .ant-menu-submenu-title > .ant-menu-submenu-arrow::before, +.ant-menu-dark .ant-menu-item-disabled > .ant-menu-submenu-title > .ant-menu-submenu-arrow::after, +.ant-menu-dark .ant-menu-submenu-disabled > .ant-menu-submenu-title > .ant-menu-submenu-arrow::after { background: rgba(255, 255, 255, 0.35) !important; } .ant-message { - font-family: "Chinese Quote", -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"; - font-size: 14px; - font-variant: tabular-nums; - line-height: 1.5; - color: rgba(0, 0, 0, 0.65); box-sizing: border-box; margin: 0; padding: 0; + color: rgba(0, 0, 0, 0.65); + font-size: 14px; + font-variant: tabular-nums; + line-height: 1.5; list-style: none; + font-feature-settings: 'tnum'; position: fixed; - z-index: 1010; - width: 100%; top: 16px; left: 0; + z-index: 1010; + width: 100%; pointer-events: none; } .ant-message-notice { @@ -12681,11 +13935,11 @@ textarea.ant-input-number { margin-top: -8px; } .ant-message-notice-content { + display: inline-block; padding: 10px 16px; + background: #fff; border-radius: 5px; box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15); - background: #fff; - display: inline-block; pointer-events: all; } .ant-message-success .anticon { @@ -12702,123 +13956,123 @@ textarea.ant-input-number { color: #1890ff; } .ant-message .anticon { + position: relative; + top: 1px; margin-right: 8px; font-size: 16px; - top: 1px; - position: relative; } .ant-message-notice.move-up-leave.move-up-leave-active { + overflow: hidden; -webkit-animation-name: MessageMoveOut; animation-name: MessageMoveOut; - overflow: hidden; -webkit-animation-duration: 0.3s; animation-duration: 0.3s; } @-webkit-keyframes MessageMoveOut { 0% { - opacity: 1; max-height: 150px; padding: 8px; + opacity: 1; } 100% { - opacity: 0; max-height: 0; padding: 0; + opacity: 0; } } @keyframes MessageMoveOut { 0% { - opacity: 1; max-height: 150px; padding: 8px; + opacity: 1; } 100% { - opacity: 0; max-height: 0; padding: 0; + opacity: 0; } } .ant-modal { - font-family: "Chinese Quote", -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"; - font-size: 14px; - font-variant: tabular-nums; - line-height: 1.5; - color: rgba(0, 0, 0, 0.65); box-sizing: border-box; margin: 0; padding: 0; + color: rgba(0, 0, 0, 0.65); + font-size: 14px; + font-variant: tabular-nums; + line-height: 1.5; list-style: none; + font-feature-settings: 'tnum'; position: relative; + top: 100px; width: auto; margin: 0 auto; - top: 100px; padding-bottom: 24px; } .ant-modal-wrap { position: fixed; - overflow: auto; top: 0; right: 0; bottom: 0; left: 0; z-index: 1000; - -webkit-overflow-scrolling: touch; + overflow: auto; outline: 0; + -webkit-overflow-scrolling: touch; } .ant-modal-title { margin: 0; + color: rgba(0, 0, 0, 0.85); + font-weight: 500; font-size: 16px; line-height: 22px; - font-weight: 500; - color: rgba(0, 0, 0, 0.85); } .ant-modal-content { position: relative; background-color: #fff; + background-clip: padding-box; border: 0; border-radius: 5px; - background-clip: padding-box; box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15); } .ant-modal-close { - cursor: pointer; - border: 0; - background: transparent; position: absolute; - right: 0; top: 0; + right: 0; z-index: 10; + padding: 0; + color: rgba(0, 0, 0, 0.45); font-weight: 700; line-height: 1; text-decoration: none; - transition: color 0.3s; - color: rgba(0, 0, 0, 0.45); + background: transparent; + border: 0; outline: 0; - padding: 0; + cursor: pointer; + -webkit-transition: color 0.3s; + transition: color 0.3s; } .ant-modal-close-x { display: block; + width: 56px; + height: 56px; + font-size: 16px; font-style: normal; - vertical-align: baseline; + line-height: 56px; text-align: center; text-transform: none; text-rendering: auto; - width: 56px; - height: 56px; - line-height: 56px; - font-size: 16px; } .ant-modal-close:focus, .ant-modal-close:hover { - color: #444; + color: rgba(0, 0, 0, 0.75); text-decoration: none; } .ant-modal-header { padding: 16px 24px; - border-radius: 5px 5px 0 0; - background: #fff; color: rgba(0, 0, 0, 0.65); + background: #fff; border-bottom: 1px solid #e8e8e8; + border-radius: 5px 5px 0 0; } .ant-modal-body { padding: 24px; @@ -12827,21 +14081,22 @@ textarea.ant-input-number { word-wrap: break-word; } .ant-modal-footer { - border-top: 1px solid #e8e8e8; padding: 10px 16px; text-align: right; + border-top: 1px solid #e8e8e8; border-radius: 0 0 5px 5px; } .ant-modal-footer button + button { - margin-left: 8px; margin-bottom: 0; + margin-left: 8px; } .ant-modal.zoom-enter, .ant-modal.zoom-appear { + -webkit-transform: none; + transform: none; + opacity: 0; -webkit-animation-duration: 0.3s; animation-duration: 0.3s; - transform: none; - opacity: 0; -webkit-user-select: none; -moz-user-select: none; -ms-user-select: none; @@ -12851,11 +14106,11 @@ textarea.ant-input-number { position: fixed; top: 0; right: 0; - left: 0; bottom: 0; - background-color: rgba(0, 0, 0, 0.65); - height: 100%; + left: 0; z-index: 1000; + height: 100%; + background-color: rgba(0, 0, 0, 0.65); filter: alpha(opacity=50); } .ant-modal-mask-hidden { @@ -12867,79 +14122,83 @@ textarea.ant-input-number { .ant-modal-centered { text-align: center; } -.ant-modal-centered:before { - content: ''; +.ant-modal-centered::before { display: inline-block; + width: 0; height: 100%; vertical-align: middle; - width: 0; + content: ''; } .ant-modal-centered .ant-modal { - display: inline-block; - vertical-align: middle; top: 0; + display: inline-block; text-align: left; + vertical-align: middle; } @media (max-width: 767px) { .ant-modal { - width: auto !important; - margin: 10px; + max-width: calc(100vw - 16px); + margin: 8px auto; } .ant-modal-centered .ant-modal { - flex: 1; + -webkit-box-flex: 1; + flex: 1; } } .ant-modal-confirm .ant-modal-header { display: none; } +.ant-modal-confirm .ant-modal-close { + display: none; +} .ant-modal-confirm .ant-modal-body { padding: 32px 32px 24px; } .ant-modal-confirm-body-wrapper { zoom: 1; } -.ant-modal-confirm-body-wrapper:before, -.ant-modal-confirm-body-wrapper:after { +.ant-modal-confirm-body-wrapper::before, +.ant-modal-confirm-body-wrapper::after { content: ''; display: table; } -.ant-modal-confirm-body-wrapper:after { +.ant-modal-confirm-body-wrapper::after { clear: both; } -.ant-modal-confirm-body-wrapper:before, -.ant-modal-confirm-body-wrapper:after { +.ant-modal-confirm-body-wrapper::before, +.ant-modal-confirm-body-wrapper::after { content: ''; display: table; } -.ant-modal-confirm-body-wrapper:after { +.ant-modal-confirm-body-wrapper::after { clear: both; } .ant-modal-confirm-body .ant-modal-confirm-title { + display: block; + overflow: hidden; color: rgba(0, 0, 0, 0.85); font-weight: 500; font-size: 16px; line-height: 1.4; - display: block; - overflow: hidden; } .ant-modal-confirm-body .ant-modal-confirm-content { + margin-top: 8px; margin-left: 38px; - font-size: 14px; color: rgba(0, 0, 0, 0.65); - margin-top: 8px; + font-size: 14px; } .ant-modal-confirm-body > .anticon { - font-size: 22px; - margin-right: 16px; float: left; + margin-right: 16px; + font-size: 22px; } .ant-modal-confirm .ant-modal-confirm-btns { - margin-top: 24px; float: right; + margin-top: 24px; } .ant-modal-confirm .ant-modal-confirm-btns button + button { - margin-left: 8px; margin-bottom: 0; + margin-left: 8px; } .ant-modal-confirm-error .ant-modal-confirm-body > .anticon { color: #f5222d; @@ -12955,15 +14214,15 @@ textarea.ant-input-number { color: #52c41a; } .ant-notification { - font-family: "Chinese Quote", -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"; - font-size: 14px; - font-variant: tabular-nums; - line-height: 1.5; - color: rgba(0, 0, 0, 0.65); box-sizing: border-box; margin: 0; padding: 0; + color: rgba(0, 0, 0, 0.65); + font-size: 14px; + font-variant: tabular-nums; + line-height: 1.5; list-style: none; + font-feature-settings: 'tnum'; position: fixed; z-index: 1010; width: 384px; @@ -12972,8 +14231,8 @@ textarea.ant-input-number { } .ant-notification-topLeft, .ant-notification-bottomLeft { - margin-left: 24px; margin-right: 0; + margin-left: 24px; } .ant-notification-topLeft .ant-notification-fade-enter.ant-notification-fade-enter-active, .ant-notification-bottomLeft .ant-notification-fade-enter.ant-notification-fade-enter-active, @@ -12987,32 +14246,32 @@ textarea.ant-input-number { cursor: pointer; } .ant-notification-notice { - padding: 16px 24px; - border-radius: 5px; - box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15); - background: #fff; - line-height: 1.5; position: relative; margin-bottom: 16px; + padding: 16px 24px; overflow: hidden; + line-height: 1.5; + background: #fff; + border-radius: 5px; + box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15); } .ant-notification-notice-message { - font-size: 16px; - color: rgba(0, 0, 0, 0.85); + display: inline-block; margin-bottom: 8px; + color: rgba(0, 0, 0, 0.85); + font-size: 16px; line-height: 24px; - display: inline-block; } .ant-notification-notice-message-single-line-auto-margin { + display: block; width: calc(384px - 24px * 2 - 24px - 48px - 100%); + max-width: 4px; background-color: transparent; pointer-events: none; - display: block; - max-width: 4px; } -.ant-notification-notice-message-single-line-auto-margin:before { - content: ''; +.ant-notification-notice-message-single-line-auto-margin::before { display: block; + content: ''; } .ant-notification-notice-description { font-size: 14px; @@ -13021,9 +14280,9 @@ textarea.ant-input-number { padding-right: 24px; } .ant-notification-notice-with-icon .ant-notification-notice-message { - font-size: 16px; - margin-left: 48px; margin-bottom: 4px; + margin-left: 48px; + font-size: 16px; } .ant-notification-notice-with-icon .ant-notification-notice-description { margin-left: 48px; @@ -13031,9 +14290,9 @@ textarea.ant-input-number { } .ant-notification-notice-icon { position: absolute; + margin-left: 4px; font-size: 24px; line-height: 24px; - margin-left: 4px; } .ant-notification-notice-icon-success { color: #52c41a; @@ -13049,8 +14308,8 @@ textarea.ant-input-number { } .ant-notification-notice-close { position: absolute; - right: 22px; top: 16px; + right: 22px; color: rgba(0, 0, 0, 0.45); outline: none; } @@ -13067,30 +14326,30 @@ a.ant-notification-notice-close:focus { .ant-notification .notification-fade-effect { -webkit-animation-duration: 0.24s; animation-duration: 0.24s; - -webkit-animation-fill-mode: both; - animation-fill-mode: both; -webkit-animation-timing-function: cubic-bezier(0.645, 0.045, 0.355, 1); animation-timing-function: cubic-bezier(0.645, 0.045, 0.355, 1); + -webkit-animation-fill-mode: both; + animation-fill-mode: both; } .ant-notification-fade-enter, .ant-notification-fade-appear { opacity: 0; -webkit-animation-duration: 0.24s; animation-duration: 0.24s; - -webkit-animation-fill-mode: both; - animation-fill-mode: both; -webkit-animation-timing-function: cubic-bezier(0.645, 0.045, 0.355, 1); animation-timing-function: cubic-bezier(0.645, 0.045, 0.355, 1); + -webkit-animation-fill-mode: both; + animation-fill-mode: both; -webkit-animation-play-state: paused; animation-play-state: paused; } .ant-notification-fade-leave { -webkit-animation-duration: 0.24s; animation-duration: 0.24s; - -webkit-animation-fill-mode: both; - animation-fill-mode: both; -webkit-animation-timing-function: cubic-bezier(0.645, 0.045, 0.355, 1); animation-timing-function: cubic-bezier(0.645, 0.045, 0.355, 1); + -webkit-animation-fill-mode: both; + animation-fill-mode: both; -webkit-animation-duration: 0.2s; animation-duration: 0.2s; -webkit-animation-play-state: paused; @@ -13111,8 +14370,8 @@ a.ant-notification-notice-close:focus { } @-webkit-keyframes NotificationFadeIn { 0% { - opacity: 0; left: 384px; + opacity: 0; } 100% { left: 0; @@ -13121,8 +14380,8 @@ a.ant-notification-notice-close:focus { } @keyframes NotificationFadeIn { 0% { - opacity: 0; left: 384px; + opacity: 0; } 100% { left: 0; @@ -13131,8 +14390,8 @@ a.ant-notification-notice-close:focus { } @-webkit-keyframes NotificationLeftFadeIn { 0% { - opacity: 0; right: 384px; + opacity: 0; } 100% { right: 0; @@ -13141,8 +14400,8 @@ a.ant-notification-notice-close:focus { } @keyframes NotificationLeftFadeIn { 0% { - opacity: 0; right: 384px; + opacity: 0; } 100% { right: 0; @@ -13151,46 +14410,46 @@ a.ant-notification-notice-close:focus { } @-webkit-keyframes NotificationFadeOut { 0% { - opacity: 1; + max-height: 150px; margin-bottom: 16px; padding-top: 16px 24px; padding-bottom: 16px 24px; - max-height: 150px; + opacity: 1; } 100% { - opacity: 0; + max-height: 0; margin-bottom: 0; padding-top: 0; padding-bottom: 0; - max-height: 0; + opacity: 0; } } @keyframes NotificationFadeOut { 0% { - opacity: 1; + max-height: 150px; margin-bottom: 16px; padding-top: 16px 24px; padding-bottom: 16px 24px; - max-height: 150px; + opacity: 1; } 100% { - opacity: 0; + max-height: 0; margin-bottom: 0; padding-top: 0; padding-bottom: 0; - max-height: 0; + opacity: 0; } } .ant-pagination { - font-family: "Chinese Quote", -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"; - font-size: 14px; - font-variant: tabular-nums; - line-height: 1.5; - color: rgba(0, 0, 0, 0.65); box-sizing: border-box; margin: 0; padding: 0; + color: rgba(0, 0, 0, 0.65); + font-size: 14px; + font-variant: tabular-nums; + line-height: 1.5; list-style: none; + font-feature-settings: 'tnum'; } .ant-pagination ul, .ant-pagination ol { @@ -13198,59 +14457,61 @@ a.ant-notification-notice-close:focus { padding: 0; list-style: none; } -.ant-pagination:after { - content: ' '; +.ant-pagination::after { display: block; - height: 0; clear: both; + height: 0; overflow: hidden; visibility: hidden; + content: ' '; } .ant-pagination-total-text { display: inline-block; - vertical-align: middle; height: 32px; - line-height: 30px; margin-right: 8px; + line-height: 30px; + vertical-align: middle; } .ant-pagination-item { - cursor: pointer; - border-radius: 5px; - -webkit-user-select: none; - -moz-user-select: none; - -ms-user-select: none; - user-select: none; + display: inline-block; min-width: 32px; height: 32px; + margin-right: 8px; + font-family: Arial; line-height: 30px; text-align: center; - list-style: none; - display: inline-block; vertical-align: middle; - border: 1px solid #d9d9d9; + list-style: none; background-color: #fff; - margin-right: 8px; - font-family: Arial; + border: 1px solid #d9d9d9; + border-radius: 5px; outline: 0; + cursor: pointer; + -webkit-user-select: none; + -moz-user-select: none; + -ms-user-select: none; + user-select: none; } .ant-pagination-item a { - text-decoration: none; + margin: 0 6px; color: rgba(0, 0, 0, 0.65); + text-decoration: none; + -webkit-transition: none; transition: none; - margin: 0 6px; } .ant-pagination-item:focus, .ant-pagination-item:hover { - transition: all 0.3s; border-color: #E64448; + -webkit-transition: all 0.3s; + transition: all 0.3s; } .ant-pagination-item:focus a, .ant-pagination-item:hover a { color: #E64448; } .ant-pagination-item-active { - border-color: #E64448; font-weight: 500; + border-color: #E64448; } .ant-pagination-item-active a { color: #E64448; @@ -13276,10 +14537,12 @@ a.ant-notification-notice-close:focus { display: inline-block; font-size: 12px; font-size: 12px \9; - transform: scale(1) rotate(0deg); + -webkit-transform: scale(1) rotate(0deg); + transform: scale(1) rotate(0deg); color: #E64448; letter-spacing: -1px; opacity: 0; + -webkit-transition: all 0.2s; transition: all 0.2s; } :root .ant-pagination-jump-prev .ant-pagination-item-container .ant-pagination-item-link-icon, @@ -13297,17 +14560,19 @@ a.ant-notification-notice-close:focus { .ant-pagination-jump-prev .ant-pagination-item-container .ant-pagination-item-ellipsis, .ant-pagination-jump-next .ant-pagination-item-container .ant-pagination-item-ellipsis { position: absolute; - display: block; - letter-spacing: 2px; - color: rgba(0, 0, 0, 0.25); - text-align: center; - opacity: 1; - transition: all 0.2s; top: 0; right: 0; bottom: 0; left: 0; + display: block; margin: auto; + color: rgba(0, 0, 0, 0.25); + letter-spacing: 2px; + text-align: center; + text-indent: 0.13em; + opacity: 1; + -webkit-transition: all 0.2s; + transition: all 0.2s; } .ant-pagination-jump-prev:focus .ant-pagination-item-link-icon, .ant-pagination-jump-next:focus .ant-pagination-item-link-icon, @@ -13330,18 +14595,19 @@ a.ant-notification-notice-close:focus { .ant-pagination-next, .ant-pagination-jump-prev, .ant-pagination-jump-next { - font-family: Arial; - cursor: pointer; - color: rgba(0, 0, 0, 0.65); - border-radius: 5px; - list-style: none; + display: inline-block; min-width: 32px; height: 32px; + color: rgba(0, 0, 0, 0.65); + font-family: Arial; line-height: 32px; text-align: center; - transition: all 0.3s; - display: inline-block; vertical-align: middle; + list-style: none; + border-radius: 5px; + cursor: pointer; + -webkit-transition: all 0.3s; + transition: all 0.3s; } .ant-pagination-prev, .ant-pagination-next { @@ -13361,22 +14627,23 @@ a.ant-notification-notice-close:focus { } .ant-pagination-prev .ant-pagination-item-link, .ant-pagination-next .ant-pagination-item-link { - border: 1px solid #d9d9d9; + display: block; + height: 100%; + font-size: 12px; + text-align: center; background-color: #fff; + border: 1px solid #d9d9d9; border-radius: 5px; outline: none; - display: block; + -webkit-transition: all 0.3s; transition: all 0.3s; - font-size: 12px; - height: 100%; - text-align: center; } .ant-pagination-prev:focus .ant-pagination-item-link, .ant-pagination-next:focus .ant-pagination-item-link, .ant-pagination-prev:hover .ant-pagination-item-link, .ant-pagination-next:hover .ant-pagination-item-link { - border-color: #E64448; color: #E64448; + border-color: #E64448; } .ant-pagination-disabled, .ant-pagination-disabled:hover, @@ -13389,8 +14656,8 @@ a.ant-notification-notice-close:focus { .ant-pagination-disabled .ant-pagination-item-link, .ant-pagination-disabled:hover .ant-pagination-item-link, .ant-pagination-disabled:focus .ant-pagination-item-link { - border-color: #d9d9d9; color: rgba(0, 0, 0, 0.25); + border-color: #d9d9d9; cursor: not-allowed; } .ant-pagination-slash { @@ -13398,8 +14665,8 @@ a.ant-notification-notice-close:focus { } .ant-pagination-options { display: inline-block; - vertical-align: middle; margin-left: 16px; + vertical-align: middle; } .ant-pagination-options-size-changer.ant-select { display: inline-block; @@ -13408,26 +14675,27 @@ a.ant-notification-notice-close:focus { } .ant-pagination-options-quick-jumper { display: inline-block; - vertical-align: top; height: 32px; line-height: 32px; + vertical-align: top; } .ant-pagination-options-quick-jumper input { position: relative; display: inline-block; - padding: 4px 11px; width: 100%; height: 32px; + padding: 4px 11px; + color: rgba(0, 0, 0, 0.65); font-size: 14px; line-height: 1.5; - color: rgba(0, 0, 0, 0.65); background-color: #fff; background-image: none; border: 1px solid #d9d9d9; border-radius: 5px; + -webkit-transition: all 0.3s; transition: all 0.3s; - margin: 0 8px; width: 50px; + margin: 0 8px; } .ant-pagination-options-quick-jumper input::-moz-placeholder { color: #bfbfbf; @@ -13445,15 +14713,15 @@ a.ant-notification-notice-close:focus { } .ant-pagination-options-quick-jumper input:focus { border-color: #f2726f; + border-right-width: 1px !important; outline: 0; box-shadow: 0 0 0 2px rgba(230, 68, 72, 0.2); - border-right-width: 1px !important; } .ant-pagination-options-quick-jumper input-disabled { + color: rgba(0, 0, 0, 0.25); background-color: #f5f5f5; - opacity: 1; cursor: not-allowed; - color: rgba(0, 0, 0, 0.25); + opacity: 1; } .ant-pagination-options-quick-jumper input-disabled:hover { border-color: #e6d8d8; @@ -13462,18 +14730,19 @@ a.ant-notification-notice-close:focus { textarea.ant-pagination-options-quick-jumper input { max-width: 100%; height: auto; + min-height: 32px; vertical-align: bottom; + -webkit-transition: all 0.3s, height 0s; transition: all 0.3s, height 0s; - min-height: 32px; } .ant-pagination-options-quick-jumper input-lg { - padding: 6px 11px; height: 40px; + padding: 6px 11px; font-size: 16px; } .ant-pagination-options-quick-jumper input-sm { - padding: 1px 7px; height: 24px; + padding: 1px 7px; } .ant-pagination-simple .ant-pagination-prev, .ant-pagination-simple .ant-pagination-next { @@ -13483,29 +14752,30 @@ textarea.ant-pagination-options-quick-jumper input { } .ant-pagination-simple .ant-pagination-prev .ant-pagination-item-link, .ant-pagination-simple .ant-pagination-next .ant-pagination-item-link { - border: 0; height: 24px; + border: 0; } -.ant-pagination-simple .ant-pagination-prev .ant-pagination-item-link:after, -.ant-pagination-simple .ant-pagination-next .ant-pagination-item-link:after { +.ant-pagination-simple .ant-pagination-prev .ant-pagination-item-link::after, +.ant-pagination-simple .ant-pagination-next .ant-pagination-item-link::after { height: 24px; line-height: 24px; } .ant-pagination-simple .ant-pagination-simple-pager { display: inline-block; - margin-right: 8px; height: 24px; + margin-right: 8px; } .ant-pagination-simple .ant-pagination-simple-pager input { - margin-right: 8px; box-sizing: border-box; + height: 100%; + margin-right: 8px; + padding: 0 6px; + text-align: center; background-color: #fff; - border-radius: 5px; border: 1px solid #d9d9d9; + border-radius: 5px; outline: none; - padding: 0 6px; - height: 100%; - text-align: center; + -webkit-transition: border-color 0.3s; transition: border-color 0.3s; } .ant-pagination-simple .ant-pagination-simple-pager input:hover { @@ -13517,9 +14787,9 @@ textarea.ant-pagination-options-quick-jumper input { line-height: 24px; } .ant-pagination.mini .ant-pagination-item { - margin: 0; min-width: 24px; height: 24px; + margin: 0; line-height: 22px; } .ant-pagination.mini .ant-pagination-item:not(.ant-pagination-item-active) { @@ -13528,26 +14798,26 @@ textarea.ant-pagination-options-quick-jumper input { } .ant-pagination.mini .ant-pagination-prev, .ant-pagination.mini .ant-pagination-next { - margin: 0; min-width: 24px; height: 24px; + margin: 0; line-height: 24px; } .ant-pagination.mini .ant-pagination-prev .ant-pagination-item-link, .ant-pagination.mini .ant-pagination-next .ant-pagination-item-link { - border-color: transparent; background: transparent; + border-color: transparent; } -.ant-pagination.mini .ant-pagination-prev .ant-pagination-item-link:after, -.ant-pagination.mini .ant-pagination-next .ant-pagination-item-link:after { +.ant-pagination.mini .ant-pagination-prev .ant-pagination-item-link::after, +.ant-pagination.mini .ant-pagination-next .ant-pagination-item-link::after { height: 24px; line-height: 24px; } .ant-pagination.mini .ant-pagination-jump-prev, .ant-pagination.mini .ant-pagination-jump-next { height: 24px; - line-height: 24px; margin-right: 0; + line-height: 24px; } .ant-pagination.mini .ant-pagination-options { margin-left: 2px; @@ -13557,8 +14827,8 @@ textarea.ant-pagination-options-quick-jumper input { line-height: 24px; } .ant-pagination.mini .ant-pagination-options-quick-jumper input { - padding: 1px 7px; height: 24px; + padding: 1px 7px; width: 44px; } @media only screen and (max-width: 992px) { @@ -13573,15 +14843,15 @@ textarea.ant-pagination-options-quick-jumper input { } } .ant-popover { - font-family: "Chinese Quote", -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"; - font-size: 14px; - font-variant: tabular-nums; - line-height: 1.5; - color: rgba(0, 0, 0, 0.65); box-sizing: border-box; margin: 0; padding: 0; + color: rgba(0, 0, 0, 0.65); + font-size: 14px; + font-variant: tabular-nums; + line-height: 1.5; list-style: none; + font-feature-settings: 'tnum'; position: absolute; top: 0; left: 0; @@ -13681,7 +14951,8 @@ textarea.ant-pagination-options-quick-jumper input { background: transparent; border-width: 4.24264069px; border-style: solid; - transform: rotate(45deg); + -webkit-transform: rotate(45deg); + transform: rotate(45deg); } .ant-popover-placement-top > .ant-popover-content > .ant-popover-arrow, .ant-popover-placement-topLeft > .ant-popover-content > .ant-popover-arrow, @@ -13695,7 +14966,8 @@ textarea.ant-pagination-options-quick-jumper input { } .ant-popover-placement-top > .ant-popover-content > .ant-popover-arrow { left: 50%; - transform: translateX(-50%) rotate(45deg); + -webkit-transform: translateX(-50%) rotate(45deg); + transform: translateX(-50%) rotate(45deg); } .ant-popover-placement-topLeft > .ant-popover-content > .ant-popover-arrow { left: 16px; @@ -13715,7 +14987,8 @@ textarea.ant-pagination-options-quick-jumper input { } .ant-popover-placement-right > .ant-popover-content > .ant-popover-arrow { top: 50%; - transform: translateY(-50%) rotate(45deg); + -webkit-transform: translateY(-50%) rotate(45deg); + transform: translateY(-50%) rotate(45deg); } .ant-popover-placement-rightTop > .ant-popover-content > .ant-popover-arrow { top: 12px; @@ -13735,7 +15008,8 @@ textarea.ant-pagination-options-quick-jumper input { } .ant-popover-placement-bottom > .ant-popover-content > .ant-popover-arrow { left: 50%; - transform: translateX(-50%) rotate(45deg); + -webkit-transform: translateX(-50%) rotate(45deg); + transform: translateX(-50%) rotate(45deg); } .ant-popover-placement-bottomLeft > .ant-popover-content > .ant-popover-arrow { left: 16px; @@ -13755,7 +15029,8 @@ textarea.ant-pagination-options-quick-jumper input { } .ant-popover-placement-left > .ant-popover-content > .ant-popover-arrow { top: 50%; - transform: translateY(-50%) rotate(45deg); + -webkit-transform: translateY(-50%) rotate(45deg); + transform: translateY(-50%) rotate(45deg); } .ant-popover-placement-leftTop > .ant-popover-content > .ant-popover-arrow { top: 12px; @@ -13764,21 +15039,21 @@ textarea.ant-pagination-options-quick-jumper input { bottom: 12px; } .ant-progress { - font-family: "Chinese Quote", -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"; - font-size: 14px; - font-variant: tabular-nums; - line-height: 1.5; - color: rgba(0, 0, 0, 0.65); box-sizing: border-box; margin: 0; padding: 0; + color: rgba(0, 0, 0, 0.65); + font-size: 14px; + font-variant: tabular-nums; + line-height: 1.5; list-style: none; + font-feature-settings: 'tnum'; display: inline-block; } .ant-progress-line { + position: relative; width: 100%; font-size: 14px; - position: relative; } .ant-progress-small.ant-progress-line, .ant-progress-small.ant-progress-line .ant-progress-text .anticon { @@ -13791,64 +15066,66 @@ textarea.ant-pagination-options-quick-jumper input { padding-right: 0; } .ant-progress-show-info .ant-progress-outer { - padding-right: calc(2em + 8px); margin-right: calc(-2em - 8px); + padding-right: calc(2em + 8px); } .ant-progress-inner { + position: relative; display: inline-block; width: 100%; + vertical-align: middle; background-color: #f5f5f5; border-radius: 100px; - vertical-align: middle; - position: relative; + overflow: hidden; } .ant-progress-circle-trail { stroke: #f5f5f5; } .ant-progress-circle-path { - stroke: #1890ff; -webkit-animation: ant-progress-appear 0.3s; animation: ant-progress-appear 0.3s; + stroke: #1890ff; } .ant-progress-success-bg, .ant-progress-bg { + position: relative; background-color: #1890ff; + -webkit-transition: all 0.4s cubic-bezier(0.08, 0.82, 0.17, 1) 0s; transition: all 0.4s cubic-bezier(0.08, 0.82, 0.17, 1) 0s; - position: relative; } .ant-progress-success-bg { - background-color: #52c41a; position: absolute; top: 0; left: 0; + background-color: #52c41a; } .ant-progress-text { - word-break: normal; + display: inline-block; width: 2em; - text-align: left; - font-size: 1em; margin-left: 8px; - vertical-align: middle; - display: inline-block; - white-space: nowrap; color: rgba(0, 0, 0, 0.45); + font-size: 1em; line-height: 1; + white-space: nowrap; + text-align: left; + vertical-align: middle; + word-break: normal; } .ant-progress-text .anticon { font-size: 14px; } -.ant-progress-status-active .ant-progress-bg:before { - content: ''; - opacity: 0; +.ant-progress-status-active .ant-progress-bg::before { position: absolute; top: 0; - left: 0; right: 0; bottom: 0; + left: 0; background: #fff; border-radius: 10px; + opacity: 0; -webkit-animation: ant-progress-active 2.4s cubic-bezier(0.23, 1, 0.32, 1) infinite; animation: ant-progress-active 2.4s cubic-bezier(0.23, 1, 0.32, 1) infinite; + content: ''; } .ant-progress-status-exception .ant-progress-bg { background-color: #f5222d; @@ -13874,18 +15151,18 @@ textarea.ant-pagination-options-quick-jumper input { background-color: transparent; } .ant-progress-circle .ant-progress-text { - display: block; position: absolute; - width: 100%; - text-align: center; - line-height: 1; top: 50%; - transform: translateY(-50%); - left: 0; + left: 50%; + width: 100%; margin: 0; + padding: 0; color: rgba(0, 0, 0, 0.65); + line-height: 1; white-space: normal; - padding: 0 6px; + text-align: center; + -webkit-transform: translate(-50%, -50%); + transform: translate(-50%, -50%); } .ant-progress-circle .ant-progress-text .anticon { font-size: 1.16666667em; @@ -13898,101 +15175,104 @@ textarea.ant-pagination-options-quick-jumper input { } @-webkit-keyframes ant-progress-active { 0% { - opacity: 0.1; width: 0; + opacity: 0.1; } 20% { - opacity: 0.5; width: 0; + opacity: 0.5; } 100% { - opacity: 0; width: 100%; + opacity: 0; } } @keyframes ant-progress-active { 0% { - opacity: 0.1; width: 0; + opacity: 0.1; } 20% { - opacity: 0.5; width: 0; + opacity: 0.5; } 100% { - opacity: 0; width: 100%; + opacity: 0; } } .ant-radio-group { - font-family: "Chinese Quote", -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"; - font-size: 14px; - font-variant: tabular-nums; - line-height: 1.5; - color: rgba(0, 0, 0, 0.65); box-sizing: border-box; margin: 0; padding: 0; + color: rgba(0, 0, 0, 0.65); + font-size: 14px; + font-variant: tabular-nums; + line-height: 1.5; list-style: none; + font-feature-settings: 'tnum'; display: inline-block; line-height: unset; } .ant-radio-wrapper { - font-family: "Chinese Quote", -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"; - font-size: 14px; - font-variant: tabular-nums; - line-height: 1.5; - color: rgba(0, 0, 0, 0.65); box-sizing: border-box; margin: 0; padding: 0; + color: rgba(0, 0, 0, 0.65); + font-size: 14px; + font-variant: tabular-nums; + line-height: 1.5; list-style: none; - display: inline-block; + font-feature-settings: 'tnum'; position: relative; - white-space: nowrap; + display: inline-block; margin-right: 8px; + white-space: nowrap; cursor: pointer; } .ant-radio { - font-family: "Chinese Quote", -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"; - font-size: 14px; - font-variant: tabular-nums; - line-height: 1.5; - color: rgba(0, 0, 0, 0.65); box-sizing: border-box; margin: 0; padding: 0; + color: rgba(0, 0, 0, 0.65); + font-size: 14px; + font-variant: tabular-nums; + line-height: 1.5; list-style: none; - white-space: nowrap; - outline: none; - display: inline-block; + font-feature-settings: 'tnum'; position: relative; + display: inline-block; line-height: 1; + white-space: nowrap; vertical-align: sub; + outline: none; cursor: pointer; } -.ant-radio-wrapper:hover .ant-radio .ant-radio-inner, +.ant-radio-wrapper:hover .ant-radio, .ant-radio:hover .ant-radio-inner, -.ant-radio-focused .ant-radio-inner { +.ant-radio-input:focus + .ant-radio-inner { border-color: #E64448; } -.ant-radio-checked:after { +.ant-radio-input:focus + .ant-radio-inner { + box-shadow: 0 0 0 3px rgba(230, 68, 72, 0.08); +} +.ant-radio-checked::after { position: absolute; top: 0; left: 0; width: 100%; height: 100%; - border-radius: 50%; border: 1px solid #E64448; - content: ''; + border-radius: 50%; + visibility: hidden; -webkit-animation: antRadioEffect 0.36s ease-in-out; animation: antRadioEffect 0.36s ease-in-out; -webkit-animation-fill-mode: both; animation-fill-mode: both; - visibility: hidden; + content: ''; } -.ant-radio:hover:after, -.ant-radio-wrapper:hover .ant-radio:after { +.ant-radio:hover::after, +.ant-radio-wrapper:hover .ant-radio::after { visibility: visible; } .ant-radio-inner { @@ -14002,54 +15282,59 @@ textarea.ant-pagination-options-quick-jumper input { display: block; width: 16px; height: 16px; + background-color: #fff; border-width: 1px; border-style: solid; - border-radius: 100px; border-color: #d9d9d9; - background-color: #fff; + border-radius: 100px; + -webkit-transition: all 0.3s; transition: all 0.3s; } -.ant-radio-inner:after { +.ant-radio-inner::after { position: absolute; - width: 8px; - height: 8px; - left: 3px; top: 3px; - border-radius: 8px; + left: 3px; display: table; + width: 8px; + height: 8px; + background-color: #E64448; border-top: 0; border-left: 0; - content: ' '; - background-color: #E64448; + border-radius: 8px; + -webkit-transform: scale(0); + transform: scale(0); opacity: 0; - transform: scale(0); + -webkit-transition: all 0.3s cubic-bezier(0.78, 0.14, 0.15, 0.86); transition: all 0.3s cubic-bezier(0.78, 0.14, 0.15, 0.86); + content: ' '; } .ant-radio-input { position: absolute; + top: 0; + right: 0; + bottom: 0; left: 0; z-index: 1; cursor: pointer; opacity: 0; - top: 0; - bottom: 0; - right: 0; } .ant-radio-checked .ant-radio-inner { border-color: #E64448; } -.ant-radio-checked .ant-radio-inner:after { - transform: scale(0.875); +.ant-radio-checked .ant-radio-inner::after { + -webkit-transform: scale(0.875); + transform: scale(0.875); opacity: 1; + -webkit-transition: all 0.3s cubic-bezier(0.78, 0.14, 0.15, 0.86); transition: all 0.3s cubic-bezier(0.78, 0.14, 0.15, 0.86); } .ant-radio-disabled .ant-radio-inner { - border-color: #d9d9d9 !important; background-color: #f5f5f5; + border-color: #d9d9d9 !important; cursor: not-allowed; } -.ant-radio-disabled .ant-radio-inner:after { - background-color: #ccc; +.ant-radio-disabled .ant-radio-inner::after { + background-color: rgba(0, 0, 0, 0.2); } .ant-radio-disabled .ant-radio-input { cursor: not-allowed; @@ -14059,56 +15344,57 @@ textarea.ant-pagination-options-quick-jumper input { cursor: not-allowed; } span.ant-radio + * { - padding-left: 8px; padding-right: 8px; + padding-left: 8px; } .ant-radio-button-wrapper { - margin: 0; + position: relative; + display: inline-block; height: 32px; - line-height: 30px; + margin: 0; + padding: 0 15px; color: rgba(0, 0, 0, 0.65); - display: inline-block; - transition: all 0.3s ease; - cursor: pointer; + line-height: 30px; + background: #fff; border: 1px solid #d9d9d9; - border-left: 0; border-top-width: 1.02px; - background: #fff; - padding: 0 15px; - position: relative; + border-left: 0; + cursor: pointer; + -webkit-transition: color 0.3s, background 0.3s, border-color 0.3s; + transition: color 0.3s, background 0.3s, border-color 0.3s; } .ant-radio-button-wrapper a { color: rgba(0, 0, 0, 0.65); } .ant-radio-button-wrapper > .ant-radio-button { - margin-left: 0; display: block; width: 0; height: 0; + margin-left: 0; } .ant-radio-group-large .ant-radio-button-wrapper { height: 40px; - line-height: 38px; font-size: 16px; + line-height: 38px; } .ant-radio-group-small .ant-radio-button-wrapper { height: 24px; - line-height: 22px; padding: 0 7px; + line-height: 22px; } .ant-radio-button-wrapper:not(:first-child)::before { - content: ''; - display: block; + position: absolute; top: 0; left: -1px; + display: block; width: 1px; height: 100%; - position: absolute; background-color: #d9d9d9; + content: ''; } .ant-radio-button-wrapper:first-child { - border-radius: 5px 0 0 5px; border-left: 1px solid #d9d9d9; + border-radius: 5px 0 0 5px; } .ant-radio-button-wrapper:last-child { border-radius: 0 5px 5px 0; @@ -14116,24 +15402,27 @@ span.ant-radio + * { .ant-radio-button-wrapper:first-child:last-child { border-radius: 5px; } -.ant-radio-button-wrapper:hover, -.ant-radio-button-wrapper-focused { - color: #E64448; +.ant-radio-button-wrapper:hover { position: relative; + color: #E64448; +} +.ant-radio-button-wrapper:focus-within { + outline: 3px solid rgba(230, 68, 72, 0.06); } .ant-radio-button-wrapper .ant-radio-inner, .ant-radio-button-wrapper input[type='checkbox'], .ant-radio-button-wrapper input[type='radio'] { - opacity: 0; width: 0; height: 0; + opacity: 0; + pointer-events: none; } .ant-radio-button-wrapper-checked { + z-index: 1; + color: #E64448; background: #fff; border-color: #E64448; - color: #E64448; box-shadow: -1px 0 0 0 #E64448; - z-index: 1; } .ant-radio-button-wrapper-checked::before { background-color: #E64448 !important; @@ -14144,41 +15433,47 @@ span.ant-radio + * { box-shadow: none !important; } .ant-radio-button-wrapper-checked:hover { + color: #f2726f; border-color: #f2726f; box-shadow: -1px 0 0 0 #f2726f; - color: #f2726f; } .ant-radio-button-wrapper-checked:active { + color: #bf3037; border-color: #bf3037; box-shadow: -1px 0 0 0 #bf3037; - color: #bf3037; +} +.ant-radio-button-wrapper-checked:focus-within { + outline: 3px solid rgba(230, 68, 72, 0.06); } .ant-radio-group-solid .ant-radio-button-wrapper-checked:not(.ant-radio-button-wrapper-disabled) { + color: #fff; background: #E64448; border-color: #E64448; - color: #fff; } .ant-radio-group-solid .ant-radio-button-wrapper-checked:not(.ant-radio-button-wrapper-disabled):hover { - border-color: #f2726f; - background: #f2726f; color: #fff; + background: #f2726f; + border-color: #f2726f; } .ant-radio-group-solid .ant-radio-button-wrapper-checked:not(.ant-radio-button-wrapper-disabled):active { - border-color: #bf3037; - background: #bf3037; color: #fff; + background: #bf3037; + border-color: #bf3037; +} +.ant-radio-group-solid .ant-radio-button-wrapper-checked:not(.ant-radio-button-wrapper-disabled):focus-within { + outline: 3px solid rgba(230, 68, 72, 0.06); } .ant-radio-button-wrapper-disabled { - border-color: #d9d9d9; + color: rgba(0, 0, 0, 0.25); background-color: #f5f5f5; + border-color: #d9d9d9; cursor: not-allowed; - color: rgba(0, 0, 0, 0.25); } .ant-radio-button-wrapper-disabled:first-child, .ant-radio-button-wrapper-disabled:hover { - border-color: #d9d9d9; - background-color: #f5f5f5; color: rgba(0, 0, 0, 0.25); + background-color: #f5f5f5; + border-color: #d9d9d9; } .ant-radio-button-wrapper-disabled:first-child { border-left-color: #d9d9d9; @@ -14191,21 +15486,25 @@ span.ant-radio + * { } @-webkit-keyframes antRadioEffect { 0% { - transform: scale(1); + -webkit-transform: scale(1); + transform: scale(1); opacity: 0.5; } 100% { - transform: scale(1.6); + -webkit-transform: scale(1.6); + transform: scale(1.6); opacity: 0; } } @keyframes antRadioEffect { 0% { - transform: scale(1); + -webkit-transform: scale(1); + transform: scale(1); opacity: 0.5; } 100% { - transform: scale(1.6); + -webkit-transform: scale(1.6); + transform: scale(1.6); opacity: 0; } } @@ -14215,61 +15514,65 @@ span.ant-radio + * { } } .ant-rate { - font-family: "Chinese Quote", -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"; + box-sizing: border-box; + color: rgba(0, 0, 0, 0.65); font-size: 14px; font-variant: tabular-nums; line-height: 1.5; - color: rgba(0, 0, 0, 0.65); - box-sizing: border-box; - line-height: unset; + font-feature-settings: 'tnum'; + display: inline-block; margin: 0; padding: 0; - list-style: none; - font-size: 20px; - display: inline-block; color: #fadb14; + font-size: 20px; + line-height: unset; + list-style: none; outline: none; } .ant-rate-disabled .ant-rate-star { cursor: default; } .ant-rate-disabled .ant-rate-star:hover { - transform: scale(1); + -webkit-transform: scale(1); + transform: scale(1); } .ant-rate-star { - margin: 0; - padding: 0; + position: relative; display: inline-block; + margin: 0; margin-right: 8px; - position: relative; - transition: all 0.3s; + padding: 0; color: inherit; cursor: pointer; + -webkit-transition: all 0.3s; + transition: all 0.3s; } -.ant-rate-star:focus { +.ant-rate-star > div:focus { outline: 0; } +.ant-rate-star > div:hover, +.ant-rate-star > div:focus { + -webkit-transform: scale(1.1); + transform: scale(1.1); +} .ant-rate-star-first, .ant-rate-star-second { + color: #e8e8e8; + -webkit-transition: all 0.3s; + transition: all 0.3s; -webkit-user-select: none; -moz-user-select: none; -ms-user-select: none; user-select: none; - transition: all 0.3s; - color: #e8e8e8; } .ant-rate-star-first .anticon, .ant-rate-star-second .anticon { vertical-align: middle; } -.ant-rate-star:hover, -.ant-rate-star:focus { - transform: scale(1.1); -} .ant-rate-star-first { position: absolute; - left: 0; top: 0; + left: 0; width: 50%; height: 100%; overflow: hidden; @@ -14284,22 +15587,22 @@ span.ant-radio + * { color: inherit; } .ant-rate-text { - margin-left: 8px; display: inline-block; + margin-left: 8px; font-size: 14px; } .ant-select { - font-family: "Chinese Quote", -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"; - font-size: 14px; - font-variant: tabular-nums; - line-height: 1.5; - color: rgba(0, 0, 0, 0.65); box-sizing: border-box; margin: 0; padding: 0; + color: rgba(0, 0, 0, 0.65); + font-size: 14px; + font-variant: tabular-nums; + line-height: 1.5; list-style: none; - display: inline-block; + font-feature-settings: 'tnum'; position: relative; + display: inline-block; outline: 0; } .ant-select ul, @@ -14315,21 +15618,22 @@ span.ant-radio + * { .ant-select-arrow { display: inline-block; font-style: normal; - vertical-align: -0.125em; + line-height: 0; text-align: center; text-transform: none; - line-height: 0; + vertical-align: -0.125em; text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; position: absolute; top: 50%; right: 11px; - line-height: 1; margin-top: -6px; - transform-origin: 50% 50%; color: rgba(0, 0, 0, 0.25); font-size: 12px; + line-height: 1; + -webkit-transform-origin: 50% 50%; + transform-origin: 50% 50%; } .ant-select-arrow > * { line-height: 1; @@ -14337,28 +15641,32 @@ span.ant-radio + * { .ant-select-arrow svg { display: inline-block; } -.ant-select-arrow:before { +.ant-select-arrow::before { display: none; } .ant-select-arrow .ant-select-arrow-icon { display: block; } .ant-select-arrow .ant-select-arrow-icon svg { + -webkit-transition: -webkit-transform 0.3s; + transition: -webkit-transform 0.3s; transition: transform 0.3s; + transition: transform 0.3s, -webkit-transform 0.3s; } .ant-select-selection { - outline: none; - -webkit-user-select: none; - -moz-user-select: none; - -ms-user-select: none; - user-select: none; - box-sizing: border-box; display: block; + box-sizing: border-box; background-color: #fff; - border-radius: 5px; border: 1px solid #d9d9d9; border-top-width: 1.02px; + border-radius: 5px; + outline: none; + -webkit-transition: all 0.3s cubic-bezier(0.645, 0.045, 0.355, 1); transition: all 0.3s cubic-bezier(0.645, 0.045, 0.355, 1); + -webkit-user-select: none; + -moz-user-select: none; + -ms-user-select: none; + user-select: none; } .ant-select-selection:hover { border-color: #f2726f; @@ -14368,33 +15676,33 @@ span.ant-radio + * { .ant-select-selection:focus, .ant-select-selection:active { border-color: #f2726f; + border-right-width: 1px !important; outline: 0; box-shadow: 0 0 0 2px rgba(230, 68, 72, 0.2); - border-right-width: 1px !important; } .ant-select-selection__clear { - display: inline-block; - font-style: normal; - vertical-align: baseline; - text-align: center; - text-transform: none; - text-rendering: auto; - opacity: 0; position: absolute; + top: 50%; right: 11px; z-index: 1; - background: #fff; - top: 50%; - font-size: 12px; - color: rgba(0, 0, 0, 0.25); + display: inline-block; width: 12px; height: 12px; margin-top: -6px; + color: rgba(0, 0, 0, 0.25); + font-size: 12px; + font-style: normal; line-height: 12px; + text-align: center; + text-transform: none; + background: #fff; cursor: pointer; + opacity: 0; + -webkit-transition: color 0.3s ease, opacity 0.15s ease; transition: color 0.3s ease, opacity 0.15s ease; + text-rendering: auto; } -.ant-select-selection__clear:before { +.ant-select-selection__clear::before { display: block; } .ant-select-selection__clear:hover { @@ -14405,11 +15713,11 @@ span.ant-radio + * { } .ant-select-selection-selected-value { float: left; - overflow: hidden; - text-overflow: ellipsis; - white-space: nowrap; max-width: 100%; padding-right: 20px; + overflow: hidden; + white-space: nowrap; + text-overflow: ellipsis; } .ant-select-no-arrow .ant-select-selection-selected-value { padding-right: 0; @@ -14433,31 +15741,31 @@ span.ant-radio + * { pointer-events: none; } .ant-select-disabled .ant-select-selection--multiple .ant-select-selection__choice { - background: #f5f5f5; - color: #aaa; padding-right: 10px; + color: rgba(0, 0, 0, 0.33); + background: #f5f5f5; } .ant-select-disabled .ant-select-selection--multiple .ant-select-selection__choice__remove { display: none; } .ant-select-selection--single { - height: 32px; position: relative; + height: 32px; cursor: pointer; } .ant-select-selection__rendered { + position: relative; display: block; - margin-left: 11px; margin-right: 11px; - position: relative; + margin-left: 11px; line-height: 30px; } -.ant-select-selection__rendered:after { - content: '.'; - visibility: hidden; - pointer-events: none; +.ant-select-selection__rendered::after { display: inline-block; width: 0; + visibility: hidden; + pointer-events: none; + content: '.'; } .ant-select-lg { font-size: 16px; @@ -14482,8 +15790,8 @@ span.ant-radio + * { height: 24px; } .ant-select-sm .ant-select-selection__rendered { - line-height: 22px; margin: 0 7px; + line-height: 22px; } .ant-select-sm .ant-select-selection--multiple { min-height: 24px; @@ -14507,24 +15815,24 @@ span.ant-radio + * { color: rgba(0, 0, 0, 0.25); } .ant-select-search__field__wrap { - display: inline-block; position: relative; + display: inline-block; } .ant-select-selection__placeholder, .ant-select-search__field__placeholder { position: absolute; top: 50%; - left: 0; right: 9px; - color: #bfbfbf; - line-height: 20px; - height: 20px; + left: 0; max-width: 100%; + height: 20px; margin-top: -10px; overflow: hidden; - text-overflow: ellipsis; + color: #bfbfbf; + line-height: 20px; white-space: nowrap; text-align: left; + text-overflow: ellipsis; } .ant-select-search__field__placeholder { left: 12px; @@ -14534,123 +15842,127 @@ span.ant-radio + * { top: 0; left: 0; white-space: pre; - pointer-events: none; opacity: 0; + pointer-events: none; } .ant-select-search--inline { position: absolute; - height: 100%; width: 100%; + height: 100%; } .ant-select-search--inline .ant-select-search__field__wrap { width: 100%; height: 100%; } .ant-select-search--inline .ant-select-search__field { - border-width: 0; - font-size: 100%; - height: 100%; width: 100%; + height: 100%; + font-size: 100%; + line-height: 1; background: transparent; - outline: 0; + border-width: 0; border-radius: 5px; - line-height: 1; + outline: 0; } .ant-select-search--inline > i { float: right; } .ant-select-selection--multiple { min-height: 32px; - cursor: text; padding-bottom: 3px; + cursor: text; zoom: 1; } -.ant-select-selection--multiple:before, -.ant-select-selection--multiple:after { +.ant-select-selection--multiple::before, +.ant-select-selection--multiple::after { content: ''; display: table; } -.ant-select-selection--multiple:after { +.ant-select-selection--multiple::after { clear: both; } -.ant-select-selection--multiple:before, -.ant-select-selection--multiple:after { +.ant-select-selection--multiple::before, +.ant-select-selection--multiple::after { content: ''; display: table; } -.ant-select-selection--multiple:after { +.ant-select-selection--multiple::after { clear: both; } .ant-select-selection--multiple .ant-select-search--inline { - float: left; position: static; + float: left; width: auto; - padding: 0; max-width: 100%; + padding: 0; } .ant-select-selection--multiple .ant-select-search--inline .ant-select-search__field { - max-width: 100%; width: 0.75em; + max-width: 100%; } .ant-select-selection--multiple .ant-select-selection__rendered { - margin-left: 5px; - margin-bottom: -3px; height: auto; + margin-bottom: -3px; + margin-left: 5px; } .ant-select-selection--multiple .ant-select-selection__placeholder { margin-left: 6px; } .ant-select-selection--multiple > ul > li, .ant-select-selection--multiple .ant-select-selection__rendered > ul > li { - margin-top: 3px; height: 24px; + margin-top: 3px; line-height: 22px; } .ant-select-selection--multiple .ant-select-selection__choice { + position: relative; + float: left; + max-width: 99%; + margin-right: 4px; + padding: 0 20px 0 10px; + overflow: hidden; color: rgba(0, 0, 0, 0.65); background-color: #fafafa; border: 1px solid #e8e8e8; border-radius: 2px; cursor: default; - float: left; - margin-right: 4px; - max-width: 99%; - position: relative; - overflow: hidden; + -webkit-transition: padding 0.3s cubic-bezier(0.645, 0.045, 0.355, 1); transition: padding 0.3s cubic-bezier(0.645, 0.045, 0.355, 1); - padding: 0 20px 0 10px; } .ant-select-selection--multiple .ant-select-selection__choice__disabled { padding: 0 10px; } .ant-select-selection--multiple .ant-select-selection__choice__content { display: inline-block; - white-space: nowrap; + max-width: 100%; overflow: hidden; + white-space: nowrap; text-overflow: ellipsis; - max-width: 100%; + -webkit-transition: margin 0.3s cubic-bezier(0.645, 0.045, 0.355, 1); transition: margin 0.3s cubic-bezier(0.645, 0.045, 0.355, 1); } .ant-select-selection--multiple .ant-select-selection__choice__remove { font-style: normal; - vertical-align: -0.125em; + line-height: 0; text-align: center; text-transform: none; - line-height: 0; + vertical-align: -0.125em; text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; + position: absolute; + right: 4px; color: rgba(0, 0, 0, 0.45); + font-weight: bold; line-height: inherit; cursor: pointer; - font-weight: bold; + -webkit-transition: all 0.3s; transition: all 0.3s; display: inline-block; font-size: 12px; font-size: 10px \9; - transform: scale(0.83333333) rotate(0deg); - position: absolute; - right: 4px; + -webkit-transform: scale(0.83333333) rotate(0deg); + transform: scale(0.83333333) rotate(0deg); } .ant-select-selection--multiple .ant-select-selection__choice__remove > * { line-height: 1; @@ -14658,7 +15970,7 @@ span.ant-radio + * { .ant-select-selection--multiple .ant-select-selection__choice__remove svg { display: inline-block; } -.ant-select-selection--multiple .ant-select-selection__choice__remove:before { +.ant-select-selection--multiple .ant-select-selection__choice__remove::before { display: none; } .ant-select-selection--multiple .ant-select-selection__choice__remove .ant-select-selection--multiple .ant-select-selection__choice__remove-icon { @@ -14668,7 +15980,7 @@ span.ant-radio + * { font-size: 12px; } .ant-select-selection--multiple .ant-select-selection__choice__remove:hover { - color: #404040; + color: rgba(0, 0, 0, 0.75); } .ant-select-selection--multiple .ant-select-selection__clear { top: 16px; @@ -14680,56 +15992,58 @@ span.ant-radio + * { margin-right: 20px; } .ant-select-open .ant-select-arrow-icon svg { - transform: rotate(180deg); + -webkit-transform: rotate(180deg); + transform: rotate(180deg); } .ant-select-open .ant-select-selection { border-color: #f2726f; + border-right-width: 1px !important; outline: 0; box-shadow: 0 0 0 2px rgba(230, 68, 72, 0.2); - border-right-width: 1px !important; } .ant-select-combobox .ant-select-arrow { display: none; } .ant-select-combobox .ant-select-search--inline { - height: 100%; - width: 100%; float: none; + width: 100%; + height: 100%; } .ant-select-combobox .ant-select-search__field__wrap { width: 100%; height: 100%; } .ant-select-combobox .ant-select-search__field { - width: 100%; - height: 100%; position: relative; z-index: 1; - transition: all 0.3s cubic-bezier(0.645, 0.045, 0.355, 1), height 0s; + width: 100%; + height: 100%; box-shadow: none; + -webkit-transition: all 0.3s cubic-bezier(0.645, 0.045, 0.355, 1), height 0s; + transition: all 0.3s cubic-bezier(0.645, 0.045, 0.355, 1), height 0s; } .ant-select-combobox.ant-select-allow-clear .ant-select-selection:hover .ant-select-selection__rendered { margin-right: 20px; } .ant-select-dropdown { - font-family: "Chinese Quote", -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"; - font-variant: tabular-nums; - line-height: 1.5; - color: rgba(0, 0, 0, 0.65); margin: 0; padding: 0; + color: rgba(0, 0, 0, 0.65); + font-variant: tabular-nums; + line-height: 1.5; list-style: none; + font-feature-settings: 'tnum'; + position: absolute; + top: -9999px; + left: -9999px; + z-index: 1050; + box-sizing: border-box; + font-size: 14px; font-variant: initial; background-color: #fff; - box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15); border-radius: 5px; - box-sizing: border-box; - z-index: 1050; - left: -9999px; - top: -9999px; - position: absolute; outline: none; - font-size: 14px; + box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15); } .ant-select-dropdown.slide-up-enter.slide-up-enter-active.ant-select-dropdown-placement-bottomLeft, .ant-select-dropdown.slide-up-appear.slide-up-appear-active.ant-select-dropdown-placement-bottomLeft { @@ -14753,12 +16067,12 @@ span.ant-radio + * { display: none; } .ant-select-dropdown-menu { - outline: none; + max-height: 250px; margin-bottom: 0; padding-left: 0; - list-style: none; - max-height: 250px; overflow: auto; + list-style: none; + outline: none; } .ant-select-dropdown-menu-item-group-list { margin: 0; @@ -14768,11 +16082,11 @@ span.ant-radio + * { padding-left: 20px; } .ant-select-dropdown-menu-item-group-title { - color: rgba(0, 0, 0, 0.45); - padding: 0 12px; height: 32px; - line-height: 32px; + padding: 0 12px; + color: rgba(0, 0, 0, 0.45); font-size: 12px; + line-height: 32px; } .ant-select-dropdown-menu-item-group-list .ant-select-dropdown-menu-item:first-child:not(:last-child), .ant-select-dropdown-menu-item-group:not(:last-child) .ant-select-dropdown-menu-item-group-list .ant-select-dropdown-menu-item:last-child { @@ -14782,13 +16096,14 @@ span.ant-radio + * { position: relative; display: block; padding: 5px 12px; - line-height: 22px; - font-weight: normal; + overflow: hidden; color: rgba(0, 0, 0, 0.65); + font-weight: normal; + line-height: 22px; white-space: nowrap; - cursor: pointer; - overflow: hidden; text-overflow: ellipsis; + cursor: pointer; + -webkit-transition: background 0.3s ease; transition: background 0.3s ease; } .ant-select-dropdown-menu-item:hover { @@ -14811,9 +16126,9 @@ span.ant-radio + * { } .ant-select-dropdown-menu-item-selected, .ant-select-dropdown-menu-item-selected:hover { - background-color: #fafafa; - font-weight: 600; color: rgba(0, 0, 0, 0.65); + font-weight: 600; + background-color: #fafafa; } .ant-select-dropdown-menu-item-active { background-color: #fff2f0; @@ -14822,39 +16137,35 @@ span.ant-radio + * { height: 1px; margin: 1px 0; overflow: hidden; - background-color: #e8e8e8; line-height: 0; + background-color: #e8e8e8; } .ant-select-dropdown.ant-select-dropdown--multiple .ant-select-dropdown-menu-item { padding-right: 32px; } .ant-select-dropdown.ant-select-dropdown--multiple .ant-select-dropdown-menu-item .ant-select-selected-icon { - color: transparent; - display: inline-block; - font-size: 12px; - font-size: 10px \9; - transform: scale(0.83333333) rotate(0deg); - transition: all 0.2s ease; position: absolute; top: 50%; - transform: translateY(-50%); right: 12px; + color: transparent; font-weight: bold; - text-shadow: 0 0.1px 0, 0.1px 0 0, 0 -0.1px 0, -0.1px 0; -} -:root .ant-select-dropdown.ant-select-dropdown--multiple .ant-select-dropdown-menu-item .ant-select-selected-icon { font-size: 12px; + text-shadow: 0 0.1px 0, 0.1px 0 0, 0 -0.1px 0, -0.1px 0; + -webkit-transform: translateY(-50%); + transform: translateY(-50%); + -webkit-transition: all 0.2s; + transition: all 0.2s; } .ant-select-dropdown.ant-select-dropdown--multiple .ant-select-dropdown-menu-item:hover .ant-select-selected-icon { - color: #ddd; + color: rgba(0, 0, 0, 0.87); } .ant-select-dropdown.ant-select-dropdown--multiple .ant-select-dropdown-menu-item-disabled .ant-select-selected-icon { display: none; } .ant-select-dropdown.ant-select-dropdown--multiple .ant-select-dropdown-menu-item-selected .ant-select-selected-icon, .ant-select-dropdown.ant-select-dropdown--multiple .ant-select-dropdown-menu-item-selected:hover .ant-select-selected-icon { - color: #E64448; display: inline-block; + color: #E64448; } .ant-select-dropdown-container-open .ant-select-dropdown, .ant-select-dropdown-open .ant-select-dropdown { @@ -14866,8 +16177,8 @@ span.ant-radio + * { } .ant-skeleton-header { display: table-cell; - vertical-align: top; padding-right: 16px; + vertical-align: top; } .ant-skeleton-header .ant-skeleton-avatar { display: inline-block; @@ -14898,23 +16209,23 @@ span.ant-radio + * { } .ant-skeleton-content { display: table-cell; - vertical-align: top; width: 100%; + vertical-align: top; } .ant-skeleton-content .ant-skeleton-title { - margin-top: 16px; - height: 16px; width: 100%; + height: 16px; + margin-top: 16px; background: #f2f2f2; } .ant-skeleton-content .ant-skeleton-title + .ant-skeleton-paragraph { margin-top: 24px; } .ant-skeleton-content .ant-skeleton-paragraph > li { + width: 100%; height: 16px; - background: #f2f2f2; list-style: none; - width: 100%; + background: #f2f2f2; } .ant-skeleton-content .ant-skeleton-paragraph > li:last-child:not(:first-child):not(:nth-child(2)) { width: 61%; @@ -14930,16 +16241,18 @@ span.ant-radio + * { } .ant-skeleton.ant-skeleton-active .ant-skeleton-content .ant-skeleton-title, .ant-skeleton.ant-skeleton-active .ant-skeleton-content .ant-skeleton-paragraph > li { + background: -webkit-gradient(linear, left top, right top, color-stop(25%, #f2f2f2), color-stop(37%, #e6e6e6), color-stop(63%, #f2f2f2)); background: linear-gradient(90deg, #f2f2f2 25%, #e6e6e6 37%, #f2f2f2 63%); + background-size: 400% 100%; -webkit-animation: ant-skeleton-loading 1.4s ease infinite; animation: ant-skeleton-loading 1.4s ease infinite; - background-size: 400% 100%; } .ant-skeleton.ant-skeleton-active .ant-skeleton-avatar { + background: -webkit-gradient(linear, left top, right top, color-stop(25%, #f2f2f2), color-stop(37%, #e6e6e6), color-stop(63%, #f2f2f2)); background: linear-gradient(90deg, #f2f2f2 25%, #e6e6e6 37%, #f2f2f2 63%); + background-size: 400% 100%; -webkit-animation: ant-skeleton-loading 1.4s ease infinite; animation: ant-skeleton-loading 1.4s ease infinite; - background-size: 400% 100%; } @-webkit-keyframes ant-skeleton-loading { 0% { @@ -14958,19 +16271,19 @@ span.ant-radio + * { } } .ant-slider { - font-family: "Chinese Quote", -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"; - font-size: 14px; - font-variant: tabular-nums; - line-height: 1.5; - color: rgba(0, 0, 0, 0.65); box-sizing: border-box; margin: 0; padding: 0; + color: rgba(0, 0, 0, 0.65); + font-size: 14px; + font-variant: tabular-nums; + line-height: 1.5; list-style: none; + font-feature-settings: 'tnum'; position: relative; + height: 12px; margin: 14px 6px 10px; padding: 4px 0; - height: 12px; cursor: pointer; touch-action: none; } @@ -14981,15 +16294,15 @@ span.ant-radio + * { padding: 0 4px; } .ant-slider-vertical .ant-slider-rail { - height: 100%; width: 4px; + height: 100%; } .ant-slider-vertical .ant-slider-track { width: 4px; } .ant-slider-vertical .ant-slider-handle { - margin-left: -5px; margin-bottom: -7px; + margin-left: -5px; } .ant-slider-vertical .ant-slider-mark { top: 0; @@ -15017,34 +16330,39 @@ span.ant-radio + * { position: absolute; width: 100%; height: 4px; - border-radius: 2px; background-color: #f5f5f5; + border-radius: 2px; + -webkit-transition: background-color 0.3s; transition: background-color 0.3s; } .ant-slider-track { position: absolute; height: 4px; + background-color: #ffccc7; border-radius: 5px; - background-color: #f2726f; + -webkit-transition: background-color 0.3s ease; transition: background-color 0.3s ease; } .ant-slider-handle { position: absolute; - margin-left: -7px; - margin-top: -5px; width: 14px; height: 14px; - cursor: pointer; - border-radius: 50%; - border: solid 2px #f2726f; + margin-top: -5px; + margin-left: -7px; background-color: #fff; + border: solid 2px #ffccc7; + border-radius: 50%; box-shadow: 0; + cursor: pointer; + -webkit-transition: border-color 0.3s, box-shadow 0.6s, -webkit-transform 0.3s cubic-bezier(0.18, 0.89, 0.32, 1.28); + transition: border-color 0.3s, box-shadow 0.6s, -webkit-transform 0.3s cubic-bezier(0.18, 0.89, 0.32, 1.28); transition: border-color 0.3s, box-shadow 0.6s, transform 0.3s cubic-bezier(0.18, 0.89, 0.32, 1.28); + transition: border-color 0.3s, box-shadow 0.6s, transform 0.3s cubic-bezier(0.18, 0.89, 0.32, 1.28), -webkit-transform 0.3s cubic-bezier(0.18, 0.89, 0.32, 1.28); } .ant-slider-handle:focus { border-color: #eb696d; - box-shadow: 0 0 0 5px rgba(230, 68, 72, 0.2); outline: none; + box-shadow: 0 0 0 5px rgba(230, 68, 72, 0.2); } .ant-slider-handle.ant-tooltip-open { border-color: #E64448; @@ -15053,10 +16371,10 @@ span.ant-radio + * { background-color: #e1e1e1; } .ant-slider:hover .ant-slider-track { - background-color: #E64448; + background-color: #ffa39e; } .ant-slider:hover .ant-slider-handle:not(.ant-tooltip-open) { - border-color: #E64448; + border-color: #ffa39e; } .ant-slider-mark { position: absolute; @@ -15068,10 +16386,9 @@ span.ant-radio + * { .ant-slider-mark-text { position: absolute; display: inline-block; - vertical-align: middle; + color: rgba(0, 0, 0, 0.45); text-align: center; cursor: pointer; - color: rgba(0, 0, 0, 0.45); } .ant-slider-mark-text-active { color: rgba(0, 0, 0, 0.65); @@ -15085,14 +16402,13 @@ span.ant-radio + * { .ant-slider-dot { position: absolute; top: -2px; - margin-left: -4px; width: 8px; height: 8px; - border: 2px solid #e8e8e8; + margin-left: -4px; background-color: #fff; - cursor: pointer; + border: 2px solid #e8e8e8; border-radius: 50%; - vertical-align: middle; + cursor: pointer; } .ant-slider-dot:first-child { margin-left: -4px; @@ -15101,7 +16417,7 @@ span.ant-radio + * { margin-left: -4px; } .ant-slider-dot-active { - border-color: #f2726f; + border-color: #f3a2a4; } .ant-slider-disabled { cursor: not-allowed; @@ -15111,48 +16427,51 @@ span.ant-radio + * { } .ant-slider-disabled .ant-slider-handle, .ant-slider-disabled .ant-slider-dot { - border-color: rgba(0, 0, 0, 0.25) !important; background-color: #fff; - cursor: not-allowed; + border-color: rgba(0, 0, 0, 0.25) !important; box-shadow: none; + cursor: not-allowed; } .ant-slider-disabled .ant-slider-mark-text, .ant-slider-disabled .ant-slider-dot { cursor: not-allowed !important; } .ant-spin { - font-family: "Chinese Quote", -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"; - font-size: 14px; - font-variant: tabular-nums; - line-height: 1.5; - color: rgba(0, 0, 0, 0.65); box-sizing: border-box; margin: 0; padding: 0; + color: rgba(0, 0, 0, 0.65); + font-size: 14px; + font-variant: tabular-nums; + line-height: 1.5; list-style: none; + font-feature-settings: 'tnum'; + position: absolute; + display: none; color: #E64448; - vertical-align: middle; text-align: center; + vertical-align: middle; opacity: 0; - position: absolute; + -webkit-transition: -webkit-transform 0.3s cubic-bezier(0.78, 0.14, 0.15, 0.86); + transition: -webkit-transform 0.3s cubic-bezier(0.78, 0.14, 0.15, 0.86); transition: transform 0.3s cubic-bezier(0.78, 0.14, 0.15, 0.86); - display: none; + transition: transform 0.3s cubic-bezier(0.78, 0.14, 0.15, 0.86), -webkit-transform 0.3s cubic-bezier(0.78, 0.14, 0.15, 0.86); } .ant-spin-spinning { - opacity: 1; position: static; display: inline-block; + opacity: 1; } .ant-spin-nested-loading { position: relative; } .ant-spin-nested-loading > div > .ant-spin { - display: block; position: absolute; + z-index: 4; + display: block; + width: 100%; height: 100%; max-height: 400px; - width: 100%; - z-index: 4; } .ant-spin-nested-loading > div > .ant-spin .ant-spin-dot { position: absolute; @@ -15190,34 +16509,37 @@ span.ant-radio + * { } .ant-spin-container { position: relative; + -webkit-transition: opacity 0.3s; transition: opacity 0.3s; } -.ant-spin-container:after { - content: ''; +.ant-spin-container::after { position: absolute; - left: 0; - right: 0; top: 0; + right: 0; bottom: 0; - background: #fff; - opacity: 0; - pointer-events: none; - transition: all 0.3s; + left: 0; + z-index: 10; display: none \9; - height: 100%; width: 100%; - z-index: 10; + height: 100%; + background: #fff; + opacity: 0; + -webkit-transition: all 0.3s; + transition: all 0.3s; + pointer-events: none; + content: ''; } .ant-spin-blur { - pointer-events: none; + clear: both; + overflow: hidden; + opacity: 0.5; -webkit-user-select: none; -moz-user-select: none; -ms-user-select: none; user-select: none; - overflow: hidden; - opacity: 0.5; + pointer-events: none; } -.ant-spin-blur:after { +.ant-spin-blur::after { opacity: 0.4; pointer-events: auto; } @@ -15232,25 +16554,27 @@ span.ant-radio + * { height: 20px; } .ant-spin-dot i { + position: absolute; + display: block; width: 9px; height: 9px; - border-radius: 100%; background-color: #E64448; - transform: scale(0.75); - display: block; - position: absolute; + border-radius: 100%; + -webkit-transform: scale(0.75); + transform: scale(0.75); + -webkit-transform-origin: 50% 50%; + transform-origin: 50% 50%; opacity: 0.3; -webkit-animation: antSpinMove 1s infinite linear alternate; animation: antSpinMove 1s infinite linear alternate; - transform-origin: 50% 50%; } .ant-spin-dot i:nth-child(1) { - left: 0; top: 0; + left: 0; } .ant-spin-dot i:nth-child(2) { - right: 0; top: 0; + right: 0; -webkit-animation-delay: 0.4s; animation-delay: 0.4s; } @@ -15261,13 +16585,14 @@ span.ant-radio + * { animation-delay: 0.8s; } .ant-spin-dot i:nth-child(4) { - left: 0; bottom: 0; + left: 0; -webkit-animation-delay: 1.2s; animation-delay: 1.2s; } .ant-spin-dot-spin { - transform: rotate(45deg); + -webkit-transform: rotate(45deg); + transform: rotate(45deg); -webkit-animation: antRotate 1.2s infinite linear; animation: antRotate 1.2s infinite linear; } @@ -15311,40 +16636,78 @@ span.ant-radio + * { } @-webkit-keyframes antRotate { to { - transform: rotate(405deg); + -webkit-transform: rotate(405deg); + transform: rotate(405deg); } } @keyframes antRotate { to { - transform: rotate(405deg); + -webkit-transform: rotate(405deg); + transform: rotate(405deg); } } -.ant-steps { - font-family: "Chinese Quote", -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"; +.ant-statistic { + box-sizing: border-box; + margin: 0; + padding: 0; + color: rgba(0, 0, 0, 0.65); font-size: 14px; font-variant: tabular-nums; line-height: 1.5; - color: rgba(0, 0, 0, 0.65); + list-style: none; + font-feature-settings: 'tnum'; +} +.ant-statistic-title { + margin-bottom: 4px; + font-size: 14px; +} +.ant-statistic-content { + font-size: 24px; + font-family: Tahoma, 'Helvetica Neue', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', 'Helvetica Neue', Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol'; +} +.ant-statistic-content-value-decimal { + font-size: 16px; +} +.ant-statistic-content-prefix, +.ant-statistic-content-suffix { + display: inline-block; +} +.ant-statistic-content-prefix { + margin-right: 4px; +} +.ant-statistic-content-suffix { + margin-left: 4px; + font-size: 16px; +} +.ant-steps { box-sizing: border-box; margin: 0; padding: 0; + color: rgba(0, 0, 0, 0.65); + font-size: 14px; + font-variant: tabular-nums; + line-height: 1.5; list-style: none; - font-size: 0; - width: 100%; + font-feature-settings: 'tnum'; + display: -webkit-box; display: flex; + width: 100%; + font-size: 0; } .ant-steps-item { position: relative; display: inline-block; - vertical-align: top; - flex: 1; + -webkit-box-flex: 1; + flex: 1; overflow: hidden; + vertical-align: top; } .ant-steps-item:last-child { - flex: none; + -webkit-box-flex: 0; + flex: none; } .ant-steps-item:last-child .ant-steps-item-tail, -.ant-steps-item:last-child .ant-steps-item-title:after { +.ant-steps-item:last-child .ant-steps-item-title::after { display: none; } .ant-steps-item-icon, @@ -15353,64 +16716,66 @@ span.ant-radio + * { vertical-align: top; } .ant-steps-item-icon { - border: 1px solid rgba(0, 0, 0, 0.25); width: 32px; height: 32px; + margin-right: 8px; + font-size: 16px; + font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', 'Helvetica Neue', Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol'; line-height: 32px; text-align: center; + border: 1px solid rgba(0, 0, 0, 0.25); border-radius: 32px; - font-size: 16px; - margin-right: 8px; + -webkit-transition: background-color 0.3s, border-color 0.3s; transition: background-color 0.3s, border-color 0.3s; - font-family: "Chinese Quote", -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"; } .ant-steps-item-icon > .ant-steps-icon { - line-height: 1; + position: relative; top: -1px; color: #E64448; - position: relative; + line-height: 1; } .ant-steps-item-tail { position: absolute; + top: 12px; left: 0; width: 100%; - top: 12px; padding: 0 10px; } -.ant-steps-item-tail:after { - content: ''; +.ant-steps-item-tail::after { display: inline-block; - background: #e8e8e8; + width: 100%; height: 1px; + background: #e8e8e8; border-radius: 1px; - width: 100%; + -webkit-transition: background 0.3s; transition: background 0.3s; + content: ''; } .ant-steps-item-title { - font-size: 16px; - color: rgba(0, 0, 0, 0.65); + position: relative; display: inline-block; padding-right: 16px; - position: relative; + color: rgba(0, 0, 0, 0.65); + font-size: 16px; line-height: 32px; } -.ant-steps-item-title:after { - content: ''; - height: 1px; - width: 9999px; - background: #e8e8e8; - display: block; +.ant-steps-item-title::after { position: absolute; top: 16px; left: 100%; + display: block; + width: 9999px; + height: 1px; + background: #e8e8e8; + content: ''; } .ant-steps-item-description { - font-size: 14px; color: rgba(0, 0, 0, 0.45); + font-size: 14px; } .ant-steps-item-wait .ant-steps-item-icon { - border-color: rgba(0, 0, 0, 0.25); background-color: #fff; + border-color: rgba(0, 0, 0, 0.25); } .ant-steps-item-wait .ant-steps-item-icon > .ant-steps-icon { color: rgba(0, 0, 0, 0.25); @@ -15421,18 +16786,18 @@ span.ant-radio + * { .ant-steps-item-wait > .ant-steps-item-content > .ant-steps-item-title { color: rgba(0, 0, 0, 0.45); } -.ant-steps-item-wait > .ant-steps-item-content > .ant-steps-item-title:after { +.ant-steps-item-wait > .ant-steps-item-content > .ant-steps-item-title::after { background-color: #e8e8e8; } .ant-steps-item-wait > .ant-steps-item-content > .ant-steps-item-description { color: rgba(0, 0, 0, 0.45); } -.ant-steps-item-wait > .ant-steps-item-tail:after { +.ant-steps-item-wait > .ant-steps-item-tail::after { background-color: #e8e8e8; } .ant-steps-item-process .ant-steps-item-icon { - border-color: #E64448; background-color: #fff; + border-color: #E64448; } .ant-steps-item-process .ant-steps-item-icon > .ant-steps-icon { color: #E64448; @@ -15443,13 +16808,13 @@ span.ant-radio + * { .ant-steps-item-process > .ant-steps-item-content > .ant-steps-item-title { color: rgba(0, 0, 0, 0.85); } -.ant-steps-item-process > .ant-steps-item-content > .ant-steps-item-title:after { +.ant-steps-item-process > .ant-steps-item-content > .ant-steps-item-title::after { background-color: #e8e8e8; } .ant-steps-item-process > .ant-steps-item-content > .ant-steps-item-description { color: rgba(0, 0, 0, 0.65); } -.ant-steps-item-process > .ant-steps-item-tail:after { +.ant-steps-item-process > .ant-steps-item-tail::after { background-color: #e8e8e8; } .ant-steps-item-process .ant-steps-item-icon { @@ -15462,8 +16827,8 @@ span.ant-radio + * { font-weight: 500; } .ant-steps-item-finish .ant-steps-item-icon { - border-color: #E64448; background-color: #fff; + border-color: #E64448; } .ant-steps-item-finish .ant-steps-item-icon > .ant-steps-icon { color: #E64448; @@ -15474,18 +16839,18 @@ span.ant-radio + * { .ant-steps-item-finish > .ant-steps-item-content > .ant-steps-item-title { color: rgba(0, 0, 0, 0.65); } -.ant-steps-item-finish > .ant-steps-item-content > .ant-steps-item-title:after { +.ant-steps-item-finish > .ant-steps-item-content > .ant-steps-item-title::after { background-color: #E64448; } .ant-steps-item-finish > .ant-steps-item-content > .ant-steps-item-description { color: rgba(0, 0, 0, 0.45); } -.ant-steps-item-finish > .ant-steps-item-tail:after { +.ant-steps-item-finish > .ant-steps-item-tail::after { background-color: #E64448; } .ant-steps-item-error .ant-steps-item-icon { - border-color: #f5222d; background-color: #fff; + border-color: #f5222d; } .ant-steps-item-error .ant-steps-item-icon > .ant-steps-icon { color: #f5222d; @@ -15496,16 +16861,16 @@ span.ant-radio + * { .ant-steps-item-error > .ant-steps-item-content > .ant-steps-item-title { color: #f5222d; } -.ant-steps-item-error > .ant-steps-item-content > .ant-steps-item-title:after { +.ant-steps-item-error > .ant-steps-item-content > .ant-steps-item-title::after { background-color: #e8e8e8; } .ant-steps-item-error > .ant-steps-item-content > .ant-steps-item-description { color: #f5222d; } -.ant-steps-item-error > .ant-steps-item-tail:after { +.ant-steps-item-error > .ant-steps-item-tail::after { background-color: #e8e8e8; } -.ant-steps-item.ant-steps-next-error .ant-steps-item-title:after { +.ant-steps-item.ant-steps-next-error .ant-steps-item-title::after { background: #f5222d; } .ant-steps-horizontal:not(.ant-steps-label-vertical) .ant-steps-item { @@ -15526,22 +16891,24 @@ span.ant-radio + * { white-space: normal; } .ant-steps-item-custom .ant-steps-item-icon { + height: auto; background: none; border: 0; - width: auto; - height: auto; } .ant-steps-item-custom .ant-steps-item-icon > .ant-steps-icon { - font-size: 24px; - line-height: 32px; top: 0; left: 0.5px; width: 32px; height: 32px; + font-size: 24px; + line-height: 32px; } .ant-steps-item-custom.ant-steps-item-process .ant-steps-item-icon > .ant-steps-icon { color: #E64448; } +.ant-steps:not(.ant-steps-vertical) .ant-steps-item-custom .ant-steps-item-icon { + width: auto; +} .ant-steps-small.ant-steps-horizontal:not(.ant-steps-label-vertical) .ant-steps-item { margin-right: 12px; } @@ -15551,22 +16918,22 @@ span.ant-radio + * { .ant-steps-small .ant-steps-item-icon { width: 24px; height: 24px; + font-size: 12px; line-height: 24px; text-align: center; border-radius: 24px; - font-size: 12px; } .ant-steps-small .ant-steps-item-title { + padding-right: 12px; font-size: 14px; line-height: 24px; - padding-right: 12px; } -.ant-steps-small .ant-steps-item-title:after { +.ant-steps-small .ant-steps-item-title::after { top: 12px; } .ant-steps-small .ant-steps-item-description { - font-size: 14px; color: rgba(0, 0, 0, 0.45); + font-size: 14px; } .ant-steps-small .ant-steps-item-tail { top: 8px; @@ -15576,14 +16943,15 @@ span.ant-radio + * { width: inherit; height: inherit; line-height: inherit; - border-radius: 0; - border: 0; background: none; + border: 0; + border-radius: 0; } .ant-steps-small .ant-steps-item-custom .ant-steps-item-icon > .ant-steps-icon { font-size: 24px; line-height: 24px; - transform: none; + -webkit-transform: none; + transform: none; } .ant-steps-vertical { display: block; @@ -15597,9 +16965,9 @@ span.ant-radio + * { margin-right: 16px; } .ant-steps-vertical .ant-steps-item-content { + display: block; min-height: 48px; overflow: hidden; - display: block; } .ant-steps-vertical .ant-steps-item-title { line-height: 32px; @@ -15609,26 +16977,26 @@ span.ant-radio + * { } .ant-steps-vertical > .ant-steps-item > .ant-steps-item-tail { position: absolute; - left: 16px; top: 0; - height: 100%; + left: 16px; width: 1px; + height: 100%; padding: 38px 0 6px; } -.ant-steps-vertical > .ant-steps-item > .ant-steps-item-tail:after { - height: 100%; +.ant-steps-vertical > .ant-steps-item > .ant-steps-item-tail::after { width: 1px; + height: 100%; } .ant-steps-vertical > .ant-steps-item:not(:last-child) > .ant-steps-item-tail { display: block; } -.ant-steps-vertical > .ant-steps-item > .ant-steps-item-content > .ant-steps-item-title:after { +.ant-steps-vertical > .ant-steps-item > .ant-steps-item-content > .ant-steps-item-title::after { display: none; } .ant-steps-vertical.ant-steps-small .ant-steps-item-tail { position: absolute; - left: 12px; top: 0; + left: 12px; padding: 30px 0 6px; } .ant-steps-vertical.ant-steps-small .ant-steps-item-title { @@ -15647,9 +17015,9 @@ span.ant-radio + * { margin-right: 16px; } .ant-steps-horizontal.ant-steps-label-horizontal .ant-steps-item-content { + display: block; min-height: 48px; overflow: hidden; - display: block; } .ant-steps-horizontal.ant-steps-label-horizontal .ant-steps-item-title { line-height: 32px; @@ -15659,26 +17027,26 @@ span.ant-radio + * { } .ant-steps-horizontal.ant-steps-label-horizontal > .ant-steps-item > .ant-steps-item-tail { position: absolute; - left: 16px; top: 0; - height: 100%; + left: 16px; width: 1px; + height: 100%; padding: 38px 0 6px; } - .ant-steps-horizontal.ant-steps-label-horizontal > .ant-steps-item > .ant-steps-item-tail:after { - height: 100%; + .ant-steps-horizontal.ant-steps-label-horizontal > .ant-steps-item > .ant-steps-item-tail::after { width: 1px; + height: 100%; } .ant-steps-horizontal.ant-steps-label-horizontal > .ant-steps-item:not(:last-child) > .ant-steps-item-tail { display: block; } - .ant-steps-horizontal.ant-steps-label-horizontal > .ant-steps-item > .ant-steps-item-content > .ant-steps-item-title:after { + .ant-steps-horizontal.ant-steps-label-horizontal > .ant-steps-item > .ant-steps-item-content > .ant-steps-item-title::after { display: none; } .ant-steps-horizontal.ant-steps-label-horizontal.ant-steps-small .ant-steps-item-tail { position: absolute; - left: 12px; top: 0; + left: 12px; padding: 30px 0 6px; } .ant-steps-horizontal.ant-steps-label-horizontal.ant-steps-small .ant-steps-item-title { @@ -15689,14 +17057,14 @@ span.ant-radio + * { overflow: visible; } .ant-steps-label-vertical .ant-steps-item-tail { - padding: 0 24px; - margin-left: 48px; + margin-left: 51px; + padding: 3.5px 24px; } .ant-steps-label-vertical .ant-steps-item-content { display: block; - text-align: center; - margin-top: 8px; width: 104px; + margin-top: 8px; + text-align: center; } .ant-steps-label-vertical .ant-steps-item-icon { display: inline-block; @@ -15705,52 +17073,53 @@ span.ant-radio + * { .ant-steps-label-vertical .ant-steps-item-title { padding-right: 0; } -.ant-steps-label-vertical .ant-steps-item-title:after { +.ant-steps-label-vertical .ant-steps-item-title::after { display: none; } .ant-steps-dot .ant-steps-item-title { line-height: 1.5; } .ant-steps-dot .ant-steps-item-tail { - width: 100%; top: 2px; + width: 100%; margin: 0 0 0 70px; padding: 0; } -.ant-steps-dot .ant-steps-item-tail:after { - height: 3px; +.ant-steps-dot .ant-steps-item-tail::after { width: calc(100% - 20px); + height: 3px; margin-left: 12px; } .ant-steps-dot .ant-steps-item:first-child .ant-steps-icon-dot { left: 2px; } .ant-steps-dot .ant-steps-item-icon { - padding-right: 0; width: 8px; height: 8px; - line-height: 8px; - border: 0; margin-left: 67px; + padding-right: 0; + line-height: 8px; background: transparent; + border: 0; } .ant-steps-dot .ant-steps-item-icon .ant-steps-icon-dot { + position: relative; float: left; width: 100%; height: 100%; border-radius: 100px; - position: relative; + -webkit-transition: all 0.3s; transition: all 0.3s; /* expand hover area */ } -.ant-steps-dot .ant-steps-item-icon .ant-steps-icon-dot:after { - content: ''; - background: rgba(0, 0, 0, 0.001); - width: 60px; - height: 32px; +.ant-steps-dot .ant-steps-item-icon .ant-steps-icon-dot::after { position: absolute; top: -12px; left: -26px; + width: 60px; + height: 32px; + background: rgba(0, 0, 0, 0.001); + content: ''; } .ant-steps-dot .ant-steps-item-content { width: 140px; @@ -15764,13 +17133,13 @@ span.ant-radio + * { top: -1px; } .ant-steps-vertical.ant-steps-dot .ant-steps-item-icon { - margin-left: 0; margin-top: 8px; + margin-left: 0; } .ant-steps-vertical.ant-steps-dot .ant-steps-item-tail { - margin: 0; - left: -9px; top: 2px; + left: -9px; + margin: 0; padding: 22px 0 4px; } .ant-steps-vertical.ant-steps-dot .ant-steps-item:first-child .ant-steps-icon-dot { @@ -15779,26 +17148,60 @@ span.ant-radio + * { .ant-steps-vertical.ant-steps-dot .ant-steps-item-process .ant-steps-icon-dot { left: -2px; } +.ant-steps-flex-not-supported.ant-steps-horizontal.ant-steps-label-horizontal .ant-steps-item { + margin-left: -16px; + padding-left: 16px; + background: #fff; +} +.ant-steps-flex-not-supported.ant-steps-horizontal.ant-steps-label-horizontal.ant-steps-small .ant-steps-item { + margin-left: -12px; + padding-left: 12px; +} +.ant-steps-flex-not-supported.ant-steps-dot .ant-steps-item:last-child { + overflow: hidden; +} +.ant-steps-flex-not-supported.ant-steps-dot .ant-steps-item:last-child .ant-steps-icon-dot::after { + right: -200px; + width: 200px; +} +.ant-steps-flex-not-supported.ant-steps-dot .ant-steps-item .ant-steps-icon-dot::before, +.ant-steps-flex-not-supported.ant-steps-dot .ant-steps-item .ant-steps-icon-dot::after { + position: absolute; + top: 0; + left: -10px; + width: 10px; + height: 8px; + background: #fff; + content: ''; +} +.ant-steps-flex-not-supported.ant-steps-dot .ant-steps-item .ant-steps-icon-dot::after { + right: -10px; + left: auto; +} +.ant-steps-flex-not-supported.ant-steps-dot .ant-steps-item-wait .ant-steps-item-icon > .ant-steps-icon .ant-steps-icon-dot { + background: #ccc; +} .ant-switch { - font-family: "Chinese Quote", -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"; + margin: 0; + padding: 0; + color: rgba(0, 0, 0, 0.65); font-size: 14px; font-variant: tabular-nums; line-height: 1.5; - color: rgba(0, 0, 0, 0.65); - margin: 0; - padding: 0; list-style: none; + font-feature-settings: 'tnum'; position: relative; display: inline-block; box-sizing: border-box; - height: 22px; min-width: 44px; + height: 22px; line-height: 20px; vertical-align: middle; - border-radius: 100px; - border: 1px solid transparent; background-color: rgba(0, 0, 0, 0.25); + border: 1px solid transparent; + border-radius: 100px; cursor: pointer; + -webkit-transition: all 0.36s; transition: all 0.36s; -webkit-user-select: none; -moz-user-select: none; @@ -15806,44 +17209,45 @@ span.ant-radio + * { user-select: none; } .ant-switch-inner { + display: block; + margin-right: 6px; + margin-left: 24px; color: #fff; font-size: 12px; - margin-left: 24px; - margin-right: 6px; - display: block; } .ant-switch-loading-icon, -.ant-switch:after { +.ant-switch::after { position: absolute; + top: 1px; + left: 1px; width: 18px; height: 18px; - left: 1px; - top: 1px; - border-radius: 18px; background-color: #fff; - content: ' '; + border-radius: 18px; cursor: pointer; + -webkit-transition: all 0.36s cubic-bezier(0.78, 0.14, 0.15, 0.86); transition: all 0.36s cubic-bezier(0.78, 0.14, 0.15, 0.86); + content: ' '; } -.ant-switch:after { +.ant-switch::after { box-shadow: 0 2px 4px 0 rgba(0, 35, 11, 0.2); } -.ant-switch:active:before, -.ant-switch:active:after { +.ant-switch:active::before, +.ant-switch:active::after { width: 24px; } .ant-switch-loading-icon { - background: transparent; z-index: 1; display: none; font-size: 12px; + background: transparent; } .ant-switch-loading-icon svg { position: absolute; - left: 0; top: 0; right: 0; bottom: 0; + left: 0; margin: auto; } .ant-switch-loading .ant-switch-loading-icon { @@ -15854,28 +17258,28 @@ span.ant-radio + * { color: #E64448; } .ant-switch:focus { - box-shadow: 0 0 0 2px rgba(230, 68, 72, 0.2); outline: 0; + box-shadow: 0 0 0 2px rgba(230, 68, 72, 0.2); } .ant-switch:focus:hover { box-shadow: none; } .ant-switch-small { - height: 16px; min-width: 28px; + height: 16px; line-height: 14px; } .ant-switch-small .ant-switch-inner { - margin-left: 18px; margin-right: 3px; + margin-left: 18px; font-size: 12px; } -.ant-switch-small:after { +.ant-switch-small::after { width: 12px; height: 12px; } -.ant-switch-small:active:before, -.ant-switch-small:active:after { +.ant-switch-small:active::before, +.ant-switch-small:active::after { width: 16px; } .ant-switch-small .ant-switch-loading-icon { @@ -15883,28 +17287,30 @@ span.ant-radio + * { height: 12px; } .ant-switch-small.ant-switch-checked .ant-switch-inner { - margin-left: 3px; margin-right: 18px; + margin-left: 3px; } .ant-switch-small.ant-switch-checked .ant-switch-loading-icon { left: 100%; margin-left: -13px; } .ant-switch-small.ant-switch-loading .ant-switch-loading-icon { - transform: scale(0.66667); font-weight: bold; + -webkit-transform: scale(0.66667); + transform: scale(0.66667); } .ant-switch-checked { background-color: #E64448; } .ant-switch-checked .ant-switch-inner { - margin-left: 6px; margin-right: 24px; + margin-left: 6px; } -.ant-switch-checked:after { +.ant-switch-checked::after { left: 100%; - transform: translateX(-100%); margin-left: -1px; + -webkit-transform: translateX(-100%); + transform: translateX(-100%); } .ant-switch-checked .ant-switch-loading-icon { left: 100%; @@ -15919,59 +17325,74 @@ span.ant-radio + * { .ant-switch-disabled * { cursor: not-allowed; } +.ant-switch-loading::before, +.ant-switch-disabled::before, +.ant-switch-loading::after, +.ant-switch-disabled::after { + cursor: not-allowed; +} @-webkit-keyframes AntSwitchSmallLoadingCircle { 0% { - transform-origin: 50% 50%; - transform: rotate(0deg) scale(0.66667); + -webkit-transform: rotate(0deg) scale(0.66667); + transform: rotate(0deg) scale(0.66667); + -webkit-transform-origin: 50% 50%; + transform-origin: 50% 50%; } 100% { - transform-origin: 50% 50%; - transform: rotate(360deg) scale(0.66667); + -webkit-transform: rotate(360deg) scale(0.66667); + transform: rotate(360deg) scale(0.66667); + -webkit-transform-origin: 50% 50%; + transform-origin: 50% 50%; } } @keyframes AntSwitchSmallLoadingCircle { 0% { - transform-origin: 50% 50%; - transform: rotate(0deg) scale(0.66667); + -webkit-transform: rotate(0deg) scale(0.66667); + transform: rotate(0deg) scale(0.66667); + -webkit-transform-origin: 50% 50%; + transform-origin: 50% 50%; } 100% { - transform-origin: 50% 50%; - transform: rotate(360deg) scale(0.66667); + -webkit-transform: rotate(360deg) scale(0.66667); + transform: rotate(360deg) scale(0.66667); + -webkit-transform-origin: 50% 50%; + transform-origin: 50% 50%; } } .ant-table-wrapper { zoom: 1; } -.ant-table-wrapper:before, -.ant-table-wrapper:after { +.ant-table-wrapper::before, +.ant-table-wrapper::after { content: ''; display: table; } -.ant-table-wrapper:after { +.ant-table-wrapper::after { clear: both; } -.ant-table-wrapper:before, -.ant-table-wrapper:after { +.ant-table-wrapper::before, +.ant-table-wrapper::after { content: ''; display: table; } -.ant-table-wrapper:after { +.ant-table-wrapper::after { clear: both; } .ant-table { - font-family: "Chinese Quote", -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"; - font-size: 14px; - font-variant: tabular-nums; - line-height: 1.5; - color: rgba(0, 0, 0, 0.65); box-sizing: border-box; margin: 0; padding: 0; + color: rgba(0, 0, 0, 0.65); + font-size: 14px; + font-variant: tabular-nums; + line-height: 1.5; list-style: none; + font-feature-settings: 'tnum'; position: relative; clear: both; } .ant-table-body { + -webkit-transition: opacity 0.3s; transition: opacity 0.3s; } .ant-table-empty .ant-table-body { @@ -15979,33 +17400,35 @@ span.ant-radio + * { } .ant-table table { width: 100%; - border-collapse: collapse; text-align: left; border-radius: 5px 5px 0 0; + border-collapse: collapse; } .ant-table-thead > tr > th { - background: #fafafa; - transition: background 0.3s ease; - text-align: left; color: rgba(0, 0, 0, 0.85); font-weight: 500; + text-align: left; + background: #fafafa; border-bottom: 1px solid #e8e8e8; + -webkit-transition: background 0.3s ease; + transition: background 0.3s ease; } .ant-table-thead > tr > th[colspan] { text-align: center; } .ant-table-thead > tr > th .anticon-filter, .ant-table-thead > tr > th .ant-table-filter-icon { - font-size: 12px; - cursor: pointer; - color: #bfbfbf; - transition: all 0.3s; - width: 28px; position: absolute; top: 0; right: 0; + width: 28px; height: 100%; + color: #bfbfbf; + font-size: 12px; text-align: center; + cursor: pointer; + -webkit-transition: all 0.3s; + transition: all 0.3s; } .ant-table-thead > tr > th .anticon-filter > svg, .ant-table-thead > tr > th .ant-table-filter-icon > svg { @@ -16020,13 +17443,14 @@ span.ant-radio + * { } .ant-table-thead > tr > th .ant-table-column-sorter { position: absolute; - right: 6px; top: 50%; + right: 6px; width: 14px; height: 17px; margin-top: -8.5px; - text-align: center; color: #bfbfbf; + text-align: center; + -webkit-transition: all 0.3s; transition: all 0.3s; } .ant-table-thead > tr > th .ant-table-column-sorter-up, @@ -16034,11 +17458,13 @@ span.ant-radio + * { display: inline-block; font-size: 12px; font-size: 11px \9; - transform: scale(0.91666667) rotate(0deg); - line-height: 4px; + -webkit-transform: scale(0.91666667) rotate(0deg); + transform: scale(0.91666667) rotate(0deg); + display: block; height: 4px; + line-height: 4px; + -webkit-transition: all 0.3s; transition: all 0.3s; - display: block; } :root .ant-table-thead > tr > th .ant-table-column-sorter-up, :root .ant-table-thead > tr > th .ant-table-column-sorter-down { @@ -16054,6 +17480,8 @@ span.ant-radio + * { .ant-table-thead > tr > th.ant-table-column-has-actions { position: relative; background-clip: padding-box; + /* stylelint-disable-next-line */ + -webkit-background-clip: border-box; } .ant-table-thead > tr > th.ant-table-column-has-actions.ant-table-column-has-filters .anticon-filter.ant-table-filter-open, .ant-table-thead > tr > th.ant-table-column-has-actions.ant-table-column-has-filters .ant-table-filter-icon.ant-table-filter-open { @@ -16090,17 +17518,21 @@ span.ant-radio + * { .ant-table-thead > tr > th.ant-table-column-has-actions.ant-table-column-has-sorters.ant-table-column-has-filters { padding-right: 54px !important; } -.ant-table-thead > tr > th .ant-table-column-sorters:before { +.ant-table-thead > tr > th .ant-table-column-sorters > *:not(.ant-table-column-sorter) { + position: relative; +} +.ant-table-thead > tr > th .ant-table-column-sorters::before { position: absolute; - content: ''; top: 0; - left: 0; right: 0; bottom: 0; + left: 0; background: transparent; + -webkit-transition: all 0.3s; transition: all 0.3s; + content: ''; } -.ant-table-thead > tr > th .ant-table-column-sorters:hover:before { +.ant-table-thead > tr > th .ant-table-column-sorters:hover::before { background: rgba(0, 0, 0, 0.04); } .ant-table-thead > tr > th.ant-table-column-has-filters .ant-table-column-sorter { @@ -16123,10 +17555,12 @@ span.ant-radio + * { } .ant-table-tbody > tr > td { border-bottom: 1px solid #e8e8e8; + -webkit-transition: all 0.3s, border 0s; transition: all 0.3s, border 0s; } .ant-table-thead > tr, .ant-table-tbody > tr { + -webkit-transition: all 0.3s, height 0s; transition: all 0.3s, height 0s; } .ant-table-thead > tr.ant-table-row-hover:not(.ant-table-expanded-row) > td, @@ -16139,39 +17573,39 @@ span.ant-radio + * { background: none; } .ant-table-footer { + position: relative; padding: 16px 16px; background: #fafafa; - border-radius: 0 0 5px 5px; - position: relative; border-top: 1px solid #e8e8e8; + border-radius: 0 0 5px 5px; } -.ant-table-footer:before { - content: ''; - height: 1px; - background: #fafafa; +.ant-table-footer::before { position: absolute; top: -1px; - width: 100%; left: 0; + width: 100%; + height: 1px; + background: #fafafa; + content: ''; } .ant-table.ant-table-bordered .ant-table-footer { border: 1px solid #e8e8e8; } .ant-table-title { - padding: 16px 0; position: relative; top: 1px; + padding: 16px 0; border-radius: 5px 5px 0 0; } .ant-table.ant-table-bordered .ant-table-title { - border: 1px solid #e8e8e8; - padding-left: 16px; padding-right: 16px; + padding-left: 16px; + border: 1px solid #e8e8e8; } .ant-table-title + .ant-table-content { position: relative; - border-radius: 5px 5px 0 0; overflow: hidden; + border-radius: 5px 5px 0 0; } .ant-table-bordered .ant-table-title + .ant-table-content, .ant-table-bordered .ant-table-title + .ant-table-content table, @@ -16182,6 +17616,10 @@ span.ant-radio + * { .ant-table-without-column-header table { border-radius: 0; } +.ant-table-without-column-header.ant-table-bordered.ant-table-empty .ant-table-placeholder { + border-top: 1px solid #e8e8e8; + border-radius: 5px; +} .ant-table-tbody > tr.ant-table-row-selected td { background: #fafafa; } @@ -16201,8 +17639,6 @@ span.ant-radio + * { .ant-table-thead > tr > th.ant-table-selection-column, .ant-table-tbody > tr > td.ant-table-selection-column { text-align: center; - min-width: 62px; - width: 62px; } .ant-table-thead > tr > th.ant-table-selection-column .ant-radio-wrapper, .ant-table-tbody > tr > td.ant-table-selection-column .ant-radio-wrapper { @@ -16210,13 +17646,13 @@ span.ant-radio + * { } .ant-table-expand-icon-th, .ant-table-row-expand-icon-cell { - text-align: center; - min-width: 50px; width: 50px; + min-width: 50px; + text-align: center; } .ant-table-header { - background: #fafafa; overflow: hidden; + background: #fafafa; } .ant-table-header table { border-radius: 5px 5px 0 0; @@ -16229,12 +17665,12 @@ span.ant-radio + * { opacity: 0.5; } .ant-table-loading .ant-table-spin-holder { - height: 20px; - line-height: 20px; - left: 50%; + position: absolute; top: 50%; + left: 50%; + height: 20px; margin-left: -30px; - position: absolute; + line-height: 20px; } .ant-table-loading .ant-table-with-pagination { margin-top: -20px; @@ -16251,23 +17687,20 @@ span.ant-radio + * { border-bottom: 0; } .ant-table-bordered.ant-table-empty .ant-table-placeholder { - border-left: 1px solid #e8e8e8; border-right: 1px solid #e8e8e8; + border-left: 1px solid #e8e8e8; } .ant-table-bordered.ant-table-fixed-header .ant-table-header > table { border-bottom: 0; } .ant-table-bordered.ant-table-fixed-header .ant-table-body > table { - border-top: 0; border-top-left-radius: 0; border-top-right-radius: 0; } +.ant-table-bordered.ant-table-fixed-header .ant-table-header + .ant-table-body > table, .ant-table-bordered.ant-table-fixed-header .ant-table-body-inner > table { border-top: 0; } -.ant-table-bordered.ant-table-fixed-header .ant-table-placeholder { - border: 0; -} .ant-table-bordered .ant-table-thead > tr:not(:last-child) > th { border-bottom: 1px solid #e8e8e8; } @@ -16275,35 +17708,40 @@ span.ant-radio + * { .ant-table-bordered .ant-table-tbody > tr > td { border-right: 1px solid #e8e8e8; } +.ant-table-bordered .ant-table-title + .ant-table-content .ant-table-fixed-left, +.ant-table-bordered .ant-table-title + .ant-table-content .ant-table-fixed-right { + border-radius: 0; +} .ant-table-placeholder { position: relative; + z-index: 1; padding: 16px 16px; + color: rgba(0, 0, 0, 0.45); + font-size: 14px; + text-align: center; background: #fff; border-bottom: 1px solid #e8e8e8; - text-align: center; - font-size: 14px; - color: rgba(0, 0, 0, 0.45); - z-index: 1; + border-radius: 0 0 5px 5px; } .ant-table-placeholder .anticon { margin-right: 4px; } .ant-table-pagination.ant-pagination { - margin: 16px 0; float: right; + margin: 16px 0; } .ant-table-filter-dropdown { + position: relative; min-width: 96px; margin-left: -8px; background: #fff; border-radius: 5px; box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15); - position: relative; } .ant-table-filter-dropdown .ant-dropdown-menu { border: 0; - box-shadow: none; border-radius: 5px 5px 0 0; + box-shadow: none; } .ant-table-filter-dropdown .ant-dropdown-menu-without-submenu { max-height: 400px; @@ -16316,7 +17754,7 @@ span.ant-radio + * { border-radius: 5px; box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15); } -.ant-table-filter-dropdown .ant-dropdown-menu .ant-dropdown-submenu-contain-selected .ant-dropdown-menu-submenu-title:after { +.ant-table-filter-dropdown .ant-dropdown-menu .ant-dropdown-submenu-contain-selected .ant-dropdown-menu-submenu-title::after { color: #E64448; font-weight: bold; text-shadow: 0 0 2px #fff1f0; @@ -16329,8 +17767,8 @@ span.ant-radio + * { border-radius: 0; } .ant-table-filter-dropdown-btns { - overflow: hidden; padding: 7px 8px; + overflow: hidden; border-top: 1px solid #e8e8e8; } .ant-table-filter-dropdown-link { @@ -16348,11 +17786,15 @@ span.ant-radio + * { .ant-table-filter-dropdown-link.clear { float: right; } +.ant-table-selection { + white-space: nowrap; +} .ant-table-selection-select-all-custom { margin-right: 4px !important; } .ant-table-selection .anticon-down { color: #bfbfbf; + -webkit-transition: all 0.3s; transition: all 0.3s; } .ant-table-selection-menu { @@ -16367,38 +17809,38 @@ span.ant-radio + * { color: #bfbfbf; } .ant-table-selection-down { - cursor: pointer; - padding: 0; display: inline-block; + padding: 0; line-height: 1; + cursor: pointer; } .ant-table-selection-down:hover .anticon-down { - color: #666; + color: rgba(0, 0, 0, 0.6); } .ant-table-row-expand-icon { - cursor: pointer; display: inline-block; width: 17px; height: 17px; - text-align: center; line-height: 14px; + text-align: center; + background: #fff; border: 1px solid #e8e8e8; + cursor: pointer; -webkit-user-select: none; -moz-user-select: none; -ms-user-select: none; user-select: none; - background: #fff; } -.ant-table-row-expanded:after { +.ant-table-row-expanded::after { content: '-'; } -.ant-table-row-collapsed:after { +.ant-table-row-collapsed::after { content: '+'; } .ant-table-row-spaced { visibility: hidden; } -.ant-table-row-spaced:after { +.ant-table-row-spaced::after { content: '.'; } .ant-table-row[class*='ant-table-row-level-0'] .ant-table-selection-column > span { @@ -16422,6 +17864,9 @@ tr.ant-table-expanded-row td > .ant-table-wrapper { width: auto; min-width: 100%; } +.ant-table-scroll table .ant-table-fixed-columns-in-body { + visibility: hidden; +} .ant-table-body-inner { height: 100%; } @@ -16433,18 +17878,20 @@ tr.ant-table-expanded-row td > .ant-table-wrapper { overflow: scroll; } .ant-table-fixed-header .ant-table-scroll .ant-table-header { - overflow: scroll; - padding-bottom: 20px; margin-bottom: -20px; + padding-bottom: 20px; + overflow: scroll; opacity: 0.9999; } .ant-table-fixed-left, .ant-table-fixed-right { position: absolute; top: 0; + z-index: 20; overflow: hidden; - transition: box-shadow 0.3s ease; border-radius: 0; + -webkit-transition: box-shadow 0.3s ease; + transition: box-shadow 0.3s ease; } .ant-table-fixed-left table, .ant-table-fixed-right table { @@ -16531,8 +17978,8 @@ tr.ant-table-expanded-row td > .ant-table-wrapper { padding: 8px 8px; } .ant-table-small > .ant-table-title { - border-bottom: 1px solid #e8e8e8; top: 0; + border-bottom: 1px solid #e8e8e8; } .ant-table-small > .ant-table-content > .ant-table-body { margin: 0 8px; @@ -16573,7 +18020,7 @@ tr.ant-table-expanded-row td > .ant-table-wrapper { .ant-table-small > .ant-table-content > .ant-table-fixed-right > .ant-table-header > table > .ant-table-thead > tr > th, .ant-table-small > .ant-table-content > .ant-table-fixed-left > .ant-table-body-outer > .ant-table-body-inner > table > .ant-table-thead > tr > th, .ant-table-small > .ant-table-content > .ant-table-fixed-right > .ant-table-body-outer > .ant-table-body-inner > table > .ant-table-thead > tr > th { - background-color: #fff; + background-color: transparent; border-bottom: 1px solid #e8e8e8; } .ant-table-small > .ant-table-content > .ant-table-header > table > .ant-table-thead > tr > th.ant-table-column-sort, @@ -16606,8 +18053,8 @@ tr.ant-table-expanded-row td > .ant-table-wrapper { } .ant-table-small.ant-table-bordered .ant-table-title { border: 0; - border-bottom: 1px solid #e8e8e8; border-right: 1px solid #e8e8e8; + border-bottom: 1px solid #e8e8e8; } .ant-table-small.ant-table-bordered .ant-table-content { border-right: 1px solid #e8e8e8; @@ -16617,13 +18064,13 @@ tr.ant-table-expanded-row td > .ant-table-wrapper { border-top: 1px solid #e8e8e8; border-right: 1px solid #e8e8e8; } -.ant-table-small.ant-table-bordered .ant-table-footer:before { +.ant-table-small.ant-table-bordered .ant-table-footer::before { display: none; } .ant-table-small.ant-table-bordered .ant-table-placeholder { - border-left: 0; - border-bottom: 0; border-right: 0; + border-bottom: 0; + border-left: 0; } .ant-table-small.ant-table-bordered .ant-table-thead > tr > th:last-child, .ant-table-small.ant-table-bordered .ant-table-tbody > tr > td:last-child { @@ -16634,8 +18081,8 @@ tr.ant-table-expanded-row td > .ant-table-wrapper { border-right: 1px solid #e8e8e8; } .ant-table-small.ant-table-bordered .ant-table-fixed-right { - border-left: 1px solid #e8e8e8; border-right: 1px solid #e8e8e8; + border-left: 1px solid #e8e8e8; } .ant-table-small tr.ant-table-expanded-row td > .ant-table-wrapper { margin: -8px -16px -9px; @@ -16648,20 +18095,21 @@ tr.ant-table-expanded-row td > .ant-table-wrapper { } .ant-tabs.ant-tabs-card .ant-tabs-card-bar .ant-tabs-tab { margin: 0; + margin-right: 2px; + padding: 0 16px; + line-height: 38px; + background: #fafafa; border: 1px solid #e8e8e8; border-bottom: 0; border-radius: 5px 5px 0 0; - background: #fafafa; - margin-right: 2px; - padding: 0 16px; + -webkit-transition: all 0.3s cubic-bezier(0.645, 0.045, 0.355, 1); transition: all 0.3s cubic-bezier(0.645, 0.045, 0.355, 1); - line-height: 38px; } .ant-tabs.ant-tabs-card .ant-tabs-card-bar .ant-tabs-tab-active { + padding-bottom: 1px; + color: #E64448; background: #fff; border-color: #e8e8e8; - color: #E64448; - padding-bottom: 1px; } .ant-tabs.ant-tabs-card .ant-tabs-card-bar .ant-tabs-tab-inactive { padding: 0; @@ -16670,22 +18118,24 @@ tr.ant-table-expanded-row td > .ant-table-wrapper { margin-bottom: 0; } .ant-tabs.ant-tabs-card .ant-tabs-card-bar .ant-tabs-tab .ant-tabs-close-x { - color: rgba(0, 0, 0, 0.45); - transition: all 0.3s; - font-size: 12px; - margin-left: 3px; - margin-right: -5px; - overflow: hidden; - vertical-align: middle; width: 16px; height: 16px; height: 14px; + margin-right: -5px; + margin-left: 3px; + overflow: hidden; + color: rgba(0, 0, 0, 0.45); + font-size: 12px; + vertical-align: middle; + -webkit-transition: all 0.3s; + transition: all 0.3s; } .ant-tabs.ant-tabs-card .ant-tabs-card-bar .ant-tabs-tab .ant-tabs-close-x:hover { color: rgba(0, 0, 0, 0.85); } .ant-tabs.ant-tabs-card .ant-tabs-card-content > .ant-tabs-tabpane, .ant-tabs.ant-tabs-editable-card .ant-tabs-card-content > .ant-tabs-tabpane { + -webkit-transition: none !important; transition: none !important; } .ant-tabs.ant-tabs-card .ant-tabs-card-content > .ant-tabs-tabpane-inactive, @@ -16702,13 +18152,14 @@ tr.ant-table-expanded-row td > .ant-table-wrapper { position: relative; width: 20px; height: 20px; + color: rgba(0, 0, 0, 0.65); + font-size: 12px; line-height: 20px; text-align: center; - cursor: pointer; - border-radius: 2px; border: 1px solid #e8e8e8; - font-size: 12px; - color: rgba(0, 0, 0, 0.65); + border-radius: 2px; + cursor: pointer; + -webkit-transition: all 0.3s; transition: all 0.3s; } .ant-tabs-extra-content .ant-tabs-new-tab:hover { @@ -16729,8 +18180,8 @@ tr.ant-table-expanded-row td > .ant-table-wrapper { } .ant-tabs-vertical.ant-tabs-card .ant-tabs-card-bar.ant-tabs-left-bar .ant-tabs-tab, .ant-tabs-vertical.ant-tabs-card .ant-tabs-card-bar.ant-tabs-right-bar .ant-tabs-tab { - border-bottom: 1px solid #e8e8e8; margin-bottom: 8px; + border-bottom: 1px solid #e8e8e8; } .ant-tabs-vertical.ant-tabs-card .ant-tabs-card-bar.ant-tabs-left-bar .ant-tabs-tab-active, .ant-tabs-vertical.ant-tabs-card .ant-tabs-card-bar.ant-tabs-right-bar .ant-tabs-tab-active { @@ -16748,9 +18199,9 @@ tr.ant-table-expanded-row td > .ant-table-wrapper { margin-right: 0; } .ant-tabs-vertical.ant-tabs-card.ant-tabs-left .ant-tabs-card-bar.ant-tabs-left-bar .ant-tabs-tab { + margin-right: 1px; border-right: 0; border-radius: 5px 0 0 5px; - margin-right: 1px; } .ant-tabs-vertical.ant-tabs-card.ant-tabs-left .ant-tabs-card-bar.ant-tabs-left-bar .ant-tabs-tab-active { margin-right: -1px; @@ -16760,139 +18211,143 @@ tr.ant-table-expanded-row td > .ant-table-wrapper { margin-left: 0; } .ant-tabs-vertical.ant-tabs-card.ant-tabs-right .ant-tabs-card-bar.ant-tabs-right-bar .ant-tabs-tab { + margin-left: 1px; border-left: 0; border-radius: 0 5px 5px 0; - margin-left: 1px; } .ant-tabs-vertical.ant-tabs-card.ant-tabs-right .ant-tabs-card-bar.ant-tabs-right-bar .ant-tabs-tab-active { margin-left: -1px; padding-left: 18px; } .ant-tabs .ant-tabs-card-bar.ant-tabs-bottom-bar .ant-tabs-tab { - border-bottom: 1px solid #e8e8e8; border-top: 0; + border-bottom: 1px solid #e8e8e8; border-radius: 0 0 5px 5px; } .ant-tabs .ant-tabs-card-bar.ant-tabs-bottom-bar .ant-tabs-tab-active { - color: #E64448; - padding-bottom: 0; padding-top: 1px; + padding-bottom: 0; + color: #E64448; } .ant-tabs { - font-family: "Chinese Quote", -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"; - font-size: 14px; - font-variant: tabular-nums; - line-height: 1.5; - color: rgba(0, 0, 0, 0.65); box-sizing: border-box; margin: 0; padding: 0; + color: rgba(0, 0, 0, 0.65); + font-size: 14px; + font-variant: tabular-nums; + line-height: 1.5; list-style: none; + font-feature-settings: 'tnum'; position: relative; overflow: hidden; zoom: 1; } -.ant-tabs:before, -.ant-tabs:after { +.ant-tabs::before, +.ant-tabs::after { content: ''; display: table; } -.ant-tabs:after { +.ant-tabs::after { clear: both; } -.ant-tabs:before, -.ant-tabs:after { +.ant-tabs::before, +.ant-tabs::after { content: ''; display: table; } -.ant-tabs:after { +.ant-tabs::after { clear: both; } .ant-tabs-ink-bar { - z-index: 1; position: absolute; - left: 0; bottom: 1px; + left: 0; + z-index: 1; box-sizing: border-box; height: 2px; background-color: #E64448; - transform-origin: 0 0; + -webkit-transform-origin: 0 0; + transform-origin: 0 0; } .ant-tabs-bar { - border-bottom: 1px solid #e8e8e8; margin: 0 0 16px 0; + border-bottom: 1px solid #e8e8e8; outline: none; + -webkit-transition: padding 0.3s cubic-bezier(0.645, 0.045, 0.355, 1); transition: padding 0.3s cubic-bezier(0.645, 0.045, 0.355, 1); } .ant-tabs-nav-container { + position: relative; + box-sizing: border-box; + margin-bottom: -1px; overflow: hidden; font-size: 14px; line-height: 1.5; - box-sizing: border-box; - position: relative; white-space: nowrap; - margin-bottom: -1px; + -webkit-transition: padding 0.3s cubic-bezier(0.645, 0.045, 0.355, 1); transition: padding 0.3s cubic-bezier(0.645, 0.045, 0.355, 1); zoom: 1; } -.ant-tabs-nav-container:before, -.ant-tabs-nav-container:after { +.ant-tabs-nav-container::before, +.ant-tabs-nav-container::after { content: ''; display: table; } -.ant-tabs-nav-container:after { +.ant-tabs-nav-container::after { clear: both; } -.ant-tabs-nav-container:before, -.ant-tabs-nav-container:after { +.ant-tabs-nav-container::before, +.ant-tabs-nav-container::after { content: ''; display: table; } -.ant-tabs-nav-container:after { +.ant-tabs-nav-container::after { clear: both; } .ant-tabs-nav-container-scrolling { - padding-left: 32px; padding-right: 32px; + padding-left: 32px; } .ant-tabs-bottom .ant-tabs-bottom-bar { - margin-bottom: 0; margin-top: 16px; - border-bottom: none; + margin-bottom: 0; border-top: 1px solid #e8e8e8; + border-bottom: none; } .ant-tabs-bottom .ant-tabs-bottom-bar .ant-tabs-ink-bar { - bottom: auto; top: 1px; + bottom: auto; } .ant-tabs-bottom .ant-tabs-bottom-bar .ant-tabs-nav-container { - margin-bottom: 0; margin-top: -1px; + margin-bottom: 0; } .ant-tabs-tab-prev, .ant-tabs-tab-next { - -webkit-user-select: none; - -moz-user-select: none; - -ms-user-select: none; - user-select: none; + position: absolute; z-index: 2; width: 0; height: 100%; - cursor: pointer; - border: 0; - background-color: transparent; - position: absolute; - text-align: center; color: rgba(0, 0, 0, 0.45); - transition: width 0.3s cubic-bezier(0.645, 0.045, 0.355, 1), opacity 0.3s cubic-bezier(0.645, 0.045, 0.355, 1), color 0.3s cubic-bezier(0.645, 0.045, 0.355, 1); + text-align: center; + background-color: transparent; + border: 0; + cursor: pointer; opacity: 0; + -webkit-transition: width 0.3s cubic-bezier(0.645, 0.045, 0.355, 1), opacity 0.3s cubic-bezier(0.645, 0.045, 0.355, 1), color 0.3s cubic-bezier(0.645, 0.045, 0.355, 1); + transition: width 0.3s cubic-bezier(0.645, 0.045, 0.355, 1), opacity 0.3s cubic-bezier(0.645, 0.045, 0.355, 1), color 0.3s cubic-bezier(0.645, 0.045, 0.355, 1); + -webkit-user-select: none; + -moz-user-select: none; + -ms-user-select: none; + user-select: none; pointer-events: none; } .ant-tabs-tab-prev.ant-tabs-tab-arrow-show, .ant-tabs-tab-next.ant-tabs-tab-arrow-show { - opacity: 1; width: 32px; height: 100%; + opacity: 1; pointer-events: auto; } .ant-tabs-tab-prev:hover, @@ -16901,17 +18356,17 @@ tr.ant-table-expanded-row td > .ant-table-wrapper { } .ant-tabs-tab-prev-icon, .ant-tabs-tab-next-icon { - font-style: normal; - font-weight: bold; - font-variant: normal; - line-height: inherit; - vertical-align: baseline; position: absolute; top: 50%; left: 50%; - transform: translate(-50%, -50%); + font-weight: bold; + font-style: normal; + font-variant: normal; + line-height: inherit; text-align: center; text-transform: none; + -webkit-transform: translate(-50%, -50%); + transform: translate(-50%, -50%); } .ant-tabs-tab-prev-icon-target, .ant-tabs-tab-next-icon-target { @@ -16919,7 +18374,8 @@ tr.ant-table-expanded-row td > .ant-table-wrapper { display: inline-block; font-size: 12px; font-size: 10px \9; - transform: scale(0.83333333) rotate(0deg); + -webkit-transform: scale(0.83333333) rotate(0deg); + transform: scale(0.83333333) rotate(0deg); } :root .ant-tabs-tab-prev-icon-target, :root .ant-tabs-tab-next-icon-target { @@ -16943,40 +18399,44 @@ tr.ant-table-expanded-row td > .ant-table-wrapper { filter: none; } .ant-tabs-nav-wrap { - overflow: hidden; margin-bottom: -1px; + overflow: hidden; } .ant-tabs-nav-scroll { overflow: hidden; white-space: nowrap; } .ant-tabs-nav { - box-sizing: border-box; - padding-left: 0; - transition: transform 0.3s cubic-bezier(0.645, 0.045, 0.355, 1); position: relative; + display: inline-block; + box-sizing: border-box; margin: 0; + padding-left: 0; list-style: none; - display: inline-block; + -webkit-transition: -webkit-transform 0.3s cubic-bezier(0.645, 0.045, 0.355, 1); + transition: -webkit-transform 0.3s cubic-bezier(0.645, 0.045, 0.355, 1); + transition: transform 0.3s cubic-bezier(0.645, 0.045, 0.355, 1); + transition: transform 0.3s cubic-bezier(0.645, 0.045, 0.355, 1), -webkit-transform 0.3s cubic-bezier(0.645, 0.045, 0.355, 1); } -.ant-tabs-nav:before, -.ant-tabs-nav:after { +.ant-tabs-nav::before, +.ant-tabs-nav::after { display: table; content: ' '; } -.ant-tabs-nav:after { +.ant-tabs-nav::after { clear: both; } .ant-tabs-nav .ant-tabs-tab { + position: relative; display: inline-block; + box-sizing: border-box; height: 100%; margin: 0 32px 0 0; padding: 12px 16px; - box-sizing: border-box; - position: relative; - transition: color 0.3s cubic-bezier(0.645, 0.045, 0.355, 1); - cursor: pointer; text-decoration: none; + cursor: pointer; + -webkit-transition: color 0.3s cubic-bezier(0.645, 0.045, 0.355, 1); + transition: color 0.3s cubic-bezier(0.645, 0.045, 0.355, 1); } .ant-tabs-nav .ant-tabs-tab:last-child { margin-right: 0; @@ -16992,8 +18452,8 @@ tr.ant-table-expanded-row td > .ant-table-wrapper { } .ant-tabs-nav .ant-tabs-tab-disabled, .ant-tabs-nav .ant-tabs-tab-disabled:hover { - cursor: not-allowed; color: rgba(0, 0, 0, 0.25); + cursor: not-allowed; } .ant-tabs-nav .ant-tabs-tab-active { color: #E64448; @@ -17019,14 +18479,15 @@ tr.ant-table-expanded-row td > .ant-table-wrapper { .ant-tabs .ant-tabs-bottom-content > .ant-tabs-tabpane { flex-shrink: 0; width: 100%; - transition: opacity 0.45s; opacity: 1; + -webkit-transition: opacity 0.45s; + transition: opacity 0.45s; } .ant-tabs .ant-tabs-top-content > .ant-tabs-tabpane-inactive, .ant-tabs .ant-tabs-bottom-content > .ant-tabs-tabpane-inactive { - opacity: 0; height: 0; padding: 0 !important; + opacity: 0; pointer-events: none; } .ant-tabs .ant-tabs-top-content > .ant-tabs-tabpane-inactive input, @@ -17035,15 +18496,19 @@ tr.ant-table-expanded-row td > .ant-table-wrapper { } .ant-tabs .ant-tabs-top-content.ant-tabs-content-animated, .ant-tabs .ant-tabs-bottom-content.ant-tabs-content-animated { + display: -webkit-box; display: flex; - flex-direction: row; - will-change: margin-left; + -webkit-box-orient: horizontal; + -webkit-box-direction: normal; + flex-direction: row; + -webkit-transition: margin-left 0.3s cubic-bezier(0.645, 0.045, 0.355, 1); transition: margin-left 0.3s cubic-bezier(0.645, 0.045, 0.355, 1); + will-change: margin-left; } .ant-tabs .ant-tabs-left-bar, .ant-tabs .ant-tabs-right-bar { - border-bottom: 0; height: 100%; + border-bottom: 0; } .ant-tabs .ant-tabs-left-bar-tab-prev, .ant-tabs .ant-tabs-right-bar-tab-prev, @@ -17051,6 +18516,7 @@ tr.ant-table-expanded-row td > .ant-table-wrapper { .ant-tabs .ant-tabs-right-bar-tab-next { width: 32px; height: 0; + -webkit-transition: height 0.3s cubic-bezier(0.645, 0.045, 0.355, 1), opacity 0.3s cubic-bezier(0.645, 0.045, 0.355, 1), color 0.3s cubic-bezier(0.645, 0.045, 0.355, 1); transition: height 0.3s cubic-bezier(0.645, 0.045, 0.355, 1), opacity 0.3s cubic-bezier(0.645, 0.045, 0.355, 1), color 0.3s cubic-bezier(0.645, 0.045, 0.355, 1); } .ant-tabs .ant-tabs-left-bar-tab-prev.ant-tabs-tab-arrow-show, @@ -17062,10 +18528,10 @@ tr.ant-table-expanded-row td > .ant-table-wrapper { } .ant-tabs .ant-tabs-left-bar .ant-tabs-tab, .ant-tabs .ant-tabs-right-bar .ant-tabs-tab { + display: block; float: none; margin: 0 0 16px 0; padding: 8px 24px; - display: block; } .ant-tabs .ant-tabs-left-bar .ant-tabs-tab:last-child, .ant-tabs .ant-tabs-right-bar .ant-tabs-tab:last-child { @@ -17103,16 +18569,16 @@ tr.ant-table-expanded-row td > .ant-table-wrapper { } .ant-tabs .ant-tabs-left-bar .ant-tabs-ink-bar, .ant-tabs .ant-tabs-right-bar .ant-tabs-ink-bar { - width: 2px; top: 0; + bottom: auto; left: auto; + width: 2px; height: auto; - bottom: auto; } .ant-tabs .ant-tabs-left-bar .ant-tabs-tab-next, .ant-tabs .ant-tabs-right-bar .ant-tabs-tab-next { - width: 100%; bottom: 0; + width: 100%; height: 32px; } .ant-tabs .ant-tabs-left-bar .ant-tabs-tab-prev, @@ -17123,15 +18589,15 @@ tr.ant-table-expanded-row td > .ant-table-wrapper { } .ant-tabs .ant-tabs-left-content, .ant-tabs .ant-tabs-right-content { - overflow: hidden; width: auto; margin-top: 0 !important; + overflow: hidden; } .ant-tabs .ant-tabs-left-bar { float: left; - border-right: 1px solid #e8e8e8; margin-right: -1px; margin-bottom: 0; + border-right: 1px solid #e8e8e8; } .ant-tabs .ant-tabs-left-bar .ant-tabs-tab { text-align: right; @@ -17151,9 +18617,9 @@ tr.ant-table-expanded-row td > .ant-table-wrapper { } .ant-tabs .ant-tabs-right-bar { float: right; - border-left: 1px solid #e8e8e8; - margin-left: -1px; margin-bottom: 0; + margin-left: -1px; + border-left: 1px solid #e8e8e8; } .ant-tabs .ant-tabs-right-bar .ant-tabs-nav-container { margin-left: -1px; @@ -17170,16 +18636,23 @@ tr.ant-table-expanded-row td > .ant-table-wrapper { } .ant-tabs-top .ant-tabs-ink-bar-animated, .ant-tabs-bottom .ant-tabs-ink-bar-animated { + -webkit-transition: width 0.3s cubic-bezier(0.645, 0.045, 0.355, 1), left 0.3s cubic-bezier(0.645, 0.045, 0.355, 1), -webkit-transform 0.3s cubic-bezier(0.645, 0.045, 0.355, 1); + transition: width 0.3s cubic-bezier(0.645, 0.045, 0.355, 1), left 0.3s cubic-bezier(0.645, 0.045, 0.355, 1), -webkit-transform 0.3s cubic-bezier(0.645, 0.045, 0.355, 1); transition: transform 0.3s cubic-bezier(0.645, 0.045, 0.355, 1), width 0.3s cubic-bezier(0.645, 0.045, 0.355, 1), left 0.3s cubic-bezier(0.645, 0.045, 0.355, 1); + transition: transform 0.3s cubic-bezier(0.645, 0.045, 0.355, 1), width 0.3s cubic-bezier(0.645, 0.045, 0.355, 1), left 0.3s cubic-bezier(0.645, 0.045, 0.355, 1), -webkit-transform 0.3s cubic-bezier(0.645, 0.045, 0.355, 1); } .ant-tabs-left .ant-tabs-ink-bar-animated, .ant-tabs-right .ant-tabs-ink-bar-animated { + -webkit-transition: height 0.3s cubic-bezier(0.645, 0.045, 0.355, 1), top 0.3s cubic-bezier(0.645, 0.045, 0.355, 1), -webkit-transform 0.3s cubic-bezier(0.645, 0.045, 0.355, 1); + transition: height 0.3s cubic-bezier(0.645, 0.045, 0.355, 1), top 0.3s cubic-bezier(0.645, 0.045, 0.355, 1), -webkit-transform 0.3s cubic-bezier(0.645, 0.045, 0.355, 1); transition: transform 0.3s cubic-bezier(0.645, 0.045, 0.355, 1), height 0.3s cubic-bezier(0.645, 0.045, 0.355, 1), top 0.3s cubic-bezier(0.645, 0.045, 0.355, 1); + transition: transform 0.3s cubic-bezier(0.645, 0.045, 0.355, 1), height 0.3s cubic-bezier(0.645, 0.045, 0.355, 1), top 0.3s cubic-bezier(0.645, 0.045, 0.355, 1), -webkit-transform 0.3s cubic-bezier(0.645, 0.045, 0.355, 1); } .no-flex > .ant-tabs-content > .ant-tabs-content-animated, .ant-tabs-no-animation > .ant-tabs-content > .ant-tabs-content-animated { - transform: none !important; margin-left: 0 !important; + -webkit-transform: none !important; + transform: none !important; } .no-flex > .ant-tabs-content > .ant-tabs-tabpane-inactive, .ant-tabs-no-animation > .ant-tabs-content > .ant-tabs-tabpane-inactive { @@ -17187,36 +18660,38 @@ tr.ant-table-expanded-row td > .ant-table-wrapper { } .ant-tabs-left-content > .ant-tabs-content-animated, .ant-tabs-right-content > .ant-tabs-content-animated { - transform: none !important; margin-left: 0 !important; + -webkit-transform: none !important; + transform: none !important; } .ant-tabs-left-content > .ant-tabs-tabpane-inactive, .ant-tabs-right-content > .ant-tabs-tabpane-inactive { display: none; } .ant-tag { - font-family: "Chinese Quote", -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"; - font-size: 14px; - font-variant: tabular-nums; - line-height: 1.5; - color: rgba(0, 0, 0, 0.65); box-sizing: border-box; margin: 0; padding: 0; + color: rgba(0, 0, 0, 0.65); + font-size: 14px; + font-variant: tabular-nums; + line-height: 1.5; list-style: none; + font-feature-settings: 'tnum'; display: inline-block; - line-height: 20px; height: 22px; + margin-right: 8px; padding: 0 7px; - border-radius: 5px; - border: 1px solid #d9d9d9; - background: #fafafa; font-size: 12px; - transition: all 0.3s cubic-bezier(0.215, 0.61, 0.355, 1); - opacity: 1; - margin-right: 8px; - cursor: pointer; + line-height: 20px; white-space: nowrap; + background: #fafafa; + border: 1px solid #d9d9d9; + border-radius: 5px; + cursor: pointer; + opacity: 1; + -webkit-transition: all 0.3s cubic-bezier(0.215, 0.61, 0.355, 1); + transition: all 0.3s cubic-bezier(0.215, 0.61, 0.355, 1); } .ant-tag:hover { opacity: 0.85; @@ -17235,12 +18710,14 @@ tr.ant-table-expanded-row td > .ant-table-wrapper { display: inline-block; font-size: 12px; font-size: 10px \9; - transform: scale(0.83333333) rotate(0deg); - cursor: pointer; + -webkit-transform: scale(0.83333333) rotate(0deg); + transform: scale(0.83333333) rotate(0deg); margin-left: 3px; - transition: all 0.3s; color: rgba(0, 0, 0, 0.45); font-weight: bold; + cursor: pointer; + -webkit-transition: all 0.3s; + transition: all 0.3s; } :root .ant-tag .anticon-close { font-size: 12px; @@ -17277,8 +18754,8 @@ tr.ant-table-expanded-row td > .ant-table-wrapper { } .ant-tag-close { width: 0 !important; - padding: 0; margin: 0; + padding: 0; } .ant-tag-zoom-enter, .ant-tag-zoom-appear { @@ -17302,9 +18779,9 @@ tr.ant-table-expanded-row td > .ant-table-wrapper { border-color: #ffadd2; } .ant-tag-pink-inverse { + color: #fff; background: #eb2f96; border-color: #eb2f96; - color: #fff; } .ant-tag-magenta { color: #eb2f96; @@ -17312,9 +18789,9 @@ tr.ant-table-expanded-row td > .ant-table-wrapper { border-color: #ffadd2; } .ant-tag-magenta-inverse { + color: #fff; background: #eb2f96; border-color: #eb2f96; - color: #fff; } .ant-tag-red { color: #f5222d; @@ -17322,9 +18799,9 @@ tr.ant-table-expanded-row td > .ant-table-wrapper { border-color: #ffa39e; } .ant-tag-red-inverse { + color: #fff; background: #f5222d; border-color: #f5222d; - color: #fff; } .ant-tag-volcano { color: #fa541c; @@ -17332,9 +18809,9 @@ tr.ant-table-expanded-row td > .ant-table-wrapper { border-color: #ffbb96; } .ant-tag-volcano-inverse { + color: #fff; background: #fa541c; border-color: #fa541c; - color: #fff; } .ant-tag-orange { color: #fa8c16; @@ -17342,9 +18819,9 @@ tr.ant-table-expanded-row td > .ant-table-wrapper { border-color: #ffd591; } .ant-tag-orange-inverse { + color: #fff; background: #fa8c16; border-color: #fa8c16; - color: #fff; } .ant-tag-yellow { color: #fadb14; @@ -17352,9 +18829,9 @@ tr.ant-table-expanded-row td > .ant-table-wrapper { border-color: #fffb8f; } .ant-tag-yellow-inverse { + color: #fff; background: #fadb14; border-color: #fadb14; - color: #fff; } .ant-tag-gold { color: #faad14; @@ -17362,9 +18839,9 @@ tr.ant-table-expanded-row td > .ant-table-wrapper { border-color: #ffe58f; } .ant-tag-gold-inverse { + color: #fff; background: #faad14; border-color: #faad14; - color: #fff; } .ant-tag-cyan { color: #13c2c2; @@ -17372,9 +18849,9 @@ tr.ant-table-expanded-row td > .ant-table-wrapper { border-color: #87e8de; } .ant-tag-cyan-inverse { + color: #fff; background: #13c2c2; border-color: #13c2c2; - color: #fff; } .ant-tag-lime { color: #a0d911; @@ -17382,9 +18859,9 @@ tr.ant-table-expanded-row td > .ant-table-wrapper { border-color: #eaff8f; } .ant-tag-lime-inverse { + color: #fff; background: #a0d911; border-color: #a0d911; - color: #fff; } .ant-tag-green { color: #52c41a; @@ -17392,9 +18869,9 @@ tr.ant-table-expanded-row td > .ant-table-wrapper { border-color: #b7eb8f; } .ant-tag-green-inverse { + color: #fff; background: #52c41a; border-color: #52c41a; - color: #fff; } .ant-tag-blue { color: #1890ff; @@ -17402,9 +18879,9 @@ tr.ant-table-expanded-row td > .ant-table-wrapper { border-color: #91d5ff; } .ant-tag-blue-inverse { + color: #fff; background: #1890ff; border-color: #1890ff; - color: #fff; } .ant-tag-geekblue { color: #2f54eb; @@ -17412,9 +18889,9 @@ tr.ant-table-expanded-row td > .ant-table-wrapper { border-color: #adc6ff; } .ant-tag-geekblue-inverse { + color: #fff; background: #2f54eb; border-color: #2f54eb; - color: #fff; } .ant-tag-purple { color: #722ed1; @@ -17422,44 +18899,45 @@ tr.ant-table-expanded-row td > .ant-table-wrapper { border-color: #d3adf7; } .ant-tag-purple-inverse { + color: #fff; background: #722ed1; border-color: #722ed1; - color: #fff; } .ant-time-picker-panel { - font-size: 14px; - font-variant: tabular-nums; - line-height: 1.5; - color: rgba(0, 0, 0, 0.65); box-sizing: border-box; margin: 0; padding: 0; + color: rgba(0, 0, 0, 0.65); + font-size: 14px; + font-variant: tabular-nums; + line-height: 1.5; list-style: none; - font-family: "Chinese Quote", -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"; - z-index: 1050; + font-feature-settings: 'tnum'; position: absolute; + z-index: 1050; + font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', 'Helvetica Neue', Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol'; } .ant-time-picker-panel-inner { position: relative; - outline: none; - list-style: none; + left: -2px; font-size: 14px; text-align: left; + list-style: none; background-color: #fff; + background-clip: padding-box; border-radius: 5px; + outline: none; box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15); - background-clip: padding-box; - left: -2px; } .ant-time-picker-panel-input { width: 100%; + max-width: 154px; margin: 0; padding: 0; + line-height: normal; border: 0; - max-width: 154px; - cursor: auto; outline: 0; - line-height: normal; + cursor: auto; } .ant-time-picker-panel-input::-moz-placeholder { color: #bfbfbf; @@ -17472,60 +18950,33 @@ tr.ant-table-expanded-row td > .ant-table-wrapper { color: #bfbfbf; } .ant-time-picker-panel-input-wrap { - box-sizing: border-box; position: relative; + box-sizing: border-box; padding: 7px 2px 7px 12px; border-bottom: 1px solid #e8e8e8; } .ant-time-picker-panel-input-invalid { border-color: #f5222d; } -.ant-time-picker-panel-clear-btn { - position: absolute; - right: 8px; - cursor: pointer; - overflow: hidden; - width: 20px; - height: 20px; - text-align: center; - line-height: 20px; - top: 7px; - margin: 0; -} -.ant-time-picker-panel-clear-btn-icon svg { - position: absolute; - top: 0; - right: 0; - bottom: 0; - left: 0; - margin: auto; - font-size: 14px; - color: rgba(0, 0, 0, 0.25); - display: inline-block; - transition: color 0.3s ease; -} -.ant-time-picker-panel-clear-btn-icon svg:hover { - color: rgba(0, 0, 0, 0.45); -} .ant-time-picker-panel-narrow .ant-time-picker-panel-input-wrap { max-width: 112px; } .ant-time-picker-panel-select { + position: relative; float: left; - font-size: 14px; - border-left: 1px solid #e8e8e8; box-sizing: border-box; width: 56px; - overflow: hidden; - position: relative; max-height: 192px; + overflow: hidden; + font-size: 14px; + border-left: 1px solid #e8e8e8; } .ant-time-picker-panel-select:hover { overflow-y: auto; } .ant-time-picker-panel-select:first-child { - border-left: 0; margin-left: 0; + border-left: 0; } .ant-time-picker-panel-select:last-child { border-right: 0; @@ -17534,34 +18985,35 @@ tr.ant-table-expanded-row td > .ant-table-wrapper { width: 100%; } .ant-time-picker-panel-select ul { - list-style: none; box-sizing: border-box; + width: 100%; margin: 0; padding: 0 0 160px; - width: 100%; + list-style: none; } .ant-time-picker-panel-select li { - list-style: none; box-sizing: content-box; - margin: 0; - padding: 0 0 0 12px; width: 100%; height: 32px; + margin: 0; + padding: 0 0 0 12px; line-height: 32px; text-align: left; + list-style: none; cursor: pointer; + -webkit-transition: background 0.3s; + transition: background 0.3s; -webkit-user-select: none; -moz-user-select: none; -ms-user-select: none; user-select: none; - transition: background 0.3s; } .ant-time-picker-panel-select li:hover { background: #fff2f0; } li.ant-time-picker-panel-select-option-selected { - background: #f5f5f5; font-weight: bold; + background: #f5f5f5; } li.ant-time-picker-panel-select-option-selected:hover { background: #f5f5f5; @@ -17576,20 +19028,20 @@ li.ant-time-picker-panel-select-option-disabled:hover { .ant-time-picker-panel-combobox { zoom: 1; } -.ant-time-picker-panel-combobox:before, -.ant-time-picker-panel-combobox:after { +.ant-time-picker-panel-combobox::before, +.ant-time-picker-panel-combobox::after { content: ''; display: table; } -.ant-time-picker-panel-combobox:after { +.ant-time-picker-panel-combobox::after { clear: both; } -.ant-time-picker-panel-combobox:before, -.ant-time-picker-panel-combobox:after { +.ant-time-picker-panel-combobox::before, +.ant-time-picker-panel-combobox::after { content: ''; display: table; } -.ant-time-picker-panel-combobox:after { +.ant-time-picker-panel-combobox::after { clear: both; } .ant-time-picker-panel-addon { @@ -17621,34 +19073,36 @@ li.ant-time-picker-panel-select-option-disabled:hover { animation-name: antSlideUpOut; } .ant-time-picker { - font-family: "Chinese Quote", -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"; - font-size: 14px; - font-variant: tabular-nums; - line-height: 1.5; - color: rgba(0, 0, 0, 0.65); box-sizing: border-box; margin: 0; padding: 0; + color: rgba(0, 0, 0, 0.65); + font-size: 14px; + font-variant: tabular-nums; + line-height: 1.5; list-style: none; + font-feature-settings: 'tnum'; position: relative; display: inline-block; + width: 128px; outline: none; + -webkit-transition: opacity 0.3s; transition: opacity 0.3s; - width: 128px; } .ant-time-picker-input { position: relative; display: inline-block; - padding: 4px 11px; width: 100%; height: 32px; + padding: 4px 11px; + color: rgba(0, 0, 0, 0.65); font-size: 14px; line-height: 1.5; - color: rgba(0, 0, 0, 0.65); background-color: #fff; background-image: none; border: 1px solid #d9d9d9; border-radius: 5px; + -webkit-transition: all 0.3s; transition: all 0.3s; } .ant-time-picker-input::-moz-placeholder { @@ -17667,15 +19121,15 @@ li.ant-time-picker-panel-select-option-disabled:hover { } .ant-time-picker-input:focus { border-color: #f2726f; + border-right-width: 1px !important; outline: 0; box-shadow: 0 0 0 2px rgba(230, 68, 72, 0.2); - border-right-width: 1px !important; } .ant-time-picker-input-disabled { + color: rgba(0, 0, 0, 0.25); background-color: #f5f5f5; - opacity: 1; cursor: not-allowed; - color: rgba(0, 0, 0, 0.25); + opacity: 1; } .ant-time-picker-input-disabled:hover { border-color: #e6d8d8; @@ -17684,24 +19138,25 @@ li.ant-time-picker-panel-select-option-disabled:hover { textarea.ant-time-picker-input { max-width: 100%; height: auto; + min-height: 32px; vertical-align: bottom; + -webkit-transition: all 0.3s, height 0s; transition: all 0.3s, height 0s; - min-height: 32px; } .ant-time-picker-input-lg { - padding: 6px 11px; height: 40px; + padding: 6px 11px; font-size: 16px; } .ant-time-picker-input-sm { - padding: 1px 7px; height: 24px; + padding: 1px 7px; } .ant-time-picker-input[disabled] { + color: rgba(0, 0, 0, 0.25); background-color: #f5f5f5; - opacity: 1; cursor: not-allowed; - color: rgba(0, 0, 0, 0.25); + opacity: 1; } .ant-time-picker-input[disabled]:hover { border-color: #e6d8d8; @@ -17710,60 +19165,78 @@ textarea.ant-time-picker-input { .ant-time-picker-open { opacity: 0; } -.ant-time-picker-icon { +.ant-time-picker-icon, +.ant-time-picker-clear { position: absolute; + top: 50%; + right: 11px; + z-index: 1; + width: 14px; + height: 14px; + margin-top: -7px; + color: rgba(0, 0, 0, 0.25); + line-height: 14px; + -webkit-transition: all 0.3s cubic-bezier(0.645, 0.045, 0.355, 1); + transition: all 0.3s cubic-bezier(0.645, 0.045, 0.355, 1); -webkit-user-select: none; -moz-user-select: none; -ms-user-select: none; user-select: none; - transition: all 0.3s cubic-bezier(0.645, 0.045, 0.355, 1); - width: 14px; - height: 14px; - line-height: 14px; - right: 11px; - color: rgba(0, 0, 0, 0.25); - top: 50%; - margin-top: -7px; } -.ant-time-picker-icon .ant-time-picker-clock-icon { - color: rgba(0, 0, 0, 0.25); +.ant-time-picker-icon .ant-time-picker-clock-icon, +.ant-time-picker-clear .ant-time-picker-clock-icon { display: block; + color: rgba(0, 0, 0, 0.25); line-height: 1; } +.ant-time-picker-clear { + z-index: 2; + background: #fff; + opacity: 0; + pointer-events: none; +} +.ant-time-picker-clear:hover { + color: rgba(0, 0, 0, 0.45); +} +.ant-time-picker:hover .ant-time-picker-clear { + opacity: 1; + pointer-events: auto; +} .ant-time-picker-large .ant-time-picker-input { - padding: 6px 11px; height: 40px; + padding: 6px 11px; font-size: 16px; } .ant-time-picker-small .ant-time-picker-input { - padding: 1px 7px; height: 24px; + padding: 1px 7px; } -.ant-time-picker-small .ant-time-picker-icon { +.ant-time-picker-small .ant-time-picker-icon, +.ant-time-picker-small .ant-time-picker-clear { right: 7px; } .ant-timeline { - font-family: "Chinese Quote", -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"; + box-sizing: border-box; + color: rgba(0, 0, 0, 0.65); font-size: 14px; font-variant: tabular-nums; line-height: 1.5; - color: rgba(0, 0, 0, 0.65); - box-sizing: border-box; - list-style: none; + font-feature-settings: 'tnum'; margin: 0; padding: 0; + list-style: none; } .ant-timeline-item { position: relative; - padding: 0 0 20px; - list-style: none; margin: 0; + padding: 0 0 20px; font-size: 14px; + list-style: none; } .ant-timeline-item-tail { position: absolute; - left: 4px; top: 0.75em; + left: 4px; height: 100%; border-left: 2px solid #e8e8e8; } @@ -17778,44 +19251,45 @@ textarea.ant-time-picker-input { width: 10px; height: 10px; background-color: #fff; - border-radius: 100px; border: 2px solid transparent; + border-radius: 100px; } .ant-timeline-item-head-blue { - border-color: #E64448; color: #E64448; + border-color: #E64448; } .ant-timeline-item-head-red { - border-color: #f5222d; color: #f5222d; + border-color: #f5222d; } .ant-timeline-item-head-green { - border-color: #52c41a; color: #52c41a; + border-color: #52c41a; } .ant-timeline-item-head-custom { position: absolute; - text-align: center; - line-height: 1; - margin-top: 0; - border: 0; - height: auto; - border-radius: 0; - padding: 3px 1px; - transform: translate(-50%, -50%); top: 5.5px; left: 5px; width: auto; + height: auto; + margin-top: 0; + padding: 3px 1px; + line-height: 1; + text-align: center; + border: 0; + border-radius: 0; + -webkit-transform: translate(-50%, -50%); + transform: translate(-50%, -50%); } .ant-timeline-item-content { - margin: 0 0 0 18px; position: relative; top: -6px; + margin: 0 0 0 18px; } -.ant-timeline-item-last .ant-timeline-item-tail { +.ant-timeline-item-last > .ant-timeline-item-tail { display: none; } -.ant-timeline-item-last .ant-timeline-item-content { +.ant-timeline-item-last > .ant-timeline-item-content { min-height: 48px; } .ant-timeline.ant-timeline-alternate .ant-timeline-item-tail, @@ -17836,17 +19310,17 @@ textarea.ant-time-picker-input { } .ant-timeline.ant-timeline-alternate .ant-timeline-item-left .ant-timeline-item-content, .ant-timeline.ant-timeline-right .ant-timeline-item-left .ant-timeline-item-content { - text-align: left; left: 50%; width: 50%; + text-align: left; } .ant-timeline.ant-timeline-alternate .ant-timeline-item-right .ant-timeline-item-content, .ant-timeline.ant-timeline-right .ant-timeline-item-right .ant-timeline-item-content { - text-align: right; right: 50%; - margin-right: 18px; - width: 50%; left: -30px; + width: 50%; + margin-right: 18px; + text-align: right; } .ant-timeline.ant-timeline-right .ant-timeline-item-right .ant-timeline-item-tail, .ant-timeline.ant-timeline-right .ant-timeline-item-right .ant-timeline-item-head, @@ -17855,38 +19329,38 @@ textarea.ant-time-picker-input { } .ant-timeline.ant-timeline-right .ant-timeline-item-right .ant-timeline-item-content { right: 0; - width: 100%; left: -30px; + width: 100%; } .ant-timeline.ant-timeline-pending .ant-timeline-item-last .ant-timeline-item-tail { - border-left: 2px dotted #e8e8e8; display: block; + border-left: 2px dotted #e8e8e8; } .ant-timeline.ant-timeline-reverse .ant-timeline-item-last .ant-timeline-item-tail { display: none; } .ant-timeline.ant-timeline-reverse .ant-timeline-item-pending .ant-timeline-item-tail { - border-left: 2px dotted #e8e8e8; display: block; + border-left: 2px dotted #e8e8e8; } .ant-timeline.ant-timeline-reverse .ant-timeline-item-pending .ant-timeline-item-content { min-height: 48px; } .ant-tooltip { - font-family: "Chinese Quote", -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"; - font-size: 14px; - font-variant: tabular-nums; - line-height: 1.5; - color: rgba(0, 0, 0, 0.65); box-sizing: border-box; margin: 0; padding: 0; + color: rgba(0, 0, 0, 0.65); + font-size: 14px; + font-variant: tabular-nums; + line-height: 1.5; list-style: none; + font-feature-settings: 'tnum'; position: absolute; z-index: 1060; display: block; - visibility: visible; max-width: 250px; + visibility: visible; } .ant-tooltip-hidden { display: none; @@ -17912,22 +19386,23 @@ textarea.ant-time-picker-input { padding-right: 8px; } .ant-tooltip-inner { + min-width: 30px; + min-height: 32px; padding: 6px 8px; color: #fff; text-align: left; text-decoration: none; + word-wrap: break-word; background-color: rgba(0, 0, 0, 0.75); border-radius: 5px; box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15); - min-height: 32px; - word-wrap: break-word; } .ant-tooltip-arrow { position: absolute; width: 0; height: 0; - border-color: transparent; border-style: solid; + border-color: transparent; } .ant-tooltip-placement-top .ant-tooltip-arrow, .ant-tooltip-placement-topLeft .ant-tooltip-arrow, @@ -17998,29 +19473,29 @@ textarea.ant-time-picker-input { right: 16px; } .ant-transfer { - font-family: "Chinese Quote", -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"; - font-size: 14px; - font-variant: tabular-nums; - line-height: 1.5; - color: rgba(0, 0, 0, 0.65); box-sizing: border-box; margin: 0; padding: 0; + color: rgba(0, 0, 0, 0.65); + font-size: 14px; + font-variant: tabular-nums; + line-height: 1.5; list-style: none; + font-feature-settings: 'tnum'; position: relative; } .ant-transfer-disabled .ant-transfer-list { background: #f5f5f5; } .ant-transfer-list { - border: 1px solid #d9d9d9; - display: inline-block; - border-radius: 5px; - vertical-align: middle; position: relative; + display: inline-block; width: 180px; height: 200px; padding-top: 34px; + vertical-align: middle; + border: 1px solid #d9d9d9; + border-radius: 5px; } .ant-transfer-list-with-footer { padding-bottom: 34px; @@ -18029,18 +19504,19 @@ textarea.ant-time-picker-input { padding: 0 8px; } .ant-transfer-list-search-action { - color: rgba(0, 0, 0, 0.25); position: absolute; top: 4px; right: 4px; bottom: 4px; width: 28px; + color: rgba(0, 0, 0, 0.25); line-height: 32px; text-align: center; } .ant-transfer-list-search-action .anticon { - transition: all 0.3s; color: rgba(0, 0, 0, 0.25); + -webkit-transition: all 0.3s; + transition: all 0.3s; } .ant-transfer-list-search-action .anticon:hover { color: rgba(0, 0, 0, 0.45); @@ -18049,87 +19525,92 @@ span.ant-transfer-list-search-action { pointer-events: none; } .ant-transfer-list-header { - padding: 6px 12px; - border-radius: 5px 5px 0 0; - background: #fff; - color: rgba(0, 0, 0, 0.65); - border-bottom: 1px solid #e8e8e8; - overflow: hidden; position: absolute; top: 0; left: 0; width: 100%; + padding: 6px 12px; + overflow: hidden; + color: rgba(0, 0, 0, 0.65); + background: #fff; + border-bottom: 1px solid #e8e8e8; + border-radius: 5px 5px 0 0; } .ant-transfer-list-header-title { position: absolute; right: 12px; } .ant-transfer-list-body { - font-size: 14px; position: relative; height: 100%; + font-size: 14px; } .ant-transfer-list-body-search-wrapper { position: absolute; top: 0; left: 0; - padding: 4px; width: 100%; + padding: 4px; } .ant-transfer-list-body-with-search { padding-top: 40px; } .ant-transfer-list-content { height: 100%; + margin: 0; + padding: 0; overflow: auto; list-style: none; - padding: 0; - margin: 0; } .ant-transfer-list-content > .LazyLoad { -webkit-animation: transferHighlightIn 1s; animation: transferHighlightIn 1s; } .ant-transfer-list-content-item { + min-height: 32px; + padding: 6px 12px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; - padding: 6px 12px; - min-height: 32px; + -webkit-transition: all 0.3s; transition: all 0.3s; } .ant-transfer-list-content-item > span { padding-right: 0; } .ant-transfer-list-content-item:not(.ant-transfer-list-content-item-disabled):hover { - cursor: pointer; background-color: #fff2f0; + cursor: pointer; } .ant-transfer-list-content-item-disabled { - cursor: not-allowed; color: rgba(0, 0, 0, 0.25); + cursor: not-allowed; } .ant-transfer-list-body-not-found { - padding-top: 0; - color: rgba(0, 0, 0, 0.25); - text-align: center; position: absolute; top: 50%; width: 100%; - margin-top: -10px; + padding-top: 0; + color: rgba(0, 0, 0, 0.25); + text-align: center; + -webkit-transform: translateY(-50%); + transform: translateY(-50%); +} +.ant-transfer-list-body-with-search .ant-transfer-list-body-not-found { + margin-top: 16px; } .ant-transfer-list-footer { - border-top: 1px solid #e8e8e8; - border-radius: 0 0 5px 5px; position: absolute; bottom: 0; left: 0; width: 100%; + border-top: 1px solid #e8e8e8; + border-radius: 0 0 5px 5px; } .ant-transfer-operation { display: inline-block; - overflow: hidden; margin: 0 8px; + overflow: hidden; vertical-align: middle; } .ant-transfer-operation .ant-btn { @@ -18176,18 +19657,18 @@ span.ant-transfer-list-search-action { } .ant-tree.ant-tree-directory > li span.ant-tree-node-content-wrapper, .ant-tree.ant-tree-directory .ant-tree-child-tree > li span.ant-tree-node-content-wrapper { + border-radius: 0; -webkit-user-select: none; -moz-user-select: none; -ms-user-select: none; user-select: none; - border-radius: 0; } .ant-tree.ant-tree-directory > li span.ant-tree-node-content-wrapper:hover, .ant-tree.ant-tree-directory .ant-tree-child-tree > li span.ant-tree-node-content-wrapper:hover { background: transparent; } -.ant-tree.ant-tree-directory > li span.ant-tree-node-content-wrapper:hover:before, -.ant-tree.ant-tree-directory .ant-tree-child-tree > li span.ant-tree-node-content-wrapper:hover:before { +.ant-tree.ant-tree-directory > li span.ant-tree-node-content-wrapper:hover::before, +.ant-tree.ant-tree-directory .ant-tree-child-tree > li span.ant-tree-node-content-wrapper:hover::before { background: #fff2f0; } .ant-tree.ant-tree-directory > li span.ant-tree-node-content-wrapper.ant-tree-node-selected, @@ -18195,14 +19676,15 @@ span.ant-transfer-list-search-action { color: #fff; background: transparent; } -.ant-tree.ant-tree-directory > li span.ant-tree-node-content-wrapper:before, -.ant-tree.ant-tree-directory .ant-tree-child-tree > li span.ant-tree-node-content-wrapper:before { - content: ''; +.ant-tree.ant-tree-directory > li span.ant-tree-node-content-wrapper::before, +.ant-tree.ant-tree-directory .ant-tree-child-tree > li span.ant-tree-node-content-wrapper::before { position: absolute; - left: 0; right: 0; + left: 0; height: 24px; + -webkit-transition: all 0.3s; transition: all 0.3s; + content: ''; } .ant-tree.ant-tree-directory > li span.ant-tree-node-content-wrapper > span, .ant-tree.ant-tree-directory .ant-tree-child-tree > li span.ant-tree-node-content-wrapper > span { @@ -18217,63 +19699,63 @@ span.ant-transfer-list-search-action { .ant-tree.ant-tree-directory .ant-tree-child-tree > li.ant-tree-treenode-selected > span.ant-tree-checkbox .ant-tree-checkbox-inner { border-color: #E64448; } -.ant-tree.ant-tree-directory > li.ant-tree-treenode-selected > span.ant-tree-checkbox.ant-tree-checkbox-checked:after, -.ant-tree.ant-tree-directory .ant-tree-child-tree > li.ant-tree-treenode-selected > span.ant-tree-checkbox.ant-tree-checkbox-checked:after { +.ant-tree.ant-tree-directory > li.ant-tree-treenode-selected > span.ant-tree-checkbox.ant-tree-checkbox-checked::after, +.ant-tree.ant-tree-directory .ant-tree-child-tree > li.ant-tree-treenode-selected > span.ant-tree-checkbox.ant-tree-checkbox-checked::after { border-color: #fff; } .ant-tree.ant-tree-directory > li.ant-tree-treenode-selected > span.ant-tree-checkbox.ant-tree-checkbox-checked .ant-tree-checkbox-inner, .ant-tree.ant-tree-directory .ant-tree-child-tree > li.ant-tree-treenode-selected > span.ant-tree-checkbox.ant-tree-checkbox-checked .ant-tree-checkbox-inner { background: #fff; } -.ant-tree.ant-tree-directory > li.ant-tree-treenode-selected > span.ant-tree-checkbox.ant-tree-checkbox-checked .ant-tree-checkbox-inner:after, -.ant-tree.ant-tree-directory .ant-tree-child-tree > li.ant-tree-treenode-selected > span.ant-tree-checkbox.ant-tree-checkbox-checked .ant-tree-checkbox-inner:after { +.ant-tree.ant-tree-directory > li.ant-tree-treenode-selected > span.ant-tree-checkbox.ant-tree-checkbox-checked .ant-tree-checkbox-inner::after, +.ant-tree.ant-tree-directory .ant-tree-child-tree > li.ant-tree-treenode-selected > span.ant-tree-checkbox.ant-tree-checkbox-checked .ant-tree-checkbox-inner::after { border-color: #E64448; } -.ant-tree.ant-tree-directory > li.ant-tree-treenode-selected > span.ant-tree-node-content-wrapper:before, -.ant-tree.ant-tree-directory .ant-tree-child-tree > li.ant-tree-treenode-selected > span.ant-tree-node-content-wrapper:before { +.ant-tree.ant-tree-directory > li.ant-tree-treenode-selected > span.ant-tree-node-content-wrapper::before, +.ant-tree.ant-tree-directory .ant-tree-child-tree > li.ant-tree-treenode-selected > span.ant-tree-node-content-wrapper::before { background: #E64448; } .ant-tree-checkbox { - font-family: "Chinese Quote", -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"; - font-size: 14px; - font-variant: tabular-nums; - line-height: 1.5; - color: rgba(0, 0, 0, 0.65); box-sizing: border-box; margin: 0; padding: 0; + color: rgba(0, 0, 0, 0.65); + font-size: 14px; + font-variant: tabular-nums; + line-height: 1.5; list-style: none; - white-space: nowrap; - cursor: pointer; - outline: none; + font-feature-settings: 'tnum'; + position: relative; + top: -0.09em; display: inline-block; line-height: 1; - position: relative; + white-space: nowrap; vertical-align: middle; - top: -0.09em; + outline: none; + cursor: pointer; } .ant-tree-checkbox-wrapper:hover .ant-tree-checkbox-inner, .ant-tree-checkbox:hover .ant-tree-checkbox-inner, .ant-tree-checkbox-input:focus + .ant-tree-checkbox-inner { border-color: #E64448; } -.ant-tree-checkbox-checked:after { +.ant-tree-checkbox-checked::after { position: absolute; top: 0; left: 0; width: 100%; height: 100%; - border-radius: 2px; border: 1px solid #E64448; - content: ''; + border-radius: 2px; + visibility: hidden; -webkit-animation: antCheckboxEffect 0.36s ease-in-out; animation: antCheckboxEffect 0.36s ease-in-out; -webkit-animation-fill-mode: both; animation-fill-mode: both; - visibility: hidden; + content: ''; } -.ant-tree-checkbox:hover:after, -.ant-tree-checkbox-wrapper:hover .ant-tree-checkbox:after { +.ant-tree-checkbox:hover::after, +.ant-tree-checkbox-wrapper:hover .ant-tree-checkbox::after { visibility: visible; } .ant-tree-checkbox-inner { @@ -18283,49 +19765,54 @@ span.ant-transfer-list-search-action { display: block; width: 16px; height: 16px; + background-color: #fff; border: 1px solid #d9d9d9; border-radius: 2px; - background-color: #fff; - transition: all 0.3s; border-collapse: separate; + -webkit-transition: all 0.3s; + transition: all 0.3s; } -.ant-tree-checkbox-inner:after { - transform: rotate(45deg) scale(0); +.ant-tree-checkbox-inner::after { position: absolute; - left: 4.57142857px; - top: 1.14285714px; + top: 50%; + left: 21%; display: table; width: 5.71428571px; height: 9.14285714px; border: 2px solid #fff; border-top: 0; border-left: 0; - content: ' '; - transition: all 0.1s cubic-bezier(0.71, -0.46, 0.88, 0.6), opacity 0.1s; + -webkit-transform: rotate(45deg) scale(0) translate(-50%, -50%); + transform: rotate(45deg) scale(0) translate(-50%, -50%); opacity: 0; + -webkit-transition: all 0.1s cubic-bezier(0.71, -0.46, 0.88, 0.6), opacity 0.1s; + transition: all 0.1s cubic-bezier(0.71, -0.46, 0.88, 0.6), opacity 0.1s; + content: ' '; } .ant-tree-checkbox-input { position: absolute; - left: 0; - z-index: 1; - cursor: pointer; - opacity: 0; top: 0; - bottom: 0; right: 0; + bottom: 0; + left: 0; + z-index: 1; width: 100%; height: 100%; + cursor: pointer; + opacity: 0; } -.ant-tree-checkbox-checked .ant-tree-checkbox-inner:after { - transform: rotate(45deg) scale(1); +.ant-tree-checkbox-checked .ant-tree-checkbox-inner::after { position: absolute; display: table; border: 2px solid #fff; border-top: 0; border-left: 0; - content: ' '; - transition: all 0.2s cubic-bezier(0.12, 0.4, 0.29, 1.46) 0.1s; + -webkit-transform: rotate(45deg) scale(1) translate(-50%, -50%); + transform: rotate(45deg) scale(1) translate(-50%, -50%); opacity: 1; + -webkit-transition: all 0.2s cubic-bezier(0.12, 0.4, 0.29, 1.46) 0.1s; + transition: all 0.2s cubic-bezier(0.12, 0.4, 0.29, 1.46) 0.1s; + content: ' '; } .ant-tree-checkbox-checked .ant-tree-checkbox-inner { background-color: #E64448; @@ -18334,60 +19821,60 @@ span.ant-transfer-list-search-action { .ant-tree-checkbox-disabled { cursor: not-allowed; } -.ant-tree-checkbox-disabled.ant-tree-checkbox-checked .ant-tree-checkbox-inner:after { +.ant-tree-checkbox-disabled.ant-tree-checkbox-checked .ant-tree-checkbox-inner::after { + border-color: rgba(0, 0, 0, 0.25); -webkit-animation-name: none; animation-name: none; - border-color: rgba(0, 0, 0, 0.25); } .ant-tree-checkbox-disabled .ant-tree-checkbox-input { cursor: not-allowed; } .ant-tree-checkbox-disabled .ant-tree-checkbox-inner { - border-color: #d9d9d9 !important; background-color: #f5f5f5; + border-color: #d9d9d9 !important; } -.ant-tree-checkbox-disabled .ant-tree-checkbox-inner:after { - -webkit-animation-name: none; - animation-name: none; +.ant-tree-checkbox-disabled .ant-tree-checkbox-inner::after { border-color: #f5f5f5; border-collapse: separate; + -webkit-animation-name: none; + animation-name: none; } .ant-tree-checkbox-disabled + span { color: rgba(0, 0, 0, 0.25); cursor: not-allowed; } .ant-tree-checkbox-wrapper { - font-family: "Chinese Quote", -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"; - font-size: 14px; - font-variant: tabular-nums; - line-height: 1.5; - color: rgba(0, 0, 0, 0.65); box-sizing: border-box; margin: 0; padding: 0; + color: rgba(0, 0, 0, 0.65); + font-size: 14px; + font-variant: tabular-nums; + line-height: 1.5; list-style: none; + font-feature-settings: 'tnum'; + display: inline-block; line-height: unset; cursor: pointer; - display: inline-block; } .ant-tree-checkbox-wrapper + .ant-tree-checkbox-wrapper { margin-left: 8px; } .ant-tree-checkbox-wrapper + span, .ant-tree-checkbox + span { - padding-left: 8px; padding-right: 8px; + padding-left: 8px; } .ant-tree-checkbox-group { - font-family: "Chinese Quote", -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"; - font-size: 14px; - font-variant: tabular-nums; - line-height: 1.5; - color: rgba(0, 0, 0, 0.65); box-sizing: border-box; margin: 0; padding: 0; + color: rgba(0, 0, 0, 0.65); + font-size: 14px; + font-variant: tabular-nums; + line-height: 1.5; list-style: none; + font-feature-settings: 'tnum'; display: inline-block; } .ant-tree-checkbox-group-item { @@ -18404,61 +19891,62 @@ span.ant-transfer-list-search-action { background-color: #fff; border-color: #d9d9d9; } -.ant-tree-checkbox-indeterminate .ant-tree-checkbox-inner:after { - content: ' '; - transform: translate(-50%, -50%) scale(1); - border: 0; - left: 50%; +.ant-tree-checkbox-indeterminate .ant-tree-checkbox-inner::after { top: 50%; + left: 50%; width: 8px; height: 8px; background-color: #E64448; + border: 0; + -webkit-transform: translate(-50%, -50%) scale(1); + transform: translate(-50%, -50%) scale(1); opacity: 1; + content: ' '; } -.ant-tree-checkbox-indeterminate.ant-tree-checkbox-disabled .ant-tree-checkbox-inner:after { - border-color: rgba(0, 0, 0, 0.25); +.ant-tree-checkbox-indeterminate.ant-tree-checkbox-disabled .ant-tree-checkbox-inner::after { background-color: rgba(0, 0, 0, 0.25); + border-color: rgba(0, 0, 0, 0.25); } .ant-tree { - font-family: "Chinese Quote", -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"; + box-sizing: border-box; + color: rgba(0, 0, 0, 0.65); font-size: 14px; font-variant: tabular-nums; line-height: 1.5; - color: rgba(0, 0, 0, 0.65); - box-sizing: border-box; list-style: none; + font-feature-settings: 'tnum'; margin: 0; padding: 0; } .ant-tree ol, .ant-tree ul { - list-style: none; margin: 0; padding: 0; + list-style: none; } .ant-tree li { - padding: 4px 0; margin: 0; - list-style: none; + padding: 4px 0; white-space: nowrap; + list-style: none; outline: 0; } .ant-tree li span[draggable], .ant-tree li span[draggable='true'] { + line-height: 20px; + border-top: 2px transparent solid; + border-bottom: 2px transparent solid; -webkit-user-select: none; -moz-user-select: none; -ms-user-select: none; user-select: none; - border-top: 2px transparent solid; - border-bottom: 2px transparent solid; /* Required to make elements draggable in old WebKit */ -khtml-user-drag: element; -webkit-user-drag: element; - line-height: 20px; } .ant-tree li.drag-over > span[draggable] { - background-color: #E64448; color: white; + background-color: #E64448; opacity: 0.8; } .ant-tree li.drag-over-gap-top > span[draggable] { @@ -18473,14 +19961,15 @@ span.ant-transfer-list-search-action { } .ant-tree li.ant-tree-treenode-loading span.ant-tree-switcher.ant-tree-switcher_open .ant-tree-switcher-loading-icon, .ant-tree li.ant-tree-treenode-loading span.ant-tree-switcher.ant-tree-switcher_close .ant-tree-switcher-loading-icon { - display: inline-block; position: absolute; left: 0; + display: inline-block; width: 24px; height: 24px; color: #E64448; - transform: none; font-size: 14px; + -webkit-transform: none; + transform: none; } .ant-tree li.ant-tree-treenode-loading span.ant-tree-switcher.ant-tree-switcher_open .ant-tree-switcher-loading-icon svg, .ant-tree li.ant-tree-treenode-loading span.ant-tree-switcher.ant-tree-switcher_close .ant-tree-switcher-loading-icon svg { @@ -18491,8 +19980,8 @@ span.ant-transfer-list-search-action { left: 0; margin: auto; } -:root .ant-tree li.ant-tree-treenode-loading span.ant-tree-switcher.ant-tree-switcher_open:after, -:root .ant-tree li.ant-tree-treenode-loading span.ant-tree-switcher.ant-tree-switcher_close:after { +:root .ant-tree li.ant-tree-treenode-loading span.ant-tree-switcher.ant-tree-switcher_open::after, +:root .ant-tree li.ant-tree-treenode-loading span.ant-tree-switcher.ant-tree-switcher_close::after { opacity: 0; } .ant-tree li ul { @@ -18501,16 +19990,17 @@ span.ant-transfer-list-search-action { } .ant-tree li .ant-tree-node-content-wrapper { display: inline-block; - padding: 0 5px; - border-radius: 2px; + height: 24px; margin: 0; - cursor: pointer; + padding: 0 5px; + color: rgba(0, 0, 0, 0.65); + line-height: 24px; text-decoration: none; vertical-align: top; - color: rgba(0, 0, 0, 0.65); + border-radius: 2px; + cursor: pointer; + -webkit-transition: all 0.3s; transition: all 0.3s; - height: 24px; - line-height: 24px; } .ant-tree li .ant-tree-node-content-wrapper:hover { background-color: #fff2f0; @@ -18523,16 +20013,16 @@ span.ant-transfer-list-search-action { } .ant-tree li span.ant-tree-switcher, .ant-tree li span.ant-tree-iconEle { - margin: 0; + display: inline-block; width: 24px; height: 24px; + margin: 0; line-height: 24px; - display: inline-block; + text-align: center; vertical-align: top; border: 0 none; - cursor: pointer; outline: none; - text-align: center; + cursor: pointer; } .ant-tree li span.ant-tree-switcher { position: relative; @@ -18544,7 +20034,8 @@ span.ant-transfer-list-search-action { .ant-tree li span.ant-tree-switcher.ant-tree-switcher_open .ant-select-switcher-icon { font-size: 12px; font-size: 10px \9; - transform: scale(0.83333333) rotate(0deg); + -webkit-transform: scale(0.83333333) rotate(0deg); + transform: scale(0.83333333) rotate(0deg); display: inline-block; font-weight: bold; } @@ -18554,13 +20045,17 @@ span.ant-transfer-list-search-action { } .ant-tree li span.ant-tree-switcher.ant-tree-switcher_open .ant-tree-switcher-icon svg, .ant-tree li span.ant-tree-switcher.ant-tree-switcher_open .ant-select-switcher-icon svg { + -webkit-transition: -webkit-transform 0.3s; + transition: -webkit-transform 0.3s; transition: transform 0.3s; + transition: transform 0.3s, -webkit-transform 0.3s; } .ant-tree li span.ant-tree-switcher.ant-tree-switcher_close .ant-tree-switcher-icon, .ant-tree li span.ant-tree-switcher.ant-tree-switcher_close .ant-select-switcher-icon { font-size: 12px; font-size: 10px \9; - transform: scale(0.83333333) rotate(0deg); + -webkit-transform: scale(0.83333333) rotate(0deg); + transform: scale(0.83333333) rotate(0deg); display: inline-block; font-weight: bold; } @@ -18570,18 +20065,19 @@ span.ant-transfer-list-search-action { } .ant-tree li span.ant-tree-switcher.ant-tree-switcher_close .ant-tree-switcher-icon svg, .ant-tree li span.ant-tree-switcher.ant-tree-switcher_close .ant-select-switcher-icon svg { + -webkit-transition: -webkit-transform 0.3s; + transition: -webkit-transform 0.3s; transition: transform 0.3s; + transition: transform 0.3s, -webkit-transform 0.3s; } .ant-tree li span.ant-tree-switcher.ant-tree-switcher_close .ant-tree-switcher-icon svg { - transform: rotate(-90deg); + -webkit-transform: rotate(-90deg); + transform: rotate(-90deg); } -.ant-tree li:last-child > span.ant-tree-switcher:before, -.ant-tree li:last-child > span.ant-tree-iconEle:before { +.ant-tree li:last-child > span.ant-tree-switcher::before, +.ant-tree li:last-child > span.ant-tree-iconEle::before { display: none; } -.ant-tree ul > li:first-child { - padding-top: 4px; -} .ant-tree > li:first-child { padding-top: 7px; } @@ -18621,92 +20117,101 @@ li.ant-tree-treenode-disabled > .ant-tree-node-content-wrapper:hover { position: relative; } .ant-tree.ant-tree-show-line li span.ant-tree-switcher { - background: #fff; color: rgba(0, 0, 0, 0.45); + background: #fff; } .ant-tree.ant-tree-show-line li span.ant-tree-switcher.ant-tree-switcher-noop .ant-tree-switcher-icon, .ant-tree.ant-tree-show-line li span.ant-tree-switcher.ant-tree-switcher-noop .ant-select-switcher-icon { - font-size: 12px; display: inline-block; font-weight: normal; + font-size: 12px; } .ant-tree.ant-tree-show-line li span.ant-tree-switcher.ant-tree-switcher-noop .ant-tree-switcher-icon svg, .ant-tree.ant-tree-show-line li span.ant-tree-switcher.ant-tree-switcher-noop .ant-select-switcher-icon svg { + -webkit-transition: -webkit-transform 0.3s; + transition: -webkit-transform 0.3s; transition: transform 0.3s; + transition: transform 0.3s, -webkit-transform 0.3s; } .ant-tree.ant-tree-show-line li span.ant-tree-switcher.ant-tree-switcher_open .ant-tree-switcher-icon, .ant-tree.ant-tree-show-line li span.ant-tree-switcher.ant-tree-switcher_open .ant-select-switcher-icon { - font-size: 12px; display: inline-block; font-weight: normal; + font-size: 12px; } .ant-tree.ant-tree-show-line li span.ant-tree-switcher.ant-tree-switcher_open .ant-tree-switcher-icon svg, .ant-tree.ant-tree-show-line li span.ant-tree-switcher.ant-tree-switcher_open .ant-select-switcher-icon svg { + -webkit-transition: -webkit-transform 0.3s; + transition: -webkit-transform 0.3s; transition: transform 0.3s; + transition: transform 0.3s, -webkit-transform 0.3s; } .ant-tree.ant-tree-show-line li span.ant-tree-switcher.ant-tree-switcher_close .ant-tree-switcher-icon, .ant-tree.ant-tree-show-line li span.ant-tree-switcher.ant-tree-switcher_close .ant-select-switcher-icon { - font-size: 12px; display: inline-block; font-weight: normal; + font-size: 12px; } .ant-tree.ant-tree-show-line li span.ant-tree-switcher.ant-tree-switcher_close .ant-tree-switcher-icon svg, .ant-tree.ant-tree-show-line li span.ant-tree-switcher.ant-tree-switcher_close .ant-select-switcher-icon svg { + -webkit-transition: -webkit-transform 0.3s; + transition: -webkit-transform 0.3s; transition: transform 0.3s; + transition: transform 0.3s, -webkit-transform 0.3s; } -.ant-tree.ant-tree-show-line li:not(:last-child):before { - content: ' '; - width: 1px; - border-left: 1px solid #d9d9d9; - height: 100%; +.ant-tree.ant-tree-show-line li:not(:last-child)::before { position: absolute; left: 12px; + width: 1px; + height: 100%; margin: 22px 0; + border-left: 1px solid #d9d9d9; + content: ' '; } .ant-tree.ant-tree-icon-hide .ant-tree-treenode-loading .ant-tree-iconEle { display: none; } .ant-select-tree-checkbox { - font-family: "Chinese Quote", -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"; - font-size: 14px; - font-variant: tabular-nums; - line-height: 1.5; - color: rgba(0, 0, 0, 0.65); box-sizing: border-box; margin: 0; padding: 0; + color: rgba(0, 0, 0, 0.65); + font-size: 14px; + font-variant: tabular-nums; + line-height: 1.5; list-style: none; - white-space: nowrap; - cursor: pointer; - outline: none; + font-feature-settings: 'tnum'; + position: relative; + top: -0.09em; display: inline-block; line-height: 1; - position: relative; + white-space: nowrap; vertical-align: middle; - top: -0.09em; + outline: none; + cursor: pointer; } .ant-select-tree-checkbox-wrapper:hover .ant-select-tree-checkbox-inner, .ant-select-tree-checkbox:hover .ant-select-tree-checkbox-inner, .ant-select-tree-checkbox-input:focus + .ant-select-tree-checkbox-inner { border-color: #E64448; } -.ant-select-tree-checkbox-checked:after { +.ant-select-tree-checkbox-checked::after { position: absolute; top: 0; left: 0; width: 100%; height: 100%; - border-radius: 2px; border: 1px solid #E64448; - content: ''; + border-radius: 2px; + visibility: hidden; -webkit-animation: antCheckboxEffect 0.36s ease-in-out; animation: antCheckboxEffect 0.36s ease-in-out; -webkit-animation-fill-mode: both; animation-fill-mode: both; - visibility: hidden; + content: ''; } -.ant-select-tree-checkbox:hover:after, -.ant-select-tree-checkbox-wrapper:hover .ant-select-tree-checkbox:after { +.ant-select-tree-checkbox:hover::after, +.ant-select-tree-checkbox-wrapper:hover .ant-select-tree-checkbox::after { visibility: visible; } .ant-select-tree-checkbox-inner { @@ -18716,49 +20221,54 @@ li.ant-tree-treenode-disabled > .ant-tree-node-content-wrapper:hover { display: block; width: 16px; height: 16px; + background-color: #fff; border: 1px solid #d9d9d9; border-radius: 2px; - background-color: #fff; - transition: all 0.3s; border-collapse: separate; + -webkit-transition: all 0.3s; + transition: all 0.3s; } -.ant-select-tree-checkbox-inner:after { - transform: rotate(45deg) scale(0); +.ant-select-tree-checkbox-inner::after { position: absolute; - left: 4.57142857px; - top: 1.14285714px; + top: 50%; + left: 21%; display: table; width: 5.71428571px; height: 9.14285714px; border: 2px solid #fff; border-top: 0; border-left: 0; - content: ' '; - transition: all 0.1s cubic-bezier(0.71, -0.46, 0.88, 0.6), opacity 0.1s; + -webkit-transform: rotate(45deg) scale(0) translate(-50%, -50%); + transform: rotate(45deg) scale(0) translate(-50%, -50%); opacity: 0; + -webkit-transition: all 0.1s cubic-bezier(0.71, -0.46, 0.88, 0.6), opacity 0.1s; + transition: all 0.1s cubic-bezier(0.71, -0.46, 0.88, 0.6), opacity 0.1s; + content: ' '; } -.ant-select-tree-checkbox-input { - position: absolute; - left: 0; - z-index: 1; - cursor: pointer; - opacity: 0; +.ant-select-tree-checkbox-input { + position: absolute; top: 0; - bottom: 0; right: 0; + bottom: 0; + left: 0; + z-index: 1; width: 100%; height: 100%; + cursor: pointer; + opacity: 0; } -.ant-select-tree-checkbox-checked .ant-select-tree-checkbox-inner:after { - transform: rotate(45deg) scale(1); +.ant-select-tree-checkbox-checked .ant-select-tree-checkbox-inner::after { position: absolute; display: table; border: 2px solid #fff; border-top: 0; border-left: 0; - content: ' '; - transition: all 0.2s cubic-bezier(0.12, 0.4, 0.29, 1.46) 0.1s; + -webkit-transform: rotate(45deg) scale(1) translate(-50%, -50%); + transform: rotate(45deg) scale(1) translate(-50%, -50%); opacity: 1; + -webkit-transition: all 0.2s cubic-bezier(0.12, 0.4, 0.29, 1.46) 0.1s; + transition: all 0.2s cubic-bezier(0.12, 0.4, 0.29, 1.46) 0.1s; + content: ' '; } .ant-select-tree-checkbox-checked .ant-select-tree-checkbox-inner { background-color: #E64448; @@ -18767,60 +20277,60 @@ li.ant-tree-treenode-disabled > .ant-tree-node-content-wrapper:hover { .ant-select-tree-checkbox-disabled { cursor: not-allowed; } -.ant-select-tree-checkbox-disabled.ant-select-tree-checkbox-checked .ant-select-tree-checkbox-inner:after { +.ant-select-tree-checkbox-disabled.ant-select-tree-checkbox-checked .ant-select-tree-checkbox-inner::after { + border-color: rgba(0, 0, 0, 0.25); -webkit-animation-name: none; animation-name: none; - border-color: rgba(0, 0, 0, 0.25); } .ant-select-tree-checkbox-disabled .ant-select-tree-checkbox-input { cursor: not-allowed; } .ant-select-tree-checkbox-disabled .ant-select-tree-checkbox-inner { - border-color: #d9d9d9 !important; background-color: #f5f5f5; + border-color: #d9d9d9 !important; } -.ant-select-tree-checkbox-disabled .ant-select-tree-checkbox-inner:after { - -webkit-animation-name: none; - animation-name: none; +.ant-select-tree-checkbox-disabled .ant-select-tree-checkbox-inner::after { border-color: #f5f5f5; border-collapse: separate; + -webkit-animation-name: none; + animation-name: none; } .ant-select-tree-checkbox-disabled + span { color: rgba(0, 0, 0, 0.25); cursor: not-allowed; } .ant-select-tree-checkbox-wrapper { - font-family: "Chinese Quote", -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"; - font-size: 14px; - font-variant: tabular-nums; - line-height: 1.5; - color: rgba(0, 0, 0, 0.65); box-sizing: border-box; margin: 0; padding: 0; + color: rgba(0, 0, 0, 0.65); + font-size: 14px; + font-variant: tabular-nums; + line-height: 1.5; list-style: none; + font-feature-settings: 'tnum'; + display: inline-block; line-height: unset; cursor: pointer; - display: inline-block; } .ant-select-tree-checkbox-wrapper + .ant-select-tree-checkbox-wrapper { margin-left: 8px; } .ant-select-tree-checkbox-wrapper + span, .ant-select-tree-checkbox + span { - padding-left: 8px; padding-right: 8px; + padding-left: 8px; } .ant-select-tree-checkbox-group { - font-family: "Chinese Quote", -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"; - font-size: 14px; - font-variant: tabular-nums; - line-height: 1.5; - color: rgba(0, 0, 0, 0.65); box-sizing: border-box; margin: 0; padding: 0; + color: rgba(0, 0, 0, 0.65); + font-size: 14px; + font-variant: tabular-nums; + line-height: 1.5; list-style: none; + font-feature-settings: 'tnum'; display: inline-block; } .ant-select-tree-checkbox-group-item { @@ -18837,39 +20347,40 @@ li.ant-tree-treenode-disabled > .ant-tree-node-content-wrapper:hover { background-color: #fff; border-color: #d9d9d9; } -.ant-select-tree-checkbox-indeterminate .ant-select-tree-checkbox-inner:after { - content: ' '; - transform: translate(-50%, -50%) scale(1); - border: 0; - left: 50%; +.ant-select-tree-checkbox-indeterminate .ant-select-tree-checkbox-inner::after { top: 50%; + left: 50%; width: 8px; height: 8px; background-color: #E64448; + border: 0; + -webkit-transform: translate(-50%, -50%) scale(1); + transform: translate(-50%, -50%) scale(1); opacity: 1; + content: ' '; } -.ant-select-tree-checkbox-indeterminate.ant-select-tree-checkbox-disabled .ant-select-tree-checkbox-inner:after { - border-color: rgba(0, 0, 0, 0.25); +.ant-select-tree-checkbox-indeterminate.ant-select-tree-checkbox-disabled .ant-select-tree-checkbox-inner::after { background-color: rgba(0, 0, 0, 0.25); + border-color: rgba(0, 0, 0, 0.25); } .ant-select-tree { - font-family: "Chinese Quote", -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"; + box-sizing: border-box; + padding: 0; + color: rgba(0, 0, 0, 0.65); font-size: 14px; font-variant: tabular-nums; line-height: 1.5; - color: rgba(0, 0, 0, 0.65); - box-sizing: border-box; - padding: 0; list-style: none; + font-feature-settings: 'tnum'; margin: 0; - padding: 0 4px; margin-top: -4px; + padding: 0 4px; } .ant-select-tree li { - padding: 0; margin: 8px 0; - list-style: none; + padding: 0; white-space: nowrap; + list-style: none; outline: 0; } .ant-select-tree li.filter-node > span { @@ -18881,14 +20392,15 @@ li.ant-tree-treenode-disabled > .ant-tree-node-content-wrapper:hover { } .ant-select-tree li .ant-select-tree-node-content-wrapper { display: inline-block; + width: calc(100% - 24px); + margin: 0; padding: 3px 5px; + color: rgba(0, 0, 0, 0.65); + text-decoration: none; border-radius: 2px; - margin: 0; cursor: pointer; - text-decoration: none; - color: rgba(0, 0, 0, 0.65); + -webkit-transition: all 0.3s; transition: all 0.3s; - width: calc(100% - 24px); } .ant-select-tree li .ant-select-tree-node-content-wrapper:hover { background-color: #fff2f0; @@ -18904,24 +20416,25 @@ li.ant-tree-treenode-disabled > .ant-tree-node-content-wrapper:hover { } .ant-select-tree li span.ant-select-tree-switcher, .ant-select-tree li span.ant-select-tree-iconEle { - margin: 0; + display: inline-block; width: 24px; height: 24px; + margin: 0; line-height: 22px; - display: inline-block; + text-align: center; vertical-align: middle; border: 0 none; - cursor: pointer; outline: none; - text-align: center; + cursor: pointer; } .ant-select-tree li span.ant-select-icon_loading .ant-select-switcher-loading-icon { - display: inline-block; position: absolute; left: 0; + display: inline-block; color: #E64448; - transform: none; font-size: 14px; + -webkit-transform: none; + transform: none; } .ant-select-tree li span.ant-select-icon_loading .ant-select-switcher-loading-icon svg { position: absolute; @@ -18941,7 +20454,8 @@ li.ant-tree-treenode-disabled > .ant-tree-node-content-wrapper:hover { .ant-select-tree li span.ant-select-tree-switcher.ant-select-tree-switcher_open .ant-select-switcher-icon { font-size: 12px; font-size: 10px \9; - transform: scale(0.83333333) rotate(0deg); + -webkit-transform: scale(0.83333333) rotate(0deg); + transform: scale(0.83333333) rotate(0deg); display: inline-block; font-weight: bold; } @@ -18951,13 +20465,17 @@ li.ant-tree-treenode-disabled > .ant-tree-node-content-wrapper:hover { } .ant-select-tree li span.ant-select-tree-switcher.ant-select-tree-switcher_open .ant-tree-switcher-icon svg, .ant-select-tree li span.ant-select-tree-switcher.ant-select-tree-switcher_open .ant-select-switcher-icon svg { + -webkit-transition: -webkit-transform 0.3s; + transition: -webkit-transform 0.3s; transition: transform 0.3s; + transition: transform 0.3s, -webkit-transform 0.3s; } .ant-select-tree li span.ant-select-tree-switcher.ant-select-tree-switcher_close .ant-tree-switcher-icon, .ant-select-tree li span.ant-select-tree-switcher.ant-select-tree-switcher_close .ant-select-switcher-icon { font-size: 12px; font-size: 10px \9; - transform: scale(0.83333333) rotate(0deg); + -webkit-transform: scale(0.83333333) rotate(0deg); + transform: scale(0.83333333) rotate(0deg); display: inline-block; font-weight: bold; } @@ -18967,21 +20485,26 @@ li.ant-tree-treenode-disabled > .ant-tree-node-content-wrapper:hover { } .ant-select-tree li span.ant-select-tree-switcher.ant-select-tree-switcher_close .ant-tree-switcher-icon svg, .ant-select-tree li span.ant-select-tree-switcher.ant-select-tree-switcher_close .ant-select-switcher-icon svg { + -webkit-transition: -webkit-transform 0.3s; + transition: -webkit-transform 0.3s; transition: transform 0.3s; + transition: transform 0.3s, -webkit-transform 0.3s; } .ant-select-tree li span.ant-select-tree-switcher.ant-select-tree-switcher_close .ant-select-switcher-icon svg { - transform: rotate(-90deg); + -webkit-transform: rotate(-90deg); + transform: rotate(-90deg); } .ant-select-tree li span.ant-select-tree-switcher.ant-select-tree-switcher_open .ant-select-switcher-loading-icon, .ant-select-tree li span.ant-select-tree-switcher.ant-select-tree-switcher_close .ant-select-switcher-loading-icon { - display: inline-block; position: absolute; left: 0; + display: inline-block; width: 24px; height: 24px; color: #E64448; - transform: none; font-size: 14px; + -webkit-transform: none; + transform: none; } .ant-select-tree li span.ant-select-tree-switcher.ant-select-tree-switcher_open .ant-select-switcher-loading-icon svg, .ant-select-tree li span.ant-select-tree-switcher.ant-select-tree-switcher_close .ant-select-switcher-loading-icon svg { @@ -19019,15 +20542,15 @@ li.ant-select-tree-treenode-disabled > .ant-select-tree-node-content-wrapper:hov vertical-align: top; } .ant-select-tree-dropdown { - font-family: "Chinese Quote", -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"; - font-size: 14px; - font-variant: tabular-nums; - line-height: 1.5; - color: rgba(0, 0, 0, 0.65); box-sizing: border-box; margin: 0; padding: 0; + color: rgba(0, 0, 0, 0.65); + font-size: 14px; + font-variant: tabular-nums; + line-height: 1.5; list-style: none; + font-feature-settings: 'tnum'; } .ant-select-tree-dropdown .ant-select-dropdown-search { display: block; @@ -19037,9 +20560,9 @@ li.ant-select-tree-treenode-disabled > .ant-select-tree-node-content-wrapper:hov width: 100%; } .ant-select-tree-dropdown .ant-select-dropdown-search .ant-select-search__field { - padding: 4px 7px; - width: 100%; box-sizing: border-box; + width: 100%; + padding: 4px 7px; border: 1px solid #d9d9d9; border-radius: 4px; outline: none; @@ -19048,21 +20571,21 @@ li.ant-select-tree-treenode-disabled > .ant-select-tree-node-content-wrapper:hov display: none; } .ant-select-tree-dropdown .ant-select-not-found { - cursor: not-allowed; - color: rgba(0, 0, 0, 0.25); - padding: 7px 16px; display: block; + padding: 7px 16px; + color: rgba(0, 0, 0, 0.25); + cursor: not-allowed; } .ant-upload { - font-family: "Chinese Quote", -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"; - font-size: 14px; - font-variant: tabular-nums; - line-height: 1.5; - color: rgba(0, 0, 0, 0.65); box-sizing: border-box; margin: 0; padding: 0; + color: rgba(0, 0, 0, 0.65); + font-size: 14px; + font-variant: tabular-nums; + line-height: 1.5; list-style: none; + font-feature-settings: 'tnum'; outline: 0; } .ant-upload p { @@ -19080,40 +20603,42 @@ li.ant-select-tree-treenode-disabled > .ant-select-tree-node-content-wrapper:hov display: inline-block; } .ant-upload.ant-upload-select-picture-card { - border: 1px dashed #d9d9d9; + display: table; width: 104px; height: 104px; - border-radius: 5px; - background-color: #fafafa; + margin-right: 8px; + margin-bottom: 8px; text-align: center; + vertical-align: top; + background-color: #fafafa; + border: 1px dashed #d9d9d9; + border-radius: 5px; cursor: pointer; + -webkit-transition: border-color 0.3s ease; transition: border-color 0.3s ease; - vertical-align: top; - margin-right: 8px; - margin-bottom: 8px; - display: table; } .ant-upload.ant-upload-select-picture-card > .ant-upload { + display: table-cell; width: 100%; height: 100%; - display: table-cell; + padding: 8px; text-align: center; vertical-align: middle; - padding: 8px; } .ant-upload.ant-upload-select-picture-card:hover { border-color: #E64448; } .ant-upload.ant-upload-drag { - border: 1px dashed #d9d9d9; - transition: border-color 0.3s; - cursor: pointer; - border-radius: 5px; - text-align: center; + position: relative; width: 100%; height: 100%; - position: relative; + text-align: center; background: #fafafa; + border: 1px dashed #d9d9d9; + border-radius: 5px; + cursor: pointer; + -webkit-transition: border-color 0.3s; + transition: border-color 0.3s; } .ant-upload.ant-upload-drag .ant-upload { padding: 16px 0; @@ -19139,22 +20664,23 @@ li.ant-select-tree-treenode-disabled > .ant-select-tree-node-content-wrapper:hov margin-bottom: 20px; } .ant-upload.ant-upload-drag p.ant-upload-drag-icon .anticon { - font-size: 48px; color: #f2726f; + font-size: 48px; } .ant-upload.ant-upload-drag p.ant-upload-text { - font-size: 16px; margin: 0 0 4px; color: rgba(0, 0, 0, 0.85); + font-size: 16px; } .ant-upload.ant-upload-drag p.ant-upload-hint { - font-size: 14px; color: rgba(0, 0, 0, 0.45); + font-size: 14px; } .ant-upload.ant-upload-drag .anticon-plus { + color: rgba(0, 0, 0, 0.25); font-size: 30px; + -webkit-transition: all 0.3s; transition: all 0.3s; - color: rgba(0, 0, 0, 0.25); } .ant-upload.ant-upload-drag .anticon-plus:hover { color: rgba(0, 0, 0, 0.45); @@ -19163,50 +20689,51 @@ li.ant-select-tree-treenode-disabled > .ant-select-tree-node-content-wrapper:hov color: rgba(0, 0, 0, 0.45); } .ant-upload-list { - font-family: "Chinese Quote", -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"; - font-size: 14px; - font-variant: tabular-nums; - line-height: 1.5; - color: rgba(0, 0, 0, 0.65); box-sizing: border-box; margin: 0; padding: 0; + color: rgba(0, 0, 0, 0.65); + font-size: 14px; + font-variant: tabular-nums; + line-height: 1.5; list-style: none; + font-feature-settings: 'tnum'; zoom: 1; } -.ant-upload-list:before, -.ant-upload-list:after { +.ant-upload-list::before, +.ant-upload-list::after { content: ''; display: table; } -.ant-upload-list:after { +.ant-upload-list::after { clear: both; } -.ant-upload-list:before, -.ant-upload-list:after { +.ant-upload-list::before, +.ant-upload-list::after { content: ''; display: table; } -.ant-upload-list:after { +.ant-upload-list::after { clear: both; } .ant-upload-list-item { - margin-top: 8px; - font-size: 14px; position: relative; height: 22px; + margin-top: 8px; + font-size: 14px; } .ant-upload-list-item-name { + display: inline-block; + width: 100%; + padding-left: 22px; overflow: hidden; - text-overflow: ellipsis; white-space: nowrap; - padding-left: 22px; - width: 100%; - display: inline-block; + text-overflow: ellipsis; } .ant-upload-list-item-info { height: 100%; padding: 0 12px 0 4px; + -webkit-transition: background-color 0.3s; transition: background-color 0.3s; } .ant-upload-list-item-info > span { @@ -19214,24 +20741,26 @@ li.ant-select-tree-treenode-disabled > .ant-select-tree-node-content-wrapper:hov } .ant-upload-list-item-info .anticon-loading, .ant-upload-list-item-info .anticon-paper-clip { - font-size: 14px; - color: rgba(0, 0, 0, 0.45); position: absolute; top: 5px; + color: rgba(0, 0, 0, 0.45); + font-size: 14px; } .ant-upload-list-item .anticon-close { display: inline-block; font-size: 12px; font-size: 10px \9; - transform: scale(0.83333333) rotate(0deg); - transition: all 0.3s; - opacity: 0; - cursor: pointer; + -webkit-transform: scale(0.83333333) rotate(0deg); + transform: scale(0.83333333) rotate(0deg); position: absolute; top: 6px; right: 4px; color: rgba(0, 0, 0, 0.45); line-height: 0; + cursor: pointer; + opacity: 0; + -webkit-transition: all 0.3s; + transition: all 0.3s; } :root .ant-upload-list-item .anticon-close { font-size: 12px; @@ -19251,24 +20780,24 @@ li.ant-select-tree-treenode-disabled > .ant-select-tree-node-content-wrapper:hov color: #f5222d; } .ant-upload-list-item-error .anticon-close { - opacity: 1; color: #f5222d !important; + opacity: 1; } .ant-upload-list-item-progress { - line-height: 0; - font-size: 14px; position: absolute; - width: 100%; bottom: -12px; + width: 100%; padding-left: 26px; + font-size: 14px; + line-height: 0; } .ant-upload-list-picture .ant-upload-list-item, .ant-upload-list-picture-card .ant-upload-list-item { + position: relative; + height: 66px; padding: 8px; - border-radius: 5px; border: 1px solid #d9d9d9; - height: 66px; - position: relative; + border-radius: 5px; } .ant-upload-list-picture .ant-upload-list-item:hover, .ant-upload-list-picture-card .ant-upload-list-item:hover { @@ -19292,44 +20821,46 @@ li.ant-select-tree-treenode-disabled > .ant-select-tree-node-content-wrapper:hov } .ant-upload-list-picture .ant-upload-list-item-thumbnail, .ant-upload-list-picture-card .ant-upload-list-item-thumbnail { - width: 48px; - height: 48px; position: absolute; top: 8px; left: 8px; - text-align: center; - line-height: 54px; + width: 48px; + height: 48px; font-size: 26px; + line-height: 54px; + text-align: center; opacity: 0.8; } .ant-upload-list-picture .ant-upload-list-item-icon, .ant-upload-list-picture-card .ant-upload-list-item-icon { - font-size: 26px; position: absolute; top: 50%; left: 50%; - transform: translate(-50%, -50%); + font-size: 26px; + -webkit-transform: translate(-50%, -50%); + transform: translate(-50%, -50%); } .ant-upload-list-picture .ant-upload-list-item-thumbnail img, .ant-upload-list-picture-card .ant-upload-list-item-thumbnail img { + display: block; width: 48px; height: 48px; - display: block; overflow: hidden; } .ant-upload-list-picture .ant-upload-list-item-name, .ant-upload-list-picture-card .ant-upload-list-item-name { - overflow: hidden; - text-overflow: ellipsis; - white-space: nowrap; + display: inline-block; + box-sizing: border-box; + max-width: 100%; margin: 0 0 0 8px; + padding-right: 8px; + padding-left: 48px; + overflow: hidden; line-height: 44px; + white-space: nowrap; + text-overflow: ellipsis; + -webkit-transition: all 0.3s; transition: all 0.3s; - padding-left: 48px; - padding-right: 8px; - max-width: 100%; - display: inline-block; - box-sizing: border-box; } .ant-upload-list-picture .ant-upload-list-item-uploading .ant-upload-list-item-name, .ant-upload-list-picture-card .ant-upload-list-item-uploading .ant-upload-list-item-name { @@ -19337,23 +20868,23 @@ li.ant-select-tree-treenode-disabled > .ant-select-tree-node-content-wrapper:hov } .ant-upload-list-picture .ant-upload-list-item-progress, .ant-upload-list-picture-card .ant-upload-list-item-progress { - padding-left: 56px; - margin-top: 0; bottom: 14px; width: calc(100% - 24px); + margin-top: 0; + padding-left: 56px; } .ant-upload-list-picture .anticon-close, .ant-upload-list-picture-card .anticon-close { position: absolute; - right: 8px; top: 8px; + right: 8px; line-height: 1; opacity: 1; } .ant-upload-list-picture-card { float: left; } -.ant-upload-list-picture-card.ant-upload-list:after { +.ant-upload-list-picture-card.ant-upload-list::after { display: none; } .ant-upload-list-picture-card .ant-upload-list-item { @@ -19363,42 +20894,46 @@ li.ant-select-tree-treenode-disabled > .ant-select-tree-node-content-wrapper:hov margin: 0 8px 8px 0; } .ant-upload-list-picture-card .ant-upload-list-item-info { - height: 100%; position: relative; + height: 100%; overflow: hidden; } -.ant-upload-list-picture-card .ant-upload-list-item-info:before { - content: ' '; +.ant-upload-list-picture-card .ant-upload-list-item-info::before { position: absolute; z-index: 1; - background-color: rgba(0, 0, 0, 0.5); - transition: all 0.3s; width: 100%; height: 100%; + background-color: rgba(0, 0, 0, 0.5); opacity: 0; + -webkit-transition: all 0.3s; + transition: all 0.3s; + content: ' '; } -.ant-upload-list-picture-card .ant-upload-list-item:hover .ant-upload-list-item-info:before { +.ant-upload-list-picture-card .ant-upload-list-item:hover .ant-upload-list-item-info::before { opacity: 1; } .ant-upload-list-picture-card .ant-upload-list-item-actions { position: absolute; - left: 50%; top: 50%; - transform: translate(-50%, -50%); + left: 50%; z-index: 10; white-space: nowrap; + -webkit-transform: translate(-50%, -50%); + transform: translate(-50%, -50%); opacity: 0; + -webkit-transition: all 0.3s; transition: all 0.3s; } .ant-upload-list-picture-card .ant-upload-list-item-actions .anticon-eye-o, .ant-upload-list-picture-card .ant-upload-list-item-actions .anticon-delete { z-index: 10; - transition: all 0.3s; - cursor: pointer; - font-size: 16px; width: 16px; - color: rgba(255, 255, 255, 0.85); margin: 0 4px; + color: rgba(255, 255, 255, 0.85); + font-size: 16px; + cursor: pointer; + -webkit-transition: all 0.3s; + transition: all 0.3s; } .ant-upload-list-picture-card .ant-upload-list-item-actions .anticon-eye-o:hover, .ant-upload-list-picture-card .ant-upload-list-item-actions .anticon-delete:hover { @@ -19410,17 +20945,17 @@ li.ant-select-tree-treenode-disabled > .ant-select-tree-node-content-wrapper:hov } .ant-upload-list-picture-card .ant-upload-list-item-thumbnail, .ant-upload-list-picture-card .ant-upload-list-item-thumbnail img { + position: static; display: block; width: 100%; height: 100%; - position: static; } .ant-upload-list-picture-card .ant-upload-list-item-name { + display: none; margin: 8px 0 0; padding: 0; - text-align: center; line-height: 1.5; - display: none; + text-align: center; } .ant-upload-list-picture-card .anticon-picture + .ant-upload-list-item-name { display: block; @@ -19431,7 +20966,7 @@ li.ant-select-tree-treenode-disabled > .ant-select-tree-node-content-wrapper:hov .ant-upload-list-picture-card .ant-upload-list-item-uploading .ant-upload-list-item-info { height: auto; } -.ant-upload-list-picture-card .ant-upload-list-item-uploading .ant-upload-list-item-info:before, +.ant-upload-list-picture-card .ant-upload-list-item-uploading .ant-upload-list-item-info::before, .ant-upload-list-picture-card .ant-upload-list-item-uploading .ant-upload-list-item-info .anticon-eye-o, .ant-upload-list-picture-card .ant-upload-list-item-uploading .ant-upload-list-item-info .anticon-delete { display: none; @@ -19441,8 +20976,8 @@ li.ant-select-tree-treenode-disabled > .ant-select-tree-node-content-wrapper:hov color: rgba(0, 0, 0, 0.45); } .ant-upload-list-picture-card .ant-upload-list-item-progress { - padding-left: 0; bottom: 32px; + padding-left: 0; } .ant-upload-list .ant-upload-success-icon { color: #52c41a; @@ -19477,16 +21012,16 @@ li.ant-select-tree-treenode-disabled > .ant-select-tree-node-content-wrapper:hov from { height: 0; margin: 0; - opacity: 0; padding: 0; + opacity: 0; } } @keyframes uploadAnimateIn { from { height: 0; margin: 0; - opacity: 0; padding: 0; + opacity: 0; } } @-webkit-keyframes uploadAnimateOut { @@ -19510,8 +21045,8 @@ li.ant-select-tree-treenode-disabled > .ant-select-tree-node-content-wrapper:hov width: 0; height: 0; margin: 0; - opacity: 0; padding: 0; + opacity: 0; } } @keyframes uploadAnimateInlineIn { @@ -19519,8 +21054,8 @@ li.ant-select-tree-treenode-disabled > .ant-select-tree-node-content-wrapper:hov width: 0; height: 0; margin: 0; - opacity: 0; padding: 0; + opacity: 0; } } @-webkit-keyframes uploadAnimateInlineOut { diff --git a/public/js/app.js b/public/js/app.js index 154d1b50a..f03d6fb9f 100644 --- a/public/js/app.js +++ b/public/js/app.js @@ -337,7 +337,7 @@ var presetPalettes = {}; exports.presetPalettes = presetPalettes; Object.keys(presetPrimaryColors).forEach(function (key) { presetPalettes[key] = generate_1.default(presetPrimaryColors[key]); - presetPalettes[key].primary = presetPalettes[key][6]; + presetPalettes[key].primary = presetPalettes[key][5]; }); var red = presetPalettes.red; exports.red = red; @@ -345,6 +345,8 @@ var volcano = presetPalettes.volcano; exports.volcano = volcano; var gold = presetPalettes.gold; exports.gold = gold; +var orange = presetPalettes.orange; +exports.orange = orange; var yellow = presetPalettes.yellow; exports.yellow = yellow; var lime = presetPalettes.lime; @@ -3441,6 +3443,10 @@ var _vueTypes = __webpack_require__(/*! ./vue-types */ "./node_modules/ant-desig var _vueTypes2 = _interopRequireDefault(_vueTypes); +var _base = __webpack_require__(/*! ../base */ "./node_modules/ant-design-vue/lib/base/index.js"); + +var _base2 = _interopRequireDefault(_base); + function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } exports['default'] = { @@ -3497,9 +3503,9 @@ exports['default'] = { this.componentEl = el; this.container.appendChild(el); } - if (!this._component) { - this._component = new _vue2['default']({ + var V = _base2['default'].Vue || _vue2['default']; + this._component = new V({ el: el, parent: self.parent, data: { @@ -4156,6 +4162,134 @@ exports['default'] = KeyCode; /***/ }), +/***/ "./node_modules/ant-design-vue/lib/_util/antDirective.js": +/*!***************************************************************!*\ + !*** ./node_modules/ant-design-vue/lib/_util/antDirective.js ***! + \***************************************************************/ +/*! no static exports found */ +/***/ (function(module, exports, __webpack_require__) { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", { + value: true +}); + +var _vueRef = __webpack_require__(/*! vue-ref */ "./node_modules/vue-ref/index.js"); + +var _vueRef2 = _interopRequireDefault(_vueRef); + +var _antInputDirective = __webpack_require__(/*! ./antInputDirective */ "./node_modules/ant-design-vue/lib/_util/antInputDirective.js"); + +var _FormDecoratorDirective = __webpack_require__(/*! ./FormDecoratorDirective */ "./node_modules/ant-design-vue/lib/_util/FormDecoratorDirective.js"); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } + +exports['default'] = { + install: function install(Vue) { + Vue.use(_vueRef2['default'], { name: 'ant-ref' }); + (0, _antInputDirective.antInput)(Vue); + (0, _FormDecoratorDirective.antDecorator)(Vue); + } +}; + +/***/ }), + +/***/ "./node_modules/ant-design-vue/lib/_util/antInputDirective.js": +/*!********************************************************************!*\ + !*** ./node_modules/ant-design-vue/lib/_util/antInputDirective.js ***! + \********************************************************************/ +/*! no static exports found */ +/***/ (function(module, exports, __webpack_require__) { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.antInput = antInput; +/** + * Not type checking this file because flow doesn't like attaching + * properties to Elements. + */ + +var inBrowser = exports.inBrowser = typeof window !== 'undefined'; +var UA = exports.UA = inBrowser && window.navigator.userAgent.toLowerCase(); +var isIE9 = exports.isIE9 = UA && UA.indexOf('msie 9.0') > 0; +function makeMap(str, expectsLowerCase) { + var map = Object.create(null); + var list = str.split(','); + for (var i = 0; i < list.length; i++) { + map[list[i]] = true; + } + return expectsLowerCase ? function (val) { + return map[val.toLowerCase()]; + } : function (val) { + return map[val]; + }; +} +var isTextInputType = makeMap('text,number,password,search,email,tel,url'); + +function onCompositionStart(e) { + e.target.composing = true; +} + +function onCompositionEnd(e) { + // prevent triggering an input event for no reason + if (!e.target.composing) return; + e.target.composing = false; + trigger(e.target, 'input'); +} + +function trigger(el, type) { + var e = document.createEvent('HTMLEvents'); + e.initEvent(type, true, true); + el.dispatchEvent(e); +} + +/* istanbul ignore if */ +if (isIE9) { + // http://www.matts411.com/post/internet-explorer-9-oninput/ + document.addEventListener('selectionchange', function () { + var el = document.activeElement; + if (el && el.vmodel) { + trigger(el, 'input'); + } + }); +} + +function antInput(Vue) { + return Vue.directive('ant-input', { + inserted: function inserted(el, binding, vnode) { + if (vnode.tag === 'textarea' || isTextInputType(el.type)) { + if (!binding.modifiers || !binding.modifiers.lazy) { + el.addEventListener('compositionstart', onCompositionStart); + el.addEventListener('compositionend', onCompositionEnd); + // Safari < 10.2 & UIWebView doesn't fire compositionend when + // switching focus before confirming composition choice + // this also fixes the issue where some browsers e.g. iOS Chrome + // fires "change" instead of "input" on autocomplete. + el.addEventListener('change', onCompositionEnd); + /* istanbul ignore if */ + if (isIE9) { + el.vmodel = true; + } + } + } + } + }); +} + +exports['default'] = { + install: function install(Vue) { + antInput(Vue); + } +}; + +/***/ }), + /***/ "./node_modules/ant-design-vue/lib/_util/createChainedFunction.js": /*!************************************************************************!*\ !*** ./node_modules/ant-design-vue/lib/_util/createChainedFunction.js ***! @@ -4545,6 +4679,35 @@ exports['default'] = cssAnimation; /***/ }), +/***/ "./node_modules/ant-design-vue/lib/_util/env.js": +/*!******************************************************!*\ + !*** ./node_modules/ant-design-vue/lib/_util/env.js ***! + \******************************************************/ +/*! no static exports found */ +/***/ (function(module, exports, __webpack_require__) { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", { + value: true +}); +// Browser environment sniffing +var inBrowser = exports.inBrowser = typeof window !== 'undefined'; +var inWeex = exports.inWeex = typeof WXEnvironment !== 'undefined' && !!WXEnvironment.platform; +var weexPlatform = exports.weexPlatform = inWeex && WXEnvironment.platform.toLowerCase(); +var UA = exports.UA = inBrowser && window.navigator.userAgent.toLowerCase(); +var isIE = exports.isIE = UA && /msie|trident/.test(UA); +var isIE9 = exports.isIE9 = UA && UA.indexOf('msie 9.0') > 0; +var isEdge = exports.isEdge = UA && UA.indexOf('edge/') > 0; +var isAndroid = exports.isAndroid = UA && UA.indexOf('android') > 0 || weexPlatform === 'android'; +var isIOS = exports.isIOS = UA && /iphone|ipad|ipod|ios/.test(UA) || weexPlatform === 'ios'; +var isChrome = exports.isChrome = UA && /chrome\/\d+/.test(UA) && !isEdge; +var isPhantomJS = exports.isPhantomJS = UA && /phantomjs/.test(UA); +var isFF = exports.isFF = UA && UA.match(/firefox\/(\d+)/); + +/***/ }), + /***/ "./node_modules/ant-design-vue/lib/_util/getRequestAnimationFrame.js": /*!***************************************************************************!*\ !*** ./node_modules/ant-design-vue/lib/_util/getRequestAnimationFrame.js ***! @@ -4667,31 +4830,6 @@ exports['default'] = getTransitionProps; /***/ }), -/***/ "./node_modules/ant-design-vue/lib/_util/isFlexSupported.js": -/*!******************************************************************!*\ - !*** ./node_modules/ant-design-vue/lib/_util/isFlexSupported.js ***! - \******************************************************************/ -/*! no static exports found */ -/***/ (function(module, exports, __webpack_require__) { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", { - value: true -}); -exports['default'] = isFlexSupported; -function isFlexSupported() { - if (typeof window !== 'undefined' && window.document && window.document.documentElement) { - var documentElement = window.document.documentElement; - - return 'flex' in documentElement.style || 'webkitFlex' in documentElement.style || 'Flex' in documentElement.style || 'msFlex' in documentElement.style; - } - return false; -} - -/***/ }), - /***/ "./node_modules/ant-design-vue/lib/_util/isNumeric.js": /*!************************************************************!*\ !*** ./node_modules/ant-design-vue/lib/_util/isNumeric.js ***! @@ -4734,6 +4872,10 @@ var _raf = __webpack_require__(/*! raf */ "./node_modules/raf/index.js"); var _raf2 = _interopRequireDefault(_raf); +var _vue = __webpack_require__(/*! vue */ "./node_modules/vue/dist/vue.common.js"); + +var _vue2 = _interopRequireDefault(_vue); + function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } function animate(node, show, done) { @@ -4789,7 +4931,9 @@ function animate(node, show, done) { var animation = { enter: function enter(node, done) { - return animate(node, true, done); + _vue2['default'].nextTick(function () { + animate(node, true, done); + }); }, leave: function leave(node, done) { return animate(node, false, done); @@ -4813,20 +4957,20 @@ exports['default'] = animation; Object.defineProperty(exports, "__esModule", { value: true }); -exports.getAllChildren = exports.getAllProps = exports.getSlots = exports.camelize = exports.isValidElement = exports.initDefaultProps = exports.parseStyleText = exports.getValueByProp = exports.getAttrs = exports.getKey = exports.getPropsData = exports.slotHasProp = exports.getSlotOptions = exports.getComponentFromProp = exports.getOptionProps = exports.filterProps = exports.hasProp = undefined; +exports.getAllChildren = exports.getAllProps = exports.getSlot = exports.getSlots = exports.camelize = exports.isValidElement = exports.initDefaultProps = exports.parseStyleText = exports.getValueByProp = exports.getAttrs = exports.getKey = exports.getPropsData = exports.slotHasProp = exports.getSlotOptions = exports.getComponentFromProp = exports.getOptionProps = exports.filterProps = exports.hasProp = undefined; var _typeof2 = __webpack_require__(/*! babel-runtime/helpers/typeof */ "./node_modules/babel-runtime/helpers/typeof.js"); var _typeof3 = _interopRequireDefault(_typeof2); -var _extends2 = __webpack_require__(/*! babel-runtime/helpers/extends */ "./node_modules/babel-runtime/helpers/extends.js"); - -var _extends3 = _interopRequireDefault(_extends2); - var _slicedToArray2 = __webpack_require__(/*! babel-runtime/helpers/slicedToArray */ "./node_modules/babel-runtime/helpers/slicedToArray.js"); var _slicedToArray3 = _interopRequireDefault(_slicedToArray2); +var _extends2 = __webpack_require__(/*! babel-runtime/helpers/extends */ "./node_modules/babel-runtime/helpers/extends.js"); + +var _extends3 = _interopRequireDefault(_extends2); + exports.getEvents = getEvents; exports.getClass = getClass; exports.getStyle = getStyle; @@ -4896,6 +5040,11 @@ var filterProps = function filterProps(props) { }); return res; }; + +var getScopedSlots = function getScopedSlots(ele) { + return ele.data && ele.data.scopedSlots || {}; +}; + var getSlots = function getSlots(ele) { var componentOptions = ele.componentOptions || {}; if (ele.$vnode) { @@ -4910,8 +5059,15 @@ var getSlots = function getSlots(ele) { slots[name].push(child); } }); - return slots; + return (0, _extends3['default'])({}, slots, getScopedSlots(ele)); +}; +var getSlot = function getSlot(self) { + var name = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 'default'; + var options = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {}; + + return self.$scopedSlots && self.$scopedSlots[name] && self.$scopedSlots[name](options) || self.$slots[name] || []; }; + var getAllChildren = function getAllChildren(ele) { var componentOptions = ele.componentOptions || {}; if (ele.$vnode) { @@ -4993,17 +5149,24 @@ var getComponentFromProp = function getComponentFromProp(instance, prop) { if (temp !== undefined) { return typeof temp === 'function' && execute ? temp(h, options) : temp; } - return instance.$slots[prop] || instance.$scopedSlots[prop] && execute && instance.$scopedSlots[prop](options) || instance.$scopedSlots[prop] || undefined; + return instance.$scopedSlots[prop] && execute && instance.$scopedSlots[prop](options) || instance.$scopedSlots[prop] || instance.$slots[prop] || undefined; } else { var _h = instance.context.$createElement; var _temp = getPropsData(instance)[prop]; if (_temp !== undefined) { return typeof _temp === 'function' && execute ? _temp(_h, options) : _temp; } + var slotScope = getScopedSlots(instance)[prop]; + if (slotScope !== undefined) { + return typeof slotScope === 'function' && execute ? slotScope(_h, options) : slotScope; + } var slotsProp = []; var componentOptions = instance.componentOptions || {}; (componentOptions.children || []).forEach(function (child) { if (child.data && child.data.slot === prop) { + if (child.data.attrs) { + delete child.data.attrs.slot; + } if (child.tag === 'template') { slotsProp.push(child.children); } else { @@ -5196,6 +5359,7 @@ exports.initDefaultProps = initDefaultProps; exports.isValidElement = isValidElement; exports.camelize = camelize; exports.getSlots = getSlots; +exports.getSlot = getSlot; exports.getAllProps = getAllProps; exports.getAllChildren = getAllChildren; exports['default'] = hasProp; @@ -5349,9 +5513,9 @@ function wrapperRaf(callback) { return myId; } -wrapperRaf.cancel = function (id) { - _raf2['default'].cancel(ids[id]); - delete ids[id]; +wrapperRaf.cancel = function (pid) { + _raf2['default'].cancel(ids[pid]); + delete ids[pid]; }; /***/ }), @@ -5724,6 +5888,38 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'd /***/ }), +/***/ "./node_modules/ant-design-vue/lib/_util/styleChecker.js": +/*!***************************************************************!*\ + !*** ./node_modules/ant-design-vue/lib/_util/styleChecker.js ***! + \***************************************************************/ +/*! no static exports found */ +/***/ (function(module, exports, __webpack_require__) { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", { + value: true +}); +function isStyleSupport(styleName) { + if (typeof window !== 'undefined' && window.document && window.document.documentElement) { + var styleNameList = Array.isArray(styleName) ? styleName : [styleName]; + var documentElement = window.document.documentElement; + + + return styleNameList.some(function (name) { + return name in documentElement.style; + }); + } + return false; +} + +var isFlexSupported = exports.isFlexSupported = isStyleSupport(['flex', 'webkitFlex', 'Flex', 'msFlex']); + +exports['default'] = isStyleSupport; + +/***/ }), + /***/ "./node_modules/ant-design-vue/lib/_util/vnode.js": /*!********************************************************!*\ !*** ./node_modules/ant-design-vue/lib/_util/vnode.js ***! @@ -5752,6 +5948,10 @@ exports.cloneElement = cloneElement; var _propsUtil = __webpack_require__(/*! ./props-util */ "./node_modules/ant-design-vue/lib/_util/props-util.js"); +var _classnames = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js"); + +var _classnames2 = _interopRequireDefault(_classnames); + function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } function cloneVNode(vnode, deep) { @@ -5849,6 +6049,10 @@ function cloneElement(n) { data['class'].split(' ').forEach(function (c) { cls[c.trim()] = true; }); + } else if (Array.isArray(data['class'])) { + (0, _classnames2['default'])(data['class']).split(' ').forEach(function (c) { + cls[c.trim()] = true; + }); } else { cls = (0, _extends3['default'])({}, data['class'], cls); } @@ -5880,6 +6084,10 @@ function cloneElement(n) { node.data.on = (0, _extends3['default'])({}, node.data.on || {}, on); } + if (node.fnOptions && node.fnOptions.functional) { + node.data.on = (0, _extends3['default'])({}, node.data.on || {}, on); + } + if (key !== undefined) { node.key = key; node.data.key = key; @@ -6420,21 +6628,50 @@ exports.warn = warn; Object.defineProperty(exports, "__esModule", { value: true }); +exports.warning = warning; +exports.note = note; +exports.resetWarned = resetWarned; +exports.call = call; +exports.warningOnce = warningOnce; +exports.noteOnce = noteOnce; +/* eslint-disable no-console */ +var warned = {}; -var _warning = __webpack_require__(/*! warning */ "./node_modules/warning/browser.js"); - -var _warning2 = _interopRequireDefault(_warning); +function warning(valid, message) { + // Support uglify + if ( true && !valid && console !== undefined) { + console.error('Warning: ' + message); + } +} -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } +function note(valid, message) { + // Support uglify + if ( true && !valid && console !== undefined) { + console.warn('Note: ' + message); + } +} -var warned = {}; +function resetWarned() { + warned = {}; +} -exports['default'] = function (valid, message) { +function call(method, valid, message) { if (!valid && !warned[message]) { - (0, _warning2['default'])(false, message); + method(false, message); warned[message] = true; } -}; +} + +function warningOnce(valid, message) { + call(warning, valid, message); +} + +function noteOnce(valid, message) { + call(note, valid, message); +} + +exports['default'] = warningOnce; +/* eslint-enable */ /***/ }), @@ -6617,6 +6854,37 @@ exports['default'] = { /***/ }), +/***/ "./node_modules/ant-design-vue/lib/base/index.js": +/*!*******************************************************!*\ + !*** ./node_modules/ant-design-vue/lib/base/index.js ***! + \*******************************************************/ +/*! no static exports found */ +/***/ (function(module, exports, __webpack_require__) { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", { + value: true +}); + +var _antDirective = __webpack_require__(/*! ../_util/antDirective */ "./node_modules/ant-design-vue/lib/_util/antDirective.js"); + +var _antDirective2 = _interopRequireDefault(_antDirective); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } + +var base = {}; +var install = function install(Vue) { + base.Vue = Vue; + Vue.use(_antDirective2['default']); +}; +base.install = install; + +exports['default'] = base; + +/***/ }), + /***/ "./node_modules/ant-design-vue/lib/breadcrumb/Breadcrumb.js": /*!******************************************************************!*\ !*** ./node_modules/ant-design-vue/lib/breadcrumb/Breadcrumb.js ***! @@ -6643,6 +6911,8 @@ var _warning = __webpack_require__(/*! ../_util/warning */ "./node_modules/ant-d var _warning2 = _interopRequireDefault(_warning); +var _configProvider = __webpack_require__(/*! ../config-provider */ "./node_modules/ant-design-vue/lib/config-provider/index.js"); + var _BreadcrumbItem = __webpack_require__(/*! ./BreadcrumbItem */ "./node_modules/ant-design-vue/lib/breadcrumb/BreadcrumbItem.js"); var _BreadcrumbItem2 = _interopRequireDefault(_BreadcrumbItem); @@ -6655,7 +6925,7 @@ var Route = _vueTypes2['default'].shape({ }).loose; var BreadcrumbProps = { - prefixCls: _vueTypes2['default'].string.def('ant-breadcrumb'), + prefixCls: _vueTypes2['default'].string, routes: _vueTypes2['default'].arrayOf(Route), params: _vueTypes2['default'].any, separator: _vueTypes2['default'].any, @@ -6676,6 +6946,11 @@ function getBreadcrumbName(route, params) { exports['default'] = { name: 'ABreadcrumb', props: BreadcrumbProps, + inject: { + configProvider: { 'default': function _default() { + return _configProvider.ConfigConsumerProps; + } } + }, methods: { defaultItemRender: function defaultItemRender(_ref) { var route = _ref.route, @@ -6699,13 +6974,16 @@ exports['default'] = { var h = arguments[0]; var crumbs = void 0; - var prefixCls = this.prefixCls, + var customizePrefixCls = this.prefixCls, routes = this.routes, _params = this.params, params = _params === undefined ? {} : _params, $slots = this.$slots, $scopedSlots = this.$scopedSlots; + var getPrefixCls = this.configProvider.getPrefixCls; + var prefixCls = getPrefixCls('breadcrumb', customizePrefixCls); + var children = (0, _propsUtil.filterEmpty)($slots['default']); var separator = (0, _propsUtil.getComponentFromProp)(this, 'separator'); if (routes && routes.length > 0) { @@ -6767,21 +7045,31 @@ var _vueTypes2 = _interopRequireDefault(_vueTypes); var _propsUtil = __webpack_require__(/*! ../_util/props-util */ "./node_modules/ant-design-vue/lib/_util/props-util.js"); +var _configProvider = __webpack_require__(/*! ../config-provider */ "./node_modules/ant-design-vue/lib/config-provider/index.js"); + function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } exports['default'] = { name: 'ABreadcrumbItem', __ANT_BREADCRUMB_ITEM: true, props: { - prefixCls: _vueTypes2['default'].string.def('ant-breadcrumb'), + prefixCls: _vueTypes2['default'].string, href: _vueTypes2['default'].string, separator: _vueTypes2['default'].any }, + inject: { + configProvider: { 'default': function _default() { + return _configProvider.ConfigConsumerProps; + } } + }, render: function render() { var h = arguments[0]; - var prefixCls = this.prefixCls, + var customizePrefixCls = this.prefixCls, $slots = this.$slots; + var getPrefixCls = this.configProvider.getPrefixCls; + var prefixCls = getPrefixCls('breadcrumb', customizePrefixCls); + var children = $slots['default']; var link = void 0; if ((0, _propsUtil.hasProp)(this, 'href')) { @@ -6832,12 +7120,17 @@ var _BreadcrumbItem = __webpack_require__(/*! ./BreadcrumbItem */ "./node_module var _BreadcrumbItem2 = _interopRequireDefault(_BreadcrumbItem); +var _base = __webpack_require__(/*! ../base */ "./node_modules/ant-design-vue/lib/base/index.js"); + +var _base2 = _interopRequireDefault(_base); + function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } _Breadcrumb2['default'].Item = _BreadcrumbItem2['default']; /* istanbul ignore next */ _Breadcrumb2['default'].install = function (Vue) { + Vue.use(_base2['default']); Vue.component(_Breadcrumb2['default'].name, _Breadcrumb2['default']); Vue.component(_BreadcrumbItem2['default'].name, _BreadcrumbItem2['default']); }; @@ -6867,13 +7160,16 @@ var _defineProperty3 = _interopRequireDefault(_defineProperty2); var _propsUtil = __webpack_require__(/*! ../_util/props-util */ "./node_modules/ant-design-vue/lib/_util/props-util.js"); +var _vueTypes = __webpack_require__(/*! ../_util/vue-types */ "./node_modules/ant-design-vue/lib/_util/vue-types/index.js"); + +var _vueTypes2 = _interopRequireDefault(_vueTypes); + +var _configProvider = __webpack_require__(/*! ../config-provider */ "./node_modules/ant-design-vue/lib/config-provider/index.js"); + function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } var ButtonGroupProps = { - prefixCls: { - 'default': 'ant-btn-group', - type: String - }, + prefixCls: _vueTypes2['default'].string, size: { validator: function validator(value) { return ['small', 'large', 'default'].includes(value); @@ -6884,6 +7180,11 @@ exports.ButtonGroupProps = ButtonGroupProps; exports['default'] = { name: 'AButtonGroup', props: ButtonGroupProps, + inject: { + configProvider: { 'default': function _default() { + return _configProvider.ConfigConsumerProps; + } } + }, data: function data() { return { sizeMap: { @@ -6892,24 +7193,31 @@ exports['default'] = { } }; }, - - computed: { - classes: function classes() { - var _ref; - - var prefixCls = this.prefixCls, - size = this.size, - sizeMap = this.sizeMap; - - var sizeCls = sizeMap[size] || ''; - return [(_ref = {}, (0, _defineProperty3['default'])(_ref, '' + prefixCls, true), (0, _defineProperty3['default'])(_ref, prefixCls + '-' + sizeCls, sizeCls), _ref)]; - } - }, render: function render() { + var _classes; + var h = arguments[0]; - var classes = this.classes, + var customizePrefixCls = this.prefixCls, + size = this.size, + sizeMap = this.sizeMap, $slots = this.$slots; + var getPrefixCls = this.configProvider.getPrefixCls; + var prefixCls = getPrefixCls('btn-group', customizePrefixCls); + + // large => lg + // small => sm + var sizeCls = ''; + switch (size) { + case 'large': + sizeCls = 'lg'; + break; + case 'small': + sizeCls = 'sm'; + default: + break; + } + var classes = (_classes = {}, (0, _defineProperty3['default'])(_classes, '' + prefixCls, true), (0, _defineProperty3['default'])(_classes, prefixCls + '-' + sizeCls, sizeCls), _classes); return h( 'div', { 'class': classes }, @@ -6960,24 +7268,29 @@ var _buttonTypes2 = _interopRequireDefault(_buttonTypes); var _propsUtil = __webpack_require__(/*! ../_util/props-util */ "./node_modules/ant-design-vue/lib/_util/props-util.js"); +var _configProvider = __webpack_require__(/*! ../config-provider */ "./node_modules/ant-design-vue/lib/config-provider/index.js"); + function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } var rxTwoCNChar = /^[\u4e00-\u9fa5]{2}$/; var isTwoCNChar = rxTwoCNChar.test.bind(rxTwoCNChar); - var props = (0, _buttonTypes2['default'])(); exports['default'] = { name: 'AButton', inheritAttrs: false, __ANT_BUTTON: true, props: props, + inject: { + configProvider: { 'default': function _default() { + return _configProvider.ConfigConsumerProps; + } } + }, data: function data() { return { sizeMap: { large: 'lg', small: 'sm' }, - // clicked: false, sLoading: !!this.loading, hasTwoCNChar: false }; @@ -6987,7 +7300,7 @@ exports['default'] = { classes: function classes() { var _ref; - var prefixCls = this.prefixCls, + var customizePrefixCls = this.prefixCls, type = this.type, shape = this.shape, size = this.size, @@ -6999,17 +7312,24 @@ exports['default'] = { icon = this.icon, $slots = this.$slots; + var getPrefixCls = this.configProvider.getPrefixCls; + var prefixCls = getPrefixCls('btn', customizePrefixCls); + var autoInsertSpace = this.configProvider.autoInsertSpaceInButton !== false; + var sizeCls = sizeMap[size] || ''; + var iconType = sLoading ? 'loading' : icon; var children = (0, _propsUtil.filterEmpty)($slots['default']); - return _ref = {}, (0, _defineProperty3['default'])(_ref, '' + prefixCls, true), (0, _defineProperty3['default'])(_ref, prefixCls + '-' + type, type), (0, _defineProperty3['default'])(_ref, prefixCls + '-' + shape, shape), (0, _defineProperty3['default'])(_ref, prefixCls + '-' + sizeCls, sizeCls), (0, _defineProperty3['default'])(_ref, prefixCls + '-icon-only', !children && children !== 0 && icon), (0, _defineProperty3['default'])(_ref, prefixCls + '-loading', sLoading), (0, _defineProperty3['default'])(_ref, prefixCls + '-background-ghost', ghost || type === 'ghost'), (0, _defineProperty3['default'])(_ref, prefixCls + '-two-chinese-chars', hasTwoCNChar), (0, _defineProperty3['default'])(_ref, prefixCls + '-block', block), _ref; + return _ref = {}, (0, _defineProperty3['default'])(_ref, '' + prefixCls, true), (0, _defineProperty3['default'])(_ref, prefixCls + '-' + type, type), (0, _defineProperty3['default'])(_ref, prefixCls + '-' + shape, shape), (0, _defineProperty3['default'])(_ref, prefixCls + '-' + sizeCls, sizeCls), (0, _defineProperty3['default'])(_ref, prefixCls + '-icon-only', children.length === 0 && iconType), (0, _defineProperty3['default'])(_ref, prefixCls + '-loading', sLoading), (0, _defineProperty3['default'])(_ref, prefixCls + '-background-ghost', ghost || type === 'ghost'), (0, _defineProperty3['default'])(_ref, prefixCls + '-two-chinese-chars', hasTwoCNChar && autoInsertSpace), (0, _defineProperty3['default'])(_ref, prefixCls + '-block', block), _ref; } }, watch: { - loading: function loading(val) { + loading: function loading(val, preVal) { var _this = this; - clearTimeout(this.delayTimeout); - if (typeof val !== 'boolean' && val && val.delay) { + if (preVal && typeof preVal !== 'boolean') { + clearTimeout(this.delayTimeout); + } + if (val && typeof val !== 'boolean' && val.delay) { this.delayTimeout = setTimeout(function () { _this.sLoading = !!val; }, val.delay); @@ -7081,7 +7401,8 @@ exports['default'] = { var _this2 = this; var h = arguments[0]; - var htmlType = this.htmlType, + var type = this.type, + htmlType = this.htmlType, classes = this.classes, icon = this.icon, disabled = this.disabled, @@ -7105,8 +7426,9 @@ exports['default'] = { attrs: { type: iconType } }) : null; var children = (0, _propsUtil.filterEmpty)($slots['default']); + var autoInsertSpace = this.configProvider.autoInsertSpaceInButton !== false; var kids = children.map(function (child) { - return _this2.insertSpace(child, _this2.isNeedInserted()); + return _this2.insertSpace(child, _this2.isNeedInserted() && autoInsertSpace); }); if ($attrs.href !== undefined) { @@ -7115,14 +7437,20 @@ exports['default'] = { (0, _babelHelperVueJsxMergeProps2['default'])([buttonProps, { ref: 'buttonNode' }]), [iconNode, kids] ); - } else { - return h(_wave2['default'], [h( - 'button', - (0, _babelHelperVueJsxMergeProps2['default'])([buttonProps, { ref: 'buttonNode', attrs: { type: htmlType || 'button' } - }]), - [iconNode, kids] - )]); } + + var buttonNode = h( + 'button', + (0, _babelHelperVueJsxMergeProps2['default'])([buttonProps, { ref: 'buttonNode', attrs: { type: htmlType || 'button' } + }]), + [iconNode, kids] + ); + + if (type === 'link') { + return buttonNode; + } + + return h(_wave2['default'], [buttonNode]); } }; @@ -7150,11 +7478,11 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'd exports['default'] = function () { return { - prefixCls: _vueTypes2['default'].string.def('ant-btn'), - type: _vueTypes2['default'].oneOf(['primary', 'danger', 'dashed', 'ghost', 'default']).def('default'), + prefixCls: _vueTypes2['default'].string, + type: _vueTypes2['default'].string, htmlType: _vueTypes2['default'].oneOf(['button', 'submit', 'reset']).def('button'), icon: _vueTypes2['default'].string, - shape: _vueTypes2['default'].oneOf(['circle', 'circle-outline']), + shape: _vueTypes2['default'].oneOf(['circle', 'circle-outline', 'round']), size: _vueTypes2['default'].oneOf(['small', 'large', 'default']).def('default'), loading: _vueTypes2['default'].oneOfType([_vueTypes2['default'].bool, _vueTypes2['default'].object]), disabled: _vueTypes2['default'].bool, @@ -7187,12 +7515,17 @@ var _buttonGroup = __webpack_require__(/*! ./button-group */ "./node_modules/ant var _buttonGroup2 = _interopRequireDefault(_buttonGroup); +var _base = __webpack_require__(/*! ../base */ "./node_modules/ant-design-vue/lib/base/index.js"); + +var _base2 = _interopRequireDefault(_base); + function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } _button2['default'].Group = _buttonGroup2['default']; /* istanbul ignore next */ _button2['default'].install = function (Vue) { + Vue.use(_base2['default']); Vue.component(_button2['default'].name, _button2['default']); Vue.component(_buttonGroup2['default'].name, _buttonGroup2['default']); }; @@ -7225,6 +7558,198 @@ exports['default'] = _en_US2['default']; /***/ }), +/***/ "./node_modules/ant-design-vue/lib/config-provider/index.js": +/*!******************************************************************!*\ + !*** ./node_modules/ant-design-vue/lib/config-provider/index.js ***! + \******************************************************************/ +/*! no static exports found */ +/***/ (function(module, exports, __webpack_require__) { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.ConfigConsumerProps = undefined; + +var _extends2 = __webpack_require__(/*! babel-runtime/helpers/extends */ "./node_modules/babel-runtime/helpers/extends.js"); + +var _extends3 = _interopRequireDefault(_extends2); + +var _vue = __webpack_require__(/*! vue */ "./node_modules/vue/dist/vue.common.js"); + +var _vue2 = _interopRequireDefault(_vue); + +var _vueTypes = __webpack_require__(/*! ../_util/vue-types */ "./node_modules/ant-design-vue/lib/_util/vue-types/index.js"); + +var _vueTypes2 = _interopRequireDefault(_vueTypes); + +var _propsUtil = __webpack_require__(/*! ../_util/props-util */ "./node_modules/ant-design-vue/lib/_util/props-util.js"); + +var _renderEmpty = __webpack_require__(/*! ./renderEmpty */ "./node_modules/ant-design-vue/lib/config-provider/renderEmpty.js"); + +var _renderEmpty2 = _interopRequireDefault(_renderEmpty); + +var _base = __webpack_require__(/*! ../base */ "./node_modules/ant-design-vue/lib/base/index.js"); + +var _base2 = _interopRequireDefault(_base); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } + +function getWatch() { + var keys = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : []; + + var watch = {}; + keys.forEach(function (k) { + watch[k] = function () { + this._proxyVm._data[k] = value; + }; + }); + return watch; +} + +var ConfigProvider = { + name: 'AConfigProvider', + props: { + getPopupContainer: _vueTypes2['default'].func, + prefixCls: _vueTypes2['default'].string, + renderEmpty: _vueTypes2['default'].func, + csp: _vueTypes2['default'].object, + autoInsertSpaceInButton: _vueTypes2['default'].bool + }, + provide: function provide() { + var _self = this; + this._proxyVm = new _vue2['default']({ + data: function data() { + return (0, _extends3['default'])({}, _self.$props, { + getPrefixCls: _self.getPrefixCls, + renderEmpty: _self.renderEmptyComponent + }); + } + }); + return { + configProvider: this._proxyVm._data + }; + }, + + watch: (0, _extends3['default'])({}, getWatch(['prefixCls', 'csp', 'autoInsertSpaceInButton'])), + methods: { + renderEmptyComponent: function renderEmptyComponent(h, name) { + var renderEmpty = (0, _propsUtil.getComponentFromProp)(this, 'renderEmpty', {}, false) || _renderEmpty2['default']; + return renderEmpty(h, name); + }, + getPrefixCls: function getPrefixCls(suffixCls, customizePrefixCls) { + var _$props$prefixCls = this.$props.prefixCls, + prefixCls = _$props$prefixCls === undefined ? 'ant' : _$props$prefixCls; + + if (customizePrefixCls) return customizePrefixCls; + return suffixCls ? prefixCls + '-' + suffixCls : prefixCls; + } + }, + render: function render() { + return this.$slots['default'] ? (0, _propsUtil.filterEmpty)(this.$slots['default']) : null; + } +}; + +var ConfigConsumerProps = exports.ConfigConsumerProps = { + getPrefixCls: function getPrefixCls(suffixCls, customizePrefixCls) { + if (customizePrefixCls) return customizePrefixCls; + return 'ant-' + suffixCls; + }, + renderEmpty: _renderEmpty2['default'] +}; + +/* istanbul ignore next */ +ConfigProvider.install = function (Vue) { + Vue.use(_base2['default']); + Vue.component(ConfigProvider.name, ConfigProvider); +}; + +exports['default'] = ConfigProvider; + +/***/ }), + +/***/ "./node_modules/ant-design-vue/lib/config-provider/renderEmpty.js": +/*!************************************************************************!*\ + !*** ./node_modules/ant-design-vue/lib/config-provider/renderEmpty.js ***! + \************************************************************************/ +/*! no static exports found */ +/***/ (function(module, exports, __webpack_require__) { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", { + value: true +}); + +var _vueTypes = __webpack_require__(/*! ../_util/vue-types */ "./node_modules/ant-design-vue/lib/_util/vue-types/index.js"); + +var _vueTypes2 = _interopRequireDefault(_vueTypes); + +var _empty = __webpack_require__(/*! ../empty */ "./node_modules/ant-design-vue/lib/empty/index.js"); + +var _empty2 = _interopRequireDefault(_empty); + +var _ = __webpack_require__(/*! ./ */ "./node_modules/ant-design-vue/lib/config-provider/index.js"); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } + +/* babel-plugin-inline-import './empty.svg' */var emptyImg = 'data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNjQiIGhlaWdodD0iNDEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+CiAgPGcgdHJhbnNmb3JtPSJ0cmFuc2xhdGUoMCAxKSIgZmlsbD0ibm9uZSIgZmlsbC1ydWxlPSJldmVub2RkIj4KICAgIDxlbGxpcHNlIGZpbGw9IiNGNUY1RjUiIGN4PSIzMiIgY3k9IjMzIiByeD0iMzIiIHJ5PSI3Ii8+CiAgICA8ZyBmaWxsLXJ1bGU9Im5vbnplcm8iIHN0cm9rZT0iI0Q5RDlEOSI+CiAgICAgIDxwYXRoIGQ9Ik01NSAxMi43Nkw0NC44NTQgMS4yNThDNDQuMzY3LjQ3NCA0My42NTYgMCA0Mi45MDcgMEgyMS4wOTNjLS43NDkgMC0xLjQ2LjQ3NC0xLjk0NyAxLjI1N0w5IDEyLjc2MVYyMmg0NnYtOS4yNHoiLz4KICAgICAgPHBhdGggZD0iTTQxLjYxMyAxNS45MzFjMC0xLjYwNS45OTQtMi45MyAyLjIyNy0yLjkzMUg1NXYxOC4xMzdDNTUgMzMuMjYgNTMuNjggMzUgNTIuMDUgMzVoLTQwLjFDMTAuMzIgMzUgOSAzMy4yNTkgOSAzMS4xMzdWMTNoMTEuMTZjMS4yMzMgMCAyLjIyNyAxLjMyMyAyLjIyNyAyLjkyOHYuMDIyYzAgMS42MDUgMS4wMDUgMi45MDEgMi4yMzcgMi45MDFoMTQuNzUyYzEuMjMyIDAgMi4yMzctMS4zMDggMi4yMzctMi45MTN2LS4wMDd6IiBmaWxsPSIjRkFGQUZBIi8+CiAgICA8L2c+CiAgPC9nPgo8L3N2Zz4K'; + + +var RenderEmpty = { + functional: true, + inject: { + configProvider: { 'default': function _default() { + return _.ConfigConsumerProps; + } } + }, + props: { + componentName: _vueTypes2['default'].string + }, + render: function render(createElement, context) { + var h = arguments[0]; + var props = context.props, + injections = context.injections; + + function renderHtml(componentName) { + var getPrefixCls = injections.configProvider.getPrefixCls; + var prefix = getPrefixCls('empty'); + switch (componentName) { + case 'Table': + case 'List': + return h(_empty2['default'], { + attrs: { image: emptyImg }, + 'class': prefix + '-normal' }); + + case 'Select': + case 'TreeSelect': + case 'Cascader': + case 'Transfer': + return h(_empty2['default'], { + attrs: { image: emptyImg }, + 'class': prefix + '-small' }); + + default: + return h(_empty2['default']); + } + } + return renderHtml(props.componentName); + } +}; + +function renderEmpty(h, componentName) { + return h(RenderEmpty, { + attrs: { componentName: componentName } + }); +} + +exports['default'] = renderEmpty; + +/***/ }), + /***/ "./node_modules/ant-design-vue/lib/date-picker/locale/en_US.js": /*!*********************************************************************!*\ !*** ./node_modules/ant-design-vue/lib/date-picker/locale/en_US.js ***! @@ -7285,10 +7810,6 @@ Object.defineProperty(exports, "__esModule", { }); exports.DropdownButtonProps = undefined; -var _babelHelperVueJsxMergeProps = __webpack_require__(/*! babel-helper-vue-jsx-merge-props */ "./node_modules/babel-helper-vue-jsx-merge-props/index.js"); - -var _babelHelperVueJsxMergeProps2 = _interopRequireDefault(_babelHelperVueJsxMergeProps); - var _objectWithoutProperties2 = __webpack_require__(/*! babel-runtime/helpers/objectWithoutProperties */ "./node_modules/babel-runtime/helpers/objectWithoutProperties.js"); var _objectWithoutProperties3 = _interopRequireDefault(_objectWithoutProperties2); @@ -7321,6 +7842,8 @@ var _getDropdownProps = __webpack_require__(/*! ./getDropdownProps */ "./node_mo var _getDropdownProps2 = _interopRequireDefault(_getDropdownProps); +var _configProvider = __webpack_require__(/*! ../config-provider */ "./node_modules/ant-design-vue/lib/config-provider/index.js"); + function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } var ButtonTypesProps = (0, _buttonTypes2['default'])(); @@ -7328,9 +7851,11 @@ var DropdownProps = (0, _getDropdownProps2['default'])(); var ButtonGroup = _button2['default'].Group; var DropdownButtonProps = (0, _extends3['default'])({}, _buttonGroup.ButtonGroupProps, DropdownProps, { type: _vueTypes2['default'].oneOf(['primary', 'ghost', 'dashed', 'danger', 'default']).def('default'), + size: _vueTypes2['default'].oneOf(['small', 'large', 'default']).def('default'), htmlType: ButtonTypesProps.htmlType, + href: _vueTypes2['default'].string, disabled: _vueTypes2['default'].bool, - prefixCls: _vueTypes2['default'].string.def('ant-dropdown-button'), + prefixCls: _vueTypes2['default'].string, placement: DropdownProps.placement.def('bottomRight') }); exports.DropdownButtonProps = DropdownButtonProps; @@ -7349,7 +7874,7 @@ exports['default'] = { inject: { configProvider: { 'default': function _default() { - return {}; + return _configProvider.ConfigConsumerProps; } } }, methods: { @@ -7369,15 +7894,18 @@ exports['default'] = { type = _$props.type, disabled = _$props.disabled, htmlType = _$props.htmlType, - prefixCls = _$props.prefixCls, + customizePrefixCls = _$props.prefixCls, trigger = _$props.trigger, align = _$props.align, visible = _$props.visible, placement = _$props.placement, getPopupContainer = _$props.getPopupContainer, - restProps = (0, _objectWithoutProperties3['default'])(_$props, ['type', 'disabled', 'htmlType', 'prefixCls', 'trigger', 'align', 'visible', 'placement', 'getPopupContainer']); + href = _$props.href, + restProps = (0, _objectWithoutProperties3['default'])(_$props, ['type', 'disabled', 'htmlType', 'prefixCls', 'trigger', 'align', 'visible', 'placement', 'getPopupContainer', 'href']); var getContextPopupContainer = this.configProvider.getPopupContainer; + var getPrefixCls = this.configProvider.getPrefixCls; + var prefixCls = getPrefixCls('dropdown-button', customizePrefixCls); var dropdownProps = { props: { align: align, @@ -7394,13 +7922,24 @@ exports['default'] = { dropdownProps.props.visible = visible; } + var buttonGroupProps = { + props: (0, _extends3['default'])({}, restProps), + 'class': prefixCls + }; + return h( ButtonGroup, - (0, _babelHelperVueJsxMergeProps2['default'])([restProps, { 'class': prefixCls }]), + buttonGroupProps, [h( _button2['default'], { - attrs: { type: type, disabled: disabled, htmlType: htmlType }, + attrs: { + type: type, + disabled: disabled, + + htmlType: htmlType, + href: href + }, on: { 'click': this.onClick } @@ -7462,6 +8001,8 @@ var _getDropdownProps = __webpack_require__(/*! ./getDropdownProps */ "./node_mo var _getDropdownProps2 = _interopRequireDefault(_getDropdownProps); +var _configProvider = __webpack_require__(/*! ../config-provider */ "./node_modules/ant-design-vue/lib/config-provider/index.js"); + var _icon = __webpack_require__(/*! ../icon */ "./node_modules/ant-design-vue/lib/icon/index.js"); var _icon2 = _interopRequireDefault(_icon); @@ -7472,7 +8013,7 @@ var DropdownProps = (0, _getDropdownProps2['default'])(); var Dropdown = { name: 'ADropdown', props: (0, _extends3['default'])({}, DropdownProps, { - prefixCls: _vueTypes2['default'].string.def('ant-dropdown'), + prefixCls: _vueTypes2['default'].string, mouseEnterDelay: _vueTypes2['default'].number.def(0.15), mouseLeaveDelay: _vueTypes2['default'].number.def(0.1), placement: DropdownProps.placement.def('bottomLeft') @@ -7489,7 +8030,7 @@ var Dropdown = { inject: { configProvider: { 'default': function _default() { - return {}; + return _configProvider.ConfigConsumerProps; } } }, methods: { @@ -7509,6 +8050,39 @@ var Dropdown = { return 'slide-down'; } return 'slide-up'; + }, + renderOverlay: function renderOverlay(prefixCls) { + var h = this.$createElement; + + var overlay = (0, _propsUtil.getComponentFromProp)(this, 'overlay'); + var overlayNode = Array.isArray(overlay) ? overlay[0] : overlay; + // menu cannot be selectable in dropdown defaultly + // menu should be focusable in dropdown defaultly + var overlayProps = overlayNode && (0, _propsUtil.getPropsData)(overlayNode); + + var _ref = overlayProps || {}, + _ref$selectable = _ref.selectable, + selectable = _ref$selectable === undefined ? false : _ref$selectable, + _ref$focusable = _ref.focusable, + focusable = _ref$focusable === undefined ? true : _ref$focusable; + + var expandIcon = h( + 'span', + { 'class': prefixCls + '-menu-submenu-arrow' }, + [h(_icon2['default'], { + attrs: { type: 'right' }, + 'class': prefixCls + '-menu-submenu-arrow-icon' })] + ); + + var fixedModeOverlay = overlayNode && overlayNode.componentOptions ? (0, _vnode.cloneElement)(overlayNode, { + props: { + mode: 'vertical', + selectable: selectable, + focusable: focusable, + expandIcon: expandIcon + } + }) : overlay; + return fixedModeOverlay; } }, @@ -7518,43 +8092,21 @@ var Dropdown = { $listeners = this.$listeners; var props = (0, _propsUtil.getOptionProps)(this); - var prefixCls = props.prefixCls, + var customizePrefixCls = props.prefixCls, trigger = props.trigger, disabled = props.disabled, getPopupContainer = props.getPopupContainer; var getContextPopupContainer = this.configProvider.getPopupContainer; + var getPrefixCls = this.configProvider.getPrefixCls; + var prefixCls = getPrefixCls('dropdown', customizePrefixCls); + var dropdownTrigger = (0, _vnode.cloneElement)($slots['default'], { 'class': prefixCls + '-trigger', - disabled: disabled - }); - var overlay = this.overlay || $slots.overlay && $slots.overlay[0]; - // menu cannot be selectable in dropdown defaultly - // menu should be focusable in dropdown defaultly - var overlayProps = overlay && (0, _propsUtil.getPropsData)(overlay); - - var _ref = overlayProps || {}, - _ref$selectable = _ref.selectable, - selectable = _ref$selectable === undefined ? false : _ref$selectable, - _ref$focusable = _ref.focusable, - focusable = _ref$focusable === undefined ? true : _ref$focusable; - - var expandIcon = h( - 'span', - { 'class': prefixCls + '-menu-submenu-arrow' }, - [h(_icon2['default'], { - attrs: { type: 'right' }, - 'class': prefixCls + '-menu-submenu-arrow-icon' })] - ); - - var fixedModeOverlay = overlay && overlay.componentOptions ? (0, _vnode.cloneElement)(overlay, { props: { - mode: 'vertical', - selectable: selectable, - focusable: focusable, - expandIcon: expandIcon + disabled: disabled } - }) : overlay; + }); var triggerActions = disabled ? [] : trigger; var alignPoint = void 0; if (triggerActions && triggerActions.indexOf('contextmenu') !== -1) { @@ -7564,6 +8116,7 @@ var Dropdown = { props: (0, _extends3['default'])({ alignPoint: alignPoint }, props, { + prefixCls: prefixCls, getPopupContainer: getPopupContainer || getContextPopupContainer, transitionName: this.getTransitionName(), trigger: triggerActions @@ -7576,7 +8129,7 @@ var Dropdown = { [dropdownTrigger, h( 'template', { slot: 'overlay' }, - [fixedModeOverlay] + [this.renderOverlay(prefixCls)] )] ); } @@ -7624,6 +8177,7 @@ exports['default'] = function () { forceRender: _vueTypes2['default'].bool, mouseEnterDelay: _vueTypes2['default'].number, mouseLeaveDelay: _vueTypes2['default'].number, + openClassName: _vueTypes2['default'].string, minOverlayWidthMatchTrigger: _vueTypes2['default'].bool }; }; @@ -7667,12 +8221,17 @@ var _dropdown2 = _interopRequireDefault(_dropdown); var _dropdownButton2 = _interopRequireDefault(_dropdownButton); +var _base = __webpack_require__(/*! ../base */ "./node_modules/ant-design-vue/lib/base/index.js"); + +var _base2 = _interopRequireDefault(_base); + function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } _dropdown2['default'].Button = _dropdownButton2['default']; /* istanbul ignore next */ _dropdown2['default'].install = function (Vue) { + Vue.use(_base2['default']); Vue.component(_dropdown2['default'].name, _dropdown2['default']); Vue.component(_dropdownButton2['default'].name, _dropdownButton2['default']); }; @@ -7681,6 +8240,133 @@ exports['default'] = _dropdown2['default']; /***/ }), +/***/ "./node_modules/ant-design-vue/lib/empty/index.js": +/*!********************************************************!*\ + !*** ./node_modules/ant-design-vue/lib/empty/index.js ***! + \********************************************************/ +/*! no static exports found */ +/***/ (function(module, exports, __webpack_require__) { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.EmptyProps = exports.TransferLocale = undefined; + +var _babelHelperVueJsxMergeProps = __webpack_require__(/*! babel-helper-vue-jsx-merge-props */ "./node_modules/babel-helper-vue-jsx-merge-props/index.js"); + +var _babelHelperVueJsxMergeProps2 = _interopRequireDefault(_babelHelperVueJsxMergeProps); + +var _objectWithoutProperties2 = __webpack_require__(/*! babel-runtime/helpers/objectWithoutProperties */ "./node_modules/babel-runtime/helpers/objectWithoutProperties.js"); + +var _objectWithoutProperties3 = _interopRequireDefault(_objectWithoutProperties2); + +var _extends2 = __webpack_require__(/*! babel-runtime/helpers/extends */ "./node_modules/babel-runtime/helpers/extends.js"); + +var _extends3 = _interopRequireDefault(_extends2); + +var _vueTypes = __webpack_require__(/*! ../_util/vue-types */ "./node_modules/ant-design-vue/lib/_util/vue-types/index.js"); + +var _vueTypes2 = _interopRequireDefault(_vueTypes); + +var _configProvider = __webpack_require__(/*! ../config-provider */ "./node_modules/ant-design-vue/lib/config-provider/index.js"); + +var _propsUtil = __webpack_require__(/*! ../_util/props-util */ "./node_modules/ant-design-vue/lib/_util/props-util.js"); + +var _LocaleReceiver = __webpack_require__(/*! ../locale-provider/LocaleReceiver */ "./node_modules/ant-design-vue/lib/locale-provider/LocaleReceiver.js"); + +var _LocaleReceiver2 = _interopRequireDefault(_LocaleReceiver); + +var _base = __webpack_require__(/*! ../base */ "./node_modules/ant-design-vue/lib/base/index.js"); + +var _base2 = _interopRequireDefault(_base); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } + +/* babel-plugin-inline-import './empty.svg' */var emptyImg = 'data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTg0IiBoZWlnaHQ9IjE1MiIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KICA8ZyBmaWxsPSJub25lIiBmaWxsLXJ1bGU9ImV2ZW5vZGQiPgogICAgPGcgdHJhbnNmb3JtPSJ0cmFuc2xhdGUoMjQgMzEuNjcpIj4KICAgICAgPGVsbGlwc2UgZmlsbC1vcGFjaXR5PSIuOCIgZmlsbD0iI0Y1RjVGNyIgY3g9IjY3Ljc5NyIgY3k9IjEwNi44OSIgcng9IjY3Ljc5NyIgcnk9IjEyLjY2OCIvPgogICAgICA8cGF0aCBkPSJNMTIyLjAzNCA2OS42NzRMOTguMTA5IDQwLjIyOWMtMS4xNDgtMS4zODYtMi44MjYtMi4yMjUtNC41OTMtMi4yMjVoLTUxLjQ0Yy0xLjc2NiAwLTMuNDQ0LjgzOS00LjU5MiAyLjIyNUwxMy41NiA2OS42NzR2MTUuMzgzaDEwOC40NzVWNjkuNjc0eiIgZmlsbD0iI0FFQjhDMiIvPgogICAgICA8cGF0aCBkPSJNMTAxLjUzNyA4Ni4yMTRMODAuNjMgNjEuMTAyYy0xLjAwMS0xLjIwNy0yLjUwNy0xLjg2Ny00LjA0OC0xLjg2N0gzMS43MjRjLTEuNTQgMC0zLjA0Ny42Ni00LjA0OCAxLjg2N0w2Ljc2OSA4Ni4yMTR2MTMuNzkyaDk0Ljc2OFY4Ni4yMTR6IiBmaWxsPSJ1cmwoI2xpbmVhckdyYWRpZW50LTEpIiB0cmFuc2Zvcm09InRyYW5zbGF0ZSgxMy41NikiLz4KICAgICAgPHBhdGggZD0iTTMzLjgzIDBoNjcuOTMzYTQgNCAwIDAgMSA0IDR2OTMuMzQ0YTQgNCAwIDAgMS00IDRIMzMuODNhNCA0IDAgMCAxLTQtNFY0YTQgNCAwIDAgMSA0LTR6IiBmaWxsPSIjRjVGNUY3Ii8+CiAgICAgIDxwYXRoIGQ9Ik00Mi42NzggOS45NTNoNTAuMjM3YTIgMiAwIDAgMSAyIDJWMzYuOTFhMiAyIDAgMCAxLTIgMkg0Mi42NzhhMiAyIDAgMCAxLTItMlYxMS45NTNhMiAyIDAgMCAxIDItMnpNNDIuOTQgNDkuNzY3aDQ5LjcxM2EyLjI2MiAyLjI2MiAwIDEgMSAwIDQuNTI0SDQyLjk0YTIuMjYyIDIuMjYyIDAgMCAxIDAtNC41MjR6TTQyLjk0IDYxLjUzaDQ5LjcxM2EyLjI2MiAyLjI2MiAwIDEgMSAwIDQuNTI1SDQyLjk0YTIuMjYyIDIuMjYyIDAgMCAxIDAtNC41MjV6TTEyMS44MTMgMTA1LjAzMmMtLjc3NSAzLjA3MS0zLjQ5NyA1LjM2LTYuNzM1IDUuMzZIMjAuNTE1Yy0zLjIzOCAwLTUuOTYtMi4yOS02LjczNC01LjM2YTcuMzA5IDcuMzA5IDAgMCAxLS4yMjItMS43OVY2OS42NzVoMjYuMzE4YzIuOTA3IDAgNS4yNSAyLjQ0OCA1LjI1IDUuNDJ2LjA0YzAgMi45NzEgMi4zNyA1LjM3IDUuMjc3IDUuMzdoMzQuNzg1YzIuOTA3IDAgNS4yNzctMi40MjEgNS4yNzctNS4zOTNWNzUuMWMwLTIuOTcyIDIuMzQzLTUuNDI2IDUuMjUtNS40MjZoMjYuMzE4djMzLjU2OWMwIC42MTctLjA3NyAxLjIxNi0uMjIxIDEuNzg5eiIgZmlsbD0iI0RDRTBFNiIvPgogICAgPC9nPgogICAgPHBhdGggZD0iTTE0OS4xMjEgMzMuMjkybC02LjgzIDIuNjVhMSAxIDAgMCAxLTEuMzE3LTEuMjNsMS45MzctNi4yMDdjLTIuNTg5LTIuOTQ0LTQuMTA5LTYuNTM0LTQuMTA5LTEwLjQwOEMxMzguODAyIDguMTAyIDE0OC45MiAwIDE2MS40MDIgMCAxNzMuODgxIDAgMTg0IDguMTAyIDE4NCAxOC4wOTdjMCA5Ljk5NS0xMC4xMTggMTguMDk3LTIyLjU5OSAxOC4wOTctNC41MjggMC04Ljc0NC0xLjA2Ni0xMi4yOC0yLjkwMnoiIGZpbGw9IiNEQ0UwRTYiLz4KICAgIDxnIHRyYW5zZm9ybT0idHJhbnNsYXRlKDE0OS42NSAxNS4zODMpIiBmaWxsPSIjRkZGIj4KICAgICAgPGVsbGlwc2UgY3g9IjIwLjY1NCIgY3k9IjMuMTY3IiByeD0iMi44NDkiIHJ5PSIyLjgxNSIvPgogICAgICA8cGF0aCBkPSJNNS42OTggNS42M0gwTDIuODk4LjcwNHpNOS4yNTkuNzA0aDQuOTg1VjUuNjNIOS4yNTl6Ii8+CiAgICA8L2c+CiAgPC9nPgo8L3N2Zz4K'; +var TransferLocale = exports.TransferLocale = function TransferLocale() { + return { + description: _vueTypes2['default'].string + }; +}; + +var EmptyProps = exports.EmptyProps = function EmptyProps() { + return { + prefixCls: _vueTypes2['default'].string, + image: _vueTypes2['default'].any, + description: _vueTypes2['default'].any + }; +}; + +var Empty = { + name: 'AEmpty', + props: (0, _extends3['default'])({}, EmptyProps()), + methods: { + renderEmpty: function renderEmpty(contentLocale) { + var h = this.$createElement; + var _$props = this.$props, + customizePrefixCls = _$props.prefixCls, + restProps = (0, _objectWithoutProperties3['default'])(_$props, ['prefixCls']); + + var prefixCls = _configProvider.ConfigConsumerProps.getPrefixCls('empty', customizePrefixCls); + var image = (0, _propsUtil.getComponentFromProp)(this, 'image'); + var description = (0, _propsUtil.getComponentFromProp)(this, 'description'); + + var des = description || contentLocale.description; + var alt = typeof des === 'string' ? des : 'empty'; + + var imageNode = null; + if (!image) { + imageNode = h('img', { + attrs: { alt: alt, src: emptyImg } + }); + } else if (typeof image === 'string') { + imageNode = h('img', { + attrs: { alt: alt, src: image } + }); + } else { + imageNode = image; + } + return h( + 'div', + (0, _babelHelperVueJsxMergeProps2['default'])([{ 'class': prefixCls }, { on: this.$listeners }]), + [h( + 'div', + { 'class': prefixCls + '-image' }, + [imageNode] + ), h( + 'p', + { 'class': prefixCls + '-description' }, + [des] + ), this.$slots['default'] && h( + 'div', + { 'class': prefixCls + '-footer' }, + [this.$slots['default']] + )] + ); + } + }, + render: function render() { + var h = arguments[0]; + + return h(_LocaleReceiver2['default'], { + attrs: { componentName: 'Empty' }, + scopedSlots: { 'default': this.renderEmpty } }); + } +}; + +/* istanbul ignore next */ +Empty.install = function (Vue) { + Vue.use(_base2['default']); + Vue.component(Empty.name, Empty); +}; + +exports['default'] = Empty; + +/***/ }), + /***/ "./node_modules/ant-design-vue/lib/form/Form.js": /*!******************************************************!*\ !*** ./node_modules/ant-design-vue/lib/form/Form.js ***! @@ -7712,6 +8398,8 @@ var _classnames = __webpack_require__(/*! classnames */ "./node_modules/classnam var _classnames2 = _interopRequireDefault(_classnames); +var _Col = __webpack_require__(/*! ../grid/Col */ "./node_modules/ant-design-vue/lib/grid/Col.js"); + var _vue = __webpack_require__(/*! vue */ "./node_modules/vue/dist/vue.common.js"); var _vue2 = _interopRequireDefault(_vue); @@ -7740,6 +8428,12 @@ var _constants = __webpack_require__(/*! ./constants */ "./node_modules/ant-desi var _propsUtil = __webpack_require__(/*! ../_util/props-util */ "./node_modules/ant-design-vue/lib/_util/props-util.js"); +var _configProvider = __webpack_require__(/*! ../config-provider */ "./node_modules/ant-design-vue/lib/config-provider/index.js"); + +var _base = __webpack_require__(/*! ../base */ "./node_modules/ant-design-vue/lib/base/index.js"); + +var _base2 = _interopRequireDefault(_base); + function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } var FormCreateOption = exports.FormCreateOption = { @@ -7747,7 +8441,8 @@ var FormCreateOption = exports.FormCreateOption = { onValuesChange: _vueTypes2['default'].func, mapPropsToFields: _vueTypes2['default'].func, validateMessages: _vueTypes2['default'].any, - withRef: _vueTypes2['default'].bool + withRef: _vueTypes2['default'].bool, + name: _vueTypes2['default'].string }; // function create @@ -7789,12 +8484,15 @@ var WrappedFormUtils = exports.WrappedFormUtils = { var FormProps = exports.FormProps = { layout: _vueTypes2['default'].oneOf(['horizontal', 'inline', 'vertical']), + labelCol: _vueTypes2['default'].shape(_Col.ColProps).loose, + wrapperCol: _vueTypes2['default'].shape(_Col.ColProps).loose, form: _vueTypes2['default'].object, // onSubmit: React.FormEventHandler; prefixCls: _vueTypes2['default'].string, hideRequiredMark: _vueTypes2['default'].bool, autoFormCreate: _vueTypes2['default'].func, - options: _vueTypes2['default'].object + options: _vueTypes2['default'].object, + selfUpdate: _vueTypes2['default'].bool }; var ValidationRule = exports.ValidationRule = { @@ -7852,15 +8550,11 @@ var ValidationRule = exports.ValidationRule = { var Form = { name: 'AForm', props: (0, _propsUtil.initDefaultProps)(FormProps, { - prefixCls: 'ant-form', layout: 'horizontal', hideRequiredMark: false }), - Item: _FormItem2['default'], - createFormField: _createFormField2['default'], - create: function create() { var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {}; @@ -7874,7 +8568,8 @@ var Form = { createForm: function createForm(context) { var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; - return new _vue2['default'](Form.create((0, _extends3['default'])({}, options, { templateContext: context }))()); + var V = _base2['default'].Vue || _vue2['default']; + return new V(Form.create((0, _extends3['default'])({}, options, { templateContext: context }))()); }, created: function created() { this.formItemContexts = new Map(); @@ -7905,6 +8600,11 @@ var Form = { }; }, + inject: { + configProvider: { 'default': function _default() { + return _configProvider.ConfigConsumerProps; + } } + }, watch: { form: function form() { this.$forceUpdate(); @@ -7940,7 +8640,7 @@ var Form = { _this2 = this; var h = arguments[0]; - var prefixCls = this.prefixCls, + var customizePrefixCls = this.prefixCls, hideRequiredMark = this.hideRequiredMark, layout = this.layout, onSubmit = this.onSubmit, @@ -7949,6 +8649,8 @@ var Form = { _options = this.options, options = _options === undefined ? {} : _options; + var getPrefixCls = this.configProvider.getPrefixCls; + var prefixCls = getPrefixCls('form', customizePrefixCls); var formClassName = (0, _classnames2['default'])(prefixCls, (_classNames = {}, (0, _defineProperty3['default'])(_classNames, prefixCls + '-horizontal', layout === 'horizontal'), (0, _defineProperty3['default'])(_classNames, prefixCls + '-vertical', layout === 'vertical'), (0, _defineProperty3['default'])(_classNames, prefixCls + '-inline', layout === 'inline'), (0, _defineProperty3['default'])(_classNames, prefixCls + '-hide-required-mark', hideRequiredMark), _classNames)); if (autoFormCreate) { @@ -8058,10 +8760,6 @@ var _toConsumableArray2 = __webpack_require__(/*! babel-runtime/helpers/toConsum var _toConsumableArray3 = _interopRequireDefault(_toConsumableArray2); -var _intersperse = __webpack_require__(/*! intersperse */ "./node_modules/intersperse/lib/intersperse.js"); - -var _intersperse2 = _interopRequireDefault(_intersperse); - var _vueTypes = __webpack_require__(/*! ../_util/vue-types */ "./node_modules/ant-design-vue/lib/_util/vue-types/index.js"); var _vueTypes2 = _interopRequireDefault(_vueTypes); @@ -8104,9 +8802,17 @@ var _icon = __webpack_require__(/*! ../icon */ "./node_modules/ant-design-vue/li var _icon2 = _interopRequireDefault(_icon); +var _configProvider = __webpack_require__(/*! ../config-provider */ "./node_modules/ant-design-vue/lib/config-provider/index.js"); + function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } function noop() {} + +function intersperseSpace(list) { + return list.reduce(function (current, item) { + return [].concat((0, _toConsumableArray3['default'])(current), [' ', item]); + }, []).slice(1); +} var FormItemProps = exports.FormItemProps = { id: _vueTypes2['default'].string, prefixCls: _vueTypes2['default'].string, @@ -8120,7 +8826,8 @@ var FormItemProps = exports.FormItemProps = { required: _vueTypes2['default'].bool, colon: _vueTypes2['default'].bool, fieldDecoratorId: _vueTypes2['default'].string, - fieldDecoratorOptions: _vueTypes2['default'].object + fieldDecoratorOptions: _vueTypes2['default'].object, + selfUpdate: _vueTypes2['default'].bool }; function comeFromSlot() { var vnodes = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : []; @@ -8132,7 +8839,8 @@ function comeFromSlot() { if (vnode && (vnode === itemVnode || vnode.$vnode === itemVnode)) { isSlot = true; } else { - var children = vnode.componentOptions ? vnode.componentOptions.children : vnode.children; + var componentOptions = vnode.componentOptions || vnode.$vnode && vnode.$vnode.componentOptions; + var children = componentOptions ? componentOptions.children : vnode.$children; isSlot = comeFromSlot(children, itemVnode); } if (isSlot) { @@ -8148,7 +8856,6 @@ exports['default'] = { mixins: [_BaseMixin2['default']], props: (0, _propsUtil.initDefaultProps)(FormItemProps, { hasFeedback: false, - prefixCls: 'ant-form', colon: true }), inject: { @@ -8160,11 +8867,20 @@ exports['default'] = { } }, collectFormItemContext: { 'default': function _default() { return noop; + } }, + configProvider: { 'default': function _default() { + return _configProvider.ConfigConsumerProps; } } }, data: function data() { return { helpShow: false }; }, + + computed: { + itemSelfUpdate: function itemSelfUpdate() { + return !!(this.selfUpdate === undefined ? this.FormProps.selfUpdate : this.selfUpdate); + } + }, created: function created() { this.collectContext(); }, @@ -8177,7 +8893,11 @@ exports['default'] = { this.collectFormItemContext(this.$vnode.context, 'delete'); }, mounted: function mounted() { - (0, _warning2['default'])(this.getControls(this.slotDefault, true).length <= 1, '`Form.Item` cannot generate `validateStatus` and `help` automatically, ' + 'while there are more than one `getFieldDecorator` in it.'); + var _$props = this.$props, + help = _$props.help, + validateStatus = _$props.validateStatus; + + (0, _warning2['default'])(this.getControls(this.slotDefault, true).length <= 1 || help !== undefined || validateStatus !== undefined, '`Form.Item` cannot generate `validateStatus` and `help` automatically, ' + 'while there are more than one `getFieldDecorator` in it.'); (0, _warning2['default'])(!this.fieldDecoratorId, '`fieldDecoratorId` is deprecated. please use `v-decorator={id, options}` instead.'); }, @@ -8207,9 +8927,15 @@ exports['default'] = { if (help === undefined && onlyControl) { var errors = this.getField().errors; if (errors) { - return (0, _intersperse2['default'])(errors.map(function (e, index) { - return (0, _propsUtil.isValidElement)(e.message) ? (0, _vnode.cloneElement)(e.message, { key: index }) : e.message; - }), ' '); + return intersperseSpace(errors.map(function (e, index) { + var node = null; + if ((0, _propsUtil.isValidElement)(e)) { + node = e; + } else if ((0, _propsUtil.isValidElement)(e.message)) { + node = e.message; + } + return node ? (0, _vnode.cloneElement)(node, { key: index }) : e.message; + })); } else { return ''; } @@ -8278,12 +9004,11 @@ exports['default'] = { this.$forceUpdate(); } }, - renderHelp: function renderHelp() { + renderHelp: function renderHelp(prefixCls) { var _this = this; var h = this.$createElement; - var prefixCls = this.prefixCls; var help = this.getHelpMessage(); var children = help ? h( 'div', @@ -8307,9 +9032,8 @@ exports['default'] = { [children] ); }, - renderExtra: function renderExtra() { + renderExtra: function renderExtra(prefixCls) { var h = this.$createElement; - var prefixCls = this.prefixCls; var extra = (0, _propsUtil.getComponentFromProp)(this, 'extra'); return extra ? h( @@ -8336,16 +9060,16 @@ exports['default'] = { } return ''; }, - renderValidateWrapper: function renderValidateWrapper(c1, c2, c3) { + renderValidateWrapper: function renderValidateWrapper(prefixCls, c1, c2, c3) { var h = this.$createElement; var props = this.$props; var onlyControl = this.getOnlyControl; var validateStatus = props.validateStatus === undefined && onlyControl ? this.getValidateStatus() : props.validateStatus; - var classes = props.prefixCls + '-item-control'; + var classes = prefixCls + '-item-control'; if (validateStatus) { - classes = (0, _classnames2['default'])(props.prefixCls + '-item-control', { + classes = (0, _classnames2['default'])(prefixCls + '-item-control', { 'has-feedback': props.hasFeedback || validateStatus === 'validating', 'has-success': validateStatus === 'success', 'has-warning': validateStatus === 'warning', @@ -8373,7 +9097,7 @@ exports['default'] = { } var icon = props.hasFeedback && iconType ? h( 'span', - { 'class': props.prefixCls + '-item-children-icon' }, + { 'class': prefixCls + '-item-children-icon' }, [h(_icon2['default'], { attrs: { type: iconType, theme: iconType === 'loading' ? 'outlined' : 'filled' } })] @@ -8383,16 +9107,19 @@ exports['default'] = { { 'class': classes }, [h( 'span', - { 'class': props.prefixCls + '-item-children' }, + { 'class': prefixCls + '-item-children' }, [c1, icon] ), c2, c3] ); }, - renderWrapper: function renderWrapper(children) { + renderWrapper: function renderWrapper(prefixCls, children) { var h = this.$createElement; - var prefixCls = this.prefixCls, - _wrapperCol = this.wrapperCol, - wrapperCol = _wrapperCol === undefined ? {} : _wrapperCol; + var _FormProps = this.FormProps; + _FormProps = _FormProps === undefined ? {} : _FormProps; + var _FormProps$wrapperCol = _FormProps.wrapperCol, + wrapperColForm = _FormProps$wrapperCol === undefined ? {} : _FormProps$wrapperCol; + var _wrapperCol = this.wrapperCol, + wrapperCol = _wrapperCol === undefined ? wrapperColForm : _wrapperCol; var cls = wrapperCol['class'], style = wrapperCol.style, id = wrapperCol.id, @@ -8444,24 +9171,27 @@ exports['default'] = { if (!id) { return; } - var controls = document.querySelectorAll('[id="' + id + '"]'); - if (controls.length !== 1) { + var formItemNode = this.$el; + var control = formItemNode.querySelector('[id="' + id + '"]'); + if (control) { // Only prevent in default situation // Avoid preventing event in `label={link}`` if (typeof label === 'string') { e.preventDefault(); } - var control = this.$el.querySelector('[id="' + id + '"]'); - if (control && control.focus) { + if (control.focus) { control.focus(); } } }, - renderLabel: function renderLabel() { + renderLabel: function renderLabel(prefixCls) { var h = this.$createElement; - var prefixCls = this.prefixCls, - _labelCol = this.labelCol, - labelCol = _labelCol === undefined ? {} : _labelCol, + var _FormProps2 = this.FormProps; + _FormProps2 = _FormProps2 === undefined ? {} : _FormProps2; + var _FormProps2$labelCol = _FormProps2.labelCol, + labelColForm = _FormProps2$labelCol === undefined ? {} : _FormProps2$labelCol; + var _labelCol = this.labelCol, + labelCol = _labelCol === undefined ? labelColForm : _labelCol, colon = this.colon, id = this.id; @@ -8511,17 +9241,21 @@ exports['default'] = { )] ) : null; }, - renderChildren: function renderChildren() { - return [this.renderLabel(), this.renderWrapper(this.renderValidateWrapper(this.slotDefault, this.renderHelp(), this.renderExtra()))]; + renderChildren: function renderChildren(prefixCls) { + return [this.renderLabel(prefixCls), this.renderWrapper(prefixCls, this.renderValidateWrapper(prefixCls, this.slotDefault, this.renderHelp(prefixCls), this.renderExtra(prefixCls)))]; }, - renderFormItem: function renderFormItem(children) { + renderFormItem: function renderFormItem() { var _itemClassName; var h = this.$createElement; + var _$props2 = this.$props, + customizePrefixCls = _$props2.prefixCls, + colon = _$props2.colon; - var props = this.$props; - var prefixCls = props.prefixCls; - var itemClassName = (_itemClassName = {}, (0, _defineProperty3['default'])(_itemClassName, prefixCls + '-item', true), (0, _defineProperty3['default'])(_itemClassName, prefixCls + '-item-with-help', this.helpShow), (0, _defineProperty3['default'])(_itemClassName, prefixCls + '-item-no-colon', !props.colon), _itemClassName); + var getPrefixCls = this.configProvider.getPrefixCls; + var prefixCls = getPrefixCls('form', customizePrefixCls); + var children = this.renderChildren(prefixCls); + var itemClassName = (_itemClassName = {}, (0, _defineProperty3['default'])(_itemClassName, prefixCls + '-item', true), (0, _defineProperty3['default'])(_itemClassName, prefixCls + '-item-with-help', this.helpShow), (0, _defineProperty3['default'])(_itemClassName, prefixCls + '-item-no-colon', !colon), _itemClassName); return h( _Row2['default'], @@ -8554,7 +9288,7 @@ exports['default'] = { } var option = this.decoratorOption(vnode); if (option && option[0]) { - vnodes[i] = getFieldDecorator(option[0], option[1])(vnode); + vnodes[i] = getFieldDecorator(option[0], option[1], this)(vnode); } } return vnodes; @@ -8572,7 +9306,7 @@ exports['default'] = { var child = (0, _propsUtil.filterEmpty)($slots['default'] || []); if (decoratorFormProps.form && fieldDecoratorId && child.length) { var getFieldDecorator = decoratorFormProps.form.getFieldDecorator; - child[0] = getFieldDecorator(fieldDecoratorId, fieldDecoratorOptions)(child[0]); + child[0] = getFieldDecorator(fieldDecoratorId, fieldDecoratorOptions, this)(child[0]); (0, _warning2['default'])(!(child.length > 1), '`autoFormCreate` just `decorator` then first children. but you can use JSX to support multiple children'); this.slotDefault = child; } else if (FormProps.form) { @@ -8581,9 +9315,7 @@ exports['default'] = { } else { this.slotDefault = child; } - - var children = this.renderChildren(); - return this.renderFormItem(children); + return this.renderFormItem(); } }; @@ -8666,6 +9398,10 @@ var _FormDecoratorDirective = __webpack_require__(/*! ../_util/FormDecoratorDire var _FormDecoratorDirective2 = _interopRequireDefault(_FormDecoratorDirective); +var _base = __webpack_require__(/*! ../base */ "./node_modules/ant-design-vue/lib/base/index.js"); + +var _base2 = _interopRequireDefault(_base); + function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } _vue2['default'].use(_vueRef2['default'], { name: 'ant-ref' }); @@ -8674,6 +9410,7 @@ _vue2['default'].prototype.$form = _Form2['default']; /* istanbul ignore next */ _Form2['default'].install = function (Vue) { + Vue.use(_base2['default']); Vue.component(_Form2['default'].name, _Form2['default']); Vue.component(_Form2['default'].Item.name, _Form2['default'].Item); Vue.prototype.$form = _Form2['default']; @@ -8714,6 +9451,8 @@ var _vueTypes = __webpack_require__(/*! ../_util/vue-types */ "./node_modules/an var _vueTypes2 = _interopRequireDefault(_vueTypes); +var _configProvider = __webpack_require__(/*! ../config-provider */ "./node_modules/ant-design-vue/lib/config-provider/index.js"); + function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } var stringOrNumber = _vueTypes2['default'].oneOfType([_vueTypes2['default'].string, _vueTypes2['default'].number]); @@ -8726,7 +9465,7 @@ var ColSize = exports.ColSize = _vueTypes2['default'].shape({ pull: stringOrNumber }).loose; -var objectOrNumber = _vueTypes2['default'].oneOfType([_vueTypes2['default'].number, ColSize]); +var objectOrNumber = _vueTypes2['default'].oneOfType([_vueTypes2['default'].string, _vueTypes2['default'].number, ColSize]); var ColProps = exports.ColProps = { span: stringOrNumber, @@ -8747,6 +9486,9 @@ exports['default'] = { name: 'ACol', props: ColProps, inject: { + configProvider: { 'default': function _default() { + return _configProvider.ConfigConsumerProps; + } }, rowContext: { 'default': function _default() { return null; @@ -8763,13 +9505,15 @@ exports['default'] = { offset = this.offset, push = this.push, pull = this.pull, - _prefixCls = this.prefixCls, - prefixCls = _prefixCls === undefined ? 'ant-col' : _prefixCls, + customizePrefixCls = this.prefixCls, $slots = this.$slots, $attrs = this.$attrs, $listeners = this.$listeners, rowContext = this.rowContext; + var getPrefixCls = this.configProvider.getPrefixCls; + var prefixCls = getPrefixCls('col', customizePrefixCls); + var sizeClassObj = {}; ['xs', 'sm', 'md', 'lg', 'xl', 'xxl'].forEach(function (size) { var _extends2; @@ -8843,6 +9587,8 @@ var _BaseMixin = __webpack_require__(/*! ../_util/BaseMixin */ "./node_modules/a var _BaseMixin2 = _interopRequireDefault(_BaseMixin); +var _configProvider = __webpack_require__(/*! ../config-provider */ "./node_modules/ant-design-vue/lib/config-provider/index.js"); + function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } // matchMedia polyfill for @@ -8900,6 +9646,12 @@ exports['default'] = { rowContext: this }; }, + + inject: { + configProvider: { 'default': function _default() { + return _configProvider.ConfigConsumerProps; + } } + }, data: function data() { return { screens: {} @@ -8966,10 +9718,12 @@ exports['default'] = { var type = this.type, justify = this.justify, align = this.align, - _prefixCls = this.prefixCls, - prefixCls = _prefixCls === undefined ? 'ant-row' : _prefixCls, + customizePrefixCls = this.prefixCls, $slots = this.$slots; + var getPrefixCls = this.configProvider.getPrefixCls; + var prefixCls = getPrefixCls('row', customizePrefixCls); + var gutter = this.getGutter(); var classes = (_classes = {}, (0, _defineProperty3['default'])(_classes, prefixCls, !type), (0, _defineProperty3['default'])(_classes, prefixCls + '-' + type, type), (0, _defineProperty3['default'])(_classes, prefixCls + '-' + type + '-' + justify, type && justify), (0, _defineProperty3['default'])(_classes, prefixCls + '-' + type + '-' + align, type && align), _classes); var rowStyle = gutter > 0 ? { @@ -9085,6 +9839,10 @@ Object.defineProperty(exports, "__esModule", { value: true }); +var _objectWithoutProperties2 = __webpack_require__(/*! babel-runtime/helpers/objectWithoutProperties */ "./node_modules/babel-runtime/helpers/objectWithoutProperties.js"); + +var _objectWithoutProperties3 = _interopRequireDefault(_objectWithoutProperties2); + var _babelHelperVueJsxMergeProps = __webpack_require__(/*! babel-helper-vue-jsx-merge-props */ "./node_modules/babel-helper-vue-jsx-merge-props/index.js"); var _babelHelperVueJsxMergeProps2 = _interopRequireDefault(_babelHelperVueJsxMergeProps); @@ -9127,10 +9885,18 @@ var _warning = __webpack_require__(/*! ../_util/warning */ "./node_modules/ant-d var _warning2 = _interopRequireDefault(_warning); +var _LocaleReceiver = __webpack_require__(/*! ../locale-provider/LocaleReceiver */ "./node_modules/ant-design-vue/lib/locale-provider/LocaleReceiver.js"); + +var _LocaleReceiver2 = _interopRequireDefault(_LocaleReceiver); + var _twoTonePrimaryColor = __webpack_require__(/*! ./twoTonePrimaryColor */ "./node_modules/ant-design-vue/lib/icon/twoTonePrimaryColor.js"); var _propsUtil = __webpack_require__(/*! ../_util/props-util */ "./node_modules/ant-design-vue/lib/_util/props-util.js"); +var _base = __webpack_require__(/*! ../base */ "./node_modules/ant-design-vue/lib/base/index.js"); + +var _base2 = _interopRequireDefault(_base); + function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) newObj[key] = obj[key]; } } newObj['default'] = obj; return newObj; } } function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } @@ -9143,102 +9909,137 @@ _iconsVue2['default'].add.apply(_iconsVue2['default'], (0, _toConsumableArray3[' var defaultTheme = 'outlined'; var dangerousTheme = void 0; +function renderIcon(h, locale, context) { + var _extends2; + + var props = context.props, + slots = context.slots, + listeners = context.listeners, + data = context.data; + var type = props.type, + Component = props.component, + viewBox = props.viewBox, + spin = props.spin, + theme = props.theme, + twoToneColor = props.twoToneColor, + rotate = props.rotate, + tabIndex = props.tabIndex; + + var slotsMap = slots(); + var children = (0, _propsUtil.filterEmpty)(slotsMap['default']); + children = children.length === 0 ? undefined : children; + (0, _warning2['default'])(Boolean(type || Component || children), 'Icon should have `type` prop or `component` prop or `children`.'); + + var classString = (0, _classnames2['default'])((0, _extends4['default'])({}, (0, _propsUtil.getClass)(context), (_extends2 = {}, (0, _defineProperty3['default'])(_extends2, 'anticon', true), (0, _defineProperty3['default'])(_extends2, 'anticon-' + type, !!type), _extends2))); + + var svgClassString = (0, _classnames2['default'])((0, _defineProperty3['default'])({}, 'anticon-spin', !!spin || type === 'loading')); + + var svgStyle = rotate ? { + msTransform: 'rotate(' + rotate + 'deg)', + transform: 'rotate(' + rotate + 'deg)' + } : undefined; + + var innerNode = void 0; + + // component > children > type + if (Component) { + var innerSvgProps = { + attrs: (0, _extends4['default'])({}, _utils.svgBaseProps, { + viewBox: viewBox + }), + 'class': svgClassString, + style: svgStyle + }; + if (!viewBox) { + delete innerSvgProps.attrs.viewBox; + } + + innerNode = h( + Component, + innerSvgProps, + [children] + ); + } + if (children) { + (0, _warning2['default'])(Boolean(viewBox) || children.length === 1 && children[0].tag === 'use', 'Make sure that you provide correct `viewBox`' + ' prop (default `0 0 1024 1024`) to the icon.'); + var _innerSvgProps = { + attrs: (0, _extends4['default'])({}, _utils.svgBaseProps), + 'class': svgClassString, + style: svgStyle + }; + innerNode = h( + 'svg', + (0, _babelHelperVueJsxMergeProps2['default'])([_innerSvgProps, { + attrs: { viewBox: viewBox } + }]), + [children] + ); + } + + if (typeof type === 'string') { + var computedType = type; + if (theme) { + var themeInName = (0, _utils.getThemeFromTypeName)(type); + (0, _warning2['default'])(!themeInName || theme === themeInName, 'The icon name \'' + type + '\' already specify a theme \'' + themeInName + '\',' + (' the \'theme\' prop \'' + theme + '\' will be ignored.')); + } + computedType = (0, _utils.withThemeSuffix)((0, _utils.removeTypeTheme)((0, _utils.alias)(computedType)), dangerousTheme || theme || defaultTheme); + innerNode = h(_iconsVue2['default'], { + attrs: { + focusable: 'false', + + type: computedType, + primaryColor: twoToneColor + }, + 'class': svgClassString, style: svgStyle + }); + } + var iconTabIndex = tabIndex; + if (iconTabIndex === undefined && 'click' in listeners) { + iconTabIndex = -1; + } + var attrs = data.attrs, + restDataProps = (0, _objectWithoutProperties3['default'])(data, ['attrs']); + // functional component not support nativeOn,https://github.com/vuejs/vue/issues/7526 + + var iProps = (0, _extends4['default'])({}, restDataProps, { + attrs: (0, _extends4['default'])({}, attrs, { + 'aria-label': type && locale.icon + ': ' + type, + tabIndex: iconTabIndex + }), + on: (0, _extends4['default'])({}, listeners, data.nativeOn), + 'class': classString, + staticClass: '' + }); + return h( + 'i', + iProps, + [innerNode] + ); +} + var Icon = { functional: true, name: 'AIcon', props: { + tabIndex: _vueTypes2['default'].number, type: _vueTypes2['default'].string, component: _vueTypes2['default'].any, viewBox: _vueTypes2['default'].any, spin: _vueTypes2['default'].bool.def(false), + rotate: _vueTypes2['default'].number, theme: _vueTypes2['default'].oneOf(['filled', 'outlined', 'twoTone']), - twoToneColor: _vueTypes2['default'].string + twoToneColor: _vueTypes2['default'].string, + role: _vueTypes2['default'].string }, render: function render(h, context) { - var _extends2; - - var props = context.props, - slots = context.slots, - listeners = context.listeners, - data = context.data; - var type = props.type, - Component = props.component, - viewBox = props.viewBox, - spin = props.spin, - theme = props.theme, - twoToneColor = props.twoToneColor; - - var slotsMap = slots(); - var children = (0, _propsUtil.filterEmpty)(slotsMap['default']); - children = children.length === 0 ? undefined : children; - (0, _warning2['default'])(Boolean(type || Component || children), 'Icon should have `type` prop or `component` prop or `children`.'); - - var classString = (0, _classnames2['default'])((0, _extends4['default'])({}, (0, _propsUtil.getClass)(context), (_extends2 = {}, (0, _defineProperty3['default'])(_extends2, 'anticon', true), (0, _defineProperty3['default'])(_extends2, 'anticon-' + type, !!type), _extends2))); - - var svgClassString = (0, _classnames2['default'])((0, _defineProperty3['default'])({}, 'anticon-spin', !!spin || type === 'loading')); - - var innerNode = void 0; - - // component > children > type - if (Component) { - var innerSvgProps = { - attrs: (0, _extends4['default'])({}, _utils.svgBaseProps, { - viewBox: viewBox - }), - 'class': svgClassString - }; - if (!viewBox) { - delete innerSvgProps.attrs.viewBox; - } - - innerNode = h( - Component, - innerSvgProps, - [children] - ); - } - if (children) { - (0, _warning2['default'])(Boolean(viewBox) || children.length === 1 && children[0].tag === 'use', 'Make sure that you provide correct `viewBox`' + ' prop (default `0 0 1024 1024`) to the icon.'); - var _innerSvgProps = { - attrs: (0, _extends4['default'])({}, _utils.svgBaseProps), - 'class': svgClassString - }; - innerNode = h( - 'svg', - (0, _babelHelperVueJsxMergeProps2['default'])([_innerSvgProps, { - attrs: { viewBox: viewBox } - }]), - [children] - ); - } - - if (typeof type === 'string') { - var computedType = type; - if (theme) { - var themeInName = (0, _utils.getThemeFromTypeName)(type); - (0, _warning2['default'])(!themeInName || theme === themeInName, 'The icon name \'' + type + '\' already specify a theme \'' + themeInName + '\',' + (' the \'theme\' prop \'' + theme + '\' will be ignored.')); - } - computedType = (0, _utils.withThemeSuffix)((0, _utils.removeTypeTheme)((0, _utils.alias)(computedType)), dangerousTheme || theme || defaultTheme); - innerNode = h(_iconsVue2['default'], { - attrs: { - focusable: 'false', - - type: computedType, - primaryColor: twoToneColor - }, - 'class': svgClassString }); - } - // functional component not support nativeOn,https://github.com/vuejs/vue/issues/7526 - var iProps = (0, _extends4['default'])({}, data, { - on: (0, _extends4['default'])({}, listeners, data.nativeOn), - 'class': classString, - staticClass: '' + return h(_LocaleReceiver2['default'], { + attrs: { + componentName: 'Icon' + }, + scopedSlots: { 'default': function _default(locale) { + return renderIcon(h, locale, context); + } } }); - return h( - 'i', - iProps, - [innerNode] - ); } }; @@ -9248,6 +10049,7 @@ Icon.setTwoToneColor = _twoTonePrimaryColor.setTwoToneColor; /* istanbul ignore next */ Icon.install = function (Vue) { + Vue.use(_base2['default']); Vue.component(Icon.name, Icon); }; @@ -9412,6 +10214,8 @@ var _isNumeric = __webpack_require__(/*! ../_util/isNumeric */ "./node_modules/a var _isNumeric2 = _interopRequireDefault(_isNumeric); +var _configProvider = __webpack_require__(/*! ../config-provider */ "./node_modules/ant-design-vue/lib/config-provider/index.js"); + function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } // matchMedia polyfill for @@ -9482,14 +10286,12 @@ exports['default'] = { event: 'collapse' }, props: (0, _propsUtil.initDefaultProps)(SiderProps, { - prefixCls: 'ant-layout-sider', collapsible: false, defaultCollapsed: false, reverseArrow: false, width: 200, collapsedWidth: 80 }), - data: function data() { this.uniqueId = generateId('ant-sider-'); var matchMedia = void 0; @@ -9521,6 +10323,9 @@ exports['default'] = { inject: { siderHook: { 'default': function _default() { return {}; + } }, + configProvider: { 'default': function _default() { + return _configProvider.ConfigConsumerProps; } } }, // getChildContext() { @@ -9592,13 +10397,16 @@ exports['default'] = { var h = arguments[0]; var _getOptionProps = (0, _propsUtil.getOptionProps)(this), - prefixCls = _getOptionProps.prefixCls, + customizePrefixCls = _getOptionProps.prefixCls, theme = _getOptionProps.theme, collapsible = _getOptionProps.collapsible, reverseArrow = _getOptionProps.reverseArrow, width = _getOptionProps.width, collapsedWidth = _getOptionProps.collapsedWidth; + var getPrefixCls = this.configProvider.getPrefixCls; + var prefixCls = getPrefixCls('layout-sider', customizePrefixCls); + var trigger = (0, _propsUtil.getComponentFromProp)(this, 'trigger'); var rawWidth = this.sCollapsed ? collapsedWidth : width; // use "px" as fallback unit for width @@ -9610,7 +10418,9 @@ exports['default'] = { on: { 'click': this.toggle }, - 'class': prefixCls + '-zero-width-trigger' }, + + 'class': prefixCls + '-zero-width-trigger ' + prefixCls + '-zero-width-trigger-' + (reverseArrow ? 'right' : 'left') + }, [h(_icon2['default'], { attrs: { type: 'bars' } })] @@ -9686,12 +10496,17 @@ var _Sider = __webpack_require__(/*! ./Sider */ "./node_modules/ant-design-vue/l var _Sider2 = _interopRequireDefault(_Sider); +var _base = __webpack_require__(/*! ../base */ "./node_modules/ant-design-vue/lib/base/index.js"); + +var _base2 = _interopRequireDefault(_base); + function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } _layout2['default'].Sider = _Sider2['default']; /* istanbul ignore next */ _layout2['default'].install = function (Vue) { + Vue.use(_base2['default']); Vue.component(_layout2['default'].name, _layout2['default']); Vue.component(_layout2['default'].Header.name, _layout2['default'].Header); Vue.component(_layout2['default'].Footer.name, _layout2['default'].Footer); @@ -9739,6 +10554,8 @@ var _classnames2 = _interopRequireDefault(_classnames); var _propsUtil = __webpack_require__(/*! ../_util/props-util */ "./node_modules/ant-design-vue/lib/_util/props-util.js"); +var _configProvider = __webpack_require__(/*! ../config-provider */ "./node_modules/ant-design-vue/lib/config-provider/index.js"); + function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } var BasicProps = exports.BasicProps = { @@ -9751,9 +10568,18 @@ function generator(props, name) { return { name: name, props: BasicComponent.props, + inject: { + configProvider: { 'default': function _default() { + return _configProvider.ConfigConsumerProps; + } } + }, render: function render() { var h = arguments[0]; - var prefixCls = props.prefixCls; + var suffixCls = props.suffixCls; + var customizePrefixCls = this.$props.prefixCls; + + var getPrefixCls = this.configProvider.getPrefixCls; + var prefixCls = getPrefixCls(suffixCls, customizePrefixCls); var basicComponentProps = { props: (0, _extends3['default'])({ @@ -9835,19 +10661,19 @@ var BasicLayout = { }; var Layout = generator({ - prefixCls: 'ant-layout' + suffixCls: 'layout' }, 'ALayout')(BasicLayout); var Header = generator({ - prefixCls: 'ant-layout-header' + suffixCls: 'layout-header' }, 'ALayoutHeader')(Basic); var Footer = generator({ - prefixCls: 'ant-layout-footer' + suffixCls: 'layout-footer' }, 'ALayoutFooter')(Basic); var Content = generator({ - prefixCls: 'ant-layout-content' + suffixCls: 'layout-content' }, 'ALayoutContent')(Basic); Layout.Header = Header; @@ -9969,7 +10795,6 @@ exports['default'] = { DatePicker: _en_US4['default'], TimePicker: _en_US6['default'], Calendar: _en_US8['default'], - // locales for all comoponents global: { placeholder: 'Please select' }, @@ -9977,7 +10802,6 @@ exports['default'] = { filterTitle: 'Filter menu', filterConfirm: 'OK', filterReset: 'Reset', - emptyText: 'No data', selectAll: 'Select current page', selectInvert: 'Invert current page', sortTitle: 'Sort' @@ -9993,19 +10817,21 @@ exports['default'] = { }, Transfer: { titles: ['', ''], - notFoundContent: 'Not Found', searchPlaceholder: 'Search here', itemUnit: 'item', itemsUnit: 'items' }, - Select: { - notFoundContent: 'Not Found' - }, Upload: { uploading: 'Uploading...', removeFile: 'Remove file', uploadError: 'Upload error', previewFile: 'Preview file' + }, + Empty: { + description: 'No Data' + }, + Icon: { + icon: 'icon' } }; @@ -10166,6 +10992,12 @@ var _commonPropsType = __webpack_require__(/*! ../vc-menu/commonPropsType */ "./ var _commonPropsType2 = _interopRequireDefault(_commonPropsType); +var _configProvider = __webpack_require__(/*! ../config-provider */ "./node_modules/ant-design-vue/lib/config-provider/index.js"); + +var _base = __webpack_require__(/*! ../base */ "./node_modules/ant-design-vue/lib/base/index.js"); + +var _base2 = _interopRequireDefault(_base); + function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } var MenuMode = exports.MenuMode = _vueTypes2['default'].oneOf(['vertical', 'vertical-left', 'vertical-right', 'horizontal', 'inline']); @@ -10180,7 +11012,7 @@ var menuProps = exports.menuProps = (0, _extends3['default'])({}, _commonPropsTy defaultOpenKeys: _vueTypes2['default'].array, openAnimation: _vueTypes2['default'].oneOfType([_vueTypes2['default'].string, _vueTypes2['default'].object]), openTransitionName: _vueTypes2['default'].string, - prefixCls: _vueTypes2['default'].string.def('ant-menu'), + prefixCls: _vueTypes2['default'].string, multiple: _vueTypes2['default'].bool, inlineIndent: _vueTypes2['default'].number.def(24), inlineCollapsed: _vueTypes2['default'].bool, @@ -10207,7 +11039,7 @@ var Menu = { return {}; } }, configProvider: { 'default': function _default() { - return {}; + return _configProvider.ConfigConsumerProps; } } }, model: { @@ -10376,10 +11208,12 @@ var Menu = { var collapsedWidth = layoutSiderContext.collapsedWidth; var getContextPopupContainer = this.configProvider.getPopupContainer; var _$props2 = this.$props, - prefixCls = _$props2.prefixCls, + customizePrefixCls = _$props2.prefixCls, theme = _$props2.theme, getPopupContainer = _$props2.getPopupContainer; + var getPrefixCls = this.configProvider.getPrefixCls; + var prefixCls = getPrefixCls('menu', customizePrefixCls); var menuMode = this.getRealMenuMode(); var menuOpenAnimation = this.getMenuOpenAnimation(menuMode); @@ -10389,7 +11223,8 @@ var Menu = { props: (0, _extends3['default'])({}, (0, _omit2['default'])(this.$props, ['inlineCollapsed']), { getPopupContainer: getPopupContainer || getContextPopupContainer, openKeys: this.sOpenKeys, - mode: menuMode + mode: menuMode, + prefixCls: prefixCls }), on: (0, _extends3['default'])({}, $listeners, { select: this.handleSelect, @@ -10431,6 +11266,7 @@ var Menu = { /* istanbul ignore next */ Menu.install = function (Vue) { + Vue.use(_base2['default']); Vue.component(Menu.name, Menu); Vue.component(Menu.Item.name, Menu.Item); Vue.component(Menu.SubMenu.name, Menu.SubMenu); @@ -10693,6 +11529,477 @@ exports['default'] = api; /***/ }), +/***/ "./node_modules/ant-design-vue/lib/radio/Group.js": +/*!********************************************************!*\ + !*** ./node_modules/ant-design-vue/lib/radio/Group.js ***! + \********************************************************/ +/*! no static exports found */ +/***/ (function(module, exports, __webpack_require__) { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", { + value: true +}); + +var _defineProperty2 = __webpack_require__(/*! babel-runtime/helpers/defineProperty */ "./node_modules/babel-runtime/helpers/defineProperty.js"); + +var _defineProperty3 = _interopRequireDefault(_defineProperty2); + +var _extends2 = __webpack_require__(/*! babel-runtime/helpers/extends */ "./node_modules/babel-runtime/helpers/extends.js"); + +var _extends3 = _interopRequireDefault(_extends2); + +var _classnames = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js"); + +var _classnames2 = _interopRequireDefault(_classnames); + +var _vueTypes = __webpack_require__(/*! ../_util/vue-types */ "./node_modules/ant-design-vue/lib/_util/vue-types/index.js"); + +var _vueTypes2 = _interopRequireDefault(_vueTypes); + +var _Radio = __webpack_require__(/*! ./Radio */ "./node_modules/ant-design-vue/lib/radio/Radio.js"); + +var _Radio2 = _interopRequireDefault(_Radio); + +var _propsUtil = __webpack_require__(/*! ../_util/props-util */ "./node_modules/ant-design-vue/lib/_util/props-util.js"); + +var _configProvider = __webpack_require__(/*! ../config-provider */ "./node_modules/ant-design-vue/lib/config-provider/index.js"); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } + +function noop() {} + +exports['default'] = { + name: 'ARadioGroup', + model: { + prop: 'value' + }, + props: { + prefixCls: _vueTypes2['default'].string, + defaultValue: _vueTypes2['default'].any, + value: _vueTypes2['default'].any, + size: { + 'default': 'default', + validator: function validator(value) { + return ['large', 'default', 'small'].includes(value); + } + }, + options: { + 'default': function _default() { + return []; + }, + type: Array + }, + disabled: Boolean, + name: String, + buttonStyle: _vueTypes2['default'].string.def('outline') + }, + data: function data() { + var value = this.value, + defaultValue = this.defaultValue; + + this.updatingValue = false; + return { + stateValue: value === undefined ? defaultValue : value + }; + }, + provide: function provide() { + return { + radioGroupContext: this + }; + }, + + inject: { + configProvider: { 'default': function _default() { + return _configProvider.ConfigConsumerProps; + } } + }, + computed: { + radioOptions: function radioOptions() { + var disabled = this.disabled; + + return this.options.map(function (option) { + return typeof option === 'string' ? { label: option, value: option } : (0, _extends3['default'])({}, option, { disabled: option.disabled === undefined ? disabled : option.disabled }); + }); + }, + classes: function classes() { + var _ref; + + var prefixCls = this.prefixCls, + size = this.size; + + return _ref = {}, (0, _defineProperty3['default'])(_ref, '' + prefixCls, true), (0, _defineProperty3['default'])(_ref, prefixCls + '-' + size, size), _ref; + } + }, + watch: { + value: function value(val) { + this.updatingValue = false; + this.stateValue = val; + } + }, + methods: { + onRadioChange: function onRadioChange(ev) { + var _this = this; + + var lastValue = this.stateValue; + var value = ev.target.value; + + if (!(0, _propsUtil.hasProp)(this, 'value')) { + this.stateValue = value; + } + // nextTick for https://github.com/vueComponent/ant-design-vue/issues/1280 + if (!this.updatingValue && value !== lastValue) { + this.updatingValue = true; + this.$emit('input', value); + this.$emit('change', ev); + } + this.$nextTick(function () { + _this.updatingValue = false; + }); + } + }, + render: function render() { + var _this2 = this; + + var h = arguments[0]; + var _$listeners = this.$listeners, + _$listeners$mouseente = _$listeners.mouseenter, + mouseenter = _$listeners$mouseente === undefined ? noop : _$listeners$mouseente, + _$listeners$mouseleav = _$listeners.mouseleave, + mouseleave = _$listeners$mouseleav === undefined ? noop : _$listeners$mouseleav; + + var props = (0, _propsUtil.getOptionProps)(this); + var customizePrefixCls = props.prefixCls, + options = props.options, + buttonStyle = props.buttonStyle; + + var getPrefixCls = this.configProvider.getPrefixCls; + var prefixCls = getPrefixCls('radio', customizePrefixCls); + + var groupPrefixCls = prefixCls + '-group'; + var classString = (0, _classnames2['default'])(groupPrefixCls, groupPrefixCls + '-' + buttonStyle, (0, _defineProperty3['default'])({}, groupPrefixCls + '-' + props.size, props.size)); + + var children = (0, _propsUtil.filterEmpty)(this.$slots['default']); + + // 如果存在 options, 优先使用 + if (options && options.length > 0) { + children = options.map(function (option, index) { + if (typeof option === 'string') { + return h( + _Radio2['default'], + { + key: index, + attrs: { prefixCls: prefixCls, + disabled: props.disabled, + value: option, + checked: _this2.stateValue === option + } + }, + [option] + ); + } else { + return h( + _Radio2['default'], + { + key: index, + attrs: { prefixCls: prefixCls, + disabled: option.disabled || props.disabled, + value: option.value, + checked: _this2.stateValue === option.value + } + }, + [option.label] + ); + } + }); + } + + return h( + 'div', + { 'class': classString, on: { + 'mouseenter': mouseenter, + 'mouseleave': mouseleave + } + }, + [children] + ); + } +}; + +/***/ }), + +/***/ "./node_modules/ant-design-vue/lib/radio/Radio.js": +/*!********************************************************!*\ + !*** ./node_modules/ant-design-vue/lib/radio/Radio.js ***! + \********************************************************/ +/*! no static exports found */ +/***/ (function(module, exports, __webpack_require__) { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", { + value: true +}); + +var _babelHelperVueJsxMergeProps = __webpack_require__(/*! babel-helper-vue-jsx-merge-props */ "./node_modules/babel-helper-vue-jsx-merge-props/index.js"); + +var _babelHelperVueJsxMergeProps2 = _interopRequireDefault(_babelHelperVueJsxMergeProps); + +var _defineProperty2 = __webpack_require__(/*! babel-runtime/helpers/defineProperty */ "./node_modules/babel-runtime/helpers/defineProperty.js"); + +var _defineProperty3 = _interopRequireDefault(_defineProperty2); + +var _extends2 = __webpack_require__(/*! babel-runtime/helpers/extends */ "./node_modules/babel-runtime/helpers/extends.js"); + +var _extends3 = _interopRequireDefault(_extends2); + +var _objectWithoutProperties2 = __webpack_require__(/*! babel-runtime/helpers/objectWithoutProperties */ "./node_modules/babel-runtime/helpers/objectWithoutProperties.js"); + +var _objectWithoutProperties3 = _interopRequireDefault(_objectWithoutProperties2); + +var _vueTypes = __webpack_require__(/*! ../_util/vue-types */ "./node_modules/ant-design-vue/lib/_util/vue-types/index.js"); + +var _vueTypes2 = _interopRequireDefault(_vueTypes); + +var _vcCheckbox = __webpack_require__(/*! ../vc-checkbox */ "./node_modules/ant-design-vue/lib/vc-checkbox/index.js"); + +var _vcCheckbox2 = _interopRequireDefault(_vcCheckbox); + +var _classnames = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js"); + +var _classnames2 = _interopRequireDefault(_classnames); + +var _propsUtil = __webpack_require__(/*! ../_util/props-util */ "./node_modules/ant-design-vue/lib/_util/props-util.js"); + +var _configProvider = __webpack_require__(/*! ../config-provider */ "./node_modules/ant-design-vue/lib/config-provider/index.js"); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } + +function noop() {} + +exports['default'] = { + name: 'ARadio', + model: { + prop: 'checked' + }, + props: { + prefixCls: _vueTypes2['default'].string, + defaultChecked: Boolean, + checked: { type: Boolean, 'default': undefined }, + disabled: Boolean, + isGroup: Boolean, + value: _vueTypes2['default'].any, + name: String, + id: String, + autoFocus: Boolean, + type: _vueTypes2['default'].string.def('radio') + }, + inject: { + radioGroupContext: { 'default': undefined }, + configProvider: { 'default': function _default() { + return _configProvider.ConfigConsumerProps; + } } + }, + methods: { + handleChange: function handleChange(event) { + var targetChecked = event.target.checked; + this.$emit('input', targetChecked); + this.$emit('change', event); + }, + focus: function focus() { + this.$refs.vcCheckbox.focus(); + }, + blur: function blur() { + this.$refs.vcCheckbox.blur(); + }, + onChange: function onChange(e) { + this.$emit('change', e); + if (this.radioGroupContext && this.radioGroupContext.onRadioChange) { + this.radioGroupContext.onRadioChange(e); + } + } + }, + + render: function render() { + var _classNames; + + var h = arguments[0]; + var $slots = this.$slots, + $listeners = this.$listeners, + radioGroup = this.radioGroupContext; + + var props = (0, _propsUtil.getOptionProps)(this); + var children = $slots['default']; + var _$listeners$mouseente = $listeners.mouseenter, + mouseenter = _$listeners$mouseente === undefined ? noop : _$listeners$mouseente, + _$listeners$mouseleav = $listeners.mouseleave, + mouseleave = _$listeners$mouseleav === undefined ? noop : _$listeners$mouseleav, + restListeners = (0, _objectWithoutProperties3['default'])($listeners, ['mouseenter', 'mouseleave']); + var customizePrefixCls = props.prefixCls, + restProps = (0, _objectWithoutProperties3['default'])(props, ['prefixCls']); + + var getPrefixCls = this.configProvider.getPrefixCls; + var prefixCls = getPrefixCls('radio', customizePrefixCls); + + var radioProps = { + props: (0, _extends3['default'])({}, restProps, { prefixCls: prefixCls }), + on: restListeners, + attrs: (0, _propsUtil.getAttrs)(this) + }; + + if (radioGroup) { + radioProps.props.name = radioGroup.name; + radioProps.on.change = this.onChange; + radioProps.props.checked = props.value === radioGroup.stateValue; + radioProps.props.disabled = props.disabled || radioGroup.disabled; + } else { + radioProps.on.change = this.handleChange; + } + var wrapperClassString = (0, _classnames2['default'])((_classNames = {}, (0, _defineProperty3['default'])(_classNames, prefixCls + '-wrapper', true), (0, _defineProperty3['default'])(_classNames, prefixCls + '-wrapper-checked', radioProps.props.checked), (0, _defineProperty3['default'])(_classNames, prefixCls + '-wrapper-disabled', radioProps.props.disabled), _classNames)); + + return h( + 'label', + { 'class': wrapperClassString, on: { + 'mouseenter': mouseenter, + 'mouseleave': mouseleave + } + }, + [h(_vcCheckbox2['default'], (0, _babelHelperVueJsxMergeProps2['default'])([radioProps, { ref: 'vcCheckbox' }])), children !== undefined ? h('span', [children]) : null] + ); + } +}; + +/***/ }), + +/***/ "./node_modules/ant-design-vue/lib/radio/RadioButton.js": +/*!**************************************************************!*\ + !*** ./node_modules/ant-design-vue/lib/radio/RadioButton.js ***! + \**************************************************************/ +/*! no static exports found */ +/***/ (function(module, exports, __webpack_require__) { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", { + value: true +}); + +var _objectWithoutProperties2 = __webpack_require__(/*! babel-runtime/helpers/objectWithoutProperties */ "./node_modules/babel-runtime/helpers/objectWithoutProperties.js"); + +var _objectWithoutProperties3 = _interopRequireDefault(_objectWithoutProperties2); + +var _extends2 = __webpack_require__(/*! babel-runtime/helpers/extends */ "./node_modules/babel-runtime/helpers/extends.js"); + +var _extends3 = _interopRequireDefault(_extends2); + +var _Radio = __webpack_require__(/*! ./Radio */ "./node_modules/ant-design-vue/lib/radio/Radio.js"); + +var _Radio2 = _interopRequireDefault(_Radio); + +var _vueTypes = __webpack_require__(/*! ../_util/vue-types */ "./node_modules/ant-design-vue/lib/_util/vue-types/index.js"); + +var _vueTypes2 = _interopRequireDefault(_vueTypes); + +var _propsUtil = __webpack_require__(/*! ../_util/props-util */ "./node_modules/ant-design-vue/lib/_util/props-util.js"); + +var _configProvider = __webpack_require__(/*! ../config-provider */ "./node_modules/ant-design-vue/lib/config-provider/index.js"); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } + +exports['default'] = { + name: 'ARadioButton', + props: (0, _extends3['default'])({}, _Radio2['default'].props), + inject: { + radioGroupContext: { 'default': undefined }, + configProvider: { 'default': function _default() { + return _configProvider.ConfigConsumerProps; + } } + }, + render: function render() { + var h = arguments[0]; + + var _getOptionProps = (0, _propsUtil.getOptionProps)(this), + customizePrefixCls = _getOptionProps.prefixCls, + otherProps = (0, _objectWithoutProperties3['default'])(_getOptionProps, ['prefixCls']); + + var getPrefixCls = this.configProvider.getPrefixCls; + var prefixCls = getPrefixCls('radio-button', customizePrefixCls); + + var radioProps = { + props: (0, _extends3['default'])({}, otherProps, { + prefixCls: prefixCls + }), + on: (0, _extends3['default'])({}, this.$listeners) + }; + if (this.radioGroupContext) { + radioProps.on.change = this.radioGroupContext.onRadioChange; + radioProps.props.checked = this.$props.value === this.radioGroupContext.stateValue; + radioProps.props.disabled = this.$props.disabled || this.radioGroupContext.disabled; + } + return h( + _Radio2['default'], + radioProps, + [this.$slots['default']] + ); + } +}; + +/***/ }), + +/***/ "./node_modules/ant-design-vue/lib/radio/index.js": +/*!********************************************************!*\ + !*** ./node_modules/ant-design-vue/lib/radio/index.js ***! + \********************************************************/ +/*! no static exports found */ +/***/ (function(module, exports, __webpack_require__) { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.Group = exports.Button = undefined; + +var _Radio = __webpack_require__(/*! ./Radio */ "./node_modules/ant-design-vue/lib/radio/Radio.js"); + +var _Radio2 = _interopRequireDefault(_Radio); + +var _Group = __webpack_require__(/*! ./Group */ "./node_modules/ant-design-vue/lib/radio/Group.js"); + +var _Group2 = _interopRequireDefault(_Group); + +var _RadioButton = __webpack_require__(/*! ./RadioButton */ "./node_modules/ant-design-vue/lib/radio/RadioButton.js"); + +var _RadioButton2 = _interopRequireDefault(_RadioButton); + +var _base = __webpack_require__(/*! ../base */ "./node_modules/ant-design-vue/lib/base/index.js"); + +var _base2 = _interopRequireDefault(_base); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } + +_Radio2['default'].Group = _Group2['default']; +_Radio2['default'].Button = _RadioButton2['default']; + +/* istanbul ignore next */ +_Radio2['default'].install = function (Vue) { + Vue.use(_base2['default']); + Vue.component(_Radio2['default'].name, _Radio2['default']); + Vue.component(_Radio2['default'].Group.name, _Radio2['default'].Group); + Vue.component(_Radio2['default'].Button.name, _Radio2['default'].Button); +}; + +exports.Button = _RadioButton2['default']; +exports.Group = _Group2['default']; +exports['default'] = _Radio2['default']; + +/***/ }), + /***/ "./node_modules/ant-design-vue/lib/select/index.js": /*!*********************************************************!*\ !*** ./node_modules/ant-design-vue/lib/select/index.js ***! @@ -10724,7 +12031,7 @@ var _extends2 = __webpack_require__(/*! babel-runtime/helpers/extends */ "./node var _extends3 = _interopRequireDefault(_extends2); -var _warning = __webpack_require__(/*! warning */ "./node_modules/warning/browser.js"); +var _warning = __webpack_require__(/*! ../_util/warning */ "./node_modules/ant-design-vue/lib/_util/warning.js"); var _warning2 = _interopRequireDefault(_warning); @@ -10738,13 +12045,7 @@ var _vueTypes2 = _interopRequireDefault(_vueTypes); var _vcSelect = __webpack_require__(/*! ../vc-select */ "./node_modules/ant-design-vue/lib/vc-select/index.js"); -var _LocaleReceiver = __webpack_require__(/*! ../locale-provider/LocaleReceiver */ "./node_modules/ant-design-vue/lib/locale-provider/LocaleReceiver.js"); - -var _LocaleReceiver2 = _interopRequireDefault(_LocaleReceiver); - -var _default2 = __webpack_require__(/*! ../locale-provider/default */ "./node_modules/ant-design-vue/lib/locale-provider/default.js"); - -var _default3 = _interopRequireDefault(_default2); +var _configProvider = __webpack_require__(/*! ../config-provider */ "./node_modules/ant-design-vue/lib/config-provider/index.js"); var _propsUtil = __webpack_require__(/*! ../_util/props-util */ "./node_modules/ant-design-vue/lib/_util/props-util.js"); @@ -10754,6 +12055,10 @@ var _icon2 = _interopRequireDefault(_icon); var _vnode = __webpack_require__(/*! ../_util/vnode */ "./node_modules/ant-design-vue/lib/_util/vnode.js"); +var _base = __webpack_require__(/*! ../base */ "./node_modules/ant-design-vue/lib/base/index.js"); + +var _base2 = _interopRequireDefault(_base); + function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } var AbstractSelectProps = function AbstractSelectProps() { @@ -10788,7 +12093,7 @@ var AbstractSelectProps = function AbstractSelectProps() { }; }; var Value = _vueTypes2['default'].shape({ - key: _vueTypes2['default'].string + key: _vueTypes2['default'].oneOfType([_vueTypes2['default'].string, _vueTypes2['default'].number]) }).loose; var SelectValue = _vueTypes2['default'].oneOfType([_vueTypes2['default'].string, _vueTypes2['default'].number, _vueTypes2['default'].arrayOf(_vueTypes2['default'].oneOfType([Value, _vueTypes2['default'].string, _vueTypes2['default'].number])), Value]); @@ -10802,6 +12107,7 @@ var SelectProps = (0, _extends3['default'])({}, AbstractSelectProps(), { firstActiveValue: _vueTypes2['default'].oneOfType([String, _vueTypes2['default'].arrayOf(String)]), maxTagCount: _vueTypes2['default'].number, maxTagPlaceholder: _vueTypes2['default'].any, + maxTagTextLength: _vueTypes2['default'].number, dropdownMatchSelectWidth: _vueTypes2['default'].bool, optionFilterProp: _vueTypes2['default'].string, labelInValue: _vueTypes2['default'].boolean, @@ -10837,7 +12143,6 @@ var Select = { OptGroup: (0, _extends3['default'])({}, _vcSelect.OptGroup, { name: 'ASelectOptGroup' }), name: 'ASelect', props: (0, _extends3['default'])({}, SelectProps, { - prefixCls: _vueTypes2['default'].string.def('ant-select'), showSearch: _vueTypes2['default'].bool.def(false), transitionName: _vueTypes2['default'].string.def('slide-up'), choiceTransitionName: _vueTypes2['default'].string.def('zoom') @@ -10855,7 +12160,7 @@ var Select = { inject: { configProvider: { 'default': function _default() { - return {}; + return _configProvider.ConfigConsumerProps; } } }, created: function created() { @@ -10872,24 +12177,25 @@ var Select = { blur: function blur() { this.$refs.vcSelect.blur(); }, - getNotFoundContent: function getNotFoundContent(locale) { + getNotFoundContent: function getNotFoundContent(renderEmpty) { + var h = this.$createElement; var notFoundContent = (0, _propsUtil.getComponentFromProp)(this, 'notFoundContent'); + if (notFoundContent !== undefined) { + return notFoundContent; + } if (this.isCombobox()) { - // AutoComplete don't have notFoundContent defaultly - return notFoundContent === undefined ? null : notFoundContent; + return null; } - return notFoundContent === undefined ? locale.notFoundContent : notFoundContent; + return renderEmpty(h, 'Select'); }, isCombobox: function isCombobox() { var mode = this.mode; return mode === 'combobox' || mode === SECRET_COMBOBOX_MODE_DO_NOT_USE; }, - renderSuffixIcon: function renderSuffixIcon() { + renderSuffixIcon: function renderSuffixIcon(prefixCls) { var h = this.$createElement; - var _$props = this.$props, - prefixCls = _$props.prefixCls, - loading = _$props.loading; + var loading = this.$props.loading; var suffixIcon = (0, _propsUtil.getComponentFromProp)(this, 'suffixIcon'); suffixIcon = Array.isArray(suffixIcon) ? suffixIcon[0] : suffixIcon; @@ -10904,109 +12210,103 @@ var Select = { return h(_icon2['default'], { attrs: { type: 'down' }, 'class': prefixCls + '-arrow-icon' }); - }, - renderSelect: function renderSelect(locale) { - var _cls; + } + }, + render: function render() { + var _cls; - var h = this.$createElement; + var h = arguments[0]; - var _getOptionProps = (0, _propsUtil.getOptionProps)(this), - prefixCls = _getOptionProps.prefixCls, - size = _getOptionProps.size, - mode = _getOptionProps.mode, - options = _getOptionProps.options, - getPopupContainer = _getOptionProps.getPopupContainer, - restProps = (0, _objectWithoutProperties3['default'])(_getOptionProps, ['prefixCls', 'size', 'mode', 'options', 'getPopupContainer']); + var _getOptionProps = (0, _propsUtil.getOptionProps)(this), + customizePrefixCls = _getOptionProps.prefixCls, + size = _getOptionProps.size, + mode = _getOptionProps.mode, + options = _getOptionProps.options, + getPopupContainer = _getOptionProps.getPopupContainer, + restProps = (0, _objectWithoutProperties3['default'])(_getOptionProps, ['prefixCls', 'size', 'mode', 'options', 'getPopupContainer']); - var getContextPopupContainer = this.configProvider.getPopupContainer; + var getPrefixCls = this.configProvider.getPrefixCls; + var renderEmpty = this.configProvider.renderEmpty; + var prefixCls = getPrefixCls('select', customizePrefixCls); - var removeIcon = (0, _propsUtil.getComponentFromProp)(this, 'removeIcon'); - removeIcon = Array.isArray(removeIcon) ? removeIcon[0] : removeIcon; - var clearIcon = (0, _propsUtil.getComponentFromProp)(this, 'clearIcon'); - clearIcon = Array.isArray(clearIcon) ? clearIcon[0] : clearIcon; - var menuItemSelectedIcon = (0, _propsUtil.getComponentFromProp)(this, 'menuItemSelectedIcon'); - menuItemSelectedIcon = Array.isArray(menuItemSelectedIcon) ? menuItemSelectedIcon[0] : menuItemSelectedIcon; - var rest = (0, _omit2['default'])(restProps, ['inputIcon', 'removeIcon', 'clearIcon', 'suffixIcon', 'menuItemSelectedIcon']); + var getContextPopupContainer = this.configProvider.getPopupContainer; - var cls = (_cls = {}, (0, _defineProperty3['default'])(_cls, prefixCls + '-lg', size === 'large'), (0, _defineProperty3['default'])(_cls, prefixCls + '-sm', size === 'small'), _cls); + var removeIcon = (0, _propsUtil.getComponentFromProp)(this, 'removeIcon'); + removeIcon = Array.isArray(removeIcon) ? removeIcon[0] : removeIcon; + var clearIcon = (0, _propsUtil.getComponentFromProp)(this, 'clearIcon'); + clearIcon = Array.isArray(clearIcon) ? clearIcon[0] : clearIcon; + var menuItemSelectedIcon = (0, _propsUtil.getComponentFromProp)(this, 'menuItemSelectedIcon'); + menuItemSelectedIcon = Array.isArray(menuItemSelectedIcon) ? menuItemSelectedIcon[0] : menuItemSelectedIcon; + var rest = (0, _omit2['default'])(restProps, ['inputIcon', 'removeIcon', 'clearIcon', 'suffixIcon', 'menuItemSelectedIcon']); - var optionLabelProp = this.$props.optionLabelProp; + var cls = (_cls = {}, (0, _defineProperty3['default'])(_cls, prefixCls + '-lg', size === 'large'), (0, _defineProperty3['default'])(_cls, prefixCls + '-sm', size === 'small'), _cls); - if (this.isCombobox()) { - // children 带 dom 结构时,无法填入输入框 - optionLabelProp = optionLabelProp || 'value'; - } + var optionLabelProp = this.$props.optionLabelProp; - var modeConfig = { - multiple: mode === 'multiple', - tags: mode === 'tags', - combobox: this.isCombobox() - }; - var finalRemoveIcon = removeIcon && ((0, _propsUtil.isValidElement)(removeIcon) ? (0, _vnode.cloneElement)(removeIcon, { 'class': prefixCls + '-remove-icon' }) : removeIcon) || h(_icon2['default'], { - attrs: { type: 'close' }, - 'class': prefixCls + '-remove-icon' }); + if (this.isCombobox()) { + // children 带 dom 结构时,无法填入输入框 + optionLabelProp = optionLabelProp || 'value'; + } - var finalClearIcon = clearIcon && ((0, _propsUtil.isValidElement)(clearIcon) ? (0, _vnode.cloneElement)(clearIcon, { 'class': prefixCls + '-clear-icon' }) : clearIcon) || h(_icon2['default'], { - attrs: { type: 'close-circle', theme: 'filled' }, - 'class': prefixCls + '-clear-icon' }); + var modeConfig = { + multiple: mode === 'multiple', + tags: mode === 'tags', + combobox: this.isCombobox() + }; + var finalRemoveIcon = removeIcon && ((0, _propsUtil.isValidElement)(removeIcon) ? (0, _vnode.cloneElement)(removeIcon, { 'class': prefixCls + '-remove-icon' }) : removeIcon) || h(_icon2['default'], { + attrs: { type: 'close' }, + 'class': prefixCls + '-remove-icon' }); - var finalMenuItemSelectedIcon = menuItemSelectedIcon && ((0, _propsUtil.isValidElement)(menuItemSelectedIcon) ? (0, _vnode.cloneElement)(menuItemSelectedIcon, { 'class': prefixCls + '-selected-icon' }) : menuItemSelectedIcon) || h(_icon2['default'], { - attrs: { type: 'check' }, - 'class': prefixCls + '-selected-icon' }); + var finalClearIcon = clearIcon && ((0, _propsUtil.isValidElement)(clearIcon) ? (0, _vnode.cloneElement)(clearIcon, { 'class': prefixCls + '-clear-icon' }) : clearIcon) || h(_icon2['default'], { + attrs: { type: 'close-circle', theme: 'filled' }, + 'class': prefixCls + '-clear-icon' }); - var selectProps = { - props: (0, _extends3['default'])({ - inputIcon: this.renderSuffixIcon(), - removeIcon: finalRemoveIcon, - clearIcon: finalClearIcon, - menuItemSelectedIcon: finalMenuItemSelectedIcon - }, rest, modeConfig, { - prefixCls: prefixCls, - optionLabelProp: optionLabelProp || 'children', - notFoundContent: this.getNotFoundContent(locale), - maxTagPlaceholder: (0, _propsUtil.getComponentFromProp)(this, 'maxTagPlaceholder'), - placeholder: (0, _propsUtil.getComponentFromProp)(this, 'placeholder'), - children: options ? options.map(function (option) { - var key = option.key, - _option$label = option.label, - label = _option$label === undefined ? option.title : _option$label, - on = option.on, - cls = option['class'], - style = option.style, - restOption = (0, _objectWithoutProperties3['default'])(option, ['key', 'label', 'on', 'class', 'style']); + var finalMenuItemSelectedIcon = menuItemSelectedIcon && ((0, _propsUtil.isValidElement)(menuItemSelectedIcon) ? (0, _vnode.cloneElement)(menuItemSelectedIcon, { 'class': prefixCls + '-selected-icon' }) : menuItemSelectedIcon) || h(_icon2['default'], { + attrs: { type: 'check' }, + 'class': prefixCls + '-selected-icon' }); - return h( - _vcSelect.Option, - (0, _babelHelperVueJsxMergeProps2['default'])([{ key: key }, { props: restOption, on: on, 'class': cls, style: style }]), - [label] - ); - }) : (0, _propsUtil.filterEmpty)(this.$slots['default']), - __propsSymbol__: Symbol(), - dropdownRender: (0, _propsUtil.getComponentFromProp)(this, 'dropdownRender', {}, false), - getPopupContainer: getPopupContainer || getContextPopupContainer - }), - on: this.$listeners, - 'class': cls, - ref: 'vcSelect' - }; - return h(_vcSelect.Select, selectProps); - } - }, - render: function render() { - var h = arguments[0]; + var selectProps = { + props: (0, _extends3['default'])({ + inputIcon: this.renderSuffixIcon(prefixCls), + removeIcon: finalRemoveIcon, + clearIcon: finalClearIcon, + menuItemSelectedIcon: finalMenuItemSelectedIcon + }, rest, modeConfig, { + prefixCls: prefixCls, + optionLabelProp: optionLabelProp || 'children', + notFoundContent: this.getNotFoundContent(renderEmpty), + maxTagPlaceholder: (0, _propsUtil.getComponentFromProp)(this, 'maxTagPlaceholder'), + placeholder: (0, _propsUtil.getComponentFromProp)(this, 'placeholder'), + children: options ? options.map(function (option) { + var key = option.key, + _option$label = option.label, + label = _option$label === undefined ? option.title : _option$label, + on = option.on, + cls = option['class'], + style = option.style, + restOption = (0, _objectWithoutProperties3['default'])(option, ['key', 'label', 'on', 'class', 'style']); - return h(_LocaleReceiver2['default'], { - attrs: { - componentName: 'Select', - defaultLocale: _default3['default'].Select - }, - scopedSlots: { 'default': this.renderSelect } - }); + return h( + _vcSelect.Option, + (0, _babelHelperVueJsxMergeProps2['default'])([{ key: key }, { props: restOption, on: on, 'class': cls, style: style }]), + [label] + ); + }) : (0, _propsUtil.filterEmpty)(this.$slots['default']), + __propsSymbol__: Symbol(), + dropdownRender: (0, _propsUtil.getComponentFromProp)(this, 'dropdownRender', {}, false), + getPopupContainer: getPopupContainer || getContextPopupContainer + }), + on: this.$listeners, + 'class': cls, + ref: 'vcSelect' + }; + return h(_vcSelect.Select, selectProps); } }; /* istanbul ignore next */ Select.install = function (Vue) { + Vue.use(_base2['default']); Vue.component(Select.name, Select); Vue.component(Select.Option.name, Select.Option); Vue.component(Select.OptGroup.name, Select.OptGroup); @@ -11161,6 +12461,10 @@ var _TabContent = __webpack_require__(/*! ../vc-tabs/src/TabContent */ "./node_m var _TabContent2 = _interopRequireDefault(_TabContent); +var _base = __webpack_require__(/*! ../base */ "./node_modules/ant-design-vue/lib/base/index.js"); + +var _base2 = _interopRequireDefault(_base); + function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } _tabs2['default'].TabPane = (0, _extends3['default'])({}, _TabPane2['default'], { name: 'ATabPane', __ANT_TAB_PANE: true }); @@ -11169,6 +12473,7 @@ _vue2['default'].use(_vueRef2['default'], { name: 'ant-ref' }); /* istanbul ignore next */ _tabs2['default'].install = function (Vue) { + Vue.use(_base2['default']); Vue.component(_tabs2['default'].name, _tabs2['default']); Vue.component(_tabs2['default'].TabPane.name, _tabs2['default'].TabPane); Vue.component(_tabs2['default'].TabContent.name, _tabs2['default'].TabContent); @@ -11218,9 +12523,7 @@ var _TabContent = __webpack_require__(/*! ../vc-tabs/src/TabContent */ "./node_m var _TabContent2 = _interopRequireDefault(_TabContent); -var _isFlexSupported = __webpack_require__(/*! ../_util/isFlexSupported */ "./node_modules/ant-design-vue/lib/_util/isFlexSupported.js"); - -var _isFlexSupported2 = _interopRequireDefault(_isFlexSupported); +var _styleChecker = __webpack_require__(/*! ../_util/styleChecker */ "./node_modules/ant-design-vue/lib/_util/styleChecker.js"); var _vueTypes = __webpack_require__(/*! ../_util/vue-types */ "./node_modules/ant-design-vue/lib/_util/vue-types/index.js"); @@ -11230,6 +12533,8 @@ var _propsUtil = __webpack_require__(/*! ../_util/props-util */ "./node_modules/ var _vnode = __webpack_require__(/*! ../_util/vnode */ "./node_modules/ant-design-vue/lib/_util/vnode.js"); +var _configProvider = __webpack_require__(/*! ../config-provider */ "./node_modules/ant-design-vue/lib/config-provider/index.js"); + var _TabBar = __webpack_require__(/*! ./TabBar */ "./node_modules/ant-design-vue/lib/tabs/TabBar.js"); var _TabBar2 = _interopRequireDefault(_TabBar); @@ -11244,7 +12549,7 @@ exports['default'] = { event: 'change' }, props: { - prefixCls: _vueTypes2['default'].string.def('ant-tabs'), + prefixCls: _vueTypes2['default'].string, activeKey: _vueTypes2['default'].oneOfType([_vueTypes2['default'].string, _vueTypes2['default'].number]), defaultActiveKey: _vueTypes2['default'].oneOfType([_vueTypes2['default'].string, _vueTypes2['default'].number]), hideAdd: _vueTypes2['default'].bool.def(false), @@ -11258,10 +12563,15 @@ exports['default'] = { tabBarGutter: _vueTypes2['default'].number, renderTabBar: _vueTypes2['default'].func }, + inject: { + configProvider: { 'default': function _default() { + return _configProvider.ConfigConsumerProps; + } } + }, mounted: function mounted() { var NO_FLEX = ' no-flex'; var tabNode = this.$el; - if (tabNode && !(0, _isFlexSupported2['default'])() && tabNode.className.indexOf(NO_FLEX) === -1) { + if (tabNode && !_styleChecker.isFlexSupported && tabNode.className.indexOf(NO_FLEX) === -1) { tabNode.className += NO_FLEX; } }, @@ -11299,7 +12609,7 @@ exports['default'] = { var h = arguments[0]; var props = (0, _propsUtil.getOptionProps)(this); - var prefixCls = props.prefixCls, + var customizePrefixCls = props.prefixCls, size = props.size, _props$type = props.type, type = _props$type === undefined ? 'line' : _props$type, @@ -11309,6 +12619,8 @@ exports['default'] = { hideAdd = props.hideAdd, renderTabBar = props.renderTabBar; + var getPrefixCls = this.configProvider.getPrefixCls; + var prefixCls = getPrefixCls('tabs', customizePrefixCls); var children = (0, _propsUtil.filterEmpty)(this.$slots['default']); var tabBarExtraContent = (0, _propsUtil.getComponentFromProp)(this, 'tabBarExtraContent'); @@ -11369,6 +12681,7 @@ exports['default'] = { var renderTabBarSlot = renderTabBar || this.$scopedSlots.renderTabBar; var tabBarProps = { props: (0, _extends3['default'])({}, this.$props, { + prefixCls: prefixCls, tabBarExtraContent: tabBarExtraContent, renderTabBar: renderTabBarSlot }), @@ -11377,6 +12690,7 @@ exports['default'] = { var contentCls = (_contentCls = {}, (0, _defineProperty3['default'])(_contentCls, prefixCls + '-' + tabPosition + '-content', true), (0, _defineProperty3['default'])(_contentCls, prefixCls + '-card-content', type.indexOf('card') >= 0), _contentCls); var tabsProps = { props: (0, _extends3['default'])({}, (0, _propsUtil.getOptionProps)(this), { + prefixCls: prefixCls, tabBarPosition: tabPosition, renderTabBar: function renderTabBar() { return h(_TabBar2['default'], tabBarProps); @@ -11458,6 +12772,8 @@ var _vueTypes2 = _interopRequireDefault(_vueTypes); var _propsUtil = __webpack_require__(/*! ../_util/props-util */ "./node_modules/ant-design-vue/lib/_util/props-util.js"); +var _configProvider = __webpack_require__(/*! ../config-provider */ "./node_modules/ant-design-vue/lib/config-provider/index.js"); + var _abstractTooltipProps = __webpack_require__(/*! ./abstractTooltipProps */ "./node_modules/ant-design-vue/lib/tooltip/abstractTooltipProps.js"); var _abstractTooltipProps2 = _interopRequireDefault(_abstractTooltipProps); @@ -11487,12 +12803,12 @@ exports['default'] = { }), inject: { configProvider: { 'default': function _default() { - return {}; + return _configProvider.ConfigConsumerProps; } } }, data: function data() { return { - sVisible: !!this.$props.visible + sVisible: !!this.$props.visible || !!this.$props.defaultVisible }; }, @@ -11606,11 +12922,13 @@ exports['default'] = { $data = this.$data, $slots = this.$slots, $listeners = this.$listeners; - var prefixCls = $props.prefixCls, + var customizePrefixCls = $props.prefixCls, openClassName = $props.openClassName, getPopupContainer = $props.getPopupContainer; var getContextPopupContainer = this.configProvider.getPopupContainer; + var getPrefixCls = this.configProvider.getPrefixCls; + var prefixCls = getPrefixCls('tooltip', customizePrefixCls); var children = ($slots['default'] || []).filter(function (c) { return c.tag || c.text.trim() !== ''; }); @@ -11627,6 +12945,7 @@ exports['default'] = { var childCls = (0, _defineProperty3['default'])({}, openClassName || prefixCls + '-open', true); var tooltipProps = { props: (0, _extends3['default'])({}, $props, { + prefixCls: prefixCls, getTooltipContainer: getPopupContainer || getContextPopupContainer, builtinPlacements: this.getPlacements(), visible: sVisible @@ -11683,14 +13002,15 @@ exports['default'] = function () { // onVisibleChange: PropTypes.func, overlayStyle: _vueTypes2['default'].object.def({}), overlayClassName: _vueTypes2['default'].string, - prefixCls: _vueTypes2['default'].string.def('ant-tooltip'), + prefixCls: _vueTypes2['default'].string, mouseEnterDelay: _vueTypes2['default'].number.def(0.1), mouseLeaveDelay: _vueTypes2['default'].number.def(0.1), getPopupContainer: _vueTypes2['default'].func, arrowPointAtCenter: _vueTypes2['default'].bool.def(false), autoAdjustOverflow: _vueTypes2['default'].oneOfType([_vueTypes2['default'].bool, _vueTypes2['default'].object]).def(true), destroyTooltipOnHide: _vueTypes2['default'].bool.def(false), - align: _vueTypes2['default'].object.def({}) + align: _vueTypes2['default'].object.def({}), + builtinPlacements: _vueTypes2['default'].object }; }; @@ -11714,10 +13034,15 @@ var _Tooltip = __webpack_require__(/*! ./Tooltip */ "./node_modules/ant-design-v var _Tooltip2 = _interopRequireDefault(_Tooltip); +var _base = __webpack_require__(/*! ../base */ "./node_modules/ant-design-vue/lib/base/index.js"); + +var _base2 = _interopRequireDefault(_base); + function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } /* istanbul ignore next */ _Tooltip2['default'].install = function (Vue) { + Vue.use(_base2['default']); Vue.component(_Tooltip2['default'].name, _Tooltip2['default']); }; @@ -11883,6 +13208,8 @@ var _cloneDeep = __webpack_require__(/*! lodash/cloneDeep */ "./node_modules/lod var _cloneDeep2 = _interopRequireDefault(_cloneDeep); +var _propsUtil = __webpack_require__(/*! ../_util/props-util */ "./node_modules/ant-design-vue/lib/_util/props-util.js"); + function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } function getElement(func) { @@ -11953,7 +13280,7 @@ exports['default'] = { // If source element size changed var preRect = _this2.sourceRect || {}; - if (!reAlign && source && (preRect.width !== sourceRect.width || preRect.height !== sourceRect.height)) { + if (!reAlign && source && (!(0, _util.isSimilarValue)(preRect.width, sourceRect.width) || !(0, _util.isSimilarValue)(preRect.height, sourceRect.height))) { reAlign = true; } } @@ -12003,11 +13330,16 @@ exports['default'] = { var element = getElement(target); var point = getPoint(target); + // IE lose focus after element realign + // We should record activeElement and restore later + var activeElement = document.activeElement; + if (element) { result = (0, _domAlign.alignElement)(source, element, align); } else if (point) { result = (0, _domAlign.alignPoint)(source, point, align); } + (0, _util.restoreFocus)(activeElement, source); this.aligned = true; this.$listeners.align && this.$listeners.align(source, result); } @@ -12017,8 +13349,8 @@ exports['default'] = { render: function render() { var childrenProps = this.$props.childrenProps; - var child = this.$slots['default'][0]; - if (childrenProps) { + var child = (0, _propsUtil.getSlot)(this)[0]; + if (child && childrenProps) { return (0, _vnode.cloneElement)(child, { props: childrenProps }); } return child; @@ -12047,7 +13379,7 @@ var _Align2 = _interopRequireDefault(_Align); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } -exports['default'] = _Align2['default']; // based on vc-align 2.4.3 +exports['default'] = _Align2['default']; // based on vc-align 2.4.5 /***/ }), @@ -12072,6 +13404,12 @@ var _typeof3 = _interopRequireDefault(_typeof2); exports.buffer = buffer; exports.isSamePoint = isSamePoint; exports.isWindow = isWindow; +exports.isSimilarValue = isSimilarValue; +exports.restoreFocus = restoreFocus; + +var _contains = __webpack_require__(/*! ../_util/Dom/contains */ "./node_modules/ant-design-vue/lib/_util/Dom/contains.js"); + +var _contains2 = _interopRequireDefault(_contains); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } @@ -12114,6 +13452,19 @@ function isWindow(obj) { return obj && (typeof obj === 'undefined' ? 'undefined' : (0, _typeof3['default'])(obj)) === 'object' && obj.window === obj; } +function isSimilarValue(val1, val2) { + var int1 = Math.floor(val1); + var int2 = Math.floor(val2); + return Math.abs(int1 - int2) <= 1; +} + +function restoreFocus(activeElement, container) { + // Focus back if is in the container + if (activeElement !== document.activeElement && (0, _contains2['default'])(container, activeElement)) { + activeElement.focus(); + } +} + /***/ }), /***/ "./node_modules/ant-design-vue/lib/vc-calendar/src/locale/en_US.js": @@ -12160,6 +13511,254 @@ exports['default'] = { /***/ }), +/***/ "./node_modules/ant-design-vue/lib/vc-checkbox/index.js": +/*!**************************************************************!*\ + !*** ./node_modules/ant-design-vue/lib/vc-checkbox/index.js ***! + \**************************************************************/ +/*! no static exports found */ +/***/ (function(module, exports, __webpack_require__) { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", { + value: true +}); + +var _src = __webpack_require__(/*! ./src/ */ "./node_modules/ant-design-vue/lib/vc-checkbox/src/index.js"); + +Object.defineProperty(exports, 'default', { + enumerable: true, + get: function get() { + return _interopRequireDefault(_src)['default']; + } +}); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } + +/***/ }), + +/***/ "./node_modules/ant-design-vue/lib/vc-checkbox/src/Checkbox.js": +/*!*********************************************************************!*\ + !*** ./node_modules/ant-design-vue/lib/vc-checkbox/src/Checkbox.js ***! + \*********************************************************************/ +/*! no static exports found */ +/***/ (function(module, exports, __webpack_require__) { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", { + value: true +}); + +var _babelHelperVueJsxMergeProps = __webpack_require__(/*! babel-helper-vue-jsx-merge-props */ "./node_modules/babel-helper-vue-jsx-merge-props/index.js"); + +var _babelHelperVueJsxMergeProps2 = _interopRequireDefault(_babelHelperVueJsxMergeProps); + +var _defineProperty2 = __webpack_require__(/*! babel-runtime/helpers/defineProperty */ "./node_modules/babel-runtime/helpers/defineProperty.js"); + +var _defineProperty3 = _interopRequireDefault(_defineProperty2); + +var _objectWithoutProperties2 = __webpack_require__(/*! babel-runtime/helpers/objectWithoutProperties */ "./node_modules/babel-runtime/helpers/objectWithoutProperties.js"); + +var _objectWithoutProperties3 = _interopRequireDefault(_objectWithoutProperties2); + +var _extends2 = __webpack_require__(/*! babel-runtime/helpers/extends */ "./node_modules/babel-runtime/helpers/extends.js"); + +var _extends3 = _interopRequireDefault(_extends2); + +var _vueTypes = __webpack_require__(/*! ../../_util/vue-types */ "./node_modules/ant-design-vue/lib/_util/vue-types/index.js"); + +var _vueTypes2 = _interopRequireDefault(_vueTypes); + +var _classnames = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js"); + +var _classnames2 = _interopRequireDefault(_classnames); + +var _propsUtil = __webpack_require__(/*! ../../_util/props-util */ "./node_modules/ant-design-vue/lib/_util/props-util.js"); + +var _BaseMixin = __webpack_require__(/*! ../../_util/BaseMixin */ "./node_modules/ant-design-vue/lib/_util/BaseMixin.js"); + +var _BaseMixin2 = _interopRequireDefault(_BaseMixin); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } + +exports['default'] = { + name: 'Checkbox', + mixins: [_BaseMixin2['default']], + inheritAttrs: false, + model: { + prop: 'checked', + event: 'change' + }, + props: (0, _propsUtil.initDefaultProps)({ + prefixCls: _vueTypes2['default'].string, + name: _vueTypes2['default'].string, + id: _vueTypes2['default'].string, + type: _vueTypes2['default'].string, + defaultChecked: _vueTypes2['default'].oneOfType([_vueTypes2['default'].number, _vueTypes2['default'].bool]), + checked: _vueTypes2['default'].oneOfType([_vueTypes2['default'].number, _vueTypes2['default'].bool]), + disabled: _vueTypes2['default'].bool, + // onFocus: PropTypes.func, + // onBlur: PropTypes.func, + // onChange: PropTypes.func, + // onClick: PropTypes.func, + tabIndex: _vueTypes2['default'].oneOfType([_vueTypes2['default'].string, _vueTypes2['default'].number]), + readOnly: _vueTypes2['default'].bool, + autoFocus: _vueTypes2['default'].bool, + value: _vueTypes2['default'].any + }, { + prefixCls: 'rc-checkbox', + type: 'checkbox', + defaultChecked: false + }), + data: function data() { + var checked = (0, _propsUtil.hasProp)(this, 'checked') ? this.checked : this.defaultChecked; + return { + sChecked: checked + }; + }, + + watch: { + checked: function checked(val) { + this.sChecked = val; + } + }, + mounted: function mounted() { + var _this = this; + + this.$nextTick(function () { + if (_this.autoFocus) { + _this.$refs.input && _this.$refs.input.focus(); + } + }); + }, + + methods: { + focus: function focus() { + this.$refs.input.focus(); + }, + blur: function blur() { + this.$refs.input.blur(); + }, + handleChange: function handleChange(e) { + var props = (0, _propsUtil.getOptionProps)(this); + if (props.disabled) { + return; + } + if (!('checked' in props)) { + this.sChecked = e.target.checked; + } + this.$forceUpdate(); // change前,维持现有状态 + this.__emit('change', { + target: (0, _extends3['default'])({}, props, { + checked: e.target.checked + }), + stopPropagation: function stopPropagation() { + e.stopPropagation(); + }, + preventDefault: function preventDefault() { + e.preventDefault(); + }, + + nativeEvent: (0, _extends3['default'])({}, e, { shiftKey: this.eventShiftKey }) + }); + this.eventShiftKey = false; + }, + onClick: function onClick(e) { + this.__emit('click', e); + // onChange没能获取到shiftKey,使用onClick hack + this.eventShiftKey = e.shiftKey; + } + }, + + render: function render() { + var _classNames; + + var h = arguments[0]; + + var _getOptionProps = (0, _propsUtil.getOptionProps)(this), + prefixCls = _getOptionProps.prefixCls, + name = _getOptionProps.name, + id = _getOptionProps.id, + type = _getOptionProps.type, + disabled = _getOptionProps.disabled, + readOnly = _getOptionProps.readOnly, + tabIndex = _getOptionProps.tabIndex, + autoFocus = _getOptionProps.autoFocus, + value = _getOptionProps.value, + others = (0, _objectWithoutProperties3['default'])(_getOptionProps, ['prefixCls', 'name', 'id', 'type', 'disabled', 'readOnly', 'tabIndex', 'autoFocus', 'value']); + + var attrs = (0, _propsUtil.getAttrs)(this); + var globalProps = Object.keys((0, _extends3['default'])({}, others, attrs)).reduce(function (prev, key) { + if (key.substr(0, 5) === 'aria-' || key.substr(0, 5) === 'data-' || key === 'role') { + prev[key] = others[key]; + } + return prev; + }, {}); + + var sChecked = this.sChecked; + + var classString = (0, _classnames2['default'])(prefixCls, (_classNames = {}, (0, _defineProperty3['default'])(_classNames, prefixCls + '-checked', sChecked), (0, _defineProperty3['default'])(_classNames, prefixCls + '-disabled', disabled), _classNames)); + + return h( + 'span', + { 'class': classString }, + [h('input', (0, _babelHelperVueJsxMergeProps2['default'])([{ + attrs: { + name: name, + id: id, + type: type, + readOnly: readOnly, + disabled: disabled, + tabIndex: tabIndex, + + autoFocus: autoFocus + }, + 'class': prefixCls + '-input', + domProps: { + 'checked': !!sChecked, + 'value': value + }, + ref: 'input' + }, { + attrs: globalProps, + on: (0, _extends3['default'])({}, this.$listeners, { + change: this.handleChange, + click: this.onClick + }) + }])), h('span', { 'class': prefixCls + '-inner' })] + ); + } +}; + +/***/ }), + +/***/ "./node_modules/ant-design-vue/lib/vc-checkbox/src/index.js": +/*!******************************************************************!*\ + !*** ./node_modules/ant-design-vue/lib/vc-checkbox/src/index.js ***! + \******************************************************************/ +/*! no static exports found */ +/***/ (function(module, exports, __webpack_require__) { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", { + value: true +}); + +var _Checkbox = __webpack_require__(/*! ./Checkbox */ "./node_modules/ant-design-vue/lib/vc-checkbox/src/Checkbox.js"); + +var _Checkbox2 = _interopRequireDefault(_Checkbox); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } + +exports['default'] = _Checkbox2['default']; + +/***/ }), + /***/ "./node_modules/ant-design-vue/lib/vc-dropdown/src/Dropdown.js": /*!*********************************************************************!*\ !*** ./node_modules/ant-design-vue/lib/vc-dropdown/src/Dropdown.js ***! @@ -12211,10 +13810,12 @@ exports['default'] = { prefixCls: _vueTypes2['default'].string.def('rc-dropdown'), transitionName: _vueTypes2['default'].string, overlayClassName: _vueTypes2['default'].string.def(''), + openClassName: _vueTypes2['default'].string, animation: _vueTypes2['default'].any, align: _vueTypes2['default'].object, overlayStyle: _vueTypes2['default'].object.def({}), placement: _vueTypes2['default'].string.def('bottomLeft'), + overlay: _vueTypes2['default'].any, trigger: _vueTypes2['default'].array.def(['hover']), alignPoint: _vueTypes2['default'].bool, showAction: _vueTypes2['default'].array.def([]), @@ -12276,6 +13877,16 @@ exports['default'] = { return !alignPoint; }, + getOverlayElement: function getOverlayElement() { + var overlay = this.overlay || this.$slots.overlay || this.$scopedSlots.overlay; + var overlayElement = void 0; + if (typeof overlay === 'function') { + overlayElement = overlay(); + } else { + overlayElement = overlay; + } + return overlayElement; + }, getMenuElement: function getMenuElement() { var _this = this; @@ -12284,6 +13895,7 @@ exports['default'] = { $slots = this.$slots; this.childOriginEvents = (0, _propsUtil.getEvents)($slots.overlay[0]); + var overlayElement = this.getOverlayElement(); var extraOverlayProps = { props: { prefixCls: prefixCls + '-menu', @@ -12295,11 +13907,31 @@ exports['default'] = { click: onClick } }; + if (typeof overlayElement.type === 'string') { + delete extraOverlayProps.props.prefixCls; + } return (0, _vnode.cloneElement)($slots.overlay[0], extraOverlayProps); }, + getMenuElementOrLambda: function getMenuElementOrLambda() { + var overlay = this.overlay || this.$slots.overlay || this.$scopedSlots.overlay; + if (typeof overlay === 'function') { + return this.getMenuElement; + } + return this.getMenuElement(); + }, getPopupDomNode: function getPopupDomNode() { return this.$refs.trigger.getPopupDomNode(); }, + getOpenClassName: function getOpenClassName() { + var _$props = this.$props, + openClassName = _$props.openClassName, + prefixCls = _$props.prefixCls; + + if (openClassName !== undefined) { + return openClassName; + } + return prefixCls + '-open'; + }, afterVisibleChange: function afterVisibleChange(visible) { if (visible && this.getMinOverlayWidthMatchTrigger()) { var overlayNode = this.getPopupDomNode(); @@ -12311,24 +13943,30 @@ exports['default'] = { } } } + }, + renderChildren: function renderChildren() { + var children = this.$slots['default'] && this.$slots['default'][0]; + var sVisible = this.sVisible; + + return sVisible && children ? (0, _vnode.cloneElement)(children, { 'class': this.getOpenClassName() }) : children; } }, render: function render() { var h = arguments[0]; - var _$props = this.$props, - prefixCls = _$props.prefixCls, - transitionName = _$props.transitionName, - animation = _$props.animation, - align = _$props.align, - placement = _$props.placement, - getPopupContainer = _$props.getPopupContainer, - showAction = _$props.showAction, - hideAction = _$props.hideAction, - overlayClassName = _$props.overlayClassName, - overlayStyle = _$props.overlayStyle, - trigger = _$props.trigger, - otherProps = (0, _objectWithoutProperties3['default'])(_$props, ['prefixCls', 'transitionName', 'animation', 'align', 'placement', 'getPopupContainer', 'showAction', 'hideAction', 'overlayClassName', 'overlayStyle', 'trigger']); + var _$props2 = this.$props, + prefixCls = _$props2.prefixCls, + transitionName = _$props2.transitionName, + animation = _$props2.animation, + align = _$props2.align, + placement = _$props2.placement, + getPopupContainer = _$props2.getPopupContainer, + showAction = _$props2.showAction, + hideAction = _$props2.hideAction, + overlayClassName = _$props2.overlayClassName, + overlayStyle = _$props2.overlayStyle, + trigger = _$props2.trigger, + otherProps = (0, _objectWithoutProperties3['default'])(_$props2, ['prefixCls', 'transitionName', 'animation', 'align', 'placement', 'getPopupContainer', 'showAction', 'hideAction', 'overlayClassName', 'overlayStyle', 'trigger']); var triggerHideAction = hideAction; if (!triggerHideAction && trigger.indexOf('contextmenu') !== -1) { @@ -12361,7 +13999,7 @@ exports['default'] = { return h( _vcTrigger2['default'], triggerProps, - [child && !child.tag ? h('span', [child]) : child, h( + [this.renderChildren(), h( 'template', { slot: 'popup' }, [this.$slots.overlay && this.getMenuElement()] @@ -12392,7 +14030,7 @@ var _Dropdown2 = _interopRequireDefault(_Dropdown); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } -exports['default'] = _Dropdown2['default']; // base in 2.2.1 +exports['default'] = _Dropdown2['default']; // base in 2.4.1 /***/ }), @@ -12485,15 +14123,15 @@ var _defineProperty2 = __webpack_require__(/*! babel-runtime/helpers/definePrope var _defineProperty3 = _interopRequireDefault(_defineProperty2); -var _extends2 = __webpack_require__(/*! babel-runtime/helpers/extends */ "./node_modules/babel-runtime/helpers/extends.js"); +var _extends4 = __webpack_require__(/*! babel-runtime/helpers/extends */ "./node_modules/babel-runtime/helpers/extends.js"); -var _extends3 = _interopRequireDefault(_extends2); +var _extends5 = _interopRequireDefault(_extends4); var _toConsumableArray2 = __webpack_require__(/*! babel-runtime/helpers/toConsumableArray */ "./node_modules/babel-runtime/helpers/toConsumableArray.js"); var _toConsumableArray3 = _interopRequireDefault(_toConsumableArray2); -var _asyncValidator = __webpack_require__(/*! async-validator */ "./node_modules/async-validator/es/index.js"); +var _asyncValidator = __webpack_require__(/*! async-validator */ "./node_modules/async-validator/dist-web/index.js"); var _asyncValidator2 = _interopRequireDefault(_asyncValidator); @@ -12509,6 +14147,10 @@ var _set = __webpack_require__(/*! lodash/set */ "./node_modules/lodash/set.js") var _set2 = _interopRequireDefault(_set); +var _eq = __webpack_require__(/*! lodash/eq */ "./node_modules/lodash/eq.js"); + +var _eq2 = _interopRequireDefault(_eq); + var _omit = __webpack_require__(/*! lodash/omit */ "./node_modules/lodash/omit.js"); var _omit2 = _interopRequireDefault(_omit); @@ -12565,7 +14207,7 @@ function createBaseForm() { } var Form = { mixins: [_BaseMixin2['default']].concat((0, _toConsumableArray3['default'])(mixins)), - props: (0, _extends3['default'])({}, formProps, { + props: (0, _extends5['default'])({}, formProps, { wrappedComponentRef: _vueTypes2['default'].func.def(function () {}) }), data: function data() { @@ -12577,7 +14219,7 @@ function createBaseForm() { this.instances = {}; this.cachedBind = {}; this.clearedFieldMetaCache = {}; - + this.formItems = {}; this.renderFields = {}; this.domFields = {}; @@ -12639,10 +14281,10 @@ function createBaseForm() { Object.keys(valuesAll).forEach(function (key) { return (0, _set2['default'])(valuesAllSet, key, valuesAll[key]); }); - onValuesChange(this, (0, _set2['default'])({}, name, value), valuesAllSet); + onValuesChange((0, _extends5['default'])((0, _defineProperty3['default'])({}, formPropName, this.getForm()), this.$props), (0, _set2['default'])({}, name, value), valuesAllSet); } var field = this.fieldsStore.getField(name); - return { name: name, field: (0, _extends3['default'])({}, field, { value: value, touched: true }), fieldMeta: fieldMeta }; + return { name: name, field: (0, _extends5['default'])({}, field, { value: value, touched: true }), fieldMeta: fieldMeta }; }, onCollect: function onCollect(name_, action) { for (var _len = arguments.length, args = Array(_len > 2 ? _len - 2 : 0), _key = 2; _key < _len; _key++) { @@ -12656,7 +14298,8 @@ function createBaseForm() { var validate = fieldMeta.validate; - var newField = (0, _extends3['default'])({}, field, { + this.fieldsStore.setFieldsAsDirty(); + var newField = (0, _extends5['default'])({}, field, { dirty: (0, _utils.hasRules)(validate) }); this.setFields((0, _defineProperty3['default'])({}, name, newField)); @@ -12670,9 +14313,10 @@ function createBaseForm() { field = _onCollectCommon2.field, fieldMeta = _onCollectCommon2.fieldMeta; - var newField = (0, _extends3['default'])({}, field, { + var newField = (0, _extends5['default'])({}, field, { dirty: true }); + this.fieldsStore.setFieldsAsDirty(); this.validateFieldsInternal([newField], { action: action, options: { @@ -12693,13 +14337,14 @@ function createBaseForm() { } return cache[action].fn; }, - getFieldDecorator: function getFieldDecorator(name, fieldOption) { + getFieldDecorator: function getFieldDecorator(name, fieldOption, formItem) { var _this2 = this; var _getFieldProps = this.getFieldProps(name, fieldOption), props = _getFieldProps.props, restProps = (0, _objectWithoutProperties3['default'])(_getFieldProps, ['props']); + this.formItems[name] = formItem; return function (fieldElem) { // We should put field in record if it is rendered _this2.renderFields[name] = true; @@ -12710,14 +14355,14 @@ function createBaseForm() { if (true) { var valuePropName = fieldMeta.valuePropName; (0, _warning2['default'])(!(0, _propsUtil.slotHasProp)(fieldElem, valuePropName), '`getFieldDecorator` will override `' + valuePropName + '`, ' + ('so please don\'t set `' + valuePropName + ' and v-model` directly ') + 'and use `setFieldsValue` to set it.'); - (0, _warning2['default'])(!(!(0, _propsUtil.slotHasProp)(fieldElem, valuePropName) && valuePropName in originalProps && !(fieldOption && fieldOption.initialValue)), (0, _propsUtil.getComponentName)(fieldElem.componentOptions) + ' `default value` can not collect, ' + ' please use `option.initialValue` to set default value.'); + (0, _warning2['default'])(!(!(0, _propsUtil.slotHasProp)(fieldElem, valuePropName) && valuePropName in originalProps && !(fieldOption && 'initialValue' in fieldOption)), (0, _propsUtil.getComponentName)(fieldElem.componentOptions) + ' `default value` can not collect, ' + ' please use `option.initialValue` to set default value.'); var defaultValuePropName = 'default' + valuePropName[0].toUpperCase() + valuePropName.slice(1); (0, _warning2['default'])(!(0, _propsUtil.slotHasProp)(fieldElem, defaultValuePropName), '`' + defaultValuePropName + '` is invalid ' + ('for `getFieldDecorator` will set `' + valuePropName + '`,') + ' please use `option.initialValue` instead.'); } fieldMeta.originalProps = originalProps; // fieldMeta.ref = fieldElem.data && fieldElem.data.ref - var newProps = (0, _extends3['default'])({ - props: (0, _extends3['default'])({}, props, _this2.fieldsStore.getFieldValuePropValue(fieldMeta)) + var newProps = (0, _extends5['default'])({ + props: (0, _extends5['default'])({}, props, _this2.fieldsStore.getFieldValuePropValue(fieldMeta)) }, restProps); newProps.domProps.value = newProps.props.value; var newEvents = {}; @@ -12732,7 +14377,7 @@ function createBaseForm() { newEvents[key] = newProps.on[key]; } }); - return (0, _vnode.cloneElement)(fieldElem, (0, _extends3['default'])({}, newProps, { on: newEvents })); + return (0, _vnode.cloneElement)(fieldElem, (0, _extends5['default'])({}, newProps, { on: newEvents })); }; }, getFieldProps: function getFieldProps(name) { @@ -12744,13 +14389,13 @@ function createBaseForm() { throw new Error('Must call `getFieldProps` with valid name string!'); } if (true) { - (0, _warning2['default'])(this.fieldsStore.isValidNestedFieldName(name), 'One field name cannot be part of another, e.g. `a` and `a.b`.'); + (0, _warning2['default'])(this.fieldsStore.isValidNestedFieldName(name), 'One field name cannot be part of another, e.g. `a` and `a.b`. Check field: ' + name); (0, _warning2['default'])(!('exclusive' in usersFieldOption), '`option.exclusive` of `getFieldProps`|`getFieldDecorator` had been remove.'); } delete this.clearedFieldMetaCache[name]; - var fieldOption = (0, _extends3['default'])({ + var fieldOption = (0, _extends5['default'])({ name: name, trigger: DEFAULT_TRIGGER, valuePropName: 'value', @@ -12769,7 +14414,7 @@ function createBaseForm() { fieldMeta.initialValue = fieldOption.initialValue; } - var inputProps = (0, _extends3['default'])({}, this.fieldsStore.getFieldValuePropValue(fieldOption)); + var inputProps = (0, _extends5['default'])({}, this.fieldsStore.getFieldValuePropValue(fieldOption)); var inputListeners = {}; var inputAttrs = {}; if (fieldNameProp) { @@ -12788,7 +14433,7 @@ function createBaseForm() { inputListeners[trigger] = this.getCacheBind(name, trigger, this.onCollect); } - var meta = (0, _extends3['default'])({}, fieldMeta, fieldOption, { + var meta = (0, _extends5['default'])({}, fieldMeta, fieldOption, { validate: validateRules }); this.fieldsStore.setFieldMeta(name, meta); @@ -12807,7 +14452,7 @@ function createBaseForm() { domProps: { value: inputProps.value }, - attrs: (0, _extends3['default'])({}, inputAttrs, { + attrs: (0, _extends5['default'])({}, inputAttrs, { id: inputProps.id }), directives: [{ @@ -12833,16 +14478,28 @@ function createBaseForm() { var fields = this.fieldsStore.flattenRegisteredFields(maybeNestedFields); this.fieldsStore.setFields(fields); + var changedFields = Object.keys(fields).reduce(function (acc, name) { + return (0, _set2['default'])(acc, name, _this4.fieldsStore.getField(name)); + }, {}); if (onFieldsChange) { - var changedFields = Object.keys(fields).reduce(function (acc, name) { + var _changedFields = Object.keys(fields).reduce(function (acc, name) { return (0, _set2['default'])(acc, name, _this4.fieldsStore.getField(name)); }, {}); - onFieldsChange(this, changedFields, this.fieldsStore.getNestedAllFields()); + onFieldsChange(this, _changedFields, this.fieldsStore.getNestedAllFields()); } - if (templateContext) { - templateContext.$forceUpdate(); - } else { - this.$forceUpdate(); + var formContext = templateContext || this; + var allUpdate = false; + Object.keys(changedFields).forEach(function (key) { + var formItem = _this4.formItems[key]; + formItem = typeof formItem === 'function' ? formItem() : formItem; + if (formItem && formItem.itemSelfUpdate) { + formItem.$forceUpdate(); + } else { + allUpdate = true; + } + }); + if (allUpdate) { + formContext.$forceUpdate(); } this.$nextTick(function () { callback && callback(); @@ -12868,7 +14525,7 @@ function createBaseForm() { this.setFields(newFields, callback); if (onValuesChange) { var allValues = this.fieldsStore.getAllValues(); - onValuesChange(this, changedValues, allValues); + onValuesChange((0, _extends5['default'])((0, _defineProperty3['default'])({}, formPropName, this.getForm()), this.$props), changedValues, allValues); } }, saveRef: function saveRef(name, _, component) { @@ -12961,7 +14618,7 @@ function createBaseForm() { return; } var fieldMeta = _this7.fieldsStore.getFieldMeta(name); - var newField = (0, _extends3['default'])({}, field); + var newField = (0, _extends5['default'])({}, field); newField.errors = undefined; newField.validating = true; newField.dirty = true; @@ -12983,10 +14640,41 @@ function createBaseForm() { validator.messages(validateMessages); } validator.validate(allValues, options, function (errors) { - var errorsGroup = (0, _extends3['default'])({}, alreadyErrors); + var errorsGroup = (0, _extends5['default'])({}, alreadyErrors); if (errors && errors.length) { errors.forEach(function (e) { - var fieldName = e.field; + var errorFieldName = e.field; + var fieldName = errorFieldName; + + // Handle using array validation rule. + // ref: https://github.com/ant-design/ant-design/issues/14275 + Object.keys(allRules).some(function (ruleFieldName) { + var rules = allRules[ruleFieldName] || []; + + // Exist if match rule + if (ruleFieldName === errorFieldName) { + fieldName = ruleFieldName; + return true; + } + + // Skip if not match array type + if (rules.every(function (_ref2) { + var type = _ref2.type; + return type !== 'array'; + }) && errorFieldName.indexOf(ruleFieldName) !== 0) { + return false; + } + + // Exist if match the field name + var restPath = errorFieldName.slice(ruleFieldName.length + 1); + if (/^\d+$/.test(restPath)) { + fieldName = ruleFieldName; + return true; + } + + return false; + }); + var field = (0, _get2['default'])(errorsGroup, fieldName); if ((typeof field === 'undefined' ? 'undefined' : (0, _typeof3['default'])(field)) !== 'object' || Array.isArray(field)) { (0, _set2['default'])(errorsGroup, fieldName, { errors: [] }); @@ -13001,7 +14689,7 @@ function createBaseForm() { var fieldErrors = (0, _get2['default'])(errorsGroup, name); var nowField = _this7.fieldsStore.getField(name); // avoid concurrency problems - if (nowField.value !== allValues[name]) { + if (!(0, _eq2['default'])(nowField.value, allValues[name])) { expired.push({ name: name }); @@ -13016,8 +14704,8 @@ function createBaseForm() { _this7.setFields(nowAllFields); if (callback) { if (expired.length) { - expired.forEach(function (_ref2) { - var name = _ref2.name; + expired.forEach(function (_ref3) { + var name = _ref3.name; var fieldErrors = [{ message: name + ' need to revalidate', @@ -13067,9 +14755,7 @@ function createBaseForm() { return field; }); if (!fields.length) { - if (callback) { - callback(null, _this8.fieldsStore.getFieldsValue(fieldNames)); - } + callback(null, _this8.fieldsStore.getFieldsValue(fieldNames)); return; } if (!('firstFields' in options)) { @@ -13084,7 +14770,7 @@ function createBaseForm() { }, callback); }); pending['catch'](function (e) { - if (console.error) { + if (console.error && "development" !== 'production') { console.error(e); } return e; @@ -13101,7 +14787,7 @@ function createBaseForm() { var _this9 = this; if (true) { - (0, _warning2['default'])(false, '`submit` is deprecated.' + "Actually, it's more convenient to handle submitting status by yourself."); + (0, _warning2['default'])(false, '`submit` is deprecated. ' + "Actually, it's more convenient to handle submitting status by yourself."); } var fn = function fn() { _this9.setState({ @@ -13127,7 +14813,7 @@ function createBaseForm() { restProps = (0, _objectWithoutProperties3['default'])(_getOptionProps, ['wrappedComponentRef']); var wrappedComponentProps = { - props: mapProps.call(this, (0, _extends3['default'])({}, formProps, restProps)), + props: mapProps.call(this, (0, _extends5['default'])({}, formProps, restProps)), on: $listeners, ref: 'WrappedComponent', directives: [{ @@ -13418,6 +15104,21 @@ var FieldsStore = function () { value: function setFieldMeta(name, meta) { this.fieldsMeta[name] = meta; } + }, { + key: 'setFieldsAsDirty', + value: function setFieldsAsDirty() { + var _this2 = this; + + Object.keys(this.fields).forEach(function (name) { + var field = _this2.fields[name]; + var fieldMeta = _this2.fieldsMeta[name]; + if (field && fieldMeta && (0, _utils.hasRules)(fieldMeta.validate)) { + _this2.fields[name] = (0, _extends3['default'])({}, field, { + dirty: true + }); + } + }); + } }, { key: 'getFieldMeta', value: function getFieldMeta(name) { @@ -13437,12 +15138,12 @@ var FieldsStore = function () { }, { key: 'getValidFieldsName', value: function getValidFieldsName() { - var _this2 = this; + var _this3 = this; var fieldsMeta = this.fieldsMeta; return fieldsMeta ? Object.keys(fieldsMeta).filter(function (name) { - return !_this2.getFieldMeta(name).hidden; + return !_this3.getFieldMeta(name).hidden; }) : []; } }, { @@ -13486,16 +15187,16 @@ var FieldsStore = function () { }, { key: 'getNotCollectedFields', value: function getNotCollectedFields() { - var _this3 = this; + var _this4 = this; var fieldsName = this.getValidFieldsName(); return fieldsName.filter(function (name) { - return !_this3.fields[name]; + return !_this4.fields[name]; }).map(function (name) { return { name: name, dirty: false, - value: _this3.getFieldMeta(name).initialValue + value: _this4.getFieldMeta(name).initialValue }; }).reduce(function (acc, field) { return (0, _set2['default'])(acc, field.name, (0, _createFormField2['default'])(field)); @@ -13504,10 +15205,10 @@ var FieldsStore = function () { }, { key: 'getNestedAllFields', value: function getNestedAllFields() { - var _this4 = this; + var _this5 = this; return Object.keys(this.fields).reduce(function (acc, name) { - return (0, _set2['default'])(acc, name, (0, _createFormField2['default'])(_this4.fields[name])); + return (0, _set2['default'])(acc, name, (0, _createFormField2['default'])(_this5.fields[name])); }, this.getNotCollectedFields()); } }, { @@ -13561,14 +15262,14 @@ var FieldsStore = function () { }(); var _initialiseProps = function _initialiseProps() { - var _this5 = this; + var _this6 = this; this.setFieldsInitialValue = function (initialValues) { - var flattenedInitialValues = _this5.flattenRegisteredFields(initialValues); - var fieldsMeta = _this5.fieldsMeta; + var flattenedInitialValues = _this6.flattenRegisteredFields(initialValues); + var fieldsMeta = _this6.fieldsMeta; Object.keys(flattenedInitialValues).forEach(function (name) { if (fieldsMeta[name]) { - _this5.setFieldMeta(name, (0, _extends3['default'])({}, _this5.getFieldMeta(name), { + _this6.setFieldMeta(name, (0, _extends3['default'])({}, _this6.getFieldMeta(name), { initialValue: flattenedInitialValues[name] })); } @@ -13576,55 +15277,55 @@ var _initialiseProps = function _initialiseProps() { }; this.getAllValues = function () { - var fieldsMeta = _this5.fieldsMeta, - fields = _this5.fields; + var fieldsMeta = _this6.fieldsMeta, + fields = _this6.fields; return Object.keys(fieldsMeta).reduce(function (acc, name) { - return (0, _set2['default'])(acc, name, _this5.getValueFromFields(name, fields)); + return (0, _set2['default'])(acc, name, _this6.getValueFromFields(name, fields)); }, {}); }; this.getFieldsValue = function (names) { - return _this5.getNestedFields(names, _this5.getFieldValue); + return _this6.getNestedFields(names, _this6.getFieldValue); }; this.getFieldValue = function (name) { - var fields = _this5.fields; + var fields = _this6.fields; - return _this5.getNestedField(name, function (fullName) { - return _this5.getValueFromFields(fullName, fields); + return _this6.getNestedField(name, function (fullName) { + return _this6.getValueFromFields(fullName, fields); }); }; this.getFieldsError = function (names) { - return _this5.getNestedFields(names, _this5.getFieldError); + return _this6.getNestedFields(names, _this6.getFieldError); }; this.getFieldError = function (name) { - return _this5.getNestedField(name, function (fullName) { - return (0, _utils.getErrorStrs)(_this5.getFieldMember(fullName, 'errors')); + return _this6.getNestedField(name, function (fullName) { + return (0, _utils.getErrorStrs)(_this6.getFieldMember(fullName, 'errors')); }); }; this.isFieldValidating = function (name) { - return _this5.getFieldMember(name, 'validating'); + return _this6.getFieldMember(name, 'validating'); }; this.isFieldsValidating = function (ns) { - var names = ns || _this5.getValidFieldsName(); + var names = ns || _this6.getValidFieldsName(); return names.some(function (n) { - return _this5.isFieldValidating(n); + return _this6.isFieldValidating(n); }); }; this.isFieldTouched = function (name) { - return _this5.getFieldMember(name, 'touched'); + return _this6.getFieldMember(name, 'touched'); }; this.isFieldsTouched = function (ns) { - var names = ns || _this5.getValidFieldsName(); + var names = ns || _this6.getValidFieldsName(); return names.some(function (n) { - return _this5.isFieldTouched(n); + return _this6.isFieldTouched(n); }); }; }; @@ -16283,7 +17984,10 @@ exports['default'] = { }, methods: { - close: function close() { + close: function close(e) { + if (e) { + e.stopPropagation(); + } this.clearCloseTimer(); this.__emit('close'); }, @@ -16404,6 +18108,10 @@ var _Notice = __webpack_require__(/*! ./Notice */ "./node_modules/ant-design-vue var _Notice2 = _interopRequireDefault(_Notice); +var _base = __webpack_require__(/*! ../base */ "./node_modules/ant-design-vue/lib/base/index.js"); + +var _base2 = _interopRequireDefault(_base); + function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } function noop() {} @@ -16554,7 +18262,8 @@ Notification.newInstance = function newNotificationInstance(properties, callback } else { document.body.appendChild(div); } - new _vue2['default']({ + var V = _base2['default'].Vue || _vue2['default']; + new V({ el: div, mounted: function mounted() { var self = this; @@ -16613,7 +18322,7 @@ var _Notification2 = _interopRequireDefault(_Notification); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } -exports['default'] = _Notification2['default']; // based on rc-notification 3.3.0 +exports['default'] = _Notification2['default']; // based on rc-notification 3.3.1 /***/ }), @@ -16833,8 +18542,8 @@ exports['default'] = { } var activeKeyProps = {}; - var clonedMenuItems = menuItems; var defaultActiveFirst = defaultActiveFirstOption; + var clonedMenuItems = menuItems; if (selectedKeys.length || firstActiveValue) { if (props.visible && !this.lastVisible) { activeKeyProps.activeKey = selectedKeys[0] || firstActiveValue; @@ -17083,14 +18792,14 @@ Object.defineProperty(exports, "__esModule", { }); exports.Select = undefined; -var _babelHelperVueJsxMergeProps = __webpack_require__(/*! babel-helper-vue-jsx-merge-props */ "./node_modules/babel-helper-vue-jsx-merge-props/index.js"); - -var _babelHelperVueJsxMergeProps2 = _interopRequireDefault(_babelHelperVueJsxMergeProps); - var _defineProperty2 = __webpack_require__(/*! babel-runtime/helpers/defineProperty */ "./node_modules/babel-runtime/helpers/defineProperty.js"); var _defineProperty3 = _interopRequireDefault(_defineProperty2); +var _babelHelperVueJsxMergeProps = __webpack_require__(/*! babel-helper-vue-jsx-merge-props */ "./node_modules/babel-helper-vue-jsx-merge-props/index.js"); + +var _babelHelperVueJsxMergeProps2 = _interopRequireDefault(_babelHelperVueJsxMergeProps); + var _extends2 = __webpack_require__(/*! babel-runtime/helpers/extends */ "./node_modules/babel-runtime/helpers/extends.js"); var _extends3 = _interopRequireDefault(_extends2); @@ -17157,6 +18866,12 @@ var _util = __webpack_require__(/*! ./util */ "./node_modules/ant-design-vue/lib var _PropTypes = __webpack_require__(/*! ./PropTypes */ "./node_modules/ant-design-vue/lib/vc-select/PropTypes.js"); +var _contains = __webpack_require__(/*! ../_util/Dom/contains */ "./node_modules/ant-design-vue/lib/_util/Dom/contains.js"); + +var _contains2 = _interopRequireDefault(_contains); + +var _env = __webpack_require__(/*! ../_util/env */ "./node_modules/ant-design-vue/lib/_util/env.js"); + function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } _vue2['default'].use(_vueRef2['default'], { name: 'ant-ref' }); @@ -17199,7 +18914,7 @@ var Select = { showSearch: _PropTypes.SelectPropTypes.showSearch.def(true), allowClear: _PropTypes.SelectPropTypes.allowClear.def(false), placeholder: _PropTypes.SelectPropTypes.placeholder.def(''), - showArrow: _PropTypes.SelectPropTypes.showArrow.def(true), + // showArrow: SelectPropTypes.showArrow.def(true), dropdownMatchSelectWidth: _vueTypes2['default'].bool.def(true), dropdownStyle: _PropTypes.SelectPropTypes.dropdownStyle.def({}), dropdownMenuStyle: _vueTypes2['default'].object.def({}), @@ -17237,6 +18952,7 @@ var Select = { this._focused = false; this._mouseDown = false; this._options = []; + this._empty = false; }, data: function data() { var props = (0, _propsUtil.getOptionProps)(this); @@ -17259,7 +18975,14 @@ var Select = { var _this = this; this.$nextTick(function () { - _this.autoFocus && _this.focus(); + // when defaultOpen is true, we should auto focus search input + // https://github.com/ant-design/ant-design/issues/14254 + if (_this.autoFocus || _this._open) { + _this.focus(); + } + // this.setState({ + // _ariaId: generateUUID(), + // }); }); }, @@ -17275,7 +18998,7 @@ var Select = { if ((0, _util.isMultipleOrTags)(_this2.$props)) { var inputNode = _this2.getInputDOMNode(); var mirrorNode = _this2.getInputMirrorDOMNode(); - if (inputNode.value && inputNode.value && mirrorNode) { + if (inputNode && inputNode.value && mirrorNode) { inputNode.style.width = ''; inputNode.style.width = mirrorNode.clientWidth + 10 + 'px'; } else if (inputNode) { @@ -17372,7 +19095,8 @@ var Select = { option: option, value: singleValue, label: _this4.getLabelFromOption(props, option), - title: (0, _propsUtil.getValueByProp)(option, 'title') + title: (0, _propsUtil.getValueByProp)(option, 'title'), + disabled: (0, _propsUtil.getValueByProp)(option, 'disabled') }; }); if (preState) { @@ -17405,10 +19129,17 @@ var Select = { } return value; }, - onInputChange: function onInputChange(event) { + onInputChange: function onInputChange(e) { + var _e$target = e.target, + val = _e$target.value, + composing = _e$target.composing; + + var _$data$_inputValue = this.$data._inputValue, + _inputValue = _$data$_inputValue === undefined ? '' : _$data$_inputValue; + + if (composing || _inputValue === val) return; var tokenSeparators = this.$props.tokenSeparators; - var val = event.target.value; if ((0, _util.isMultipleOrTags)(this.$props) && tokenSeparators.length && (0, _util.includesSeparators)(val, tokenSeparators)) { var nextValue = this.getValueByInput(val); if (nextValue !== undefined) { @@ -17450,6 +19181,7 @@ var Select = { this.onInputKeydown(event); } else if (keyCode === _KeyCode2['default'].ENTER || keyCode === _KeyCode2['default'].DOWN) { // vue state是同步更新,onKeyDown在onMenuSelect后会再次调用,单选时不在调用setOpenState + // https://github.com/vueComponent/ant-design-vue/issues/1142 if (keyCode === _KeyCode2['default'].ENTER && !(0, _util.isMultipleOrTags)(this.$props)) { this.maybeFocus(true); } else if (!open) { @@ -17470,6 +19202,7 @@ var Select = { return; } var state = this.$data; + var isRealOpen = this.getRealOpenState(state); var keyCode = event.keyCode; if ((0, _util.isMultipleOrTags)(props) && !event.target.value && keyCode === _KeyCode2['default'].BACKSPACE) { event.preventDefault(); @@ -17490,7 +19223,10 @@ var Select = { } else if (keyCode === _KeyCode2['default'].ENTER && state._open) { // Aviod trigger form submit when select item // https://github.com/ant-design/ant-design/issues/10861 - event.preventDefault(); + // https://github.com/ant-design/ant-design/issues/14544 + if (isRealOpen || !props.combobox) { + event.preventDefault(); + } } else if (keyCode === _KeyCode2['default'].ESC) { if (state._open) { this.setOpenState(false); @@ -17500,7 +19236,7 @@ var Select = { return; } - if (this.getRealOpenState(state) && this.selectTriggerRef) { + if (isRealOpen && this.selectTriggerRef) { var menu = this.selectTriggerRef.getInnerMenu(); if (menu && menu.onKeyDown(event, this.handleBackfill)) { event.preventDefault(); @@ -17525,7 +19261,7 @@ var Select = { } value = value.concat([selectedValue]); } else { - if (lastValue !== undefined && lastValue === selectedValue && selectedValue !== this.$data._backfillValue) { + if (!(0, _util.isCombobox)(props) && lastValue !== undefined && lastValue === selectedValue && selectedValue !== this.$data._backfillValue) { this.setOpenState(false, true); return; } @@ -17557,6 +19293,7 @@ var Select = { onArrowClick: function onArrowClick(e) { e.stopPropagation(); e.preventDefault(); + this.clearBlurTime(); if (!this.disabled) { this.setOpenState(!this.$data._open, !this.$data._open); } @@ -17646,6 +19383,11 @@ var Select = { var value = null; Object.keys(this.$data._optionsInfo).forEach(function (key) { var info = _this6.$data._optionsInfo[key]; + var disabled = info.disabled; + + if (disabled) { + return; + } var oldLable = (0, _util.toArray)(info.label); if (oldLable && oldLable.join('') === label) { value = info.value; @@ -17741,11 +19483,21 @@ var Select = { this._focused = false; } }, - inputBlur: function inputBlur() { + inputBlur: function inputBlur(e) { var _this8 = this; + var target = e.relatedTarget || document.activeElement; + + // https://github.com/vueComponent/ant-design-vue/issues/999 + // https://github.com/vueComponent/ant-design-vue/issues/1223 + if ((_env.isIE || _env.isEdge) && (e.relatedTarget === this.$refs.arrow || target && this.selectTriggerRef && this.selectTriggerRef.getInnerMenu() && this.selectTriggerRef.getInnerMenu().$el === target || (0, _contains2['default'])(e.target, target))) { + e.target.focus(); + e.preventDefault(); + return; + } this.clearBlurTime(); if (this.disabled) { + e.preventDefault(); return; } this.blurTimer = setTimeout(function () { @@ -17771,11 +19523,9 @@ var Select = { } else { // why not use setState? _this8.$data._inputValue = ''; - _this8.$nextTick(function () { - if (_this8.getInputDOMNode && _this8.getInputDOMNode()) { - _this8.getInputDOMNode().value = ''; - } - }); + if (_this8.getInputDOMNode && _this8.getInputDOMNode()) { + _this8.getInputDOMNode().value = ''; + } } var tmpValue = _this8.getValueByInput(inputValue); if (tmpValue !== undefined) { @@ -17791,7 +19541,7 @@ var Select = { } _this8.setOpenState(false); _this8.$emit('blur', _this8.getVLForOnChange(value)); - }, 10); + }, 200); }, inputFocus: function inputFocus(e) { if (this.$props.disabled) { @@ -17819,9 +19569,16 @@ var Select = { var inputValue = this.$data._inputValue; var attrs = (0, _propsUtil.getAttrs)(this); - var defaultInput = h('input', { - attrs: { id: attrs.id, autoComplete: 'off' } - }); + var defaultInput = h('input', (0, _babelHelperVueJsxMergeProps2['default'])([{ + directives: [{ + name: 'ant-input' + }] + }, { + attrs: { + id: attrs.id, + autoComplete: 'off' + } + }])); var inputElement = props.getInputElement ? props.getInputElement() : defaultInput; var inputCls = (0, _classnames3['default'])((0, _propsUtil.getClass)(inputElement), (0, _defineProperty3['default'])({}, props.prefixCls + '-search__field', true)); @@ -18161,6 +19918,7 @@ var Select = { var menuItems = []; var childrenKeys = []; + var empty = false; var options = this.renderFilterOptionsFromChildren(children, childrenKeys, menuItems); if (tags) { // tags value must be string @@ -18168,6 +19926,12 @@ var Select = { value = value.filter(function (singleValue) { return childrenKeys.indexOf(singleValue) === -1 && (!inputValue || String(singleValue).indexOf(String(inputValue)) > -1); }); + + // sort by length + value.sort(function (val1, val2) { + return val1.length - val2.length; + }); + value.forEach(function (singleValue) { var key = singleValue; var attrs = (0, _extends3['default'])({}, _util.UNSELECTABLE_ATTRIBUTE, { @@ -18217,6 +19981,7 @@ var Select = { } if (!options.length && notFoundContent) { + empty = true; var _p = { attrs: _util.UNSELECTABLE_ATTRIBUTE, key: 'NOT_FOUND', @@ -18233,7 +19998,7 @@ var Select = { [notFoundContent] )]; } - return options; + return { empty: empty, options: options }; }, renderFilterOptionsFromChildren: function renderFilterOptionsFromChildren() { var children = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : []; @@ -18262,6 +20027,7 @@ var Select = { label = key; } var childChildren = (0, _propsUtil.getSlots)(child)['default']; + childChildren = typeof childChildren === 'function' ? childChildren() : childChildren; // Match option group label if (inputValue && _this13._filterOption(inputValue, child)) { var innerItems = childChildren.map(function (subChild) { @@ -18527,19 +20293,19 @@ var Select = { }, renderArrow: function renderArrow(multiple) { var h = this.$createElement; + + // showArrow : Set to true if not multiple by default but keep set value. var _$props3 = this.$props, - showArrow = _$props3.showArrow, + _$props3$showArrow = _$props3.showArrow, + showArrow = _$props3$showArrow === undefined ? !multiple : _$props3$showArrow, loading = _$props3.loading, prefixCls = _$props3.prefixCls; var inputIcon = (0, _propsUtil.getComponentFromProp)(this, 'inputIcon'); - if (!showArrow) { + if (!showArrow && !loading) { return null; } // if loading have loading icon - if (multiple && !loading) { - return null; - } var defaultIcon = loading ? h('i', { 'class': prefixCls + '-arrow-loading' }) : h('i', { 'class': prefixCls + '-arrow-icon' }); return h( 'span', @@ -18550,7 +20316,9 @@ var Select = { }, { attrs: _util.UNSELECTABLE_ATTRIBUTE }, { on: { 'click': this.onArrowClick - } + }, + + ref: 'arrow' }]), [inputIcon || defaultIcon] ); @@ -18606,31 +20374,36 @@ var Select = { return null; }, selectionRefClick: function selectionRefClick(e) { - e.stopPropagation(); + //e.stopPropagation(); if (!this.disabled) { var input = this.getInputDOMNode(); if (this._focused && this.$data._open) { - this._focused = false; + // this._focused = false; this.setOpenState(false, false); input && input.blur(); } else { this.clearBlurTime(); - this._focused = true; + //this._focused = true; this.setOpenState(true, true); input && input.focus(); } } }, - selectionRefFocus: function selectionRefFocus() { - if (this._focused || this.disabled) { + selectionRefFocus: function selectionRefFocus(e) { + if (this._focused || this.disabled || (0, _util.isMultipleOrTagsOrCombobox)(this.$props)) { + e.preventDefault(); return; } this._focused = true; this.updateFocusClassName(); this.$emit('focus'); }, - selectionRefBlur: function selectionRefBlur() { - this.inputBlur(); + selectionRefBlur: function selectionRefBlur(e) { + if ((0, _util.isMultipleOrTagsOrCombobox)(this.$props)) { + e.preventDefault(); + return; + } + this.inputBlur(e); } }, @@ -18641,9 +20414,14 @@ var Select = { var props = this.$props; var multiple = (0, _util.isMultipleOrTags)(props); + // Default set showArrow to true if not set (not set directly in defaultProps to handle multiple case) + var _props$showArrow = props.showArrow, + showArrow = _props$showArrow === undefined ? true : _props$showArrow; + var state = this.$data; var disabled = props.disabled, - prefixCls = props.prefixCls; + prefixCls = props.prefixCls, + loading = props.loading; var ctrlNode = this.renderTopControlNode(); var _$data4 = this.$data, @@ -18652,9 +20430,12 @@ var Select = { value = _$data4._value; if (open) { - this._options = this.renderFilterOptions(); + var filterOptions = this.renderFilterOptions(); + this._empty = filterOptions.empty; + this._options = filterOptions.options; } var realOpen = this.getRealOpenState(); + var empty = this._empty; var options = this._options || []; var $listeners = this.$listeners; var _$listeners$mouseente = $listeners.mouseenter, @@ -18674,22 +20455,24 @@ var Select = { 'aria-controls': this.$data._ariaId }, on: { - click: this.selectionRefClick + // click: this.selectionRefClick, }, 'class': prefixCls + '-selection ' + prefixCls + '-selection--' + (multiple ? 'multiple' : 'single'), - directives: [{ - name: 'ant-ref', - value: this.saveSelectionRef - }], + // directives: [ + // { + // name: 'ant-ref', + // value: this.saveSelectionRef, + // }, + // ], key: 'selection' }; - if (!(0, _util.isMultipleOrTagsOrCombobox)(props)) { - selectionProps.on.keydown = this.onKeyDown; - selectionProps.on.focus = this.selectionRefFocus; - selectionProps.on.blur = this.selectionRefBlur; - selectionProps.attrs.tabIndex = props.disabled ? -1 : props.tabIndex; - } - var rootCls = (_rootCls = {}, (0, _defineProperty3['default'])(_rootCls, prefixCls, true), (0, _defineProperty3['default'])(_rootCls, prefixCls + '-open', open), (0, _defineProperty3['default'])(_rootCls, prefixCls + '-focused', open || !!this._focused), (0, _defineProperty3['default'])(_rootCls, prefixCls + '-combobox', (0, _util.isCombobox)(props)), (0, _defineProperty3['default'])(_rootCls, prefixCls + '-disabled', disabled), (0, _defineProperty3['default'])(_rootCls, prefixCls + '-enabled', !disabled), (0, _defineProperty3['default'])(_rootCls, prefixCls + '-allow-clear', !!props.allowClear), (0, _defineProperty3['default'])(_rootCls, prefixCls + '-no-arrow', !props.showArrow), _rootCls); + //if (!isMultipleOrTagsOrCombobox(props)) { + // selectionProps.on.keydown = this.onKeyDown; + // selectionProps.on.focus = this.selectionRefFocus; + // selectionProps.on.blur = this.selectionRefBlur; + // selectionProps.attrs.tabIndex = props.disabled ? -1 : props.tabIndex; + //} + var rootCls = (_rootCls = {}, (0, _defineProperty3['default'])(_rootCls, prefixCls, true), (0, _defineProperty3['default'])(_rootCls, prefixCls + '-open', open), (0, _defineProperty3['default'])(_rootCls, prefixCls + '-focused', open || !!this._focused), (0, _defineProperty3['default'])(_rootCls, prefixCls + '-combobox', (0, _util.isCombobox)(props)), (0, _defineProperty3['default'])(_rootCls, prefixCls + '-disabled', disabled), (0, _defineProperty3['default'])(_rootCls, prefixCls + '-enabled', !disabled), (0, _defineProperty3['default'])(_rootCls, prefixCls + '-allow-clear', !!props.allowClear), (0, _defineProperty3['default'])(_rootCls, prefixCls + '-no-arrow', !showArrow), (0, _defineProperty3['default'])(_rootCls, prefixCls + '-loading', !!loading), _rootCls); return h( _SelectTrigger2['default'], (0, _babelHelperVueJsxMergeProps2['default'])([{ @@ -18706,6 +20489,7 @@ var Select = { combobox: props.combobox, showSearch: props.showSearch, options: options, + empty: empty, multiple: multiple, disabled: disabled, visible: realOpen, @@ -18744,7 +20528,7 @@ var Select = { (0, _babelHelperVueJsxMergeProps2['default'])([{ directives: [{ name: 'ant-ref', - value: this.saveRootRef + value: chaining(this.saveRootRef, this.saveSelectionRef) }] }, { style: (0, _propsUtil.getStyle)(this), @@ -18752,7 +20536,14 @@ var Select = { on: { 'mousedown': this.markMouseDown, 'mouseup': this.markMouseLeave, - 'mouseout': this.markMouseLeave + 'mouseout': this.markMouseLeave, + 'blur': this.selectionRefBlur, + 'focus': this.selectionRefFocus, + 'click': this.selectionRefClick, + 'keydown': (0, _util.isMultipleOrTagsOrCombobox)(props) ? noop : this.onKeyDown + }, + attrs: { + tabIndex: props.disabled ? -1 : props.tabIndex } }]), [h( @@ -18852,6 +20643,7 @@ exports['default'] = { multiple: _vueTypes2['default'].bool, inputValue: _vueTypes2['default'].string, filterOption: _vueTypes2['default'].any, + empty: _vueTypes2['default'].bool, options: _vueTypes2['default'].any, prefixCls: _vueTypes2['default'].string, popupClassName: _vueTypes2['default'].string, @@ -18982,14 +20774,15 @@ exports['default'] = { dropdownMatchSelectWidth = $props.dropdownMatchSelectWidth, options = $props.options, getPopupContainer = $props.getPopupContainer, - showAction = $props.showAction; + showAction = $props.showAction, + empty = $props.empty; var mouseenter = $listeners.mouseenter, mouseleave = $listeners.mouseleave, popupFocus = $listeners.popupFocus, dropdownVisibleChange = $listeners.dropdownVisibleChange; var dropdownPrefixCls = this.getDropdownPrefixCls(); - var popupClassName = (_popupClassName = {}, (0, _defineProperty3['default'])(_popupClassName, dropdownClassName, !!dropdownClassName), (0, _defineProperty3['default'])(_popupClassName, dropdownPrefixCls + '--' + (multiple ? 'multiple' : 'single'), 1), _popupClassName); + var popupClassName = (_popupClassName = {}, (0, _defineProperty3['default'])(_popupClassName, dropdownClassName, !!dropdownClassName), (0, _defineProperty3['default'])(_popupClassName, dropdownPrefixCls + '--' + (multiple ? 'multiple' : 'single'), 1), (0, _defineProperty3['default'])(_popupClassName, dropdownPrefixCls + '--empty', empty), _popupClassName); var popupElement = this.getDropdownElement({ props: { menuItems: options, @@ -19088,7 +20881,7 @@ var _OptGroup2 = _interopRequireDefault(_OptGroup); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } -// based on vc-select 8.7.0 +// based on vc-select 8.9.0 _Select.Select.Option = _Option2['default']; _Select.Select.OptGroup = _OptGroup2['default']; _Select2['default'].Option = _Option2['default']; @@ -19663,6 +21456,8 @@ exports['default'] = { var props = (0, _extends3['default'])({}, this.$props); var listeners = this.$listeners; + var renderTabBarNode = this.$scopedSlots['default']; + return h(_SaveRef2['default'], { attrs: { children: function children(saveRef, getRef) { @@ -19677,8 +21472,10 @@ exports['default'] = { attrs: { saveRef: saveRef, getRef: getRef } }, { props: props, on: listeners }]), [h(_TabBarTabsNode2['default'], (0, _babelHelperVueJsxMergeProps2['default'])([{ - attrs: { saveRef: saveRef } - }, { props: props, on: listeners }])), h(_InkTabBarNode2['default'], (0, _babelHelperVueJsxMergeProps2['default'])([{ + attrs: { + saveRef: saveRef + } + }, { props: (0, _extends3['default'])({}, props, { renderTabBarNode: renderTabBarNode }), on: listeners }])), h(_InkTabBarNode2['default'], (0, _babelHelperVueJsxMergeProps2['default'])([{ attrs: { saveRef: saveRef, getRef: getRef } }, { props: props, on: listeners }]))] )] @@ -19744,15 +21541,15 @@ exports['default'] = { name: 'ScrollableTabBarNode', mixins: [_BaseMixin2['default']], props: { - saveRef: _vueTypes2['default'].func.def(function () {}), + activeKey: _vueTypes2['default'].any, getRef: _vueTypes2['default'].func.def(function () {}), + saveRef: _vueTypes2['default'].func.def(function () {}), tabBarPosition: _vueTypes2['default'].oneOf(['left', 'right', 'top', 'bottom']).def('left'), prefixCls: _vueTypes2['default'].string.def(''), scrollAnimated: _vueTypes2['default'].bool.def(true), navWrapper: _vueTypes2['default'].func.def(function (arg) { return arg; }), - activeKey: _vueTypes2['default'].any, prevIcon: _vueTypes2['default'].any, nextIcon: _vueTypes2['default'].any }, @@ -20340,6 +22137,7 @@ exports['default'] = { onTabClick: _vueTypes2['default'].func, saveRef: _vueTypes2['default'].func.def(noop), getRef: _vueTypes2['default'].func.def(noop), + renderTabBarNode: _vueTypes2['default'].func, tabBarPosition: _vueTypes2['default'].string }, render: function render() { @@ -20355,7 +22153,7 @@ exports['default'] = { tabBarPosition = _$props.tabBarPosition; var rst = []; - + var renderTabBarNode = this.renderTabBarNode || this.$scopedSlots.renderTabBarNode; children.forEach(function (child, index) { if (!child) { return; @@ -20385,7 +22183,7 @@ exports['default'] = { gutter = typeof gutter === 'number' ? gutter + 'px' : gutter; var style = (0, _defineProperty3['default'])({}, (0, _utils.isVertical)(tabBarPosition) ? 'marginBottom' : 'marginRight', gutter); (0, _warning2['default'])(tab !== undefined, 'There must be `tab` property or slot on children of Tabs.'); - rst.push(h( + var node = h( 'div', (0, _babelHelperVueJsxMergeProps2['default'])([{ attrs: { @@ -20399,7 +22197,12 @@ exports['default'] = { style: style }, { directives: directives }]), [tab] - )); + ); + if (renderTabBarNode) { + node = renderTabBarNode(node); + } + + rst.push(node); }); return h( @@ -20954,7 +22757,7 @@ var _TabContent2 = _interopRequireDefault(_TabContent); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } -_vue2['default'].use(_vueRef2['default'], { name: 'ant-ref' }); // based on rc-tabs 9.5.8 +_vue2['default'].use(_vueRef2['default'], { name: 'ant-ref' }); // based on rc-tabs 9.6.1 exports['default'] = _Tabs2['default']; exports.TabPane = _TabPane2['default']; exports.TabContent = _TabContent2['default']; @@ -21565,6 +23368,7 @@ exports['default'] = { }) }, data: function data() { + this.domEl = null; return { // Used for stretch stretchChecked: false, @@ -21580,6 +23384,12 @@ exports['default'] = { _this.setStretchSize(); }); }, + beforeUpdate: function beforeUpdate() { + if (this.domEl && this.domEl.rcEndListener) { + this.domEl.rcEndListener(); + this.domEl = null; + } + }, updated: function updated() { var _this2 = this; @@ -21758,18 +23568,22 @@ exports['default'] = { var transitionEvent = { beforeEnter: function beforeEnter() { // el.style.display = el.__vOriginalDisplay - // this.$refs.alignInstance.forceAlign() + // this.$refs.alignInstance.forceAlign(); }, enter: function enter(el, done) { - // align updated后执行动画 + // render 后 vue 会移除通过animate动态添加的 class导致动画闪动,延迟两帧添加动画class,可以进一步定位或者重写 transition 组件 _this3.$nextTick(function () { if (_this3.$refs.alignInstance) { _this3.$refs.alignInstance.$nextTick(function () { + _this3.domEl = el; (0, _cssAnimation2['default'])(el, transitionName + '-enter', done); }); } }); }, + beforeLeave: function beforeLeave() { + _this3.domEl = null; + }, leave: function leave(el, done) { (0, _cssAnimation2['default'])(el, transitionName + '-leave', done); } @@ -22112,7 +23926,7 @@ exports['default'] = { this.$nextTick(function () { _this.renderComponent(null, function () { - _this.afterPopupVisibleChange(val); + _this.afterPopupVisibleChange(_this.sPopupVisible); }); }); } @@ -22222,10 +24036,12 @@ exports['default'] = { this.preTouchTime = Date.now(); }, onBlur: function onBlur(e) { - this.fireEvents('blur', e); - this.clearDelayTimer(); - if (this.isBlurToHide()) { - this.delaySetPopupVisible(false, this.$props.blurDelay); + if (!(0, _contains2['default'])(e.target, e.relatedTarget || document.activeElement)) { + this.fireEvents('blur', e); + this.clearDelayTimer(); + if (this.isBlurToHide()) { + this.delaySetPopupVisible(false, this.$props.blurDelay); + } } }, onContextmenu: function onContextmenu(e) { @@ -22729,559 +24545,277 @@ function noop() {} /***/ }), -/***/ "./node_modules/async-validator/es/index.js": -/*!**************************************************!*\ - !*** ./node_modules/async-validator/es/index.js ***! - \**************************************************/ -/*! no static exports found */ -/***/ (function(module, exports, __webpack_require__) { +/***/ "./node_modules/async-validator/dist-web/index.js": +/*!********************************************************!*\ + !*** ./node_modules/async-validator/dist-web/index.js ***! + \********************************************************/ +/*! exports provided: default */ +/***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; +__webpack_require__.r(__webpack_exports__); +/* WEBPACK VAR INJECTION */(function(process) {function _extends() { + _extends = Object.assign || function (target) { + for (var i = 1; i < arguments.length; i++) { + var source = arguments[i]; + for (var key in source) { + if (Object.prototype.hasOwnProperty.call(source, key)) { + target[key] = source[key]; + } + } + } -Object.defineProperty(exports, "__esModule", { - value: true -}); - -var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; + return target; + }; -var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; + return _extends.apply(this, arguments); +} -var _util = __webpack_require__(/*! ./util */ "./node_modules/async-validator/es/util.js"); +/* eslint no-console:0 */ +var formatRegExp = /%[sdj%]/g; +var warning = function warning() {}; // don't print warning message when in production env or node runtime -var _validator = __webpack_require__(/*! ./validator/ */ "./node_modules/async-validator/es/validator/index.js"); +if (typeof process !== 'undefined' && process.env && "development" !== 'production' && typeof window !== 'undefined' && typeof document !== 'undefined') { + warning = function warning(type, errors) { + if (typeof console !== 'undefined' && console.warn) { + if (errors.every(function (e) { + return typeof e === 'string'; + })) { + console.warn(type, errors); + } + } + }; +} -var _validator2 = _interopRequireDefault(_validator); +function convertFieldsError(errors) { + if (!errors || !errors.length) return null; + var fields = {}; + errors.forEach(function (error) { + var field = error.field; + fields[field] = fields[field] || []; + fields[field].push(error); + }); + return fields; +} +function format() { + for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) { + args[_key] = arguments[_key]; + } -var _messages2 = __webpack_require__(/*! ./messages */ "./node_modules/async-validator/es/messages.js"); + var i = 1; + var f = args[0]; + var len = args.length; -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } + if (typeof f === 'function') { + return f.apply(null, args.slice(1)); + } -/** - * Encapsulates a validation schema. - * - * @param descriptor An object declaring validation rules - * for this schema. - */ -function Schema(descriptor) { - this.rules = null; - this._messages = _messages2.messages; - this.define(descriptor); -} + if (typeof f === 'string') { + var str = String(f).replace(formatRegExp, function (x) { + if (x === '%%') { + return '%'; + } -Schema.prototype = { - messages: function messages(_messages) { - if (_messages) { - this._messages = (0, _util.deepMerge)((0, _messages2.newMessages)(), _messages); - } - return this._messages; - }, - define: function define(rules) { - if (!rules) { - throw new Error('Cannot configure a schema with no rules'); - } - if ((typeof rules === 'undefined' ? 'undefined' : _typeof(rules)) !== 'object' || Array.isArray(rules)) { - throw new Error('Rules must be an object'); - } - this.rules = {}; - var z = void 0; - var item = void 0; - for (z in rules) { - if (rules.hasOwnProperty(z)) { - item = rules[z]; - this.rules[z] = Array.isArray(item) ? item : [item]; + if (i >= len) { + return x; } - } - }, - validate: function validate(source_) { - var _this = this; - var o = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; - var oc = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : function () {}; + switch (x) { + case '%s': + return String(args[i++]); - var source = source_; - var options = o; - var callback = oc; - if (typeof options === 'function') { - callback = options; - options = {}; - } - if (!this.rules || Object.keys(this.rules).length === 0) { - if (callback) { - callback(); - } - return Promise.resolve(); - } + case '%d': + return Number(args[i++]); - function complete(results) { - var i = void 0; - var errors = []; - var fields = {}; + case '%j': + try { + return JSON.stringify(args[i++]); + } catch (_) { + return '[Circular]'; + } - function add(e) { - if (Array.isArray(e)) { - var _errors; + break; - errors = (_errors = errors).concat.apply(_errors, e); - } else { - errors.push(e); - } + default: + return x; } + }); - for (i = 0; i < results.length; i++) { - add(results[i]); - } - if (!errors.length) { - errors = null; - fields = null; - } else { - fields = (0, _util.convertFieldsError)(errors); - } - callback(errors, fields); + for (var arg = args[i]; i < len; arg = args[++i]) { + str += " " + arg; } - if (options.messages) { - var messages = this.messages(); - if (messages === _messages2.messages) { - messages = (0, _messages2.newMessages)(); - } - (0, _util.deepMerge)(messages, options.messages); - options.messages = messages; - } else { - options.messages = this.messages(); - } - var arr = void 0; - var value = void 0; - var series = {}; - var keys = options.keys || Object.keys(this.rules); - keys.forEach(function (z) { - arr = _this.rules[z]; - value = source[z]; - arr.forEach(function (r) { - var rule = r; - if (typeof rule.transform === 'function') { - if (source === source_) { - source = _extends({}, source); - } - value = source[z] = rule.transform(value); - } - if (typeof rule === 'function') { - rule = { - validator: rule - }; - } else { - rule = _extends({}, rule); - } - rule.validator = _this.getValidationMethod(rule); - rule.field = z; - rule.fullField = rule.fullField || z; - rule.type = _this.getType(rule); - if (!rule.validator) { - return; - } - series[z] = series[z] || []; - series[z].push({ - rule: rule, - value: value, - source: source, - field: z - }); - }); - }); - var errorFields = {}; - return (0, _util.asyncMap)(series, options, function (data, doIt) { - var rule = data.rule; - var deep = (rule.type === 'object' || rule.type === 'array') && (_typeof(rule.fields) === 'object' || _typeof(rule.defaultField) === 'object'); - deep = deep && (rule.required || !rule.required && data.value); - rule.field = data.field; + return str; + } - function addFullfield(key, schema) { - return _extends({}, schema, { - fullField: rule.fullField + '.' + key - }); - } + return f; +} - function cb() { - var e = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : []; +function isNativeStringType(type) { + return type === 'string' || type === 'url' || type === 'hex' || type === 'email' || type === 'pattern'; +} - var errors = e; - if (!Array.isArray(errors)) { - errors = [errors]; - } - if (!options.suppressWarning && errors.length) { - Schema.warning('async-validator:', errors); - } - if (errors.length && rule.message) { - errors = [].concat(rule.message); - } +function isEmptyValue(value, type) { + if (value === undefined || value === null) { + return true; + } - errors = errors.map((0, _util.complementError)(rule)); + if (type === 'array' && Array.isArray(value) && !value.length) { + return true; + } - if (options.first && errors.length) { - errorFields[rule.field] = 1; - return doIt(errors); - } - if (!deep) { - doIt(errors); - } else { - // if rule is required but the target object - // does not exist fail at the rule level and don't - // go deeper - if (rule.required && !data.value) { - if (rule.message) { - errors = [].concat(rule.message).map((0, _util.complementError)(rule)); - } else if (options.error) { - errors = [options.error(rule, (0, _util.format)(options.messages.required, rule.field))]; - } else { - errors = []; - } - return doIt(errors); - } + if (isNativeStringType(type) && typeof value === 'string' && !value) { + return true; + } - var fieldsSchema = {}; - if (rule.defaultField) { - for (var k in data.value) { - if (data.value.hasOwnProperty(k)) { - fieldsSchema[k] = rule.defaultField; - } - } - } - fieldsSchema = _extends({}, fieldsSchema, data.rule.fields); - for (var f in fieldsSchema) { - if (fieldsSchema.hasOwnProperty(f)) { - var fieldSchema = Array.isArray(fieldsSchema[f]) ? fieldsSchema[f] : [fieldsSchema[f]]; - fieldsSchema[f] = fieldSchema.map(addFullfield.bind(null, f)); - } - } - var schema = new Schema(fieldsSchema); - schema.messages(options.messages); - if (data.rule.options) { - data.rule.options.messages = options.messages; - data.rule.options.error = options.error; - } - schema.validate(data.value, data.rule.options || options, function (errs) { - var finalErrors = []; - if (errors && errors.length) { - finalErrors.push.apply(finalErrors, errors); - } - if (errs && errs.length) { - finalErrors.push.apply(finalErrors, errs); - } - doIt(finalErrors.length ? finalErrors : null); - }); - } - } + return false; +} - var res = void 0; - if (rule.asyncValidator) { - res = rule.asyncValidator(rule, data.value, cb, data.source, options); - } else if (rule.validator) { - res = rule.validator(rule, data.value, cb, data.source, options); - if (res === true) { - cb(); - } else if (res === false) { - cb(rule.message || rule.field + ' fails'); - } else if (res instanceof Array) { - cb(res); - } else if (res instanceof Error) { - cb(res.message); - } - } - if (res && res.then) { - res.then(function () { - return cb(); - }, function (e) { - return cb(e); - }); - } - }, function (results) { - complete(results); - }); - }, - getType: function getType(rule) { - if (rule.type === undefined && rule.pattern instanceof RegExp) { - rule.type = 'pattern'; - } - if (typeof rule.validator !== 'function' && rule.type && !_validator2['default'].hasOwnProperty(rule.type)) { - throw new Error((0, _util.format)('Unknown rule type %s', rule.type)); - } - return rule.type || 'string'; - }, - getValidationMethod: function getValidationMethod(rule) { - if (typeof rule.validator === 'function') { - return rule.validator; +function asyncParallelArray(arr, func, callback) { + var results = []; + var total = 0; + var arrLength = arr.length; + + function count(errors) { + results.push.apply(results, errors); + total++; + + if (total === arrLength) { + callback(results); } - var keys = Object.keys(rule); - var messageIndex = keys.indexOf('message'); - if (messageIndex !== -1) { - keys.splice(messageIndex, 1); + } + + arr.forEach(function (a) { + func(a, count); + }); +} + +function asyncSerialArray(arr, func, callback) { + var index = 0; + var arrLength = arr.length; + + function next(errors) { + if (errors && errors.length) { + callback(errors); + return; } - if (keys.length === 1 && keys[0] === 'required') { - return _validator2['default'].required; + + var original = index; + index = index + 1; + + if (original < arrLength) { + func(arr[original], next); + } else { + callback([]); } - return _validator2['default'][this.getType(rule)] || false; } -}; -Schema.register = function register(type, validator) { - if (typeof validator !== 'function') { - throw new Error('Cannot register a validator by type, validator is not a function'); - } - _validator2['default'][type] = validator; -}; + next([]); +} -Schema.warning = _util.warning; +function flattenObjArr(objArr) { + var ret = []; + Object.keys(objArr).forEach(function (k) { + ret.push.apply(ret, objArr[k]); + }); + return ret; +} -Schema.messages = _messages2.messages; +function asyncMap(objArr, option, func, callback) { + if (option.first) { + var _pending = new Promise(function (resolve, reject) { + var next = function next(errors) { + callback(errors); + return errors.length ? reject({ + errors: errors, + fields: convertFieldsError(errors) + }) : resolve(); + }; -exports['default'] = Schema; + var flattenArr = flattenObjArr(objArr); + asyncSerialArray(flattenArr, func, next); + }); -/***/ }), + _pending["catch"](function (e) { + return e; + }); -/***/ "./node_modules/async-validator/es/messages.js": -/*!*****************************************************!*\ - !*** ./node_modules/async-validator/es/messages.js ***! - \*****************************************************/ -/*! no static exports found */ -/***/ (function(module, exports, __webpack_require__) { + return _pending; + } -"use strict"; + var firstFields = option.firstFields || []; + if (firstFields === true) { + firstFields = Object.keys(objArr); + } -Object.defineProperty(exports, "__esModule", { - value: true -}); -exports.newMessages = newMessages; -function newMessages() { - return { - 'default': 'Validation error on field %s', - required: '%s is required', - 'enum': '%s must be one of %s', - whitespace: '%s cannot be empty', - date: { - format: '%s date %s is invalid for format %s', - parse: '%s date could not be parsed, %s is invalid ', - invalid: '%s date %s is invalid' - }, - types: { - string: '%s is not a %s', - method: '%s is not a %s (function)', - array: '%s is not an %s', - object: '%s is not an %s', - number: '%s is not a %s', - date: '%s is not a %s', - boolean: '%s is not a %s', - integer: '%s is not an %s', - float: '%s is not a %s', - regexp: '%s is not a valid %s', - email: '%s is not a valid %s', - url: '%s is not a valid %s', - hex: '%s is not a valid %s' - }, - string: { - len: '%s must be exactly %s characters', - min: '%s must be at least %s characters', - max: '%s cannot be longer than %s characters', - range: '%s must be between %s and %s characters' - }, - number: { - len: '%s must equal %s', - min: '%s cannot be less than %s', - max: '%s cannot be greater than %s', - range: '%s must be between %s and %s' - }, - array: { - len: '%s must be exactly %s in length', - min: '%s cannot be less than %s in length', - max: '%s cannot be greater than %s in length', - range: '%s must be between %s and %s in length' - }, - pattern: { - mismatch: '%s value %s does not match pattern %s' - }, - clone: function clone() { - var cloned = JSON.parse(JSON.stringify(this)); - cloned.clone = this.clone; - return cloned; - } - }; -} - -var messages = exports.messages = newMessages(); - -/***/ }), - -/***/ "./node_modules/async-validator/es/rule/enum.js": -/*!******************************************************!*\ - !*** ./node_modules/async-validator/es/rule/enum.js ***! - \******************************************************/ -/*! no static exports found */ -/***/ (function(module, exports, __webpack_require__) { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", { - value: true -}); - -var _util = __webpack_require__(/*! ../util */ "./node_modules/async-validator/es/util.js"); - -var util = _interopRequireWildcard(_util); + var objArrKeys = Object.keys(objArr); + var objArrLength = objArrKeys.length; + var total = 0; + var results = []; + var pending = new Promise(function (resolve, reject) { + var next = function next(errors) { + results.push.apply(results, errors); + total++; -function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) newObj[key] = obj[key]; } } newObj['default'] = obj; return newObj; } } + if (total === objArrLength) { + callback(results); + return results.length ? reject({ + errors: results, + fields: convertFieldsError(results) + }) : resolve(); + } + }; -var ENUM = 'enum'; + objArrKeys.forEach(function (key) { + var arr = objArr[key]; -/** - * Rule for validating a value exists in an enumerable list. - * - * @param rule The validation rule. - * @param value The value of the field on the source object. - * @param source The source object being validated. - * @param errors An array of errors that this rule may add - * validation errors to. - * @param options The validation options. - * @param options.messages The validation messages. - */ -function enumerable(rule, value, source, errors, options) { - rule[ENUM] = Array.isArray(rule[ENUM]) ? rule[ENUM] : []; - if (rule[ENUM].indexOf(value) === -1) { - errors.push(util.format(options.messages[ENUM], rule.fullField, rule[ENUM].join(', '))); - } + if (firstFields.indexOf(key) !== -1) { + asyncSerialArray(arr, func, next); + } else { + asyncParallelArray(arr, func, next); + } + }); + }); + pending["catch"](function (e) { + return e; + }); + return pending; } +function complementError(rule) { + return function (oe) { + if (oe && oe.message) { + oe.field = oe.field || rule.fullField; + return oe; + } -exports['default'] = enumerable; - -/***/ }), - -/***/ "./node_modules/async-validator/es/rule/index.js": -/*!*******************************************************!*\ - !*** ./node_modules/async-validator/es/rule/index.js ***! - \*******************************************************/ -/*! no static exports found */ -/***/ (function(module, exports, __webpack_require__) { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", { - value: true -}); - -var _required = __webpack_require__(/*! ./required */ "./node_modules/async-validator/es/rule/required.js"); - -var _required2 = _interopRequireDefault(_required); - -var _whitespace = __webpack_require__(/*! ./whitespace */ "./node_modules/async-validator/es/rule/whitespace.js"); - -var _whitespace2 = _interopRequireDefault(_whitespace); - -var _type = __webpack_require__(/*! ./type */ "./node_modules/async-validator/es/rule/type.js"); - -var _type2 = _interopRequireDefault(_type); - -var _range = __webpack_require__(/*! ./range */ "./node_modules/async-validator/es/rule/range.js"); - -var _range2 = _interopRequireDefault(_range); - -var _enum = __webpack_require__(/*! ./enum */ "./node_modules/async-validator/es/rule/enum.js"); - -var _enum2 = _interopRequireDefault(_enum); - -var _pattern = __webpack_require__(/*! ./pattern */ "./node_modules/async-validator/es/rule/pattern.js"); - -var _pattern2 = _interopRequireDefault(_pattern); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } - -exports['default'] = { - required: _required2['default'], - whitespace: _whitespace2['default'], - type: _type2['default'], - range: _range2['default'], - 'enum': _enum2['default'], - pattern: _pattern2['default'] -}; - -/***/ }), - -/***/ "./node_modules/async-validator/es/rule/pattern.js": -/*!*********************************************************!*\ - !*** ./node_modules/async-validator/es/rule/pattern.js ***! - \*********************************************************/ -/*! no static exports found */ -/***/ (function(module, exports, __webpack_require__) { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", { - value: true -}); - -var _util = __webpack_require__(/*! ../util */ "./node_modules/async-validator/es/util.js"); - -var util = _interopRequireWildcard(_util); - -function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) newObj[key] = obj[key]; } } newObj['default'] = obj; return newObj; } } + return { + message: typeof oe === 'function' ? oe() : oe, + field: oe.field || rule.fullField + }; + }; +} +function deepMerge(target, source) { + if (source) { + for (var s in source) { + if (source.hasOwnProperty(s)) { + var value = source[s]; -/** - * Rule for validating a regular expression pattern. - * - * @param rule The validation rule. - * @param value The value of the field on the source object. - * @param source The source object being validated. - * @param errors An array of errors that this rule may add - * validation errors to. - * @param options The validation options. - * @param options.messages The validation messages. - */ -function pattern(rule, value, source, errors, options) { - if (rule.pattern) { - if (rule.pattern instanceof RegExp) { - // if a RegExp instance is passed, reset `lastIndex` in case its `global` - // flag is accidentally set to `true`, which in a validation scenario - // is not necessary and the result might be misleading - rule.pattern.lastIndex = 0; - if (!rule.pattern.test(value)) { - errors.push(util.format(options.messages.pattern.mismatch, rule.fullField, value, rule.pattern)); - } - } else if (typeof rule.pattern === 'string') { - var _pattern = new RegExp(rule.pattern); - if (!_pattern.test(value)) { - errors.push(util.format(options.messages.pattern.mismatch, rule.fullField, value, rule.pattern)); + if (typeof value === 'object' && typeof target[s] === 'object') { + target[s] = _extends({}, target[s], {}, value); + } else { + target[s] = value; + } } } } -} - -exports['default'] = pattern; - -/***/ }), - -/***/ "./node_modules/async-validator/es/rule/range.js": -/*!*******************************************************!*\ - !*** ./node_modules/async-validator/es/rule/range.js ***! - \*******************************************************/ -/*! no static exports found */ -/***/ (function(module, exports, __webpack_require__) { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", { - value: true -}); -var _util = __webpack_require__(/*! ../util */ "./node_modules/async-validator/es/util.js"); - -var util = _interopRequireWildcard(_util); - -function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) newObj[key] = obj[key]; } } newObj['default'] = obj; return newObj; } } + return target; +} /** - * Rule for validating minimum and maximum allowed values. + * Rule for validating required fields. * * @param rule The validation rule. * @param value The value of the field on the source object. @@ -23291,76 +24825,15 @@ function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; * @param options The validation options. * @param options.messages The validation messages. */ -function range(rule, value, source, errors, options) { - var len = typeof rule.len === 'number'; - var min = typeof rule.min === 'number'; - var max = typeof rule.max === 'number'; - // 正则匹配码点范围从U+010000一直到U+10FFFF的文字(补充平面Supplementary Plane) - var spRegexp = /[\uD800-\uDBFF][\uDC00-\uDFFF]/g; - var val = value; - var key = null; - var num = typeof value === 'number'; - var str = typeof value === 'string'; - var arr = Array.isArray(value); - if (num) { - key = 'number'; - } else if (str) { - key = 'string'; - } else if (arr) { - key = 'array'; - } - // if the value is not of a supported type for range validation - // the validation rule rule should use the - // type property to also test for a particular type - if (!key) { - return false; - } - if (arr) { - val = value.length; - } - if (str) { - // 处理码点大于U+010000的文字length属性不准确的bug,如"𠮷𠮷𠮷".lenght !== 3 - val = value.replace(spRegexp, '_').length; - } - if (len) { - if (val !== rule.len) { - errors.push(util.format(options.messages[key].len, rule.fullField, rule.len)); - } - } else if (min && !max && val < rule.min) { - errors.push(util.format(options.messages[key].min, rule.fullField, rule.min)); - } else if (max && !min && val > rule.max) { - errors.push(util.format(options.messages[key].max, rule.fullField, rule.max)); - } else if (min && max && (val < rule.min || val > rule.max)) { - errors.push(util.format(options.messages[key].range, rule.fullField, rule.min, rule.max)); + +function required(rule, value, source, errors, options, type) { + if (rule.required && (!source.hasOwnProperty(rule.field) || isEmptyValue(value, type || rule.type))) { + errors.push(format(options.messages.required, rule.fullField)); } } -exports['default'] = range; - -/***/ }), - -/***/ "./node_modules/async-validator/es/rule/required.js": -/*!**********************************************************!*\ - !*** ./node_modules/async-validator/es/rule/required.js ***! - \**********************************************************/ -/*! no static exports found */ -/***/ (function(module, exports, __webpack_require__) { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", { - value: true -}); - -var _util = __webpack_require__(/*! ../util */ "./node_modules/async-validator/es/util.js"); - -var util = _interopRequireWildcard(_util); - -function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) newObj[key] = obj[key]; } } newObj['default'] = obj; return newObj; } } - /** - * Rule for validating required fields. + * Rule for validating whitespace. * * @param rule The validation rule. * @param value The value of the field on the source object. @@ -23370,58 +24843,26 @@ function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; * @param options The validation options. * @param options.messages The validation messages. */ -function required(rule, value, source, errors, options, type) { - if (rule.required && (!source.hasOwnProperty(rule.field) || util.isEmptyValue(value, type || rule.type))) { - errors.push(util.format(options.messages.required, rule.fullField)); + +function whitespace(rule, value, source, errors, options) { + if (/^\s+$/.test(value) || value === '') { + errors.push(format(options.messages.whitespace, rule.fullField)); } } -exports['default'] = required; - -/***/ }), - -/***/ "./node_modules/async-validator/es/rule/type.js": -/*!******************************************************!*\ - !*** ./node_modules/async-validator/es/rule/type.js ***! - \******************************************************/ -/*! no static exports found */ -/***/ (function(module, exports, __webpack_require__) { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", { - value: true -}); - -var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; - -var _util = __webpack_require__(/*! ../util */ "./node_modules/async-validator/es/util.js"); - -var util = _interopRequireWildcard(_util); - -var _required = __webpack_require__(/*! ./required */ "./node_modules/async-validator/es/rule/required.js"); - -var _required2 = _interopRequireDefault(_required); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } - -function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) newObj[key] = obj[key]; } } newObj['default'] = obj; return newObj; } } - /* eslint max-len:0 */ var pattern = { // http://emailregex.com/ email: /^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/, - url: new RegExp('^(?!mailto:)(?:(?:http|https|ftp)://|//)(?:\\S+(?::\\S*)?@)?(?:(?:(?:[1-9]\\d?|1\\d\\d|2[01]\\d|22[0-3])(?:\\.(?:1?\\d{1,2}|2[0-4]\\d|25[0-5])){2}(?:\\.(?:[0-9]\\d?|1\\d\\d|2[0-4]\\d|25[0-4]))|(?:(?:[a-z\\u00a1-\\uffff0-9]+-?)*[a-z\\u00a1-\\uffff0-9]+)(?:\\.(?:[a-z\\u00a1-\\uffff0-9]+-?)*[a-z\\u00a1-\\uffff0-9]+)*(?:\\.(?:[a-z\\u00a1-\\uffff]{2,})))|localhost)(?::\\d{2,5})?(?:(/|\\?|#)[^\\s]*)?$', 'i'), + url: new RegExp("^(?!mailto:)(?:(?:http|https|ftp)://|//)(?:\\S+(?::\\S*)?@)?(?:(?:(?:[1-9]\\d?|1\\d\\d|2[01]\\d|22[0-3])(?:\\.(?:1?\\d{1,2}|2[0-4]\\d|25[0-5])){2}(?:\\.(?:[0-9]\\d?|1\\d\\d|2[0-4]\\d|25[0-4]))|(?:(?:[a-z\\u00a1-\\uffff0-9]+-*)*[a-z\\u00a1-\\uffff0-9]+)(?:\\.(?:[a-z\\u00a1-\\uffff0-9]+-*)*[a-z\\u00a1-\\uffff0-9]+)*(?:\\.(?:[a-z\\u00a1-\\uffff]{2,})))|localhost)(?::\\d{2,5})?(?:(/|\\?|#)[^\\s]*)?$", 'i'), hex: /^#?([a-f0-9]{6}|[a-f0-9]{3})$/i }; - var types = { integer: function integer(value) { return types.number(value) && parseInt(value, 10) === value; }, - float: function float(value) { + "float": function float(value) { return types.number(value) && !types.integer(value); }, array: function array(value) { @@ -23431,6 +24872,7 @@ var types = { if (value instanceof RegExp) { return true; } + try { return !!new RegExp(value); } catch (e) { @@ -23444,10 +24886,11 @@ var types = { if (isNaN(value)) { return false; } + return typeof value === 'number'; }, object: function object(value) { - return (typeof value === 'undefined' ? 'undefined' : _typeof(value)) === 'object' && !types.array(value); + return typeof value === 'object' && !types.array(value); }, method: function method(value) { return typeof value === 'function'; @@ -23462,7 +24905,6 @@ var types = { return typeof value === 'string' && !!value.match(pattern.hex); } }; - /** * Rule for validating the type of a value. * @@ -23474,49 +24916,28 @@ var types = { * @param options The validation options. * @param options.messages The validation messages. */ + function type(rule, value, source, errors, options) { if (rule.required && value === undefined) { - (0, _required2['default'])(rule, value, source, errors, options); + required(rule, value, source, errors, options); return; } + var custom = ['integer', 'float', 'array', 'regexp', 'object', 'method', 'email', 'number', 'date', 'url', 'hex']; var ruleType = rule.type; + if (custom.indexOf(ruleType) > -1) { if (!types[ruleType](value)) { - errors.push(util.format(options.messages.types[ruleType], rule.fullField, rule.type)); - } - // straight typeof check - } else if (ruleType && (typeof value === 'undefined' ? 'undefined' : _typeof(value)) !== rule.type) { - errors.push(util.format(options.messages.types[ruleType], rule.fullField, rule.type)); + errors.push(format(options.messages.types[ruleType], rule.fullField, rule.type)); + } // straight typeof check + + } else if (ruleType && typeof value !== rule.type) { + errors.push(format(options.messages.types[ruleType], rule.fullField, rule.type)); } } -exports['default'] = type; - -/***/ }), - -/***/ "./node_modules/async-validator/es/rule/whitespace.js": -/*!************************************************************!*\ - !*** ./node_modules/async-validator/es/rule/whitespace.js ***! - \************************************************************/ -/*! no static exports found */ -/***/ (function(module, exports, __webpack_require__) { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", { - value: true -}); - -var _util = __webpack_require__(/*! ../util */ "./node_modules/async-validator/es/util.js"); - -var util = _interopRequireWildcard(_util); - -function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) newObj[key] = obj[key]; } } newObj['default'] = obj; return newObj; } } - /** - * Rule for validating whitespace. + * Rule for validating minimum and maximum allowed values. * * @param rule The validation rule. * @param value The value of the field on the source object. @@ -23526,274 +24947,121 @@ function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; * @param options The validation options. * @param options.messages The validation messages. */ -function whitespace(rule, value, source, errors, options) { - if (/^\s+$/.test(value) || value === '') { - errors.push(util.format(options.messages.whitespace, rule.fullField)); - } -} - -exports['default'] = whitespace; - -/***/ }), - -/***/ "./node_modules/async-validator/es/util.js": -/*!*************************************************!*\ - !*** ./node_modules/async-validator/es/util.js ***! - \*************************************************/ -/*! no static exports found */ -/***/ (function(module, exports, __webpack_require__) { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", { - value: true -}); -var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; - -var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; - -exports.convertFieldsError = convertFieldsError; -exports.format = format; -exports.isEmptyValue = isEmptyValue; -exports.isEmptyObject = isEmptyObject; -exports.asyncMap = asyncMap; -exports.complementError = complementError; -exports.deepMerge = deepMerge; -/* eslint no-console:0 */ - -var formatRegExp = /%[sdj%]/g; +function range(rule, value, source, errors, options) { + var len = typeof rule.len === 'number'; + var min = typeof rule.min === 'number'; + var max = typeof rule.max === 'number'; // 正则匹配码点范围从U+010000一直到U+10FFFF的文字(补充平面Supplementary Plane) -var warning = exports.warning = function warning() {}; + var spRegexp = /[\uD800-\uDBFF][\uDC00-\uDFFF]/g; + var val = value; + var key = null; + var num = typeof value === 'number'; + var str = typeof value === 'string'; + var arr = Array.isArray(value); -// don't print warning message when in production env or node runtime -if ( true && typeof window !== 'undefined' && typeof document !== 'undefined') { - exports.warning = warning = function warning(type, errors) { - if (typeof console !== 'undefined' && console.warn) { - if (errors.every(function (e) { - return typeof e === 'string'; - })) { - console.warn(type, errors); - } - } - }; -} + if (num) { + key = 'number'; + } else if (str) { + key = 'string'; + } else if (arr) { + key = 'array'; + } // if the value is not of a supported type for range validation + // the validation rule rule should use the + // type property to also test for a particular type -function convertFieldsError(errors) { - if (!errors || !errors.length) return null; - var fields = {}; - errors.forEach(function (error) { - var field = error.field; - fields[field] = fields[field] || []; - fields[field].push(error); - }); - return fields; -} -function format() { - for (var _len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++) { - args[_key] = arguments[_key]; + if (!key) { + return false; } - var i = 1; - var f = args[0]; - var len = args.length; - if (typeof f === 'function') { - return f.apply(null, args.slice(1)); - } - if (typeof f === 'string') { - var str = String(f).replace(formatRegExp, function (x) { - if (x === '%%') { - return '%'; - } - if (i >= len) { - return x; - } - switch (x) { - case '%s': - return String(args[i++]); - case '%d': - return Number(args[i++]); - case '%j': - try { - return JSON.stringify(args[i++]); - } catch (_) { - return '[Circular]'; - } - break; - default: - return x; - } - }); - for (var arg = args[i]; i < len; arg = args[++i]) { - str += ' ' + arg; - } - return str; + if (arr) { + val = value.length; } - return f; -} - -function isNativeStringType(type) { - return type === 'string' || type === 'url' || type === 'hex' || type === 'email' || type === 'pattern'; -} -function isEmptyValue(value, type) { - if (value === undefined || value === null) { - return true; - } - if (type === 'array' && Array.isArray(value) && !value.length) { - return true; - } - if (isNativeStringType(type) && typeof value === 'string' && !value) { - return true; + if (str) { + // 处理码点大于U+010000的文字length属性不准确的bug,如"𠮷𠮷𠮷".lenght !== 3 + val = value.replace(spRegexp, '_').length; } - return false; -} - -function isEmptyObject(obj) { - return Object.keys(obj).length === 0; -} -function asyncParallelArray(arr, func, callback) { - var results = []; - var total = 0; - var arrLength = arr.length; - - function count(errors) { - results.push.apply(results, errors); - total++; - if (total === arrLength) { - callback(results); + if (len) { + if (val !== rule.len) { + errors.push(format(options.messages[key].len, rule.fullField, rule.len)); } + } else if (min && !max && val < rule.min) { + errors.push(format(options.messages[key].min, rule.fullField, rule.min)); + } else if (max && !min && val > rule.max) { + errors.push(format(options.messages[key].max, rule.fullField, rule.max)); + } else if (min && max && (val < rule.min || val > rule.max)) { + errors.push(format(options.messages[key].range, rule.fullField, rule.min, rule.max)); } - - arr.forEach(function (a) { - func(a, count); - }); } -function asyncSerialArray(arr, func, callback) { - var index = 0; - var arrLength = arr.length; +var ENUM = 'enum'; +/** + * Rule for validating a value exists in an enumerable list. + * + * @param rule The validation rule. + * @param value The value of the field on the source object. + * @param source The source object being validated. + * @param errors An array of errors that this rule may add + * validation errors to. + * @param options The validation options. + * @param options.messages The validation messages. + */ - function next(errors) { - if (errors && errors.length) { - callback(errors); - return; - } - var original = index; - index = index + 1; - if (original < arrLength) { - func(arr[original], next); - } else { - callback([]); - } - } +function enumerable(rule, value, source, errors, options) { + rule[ENUM] = Array.isArray(rule[ENUM]) ? rule[ENUM] : []; - next([]); + if (rule[ENUM].indexOf(value) === -1) { + errors.push(format(options.messages[ENUM], rule.fullField, rule[ENUM].join(', '))); + } } -function flattenObjArr(objArr) { - var ret = []; - Object.keys(objArr).forEach(function (k) { - ret.push.apply(ret, objArr[k]); - }); - return ret; -} +/** + * Rule for validating a regular expression pattern. + * + * @param rule The validation rule. + * @param value The value of the field on the source object. + * @param source The source object being validated. + * @param errors An array of errors that this rule may add + * validation errors to. + * @param options The validation options. + * @param options.messages The validation messages. + */ -function asyncMap(objArr, option, func, callback) { - if (option.first) { - var flattenArr = flattenObjArr(objArr); - return asyncSerialArray(flattenArr, func, callback); - } - var firstFields = option.firstFields || []; - if (firstFields === true) { - firstFields = Object.keys(objArr); - } - var objArrKeys = Object.keys(objArr); - var objArrLength = objArrKeys.length; - var total = 0; - var results = []; - var pending = new Promise(function (resolve, reject) { - var next = function next(errors) { - results.push.apply(results, errors); - total++; - if (total === objArrLength) { - callback(results); - return results.length ? reject({ errors: results, fields: convertFieldsError(results) }) : resolve(); - } - }; - objArrKeys.forEach(function (key) { - var arr = objArr[key]; - if (firstFields.indexOf(key) !== -1) { - asyncSerialArray(arr, func, next); - } else { - asyncParallelArray(arr, func, next); - } - }); - }); - pending['catch'](function (e) { - return e; - }); - return pending; -} +function pattern$1(rule, value, source, errors, options) { + if (rule.pattern) { + if (rule.pattern instanceof RegExp) { + // if a RegExp instance is passed, reset `lastIndex` in case its `global` + // flag is accidentally set to `true`, which in a validation scenario + // is not necessary and the result might be misleading + rule.pattern.lastIndex = 0; -function complementError(rule) { - return function (oe) { - if (oe && oe.message) { - oe.field = oe.field || rule.fullField; - return oe; - } - return { - message: typeof oe === 'function' ? oe() : oe, - field: oe.field || rule.fullField - }; - }; -} + if (!rule.pattern.test(value)) { + errors.push(format(options.messages.pattern.mismatch, rule.fullField, value, rule.pattern)); + } + } else if (typeof rule.pattern === 'string') { + var _pattern = new RegExp(rule.pattern); -function deepMerge(target, source) { - if (source) { - for (var s in source) { - if (source.hasOwnProperty(s)) { - var value = source[s]; - if ((typeof value === 'undefined' ? 'undefined' : _typeof(value)) === 'object' && _typeof(target[s]) === 'object') { - target[s] = _extends({}, target[s], value); - } else { - target[s] = value; - } + if (!_pattern.test(value)) { + errors.push(format(options.messages.pattern.mismatch, rule.fullField, value, rule.pattern)); } } } - return target; } -/***/ }), - -/***/ "./node_modules/async-validator/es/validator/array.js": -/*!************************************************************!*\ - !*** ./node_modules/async-validator/es/validator/array.js ***! - \************************************************************/ -/*! no static exports found */ -/***/ (function(module, exports, __webpack_require__) { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", { - value: true -}); - -var _rule = __webpack_require__(/*! ../rule/ */ "./node_modules/async-validator/es/rule/index.js"); - -var _rule2 = _interopRequireDefault(_rule); - -var _util = __webpack_require__(/*! ../util */ "./node_modules/async-validator/es/util.js"); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } +var rules = { + required: required, + whitespace: whitespace, + type: type, + range: range, + "enum": enumerable, + pattern: pattern$1 +}; /** - * Validates an array. + * Performs validation for string types. * * @param rule The validation rule. * @param value The value of the field on the source object. @@ -23802,50 +25070,34 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'd * @param options The validation options. * @param options.messages The validation messages. */ -function array(rule, value, callback, source, options) { + +function string(rule, value, callback, source, options) { var errors = []; var validate = rule.required || !rule.required && source.hasOwnProperty(rule.field); + if (validate) { - if ((0, _util.isEmptyValue)(value, 'array') && !rule.required) { + if (isEmptyValue(value, 'string') && !rule.required) { return callback(); } - _rule2['default'].required(rule, value, source, errors, options, 'array'); - if (!(0, _util.isEmptyValue)(value, 'array')) { - _rule2['default'].type(rule, value, source, errors, options); - _rule2['default'].range(rule, value, source, errors, options); - } - } - callback(errors); -} -exports['default'] = array; - -/***/ }), - -/***/ "./node_modules/async-validator/es/validator/boolean.js": -/*!**************************************************************!*\ - !*** ./node_modules/async-validator/es/validator/boolean.js ***! - \**************************************************************/ -/*! no static exports found */ -/***/ (function(module, exports, __webpack_require__) { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", { - value: true -}); + rules.required(rule, value, source, errors, options, 'string'); -var _util = __webpack_require__(/*! ../util */ "./node_modules/async-validator/es/util.js"); + if (!isEmptyValue(value, 'string')) { + rules.type(rule, value, source, errors, options); + rules.range(rule, value, source, errors, options); + rules.pattern(rule, value, source, errors, options); -var _rule = __webpack_require__(/*! ../rule/ */ "./node_modules/async-validator/es/rule/index.js"); - -var _rule2 = _interopRequireDefault(_rule); + if (rule.whitespace === true) { + rules.whitespace(rule, value, source, errors, options); + } + } + } -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } + callback(errors); +} /** - * Validates a boolean. + * Validates a function. * * @param rule The validation rule. * @param value The value of the field on the source object. @@ -23854,105 +25106,63 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'd * @param options The validation options. * @param options.messages The validation messages. */ -function boolean(rule, value, callback, source, options) { + +function method(rule, value, callback, source, options) { var errors = []; var validate = rule.required || !rule.required && source.hasOwnProperty(rule.field); + if (validate) { - if ((0, _util.isEmptyValue)(value) && !rule.required) { + if (isEmptyValue(value) && !rule.required) { return callback(); } - _rule2['default'].required(rule, value, source, errors, options); + + rules.required(rule, value, source, errors, options); + if (value !== undefined) { - _rule2['default'].type(rule, value, source, errors, options); + rules.type(rule, value, source, errors, options); } } + callback(errors); } -exports['default'] = boolean; - -/***/ }), - -/***/ "./node_modules/async-validator/es/validator/date.js": -/*!***********************************************************!*\ - !*** ./node_modules/async-validator/es/validator/date.js ***! - \***********************************************************/ -/*! no static exports found */ -/***/ (function(module, exports, __webpack_require__) { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", { - value: true -}); - -var _rule = __webpack_require__(/*! ../rule/ */ "./node_modules/async-validator/es/rule/index.js"); - -var _rule2 = _interopRequireDefault(_rule); - -var _util = __webpack_require__(/*! ../util */ "./node_modules/async-validator/es/util.js"); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } +/** + * Validates a number. + * + * @param rule The validation rule. + * @param value The value of the field on the source object. + * @param callback The callback function. + * @param source The source object being validated. + * @param options The validation options. + * @param options.messages The validation messages. + */ -function date(rule, value, callback, source, options) { - // console.log('integer rule called %j', rule); +function number(rule, value, callback, source, options) { var errors = []; var validate = rule.required || !rule.required && source.hasOwnProperty(rule.field); - // console.log('validate on %s value', value); + if (validate) { - if ((0, _util.isEmptyValue)(value) && !rule.required) { + if (value === '') { + value = undefined; + } + + if (isEmptyValue(value) && !rule.required) { return callback(); } - _rule2['default'].required(rule, value, source, errors, options); - if (!(0, _util.isEmptyValue)(value)) { - var dateObject = void 0; - if (typeof value === 'number') { - dateObject = new Date(value); - } else { - dateObject = value; - } + rules.required(rule, value, source, errors, options); - _rule2['default'].type(rule, dateObject, source, errors, options); - if (dateObject) { - _rule2['default'].range(rule, dateObject.getTime(), source, errors, options); - } + if (value !== undefined) { + rules.type(rule, value, source, errors, options); + rules.range(rule, value, source, errors, options); } } + callback(errors); } -exports['default'] = date; - -/***/ }), - -/***/ "./node_modules/async-validator/es/validator/enum.js": -/*!***********************************************************!*\ - !*** ./node_modules/async-validator/es/validator/enum.js ***! - \***********************************************************/ -/*! no static exports found */ -/***/ (function(module, exports, __webpack_require__) { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", { - value: true -}); - -var _rule = __webpack_require__(/*! ../rule/ */ "./node_modules/async-validator/es/rule/index.js"); - -var _rule2 = _interopRequireDefault(_rule); - -var _util = __webpack_require__(/*! ../util */ "./node_modules/async-validator/es/util.js"); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } - -var ENUM = 'enum'; - /** - * Validates an enumerable list. + * Validates a boolean. * * @param rule The validation rule. * @param value The value of the field on the source object. @@ -23961,49 +25171,28 @@ var ENUM = 'enum'; * @param options The validation options. * @param options.messages The validation messages. */ -function enumerable(rule, value, callback, source, options) { + +function _boolean(rule, value, callback, source, options) { var errors = []; var validate = rule.required || !rule.required && source.hasOwnProperty(rule.field); + if (validate) { - if ((0, _util.isEmptyValue)(value) && !rule.required) { + if (isEmptyValue(value) && !rule.required) { return callback(); } - _rule2['default'].required(rule, value, source, errors, options); - if (value) { - _rule2['default'][ENUM](rule, value, source, errors, options); + + rules.required(rule, value, source, errors, options); + + if (value !== undefined) { + rules.type(rule, value, source, errors, options); } } + callback(errors); } -exports['default'] = enumerable; - -/***/ }), - -/***/ "./node_modules/async-validator/es/validator/float.js": -/*!************************************************************!*\ - !*** ./node_modules/async-validator/es/validator/float.js ***! - \************************************************************/ -/*! no static exports found */ -/***/ (function(module, exports, __webpack_require__) { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", { - value: true -}); - -var _rule = __webpack_require__(/*! ../rule/ */ "./node_modules/async-validator/es/rule/index.js"); - -var _rule2 = _interopRequireDefault(_rule); - -var _util = __webpack_require__(/*! ../util */ "./node_modules/async-validator/es/util.js"); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } - /** - * Validates a number is a floating point number. + * Validates the regular expression type. * * @param rule The validation rule. * @param value The value of the field on the source object. @@ -24012,141 +25201,26 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'd * @param options The validation options. * @param options.messages The validation messages. */ -function floatFn(rule, value, callback, source, options) { + +function regexp(rule, value, callback, source, options) { var errors = []; var validate = rule.required || !rule.required && source.hasOwnProperty(rule.field); + if (validate) { - if ((0, _util.isEmptyValue)(value) && !rule.required) { + if (isEmptyValue(value) && !rule.required) { return callback(); } - _rule2['default'].required(rule, value, source, errors, options); - if (value !== undefined) { - _rule2['default'].type(rule, value, source, errors, options); - _rule2['default'].range(rule, value, source, errors, options); + + rules.required(rule, value, source, errors, options); + + if (!isEmptyValue(value)) { + rules.type(rule, value, source, errors, options); } } + callback(errors); } -exports['default'] = floatFn; - -/***/ }), - -/***/ "./node_modules/async-validator/es/validator/index.js": -/*!************************************************************!*\ - !*** ./node_modules/async-validator/es/validator/index.js ***! - \************************************************************/ -/*! no static exports found */ -/***/ (function(module, exports, __webpack_require__) { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", { - value: true -}); - -var _string = __webpack_require__(/*! ./string */ "./node_modules/async-validator/es/validator/string.js"); - -var _string2 = _interopRequireDefault(_string); - -var _method = __webpack_require__(/*! ./method */ "./node_modules/async-validator/es/validator/method.js"); - -var _method2 = _interopRequireDefault(_method); - -var _number = __webpack_require__(/*! ./number */ "./node_modules/async-validator/es/validator/number.js"); - -var _number2 = _interopRequireDefault(_number); - -var _boolean = __webpack_require__(/*! ./boolean */ "./node_modules/async-validator/es/validator/boolean.js"); - -var _boolean2 = _interopRequireDefault(_boolean); - -var _regexp = __webpack_require__(/*! ./regexp */ "./node_modules/async-validator/es/validator/regexp.js"); - -var _regexp2 = _interopRequireDefault(_regexp); - -var _integer = __webpack_require__(/*! ./integer */ "./node_modules/async-validator/es/validator/integer.js"); - -var _integer2 = _interopRequireDefault(_integer); - -var _float = __webpack_require__(/*! ./float */ "./node_modules/async-validator/es/validator/float.js"); - -var _float2 = _interopRequireDefault(_float); - -var _array = __webpack_require__(/*! ./array */ "./node_modules/async-validator/es/validator/array.js"); - -var _array2 = _interopRequireDefault(_array); - -var _object = __webpack_require__(/*! ./object */ "./node_modules/async-validator/es/validator/object.js"); - -var _object2 = _interopRequireDefault(_object); - -var _enum = __webpack_require__(/*! ./enum */ "./node_modules/async-validator/es/validator/enum.js"); - -var _enum2 = _interopRequireDefault(_enum); - -var _pattern = __webpack_require__(/*! ./pattern */ "./node_modules/async-validator/es/validator/pattern.js"); - -var _pattern2 = _interopRequireDefault(_pattern); - -var _date = __webpack_require__(/*! ./date */ "./node_modules/async-validator/es/validator/date.js"); - -var _date2 = _interopRequireDefault(_date); - -var _required = __webpack_require__(/*! ./required */ "./node_modules/async-validator/es/validator/required.js"); - -var _required2 = _interopRequireDefault(_required); - -var _type = __webpack_require__(/*! ./type */ "./node_modules/async-validator/es/validator/type.js"); - -var _type2 = _interopRequireDefault(_type); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } - -exports['default'] = { - string: _string2['default'], - method: _method2['default'], - number: _number2['default'], - boolean: _boolean2['default'], - regexp: _regexp2['default'], - integer: _integer2['default'], - float: _float2['default'], - array: _array2['default'], - object: _object2['default'], - 'enum': _enum2['default'], - pattern: _pattern2['default'], - date: _date2['default'], - url: _type2['default'], - hex: _type2['default'], - email: _type2['default'], - required: _required2['default'] -}; - -/***/ }), - -/***/ "./node_modules/async-validator/es/validator/integer.js": -/*!**************************************************************!*\ - !*** ./node_modules/async-validator/es/validator/integer.js ***! - \**************************************************************/ -/*! no static exports found */ -/***/ (function(module, exports, __webpack_require__) { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", { - value: true -}); - -var _rule = __webpack_require__(/*! ../rule/ */ "./node_modules/async-validator/es/rule/index.js"); - -var _rule2 = _interopRequireDefault(_rule); - -var _util = __webpack_require__(/*! ../util */ "./node_modules/async-validator/es/util.js"); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } - /** * Validates a number is an integer. * @@ -24157,50 +25231,29 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'd * @param options The validation options. * @param options.messages The validation messages. */ + function integer(rule, value, callback, source, options) { var errors = []; var validate = rule.required || !rule.required && source.hasOwnProperty(rule.field); + if (validate) { - if ((0, _util.isEmptyValue)(value) && !rule.required) { + if (isEmptyValue(value) && !rule.required) { return callback(); } - _rule2['default'].required(rule, value, source, errors, options); + + rules.required(rule, value, source, errors, options); + if (value !== undefined) { - _rule2['default'].type(rule, value, source, errors, options); - _rule2['default'].range(rule, value, source, errors, options); + rules.type(rule, value, source, errors, options); + rules.range(rule, value, source, errors, options); } } + callback(errors); } -exports['default'] = integer; - -/***/ }), - -/***/ "./node_modules/async-validator/es/validator/method.js": -/*!*************************************************************!*\ - !*** ./node_modules/async-validator/es/validator/method.js ***! - \*************************************************************/ -/*! no static exports found */ -/***/ (function(module, exports, __webpack_require__) { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", { - value: true -}); - -var _rule = __webpack_require__(/*! ../rule/ */ "./node_modules/async-validator/es/rule/index.js"); - -var _rule2 = _interopRequireDefault(_rule); - -var _util = __webpack_require__(/*! ../util */ "./node_modules/async-validator/es/util.js"); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } - /** - * Validates a function. + * Validates a number is a floating point number. * * @param rule The validation rule. * @param value The value of the field on the source object. @@ -24209,49 +25262,29 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'd * @param options The validation options. * @param options.messages The validation messages. */ -function method(rule, value, callback, source, options) { + +function floatFn(rule, value, callback, source, options) { var errors = []; var validate = rule.required || !rule.required && source.hasOwnProperty(rule.field); + if (validate) { - if ((0, _util.isEmptyValue)(value) && !rule.required) { + if (isEmptyValue(value) && !rule.required) { return callback(); } - _rule2['default'].required(rule, value, source, errors, options); + + rules.required(rule, value, source, errors, options); + if (value !== undefined) { - _rule2['default'].type(rule, value, source, errors, options); + rules.type(rule, value, source, errors, options); + rules.range(rule, value, source, errors, options); } } + callback(errors); } -exports['default'] = method; - -/***/ }), - -/***/ "./node_modules/async-validator/es/validator/number.js": -/*!*************************************************************!*\ - !*** ./node_modules/async-validator/es/validator/number.js ***! - \*************************************************************/ -/*! no static exports found */ -/***/ (function(module, exports, __webpack_require__) { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", { - value: true -}); - -var _rule = __webpack_require__(/*! ../rule/ */ "./node_modules/async-validator/es/rule/index.js"); - -var _rule2 = _interopRequireDefault(_rule); - -var _util = __webpack_require__(/*! ../util */ "./node_modules/async-validator/es/util.js"); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } - /** - * Validates a number. + * Validates an array. * * @param rule The validation rule. * @param value The value of the field on the source object. @@ -24260,53 +25293,60 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'd * @param options The validation options. * @param options.messages The validation messages. */ -function number(rule, value, callback, source, options) { + +function array(rule, value, callback, source, options) { var errors = []; var validate = rule.required || !rule.required && source.hasOwnProperty(rule.field); + if (validate) { - if (value === '') { - value = undefined; - } - if ((0, _util.isEmptyValue)(value) && !rule.required) { + if (isEmptyValue(value, 'array') && !rule.required) { return callback(); } - _rule2['default'].required(rule, value, source, errors, options); - if (value !== undefined) { - _rule2['default'].type(rule, value, source, errors, options); - _rule2['default'].range(rule, value, source, errors, options); + + rules.required(rule, value, source, errors, options, 'array'); + + if (!isEmptyValue(value, 'array')) { + rules.type(rule, value, source, errors, options); + rules.range(rule, value, source, errors, options); } } + callback(errors); } -exports['default'] = number; - -/***/ }), - -/***/ "./node_modules/async-validator/es/validator/object.js": -/*!*************************************************************!*\ - !*** ./node_modules/async-validator/es/validator/object.js ***! - \*************************************************************/ -/*! no static exports found */ -/***/ (function(module, exports, __webpack_require__) { - -"use strict"; - +/** + * Validates an object. + * + * @param rule The validation rule. + * @param value The value of the field on the source object. + * @param callback The callback function. + * @param source The source object being validated. + * @param options The validation options. + * @param options.messages The validation messages. + */ -Object.defineProperty(exports, "__esModule", { - value: true -}); +function object(rule, value, callback, source, options) { + var errors = []; + var validate = rule.required || !rule.required && source.hasOwnProperty(rule.field); -var _rule = __webpack_require__(/*! ../rule/ */ "./node_modules/async-validator/es/rule/index.js"); + if (validate) { + if (isEmptyValue(value) && !rule.required) { + return callback(); + } -var _rule2 = _interopRequireDefault(_rule); + rules.required(rule, value, source, errors, options); -var _util = __webpack_require__(/*! ../util */ "./node_modules/async-validator/es/util.js"); + if (value !== undefined) { + rules.type(rule, value, source, errors, options); + } + } -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } + callback(errors); +} +var ENUM$1 = 'enum'; /** - * Validates an object. + * Validates an enumerable list. * * @param rule The validation rule. * @param value The value of the field on the source object. @@ -24315,47 +25355,26 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'd * @param options The validation options. * @param options.messages The validation messages. */ -function object(rule, value, callback, source, options) { + +function enumerable$1(rule, value, callback, source, options) { var errors = []; var validate = rule.required || !rule.required && source.hasOwnProperty(rule.field); + if (validate) { - if ((0, _util.isEmptyValue)(value) && !rule.required) { + if (isEmptyValue(value) && !rule.required) { return callback(); } - _rule2['default'].required(rule, value, source, errors, options); + + rules.required(rule, value, source, errors, options); + if (value !== undefined) { - _rule2['default'].type(rule, value, source, errors, options); + rules[ENUM$1](rule, value, source, errors, options); } } + callback(errors); } -exports['default'] = object; - -/***/ }), - -/***/ "./node_modules/async-validator/es/validator/pattern.js": -/*!**************************************************************!*\ - !*** ./node_modules/async-validator/es/validator/pattern.js ***! - \**************************************************************/ -/*! no static exports found */ -/***/ (function(module, exports, __webpack_require__) { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", { - value: true -}); - -var _rule = __webpack_require__(/*! ../rule/ */ "./node_modules/async-validator/es/rule/index.js"); - -var _rule2 = _interopRequireDefault(_rule); - -var _util = __webpack_require__(/*! ../util */ "./node_modules/async-validator/es/util.js"); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } - /** * Validates a regular expression pattern. * @@ -24369,49 +25388,87 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'd * @param options The validation options. * @param options.messages The validation messages. */ -function pattern(rule, value, callback, source, options) { + +function pattern$2(rule, value, callback, source, options) { var errors = []; var validate = rule.required || !rule.required && source.hasOwnProperty(rule.field); + if (validate) { - if ((0, _util.isEmptyValue)(value, 'string') && !rule.required) { + if (isEmptyValue(value, 'string') && !rule.required) { return callback(); } - _rule2['default'].required(rule, value, source, errors, options); - if (!(0, _util.isEmptyValue)(value, 'string')) { - _rule2['default'].pattern(rule, value, source, errors, options); + + rules.required(rule, value, source, errors, options); + + if (!isEmptyValue(value, 'string')) { + rules.pattern(rule, value, source, errors, options); } } + callback(errors); } -exports['default'] = pattern; +function date(rule, value, callback, source, options) { + // console.log('integer rule called %j', rule); + var errors = []; + var validate = rule.required || !rule.required && source.hasOwnProperty(rule.field); // console.log('validate on %s value', value); -/***/ }), + if (validate) { + if (isEmptyValue(value) && !rule.required) { + return callback(); + } -/***/ "./node_modules/async-validator/es/validator/regexp.js": -/*!*************************************************************!*\ - !*** ./node_modules/async-validator/es/validator/regexp.js ***! - \*************************************************************/ -/*! no static exports found */ -/***/ (function(module, exports, __webpack_require__) { + rules.required(rule, value, source, errors, options); -"use strict"; + if (!isEmptyValue(value)) { + var dateObject; + if (typeof value === 'number') { + dateObject = new Date(value); + } else { + dateObject = value; + } -Object.defineProperty(exports, "__esModule", { - value: true -}); + rules.type(rule, dateObject, source, errors, options); + + if (dateObject) { + rules.range(rule, dateObject.getTime(), source, errors, options); + } + } + } + + callback(errors); +} + +function required$1(rule, value, callback, source, options) { + var errors = []; + var type = Array.isArray(value) ? 'array' : typeof value; + rules.required(rule, value, source, errors, options, type); + callback(errors); +} + +function type$1(rule, value, callback, source, options) { + var ruleType = rule.type; + var errors = []; + var validate = rule.required || !rule.required && source.hasOwnProperty(rule.field); -var _rule = __webpack_require__(/*! ../rule/ */ "./node_modules/async-validator/es/rule/index.js"); + if (validate) { + if (isEmptyValue(value, ruleType) && !rule.required) { + return callback(); + } -var _rule2 = _interopRequireDefault(_rule); + rules.required(rule, value, source, errors, options, ruleType); -var _util = __webpack_require__(/*! ../util */ "./node_modules/async-validator/es/util.js"); + if (!isEmptyValue(value, ruleType)) { + rules.type(rule, value, source, errors, options); + } + } -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } + callback(errors); +} /** - * Validates the regular expression type. + * Performs validation for any type. * * @param rule The validation rule. * @param value The value of the field on the source object. @@ -24420,153 +25477,428 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'd * @param options The validation options. * @param options.messages The validation messages. */ -function regexp(rule, value, callback, source, options) { + +function any(rule, value, callback, source, options) { var errors = []; var validate = rule.required || !rule.required && source.hasOwnProperty(rule.field); + if (validate) { - if ((0, _util.isEmptyValue)(value) && !rule.required) { + if (isEmptyValue(value) && !rule.required) { return callback(); } - _rule2['default'].required(rule, value, source, errors, options); - if (!(0, _util.isEmptyValue)(value)) { - _rule2['default'].type(rule, value, source, errors, options); - } + + rules.required(rule, value, source, errors, options); } + callback(errors); } -exports['default'] = regexp; - -/***/ }), +var validators = { + string: string, + method: method, + number: number, + "boolean": _boolean, + regexp: regexp, + integer: integer, + "float": floatFn, + array: array, + object: object, + "enum": enumerable$1, + pattern: pattern$2, + date: date, + url: type$1, + hex: type$1, + email: type$1, + required: required$1, + any: any +}; -/***/ "./node_modules/async-validator/es/validator/required.js": -/*!***************************************************************!*\ - !*** ./node_modules/async-validator/es/validator/required.js ***! - \***************************************************************/ -/*! no static exports found */ -/***/ (function(module, exports, __webpack_require__) { +function newMessages() { + return { + "default": 'Validation error on field %s', + required: '%s is required', + "enum": '%s must be one of %s', + whitespace: '%s cannot be empty', + date: { + format: '%s date %s is invalid for format %s', + parse: '%s date could not be parsed, %s is invalid ', + invalid: '%s date %s is invalid' + }, + types: { + string: '%s is not a %s', + method: '%s is not a %s (function)', + array: '%s is not an %s', + object: '%s is not an %s', + number: '%s is not a %s', + date: '%s is not a %s', + "boolean": '%s is not a %s', + integer: '%s is not an %s', + "float": '%s is not a %s', + regexp: '%s is not a valid %s', + email: '%s is not a valid %s', + url: '%s is not a valid %s', + hex: '%s is not a valid %s' + }, + string: { + len: '%s must be exactly %s characters', + min: '%s must be at least %s characters', + max: '%s cannot be longer than %s characters', + range: '%s must be between %s and %s characters' + }, + number: { + len: '%s must equal %s', + min: '%s cannot be less than %s', + max: '%s cannot be greater than %s', + range: '%s must be between %s and %s' + }, + array: { + len: '%s must be exactly %s in length', + min: '%s cannot be less than %s in length', + max: '%s cannot be greater than %s in length', + range: '%s must be between %s and %s in length' + }, + pattern: { + mismatch: '%s value %s does not match pattern %s' + }, + clone: function clone() { + var cloned = JSON.parse(JSON.stringify(this)); + cloned.clone = this.clone; + return cloned; + } + }; +} +var messages = newMessages(); -"use strict"; +/** + * Encapsulates a validation schema. + * + * @param descriptor An object declaring validation rules + * for this schema. + */ +function Schema(descriptor) { + this.rules = null; + this._messages = messages; + this.define(descriptor); +} -Object.defineProperty(exports, "__esModule", { - value: true -}); +Schema.prototype = { + messages: function messages(_messages) { + if (_messages) { + this._messages = deepMerge(newMessages(), _messages); + } -var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; + return this._messages; + }, + define: function define(rules) { + if (!rules) { + throw new Error('Cannot configure a schema with no rules'); + } -var _rule = __webpack_require__(/*! ../rule/ */ "./node_modules/async-validator/es/rule/index.js"); + if (typeof rules !== 'object' || Array.isArray(rules)) { + throw new Error('Rules must be an object'); + } -var _rule2 = _interopRequireDefault(_rule); + this.rules = {}; + var z; + var item; -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } + for (z in rules) { + if (rules.hasOwnProperty(z)) { + item = rules[z]; + this.rules[z] = Array.isArray(item) ? item : [item]; + } + } + }, + validate: function validate(source_, o, oc) { + var _this = this; -function required(rule, value, callback, source, options) { - var errors = []; - var type = Array.isArray(value) ? 'array' : typeof value === 'undefined' ? 'undefined' : _typeof(value); - _rule2['default'].required(rule, value, source, errors, options, type); - callback(errors); -} + if (o === void 0) { + o = {}; + } -exports['default'] = required; + if (oc === void 0) { + oc = function oc() {}; + } -/***/ }), + var source = source_; + var options = o; + var callback = oc; -/***/ "./node_modules/async-validator/es/validator/string.js": -/*!*************************************************************!*\ - !*** ./node_modules/async-validator/es/validator/string.js ***! - \*************************************************************/ -/*! no static exports found */ -/***/ (function(module, exports, __webpack_require__) { + if (typeof options === 'function') { + callback = options; + options = {}; + } -"use strict"; + if (!this.rules || Object.keys(this.rules).length === 0) { + if (callback) { + callback(); + } + return Promise.resolve(); + } -Object.defineProperty(exports, "__esModule", { - value: true -}); + function complete(results) { + var i; + var errors = []; + var fields = {}; -var _rule = __webpack_require__(/*! ../rule/ */ "./node_modules/async-validator/es/rule/index.js"); + function add(e) { + if (Array.isArray(e)) { + var _errors; -var _rule2 = _interopRequireDefault(_rule); + errors = (_errors = errors).concat.apply(_errors, e); + } else { + errors.push(e); + } + } -var _util = __webpack_require__(/*! ../util */ "./node_modules/async-validator/es/util.js"); + for (i = 0; i < results.length; i++) { + add(results[i]); + } -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } + if (!errors.length) { + errors = null; + fields = null; + } else { + fields = convertFieldsError(errors); + } -/** - * Performs validation for string types. - * - * @param rule The validation rule. - * @param value The value of the field on the source object. - * @param callback The callback function. - * @param source The source object being validated. - * @param options The validation options. - * @param options.messages The validation messages. - */ -function string(rule, value, callback, source, options) { - var errors = []; - var validate = rule.required || !rule.required && source.hasOwnProperty(rule.field); - if (validate) { - if ((0, _util.isEmptyValue)(value, 'string') && !rule.required) { - return callback(); + callback(errors, fields); } - _rule2['default'].required(rule, value, source, errors, options, 'string'); - if (!(0, _util.isEmptyValue)(value, 'string')) { - _rule2['default'].type(rule, value, source, errors, options); - _rule2['default'].range(rule, value, source, errors, options); - _rule2['default'].pattern(rule, value, source, errors, options); - if (rule.whitespace === true) { - _rule2['default'].whitespace(rule, value, source, errors, options); + + if (options.messages) { + var messages$1 = this.messages(); + + if (messages$1 === messages) { + messages$1 = newMessages(); } + + deepMerge(messages$1, options.messages); + options.messages = messages$1; + } else { + options.messages = this.messages(); } - } - callback(errors); -} -exports['default'] = string; + var arr; + var value; + var series = {}; + var keys = options.keys || Object.keys(this.rules); + keys.forEach(function (z) { + arr = _this.rules[z]; + value = source[z]; + arr.forEach(function (r) { + var rule = r; -/***/ }), + if (typeof rule.transform === 'function') { + if (source === source_) { + source = _extends({}, source); + } -/***/ "./node_modules/async-validator/es/validator/type.js": -/*!***********************************************************!*\ - !*** ./node_modules/async-validator/es/validator/type.js ***! - \***********************************************************/ -/*! no static exports found */ -/***/ (function(module, exports, __webpack_require__) { + value = source[z] = rule.transform(value); + } -"use strict"; + if (typeof rule === 'function') { + rule = { + validator: rule + }; + } else { + rule = _extends({}, rule); + } + rule.validator = _this.getValidationMethod(rule); + rule.field = z; + rule.fullField = rule.fullField || z; + rule.type = _this.getType(rule); -Object.defineProperty(exports, "__esModule", { - value: true -}); + if (!rule.validator) { + return; + } -var _rule = __webpack_require__(/*! ../rule/ */ "./node_modules/async-validator/es/rule/index.js"); + series[z] = series[z] || []; + series[z].push({ + rule: rule, + value: value, + source: source, + field: z + }); + }); + }); + var errorFields = {}; + return asyncMap(series, options, function (data, doIt) { + var rule = data.rule; + var deep = (rule.type === 'object' || rule.type === 'array') && (typeof rule.fields === 'object' || typeof rule.defaultField === 'object'); + deep = deep && (rule.required || !rule.required && data.value); + rule.field = data.field; -var _rule2 = _interopRequireDefault(_rule); + function addFullfield(key, schema) { + return _extends({}, schema, { + fullField: rule.fullField + "." + key + }); + } -var _util = __webpack_require__(/*! ../util */ "./node_modules/async-validator/es/util.js"); + function cb(e) { + if (e === void 0) { + e = []; + } -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } + var errors = e; -function type(rule, value, callback, source, options) { - var ruleType = rule.type; - var errors = []; - var validate = rule.required || !rule.required && source.hasOwnProperty(rule.field); - if (validate) { - if ((0, _util.isEmptyValue)(value, ruleType) && !rule.required) { - return callback(); + if (!Array.isArray(errors)) { + errors = [errors]; + } + + if (!options.suppressWarning && errors.length) { + Schema.warning('async-validator:', errors); + } + + if (errors.length && rule.message) { + errors = [].concat(rule.message); + } + + errors = errors.map(complementError(rule)); + + if (options.first && errors.length) { + errorFields[rule.field] = 1; + return doIt(errors); + } + + if (!deep) { + doIt(errors); + } else { + // if rule is required but the target object + // does not exist fail at the rule level and don't + // go deeper + if (rule.required && !data.value) { + if (rule.message) { + errors = [].concat(rule.message).map(complementError(rule)); + } else if (options.error) { + errors = [options.error(rule, format(options.messages.required, rule.field))]; + } else { + errors = []; + } + + return doIt(errors); + } + + var fieldsSchema = {}; + + if (rule.defaultField) { + for (var k in data.value) { + if (data.value.hasOwnProperty(k)) { + fieldsSchema[k] = rule.defaultField; + } + } + } + + fieldsSchema = _extends({}, fieldsSchema, {}, data.rule.fields); + + for (var f in fieldsSchema) { + if (fieldsSchema.hasOwnProperty(f)) { + var fieldSchema = Array.isArray(fieldsSchema[f]) ? fieldsSchema[f] : [fieldsSchema[f]]; + fieldsSchema[f] = fieldSchema.map(addFullfield.bind(null, f)); + } + } + + var schema = new Schema(fieldsSchema); + schema.messages(options.messages); + + if (data.rule.options) { + data.rule.options.messages = options.messages; + data.rule.options.error = options.error; + } + + schema.validate(data.value, data.rule.options || options, function (errs) { + var finalErrors = []; + + if (errors && errors.length) { + finalErrors.push.apply(finalErrors, errors); + } + + if (errs && errs.length) { + finalErrors.push.apply(finalErrors, errs); + } + + doIt(finalErrors.length ? finalErrors : null); + }); + } + } + + var res; + + if (rule.asyncValidator) { + res = rule.asyncValidator(rule, data.value, cb, data.source, options); + } else if (rule.validator) { + res = rule.validator(rule, data.value, cb, data.source, options); + + if (res === true) { + cb(); + } else if (res === false) { + cb(rule.message || rule.field + " fails"); + } else if (res instanceof Array) { + cb(res); + } else if (res instanceof Error) { + cb(res.message); + } + } + + if (res && res.then) { + res.then(function () { + return cb(); + }, function (e) { + return cb(e); + }); + } + }, function (results) { + complete(results); + }); + }, + getType: function getType(rule) { + if (rule.type === undefined && rule.pattern instanceof RegExp) { + rule.type = 'pattern'; + } + + if (typeof rule.validator !== 'function' && rule.type && !validators.hasOwnProperty(rule.type)) { + throw new Error(format('Unknown rule type %s', rule.type)); + } + + return rule.type || 'string'; + }, + getValidationMethod: function getValidationMethod(rule) { + if (typeof rule.validator === 'function') { + return rule.validator; + } + + var keys = Object.keys(rule); + var messageIndex = keys.indexOf('message'); + + if (messageIndex !== -1) { + keys.splice(messageIndex, 1); } - _rule2['default'].required(rule, value, source, errors, options, ruleType); - if (!(0, _util.isEmptyValue)(value, ruleType)) { - _rule2['default'].type(rule, value, source, errors, options); + + if (keys.length === 1 && keys[0] === 'required') { + return validators.required; } + + return validators[this.getType(rule)] || false; } - callback(errors); -} +}; + +Schema.register = function register(type, validator) { + if (typeof validator !== 'function') { + throw new Error('Cannot register a validator by type, validator is not a function'); + } + + validators[type] = validator; +}; + +Schema.warning = warning; +Schema.messages = messages; + +/* harmony default export */ __webpack_exports__["default"] = (Schema); +//# sourceMappingURL=index.js.map -exports['default'] = type; +/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./../../process/browser.js */ "./node_modules/process/browser.js"))) /***/ }), @@ -25503,7 +26835,7 @@ module.exports = function (it) { /*! no static exports found */ /***/ (function(module, exports) { -var core = module.exports = { version: '2.6.9' }; +var core = module.exports = { version: '2.6.10' }; if (typeof __e == 'number') __e = core; // eslint-disable-line no-undef @@ -27310,6 +28642,69 @@ for (var i = 0; i < DOMIterables.length; i++) { __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "alignElement", function() { return alignElement; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "alignPoint", function() { return alignPoint; }); +function _typeof(obj) { + if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { + _typeof = function (obj) { + return typeof obj; + }; + } else { + _typeof = function (obj) { + return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; + }; + } + + return _typeof(obj); +} + +function _defineProperty(obj, key, value) { + if (key in obj) { + Object.defineProperty(obj, key, { + value: value, + enumerable: true, + configurable: true, + writable: true + }); + } else { + obj[key] = value; + } + + return obj; +} + +function ownKeys(object, enumerableOnly) { + var keys = Object.keys(object); + + if (Object.getOwnPropertySymbols) { + var symbols = Object.getOwnPropertySymbols(object); + if (enumerableOnly) symbols = symbols.filter(function (sym) { + return Object.getOwnPropertyDescriptor(object, sym).enumerable; + }); + keys.push.apply(keys, symbols); + } + + return keys; +} + +function _objectSpread2(target) { + for (var i = 1; i < arguments.length; i++) { + var source = arguments[i] != null ? arguments[i] : {}; + + if (i % 2) { + ownKeys(source, true).forEach(function (key) { + _defineProperty(target, key, source[key]); + }); + } else if (Object.getOwnPropertyDescriptors) { + Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); + } else { + ownKeys(source).forEach(function (key) { + Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); + }); + } + } + + return target; +} + var vendorPrefix; var jsCssMap = { Webkit: '-webkit-', @@ -27420,7 +28815,6 @@ function setTransformXY(node, xy) { } } -function _typeof(obj) { if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); } var RE_NUM = /[\-+]?(?:\d*\.|)\d+(?:[eE][\-+]?\d+|)/.source; var getComputedStyleX; // https://stackoverflow.com/a/3485654/3040605 @@ -28524,11 +29918,6 @@ function alignElement(el, refNode, align) { alignElement.__getOffsetParent = getOffsetParent; alignElement.__getVisibleRectForElement = getVisibleRectForElement; -function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; } - -function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(source, true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(source).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; } - -function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } /** * `tgtPoint`: { pageX, pageY } or { clientX, clientY }. * If client position provided, will internal convert to page position. @@ -28565,13 +29954,14 @@ function alignPoint(el, tgtPoint, align) { var pointInView = pageX >= 0 && pageX <= scrollX + viewportWidth && pageY >= 0 && pageY <= scrollY + viewportHeight; // Provide default target point var points = [align.points[0], 'cc']; - return doAlign(el, tgtRegion, _objectSpread({}, align, { + return doAlign(el, tgtRegion, _objectSpread2({}, align, { points: points }), pointInView); } /* harmony default export */ __webpack_exports__["default"] = (alignElement); +//# sourceMappingURL=index.js.map /***/ }), @@ -29531,29 +30921,6 @@ var MediaQueryDispatch = __webpack_require__(/*! ./MediaQueryDispatch */ "./node module.exports = new MediaQueryDispatch(); -/***/ }), - -/***/ "./node_modules/intersperse/lib/intersperse.js": -/*!*****************************************************!*\ - !*** ./node_modules/intersperse/lib/intersperse.js ***! - \*****************************************************/ -/*! no static exports found */ -/***/ (function(module, exports) { - -module.exports = intersperse; - -function intersperse(arr, obj) { - if (!arr.length) return []; - if (arr.length === 1) return arr.slice(0); - - var items = [arr[0]]; - for (var i = 1, len = arr.length; i < len; ++i) { - items.push(obj, arr[i]); - } - - return items; -} - /***/ }), /***/ "./node_modules/ismobilejs/dist/isMobile.min.js": @@ -51714,16 +53081,18 @@ __webpack_require__.r(__webpack_exports__); /* harmony import */ var ant_design_vue_lib_menu__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(ant_design_vue_lib_menu__WEBPACK_IMPORTED_MODULE_2__); /* harmony import */ var ant_design_vue_lib_form__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ant-design-vue/lib/form */ "./node_modules/ant-design-vue/lib/form/index.js"); /* harmony import */ var ant_design_vue_lib_form__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(ant_design_vue_lib_form__WEBPACK_IMPORTED_MODULE_3__); -/* harmony import */ var ant_design_vue_lib_select__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ant-design-vue/lib/select */ "./node_modules/ant-design-vue/lib/select/index.js"); -/* harmony import */ var ant_design_vue_lib_select__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(ant_design_vue_lib_select__WEBPACK_IMPORTED_MODULE_4__); -/* harmony import */ var ant_design_vue_lib_breadcrumb__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ant-design-vue/lib/breadcrumb */ "./node_modules/ant-design-vue/lib/breadcrumb/index.js"); -/* harmony import */ var ant_design_vue_lib_breadcrumb__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(ant_design_vue_lib_breadcrumb__WEBPACK_IMPORTED_MODULE_5__); -/* harmony import */ var ant_design_vue_lib_dropdown__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ant-design-vue/lib/dropdown */ "./node_modules/ant-design-vue/lib/dropdown/index.js"); -/* harmony import */ var ant_design_vue_lib_dropdown__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(ant_design_vue_lib_dropdown__WEBPACK_IMPORTED_MODULE_6__); -/* harmony import */ var ant_design_vue_lib_tabs__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ant-design-vue/lib/tabs */ "./node_modules/ant-design-vue/lib/tabs/index.js"); -/* harmony import */ var ant_design_vue_lib_tabs__WEBPACK_IMPORTED_MODULE_7___default = /*#__PURE__*/__webpack_require__.n(ant_design_vue_lib_tabs__WEBPACK_IMPORTED_MODULE_7__); -/* harmony import */ var ant_design_vue_lib_notification__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ant-design-vue/lib/notification */ "./node_modules/ant-design-vue/lib/notification/index.js"); -/* harmony import */ var ant_design_vue_lib_notification__WEBPACK_IMPORTED_MODULE_8___default = /*#__PURE__*/__webpack_require__.n(ant_design_vue_lib_notification__WEBPACK_IMPORTED_MODULE_8__); +/* harmony import */ var ant_design_vue_lib_radio__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ant-design-vue/lib/radio */ "./node_modules/ant-design-vue/lib/radio/index.js"); +/* harmony import */ var ant_design_vue_lib_radio__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(ant_design_vue_lib_radio__WEBPACK_IMPORTED_MODULE_4__); +/* harmony import */ var ant_design_vue_lib_select__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ant-design-vue/lib/select */ "./node_modules/ant-design-vue/lib/select/index.js"); +/* harmony import */ var ant_design_vue_lib_select__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(ant_design_vue_lib_select__WEBPACK_IMPORTED_MODULE_5__); +/* harmony import */ var ant_design_vue_lib_breadcrumb__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ant-design-vue/lib/breadcrumb */ "./node_modules/ant-design-vue/lib/breadcrumb/index.js"); +/* harmony import */ var ant_design_vue_lib_breadcrumb__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(ant_design_vue_lib_breadcrumb__WEBPACK_IMPORTED_MODULE_6__); +/* harmony import */ var ant_design_vue_lib_dropdown__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ant-design-vue/lib/dropdown */ "./node_modules/ant-design-vue/lib/dropdown/index.js"); +/* harmony import */ var ant_design_vue_lib_dropdown__WEBPACK_IMPORTED_MODULE_7___default = /*#__PURE__*/__webpack_require__.n(ant_design_vue_lib_dropdown__WEBPACK_IMPORTED_MODULE_7__); +/* harmony import */ var ant_design_vue_lib_tabs__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ant-design-vue/lib/tabs */ "./node_modules/ant-design-vue/lib/tabs/index.js"); +/* harmony import */ var ant_design_vue_lib_tabs__WEBPACK_IMPORTED_MODULE_8___default = /*#__PURE__*/__webpack_require__.n(ant_design_vue_lib_tabs__WEBPACK_IMPORTED_MODULE_8__); +/* harmony import */ var ant_design_vue_lib_notification__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ant-design-vue/lib/notification */ "./node_modules/ant-design-vue/lib/notification/index.js"); +/* harmony import */ var ant_design_vue_lib_notification__WEBPACK_IMPORTED_MODULE_9___default = /*#__PURE__*/__webpack_require__.n(ant_design_vue_lib_notification__WEBPACK_IMPORTED_MODULE_9__); /** * First we will load all of this project's JavaScript dependencies which * includes Vue and other libraries. It is a great starting point when @@ -51742,19 +53111,23 @@ window.AvoRed = _avored__WEBPACK_IMPORTED_MODULE_0___default.a; + Vue.use(ant_design_vue_lib_layout__WEBPACK_IMPORTED_MODULE_1___default.a); Vue.use(ant_design_vue_lib_menu__WEBPACK_IMPORTED_MODULE_2___default.a); Vue.use(ant_design_vue_lib_form__WEBPACK_IMPORTED_MODULE_3___default.a); -Vue.use(ant_design_vue_lib_select__WEBPACK_IMPORTED_MODULE_4___default.a); -Vue.use(ant_design_vue_lib_breadcrumb__WEBPACK_IMPORTED_MODULE_5___default.a); -Vue.use(ant_design_vue_lib_dropdown__WEBPACK_IMPORTED_MODULE_6___default.a); -Vue.use(ant_design_vue_lib_tabs__WEBPACK_IMPORTED_MODULE_7___default.a); -Vue.prototype.$notification = ant_design_vue_lib_notification__WEBPACK_IMPORTED_MODULE_8___default.a; +Vue.use(ant_design_vue_lib_radio__WEBPACK_IMPORTED_MODULE_4___default.a); +Vue.use(ant_design_vue_lib_select__WEBPACK_IMPORTED_MODULE_5___default.a); +Vue.use(ant_design_vue_lib_breadcrumb__WEBPACK_IMPORTED_MODULE_6___default.a); +Vue.use(ant_design_vue_lib_dropdown__WEBPACK_IMPORTED_MODULE_7___default.a); +Vue.use(ant_design_vue_lib_tabs__WEBPACK_IMPORTED_MODULE_8___default.a); +Vue.prototype.$notification = ant_design_vue_lib_notification__WEBPACK_IMPORTED_MODULE_9___default.a; // Vue.component('a-radio', () => import('ant-design-vue/lib/radio')) +// Vue.component('a-radio-group', () => import('ant-design-vue/lib/radio')) + Vue.component('a-checkbox', function () { - return __webpack_require__.e(/*! import() */ 10).then(__webpack_require__.t.bind(null, /*! ant-design-vue/lib/checkbox */ "./node_modules/ant-design-vue/lib/checkbox/index.js", 7)); + return __webpack_require__.e(/*! import() */ 28).then(__webpack_require__.t.bind(null, /*! ant-design-vue/lib/checkbox */ "./node_modules/ant-design-vue/lib/checkbox/index.js", 7)); }); Vue.component('a-switch', function () { - return __webpack_require__.e(/*! import() */ 18).then(__webpack_require__.t.bind(null, /*! ant-design-vue/lib/switch */ "./node_modules/ant-design-vue/lib/switch/index.js", 7)); + return __webpack_require__.e(/*! import() */ 17).then(__webpack_require__.t.bind(null, /*! ant-design-vue/lib/switch */ "./node_modules/ant-design-vue/lib/switch/index.js", 7)); }); Vue.component('a-input', function () { return __webpack_require__.e(/*! import() */ 1).then(__webpack_require__.t.bind(null, /*! ant-design-vue/lib/input */ "./node_modules/ant-design-vue/lib/input/index.js", 7)); @@ -51763,28 +53136,28 @@ Vue.component('a-textarea', function () { return __webpack_require__.e(/*! import() */ 1).then(__webpack_require__.t.bind(null, /*! ant-design-vue/lib/input */ "./node_modules/ant-design-vue/lib/input/index.js", 7)); }); Vue.component('a-rate', function () { - return __webpack_require__.e(/*! import() */ 11).then(__webpack_require__.t.bind(null, /*! ant-design-vue/lib/rate */ "./node_modules/ant-design-vue/lib/rate/index.js", 7)); + return __webpack_require__.e(/*! import() */ 12).then(__webpack_require__.t.bind(null, /*! ant-design-vue/lib/rate */ "./node_modules/ant-design-vue/lib/rate/index.js", 7)); }); Vue.component('a-input-number', function () { - return __webpack_require__.e(/*! import() */ 9).then(__webpack_require__.t.bind(null, /*! ant-design-vue/lib/input-number */ "./node_modules/ant-design-vue/lib/input-number/index.js", 7)); + return __webpack_require__.e(/*! import() */ 11).then(__webpack_require__.t.bind(null, /*! ant-design-vue/lib/input-number */ "./node_modules/ant-design-vue/lib/input-number/index.js", 7)); }); Vue.component('a-divider', function () { - return __webpack_require__.e(/*! import() */ 28).then(__webpack_require__.t.bind(null, /*! ant-design-vue/lib/divider */ "./node_modules/ant-design-vue/lib/divider/index.js", 7)); + return __webpack_require__.e(/*! import() */ 27).then(__webpack_require__.t.bind(null, /*! ant-design-vue/lib/divider */ "./node_modules/ant-design-vue/lib/divider/index.js", 7)); }); Vue.component('a-avatar', function () { - return __webpack_require__.e(/*! import() */ 2).then(__webpack_require__.t.bind(null, /*! ant-design-vue/lib/avatar */ "./node_modules/ant-design-vue/lib/avatar/index.js", 7)); + return __webpack_require__.e(/*! import() */ 3).then(__webpack_require__.t.bind(null, /*! ant-design-vue/lib/avatar */ "./node_modules/ant-design-vue/lib/avatar/index.js", 7)); }); Vue.component('a-tooltip', function () { return Promise.resolve(/*! import() */).then(__webpack_require__.t.bind(null, /*! ant-design-vue/lib/tooltip */ "./node_modules/ant-design-vue/lib/tooltip/index.js", 7)); }); Vue.component('a-avatar', function () { - return __webpack_require__.e(/*! import() */ 2).then(__webpack_require__.t.bind(null, /*! ant-design-vue/lib/avatar */ "./node_modules/ant-design-vue/lib/avatar/index.js", 7)); + return __webpack_require__.e(/*! import() */ 3).then(__webpack_require__.t.bind(null, /*! ant-design-vue/lib/avatar */ "./node_modules/ant-design-vue/lib/avatar/index.js", 7)); }); Vue.component('a-row', function () { - return __webpack_require__.e(/*! import() */ 27).then(__webpack_require__.t.bind(null, /*! ant-design-vue/lib/row */ "./node_modules/ant-design-vue/lib/row/index.js", 7)); + return __webpack_require__.e(/*! import() */ 26).then(__webpack_require__.t.bind(null, /*! ant-design-vue/lib/row */ "./node_modules/ant-design-vue/lib/row/index.js", 7)); }); Vue.component('a-col', function () { - return __webpack_require__.e(/*! import() */ 26).then(__webpack_require__.t.bind(null, /*! ant-design-vue/lib/col */ "./node_modules/ant-design-vue/lib/col/index.js", 7)); + return __webpack_require__.e(/*! import() */ 25).then(__webpack_require__.t.bind(null, /*! ant-design-vue/lib/col */ "./node_modules/ant-design-vue/lib/col/index.js", 7)); }); Vue.component('a-card', function () { return __webpack_require__.e(/*! import() */ 0).then(__webpack_require__.t.bind(null, /*! ant-design-vue/lib/card */ "./node_modules/ant-design-vue/lib/card/index.js", 7)); @@ -51802,51 +53175,54 @@ Vue.component('a-icon', function () { return Promise.resolve(/*! import() */).then(__webpack_require__.t.bind(null, /*! ant-design-vue/lib/icon */ "./node_modules/ant-design-vue/lib/icon/index.js", 7)); }); Vue.component('a-carousel', function () { - return __webpack_require__.e(/*! import() */ 6).then(__webpack_require__.t.bind(null, /*! ant-design-vue/lib/carousel */ "./node_modules/ant-design-vue/lib/carousel/index.js", 7)); + return __webpack_require__.e(/*! import() */ 8).then(__webpack_require__.t.bind(null, /*! ant-design-vue/lib/carousel */ "./node_modules/ant-design-vue/lib/carousel/index.js", 7)); }); Vue.component('a-upload', function () { - return __webpack_require__.e(/*! import() */ 3).then(__webpack_require__.t.bind(null, /*! ant-design-vue/lib/upload */ "./node_modules/ant-design-vue/lib/upload/index.js", 7)); + return __webpack_require__.e(/*! import() */ 5).then(__webpack_require__.t.bind(null, /*! ant-design-vue/lib/upload */ "./node_modules/ant-design-vue/lib/upload/index.js", 7)); }); Vue.component('a-modal', function () { - return __webpack_require__.e(/*! import() */ 5).then(__webpack_require__.t.bind(null, /*! ant-design-vue/lib/modal */ "./node_modules/ant-design-vue/lib/modal/index.js", 7)); + return __webpack_require__.e(/*! import() */ 7).then(__webpack_require__.t.bind(null, /*! ant-design-vue/lib/modal */ "./node_modules/ant-design-vue/lib/modal/index.js", 7)); +}); +Vue.component('a-table', function () { + return __webpack_require__.e(/*! import() */ 2).then(__webpack_require__.t.bind(null, /*! ant-design-vue/lib/table */ "./node_modules/ant-design-vue/lib/table/index.js", 7)); }); /*************** AVORED CREATED VUE COMPONENTS ***************/ Vue.component('product-card', function () { - return __webpack_require__.e(/*! import() */ 16).then(__webpack_require__.bind(null, /*! ../components/product/ProductCard.vue */ "./resources/components/product/ProductCard.vue")); + return __webpack_require__.e(/*! import() */ 15).then(__webpack_require__.bind(null, /*! ../components/product/ProductCard.vue */ "./resources/components/product/ProductCard.vue")); }); Vue.component('address-save', function () { - return __webpack_require__.e(/*! import() */ 17).then(__webpack_require__.bind(null, /*! ../components/address/AddressSave.vue */ "./resources/components/address/AddressSave.vue")); + return __webpack_require__.e(/*! import() */ 16).then(__webpack_require__.bind(null, /*! ../components/address/AddressSave.vue */ "./resources/components/address/AddressSave.vue")); }); Vue.component('user-order-table', function () { - return __webpack_require__.e(/*! import() */ 21).then(__webpack_require__.bind(null, /*! ../components/account/order/OrderTable.vue */ "./resources/components/account/order/OrderTable.vue")); + return __webpack_require__.e(/*! import() */ 20).then(__webpack_require__.bind(null, /*! ../components/account/order/OrderTable.vue */ "./resources/components/account/order/OrderTable.vue")); }); Vue.component('account-save', function () { - return __webpack_require__.e(/*! import() */ 19).then(__webpack_require__.bind(null, /*! ../components/account/AccountSave.vue */ "./resources/components/account/AccountSave.vue")); + return __webpack_require__.e(/*! import() */ 18).then(__webpack_require__.bind(null, /*! ../components/account/AccountSave.vue */ "./resources/components/account/AccountSave.vue")); }); Vue.component('account-upload', function () { - return __webpack_require__.e(/*! import() */ 20).then(__webpack_require__.bind(null, /*! ../components/account/AccountUpload.vue */ "./resources/components/account/AccountUpload.vue")); + return __webpack_require__.e(/*! import() */ 19).then(__webpack_require__.bind(null, /*! ../components/account/AccountUpload.vue */ "./resources/components/account/AccountUpload.vue")); }); Vue.component('category-page', function () { - return __webpack_require__.e(/*! import() */ 7).then(__webpack_require__.bind(null, /*! ../components/CategoryPage.vue */ "./resources/components/CategoryPage.vue")); + return __webpack_require__.e(/*! import() */ 9).then(__webpack_require__.bind(null, /*! ../components/CategoryPage.vue */ "./resources/components/CategoryPage.vue")); }); Vue.component('product-page', function () { - return __webpack_require__.e(/*! import() */ 15).then(__webpack_require__.bind(null, /*! ../components/ProductPage.vue */ "./resources/components/ProductPage.vue")); + return __webpack_require__.e(/*! import() */ 14).then(__webpack_require__.bind(null, /*! ../components/ProductPage.vue */ "./resources/components/ProductPage.vue")); }); Vue.component('checkout-page', function () { - return Promise.all(/*! import() */[__webpack_require__.e(8), __webpack_require__.e(29)]).then(__webpack_require__.bind(null, /*! ../components/CheckoutPage.vue */ "./resources/components/CheckoutPage.vue")); + return Promise.all(/*! import() */[__webpack_require__.e(10), __webpack_require__.e(29)]).then(__webpack_require__.bind(null, /*! ../components/CheckoutPage.vue */ "./resources/components/CheckoutPage.vue")); }); Vue.component('cart-page', function () { - return Promise.all(/*! import() */[__webpack_require__.e(4), __webpack_require__.e(25)]).then(__webpack_require__.bind(null, /*! ../components/CartPage.vue */ "./resources/components/CartPage.vue")); + return Promise.all(/*! import() */[__webpack_require__.e(6), __webpack_require__.e(24)]).then(__webpack_require__.bind(null, /*! ../components/CartPage.vue */ "./resources/components/CartPage.vue")); }); Vue.component('avored-layout', function () { - return __webpack_require__.e(/*! import() */ 24).then(__webpack_require__.bind(null, /*! ../components/layout/Layout.vue */ "./resources/components/layout/Layout.vue")); + return __webpack_require__.e(/*! import() */ 23).then(__webpack_require__.bind(null, /*! ../components/layout/Layout.vue */ "./resources/components/layout/Layout.vue")); }); Vue.component('login-fields', function () { - return __webpack_require__.e(/*! import() */ 22).then(__webpack_require__.bind(null, /*! ../components/auth/LoginFields.vue */ "./resources/components/auth/LoginFields.vue")); + return __webpack_require__.e(/*! import() */ 21).then(__webpack_require__.bind(null, /*! ../components/auth/LoginFields.vue */ "./resources/components/auth/LoginFields.vue")); }); Vue.component('register-fields', function () { - return __webpack_require__.e(/*! import() */ 23).then(__webpack_require__.bind(null, /*! ../components/auth/RegisterFields.vue */ "./resources/components/auth/RegisterFields.vue")); + return __webpack_require__.e(/*! import() */ 22).then(__webpack_require__.bind(null, /*! ../components/auth/RegisterFields.vue */ "./resources/components/auth/RegisterFields.vue")); }); Vue.component('avored-nav', function () { return __webpack_require__.e(/*! import() */ 13).then(__webpack_require__.bind(null, /*! ../components/AvoRedNav.vue */ "./resources/components/AvoRedNav.vue")); @@ -51895,8 +53271,8 @@ exports = module.exports = AvoRed; /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { -__webpack_require__(/*! /Users/purveshpatel/avored/ecommerce/resources/js/app.js */"./resources/js/app.js"); -module.exports = __webpack_require__(/*! /Users/purveshpatel/avored/ecommerce/resources/less/app.less */"./resources/less/app.less"); +__webpack_require__(/*! /Users/purvesh/code/ecommerce/resources/js/app.js */"./resources/js/app.js"); +module.exports = __webpack_require__(/*! /Users/purvesh/code/ecommerce/resources/less/app.less */"./resources/less/app.less"); /***/ }) diff --git a/public/js/chunk/0.js b/public/js/chunk/0.js index e7381781e..0f71619e9 100644 --- a/public/js/chunk/0.js +++ b/public/js/chunk/0.js @@ -137,6 +137,8 @@ var _BaseMixin = __webpack_require__(/*! ../_util/BaseMixin */ "./node_modules/a var _BaseMixin2 = _interopRequireDefault(_BaseMixin); +var _configProvider = __webpack_require__(/*! ../config-provider */ "./node_modules/ant-design-vue/lib/config-provider/index.js"); + function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } var TabPane = _tabs2['default'].TabPane; @@ -144,7 +146,7 @@ exports['default'] = { name: 'ACard', mixins: [_BaseMixin2['default']], props: { - prefixCls: _vueTypes2['default'].string.def('ant-card'), + prefixCls: _vueTypes2['default'].string, title: _vueTypes2['default'].any, extra: _vueTypes2['default'].any, bordered: _vueTypes2['default'].bool.def(true), @@ -153,11 +155,17 @@ exports['default'] = { loading: _vueTypes2['default'].bool.def(false), hoverable: _vueTypes2['default'].bool.def(false), type: _vueTypes2['default'].string, + size: _vueTypes2['default'].oneOf(['default', 'small']), actions: _vueTypes2['default'].any, tabList: _vueTypes2['default'].array, activeTabKey: _vueTypes2['default'].string, defaultActiveTabKey: _vueTypes2['default'].string }, + inject: { + configProvider: { 'default': function _default() { + return _configProvider.ConfigConsumerProps; + } } + }, data: function data() { this.updateWiderPaddingCalled = false; return { @@ -234,8 +242,7 @@ exports['default'] = { var h = arguments[0]; var _$props = this.$props, - _$props$prefixCls = _$props.prefixCls, - prefixCls = _$props$prefixCls === undefined ? 'ant-card' : _$props$prefixCls, + customizePrefixCls = _$props.prefixCls, _$props$headStyle = _$props.headStyle, headStyle = _$props$headStyle === undefined ? {} : _$props$headStyle, _$props$bodyStyle = _$props.bodyStyle, @@ -243,17 +250,24 @@ exports['default'] = { loading = _$props.loading, _$props$bordered = _$props.bordered, bordered = _$props$bordered === undefined ? true : _$props$bordered, + _$props$size = _$props.size, + size = _$props$size === undefined ? 'default' : _$props$size, type = _$props.type, tabList = _$props.tabList, hoverable = _$props.hoverable, activeTabKey = _$props.activeTabKey, defaultActiveTabKey = _$props.defaultActiveTabKey; + + + var getPrefixCls = this.configProvider.getPrefixCls; + var prefixCls = getPrefixCls('card', customizePrefixCls); + var $slots = this.$slots, $scopedSlots = this.$scopedSlots, $listeners = this.$listeners; - var classString = (_classString = {}, (0, _defineProperty3['default'])(_classString, '' + prefixCls, true), (0, _defineProperty3['default'])(_classString, prefixCls + '-loading', loading), (0, _defineProperty3['default'])(_classString, prefixCls + '-bordered', bordered), (0, _defineProperty3['default'])(_classString, prefixCls + '-hoverable', !!hoverable), (0, _defineProperty3['default'])(_classString, prefixCls + '-wider-padding', this.widerPadding), (0, _defineProperty3['default'])(_classString, prefixCls + '-padding-transition', this.updateWiderPaddingCalled), (0, _defineProperty3['default'])(_classString, prefixCls + '-contain-grid', this.isContainGrid($slots['default'])), (0, _defineProperty3['default'])(_classString, prefixCls + '-contain-tabs', tabList && tabList.length), (0, _defineProperty3['default'])(_classString, prefixCls + '-type-' + type, !!type), _classString); + var classString = (_classString = {}, (0, _defineProperty3['default'])(_classString, '' + prefixCls, true), (0, _defineProperty3['default'])(_classString, prefixCls + '-loading', loading), (0, _defineProperty3['default'])(_classString, prefixCls + '-bordered', bordered), (0, _defineProperty3['default'])(_classString, prefixCls + '-hoverable', !!hoverable), (0, _defineProperty3['default'])(_classString, prefixCls + '-wider-padding', this.widerPadding), (0, _defineProperty3['default'])(_classString, prefixCls + '-padding-transition', this.updateWiderPaddingCalled), (0, _defineProperty3['default'])(_classString, prefixCls + '-contain-grid', this.isContainGrid($slots['default'])), (0, _defineProperty3['default'])(_classString, prefixCls + '-contain-tabs', tabList && tabList.length), (0, _defineProperty3['default'])(_classString, prefixCls + '-' + size, size !== 'default'), (0, _defineProperty3['default'])(_classString, prefixCls + '-type-' + type, !!type), _classString); var loadingBlockStyle = bodyStyle.padding === 0 || bodyStyle.padding === '0px' ? { padding: 24 } : undefined; @@ -350,30 +364,6 @@ exports['default'] = { }, [h('div', { 'class': prefixCls + '-loading-block' })] )] - ), h( - _row2['default'], - { - attrs: { gutter: 8 } - }, - [h( - _col2['default'], - { - attrs: { span: 8 } - }, - [h('div', { 'class': prefixCls + '-loading-block' })] - ), h( - _col2['default'], - { - attrs: { span: 6 } - }, - [h('div', { 'class': prefixCls + '-loading-block' })] - ), h( - _col2['default'], - { - attrs: { span: 8 } - }, - [h('div', { 'class': prefixCls + '-loading-block' })] - )] )] ); @@ -484,18 +474,28 @@ var _vueTypes = __webpack_require__(/*! ../_util/vue-types */ "./node_modules/an var _vueTypes2 = _interopRequireDefault(_vueTypes); +var _configProvider = __webpack_require__(/*! ../config-provider */ "./node_modules/ant-design-vue/lib/config-provider/index.js"); + function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } exports['default'] = { name: 'ACardGrid', __ANT_CARD_GRID: true, props: { - prefixCls: _vueTypes2['default'].string.def('ant-card') + prefixCls: _vueTypes2['default'].string + }, + inject: { + configProvider: { 'default': function _default() { + return _configProvider.ConfigConsumerProps; + } } }, render: function render() { var h = arguments[0]; - var _$props$prefixCls = this.$props.prefixCls, - prefixCls = _$props$prefixCls === undefined ? 'ant-card' : _$props$prefixCls; + var customizePrefixCls = this.$props.prefixCls; + + + var getPrefixCls = this.configProvider.getPrefixCls; + var prefixCls = getPrefixCls('card', customizePrefixCls); var classString = (0, _defineProperty3['default'])({}, prefixCls + '-grid', true); return h( @@ -536,19 +536,29 @@ var _vueTypes2 = _interopRequireDefault(_vueTypes); var _propsUtil = __webpack_require__(/*! ../_util/props-util */ "./node_modules/ant-design-vue/lib/_util/props-util.js"); +var _configProvider = __webpack_require__(/*! ../config-provider */ "./node_modules/ant-design-vue/lib/config-provider/index.js"); + function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } exports['default'] = { name: 'ACardMeta', props: { - prefixCls: _vueTypes2['default'].string.def('ant-card'), + prefixCls: _vueTypes2['default'].string, title: _vueTypes2['default'].any, description: _vueTypes2['default'].any }, + inject: { + configProvider: { 'default': function _default() { + return _configProvider.ConfigConsumerProps; + } } + }, render: function render() { var h = arguments[0]; - var _$props$prefixCls = this.$props.prefixCls, - prefixCls = _$props$prefixCls === undefined ? 'ant-card' : _$props$prefixCls; + var customizePrefixCls = this.$props.prefixCls; + + + var getPrefixCls = this.configProvider.getPrefixCls; + var prefixCls = getPrefixCls('card', customizePrefixCls); var classString = (0, _defineProperty3['default'])({}, prefixCls + '-meta', true); @@ -612,6 +622,10 @@ var _Grid = __webpack_require__(/*! ./Grid */ "./node_modules/ant-design-vue/lib var _Grid2 = _interopRequireDefault(_Grid); +var _base = __webpack_require__(/*! ../base */ "./node_modules/ant-design-vue/lib/base/index.js"); + +var _base2 = _interopRequireDefault(_base); + function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } _Card2['default'].Meta = _Meta2['default']; @@ -619,6 +633,7 @@ _Card2['default'].Grid = _Grid2['default']; /* istanbul ignore next */ _Card2['default'].install = function (Vue) { + Vue.use(_base2['default']); Vue.component(_Card2['default'].name, _Card2['default']); Vue.component(_Meta2['default'].name, _Meta2['default']); Vue.component(_Grid2['default'].name, _Grid2['default']); @@ -644,8 +659,15 @@ Object.defineProperty(exports, "__esModule", { var _grid = __webpack_require__(/*! ../grid */ "./node_modules/ant-design-vue/lib/grid/index.js"); +var _base = __webpack_require__(/*! ../base */ "./node_modules/ant-design-vue/lib/base/index.js"); + +var _base2 = _interopRequireDefault(_base); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } + /* istanbul ignore next */ _grid.Col.install = function (Vue) { + Vue.use(_base2['default']); Vue.component(_grid.Col.name, _grid.Col); }; @@ -699,8 +721,15 @@ Object.defineProperty(exports, "__esModule", { var _grid = __webpack_require__(/*! ../grid */ "./node_modules/ant-design-vue/lib/grid/index.js"); +var _base = __webpack_require__(/*! ../base */ "./node_modules/ant-design-vue/lib/base/index.js"); + +var _base2 = _interopRequireDefault(_base); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } + /* istanbul ignore next */ _grid.Row.install = function (Vue) { + Vue.use(_base2['default']); Vue.component(_grid.Row.name, _grid.Row); }; diff --git a/public/js/chunk/1.js b/public/js/chunk/1.js index 63a8ddadd..4d26f6b08 100644 --- a/public/js/chunk/1.js +++ b/public/js/chunk/1.js @@ -1,119 +1,5 @@ (window["webpackJsonp"] = window["webpackJsonp"] || []).push([[1],{ -/***/ "./node_modules/ant-design-vue/lib/_util/antInputDirective.js": -/*!********************************************************************!*\ - !*** ./node_modules/ant-design-vue/lib/_util/antInputDirective.js ***! - \********************************************************************/ -/*! no static exports found */ -/***/ (function(module, exports, __webpack_require__) { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", { - value: true -}); -exports.antInput = antInput; -/** - * Not type checking this file because flow doesn't like attaching - * properties to Elements. - */ - -var inBrowser = exports.inBrowser = typeof window !== 'undefined'; -var UA = exports.UA = inBrowser && window.navigator.userAgent.toLowerCase(); -var isIE9 = exports.isIE9 = UA && UA.indexOf('msie 9.0') > 0; -function makeMap(str, expectsLowerCase) { - var map = Object.create(null); - var list = str.split(','); - for (var i = 0; i < list.length; i++) { - map[list[i]] = true; - } - return expectsLowerCase ? function (val) { - return map[val.toLowerCase()]; - } : function (val) { - return map[val]; - }; -} -var isTextInputType = makeMap('text,number,password,search,email,tel,url'); - -function onCompositionStart(e) { - e.target.composing = true; -} - -function onCompositionEnd(e) { - // prevent triggering an input event for no reason - if (!e.target.composing) return; - e.target.composing = false; - trigger(e.target, 'input'); -} - -function trigger(el, type) { - var e = document.createEvent('HTMLEvents'); - e.initEvent(type, true, true); - el.dispatchEvent(e); -} - -/* istanbul ignore if */ -if (isIE9) { - // http://www.matts411.com/post/internet-explorer-9-oninput/ - document.addEventListener('selectionchange', function () { - var el = document.activeElement; - if (el && el.vmodel) { - trigger(el, 'input'); - } - }); -} - -function antInput(Vue) { - return Vue.directive('ant-input', { - inserted: function inserted(el, binding, vnode) { - if (vnode.tag === 'textarea' || isTextInputType(el.type)) { - if (!binding.modifiers || !binding.modifiers.lazy) { - el.addEventListener('compositionstart', onCompositionStart); - el.addEventListener('compositionend', onCompositionEnd); - // Safari < 10.2 & UIWebView doesn't fire compositionend when - // switching focus before confirming composition choice - // this also fixes the issue where some browsers e.g. iOS Chrome - // fires "change" instead of "input" on autocomplete. - el.addEventListener('change', onCompositionEnd); - /* istanbul ignore if */ - if (isIE9) { - el.vmodel = true; - } - } - } - } - }); -} - -exports['default'] = { - install: function install(Vue) { - antInput(Vue); - } -}; - -/***/ }), - -/***/ "./node_modules/ant-design-vue/lib/_util/env.js": -/*!******************************************************!*\ - !*** ./node_modules/ant-design-vue/lib/_util/env.js ***! - \******************************************************/ -/*! no static exports found */ -/***/ (function(module, exports, __webpack_require__) { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", { - value: true -}); -var inBrowser = exports.inBrowser = typeof window !== 'undefined'; -var UA = exports.UA = inBrowser && window.navigator.userAgent.toLowerCase(); -var isIE = exports.isIE = UA && /msie|trident/.test(UA); -var isIE9 = exports.isIE9 = UA && UA.indexOf('msie 9.0') > 0; - -/***/ }), - /***/ "./node_modules/ant-design-vue/lib/input/Group.js": /*!********************************************************!*\ !*** ./node_modules/ant-design-vue/lib/input/Group.js ***! @@ -136,17 +22,20 @@ var _defineProperty2 = __webpack_require__(/*! babel-runtime/helpers/definePrope var _defineProperty3 = _interopRequireDefault(_defineProperty2); +var _vueTypes = __webpack_require__(/*! ../_util/vue-types */ "./node_modules/ant-design-vue/lib/_util/vue-types/index.js"); + +var _vueTypes2 = _interopRequireDefault(_vueTypes); + var _propsUtil = __webpack_require__(/*! ../_util/props-util */ "./node_modules/ant-design-vue/lib/_util/props-util.js"); +var _configProvider = __webpack_require__(/*! ../config-provider */ "./node_modules/ant-design-vue/lib/config-provider/index.js"); + function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } exports['default'] = { name: 'AInputGroup', props: { - prefixCls: { - 'default': 'ant-input-group', - type: String - }, + prefixCls: _vueTypes2['default'].string, size: { validator: function validator(value) { return ['small', 'large', 'default'].includes(value); @@ -154,15 +43,23 @@ exports['default'] = { }, compact: Boolean }, + inject: { + configProvider: { 'default': function _default() { + return _configProvider.ConfigConsumerProps; + } } + }, computed: { classes: function classes() { var _ref; - var prefixCls = this.prefixCls, + var customizePrefixCls = this.prefixCls, size = this.size, _compact = this.compact, compact = _compact === undefined ? false : _compact; + var getPrefixCls = this.configProvider.getPrefixCls; + var prefixCls = getPrefixCls('input-group', customizePrefixCls); + return _ref = {}, (0, _defineProperty3['default'])(_ref, '' + prefixCls, true), (0, _defineProperty3['default'])(_ref, prefixCls + '-lg', size === 'large'), (0, _defineProperty3['default'])(_ref, prefixCls + '-sm', size === 'small'), (0, _defineProperty3['default'])(_ref, prefixCls + '-compact', compact), _ref; } }, @@ -227,6 +124,12 @@ var _propsUtil = __webpack_require__(/*! ../_util/props-util */ "./node_modules/ var _env = __webpack_require__(/*! ../_util/env */ "./node_modules/ant-design-vue/lib/_util/env.js"); +var _configProvider = __webpack_require__(/*! ../config-provider */ "./node_modules/ant-design-vue/lib/config-provider/index.js"); + +var _icon = __webpack_require__(/*! ../icon */ "./node_modules/ant-design-vue/lib/icon/index.js"); + +var _icon2 = _interopRequireDefault(_icon); + function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } function noop() {} @@ -238,6 +141,10 @@ function fixControlledValue(value) { return value; } +function hasPrefixSuffix(instance) { + return !!((0, _propsUtil.getComponentFromProp)(instance, 'prefix') || (0, _propsUtil.getComponentFromProp)(instance, 'suffix') || instance.$props.allowClear); +} + exports['default'] = { name: 'AInput', inheritAttrs: false, @@ -246,19 +153,26 @@ exports['default'] = { event: 'change.value' }, props: (0, _extends3['default'])({}, _inputProps2['default']), + inject: { + configProvider: { 'default': function _default() { + return _configProvider.ConfigConsumerProps; + } } + }, data: function data() { var _$props = this.$props, - value = _$props.value, - defaultValue = _$props.defaultValue; + _$props$value = _$props.value, + value = _$props$value === undefined ? '' : _$props$value, + _$props$defaultValue = _$props.defaultValue, + defaultValue = _$props$defaultValue === undefined ? '' : _$props$defaultValue; return { - stateValue: fixControlledValue(!(0, _propsUtil.hasProp)(this, 'value') ? defaultValue : value) + stateValue: !(0, _propsUtil.hasProp)(this, 'value') ? defaultValue : value }; }, watch: { value: function value(val) { - this.stateValue = fixControlledValue(val); + this.stateValue = val; } }, mounted: function mounted() { @@ -278,22 +192,6 @@ exports['default'] = { } this.$emit('keydown', e); }, - handleChange: function handleChange(e) { - // https://github.com/vueComponent/ant-design-vue/issues/92 - if (_env.isIE && !_env.isIE9 && this.stateValue === e.target.value) { - return; - } - if (!(0, _propsUtil.hasProp)(this, 'value')) { - this.stateValue = e.target.value; - } else { - this.$forceUpdate(); - } - if (!e.target.composing) { - this.$emit('change.value', e.target.value); - } - this.$emit('change', e); - this.$emit('input', e); - }, focus: function focus() { this.$refs.input.focus(); }, @@ -303,18 +201,98 @@ exports['default'] = { select: function select() { this.$refs.input.select(); }, - getInputClassName: function getInputClassName() { + getInputClassName: function getInputClassName(prefixCls) { var _ref; var _$props2 = this.$props, - prefixCls = _$props2.prefixCls, size = _$props2.size, disabled = _$props2.disabled; return _ref = {}, (0, _defineProperty3['default'])(_ref, '' + prefixCls, true), (0, _defineProperty3['default'])(_ref, prefixCls + '-sm', size === 'small'), (0, _defineProperty3['default'])(_ref, prefixCls + '-lg', size === 'large'), (0, _defineProperty3['default'])(_ref, prefixCls + '-disabled', disabled), _ref; }, - renderLabeledInput: function renderLabeledInput(children) { - var _className, _classNames; + setValue: function setValue(value, e) { + if (this.stateValue === value) { + return; + } + if (!(0, _propsUtil.hasProp)(this, 'value')) { + this.stateValue = value; + } else { + this.$forceUpdate(); + } + this.$emit('change.value', value); + var event = e; + if (e.type === 'click' && this.$refs.input) { + // click clear icon + event = (0, _extends3['default'])({}, e); + event.target = this.$refs.input; + event.currentTarget = this.$refs.input; + var originalInputValue = this.$refs.input.value; + // change input value cause e.target.value should be '' when clear input + this.$refs.input.value = ''; + this.$emit('change', event); + this.$emit('input', event); + // reset input value + this.$refs.input.value = originalInputValue; + return; + } + this.$emit('change', e); + this.$emit('input', e); + }, + handleReset: function handleReset(e) { + var _this2 = this; + + this.setValue('', e); + this.$nextTick(function () { + _this2.focus(); + }); + }, + handleChange: function handleChange(e) { + var _e$target = e.target, + value = _e$target.value, + composing = _e$target.composing; + + if (composing || this.stateValue === value) return; + this.setValue(value, e); + }, + renderClearIcon: function renderClearIcon(prefixCls) { + var h = this.$createElement; + var _$props3 = this.$props, + allowClear = _$props3.allowClear, + disabled = _$props3.disabled; + var stateValue = this.stateValue; + + if (!allowClear || disabled || stateValue === undefined || stateValue === null || stateValue === '') { + return null; + } + return h(_icon2['default'], { + attrs: { + type: 'close-circle', + theme: 'filled', + + role: 'button' + }, + on: { + 'click': this.handleReset + }, + + 'class': prefixCls + '-clear-icon' }); + }, + renderSuffix: function renderSuffix(prefixCls) { + var h = this.$createElement; + var allowClear = this.$props.allowClear; + + var suffix = (0, _propsUtil.getComponentFromProp)(this, 'suffix'); + if (suffix || allowClear) { + return h( + 'span', + { 'class': prefixCls + '-suffix', key: 'suffix' }, + [this.renderClearIcon(prefixCls), suffix] + ); + } + return null; + }, + renderLabeledInput: function renderLabeledInput(prefixCls, children) { + var _mergedWrapperClassNa, _classNames; var h = this.$createElement; @@ -326,7 +304,7 @@ exports['default'] = { return children; } - var wrapperClassName = props.prefixCls + '-group'; + var wrapperClassName = prefixCls + '-group'; var addonClassName = wrapperClassName + '-addon'; addonBefore = addonBefore ? h( 'span', @@ -340,55 +318,47 @@ exports['default'] = { [addonAfter] ) : null; - var className = (_className = {}, (0, _defineProperty3['default'])(_className, props.prefixCls + '-wrapper', true), (0, _defineProperty3['default'])(_className, wrapperClassName, addonBefore || addonAfter), _className); + var mergedWrapperClassName = (_mergedWrapperClassNa = {}, (0, _defineProperty3['default'])(_mergedWrapperClassNa, prefixCls + '-wrapper', true), (0, _defineProperty3['default'])(_mergedWrapperClassNa, wrapperClassName, addonBefore || addonAfter), _mergedWrapperClassNa); - var groupClassName = (0, _classnames2['default'])(props.prefixCls + '-group-wrapper', (_classNames = {}, (0, _defineProperty3['default'])(_classNames, props.prefixCls + '-group-wrapper-sm', props.size === 'small'), (0, _defineProperty3['default'])(_classNames, props.prefixCls + '-group-wrapper-lg', props.size === 'large'), _classNames)); + var mergedGroupClassName = (0, _classnames2['default'])(prefixCls + '-group-wrapper', (_classNames = {}, (0, _defineProperty3['default'])(_classNames, prefixCls + '-group-wrapper-sm', props.size === 'small'), (0, _defineProperty3['default'])(_classNames, prefixCls + '-group-wrapper-lg', props.size === 'large'), _classNames)); return h( 'span', - { 'class': groupClassName }, + { 'class': mergedGroupClassName }, [h( 'span', - { 'class': className }, + { 'class': mergedWrapperClassName }, [addonBefore, children, addonAfter] )] ); }, - renderLabeledIcon: function renderLabeledIcon(children) { + renderLabeledIcon: function renderLabeledIcon(prefixCls, children) { var _classNames2; var h = this.$createElement; - var _$props3 = this.$props, - prefixCls = _$props3.prefixCls, - size = _$props3.size; + var size = this.$props.size; - var prefix = (0, _propsUtil.getComponentFromProp)(this, 'prefix'); - var suffix = (0, _propsUtil.getComponentFromProp)(this, 'suffix'); - if (!prefix && !suffix) { + var suffix = this.renderSuffix(prefixCls); + if (!hasPrefixSuffix(this)) { return children; } - + var prefix = (0, _propsUtil.getComponentFromProp)(this, 'prefix'); prefix = prefix ? h( 'span', - { 'class': prefixCls + '-prefix' }, + { 'class': prefixCls + '-prefix', key: 'prefix' }, [prefix] ) : null; - suffix = suffix ? h( - 'span', - { 'class': prefixCls + '-suffix' }, - [suffix] - ) : null; var affixWrapperCls = (0, _classnames2['default'])(prefixCls + '-affix-wrapper', (_classNames2 = {}, (0, _defineProperty3['default'])(_classNames2, prefixCls + '-affix-wrapper-sm', size === 'small'), (0, _defineProperty3['default'])(_classNames2, prefixCls + '-affix-wrapper-lg', size === 'large'), _classNames2)); return h( 'span', - { 'class': affixWrapperCls }, + { 'class': affixWrapperCls, key: 'affix' }, [prefix, children, suffix] ); }, - renderInput: function renderInput() { + renderInput: function renderInput(prefixCls) { var h = this.$createElement; - var otherProps = (0, _omit2['default'])(this.$props, ['prefixCls', 'addonBefore', 'addonAfter', 'prefix', 'suffix', 'value', 'defaultValue']); + var otherProps = (0, _omit2['default'])(this.$props, ['prefixCls', 'addonBefore', 'addonAfter', 'prefix', 'suffix', 'allowClear', 'value', 'defaultValue']); var stateValue = this.stateValue, getInputClassName = this.getInputClassName, handleKeyDown = this.handleKeyDown, @@ -396,8 +366,9 @@ exports['default'] = { $listeners = this.$listeners; var inputProps = { + directives: [{ name: 'ant-input' }], domProps: { - value: stateValue + value: fixControlledValue(stateValue) }, attrs: (0, _extends3['default'])({}, otherProps, this.$attrs), on: (0, _extends3['default'])({}, $listeners, { @@ -405,13 +376,11 @@ exports['default'] = { input: handleChange, change: noop }), - 'class': getInputClassName(), - ref: 'input' + 'class': getInputClassName(prefixCls), + ref: 'input', + key: 'ant-input' }; - if ($listeners['change.value']) { - inputProps.directives = [{ name: 'ant-input' }]; - } - return this.renderLabeledIcon(h('input', inputProps)); + return this.renderLabeledIcon(prefixCls, h('input', inputProps)); } }, render: function render() { @@ -424,8 +393,9 @@ exports['default'] = { props: this.$props, attrs: this.$attrs, on: (0, _extends3['default'])({}, $listeners, { - change: this.handleChange, - keydown: this.handleKeyDown + input: this.handleChange, + keydown: this.handleKeyDown, + change: noop }), directives: [{ name: 'ant-input' @@ -433,7 +403,153 @@ exports['default'] = { }; return h(_TextArea2['default'], (0, _babelHelperVueJsxMergeProps2['default'])([textareaProps, { ref: 'input' }])); } - return this.renderLabeledInput(this.renderInput()); + var customizePrefixCls = this.$props.prefixCls; + + var getPrefixCls = this.configProvider.getPrefixCls; + var prefixCls = getPrefixCls('input', customizePrefixCls); + return this.renderLabeledInput(prefixCls, this.renderInput(prefixCls)); + } +}; + +/***/ }), + +/***/ "./node_modules/ant-design-vue/lib/input/Password.js": +/*!***********************************************************!*\ + !*** ./node_modules/ant-design-vue/lib/input/Password.js ***! + \***********************************************************/ +/*! no static exports found */ +/***/ (function(module, exports, __webpack_require__) { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", { + value: true +}); + +var _objectWithoutProperties2 = __webpack_require__(/*! babel-runtime/helpers/objectWithoutProperties */ "./node_modules/babel-runtime/helpers/objectWithoutProperties.js"); + +var _objectWithoutProperties3 = _interopRequireDefault(_objectWithoutProperties2); + +var _defineProperty2 = __webpack_require__(/*! babel-runtime/helpers/defineProperty */ "./node_modules/babel-runtime/helpers/defineProperty.js"); + +var _defineProperty3 = _interopRequireDefault(_defineProperty2); + +var _extends2 = __webpack_require__(/*! babel-runtime/helpers/extends */ "./node_modules/babel-runtime/helpers/extends.js"); + +var _extends3 = _interopRequireDefault(_extends2); + +var _classnames = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js"); + +var _classnames2 = _interopRequireDefault(_classnames); + +var _propsUtil = __webpack_require__(/*! ../_util/props-util */ "./node_modules/ant-design-vue/lib/_util/props-util.js"); + +var _Input = __webpack_require__(/*! ./Input */ "./node_modules/ant-design-vue/lib/input/Input.js"); + +var _Input2 = _interopRequireDefault(_Input); + +var _icon = __webpack_require__(/*! ../icon */ "./node_modules/ant-design-vue/lib/icon/index.js"); + +var _icon2 = _interopRequireDefault(_icon); + +var _inputProps = __webpack_require__(/*! ./inputProps */ "./node_modules/ant-design-vue/lib/input/inputProps.js"); + +var _inputProps2 = _interopRequireDefault(_inputProps); + +var _vueTypes = __webpack_require__(/*! ../_util/vue-types */ "./node_modules/ant-design-vue/lib/_util/vue-types/index.js"); + +var _vueTypes2 = _interopRequireDefault(_vueTypes); + +var _BaseMixin = __webpack_require__(/*! ../_util/BaseMixin */ "./node_modules/ant-design-vue/lib/_util/BaseMixin.js"); + +var _BaseMixin2 = _interopRequireDefault(_BaseMixin); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } + +var ActionMap = { + click: 'click', + hover: 'mouseover' +}; + +exports['default'] = { + name: 'AInputPassword', + mixins: [_BaseMixin2['default']], + model: { + prop: 'value', + event: 'change.value' + }, + props: (0, _extends3['default'])({}, _inputProps2['default'], { + prefixCls: _vueTypes2['default'].string.def('ant-input-password'), + inputPrefixCls: _vueTypes2['default'].string.def('ant-input'), + action: _vueTypes2['default'].string.def('click'), + visibilityToggle: _vueTypes2['default'].bool.def(true) + }), + data: function data() { + return { + visible: false + }; + }, + + methods: { + onChange: function onChange() { + this.setState({ + visible: !this.visible + }); + }, + getIcon: function getIcon() { + var _on; + + var h = this.$createElement; + var _$props = this.$props, + prefixCls = _$props.prefixCls, + action = _$props.action; + + var iconTrigger = ActionMap[action] || ''; + var iconProps = { + props: { + type: this.visible ? 'eye' : 'eye-invisible' + }, + on: (_on = {}, (0, _defineProperty3['default'])(_on, iconTrigger, this.onChange), (0, _defineProperty3['default'])(_on, 'mousedown', function mousedown(e) { + // Prevent focused state lost + // https://github.com/ant-design/ant-design/issues/15173 + e.preventDefault(); + }), _on), + 'class': prefixCls + '-icon', + key: 'passwordIcon' + }; + return h(_icon2['default'], iconProps); + } + }, + render: function render() { + var h = arguments[0]; + + var _getOptionProps = (0, _propsUtil.getOptionProps)(this), + prefixCls = _getOptionProps.prefixCls, + inputPrefixCls = _getOptionProps.inputPrefixCls, + size = _getOptionProps.size, + suffix = _getOptionProps.suffix, + visibilityToggle = _getOptionProps.visibilityToggle, + restProps = (0, _objectWithoutProperties3['default'])(_getOptionProps, ['prefixCls', 'inputPrefixCls', 'size', 'suffix', 'visibilityToggle']); + + var suffixIcon = visibilityToggle && this.getIcon(); + var inputClassName = (0, _classnames2['default'])(prefixCls, (0, _defineProperty3['default'])({}, prefixCls + '-' + size, !!size)); + var inputProps = { + props: (0, _extends3['default'])({}, restProps, { + prefixCls: inputPrefixCls, + size: size, + suffix: suffixIcon, + prefix: (0, _propsUtil.getComponentFromProp)(this, 'prefix'), + addonAfter: (0, _propsUtil.getComponentFromProp)(this, 'addonAfter'), + addonBefore: (0, _propsUtil.getComponentFromProp)(this, 'addonBefore') + }), + attrs: (0, _extends3['default'])({}, this.$attrs, { + type: this.visible ? 'text' : 'password' + }), + 'class': inputClassName, + on: this.$listeners + }; + return h(_Input2['default'], inputProps); } }; @@ -453,10 +569,6 @@ Object.defineProperty(exports, "__esModule", { value: true }); -var _babelHelperVueJsxMergeProps = __webpack_require__(/*! babel-helper-vue-jsx-merge-props */ "./node_modules/babel-helper-vue-jsx-merge-props/index.js"); - -var _babelHelperVueJsxMergeProps2 = _interopRequireDefault(_babelHelperVueJsxMergeProps); - var _defineProperty2 = __webpack_require__(/*! babel-runtime/helpers/defineProperty */ "./node_modules/babel-runtime/helpers/defineProperty.js"); var _defineProperty3 = _interopRequireDefault(_defineProperty2); @@ -497,6 +609,8 @@ var _vueTypes = __webpack_require__(/*! ../_util/vue-types */ "./node_modules/an var _vueTypes2 = _interopRequireDefault(_vueTypes); +var _configProvider = __webpack_require__(/*! ../config-provider */ "./node_modules/ant-design-vue/lib/config-provider/index.js"); + function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } exports['default'] = { @@ -507,16 +621,13 @@ exports['default'] = { event: 'change.value' }, props: (0, _extends3['default'])({}, _inputProps2['default'], { - prefixCls: { - 'default': 'ant-input-search', - type: String - }, - inputPrefixCls: { - 'default': 'ant-input', - type: String - }, enterButton: _vueTypes2['default'].oneOfType([_vueTypes2['default'].bool, _vueTypes2['default'].string, _vueTypes2['default'].object]) }), + inject: { + configProvider: { 'default': function _default() { + return _configProvider.ConfigConsumerProps; + } } + }, methods: { onSearch: function onSearch(e) { this.$emit('search', this.$refs.input.stateValue, e); @@ -528,88 +639,119 @@ exports['default'] = { blur: function blur() { this.$refs.input.blur(); }, - getButtonOrIcon: function getButtonOrIcon() { + renderSuffix: function renderSuffix(prefixCls) { var h = this.$createElement; - var prefixCls = this.prefixCls, - size = this.size, + + var suffix = (0, _propsUtil.getComponentFromProp)(this, 'suffix'); + var enterButton = (0, _propsUtil.getComponentFromProp)(this, 'enterButton'); + if (enterButton) return suffix; + + var node = h(_icon2['default'], { 'class': prefixCls + '-icon', attrs: { type: 'search' }, + key: 'searchIcon', on: { + 'click': this.onSearch + } + }); + + if (suffix) { + // let cloneSuffix = suffix; + // if (isValidElement(cloneSuffix) && !cloneSuffix.key) { + // cloneSuffix = cloneElement(cloneSuffix, { + // key: 'originSuffix', + // }); + // } + return [suffix, node]; + } + + return node; + }, + renderAddonAfter: function renderAddonAfter(prefixCls) { + var h = this.$createElement; + var size = this.size, disabled = this.disabled; var enterButton = (0, _propsUtil.getComponentFromProp)(this, 'enterButton'); + var addonAfter = (0, _propsUtil.getComponentFromProp)(this, 'addonAfter'); + if (!enterButton) return addonAfter; + var btnClassName = prefixCls + '-button'; var enterButtonAsElement = Array.isArray(enterButton) ? enterButton[0] : enterButton; - var node = void 0; - if (!enterButton) { - node = h(_icon2['default'], { 'class': prefixCls + '-icon', attrs: { type: 'search' }, - key: 'searchIcon' }); - } else if (enterButtonAsElement.tag === 'button' || enterButtonAsElement.componentOptions && enterButtonAsElement.componentOptions.Ctor.extendOptions.__ANT_BUTTON) { - node = (0, _vnode.cloneElement)(enterButtonAsElement, { - 'class': prefixCls + '-button', - props: { size: size } + var button = void 0; + if (enterButtonAsElement.tag === 'button' || enterButtonAsElement.componentOptions && enterButtonAsElement.componentOptions.Ctor.extendOptions.__ANT_BUTTON) { + button = (0, _vnode.cloneElement)(enterButtonAsElement, { + 'class': btnClassName, + props: { size: size }, + on: { + click: this.onSearch + } }); } else { - node = h( + button = h( _button2['default'], { - 'class': prefixCls + '-button', + 'class': btnClassName, attrs: { type: 'primary', size: size, disabled: disabled }, - key: 'enterButton' + key: 'enterButton', + on: { + 'click': this.onSearch + } }, [enterButton === true ? h(_icon2['default'], { attrs: { type: 'search' } }) : enterButton] ); } - return (0, _vnode.cloneElement)(node, { - on: { - click: this.onSearch - } - }); + if (addonAfter) { + return [button, addonAfter]; + } + + return button; } }, render: function render() { - var _classNames; - var h = arguments[0]; var _getOptionProps = (0, _propsUtil.getOptionProps)(this), - prefixCls = _getOptionProps.prefixCls, - inputPrefixCls = _getOptionProps.inputPrefixCls, + customizePrefixCls = _getOptionProps.prefixCls, + customizeInputPrefixCls = _getOptionProps.inputPrefixCls, size = _getOptionProps.size, others = (0, _objectWithoutProperties3['default'])(_getOptionProps, ['prefixCls', 'inputPrefixCls', 'size']); - var suffix = (0, _propsUtil.getComponentFromProp)(this, 'suffix'); + var getPrefixCls = this.configProvider.getPrefixCls; + var prefixCls = getPrefixCls('input-search', customizePrefixCls); + var inputPrefixCls = getPrefixCls('input', customizeInputPrefixCls); + var enterButton = (0, _propsUtil.getComponentFromProp)(this, 'enterButton'); - var addonAfter = (0, _propsUtil.getComponentFromProp)(this, 'addonAfter'); var addonBefore = (0, _propsUtil.getComponentFromProp)(this, 'addonBefore'); - var buttonOrIcon = this.getButtonOrIcon(); - var searchSuffix = suffix ? [suffix, buttonOrIcon] : buttonOrIcon; - if (Array.isArray(searchSuffix)) { - searchSuffix = searchSuffix.map(function (item, index) { - if (!(0, _propsUtil.isValidElement)(item) || item.key) { - return item; - } - return (0, _vnode.cloneElement)(item, { key: index }); - }); + var inputClassName = void 0; + if (enterButton) { + var _classNames; + + inputClassName = (0, _classnames2['default'])(prefixCls, (_classNames = {}, (0, _defineProperty3['default'])(_classNames, prefixCls + '-enter-button', !!enterButton), (0, _defineProperty3['default'])(_classNames, prefixCls + '-' + size, !!size), _classNames)); + } else { + inputClassName = prefixCls; } - var inputClassName = (0, _classnames2['default'])(prefixCls, (_classNames = {}, (0, _defineProperty3['default'])(_classNames, prefixCls + '-enter-button', !!enterButton), (0, _defineProperty3['default'])(_classNames, prefixCls + '-' + size, !!size), _classNames)); + var on = (0, _extends3['default'])({}, this.$listeners); delete on.search; var inputProps = { props: (0, _extends3['default'])({}, others, { prefixCls: inputPrefixCls, size: size, - suffix: searchSuffix, - addonAfter: addonAfter, + suffix: this.renderSuffix(prefixCls), + prefix: (0, _propsUtil.getComponentFromProp)(this, 'prefix'), + addonAfter: this.renderAddonAfter(prefixCls), addonBefore: addonBefore }), attrs: this.$attrs, + 'class': inputClassName, + ref: 'input', on: (0, _extends3['default'])({ pressEnter: this.onSearch }, on) }; - return h(_Input2['default'], (0, _babelHelperVueJsxMergeProps2['default'])([inputProps, { 'class': inputClassName, ref: 'input' }])); + return h(_Input2['default'], inputProps); } }; @@ -641,6 +783,10 @@ var _extends2 = __webpack_require__(/*! babel-runtime/helpers/extends */ "./node var _extends3 = _interopRequireDefault(_extends2); +var _classnames = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js"); + +var _classnames2 = _interopRequireDefault(_classnames); + var _omit = __webpack_require__(/*! omit.js */ "./node_modules/omit.js/es/index.js"); var _omit2 = _interopRequireDefault(_omit); @@ -661,6 +807,8 @@ var _propsUtil = __webpack_require__(/*! ../_util/props-util */ "./node_modules/ var _propsUtil2 = _interopRequireDefault(_propsUtil); +var _configProvider = __webpack_require__(/*! ../config-provider */ "./node_modules/ant-design-vue/lib/config-provider/index.js"); + function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } function onNextFrame(cb) { @@ -694,10 +842,17 @@ exports['default'] = { props: (0, _extends3['default'])({}, _inputProps2['default'], { autosize: [Object, Boolean] }), + inject: { + configProvider: { 'default': function _default() { + return _configProvider.ConfigConsumerProps; + } } + }, data: function data() { var _$props = this.$props, - value = _$props.value, - defaultValue = _$props.defaultValue; + _$props$value = _$props.value, + value = _$props$value === undefined ? '' : _$props$value, + _$props$defaultValue = _$props.defaultValue, + defaultValue = _$props$defaultValue === undefined ? '' : _$props$defaultValue; return { stateValue: fixControlledValue(!(0, _propsUtil2['default'])(this, 'value') ? defaultValue : value), @@ -774,30 +929,26 @@ exports['default'] = { if (!autosize || !this.$refs.textArea) { return; } - var minRows = autosize ? autosize.minRows : null; - var maxRows = autosize ? autosize.maxRows : null; + var minRows = autosize.minRows, + maxRows = autosize.maxRows; + var textareaStyles = (0, _calculateNodeHeight2['default'])(this.$refs.textArea, false, minRows, maxRows); this.textareaStyles = textareaStyles; }, - getTextAreaClassName: function getTextAreaClassName() { - var _ref; - - var _$props2 = this.$props, - prefixCls = _$props2.prefixCls, - disabled = _$props2.disabled; - - return _ref = {}, (0, _defineProperty3['default'])(_ref, prefixCls, true), (0, _defineProperty3['default'])(_ref, prefixCls + '-disabled', disabled), _ref; - }, handleTextareaChange: function handleTextareaChange(e) { + var _e$target = e.target, + value = _e$target.value, + composing = _e$target.composing; + + if (composing || this.stateValue === value) return; if (!(0, _propsUtil2['default'])(this, 'value')) { - this.stateValue = e.target.value; + this.stateValue = value; this.resizeTextarea(); } else { this.$forceUpdate(); } - if (!e.target.composing) { - this.$emit('change.value', e.target.value); - } + + this.$emit('change.value', value); this.$emit('change', e); this.$emit('input', e); }, @@ -811,15 +962,22 @@ exports['default'] = { render: function render() { var h = arguments[0]; var stateValue = this.stateValue, - getTextAreaClassName = this.getTextAreaClassName, handleKeyDown = this.handleKeyDown, handleTextareaChange = this.handleTextareaChange, textareaStyles = this.textareaStyles, $attrs = this.$attrs, - $listeners = this.$listeners; + $listeners = this.$listeners, + customizePrefixCls = this.prefixCls, + disabled = this.disabled; var otherProps = (0, _omit2['default'])(this.$props, ['prefixCls', 'autosize', 'type', 'value', 'defaultValue']); + var getPrefixCls = this.configProvider.getPrefixCls; + var prefixCls = getPrefixCls('input', customizePrefixCls); + + var cls = (0, _classnames2['default'])(prefixCls, (0, _defineProperty3['default'])({}, prefixCls + '-disabled', disabled)); + var textareaProps = { + directives: [{ name: 'ant-input' }], attrs: (0, _extends3['default'])({}, otherProps, $attrs), on: (0, _extends3['default'])({}, $listeners, { keydown: handleKeyDown, @@ -827,15 +985,12 @@ exports['default'] = { change: noop }) }; - if ($listeners['change.value']) { - textareaProps.directives = [{ name: 'ant-input' }]; - } return h('textarea', (0, _babelHelperVueJsxMergeProps2['default'])([textareaProps, { domProps: { 'value': stateValue }, - 'class': getTextAreaClassName(), + 'class': cls, style: textareaStyles, ref: 'textArea' }])); @@ -857,6 +1012,7 @@ exports['default'] = { Object.defineProperty(exports, "__esModule", { value: true }); +exports.calculateNodeStyling = calculateNodeStyling; exports['default'] = calculateNodeHeight; // Thanks to https://github.com/andreypopp/react-textarea-autosize/ @@ -866,7 +1022,7 @@ exports['default'] = calculateNodeHeight; var HIDDEN_TEXTAREA_STYLE = '\n min-height:0 !important;\n max-height:none !important;\n height:0 !important;\n visibility:hidden !important;\n overflow:hidden !important;\n position:absolute !important;\n z-index:-1000 !important;\n top:0 !important;\n right:0 !important\n'; -var SIZING_STYLE = ['letter-spacing', 'line-height', 'padding-top', 'padding-bottom', 'font-family', 'font-weight', 'font-size', 'text-rendering', 'text-transform', 'width', 'text-indent', 'padding-left', 'padding-right', 'border-width', 'box-sizing']; +var SIZING_STYLE = ['letter-spacing', 'line-height', 'padding-top', 'padding-bottom', 'font-family', 'font-weight', 'font-size', 'font-variant', 'text-rendering', 'text-transform', 'width', 'text-indent', 'padding-left', 'padding-right', 'border-width', 'box-sizing']; var computedStyleCache = {}; var hiddenTextarea = void 0; @@ -1023,10 +1179,18 @@ var _TextArea = __webpack_require__(/*! ./TextArea */ "./node_modules/ant-design var _TextArea2 = _interopRequireDefault(_TextArea); +var _Password = __webpack_require__(/*! ./Password */ "./node_modules/ant-design-vue/lib/input/Password.js"); + +var _Password2 = _interopRequireDefault(_Password); + var _antInputDirective = __webpack_require__(/*! ../_util/antInputDirective */ "./node_modules/ant-design-vue/lib/_util/antInputDirective.js"); var _antInputDirective2 = _interopRequireDefault(_antInputDirective); +var _base = __webpack_require__(/*! ../base */ "./node_modules/ant-design-vue/lib/base/index.js"); + +var _base2 = _interopRequireDefault(_base); + function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } _vue2['default'].use(_antInputDirective2['default']); @@ -1034,13 +1198,16 @@ _vue2['default'].use(_antInputDirective2['default']); _Input2['default'].Group = _Group2['default']; _Input2['default'].Search = _Search2['default']; _Input2['default'].TextArea = _TextArea2['default']; +_Input2['default'].Password = _Password2['default']; /* istanbul ignore next */ _Input2['default'].install = function (Vue) { + Vue.use(_base2['default']); Vue.component(_Input2['default'].name, _Input2['default']); Vue.component(_Input2['default'].Group.name, _Input2['default'].Group); Vue.component(_Input2['default'].Search.name, _Input2['default'].Search); Vue.component(_Input2['default'].TextArea.name, _Input2['default'].TextArea); + Vue.component(_Input2['default'].Password.name, _Input2['default'].Password); }; exports['default'] = _Input2['default']; @@ -1068,10 +1235,8 @@ var _vueTypes2 = _interopRequireDefault(_vueTypes); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } exports['default'] = { - prefixCls: { - 'default': 'ant-input', - type: String - }, + prefixCls: _vueTypes2['default'].string, + inputPrefixCls: _vueTypes2['default'].string, defaultValue: [String, Number], value: [String, Number], placeholder: [String, Number], @@ -1101,7 +1266,8 @@ exports['default'] = { prefix: _vueTypes2['default'].any, suffix: _vueTypes2['default'].any, spellCheck: Boolean, - autoFocus: Boolean + autoFocus: Boolean, + allowClear: Boolean }; /***/ }) diff --git a/public/js/chunk/10.js b/public/js/chunk/10.js index 2ca34b880..f03c4d027 100644 --- a/public/js/chunk/10.js +++ b/public/js/chunk/10.js @@ -1,584 +1,741 @@ (window["webpackJsonp"] = window["webpackJsonp"] || []).push([[10],{ -/***/ "./node_modules/ant-design-vue/lib/checkbox/Checkbox.js": -/*!**************************************************************!*\ - !*** ./node_modules/ant-design-vue/lib/checkbox/Checkbox.js ***! - \**************************************************************/ +/***/ "./node_modules/css-loader/lib/css-base.js": +/*!*************************************************!*\ + !*** ./node_modules/css-loader/lib/css-base.js ***! + \*************************************************/ /*! no static exports found */ -/***/ (function(module, exports, __webpack_require__) { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", { - value: true -}); - -var _babelHelperVueJsxMergeProps = __webpack_require__(/*! babel-helper-vue-jsx-merge-props */ "./node_modules/babel-helper-vue-jsx-merge-props/index.js"); - -var _babelHelperVueJsxMergeProps2 = _interopRequireDefault(_babelHelperVueJsxMergeProps); - -var _defineProperty2 = __webpack_require__(/*! babel-runtime/helpers/defineProperty */ "./node_modules/babel-runtime/helpers/defineProperty.js"); - -var _defineProperty3 = _interopRequireDefault(_defineProperty2); - -var _extends2 = __webpack_require__(/*! babel-runtime/helpers/extends */ "./node_modules/babel-runtime/helpers/extends.js"); - -var _extends3 = _interopRequireDefault(_extends2); - -var _objectWithoutProperties2 = __webpack_require__(/*! babel-runtime/helpers/objectWithoutProperties */ "./node_modules/babel-runtime/helpers/objectWithoutProperties.js"); - -var _objectWithoutProperties3 = _interopRequireDefault(_objectWithoutProperties2); - -var _vueTypes = __webpack_require__(/*! ../_util/vue-types */ "./node_modules/ant-design-vue/lib/_util/vue-types/index.js"); - -var _vueTypes2 = _interopRequireDefault(_vueTypes); - -var _classnames = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js"); +/***/ (function(module, exports) { + +/* + MIT License http://www.opensource.org/licenses/mit-license.php + Author Tobias Koppers @sokra +*/ +// css base code, injected by the css-loader +module.exports = function(useSourceMap) { + var list = []; + + // return the list of modules as css string + list.toString = function toString() { + return this.map(function (item) { + var content = cssWithMappingToString(item, useSourceMap); + if(item[2]) { + return "@media " + item[2] + "{" + content + "}"; + } else { + return content; + } + }).join(""); + }; + + // import a list of modules into the list + list.i = function(modules, mediaQuery) { + if(typeof modules === "string") + modules = [[null, modules, ""]]; + var alreadyImportedModules = {}; + for(var i = 0; i < this.length; i++) { + var id = this[i][0]; + if(typeof id === "number") + alreadyImportedModules[id] = true; + } + for(i = 0; i < modules.length; i++) { + var item = modules[i]; + // skip already imported module + // this implementation is not 100% perfect for weird media query combinations + // when a module is imported multiple times with different media queries. + // I hope this will never occur (Hey this way we have smaller bundles) + if(typeof item[0] !== "number" || !alreadyImportedModules[item[0]]) { + if(mediaQuery && !item[2]) { + item[2] = mediaQuery; + } else if(mediaQuery) { + item[2] = "(" + item[2] + ") and (" + mediaQuery + ")"; + } + list.push(item); + } + } + }; + return list; +}; -var _classnames2 = _interopRequireDefault(_classnames); +function cssWithMappingToString(item, useSourceMap) { + var content = item[1] || ''; + var cssMapping = item[3]; + if (!cssMapping) { + return content; + } -var _vcCheckbox = __webpack_require__(/*! ../vc-checkbox */ "./node_modules/ant-design-vue/lib/vc-checkbox/index.js"); + if (useSourceMap && typeof btoa === 'function') { + var sourceMapping = toComment(cssMapping); + var sourceURLs = cssMapping.sources.map(function (source) { + return '/*# sourceURL=' + cssMapping.sourceRoot + source + ' */' + }); -var _vcCheckbox2 = _interopRequireDefault(_vcCheckbox); + return [content].concat(sourceURLs).concat([sourceMapping]).join('\n'); + } -var _propsUtil = __webpack_require__(/*! ../_util/props-util */ "./node_modules/ant-design-vue/lib/_util/props-util.js"); + return [content].join('\n'); +} -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } +// Adapted from convert-source-map (MIT) +function toComment(sourceMap) { + // eslint-disable-next-line no-undef + var base64 = btoa(unescape(encodeURIComponent(JSON.stringify(sourceMap)))); + var data = 'sourceMappingURL=data:application/json;charset=utf-8;base64,' + base64; -function noop() {} + return '/*# ' + data + ' */'; +} -exports['default'] = { - name: 'ACheckbox', - inheritAttrs: false, - model: { - prop: 'checked' - }, - props: { - prefixCls: { - 'default': 'ant-checkbox', - type: String - }, - defaultChecked: _vueTypes2['default'].bool, - checked: _vueTypes2['default'].bool, - disabled: _vueTypes2['default'].bool, - isGroup: Boolean, - value: _vueTypes2['default'].any, - name: String, - id: String, - indeterminate: Boolean, - type: _vueTypes2['default'].string.def('checkbox'), - autoFocus: Boolean - }, - inject: { - checkboxGroupContext: { 'default': function _default() { - return null; - } } - }, - methods: { - handleChange: function handleChange(event) { - var targetChecked = event.target.checked; - this.$emit('input', targetChecked); - this.$emit('change', event); - }, - focus: function focus() { - this.$refs.vcCheckbox.focus(); - }, - blur: function blur() { - this.$refs.vcCheckbox.blur(); - } - }, - - render: function render() { - var _this = this, - _classNames; - - var h = arguments[0]; - var checkboxGroup = this.checkboxGroupContext, - $listeners = this.$listeners, - $slots = this.$slots; - - var props = (0, _propsUtil.getOptionProps)(this); - var children = $slots['default']; - var _$listeners$mouseente = $listeners.mouseenter, - mouseenter = _$listeners$mouseente === undefined ? noop : _$listeners$mouseente, - _$listeners$mouseleav = $listeners.mouseleave, - mouseleave = _$listeners$mouseleav === undefined ? noop : _$listeners$mouseleav, - restListeners = (0, _objectWithoutProperties3['default'])($listeners, ['mouseenter', 'mouseleave']); - var prefixCls = props.prefixCls, - indeterminate = props.indeterminate, - restProps = (0, _objectWithoutProperties3['default'])(props, ['prefixCls', 'indeterminate']); - - var checkboxProps = { - props: (0, _extends3['default'])({}, restProps, { prefixCls: prefixCls }), - on: restListeners, - attrs: (0, _propsUtil.getAttrs)(this) - }; - if (checkboxGroup) { - checkboxProps.on.change = function () { - for (var _len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++) { - args[_key] = arguments[_key]; - } - - _this.$emit.apply(_this, ['change'].concat(args)); - checkboxGroup.toggleOption({ label: children, value: props.value }); - }; - checkboxProps.props.checked = checkboxGroup.sValue.indexOf(props.value) !== -1; - checkboxProps.props.disabled = props.disabled || checkboxGroup.disabled; - } else { - checkboxProps.on.change = this.handleChange; - } - var classString = (0, _classnames2['default'])((_classNames = {}, (0, _defineProperty3['default'])(_classNames, prefixCls + '-wrapper', true), (0, _defineProperty3['default'])(_classNames, prefixCls + '-wrapper-checked', checkboxProps.props.checked), (0, _defineProperty3['default'])(_classNames, prefixCls + '-wrapper-disabled', checkboxProps.props.disabled), _classNames)); - var checkboxClass = (0, _classnames2['default'])((0, _defineProperty3['default'])({}, prefixCls + '-indeterminate', indeterminate)); - return h( - 'label', - { 'class': classString, on: { - 'mouseenter': mouseenter, - 'mouseleave': mouseleave - } - }, - [h(_vcCheckbox2['default'], (0, _babelHelperVueJsxMergeProps2['default'])([checkboxProps, { 'class': checkboxClass, ref: 'vcCheckbox' }])), children !== undefined && h('span', [children])] - ); - } -}; /***/ }), -/***/ "./node_modules/ant-design-vue/lib/checkbox/Group.js": -/*!***********************************************************!*\ - !*** ./node_modules/ant-design-vue/lib/checkbox/Group.js ***! - \***********************************************************/ +/***/ "./node_modules/lodash/isNil.js": +/*!**************************************!*\ + !*** ./node_modules/lodash/isNil.js ***! + \**************************************/ /*! no static exports found */ -/***/ (function(module, exports, __webpack_require__) { - -"use strict"; - +/***/ (function(module, exports) { + +/** + * Checks if `value` is `null` or `undefined`. + * + * @static + * @memberOf _ + * @since 4.0.0 + * @category Lang + * @param {*} value The value to check. + * @returns {boolean} Returns `true` if `value` is nullish, else `false`. + * @example + * + * _.isNil(null); + * // => true + * + * _.isNil(void 0); + * // => true + * + * _.isNil(NaN); + * // => false + */ +function isNil(value) { + return value == null; +} + +module.exports = isNil; -Object.defineProperty(exports, "__esModule", { - value: true -}); - -var _toConsumableArray2 = __webpack_require__(/*! babel-runtime/helpers/toConsumableArray */ "./node_modules/babel-runtime/helpers/toConsumableArray.js"); - -var _toConsumableArray3 = _interopRequireDefault(_toConsumableArray2); - -var _extends2 = __webpack_require__(/*! babel-runtime/helpers/extends */ "./node_modules/babel-runtime/helpers/extends.js"); - -var _extends3 = _interopRequireDefault(_extends2); - -var _Checkbox = __webpack_require__(/*! ./Checkbox */ "./node_modules/ant-design-vue/lib/checkbox/Checkbox.js"); - -var _Checkbox2 = _interopRequireDefault(_Checkbox); - -var _propsUtil = __webpack_require__(/*! ../_util/props-util */ "./node_modules/ant-design-vue/lib/_util/props-util.js"); - -var _propsUtil2 = _interopRequireDefault(_propsUtil); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } - -function noop() {} -exports['default'] = { - name: 'ACheckboxGroup', - model: { - prop: 'value' - }, - props: { - prefixCls: { - 'default': 'ant-checkbox', - type: String - }, - defaultValue: { - 'default': undefined, - type: Array - }, - value: { - 'default': undefined, - type: Array - }, - options: { - 'default': function _default() { - return []; - }, - type: Array - }, - disabled: Boolean - }, - provide: function provide() { - return { - checkboxGroupContext: this - }; - }, - data: function data() { - var value = this.value, - defaultValue = this.defaultValue; - - return { - sValue: value || defaultValue || [] - }; - }, - - watch: { - value: function value(val) { - this.sValue = val; - } - }, - methods: { - getOptions: function getOptions() { - var options = this.options, - $scopedSlots = this.$scopedSlots; - - return options.map(function (option) { - if (typeof option === 'string') { - return { - label: option, - value: option - }; - } - var label = option.label; - if (label === undefined && $scopedSlots.label) { - label = $scopedSlots.label(option); - } - return (0, _extends3['default'])({}, option, { label: label }); - }); - }, - toggleOption: function toggleOption(option) { - var optionIndex = this.sValue.indexOf(option.value); - var value = [].concat((0, _toConsumableArray3['default'])(this.sValue)); - if (optionIndex === -1) { - value.push(option.value); - } else { - value.splice(optionIndex, 1); - } - if (!(0, _propsUtil2['default'])(this, 'value')) { - this.sValue = value; - } - this.$emit('input', value); - this.$emit('change', value); - } - }, - render: function render() { - var h = arguments[0]; - var props = this.$props, - state = this.$data, - $slots = this.$slots; - var prefixCls = props.prefixCls, - options = props.options; - - var children = $slots['default']; - var groupPrefixCls = prefixCls + '-group'; - if (options && options.length > 0) { - children = this.getOptions().map(function (option) { - return h( - _Checkbox2['default'], - { - attrs: { - prefixCls: prefixCls, - - disabled: 'disabled' in option ? option.disabled : props.disabled, - value: option.value, - checked: state.sValue.indexOf(option.value) !== -1 - }, - key: option.value.toString(), on: { - 'change': option.onChange || noop - }, - - 'class': groupPrefixCls + '-item' - }, - [option.label] - ); - }); - } - return h( - 'div', - { 'class': groupPrefixCls }, - [children] - ); - } -}; /***/ }), -/***/ "./node_modules/ant-design-vue/lib/checkbox/index.js": -/*!***********************************************************!*\ - !*** ./node_modules/ant-design-vue/lib/checkbox/index.js ***! - \***********************************************************/ +/***/ "./node_modules/style-loader/lib/addStyles.js": +/*!****************************************************!*\ + !*** ./node_modules/style-loader/lib/addStyles.js ***! + \****************************************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { -"use strict"; +/* + MIT License http://www.opensource.org/licenses/mit-license.php + Author Tobias Koppers @sokra +*/ +var stylesInDom = {}; -Object.defineProperty(exports, "__esModule", { - value: true -}); +var memoize = function (fn) { + var memo; -var _Checkbox = __webpack_require__(/*! ./Checkbox */ "./node_modules/ant-design-vue/lib/checkbox/Checkbox.js"); - -var _Checkbox2 = _interopRequireDefault(_Checkbox); - -var _Group = __webpack_require__(/*! ./Group */ "./node_modules/ant-design-vue/lib/checkbox/Group.js"); - -var _Group2 = _interopRequireDefault(_Group); + return function () { + if (typeof memo === "undefined") memo = fn.apply(this, arguments); + return memo; + }; +}; -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } +var isOldIE = memoize(function () { + // Test for IE <= 9 as proposed by Browserhacks + // @see http://browserhacks.com/#hack-e71d8692f65334173fee715c222cb805 + // Tests for existence of standard globals is to allow style-loader + // to operate correctly into non-standard environments + // @see https://github.com/webpack-contrib/style-loader/issues/177 + return window && document && document.all && !window.atob; +}); -_Checkbox2['default'].Group = _Group2['default']; +var getTarget = function (target, parent) { + if (parent){ + return parent.querySelector(target); + } + return document.querySelector(target); +}; -/* istanbul ignore next */ -_Checkbox2['default'].install = function (Vue) { - Vue.component(_Checkbox2['default'].name, _Checkbox2['default']); - Vue.component(_Group2['default'].name, _Group2['default']); +var getElement = (function (fn) { + var memo = {}; + + return function(target, parent) { + // If passing function in options, then use it for resolve "head" element. + // Useful for Shadow Root style i.e + // { + // insertInto: function () { return document.querySelector("#foo").shadowRoot } + // } + if (typeof target === 'function') { + return target(); + } + if (typeof memo[target] === "undefined") { + var styleTarget = getTarget.call(this, target, parent); + // Special case to return head of iframe instead of iframe itself + if (window.HTMLIFrameElement && styleTarget instanceof window.HTMLIFrameElement) { + try { + // This will throw an exception if access to iframe is blocked + // due to cross-origin restrictions + styleTarget = styleTarget.contentDocument.head; + } catch(e) { + styleTarget = null; + } + } + memo[target] = styleTarget; + } + return memo[target] + }; +})(); + +var singleton = null; +var singletonCounter = 0; +var stylesInsertedAtTop = []; + +var fixUrls = __webpack_require__(/*! ./urls */ "./node_modules/style-loader/lib/urls.js"); + +module.exports = function(list, options) { + if (typeof DEBUG !== "undefined" && DEBUG) { + if (typeof document !== "object") throw new Error("The style-loader cannot be used in a non-browser environment"); + } + + options = options || {}; + + options.attrs = typeof options.attrs === "object" ? options.attrs : {}; + + // Force single-tag solution on IE6-9, which has a hard limit on the # of \n ' + domainScript + '\n \n \n
\n \n ' + domainInput + '\n \n
\n \n \n '; - }, - initIframeSrc: function initIframeSrc() { - if (this.domain) { - this.getIframeNode().src = 'javascript:void((function(){\n var d = document;\n d.open();\n d.domain=\'' + this.domain + '\';\n d.write(\'\');\n d.close();\n })())'; - } - }, - initIframe: function initIframe() { - var iframeNode = this.getIframeNode(); - var win = iframeNode.contentWindow; - var doc = void 0; - this.domain = this.domain || ''; - this.initIframeSrc(); - try { - doc = win.document; - } catch (e) { - this.domain = document.domain; - this.initIframeSrc(); - win = iframeNode.contentWindow; - doc = win.document; - } - doc.open('text/html', 'replace'); - doc.write(this.getIframeHTML(this.domain)); - doc.close(); - this.getFormInputNode().onchange = this.onChange; - }, - endUpload: function endUpload() { - if (this.uploading) { - this.file = {}; - // hack avoid batch - this.uploading = false; - this.setState({ - uploading: false - }); - this.initIframe(); - } - }, - startUpload: function startUpload() { - if (!this.uploading) { - this.uploading = true; - this.setState({ - uploading: true - }); - } - }, - updateIframeWH: function updateIframeWH() { - var rootNode = this.$el; - var iframeNode = this.getIframeNode(); - iframeNode.style.height = rootNode.offsetHeight + 'px'; - iframeNode.style.width = rootNode.offsetWidth + 'px'; - }, - abort: function abort(file) { - if (file) { - var uid = file; - if (file && file.uid) { - uid = file.uid; - } - if (uid === this.file.uid) { - this.endUpload(); - } - } else { - this.endUpload(); - } - }, - post: function post(file) { - var _this2 = this; - - var formNode = this.getFormNode(); - var dataSpan = this.getFormDataNode(); - var data = this.$props.data; - - if (typeof data === 'function') { - data = data(file); - } - var inputs = document.createDocumentFragment(); - for (var key in data) { - if (data.hasOwnProperty(key)) { - var input = document.createElement('input'); - input.setAttribute('name', key); - input.value = data[key]; - inputs.appendChild(input); - } - } - dataSpan.appendChild(inputs); - new Promise(function (resolve) { - var action = _this2.action; - - if (typeof action === 'function') { - return resolve(action(file)); - } - resolve(action); - }).then(function (action) { - formNode.setAttribute('action', action); - formNode.submit(); - dataSpan.innerHTML = ''; - _this2.$emit('start', file); - }); - } - }, - mounted: function mounted() { - var _this3 = this; - - this.$nextTick(function () { - _this3.updateIframeWH(); - _this3.initIframe(); - }); - }, - updated: function updated() { - var _this4 = this; - - this.$nextTick(function () { - _this4.updateIframeWH(); - }); - }, - render: function render() { - var _classNames; - - var h = arguments[0]; - var _$props = this.$props, - Tag = _$props.componentTag, - disabled = _$props.disabled, - prefixCls = _$props.prefixCls; - - var iframeStyle = (0, _extends3['default'])({}, IFRAME_STYLE, { - display: this.uploading || disabled ? 'none' : '' - }); - var cls = (0, _classnames2['default'])((_classNames = {}, (0, _defineProperty3['default'])(_classNames, prefixCls, true), (0, _defineProperty3['default'])(_classNames, prefixCls + '-disabled', disabled), _classNames)); - - return h( - Tag, - { - attrs: { className: cls }, - style: { position: 'relative', zIndex: 0 } }, - [h('iframe', { ref: 'iframeRef', on: { - 'load': this.onLoad - }, - style: iframeStyle }), this.$slots['default']] - ); - } -}; - -exports['default'] = IframeUploader; - -/***/ }), - -/***/ "./node_modules/ant-design-vue/lib/vc-upload/src/Upload.js": -/*!*****************************************************************!*\ - !*** ./node_modules/ant-design-vue/lib/vc-upload/src/Upload.js ***! - \*****************************************************************/ -/*! no static exports found */ -/***/ (function(module, exports, __webpack_require__) { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", { - value: true -}); - -var _extends2 = __webpack_require__(/*! babel-runtime/helpers/extends */ "./node_modules/babel-runtime/helpers/extends.js"); - -var _extends3 = _interopRequireDefault(_extends2); - -var _vueTypes = __webpack_require__(/*! ../../_util/vue-types */ "./node_modules/ant-design-vue/lib/_util/vue-types/index.js"); - -var _vueTypes2 = _interopRequireDefault(_vueTypes); - -var _propsUtil = __webpack_require__(/*! ../../_util/props-util */ "./node_modules/ant-design-vue/lib/_util/props-util.js"); - -var _BaseMixin = __webpack_require__(/*! ../../_util/BaseMixin */ "./node_modules/ant-design-vue/lib/_util/BaseMixin.js"); - -var _BaseMixin2 = _interopRequireDefault(_BaseMixin); - -var _AjaxUploader = __webpack_require__(/*! ./AjaxUploader */ "./node_modules/ant-design-vue/lib/vc-upload/src/AjaxUploader.js"); - -var _AjaxUploader2 = _interopRequireDefault(_AjaxUploader); - -var _IframeUploader = __webpack_require__(/*! ./IframeUploader */ "./node_modules/ant-design-vue/lib/vc-upload/src/IframeUploader.js"); - -var _IframeUploader2 = _interopRequireDefault(_IframeUploader); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } - -function empty() {} - -var uploadProps = { - componentTag: _vueTypes2['default'].string, - prefixCls: _vueTypes2['default'].string, - action: _vueTypes2['default'].oneOfType([_vueTypes2['default'].string, _vueTypes2['default'].func]), - name: _vueTypes2['default'].string, - multipart: _vueTypes2['default'].bool, - directory: _vueTypes2['default'].bool, - // onError: PropTypes.func, - // onSuccess: PropTypes.func, - // onProgress: PropTypes.func, - // onStart: PropTypes.func, - data: _vueTypes2['default'].oneOfType([_vueTypes2['default'].object, _vueTypes2['default'].func]), - headers: _vueTypes2['default'].object, - accept: _vueTypes2['default'].string, - multiple: _vueTypes2['default'].bool, - disabled: _vueTypes2['default'].bool, - beforeUpload: _vueTypes2['default'].func, - customRequest: _vueTypes2['default'].func, - // onReady: PropTypes.func, - withCredentials: _vueTypes2['default'].bool, - supportServerRender: _vueTypes2['default'].bool, - openFileDialogOnClick: _vueTypes2['default'].bool -}; -exports['default'] = { - name: 'Upload', - mixins: [_BaseMixin2['default']], - inheritAttrs: false, - props: (0, _propsUtil.initDefaultProps)(uploadProps, { - componentTag: 'span', - prefixCls: 'rc-upload', - data: {}, - headers: {}, - name: 'file', - multipart: false, - // onReady: empty, - // onStart: empty, - // onError: empty, - // onSuccess: empty, - supportServerRender: false, - multiple: false, - beforeUpload: empty, - withCredentials: false, - openFileDialogOnClick: true - }), - data: function data() { - return { - Component: null - }; - }, - mounted: function mounted() { - var _this = this; - - this.$nextTick(function () { - if (_this.supportServerRender) { - /* eslint react/no-did-mount-set-state:0 */ - _this.setState({ - Component: _this.getComponent() - }, function () { - _this.$emit('ready'); - }); - } - }); - }, - - methods: { - getComponent: function getComponent() { - return typeof File !== 'undefined' ? _AjaxUploader2['default'] : _IframeUploader2['default']; - }, - abort: function abort(file) { - this.$refs.uploaderRef.abort(file); - } - }, - - render: function render() { - var h = arguments[0]; - - var componentProps = { - props: (0, _extends3['default'])({}, this.$props), - on: this.$listeners, - ref: 'uploaderRef', - attrs: this.$attrs - }; - if (this.supportServerRender) { - var _ComponentUploader = this.Component; - if (_ComponentUploader) { - return h( - _ComponentUploader, - componentProps, - [this.$slots['default']] - ); - } - return null; - } - var ComponentUploader = this.getComponent(); - return h( - ComponentUploader, - componentProps, - [this.$slots['default']] - ); - } -}; - -/***/ }), - -/***/ "./node_modules/ant-design-vue/lib/vc-upload/src/attr-accept.js": -/*!**********************************************************************!*\ - !*** ./node_modules/ant-design-vue/lib/vc-upload/src/attr-accept.js ***! - \**********************************************************************/ -/*! no static exports found */ -/***/ (function(module, exports, __webpack_require__) { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", { - value: true -}); -function endsWith(str, suffix) { - return str.indexOf(suffix, str.length - suffix.length) !== -1; -} - -exports['default'] = function (file, acceptedFiles) { - if (file && acceptedFiles) { - var acceptedFilesArray = Array.isArray(acceptedFiles) ? acceptedFiles : acceptedFiles.split(','); - var fileName = file.name || ''; - var mimeType = file.type || ''; - var baseMimeType = mimeType.replace(/\/.*$/, ''); - - return acceptedFilesArray.some(function (type) { - var validType = type.trim(); - if (validType.charAt(0) === '.') { - return endsWith(fileName.toLowerCase(), validType.toLowerCase()); - } else if (/\/\*$/.test(validType)) { - // This is something like a image/* mime type - return baseMimeType === validType.replace(/\/.*$/, ''); - } - return mimeType === validType; - }); - } - return true; -}; - -/***/ }), - -/***/ "./node_modules/ant-design-vue/lib/vc-upload/src/index.js": -/*!****************************************************************!*\ - !*** ./node_modules/ant-design-vue/lib/vc-upload/src/index.js ***! - \****************************************************************/ -/*! no static exports found */ -/***/ (function(module, exports, __webpack_require__) { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", { - value: true -}); - -var _Upload = __webpack_require__(/*! ./Upload */ "./node_modules/ant-design-vue/lib/vc-upload/src/Upload.js"); - -var _Upload2 = _interopRequireDefault(_Upload); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } - -exports['default'] = _Upload2['default']; // based on rc-upload 2.4.4 -// export this package's api - -/***/ }), - -/***/ "./node_modules/ant-design-vue/lib/vc-upload/src/request.js": -/*!******************************************************************!*\ - !*** ./node_modules/ant-design-vue/lib/vc-upload/src/request.js ***! - \******************************************************************/ -/*! no static exports found */ -/***/ (function(module, exports, __webpack_require__) { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", { - value: true -}); -exports['default'] = upload; -function getError(option, xhr) { - var msg = 'cannot post ' + option.action + ' ' + xhr.status + '\''; - var err = new Error(msg); - err.status = xhr.status; - err.method = 'post'; - err.url = option.action; - return err; -} - -function getBody(xhr) { - var text = xhr.responseText || xhr.response; - if (!text) { - return text; - } - - try { - return JSON.parse(text); - } catch (e) { - return text; - } -} - -// option { -// onProgress: (event: { percent: number }): void, -// onError: (event: Error, body?: Object): void, -// onSuccess: (body: Object): void, -// data: Object, -// filename: String, -// file: File, -// withCredentials: Boolean, -// action: String, -// headers: Object, -// } -function upload(option) { - var xhr = new window.XMLHttpRequest(); - - if (option.onProgress && xhr.upload) { - xhr.upload.onprogress = function progress(e) { - if (e.total > 0) { - e.percent = e.loaded / e.total * 100; - } - option.onProgress(e); - }; - } - - var formData = new window.FormData(); - - if (option.data) { - Object.keys(option.data).map(function (key) { - formData.append(key, option.data[key]); - }); - } - - formData.append(option.filename, option.file); - - xhr.onerror = function error(e) { - option.onError(e); - }; - - xhr.onload = function onload() { - // allow success when 2xx status - // see https://github.com/react-component/upload/issues/34 - if (xhr.status < 200 || xhr.status >= 300) { - return option.onError(getError(option, xhr), getBody(xhr)); - } - - option.onSuccess(getBody(xhr), xhr); - }; - - xhr.open('post', option.action, true); - - // Has to be after `.open()`. See https://github.com/enyo/dropzone/issues/179 - if (option.withCredentials && 'withCredentials' in xhr) { - xhr.withCredentials = true; - } - - var headers = option.headers || {}; - - // when set headers['X-Requested-With'] = null , can close default XHR header - // see https://github.com/react-component/upload/issues/33 - if (headers['X-Requested-With'] !== null) { - xhr.setRequestHeader('X-Requested-With', 'XMLHttpRequest'); - } - - for (var h in headers) { - if (headers.hasOwnProperty(h) && headers[h] !== null) { - xhr.setRequestHeader(h, headers[h]); - } - } - xhr.send(formData); - - return { - abort: function abort() { - xhr.abort(); - } - }; -} - -/***/ }), - -/***/ "./node_modules/ant-design-vue/lib/vc-upload/src/traverseFileTree.js": -/*!***************************************************************************!*\ - !*** ./node_modules/ant-design-vue/lib/vc-upload/src/traverseFileTree.js ***! - \***************************************************************************/ -/*! no static exports found */ -/***/ (function(module, exports, __webpack_require__) { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", { - value: true -}); -var traverseFileTree = function traverseFileTree(files, callback, isAccepted) { - var _traverseFileTree = function _traverseFileTree(item, path) { - path = path || ''; - if (item.isFile) { - item.file(function (file) { - if (isAccepted(file)) { - callback([file]); - } - }); - } else if (item.isDirectory) { - var dirReader = item.createReader(); - - dirReader.readEntries(function (entries) { - var _iteratorNormalCompletion = true; - var _didIteratorError = false; - var _iteratorError = undefined; - - try { - for (var _iterator = entries[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) { - var entrieItem = _step.value; - - _traverseFileTree(entrieItem, '' + path + item.name + '/'); - } - } catch (err) { - _didIteratorError = true; - _iteratorError = err; - } finally { - try { - if (!_iteratorNormalCompletion && _iterator['return']) { - _iterator['return'](); - } - } finally { - if (_didIteratorError) { - throw _iteratorError; - } - } - } - }); - } - }; - var _iteratorNormalCompletion2 = true; - var _didIteratorError2 = false; - var _iteratorError2 = undefined; - - try { - for (var _iterator2 = files[Symbol.iterator](), _step2; !(_iteratorNormalCompletion2 = (_step2 = _iterator2.next()).done); _iteratorNormalCompletion2 = true) { - var file = _step2.value; - - _traverseFileTree(file.webkitGetAsEntry()); - } - } catch (err) { - _didIteratorError2 = true; - _iteratorError2 = err; - } finally { - try { - if (!_iteratorNormalCompletion2 && _iterator2['return']) { - _iterator2['return'](); - } - } finally { - if (_didIteratorError2) { - throw _iteratorError2; - } - } - } -}; - -exports['default'] = traverseFileTree; - -/***/ }), - -/***/ "./node_modules/ant-design-vue/lib/vc-upload/src/uid.js": -/*!**************************************************************!*\ - !*** ./node_modules/ant-design-vue/lib/vc-upload/src/uid.js ***! - \**************************************************************/ -/*! no static exports found */ -/***/ (function(module, exports, __webpack_require__) { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", { - value: true -}); -exports["default"] = uid; -var now = +new Date(); -var index = 0; - -function uid() { - return "vc-upload-" + now + "-" + ++index; -} - -/***/ }), - -/***/ "./node_modules/lodash/_arrayIncludes.js": -/*!***********************************************!*\ - !*** ./node_modules/lodash/_arrayIncludes.js ***! - \***********************************************/ -/*! no static exports found */ -/***/ (function(module, exports, __webpack_require__) { - -var baseIndexOf = __webpack_require__(/*! ./_baseIndexOf */ "./node_modules/lodash/_baseIndexOf.js"); - -/** - * A specialized version of `_.includes` for arrays without support for - * specifying an index to search from. - * - * @private - * @param {Array} [array] The array to inspect. - * @param {*} target The value to search for. - * @returns {boolean} Returns `true` if `target` is found, else `false`. - */ -function arrayIncludes(array, value) { - var length = array == null ? 0 : array.length; - return !!length && baseIndexOf(array, value, 0) > -1; -} - -module.exports = arrayIncludes; - - -/***/ }), - -/***/ "./node_modules/lodash/_arrayIncludesWith.js": -/*!***************************************************!*\ - !*** ./node_modules/lodash/_arrayIncludesWith.js ***! - \***************************************************/ -/*! no static exports found */ -/***/ (function(module, exports) { - -/** - * This function is like `arrayIncludes` except that it accepts a comparator. - * - * @private - * @param {Array} [array] The array to inspect. - * @param {*} target The value to search for. - * @param {Function} comparator The comparator invoked per element. - * @returns {boolean} Returns `true` if `target` is found, else `false`. - */ -function arrayIncludesWith(array, value, comparator) { - var index = -1, - length = array == null ? 0 : array.length; - - while (++index < length) { - if (comparator(value, array[index])) { - return true; - } - } - return false; -} - -module.exports = arrayIncludesWith; - - -/***/ }), - -/***/ "./node_modules/lodash/_baseIndexOf.js": -/*!*********************************************!*\ - !*** ./node_modules/lodash/_baseIndexOf.js ***! - \*********************************************/ -/*! no static exports found */ -/***/ (function(module, exports, __webpack_require__) { - -var baseFindIndex = __webpack_require__(/*! ./_baseFindIndex */ "./node_modules/lodash/_baseFindIndex.js"), - baseIsNaN = __webpack_require__(/*! ./_baseIsNaN */ "./node_modules/lodash/_baseIsNaN.js"), - strictIndexOf = __webpack_require__(/*! ./_strictIndexOf */ "./node_modules/lodash/_strictIndexOf.js"); - -/** - * The base implementation of `_.indexOf` without `fromIndex` bounds checks. - * - * @private - * @param {Array} array The array to inspect. - * @param {*} value The value to search for. - * @param {number} fromIndex The index to search from. - * @returns {number} Returns the index of the matched value, else `-1`. - */ -function baseIndexOf(array, value, fromIndex) { - return value === value - ? strictIndexOf(array, value, fromIndex) - : baseFindIndex(array, baseIsNaN, fromIndex); -} - -module.exports = baseIndexOf; - - -/***/ }), - -/***/ "./node_modules/lodash/_baseIsNaN.js": -/*!*******************************************!*\ - !*** ./node_modules/lodash/_baseIsNaN.js ***! - \*******************************************/ -/*! no static exports found */ -/***/ (function(module, exports) { - -/** - * The base implementation of `_.isNaN` without support for number objects. - * - * @private - * @param {*} value The value to check. - * @returns {boolean} Returns `true` if `value` is `NaN`, else `false`. - */ -function baseIsNaN(value) { - return value !== value; -} - -module.exports = baseIsNaN; - - -/***/ }), - -/***/ "./node_modules/lodash/_baseUniq.js": -/*!******************************************!*\ - !*** ./node_modules/lodash/_baseUniq.js ***! - \******************************************/ -/*! no static exports found */ -/***/ (function(module, exports, __webpack_require__) { - -var SetCache = __webpack_require__(/*! ./_SetCache */ "./node_modules/lodash/_SetCache.js"), - arrayIncludes = __webpack_require__(/*! ./_arrayIncludes */ "./node_modules/lodash/_arrayIncludes.js"), - arrayIncludesWith = __webpack_require__(/*! ./_arrayIncludesWith */ "./node_modules/lodash/_arrayIncludesWith.js"), - cacheHas = __webpack_require__(/*! ./_cacheHas */ "./node_modules/lodash/_cacheHas.js"), - createSet = __webpack_require__(/*! ./_createSet */ "./node_modules/lodash/_createSet.js"), - setToArray = __webpack_require__(/*! ./_setToArray */ "./node_modules/lodash/_setToArray.js"); - -/** Used as the size to enable large array optimizations. */ -var LARGE_ARRAY_SIZE = 200; - -/** - * The base implementation of `_.uniqBy` without support for iteratee shorthands. - * - * @private - * @param {Array} array The array to inspect. - * @param {Function} [iteratee] The iteratee invoked per element. - * @param {Function} [comparator] The comparator invoked per element. - * @returns {Array} Returns the new duplicate free array. - */ -function baseUniq(array, iteratee, comparator) { - var index = -1, - includes = arrayIncludes, - length = array.length, - isCommon = true, - result = [], - seen = result; - - if (comparator) { - isCommon = false; - includes = arrayIncludesWith; - } - else if (length >= LARGE_ARRAY_SIZE) { - var set = iteratee ? null : createSet(array); - if (set) { - return setToArray(set); - } - isCommon = false; - includes = cacheHas; - seen = new SetCache; - } - else { - seen = iteratee ? [] : result; - } - outer: - while (++index < length) { - var value = array[index], - computed = iteratee ? iteratee(value) : value; - - value = (comparator || value !== 0) ? value : 0; - if (isCommon && computed === computed) { - var seenIndex = seen.length; - while (seenIndex--) { - if (seen[seenIndex] === computed) { - continue outer; - } - } - if (iteratee) { - seen.push(computed); - } - result.push(value); - } - else if (!includes(seen, computed, comparator)) { - if (seen !== result) { - seen.push(computed); - } - result.push(value); - } - } - return result; -} - -module.exports = baseUniq; - - -/***/ }), - -/***/ "./node_modules/lodash/_createSet.js": -/*!*******************************************!*\ - !*** ./node_modules/lodash/_createSet.js ***! - \*******************************************/ -/*! no static exports found */ -/***/ (function(module, exports, __webpack_require__) { - -var Set = __webpack_require__(/*! ./_Set */ "./node_modules/lodash/_Set.js"), - noop = __webpack_require__(/*! ./noop */ "./node_modules/lodash/noop.js"), - setToArray = __webpack_require__(/*! ./_setToArray */ "./node_modules/lodash/_setToArray.js"); - -/** Used as references for various `Number` constants. */ -var INFINITY = 1 / 0; - -/** - * Creates a set object of `values`. - * - * @private - * @param {Array} values The values to add to the set. - * @returns {Object} Returns the new set. - */ -var createSet = !(Set && (1 / setToArray(new Set([,-0]))[1]) == INFINITY) ? noop : function(values) { - return new Set(values); -}; - -module.exports = createSet; - - -/***/ }), - -/***/ "./node_modules/lodash/_strictIndexOf.js": -/*!***********************************************!*\ - !*** ./node_modules/lodash/_strictIndexOf.js ***! - \***********************************************/ -/*! no static exports found */ -/***/ (function(module, exports) { - -/** - * A specialized version of `_.indexOf` which performs strict equality - * comparisons of values, i.e. `===`. - * - * @private - * @param {Array} array The array to inspect. - * @param {*} value The value to search for. - * @param {number} fromIndex The index to search from. - * @returns {number} Returns the index of the matched value, else `-1`. - */ -function strictIndexOf(array, value, fromIndex) { - var index = fromIndex - 1, - length = array.length; - - while (++index < length) { - if (array[index] === value) { - return index; - } - } - return -1; -} - -module.exports = strictIndexOf; - - -/***/ }), - -/***/ "./node_modules/lodash/noop.js": -/*!*************************************!*\ - !*** ./node_modules/lodash/noop.js ***! - \*************************************/ -/*! no static exports found */ -/***/ (function(module, exports) { - -/** - * This method returns `undefined`. - * - * @static - * @memberOf _ - * @since 2.3.0 - * @category Util - * @example - * - * _.times(2, _.noop); - * // => [undefined, undefined] - */ -function noop() { - // No operation performed. -} - -module.exports = noop; - - -/***/ }), - -/***/ "./node_modules/lodash/uniqBy.js": -/*!***************************************!*\ - !*** ./node_modules/lodash/uniqBy.js ***! - \***************************************/ -/*! no static exports found */ -/***/ (function(module, exports, __webpack_require__) { - -var baseIteratee = __webpack_require__(/*! ./_baseIteratee */ "./node_modules/lodash/_baseIteratee.js"), - baseUniq = __webpack_require__(/*! ./_baseUniq */ "./node_modules/lodash/_baseUniq.js"); - -/** - * This method is like `_.uniq` except that it accepts `iteratee` which is - * invoked for each element in `array` to generate the criterion by which - * uniqueness is computed. The order of result values is determined by the - * order they occur in the array. The iteratee is invoked with one argument: - * (value). - * - * @static - * @memberOf _ - * @since 4.0.0 - * @category Array - * @param {Array} array The array to inspect. - * @param {Function} [iteratee=_.identity] The iteratee invoked per element. - * @returns {Array} Returns the new duplicate free array. - * @example - * - * _.uniqBy([2.1, 1.2, 2.3], Math.floor); - * // => [2.1, 1.2] - * - * // The `_.property` iteratee shorthand. - * _.uniqBy([{ 'x': 1 }, { 'x': 2 }, { 'x': 1 }], 'x'); - * // => [{ 'x': 1 }, { 'x': 2 }] - */ -function uniqBy(array, iteratee) { - return (array && array.length) ? baseUniq(array, baseIteratee(iteratee, 2)) : []; -} - -module.exports = uniqBy; - +exports['default'] = _Avatar2['default']; /***/ }) diff --git a/public/js/chunk/4.js b/public/js/chunk/4.js index 7d88fb1a0..8043e1c11 100644 --- a/public/js/chunk/4.js +++ b/public/js/chunk/4.js @@ -1,1874 +1,8422 @@ (window["webpackJsonp"] = window["webpackJsonp"] || []).push([[4],{ -/***/ "./node_modules/axios/index.js": -/*!*************************************!*\ - !*** ./node_modules/axios/index.js ***! - \*************************************/ -/*! no static exports found */ -/***/ (function(module, exports, __webpack_require__) { - -module.exports = __webpack_require__(/*! ./lib/axios */ "./node_modules/axios/lib/axios.js"); - -/***/ }), - -/***/ "./node_modules/axios/lib/adapters/xhr.js": -/*!************************************************!*\ - !*** ./node_modules/axios/lib/adapters/xhr.js ***! - \************************************************/ +/***/ "./node_modules/ant-design-vue/lib/checkbox/Checkbox.js": +/*!**************************************************************!*\ + !*** ./node_modules/ant-design-vue/lib/checkbox/Checkbox.js ***! + \**************************************************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { "use strict"; -var utils = __webpack_require__(/*! ./../utils */ "./node_modules/axios/lib/utils.js"); -var settle = __webpack_require__(/*! ./../core/settle */ "./node_modules/axios/lib/core/settle.js"); -var buildURL = __webpack_require__(/*! ./../helpers/buildURL */ "./node_modules/axios/lib/helpers/buildURL.js"); -var parseHeaders = __webpack_require__(/*! ./../helpers/parseHeaders */ "./node_modules/axios/lib/helpers/parseHeaders.js"); -var isURLSameOrigin = __webpack_require__(/*! ./../helpers/isURLSameOrigin */ "./node_modules/axios/lib/helpers/isURLSameOrigin.js"); -var createError = __webpack_require__(/*! ../core/createError */ "./node_modules/axios/lib/core/createError.js"); - -module.exports = function xhrAdapter(config) { - return new Promise(function dispatchXhrRequest(resolve, reject) { - var requestData = config.data; - var requestHeaders = config.headers; - - if (utils.isFormData(requestData)) { - delete requestHeaders['Content-Type']; // Let the browser set it - } - - var request = new XMLHttpRequest(); - - // HTTP basic authentication - if (config.auth) { - var username = config.auth.username || ''; - var password = config.auth.password || ''; - requestHeaders.Authorization = 'Basic ' + btoa(username + ':' + password); - } +Object.defineProperty(exports, "__esModule", { + value: true +}); - request.open(config.method.toUpperCase(), buildURL(config.url, config.params, config.paramsSerializer), true); +var _babelHelperVueJsxMergeProps = __webpack_require__(/*! babel-helper-vue-jsx-merge-props */ "./node_modules/babel-helper-vue-jsx-merge-props/index.js"); - // Set the request timeout in MS - request.timeout = config.timeout; +var _babelHelperVueJsxMergeProps2 = _interopRequireDefault(_babelHelperVueJsxMergeProps); - // Listen for ready state - request.onreadystatechange = function handleLoad() { - if (!request || request.readyState !== 4) { - return; - } +var _defineProperty2 = __webpack_require__(/*! babel-runtime/helpers/defineProperty */ "./node_modules/babel-runtime/helpers/defineProperty.js"); - // The request errored out and we didn't get a response, this will be - // handled by onerror instead - // With one exception: request that using file: protocol, most browsers - // will return status as 0 even though it's a successful request - if (request.status === 0 && !(request.responseURL && request.responseURL.indexOf('file:') === 0)) { - return; - } +var _defineProperty3 = _interopRequireDefault(_defineProperty2); - // Prepare the response - var responseHeaders = 'getAllResponseHeaders' in request ? parseHeaders(request.getAllResponseHeaders()) : null; - var responseData = !config.responseType || config.responseType === 'text' ? request.responseText : request.response; - var response = { - data: responseData, - status: request.status, - statusText: request.statusText, - headers: responseHeaders, - config: config, - request: request - }; +var _extends2 = __webpack_require__(/*! babel-runtime/helpers/extends */ "./node_modules/babel-runtime/helpers/extends.js"); - settle(resolve, reject, response); +var _extends3 = _interopRequireDefault(_extends2); - // Clean up request - request = null; - }; +var _objectWithoutProperties2 = __webpack_require__(/*! babel-runtime/helpers/objectWithoutProperties */ "./node_modules/babel-runtime/helpers/objectWithoutProperties.js"); - // Handle browser request cancellation (as opposed to a manual cancellation) - request.onabort = function handleAbort() { - if (!request) { - return; - } +var _objectWithoutProperties3 = _interopRequireDefault(_objectWithoutProperties2); - reject(createError('Request aborted', config, 'ECONNABORTED', request)); +var _vueTypes = __webpack_require__(/*! ../_util/vue-types */ "./node_modules/ant-design-vue/lib/_util/vue-types/index.js"); - // Clean up request - request = null; - }; +var _vueTypes2 = _interopRequireDefault(_vueTypes); - // Handle low level network errors - request.onerror = function handleError() { - // Real errors are hidden from us by the browser - // onerror should only fire if it's a network error - reject(createError('Network Error', config, null, request)); +var _classnames = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js"); - // Clean up request - request = null; - }; +var _classnames2 = _interopRequireDefault(_classnames); - // Handle timeout - request.ontimeout = function handleTimeout() { - reject(createError('timeout of ' + config.timeout + 'ms exceeded', config, 'ECONNABORTED', - request)); +var _vcCheckbox = __webpack_require__(/*! ../vc-checkbox */ "./node_modules/ant-design-vue/lib/vc-checkbox/index.js"); - // Clean up request - request = null; - }; +var _vcCheckbox2 = _interopRequireDefault(_vcCheckbox); - // Add xsrf header - // This is only done if running in a standard browser environment. - // Specifically not if we're in a web worker, or react-native. - if (utils.isStandardBrowserEnv()) { - var cookies = __webpack_require__(/*! ./../helpers/cookies */ "./node_modules/axios/lib/helpers/cookies.js"); +var _propsUtil = __webpack_require__(/*! ../_util/props-util */ "./node_modules/ant-design-vue/lib/_util/props-util.js"); - // Add xsrf header - var xsrfValue = (config.withCredentials || isURLSameOrigin(config.url)) && config.xsrfCookieName ? - cookies.read(config.xsrfCookieName) : - undefined; +var _configProvider = __webpack_require__(/*! ../config-provider */ "./node_modules/ant-design-vue/lib/config-provider/index.js"); - if (xsrfValue) { - requestHeaders[config.xsrfHeaderName] = xsrfValue; - } - } +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } - // Add headers to the request - if ('setRequestHeader' in request) { - utils.forEach(requestHeaders, function setRequestHeader(val, key) { - if (typeof requestData === 'undefined' && key.toLowerCase() === 'content-type') { - // Remove Content-Type if data is undefined - delete requestHeaders[key]; - } else { - // Otherwise add header to the request - request.setRequestHeader(key, val); - } - }); - } +function noop() {} - // Add withCredentials to request if needed - if (config.withCredentials) { - request.withCredentials = true; +exports['default'] = { + name: 'ACheckbox', + inheritAttrs: false, + model: { + prop: 'checked' + }, + props: { + prefixCls: _vueTypes2['default'].string, + defaultChecked: _vueTypes2['default'].bool, + checked: _vueTypes2['default'].bool, + disabled: _vueTypes2['default'].bool, + isGroup: _vueTypes2['default'].bool, + value: _vueTypes2['default'].any, + name: _vueTypes2['default'].string, + id: _vueTypes2['default'].string, + indeterminate: _vueTypes2['default'].bool, + type: _vueTypes2['default'].string.def('checkbox'), + autoFocus: _vueTypes2['default'].bool + }, + inject: { + configProvider: { 'default': function _default() { + return _configProvider.ConfigConsumerProps; + } }, + checkboxGroupContext: { 'default': function _default() { + return null; + } } + }, + methods: { + handleChange: function handleChange(event) { + var targetChecked = event.target.checked; + this.$emit('input', targetChecked); + this.$emit('change', event); + }, + focus: function focus() { + this.$refs.vcCheckbox.focus(); + }, + blur: function blur() { + this.$refs.vcCheckbox.blur(); } - - // Add responseType to request if needed - if (config.responseType) { - try { - request.responseType = config.responseType; - } catch (e) { - // Expected DOMException thrown by browsers not compatible XMLHttpRequest Level 2. - // But, this can be suppressed for 'json' type as it can be parsed by default 'transformResponse' function. - if (config.responseType !== 'json') { - throw e; + }, + + render: function render() { + var _this = this, + _classNames; + + var h = arguments[0]; + var checkboxGroup = this.checkboxGroupContext, + $listeners = this.$listeners, + $slots = this.$slots; + + var props = (0, _propsUtil.getOptionProps)(this); + var children = $slots['default']; + var _$listeners$mouseente = $listeners.mouseenter, + mouseenter = _$listeners$mouseente === undefined ? noop : _$listeners$mouseente, + _$listeners$mouseleav = $listeners.mouseleave, + mouseleave = _$listeners$mouseleav === undefined ? noop : _$listeners$mouseleav, + input = $listeners.input, + restListeners = (0, _objectWithoutProperties3['default'])($listeners, ['mouseenter', 'mouseleave', 'input']); + var customizePrefixCls = props.prefixCls, + indeterminate = props.indeterminate, + restProps = (0, _objectWithoutProperties3['default'])(props, ['prefixCls', 'indeterminate']); + + var getPrefixCls = this.configProvider.getPrefixCls; + var prefixCls = getPrefixCls('checkbox', customizePrefixCls); + + var checkboxProps = { + props: (0, _extends3['default'])({}, restProps, { prefixCls: prefixCls }), + on: restListeners, + attrs: (0, _propsUtil.getAttrs)(this) + }; + if (checkboxGroup) { + checkboxProps.on.change = function () { + for (var _len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++) { + args[_key] = arguments[_key]; } - } - } - // Handle progress if needed - if (typeof config.onDownloadProgress === 'function') { - request.addEventListener('progress', config.onDownloadProgress); - } - - // Not all browsers support upload events - if (typeof config.onUploadProgress === 'function' && request.upload) { - request.upload.addEventListener('progress', config.onUploadProgress); + _this.$emit.apply(_this, ['change'].concat(args)); + checkboxGroup.toggleOption({ label: children, value: props.value }); + }; + checkboxProps.props.checked = checkboxGroup.sValue.indexOf(props.value) !== -1; + checkboxProps.props.disabled = props.disabled || checkboxGroup.disabled; + } else { + checkboxProps.on.change = this.handleChange; } - - if (config.cancelToken) { - // Handle cancellation - config.cancelToken.promise.then(function onCanceled(cancel) { - if (!request) { - return; + var classString = (0, _classnames2['default'])((_classNames = {}, (0, _defineProperty3['default'])(_classNames, prefixCls + '-wrapper', true), (0, _defineProperty3['default'])(_classNames, prefixCls + '-wrapper-checked', checkboxProps.props.checked), (0, _defineProperty3['default'])(_classNames, prefixCls + '-wrapper-disabled', checkboxProps.props.disabled), _classNames)); + var checkboxClass = (0, _classnames2['default'])((0, _defineProperty3['default'])({}, prefixCls + '-indeterminate', indeterminate)); + return h( + 'label', + { 'class': classString, on: { + 'mouseenter': mouseenter, + 'mouseleave': mouseleave } - - request.abort(); - reject(cancel); - // Clean up request - request = null; - }); - } - - if (requestData === undefined) { - requestData = null; - } - - // Send the request - request.send(requestData); - }); + }, + [h(_vcCheckbox2['default'], (0, _babelHelperVueJsxMergeProps2['default'])([checkboxProps, { 'class': checkboxClass, ref: 'vcCheckbox' }])), children !== undefined && h('span', [children])] + ); + } }; - /***/ }), -/***/ "./node_modules/axios/lib/axios.js": -/*!*****************************************!*\ - !*** ./node_modules/axios/lib/axios.js ***! - \*****************************************/ +/***/ "./node_modules/ant-design-vue/lib/checkbox/Group.js": +/*!***********************************************************!*\ + !*** ./node_modules/ant-design-vue/lib/checkbox/Group.js ***! + \***********************************************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { "use strict"; -var utils = __webpack_require__(/*! ./utils */ "./node_modules/axios/lib/utils.js"); -var bind = __webpack_require__(/*! ./helpers/bind */ "./node_modules/axios/lib/helpers/bind.js"); -var Axios = __webpack_require__(/*! ./core/Axios */ "./node_modules/axios/lib/core/Axios.js"); -var mergeConfig = __webpack_require__(/*! ./core/mergeConfig */ "./node_modules/axios/lib/core/mergeConfig.js"); -var defaults = __webpack_require__(/*! ./defaults */ "./node_modules/axios/lib/defaults.js"); - -/** - * Create an instance of Axios - * - * @param {Object} defaultConfig The default config for the instance - * @return {Axios} A new instance of Axios - */ -function createInstance(defaultConfig) { - var context = new Axios(defaultConfig); - var instance = bind(Axios.prototype.request, context); - - // Copy axios.prototype to instance - utils.extend(instance, Axios.prototype, context); +Object.defineProperty(exports, "__esModule", { + value: true +}); - // Copy context to instance - utils.extend(instance, context); +var _toConsumableArray2 = __webpack_require__(/*! babel-runtime/helpers/toConsumableArray */ "./node_modules/babel-runtime/helpers/toConsumableArray.js"); - return instance; -} +var _toConsumableArray3 = _interopRequireDefault(_toConsumableArray2); -// Create the default instance to be exported -var axios = createInstance(defaults); +var _extends2 = __webpack_require__(/*! babel-runtime/helpers/extends */ "./node_modules/babel-runtime/helpers/extends.js"); -// Expose Axios class to allow class inheritance -axios.Axios = Axios; +var _extends3 = _interopRequireDefault(_extends2); -// Factory for creating new instances -axios.create = function create(instanceConfig) { - return createInstance(mergeConfig(axios.defaults, instanceConfig)); -}; +var _vueTypes = __webpack_require__(/*! ../_util/vue-types */ "./node_modules/ant-design-vue/lib/_util/vue-types/index.js"); -// Expose Cancel & CancelToken -axios.Cancel = __webpack_require__(/*! ./cancel/Cancel */ "./node_modules/axios/lib/cancel/Cancel.js"); -axios.CancelToken = __webpack_require__(/*! ./cancel/CancelToken */ "./node_modules/axios/lib/cancel/CancelToken.js"); -axios.isCancel = __webpack_require__(/*! ./cancel/isCancel */ "./node_modules/axios/lib/cancel/isCancel.js"); +var _vueTypes2 = _interopRequireDefault(_vueTypes); -// Expose all/spread -axios.all = function all(promises) { - return Promise.all(promises); -}; -axios.spread = __webpack_require__(/*! ./helpers/spread */ "./node_modules/axios/lib/helpers/spread.js"); +var _Checkbox = __webpack_require__(/*! ./Checkbox */ "./node_modules/ant-design-vue/lib/checkbox/Checkbox.js"); -module.exports = axios; +var _Checkbox2 = _interopRequireDefault(_Checkbox); -// Allow use of default import syntax in TypeScript -module.exports.default = axios; +var _propsUtil = __webpack_require__(/*! ../_util/props-util */ "./node_modules/ant-design-vue/lib/_util/props-util.js"); +var _propsUtil2 = _interopRequireDefault(_propsUtil); -/***/ }), +var _configProvider = __webpack_require__(/*! ../config-provider */ "./node_modules/ant-design-vue/lib/config-provider/index.js"); -/***/ "./node_modules/axios/lib/cancel/Cancel.js": -/*!*************************************************!*\ - !*** ./node_modules/axios/lib/cancel/Cancel.js ***! - \*************************************************/ -/*! no static exports found */ -/***/ (function(module, exports, __webpack_require__) { +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } -"use strict"; +function noop() {} +exports['default'] = { + name: 'ACheckboxGroup', + model: { + prop: 'value' + }, + props: { + prefixCls: _vueTypes2['default'].string, + defaultValue: _vueTypes2['default'].array, + value: _vueTypes2['default'].array, + options: _vueTypes2['default'].array.def([]), + disabled: _vueTypes2['default'].bool + }, + provide: function provide() { + return { + checkboxGroupContext: this + }; + }, + inject: { + configProvider: { 'default': function _default() { + return _configProvider.ConfigConsumerProps; + } } + }, + data: function data() { + var value = this.value, + defaultValue = this.defaultValue; -/** - * A `Cancel` is an object that is thrown when an operation is canceled. - * - * @class - * @param {string=} message The message. - */ -function Cancel(message) { - this.message = message; -} + return { + sValue: value || defaultValue || [] + }; + }, -Cancel.prototype.toString = function toString() { - return 'Cancel' + (this.message ? ': ' + this.message : ''); + watch: { + value: function value(val) { + this.sValue = val || []; + } + }, + methods: { + getOptions: function getOptions() { + var options = this.options, + $scopedSlots = this.$scopedSlots; + + return options.map(function (option) { + if (typeof option === 'string') { + return { + label: option, + value: option + }; + } + var label = option.label; + if (label === undefined && $scopedSlots.label) { + label = $scopedSlots.label(option); + } + return (0, _extends3['default'])({}, option, { label: label }); + }); + }, + toggleOption: function toggleOption(option) { + var optionIndex = this.sValue.indexOf(option.value); + var value = [].concat((0, _toConsumableArray3['default'])(this.sValue)); + if (optionIndex === -1) { + value.push(option.value); + } else { + value.splice(optionIndex, 1); + } + if (!(0, _propsUtil2['default'])(this, 'value')) { + this.sValue = value; + } + this.$emit('input', value); + this.$emit('change', value); + } + }, + render: function render() { + var h = arguments[0]; + var props = this.$props, + state = this.$data, + $slots = this.$slots; + var customizePrefixCls = props.prefixCls, + options = props.options; + + var getPrefixCls = this.configProvider.getPrefixCls; + var prefixCls = getPrefixCls('checkbox', customizePrefixCls); + + var children = $slots['default']; + var groupPrefixCls = prefixCls + '-group'; + if (options && options.length > 0) { + children = this.getOptions().map(function (option) { + return h( + _Checkbox2['default'], + { + attrs: { + prefixCls: prefixCls, + + disabled: 'disabled' in option ? option.disabled : props.disabled, + value: option.value, + checked: state.sValue.indexOf(option.value) !== -1 + }, + key: option.value.toString(), on: { + 'change': option.onChange || noop + }, + + 'class': groupPrefixCls + '-item' + }, + [option.label] + ); + }); + } + return h( + 'div', + { 'class': groupPrefixCls }, + [children] + ); + } }; -Cancel.prototype.__CANCEL__ = true; - -module.exports = Cancel; - - /***/ }), -/***/ "./node_modules/axios/lib/cancel/CancelToken.js": -/*!******************************************************!*\ - !*** ./node_modules/axios/lib/cancel/CancelToken.js ***! - \******************************************************/ +/***/ "./node_modules/ant-design-vue/lib/checkbox/index.js": +/*!***********************************************************!*\ + !*** ./node_modules/ant-design-vue/lib/checkbox/index.js ***! + \***********************************************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { "use strict"; -var Cancel = __webpack_require__(/*! ./Cancel */ "./node_modules/axios/lib/cancel/Cancel.js"); +Object.defineProperty(exports, "__esModule", { + value: true +}); -/** - * A `CancelToken` is an object that can be used to request cancellation of an operation. - * - * @class - * @param {Function} executor The executor function. - */ -function CancelToken(executor) { - if (typeof executor !== 'function') { - throw new TypeError('executor must be a function.'); - } +var _Checkbox = __webpack_require__(/*! ./Checkbox */ "./node_modules/ant-design-vue/lib/checkbox/Checkbox.js"); - var resolvePromise; - this.promise = new Promise(function promiseExecutor(resolve) { - resolvePromise = resolve; - }); +var _Checkbox2 = _interopRequireDefault(_Checkbox); - var token = this; - executor(function cancel(message) { - if (token.reason) { - // Cancellation has already been requested - return; - } +var _Group = __webpack_require__(/*! ./Group */ "./node_modules/ant-design-vue/lib/checkbox/Group.js"); - token.reason = new Cancel(message); - resolvePromise(token.reason); - }); -} +var _Group2 = _interopRequireDefault(_Group); -/** - * Throws a `Cancel` if cancellation has been requested. - */ -CancelToken.prototype.throwIfRequested = function throwIfRequested() { - if (this.reason) { - throw this.reason; - } -}; +var _base = __webpack_require__(/*! ../base */ "./node_modules/ant-design-vue/lib/base/index.js"); -/** - * Returns an object that contains a new `CancelToken` and a function that, when called, - * cancels the `CancelToken`. - */ -CancelToken.source = function source() { - var cancel; - var token = new CancelToken(function executor(c) { - cancel = c; - }); - return { - token: token, - cancel: cancel - }; -}; +var _base2 = _interopRequireDefault(_base); -module.exports = CancelToken; +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } +_Checkbox2['default'].Group = _Group2['default']; + +/* istanbul ignore next */ +_Checkbox2['default'].install = function (Vue) { + Vue.use(_base2['default']); + Vue.component(_Checkbox2['default'].name, _Checkbox2['default']); + Vue.component(_Group2['default'].name, _Group2['default']); +}; + +exports['default'] = _Checkbox2['default']; /***/ }), -/***/ "./node_modules/axios/lib/cancel/isCancel.js": -/*!***************************************************!*\ - !*** ./node_modules/axios/lib/cancel/isCancel.js ***! - \***************************************************/ +/***/ "./node_modules/ant-design-vue/lib/pagination/MiniSelect.js": +/*!******************************************************************!*\ + !*** ./node_modules/ant-design-vue/lib/pagination/MiniSelect.js ***! + \******************************************************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { "use strict"; -module.exports = function isCancel(value) { - return !!(value && value.__CANCEL__); -}; +Object.defineProperty(exports, "__esModule", { + value: true +}); + +var _extends2 = __webpack_require__(/*! babel-runtime/helpers/extends */ "./node_modules/babel-runtime/helpers/extends.js"); + +var _extends3 = _interopRequireDefault(_extends2); + +var _select = __webpack_require__(/*! ../select */ "./node_modules/ant-design-vue/lib/select/index.js"); + +var _select2 = _interopRequireDefault(_select); + +var _propsUtil = __webpack_require__(/*! ../_util/props-util */ "./node_modules/ant-design-vue/lib/_util/props-util.js"); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } + +exports['default'] = { + props: (0, _extends3['default'])({}, _select.SelectProps), + Option: _select2['default'].Option, + render: function render() { + var h = arguments[0]; + var selectOptionsProps = (0, _propsUtil.getOptionProps)(this); + var selelctProps = { + props: (0, _extends3['default'])({}, selectOptionsProps, { + size: 'small' + }), + on: this.$listeners + }; + return h( + _select2['default'], + selelctProps, + [(0, _propsUtil.filterEmpty)(this.$slots['default'])] + ); + } +}; /***/ }), -/***/ "./node_modules/axios/lib/core/Axios.js": -/*!**********************************************!*\ - !*** ./node_modules/axios/lib/core/Axios.js ***! - \**********************************************/ +/***/ "./node_modules/ant-design-vue/lib/pagination/Pagination.js": +/*!******************************************************************!*\ + !*** ./node_modules/ant-design-vue/lib/pagination/Pagination.js ***! + \******************************************************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { "use strict"; -var utils = __webpack_require__(/*! ./../utils */ "./node_modules/axios/lib/utils.js"); -var buildURL = __webpack_require__(/*! ../helpers/buildURL */ "./node_modules/axios/lib/helpers/buildURL.js"); -var InterceptorManager = __webpack_require__(/*! ./InterceptorManager */ "./node_modules/axios/lib/core/InterceptorManager.js"); -var dispatchRequest = __webpack_require__(/*! ./dispatchRequest */ "./node_modules/axios/lib/core/dispatchRequest.js"); -var mergeConfig = __webpack_require__(/*! ./mergeConfig */ "./node_modules/axios/lib/core/mergeConfig.js"); +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.PaginationConfig = exports.PaginationProps = undefined; -/** - * Create a new instance of Axios - * - * @param {Object} instanceConfig The default config for the instance - */ -function Axios(instanceConfig) { - this.defaults = instanceConfig; - this.interceptors = { - request: new InterceptorManager(), - response: new InterceptorManager() - }; -} +var _objectWithoutProperties2 = __webpack_require__(/*! babel-runtime/helpers/objectWithoutProperties */ "./node_modules/babel-runtime/helpers/objectWithoutProperties.js"); -/** - * Dispatch a request - * - * @param {Object} config The config specific for this request (merged with this.defaults) - */ -Axios.prototype.request = function request(config) { - /*eslint no-param-reassign:0*/ - // Allow for axios('example/url'[, config]) a la fetch API - if (typeof config === 'string') { - config = arguments[1] || {}; - config.url = arguments[0]; - } else { - config = config || {}; - } +var _objectWithoutProperties3 = _interopRequireDefault(_objectWithoutProperties2); - config = mergeConfig(this.defaults, config); - config.method = config.method ? config.method.toLowerCase() : 'get'; +var _extends2 = __webpack_require__(/*! babel-runtime/helpers/extends */ "./node_modules/babel-runtime/helpers/extends.js"); - // Hook up interceptors middleware - var chain = [dispatchRequest, undefined]; - var promise = Promise.resolve(config); +var _extends3 = _interopRequireDefault(_extends2); - this.interceptors.request.forEach(function unshiftRequestInterceptors(interceptor) { - chain.unshift(interceptor.fulfilled, interceptor.rejected); - }); +var _vueTypes = __webpack_require__(/*! ../_util/vue-types */ "./node_modules/ant-design-vue/lib/_util/vue-types/index.js"); - this.interceptors.response.forEach(function pushResponseInterceptors(interceptor) { - chain.push(interceptor.fulfilled, interceptor.rejected); - }); +var _vueTypes2 = _interopRequireDefault(_vueTypes); - while (chain.length) { - promise = promise.then(chain.shift(), chain.shift()); - } +var _select = __webpack_require__(/*! ../select */ "./node_modules/ant-design-vue/lib/select/index.js"); - return promise; -}; +var _select2 = _interopRequireDefault(_select); -Axios.prototype.getUri = function getUri(config) { - config = mergeConfig(this.defaults, config); - return buildURL(config.url, config.params, config.paramsSerializer).replace(/^\?/, ''); -}; +var _MiniSelect = __webpack_require__(/*! ./MiniSelect */ "./node_modules/ant-design-vue/lib/pagination/MiniSelect.js"); -// Provide aliases for supported request methods -utils.forEach(['delete', 'get', 'head', 'options'], function forEachMethodNoData(method) { - /*eslint func-names:0*/ - Axios.prototype[method] = function(url, config) { - return this.request(utils.merge(config || {}, { - method: method, - url: url - })); - }; -}); +var _MiniSelect2 = _interopRequireDefault(_MiniSelect); -utils.forEach(['post', 'put', 'patch'], function forEachMethodWithData(method) { - /*eslint func-names:0*/ - Axios.prototype[method] = function(url, data, config) { - return this.request(utils.merge(config || {}, { - method: method, - url: url, - data: data - })); - }; -}); +var _LocaleReceiver = __webpack_require__(/*! ../locale-provider/LocaleReceiver */ "./node_modules/ant-design-vue/lib/locale-provider/LocaleReceiver.js"); -module.exports = Axios; +var _LocaleReceiver2 = _interopRequireDefault(_LocaleReceiver); +var _propsUtil = __webpack_require__(/*! ../_util/props-util */ "./node_modules/ant-design-vue/lib/_util/props-util.js"); -/***/ }), +var _vcPagination = __webpack_require__(/*! ../vc-pagination */ "./node_modules/ant-design-vue/lib/vc-pagination/index.js"); -/***/ "./node_modules/axios/lib/core/InterceptorManager.js": -/*!***********************************************************!*\ - !*** ./node_modules/axios/lib/core/InterceptorManager.js ***! - \***********************************************************/ -/*! no static exports found */ -/***/ (function(module, exports, __webpack_require__) { +var _vcPagination2 = _interopRequireDefault(_vcPagination); -"use strict"; +var _en_US = __webpack_require__(/*! ../vc-pagination/locale/en_US */ "./node_modules/ant-design-vue/lib/vc-pagination/locale/en_US.js"); +var _en_US2 = _interopRequireDefault(_en_US); -var utils = __webpack_require__(/*! ./../utils */ "./node_modules/axios/lib/utils.js"); +var _icon = __webpack_require__(/*! ../icon */ "./node_modules/ant-design-vue/lib/icon/index.js"); -function InterceptorManager() { - this.handlers = []; -} +var _icon2 = _interopRequireDefault(_icon); -/** - * Add a new interceptor to the stack - * - * @param {Function} fulfilled The function to handle `then` for a `Promise` - * @param {Function} rejected The function to handle `reject` for a `Promise` - * - * @return {Number} An ID used to remove interceptor later - */ -InterceptorManager.prototype.use = function use(fulfilled, rejected) { - this.handlers.push({ - fulfilled: fulfilled, - rejected: rejected - }); - return this.handlers.length - 1; -}; +var _configProvider = __webpack_require__(/*! ../config-provider */ "./node_modules/ant-design-vue/lib/config-provider/index.js"); -/** - * Remove an interceptor from the stack - * - * @param {Number} id The ID that was returned by `use` - */ -InterceptorManager.prototype.eject = function eject(id) { - if (this.handlers[id]) { - this.handlers[id] = null; - } +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } + +var PaginationProps = exports.PaginationProps = function PaginationProps() { + return { + total: _vueTypes2['default'].number, + defaultCurrent: _vueTypes2['default'].number, + current: _vueTypes2['default'].number, + defaultPageSize: _vueTypes2['default'].number, + pageSize: _vueTypes2['default'].number, + hideOnSinglePage: _vueTypes2['default'].bool, + showSizeChanger: _vueTypes2['default'].bool, + pageSizeOptions: _vueTypes2['default'].arrayOf(_vueTypes2['default'].oneOfType([_vueTypes2['default'].number, _vueTypes2['default'].string])), + buildOptionText: _vueTypes2['default'].func, + showSizeChange: _vueTypes2['default'].func, + showQuickJumper: _vueTypes2['default'].bool, + showTotal: _vueTypes2['default'].any, + size: _vueTypes2['default'].string, + simple: _vueTypes2['default'].bool, + locale: _vueTypes2['default'].object, + prefixCls: _vueTypes2['default'].string, + selectPrefixCls: _vueTypes2['default'].string, + itemRender: _vueTypes2['default'].any, + role: _vueTypes2['default'].string + }; }; -/** - * Iterate over all the registered interceptors - * - * This method is particularly useful for skipping over any - * interceptors that may have become `null` calling `eject`. - * - * @param {Function} fn The function to call for each interceptor - */ -InterceptorManager.prototype.forEach = function forEach(fn) { - utils.forEach(this.handlers, function forEachHandler(h) { - if (h !== null) { - fn(h); - } +var PaginationConfig = exports.PaginationConfig = function PaginationConfig() { + return (0, _extends3['default'])({}, PaginationProps(), { + position: _vueTypes2['default'].oneOf(['top', 'bottom', 'both']) }); }; -module.exports = InterceptorManager; +exports['default'] = { + name: 'APagination', + model: { + prop: 'current', + event: 'change.current' + }, + props: (0, _extends3['default'])({}, PaginationProps()), + inject: { + configProvider: { 'default': function _default() { + return _configProvider.ConfigConsumerProps; + } } + }, + methods: { + getIconsProps: function getIconsProps(prefixCls) { + var h = this.$createElement; + + var prevIcon = h( + 'a', + { 'class': prefixCls + '-item-link' }, + [h(_icon2['default'], { + attrs: { type: 'left' } + })] + ); + var nextIcon = h( + 'a', + { 'class': prefixCls + '-item-link' }, + [h(_icon2['default'], { + attrs: { type: 'right' } + })] + ); + var jumpPrevIcon = h( + 'a', + { 'class': prefixCls + '-item-link' }, + [h( + 'div', + { 'class': prefixCls + '-item-container' }, + [h(_icon2['default'], { 'class': prefixCls + '-item-link-icon', attrs: { type: 'double-left' } + }), h( + 'span', + { 'class': prefixCls + '-item-ellipsis' }, + ['\u2022\u2022\u2022'] + )] + )] + ); + var jumpNextIcon = h( + 'a', + { 'class': prefixCls + '-item-link' }, + [h( + 'div', + { 'class': prefixCls + '-item-container' }, + [h(_icon2['default'], { 'class': prefixCls + '-item-link-icon', attrs: { type: 'double-right' } + }), h( + 'span', + { 'class': prefixCls + '-item-ellipsis' }, + ['\u2022\u2022\u2022'] + )] + )] + ); + return { + prevIcon: prevIcon, + nextIcon: nextIcon, + jumpPrevIcon: jumpPrevIcon, + jumpNextIcon: jumpNextIcon + }; + }, + renderPagination: function renderPagination(contextLocale) { + var h = this.$createElement; + + var _getOptionProps = (0, _propsUtil.getOptionProps)(this), + customizePrefixCls = _getOptionProps.prefixCls, + customizeSelectPrefixCls = _getOptionProps.selectPrefixCls, + buildOptionText = _getOptionProps.buildOptionText, + size = _getOptionProps.size, + customLocale = _getOptionProps.locale, + restProps = (0, _objectWithoutProperties3['default'])(_getOptionProps, ['prefixCls', 'selectPrefixCls', 'buildOptionText', 'size', 'locale']); + + var getPrefixCls = this.configProvider.getPrefixCls; + var prefixCls = getPrefixCls('pagination', customizePrefixCls); + var selectPrefixCls = getPrefixCls('select', customizeSelectPrefixCls); + + var isSmall = size === 'small'; + var paginationProps = { + props: (0, _extends3['default'])({ + prefixCls: prefixCls, + selectPrefixCls: selectPrefixCls + }, restProps, this.getIconsProps(prefixCls), { + selectComponentClass: isSmall ? _MiniSelect2['default'] : _select2['default'], + locale: (0, _extends3['default'])({}, contextLocale, customLocale), + buildOptionText: buildOptionText || this.$scopedSlots.buildOptionText + }), + 'class': { + mini: isSmall + }, + on: this.$listeners + }; + return h(_vcPagination2['default'], paginationProps); + } + }, + render: function render() { + var h = arguments[0]; + + return h(_LocaleReceiver2['default'], { + attrs: { + componentName: 'Pagination', + defaultLocale: _en_US2['default'] + }, + scopedSlots: { 'default': this.renderPagination } + }); + } +}; /***/ }), -/***/ "./node_modules/axios/lib/core/createError.js": -/*!****************************************************!*\ - !*** ./node_modules/axios/lib/core/createError.js ***! - \****************************************************/ +/***/ "./node_modules/ant-design-vue/lib/pagination/index.js": +/*!*************************************************************!*\ + !*** ./node_modules/ant-design-vue/lib/pagination/index.js ***! + \*************************************************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { "use strict"; -var enhanceError = __webpack_require__(/*! ./enhanceError */ "./node_modules/axios/lib/core/enhanceError.js"); +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.PaginationConfig = exports.PaginationProps = undefined; -/** - * Create an Error with the specified message, config, error code, request and response. - * - * @param {string} message The error message. - * @param {Object} config The config. - * @param {string} [code] The error code (for example, 'ECONNABORTED'). - * @param {Object} [request] The request. - * @param {Object} [response] The response. - * @returns {Error} The created error. - */ -module.exports = function createError(message, config, code, request, response) { - var error = new Error(message); - return enhanceError(error, config, code, request, response); +var _Pagination = __webpack_require__(/*! ./Pagination */ "./node_modules/ant-design-vue/lib/pagination/Pagination.js"); + +Object.defineProperty(exports, 'PaginationProps', { + enumerable: true, + get: function get() { + return _Pagination.PaginationProps; + } +}); +Object.defineProperty(exports, 'PaginationConfig', { + enumerable: true, + get: function get() { + return _Pagination.PaginationConfig; + } +}); + +var _Pagination2 = _interopRequireDefault(_Pagination); + +var _base = __webpack_require__(/*! ../base */ "./node_modules/ant-design-vue/lib/base/index.js"); + +var _base2 = _interopRequireDefault(_base); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } + +/* istanbul ignore next */ +_Pagination2['default'].install = function (Vue) { + Vue.use(_base2['default']); + Vue.component(_Pagination2['default'].name, _Pagination2['default']); }; +exports['default'] = _Pagination2['default']; /***/ }), -/***/ "./node_modules/axios/lib/core/dispatchRequest.js": -/*!********************************************************!*\ - !*** ./node_modules/axios/lib/core/dispatchRequest.js ***! - \********************************************************/ +/***/ "./node_modules/ant-design-vue/lib/spin/Spin.js": +/*!******************************************************!*\ + !*** ./node_modules/ant-design-vue/lib/spin/Spin.js ***! + \******************************************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { "use strict"; -var utils = __webpack_require__(/*! ./../utils */ "./node_modules/axios/lib/utils.js"); -var transformData = __webpack_require__(/*! ./transformData */ "./node_modules/axios/lib/core/transformData.js"); -var isCancel = __webpack_require__(/*! ../cancel/isCancel */ "./node_modules/axios/lib/cancel/isCancel.js"); -var defaults = __webpack_require__(/*! ../defaults */ "./node_modules/axios/lib/defaults.js"); -var isAbsoluteURL = __webpack_require__(/*! ./../helpers/isAbsoluteURL */ "./node_modules/axios/lib/helpers/isAbsoluteURL.js"); -var combineURLs = __webpack_require__(/*! ./../helpers/combineURLs */ "./node_modules/axios/lib/helpers/combineURLs.js"); - -/** - * Throws a `Cancel` if cancellation has been requested. - */ -function throwIfCancellationRequested(config) { - if (config.cancelToken) { - config.cancelToken.throwIfRequested(); - } -} +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.SpinProps = exports.SpinSize = undefined; -/** - * Dispatch a request to the server using the configured adapter. - * - * @param {object} config The config that is to be used for the request - * @returns {Promise} The Promise to be fulfilled - */ -module.exports = function dispatchRequest(config) { - throwIfCancellationRequested(config); +var _babelHelperVueJsxMergeProps = __webpack_require__(/*! babel-helper-vue-jsx-merge-props */ "./node_modules/babel-helper-vue-jsx-merge-props/index.js"); - // Support baseURL config - if (config.baseURL && !isAbsoluteURL(config.url)) { - config.url = combineURLs(config.baseURL, config.url); - } +var _babelHelperVueJsxMergeProps2 = _interopRequireDefault(_babelHelperVueJsxMergeProps); - // Ensure headers exist - config.headers = config.headers || {}; +var _defineProperty2 = __webpack_require__(/*! babel-runtime/helpers/defineProperty */ "./node_modules/babel-runtime/helpers/defineProperty.js"); - // Transform request data - config.data = transformData( - config.data, - config.headers, - config.transformRequest - ); +var _defineProperty3 = _interopRequireDefault(_defineProperty2); - // Flatten headers - config.headers = utils.merge( - config.headers.common || {}, - config.headers[config.method] || {}, - config.headers || {} - ); +var _objectWithoutProperties2 = __webpack_require__(/*! babel-runtime/helpers/objectWithoutProperties */ "./node_modules/babel-runtime/helpers/objectWithoutProperties.js"); - utils.forEach( - ['delete', 'get', 'head', 'post', 'put', 'patch', 'common'], - function cleanHeaderConfig(method) { - delete config.headers[method]; - } - ); +var _objectWithoutProperties3 = _interopRequireDefault(_objectWithoutProperties2); - var adapter = config.adapter || defaults.adapter; +exports.setDefaultIndicator = setDefaultIndicator; - return adapter(config).then(function onAdapterResolution(response) { - throwIfCancellationRequested(config); +var _debounce = __webpack_require__(/*! lodash/debounce */ "./node_modules/lodash/debounce.js"); - // Transform response data - response.data = transformData( - response.data, - response.headers, - config.transformResponse - ); +var _debounce2 = _interopRequireDefault(_debounce); - return response; - }, function onAdapterRejection(reason) { - if (!isCancel(reason)) { - throwIfCancellationRequested(config); - - // Transform response data - if (reason && reason.response) { - reason.response.data = transformData( - reason.response.data, - reason.response.headers, - config.transformResponse - ); - } - } +var _vueTypes = __webpack_require__(/*! ../_util/vue-types */ "./node_modules/ant-design-vue/lib/_util/vue-types/index.js"); - return Promise.reject(reason); - }); -}; +var _vueTypes2 = _interopRequireDefault(_vueTypes); +var _BaseMixin = __webpack_require__(/*! ../_util/BaseMixin */ "./node_modules/ant-design-vue/lib/_util/BaseMixin.js"); -/***/ }), +var _BaseMixin2 = _interopRequireDefault(_BaseMixin); -/***/ "./node_modules/axios/lib/core/enhanceError.js": -/*!*****************************************************!*\ - !*** ./node_modules/axios/lib/core/enhanceError.js ***! - \*****************************************************/ -/*! no static exports found */ -/***/ (function(module, exports, __webpack_require__) { +var _propsUtil = __webpack_require__(/*! ../_util/props-util */ "./node_modules/ant-design-vue/lib/_util/props-util.js"); -"use strict"; +var _vnode = __webpack_require__(/*! ../_util/vnode */ "./node_modules/ant-design-vue/lib/_util/vnode.js"); +var _configProvider = __webpack_require__(/*! ../config-provider */ "./node_modules/ant-design-vue/lib/config-provider/index.js"); -/** - * Update an Error with the specified config, error code, and response. - * - * @param {Error} error The error to update. - * @param {Object} config The config. - * @param {string} [code] The error code (for example, 'ECONNABORTED'). - * @param {Object} [request] The request. - * @param {Object} [response] The response. - * @returns {Error} The error. - */ -module.exports = function enhanceError(error, config, code, request, response) { - error.config = config; - if (code) { - error.code = code; - } +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } - error.request = request; - error.response = response; - error.isAxiosError = true; +var SpinSize = exports.SpinSize = _vueTypes2['default'].oneOf(['small', 'default', 'large']); - error.toJSON = function() { - return { - // Standard - message: this.message, - name: this.name, - // Microsoft - description: this.description, - number: this.number, - // Mozilla - fileName: this.fileName, - lineNumber: this.lineNumber, - columnNumber: this.columnNumber, - stack: this.stack, - // Axios - config: this.config, - code: this.code - }; +var SpinProps = exports.SpinProps = function SpinProps() { + return { + prefixCls: _vueTypes2['default'].string, + spinning: _vueTypes2['default'].bool, + size: SpinSize, + wrapperClassName: _vueTypes2['default'].string, + tip: _vueTypes2['default'].string, + delay: _vueTypes2['default'].number, + indicator: _vueTypes2['default'].any }; - return error; }; +// Render indicator +var defaultIndicator = void 0; -/***/ }), +function shouldDelay(spinning, delay) { + return !!spinning && !!delay && !isNaN(Number(delay)); +} -/***/ "./node_modules/axios/lib/core/mergeConfig.js": -/*!****************************************************!*\ - !*** ./node_modules/axios/lib/core/mergeConfig.js ***! - \****************************************************/ -/*! no static exports found */ -/***/ (function(module, exports, __webpack_require__) { +function setDefaultIndicator(content) { + defaultIndicator = typeof content.indicator === 'function' ? content.indicator : function (h) { + return h(content.indicator); + }; +} -"use strict"; +exports['default'] = { + name: 'ASpin', + mixins: [_BaseMixin2['default']], + props: (0, _propsUtil.initDefaultProps)(SpinProps(), { + size: 'default', + spinning: true, + wrapperClassName: '' + }), + inject: { + configProvider: { 'default': function _default() { + return _configProvider.ConfigConsumerProps; + } } + }, + data: function data() { + var spinning = this.spinning, + delay = this.delay; + + var shouldBeDelayed = shouldDelay(spinning, delay); + this.originalUpdateSpinning = this.updateSpinning; + this.debouncifyUpdateSpinning(this.$props); + return { + sSpinning: spinning && !shouldBeDelayed + }; + }, + mounted: function mounted() { + this.updateSpinning(); + }, + updated: function updated() { + var _this = this; + + this.$nextTick(function () { + _this.debouncifyUpdateSpinning(); + _this.updateSpinning(); + }); + }, + beforeDestroy: function beforeDestroy() { + if (this.updateSpinning && this.updateSpinning.cancel) { + this.updateSpinning.cancel(); + } + }, + methods: { + debouncifyUpdateSpinning: function debouncifyUpdateSpinning(props) { + var _ref = props || this.$props, + delay = _ref.delay; -var utils = __webpack_require__(/*! ../utils */ "./node_modules/axios/lib/utils.js"); + if (delay) { + this.updateSpinning = (0, _debounce2['default'])(this.originalUpdateSpinning, delay); + } + }, + updateSpinning: function updateSpinning() { + var spinning = this.spinning, + sSpinning = this.sSpinning; -/** - * Config-specific merge-function which creates a new config-object - * by merging two configuration objects together. - * - * @param {Object} config1 - * @param {Object} config2 - * @returns {Object} New object resulting from merging config2 to config1 - */ -module.exports = function mergeConfig(config1, config2) { - // eslint-disable-next-line no-param-reassign - config2 = config2 || {}; - var config = {}; + if (sSpinning !== spinning) { + this.setState({ sSpinning: spinning }); + } + }, + getChildren: function getChildren() { + if (this.$slots && this.$slots['default']) { + return (0, _propsUtil.filterEmpty)(this.$slots['default']); + } + return null; + }, + renderIndicator: function renderIndicator(h, prefixCls) { + // const h = this.$createElement + var dotClassName = prefixCls + '-dot'; + var indicator = (0, _propsUtil.getComponentFromProp)(this, 'indicator'); + if (Array.isArray(indicator)) { + indicator = (0, _propsUtil.filterEmpty)(indicator); + indicator = indicator.length === 1 ? indicator[0] : indicator; + } + if ((0, _propsUtil.isValidElement)(indicator)) { + return (0, _vnode.cloneElement)(indicator, { 'class': dotClassName }); + } + + if (defaultIndicator && (0, _propsUtil.isValidElement)(defaultIndicator(h))) { + return (0, _vnode.cloneElement)(defaultIndicator(h), { 'class': dotClassName }); + } - utils.forEach(['url', 'method', 'params', 'data'], function valueFromConfig2(prop) { - if (typeof config2[prop] !== 'undefined') { - config[prop] = config2[prop]; + return h( + 'span', + { 'class': dotClassName + ' ' + prefixCls + '-dot-spin' }, + [h('i'), h('i'), h('i'), h('i')] + ); } - }); - - utils.forEach(['headers', 'auth', 'proxy'], function mergeDeepProperties(prop) { - if (utils.isObject(config2[prop])) { - config[prop] = utils.deepMerge(config1[prop], config2[prop]); - } else if (typeof config2[prop] !== 'undefined') { - config[prop] = config2[prop]; - } else if (utils.isObject(config1[prop])) { - config[prop] = utils.deepMerge(config1[prop]); - } else if (typeof config1[prop] !== 'undefined') { - config[prop] = config1[prop]; - } - }); - - utils.forEach([ - 'baseURL', 'transformRequest', 'transformResponse', 'paramsSerializer', - 'timeout', 'withCredentials', 'adapter', 'responseType', 'xsrfCookieName', - 'xsrfHeaderName', 'onUploadProgress', 'onDownloadProgress', 'maxContentLength', - 'validateStatus', 'maxRedirects', 'httpAgent', 'httpsAgent', 'cancelToken', - 'socketPath' - ], function defaultToConfig2(prop) { - if (typeof config2[prop] !== 'undefined') { - config[prop] = config2[prop]; - } else if (typeof config1[prop] !== 'undefined') { - config[prop] = config1[prop]; + }, + render: function render(h) { + var _spinClassName; + + var _$props = this.$props, + size = _$props.size, + customizePrefixCls = _$props.prefixCls, + tip = _$props.tip, + wrapperClassName = _$props.wrapperClassName, + restProps = (0, _objectWithoutProperties3['default'])(_$props, ['size', 'prefixCls', 'tip', 'wrapperClassName']); + + var getPrefixCls = this.configProvider.getPrefixCls; + var prefixCls = getPrefixCls('spin', customizePrefixCls); + + var sSpinning = this.sSpinning; + + var spinClassName = (_spinClassName = {}, (0, _defineProperty3['default'])(_spinClassName, prefixCls, true), (0, _defineProperty3['default'])(_spinClassName, prefixCls + '-sm', size === 'small'), (0, _defineProperty3['default'])(_spinClassName, prefixCls + '-lg', size === 'large'), (0, _defineProperty3['default'])(_spinClassName, prefixCls + '-spinning', sSpinning), (0, _defineProperty3['default'])(_spinClassName, prefixCls + '-show-text', !!tip), _spinClassName); + + var spinElement = h( + 'div', + (0, _babelHelperVueJsxMergeProps2['default'])([restProps, { 'class': spinClassName }]), + [this.renderIndicator(h, prefixCls), tip ? h( + 'div', + { 'class': prefixCls + '-text' }, + [tip] + ) : null] + ); + var children = this.getChildren(); + if (children) { + var _containerClassName; + + var containerClassName = (_containerClassName = {}, (0, _defineProperty3['default'])(_containerClassName, prefixCls + '-container', true), (0, _defineProperty3['default'])(_containerClassName, prefixCls + '-blur', sSpinning), _containerClassName); + + return h( + 'div', + (0, _babelHelperVueJsxMergeProps2['default'])([{ on: this.$listeners }, { 'class': [prefixCls + '-nested-loading', wrapperClassName] }]), + [sSpinning && h( + 'div', + { key: 'loading' }, + [spinElement] + ), h( + 'div', + { 'class': containerClassName, key: 'container' }, + [children] + )] + ); } - }); - - return config; + return spinElement; + } }; - /***/ }), -/***/ "./node_modules/axios/lib/core/settle.js": -/*!***********************************************!*\ - !*** ./node_modules/axios/lib/core/settle.js ***! - \***********************************************/ +/***/ "./node_modules/ant-design-vue/lib/spin/index.js": +/*!*******************************************************!*\ + !*** ./node_modules/ant-design-vue/lib/spin/index.js ***! + \*******************************************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { "use strict"; -var createError = __webpack_require__(/*! ./createError */ "./node_modules/axios/lib/core/createError.js"); +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.SpinProps = undefined; -/** - * Resolve or reject a Promise based on response status. - * - * @param {Function} resolve A function that resolves the promise. - * @param {Function} reject A function that rejects the promise. - * @param {object} response The response. - */ -module.exports = function settle(resolve, reject, response) { - var validateStatus = response.config.validateStatus; - if (!validateStatus || validateStatus(response.status)) { - resolve(response); - } else { - reject(createError( - 'Request failed with status code ' + response.status, - response.config, - null, - response.request, - response - )); +var _Spin = __webpack_require__(/*! ./Spin */ "./node_modules/ant-design-vue/lib/spin/Spin.js"); + +Object.defineProperty(exports, 'SpinProps', { + enumerable: true, + get: function get() { + return _Spin.SpinProps; } +}); + +var _Spin2 = _interopRequireDefault(_Spin); + +var _base = __webpack_require__(/*! ../base */ "./node_modules/ant-design-vue/lib/base/index.js"); + +var _base2 = _interopRequireDefault(_base); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } + +_Spin2['default'].setDefaultIndicator = _Spin.setDefaultIndicator; + +/* istanbul ignore next */ +_Spin2['default'].install = function (Vue) { + Vue.use(_base2['default']); + Vue.component(_Spin2['default'].name, _Spin2['default']); }; +exports['default'] = _Spin2['default']; /***/ }), -/***/ "./node_modules/axios/lib/core/transformData.js": -/*!******************************************************!*\ - !*** ./node_modules/axios/lib/core/transformData.js ***! - \******************************************************/ +/***/ "./node_modules/ant-design-vue/lib/table/Column.js": +/*!*********************************************************!*\ + !*** ./node_modules/ant-design-vue/lib/table/Column.js ***! + \*********************************************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { "use strict"; -var utils = __webpack_require__(/*! ./../utils */ "./node_modules/axios/lib/utils.js"); +Object.defineProperty(exports, "__esModule", { + value: true +}); -/** - * Transform the data for a request or a response - * - * @param {Object|String} data The data to be transformed - * @param {Array} headers The headers for the request or response - * @param {Array|Function} fns A single function or Array of functions - * @returns {*} The resulting transformed data - */ -module.exports = function transformData(data, headers, fns) { - /*eslint no-param-reassign:0*/ - utils.forEach(fns, function transform(fn) { - data = fn(data, headers); - }); +var _interface = __webpack_require__(/*! ./interface */ "./node_modules/ant-design-vue/lib/table/interface.js"); - return data; +exports['default'] = { + name: 'ATableColumn', + props: _interface.ColumnProps }; - /***/ }), -/***/ "./node_modules/axios/lib/defaults.js": -/*!********************************************!*\ - !*** ./node_modules/axios/lib/defaults.js ***! - \********************************************/ +/***/ "./node_modules/ant-design-vue/lib/table/ColumnGroup.js": +/*!**************************************************************!*\ + !*** ./node_modules/ant-design-vue/lib/table/ColumnGroup.js ***! + \**************************************************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { "use strict"; -/* WEBPACK VAR INJECTION */(function(process) { -var utils = __webpack_require__(/*! ./utils */ "./node_modules/axios/lib/utils.js"); -var normalizeHeaderName = __webpack_require__(/*! ./helpers/normalizeHeaderName */ "./node_modules/axios/lib/helpers/normalizeHeaderName.js"); -var DEFAULT_CONTENT_TYPE = { - 'Content-Type': 'application/x-www-form-urlencoded' -}; +Object.defineProperty(exports, "__esModule", { + value: true +}); -function setContentTypeIfUnset(headers, value) { - if (!utils.isUndefined(headers) && utils.isUndefined(headers['Content-Type'])) { - headers['Content-Type'] = value; - } -} +var _vueTypes = __webpack_require__(/*! ../_util/vue-types */ "./node_modules/ant-design-vue/lib/_util/vue-types/index.js"); -function getDefaultAdapter() { - var adapter; - // Only Node.JS has a process variable that is of [[Class]] process - if (typeof process !== 'undefined' && Object.prototype.toString.call(process) === '[object process]') { - // For node use HTTP adapter - adapter = __webpack_require__(/*! ./adapters/http */ "./node_modules/axios/lib/adapters/xhr.js"); - } else if (typeof XMLHttpRequest !== 'undefined') { - // For browsers use XHR adapter - adapter = __webpack_require__(/*! ./adapters/xhr */ "./node_modules/axios/lib/adapters/xhr.js"); - } - return adapter; -} +var _vueTypes2 = _interopRequireDefault(_vueTypes); -var defaults = { - adapter: getDefaultAdapter(), - - transformRequest: [function transformRequest(data, headers) { - normalizeHeaderName(headers, 'Accept'); - normalizeHeaderName(headers, 'Content-Type'); - if (utils.isFormData(data) || - utils.isArrayBuffer(data) || - utils.isBuffer(data) || - utils.isStream(data) || - utils.isFile(data) || - utils.isBlob(data) - ) { - return data; - } - if (utils.isArrayBufferView(data)) { - return data.buffer; - } - if (utils.isURLSearchParams(data)) { - setContentTypeIfUnset(headers, 'application/x-www-form-urlencoded;charset=utf-8'); - return data.toString(); - } - if (utils.isObject(data)) { - setContentTypeIfUnset(headers, 'application/json;charset=utf-8'); - return JSON.stringify(data); - } - return data; - }], +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } - transformResponse: [function transformResponse(data) { - /*eslint no-param-reassign:0*/ - if (typeof data === 'string') { - try { - data = JSON.parse(data); - } catch (e) { /* Ignore */ } - } - return data; - }], +exports['default'] = { + name: 'ATableColumnGroup', + props: { + title: _vueTypes2['default'].any + }, + __ANT_TABLE_COLUMN_GROUP: true +}; - /** - * A timeout in milliseconds to abort a request. If set to 0 (default) a - * timeout is not created. - */ - timeout: 0, +/***/ }), - xsrfCookieName: 'XSRF-TOKEN', - xsrfHeaderName: 'X-XSRF-TOKEN', +/***/ "./node_modules/ant-design-vue/lib/table/FilterDropdownMenuWrapper.js": +/*!****************************************************************************!*\ + !*** ./node_modules/ant-design-vue/lib/table/FilterDropdownMenuWrapper.js ***! + \****************************************************************************/ +/*! no static exports found */ +/***/ (function(module, exports, __webpack_require__) { - maxContentLength: -1, +"use strict"; - validateStatus: function validateStatus(status) { - return status >= 200 && status < 300; - } -}; -defaults.headers = { - common: { - 'Accept': 'application/json, text/plain, */*' +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports["default"] = { + methods: { + handelClick: function handelClick(e) { + e.stopPropagation(); + //this.$emit('click', e); + } + }, + render: function render() { + var h = arguments[0]; + var $slots = this.$slots, + handelClick = this.handelClick; + + return h( + "div", + { + on: { + "click": handelClick + } + }, + [$slots["default"]] + ); } }; -utils.forEach(['delete', 'get', 'head'], function forEachMethodNoData(method) { - defaults.headers[method] = {}; -}); - -utils.forEach(['post', 'put', 'patch'], function forEachMethodWithData(method) { - defaults.headers[method] = utils.merge(DEFAULT_CONTENT_TYPE); -}); - -module.exports = defaults; - -/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./../../process/browser.js */ "./node_modules/process/browser.js"))) - /***/ }), -/***/ "./node_modules/axios/lib/helpers/bind.js": -/*!************************************************!*\ - !*** ./node_modules/axios/lib/helpers/bind.js ***! - \************************************************/ +/***/ "./node_modules/ant-design-vue/lib/table/SelectionBox.js": +/*!***************************************************************!*\ + !*** ./node_modules/ant-design-vue/lib/table/SelectionBox.js ***! + \***************************************************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { "use strict"; -module.exports = function bind(fn, thisArg) { - return function wrap() { - var args = new Array(arguments.length); - for (var i = 0; i < args.length; i++) { - args[i] = arguments[i]; - } - return fn.apply(thisArg, args); - }; -}; +Object.defineProperty(exports, "__esModule", { + value: true +}); +var _extends2 = __webpack_require__(/*! babel-runtime/helpers/extends */ "./node_modules/babel-runtime/helpers/extends.js"); -/***/ }), +var _extends3 = _interopRequireDefault(_extends2); -/***/ "./node_modules/axios/lib/helpers/buildURL.js": -/*!****************************************************!*\ - !*** ./node_modules/axios/lib/helpers/buildURL.js ***! - \****************************************************/ -/*! no static exports found */ -/***/ (function(module, exports, __webpack_require__) { +var _objectWithoutProperties2 = __webpack_require__(/*! babel-runtime/helpers/objectWithoutProperties */ "./node_modules/babel-runtime/helpers/objectWithoutProperties.js"); -"use strict"; +var _objectWithoutProperties3 = _interopRequireDefault(_objectWithoutProperties2); +var _checkbox = __webpack_require__(/*! ../checkbox */ "./node_modules/ant-design-vue/lib/checkbox/index.js"); -var utils = __webpack_require__(/*! ./../utils */ "./node_modules/axios/lib/utils.js"); +var _checkbox2 = _interopRequireDefault(_checkbox); -function encode(val) { - return encodeURIComponent(val). - replace(/%40/gi, '@'). - replace(/%3A/gi, ':'). - replace(/%24/g, '$'). - replace(/%2C/gi, ','). - replace(/%20/g, '+'). - replace(/%5B/gi, '['). - replace(/%5D/gi, ']'); -} +var _radio = __webpack_require__(/*! ../radio */ "./node_modules/ant-design-vue/lib/radio/index.js"); -/** - * Build a URL by appending params to the end - * - * @param {string} url The base of the url (e.g., http://www.google.com) - * @param {object} [params] The params to be appended - * @returns {string} The formatted url - */ -module.exports = function buildURL(url, params, paramsSerializer) { - /*eslint no-param-reassign:0*/ - if (!params) { - return url; - } +var _radio2 = _interopRequireDefault(_radio); - var serializedParams; - if (paramsSerializer) { - serializedParams = paramsSerializer(params); - } else if (utils.isURLSearchParams(params)) { - serializedParams = params.toString(); - } else { - var parts = []; +var _interface = __webpack_require__(/*! ./interface */ "./node_modules/ant-design-vue/lib/table/interface.js"); - utils.forEach(params, function serialize(val, key) { - if (val === null || typeof val === 'undefined') { - return; - } +var _BaseMixin = __webpack_require__(/*! ../_util/BaseMixin */ "./node_modules/ant-design-vue/lib/_util/BaseMixin.js"); - if (utils.isArray(val)) { - key = key + '[]'; - } else { - val = [val]; - } +var _BaseMixin2 = _interopRequireDefault(_BaseMixin); - utils.forEach(val, function parseValue(v) { - if (utils.isDate(v)) { - v = v.toISOString(); - } else if (utils.isObject(v)) { - v = JSON.stringify(v); - } - parts.push(encode(key) + '=' + encode(v)); - }); - }); +var _propsUtil = __webpack_require__(/*! ../_util/props-util */ "./node_modules/ant-design-vue/lib/_util/props-util.js"); - serializedParams = parts.join('&'); - } +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } - if (serializedParams) { - var hashmarkIndex = url.indexOf('#'); - if (hashmarkIndex !== -1) { - url = url.slice(0, hashmarkIndex); +exports['default'] = { + name: 'SelectionBox', + mixins: [_BaseMixin2['default']], + props: _interface.SelectionBoxProps, + data: function data() { + return { + checked: this.getCheckState(this.$props) + }; + }, + mounted: function mounted() { + this.subscribe(); + }, + beforeDestroy: function beforeDestroy() { + if (this.unsubscribe) { + this.unsubscribe(); } + }, - url += (url.indexOf('?') === -1 ? '?' : '&') + serializedParams; - } + methods: { + subscribe: function subscribe() { + var _this = this; - return url; -}; + var store = this.store; + this.unsubscribe = store.subscribe(function () { + var checked = _this.getCheckState(_this.$props); + _this.setState({ checked: checked }); + }); + }, + getCheckState: function getCheckState(props) { + var store = props.store, + defaultSelection = props.defaultSelection, + rowIndex = props.rowIndex; + + var checked = false; + if (store.getState().selectionDirty) { + checked = store.getState().selectedRowKeys.indexOf(rowIndex) >= 0; + } else { + checked = store.getState().selectedRowKeys.indexOf(rowIndex) >= 0 || defaultSelection.indexOf(rowIndex) >= 0; + } + return checked; + } + }, + + render: function render() { + var h = arguments[0]; + + var _getOptionProps = (0, _propsUtil.getOptionProps)(this), + type = _getOptionProps.type, + rowIndex = _getOptionProps.rowIndex, + rest = (0, _objectWithoutProperties3['default'])(_getOptionProps, ['type', 'rowIndex']); + + var checked = this.checked, + $attrs = this.$attrs, + $listeners = this.$listeners; + + var checkboxProps = { + props: (0, _extends3['default'])({ + checked: checked + }, rest), + attrs: $attrs, + on: $listeners + }; + if (type === 'radio') { + checkboxProps.props.value = rowIndex; + return h(_radio2['default'], checkboxProps); + } else { + return h(_checkbox2['default'], checkboxProps); + } + } +}; /***/ }), -/***/ "./node_modules/axios/lib/helpers/combineURLs.js": -/*!*******************************************************!*\ - !*** ./node_modules/axios/lib/helpers/combineURLs.js ***! - \*******************************************************/ +/***/ "./node_modules/ant-design-vue/lib/table/SelectionCheckboxAll.js": +/*!***********************************************************************!*\ + !*** ./node_modules/ant-design-vue/lib/table/SelectionCheckboxAll.js ***! + \***********************************************************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { "use strict"; -/** - * Creates a new URL by combining the specified URLs - * - * @param {string} baseURL The base URL - * @param {string} relativeURL The relative URL - * @returns {string} The combined URL - */ -module.exports = function combineURLs(baseURL, relativeURL) { - return relativeURL - ? baseURL.replace(/\/+$/, '') + '/' + relativeURL.replace(/^\/+/, '') - : baseURL; -}; +Object.defineProperty(exports, "__esModule", { + value: true +}); +var _defineProperty2 = __webpack_require__(/*! babel-runtime/helpers/defineProperty */ "./node_modules/babel-runtime/helpers/defineProperty.js"); -/***/ }), +var _defineProperty3 = _interopRequireDefault(_defineProperty2); -/***/ "./node_modules/axios/lib/helpers/cookies.js": -/*!***************************************************!*\ - !*** ./node_modules/axios/lib/helpers/cookies.js ***! - \***************************************************/ -/*! no static exports found */ -/***/ (function(module, exports, __webpack_require__) { +var _checkbox = __webpack_require__(/*! ../checkbox */ "./node_modules/ant-design-vue/lib/checkbox/index.js"); -"use strict"; +var _checkbox2 = _interopRequireDefault(_checkbox); +var _dropdown = __webpack_require__(/*! ../dropdown */ "./node_modules/ant-design-vue/lib/dropdown/index.js"); -var utils = __webpack_require__(/*! ./../utils */ "./node_modules/axios/lib/utils.js"); +var _dropdown2 = _interopRequireDefault(_dropdown); -module.exports = ( - utils.isStandardBrowserEnv() ? +var _menu = __webpack_require__(/*! ../menu */ "./node_modules/ant-design-vue/lib/menu/index.js"); - // Standard browser envs support document.cookie - (function standardBrowserEnv() { - return { - write: function write(name, value, expires, path, domain, secure) { - var cookie = []; - cookie.push(name + '=' + encodeURIComponent(value)); +var _menu2 = _interopRequireDefault(_menu); - if (utils.isNumber(expires)) { - cookie.push('expires=' + new Date(expires).toGMTString()); - } +var _icon = __webpack_require__(/*! ../icon */ "./node_modules/ant-design-vue/lib/icon/index.js"); - if (utils.isString(path)) { - cookie.push('path=' + path); - } +var _icon2 = _interopRequireDefault(_icon); - if (utils.isString(domain)) { - cookie.push('domain=' + domain); - } +var _classnames = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js"); - if (secure === true) { - cookie.push('secure'); - } +var _classnames2 = _interopRequireDefault(_classnames); - document.cookie = cookie.join('; '); - }, +var _interface = __webpack_require__(/*! ./interface */ "./node_modules/ant-design-vue/lib/table/interface.js"); - read: function read(name) { - var match = document.cookie.match(new RegExp('(^|;\\s*)(' + name + ')=([^;]*)')); - return (match ? decodeURIComponent(match[3]) : null); - }, +var _BaseMixin = __webpack_require__(/*! ../_util/BaseMixin */ "./node_modules/ant-design-vue/lib/_util/BaseMixin.js"); + +var _BaseMixin2 = _interopRequireDefault(_BaseMixin); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } + +exports['default'] = { + name: 'SelectionCheckboxAll', + mixins: [_BaseMixin2['default']], + props: _interface.SelectionCheckboxAllProps, + data: function data() { + var props = this.$props; + + this.defaultSelections = props.hideDefaultSelections ? [] : [{ + key: 'all', + text: props.locale.selectAll, + onSelect: function onSelect() {} + }, { + key: 'invert', + text: props.locale.selectInvert, + onSelect: function onSelect() {} + }]; + + return { + checked: this.getCheckState(props), + indeterminate: this.getIndeterminateState(props) + }; + }, + + + watch: { + $props: { + handler: function handler() { + this.setCheckState(); + }, + deep: true + } + }, + + mounted: function mounted() { + this.subscribe(); + }, + beforeDestroy: function beforeDestroy() { + if (this.unsubscribe) { + this.unsubscribe(); + } + }, + + methods: { + subscribe: function subscribe() { + var _this = this; + + var store = this.store; - remove: function remove(name) { - this.write(name, '', Date.now() - 86400000); + this.unsubscribe = store.subscribe(function () { + _this.setCheckState(_this.$props); + }); + }, + checkSelection: function checkSelection(props, data, type, byDefaultChecked) { + var _ref = props || this.$props, + store = _ref.store, + getCheckboxPropsByItem = _ref.getCheckboxPropsByItem, + getRecordKey = _ref.getRecordKey; + // type should be 'every' | 'some' + + + if (type === 'every' || type === 'some') { + return byDefaultChecked ? data[type](function (item, i) { + return getCheckboxPropsByItem(item, i).props.defaultChecked; + }) : data[type](function (item, i) { + return store.getState().selectedRowKeys.indexOf(getRecordKey(item, i)) >= 0; + }); + } + return false; + }, + setCheckState: function setCheckState(props) { + var checked = this.getCheckState(props); + var indeterminate = this.getIndeterminateState(props); + this.setState(function (prevState) { + var newState = {}; + if (indeterminate !== prevState.indeterminate) { + newState.indeterminate = indeterminate; } - }; - })() : + if (checked !== prevState.checked) { + newState.checked = checked; + } + return newState; + }); + }, + getCheckState: function getCheckState(props) { + var store = this.store, + data = this.data; + + var checked = void 0; + if (!data.length) { + checked = false; + } else { + checked = store.getState().selectionDirty ? this.checkSelection(props, data, 'every', false) : this.checkSelection(props, data, 'every', false) || this.checkSelection(props, data, 'every', true); + } + return checked; + }, + getIndeterminateState: function getIndeterminateState(props) { + var store = this.store, + data = this.data; + + var indeterminate = void 0; + if (!data.length) { + indeterminate = false; + } else { + indeterminate = store.getState().selectionDirty ? this.checkSelection(props, data, 'some', false) && !this.checkSelection(props, data, 'every', false) : this.checkSelection(props, data, 'some', false) && !this.checkSelection(props, data, 'every', false) || this.checkSelection(props, data, 'some', true) && !this.checkSelection(props, data, 'every', true); + } + return indeterminate; + }, + handleSelectAllChange: function handleSelectAllChange(e) { + var checked = e.target.checked; + this.$emit('select', checked ? 'all' : 'removeAll', 0, null); + }, + renderMenus: function renderMenus(selections) { + var _this2 = this; + + var h = this.$createElement; + + return selections.map(function (selection, index) { + return h( + _menu2['default'].Item, + { key: selection.key || index }, + [h( + 'div', + { + on: { + 'click': function click() { + _this2.$emit('select', selection.key, index, selection.onSelect); + } + } + }, + [selection.text] + )] + ); + }); + } + }, - // Non standard browser env (web workers, react-native) lack needed support. - (function nonStandardBrowserEnv() { - return { - write: function write() {}, - read: function read() { return null; }, - remove: function remove() {} - }; - })() -); + render: function render() { + var h = arguments[0]; + var disabled = this.disabled, + prefixCls = this.prefixCls, + selections = this.selections, + getPopupContainer = this.getPopupContainer, + checked = this.checked, + indeterminate = this.indeterminate; -/***/ }), + var selectionPrefixCls = prefixCls + '-selection'; -/***/ "./node_modules/axios/lib/helpers/isAbsoluteURL.js": -/*!*********************************************************!*\ - !*** ./node_modules/axios/lib/helpers/isAbsoluteURL.js ***! - \*********************************************************/ -/*! no static exports found */ -/***/ (function(module, exports, __webpack_require__) { + var customSelections = null; -"use strict"; + if (selections) { + var newSelections = Array.isArray(selections) ? this.defaultSelections.concat(selections) : this.defaultSelections; + var menu = h( + _menu2['default'], + { 'class': selectionPrefixCls + '-menu', attrs: { selectedKeys: [] } + }, + [this.renderMenus(newSelections)] + ); -/** - * Determines whether the specified URL is absolute - * - * @param {string} url The URL to test - * @returns {boolean} True if the specified URL is absolute, otherwise false - */ -module.exports = function isAbsoluteURL(url) { - // A URL is considered absolute if it begins with "://" or "//" (protocol-relative URL). - // RFC 3986 defines scheme name as a sequence of characters beginning with a letter and followed - // by any combination of letters, digits, plus, period, or hyphen. - return /^([a-z][a-z\d\+\-\.]*:)?\/\//i.test(url); -}; + customSelections = newSelections.length > 0 ? h( + _dropdown2['default'], + { + attrs: { getPopupContainer: getPopupContainer } + }, + [h( + 'template', + { slot: 'overlay' }, + [menu] + ), h( + 'div', + { 'class': selectionPrefixCls + '-down' }, + [h(_icon2['default'], { + attrs: { type: 'down' } + })] + )] + ) : null; + } + return h( + 'div', + { 'class': selectionPrefixCls }, + [h(_checkbox2['default'], { + 'class': (0, _classnames2['default'])((0, _defineProperty3['default'])({}, selectionPrefixCls + '-select-all-custom', customSelections)), + attrs: { checked: checked, + indeterminate: indeterminate, + disabled: disabled + }, + on: { + 'change': this.handleSelectAllChange + } + }), customSelections] + ); + } +}; /***/ }), -/***/ "./node_modules/axios/lib/helpers/isURLSameOrigin.js": -/*!***********************************************************!*\ - !*** ./node_modules/axios/lib/helpers/isURLSameOrigin.js ***! - \***********************************************************/ +/***/ "./node_modules/ant-design-vue/lib/table/Table.js": +/*!********************************************************!*\ + !*** ./node_modules/ant-design-vue/lib/table/Table.js ***! + \********************************************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { "use strict"; -var utils = __webpack_require__(/*! ./../utils */ "./node_modules/axios/lib/utils.js"); +Object.defineProperty(exports, "__esModule", { + value: true +}); -module.exports = ( - utils.isStandardBrowserEnv() ? +var _objectWithoutProperties2 = __webpack_require__(/*! babel-runtime/helpers/objectWithoutProperties */ "./node_modules/babel-runtime/helpers/objectWithoutProperties.js"); - // Standard browser envs have full support of the APIs needed to test - // whether the request URL is of the same origin as current location. - (function standardBrowserEnv() { - var msie = /(msie|trident)/i.test(navigator.userAgent); - var urlParsingNode = document.createElement('a'); - var originURL; +var _objectWithoutProperties3 = _interopRequireDefault(_objectWithoutProperties2); - /** - * Parse a URL to discover it's components - * - * @param {String} url The URL to be parsed - * @returns {Object} - */ - function resolveURL(url) { - var href = url; +var _defineProperty2 = __webpack_require__(/*! babel-runtime/helpers/defineProperty */ "./node_modules/babel-runtime/helpers/defineProperty.js"); - if (msie) { - // IE needs attribute set twice to normalize properties - urlParsingNode.setAttribute('href', href); - href = urlParsingNode.href; - } +var _defineProperty3 = _interopRequireDefault(_defineProperty2); - urlParsingNode.setAttribute('href', href); +var _toConsumableArray2 = __webpack_require__(/*! babel-runtime/helpers/toConsumableArray */ "./node_modules/babel-runtime/helpers/toConsumableArray.js"); - // urlParsingNode provides the UrlUtils interface - http://url.spec.whatwg.org/#urlutils - return { - href: urlParsingNode.href, - protocol: urlParsingNode.protocol ? urlParsingNode.protocol.replace(/:$/, '') : '', - host: urlParsingNode.host, - search: urlParsingNode.search ? urlParsingNode.search.replace(/^\?/, '') : '', - hash: urlParsingNode.hash ? urlParsingNode.hash.replace(/^#/, '') : '', - hostname: urlParsingNode.hostname, - port: urlParsingNode.port, - pathname: (urlParsingNode.pathname.charAt(0) === '/') ? - urlParsingNode.pathname : - '/' + urlParsingNode.pathname - }; - } +var _toConsumableArray3 = _interopRequireDefault(_toConsumableArray2); - originURL = resolveURL(window.location.href); +var _typeof2 = __webpack_require__(/*! babel-runtime/helpers/typeof */ "./node_modules/babel-runtime/helpers/typeof.js"); - /** - * Determine if a URL shares the same origin as the current location - * - * @param {String} requestURL The URL to test - * @returns {boolean} True if URL shares the same origin, otherwise false - */ - return function isURLSameOrigin(requestURL) { - var parsed = (utils.isString(requestURL)) ? resolveURL(requestURL) : requestURL; - return (parsed.protocol === originURL.protocol && - parsed.host === originURL.host); - }; - })() : +var _typeof3 = _interopRequireDefault(_typeof2); - // Non standard browser envs (web workers, react-native) lack needed support. - (function nonStandardBrowserEnv() { - return function isURLSameOrigin() { - return true; - }; - })() -); +var _extends4 = __webpack_require__(/*! babel-runtime/helpers/extends */ "./node_modules/babel-runtime/helpers/extends.js"); +var _extends5 = _interopRequireDefault(_extends4); -/***/ }), +var _vcTable = __webpack_require__(/*! ../vc-table */ "./node_modules/ant-design-vue/lib/vc-table/index.js"); -/***/ "./node_modules/axios/lib/helpers/normalizeHeaderName.js": -/*!***************************************************************!*\ - !*** ./node_modules/axios/lib/helpers/normalizeHeaderName.js ***! - \***************************************************************/ -/*! no static exports found */ -/***/ (function(module, exports, __webpack_require__) { +var _vcTable2 = _interopRequireDefault(_vcTable); -"use strict"; +var _classnames = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js"); +var _classnames2 = _interopRequireDefault(_classnames); -var utils = __webpack_require__(/*! ../utils */ "./node_modules/axios/lib/utils.js"); +var _shallowequal = __webpack_require__(/*! shallowequal */ "./node_modules/shallowequal/index.js"); -module.exports = function normalizeHeaderName(headers, normalizedName) { - utils.forEach(headers, function processHeader(value, name) { - if (name !== normalizedName && name.toUpperCase() === normalizedName.toUpperCase()) { - headers[normalizedName] = value; - delete headers[name]; - } - }); -}; +var _shallowequal2 = _interopRequireDefault(_shallowequal); +var _filterDropdown = __webpack_require__(/*! ./filterDropdown */ "./node_modules/ant-design-vue/lib/table/filterDropdown.js"); -/***/ }), +var _filterDropdown2 = _interopRequireDefault(_filterDropdown); -/***/ "./node_modules/axios/lib/helpers/parseHeaders.js": -/*!********************************************************!*\ - !*** ./node_modules/axios/lib/helpers/parseHeaders.js ***! - \********************************************************/ -/*! no static exports found */ -/***/ (function(module, exports, __webpack_require__) { +var _createStore = __webpack_require__(/*! ./createStore */ "./node_modules/ant-design-vue/lib/table/createStore.js"); -"use strict"; +var _createStore2 = _interopRequireDefault(_createStore); +var _SelectionBox = __webpack_require__(/*! ./SelectionBox */ "./node_modules/ant-design-vue/lib/table/SelectionBox.js"); -var utils = __webpack_require__(/*! ./../utils */ "./node_modules/axios/lib/utils.js"); +var _SelectionBox2 = _interopRequireDefault(_SelectionBox); -// Headers whose duplicates are ignored by node -// c.f. https://nodejs.org/api/http.html#http_message_headers -var ignoreDuplicateOf = [ - 'age', 'authorization', 'content-length', 'content-type', 'etag', - 'expires', 'from', 'host', 'if-modified-since', 'if-unmodified-since', - 'last-modified', 'location', 'max-forwards', 'proxy-authorization', - 'referer', 'retry-after', 'user-agent' -]; +var _SelectionCheckboxAll = __webpack_require__(/*! ./SelectionCheckboxAll */ "./node_modules/ant-design-vue/lib/table/SelectionCheckboxAll.js"); -/** - * Parse headers into an object - * - * ``` - * Date: Wed, 27 Aug 2014 08:58:49 GMT - * Content-Type: application/json - * Connection: keep-alive - * Transfer-Encoding: chunked - * ``` - * - * @param {String} headers Headers needing to be parsed - * @returns {Object} Headers parsed into an object - */ -module.exports = function parseHeaders(headers) { - var parsed = {}; - var key; - var val; - var i; +var _SelectionCheckboxAll2 = _interopRequireDefault(_SelectionCheckboxAll); - if (!headers) { return parsed; } +var _Column = __webpack_require__(/*! ./Column */ "./node_modules/ant-design-vue/lib/table/Column.js"); - utils.forEach(headers.split('\n'), function parser(line) { - i = line.indexOf(':'); - key = utils.trim(line.substr(0, i)).toLowerCase(); - val = utils.trim(line.substr(i + 1)); +var _Column2 = _interopRequireDefault(_Column); - if (key) { - if (parsed[key] && ignoreDuplicateOf.indexOf(key) >= 0) { - return; - } - if (key === 'set-cookie') { - parsed[key] = (parsed[key] ? parsed[key] : []).concat([val]); - } else { - parsed[key] = parsed[key] ? parsed[key] + ', ' + val : val; - } - } - }); +var _ColumnGroup = __webpack_require__(/*! ./ColumnGroup */ "./node_modules/ant-design-vue/lib/table/ColumnGroup.js"); - return parsed; -}; +var _ColumnGroup2 = _interopRequireDefault(_ColumnGroup); +var _createBodyRow = __webpack_require__(/*! ./createBodyRow */ "./node_modules/ant-design-vue/lib/table/createBodyRow.js"); -/***/ }), +var _createBodyRow2 = _interopRequireDefault(_createBodyRow); -/***/ "./node_modules/axios/lib/helpers/spread.js": -/*!**************************************************!*\ - !*** ./node_modules/axios/lib/helpers/spread.js ***! - \**************************************************/ -/*! no static exports found */ -/***/ (function(module, exports, __webpack_require__) { +var _util = __webpack_require__(/*! ./util */ "./node_modules/ant-design-vue/lib/table/util.js"); -"use strict"; +var _propsUtil = __webpack_require__(/*! ../_util/props-util */ "./node_modules/ant-design-vue/lib/_util/props-util.js"); +var _BaseMixin = __webpack_require__(/*! ../_util/BaseMixin */ "./node_modules/ant-design-vue/lib/_util/BaseMixin.js"); -/** - * Syntactic sugar for invoking a function and expanding an array for arguments. - * - * Common use case would be to use `Function.prototype.apply`. - * - * ```js - * function f(x, y, z) {} - * var args = [1, 2, 3]; - * f.apply(null, args); - * ``` - * - * With `spread` this example can be re-written. - * - * ```js - * spread(function(x, y, z) {})([1, 2, 3]); - * ``` - * - * @param {Function} callback - * @returns {Function} - */ -module.exports = function spread(callback) { - return function wrap(arr) { - return callback.apply(null, arr); - }; -}; +var _BaseMixin2 = _interopRequireDefault(_BaseMixin); +var _configProvider = __webpack_require__(/*! ../config-provider */ "./node_modules/ant-design-vue/lib/config-provider/index.js"); -/***/ }), +var _interface = __webpack_require__(/*! ./interface */ "./node_modules/ant-design-vue/lib/table/interface.js"); -/***/ "./node_modules/axios/lib/utils.js": -/*!*****************************************!*\ - !*** ./node_modules/axios/lib/utils.js ***! - \*****************************************/ -/*! no static exports found */ -/***/ (function(module, exports, __webpack_require__) { +var _pagination = __webpack_require__(/*! ../pagination */ "./node_modules/ant-design-vue/lib/pagination/index.js"); -"use strict"; +var _pagination2 = _interopRequireDefault(_pagination); +var _icon = __webpack_require__(/*! ../icon */ "./node_modules/ant-design-vue/lib/icon/index.js"); -var bind = __webpack_require__(/*! ./helpers/bind */ "./node_modules/axios/lib/helpers/bind.js"); -var isBuffer = __webpack_require__(/*! is-buffer */ "./node_modules/is-buffer/index.js"); +var _icon2 = _interopRequireDefault(_icon); -/*global toString:true*/ +var _spin = __webpack_require__(/*! ../spin */ "./node_modules/ant-design-vue/lib/spin/index.js"); -// utils is a library of generic helper functions non-specific to axios +var _spin2 = _interopRequireDefault(_spin); -var toString = Object.prototype.toString; +var _LocaleReceiver = __webpack_require__(/*! ../locale-provider/LocaleReceiver */ "./node_modules/ant-design-vue/lib/locale-provider/LocaleReceiver.js"); -/** - * Determine if a value is an Array - * - * @param {Object} val The value to test - * @returns {boolean} True if value is an Array, otherwise false - */ -function isArray(val) { - return toString.call(val) === '[object Array]'; -} +var _LocaleReceiver2 = _interopRequireDefault(_LocaleReceiver); -/** - * Determine if a value is an ArrayBuffer - * - * @param {Object} val The value to test - * @returns {boolean} True if value is an ArrayBuffer, otherwise false - */ -function isArrayBuffer(val) { - return toString.call(val) === '[object ArrayBuffer]'; -} +var _default2 = __webpack_require__(/*! ../locale-provider/default */ "./node_modules/ant-design-vue/lib/locale-provider/default.js"); -/** - * Determine if a value is a FormData - * - * @param {Object} val The value to test - * @returns {boolean} True if value is an FormData, otherwise false - */ -function isFormData(val) { - return (typeof FormData !== 'undefined') && (val instanceof FormData); -} +var _default3 = _interopRequireDefault(_default2); -/** - * Determine if a value is a view on an ArrayBuffer - * - * @param {Object} val The value to test - * @returns {boolean} True if value is a view on an ArrayBuffer, otherwise false - */ -function isArrayBufferView(val) { - var result; - if ((typeof ArrayBuffer !== 'undefined') && (ArrayBuffer.isView)) { - result = ArrayBuffer.isView(val); - } else { - result = (val) && (val.buffer) && (val.buffer instanceof ArrayBuffer); +var _warning = __webpack_require__(/*! ../_util/warning */ "./node_modules/ant-design-vue/lib/_util/warning.js"); + +var _warning2 = _interopRequireDefault(_warning); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } + +function noop() {} + +function stopPropagation(e) { + e.stopPropagation(); + if (e.nativeEvent && e.nativeEvent.stopImmediatePropagation) { + e.nativeEvent.stopImmediatePropagation(); } - return result; } -/** - * Determine if a value is a String - * - * @param {Object} val The value to test - * @returns {boolean} True if value is a String, otherwise false - */ -function isString(val) { - return typeof val === 'string'; +function getRowSelection(props) { + return props.rowSelection || {}; } +var defaultPagination = { + onChange: noop, + onShowSizeChange: noop +}; + +var ROW_SELECTION_COLUMN_WIDTH = '62px'; + /** - * Determine if a value is a Number - * - * @param {Object} val The value to test - * @returns {boolean} True if value is a Number, otherwise false + * Avoid creating new object, so that parent component's shouldComponentUpdate + * can works appropriately。 */ -function isNumber(val) { - return typeof val === 'number'; +var emptyObject = {}; + +exports['default'] = { + name: 'Table', + Column: _Column2['default'], + ColumnGroup: _ColumnGroup2['default'], + mixins: [_BaseMixin2['default']], + props: (0, _propsUtil.initDefaultProps)(_interface.TableProps, { + dataSource: [], + useFixedHeader: false, + // rowSelection: null, + size: 'default', + loading: false, + bordered: false, + indentSize: 20, + locale: {}, + rowKey: 'key', + showHeader: true, + sortDirections: ['ascend', 'descend'] + }), + + inject: { + configProvider: { 'default': function _default() { + return _configProvider.ConfigConsumerProps; + } } + }, + // CheckboxPropsCache: { + // [key: string]: any; + // }; + // store: Store; + // columns: ColumnProps[]; + // components: TableComponents; + + data: function data() { + // this.columns = props.columns || normalizeColumns(props.children) + var props = (0, _propsUtil.getOptionProps)(this); + (0, _warning2['default'])(!props.expandedRowRender || !('scroll' in props), '`expandedRowRender` and `scroll` are not compatible. Please use one of them at one time.'); + this.createComponents(this.components); + this.CheckboxPropsCache = {}; + + this.store = (0, _createStore2['default'])({ + selectedRowKeys: getRowSelection(this.$props).selectedRowKeys || [], + selectionDirty: false + }); + return (0, _extends5['default'])({}, this.getDefaultSortOrder(this.columns), { + // 减少状态 + sFilters: this.getFiltersFromColumns(), + sPagination: this.getDefaultPagination(this.$props), + pivot: undefined + }); + }, + + watch: { + pagination: { + handler: function handler(val) { + this.setState(function (previousState) { + var newPagination = (0, _extends5['default'])({}, defaultPagination, previousState.sPagination, val); + newPagination.current = newPagination.current || 1; + newPagination.pageSize = newPagination.pageSize || 10; + return { sPagination: val !== false ? newPagination : emptyObject }; + }); + }, + + deep: true + }, + rowSelection: { + handler: function handler(val, oldVal) { + if (val && 'selectedRowKeys' in val) { + this.store.setState({ + selectedRowKeys: val.selectedRowKeys || [] + }); + var rowSelection = this.rowSelection; + + if (rowSelection && val.getCheckboxProps !== rowSelection.getCheckboxProps) { + this.CheckboxPropsCache = {}; + } + } else if (oldVal && !val) { + this.store.setState({ + selectedRowKeys: [] + }); + } + }, + + deep: true + }, + dataSource: function dataSource() { + this.store.setState({ + selectionDirty: false + }); + this.CheckboxPropsCache = {}; + }, + columns: function columns(val) { + if (this.getSortOrderColumns(val).length > 0) { + var sortState = this.getSortStateFromColumns(val); + if (sortState.sSortColumn !== this.sSortColumn || sortState.sSortOrder !== this.sSortOrder) { + this.setState(sortState); + } + } + + var filteredValueColumns = this.getFilteredValueColumns(val); + if (filteredValueColumns.length > 0) { + var filtersFromColumns = this.getFiltersFromColumns(val); + var newFilters = (0, _extends5['default'])({}, this.sFilters); + Object.keys(filtersFromColumns).forEach(function (key) { + newFilters[key] = filtersFromColumns[key]; + }); + if (this.isFiltersChanged(newFilters)) { + this.setState({ sFilters: newFilters }); + } + } + }, + components: function components(val, preVal) { + this.createComponents(val, preVal); + } + }, + methods: { + getCheckboxPropsByItem: function getCheckboxPropsByItem(item, index) { + var rowSelection = getRowSelection(this.$props); + if (!rowSelection.getCheckboxProps) { + return { props: {} }; + } + var key = this.getRecordKey(item, index); + // Cache checkboxProps + if (!this.CheckboxPropsCache[key]) { + this.CheckboxPropsCache[key] = rowSelection.getCheckboxProps(item); + } + this.CheckboxPropsCache[key].props = this.CheckboxPropsCache[key].props || {}; + return this.CheckboxPropsCache[key]; + }, + getDefaultSelection: function getDefaultSelection() { + var _this = this; + + var rowSelection = getRowSelection(this.$props); + if (!rowSelection.getCheckboxProps) { + return []; + } + return this.getFlatData().filter(function (item, rowIndex) { + return _this.getCheckboxPropsByItem(item, rowIndex).props.defaultChecked; + }).map(function (record, rowIndex) { + return _this.getRecordKey(record, rowIndex); + }); + }, + getDefaultPagination: function getDefaultPagination(props) { + var pagination = (0, _typeof3['default'])(props.pagination) === 'object' ? props.pagination : {}; + var current = void 0; + if ('current' in pagination) { + current = pagination.current; + } else if ('defaultCurrent' in pagination) { + current = pagination.defaultCurrent; + } + var pageSize = void 0; + if ('pageSize' in pagination) { + pageSize = pagination.pageSize; + } else if ('defaultPageSize' in pagination) { + pageSize = pagination.defaultPageSize; + } + return this.hasPagination(props) ? (0, _extends5['default'])({}, defaultPagination, pagination, { + current: current || 1, + pageSize: pageSize || 10 + }) : {}; + }, + onRow: function onRow(prefixCls, record, index) { + var customRow = this.customRow; + + var custom = customRow ? customRow(record, index) : {}; + return (0, _propsUtil.mergeProps)(custom, { + props: { + prefixCls: prefixCls, + store: this.store, + rowKey: this.getRecordKey(record, index) + } + }); + }, + setSelectedRowKeys: function setSelectedRowKeys(selectedRowKeys, selectionInfo) { + var _this2 = this; + + var selectWay = selectionInfo.selectWay, + record = selectionInfo.record, + checked = selectionInfo.checked, + changeRowKeys = selectionInfo.changeRowKeys, + nativeEvent = selectionInfo.nativeEvent; + + var rowSelection = getRowSelection(this.$props); + if (rowSelection && !('selectedRowKeys' in rowSelection)) { + this.store.setState({ selectedRowKeys: selectedRowKeys }); + } + var data = this.getFlatData(); + if (!rowSelection.onChange && !rowSelection[selectWay]) { + return; + } + var selectedRows = data.filter(function (row, i) { + return selectedRowKeys.indexOf(_this2.getRecordKey(row, i)) >= 0; + }); + if (rowSelection.onChange) { + rowSelection.onChange(selectedRowKeys, selectedRows); + } + if (selectWay === 'onSelect' && rowSelection.onSelect) { + rowSelection.onSelect(record, checked, selectedRows, nativeEvent); + } else if (selectWay === 'onSelectMultiple' && rowSelection.onSelectMultiple) { + var changeRows = data.filter(function (row, i) { + return changeRowKeys.indexOf(_this2.getRecordKey(row, i)) >= 0; + }); + rowSelection.onSelectMultiple(checked, selectedRows, changeRows); + } else if (selectWay === 'onSelectAll' && rowSelection.onSelectAll) { + var _changeRows = data.filter(function (row, i) { + return changeRowKeys.indexOf(_this2.getRecordKey(row, i)) >= 0; + }); + rowSelection.onSelectAll(checked, selectedRows, _changeRows); + } else if (selectWay === 'onSelectInvert' && rowSelection.onSelectInvert) { + rowSelection.onSelectInvert(selectedRowKeys); + } + }, + hasPagination: function hasPagination() { + return this.pagination !== false; + }, + isFiltersChanged: function isFiltersChanged(filters) { + var _this3 = this; + + var filtersChanged = false; + if (Object.keys(filters).length !== Object.keys(this.sFilters).length) { + filtersChanged = true; + } else { + Object.keys(filters).forEach(function (columnKey) { + if (filters[columnKey] !== _this3.sFilters[columnKey]) { + filtersChanged = true; + } + }); + } + return filtersChanged; + }, + getSortOrderColumns: function getSortOrderColumns(columns) { + return (0, _util.flatFilter)(columns || this.columns || [], function (column) { + return 'sortOrder' in column; + }); + }, + getFilteredValueColumns: function getFilteredValueColumns(columns) { + return (0, _util.flatFilter)(columns || this.columns || [], function (column) { + return typeof column.filteredValue !== 'undefined'; + }); + }, + getFiltersFromColumns: function getFiltersFromColumns(columns) { + var _this4 = this; + + var filters = {}; + this.getFilteredValueColumns(columns).forEach(function (col) { + var colKey = _this4.getColumnKey(col); + filters[colKey] = col.filteredValue; + }); + return filters; + }, + getDefaultSortOrder: function getDefaultSortOrder(columns) { + var definedSortState = this.getSortStateFromColumns(columns); + + var defaultSortedColumn = (0, _util.flatFilter)(columns || [], function (column) { + return column.defaultSortOrder != null; + })[0]; + + if (defaultSortedColumn && !definedSortState.sortColumn) { + return { + sSortColumn: defaultSortedColumn, + sSortOrder: defaultSortedColumn.defaultSortOrder + }; + } + + return definedSortState; + }, + getSortStateFromColumns: function getSortStateFromColumns(columns) { + // return first column which sortOrder is not falsy + var sortedColumn = this.getSortOrderColumns(columns).filter(function (col) { + return col.sortOrder; + })[0]; + + if (sortedColumn) { + return { + sSortColumn: sortedColumn, + sSortOrder: sortedColumn.sortOrder + }; + } + + return { + sSortColumn: null, + sSortOrder: null + }; + }, + getSorterFn: function getSorterFn(state) { + var _ref = state || this.$data, + sortOrder = _ref.sSortOrder, + sortColumn = _ref.sSortColumn; + + if (!sortOrder || !sortColumn || typeof sortColumn.sorter !== 'function') { + return; + } + + return function (a, b) { + var result = sortColumn.sorter(a, b, sortOrder); + if (result !== 0) { + return sortOrder === 'descend' ? -result : result; + } + return 0; + }; + }, + isSameColumn: function isSameColumn(a, b) { + if (a && b && a.key && a.key === b.key) { + return true; + } + return a === b || (0, _shallowequal2['default'])(a, b, function (value, other) { + if (typeof value === 'function' && typeof other === 'function') { + return value === other || value.toString() === other.toString(); + } + }); + }, + toggleSortOrder: function toggleSortOrder(column) { + if (!column.sorter) { + return; + } + var sortDirections = column.sortDirections || this.sortDirections; + var sortOrder = this.sSortOrder, + sortColumn = this.sSortColumn; + // 只同时允许一列进行排序,否则会导致排序顺序的逻辑问题 + + var newSortOrder = void 0; + // 切换另一列时,丢弃 sortOrder 的状态 + if (this.isSameColumn(sortColumn, column) && sortOrder !== undefined) { + // 按照sortDirections的内容依次切换排序状态 + var methodIndex = sortDirections.indexOf(sortOrder) + 1; + newSortOrder = methodIndex === sortDirections.length ? undefined : sortDirections[methodIndex]; + } else { + newSortOrder = sortDirections[0]; + } + var newState = { + sSortOrder: newSortOrder, + sSortColumn: newSortOrder ? column : null + }; + + // Controlled + if (this.getSortOrderColumns().length === 0) { + this.setState(newState); + } + this.$emit.apply(this, ['change'].concat((0, _toConsumableArray3['default'])(this.prepareParamsArguments((0, _extends5['default'])({}, this.$data, newState))))); + }, + handleFilter: function handleFilter(column, nextFilters) { + var _this5 = this; + + var props = this.$props; + var pagination = (0, _extends5['default'])({}, this.sPagination); + var filters = (0, _extends5['default'])({}, this.sFilters, (0, _defineProperty3['default'])({}, this.getColumnKey(column), nextFilters)); + // Remove filters not in current columns + var currentColumnKeys = []; + (0, _util.treeMap)(this.columns, function (c) { + if (!c.children) { + currentColumnKeys.push(_this5.getColumnKey(c)); + } + }); + Object.keys(filters).forEach(function (columnKey) { + if (currentColumnKeys.indexOf(columnKey) < 0) { + delete filters[columnKey]; + } + }); + + if (props.pagination) { + // Reset current prop + pagination.current = 1; + pagination.onChange(pagination.current); + } + + var newState = { + sPagination: pagination, + sFilters: {} + }; + var filtersToSetState = (0, _extends5['default'])({}, filters); + // Remove filters which is controlled + this.getFilteredValueColumns().forEach(function (col) { + var columnKey = _this5.getColumnKey(col); + if (columnKey) { + delete filtersToSetState[columnKey]; + } + }); + if (Object.keys(filtersToSetState).length > 0) { + newState.sFilters = filtersToSetState; + } + + // Controlled current prop will not respond user interaction + if ((0, _typeof3['default'])(props.pagination) === 'object' && 'current' in props.pagination) { + newState.sPagination = (0, _extends5['default'])({}, pagination, { + current: this.sPagination.current + }); + } + + this.setState(newState, function () { + _this5.store.setState({ + selectionDirty: false + }); + _this5.$emit.apply(_this5, ['change'].concat((0, _toConsumableArray3['default'])(_this5.prepareParamsArguments((0, _extends5['default'])({}, _this5.$data, { + sSelectionDirty: false, + sFilters: filters, + sPagination: pagination + }))))); + }); + }, + handleSelect: function handleSelect(record, rowIndex, e) { + var _this6 = this; + + var checked = e.target.checked; + var nativeEvent = e.nativeEvent; + var defaultSelection = this.store.getState().selectionDirty ? [] : this.getDefaultSelection(); + var selectedRowKeys = this.store.getState().selectedRowKeys.concat(defaultSelection); + var key = this.getRecordKey(record, rowIndex); + var pivot = this.$data.pivot; + + var rows = this.getFlatCurrentPageData(this.$props.childrenColumnName); + var realIndex = rowIndex; + if (this.$props.expandedRowRender) { + realIndex = rows.findIndex(function (row) { + return _this6.getRecordKey(row, rowIndex) === key; + }); + } + if (nativeEvent.shiftKey && pivot !== undefined && realIndex !== pivot) { + var changeRowKeys = []; + var direction = Math.sign(pivot - realIndex); + var dist = Math.abs(pivot - realIndex); + var step = 0; + + var _loop = function _loop() { + var i = realIndex + step * direction; + step += 1; + var row = rows[i]; + var rowKey = _this6.getRecordKey(row, i); + var checkboxProps = _this6.getCheckboxPropsByItem(row, i); + if (!checkboxProps.disabled) { + if (selectedRowKeys.includes(rowKey)) { + if (!checked) { + selectedRowKeys = selectedRowKeys.filter(function (j) { + return rowKey !== j; + }); + changeRowKeys.push(rowKey); + } + } else if (checked) { + selectedRowKeys.push(rowKey); + changeRowKeys.push(rowKey); + } + } + }; + + while (step <= dist) { + _loop(); + } + + this.setState({ pivot: realIndex }); + this.store.setState({ + selectionDirty: true + }); + this.setSelectedRowKeys(selectedRowKeys, { + selectWay: 'onSelectMultiple', + record: record, + checked: checked, + changeRowKeys: changeRowKeys, + nativeEvent: nativeEvent + }); + } else { + if (checked) { + selectedRowKeys.push(this.getRecordKey(record, realIndex)); + } else { + selectedRowKeys = selectedRowKeys.filter(function (i) { + return key !== i; + }); + } + this.setState({ pivot: realIndex }); + this.store.setState({ + selectionDirty: true + }); + this.setSelectedRowKeys(selectedRowKeys, { + selectWay: 'onSelect', + record: record, + checked: checked, + changeRowKeys: void 0, + nativeEvent: nativeEvent + }); + } + }, + handleRadioSelect: function handleRadioSelect(record, rowIndex, e) { + var checked = e.target.checked; + var nativeEvent = e.nativeEvent; + var key = this.getRecordKey(record, rowIndex); + var selectedRowKeys = [key]; + this.store.setState({ + selectionDirty: true + }); + this.setSelectedRowKeys(selectedRowKeys, { + selectWay: 'onSelect', + record: record, + checked: checked, + changeRowKeys: void 0, + nativeEvent: nativeEvent + }); + }, + handleSelectRow: function handleSelectRow(selectionKey, index, onSelectFunc) { + var _this7 = this; + + var data = this.getFlatCurrentPageData(this.$props.childrenColumnName); + var defaultSelection = this.store.getState().selectionDirty ? [] : this.getDefaultSelection(); + var selectedRowKeys = this.store.getState().selectedRowKeys.concat(defaultSelection); + var changeableRowKeys = data.filter(function (item, i) { + return !_this7.getCheckboxPropsByItem(item, i).props.disabled; + }).map(function (item, i) { + return _this7.getRecordKey(item, i); + }); + + var changeRowKeys = []; + var selectWay = 'onSelectAll'; + var checked = void 0; + // handle default selection + switch (selectionKey) { + case 'all': + changeableRowKeys.forEach(function (key) { + if (selectedRowKeys.indexOf(key) < 0) { + selectedRowKeys.push(key); + changeRowKeys.push(key); + } + }); + selectWay = 'onSelectAll'; + checked = true; + break; + case 'removeAll': + changeableRowKeys.forEach(function (key) { + if (selectedRowKeys.indexOf(key) >= 0) { + selectedRowKeys.splice(selectedRowKeys.indexOf(key), 1); + changeRowKeys.push(key); + } + }); + selectWay = 'onSelectAll'; + checked = false; + break; + case 'invert': + changeableRowKeys.forEach(function (key) { + if (selectedRowKeys.indexOf(key) < 0) { + selectedRowKeys.push(key); + } else { + selectedRowKeys.splice(selectedRowKeys.indexOf(key), 1); + } + changeRowKeys.push(key); + selectWay = 'onSelectInvert'; + }); + break; + default: + break; + } + + this.store.setState({ + selectionDirty: true + }); + // when select custom selection, callback selections[n].onSelect + var rowSelection = this.rowSelection; + + var customSelectionStartIndex = 2; + if (rowSelection && rowSelection.hideDefaultSelections) { + customSelectionStartIndex = 0; + } + if (index >= customSelectionStartIndex && typeof onSelectFunc === 'function') { + return onSelectFunc(changeableRowKeys); + } + this.setSelectedRowKeys(selectedRowKeys, { + selectWay: selectWay, + checked: checked, + changeRowKeys: changeRowKeys + }); + }, + handlePageChange: function handlePageChange(current) { + var props = this.$props; + var pagination = (0, _extends5['default'])({}, this.sPagination); + if (current) { + pagination.current = current; + } else { + pagination.current = pagination.current || 1; + } + + for (var _len = arguments.length, otherArguments = Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) { + otherArguments[_key - 1] = arguments[_key]; + } + + pagination.onChange.apply(pagination, [pagination.current].concat((0, _toConsumableArray3['default'])(otherArguments))); + + var newState = { + sPagination: pagination + }; + // Controlled current prop will not respond user interaction + if (props.pagination && (0, _typeof3['default'])(props.pagination) === 'object' && 'current' in props.pagination) { + newState.sPagination = (0, _extends5['default'])({}, pagination, { + current: this.sPagination.current + }); + } + this.setState(newState); + + this.store.setState({ + selectionDirty: false + }); + this.$emit.apply(this, ['change'].concat((0, _toConsumableArray3['default'])(this.prepareParamsArguments((0, _extends5['default'])({}, this.$data, { + sSelectionDirty: false, + sPagination: pagination + }))))); + }, + renderSelectionBox: function renderSelectionBox(type) { + var _this8 = this; + + var h = this.$createElement; + + return function (_, record, index) { + var rowKey = _this8.getRecordKey(record, index); // 从 1 开始 + var props = _this8.getCheckboxPropsByItem(record, index); + var handleChange = function handleChange(e) { + type === 'radio' ? _this8.handleRadioSelect(record, index, e) : _this8.handleSelect(record, index, e); + }; + var selectionBoxProps = (0, _propsUtil.mergeProps)({ + props: { + type: type, + store: _this8.store, + rowIndex: rowKey, + defaultSelection: _this8.getDefaultSelection() + }, + on: { + change: handleChange + } + }, props); + + return h( + 'span', + { + on: { + 'click': stopPropagation + } + }, + [h(_SelectionBox2['default'], selectionBoxProps)] + ); + }; + }, + getRecordKey: function getRecordKey(record, index) { + var rowKey = this.rowKey; + + var recordKey = typeof rowKey === 'function' ? rowKey(record, index) : record[rowKey]; + (0, _warning2['default'])(recordKey !== undefined, 'Each record in dataSource of table should have a unique `key` prop, or set `rowKey` of Table to an unique primary key,'); + return recordKey === undefined ? index : recordKey; + }, + getPopupContainer: function getPopupContainer() { + return this.$el; + }, + generatePopupContainerFunc: function generatePopupContainerFunc() { + var scroll = this.$props.scroll; + + // Use undefined to let rc component use default logic. + + return scroll ? this.getPopupContainer : undefined; + }, + renderRowSelection: function renderRowSelection(prefixCls, locale) { + var _this9 = this; + + var h = this.$createElement; + var rowSelection = this.rowSelection, + childrenColumnName = this.childrenColumnName; + + var columns = this.columns.concat(); + if (rowSelection) { + var data = this.getFlatCurrentPageData(childrenColumnName).filter(function (item, index) { + if (rowSelection.getCheckboxProps) { + return !_this9.getCheckboxPropsByItem(item, index).props.disabled; + } + return true; + }); + var selectionColumnClass = (0, _classnames2['default'])(prefixCls + '-selection-column', (0, _defineProperty3['default'])({}, prefixCls + '-selection-column-custom', rowSelection.selections)); + var selectionColumn = { + key: 'selection-column', + customRender: this.renderSelectionBox(rowSelection.type), + className: selectionColumnClass, + fixed: rowSelection.fixed, + width: rowSelection.columnWidth || ROW_SELECTION_COLUMN_WIDTH, + title: rowSelection.columnTitle + }; + if (rowSelection.type !== 'radio') { + var checkboxAllDisabled = data.every(function (item, index) { + return _this9.getCheckboxPropsByItem(item, index).props.disabled; + }); + selectionColumn.title = selectionColumn.title || h(_SelectionCheckboxAll2['default'], { + attrs: { + store: this.store, + locale: locale, + data: data, + getCheckboxPropsByItem: this.getCheckboxPropsByItem, + getRecordKey: this.getRecordKey, + disabled: checkboxAllDisabled, + prefixCls: prefixCls, + + selections: rowSelection.selections, + hideDefaultSelections: rowSelection.hideDefaultSelections, + getPopupContainer: this.generatePopupContainerFunc() + }, + on: { + 'select': this.handleSelectRow + } + }); + } + if ('fixed' in rowSelection) { + selectionColumn.fixed = rowSelection.fixed; + } else if (columns.some(function (column) { + return column.fixed === 'left' || column.fixed === true; + })) { + selectionColumn.fixed = 'left'; + } + if (columns[0] && columns[0].key === 'selection-column') { + columns[0] = selectionColumn; + } else { + columns.unshift(selectionColumn); + } + } + return columns; + }, + getColumnKey: function getColumnKey(column, index) { + return column.key || column.dataIndex || index; + }, + getMaxCurrent: function getMaxCurrent(total) { + var _sPagination = this.sPagination, + current = _sPagination.current, + pageSize = _sPagination.pageSize; + + if ((current - 1) * pageSize >= total) { + return Math.floor((total - 1) / pageSize) + 1; + } + return current; + }, + isSortColumn: function isSortColumn(column) { + var sortColumn = this.sSortColumn; + + if (!column || !sortColumn) { + return false; + } + return this.getColumnKey(sortColumn) === this.getColumnKey(column); + }, + renderColumnsDropdown: function renderColumnsDropdown(prefixCls, dropdownPrefixCls, columns, locale) { + var _this10 = this; + + var h = this.$createElement; + var sortOrder = this.sSortOrder, + filters = this.sFilters; + + return (0, _util.treeMap)(columns, function (column, i) { + var _classNames2; + + var key = _this10.getColumnKey(column, i); + var filterDropdown = void 0; + var sortButton = void 0; + var customHeaderCell = column.customHeaderCell; + var title = _this10.renderColumnTitle(column.title); + var isSortColumn = _this10.isSortColumn(column); + if (column.filters && column.filters.length > 0 || column.filterDropdown) { + var colFilters = key in filters ? filters[key] : []; + filterDropdown = h(_filterDropdown2['default'], { + attrs: { + _propsSymbol: Symbol(), + locale: locale, + column: column, + selectedKeys: colFilters, + confirmFilter: _this10.handleFilter, + prefixCls: prefixCls + '-filter', + dropdownPrefixCls: dropdownPrefixCls || 'ant-dropdown', + getPopupContainer: _this10.generatePopupContainerFunc() + }, + key: 'filter-dropdown' + }); + } + if (column.sorter) { + var sortDirections = column.sortDirections || _this10.sortDirections; + var isAscend = isSortColumn && sortOrder === 'ascend'; + var isDescend = isSortColumn && sortOrder === 'descend'; + var ascend = sortDirections.indexOf('ascend') !== -1 && h(_icon2['default'], { + 'class': prefixCls + '-column-sorter-up ' + (isAscend ? 'on' : 'off'), + attrs: { type: 'caret-up', + theme: 'filled' + }, + key: 'caret-up' + }); + + var descend = sortDirections.indexOf('descend') !== -1 && h(_icon2['default'], { + 'class': prefixCls + '-column-sorter-down ' + (isDescend ? 'on' : 'off'), + attrs: { type: 'caret-down', + theme: 'filled' + }, + key: 'caret-down' + }); + + sortButton = h( + 'div', + { + attrs: { title: locale.sortTitle }, + 'class': prefixCls + '-column-sorter', key: 'sorter' }, + [ascend, descend] + ); + customHeaderCell = function customHeaderCell(col) { + var colProps = {}; + // Get original first + if (column.customHeaderCell) { + colProps = (0, _extends5['default'])({}, column.customHeaderCell(col)); + } + colProps.on = colProps.on || {}; + // Add sorter logic + var onHeaderCellClick = colProps.on.click; + colProps.on.click = function () { + _this10.toggleSortOrder(column); + if (onHeaderCellClick) { + onHeaderCellClick.apply(undefined, arguments); + } + }; + return colProps; + }; + } + return (0, _extends5['default'])({}, column, { + className: (0, _classnames2['default'])(column.className, (_classNames2 = {}, (0, _defineProperty3['default'])(_classNames2, prefixCls + '-column-has-actions', sortButton || filterDropdown), (0, _defineProperty3['default'])(_classNames2, prefixCls + '-column-has-filters', filterDropdown), (0, _defineProperty3['default'])(_classNames2, prefixCls + '-column-has-sorters', sortButton), (0, _defineProperty3['default'])(_classNames2, prefixCls + '-column-sort', isSortColumn && sortOrder), _classNames2)), + title: [h( + 'div', + { key: 'title', 'class': sortButton ? prefixCls + '-column-sorters' : undefined }, + [title, sortButton] + ), filterDropdown], + customHeaderCell: customHeaderCell + }); + }); + }, + renderColumnTitle: function renderColumnTitle(title) { + var _$data = this.$data, + filters = _$data.sFilters, + sortOrder = _$data.sSortOrder; + // https://github.com/ant-design/ant-design/issues/11246#issuecomment-405009167 + + if (title instanceof Function) { + return title({ + filters: filters, + sortOrder: sortOrder + }); + } + return title; + }, + handleShowSizeChange: function handleShowSizeChange(current, pageSize) { + var pagination = this.sPagination; + pagination.onShowSizeChange(current, pageSize); + var nextPagination = (0, _extends5['default'])({}, pagination, { + pageSize: pageSize, + current: current + }); + this.setState({ sPagination: nextPagination }); + this.$emit.apply(this, ['change'].concat((0, _toConsumableArray3['default'])(this.prepareParamsArguments((0, _extends5['default'])({}, this.$data, { + sPagination: nextPagination + }))))); + }, + renderPagination: function renderPagination(prefixCls, paginationPosition) { + var h = this.$createElement; + + // 强制不需要分页 + if (!this.hasPagination()) { + return null; + } + var size = 'default'; + var pagination = this.sPagination; + + if (pagination.size) { + size = pagination.size; + } else if (this.size === 'middle' || this.size === 'small') { + size = 'small'; + } + var position = pagination.position || 'bottom'; + var total = pagination.total || this.getLocalData().length; + var cls = pagination['class'], + style = pagination.style, + onChange = pagination.onChange, + onShowSizeChange = pagination.onShowSizeChange, + restProps = (0, _objectWithoutProperties3['default'])(pagination, ['class', 'style', 'onChange', 'onShowSizeChange']); // eslint-disable-line + + var paginationProps = (0, _propsUtil.mergeProps)({ + key: 'pagination-' + paginationPosition, + 'class': (0, _classnames2['default'])(cls, prefixCls + '-pagination'), + props: (0, _extends5['default'])({}, restProps, { + total: total, + size: size, + current: this.getMaxCurrent(total) + }), + style: style, + on: { + change: this.handlePageChange, + showSizeChange: this.handleShowSizeChange + } + }); + return total > 0 && (position === paginationPosition || position === 'both') ? h(_pagination2['default'], paginationProps) : null; + }, + + + // Get pagination, filters, sorter + prepareParamsArguments: function prepareParamsArguments(state) { + var pagination = (0, _extends5['default'])({}, state.sPagination); + // remove useless handle function in Table.onChange + delete pagination.onChange; + delete pagination.onShowSizeChange; + var filters = state.sFilters; + var sorter = {}; + if (state.sSortColumn && state.sSortOrder) { + sorter.column = state.sSortColumn; + sorter.order = state.sSortOrder; + sorter.field = state.sSortColumn.dataIndex; + sorter.columnKey = this.getColumnKey(state.sSortColumn); + } + var extra = { + currentDataSource: this.getLocalData(state) + }; + + return [pagination, filters, sorter, extra]; + }, + findColumn: function findColumn(myKey) { + var _this11 = this; + + var column = void 0; + (0, _util.treeMap)(this.columns, function (c) { + if (_this11.getColumnKey(c) === myKey) { + column = c; + } + }); + return column; + }, + getCurrentPageData: function getCurrentPageData() { + var data = this.getLocalData(); + var current = void 0; + var pageSize = void 0; + var sPagination = this.sPagination; + // 如果没有分页的话,默认全部展示 + if (!this.hasPagination()) { + pageSize = Number.MAX_VALUE; + current = 1; + } else { + pageSize = sPagination.pageSize; + current = this.getMaxCurrent(sPagination.total || data.length); + } + + // 分页 + // --- + // 当数据量少于等于每页数量时,直接设置数据 + // 否则进行读取分页数据 + if (data.length > pageSize || pageSize === Number.MAX_VALUE) { + data = data.filter(function (_, i) { + return i >= (current - 1) * pageSize && i < current * pageSize; + }); + } + return data; + }, + getFlatData: function getFlatData() { + return (0, _util.flatArray)(this.getLocalData(null, false)); + }, + getFlatCurrentPageData: function getFlatCurrentPageData(childrenColumnName) { + return (0, _util.flatArray)(this.getCurrentPageData(), childrenColumnName); + }, + recursiveSort: function recursiveSort(data, sorterFn) { + var _this12 = this; + + var _childrenColumnName = this.childrenColumnName, + childrenColumnName = _childrenColumnName === undefined ? 'children' : _childrenColumnName; + + return data.sort(sorterFn).map(function (item) { + return item[childrenColumnName] ? (0, _extends5['default'])({}, item, (0, _defineProperty3['default'])({}, childrenColumnName, _this12.recursiveSort(item[childrenColumnName], sorterFn))) : item; + }); + }, + getLocalData: function getLocalData(state) { + var _this13 = this; + + var filter = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : true; + + var currentState = state || this.$data; + var filters = currentState.sFilters; + var dataSource = this.$props.dataSource; + + var data = dataSource || []; + // 优化本地排序 + data = data.slice(0); + var sorterFn = this.getSorterFn(currentState); + if (sorterFn) { + data = this.recursiveSort(data, sorterFn); + } + // 筛选 + if (filter && filters) { + Object.keys(filters).forEach(function (columnKey) { + var col = _this13.findColumn(columnKey); + if (!col) { + return; + } + var values = filters[columnKey] || []; + if (values.length === 0) { + return; + } + var onFilter = col.onFilter; + data = onFilter ? data.filter(function (record) { + return values.some(function (v) { + return onFilter(v, record); + }); + }) : data; + }); + } + return data; + }, + createComponents: function createComponents() { + var components = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {}; + var prevComponents = arguments[1]; + + var bodyRow = components && components.body && components.body.row; + var preBodyRow = prevComponents && prevComponents.body && prevComponents.body.row; + if (!this.row || bodyRow !== preBodyRow) { + this.row = (0, _createBodyRow2['default'])(bodyRow); + } + this.customComponents = (0, _extends5['default'])({}, components, { + body: (0, _extends5['default'])({}, components.body, { + row: this.row + }) + }); + }, + renderTable: function renderTable(prefixCls, renderEmpty, dropdownPrefixCls, contextLocale, loading) { + var _classNames3, + _this14 = this; + + var h = this.$createElement; + + var locale = (0, _extends5['default'])({}, contextLocale, this.locale); + + var _getOptionProps = (0, _propsUtil.getOptionProps)(this), + showHeader = _getOptionProps.showHeader, + restProps = (0, _objectWithoutProperties3['default'])(_getOptionProps, ['showHeader']); + + var data = this.getCurrentPageData(); + var expandIconAsCell = this.expandedRowRender && this.expandIconAsCell !== false; + + var mergedLocale = (0, _extends5['default'])({}, contextLocale, locale); + if (!locale || !locale.emptyText) { + mergedLocale.emptyText = renderEmpty(h, 'Table'); + } + + var classString = (0, _classnames2['default'])((_classNames3 = {}, (0, _defineProperty3['default'])(_classNames3, prefixCls + '-' + this.size, true), (0, _defineProperty3['default'])(_classNames3, prefixCls + '-bordered', this.bordered), (0, _defineProperty3['default'])(_classNames3, prefixCls + '-empty', !data.length), (0, _defineProperty3['default'])(_classNames3, prefixCls + '-without-column-header', !showHeader), _classNames3)); + + var columns = this.renderRowSelection(prefixCls, mergedLocale); + columns = this.renderColumnsDropdown(prefixCls, dropdownPrefixCls, columns, mergedLocale); + columns = columns.map(function (column, i) { + var newColumn = (0, _extends5['default'])({}, column); + newColumn.key = _this14.getColumnKey(newColumn, i); + return newColumn; + }); + var expandIconColumnIndex = columns[0] && columns[0].key === 'selection-column' ? 1 : 0; + if ('expandIconColumnIndex' in restProps) { + expandIconColumnIndex = restProps.expandIconColumnIndex; + } + var vcTableProps = { + key: 'table', + props: (0, _extends5['default'])({}, restProps, { + customRow: function customRow(record, index) { + return _this14.onRow(prefixCls, record, index); + }, + components: this.customComponents, + prefixCls: prefixCls, + data: data, + columns: columns, + showHeader: showHeader, + expandIconColumnIndex: expandIconColumnIndex, + expandIconAsCell: expandIconAsCell, + emptyText: !(loading.props && loading.props.spinning) && mergedLocale.emptyText + }), + on: this.$listeners, + 'class': classString + }; + return h(_vcTable2['default'], vcTableProps); + } + }, + + render: function render() { + var _this15 = this; + + var h = arguments[0]; + var customizePrefixCls = this.prefixCls, + customizeDropdownPrefixCls = this.dropdownPrefixCls; + + var data = this.getCurrentPageData(); + + var loading = this.loading; + if (typeof loading === 'boolean') { + loading = { + props: { + spinning: loading + } + }; + } else { + loading = { + props: (0, _extends5['default'])({}, loading) + }; + } + var getPrefixCls = this.configProvider.getPrefixCls; + var renderEmpty = this.configProvider.renderEmpty; + + var prefixCls = getPrefixCls('table', customizePrefixCls); + var dropdownPrefixCls = getPrefixCls('dropdown', customizeDropdownPrefixCls); + + var table = h(_LocaleReceiver2['default'], { + attrs: { + componentName: 'Table', + defaultLocale: _default3['default'].Table, + children: function children(locale) { + return _this15.renderTable(prefixCls, renderEmpty, dropdownPrefixCls, locale, loading); + } + } + }); + + // if there is no pagination or no data, + // the height of spin should decrease by half of pagination + var paginationPatchClass = this.hasPagination() && data && data.length !== 0 ? prefixCls + '-with-pagination' : prefixCls + '-without-pagination'; + var spinProps = (0, _extends5['default'])({}, loading, { + 'class': loading.props && loading.props.spinning ? paginationPatchClass + ' ' + prefixCls + '-spin-holder' : '' + }); + return h( + 'div', + { 'class': (0, _classnames2['default'])(prefixCls + '-wrapper') }, + [h( + _spin2['default'], + spinProps, + [this.renderPagination(prefixCls, 'top'), table, this.renderPagination(prefixCls, 'bottom')] + )] + ); + } +}; + +/***/ }), + +/***/ "./node_modules/ant-design-vue/lib/table/createBodyRow.js": +/*!****************************************************************!*\ + !*** ./node_modules/ant-design-vue/lib/table/createBodyRow.js ***! + \****************************************************************/ +/*! no static exports found */ +/***/ (function(module, exports, __webpack_require__) { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", { + value: true +}); + +var _babelHelperVueJsxMergeProps = __webpack_require__(/*! babel-helper-vue-jsx-merge-props */ "./node_modules/babel-helper-vue-jsx-merge-props/index.js"); + +var _babelHelperVueJsxMergeProps2 = _interopRequireDefault(_babelHelperVueJsxMergeProps); + +var _defineProperty2 = __webpack_require__(/*! babel-runtime/helpers/defineProperty */ "./node_modules/babel-runtime/helpers/defineProperty.js"); + +var _defineProperty3 = _interopRequireDefault(_defineProperty2); + +exports['default'] = createTableRow; + +var _vueTypes = __webpack_require__(/*! ../_util/vue-types */ "./node_modules/ant-design-vue/lib/_util/vue-types/index.js"); + +var _vueTypes2 = _interopRequireDefault(_vueTypes); + +var _createStore = __webpack_require__(/*! ./createStore */ "./node_modules/ant-design-vue/lib/table/createStore.js"); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } + +var BodyRowProps = { + store: _createStore.Store, + rowKey: _vueTypes2['default'].oneOfType([_vueTypes2['default'].string, _vueTypes2['default'].number]), + prefixCls: _vueTypes2['default'].string +}; + +function createTableRow() { + var Component = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 'tr'; + + var BodyRow = { + name: 'BodyRow', + props: BodyRowProps, + data: function data() { + var _store$getState = this.store.getState(), + selectedRowKeys = _store$getState.selectedRowKeys; + + return { + selected: selectedRowKeys.indexOf(this.rowKey) >= 0 + }; + }, + mounted: function mounted() { + this.subscribe(); + }, + beforeDestroy: function beforeDestroy() { + if (this.unsubscribe) { + this.unsubscribe(); + } + }, + + methods: { + subscribe: function subscribe() { + var _this = this; + + var store = this.store, + rowKey = this.rowKey; + + this.unsubscribe = store.subscribe(function () { + var _store$getState2 = _this.store.getState(), + selectedRowKeys = _store$getState2.selectedRowKeys; + + var selected = selectedRowKeys.indexOf(rowKey) >= 0; + if (selected !== _this.selected) { + _this.selected = selected; + } + }); + } + }, + + render: function render() { + var h = arguments[0]; + + var className = (0, _defineProperty3['default'])({}, this.prefixCls + '-row-selected', this.selected); + + return h( + Component, + (0, _babelHelperVueJsxMergeProps2['default'])([{ 'class': className }, { on: this.$listeners }]), + [this.$slots['default']] + ); + } + }; + + return BodyRow; +} + +/***/ }), + +/***/ "./node_modules/ant-design-vue/lib/table/createStore.js": +/*!**************************************************************!*\ + !*** ./node_modules/ant-design-vue/lib/table/createStore.js ***! + \**************************************************************/ +/*! no static exports found */ +/***/ (function(module, exports, __webpack_require__) { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.Store = undefined; + +var _vueTypes = __webpack_require__(/*! ../_util/vue-types */ "./node_modules/ant-design-vue/lib/_util/vue-types/index.js"); + +var _vueTypes2 = _interopRequireDefault(_vueTypes); + +var _create = __webpack_require__(/*! ../_util/store/create */ "./node_modules/ant-design-vue/lib/_util/store/create.js"); + +var _create2 = _interopRequireDefault(_create); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } + +var Store = exports.Store = _vueTypes2['default'].shape({ + setState: _vueTypes2['default'].func, + getState: _vueTypes2['default'].func, + subscribe: _vueTypes2['default'].func +}).loose; + +var createStore = _create2['default']; + +exports['default'] = createStore; + +/***/ }), + +/***/ "./node_modules/ant-design-vue/lib/table/filterDropdown.js": +/*!*****************************************************************!*\ + !*** ./node_modules/ant-design-vue/lib/table/filterDropdown.js ***! + \*****************************************************************/ +/*! no static exports found */ +/***/ (function(module, exports, __webpack_require__) { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", { + value: true +}); + +var _defineProperty2 = __webpack_require__(/*! babel-runtime/helpers/defineProperty */ "./node_modules/babel-runtime/helpers/defineProperty.js"); + +var _defineProperty3 = _interopRequireDefault(_defineProperty2); + +var _extends2 = __webpack_require__(/*! babel-runtime/helpers/extends */ "./node_modules/babel-runtime/helpers/extends.js"); + +var _extends3 = _interopRequireDefault(_extends2); + +var _vcMenu = __webpack_require__(/*! ../vc-menu */ "./node_modules/ant-design-vue/lib/vc-menu/index.js"); + +var _vcMenu2 = _interopRequireDefault(_vcMenu); + +var _domClosest = __webpack_require__(/*! dom-closest */ "./node_modules/dom-closest/index.js"); + +var _domClosest2 = _interopRequireDefault(_domClosest); + +var _classnames = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js"); + +var _classnames2 = _interopRequireDefault(_classnames); + +var _shallowequal = __webpack_require__(/*! shallowequal */ "./node_modules/shallowequal/index.js"); + +var _shallowequal2 = _interopRequireDefault(_shallowequal); + +var _dropdown = __webpack_require__(/*! ../dropdown */ "./node_modules/ant-design-vue/lib/dropdown/index.js"); + +var _dropdown2 = _interopRequireDefault(_dropdown); + +var _icon = __webpack_require__(/*! ../icon */ "./node_modules/ant-design-vue/lib/icon/index.js"); + +var _icon2 = _interopRequireDefault(_icon); + +var _checkbox = __webpack_require__(/*! ../checkbox */ "./node_modules/ant-design-vue/lib/checkbox/index.js"); + +var _checkbox2 = _interopRequireDefault(_checkbox); + +var _radio = __webpack_require__(/*! ../radio */ "./node_modules/ant-design-vue/lib/radio/index.js"); + +var _radio2 = _interopRequireDefault(_radio); + +var _FilterDropdownMenuWrapper = __webpack_require__(/*! ./FilterDropdownMenuWrapper */ "./node_modules/ant-design-vue/lib/table/FilterDropdownMenuWrapper.js"); + +var _FilterDropdownMenuWrapper2 = _interopRequireDefault(_FilterDropdownMenuWrapper); + +var _interface = __webpack_require__(/*! ./interface */ "./node_modules/ant-design-vue/lib/table/interface.js"); + +var _propsUtil = __webpack_require__(/*! ../_util/props-util */ "./node_modules/ant-design-vue/lib/_util/props-util.js"); + +var _vnode = __webpack_require__(/*! ../_util/vnode */ "./node_modules/ant-design-vue/lib/_util/vnode.js"); + +var _BaseMixin = __webpack_require__(/*! ../_util/BaseMixin */ "./node_modules/ant-design-vue/lib/_util/BaseMixin.js"); + +var _BaseMixin2 = _interopRequireDefault(_BaseMixin); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } + +function stopPropagation(e) { + e.stopPropagation(); +} + +exports['default'] = { + name: 'FilterMenu', + mixins: [_BaseMixin2['default']], + props: (0, _propsUtil.initDefaultProps)(_interface.FilterMenuProps, { + handleFilter: function handleFilter() {}, + + column: {} + }), + + data: function data() { + var visible = 'filterDropdownVisible' in this.column ? this.column.filterDropdownVisible : false; + this.preProps = (0, _extends3['default'])({}, (0, _propsUtil.getOptionProps)(this)); + return { + sSelectedKeys: this.selectedKeys, + sKeyPathOfSelectedItem: {}, // 记录所有有选中子菜单的祖先菜单 + sVisible: visible + }; + }, + + watch: { + _propsSymbol: function _propsSymbol() { + var nextProps = (0, _propsUtil.getOptionProps)(this); + var column = nextProps.column; + + this.setNeverShown(column); + var newState = {}; + + /** + * if the state is visible the component should ignore updates on selectedKeys prop to avoid + * that the user selection is lost + * this happens frequently when a table is connected on some sort of realtime data + * Fixes https://github.com/ant-design/ant-design/issues/10289 and + * https://github.com/ant-design/ant-design/issues/10209 + */ + if ('selectedKeys' in nextProps && !(0, _shallowequal2['default'])(this.preProps.selectedKeys, nextProps.selectedKeys)) { + newState.sSelectedKeys = nextProps.selectedKeys; + } + if ('filterDropdownVisible' in column) { + newState.sVisible = column.filterDropdownVisible; + } + if (Object.keys(newState).length > 0) { + this.setState(newState); + } + this.preProps = (0, _extends3['default'])({}, nextProps); + } + }, + + mounted: function mounted() { + var _this = this; + + var column = this.column; + + this.$nextTick(function () { + _this.setNeverShown(column); + }); + }, + + methods: { + getDropdownVisible: function getDropdownVisible() { + return this.neverShown ? false : this.sVisible; + }, + setNeverShown: function setNeverShown(column) { + var rootNode = this.$el; + var filterBelongToScrollBody = !!(0, _domClosest2['default'])(rootNode, '.ant-table-scroll'); + if (filterBelongToScrollBody) { + // When fixed column have filters, there will be two dropdown menus + // Filter dropdown menu inside scroll body should never be shown + // To fix https://github.com/ant-design/ant-design/issues/5010 and + // https://github.com/ant-design/ant-design/issues/7909 + this.neverShown = !!column.fixed; + } + }, + setSelectedKeys: function setSelectedKeys(_ref) { + var selectedKeys = _ref.selectedKeys; + + this.setState({ sSelectedKeys: selectedKeys }); + }, + setVisible: function setVisible(visible) { + var column = this.column; + + if (!('filterDropdownVisible' in column)) { + this.setState({ sVisible: visible }); + } + if (column.onFilterDropdownVisibleChange) { + column.onFilterDropdownVisibleChange(visible); + } + }, + handleClearFilters: function handleClearFilters() { + this.setState({ + sSelectedKeys: [] + }, this.handleConfirm); + }, + handleConfirm: function handleConfirm() { + var _this2 = this; + + this.setVisible(false); + this.confirmFilter2(); + // Call `setSelectedKeys` & `confirm` in the same time will make filter data not up to date + // https://github.com/ant-design/ant-design/issues/12284 + this.$forceUpdate(); + this.$nextTick(function () { + _this2.confirmFilter; + }); + }, + onVisibleChange: function onVisibleChange(visible) { + this.setVisible(visible); + if (!visible) { + this.confirmFilter2(); + } + }, + confirmFilter2: function confirmFilter2() { + if (!(0, _shallowequal2['default'])(this.sSelectedKeys, this.selectedKeys)) { + this.confirmFilter(this.column, this.sSelectedKeys); + } + }, + renderMenuItem: function renderMenuItem(item) { + var h = this.$createElement; + var column = this.column; + var selectedKeys = this.$data.sSelectedKeys; + + var multiple = 'filterMultiple' in column ? column.filterMultiple : true; + var input = multiple ? h(_checkbox2['default'], { + attrs: { checked: selectedKeys && selectedKeys.indexOf(item.value.toString()) >= 0 } + }) : h(_radio2['default'], { + attrs: { checked: selectedKeys && selectedKeys.indexOf(item.value.toString()) >= 0 } + }); + + return h( + _vcMenu.Item, + { key: item.value }, + [input, h('span', [item.text])] + ); + }, + hasSubMenu: function hasSubMenu() { + var _column$filters = this.column.filters, + filters = _column$filters === undefined ? [] : _column$filters; + + return filters.some(function (item) { + return !!(item.children && item.children.length > 0); + }); + }, + renderMenus: function renderMenus(items) { + var _this3 = this; + + var h = this.$createElement; + + return items.map(function (item) { + if (item.children && item.children.length > 0) { + var sKeyPathOfSelectedItem = _this3.sKeyPathOfSelectedItem; + + var containSelected = Object.keys(sKeyPathOfSelectedItem).some(function (key) { + return sKeyPathOfSelectedItem[key].indexOf(item.value) >= 0; + }); + var subMenuCls = containSelected ? _this3.dropdownPrefixCls + '-submenu-contain-selected' : ''; + return h( + _vcMenu.SubMenu, + { + attrs: { title: item.text }, + 'class': subMenuCls, key: item.value.toString() }, + [_this3.renderMenus(item.children)] + ); + } + return _this3.renderMenuItem(item); + }); + }, + handleMenuItemClick: function handleMenuItemClick(info) { + var selectedKeys = this.$data.sSelectedKeys; + + if (!info.keyPath || info.keyPath.length <= 1) { + return; + } + var keyPathOfSelectedItem = this.sKeyPathOfSelectedItem; + if (selectedKeys && selectedKeys.indexOf(info.key) >= 0) { + // deselect SubMenu child + delete keyPathOfSelectedItem[info.key]; + } else { + // select SubMenu child + keyPathOfSelectedItem[info.key] = info.keyPath; + } + this.setState({ keyPathOfSelectedItem: keyPathOfSelectedItem }); + }, + renderFilterIcon: function renderFilterIcon() { + var _classNames; + + var h = this.$createElement; + var column = this.column, + locale = this.locale, + prefixCls = this.prefixCls, + selectedKeys = this.selectedKeys; + + var filtered = selectedKeys && selectedKeys.length > 0; + var filterIcon = column.filterIcon; + if (typeof filterIcon === 'function') { + filterIcon = filterIcon(filtered, column); + } + var dropdownIconClass = (0, _classnames2['default'])((_classNames = {}, (0, _defineProperty3['default'])(_classNames, prefixCls + '-selected', filtered), (0, _defineProperty3['default'])(_classNames, prefixCls + '-open', this.getDropdownVisible()), _classNames)); + + return filterIcon ? (0, _vnode.cloneElement)(filterIcon, { + attrs: { + title: locale.filterTitle + }, + on: { + click: stopPropagation + }, + 'class': (0, _classnames2['default'])(prefixCls + '-icon', dropdownIconClass) + }) : h(_icon2['default'], { + attrs: { + title: locale.filterTitle, + type: 'filter', + theme: 'filled' + }, + 'class': dropdownIconClass, + on: { + 'click': stopPropagation + } + }); + } + }, + + render: function render() { + var _this4 = this; + + var h = arguments[0]; + var column = this.column, + locale = this.locale, + prefixCls = this.prefixCls, + dropdownPrefixCls = this.dropdownPrefixCls, + getPopupContainer = this.getPopupContainer; + // default multiple selection in filter dropdown + + var multiple = 'filterMultiple' in column ? column.filterMultiple : true; + var dropdownMenuClass = (0, _classnames2['default'])((0, _defineProperty3['default'])({}, dropdownPrefixCls + '-menu-without-submenu', !this.hasSubMenu())); + var filterDropdown = column.filterDropdown; + + if (filterDropdown instanceof Function) { + filterDropdown = filterDropdown({ + prefixCls: dropdownPrefixCls + '-custom', + setSelectedKeys: function setSelectedKeys(selectedKeys) { + return _this4.setSelectedKeys({ selectedKeys: selectedKeys }); + }, + selectedKeys: this.sSelectedKeys, + confirm: this.handleConfirm, + clearFilters: this.handleClearFilters, + filters: column.filters, + getPopupContainer: function getPopupContainer(triggerNode) { + return triggerNode.parentNode; + }, + column: column + }); + } + + var menus = filterDropdown ? h( + _FilterDropdownMenuWrapper2['default'], + { 'class': prefixCls + '-dropdown' }, + [filterDropdown] + ) : h( + _FilterDropdownMenuWrapper2['default'], + { 'class': prefixCls + '-dropdown' }, + [h( + _vcMenu2['default'], + { + attrs: { + multiple: multiple, + + prefixCls: dropdownPrefixCls + '-menu', + + selectedKeys: this.sSelectedKeys, + getPopupContainer: function getPopupContainer(triggerNode) { + return triggerNode.parentNode; + } + }, + on: { + 'click': this.handleMenuItemClick, + 'select': this.setSelectedKeys, + 'deselect': this.setSelectedKeys + }, + 'class': dropdownMenuClass + }, + [this.renderMenus(column.filters)] + ), h( + 'div', + { 'class': prefixCls + '-dropdown-btns' }, + [h( + 'a', + { 'class': prefixCls + '-dropdown-link confirm', on: { + 'click': this.handleConfirm + } + }, + [locale.filterConfirm] + ), h( + 'a', + { 'class': prefixCls + '-dropdown-link clear', on: { + 'click': this.handleClearFilters + } + }, + [locale.filterReset] + )] + )] + ); + + return h( + _dropdown2['default'], + { + attrs: { + trigger: ['click'], + placement: 'bottomRight', + visible: this.getDropdownVisible(), + + getPopupContainer: getPopupContainer, + forceRender: true + }, + on: { + 'visibleChange': this.onVisibleChange + } + }, + [h( + 'template', + { slot: 'overlay' }, + [menus] + ), this.renderFilterIcon()] + ); + } +}; + +/***/ }), + +/***/ "./node_modules/ant-design-vue/lib/table/index.js": +/*!********************************************************!*\ + !*** ./node_modules/ant-design-vue/lib/table/index.js ***! + \********************************************************/ +/*! no static exports found */ +/***/ (function(module, exports, __webpack_require__) { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", { + value: true +}); + +var _extends2 = __webpack_require__(/*! babel-runtime/helpers/extends */ "./node_modules/babel-runtime/helpers/extends.js"); + +var _extends3 = _interopRequireDefault(_extends2); + +var _objectWithoutProperties2 = __webpack_require__(/*! babel-runtime/helpers/objectWithoutProperties */ "./node_modules/babel-runtime/helpers/objectWithoutProperties.js"); + +var _objectWithoutProperties3 = _interopRequireDefault(_objectWithoutProperties2); + +var _Table = __webpack_require__(/*! ./Table */ "./node_modules/ant-design-vue/lib/table/Table.js"); + +var _Table2 = _interopRequireDefault(_Table); + +var _propsUtil = __webpack_require__(/*! ../_util/props-util */ "./node_modules/ant-design-vue/lib/_util/props-util.js"); + +var _base = __webpack_require__(/*! ../base */ "./node_modules/ant-design-vue/lib/base/index.js"); + +var _base2 = _interopRequireDefault(_base); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } + +var Table = { + name: 'ATable', + Column: _Table2['default'].Column, + ColumnGroup: _Table2['default'].ColumnGroup, + props: _Table2['default'].props, + methods: { + normalize: function normalize() { + var _this = this; + + var elements = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : []; + + var columns = []; + elements.forEach(function (element) { + if (!element.tag) { + return; + } + var key = (0, _propsUtil.getKey)(element); + var style = (0, _propsUtil.getStyle)(element); + var cls = (0, _propsUtil.getClass)(element); + var props = (0, _propsUtil.getOptionProps)(element); + var events = (0, _propsUtil.getEvents)(element); + var listeners = {}; + Object.keys(events).forEach(function (e) { + var k = 'on-' + e; + listeners[(0, _propsUtil.camelize)(k)] = events[e]; + }); + + var _getSlots = (0, _propsUtil.getSlots)(element), + children = _getSlots['default'], + restSlots = (0, _objectWithoutProperties3['default'])(_getSlots, ['default']); + + var column = (0, _extends3['default'])({}, restSlots, props, { style: style, 'class': cls }, listeners); + if (key) { + column.key = key; + } + if ((0, _propsUtil.getSlotOptions)(element).__ANT_TABLE_COLUMN_GROUP) { + column.children = _this.normalize(typeof children === 'function' ? children() : children); + } else { + var customRender = element.data && element.data.scopedSlots && element.data.scopedSlots['default']; + column.customRender = column.customRender || customRender; + } + columns.push(column); + }); + return columns; + }, + updateColumns: function updateColumns() { + var _this2 = this; + + var cols = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : []; + + var columns = []; + var $slots = this.$slots, + $scopedSlots = this.$scopedSlots; + + cols.forEach(function (col) { + var _col$slots = col.slots, + slots = _col$slots === undefined ? {} : _col$slots, + _col$scopedSlots = col.scopedSlots, + scopedSlots = _col$scopedSlots === undefined ? {} : _col$scopedSlots, + restProps = (0, _objectWithoutProperties3['default'])(col, ['slots', 'scopedSlots']); + + var column = (0, _extends3['default'])({}, restProps); + Object.keys(slots).forEach(function (key) { + var name = slots[key]; + if (column[key] === undefined && $slots[name]) { + column[key] = $slots[name].length === 1 ? $slots[name][0] : $slots[name]; + } + }); + Object.keys(scopedSlots).forEach(function (key) { + var name = scopedSlots[key]; + if (column[key] === undefined && $scopedSlots[name]) { + column[key] = $scopedSlots[name]; + } + }); + // if (slotScopeName && $scopedSlots[slotScopeName]) { + // column.customRender = column.customRender || $scopedSlots[slotScopeName] + // } + if (col.children) { + column.children = _this2.updateColumns(column.children); + } + columns.push(column); + }); + return columns; + } + }, + render: function render() { + var h = arguments[0]; + var $listeners = this.$listeners, + $slots = this.$slots, + normalize = this.normalize, + $scopedSlots = this.$scopedSlots; + + var props = (0, _propsUtil.getOptionProps)(this); + var columns = props.columns ? this.updateColumns(props.columns) : normalize($slots['default']); + var title = props.title, + footer = props.footer; + var slotTitle = $scopedSlots.title, + slotFooter = $scopedSlots.footer, + _$scopedSlots$expande = $scopedSlots.expandedRowRender, + expandedRowRender = _$scopedSlots$expande === undefined ? props.expandedRowRender : _$scopedSlots$expande; + + title = title || slotTitle; + footer = footer || slotFooter; + var tProps = { + props: (0, _extends3['default'])({}, props, { + columns: columns, + title: title, + footer: footer, + expandedRowRender: expandedRowRender + }), + on: $listeners + }; + return h(_Table2['default'], tProps); + } +}; +/* istanbul ignore next */ +Table.install = function (Vue) { + Vue.use(_base2['default']); + Vue.component(Table.name, Table); + Vue.component(Table.Column.name, Table.Column); + Vue.component(Table.ColumnGroup.name, Table.ColumnGroup); +}; + +exports['default'] = Table; + +/***/ }), + +/***/ "./node_modules/ant-design-vue/lib/table/interface.js": +/*!************************************************************!*\ + !*** ./node_modules/ant-design-vue/lib/table/interface.js ***! + \************************************************************/ +/*! no static exports found */ +/***/ (function(module, exports, __webpack_require__) { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.FilterMenuProps = exports.SelectionBoxProps = exports.SelectionCheckboxAllProps = exports.TableProps = exports.TableRowSelection = exports.RowSelectionType = exports.TableLocale = exports.ColumnProps = exports.ColumnFilterItem = undefined; + +var _extends2 = __webpack_require__(/*! babel-runtime/helpers/extends */ "./node_modules/babel-runtime/helpers/extends.js"); + +var _extends3 = _interopRequireDefault(_extends2); + +var _vueTypes = __webpack_require__(/*! ../_util/vue-types */ "./node_modules/ant-design-vue/lib/_util/vue-types/index.js"); + +var _vueTypes2 = _interopRequireDefault(_vueTypes); + +var _pagination = __webpack_require__(/*! ../pagination */ "./node_modules/ant-design-vue/lib/pagination/index.js"); + +var _spin = __webpack_require__(/*! ../spin */ "./node_modules/ant-design-vue/lib/spin/index.js"); + +var _createStore = __webpack_require__(/*! ./createStore */ "./node_modules/ant-design-vue/lib/table/createStore.js"); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } + +var PaginationProps = (0, _pagination.PaginationProps)(); +var SpinProps = (0, _spin.SpinProps)(); + +// export type CompareFn = ((a: T, b: T) => number); +var ColumnFilterItem = exports.ColumnFilterItem = _vueTypes2['default'].shape({ + text: _vueTypes2['default'].string, + value: _vueTypes2['default'].string, + children: _vueTypes2['default'].array +}).loose; + +var ColumnProps = exports.ColumnProps = { + title: _vueTypes2['default'].any, + // key?: React.Key; + dataIndex: _vueTypes2['default'].string, + customRender: _vueTypes2['default'].func, + customCell: _vueTypes2['default'].func, + customHeaderCell: _vueTypes2['default'].func, + align: _vueTypes2['default'].oneOf(['left', 'right', 'center']), + filters: _vueTypes2['default'].arrayOf(ColumnFilterItem), + // onFilter: (value: any, record: T) => PropTypes.bool, + filterMultiple: _vueTypes2['default'].bool, + filterDropdown: _vueTypes2['default'].any, + filterDropdownVisible: _vueTypes2['default'].bool, + // onFilterDropdownVisibleChange?: (visible: boolean) => void; + sorter: _vueTypes2['default'].oneOfType([_vueTypes2['default'].boolean, _vueTypes2['default'].func]), + defaultSortOrder: _vueTypes2['default'].oneOf(['ascend', 'descend']), + colSpan: _vueTypes2['default'].number, + width: _vueTypes2['default'].oneOfType([_vueTypes2['default'].string, _vueTypes2['default'].number]), + className: _vueTypes2['default'].string, + fixed: _vueTypes2['default'].oneOfType([_vueTypes2['default'].bool, _vueTypes2['default'].oneOf(['left', 'right'])]), + filterIcon: _vueTypes2['default'].any, + filteredValue: _vueTypes2['default'].array, + sortOrder: _vueTypes2['default'].oneOfType([_vueTypes2['default'].bool, _vueTypes2['default'].oneOf(['ascend', 'descend'])]), + sortDirections: _vueTypes2['default'].array + // children?: ColumnProps[]; + // onCellClick?: (record: T, event: any) => void; + // onCell?: (record: T) => any; + // onHeaderCell?: (props: ColumnProps) => any; +}; + +// export interface TableComponents { +// table?: any; +// header?: { +// wrapper?: any; +// row?: any; +// cell?: any; +// }; +// body?: { +// wrapper?: any; +// row?: any; +// cell?: any; +// }; +// } + +var TableLocale = exports.TableLocale = _vueTypes2['default'].shape({ + filterTitle: _vueTypes2['default'].string, + filterConfirm: _vueTypes2['default'].any, + filterReset: _vueTypes2['default'].any, + emptyText: _vueTypes2['default'].any, + selectAll: _vueTypes2['default'].any, + selectInvert: _vueTypes2['default'].any, + sortTitle: _vueTypes2['default'].string +}).loose; + +var RowSelectionType = exports.RowSelectionType = _vueTypes2['default'].oneOf(['checkbox', 'radio']); +// export type SelectionSelectFn = (record: T, selected: boolean, selectedRows: Object[]) => any; + +var TableRowSelection = exports.TableRowSelection = { + type: RowSelectionType, + selectedRowKeys: _vueTypes2['default'].array, + // onChange?: (selectedRowKeys: string[] | number[], selectedRows: Object[]) => any; + getCheckboxProps: _vueTypes2['default'].func, + // onSelect?: SelectionSelectFn; + // onSelectAll?: (selected: boolean, selectedRows: Object[], changeRows: Object[]) => any; + // onSelectInvert?: (selectedRows: Object[]) => any; + selections: _vueTypes2['default'].oneOfType([_vueTypes2['default'].array, _vueTypes2['default'].bool]), + hideDefaultSelections: _vueTypes2['default'].bool, + fixed: _vueTypes2['default'].bool, + columnWidth: _vueTypes2['default'].oneOfType([_vueTypes2['default'].string, _vueTypes2['default'].number]), + selectWay: _vueTypes2['default'].oneOf(['onSelect', 'onSelectMultiple', 'onSelectAll', 'onSelectInvert']), + columnTitle: _vueTypes2['default'].any +}; + +var TableProps = exports.TableProps = { + prefixCls: _vueTypes2['default'].string, + dropdownPrefixCls: _vueTypes2['default'].string, + rowSelection: _vueTypes2['default'].oneOfType([_vueTypes2['default'].shape(TableRowSelection).loose, null]), + pagination: _vueTypes2['default'].oneOfType([_vueTypes2['default'].shape((0, _extends3['default'])({}, PaginationProps, { + position: _vueTypes2['default'].oneOf(['top', 'bottom', 'both']) + })).loose, _vueTypes2['default'].bool]), + size: _vueTypes2['default'].oneOf(['default', 'middle', 'small', 'large']), + dataSource: _vueTypes2['default'].array, + components: _vueTypes2['default'].object, + columns: _vueTypes2['default'].array, + rowKey: _vueTypes2['default'].oneOfType([_vueTypes2['default'].string, _vueTypes2['default'].func]), + rowClassName: _vueTypes2['default'].func, + expandedRowRender: _vueTypes2['default'].any, + defaultExpandAllRows: _vueTypes2['default'].bool, + defaultExpandedRowKeys: _vueTypes2['default'].array, + expandedRowKeys: _vueTypes2['default'].array, + expandIconAsCell: _vueTypes2['default'].bool, + expandIconColumnIndex: _vueTypes2['default'].number, + expandRowByClick: _vueTypes2['default'].bool, + // onExpandedRowsChange?: (expandedRowKeys: string[] | number[]) => void; + // onExpand?: (expanded: boolean, record: T) => void; + // onChange?: (pagination: PaginationProps | boolean, filters: string[], sorter: Object) => any; + loading: _vueTypes2['default'].oneOfType([_vueTypes2['default'].shape(SpinProps).loose, _vueTypes2['default'].bool]), + locale: TableLocale, + indentSize: _vueTypes2['default'].number, + // onRowClick?: (record: T, index: number, event: Event) => any; + customRow: _vueTypes2['default'].func, + customHeaderRow: _vueTypes2['default'].func, + useFixedHeader: _vueTypes2['default'].bool, + bordered: _vueTypes2['default'].bool, + showHeader: _vueTypes2['default'].bool, + footer: _vueTypes2['default'].func, + title: _vueTypes2['default'].func, + scroll: _vueTypes2['default'].object, + childrenColumnName: _vueTypes2['default'].oneOfType([_vueTypes2['default'].array, _vueTypes2['default'].string]), + bodyStyle: _vueTypes2['default'].any, + sortDirections: _vueTypes2['default'].array, + expandIcon: _vueTypes2['default'].func + // className?: PropTypes.string, + // style?: React.CSSProperties; + // children?: React.ReactNode; +}; + +// export interface TableStateFilters { +// [key: string]: string[]; +// } + +// export interface TableState { +// pagination: PaginationProps; +// filters: TableStateFilters; +// sortColumn: ColumnProps | null; +// sortOrder: PropTypes.string, +// } + +// export type SelectionItemSelectFn = (key: string[]) => any; + +// export interface SelectionItem { +// key: PropTypes.string, +// text: PropTypes.any, +// onSelect: SelectionItemSelectFn; +// } + +var SelectionCheckboxAllProps = exports.SelectionCheckboxAllProps = { + store: _createStore.Store, + locale: _vueTypes2['default'].any, + disabled: _vueTypes2['default'].bool, + getCheckboxPropsByItem: _vueTypes2['default'].func, + getRecordKey: _vueTypes2['default'].func, + data: _vueTypes2['default'].array, + prefixCls: _vueTypes2['default'].string, + // onSelect: (key: string, index: number, selectFunc: any) => void; + hideDefaultSelections: _vueTypes2['default'].bool, + selections: _vueTypes2['default'].oneOfType([_vueTypes2['default'].array, _vueTypes2['default'].bool]), + getPopupContainer: _vueTypes2['default'].func +}; + +// export interface SelectionCheckboxAllState { +// checked: PropTypes.bool, +// indeterminate: PropTypes.bool, +// } + +var SelectionBoxProps = exports.SelectionBoxProps = { + store: _createStore.Store, + type: RowSelectionType, + defaultSelection: _vueTypes2['default'].arrayOf([_vueTypes2['default'].string, _vueTypes2['default'].number]), + rowIndex: _vueTypes2['default'].oneOfType([_vueTypes2['default'].string, _vueTypes2['default'].number]), + name: _vueTypes2['default'].string, + disabled: _vueTypes2['default'].bool, + id: _vueTypes2['default'].string + // onChange: React.ChangeEventHandler; +}; + +// export interface SelectionBoxState { +// checked?: PropTypes.bool, +// } + +var FilterMenuProps = exports.FilterMenuProps = { + _propsSymbol: _vueTypes2['default'].any, + locale: TableLocale, + selectedKeys: _vueTypes2['default'].arrayOf([_vueTypes2['default'].string, _vueTypes2['default'].number]), + column: _vueTypes2['default'].object, + confirmFilter: _vueTypes2['default'].func, + prefixCls: _vueTypes2['default'].string, + dropdownPrefixCls: _vueTypes2['default'].string, + getPopupContainer: _vueTypes2['default'].func, + handleFilter: _vueTypes2['default'].func +}; + +// export interface FilterMenuState { +// selectedKeys: string[]; +// keyPathOfSelectedItem: { [key: string]: string }; +// visible?: PropTypes.bool, +// } + +/***/ }), + +/***/ "./node_modules/ant-design-vue/lib/table/util.js": +/*!*******************************************************!*\ + !*** ./node_modules/ant-design-vue/lib/table/util.js ***! + \*******************************************************/ +/*! no static exports found */ +/***/ (function(module, exports, __webpack_require__) { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", { + value: true +}); + +var _toConsumableArray2 = __webpack_require__(/*! babel-runtime/helpers/toConsumableArray */ "./node_modules/babel-runtime/helpers/toConsumableArray.js"); + +var _toConsumableArray3 = _interopRequireDefault(_toConsumableArray2); + +var _extends2 = __webpack_require__(/*! babel-runtime/helpers/extends */ "./node_modules/babel-runtime/helpers/extends.js"); + +var _extends3 = _interopRequireDefault(_extends2); + +exports.flatArray = flatArray; +exports.treeMap = treeMap; +exports.flatFilter = flatFilter; + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } + +function flatArray() { + var data = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : []; + var childrenName = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 'children'; + + var result = []; + var loop = function loop(array) { + array.forEach(function (item) { + if (item[childrenName]) { + var newItem = (0, _extends3['default'])({}, item); + delete newItem[childrenName]; + result.push(newItem); + if (item[childrenName].length > 0) { + loop(item[childrenName]); + } + } else { + result.push(item); + } + }); + }; + loop(data); + return result; +} + +function treeMap(tree, mapper) { + var childrenName = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 'children'; + + return tree.map(function (node, index) { + var extra = {}; + if (node[childrenName]) { + extra[childrenName] = treeMap(node[childrenName], mapper, childrenName); + } + return (0, _extends3['default'])({}, mapper(node, index), extra); + }); +} + +function flatFilter(tree, callback) { + return tree.reduce(function (acc, node) { + if (callback(node)) { + acc.push(node); + } + if (node.children) { + var children = flatFilter(node.children, callback); + acc.push.apply(acc, (0, _toConsumableArray3['default'])(children)); + } + return acc; + }, []); +} + +// export function normalizeColumns (elements) { +// const columns = [] +// React.Children.forEach(elements, (element) => { +// if (!React.isValidElement(element)) { +// return +// } +// const column = { +// ...element.props, +// } +// if (element.key) { +// column.key = element.key +// } +// if (element.type && element.type.__ANT_TABLE_COLUMN_GROUP) { +// column.children = normalizeColumns(column.children) +// } +// columns.push(column) +// }) +// return columns +// } + +/***/ }), + +/***/ "./node_modules/ant-design-vue/lib/vc-pagination/KeyCode.js": +/*!******************************************************************!*\ + !*** ./node_modules/ant-design-vue/lib/vc-pagination/KeyCode.js ***! + \******************************************************************/ +/*! no static exports found */ +/***/ (function(module, exports, __webpack_require__) { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports["default"] = { + ZERO: 48, + NINE: 57, + + NUMPAD_ZERO: 96, + NUMPAD_NINE: 105, + + BACKSPACE: 8, + DELETE: 46, + ENTER: 13, + + ARROW_UP: 38, + ARROW_DOWN: 40 +}; + +/***/ }), + +/***/ "./node_modules/ant-design-vue/lib/vc-pagination/Options.js": +/*!******************************************************************!*\ + !*** ./node_modules/ant-design-vue/lib/vc-pagination/Options.js ***! + \******************************************************************/ +/*! no static exports found */ +/***/ (function(module, exports, __webpack_require__) { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", { + value: true +}); + +var _babelHelperVueJsxMergeProps = __webpack_require__(/*! babel-helper-vue-jsx-merge-props */ "./node_modules/babel-helper-vue-jsx-merge-props/index.js"); + +var _babelHelperVueJsxMergeProps2 = _interopRequireDefault(_babelHelperVueJsxMergeProps); + +var _vueTypes = __webpack_require__(/*! ../_util/vue-types */ "./node_modules/ant-design-vue/lib/_util/vue-types/index.js"); + +var _vueTypes2 = _interopRequireDefault(_vueTypes); + +var _KeyCode = __webpack_require__(/*! ./KeyCode */ "./node_modules/ant-design-vue/lib/vc-pagination/KeyCode.js"); + +var _KeyCode2 = _interopRequireDefault(_KeyCode); + +var _BaseMixin = __webpack_require__(/*! ../_util/BaseMixin */ "./node_modules/ant-design-vue/lib/_util/BaseMixin.js"); + +var _BaseMixin2 = _interopRequireDefault(_BaseMixin); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } + +exports['default'] = { + mixins: [_BaseMixin2['default']], + props: { + disabled: _vueTypes2['default'].bool, + changeSize: _vueTypes2['default'].func, + quickGo: _vueTypes2['default'].func, + selectComponentClass: _vueTypes2['default'].any, + current: _vueTypes2['default'].number, + pageSizeOptions: _vueTypes2['default'].array.def(['10', '20', '30', '40']), + pageSize: _vueTypes2['default'].number, + buildOptionText: _vueTypes2['default'].func, + locale: _vueTypes2['default'].object, + rootPrefixCls: _vueTypes2['default'].string, + selectPrefixCls: _vueTypes2['default'].string, + goButton: _vueTypes2['default'].any + }, + data: function data() { + return { + goInputText: '' + }; + }, + + methods: { + getValidValue: function getValidValue() { + var goInputText = this.goInputText, + current = this.current; + + return isNaN(goInputText) ? current : Number(goInputText); + }, + defaultBuildOptionText: function defaultBuildOptionText(opt) { + return opt.value + ' ' + this.locale.items_per_page; + }, + handleChange: function handleChange(e) { + var _e$target = e.target, + value = _e$target.value, + composing = _e$target.composing; + + if (composing || this.goInputText === value) return; + this.setState({ + goInputText: value + }); + }, + handleBlur: function handleBlur() { + var goButton = this.goButton, + quickGo = this.quickGo; + + if (goButton) { + return; + } + quickGo(this.getValidValue()); + }, + go: function go(e) { + var goInputText = this.goInputText; + + if (goInputText === '') { + return; + } + if (e.keyCode === _KeyCode2['default'].ENTER || e.type === 'click') { + // https://github.com/vueComponent/ant-design-vue/issues/1316 + this.quickGo(this.getValidValue()); + this.setState({ + goInputText: '' + }); + } + } + }, + render: function render() { + var _this = this; + + var h = arguments[0]; + var rootPrefixCls = this.rootPrefixCls, + locale = this.locale, + changeSize = this.changeSize, + quickGo = this.quickGo, + goButton = this.goButton, + Select = this.selectComponentClass, + defaultBuildOptionText = this.defaultBuildOptionText, + selectPrefixCls = this.selectPrefixCls, + pageSize = this.pageSize, + pageSizeOptions = this.pageSizeOptions, + goInputText = this.goInputText, + disabled = this.disabled; + + var prefixCls = rootPrefixCls + '-options'; + var changeSelect = null; + var goInput = null; + var gotoButton = null; + + if (!changeSize && !quickGo) { + return null; + } + + if (changeSize && Select) { + var buildOptionText = this.buildOptionText || defaultBuildOptionText; + var options = pageSizeOptions.map(function (opt, i) { + return h( + Select.Option, + { key: i, attrs: { value: opt } + }, + [buildOptionText({ value: opt })] + ); + }); + + changeSelect = h( + Select, + { + attrs: { + disabled: disabled, + prefixCls: selectPrefixCls, + showSearch: false, + + optionLabelProp: 'children', + dropdownMatchSelectWidth: false, + value: (pageSize || pageSizeOptions[0]).toString(), + + getPopupContainer: function getPopupContainer(triggerNode) { + return triggerNode.parentNode; + } + }, + 'class': prefixCls + '-size-changer', on: { + 'change': function change(value) { + return _this.changeSize(Number(value)); + } + } + }, + [options] + ); + } + + if (quickGo) { + if (goButton) { + gotoButton = typeof goButton === 'boolean' ? h( + 'button', + { + attrs: { type: 'button', disabled: disabled }, + on: { + 'click': this.go, + 'keyup': this.go + } + }, + [locale.jump_to_confirm] + ) : h( + 'span', + { + on: { + 'click': this.go, + 'keyup': this.go + } + }, + [goButton] + ); + } + goInput = h( + 'div', + { 'class': prefixCls + '-quick-jumper' }, + [locale.jump_to, h('input', (0, _babelHelperVueJsxMergeProps2['default'])([{ + attrs: { + disabled: disabled, + type: 'text' + }, + domProps: { + 'value': goInputText + }, + on: { + 'input': this.handleChange, + 'keyup': this.go, + 'blur': this.handleBlur + } + }, { + directives: [{ + name: 'ant-input' + }] + }])), locale.page, gotoButton] + ); + } + + return h( + 'li', + { 'class': '' + prefixCls }, + [changeSelect, goInput] + ); + } +}; + +/***/ }), + +/***/ "./node_modules/ant-design-vue/lib/vc-pagination/Pager.js": +/*!****************************************************************!*\ + !*** ./node_modules/ant-design-vue/lib/vc-pagination/Pager.js ***! + \****************************************************************/ +/*! no static exports found */ +/***/ (function(module, exports, __webpack_require__) { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", { + value: true +}); + +var _vueTypes = __webpack_require__(/*! ../_util/vue-types */ "./node_modules/ant-design-vue/lib/_util/vue-types/index.js"); + +var _vueTypes2 = _interopRequireDefault(_vueTypes); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } + +exports['default'] = { + name: 'Pager', + props: { + rootPrefixCls: _vueTypes2['default'].string, + page: _vueTypes2['default'].number, + active: _vueTypes2['default'].bool, + last: _vueTypes2['default'].bool, + locale: _vueTypes2['default'].object, + showTitle: _vueTypes2['default'].bool, + itemRender: { + type: Function, + 'default': function _default() {} + } + }, + computed: { + classes: function classes() { + var prefixCls = this.rootPrefixCls + '-item'; + var cls = prefixCls + ' ' + prefixCls + '-' + this.page; + if (this.active) { + cls = cls + ' ' + prefixCls + '-active'; + } + return cls; + } + }, + methods: { + handleClick: function handleClick() { + this.$emit('click', this.page); + }, + handleKeyPress: function handleKeyPress(event) { + this.$emit('keypress', event, this.handleClick, this.page); + } + }, + render: function render() { + var h = arguments[0]; + var rootPrefixCls = this.rootPrefixCls, + page = this.page, + active = this.active; + + var prefixCls = rootPrefixCls + '-item'; + var cls = prefixCls + ' ' + prefixCls + '-' + page; + + if (active) { + cls = cls + ' ' + prefixCls + '-active'; + } + + if (!page) { + cls = cls + ' ' + prefixCls + '-disabled'; + } + + return h( + 'li', + { + 'class': cls, + on: { + 'click': this.handleClick, + 'keypress': this.handleKeyPress + }, + attrs: { + title: this.showTitle ? this.page : null, + tabIndex: '0' + } + }, + [this.itemRender(this.page, 'page', h('a', [this.page]))] + ); + } +}; + +/***/ }), + +/***/ "./node_modules/ant-design-vue/lib/vc-pagination/Pagination.js": +/*!*********************************************************************!*\ + !*** ./node_modules/ant-design-vue/lib/vc-pagination/Pagination.js ***! + \*********************************************************************/ +/*! no static exports found */ +/***/ (function(module, exports, __webpack_require__) { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", { + value: true +}); + +var _defineProperty2 = __webpack_require__(/*! babel-runtime/helpers/defineProperty */ "./node_modules/babel-runtime/helpers/defineProperty.js"); + +var _defineProperty3 = _interopRequireDefault(_defineProperty2); + +var _babelHelperVueJsxMergeProps = __webpack_require__(/*! babel-helper-vue-jsx-merge-props */ "./node_modules/babel-helper-vue-jsx-merge-props/index.js"); + +var _babelHelperVueJsxMergeProps2 = _interopRequireDefault(_babelHelperVueJsxMergeProps); + +var _toConsumableArray2 = __webpack_require__(/*! babel-runtime/helpers/toConsumableArray */ "./node_modules/babel-runtime/helpers/toConsumableArray.js"); + +var _toConsumableArray3 = _interopRequireDefault(_toConsumableArray2); + +var _vueTypes = __webpack_require__(/*! ../_util/vue-types */ "./node_modules/ant-design-vue/lib/_util/vue-types/index.js"); + +var _vueTypes2 = _interopRequireDefault(_vueTypes); + +var _BaseMixin = __webpack_require__(/*! ../_util/BaseMixin */ "./node_modules/ant-design-vue/lib/_util/BaseMixin.js"); + +var _BaseMixin2 = _interopRequireDefault(_BaseMixin); + +var _propsUtil = __webpack_require__(/*! ../_util/props-util */ "./node_modules/ant-design-vue/lib/_util/props-util.js"); + +var _Pager = __webpack_require__(/*! ./Pager */ "./node_modules/ant-design-vue/lib/vc-pagination/Pager.js"); + +var _Pager2 = _interopRequireDefault(_Pager); + +var _Options = __webpack_require__(/*! ./Options */ "./node_modules/ant-design-vue/lib/vc-pagination/Options.js"); + +var _Options2 = _interopRequireDefault(_Options); + +var _zh_CN = __webpack_require__(/*! ./locale/zh_CN */ "./node_modules/ant-design-vue/lib/vc-pagination/locale/zh_CN.js"); + +var _zh_CN2 = _interopRequireDefault(_zh_CN); + +var _KeyCode = __webpack_require__(/*! ./KeyCode */ "./node_modules/ant-design-vue/lib/vc-pagination/KeyCode.js"); + +var _KeyCode2 = _interopRequireDefault(_KeyCode); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } + +function noop() {} + +// 是否是正整数 +function isInteger(value) { + return typeof value === 'number' && isFinite(value) && Math.floor(value) === value; +} + +function defaultItemRender(page, type, element) { + return element; +} + +function calculatePage(p, state, props) { + var pageSize = p; + if (typeof pageSize === 'undefined') { + pageSize = state.statePageSize; + } + return Math.floor((props.total - 1) / pageSize) + 1; +} + +exports['default'] = { + name: 'Pagination', + mixins: [_BaseMixin2['default']], + model: { + prop: 'current', + event: 'change.current' + }, + props: { + disabled: _vueTypes2['default'].bool, + prefixCls: _vueTypes2['default'].string.def('rc-pagination'), + selectPrefixCls: _vueTypes2['default'].string.def('rc-select'), + current: _vueTypes2['default'].number, + defaultCurrent: _vueTypes2['default'].number.def(1), + total: _vueTypes2['default'].number.def(0), + pageSize: _vueTypes2['default'].number, + defaultPageSize: _vueTypes2['default'].number.def(10), + hideOnSinglePage: _vueTypes2['default'].bool.def(false), + showSizeChanger: _vueTypes2['default'].bool.def(false), + showLessItems: _vueTypes2['default'].bool.def(false), + // showSizeChange: PropTypes.func.def(noop), + selectComponentClass: _vueTypes2['default'].any, + showPrevNextJumpers: _vueTypes2['default'].bool.def(true), + showQuickJumper: _vueTypes2['default'].oneOfType([_vueTypes2['default'].bool, _vueTypes2['default'].object]).def(false), + showTitle: _vueTypes2['default'].bool.def(true), + pageSizeOptions: _vueTypes2['default'].arrayOf(_vueTypes2['default'].string), + buildOptionText: _vueTypes2['default'].func, + showTotal: _vueTypes2['default'].func, + simple: _vueTypes2['default'].bool, + locale: _vueTypes2['default'].object.def(_zh_CN2['default']), + itemRender: _vueTypes2['default'].func.def(defaultItemRender), + prevIcon: _vueTypes2['default'].any, + nextIcon: _vueTypes2['default'].any, + jumpPrevIcon: _vueTypes2['default'].any, + jumpNextIcon: _vueTypes2['default'].any + }, + data: function data() { + var hasOnChange = this.onChange !== noop; + var hasCurrent = (0, _propsUtil.hasProp)(this, 'current'); + if (hasCurrent && !hasOnChange) { + console.warn('Warning: You provided a `current` prop to a Pagination component without an `onChange` handler. This will render a read-only component.'); // eslint-disable-line + } + var current = this.defaultCurrent; + if (hasCurrent) { + current = this.current; + } + + var pageSize = this.defaultPageSize; + if ((0, _propsUtil.hasProp)(this, 'pageSize')) { + pageSize = this.pageSize; + } + + return { + stateCurrent: current, + stateCurrentInputValue: current, + statePageSize: pageSize + }; + }, + + watch: { + current: function current(val) { + this.setState({ + stateCurrent: val, + stateCurrentInputValue: val + }); + }, + pageSize: function pageSize(val) { + var newState = {}; + var current = this.stateCurrent; + var newCurrent = calculatePage(val, this.$data, this.$props); + current = current > newCurrent ? newCurrent : current; + if (!(0, _propsUtil.hasProp)(this, 'current')) { + newState.stateCurrent = current; + newState.stateCurrentInputValue = current; + } + newState.statePageSize = val; + this.setState(newState); + }, + stateCurrent: function stateCurrent(val, oldValue) { + var _this = this; + + // When current page change, fix focused style of prev item + // A hacky solution of https://github.com/ant-design/ant-design/issues/8948 + this.$nextTick(function () { + if (_this.$refs.paginationNode) { + var lastCurrentNode = _this.$refs.paginationNode.querySelector('.' + _this.prefixCls + '-item-' + oldValue); + if (lastCurrentNode && document.activeElement === lastCurrentNode) { + lastCurrentNode.blur(); + } + } + }); + } + }, + methods: { + getJumpPrevPage: function getJumpPrevPage() { + return Math.max(1, this.stateCurrent - (this.showLessItems ? 3 : 5)); + }, + getJumpNextPage: function getJumpNextPage() { + return Math.min(calculatePage(undefined, this.$data, this.$props), this.stateCurrent + (this.showLessItems ? 3 : 5)); + }, + getItemIcon: function getItemIcon(icon) { + var h = this.$createElement; + var prefixCls = this.$props.prefixCls; + + var iconNode = (0, _propsUtil.getComponentFromProp)(this, icon, this.$props) || h('a', { 'class': prefixCls + '-item-link' }); + return iconNode; + }, + getValidValue: function getValidValue(e) { + var inputValue = e.target.value; + var stateCurrentInputValue = this.$data.stateCurrentInputValue; + + var value = void 0; + if (inputValue === '') { + value = inputValue; + } else if (isNaN(Number(inputValue))) { + value = stateCurrentInputValue; + } else { + value = Number(inputValue); + } + return value; + }, + isValid: function isValid(page) { + return isInteger(page) && page >= 1 && page !== this.stateCurrent; + }, + shouldDisplayQuickJumper: function shouldDisplayQuickJumper() { + var _$props = this.$props, + showQuickJumper = _$props.showQuickJumper, + pageSize = _$props.pageSize, + total = _$props.total; + + if (total <= pageSize) { + return false; + } + return showQuickJumper; + }, + + // calculatePage (p) { + // let pageSize = p + // if (typeof pageSize === 'undefined') { + // pageSize = this.statePageSize + // } + // return Math.floor((this.total - 1) / pageSize) + 1 + // }, + handleKeyDown: function handleKeyDown(event) { + if (event.keyCode === _KeyCode2['default'].ARROW_UP || event.keyCode === _KeyCode2['default'].ARROW_DOWN) { + event.preventDefault(); + } + }, + handleKeyUp: function handleKeyUp(e) { + if (e.target.composing) return; + var value = this.getValidValue(e); + var stateCurrentInputValue = this.stateCurrentInputValue; + + if (value !== stateCurrentInputValue) { + this.setState({ + stateCurrentInputValue: value + }); + } + + if (e.keyCode === _KeyCode2['default'].ENTER) { + this.handleChange(value); + } else if (e.keyCode === _KeyCode2['default'].ARROW_UP) { + this.handleChange(value - 1); + } else if (e.keyCode === _KeyCode2['default'].ARROW_DOWN) { + this.handleChange(value + 1); + } + }, + changePageSize: function changePageSize(size) { + var current = this.stateCurrent; + var preCurrent = current; + var newCurrent = calculatePage(size, this.$data, this.$props); + current = current > newCurrent ? newCurrent : current; + // fix the issue: + // Once 'total' is 0, 'current' in 'onShowSizeChange' is 0, which is not correct. + if (newCurrent === 0) { + current = this.stateCurrent; + } + if (typeof size === 'number') { + if (!(0, _propsUtil.hasProp)(this, 'pageSize')) { + this.setState({ + statePageSize: size + }); + } + if (!(0, _propsUtil.hasProp)(this, 'current')) { + this.setState({ + stateCurrent: current, + stateCurrentInputValue: current + }); + } + } + this.$emit('update:pageSize', size); + this.$emit('showSizeChange', current, size); + if (current !== preCurrent) { + this.$emit('change.current', current, size); + } + }, + handleChange: function handleChange(p) { + var disabled = this.$props.disabled; + + var page = p; + if (this.isValid(page) && !disabled) { + var currentPage = calculatePage(undefined, this.$data, this.$props); + if (page > currentPage) { + page = currentPage; + } + if (!(0, _propsUtil.hasProp)(this, 'current')) { + this.setState({ + stateCurrent: page, + stateCurrentInputValue: page + }); + } + // this.$emit('input', page) + this.$emit('change', page, this.statePageSize); + this.$emit('change.current', page, this.statePageSize); + return page; + } + return this.stateCurrent; + }, + prev: function prev() { + if (this.hasPrev()) { + this.handleChange(this.stateCurrent - 1); + } + }, + next: function next() { + if (this.hasNext()) { + this.handleChange(this.stateCurrent + 1); + } + }, + jumpPrev: function jumpPrev() { + this.handleChange(this.getJumpPrevPage()); + }, + jumpNext: function jumpNext() { + this.handleChange(this.getJumpNextPage()); + }, + hasPrev: function hasPrev() { + return this.stateCurrent > 1; + }, + hasNext: function hasNext() { + return this.stateCurrent < calculatePage(undefined, this.$data, this.$props); + }, + runIfEnter: function runIfEnter(event, callback) { + if (event.key === 'Enter' || event.charCode === 13) { + for (var _len = arguments.length, restParams = Array(_len > 2 ? _len - 2 : 0), _key = 2; _key < _len; _key++) { + restParams[_key - 2] = arguments[_key]; + } + + callback.apply(undefined, (0, _toConsumableArray3['default'])(restParams)); + } + }, + runIfEnterPrev: function runIfEnterPrev(event) { + this.runIfEnter(event, this.prev); + }, + runIfEnterNext: function runIfEnterNext(event) { + this.runIfEnter(event, this.next); + }, + runIfEnterJumpPrev: function runIfEnterJumpPrev(event) { + this.runIfEnter(event, this.jumpPrev); + }, + runIfEnterJumpNext: function runIfEnterJumpNext(event) { + this.runIfEnter(event, this.jumpNext); + }, + handleGoTO: function handleGoTO(event) { + if (event.keyCode === _KeyCode2['default'].ENTER || event.type === 'click') { + this.handleChange(this.stateCurrentInputValue); + } + } + }, + render: function render() { + var _ref; + + var h = arguments[0]; + var _$props2 = this.$props, + prefixCls = _$props2.prefixCls, + disabled = _$props2.disabled; + + // When hideOnSinglePage is true and there is only 1 page, hide the pager + + if (this.hideOnSinglePage === true && this.total <= this.statePageSize) { + return null; + } + var props = this.$props; + var locale = this.locale; + + var allPages = calculatePage(undefined, this.$data, this.$props); + var pagerList = []; + var jumpPrev = null; + var jumpNext = null; + var firstPager = null; + var lastPager = null; + var gotoButton = null; + var goButton = this.showQuickJumper && this.showQuickJumper.goButton; + var pageBufferSize = this.showLessItems ? 1 : 2; + var stateCurrent = this.stateCurrent, + statePageSize = this.statePageSize; + + var prevPage = stateCurrent - 1 > 0 ? stateCurrent - 1 : 0; + var nextPage = stateCurrent + 1 < allPages ? stateCurrent + 1 : allPages; + + if (this.simple) { + if (goButton) { + if (typeof goButton === 'boolean') { + gotoButton = h( + 'button', + { + attrs: { type: 'button' }, + on: { + 'click': this.handleGoTO, + 'keyup': this.handleGoTO + } + }, + [locale.jump_to_confirm] + ); + } else { + gotoButton = h( + 'span', + { + on: { + 'click': this.handleGoTO, + 'keyup': this.handleGoTO + } + }, + [goButton] + ); + } + gotoButton = h( + 'li', + { + attrs: { + title: this.showTitle ? '' + locale.jump_to + this.stateCurrent + '/' + allPages : null + }, + 'class': prefixCls + '-simple-pager' + }, + [gotoButton] + ); + } + var hasPrev = this.hasPrev(); + var hasNext = this.hasNext(); + return h( + 'ul', + { 'class': prefixCls + ' ' + prefixCls + '-simple' }, + [h( + 'li', + { + attrs: { + title: this.showTitle ? locale.prev_page : null, + + tabIndex: hasPrev ? 0 : null, + + 'aria-disabled': !this.hasPrev() + }, + on: { + 'click': this.prev, + 'keypress': this.runIfEnterPrev + }, + + 'class': (hasPrev ? '' : prefixCls + '-disabled') + ' ' + prefixCls + '-prev' }, + [this.itemRender(prevPage, 'prev', this.getItemIcon('prevIcon'))] + ), h( + 'li', + { + attrs: { + title: this.showTitle ? stateCurrent + '/' + allPages : null + }, + 'class': prefixCls + '-simple-pager' + }, + [h('input', (0, _babelHelperVueJsxMergeProps2['default'])([{ + attrs: { + type: 'text', + + size: '3' + }, + domProps: { + 'value': this.stateCurrentInputValue + }, + on: { + 'keydown': this.handleKeyDown, + 'keyup': this.handleKeyUp, + 'input': this.handleKeyUp + } + }, { + directives: [{ + name: 'ant-input' + }] + }])), h( + 'span', + { 'class': prefixCls + '-slash' }, + ['\uFF0F'] + ), allPages] + ), h( + 'li', + { + attrs: { + title: this.showTitle ? locale.next_page : null, + + tabIndex: this.hasNext ? 0 : null, + + 'aria-disabled': !this.hasNext() + }, + on: { + 'click': this.next, + 'keypress': this.runIfEnterNext + }, + + 'class': (hasNext ? '' : prefixCls + '-disabled') + ' ' + prefixCls + '-next' }, + [this.itemRender(nextPage, 'next', this.getItemIcon('nextIcon'))] + ), gotoButton] + ); + } + if (allPages <= 5 + pageBufferSize * 2) { + var pagerProps = { + props: { + locale: locale, + rootPrefixCls: prefixCls, + showTitle: props.showTitle, + itemRender: props.itemRender + }, + on: { + click: this.handleChange, + keypress: this.runIfEnter + } + }; + if (!allPages) { + pagerList.push(h(_Pager2['default'], (0, _babelHelperVueJsxMergeProps2['default'])([pagerProps, { key: 'noPager', attrs: { page: allPages }, + 'class': prefixCls + '-disabled' }]))); + } + for (var i = 1; i <= allPages; i++) { + var active = stateCurrent === i; + pagerList.push(h(_Pager2['default'], (0, _babelHelperVueJsxMergeProps2['default'])([pagerProps, { key: i, attrs: { page: i, active: active } + }]))); + } + } else { + var prevItemTitle = this.showLessItems ? locale.prev_3 : locale.prev_5; + var nextItemTitle = this.showLessItems ? locale.next_3 : locale.next_5; + if (this.showPrevNextJumpers) { + var jumpPrevClassString = prefixCls + '-jump-prev'; + if (props.jumpPrevIcon) { + jumpPrevClassString += ' ' + prefixCls + '-jump-prev-custom-icon'; + } + jumpPrev = h( + 'li', + { + attrs: { + title: this.showTitle ? prevItemTitle : null, + + tabIndex: '0' + }, + key: 'prev', + on: { + 'click': this.jumpPrev, + 'keypress': this.runIfEnterJumpPrev + }, + + 'class': jumpPrevClassString + }, + [this.itemRender(this.getJumpPrevPage(), 'jump-prev', this.getItemIcon('jumpPrevIcon'))] + ); + var jumpNextClassString = prefixCls + '-jump-next'; + if (props.jumpNextIcon) { + jumpNextClassString += ' ' + prefixCls + '-jump-next-custom-icon'; + } + jumpNext = h( + 'li', + { + attrs: { + title: this.showTitle ? nextItemTitle : null, + + tabIndex: '0' + }, + key: 'next', on: { + 'click': this.jumpNext, + 'keypress': this.runIfEnterJumpNext + }, + + 'class': jumpNextClassString + }, + [this.itemRender(this.getJumpNextPage(), 'jump-next', this.getItemIcon('jumpNextIcon'))] + ); + } + + lastPager = h(_Pager2['default'], { + attrs: { + locale: locale, + last: true, + rootPrefixCls: prefixCls, + + page: allPages, + active: false, + showTitle: this.showTitle, + itemRender: this.itemRender + }, + on: { + 'click': this.handleChange, + 'keypress': this.runIfEnter + }, + + key: allPages }); + firstPager = h(_Pager2['default'], { + attrs: { + locale: locale, + rootPrefixCls: prefixCls, + + page: 1, + active: false, + showTitle: this.showTitle, + itemRender: this.itemRender + }, + on: { + 'click': this.handleChange, + 'keypress': this.runIfEnter + }, + + key: 1 }); + + var left = Math.max(1, stateCurrent - pageBufferSize); + var right = Math.min(stateCurrent + pageBufferSize, allPages); + + if (stateCurrent - 1 <= pageBufferSize) { + right = 1 + pageBufferSize * 2; + } + + if (allPages - stateCurrent <= pageBufferSize) { + left = allPages - pageBufferSize * 2; + } + + for (var _i = left; _i <= right; _i++) { + var _active = stateCurrent === _i; + pagerList.push(h(_Pager2['default'], { + attrs: { + locale: locale, + rootPrefixCls: prefixCls, + + page: _i, + active: _active, + showTitle: this.showTitle, + itemRender: this.itemRender + }, + on: { + 'click': this.handleChange, + 'keypress': this.runIfEnter + }, + + key: _i })); + } + + if (stateCurrent - 1 >= pageBufferSize * 2 && stateCurrent !== 1 + 2) { + pagerList[0] = h(_Pager2['default'], { + attrs: { + locale: locale, + rootPrefixCls: prefixCls, + + page: left, + + active: false, + showTitle: this.showTitle, + itemRender: this.itemRender + }, + on: { + 'click': this.handleChange, + 'keypress': this.runIfEnter + }, + + key: left, 'class': prefixCls + '-item-after-jump-prev' }); + pagerList.unshift(jumpPrev); + } + if (allPages - stateCurrent >= pageBufferSize * 2 && stateCurrent !== allPages - 2) { + pagerList[pagerList.length - 1] = h(_Pager2['default'], { + attrs: { + locale: locale, + rootPrefixCls: prefixCls, + + page: right, + + active: false, + showTitle: this.showTitle, + itemRender: this.itemRender + }, + on: { + 'click': this.handleChange, + 'keypress': this.runIfEnter + }, + + key: right, 'class': prefixCls + '-item-before-jump-next' }); + pagerList.push(jumpNext); + } + + if (left !== 1) { + pagerList.unshift(firstPager); + } + if (right !== allPages) { + pagerList.push(lastPager); + } + } + + var totalText = null; + + if (this.showTotal) { + totalText = h( + 'li', + { 'class': prefixCls + '-total-text' }, + [this.showTotal(this.total, [this.total === 0 ? 0 : (stateCurrent - 1) * statePageSize + 1, stateCurrent * statePageSize > this.total ? this.total : stateCurrent * statePageSize])] + ); + } + var prevDisabled = !this.hasPrev() || !allPages; + var nextDisabled = !this.hasNext() || !allPages; + var buildOptionText = this.buildOptionText || this.$scopedSlots.buildOptionText; + return h( + 'ul', + { + 'class': (_ref = {}, (0, _defineProperty3['default'])(_ref, '' + prefixCls, true), (0, _defineProperty3['default'])(_ref, prefixCls + '-disabled', disabled), _ref), + attrs: { unselectable: 'unselectable' + }, + ref: 'paginationNode' + }, + [totalText, h( + 'li', + { + attrs: { + title: this.showTitle ? locale.prev_page : null, + + tabIndex: prevDisabled ? null : 0, + + 'aria-disabled': prevDisabled + }, + on: { + 'click': this.prev, + 'keypress': this.runIfEnterPrev + }, + + 'class': (!prevDisabled ? '' : prefixCls + '-disabled') + ' ' + prefixCls + '-prev' }, + [this.itemRender(prevPage, 'prev', this.getItemIcon('prevIcon'))] + ), pagerList, h( + 'li', + { + attrs: { + title: this.showTitle ? locale.next_page : null, + + tabIndex: nextDisabled ? null : 0, + + 'aria-disabled': nextDisabled + }, + on: { + 'click': this.next, + 'keypress': this.runIfEnterNext + }, + + 'class': (!nextDisabled ? '' : prefixCls + '-disabled') + ' ' + prefixCls + '-next' }, + [this.itemRender(nextPage, 'next', this.getItemIcon('nextIcon'))] + ), h(_Options2['default'], { + attrs: { + disabled: disabled, + locale: locale, + rootPrefixCls: prefixCls, + selectComponentClass: this.selectComponentClass, + selectPrefixCls: this.selectPrefixCls, + changeSize: this.showSizeChanger ? this.changePageSize : null, + current: stateCurrent, + pageSize: statePageSize, + pageSizeOptions: this.pageSizeOptions, + buildOptionText: buildOptionText || null, + quickGo: this.shouldDisplayQuickJumper() ? this.handleChange : null, + goButton: goButton + } + })] + ); + } +}; + +/***/ }), + +/***/ "./node_modules/ant-design-vue/lib/vc-pagination/index.js": +/*!****************************************************************!*\ + !*** ./node_modules/ant-design-vue/lib/vc-pagination/index.js ***! + \****************************************************************/ +/*! no static exports found */ +/***/ (function(module, exports, __webpack_require__) { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", { + value: true +}); + +var _Pagination = __webpack_require__(/*! ./Pagination */ "./node_modules/ant-design-vue/lib/vc-pagination/Pagination.js"); + +Object.defineProperty(exports, 'default', { + enumerable: true, + get: function get() { + return _interopRequireDefault(_Pagination)['default']; + } +}); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } + +/***/ }), + +/***/ "./node_modules/ant-design-vue/lib/vc-pagination/locale/zh_CN.js": +/*!***********************************************************************!*\ + !*** ./node_modules/ant-design-vue/lib/vc-pagination/locale/zh_CN.js ***! + \***********************************************************************/ +/*! no static exports found */ +/***/ (function(module, exports, __webpack_require__) { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports['default'] = { + // Options.jsx + items_per_page: '条/页', + jump_to: '跳至', + jump_to_confirm: '确定', + page: '页', + + // Pagination.jsx + prev_page: '上一页', + next_page: '下一页', + prev_5: '向前 5 页', + next_5: '向后 5 页', + prev_3: '向前 3 页', + next_3: '向后 3 页' +}; + +/***/ }), + +/***/ "./node_modules/ant-design-vue/lib/vc-table/index.js": +/*!***********************************************************!*\ + !*** ./node_modules/ant-design-vue/lib/vc-table/index.js ***! + \***********************************************************/ +/*! no static exports found */ +/***/ (function(module, exports, __webpack_require__) { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.ColumnGroup = exports.Column = undefined; + +var _extends2 = __webpack_require__(/*! babel-runtime/helpers/extends */ "./node_modules/babel-runtime/helpers/extends.js"); + +var _extends3 = _interopRequireDefault(_extends2); + +var _Table = __webpack_require__(/*! ./src/Table */ "./node_modules/ant-design-vue/lib/vc-table/src/Table.js"); + +var _Table2 = _interopRequireDefault(_Table); + +var _Column = __webpack_require__(/*! ./src/Column */ "./node_modules/ant-design-vue/lib/vc-table/src/Column.js"); + +var _Column2 = _interopRequireDefault(_Column); + +var _ColumnGroup = __webpack_require__(/*! ./src/ColumnGroup */ "./node_modules/ant-design-vue/lib/vc-table/src/ColumnGroup.js"); + +var _ColumnGroup2 = _interopRequireDefault(_ColumnGroup); + +var _propsUtil = __webpack_require__(/*! ../_util/props-util */ "./node_modules/ant-design-vue/lib/_util/props-util.js"); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } + +// base rc-table 6.4.3 +var Table = { + name: 'Table', + Column: _Column2['default'], + ColumnGroup: _ColumnGroup2['default'], + props: _Table2['default'].props, + methods: { + normalize: function normalize() { + var _this = this; + + var elements = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : []; + + var columns = []; + elements.forEach(function (element) { + if (!element.tag) { + return; + } + var key = (0, _propsUtil.getKey)(element); + var style = (0, _propsUtil.getStyle)(element); + var cls = (0, _propsUtil.getClass)(element); + var props = (0, _propsUtil.getOptionProps)(element); + var events = (0, _propsUtil.getEvents)(element); + var listeners = {}; + Object.keys(events).forEach(function (e) { + var k = 'on-' + e; + listeners[(0, _propsUtil.camelize)(k)] = events[e]; + }); + + var _getSlots = (0, _propsUtil.getSlots)(element), + children = _getSlots['default'], + title = _getSlots.title; + + var column = (0, _extends3['default'])({ title: title }, props, { style: style, 'class': cls }, listeners); + if (key) { + column.key = key; + } + if ((0, _propsUtil.getSlotOptions)(element).isTableColumnGroup) { + column.children = _this.normalize(typeof children === 'function' ? children() : children); + } else { + var customRender = element.data && element.data.scopedSlots && element.data.scopedSlots['default']; + column.customRender = column.customRender || customRender; + } + columns.push(column); + }); + return columns; + } + }, + render: function render() { + var h = arguments[0]; + var $listeners = this.$listeners, + $slots = this.$slots, + normalize = this.normalize; + + var props = (0, _propsUtil.getOptionProps)(this); + var columns = props.columns || normalize($slots['default']); + var tProps = { + props: (0, _extends3['default'])({}, props, { + columns: columns + }), + on: $listeners + }; + return h(_Table2['default'], tProps); + } +}; + +exports['default'] = Table; +exports.Column = _Column2['default']; +exports.ColumnGroup = _ColumnGroup2['default']; + +/***/ }), + +/***/ "./node_modules/ant-design-vue/lib/vc-table/src/BaseTable.js": +/*!*******************************************************************!*\ + !*** ./node_modules/ant-design-vue/lib/vc-table/src/BaseTable.js ***! + \*******************************************************************/ +/*! no static exports found */ +/***/ (function(module, exports, __webpack_require__) { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", { + value: true +}); + +var _extends2 = __webpack_require__(/*! babel-runtime/helpers/extends */ "./node_modules/babel-runtime/helpers/extends.js"); + +var _extends3 = _interopRequireDefault(_extends2); + +var _vueTypes = __webpack_require__(/*! ../../_util/vue-types */ "./node_modules/ant-design-vue/lib/_util/vue-types/index.js"); + +var _vueTypes2 = _interopRequireDefault(_vueTypes); + +var _classnames = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js"); + +var _classnames2 = _interopRequireDefault(_classnames); + +var _ColGroup = __webpack_require__(/*! ./ColGroup */ "./node_modules/ant-design-vue/lib/vc-table/src/ColGroup.js"); + +var _ColGroup2 = _interopRequireDefault(_ColGroup); + +var _TableHeader = __webpack_require__(/*! ./TableHeader */ "./node_modules/ant-design-vue/lib/vc-table/src/TableHeader.js"); + +var _TableHeader2 = _interopRequireDefault(_TableHeader); + +var _TableRow = __webpack_require__(/*! ./TableRow */ "./node_modules/ant-design-vue/lib/vc-table/src/TableRow.js"); + +var _TableRow2 = _interopRequireDefault(_TableRow); + +var _ExpandableRow = __webpack_require__(/*! ./ExpandableRow */ "./node_modules/ant-design-vue/lib/vc-table/src/ExpandableRow.js"); + +var _ExpandableRow2 = _interopRequireDefault(_ExpandableRow); + +var _propsUtil = __webpack_require__(/*! ../../_util/props-util */ "./node_modules/ant-design-vue/lib/_util/props-util.js"); + +var _store = __webpack_require__(/*! ../../_util/store */ "./node_modules/ant-design-vue/lib/_util/store/index.js"); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } + +function noop() {} +var BaseTable = { + name: 'BaseTable', + props: { + fixed: _vueTypes2['default'].oneOfType([_vueTypes2['default'].string, _vueTypes2['default'].bool]), + columns: _vueTypes2['default'].array.isRequired, + tableClassName: _vueTypes2['default'].string.isRequired, + hasHead: _vueTypes2['default'].bool.isRequired, + hasBody: _vueTypes2['default'].bool.isRequired, + store: _vueTypes2['default'].object.isRequired, + expander: _vueTypes2['default'].object.isRequired, + getRowKey: _vueTypes2['default'].func, + isAnyColumnsFixed: _vueTypes2['default'].bool + }, + inject: { + table: { 'default': function _default() { + return {}; + } } + }, + methods: { + getColumns: function getColumns(cols) { + var _$props = this.$props, + _$props$columns = _$props.columns, + columns = _$props$columns === undefined ? [] : _$props$columns, + fixed = _$props.fixed; + var table = this.table; + var prefixCls = table.$props.prefixCls; + + return (cols || columns).map(function (column) { + return (0, _extends3['default'])({}, column, { + className: !!column.fixed && !fixed ? (0, _classnames2['default'])(prefixCls + '-fixed-columns-in-body', column.className || column['class']) : column.className || column['class'] + }); + }); + }, + handleRowHover: function handleRowHover(isHover, key) { + this.store.setState({ + currentHoverKey: isHover ? key : null + }); + }, + renderRows: function renderRows(renderData, indent) { + var _this = this; + + var ancestorKeys = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : []; + var h = this.$createElement; + var _table = this.table, + columnManager = _table.columnManager, + components = _table.sComponents, + prefixCls = _table.prefixCls, + childrenColumnName = _table.childrenColumnName, + rowClassName = _table.rowClassName, + _table$$listeners = _table.$listeners, + _table$$listeners$row = _table$$listeners.rowClick, + onRowClick = _table$$listeners$row === undefined ? noop : _table$$listeners$row, + _table$$listeners$row2 = _table$$listeners.rowDoubleclick, + onRowDoubleClick = _table$$listeners$row2 === undefined ? noop : _table$$listeners$row2, + _table$$listeners$row3 = _table$$listeners.rowContextmenu, + onRowContextMenu = _table$$listeners$row3 === undefined ? noop : _table$$listeners$row3, + _table$$listeners$row4 = _table$$listeners.rowMouseenter, + onRowMouseEnter = _table$$listeners$row4 === undefined ? noop : _table$$listeners$row4, + _table$$listeners$row5 = _table$$listeners.rowMouseleave, + onRowMouseLeave = _table$$listeners$row5 === undefined ? noop : _table$$listeners$row5, + _table$customRow = _table.customRow, + customRow = _table$customRow === undefined ? noop : _table$customRow; + var getRowKey = this.getRowKey, + fixed = this.fixed, + expander = this.expander, + isAnyColumnsFixed = this.isAnyColumnsFixed; + + + var rows = []; + + var _loop = function _loop(i) { + var record = renderData[i]; + var key = getRowKey(record, i); + var className = typeof rowClassName === 'string' ? rowClassName : rowClassName(record, i, indent); + + var onHoverProps = {}; + if (columnManager.isAnyColumnsFixed()) { + onHoverProps.hover = _this.handleRowHover; + } + + var leafColumns = void 0; + if (fixed === 'left') { + leafColumns = columnManager.leftLeafColumns(); + } else if (fixed === 'right') { + leafColumns = columnManager.rightLeafColumns(); + } else { + leafColumns = _this.getColumns(columnManager.leafColumns()); + } + + var rowPrefixCls = prefixCls + '-row'; + + var expandableRowProps = { + props: (0, _extends3['default'])({}, expander.props, { + fixed: fixed, + index: i, + prefixCls: rowPrefixCls, + record: record, + rowKey: key, + needIndentSpaced: expander.needIndentSpaced + }), + key: key, + on: { + // ...expander.on, + rowClick: onRowClick, + expandedChange: expander.handleExpandChange + }, + scopedSlots: { + 'default': function _default(expandableRow) { + var tableRowProps = (0, _propsUtil.mergeProps)({ + props: { + fixed: fixed, + indent: indent, + record: record, + index: i, + prefixCls: rowPrefixCls, + childrenColumnName: childrenColumnName, + columns: leafColumns, + rowKey: key, + ancestorKeys: ancestorKeys, + components: components, + isAnyColumnsFixed: isAnyColumnsFixed, + customRow: customRow + }, + on: (0, _extends3['default'])({ + rowDoubleclick: onRowDoubleClick, + rowContextmenu: onRowContextMenu, + rowMouseenter: onRowMouseEnter, + rowMouseleave: onRowMouseLeave + }, onHoverProps), + 'class': className, + ref: 'row_' + i + '_' + indent + }, expandableRow); + return h(_TableRow2['default'], tableRowProps); + } + } + }; + var row = h(_ExpandableRow2['default'], expandableRowProps); + + rows.push(row); + expander.renderRows(_this.renderRows, rows, record, i, indent, fixed, key, ancestorKeys); + }; + + for (var i = 0; i < renderData.length; i++) { + _loop(i); + } + return rows; + } + }, + + render: function render() { + var h = arguments[0]; + var _table2 = this.table, + components = _table2.sComponents, + prefixCls = _table2.prefixCls, + scroll = _table2.scroll, + data = _table2.data, + getBodyWrapper = _table2.getBodyWrapper; + var _$props2 = this.$props, + expander = _$props2.expander, + tableClassName = _$props2.tableClassName, + hasHead = _$props2.hasHead, + hasBody = _$props2.hasBody, + fixed = _$props2.fixed; + + + var tableStyle = {}; + + if (!fixed && scroll.x) { + // not set width, then use content fixed width + if (scroll.x === true) { + tableStyle.tableLayout = 'fixed'; + } else { + tableStyle.width = typeof scroll.x === 'number' ? scroll.x + 'px' : scroll.x; + } + } + + var Table = hasBody ? components.table : 'table'; + var BodyWrapper = components.body.wrapper; + + var body = void 0; + if (hasBody) { + body = h( + BodyWrapper, + { 'class': prefixCls + '-tbody' }, + [this.renderRows(data, 0)] + ); + if (getBodyWrapper) { + body = getBodyWrapper(body); + } + } + var columns = this.getColumns(); + return h( + Table, + { 'class': tableClassName, style: tableStyle, key: 'table' }, + [h(_ColGroup2['default'], { + attrs: { columns: columns, fixed: fixed } + }), hasHead && h(_TableHeader2['default'], { + attrs: { expander: expander, columns: columns, fixed: fixed } + }), body] + ); + } +}; + +exports['default'] = (0, _store.connect)()(BaseTable); + +/***/ }), + +/***/ "./node_modules/ant-design-vue/lib/vc-table/src/BodyTable.js": +/*!*******************************************************************!*\ + !*** ./node_modules/ant-design-vue/lib/vc-table/src/BodyTable.js ***! + \*******************************************************************/ +/*! no static exports found */ +/***/ (function(module, exports, __webpack_require__) { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", { + value: true +}); + +var _extends2 = __webpack_require__(/*! babel-runtime/helpers/extends */ "./node_modules/babel-runtime/helpers/extends.js"); + +var _extends3 = _interopRequireDefault(_extends2); + +var _vueTypes = __webpack_require__(/*! ../../_util/vue-types */ "./node_modules/ant-design-vue/lib/_util/vue-types/index.js"); + +var _vueTypes2 = _interopRequireDefault(_vueTypes); + +var _utils = __webpack_require__(/*! ./utils */ "./node_modules/ant-design-vue/lib/vc-table/src/utils.js"); + +var _BaseTable = __webpack_require__(/*! ./BaseTable */ "./node_modules/ant-design-vue/lib/vc-table/src/BaseTable.js"); + +var _BaseTable2 = _interopRequireDefault(_BaseTable); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } + +exports['default'] = { + name: 'BodyTable', + props: { + fixed: _vueTypes2['default'].oneOfType([_vueTypes2['default'].string, _vueTypes2['default'].bool]), + columns: _vueTypes2['default'].array.isRequired, + tableClassName: _vueTypes2['default'].string.isRequired, + handleBodyScroll: _vueTypes2['default'].func.isRequired, + handleWheel: _vueTypes2['default'].func.isRequired, + getRowKey: _vueTypes2['default'].func.isRequired, + expander: _vueTypes2['default'].object.isRequired, + isAnyColumnsFixed: _vueTypes2['default'].bool + }, + inject: { + table: { 'default': function _default() { + return {}; + } } + }, + mounted: function mounted() { + this.updateTableRef(); + }, + updated: function updated() { + this.updateTableRef(); + }, + + methods: { + updateTableRef: function updateTableRef() { + this.$refs.fixedColumnsBodyLeft && this.table.saveChildrenRef('fixedColumnsBodyLeft', this.$refs.fixedColumnsBodyLeft); + this.$refs.fixedColumnsBodyRight && this.table.saveChildrenRef('fixedColumnsBodyRight', this.$refs.fixedColumnsBodyRight); + this.$refs.bodyTable && this.table.saveChildrenRef('bodyTable', this.$refs.bodyTable); + } + }, + render: function render() { + var h = arguments[0]; + var _table = this.table, + prefixCls = _table.prefixCls, + scroll = _table.scroll; + var columns = this.columns, + fixed = this.fixed, + tableClassName = this.tableClassName, + getRowKey = this.getRowKey, + handleBodyScroll = this.handleBodyScroll, + handleWheel = this.handleWheel, + expander = this.expander, + isAnyColumnsFixed = this.isAnyColumnsFixed; + var useFixedHeader = this.table.useFixedHeader; + + var bodyStyle = (0, _extends3['default'])({}, this.table.bodyStyle); + var innerBodyStyle = {}; + + if (scroll.x || fixed) { + bodyStyle.overflowX = bodyStyle.overflowX || 'scroll'; + // Fix weired webkit render bug + // https://github.com/ant-design/ant-design/issues/7783 + bodyStyle.WebkitTransform = 'translate3d (0, 0, 0)'; + } + + if (scroll.y) { + // maxHeight will make fixed-Table scrolling not working + // so we only set maxHeight to body-Table here + var maxHeight = bodyStyle.maxHeight || scroll.y; + maxHeight = typeof maxHeight === 'number' ? maxHeight + 'px' : maxHeight; + if (fixed) { + innerBodyStyle.maxHeight = maxHeight; + innerBodyStyle.overflowY = bodyStyle.overflowY || 'scroll'; + } else { + bodyStyle.maxHeight = maxHeight; + } + bodyStyle.overflowY = bodyStyle.overflowY || 'scroll'; + useFixedHeader = true; + + // Add negative margin bottom for scroll bar overflow bug + var scrollbarWidth = (0, _utils.measureScrollbar)(); + if (scrollbarWidth > 0 && fixed) { + bodyStyle.marginBottom = '-' + scrollbarWidth + 'px'; + bodyStyle.paddingBottom = '0px'; + } + } + + var baseTable = h(_BaseTable2['default'], { + attrs: { + tableClassName: tableClassName, + hasHead: !useFixedHeader, + hasBody: true, + fixed: fixed, + columns: columns, + expander: expander, + getRowKey: getRowKey, + isAnyColumnsFixed: isAnyColumnsFixed + } + }); + + if (fixed && columns.length) { + var refName = void 0; + if (columns[0].fixed === 'left' || columns[0].fixed === true) { + refName = 'fixedColumnsBodyLeft'; + } else if (columns[0].fixed === 'right') { + refName = 'fixedColumnsBodyRight'; + } + delete bodyStyle.overflowX; + delete bodyStyle.overflowY; + return h( + 'div', + { key: 'bodyTable', 'class': prefixCls + '-body-outer', style: (0, _extends3['default'])({}, bodyStyle) }, + [h( + 'div', + { + 'class': prefixCls + '-body-inner', + style: innerBodyStyle, + ref: refName, + on: { + 'wheel': handleWheel, + 'scroll': handleBodyScroll + } + }, + [baseTable] + )] + ); + } + return h( + 'div', + { + key: 'bodyTable', + 'class': prefixCls + '-body', + style: bodyStyle, + ref: 'bodyTable', + on: { + 'wheel': handleWheel, + 'scroll': handleBodyScroll + } + }, + [baseTable] + ); + } +}; + +/***/ }), + +/***/ "./node_modules/ant-design-vue/lib/vc-table/src/ColGroup.js": +/*!******************************************************************!*\ + !*** ./node_modules/ant-design-vue/lib/vc-table/src/ColGroup.js ***! + \******************************************************************/ +/*! no static exports found */ +/***/ (function(module, exports, __webpack_require__) { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", { + value: true +}); + +var _vueTypes = __webpack_require__(/*! ../../_util/vue-types */ "./node_modules/ant-design-vue/lib/_util/vue-types/index.js"); + +var _vueTypes2 = _interopRequireDefault(_vueTypes); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } + +exports['default'] = { + name: 'ColGroup', + props: { + fixed: _vueTypes2['default'].string, + columns: _vueTypes2['default'].array + }, + inject: { + table: { 'default': function _default() { + return {}; + } } + }, + render: function render() { + var h = arguments[0]; + var fixed = this.fixed, + table = this.table; + var prefixCls = table.prefixCls, + expandIconAsCell = table.expandIconAsCell, + columnManager = table.columnManager; + + + var cols = []; + + if (expandIconAsCell && fixed !== 'right') { + cols.push(h('col', { 'class': prefixCls + '-expand-icon-col', key: 'rc-table-expand-icon-col' })); + } + + var leafColumns = void 0; + + if (fixed === 'left') { + leafColumns = columnManager.leftLeafColumns(); + } else if (fixed === 'right') { + leafColumns = columnManager.rightLeafColumns(); + } else { + leafColumns = columnManager.leafColumns(); + } + cols = cols.concat(leafColumns.map(function (c) { + var width = typeof c.width === 'number' ? c.width + 'px' : c.width; + return h('col', { key: c.key || c.dataIndex, style: width ? { width: width, minWidth: width } : {} }); + })); + return h('colgroup', [cols]); + } +}; + +/***/ }), + +/***/ "./node_modules/ant-design-vue/lib/vc-table/src/Column.js": +/*!****************************************************************!*\ + !*** ./node_modules/ant-design-vue/lib/vc-table/src/Column.js ***! + \****************************************************************/ +/*! no static exports found */ +/***/ (function(module, exports, __webpack_require__) { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", { + value: true +}); + +var _vueTypes = __webpack_require__(/*! ../../_util/vue-types */ "./node_modules/ant-design-vue/lib/_util/vue-types/index.js"); + +var _vueTypes2 = _interopRequireDefault(_vueTypes); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } + +exports['default'] = { + name: 'Column', + props: { + colSpan: _vueTypes2['default'].number, + title: _vueTypes2['default'].any, + dataIndex: _vueTypes2['default'].string, + width: _vueTypes2['default'].oneOfType([_vueTypes2['default'].number, _vueTypes2['default'].string]), + fixed: _vueTypes2['default'].oneOf([true, 'left', 'right']), + customRender: _vueTypes2['default'].func, + className: _vueTypes2['default'].string, + // onCellClick: PropTypes.func, + customCell: _vueTypes2['default'].func, + customHeaderCell: _vueTypes2['default'].func + } +}; + +/***/ }), + +/***/ "./node_modules/ant-design-vue/lib/vc-table/src/ColumnGroup.js": +/*!*********************************************************************!*\ + !*** ./node_modules/ant-design-vue/lib/vc-table/src/ColumnGroup.js ***! + \*********************************************************************/ +/*! no static exports found */ +/***/ (function(module, exports, __webpack_require__) { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", { + value: true +}); + +var _vueTypes = __webpack_require__(/*! ../../_util/vue-types */ "./node_modules/ant-design-vue/lib/_util/vue-types/index.js"); + +var _vueTypes2 = _interopRequireDefault(_vueTypes); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } + +exports['default'] = { + name: 'ColumnGroup', + props: { + title: _vueTypes2['default'].any + }, + isTableColumnGroup: true +}; + +/***/ }), + +/***/ "./node_modules/ant-design-vue/lib/vc-table/src/ColumnManager.js": +/*!***********************************************************************!*\ + !*** ./node_modules/ant-design-vue/lib/vc-table/src/ColumnManager.js ***! + \***********************************************************************/ +/*! no static exports found */ +/***/ (function(module, exports, __webpack_require__) { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", { + value: true +}); + +var _toConsumableArray2 = __webpack_require__(/*! babel-runtime/helpers/toConsumableArray */ "./node_modules/babel-runtime/helpers/toConsumableArray.js"); + +var _toConsumableArray3 = _interopRequireDefault(_toConsumableArray2); + +var _extends2 = __webpack_require__(/*! babel-runtime/helpers/extends */ "./node_modules/babel-runtime/helpers/extends.js"); + +var _extends3 = _interopRequireDefault(_extends2); + +var _classCallCheck2 = __webpack_require__(/*! babel-runtime/helpers/classCallCheck */ "./node_modules/babel-runtime/helpers/classCallCheck.js"); + +var _classCallCheck3 = _interopRequireDefault(_classCallCheck2); + +var _createClass2 = __webpack_require__(/*! babel-runtime/helpers/createClass */ "./node_modules/babel-runtime/helpers/createClass.js"); + +var _createClass3 = _interopRequireDefault(_createClass2); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } + +var ColumnManager = function () { + function ColumnManager(columns) { + (0, _classCallCheck3['default'])(this, ColumnManager); + + this.columns = columns; + this._cached = {}; + } + + (0, _createClass3['default'])(ColumnManager, [{ + key: 'isAnyColumnsFixed', + value: function isAnyColumnsFixed() { + var _this = this; + + return this._cache('isAnyColumnsFixed', function () { + return _this.columns.some(function (column) { + return !!column.fixed; + }); + }); + } + }, { + key: 'isAnyColumnsLeftFixed', + value: function isAnyColumnsLeftFixed() { + var _this2 = this; + + return this._cache('isAnyColumnsLeftFixed', function () { + return _this2.columns.some(function (column) { + return column.fixed === 'left' || column.fixed === true; + }); + }); + } + }, { + key: 'isAnyColumnsRightFixed', + value: function isAnyColumnsRightFixed() { + var _this3 = this; + + return this._cache('isAnyColumnsRightFixed', function () { + return _this3.columns.some(function (column) { + return column.fixed === 'right'; + }); + }); + } + }, { + key: 'leftColumns', + value: function leftColumns() { + var _this4 = this; + + return this._cache('leftColumns', function () { + return _this4.groupedColumns().filter(function (column) { + return column.fixed === 'left' || column.fixed === true; + }); + }); + } + }, { + key: 'rightColumns', + value: function rightColumns() { + var _this5 = this; + + return this._cache('rightColumns', function () { + return _this5.groupedColumns().filter(function (column) { + return column.fixed === 'right'; + }); + }); + } + }, { + key: 'leafColumns', + value: function leafColumns() { + var _this6 = this; + + return this._cache('leafColumns', function () { + return _this6._leafColumns(_this6.columns); + }); + } + }, { + key: 'leftLeafColumns', + value: function leftLeafColumns() { + var _this7 = this; + + return this._cache('leftLeafColumns', function () { + return _this7._leafColumns(_this7.leftColumns()); + }); + } + }, { + key: 'rightLeafColumns', + value: function rightLeafColumns() { + var _this8 = this; + + return this._cache('rightLeafColumns', function () { + return _this8._leafColumns(_this8.rightColumns()); + }); + } + + // add appropriate rowspan and colspan to column + + }, { + key: 'groupedColumns', + value: function groupedColumns() { + var _this9 = this; + + return this._cache('groupedColumns', function () { + var _groupColumns = function _groupColumns(columns) { + var currentRow = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 0; + var parentColumn = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {}; + var rows = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : []; + + // track how many rows we got + rows[currentRow] = rows[currentRow] || []; + var grouped = []; + var setRowSpan = function setRowSpan(column) { + var rowSpan = rows.length - currentRow; + if (column && !column.children && // parent columns are supposed to be one row + rowSpan > 1 && (!column.rowSpan || column.rowSpan < rowSpan)) { + column.rowSpan = rowSpan; + } + }; + columns.forEach(function (column, index) { + var newColumn = (0, _extends3['default'])({}, column); + rows[currentRow].push(newColumn); + parentColumn.colSpan = parentColumn.colSpan || 0; + if (newColumn.children && newColumn.children.length > 0) { + newColumn.children = _groupColumns(newColumn.children, currentRow + 1, newColumn, rows); + parentColumn.colSpan += newColumn.colSpan; + } else { + parentColumn.colSpan++; + } + // update rowspan to all same row columns + for (var i = 0; i < rows[currentRow].length - 1; ++i) { + setRowSpan(rows[currentRow][i]); + } + // last column, update rowspan immediately + if (index + 1 === columns.length) { + setRowSpan(newColumn); + } + grouped.push(newColumn); + }); + return grouped; + }; + return _groupColumns(_this9.columns); + }); + } + }, { + key: 'reset', + value: function reset(columns) { + this.columns = columns; + this._cached = {}; + } + }, { + key: '_cache', + value: function _cache(name, fn) { + if (name in this._cached) { + return this._cached[name]; + } + this._cached[name] = fn(); + return this._cached[name]; + } + }, { + key: '_leafColumns', + value: function _leafColumns(columns) { + var _this10 = this; + + var leafColumns = []; + columns.forEach(function (column) { + if (!column.children) { + leafColumns.push(column); + } else { + leafColumns.push.apply(leafColumns, (0, _toConsumableArray3['default'])(_this10._leafColumns(column.children))); + } + }); + return leafColumns; + } + }]); + return ColumnManager; +}(); + +exports['default'] = ColumnManager; + +/***/ }), + +/***/ "./node_modules/ant-design-vue/lib/vc-table/src/ExpandIcon.js": +/*!********************************************************************!*\ + !*** ./node_modules/ant-design-vue/lib/vc-table/src/ExpandIcon.js ***! + \********************************************************************/ +/*! no static exports found */ +/***/ (function(module, exports, __webpack_require__) { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", { + value: true +}); + +var _vueTypes = __webpack_require__(/*! ../../_util/vue-types */ "./node_modules/ant-design-vue/lib/_util/vue-types/index.js"); + +var _vueTypes2 = _interopRequireDefault(_vueTypes); + +var _BaseMixin = __webpack_require__(/*! ../../_util/BaseMixin */ "./node_modules/ant-design-vue/lib/_util/BaseMixin.js"); + +var _BaseMixin2 = _interopRequireDefault(_BaseMixin); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } + +exports['default'] = { + name: 'ExpandIcon', + mixins: [_BaseMixin2['default']], + props: { + record: _vueTypes2['default'].object, + prefixCls: _vueTypes2['default'].string, + expandable: _vueTypes2['default'].any, + expanded: _vueTypes2['default'].bool, + needIndentSpaced: _vueTypes2['default'].bool + }, + methods: { + onExpand: function onExpand(e) { + this.__emit('expand', this.record, e); + } + }, + + render: function render() { + var h = arguments[0]; + var expandable = this.expandable, + prefixCls = this.prefixCls, + onExpand = this.onExpand, + needIndentSpaced = this.needIndentSpaced, + expanded = this.expanded; + + if (expandable) { + var expandClassName = expanded ? 'expanded' : 'collapsed'; + return h('span', { + 'class': prefixCls + '-expand-icon ' + prefixCls + '-' + expandClassName, + on: { + 'click': onExpand + } + }); + } else if (needIndentSpaced) { + return h('span', { 'class': prefixCls + '-expand-icon ' + prefixCls + '-spaced' }); + } + return null; + } +}; + +/***/ }), + +/***/ "./node_modules/ant-design-vue/lib/vc-table/src/ExpandableRow.js": +/*!***********************************************************************!*\ + !*** ./node_modules/ant-design-vue/lib/vc-table/src/ExpandableRow.js ***! + \***********************************************************************/ +/*! no static exports found */ +/***/ (function(module, exports, __webpack_require__) { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", { + value: true +}); + +var _vueTypes = __webpack_require__(/*! ../../_util/vue-types */ "./node_modules/ant-design-vue/lib/_util/vue-types/index.js"); + +var _vueTypes2 = _interopRequireDefault(_vueTypes); + +var _ExpandIcon = __webpack_require__(/*! ./ExpandIcon */ "./node_modules/ant-design-vue/lib/vc-table/src/ExpandIcon.js"); + +var _ExpandIcon2 = _interopRequireDefault(_ExpandIcon); + +var _BaseMixin = __webpack_require__(/*! ../../_util/BaseMixin */ "./node_modules/ant-design-vue/lib/_util/BaseMixin.js"); + +var _BaseMixin2 = _interopRequireDefault(_BaseMixin); + +var _store = __webpack_require__(/*! ../../_util/store */ "./node_modules/ant-design-vue/lib/_util/store/index.js"); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } + +var ExpandableRow = { + mixins: [_BaseMixin2['default']], + name: 'ExpandableRow', + props: { + prefixCls: _vueTypes2['default'].string.isRequired, + rowKey: _vueTypes2['default'].oneOfType([_vueTypes2['default'].string, _vueTypes2['default'].number]).isRequired, + fixed: _vueTypes2['default'].oneOfType([_vueTypes2['default'].string, _vueTypes2['default'].bool]), + record: _vueTypes2['default'].oneOfType([_vueTypes2['default'].object, _vueTypes2['default'].array]).isRequired, + indentSize: _vueTypes2['default'].number, + needIndentSpaced: _vueTypes2['default'].bool.isRequired, + expandRowByClick: _vueTypes2['default'].bool, + expanded: _vueTypes2['default'].bool.isRequired, + expandIconAsCell: _vueTypes2['default'].bool, + expandIconColumnIndex: _vueTypes2['default'].number, + childrenColumnName: _vueTypes2['default'].string, + expandedRowRender: _vueTypes2['default'].func, + expandIcon: _vueTypes2['default'].func + // onExpandedChange: PropTypes.func.isRequired, + // onRowClick: PropTypes.func, + // children: PropTypes.func.isRequired, + }, + + beforeDestroy: function beforeDestroy() { + this.handleDestroy(); + }, + + methods: { + hasExpandIcon: function hasExpandIcon(columnIndex) { + var expandRowByClick = this.expandRowByClick; + + return !this.tempExpandIconAsCell && !expandRowByClick && columnIndex === this.tempExpandIconColumnIndex; + }, + handleExpandChange: function handleExpandChange(record, event) { + var expanded = this.expanded, + rowKey = this.rowKey; + + this.__emit('expandedChange', !expanded, record, event, rowKey); + }, + handleDestroy: function handleDestroy() { + var rowKey = this.rowKey, + record = this.record; + + this.__emit('expandedChange', false, record, null, rowKey, true); + }, + handleRowClick: function handleRowClick(record, index, event) { + var expandRowByClick = this.expandRowByClick; + + if (expandRowByClick) { + this.handleExpandChange(record, event); + } + this.__emit('rowClick', record, index, event); + }, + renderExpandIcon: function renderExpandIcon() { + var h = this.$createElement; + var prefixCls = this.prefixCls, + expanded = this.expanded, + record = this.record, + needIndentSpaced = this.needIndentSpaced, + expandIcon = this.expandIcon; + + if (expandIcon) { + return expandIcon({ + prefixCls: prefixCls, + expanded: expanded, + record: record, + needIndentSpaced: needIndentSpaced, + expandable: this.expandable, + onExpand: this.handleExpandChange + }); + } + return h(_ExpandIcon2['default'], { + attrs: { + expandable: this.expandable, + prefixCls: prefixCls, + + needIndentSpaced: needIndentSpaced, + expanded: expanded, + record: record + }, + on: { + 'expand': this.handleExpandChange + } + }); + }, + renderExpandIconCell: function renderExpandIconCell(cells) { + var h = this.$createElement; + + if (!this.tempExpandIconAsCell) { + return; + } + var prefixCls = this.prefixCls; + + + cells.push(h( + 'td', + { 'class': prefixCls + '-expand-icon-cell', key: 'rc-table-expand-icon-cell' }, + [this.renderExpandIcon()] + )); + } + }, + + render: function render() { + var childrenColumnName = this.childrenColumnName, + expandedRowRender = this.expandedRowRender, + indentSize = this.indentSize, + record = this.record, + fixed = this.fixed, + $scopedSlots = this.$scopedSlots, + expanded = this.expanded; + + + this.tempExpandIconAsCell = fixed !== 'right' ? this.expandIconAsCell : false; + this.tempExpandIconColumnIndex = fixed !== 'right' ? this.expandIconColumnIndex : -1; + var childrenData = record[childrenColumnName]; + this.expandable = !!(childrenData || expandedRowRender); + var expandableRowProps = { + props: { + indentSize: indentSize, + expanded: expanded, // not used in TableRow, but it's required to re-render TableRow when `expanded` changes + hasExpandIcon: this.hasExpandIcon, + renderExpandIcon: this.renderExpandIcon, + renderExpandIconCell: this.renderExpandIconCell + }, + + on: { + rowClick: this.handleRowClick + } + }; + + return $scopedSlots['default'] && $scopedSlots['default'](expandableRowProps); + } +}; + +exports['default'] = (0, _store.connect)(function (_ref, _ref2) { + var expandedRowKeys = _ref.expandedRowKeys; + var rowKey = _ref2.rowKey; + return { + expanded: !!~expandedRowKeys.indexOf(rowKey) + }; +})(ExpandableRow); + +/***/ }), + +/***/ "./node_modules/ant-design-vue/lib/vc-table/src/ExpandableTable.js": +/*!*************************************************************************!*\ + !*** ./node_modules/ant-design-vue/lib/vc-table/src/ExpandableTable.js ***! + \*************************************************************************/ +/*! no static exports found */ +/***/ (function(module, exports, __webpack_require__) { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.ExpandableTableProps = undefined; + +var _extends2 = __webpack_require__(/*! babel-runtime/helpers/extends */ "./node_modules/babel-runtime/helpers/extends.js"); + +var _extends3 = _interopRequireDefault(_extends2); + +var _toConsumableArray2 = __webpack_require__(/*! babel-runtime/helpers/toConsumableArray */ "./node_modules/babel-runtime/helpers/toConsumableArray.js"); + +var _toConsumableArray3 = _interopRequireDefault(_toConsumableArray2); + +var _vueTypes = __webpack_require__(/*! ../../_util/vue-types */ "./node_modules/ant-design-vue/lib/_util/vue-types/index.js"); + +var _vueTypes2 = _interopRequireDefault(_vueTypes); + +var _BaseMixin = __webpack_require__(/*! ../../_util/BaseMixin */ "./node_modules/ant-design-vue/lib/_util/BaseMixin.js"); + +var _BaseMixin2 = _interopRequireDefault(_BaseMixin); + +var _store = __webpack_require__(/*! ../../_util/store */ "./node_modules/ant-design-vue/lib/_util/store/index.js"); + +var _shallowequal = __webpack_require__(/*! shallowequal */ "./node_modules/shallowequal/index.js"); + +var _shallowequal2 = _interopRequireDefault(_shallowequal); + +var _TableRow = __webpack_require__(/*! ./TableRow */ "./node_modules/ant-design-vue/lib/vc-table/src/TableRow.js"); + +var _TableRow2 = _interopRequireDefault(_TableRow); + +var _utils = __webpack_require__(/*! ./utils */ "./node_modules/ant-design-vue/lib/vc-table/src/utils.js"); + +var _propsUtil = __webpack_require__(/*! ../../_util/props-util */ "./node_modules/ant-design-vue/lib/_util/props-util.js"); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } + +var ExpandableTableProps = exports.ExpandableTableProps = function ExpandableTableProps() { + return { + expandIconAsCell: _vueTypes2['default'].bool, + expandRowByClick: _vueTypes2['default'].bool, + expandedRowKeys: _vueTypes2['default'].array, + expandedRowClassName: _vueTypes2['default'].func, + defaultExpandAllRows: _vueTypes2['default'].bool, + defaultExpandedRowKeys: _vueTypes2['default'].array, + expandIconColumnIndex: _vueTypes2['default'].number, + expandedRowRender: _vueTypes2['default'].func, + expandIcon: _vueTypes2['default'].func, + childrenColumnName: _vueTypes2['default'].string, + indentSize: _vueTypes2['default'].number, + // onExpand: PropTypes.func, + // onExpandedRowsChange: PropTypes.func, + columnManager: _vueTypes2['default'].object.isRequired, + store: _vueTypes2['default'].object.isRequired, + prefixCls: _vueTypes2['default'].string.isRequired, + data: _vueTypes2['default'].array, + getRowKey: _vueTypes2['default'].func + }; +}; + +var ExpandableTable = { + name: 'ExpandableTable', + mixins: [_BaseMixin2['default']], + props: (0, _propsUtil.initDefaultProps)(ExpandableTableProps(), { + expandIconAsCell: false, + expandedRowClassName: function expandedRowClassName() { + return ''; + }, + expandIconColumnIndex: 0, + defaultExpandAllRows: false, + defaultExpandedRowKeys: [], + childrenColumnName: 'children', + indentSize: 15 + }), + + data: function data() { + var data = this.data, + childrenColumnName = this.childrenColumnName, + defaultExpandAllRows = this.defaultExpandAllRows, + expandedRowKeys = this.expandedRowKeys, + defaultExpandedRowKeys = this.defaultExpandedRowKeys, + getRowKey = this.getRowKey; + + + var finnalExpandedRowKeys = []; + var rows = [].concat((0, _toConsumableArray3['default'])(data)); + + if (defaultExpandAllRows) { + for (var i = 0; i < rows.length; i++) { + var row = rows[i]; + finnalExpandedRowKeys.push(getRowKey(row, i)); + rows = rows.concat(row[childrenColumnName] || []); + } + } else { + finnalExpandedRowKeys = expandedRowKeys || defaultExpandedRowKeys; + } + + // this.columnManager = props.columnManager + // this.store = props.store + + this.store.setState({ + expandedRowsHeight: {}, + expandedRowKeys: finnalExpandedRowKeys + }); + return {}; + }, + mounted: function mounted() { + this.handleUpdated(); + }, + updated: function updated() { + this.handleUpdated(); + }, + + watch: { + expandedRowKeys: function expandedRowKeys(val) { + var _this = this; + + this.$nextTick(function () { + _this.store.setState({ + expandedRowKeys: val + }); + }); + } + }, + methods: { + handleUpdated: function handleUpdated() { + // We should record latest expanded rows to avoid multiple rows remove cause `onExpandedRowsChange` trigger many times + this.latestExpandedRows = null; + }, + handleExpandChange: function handleExpandChange(expanded, record, event, rowKey) { + var destroy = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : false; + + if (event) { + event.preventDefault(); + event.stopPropagation(); + } + + var _store$getState = this.store.getState(), + expandedRowKeys = _store$getState.expandedRowKeys; + + if (expanded) { + // row was expaned + expandedRowKeys = [].concat((0, _toConsumableArray3['default'])(expandedRowKeys), [rowKey]); + } else { + // row was collapse + var expandedRowIndex = expandedRowKeys.indexOf(rowKey); + if (expandedRowIndex !== -1) { + expandedRowKeys = (0, _utils.remove)(expandedRowKeys, rowKey); + } + } + + if (!this.expandedRowKeys) { + this.store.setState({ expandedRowKeys: expandedRowKeys }); + } + // De-dup of repeat call + if (!this.latestExpandedRows || !(0, _shallowequal2['default'])(this.latestExpandedRows, expandedRowKeys)) { + this.latestExpandedRows = expandedRowKeys; + this.__emit('expandedRowsChange', expandedRowKeys); + } + + if (!destroy) { + this.__emit('expand', expanded, record); + } + }, + renderExpandIndentCell: function renderExpandIndentCell(rows, fixed) { + var prefixCls = this.prefixCls, + expandIconAsCell = this.expandIconAsCell; + + if (!expandIconAsCell || fixed === 'right' || !rows.length) { + return; + } + + var iconColumn = { + key: 'rc-table-expand-icon-cell', + className: prefixCls + '-expand-icon-th', + title: '', + rowSpan: rows.length + }; + + rows[0].unshift((0, _extends3['default'])({}, iconColumn, { column: iconColumn })); + }, + renderExpandedRow: function renderExpandedRow(record, index, expandedRowRender, className, ancestorKeys, indent, fixed) { + var _this2 = this; + + var h = this.$createElement; + var prefixCls = this.prefixCls, + expandIconAsCell = this.expandIconAsCell, + indentSize = this.indentSize; + + var parentKey = ancestorKeys[ancestorKeys.length - 1]; + var rowKey = parentKey + '-extra-row'; + var components = { + body: { + row: 'tr', + cell: 'td' + } + }; + var colCount = void 0; + if (fixed === 'left') { + colCount = this.columnManager.leftLeafColumns().length; + } else if (fixed === 'right') { + colCount = this.columnManager.rightLeafColumns().length; + } else { + colCount = this.columnManager.leafColumns().length; + } + var columns = [{ + key: 'extra-row', + customRender: function customRender() { + var _store$getState2 = _this2.store.getState(), + expandedRowKeys = _store$getState2.expandedRowKeys; + + var expanded = !!~expandedRowKeys.indexOf(parentKey); + return { + attrs: { + colSpan: colCount + }, + children: fixed !== 'right' ? expandedRowRender(record, index, indent, expanded) : ' ' + }; + } + }]; + if (expandIconAsCell && fixed !== 'right') { + columns.unshift({ + key: 'expand-icon-placeholder', + customRender: function customRender() { + return null; + } + }); + } + + return h(_TableRow2['default'], { + key: rowKey, + attrs: { columns: columns, + + rowKey: rowKey, + ancestorKeys: ancestorKeys, + prefixCls: prefixCls + '-expanded-row', + indentSize: indentSize, + indent: indent, + fixed: fixed, + components: components, + expandedRow: true, + hasExpandIcon: function hasExpandIcon() {} + }, + 'class': className }); + }, + renderRows: function renderRows(_renderRows, rows, record, index, indent, fixed, parentKey, ancestorKeys) { + var expandedRowClassName = this.expandedRowClassName, + expandedRowRender = this.expandedRowRender, + childrenColumnName = this.childrenColumnName; + + var childrenData = record[childrenColumnName]; + var nextAncestorKeys = [].concat((0, _toConsumableArray3['default'])(ancestorKeys), [parentKey]); + var nextIndent = indent + 1; + + if (expandedRowRender) { + rows.push(this.renderExpandedRow(record, index, expandedRowRender, expandedRowClassName(record, index, indent), nextAncestorKeys, nextIndent, fixed)); + } + + if (childrenData) { + rows.push.apply(rows, (0, _toConsumableArray3['default'])(_renderRows(childrenData, nextIndent, nextAncestorKeys))); + } + } + }, + + render: function render() { + var data = this.data, + childrenColumnName = this.childrenColumnName, + $scopedSlots = this.$scopedSlots, + $listeners = this.$listeners; + + var props = (0, _propsUtil.getOptionProps)(this); + var needIndentSpaced = data.some(function (record) { + return record[childrenColumnName]; + }); + + return $scopedSlots['default'] && $scopedSlots['default']({ + props: props, + on: $listeners, + needIndentSpaced: needIndentSpaced, + renderRows: this.renderRows, + handleExpandChange: this.handleExpandChange, + renderExpandIndentCell: this.renderExpandIndentCell + }); + } +}; + +exports['default'] = (0, _store.connect)()(ExpandableTable); + +/***/ }), + +/***/ "./node_modules/ant-design-vue/lib/vc-table/src/HeadTable.js": +/*!*******************************************************************!*\ + !*** ./node_modules/ant-design-vue/lib/vc-table/src/HeadTable.js ***! + \*******************************************************************/ +/*! no static exports found */ +/***/ (function(module, exports, __webpack_require__) { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", { + value: true +}); + +var _vueTypes = __webpack_require__(/*! ../../_util/vue-types */ "./node_modules/ant-design-vue/lib/_util/vue-types/index.js"); + +var _vueTypes2 = _interopRequireDefault(_vueTypes); + +var _utils = __webpack_require__(/*! ./utils */ "./node_modules/ant-design-vue/lib/vc-table/src/utils.js"); + +var _BaseTable = __webpack_require__(/*! ./BaseTable */ "./node_modules/ant-design-vue/lib/vc-table/src/BaseTable.js"); + +var _BaseTable2 = _interopRequireDefault(_BaseTable); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } + +exports['default'] = { + name: 'HeadTable', + props: { + fixed: _vueTypes2['default'].oneOfType([_vueTypes2['default'].string, _vueTypes2['default'].bool]), + columns: _vueTypes2['default'].array.isRequired, + tableClassName: _vueTypes2['default'].string.isRequired, + handleBodyScrollLeft: _vueTypes2['default'].func.isRequired, + expander: _vueTypes2['default'].object.isRequired + }, + inject: { + table: { 'default': function _default() { + return {}; + } } + }, + mounted: function mounted() { + this.updateTableRef(); + }, + updated: function updated() { + this.updateTableRef(); + }, + + methods: { + updateTableRef: function updateTableRef() { + var _this = this; + + this.$nextTick(function () { + _this.$refs.headTable && _this.table.saveChildrenRef('headTable', _this.$refs.headTable); + }); + } + }, + render: function render() { + var h = arguments[0]; + var columns = this.columns, + fixed = this.fixed, + tableClassName = this.tableClassName, + handleBodyScrollLeft = this.handleBodyScrollLeft, + expander = this.expander, + table = this.table; + var prefixCls = table.prefixCls, + scroll = table.scroll, + showHeader = table.showHeader; + var useFixedHeader = table.useFixedHeader; + + var headStyle = {}; + + if (scroll.y) { + useFixedHeader = true; + // Add negative margin bottom for scroll bar overflow bug + var scrollbarWidth = (0, _utils.measureScrollbar)('horizontal'); + if (scrollbarWidth > 0 && !fixed) { + headStyle.marginBottom = '-' + scrollbarWidth + 'px'; + headStyle.paddingBottom = '0px'; + } + } + + if (!useFixedHeader || !showHeader) { + return null; + } + return h( + 'div', + { + key: 'headTable', + ref: fixed ? null : 'headTable', + 'class': prefixCls + '-header', + style: headStyle, + on: { + 'scroll': handleBodyScrollLeft + } + }, + [h(_BaseTable2['default'], { + attrs: { + tableClassName: tableClassName, + hasHead: true, + hasBody: false, + fixed: fixed, + columns: columns, + expander: expander + } + })] + ); + } +}; + +/***/ }), + +/***/ "./node_modules/ant-design-vue/lib/vc-table/src/Table.js": +/*!***************************************************************!*\ + !*** ./node_modules/ant-design-vue/lib/vc-table/src/Table.js ***! + \***************************************************************/ +/*! no static exports found */ +/***/ (function(module, exports, __webpack_require__) { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", { + value: true +}); + +var _extends2 = __webpack_require__(/*! babel-runtime/helpers/extends */ "./node_modules/babel-runtime/helpers/extends.js"); + +var _extends3 = _interopRequireDefault(_extends2); + +var _toConsumableArray2 = __webpack_require__(/*! babel-runtime/helpers/toConsumableArray */ "./node_modules/babel-runtime/helpers/toConsumableArray.js"); + +var _toConsumableArray3 = _interopRequireDefault(_toConsumableArray2); + +var _shallowequal = __webpack_require__(/*! shallowequal */ "./node_modules/shallowequal/index.js"); + +var _shallowequal2 = _interopRequireDefault(_shallowequal); + +var _merge = __webpack_require__(/*! lodash/merge */ "./node_modules/lodash/merge.js"); + +var _merge2 = _interopRequireDefault(_merge); + +var _componentClasses = __webpack_require__(/*! component-classes */ "./node_modules/component-classes/index.js"); + +var _componentClasses2 = _interopRequireDefault(_componentClasses); + +var _vueTypes = __webpack_require__(/*! ../../_util/vue-types */ "./node_modules/ant-design-vue/lib/_util/vue-types/index.js"); + +var _vueTypes2 = _interopRequireDefault(_vueTypes); + +var _utils = __webpack_require__(/*! ./utils */ "./node_modules/ant-design-vue/lib/vc-table/src/utils.js"); + +var _addEventListener = __webpack_require__(/*! ../../_util/Dom/addEventListener */ "./node_modules/ant-design-vue/lib/_util/Dom/addEventListener.js"); + +var _addEventListener2 = _interopRequireDefault(_addEventListener); + +var _store = __webpack_require__(/*! ../../_util/store */ "./node_modules/ant-design-vue/lib/_util/store/index.js"); + +var _ColumnManager = __webpack_require__(/*! ./ColumnManager */ "./node_modules/ant-design-vue/lib/vc-table/src/ColumnManager.js"); + +var _ColumnManager2 = _interopRequireDefault(_ColumnManager); + +var _HeadTable = __webpack_require__(/*! ./HeadTable */ "./node_modules/ant-design-vue/lib/vc-table/src/HeadTable.js"); + +var _HeadTable2 = _interopRequireDefault(_HeadTable); + +var _BodyTable = __webpack_require__(/*! ./BodyTable */ "./node_modules/ant-design-vue/lib/vc-table/src/BodyTable.js"); + +var _BodyTable2 = _interopRequireDefault(_BodyTable); + +var _ExpandableTable = __webpack_require__(/*! ./ExpandableTable */ "./node_modules/ant-design-vue/lib/vc-table/src/ExpandableTable.js"); + +var _ExpandableTable2 = _interopRequireDefault(_ExpandableTable); + +var _propsUtil = __webpack_require__(/*! ../../_util/props-util */ "./node_modules/ant-design-vue/lib/_util/props-util.js"); + +var _BaseMixin = __webpack_require__(/*! ../../_util/BaseMixin */ "./node_modules/ant-design-vue/lib/_util/BaseMixin.js"); + +var _BaseMixin2 = _interopRequireDefault(_BaseMixin); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } + +exports['default'] = { + name: 'Table', + mixins: [_BaseMixin2['default']], + props: (0, _propsUtil.initDefaultProps)({ + data: _vueTypes2['default'].array, + useFixedHeader: _vueTypes2['default'].bool, + columns: _vueTypes2['default'].array, + prefixCls: _vueTypes2['default'].string, + bodyStyle: _vueTypes2['default'].object, + rowKey: _vueTypes2['default'].oneOfType([_vueTypes2['default'].string, _vueTypes2['default'].func]), + rowClassName: _vueTypes2['default'].oneOfType([_vueTypes2['default'].string, _vueTypes2['default'].func]), + customRow: _vueTypes2['default'].func, + customHeaderRow: _vueTypes2['default'].func, + // onRowClick: PropTypes.func, + // onRowDoubleClick: PropTypes.func, + // onRowContextMenu: PropTypes.func, + // onRowMouseEnter: PropTypes.func, + // onRowMouseLeave: PropTypes.func, + showHeader: _vueTypes2['default'].bool, + title: _vueTypes2['default'].func, + id: _vueTypes2['default'].string, + footer: _vueTypes2['default'].func, + emptyText: _vueTypes2['default'].any, + scroll: _vueTypes2['default'].object, + rowRef: _vueTypes2['default'].func, + getBodyWrapper: _vueTypes2['default'].func, + components: _vueTypes2['default'].shape({ + table: _vueTypes2['default'].any, + header: _vueTypes2['default'].shape({ + wrapper: _vueTypes2['default'].any, + row: _vueTypes2['default'].any, + cell: _vueTypes2['default'].any + }), + body: _vueTypes2['default'].shape({ + wrapper: _vueTypes2['default'].any, + row: _vueTypes2['default'].any, + cell: _vueTypes2['default'].any + }) + }), + expandIconAsCell: _vueTypes2['default'].bool, + expandedRowKeys: _vueTypes2['default'].array, + expandedRowClassName: _vueTypes2['default'].func, + defaultExpandAllRows: _vueTypes2['default'].bool, + defaultExpandedRowKeys: _vueTypes2['default'].array, + expandIconColumnIndex: _vueTypes2['default'].number, + expandedRowRender: _vueTypes2['default'].func, + childrenColumnName: _vueTypes2['default'].string, + indentSize: _vueTypes2['default'].number, + expandRowByClick: _vueTypes2['default'].bool, + expandIcon: _vueTypes2['default'].func + }, { + data: [], + useFixedHeader: false, + rowKey: 'key', + rowClassName: function rowClassName() { + return ''; + }, + prefixCls: 'rc-table', + bodyStyle: {}, + showHeader: true, + scroll: {}, + rowRef: function rowRef() { + return null; + }, + emptyText: function emptyText() { + return 'No Data'; + }, + customHeaderRow: function customHeaderRow() {} + }), + data: function data() { + this.preData = [].concat((0, _toConsumableArray3['default'])(this.data)); + return { + columnManager: new _ColumnManager2['default'](this.columns), + sComponents: (0, _merge2['default'])({ + table: 'table', + header: { + wrapper: 'thead', + row: 'tr', + cell: 'th' + }, + body: { + wrapper: 'tbody', + row: 'tr', + cell: 'td' + } + }, this.components) + }; + }, + + watch: { + components: function components() { + this._components = (0, _merge2['default'])({ + table: 'table', + header: { + wrapper: 'thead', + row: 'tr', + cell: 'th' + }, + body: { + wrapper: 'tbody', + row: 'tr', + cell: 'td' + } + }, this.components); + }, + columns: function columns(val) { + if (val) { + this.columnManager.reset(val); + } + }, + data: function data(val) { + var _this = this; + + if (val.length === 0 && this.hasScrollX()) { + this.$nextTick(function () { + _this.resetScrollX(); + }); + } + } + }, + + // static childContextTypes = { + // table: PropTypes.any, + // components: PropTypes.any, + // }, + + created: function created() { + var _this2 = this; + + ['rowClick', 'rowDoubleclick', 'rowContextmenu', 'rowMouseenter', 'rowMouseleave'].forEach(function (name) { + (0, _utils.warningOnce)(_this2.$listeners[name] === undefined, name + ' is deprecated, please use customRow instead.'); + }); + + (0, _utils.warningOnce)(this.getBodyWrapper === undefined, 'getBodyWrapper is deprecated, please use custom components instead.'); + + // this.columnManager = new ColumnManager(this.columns, this.$slots.default) + + this.store = (0, _store.create)({ + currentHoverKey: null, + fixedColumnsHeadRowsHeight: [], + fixedColumnsBodyRowsHeight: {} + }); + + this.setScrollPosition('left'); + + this.debouncedWindowResize = (0, _utils.debounce)(this.handleWindowResize, 150); + }, + provide: function provide() { + return { + table: this + }; + }, + mounted: function mounted() { + var _this3 = this; + + this.$nextTick(function () { + if (_this3.columnManager.isAnyColumnsFixed()) { + _this3.handleWindowResize(); + _this3.resizeEvent = (0, _addEventListener2['default'])(window, 'resize', _this3.debouncedWindowResize); + } + // https://github.com/ant-design/ant-design/issues/11635 + if (_this3.ref_headTable) { + _this3.ref_headTable.scrollLeft = 0; + } + if (_this3.ref_bodyTable) { + _this3.ref_bodyTable.scrollLeft = 0; + } + }); + }, + updated: function updated() { + var _this4 = this; + + this.$nextTick(function () { + if (_this4.columnManager.isAnyColumnsFixed()) { + _this4.handleWindowResize(); + if (!_this4.resizeEvent) { + _this4.resizeEvent = (0, _addEventListener2['default'])(window, 'resize', _this4.debouncedWindowResize); + } + } + }); + }, + beforeDestroy: function beforeDestroy() { + if (this.resizeEvent) { + this.resizeEvent.remove(); + } + if (this.debouncedWindowResize) { + this.debouncedWindowResize.cancel(); + } + }, + + methods: { + getRowKey: function getRowKey(record, index) { + var rowKey = this.rowKey; + var key = typeof rowKey === 'function' ? rowKey(record, index) : record[rowKey]; + (0, _utils.warningOnce)(key !== undefined, 'Each record in table should have a unique `key` prop,' + 'or set `rowKey` to an unique primary key.'); + return key === undefined ? index : key; + }, + setScrollPosition: function setScrollPosition(position) { + this.scrollPosition = position; + if (this.$refs.tableNode) { + var prefixCls = this.prefixCls; + + if (position === 'both') { + (0, _componentClasses2['default'])(this.$refs.tableNode).remove(new RegExp('^' + prefixCls + '-scroll-position-.+$')).add(prefixCls + '-scroll-position-left').add(prefixCls + '-scroll-position-right'); + } else { + (0, _componentClasses2['default'])(this.$refs.tableNode).remove(new RegExp('^' + prefixCls + '-scroll-position-.+$')).add(prefixCls + '-scroll-position-' + position); + } + } + }, + setScrollPositionClassName: function setScrollPositionClassName() { + var node = this.ref_bodyTable; + var scrollToLeft = node.scrollLeft === 0; + var scrollToRight = node.scrollLeft + 1 >= node.children[0].getBoundingClientRect().width - node.getBoundingClientRect().width; + if (scrollToLeft && scrollToRight) { + this.setScrollPosition('both'); + } else if (scrollToLeft) { + this.setScrollPosition('left'); + } else if (scrollToRight) { + this.setScrollPosition('right'); + } else if (this.scrollPosition !== 'middle') { + this.setScrollPosition('middle'); + } + }, + handleWindowResize: function handleWindowResize() { + this.syncFixedTableRowHeight(); + this.setScrollPositionClassName(); + }, + syncFixedTableRowHeight: function syncFixedTableRowHeight() { + var tableRect = this.$refs.tableNode.getBoundingClientRect(); + // If tableNode's height less than 0, suppose it is hidden and don't recalculate rowHeight. + // see: https://github.com/ant-design/ant-design/issues/4836 + if (tableRect.height !== undefined && tableRect.height <= 0) { + return; + } + var prefixCls = this.prefixCls; + + var headRows = this.ref_headTable ? this.ref_headTable.querySelectorAll('thead') : this.ref_bodyTable.querySelectorAll('thead'); + var bodyRows = this.ref_bodyTable.querySelectorAll('.' + prefixCls + '-row') || []; + var fixedColumnsHeadRowsHeight = [].map.call(headRows, function (row) { + return row.getBoundingClientRect().height || 'auto'; + }); + var state = this.store.getState(); + var fixedColumnsBodyRowsHeight = [].reduce.call(bodyRows, function (acc, row) { + var rowKey = row.getAttribute('data-row-key'); + var height = row.getBoundingClientRect().height || state.fixedColumnsBodyRowsHeight[rowKey] || 'auto'; + acc[rowKey] = height; + return acc; + }, {}); + if ((0, _shallowequal2['default'])(state.fixedColumnsHeadRowsHeight, fixedColumnsHeadRowsHeight) && (0, _shallowequal2['default'])(state.fixedColumnsBodyRowsHeight, fixedColumnsBodyRowsHeight)) { + return; + } + this.store.setState({ + fixedColumnsHeadRowsHeight: fixedColumnsHeadRowsHeight, + fixedColumnsBodyRowsHeight: fixedColumnsBodyRowsHeight + }); + }, + resetScrollX: function resetScrollX() { + if (this.ref_headTable) { + this.ref_headTable.scrollLeft = 0; + } + if (this.ref_bodyTable) { + this.ref_bodyTable.scrollLeft = 0; + } + }, + hasScrollX: function hasScrollX() { + var _scroll = this.scroll, + scroll = _scroll === undefined ? {} : _scroll; + + return 'x' in scroll; + }, + handleBodyScrollLeft: function handleBodyScrollLeft(e) { + // Fix https://github.com/ant-design/ant-design/issues/7635 + if (e.currentTarget !== e.target) { + return; + } + var target = e.target; + var _scroll2 = this.scroll, + scroll = _scroll2 === undefined ? {} : _scroll2; + var ref_headTable = this.ref_headTable, + ref_bodyTable = this.ref_bodyTable; + + if (target.scrollLeft !== this.lastScrollLeft && scroll.x) { + if (target === ref_bodyTable && ref_headTable) { + ref_headTable.scrollLeft = target.scrollLeft; + } else if (target === ref_headTable && ref_bodyTable) { + ref_bodyTable.scrollLeft = target.scrollLeft; + } + this.setScrollPositionClassName(); + } + // Remember last scrollLeft for scroll direction detecting. + this.lastScrollLeft = target.scrollLeft; + }, + handleBodyScrollTop: function handleBodyScrollTop(e) { + var target = e.target; + // Fix https://github.com/ant-design/ant-design/issues/9033 + if (e.currentTarget !== target) { + return; + } + var _scroll3 = this.scroll, + scroll = _scroll3 === undefined ? {} : _scroll3; + var ref_headTable = this.ref_headTable, + ref_bodyTable = this.ref_bodyTable, + ref_fixedColumnsBodyLeft = this.ref_fixedColumnsBodyLeft, + ref_fixedColumnsBodyRight = this.ref_fixedColumnsBodyRight; + + if (target.scrollTop !== this.lastScrollTop && scroll.y && target !== ref_headTable) { + var scrollTop = target.scrollTop; + if (ref_fixedColumnsBodyLeft && target !== ref_fixedColumnsBodyLeft) { + ref_fixedColumnsBodyLeft.scrollTop = scrollTop; + } + if (ref_fixedColumnsBodyRight && target !== ref_fixedColumnsBodyRight) { + ref_fixedColumnsBodyRight.scrollTop = scrollTop; + } + if (ref_bodyTable && target !== ref_bodyTable) { + ref_bodyTable.scrollTop = scrollTop; + } + } + // Remember last scrollTop for scroll direction detecting. + this.lastScrollTop = target.scrollTop; + }, + handleBodyScroll: function handleBodyScroll(e) { + this.handleBodyScrollLeft(e); + this.handleBodyScrollTop(e); + }, + handleWheel: function handleWheel(event) { + var _$props$scroll = this.$props.scroll, + scroll = _$props$scroll === undefined ? {} : _$props$scroll; + + if (window.navigator.userAgent.match(/Trident\/7\./) && scroll.y) { + event.preventDefault(); + var wd = event.deltaY; + var target = event.target; + var bodyTable = this.ref_bodyTable, + fixedColumnsBodyLeft = this.ref_fixedColumnsBodyLeft, + fixedColumnsBodyRight = this.ref_fixedColumnsBodyRight; + + var scrollTop = 0; + + if (this.lastScrollTop) { + scrollTop = this.lastScrollTop + wd; + } else { + scrollTop = wd; + } + + if (fixedColumnsBodyLeft && target !== fixedColumnsBodyLeft) { + fixedColumnsBodyLeft.scrollTop = scrollTop; + } + if (fixedColumnsBodyRight && target !== fixedColumnsBodyRight) { + fixedColumnsBodyRight.scrollTop = scrollTop; + } + if (bodyTable && target !== bodyTable) { + bodyTable.scrollTop = scrollTop; + } + } + }, + saveChildrenRef: function saveChildrenRef(name, node) { + this['ref_' + name] = node; + }, + renderMainTable: function renderMainTable() { + var h = this.$createElement; + var scroll = this.scroll, + prefixCls = this.prefixCls; + + var isAnyColumnsFixed = this.columnManager.isAnyColumnsFixed(); + var scrollable = isAnyColumnsFixed || scroll.x || scroll.y; + + var table = [this.renderTable({ + columns: this.columnManager.groupedColumns(), + isAnyColumnsFixed: isAnyColumnsFixed + }), this.renderEmptyText(), this.renderFooter()]; + + return scrollable ? h( + 'div', + { 'class': prefixCls + '-scroll' }, + [table] + ) : table; + }, + renderLeftFixedTable: function renderLeftFixedTable() { + var h = this.$createElement; + var prefixCls = this.prefixCls; + + + return h( + 'div', + { 'class': prefixCls + '-fixed-left' }, + [this.renderTable({ + columns: this.columnManager.leftColumns(), + fixed: 'left' + })] + ); + }, + renderRightFixedTable: function renderRightFixedTable() { + var h = this.$createElement; + var prefixCls = this.prefixCls; + + + return h( + 'div', + { 'class': prefixCls + '-fixed-right' }, + [this.renderTable({ + columns: this.columnManager.rightColumns(), + fixed: 'right' + })] + ); + }, + renderTable: function renderTable(options) { + var h = this.$createElement; + var columns = options.columns, + fixed = options.fixed, + isAnyColumnsFixed = options.isAnyColumnsFixed; + var prefixCls = this.prefixCls, + _scroll4 = this.scroll, + scroll = _scroll4 === undefined ? {} : _scroll4; + + var tableClassName = scroll.x || fixed ? prefixCls + '-fixed' : ''; + + var headTable = h(_HeadTable2['default'], { + key: 'head', + attrs: { columns: columns, + fixed: fixed, + tableClassName: tableClassName, + handleBodyScrollLeft: this.handleBodyScrollLeft, + expander: this.expander + } + }); + + var bodyTable = h(_BodyTable2['default'], { + key: 'body', + attrs: { columns: columns, + fixed: fixed, + tableClassName: tableClassName, + getRowKey: this.getRowKey, + handleWheel: this.handleWheel, + handleBodyScroll: this.handleBodyScroll, + expander: this.expander, + isAnyColumnsFixed: isAnyColumnsFixed + } + }); + + return [headTable, bodyTable]; + }, + renderTitle: function renderTitle() { + var h = this.$createElement; + var title = this.title, + prefixCls = this.prefixCls, + data = this.data; + + return title ? h( + 'div', + { 'class': prefixCls + '-title', key: 'title' }, + [title(data)] + ) : null; + }, + renderFooter: function renderFooter() { + var h = this.$createElement; + var footer = this.footer, + prefixCls = this.prefixCls, + data = this.data; + + return footer ? h( + 'div', + { 'class': prefixCls + '-footer', key: 'footer' }, + [footer(data)] + ) : null; + }, + renderEmptyText: function renderEmptyText() { + var h = this.$createElement; + var emptyText = this.emptyText, + prefixCls = this.prefixCls, + data = this.data; + + if (data.length) { + return null; + } + var emptyClassName = prefixCls + '-placeholder'; + return h( + 'div', + { 'class': emptyClassName, key: 'emptyText' }, + [typeof emptyText === 'function' ? emptyText() : emptyText] + ); + } + }, + + render: function render() { + var _this5 = this; + + var h = arguments[0]; + + var props = (0, _propsUtil.getOptionProps)(this); + var $listeners = this.$listeners, + columnManager = this.columnManager, + getRowKey = this.getRowKey; + + var prefixCls = props.prefixCls; + var className = props.prefixCls; + if (props.useFixedHeader || props.scroll && props.scroll.y) { + className += ' ' + prefixCls + '-fixed-header'; + } + if (this.scrollPosition === 'both') { + className += ' ' + prefixCls + '-scroll-position-left ' + prefixCls + '-scroll-position-right'; + } else { + className += ' ' + prefixCls + '-scroll-position-' + this.scrollPosition; + } + var hasLeftFixed = columnManager.isAnyColumnsLeftFixed(); + var hasRightFixed = columnManager.isAnyColumnsRightFixed(); + + var expandableTableProps = { + props: (0, _extends3['default'])({}, props, { + columnManager: columnManager, + getRowKey: getRowKey + }), + on: (0, _extends3['default'])({}, $listeners), + scopedSlots: { + 'default': function _default(expander) { + _this5.expander = expander; + return h( + 'div', + { + ref: 'tableNode', + 'class': className + // style={props.style} + // id={props.id} + }, + [_this5.renderTitle(), h( + 'div', + { 'class': prefixCls + '-content' }, + [_this5.renderMainTable(), hasLeftFixed && _this5.renderLeftFixedTable(), hasRightFixed && _this5.renderRightFixedTable()] + )] + ); + } + } + }; + return h( + _store.Provider, + { + attrs: { store: this.store } + }, + [h(_ExpandableTable2['default'], expandableTableProps)] + ); + } +}; /* eslint-disable camelcase */ + +/***/ }), + +/***/ "./node_modules/ant-design-vue/lib/vc-table/src/TableCell.js": +/*!*******************************************************************!*\ + !*** ./node_modules/ant-design-vue/lib/vc-table/src/TableCell.js ***! + \*******************************************************************/ +/*! no static exports found */ +/***/ (function(module, exports, __webpack_require__) { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", { + value: true +}); + +var _extends2 = __webpack_require__(/*! babel-runtime/helpers/extends */ "./node_modules/babel-runtime/helpers/extends.js"); + +var _extends3 = _interopRequireDefault(_extends2); + +var _vueTypes = __webpack_require__(/*! ../../_util/vue-types */ "./node_modules/ant-design-vue/lib/_util/vue-types/index.js"); + +var _vueTypes2 = _interopRequireDefault(_vueTypes); + +var _get = __webpack_require__(/*! lodash/get */ "./node_modules/lodash/get.js"); + +var _get2 = _interopRequireDefault(_get); + +var _propsUtil = __webpack_require__(/*! ../../_util/props-util */ "./node_modules/ant-design-vue/lib/_util/props-util.js"); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } + +function isInvalidRenderCellText(text) { + return text && !(0, _propsUtil.isValidElement)(text) && Object.prototype.toString.call(text) === '[object Object]'; +} + +exports['default'] = { + name: 'TableCell', + props: { + record: _vueTypes2['default'].object, + prefixCls: _vueTypes2['default'].string, + index: _vueTypes2['default'].number, + indent: _vueTypes2['default'].number, + indentSize: _vueTypes2['default'].number, + column: _vueTypes2['default'].object, + expandIcon: _vueTypes2['default'].any, + component: _vueTypes2['default'].any + }, + methods: { + handleClick: function handleClick(e) { + var record = this.record, + onCellClick = this.column.onCellClick; + + if (onCellClick) { + onCellClick(record, e); + } + } + }, + + render: function render() { + var h = arguments[0]; + var record = this.record, + indentSize = this.indentSize, + prefixCls = this.prefixCls, + indent = this.indent, + index = this.index, + expandIcon = this.expandIcon, + column = this.column, + BodyCell = this.component; + var dataIndex = column.dataIndex, + customRender = column.customRender, + _column$className = column.className, + className = _column$className === undefined ? '' : _column$className; + + var cls = className || column['class']; + // We should return undefined if no dataIndex is specified, but in order to + // be compatible with object-path's behavior, we return the record object instead. + var text = void 0; + if (typeof dataIndex === 'number') { + text = (0, _get2['default'])(record, dataIndex); + } else if (!dataIndex || dataIndex.length === 0) { + text = record; + } else { + text = (0, _get2['default'])(record, dataIndex); + } + var tdProps = { + props: {}, + attrs: {}, + 'class': cls, + on: { + click: this.handleClick + } + }; + var colSpan = void 0; + var rowSpan = void 0; + + if (customRender) { + text = customRender(text, record, index); + if (isInvalidRenderCellText(text)) { + tdProps.attrs = text.attrs || {}; + tdProps.props = text.props || {}; + colSpan = tdProps.attrs.colSpan; + rowSpan = tdProps.attrs.rowSpan; + text = text.children; + } + } + + if (column.customCell) { + tdProps = (0, _propsUtil.mergeProps)(tdProps, column.customCell(record, index)); + } + + // Fix https://github.com/ant-design/ant-design/issues/1202 + if (isInvalidRenderCellText(text)) { + text = null; + } + + var indentText = expandIcon ? h('span', { + style: { paddingLeft: indentSize * indent + 'px' }, + 'class': prefixCls + '-indent indent-level-' + indent + }) : null; + + if (rowSpan === 0 || colSpan === 0) { + return null; + } + if (column.align) { + tdProps.style = (0, _extends3['default'])({}, tdProps.style, { textAlign: column.align }); + } + + return h( + BodyCell, + tdProps, + [indentText, expandIcon, text] + ); + } +}; + +/***/ }), + +/***/ "./node_modules/ant-design-vue/lib/vc-table/src/TableHeader.js": +/*!*********************************************************************!*\ + !*** ./node_modules/ant-design-vue/lib/vc-table/src/TableHeader.js ***! + \*********************************************************************/ +/*! no static exports found */ +/***/ (function(module, exports, __webpack_require__) { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", { + value: true +}); + +var _vueTypes = __webpack_require__(/*! ../../_util/vue-types */ "./node_modules/ant-design-vue/lib/_util/vue-types/index.js"); + +var _vueTypes2 = _interopRequireDefault(_vueTypes); + +var _TableHeaderRow = __webpack_require__(/*! ./TableHeaderRow */ "./node_modules/ant-design-vue/lib/vc-table/src/TableHeaderRow.js"); + +var _TableHeaderRow2 = _interopRequireDefault(_TableHeaderRow); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } + +function getHeaderRows(columns) { + var currentRow = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 0; + var rows = arguments[2]; + + rows = rows || []; + rows[currentRow] = rows[currentRow] || []; + + columns.forEach(function (column) { + if (column.rowSpan && rows.length < column.rowSpan) { + while (rows.length < column.rowSpan) { + rows.push([]); + } + } + var cell = { + key: column.key, + className: column.className || column['class'] || '', + children: column.title, + column: column + }; + if (column.children) { + getHeaderRows(column.children, currentRow + 1, rows); + } + if ('colSpan' in column) { + cell.colSpan = column.colSpan; + } + if ('rowSpan' in column) { + cell.rowSpan = column.rowSpan; + } + if (cell.colSpan !== 0) { + rows[currentRow].push(cell); + } + }); + return rows.filter(function (row) { + return row.length > 0; + }); +} + +exports['default'] = { + name: 'TableHeader', + props: { + fixed: _vueTypes2['default'].string, + columns: _vueTypes2['default'].array.isRequired, + expander: _vueTypes2['default'].object.isRequired + }, + inject: { + table: { 'default': function _default() { + return {}; + } } + }, + + render: function render() { + var h = arguments[0]; + var _table = this.table, + components = _table.sComponents, + prefixCls = _table.prefixCls, + showHeader = _table.showHeader, + customHeaderRow = _table.customHeaderRow; + var expander = this.expander, + columns = this.columns, + fixed = this.fixed; + + + if (!showHeader) { + return null; + } + + var rows = getHeaderRows(columns); + + expander.renderExpandIndentCell(rows, fixed); + + var HeaderWrapper = components.header.wrapper; + + return h( + HeaderWrapper, + { 'class': prefixCls + '-thead' }, + [rows.map(function (row, index) { + return h(_TableHeaderRow2['default'], { + attrs: { + prefixCls: prefixCls, + + index: index, + fixed: fixed, + columns: columns, + rows: rows, + row: row, + components: components, + customHeaderRow: customHeaderRow + }, + key: index }); + })] + ); + } +}; + +/***/ }), + +/***/ "./node_modules/ant-design-vue/lib/vc-table/src/TableHeaderRow.js": +/*!************************************************************************!*\ + !*** ./node_modules/ant-design-vue/lib/vc-table/src/TableHeaderRow.js ***! + \************************************************************************/ +/*! no static exports found */ +/***/ (function(module, exports, __webpack_require__) { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", { + value: true +}); + +var _babelHelperVueJsxMergeProps = __webpack_require__(/*! babel-helper-vue-jsx-merge-props */ "./node_modules/babel-helper-vue-jsx-merge-props/index.js"); + +var _babelHelperVueJsxMergeProps2 = _interopRequireDefault(_babelHelperVueJsxMergeProps); + +var _defineProperty2 = __webpack_require__(/*! babel-runtime/helpers/defineProperty */ "./node_modules/babel-runtime/helpers/defineProperty.js"); + +var _defineProperty3 = _interopRequireDefault(_defineProperty2); + +var _objectWithoutProperties2 = __webpack_require__(/*! babel-runtime/helpers/objectWithoutProperties */ "./node_modules/babel-runtime/helpers/objectWithoutProperties.js"); + +var _objectWithoutProperties3 = _interopRequireDefault(_objectWithoutProperties2); + +var _extends2 = __webpack_require__(/*! babel-runtime/helpers/extends */ "./node_modules/babel-runtime/helpers/extends.js"); + +var _extends3 = _interopRequireDefault(_extends2); + +var _classnames = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js"); + +var _classnames2 = _interopRequireDefault(_classnames); + +var _vueTypes = __webpack_require__(/*! ../../_util/vue-types */ "./node_modules/ant-design-vue/lib/_util/vue-types/index.js"); + +var _vueTypes2 = _interopRequireDefault(_vueTypes); + +var _store = __webpack_require__(/*! ../../_util/store */ "./node_modules/ant-design-vue/lib/_util/store/index.js"); + +var _propsUtil = __webpack_require__(/*! ../../_util/props-util */ "./node_modules/ant-design-vue/lib/_util/props-util.js"); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } + +var TableHeaderRow = { + props: { + index: _vueTypes2['default'].number, + fixed: _vueTypes2['default'].string, + columns: _vueTypes2['default'].array, + rows: _vueTypes2['default'].array, + row: _vueTypes2['default'].array, + components: _vueTypes2['default'].object, + height: _vueTypes2['default'].any, + customHeaderRow: _vueTypes2['default'].func, + prefixCls: _vueTypes2['default'].prefixCls + }, + name: 'TableHeaderRow', + render: function render(h) { + var row = this.row, + index = this.index, + height = this.height, + components = this.components, + customHeaderRow = this.customHeaderRow, + prefixCls = this.prefixCls; + + var HeaderRow = components.header.row; + var HeaderCell = components.header.cell; + var rowProps = customHeaderRow(row.map(function (cell) { + return cell.column; + }), index); + var customStyle = rowProps ? rowProps.style : {}; + var style = (0, _extends3['default'])({ height: height }, customStyle); + if (style.height === null) { + delete style.height; + } + return h( + HeaderRow, + (0, _babelHelperVueJsxMergeProps2['default'])([rowProps, { style: style }]), + [row.map(function (cell, i) { + var column = cell.column, + children = cell.children, + className = cell.className, + cellProps = (0, _objectWithoutProperties3['default'])(cell, ['column', 'children', 'className']); + + var cls = cell['class'] || className; + var customProps = column.customHeaderCell ? column.customHeaderCell(column) : {}; + + var headerCellProps = (0, _propsUtil.mergeProps)({ + attrs: (0, _extends3['default'])({}, cellProps), + 'class': cls + }, (0, _extends3['default'])({}, customProps, { + key: column.key || column.dataIndex || i + })); + + if (column.align) { + headerCellProps.style = (0, _extends3['default'])({}, customProps.style, { textAlign: column.align }); + headerCellProps['class'] = (0, _classnames2['default'])(customProps.cls, column['class'], column.className, (0, _defineProperty3['default'])({}, prefixCls + '-align-' + column.align, !!column.align)); + } + + if (typeof HeaderCell === 'function') { + return HeaderCell(h, headerCellProps, children); + } + return h( + HeaderCell, + headerCellProps, + [children] + ); + })] + ); + } +}; + +function getRowHeight(state, props) { + var fixedColumnsHeadRowsHeight = state.fixedColumnsHeadRowsHeight; + var columns = props.columns, + rows = props.rows, + fixed = props.fixed; + + var headerHeight = fixedColumnsHeadRowsHeight[0]; + + if (!fixed) { + return null; + } + + if (headerHeight && columns) { + if (headerHeight === 'auto') { + return 'auto'; + } + return headerHeight / rows.length + 'px'; + } + return null; +} + +exports['default'] = (0, _store.connect)(function (state, props) { + return { + height: getRowHeight(state, props) + }; +})(TableHeaderRow); + +/***/ }), + +/***/ "./node_modules/ant-design-vue/lib/vc-table/src/TableRow.js": +/*!******************************************************************!*\ + !*** ./node_modules/ant-design-vue/lib/vc-table/src/TableRow.js ***! + \******************************************************************/ +/*! no static exports found */ +/***/ (function(module, exports, __webpack_require__) { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", { + value: true +}); + +var _objectWithoutProperties2 = __webpack_require__(/*! babel-runtime/helpers/objectWithoutProperties */ "./node_modules/babel-runtime/helpers/objectWithoutProperties.js"); + +var _objectWithoutProperties3 = _interopRequireDefault(_objectWithoutProperties2); + +var _defineProperty2 = __webpack_require__(/*! babel-runtime/helpers/defineProperty */ "./node_modules/babel-runtime/helpers/defineProperty.js"); + +var _defineProperty3 = _interopRequireDefault(_defineProperty2); + +var _extends4 = __webpack_require__(/*! babel-runtime/helpers/extends */ "./node_modules/babel-runtime/helpers/extends.js"); + +var _extends5 = _interopRequireDefault(_extends4); + +var _classnames = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js"); + +var _classnames2 = _interopRequireDefault(_classnames); + +var _vueTypes = __webpack_require__(/*! ../../_util/vue-types */ "./node_modules/ant-design-vue/lib/_util/vue-types/index.js"); + +var _vueTypes2 = _interopRequireDefault(_vueTypes); + +var _store = __webpack_require__(/*! ../../_util/store */ "./node_modules/ant-design-vue/lib/_util/store/index.js"); + +var _TableCell = __webpack_require__(/*! ./TableCell */ "./node_modules/ant-design-vue/lib/vc-table/src/TableCell.js"); + +var _TableCell2 = _interopRequireDefault(_TableCell); + +var _utils = __webpack_require__(/*! ./utils */ "./node_modules/ant-design-vue/lib/vc-table/src/utils.js"); + +var _propsUtil = __webpack_require__(/*! ../../_util/props-util */ "./node_modules/ant-design-vue/lib/_util/props-util.js"); + +var _BaseMixin = __webpack_require__(/*! ../../_util/BaseMixin */ "./node_modules/ant-design-vue/lib/_util/BaseMixin.js"); + +var _BaseMixin2 = _interopRequireDefault(_BaseMixin); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } + +function noop() {} +var TableRow = { + name: 'TableRow', + mixins: [_BaseMixin2['default']], + props: (0, _propsUtil.initDefaultProps)({ + customRow: _vueTypes2['default'].func, + // onRowClick: PropTypes.func, + // onRowDoubleClick: PropTypes.func, + // onRowContextMenu: PropTypes.func, + // onRowMouseEnter: PropTypes.func, + // onRowMouseLeave: PropTypes.func, + record: _vueTypes2['default'].object, + prefixCls: _vueTypes2['default'].string, + // onHover: PropTypes.func, + columns: _vueTypes2['default'].array, + height: _vueTypes2['default'].oneOfType([_vueTypes2['default'].string, _vueTypes2['default'].number]), + index: _vueTypes2['default'].number, + rowKey: _vueTypes2['default'].oneOfType([_vueTypes2['default'].string, _vueTypes2['default'].number]).isRequired, + className: _vueTypes2['default'].string, + indent: _vueTypes2['default'].number, + indentSize: _vueTypes2['default'].number, + hasExpandIcon: _vueTypes2['default'].func, + hovered: _vueTypes2['default'].bool.isRequired, + visible: _vueTypes2['default'].bool.isRequired, + store: _vueTypes2['default'].object.isRequired, + fixed: _vueTypes2['default'].oneOfType([_vueTypes2['default'].string, _vueTypes2['default'].bool]), + renderExpandIcon: _vueTypes2['default'].func, + renderExpandIconCell: _vueTypes2['default'].func, + components: _vueTypes2['default'].any, + expandedRow: _vueTypes2['default'].bool, + isAnyColumnsFixed: _vueTypes2['default'].bool, + ancestorKeys: _vueTypes2['default'].array.isRequired, + expandIconColumnIndex: _vueTypes2['default'].number, + expandRowByClick: _vueTypes2['default'].bool + // visible: PropTypes.bool, + // hovered: PropTypes.bool, + // height: PropTypes.any, + }, { + // expandIconColumnIndex: 0, + // expandRowByClick: false, + hasExpandIcon: function hasExpandIcon() {}, + renderExpandIcon: function renderExpandIcon() {}, + renderExpandIconCell: function renderExpandIconCell() {} + }), + + data: function data() { + // this.shouldRender = this.visible + return { + shouldRender: this.visible + }; + }, + mounted: function mounted() { + var _this = this; + + if (this.shouldRender) { + this.$nextTick(function () { + _this.saveRowRef(); + }); + } + }, + + watch: { + visible: function visible(val) { + if (val) { + this.shouldRender = true; + } + } + }, + + updated: function updated() { + var _this2 = this; + + if (this.shouldRender && !this.rowRef) { + this.$nextTick(function () { + _this2.saveRowRef(); + }); + } + }, + + methods: { + onRowClick: function onRowClick(event) { + var record = this.record, + index = this.index; + + this.__emit('rowClick', record, index, event); + }, + onRowDoubleClick: function onRowDoubleClick(event) { + var record = this.record, + index = this.index; + + this.__emit('rowDoubleClick', record, index, event); + }, + onContextMenu: function onContextMenu(event) { + var record = this.record, + index = this.index; + + this.__emit('rowContextmenu', record, index, event); + }, + onMouseEnter: function onMouseEnter(event) { + var record = this.record, + index = this.index, + rowKey = this.rowKey; + + this.__emit('hover', true, rowKey); + this.__emit('rowMouseenter', record, index, event); + }, + onMouseLeave: function onMouseLeave(event) { + var record = this.record, + index = this.index, + rowKey = this.rowKey; + + this.__emit('hover', false, rowKey); + this.__emit('rowMouseleave', record, index, event); + }, + setExpanedRowHeight: function setExpanedRowHeight() { + var store = this.store, + rowKey = this.rowKey; + + var _store$getState = store.getState(), + expandedRowsHeight = _store$getState.expandedRowsHeight; + + var height = this.rowRef.getBoundingClientRect().height; + expandedRowsHeight = (0, _extends5['default'])({}, expandedRowsHeight, (0, _defineProperty3['default'])({}, rowKey, height)); + store.setState({ expandedRowsHeight: expandedRowsHeight }); + }, + setRowHeight: function setRowHeight() { + var store = this.store, + rowKey = this.rowKey; + + var _store$getState2 = store.getState(), + fixedColumnsBodyRowsHeight = _store$getState2.fixedColumnsBodyRowsHeight; + + var height = this.rowRef.getBoundingClientRect().height; + store.setState({ + fixedColumnsBodyRowsHeight: (0, _extends5['default'])({}, fixedColumnsBodyRowsHeight, (0, _defineProperty3['default'])({}, rowKey, height)) + }); + }, + getStyle: function getStyle() { + var height = this.height, + visible = this.visible; + + var style = (0, _propsUtil.getStyle)(this); + if (height) { + style = (0, _extends5['default'])({}, style, { height: height }); + } + + if (!visible && !style.display) { + style = (0, _extends5['default'])({}, style, { display: 'none' }); + } + + return style; + }, + saveRowRef: function saveRowRef() { + this.rowRef = this.$el; + + var isAnyColumnsFixed = this.isAnyColumnsFixed, + fixed = this.fixed, + expandedRow = this.expandedRow, + ancestorKeys = this.ancestorKeys; + + + if (!isAnyColumnsFixed) { + return; + } + + if (!fixed && expandedRow) { + this.setExpanedRowHeight(); + } + + if (!fixed && ancestorKeys.length >= 0) { + this.setRowHeight(); + } + } + }, + + render: function render() { + var h = arguments[0]; + + if (!this.shouldRender) { + return null; + } + + var prefixCls = this.prefixCls, + columns = this.columns, + record = this.record, + rowKey = this.rowKey, + index = this.index, + _customRow = this.customRow, + customRow = _customRow === undefined ? noop : _customRow, + indent = this.indent, + indentSize = this.indentSize, + hovered = this.hovered, + height = this.height, + visible = this.visible, + components = this.components, + hasExpandIcon = this.hasExpandIcon, + renderExpandIcon = this.renderExpandIcon, + renderExpandIconCell = this.renderExpandIconCell; + + var BodyRow = components.body.row; + var BodyCell = components.body.cell; + + var className = ''; + + if (hovered) { + className += ' ' + prefixCls + '-hover'; + } + + var cells = []; + + renderExpandIconCell(cells); + + for (var i = 0; i < columns.length; i++) { + var column = columns[i]; + + (0, _utils.warningOnce)(column.onCellClick === undefined, 'column[onCellClick] is deprecated, please use column[customCell] instead.'); + + cells.push(h(_TableCell2['default'], { + attrs: { + prefixCls: prefixCls, + record: record, + indentSize: indentSize, + indent: indent, + index: index, + column: column, + + expandIcon: hasExpandIcon(i) && renderExpandIcon(), + component: BodyCell + }, + key: column.key || column.dataIndex })); + } + + var _ref = customRow(record, index) || {}, + customClass = _ref['class'], + customClassName = _ref.className, + customStyle = _ref.style, + rowProps = (0, _objectWithoutProperties3['default'])(_ref, ['class', 'className', 'style']); + + var style = { height: typeof height === 'number' ? height + 'px' : height }; + + if (!visible) { + style.display = 'none'; + } + + style = (0, _extends5['default'])({}, style, customStyle); + var rowClassName = (0, _classnames2['default'])(prefixCls, className, prefixCls + '-level-' + indent, customClassName, customClass); + var bodyRowProps = (0, _propsUtil.mergeProps)({ + on: { + click: this.onRowClick, + dblclick: this.onRowDoubleClick, + mouseenter: this.onMouseEnter, + mouseleave: this.onMouseLeave, + contextmenu: this.onContextMenu + }, + 'class': rowClassName + }, (0, _extends5['default'])({}, rowProps, { style: style }), { + attrs: { + 'data-row-key': rowKey + } + }); + return h( + BodyRow, + bodyRowProps, + [cells] + ); + } +}; + +function getRowHeight(state, props) { + var expandedRowsHeight = state.expandedRowsHeight, + fixedColumnsBodyRowsHeight = state.fixedColumnsBodyRowsHeight; + var fixed = props.fixed, + rowKey = props.rowKey; + + + if (!fixed) { + return null; + } + + if (expandedRowsHeight[rowKey]) { + return expandedRowsHeight[rowKey]; + } + + if (fixedColumnsBodyRowsHeight[rowKey]) { + return fixedColumnsBodyRowsHeight[rowKey]; + } + + return null; +} + +exports['default'] = (0, _store.connect)(function (state, props) { + var currentHoverKey = state.currentHoverKey, + expandedRowKeys = state.expandedRowKeys; + var rowKey = props.rowKey, + ancestorKeys = props.ancestorKeys; + + var visible = ancestorKeys.length === 0 || ancestorKeys.every(function (k) { + return ~expandedRowKeys.indexOf(k); + }); + + return { + visible: visible, + hovered: currentHoverKey === rowKey, + height: getRowHeight(state, props) + }; +})(TableRow); + +/***/ }), + +/***/ "./node_modules/ant-design-vue/lib/vc-table/src/utils.js": +/*!***************************************************************!*\ + !*** ./node_modules/ant-design-vue/lib/vc-table/src/utils.js ***! + \***************************************************************/ +/*! no static exports found */ +/***/ (function(module, exports, __webpack_require__) { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.measureScrollbar = measureScrollbar; +exports.debounce = debounce; +exports.warningOnce = warningOnce; +exports.remove = remove; + +var _warning = __webpack_require__(/*! warning */ "./node_modules/warning/browser.js"); + +var _warning2 = _interopRequireDefault(_warning); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } + +var scrollbarVerticalSize = void 0; +var scrollbarHorizontalSize = void 0; + +// Measure scrollbar width for padding body during modal show/hide +var scrollbarMeasure = { + position: 'absolute', + top: '-9999px', + width: '50px', + height: '50px' +}; + +function measureScrollbar() { + var direction = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 'vertical'; + + if (typeof document === 'undefined' || typeof window === 'undefined') { + return 0; + } + var isVertical = direction === 'vertical'; + if (isVertical && scrollbarVerticalSize) { + return scrollbarVerticalSize; + } else if (!isVertical && scrollbarHorizontalSize) { + return scrollbarHorizontalSize; + } + var scrollDiv = document.createElement('div'); + Object.keys(scrollbarMeasure).forEach(function (scrollProp) { + scrollDiv.style[scrollProp] = scrollbarMeasure[scrollProp]; + }); + // Append related overflow style + if (isVertical) { + scrollDiv.style.overflowY = 'scroll'; + } else { + scrollDiv.style.overflowX = 'scroll'; + } + document.body.appendChild(scrollDiv); + var size = 0; + if (isVertical) { + size = scrollDiv.offsetWidth - scrollDiv.clientWidth; + scrollbarVerticalSize = size; + } else if (!isVertical) { + size = scrollDiv.offsetHeight - scrollDiv.clientHeight; + scrollbarHorizontalSize = size; + } + + document.body.removeChild(scrollDiv); + return size; } -/** - * Determine if a value is undefined - * - * @param {Object} val The value to test - * @returns {boolean} True if the value is undefined, otherwise false - */ -function isUndefined(val) { - return typeof val === 'undefined'; +function debounce(func, wait, immediate) { + var timeout = void 0; + function debounceFunc() { + for (var _len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++) { + args[_key] = arguments[_key]; + } + + var context = this; + // https://fb.me/react-event-pooling + if (args[0] && args[0].persist) { + args[0].persist(); + } + var later = function later() { + timeout = null; + if (!immediate) { + func.apply(context, args); + } + }; + var callNow = immediate && !timeout; + clearTimeout(timeout); + timeout = setTimeout(later, wait); + if (callNow) { + func.apply(context, args); + } + } + debounceFunc.cancel = function cancel() { + if (timeout) { + clearTimeout(timeout); + timeout = null; + } + }; + return debounceFunc; } -/** - * Determine if a value is an Object - * - * @param {Object} val The value to test - * @returns {boolean} True if value is an Object, otherwise false - */ -function isObject(val) { - return val !== null && typeof val === 'object'; +var warned = {}; +function warningOnce(condition, format, args) { + if (!warned[format]) { + (0, _warning2['default'])(condition, format, args); + warned[format] = !condition; + } } -/** - * Determine if a value is a Date - * - * @param {Object} val The value to test - * @returns {boolean} True if value is a Date, otherwise false - */ -function isDate(val) { - return toString.call(val) === '[object Date]'; +function remove(array, item) { + var index = array.indexOf(item); + var front = array.slice(0, index); + var last = array.slice(index + 1, array.length); + return front.concat(last); } +/***/ }), + +/***/ "./node_modules/dom-closest/index.js": +/*!*******************************************!*\ + !*** ./node_modules/dom-closest/index.js ***! + \*******************************************/ +/*! no static exports found */ +/***/ (function(module, exports, __webpack_require__) { + /** - * Determine if a value is a File - * - * @param {Object} val The value to test - * @returns {boolean} True if value is a File, otherwise false + * Module dependencies */ -function isFile(val) { - return toString.call(val) === '[object File]'; -} + +var matches = __webpack_require__(/*! dom-matches */ "./node_modules/dom-matches/index.js"); /** - * Determine if a value is a Blob - * - * @param {Object} val The value to test - * @returns {boolean} True if value is a Blob, otherwise false + * @param element {Element} + * @param selector {String} + * @param context {Element} + * @return {Element} */ -function isBlob(val) { - return toString.call(val) === '[object Blob]'; -} +module.exports = function (element, selector, context) { + context = context || document; + // guard against orphans + element = { parentNode: element }; + + while ((element = element.parentNode) && element !== context) { + if (matches(element, selector)) { + return element; + } + } +}; + + +/***/ }), + +/***/ "./node_modules/dom-matches/index.js": +/*!*******************************************!*\ + !*** ./node_modules/dom-matches/index.js ***! + \*******************************************/ +/*! no static exports found */ +/***/ (function(module, exports, __webpack_require__) { + +"use strict"; + /** - * Determine if a value is a Function + * Determine if a DOM element matches a CSS selector * - * @param {Object} val The value to test - * @returns {boolean} True if value is a Function, otherwise false + * @param {Element} elem + * @param {String} selector + * @return {Boolean} + * @api public */ -function isFunction(val) { - return toString.call(val) === '[object Function]'; + +function matches(elem, selector) { + // Vendor-specific implementations of `Element.prototype.matches()`. + var proto = window.Element.prototype; + var nativeMatches = proto.matches || + proto.mozMatchesSelector || + proto.msMatchesSelector || + proto.oMatchesSelector || + proto.webkitMatchesSelector; + + if (!elem || elem.nodeType !== 1) { + return false; + } + + var parentElem = elem.parentNode; + + // use native 'matches' + if (nativeMatches) { + return nativeMatches.call(elem, selector); + } + + // native support for `matches` is missing and a fallback is required + var nodes = parentElem.querySelectorAll(selector); + var len = nodes.length; + + for (var i = 0; i < len; i++) { + if (nodes[i] === elem) { + return true; + } + } + + return false; } /** - * Determine if a value is a Stream - * - * @param {Object} val The value to test - * @returns {boolean} True if value is a Stream, otherwise false + * Expose `matches` */ -function isStream(val) { - return isObject(val) && isFunction(val.pipe); -} + +module.exports = matches; + + +/***/ }), + +/***/ "./node_modules/lodash/_assignMergeValue.js": +/*!**************************************************!*\ + !*** ./node_modules/lodash/_assignMergeValue.js ***! + \**************************************************/ +/*! no static exports found */ +/***/ (function(module, exports, __webpack_require__) { + +var baseAssignValue = __webpack_require__(/*! ./_baseAssignValue */ "./node_modules/lodash/_baseAssignValue.js"), + eq = __webpack_require__(/*! ./eq */ "./node_modules/lodash/eq.js"); /** - * Determine if a value is a URLSearchParams object + * This function is like `assignValue` except that it doesn't assign + * `undefined` values. * - * @param {Object} val The value to test - * @returns {boolean} True if value is a URLSearchParams object, otherwise false + * @private + * @param {Object} object The object to modify. + * @param {string} key The key of the property to assign. + * @param {*} value The value to assign. */ -function isURLSearchParams(val) { - return typeof URLSearchParams !== 'undefined' && val instanceof URLSearchParams; +function assignMergeValue(object, key, value) { + if ((value !== undefined && !eq(object[key], value)) || + (value === undefined && !(key in object))) { + baseAssignValue(object, key, value); + } } +module.exports = assignMergeValue; + + +/***/ }), + +/***/ "./node_modules/lodash/_baseFor.js": +/*!*****************************************!*\ + !*** ./node_modules/lodash/_baseFor.js ***! + \*****************************************/ +/*! no static exports found */ +/***/ (function(module, exports, __webpack_require__) { + +var createBaseFor = __webpack_require__(/*! ./_createBaseFor */ "./node_modules/lodash/_createBaseFor.js"); + /** - * Trim excess whitespace off the beginning and end of a string + * The base implementation of `baseForOwn` which iterates over `object` + * properties returned by `keysFunc` and invokes `iteratee` for each property. + * Iteratee functions may exit iteration early by explicitly returning `false`. * - * @param {String} str The String to trim - * @returns {String} The String freed of excess whitespace + * @private + * @param {Object} object The object to iterate over. + * @param {Function} iteratee The function invoked per iteration. + * @param {Function} keysFunc The function to get the keys of `object`. + * @returns {Object} Returns `object`. */ -function trim(str) { - return str.replace(/^\s*/, '').replace(/\s*$/, ''); -} +var baseFor = createBaseFor(); + +module.exports = baseFor; + + +/***/ }), + +/***/ "./node_modules/lodash/_baseMerge.js": +/*!*******************************************!*\ + !*** ./node_modules/lodash/_baseMerge.js ***! + \*******************************************/ +/*! no static exports found */ +/***/ (function(module, exports, __webpack_require__) { + +var Stack = __webpack_require__(/*! ./_Stack */ "./node_modules/lodash/_Stack.js"), + assignMergeValue = __webpack_require__(/*! ./_assignMergeValue */ "./node_modules/lodash/_assignMergeValue.js"), + baseFor = __webpack_require__(/*! ./_baseFor */ "./node_modules/lodash/_baseFor.js"), + baseMergeDeep = __webpack_require__(/*! ./_baseMergeDeep */ "./node_modules/lodash/_baseMergeDeep.js"), + isObject = __webpack_require__(/*! ./isObject */ "./node_modules/lodash/isObject.js"), + keysIn = __webpack_require__(/*! ./keysIn */ "./node_modules/lodash/keysIn.js"), + safeGet = __webpack_require__(/*! ./_safeGet */ "./node_modules/lodash/_safeGet.js"); /** - * Determine if we're running in a standard browser environment - * - * This allows axios to run in a web worker, and react-native. - * Both environments support XMLHttpRequest, but not fully standard globals. + * The base implementation of `_.merge` without support for multiple sources. * - * web workers: - * typeof window -> undefined - * typeof document -> undefined - * - * react-native: - * navigator.product -> 'ReactNative' - * nativescript - * navigator.product -> 'NativeScript' or 'NS' + * @private + * @param {Object} object The destination object. + * @param {Object} source The source object. + * @param {number} srcIndex The index of `source`. + * @param {Function} [customizer] The function to customize merged values. + * @param {Object} [stack] Tracks traversed source values and their merged + * counterparts. */ -function isStandardBrowserEnv() { - if (typeof navigator !== 'undefined' && (navigator.product === 'ReactNative' || - navigator.product === 'NativeScript' || - navigator.product === 'NS')) { - return false; +function baseMerge(object, source, srcIndex, customizer, stack) { + if (object === source) { + return; } - return ( - typeof window !== 'undefined' && - typeof document !== 'undefined' - ); + baseFor(source, function(srcValue, key) { + stack || (stack = new Stack); + if (isObject(srcValue)) { + baseMergeDeep(object, source, key, srcIndex, baseMerge, customizer, stack); + } + else { + var newValue = customizer + ? customizer(safeGet(object, key), srcValue, (key + ''), object, source, stack) + : undefined; + + if (newValue === undefined) { + newValue = srcValue; + } + assignMergeValue(object, key, newValue); + } + }, keysIn); } +module.exports = baseMerge; + + +/***/ }), + +/***/ "./node_modules/lodash/_baseMergeDeep.js": +/*!***********************************************!*\ + !*** ./node_modules/lodash/_baseMergeDeep.js ***! + \***********************************************/ +/*! no static exports found */ +/***/ (function(module, exports, __webpack_require__) { + +var assignMergeValue = __webpack_require__(/*! ./_assignMergeValue */ "./node_modules/lodash/_assignMergeValue.js"), + cloneBuffer = __webpack_require__(/*! ./_cloneBuffer */ "./node_modules/lodash/_cloneBuffer.js"), + cloneTypedArray = __webpack_require__(/*! ./_cloneTypedArray */ "./node_modules/lodash/_cloneTypedArray.js"), + copyArray = __webpack_require__(/*! ./_copyArray */ "./node_modules/lodash/_copyArray.js"), + initCloneObject = __webpack_require__(/*! ./_initCloneObject */ "./node_modules/lodash/_initCloneObject.js"), + isArguments = __webpack_require__(/*! ./isArguments */ "./node_modules/lodash/isArguments.js"), + isArray = __webpack_require__(/*! ./isArray */ "./node_modules/lodash/isArray.js"), + isArrayLikeObject = __webpack_require__(/*! ./isArrayLikeObject */ "./node_modules/lodash/isArrayLikeObject.js"), + isBuffer = __webpack_require__(/*! ./isBuffer */ "./node_modules/lodash/isBuffer.js"), + isFunction = __webpack_require__(/*! ./isFunction */ "./node_modules/lodash/isFunction.js"), + isObject = __webpack_require__(/*! ./isObject */ "./node_modules/lodash/isObject.js"), + isPlainObject = __webpack_require__(/*! ./isPlainObject */ "./node_modules/lodash/isPlainObject.js"), + isTypedArray = __webpack_require__(/*! ./isTypedArray */ "./node_modules/lodash/isTypedArray.js"), + safeGet = __webpack_require__(/*! ./_safeGet */ "./node_modules/lodash/_safeGet.js"), + toPlainObject = __webpack_require__(/*! ./toPlainObject */ "./node_modules/lodash/toPlainObject.js"); + /** - * Iterate over an Array or an Object invoking a function for each item. - * - * If `obj` is an Array callback will be called passing - * the value, index, and complete array for each item. + * A specialized version of `baseMerge` for arrays and objects which performs + * deep merges and tracks traversed objects enabling objects with circular + * references to be merged. * - * If 'obj' is an Object callback will be called passing - * the value, key, and complete object for each property. - * - * @param {Object|Array} obj The object to iterate - * @param {Function} fn The callback to invoke for each item + * @private + * @param {Object} object The destination object. + * @param {Object} source The source object. + * @param {string} key The key of the value to merge. + * @param {number} srcIndex The index of `source`. + * @param {Function} mergeFunc The function to merge values. + * @param {Function} [customizer] The function to customize assigned values. + * @param {Object} [stack] Tracks traversed source values and their merged + * counterparts. */ -function forEach(obj, fn) { - // Don't bother if no value provided - if (obj === null || typeof obj === 'undefined') { +function baseMergeDeep(object, source, key, srcIndex, mergeFunc, customizer, stack) { + var objValue = safeGet(object, key), + srcValue = safeGet(source, key), + stacked = stack.get(srcValue); + + if (stacked) { + assignMergeValue(object, key, stacked); return; } + var newValue = customizer + ? customizer(objValue, srcValue, (key + ''), object, source, stack) + : undefined; - // Force an array if not already something iterable - if (typeof obj !== 'object') { - /*eslint no-param-reassign:0*/ - obj = [obj]; - } + var isCommon = newValue === undefined; + + if (isCommon) { + var isArr = isArray(srcValue), + isBuff = !isArr && isBuffer(srcValue), + isTyped = !isArr && !isBuff && isTypedArray(srcValue); - if (isArray(obj)) { - // Iterate over array values - for (var i = 0, l = obj.length; i < l; i++) { - fn.call(null, obj[i], i, obj); + newValue = srcValue; + if (isArr || isBuff || isTyped) { + if (isArray(objValue)) { + newValue = objValue; + } + else if (isArrayLikeObject(objValue)) { + newValue = copyArray(objValue); + } + else if (isBuff) { + isCommon = false; + newValue = cloneBuffer(srcValue, true); + } + else if (isTyped) { + isCommon = false; + newValue = cloneTypedArray(srcValue, true); + } + else { + newValue = []; + } } - } else { - // Iterate over object keys - for (var key in obj) { - if (Object.prototype.hasOwnProperty.call(obj, key)) { - fn.call(null, obj[key], key, obj); + else if (isPlainObject(srcValue) || isArguments(srcValue)) { + newValue = objValue; + if (isArguments(objValue)) { + newValue = toPlainObject(objValue); } + else if (!isObject(objValue) || isFunction(objValue)) { + newValue = initCloneObject(srcValue); + } + } + else { + isCommon = false; } } + if (isCommon) { + // Recursively merge objects and arrays (susceptible to call stack limits). + stack.set(srcValue, newValue); + mergeFunc(newValue, srcValue, srcIndex, customizer, stack); + stack['delete'](srcValue); + } + assignMergeValue(object, key, newValue); } +module.exports = baseMergeDeep; + + +/***/ }), + +/***/ "./node_modules/lodash/_baseRest.js": +/*!******************************************!*\ + !*** ./node_modules/lodash/_baseRest.js ***! + \******************************************/ +/*! no static exports found */ +/***/ (function(module, exports, __webpack_require__) { + +var identity = __webpack_require__(/*! ./identity */ "./node_modules/lodash/identity.js"), + overRest = __webpack_require__(/*! ./_overRest */ "./node_modules/lodash/_overRest.js"), + setToString = __webpack_require__(/*! ./_setToString */ "./node_modules/lodash/_setToString.js"); + /** - * Accepts varargs expecting each argument to be an object, then - * immutably merges the properties of each object and returns result. - * - * When multiple objects contain the same key the later object in - * the arguments list will take precedence. + * The base implementation of `_.rest` which doesn't validate or coerce arguments. * - * Example: - * - * ```js - * var result = merge({foo: 123}, {foo: 456}); - * console.log(result.foo); // outputs 456 - * ``` + * @private + * @param {Function} func The function to apply a rest parameter to. + * @param {number} [start=func.length-1] The start position of the rest parameter. + * @returns {Function} Returns the new function. + */ +function baseRest(func, start) { + return setToString(overRest(func, start, identity), func + ''); +} + +module.exports = baseRest; + + +/***/ }), + +/***/ "./node_modules/lodash/_createAssigner.js": +/*!************************************************!*\ + !*** ./node_modules/lodash/_createAssigner.js ***! + \************************************************/ +/*! no static exports found */ +/***/ (function(module, exports, __webpack_require__) { + +var baseRest = __webpack_require__(/*! ./_baseRest */ "./node_modules/lodash/_baseRest.js"), + isIterateeCall = __webpack_require__(/*! ./_isIterateeCall */ "./node_modules/lodash/_isIterateeCall.js"); + +/** + * Creates a function like `_.assign`. * - * @param {Object} obj1 Object to merge - * @returns {Object} Result of all merge properties + * @private + * @param {Function} assigner The function to assign values. + * @returns {Function} Returns the new assigner function. */ -function merge(/* obj1, obj2, obj3, ... */) { - var result = {}; - function assignValue(val, key) { - if (typeof result[key] === 'object' && typeof val === 'object') { - result[key] = merge(result[key], val); - } else { - result[key] = val; +function createAssigner(assigner) { + return baseRest(function(object, sources) { + var index = -1, + length = sources.length, + customizer = length > 1 ? sources[length - 1] : undefined, + guard = length > 2 ? sources[2] : undefined; + + customizer = (assigner.length > 3 && typeof customizer == 'function') + ? (length--, customizer) + : undefined; + + if (guard && isIterateeCall(sources[0], sources[1], guard)) { + customizer = length < 3 ? undefined : customizer; + length = 1; } - } - - for (var i = 0, l = arguments.length; i < l; i++) { - forEach(arguments[i], assignValue); - } - return result; + object = Object(object); + while (++index < length) { + var source = sources[index]; + if (source) { + assigner(object, source, index, customizer); + } + } + return object; + }); } +module.exports = createAssigner; + + +/***/ }), + +/***/ "./node_modules/lodash/_createBaseFor.js": +/*!***********************************************!*\ + !*** ./node_modules/lodash/_createBaseFor.js ***! + \***********************************************/ +/*! no static exports found */ +/***/ (function(module, exports) { + /** - * Function equal to merge with the difference being that no reference - * to original objects is kept. + * Creates a base function for methods like `_.forIn` and `_.forOwn`. * - * @see merge - * @param {Object} obj1 Object to merge - * @returns {Object} Result of all merge properties + * @private + * @param {boolean} [fromRight] Specify iterating from right to left. + * @returns {Function} Returns the new base function. */ -function deepMerge(/* obj1, obj2, obj3, ... */) { - var result = {}; - function assignValue(val, key) { - if (typeof result[key] === 'object' && typeof val === 'object') { - result[key] = deepMerge(result[key], val); - } else if (typeof val === 'object') { - result[key] = deepMerge({}, val); - } else { - result[key] = val; +function createBaseFor(fromRight) { + return function(object, iteratee, keysFunc) { + var index = -1, + iterable = Object(object), + props = keysFunc(object), + length = props.length; + + while (length--) { + var key = props[fromRight ? length : ++index]; + if (iteratee(iterable[key], key, iterable) === false) { + break; + } } - } - - for (var i = 0, l = arguments.length; i < l; i++) { - forEach(arguments[i], assignValue); - } - return result; + return object; + }; } +module.exports = createBaseFor; + + +/***/ }), + +/***/ "./node_modules/lodash/_isIterateeCall.js": +/*!************************************************!*\ + !*** ./node_modules/lodash/_isIterateeCall.js ***! + \************************************************/ +/*! no static exports found */ +/***/ (function(module, exports, __webpack_require__) { + +var eq = __webpack_require__(/*! ./eq */ "./node_modules/lodash/eq.js"), + isArrayLike = __webpack_require__(/*! ./isArrayLike */ "./node_modules/lodash/isArrayLike.js"), + isIndex = __webpack_require__(/*! ./_isIndex */ "./node_modules/lodash/_isIndex.js"), + isObject = __webpack_require__(/*! ./isObject */ "./node_modules/lodash/isObject.js"); + /** - * Extends object a by mutably adding to it the properties of object b. + * Checks if the given arguments are from an iteratee call. * - * @param {Object} a The object to be extended - * @param {Object} b The object to copy properties from - * @param {Object} thisArg The object to bind function to - * @return {Object} The resulting value of object a + * @private + * @param {*} value The potential iteratee value argument. + * @param {*} index The potential iteratee index or key argument. + * @param {*} object The potential iteratee object argument. + * @returns {boolean} Returns `true` if the arguments are from an iteratee call, + * else `false`. */ -function extend(a, b, thisArg) { - forEach(b, function assignValue(val, key) { - if (thisArg && typeof val === 'function') { - a[key] = bind(val, thisArg); - } else { - a[key] = val; - } - }); - return a; +function isIterateeCall(value, index, object) { + if (!isObject(object)) { + return false; + } + var type = typeof index; + if (type == 'number' + ? (isArrayLike(object) && isIndex(index, object.length)) + : (type == 'string' && index in object) + ) { + return eq(object[index], value); + } + return false; } -module.exports = { - isArray: isArray, - isArrayBuffer: isArrayBuffer, - isBuffer: isBuffer, - isFormData: isFormData, - isArrayBufferView: isArrayBufferView, - isString: isString, - isNumber: isNumber, - isObject: isObject, - isUndefined: isUndefined, - isDate: isDate, - isFile: isFile, - isBlob: isBlob, - isFunction: isFunction, - isStream: isStream, - isURLSearchParams: isURLSearchParams, - isStandardBrowserEnv: isStandardBrowserEnv, - forEach: forEach, - merge: merge, - deepMerge: deepMerge, - extend: extend, - trim: trim -}; +module.exports = isIterateeCall; /***/ }), -/***/ "./node_modules/is-buffer/index.js": +/***/ "./node_modules/lodash/_safeGet.js": /*!*****************************************!*\ - !*** ./node_modules/is-buffer/index.js ***! + !*** ./node_modules/lodash/_safeGet.js ***! \*****************************************/ /*! no static exports found */ /***/ (function(module, exports) { -/*! - * Determine if an object is a Buffer +/** + * Gets the value at `key`, unless `key` is "__proto__" or "constructor". * - * @author Feross Aboukhadijeh - * @license MIT + * @private + * @param {Object} object The object to query. + * @param {string} key The key of the property to get. + * @returns {*} Returns the property value. */ +function safeGet(object, key) { + if (key === 'constructor' && typeof object[key] === 'function') { + return; + } + + if (key == '__proto__') { + return; + } -module.exports = function isBuffer (obj) { - return obj != null && obj.constructor != null && - typeof obj.constructor.isBuffer === 'function' && obj.constructor.isBuffer(obj) + return object[key]; } +module.exports = safeGet; + /***/ }), -/***/ "./node_modules/vue-loader/lib/runtime/componentNormalizer.js": -/*!********************************************************************!*\ - !*** ./node_modules/vue-loader/lib/runtime/componentNormalizer.js ***! - \********************************************************************/ -/*! exports provided: default */ -/***/ (function(module, __webpack_exports__, __webpack_require__) { +/***/ "./node_modules/lodash/isArrayLikeObject.js": +/*!**************************************************!*\ + !*** ./node_modules/lodash/isArrayLikeObject.js ***! + \**************************************************/ +/*! no static exports found */ +/***/ (function(module, exports, __webpack_require__) { -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return normalizeComponent; }); -/* globals __VUE_SSR_CONTEXT__ */ - -// IMPORTANT: Do NOT use ES2015 features in this file (except for modules). -// This module is a runtime utility for cleaner component module output and will -// be included in the final webpack user bundle. - -function normalizeComponent ( - scriptExports, - render, - staticRenderFns, - functionalTemplate, - injectStyles, - scopeId, - moduleIdentifier, /* server only */ - shadowMode /* vue-cli only */ -) { - // Vue.extend constructor export interop - var options = typeof scriptExports === 'function' - ? scriptExports.options - : scriptExports - - // render functions - if (render) { - options.render = render - options.staticRenderFns = staticRenderFns - options._compiled = true - } +var isArrayLike = __webpack_require__(/*! ./isArrayLike */ "./node_modules/lodash/isArrayLike.js"), + isObjectLike = __webpack_require__(/*! ./isObjectLike */ "./node_modules/lodash/isObjectLike.js"); - // functional template - if (functionalTemplate) { - options.functional = true - } +/** + * This method is like `_.isArrayLike` except that it also checks if `value` + * is an object. + * + * @static + * @memberOf _ + * @since 4.0.0 + * @category Lang + * @param {*} value The value to check. + * @returns {boolean} Returns `true` if `value` is an array-like object, + * else `false`. + * @example + * + * _.isArrayLikeObject([1, 2, 3]); + * // => true + * + * _.isArrayLikeObject(document.body.children); + * // => true + * + * _.isArrayLikeObject('abc'); + * // => false + * + * _.isArrayLikeObject(_.noop); + * // => false + */ +function isArrayLikeObject(value) { + return isObjectLike(value) && isArrayLike(value); +} - // scopedId - if (scopeId) { - options._scopeId = 'data-v-' + scopeId - } +module.exports = isArrayLikeObject; - var hook - if (moduleIdentifier) { // server build - hook = function (context) { - // 2.3 injection - context = - context || // cached call - (this.$vnode && this.$vnode.ssrContext) || // stateful - (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional - // 2.2 with runInNewContext: true - if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') { - context = __VUE_SSR_CONTEXT__ - } - // inject component styles - if (injectStyles) { - injectStyles.call(this, context) - } - // register component module identifier for async chunk inferrence - if (context && context._registeredComponents) { - context._registeredComponents.add(moduleIdentifier) - } - } - // used by ssr in case component is cached and beforeCreate - // never gets called - options._ssrRegister = hook - } else if (injectStyles) { - hook = shadowMode - ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) } - : injectStyles - } - if (hook) { - if (options.functional) { - // for template-only hot-reload because in that case the render fn doesn't - // go through the normalizer - options._injectStyles = hook - // register for functioal component in vue file - var originalRender = options.render - options.render = function renderWithStyleInjection (h, context) { - hook.call(context) - return originalRender(h, context) - } - } else { - // inject component registration as beforeCreate hook - var existing = options.beforeCreate - options.beforeCreate = existing - ? [].concat(existing, hook) - : [hook] - } - } +/***/ }), - return { - exports: scriptExports, - options: options - } +/***/ "./node_modules/lodash/merge.js": +/*!**************************************!*\ + !*** ./node_modules/lodash/merge.js ***! + \**************************************/ +/*! no static exports found */ +/***/ (function(module, exports, __webpack_require__) { + +var baseMerge = __webpack_require__(/*! ./_baseMerge */ "./node_modules/lodash/_baseMerge.js"), + createAssigner = __webpack_require__(/*! ./_createAssigner */ "./node_modules/lodash/_createAssigner.js"); + +/** + * This method is like `_.assign` except that it recursively merges own and + * inherited enumerable string keyed properties of source objects into the + * destination object. Source properties that resolve to `undefined` are + * skipped if a destination value exists. Array and plain object properties + * are merged recursively. Other objects and value types are overridden by + * assignment. Source objects are applied from left to right. Subsequent + * sources overwrite property assignments of previous sources. + * + * **Note:** This method mutates `object`. + * + * @static + * @memberOf _ + * @since 0.5.0 + * @category Object + * @param {Object} object The destination object. + * @param {...Object} [sources] The source objects. + * @returns {Object} Returns `object`. + * @example + * + * var object = { + * 'a': [{ 'b': 2 }, { 'd': 4 }] + * }; + * + * var other = { + * 'a': [{ 'c': 3 }, { 'e': 5 }] + * }; + * + * _.merge(object, other); + * // => { 'a': [{ 'b': 2, 'c': 3 }, { 'd': 4, 'e': 5 }] } + */ +var merge = createAssigner(function(object, source, srcIndex) { + baseMerge(object, source, srcIndex); +}); + +module.exports = merge; + + +/***/ }), + +/***/ "./node_modules/lodash/toPlainObject.js": +/*!**********************************************!*\ + !*** ./node_modules/lodash/toPlainObject.js ***! + \**********************************************/ +/*! no static exports found */ +/***/ (function(module, exports, __webpack_require__) { + +var copyObject = __webpack_require__(/*! ./_copyObject */ "./node_modules/lodash/_copyObject.js"), + keysIn = __webpack_require__(/*! ./keysIn */ "./node_modules/lodash/keysIn.js"); + +/** + * Converts `value` to a plain object flattening inherited enumerable string + * keyed properties of `value` to own properties of the plain object. + * + * @static + * @memberOf _ + * @since 3.0.0 + * @category Lang + * @param {*} value The value to convert. + * @returns {Object} Returns the converted plain object. + * @example + * + * function Foo() { + * this.b = 2; + * } + * + * Foo.prototype.c = 3; + * + * _.assign({ 'a': 1 }, new Foo); + * // => { 'a': 1, 'b': 2 } + * + * _.assign({ 'a': 1 }, _.toPlainObject(new Foo)); + * // => { 'a': 1, 'b': 2, 'c': 3 } + */ +function toPlainObject(value) { + return copyObject(value, keysIn(value)); } +module.exports = toPlainObject; + /***/ }) diff --git a/public/js/chunk/5.js b/public/js/chunk/5.js index b969e13c8..15b9279c4 100644 --- a/public/js/chunk/5.js +++ b/public/js/chunk/5.js @@ -1,9 +1,9 @@ (window["webpackJsonp"] = window["webpackJsonp"] || []).push([[5],{ -/***/ "./node_modules/ant-design-vue/lib/_util/getScrollBarSize.js": -/*!*******************************************************************!*\ - !*** ./node_modules/ant-design-vue/lib/_util/getScrollBarSize.js ***! - \*******************************************************************/ +/***/ "./node_modules/ant-design-vue/lib/progress/circle.js": +/*!************************************************************!*\ + !*** ./node_modules/ant-design-vue/lib/progress/circle.js ***! + \************************************************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { @@ -13,52 +13,90 @@ Object.defineProperty(exports, "__esModule", { value: true }); -exports['default'] = getScrollBarSize; -var cached = void 0; -function getScrollBarSize(fresh) { - if (fresh || cached === undefined) { - var inner = document.createElement('div'); - inner.style.width = '100%'; - inner.style.height = '200px'; +var _vcProgress = __webpack_require__(/*! ../vc-progress */ "./node_modules/ant-design-vue/lib/vc-progress/index.js"); - var outer = document.createElement('div'); - var outerStyle = outer.style; +var _utils = __webpack_require__(/*! ./utils */ "./node_modules/ant-design-vue/lib/progress/utils.js"); - outerStyle.position = 'absolute'; - outerStyle.top = 0; - outerStyle.left = 0; - outerStyle.pointerEvents = 'none'; - outerStyle.visibility = 'hidden'; - outerStyle.width = '200px'; - outerStyle.height = '150px'; - outerStyle.overflow = 'hidden'; +var statusColorMap = { + normal: '#108ee9', + exception: '#ff5500', + success: '#87d068' +}; + +function getPercentage(_ref) { + var percent = _ref.percent, + successPercent = _ref.successPercent; - outer.appendChild(inner); + var ptg = (0, _utils.validProgress)(percent); + if (!successPercent) return ptg; - document.body.appendChild(outer); + var successPtg = (0, _utils.validProgress)(successPercent); + return [successPercent, (0, _utils.validProgress)(ptg - successPtg)]; +} - var widthContained = inner.offsetWidth; - outer.style.overflow = 'scroll'; - var widthScroll = inner.offsetWidth; +function getStrokeColor(_ref2) { + var progressStatus = _ref2.progressStatus, + successPercent = _ref2.successPercent, + strokeColor = _ref2.strokeColor; - if (widthContained === widthScroll) { - widthScroll = outer.clientWidth; - } + var color = strokeColor || statusColorMap[progressStatus]; + if (!successPercent) return color; + return [statusColorMap.success, color]; +} - document.body.removeChild(outer); +var Circle = { + functional: true, + render: function render(h, context) { + var props = context.props, + children = context.children; + var prefixCls = props.prefixCls, + width = props.width, + strokeWidth = props.strokeWidth, + trailColor = props.trailColor, + strokeLinecap = props.strokeLinecap, + gapPosition = props.gapPosition, + gapDegree = props.gapDegree, + type = props.type; + + var circleSize = width || 120; + var circleStyle = { + width: typeof circleSize === 'number' ? circleSize + 'px' : circleSize, + height: typeof circleSize === 'number' ? circleSize + 'px' : circleSize, + fontSize: circleSize * 0.15 + 6 + }; + var circleWidth = strokeWidth || 6; + var gapPos = gapPosition || type === 'dashboard' && 'bottom' || 'top'; + var gapDeg = gapDegree || type === 'dashboard' && 75; - cached = widthContained - widthScroll; + return h( + 'div', + { 'class': prefixCls + '-inner', style: circleStyle }, + [h(_vcProgress.Circle, { + attrs: { + percent: getPercentage(props), + strokeWidth: circleWidth, + trailWidth: circleWidth, + strokeColor: getStrokeColor(props), + strokeLinecap: strokeLinecap, + trailColor: trailColor, + prefixCls: prefixCls, + gapDegree: gapDeg, + gapPosition: gapPos + } + }), children] + ); } - return cached; -} +}; + +exports['default'] = Circle; /***/ }), -/***/ "./node_modules/ant-design-vue/lib/modal/ActionButton.js": -/*!***************************************************************!*\ - !*** ./node_modules/ant-design-vue/lib/modal/ActionButton.js ***! - \***************************************************************/ +/***/ "./node_modules/ant-design-vue/lib/progress/index.js": +/*!***********************************************************!*\ + !*** ./node_modules/ant-design-vue/lib/progress/index.js ***! + \***********************************************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { @@ -68,119 +106,39 @@ function getScrollBarSize(fresh) { Object.defineProperty(exports, "__esModule", { value: true }); +exports.ProgressProps = undefined; -var _babelHelperVueJsxMergeProps = __webpack_require__(/*! babel-helper-vue-jsx-merge-props */ "./node_modules/babel-helper-vue-jsx-merge-props/index.js"); - -var _babelHelperVueJsxMergeProps2 = _interopRequireDefault(_babelHelperVueJsxMergeProps); - -var _vueTypes = __webpack_require__(/*! ../_util/vue-types */ "./node_modules/ant-design-vue/lib/_util/vue-types/index.js"); - -var _vueTypes2 = _interopRequireDefault(_vueTypes); - -var _button = __webpack_require__(/*! ../button */ "./node_modules/ant-design-vue/lib/button/index.js"); - -var _button2 = _interopRequireDefault(_button); +var _progress = __webpack_require__(/*! ./progress */ "./node_modules/ant-design-vue/lib/progress/progress.js"); -var _BaseMixin = __webpack_require__(/*! ../_util/BaseMixin */ "./node_modules/ant-design-vue/lib/_util/BaseMixin.js"); +Object.defineProperty(exports, 'ProgressProps', { + enumerable: true, + get: function get() { + return _progress.ProgressProps; + } +}); -var _BaseMixin2 = _interopRequireDefault(_BaseMixin); +var _progress2 = _interopRequireDefault(_progress); -var _buttonTypes = __webpack_require__(/*! ../button/buttonTypes */ "./node_modules/ant-design-vue/lib/button/buttonTypes.js"); +var _base = __webpack_require__(/*! ../base */ "./node_modules/ant-design-vue/lib/base/index.js"); -var _buttonTypes2 = _interopRequireDefault(_buttonTypes); +var _base2 = _interopRequireDefault(_base); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } -var ButtonType = (0, _buttonTypes2['default'])().type; -var ActionButtonProps = { - type: ButtonType, - actionFn: _vueTypes2['default'].func, - closeModal: _vueTypes2['default'].func, - autoFocus: _vueTypes2['default'].bool, - buttonProps: _vueTypes2['default'].object +/* istanbul ignore next */ +_progress2['default'].install = function (Vue) { + Vue.use(_base2['default']); + Vue.component(_progress2['default'].name, _progress2['default']); }; -exports['default'] = { - mixins: [_BaseMixin2['default']], - props: ActionButtonProps, - data: function data() { - return { - loading: false - }; - }, - mounted: function mounted() { - var _this = this; - - if (this.autoFocus) { - this.timeoutId = setTimeout(function () { - return _this.$el.focus(); - }); - } - }, - beforeDestroy: function beforeDestroy() { - clearTimeout(this.timeoutId); - }, - - methods: { - onClick: function onClick() { - var _this2 = this; - - var actionFn = this.actionFn, - closeModal = this.closeModal; - - if (actionFn) { - var ret = void 0; - if (actionFn.length) { - ret = actionFn(closeModal); - } else { - ret = actionFn(); - if (!ret) { - closeModal(); - } - } - if (ret && ret.then) { - this.setState({ loading: true }); - ret.then(function () { - // It's unnecessary to set loading=false, for the Modal will be unmounted after close. - // this.setState({ loading: false }); - closeModal.apply(undefined, arguments); - }, function () { - // See: https://github.com/ant-design/ant-design/issues/6183 - _this2.setState({ loading: false }); - }); - } - } else { - closeModal(); - } - } - }, - - render: function render() { - var h = arguments[0]; - var type = this.type, - $slots = this.$slots, - loading = this.loading, - buttonProps = this.buttonProps; - - return h( - _button2['default'], - (0, _babelHelperVueJsxMergeProps2['default'])([{ - attrs: { type: type, loading: loading }, - on: { - 'click': this.onClick - } - }, buttonProps]), - [$slots['default']] - ); - } -}; +exports['default'] = _progress2['default']; /***/ }), -/***/ "./node_modules/ant-design-vue/lib/modal/ConfirmDialog.js": -/*!****************************************************************!*\ - !*** ./node_modules/ant-design-vue/lib/modal/ConfirmDialog.js ***! - \****************************************************************/ +/***/ "./node_modules/ant-design-vue/lib/progress/line.js": +/*!**********************************************************!*\ + !*** ./node_modules/ant-design-vue/lib/progress/line.js ***! + \**********************************************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { @@ -191,154 +149,53 @@ Object.defineProperty(exports, "__esModule", { value: true }); -var _defineProperty2 = __webpack_require__(/*! babel-runtime/helpers/defineProperty */ "./node_modules/babel-runtime/helpers/defineProperty.js"); - -var _defineProperty3 = _interopRequireDefault(_defineProperty2); - -var _classnames = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js"); - -var _classnames2 = _interopRequireDefault(_classnames); - -var _icon = __webpack_require__(/*! ../icon */ "./node_modules/ant-design-vue/lib/icon/index.js"); - -var _icon2 = _interopRequireDefault(_icon); - -var _Modal = __webpack_require__(/*! ./Modal */ "./node_modules/ant-design-vue/lib/modal/Modal.js"); - -var _Modal2 = _interopRequireDefault(_Modal); - -var _ActionButton = __webpack_require__(/*! ./ActionButton */ "./node_modules/ant-design-vue/lib/modal/ActionButton.js"); - -var _ActionButton2 = _interopRequireDefault(_ActionButton); - -var _locale = __webpack_require__(/*! ./locale */ "./node_modules/ant-design-vue/lib/modal/locale.js"); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } +var _utils = __webpack_require__(/*! ./utils */ "./node_modules/ant-design-vue/lib/progress/utils.js"); -exports['default'] = { +var Line = { functional: true, render: function render(h, context) { - var props = context.props; - var onCancel = props.onCancel, - onOk = props.onOk, - close = props.close, - zIndex = props.zIndex, - afterClose = props.afterClose, - visible = props.visible, - keyboard = props.keyboard, - centered = props.centered, - getContainer = props.getContainer, - maskStyle = props.maskStyle, - okButtonProps = props.okButtonProps, - cancelButtonProps = props.cancelButtonProps, - _props$closable = props.closable, - closable = _props$closable === undefined ? false : _props$closable; - - var iconType = props.iconType || 'question-circle'; - var okType = props.okType || 'primary'; - var prefixCls = props.prefixCls || 'ant-modal'; - var contentPrefixCls = prefixCls + '-confirm'; - // 默认为 true,保持向下兼容 - var okCancel = 'okCancel' in props ? props.okCancel : true; - var width = props.width || 416; - var style = props.style || {}; - // 默认为 false,保持旧版默认行为 - var maskClosable = props.maskClosable === undefined ? false : props.maskClosable; - var runtimeLocale = (0, _locale.getConfirmLocale)(); - var okText = props.okText || (okCancel ? runtimeLocale.okText : runtimeLocale.justOkText); - var cancelText = props.cancelText || runtimeLocale.cancelText; - var autoFocusButton = props.autoFocusButton === null ? false : props.autoFocusButton || 'ok'; - - var classString = (0, _classnames2['default'])(contentPrefixCls, contentPrefixCls + '-' + props.type, prefixCls + '-' + props.type, props['class']); - - var cancelButton = okCancel && h( - _ActionButton2['default'], - { - attrs: { - actionFn: onCancel, - closeModal: close, - autoFocus: autoFocusButton === 'cancel', - buttonProps: cancelButtonProps - } - }, - [cancelText] - ); - - return h( - _Modal2['default'], - { - attrs: { - prefixCls: prefixCls, - - wrapClassName: (0, _classnames2['default'])((0, _defineProperty3['default'])({}, contentPrefixCls + '-centered', !!centered)), - - visible: visible, - closable: closable, - title: '', - transitionName: 'zoom', - footer: '', - maskTransitionName: 'fade', - maskClosable: maskClosable, - maskStyle: maskStyle, - - width: width, - zIndex: zIndex, - afterClose: afterClose, - keyboard: keyboard, - centered: centered, - getContainer: getContainer - }, - 'class': classString, on: { - 'cancel': function cancel(e) { - return close({ triggerCancel: true }, e); - } - }, - style: style }, + var props = context.props, + children = context.children; + var prefixCls = props.prefixCls, + percent = props.percent, + successPercent = props.successPercent, + strokeWidth = props.strokeWidth, + size = props.size, + strokeColor = props.strokeColor, + strokeLinecap = props.strokeLinecap; + + var percentStyle = { + width: (0, _utils.validProgress)(percent) + '%', + height: (strokeWidth || (size === 'small' ? 6 : 8)) + 'px', + background: strokeColor, + borderRadius: strokeLinecap === 'square' ? 0 : '100px' + }; + var successPercentStyle = { + width: (0, _utils.validProgress)(successPercent) + '%', + height: (strokeWidth || (size === 'small' ? 6 : 8)) + 'px', + borderRadius: strokeLinecap === 'square' ? 0 : '100px' + }; + var successSegment = successPercent !== undefined ? h('div', { 'class': prefixCls + '-success-bg', style: successPercentStyle }) : null; + return h('div', [h( + 'div', + { 'class': prefixCls + '-outer' }, [h( 'div', - { 'class': contentPrefixCls + '-body-wrapper' }, - [h( - 'div', - { 'class': contentPrefixCls + '-body' }, - [h(_icon2['default'], { - attrs: { type: iconType } - }), h( - 'span', - { 'class': contentPrefixCls + '-title' }, - [props.title] - ), h( - 'div', - { 'class': contentPrefixCls + '-content' }, - [props.content] - )] - ), h( - 'div', - { 'class': contentPrefixCls + '-btns' }, - [cancelButton, h( - _ActionButton2['default'], - { - attrs: { - type: okType, - actionFn: onOk, - closeModal: close, - autoFocus: autoFocusButton === 'ok', - buttonProps: okButtonProps - } - }, - [okText] - )] - )] + { 'class': prefixCls + '-inner' }, + [h('div', { 'class': prefixCls + '-bg', style: percentStyle }), successSegment] )] - ); + ), children]); } }; +exports['default'] = Line; + /***/ }), -/***/ "./node_modules/ant-design-vue/lib/modal/Modal.js": -/*!********************************************************!*\ - !*** ./node_modules/ant-design-vue/lib/modal/Modal.js ***! - \********************************************************/ +/***/ "./node_modules/ant-design-vue/lib/progress/progress.js": +/*!**************************************************************!*\ + !*** ./node_modules/ant-design-vue/lib/progress/progress.js ***! + \**************************************************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { @@ -348,6 +205,7 @@ exports['default'] = { Object.defineProperty(exports, "__esModule", { value: true }); +exports.ProgressProps = exports.ProgressSize = exports.ProgressType = undefined; var _defineProperty2 = __webpack_require__(/*! babel-runtime/helpers/defineProperty */ "./node_modules/babel-runtime/helpers/defineProperty.js"); @@ -357,230 +215,196 @@ var _extends2 = __webpack_require__(/*! babel-runtime/helpers/extends */ "./node var _extends3 = _interopRequireDefault(_extends2); -var _classnames = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js"); +var _objectWithoutProperties2 = __webpack_require__(/*! babel-runtime/helpers/objectWithoutProperties */ "./node_modules/babel-runtime/helpers/objectWithoutProperties.js"); -var _classnames2 = _interopRequireDefault(_classnames); +var _objectWithoutProperties3 = _interopRequireDefault(_objectWithoutProperties2); -var _vcDialog = __webpack_require__(/*! ../vc-dialog */ "./node_modules/ant-design-vue/lib/vc-dialog/index.js"); +var _classnames = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js"); -var _vcDialog2 = _interopRequireDefault(_vcDialog); +var _classnames2 = _interopRequireDefault(_classnames); var _vueTypes = __webpack_require__(/*! ../_util/vue-types */ "./node_modules/ant-design-vue/lib/_util/vue-types/index.js"); var _vueTypes2 = _interopRequireDefault(_vueTypes); -var _addEventListener = __webpack_require__(/*! ../_util/Dom/addEventListener */ "./node_modules/ant-design-vue/lib/_util/Dom/addEventListener.js"); - -var _addEventListener2 = _interopRequireDefault(_addEventListener); - -var _button = __webpack_require__(/*! ../button */ "./node_modules/ant-design-vue/lib/button/index.js"); - -var _button2 = _interopRequireDefault(_button); +var _propsUtil = __webpack_require__(/*! ../_util/props-util */ "./node_modules/ant-design-vue/lib/_util/props-util.js"); -var _buttonTypes = __webpack_require__(/*! ../button/buttonTypes */ "./node_modules/ant-design-vue/lib/button/buttonTypes.js"); +var _configProvider = __webpack_require__(/*! ../config-provider */ "./node_modules/ant-design-vue/lib/config-provider/index.js"); -var _buttonTypes2 = _interopRequireDefault(_buttonTypes); +var _icon = __webpack_require__(/*! ../icon */ "./node_modules/ant-design-vue/lib/icon/index.js"); -var _LocaleReceiver = __webpack_require__(/*! ../locale-provider/LocaleReceiver */ "./node_modules/ant-design-vue/lib/locale-provider/LocaleReceiver.js"); +var _icon2 = _interopRequireDefault(_icon); -var _LocaleReceiver2 = _interopRequireDefault(_LocaleReceiver); +var _line = __webpack_require__(/*! ./line */ "./node_modules/ant-design-vue/lib/progress/line.js"); -var _locale = __webpack_require__(/*! ./locale */ "./node_modules/ant-design-vue/lib/modal/locale.js"); +var _line2 = _interopRequireDefault(_line); -var _propsUtil = __webpack_require__(/*! ../_util/props-util */ "./node_modules/ant-design-vue/lib/_util/props-util.js"); +var _circle = __webpack_require__(/*! ./circle */ "./node_modules/ant-design-vue/lib/progress/circle.js"); -var _icon = __webpack_require__(/*! ../icon */ "./node_modules/ant-design-vue/lib/icon/index.js"); +var _circle2 = _interopRequireDefault(_circle); -var _icon2 = _interopRequireDefault(_icon); +var _utils = __webpack_require__(/*! ./utils */ "./node_modules/ant-design-vue/lib/progress/utils.js"); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } -var ButtonType = (0, _buttonTypes2['default'])().type; - - -var mousePosition = null; -var mousePositionEventBinded = false; -function noop() {} -var modalProps = function modalProps() { - var defaultProps = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {}; +function addUnit(num, unit) { + var unitType = unit || 'px'; + return num ? num + unitType : null; +} - var props = { - prefixCls: _vueTypes2['default'].string, - /** 对话框是否可见*/ - visible: _vueTypes2['default'].bool, - /** 确定按钮 loading*/ - confirmLoading: _vueTypes2['default'].bool, - /** 标题*/ - title: _vueTypes2['default'].any, - /** 是否显示右上角的关闭按钮*/ - closable: _vueTypes2['default'].bool, - /** 点击确定回调*/ - // onOk: (e: React.MouseEvent) => void, - /** 点击模态框右上角叉、取消按钮、Props.maskClosable 值为 true 时的遮罩层或键盘按下 Esc 时的回调*/ - // onCancel: (e: React.MouseEvent) => void, - afterClose: _vueTypes2['default'].func.def(noop), - /** 垂直居中 */ - centered: _vueTypes2['default'].bool, - /** 宽度*/ - width: _vueTypes2['default'].oneOfType([_vueTypes2['default'].string, _vueTypes2['default'].number]), - /** 底部内容*/ - footer: _vueTypes2['default'].any, - /** 确认按钮文字*/ - okText: _vueTypes2['default'].string, - /** 确认按钮类型*/ - okType: ButtonType, - /** 取消按钮文字*/ - cancelText: _vueTypes2['default'].string, - /** 点击蒙层是否允许关闭*/ - maskClosable: _vueTypes2['default'].bool, - okButtonProps: _vueTypes2['default'].object, - cancelButtonProps: _vueTypes2['default'].object, - destroyOnClose: _vueTypes2['default'].bool, - wrapClassName: _vueTypes2['default'].string, - maskTransitionName: _vueTypes2['default'].string, - transitionName: _vueTypes2['default'].string, - getContainer: _vueTypes2['default'].func, - zIndex: _vueTypes2['default'].number, - bodyStyle: _vueTypes2['default'].object, - maskStyle: _vueTypes2['default'].object, - mask: _vueTypes2['default'].bool, - keyboard: _vueTypes2['default'].bool, - wrapProps: _vueTypes2['default'].object - }; - return (0, _propsUtil.initDefaultProps)(props, defaultProps); +var ProgressType = exports.ProgressType = _vueTypes2['default'].oneOf(['line', 'circle', 'dashboard']); +var ProgressSize = exports.ProgressSize = _vueTypes2['default'].oneOf(['default', 'small']); + +var ProgressProps = exports.ProgressProps = { + prefixCls: _vueTypes2['default'].string, + type: ProgressType, + percent: _vueTypes2['default'].number, + successPercent: _vueTypes2['default'].number, + format: _vueTypes2['default'].func, + status: _vueTypes2['default'].oneOf(['normal', 'success', 'active', 'exception']), + showInfo: _vueTypes2['default'].bool, + strokeWidth: _vueTypes2['default'].number, + strokeLinecap: _vueTypes2['default'].oneOf(['round', 'square']), + strokeColor: _vueTypes2['default'].string, + trailColor: _vueTypes2['default'].string, + width: _vueTypes2['default'].number, + gapDegree: _vueTypes2['default'].number, + gapPosition: _vueTypes2['default'].oneOf(['top', 'bottom', 'left', 'right']), + size: ProgressSize }; exports['default'] = { - name: 'AModal', - model: { - prop: 'visible', - event: 'change' - }, - props: modalProps({ - prefixCls: 'ant-modal', - width: 520, - transitionName: 'zoom', - maskTransitionName: 'fade', - confirmLoading: false, - visible: false, - okType: 'primary' - // okButtonDisabled: false, - // cancelButtonDisabled: false, + name: 'AProgress', + props: (0, _propsUtil.initDefaultProps)(ProgressProps, { + type: 'line', + percent: 0, + showInfo: true, + trailColor: '#f3f3f3', + size: 'default', + gapDegree: 0, + strokeLinecap: 'round' }), - mounted: function mounted() { - if (mousePositionEventBinded) { - return; - } - // 只有点击事件支持从鼠标位置动画展开 - (0, _addEventListener2['default'])(document.documentElement, 'click', function (e) { - mousePosition = { - x: e.pageX, - y: e.pageY - }; - // 100ms 内发生过点击事件,则从点击位置动画展示 - // 否则直接 zoom 展示 - // 这样可以兼容非点击方式展开 - setTimeout(function () { - mousePosition = null; - }, 100); - }); - mousePositionEventBinded = true; + inject: { + configProvider: { 'default': function _default() { + return _configProvider.ConfigConsumerProps; + } } }, - - // static info: ModalFunc; - // static success: ModalFunc; - // static error: ModalFunc; - // static warn: ModalFunc; - // static warning: ModalFunc; - // static confirm: ModalFunc; methods: { - handleCancel: function handleCancel(e) { - this.$emit('cancel', e); - this.$emit('change', false); - }, - handleOk: function handleOk(e) { - this.$emit('ok', e); - }, - renderFooter: function renderFooter(locale) { + renderProcessInfo: function renderProcessInfo(prefixCls, progressStatus) { var h = this.$createElement; - var okType = this.okType, - confirmLoading = this.confirmLoading; - - var cancelBtnProps = (0, _propsUtil.mergeProps)({ on: { click: this.handleCancel } }, this.cancelButtonProps || {}); - var okBtnProps = (0, _propsUtil.mergeProps)({ - on: { click: this.handleOk }, - props: { - type: okType, - loading: confirmLoading - } - }, this.okButtonProps || {}); - return h('div', [h( - _button2['default'], - cancelBtnProps, - [(0, _propsUtil.getComponentFromProp)(this, 'cancelText') || locale.cancelText] - ), h( - _button2['default'], - okBtnProps, - [(0, _propsUtil.getComponentFromProp)(this, 'okText') || locale.okText] - )]); + var _$props = this.$props, + showInfo = _$props.showInfo, + format = _$props.format, + type = _$props.type, + percent = _$props.percent, + successPercent = _$props.successPercent; + + if (!showInfo) return null; + + var text = void 0; + var textFormatter = format || this.$scopedSlots.format || function (percentNumber) { + return percentNumber + '%'; + }; + var iconType = type === 'circle' || type === 'dashboard' ? '' : '-circle'; + if (format || this.$scopedSlots.format || progressStatus !== 'exception' && progressStatus !== 'success') { + text = textFormatter((0, _utils.validProgress)(percent), (0, _utils.validProgress)(successPercent)); + } else if (progressStatus === 'exception') { + text = h(_icon2['default'], { + attrs: { type: 'close' + iconType, theme: type === 'line' ? 'filled' : 'outlined' } + }); + } else if (progressStatus === 'success') { + text = h(_icon2['default'], { + attrs: { type: 'check' + iconType, theme: type === 'line' ? 'filled' : 'outlined' } + }); + } + return h( + 'span', + { 'class': prefixCls + '-text', attrs: { title: typeof text === 'string' ? text : undefined } + }, + [text] + ); } }, - render: function render() { + var _classNames; + var h = arguments[0]; - var visible = this.visible, - wrapClassName = this.wrapClassName, - centered = this.centered, - prefixCls = this.prefixCls, - $listeners = this.$listeners, - $slots = this.$slots; + var props = (0, _propsUtil.getOptionProps)(this); + var customizePrefixCls = props.prefixCls, + _props$percent = props.percent, + percent = _props$percent === undefined ? 0 : _props$percent, + status = props.status, + format = props.format, + trailColor = props.trailColor, + size = props.size, + successPercent = props.successPercent, + type = props.type, + strokeWidth = props.strokeWidth, + width = props.width, + showInfo = props.showInfo, + _props$gapDegree = props.gapDegree, + gapDegree = _props$gapDegree === undefined ? 0 : _props$gapDegree, + gapPosition = props.gapPosition, + strokeColor = props.strokeColor, + _props$strokeLinecap = props.strokeLinecap, + strokeLinecap = _props$strokeLinecap === undefined ? 'round' : _props$strokeLinecap, + restProps = (0, _objectWithoutProperties3['default'])(props, ['prefixCls', 'percent', 'status', 'format', 'trailColor', 'size', 'successPercent', 'type', 'strokeWidth', 'width', 'showInfo', 'gapDegree', 'gapPosition', 'strokeColor', 'strokeLinecap']); + + var getPrefixCls = this.configProvider.getPrefixCls; + var prefixCls = getPrefixCls('progress', customizePrefixCls); + + var progressStatus = parseInt(successPercent !== undefined ? successPercent.toString() : percent.toString(), 10) >= 100 && !('status' in props) ? 'success' : status || 'normal'; + var progress = void 0; + var progressInfo = this.renderProcessInfo(prefixCls, progressStatus); + + // Render progress shape + if (type === 'line') { + var lineProps = { + props: (0, _extends3['default'])({}, props, { + prefixCls: prefixCls + }) + }; + progress = h( + _line2['default'], + lineProps, + [progressInfo] + ); + } else if (type === 'circle' || type === 'dashboard') { + var circleProps = { + props: (0, _extends3['default'])({}, props, { + prefixCls: prefixCls, + progressStatus: progressStatus + }) + }; + progress = h( + _circle2['default'], + circleProps, + [progressInfo] + ); + } - var defaultFooter = h(_LocaleReceiver2['default'], { - attrs: { - componentName: 'Modal', - defaultLocale: (0, _locale.getConfirmLocale)() - }, - scopedSlots: { 'default': this.renderFooter } - }); - var closeIcon = h( - 'span', - { 'class': prefixCls + '-close-x' }, - [h(_icon2['default'], { 'class': prefixCls + '-close-icon', attrs: { type: 'close' } - })] - ); - var footer = (0, _propsUtil.getComponentFromProp)(this, 'footer'); - var title = (0, _propsUtil.getComponentFromProp)(this, 'title'); - var dialogProps = { - props: (0, _extends3['default'])({}, this.$props, { - prefixCls: prefixCls, - wrapClassName: (0, _classnames2['default'])((0, _defineProperty3['default'])({}, prefixCls + '-centered', !!centered), wrapClassName), - title: title, - footer: footer === undefined ? defaultFooter : footer, - visible: visible, - mousePosition: mousePosition, - closeIcon: closeIcon - }), - on: (0, _extends3['default'])({}, $listeners, { - close: this.handleCancel - }), - 'class': (0, _propsUtil.getClass)(this), - style: (0, _propsUtil.getStyle)(this) + var classString = (0, _classnames2['default'])(prefixCls, (_classNames = {}, (0, _defineProperty3['default'])(_classNames, prefixCls + '-' + (type === 'dashboard' && 'circle' || type), true), (0, _defineProperty3['default'])(_classNames, prefixCls + '-status-' + progressStatus, true), (0, _defineProperty3['default'])(_classNames, prefixCls + '-show-info', showInfo), (0, _defineProperty3['default'])(_classNames, prefixCls + '-' + size, size), _classNames)); + + var progressProps = { + props: (0, _extends3['default'])({}, restProps), + on: this.$listeners, + 'class': classString }; return h( - _vcDialog2['default'], - dialogProps, - [$slots['default']] + 'div', + progressProps, + [progress] ); } }; /***/ }), -/***/ "./node_modules/ant-design-vue/lib/modal/confirm.js": -/*!**********************************************************!*\ - !*** ./node_modules/ant-design-vue/lib/modal/confirm.js ***! - \**********************************************************/ +/***/ "./node_modules/ant-design-vue/lib/progress/utils.js": +/*!***********************************************************!*\ + !*** ./node_modules/ant-design-vue/lib/progress/utils.js ***! + \***********************************************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { @@ -590,89 +414,22 @@ exports['default'] = { Object.defineProperty(exports, "__esModule", { value: true }); - -var _extends2 = __webpack_require__(/*! babel-runtime/helpers/extends */ "./node_modules/babel-runtime/helpers/extends.js"); - -var _extends3 = _interopRequireDefault(_extends2); - -exports['default'] = confirm; - -var _vue = __webpack_require__(/*! vue */ "./node_modules/vue/dist/vue.common.js"); - -var _vue2 = _interopRequireDefault(_vue); - -var _ConfirmDialog = __webpack_require__(/*! ./ConfirmDialog */ "./node_modules/ant-design-vue/lib/modal/ConfirmDialog.js"); - -var _ConfirmDialog2 = _interopRequireDefault(_ConfirmDialog); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } - -function confirm(config) { - var div = document.createElement('div'); - var el = document.createElement('div'); - div.appendChild(el); - document.body.appendChild(div); - var currentConfig = (0, _extends3['default'])({}, config, { close: close, visible: true }); - - var confirmDialogInstance = null; - var confirmDialogProps = { props: {} }; - function close() { - destroy.apply(undefined, arguments); - } - function update(newConfig) { - currentConfig = (0, _extends3['default'])({}, currentConfig, newConfig); - confirmDialogProps.props = currentConfig; - } - function destroy() { - if (confirmDialogInstance && div.parentNode) { - confirmDialogInstance.$destroy(); - confirmDialogInstance = null; - div.parentNode.removeChild(div); - } - - for (var _len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++) { - args[_key] = arguments[_key]; - } - - var triggerCancel = args.some(function (param) { - return param && param.triggerCancel; - }); - if (config.onCancel && triggerCancel) { - config.onCancel.apply(config, args); - } - } - - function render(props) { - confirmDialogProps.props = props; - return new _vue2['default']({ - el: el, - data: function data() { - return { confirmDialogProps: confirmDialogProps }; - }, - render: function render() { - var h = arguments[0]; - - // 先解构,避免报错,原因不详 - var cdProps = (0, _extends3['default'])({}, this.confirmDialogProps); - return h(_ConfirmDialog2['default'], cdProps); - } - }); +exports.validProgress = validProgress; +function validProgress(progress) { + if (!progress || progress < 0) { + return 0; + } else if (progress > 100) { + return 100; } - - confirmDialogInstance = render(currentConfig); - - return { - destroy: close, - update: update - }; + return progress; } /***/ }), -/***/ "./node_modules/ant-design-vue/lib/modal/index.js": -/*!********************************************************!*\ - !*** ./node_modules/ant-design-vue/lib/modal/index.js ***! - \********************************************************/ +/***/ "./node_modules/ant-design-vue/lib/upload/Dragger.js": +/*!***********************************************************!*\ + !*** ./node_modules/ant-design-vue/lib/upload/Dragger.js ***! + \***********************************************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { @@ -687,83 +444,44 @@ var _extends2 = __webpack_require__(/*! babel-runtime/helpers/extends */ "./node var _extends3 = _interopRequireDefault(_extends2); -var _Modal = __webpack_require__(/*! ./Modal */ "./node_modules/ant-design-vue/lib/modal/Modal.js"); +var _propsUtil = __webpack_require__(/*! ../_util/props-util */ "./node_modules/ant-design-vue/lib/_util/props-util.js"); -var _Modal2 = _interopRequireDefault(_Modal); +var _Upload = __webpack_require__(/*! ./Upload */ "./node_modules/ant-design-vue/lib/upload/Upload.js"); -var _confirm = __webpack_require__(/*! ./confirm */ "./node_modules/ant-design-vue/lib/modal/confirm.js"); +var _Upload2 = _interopRequireDefault(_Upload); -var _confirm2 = _interopRequireDefault(_confirm); +var _interface = __webpack_require__(/*! ./interface */ "./node_modules/ant-design-vue/lib/upload/interface.js"); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } -// export { ActionButtonProps } from './ActionButton' -// export { ModalProps, ModalFuncProps } from './Modal' - -var info = function info(props) { - var config = (0, _extends3['default'])({ - type: 'info', - iconType: 'info-circle', - okCancel: false - }, props); - return (0, _confirm2['default'])(config); -}; - -var success = function success(props) { - var config = (0, _extends3['default'])({ - type: 'success', - iconType: 'check-circle', - okCancel: false - }, props); - return (0, _confirm2['default'])(config); -}; - -var error = function error(props) { - var config = (0, _extends3['default'])({ - type: 'error', - iconType: 'close-circle', - okCancel: false - }, props); - return (0, _confirm2['default'])(config); -}; - -var warning = function warning(props) { - var config = (0, _extends3['default'])({ - type: 'warning', - iconType: 'exclamation-circle', - okCancel: false - }, props); - return (0, _confirm2['default'])(config); -}; -var warn = warning; - -var confirm = function confirm(props) { - var config = (0, _extends3['default'])({ - type: 'confirm', - okCancel: true - }, props); - return (0, _confirm2['default'])(config); -}; -_Modal2['default'].info = info; -_Modal2['default'].success = success; -_Modal2['default'].error = error; -_Modal2['default'].warning = warning; -_Modal2['default'].warn = warn; -_Modal2['default'].confirm = confirm; +exports['default'] = { + name: 'AUploadDragger', + props: _interface.UploadProps, + render: function render() { + var h = arguments[0]; -/* istanbul ignore next */ -_Modal2['default'].install = function (Vue) { - Vue.component(_Modal2['default'].name, _Modal2['default']); + var props = (0, _propsUtil.getOptionProps)(this); + var draggerProps = { + props: (0, _extends3['default'])({}, props, { + type: 'drag' + }), + on: this.$listeners, + style: { height: this.height } + }; + return h( + _Upload2['default'], + draggerProps, + [this.$slots['default']] + ); + } }; -exports['default'] = _Modal2['default']; - /***/ }), -/***/ "./node_modules/ant-design-vue/lib/modal/locale.js": -/*!*********************************************************!*\ - !*** ./node_modules/ant-design-vue/lib/modal/locale.js ***! - \*********************************************************/ +/***/ "./node_modules/ant-design-vue/lib/upload/Upload.js": +/*!**********************************************************!*\ + !*** ./node_modules/ant-design-vue/lib/upload/Upload.js ***! + \**********************************************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { @@ -773,560 +491,387 @@ exports['default'] = _Modal2['default']; Object.defineProperty(exports, "__esModule", { value: true }); +exports.UploadProps = undefined; + +var _defineProperty2 = __webpack_require__(/*! babel-runtime/helpers/defineProperty */ "./node_modules/babel-runtime/helpers/defineProperty.js"); + +var _defineProperty3 = _interopRequireDefault(_defineProperty2); var _extends2 = __webpack_require__(/*! babel-runtime/helpers/extends */ "./node_modules/babel-runtime/helpers/extends.js"); var _extends3 = _interopRequireDefault(_extends2); -exports.changeConfirmLocale = changeConfirmLocale; -exports.getConfirmLocale = getConfirmLocale; +var _classnames = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js"); -var _default = __webpack_require__(/*! ../locale-provider/default */ "./node_modules/ant-design-vue/lib/locale-provider/default.js"); +var _classnames2 = _interopRequireDefault(_classnames); -var _default2 = _interopRequireDefault(_default); +var _uniqBy = __webpack_require__(/*! lodash/uniqBy */ "./node_modules/lodash/uniqBy.js"); -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } +var _uniqBy2 = _interopRequireDefault(_uniqBy); -// export interface ModalLocale { -// okText: string; -// cancelText: string; -// justOkText: string; -// } +var _findIndex = __webpack_require__(/*! lodash/findIndex */ "./node_modules/lodash/findIndex.js"); -var runtimeLocale = (0, _extends3['default'])({}, _default2['default'].Modal); +var _findIndex2 = _interopRequireDefault(_findIndex); -function changeConfirmLocale(newLocale) { - if (newLocale) { - runtimeLocale = (0, _extends3['default'])({}, runtimeLocale, newLocale); - } else { - runtimeLocale = (0, _extends3['default'])({}, _default2['default'].Modal); - } -} +var _vcUpload = __webpack_require__(/*! ../vc-upload */ "./node_modules/ant-design-vue/lib/vc-upload/index.js"); -function getConfirmLocale() { - return runtimeLocale; -} +var _vcUpload2 = _interopRequireDefault(_vcUpload); -/***/ }), +var _BaseMixin = __webpack_require__(/*! ../_util/BaseMixin */ "./node_modules/ant-design-vue/lib/_util/BaseMixin.js"); -/***/ "./node_modules/ant-design-vue/lib/vc-dialog/Dialog.js": -/*!*************************************************************!*\ - !*** ./node_modules/ant-design-vue/lib/vc-dialog/Dialog.js ***! - \*************************************************************/ -/*! no static exports found */ -/***/ (function(module, exports, __webpack_require__) { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", { - value: true -}); - -var _babelHelperVueJsxMergeProps = __webpack_require__(/*! babel-helper-vue-jsx-merge-props */ "./node_modules/babel-helper-vue-jsx-merge-props/index.js"); - -var _babelHelperVueJsxMergeProps2 = _interopRequireDefault(_babelHelperVueJsxMergeProps); - -var _defineProperty2 = __webpack_require__(/*! babel-runtime/helpers/defineProperty */ "./node_modules/babel-runtime/helpers/defineProperty.js"); - -var _defineProperty3 = _interopRequireDefault(_defineProperty2); - -var _extends3 = __webpack_require__(/*! babel-runtime/helpers/extends */ "./node_modules/babel-runtime/helpers/extends.js"); - -var _extends4 = _interopRequireDefault(_extends3); +var _BaseMixin2 = _interopRequireDefault(_BaseMixin); var _propsUtil = __webpack_require__(/*! ../_util/props-util */ "./node_modules/ant-design-vue/lib/_util/props-util.js"); -var _KeyCode = __webpack_require__(/*! ../_util/KeyCode */ "./node_modules/ant-design-vue/lib/_util/KeyCode.js"); - -var _KeyCode2 = _interopRequireDefault(_KeyCode); - -var _contains = __webpack_require__(/*! ../_util/Dom/contains */ "./node_modules/ant-design-vue/lib/_util/Dom/contains.js"); - -var _contains2 = _interopRequireDefault(_contains); +var _LocaleReceiver = __webpack_require__(/*! ../locale-provider/LocaleReceiver */ "./node_modules/ant-design-vue/lib/locale-provider/LocaleReceiver.js"); -var _LazyRenderBox = __webpack_require__(/*! ./LazyRenderBox */ "./node_modules/ant-design-vue/lib/vc-dialog/LazyRenderBox.js"); +var _LocaleReceiver2 = _interopRequireDefault(_LocaleReceiver); -var _LazyRenderBox2 = _interopRequireDefault(_LazyRenderBox); +var _default2 = __webpack_require__(/*! ../locale-provider/default */ "./node_modules/ant-design-vue/lib/locale-provider/default.js"); -var _BaseMixin = __webpack_require__(/*! ../_util/BaseMixin */ "./node_modules/ant-design-vue/lib/_util/BaseMixin.js"); +var _default3 = _interopRequireDefault(_default2); -var _BaseMixin2 = _interopRequireDefault(_BaseMixin); +var _configProvider = __webpack_require__(/*! ../config-provider */ "./node_modules/ant-design-vue/lib/config-provider/index.js"); -var _getTransitionProps = __webpack_require__(/*! ../_util/getTransitionProps */ "./node_modules/ant-design-vue/lib/_util/getTransitionProps.js"); +var _Dragger = __webpack_require__(/*! ./Dragger */ "./node_modules/ant-design-vue/lib/upload/Dragger.js"); -var _getTransitionProps2 = _interopRequireDefault(_getTransitionProps); +var _Dragger2 = _interopRequireDefault(_Dragger); -var _getScrollBarSize = __webpack_require__(/*! ../_util/getScrollBarSize */ "./node_modules/ant-design-vue/lib/_util/getScrollBarSize.js"); +var _UploadList = __webpack_require__(/*! ./UploadList */ "./node_modules/ant-design-vue/lib/upload/UploadList.js"); -var _getScrollBarSize2 = _interopRequireDefault(_getScrollBarSize); +var _UploadList2 = _interopRequireDefault(_UploadList); -var _IDialogPropTypes = __webpack_require__(/*! ./IDialogPropTypes */ "./node_modules/ant-design-vue/lib/vc-dialog/IDialogPropTypes.js"); +var _interface = __webpack_require__(/*! ./interface */ "./node_modules/ant-design-vue/lib/upload/interface.js"); -var _IDialogPropTypes2 = _interopRequireDefault(_IDialogPropTypes); +var _utils = __webpack_require__(/*! ./utils */ "./node_modules/ant-design-vue/lib/upload/utils.js"); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } -var IDialogPropTypes = (0, _IDialogPropTypes2['default'])(); - -var uuid = 0; -var openCount = 0; - -/* eslint react/no-is-mounted:0 */ -function noop() {} -function getScroll(w, top) { - var ret = w['page' + (top ? 'Y' : 'X') + 'Offset']; - var method = 'scroll' + (top ? 'Top' : 'Left'); - if (typeof ret !== 'number') { - var d = w.document; - ret = d.documentElement[method]; - if (typeof ret !== 'number') { - ret = d.body[method]; - } - } - return ret; -} - -function setTransformOrigin(node, value) { - var style = node.style; - ['Webkit', 'Moz', 'Ms', 'ms'].forEach(function (prefix) { - style[prefix + 'TransformOrigin'] = value; - }); - style['transformOrigin'] = value; -} - -function offset(el) { - var rect = el.getBoundingClientRect(); - var pos = { - left: rect.left, - top: rect.top - }; - var doc = el.ownerDocument; - var w = doc.defaultView || doc.parentWindow; - pos.left += getScroll(w); - pos.top += getScroll(w, true); - return pos; -} -var initDefaultProps = function initDefaultProps(propTypes, defaultProps) { - return Object.keys(defaultProps).map(function (k) { - return propTypes[k].def(defaultProps[k]); - }); -}; +exports.UploadProps = _interface.UploadProps; exports['default'] = { + name: 'AUpload', mixins: [_BaseMixin2['default']], - props: (0, _extends4['default'])({}, IDialogPropTypes, initDefaultProps(IDialogPropTypes, { - mask: true, - visible: false, - keyboard: true, - closable: true, - maskClosable: true, - destroyOnClose: false, - prefixCls: 'rc-dialog' - })), + inheritAttrs: false, + Dragger: _Dragger2['default'], + props: (0, _propsUtil.initDefaultProps)(_interface.UploadProps, { + type: 'select', + multiple: false, + action: '', + data: {}, + accept: '', + beforeUpload: _utils.T, + showUploadList: true, + listType: 'text', // or pictrue + disabled: false, + supportServerRender: true + }), + inject: { + configProvider: { 'default': function _default() { + return _configProvider.ConfigConsumerProps; + } } + }, + // recentUploadStatus: boolean | PromiseLike; data: function data() { + this.progressTimer = null; return { - destroyPopup: false + sFileList: this.fileList || this.defaultFileList || [], + dragState: 'drop' }; }, - watch: { - visible: function visible(val) { - var _this = this; - - if (val) { - this.destroyPopup = false; - } - this.$nextTick(function () { - _this.updatedCallback(!val); - }); + fileList: function fileList(val) { + this.sFileList = val || []; } }, - - // private inTransition: boolean; - // private titleId: string; - // private openTime: number; - // private lastOutSideFocusNode: HTMLElement | null; - // private wrap: HTMLElement; - // private dialog: any; - // private sentinel: HTMLElement; - // private bodyIsOverflowing: boolean; - // private scrollbarWidth: number; - - beforeMount: function beforeMount() { - this.inTransition = false; - this.titleId = 'rcDialogTitle' + uuid++; - }, - mounted: function mounted() { - var _this2 = this; - - this.$nextTick(function () { - _this2.updatedCallback(false); - }); - }, beforeDestroy: function beforeDestroy() { - if (this.visible || this.inTransition) { - this.removeScrollingEffect(); - } + this.clearProgressTimer(); }, methods: { - updatedCallback: function updatedCallback(visible) { - var mousePosition = this.mousePosition; - if (this.visible) { - // first show - if (!visible) { - this.openTime = Date.now(); - // this.lastOutSideFocusNode = document.activeElement - this.addScrollingEffect(); - // this.$refs.wrap.focus() - this.tryFocus(); - var dialogNode = this.$refs.dialog.$el; - if (mousePosition) { - var elOffset = offset(dialogNode); - setTransformOrigin(dialogNode, mousePosition.x - elOffset.left + 'px ' + (mousePosition.y - elOffset.top) + 'px'); - } else { - setTransformOrigin(dialogNode, ''); - } - } - } else if (visible) { - this.inTransition = true; - if (this.mask && this.lastOutSideFocusNode) { - try { - this.lastOutSideFocusNode.focus(); - } catch (e) { - this.lastOutSideFocusNode = null; - } - this.lastOutSideFocusNode = null; - } + onStart: function onStart(file) { + var targetItem = (0, _utils.fileToObject)(file); + targetItem.status = 'uploading'; + var nextFileList = this.sFileList.concat(); + var fileIndex = (0, _findIndex2['default'])(nextFileList, function (_ref) { + var uid = _ref.uid; + return uid === targetItem.uid; + }); + if (fileIndex === -1) { + nextFileList.push(targetItem); + } else { + nextFileList[fileIndex] = targetItem; } - }, - tryFocus: function tryFocus() { - if (!(0, _contains2['default'])(this.$refs.wrap, document.activeElement)) { - this.lastOutSideFocusNode = document.activeElement; - this.$refs.sentinelStart.focus(); + this.onChange({ + file: targetItem, + fileList: nextFileList + }); + // fix ie progress + if (!window.FormData) { + this.autoUpdateProgress(0, targetItem); } }, - onAnimateLeave: function onAnimateLeave() { - var afterClose = this.afterClose, - destroyOnClose = this.destroyOnClose; - // need demo? - // https://github.com/react-component/dialog/pull/28 - - if (this.$refs.wrap) { - this.$refs.wrap.style.display = 'none'; - } - if (destroyOnClose) { - this.destroyPopup = true; + autoUpdateProgress: function autoUpdateProgress(_, file) { + var _this = this; + + var getPercent = (0, _utils.genPercentAdd)(); + var curPercent = 0; + this.clearProgressTimer(); + this.progressTimer = setInterval(function () { + curPercent = getPercent(curPercent); + _this.onProgress({ + percent: curPercent * 100 + }, file); + }, 200); + }, + onSuccess: function onSuccess(response, file) { + this.clearProgressTimer(); + try { + if (typeof response === 'string') { + response = JSON.parse(response); + } + } catch (e) { + /* do nothing */ } - this.inTransition = false; - this.removeScrollingEffect(); - if (afterClose) { - afterClose(); + var fileList = this.sFileList; + var targetItem = (0, _utils.getFileItem)(file, fileList); + // removed + if (!targetItem) { + return; } + targetItem.status = 'done'; + targetItem.response = response; + this.onChange({ + file: (0, _extends3['default'])({}, targetItem), + fileList: fileList + }); }, - onMaskClick: function onMaskClick(e) { - // android trigger click on open (fastclick??) - if (Date.now() - this.openTime < 300) { + onProgress: function onProgress(e, file) { + var fileList = this.sFileList; + var targetItem = (0, _utils.getFileItem)(file, fileList); + // removed + if (!targetItem) { return; } - if (e.target === e.currentTarget) { - this.close(e); - } + targetItem.percent = e.percent; + this.onChange({ + event: e, + file: (0, _extends3['default'])({}, targetItem), + fileList: this.sFileList + }); }, - onKeydown: function onKeydown(e) { - var props = this.$props; - if (props.keyboard && e.keyCode === _KeyCode2['default'].ESC) { - e.stopPropagation(); - this.close(e); + onError: function onError(error, response, file) { + this.clearProgressTimer(); + var fileList = this.sFileList; + var targetItem = (0, _utils.getFileItem)(file, fileList); + // removed + if (!targetItem) { return; } - // keep focus inside dialog - if (props.visible) { - if (e.keyCode === _KeyCode2['default'].TAB) { - var activeElement = document.activeElement; - var sentinelStart = this.$refs.sentinelStart; - if (e.shiftKey) { - if (activeElement === sentinelStart) { - this.$refs.sentinelEnd.focus(); - } - } else if (activeElement === this.$refs.sentinelEnd) { - sentinelStart.focus(); - } - } - } + targetItem.error = error; + targetItem.response = response; + targetItem.status = 'error'; + this.onChange({ + file: (0, _extends3['default'])({}, targetItem), + fileList: fileList + }); }, - getDialogElement: function getDialogElement() { - var h = this.$createElement; - var closable = this.closable, - prefixCls = this.prefixCls, - width = this.width, - height = this.height, - title = this.title, - tempFooter = this.footer, - bodyStyle = this.bodyStyle, - visible = this.visible, - bodyProps = this.bodyProps; - - var dest = {}; - if (width !== undefined) { - dest.width = typeof width === 'number' ? width + 'px' : width; - } - if (height !== undefined) { - dest.height = typeof height === 'number' ? height + 'px' : height; - } - - var footer = void 0; - if (tempFooter) { - footer = h( - 'div', - { key: 'footer', 'class': prefixCls + '-footer', ref: 'footer' }, - [tempFooter] - ); - } - - var header = void 0; - if (title) { - header = h( - 'div', - { key: 'header', 'class': prefixCls + '-header', ref: 'header' }, - [h( - 'div', - { 'class': prefixCls + '-title', attrs: { id: this.titleId } - }, - [title] - )] - ); - } + onReject: function onReject(fileList) { + this.$emit('reject', fileList); + }, + handleRemove: function handleRemove(file) { + var _this2 = this; - var closer = void 0; - if (closable) { - var closeIcon = (0, _propsUtil.getComponentFromProp)(this, 'closeIcon'); - closer = h( - 'button', - { - key: 'close', - on: { - 'click': this.close || noop - }, - attrs: { - 'aria-label': 'Close' - }, - 'class': prefixCls + '-close' - }, - [closeIcon || h('span', { 'class': prefixCls + '-close-x' })] - ); - } + var remove = this.remove; + var status = file.status; - var style = (0, _extends4['default'])({}, this.dialogStyle, dest); - var sentinelStyle = { width: 0, height: 0, overflow: 'hidden' }; - var cls = (0, _extends4['default'])((0, _defineProperty3['default'])({}, prefixCls, true), this.dialogClass); - var transitionName = this.getTransitionName(); - var dialogElement = h( - _LazyRenderBox2['default'], - { - directives: [{ - name: 'show', - value: visible - }], + file.status = 'removed'; // eslint-disable-line - key: 'dialog-element', - attrs: { role: 'document' - }, - ref: 'dialog', - style: style, - 'class': cls - }, - [h( - 'div', - { - attrs: { tabIndex: 0 }, - ref: 'sentinelStart', style: sentinelStyle }, - ['sentinelStart'] - ), h( - 'div', - { 'class': prefixCls + '-content' }, - [closer, header, h( - 'div', - (0, _babelHelperVueJsxMergeProps2['default'])([{ key: 'body', 'class': prefixCls + '-body', style: bodyStyle, ref: 'body' }, bodyProps]), - [this.$slots['default']] - ), footer] - ), h( - 'div', - { - attrs: { tabIndex: 0 }, - ref: 'sentinelEnd', style: sentinelStyle }, - ['sentinelEnd'] - )] - ); - var dialogTransitionProps = (0, _getTransitionProps2['default'])(transitionName, { - afterLeave: this.onAnimateLeave - }); - return h( - 'transition', - (0, _babelHelperVueJsxMergeProps2['default'])([{ key: 'dialog' }, dialogTransitionProps]), - [visible || !this.destroyPopup ? dialogElement : null] - ); - }, - getZIndexStyle: function getZIndexStyle() { - var style = {}; - var props = this.$props; - if (props.zIndex !== undefined) { - style.zIndex = props.zIndex; - } - return style; - }, - getWrapStyle: function getWrapStyle() { - return (0, _extends4['default'])({}, this.getZIndexStyle(), this.wrapStyle); - }, - getMaskStyle: function getMaskStyle() { - return (0, _extends4['default'])({}, this.getZIndexStyle(), this.maskStyle); - }, - getMaskElement: function getMaskElement() { - var h = this.$createElement; + Promise.resolve(typeof remove === 'function' ? remove(file) : remove).then(function (ret) { + // Prevent removing file + if (ret === false) { + file.status = status; + return; + } - var props = this.$props; - var maskElement = void 0; - if (props.mask) { - var maskTransition = this.getMaskTransitionName(); - maskElement = h(_LazyRenderBox2['default'], (0, _babelHelperVueJsxMergeProps2['default'])([{ - directives: [{ - name: 'show', - value: props.visible - }], - - style: this.getMaskStyle(), - key: 'mask', - 'class': props.prefixCls + '-mask' - }, props.maskProps])); - if (maskTransition) { - var maskTransitionProps = (0, _getTransitionProps2['default'])(maskTransition); - maskElement = h( - 'transition', - (0, _babelHelperVueJsxMergeProps2['default'])([{ key: 'mask' }, maskTransitionProps]), - [maskElement] - ); + var removedFileList = (0, _utils.removeFileItem)(file, _this2.sFileList); + if (removedFileList) { + _this2.onChange({ + file: file, + fileList: removedFileList + }); } - } - return maskElement; - }, - getMaskTransitionName: function getMaskTransitionName() { - var props = this.$props; - var transitionName = props.maskTransitionName; - var animation = props.maskAnimation; - if (!transitionName && animation) { - transitionName = props.prefixCls + '-' + animation; - } - return transitionName; + }); }, - getTransitionName: function getTransitionName() { - var props = this.$props; - var transitionName = props.transitionName; - var animation = props.animation; - if (!transitionName && animation) { - transitionName = props.prefixCls + '-' + animation; + handleManualRemove: function handleManualRemove(file) { + if (this.$refs.uploadRef) { + this.$refs.uploadRef.abort(file); } - return transitionName; + this.handleRemove(file); }, - setScrollbar: function setScrollbar() { - if (this.bodyIsOverflowing && this.scrollbarWidth !== undefined) { - document.body.style.paddingRight = this.scrollbarWidth + 'px'; + onChange: function onChange(info) { + if (!(0, _propsUtil.hasProp)(this, 'fileList')) { + this.setState({ sFileList: info.fileList }); } + this.$emit('change', info); }, - addScrollingEffect: function addScrollingEffect() { - openCount++; - if (openCount !== 1) { - return; - } - this.checkScrollbar(); - this.setScrollbar(); - document.body.style.overflow = 'hidden'; - // this.adjustDialog(); + onFileDrop: function onFileDrop(e) { + this.setState({ + dragState: e.type + }); }, - removeScrollingEffect: function removeScrollingEffect() { - openCount--; - if (openCount !== 0) { - return; + reBeforeUpload: function reBeforeUpload(file, fileList) { + if (!this.beforeUpload) { + return true; } - document.body.style.overflow = ''; - this.resetScrollbar(); - // this.resetAdjustments(); - }, - close: function close(e) { - this.__emit('close', e); - }, - checkScrollbar: function checkScrollbar() { - var fullWindowWidth = window.innerWidth; - if (!fullWindowWidth) { - // workaround for missing window.innerWidth in IE8 - var documentElementRect = document.documentElement.getBoundingClientRect(); - fullWindowWidth = documentElementRect.right - Math.abs(documentElementRect.left); + var result = this.beforeUpload(file, fileList); + if (result === false) { + this.onChange({ + file: file, + fileList: (0, _uniqBy2['default'])(this.sFileList.concat(fileList.map(_utils.fileToObject)), function (item) { + return item.uid; + }) + }); + return false; } - this.bodyIsOverflowing = document.body.clientWidth < fullWindowWidth; - if (this.bodyIsOverflowing) { - this.scrollbarWidth = (0, _getScrollBarSize2['default'])(); + if (result && result.then) { + return result; } + return true; }, - resetScrollbar: function resetScrollbar() { - document.body.style.paddingRight = ''; - }, - adjustDialog: function adjustDialog() { - if (this.$refs.wrap && this.scrollbarWidth !== undefined) { - var modalIsOverflowing = this.$refs.wrap.scrollHeight > document.documentElement.clientHeight; - this.$refs.wrap.style.paddingLeft = (!this.bodyIsOverflowing && modalIsOverflowing ? this.scrollbarWidth : '') + 'px'; - this.$refs.wrap.style.paddingRight = (this.bodyIsOverflowing && !modalIsOverflowing ? this.scrollbarWidth : '') + 'px'; - } + clearProgressTimer: function clearProgressTimer() { + clearInterval(this.progressTimer); }, - resetAdjustments: function resetAdjustments() { - if (this.$refs.wrap) { - this.$refs.wrap.style.paddingLeft = this.$refs.wrap.style.paddingLeft = ''; + renderUploadList: function renderUploadList(locale) { + var h = this.$createElement; + + var _getOptionProps = (0, _propsUtil.getOptionProps)(this), + _getOptionProps$showU = _getOptionProps.showUploadList, + showUploadList = _getOptionProps$showU === undefined ? {} : _getOptionProps$showU, + listType = _getOptionProps.listType; + + var showRemoveIcon = showUploadList.showRemoveIcon, + showPreviewIcon = showUploadList.showPreviewIcon; + + var uploadListProps = { + props: { + listType: listType, + items: this.sFileList, + showRemoveIcon: showRemoveIcon, + showPreviewIcon: showPreviewIcon, + locale: (0, _extends3['default'])({}, locale, this.$props.locale) + }, + on: { + remove: this.handleManualRemove + } + }; + if (this.$listeners.preview) { + uploadListProps.on.preview = this.$listeners.preview; } + return h(_UploadList2['default'], uploadListProps); } }, render: function render() { + var _classNames2; + var h = arguments[0]; - var prefixCls = this.prefixCls, - maskClosable = this.maskClosable, - visible = this.visible, - wrapClassName = this.wrapClassName, - title = this.title, - wrapProps = this.wrapProps; - - var style = this.getWrapStyle(); - // clear hide display - // and only set display after async anim, not here for hide - if (visible) { - style.display = null; - } - return h('div', [this.getMaskElement(), h( - 'div', - (0, _babelHelperVueJsxMergeProps2['default'])([{ - attrs: { - tabIndex: -1, - role: 'dialog', - 'aria-labelledby': title ? this.titleId : null - }, - on: { - 'keydown': this.onKeydown, - 'click': maskClosable ? this.onMaskClick : noop + var _getOptionProps2 = (0, _propsUtil.getOptionProps)(this), + customizePrefixCls = _getOptionProps2.prefixCls, + showUploadList = _getOptionProps2.showUploadList, + listType = _getOptionProps2.listType, + type = _getOptionProps2.type, + disabled = _getOptionProps2.disabled; + + var getPrefixCls = this.configProvider.getPrefixCls; + var prefixCls = getPrefixCls('upload', customizePrefixCls); + + var vcUploadProps = { + props: (0, _extends3['default'])({}, this.$props, { + prefixCls: prefixCls, + beforeUpload: this.reBeforeUpload + }), + on: { + // ...this.$listeners, + start: this.onStart, + error: this.onError, + progress: this.onProgress, + success: this.onSuccess, + reject: this.onReject + }, + ref: 'uploadRef', + attrs: this.$attrs + }; + + var uploadList = showUploadList ? h(_LocaleReceiver2['default'], { + attrs: { + componentName: 'Upload', + defaultLocale: _default3['default'].Upload + }, + scopedSlots: { 'default': this.renderUploadList } + }) : null; + + var children = this.$slots['default']; + + if (type === 'drag') { + var _classNames; + + var dragCls = (0, _classnames2['default'])(prefixCls, (_classNames = {}, (0, _defineProperty3['default'])(_classNames, prefixCls + '-drag', true), (0, _defineProperty3['default'])(_classNames, prefixCls + '-drag-uploading', this.sFileList.some(function (file) { + return file.status === 'uploading'; + })), (0, _defineProperty3['default'])(_classNames, prefixCls + '-drag-hover', this.dragState === 'dragover'), (0, _defineProperty3['default'])(_classNames, prefixCls + '-disabled', disabled), _classNames)); + return h('span', [h( + 'div', + { + 'class': dragCls, + on: { + 'drop': this.onFileDrop, + 'dragover': this.onFileDrop, + 'dragleave': this.onFileDrop + } }, + [h( + _vcUpload2['default'], + vcUploadProps, + [h( + 'div', + { 'class': prefixCls + '-drag-container' }, + [children] + )] + )] + ), uploadList]); + } + + var uploadButtonCls = (0, _classnames2['default'])(prefixCls, (_classNames2 = {}, (0, _defineProperty3['default'])(_classNames2, prefixCls + '-select', true), (0, _defineProperty3['default'])(_classNames2, prefixCls + '-select-' + listType, true), (0, _defineProperty3['default'])(_classNames2, prefixCls + '-disabled', disabled), _classNames2)); + + // Remove id to avoid open by label when trigger is hidden + // https://github.com/ant-design/ant-design/issues/14298 + if (!children) { + delete vcUploadProps.props.id; + } - 'class': prefixCls + '-wrap ' + (wrapClassName || ''), - ref: 'wrap', - style: style - }, wrapProps]), - [this.getDialogElement()] - )]); + var uploadButton = h( + 'div', + { 'class': uploadButtonCls, style: children ? undefined : { display: 'none' } }, + [h( + _vcUpload2['default'], + vcUploadProps, + [children] + )] + ); + + if (listType === 'picture-card') { + return h('span', [uploadList, uploadButton]); + } + return h('span', [uploadButton, uploadList]); } }; /***/ }), -/***/ "./node_modules/ant-design-vue/lib/vc-dialog/DialogWrap.js": -/*!*****************************************************************!*\ - !*** ./node_modules/ant-design-vue/lib/vc-dialog/DialogWrap.js ***! - \*****************************************************************/ +/***/ "./node_modules/ant-design-vue/lib/upload/UploadList.js": +/*!**************************************************************!*\ + !*** ./node_modules/ant-design-vue/lib/upload/UploadList.js ***! + \**************************************************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { @@ -1337,126 +882,415 @@ Object.defineProperty(exports, "__esModule", { value: true }); -var _objectWithoutProperties2 = __webpack_require__(/*! babel-runtime/helpers/objectWithoutProperties */ "./node_modules/babel-runtime/helpers/objectWithoutProperties.js"); +var _babelHelperVueJsxMergeProps = __webpack_require__(/*! babel-helper-vue-jsx-merge-props */ "./node_modules/babel-helper-vue-jsx-merge-props/index.js"); -var _objectWithoutProperties3 = _interopRequireDefault(_objectWithoutProperties2); +var _babelHelperVueJsxMergeProps2 = _interopRequireDefault(_babelHelperVueJsxMergeProps); + +var _defineProperty2 = __webpack_require__(/*! babel-runtime/helpers/defineProperty */ "./node_modules/babel-runtime/helpers/defineProperty.js"); + +var _defineProperty3 = _interopRequireDefault(_defineProperty2); var _extends2 = __webpack_require__(/*! babel-runtime/helpers/extends */ "./node_modules/babel-runtime/helpers/extends.js"); var _extends3 = _interopRequireDefault(_extends2); -var _Dialog = __webpack_require__(/*! ./Dialog */ "./node_modules/ant-design-vue/lib/vc-dialog/Dialog.js"); +var _BaseMixin = __webpack_require__(/*! ../_util/BaseMixin */ "./node_modules/ant-design-vue/lib/_util/BaseMixin.js"); + +var _BaseMixin2 = _interopRequireDefault(_BaseMixin); -var _Dialog2 = _interopRequireDefault(_Dialog); +var _propsUtil = __webpack_require__(/*! ../_util/props-util */ "./node_modules/ant-design-vue/lib/_util/props-util.js"); -var _ContainerRender = __webpack_require__(/*! ../_util/ContainerRender */ "./node_modules/ant-design-vue/lib/_util/ContainerRender.js"); +var _getTransitionProps = __webpack_require__(/*! ../_util/getTransitionProps */ "./node_modules/ant-design-vue/lib/_util/getTransitionProps.js"); -var _ContainerRender2 = _interopRequireDefault(_ContainerRender); +var _getTransitionProps2 = _interopRequireDefault(_getTransitionProps); -var _IDialogPropTypes = __webpack_require__(/*! ./IDialogPropTypes */ "./node_modules/ant-design-vue/lib/vc-dialog/IDialogPropTypes.js"); +var _configProvider = __webpack_require__(/*! ../config-provider */ "./node_modules/ant-design-vue/lib/config-provider/index.js"); -var _IDialogPropTypes2 = _interopRequireDefault(_IDialogPropTypes); +var _icon = __webpack_require__(/*! ../icon */ "./node_modules/ant-design-vue/lib/icon/index.js"); -var _propsUtil = __webpack_require__(/*! ../_util/props-util */ "./node_modules/ant-design-vue/lib/_util/props-util.js"); +var _icon2 = _interopRequireDefault(_icon); + +var _tooltip = __webpack_require__(/*! ../tooltip */ "./node_modules/ant-design-vue/lib/tooltip/index.js"); + +var _tooltip2 = _interopRequireDefault(_tooltip); + +var _progress = __webpack_require__(/*! ../progress */ "./node_modules/ant-design-vue/lib/progress/index.js"); + +var _progress2 = _interopRequireDefault(_progress); + +var _classnames = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js"); + +var _classnames2 = _interopRequireDefault(_classnames); + +var _interface = __webpack_require__(/*! ./interface */ "./node_modules/ant-design-vue/lib/upload/interface.js"); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } -var IDialogPropTypes = (0, _IDialogPropTypes2['default'])(); -var DialogWrap = { - props: (0, _extends3['default'])({}, IDialogPropTypes, { - visible: IDialogPropTypes.visible.def(false) +var imageTypes = ['image', 'webp', 'png', 'svg', 'gif', 'jpg', 'jpeg', 'bmp', 'dpg', 'ico']; +// https://developer.mozilla.org/en-US/docs/Web/API/FileReader/readAsDataURL +var previewFile = function previewFile(file, callback) { + if (file.type && !imageTypes.includes(file.type)) { + callback(''); + } + var reader = new window.FileReader(); + reader.onloadend = function () { + return callback(reader.result); + }; + reader.readAsDataURL(file); +}; + +var extname = function extname(url) { + if (!url) { + return ''; + } + var temp = url.split('/'); + var filename = temp[temp.length - 1]; + var filenameWithoutSuffix = filename.split(/#|\?/)[0]; + return (/\.[^./\\]*$/.exec(filenameWithoutSuffix) || [''])[0]; +}; + +var isImageUrl = function isImageUrl(file) { + if (imageTypes.includes(file.type)) { + return true; + } + var url = file.thumbUrl || file.url; + var extension = extname(url); + if (/^data:image\//.test(url) || /(webp|svg|png|gif|jpg|jpeg|bmp|dpg|ico)$/i.test(extension)) { + return true; + } else if (/^data:/.test(url)) { + // other file types of base64 + return false; + } else if (extension) { + // other file types which have extension + return false; + } + return true; +}; + +exports['default'] = { + name: 'AUploadList', + mixins: [_BaseMixin2['default']], + props: (0, _propsUtil.initDefaultProps)(_interface.UploadListProps, { + listType: 'text', // or picture + progressAttr: { + strokeWidth: 2, + showInfo: false + }, + showRemoveIcon: true, + showPreviewIcon: true }), - data: function data() { - this.renderComponent = function () {}; - this.removeContainer = function () {}; - return {}; + inject: { + configProvider: { 'default': function _default() { + return _configProvider.ConfigConsumerProps; + } } }, - beforeDestroy: function beforeDestroy() { - if (this.visible) { - this.renderComponent({ - afterClose: this.removeContainer, - visible: false, - on: { - close: function close() {} + updated: function updated() { + var _this = this; + + this.$nextTick(function () { + if (_this.listType !== 'picture' && _this.listType !== 'picture-card') { + return; + } + (_this.items || []).forEach(function (file) { + if (typeof document === 'undefined' || typeof window === 'undefined' || !window.FileReader || !window.File || !(file.originFileObj instanceof window.File) || file.thumbUrl !== undefined) { + return; } + /*eslint-disable */ + file.thumbUrl = ''; + /*eslint -enable */ + previewFile(file.originFileObj, function (previewDataUrl) { + /*eslint-disable */ + file.thumbUrl = previewDataUrl; + /*eslint -enable todo */ + // this.forceUpdate() + }); }); - } else { - this.removeContainer(); - } + }); }, methods: { - getComponent: function getComponent() { - var extra = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {}; - var h = this.$createElement; - var $attrs = this.$attrs, - $listeners = this.$listeners, - $props = this.$props, - $slots = this.$slots; - var on = extra.on, - otherProps = (0, _objectWithoutProperties3['default'])(extra, ['on']); - - var dialogProps = { - props: (0, _extends3['default'])({}, $props, { - dialogClass: (0, _propsUtil.getClass)(this), - dialogStyle: (0, _propsUtil.getStyle)(this) - }, otherProps), - attrs: $attrs, - ref: '_component', - key: 'dialog', - on: (0, _extends3['default'])({}, $listeners, on) - }; - return h( - _Dialog2['default'], - dialogProps, - [$slots['default']] - ); + handleClose: function handleClose(file) { + this.$emit('remove', file); }, - getContainer2: function getContainer2() { - var container = document.createElement('div'); - if (this.getContainer) { - this.getContainer().appendChild(container); - } else { - document.body.appendChild(container); + handlePreview: function handlePreview(file, e) { + var preview = this.$listeners.preview; + + if (!preview) { + return; } - return container; + e.preventDefault(); + return this.$emit('preview', file); } }, - render: function render() { - var _this = this; + var _this2 = this, + _classNames2; var h = arguments[0]; - var visible = this.visible; - return h(_ContainerRender2['default'], { - attrs: { - parent: this, - visible: visible, - autoDestroy: false, - getComponent: this.getComponent, - getContainer: this.getContainer2, - children: function children(_ref) { - var renderComponent = _ref.renderComponent, - removeContainer = _ref.removeContainer; - - _this.renderComponent = renderComponent; - _this.removeContainer = removeContainer; - return null; - } - } - }); + var _getOptionProps = (0, _propsUtil.getOptionProps)(this), + customizePrefixCls = _getOptionProps.prefixCls, + _getOptionProps$items = _getOptionProps.items, + items = _getOptionProps$items === undefined ? [] : _getOptionProps$items, + listType = _getOptionProps.listType, + showPreviewIcon = _getOptionProps.showPreviewIcon, + showRemoveIcon = _getOptionProps.showRemoveIcon, + locale = _getOptionProps.locale; + + var getPrefixCls = this.configProvider.getPrefixCls; + var prefixCls = getPrefixCls('upload', customizePrefixCls); + + var list = items.map(function (file) { + var _classNames; + + var progress = void 0; + var icon = h(_icon2['default'], { + attrs: { type: file.status === 'uploading' ? 'loading' : 'paper-clip' } + }); + + if (listType === 'picture' || listType === 'picture-card') { + if (listType === 'picture-card' && file.status === 'uploading') { + icon = h( + 'div', + { 'class': prefixCls + '-list-item-uploading-text' }, + [locale.uploading] + ); + } else if (!file.thumbUrl && !file.url) { + icon = h(_icon2['default'], { 'class': prefixCls + '-list-item-thumbnail', attrs: { type: 'picture', theme: 'twoTone' } + }); + } else { + var thumbnail = isImageUrl(file) ? h('img', { + attrs: { src: file.thumbUrl || file.url, alt: file.name } + }) : h(_icon2['default'], { + attrs: { type: 'file', theme: 'twoTone' }, + 'class': prefixCls + '-list-item-icon' }); + icon = h( + 'a', + { + 'class': prefixCls + '-list-item-thumbnail', + on: { + 'click': function click(e) { + return _this2.handlePreview(file, e); + } + }, + attrs: { + href: file.url || file.thumbUrl, + target: '_blank', + rel: 'noopener noreferrer' + } + }, + [thumbnail] + ); + } + } + + if (file.status === 'uploading') { + var progressProps = { + props: (0, _extends3['default'])({}, _this2.progressAttr, { + type: 'line', + percent: file.percent + }) + }; + // show loading icon if upload progress listener is disabled + var loadingProgress = 'percent' in file ? h(_progress2['default'], progressProps) : null; + + progress = h( + 'div', + { 'class': prefixCls + '-list-item-progress', key: 'progress' }, + [loadingProgress] + ); + } + var infoUploadingClass = (0, _classnames2['default'])((_classNames = {}, (0, _defineProperty3['default'])(_classNames, prefixCls + '-list-item', true), (0, _defineProperty3['default'])(_classNames, prefixCls + '-list-item-' + file.status, true), _classNames)); + var linkProps = typeof file.linkProps === 'string' ? JSON.parse(file.linkProps) : file.linkProps; + var preview = file.url ? h( + 'a', + (0, _babelHelperVueJsxMergeProps2['default'])([{ + attrs: { + target: '_blank', + rel: 'noopener noreferrer', + + title: file.name + }, + 'class': prefixCls + '-list-item-name' }, linkProps, { + attrs: { + href: file.url + }, + on: { + 'click': function click(e) { + return _this2.handlePreview(file, e); + } + } + }]), + [file.name] + ) : h( + 'span', + { + 'class': prefixCls + '-list-item-name', + on: { + 'click': function click(e) { + return _this2.handlePreview(file, e); + } + }, + attrs: { + title: file.name + } + }, + [file.name] + ); + var style = file.url || file.thumbUrl ? undefined : { + pointerEvents: 'none', + opacity: 0.5 + }; + var previewIcon = showPreviewIcon ? h( + 'a', + { + attrs: { + href: file.url || file.thumbUrl, + target: '_blank', + rel: 'noopener noreferrer', + + title: locale.previewFile + }, + style: style, + on: { + 'click': function click(e) { + return _this2.handlePreview(file, e); + } + } + }, + [h(_icon2['default'], { + attrs: { type: 'eye-o' } + })] + ) : null; + var iconProps = { + props: { + type: 'delete', + title: locale.removeFile + }, + on: { + click: function click() { + _this2.handleClose(file); + } + } + }; + var iconProps1 = (0, _extends3['default'])({}, iconProps, { props: { type: 'close' } }); + var removeIcon = showRemoveIcon ? h(_icon2['default'], iconProps) : null; + var removeIconClose = showRemoveIcon ? h(_icon2['default'], iconProps1) : null; + var actions = listType === 'picture-card' && file.status !== 'uploading' ? h( + 'span', + { 'class': prefixCls + '-list-item-actions' }, + [previewIcon, removeIcon] + ) : removeIconClose; + var message = void 0; + if (file.response && typeof file.response === 'string') { + message = file.response; + } else { + message = file.error && file.error.statusText || locale.uploadError; + } + var iconAndPreview = file.status === 'error' ? h( + _tooltip2['default'], + { + attrs: { title: message } + }, + [icon, preview] + ) : h('span', [icon, preview]); + var transitionProps = (0, _getTransitionProps2['default'])('fade'); + return h( + 'div', + { 'class': infoUploadingClass, key: file.uid }, + [h( + 'div', + { 'class': prefixCls + '-list-item-info' }, + [iconAndPreview] + ), actions, h( + 'transition', + transitionProps, + [progress] + )] + ); + }); + var listClassNames = (0, _classnames2['default'])((_classNames2 = {}, (0, _defineProperty3['default'])(_classNames2, prefixCls + '-list', true), (0, _defineProperty3['default'])(_classNames2, prefixCls + '-list-' + listType, true), _classNames2)); + var animationDirection = listType === 'picture-card' ? 'animate-inline' : 'animate'; + var transitionGroupProps = (0, _getTransitionProps2['default'])(prefixCls + '-' + animationDirection); + return h( + 'transition-group', + (0, _babelHelperVueJsxMergeProps2['default'])([transitionGroupProps, { + attrs: { tag: 'div' }, + 'class': listClassNames }]), + [list] + ); + } +}; + +/***/ }), + +/***/ "./node_modules/ant-design-vue/lib/upload/index.js": +/*!*********************************************************!*\ + !*** ./node_modules/ant-design-vue/lib/upload/index.js ***! + \*********************************************************/ +/*! no static exports found */ +/***/ (function(module, exports, __webpack_require__) { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.UploadChangeParam = exports.UploadListProps = exports.UploadProps = undefined; + +var _interface = __webpack_require__(/*! ./interface */ "./node_modules/ant-design-vue/lib/upload/interface.js"); + +Object.defineProperty(exports, 'UploadProps', { + enumerable: true, + get: function get() { + return _interface.UploadProps; + } +}); +Object.defineProperty(exports, 'UploadListProps', { + enumerable: true, + get: function get() { + return _interface.UploadListProps; + } +}); +Object.defineProperty(exports, 'UploadChangeParam', { + enumerable: true, + get: function get() { + return _interface.UploadChangeParam; } +}); + +var _Upload = __webpack_require__(/*! ./Upload */ "./node_modules/ant-design-vue/lib/upload/Upload.js"); + +var _Upload2 = _interopRequireDefault(_Upload); + +var _Dragger = __webpack_require__(/*! ./Dragger */ "./node_modules/ant-design-vue/lib/upload/Dragger.js"); + +var _Dragger2 = _interopRequireDefault(_Dragger); + +var _base = __webpack_require__(/*! ../base */ "./node_modules/ant-design-vue/lib/base/index.js"); + +var _base2 = _interopRequireDefault(_base); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } + +_Upload2['default'].Dragger = _Dragger2['default']; + +/* istanbul ignore next */ +_Upload2['default'].install = function (Vue) { + Vue.use(_base2['default']); + Vue.component(_Upload2['default'].name, _Upload2['default']); + Vue.component(_Dragger2['default'].name, _Dragger2['default']); }; -exports['default'] = DialogWrap; +exports['default'] = _Upload2['default']; /***/ }), -/***/ "./node_modules/ant-design-vue/lib/vc-dialog/IDialogPropTypes.js": -/*!***********************************************************************!*\ - !*** ./node_modules/ant-design-vue/lib/vc-dialog/IDialogPropTypes.js ***! - \***********************************************************************/ +/***/ "./node_modules/ant-design-vue/lib/upload/interface.js": +/*!*************************************************************!*\ + !*** ./node_modules/ant-design-vue/lib/upload/interface.js ***! + \*************************************************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { @@ -1466,6 +1300,11 @@ exports['default'] = DialogWrap; Object.defineProperty(exports, "__esModule", { value: true }); +exports.UploadListProps = exports.UploadState = exports.UploadProps = exports.UploadLocale = exports.ShowUploadListInterface = exports.UploadChangeParam = exports.UploadFileStatus = undefined; + +var _typeof2 = __webpack_require__(/*! babel-runtime/helpers/typeof */ "./node_modules/babel-runtime/helpers/typeof.js"); + +var _typeof3 = _interopRequireDefault(_typeof2); var _vueTypes = __webpack_require__(/*! ../_util/vue-types */ "./node_modules/ant-design-vue/lib/_util/vue-types/index.js"); @@ -1473,52 +1312,204 @@ var _vueTypes2 = _interopRequireDefault(_vueTypes); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } -function IDialogPropTypes() { - return { - keyboard: _vueTypes2['default'].bool, - mask: _vueTypes2['default'].bool, - afterClose: _vueTypes2['default'].func, - // onClose: PropTypes. (e: SyntheticEvent) =>any, - closable: _vueTypes2['default'].bool, - maskClosable: _vueTypes2['default'].bool, - visible: _vueTypes2['default'].bool, - destroyOnClose: _vueTypes2['default'].bool, - mousePosition: _vueTypes2['default'].shape({ - x: _vueTypes2['default'].number, - y: _vueTypes2['default'].number - }).loose, - title: _vueTypes2['default'].any, - footer: _vueTypes2['default'].any, - transitionName: _vueTypes2['default'].string, - maskTransitionName: _vueTypes2['default'].string, - animation: _vueTypes2['default'].any, - maskAnimation: _vueTypes2['default'].any, - wrapStyle: _vueTypes2['default'].object, - bodyStyle: _vueTypes2['default'].object, - maskStyle: _vueTypes2['default'].object, - prefixCls: _vueTypes2['default'].string, - wrapClassName: _vueTypes2['default'].string, - width: _vueTypes2['default'].oneOfType([_vueTypes2['default'].string, _vueTypes2['default'].number]), - height: _vueTypes2['default'].oneOfType([_vueTypes2['default'].string, _vueTypes2['default'].number]), - zIndex: _vueTypes2['default'].number, - bodyProps: _vueTypes2['default'].any, - maskProps: _vueTypes2['default'].any, - wrapProps: _vueTypes2['default'].any, - getContainer: _vueTypes2['default'].func, - dialogStyle: _vueTypes2['default'].object.def({}), - dialogClass: _vueTypes2['default'].object.def({}), - closeIcon: _vueTypes2['default'].any +var UploadFileStatus = exports.UploadFileStatus = _vueTypes2['default'].oneOf(['error', 'success', 'done', 'uploading', 'removed']); + +// export const HttpRequestHeader { +// [key: string]: string; +// } + +// export const UploadFile = PropsTypes.shape({ +// uid: PropsTypes.oneOfType([ +// PropsTypes.string, +// PropsTypes.number, +// ]), +// size: PropsTypes.number, +// name: PropsTypes.string, +// filename: PropsTypes.string, +// lastModified: PropsTypes.number, +// lastModifiedDate: PropsTypes.any, +// url: PropsTypes.string, +// status: UploadFileStatus, +// percent: PropsTypes.number, +// thumbUrl: PropsTypes.string, +// originFileObj: PropsTypes.any, +// response: PropsTypes.any, +// error: PropsTypes.any, +// linkProps: PropsTypes.any, +// type: PropsTypes.string, +// }).loose + +function UploadFile(_ref) { + var uid = _ref.uid, + name = _ref.name; + + if (!uid && uid !== 0) return false; + if (!['string', 'number'].includes(typeof uid === 'undefined' ? 'undefined' : (0, _typeof3['default'])(uid))) return false; + if (name === '' || typeof name !== 'string') return false; + return true; +} + +var UploadChangeParam = exports.UploadChangeParam = { + file: _vueTypes2['default'].custom(UploadFile), + fileList: _vueTypes2['default'].arrayOf(_vueTypes2['default'].custom(UploadFile)), + event: _vueTypes2['default'].object +}; + +var ShowUploadListInterface = exports.ShowUploadListInterface = _vueTypes2['default'].shape({ + showRemoveIcon: _vueTypes2['default'].bool, + showPreviewIcon: _vueTypes2['default'].bool +}).loose; + +var UploadLocale = exports.UploadLocale = _vueTypes2['default'].shape({ + uploading: _vueTypes2['default'].string, + removeFile: _vueTypes2['default'].string, + uploadError: _vueTypes2['default'].string, + previewFile: _vueTypes2['default'].string +}).loose; + +var UploadProps = exports.UploadProps = { + type: _vueTypes2['default'].oneOf(['drag', 'select']), + name: _vueTypes2['default'].string, + defaultFileList: _vueTypes2['default'].arrayOf(_vueTypes2['default'].custom(UploadFile)), + fileList: _vueTypes2['default'].arrayOf(_vueTypes2['default'].custom(UploadFile)), + action: _vueTypes2['default'].oneOfType([_vueTypes2['default'].string, _vueTypes2['default'].func]), + directory: _vueTypes2['default'].bool, + data: _vueTypes2['default'].oneOfType([_vueTypes2['default'].object, _vueTypes2['default'].func]), + headers: _vueTypes2['default'].object, + showUploadList: _vueTypes2['default'].oneOfType([_vueTypes2['default'].bool, ShowUploadListInterface]), + multiple: _vueTypes2['default'].bool, + accept: _vueTypes2['default'].string, + beforeUpload: _vueTypes2['default'].func, + // onChange: PropsTypes.func, + listType: _vueTypes2['default'].oneOf(['text', 'picture', 'picture-card']), + // className: PropsTypes.string, + // onPreview: PropsTypes.func, + remove: _vueTypes2['default'].func, + supportServerRender: _vueTypes2['default'].bool, + // style: PropsTypes.object, + disabled: _vueTypes2['default'].bool, + prefixCls: _vueTypes2['default'].string, + customRequest: _vueTypes2['default'].func, + withCredentials: _vueTypes2['default'].bool, + openFileDialogOnClick: _vueTypes2['default'].bool, + locale: UploadLocale, + height: _vueTypes2['default'].number, + id: _vueTypes2['default'].string +}; + +var UploadState = exports.UploadState = { + fileList: _vueTypes2['default'].arrayOf(_vueTypes2['default'].custom(UploadFile)), + dragState: _vueTypes2['default'].string +}; + +var UploadListProps = exports.UploadListProps = { + listType: _vueTypes2['default'].oneOf(['text', 'picture', 'picture-card']), + // onPreview: PropsTypes.func, + // onRemove: PropsTypes.func, + // items: PropsTypes.arrayOf(UploadFile), + items: _vueTypes2['default'].arrayOf(_vueTypes2['default'].custom(UploadFile)), + // items: PropsTypes.any, + progressAttr: _vueTypes2['default'].object, + prefixCls: _vueTypes2['default'].string, + showRemoveIcon: _vueTypes2['default'].bool, + showPreviewIcon: _vueTypes2['default'].bool, + locale: UploadLocale +}; + +/***/ }), + +/***/ "./node_modules/ant-design-vue/lib/upload/utils.js": +/*!*********************************************************!*\ + !*** ./node_modules/ant-design-vue/lib/upload/utils.js ***! + \*********************************************************/ +/*! no static exports found */ +/***/ (function(module, exports, __webpack_require__) { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", { + value: true +}); + +var _extends2 = __webpack_require__(/*! babel-runtime/helpers/extends */ "./node_modules/babel-runtime/helpers/extends.js"); + +var _extends3 = _interopRequireDefault(_extends2); + +exports.T = T; +exports.fileToObject = fileToObject; +exports.genPercentAdd = genPercentAdd; +exports.getFileItem = getFileItem; +exports.removeFileItem = removeFileItem; + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } + +function T() { + return true; +} + +// Fix IE file.status problem +// via coping a new Object +function fileToObject(file) { + return (0, _extends3['default'])({}, file, { + lastModified: file.lastModified, + lastModifiedDate: file.lastModifiedDate, + name: file.name, + size: file.size, + type: file.type, + uid: file.uid, + percent: 0, + originFileObj: file + }); +} + +/** + * 生成Progress percent: 0.1 -> 0.98 + * - for ie + */ +function genPercentAdd() { + var k = 0.1; + var i = 0.01; + var end = 0.98; + return function (s) { + var start = s; + if (start >= end) { + return start; + } + + start += k; + k = k - i; + if (k < 0.001) { + k = 0.001; + } + return start; }; } -exports['default'] = IDialogPropTypes; +function getFileItem(file, fileList) { + var matchKey = file.uid !== undefined ? 'uid' : 'name'; + return fileList.filter(function (item) { + return item[matchKey] === file[matchKey]; + })[0]; +} + +function removeFileItem(file, fileList) { + var matchKey = file.uid !== undefined ? 'uid' : 'name'; + var removed = fileList.filter(function (item) { + return item[matchKey] !== file[matchKey]; + }); + if (removed.length === fileList.length) { + return null; + } + return removed; +} /***/ }), -/***/ "./node_modules/ant-design-vue/lib/vc-dialog/LazyRenderBox.js": -/*!********************************************************************!*\ - !*** ./node_modules/ant-design-vue/lib/vc-dialog/LazyRenderBox.js ***! - \********************************************************************/ +/***/ "./node_modules/ant-design-vue/lib/vc-progress/index.js": +/*!**************************************************************!*\ + !*** ./node_modules/ant-design-vue/lib/vc-progress/index.js ***! + \**************************************************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { @@ -1528,33 +1519,223 @@ exports['default'] = IDialogPropTypes; Object.defineProperty(exports, "__esModule", { value: true }); +exports.Circle = exports.Line = undefined; -var _vueTypes = __webpack_require__(/*! ../_util/vue-types */ "./node_modules/ant-design-vue/lib/_util/vue-types/index.js"); +var _src = __webpack_require__(/*! ./src/ */ "./node_modules/ant-design-vue/lib/vc-progress/src/index.js"); + +var _src2 = _interopRequireDefault(_src); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } + +exports.Line = _src.Line; +exports.Circle = _src.Circle; // based on rc-progress 2.3.0 + +exports['default'] = _src2['default']; + +/***/ }), + +/***/ "./node_modules/ant-design-vue/lib/vc-progress/src/Circle.js": +/*!*******************************************************************!*\ + !*** ./node_modules/ant-design-vue/lib/vc-progress/src/Circle.js ***! + \*******************************************************************/ +/*! no static exports found */ +/***/ (function(module, exports, __webpack_require__) { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", { + value: true +}); + +var _babelHelperVueJsxMergeProps = __webpack_require__(/*! babel-helper-vue-jsx-merge-props */ "./node_modules/babel-helper-vue-jsx-merge-props/index.js"); + +var _babelHelperVueJsxMergeProps2 = _interopRequireDefault(_babelHelperVueJsxMergeProps); + +var _objectWithoutProperties2 = __webpack_require__(/*! babel-runtime/helpers/objectWithoutProperties */ "./node_modules/babel-runtime/helpers/objectWithoutProperties.js"); + +var _objectWithoutProperties3 = _interopRequireDefault(_objectWithoutProperties2); + +var _extends2 = __webpack_require__(/*! babel-runtime/helpers/extends */ "./node_modules/babel-runtime/helpers/extends.js"); + +var _extends3 = _interopRequireDefault(_extends2); + +var _vue = __webpack_require__(/*! vue */ "./node_modules/vue/dist/vue.common.js"); + +var _vue2 = _interopRequireDefault(_vue); + +var _vueRef = __webpack_require__(/*! vue-ref */ "./node_modules/vue-ref/index.js"); + +var _vueRef2 = _interopRequireDefault(_vueRef); + +var _vueTypes = __webpack_require__(/*! ../../_util/vue-types */ "./node_modules/ant-design-vue/lib/_util/vue-types/index.js"); var _vueTypes2 = _interopRequireDefault(_vueTypes); +var _propsUtil = __webpack_require__(/*! ../../_util/props-util */ "./node_modules/ant-design-vue/lib/_util/props-util.js"); + +var _enhancer = __webpack_require__(/*! ./enhancer */ "./node_modules/ant-design-vue/lib/vc-progress/src/enhancer.js"); + +var _enhancer2 = _interopRequireDefault(_enhancer); + +var _types = __webpack_require__(/*! ./types */ "./node_modules/ant-design-vue/lib/vc-progress/src/types.js"); + function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } -var ILazyRenderBoxPropTypes = { - visible: _vueTypes2['default'].bool, - hiddenClassName: _vueTypes2['default'].string -}; +var circlePropTypes = (0, _extends3['default'])({}, _types.propTypes, { + gapPosition: _vueTypes2['default'].oneOf(['top', 'bottom', 'left', 'right']), + gapDegree: _vueTypes2['default'].oneOfType([_vueTypes2['default'].number, _vueTypes2['default'].string, _vueTypes2['default'].bool]) +}); + +var circleDefaultProps = (0, _extends3['default'])({}, _types.defaultProps, { + gapPosition: 'top' +}); + +_vue2['default'].use(_vueRef2['default'], { name: 'ant-ref' }); + +var Circle = { + props: (0, _propsUtil.initDefaultProps)(circlePropTypes, circleDefaultProps), + created: function created() { + this.paths = {}; + }, + + methods: { + getPathStyles: function getPathStyles(offset, percent, strokeColor, strokeWidth) { + var gapDegree = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : 0; + var gapPosition = arguments[5]; + + var radius = 50 - strokeWidth / 2; + var beginPositionX = 0; + var beginPositionY = -radius; + var endPositionX = 0; + var endPositionY = -2 * radius; + switch (gapPosition) { + case 'left': + beginPositionX = -radius; + beginPositionY = 0; + endPositionX = 2 * radius; + endPositionY = 0; + break; + case 'right': + beginPositionX = radius; + beginPositionY = 0; + endPositionX = -2 * radius; + endPositionY = 0; + break; + case 'bottom': + beginPositionY = radius; + endPositionY = 2 * radius; + break; + default: + } + var pathString = 'M 50,50 m ' + beginPositionX + ',' + beginPositionY + '\n a ' + radius + ',' + radius + ' 0 1 1 ' + endPositionX + ',' + -endPositionY + '\n a ' + radius + ',' + radius + ' 0 1 1 ' + -endPositionX + ',' + endPositionY; + var len = Math.PI * 2 * radius; + var pathStyle = { + stroke: strokeColor, + strokeDasharray: percent / 100 * (len - gapDegree) + 'px ' + len + 'px', + strokeDashoffset: '-' + (gapDegree / 2 + offset / 100 * (len - gapDegree)) + 'px', + transition: 'stroke-dashoffset .3s ease 0s, stroke-dasharray .3s ease 0s, stroke .3s, stroke-width .06s ease .3s' // eslint-disable-line + }; + return { + pathString: pathString, + pathStyle: pathStyle + }; + }, + getStokeList: function getStokeList() { + var _this = this; + + var h = this.$createElement; + var _$props = this.$props, + prefixCls = _$props.prefixCls, + percent = _$props.percent, + strokeColor = _$props.strokeColor, + strokeWidth = _$props.strokeWidth, + strokeLinecap = _$props.strokeLinecap, + gapDegree = _$props.gapDegree, + gapPosition = _$props.gapPosition; + + var percentList = Array.isArray(percent) ? percent : [percent]; + var strokeColorList = Array.isArray(strokeColor) ? strokeColor : [strokeColor]; + + var stackPtg = 0; + return percentList.map(function (ptg, index) { + var color = strokeColorList[index] || strokeColorList[strokeColorList.length - 1]; + + var _getPathStyles = _this.getPathStyles(stackPtg, ptg, color, strokeWidth, gapDegree, gapPosition), + pathString = _getPathStyles.pathString, + pathStyle = _getPathStyles.pathStyle; + + stackPtg += ptg; + + var pathProps = { + key: index, + attrs: { + d: pathString, + 'stroke-linecap': strokeLinecap, + 'stroke-width': ptg === 0 ? 0 : strokeWidth, + 'fill-opacity': '0' + }, + 'class': prefixCls + '-circle-path', + style: pathStyle, + directives: [{ + name: 'ant-ref', + value: function value(c) { + _this.paths[index] = c; + } + }] + }; + return h('path', pathProps); + }); + } + }, -exports['default'] = { - props: ILazyRenderBoxPropTypes, render: function render() { var h = arguments[0]; + var _$props2 = this.$props, + prefixCls = _$props2.prefixCls, + strokeWidth = _$props2.strokeWidth, + trailWidth = _$props2.trailWidth, + gapDegree = _$props2.gapDegree, + gapPosition = _$props2.gapPosition, + trailColor = _$props2.trailColor, + strokeLinecap = _$props2.strokeLinecap, + restProps = (0, _objectWithoutProperties3['default'])(_$props2, ['prefixCls', 'strokeWidth', 'trailWidth', 'gapDegree', 'gapPosition', 'trailColor', 'strokeLinecap']); + + var _getPathStyles2 = this.getPathStyles(0, 100, trailColor, strokeWidth, gapDegree, gapPosition), + pathString = _getPathStyles2.pathString, + pathStyle = _getPathStyles2.pathStyle; + + delete restProps.percent; + delete restProps.strokeColor; + var pathFirst = { + attrs: { + d: pathString, + stroke: trailColor, + 'stroke-linecap': strokeLinecap, + 'stroke-width': trailWidth || strokeWidth, + 'fill-opacity': '0' + }, + 'class': prefixCls + '-circle-trail', + style: pathStyle + }; - return h('div', [this.$slots['default']]); + return h( + 'svg', + (0, _babelHelperVueJsxMergeProps2['default'])([{ 'class': prefixCls + '-circle', attrs: { viewBox: '0 0 100 100' } + }, restProps]), + [h('path', pathFirst), this.getStokeList()] + ); } }; +exports['default'] = (0, _enhancer2['default'])(Circle); + /***/ }), -/***/ "./node_modules/ant-design-vue/lib/vc-dialog/index.js": -/*!************************************************************!*\ - !*** ./node_modules/ant-design-vue/lib/vc-dialog/index.js ***! - \************************************************************/ +/***/ "./node_modules/ant-design-vue/lib/vc-progress/src/Line.js": +/*!*****************************************************************!*\ + !*** ./node_modules/ant-design-vue/lib/vc-progress/src/Line.js ***! + \*****************************************************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { @@ -1565,13 +1746,1946 @@ Object.defineProperty(exports, "__esModule", { value: true }); -var _DialogWrap = __webpack_require__(/*! ./DialogWrap */ "./node_modules/ant-design-vue/lib/vc-dialog/DialogWrap.js"); +var _babelHelperVueJsxMergeProps = __webpack_require__(/*! babel-helper-vue-jsx-merge-props */ "./node_modules/babel-helper-vue-jsx-merge-props/index.js"); + +var _babelHelperVueJsxMergeProps2 = _interopRequireDefault(_babelHelperVueJsxMergeProps); + +var _objectWithoutProperties2 = __webpack_require__(/*! babel-runtime/helpers/objectWithoutProperties */ "./node_modules/babel-runtime/helpers/objectWithoutProperties.js"); + +var _objectWithoutProperties3 = _interopRequireDefault(_objectWithoutProperties2); + +var _vue = __webpack_require__(/*! vue */ "./node_modules/vue/dist/vue.common.js"); + +var _vue2 = _interopRequireDefault(_vue); + +var _vueRef = __webpack_require__(/*! vue-ref */ "./node_modules/vue-ref/index.js"); + +var _vueRef2 = _interopRequireDefault(_vueRef); + +var _propsUtil = __webpack_require__(/*! ../../_util/props-util */ "./node_modules/ant-design-vue/lib/_util/props-util.js"); -var _DialogWrap2 = _interopRequireDefault(_DialogWrap); +var _enhancer = __webpack_require__(/*! ./enhancer */ "./node_modules/ant-design-vue/lib/vc-progress/src/enhancer.js"); + +var _enhancer2 = _interopRequireDefault(_enhancer); + +var _types = __webpack_require__(/*! ./types */ "./node_modules/ant-design-vue/lib/vc-progress/src/types.js"); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } -exports['default'] = _DialogWrap2['default']; // based on vc-dialog 7.2.1 +_vue2['default'].use(_vueRef2['default'], { name: 'ant-ref' }); + +var Line = { + props: (0, _propsUtil.initDefaultProps)(_types.propTypes, _types.defaultProps), + created: function created() { + this.paths = {}; + }, + render: function render() { + var _this = this; + + var h = arguments[0]; + var _$props = this.$props, + percent = _$props.percent, + prefixCls = _$props.prefixCls, + strokeColor = _$props.strokeColor, + strokeLinecap = _$props.strokeLinecap, + strokeWidth = _$props.strokeWidth, + trailColor = _$props.trailColor, + trailWidth = _$props.trailWidth, + restProps = (0, _objectWithoutProperties3['default'])(_$props, ['percent', 'prefixCls', 'strokeColor', 'strokeLinecap', 'strokeWidth', 'trailColor', 'trailWidth']); + + + delete restProps.gapPosition; + + var percentList = Array.isArray(percent) ? percent : [percent]; + var strokeColorList = Array.isArray(strokeColor) ? strokeColor : [strokeColor]; + + var center = strokeWidth / 2; + var right = 100 - strokeWidth / 2; + var pathString = 'M ' + (strokeLinecap === 'round' ? center : 0) + ',' + center + '\n L ' + (strokeLinecap === 'round' ? right : 100) + ',' + center; + var viewBoxString = '0 0 100 ' + strokeWidth; + + var stackPtg = 0; + + var pathFirst = { + attrs: { + d: pathString, + 'stroke-linecap': strokeLinecap, + stroke: trailColor, + 'stroke-width': trailWidth || strokeWidth, + 'fill-opacity': '0' + }, + 'class': prefixCls + '-line-trail' + }; + return h( + 'svg', + (0, _babelHelperVueJsxMergeProps2['default'])([{ + 'class': prefixCls + '-line', + attrs: { viewBox: viewBoxString, + preserveAspectRatio: 'none' + } + }, restProps]), + [h('path', pathFirst), percentList.map(function (ptg, index) { + var pathStyle = { + strokeDasharray: ptg + 'px, 100px', + strokeDashoffset: '-' + stackPtg + 'px', + transition: 'stroke-dashoffset 0.3s ease 0s, stroke-dasharray .3s ease 0s, stroke 0.3s linear' + }; + var color = strokeColorList[index] || strokeColorList[strokeColorList.length - 1]; + + stackPtg += ptg; + + var pathProps = { + key: index, + attrs: { + d: pathString, + 'stroke-linecap': strokeLinecap, + stroke: color, + 'stroke-width': strokeWidth, + 'fill-opacity': '0' + }, + 'class': prefixCls + '-line-path', + style: pathStyle, + directives: [{ + name: 'ant-ref', + value: function value(c) { + _this.paths[index] = c; + } + }] + }; + + return h('path', pathProps); + })] + ); + } +}; + +exports['default'] = (0, _enhancer2['default'])(Line); + +/***/ }), + +/***/ "./node_modules/ant-design-vue/lib/vc-progress/src/enhancer.js": +/*!*********************************************************************!*\ + !*** ./node_modules/ant-design-vue/lib/vc-progress/src/enhancer.js ***! + \*********************************************************************/ +/*! no static exports found */ +/***/ (function(module, exports, __webpack_require__) { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", { + value: true +}); +function enhancer(Component) { + return { + mixins: [Component], + updated: function updated() { + var _this = this; + + var now = Date.now(); + var updated = false; + + Object.keys(this.paths).forEach(function (key) { + var path = _this.paths[key]; + + if (!path) { + return; + } + + updated = true; + var pathStyle = path.style; + pathStyle.transitionDuration = '.3s, .3s, .3s, .06s'; + + if (_this.prevTimeStamp && now - _this.prevTimeStamp < 100) { + pathStyle.transitionDuration = '0s, 0s'; + } + }); + if (updated) { + this.prevTimeStamp = Date.now(); + } + } + }; +} + +exports['default'] = enhancer; + +/***/ }), + +/***/ "./node_modules/ant-design-vue/lib/vc-progress/src/index.js": +/*!******************************************************************!*\ + !*** ./node_modules/ant-design-vue/lib/vc-progress/src/index.js ***! + \******************************************************************/ +/*! no static exports found */ +/***/ (function(module, exports, __webpack_require__) { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.Circle = exports.Line = undefined; + +var _Line = __webpack_require__(/*! ./Line */ "./node_modules/ant-design-vue/lib/vc-progress/src/Line.js"); + +var _Line2 = _interopRequireDefault(_Line); + +var _Circle = __webpack_require__(/*! ./Circle */ "./node_modules/ant-design-vue/lib/vc-progress/src/Circle.js"); + +var _Circle2 = _interopRequireDefault(_Circle); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } + +exports.Line = _Line2['default']; +exports.Circle = _Circle2['default']; +exports['default'] = { + Line: _Line2['default'], + Circle: _Circle2['default'] +}; + +/***/ }), + +/***/ "./node_modules/ant-design-vue/lib/vc-progress/src/types.js": +/*!******************************************************************!*\ + !*** ./node_modules/ant-design-vue/lib/vc-progress/src/types.js ***! + \******************************************************************/ +/*! no static exports found */ +/***/ (function(module, exports, __webpack_require__) { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.propTypes = exports.defaultProps = undefined; + +var _vueTypes = __webpack_require__(/*! ../../_util/vue-types */ "./node_modules/ant-design-vue/lib/_util/vue-types/index.js"); + +var _vueTypes2 = _interopRequireDefault(_vueTypes); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } + +var defaultProps = exports.defaultProps = { + // className: '', + percent: 0, + prefixCls: 'rc-progress', + strokeColor: '#2db7f5', + strokeLinecap: 'round', + strokeWidth: 1, + // style: {}, + trailColor: '#D9D9D9', + trailWidth: 1 +}; +var mixedType = _vueTypes2['default'].oneOfType([_vueTypes2['default'].number, _vueTypes2['default'].string]); + +var propTypes = exports.propTypes = { + // className: PropTypes.string, + percent: _vueTypes2['default'].oneOfType([mixedType, _vueTypes2['default'].arrayOf(mixedType)]), + prefixCls: _vueTypes2['default'].string, + strokeColor: _vueTypes2['default'].oneOfType([_vueTypes2['default'].string, _vueTypes2['default'].arrayOf(_vueTypes2['default'].string)]), + strokeLinecap: _vueTypes2['default'].oneOf(['butt', 'round', 'square']), + strokeWidth: mixedType, + // style: PropTypes.object, + trailColor: _vueTypes2['default'].string, + trailWidth: mixedType +}; + +/***/ }), + +/***/ "./node_modules/ant-design-vue/lib/vc-upload/index.js": +/*!************************************************************!*\ + !*** ./node_modules/ant-design-vue/lib/vc-upload/index.js ***! + \************************************************************/ +/*! no static exports found */ +/***/ (function(module, exports, __webpack_require__) { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", { + value: true +}); + +var _src = __webpack_require__(/*! ./src */ "./node_modules/ant-design-vue/lib/vc-upload/src/index.js"); + +var _src2 = _interopRequireDefault(_src); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } + +exports['default'] = _src2['default']; // rc-upload 2.6.3 + +/***/ }), + +/***/ "./node_modules/ant-design-vue/lib/vc-upload/src/AjaxUploader.js": +/*!***********************************************************************!*\ + !*** ./node_modules/ant-design-vue/lib/vc-upload/src/AjaxUploader.js ***! + \***********************************************************************/ +/*! no static exports found */ +/***/ (function(module, exports, __webpack_require__) { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", { + value: true +}); + +var _extends2 = __webpack_require__(/*! babel-runtime/helpers/extends */ "./node_modules/babel-runtime/helpers/extends.js"); + +var _extends3 = _interopRequireDefault(_extends2); + +var _defineProperty2 = __webpack_require__(/*! babel-runtime/helpers/defineProperty */ "./node_modules/babel-runtime/helpers/defineProperty.js"); + +var _defineProperty3 = _interopRequireDefault(_defineProperty2); + +var _vueTypes = __webpack_require__(/*! ../../_util/vue-types */ "./node_modules/ant-design-vue/lib/_util/vue-types/index.js"); + +var _vueTypes2 = _interopRequireDefault(_vueTypes); + +var _BaseMixin = __webpack_require__(/*! ../../_util/BaseMixin */ "./node_modules/ant-design-vue/lib/_util/BaseMixin.js"); + +var _BaseMixin2 = _interopRequireDefault(_BaseMixin); + +var _partition = __webpack_require__(/*! lodash/partition */ "./node_modules/lodash/partition.js"); + +var _partition2 = _interopRequireDefault(_partition); + +var _classnames = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js"); + +var _classnames2 = _interopRequireDefault(_classnames); + +var _request = __webpack_require__(/*! ./request */ "./node_modules/ant-design-vue/lib/vc-upload/src/request.js"); + +var _request2 = _interopRequireDefault(_request); + +var _uid = __webpack_require__(/*! ./uid */ "./node_modules/ant-design-vue/lib/vc-upload/src/uid.js"); + +var _uid2 = _interopRequireDefault(_uid); + +var _attrAccept = __webpack_require__(/*! ./attr-accept */ "./node_modules/ant-design-vue/lib/vc-upload/src/attr-accept.js"); + +var _attrAccept2 = _interopRequireDefault(_attrAccept); + +var _traverseFileTree = __webpack_require__(/*! ./traverseFileTree */ "./node_modules/ant-design-vue/lib/vc-upload/src/traverseFileTree.js"); + +var _traverseFileTree2 = _interopRequireDefault(_traverseFileTree); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } + +var upLoadPropTypes = { + componentTag: _vueTypes2['default'].string, + // style: PropTypes.object, + prefixCls: _vueTypes2['default'].string, + name: _vueTypes2['default'].string, + // className: PropTypes.string, + multiple: _vueTypes2['default'].bool, + directory: _vueTypes2['default'].bool, + disabled: _vueTypes2['default'].bool, + accept: _vueTypes2['default'].string, + // children: PropTypes.any, + // onStart: PropTypes.func, + data: _vueTypes2['default'].oneOfType([_vueTypes2['default'].object, _vueTypes2['default'].func]), + action: _vueTypes2['default'].oneOfType([_vueTypes2['default'].string, _vueTypes2['default'].func]), + headers: _vueTypes2['default'].object, + beforeUpload: _vueTypes2['default'].func, + customRequest: _vueTypes2['default'].func, + // onProgress: PropTypes.func, + withCredentials: _vueTypes2['default'].bool, + openFileDialogOnClick: _vueTypes2['default'].bool +}; + +var AjaxUploader = { + inheritAttrs: false, + name: 'ajaxUploader', + mixins: [_BaseMixin2['default']], + props: upLoadPropTypes, + data: function data() { + this.reqs = {}; + return { + uid: (0, _uid2['default'])() + }; + }, + mounted: function mounted() { + this._isMounted = true; + }, + beforeDestroy: function beforeDestroy() { + this._isMounted = false; + this.abort(); + }, + + methods: { + onChange: function onChange(e) { + var files = e.target.files; + this.uploadFiles(files); + this.reset(); + }, + onClick: function onClick() { + var el = this.$refs.fileInputRef; + if (!el) { + return; + } + el.click(); + }, + onKeyDown: function onKeyDown(e) { + if (e.key === 'Enter') { + this.onClick(); + } + }, + onFileDrop: function onFileDrop(e) { + var _this = this; + + e.preventDefault(); + if (e.type === 'dragover') { + return; + } + if (this.directory) { + (0, _traverseFileTree2['default'])(e.dataTransfer.items, this.uploadFiles, function (_file) { + return (0, _attrAccept2['default'])(_file, _this.accept); + }); + } else { + var files = (0, _partition2['default'])(Array.prototype.slice.call(e.dataTransfer.files), function (file) { + return (0, _attrAccept2['default'])(file, _this.accept); + }); + this.uploadFiles(files[0]); + if (files[1].length) { + this.$emit('reject', files[1]); + } + } + }, + uploadFiles: function uploadFiles(files) { + var _this2 = this; + + var postFiles = Array.prototype.slice.call(files); + postFiles.forEach(function (file) { + file.uid = (0, _uid2['default'])(); + _this2.upload(file, postFiles); + }); + }, + upload: function upload(file, fileList) { + var _this3 = this; + + if (!this.beforeUpload) { + // always async in case use react state to keep fileList + return setTimeout(function () { + return _this3.post(file); + }, 0); + } + + var before = this.beforeUpload(file, fileList); + if (before && before.then) { + before.then(function (processedFile) { + var processedFileType = Object.prototype.toString.call(processedFile); + if (processedFileType === '[object File]' || processedFileType === '[object Blob]') { + return _this3.post(processedFile); + } + return _this3.post(file); + })['catch'](function (e) { + console && console.log(e); // eslint-disable-line + }); + } else if (before !== false) { + setTimeout(function () { + return _this3.post(file); + }, 0); + } + }, + post: function post(file) { + var _this4 = this; + + if (!this._isMounted) { + return; + } + var data = this.$props.data; + + if (typeof data === 'function') { + data = data(file); + } + new Promise(function (resolve) { + var action = _this4.action; + + if (typeof action === 'function') { + return resolve(action(file)); + } + resolve(action); + }).then(function (action) { + var uid = file.uid; + + var request = _this4.customRequest || _request2['default']; + _this4.reqs[uid] = request({ + action: action, + filename: _this4.name, + file: file, + data: data, + headers: _this4.headers, + withCredentials: _this4.withCredentials, + onProgress: function onProgress(e) { + _this4.$emit('progress', e, file); + }, + onSuccess: function onSuccess(ret, xhr) { + delete _this4.reqs[uid]; + _this4.$emit('success', ret, file, xhr); + }, + onError: function onError(err, ret) { + delete _this4.reqs[uid]; + _this4.$emit('error', err, ret, file); + } + }); + _this4.$emit('start', file); + }); + }, + reset: function reset() { + this.setState({ + uid: (0, _uid2['default'])() + }); + }, + abort: function abort(file) { + var reqs = this.reqs; + + if (file) { + var uid = file; + if (file && file.uid) { + uid = file.uid; + } + if (reqs[uid]) { + reqs[uid].abort(); + delete reqs[uid]; + } + } else { + Object.keys(reqs).forEach(function (uid) { + if (reqs[uid]) { + reqs[uid].abort(); + } + + delete reqs[uid]; + }); + } + } + }, + + render: function render() { + var _classNames; + + var h = arguments[0]; + var $props = this.$props, + $attrs = this.$attrs; + var Tag = $props.componentTag, + prefixCls = $props.prefixCls, + disabled = $props.disabled, + multiple = $props.multiple, + accept = $props.accept, + directory = $props.directory, + openFileDialogOnClick = $props.openFileDialogOnClick; + + var cls = (0, _classnames2['default'])((_classNames = {}, (0, _defineProperty3['default'])(_classNames, prefixCls, true), (0, _defineProperty3['default'])(_classNames, prefixCls + '-disabled', disabled), _classNames)); + var events = disabled ? {} : { + click: openFileDialogOnClick ? this.onClick : function () {}, + keydown: this.onKeyDown, + drop: this.onFileDrop, + dragover: this.onFileDrop + }; + var tagProps = { + on: (0, _extends3['default'])({}, this.$listeners, events), + attrs: { + role: 'button', + tabIndex: disabled ? null : '0' + }, + 'class': cls + }; + return h( + Tag, + tagProps, + [h('input', { + attrs: { + id: $attrs.id, + type: 'file', + + accept: accept, + directory: directory ? 'directory' : null, + webkitdirectory: directory ? 'webkitdirectory' : null, + multiple: multiple + }, + ref: 'fileInputRef', + key: this.uid, + style: { display: 'none' }, on: { + 'change': this.onChange + } + }), this.$slots['default']] + ); + } +}; + +exports['default'] = AjaxUploader; + +/***/ }), + +/***/ "./node_modules/ant-design-vue/lib/vc-upload/src/IframeUploader.js": +/*!*************************************************************************!*\ + !*** ./node_modules/ant-design-vue/lib/vc-upload/src/IframeUploader.js ***! + \*************************************************************************/ +/*! no static exports found */ +/***/ (function(module, exports, __webpack_require__) { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", { + value: true +}); + +var _defineProperty2 = __webpack_require__(/*! babel-runtime/helpers/defineProperty */ "./node_modules/babel-runtime/helpers/defineProperty.js"); + +var _defineProperty3 = _interopRequireDefault(_defineProperty2); + +var _extends2 = __webpack_require__(/*! babel-runtime/helpers/extends */ "./node_modules/babel-runtime/helpers/extends.js"); + +var _extends3 = _interopRequireDefault(_extends2); + +var _vueTypes = __webpack_require__(/*! ../../_util/vue-types */ "./node_modules/ant-design-vue/lib/_util/vue-types/index.js"); + +var _vueTypes2 = _interopRequireDefault(_vueTypes); + +var _BaseMixin = __webpack_require__(/*! ../../_util/BaseMixin */ "./node_modules/ant-design-vue/lib/_util/BaseMixin.js"); + +var _BaseMixin2 = _interopRequireDefault(_BaseMixin); + +var _classnames = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js"); + +var _classnames2 = _interopRequireDefault(_classnames); + +var _uid = __webpack_require__(/*! ./uid */ "./node_modules/ant-design-vue/lib/vc-upload/src/uid.js"); + +var _uid2 = _interopRequireDefault(_uid); + +var _warning = __webpack_require__(/*! ../../_util/warning */ "./node_modules/ant-design-vue/lib/_util/warning.js"); + +var _warning2 = _interopRequireDefault(_warning); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } + +var IFRAME_STYLE = { + position: 'absolute', + top: 0, + opacity: 0, + filter: 'alpha(opacity=0)', + left: 0, + zIndex: 9999 +}; + +// diferent from AjaxUpload, can only upload on at one time, serial seriously +var IframeUploader = { + mixins: [_BaseMixin2['default']], + props: { + componentTag: _vueTypes2['default'].string, + // style: PropTypes.object, + disabled: _vueTypes2['default'].bool, + prefixCls: _vueTypes2['default'].string, + // className: PropTypes.string, + accept: _vueTypes2['default'].string, + // onStart: PropTypes.func, + multiple: _vueTypes2['default'].bool, + // children: PropTypes.any, + data: _vueTypes2['default'].oneOfType([_vueTypes2['default'].object, _vueTypes2['default'].func]), + action: _vueTypes2['default'].oneOfType([_vueTypes2['default'].string, _vueTypes2['default'].func]), + name: _vueTypes2['default'].string + }, + data: function data() { + this.file = {}; + return { + uploading: false + }; + }, + + methods: { + onLoad: function onLoad() { + if (!this.uploading) { + return; + } + var file = this.file; + + var response = void 0; + try { + var doc = this.getIframeDocument(); + var script = doc.getElementsByTagName('script')[0]; + if (script && script.parentNode === doc.body) { + doc.body.removeChild(script); + } + response = doc.body.innerHTML; + this.$emit('success', response, file); + } catch (err) { + (0, _warning2['default'])(false, 'cross domain error for Upload. Maybe server should return document.domain script. see Note from https://github.com/react-component/upload'); + response = 'cross-domain'; + this.$emit('error', err, null, file); + } + this.endUpload(); + }, + onChange: function onChange() { + var _this = this; + + var target = this.getFormInputNode(); + // ie8/9 don't support FileList Object + // http://stackoverflow.com/questions/12830058/ie8-input-type-file-get-files + var file = this.file = { + uid: (0, _uid2['default'])(), + name: target.value && target.value.substring(target.value.lastIndexOf('\\') + 1, target.value.length) + }; + this.startUpload(); + var props = this.$props; + + if (!props.beforeUpload) { + return this.post(file); + } + var before = props.beforeUpload(file); + if (before && before.then) { + before.then(function () { + _this.post(file); + }, function () { + _this.endUpload(); + }); + } else if (before !== false) { + this.post(file); + } else { + this.endUpload(); + } + }, + getIframeNode: function getIframeNode() { + return this.$refs.iframeRef; + }, + getIframeDocument: function getIframeDocument() { + return this.getIframeNode().contentDocument; + }, + getFormNode: function getFormNode() { + return this.getIframeDocument().getElementById('form'); + }, + getFormInputNode: function getFormInputNode() { + return this.getIframeDocument().getElementById('input'); + }, + getFormDataNode: function getFormDataNode() { + return this.getIframeDocument().getElementById('data'); + }, + getFileForMultiple: function getFileForMultiple(file) { + return this.multiple ? [file] : file; + }, + getIframeHTML: function getIframeHTML(domain) { + var domainScript = ''; + var domainInput = ''; + if (domain) { + var script = 'script'; + domainScript = '<' + script + '>document.domain="' + domain + '";'; + domainInput = ''; + } + return '\n \n \n \n \n \n ' + domainScript + '\n \n \n
\n \n ' + domainInput + '\n \n
\n \n \n '; + }, + initIframeSrc: function initIframeSrc() { + if (this.domain) { + this.getIframeNode().src = 'javascript:void((function(){\n var d = document;\n d.open();\n d.domain=\'' + this.domain + '\';\n d.write(\'\');\n d.close();\n })())'; + } + }, + initIframe: function initIframe() { + var iframeNode = this.getIframeNode(); + var win = iframeNode.contentWindow; + var doc = void 0; + this.domain = this.domain || ''; + this.initIframeSrc(); + try { + doc = win.document; + } catch (e) { + this.domain = document.domain; + this.initIframeSrc(); + win = iframeNode.contentWindow; + doc = win.document; + } + doc.open('text/html', 'replace'); + doc.write(this.getIframeHTML(this.domain)); + doc.close(); + this.getFormInputNode().onchange = this.onChange; + }, + endUpload: function endUpload() { + if (this.uploading) { + this.file = {}; + // hack avoid batch + this.uploading = false; + this.setState({ + uploading: false + }); + this.initIframe(); + } + }, + startUpload: function startUpload() { + if (!this.uploading) { + this.uploading = true; + this.setState({ + uploading: true + }); + } + }, + updateIframeWH: function updateIframeWH() { + var rootNode = this.$el; + var iframeNode = this.getIframeNode(); + iframeNode.style.height = rootNode.offsetHeight + 'px'; + iframeNode.style.width = rootNode.offsetWidth + 'px'; + }, + abort: function abort(file) { + if (file) { + var uid = file; + if (file && file.uid) { + uid = file.uid; + } + if (uid === this.file.uid) { + this.endUpload(); + } + } else { + this.endUpload(); + } + }, + post: function post(file) { + var _this2 = this; + + var formNode = this.getFormNode(); + var dataSpan = this.getFormDataNode(); + var data = this.$props.data; + + if (typeof data === 'function') { + data = data(file); + } + var inputs = document.createDocumentFragment(); + for (var key in data) { + if (data.hasOwnProperty(key)) { + var input = document.createElement('input'); + input.setAttribute('name', key); + input.value = data[key]; + inputs.appendChild(input); + } + } + dataSpan.appendChild(inputs); + new Promise(function (resolve) { + var action = _this2.action; + + if (typeof action === 'function') { + return resolve(action(file)); + } + resolve(action); + }).then(function (action) { + formNode.setAttribute('action', action); + formNode.submit(); + dataSpan.innerHTML = ''; + _this2.$emit('start', file); + }); + } + }, + mounted: function mounted() { + var _this3 = this; + + this.$nextTick(function () { + _this3.updateIframeWH(); + _this3.initIframe(); + }); + }, + updated: function updated() { + var _this4 = this; + + this.$nextTick(function () { + _this4.updateIframeWH(); + }); + }, + render: function render() { + var _classNames; + + var h = arguments[0]; + var _$props = this.$props, + Tag = _$props.componentTag, + disabled = _$props.disabled, + prefixCls = _$props.prefixCls; + + var iframeStyle = (0, _extends3['default'])({}, IFRAME_STYLE, { + display: this.uploading || disabled ? 'none' : '' + }); + var cls = (0, _classnames2['default'])((_classNames = {}, (0, _defineProperty3['default'])(_classNames, prefixCls, true), (0, _defineProperty3['default'])(_classNames, prefixCls + '-disabled', disabled), _classNames)); + + return h( + Tag, + { + attrs: { className: cls }, + style: { position: 'relative', zIndex: 0 } }, + [h('iframe', { ref: 'iframeRef', on: { + 'load': this.onLoad + }, + style: iframeStyle }), this.$slots['default']] + ); + } +}; + +exports['default'] = IframeUploader; + +/***/ }), + +/***/ "./node_modules/ant-design-vue/lib/vc-upload/src/Upload.js": +/*!*****************************************************************!*\ + !*** ./node_modules/ant-design-vue/lib/vc-upload/src/Upload.js ***! + \*****************************************************************/ +/*! no static exports found */ +/***/ (function(module, exports, __webpack_require__) { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", { + value: true +}); + +var _extends2 = __webpack_require__(/*! babel-runtime/helpers/extends */ "./node_modules/babel-runtime/helpers/extends.js"); + +var _extends3 = _interopRequireDefault(_extends2); + +var _vueTypes = __webpack_require__(/*! ../../_util/vue-types */ "./node_modules/ant-design-vue/lib/_util/vue-types/index.js"); + +var _vueTypes2 = _interopRequireDefault(_vueTypes); + +var _propsUtil = __webpack_require__(/*! ../../_util/props-util */ "./node_modules/ant-design-vue/lib/_util/props-util.js"); + +var _BaseMixin = __webpack_require__(/*! ../../_util/BaseMixin */ "./node_modules/ant-design-vue/lib/_util/BaseMixin.js"); + +var _BaseMixin2 = _interopRequireDefault(_BaseMixin); + +var _AjaxUploader = __webpack_require__(/*! ./AjaxUploader */ "./node_modules/ant-design-vue/lib/vc-upload/src/AjaxUploader.js"); + +var _AjaxUploader2 = _interopRequireDefault(_AjaxUploader); + +var _IframeUploader = __webpack_require__(/*! ./IframeUploader */ "./node_modules/ant-design-vue/lib/vc-upload/src/IframeUploader.js"); + +var _IframeUploader2 = _interopRequireDefault(_IframeUploader); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } + +function empty() {} + +var uploadProps = { + componentTag: _vueTypes2['default'].string, + prefixCls: _vueTypes2['default'].string, + action: _vueTypes2['default'].oneOfType([_vueTypes2['default'].string, _vueTypes2['default'].func]), + name: _vueTypes2['default'].string, + multipart: _vueTypes2['default'].bool, + directory: _vueTypes2['default'].bool, + // onError: PropTypes.func, + // onSuccess: PropTypes.func, + // onProgress: PropTypes.func, + // onStart: PropTypes.func, + data: _vueTypes2['default'].oneOfType([_vueTypes2['default'].object, _vueTypes2['default'].func]), + headers: _vueTypes2['default'].object, + accept: _vueTypes2['default'].string, + multiple: _vueTypes2['default'].bool, + disabled: _vueTypes2['default'].bool, + beforeUpload: _vueTypes2['default'].func, + customRequest: _vueTypes2['default'].func, + // onReady: PropTypes.func, + withCredentials: _vueTypes2['default'].bool, + supportServerRender: _vueTypes2['default'].bool, + openFileDialogOnClick: _vueTypes2['default'].bool +}; +exports['default'] = { + name: 'Upload', + mixins: [_BaseMixin2['default']], + inheritAttrs: false, + props: (0, _propsUtil.initDefaultProps)(uploadProps, { + componentTag: 'span', + prefixCls: 'rc-upload', + data: {}, + headers: {}, + name: 'file', + multipart: false, + // onReady: empty, + // onStart: empty, + // onError: empty, + // onSuccess: empty, + supportServerRender: false, + multiple: false, + beforeUpload: empty, + withCredentials: false, + openFileDialogOnClick: true + }), + data: function data() { + return { + Component: null + }; + }, + mounted: function mounted() { + var _this = this; + + this.$nextTick(function () { + if (_this.supportServerRender) { + /* eslint react/no-did-mount-set-state:0 */ + _this.setState({ + Component: _this.getComponent() + }, function () { + _this.$emit('ready'); + }); + } + }); + }, + + methods: { + getComponent: function getComponent() { + return typeof File !== 'undefined' ? _AjaxUploader2['default'] : _IframeUploader2['default']; + }, + abort: function abort(file) { + this.$refs.uploaderRef.abort(file); + } + }, + + render: function render() { + var h = arguments[0]; + + var componentProps = { + props: (0, _extends3['default'])({}, this.$props), + on: this.$listeners, + ref: 'uploaderRef', + attrs: this.$attrs + }; + if (this.supportServerRender) { + var _ComponentUploader = this.Component; + if (_ComponentUploader) { + return h( + _ComponentUploader, + componentProps, + [this.$slots['default']] + ); + } + return null; + } + var ComponentUploader = this.getComponent(); + return h( + ComponentUploader, + componentProps, + [this.$slots['default']] + ); + } +}; + +/***/ }), + +/***/ "./node_modules/ant-design-vue/lib/vc-upload/src/attr-accept.js": +/*!**********************************************************************!*\ + !*** ./node_modules/ant-design-vue/lib/vc-upload/src/attr-accept.js ***! + \**********************************************************************/ +/*! no static exports found */ +/***/ (function(module, exports, __webpack_require__) { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", { + value: true +}); +function endsWith(str, suffix) { + return str.indexOf(suffix, str.length - suffix.length) !== -1; +} + +exports['default'] = function (file, acceptedFiles) { + if (file && acceptedFiles) { + var acceptedFilesArray = Array.isArray(acceptedFiles) ? acceptedFiles : acceptedFiles.split(','); + var fileName = file.name || ''; + var mimeType = file.type || ''; + var baseMimeType = mimeType.replace(/\/.*$/, ''); + + return acceptedFilesArray.some(function (type) { + var validType = type.trim(); + if (validType.charAt(0) === '.') { + return endsWith(fileName.toLowerCase(), validType.toLowerCase()); + } else if (/\/\*$/.test(validType)) { + // This is something like a image/* mime type + return baseMimeType === validType.replace(/\/.*$/, ''); + } + return mimeType === validType; + }); + } + return true; +}; + +/***/ }), + +/***/ "./node_modules/ant-design-vue/lib/vc-upload/src/index.js": +/*!****************************************************************!*\ + !*** ./node_modules/ant-design-vue/lib/vc-upload/src/index.js ***! + \****************************************************************/ +/*! no static exports found */ +/***/ (function(module, exports, __webpack_require__) { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", { + value: true +}); + +var _Upload = __webpack_require__(/*! ./Upload */ "./node_modules/ant-design-vue/lib/vc-upload/src/Upload.js"); + +var _Upload2 = _interopRequireDefault(_Upload); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } + +exports['default'] = _Upload2['default']; // export this package's api + +/***/ }), + +/***/ "./node_modules/ant-design-vue/lib/vc-upload/src/request.js": +/*!******************************************************************!*\ + !*** ./node_modules/ant-design-vue/lib/vc-upload/src/request.js ***! + \******************************************************************/ +/*! no static exports found */ +/***/ (function(module, exports, __webpack_require__) { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports['default'] = upload; +function getError(option, xhr) { + var msg = 'cannot post ' + option.action + ' ' + xhr.status + '\''; + var err = new Error(msg); + err.status = xhr.status; + err.method = 'post'; + err.url = option.action; + return err; +} + +function getBody(xhr) { + var text = xhr.responseText || xhr.response; + if (!text) { + return text; + } + + try { + return JSON.parse(text); + } catch (e) { + return text; + } +} + +// option { +// onProgress: (event: { percent: number }): void, +// onError: (event: Error, body?: Object): void, +// onSuccess: (body: Object): void, +// data: Object, +// filename: String, +// file: File, +// withCredentials: Boolean, +// action: String, +// headers: Object, +// } +function upload(option) { + var xhr = new window.XMLHttpRequest(); + + if (option.onProgress && xhr.upload) { + xhr.upload.onprogress = function progress(e) { + if (e.total > 0) { + e.percent = e.loaded / e.total * 100; + } + option.onProgress(e); + }; + } + + var formData = new window.FormData(); + + if (option.data) { + Object.keys(option.data).map(function (key) { + formData.append(key, option.data[key]); + }); + } + + formData.append(option.filename, option.file); + + xhr.onerror = function error(e) { + option.onError(e); + }; + + xhr.onload = function onload() { + // allow success when 2xx status + // see https://github.com/react-component/upload/issues/34 + if (xhr.status < 200 || xhr.status >= 300) { + return option.onError(getError(option, xhr), getBody(xhr)); + } + + option.onSuccess(getBody(xhr), xhr); + }; + + xhr.open('post', option.action, true); + + // Has to be after `.open()`. See https://github.com/enyo/dropzone/issues/179 + if (option.withCredentials && 'withCredentials' in xhr) { + xhr.withCredentials = true; + } + + var headers = option.headers || {}; + + // when set headers['X-Requested-With'] = null , can close default XHR header + // see https://github.com/react-component/upload/issues/33 + if (headers['X-Requested-With'] !== null) { + xhr.setRequestHeader('X-Requested-With', 'XMLHttpRequest'); + } + + for (var h in headers) { + if (headers.hasOwnProperty(h) && headers[h] !== null) { + xhr.setRequestHeader(h, headers[h]); + } + } + xhr.send(formData); + + return { + abort: function abort() { + xhr.abort(); + } + }; +} + +/***/ }), + +/***/ "./node_modules/ant-design-vue/lib/vc-upload/src/traverseFileTree.js": +/*!***************************************************************************!*\ + !*** ./node_modules/ant-design-vue/lib/vc-upload/src/traverseFileTree.js ***! + \***************************************************************************/ +/*! no static exports found */ +/***/ (function(module, exports, __webpack_require__) { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", { + value: true +}); +function loopFiles(item, callback) { + var dirReader = item.createReader(); + var fileList = []; + + function sequence() { + dirReader.readEntries(function (entries) { + var entryList = Array.prototype.slice.apply(entries); + fileList = fileList.concat(entryList); + + // Check if all the file has been viewed + var isFinished = !entryList.length; + + if (isFinished) { + callback(fileList); + } else { + sequence(); + } + }); + } + + sequence(); +} + +var traverseFileTree = function traverseFileTree(files, callback, isAccepted) { + var _traverseFileTree = function _traverseFileTree(item, path) { + path = path || ''; + if (item.isFile) { + item.file(function (file) { + if (isAccepted(file)) { + callback([file]); + } + }); + } else if (item.isDirectory) { + loopFiles(item, function (entries) { + entries.forEach(function (entryItem) { + _traverseFileTree(entryItem, '' + path + item.name + '/'); + }); + }); + } + }; + var _iteratorNormalCompletion = true; + var _didIteratorError = false; + var _iteratorError = undefined; + + try { + for (var _iterator = files[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) { + var file = _step.value; + + _traverseFileTree(file.webkitGetAsEntry()); + } + } catch (err) { + _didIteratorError = true; + _iteratorError = err; + } finally { + try { + if (!_iteratorNormalCompletion && _iterator['return']) { + _iterator['return'](); + } + } finally { + if (_didIteratorError) { + throw _iteratorError; + } + } + } +}; + +exports['default'] = traverseFileTree; + +/***/ }), + +/***/ "./node_modules/ant-design-vue/lib/vc-upload/src/uid.js": +/*!**************************************************************!*\ + !*** ./node_modules/ant-design-vue/lib/vc-upload/src/uid.js ***! + \**************************************************************/ +/*! no static exports found */ +/***/ (function(module, exports, __webpack_require__) { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports["default"] = uid; +var now = +new Date(); +var index = 0; + +function uid() { + return "vc-upload-" + now + "-" + ++index; +} + +/***/ }), + +/***/ "./node_modules/lodash/_arrayAggregator.js": +/*!*************************************************!*\ + !*** ./node_modules/lodash/_arrayAggregator.js ***! + \*************************************************/ +/*! no static exports found */ +/***/ (function(module, exports) { + +/** + * A specialized version of `baseAggregator` for arrays. + * + * @private + * @param {Array} [array] The array to iterate over. + * @param {Function} setter The function to set `accumulator` values. + * @param {Function} iteratee The iteratee to transform keys. + * @param {Object} accumulator The initial aggregated object. + * @returns {Function} Returns `accumulator`. + */ +function arrayAggregator(array, setter, iteratee, accumulator) { + var index = -1, + length = array == null ? 0 : array.length; + + while (++index < length) { + var value = array[index]; + setter(accumulator, value, iteratee(value), array); + } + return accumulator; +} + +module.exports = arrayAggregator; + + +/***/ }), + +/***/ "./node_modules/lodash/_arrayIncludes.js": +/*!***********************************************!*\ + !*** ./node_modules/lodash/_arrayIncludes.js ***! + \***********************************************/ +/*! no static exports found */ +/***/ (function(module, exports, __webpack_require__) { + +var baseIndexOf = __webpack_require__(/*! ./_baseIndexOf */ "./node_modules/lodash/_baseIndexOf.js"); + +/** + * A specialized version of `_.includes` for arrays without support for + * specifying an index to search from. + * + * @private + * @param {Array} [array] The array to inspect. + * @param {*} target The value to search for. + * @returns {boolean} Returns `true` if `target` is found, else `false`. + */ +function arrayIncludes(array, value) { + var length = array == null ? 0 : array.length; + return !!length && baseIndexOf(array, value, 0) > -1; +} + +module.exports = arrayIncludes; + + +/***/ }), + +/***/ "./node_modules/lodash/_arrayIncludesWith.js": +/*!***************************************************!*\ + !*** ./node_modules/lodash/_arrayIncludesWith.js ***! + \***************************************************/ +/*! no static exports found */ +/***/ (function(module, exports) { + +/** + * This function is like `arrayIncludes` except that it accepts a comparator. + * + * @private + * @param {Array} [array] The array to inspect. + * @param {*} target The value to search for. + * @param {Function} comparator The comparator invoked per element. + * @returns {boolean} Returns `true` if `target` is found, else `false`. + */ +function arrayIncludesWith(array, value, comparator) { + var index = -1, + length = array == null ? 0 : array.length; + + while (++index < length) { + if (comparator(value, array[index])) { + return true; + } + } + return false; +} + +module.exports = arrayIncludesWith; + + +/***/ }), + +/***/ "./node_modules/lodash/_baseAggregator.js": +/*!************************************************!*\ + !*** ./node_modules/lodash/_baseAggregator.js ***! + \************************************************/ +/*! no static exports found */ +/***/ (function(module, exports, __webpack_require__) { + +var baseEach = __webpack_require__(/*! ./_baseEach */ "./node_modules/lodash/_baseEach.js"); + +/** + * Aggregates elements of `collection` on `accumulator` with keys transformed + * by `iteratee` and values set by `setter`. + * + * @private + * @param {Array|Object} collection The collection to iterate over. + * @param {Function} setter The function to set `accumulator` values. + * @param {Function} iteratee The iteratee to transform keys. + * @param {Object} accumulator The initial aggregated object. + * @returns {Function} Returns `accumulator`. + */ +function baseAggregator(collection, setter, iteratee, accumulator) { + baseEach(collection, function(value, key, collection) { + setter(accumulator, value, iteratee(value), collection); + }); + return accumulator; +} + +module.exports = baseAggregator; + + +/***/ }), + +/***/ "./node_modules/lodash/_baseEach.js": +/*!******************************************!*\ + !*** ./node_modules/lodash/_baseEach.js ***! + \******************************************/ +/*! no static exports found */ +/***/ (function(module, exports, __webpack_require__) { + +var baseForOwn = __webpack_require__(/*! ./_baseForOwn */ "./node_modules/lodash/_baseForOwn.js"), + createBaseEach = __webpack_require__(/*! ./_createBaseEach */ "./node_modules/lodash/_createBaseEach.js"); + +/** + * The base implementation of `_.forEach` without support for iteratee shorthands. + * + * @private + * @param {Array|Object} collection The collection to iterate over. + * @param {Function} iteratee The function invoked per iteration. + * @returns {Array|Object} Returns `collection`. + */ +var baseEach = createBaseEach(baseForOwn); + +module.exports = baseEach; + + +/***/ }), + +/***/ "./node_modules/lodash/_baseFor.js": +/*!*****************************************!*\ + !*** ./node_modules/lodash/_baseFor.js ***! + \*****************************************/ +/*! no static exports found */ +/***/ (function(module, exports, __webpack_require__) { + +var createBaseFor = __webpack_require__(/*! ./_createBaseFor */ "./node_modules/lodash/_createBaseFor.js"); + +/** + * The base implementation of `baseForOwn` which iterates over `object` + * properties returned by `keysFunc` and invokes `iteratee` for each property. + * Iteratee functions may exit iteration early by explicitly returning `false`. + * + * @private + * @param {Object} object The object to iterate over. + * @param {Function} iteratee The function invoked per iteration. + * @param {Function} keysFunc The function to get the keys of `object`. + * @returns {Object} Returns `object`. + */ +var baseFor = createBaseFor(); + +module.exports = baseFor; + + +/***/ }), + +/***/ "./node_modules/lodash/_baseForOwn.js": +/*!********************************************!*\ + !*** ./node_modules/lodash/_baseForOwn.js ***! + \********************************************/ +/*! no static exports found */ +/***/ (function(module, exports, __webpack_require__) { + +var baseFor = __webpack_require__(/*! ./_baseFor */ "./node_modules/lodash/_baseFor.js"), + keys = __webpack_require__(/*! ./keys */ "./node_modules/lodash/keys.js"); + +/** + * The base implementation of `_.forOwn` without support for iteratee shorthands. + * + * @private + * @param {Object} object The object to iterate over. + * @param {Function} iteratee The function invoked per iteration. + * @returns {Object} Returns `object`. + */ +function baseForOwn(object, iteratee) { + return object && baseFor(object, iteratee, keys); +} + +module.exports = baseForOwn; + + +/***/ }), + +/***/ "./node_modules/lodash/_baseIndexOf.js": +/*!*********************************************!*\ + !*** ./node_modules/lodash/_baseIndexOf.js ***! + \*********************************************/ +/*! no static exports found */ +/***/ (function(module, exports, __webpack_require__) { + +var baseFindIndex = __webpack_require__(/*! ./_baseFindIndex */ "./node_modules/lodash/_baseFindIndex.js"), + baseIsNaN = __webpack_require__(/*! ./_baseIsNaN */ "./node_modules/lodash/_baseIsNaN.js"), + strictIndexOf = __webpack_require__(/*! ./_strictIndexOf */ "./node_modules/lodash/_strictIndexOf.js"); + +/** + * The base implementation of `_.indexOf` without `fromIndex` bounds checks. + * + * @private + * @param {Array} array The array to inspect. + * @param {*} value The value to search for. + * @param {number} fromIndex The index to search from. + * @returns {number} Returns the index of the matched value, else `-1`. + */ +function baseIndexOf(array, value, fromIndex) { + return value === value + ? strictIndexOf(array, value, fromIndex) + : baseFindIndex(array, baseIsNaN, fromIndex); +} + +module.exports = baseIndexOf; + + +/***/ }), + +/***/ "./node_modules/lodash/_baseIsNaN.js": +/*!*******************************************!*\ + !*** ./node_modules/lodash/_baseIsNaN.js ***! + \*******************************************/ +/*! no static exports found */ +/***/ (function(module, exports) { + +/** + * The base implementation of `_.isNaN` without support for number objects. + * + * @private + * @param {*} value The value to check. + * @returns {boolean} Returns `true` if `value` is `NaN`, else `false`. + */ +function baseIsNaN(value) { + return value !== value; +} + +module.exports = baseIsNaN; + + +/***/ }), + +/***/ "./node_modules/lodash/_baseUniq.js": +/*!******************************************!*\ + !*** ./node_modules/lodash/_baseUniq.js ***! + \******************************************/ +/*! no static exports found */ +/***/ (function(module, exports, __webpack_require__) { + +var SetCache = __webpack_require__(/*! ./_SetCache */ "./node_modules/lodash/_SetCache.js"), + arrayIncludes = __webpack_require__(/*! ./_arrayIncludes */ "./node_modules/lodash/_arrayIncludes.js"), + arrayIncludesWith = __webpack_require__(/*! ./_arrayIncludesWith */ "./node_modules/lodash/_arrayIncludesWith.js"), + cacheHas = __webpack_require__(/*! ./_cacheHas */ "./node_modules/lodash/_cacheHas.js"), + createSet = __webpack_require__(/*! ./_createSet */ "./node_modules/lodash/_createSet.js"), + setToArray = __webpack_require__(/*! ./_setToArray */ "./node_modules/lodash/_setToArray.js"); + +/** Used as the size to enable large array optimizations. */ +var LARGE_ARRAY_SIZE = 200; + +/** + * The base implementation of `_.uniqBy` without support for iteratee shorthands. + * + * @private + * @param {Array} array The array to inspect. + * @param {Function} [iteratee] The iteratee invoked per element. + * @param {Function} [comparator] The comparator invoked per element. + * @returns {Array} Returns the new duplicate free array. + */ +function baseUniq(array, iteratee, comparator) { + var index = -1, + includes = arrayIncludes, + length = array.length, + isCommon = true, + result = [], + seen = result; + + if (comparator) { + isCommon = false; + includes = arrayIncludesWith; + } + else if (length >= LARGE_ARRAY_SIZE) { + var set = iteratee ? null : createSet(array); + if (set) { + return setToArray(set); + } + isCommon = false; + includes = cacheHas; + seen = new SetCache; + } + else { + seen = iteratee ? [] : result; + } + outer: + while (++index < length) { + var value = array[index], + computed = iteratee ? iteratee(value) : value; + + value = (comparator || value !== 0) ? value : 0; + if (isCommon && computed === computed) { + var seenIndex = seen.length; + while (seenIndex--) { + if (seen[seenIndex] === computed) { + continue outer; + } + } + if (iteratee) { + seen.push(computed); + } + result.push(value); + } + else if (!includes(seen, computed, comparator)) { + if (seen !== result) { + seen.push(computed); + } + result.push(value); + } + } + return result; +} + +module.exports = baseUniq; + + +/***/ }), + +/***/ "./node_modules/lodash/_createAggregator.js": +/*!**************************************************!*\ + !*** ./node_modules/lodash/_createAggregator.js ***! + \**************************************************/ +/*! no static exports found */ +/***/ (function(module, exports, __webpack_require__) { + +var arrayAggregator = __webpack_require__(/*! ./_arrayAggregator */ "./node_modules/lodash/_arrayAggregator.js"), + baseAggregator = __webpack_require__(/*! ./_baseAggregator */ "./node_modules/lodash/_baseAggregator.js"), + baseIteratee = __webpack_require__(/*! ./_baseIteratee */ "./node_modules/lodash/_baseIteratee.js"), + isArray = __webpack_require__(/*! ./isArray */ "./node_modules/lodash/isArray.js"); + +/** + * Creates a function like `_.groupBy`. + * + * @private + * @param {Function} setter The function to set accumulator values. + * @param {Function} [initializer] The accumulator object initializer. + * @returns {Function} Returns the new aggregator function. + */ +function createAggregator(setter, initializer) { + return function(collection, iteratee) { + var func = isArray(collection) ? arrayAggregator : baseAggregator, + accumulator = initializer ? initializer() : {}; + + return func(collection, setter, baseIteratee(iteratee, 2), accumulator); + }; +} + +module.exports = createAggregator; + + +/***/ }), + +/***/ "./node_modules/lodash/_createBaseEach.js": +/*!************************************************!*\ + !*** ./node_modules/lodash/_createBaseEach.js ***! + \************************************************/ +/*! no static exports found */ +/***/ (function(module, exports, __webpack_require__) { + +var isArrayLike = __webpack_require__(/*! ./isArrayLike */ "./node_modules/lodash/isArrayLike.js"); + +/** + * Creates a `baseEach` or `baseEachRight` function. + * + * @private + * @param {Function} eachFunc The function to iterate over a collection. + * @param {boolean} [fromRight] Specify iterating from right to left. + * @returns {Function} Returns the new base function. + */ +function createBaseEach(eachFunc, fromRight) { + return function(collection, iteratee) { + if (collection == null) { + return collection; + } + if (!isArrayLike(collection)) { + return eachFunc(collection, iteratee); + } + var length = collection.length, + index = fromRight ? length : -1, + iterable = Object(collection); + + while ((fromRight ? index-- : ++index < length)) { + if (iteratee(iterable[index], index, iterable) === false) { + break; + } + } + return collection; + }; +} + +module.exports = createBaseEach; + + +/***/ }), + +/***/ "./node_modules/lodash/_createBaseFor.js": +/*!***********************************************!*\ + !*** ./node_modules/lodash/_createBaseFor.js ***! + \***********************************************/ +/*! no static exports found */ +/***/ (function(module, exports) { + +/** + * Creates a base function for methods like `_.forIn` and `_.forOwn`. + * + * @private + * @param {boolean} [fromRight] Specify iterating from right to left. + * @returns {Function} Returns the new base function. + */ +function createBaseFor(fromRight) { + return function(object, iteratee, keysFunc) { + var index = -1, + iterable = Object(object), + props = keysFunc(object), + length = props.length; + + while (length--) { + var key = props[fromRight ? length : ++index]; + if (iteratee(iterable[key], key, iterable) === false) { + break; + } + } + return object; + }; +} + +module.exports = createBaseFor; + + +/***/ }), + +/***/ "./node_modules/lodash/_createSet.js": +/*!*******************************************!*\ + !*** ./node_modules/lodash/_createSet.js ***! + \*******************************************/ +/*! no static exports found */ +/***/ (function(module, exports, __webpack_require__) { + +var Set = __webpack_require__(/*! ./_Set */ "./node_modules/lodash/_Set.js"), + noop = __webpack_require__(/*! ./noop */ "./node_modules/lodash/noop.js"), + setToArray = __webpack_require__(/*! ./_setToArray */ "./node_modules/lodash/_setToArray.js"); + +/** Used as references for various `Number` constants. */ +var INFINITY = 1 / 0; + +/** + * Creates a set object of `values`. + * + * @private + * @param {Array} values The values to add to the set. + * @returns {Object} Returns the new set. + */ +var createSet = !(Set && (1 / setToArray(new Set([,-0]))[1]) == INFINITY) ? noop : function(values) { + return new Set(values); +}; + +module.exports = createSet; + + +/***/ }), + +/***/ "./node_modules/lodash/_strictIndexOf.js": +/*!***********************************************!*\ + !*** ./node_modules/lodash/_strictIndexOf.js ***! + \***********************************************/ +/*! no static exports found */ +/***/ (function(module, exports) { + +/** + * A specialized version of `_.indexOf` which performs strict equality + * comparisons of values, i.e. `===`. + * + * @private + * @param {Array} array The array to inspect. + * @param {*} value The value to search for. + * @param {number} fromIndex The index to search from. + * @returns {number} Returns the index of the matched value, else `-1`. + */ +function strictIndexOf(array, value, fromIndex) { + var index = fromIndex - 1, + length = array.length; + + while (++index < length) { + if (array[index] === value) { + return index; + } + } + return -1; +} + +module.exports = strictIndexOf; + + +/***/ }), + +/***/ "./node_modules/lodash/noop.js": +/*!*************************************!*\ + !*** ./node_modules/lodash/noop.js ***! + \*************************************/ +/*! no static exports found */ +/***/ (function(module, exports) { + +/** + * This method returns `undefined`. + * + * @static + * @memberOf _ + * @since 2.3.0 + * @category Util + * @example + * + * _.times(2, _.noop); + * // => [undefined, undefined] + */ +function noop() { + // No operation performed. +} + +module.exports = noop; + + +/***/ }), + +/***/ "./node_modules/lodash/partition.js": +/*!******************************************!*\ + !*** ./node_modules/lodash/partition.js ***! + \******************************************/ +/*! no static exports found */ +/***/ (function(module, exports, __webpack_require__) { + +var createAggregator = __webpack_require__(/*! ./_createAggregator */ "./node_modules/lodash/_createAggregator.js"); + +/** + * Creates an array of elements split into two groups, the first of which + * contains elements `predicate` returns truthy for, the second of which + * contains elements `predicate` returns falsey for. The predicate is + * invoked with one argument: (value). + * + * @static + * @memberOf _ + * @since 3.0.0 + * @category Collection + * @param {Array|Object} collection The collection to iterate over. + * @param {Function} [predicate=_.identity] The function invoked per iteration. + * @returns {Array} Returns the array of grouped elements. + * @example + * + * var users = [ + * { 'user': 'barney', 'age': 36, 'active': false }, + * { 'user': 'fred', 'age': 40, 'active': true }, + * { 'user': 'pebbles', 'age': 1, 'active': false } + * ]; + * + * _.partition(users, function(o) { return o.active; }); + * // => objects for [['fred'], ['barney', 'pebbles']] + * + * // The `_.matches` iteratee shorthand. + * _.partition(users, { 'age': 1, 'active': false }); + * // => objects for [['pebbles'], ['barney', 'fred']] + * + * // The `_.matchesProperty` iteratee shorthand. + * _.partition(users, ['active', false]); + * // => objects for [['barney', 'pebbles'], ['fred']] + * + * // The `_.property` iteratee shorthand. + * _.partition(users, 'active'); + * // => objects for [['fred'], ['barney', 'pebbles']] + */ +var partition = createAggregator(function(result, value, key) { + result[key ? 0 : 1].push(value); +}, function() { return [[], []]; }); + +module.exports = partition; + + +/***/ }), + +/***/ "./node_modules/lodash/uniqBy.js": +/*!***************************************!*\ + !*** ./node_modules/lodash/uniqBy.js ***! + \***************************************/ +/*! no static exports found */ +/***/ (function(module, exports, __webpack_require__) { + +var baseIteratee = __webpack_require__(/*! ./_baseIteratee */ "./node_modules/lodash/_baseIteratee.js"), + baseUniq = __webpack_require__(/*! ./_baseUniq */ "./node_modules/lodash/_baseUniq.js"); + +/** + * This method is like `_.uniq` except that it accepts `iteratee` which is + * invoked for each element in `array` to generate the criterion by which + * uniqueness is computed. The order of result values is determined by the + * order they occur in the array. The iteratee is invoked with one argument: + * (value). + * + * @static + * @memberOf _ + * @since 4.0.0 + * @category Array + * @param {Array} array The array to inspect. + * @param {Function} [iteratee=_.identity] The iteratee invoked per element. + * @returns {Array} Returns the new duplicate free array. + * @example + * + * _.uniqBy([2.1, 1.2, 2.3], Math.floor); + * // => [2.1, 1.2] + * + * // The `_.property` iteratee shorthand. + * _.uniqBy([{ 'x': 1 }, { 'x': 2 }, { 'x': 1 }], 'x'); + * // => [{ 'x': 1 }, { 'x': 2 }] + */ +function uniqBy(array, iteratee) { + return (array && array.length) ? baseUniq(array, baseIteratee(iteratee, 2)) : []; +} + +module.exports = uniqBy; + /***/ }) diff --git a/public/js/chunk/6.js b/public/js/chunk/6.js index 661f76500..91e4ffc94 100644 --- a/public/js/chunk/6.js +++ b/public/js/chunk/6.js @@ -1,1730 +1,1277 @@ (window["webpackJsonp"] = window["webpackJsonp"] || []).push([[6],{ -/***/ "./node_modules/ant-design-vue/lib/carousel/index.js": -/*!***********************************************************!*\ - !*** ./node_modules/ant-design-vue/lib/carousel/index.js ***! - \***********************************************************/ +/***/ "./node_modules/axios/index.js": +/*!*************************************!*\ + !*** ./node_modules/axios/index.js ***! + \*************************************/ +/*! no static exports found */ +/***/ (function(module, exports, __webpack_require__) { + +module.exports = __webpack_require__(/*! ./lib/axios */ "./node_modules/axios/lib/axios.js"); + +/***/ }), + +/***/ "./node_modules/axios/lib/adapters/xhr.js": +/*!************************************************!*\ + !*** ./node_modules/axios/lib/adapters/xhr.js ***! + \************************************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { "use strict"; -Object.defineProperty(exports, "__esModule", { - value: true -}); -exports.CarouselProps = exports.CarouselEffect = undefined; +var utils = __webpack_require__(/*! ./../utils */ "./node_modules/axios/lib/utils.js"); +var settle = __webpack_require__(/*! ./../core/settle */ "./node_modules/axios/lib/core/settle.js"); +var buildURL = __webpack_require__(/*! ./../helpers/buildURL */ "./node_modules/axios/lib/helpers/buildURL.js"); +var parseHeaders = __webpack_require__(/*! ./../helpers/parseHeaders */ "./node_modules/axios/lib/helpers/parseHeaders.js"); +var isURLSameOrigin = __webpack_require__(/*! ./../helpers/isURLSameOrigin */ "./node_modules/axios/lib/helpers/isURLSameOrigin.js"); +var createError = __webpack_require__(/*! ../core/createError */ "./node_modules/axios/lib/core/createError.js"); + +module.exports = function xhrAdapter(config) { + return new Promise(function dispatchXhrRequest(resolve, reject) { + var requestData = config.data; + var requestHeaders = config.headers; + + if (utils.isFormData(requestData)) { + delete requestHeaders['Content-Type']; // Let the browser set it + } + + var request = new XMLHttpRequest(); + + // HTTP basic authentication + if (config.auth) { + var username = config.auth.username || ''; + var password = config.auth.password || ''; + requestHeaders.Authorization = 'Basic ' + btoa(username + ':' + password); + } + + request.open(config.method.toUpperCase(), buildURL(config.url, config.params, config.paramsSerializer), true); -var _babelHelperVueJsxMergeProps = __webpack_require__(/*! babel-helper-vue-jsx-merge-props */ "./node_modules/babel-helper-vue-jsx-merge-props/index.js"); + // Set the request timeout in MS + request.timeout = config.timeout; -var _babelHelperVueJsxMergeProps2 = _interopRequireDefault(_babelHelperVueJsxMergeProps); + // Listen for ready state + request.onreadystatechange = function handleLoad() { + if (!request || request.readyState !== 4) { + return; + } -var _extends2 = __webpack_require__(/*! babel-runtime/helpers/extends */ "./node_modules/babel-runtime/helpers/extends.js"); + // The request errored out and we didn't get a response, this will be + // handled by onerror instead + // With one exception: request that using file: protocol, most browsers + // will return status as 0 even though it's a successful request + if (request.status === 0 && !(request.responseURL && request.responseURL.indexOf('file:') === 0)) { + return; + } -var _extends3 = _interopRequireDefault(_extends2); + // Prepare the response + var responseHeaders = 'getAllResponseHeaders' in request ? parseHeaders(request.getAllResponseHeaders()) : null; + var responseData = !config.responseType || config.responseType === 'text' ? request.responseText : request.response; + var response = { + data: responseData, + status: request.status, + statusText: request.statusText, + headers: responseHeaders, + config: config, + request: request + }; -var _vueTypes = __webpack_require__(/*! ../_util/vue-types */ "./node_modules/ant-design-vue/lib/_util/vue-types/index.js"); + settle(resolve, reject, response); -var _vueTypes2 = _interopRequireDefault(_vueTypes); + // Clean up request + request = null; + }; -var _debounce = __webpack_require__(/*! lodash/debounce */ "./node_modules/lodash/debounce.js"); + // Handle browser request cancellation (as opposed to a manual cancellation) + request.onabort = function handleAbort() { + if (!request) { + return; + } -var _debounce2 = _interopRequireDefault(_debounce); + reject(createError('Request aborted', config, 'ECONNABORTED', request)); -var _propsUtil = __webpack_require__(/*! ../_util/props-util */ "./node_modules/ant-design-vue/lib/_util/props-util.js"); + // Clean up request + request = null; + }; -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } + // Handle low level network errors + request.onerror = function handleError() { + // Real errors are hidden from us by the browser + // onerror should only fire if it's a network error + reject(createError('Network Error', config, null, request)); -// matchMedia polyfill for -// https://github.com/WickyNilliams/enquire.js/issues/82 -if (typeof window !== 'undefined') { - var matchMediaPolyfill = function matchMediaPolyfill(mediaQuery) { - return { - media: mediaQuery, - matches: false, - addListener: function addListener() {}, - removeListener: function removeListener() {} + // Clean up request + request = null; }; - }; - window.matchMedia = window.matchMedia || matchMediaPolyfill; -} -// Use require over import (will be lifted up) -// make sure matchMedia polyfill run before require('vc-slick') -// Fix https://github.com/ant-design/ant-design/issues/6560 -// Fix https://github.com/ant-design/ant-design/issues/3308 -var SlickCarousel = __webpack_require__(/*! ../vc-slick/src */ "./node_modules/ant-design-vue/lib/vc-slick/src/index.js")['default']; - -var CarouselEffect = exports.CarouselEffect = _vueTypes2['default'].oneOf(['scrollx', 'fade']); -// Carousel -var CarouselProps = exports.CarouselProps = { - effect: CarouselEffect, - dots: _vueTypes2['default'].bool, - vertical: _vueTypes2['default'].bool, - autoplay: _vueTypes2['default'].bool, - easing: _vueTypes2['default'].string, - beforeChange: _vueTypes2['default'].func, - afterChange: _vueTypes2['default'].func, - // style: PropTypes.React.CSSProperties, - prefixCls: _vueTypes2['default'].string, - accessibility: _vueTypes2['default'].bool, - nextArrow: _vueTypes2['default'].any, - prevArrow: _vueTypes2['default'].any, - pauseOnHover: _vueTypes2['default'].bool, - // className: PropTypes.string, - adaptiveHeight: _vueTypes2['default'].bool, - arrows: _vueTypes2['default'].bool, - autoplaySpeed: _vueTypes2['default'].number, - centerMode: _vueTypes2['default'].bool, - centerPadding: _vueTypes2['default'].string, - cssEase: _vueTypes2['default'].string, - dotsClass: _vueTypes2['default'].string, - draggable: _vueTypes2['default'].bool, - fade: _vueTypes2['default'].bool, - focusOnSelect: _vueTypes2['default'].bool, - infinite: _vueTypes2['default'].bool, - initialSlide: _vueTypes2['default'].number, - lazyLoad: _vueTypes2['default'].bool, - rtl: _vueTypes2['default'].bool, - slide: _vueTypes2['default'].string, - slidesToShow: _vueTypes2['default'].number, - slidesToScroll: _vueTypes2['default'].number, - speed: _vueTypes2['default'].number, - swipe: _vueTypes2['default'].bool, - swipeToSlide: _vueTypes2['default'].bool, - touchMove: _vueTypes2['default'].bool, - touchThreshold: _vueTypes2['default'].number, - variableWidth: _vueTypes2['default'].bool, - useCSS: _vueTypes2['default'].bool, - slickGoTo: _vueTypes2['default'].number -}; -var Carousel = { - name: 'ACarousel', - props: (0, _propsUtil.initDefaultProps)(CarouselProps, { - dots: true, - arrows: false, - prefixCls: 'ant-carousel', - draggable: false - }), + // Handle timeout + request.ontimeout = function handleTimeout() { + reject(createError('timeout of ' + config.timeout + 'ms exceeded', config, 'ECONNABORTED', + request)); - // innerSlider: any; + // Clean up request + request = null; + }; - // private slick: any; + // Add xsrf header + // This is only done if running in a standard browser environment. + // Specifically not if we're in a web worker, or react-native. + if (utils.isStandardBrowserEnv()) { + var cookies = __webpack_require__(/*! ./../helpers/cookies */ "./node_modules/axios/lib/helpers/cookies.js"); - beforeMount: function beforeMount() { - this.onWindowResized = (0, _debounce2['default'])(this.onWindowResized, 500, { - leading: false - }); - }, - mounted: function mounted() { - var autoplay = this.autoplay; + // Add xsrf header + var xsrfValue = (config.withCredentials || isURLSameOrigin(config.url)) && config.xsrfCookieName ? + cookies.read(config.xsrfCookieName) : + undefined; - if (autoplay) { - window.addEventListener('resize', this.onWindowResized); + if (xsrfValue) { + requestHeaders[config.xsrfHeaderName] = xsrfValue; + } } - // https://github.com/ant-design/ant-design/issues/7191 - this.innerSlider = this.$refs.slick && this.$refs.slick.innerSlider; - }, - beforeDestroy: function beforeDestroy() { - var autoplay = this.autoplay; - - if (autoplay) { - window.removeEventListener('resize', this.onWindowResized); - this.onWindowResized.cancel(); + + // Add headers to the request + if ('setRequestHeader' in request) { + utils.forEach(requestHeaders, function setRequestHeader(val, key) { + if (typeof requestData === 'undefined' && key.toLowerCase() === 'content-type') { + // Remove Content-Type if data is undefined + delete requestHeaders[key]; + } else { + // Otherwise add header to the request + request.setRequestHeader(key, val); + } + }); } - }, - methods: { - onWindowResized: function onWindowResized() { - // Fix https://github.com/ant-design/ant-design/issues/2550 - var autoplay = this.autoplay; + // Add withCredentials to request if needed + if (config.withCredentials) { + request.withCredentials = true; + } - if (autoplay && this.$refs.slick && this.$refs.slick.innerSlider && this.$refs.slick.innerSlider.autoPlay) { - this.$refs.slick.innerSlider.autoPlay(); + // Add responseType to request if needed + if (config.responseType) { + try { + request.responseType = config.responseType; + } catch (e) { + // Expected DOMException thrown by browsers not compatible XMLHttpRequest Level 2. + // But, this can be suppressed for 'json' type as it can be parsed by default 'transformResponse' function. + if (config.responseType !== 'json') { + throw e; + } } - }, - next: function next() { - this.$refs.slick.slickNext(); - }, - prev: function prev() { - this.$refs.slick.slickPrev(); - }, - goTo: function goTo(slide) { - var dontAnimate = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false; - - this.$refs.slick.slickGoTo(slide, dontAnimate); } - }, - render: function render() { - var h = arguments[0]; + // Handle progress if needed + if (typeof config.onDownloadProgress === 'function') { + request.addEventListener('progress', config.onDownloadProgress); + } - var props = (0, _extends3['default'])({}, this.$props); - var $slots = this.$slots, - $listeners = this.$listeners; + // Not all browsers support upload events + if (typeof config.onUploadProgress === 'function' && request.upload) { + request.upload.addEventListener('progress', config.onUploadProgress); + } + if (config.cancelToken) { + // Handle cancellation + config.cancelToken.promise.then(function onCanceled(cancel) { + if (!request) { + return; + } - if (props.effect === 'fade') { - props.fade = true; + request.abort(); + reject(cancel); + // Clean up request + request = null; + }); } - var className = props.prefixCls; - if (props.vertical) { - className = className + ' ' + className + '-vertical'; + if (requestData === undefined) { + requestData = null; } - var SlickCarouselProps = { - props: (0, _extends3['default'])({}, props, { - nextArrow: (0, _propsUtil.getComponentFromProp)(this, 'nextArrow'), - prevArrow: (0, _propsUtil.getComponentFromProp)(this, 'prevArrow') - }), - on: $listeners, - scopedSlots: this.$scopedSlots - }; - return h( - 'div', - { 'class': className }, - [h( - SlickCarousel, - (0, _babelHelperVueJsxMergeProps2['default'])([{ ref: 'slick' }, SlickCarouselProps]), - [(0, _propsUtil.filterEmpty)($slots['default'])] - )] - ); - } + // Send the request + request.send(requestData); + }); +}; + + +/***/ }), + +/***/ "./node_modules/axios/lib/axios.js": +/*!*****************************************!*\ + !*** ./node_modules/axios/lib/axios.js ***! + \*****************************************/ +/*! no static exports found */ +/***/ (function(module, exports, __webpack_require__) { + +"use strict"; + + +var utils = __webpack_require__(/*! ./utils */ "./node_modules/axios/lib/utils.js"); +var bind = __webpack_require__(/*! ./helpers/bind */ "./node_modules/axios/lib/helpers/bind.js"); +var Axios = __webpack_require__(/*! ./core/Axios */ "./node_modules/axios/lib/core/Axios.js"); +var mergeConfig = __webpack_require__(/*! ./core/mergeConfig */ "./node_modules/axios/lib/core/mergeConfig.js"); +var defaults = __webpack_require__(/*! ./defaults */ "./node_modules/axios/lib/defaults.js"); + +/** + * Create an instance of Axios + * + * @param {Object} defaultConfig The default config for the instance + * @return {Axios} A new instance of Axios + */ +function createInstance(defaultConfig) { + var context = new Axios(defaultConfig); + var instance = bind(Axios.prototype.request, context); + + // Copy axios.prototype to instance + utils.extend(instance, Axios.prototype, context); + + // Copy context to instance + utils.extend(instance, context); + + return instance; +} + +// Create the default instance to be exported +var axios = createInstance(defaults); + +// Expose Axios class to allow class inheritance +axios.Axios = Axios; + +// Factory for creating new instances +axios.create = function create(instanceConfig) { + return createInstance(mergeConfig(axios.defaults, instanceConfig)); }; -/* istanbul ignore next */ -Carousel.install = function (Vue) { - Vue.component(Carousel.name, Carousel); +// Expose Cancel & CancelToken +axios.Cancel = __webpack_require__(/*! ./cancel/Cancel */ "./node_modules/axios/lib/cancel/Cancel.js"); +axios.CancelToken = __webpack_require__(/*! ./cancel/CancelToken */ "./node_modules/axios/lib/cancel/CancelToken.js"); +axios.isCancel = __webpack_require__(/*! ./cancel/isCancel */ "./node_modules/axios/lib/cancel/isCancel.js"); + +// Expose all/spread +axios.all = function all(promises) { + return Promise.all(promises); }; +axios.spread = __webpack_require__(/*! ./helpers/spread */ "./node_modules/axios/lib/helpers/spread.js"); + +module.exports = axios; + +// Allow use of default import syntax in TypeScript +module.exports.default = axios; -exports['default'] = Carousel; /***/ }), -/***/ "./node_modules/ant-design-vue/lib/vc-slick/src/arrows.js": -/*!****************************************************************!*\ - !*** ./node_modules/ant-design-vue/lib/vc-slick/src/arrows.js ***! - \****************************************************************/ +/***/ "./node_modules/axios/lib/cancel/Cancel.js": +/*!*************************************************!*\ + !*** ./node_modules/axios/lib/cancel/Cancel.js ***! + \*************************************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { "use strict"; -Object.defineProperty(exports, "__esModule", { - value: true -}); -exports.NextArrow = exports.PrevArrow = undefined; +/** + * A `Cancel` is an object that is thrown when an operation is canceled. + * + * @class + * @param {string=} message The message. + */ +function Cancel(message) { + this.message = message; +} -var _babelHelperVueJsxMergeProps = __webpack_require__(/*! babel-helper-vue-jsx-merge-props */ "./node_modules/babel-helper-vue-jsx-merge-props/index.js"); +Cancel.prototype.toString = function toString() { + return 'Cancel' + (this.message ? ': ' + this.message : ''); +}; -var _babelHelperVueJsxMergeProps2 = _interopRequireDefault(_babelHelperVueJsxMergeProps); +Cancel.prototype.__CANCEL__ = true; -var _extends2 = __webpack_require__(/*! babel-runtime/helpers/extends */ "./node_modules/babel-runtime/helpers/extends.js"); +module.exports = Cancel; -var _extends3 = _interopRequireDefault(_extends2); -var _vnode = __webpack_require__(/*! ../../_util/vnode */ "./node_modules/ant-design-vue/lib/_util/vnode.js"); +/***/ }), -var _innerSliderUtils = __webpack_require__(/*! ./utils/innerSliderUtils */ "./node_modules/ant-design-vue/lib/vc-slick/src/utils/innerSliderUtils.js"); +/***/ "./node_modules/axios/lib/cancel/CancelToken.js": +/*!******************************************************!*\ + !*** ./node_modules/axios/lib/cancel/CancelToken.js ***! + \******************************************************/ +/*! no static exports found */ +/***/ (function(module, exports, __webpack_require__) { -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } +"use strict"; -function noop() {} -var PrevArrow = exports.PrevArrow = { - functional: true, - clickHandler: function clickHandler(options, handle, e) { - if (e) { - e.preventDefault(); - } - handle(options, e); - }, - render: function render(createElement, context) { - var h = arguments[0]; - var props = context.props; - var clickHandler = props.clickHandler, - infinite = props.infinite, - currentSlide = props.currentSlide, - slideCount = props.slideCount, - slidesToShow = props.slidesToShow; - - var prevClasses = { 'slick-arrow': true, 'slick-prev': true }; - var prevHandler = function prevHandler(e) { - if (e) { - e.preventDefault(); - } - clickHandler({ message: 'previous' }); - }; +var Cancel = __webpack_require__(/*! ./Cancel */ "./node_modules/axios/lib/cancel/Cancel.js"); - if (!infinite && (currentSlide === 0 || slideCount <= slidesToShow)) { - prevClasses['slick-disabled'] = true; - prevHandler = noop; - } +/** + * A `CancelToken` is an object that can be used to request cancellation of an operation. + * + * @class + * @param {Function} executor The executor function. + */ +function CancelToken(executor) { + if (typeof executor !== 'function') { + throw new TypeError('executor must be a function.'); + } - var prevArrowProps = { - key: '0', - domProps: { - 'data-role': 'none' - }, - 'class': prevClasses, - style: { display: 'block' }, - on: { - click: prevHandler - } - }; - var customProps = { - currentSlide: currentSlide, - slideCount: slideCount - }; - var prevArrow = void 0; - - if (props.prevArrow) { - prevArrow = (0, _vnode.cloneElement)(props.prevArrow((0, _extends3['default'])({}, prevArrowProps, { - props: customProps - })), { - key: '0', - 'class': prevClasses, - style: { display: 'block' }, - on: { - click: prevHandler - } - }); - } else { - prevArrow = h( - 'button', - (0, _babelHelperVueJsxMergeProps2['default'])([{ key: '0', attrs: { type: 'button' } - }, prevArrowProps]), - [' ', 'Previous'] - ); + var resolvePromise; + this.promise = new Promise(function promiseExecutor(resolve) { + resolvePromise = resolve; + }); + + var token = this; + executor(function cancel(message) { + if (token.reason) { + // Cancellation has already been requested + return; } - return prevArrow; + token.reason = new Cancel(message); + resolvePromise(token.reason); + }); +} + +/** + * Throws a `Cancel` if cancellation has been requested. + */ +CancelToken.prototype.throwIfRequested = function throwIfRequested() { + if (this.reason) { + throw this.reason; } }; -var NextArrow = exports.NextArrow = { - functional: true, - clickHandler: function clickHandler(options, handle, e) { - if (e) { - e.preventDefault(); - } - handle(options, e); - }, - render: function render(createElement, context) { - var h = arguments[0]; - var props = context.props; - var clickHandler = props.clickHandler, - currentSlide = props.currentSlide, - slideCount = props.slideCount; - - - var nextClasses = { 'slick-arrow': true, 'slick-next': true }; - var nextHandler = function nextHandler(e) { - if (e) { - e.preventDefault(); - } - clickHandler({ message: 'next' }); - }; - if (!(0, _innerSliderUtils.canGoNext)(props)) { - nextClasses['slick-disabled'] = true; - nextHandler = noop; - } +/** + * Returns an object that contains a new `CancelToken` and a function that, when called, + * cancels the `CancelToken`. + */ +CancelToken.source = function source() { + var cancel; + var token = new CancelToken(function executor(c) { + cancel = c; + }); + return { + token: token, + cancel: cancel + }; +}; - var nextArrowProps = { - key: '1', - domProps: { - 'data-role': 'none' - }, - 'class': nextClasses, - style: { display: 'block' }, - on: { - click: nextHandler - } - }; - var customProps = { - currentSlide: currentSlide, - slideCount: slideCount - }; - var nextArrow = void 0; - - if (props.nextArrow) { - nextArrow = (0, _vnode.cloneElement)(props.nextArrow((0, _extends3['default'])({}, nextArrowProps, { - props: customProps - })), { - key: '1', - 'class': nextClasses, - style: { display: 'block' }, - on: { - click: nextHandler - } - }); - } else { - nextArrow = h( - 'button', - (0, _babelHelperVueJsxMergeProps2['default'])([{ key: '1', attrs: { type: 'button' } - }, nextArrowProps]), - [' ', 'Next'] - ); - } +module.exports = CancelToken; - return nextArrow; - } + +/***/ }), + +/***/ "./node_modules/axios/lib/cancel/isCancel.js": +/*!***************************************************!*\ + !*** ./node_modules/axios/lib/cancel/isCancel.js ***! + \***************************************************/ +/*! no static exports found */ +/***/ (function(module, exports, __webpack_require__) { + +"use strict"; + + +module.exports = function isCancel(value) { + return !!(value && value.__CANCEL__); }; + /***/ }), -/***/ "./node_modules/ant-design-vue/lib/vc-slick/src/default-props.js": -/*!***********************************************************************!*\ - !*** ./node_modules/ant-design-vue/lib/vc-slick/src/default-props.js ***! - \***********************************************************************/ +/***/ "./node_modules/axios/lib/core/Axios.js": +/*!**********************************************!*\ + !*** ./node_modules/axios/lib/core/Axios.js ***! + \**********************************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { "use strict"; -Object.defineProperty(exports, "__esModule", { - value: true +var utils = __webpack_require__(/*! ./../utils */ "./node_modules/axios/lib/utils.js"); +var buildURL = __webpack_require__(/*! ../helpers/buildURL */ "./node_modules/axios/lib/helpers/buildURL.js"); +var InterceptorManager = __webpack_require__(/*! ./InterceptorManager */ "./node_modules/axios/lib/core/InterceptorManager.js"); +var dispatchRequest = __webpack_require__(/*! ./dispatchRequest */ "./node_modules/axios/lib/core/dispatchRequest.js"); +var mergeConfig = __webpack_require__(/*! ./mergeConfig */ "./node_modules/axios/lib/core/mergeConfig.js"); + +/** + * Create a new instance of Axios + * + * @param {Object} instanceConfig The default config for the instance + */ +function Axios(instanceConfig) { + this.defaults = instanceConfig; + this.interceptors = { + request: new InterceptorManager(), + response: new InterceptorManager() + }; +} + +/** + * Dispatch a request + * + * @param {Object} config The config specific for this request (merged with this.defaults) + */ +Axios.prototype.request = function request(config) { + /*eslint no-param-reassign:0*/ + // Allow for axios('example/url'[, config]) a la fetch API + if (typeof config === 'string') { + config = arguments[1] || {}; + config.url = arguments[0]; + } else { + config = config || {}; + } + + config = mergeConfig(this.defaults, config); + config.method = config.method ? config.method.toLowerCase() : 'get'; + + // Hook up interceptors middleware + var chain = [dispatchRequest, undefined]; + var promise = Promise.resolve(config); + + this.interceptors.request.forEach(function unshiftRequestInterceptors(interceptor) { + chain.unshift(interceptor.fulfilled, interceptor.rejected); + }); + + this.interceptors.response.forEach(function pushResponseInterceptors(interceptor) { + chain.push(interceptor.fulfilled, interceptor.rejected); + }); + + while (chain.length) { + promise = promise.then(chain.shift(), chain.shift()); + } + + return promise; +}; + +Axios.prototype.getUri = function getUri(config) { + config = mergeConfig(this.defaults, config); + return buildURL(config.url, config.params, config.paramsSerializer).replace(/^\?/, ''); +}; + +// Provide aliases for supported request methods +utils.forEach(['delete', 'get', 'head', 'options'], function forEachMethodNoData(method) { + /*eslint func-names:0*/ + Axios.prototype[method] = function(url, config) { + return this.request(utils.merge(config || {}, { + method: method, + url: url + })); + }; +}); + +utils.forEach(['post', 'put', 'patch'], function forEachMethodWithData(method) { + /*eslint func-names:0*/ + Axios.prototype[method] = function(url, data, config) { + return this.request(utils.merge(config || {}, { + method: method, + url: url, + data: data + })); + }; }); -var _vueTypes = __webpack_require__(/*! ../../_util/vue-types */ "./node_modules/ant-design-vue/lib/_util/vue-types/index.js"); - -var _vueTypes2 = _interopRequireDefault(_vueTypes); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } - -var defaultProps = { - accessibility: _vueTypes2['default'].bool.def(true), - // 自定义高度 - adaptiveHeight: _vueTypes2['default'].bool.def(false), - afterChange: _vueTypes2['default'].any.def(null), - arrows: _vueTypes2['default'].bool.def(true), - autoplay: _vueTypes2['default'].bool.def(false), - autoplaySpeed: _vueTypes2['default'].number.def(3000), - beforeChange: _vueTypes2['default'].any.def(null), - centerMode: _vueTypes2['default'].bool.def(false), - centerPadding: _vueTypes2['default'].string.def('50px'), - cssEase: _vueTypes2['default'].string.def('ease'), - dots: _vueTypes2['default'].bool.def(false), - dotsClass: _vueTypes2['default'].string.def('slick-dots'), - draggable: _vueTypes2['default'].bool.def(true), - unslick: _vueTypes2['default'].bool.def(false), - easing: _vueTypes2['default'].string.def('linear'), - edgeFriction: _vueTypes2['default'].number.def(0.35), - fade: _vueTypes2['default'].bool.def(false), - focusOnSelect: _vueTypes2['default'].bool.def(false), - infinite: _vueTypes2['default'].bool.def(true), - initialSlide: _vueTypes2['default'].number.def(0), - lazyLoad: _vueTypes2['default'].any.def(null), - verticalSwiping: _vueTypes2['default'].bool.def(false), - asNavFor: _vueTypes2['default'].any.def(null), - // 圆点hover是否暂停 - pauseOnDotsHover: _vueTypes2['default'].bool.def(false), - // focus是否暂停 - pauseOnFocus: _vueTypes2['default'].bool.def(false), - // hover是否暂停 - pauseOnHover: _vueTypes2['default'].bool.def(true), - responsive: _vueTypes2['default'].any.def(null), - rows: _vueTypes2['default'].number.def(1), - rtl: _vueTypes2['default'].bool.def(false), - slide: _vueTypes2['default'].string.def('div'), - slidesPerRow: _vueTypes2['default'].number.def(1), - slidesToScroll: _vueTypes2['default'].number.def(1), - slidesToShow: _vueTypes2['default'].number.def(1), - speed: _vueTypes2['default'].number.def(500), - swipe: _vueTypes2['default'].bool.def(true), - swipeEvent: _vueTypes2['default'].any.def(null), - swipeToSlide: _vueTypes2['default'].bool.def(false), - touchMove: _vueTypes2['default'].bool.def(true), - touchThreshold: _vueTypes2['default'].number.def(5), - useCSS: _vueTypes2['default'].bool.def(true), - useTransform: _vueTypes2['default'].bool.def(true), - variableWidth: _vueTypes2['default'].bool.def(false), - vertical: _vueTypes2['default'].bool.def(false), - waitForAnimate: _vueTypes2['default'].bool.def(true), - children: _vueTypes2['default'].array, - __propsSymbol__: _vueTypes2['default'].any +module.exports = Axios; + + +/***/ }), + +/***/ "./node_modules/axios/lib/core/InterceptorManager.js": +/*!***********************************************************!*\ + !*** ./node_modules/axios/lib/core/InterceptorManager.js ***! + \***********************************************************/ +/*! no static exports found */ +/***/ (function(module, exports, __webpack_require__) { + +"use strict"; + + +var utils = __webpack_require__(/*! ./../utils */ "./node_modules/axios/lib/utils.js"); + +function InterceptorManager() { + this.handlers = []; +} + +/** + * Add a new interceptor to the stack + * + * @param {Function} fulfilled The function to handle `then` for a `Promise` + * @param {Function} rejected The function to handle `reject` for a `Promise` + * + * @return {Number} An ID used to remove interceptor later + */ +InterceptorManager.prototype.use = function use(fulfilled, rejected) { + this.handlers.push({ + fulfilled: fulfilled, + rejected: rejected + }); + return this.handlers.length - 1; +}; + +/** + * Remove an interceptor from the stack + * + * @param {Number} id The ID that was returned by `use` + */ +InterceptorManager.prototype.eject = function eject(id) { + if (this.handlers[id]) { + this.handlers[id] = null; + } +}; + +/** + * Iterate over all the registered interceptors + * + * This method is particularly useful for skipping over any + * interceptors that may have become `null` calling `eject`. + * + * @param {Function} fn The function to call for each interceptor + */ +InterceptorManager.prototype.forEach = function forEach(fn) { + utils.forEach(this.handlers, function forEachHandler(h) { + if (h !== null) { + fn(h); + } + }); }; -exports['default'] = defaultProps; +module.exports = InterceptorManager; + /***/ }), -/***/ "./node_modules/ant-design-vue/lib/vc-slick/src/dots.js": -/*!**************************************************************!*\ - !*** ./node_modules/ant-design-vue/lib/vc-slick/src/dots.js ***! - \**************************************************************/ +/***/ "./node_modules/axios/lib/core/createError.js": +/*!****************************************************!*\ + !*** ./node_modules/axios/lib/core/createError.js ***! + \****************************************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { "use strict"; -Object.defineProperty(exports, "__esModule", { - value: true -}); +var enhanceError = __webpack_require__(/*! ./enhanceError */ "./node_modules/axios/lib/core/enhanceError.js"); + +/** + * Create an Error with the specified message, config, error code, request and response. + * + * @param {string} message The error message. + * @param {Object} config The config. + * @param {string} [code] The error code (for example, 'ECONNABORTED'). + * @param {Object} [request] The request. + * @param {Object} [response] The response. + * @returns {Error} The created error. + */ +module.exports = function createError(message, config, code, request, response) { + var error = new Error(message); + return enhanceError(error, config, code, request, response); +}; -var _extends2 = __webpack_require__(/*! babel-runtime/helpers/extends */ "./node_modules/babel-runtime/helpers/extends.js"); -var _extends3 = _interopRequireDefault(_extends2); +/***/ }), -var _classnames = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js"); +/***/ "./node_modules/axios/lib/core/dispatchRequest.js": +/*!********************************************************!*\ + !*** ./node_modules/axios/lib/core/dispatchRequest.js ***! + \********************************************************/ +/*! no static exports found */ +/***/ (function(module, exports, __webpack_require__) { -var _classnames2 = _interopRequireDefault(_classnames); +"use strict"; -var _vnode = __webpack_require__(/*! ../../_util/vnode */ "./node_modules/ant-design-vue/lib/_util/vnode.js"); -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } +var utils = __webpack_require__(/*! ./../utils */ "./node_modules/axios/lib/utils.js"); +var transformData = __webpack_require__(/*! ./transformData */ "./node_modules/axios/lib/core/transformData.js"); +var isCancel = __webpack_require__(/*! ../cancel/isCancel */ "./node_modules/axios/lib/cancel/isCancel.js"); +var defaults = __webpack_require__(/*! ../defaults */ "./node_modules/axios/lib/defaults.js"); +var isAbsoluteURL = __webpack_require__(/*! ./../helpers/isAbsoluteURL */ "./node_modules/axios/lib/helpers/isAbsoluteURL.js"); +var combineURLs = __webpack_require__(/*! ./../helpers/combineURLs */ "./node_modules/axios/lib/helpers/combineURLs.js"); -var getDotCount = function getDotCount(spec) { - var dots = void 0; +/** + * Throws a `Cancel` if cancellation has been requested. + */ +function throwIfCancellationRequested(config) { + if (config.cancelToken) { + config.cancelToken.throwIfRequested(); + } +} - if (spec.infinite) { - dots = Math.ceil(spec.slideCount / spec.slidesToScroll); - } else { - dots = Math.ceil((spec.slideCount - spec.slidesToShow) / spec.slidesToScroll) + 1; +/** + * Dispatch a request to the server using the configured adapter. + * + * @param {object} config The config that is to be used for the request + * @returns {Promise} The Promise to be fulfilled + */ +module.exports = function dispatchRequest(config) { + throwIfCancellationRequested(config); + + // Support baseURL config + if (config.baseURL && !isAbsoluteURL(config.url)) { + config.url = combineURLs(config.baseURL, config.url); } - return dots; -}; + // Ensure headers exist + config.headers = config.headers || {}; -exports['default'] = { - functional: true, - render: function render(createElement, context) { - var h = arguments[0]; - var props = context.props, - listeners = context.listeners; - var slideCount = props.slideCount, - slidesToScroll = props.slidesToScroll, - slidesToShow = props.slidesToShow, - infinite = props.infinite, - currentSlide = props.currentSlide, - appendDots = props.appendDots, - customPaging = props.customPaging, - clickHandler = props.clickHandler, - dotsClass = props.dotsClass; - - var dotCount = getDotCount({ - slideCount: slideCount, - slidesToScroll: slidesToScroll, - slidesToShow: slidesToShow, - infinite: infinite - }); + // Transform request data + config.data = transformData( + config.data, + config.headers, + config.transformRequest + ); - // Apply join & split to Array to pre-fill it for IE8 - // - // Credit: http://stackoverflow.com/a/13735425/1849458 - var mouseenter = listeners.mouseenter, - mouseover = listeners.mouseover, - mouseleave = listeners.mouseleave; - - var mouseEvents = { mouseenter: mouseenter, mouseover: mouseover, mouseleave: mouseleave }; - var dots = Array.apply(null, Array(dotCount + 1).join('0').split('')).map(function (x, i) { - var leftBound = i * slidesToScroll; - var rightBound = i * slidesToScroll + (slidesToScroll - 1); - var className = (0, _classnames2['default'])({ - 'slick-active': currentSlide >= leftBound && currentSlide <= rightBound - }); + // Flatten headers + config.headers = utils.merge( + config.headers.common || {}, + config.headers[config.method] || {}, + config.headers || {} + ); - var dotOptions = { - message: 'dots', - index: i, - slidesToScroll: slidesToScroll, - currentSlide: currentSlide - }; - function onClick(e) { - // In Autoplay the focus stays on clicked button even after transition - // to next slide. That only goes away by click somewhere outside - if (e) { - e.preventDefault(); - } - clickHandler(dotOptions); + utils.forEach( + ['delete', 'get', 'head', 'post', 'put', 'patch', 'common'], + function cleanHeaderConfig(method) { + delete config.headers[method]; + } + ); + + var adapter = config.adapter || defaults.adapter; + + return adapter(config).then(function onAdapterResolution(response) { + throwIfCancellationRequested(config); + + // Transform response data + response.data = transformData( + response.data, + response.headers, + config.transformResponse + ); + + return response; + }, function onAdapterRejection(reason) { + if (!isCancel(reason)) { + throwIfCancellationRequested(config); + + // Transform response data + if (reason && reason.response) { + reason.response.data = transformData( + reason.response.data, + reason.response.headers, + config.transformResponse + ); } - return h( - 'li', - { key: i, 'class': className }, - [(0, _vnode.cloneElement)(customPaging({ i: i }), { - on: { - click: onClick - } - })] - ); - }); + } - return (0, _vnode.cloneElement)(appendDots({ dots: dots }), { - 'class': dotsClass, - on: (0, _extends3['default'])({}, mouseEvents) - }); - } + return Promise.reject(reason); + }); }; + /***/ }), -/***/ "./node_modules/ant-design-vue/lib/vc-slick/src/index.js": -/*!***************************************************************!*\ - !*** ./node_modules/ant-design-vue/lib/vc-slick/src/index.js ***! - \***************************************************************/ +/***/ "./node_modules/axios/lib/core/enhanceError.js": +/*!*****************************************************!*\ + !*** ./node_modules/axios/lib/core/enhanceError.js ***! + \*****************************************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { "use strict"; -Object.defineProperty(exports, "__esModule", { - value: true -}); - -var _slider = __webpack_require__(/*! ./slider */ "./node_modules/ant-design-vue/lib/vc-slick/src/slider.js"); +/** + * Update an Error with the specified config, error code, and response. + * + * @param {Error} error The error to update. + * @param {Object} config The config. + * @param {string} [code] The error code (for example, 'ECONNABORTED'). + * @param {Object} [request] The request. + * @param {Object} [response] The response. + * @returns {Error} The error. + */ +module.exports = function enhanceError(error, config, code, request, response) { + error.config = config; + if (code) { + error.code = code; + } -var _slider2 = _interopRequireDefault(_slider); + error.request = request; + error.response = response; + error.isAxiosError = true; -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } + error.toJSON = function() { + return { + // Standard + message: this.message, + name: this.name, + // Microsoft + description: this.description, + number: this.number, + // Mozilla + fileName: this.fileName, + lineNumber: this.lineNumber, + columnNumber: this.columnNumber, + stack: this.stack, + // Axios + config: this.config, + code: this.code + }; + }; + return error; +}; -exports['default'] = _slider2['default']; // base react-slick 0.23.2 /***/ }), -/***/ "./node_modules/ant-design-vue/lib/vc-slick/src/initial-state.js": -/*!***********************************************************************!*\ - !*** ./node_modules/ant-design-vue/lib/vc-slick/src/initial-state.js ***! - \***********************************************************************/ +/***/ "./node_modules/axios/lib/core/mergeConfig.js": +/*!****************************************************!*\ + !*** ./node_modules/axios/lib/core/mergeConfig.js ***! + \****************************************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { "use strict"; -Object.defineProperty(exports, "__esModule", { - value: true -}); -var initialState = { - animating: false, - autoplaying: null, - currentDirection: 0, - currentLeft: null, - currentSlide: 0, - direction: 1, - dragging: false, - edgeDragged: false, - initialized: false, - lazyLoadedList: [], - listHeight: null, - listWidth: null, - scrolling: false, - slideCount: null, - slideHeight: null, - slideWidth: null, - swipeLeft: null, - swiped: false, // used by swipeEvent. differentites between touch and swipe. - swiping: false, - touchObject: { startX: 0, startY: 0, curX: 0, curY: 0 }, - trackStyle: {}, - trackWidth: 0 +var utils = __webpack_require__(/*! ../utils */ "./node_modules/axios/lib/utils.js"); + +/** + * Config-specific merge-function which creates a new config-object + * by merging two configuration objects together. + * + * @param {Object} config1 + * @param {Object} config2 + * @returns {Object} New object resulting from merging config2 to config1 + */ +module.exports = function mergeConfig(config1, config2) { + // eslint-disable-next-line no-param-reassign + config2 = config2 || {}; + var config = {}; + + utils.forEach(['url', 'method', 'params', 'data'], function valueFromConfig2(prop) { + if (typeof config2[prop] !== 'undefined') { + config[prop] = config2[prop]; + } + }); + + utils.forEach(['headers', 'auth', 'proxy'], function mergeDeepProperties(prop) { + if (utils.isObject(config2[prop])) { + config[prop] = utils.deepMerge(config1[prop], config2[prop]); + } else if (typeof config2[prop] !== 'undefined') { + config[prop] = config2[prop]; + } else if (utils.isObject(config1[prop])) { + config[prop] = utils.deepMerge(config1[prop]); + } else if (typeof config1[prop] !== 'undefined') { + config[prop] = config1[prop]; + } + }); + + utils.forEach([ + 'baseURL', 'transformRequest', 'transformResponse', 'paramsSerializer', + 'timeout', 'withCredentials', 'adapter', 'responseType', 'xsrfCookieName', + 'xsrfHeaderName', 'onUploadProgress', 'onDownloadProgress', 'maxContentLength', + 'validateStatus', 'maxRedirects', 'httpAgent', 'httpsAgent', 'cancelToken', + 'socketPath' + ], function defaultToConfig2(prop) { + if (typeof config2[prop] !== 'undefined') { + config[prop] = config2[prop]; + } else if (typeof config1[prop] !== 'undefined') { + config[prop] = config1[prop]; + } + }); + + return config; }; -exports["default"] = initialState; /***/ }), -/***/ "./node_modules/ant-design-vue/lib/vc-slick/src/inner-slider.js": -/*!**********************************************************************!*\ - !*** ./node_modules/ant-design-vue/lib/vc-slick/src/inner-slider.js ***! - \**********************************************************************/ +/***/ "./node_modules/axios/lib/core/settle.js": +/*!***********************************************!*\ + !*** ./node_modules/axios/lib/core/settle.js ***! + \***********************************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { "use strict"; -Object.defineProperty(exports, "__esModule", { - value: true -}); +var createError = __webpack_require__(/*! ./createError */ "./node_modules/axios/lib/core/createError.js"); -var _typeof2 = __webpack_require__(/*! babel-runtime/helpers/typeof */ "./node_modules/babel-runtime/helpers/typeof.js"); +/** + * Resolve or reject a Promise based on response status. + * + * @param {Function} resolve A function that resolves the promise. + * @param {Function} reject A function that rejects the promise. + * @param {object} response The response. + */ +module.exports = function settle(resolve, reject, response) { + var validateStatus = response.config.validateStatus; + if (!validateStatus || validateStatus(response.status)) { + resolve(response); + } else { + reject(createError( + 'Request failed with status code ' + response.status, + response.config, + null, + response.request, + response + )); + } +}; -var _typeof3 = _interopRequireDefault(_typeof2); -var _objectWithoutProperties2 = __webpack_require__(/*! babel-runtime/helpers/objectWithoutProperties */ "./node_modules/babel-runtime/helpers/objectWithoutProperties.js"); +/***/ }), -var _objectWithoutProperties3 = _interopRequireDefault(_objectWithoutProperties2); +/***/ "./node_modules/axios/lib/core/transformData.js": +/*!******************************************************!*\ + !*** ./node_modules/axios/lib/core/transformData.js ***! + \******************************************************/ +/*! no static exports found */ +/***/ (function(module, exports, __webpack_require__) { -var _extends2 = __webpack_require__(/*! babel-runtime/helpers/extends */ "./node_modules/babel-runtime/helpers/extends.js"); +"use strict"; -var _extends3 = _interopRequireDefault(_extends2); -var _debounce = __webpack_require__(/*! lodash/debounce */ "./node_modules/lodash/debounce.js"); +var utils = __webpack_require__(/*! ./../utils */ "./node_modules/axios/lib/utils.js"); + +/** + * Transform the data for a request or a response + * + * @param {Object|String} data The data to be transformed + * @param {Array} headers The headers for the request or response + * @param {Array|Function} fns A single function or Array of functions + * @returns {*} The resulting transformed data + */ +module.exports = function transformData(data, headers, fns) { + /*eslint no-param-reassign:0*/ + utils.forEach(fns, function transform(fn) { + data = fn(data, headers); + }); -var _debounce2 = _interopRequireDefault(_debounce); + return data; +}; -var _classnames = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js"); -var _classnames2 = _interopRequireDefault(_classnames); +/***/ }), -var _vue = __webpack_require__(/*! vue */ "./node_modules/vue/dist/vue.common.js"); +/***/ "./node_modules/axios/lib/defaults.js": +/*!********************************************!*\ + !*** ./node_modules/axios/lib/defaults.js ***! + \********************************************/ +/*! no static exports found */ +/***/ (function(module, exports, __webpack_require__) { -var _vue2 = _interopRequireDefault(_vue); +"use strict"; +/* WEBPACK VAR INJECTION */(function(process) { -var _vueRef = __webpack_require__(/*! vue-ref */ "./node_modules/vue-ref/index.js"); +var utils = __webpack_require__(/*! ./utils */ "./node_modules/axios/lib/utils.js"); +var normalizeHeaderName = __webpack_require__(/*! ./helpers/normalizeHeaderName */ "./node_modules/axios/lib/helpers/normalizeHeaderName.js"); -var _vueRef2 = _interopRequireDefault(_vueRef); +var DEFAULT_CONTENT_TYPE = { + 'Content-Type': 'application/x-www-form-urlencoded' +}; -var _propsUtil = __webpack_require__(/*! ../../_util/props-util */ "./node_modules/ant-design-vue/lib/_util/props-util.js"); +function setContentTypeIfUnset(headers, value) { + if (!utils.isUndefined(headers) && utils.isUndefined(headers['Content-Type'])) { + headers['Content-Type'] = value; + } +} -var _BaseMixin = __webpack_require__(/*! ../../_util/BaseMixin */ "./node_modules/ant-design-vue/lib/_util/BaseMixin.js"); +function getDefaultAdapter() { + var adapter; + // Only Node.JS has a process variable that is of [[Class]] process + if (typeof process !== 'undefined' && Object.prototype.toString.call(process) === '[object process]') { + // For node use HTTP adapter + adapter = __webpack_require__(/*! ./adapters/http */ "./node_modules/axios/lib/adapters/xhr.js"); + } else if (typeof XMLHttpRequest !== 'undefined') { + // For browsers use XHR adapter + adapter = __webpack_require__(/*! ./adapters/xhr */ "./node_modules/axios/lib/adapters/xhr.js"); + } + return adapter; +} -var _BaseMixin2 = _interopRequireDefault(_BaseMixin); +var defaults = { + adapter: getDefaultAdapter(), + + transformRequest: [function transformRequest(data, headers) { + normalizeHeaderName(headers, 'Accept'); + normalizeHeaderName(headers, 'Content-Type'); + if (utils.isFormData(data) || + utils.isArrayBuffer(data) || + utils.isBuffer(data) || + utils.isStream(data) || + utils.isFile(data) || + utils.isBlob(data) + ) { + return data; + } + if (utils.isArrayBufferView(data)) { + return data.buffer; + } + if (utils.isURLSearchParams(data)) { + setContentTypeIfUnset(headers, 'application/x-www-form-urlencoded;charset=utf-8'); + return data.toString(); + } + if (utils.isObject(data)) { + setContentTypeIfUnset(headers, 'application/json;charset=utf-8'); + return JSON.stringify(data); + } + return data; + }], + + transformResponse: [function transformResponse(data) { + /*eslint no-param-reassign:0*/ + if (typeof data === 'string') { + try { + data = JSON.parse(data); + } catch (e) { /* Ignore */ } + } + return data; + }], -var _defaultProps = __webpack_require__(/*! ./default-props */ "./node_modules/ant-design-vue/lib/vc-slick/src/default-props.js"); + /** + * A timeout in milliseconds to abort a request. If set to 0 (default) a + * timeout is not created. + */ + timeout: 0, -var _defaultProps2 = _interopRequireDefault(_defaultProps); + xsrfCookieName: 'XSRF-TOKEN', + xsrfHeaderName: 'X-XSRF-TOKEN', -var _initialState = __webpack_require__(/*! ./initial-state */ "./node_modules/ant-design-vue/lib/vc-slick/src/initial-state.js"); + maxContentLength: -1, -var _initialState2 = _interopRequireDefault(_initialState); + validateStatus: function validateStatus(status) { + return status >= 200 && status < 300; + } +}; -var _innerSliderUtils = __webpack_require__(/*! ./utils/innerSliderUtils */ "./node_modules/ant-design-vue/lib/vc-slick/src/utils/innerSliderUtils.js"); +defaults.headers = { + common: { + 'Accept': 'application/json, text/plain, */*' + } +}; -var _track = __webpack_require__(/*! ./track */ "./node_modules/ant-design-vue/lib/vc-slick/src/track.js"); +utils.forEach(['delete', 'get', 'head'], function forEachMethodNoData(method) { + defaults.headers[method] = {}; +}); -var _track2 = _interopRequireDefault(_track); +utils.forEach(['post', 'put', 'patch'], function forEachMethodWithData(method) { + defaults.headers[method] = utils.merge(DEFAULT_CONTENT_TYPE); +}); -var _dots = __webpack_require__(/*! ./dots */ "./node_modules/ant-design-vue/lib/vc-slick/src/dots.js"); +module.exports = defaults; -var _dots2 = _interopRequireDefault(_dots); +/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./../../process/browser.js */ "./node_modules/process/browser.js"))) -var _arrows = __webpack_require__(/*! ./arrows */ "./node_modules/ant-design-vue/lib/vc-slick/src/arrows.js"); +/***/ }), -var _resizeObserverPolyfill = __webpack_require__(/*! resize-observer-polyfill */ "./node_modules/resize-observer-polyfill/dist/ResizeObserver.es.js"); +/***/ "./node_modules/axios/lib/helpers/bind.js": +/*!************************************************!*\ + !*** ./node_modules/axios/lib/helpers/bind.js ***! + \************************************************/ +/*! no static exports found */ +/***/ (function(module, exports, __webpack_require__) { -var _resizeObserverPolyfill2 = _interopRequireDefault(_resizeObserverPolyfill); +"use strict"; -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } -_vue2['default'].use(_vueRef2['default'], { name: 'ant-ref' }); +module.exports = function bind(fn, thisArg) { + return function wrap() { + var args = new Array(arguments.length); + for (var i = 0; i < args.length; i++) { + args[i] = arguments[i]; + } + return fn.apply(thisArg, args); + }; +}; -function noop() {} -exports['default'] = { - props: (0, _extends3['default'])({}, _defaultProps2['default']), - mixins: [_BaseMixin2['default']], - data: function data() { - this.preProps = (0, _extends3['default'])({}, this.$props); - this.list = null; - this.track = null; - this.callbackTimers = []; - this.clickable = true; - this.debouncedResize = null; - return (0, _extends3['default'])({}, _initialState2['default'], { - currentSlide: this.initialSlide, - slideCount: this.children.length - }); - }, - - methods: { - listRefHandler: function listRefHandler(ref) { - this.list = ref; - }, - trackRefHandler: function trackRefHandler(ref) { - this.track = ref; - }, - adaptHeight: function adaptHeight() { - if (this.adaptiveHeight && this.list) { - var elem = this.list.querySelector('[data-index="' + this.currentSlide + '"]'); - this.list.style.height = (0, _innerSliderUtils.getHeight)(elem) + 'px'; - } - }, - onWindowResized: function onWindowResized(setTrackStyle) { - var _this = this; - - if (this.debouncedResize) this.debouncedResize.cancel(); - this.debouncedResize = (0, _debounce2['default'])(function () { - return _this.resizeWindow(setTrackStyle); - }, 50); - this.debouncedResize(); - }, - resizeWindow: function resizeWindow() { - var _this2 = this; - - var setTrackStyle = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : true; - - if (!this.track) return; - var spec = (0, _extends3['default'])({ - listRef: this.list, - trackRef: this.track, - children: this.children - }, this.$props, this.$data); - this.updateState(spec, setTrackStyle, function () { - if (_this2.autoplay) { - _this2.handleAutoPlay('update'); - } else { - _this2.pause('paused'); - } - }); - // animating state should be cleared while resizing, otherwise autoplay stops working - this.setState({ - animating: false - }); - clearTimeout(this.animationEndCallback); - delete this.animationEndCallback; - }, - updateState: function updateState(spec, setTrackStyle, callback) { - var updatedState = (0, _innerSliderUtils.initializedState)(spec); - spec = (0, _extends3['default'])({}, spec, updatedState, { slideIndex: updatedState.currentSlide }); - var targetLeft = (0, _innerSliderUtils.getTrackLeft)(spec); - spec = (0, _extends3['default'])({}, spec, { left: targetLeft }); - var trackStyle = (0, _innerSliderUtils.getTrackCSS)(spec); - if (setTrackStyle || this.children.length !== spec.children.length) { - updatedState['trackStyle'] = trackStyle; - } - this.setState(updatedState, callback); - }, - ssrInit: function ssrInit() { - var children = this.children; - if (this.variableWidth) { - var _trackWidth = 0; - var _trackLeft = 0; - var childrenWidths = []; - var preClones = (0, _innerSliderUtils.getPreClones)((0, _extends3['default'])({}, this.$props, this.$data, { - slideCount: children.length - })); - var postClones = (0, _innerSliderUtils.getPostClones)((0, _extends3['default'])({}, this.$props, this.$data, { - slideCount: children.length - })); - children.forEach(function (child) { - var childWidth = (0, _propsUtil.getStyle)(child).width.split('px')[0]; - childrenWidths.push(childWidth); - _trackWidth += childWidth; - }); - for (var i = 0; i < preClones; i++) { - _trackLeft += childrenWidths[childrenWidths.length - 1 - i]; - _trackWidth += childrenWidths[childrenWidths.length - 1 - i]; - } - for (var _i = 0; _i < postClones; _i++) { - _trackWidth += childrenWidths[_i]; - } - for (var _i2 = 0; _i2 < this.currentSlide; _i2++) { - _trackLeft += childrenWidths[_i2]; - } - var _trackStyle = { - width: _trackWidth + 'px', - left: -_trackLeft + 'px' - }; - if (this.centerMode) { - var currentWidth = childrenWidths[this.currentSlide] + 'px'; - _trackStyle.left = 'calc(' + _trackStyle.left + ' + (100% - ' + currentWidth + ') / 2 ) '; - } - this.setState({ - trackStyle: _trackStyle - }); +/***/ }), + +/***/ "./node_modules/axios/lib/helpers/buildURL.js": +/*!****************************************************!*\ + !*** ./node_modules/axios/lib/helpers/buildURL.js ***! + \****************************************************/ +/*! no static exports found */ +/***/ (function(module, exports, __webpack_require__) { + +"use strict"; + + +var utils = __webpack_require__(/*! ./../utils */ "./node_modules/axios/lib/utils.js"); + +function encode(val) { + return encodeURIComponent(val). + replace(/%40/gi, '@'). + replace(/%3A/gi, ':'). + replace(/%24/g, '$'). + replace(/%2C/gi, ','). + replace(/%20/g, '+'). + replace(/%5B/gi, '['). + replace(/%5D/gi, ']'); +} + +/** + * Build a URL by appending params to the end + * + * @param {string} url The base of the url (e.g., http://www.google.com) + * @param {object} [params] The params to be appended + * @returns {string} The formatted url + */ +module.exports = function buildURL(url, params, paramsSerializer) { + /*eslint no-param-reassign:0*/ + if (!params) { + return url; + } + + var serializedParams; + if (paramsSerializer) { + serializedParams = paramsSerializer(params); + } else if (utils.isURLSearchParams(params)) { + serializedParams = params.toString(); + } else { + var parts = []; + + utils.forEach(params, function serialize(val, key) { + if (val === null || typeof val === 'undefined') { return; } - var childrenCount = children.length; - var spec = (0, _extends3['default'])({}, this.$props, this.$data, { slideCount: childrenCount }); - var slideCount = (0, _innerSliderUtils.getPreClones)(spec) + (0, _innerSliderUtils.getPostClones)(spec) + childrenCount; - var trackWidth = 100 / this.slidesToShow * slideCount; - var slideWidth = 100 / slideCount; - var trackLeft = -slideWidth * ((0, _innerSliderUtils.getPreClones)(spec) + this.currentSlide) * trackWidth / 100; - if (this.centerMode) { - trackLeft += (100 - slideWidth * trackWidth / 100) / 2; - } - var trackStyle = { - width: trackWidth + '%', - left: trackLeft + '%' - }; - this.setState({ - slideWidth: slideWidth + '%', - trackStyle: trackStyle - }); - }, - checkImagesLoad: function checkImagesLoad() { - var _this3 = this; - - var images = document.querySelectorAll('.slick-slide img'); - var imagesCount = images.length; - var loadedCount = 0; - Array.prototype.forEach.call(images, function (image) { - var handler = function handler() { - return ++loadedCount && loadedCount >= imagesCount && _this3.onWindowResized(); - }; - if (!image.onclick) { - image.onclick = function () { - return image.parentNode.focus(); - }; - } else { - var prevClickHandler = image.onclick; - image.onclick = function () { - prevClickHandler(); - image.parentNode.focus(); - }; - } - if (!image.onload) { - if (_this3.$props.lazyLoad) { - image.onload = function () { - _this3.adaptHeight(); - _this3.callbackTimers.push(setTimeout(_this3.onWindowResized, _this3.speed)); - }; - } else { - image.onload = handler; - image.onerror = function () { - handler(); - _this3.$emit('lazyLoadError'); - }; - } - } - }); - }, - progressiveLazyLoad: function progressiveLazyLoad() { - var slidesToLoad = []; - var spec = (0, _extends3['default'])({}, this.$props, this.$data); - for (var index = this.currentSlide; index < this.slideCount + (0, _innerSliderUtils.getPostClones)(spec); index++) { - if (this.lazyLoadedList.indexOf(index) < 0) { - slidesToLoad.push(index); - break; - } - } - for (var _index = this.currentSlide - 1; _index >= -(0, _innerSliderUtils.getPreClones)(spec); _index--) { - if (this.lazyLoadedList.indexOf(_index) < 0) { - slidesToLoad.push(_index); - break; - } - } - if (slidesToLoad.length > 0) { - this.setState(function (state) { - return { - lazyLoadedList: state.lazyLoadedList.concat(slidesToLoad) - }; - }); - this.$emit('lazyLoad', slidesToLoad); - } else { - if (this.lazyLoadTimer) { - clearInterval(this.lazyLoadTimer); - delete this.lazyLoadTimer; - } - } - }, - slideHandler: function slideHandler(index) { - var _this4 = this; - - var dontAnimate = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false; - var _$props = this.$props, - asNavFor = _$props.asNavFor, - currentSlide = _$props.currentSlide, - beforeChange = _$props.beforeChange, - speed = _$props.speed, - afterChange = _$props.afterChange; - - var _slideHandler2 = (0, _innerSliderUtils.slideHandler)((0, _extends3['default'])({ - index: index - }, this.$props, this.$data, { - trackRef: this.track, - useCSS: this.useCSS && !dontAnimate - })), - state = _slideHandler2.state, - nextState = _slideHandler2.nextState; - - if (!state) return; - beforeChange && beforeChange(currentSlide, state.currentSlide); - var slidesToLoad = state.lazyLoadedList.filter(function (value) { - return _this4.lazyLoadedList.indexOf(value) < 0; - }); - if (this.$listeners.lazyLoad && slidesToLoad.length > 0) { - this.$emit('lazyLoad', slidesToLoad); - } - this.setState(state, function () { - asNavFor && asNavFor.innerSlider.currentSlide !== currentSlide && asNavFor.innerSlider.slideHandler(index); - if (!nextState) return; - _this4.animationEndCallback = setTimeout(function () { - var animating = nextState.animating, - firstBatch = (0, _objectWithoutProperties3['default'])(nextState, ['animating']); - - _this4.setState(firstBatch, function () { - _this4.callbackTimers.push(setTimeout(function () { - return _this4.setState({ animating: animating }); - }, 10)); - afterChange && afterChange(state.currentSlide); - delete _this4.animationEndCallback; - }); - }, speed); - }); - }, - changeSlide: function changeSlide(options) { - var dontAnimate = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false; - - var spec = (0, _extends3['default'])({}, this.$props, this.$data); - var targetSlide = (0, _innerSliderUtils.changeSlide)(spec, options); - if (targetSlide !== 0 && !targetSlide) return; - if (dontAnimate === true) { - this.slideHandler(targetSlide, dontAnimate); - } else { - this.slideHandler(targetSlide); - } - }, - clickHandler: function clickHandler(e) { - if (this.clickable === false) { - e.stopPropagation(); - e.preventDefault(); - } - this.clickable = true; - }, - keyHandler: function keyHandler(e) { - var dir = (0, _innerSliderUtils.keyHandler)(e, this.accessibility, this.rtl); - dir !== '' && this.changeSlide({ message: dir }); - }, - selectHandler: function selectHandler(options) { - this.changeSlide(options); - }, - disableBodyScroll: function disableBodyScroll() { - var preventDefault = function preventDefault(e) { - e = e || window.event; - if (e.preventDefault) e.preventDefault(); - e.returnValue = false; - }; - window.ontouchmove = preventDefault; - }, - enableBodyScroll: function enableBodyScroll() { - window.ontouchmove = null; - }, - swipeStart: function swipeStart(e) { - if (this.verticalSwiping) { - this.disableBodyScroll(); - } - var state = (0, _innerSliderUtils.swipeStart)(e, this.swipe, this.draggable); - state !== '' && this.setState(state); - }, - swipeMove: function swipeMove(e) { - var state = (0, _innerSliderUtils.swipeMove)(e, (0, _extends3['default'])({}, this.$props, this.$data, { - trackRef: this.track, - listRef: this.list, - slideIndex: this.currentSlide - })); - if (!state) return; - if (state['swiping']) { - this.clickable = false; - } - this.setState(state); - }, - swipeEnd: function swipeEnd(e) { - var state = (0, _innerSliderUtils.swipeEnd)(e, (0, _extends3['default'])({}, this.$props, this.$data, { - trackRef: this.track, - listRef: this.list, - slideIndex: this.currentSlide - })); - if (!state) return; - var triggerSlideHandler = state['triggerSlideHandler']; - delete state['triggerSlideHandler']; - this.setState(state); - if (triggerSlideHandler === undefined) return; - this.slideHandler(triggerSlideHandler); - if (this.$props.verticalSwiping) { - this.enableBodyScroll(); - } - }, - slickPrev: function slickPrev() { - var _this5 = this; - - // this and fellow methods are wrapped in setTimeout - // to make sure initialize setState has happened before - // any of such methods are called - this.callbackTimers.push(setTimeout(function () { - return _this5.changeSlide({ message: 'previous' }); - }, 0)); - }, - slickNext: function slickNext() { - var _this6 = this; - - this.callbackTimers.push(setTimeout(function () { - return _this6.changeSlide({ message: 'next' }); - }, 0)); - }, - slickGoTo: function slickGoTo(slide) { - var _this7 = this; - - var dontAnimate = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false; - - slide = Number(slide); - if (isNaN(slide)) return ''; - this.callbackTimers.push(setTimeout(function () { - return _this7.changeSlide({ - message: 'index', - index: slide, - currentSlide: _this7.currentSlide - }, dontAnimate); - }, 0)); - }, - play: function play() { - var nextIndex = void 0; - if (this.rtl) { - nextIndex = this.currentSlide - this.slidesToScroll; - } else { - if ((0, _innerSliderUtils.canGoNext)((0, _extends3['default'])({}, this.$props, this.$data))) { - nextIndex = this.currentSlide + this.slidesToScroll; - } else { - return false; - } - } - this.slideHandler(nextIndex); - }, - handleAutoPlay: function handleAutoPlay(playType) { - if (this.autoplayTimer) { - clearInterval(this.autoplayTimer); - } - var autoplaying = this.autoplaying; - if (playType === 'update') { - if (autoplaying === 'hovered' || autoplaying === 'focused' || autoplaying === 'paused') { - return; - } - } else if (playType === 'leave') { - if (autoplaying === 'paused' || autoplaying === 'focused') { - return; - } - } else if (playType === 'blur') { - if (autoplaying === 'paused' || autoplaying === 'hovered') { - return; - } - } - this.autoplayTimer = setInterval(this.play, this.autoplaySpeed + 50); - this.setState({ autoplaying: 'playing' }); - }, - pause: function pause(pauseType) { - if (this.autoplayTimer) { - clearInterval(this.autoplayTimer); - this.autoplayTimer = null; - } - var autoplaying = this.autoplaying; - if (pauseType === 'paused') { - this.setState({ autoplaying: 'paused' }); - } else if (pauseType === 'focused') { - if (autoplaying === 'hovered' || autoplaying === 'playing') { - this.setState({ autoplaying: 'focused' }); - } + if (utils.isArray(val)) { + key = key + '[]'; } else { - // pauseType is 'hovered' - if (autoplaying === 'playing') { - this.setState({ autoplaying: 'hovered' }); - } - } - }, - onDotsOver: function onDotsOver() { - this.autoplay && this.pause('hovered'); - }, - onDotsLeave: function onDotsLeave() { - this.autoplay && this.autoplaying === 'hovered' && this.handleAutoPlay('leave'); - }, - onTrackOver: function onTrackOver() { - this.autoplay && this.pause('hovered'); - }, - onTrackLeave: function onTrackLeave() { - this.autoplay && this.autoplaying === 'hovered' && this.handleAutoPlay('leave'); - }, - onSlideFocus: function onSlideFocus() { - this.autoplay && this.pause('focused'); - }, - onSlideBlur: function onSlideBlur() { - this.autoplay && this.autoplaying === 'focused' && this.handleAutoPlay('blur'); - }, - customPaging: function customPaging(_ref) { - var i = _ref.i; - var h = this.$createElement; - - return h('button', [i + 1]); - }, - appendDots: function appendDots(_ref2) { - var dots = _ref2.dots; - var h = this.$createElement; - - return h( - 'ul', - { style: { display: 'block' } }, - [dots] - ); - } - }, - beforeMount: function beforeMount() { - this.ssrInit(); - this.$emit('init'); - if (this.lazyLoad) { - var slidesToLoad = (0, _innerSliderUtils.getOnDemandLazySlides)((0, _extends3['default'])({}, this.$props, this.$data)); - if (slidesToLoad.length > 0) { - this.setState(function (prevState) { - return { - lazyLoadedList: prevState.lazyLoadedList.concat(slidesToLoad) - }; - }); - this.$emit('lazyLoad', slidesToLoad); + val = [val]; } - } - }, - mounted: function mounted() { - var _this8 = this; - - this.$nextTick(function () { - var spec = (0, _extends3['default'])({ - listRef: _this8.list, - trackRef: _this8.track, - children: _this8.children - }, _this8.$props); - _this8.updateState(spec, true, function () { - _this8.adaptHeight(); - _this8.autoplay && _this8.handleAutoPlay('update'); - }); - if (_this8.lazyLoad === 'progressive') { - _this8.lazyLoadTimer = setInterval(_this8.progressiveLazyLoad, 1000); - } - _this8.ro = new _resizeObserverPolyfill2['default'](function () { - if (_this8.animating) { - _this8.onWindowResized(false); // don't set trackStyle hence don't break animation - _this8.callbackTimers.push(setTimeout(function () { - return _this8.onWindowResized(); - }, _this8.speed)); - } else { - _this8.onWindowResized(); + + utils.forEach(val, function parseValue(v) { + if (utils.isDate(v)) { + v = v.toISOString(); + } else if (utils.isObject(v)) { + v = JSON.stringify(v); } + parts.push(encode(key) + '=' + encode(v)); }); - _this8.ro.observe(_this8.list); - Array.prototype.forEach.call(document.querySelectorAll('.slick-slide'), function (slide) { - slide.onfocus = _this8.$props.pauseOnFocus ? _this8.onSlideFocus : null; - slide.onblur = _this8.$props.pauseOnFocus ? _this8.onSlideBlur : null; - }); - // To support server-side rendering - if (!window) { - return; - } - if (window.addEventListener) { - window.addEventListener('resize', _this8.onWindowResized); - } else { - window.attachEvent('onresize', _this8.onWindowResized); - } }); - }, - beforeDestroy: function beforeDestroy() { - if (this.animationEndCallback) { - clearTimeout(this.animationEndCallback); - } - if (this.lazyLoadTimer) { - clearInterval(this.lazyLoadTimer); - } - if (this.callbackTimers.length) { - this.callbackTimers.forEach(function (timer) { - return clearTimeout(timer); - }); - this.callbackTimers = []; - } - if (window.addEventListener) { - window.removeEventListener('resize', this.onWindowResized); - } else { - window.detachEvent('onresize', this.onWindowResized); - } - if (this.autoplayTimer) { - clearInterval(this.autoplayTimer); - } - }, - updated: function updated() { - this.checkImagesLoad(); - this.$emit('reInit'); - if (this.lazyLoad) { - var slidesToLoad = (0, _innerSliderUtils.getOnDemandLazySlides)((0, _extends3['default'])({}, this.$props, this.$data)); - if (slidesToLoad.length > 0) { - this.setState(function (prevState) { - return { - lazyLoadedList: prevState.lazyLoadedList.concat(slidesToLoad) - }; - }); - this.$emit('lazyLoad'); - } - } - // if (this.props.onLazyLoad) { - // this.props.onLazyLoad([leftMostSlide]) - // } - this.adaptHeight(); - }, - - watch: { - __propsSymbol__: function __propsSymbol__() { - var _this9 = this; - - var nextProps = this.$props; - var spec = (0, _extends3['default'])({ - listRef: this.list, - trackRef: this.track - }, nextProps, this.$data); - var setTrackStyle = false; - var _iteratorNormalCompletion = true; - var _didIteratorError = false; - var _iteratorError = undefined; - - try { - for (var _iterator = Object.keys(this.preProps)[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) { - var key = _step.value; - if (!nextProps.hasOwnProperty(key)) { - setTrackStyle = true; - break; - } - if ((0, _typeof3['default'])(nextProps[key]) === 'object' || typeof nextProps[key] === 'function' || (0, _typeof3['default'])(nextProps[key]) === 'symbol') { - continue; - } - if (nextProps[key] !== this.preProps[key]) { - setTrackStyle = true; - break; - } - } - } catch (err) { - _didIteratorError = true; - _iteratorError = err; - } finally { - try { - if (!_iteratorNormalCompletion && _iterator['return']) { - _iterator['return'](); - } - } finally { - if (_didIteratorError) { - throw _iteratorError; - } - } - } + serializedParams = parts.join('&'); + } - this.updateState(spec, setTrackStyle, function () { - if (_this9.currentSlide >= nextProps.children.length) { - _this9.changeSlide({ - message: 'index', - index: nextProps.children.length - nextProps.slidesToShow, - currentSlide: _this9.currentSlide - }); - } - if (nextProps.autoplay) { - _this9.handleAutoPlay('update'); - } else { - _this9.pause('paused'); - } - }); - this.preProps = (0, _extends3['default'])({}, nextProps); + if (serializedParams) { + var hashmarkIndex = url.indexOf('#'); + if (hashmarkIndex !== -1) { + url = url.slice(0, hashmarkIndex); } - }, - render: function render() { - var h = arguments[0]; - - var className = (0, _classnames2['default'])('slick-slider', { - 'slick-vertical': this.vertical, - 'slick-initialized': true - }); - var spec = (0, _extends3['default'])({}, this.$props, this.$data); - var trackProps = (0, _innerSliderUtils.extractObject)(spec, ['fade', 'cssEase', 'speed', 'infinite', 'centerMode', 'focusOnSelect', 'currentSlide', 'lazyLoad', 'lazyLoadedList', 'rtl', 'slideWidth', 'slideHeight', 'listHeight', 'vertical', 'slidesToShow', 'slidesToScroll', 'slideCount', 'trackStyle', 'variableWidth', 'unslick', 'centerPadding']); - var pauseOnHover = this.$props.pauseOnHover; - - trackProps = { - props: (0, _extends3['default'])({}, trackProps, { - focusOnSelect: this.focusOnSelect ? this.selectHandler : null - }), - directives: [{ - name: 'ant-ref', - value: this.trackRefHandler - }], - on: { - mouseenter: pauseOnHover ? this.onTrackOver : noop, - mouseleave: pauseOnHover ? this.onTrackLeave : noop, - mouseover: pauseOnHover ? this.onTrackOver : noop - } - }; - var dots = void 0; - if (this.dots === true && this.slideCount >= this.slidesToShow) { - var dotProps = (0, _innerSliderUtils.extractObject)(spec, ['dotsClass', 'slideCount', 'slidesToShow', 'currentSlide', 'slidesToScroll', 'clickHandler', 'children', 'infinite', 'appendDots']); - dotProps.customPaging = this.customPaging; - dotProps.appendDots = this.appendDots; - var _$scopedSlots = this.$scopedSlots, - customPaging = _$scopedSlots.customPaging, - appendDots = _$scopedSlots.appendDots; - - if (customPaging) { - dotProps.customPaging = customPaging; - } - if (appendDots) { - dotProps.appendDots = appendDots; - } - var pauseOnDotsHover = this.$props.pauseOnDotsHover; - - dotProps = { - props: (0, _extends3['default'])({}, dotProps, { - clickHandler: this.changeSlide - }), - on: { - mouseenter: pauseOnDotsHover ? this.onDotsLeave : noop, - mouseover: pauseOnDotsHover ? this.onDotsOver : noop, - mouseleave: pauseOnDotsHover ? this.onDotsLeave : noop - } - }; - dots = h(_dots2['default'], dotProps); - } + url += (url.indexOf('?') === -1 ? '?' : '&') + serializedParams; + } - var prevArrow = void 0, - nextArrow = void 0; - var arrowProps = (0, _innerSliderUtils.extractObject)(spec, ['infinite', 'centerMode', 'currentSlide', 'slideCount', 'slidesToShow']); - arrowProps.clickHandler = this.changeSlide; - var _$scopedSlots2 = this.$scopedSlots, - prevArrowCustom = _$scopedSlots2.prevArrow, - nextArrowCustom = _$scopedSlots2.nextArrow; + return url; +}; - if (prevArrowCustom) { - arrowProps.prevArrow = prevArrowCustom; - } - if (nextArrowCustom) { - arrowProps.nextArrow = nextArrowCustom; - } - if (this.arrows) { - prevArrow = h(_arrows.PrevArrow, { props: arrowProps }); - nextArrow = h(_arrows.NextArrow, { props: arrowProps }); - } - var verticalHeightStyle = null; - if (this.vertical) { - verticalHeightStyle = { - height: typeof this.listHeight === 'number' ? this.listHeight + 'px' : this.listHeight - }; - } - - var centerPaddingStyle = null; +/***/ }), - if (this.vertical === false) { - if (this.centerMode === true) { - centerPaddingStyle = { - padding: '0px ' + this.centerPadding - }; - } - } else { - if (this.centerMode === true) { - centerPaddingStyle = { - padding: this.centerPadding + ' 0px' - }; - } - } +/***/ "./node_modules/axios/lib/helpers/combineURLs.js": +/*!*******************************************************!*\ + !*** ./node_modules/axios/lib/helpers/combineURLs.js ***! + \*******************************************************/ +/*! no static exports found */ +/***/ (function(module, exports, __webpack_require__) { - var listStyle = (0, _extends3['default'])({}, verticalHeightStyle, centerPaddingStyle); - var touchMove = this.touchMove; - var listProps = { - directives: [{ - name: 'ant-ref', - value: this.listRefHandler - }], - 'class': 'slick-list', - style: listStyle, - on: { - click: this.clickHandler, - mousedown: touchMove ? this.swipeStart : noop, - mousemove: this.dragging && touchMove ? this.swipeMove : noop, - mouseup: touchMove ? this.swipeEnd : noop, - mouseleave: this.dragging && touchMove ? this.swipeEnd : noop, - touchstart: touchMove ? this.swipeStart : noop, - touchmove: this.dragging && touchMove ? this.swipeMove : noop, - touchend: touchMove ? this.swipeEnd : noop, - touchcancel: this.dragging && touchMove ? this.swipeEnd : noop, - keydown: this.accessibility ? this.keyHandler : noop - } - }; +"use strict"; - var innerSliderProps = { - 'class': className, - props: { - dir: 'ltr' - } - }; - if (this.unslick) { - listProps = { - 'class': 'slick-list', - directives: [{ - name: 'ant-ref', - value: this.listRefHandler - }] - }; - innerSliderProps = { 'class': className }; - } - return h( - 'div', - innerSliderProps, - [!this.unslick ? prevArrow : '', h( - 'div', - listProps, - [h( - _track2['default'], - trackProps, - [this.children] - )] - ), !this.unslick ? nextArrow : '', !this.unslick ? dots : ''] - ); - } +/** + * Creates a new URL by combining the specified URLs + * + * @param {string} baseURL The base URL + * @param {string} relativeURL The relative URL + * @returns {string} The combined URL + */ +module.exports = function combineURLs(baseURL, relativeURL) { + return relativeURL + ? baseURL.replace(/\/+$/, '') + '/' + relativeURL.replace(/^\/+/, '') + : baseURL; }; + /***/ }), -/***/ "./node_modules/ant-design-vue/lib/vc-slick/src/slider.js": -/*!****************************************************************!*\ - !*** ./node_modules/ant-design-vue/lib/vc-slick/src/slider.js ***! - \****************************************************************/ +/***/ "./node_modules/axios/lib/helpers/cookies.js": +/*!***************************************************!*\ + !*** ./node_modules/axios/lib/helpers/cookies.js ***! + \***************************************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { "use strict"; -Object.defineProperty(exports, "__esModule", { - value: true -}); - -var _extends2 = __webpack_require__(/*! babel-runtime/helpers/extends */ "./node_modules/babel-runtime/helpers/extends.js"); +var utils = __webpack_require__(/*! ./../utils */ "./node_modules/axios/lib/utils.js"); -var _extends3 = _interopRequireDefault(_extends2); +module.exports = ( + utils.isStandardBrowserEnv() ? -var _json2mq = __webpack_require__(/*! json2mq */ "./node_modules/json2mq/index.js"); + // Standard browser envs support document.cookie + (function standardBrowserEnv() { + return { + write: function write(name, value, expires, path, domain, secure) { + var cookie = []; + cookie.push(name + '=' + encodeURIComponent(value)); -var _json2mq2 = _interopRequireDefault(_json2mq); + if (utils.isNumber(expires)) { + cookie.push('expires=' + new Date(expires).toGMTString()); + } -var _vue = __webpack_require__(/*! vue */ "./node_modules/vue/dist/vue.common.js"); + if (utils.isString(path)) { + cookie.push('path=' + path); + } -var _vue2 = _interopRequireDefault(_vue); + if (utils.isString(domain)) { + cookie.push('domain=' + domain); + } -var _vueRef = __webpack_require__(/*! vue-ref */ "./node_modules/vue-ref/index.js"); + if (secure === true) { + cookie.push('secure'); + } -var _vueRef2 = _interopRequireDefault(_vueRef); + document.cookie = cookie.join('; '); + }, -var _BaseMixin = __webpack_require__(/*! ../../_util/BaseMixin */ "./node_modules/ant-design-vue/lib/_util/BaseMixin.js"); + read: function read(name) { + var match = document.cookie.match(new RegExp('(^|;\\s*)(' + name + ')=([^;]*)')); + return (match ? decodeURIComponent(match[3]) : null); + }, -var _BaseMixin2 = _interopRequireDefault(_BaseMixin); + remove: function remove(name) { + this.write(name, '', Date.now() - 86400000); + } + }; + })() : + + // Non standard browser env (web workers, react-native) lack needed support. + (function nonStandardBrowserEnv() { + return { + write: function write() {}, + read: function read() { return null; }, + remove: function remove() {} + }; + })() +); -var _vnode = __webpack_require__(/*! ../../_util/vnode */ "./node_modules/ant-design-vue/lib/_util/vnode.js"); -var _propsUtil = __webpack_require__(/*! ../../_util/props-util */ "./node_modules/ant-design-vue/lib/_util/props-util.js"); +/***/ }), -var _innerSlider = __webpack_require__(/*! ./inner-slider */ "./node_modules/ant-design-vue/lib/vc-slick/src/inner-slider.js"); +/***/ "./node_modules/axios/lib/helpers/isAbsoluteURL.js": +/*!*********************************************************!*\ + !*** ./node_modules/axios/lib/helpers/isAbsoluteURL.js ***! + \*********************************************************/ +/*! no static exports found */ +/***/ (function(module, exports, __webpack_require__) { -var _innerSlider2 = _interopRequireDefault(_innerSlider); +"use strict"; -var _defaultProps = __webpack_require__(/*! ./default-props */ "./node_modules/ant-design-vue/lib/vc-slick/src/default-props.js"); -var _defaultProps2 = _interopRequireDefault(_defaultProps); +/** + * Determines whether the specified URL is absolute + * + * @param {string} url The URL to test + * @returns {boolean} True if the specified URL is absolute, otherwise false + */ +module.exports = function isAbsoluteURL(url) { + // A URL is considered absolute if it begins with "://" or "//" (protocol-relative URL). + // RFC 3986 defines scheme name as a sequence of characters beginning with a letter and followed + // by any combination of letters, digits, plus, period, or hyphen. + return /^([a-z][a-z\d\+\-\.]*:)?\/\//i.test(url); +}; -var _innerSliderUtils = __webpack_require__(/*! ./utils/innerSliderUtils */ "./node_modules/ant-design-vue/lib/vc-slick/src/utils/innerSliderUtils.js"); -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } +/***/ }), -var enquire = (0, _innerSliderUtils.canUseDOM)() && __webpack_require__(/*! enquire.js */ "./node_modules/enquire.js/src/index.js"); +/***/ "./node_modules/axios/lib/helpers/isURLSameOrigin.js": +/*!***********************************************************!*\ + !*** ./node_modules/axios/lib/helpers/isURLSameOrigin.js ***! + \***********************************************************/ +/*! no static exports found */ +/***/ (function(module, exports, __webpack_require__) { -_vue2['default'].use(_vueRef2['default'], { name: 'ant-ref' }); +"use strict"; -exports['default'] = { - props: (0, _extends3['default'])({}, _defaultProps2['default']), - mixins: [_BaseMixin2['default']], - data: function data() { - this._responsiveMediaHandlers = []; - return { - breakpoint: null - }; - }, - - methods: { - innerSliderRefHandler: function innerSliderRefHandler(ref) { - this.innerSlider = ref; - }, - media: function media(query, handler) { - // javascript handler for css media query - enquire.register(query, handler); - this._responsiveMediaHandlers.push({ query: query, handler: handler }); - }, - slickPrev: function slickPrev() { - this.innerSlider.slickPrev(); - }, - slickNext: function slickNext() { - this.innerSlider.slickNext(); - }, - slickGoTo: function slickGoTo(slide) { - var dontAnimate = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false; - - this.innerSlider.slickGoTo(slide, dontAnimate); - }, - slickPause: function slickPause() { - this.innerSlider.pause('paused'); - }, - slickPlay: function slickPlay() { - this.innerSlider.handleAutoPlay('play'); - } - }, - // handles responsive breakpoints - beforeMount: function beforeMount() { - var _this = this; - - // performance monitoring - // if (process.env.NODE_ENV !== 'production') { - // const { whyDidYouUpdate } = require('why-did-you-update') - // whyDidYouUpdate(React) - // } - if (this.responsive) { - var breakpoints = this.responsive.map(function (breakpt) { - return breakpt.breakpoint; - }); - // sort them in increasing order of their numerical value - breakpoints.sort(function (x, y) { - return x - y; - }); - breakpoints.forEach(function (breakpoint, index) { - // media query for each breakpoint - var bQuery = void 0; - if (index === 0) { - bQuery = (0, _json2mq2['default'])({ minWidth: 0, maxWidth: breakpoint }); - } else { - bQuery = (0, _json2mq2['default'])({ - minWidth: breakpoints[index - 1] + 1, - maxWidth: breakpoint - }); - } - // when not using server side rendering - (0, _innerSliderUtils.canUseDOM)() && _this.media(bQuery, function () { - _this.setState({ breakpoint: breakpoint }); - }); - }); +var utils = __webpack_require__(/*! ./../utils */ "./node_modules/axios/lib/utils.js"); - // Register media query for full screen. Need to support resize from small to large - // convert javascript object to media query string - var query = (0, _json2mq2['default'])({ minWidth: breakpoints.slice(-1)[0] }); +module.exports = ( + utils.isStandardBrowserEnv() ? - (0, _innerSliderUtils.canUseDOM)() && this.media(query, function () { - _this.setState({ breakpoint: null }); - }); - } - }, - beforeDestroy: function beforeDestroy() { - this._responsiveMediaHandlers.forEach(function (obj) { - enquire.unregister(obj.query, obj.handler); - }); - }, - render: function render() { - var _this2 = this; + // Standard browser envs have full support of the APIs needed to test + // whether the request URL is of the same origin as current location. + (function standardBrowserEnv() { + var msie = /(msie|trident)/i.test(navigator.userAgent); + var urlParsingNode = document.createElement('a'); + var originURL; - var h = arguments[0]; + /** + * Parse a URL to discover it's components + * + * @param {String} url The URL to be parsed + * @returns {Object} + */ + function resolveURL(url) { + var href = url; - var settings = void 0; - var newProps = void 0; - if (this.breakpoint) { - newProps = this.responsive.filter(function (resp) { - return resp.breakpoint === _this2.breakpoint; - }); - settings = newProps[0].settings === 'unslick' ? 'unslick' : (0, _extends3['default'])({}, this.$props, newProps[0].settings); - } else { - settings = (0, _extends3['default'])({}, this.$props); - } + if (msie) { + // IE needs attribute set twice to normalize properties + urlParsingNode.setAttribute('href', href); + href = urlParsingNode.href; + } - // force scrolling by one if centerMode is on - if (settings.centerMode) { - if (settings.slidesToScroll > 1 && "development" !== 'production') { - console.warn('slidesToScroll should be equal to 1 in centerMode, you are using ' + settings.slidesToScroll); - } - settings.slidesToScroll = 1; - } - // force showing one slide and scrolling by one if the fade mode is on - if (settings.fade) { - if (settings.slidesToShow > 1 && "development" !== 'production') { - console.warn('slidesToShow should be equal to 1 when fade is true, you\'re using ' + settings.slidesToShow); - } - if (settings.slidesToScroll > 1 && "development" !== 'production') { - console.warn('slidesToScroll should be equal to 1 when fade is true, you\'re using ' + settings.slidesToScroll); + urlParsingNode.setAttribute('href', href); + + // urlParsingNode provides the UrlUtils interface - http://url.spec.whatwg.org/#urlutils + return { + href: urlParsingNode.href, + protocol: urlParsingNode.protocol ? urlParsingNode.protocol.replace(/:$/, '') : '', + host: urlParsingNode.host, + search: urlParsingNode.search ? urlParsingNode.search.replace(/^\?/, '') : '', + hash: urlParsingNode.hash ? urlParsingNode.hash.replace(/^#/, '') : '', + hostname: urlParsingNode.hostname, + port: urlParsingNode.port, + pathname: (urlParsingNode.pathname.charAt(0) === '/') ? + urlParsingNode.pathname : + '/' + urlParsingNode.pathname + }; } - settings.slidesToShow = 1; - settings.slidesToScroll = 1; - } - - // makes sure that children is an array, even when there is only 1 child - var children = this.$slots['default'] || []; - // Children may contain false or null, so we should filter them - // children may also contain string filled with spaces (in certain cases where we use jsx strings) - children = children.filter(function (child) { - if (typeof child === 'string') { - return !!child.trim(); - } - return !!child; - }); + originURL = resolveURL(window.location.href); + + /** + * Determine if a URL shares the same origin as the current location + * + * @param {String} requestURL The URL to test + * @returns {boolean} True if URL shares the same origin, otherwise false + */ + return function isURLSameOrigin(requestURL) { + var parsed = (utils.isString(requestURL)) ? resolveURL(requestURL) : requestURL; + return (parsed.protocol === originURL.protocol && + parsed.host === originURL.host); + }; + })() : - // rows and slidesPerRow logic is handled here - if (settings.variableWidth && (settings.rows > 1 || settings.slidesPerRow > 1)) { - console.warn('variableWidth is not supported in case of rows > 1 or slidesPerRow > 1'); - settings.variableWidth = false; - } - var newChildren = []; - var currentWidth = null; - for (var i = 0; i < children.length; i += settings.rows * settings.slidesPerRow) { - var newSlide = []; - for (var j = i; j < i + settings.rows * settings.slidesPerRow; j += settings.slidesPerRow) { - var row = []; - for (var k = j; k < j + settings.slidesPerRow; k += 1) { - if (settings.variableWidth && (0, _propsUtil.getStyle)(children[k])) { - currentWidth = (0, _propsUtil.getStyle)(children[k]).width; - } - if (k >= children.length) break; - row.push((0, _vnode.cloneElement)(children[k], { - key: 100 * i + 10 * j + k, - attrs: { - tabIndex: -1 - }, - style: { - width: 100 / settings.slidesPerRow + '%', - display: 'inline-block' - } - })); - } - newSlide.push(h( - 'div', - { key: 10 * i + j }, - [row] - )); - } - if (settings.variableWidth) { - newChildren.push(h( - 'div', - { key: i, style: { width: currentWidth } }, - [newSlide] - )); - } else { - newChildren.push(h( - 'div', - { key: i }, - [newSlide] - )); - } - } + // Non standard browser envs (web workers, react-native) lack needed support. + (function nonStandardBrowserEnv() { + return function isURLSameOrigin() { + return true; + }; + })() +); - if (settings === 'unslick') { - var className = 'regular slider ' + (this.className || ''); - return h( - 'div', - { 'class': className }, - [newChildren] - ); - } else if (newChildren.length <= settings.slidesToShow) { - settings.unslick = true; - } - var sliderProps = { - props: (0, _extends3['default'])({}, settings, { - children: newChildren, - __propsSymbol__: Symbol() - }), - on: (0, _extends3['default'])({}, this.$listeners), - directives: [{ - name: 'ant-ref', - value: this.innerSliderRefHandler - }], - scopedSlots: this.$scopedSlots - }; - return h(_innerSlider2['default'], sliderProps); - } -}; /***/ }), -/***/ "./node_modules/ant-design-vue/lib/vc-slick/src/track.js": +/***/ "./node_modules/axios/lib/helpers/normalizeHeaderName.js": /*!***************************************************************!*\ - !*** ./node_modules/ant-design-vue/lib/vc-slick/src/track.js ***! + !*** ./node_modules/axios/lib/helpers/normalizeHeaderName.js ***! \***************************************************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { @@ -1732,1059 +1279,596 @@ exports['default'] = { "use strict"; -Object.defineProperty(exports, "__esModule", { - value: true -}); - -var _extends2 = __webpack_require__(/*! babel-runtime/helpers/extends */ "./node_modules/babel-runtime/helpers/extends.js"); - -var _extends3 = _interopRequireDefault(_extends2); - -var _classnames = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js"); +var utils = __webpack_require__(/*! ../utils */ "./node_modules/axios/lib/utils.js"); -var _classnames2 = _interopRequireDefault(_classnames); +module.exports = function normalizeHeaderName(headers, normalizedName) { + utils.forEach(headers, function processHeader(value, name) { + if (name !== normalizedName && name.toUpperCase() === normalizedName.toUpperCase()) { + headers[normalizedName] = value; + delete headers[name]; + } + }); +}; -var _vnode = __webpack_require__(/*! ../../_util/vnode */ "./node_modules/ant-design-vue/lib/_util/vnode.js"); -var _propsUtil = __webpack_require__(/*! ../../_util/props-util */ "./node_modules/ant-design-vue/lib/_util/props-util.js"); +/***/ }), -var _innerSliderUtils = __webpack_require__(/*! ./utils/innerSliderUtils */ "./node_modules/ant-design-vue/lib/vc-slick/src/utils/innerSliderUtils.js"); +/***/ "./node_modules/axios/lib/helpers/parseHeaders.js": +/*!********************************************************!*\ + !*** ./node_modules/axios/lib/helpers/parseHeaders.js ***! + \********************************************************/ +/*! no static exports found */ +/***/ (function(module, exports, __webpack_require__) { -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } +"use strict"; -// given specifications/props for a slide, fetch all the classes that need to be applied to the slide -var getSlideClasses = function getSlideClasses(spec) { - var slickActive = void 0, - slickCenter = void 0; - var centerOffset = void 0, - index = void 0; - if (spec.rtl) { - index = spec.slideCount - 1 - spec.index; - } else { - index = spec.index; - } - var slickCloned = index < 0 || index >= spec.slideCount; - if (spec.centerMode) { - centerOffset = Math.floor(spec.slidesToShow / 2); - slickCenter = (index - spec.currentSlide) % spec.slideCount === 0; - if (index > spec.currentSlide - centerOffset - 1 && index <= spec.currentSlide + centerOffset) { - slickActive = true; +var utils = __webpack_require__(/*! ./../utils */ "./node_modules/axios/lib/utils.js"); + +// Headers whose duplicates are ignored by node +// c.f. https://nodejs.org/api/http.html#http_message_headers +var ignoreDuplicateOf = [ + 'age', 'authorization', 'content-length', 'content-type', 'etag', + 'expires', 'from', 'host', 'if-modified-since', 'if-unmodified-since', + 'last-modified', 'location', 'max-forwards', 'proxy-authorization', + 'referer', 'retry-after', 'user-agent' +]; + +/** + * Parse headers into an object + * + * ``` + * Date: Wed, 27 Aug 2014 08:58:49 GMT + * Content-Type: application/json + * Connection: keep-alive + * Transfer-Encoding: chunked + * ``` + * + * @param {String} headers Headers needing to be parsed + * @returns {Object} Headers parsed into an object + */ +module.exports = function parseHeaders(headers) { + var parsed = {}; + var key; + var val; + var i; + + if (!headers) { return parsed; } + + utils.forEach(headers.split('\n'), function parser(line) { + i = line.indexOf(':'); + key = utils.trim(line.substr(0, i)).toLowerCase(); + val = utils.trim(line.substr(i + 1)); + + if (key) { + if (parsed[key] && ignoreDuplicateOf.indexOf(key) >= 0) { + return; + } + if (key === 'set-cookie') { + parsed[key] = (parsed[key] ? parsed[key] : []).concat([val]); + } else { + parsed[key] = parsed[key] ? parsed[key] + ', ' + val : val; + } } - } else { - slickActive = spec.currentSlide <= index && index < spec.currentSlide + spec.slidesToShow; - } - var slickCurrent = index === spec.currentSlide; - return { - 'slick-slide': true, - 'slick-active': slickActive, - 'slick-center': slickCenter, - 'slick-cloned': slickCloned, - 'slick-current': slickCurrent // dubious in case of RTL - }; -}; + }); -var getSlideStyle = function getSlideStyle(spec) { - var style = {}; + return parsed; +}; - if (spec.variableWidth === undefined || spec.variableWidth === false) { - style.width = spec.slideWidth + (typeof spec.slideWidth === 'number' ? 'px' : ''); - } - if (spec.fade) { - style.position = 'relative'; - if (spec.vertical) { - style.top = -spec.index * parseInt(spec.slideHeight) + 'px'; - } else { - style.left = -spec.index * parseInt(spec.slideWidth) + 'px'; - } - style.opacity = spec.currentSlide === spec.index ? 1 : 0; - style.transition = 'opacity ' + spec.speed + 'ms ' + spec.cssEase + ', ' + 'visibility ' + spec.speed + 'ms ' + spec.cssEase; - style.WebkitTransition = 'opacity ' + spec.speed + 'ms ' + spec.cssEase + ', ' + 'visibility ' + spec.speed + 'ms ' + spec.cssEase; - } - - return style; -}; +/***/ }), -var getKey = function getKey(child, fallbackKey) { - return child.key || child.key === 0 && '0' || fallbackKey; -}; +/***/ "./node_modules/axios/lib/helpers/spread.js": +/*!**************************************************!*\ + !*** ./node_modules/axios/lib/helpers/spread.js ***! + \**************************************************/ +/*! no static exports found */ +/***/ (function(module, exports, __webpack_require__) { -var renderSlides = function renderSlides(spec, children, createElement) { - var key = void 0; - var slides = []; - var preCloneSlides = []; - var postCloneSlides = []; - var childrenCount = children.length; - var startIndex = (0, _innerSliderUtils.lazyStartIndex)(spec); - var endIndex = (0, _innerSliderUtils.lazyEndIndex)(spec); - - children.forEach(function (elem, index) { - var child = void 0; - var childOnClickOptions = { - message: 'children', - index: index, - slidesToScroll: spec.slidesToScroll, - currentSlide: spec.currentSlide - }; +"use strict"; - // in case of lazyLoad, whether or not we want to fetch the slide - if (!spec.lazyLoad || spec.lazyLoad && spec.lazyLoadedList.indexOf(index) >= 0) { - child = elem; - } else { - child = createElement('div'); - } - var childStyle = getSlideStyle((0, _extends3['default'])({}, spec, { index: index })); - var slideClass = (0, _propsUtil.getClass)(child.context) || ''; - var slideClasses = getSlideClasses((0, _extends3['default'])({}, spec, { index: index })); - // push a cloned element of the desired slide - slides.push((0, _vnode.cloneElement)(child, { - key: 'original' + getKey(child, index), - attrs: { - tabIndex: '-1', - 'data-index': index, - 'aria-hidden': !slideClasses['slick-active'] - }, - 'class': (0, _classnames2['default'])(slideClasses, slideClass), - style: (0, _extends3['default'])({ outline: 'none' }, (0, _propsUtil.getStyle)(child.context) || {}, childStyle), - on: { - click: function click() { - // child.props && child.props.onClick && child.props.onClick(e) - if (spec.focusOnSelect) { - spec.focusOnSelect(childOnClickOptions); - } - } - } - }, true)); - - // if slide needs to be precloned or postcloned - if (spec.infinite && spec.fade === false) { - var preCloneNo = childrenCount - index; - if (preCloneNo <= (0, _innerSliderUtils.getPreClones)(spec) && childrenCount !== spec.slidesToShow) { - key = -preCloneNo; - if (key >= startIndex) { - child = elem; - } - slideClasses = getSlideClasses((0, _extends3['default'])({}, spec, { index: key })); - preCloneSlides.push((0, _vnode.cloneElement)(child, { - key: 'precloned' + getKey(child, key), - 'class': (0, _classnames2['default'])(slideClasses, slideClass), - attrs: { - tabIndex: '-1', - 'data-index': key, - 'aria-hidden': !slideClasses['slick-active'] - }, - style: (0, _extends3['default'])({}, (0, _propsUtil.getStyle)(child.context) || {}, childStyle), - on: { - click: function click() { - // child.props && child.props.onClick && child.props.onClick(e) - if (spec.focusOnSelect) { - spec.focusOnSelect(childOnClickOptions); - } - } - } - })); - } - if (childrenCount !== spec.slidesToShow) { - key = childrenCount + index; - if (key < endIndex) { - child = elem; - } - slideClasses = getSlideClasses((0, _extends3['default'])({}, spec, { index: key })); - postCloneSlides.push((0, _vnode.cloneElement)(child, { - key: 'postcloned' + getKey(child, key), - attrs: { - tabIndex: '-1', - 'data-index': key, - 'aria-hidden': !slideClasses['slick-active'] - }, - 'class': (0, _classnames2['default'])(slideClasses, slideClass), - style: (0, _extends3['default'])({}, (0, _propsUtil.getStyle)(child.context) || {}, childStyle), - on: { - click: function click() { - // child.props && child.props.onClick && child.props.onClick(e) - if (spec.focusOnSelect) { - spec.focusOnSelect(childOnClickOptions); - } - } - } - })); - } - } - }); - if (spec.rtl) { - return preCloneSlides.concat(slides, postCloneSlides).reverse(); - } else { - return preCloneSlides.concat(slides, postCloneSlides); - } +/** + * Syntactic sugar for invoking a function and expanding an array for arguments. + * + * Common use case would be to use `Function.prototype.apply`. + * + * ```js + * function f(x, y, z) {} + * var args = [1, 2, 3]; + * f.apply(null, args); + * ``` + * + * With `spread` this example can be re-written. + * + * ```js + * spread(function(x, y, z) {})([1, 2, 3]); + * ``` + * + * @param {Function} callback + * @returns {Function} + */ +module.exports = function spread(callback) { + return function wrap(arr) { + return callback.apply(null, arr); + }; }; -exports['default'] = { - functional: true, - render: function render(createElement, context) { - var h = arguments[0]; - var props = context.props, - listeners = context.listeners, - children = context.children, - data = context.data; - - var slides = renderSlides(props, children, createElement); - var mouseenter = listeners.mouseenter, - mouseover = listeners.mouseover, - mouseleave = listeners.mouseleave; - - var mouseEvents = { mouseenter: mouseenter, mouseover: mouseover, mouseleave: mouseleave }; - var trackProps = { - 'class': 'slick-track', - style: props.trackStyle, - on: (0, _extends3['default'])({}, mouseEvents), - directives: data.directives - }; - return h( - 'div', - trackProps, - [slides] - ); - } -}; /***/ }), -/***/ "./node_modules/ant-design-vue/lib/vc-slick/src/utils/innerSliderUtils.js": -/*!********************************************************************************!*\ - !*** ./node_modules/ant-design-vue/lib/vc-slick/src/utils/innerSliderUtils.js ***! - \********************************************************************************/ +/***/ "./node_modules/axios/lib/utils.js": +/*!*****************************************!*\ + !*** ./node_modules/axios/lib/utils.js ***! + \*****************************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { "use strict"; -Object.defineProperty(exports, "__esModule", { - value: true -}); -exports.canUseDOM = exports.slidesOnLeft = exports.slidesOnRight = exports.siblingDirection = exports.getTotalSlides = exports.getPostClones = exports.getPreClones = exports.getTrackLeft = exports.getTrackAnimateCSS = exports.getTrackCSS = exports.checkSpecKeys = exports.getSlideCount = exports.checkNavigable = exports.getNavigableIndexes = exports.swipeEnd = exports.swipeMove = exports.swipeStart = exports.keyHandler = exports.changeSlide = exports.slideHandler = exports.initializedState = exports.extractObject = exports.canGoNext = exports.getSwipeDirection = exports.getHeight = exports.getWidth = exports.lazySlidesOnRight = exports.lazySlidesOnLeft = exports.lazyEndIndex = exports.lazyStartIndex = exports.getRequiredLazySlides = exports.getOnDemandLazySlides = undefined; +var bind = __webpack_require__(/*! ./helpers/bind */ "./node_modules/axios/lib/helpers/bind.js"); +var isBuffer = __webpack_require__(/*! is-buffer */ "./node_modules/is-buffer/index.js"); -var _extends2 = __webpack_require__(/*! babel-runtime/helpers/extends */ "./node_modules/babel-runtime/helpers/extends.js"); +/*global toString:true*/ -var _extends3 = _interopRequireDefault(_extends2); +// utils is a library of generic helper functions non-specific to axios -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } +var toString = Object.prototype.toString; -var getOnDemandLazySlides = exports.getOnDemandLazySlides = function getOnDemandLazySlides(spec) { - var onDemandSlides = []; - var startIndex = lazyStartIndex(spec); - var endIndex = lazyEndIndex(spec); - for (var slideIndex = startIndex; slideIndex < endIndex; slideIndex++) { - if (spec.lazyLoadedList.indexOf(slideIndex) < 0) { - onDemandSlides.push(slideIndex); - } - } - return onDemandSlides; -}; +/** + * Determine if a value is an Array + * + * @param {Object} val The value to test + * @returns {boolean} True if value is an Array, otherwise false + */ +function isArray(val) { + return toString.call(val) === '[object Array]'; +} -// return list of slides that need to be present -var getRequiredLazySlides = exports.getRequiredLazySlides = function getRequiredLazySlides(spec) { - var requiredSlides = []; - var startIndex = lazyStartIndex(spec); - var endIndex = lazyEndIndex(spec); - for (var slideIndex = startIndex; slideIndex < endIndex; slideIndex++) { - requiredSlides.push(slideIndex); - } - return requiredSlides; -}; +/** + * Determine if a value is an ArrayBuffer + * + * @param {Object} val The value to test + * @returns {boolean} True if value is an ArrayBuffer, otherwise false + */ +function isArrayBuffer(val) { + return toString.call(val) === '[object ArrayBuffer]'; +} -// startIndex that needs to be present -var lazyStartIndex = exports.lazyStartIndex = function lazyStartIndex(spec) { - return spec.currentSlide - lazySlidesOnLeft(spec); -}; -var lazyEndIndex = exports.lazyEndIndex = function lazyEndIndex(spec) { - return spec.currentSlide + lazySlidesOnRight(spec); -}; -var lazySlidesOnLeft = exports.lazySlidesOnLeft = function lazySlidesOnLeft(spec) { - return spec.centerMode ? Math.floor(spec.slidesToShow / 2) + (parseInt(spec.centerPadding) > 0 ? 1 : 0) : 0; -}; -var lazySlidesOnRight = exports.lazySlidesOnRight = function lazySlidesOnRight(spec) { - return spec.centerMode ? Math.floor((spec.slidesToShow - 1) / 2) + 1 + (parseInt(spec.centerPadding) > 0 ? 1 : 0) : spec.slidesToShow; -}; +/** + * Determine if a value is a FormData + * + * @param {Object} val The value to test + * @returns {boolean} True if value is an FormData, otherwise false + */ +function isFormData(val) { + return (typeof FormData !== 'undefined') && (val instanceof FormData); +} -// get width of an element -var getWidth = exports.getWidth = function getWidth(elem) { - return elem && elem.offsetWidth || 0; -}; -var getHeight = exports.getHeight = function getHeight(elem) { - return elem && elem.offsetHeight || 0; -}; -var getSwipeDirection = exports.getSwipeDirection = function getSwipeDirection(touchObject) { - var verticalSwiping = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false; - - var swipeAngle = void 0; - var xDist = touchObject.startX - touchObject.curX; - var yDist = touchObject.startY - touchObject.curY; - var r = Math.atan2(yDist, xDist); - swipeAngle = Math.round(r * 180 / Math.PI); - if (swipeAngle < 0) { - swipeAngle = 360 - Math.abs(swipeAngle); - } - if (swipeAngle <= 45 && swipeAngle >= 0 || swipeAngle <= 360 && swipeAngle >= 315) { - return 'left'; - } - if (swipeAngle >= 135 && swipeAngle <= 225) { - return 'right'; - } - if (verticalSwiping === true) { - if (swipeAngle >= 35 && swipeAngle <= 135) { - return 'up'; - } else { - return 'down'; - } +/** + * Determine if a value is a view on an ArrayBuffer + * + * @param {Object} val The value to test + * @returns {boolean} True if value is a view on an ArrayBuffer, otherwise false + */ +function isArrayBufferView(val) { + var result; + if ((typeof ArrayBuffer !== 'undefined') && (ArrayBuffer.isView)) { + result = ArrayBuffer.isView(val); + } else { + result = (val) && (val.buffer) && (val.buffer instanceof ArrayBuffer); } + return result; +} - return 'vertical'; -}; +/** + * Determine if a value is a String + * + * @param {Object} val The value to test + * @returns {boolean} True if value is a String, otherwise false + */ +function isString(val) { + return typeof val === 'string'; +} -// whether or not we can go next -var canGoNext = exports.canGoNext = function canGoNext(spec) { - var canGo = true; - if (!spec.infinite) { - if (spec.centerMode && spec.currentSlide >= spec.slideCount - 1) { - canGo = false; - } else if (spec.slideCount <= spec.slidesToShow || spec.currentSlide >= spec.slideCount - spec.slidesToShow) { - canGo = false; - } - } - return canGo; -}; +/** + * Determine if a value is a Number + * + * @param {Object} val The value to test + * @returns {boolean} True if value is a Number, otherwise false + */ +function isNumber(val) { + return typeof val === 'number'; +} -// given an object and a list of keys, return new object with given keys -var extractObject = exports.extractObject = function extractObject(spec, keys) { - var newObject = {}; - keys.forEach(function (key) { - return newObject[key] = spec[key]; - }); - return newObject; -}; +/** + * Determine if a value is undefined + * + * @param {Object} val The value to test + * @returns {boolean} True if the value is undefined, otherwise false + */ +function isUndefined(val) { + return typeof val === 'undefined'; +} -// get initialized state -var initializedState = exports.initializedState = function initializedState(spec) { - // spec also contains listRef, trackRef - var slideCount = spec.children.length; - var listWidth = Math.ceil(getWidth(spec.listRef)); - var trackWidth = Math.ceil(getWidth(spec.trackRef)); - var slideWidth = void 0; - if (!spec.vertical) { - var centerPaddingAdj = spec.centerMode && parseInt(spec.centerPadding) * 2; - if (typeof spec.centerPadding === 'string' && spec.centerPadding.slice(-1) === '%') { - centerPaddingAdj *= listWidth / 100; - } - slideWidth = Math.ceil((listWidth - centerPaddingAdj) / spec.slidesToShow); - } else { - slideWidth = listWidth; - } - var slideHeight = spec.listRef && getHeight(spec.listRef.querySelector('[data-index="0"]')); - var listHeight = slideHeight * spec.slidesToShow; - var currentSlide = spec.currentSlide === undefined ? spec.initialSlide : spec.currentSlide; - if (spec.rtl && spec.currentSlide === undefined) { - currentSlide = slideCount - 1 - spec.initialSlide; - } - var lazyLoadedList = spec.lazyLoadedList || []; - var slidesToLoad = getOnDemandLazySlides({ currentSlide: currentSlide, lazyLoadedList: lazyLoadedList }, spec); - lazyLoadedList.concat(slidesToLoad); - - var state = { - slideCount: slideCount, - slideWidth: slideWidth, - listWidth: listWidth, - trackWidth: trackWidth, - currentSlide: currentSlide, - slideHeight: slideHeight, - listHeight: listHeight, - lazyLoadedList: lazyLoadedList - }; +/** + * Determine if a value is an Object + * + * @param {Object} val The value to test + * @returns {boolean} True if value is an Object, otherwise false + */ +function isObject(val) { + return val !== null && typeof val === 'object'; +} - if (spec.autoplaying === null && spec.autoplay) { - state['autoplaying'] = 'playing'; - } +/** + * Determine if a value is a Date + * + * @param {Object} val The value to test + * @returns {boolean} True if value is a Date, otherwise false + */ +function isDate(val) { + return toString.call(val) === '[object Date]'; +} - return state; -}; +/** + * Determine if a value is a File + * + * @param {Object} val The value to test + * @returns {boolean} True if value is a File, otherwise false + */ +function isFile(val) { + return toString.call(val) === '[object File]'; +} -var slideHandler = exports.slideHandler = function slideHandler(spec) { - var waitForAnimate = spec.waitForAnimate, - animating = spec.animating, - fade = spec.fade, - infinite = spec.infinite, - index = spec.index, - slideCount = spec.slideCount, - lazyLoadedList = spec.lazyLoadedList, - lazyLoad = spec.lazyLoad, - currentSlide = spec.currentSlide, - centerMode = spec.centerMode, - slidesToScroll = spec.slidesToScroll, - slidesToShow = spec.slidesToShow, - useCSS = spec.useCSS; - - if (waitForAnimate && animating) return {}; - var animationSlide = index; - var finalSlide = void 0; - var animationLeft = void 0; - var finalLeft = void 0; - var state = {}; - var nextState = {}; - if (fade) { - if (!infinite && (index < 0 || index >= slideCount)) return {}; - if (index < 0) { - animationSlide = index + slideCount; - } else if (index >= slideCount) { - animationSlide = index - slideCount; - } - if (lazyLoad && lazyLoadedList.indexOf(animationSlide) < 0) { - lazyLoadedList.push(animationSlide); - } - state = { - animating: true, - currentSlide: animationSlide, - lazyLoadedList: lazyLoadedList - }; - nextState = { animating: false }; - } else { - finalSlide = animationSlide; - if (animationSlide < 0) { - finalSlide = animationSlide + slideCount; - if (!infinite) finalSlide = 0;else if (slideCount % slidesToScroll !== 0) { - finalSlide = slideCount - slideCount % slidesToScroll; - } - } else if (!canGoNext(spec) && animationSlide > currentSlide) { - animationSlide = finalSlide = currentSlide; - } else if (centerMode && animationSlide >= slideCount) { - animationSlide = infinite ? slideCount : slideCount - 1; - finalSlide = infinite ? 0 : slideCount - 1; - } else if (animationSlide >= slideCount) { - finalSlide = animationSlide - slideCount; - if (!infinite) finalSlide = slideCount - slidesToShow;else if (slideCount % slidesToScroll !== 0) finalSlide = 0; - } - animationLeft = getTrackLeft((0, _extends3['default'])({}, spec, { slideIndex: animationSlide })); - finalLeft = getTrackLeft((0, _extends3['default'])({}, spec, { slideIndex: finalSlide })); - if (!infinite) { - if (animationLeft === finalLeft) animationSlide = finalSlide; - animationLeft = finalLeft; - } - lazyLoad && lazyLoadedList.concat(getOnDemandLazySlides((0, _extends3['default'])({}, spec, { currentSlide: animationSlide }))); - if (!useCSS) { - state = { - currentSlide: finalSlide, - trackStyle: getTrackCSS((0, _extends3['default'])({}, spec, { left: finalLeft })), - lazyLoadedList: lazyLoadedList - }; - } else { - state = { - animating: true, - currentSlide: finalSlide, - trackStyle: getTrackAnimateCSS((0, _extends3['default'])({}, spec, { left: animationLeft })), - lazyLoadedList: lazyLoadedList - }; - nextState = { - animating: false, - currentSlide: finalSlide, - trackStyle: getTrackCSS((0, _extends3['default'])({}, spec, { left: finalLeft })), - swipeLeft: null - }; - } - } - return { state: state, nextState: nextState }; -}; +/** + * Determine if a value is a Blob + * + * @param {Object} val The value to test + * @returns {boolean} True if value is a Blob, otherwise false + */ +function isBlob(val) { + return toString.call(val) === '[object Blob]'; +} -var changeSlide = exports.changeSlide = function changeSlide(spec, options) { - var previousInt = void 0, - slideOffset = void 0, - targetSlide = void 0; - var slidesToScroll = spec.slidesToScroll, - slidesToShow = spec.slidesToShow, - slideCount = spec.slideCount, - currentSlide = spec.currentSlide, - lazyLoad = spec.lazyLoad, - infinite = spec.infinite; - - var unevenOffset = slideCount % slidesToScroll !== 0; - var indexOffset = unevenOffset ? 0 : (slideCount - currentSlide) % slidesToScroll; - - if (options.message === 'previous') { - slideOffset = indexOffset === 0 ? slidesToScroll : slidesToShow - indexOffset; - targetSlide = currentSlide - slideOffset; - if (lazyLoad && !infinite) { - previousInt = currentSlide - slideOffset; - targetSlide = previousInt === -1 ? slideCount - 1 : previousInt; - } - } else if (options.message === 'next') { - slideOffset = indexOffset === 0 ? slidesToScroll : indexOffset; - targetSlide = currentSlide + slideOffset; - if (lazyLoad && !infinite) { - targetSlide = (currentSlide + slidesToScroll) % slideCount + indexOffset; - } - } else if (options.message === 'dots') { - // Click on dots - targetSlide = options.index * options.slidesToScroll; - if (targetSlide === options.currentSlide) { - return null; - } - } else if (options.message === 'children') { - // Click on the slides - targetSlide = options.index; - if (targetSlide === options.currentSlide) { - return null; - } - if (infinite) { - var direction = siblingDirection((0, _extends3['default'])({}, spec, { targetSlide: targetSlide })); - if (targetSlide > options.currentSlide && direction === 'left') { - targetSlide = targetSlide - slideCount; - } else if (targetSlide < options.currentSlide && direction === 'right') { - targetSlide = targetSlide + slideCount; - } - } - } else if (options.message === 'index') { - targetSlide = Number(options.index); - if (targetSlide === options.currentSlide) { - return null; - } - } - return targetSlide; -}; -var keyHandler = exports.keyHandler = function keyHandler(e, accessibility, rtl) { - if (e.target.tagName.match('TEXTAREA|INPUT|SELECT') || !accessibility) { - return ''; - } - if (e.keyCode === 37) return rtl ? 'next' : 'previous'; - if (e.keyCode === 39) return rtl ? 'previous' : 'next'; - return ''; -}; +/** + * Determine if a value is a Function + * + * @param {Object} val The value to test + * @returns {boolean} True if value is a Function, otherwise false + */ +function isFunction(val) { + return toString.call(val) === '[object Function]'; +} -var swipeStart = exports.swipeStart = function swipeStart(e, swipe, draggable) { - e.target.tagName === 'IMG' && e.preventDefault(); - if (!swipe || !draggable && e.type.indexOf('mouse') !== -1) return ''; - return { - dragging: true, - touchObject: { - startX: e.touches ? e.touches[0].pageX : e.clientX, - startY: e.touches ? e.touches[0].pageY : e.clientY, - curX: e.touches ? e.touches[0].pageX : e.clientX, - curY: e.touches ? e.touches[0].pageY : e.clientY - } - }; -}; -var swipeMove = exports.swipeMove = function swipeMove(e, spec) { - // spec also contains, trackRef and slideIndex - var scrolling = spec.scrolling, - animating = spec.animating, - vertical = spec.vertical, - swipeToSlide = spec.swipeToSlide, - verticalSwiping = spec.verticalSwiping, - rtl = spec.rtl, - currentSlide = spec.currentSlide, - edgeFriction = spec.edgeFriction, - edgeDragged = spec.edgeDragged, - onEdge = spec.onEdge, - swiped = spec.swiped, - swiping = spec.swiping, - slideCount = spec.slideCount, - slidesToScroll = spec.slidesToScroll, - infinite = spec.infinite, - touchObject = spec.touchObject, - swipeEvent = spec.swipeEvent, - listHeight = spec.listHeight, - listWidth = spec.listWidth; - - if (scrolling) return; - if (animating) return e.preventDefault(); - if (vertical && swipeToSlide && verticalSwiping) e.preventDefault(); - var swipeLeft = void 0; - var state = {}; - var curLeft = getTrackLeft(spec); - touchObject.curX = e.touches ? e.touches[0].pageX : e.clientX; - touchObject.curY = e.touches ? e.touches[0].pageY : e.clientY; - touchObject.swipeLength = Math.round(Math.sqrt(Math.pow(touchObject.curX - touchObject.startX, 2))); - var verticalSwipeLength = Math.round(Math.sqrt(Math.pow(touchObject.curY - touchObject.startY, 2))); - if (!verticalSwiping && !swiping && verticalSwipeLength > 10) { - return { scrolling: true }; - } - if (verticalSwiping) touchObject.swipeLength = verticalSwipeLength; - var positionOffset = (!rtl ? 1 : -1) * (touchObject.curX > touchObject.startX ? 1 : -1); - if (verticalSwiping) { - positionOffset = touchObject.curY > touchObject.startY ? 1 : -1; - } +/** + * Determine if a value is a Stream + * + * @param {Object} val The value to test + * @returns {boolean} True if value is a Stream, otherwise false + */ +function isStream(val) { + return isObject(val) && isFunction(val.pipe); +} - var dotCount = Math.ceil(slideCount / slidesToScroll); - var swipeDirection = getSwipeDirection(spec.touchObject, verticalSwiping); - var touchSwipeLength = touchObject.swipeLength; - if (!infinite) { - if (currentSlide === 0 && swipeDirection === 'right' || currentSlide + 1 >= dotCount && swipeDirection === 'left' || !canGoNext(spec) && swipeDirection === 'left') { - touchSwipeLength = touchObject.swipeLength * edgeFriction; - if (edgeDragged === false && onEdge) { - onEdge(swipeDirection); - state['edgeDragged'] = true; - } - } - } - if (!swiped && swipeEvent) { - swipeEvent(swipeDirection); - state['swiped'] = true; - } - if (!vertical) { - if (!rtl) { - swipeLeft = curLeft + touchSwipeLength * positionOffset; - } else { - swipeLeft = curLeft - touchSwipeLength * positionOffset; - } - } else { - swipeLeft = curLeft + touchSwipeLength * (listHeight / listWidth) * positionOffset; - } - if (verticalSwiping) { - swipeLeft = curLeft + touchSwipeLength * positionOffset; - } - state = (0, _extends3['default'])({}, state, { - touchObject: touchObject, - swipeLeft: swipeLeft, - trackStyle: getTrackCSS((0, _extends3['default'])({}, spec, { left: swipeLeft })) - }); - if (Math.abs(touchObject.curX - touchObject.startX) < Math.abs(touchObject.curY - touchObject.startY) * 0.8) { - return state; - } - if (touchObject.swipeLength > 10) { - state['swiping'] = true; - e.preventDefault(); - } - return state; -}; -var swipeEnd = exports.swipeEnd = function swipeEnd(e, spec) { - var dragging = spec.dragging, - swipe = spec.swipe, - touchObject = spec.touchObject, - listWidth = spec.listWidth, - touchThreshold = spec.touchThreshold, - verticalSwiping = spec.verticalSwiping, - listHeight = spec.listHeight, - currentSlide = spec.currentSlide, - swipeToSlide = spec.swipeToSlide, - scrolling = spec.scrolling, - onSwipe = spec.onSwipe; - - if (!dragging) { - if (swipe) e.preventDefault(); - return {}; - } - var minSwipe = verticalSwiping ? listHeight / touchThreshold : listWidth / touchThreshold; - var swipeDirection = getSwipeDirection(touchObject, verticalSwiping); - // reset the state of touch related state variables. - var state = { - dragging: false, - edgeDragged: false, - scrolling: false, - swiping: false, - swiped: false, - swipeLeft: null, - touchObject: {} - }; - if (scrolling) { - return state; - } - if (!touchObject.swipeLength) { - return state; - } - if (touchObject.swipeLength > minSwipe) { - e.preventDefault(); - if (onSwipe) { - onSwipe(swipeDirection); - } - var slideCount = void 0, - newSlide = void 0; - switch (swipeDirection) { - case 'left': - case 'up': - newSlide = currentSlide + getSlideCount(spec); - slideCount = swipeToSlide ? checkNavigable(spec, newSlide) : newSlide; - state['currentDirection'] = 0; - break; - case 'right': - case 'down': - newSlide = currentSlide - getSlideCount(spec); - slideCount = swipeToSlide ? checkNavigable(spec, newSlide) : newSlide; - state['currentDirection'] = 1; - break; - default: - slideCount = currentSlide; - } - state['triggerSlideHandler'] = slideCount; - } else { - // Adjust the track back to it's original position. - var currentLeft = getTrackLeft(spec); - state['trackStyle'] = getTrackAnimateCSS((0, _extends3['default'])({}, spec, { left: currentLeft })); - } - return state; -}; -var getNavigableIndexes = exports.getNavigableIndexes = function getNavigableIndexes(spec) { - var max = spec.infinite ? spec.slideCount * 2 : spec.slideCount; - var breakpoint = spec.infinite ? spec.slidesToShow * -1 : 0; - var counter = spec.infinite ? spec.slidesToShow * -1 : 0; - var indexes = []; - while (breakpoint < max) { - indexes.push(breakpoint); - breakpoint = counter + spec.slidesToScroll; - counter += Math.min(spec.slidesToScroll, spec.slidesToShow); - } - return indexes; -}; -var checkNavigable = exports.checkNavigable = function checkNavigable(spec, index) { - var navigables = getNavigableIndexes(spec); - var prevNavigable = 0; - if (index > navigables[navigables.length - 1]) { - index = navigables[navigables.length - 1]; - } else { - for (var n in navigables) { - if (index < navigables[n]) { - index = prevNavigable; - break; - } - prevNavigable = navigables[n]; - } - } - return index; -}; -var getSlideCount = exports.getSlideCount = function getSlideCount(spec) { - var centerOffset = spec.centerMode ? spec.slideWidth * Math.floor(spec.slidesToShow / 2) : 0; - if (spec.swipeToSlide) { - var swipedSlide = void 0; - var slickList = spec.listRef; - var slides = slickList.querySelectorAll('.slick-slide'); - Array.from(slides).every(function (slide) { - if (!spec.vertical) { - if (slide.offsetLeft - centerOffset + getWidth(slide) / 2 > spec.swipeLeft * -1) { - swipedSlide = slide; - return false; - } - } else { - if (slide.offsetTop + getHeight(slide) / 2 > spec.swipeLeft * -1) { - swipedSlide = slide; - return false; - } - } +/** + * Determine if a value is a URLSearchParams object + * + * @param {Object} val The value to test + * @returns {boolean} True if value is a URLSearchParams object, otherwise false + */ +function isURLSearchParams(val) { + return typeof URLSearchParams !== 'undefined' && val instanceof URLSearchParams; +} - return true; - }); +/** + * Trim excess whitespace off the beginning and end of a string + * + * @param {String} str The String to trim + * @returns {String} The String freed of excess whitespace + */ +function trim(str) { + return str.replace(/^\s*/, '').replace(/\s*$/, ''); +} - if (!swipedSlide) { - return 0; - } - var currentIndex = spec.rtl === true ? spec.slideCount - spec.currentSlide : spec.currentSlide; - var slidesTraversed = Math.abs(swipedSlide.dataset.index - currentIndex) || 1; - return slidesTraversed; - } else { - return spec.slidesToScroll; +/** + * Determine if we're running in a standard browser environment + * + * This allows axios to run in a web worker, and react-native. + * Both environments support XMLHttpRequest, but not fully standard globals. + * + * web workers: + * typeof window -> undefined + * typeof document -> undefined + * + * react-native: + * navigator.product -> 'ReactNative' + * nativescript + * navigator.product -> 'NativeScript' or 'NS' + */ +function isStandardBrowserEnv() { + if (typeof navigator !== 'undefined' && (navigator.product === 'ReactNative' || + navigator.product === 'NativeScript' || + navigator.product === 'NS')) { + return false; } -}; + return ( + typeof window !== 'undefined' && + typeof document !== 'undefined' + ); +} -var checkSpecKeys = exports.checkSpecKeys = function checkSpecKeys(spec, keysArray) { - return keysArray.reduce(function (value, key) { - return value && spec.hasOwnProperty(key); - }, true) ? null : console.error('Keys Missing:', spec); -}; +/** + * Iterate over an Array or an Object invoking a function for each item. + * + * If `obj` is an Array callback will be called passing + * the value, index, and complete array for each item. + * + * If 'obj' is an Object callback will be called passing + * the value, key, and complete object for each property. + * + * @param {Object|Array} obj The object to iterate + * @param {Function} fn The callback to invoke for each item + */ +function forEach(obj, fn) { + // Don't bother if no value provided + if (obj === null || typeof obj === 'undefined') { + return; + } -var getTrackCSS = exports.getTrackCSS = function getTrackCSS(spec) { - checkSpecKeys(spec, ['left', 'variableWidth', 'slideCount', 'slidesToShow', 'slideWidth']); - var trackWidth = void 0, - trackHeight = void 0; - var trackChildren = spec.slideCount + 2 * spec.slidesToShow; - if (!spec.vertical) { - trackWidth = getTotalSlides(spec) * spec.slideWidth; - } else { - trackHeight = trackChildren * spec.slideHeight; + // Force an array if not already something iterable + if (typeof obj !== 'object') { + /*eslint no-param-reassign:0*/ + obj = [obj]; } - var style = { - opacity: 1, - transition: '', - WebkitTransition: '' - }; - if (spec.useTransform) { - var WebkitTransform = !spec.vertical ? 'translate3d(' + spec.left + 'px, 0px, 0px)' : 'translate3d(0px, ' + spec.left + 'px, 0px)'; - var transform = !spec.vertical ? 'translate3d(' + spec.left + 'px, 0px, 0px)' : 'translate3d(0px, ' + spec.left + 'px, 0px)'; - var msTransform = !spec.vertical ? 'translateX(' + spec.left + 'px)' : 'translateY(' + spec.left + 'px)'; - style = (0, _extends3['default'])({}, style, { - WebkitTransform: WebkitTransform, - transform: transform, - msTransform: msTransform - }); - } else { - if (spec.vertical) { - style['top'] = spec.left; - } else { - style['left'] = spec.left; + + if (isArray(obj)) { + // Iterate over array values + for (var i = 0, l = obj.length; i < l; i++) { + fn.call(null, obj[i], i, obj); } - } - if (spec.fade) style = { opacity: 1 }; - if (trackWidth) style.width = trackWidth + 'px'; - if (trackHeight) style.height = trackHeight + 'px'; - - // Fallback for IE8 - if (window && !window.addEventListener && window.attachEvent) { - if (!spec.vertical) { - style.marginLeft = spec.left + 'px'; - } else { - style.marginTop = spec.left + 'px'; + } else { + // Iterate over object keys + for (var key in obj) { + if (Object.prototype.hasOwnProperty.call(obj, key)) { + fn.call(null, obj[key], key, obj); + } } } +} - return style; -}; -var getTrackAnimateCSS = exports.getTrackAnimateCSS = function getTrackAnimateCSS(spec) { - checkSpecKeys(spec, ['left', 'variableWidth', 'slideCount', 'slidesToShow', 'slideWidth', 'speed', 'cssEase']); - var style = getTrackCSS(spec); - // useCSS is true by default so it can be undefined - if (spec.useTransform) { - style.WebkitTransition = '-webkit-transform ' + spec.speed + 'ms ' + spec.cssEase; - style.transition = 'transform ' + spec.speed + 'ms ' + spec.cssEase; - } else { - if (spec.vertical) { - style.transition = 'top ' + spec.speed + 'ms ' + spec.cssEase; +/** + * Accepts varargs expecting each argument to be an object, then + * immutably merges the properties of each object and returns result. + * + * When multiple objects contain the same key the later object in + * the arguments list will take precedence. + * + * Example: + * + * ```js + * var result = merge({foo: 123}, {foo: 456}); + * console.log(result.foo); // outputs 456 + * ``` + * + * @param {Object} obj1 Object to merge + * @returns {Object} Result of all merge properties + */ +function merge(/* obj1, obj2, obj3, ... */) { + var result = {}; + function assignValue(val, key) { + if (typeof result[key] === 'object' && typeof val === 'object') { + result[key] = merge(result[key], val); } else { - style.transition = 'left ' + spec.speed + 'ms ' + spec.cssEase; + result[key] = val; } } - return style; -}; -var getTrackLeft = exports.getTrackLeft = function getTrackLeft(spec) { - if (spec.unslick) { - return 0; - } - checkSpecKeys(spec, ['slideIndex', 'trackRef', 'infinite', 'centerMode', 'slideCount', 'slidesToShow', 'slidesToScroll', 'slideWidth', 'listWidth', 'variableWidth', 'slideHeight']); - - var slideIndex = spec.slideIndex, - trackRef = spec.trackRef, - infinite = spec.infinite, - centerMode = spec.centerMode, - slideCount = spec.slideCount, - slidesToShow = spec.slidesToShow, - slidesToScroll = spec.slidesToScroll, - slideWidth = spec.slideWidth, - listWidth = spec.listWidth, - variableWidth = spec.variableWidth, - slideHeight = spec.slideHeight, - fade = spec.fade, - vertical = spec.vertical; - - - var slideOffset = 0; - var targetLeft = void 0; - var targetSlide = void 0; - var verticalOffset = 0; - - if (fade || spec.slideCount === 1) { - return 0; + for (var i = 0, l = arguments.length; i < l; i++) { + forEach(arguments[i], assignValue); } + return result; +} - var slidesToOffset = 0; - if (infinite) { - slidesToOffset = -getPreClones(spec); // bring active slide to the beginning of visual area - // if next scroll doesn't have enough children, just reach till the end of original slides instead of shifting slidesToScroll children - if (slideCount % slidesToScroll !== 0 && slideIndex + slidesToScroll > slideCount) { - slidesToOffset = -(slideIndex > slideCount ? slidesToShow - (slideIndex - slideCount) : slideCount % slidesToScroll); - } - // shift current slide to center of the frame - if (centerMode) { - slidesToOffset += parseInt(slidesToShow / 2); - } - } else { - if (slideCount % slidesToScroll !== 0 && slideIndex + slidesToScroll > slideCount) { - slidesToOffset = slidesToShow - slideCount % slidesToScroll; - } - if (centerMode) { - slidesToOffset = parseInt(slidesToShow / 2); +/** + * Function equal to merge with the difference being that no reference + * to original objects is kept. + * + * @see merge + * @param {Object} obj1 Object to merge + * @returns {Object} Result of all merge properties + */ +function deepMerge(/* obj1, obj2, obj3, ... */) { + var result = {}; + function assignValue(val, key) { + if (typeof result[key] === 'object' && typeof val === 'object') { + result[key] = deepMerge(result[key], val); + } else if (typeof val === 'object') { + result[key] = deepMerge({}, val); + } else { + result[key] = val; } } - slideOffset = slidesToOffset * slideWidth; - verticalOffset = slidesToOffset * slideHeight; - if (!vertical) { - targetLeft = slideIndex * slideWidth * -1 + slideOffset; - } else { - targetLeft = slideIndex * slideHeight * -1 + verticalOffset; + for (var i = 0, l = arguments.length; i < l; i++) { + forEach(arguments[i], assignValue); } + return result; +} - if (variableWidth === true) { - var targetSlideIndex = void 0; - var trackElem = trackRef; - targetSlideIndex = slideIndex + getPreClones(spec); - targetSlide = trackElem && trackElem.childNodes[targetSlideIndex]; - targetLeft = targetSlide ? targetSlide.offsetLeft * -1 : 0; - if (centerMode === true) { - targetSlideIndex = infinite ? slideIndex + getPreClones(spec) : slideIndex; - targetSlide = trackElem && trackElem.children[targetSlideIndex]; - targetLeft = 0; - for (var slide = 0; slide < targetSlideIndex; slide++) { - targetLeft -= trackElem && trackElem.children[slide] && trackElem.children[slide].offsetWidth; - } - targetLeft -= parseInt(spec.centerPadding); - targetLeft += targetSlide && (listWidth - targetSlide.offsetWidth) / 2; +/** + * Extends object a by mutably adding to it the properties of object b. + * + * @param {Object} a The object to be extended + * @param {Object} b The object to copy properties from + * @param {Object} thisArg The object to bind function to + * @return {Object} The resulting value of object a + */ +function extend(a, b, thisArg) { + forEach(b, function assignValue(val, key) { + if (thisArg && typeof val === 'function') { + a[key] = bind(val, thisArg); + } else { + a[key] = val; } - } + }); + return a; +} - return targetLeft; +module.exports = { + isArray: isArray, + isArrayBuffer: isArrayBuffer, + isBuffer: isBuffer, + isFormData: isFormData, + isArrayBufferView: isArrayBufferView, + isString: isString, + isNumber: isNumber, + isObject: isObject, + isUndefined: isUndefined, + isDate: isDate, + isFile: isFile, + isBlob: isBlob, + isFunction: isFunction, + isStream: isStream, + isURLSearchParams: isURLSearchParams, + isStandardBrowserEnv: isStandardBrowserEnv, + forEach: forEach, + merge: merge, + deepMerge: deepMerge, + extend: extend, + trim: trim }; -var getPreClones = exports.getPreClones = function getPreClones(spec) { - if (spec.unslick || !spec.infinite) { - return 0; - } - if (spec.variableWidth) { - return spec.slideCount; - } - return spec.slidesToShow + (spec.centerMode ? 1 : 0); -}; -var getPostClones = exports.getPostClones = function getPostClones(spec) { - if (spec.unslick || !spec.infinite) { - return 0; - } - return spec.slideCount; -}; +/***/ }), -var getTotalSlides = exports.getTotalSlides = function getTotalSlides(spec) { - return spec.slideCount === 1 ? 1 : getPreClones(spec) + spec.slideCount + getPostClones(spec); -}; -var siblingDirection = exports.siblingDirection = function siblingDirection(spec) { - if (spec.targetSlide > spec.currentSlide) { - if (spec.targetSlide > spec.currentSlide + slidesOnRight(spec)) { - return 'left'; - } - return 'right'; - } else { - if (spec.targetSlide < spec.currentSlide - slidesOnLeft(spec)) { - return 'right'; - } - return 'left'; - } -}; +/***/ "./node_modules/is-buffer/index.js": +/*!*****************************************!*\ + !*** ./node_modules/is-buffer/index.js ***! + \*****************************************/ +/*! no static exports found */ +/***/ (function(module, exports) { -var slidesOnRight = exports.slidesOnRight = function slidesOnRight(_ref) { - var slidesToShow = _ref.slidesToShow, - centerMode = _ref.centerMode, - rtl = _ref.rtl, - centerPadding = _ref.centerPadding; - - // returns no of slides on the right of active slide - if (centerMode) { - var right = (slidesToShow - 1) / 2 + 1; - if (parseInt(centerPadding) > 0) right += 1; - if (rtl && slidesToShow % 2 === 0) right += 1; - return right; - } - if (rtl) { - return 0; - } - return slidesToShow - 1; -}; +/*! + * Determine if an object is a Buffer + * + * @author Feross Aboukhadijeh + * @license MIT + */ -var slidesOnLeft = exports.slidesOnLeft = function slidesOnLeft(_ref2) { - var slidesToShow = _ref2.slidesToShow, - centerMode = _ref2.centerMode, - rtl = _ref2.rtl, - centerPadding = _ref2.centerPadding; - - // returns no of slides on the left of active slide - if (centerMode) { - var left = (slidesToShow - 1) / 2 + 1; - if (parseInt(centerPadding) > 0) left += 1; - if (!rtl && slidesToShow % 2 === 0) left += 1; - return left; - } - if (rtl) { - return slidesToShow - 1; - } - return 0; -}; +module.exports = function isBuffer (obj) { + return obj != null && obj.constructor != null && + typeof obj.constructor.isBuffer === 'function' && obj.constructor.isBuffer(obj) +} -var canUseDOM = exports.canUseDOM = function canUseDOM() { - return !!(typeof window !== 'undefined' && window.document && window.document.createElement); -}; /***/ }), -/***/ "./node_modules/json2mq/index.js": -/*!***************************************!*\ - !*** ./node_modules/json2mq/index.js ***! - \***************************************/ -/*! no static exports found */ -/***/ (function(module, exports, __webpack_require__) { +/***/ "./node_modules/vue-loader/lib/runtime/componentNormalizer.js": +/*!********************************************************************!*\ + !*** ./node_modules/vue-loader/lib/runtime/componentNormalizer.js ***! + \********************************************************************/ +/*! exports provided: default */ +/***/ (function(module, __webpack_exports__, __webpack_require__) { -var camel2hyphen = __webpack_require__(/*! string-convert/camel2hyphen */ "./node_modules/string-convert/camel2hyphen.js"); - -var isDimension = function (feature) { - var re = /[height|width]$/; - return re.test(feature); -}; +"use strict"; +__webpack_require__.r(__webpack_exports__); +/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return normalizeComponent; }); +/* globals __VUE_SSR_CONTEXT__ */ + +// IMPORTANT: Do NOT use ES2015 features in this file (except for modules). +// This module is a runtime utility for cleaner component module output and will +// be included in the final webpack user bundle. + +function normalizeComponent ( + scriptExports, + render, + staticRenderFns, + functionalTemplate, + injectStyles, + scopeId, + moduleIdentifier, /* server only */ + shadowMode /* vue-cli only */ +) { + // Vue.extend constructor export interop + var options = typeof scriptExports === 'function' + ? scriptExports.options + : scriptExports + + // render functions + if (render) { + options.render = render + options.staticRenderFns = staticRenderFns + options._compiled = true + } -var obj2mq = function (obj) { - var mq = ''; - var features = Object.keys(obj); - features.forEach(function (feature, index) { - var value = obj[feature]; - feature = camel2hyphen(feature); - // Add px to dimension features - if (isDimension(feature) && typeof value === 'number') { - value = value + 'px'; - } - if (value === true) { - mq += feature; - } else if (value === false) { - mq += 'not ' + feature; - } else { - mq += '(' + feature + ': ' + value + ')'; - } - if (index < features.length-1) { - mq += ' and ' - } - }); - return mq; -}; + // functional template + if (functionalTemplate) { + options.functional = true + } -var json2mq = function (query) { - var mq = ''; - if (typeof query === 'string') { - return query; + // scopedId + if (scopeId) { + options._scopeId = 'data-v-' + scopeId } - // Handling array of media queries - if (query instanceof Array) { - query.forEach(function (q, index) { - mq += obj2mq(q); - if (index < query.length-1) { - mq += ', ' + + var hook + if (moduleIdentifier) { // server build + hook = function (context) { + // 2.3 injection + context = + context || // cached call + (this.$vnode && this.$vnode.ssrContext) || // stateful + (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional + // 2.2 with runInNewContext: true + if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') { + context = __VUE_SSR_CONTEXT__ } - }); - return mq; + // inject component styles + if (injectStyles) { + injectStyles.call(this, context) + } + // register component module identifier for async chunk inferrence + if (context && context._registeredComponents) { + context._registeredComponents.add(moduleIdentifier) + } + } + // used by ssr in case component is cached and beforeCreate + // never gets called + options._ssrRegister = hook + } else if (injectStyles) { + hook = shadowMode + ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) } + : injectStyles } - // Handling single media query - return obj2mq(query); -}; - -module.exports = json2mq; -/***/ }), - -/***/ "./node_modules/string-convert/camel2hyphen.js": -/*!*****************************************************!*\ - !*** ./node_modules/string-convert/camel2hyphen.js ***! - \*****************************************************/ -/*! no static exports found */ -/***/ (function(module, exports) { + if (hook) { + if (options.functional) { + // for template-only hot-reload because in that case the render fn doesn't + // go through the normalizer + options._injectStyles = hook + // register for functioal component in vue file + var originalRender = options.render + options.render = function renderWithStyleInjection (h, context) { + hook.call(context) + return originalRender(h, context) + } + } else { + // inject component registration as beforeCreate hook + var existing = options.beforeCreate + options.beforeCreate = existing + ? [].concat(existing, hook) + : [hook] + } + } -var camel2hyphen = function (str) { - return str - .replace(/[A-Z]/g, function (match) { - return '-' + match.toLowerCase(); - }) - .toLowerCase(); -}; + return { + exports: scriptExports, + options: options + } +} -module.exports = camel2hyphen; /***/ }) diff --git a/public/js/chunk/7.js b/public/js/chunk/7.js index 2ade0a017..899509d51 100644 --- a/public/js/chunk/7.js +++ b/public/js/chunk/7.js @@ -1,480 +1,1689 @@ (window["webpackJsonp"] = window["webpackJsonp"] || []).push([[7],{ -/***/ "./node_modules/babel-loader/lib/index.js?!./node_modules/vue-loader/lib/index.js?!./resources/components/CategoryPage.vue?vue&type=script&lang=js&": -/*!********************************************************************************************************************************************************************!*\ - !*** ./node_modules/babel-loader/lib??ref--4-0!./node_modules/vue-loader/lib??vue-loader-options!./resources/components/CategoryPage.vue?vue&type=script&lang=js& ***! - \********************************************************************************************************************************************************************/ -/*! exports provided: default */ -/***/ (function(module, __webpack_exports__, __webpack_require__) { +/***/ "./node_modules/ant-design-vue/lib/_util/getScrollBarSize.js": +/*!*******************************************************************!*\ + !*** ./node_modules/ant-design-vue/lib/_util/getScrollBarSize.js ***! + \*******************************************************************/ +/*! no static exports found */ +/***/ (function(module, exports, __webpack_require__) { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports['default'] = getScrollBarSize; +var cached = void 0; + +function getScrollBarSize(fresh) { + if (fresh || cached === undefined) { + var inner = document.createElement('div'); + inner.style.width = '100%'; + inner.style.height = '200px'; + + var outer = document.createElement('div'); + var outerStyle = outer.style; + + outerStyle.position = 'absolute'; + outerStyle.top = 0; + outerStyle.left = 0; + outerStyle.pointerEvents = 'none'; + outerStyle.visibility = 'hidden'; + outerStyle.width = '200px'; + outerStyle.height = '150px'; + outerStyle.overflow = 'hidden'; + + outer.appendChild(inner); + + document.body.appendChild(outer); + + var widthContained = inner.offsetWidth; + outer.style.overflow = 'scroll'; + var widthScroll = inner.offsetWidth; + + if (widthContained === widthScroll) { + widthScroll = outer.clientWidth; + } + + document.body.removeChild(outer); + + cached = widthContained - widthScroll; + } + return cached; +} + +/***/ }), + +/***/ "./node_modules/ant-design-vue/lib/_util/switchScrollingEffect.js": +/*!************************************************************************!*\ + !*** ./node_modules/ant-design-vue/lib/_util/switchScrollingEffect.js ***! + \************************************************************************/ +/*! no static exports found */ +/***/ (function(module, exports, __webpack_require__) { "use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony import */ var lodash_isNil__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! lodash/isNil */ "./node_modules/lodash/isNil.js"); -/* harmony import */ var lodash_isNil__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(lodash_isNil__WEBPACK_IMPORTED_MODULE_0__); -/* harmony import */ var querystring__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! querystring */ "./node_modules/querystring-es3/index.js"); -/* harmony import */ var querystring__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(querystring__WEBPACK_IMPORTED_MODULE_1__); -/* harmony import */ var lodash_isArray__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! lodash/isArray */ "./node_modules/lodash/isArray.js"); -/* harmony import */ var lodash_isArray__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(lodash_isArray__WEBPACK_IMPORTED_MODULE_2__); +Object.defineProperty(exports, "__esModule", { + value: true +}); + +var _getScrollBarSize = __webpack_require__(/*! ./getScrollBarSize */ "./node_modules/ant-design-vue/lib/_util/getScrollBarSize.js"); + +var _getScrollBarSize2 = _interopRequireDefault(_getScrollBarSize); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } + +exports['default'] = function (close) { + var bodyIsOverflowing = document.body.scrollHeight > (window.innerHeight || document.documentElement.clientHeight) && window.innerWidth > document.body.offsetWidth; + if (!bodyIsOverflowing) { + return; + } + if (close) { + document.body.style.position = ''; + document.body.style.width = ''; + return; + } + var scrollBarSize = (0, _getScrollBarSize2['default'])(); + if (scrollBarSize) { + document.body.style.position = 'relative'; + document.body.style.width = 'calc(100% - ' + scrollBarSize + 'px)'; + } +}; + +/***/ }), + +/***/ "./node_modules/ant-design-vue/lib/modal/ActionButton.js": +/*!***************************************************************!*\ + !*** ./node_modules/ant-design-vue/lib/modal/ActionButton.js ***! + \***************************************************************/ +/*! no static exports found */ +/***/ (function(module, exports, __webpack_require__) { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", { + value: true +}); + +var _babelHelperVueJsxMergeProps = __webpack_require__(/*! babel-helper-vue-jsx-merge-props */ "./node_modules/babel-helper-vue-jsx-merge-props/index.js"); + +var _babelHelperVueJsxMergeProps2 = _interopRequireDefault(_babelHelperVueJsxMergeProps); + +var _vueTypes = __webpack_require__(/*! ../_util/vue-types */ "./node_modules/ant-design-vue/lib/_util/vue-types/index.js"); + +var _vueTypes2 = _interopRequireDefault(_vueTypes); + +var _button = __webpack_require__(/*! ../button */ "./node_modules/ant-design-vue/lib/button/index.js"); + +var _button2 = _interopRequireDefault(_button); + +var _BaseMixin = __webpack_require__(/*! ../_util/BaseMixin */ "./node_modules/ant-design-vue/lib/_util/BaseMixin.js"); + +var _BaseMixin2 = _interopRequireDefault(_BaseMixin); + +var _buttonTypes = __webpack_require__(/*! ../button/buttonTypes */ "./node_modules/ant-design-vue/lib/button/buttonTypes.js"); + +var _buttonTypes2 = _interopRequireDefault(_buttonTypes); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } + +var ButtonType = (0, _buttonTypes2['default'])().type; +var ActionButtonProps = { + type: ButtonType, + actionFn: _vueTypes2['default'].func, + closeModal: _vueTypes2['default'].func, + autoFocus: _vueTypes2['default'].bool, + buttonProps: _vueTypes2['default'].object +}; -/* harmony default export */ __webpack_exports__["default"] = ({ - props: ['currentUrl', 'filterProp'], +exports['default'] = { + mixins: [_BaseMixin2['default']], + props: ActionButtonProps, data: function data() { return { - filter: {} + loading: false }; }, + mounted: function mounted() { + var _this = this; + + if (this.autoFocus) { + this.timeoutId = setTimeout(function () { + return _this.$el.focus(); + }); + } + }, + beforeDestroy: function beforeDestroy() { + clearTimeout(this.timeoutId); + }, + methods: { - filterCheckboxChange: function filterCheckboxChange(e, filterSlug, filterValue, type) { - if (e.target.checked) { - if (type === 'PROPERTY') { - var arraySlug = 'p___' + filterSlug + '[]'; + onClick: function onClick() { + var _this2 = this; + + var actionFn = this.actionFn, + closeModal = this.closeModal; + + if (actionFn) { + var ret = void 0; + if (actionFn.length) { + ret = actionFn(closeModal); + } else { + ret = actionFn(); + if (!ret) { + closeModal(); + } } - - if (type === 'ATTRIBUTE') { - var arraySlug = 'a___' + filterSlug + '[]'; + if (ret && ret.then) { + this.setState({ loading: true }); + ret.then(function () { + // It's unnecessary to set loading=false, for the Modal will be unmounted after close. + // this.setState({ loading: false }); + closeModal.apply(undefined, arguments); + }, function () { + // See: https://github.com/ant-design/ant-design/issues/6183 + _this2.setState({ loading: false }); + }); } + } else { + closeModal(); + } + } + }, - if (lodash_isNil__WEBPACK_IMPORTED_MODULE_0___default()(this.filter[arraySlug])) { - this.filter[arraySlug] = []; + render: function render() { + var h = arguments[0]; + var type = this.type, + $slots = this.$slots, + loading = this.loading, + buttonProps = this.buttonProps; + + return h( + _button2['default'], + (0, _babelHelperVueJsxMergeProps2['default'])([{ + attrs: { type: type, loading: loading }, + on: { + 'click': this.onClick } + }, buttonProps]), + [$slots['default']] + ); + } +}; - this.filter[arraySlug].push(filterValue); - } else { - if (type === 'PROPERTY') { - var arraySlug = 'p___' + filterSlug + '[]'; - } +/***/ }), - if (type === 'ATTRIBUTE') { - var arraySlug = 'a___' + filterSlug + '[]'; - } +/***/ "./node_modules/ant-design-vue/lib/modal/ConfirmDialog.js": +/*!****************************************************************!*\ + !*** ./node_modules/ant-design-vue/lib/modal/ConfirmDialog.js ***! + \****************************************************************/ +/*! no static exports found */ +/***/ (function(module, exports, __webpack_require__) { - if (lodash_isNil__WEBPACK_IMPORTED_MODULE_0___default()(this.filter[arraySlug])) { - this.filter[arraySlug] = []; - } +"use strict"; - var index = this.filter[arraySlug].findIndex(function (ele) { - return ele === filterValue; - }); - this.filter[arraySlug].splice(index, 1); - } - location = this.currentUrl + '?' + querystring__WEBPACK_IMPORTED_MODULE_1___default.a.stringify(this.filter); - } - }, - mounted: function mounted() { - for (var key in this.filterProp) { - if (lodash_isArray__WEBPACK_IMPORTED_MODULE_2___default()(this.filterProp[key])) { - var arrayKey = key + '[]'; - this.filter[arrayKey] = []; - this.filter[arrayKey] = this.filterProp[key]; - } - } - } +Object.defineProperty(exports, "__esModule", { + value: true }); +var _defineProperty2 = __webpack_require__(/*! babel-runtime/helpers/defineProperty */ "./node_modules/babel-runtime/helpers/defineProperty.js"); + +var _defineProperty3 = _interopRequireDefault(_defineProperty2); + +var _classnames = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js"); + +var _classnames2 = _interopRequireDefault(_classnames); + +var _icon = __webpack_require__(/*! ../icon */ "./node_modules/ant-design-vue/lib/icon/index.js"); + +var _icon2 = _interopRequireDefault(_icon); + +var _Modal = __webpack_require__(/*! ./Modal */ "./node_modules/ant-design-vue/lib/modal/Modal.js"); + +var _Modal2 = _interopRequireDefault(_Modal); + +var _ActionButton = __webpack_require__(/*! ./ActionButton */ "./node_modules/ant-design-vue/lib/modal/ActionButton.js"); + +var _ActionButton2 = _interopRequireDefault(_ActionButton); + +var _locale = __webpack_require__(/*! ./locale */ "./node_modules/ant-design-vue/lib/modal/locale.js"); + +var _warning = __webpack_require__(/*! ../_util/warning */ "./node_modules/ant-design-vue/lib/_util/warning.js"); + +var _warning2 = _interopRequireDefault(_warning); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } + +exports['default'] = { + functional: true, + render: function render(h, context) { + var props = context.props; + var onCancel = props.onCancel, + onOk = props.onOk, + close = props.close, + zIndex = props.zIndex, + afterClose = props.afterClose, + visible = props.visible, + keyboard = props.keyboard, + centered = props.centered, + getContainer = props.getContainer, + maskStyle = props.maskStyle, + okButtonProps = props.okButtonProps, + cancelButtonProps = props.cancelButtonProps, + _props$iconType = props.iconType, + iconType = _props$iconType === undefined ? 'question-circle' : _props$iconType, + _props$closable = props.closable, + closable = _props$closable === undefined ? false : _props$closable; + + (0, _warning2['default'])(!('iconType' in props), 'The property \'iconType\' is deprecated. Use the property \'icon\' instead.'); + var icon = props.icon ? props.icon : iconType; + var okType = props.okType || 'primary'; + var prefixCls = props.prefixCls || 'ant-modal'; + var contentPrefixCls = prefixCls + '-confirm'; + // 默认为 true,保持向下兼容 + var okCancel = 'okCancel' in props ? props.okCancel : true; + var width = props.width || 416; + var style = props.style || {}; + var mask = props.mask === undefined ? true : props.mask; + // 默认为 false,保持旧版默认行为 + var maskClosable = props.maskClosable === undefined ? false : props.maskClosable; + var runtimeLocale = (0, _locale.getConfirmLocale)(); + var okText = props.okText || (okCancel ? runtimeLocale.okText : runtimeLocale.justOkText); + var cancelText = props.cancelText || runtimeLocale.cancelText; + var autoFocusButton = props.autoFocusButton === null ? false : props.autoFocusButton || 'ok'; + var transitionName = props.transitionName || 'zoom'; + var maskTransitionName = props.maskTransitionName || 'fade'; + + var classString = (0, _classnames2['default'])(contentPrefixCls, contentPrefixCls + '-' + props.type, prefixCls + '-' + props.type, props['class']); + + var cancelButton = okCancel && h( + _ActionButton2['default'], + { + attrs: { + actionFn: onCancel, + closeModal: close, + autoFocus: autoFocusButton === 'cancel', + buttonProps: cancelButtonProps + } + }, + [cancelText] + ); + var iconNode = typeof icon === 'string' ? h(_icon2['default'], { + attrs: { type: icon } + }) : icon(h); + + return h( + _Modal2['default'], + { + attrs: { + prefixCls: prefixCls, + + wrapClassName: (0, _classnames2['default'])((0, _defineProperty3['default'])({}, contentPrefixCls + '-centered', !!centered)), + + visible: visible, + closable: closable, + title: '', + transitionName: transitionName, + footer: '', + maskTransitionName: maskTransitionName, + mask: mask, + maskClosable: maskClosable, + maskStyle: maskStyle, + + width: width, + zIndex: zIndex, + afterClose: afterClose, + keyboard: keyboard, + centered: centered, + getContainer: getContainer + }, + 'class': classString, on: { + 'cancel': function cancel(e) { + return close({ triggerCancel: true }, e); + } + }, + style: style }, + [h( + 'div', + { 'class': contentPrefixCls + '-body-wrapper' }, + [h( + 'div', + { 'class': contentPrefixCls + '-body' }, + [iconNode, h( + 'span', + { 'class': contentPrefixCls + '-title' }, + [typeof props.title === 'function' ? props.title(h) : props.title] + ), h( + 'div', + { 'class': contentPrefixCls + '-content' }, + [typeof props.content === 'function' ? props.content(h) : props.content] + )] + ), h( + 'div', + { 'class': contentPrefixCls + '-btns' }, + [cancelButton, h( + _ActionButton2['default'], + { + attrs: { + type: okType, + actionFn: onOk, + closeModal: close, + autoFocus: autoFocusButton === 'ok', + buttonProps: okButtonProps + } + }, + [okText] + )] + )] + )] + ); + } +}; + /***/ }), -/***/ "./node_modules/lodash/isNil.js": -/*!**************************************!*\ - !*** ./node_modules/lodash/isNil.js ***! - \**************************************/ +/***/ "./node_modules/ant-design-vue/lib/modal/Modal.js": +/*!********************************************************!*\ + !*** ./node_modules/ant-design-vue/lib/modal/Modal.js ***! + \********************************************************/ /*! no static exports found */ -/***/ (function(module, exports) { - -/** - * Checks if `value` is `null` or `undefined`. - * - * @static - * @memberOf _ - * @since 4.0.0 - * @category Lang - * @param {*} value The value to check. - * @returns {boolean} Returns `true` if `value` is nullish, else `false`. - * @example - * - * _.isNil(null); - * // => true - * - * _.isNil(void 0); - * // => true - * - * _.isNil(NaN); - * // => false - */ -function isNil(value) { - return value == null; -} +/***/ (function(module, exports, __webpack_require__) { -module.exports = isNil; +"use strict"; + + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.destroyFns = undefined; + +var _defineProperty2 = __webpack_require__(/*! babel-runtime/helpers/defineProperty */ "./node_modules/babel-runtime/helpers/defineProperty.js"); + +var _defineProperty3 = _interopRequireDefault(_defineProperty2); + +var _extends2 = __webpack_require__(/*! babel-runtime/helpers/extends */ "./node_modules/babel-runtime/helpers/extends.js"); + +var _extends3 = _interopRequireDefault(_extends2); + +var _classnames = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js"); + +var _classnames2 = _interopRequireDefault(_classnames); + +var _vcDialog = __webpack_require__(/*! ../vc-dialog */ "./node_modules/ant-design-vue/lib/vc-dialog/index.js"); + +var _vcDialog2 = _interopRequireDefault(_vcDialog); + +var _vueTypes = __webpack_require__(/*! ../_util/vue-types */ "./node_modules/ant-design-vue/lib/_util/vue-types/index.js"); + +var _vueTypes2 = _interopRequireDefault(_vueTypes); + +var _addEventListener = __webpack_require__(/*! ../_util/Dom/addEventListener */ "./node_modules/ant-design-vue/lib/_util/Dom/addEventListener.js"); + +var _addEventListener2 = _interopRequireDefault(_addEventListener); + +var _locale = __webpack_require__(/*! ./locale */ "./node_modules/ant-design-vue/lib/modal/locale.js"); + +var _icon = __webpack_require__(/*! ../icon */ "./node_modules/ant-design-vue/lib/icon/index.js"); + +var _icon2 = _interopRequireDefault(_icon); + +var _button = __webpack_require__(/*! ../button */ "./node_modules/ant-design-vue/lib/button/index.js"); + +var _button2 = _interopRequireDefault(_button); + +var _buttonTypes = __webpack_require__(/*! ../button/buttonTypes */ "./node_modules/ant-design-vue/lib/button/buttonTypes.js"); + +var _buttonTypes2 = _interopRequireDefault(_buttonTypes); +var _LocaleReceiver = __webpack_require__(/*! ../locale-provider/LocaleReceiver */ "./node_modules/ant-design-vue/lib/locale-provider/LocaleReceiver.js"); + +var _LocaleReceiver2 = _interopRequireDefault(_LocaleReceiver); + +var _propsUtil = __webpack_require__(/*! ../_util/props-util */ "./node_modules/ant-design-vue/lib/_util/props-util.js"); + +var _configProvider = __webpack_require__(/*! ../config-provider */ "./node_modules/ant-design-vue/lib/config-provider/index.js"); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } + +var ButtonType = (0, _buttonTypes2['default'])().type; + + +var mousePosition = null; +var mousePositionEventBinded = false; +function noop() {} +var modalProps = function modalProps() { + var defaultProps = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {}; + + var props = { + prefixCls: _vueTypes2['default'].string, + /** 对话框是否可见*/ + visible: _vueTypes2['default'].bool, + /** 确定按钮 loading*/ + confirmLoading: _vueTypes2['default'].bool, + /** 标题*/ + title: _vueTypes2['default'].any, + /** 是否显示右上角的关闭按钮*/ + closable: _vueTypes2['default'].bool, + /** 点击确定回调*/ + // onOk: (e: React.MouseEvent) => void, + /** 点击模态框右上角叉、取消按钮、Props.maskClosable 值为 true 时的遮罩层或键盘按下 Esc 时的回调*/ + // onCancel: (e: React.MouseEvent) => void, + afterClose: _vueTypes2['default'].func.def(noop), + /** 垂直居中 */ + centered: _vueTypes2['default'].bool, + /** 宽度*/ + width: _vueTypes2['default'].oneOfType([_vueTypes2['default'].string, _vueTypes2['default'].number]), + /** 底部内容*/ + footer: _vueTypes2['default'].any, + /** 确认按钮文字*/ + okText: _vueTypes2['default'].any, + /** 确认按钮类型*/ + okType: ButtonType, + /** 取消按钮文字*/ + cancelText: _vueTypes2['default'].any, + icon: _vueTypes2['default'].any, + /** 点击蒙层是否允许关闭*/ + maskClosable: _vueTypes2['default'].bool, + /** 强制渲染 Modal*/ + forceRender: _vueTypes2['default'].bool, + okButtonProps: _vueTypes2['default'].object, + cancelButtonProps: _vueTypes2['default'].object, + destroyOnClose: _vueTypes2['default'].bool, + wrapClassName: _vueTypes2['default'].string, + maskTransitionName: _vueTypes2['default'].string, + transitionName: _vueTypes2['default'].string, + getContainer: _vueTypes2['default'].func, + zIndex: _vueTypes2['default'].number, + bodyStyle: _vueTypes2['default'].object, + maskStyle: _vueTypes2['default'].object, + mask: _vueTypes2['default'].bool, + keyboard: _vueTypes2['default'].bool, + wrapProps: _vueTypes2['default'].object + }; + return (0, _propsUtil.initDefaultProps)(props, defaultProps); +}; + +var destroyFns = exports.destroyFns = []; + +exports['default'] = { + name: 'AModal', + model: { + prop: 'visible', + event: 'change' + }, + props: modalProps({ + width: 520, + transitionName: 'zoom', + maskTransitionName: 'fade', + confirmLoading: false, + visible: false, + okType: 'primary' + // okButtonDisabled: false, + // cancelButtonDisabled: false, + }), + inject: { + configProvider: { 'default': function _default() { + return _configProvider.ConfigConsumerProps; + } } + }, + mounted: function mounted() { + if (mousePositionEventBinded) { + return; + } + // 只有点击事件支持从鼠标位置动画展开 + (0, _addEventListener2['default'])(document.documentElement, 'click', function (e) { + mousePosition = { + x: e.pageX, + y: e.pageY + }; + // 100ms 内发生过点击事件,则从点击位置动画展示 + // 否则直接 zoom 展示 + // 这样可以兼容非点击方式展开 + setTimeout(function () { + mousePosition = null; + }, 100); + }); + mousePositionEventBinded = true; + }, + + // static info: ModalFunc; + // static success: ModalFunc; + // static error: ModalFunc; + // static warn: ModalFunc; + // static warning: ModalFunc; + // static confirm: ModalFunc; + methods: { + handleCancel: function handleCancel(e) { + this.$emit('cancel', e); + this.$emit('change', false); + }, + handleOk: function handleOk(e) { + this.$emit('ok', e); + }, + renderFooter: function renderFooter(locale) { + var h = this.$createElement; + var okType = this.okType, + confirmLoading = this.confirmLoading; + + var cancelBtnProps = (0, _propsUtil.mergeProps)({ on: { click: this.handleCancel } }, this.cancelButtonProps || {}); + var okBtnProps = (0, _propsUtil.mergeProps)({ + on: { click: this.handleOk }, + props: { + type: okType, + loading: confirmLoading + } + }, this.okButtonProps || {}); + return h('div', [h( + _button2['default'], + cancelBtnProps, + [(0, _propsUtil.getComponentFromProp)(this, 'cancelText') || locale.cancelText] + ), h( + _button2['default'], + okBtnProps, + [(0, _propsUtil.getComponentFromProp)(this, 'okText') || locale.okText] + )]); + } + }, + + render: function render() { + var h = arguments[0]; + var customizePrefixCls = this.prefixCls, + visible = this.visible, + wrapClassName = this.wrapClassName, + centered = this.centered, + $listeners = this.$listeners, + $slots = this.$slots; + + + var getPrefixCls = this.configProvider.getPrefixCls; + var prefixCls = getPrefixCls('modal', customizePrefixCls); + + var defaultFooter = h(_LocaleReceiver2['default'], { + attrs: { + componentName: 'Modal', + defaultLocale: (0, _locale.getConfirmLocale)() + }, + scopedSlots: { 'default': this.renderFooter } + }); + var closeIcon = h( + 'span', + { 'class': prefixCls + '-close-x' }, + [h(_icon2['default'], { 'class': prefixCls + '-close-icon', attrs: { type: 'close' } + })] + ); + var footer = (0, _propsUtil.getComponentFromProp)(this, 'footer'); + var title = (0, _propsUtil.getComponentFromProp)(this, 'title'); + var dialogProps = { + props: (0, _extends3['default'])({}, this.$props, { + prefixCls: prefixCls, + wrapClassName: (0, _classnames2['default'])((0, _defineProperty3['default'])({}, prefixCls + '-centered', !!centered), wrapClassName), + title: title, + footer: footer === undefined ? defaultFooter : footer, + visible: visible, + mousePosition: mousePosition, + closeIcon: closeIcon + }), + on: (0, _extends3['default'])({}, $listeners, { + close: this.handleCancel + }), + 'class': (0, _propsUtil.getClass)(this), + style: (0, _propsUtil.getStyle)(this) + }; + return h( + _vcDialog2['default'], + dialogProps, + [$slots['default']] + ); + } +}; /***/ }), -/***/ "./node_modules/querystring-es3/decode.js": -/*!************************************************!*\ - !*** ./node_modules/querystring-es3/decode.js ***! - \************************************************/ +/***/ "./node_modules/ant-design-vue/lib/modal/confirm.js": +/*!**********************************************************!*\ + !*** ./node_modules/ant-design-vue/lib/modal/confirm.js ***! + \**********************************************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { "use strict"; -// Copyright Joyent, Inc. and other Node contributors. -// -// Permission is hereby granted, free of charge, to any person obtaining a -// copy of this software and associated documentation files (the -// "Software"), to deal in the Software without restriction, including -// without limitation the rights to use, copy, modify, merge, publish, -// distribute, sublicense, and/or sell copies of the Software, and to permit -// persons to whom the Software is furnished to do so, subject to the -// following conditions: -// -// The above copyright notice and this permission notice shall be included -// in all copies or substantial portions of the Software. -// -// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS -// OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF -// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN -// NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, -// DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR -// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE -// USE OR OTHER DEALINGS IN THE SOFTWARE. - - - -// If obj.hasOwnProperty has been overridden, then calling -// obj.hasOwnProperty(prop) will break. -// See: https://github.com/joyent/node/issues/1707 -function hasOwnProperty(obj, prop) { - return Object.prototype.hasOwnProperty.call(obj, prop); -} -module.exports = function(qs, sep, eq, options) { - sep = sep || '&'; - eq = eq || '='; - var obj = {}; - if (typeof qs !== 'string' || qs.length === 0) { - return obj; - } +Object.defineProperty(exports, "__esModule", { + value: true +}); - var regexp = /\+/g; - qs = qs.split(sep); +var _extends2 = __webpack_require__(/*! babel-runtime/helpers/extends */ "./node_modules/babel-runtime/helpers/extends.js"); - var maxKeys = 1000; - if (options && typeof options.maxKeys === 'number') { - maxKeys = options.maxKeys; - } +var _extends3 = _interopRequireDefault(_extends2); - var len = qs.length; - // maxKeys <= 0 means that we should not limit keys count - if (maxKeys > 0 && len > maxKeys) { - len = maxKeys; - } +exports['default'] = confirm; - for (var i = 0; i < len; ++i) { - var x = qs[i].replace(regexp, '%20'), - idx = x.indexOf(eq), - kstr, vstr, k, v; +var _vue = __webpack_require__(/*! vue */ "./node_modules/vue/dist/vue.common.js"); - if (idx >= 0) { - kstr = x.substr(0, idx); - vstr = x.substr(idx + 1); - } else { - kstr = x; - vstr = ''; +var _vue2 = _interopRequireDefault(_vue); + +var _ConfirmDialog = __webpack_require__(/*! ./ConfirmDialog */ "./node_modules/ant-design-vue/lib/modal/ConfirmDialog.js"); + +var _ConfirmDialog2 = _interopRequireDefault(_ConfirmDialog); + +var _Modal = __webpack_require__(/*! ./Modal */ "./node_modules/ant-design-vue/lib/modal/Modal.js"); + +var _base = __webpack_require__(/*! ../base */ "./node_modules/ant-design-vue/lib/base/index.js"); + +var _base2 = _interopRequireDefault(_base); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } + +function confirm(config) { + var div = document.createElement('div'); + var el = document.createElement('div'); + div.appendChild(el); + document.body.appendChild(div); + var currentConfig = (0, _extends3['default'])({}, config, { close: close, visible: true }); + + var confirmDialogInstance = null; + var confirmDialogProps = { props: {} }; + function close() { + destroy.apply(undefined, arguments); + } + function update(newConfig) { + currentConfig = (0, _extends3['default'])({}, currentConfig, newConfig); + confirmDialogProps.props = currentConfig; + } + function destroy() { + if (confirmDialogInstance && div.parentNode) { + confirmDialogInstance.$destroy(); + confirmDialogInstance = null; + div.parentNode.removeChild(div); } - k = decodeURIComponent(kstr); - v = decodeURIComponent(vstr); + for (var _len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++) { + args[_key] = arguments[_key]; + } - if (!hasOwnProperty(obj, k)) { - obj[k] = v; - } else if (isArray(obj[k])) { - obj[k].push(v); - } else { - obj[k] = [obj[k], v]; + var triggerCancel = args.some(function (param) { + return param && param.triggerCancel; + }); + if (config.onCancel && triggerCancel) { + config.onCancel.apply(config, args); + } + for (var i = 0; i < _Modal.destroyFns.length; i++) { + var fn = _Modal.destroyFns[i]; + if (fn === close) { + _Modal.destroyFns.splice(i, 1); + break; + } } } - return obj; -}; - -var isArray = Array.isArray || function (xs) { - return Object.prototype.toString.call(xs) === '[object Array]'; -}; + function render(props) { + confirmDialogProps.props = props; + var V = _base2['default'].Vue || _vue2['default']; + return new V({ + el: el, + data: function data() { + return { confirmDialogProps: confirmDialogProps }; + }, + render: function render() { + var h = arguments[0]; + + // 先解构,避免报错,原因不详 + var cdProps = (0, _extends3['default'])({}, this.confirmDialogProps); + return h(_ConfirmDialog2['default'], cdProps); + } + }); + } + confirmDialogInstance = render(currentConfig); + _Modal.destroyFns.push(close); + return { + destroy: close, + update: update + }; +} /***/ }), -/***/ "./node_modules/querystring-es3/encode.js": -/*!************************************************!*\ - !*** ./node_modules/querystring-es3/encode.js ***! - \************************************************/ +/***/ "./node_modules/ant-design-vue/lib/modal/index.js": +/*!********************************************************!*\ + !*** ./node_modules/ant-design-vue/lib/modal/index.js ***! + \********************************************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { "use strict"; -// Copyright Joyent, Inc. and other Node contributors. -// -// Permission is hereby granted, free of charge, to any person obtaining a -// copy of this software and associated documentation files (the -// "Software"), to deal in the Software without restriction, including -// without limitation the rights to use, copy, modify, merge, publish, -// distribute, sublicense, and/or sell copies of the Software, and to permit -// persons to whom the Software is furnished to do so, subject to the -// following conditions: -// -// The above copyright notice and this permission notice shall be included -// in all copies or substantial portions of the Software. -// -// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS -// OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF -// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN -// NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, -// DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR -// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE -// USE OR OTHER DEALINGS IN THE SOFTWARE. - - - -var stringifyPrimitive = function(v) { - switch (typeof v) { - case 'string': - return v; - - case 'boolean': - return v ? 'true' : 'false'; - - case 'number': - return isFinite(v) ? v : ''; - - default: - return ''; - } -}; -module.exports = function(obj, sep, eq, name) { - sep = sep || '&'; - eq = eq || '='; - if (obj === null) { - obj = undefined; - } - if (typeof obj === 'object') { - return map(objectKeys(obj), function(k) { - var ks = encodeURIComponent(stringifyPrimitive(k)) + eq; - if (isArray(obj[k])) { - return map(obj[k], function(v) { - return ks + encodeURIComponent(stringifyPrimitive(v)); - }).join(sep); - } else { - return ks + encodeURIComponent(stringifyPrimitive(obj[k])); - } - }).join(sep); +Object.defineProperty(exports, "__esModule", { + value: true +}); - } +var _extends2 = __webpack_require__(/*! babel-runtime/helpers/extends */ "./node_modules/babel-runtime/helpers/extends.js"); + +var _extends3 = _interopRequireDefault(_extends2); + +var _Modal = __webpack_require__(/*! ./Modal */ "./node_modules/ant-design-vue/lib/modal/Modal.js"); + +var _Modal2 = _interopRequireDefault(_Modal); + +var _confirm = __webpack_require__(/*! ./confirm */ "./node_modules/ant-design-vue/lib/modal/confirm.js"); + +var _confirm2 = _interopRequireDefault(_confirm); + +var _icon = __webpack_require__(/*! ../icon */ "./node_modules/ant-design-vue/lib/icon/index.js"); + +var _icon2 = _interopRequireDefault(_icon); + +var _base = __webpack_require__(/*! ../base */ "./node_modules/ant-design-vue/lib/base/index.js"); + +var _base2 = _interopRequireDefault(_base); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } - if (!name) return ''; - return encodeURIComponent(stringifyPrimitive(name)) + eq + - encodeURIComponent(stringifyPrimitive(obj)); +// export { ActionButtonProps } from './ActionButton' +// export { ModalProps, ModalFuncProps } from './Modal' + +var info = function info(props) { + var config = (0, _extends3['default'])({ + type: 'info', + icon: function icon(h) { + return h(_icon2['default'], { + attrs: { type: 'info-circle' } + }); + }, + okCancel: false + }, props); + return (0, _confirm2['default'])(config); }; -var isArray = Array.isArray || function (xs) { - return Object.prototype.toString.call(xs) === '[object Array]'; +var success = function success(props) { + var config = (0, _extends3['default'])({ + type: 'success', + icon: function icon(h) { + return h(_icon2['default'], { + attrs: { type: 'check-circle' } + }); + }, + okCancel: false + }, props); + return (0, _confirm2['default'])(config); }; -function map (xs, f) { - if (xs.map) return xs.map(f); - var res = []; - for (var i = 0; i < xs.length; i++) { - res.push(f(xs[i], i)); - } - return res; -} +var error = function error(props) { + var config = (0, _extends3['default'])({ + type: 'error', + icon: function icon(h) { + return h(_icon2['default'], { + attrs: { type: 'close-circle' } + }); + }, + okCancel: false + }, props); + return (0, _confirm2['default'])(config); +}; -var objectKeys = Object.keys || function (obj) { - var res = []; - for (var key in obj) { - if (Object.prototype.hasOwnProperty.call(obj, key)) res.push(key); +var warning = function warning(props) { + var config = (0, _extends3['default'])({ + type: 'warning', + icon: function icon(h) { + return h(_icon2['default'], { + attrs: { type: 'exclamation-circle' } + }); + }, + okCancel: false + }, props); + return (0, _confirm2['default'])(config); +}; +var warn = warning; + +var confirm = function confirm(props) { + var config = (0, _extends3['default'])({ + type: 'confirm', + okCancel: true + }, props); + return (0, _confirm2['default'])(config); +}; +_Modal2['default'].info = info; +_Modal2['default'].success = success; +_Modal2['default'].error = error; +_Modal2['default'].warning = warning; +_Modal2['default'].warn = warn; +_Modal2['default'].confirm = confirm; + +_Modal2['default'].destroyAll = function () { + while (_Modal.destroyFns.length) { + var close = _Modal.destroyFns.pop(); + if (close) { + close(); + } } - return res; }; +/* istanbul ignore next */ +_Modal2['default'].install = function (Vue) { + Vue.use(_base2['default']); + Vue.component(_Modal2['default'].name, _Modal2['default']); +}; + +exports['default'] = _Modal2['default']; /***/ }), -/***/ "./node_modules/querystring-es3/index.js": -/*!***********************************************!*\ - !*** ./node_modules/querystring-es3/index.js ***! - \***********************************************/ +/***/ "./node_modules/ant-design-vue/lib/modal/locale.js": +/*!*********************************************************!*\ + !*** ./node_modules/ant-design-vue/lib/modal/locale.js ***! + \*********************************************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { "use strict"; -exports.decode = exports.parse = __webpack_require__(/*! ./decode */ "./node_modules/querystring-es3/decode.js"); -exports.encode = exports.stringify = __webpack_require__(/*! ./encode */ "./node_modules/querystring-es3/encode.js"); +Object.defineProperty(exports, "__esModule", { + value: true +}); + +var _extends2 = __webpack_require__(/*! babel-runtime/helpers/extends */ "./node_modules/babel-runtime/helpers/extends.js"); + +var _extends3 = _interopRequireDefault(_extends2); +exports.changeConfirmLocale = changeConfirmLocale; +exports.getConfirmLocale = getConfirmLocale; + +var _default = __webpack_require__(/*! ../locale-provider/default */ "./node_modules/ant-design-vue/lib/locale-provider/default.js"); + +var _default2 = _interopRequireDefault(_default); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } + +// export interface ModalLocale { +// okText: string; +// cancelText: string; +// justOkText: string; +// } + +var runtimeLocale = (0, _extends3['default'])({}, _default2['default'].Modal); + +function changeConfirmLocale(newLocale) { + if (newLocale) { + runtimeLocale = (0, _extends3['default'])({}, runtimeLocale, newLocale); + } else { + runtimeLocale = (0, _extends3['default'])({}, _default2['default'].Modal); + } +} + +function getConfirmLocale() { + return runtimeLocale; +} /***/ }), -/***/ "./node_modules/vue-loader/lib/runtime/componentNormalizer.js": -/*!********************************************************************!*\ - !*** ./node_modules/vue-loader/lib/runtime/componentNormalizer.js ***! - \********************************************************************/ -/*! exports provided: default */ -/***/ (function(module, __webpack_exports__, __webpack_require__) { +/***/ "./node_modules/ant-design-vue/lib/vc-dialog/Dialog.js": +/*!*************************************************************!*\ + !*** ./node_modules/ant-design-vue/lib/vc-dialog/Dialog.js ***! + \*************************************************************/ +/*! no static exports found */ +/***/ (function(module, exports, __webpack_require__) { "use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return normalizeComponent; }); -/* globals __VUE_SSR_CONTEXT__ */ - -// IMPORTANT: Do NOT use ES2015 features in this file (except for modules). -// This module is a runtime utility for cleaner component module output and will -// be included in the final webpack user bundle. - -function normalizeComponent ( - scriptExports, - render, - staticRenderFns, - functionalTemplate, - injectStyles, - scopeId, - moduleIdentifier, /* server only */ - shadowMode /* vue-cli only */ -) { - // Vue.extend constructor export interop - var options = typeof scriptExports === 'function' - ? scriptExports.options - : scriptExports - - // render functions - if (render) { - options.render = render - options.staticRenderFns = staticRenderFns - options._compiled = true - } - // functional template - if (functionalTemplate) { - options.functional = true - } - // scopedId - if (scopeId) { - options._scopeId = 'data-v-' + scopeId +Object.defineProperty(exports, "__esModule", { + value: true +}); + +var _babelHelperVueJsxMergeProps = __webpack_require__(/*! babel-helper-vue-jsx-merge-props */ "./node_modules/babel-helper-vue-jsx-merge-props/index.js"); + +var _babelHelperVueJsxMergeProps2 = _interopRequireDefault(_babelHelperVueJsxMergeProps); + +var _defineProperty2 = __webpack_require__(/*! babel-runtime/helpers/defineProperty */ "./node_modules/babel-runtime/helpers/defineProperty.js"); + +var _defineProperty3 = _interopRequireDefault(_defineProperty2); + +var _extends3 = __webpack_require__(/*! babel-runtime/helpers/extends */ "./node_modules/babel-runtime/helpers/extends.js"); + +var _extends4 = _interopRequireDefault(_extends3); + +var _propsUtil = __webpack_require__(/*! ../_util/props-util */ "./node_modules/ant-design-vue/lib/_util/props-util.js"); + +var _KeyCode = __webpack_require__(/*! ../_util/KeyCode */ "./node_modules/ant-design-vue/lib/_util/KeyCode.js"); + +var _KeyCode2 = _interopRequireDefault(_KeyCode); + +var _contains = __webpack_require__(/*! ../_util/Dom/contains */ "./node_modules/ant-design-vue/lib/_util/Dom/contains.js"); + +var _contains2 = _interopRequireDefault(_contains); + +var _LazyRenderBox = __webpack_require__(/*! ./LazyRenderBox */ "./node_modules/ant-design-vue/lib/vc-dialog/LazyRenderBox.js"); + +var _LazyRenderBox2 = _interopRequireDefault(_LazyRenderBox); + +var _BaseMixin = __webpack_require__(/*! ../_util/BaseMixin */ "./node_modules/ant-design-vue/lib/_util/BaseMixin.js"); + +var _BaseMixin2 = _interopRequireDefault(_BaseMixin); + +var _getTransitionProps = __webpack_require__(/*! ../_util/getTransitionProps */ "./node_modules/ant-design-vue/lib/_util/getTransitionProps.js"); + +var _getTransitionProps2 = _interopRequireDefault(_getTransitionProps); + +var _switchScrollingEffect = __webpack_require__(/*! ../_util/switchScrollingEffect */ "./node_modules/ant-design-vue/lib/_util/switchScrollingEffect.js"); + +var _switchScrollingEffect2 = _interopRequireDefault(_switchScrollingEffect); + +var _IDialogPropTypes = __webpack_require__(/*! ./IDialogPropTypes */ "./node_modules/ant-design-vue/lib/vc-dialog/IDialogPropTypes.js"); + +var _IDialogPropTypes2 = _interopRequireDefault(_IDialogPropTypes); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } + +var IDialogPropTypes = (0, _IDialogPropTypes2['default'])(); + +var uuid = 0; + +/* eslint react/no-is-mounted:0 */ +function noop() {} +function getScroll(w, top) { + var ret = w['page' + (top ? 'Y' : 'X') + 'Offset']; + var method = 'scroll' + (top ? 'Top' : 'Left'); + if (typeof ret !== 'number') { + var d = w.document; + ret = d.documentElement[method]; + if (typeof ret !== 'number') { + ret = d.body[method]; + } } + return ret; +} + +function setTransformOrigin(node, value) { + var style = node.style; + ['Webkit', 'Moz', 'Ms', 'ms'].forEach(function (prefix) { + style[prefix + 'TransformOrigin'] = value; + }); + style['transformOrigin'] = value; +} + +function offset(el) { + var rect = el.getBoundingClientRect(); + var pos = { + left: rect.left, + top: rect.top + }; + var doc = el.ownerDocument; + var w = doc.defaultView || doc.parentWindow; + pos.left += getScroll(w); + pos.top += getScroll(w, true); + return pos; +} + +exports['default'] = { + mixins: [_BaseMixin2['default']], + props: (0, _propsUtil.initDefaultProps)(IDialogPropTypes, { + mask: true, + visible: false, + keyboard: true, + closable: true, + maskClosable: true, + destroyOnClose: false, + prefixCls: 'rc-dialog', + getOpenCount: function getOpenCount() { + return null; + } + }), + data: function data() { + return { + destroyPopup: false + }; + }, + + + watch: { + visible: function visible(val) { + var _this = this; + + if (val) { + this.destroyPopup = false; + } + this.$nextTick(function () { + _this.updatedCallback(!val); + }); + } + }, + + // private inTransition: boolean; + // private titleId: string; + // private openTime: number; + // private lastOutSideFocusNode: HTMLElement | null; + // private wrap: HTMLElement; + // private dialog: any; + // private sentinel: HTMLElement; + // private bodyIsOverflowing: boolean; + // private scrollbarWidth: number; + + beforeMount: function beforeMount() { + this.inTransition = false; + this.titleId = 'rcDialogTitle' + uuid++; + }, + mounted: function mounted() { + var _this2 = this; + + this.$nextTick(function () { + _this2.updatedCallback(false); + // if forceRender is true, set element style display to be none; + if ((_this2.forceRender || _this2.getContainer === false && !_this2.visible) && _this2.$refs.wrap) { + _this2.$refs.wrap.style.display = 'none'; + } + }); + }, + beforeDestroy: function beforeDestroy() { + var visible = this.visible, + getOpenCount = this.getOpenCount; + + if ((visible || this.inTransition) && !getOpenCount()) { + this.removeScrollingEffect(); + } + clearTimeout(this.timeoutId); + }, + + methods: { + updatedCallback: function updatedCallback(visible) { + var mousePosition = this.mousePosition; + if (this.visible) { + // first show + if (!visible) { + this.openTime = Date.now(); + // this.lastOutSideFocusNode = document.activeElement + this.addScrollingEffect(); + // this.$refs.wrap.focus() + this.tryFocus(); + var dialogNode = this.$refs.dialog.$el; + if (mousePosition) { + var elOffset = offset(dialogNode); + setTransformOrigin(dialogNode, mousePosition.x - elOffset.left + 'px ' + (mousePosition.y - elOffset.top) + 'px'); + } else { + setTransformOrigin(dialogNode, ''); + } + } + } else if (visible) { + this.inTransition = true; + if (this.mask && this.lastOutSideFocusNode) { + try { + this.lastOutSideFocusNode.focus(); + } catch (e) { + this.lastOutSideFocusNode = null; + } + this.lastOutSideFocusNode = null; + } + } + }, + tryFocus: function tryFocus() { + if (!(0, _contains2['default'])(this.$refs.wrap, document.activeElement)) { + this.lastOutSideFocusNode = document.activeElement; + this.$refs.sentinelStart.focus(); + } + }, + onAnimateLeave: function onAnimateLeave() { + var afterClose = this.afterClose, + destroyOnClose = this.destroyOnClose; + // need demo? + // https://github.com/react-component/dialog/pull/28 + + if (this.$refs.wrap) { + this.$refs.wrap.style.display = 'none'; + } + if (destroyOnClose) { + this.destroyPopup = true; + } + this.inTransition = false; + this.removeScrollingEffect(); + if (afterClose) { + afterClose(); + } + }, + onDialogMouseDown: function onDialogMouseDown() { + this.dialogMouseDown = true; + }, + onMaskMouseUp: function onMaskMouseUp() { + var _this3 = this; + + if (this.dialogMouseDown) { + this.timeoutId = setTimeout(function () { + _this3.dialogMouseDown = false; + }, 0); + } + }, + onMaskClick: function onMaskClick(e) { + // android trigger click on open (fastclick??) + if (Date.now() - this.openTime < 300) { + return; + } + if (e.target === e.currentTarget && !this.dialogMouseDown) { + this.close(e); + } + }, + onKeydown: function onKeydown(e) { + var props = this.$props; + if (props.keyboard && e.keyCode === _KeyCode2['default'].ESC) { + e.stopPropagation(); + this.close(e); + return; + } + // keep focus inside dialog + if (props.visible) { + if (e.keyCode === _KeyCode2['default'].TAB) { + var activeElement = document.activeElement; + var sentinelStart = this.$refs.sentinelStart; + if (e.shiftKey) { + if (activeElement === sentinelStart) { + this.$refs.sentinelEnd.focus(); + } + } else if (activeElement === this.$refs.sentinelEnd) { + sentinelStart.focus(); + } + } + } + }, + getDialogElement: function getDialogElement() { + var h = this.$createElement; + var closable = this.closable, + prefixCls = this.prefixCls, + width = this.width, + height = this.height, + title = this.title, + tempFooter = this.footer, + bodyStyle = this.bodyStyle, + visible = this.visible, + bodyProps = this.bodyProps; + + var dest = {}; + if (width !== undefined) { + dest.width = typeof width === 'number' ? width + 'px' : width; + } + if (height !== undefined) { + dest.height = typeof height === 'number' ? height + 'px' : height; + } - var hook - if (moduleIdentifier) { // server build - hook = function (context) { - // 2.3 injection - context = - context || // cached call - (this.$vnode && this.$vnode.ssrContext) || // stateful - (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional - // 2.2 with runInNewContext: true - if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') { - context = __VUE_SSR_CONTEXT__ + var footer = void 0; + if (tempFooter) { + footer = h( + 'div', + { key: 'footer', 'class': prefixCls + '-footer', ref: 'footer' }, + [tempFooter] + ); } - // inject component styles - if (injectStyles) { - injectStyles.call(this, context) + + var header = void 0; + if (title) { + header = h( + 'div', + { key: 'header', 'class': prefixCls + '-header', ref: 'header' }, + [h( + 'div', + { 'class': prefixCls + '-title', attrs: { id: this.titleId } + }, + [title] + )] + ); + } + + var closer = void 0; + if (closable) { + var closeIcon = (0, _propsUtil.getComponentFromProp)(this, 'closeIcon'); + closer = h( + 'button', + { + attrs: { + type: 'button', + + 'aria-label': 'Close' + }, + key: 'close', + on: { + 'click': this.close || noop + }, + 'class': prefixCls + '-close' + }, + [closeIcon || h('span', { 'class': prefixCls + '-close-x' })] + ); } - // register component module identifier for async chunk inferrence - if (context && context._registeredComponents) { - context._registeredComponents.add(moduleIdentifier) + + var style = (0, _extends4['default'])({}, this.dialogStyle, dest); + var sentinelStyle = { width: 0, height: 0, overflow: 'hidden' }; + var cls = (0, _extends4['default'])((0, _defineProperty3['default'])({}, prefixCls, true), this.dialogClass); + var transitionName = this.getTransitionName(); + var dialogElement = h( + _LazyRenderBox2['default'], + { + directives: [{ + name: 'show', + value: visible + }], + + key: 'dialog-element', + attrs: { role: 'document' + }, + ref: 'dialog', + style: style, + 'class': cls, + on: { + 'mousedown': this.onDialogMouseDown + } + }, + [h('div', { + attrs: { tabIndex: 0, 'aria-hidden': 'true' }, + ref: 'sentinelStart', style: sentinelStyle }), h( + 'div', + { 'class': prefixCls + '-content' }, + [closer, header, h( + 'div', + (0, _babelHelperVueJsxMergeProps2['default'])([{ key: 'body', 'class': prefixCls + '-body', style: bodyStyle, ref: 'body' }, bodyProps]), + [this.$slots['default']] + ), footer] + ), h('div', { + attrs: { tabIndex: 0, 'aria-hidden': 'true' }, + ref: 'sentinelEnd', style: sentinelStyle })] + ); + var dialogTransitionProps = (0, _getTransitionProps2['default'])(transitionName, { + afterLeave: this.onAnimateLeave + }); + return h( + 'transition', + (0, _babelHelperVueJsxMergeProps2['default'])([{ key: 'dialog' }, dialogTransitionProps]), + [visible || !this.destroyPopup ? dialogElement : null] + ); + }, + getZIndexStyle: function getZIndexStyle() { + var style = {}; + var props = this.$props; + if (props.zIndex !== undefined) { + style.zIndex = props.zIndex; + } + return style; + }, + getWrapStyle: function getWrapStyle() { + return (0, _extends4['default'])({}, this.getZIndexStyle(), this.wrapStyle); + }, + getMaskStyle: function getMaskStyle() { + return (0, _extends4['default'])({}, this.getZIndexStyle(), this.maskStyle); + }, + getMaskElement: function getMaskElement() { + var h = this.$createElement; + + var props = this.$props; + var maskElement = void 0; + if (props.mask) { + var maskTransition = this.getMaskTransitionName(); + maskElement = h(_LazyRenderBox2['default'], (0, _babelHelperVueJsxMergeProps2['default'])([{ + directives: [{ + name: 'show', + value: props.visible + }], + + style: this.getMaskStyle(), + key: 'mask', + 'class': props.prefixCls + '-mask' + }, props.maskProps])); + if (maskTransition) { + var maskTransitionProps = (0, _getTransitionProps2['default'])(maskTransition); + maskElement = h( + 'transition', + (0, _babelHelperVueJsxMergeProps2['default'])([{ key: 'mask' }, maskTransitionProps]), + [maskElement] + ); + } } + return maskElement; + }, + getMaskTransitionName: function getMaskTransitionName() { + var props = this.$props; + var transitionName = props.maskTransitionName; + var animation = props.maskAnimation; + if (!transitionName && animation) { + transitionName = props.prefixCls + '-' + animation; + } + return transitionName; + }, + getTransitionName: function getTransitionName() { + var props = this.$props; + var transitionName = props.transitionName; + var animation = props.animation; + if (!transitionName && animation) { + transitionName = props.prefixCls + '-' + animation; + } + return transitionName; + }, + + // setScrollbar() { + // if (this.bodyIsOverflowing && this.scrollbarWidth !== undefined) { + // document.body.style.paddingRight = `${this.scrollbarWidth}px`; + // } + // }, + addScrollingEffect: function addScrollingEffect() { + var getOpenCount = this.getOpenCount; + + var openCount = getOpenCount(); + if (openCount !== 1) { + return; + } + (0, _switchScrollingEffect2['default'])(); + document.body.style.overflow = 'hidden'; + }, + removeScrollingEffect: function removeScrollingEffect() { + var getOpenCount = this.getOpenCount; + + var openCount = getOpenCount(); + if (openCount !== 0) { + return; + } + document.body.style.overflow = ''; + (0, _switchScrollingEffect2['default'])(true); + // this.resetAdjustments(); + }, + close: function close(e) { + this.__emit('close', e); + } + }, + render: function render() { + var h = arguments[0]; + var prefixCls = this.prefixCls, + maskClosable = this.maskClosable, + visible = this.visible, + wrapClassName = this.wrapClassName, + title = this.title, + wrapProps = this.wrapProps; + + var style = this.getWrapStyle(); + // clear hide display + // and only set display after async anim, not here for hide + if (visible) { + style.display = null; } - // used by ssr in case component is cached and beforeCreate - // never gets called - options._ssrRegister = hook - } else if (injectStyles) { - hook = shadowMode - ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) } - : injectStyles + return h('div', [this.getMaskElement(), h( + 'div', + (0, _babelHelperVueJsxMergeProps2['default'])([{ + attrs: { + tabIndex: -1, + + role: 'dialog', + 'aria-labelledby': title ? this.titleId : null + }, + on: { + 'keydown': this.onKeydown, + 'click': maskClosable ? this.onMaskClick : noop, + 'mouseup': maskClosable ? this.onMaskMouseUp : noop + }, + + 'class': prefixCls + '-wrap ' + (wrapClassName || ''), + ref: 'wrap', + style: style + }, wrapProps]), + [this.getDialogElement()] + )]); } +}; - if (hook) { - if (options.functional) { - // for template-only hot-reload because in that case the render fn doesn't - // go through the normalizer - options._injectStyles = hook - // register for functioal component in vue file - var originalRender = options.render - options.render = function renderWithStyleInjection (h, context) { - hook.call(context) - return originalRender(h, context) - } +/***/ }), + +/***/ "./node_modules/ant-design-vue/lib/vc-dialog/DialogWrap.js": +/*!*****************************************************************!*\ + !*** ./node_modules/ant-design-vue/lib/vc-dialog/DialogWrap.js ***! + \*****************************************************************/ +/*! no static exports found */ +/***/ (function(module, exports, __webpack_require__) { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", { + value: true +}); + +var _objectWithoutProperties2 = __webpack_require__(/*! babel-runtime/helpers/objectWithoutProperties */ "./node_modules/babel-runtime/helpers/objectWithoutProperties.js"); + +var _objectWithoutProperties3 = _interopRequireDefault(_objectWithoutProperties2); + +var _extends2 = __webpack_require__(/*! babel-runtime/helpers/extends */ "./node_modules/babel-runtime/helpers/extends.js"); + +var _extends3 = _interopRequireDefault(_extends2); + +var _Dialog = __webpack_require__(/*! ./Dialog */ "./node_modules/ant-design-vue/lib/vc-dialog/Dialog.js"); + +var _Dialog2 = _interopRequireDefault(_Dialog); + +var _ContainerRender = __webpack_require__(/*! ../_util/ContainerRender */ "./node_modules/ant-design-vue/lib/_util/ContainerRender.js"); + +var _ContainerRender2 = _interopRequireDefault(_ContainerRender); + +var _IDialogPropTypes = __webpack_require__(/*! ./IDialogPropTypes */ "./node_modules/ant-design-vue/lib/vc-dialog/IDialogPropTypes.js"); + +var _IDialogPropTypes2 = _interopRequireDefault(_IDialogPropTypes); + +var _propsUtil = __webpack_require__(/*! ../_util/props-util */ "./node_modules/ant-design-vue/lib/_util/props-util.js"); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } + +var IDialogPropTypes = (0, _IDialogPropTypes2['default'])(); +var DialogWrap = { + props: (0, _extends3['default'])({}, IDialogPropTypes, { + visible: IDialogPropTypes.visible.def(false) + }), + data: function data() { + this.renderComponent = function () {}; + this.removeContainer = function () {}; + return {}; + }, + beforeDestroy: function beforeDestroy() { + if (this.visible) { + this.renderComponent({ + afterClose: this.removeContainer, + visible: false, + on: { + close: function close() {} + } + }); } else { - // inject component registration as beforeCreate hook - var existing = options.beforeCreate - options.beforeCreate = existing - ? [].concat(existing, hook) - : [hook] + this.removeContainer(); + } + }, + + methods: { + getComponent: function getComponent() { + var extra = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {}; + var h = this.$createElement; + var $attrs = this.$attrs, + $listeners = this.$listeners, + $props = this.$props, + $slots = this.$slots; + var on = extra.on, + otherProps = (0, _objectWithoutProperties3['default'])(extra, ['on']); + + var dialogProps = { + props: (0, _extends3['default'])({}, $props, { + dialogClass: (0, _propsUtil.getClass)(this), + dialogStyle: (0, _propsUtil.getStyle)(this) + }, otherProps), + attrs: $attrs, + ref: '_component', + key: 'dialog', + on: (0, _extends3['default'])({}, $listeners, on) + }; + return h( + _Dialog2['default'], + dialogProps, + [$slots['default']] + ); + }, + getContainer2: function getContainer2() { + var container = document.createElement('div'); + if (this.getContainer) { + this.getContainer().appendChild(container); + } else { + document.body.appendChild(container); + } + return container; } + }, + + render: function render() { + var _this = this; + + var h = arguments[0]; + var visible = this.visible; + + return h(_ContainerRender2['default'], { + attrs: { + parent: this, + visible: visible, + autoDestroy: false, + getComponent: this.getComponent, + getContainer: this.getContainer2, + children: function children(_ref) { + var renderComponent = _ref.renderComponent, + removeContainer = _ref.removeContainer; + + _this.renderComponent = renderComponent; + _this.removeContainer = removeContainer; + return null; + } + } + }); } +}; + +exports['default'] = DialogWrap; + +/***/ }), + +/***/ "./node_modules/ant-design-vue/lib/vc-dialog/IDialogPropTypes.js": +/*!***********************************************************************!*\ + !*** ./node_modules/ant-design-vue/lib/vc-dialog/IDialogPropTypes.js ***! + \***********************************************************************/ +/*! no static exports found */ +/***/ (function(module, exports, __webpack_require__) { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", { + value: true +}); + +var _vueTypes = __webpack_require__(/*! ../_util/vue-types */ "./node_modules/ant-design-vue/lib/_util/vue-types/index.js"); + +var _vueTypes2 = _interopRequireDefault(_vueTypes); +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } + +function IDialogPropTypes() { return { - exports: scriptExports, - options: options - } + keyboard: _vueTypes2['default'].bool, + mask: _vueTypes2['default'].bool, + afterClose: _vueTypes2['default'].func, + // onClose: PropTypes. (e: SyntheticEvent) =>any, + closable: _vueTypes2['default'].bool, + maskClosable: _vueTypes2['default'].bool, + visible: _vueTypes2['default'].bool, + destroyOnClose: _vueTypes2['default'].bool, + mousePosition: _vueTypes2['default'].shape({ + x: _vueTypes2['default'].number, + y: _vueTypes2['default'].number + }).loose, + title: _vueTypes2['default'].any, + footer: _vueTypes2['default'].any, + transitionName: _vueTypes2['default'].string, + maskTransitionName: _vueTypes2['default'].string, + animation: _vueTypes2['default'].any, + maskAnimation: _vueTypes2['default'].any, + wrapStyle: _vueTypes2['default'].object, + bodyStyle: _vueTypes2['default'].object, + maskStyle: _vueTypes2['default'].object, + prefixCls: _vueTypes2['default'].string, + wrapClassName: _vueTypes2['default'].string, + width: _vueTypes2['default'].oneOfType([_vueTypes2['default'].string, _vueTypes2['default'].number]), + height: _vueTypes2['default'].oneOfType([_vueTypes2['default'].string, _vueTypes2['default'].number]), + zIndex: _vueTypes2['default'].number, + bodyProps: _vueTypes2['default'].any, + maskProps: _vueTypes2['default'].any, + wrapProps: _vueTypes2['default'].any, + getContainer: _vueTypes2['default'].any, + dialogStyle: _vueTypes2['default'].object.def({}), + dialogClass: _vueTypes2['default'].object.def({}), + closeIcon: _vueTypes2['default'].any, + forceRender: _vueTypes2['default'].bool, + getOpenCount: _vueTypes2['default'].func + }; } +exports['default'] = IDialogPropTypes; /***/ }), -/***/ "./resources/components/CategoryPage.vue": -/*!***********************************************!*\ - !*** ./resources/components/CategoryPage.vue ***! - \***********************************************/ -/*! exports provided: default */ -/***/ (function(module, __webpack_exports__, __webpack_require__) { +/***/ "./node_modules/ant-design-vue/lib/vc-dialog/LazyRenderBox.js": +/*!********************************************************************!*\ + !*** ./node_modules/ant-design-vue/lib/vc-dialog/LazyRenderBox.js ***! + \********************************************************************/ +/*! no static exports found */ +/***/ (function(module, exports, __webpack_require__) { "use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony import */ var _CategoryPage_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./CategoryPage.vue?vue&type=script&lang=js& */ "./resources/components/CategoryPage.vue?vue&type=script&lang=js&"); -/* empty/unused harmony star reexport *//* harmony import */ var _node_modules_vue_loader_lib_runtime_componentNormalizer_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../node_modules/vue-loader/lib/runtime/componentNormalizer.js */ "./node_modules/vue-loader/lib/runtime/componentNormalizer.js"); -var render, staticRenderFns +Object.defineProperty(exports, "__esModule", { + value: true +}); + +var _vueTypes = __webpack_require__(/*! ../_util/vue-types */ "./node_modules/ant-design-vue/lib/_util/vue-types/index.js"); + +var _vueTypes2 = _interopRequireDefault(_vueTypes); +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } -/* normalize component */ +var ILazyRenderBoxPropTypes = { + visible: _vueTypes2['default'].bool, + hiddenClassName: _vueTypes2['default'].string +}; -var component = Object(_node_modules_vue_loader_lib_runtime_componentNormalizer_js__WEBPACK_IMPORTED_MODULE_1__["default"])( - _CategoryPage_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0__["default"], - render, - staticRenderFns, - false, - null, - null, - null - -) +exports['default'] = { + props: ILazyRenderBoxPropTypes, + render: function render() { + var h = arguments[0]; -/* hot reload */ -if (false) { var api; } -component.options.__file = "resources/components/CategoryPage.vue" -/* harmony default export */ __webpack_exports__["default"] = (component.exports); + return h( + 'div', + { on: this.$listeners }, + [this.$slots['default']] + ); + } +}; /***/ }), -/***/ "./resources/components/CategoryPage.vue?vue&type=script&lang=js&": -/*!************************************************************************!*\ - !*** ./resources/components/CategoryPage.vue?vue&type=script&lang=js& ***! - \************************************************************************/ -/*! exports provided: default */ -/***/ (function(module, __webpack_exports__, __webpack_require__) { +/***/ "./node_modules/ant-design-vue/lib/vc-dialog/index.js": +/*!************************************************************!*\ + !*** ./node_modules/ant-design-vue/lib/vc-dialog/index.js ***! + \************************************************************/ +/*! no static exports found */ +/***/ (function(module, exports, __webpack_require__) { "use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony import */ var _node_modules_babel_loader_lib_index_js_ref_4_0_node_modules_vue_loader_lib_index_js_vue_loader_options_CategoryPage_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! -!../../node_modules/babel-loader/lib??ref--4-0!../../node_modules/vue-loader/lib??vue-loader-options!./CategoryPage.vue?vue&type=script&lang=js& */ "./node_modules/babel-loader/lib/index.js?!./node_modules/vue-loader/lib/index.js?!./resources/components/CategoryPage.vue?vue&type=script&lang=js&"); -/* empty/unused harmony star reexport */ /* harmony default export */ __webpack_exports__["default"] = (_node_modules_babel_loader_lib_index_js_ref_4_0_node_modules_vue_loader_lib_index_js_vue_loader_options_CategoryPage_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0__["default"]); + + +Object.defineProperty(exports, "__esModule", { + value: true +}); + +var _DialogWrap = __webpack_require__(/*! ./DialogWrap */ "./node_modules/ant-design-vue/lib/vc-dialog/DialogWrap.js"); + +var _DialogWrap2 = _interopRequireDefault(_DialogWrap); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } + +exports['default'] = _DialogWrap2['default']; // based on vc-dialog 7.5.5 /***/ }) diff --git a/public/js/chunk/8.js b/public/js/chunk/8.js index 8fd34c147..675cc3b3c 100644 --- a/public/js/chunk/8.js +++ b/public/js/chunk/8.js @@ -1,741 +1,2800 @@ (window["webpackJsonp"] = window["webpackJsonp"] || []).push([[8],{ -/***/ "./node_modules/css-loader/lib/css-base.js": -/*!*************************************************!*\ - !*** ./node_modules/css-loader/lib/css-base.js ***! - \*************************************************/ +/***/ "./node_modules/ant-design-vue/lib/carousel/index.js": +/*!***********************************************************!*\ + !*** ./node_modules/ant-design-vue/lib/carousel/index.js ***! + \***********************************************************/ /*! no static exports found */ -/***/ (function(module, exports) { +/***/ (function(module, exports, __webpack_require__) { -/* - MIT License http://www.opensource.org/licenses/mit-license.php - Author Tobias Koppers @sokra -*/ -// css base code, injected by the css-loader -module.exports = function(useSourceMap) { - var list = []; - - // return the list of modules as css string - list.toString = function toString() { - return this.map(function (item) { - var content = cssWithMappingToString(item, useSourceMap); - if(item[2]) { - return "@media " + item[2] + "{" + content + "}"; - } else { - return content; - } - }).join(""); - }; - - // import a list of modules into the list - list.i = function(modules, mediaQuery) { - if(typeof modules === "string") - modules = [[null, modules, ""]]; - var alreadyImportedModules = {}; - for(var i = 0; i < this.length; i++) { - var id = this[i][0]; - if(typeof id === "number") - alreadyImportedModules[id] = true; - } - for(i = 0; i < modules.length; i++) { - var item = modules[i]; - // skip already imported module - // this implementation is not 100% perfect for weird media query combinations - // when a module is imported multiple times with different media queries. - // I hope this will never occur (Hey this way we have smaller bundles) - if(typeof item[0] !== "number" || !alreadyImportedModules[item[0]]) { - if(mediaQuery && !item[2]) { - item[2] = mediaQuery; - } else if(mediaQuery) { - item[2] = "(" + item[2] + ") and (" + mediaQuery + ")"; - } - list.push(item); - } - } - }; - return list; -}; - -function cssWithMappingToString(item, useSourceMap) { - var content = item[1] || ''; - var cssMapping = item[3]; - if (!cssMapping) { - return content; - } - - if (useSourceMap && typeof btoa === 'function') { - var sourceMapping = toComment(cssMapping); - var sourceURLs = cssMapping.sources.map(function (source) { - return '/*# sourceURL=' + cssMapping.sourceRoot + source + ' */' - }); - - return [content].concat(sourceURLs).concat([sourceMapping]).join('\n'); - } - - return [content].join('\n'); -} +"use strict"; + + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.CarouselProps = exports.CarouselEffect = undefined; + +var _babelHelperVueJsxMergeProps = __webpack_require__(/*! babel-helper-vue-jsx-merge-props */ "./node_modules/babel-helper-vue-jsx-merge-props/index.js"); + +var _babelHelperVueJsxMergeProps2 = _interopRequireDefault(_babelHelperVueJsxMergeProps); + +var _extends2 = __webpack_require__(/*! babel-runtime/helpers/extends */ "./node_modules/babel-runtime/helpers/extends.js"); + +var _extends3 = _interopRequireDefault(_extends2); + +var _vueTypes = __webpack_require__(/*! ../_util/vue-types */ "./node_modules/ant-design-vue/lib/_util/vue-types/index.js"); + +var _vueTypes2 = _interopRequireDefault(_vueTypes); + +var _debounce = __webpack_require__(/*! lodash/debounce */ "./node_modules/lodash/debounce.js"); + +var _debounce2 = _interopRequireDefault(_debounce); -// Adapted from convert-source-map (MIT) -function toComment(sourceMap) { - // eslint-disable-next-line no-undef - var base64 = btoa(unescape(encodeURIComponent(JSON.stringify(sourceMap)))); - var data = 'sourceMappingURL=data:application/json;charset=utf-8;base64,' + base64; +var _propsUtil = __webpack_require__(/*! ../_util/props-util */ "./node_modules/ant-design-vue/lib/_util/props-util.js"); - return '/*# ' + data + ' */'; +var _configProvider = __webpack_require__(/*! ../config-provider */ "./node_modules/ant-design-vue/lib/config-provider/index.js"); + +var _base = __webpack_require__(/*! ../base */ "./node_modules/ant-design-vue/lib/base/index.js"); + +var _base2 = _interopRequireDefault(_base); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } + +// matchMedia polyfill for +// https://github.com/WickyNilliams/enquire.js/issues/82 +if (typeof window !== 'undefined') { + var matchMediaPolyfill = function matchMediaPolyfill(mediaQuery) { + return { + media: mediaQuery, + matches: false, + addListener: function addListener() {}, + removeListener: function removeListener() {} + }; + }; + window.matchMedia = window.matchMedia || matchMediaPolyfill; } +// Use require over import (will be lifted up) +// make sure matchMedia polyfill run before require('vc-slick') +// Fix https://github.com/ant-design/ant-design/issues/6560 +// Fix https://github.com/ant-design/ant-design/issues/3308 +var SlickCarousel = __webpack_require__(/*! ../vc-slick/src */ "./node_modules/ant-design-vue/lib/vc-slick/src/index.js")['default']; + +var CarouselEffect = exports.CarouselEffect = _vueTypes2['default'].oneOf(['scrollx', 'fade']); +// Carousel +var CarouselProps = exports.CarouselProps = { + effect: CarouselEffect, + dots: _vueTypes2['default'].bool, + vertical: _vueTypes2['default'].bool, + autoplay: _vueTypes2['default'].bool, + easing: _vueTypes2['default'].string, + beforeChange: _vueTypes2['default'].func, + afterChange: _vueTypes2['default'].func, + // style: PropTypes.React.CSSProperties, + prefixCls: _vueTypes2['default'].string, + accessibility: _vueTypes2['default'].bool, + nextArrow: _vueTypes2['default'].any, + prevArrow: _vueTypes2['default'].any, + pauseOnHover: _vueTypes2['default'].bool, + // className: PropTypes.string, + adaptiveHeight: _vueTypes2['default'].bool, + arrows: _vueTypes2['default'].bool, + autoplaySpeed: _vueTypes2['default'].number, + centerMode: _vueTypes2['default'].bool, + centerPadding: _vueTypes2['default'].string, + cssEase: _vueTypes2['default'].string, + dotsClass: _vueTypes2['default'].string, + draggable: _vueTypes2['default'].bool, + fade: _vueTypes2['default'].bool, + focusOnSelect: _vueTypes2['default'].bool, + infinite: _vueTypes2['default'].bool, + initialSlide: _vueTypes2['default'].number, + lazyLoad: _vueTypes2['default'].bool, + rtl: _vueTypes2['default'].bool, + slide: _vueTypes2['default'].string, + slidesToShow: _vueTypes2['default'].number, + slidesToScroll: _vueTypes2['default'].number, + speed: _vueTypes2['default'].number, + swipe: _vueTypes2['default'].bool, + swipeToSlide: _vueTypes2['default'].bool, + touchMove: _vueTypes2['default'].bool, + touchThreshold: _vueTypes2['default'].number, + variableWidth: _vueTypes2['default'].bool, + useCSS: _vueTypes2['default'].bool, + slickGoTo: _vueTypes2['default'].number, + responsive: _vueTypes2['default'].array +}; + +var Carousel = { + name: 'ACarousel', + props: (0, _propsUtil.initDefaultProps)(CarouselProps, { + dots: true, + arrows: false, + draggable: false + }), + inject: { + configProvider: { 'default': function _default() { + return _configProvider.ConfigConsumerProps; + } } + }, + + beforeMount: function beforeMount() { + this.onWindowResized = (0, _debounce2['default'])(this.onWindowResized, 500, { + leading: false + }); + }, + mounted: function mounted() { + var autoplay = this.autoplay; + + if (autoplay) { + window.addEventListener('resize', this.onWindowResized); + } + // https://github.com/ant-design/ant-design/issues/7191 + this.innerSlider = this.$refs.slick && this.$refs.slick.innerSlider; + }, + beforeDestroy: function beforeDestroy() { + var autoplay = this.autoplay; + + if (autoplay) { + window.removeEventListener('resize', this.onWindowResized); + this.onWindowResized.cancel(); + } + }, + + methods: { + onWindowResized: function onWindowResized() { + // Fix https://github.com/ant-design/ant-design/issues/2550 + var autoplay = this.autoplay; + + if (autoplay && this.$refs.slick && this.$refs.slick.innerSlider && this.$refs.slick.innerSlider.autoPlay) { + this.$refs.slick.innerSlider.autoPlay(); + } + }, + next: function next() { + this.$refs.slick.slickNext(); + }, + prev: function prev() { + this.$refs.slick.slickPrev(); + }, + goTo: function goTo(slide) { + var dontAnimate = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false; + + this.$refs.slick.slickGoTo(slide, dontAnimate); + } + }, + + render: function render() { + var h = arguments[0]; + + var props = (0, _extends3['default'])({}, this.$props); + var $slots = this.$slots, + $listeners = this.$listeners; + + if (props.effect === 'fade') { + props.fade = true; + } + + var getPrefixCls = this.configProvider.getPrefixCls; + var className = getPrefixCls('carousel', props.prefixCls); + + if (props.vertical) { + className = className + ' ' + className + '-vertical'; + } + var SlickCarouselProps = { + props: (0, _extends3['default'])({}, props, { + nextArrow: (0, _propsUtil.getComponentFromProp)(this, 'nextArrow'), + prevArrow: (0, _propsUtil.getComponentFromProp)(this, 'prevArrow') + }), + on: $listeners, + scopedSlots: this.$scopedSlots + }; + + return h( + 'div', + { 'class': className }, + [h( + SlickCarousel, + (0, _babelHelperVueJsxMergeProps2['default'])([{ ref: 'slick' }, SlickCarouselProps]), + [(0, _propsUtil.filterEmpty)($slots['default'])] + )] + ); + } +}; + +/* istanbul ignore next */ +Carousel.install = function (Vue) { + Vue.use(_base2['default']); + Vue.component(Carousel.name, Carousel); +}; + +exports['default'] = Carousel; /***/ }), -/***/ "./node_modules/lodash/isNil.js": -/*!**************************************!*\ - !*** ./node_modules/lodash/isNil.js ***! - \**************************************/ +/***/ "./node_modules/ant-design-vue/lib/vc-slick/src/arrows.js": +/*!****************************************************************!*\ + !*** ./node_modules/ant-design-vue/lib/vc-slick/src/arrows.js ***! + \****************************************************************/ /*! no static exports found */ -/***/ (function(module, exports) { +/***/ (function(module, exports, __webpack_require__) { -/** - * Checks if `value` is `null` or `undefined`. - * - * @static - * @memberOf _ - * @since 4.0.0 - * @category Lang - * @param {*} value The value to check. - * @returns {boolean} Returns `true` if `value` is nullish, else `false`. - * @example - * - * _.isNil(null); - * // => true - * - * _.isNil(void 0); - * // => true - * - * _.isNil(NaN); - * // => false - */ -function isNil(value) { - return value == null; -} +"use strict"; + + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.NextArrow = exports.PrevArrow = undefined; + +var _babelHelperVueJsxMergeProps = __webpack_require__(/*! babel-helper-vue-jsx-merge-props */ "./node_modules/babel-helper-vue-jsx-merge-props/index.js"); + +var _babelHelperVueJsxMergeProps2 = _interopRequireDefault(_babelHelperVueJsxMergeProps); + +var _extends2 = __webpack_require__(/*! babel-runtime/helpers/extends */ "./node_modules/babel-runtime/helpers/extends.js"); -module.exports = isNil; +var _extends3 = _interopRequireDefault(_extends2); +var _vnode = __webpack_require__(/*! ../../_util/vnode */ "./node_modules/ant-design-vue/lib/_util/vnode.js"); + +var _innerSliderUtils = __webpack_require__(/*! ./utils/innerSliderUtils */ "./node_modules/ant-design-vue/lib/vc-slick/src/utils/innerSliderUtils.js"); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } + +function noop() {} + +var PrevArrow = exports.PrevArrow = { + functional: true, + clickHandler: function clickHandler(options, handle, e) { + if (e) { + e.preventDefault(); + } + handle(options, e); + }, + render: function render(createElement, context) { + var h = arguments[0]; + var props = context.props; + var clickHandler = props.clickHandler, + infinite = props.infinite, + currentSlide = props.currentSlide, + slideCount = props.slideCount, + slidesToShow = props.slidesToShow; + + var prevClasses = { 'slick-arrow': true, 'slick-prev': true }; + var prevHandler = function prevHandler(e) { + if (e) { + e.preventDefault(); + } + clickHandler({ message: 'previous' }); + }; + + if (!infinite && (currentSlide === 0 || slideCount <= slidesToShow)) { + prevClasses['slick-disabled'] = true; + prevHandler = noop; + } + + var prevArrowProps = { + key: '0', + domProps: { + 'data-role': 'none' + }, + 'class': prevClasses, + style: { display: 'block' }, + on: { + click: prevHandler + } + }; + var customProps = { + currentSlide: currentSlide, + slideCount: slideCount + }; + var prevArrow = void 0; + + if (props.prevArrow) { + prevArrow = (0, _vnode.cloneElement)(props.prevArrow((0, _extends3['default'])({}, prevArrowProps, { + props: customProps + })), { + key: '0', + 'class': prevClasses, + style: { display: 'block' }, + on: { + click: prevHandler + } + }); + } else { + prevArrow = h( + 'button', + (0, _babelHelperVueJsxMergeProps2['default'])([{ key: '0', attrs: { type: 'button' } + }, prevArrowProps]), + [' ', 'Previous'] + ); + } + + return prevArrow; + } +}; + +var NextArrow = exports.NextArrow = { + functional: true, + clickHandler: function clickHandler(options, handle, e) { + if (e) { + e.preventDefault(); + } + handle(options, e); + }, + render: function render(createElement, context) { + var h = arguments[0]; + var props = context.props; + var clickHandler = props.clickHandler, + currentSlide = props.currentSlide, + slideCount = props.slideCount; + + + var nextClasses = { 'slick-arrow': true, 'slick-next': true }; + var nextHandler = function nextHandler(e) { + if (e) { + e.preventDefault(); + } + clickHandler({ message: 'next' }); + }; + if (!(0, _innerSliderUtils.canGoNext)(props)) { + nextClasses['slick-disabled'] = true; + nextHandler = noop; + } + + var nextArrowProps = { + key: '1', + domProps: { + 'data-role': 'none' + }, + 'class': nextClasses, + style: { display: 'block' }, + on: { + click: nextHandler + } + }; + var customProps = { + currentSlide: currentSlide, + slideCount: slideCount + }; + var nextArrow = void 0; + + if (props.nextArrow) { + nextArrow = (0, _vnode.cloneElement)(props.nextArrow((0, _extends3['default'])({}, nextArrowProps, { + props: customProps + })), { + key: '1', + 'class': nextClasses, + style: { display: 'block' }, + on: { + click: nextHandler + } + }); + } else { + nextArrow = h( + 'button', + (0, _babelHelperVueJsxMergeProps2['default'])([{ key: '1', attrs: { type: 'button' } + }, nextArrowProps]), + [' ', 'Next'] + ); + } + + return nextArrow; + } +}; /***/ }), -/***/ "./node_modules/style-loader/lib/addStyles.js": -/*!****************************************************!*\ - !*** ./node_modules/style-loader/lib/addStyles.js ***! - \****************************************************/ +/***/ "./node_modules/ant-design-vue/lib/vc-slick/src/default-props.js": +/*!***********************************************************************!*\ + !*** ./node_modules/ant-design-vue/lib/vc-slick/src/default-props.js ***! + \***********************************************************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { -/* - MIT License http://www.opensource.org/licenses/mit-license.php - Author Tobias Koppers @sokra -*/ +"use strict"; -var stylesInDom = {}; -var memoize = function (fn) { - var memo; +Object.defineProperty(exports, "__esModule", { + value: true +}); - return function () { - if (typeof memo === "undefined") memo = fn.apply(this, arguments); - return memo; - }; +var _vueTypes = __webpack_require__(/*! ../../_util/vue-types */ "./node_modules/ant-design-vue/lib/_util/vue-types/index.js"); + +var _vueTypes2 = _interopRequireDefault(_vueTypes); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } + +var defaultProps = { + accessibility: _vueTypes2['default'].bool.def(true), + // 自定义高度 + adaptiveHeight: _vueTypes2['default'].bool.def(false), + afterChange: _vueTypes2['default'].any.def(null), + arrows: _vueTypes2['default'].bool.def(true), + autoplay: _vueTypes2['default'].bool.def(false), + autoplaySpeed: _vueTypes2['default'].number.def(3000), + beforeChange: _vueTypes2['default'].any.def(null), + centerMode: _vueTypes2['default'].bool.def(false), + centerPadding: _vueTypes2['default'].string.def('50px'), + cssEase: _vueTypes2['default'].string.def('ease'), + dots: _vueTypes2['default'].bool.def(false), + dotsClass: _vueTypes2['default'].string.def('slick-dots'), + draggable: _vueTypes2['default'].bool.def(true), + unslick: _vueTypes2['default'].bool.def(false), + easing: _vueTypes2['default'].string.def('linear'), + edgeFriction: _vueTypes2['default'].number.def(0.35), + fade: _vueTypes2['default'].bool.def(false), + focusOnSelect: _vueTypes2['default'].bool.def(false), + infinite: _vueTypes2['default'].bool.def(true), + initialSlide: _vueTypes2['default'].number.def(0), + lazyLoad: _vueTypes2['default'].any.def(null), + verticalSwiping: _vueTypes2['default'].bool.def(false), + asNavFor: _vueTypes2['default'].any.def(null), + // 圆点hover是否暂停 + pauseOnDotsHover: _vueTypes2['default'].bool.def(false), + // focus是否暂停 + pauseOnFocus: _vueTypes2['default'].bool.def(false), + // hover是否暂停 + pauseOnHover: _vueTypes2['default'].bool.def(true), + responsive: _vueTypes2['default'].array, + rows: _vueTypes2['default'].number.def(1), + rtl: _vueTypes2['default'].bool.def(false), + slide: _vueTypes2['default'].string.def('div'), + slidesPerRow: _vueTypes2['default'].number.def(1), + slidesToScroll: _vueTypes2['default'].number.def(1), + slidesToShow: _vueTypes2['default'].number.def(1), + speed: _vueTypes2['default'].number.def(500), + swipe: _vueTypes2['default'].bool.def(true), + swipeEvent: _vueTypes2['default'].any.def(null), + swipeToSlide: _vueTypes2['default'].bool.def(false), + touchMove: _vueTypes2['default'].bool.def(true), + touchThreshold: _vueTypes2['default'].number.def(5), + useCSS: _vueTypes2['default'].bool.def(true), + useTransform: _vueTypes2['default'].bool.def(true), + variableWidth: _vueTypes2['default'].bool.def(false), + vertical: _vueTypes2['default'].bool.def(false), + waitForAnimate: _vueTypes2['default'].bool.def(true), + children: _vueTypes2['default'].array, + __propsSymbol__: _vueTypes2['default'].any }; -var isOldIE = memoize(function () { - // Test for IE <= 9 as proposed by Browserhacks - // @see http://browserhacks.com/#hack-e71d8692f65334173fee715c222cb805 - // Tests for existence of standard globals is to allow style-loader - // to operate correctly into non-standard environments - // @see https://github.com/webpack-contrib/style-loader/issues/177 - return window && document && document.all && !window.atob; +exports['default'] = defaultProps; + +/***/ }), + +/***/ "./node_modules/ant-design-vue/lib/vc-slick/src/dots.js": +/*!**************************************************************!*\ + !*** ./node_modules/ant-design-vue/lib/vc-slick/src/dots.js ***! + \**************************************************************/ +/*! no static exports found */ +/***/ (function(module, exports, __webpack_require__) { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", { + value: true }); -var getTarget = function (target, parent) { - if (parent){ - return parent.querySelector(target); +var _extends2 = __webpack_require__(/*! babel-runtime/helpers/extends */ "./node_modules/babel-runtime/helpers/extends.js"); + +var _extends3 = _interopRequireDefault(_extends2); + +var _classnames = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js"); + +var _classnames2 = _interopRequireDefault(_classnames); + +var _vnode = __webpack_require__(/*! ../../_util/vnode */ "./node_modules/ant-design-vue/lib/_util/vnode.js"); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } + +var getDotCount = function getDotCount(spec) { + var dots = void 0; + + if (spec.infinite) { + dots = Math.ceil(spec.slideCount / spec.slidesToScroll); + } else { + dots = Math.ceil((spec.slideCount - spec.slidesToShow) / spec.slidesToScroll) + 1; } - return document.querySelector(target); + + return dots; }; -var getElement = (function (fn) { - var memo = {}; +exports['default'] = { + functional: true, + render: function render(createElement, context) { + var h = arguments[0]; + var props = context.props, + listeners = context.listeners; + var slideCount = props.slideCount, + slidesToScroll = props.slidesToScroll, + slidesToShow = props.slidesToShow, + infinite = props.infinite, + currentSlide = props.currentSlide, + appendDots = props.appendDots, + customPaging = props.customPaging, + clickHandler = props.clickHandler, + dotsClass = props.dotsClass; + + var dotCount = getDotCount({ + slideCount: slideCount, + slidesToScroll: slidesToScroll, + slidesToShow: slidesToShow, + infinite: infinite + }); + + // Apply join & split to Array to pre-fill it for IE8 + // + // Credit: http://stackoverflow.com/a/13735425/1849458 + var mouseenter = listeners.mouseenter, + mouseover = listeners.mouseover, + mouseleave = listeners.mouseleave; + + var mouseEvents = { mouseenter: mouseenter, mouseover: mouseover, mouseleave: mouseleave }; + var dots = Array.apply(null, Array(dotCount + 1).join('0').split('')).map(function (x, i) { + var leftBound = i * slidesToScroll; + var rightBound = i * slidesToScroll + (slidesToScroll - 1); + var className = (0, _classnames2['default'])({ + 'slick-active': currentSlide >= leftBound && currentSlide <= rightBound + }); + + var dotOptions = { + message: 'dots', + index: i, + slidesToScroll: slidesToScroll, + currentSlide: currentSlide + }; + function onClick(e) { + // In Autoplay the focus stays on clicked button even after transition + // to next slide. That only goes away by click somewhere outside + if (e) { + e.preventDefault(); + } + clickHandler(dotOptions); + } + return h( + 'li', + { key: i, 'class': className }, + [(0, _vnode.cloneElement)(customPaging({ i: i }), { + on: { + click: onClick + } + })] + ); + }); + + return (0, _vnode.cloneElement)(appendDots({ dots: dots }), { + 'class': dotsClass, + on: (0, _extends3['default'])({}, mouseEvents) + }); + } +}; - return function(target, parent) { - // If passing function in options, then use it for resolve "head" element. - // Useful for Shadow Root style i.e - // { - // insertInto: function () { return document.querySelector("#foo").shadowRoot } - // } - if (typeof target === 'function') { - return target(); - } - if (typeof memo[target] === "undefined") { - var styleTarget = getTarget.call(this, target, parent); - // Special case to return head of iframe instead of iframe itself - if (window.HTMLIFrameElement && styleTarget instanceof window.HTMLIFrameElement) { - try { - // This will throw an exception if access to iframe is blocked - // due to cross-origin restrictions - styleTarget = styleTarget.contentDocument.head; - } catch(e) { - styleTarget = null; - } - } - memo[target] = styleTarget; - } - return memo[target] - }; -})(); - -var singleton = null; -var singletonCounter = 0; -var stylesInsertedAtTop = []; - -var fixUrls = __webpack_require__(/*! ./urls */ "./node_modules/style-loader/lib/urls.js"); - -module.exports = function(list, options) { - if (typeof DEBUG !== "undefined" && DEBUG) { - if (typeof document !== "object") throw new Error("The style-loader cannot be used in a non-browser environment"); - } - - options = options || {}; - - options.attrs = typeof options.attrs === "object" ? options.attrs : {}; - - // Force single-tag solution on IE6-9, which has a hard limit on the # of