@tntd/reference 1.0.1 → 1.0.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,5 +1,5 @@
1
1
  declare namespace _default {
2
- const test: string;
2
+ const test: string
3
3
  }
4
- export default _default;
5
- //# sourceMappingURL=common.d.ts.map
4
+ export default _default
5
+ //# sourceMappingURL=common.d.ts.map
@@ -1,16 +1,16 @@
1
1
  declare namespace _default {
2
- export { common };
3
- export { referencebatchcheck };
4
- export { referencebatchdrawer };
5
- export { referencecheck };
6
- export { referencedrawer };
7
- export { referenceinfo };
2
+ export { common }
3
+ export { referencebatchcheck }
4
+ export { referencebatchdrawer }
5
+ export { referencecheck }
6
+ export { referencedrawer }
7
+ export { referenceinfo }
8
8
  }
9
- export default _default;
10
- import common from "./common";
11
- import referencebatchcheck from "./referencebatchcheck";
12
- import referencebatchdrawer from "./referencebatchdrawer";
13
- import referencecheck from "./referencecheck";
14
- import referencedrawer from "./referencedrawer";
15
- import referenceinfo from "./referenceinfo";
16
- //# sourceMappingURL=index.d.ts.map
9
+ export default _default
10
+ import common from './common'
11
+ import referencebatchcheck from './referencebatchcheck'
12
+ import referencebatchdrawer from './referencebatchdrawer'
13
+ import referencecheck from './referencecheck'
14
+ import referencedrawer from './referencedrawer'
15
+ import referenceinfo from './referenceinfo'
16
+ //# sourceMappingURL=index.d.ts.map
@@ -1,15 +1,15 @@
1
1
  declare namespace _default {
2
- namespace index {
3
- const qingTiGongYiGe: string;
4
- const chaXunGuanLianGuan: string;
5
- const qiangYinYong: string;
6
- const cunZai: string;
7
- const cunZaiQiangYinYong: string;
8
- const cunZaiRuoYinYong: string;
9
- const xiaYiBu: string;
10
- const quXiao: string;
11
- const shangXianJiaoYanShi: string;
12
- }
2
+ namespace index {
3
+ const qingTiGongYiGe: string
4
+ const chaXunGuanLianGuan: string
5
+ const qiangYinYong: string
6
+ const cunZai: string
7
+ const cunZaiQiangYinYong: string
8
+ const cunZaiRuoYinYong: string
9
+ const xiaYiBu: string
10
+ const quXiao: string
11
+ const shangXianJiaoYanShi: string
12
+ }
13
13
  }
14
- export default _default;
15
- //# sourceMappingURL=referencebatchcheck.d.ts.map
14
+ export default _default
15
+ //# sourceMappingURL=referencebatchcheck.d.ts.map
@@ -1,9 +1,9 @@
1
1
  declare namespace _default {
2
- namespace index {
3
- const zanWuShuJu: string;
4
- const chaXunZhong: string;
5
- const chaXunYinYongGuan: string;
6
- }
2
+ namespace index {
3
+ const zanWuShuJu: string
4
+ const chaXunZhong: string
5
+ const chaXunYinYongGuan: string
6
+ }
7
7
  }
8
- export default _default;
9
- //# sourceMappingURL=referencebatchdrawer.d.ts.map
8
+ export default _default
9
+ //# sourceMappingURL=referencebatchdrawer.d.ts.map
@@ -1,13 +1,13 @@
1
1
  declare namespace _default {
2
- namespace index {
3
- const qingTiGongYiGe: string;
4
- const chaXunGuanLianGuan: string;
5
- const cunZaiQiangYinYong: string;
6
- const cunZaiRuoYinYong: string;
7
- const xiaYiBu: string;
8
- const quXiao: string;
9
- const yinYongGuanXiCha: string;
10
- }
2
+ namespace index {
3
+ const qingTiGongYiGe: string
4
+ const chaXunGuanLianGuan: string
5
+ const cunZaiQiangYinYong: string
6
+ const cunZaiRuoYinYong: string
7
+ const xiaYiBu: string
8
+ const quXiao: string
9
+ const yinYongGuanXiCha: string
10
+ }
11
11
  }
