From c2c46fb95aa1aa7aa831a33f844bf3f793f73d38 Mon Sep 17 00:00:00 2001 From: dntzhang Date: Fri, 1 May 2020 19:46:59 +0800 Subject: [PATCH] publish(@omiu/tab) --- components/docs-src/src/docs/en/tabs.md | 2 +- components/docs-src/src/docs/zh-cn/tabs.md | 2 +- components/tabs/package.json | 13 +- components/tabs/scripts/docs-gen.js | 153 +++++++++++++++++++++ components/tabs/src/index.esm.js | 4 +- components/tabs/src/index.esm.js.map | 2 +- components/tabs/src/index.js | 2 +- components/tabs/src/index.js.map | 2 +- components/tabs/src/index.tsx | 2 +- components/tabs/tsconfig.demo.json | 14 -- 10 files changed, 167 insertions(+), 29 deletions(-) create mode 100644 components/tabs/scripts/docs-gen.js delete mode 100644 components/tabs/tsconfig.demo.json diff --git a/components/docs-src/src/docs/en/tabs.md b/components/docs-src/src/docs/en/tabs.md index 489efd4a9..469f2f65f 100644 --- a/components/docs-src/src/docs/en/tabs.md +++ b/components/docs-src/src/docs/en/tabs.md @@ -59,4 +59,4 @@ Or use script tag to ref it. * change * remove -* addIconClick +* add-icon-click diff --git a/components/docs-src/src/docs/zh-cn/tabs.md b/components/docs-src/src/docs/zh-cn/tabs.md index 043195a34..1a3c85cac 100644 --- a/components/docs-src/src/docs/zh-cn/tabs.md +++ b/components/docs-src/src/docs/zh-cn/tabs.md @@ -59,4 +59,4 @@ import '@omiu/tabs' * change * remove -* addIconClick +* add-icon-click diff --git a/components/tabs/package.json b/components/tabs/package.json index 9ca967766..32b8436b8 100644 --- a/components/tabs/package.json +++ b/components/tabs/package.json @@ -1,11 +1,12 @@ { "name": "@omiu/tabs", - "version": "0.0.9", + "version": "0.0.10", "description": "Omi UI Components.", "main": "src/index.js", "module": "src/index.esm.js", "types": "src/index.d.ts", "scripts": { + "docs": "node ./scripts/docs-gen.js", "start": "node ./scripts/webpack.build.js -- demo", "build": "node ./scripts/webpack.build.js -- build && rollup -c scripts/rollup.config.js && node ./scripts/rollup.end.js" }, @@ -80,12 +81,10 @@ "rollup-plugin-babel" ] }, - "bundlesize": [ - { - "path": "./dist/omim.min.js", - "threshold": "4Kb" - } - ], + "bundlesize": [{ + "path": "./dist/omim.min.js", + "threshold": "4Kb" + }], "prettier": { "singleQuote": true, "semi": false, diff --git a/components/tabs/scripts/docs-gen.js b/components/tabs/scripts/docs-gen.js new file mode 100644 index 000000000..ac41251ee --- /dev/null +++ b/components/tabs/scripts/docs-gen.js @@ -0,0 +1,153 @@ +//自动扫描 index.tsx 生成 readme +const fs = require('fs') + +const content = fs.readFileSync('./src/index.tsx', 'utf-8') + +const props = extract('interface Props {', content).replace('interface Props ', '') + +const defaultProps = extract('static defaultProps = {', content).replace('static defaultProps = ', '').replace(/ }/g, '}').replace(/ /g, ' ') + + +const eventContexts = content.match(new RegExp('this.fire\\([\\s\\S]*?[,|)]', 'g')) +const package = require('../package.json') +const packageName = package.name +const name = packageName.split('/')[1] + +const upperCaseName = name.split('-').map(item => { + return item.charAt(0).toUpperCase() + item.slice(1) +}).join('') +const tagName = 'o-' + name + +//fire 附近打标标记 event.detail 类型? +let events, eventMap +if (eventContexts) { + + events = eventContexts.map(event => { + return event.replace('this.fire(\'', '').replace('\',', '').replace('\')', '') + }) + eventMap = {} + events.forEach(event => { + eventMap[event] = 1 + }) +} + +const cnContent = `## ${upperCaseName} ${package.docsExtend.cnName} + +${package.docsExtend.cnDescription} + + + +## 导入 + +\`\`\`js +import '${packageName}' +\`\`\` + +或者直接 script 标签引入。 + + +\`\`\`html + +\`\`\` + +## 使用 + +\`\`\`html +<${tagName}> +\`\`\` + + +## API + +### 属性 + +\`\`\`tsx +${props} +\`\`\` + +${defaultProps ? '### 默认属性\n' : ''}${defaultProps ? '\`\`\`tsx\n' : ''}${defaultProps ? defaultProps : ''} +${defaultProps ? '\`\`\`\n' : ''}${eventMap ? '### 事件\n' : ''}${eventMap ? Object.keys(eventMap).map(event => { + return `* ${event}\n` +}).join('') : ''}` + +fs.writeFileSync(`../docs-src/src/docs/zh-cn/${name}.md`, cnContent) + + + +const enContent = `## ${upperCaseName} + +${package.description} + + + +## Import + +\`\`\`js +import '${packageName}' +\`\`\` + +Or use script tag to ref it. + + +\`\`\`html + +\`\`\` + +## Usage + +\`\`\`html +<${tagName}> +\`\`\` + +## API + +### Props + +\`\`\`tsx +${props} +\`\`\` + +${defaultProps ? '### 默认属性\n\n' : ''}${defaultProps ? '\`\`\`tsx\n' : ''}${defaultProps ? defaultProps : ''} +${defaultProps ? '\`\`\`\n' : ''}${eventMap ? '### Events\n\n' : ''}${eventMap ? Object.keys(eventMap).map(event => { + return `* ${event}\n` +}).join('') : ''}` + + +fs.writeFileSync(`../docs-src/src/docs/en/${name}.md`, enContent) + + +fs.writeFileSync(`../${name}/README.md`, enContent.replace(//, `* [→ CodePen](https://codepen.io/omijs/pen/${package.docsExtend.codepen})`)) +// console.log(props) +// console.log(defaultProps) +// console.log(Object.keys(eventMap)) + + + +function extract(startWith, str) { + const start = str.indexOf(startWith) + + let end = start + startWith.length + let stackCount = 1 + while (end < str.length) { + if (str[end] === '}') { + if (stackCount === 1) { + + break + } else { + stackCount-- + } + } else if (str[end] === '{') { + stackCount++ + } + + end++ + } + + return str.substring(start, end + 1) +} diff --git a/components/tabs/src/index.esm.js b/components/tabs/src/index.esm.js index 1089b7acf..3f525cb09 100644 --- a/components/tabs/src/index.esm.js +++ b/components/tabs/src/index.esm.js @@ -1,5 +1,5 @@ /** - * @omiu/tabs v0.0.9 http://omijs.org + * @omiu/tabs v0.0.10 http://omijs.org * Front End Cross-Frameworks Framework. * By dntzhang https://github.com/dntzhang * Github: https://github.com/Tencent/omi @@ -794,7 +794,7 @@ var Tabs = /** @class */ (function (_super) { this.forceUpdate(); }; Tabs.prototype.onAddIconClick = function () { - this.fire('addIconClick'); + this.fire('add-icon-click'); }; Tabs.prototype.render = function (props) { var _a, _b, _c, _d, _e; diff --git a/components/tabs/src/index.esm.js.map b/components/tabs/src/index.esm.js.map index 36a082a68..580d5945c 100644 --- a/components/tabs/src/index.esm.js.map +++ b/components/tabs/src/index.esm.js.map @@ -1 +1 @@ -{"version":3,"file":"index.esm.js","sources":["../node_modules/_tslib@1.11.1@tslib/tslib.es6.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","import { tag, WeElement, h, extractClass, classNames } from 'omi'\nimport * as css from './index.scss'\n\ninterface Props {\n list?: any[]\n activeIndex: number\n type?: 'card' | 'border-card'\n position?: 'left' | 'right' | 'top' | 'bottom'\n closable?: boolean\n addable?: boolean\n}\n\nconst readyCallbacks = []\ndocument.addEventListener('DOMContentLoaded', () => {\n domReady.done = true\n readyCallbacks.forEach(callback => {\n callback()\n })\n})\n\nfunction domReady(callback) {\n if (domReady.done) {\n callback()\n return\n }\n readyCallbacks.push(callback)\n}\n\ndomReady.done = false\n\n@tag('o-tabs')\nexport default class Tabs extends WeElement{\n static css = css\n\n static defaultProps = {\n position: 'top',\n closable: false,\n addable: false\n }\n\n static propTypes = {\n list: Array,\n activeIndex: Number,\n type: String,\n position: String,\n closable: Boolean,\n addable: Boolean\n }\n\n _x\n _width\n baseRect\n onTabClick = (evt, index) => {\n this.setActiveBar(evt.currentTarget, index)\n this.fire('change', {\n tab: this.props.list[index],\n index: index\n })\n }\n\n setActiveBar(ele, index) {\n const rect = ele.getBoundingClientRect()\n this._x = rect.left - this.baseRect.left\n this._width = rect.width\n if (index === 0) {\n this._x = 0\n this._width -= 20\n } else if (index === this.props.list.length - 1) {\n this._x += 20\n this._width -= 20\n } else {\n this._x += 20\n this._width -= 40\n }\n this.updateProps({\n activeIndex: index\n })\n }\n\n install() {\n domReady(() => {\n this.baseRect = this.rootNode.getBoundingClientRect()\n this.setActiveBar(this['$tab' + this.props.activeIndex], this.props.activeIndex)\n })\n }\n\n installed() {\n this.baseRect = this.rootNode.getBoundingClientRect()\n this.setActiveBar(this['$tab' + this.props.activeIndex], this.props.activeIndex)\n }\n\n removeTab(index) {\n const tab = this.props.list.splice(index, 1)[0]\n this.forceUpdate()\n this.fire('remove', {\n tab: tab,\n index: index\n })\n }\n\n addTab(tab) {\n this.props.list.push(tab)\n this.forceUpdate()\n }\n\n onAddIconClick() {\n this.fire('addIconClick')\n }\n\n _tempTagName: string\n\n render(props) {\n\n const activeBarStyle = (props.position === 'left' || props.position === 'right') ? {\n height: `40px`,\n transform: `translateY(${props.activeIndex * 40}px)`\n } : {\n width: `${this._width}px`,\n transform: `translateX(${this._x}px)`\n }\n\n return (\n
\n
\n
\n
\n
\n {!props.type &&
}\n\n {props.list.map((tab, index) => {\n this._tempTagName = 'o-icon-' + tab.icon\n return
{ this['$tab' + index] = e }} role=\"tab\" onClick={evt => props.activeIndex !== index && this.onTabClick(evt, index)} tabindex={props.active === index ? '0' : -1}\n {...extractClass(props, 'o-tabs__item', {\n [`is-${props.position}`]: props.position,\n 'is-active': props.activeIndex === index,\n 'is-closable': props.closable\n })}\n >{tab.icon && }{tab.label}{props.closable && { this.removeTab(index) }} class=\"o-icon-close\" style={props.activeIndex === index && `visibility: visible;`} fill=\"currentColor\" width=\"1em\" height=\"1em\" focusable=\"false\" viewBox=\"0 0 24 24\" aria-hidden=\"true\">}
\n })}\n\n
\n\n {props.addable && }\n
\n
\n
\n \n )\n }\n}\n"],"names":[],"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;AACzC,SAAS,EAAE,SAAS,EAAE,EAAE,EAAE,YAAY,KAAK,IAAI,UAAU,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC,CAAC,SAAS,GAAG,CAAC,CAAC,EAAE,CAAC;AACpF,QAAQ,UAAU,CAAC,EAAE,CAAC,EAAE,EAAE,KAAK,IAAI,CAAC,IAAI,CAAC,EAAE,IAAI,CAAC,CAAC,cAAc,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC;AACnF,IAAI,OAAO,aAAa,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC;AAC/B,CAAC,CAAC;AACF;AACO,SAAS,SAAS,CAAC,CAAC,EAAE,CAAC,EAAE;AAChC,IAAI,aAAa,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC;AACxB,IAAI,SAAS,EAAE,GAAG,EAAE,IAAI,CAAC,WAAW,GAAG,CAAC,CAAC,EAAE;AAC3C,IAAI,CAAC,CA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/_tslib@1.11.1@tslib/tslib.es6.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","import { tag, WeElement, h, extractClass, classNames } from 'omi'\nimport * as css from './index.scss'\n\ninterface Props {\n list?: any[]\n activeIndex: number\n type?: 'card' | 'border-card'\n position?: 'left' | 'right' | 'top' | 'bottom'\n closable?: boolean\n addable?: boolean\n}\n\nconst readyCallbacks = []\ndocument.addEventListener('DOMContentLoaded', () => {\n domReady.done = true\n readyCallbacks.forEach(callback => {\n callback()\n })\n})\n\nfunction domReady(callback) {\n if (domReady.done) {\n callback()\n return\n }\n readyCallbacks.push(callback)\n}\n\ndomReady.done = false\n\n@tag('o-tabs')\nexport default class Tabs extends WeElement{\n static css = css\n\n static defaultProps = {\n position: 'top',\n closable: false,\n addable: false\n }\n\n static propTypes = {\n list: Array,\n activeIndex: Number,\n type: String,\n position: String,\n closable: Boolean,\n addable: Boolean\n }\n\n _x\n _width\n baseRect\n onTabClick = (evt, index) => {\n this.setActiveBar(evt.currentTarget, index)\n this.fire('change', {\n tab: this.props.list[index],\n index: index\n })\n }\n\n setActiveBar(ele, index) {\n const rect = ele.getBoundingClientRect()\n this._x = rect.left - this.baseRect.left\n this._width = rect.width\n if (index === 0) {\n this._x = 0\n this._width -= 20\n } else if (index === this.props.list.length - 1) {\n this._x += 20\n this._width -= 20\n } else {\n this._x += 20\n this._width -= 40\n }\n this.updateProps({\n activeIndex: index\n })\n }\n\n install() {\n domReady(() => {\n this.baseRect = this.rootNode.getBoundingClientRect()\n this.setActiveBar(this['$tab' + this.props.activeIndex], this.props.activeIndex)\n })\n }\n\n installed() {\n this.baseRect = this.rootNode.getBoundingClientRect()\n this.setActiveBar(this['$tab' + this.props.activeIndex], this.props.activeIndex)\n }\n\n removeTab(index) {\n const tab = this.props.list.splice(index, 1)[0]\n this.forceUpdate()\n this.fire('remove', {\n tab: tab,\n index: index\n })\n }\n\n addTab(tab) {\n this.props.list.push(tab)\n this.forceUpdate()\n }\n\n onAddIconClick() {\n this.fire('add-icon-click')\n }\n\n _tempTagName: string\n\n render(props) {\n\n const activeBarStyle = (props.position === 'left' || props.position === 'right') ? {\n height: `40px`,\n transform: `translateY(${props.activeIndex * 40}px)`\n } : {\n width: `${this._width}px`,\n transform: `translateX(${this._x}px)`\n }\n\n return (\n
\n
\n
\n
\n
\n {!props.type &&
}\n\n {props.list.map((tab, index) => {\n this._tempTagName = 'o-icon-' + tab.icon\n return
{ this['$tab' + index] = e }} role=\"tab\" onClick={evt => props.activeIndex !== index && this.onTabClick(evt, index)} tabindex={props.active === index ? '0' : -1}\n {...extractClass(props, 'o-tabs__item', {\n [`is-${props.position}`]: props.position,\n 'is-active': props.activeIndex === index,\n 'is-closable': props.closable\n })}\n >{tab.icon && }{tab.label}{props.closable && { this.removeTab(index) }} class=\"o-icon-close\" style={props.activeIndex === index && `visibility: visible;`} fill=\"currentColor\" width=\"1em\" height=\"1em\" focusable=\"false\" viewBox=\"0 0 24 24\" aria-hidden=\"true\">}
\n })}\n\n
\n\n {props.addable && }\n
\n
\n
\n \n )\n }\n}\n"],"names":[],"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;AACzC,SAAS,EAAE,SAAS,EAAE,EAAE,EAAE,YAAY,KAAK,IAAI,UAAU,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC,CAAC,SAAS,GAAG,CAAC,CAAC,EAAE,CAAC;AACpF,QAAQ,UAAU,CAAC,EAAE,CAAC,EAAE,EAAE,KAAK,IAAI,CAAC,IAAI,CAAC,EAAE,IAAI,CAAC,CAAC,cAAc,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC;AACnF,IAAI,OAAO,aAAa,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC;AAC/B,CAAC,CAAC;AACF;AACO,SAAS,SAAS,CAAC,CAAC,EAAE,CAAC,EAAE;AAChC,IAAI,aAAa,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC;AACxB,IAAI,SAAS,EAAE,GAAG,EAAE,IAAI,CAAC,WAAW,GAAG,CAAC,CAAC,EAAE;AAC3C,IAAI,CAAC,CAAC,SAAS,GAAG,CAAC,KAAK,IAAI,GAAG,MAAM,CAAC,MAAM,CAAC,CAAC,CA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AC,QAAQ,IAAI,WAAK,OAAO,EAAE,UAAA,CAAC,IAAM,KAAI,CAAC,SAAS,CAAC,KAAK,CAAC,CAAA,EAAE,EAAE,KAAK,EAAC,cAAc,EAAC,KAAK,EAAE,KAAK,CAAC,WAAW,KAAK,KAAK,IAAI,sBAAsB,EAAE,IAAI,EAAC,cAAc,EAAC,KAAK,EAAC,KAAK,EAAC,MAAM,EAAC,KAAK,EAAC,SAAS,EAAC,OAAO,EAAC,OAAO,EAAC,WAAW,iBAAa,MAAM;wCAAC,YAAM,CAAC,EAAC,uGAAuG,GAAQ,CAAM,CAAO,CAAA;6BAC9a,CAAC,CAEE;wBAEL,KAAK,CAAC,OAAO,IAAI,WAAK,KAAK,EAAC,YAAY,EAAC,IAAI,EAAC,cAAc,EAAC,KAAK,EAAC,KAAK,EAAC,MAAM,EAAC,KAAK,EAAC,SAAS,EAAC,OAAO,EACtG,OAAO,EAAC,WAAW,iBAAa,MAAM,EACtC,OAAO,EAAE,IAAI,CAAC,cAAc;4BAC7B,YAAM,CAAC,EAAC,qCAAqC,GAAQ,CAAM,CACxD,CACF,CACF,CACF,EACP;KACF;IAnIM,QAAG,GAAG,GAAG,CAAA;IAET,iBAAY,GAAG;QACpB,QAAQ,EAAE,KAAK;QACf,QAAQ,EAAE,KAAK;QACf,OAAO,EAAE,KAAK;KACf,CAAA;IAEM,cAAS,GAAG;QACjB,IAAI,EAAE,KAAK;QACX,WAAW,EAAE,MAAM;QACnB,IAAI,EAAE,MAAM;QACZ,QAAQ,EAAE,MAAM;QAChB,QAAQ,EAAE,OAAO;QACjB,OAAO,EAAE,OAAO;KACjB,CAAA;IAhBkB,IAAI;QADxB,GAAG,CAAC,QAAQ,CAAC;OACO,IAAI,CAqIxB;IAAD,WAAC;CAAA,CArIiC,SAAS;;"} \ No newline at end of file diff --git a/components/tabs/src/index.js b/components/tabs/src/index.js index 7f52d01d1..b658c5d2f 100644 --- a/components/tabs/src/index.js +++ b/components/tabs/src/index.js @@ -335,7 +335,7 @@ var Tabs = /** @class */ (function (_super) { this.forceUpdate(); }; Tabs.prototype.onAddIconClick = function () { - this.fire('addIconClick'); + this.fire('add-icon-click'); }; Tabs.prototype.render = function (props) { var _a, _b, _c, _d, _e; diff --git a/components/tabs/src/index.js.map b/components/tabs/src/index.js.map index 77135f8c9..a9ac528cc 100644 --- a/components/tabs/src/index.js.map +++ b/components/tabs/src/index.js.map @@ -1 +1 @@ -{"version":3,"sources":["webpack://OTabs/webpack/universalModuleDefinition","webpack://OTabs/webpack/bootstrap","webpack://OTabs/./src/index.scss","webpack://OTabs/./node_modules/_css-loader@1.0.1@css-loader/lib/css-base.js","webpack://OTabs/./src/index.scss?56db","webpack://OTabs/./src/index.tsx","webpack://OTabs/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,2BAA2B,mBAAO,CAAC,iIAA8D;AACjG;;;AAGA;AACA,cAAc,QAAS,UAAU,mBAAmB,EAAE,qBAAqB,eAAe,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KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA,oDAAoD,cAAc;;AAElE;AACA;;;;;;;;;;;;;AC1EA,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,gDAAgD,OAAO;AACvD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,4CAA4C,QAAQ;AACpD;AACA;AACA,8CAA8C,cAAc;AAC5D,YAAY,mBAAO,CAAC,gBAAK;AACzB,UAAU,mBAAO,CAAC,sCAAc;AAChC;AACA;AACA;AACA;AACA;AACA,KAAK;AACL,CAAC;AACD;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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA,0CAA0C,8CAA8C;AACxF;AACA;AACA;AACA,4BAA4B,mDAAmD;AAC/E;AACA,0BAA0B;AAC1B,gCAAgC,qDAAqD;AACrF;AACA,8BAA8B;AAC9B,oCAAoC,8BAA8B;AAClE,wCAAwC,iEAAiE;AACzG;AACA,sCAAsC;AACtC,2DAA2D,uDAAuD;AAClH;AACA,iEAAiE;AACjE;AACA;AACA;AACA,gEAAgE,oBAAoB,2BAA2B,EAAE,wCAAwC,oEAAoE,EAAE,+CAA+C,oDAAoD;AAClU;AACA;AACA;AACA;AACA;AACA;AACA,sEAAsE,wBAAwB,wBAAwB,EAAE,oFAAoF,uHAAuH;AACnU,yDAAyD,6GAA6G;AACtK,6BAA6B;AAC7B,yDAAyD,wKAAwK;AACjO,6CAA6C,2CAA2C;AACxF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC;AACD;;;;;;;;;;;;AC1KA,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[\"OTabs\"] = factory(require(\"omi\"));\n\telse\n\t\troot[\"OTabs\"] = 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","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, \":host {\\n display: block; }\\n\\n.o-tabs__header {\\n padding: 0;\\n position: relative;\\n margin: 0 0 15px; }\\n\\n.o-tabs__active-bar {\\n position: absolute;\\n bottom: 0;\\n left: 0;\\n height: 2px;\\n background-color: #07c160;\\n z-index: 1;\\n -webkit-transition: -webkit-transform 0.3s cubic-bezier(0.645, 0.045, 0.355, 1);\\n transition: -webkit-transform 0.3s cubic-bezier(0.645, 0.045, 0.355, 1);\\n transition: transform 0.3s cubic-bezier(0.645, 0.045, 0.355, 1);\\n transition: transform 0.3s cubic-bezier(0.645, 0.045, 0.355, 1), -webkit-transform 0.3s cubic-bezier(0.645, 0.045, 0.355, 1);\\n list-style: none; }\\n\\n.o-tabs__new-tab {\\n float: right;\\n border: 1px solid #d3dce6;\\n height: 18px;\\n width: 18px;\\n line-height: 18px;\\n margin: 12px 0 9px 10px;\\n border-radius: 3px;\\n text-align: center;\\n font-size: 12px;\\n color: #d3dce6;\\n cursor: pointer;\\n -webkit-transition: all .15s;\\n transition: all .15s; }\\n\\n.o-tabs__new-tab .o-icon-plus {\\n -webkit-transform: scale(0.8, 0.8);\\n transform: scale(0.8, 0.8); }\\n\\n.o-tabs__new-tab:hover {\\n color: #07c160; }\\n\\n.o-tabs__nav-wrap {\\n overflow: hidden;\\n margin-bottom: -1px;\\n position: relative; }\\n\\n.o-tabs__nav-wrap::after {\\n content: \\\"\\\";\\n position: absolute;\\n left: 0;\\n bottom: 0;\\n width: 100%;\\n height: 2px;\\n background-color: #E4E7ED;\\n z-index: 1; }\\n\\n.o-tabs--border-card > .o-tabs__header .o-tabs__nav-wrap::after,\\n.o-tabs--card > .o-tabs__header .o-tabs__nav-wrap::after {\\n content: none; }\\n\\n.o-tabs__nav-wrap.is-scrollable {\\n padding: 0 20px;\\n -webkit-box-sizing: border-box;\\n box-sizing: border-box; }\\n\\n.o-tabs__nav-scroll {\\n overflow: hidden; }\\n\\n.o-tabs__nav-next,\\n.o-tabs__nav-prev {\\n position: absolute;\\n cursor: pointer;\\n line-height: 44px;\\n font-size: 12px;\\n color: #909399; }\\n\\n.o-tabs__nav-next {\\n right: 0; }\\n\\n.o-tabs__nav-prev {\\n left: 0; }\\n\\n.o-tabs__nav {\\n white-space: nowrap;\\n position: relative;\\n -webkit-transition: -webkit-transform .3s;\\n transition: -webkit-transform .3s;\\n transition: transform .3s;\\n transition: transform .3s, -webkit-transform .3s;\\n float: left;\\n z-index: 2; }\\n\\n.o-tabs__nav.is-stretch {\\n min-width: 100%;\\n display: -webkit-box;\\n display: -ms-flexbox;\\n display: flex; }\\n\\n.o-tabs__nav.is-stretch > * {\\n -webkit-box-flex: 1;\\n -ms-flex: 1;\\n flex: 1;\\n text-align: center; }\\n\\n.o-tabs__item {\\n padding: 0 20px;\\n height: 40px;\\n -webkit-box-sizing: border-box;\\n box-sizing: border-box;\\n line-height: 40px;\\n display: inline-block;\\n list-style: none;\\n font-size: 14px;\\n font-weight: 500;\\n color: #303133;\\n position: relative; }\\n\\n.o-tabs__item:focus,\\n.o-tabs__item:focus:active {\\n outline: 0; }\\n\\n.o-tabs__item:focus.is-active.is-focus:not(:active) {\\n -webkit-box-shadow: 0 0 2px 2px #07c160 inset;\\n box-shadow: 0 0 2px 2px #07c160 inset;\\n border-radius: 3px; }\\n\\n.o-tabs__item:hover .o-icon-close {\\n visibility: visible; }\\n\\n.o-tabs__item .o-icon-close {\\n visibility: hidden;\\n border-radius: 50%;\\n text-align: center;\\n -webkit-transition: all 0.3s cubic-bezier(0.645, 0.045, 0.355, 1);\\n transition: all 0.3s cubic-bezier(0.645, 0.045, 0.355, 1);\\n margin-left: 5px; }\\n\\n.o-tabs__item .o-icon-close:before {\\n -webkit-transform: scale(0.9);\\n transform: scale(0.9);\\n display: inline-block; }\\n\\n.o-tabs__item .o-icon-close:hover {\\n background-color: #C0C4CC;\\n color: #FFF; }\\n\\n.o-tabs__item.is-active {\\n color: #07c160; }\\n\\n.o-tabs__item:hover {\\n color: #07c160;\\n cursor: pointer; }\\n\\n.o-tabs__item.is-disabled {\\n color: #C0C4CC;\\n cursor: default; }\\n\\n.o-tabs__content {\\n overflow: hidden;\\n position: relative; }\\n\\n.o-tabs--card > .o-tabs__header {\\n border-bottom: 1px solid #E4E7ED; }\\n\\n.o-tabs--card > .o-tabs__header .o-tabs__nav {\\n border: 1px solid #E4E7ED;\\n border-bottom: none;\\n border-radius: 4px 4px 0 0;\\n -webkit-box-sizing: border-box;\\n box-sizing: border-box; }\\n\\n.o-tabs--card > .o-tabs__header .o-tabs__active-bar {\\n display: none; }\\n\\n.o-tabs--card > .o-tabs__header .o-tabs__item .o-icon-close {\\n position: relative;\\n font-size: 12px;\\n width: 0;\\n height: 14px;\\n vertical-align: middle;\\n line-height: 15px;\\n overflow: hidden;\\n top: -1px;\\n right: -2px;\\n -webkit-transform-origin: 100% 50%;\\n transform-origin: 100% 50%; }\\n\\n.o-tabs--card > .o-tabs__header .o-tabs__item.is-active.is-closable .o-icon-close,\\n.o-tabs--card > .o-tabs__header .o-tabs__item.is-closable:hover .o-icon-close {\\n width: 14px; }\\n\\n.o-tabs--card > .o-tabs__header .o-tabs__item {\\n border-bottom: 1px solid transparent;\\n border-left: 1px solid #E4E7ED;\\n -webkit-transition: color 0.3s cubic-bezier(0.645, 0.045, 0.355, 1), padding 0.3s cubic-bezier(0.645, 0.045, 0.355, 1);\\n transition: color 0.3s cubic-bezier(0.645, 0.045, 0.355, 1), padding 0.3s cubic-bezier(0.645, 0.045, 0.355, 1); }\\n\\n.o-tabs--card > .o-tabs__header .o-tabs__item:first-child {\\n border-left: none; }\\n\\n.o-tabs--card > .o-tabs__header .o-tabs__item.is-closable:hover {\\n padding-left: 13px;\\n padding-right: 13px; }\\n\\n.o-tabs--card > .o-tabs__header .o-tabs__item.is-active {\\n border-bottom-color: #FFF; }\\n\\n.o-tabs--card > .o-tabs__header .o-tabs__item.is-active.is-closable {\\n padding-left: 20px;\\n padding-right: 20px; }\\n\\n.o-tabs--border-card {\\n background: #FFF;\\n border: 1px solid #DCDFE6;\\n border-bottom: none; }\\n\\n.o-tabs--border-card.o-tabs--bottom {\\n border: 1px solid #DCDFE6; }\\n\\n.o-tabs--border-card > .o-tabs__content {\\n padding: 15px; }\\n\\n.o-tabs--border-card > .o-tabs__header {\\n background-color: #F5F7FA;\\n border-bottom: 1px solid #E4E7ED;\\n margin: 0; }\\n\\n.o-tabs--border-card > .o-tabs__header .o-tabs__item {\\n -webkit-transition: all 0.3s cubic-bezier(0.645, 0.045, 0.355, 1);\\n transition: all 0.3s cubic-bezier(0.645, 0.045, 0.355, 1);\\n border: 1px solid transparent;\\n margin-top: -1px;\\n color: #909399; }\\n\\n.o-tabs--border-card > .o-tabs__header .o-tabs__item + .o-tabs__item,\\n.o-tabs--border-card > .o-tabs__header .o-tabs__item:first-child {\\n margin-left: -1px; }\\n\\n.o-tabs--border-card > .o-tabs__header .o-tabs__item.is-active {\\n color: #07c160;\\n background-color: #FFF;\\n border-right-color: #DCDFE6;\\n border-left-color: #DCDFE6; }\\n\\n.o-tabs--border-card > .o-tabs__header .o-tabs__item:not(.is-disabled):hover {\\n color: #07c160; }\\n\\n.o-tabs--border-card > .o-tabs__header .o-tabs__item.is-disabled {\\n color: #C0C4CC; }\\n\\n.o-tabs--border-card > .o-tabs__header .is-scrollable .o-tabs__item:first-child {\\n margin-left: 0; }\\n\\n.o-tabs--bottom .o-tabs__item.is-bottom:nth-child(2),\\n.o-tabs--bottom .o-tabs__item.is-top:nth-child(2),\\n.o-tabs--top .o-tabs__item.is-bottom:nth-child(2),\\n.o-tabs--top .o-tabs__item.is-top:nth-child(2) {\\n padding-left: 0; }\\n\\n.o-tabs--bottom .o-tabs__item.is-bottom:last-child,\\n.o-tabs--bottom .o-tabs__item.is-top:last-child,\\n.o-tabs--top .o-tabs__item.is-bottom:last-child,\\n.o-tabs--top .o-tabs__item.is-top:last-child {\\n padding-right: 0; }\\n\\n.o-tabs--bottom .o-tabs--left > .o-tabs__header .o-tabs__item:nth-child(2),\\n.o-tabs--bottom .o-tabs--right > .o-tabs__header .o-tabs__item:nth-child(2),\\n.o-tabs--bottom.o-tabs--border-card > .o-tabs__header .o-tabs__item:nth-child(2),\\n.o-tabs--bottom.o-tabs--card > .o-tabs__header .o-tabs__item:nth-child(2),\\n.o-tabs--top .o-tabs--left > .o-tabs__header .o-tabs__item:nth-child(2),\\n.o-tabs--top .o-tabs--right > .o-tabs__header .o-tabs__item:nth-child(2),\\n.o-tabs--top.o-tabs--border-card > .o-tabs__header .o-tabs__item:nth-child(2),\\n.o-tabs--top.o-tabs--card > .o-tabs__header .o-tabs__item:nth-child(2) {\\n padding-left: 20px; }\\n\\n.o-tabs--bottom .o-tabs--left > .o-tabs__header .o-tabs__item:last-child,\\n.o-tabs--bottom .o-tabs--right > .o-tabs__header .o-tabs__item:last-child,\\n.o-tabs--bottom.o-tabs--border-card > .o-tabs__header .o-tabs__item:last-child,\\n.o-tabs--bottom.o-tabs--card > .o-tabs__header .o-tabs__item:last-child,\\n.o-tabs--top .o-tabs--left > .o-tabs__header .o-tabs__item:last-child,\\n.o-tabs--top .o-tabs--right > .o-tabs__header .o-tabs__item:last-child,\\n.o-tabs--top.o-tabs--border-card > .o-tabs__header .o-tabs__item:last-child,\\n.o-tabs--top.o-tabs--card > .o-tabs__header .o-tabs__item:last-child {\\n padding-right: 20px; }\\n\\n.o-tabs--bottom.o-tabs--border-card {\\n border-top: none; }\\n\\n.o-tabs--bottom.o-tabs--border-card .o-tabs__header.is-bottom {\\n border-bottom: 0;\\n border-top: 1px solid #DCDFE6; }\\n\\n.o-tabs--bottom.o-tabs--border-card .o-tabs__nav-wrap.is-bottom {\\n margin-top: -1px;\\n margin-bottom: 0; }\\n\\n.o-tabs--bottom.o-tabs--border-card .o-tabs__item.is-bottom:not(.is-active) {\\n border: 1px solid transparent; }\\n\\n.o-tabs--bottom.o-tabs--border-card .o-tabs__item.is-bottom {\\n margin: 0 -1px -1px; }\\n\\n.o-tabs--left,\\n.o-tabs--right {\\n overflow: hidden; }\\n\\n.o-tabs--left .o-tabs__header.is-left,\\n.o-tabs--left .o-tabs__header.is-right,\\n.o-tabs--left .o-tabs__nav-scroll,\\n.o-tabs--left .o-tabs__nav-wrap.is-left,\\n.o-tabs--left .o-tabs__nav-wrap.is-right,\\n.o-tabs--right .o-tabs__header.is-left,\\n.o-tabs--right .o-tabs__header.is-right,\\n.o-tabs--right .o-tabs__nav-scroll,\\n.o-tabs--right .o-tabs__nav-wrap.is-left,\\n.o-tabs--right .o-tabs__nav-wrap.is-right {\\n height: 100%; }\\n\\n.o-tabs--left .o-tabs__active-bar.is-left,\\n.o-tabs--left .o-tabs__active-bar.is-right,\\n.o-tabs--right .o-tabs__active-bar.is-left,\\n.o-tabs--right .o-tabs__active-bar.is-right {\\n top: 0;\\n bottom: auto;\\n width: 2px;\\n height: auto; }\\n\\n.o-tabs--left .o-tabs__nav-wrap.is-left,\\n.o-tabs--left .o-tabs__nav-wrap.is-right,\\n.o-tabs--right .o-tabs__nav-wrap.is-left,\\n.o-tabs--right .o-tabs__nav-wrap.is-right {\\n margin-bottom: 0; }\\n\\n.o-tabs--left .o-tabs__nav-wrap.is-left > .o-tabs__nav-next,\\n.o-tabs--left .o-tabs__nav-wrap.is-left > .o-tabs__nav-prev,\\n.o-tabs--left .o-tabs__nav-wrap.is-right > .o-tabs__nav-next,\\n.o-tabs--left .o-tabs__nav-wrap.is-right > .o-tabs__nav-prev,\\n.o-tabs--right .o-tabs__nav-wrap.is-left > .o-tabs__nav-next,\\n.o-tabs--right .o-tabs__nav-wrap.is-left > .o-tabs__nav-prev,\\n.o-tabs--right .o-tabs__nav-wrap.is-right > .o-tabs__nav-next,\\n.o-tabs--right .o-tabs__nav-wrap.is-right > .o-tabs__nav-prev {\\n height: 30px;\\n line-height: 30px;\\n width: 100%;\\n text-align: center;\\n cursor: pointer; }\\n\\n.o-tabs--left .o-tabs__nav-wrap.is-left > .o-tabs__nav-next i,\\n.o-tabs--left .o-tabs__nav-wrap.is-left > .o-tabs__nav-prev i,\\n.o-tabs--left .o-tabs__nav-wrap.is-right > .o-tabs__nav-next i,\\n.o-tabs--left .o-tabs__nav-wrap.is-right > .o-tabs__nav-prev i,\\n.o-tabs--right .o-tabs__nav-wrap.is-left > .o-tabs__nav-next i,\\n.o-tabs--right .o-tabs__nav-wrap.is-left > .o-tabs__nav-prev i,\\n.o-tabs--right .o-tabs__nav-wrap.is-right > .o-tabs__nav-next i,\\n.o-tabs--right .o-tabs__nav-wrap.is-right > .o-tabs__nav-prev i {\\n -webkit-transform: rotateZ(90deg);\\n transform: rotateZ(90deg); }\\n\\n.o-tabs--left .o-tabs__nav-wrap.is-left > .o-tabs__nav-prev,\\n.o-tabs--left .o-tabs__nav-wrap.is-right > .o-tabs__nav-prev,\\n.o-tabs--right .o-tabs__nav-wrap.is-left > .o-tabs__nav-prev,\\n.o-tabs--right .o-tabs__nav-wrap.is-right > .o-tabs__nav-prev {\\n left: auto;\\n top: 0; }\\n\\n.o-tabs--left .o-tabs__nav-wrap.is-left > .o-tabs__nav-next,\\n.o-tabs--left .o-tabs__nav-wrap.is-right > .o-tabs__nav-next,\\n.o-tabs--right .o-tabs__nav-wrap.is-left > .o-tabs__nav-next,\\n.o-tabs--right .o-tabs__nav-wrap.is-right > .o-tabs__nav-next {\\n right: auto;\\n bottom: 0; }\\n\\n.o-tabs--left .o-tabs__active-bar.is-left,\\n.o-tabs--left .o-tabs__nav-wrap.is-left::after {\\n right: 0;\\n left: auto; }\\n\\n.o-tabs--left .o-tabs__nav-wrap.is-left.is-scrollable,\\n.o-tabs--left .o-tabs__nav-wrap.is-right.is-scrollable,\\n.o-tabs--right .o-tabs__nav-wrap.is-left.is-scrollable,\\n.o-tabs--right .o-tabs__nav-wrap.is-right.is-scrollable {\\n padding: 30px 0; }\\n\\n.o-tabs--left .o-tabs__nav-wrap.is-left::after,\\n.o-tabs--left .o-tabs__nav-wrap.is-right::after,\\n.o-tabs--right .o-tabs__nav-wrap.is-left::after,\\n.o-tabs--right .o-tabs__nav-wrap.is-right::after {\\n height: 100%;\\n width: 2px;\\n bottom: auto;\\n top: 0; }\\n\\n.o-tabs--left .o-tabs__nav.is-left,\\n.o-tabs--left .o-tabs__nav.is-right,\\n.o-tabs--right .o-tabs__nav.is-left,\\n.o-tabs--right .o-tabs__nav.is-right {\\n float: none; }\\n\\n.o-tabs--left .o-tabs__item.is-left,\\n.o-tabs--left .o-tabs__item.is-right,\\n.o-tabs--right .o-tabs__item.is-left,\\n.o-tabs--right .o-tabs__item.is-right {\\n display: block; }\\n\\n.o-tabs--left.o-tabs--card .o-tabs__active-bar.is-left,\\n.o-tabs--right.o-tabs--card .o-tabs__active-bar.is-right {\\n display: none; }\\n\\n.o-tabs--left .o-tabs__header.is-left {\\n float: left;\\n margin-bottom: 0;\\n margin-right: 10px; }\\n\\n.o-tabs--left .o-tabs__nav-wrap.is-left {\\n margin-right: -1px; }\\n\\n.o-tabs--left .o-tabs__item.is-left {\\n text-align: right; }\\n\\n.o-tabs--left.o-tabs--card .o-tabs__item.is-left {\\n border-left: none;\\n border-right: 1px solid #E4E7ED;\\n border-bottom: none;\\n border-top: 1px solid #E4E7ED;\\n text-align: left; }\\n\\n.o-tabs--left.o-tabs--card .o-tabs__item.is-left:first-child {\\n border-right: 1px solid #E4E7ED;\\n border-top: none; }\\n\\n.o-tabs--left.o-tabs--card .o-tabs__item.is-left.is-active {\\n border: 1px solid #E4E7ED;\\n border-right-color: #fff;\\n border-left: none;\\n border-bottom: none; }\\n\\n.o-tabs--left.o-tabs--card .o-tabs__item.is-left.is-active:first-child {\\n border-top: none; }\\n\\n.o-tabs--left.o-tabs--card .o-tabs__item.is-left.is-active:last-child {\\n border-bottom: none; }\\n\\n.o-tabs--left.o-tabs--card .o-tabs__nav {\\n border-radius: 4px 0 0 4px;\\n border-bottom: 1px solid #E4E7ED;\\n border-right: none; }\\n\\n.o-tabs--left.o-tabs--card .o-tabs__new-tab {\\n float: none; }\\n\\n.o-tabs--left.o-tabs--border-card .o-tabs__header.is-left {\\n border-right: 1px solid #dfe4ed; }\\n\\n.o-tabs--left.o-tabs--border-card .o-tabs__item.is-left {\\n border: 1px solid transparent;\\n margin: -1px 0 -1px -1px; }\\n\\n.o-tabs--left.o-tabs--border-card .o-tabs__item.is-left.is-active {\\n border-color: #d1dbe5 transparent; }\\n\\n.o-tabs--right .o-tabs__header.is-right {\\n float: right;\\n margin-bottom: 0;\\n margin-left: 10px; }\\n\\n.o-tabs--right .o-tabs__nav-wrap.is-right {\\n margin-left: -1px; }\\n\\n.o-tabs--right .o-tabs__nav-wrap.is-right::after {\\n left: 0;\\n right: auto; }\\n\\n.o-tabs--right .o-tabs__active-bar.is-right {\\n left: 0; }\\n\\n.o-tabs--right.o-tabs--card .o-tabs__item.is-right {\\n border-bottom: none;\\n border-top: 1px solid #E4E7ED; }\\n\\n.o-tabs--right.o-tabs--card .o-tabs__item.is-right:first-child {\\n border-left: 1px solid #E4E7ED;\\n border-top: none; }\\n\\n.o-tabs--right.o-tabs--card .o-tabs__item.is-right.is-active {\\n border: 1px solid #E4E7ED;\\n border-left-color: #fff;\\n border-right: none;\\n border-bottom: none; }\\n\\n.o-tabs--right.o-tabs--card .o-tabs__item.is-right.is-active:first-child {\\n border-top: none; }\\n\\n.o-tabs--right.o-tabs--card .o-tabs__item.is-right.is-active:last-child {\\n border-bottom: none; }\\n\\n.o-tabs--right.o-tabs--card .o-tabs__nav {\\n border-radius: 0 4px 4px 0;\\n border-bottom: 1px solid #E4E7ED;\\n border-left: none; }\\n\\n.o-tabs--right.o-tabs--border-card .o-tabs__header.is-right {\\n border-left: 1px solid #dfe4ed; }\\n\\n.o-tabs--right.o-tabs--border-card .o-tabs__item.is-right {\\n border: 1px solid transparent;\\n margin: -1px -1px -1px 0; }\\n\\n.o-tabs--right.o-tabs--border-card .o-tabs__item.is-right.is-active {\\n border-color: #d1dbe5 transparent; }\\n\\n.slideInLeft-transition,\\n.slideInRight-transition {\\n display: inline-block; }\\n\\n.slideInRight-enter {\\n -webkit-animation: slideInRight-enter .3s;\\n animation: slideInRight-enter .3s; }\\n\\n.slideInRight-leave {\\n position: absolute;\\n left: 0;\\n right: 0;\\n -webkit-animation: slideInRight-leave .3s;\\n animation: slideInRight-leave .3s; }\\n\\n.slideInLeft-enter {\\n -webkit-animation: slideInLeft-enter .3s;\\n animation: slideInLeft-enter .3s; }\\n\\n.slideInLeft-leave {\\n position: absolute;\\n left: 0;\\n right: 0;\\n -webkit-animation: slideInLeft-leave .3s;\\n animation: slideInLeft-leave .3s; }\\n\\n@-webkit-keyframes slideInRight-enter {\\n 0% {\\n opacity: 0;\\n -webkit-transform-origin: 0 0;\\n transform-origin: 0 0;\\n -webkit-transform: translateX(100%);\\n transform: translateX(100%); }\\n to {\\n opacity: 1;\\n -webkit-transform-origin: 0 0;\\n transform-origin: 0 0;\\n -webkit-transform: translateX(0);\\n transform: translateX(0); } }\\n\\n@keyframes slideInRight-enter {\\n 0% {\\n opacity: 0;\\n -webkit-transform-origin: 0 0;\\n transform-origin: 0 0;\\n -webkit-transform: translateX(100%);\\n transform: translateX(100%); }\\n to {\\n opacity: 1;\\n -webkit-transform-origin: 0 0;\\n transform-origin: 0 0;\\n -webkit-transform: translateX(0);\\n transform: translateX(0); } }\\n\\n@-webkit-keyframes slideInRight-leave {\\n 0% {\\n -webkit-transform-origin: 0 0;\\n transform-origin: 0 0;\\n -webkit-transform: translateX(0);\\n transform: translateX(0);\\n opacity: 1; }\\n 100% {\\n -webkit-transform-origin: 0 0;\\n transform-origin: 0 0;\\n -webkit-transform: translateX(100%);\\n transform: translateX(100%);\\n opacity: 0; } }\\n\\n@keyframes slideInRight-leave {\\n 0% {\\n -webkit-transform-origin: 0 0;\\n transform-origin: 0 0;\\n -webkit-transform: translateX(0);\\n transform: translateX(0);\\n opacity: 1; }\\n 100% {\\n -webkit-transform-origin: 0 0;\\n transform-origin: 0 0;\\n -webkit-transform: translateX(100%);\\n transform: translateX(100%);\\n opacity: 0; } }\\n\\n@-webkit-keyframes slideInLeft-enter {\\n 0% {\\n opacity: 0;\\n -webkit-transform-origin: 0 0;\\n transform-origin: 0 0;\\n -webkit-transform: translateX(-100%);\\n transform: translateX(-100%); }\\n to {\\n opacity: 1;\\n -webkit-transform-origin: 0 0;\\n transform-origin: 0 0;\\n -webkit-transform: translateX(0);\\n transform: translateX(0); } }\\n\\n@keyframes slideInLeft-enter {\\n 0% {\\n opacity: 0;\\n -webkit-transform-origin: 0 0;\\n transform-origin: 0 0;\\n -webkit-transform: translateX(-100%);\\n transform: translateX(-100%); }\\n to {\\n opacity: 1;\\n -webkit-transform-origin: 0 0;\\n transform-origin: 0 0;\\n -webkit-transform: translateX(0);\\n transform: translateX(0); } }\\n\\n@-webkit-keyframes slideInLeft-leave {\\n 0% {\\n -webkit-transform-origin: 0 0;\\n transform-origin: 0 0;\\n -webkit-transform: translateX(0);\\n transform: translateX(0);\\n opacity: 1; }\\n 100% {\\n -webkit-transform-origin: 0 0;\\n transform-origin: 0 0;\\n -webkit-transform: translateX(-100%);\\n transform: translateX(-100%);\\n opacity: 0; } }\\n\\n@keyframes slideInLeft-leave {\\n 0% {\\n -webkit-transform-origin: 0 0;\\n transform-origin: 0 0;\\n -webkit-transform: translateX(0);\\n transform: translateX(0);\\n opacity: 1; }\\n 100% {\\n -webkit-transform-origin: 0 0;\\n transform-origin: 0 0;\\n -webkit-transform: translateX(-100%);\\n transform: translateX(-100%);\\n opacity: 0; } }\\n\\n.o-icon-close {\\n display: inline-block;\\n vertical-align: -0.125em; }\\n\\n.o-icon-add {\\n position: absolute;\\n top: 50%;\\n margin-top: -0.5em;\\n margin-left: 0.5em;\\n cursor: pointer; }\\n\\n.o-icon-add:hover {\\n color: #07c160; }\\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","\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 __assign = (this && this.__assign) || function () {\n __assign = Object.assign || function(t) {\n for (var s, i = 1, n = arguments.length; i < n; i++) {\n s = arguments[i];\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))\n t[p] = s[p];\n }\n return t;\n };\n return __assign.apply(this, arguments);\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\");\nvar readyCallbacks = [];\ndocument.addEventListener('DOMContentLoaded', function () {\n domReady.done = true;\n readyCallbacks.forEach(function (callback) {\n callback();\n });\n});\nfunction domReady(callback) {\n if (domReady.done) {\n callback();\n return;\n }\n readyCallbacks.push(callback);\n}\ndomReady.done = false;\nvar Tabs = /** @class */ (function (_super) {\n __extends(Tabs, _super);\n function Tabs() {\n var _this = _super !== null && _super.apply(this, arguments) || this;\n _this.onTabClick = function (evt, index) {\n _this.setActiveBar(evt.currentTarget, index);\n _this.fire('change', {\n tab: _this.props.list[index],\n index: index\n });\n };\n return _this;\n }\n Tabs.prototype.setActiveBar = function (ele, index) {\n var rect = ele.getBoundingClientRect();\n this._x = rect.left - this.baseRect.left;\n this._width = rect.width;\n if (index === 0) {\n this._x = 0;\n this._width -= 20;\n }\n else if (index === this.props.list.length - 1) {\n this._x += 20;\n this._width -= 20;\n }\n else {\n this._x += 20;\n this._width -= 40;\n }\n this.updateProps({\n activeIndex: index\n });\n };\n Tabs.prototype.install = function () {\n var _this = this;\n domReady(function () {\n _this.baseRect = _this.rootNode.getBoundingClientRect();\n _this.setActiveBar(_this['$tab' + _this.props.activeIndex], _this.props.activeIndex);\n });\n };\n Tabs.prototype.installed = function () {\n this.baseRect = this.rootNode.getBoundingClientRect();\n this.setActiveBar(this['$tab' + this.props.activeIndex], this.props.activeIndex);\n };\n Tabs.prototype.removeTab = function (index) {\n var tab = this.props.list.splice(index, 1)[0];\n this.forceUpdate();\n this.fire('remove', {\n tab: tab,\n index: index\n });\n };\n Tabs.prototype.addTab = function (tab) {\n this.props.list.push(tab);\n this.forceUpdate();\n };\n Tabs.prototype.onAddIconClick = function () {\n this.fire('addIconClick');\n };\n Tabs.prototype.render = function (props) {\n var _a, _b, _c, _d, _e;\n var _this = this;\n var activeBarStyle = (props.position === 'left' || props.position === 'right') ? {\n height: \"40px\",\n transform: \"translateY(\" + props.activeIndex * 40 + \"px)\"\n } : {\n width: this._width + \"px\",\n transform: \"translateX(\" + this._x + \"px)\"\n };\n return (omi_1.h(\"div\", __assign({}, omi_1.extractClass(props, 'o-tabs', (_a = {},\n _a[\"o-tabs--\" + props.position] = props.position,\n _a[\"o-tabs--\" + props.type] = props.type,\n _a))),\n omi_1.h(\"div\", { class: omi_1.classNames('o-tabs__header', (_b = {},\n _b[\"is-\" + props.position] = props.position,\n _b)) },\n omi_1.h(\"div\", { class: omi_1.classNames('o-tabs__nav-wrap', (_c = {},\n _c[\"is-\" + props.position] = props.position,\n _c)) },\n omi_1.h(\"div\", { class: \"o-tabs__nav-scroll\" },\n omi_1.h(\"div\", { role: \"tablist\", class: omi_1.classNames('o-tabs__nav', (_d = {},\n _d[\"is-\" + props.position] = props.position,\n _d)) },\n !props.type && omi_1.h(\"div\", { class: omi_1.classNames('o-tabs__active-bar', (_e = {},\n _e[\"is-\" + props.position] = props.position,\n _e)), style: activeBarStyle }),\n props.list.map(function (tab, index) {\n var _a;\n _this._tempTagName = 'o-icon-' + tab.icon;\n return omi_1.h(\"div\", __assign({ ref: function (e) { _this['$tab' + index] = e; }, role: \"tab\", onClick: function (evt) { return props.activeIndex !== index && _this.onTabClick(evt, index); }, tabindex: props.active === index ? '0' : -1 }, omi_1.extractClass(props, 'o-tabs__item', (_a = {},\n _a[\"is-\" + props.position] = props.position,\n _a['is-active'] = props.activeIndex === index,\n _a['is-closable'] = props.closable,\n _a))),\n tab.icon && omi_1.h(_this._tempTagName, null),\n tab.label,\n props.closable && omi_1.h(\"svg\", { onClick: function (_) { _this.removeTab(index); }, class: \"o-icon-close\", style: props.activeIndex === index && \"visibility: visible;\", 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 })),\n props.addable && omi_1.h(\"svg\", { class: \"o-icon-add\", fill: \"currentColor\", width: \"1em\", height: \"1em\", focusable: \"false\", viewBox: \"0 0 24 24\", \"aria-hidden\": \"true\", onClick: this.onAddIconClick },\n omi_1.h(\"path\", { d: \"M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6v2z\" })))))));\n };\n Tabs.css = css;\n Tabs.defaultProps = {\n position: 'top',\n closable: false,\n addable: false\n };\n Tabs.propTypes = {\n list: Array,\n activeIndex: Number,\n type: String,\n position: String,\n closable: Boolean,\n addable: Boolean\n };\n Tabs = __decorate([\n omi_1.tag('o-tabs')\n ], Tabs);\n return Tabs;\n}(omi_1.WeElement));\nexports.default = Tabs;\n","module.exports = __WEBPACK_EXTERNAL_MODULE_omi__;"],"sourceRoot":""} \ No newline at end of file +{"version":3,"sources":["webpack://OTabs/webpack/universalModuleDefinition","webpack://OTabs/webpack/bootstrap","webpack://OTabs/./src/index.scss","webpack://OTabs/./node_modules/_css-loader@1.0.1@css-loader/lib/css-base.js","webpack://OTabs/./src/index.scss?56db","webpack://OTabs/./src/index.tsx","webpack://OTabs/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;QAC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;AACJ;AACA;AACA,GAAG;AACH;;AAEA;AACA;AACA;AACA;AACA;AACA,gBAAgB,iBAAiB;AACjC;AACA;AACA;AACA;AACA,YAAY,oBAAoB;AAChC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA,oDAAoD,cAAc;;AAElE;AACA;;;;;;;;;;;;;AC1EA,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,gDAAgD,OAAO;AACvD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,4CAA4C,QAAQ;AACpD;AACA;AACA,8CAA8C,cAAc;AAC5D,YAAY,mBAAO,CAAC,gBAAK;AACzB,UAAU,mBAAO,CAAC,sCAAc;AAChC;AACA;AACA;AACA;AACA;AACA,KAAK;AACL,CAAC;AACD;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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA,0CAA0C,8CAA8C;AACxF;AACA;AACA;AACA,4BAA4B,mDAAmD;AAC/E;AACA,0BAA0B;AAC1B,gCAAgC,qDAAqD;AACrF;AACA,8BAA8B;AAC9B,oCAAoC,8BAA8B;AAClE,wCAAwC,iEAAiE;AACzG;AACA,sCAAsC;AACtC,2DAA2D,uDAAuD;AAClH;AACA,iEAAiE;AACjE;AACA;AACA;AACA,gEAAgE,oBAAoB,2BAA2B,EAAE,wCAAwC,oEAAoE,EAAE,+CAA+C,oDAAoD;AAClU;AACA;AACA;AACA;AACA;AACA;AACA,sEAAsE,wBAAwB,wBAAwB,EAAE,oFAAoF,uHAAuH;AACnU,yDAAyD,6GAA6G;AACtK,6BAA6B;AAC7B,yDAAyD,wKAAwK;AACjO,6CAA6C,2CAA2C;AACxF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC;AACD;;;;;;;;;;;;AC1KA,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[\"OTabs\"] = factory(require(\"omi\"));\n\telse\n\t\troot[\"OTabs\"] = 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","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, \":host {\\n display: block; }\\n\\n.o-tabs__header {\\n padding: 0;\\n position: relative;\\n margin: 0 0 15px; }\\n\\n.o-tabs__active-bar {\\n position: absolute;\\n bottom: 0;\\n left: 0;\\n height: 2px;\\n background-color: #07c160;\\n z-index: 1;\\n -webkit-transition: -webkit-transform 0.3s cubic-bezier(0.645, 0.045, 0.355, 1);\\n transition: -webkit-transform 0.3s cubic-bezier(0.645, 0.045, 0.355, 1);\\n transition: transform 0.3s cubic-bezier(0.645, 0.045, 0.355, 1);\\n transition: transform 0.3s cubic-bezier(0.645, 0.045, 0.355, 1), -webkit-transform 0.3s cubic-bezier(0.645, 0.045, 0.355, 1);\\n list-style: none; }\\n\\n.o-tabs__new-tab {\\n float: right;\\n border: 1px solid #d3dce6;\\n height: 18px;\\n width: 18px;\\n line-height: 18px;\\n margin: 12px 0 9px 10px;\\n border-radius: 3px;\\n text-align: center;\\n font-size: 12px;\\n color: #d3dce6;\\n cursor: pointer;\\n -webkit-transition: all .15s;\\n transition: all .15s; }\\n\\n.o-tabs__new-tab .o-icon-plus {\\n -webkit-transform: scale(0.8, 0.8);\\n transform: scale(0.8, 0.8); }\\n\\n.o-tabs__new-tab:hover {\\n color: #07c160; }\\n\\n.o-tabs__nav-wrap {\\n overflow: hidden;\\n margin-bottom: -1px;\\n position: relative; }\\n\\n.o-tabs__nav-wrap::after {\\n content: \\\"\\\";\\n position: absolute;\\n left: 0;\\n bottom: 0;\\n width: 100%;\\n height: 2px;\\n background-color: #E4E7ED;\\n z-index: 1; }\\n\\n.o-tabs--border-card > .o-tabs__header .o-tabs__nav-wrap::after,\\n.o-tabs--card > .o-tabs__header .o-tabs__nav-wrap::after {\\n content: none; }\\n\\n.o-tabs__nav-wrap.is-scrollable {\\n padding: 0 20px;\\n -webkit-box-sizing: border-box;\\n box-sizing: border-box; }\\n\\n.o-tabs__nav-scroll {\\n overflow: hidden; }\\n\\n.o-tabs__nav-next,\\n.o-tabs__nav-prev {\\n position: absolute;\\n cursor: pointer;\\n line-height: 44px;\\n font-size: 12px;\\n color: #909399; }\\n\\n.o-tabs__nav-next {\\n right: 0; }\\n\\n.o-tabs__nav-prev {\\n left: 0; }\\n\\n.o-tabs__nav {\\n white-space: nowrap;\\n position: relative;\\n -webkit-transition: -webkit-transform .3s;\\n transition: -webkit-transform .3s;\\n transition: transform .3s;\\n transition: transform .3s, -webkit-transform .3s;\\n float: left;\\n z-index: 2; }\\n\\n.o-tabs__nav.is-stretch {\\n min-width: 100%;\\n display: -webkit-box;\\n display: -ms-flexbox;\\n display: flex; }\\n\\n.o-tabs__nav.is-stretch > * {\\n -webkit-box-flex: 1;\\n -ms-flex: 1;\\n flex: 1;\\n text-align: center; }\\n\\n.o-tabs__item {\\n padding: 0 20px;\\n height: 40px;\\n -webkit-box-sizing: border-box;\\n box-sizing: border-box;\\n line-height: 40px;\\n display: inline-block;\\n list-style: none;\\n font-size: 14px;\\n font-weight: 500;\\n color: #303133;\\n position: relative; }\\n\\n.o-tabs__item:focus,\\n.o-tabs__item:focus:active {\\n outline: 0; }\\n\\n.o-tabs__item:focus.is-active.is-focus:not(:active) {\\n -webkit-box-shadow: 0 0 2px 2px #07c160 inset;\\n box-shadow: 0 0 2px 2px #07c160 inset;\\n border-radius: 3px; }\\n\\n.o-tabs__item:hover .o-icon-close {\\n visibility: visible; }\\n\\n.o-tabs__item .o-icon-close {\\n visibility: hidden;\\n border-radius: 50%;\\n text-align: center;\\n -webkit-transition: all 0.3s cubic-bezier(0.645, 0.045, 0.355, 1);\\n transition: all 0.3s cubic-bezier(0.645, 0.045, 0.355, 1);\\n margin-left: 5px; }\\n\\n.o-tabs__item .o-icon-close:before {\\n -webkit-transform: scale(0.9);\\n transform: scale(0.9);\\n display: inline-block; }\\n\\n.o-tabs__item .o-icon-close:hover {\\n background-color: #C0C4CC;\\n color: #FFF; }\\n\\n.o-tabs__item.is-active {\\n color: #07c160; }\\n\\n.o-tabs__item:hover {\\n color: #07c160;\\n cursor: pointer; }\\n\\n.o-tabs__item.is-disabled {\\n color: #C0C4CC;\\n cursor: default; }\\n\\n.o-tabs__content {\\n overflow: hidden;\\n position: relative; }\\n\\n.o-tabs--card > .o-tabs__header {\\n border-bottom: 1px solid #E4E7ED; }\\n\\n.o-tabs--card > .o-tabs__header .o-tabs__nav {\\n border: 1px solid #E4E7ED;\\n border-bottom: none;\\n border-radius: 4px 4px 0 0;\\n -webkit-box-sizing: border-box;\\n box-sizing: border-box; }\\n\\n.o-tabs--card > .o-tabs__header .o-tabs__active-bar {\\n display: none; }\\n\\n.o-tabs--card > .o-tabs__header .o-tabs__item .o-icon-close {\\n position: relative;\\n font-size: 12px;\\n width: 0;\\n height: 14px;\\n vertical-align: middle;\\n line-height: 15px;\\n overflow: hidden;\\n top: -1px;\\n right: -2px;\\n -webkit-transform-origin: 100% 50%;\\n transform-origin: 100% 50%; }\\n\\n.o-tabs--card > .o-tabs__header .o-tabs__item.is-active.is-closable .o-icon-close,\\n.o-tabs--card > .o-tabs__header .o-tabs__item.is-closable:hover .o-icon-close {\\n width: 14px; }\\n\\n.o-tabs--card > .o-tabs__header .o-tabs__item {\\n border-bottom: 1px solid transparent;\\n border-left: 1px solid #E4E7ED;\\n -webkit-transition: color 0.3s cubic-bezier(0.645, 0.045, 0.355, 1), padding 0.3s cubic-bezier(0.645, 0.045, 0.355, 1);\\n transition: color 0.3s cubic-bezier(0.645, 0.045, 0.355, 1), padding 0.3s cubic-bezier(0.645, 0.045, 0.355, 1); }\\n\\n.o-tabs--card > .o-tabs__header .o-tabs__item:first-child {\\n border-left: none; }\\n\\n.o-tabs--card > .o-tabs__header .o-tabs__item.is-closable:hover {\\n padding-left: 13px;\\n padding-right: 13px; }\\n\\n.o-tabs--card > .o-tabs__header .o-tabs__item.is-active {\\n border-bottom-color: #FFF; }\\n\\n.o-tabs--card > .o-tabs__header .o-tabs__item.is-active.is-closable {\\n padding-left: 20px;\\n padding-right: 20px; }\\n\\n.o-tabs--border-card {\\n background: #FFF;\\n border: 1px solid #DCDFE6;\\n border-bottom: none; }\\n\\n.o-tabs--border-card.o-tabs--bottom {\\n border: 1px solid #DCDFE6; }\\n\\n.o-tabs--border-card > .o-tabs__content {\\n padding: 15px; }\\n\\n.o-tabs--border-card > .o-tabs__header {\\n background-color: #F5F7FA;\\n border-bottom: 1px solid #E4E7ED;\\n margin: 0; }\\n\\n.o-tabs--border-card > .o-tabs__header .o-tabs__item {\\n -webkit-transition: all 0.3s cubic-bezier(0.645, 0.045, 0.355, 1);\\n transition: all 0.3s cubic-bezier(0.645, 0.045, 0.355, 1);\\n border: 1px solid transparent;\\n margin-top: -1px;\\n color: #909399; }\\n\\n.o-tabs--border-card > .o-tabs__header .o-tabs__item + .o-tabs__item,\\n.o-tabs--border-card > .o-tabs__header .o-tabs__item:first-child {\\n margin-left: -1px; }\\n\\n.o-tabs--border-card > .o-tabs__header .o-tabs__item.is-active {\\n color: #07c160;\\n background-color: #FFF;\\n border-right-color: #DCDFE6;\\n border-left-color: #DCDFE6; }\\n\\n.o-tabs--border-card > .o-tabs__header .o-tabs__item:not(.is-disabled):hover {\\n color: #07c160; }\\n\\n.o-tabs--border-card > .o-tabs__header .o-tabs__item.is-disabled {\\n color: #C0C4CC; }\\n\\n.o-tabs--border-card > .o-tabs__header .is-scrollable .o-tabs__item:first-child {\\n margin-left: 0; }\\n\\n.o-tabs--bottom .o-tabs__item.is-bottom:nth-child(2),\\n.o-tabs--bottom .o-tabs__item.is-top:nth-child(2),\\n.o-tabs--top .o-tabs__item.is-bottom:nth-child(2),\\n.o-tabs--top .o-tabs__item.is-top:nth-child(2) {\\n padding-left: 0; }\\n\\n.o-tabs--bottom .o-tabs__item.is-bottom:last-child,\\n.o-tabs--bottom .o-tabs__item.is-top:last-child,\\n.o-tabs--top .o-tabs__item.is-bottom:last-child,\\n.o-tabs--top .o-tabs__item.is-top:last-child {\\n padding-right: 0; }\\n\\n.o-tabs--bottom .o-tabs--left > .o-tabs__header .o-tabs__item:nth-child(2),\\n.o-tabs--bottom .o-tabs--right > .o-tabs__header .o-tabs__item:nth-child(2),\\n.o-tabs--bottom.o-tabs--border-card > .o-tabs__header .o-tabs__item:nth-child(2),\\n.o-tabs--bottom.o-tabs--card > .o-tabs__header .o-tabs__item:nth-child(2),\\n.o-tabs--top .o-tabs--left > .o-tabs__header .o-tabs__item:nth-child(2),\\n.o-tabs--top .o-tabs--right > .o-tabs__header .o-tabs__item:nth-child(2),\\n.o-tabs--top.o-tabs--border-card > .o-tabs__header .o-tabs__item:nth-child(2),\\n.o-tabs--top.o-tabs--card > .o-tabs__header .o-tabs__item:nth-child(2) {\\n padding-left: 20px; }\\n\\n.o-tabs--bottom .o-tabs--left > .o-tabs__header .o-tabs__item:last-child,\\n.o-tabs--bottom .o-tabs--right > .o-tabs__header .o-tabs__item:last-child,\\n.o-tabs--bottom.o-tabs--border-card > .o-tabs__header .o-tabs__item:last-child,\\n.o-tabs--bottom.o-tabs--card > .o-tabs__header .o-tabs__item:last-child,\\n.o-tabs--top .o-tabs--left > .o-tabs__header .o-tabs__item:last-child,\\n.o-tabs--top .o-tabs--right > .o-tabs__header .o-tabs__item:last-child,\\n.o-tabs--top.o-tabs--border-card > .o-tabs__header .o-tabs__item:last-child,\\n.o-tabs--top.o-tabs--card > .o-tabs__header .o-tabs__item:last-child {\\n padding-right: 20px; }\\n\\n.o-tabs--bottom.o-tabs--border-card {\\n border-top: none; }\\n\\n.o-tabs--bottom.o-tabs--border-card .o-tabs__header.is-bottom {\\n border-bottom: 0;\\n border-top: 1px solid #DCDFE6; }\\n\\n.o-tabs--bottom.o-tabs--border-card .o-tabs__nav-wrap.is-bottom {\\n margin-top: -1px;\\n margin-bottom: 0; }\\n\\n.o-tabs--bottom.o-tabs--border-card .o-tabs__item.is-bottom:not(.is-active) {\\n border: 1px solid transparent; }\\n\\n.o-tabs--bottom.o-tabs--border-card .o-tabs__item.is-bottom {\\n margin: 0 -1px -1px; }\\n\\n.o-tabs--left,\\n.o-tabs--right {\\n overflow: hidden; }\\n\\n.o-tabs--left .o-tabs__header.is-left,\\n.o-tabs--left .o-tabs__header.is-right,\\n.o-tabs--left .o-tabs__nav-scroll,\\n.o-tabs--left .o-tabs__nav-wrap.is-left,\\n.o-tabs--left .o-tabs__nav-wrap.is-right,\\n.o-tabs--right .o-tabs__header.is-left,\\n.o-tabs--right .o-tabs__header.is-right,\\n.o-tabs--right .o-tabs__nav-scroll,\\n.o-tabs--right .o-tabs__nav-wrap.is-left,\\n.o-tabs--right .o-tabs__nav-wrap.is-right {\\n height: 100%; }\\n\\n.o-tabs--left .o-tabs__active-bar.is-left,\\n.o-tabs--left .o-tabs__active-bar.is-right,\\n.o-tabs--right .o-tabs__active-bar.is-left,\\n.o-tabs--right .o-tabs__active-bar.is-right {\\n top: 0;\\n bottom: auto;\\n width: 2px;\\n height: auto; }\\n\\n.o-tabs--left .o-tabs__nav-wrap.is-left,\\n.o-tabs--left .o-tabs__nav-wrap.is-right,\\n.o-tabs--right .o-tabs__nav-wrap.is-left,\\n.o-tabs--right .o-tabs__nav-wrap.is-right {\\n margin-bottom: 0; }\\n\\n.o-tabs--left .o-tabs__nav-wrap.is-left > .o-tabs__nav-next,\\n.o-tabs--left .o-tabs__nav-wrap.is-left > .o-tabs__nav-prev,\\n.o-tabs--left .o-tabs__nav-wrap.is-right > .o-tabs__nav-next,\\n.o-tabs--left .o-tabs__nav-wrap.is-right > .o-tabs__nav-prev,\\n.o-tabs--right .o-tabs__nav-wrap.is-left > .o-tabs__nav-next,\\n.o-tabs--right .o-tabs__nav-wrap.is-left > .o-tabs__nav-prev,\\n.o-tabs--right .o-tabs__nav-wrap.is-right > .o-tabs__nav-next,\\n.o-tabs--right .o-tabs__nav-wrap.is-right > .o-tabs__nav-prev {\\n height: 30px;\\n line-height: 30px;\\n width: 100%;\\n text-align: center;\\n cursor: pointer; }\\n\\n.o-tabs--left .o-tabs__nav-wrap.is-left > .o-tabs__nav-next i,\\n.o-tabs--left .o-tabs__nav-wrap.is-left > .o-tabs__nav-prev i,\\n.o-tabs--left .o-tabs__nav-wrap.is-right > .o-tabs__nav-next i,\\n.o-tabs--left .o-tabs__nav-wrap.is-right > .o-tabs__nav-prev i,\\n.o-tabs--right .o-tabs__nav-wrap.is-left > .o-tabs__nav-next i,\\n.o-tabs--right .o-tabs__nav-wrap.is-left > .o-tabs__nav-prev i,\\n.o-tabs--right .o-tabs__nav-wrap.is-right > .o-tabs__nav-next i,\\n.o-tabs--right .o-tabs__nav-wrap.is-right > .o-tabs__nav-prev i {\\n -webkit-transform: rotateZ(90deg);\\n transform: rotateZ(90deg); }\\n\\n.o-tabs--left .o-tabs__nav-wrap.is-left > .o-tabs__nav-prev,\\n.o-tabs--left .o-tabs__nav-wrap.is-right > .o-tabs__nav-prev,\\n.o-tabs--right .o-tabs__nav-wrap.is-left > .o-tabs__nav-prev,\\n.o-tabs--right .o-tabs__nav-wrap.is-right > .o-tabs__nav-prev {\\n left: auto;\\n top: 0; }\\n\\n.o-tabs--left .o-tabs__nav-wrap.is-left > .o-tabs__nav-next,\\n.o-tabs--left .o-tabs__nav-wrap.is-right > .o-tabs__nav-next,\\n.o-tabs--right .o-tabs__nav-wrap.is-left > .o-tabs__nav-next,\\n.o-tabs--right .o-tabs__nav-wrap.is-right > .o-tabs__nav-next {\\n right: auto;\\n bottom: 0; }\\n\\n.o-tabs--left .o-tabs__active-bar.is-left,\\n.o-tabs--left .o-tabs__nav-wrap.is-left::after {\\n right: 0;\\n left: auto; }\\n\\n.o-tabs--left .o-tabs__nav-wrap.is-left.is-scrollable,\\n.o-tabs--left .o-tabs__nav-wrap.is-right.is-scrollable,\\n.o-tabs--right .o-tabs__nav-wrap.is-left.is-scrollable,\\n.o-tabs--right .o-tabs__nav-wrap.is-right.is-scrollable {\\n padding: 30px 0; }\\n\\n.o-tabs--left .o-tabs__nav-wrap.is-left::after,\\n.o-tabs--left .o-tabs__nav-wrap.is-right::after,\\n.o-tabs--right .o-tabs__nav-wrap.is-left::after,\\n.o-tabs--right .o-tabs__nav-wrap.is-right::after {\\n height: 100%;\\n width: 2px;\\n bottom: auto;\\n top: 0; }\\n\\n.o-tabs--left .o-tabs__nav.is-left,\\n.o-tabs--left .o-tabs__nav.is-right,\\n.o-tabs--right .o-tabs__nav.is-left,\\n.o-tabs--right .o-tabs__nav.is-right {\\n float: none; }\\n\\n.o-tabs--left .o-tabs__item.is-left,\\n.o-tabs--left .o-tabs__item.is-right,\\n.o-tabs--right .o-tabs__item.is-left,\\n.o-tabs--right .o-tabs__item.is-right {\\n display: block; }\\n\\n.o-tabs--left.o-tabs--card .o-tabs__active-bar.is-left,\\n.o-tabs--right.o-tabs--card .o-tabs__active-bar.is-right {\\n display: none; }\\n\\n.o-tabs--left .o-tabs__header.is-left {\\n float: left;\\n margin-bottom: 0;\\n margin-right: 10px; }\\n\\n.o-tabs--left .o-tabs__nav-wrap.is-left {\\n margin-right: -1px; }\\n\\n.o-tabs--left .o-tabs__item.is-left {\\n text-align: right; }\\n\\n.o-tabs--left.o-tabs--card .o-tabs__item.is-left {\\n border-left: none;\\n border-right: 1px solid #E4E7ED;\\n border-bottom: none;\\n border-top: 1px solid #E4E7ED;\\n text-align: left; }\\n\\n.o-tabs--left.o-tabs--card .o-tabs__item.is-left:first-child {\\n border-right: 1px solid #E4E7ED;\\n border-top: none; }\\n\\n.o-tabs--left.o-tabs--card .o-tabs__item.is-left.is-active {\\n border: 1px solid #E4E7ED;\\n border-right-color: #fff;\\n border-left: none;\\n border-bottom: none; }\\n\\n.o-tabs--left.o-tabs--card .o-tabs__item.is-left.is-active:first-child {\\n border-top: none; }\\n\\n.o-tabs--left.o-tabs--card .o-tabs__item.is-left.is-active:last-child {\\n border-bottom: none; }\\n\\n.o-tabs--left.o-tabs--card .o-tabs__nav {\\n border-radius: 4px 0 0 4px;\\n border-bottom: 1px solid #E4E7ED;\\n border-right: none; }\\n\\n.o-tabs--left.o-tabs--card .o-tabs__new-tab {\\n float: none; }\\n\\n.o-tabs--left.o-tabs--border-card .o-tabs__header.is-left {\\n border-right: 1px solid #dfe4ed; }\\n\\n.o-tabs--left.o-tabs--border-card .o-tabs__item.is-left {\\n border: 1px solid transparent;\\n margin: -1px 0 -1px -1px; }\\n\\n.o-tabs--left.o-tabs--border-card .o-tabs__item.is-left.is-active {\\n border-color: #d1dbe5 transparent; }\\n\\n.o-tabs--right .o-tabs__header.is-right {\\n float: right;\\n margin-bottom: 0;\\n margin-left: 10px; }\\n\\n.o-tabs--right .o-tabs__nav-wrap.is-right {\\n margin-left: -1px; }\\n\\n.o-tabs--right .o-tabs__nav-wrap.is-right::after {\\n left: 0;\\n right: auto; }\\n\\n.o-tabs--right .o-tabs__active-bar.is-right {\\n left: 0; }\\n\\n.o-tabs--right.o-tabs--card .o-tabs__item.is-right {\\n border-bottom: none;\\n border-top: 1px solid #E4E7ED; }\\n\\n.o-tabs--right.o-tabs--card .o-tabs__item.is-right:first-child {\\n border-left: 1px solid #E4E7ED;\\n border-top: none; }\\n\\n.o-tabs--right.o-tabs--card .o-tabs__item.is-right.is-active {\\n border: 1px solid #E4E7ED;\\n border-left-color: #fff;\\n border-right: none;\\n border-bottom: none; }\\n\\n.o-tabs--right.o-tabs--card .o-tabs__item.is-right.is-active:first-child {\\n border-top: none; }\\n\\n.o-tabs--right.o-tabs--card .o-tabs__item.is-right.is-active:last-child {\\n border-bottom: none; }\\n\\n.o-tabs--right.o-tabs--card .o-tabs__nav {\\n border-radius: 0 4px 4px 0;\\n border-bottom: 1px solid #E4E7ED;\\n border-left: none; }\\n\\n.o-tabs--right.o-tabs--border-card .o-tabs__header.is-right {\\n border-left: 1px solid #dfe4ed; }\\n\\n.o-tabs--right.o-tabs--border-card .o-tabs__item.is-right {\\n border: 1px solid transparent;\\n margin: -1px -1px -1px 0; }\\n\\n.o-tabs--right.o-tabs--border-card .o-tabs__item.is-right.is-active {\\n border-color: #d1dbe5 transparent; }\\n\\n.slideInLeft-transition,\\n.slideInRight-transition {\\n display: inline-block; }\\n\\n.slideInRight-enter {\\n -webkit-animation: slideInRight-enter .3s;\\n animation: slideInRight-enter .3s; }\\n\\n.slideInRight-leave {\\n position: absolute;\\n left: 0;\\n right: 0;\\n -webkit-animation: slideInRight-leave .3s;\\n animation: slideInRight-leave .3s; }\\n\\n.slideInLeft-enter {\\n -webkit-animation: slideInLeft-enter .3s;\\n animation: slideInLeft-enter .3s; }\\n\\n.slideInLeft-leave {\\n position: absolute;\\n left: 0;\\n right: 0;\\n -webkit-animation: slideInLeft-leave .3s;\\n animation: slideInLeft-leave .3s; }\\n\\n@-webkit-keyframes slideInRight-enter {\\n 0% {\\n opacity: 0;\\n -webkit-transform-origin: 0 0;\\n transform-origin: 0 0;\\n -webkit-transform: translateX(100%);\\n transform: translateX(100%); }\\n to {\\n opacity: 1;\\n -webkit-transform-origin: 0 0;\\n transform-origin: 0 0;\\n -webkit-transform: translateX(0);\\n transform: translateX(0); } }\\n\\n@keyframes slideInRight-enter {\\n 0% {\\n opacity: 0;\\n -webkit-transform-origin: 0 0;\\n transform-origin: 0 0;\\n -webkit-transform: translateX(100%);\\n transform: translateX(100%); }\\n to {\\n opacity: 1;\\n -webkit-transform-origin: 0 0;\\n transform-origin: 0 0;\\n -webkit-transform: translateX(0);\\n transform: translateX(0); } }\\n\\n@-webkit-keyframes slideInRight-leave {\\n 0% {\\n -webkit-transform-origin: 0 0;\\n transform-origin: 0 0;\\n -webkit-transform: translateX(0);\\n transform: translateX(0);\\n opacity: 1; }\\n 100% {\\n -webkit-transform-origin: 0 0;\\n transform-origin: 0 0;\\n -webkit-transform: translateX(100%);\\n transform: translateX(100%);\\n opacity: 0; } }\\n\\n@keyframes slideInRight-leave {\\n 0% {\\n -webkit-transform-origin: 0 0;\\n transform-origin: 0 0;\\n -webkit-transform: translateX(0);\\n transform: translateX(0);\\n opacity: 1; }\\n 100% {\\n -webkit-transform-origin: 0 0;\\n transform-origin: 0 0;\\n -webkit-transform: translateX(100%);\\n transform: translateX(100%);\\n opacity: 0; } }\\n\\n@-webkit-keyframes slideInLeft-enter {\\n 0% {\\n opacity: 0;\\n -webkit-transform-origin: 0 0;\\n transform-origin: 0 0;\\n -webkit-transform: translateX(-100%);\\n transform: translateX(-100%); }\\n to {\\n opacity: 1;\\n -webkit-transform-origin: 0 0;\\n transform-origin: 0 0;\\n -webkit-transform: translateX(0);\\n transform: translateX(0); } }\\n\\n@keyframes slideInLeft-enter {\\n 0% {\\n opacity: 0;\\n -webkit-transform-origin: 0 0;\\n transform-origin: 0 0;\\n -webkit-transform: translateX(-100%);\\n transform: translateX(-100%); }\\n to {\\n opacity: 1;\\n -webkit-transform-origin: 0 0;\\n transform-origin: 0 0;\\n -webkit-transform: translateX(0);\\n transform: translateX(0); } }\\n\\n@-webkit-keyframes slideInLeft-leave {\\n 0% {\\n -webkit-transform-origin: 0 0;\\n transform-origin: 0 0;\\n -webkit-transform: translateX(0);\\n transform: translateX(0);\\n opacity: 1; }\\n 100% {\\n -webkit-transform-origin: 0 0;\\n transform-origin: 0 0;\\n -webkit-transform: translateX(-100%);\\n transform: translateX(-100%);\\n opacity: 0; } }\\n\\n@keyframes slideInLeft-leave {\\n 0% {\\n -webkit-transform-origin: 0 0;\\n transform-origin: 0 0;\\n -webkit-transform: translateX(0);\\n transform: translateX(0);\\n opacity: 1; }\\n 100% {\\n -webkit-transform-origin: 0 0;\\n transform-origin: 0 0;\\n -webkit-transform: translateX(-100%);\\n transform: translateX(-100%);\\n opacity: 0; } }\\n\\n.o-icon-close {\\n display: inline-block;\\n vertical-align: -0.125em; }\\n\\n.o-icon-add {\\n position: absolute;\\n top: 50%;\\n margin-top: -0.5em;\\n margin-left: 0.5em;\\n cursor: pointer; }\\n\\n.o-icon-add:hover {\\n color: #07c160; }\\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","\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 __assign = (this && this.__assign) || function () {\n __assign = Object.assign || function(t) {\n for (var s, i = 1, n = arguments.length; i < n; i++) {\n s = arguments[i];\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))\n t[p] = s[p];\n }\n return t;\n };\n return __assign.apply(this, arguments);\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\");\nvar readyCallbacks = [];\ndocument.addEventListener('DOMContentLoaded', function () {\n domReady.done = true;\n readyCallbacks.forEach(function (callback) {\n callback();\n });\n});\nfunction domReady(callback) {\n if (domReady.done) {\n callback();\n return;\n }\n readyCallbacks.push(callback);\n}\ndomReady.done = false;\nvar Tabs = /** @class */ (function (_super) {\n __extends(Tabs, _super);\n function Tabs() {\n var _this = _super !== null && _super.apply(this, arguments) || this;\n _this.onTabClick = function (evt, index) {\n _this.setActiveBar(evt.currentTarget, index);\n _this.fire('change', {\n tab: _this.props.list[index],\n index: index\n });\n };\n return _this;\n }\n Tabs.prototype.setActiveBar = function (ele, index) {\n var rect = ele.getBoundingClientRect();\n this._x = rect.left - this.baseRect.left;\n this._width = rect.width;\n if (index === 0) {\n this._x = 0;\n this._width -= 20;\n }\n else if (index === this.props.list.length - 1) {\n this._x += 20;\n this._width -= 20;\n }\n else {\n this._x += 20;\n this._width -= 40;\n }\n this.updateProps({\n activeIndex: index\n });\n };\n Tabs.prototype.install = function () {\n var _this = this;\n domReady(function () {\n _this.baseRect = _this.rootNode.getBoundingClientRect();\n _this.setActiveBar(_this['$tab' + _this.props.activeIndex], _this.props.activeIndex);\n });\n };\n Tabs.prototype.installed = function () {\n this.baseRect = this.rootNode.getBoundingClientRect();\n this.setActiveBar(this['$tab' + this.props.activeIndex], this.props.activeIndex);\n };\n Tabs.prototype.removeTab = function (index) {\n var tab = this.props.list.splice(index, 1)[0];\n this.forceUpdate();\n this.fire('remove', {\n tab: tab,\n index: index\n });\n };\n Tabs.prototype.addTab = function (tab) {\n this.props.list.push(tab);\n this.forceUpdate();\n };\n Tabs.prototype.onAddIconClick = function () {\n this.fire('add-icon-click');\n };\n Tabs.prototype.render = function (props) {\n var _a, _b, _c, _d, _e;\n var _this = this;\n var activeBarStyle = (props.position === 'left' || props.position === 'right') ? {\n height: \"40px\",\n transform: \"translateY(\" + props.activeIndex * 40 + \"px)\"\n } : {\n width: this._width + \"px\",\n transform: \"translateX(\" + this._x + \"px)\"\n };\n return (omi_1.h(\"div\", __assign({}, omi_1.extractClass(props, 'o-tabs', (_a = {},\n _a[\"o-tabs--\" + props.position] = props.position,\n _a[\"o-tabs--\" + props.type] = props.type,\n _a))),\n omi_1.h(\"div\", { class: omi_1.classNames('o-tabs__header', (_b = {},\n _b[\"is-\" + props.position] = props.position,\n _b)) },\n omi_1.h(\"div\", { class: omi_1.classNames('o-tabs__nav-wrap', (_c = {},\n _c[\"is-\" + props.position] = props.position,\n _c)) },\n omi_1.h(\"div\", { class: \"o-tabs__nav-scroll\" },\n omi_1.h(\"div\", { role: \"tablist\", class: omi_1.classNames('o-tabs__nav', (_d = {},\n _d[\"is-\" + props.position] = props.position,\n _d)) },\n !props.type && omi_1.h(\"div\", { class: omi_1.classNames('o-tabs__active-bar', (_e = {},\n _e[\"is-\" + props.position] = props.position,\n _e)), style: activeBarStyle }),\n props.list.map(function (tab, index) {\n var _a;\n _this._tempTagName = 'o-icon-' + tab.icon;\n return omi_1.h(\"div\", __assign({ ref: function (e) { _this['$tab' + index] = e; }, role: \"tab\", onClick: function (evt) { return props.activeIndex !== index && _this.onTabClick(evt, index); }, tabindex: props.active === index ? '0' : -1 }, omi_1.extractClass(props, 'o-tabs__item', (_a = {},\n _a[\"is-\" + props.position] = props.position,\n _a['is-active'] = props.activeIndex === index,\n _a['is-closable'] = props.closable,\n _a))),\n tab.icon && omi_1.h(_this._tempTagName, null),\n tab.label,\n props.closable && omi_1.h(\"svg\", { onClick: function (_) { _this.removeTab(index); }, class: \"o-icon-close\", style: props.activeIndex === index && \"visibility: visible;\", 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 })),\n props.addable && omi_1.h(\"svg\", { class: \"o-icon-add\", fill: \"currentColor\", width: \"1em\", height: \"1em\", focusable: \"false\", viewBox: \"0 0 24 24\", \"aria-hidden\": \"true\", onClick: this.onAddIconClick },\n omi_1.h(\"path\", { d: \"M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6v2z\" })))))));\n };\n Tabs.css = css;\n Tabs.defaultProps = {\n position: 'top',\n closable: false,\n addable: false\n };\n Tabs.propTypes = {\n list: Array,\n activeIndex: Number,\n type: String,\n position: String,\n closable: Boolean,\n addable: Boolean\n };\n Tabs = __decorate([\n omi_1.tag('o-tabs')\n ], Tabs);\n return Tabs;\n}(omi_1.WeElement));\nexports.default = Tabs;\n","module.exports = __WEBPACK_EXTERNAL_MODULE_omi__;"],"sourceRoot":""} \ No newline at end of file diff --git a/components/tabs/src/index.tsx b/components/tabs/src/index.tsx index 0d41b5b22..6d262ba4f 100644 --- a/components/tabs/src/index.tsx +++ b/components/tabs/src/index.tsx @@ -104,7 +104,7 @@ export default class Tabs extends WeElement{ } onAddIconClick() { - this.fire('addIconClick') + this.fire('add-icon-click') } _tempTagName: string diff --git a/components/tabs/tsconfig.demo.json b/components/tabs/tsconfig.demo.json deleted file mode 100644 index 3928131ce..000000000 --- a/components/tabs/tsconfig.demo.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "compilerOptions": { - "baseUrl": ".", - "experimentalDecorators": true, - "jsx": "react", - "jsxFactory": "h", - "target": "es5", - "outDir": "dist", - "allowJs": true - }, - "include": [ - "src/**/*" - ] -} \ No newline at end of file