From 547fe2b88ba12f1ba4eaeb0b16df05eddc210d5e Mon Sep 17 00:00:00 2001 From: dntzhang Date: Wed, 18 Aug 2021 15:45:00 +0800 Subject: [PATCH] feat(@omiu/dialog): modify pop-up and exit effects --- components/dialog/package.json | 2 +- components/dialog/src/index.css | 58 ++-- components/dialog/src/index.esm.js | 389 +++++++++++++++---------- components/dialog/src/index.esm.js.map | 2 +- components/dialog/src/index.js | 286 +++++++++++------- components/dialog/src/index.js.map | 2 +- components/dialog/src/index.scss | 58 ++-- components/dialog/src/index.tsx | 4 +- 8 files changed, 478 insertions(+), 323 deletions(-) diff --git a/components/dialog/package.json b/components/dialog/package.json index ff94888f6..935c48cc8 100644 --- a/components/dialog/package.json +++ b/components/dialog/package.json @@ -1,6 +1,6 @@ { "name": "@omiu/dialog", - "version": "0.0.2", + "version": "0.0.3", "description": "Pop anything you want in the middle of the page", "docsExtend": { "cnName": "对话框", diff --git a/components/dialog/src/index.css b/components/dialog/src/index.css index 1a0259ba4..a9d0e319f 100644 --- a/components/dialog/src/index.css +++ b/components/dialog/src/index.css @@ -9,14 +9,16 @@ .o-dialog { position: relative; - margin: 0 auto 50px; background: #FFF; border-radius: 2px; -webkit-box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3); box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3); -webkit-box-sizing: border-box; box-sizing: border-box; - width: 50%; } + width: 50%; + top: 50%; + left: 50%; + transform: translate(-50%, -50%); } .o-dialog.is-fullscreen { width: 100%; @@ -82,52 +84,52 @@ .o-dialog--center .o-dialog__footer { text-align: inherit; } -.dialog-fade-enter-active { - -webkit-animation: dialog-fade-in .3s; - animation: dialog-fade-in .3s; } +.dialog-zoom-enter-active { + -webkit-animation: dialog-zoom-in .3s; + animation: dialog-zoom-in .3s; } -.dialog-fade-leave-active { - -webkit-animation: dialog-fade-out .3s; - animation: dialog-fade-out .3s; } +.dialog-zoom-leave-active { + -webkit-animation: dialog-zoom-out .3s; + animation: dialog-zoom-out .3s; } -@-webkit-keyframes dialog-fade-in { +@-webkit-keyframes dialog-zoom-in { 0% { - -webkit-transform: translate3d(0, -20px, 0); - transform: translate3d(0, -20px, 0); + -webkit-transform: scale(0, 0); + transform: scale(0, 0); opacity: 0; } 100% { - -webkit-transform: translate3d(0, 0, 0); - transform: translate3d(0, 0, 0); + -webkit-transform: scale(1, 1); + transform: scale(1, 1); opacity: 1; } } -@keyframes dialog-fade-in { +@keyframes dialog-zoom-in { 0% { - -webkit-transform: translate3d(0, -20px, 0); - transform: translate3d(0, -20px, 0); + -webkit-transform: scale(0, 0); + transform: scale(0, 0); opacity: 0; } 100% { - -webkit-transform: translate3d(0, 0, 0); - transform: translate3d(0, 0, 0); + -webkit-transform: scale(1, 1); + transform: scale(1, 1); opacity: 1; } } -@-webkit-keyframes dialog-fade-out { +@-webkit-keyframes dialog-zoom-out { 0% { - -webkit-transform: translate3d(0, 0, 0); - transform: translate3d(0, 0, 0); + -webkit-transform: scale(1, 1); + transform: scale(1, 1); opacity: 1; } 100% { - -webkit-transform: translate3d(0, -20px, 0); - transform: translate3d(0, -20px, 0); + -webkit-transform: scale(0, 0); + transform: scale(0, 0); opacity: 0; } } -@keyframes dialog-fade-out { +@keyframes dialog-zoom-out { 0% { - -webkit-transform: translate3d(0, 0, 0); - transform: translate3d(0, 0, 0); + -webkit-transform: scale(1, 1); + transform: scale(1, 1); opacity: 1; } 100% { - -webkit-transform: translate3d(0, -20px, 0); - transform: translate3d(0, -20px, 0); + -webkit-transform: scale(0, 0); + transform: scale(0, 0); opacity: 0; } } .mask-enter-active { diff --git a/components/dialog/src/index.esm.js b/components/dialog/src/index.esm.js index eb55b9189..403eeb7a6 100644 --- a/components/dialog/src/index.esm.js +++ b/components/dialog/src/index.esm.js @@ -1,5 +1,5 @@ /** - * @omiu/dialog v0.0.2 http://omijs.org + * @omiu/dialog v0.0.3 http://omijs.org * Front End Cross-Frameworks Framework. * By dntzhang https://github.com/dntzhang * Github: https://github.com/Tencent/omi @@ -8,40 +8,42 @@ import { tag, WeElement, h } from 'omi'; -/*! ***************************************************************************** -Copyright (c) Microsoft Corporation. All rights reserved. -Licensed under the Apache License, Version 2.0 (the "License"); you may not use -this file except in compliance with the License. You may obtain a copy of the -License at http://www.apache.org/licenses/LICENSE-2.0 - -THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED -WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE, -MERCHANTABLITY OR NON-INFRINGEMENT. - -See the Apache Version 2.0 License for specific language governing permissions -and limitations under the License. -***************************************************************************** */ -/* global Reflect, Promise */ - -var extendStatics = function(d, b) { - extendStatics = Object.setPrototypeOf || - ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || - function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; }; - return extendStatics(d, b); -}; - -function __extends(d, b) { - extendStatics(d, b); - function __() { this.constructor = d; } - d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); -} - -function __decorate(decorators, target, key, desc) { - var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; - if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); - else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; - return c > 3 && r && Object.defineProperty(target, key, r), r; +/*! ***************************************************************************** +Copyright (c) Microsoft Corporation. + +Permission to use, copy, modify, and/or distribute this software for any +purpose with or without fee is hereby granted. + +THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH +REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY +AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, +INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM +LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR +OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR +PERFORMANCE OF THIS SOFTWARE. +***************************************************************************** */ +/* global Reflect, Promise */ + +var extendStatics$1 = function(d, b) { + extendStatics$1 = Object.setPrototypeOf || + ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || + function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; }; + return extendStatics$1(d, b); +}; + +function __extends$1(d, b) { + if (typeof b !== "function" && b !== null) + throw new TypeError("Class extends value " + String(b) + " is not a constructor or null"); + extendStatics$1(d, b); + function __() { this.constructor = d; } + d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); +} + +function __decorate$1(decorators, target, key, desc) { + var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; + if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); + else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; + return c > 3 && r && Object.defineProperty(target, key, r), r; } @@ -56,14 +58,16 @@ var css = `.mask { .o-dialog { position: relative; - margin: 0 auto 50px; background: #FFF; border-radius: 2px; -webkit-box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3); box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3); -webkit-box-sizing: border-box; box-sizing: border-box; - width: 50%; } + width: 50%; + top: 50%; + left: 50%; + transform: translate(-50%, -50%); } .o-dialog.is-fullscreen { width: 100%; @@ -129,52 +133,52 @@ var css = `.mask { .o-dialog--center .o-dialog__footer { text-align: inherit; } -.dialog-fade-enter-active { - -webkit-animation: dialog-fade-in .3s; - animation: dialog-fade-in .3s; } +.dialog-zoom-enter-active { + -webkit-animation: dialog-zoom-in .3s; + animation: dialog-zoom-in .3s; } -.dialog-fade-leave-active { - -webkit-animation: dialog-fade-out .3s; - animation: dialog-fade-out .3s; } +.dialog-zoom-leave-active { + -webkit-animation: dialog-zoom-out .3s; + animation: dialog-zoom-out .3s; } -@-webkit-keyframes dialog-fade-in { +@-webkit-keyframes dialog-zoom-in { 0% { - -webkit-transform: translate3d(0, -20px, 0); - transform: translate3d(0, -20px, 0); + -webkit-transform: scale(0, 0); + transform: scale(0, 0); opacity: 0; } 100% { - -webkit-transform: translate3d(0, 0, 0); - transform: translate3d(0, 0, 0); + -webkit-transform: scale(1, 1); + transform: scale(1, 1); opacity: 1; } } -@keyframes dialog-fade-in { +@keyframes dialog-zoom-in { 0% { - -webkit-transform: translate3d(0, -20px, 0); - transform: translate3d(0, -20px, 0); + -webkit-transform: scale(0, 0); + transform: scale(0, 0); opacity: 0; } 100% { - -webkit-transform: translate3d(0, 0, 0); - transform: translate3d(0, 0, 0); + -webkit-transform: scale(1, 1); + transform: scale(1, 1); opacity: 1; } } -@-webkit-keyframes dialog-fade-out { +@-webkit-keyframes dialog-zoom-out { 0% { - -webkit-transform: translate3d(0, 0, 0); - transform: translate3d(0, 0, 0); + -webkit-transform: scale(1, 1); + transform: scale(1, 1); opacity: 1; } 100% { - -webkit-transform: translate3d(0, -20px, 0); - transform: translate3d(0, -20px, 0); + -webkit-transform: scale(0, 0); + transform: scale(0, 0); opacity: 0; } } -@keyframes dialog-fade-out { +@keyframes dialog-zoom-out { 0% { - -webkit-transform: translate3d(0, 0, 0); - transform: translate3d(0, 0, 0); + -webkit-transform: scale(1, 1); + transform: scale(1, 1); opacity: 1; } 100% { - -webkit-transform: translate3d(0, -20px, 0); - transform: translate3d(0, -20px, 0); + -webkit-transform: scale(0, 0); + transform: scale(0, 0); opacity: 0; } } .mask-enter-active { @@ -215,47 +219,85 @@ var css = `.mask { /** - * @omiu/transition v0.0.7 http://omijs.org + * @omiu/transition v0.0.14 http://omijs.org * Front End Cross-Frameworks Framework. * By dntzhang https://github.com/dntzhang * Github: https://github.com/Tencent/omi * MIT Licensed. */ -/*! ***************************************************************************** -Copyright (c) Microsoft Corporation. All rights reserved. -Licensed under the Apache License, Version 2.0 (the "License"); you may not use -this file except in compliance with the License. You may obtain a copy of the -License at http://www.apache.org/licenses/LICENSE-2.0 - -THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED -WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE, -MERCHANTABLITY OR NON-INFRINGEMENT. - -See the Apache Version 2.0 License for specific language governing permissions -and limitations under the License. -***************************************************************************** */ -/* global Reflect, Promise */ - -var extendStatics$1 = function(d, b) { - extendStatics$1 = Object.setPrototypeOf || - ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || - function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; }; - return extendStatics$1(d, b); -}; - -function __extends$1(d, b) { - extendStatics$1(d, b); - function __() { this.constructor = d; } - d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); -} - -function __decorate$1(decorators, target, key, desc) { - var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; - if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); - else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; - return c > 3 && r && Object.defineProperty(target, key, r), r; +/*! ***************************************************************************** +Copyright (c) Microsoft Corporation. + +Permission to use, copy, modify, and/or distribute this software for any +purpose with or without fee is hereby granted. + +THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH +REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY +AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, +INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM +LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR +OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR +PERFORMANCE OF THIS SOFTWARE. +***************************************************************************** */ +/* global Reflect, Promise */ + +var extendStatics = function(d, b) { + extendStatics = Object.setPrototypeOf || + ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || + function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; }; + return extendStatics(d, b); +}; + +function __extends(d, b) { + extendStatics(d, b); + function __() { this.constructor = d; } + d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); +} + +function __decorate(decorators, target, key, desc) { + var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; + if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); + else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; + return c > 3 && r && Object.defineProperty(target, key, r), r; +} + +function __awaiter(thisArg, _arguments, P, generator) { + function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } + return new (P || (P = Promise))(function (resolve, reject) { + function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } + function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } + function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } + step((generator = generator.apply(thisArg, _arguments || [])).next()); + }); +} + +function __generator(thisArg, body) { + var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g; + return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g; + function verb(n) { return function (v) { return step([n, v]); }; } + function step(op) { + if (f) throw new TypeError("Generator is already executing."); + while (_) try { + if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t; + if (y = 0, t) op = [op[0] & 2, t.value]; + switch (op[0]) { + case 0: case 1: t = op; break; + case 4: _.label++; return { value: op[1], done: false }; + case 5: _.label++; y = op[1]; op = [0]; continue; + case 7: op = _.ops.pop(); _.trys.pop(); continue; + default: + if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; } + if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; } + if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; } + if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; } + if (t[2]) _.ops.pop(); + _.trys.pop(); continue; + } + op = body.call(thisArg, _); + } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; } + if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true }; + } } var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {}; @@ -317,8 +359,8 @@ var _domReady = /*#__PURE__*/Object.freeze({ * */ var domReady = _dready_0_0_1_dready || _domReady; -var Transition = /** @class */ (function (_super) { - __extends$1(Transition, _super); +/** @class */ ((function (_super) { + __extends(Transition, _super); function Transition() { var _this = _super !== null && _super.apply(this, arguments) || this; _this._show = true; @@ -337,59 +379,91 @@ var Transition = /** @class */ (function (_super) { } }); }; - Transition.prototype.toggle = function () { - this._show = !this._show; - if (this._show) + Transition.prototype.receiveProps = function () { + if (this.props.appear) { this.enter(); - else + } + if (this.props.disappear) { this.leave(); + } + }; + Transition.prototype.toggle = function () { + return __awaiter(this, void 0, void 0, function () { + return __generator(this, function (_a) { + switch (_a.label) { + case 0: + this._show = !this._show; + if (!this._show) return [3 /*break*/, 2]; + return [4 /*yield*/, this.enter()]; + case 1: return [2 /*return*/, _a.sent()]; + case 2: return [4 /*yield*/, this.leave()]; + case 3: return [2 /*return*/, _a.sent()]; + } + }); + }); }; Transition.prototype.enter = function () { - var el = this.children[0]; - if (el) { - this.fire('before-enter'); - el.classList.remove(this.props.name + '-leave-active'); - el.classList.remove(this.props.name + '-leave-to'); - el.classList.add(this.props.name + '-enter'); - el.classList.add(this.props.name + '-enter-active'); - this.callback = function () { - el.classList.remove(this.props.name + '-enter-active'); - this.fire('after-enter'); - this._show = true; - }.bind(this); - this.once('transitionend', this.callback); - this.once('animationend', this.callback); - window.setTimeout(function () { - el.classList.remove(this.props.name + '-enter'); - el.classList.add(this.props.name + '-enter-to'); - this.fire('enter'); - }.bind(this), 0); - } + return __awaiter(this, void 0, void 0, function () { + var _this = this; + return __generator(this, function (_a) { + return [2 /*return*/, new Promise(function (resolve) { + var el = _this.children[0]; + if (el) { + _this.fire('before-enter'); + el.classList.remove(_this.props.name + '-leave-active'); + el.classList.remove(_this.props.name + '-leave-to'); + el.classList.add(_this.props.name + '-enter'); + el.classList.add(_this.props.name + '-enter-active'); + _this.callback = function () { + el.classList.remove(this.props.name + '-enter-active'); + this.fire('after-enter'); + this._show = true; + resolve(); + }.bind(_this); + _this.once('transitionend', _this.callback); + _this.once('animationend', _this.callback); + window.setTimeout(function () { + el.classList.remove(this.props.name + '-enter'); + el.classList.add(this.props.name + '-enter-to'); + this.fire('enter'); + }.bind(_this), _this.props.delay); + } + })]; + }); + }); }; Transition.prototype.leave = function () { - var el = this.children[0]; - if (el) { - this.fire('before-leave'); - el.classList.remove(this.props.name + '-enter-active'); - el.classList.remove(this.props.name + '-enter-to'); - el.classList.add(this.props.name + '-leave'); - el.classList.add(this.props.name + '-leave-active'); - this.callback = function (e) { - el.classList.remove(this.props.name + '-leave-active'); - this.fire('after-leave'); - this._show = false; - if (this.props.autoRemove && this.parentNode) { - this.parentNode.removeChild(this); - } - }.bind(this); - this.once('transitionend', this.callback); - this.once('animationend', this.callback); - window.setTimeout(function () { - el.classList.remove(this.props.name + '-leave'); - el.classList.add(this.props.name + '-leave-to'); - this.fire('leave'); - }.bind(this), 0); - } + return __awaiter(this, void 0, void 0, function () { + var _this = this; + return __generator(this, function (_a) { + return [2 /*return*/, new Promise(function (resolve) { + var el = _this.children[0]; + if (el) { + _this.fire('before-leave'); + el.classList.remove(_this.props.name + '-enter-active'); + el.classList.remove(_this.props.name + '-enter-to'); + el.classList.add(_this.props.name + '-leave'); + el.classList.add(_this.props.name + '-leave-active'); + _this.callback = function (e) { + el.classList.remove(this.props.name + '-leave-active'); + this.fire('after-leave'); + this._show = false; + if (this.props.autoRemove && this.parentNode) { + this.parentNode.removeChild(this); + } + resolve(); + }.bind(_this); + _this.once('transitionend', _this.callback); + _this.once('animationend', _this.callback); + window.setTimeout(function () { + el.classList.remove(this.props.name + '-leave'); + el.classList.add(this.props.name + '-leave-to'); + this.fire('leave'); + }.bind(_this), _this.props.delay); + } + })]; + }); + }); }; Transition.prototype.once = function (name, callback) { var wrapCall = function () { @@ -405,20 +479,23 @@ var Transition = /** @class */ (function (_super) { name: String, leavingTime: Number, autoRemove: Boolean, - appear: Boolean + appear: Boolean, + disappear: Boolean, + delay: Number }; Transition.isLightDom = true; Transition.defaultProps = { - name: 'o' + name: 'o', + delay: 0 }; - Transition = __decorate$1([ + Transition = __decorate([ tag('o-transition') ], Transition); return Transition; -}(WeElement)); +})(WeElement)); var Dialog = /** @class */ (function (_super) { - __extends(Dialog, _super); + __extends$1(Dialog, _super); function Dialog() { var _this = _super !== null && _super.apply(this, arguments) || this; _this.handleMaskClick = function () { @@ -444,9 +521,9 @@ var Dialog = /** @class */ (function (_super) { }; Dialog.prototype.render = function (props) { return (props.visible && h("div", { class: "o-dialog__wrapper" }, - h("o-transition", { "onafter-leave": this.onAfterLeave, appear: true, name: "dialog-fade" }, + h("o-transition", { "onafter-leave": this.onAfterLeave, appear: true, name: "dialog-zoom" }, h("div", { class: "o-dialog__wrapper content" }, - h("div", { role: "dialog", "aria-modal": "true", "aria-label": props.title, class: "o-dialog", style: { width: props.width, marginTop: "15vh" } }, + h("div", { role: "dialog", "aria-modal": "true", "aria-label": props.title, class: "o-dialog", style: { width: props.width } }, h("div", { class: "o-dialog__header" }, h("span", { class: "o-dialog__title" }, props.title), h("button", { type: "button", "aria-label": "Close", class: "o-dialog__headerbtn" }, @@ -469,11 +546,11 @@ var Dialog = /** @class */ (function (_super) { title: String, width: String }; - Dialog = __decorate([ + Dialog = __decorate$1([ tag('o-dialog') ], Dialog); return Dialog; }(WeElement)); -export default Dialog; +export { Dialog as default }; //# sourceMappingURL=index.esm.js.map diff --git a/components/dialog/src/index.esm.js.map b/components/dialog/src/index.esm.js.map index b1ba123b8..0f7d92744 100644 --- a/components/dialog/src/index.esm.js.map +++ b/components/dialog/src/index.esm.js.map @@ -1 +1 @@ -{"version":3,"file":"index.esm.js","sources":["../node_modules/_tslib@1.11.1@tslib/tslib.es6.js","../node_modules/_@omiu_transition@0.0.6@@omiu/transition/src/index.esm.js","index.tsx"],"sourcesContent":["/*! *****************************************************************************\r\nCopyright (c) Microsoft Corporation. All rights reserved.\r\nLicensed under the Apache License, Version 2.0 (the \"License\"); you may not use\r\nthis file except in compliance with the License. You may obtain a copy of the\r\nLicense at http://www.apache.org/licenses/LICENSE-2.0\r\n\r\nTHIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\r\nKIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED\r\nWARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,\r\nMERCHANTABLITY OR NON-INFRINGEMENT.\r\n\r\nSee the Apache Version 2.0 License for specific language governing permissions\r\nand limitations under the License.\r\n***************************************************************************** */\r\n/* global Reflect, Promise */\r\n\r\nvar extendStatics = function(d, b) {\r\n extendStatics = Object.setPrototypeOf ||\r\n ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\r\n function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };\r\n return extendStatics(d, b);\r\n};\r\n\r\nexport function __extends(d, b) {\r\n extendStatics(d, b);\r\n function __() { this.constructor = d; }\r\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\r\n}\r\n\r\nexport var __assign = function() {\r\n __assign = Object.assign || function __assign(t) {\r\n for (var s, i = 1, n = arguments.length; i < n; i++) {\r\n s = arguments[i];\r\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];\r\n }\r\n return t;\r\n }\r\n return __assign.apply(this, arguments);\r\n}\r\n\r\nexport function __rest(s, e) {\r\n var t = {};\r\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)\r\n t[p] = s[p];\r\n if (s != null && typeof Object.getOwnPropertySymbols === \"function\")\r\n for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\r\n if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))\r\n t[p[i]] = s[p[i]];\r\n }\r\n return t;\r\n}\r\n\r\nexport function __decorate(decorators, target, key, desc) {\r\n var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;\r\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);\r\n else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\r\n return c > 3 && r && Object.defineProperty(target, key, r), r;\r\n}\r\n\r\nexport function __param(paramIndex, decorator) {\r\n return function (target, key) { decorator(target, key, paramIndex); }\r\n}\r\n\r\nexport function __metadata(metadataKey, metadataValue) {\r\n if (typeof Reflect === \"object\" && typeof Reflect.metadata === \"function\") return Reflect.metadata(metadataKey, metadataValue);\r\n}\r\n\r\nexport function __awaiter(thisArg, _arguments, P, generator) {\r\n function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }\r\n return new (P || (P = Promise))(function (resolve, reject) {\r\n function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\r\n function rejected(value) { try { step(generator[\"throw\"](value)); } catch (e) { reject(e); } }\r\n function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }\r\n step((generator = generator.apply(thisArg, _arguments || [])).next());\r\n });\r\n}\r\n\r\nexport function __generator(thisArg, body) {\r\n var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;\r\n return g = { next: verb(0), \"throw\": verb(1), \"return\": verb(2) }, typeof Symbol === \"function\" && (g[Symbol.iterator] = function() { return this; }), g;\r\n function verb(n) { return function (v) { return step([n, v]); }; }\r\n function step(op) {\r\n if (f) throw new TypeError(\"Generator is already executing.\");\r\n while (_) try {\r\n if (f = 1, y && (t = op[0] & 2 ? y[\"return\"] : op[0] ? y[\"throw\"] || ((t = y[\"return\"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;\r\n if (y = 0, t) op = [op[0] & 2, t.value];\r\n switch (op[0]) {\r\n case 0: case 1: t = op; break;\r\n case 4: _.label++; return { value: op[1], done: false };\r\n case 5: _.label++; y = op[1]; op = [0]; continue;\r\n case 7: op = _.ops.pop(); _.trys.pop(); continue;\r\n default:\r\n if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }\r\n if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }\r\n if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }\r\n if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }\r\n if (t[2]) _.ops.pop();\r\n _.trys.pop(); continue;\r\n }\r\n op = body.call(thisArg, _);\r\n } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }\r\n if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };\r\n }\r\n}\r\n\r\nexport function __exportStar(m, exports) {\r\n for (var p in m) if (!exports.hasOwnProperty(p)) exports[p] = m[p];\r\n}\r\n\r\nexport function __values(o) {\r\n var s = typeof Symbol === \"function\" && Symbol.iterator, m = s && o[s], i = 0;\r\n if (m) return m.call(o);\r\n if (o && typeof o.length === \"number\") return {\r\n next: function () {\r\n if (o && i >= o.length) o = void 0;\r\n return { value: o && o[i++], done: !o };\r\n }\r\n };\r\n throw new TypeError(s ? \"Object is not iterable.\" : \"Symbol.iterator is not defined.\");\r\n}\r\n\r\nexport function __read(o, n) {\r\n var m = typeof Symbol === \"function\" && o[Symbol.iterator];\r\n if (!m) return o;\r\n var i = m.call(o), r, ar = [], e;\r\n try {\r\n while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);\r\n }\r\n catch (error) { e = { error: error }; }\r\n finally {\r\n try {\r\n if (r && !r.done && (m = i[\"return\"])) m.call(i);\r\n }\r\n finally { if (e) throw e.error; }\r\n }\r\n return ar;\r\n}\r\n\r\nexport function __spread() {\r\n for (var ar = [], i = 0; i < arguments.length; i++)\r\n ar = ar.concat(__read(arguments[i]));\r\n return ar;\r\n}\r\n\r\nexport function __spreadArrays() {\r\n for (var s = 0, i = 0, il = arguments.length; i < il; i++) s += arguments[i].length;\r\n for (var r = Array(s), k = 0, i = 0; i < il; i++)\r\n for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)\r\n r[k] = a[j];\r\n return r;\r\n};\r\n\r\nexport function __await(v) {\r\n return this instanceof __await ? (this.v = v, this) : new __await(v);\r\n}\r\n\r\nexport function __asyncGenerator(thisArg, _arguments, generator) {\r\n if (!Symbol.asyncIterator) throw new TypeError(\"Symbol.asyncIterator is not defined.\");\r\n var g = generator.apply(thisArg, _arguments || []), i, q = [];\r\n return i = {}, verb(\"next\"), verb(\"throw\"), verb(\"return\"), i[Symbol.asyncIterator] = function () { return this; }, i;\r\n function verb(n) { if (g[n]) i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; }\r\n function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } }\r\n function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); }\r\n function fulfill(value) { resume(\"next\", value); }\r\n function reject(value) { resume(\"throw\", value); }\r\n function settle(f, v) { if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]); }\r\n}\r\n\r\nexport function __asyncDelegator(o) {\r\n var i, p;\r\n return i = {}, verb(\"next\"), verb(\"throw\", function (e) { throw e; }), verb(\"return\"), i[Symbol.iterator] = function () { return this; }, i;\r\n function verb(n, f) { i[n] = o[n] ? function (v) { return (p = !p) ? { value: __await(o[n](v)), done: n === \"return\" } : f ? f(v) : v; } : f; }\r\n}\r\n\r\nexport function __asyncValues(o) {\r\n if (!Symbol.asyncIterator) throw new TypeError(\"Symbol.asyncIterator is not defined.\");\r\n var m = o[Symbol.asyncIterator], i;\r\n return m ? m.call(o) : (o = typeof __values === \"function\" ? __values(o) : o[Symbol.iterator](), i = {}, verb(\"next\"), verb(\"throw\"), verb(\"return\"), i[Symbol.asyncIterator] = function () { return this; }, i);\r\n function verb(n) { i[n] = o[n] && function (v) { return new Promise(function (resolve, reject) { v = o[n](v), settle(resolve, reject, v.done, v.value); }); }; }\r\n function settle(resolve, reject, d, v) { Promise.resolve(v).then(function(v) { resolve({ value: v, done: d }); }, reject); }\r\n}\r\n\r\nexport function __makeTemplateObject(cooked, raw) {\r\n if (Object.defineProperty) { Object.defineProperty(cooked, \"raw\", { value: raw }); } else { cooked.raw = raw; }\r\n return cooked;\r\n};\r\n\r\nexport function __importStar(mod) {\r\n if (mod && mod.__esModule) return mod;\r\n var result = {};\r\n if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) result[k] = mod[k];\r\n result.default = mod;\r\n return result;\r\n}\r\n\r\nexport function __importDefault(mod) {\r\n return (mod && mod.__esModule) ? mod : { default: mod };\r\n}\r\n\r\nexport function __classPrivateFieldGet(receiver, privateMap) {\r\n if (!privateMap.has(receiver)) {\r\n throw new TypeError(\"attempted to get private field on non-instance\");\r\n }\r\n return privateMap.get(receiver);\r\n}\r\n\r\nexport function __classPrivateFieldSet(receiver, privateMap, value) {\r\n if (!privateMap.has(receiver)) {\r\n throw new TypeError(\"attempted to set private field on non-instance\");\r\n }\r\n privateMap.set(receiver, value);\r\n return value;\r\n}\r\n","/**\n * @omiu/transition v0.0.7 http://omijs.org\n * Front End Cross-Frameworks Framework.\n * By dntzhang https://github.com/dntzhang\n * Github: https://github.com/Tencent/omi\n * MIT Licensed.\n */\n\nimport { tag, WeElement } from 'omi';\n\n/*! *****************************************************************************\r\nCopyright (c) Microsoft Corporation. All rights reserved.\r\nLicensed under the Apache License, Version 2.0 (the \"License\"); you may not use\r\nthis file except in compliance with the License. You may obtain a copy of the\r\nLicense at http://www.apache.org/licenses/LICENSE-2.0\r\n\r\nTHIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\r\nKIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED\r\nWARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,\r\nMERCHANTABLITY OR NON-INFRINGEMENT.\r\n\r\nSee the Apache Version 2.0 License for specific language governing permissions\r\nand limitations under the License.\r\n***************************************************************************** */\r\n/* global Reflect, Promise */\r\n\r\nvar extendStatics = function(d, b) {\r\n extendStatics = Object.setPrototypeOf ||\r\n ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\r\n function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };\r\n return extendStatics(d, b);\r\n};\r\n\r\nfunction __extends(d, b) {\r\n extendStatics(d, b);\r\n function __() { this.constructor = d; }\r\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\r\n}\r\n\r\nfunction __decorate(decorators, target, key, desc) {\r\n var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;\r\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);\r\n else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\r\n return c > 3 && r && Object.defineProperty(target, key, r), r;\r\n}\n\nvar commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};\n\nfunction createCommonjsModule(fn, module) {\n\treturn module = { exports: {} }, fn(module, module.exports), module.exports;\n}\n\nvar _dready_0_0_1_dready = createCommonjsModule(function (module, exports) {\n// if the module has no dependencies, the above pattern can be simplified to\n(function (root, factory) {\n {\n // Node. Does not work with strict CommonJS, but\n // only CommonJS-like environments that support module.exports,\n // like Node.\n module.exports = factory();\n }\n}(commonjsGlobal, function () {\n\n const readyCallbacks = [];\n document.addEventListener('DOMContentLoaded', () => {\n domReady.done = true;\n readyCallbacks.forEach(callback => {\n callback();\n });\n });\n\n function domReady(callback) {\n if (domReady.done) {\n callback();\n return\n }\n readyCallbacks.push(callback);\n }\n\n domReady.done = false;\n\n\n // Just return a value to define the module export.\n // This example returns an object, but the module\n // can return a function as the exported value.\n return domReady\n}));\n});\n\nvar _domReady = /*#__PURE__*/Object.freeze({\n __proto__: null,\n 'default': _dready_0_0_1_dready,\n __moduleExports: _dready_0_0_1_dready\n});\n\n/**\n * o-transition element based on vue-transition\n * Tom Fales (@enlightenmentor)\n * Licensed under the MIT License\n * https://github.com/enlightenmentor/vue-transition/blob/master/LICENSE\n *\n * modified by dntzhang\n *\n */\nvar domReady = _dready_0_0_1_dready || _domReady;\nvar Transition = /** @class */ (function (_super) {\n __extends(Transition, _super);\n function Transition() {\n var _this = _super !== null && _super.apply(this, arguments) || this;\n _this._show = true;\n return _this;\n }\n Transition.prototype.installed = function () {\n var _this = this;\n domReady(function () {\n if (_this.props.appear) {\n _this.enter();\n }\n if (_this.props.leavingTime) {\n setTimeout(function () {\n _this.leave();\n }, _this.props.leavingTime);\n }\n });\n };\n Transition.prototype.toggle = function () {\n this._show = !this._show;\n if (this._show)\n this.enter();\n else\n this.leave();\n };\n Transition.prototype.enter = function () {\n var el = this.children[0];\n if (el) {\n this.fire('before-enter');\n el.classList.remove(this.props.name + '-leave-active');\n el.classList.remove(this.props.name + '-leave-to');\n el.classList.add(this.props.name + '-enter');\n el.classList.add(this.props.name + '-enter-active');\n this.callback = function () {\n el.classList.remove(this.props.name + '-enter-active');\n this.fire('after-enter');\n this._show = true;\n }.bind(this);\n this.once('transitionend', this.callback);\n this.once('animationend', this.callback);\n window.setTimeout(function () {\n el.classList.remove(this.props.name + '-enter');\n el.classList.add(this.props.name + '-enter-to');\n this.fire('enter');\n }.bind(this), 0);\n }\n };\n Transition.prototype.leave = function () {\n var el = this.children[0];\n if (el) {\n this.fire('before-leave');\n el.classList.remove(this.props.name + '-enter-active');\n el.classList.remove(this.props.name + '-enter-to');\n el.classList.add(this.props.name + '-leave');\n el.classList.add(this.props.name + '-leave-active');\n this.callback = function (e) {\n el.classList.remove(this.props.name + '-leave-active');\n this.fire('after-leave');\n this._show = false;\n if (this.props.autoRemove && this.parentNode) {\n this.parentNode.removeChild(this);\n }\n }.bind(this);\n this.once('transitionend', this.callback);\n this.once('animationend', this.callback);\n window.setTimeout(function () {\n el.classList.remove(this.props.name + '-leave');\n el.classList.add(this.props.name + '-leave-to');\n this.fire('leave');\n }.bind(this), 0);\n }\n };\n Transition.prototype.once = function (name, callback) {\n var wrapCall = function () {\n this.removeEventListener(name, wrapCall);\n callback();\n }.bind(this);\n this.addEventListener(name, wrapCall);\n };\n Transition.prototype.render = function () {\n return;\n };\n Transition.propTypes = {\n name: String,\n leavingTime: Number,\n autoRemove: Boolean,\n appear: Boolean\n };\n Transition.isLightDom = true;\n Transition.defaultProps = {\n name: 'o'\n };\n Transition = __decorate([\n tag('o-transition')\n ], Transition);\n return Transition;\n}(WeElement));\n\nexport default Transition;\n//# sourceMappingURL=index.esm.js.map\n","import { tag, WeElement, h } from 'omi'\nimport * as css from './index.scss'\n\nimport '@omiu/transition'\n\ninterface Props {\n visible: boolean\n title: String\n width: String\n}\n\n\n@tag('o-dialog')\nexport default class Dialog extends WeElement {\n static css = css\n\n static defaultProps = {\n visible: false,\n width: '50%'\n }\n\n static propTypes = {\n visible: Boolean,\n title: String,\n width: String\n }\n\n\n open() {\n\n this.updateProps({\n visible: true\n })\n\n this.rootNode.childNodes[0].enter()\n this.rootNode.childNodes[1].enter()\n this.fire('open')\n }\n\n handleMaskClick = () => {\n this.fire('mask-click')\n }\n\n close = () => {\n this.rootNode.childNodes[0].leave()\n this.rootNode.childNodes[1].leave()\n this.fire('close')\n }\n\n onAfterLeave = () => {\n this.updateProps({ visible: false })\n }\n\n render(props) {\n return (\n\n\n props.visible &&
\n \n
\n\n
\n
\n {props.title}\n\n \n\n
\n \n
\n\n
\n \n
\n
\n
\n
\n\n \n
\n \n
\n\n )\n }\n}\n"],"names":["extendStatics","__extends","__decorate"],"mappings":";;;;;;;;;;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,IAAI,aAAa,GAAG,SAAS,CAAC,EAAE,CAAC,EAAE;AACnC,IAAI,aAAa,GAAG,MAAM,CAAC,cAAc;AAC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C,QAAQ,GAAQ,CACvB,CACF,CACF,CACO;YAEf,oBAAc,MAAM,QAAC,IAAI,EAAC,MAAM;gBAC9B,WAAK,KAAK,EAAC,MAAM,EAAC,OAAO,EAAE,IAAI,CAAC,eAAe,GAAI,CACtC,CACX,EAEP;KACF;IAxEM,UAAG,GAAG,GAAG,CAAA;IAET,mBAAY,GAAG;QACpB,OAAO,EAAE,KAAK;QACd,KAAK,EAAE,KAAK;KACb,CAAA;IAEM,gBAAS,GAAG;QACjB,OAAO,EAAE,OAAO;QAChB,KAAK,EAAE,MAAM;QACb,KAAK,EAAE,MAAM;KACd,CAAA;IAZkB,MAAM;QAD1B,GAAG,CAAC,UAAU,CAAC;OACK,MAAM,CA0E1B;IAAD,aAAC;CAAA,CA1EmC,SAAS;;"} \ No newline at end of file +{"version":3,"file":"index.esm.js","sources":["../node_modules/tslib/tslib.es6.js","../node_modules/@omiu/transition/src/index.esm.js","index.tsx"],"sourcesContent":["/*! *****************************************************************************\r\nCopyright (c) Microsoft Corporation.\r\n\r\nPermission to use, copy, modify, and/or distribute this software for any\r\npurpose with or without fee is hereby granted.\r\n\r\nTHE SOFTWARE IS PROVIDED \"AS IS\" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH\r\nREGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY\r\nAND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,\r\nINDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM\r\nLOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR\r\nOTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR\r\nPERFORMANCE OF THIS SOFTWARE.\r\n***************************************************************************** */\r\n/* global Reflect, Promise */\r\n\r\nvar extendStatics = function(d, b) {\r\n extendStatics = Object.setPrototypeOf ||\r\n ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\r\n function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };\r\n return extendStatics(d, b);\r\n};\r\n\r\nexport function __extends(d, b) {\r\n if (typeof b !== \"function\" && b !== null)\r\n throw new TypeError(\"Class extends value \" + String(b) + \" is not a constructor or null\");\r\n extendStatics(d, b);\r\n function __() { this.constructor = d; }\r\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\r\n}\r\n\r\nexport var __assign = function() {\r\n __assign = Object.assign || function __assign(t) {\r\n for (var s, i = 1, n = arguments.length; i < n; i++) {\r\n s = arguments[i];\r\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];\r\n }\r\n return t;\r\n }\r\n return __assign.apply(this, arguments);\r\n}\r\n\r\nexport function __rest(s, e) {\r\n var t = {};\r\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)\r\n t[p] = s[p];\r\n if (s != null && typeof Object.getOwnPropertySymbols === \"function\")\r\n for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\r\n if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))\r\n t[p[i]] = s[p[i]];\r\n }\r\n return t;\r\n}\r\n\r\nexport function __decorate(decorators, target, key, desc) {\r\n var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;\r\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);\r\n else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\r\n return c > 3 && r && Object.defineProperty(target, key, r), r;\r\n}\r\n\r\nexport function __param(paramIndex, decorator) {\r\n return function (target, key) { decorator(target, key, paramIndex); }\r\n}\r\n\r\nexport function __metadata(metadataKey, metadataValue) {\r\n if (typeof Reflect === \"object\" && typeof Reflect.metadata === \"function\") return Reflect.metadata(metadataKey, metadataValue);\r\n}\r\n\r\nexport function __awaiter(thisArg, _arguments, P, generator) {\r\n function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }\r\n return new (P || (P = Promise))(function (resolve, reject) {\r\n function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\r\n function rejected(value) { try { step(generator[\"throw\"](value)); } catch (e) { reject(e); } }\r\n function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }\r\n step((generator = generator.apply(thisArg, _arguments || [])).next());\r\n });\r\n}\r\n\r\nexport function __generator(thisArg, body) {\r\n var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;\r\n return g = { next: verb(0), \"throw\": verb(1), \"return\": verb(2) }, typeof Symbol === \"function\" && (g[Symbol.iterator] = function() { return this; }), g;\r\n function verb(n) { return function (v) { return step([n, v]); }; }\r\n function step(op) {\r\n if (f) throw new TypeError(\"Generator is already executing.\");\r\n while (_) try {\r\n if (f = 1, y && (t = op[0] & 2 ? y[\"return\"] : op[0] ? y[\"throw\"] || ((t = y[\"return\"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;\r\n if (y = 0, t) op = [op[0] & 2, t.value];\r\n switch (op[0]) {\r\n case 0: case 1: t = op; break;\r\n case 4: _.label++; return { value: op[1], done: false };\r\n case 5: _.label++; y = op[1]; op = [0]; continue;\r\n case 7: op = _.ops.pop(); _.trys.pop(); continue;\r\n default:\r\n if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }\r\n if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }\r\n if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }\r\n if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }\r\n if (t[2]) _.ops.pop();\r\n _.trys.pop(); continue;\r\n }\r\n op = body.call(thisArg, _);\r\n } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }\r\n if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };\r\n }\r\n}\r\n\r\nexport var __createBinding = Object.create ? (function(o, m, k, k2) {\r\n if (k2 === undefined) k2 = k;\r\n Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });\r\n}) : (function(o, m, k, k2) {\r\n if (k2 === undefined) k2 = k;\r\n o[k2] = m[k];\r\n});\r\n\r\nexport function __exportStar(m, o) {\r\n for (var p in m) if (p !== \"default\" && !Object.prototype.hasOwnProperty.call(o, p)) __createBinding(o, m, p);\r\n}\r\n\r\nexport function __values(o) {\r\n var s = typeof Symbol === \"function\" && Symbol.iterator, m = s && o[s], i = 0;\r\n if (m) return m.call(o);\r\n if (o && typeof o.length === \"number\") return {\r\n next: function () {\r\n if (o && i >= o.length) o = void 0;\r\n return { value: o && o[i++], done: !o };\r\n }\r\n };\r\n throw new TypeError(s ? \"Object is not iterable.\" : \"Symbol.iterator is not defined.\");\r\n}\r\n\r\nexport function __read(o, n) {\r\n var m = typeof Symbol === \"function\" && o[Symbol.iterator];\r\n if (!m) return o;\r\n var i = m.call(o), r, ar = [], e;\r\n try {\r\n while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);\r\n }\r\n catch (error) { e = { error: error }; }\r\n finally {\r\n try {\r\n if (r && !r.done && (m = i[\"return\"])) m.call(i);\r\n }\r\n finally { if (e) throw e.error; }\r\n }\r\n return ar;\r\n}\r\n\r\n/** @deprecated */\r\nexport function __spread() {\r\n for (var ar = [], i = 0; i < arguments.length; i++)\r\n ar = ar.concat(__read(arguments[i]));\r\n return ar;\r\n}\r\n\r\n/** @deprecated */\r\nexport function __spreadArrays() {\r\n for (var s = 0, i = 0, il = arguments.length; i < il; i++) s += arguments[i].length;\r\n for (var r = Array(s), k = 0, i = 0; i < il; i++)\r\n for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)\r\n r[k] = a[j];\r\n return r;\r\n}\r\n\r\nexport function __spreadArray(to, from, pack) {\r\n if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {\r\n if (ar || !(i in from)) {\r\n if (!ar) ar = Array.prototype.slice.call(from, 0, i);\r\n ar[i] = from[i];\r\n }\r\n }\r\n return to.concat(ar || Array.prototype.slice.call(from));\r\n}\r\n\r\nexport function __await(v) {\r\n return this instanceof __await ? (this.v = v, this) : new __await(v);\r\n}\r\n\r\nexport function __asyncGenerator(thisArg, _arguments, generator) {\r\n if (!Symbol.asyncIterator) throw new TypeError(\"Symbol.asyncIterator is not defined.\");\r\n var g = generator.apply(thisArg, _arguments || []), i, q = [];\r\n return i = {}, verb(\"next\"), verb(\"throw\"), verb(\"return\"), i[Symbol.asyncIterator] = function () { return this; }, i;\r\n function verb(n) { if (g[n]) i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; }\r\n function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } }\r\n function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); }\r\n function fulfill(value) { resume(\"next\", value); }\r\n function reject(value) { resume(\"throw\", value); }\r\n function settle(f, v) { if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]); }\r\n}\r\n\r\nexport function __asyncDelegator(o) {\r\n var i, p;\r\n return i = {}, verb(\"next\"), verb(\"throw\", function (e) { throw e; }), verb(\"return\"), i[Symbol.iterator] = function () { return this; }, i;\r\n function verb(n, f) { i[n] = o[n] ? function (v) { return (p = !p) ? { value: __await(o[n](v)), done: n === \"return\" } : f ? f(v) : v; } : f; }\r\n}\r\n\r\nexport function __asyncValues(o) {\r\n if (!Symbol.asyncIterator) throw new TypeError(\"Symbol.asyncIterator is not defined.\");\r\n var m = o[Symbol.asyncIterator], i;\r\n return m ? m.call(o) : (o = typeof __values === \"function\" ? __values(o) : o[Symbol.iterator](), i = {}, verb(\"next\"), verb(\"throw\"), verb(\"return\"), i[Symbol.asyncIterator] = function () { return this; }, i);\r\n function verb(n) { i[n] = o[n] && function (v) { return new Promise(function (resolve, reject) { v = o[n](v), settle(resolve, reject, v.done, v.value); }); }; }\r\n function settle(resolve, reject, d, v) { Promise.resolve(v).then(function(v) { resolve({ value: v, done: d }); }, reject); }\r\n}\r\n\r\nexport function __makeTemplateObject(cooked, raw) {\r\n if (Object.defineProperty) { Object.defineProperty(cooked, \"raw\", { value: raw }); } else { cooked.raw = raw; }\r\n return cooked;\r\n};\r\n\r\nvar __setModuleDefault = Object.create ? (function(o, v) {\r\n Object.defineProperty(o, \"default\", { enumerable: true, value: v });\r\n}) : function(o, v) {\r\n o[\"default\"] = v;\r\n};\r\n\r\nexport function __importStar(mod) {\r\n if (mod && mod.__esModule) return mod;\r\n var result = {};\r\n if (mod != null) for (var k in mod) if (k !== \"default\" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);\r\n __setModuleDefault(result, mod);\r\n return result;\r\n}\r\n\r\nexport function __importDefault(mod) {\r\n return (mod && mod.__esModule) ? mod : { default: mod };\r\n}\r\n\r\nexport function __classPrivateFieldGet(receiver, state, kind, f) {\r\n if (kind === \"a\" && !f) throw new TypeError(\"Private accessor was defined without a getter\");\r\n if (typeof state === \"function\" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError(\"Cannot read private member from an object whose class did not declare it\");\r\n return kind === \"m\" ? f : kind === \"a\" ? f.call(receiver) : f ? f.value : state.get(receiver);\r\n}\r\n\r\nexport function __classPrivateFieldSet(receiver, state, value, kind, f) {\r\n if (kind === \"m\") throw new TypeError(\"Private method is not writable\");\r\n if (kind === \"a\" && !f) throw new TypeError(\"Private accessor was defined without a setter\");\r\n if (typeof state === \"function\" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError(\"Cannot write private member to an object whose class did not declare it\");\r\n return (kind === \"a\" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;\r\n}\r\n","/**\n * @omiu/transition v0.0.14 http://omijs.org\n * Front End Cross-Frameworks Framework.\n * By dntzhang https://github.com/dntzhang\n * Github: https://github.com/Tencent/omi\n * MIT Licensed.\n */\n\nimport { tag, WeElement } from 'omi';\n\n/*! *****************************************************************************\r\nCopyright (c) Microsoft Corporation.\r\n\r\nPermission to use, copy, modify, and/or distribute this software for any\r\npurpose with or without fee is hereby granted.\r\n\r\nTHE SOFTWARE IS PROVIDED \"AS IS\" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH\r\nREGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY\r\nAND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,\r\nINDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM\r\nLOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR\r\nOTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR\r\nPERFORMANCE OF THIS SOFTWARE.\r\n***************************************************************************** */\r\n/* global Reflect, Promise */\r\n\r\nvar extendStatics = function(d, b) {\r\n extendStatics = Object.setPrototypeOf ||\r\n ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\r\n function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };\r\n return extendStatics(d, b);\r\n};\r\n\r\nfunction __extends(d, b) {\r\n extendStatics(d, b);\r\n function __() { this.constructor = d; }\r\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\r\n}\r\n\r\nfunction __decorate(decorators, target, key, desc) {\r\n var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;\r\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);\r\n else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\r\n return c > 3 && r && Object.defineProperty(target, key, r), r;\r\n}\r\n\r\nfunction __awaiter(thisArg, _arguments, P, generator) {\r\n function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }\r\n return new (P || (P = Promise))(function (resolve, reject) {\r\n function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\r\n function rejected(value) { try { step(generator[\"throw\"](value)); } catch (e) { reject(e); } }\r\n function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }\r\n step((generator = generator.apply(thisArg, _arguments || [])).next());\r\n });\r\n}\r\n\r\nfunction __generator(thisArg, body) {\r\n var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;\r\n return g = { next: verb(0), \"throw\": verb(1), \"return\": verb(2) }, typeof Symbol === \"function\" && (g[Symbol.iterator] = function() { return this; }), g;\r\n function verb(n) { return function (v) { return step([n, v]); }; }\r\n function step(op) {\r\n if (f) throw new TypeError(\"Generator is already executing.\");\r\n while (_) try {\r\n if (f = 1, y && (t = op[0] & 2 ? y[\"return\"] : op[0] ? y[\"throw\"] || ((t = y[\"return\"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;\r\n if (y = 0, t) op = [op[0] & 2, t.value];\r\n switch (op[0]) {\r\n case 0: case 1: t = op; break;\r\n case 4: _.label++; return { value: op[1], done: false };\r\n case 5: _.label++; y = op[1]; op = [0]; continue;\r\n case 7: op = _.ops.pop(); _.trys.pop(); continue;\r\n default:\r\n if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }\r\n if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }\r\n if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }\r\n if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }\r\n if (t[2]) _.ops.pop();\r\n _.trys.pop(); continue;\r\n }\r\n op = body.call(thisArg, _);\r\n } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }\r\n if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };\r\n }\r\n}\n\nvar commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};\n\nfunction createCommonjsModule(fn, module) {\n\treturn module = { exports: {} }, fn(module, module.exports), module.exports;\n}\n\nvar _dready_0_0_1_dready = createCommonjsModule(function (module, exports) {\n// if the module has no dependencies, the above pattern can be simplified to\n(function (root, factory) {\n {\n // Node. Does not work with strict CommonJS, but\n // only CommonJS-like environments that support module.exports,\n // like Node.\n module.exports = factory();\n }\n}(commonjsGlobal, function () {\n\n const readyCallbacks = [];\n document.addEventListener('DOMContentLoaded', () => {\n domReady.done = true;\n readyCallbacks.forEach(callback => {\n callback();\n });\n });\n\n function domReady(callback) {\n if (domReady.done) {\n callback();\n return\n }\n readyCallbacks.push(callback);\n }\n\n domReady.done = false;\n\n\n // Just return a value to define the module export.\n // This example returns an object, but the module\n // can return a function as the exported value.\n return domReady\n}));\n});\n\nvar _domReady = /*#__PURE__*/Object.freeze({\n __proto__: null,\n 'default': _dready_0_0_1_dready,\n __moduleExports: _dready_0_0_1_dready\n});\n\n/**\n * o-transition element based on vue-transition\n * Tom Fales (@enlightenmentor)\n * Licensed under the MIT License\n * https://github.com/enlightenmentor/vue-transition/blob/master/LICENSE\n *\n * modified by dntzhang\n *\n */\nvar domReady = _dready_0_0_1_dready || _domReady;\nvar Transition = /** @class */ (function (_super) {\n __extends(Transition, _super);\n function Transition() {\n var _this = _super !== null && _super.apply(this, arguments) || this;\n _this._show = true;\n return _this;\n }\n Transition.prototype.installed = function () {\n var _this = this;\n domReady(function () {\n if (_this.props.appear) {\n _this.enter();\n }\n if (_this.props.leavingTime) {\n setTimeout(function () {\n _this.leave();\n }, _this.props.leavingTime);\n }\n });\n };\n Transition.prototype.receiveProps = function () {\n if (this.props.appear) {\n this.enter();\n }\n if (this.props.disappear) {\n this.leave();\n }\n };\n Transition.prototype.toggle = function () {\n return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0:\n this._show = !this._show;\n if (!this._show) return [3 /*break*/, 2];\n return [4 /*yield*/, this.enter()];\n case 1: return [2 /*return*/, _a.sent()];\n case 2: return [4 /*yield*/, this.leave()];\n case 3: return [2 /*return*/, _a.sent()];\n }\n });\n });\n };\n Transition.prototype.enter = function () {\n return __awaiter(this, void 0, void 0, function () {\n var _this = this;\n return __generator(this, function (_a) {\n return [2 /*return*/, new Promise(function (resolve) {\n var el = _this.children[0];\n if (el) {\n _this.fire('before-enter');\n el.classList.remove(_this.props.name + '-leave-active');\n el.classList.remove(_this.props.name + '-leave-to');\n el.classList.add(_this.props.name + '-enter');\n el.classList.add(_this.props.name + '-enter-active');\n _this.callback = function () {\n el.classList.remove(this.props.name + '-enter-active');\n this.fire('after-enter');\n this._show = true;\n resolve();\n }.bind(_this);\n _this.once('transitionend', _this.callback);\n _this.once('animationend', _this.callback);\n window.setTimeout(function () {\n el.classList.remove(this.props.name + '-enter');\n el.classList.add(this.props.name + '-enter-to');\n this.fire('enter');\n }.bind(_this), _this.props.delay);\n }\n })];\n });\n });\n };\n Transition.prototype.leave = function () {\n return __awaiter(this, void 0, void 0, function () {\n var _this = this;\n return __generator(this, function (_a) {\n return [2 /*return*/, new Promise(function (resolve) {\n var el = _this.children[0];\n if (el) {\n _this.fire('before-leave');\n el.classList.remove(_this.props.name + '-enter-active');\n el.classList.remove(_this.props.name + '-enter-to');\n el.classList.add(_this.props.name + '-leave');\n el.classList.add(_this.props.name + '-leave-active');\n _this.callback = function (e) {\n el.classList.remove(this.props.name + '-leave-active');\n this.fire('after-leave');\n this._show = false;\n if (this.props.autoRemove && this.parentNode) {\n this.parentNode.removeChild(this);\n }\n resolve();\n }.bind(_this);\n _this.once('transitionend', _this.callback);\n _this.once('animationend', _this.callback);\n window.setTimeout(function () {\n el.classList.remove(this.props.name + '-leave');\n el.classList.add(this.props.name + '-leave-to');\n this.fire('leave');\n }.bind(_this), _this.props.delay);\n }\n })];\n });\n });\n };\n Transition.prototype.once = function (name, callback) {\n var wrapCall = function () {\n this.removeEventListener(name, wrapCall);\n callback();\n }.bind(this);\n this.addEventListener(name, wrapCall);\n };\n Transition.prototype.render = function () {\n return;\n };\n Transition.propTypes = {\n name: String,\n leavingTime: Number,\n autoRemove: Boolean,\n appear: Boolean,\n disappear: Boolean,\n delay: Number\n };\n Transition.isLightDom = true;\n Transition.defaultProps = {\n name: 'o',\n delay: 0\n };\n Transition = __decorate([\n tag('o-transition')\n ], Transition);\n return Transition;\n}(WeElement));\n\nexport { Transition as default };\n//# sourceMappingURL=index.esm.js.map\n","import { tag, WeElement, h } from 'omi'\nimport * as css from './index.scss'\n\nimport '@omiu/transition'\n\ninterface Props {\n visible: boolean\n title: String\n width: String\n}\n\n\n@tag('o-dialog')\nexport default class Dialog extends WeElement {\n static css = css\n\n static defaultProps = {\n visible: false,\n width: '50%'\n }\n\n static propTypes = {\n visible: Boolean,\n title: String,\n width: String\n }\n\n\n open() {\n\n this.updateProps({\n visible: true\n })\n\n this.rootNode.childNodes[0].enter()\n this.rootNode.childNodes[1].enter()\n this.fire('open')\n }\n\n handleMaskClick = () => {\n this.fire('mask-click')\n }\n\n close = () => {\n this.rootNode.childNodes[0].leave()\n this.rootNode.childNodes[1].leave()\n this.fire('close')\n }\n\n onAfterLeave = () => {\n this.updateProps({ visible: false })\n }\n\n render(props) {\n return (\n\n\n props.visible &&
\n \n
\n\n
\n
\n {props.title}\n\n \n\n
\n \n
\n\n
\n \n
\n
\n
\n
\n\n \n
\n \n
\n\n )\n }\n}\n"],"names":["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AAC,IAAI,EAAC,MAAM;gBAC9B,WAAK,KAAK,EAAC,MAAM,EAAC,OAAO,EAAE,IAAI,CAAC,eAAe,GAAI,CACtC,CACX,EAEP;KACF;IAxEM,UAAG,GAAG,GAAG,CAAA;IAET,mBAAY,GAAG;QACpB,OAAO,EAAE,KAAK;QACd,KAAK,EAAE,KAAK;KACb,CAAA;IAEM,gBAAS,GAAG;QACjB,OAAO,EAAE,OAAO;QAChB,KAAK,EAAE,MAAM;QACb,KAAK,EAAE,MAAM;KACd,CAAA;IAZkB,MAAM;QAD1B,GAAG,CAAC,UAAU,CAAC;OACK,MAAM,CA0E1B;IAAD,aAAC;CAAA,CA1EmC,SAAS;;"} \ No newline at end of file diff --git a/components/dialog/src/index.js b/components/dialog/src/index.js index 79382784c..ea1b4411a 100644 --- a/components/dialog/src/index.js +++ b/components/dialog/src/index.js @@ -96,19 +96,20 @@ return /******/ (function(modules) { // webpackBootstrap /************************************************************************/ /******/ ({ -/***/ "./node_modules/_@omiu_transition@0.0.6@@omiu/transition/src/index.esm.js": -/*!********************************************************************************!*\ - !*** ./node_modules/_@omiu_transition@0.0.6@@omiu/transition/src/index.esm.js ***! - \********************************************************************************/ +/***/ "./node_modules/@omiu/transition/src/index.esm.js": +/*!********************************************************!*\ + !*** ./node_modules/@omiu/transition/src/index.esm.js ***! + \********************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); -/* WEBPACK VAR INJECTION */(function(global) {/* harmony import */ var omi__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! omi */ "omi"); +/* WEBPACK VAR INJECTION */(function(global) {/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return Transition; }); +/* harmony import */ var omi__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! omi */ "omi"); /* harmony import */ var omi__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(omi__WEBPACK_IMPORTED_MODULE_0__); /** - * @omiu/transition v0.0.7 http://omijs.org + * @omiu/transition v0.0.14 http://omijs.org * Front End Cross-Frameworks Framework. * By dntzhang https://github.com/dntzhang * Github: https://github.com/Tencent/omi @@ -117,40 +118,78 @@ __webpack_require__.r(__webpack_exports__); -/*! ***************************************************************************** -Copyright (c) Microsoft Corporation. All rights reserved. -Licensed under the Apache License, Version 2.0 (the "License"); you may not use -this file except in compliance with the License. You may obtain a copy of the -License at http://www.apache.org/licenses/LICENSE-2.0 - -THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED -WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE, -MERCHANTABLITY OR NON-INFRINGEMENT. - -See the Apache Version 2.0 License for specific language governing permissions -and limitations under the License. -***************************************************************************** */ -/* global Reflect, Promise */ - -var extendStatics = function(d, b) { - extendStatics = Object.setPrototypeOf || - ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || - function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; }; - return extendStatics(d, b); -}; - -function __extends(d, b) { - extendStatics(d, b); - function __() { this.constructor = d; } - d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); -} - -function __decorate(decorators, target, key, desc) { - var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; - if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); - else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; - return c > 3 && r && Object.defineProperty(target, key, r), r; +/*! ***************************************************************************** +Copyright (c) Microsoft Corporation. + +Permission to use, copy, modify, and/or distribute this software for any +purpose with or without fee is hereby granted. + +THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH +REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY +AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, +INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM +LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR +OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR +PERFORMANCE OF THIS SOFTWARE. +***************************************************************************** */ +/* global Reflect, Promise */ + +var extendStatics = function(d, b) { + extendStatics = Object.setPrototypeOf || + ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || + function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; }; + return extendStatics(d, b); +}; + +function __extends(d, b) { + extendStatics(d, b); + function __() { this.constructor = d; } + d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); +} + +function __decorate(decorators, target, key, desc) { + var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; + if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); + else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; + return c > 3 && r && Object.defineProperty(target, key, r), r; +} + +function __awaiter(thisArg, _arguments, P, generator) { + function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } + return new (P || (P = Promise))(function (resolve, reject) { + function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } + function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } + function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } + step((generator = generator.apply(thisArg, _arguments || [])).next()); + }); +} + +function __generator(thisArg, body) { + var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g; + return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g; + function verb(n) { return function (v) { return step([n, v]); }; } + function step(op) { + if (f) throw new TypeError("Generator is already executing."); + while (_) try { + if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t; + if (y = 0, t) op = [op[0] & 2, t.value]; + switch (op[0]) { + case 0: case 1: t = op; break; + case 4: _.label++; return { value: op[1], done: false }; + case 5: _.label++; y = op[1]; op = [0]; continue; + case 7: op = _.ops.pop(); _.trys.pop(); continue; + default: + if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; } + if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; } + if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; } + if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; } + if (t[2]) _.ops.pop(); + _.trys.pop(); continue; + } + op = body.call(thisArg, _); + } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; } + if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true }; + } } var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {}; @@ -232,59 +271,91 @@ var Transition = /** @class */ (function (_super) { } }); }; - Transition.prototype.toggle = function () { - this._show = !this._show; - if (this._show) + Transition.prototype.receiveProps = function () { + if (this.props.appear) { this.enter(); - else + } + if (this.props.disappear) { this.leave(); + } + }; + Transition.prototype.toggle = function () { + return __awaiter(this, void 0, void 0, function () { + return __generator(this, function (_a) { + switch (_a.label) { + case 0: + this._show = !this._show; + if (!this._show) return [3 /*break*/, 2]; + return [4 /*yield*/, this.enter()]; + case 1: return [2 /*return*/, _a.sent()]; + case 2: return [4 /*yield*/, this.leave()]; + case 3: return [2 /*return*/, _a.sent()]; + } + }); + }); }; Transition.prototype.enter = function () { - var el = this.children[0]; - if (el) { - this.fire('before-enter'); - el.classList.remove(this.props.name + '-leave-active'); - el.classList.remove(this.props.name + '-leave-to'); - el.classList.add(this.props.name + '-enter'); - el.classList.add(this.props.name + '-enter-active'); - this.callback = function () { - el.classList.remove(this.props.name + '-enter-active'); - this.fire('after-enter'); - this._show = true; - }.bind(this); - this.once('transitionend', this.callback); - this.once('animationend', this.callback); - window.setTimeout(function () { - el.classList.remove(this.props.name + '-enter'); - el.classList.add(this.props.name + '-enter-to'); - this.fire('enter'); - }.bind(this), 0); - } + return __awaiter(this, void 0, void 0, function () { + var _this = this; + return __generator(this, function (_a) { + return [2 /*return*/, new Promise(function (resolve) { + var el = _this.children[0]; + if (el) { + _this.fire('before-enter'); + el.classList.remove(_this.props.name + '-leave-active'); + el.classList.remove(_this.props.name + '-leave-to'); + el.classList.add(_this.props.name + '-enter'); + el.classList.add(_this.props.name + '-enter-active'); + _this.callback = function () { + el.classList.remove(this.props.name + '-enter-active'); + this.fire('after-enter'); + this._show = true; + resolve(); + }.bind(_this); + _this.once('transitionend', _this.callback); + _this.once('animationend', _this.callback); + window.setTimeout(function () { + el.classList.remove(this.props.name + '-enter'); + el.classList.add(this.props.name + '-enter-to'); + this.fire('enter'); + }.bind(_this), _this.props.delay); + } + })]; + }); + }); }; Transition.prototype.leave = function () { - var el = this.children[0]; - if (el) { - this.fire('before-leave'); - el.classList.remove(this.props.name + '-enter-active'); - el.classList.remove(this.props.name + '-enter-to'); - el.classList.add(this.props.name + '-leave'); - el.classList.add(this.props.name + '-leave-active'); - this.callback = function (e) { - el.classList.remove(this.props.name + '-leave-active'); - this.fire('after-leave'); - this._show = false; - if (this.props.autoRemove && this.parentNode) { - this.parentNode.removeChild(this); - } - }.bind(this); - this.once('transitionend', this.callback); - this.once('animationend', this.callback); - window.setTimeout(function () { - el.classList.remove(this.props.name + '-leave'); - el.classList.add(this.props.name + '-leave-to'); - this.fire('leave'); - }.bind(this), 0); - } + return __awaiter(this, void 0, void 0, function () { + var _this = this; + return __generator(this, function (_a) { + return [2 /*return*/, new Promise(function (resolve) { + var el = _this.children[0]; + if (el) { + _this.fire('before-leave'); + el.classList.remove(_this.props.name + '-enter-active'); + el.classList.remove(_this.props.name + '-enter-to'); + el.classList.add(_this.props.name + '-leave'); + el.classList.add(_this.props.name + '-leave-active'); + _this.callback = function (e) { + el.classList.remove(this.props.name + '-leave-active'); + this.fire('after-leave'); + this._show = false; + if (this.props.autoRemove && this.parentNode) { + this.parentNode.removeChild(this); + } + resolve(); + }.bind(_this); + _this.once('transitionend', _this.callback); + _this.once('animationend', _this.callback); + window.setTimeout(function () { + el.classList.remove(this.props.name + '-leave'); + el.classList.add(this.props.name + '-leave-to'); + this.fire('leave'); + }.bind(_this), _this.props.delay); + } + })]; + }); + }); }; Transition.prototype.once = function (name, callback) { var wrapCall = function () { @@ -300,11 +371,14 @@ var Transition = /** @class */ (function (_super) { name: String, leavingTime: Number, autoRemove: Boolean, - appear: Boolean + appear: Boolean, + disappear: Boolean, + delay: Number }; Transition.isLightDom = true; Transition.defaultProps = { - name: 'o' + name: 'o', + delay: 0 }; Transition = __decorate([ Object(omi__WEBPACK_IMPORTED_MODULE_0__["tag"])('o-transition') @@ -312,36 +386,36 @@ var Transition = /** @class */ (function (_super) { return Transition; }(omi__WEBPACK_IMPORTED_MODULE_0__["WeElement"])); -/* harmony default export */ __webpack_exports__["default"] = (Transition); + //# sourceMappingURL=index.esm.js.map -/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./../../../_webpack@4.43.0@webpack/buildin/global.js */ "./node_modules/_webpack@4.43.0@webpack/buildin/global.js"))) +/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./../../../webpack/buildin/global.js */ "./node_modules/webpack/buildin/global.js"))) /***/ }), -/***/ "./node_modules/_css-loader@1.0.1@css-loader/index.js!./node_modules/_resolve-url-loader@3.1.1@resolve-url-loader/index.js!./node_modules/_sass-loader@7.3.1@sass-loader/dist/cjs.js?!./src/index.scss": -/*!****************************************************************************************************************************************************************************************************!*\ - !*** ./node_modules/_css-loader@1.0.1@css-loader!./node_modules/_resolve-url-loader@3.1.1@resolve-url-loader!./node_modules/_sass-loader@7.3.1@sass-loader/dist/cjs.js??ref--4-3!./src/index.scss ***! - \****************************************************************************************************************************************************************************************************/ +/***/ "./node_modules/css-loader/index.js!./node_modules/resolve-url-loader/index.js!./node_modules/sass-loader/dist/cjs.js?!./src/index.scss": +/*!*************************************************************************************************************************************!*\ + !*** ./node_modules/css-loader!./node_modules/resolve-url-loader!./node_modules/sass-loader/dist/cjs.js??ref--4-3!./src/index.scss ***! + \*************************************************************************************************************************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { -exports = module.exports = __webpack_require__(/*! ../node_modules/_css-loader@1.0.1@css-loader/lib/css-base.js */ "./node_modules/_css-loader@1.0.1@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 // module -exports.push([module.i, ".mask {\n position: fixed;\n width: 100%;\n height: 100%;\n background-color: rgba(0, 0, 0, 0.4);\n z-index: 100;\n left: 0;\n top: 0; }\n\n.o-dialog {\n position: relative;\n margin: 0 auto 50px;\n background: #FFF;\n border-radius: 2px;\n -webkit-box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);\n box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);\n -webkit-box-sizing: border-box;\n box-sizing: border-box;\n width: 50%; }\n\n.o-dialog.is-fullscreen {\n width: 100%;\n margin-top: 0;\n margin-bottom: 0;\n height: 100%;\n overflow: auto; }\n\n.o-dialog__wrapper {\n position: fixed;\n top: 0;\n right: 0;\n bottom: 0;\n left: 0;\n overflow: auto;\n margin: 0; }\n\n.o-dialog__header {\n padding: 20px 20px 10px; }\n\n.o-dialog__headerbtn {\n position: absolute;\n top: 20px;\n right: 20px;\n padding: 0;\n background: 0 0;\n border: none;\n outline: 0;\n cursor: pointer;\n font-size: 16px; }\n\n.o-dialog__headerbtn .o-dialog__close {\n color: #909399; }\n\n.o-dialog__headerbtn:focus .o-dialog__close,\n.o-dialog__headerbtn:hover .o-dialog__close {\n color: #409EFF; }\n\n.o-dialog__title {\n line-height: 24px;\n font-size: 18px;\n color: #303133; }\n\n.o-dialog__body {\n padding: 30px 20px;\n color: #606266;\n font-size: 14px;\n word-break: break-all; }\n\n.o-dialog__footer {\n padding: 10px 20px 20px;\n text-align: right;\n -webkit-box-sizing: border-box;\n box-sizing: border-box; }\n\n.o-dialog--center {\n text-align: center; }\n\n.o-dialog--center .o-dialog__body {\n text-align: initial;\n padding: 25px 25px 30px; }\n\n.o-dialog--center .o-dialog__footer {\n text-align: inherit; }\n\n.dialog-fade-enter-active {\n -webkit-animation: dialog-fade-in .3s;\n animation: dialog-fade-in .3s; }\n\n.dialog-fade-leave-active {\n -webkit-animation: dialog-fade-out .3s;\n animation: dialog-fade-out .3s; }\n\n@-webkit-keyframes dialog-fade-in {\n 0% {\n -webkit-transform: translate3d(0, -20px, 0);\n transform: translate3d(0, -20px, 0);\n opacity: 0; }\n 100% {\n -webkit-transform: translate3d(0, 0, 0);\n transform: translate3d(0, 0, 0);\n opacity: 1; } }\n\n@keyframes dialog-fade-in {\n 0% {\n -webkit-transform: translate3d(0, -20px, 0);\n transform: translate3d(0, -20px, 0);\n opacity: 0; }\n 100% {\n -webkit-transform: translate3d(0, 0, 0);\n transform: translate3d(0, 0, 0);\n opacity: 1; } }\n\n@-webkit-keyframes dialog-fade-out {\n 0% {\n -webkit-transform: translate3d(0, 0, 0);\n transform: translate3d(0, 0, 0);\n opacity: 1; }\n 100% {\n -webkit-transform: translate3d(0, -20px, 0);\n transform: translate3d(0, -20px, 0);\n opacity: 0; } }\n\n@keyframes dialog-fade-out {\n 0% {\n -webkit-transform: translate3d(0, 0, 0);\n transform: translate3d(0, 0, 0);\n opacity: 1; }\n 100% {\n -webkit-transform: translate3d(0, -20px, 0);\n transform: translate3d(0, -20px, 0);\n opacity: 0; } }\n\n.mask-enter-active {\n -webkit-animation: mask-in .3s;\n animation: mask-in .3s; }\n\n.mask-leave-active {\n -webkit-animation: mask-out .3s;\n animation: mask-out .3s; }\n\n@-webkit-keyframes mask-in {\n 0% {\n opacity: 0; }\n 100% {\n opacity: 1; } }\n\n@keyframes mask-in {\n 0% {\n opacity: 0; }\n 100% {\n opacity: 1; } }\n\n@-webkit-keyframes mask-out {\n 0% {\n opacity: 1; }\n 100% {\n opacity: 0; } }\n\n@keyframes mask-out {\n 0% {\n opacity: 1; }\n 100% {\n opacity: 0; } }\n\n.content {\n z-index: 101; }\n", ""]); +exports.push([module.i, ".mask {\n position: fixed;\n width: 100%;\n height: 100%;\n background-color: rgba(0, 0, 0, 0.4);\n z-index: 100;\n left: 0;\n top: 0; }\n\n.o-dialog {\n position: relative;\n background: #FFF;\n border-radius: 2px;\n -webkit-box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);\n box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);\n -webkit-box-sizing: border-box;\n box-sizing: border-box;\n width: 50%;\n top: 50%;\n left: 50%;\n transform: translate(-50%, -50%); }\n\n.o-dialog.is-fullscreen {\n width: 100%;\n margin-top: 0;\n margin-bottom: 0;\n height: 100%;\n overflow: auto; }\n\n.o-dialog__wrapper {\n position: fixed;\n top: 0;\n right: 0;\n bottom: 0;\n left: 0;\n overflow: auto;\n margin: 0; }\n\n.o-dialog__header {\n padding: 20px 20px 10px; }\n\n.o-dialog__headerbtn {\n position: absolute;\n top: 20px;\n right: 20px;\n padding: 0;\n background: 0 0;\n border: none;\n outline: 0;\n cursor: pointer;\n font-size: 16px; }\n\n.o-dialog__headerbtn .o-dialog__close {\n color: #909399; }\n\n.o-dialog__headerbtn:focus .o-dialog__close,\n.o-dialog__headerbtn:hover .o-dialog__close {\n color: #409EFF; }\n\n.o-dialog__title {\n line-height: 24px;\n font-size: 18px;\n color: #303133; }\n\n.o-dialog__body {\n padding: 30px 20px;\n color: #606266;\n font-size: 14px;\n word-break: break-all; }\n\n.o-dialog__footer {\n padding: 10px 20px 20px;\n text-align: right;\n -webkit-box-sizing: border-box;\n box-sizing: border-box; }\n\n.o-dialog--center {\n text-align: center; }\n\n.o-dialog--center .o-dialog__body {\n text-align: initial;\n padding: 25px 25px 30px; }\n\n.o-dialog--center .o-dialog__footer {\n text-align: inherit; }\n\n.dialog-zoom-enter-active {\n -webkit-animation: dialog-zoom-in .3s;\n animation: dialog-zoom-in .3s; }\n\n.dialog-zoom-leave-active {\n -webkit-animation: dialog-zoom-out .3s;\n animation: dialog-zoom-out .3s; }\n\n@-webkit-keyframes dialog-zoom-in {\n 0% {\n -webkit-transform: scale(0, 0);\n transform: scale(0, 0);\n opacity: 0; }\n 100% {\n -webkit-transform: scale(1, 1);\n transform: scale(1, 1);\n opacity: 1; } }\n\n@keyframes dialog-zoom-in {\n 0% {\n -webkit-transform: scale(0, 0);\n transform: scale(0, 0);\n opacity: 0; }\n 100% {\n -webkit-transform: scale(1, 1);\n transform: scale(1, 1);\n opacity: 1; } }\n\n@-webkit-keyframes dialog-zoom-out {\n 0% {\n -webkit-transform: scale(1, 1);\n transform: scale(1, 1);\n opacity: 1; }\n 100% {\n -webkit-transform: scale(0, 0);\n transform: scale(0, 0);\n opacity: 0; } }\n\n@keyframes dialog-zoom-out {\n 0% {\n -webkit-transform: scale(1, 1);\n transform: scale(1, 1);\n opacity: 1; }\n 100% {\n -webkit-transform: scale(0, 0);\n transform: scale(0, 0);\n opacity: 0; } }\n\n.mask-enter-active {\n -webkit-animation: mask-in .3s;\n animation: mask-in .3s; }\n\n.mask-leave-active {\n -webkit-animation: mask-out .3s;\n animation: mask-out .3s; }\n\n@-webkit-keyframes mask-in {\n 0% {\n opacity: 0; }\n 100% {\n opacity: 1; } }\n\n@keyframes mask-in {\n 0% {\n opacity: 0; }\n 100% {\n opacity: 1; } }\n\n@-webkit-keyframes mask-out {\n 0% {\n opacity: 1; }\n 100% {\n opacity: 0; } }\n\n@keyframes mask-out {\n 0% {\n opacity: 1; }\n 100% {\n opacity: 0; } }\n\n.content {\n z-index: 101; }\n", ""]); // exports /***/ }), -/***/ "./node_modules/_css-loader@1.0.1@css-loader/lib/css-base.js": -/*!*******************************************************************!*\ - !*** ./node_modules/_css-loader@1.0.1@css-loader/lib/css-base.js ***! - \*******************************************************************/ +/***/ "./node_modules/css-loader/lib/css-base.js": +/*!*************************************************!*\ + !*** ./node_modules/css-loader/lib/css-base.js ***! + \*************************************************/ /*! no static exports found */ /***/ (function(module, exports) { @@ -425,7 +499,7 @@ function toComment(sourceMap) { /***/ }), -/***/ "./node_modules/_webpack@4.43.0@webpack/buildin/global.js": +/***/ "./node_modules/webpack/buildin/global.js": /*!***********************************!*\ !*** (webpack)/buildin/global.js ***! \***********************************/ @@ -464,7 +538,7 @@ module.exports = g; /***/ (function(module, exports, __webpack_require__) { - var result = __webpack_require__(/*! !../node_modules/_css-loader@1.0.1@css-loader!../node_modules/_resolve-url-loader@3.1.1@resolve-url-loader!../node_modules/_sass-loader@7.3.1@sass-loader/dist/cjs.js??ref--4-3!./index.scss */ "./node_modules/_css-loader@1.0.1@css-loader/index.js!./node_modules/_resolve-url-loader@3.1.1@resolve-url-loader/index.js!./node_modules/_sass-loader@7.3.1@sass-loader/dist/cjs.js?!./src/index.scss"); + var result = __webpack_require__(/*! !../node_modules/css-loader!../node_modules/resolve-url-loader!../node_modules/sass-loader/dist/cjs.js??ref--4-3!./index.scss */ "./node_modules/css-loader/index.js!./node_modules/resolve-url-loader/index.js!./node_modules/sass-loader/dist/cjs.js?!./src/index.scss"); if (typeof result === "string") { module.exports = result; @@ -506,7 +580,7 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key, Object.defineProperty(exports, "__esModule", { value: true }); var omi_1 = __webpack_require__(/*! omi */ "omi"); var css = __webpack_require__(/*! ./index.scss */ "./src/index.scss"); -__webpack_require__(/*! @omiu/transition */ "./node_modules/_@omiu_transition@0.0.6@@omiu/transition/src/index.esm.js"); +__webpack_require__(/*! @omiu/transition */ "./node_modules/@omiu/transition/src/index.esm.js"); var Dialog = /** @class */ (function (_super) { __extends(Dialog, _super); function Dialog() { @@ -534,9 +608,9 @@ var Dialog = /** @class */ (function (_super) { }; Dialog.prototype.render = function (props) { return (props.visible && omi_1.h("div", { class: "o-dialog__wrapper" }, - omi_1.h("o-transition", { "onafter-leave": this.onAfterLeave, appear: true, name: "dialog-fade" }, + omi_1.h("o-transition", { "onafter-leave": this.onAfterLeave, appear: true, name: "dialog-zoom" }, omi_1.h("div", { class: "o-dialog__wrapper content" }, - omi_1.h("div", { role: "dialog", "aria-modal": "true", "aria-label": props.title, class: "o-dialog", style: { width: props.width, marginTop: "15vh" } }, + omi_1.h("div", { role: "dialog", "aria-modal": "true", "aria-label": props.title, class: "o-dialog", style: { width: props.width } }, omi_1.h("div", { class: "o-dialog__header" }, omi_1.h("span", { class: "o-dialog__title" }, props.title), omi_1.h("button", { type: "button", "aria-label": "Close", class: "o-dialog__headerbtn" }, diff --git a/components/dialog/src/index.js.map b/components/dialog/src/index.js.map index 6418947a1..251fa3898 100644 --- a/components/dialog/src/index.js.map +++ b/components/dialog/src/index.js.map @@ -1 +1 @@ -{"version":3,"sources":["webpack://ODialog/webpack/universalModuleDefinition","webpack://ODialog/webpack/bootstrap","webpack://ODialog/./node_modules/_@omiu_transition@0.0.6@@omiu/transition/src/index.esm.js","webpack://ODialog/./src/index.scss","webpack://ODialog/./node_modules/_css-loader@1.0.1@css-loader/lib/css-base.js","webpack://ODialog/(webpack)/buildin/global.js","webpack://ODialog/./src/index.scss?56db","webpack://ODialog/./src/index.tsx","webpack://ODialog/external {\"commonjs\":\"omi\",\"commonjs2\":\"omi\",\"amd\":\"omi\",\"root\":\"Omi\"}"],"names":[],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC;AACD,O;QCVA;QACA;;QAEA;QACA;;QAEA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;;QAEA;QACA;;QAEA;QACA;;QAEA;QACA;QACA;;;QAGA;QACA;;QAEA;QACA;;QAEA;QACA;QACA;QACA,0CAA0C,gCAAgC;QAC1E;QACA;;QAEA;QACA;QACA;QACA,wDAAwD,kBAAkB;QAC1E;QACA,iDAAiD,cAAc;QAC/D;;QAEA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA,yCAAyC,iCAAiC;QAC1E,gHAAgH,mBAAmB,EAAE;QACrI;QACA;;QAEA;QACA;QACA;QACA,2BAA2B,0BAA0B,EAAE;QACvD,iCAAiC,eAAe;QAChD;QACA;QACA;;QAEA;QACA,sDAAsD,+DAA+D;;QAErH;QACA;;;QAGA;QACA;;;;;;;;;;;;;AClFA;AAAA;AAAA;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEqC;;AAErC;AACA;AACA,+DAA+D;AAC/D;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA,UAAU,gBAAgB,sCAAsC,iBAAiB,EAAE;AACnF,yBAAyB,uDAAuD;AAChF;AACA;;AAEA;AACA;AACA,mBAAmB,sBAAsB;AACzC;AACA;;AAEA;AACA;AACA;AACA,4CAA4C,QAAQ;AACpD;AACA;;AAEA;;AAEA;AACA,kBAAkB,YAAY,EAAE;AAChC;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC;;AAED;AACA;AACA;AACA;AACA;AACA,KAAK;AACL,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;AACA;AACA;AACA;AACA,CAAC;AACD,CAAC;;AAED;AACA;AACA;AACA;AACA,CAAC;;AAED;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,iBAAiB;AACjB;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa;AACb;AACA;AACA;AACA;AACA;AACA;AACA,aAAa;AACb;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa;AACb;AACA;AACA;AACA;AACA;AACA;AACA,aAAa;AACb;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,QAAQ,+CAAG;AACX;AACA;AACA,CAAC,CAAC,6CAAS;;AAEI,yEAAU,EAAC;AAC1B;;;;;;;;;;;;;AC9MA,2BAA2B,mBAAO,CAAC,iIAA8D;AACjG;;;AAGA;AACA,cAAc,QAAS,UAAU,oBAAoB,gBAAgB,iBAAiB,yCAAyC,iBAAiB,YAAY,WAAW,EAAE,eAAe,uBAAuB,wBAAwB,qBAAqB,uBAAuB,qDAAqD,6CAA6C,mCAAmC,2BAA2B,eAAe,EAAE,6BAA6B,gBAAgB,kBAAkB,qBAAqB,iBAAiB,mBAAmB,EAAE,wBAAwB,oBAAoB,WAAW,aAAa,cAAc,YAAY,mBAAmB,cAAc,EAAE,uBAAuB,4BAA4B,EAAE,0BAA0B,uBAAuB,cAAc,gBAAgB,eAAe,oBAAoB,iBAAiB,eAAe,oBAAoB,oBAAoB,EAAE,2CAA2C,mBAAmB,EAAE,+FAA+F,mBAAmB,EAAE,sBAAsB,sBAAsB,oBAAoB,mBAAmB,EAAE,qBAAqB,uBAAuB,mBAAmB,oBAAoB,0BAA0B,EAAE,uBAAuB,4BAA4B,s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AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA,oDAAoD,cAAc;;AAElE;AACA;;;;;;;;;;;;AC3EA;;AAEA;AACA;AACA;AACA,CAAC;;AAED;AACA;AACA;AACA,CAAC;AACD;AACA;AACA;;AAEA;AACA;AACA,4CAA4C;;AAE5C;;;;;;;;;;;;;AClBA,qBAAqB,mBAAO,CAAC,2YAAiN;;AAE9O;AACA;AACA,SAAS;AACT;AACA;;;;;;;;;;;;;ACPa;AACb;AACA;AACA;AACA,cAAc,gBAAgB,sCAAsC,iBAAiB,EAAE;AACvF,6BAA6B,uDAAuD;AACpF;AACA;AACA;AACA;AACA,uBAAuB,sBAAsB;AAC7C;AACA;AACA,CAAC;AACD;AACA;AACA;AACA,4CAA4C,QAAQ;AACpD;AACA;AACA,8CAA8C,cAAc;AAC5D,YAAY,mBAAO,CAAC,gBAAK;AACzB,UAAU,mBAAO,CAAC,sCAAc;AAChC,mBAAO,CAAC,kGAAkB;AAC1B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,+BAA+B,iBAAiB;AAChD;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA,iDAAiD,6BAA6B;AAC9E,qCAAqC,wEAAwE;AAC7G,gCAAgC,qCAAqC;AACrE,oCAAoC,6FAA6F,wCAAwC,EAAE;AAC3K,wCAAwC,4BAA4B;AACpE,6CAA6C,2BAA2B;AACxE,+CAA+C,sEAAsE;AACrH,gDAAgD,wLAAwL;AACxO,qDAAqD,6GAA6G;AAClK,wCAAwC,0BAA0B;AAClE;AACA,wCAAwC,4BAA4B;AACpE,6CAA6C,iBAAiB;AAC9D,qCAAqC,6BAA6B;AAClE,gCAAgC,+CAA+C;AAC/E;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC;AACD;;;;;;;;;;;;ACjFA,iD","file":"index.js","sourcesContent":["(function webpackUniversalModuleDefinition(root, factory) {\n\tif(typeof exports === 'object' && typeof module === 'object')\n\t\tmodule.exports = factory(require(\"omi\"));\n\telse if(typeof define === 'function' && define.amd)\n\t\tdefine([\"omi\"], factory);\n\telse if(typeof exports === 'object')\n\t\texports[\"ODialog\"] = factory(require(\"omi\"));\n\telse\n\t\troot[\"ODialog\"] = factory(root[\"Omi\"]);\n})(this, function(__WEBPACK_EXTERNAL_MODULE_omi__) {\nreturn "," \t// The module cache\n \tvar installedModules = {};\n\n \t// The require function\n \tfunction __webpack_require__(moduleId) {\n\n \t\t// Check if module is in cache\n \t\tif(installedModules[moduleId]) {\n \t\t\treturn installedModules[moduleId].exports;\n \t\t}\n \t\t// Create a new module (and put it into the cache)\n \t\tvar module = installedModules[moduleId] = {\n \t\t\ti: moduleId,\n \t\t\tl: false,\n \t\t\texports: {}\n \t\t};\n\n \t\t// Execute the module function\n \t\tmodules[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n\n \t\t// Flag the module as loaded\n \t\tmodule.l = true;\n\n \t\t// Return the exports of the module\n \t\treturn module.exports;\n \t}\n\n\n \t// expose the modules object (__webpack_modules__)\n \t__webpack_require__.m = modules;\n\n \t// expose the module cache\n \t__webpack_require__.c = installedModules;\n\n \t// define getter function for harmony exports\n \t__webpack_require__.d = function(exports, name, getter) {\n \t\tif(!__webpack_require__.o(exports, name)) {\n \t\t\tObject.defineProperty(exports, name, { enumerable: true, get: getter });\n \t\t}\n \t};\n\n \t// define __esModule on exports\n \t__webpack_require__.r = function(exports) {\n \t\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n \t\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n \t\t}\n \t\tObject.defineProperty(exports, '__esModule', { value: true });\n \t};\n\n \t// create a fake namespace object\n \t// mode & 1: value is a module id, require it\n \t// mode & 2: merge all properties of value into the ns\n \t// mode & 4: return value when already ns object\n \t// mode & 8|1: behave like require\n \t__webpack_require__.t = function(value, mode) {\n \t\tif(mode & 1) value = __webpack_require__(value);\n \t\tif(mode & 8) return value;\n \t\tif((mode & 4) && typeof value === 'object' && value && value.__esModule) return value;\n \t\tvar ns = Object.create(null);\n \t\t__webpack_require__.r(ns);\n \t\tObject.defineProperty(ns, 'default', { enumerable: true, value: value });\n \t\tif(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key));\n \t\treturn ns;\n \t};\n\n \t// getDefaultExport function for compatibility with non-harmony modules\n \t__webpack_require__.n = function(module) {\n \t\tvar getter = module && module.__esModule ?\n \t\t\tfunction getDefault() { return module['default']; } :\n \t\t\tfunction getModuleExports() { return module; };\n \t\t__webpack_require__.d(getter, 'a', getter);\n \t\treturn getter;\n \t};\n\n \t// Object.prototype.hasOwnProperty.call\n \t__webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };\n\n \t// __webpack_public_path__\n \t__webpack_require__.p = \"\";\n\n\n \t// Load entry module and return exports\n \treturn __webpack_require__(__webpack_require__.s = \"./src/index.tsx\");\n","/**\n * @omiu/transition v0.0.7 http://omijs.org\n * Front End Cross-Frameworks Framework.\n * By dntzhang https://github.com/dntzhang\n * Github: https://github.com/Tencent/omi\n * MIT Licensed.\n */\n\nimport { tag, WeElement } from 'omi';\n\n/*! *****************************************************************************\r\nCopyright (c) Microsoft Corporation. All rights reserved.\r\nLicensed under the Apache License, Version 2.0 (the \"License\"); you may not use\r\nthis file except in compliance with the License. You may obtain a copy of the\r\nLicense at http://www.apache.org/licenses/LICENSE-2.0\r\n\r\nTHIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\r\nKIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED\r\nWARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,\r\nMERCHANTABLITY OR NON-INFRINGEMENT.\r\n\r\nSee the Apache Version 2.0 License for specific language governing permissions\r\nand limitations under the License.\r\n***************************************************************************** */\r\n/* global Reflect, Promise */\r\n\r\nvar extendStatics = function(d, b) {\r\n extendStatics = Object.setPrototypeOf ||\r\n ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\r\n function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };\r\n return extendStatics(d, b);\r\n};\r\n\r\nfunction __extends(d, b) {\r\n extendStatics(d, b);\r\n function __() { this.constructor = d; }\r\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\r\n}\r\n\r\nfunction __decorate(decorators, target, key, desc) {\r\n var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;\r\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);\r\n else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\r\n return c > 3 && r && Object.defineProperty(target, key, r), r;\r\n}\n\nvar commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};\n\nfunction createCommonjsModule(fn, module) {\n\treturn module = { exports: {} }, fn(module, module.exports), module.exports;\n}\n\nvar _dready_0_0_1_dready = createCommonjsModule(function (module, exports) {\n// if the module has no dependencies, the above pattern can be simplified to\n(function (root, factory) {\n {\n // Node. Does not work with strict CommonJS, but\n // only CommonJS-like environments that support module.exports,\n // like Node.\n module.exports = factory();\n }\n}(commonjsGlobal, function () {\n\n const readyCallbacks = [];\n document.addEventListener('DOMContentLoaded', () => {\n domReady.done = true;\n readyCallbacks.forEach(callback => {\n callback();\n });\n });\n\n function domReady(callback) {\n if (domReady.done) {\n callback();\n return\n }\n readyCallbacks.push(callback);\n }\n\n domReady.done = false;\n\n\n // Just return a value to define the module export.\n // This example returns an object, but the module\n // can return a function as the exported value.\n return domReady\n}));\n});\n\nvar _domReady = /*#__PURE__*/Object.freeze({\n __proto__: null,\n 'default': _dready_0_0_1_dready,\n __moduleExports: _dready_0_0_1_dready\n});\n\n/**\n * o-transition element based on vue-transition\n * Tom Fales (@enlightenmentor)\n * Licensed under the MIT License\n * https://github.com/enlightenmentor/vue-transition/blob/master/LICENSE\n *\n * modified by dntzhang\n *\n */\nvar domReady = _dready_0_0_1_dready || _domReady;\nvar Transition = /** @class */ (function (_super) {\n __extends(Transition, _super);\n function Transition() {\n var _this = _super !== null && _super.apply(this, arguments) || this;\n _this._show = true;\n return _this;\n }\n Transition.prototype.installed = function () {\n var _this = this;\n domReady(function () {\n if (_this.props.appear) {\n _this.enter();\n }\n if (_this.props.leavingTime) {\n setTimeout(function () {\n _this.leave();\n }, _this.props.leavingTime);\n }\n });\n };\n Transition.prototype.toggle = function () {\n this._show = !this._show;\n if (this._show)\n this.enter();\n else\n this.leave();\n };\n Transition.prototype.enter = function () {\n var el = this.children[0];\n if (el) {\n this.fire('before-enter');\n el.classList.remove(this.props.name + '-leave-active');\n el.classList.remove(this.props.name + '-leave-to');\n el.classList.add(this.props.name + '-enter');\n el.classList.add(this.props.name + '-enter-active');\n this.callback = function () {\n el.classList.remove(this.props.name + '-enter-active');\n this.fire('after-enter');\n this._show = true;\n }.bind(this);\n this.once('transitionend', this.callback);\n this.once('animationend', this.callback);\n window.setTimeout(function () {\n el.classList.remove(this.props.name + '-enter');\n el.classList.add(this.props.name + '-enter-to');\n this.fire('enter');\n }.bind(this), 0);\n }\n };\n Transition.prototype.leave = function () {\n var el = this.children[0];\n if (el) {\n this.fire('before-leave');\n el.classList.remove(this.props.name + '-enter-active');\n el.classList.remove(this.props.name + '-enter-to');\n el.classList.add(this.props.name + '-leave');\n el.classList.add(this.props.name + '-leave-active');\n this.callback = function (e) {\n el.classList.remove(this.props.name + '-leave-active');\n this.fire('after-leave');\n this._show = false;\n if (this.props.autoRemove && this.parentNode) {\n this.parentNode.removeChild(this);\n }\n }.bind(this);\n this.once('transitionend', this.callback);\n this.once('animationend', this.callback);\n window.setTimeout(function () {\n el.classList.remove(this.props.name + '-leave');\n el.classList.add(this.props.name + '-leave-to');\n this.fire('leave');\n }.bind(this), 0);\n }\n };\n Transition.prototype.once = function (name, callback) {\n var wrapCall = function () {\n this.removeEventListener(name, wrapCall);\n callback();\n }.bind(this);\n this.addEventListener(name, wrapCall);\n };\n Transition.prototype.render = function () {\n return;\n };\n Transition.propTypes = {\n name: String,\n leavingTime: Number,\n autoRemove: Boolean,\n appear: Boolean\n };\n Transition.isLightDom = true;\n Transition.defaultProps = {\n name: 'o'\n };\n Transition = __decorate([\n tag('o-transition')\n ], Transition);\n return Transition;\n}(WeElement));\n\nexport default Transition;\n//# sourceMappingURL=index.esm.js.map\n","exports = module.exports = require(\"../node_modules/_css-loader@1.0.1@css-loader/lib/css-base.js\")(false);\n// imports\n\n\n// module\nexports.push([module.id, \".mask {\\n position: fixed;\\n width: 100%;\\n height: 100%;\\n background-color: rgba(0, 0, 0, 0.4);\\n z-index: 100;\\n left: 0;\\n top: 0; }\\n\\n.o-dialog {\\n position: relative;\\n margin: 0 auto 50px;\\n background: #FFF;\\n border-radius: 2px;\\n -webkit-box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);\\n box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);\\n -webkit-box-sizing: border-box;\\n box-sizing: border-box;\\n width: 50%; }\\n\\n.o-dialog.is-fullscreen {\\n width: 100%;\\n margin-top: 0;\\n margin-bottom: 0;\\n height: 100%;\\n overflow: auto; }\\n\\n.o-dialog__wrapper {\\n position: fixed;\\n top: 0;\\n right: 0;\\n bottom: 0;\\n left: 0;\\n overflow: auto;\\n margin: 0; }\\n\\n.o-dialog__header {\\n padding: 20px 20px 10px; }\\n\\n.o-dialog__headerbtn {\\n position: absolute;\\n top: 20px;\\n right: 20px;\\n padding: 0;\\n background: 0 0;\\n border: none;\\n outline: 0;\\n cursor: pointer;\\n font-size: 16px; }\\n\\n.o-dialog__headerbtn .o-dialog__close {\\n color: #909399; }\\n\\n.o-dialog__headerbtn:focus .o-dialog__close,\\n.o-dialog__headerbtn:hover .o-dialog__close {\\n color: #409EFF; }\\n\\n.o-dialog__title {\\n line-height: 24px;\\n font-size: 18px;\\n color: #303133; }\\n\\n.o-dialog__body {\\n padding: 30px 20px;\\n color: #606266;\\n font-size: 14px;\\n word-break: break-all; }\\n\\n.o-dialog__footer {\\n padding: 10px 20px 20px;\\n text-align: right;\\n -webkit-box-sizing: border-box;\\n box-sizing: border-box; }\\n\\n.o-dialog--center {\\n text-align: center; }\\n\\n.o-dialog--center .o-dialog__body {\\n text-align: initial;\\n padding: 25px 25px 30px; }\\n\\n.o-dialog--center .o-dialog__footer {\\n text-align: inherit; }\\n\\n.dialog-fade-enter-active {\\n -webkit-animation: dialog-fade-in .3s;\\n animation: dialog-fade-in .3s; }\\n\\n.dialog-fade-leave-active {\\n -webkit-animation: dialog-fade-out .3s;\\n animation: dialog-fade-out .3s; }\\n\\n@-webkit-keyframes dialog-fade-in {\\n 0% {\\n -webkit-transform: translate3d(0, -20px, 0);\\n transform: translate3d(0, -20px, 0);\\n opacity: 0; }\\n 100% {\\n -webkit-transform: translate3d(0, 0, 0);\\n transform: translate3d(0, 0, 0);\\n opacity: 1; } }\\n\\n@keyframes dialog-fade-in {\\n 0% {\\n -webkit-transform: translate3d(0, -20px, 0);\\n transform: translate3d(0, -20px, 0);\\n opacity: 0; }\\n 100% {\\n -webkit-transform: translate3d(0, 0, 0);\\n transform: translate3d(0, 0, 0);\\n opacity: 1; } }\\n\\n@-webkit-keyframes dialog-fade-out {\\n 0% {\\n -webkit-transform: translate3d(0, 0, 0);\\n transform: translate3d(0, 0, 0);\\n opacity: 1; }\\n 100% {\\n -webkit-transform: translate3d(0, -20px, 0);\\n transform: translate3d(0, -20px, 0);\\n opacity: 0; } }\\n\\n@keyframes dialog-fade-out {\\n 0% {\\n -webkit-transform: translate3d(0, 0, 0);\\n transform: translate3d(0, 0, 0);\\n opacity: 1; }\\n 100% {\\n -webkit-transform: translate3d(0, -20px, 0);\\n transform: translate3d(0, -20px, 0);\\n opacity: 0; } }\\n\\n.mask-enter-active {\\n -webkit-animation: mask-in .3s;\\n animation: mask-in .3s; }\\n\\n.mask-leave-active {\\n -webkit-animation: mask-out .3s;\\n animation: mask-out .3s; }\\n\\n@-webkit-keyframes mask-in {\\n 0% {\\n opacity: 0; }\\n 100% {\\n opacity: 1; } }\\n\\n@keyframes mask-in {\\n 0% {\\n opacity: 0; }\\n 100% {\\n opacity: 1; } }\\n\\n@-webkit-keyframes mask-out {\\n 0% {\\n opacity: 1; }\\n 100% {\\n opacity: 0; } }\\n\\n@keyframes mask-out {\\n 0% {\\n opacity: 1; }\\n 100% {\\n opacity: 0; } }\\n\\n.content {\\n z-index: 101; }\\n\", \"\"]);\n\n// exports\n","/*\n\tMIT License http://www.opensource.org/licenses/mit-license.php\n\tAuthor Tobias Koppers @sokra\n*/\n// css base code, injected by the css-loader\nmodule.exports = function(useSourceMap) {\n\tvar list = [];\n\n\t// return the list of modules as css string\n\tlist.toString = function toString() {\n\t\treturn this.map(function (item) {\n\t\t\tvar content = cssWithMappingToString(item, useSourceMap);\n\t\t\tif(item[2]) {\n\t\t\t\treturn \"@media \" + item[2] + \"{\" + content + \"}\";\n\t\t\t} else {\n\t\t\t\treturn content;\n\t\t\t}\n\t\t}).join(\"\");\n\t};\n\n\t// import a list of modules into the list\n\tlist.i = function(modules, mediaQuery) {\n\t\tif(typeof modules === \"string\")\n\t\t\tmodules = [[null, modules, \"\"]];\n\t\tvar alreadyImportedModules = {};\n\t\tfor(var i = 0; i < this.length; i++) {\n\t\t\tvar id = this[i][0];\n\t\t\tif(typeof id === \"number\")\n\t\t\t\talreadyImportedModules[id] = true;\n\t\t}\n\t\tfor(i = 0; i < modules.length; i++) {\n\t\t\tvar item = modules[i];\n\t\t\t// skip already imported module\n\t\t\t// this implementation is not 100% perfect for weird media query combinations\n\t\t\t// when a module is imported multiple times with different media queries.\n\t\t\t// I hope this will never occur (Hey this way we have smaller bundles)\n\t\t\tif(typeof item[0] !== \"number\" || !alreadyImportedModules[item[0]]) {\n\t\t\t\tif(mediaQuery && !item[2]) {\n\t\t\t\t\titem[2] = mediaQuery;\n\t\t\t\t} else if(mediaQuery) {\n\t\t\t\t\titem[2] = \"(\" + item[2] + \") and (\" + mediaQuery + \")\";\n\t\t\t\t}\n\t\t\t\tlist.push(item);\n\t\t\t}\n\t\t}\n\t};\n\treturn list;\n};\n\nfunction cssWithMappingToString(item, useSourceMap) {\n\tvar content = item[1] || '';\n\tvar cssMapping = item[3];\n\tif (!cssMapping) {\n\t\treturn content;\n\t}\n\n\tif (useSourceMap && typeof btoa === 'function') {\n\t\tvar sourceMapping = toComment(cssMapping);\n\t\tvar sourceURLs = cssMapping.sources.map(function (source) {\n\t\t\treturn '/*# sourceURL=' + cssMapping.sourceRoot + source + ' */'\n\t\t});\n\n\t\treturn [content].concat(sourceURLs).concat([sourceMapping]).join('\\n');\n\t}\n\n\treturn [content].join('\\n');\n}\n\n// Adapted from convert-source-map (MIT)\nfunction toComment(sourceMap) {\n\t// eslint-disable-next-line no-undef\n\tvar base64 = btoa(unescape(encodeURIComponent(JSON.stringify(sourceMap))));\n\tvar data = 'sourceMappingURL=data:application/json;charset=utf-8;base64,' + base64;\n\n\treturn '/*# ' + data + ' */';\n}\n","var g;\n\n// This works in non-strict mode\ng = (function() {\n\treturn this;\n})();\n\ntry {\n\t// This works if eval is allowed (see CSP)\n\tg = g || new Function(\"return this\")();\n} catch (e) {\n\t// This works if the window reference is available\n\tif (typeof window === \"object\") g = window;\n}\n\n// g can still be undefined, but nothing to do about it...\n// We return undefined, instead of nothing here, so it's\n// easier to handle this case. if(!global) { ...}\n\nmodule.exports = g;\n","\n var result = require(\"!!../node_modules/_css-loader@1.0.1@css-loader/index.js!../node_modules/_resolve-url-loader@3.1.1@resolve-url-loader/index.js!../node_modules/_sass-loader@7.3.1@sass-loader/dist/cjs.js??ref--4-3!./index.scss\");\n\n if (typeof result === \"string\") {\n module.exports = result;\n } else {\n module.exports = result.toString();\n }\n ","\"use strict\";\nvar __extends = (this && this.__extends) || (function () {\n var extendStatics = function (d, b) {\n extendStatics = Object.setPrototypeOf ||\n ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\n function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };\n return extendStatics(d, b);\n };\n return function (d, b) {\n extendStatics(d, b);\n function __() { this.constructor = d; }\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n };\n})();\nvar __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {\n var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);\n else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n return c > 3 && r && Object.defineProperty(target, key, r), r;\n};\nObject.defineProperty(exports, \"__esModule\", { value: true });\nvar omi_1 = require(\"omi\");\nvar css = require(\"./index.scss\");\nrequire(\"@omiu/transition\");\nvar Dialog = /** @class */ (function (_super) {\n __extends(Dialog, _super);\n function Dialog() {\n var _this = _super !== null && _super.apply(this, arguments) || this;\n _this.handleMaskClick = function () {\n _this.fire('mask-click');\n };\n _this.close = function () {\n _this.rootNode.childNodes[0].leave();\n _this.rootNode.childNodes[1].leave();\n _this.fire('close');\n };\n _this.onAfterLeave = function () {\n _this.updateProps({ visible: false });\n };\n return _this;\n }\n Dialog.prototype.open = function () {\n this.updateProps({\n visible: true\n });\n this.rootNode.childNodes[0].enter();\n this.rootNode.childNodes[1].enter();\n this.fire('open');\n };\n Dialog.prototype.render = function (props) {\n return (props.visible && omi_1.h(\"div\", { class: \"o-dialog__wrapper\" },\n omi_1.h(\"o-transition\", { \"onafter-leave\": this.onAfterLeave, appear: true, name: \"dialog-fade\" },\n omi_1.h(\"div\", { class: \"o-dialog__wrapper content\" },\n omi_1.h(\"div\", { role: \"dialog\", \"aria-modal\": \"true\", \"aria-label\": props.title, class: \"o-dialog\", style: { width: props.width, marginTop: \"15vh\" } },\n omi_1.h(\"div\", { class: \"o-dialog__header\" },\n omi_1.h(\"span\", { class: \"o-dialog__title\" }, props.title),\n omi_1.h(\"button\", { type: \"button\", \"aria-label\": \"Close\", class: \"o-dialog__headerbtn\" },\n omi_1.h(\"svg\", { onClick: this.close, class: \"o-dialog__close o-icon o-icon-close\", fill: \"currentColor\", width: \"1em\", height: \"1em\", focusable: \"false\", viewBox: \"0 0 24 24\", \"aria-hidden\": \"true\" },\n omi_1.h(\"path\", { d: \"M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z\" })))),\n omi_1.h(\"div\", { class: \"o-dialog__body\" },\n omi_1.h(\"slot\", null)),\n omi_1.h(\"div\", { class: \"o-dialog__footer\" },\n omi_1.h(\"slot\", { name: \"footer\" }))))),\n omi_1.h(\"o-transition\", { appear: true, name: \"mask\" },\n omi_1.h(\"div\", { class: \"mask\", onClick: this.handleMaskClick }))));\n };\n Dialog.css = css;\n Dialog.defaultProps = {\n visible: false,\n width: '50%'\n };\n Dialog.propTypes = {\n visible: Boolean,\n title: String,\n width: String\n };\n Dialog = __decorate([\n omi_1.tag('o-dialog')\n ], Dialog);\n return Dialog;\n}(omi_1.WeElement));\nexports.default = Dialog;\n","module.exports = __WEBPACK_EXTERNAL_MODULE_omi__;"],"sourceRoot":""} \ No newline at end of file +{"version":3,"sources":["webpack://ODialog/webpack/universalModuleDefinition","webpack://ODialog/webpack/bootstrap","webpack://ODialog/./node_modules/@omiu/transition/src/index.esm.js","webpack://ODialog/./src/index.scss","webpack://ODialog/./node_modules/css-loader/lib/css-base.js","webpack://ODialog/(webpack)/buildin/global.js","webpack://ODialog/./src/index.scss?2cb4","webpack://ODialog/./src/index.tsx","webpack://ODialog/external {\"commonjs\":\"omi\",\"commonjs2\":\"omi\",\"amd\":\"omi\",\"root\":\"Omi\"}"],"names":[],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC;AACD,O;QCVA;QACA;;QAEA;QACA;;QAEA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;;QAEA;QACA;;QAEA;QACA;;QAEA;QACA;QACA;;;QAGA;QACA;;QAEA;QACA;;QAEA;QACA;QACA;QACA,0CAA0C,gCAAgC;QAC1E;QACA;;QAEA;QACA;QACA;QACA,wDAAwD,kBAAkB;QAC1E;QACA,iDAAiD,cAAc;QAC/D;;QAEA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA,yCAAyC,iCAAiC;QAC1E,gHAAgH,mBAAmB,EAAE;QACrI;QACA;;QAEA;QACA;QACA;QACA,2BAA2B,0BAA0B,EAAE;QACvD,iCAAiC,eAAe;QAChD;QACA;QACA;;QAEA;QACA,sDAAsD,+DAA+D;;QAErH;QACA;;;QAGA;QACA;;;;;;;;;;;;;AClFA;AAAA;AAAA;AAAA;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEqC;;AAErC;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,UAAU,gBAAgB,sCAAsC,iBAAiB,EAAE;AACnF,yBAAyB,uDAAuD;AAChF;AACA;;AAEA;AACA;AACA,mBAAmB,sBAAsB;AACzC;AACA;;AAEA;AACA;AACA;AACA,4CAA4C,QAAQ;AACpD;AACA;;AAEA;AACA,2BAA2B,+DAA+D,gBAAgB,EAAE,EAAE;AAC9G;AACA,mCAAmC,MAAM,6BAA6B,EAAE,YAAY,WAAW,EAAE;AACjG,kCAAkC,MAAM,iCAAiC,EAAE,YAAY,WAAW,EAAE;AACpG,+BAA+B,qFAAqF;AACpH;AACA,KAAK;AACL;;AAEA;AACA,aAAa,6BAA6B,0BAA0B,aAAa,EAAE,qBAAqB;AACxG,gBAAgB,qDAAqD,oEAAoE,aAAa,EAAE;AACxJ,sBAAsB,sBAAsB,qBAAqB,GAAG;AACpE;AACA;AACA;AACA;AACA;AACA;AACA,uCAAuC;AACvC,kCAAkC,SAAS;AAC3C,kCAAkC,WAAW,UAAU;AACvD,yCAAyC,cAAc;AACvD;AACA,6GAA6G,OAAO,UAAU;AAC9H,gFAAgF,iBAAiB,OAAO;AACxG,wDAAwD,gBAAgB,QAAQ,OAAO;AACvF,8CAA8C,gBAAgB,gBAAgB,OAAO;AACrF;AACA,iCAAiC;AACjC;AACA;AACA,SAAS,YAAY,aAAa,OAAO,EAAE,UAAU,WAAW;AAChE,mCAAmC,SAAS;AAC5C;AACA;;AAEA;;AAEA;AACA,kBAAkB,YAAY,EAAE;AAChC;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC;;AAED;AACA;AACA;AACA;AACA;AACA,KAAK;AACL,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;AACA;AACA;AACA;AACA,CAAC;AACD,CAAC;;AAED;AACA;AACA;AACA;AACA,CAAC;;AAED;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,iBAAiB;AACjB;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa;AACb,SAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,6BAA6B;AAC7B;AACA;AACA;AACA;AACA;AACA;AACA,6BAA6B;AAC7B;AACA,qBAA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E5C;;;;;;;;;;;;;AClBA,qBAAqB,mBAAO,CAAC,6QAAkJ;;AAE/K;AACA;AACA,SAAS;AACT;AACA;;;;;;;;;;;;;ACPa;AACb;AACA;AACA;AACA,cAAc,gBAAgB,sCAAsC,iBAAiB,EAAE;AACvF,6BAA6B,uDAAuD;AACpF;AACA;AACA;AACA;AACA,uBAAuB,sBAAsB;AAC7C;AACA;AACA,CAAC;AACD;AACA;AACA;AACA,4CAA4C,QAAQ;AACpD;AACA;AACA,8CAA8C,cAAc;AAC5D,YAAY,mBAAO,CAAC,gBAAK;AACzB,UAAU,mBAAO,CAAC,sCAAc;AAChC,mBAAO,CAAC,0EAAkB;AAC1B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,+BAA+B,iBAAiB;AAChD;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA,iDAAiD,6BAA6B;AAC9E,qCAAqC,wEAAwE;AAC7G,gCAAgC,qCAAqC;AACrE,oCAAoC,6FAA6F,qBAAqB,EAAE;AACxJ,wCAAwC,4BAA4B;AACpE,6CAA6C,2BAA2B;AACxE,+CAA+C,sEAAsE;AACrH,gDAAgD,wLAAwL;AACxO,qDAAqD,6GAA6G;AAClK,wCAAwC,0BAA0B;AAClE;AACA,wCAAwC,4BAA4B;AACpE,6CAA6C,iBAAiB;AAC9D,qCAAqC,6BAA6B;AAClE,gCAAgC,+CAA+C;AAC/E;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC;AACD;;;;;;;;;;;;ACjFA,iD","file":"index.js","sourcesContent":["(function webpackUniversalModuleDefinition(root, factory) {\n\tif(typeof exports === 'object' && typeof module === 'object')\n\t\tmodule.exports = factory(require(\"omi\"));\n\telse if(typeof define === 'function' && define.amd)\n\t\tdefine([\"omi\"], factory);\n\telse if(typeof exports === 'object')\n\t\texports[\"ODialog\"] = factory(require(\"omi\"));\n\telse\n\t\troot[\"ODialog\"] = factory(root[\"Omi\"]);\n})(this, function(__WEBPACK_EXTERNAL_MODULE_omi__) {\nreturn "," \t// The module cache\n \tvar installedModules = {};\n\n \t// The require function\n \tfunction __webpack_require__(moduleId) {\n\n \t\t// Check if module is in cache\n \t\tif(installedModules[moduleId]) {\n \t\t\treturn installedModules[moduleId].exports;\n \t\t}\n \t\t// Create a new module (and put it into the cache)\n \t\tvar module = installedModules[moduleId] = {\n \t\t\ti: moduleId,\n \t\t\tl: false,\n \t\t\texports: {}\n \t\t};\n\n \t\t// Execute the module function\n \t\tmodules[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n\n \t\t// Flag the module as loaded\n \t\tmodule.l = true;\n\n \t\t// Return the exports of the module\n \t\treturn module.exports;\n \t}\n\n\n \t// expose the modules object (__webpack_modules__)\n \t__webpack_require__.m = modules;\n\n \t// expose the module cache\n \t__webpack_require__.c = installedModules;\n\n \t// define getter function for harmony exports\n \t__webpack_require__.d = function(exports, name, getter) {\n \t\tif(!__webpack_require__.o(exports, name)) {\n \t\t\tObject.defineProperty(exports, name, { enumerable: true, get: getter });\n \t\t}\n \t};\n\n \t// define __esModule on exports\n \t__webpack_require__.r = function(exports) {\n \t\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n \t\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n \t\t}\n \t\tObject.defineProperty(exports, '__esModule', { value: true });\n \t};\n\n \t// create a fake namespace object\n \t// mode & 1: value is a module id, require it\n \t// mode & 2: merge all properties of value into the ns\n \t// mode & 4: return value when already ns object\n \t// mode & 8|1: behave like require\n \t__webpack_require__.t = function(value, mode) {\n \t\tif(mode & 1) value = __webpack_require__(value);\n \t\tif(mode & 8) return value;\n \t\tif((mode & 4) && typeof value === 'object' && value && value.__esModule) return value;\n \t\tvar ns = Object.create(null);\n \t\t__webpack_require__.r(ns);\n \t\tObject.defineProperty(ns, 'default', { enumerable: true, value: value });\n \t\tif(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key));\n \t\treturn ns;\n \t};\n\n \t// getDefaultExport function for compatibility with non-harmony modules\n \t__webpack_require__.n = function(module) {\n \t\tvar getter = module && module.__esModule ?\n \t\t\tfunction getDefault() { return module['default']; } :\n \t\t\tfunction getModuleExports() { return module; };\n \t\t__webpack_require__.d(getter, 'a', getter);\n \t\treturn getter;\n \t};\n\n \t// Object.prototype.hasOwnProperty.call\n \t__webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };\n\n \t// __webpack_public_path__\n \t__webpack_require__.p = \"\";\n\n\n \t// Load entry module and return exports\n \treturn __webpack_require__(__webpack_require__.s = \"./src/index.tsx\");\n","/**\n * @omiu/transition v0.0.14 http://omijs.org\n * Front End Cross-Frameworks Framework.\n * By dntzhang https://github.com/dntzhang\n * Github: https://github.com/Tencent/omi\n * MIT Licensed.\n */\n\nimport { tag, WeElement } from 'omi';\n\n/*! *****************************************************************************\r\nCopyright (c) Microsoft Corporation.\r\n\r\nPermission to use, copy, modify, and/or distribute this software for any\r\npurpose with or without fee is hereby granted.\r\n\r\nTHE SOFTWARE IS PROVIDED \"AS IS\" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH\r\nREGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY\r\nAND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,\r\nINDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM\r\nLOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR\r\nOTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR\r\nPERFORMANCE OF THIS SOFTWARE.\r\n***************************************************************************** */\r\n/* global Reflect, Promise */\r\n\r\nvar extendStatics = function(d, b) {\r\n extendStatics = Object.setPrototypeOf ||\r\n ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\r\n function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };\r\n return extendStatics(d, b);\r\n};\r\n\r\nfunction __extends(d, b) {\r\n extendStatics(d, b);\r\n function __() { this.constructor = d; }\r\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\r\n}\r\n\r\nfunction __decorate(decorators, target, key, desc) {\r\n var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;\r\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);\r\n else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\r\n return c > 3 && r && Object.defineProperty(target, key, r), r;\r\n}\r\n\r\nfunction __awaiter(thisArg, _arguments, P, generator) {\r\n function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }\r\n return new (P || (P = Promise))(function (resolve, reject) {\r\n function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\r\n function rejected(value) { try { step(generator[\"throw\"](value)); } catch (e) { reject(e); } }\r\n function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }\r\n step((generator = generator.apply(thisArg, _arguments || [])).next());\r\n });\r\n}\r\n\r\nfunction __generator(thisArg, body) {\r\n var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;\r\n return g = { next: verb(0), \"throw\": verb(1), \"return\": verb(2) }, typeof Symbol === \"function\" && (g[Symbol.iterator] = function() { return this; }), g;\r\n function verb(n) { return function (v) { return step([n, v]); }; }\r\n function step(op) {\r\n if (f) throw new TypeError(\"Generator is already executing.\");\r\n while (_) try {\r\n if (f = 1, y && (t = op[0] & 2 ? y[\"return\"] : op[0] ? y[\"throw\"] || ((t = y[\"return\"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;\r\n if (y = 0, t) op = [op[0] & 2, t.value];\r\n switch (op[0]) {\r\n case 0: case 1: t = op; break;\r\n case 4: _.label++; return { value: op[1], done: false };\r\n case 5: _.label++; y = op[1]; op = [0]; continue;\r\n case 7: op = _.ops.pop(); _.trys.pop(); continue;\r\n default:\r\n if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }\r\n if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }\r\n if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }\r\n if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }\r\n if (t[2]) _.ops.pop();\r\n _.trys.pop(); continue;\r\n }\r\n op = body.call(thisArg, _);\r\n } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }\r\n if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };\r\n }\r\n}\n\nvar commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};\n\nfunction createCommonjsModule(fn, module) {\n\treturn module = { exports: {} }, fn(module, module.exports), module.exports;\n}\n\nvar _dready_0_0_1_dready = createCommonjsModule(function (module, exports) {\n// if the module has no dependencies, the above pattern can be simplified to\n(function (root, factory) {\n {\n // Node. Does not work with strict CommonJS, but\n // only CommonJS-like environments that support module.exports,\n // like Node.\n module.exports = factory();\n }\n}(commonjsGlobal, function () {\n\n const readyCallbacks = [];\n document.addEventListener('DOMContentLoaded', () => {\n domReady.done = true;\n readyCallbacks.forEach(callback => {\n callback();\n });\n });\n\n function domReady(callback) {\n if (domReady.done) {\n callback();\n return\n }\n readyCallbacks.push(callback);\n }\n\n domReady.done = false;\n\n\n // Just return a value to define the module export.\n // This example returns an object, but the module\n // can return a function as the exported value.\n return domReady\n}));\n});\n\nvar _domReady = /*#__PURE__*/Object.freeze({\n __proto__: null,\n 'default': _dready_0_0_1_dready,\n __moduleExports: _dready_0_0_1_dready\n});\n\n/**\n * o-transition element based on vue-transition\n * Tom Fales (@enlightenmentor)\n * Licensed under the MIT License\n * https://github.com/enlightenmentor/vue-transition/blob/master/LICENSE\n *\n * modified by dntzhang\n *\n */\nvar domReady = _dready_0_0_1_dready || _domReady;\nvar Transition = /** @class */ (function (_super) {\n __extends(Transition, _super);\n function Transition() {\n var _this = _super !== null && _super.apply(this, arguments) || this;\n _this._show = true;\n return _this;\n }\n Transition.prototype.installed = function () {\n var _this = this;\n domReady(function () {\n if (_this.props.appear) {\n _this.enter();\n }\n if (_this.props.leavingTime) {\n setTimeout(function () {\n _this.leave();\n }, _this.props.leavingTime);\n }\n });\n };\n Transition.prototype.receiveProps = function () {\n if (this.props.appear) {\n this.enter();\n }\n if (this.props.disappear) {\n this.leave();\n }\n };\n Transition.prototype.toggle = function () {\n return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0:\n this._show = !this._show;\n if (!this._show) return [3 /*break*/, 2];\n return [4 /*yield*/, this.enter()];\n case 1: return [2 /*return*/, _a.sent()];\n case 2: return [4 /*yield*/, this.leave()];\n case 3: return [2 /*return*/, _a.sent()];\n }\n });\n });\n };\n Transition.prototype.enter = function () {\n return __awaiter(this, void 0, void 0, function () {\n var _this = this;\n return __generator(this, function (_a) {\n return [2 /*return*/, new Promise(function (resolve) {\n var el = _this.children[0];\n if (el) {\n _this.fire('before-enter');\n el.classList.remove(_this.props.name + '-leave-active');\n el.classList.remove(_this.props.name + '-leave-to');\n el.classList.add(_this.props.name + '-enter');\n el.classList.add(_this.props.name + '-enter-active');\n _this.callback = function () {\n el.classList.remove(this.props.name + '-enter-active');\n this.fire('after-enter');\n this._show = true;\n resolve();\n }.bind(_this);\n _this.once('transitionend', _this.callback);\n _this.once('animationend', _this.callback);\n window.setTimeout(function () {\n el.classList.remove(this.props.name + '-enter');\n el.classList.add(this.props.name + '-enter-to');\n this.fire('enter');\n }.bind(_this), _this.props.delay);\n }\n })];\n });\n });\n };\n Transition.prototype.leave = function () {\n return __awaiter(this, void 0, void 0, function () {\n var _this = this;\n return __generator(this, function (_a) {\n return [2 /*return*/, new Promise(function (resolve) {\n var el = _this.children[0];\n if (el) {\n _this.fire('before-leave');\n el.classList.remove(_this.props.name + '-enter-active');\n el.classList.remove(_this.props.name + '-enter-to');\n el.classList.add(_this.props.name + '-leave');\n el.classList.add(_this.props.name + '-leave-active');\n _this.callback = function (e) {\n el.classList.remove(this.props.name + '-leave-active');\n this.fire('after-leave');\n this._show = false;\n if (this.props.autoRemove && this.parentNode) {\n this.parentNode.removeChild(this);\n }\n resolve();\n }.bind(_this);\n _this.once('transitionend', _this.callback);\n _this.once('animationend', _this.callback);\n window.setTimeout(function () {\n el.classList.remove(this.props.name + '-leave');\n el.classList.add(this.props.name + '-leave-to');\n this.fire('leave');\n }.bind(_this), _this.props.delay);\n }\n })];\n });\n });\n };\n Transition.prototype.once = function (name, callback) {\n var wrapCall = function () {\n this.removeEventListener(name, wrapCall);\n callback();\n }.bind(this);\n this.addEventListener(name, wrapCall);\n };\n Transition.prototype.render = function () {\n return;\n };\n Transition.propTypes = {\n name: String,\n leavingTime: Number,\n autoRemove: Boolean,\n appear: Boolean,\n disappear: Boolean,\n delay: Number\n };\n Transition.isLightDom = true;\n Transition.defaultProps = {\n name: 'o',\n delay: 0\n };\n Transition = __decorate([\n tag('o-transition')\n ], Transition);\n return Transition;\n}(WeElement));\n\nexport { Transition as default };\n//# sourceMappingURL=index.esm.js.map\n","exports = module.exports = require(\"../node_modules/css-loader/lib/css-base.js\")(false);\n// imports\n\n\n// module\nexports.push([module.id, \".mask {\\n position: fixed;\\n width: 100%;\\n height: 100%;\\n background-color: rgba(0, 0, 0, 0.4);\\n z-index: 100;\\n left: 0;\\n top: 0; }\\n\\n.o-dialog {\\n position: relative;\\n background: #FFF;\\n border-radius: 2px;\\n -webkit-box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);\\n box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);\\n -webkit-box-sizing: border-box;\\n box-sizing: border-box;\\n width: 50%;\\n top: 50%;\\n left: 50%;\\n transform: translate(-50%, -50%); }\\n\\n.o-dialog.is-fullscreen {\\n width: 100%;\\n margin-top: 0;\\n margin-bottom: 0;\\n height: 100%;\\n overflow: auto; }\\n\\n.o-dialog__wrapper {\\n position: fixed;\\n top: 0;\\n right: 0;\\n bottom: 0;\\n left: 0;\\n overflow: auto;\\n margin: 0; }\\n\\n.o-dialog__header {\\n padding: 20px 20px 10px; }\\n\\n.o-dialog__headerbtn {\\n position: absolute;\\n top: 20px;\\n right: 20px;\\n padding: 0;\\n background: 0 0;\\n border: none;\\n outline: 0;\\n cursor: pointer;\\n font-size: 16px; }\\n\\n.o-dialog__headerbtn .o-dialog__close {\\n color: #909399; }\\n\\n.o-dialog__headerbtn:focus .o-dialog__close,\\n.o-dialog__headerbtn:hover .o-dialog__close {\\n color: #409EFF; }\\n\\n.o-dialog__title {\\n line-height: 24px;\\n font-size: 18px;\\n color: #303133; }\\n\\n.o-dialog__body {\\n padding: 30px 20px;\\n color: #606266;\\n font-size: 14px;\\n word-break: break-all; }\\n\\n.o-dialog__footer {\\n padding: 10px 20px 20px;\\n text-align: right;\\n -webkit-box-sizing: border-box;\\n box-sizing: border-box; }\\n\\n.o-dialog--center {\\n text-align: center; }\\n\\n.o-dialog--center .o-dialog__body {\\n text-align: initial;\\n padding: 25px 25px 30px; }\\n\\n.o-dialog--center .o-dialog__footer {\\n text-align: inherit; }\\n\\n.dialog-zoom-enter-active {\\n -webkit-animation: dialog-zoom-in .3s;\\n animation: dialog-zoom-in .3s; }\\n\\n.dialog-zoom-leave-active {\\n -webkit-animation: dialog-zoom-out .3s;\\n animation: dialog-zoom-out .3s; }\\n\\n@-webkit-keyframes dialog-zoom-in {\\n 0% {\\n -webkit-transform: scale(0, 0);\\n transform: scale(0, 0);\\n opacity: 0; }\\n 100% {\\n -webkit-transform: scale(1, 1);\\n transform: scale(1, 1);\\n opacity: 1; } }\\n\\n@keyframes dialog-zoom-in {\\n 0% {\\n -webkit-transform: scale(0, 0);\\n transform: scale(0, 0);\\n opacity: 0; }\\n 100% {\\n -webkit-transform: scale(1, 1);\\n transform: scale(1, 1);\\n opacity: 1; } }\\n\\n@-webkit-keyframes dialog-zoom-out {\\n 0% {\\n -webkit-transform: scale(1, 1);\\n transform: scale(1, 1);\\n opacity: 1; }\\n 100% {\\n -webkit-transform: scale(0, 0);\\n transform: scale(0, 0);\\n opacity: 0; } }\\n\\n@keyframes dialog-zoom-out {\\n 0% {\\n -webkit-transform: scale(1, 1);\\n transform: scale(1, 1);\\n opacity: 1; }\\n 100% {\\n -webkit-transform: scale(0, 0);\\n transform: scale(0, 0);\\n opacity: 0; } }\\n\\n.mask-enter-active {\\n -webkit-animation: mask-in .3s;\\n animation: mask-in .3s; }\\n\\n.mask-leave-active {\\n -webkit-animation: mask-out .3s;\\n animation: mask-out .3s; }\\n\\n@-webkit-keyframes mask-in {\\n 0% {\\n opacity: 0; }\\n 100% {\\n opacity: 1; } }\\n\\n@keyframes mask-in {\\n 0% {\\n opacity: 0; }\\n 100% {\\n opacity: 1; } }\\n\\n@-webkit-keyframes mask-out {\\n 0% {\\n opacity: 1; }\\n 100% {\\n opacity: 0; } }\\n\\n@keyframes mask-out {\\n 0% {\\n opacity: 1; }\\n 100% {\\n opacity: 0; } }\\n\\n.content {\\n z-index: 101; }\\n\", \"\"]);\n\n// exports\n","/*\n\tMIT License http://www.opensource.org/licenses/mit-license.php\n\tAuthor Tobias Koppers @sokra\n*/\n// css base code, injected by the css-loader\nmodule.exports = function(useSourceMap) {\n\tvar list = [];\n\n\t// return the list of modules as css string\n\tlist.toString = function toString() {\n\t\treturn this.map(function (item) {\n\t\t\tvar content = cssWithMappingToString(item, useSourceMap);\n\t\t\tif(item[2]) {\n\t\t\t\treturn \"@media \" + item[2] + \"{\" + content + \"}\";\n\t\t\t} else {\n\t\t\t\treturn content;\n\t\t\t}\n\t\t}).join(\"\");\n\t};\n\n\t// import a list of modules into the list\n\tlist.i = function(modules, mediaQuery) {\n\t\tif(typeof modules === \"string\")\n\t\t\tmodules = [[null, modules, \"\"]];\n\t\tvar alreadyImportedModules = {};\n\t\tfor(var i = 0; i < this.length; i++) {\n\t\t\tvar id = this[i][0];\n\t\t\tif(typeof id === \"number\")\n\t\t\t\talreadyImportedModules[id] = true;\n\t\t}\n\t\tfor(i = 0; i < modules.length; i++) {\n\t\t\tvar item = modules[i];\n\t\t\t// skip already imported module\n\t\t\t// this implementation is not 100% perfect for weird media query combinations\n\t\t\t// when a module is imported multiple times with different media queries.\n\t\t\t// I hope this will never occur (Hey this way we have smaller bundles)\n\t\t\tif(typeof item[0] !== \"number\" || !alreadyImportedModules[item[0]]) {\n\t\t\t\tif(mediaQuery && !item[2]) {\n\t\t\t\t\titem[2] = mediaQuery;\n\t\t\t\t} else if(mediaQuery) {\n\t\t\t\t\titem[2] = \"(\" + item[2] + \") and (\" + mediaQuery + \")\";\n\t\t\t\t}\n\t\t\t\tlist.push(item);\n\t\t\t}\n\t\t}\n\t};\n\treturn list;\n};\n\nfunction cssWithMappingToString(item, useSourceMap) {\n\tvar content = item[1] || '';\n\tvar cssMapping = item[3];\n\tif (!cssMapping) {\n\t\treturn content;\n\t}\n\n\tif (useSourceMap && typeof btoa === 'function') {\n\t\tvar sourceMapping = toComment(cssMapping);\n\t\tvar sourceURLs = cssMapping.sources.map(function (source) {\n\t\t\treturn '/*# sourceURL=' + cssMapping.sourceRoot + source + ' */'\n\t\t});\n\n\t\treturn [content].concat(sourceURLs).concat([sourceMapping]).join('\\n');\n\t}\n\n\treturn [content].join('\\n');\n}\n\n// Adapted from convert-source-map (MIT)\nfunction toComment(sourceMap) {\n\t// eslint-disable-next-line no-undef\n\tvar base64 = btoa(unescape(encodeURIComponent(JSON.stringify(sourceMap))));\n\tvar data = 'sourceMappingURL=data:application/json;charset=utf-8;base64,' + base64;\n\n\treturn '/*# ' + data + ' */';\n}\n","var g;\n\n// This works in non-strict mode\ng = (function() {\n\treturn this;\n})();\n\ntry {\n\t// This works if eval is allowed (see CSP)\n\tg = g || new Function(\"return this\")();\n} catch (e) {\n\t// This works if the window reference is available\n\tif (typeof window === \"object\") g = window;\n}\n\n// g can still be undefined, but nothing to do about it...\n// We return undefined, instead of nothing here, so it's\n// easier to handle this case. if(!global) { ...}\n\nmodule.exports = g;\n","\n var result = require(\"!!../node_modules/css-loader/index.js!../node_modules/resolve-url-loader/index.js!../node_modules/sass-loader/dist/cjs.js??ref--4-3!./index.scss\");\n\n if (typeof result === \"string\") {\n module.exports = result;\n } else {\n module.exports = result.toString();\n }\n ","\"use strict\";\nvar __extends = (this && this.__extends) || (function () {\n var extendStatics = function (d, b) {\n extendStatics = Object.setPrototypeOf ||\n ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\n function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };\n return extendStatics(d, b);\n };\n return function (d, b) {\n extendStatics(d, b);\n function __() { this.constructor = d; }\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n };\n})();\nvar __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {\n var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);\n else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n return c > 3 && r && Object.defineProperty(target, key, r), r;\n};\nObject.defineProperty(exports, \"__esModule\", { value: true });\nvar omi_1 = require(\"omi\");\nvar css = require(\"./index.scss\");\nrequire(\"@omiu/transition\");\nvar Dialog = /** @class */ (function (_super) {\n __extends(Dialog, _super);\n function Dialog() {\n var _this = _super !== null && _super.apply(this, arguments) || this;\n _this.handleMaskClick = function () {\n _this.fire('mask-click');\n };\n _this.close = function () {\n _this.rootNode.childNodes[0].leave();\n _this.rootNode.childNodes[1].leave();\n _this.fire('close');\n };\n _this.onAfterLeave = function () {\n _this.updateProps({ visible: false });\n };\n return _this;\n }\n Dialog.prototype.open = function () {\n this.updateProps({\n visible: true\n });\n this.rootNode.childNodes[0].enter();\n this.rootNode.childNodes[1].enter();\n this.fire('open');\n };\n Dialog.prototype.render = function (props) {\n return (props.visible && omi_1.h(\"div\", { class: \"o-dialog__wrapper\" },\n omi_1.h(\"o-transition\", { \"onafter-leave\": this.onAfterLeave, appear: true, name: \"dialog-zoom\" },\n omi_1.h(\"div\", { class: \"o-dialog__wrapper content\" },\n omi_1.h(\"div\", { role: \"dialog\", \"aria-modal\": \"true\", \"aria-label\": props.title, class: \"o-dialog\", style: { width: props.width } },\n omi_1.h(\"div\", { class: \"o-dialog__header\" },\n omi_1.h(\"span\", { class: \"o-dialog__title\" }, props.title),\n omi_1.h(\"button\", { type: \"button\", \"aria-label\": \"Close\", class: \"o-dialog__headerbtn\" },\n omi_1.h(\"svg\", { onClick: this.close, class: \"o-dialog__close o-icon o-icon-close\", fill: \"currentColor\", width: \"1em\", height: \"1em\", focusable: \"false\", viewBox: \"0 0 24 24\", \"aria-hidden\": \"true\" },\n omi_1.h(\"path\", { d: \"M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z\" })))),\n omi_1.h(\"div\", { class: \"o-dialog__body\" },\n omi_1.h(\"slot\", null)),\n omi_1.h(\"div\", { class: \"o-dialog__footer\" },\n omi_1.h(\"slot\", { name: \"footer\" }))))),\n omi_1.h(\"o-transition\", { appear: true, name: \"mask\" },\n omi_1.h(\"div\", { class: \"mask\", onClick: this.handleMaskClick }))));\n };\n Dialog.css = css;\n Dialog.defaultProps = {\n visible: false,\n width: '50%'\n };\n Dialog.propTypes = {\n visible: Boolean,\n title: String,\n width: String\n };\n Dialog = __decorate([\n omi_1.tag('o-dialog')\n ], Dialog);\n return Dialog;\n}(omi_1.WeElement));\nexports.default = Dialog;\n","module.exports = __WEBPACK_EXTERNAL_MODULE_omi__;"],"sourceRoot":""} \ No newline at end of file diff --git a/components/dialog/src/index.scss b/components/dialog/src/index.scss index a282257a2..5152ecaa4 100644 --- a/components/dialog/src/index.scss +++ b/components/dialog/src/index.scss @@ -10,14 +10,16 @@ .o-dialog { position: relative; - margin: 0 auto 50px; background: #FFF; border-radius: 2px; -webkit-box-shadow: 0 1px 3px rgba(0, 0, 0, .3); box-shadow: 0 1px 3px rgba(0, 0, 0, .3); -webkit-box-sizing: border-box; box-sizing: border-box; - width: 50% + width: 50%; + top: 50%; + left: 50%; + transform: translate(-50%, -50%); } .o-dialog.is-fullscreen { @@ -96,68 +98,68 @@ text-align: inherit } -.dialog-fade-enter-active { - -webkit-animation: dialog-fade-in .3s; - animation: dialog-fade-in .3s +.dialog-zoom-enter-active { + -webkit-animation: dialog-zoom-in .3s; + animation: dialog-zoom-in .3s } -.dialog-fade-leave-active { - -webkit-animation: dialog-fade-out .3s; - animation: dialog-fade-out .3s +.dialog-zoom-leave-active { + -webkit-animation: dialog-zoom-out .3s; + animation: dialog-zoom-out .3s } -@-webkit-keyframes dialog-fade-in { +@-webkit-keyframes dialog-zoom-in { 0% { - -webkit-transform: translate3d(0, -20px, 0); - transform: translate3d(0, -20px, 0); + -webkit-transform: scale(0, 0); + transform: scale(0, 0); opacity: 0 } 100% { - -webkit-transform: translate3d(0, 0, 0); - transform: translate3d(0, 0, 0); + -webkit-transform: scale(1, 1); + transform: scale(1, 1); opacity: 1 } } -@keyframes dialog-fade-in { +@keyframes dialog-zoom-in { 0% { - -webkit-transform: translate3d(0, -20px, 0); - transform: translate3d(0, -20px, 0); + -webkit-transform: scale(0, 0); + transform: scale(0, 0); opacity: 0 } 100% { - -webkit-transform: translate3d(0, 0, 0); - transform: translate3d(0, 0, 0); + -webkit-transform: scale(1, 1); + transform: scale(1, 1); opacity: 1 } } -@-webkit-keyframes dialog-fade-out { +@-webkit-keyframes dialog-zoom-out { 0% { - -webkit-transform: translate3d(0, 0, 0); - transform: translate3d(0, 0, 0); + -webkit-transform: scale(1, 1); + transform: scale(1, 1); opacity: 1 } 100% { - -webkit-transform: translate3d(0, -20px, 0); - transform: translate3d(0, -20px, 0); + -webkit-transform: scale(0, 0); + transform: scale(0, 0); opacity: 0 } } -@keyframes dialog-fade-out { +@keyframes dialog-zoom-out { 0% { - -webkit-transform: translate3d(0, 0, 0); - transform: translate3d(0, 0, 0); + -webkit-transform: scale(1, 1); + transform: scale(1, 1); opacity: 1 } 100% { - -webkit-transform: translate3d(0, -20px, 0); - transform: translate3d(0, -20px, 0); + -webkit-transform: scale(0, 0); + transform: scale(0, 0); opacity: 0 } } diff --git a/components/dialog/src/index.tsx b/components/dialog/src/index.tsx index e91db1c70..30ca623b7 100644 --- a/components/dialog/src/index.tsx +++ b/components/dialog/src/index.tsx @@ -56,10 +56,10 @@ export default class Dialog extends WeElement { props.visible &&
- +
-