12
- export default _default;
13
- //# sourceMappingURL=referencecheck.d.ts.map
12
+ export default _default
13
+ //# sourceMappingURL=referencecheck.d.ts.map
@@ -1,8 +1,8 @@
1
1
  declare namespace _default {
2
- namespace index {
3
- const chaXunZhong: string;
4
- const chaXunYinYongGuan: string;
5
- }
2
+ namespace index {
3
+ const chaXunZhong: string
4
+ const chaXunYinYongGuan: string
5
+ }
6
6
  }
7
- export default _default;
8
- //# sourceMappingURL=referencedrawer.d.ts.map
7
+ export default _default
8
+ //# sourceMappingURL=referencedrawer.d.ts.map
@@ -1,9 +1,9 @@
1
1
  declare namespace _default {
2
- namespace index {
3
- const ruoYinYong: string;
4
- const qiangYinYong: string;
5
- const zanWuShuJu: string;
6
- }
2
+ namespace index {
3
+ const ruoYinYong: string
4
+ const qiangYinYong: string
5
+ const zanWuShuJu: string
6
+ }
7
7
  }
8
- export default _default;
9
- //# sourceMappingURL=referenceinfo.d.ts.map
8
+ export default _default
9
+ //# sourceMappingURL=referenceinfo.d.ts.map
@@ -1,5 +1,5 @@
1
1
  declare namespace _default {
2
- const test: string;
2
+ const test: string
3
3
  }
4
- export default _default;
5
- //# sourceMappingURL=common.d.ts.map
4
+ export default _default
5
+ //# sourceMappingURL=common.d.ts.map
@@ -1,16 +1,16 @@
1
1
  declare namespace _default {
2
- export { common };
3
- export { referencebatchcheck };
4
- export { referencebatchdrawer };
5
- export { referencecheck };
6
- export { referencedrawer };
7
- export { referenceinfo };
2
+ export { common }
3
+ export { referencebatchcheck }
4
+ export { referencebatchdrawer }
5
+ export { referencecheck }
6
+ export { referencedrawer }
7
+ export { referenceinfo }
8
8
  }
9
- export default _default;
10
- import common from "./common";
11
- import referencebatchcheck from "./referencebatchcheck";
12
- import referencebatchdrawer from "./referencebatchdrawer";
13
- import referencecheck from "./referencecheck";
14
- import referencedrawer from "./referencedrawer";
15
- import referenceinfo from "./referenceinfo";
16
- //# sourceMappingURL=index.d.ts.map
9
+ export default _default
10
+ import common from './common'
11
+ import referencebatchcheck from './referencebatchcheck'
12
+ import referencebatchdrawer from './referencebatchdrawer'
13
+ import referencecheck from './referencecheck'
14
+ import referencedrawer from './referencedrawer'
15
+ import referenceinfo from './referenceinfo'
16
+ //# sourceMappingURL=index.d.ts.map
@@ -1,15 +1,15 @@
1
1
  declare namespace _default {
2
- namespace index {
3
- const qingTiGongYiGe: string;
4
- const chaXunGuanLianGuan: string;
5
- const qiangYinYong: string;
6
- const cunZai: string;
7
- const cunZaiQiangYinYong: string;
8
- const cunZaiRuoYinYong: string;
9
- const xiaYiBu: string;
10
- const quXiao: string;
11
- const shangXianJiaoYanShi: string;
12
- }
2
+ namespace index {
3
+ const qingTiGongYiGe: string
4
+ const chaXunGuanLianGuan: string
5
+ const qiangYinYong: string
6
+ const cunZai: string
7
+ const cunZaiQiangYinYong: string
8
+ const cunZaiRuoYinYong: string
9
+ const xiaYiBu: string
10
+ const quXiao: string
11
+ const shangXianJiaoYanShi: string
12
+ }
13
13
  }
