@semcore/widget-empty 16.0.0-prerelease.4 → 16.0.0-prerelease.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/esm/Error/index.mjs +32 -29
- package/lib/esm/Error/translations/__intergalactic-dynamic-locales.mjs +32 -32
- package/lib/esm/Error/translations/de.json.mjs +8 -6
- package/lib/esm/Error/translations/en.json.mjs +8 -6
- package/lib/esm/Error/translations/es.json.mjs +8 -6
- package/lib/esm/Error/translations/fr.json.mjs +8 -6
- package/lib/esm/Error/translations/it.json.mjs +8 -6
- package/lib/esm/Error/translations/ja.json.mjs +8 -6
- package/lib/esm/Error/translations/ko.json.mjs +8 -6
- package/lib/esm/Error/translations/nl.json.mjs +8 -6
- package/lib/esm/Error/translations/pl.json.mjs +8 -6
- package/lib/esm/Error/translations/pt.json.mjs +8 -6
- package/lib/esm/Error/translations/ru.json.mjs +8 -6
- package/lib/esm/Error/translations/sv.json.mjs +8 -6
- package/lib/esm/Error/translations/tr.json.mjs +8 -6
- package/lib/esm/Error/translations/vi.json.mjs +8 -6
- package/lib/esm/Error/translations/zh.json.mjs +8 -6
- package/lib/esm/NoData/index.mjs +32 -29
- package/lib/esm/NoData/translations/__intergalactic-dynamic-locales.mjs +32 -32
- package/lib/esm/NoData/translations/de.json.mjs +8 -6
- package/lib/esm/NoData/translations/en.json.mjs +8 -6
- package/lib/esm/NoData/translations/es.json.mjs +8 -6
- package/lib/esm/NoData/translations/fr.json.mjs +8 -6
- package/lib/esm/NoData/translations/it.json.mjs +8 -6
- package/lib/esm/NoData/translations/ja.json.mjs +8 -6
- package/lib/esm/NoData/translations/ko.json.mjs +8 -6
- package/lib/esm/NoData/translations/nl.json.mjs +8 -6
- package/lib/esm/NoData/translations/pl.json.mjs +8 -6
- package/lib/esm/NoData/translations/pt.json.mjs +8 -6
- package/lib/esm/NoData/translations/ru.json.mjs +8 -6
- package/lib/esm/NoData/translations/sv.json.mjs +8 -6
- package/lib/esm/NoData/translations/tr.json.mjs +8 -6
- package/lib/esm/NoData/translations/vi.json.mjs +8 -6
- package/lib/esm/NoData/translations/zh.json.mjs +8 -6
- package/lib/esm/WidgetEmpty.mjs +61 -49
- package/lib/esm/index.mjs +7 -7
- package/package.json +4 -4
package/lib/esm/Error/index.mjs
CHANGED
|
@@ -1,36 +1,39 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import { createComponent
|
|
7
|
-
import
|
|
8
|
-
import
|
|
9
|
-
import
|
|
10
|
-
import { localizedMessages
|
|
11
|
-
var
|
|
12
|
-
|
|
13
|
-
var
|
|
14
|
-
function
|
|
15
|
-
|
|
1
|
+
import _classCallCheck from "@babel/runtime/helpers/esm/classCallCheck";
|
|
2
|
+
import _createClass from "@babel/runtime/helpers/esm/createClass";
|
|
3
|
+
import _inherits from "@babel/runtime/helpers/esm/inherits";
|
|
4
|
+
import _createSuper from "@babel/runtime/helpers/esm/createSuper";
|
|
5
|
+
import _defineProperty from "@babel/runtime/helpers/esm/defineProperty";
|
|
6
|
+
import { createComponent, assignProps, Component } from "@semcore/core";
|
|
7
|
+
import React from "react";
|
|
8
|
+
import WidgetEmpty, { getIconPath } from "../WidgetEmpty.mjs";
|
|
9
|
+
import i18nEnhance from "@semcore/core/lib/utils/enhances/i18nEnhance";
|
|
10
|
+
import { localizedMessages } from "./translations/__intergalactic-dynamic-locales.mjs";
|
|
11
|
+
var Error = /* @__PURE__ */ function(_Component) {
|
|
12
|
+
_inherits(Error2, _Component);
|
|
13
|
+
var _super = _createSuper(Error2);
|
|
14
|
+
function Error2() {
|
|
15
|
+
_classCallCheck(this, Error2);
|
|
16
|
+
return _super.apply(this, arguments);
|
|
16
17
|
}
|
|
17
|
-
|
|
18
|
+
_createClass(Error2, [{
|
|
18
19
|
key: "render",
|
|
19
|
-
value: function() {
|
|
20
|
-
var
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
20
|
+
value: function render() {
|
|
21
|
+
var _ref = this.asProps;
|
|
22
|
+
var _this$asProps = this.asProps, Children = _this$asProps.Children, description = _this$asProps.description, getI18nText = _this$asProps.getI18nText;
|
|
23
|
+
return /* @__PURE__ */ React.createElement(WidgetEmpty, assignProps({
|
|
24
|
+
"icon": getIconPath("warning")
|
|
25
|
+
}, _ref), /* @__PURE__ */ React.createElement(WidgetEmpty.Title, null, getI18nText("title")), /* @__PURE__ */ React.createElement(WidgetEmpty.Description, null, description || getI18nText("description")), /* @__PURE__ */ React.createElement(Children, null));
|
|
24
26
|
}
|
|
25
|
-
}])
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
27
|
+
}]);
|
|
28
|
+
return Error2;
|
|
29
|
+
}(Component);
|
|
30
|
+
_defineProperty(Error, "displayName", "WidgetError");
|
|
31
|
+
_defineProperty(Error, "defaultProps", {
|
|
32
|
+
i18n: localizedMessages,
|
|
30
33
|
locale: "en"
|
|
31
34
|
});
|
|
32
|
-
|
|
33
|
-
const
|
|
35
|
+
_defineProperty(Error, "enhance", [i18nEnhance(localizedMessages)]);
|
|
36
|
+
const index = createComponent(Error);
|
|
34
37
|
export {
|
|
35
|
-
|
|
38
|
+
index as default
|
|
36
39
|
};
|
|
@@ -1,35 +1,35 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
import
|
|
8
|
-
import
|
|
9
|
-
import
|
|
10
|
-
import
|
|
11
|
-
import
|
|
12
|
-
import
|
|
13
|
-
import
|
|
14
|
-
import
|
|
15
|
-
import
|
|
16
|
-
var
|
|
17
|
-
de
|
|
18
|
-
en
|
|
19
|
-
es
|
|
20
|
-
fr
|
|
21
|
-
it
|
|
22
|
-
ja
|
|
23
|
-
ko
|
|
24
|
-
nl
|
|
25
|
-
pt
|
|
26
|
-
ru
|
|
27
|
-
tr
|
|
28
|
-
vi
|
|
29
|
-
zh
|
|
30
|
-
pl
|
|
31
|
-
sv
|
|
1
|
+
import de from "./de.json.mjs";
|
|
2
|
+
import en from "./en.json.mjs";
|
|
3
|
+
import es from "./es.json.mjs";
|
|
4
|
+
import fr from "./fr.json.mjs";
|
|
5
|
+
import it from "./it.json.mjs";
|
|
6
|
+
import ja from "./ja.json.mjs";
|
|
7
|
+
import ko from "./ko.json.mjs";
|
|
8
|
+
import nl from "./nl.json.mjs";
|
|
9
|
+
import pt from "./pt.json.mjs";
|
|
10
|
+
import ru from "./ru.json.mjs";
|
|
11
|
+
import tr from "./tr.json.mjs";
|
|
12
|
+
import vi from "./vi.json.mjs";
|
|
13
|
+
import zh from "./zh.json.mjs";
|
|
14
|
+
import pl from "./pl.json.mjs";
|
|
15
|
+
import sv from "./sv.json.mjs";
|
|
16
|
+
var localizedMessages = {
|
|
17
|
+
de,
|
|
18
|
+
en,
|
|
19
|
+
es,
|
|
20
|
+
fr,
|
|
21
|
+
it,
|
|
22
|
+
ja,
|
|
23
|
+
ko,
|
|
24
|
+
nl,
|
|
25
|
+
pt,
|
|
26
|
+
ru,
|
|
27
|
+
tr,
|
|
28
|
+
vi,
|
|
29
|
+
zh,
|
|
30
|
+
pl,
|
|
31
|
+
sv
|
|
32
32
|
};
|
|
33
33
|
export {
|
|
34
|
-
|
|
34
|
+
localizedMessages
|
|
35
35
|
};
|
|
@@ -1,9 +1,11 @@
|
|
|
1
|
-
const
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
const title = "Es ist ein Fehler aufgetreten";
|
|
2
|
+
const description = "Dieses Problem ist uns bekannt und wir arbeiten an seiner Behebung. Bitte versuchen Sie es später erneut.";
|
|
3
|
+
const de = {
|
|
4
|
+
title,
|
|
5
|
+
description
|
|
4
6
|
};
|
|
5
7
|
export {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
8
|
+
de as default,
|
|
9
|
+
description,
|
|
10
|
+
title
|
|
9
11
|
};
|
|
@@ -1,9 +1,11 @@
|
|
|
1
|
-
const
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
const title = "Something went wrong";
|
|
2
|
+
const description = "We are aware of the issue and are working to fix it. Please try again later.";
|
|
3
|
+
const en = {
|
|
4
|
+
title,
|
|
5
|
+
description
|
|
4
6
|
};
|
|
5
7
|
export {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
8
|
+
en as default,
|
|
9
|
+
description,
|
|
10
|
+
title
|
|
9
11
|
};
|
|
@@ -1,9 +1,11 @@
|
|
|
1
|
-
const
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
const title = "Algo salió mal";
|
|
2
|
+
const description = "Somos conscientes del problema y estamos trabajando para solucionarlo. Inténtalo de nuevo más tarde.";
|
|
3
|
+
const es = {
|
|
4
|
+
title,
|
|
5
|
+
description
|
|
4
6
|
};
|
|
5
7
|
export {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
8
|
+
es as default,
|
|
9
|
+
description,
|
|
10
|
+
title
|
|
9
11
|
};
|
|
@@ -1,9 +1,11 @@
|
|
|
1
|
-
const
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
const title = "Une erreur est survenue";
|
|
2
|
+
const description = "Nous avons conscience de ce problème et nous nous efforçons de le résoudre. Veuillez réessayer plus tard.";
|
|
3
|
+
const fr = {
|
|
4
|
+
title,
|
|
5
|
+
description
|
|
4
6
|
};
|
|
5
7
|
export {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
8
|
+
fr as default,
|
|
9
|
+
description,
|
|
10
|
+
title
|
|
9
11
|
};
|
|
@@ -1,9 +1,11 @@
|
|
|
1
|
-
const
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
const title = "Si è verificato un errore";
|
|
2
|
+
const description = "Siamo a conoscenza del problema e stiamo lavorando per risolverlo. Riprova più tardi.";
|
|
3
|
+
const it = {
|
|
4
|
+
title,
|
|
5
|
+
description
|
|
4
6
|
};
|
|
5
7
|
export {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
8
|
+
it as default,
|
|
9
|
+
description,
|
|
10
|
+
title
|
|
9
11
|
};
|
|
@@ -1,9 +1,11 @@
|
|
|
1
|
-
const
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
const title = "エラーが発生しました";
|
|
2
|
+
const description = "心配はありません。私たちは問題を把握し、解決に向けて動いています。あとで再試行してください。";
|
|
3
|
+
const ja = {
|
|
4
|
+
title,
|
|
5
|
+
description
|
|
4
6
|
};
|
|
5
7
|
export {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
8
|
+
ja as default,
|
|
9
|
+
description,
|
|
10
|
+
title
|
|
9
11
|
};
|
|
@@ -1,9 +1,11 @@
|
|
|
1
|
-
const
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
const title = "오류가 발생했습니다";
|
|
2
|
+
const description = "문제를 파악했으며 해결 중입니다. 나중에 다시 시도해 주세요.";
|
|
3
|
+
const ko = {
|
|
4
|
+
title,
|
|
5
|
+
description
|
|
4
6
|
};
|
|
5
7
|
export {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
8
|
+
ko as default,
|
|
9
|
+
description,
|
|
10
|
+
title
|
|
9
11
|
};
|
|
@@ -1,9 +1,11 @@
|
|
|
1
|
-
const
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
const title = "Er is iets fout gegaan";
|
|
2
|
+
const description = "We zijn op de hoogte van het probleem en werken aan een oplossing. Probeer het later nog eens.";
|
|
3
|
+
const nl = {
|
|
4
|
+
title,
|
|
5
|
+
description
|
|
4
6
|
};
|
|
5
7
|
export {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
8
|
+
nl as default,
|
|
9
|
+
description,
|
|
10
|
+
title
|
|
9
11
|
};
|
|
@@ -1,9 +1,11 @@
|
|
|
1
|
-
const
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
const title = "Coś poszło nie tak";
|
|
2
|
+
const description = "Wiemy o tym problemie i pracujemy nad jego rozwiązaniem. Spróbuj ponownie później.";
|
|
3
|
+
const pl = {
|
|
4
|
+
title,
|
|
5
|
+
description
|
|
4
6
|
};
|
|
5
7
|
export {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
8
|
+
pl as default,
|
|
9
|
+
description,
|
|
10
|
+
title
|
|
9
11
|
};
|
|
@@ -1,9 +1,11 @@
|
|
|
1
|
-
const
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
const title = "Algo deu errado";
|
|
2
|
+
const description = "Estamos cientes do problema e estamos trabalhando para resolvê-lo. Tente novamente mais tarde.";
|
|
3
|
+
const pt = {
|
|
4
|
+
title,
|
|
5
|
+
description
|
|
4
6
|
};
|
|
5
7
|
export {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
8
|
+
pt as default,
|
|
9
|
+
description,
|
|
10
|
+
title
|
|
9
11
|
};
|
|
@@ -1,9 +1,11 @@
|
|
|
1
|
-
const
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
const title = "Произошла ошибка";
|
|
2
|
+
const description = "Мы уже знаем об этой проблеме и в настоящий момент устраняем ее. Повторите попытку позже.";
|
|
3
|
+
const ru = {
|
|
4
|
+
title,
|
|
5
|
+
description
|
|
4
6
|
};
|
|
5
7
|
export {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
8
|
+
ru as default,
|
|
9
|
+
description,
|
|
10
|
+
title
|
|
9
11
|
};
|
|
@@ -1,9 +1,11 @@
|
|
|
1
|
-
const
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
const title = "Något gick fel";
|
|
2
|
+
const description = "Vi är medvetna om problemet och arbetar på att åtgärda det. Försök igen senare.";
|
|
3
|
+
const sv = {
|
|
4
|
+
title,
|
|
5
|
+
description
|
|
4
6
|
};
|
|
5
7
|
export {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
8
|
+
sv as default,
|
|
9
|
+
description,
|
|
10
|
+
title
|
|
9
11
|
};
|
|
@@ -1,9 +1,11 @@
|
|
|
1
|
-
const
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
const title = "Bir şeyler ters gitti";
|
|
2
|
+
const description = "Sorunun farkındayız ve düzeltmek için çalışıyoruz. Lütfen daha sonra tekrar deneyin.";
|
|
3
|
+
const tr = {
|
|
4
|
+
title,
|
|
5
|
+
description
|
|
4
6
|
};
|
|
5
7
|
export {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
8
|
+
tr as default,
|
|
9
|
+
description,
|
|
10
|
+
title
|
|
9
11
|
};
|
|
@@ -1,9 +1,11 @@
|
|
|
1
|
-
const
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
const title = "Đã xảy ra lỗi";
|
|
2
|
+
const description = "Chúng tôi đã biết sự cố và đang nỗ lực khắc phục sự cố. Vui lòng thử lại sau.";
|
|
3
|
+
const vi = {
|
|
4
|
+
title,
|
|
5
|
+
description
|
|
4
6
|
};
|
|
5
7
|
export {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
8
|
+
vi as default,
|
|
9
|
+
description,
|
|
10
|
+
title
|
|
9
11
|
};
|
|
@@ -1,9 +1,11 @@
|
|
|
1
|
-
const
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
const title = "出错了";
|
|
2
|
+
const description = "我们已发现问题,正在努力解决。请稍后重试。";
|
|
3
|
+
const zh = {
|
|
4
|
+
title,
|
|
5
|
+
description
|
|
4
6
|
};
|
|
5
7
|
export {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
8
|
+
zh as default,
|
|
9
|
+
description,
|
|
10
|
+
title
|
|
9
11
|
};
|
package/lib/esm/NoData/index.mjs
CHANGED
|
@@ -1,37 +1,40 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import { createComponent
|
|
7
|
-
import
|
|
8
|
-
import
|
|
9
|
-
import
|
|
10
|
-
import { localizedMessages
|
|
11
|
-
var
|
|
12
|
-
|
|
13
|
-
var
|
|
14
|
-
function
|
|
15
|
-
|
|
1
|
+
import _classCallCheck from "@babel/runtime/helpers/esm/classCallCheck";
|
|
2
|
+
import _createClass from "@babel/runtime/helpers/esm/createClass";
|
|
3
|
+
import _inherits from "@babel/runtime/helpers/esm/inherits";
|
|
4
|
+
import _createSuper from "@babel/runtime/helpers/esm/createSuper";
|
|
5
|
+
import _defineProperty from "@babel/runtime/helpers/esm/defineProperty";
|
|
6
|
+
import { createComponent, assignProps, Component } from "@semcore/core";
|
|
7
|
+
import React from "react";
|
|
8
|
+
import WidgetEmpty, { getIconPath } from "../WidgetEmpty.mjs";
|
|
9
|
+
import i18nEnhance from "@semcore/core/lib/utils/enhances/i18nEnhance";
|
|
10
|
+
import { localizedMessages } from "./translations/__intergalactic-dynamic-locales.mjs";
|
|
11
|
+
var NoData = /* @__PURE__ */ function(_Component) {
|
|
12
|
+
_inherits(NoData2, _Component);
|
|
13
|
+
var _super = _createSuper(NoData2);
|
|
14
|
+
function NoData2() {
|
|
15
|
+
_classCallCheck(this, NoData2);
|
|
16
|
+
return _super.apply(this, arguments);
|
|
16
17
|
}
|
|
17
|
-
|
|
18
|
+
_createClass(NoData2, [{
|
|
18
19
|
key: "render",
|
|
19
|
-
value: function() {
|
|
20
|
-
var
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
20
|
+
value: function render() {
|
|
21
|
+
var _ref = this.asProps;
|
|
22
|
+
var _this$asProps = this.asProps, Children = _this$asProps.Children, type = _this$asProps.type, description = _this$asProps.description, getI18nText = _this$asProps.getI18nText;
|
|
23
|
+
return /* @__PURE__ */ React.createElement(WidgetEmpty, assignProps({
|
|
24
|
+
"icon": getIconPath(type)
|
|
25
|
+
}, _ref), /* @__PURE__ */ React.createElement(WidgetEmpty.Title, null, getI18nText("title")), /* @__PURE__ */ React.createElement(WidgetEmpty.Description, null, description || getI18nText("description")), /* @__PURE__ */ React.createElement(Children, null));
|
|
24
26
|
}
|
|
25
|
-
}])
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
27
|
+
}]);
|
|
28
|
+
return NoData2;
|
|
29
|
+
}(Component);
|
|
30
|
+
_defineProperty(NoData, "displayName", "WidgetNoData");
|
|
31
|
+
_defineProperty(NoData, "enhance", [i18nEnhance(localizedMessages)]);
|
|
32
|
+
_defineProperty(NoData, "defaultProps", {
|
|
33
|
+
i18n: localizedMessages,
|
|
31
34
|
locale: "en",
|
|
32
35
|
type: "other-data"
|
|
33
36
|
});
|
|
34
|
-
const
|
|
37
|
+
const index = createComponent(NoData);
|
|
35
38
|
export {
|
|
36
|
-
|
|
39
|
+
index as default
|
|
37
40
|
};
|
|
@@ -1,35 +1,35 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
import
|
|
8
|
-
import
|
|
9
|
-
import
|
|
10
|
-
import
|
|
11
|
-
import
|
|
12
|
-
import
|
|
13
|
-
import
|
|
14
|
-
import
|
|
15
|
-
import
|
|
16
|
-
var
|
|
17
|
-
de
|
|
18
|
-
en
|
|
19
|
-
es
|
|
20
|
-
fr
|
|
21
|
-
it
|
|
22
|
-
ja
|
|
23
|
-
ko
|
|
24
|
-
nl
|
|
25
|
-
pt
|
|
26
|
-
ru
|
|
27
|
-
tr
|
|
28
|
-
vi
|
|
29
|
-
zh
|
|
30
|
-
pl
|
|
31
|
-
sv
|
|
1
|
+
import de from "./de.json.mjs";
|
|
2
|
+
import en from "./en.json.mjs";
|
|
3
|
+
import es from "./es.json.mjs";
|
|
4
|
+
import fr from "./fr.json.mjs";
|
|
5
|
+
import it from "./it.json.mjs";
|
|
6
|
+
import ja from "./ja.json.mjs";
|
|
7
|
+
import ko from "./ko.json.mjs";
|
|
8
|
+
import nl from "./nl.json.mjs";
|
|
9
|
+
import pt from "./pt.json.mjs";
|
|
10
|
+
import ru from "./ru.json.mjs";
|
|
11
|
+
import tr from "./tr.json.mjs";
|
|
12
|
+
import vi from "./vi.json.mjs";
|
|
13
|
+
import zh from "./zh.json.mjs";
|
|
14
|
+
import pl from "./pl.json.mjs";
|
|
15
|
+
import sv from "./sv.json.mjs";
|
|
16
|
+
var localizedMessages = {
|
|
17
|
+
de,
|
|
18
|
+
en,
|
|
19
|
+
es,
|
|
20
|
+
fr,
|
|
21
|
+
it,
|
|
22
|
+
ja,
|
|
23
|
+
ko,
|
|
24
|
+
nl,
|
|
25
|
+
pt,
|
|
26
|
+
ru,
|
|
27
|
+
tr,
|
|
28
|
+
vi,
|
|
29
|
+
zh,
|
|
30
|
+
pl,
|
|
31
|
+
sv
|
|
32
32
|
};
|
|
33
33
|
export {
|
|
34
|
-
|
|
34
|
+
localizedMessages
|
|
35
35
|
};
|
|
@@ -1,9 +1,11 @@
|
|
|
1
|
-
const
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
const title = "Nichts gefunden";
|
|
2
|
+
const description = "Ändern Sie Ihre Filter.";
|
|
3
|
+
const de = {
|
|
4
|
+
title,
|
|
5
|
+
description
|
|
4
6
|
};
|
|
5
7
|
export {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
8
|
+
de as default,
|
|
9
|
+
description,
|
|
10
|
+
title
|
|
9
11
|
};
|
|
@@ -1,9 +1,11 @@
|
|
|
1
|
-
const
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
const title = "Nothing found";
|
|
2
|
+
const description = "Try changing your filters.";
|
|
3
|
+
const en = {
|
|
4
|
+
title,
|
|
5
|
+
description
|
|
4
6
|
};
|
|
5
7
|
export {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
8
|
+
en as default,
|
|
9
|
+
description,
|
|
10
|
+
title
|
|
9
11
|
};
|
|
@@ -1,9 +1,11 @@
|
|
|
1
|
-
const
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
const title = "Ningún resultado";
|
|
2
|
+
const description = "Prueba a cambiar los filtros.";
|
|
3
|
+
const es = {
|
|
4
|
+
title,
|
|
5
|
+
description
|
|
4
6
|
};
|
|
5
7
|
export {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
8
|
+
es as default,
|
|
9
|
+
description,
|
|
10
|
+
title
|
|
9
11
|
};
|
|
@@ -1,9 +1,11 @@
|
|
|
1
|
-
const
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
const title = "Rien n’a été trouvé";
|
|
2
|
+
const description = "Essayez de changer vos filtres.";
|
|
3
|
+
const fr = {
|
|
4
|
+
title,
|
|
5
|
+
description
|
|
4
6
|
};
|
|
5
7
|
export {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
8
|
+
fr as default,
|
|
9
|
+
description,
|
|
10
|
+
title
|
|
9
11
|
};
|
|
@@ -1,9 +1,11 @@
|
|
|
1
|
-
const
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
const title = "Nessun risultato trovato";
|
|
2
|
+
const description = "Prova a modificare i filtri.";
|
|
3
|
+
const it = {
|
|
4
|
+
title,
|
|
5
|
+
description
|
|
4
6
|
};
|
|
5
7
|
export {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
8
|
+
it as default,
|
|
9
|
+
description,
|
|
10
|
+
title
|
|
9
11
|
};
|
|
@@ -1,9 +1,11 @@
|
|
|
1
|
-
const
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
const title = "検索結果なし";
|
|
2
|
+
const description = "フィルターを変更します。";
|
|
3
|
+
const ja = {
|
|
4
|
+
title,
|
|
5
|
+
description
|
|
4
6
|
};
|
|
5
7
|
export {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
8
|
+
ja as default,
|
|
9
|
+
description,
|
|
10
|
+
title
|
|
9
11
|
};
|
|
@@ -1,9 +1,11 @@
|
|
|
1
|
-
const
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
const title = "결과가 없습니다";
|
|
2
|
+
const description = "필터를 변경해 보세요.";
|
|
3
|
+
const ko = {
|
|
4
|
+
title,
|
|
5
|
+
description
|
|
4
6
|
};
|
|
5
7
|
export {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
8
|
+
ko as default,
|
|
9
|
+
description,
|
|
10
|
+
title
|
|
9
11
|
};
|
|
@@ -1,9 +1,11 @@
|
|
|
1
|
-
const
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
const title = "Niets gevonden";
|
|
2
|
+
const description = "Probeer het nog eens met andere filters.";
|
|
3
|
+
const nl = {
|
|
4
|
+
title,
|
|
5
|
+
description
|
|
4
6
|
};
|
|
5
7
|
export {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
8
|
+
nl as default,
|
|
9
|
+
description,
|
|
10
|
+
title
|
|
9
11
|
};
|
|
@@ -1,9 +1,11 @@
|
|
|
1
|
-
const
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
const title = "Niczego nie znaleziono";
|
|
2
|
+
const description = "Spróbuj zmienić filtry.";
|
|
3
|
+
const pl = {
|
|
4
|
+
title,
|
|
5
|
+
description
|
|
4
6
|
};
|
|
5
7
|
export {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
8
|
+
pl as default,
|
|
9
|
+
description,
|
|
10
|
+
title
|
|
9
11
|
};
|
|
@@ -1,9 +1,11 @@
|
|
|
1
|
-
const
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
const title = "Nada encontrado";
|
|
2
|
+
const description = "Tente alterar seus filtros.";
|
|
3
|
+
const pt = {
|
|
4
|
+
title,
|
|
5
|
+
description
|
|
4
6
|
};
|
|
5
7
|
export {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
8
|
+
pt as default,
|
|
9
|
+
description,
|
|
10
|
+
title
|
|
9
11
|
};
|
|
@@ -1,9 +1,11 @@
|
|
|
1
|
-
const
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
const title = "Данные отсутствуют";
|
|
2
|
+
const description = "Попробуйте изменить дату или настройки фильтров.";
|
|
3
|
+
const ru = {
|
|
4
|
+
title,
|
|
5
|
+
description
|
|
4
6
|
};
|
|
5
7
|
export {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
8
|
+
ru as default,
|
|
9
|
+
description,
|
|
10
|
+
title
|
|
9
11
|
};
|
|
@@ -1,9 +1,11 @@
|
|
|
1
|
-
const
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
const title = "Inget hittades";
|
|
2
|
+
const description = "Prova att ändra dina filter.";
|
|
3
|
+
const sv = {
|
|
4
|
+
title,
|
|
5
|
+
description
|
|
4
6
|
};
|
|
5
7
|
export {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
8
|
+
sv as default,
|
|
9
|
+
description,
|
|
10
|
+
title
|
|
9
11
|
};
|
|
@@ -1,9 +1,11 @@
|
|
|
1
|
-
const
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
const title = "Hiçbir şey bulunamadı";
|
|
2
|
+
const description = "Filtrelerinizi değiştirmeyi deneyin.";
|
|
3
|
+
const tr = {
|
|
4
|
+
title,
|
|
5
|
+
description
|
|
4
6
|
};
|
|
5
7
|
export {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
8
|
+
tr as default,
|
|
9
|
+
description,
|
|
10
|
+
title
|
|
9
11
|
};
|
|
@@ -1,9 +1,11 @@
|
|
|
1
|
-
const
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
const title = "Không tìm thấy gì";
|
|
2
|
+
const description = "Thử thay đổi bộ lọc của bạn.";
|
|
3
|
+
const vi = {
|
|
4
|
+
title,
|
|
5
|
+
description
|
|
4
6
|
};
|
|
5
7
|
export {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
8
|
+
vi as default,
|
|
9
|
+
description,
|
|
10
|
+
title
|
|
9
11
|
};
|
|
@@ -1,9 +1,11 @@
|
|
|
1
|
-
const
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
const title = "未找到任何数据";
|
|
2
|
+
const description = "尝试更改筛选器。";
|
|
3
|
+
const zh = {
|
|
4
|
+
title,
|
|
5
|
+
description
|
|
4
6
|
};
|
|
5
7
|
export {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
8
|
+
zh as default,
|
|
9
|
+
description,
|
|
10
|
+
title
|
|
9
11
|
};
|
package/lib/esm/WidgetEmpty.mjs
CHANGED
|
@@ -1,63 +1,75 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
import { createComponent
|
|
8
|
-
import
|
|
9
|
-
import { getIllustrationPath
|
|
10
|
-
import { Flex
|
|
11
|
-
import
|
|
12
|
-
var
|
|
1
|
+
import _objectSpread from "@babel/runtime/helpers/esm/objectSpread2";
|
|
2
|
+
import _classCallCheck from "@babel/runtime/helpers/esm/classCallCheck";
|
|
3
|
+
import _createClass from "@babel/runtime/helpers/esm/createClass";
|
|
4
|
+
import _inherits from "@babel/runtime/helpers/esm/inherits";
|
|
5
|
+
import _createSuper from "@babel/runtime/helpers/esm/createSuper";
|
|
6
|
+
import _defineProperty from "@babel/runtime/helpers/esm/defineProperty";
|
|
7
|
+
import { createComponent, sstyled, assignProps, Component } from "@semcore/core";
|
|
8
|
+
import React from "react";
|
|
9
|
+
import { getIllustrationPath } from "@semcore/illustration";
|
|
10
|
+
import { Flex, Box } from "@semcore/flex-box";
|
|
11
|
+
import isNode from "@semcore/core/lib/utils/isNode";
|
|
12
|
+
var style = (
|
|
13
13
|
/*__reshadow_css_start__*/
|
|
14
|
-
(
|
|
14
|
+
(sstyled.insert(
|
|
15
15
|
/*__inner_css_start__*/
|
|
16
16
|
".___SWidgetEmpty_rymi7_gg_{flex-direction:column;justify-content:center;align-items:center;margin-bottom:var(--intergalactic-spacing-4x, 16px)}.___SImage_rymi7_gg_{display:flex;align-items:flex-end;justify-content:center;margin-bottom:var(--intergalactic-spacing-3x, 12px);width:80px;height:80px}.___SDescription_rymi7_gg_,.___STitle_rymi7_gg_{color:var(--intergalactic-text-secondary, #6c6e79)}.___STitle_rymi7_gg_{font-size:var(--intergalactic-fs-300, 16px);line-height:var(--intergalactic-lh-300, 150%);font-weight:var(--intergalactic-bold, 700)}.___SDescription_rymi7_gg_{text-align:center;text-wrap:balance;font-size:var(--intergalactic-fs-200, 14px);line-height:var(--intergalactic-lh-200, 142%);max-width:400px}.___STitle_rymi7_gg_+.___SDescription_rymi7_gg_{margin-top:var(--intergalactic-spacing-1x, 4px)}.___SDescription_rymi7_gg_+.___SDescription_rymi7_gg_{margin-top:var(--intergalactic-spacing-2x, 8px)}",
|
|
17
17
|
"rymi7_gg_"
|
|
18
18
|
), {
|
|
19
|
-
__SWidgetEmpty: "___SWidgetEmpty_rymi7_gg_",
|
|
20
|
-
__SImage: "___SImage_rymi7_gg_",
|
|
21
|
-
__STitle: "___STitle_rymi7_gg_",
|
|
22
|
-
__SDescription: "___SDescription_rymi7_gg_"
|
|
19
|
+
"__SWidgetEmpty": "___SWidgetEmpty_rymi7_gg_",
|
|
20
|
+
"__SImage": "___SImage_rymi7_gg_",
|
|
21
|
+
"__STitle": "___STitle_rymi7_gg_",
|
|
22
|
+
"__SDescription": "___SDescription_rymi7_gg_"
|
|
23
23
|
})
|
|
24
|
-
)
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
24
|
+
);
|
|
25
|
+
var getIconPath = function getIconPath2(name) {
|
|
26
|
+
return getIllustrationPath(name);
|
|
27
|
+
};
|
|
28
|
+
var WidgetEmpty = /* @__PURE__ */ function(_Component) {
|
|
29
|
+
_inherits(WidgetEmpty2, _Component);
|
|
30
|
+
var _super = _createSuper(WidgetEmpty2);
|
|
31
|
+
function WidgetEmpty2() {
|
|
32
|
+
_classCallCheck(this, WidgetEmpty2);
|
|
33
|
+
return _super.apply(this, arguments);
|
|
31
34
|
}
|
|
32
|
-
|
|
35
|
+
_createClass(WidgetEmpty2, [{
|
|
33
36
|
key: "render",
|
|
34
|
-
value: function() {
|
|
35
|
-
var
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
37
|
+
value: function render() {
|
|
38
|
+
var _ref = this.asProps, _ref4;
|
|
39
|
+
var SWidgetEmpty = Flex;
|
|
40
|
+
var _this$asProps = this.asProps, Children = _this$asProps.Children, icon = _this$asProps.icon, styles = _this$asProps.styles;
|
|
41
|
+
var SImage = "div";
|
|
42
|
+
return _ref4 = sstyled(styles), /* @__PURE__ */ React.createElement(SWidgetEmpty, _ref4.cn("SWidgetEmpty", _objectSpread({}, assignProps({
|
|
43
|
+
"role": "status"
|
|
44
|
+
}, _ref))), isNode(icon) && /* @__PURE__ */ React.createElement(SImage, _ref4.cn("SImage", {
|
|
39
45
|
"aria-hidden": "true"
|
|
40
|
-
}), typeof
|
|
41
|
-
src:
|
|
42
|
-
alt: ""
|
|
43
|
-
})) :
|
|
46
|
+
}), typeof icon === "string" ? /* @__PURE__ */ React.createElement("img", _ref4.cn("img", {
|
|
47
|
+
"src": icon,
|
|
48
|
+
"alt": ""
|
|
49
|
+
})) : icon), /* @__PURE__ */ React.createElement(Children, _ref4.cn("Children", {})));
|
|
44
50
|
}
|
|
45
|
-
}])
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
var
|
|
54
|
-
return
|
|
51
|
+
}]);
|
|
52
|
+
return WidgetEmpty2;
|
|
53
|
+
}(Component);
|
|
54
|
+
_defineProperty(WidgetEmpty, "displayName", "WidgetEmpty");
|
|
55
|
+
_defineProperty(WidgetEmpty, "style", style);
|
|
56
|
+
var Title = function Title2(props) {
|
|
57
|
+
var _ref2 = arguments[0], _ref5;
|
|
58
|
+
var STitle = Box;
|
|
59
|
+
var styles = props.styles;
|
|
60
|
+
return _ref5 = sstyled(styles), /* @__PURE__ */ React.createElement(STitle, _ref5.cn("STitle", _objectSpread({}, assignProps({}, _ref2))));
|
|
61
|
+
};
|
|
62
|
+
var Description = function Description2(props) {
|
|
63
|
+
var _ref3 = arguments[0], _ref6;
|
|
64
|
+
var SDescription = Box;
|
|
65
|
+
var styles = props.styles;
|
|
66
|
+
return _ref6 = sstyled(styles), /* @__PURE__ */ React.createElement(SDescription, _ref6.cn("SDescription", _objectSpread({}, assignProps({}, _ref3))));
|
|
55
67
|
};
|
|
56
|
-
const
|
|
57
|
-
Title
|
|
58
|
-
Description
|
|
68
|
+
const WidgetEmpty$1 = createComponent(WidgetEmpty, {
|
|
69
|
+
Title,
|
|
70
|
+
Description
|
|
59
71
|
});
|
|
60
72
|
export {
|
|
61
|
-
|
|
62
|
-
|
|
73
|
+
WidgetEmpty$1 as default,
|
|
74
|
+
getIconPath
|
|
63
75
|
};
|
package/lib/esm/index.mjs
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { default as
|
|
2
|
-
import { default as
|
|
3
|
-
import { default as
|
|
1
|
+
import { default as default2, getIconPath } from "./WidgetEmpty.mjs";
|
|
2
|
+
import { default as default3 } from "./NoData/index.mjs";
|
|
3
|
+
import { default as default4 } from "./Error/index.mjs";
|
|
4
4
|
export {
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
5
|
+
default4 as Error,
|
|
6
|
+
default3 as NoData,
|
|
7
|
+
default2 as default,
|
|
8
|
+
getIconPath
|
|
9
9
|
};
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@semcore/widget-empty",
|
|
3
3
|
"description": "Semrush WidgetEmpty Component",
|
|
4
|
-
"version": "16.0.0-prerelease.
|
|
4
|
+
"version": "16.0.0-prerelease.7",
|
|
5
5
|
"main": "lib/cjs/index.js",
|
|
6
6
|
"module": "lib/es6/index.js",
|
|
7
7
|
"typings": "lib/types/index.d.ts",
|
|
@@ -14,11 +14,11 @@
|
|
|
14
14
|
"types": "./lib/types/index.d.ts"
|
|
15
15
|
},
|
|
16
16
|
"dependencies": {
|
|
17
|
-
"@semcore/flex-box": "16.0.0-prerelease.
|
|
18
|
-
"@semcore/illustration": "16.0.0-prerelease.
|
|
17
|
+
"@semcore/flex-box": "16.0.0-prerelease.7",
|
|
18
|
+
"@semcore/illustration": "16.0.0-prerelease.7"
|
|
19
19
|
},
|
|
20
20
|
"peerDependencies": {
|
|
21
|
-
"@semcore/base-components": "^16.0.0-prerelease.
|
|
21
|
+
"@semcore/base-components": "^16.0.0-prerelease.7"
|
|
22
22
|
},
|
|
23
23
|
"repository": {
|
|
24
24
|
"type": "git",
|