14
- export default _default;
15
- //# sourceMappingURL=referencebatchcheck.d.ts.map
14
+ export default _default
15
+ //# sourceMappingURL=referencebatchcheck.d.ts.map
@@ -1,9 +1,9 @@
1
1
  declare namespace _default {
2
- namespace index {
3
- const zanWuShuJu: string;
4
- const chaXunZhong: string;
5
- const chaXunYinYongGuan: string;
6
- }
2
+ namespace index {
3
+ const zanWuShuJu: string
4
+ const chaXunZhong: string
5
+ const chaXunYinYongGuan: string
6
+ }
7
7
  }
8
- export default _default;
9
- //# sourceMappingURL=referencebatchdrawer.d.ts.map
8
+ export default _default
9
+ //# sourceMappingURL=referencebatchdrawer.d.ts.map
@@ -1,13 +1,13 @@
1
1
  declare namespace _default {
2
- namespace index {
3
- const qingTiGongYiGe: string;
4
- const chaXunGuanLianGuan: string;
5
- const cunZaiQiangYinYong: string;
6
- const cunZaiRuoYinYong: string;
7
- const xiaYiBu: string;
8
- const quXiao: string;
9
- const yinYongGuanXiCha: string;
10
- }
2
+ namespace index {
3
+ const qingTiGongYiGe: string
4
+ const chaXunGuanLianGuan: string
5
+ const cunZaiQiangYinYong: string
6
+ const cunZaiRuoYinYong: string
7
+ const xiaYiBu: string
8
+ const quXiao: string
9
+ const yinYongGuanXiCha: string
10
+ }
11
11
  }
12
- export default _default;
13
- //# sourceMappingURL=referencecheck.d.ts.map
12
+ export default _default
13
+ //# sourceMappingURL=referencecheck.d.ts.map
@@ -1,8 +1,8 @@
1
1
  declare namespace _default {
2
- namespace index {
3
- const chaXunZhong: string;
4
- const chaXunYinYongGuan: string;
5
- }
2
+ namespace index {
3
+ const chaXunZhong: string
4
+ const chaXunYinYongGuan: string
5
+ }
6
6
  }
7
- export default _default;
8
- //# sourceMappingURL=referencedrawer.d.ts.map
7
+ export default _default
8
+ //# sourceMappingURL=referencedrawer.d.ts.map
@@ -1,9 +1,9 @@
1
1
  declare namespace _default {
2
- namespace index {
3
- const ruoYinYong: string;
4
- const qiangYinYong: string;
5
- const zanWuShuJu: string;
6
- }
2
+ namespace index {
3
+ const ruoYinYong: string
4
+ const qiangYinYong: string
5
+ const zanWuShuJu: string
6
+ }
7
7
  }
8
- export default _default;
9
- //# sourceMappingURL=referenceinfo.d.ts.map
8
+ export default _default
9
+ //# sourceMappingURL=referenceinfo.d.ts.map
package/es/AHref/index.js CHANGED
@@ -1,60 +1,48 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.default = void 0;
7
- var __rest = void 0 && (void 0).__rest || function (s, e) {
8
- var t = {};
9
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
10
- if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
11
- if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];
12
- }
13
- return t;
14
- };
15
- var _default = props => {
16
- const {
17
- children,
18
- href,
19
- unmountHandle,
20
- jumpFun,
21
- iframeJump
22
- } = props,
23
- rest = __rest(props, ["children", "href", "unmountHandle", "jumpFun", "iframeJump"]);
24
- if (window.__isMultiTab__) {
25
- return React.createElement("a", {
26
- onClick: evt => {
27
- evt.preventDefault();
28
- if (unmountHandle && typeof unmountHandle === 'function') {
29
- unmountHandle();
30
- }
31
- let pathName = href;
32
- if (href && href.includes('?')) {
33
- pathName = href === null || href === void 0 ? void 0 : href.split('?')[0];
34
- }
35
- if (jumpFun && typeof jumpFun === 'function') {
36
- jumpFun(href);
37
- return;
1
+ var __rest = (this && this.__rest) || function (s, e) {
2
+ var t = {};
3
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
4
+ t[p] = s[p];
5
+ if (s != null && typeof Object.getOwnPropertySymbols === "function")
6
+ for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
7
+ if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
8
+ t[p[i]] = s[p[i]];
38
9
  }
39
- const isInIframe = (window === null || window === void 0 ? void 0 : window.self) !== (window === null || window === void 0 ? void 0 : window.top);
40
- if (iframeJump && isInIframe) {
41
- if (pathName === window.location.pathname) {
42
- window.parent.location.href = href;
43
- } else {
44
- window.parent.open(href);
45
- }
46
- return;
47
- }
48
- if (pathName === window.location.pathname) {
49
- window.location.href = href;
50
- } else {
51
- window.push(href);
52
- }
53
- }
54
- }, children);
55
- }
56
- return React.createElement("a", Object.assign({
57
- href: href
58
- }, rest), children);
10
+ return t;
11
+ };
12
+ export default (props) => {
13
+ const { children, href, unmountHandle, jumpFun, iframeJump } = props, rest = __rest(props, ["children", "href", "unmountHandle", "jumpFun", "iframeJump"]);
14
+ if (window.__isMultiTab__) {
15
+ return (React.createElement("a", { onClick: (evt) => {
16
+ evt.preventDefault();
17
+ if (unmountHandle && typeof unmountHandle === 'function') {
18
+ unmountHandle();
19
+ }
20
+ let pathName = href;
21
+ if (href && href.includes('?')) {
22
+ pathName = href === null || href === void 0 ? void 0 : href.split('?')[0];
23
+ }
24
+ if (jumpFun && typeof jumpFun === 'function') {
25
+ jumpFun(href);
26
+ return;
27
+ }
28
+ const isInIframe = (window === null || window === void 0 ? void 0 : window.self) !== (window === null || window === void 0 ? void 0 : window.top);
29
+ if (iframeJump && isInIframe) {
30
+ if (pathName === window.location.pathname) {
31
+ window.parent.location.href = href;
32
+ }
33
+ else {
34
+ window.parent.open(href);
35
+ }
36
+ return;
37
+ }
38
+ if (pathName === window.location.pathname) {
39
+ window.location.href = href;
40
+ }
41
+ else {
42
+ window.push(href);
43
+ }
44
+ } }, children));
45
+ }
46
+ return (React.createElement("a", Object.assign({ href: href }, rest), children));
59
47
  };
60
- exports.default = _default;
48
+ //# sourceMappingURL=index.js.map
package/es/I18N.js CHANGED
@@ -1,21 +1,14 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.getLang = exports.default = void 0;
7
- var _otpIntl = _interopRequireDefault(require("otp-intl"));
8
- var _universalCookie = _interopRequireDefault(require("universal-cookie"));
9
- var _zhCN = _interopRequireDefault(require("../.octopus/zh-CN"));
10
- var _enUS = _interopRequireDefault(require("../.octopus/en-US"));
11
- function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
12
- const cookies = new _universalCookie.default();
13
- const getLang = () => {
14
- return cookies.get('lang') || 'cn';
1
+ import KiwiIntl from 'otp-intl';
2
+ import Cookies from 'universal-cookie';
3
+ import zhCN from '../.octopus/zh-CN';
4
+ import enUS from '../.octopus/en-US';
5
+ const cookies = new Cookies();
6
+ export const getLang = () => {
7
+ return cookies.get('lang') || 'cn';
15
8
  };
16
- exports.getLang = getLang;
17
- const kiwiIntl = _otpIntl.default.init(getLang(), {
18
- cn: _zhCN.default,
19
- en: _enUS.default
9
+ const kiwiIntl = KiwiIntl.init(getLang(), {
10
+ cn: zhCN,
11
+ en: enUS
20
12
  });
21
- var _default = exports.default = kiwiIntl;
13
+ export default kiwiIntl;
14
+ //# sourceMappingURL=I18N.js.map