@uxf/cms 11.73.0 → 11.74.1
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/content-builder/content-builder-header.js +3 -1
- package/content-builder/content-builder.js +5 -3
- package/content-builder/forms/content-builder-basic-form.js +10 -8
- package/content-builder/forms/content-builder-seo-form.js +8 -6
- package/content-builder/translations.d.ts +127 -0
- package/content-builder/translations.js +128 -0
- package/forms/change-password-form/change-password-form.js +9 -4
- package/forms/change-password-form/translations.d.ts +35 -0
- package/forms/change-password-form/translations.js +36 -0
- package/forms/forgotten-password-form/forgotten-password-form.js +4 -2
- package/forms/forgotten-password-form/translations.d.ts +17 -0
- package/forms/forgotten-password-form/translations.js +18 -0
- package/forms/invite-user-form/invite-user-form.js +7 -5
- package/forms/invite-user-form/translations.d.ts +35 -0
- package/forms/invite-user-form/translations.js +36 -0
- package/forms/login-form/login-form.js +5 -3
- package/forms/login-form/translations.d.ts +23 -0
- package/forms/login-form/translations.js +24 -0
- package/forms/renew-password-form/renew-password-form.js +8 -3
- package/forms/renew-password-form/translations.d.ts +29 -0
- package/forms/renew-password-form/translations.js +30 -0
- package/lib/menu/ui/translations.d.ts +17 -0
- package/lib/menu/ui/translations.js +18 -0
- package/lib/menu/ui/user-menu.js +3 -1
- package/package.json +6 -6
- package/pages/content-builder/components/header.js +3 -1
- package/pages/content-builder/content/feature-section.js +17 -14
- package/pages/content-builder/content/gallery.js +6 -4
- package/pages/content-builder/content/hero-section.js +10 -6
- package/pages/content-builder/content/people.js +19 -15
- package/pages/content-builder/content/wysiwyg.js +9 -5
- package/pages/content-builder/content-header.js +4 -2
- package/pages/grid-page/grid-page.js +3 -1
- package/pages/translations.d.ts +93 -0
- package/pages/translations.js +94 -0
- package/security/restricted-page.d.ts +2 -1
- package/security/restricted-page.js +7 -5
- package/security/translations.d.ts +29 -0
- package/security/translations.js +30 -0
- package/translations/translations.d.ts +429 -0
- package/translations/translations.js +31 -0
- package/ui/copy-to-clipboard/copy-to-clipboard.js +4 -2
- package/ui/copy-to-clipboard/translations.d.ts +17 -0
- package/ui/copy-to-clipboard/translations.js +18 -0
- package/ui/copy-to-clipboard-button/copy-to-clipboard-button.js +6 -2
- package/ui/copy-to-clipboard-button/translations.d.ts +17 -0
- package/ui/copy-to-clipboard-button/translations.js +18 -0
- package/utils/remove-confirm-handler.js +10 -5
- package/utils/translations.d.ts +23 -0
- package/utils/translations.js +24 -0
@@ -4,10 +4,12 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
4
4
|
};
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
6
6
|
exports.ContentBuilderHeader = ContentBuilderHeader;
|
7
|
+
const translations_1 = require("@uxf/core-react/translations");
|
7
8
|
const button_1 = require("@uxf/ui/button");
|
8
9
|
const react_1 = __importDefault(require("react"));
|
9
10
|
function ContentBuilderHeader(props) {
|
11
|
+
const t = (0, translations_1.useUxfTranslation)();
|
10
12
|
return (react_1.default.createElement("div", { className: "uxf-cb__header" },
|
11
13
|
react_1.default.createElement("h1", { className: "uxg-cb__header-title uxf-typo-h5" }, props.title),
|
12
|
-
react_1.default.createElement(button_1.Button, { type: "submit" }, "
|
14
|
+
react_1.default.createElement(button_1.Button, { type: "submit" }, t("uxf-cms-content-builder:header.save"))));
|
13
15
|
}
|
@@ -24,6 +24,7 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
|
24
24
|
};
|
25
25
|
Object.defineProperty(exports, "__esModule", { value: true });
|
26
26
|
exports.ContentBuilder = ContentBuilder;
|
27
|
+
const translations_1 = require("@uxf/core-react/translations");
|
27
28
|
const tabs_1 = require("@uxf/ui/tabs");
|
28
29
|
const react_1 = __importStar(require("react"));
|
29
30
|
const content_builder_1 = require("../pages/content-builder");
|
@@ -42,13 +43,14 @@ function ContentBuilder(props) {
|
|
42
43
|
var _a, _b;
|
43
44
|
const generatedId = (0, react_1.useId)();
|
44
45
|
const [activeTab, setActiveTab] = (0, react_1.useState)(TabName.Basic);
|
46
|
+
const t = (0, translations_1.useUxfTranslation)();
|
45
47
|
return (react_1.default.createElement(content_builder_root_1.ContentBuilderRoot, { formApi: props.formApi, id: (_a = props.id) !== null && _a !== void 0 ? _a : generatedId, onSubmit: props.onSubmit },
|
46
|
-
react_1.default.createElement(content_builder_header_1.ContentBuilderHeader, { title: (_b = props.title) !== null && _b !== void 0 ? _b : "
|
48
|
+
react_1.default.createElement(content_builder_header_1.ContentBuilderHeader, { title: (_b = props.title) !== null && _b !== void 0 ? _b : t("uxf-cms-content-builder:settings.default-title") }),
|
47
49
|
react_1.default.createElement(content_builder_body_1.ContentBuilderBody, null,
|
48
50
|
react_1.default.createElement(content_builder_1.ContentField, { contentComponents: props.ContentComponents, control: props.formApi.control, name: "content" }),
|
49
|
-
react_1.default.createElement(content_builder_sidebar_1.ContentBuilderSidebar, { title: "
|
51
|
+
react_1.default.createElement(content_builder_sidebar_1.ContentBuilderSidebar, { title: t("uxf-cms-content-builder:settings.settings") },
|
50
52
|
react_1.default.createElement(tabs_1.Tabs, { onChange: setActiveTab, value: activeTab },
|
51
|
-
react_1.default.createElement(tabs_1.Tabs.Panel, { isAlwaysMounted: true, label: "
|
53
|
+
react_1.default.createElement(tabs_1.Tabs.Panel, { isAlwaysMounted: true, label: t("uxf-cms-content-builder:settings.basic"), name: TabName.Basic },
|
52
54
|
react_1.default.createElement(content_builder_basic_form_1.ContentBuilderBasicForm, { className: "space-y-8", fields: props.fields, formApi: props.formApi, uploadNamespace: props.uploadNamespace })),
|
53
55
|
react_1.default.createElement(tabs_1.Tabs.Panel, { isAlwaysMounted: true, label: "SEO", name: TabName.Seo },
|
54
56
|
react_1.default.createElement(content_builder_seo_form_1.ContentBuilderSeoForm, { className: "space-y-8", fields: props.fields, formApi: props.formApi, uploadNamespace: props.uploadNamespace })))))));
|
@@ -4,6 +4,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
4
4
|
};
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
6
6
|
exports.ContentBuilderBasicForm = ContentBuilderBasicForm;
|
7
|
+
const translations_1 = require("@uxf/core-react/translations");
|
7
8
|
const is_empty_1 = require("@uxf/core/utils/is-empty");
|
8
9
|
const is_nil_1 = require("@uxf/core/utils/is-nil");
|
9
10
|
const is_not_nil_1 = require("@uxf/core/utils/is-not-nil");
|
@@ -26,6 +27,7 @@ const visibilityLevelOptions = [
|
|
26
27
|
function ContentBuilderBasicForm(props) {
|
27
28
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y, _z, _0, _1, _2, _3;
|
28
29
|
const seoName = props.formApi.watch("seo.name");
|
30
|
+
const t = (0, translations_1.useUxfTranslation)();
|
29
31
|
const onBlurName = (event) => {
|
30
32
|
if ((0, is_nil_1.isNil)(seoName) || (0, is_empty_1.isEmpty)(seoName)) {
|
31
33
|
props.formApi.setValue("seo.name", (0, slugify_1.slugify)(event.target.value));
|
@@ -33,15 +35,15 @@ function ContentBuilderBasicForm(props) {
|
|
33
35
|
};
|
34
36
|
return (react_1.default.createElement("div", { className: props.className },
|
35
37
|
((_b = (_a = props.fields) === null || _a === void 0 ? void 0 : _a.type) === null || _b === void 0 ? void 0 : _b.options) && (react_1.default.createElement(select_1.Select, { control: props.formApi.control, isReadOnly: props.fields.type.isReadOnly, isRequired: true, label: "Typ", name: "type", options: props.fields.type.options })),
|
36
|
-
react_1.default.createElement(text_input_1.TextInput, { control: props.formApi.control, isRequired: true, label: "
|
37
|
-
!((_d = (_c = props.fields) === null || _c === void 0 ? void 0 : _c.publishedAt) === null || _d === void 0 ? void 0 : _d.isHidden) && (react_1.default.createElement(datetime_picker_input_1.DatetimePickerInput, { control: props.formApi.control, isRequired: true, label: "
|
38
|
-
!((_f = (_e = props.fields) === null || _e === void 0 ? void 0 : _e.perex) === null || _f === void 0 ? void 0 : _f.isHidden) && (react_1.default.createElement(textarea_1.Textarea, { control: props.formApi.control, label: "
|
39
|
-
((_h = (_g = props.fields) === null || _g === void 0 ? void 0 : _g.authorText) === null || _h === void 0 ? void 0 : _h.isHidden) === false && (react_1.default.createElement(text_input_1.TextInput, { control: props.formApi.control, label: "
|
40
|
-
!((_k = (_j = props.fields) === null || _j === void 0 ? void 0 : _j.author) === null || _k === void 0 ? void 0 : _k.isHidden) && ((_m = (_l = props.fields) === null || _l === void 0 ? void 0 : _l.author) === null || _m === void 0 ? void 0 : _m.autocomplete) && (react_1.default.createElement(combobox_1.Combobox, { control: props.formApi.control, label: "
|
38
|
+
react_1.default.createElement(text_input_1.TextInput, { control: props.formApi.control, isRequired: true, label: t("uxf-cms-content-builder:basic-form.title"), name: "name", onBlur: onBlurName, type: "text" }),
|
39
|
+
!((_d = (_c = props.fields) === null || _c === void 0 ? void 0 : _c.publishedAt) === null || _d === void 0 ? void 0 : _d.isHidden) && (react_1.default.createElement(datetime_picker_input_1.DatetimePickerInput, { control: props.formApi.control, isRequired: true, label: t("uxf-cms-content-builder:basic-form.published-at"), name: "publishedAt" })),
|
40
|
+
!((_f = (_e = props.fields) === null || _e === void 0 ? void 0 : _e.perex) === null || _f === void 0 ? void 0 : _f.isHidden) && (react_1.default.createElement(textarea_1.Textarea, { control: props.formApi.control, label: t("uxf-cms-content-builder:basic-form.perex"), name: "perex", rows: 3 })),
|
41
|
+
((_h = (_g = props.fields) === null || _g === void 0 ? void 0 : _g.authorText) === null || _h === void 0 ? void 0 : _h.isHidden) === false && (react_1.default.createElement(text_input_1.TextInput, { control: props.formApi.control, label: t("uxf-cms-content-builder:basic-form.author"), name: "authorText" })),
|
42
|
+
!((_k = (_j = props.fields) === null || _j === void 0 ? void 0 : _j.author) === null || _k === void 0 ? void 0 : _k.isHidden) && ((_m = (_l = props.fields) === null || _l === void 0 ? void 0 : _l.author) === null || _m === void 0 ? void 0 : _m.autocomplete) && (react_1.default.createElement(combobox_1.Combobox, { control: props.formApi.control, label: t("uxf-cms-content-builder:basic-form.author"), loadOptions: props.fields.author.autocomplete, name: "author" })),
|
41
43
|
!((_p = (_o = props.fields) === null || _o === void 0 ? void 0 : _o.category) === null || _p === void 0 ? void 0 : _p.isHidden) && ((_r = (_q = props.fields) === null || _q === void 0 ? void 0 : _q.category) === null || _r === void 0 ? void 0 : _r.autocomplete) && (react_1.default.createElement(combobox_1.Combobox, { control: props.formApi.control, label: "Kategorie", loadOptions: props.fields.category.autocomplete, name: "category" })),
|
42
44
|
!((_t = (_s = props.fields) === null || _s === void 0 ? void 0 : _s.tags) === null || _t === void 0 ? void 0 : _t.isHidden) && ((_v = (_u = props.fields) === null || _u === void 0 ? void 0 : _u.tags) === null || _v === void 0 ? void 0 : _v.autocomplete) && (react_1.default.createElement(multi_combobox_1.MultiCombobox, { control: props.formApi.control, label: "Tagy", loadOptions: props.fields.tags.autocomplete, name: "tags" })),
|
43
|
-
!((_x = (_w = props.fields) === null || _w === void 0 ? void 0 : _w.image) === null || _x === void 0 ? void 0 : _x.isHidden) && (react_1.default.createElement(file_input_1.FileInput, { control: props.formApi.control, id: "image", label: "
|
44
|
-
!((_z = (_y = props.fields) === null || _y === void 0 ? void 0 : _y.isActive) === null || _z === void 0 ? void 0 : _z.isHidden) && (react_1.default.createElement(checkbox_input_1.CheckboxInput, { control: props.formApi.control, label: "
|
45
|
+
!((_x = (_w = props.fields) === null || _w === void 0 ? void 0 : _w.image) === null || _x === void 0 ? void 0 : _x.isHidden) && (react_1.default.createElement(file_input_1.FileInput, { control: props.formApi.control, id: "image", label: t("uxf-cms-content-builder:basic-form.main-image"), name: "image", onUploadFile: (file) => (0, api_1.uploadFile)(file, props.uploadNamespace) })),
|
46
|
+
!((_z = (_y = props.fields) === null || _y === void 0 ? void 0 : _y.isActive) === null || _z === void 0 ? void 0 : _z.isHidden) && (react_1.default.createElement(checkbox_input_1.CheckboxInput, { control: props.formApi.control, label: t("uxf-cms-content-builder:basic-form.active"), name: "isActive" })),
|
45
47
|
!((_1 = (_0 = props.fields) === null || _0 === void 0 ? void 0 : _0.visibilityLevel) === null || _1 === void 0 ? void 0 : _1.isHidden) && (react_1.default.createElement(select_1.Select, { control: props.formApi.control, isRequired: true, label: "Viditelnost", name: "visibilityLevel", options: visibilityLevelOptions })),
|
46
|
-
(0, is_not_nil_1.isNotNil)((_3 = (_2 = props.fields) === null || _2 === void 0 ? void 0 : _2.parent) === null || _3 === void 0 ? void 0 : _3.autocomplete) && (react_1.default.createElement(combobox_1.Combobox, { control: props.formApi.control, label: "
|
48
|
+
(0, is_not_nil_1.isNotNil)((_3 = (_2 = props.fields) === null || _2 === void 0 ? void 0 : _2.parent) === null || _3 === void 0 ? void 0 : _3.autocomplete) && (react_1.default.createElement(combobox_1.Combobox, { control: props.formApi.control, label: t("uxf-cms-content-builder:basic-form.parent-article"), loadOptions: props.fields.parent.autocomplete, name: "parent" }))));
|
47
49
|
}
|
@@ -4,17 +4,19 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
4
4
|
};
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
6
6
|
exports.ContentBuilderSeoForm = ContentBuilderSeoForm;
|
7
|
+
const translations_1 = require("@uxf/core-react/translations");
|
7
8
|
const file_input_1 = require("@uxf/form/file-input");
|
8
9
|
const text_input_1 = require("@uxf/form/text-input");
|
9
10
|
const react_1 = __importDefault(require("react"));
|
10
11
|
const api_1 = require("../../api");
|
11
12
|
function ContentBuilderSeoForm(props) {
|
12
13
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t;
|
14
|
+
const t = (0, translations_1.useUxfTranslation)();
|
13
15
|
return (react_1.default.createElement("div", { className: props.className },
|
14
|
-
!((_c = (_b = (_a = props.fields) === null || _a === void 0 ? void 0 : _a.seo) === null || _b === void 0 ? void 0 : _b.name) === null || _c === void 0 ? void 0 : _c.isHidden) && (react_1.default.createElement(text_input_1.TextInput, { control: props.formApi.control, helperText: "
|
15
|
-
!((_f = (_e = (_d = props.fields) === null || _d === void 0 ? void 0 : _d.seo) === null || _e === void 0 ? void 0 : _e.title) === null || _f === void 0 ? void 0 : _f.isHidden) && (react_1.default.createElement(text_input_1.TextInput, { control: props.formApi.control, label: "
|
16
|
-
!((_j = (_h = (_g = props.fields) === null || _g === void 0 ? void 0 : _g.seo) === null || _h === void 0 ? void 0 : _h.description) === null || _j === void 0 ? void 0 : _j.isHidden) && (react_1.default.createElement(text_input_1.TextInput, { control: props.formApi.control, label: "
|
17
|
-
!((_m = (_l = (_k = props.fields) === null || _k === void 0 ? void 0 : _k.seo) === null || _l === void 0 ? void 0 : _l.ogTitle) === null || _m === void 0 ? void 0 : _m.isHidden) && (react_1.default.createElement(text_input_1.TextInput, { control: props.formApi.control, helperText: "
|
18
|
-
!((_q = (_p = (_o = props.fields) === null || _o === void 0 ? void 0 : _o.seo) === null || _p === void 0 ? void 0 : _p.ogDescription) === null || _q === void 0 ? void 0 : _q.isHidden) && (react_1.default.createElement(text_input_1.TextInput, { control: props.formApi.control, helperText: "
|
19
|
-
!((_t = (_s = (_r = props.fields) === null || _r === void 0 ? void 0 : _r.seo) === null || _s === void 0 ? void 0 : _s.ogImage) === null || _t === void 0 ? void 0 : _t.isHidden) && (react_1.default.createElement(file_input_1.FileInput, { control: props.formApi.control, helperText: "
|
16
|
+
!((_c = (_b = (_a = props.fields) === null || _a === void 0 ? void 0 : _a.seo) === null || _b === void 0 ? void 0 : _b.name) === null || _c === void 0 ? void 0 : _c.isHidden) && (react_1.default.createElement(text_input_1.TextInput, { control: props.formApi.control, helperText: t("uxf-cms-content-builder:seo-form.slug-helper"), isRequired: true, label: t("uxf-cms-content-builder:seo-form.slug"), name: "seo.name", type: "text" })),
|
17
|
+
!((_f = (_e = (_d = props.fields) === null || _d === void 0 ? void 0 : _d.seo) === null || _e === void 0 ? void 0 : _e.title) === null || _f === void 0 ? void 0 : _f.isHidden) && (react_1.default.createElement(text_input_1.TextInput, { control: props.formApi.control, label: t("uxf-cms-content-builder:seo-form.title"), name: "seo.title", type: "text" })),
|
18
|
+
!((_j = (_h = (_g = props.fields) === null || _g === void 0 ? void 0 : _g.seo) === null || _h === void 0 ? void 0 : _h.description) === null || _j === void 0 ? void 0 : _j.isHidden) && (react_1.default.createElement(text_input_1.TextInput, { control: props.formApi.control, label: t("uxf-cms-content-builder:seo-form.description"), name: "seo.description", type: "text" })),
|
19
|
+
!((_m = (_l = (_k = props.fields) === null || _k === void 0 ? void 0 : _k.seo) === null || _l === void 0 ? void 0 : _l.ogTitle) === null || _m === void 0 ? void 0 : _m.isHidden) && (react_1.default.createElement(text_input_1.TextInput, { control: props.formApi.control, helperText: t("uxf-cms-content-builder:seo-form.og-title-helper"), label: "OG nadpis", name: "seo.ogTitle", type: "text" })),
|
20
|
+
!((_q = (_p = (_o = props.fields) === null || _o === void 0 ? void 0 : _o.seo) === null || _p === void 0 ? void 0 : _p.ogDescription) === null || _q === void 0 ? void 0 : _q.isHidden) && (react_1.default.createElement(text_input_1.TextInput, { control: props.formApi.control, helperText: t("uxf-cms-content-builder:seo-form.og-description-helper"), label: "OG popis", name: "seo.ogDescription", type: "text" })),
|
21
|
+
!((_t = (_s = (_r = props.fields) === null || _r === void 0 ? void 0 : _r.seo) === null || _s === void 0 ? void 0 : _s.ogImage) === null || _t === void 0 ? void 0 : _t.isHidden) && (react_1.default.createElement(file_input_1.FileInput, { control: props.formApi.control, helperText: t("uxf-cms-content-builder:seo-form.og-image-helper"), id: "seo.ogImage", label: t("uxf-cms-content-builder:seo-form.og-image"), name: "seo.ogImage", onUploadFile: (file) => (0, api_1.uploadFile)(file, props.uploadNamespace) }))));
|
20
22
|
}
|
@@ -0,0 +1,127 @@
|
|
1
|
+
declare const _default: {
|
2
|
+
"uxf-cms-content-builder": {
|
3
|
+
header: {
|
4
|
+
save: {
|
5
|
+
cs: string;
|
6
|
+
en: string;
|
7
|
+
sk: string;
|
8
|
+
de: string;
|
9
|
+
};
|
10
|
+
};
|
11
|
+
settings: {
|
12
|
+
"default-title": {
|
13
|
+
cs: string;
|
14
|
+
en: string;
|
15
|
+
sk: string;
|
16
|
+
de: string;
|
17
|
+
};
|
18
|
+
settings: {
|
19
|
+
cs: string;
|
20
|
+
en: string;
|
21
|
+
sk: string;
|
22
|
+
de: string;
|
23
|
+
};
|
24
|
+
basic: {
|
25
|
+
cs: string;
|
26
|
+
en: string;
|
27
|
+
sk: string;
|
28
|
+
de: string;
|
29
|
+
};
|
30
|
+
};
|
31
|
+
"basic-form": {
|
32
|
+
title: {
|
33
|
+
cs: string;
|
34
|
+
en: string;
|
35
|
+
sk: string;
|
36
|
+
de: string;
|
37
|
+
};
|
38
|
+
perex: {
|
39
|
+
cs: string;
|
40
|
+
en: string;
|
41
|
+
sk: string;
|
42
|
+
de: string;
|
43
|
+
};
|
44
|
+
author: {
|
45
|
+
cs: string;
|
46
|
+
en: string;
|
47
|
+
sk: string;
|
48
|
+
de: string;
|
49
|
+
};
|
50
|
+
"main-image": {
|
51
|
+
cs: string;
|
52
|
+
en: string;
|
53
|
+
sk: string;
|
54
|
+
de: string;
|
55
|
+
};
|
56
|
+
active: {
|
57
|
+
cs: string;
|
58
|
+
en: string;
|
59
|
+
sk: string;
|
60
|
+
de: string;
|
61
|
+
};
|
62
|
+
"parent-article": {
|
63
|
+
cs: string;
|
64
|
+
en: string;
|
65
|
+
sk: string;
|
66
|
+
de: string;
|
67
|
+
};
|
68
|
+
"published-at": {
|
69
|
+
cs: string;
|
70
|
+
en: string;
|
71
|
+
sk: string;
|
72
|
+
de: string;
|
73
|
+
};
|
74
|
+
};
|
75
|
+
"seo-form": {
|
76
|
+
slug: {
|
77
|
+
cs: string;
|
78
|
+
en: string;
|
79
|
+
sk: string;
|
80
|
+
de: string;
|
81
|
+
};
|
82
|
+
"slug-helper": {
|
83
|
+
cs: string;
|
84
|
+
en: string;
|
85
|
+
sk: string;
|
86
|
+
de: string;
|
87
|
+
};
|
88
|
+
title: {
|
89
|
+
cs: string;
|
90
|
+
en: string;
|
91
|
+
sk: string;
|
92
|
+
de: string;
|
93
|
+
};
|
94
|
+
description: {
|
95
|
+
cs: string;
|
96
|
+
en: string;
|
97
|
+
sk: string;
|
98
|
+
de: string;
|
99
|
+
};
|
100
|
+
"og-title-helper": {
|
101
|
+
cs: string;
|
102
|
+
en: string;
|
103
|
+
sk: string;
|
104
|
+
de: string;
|
105
|
+
};
|
106
|
+
"og-description-helper": {
|
107
|
+
cs: string;
|
108
|
+
en: string;
|
109
|
+
sk: string;
|
110
|
+
de: string;
|
111
|
+
};
|
112
|
+
"og-image": {
|
113
|
+
cs: string;
|
114
|
+
en: string;
|
115
|
+
sk: string;
|
116
|
+
de: string;
|
117
|
+
};
|
118
|
+
"og-image-helper": {
|
119
|
+
cs: string;
|
120
|
+
en: string;
|
121
|
+
sk: string;
|
122
|
+
de: string;
|
123
|
+
};
|
124
|
+
};
|
125
|
+
};
|
126
|
+
};
|
127
|
+
export default _default;
|
@@ -0,0 +1,128 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.default = {
|
4
|
+
"uxf-cms-content-builder": {
|
5
|
+
header: {
|
6
|
+
save: {
|
7
|
+
cs: "Uložit",
|
8
|
+
en: "Save",
|
9
|
+
sk: "Uložiť",
|
10
|
+
de: "Speichern",
|
11
|
+
},
|
12
|
+
},
|
13
|
+
settings: {
|
14
|
+
"default-title": {
|
15
|
+
cs: "Článek knihovny",
|
16
|
+
en: "Library article",
|
17
|
+
sk: "Článok knižnice",
|
18
|
+
de: "Bibliotheksartikel",
|
19
|
+
},
|
20
|
+
settings: {
|
21
|
+
cs: "Nastavení",
|
22
|
+
en: "Settings",
|
23
|
+
sk: "Nastavenia",
|
24
|
+
de: "Einstellungen",
|
25
|
+
},
|
26
|
+
basic: {
|
27
|
+
cs: "Základní",
|
28
|
+
en: "Basic",
|
29
|
+
sk: "Základné",
|
30
|
+
de: "Grundlagen",
|
31
|
+
},
|
32
|
+
},
|
33
|
+
"basic-form": {
|
34
|
+
title: {
|
35
|
+
cs: "Nadpis",
|
36
|
+
en: "Title",
|
37
|
+
sk: "Nadpis",
|
38
|
+
de: "Titel",
|
39
|
+
},
|
40
|
+
perex: {
|
41
|
+
cs: "Perex",
|
42
|
+
en: "Perex",
|
43
|
+
sk: "Perex",
|
44
|
+
de: "Perex",
|
45
|
+
},
|
46
|
+
author: {
|
47
|
+
cs: "Autor",
|
48
|
+
en: "Author",
|
49
|
+
sk: "Autor",
|
50
|
+
de: "Autor",
|
51
|
+
},
|
52
|
+
"main-image": {
|
53
|
+
cs: "Hlavní obrázek",
|
54
|
+
en: "Main image",
|
55
|
+
sk: "Hlavný obrázok",
|
56
|
+
de: "Hauptbild",
|
57
|
+
},
|
58
|
+
active: {
|
59
|
+
cs: "Aktivní",
|
60
|
+
en: "Active",
|
61
|
+
sk: "Aktívny",
|
62
|
+
de: "Aktiv",
|
63
|
+
},
|
64
|
+
"parent-article": {
|
65
|
+
cs: "Nadřazený článek",
|
66
|
+
en: "Parent article",
|
67
|
+
sk: "Nadradený článok",
|
68
|
+
de: "Übergeordneter Artikel",
|
69
|
+
},
|
70
|
+
"published-at": {
|
71
|
+
cs: "Datum vydání",
|
72
|
+
en: "Publication date",
|
73
|
+
sk: "Dátum vydania",
|
74
|
+
de: "Veröffentlichungsdatum",
|
75
|
+
},
|
76
|
+
},
|
77
|
+
"seo-form": {
|
78
|
+
slug: {
|
79
|
+
cs: "Slug",
|
80
|
+
en: "Slug",
|
81
|
+
sk: "Slug",
|
82
|
+
de: "Slug",
|
83
|
+
},
|
84
|
+
"slug-helper": {
|
85
|
+
cs: "Slug = unikátní koncovka URL adresy",
|
86
|
+
en: "Slug = unique URL address ending",
|
87
|
+
sk: "Slug = unikátna koncovka URL adresy",
|
88
|
+
de: "Slug = eindeutige URL-Adressenendung",
|
89
|
+
},
|
90
|
+
title: {
|
91
|
+
cs: "Nadpis",
|
92
|
+
en: "Title",
|
93
|
+
sk: "Nadpis",
|
94
|
+
de: "Titel",
|
95
|
+
},
|
96
|
+
description: {
|
97
|
+
cs: "Popis",
|
98
|
+
en: "Description",
|
99
|
+
sk: "Popis",
|
100
|
+
de: "Beschreibung",
|
101
|
+
},
|
102
|
+
"og-title-helper": {
|
103
|
+
cs: "Nadpis který bude zobrazen při sdílení na Facebooku, ...",
|
104
|
+
en: "Title that will be displayed when sharing on Facebook, ...",
|
105
|
+
sk: "Nadpis ktorý bude zobrazený pri zdieľaní na Facebooku, ...",
|
106
|
+
de: "Titel, der beim Teilen auf Facebook angezeigt wird, ...",
|
107
|
+
},
|
108
|
+
"og-description-helper": {
|
109
|
+
cs: "Popis který bude zobrazen při sdílení na Facebooku, ...",
|
110
|
+
en: "Description that will be displayed when sharing on Facebook, ...",
|
111
|
+
sk: "Popis ktorý bude zobrazený pri zdieľaní na Facebooku, ...",
|
112
|
+
de: "Beschreibung, die beim Teilen auf Facebook angezeigt wird, ...",
|
113
|
+
},
|
114
|
+
"og-image": {
|
115
|
+
cs: "OG obrázek",
|
116
|
+
en: "OG image",
|
117
|
+
sk: "OG obrázok",
|
118
|
+
de: "OG-Bild",
|
119
|
+
},
|
120
|
+
"og-image-helper": {
|
121
|
+
cs: "Obrázek který bude zobrazen při sdílení na Facebooku, ...",
|
122
|
+
en: "Image that will be displayed when sharing on Facebook, ...",
|
123
|
+
sk: "Obrázok ktorý bude zobrazený pri zdieľaní na Facebooku, ...",
|
124
|
+
de: "Bild, das beim Teilen auf Facebook angezeigt wird, ...",
|
125
|
+
},
|
126
|
+
},
|
127
|
+
},
|
128
|
+
};
|
@@ -4,6 +4,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
4
4
|
};
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
6
6
|
exports.ChangePasswordForm = void 0;
|
7
|
+
const translations_1 = require("@uxf/core-react/translations");
|
7
8
|
const form_1 = require("@uxf/form/form");
|
8
9
|
const text_input_1 = require("@uxf/form/text-input");
|
9
10
|
const button_1 = require("@uxf/ui/button");
|
@@ -13,14 +14,18 @@ const widget_1 = require("../../ui/widget");
|
|
13
14
|
const ChangePasswordForm = (props) => {
|
14
15
|
// eslint-disable-next-line react/destructuring-assignment
|
15
16
|
const { defaultValues, ...formProps } = props;
|
17
|
+
const t = (0, translations_1.useUxfTranslation)();
|
16
18
|
const formApi = (0, react_hook_form_1.useForm)({
|
17
19
|
defaultValues,
|
18
20
|
});
|
19
21
|
return (react_1.default.createElement(form_1.Form, { formApi: formApi, id: "change-password-form", ...formProps },
|
20
22
|
react_1.default.createElement(widget_1.Widget, { className: "[&>*]:p-4", footer: react_1.default.createElement("div", { className: "text-right" },
|
21
|
-
react_1.default.createElement(button_1.Button, { isDisabled: formApi.formState.isSubmitting, type: "submit" }, "
|
22
|
-
react_1.default.createElement(text_input_1.TextInput, { control: formApi.control, isRequired: true, label: "
|
23
|
-
react_1.default.createElement(text_input_1.TextInput, { control: formApi.control, isRequired: true, label: "
|
24
|
-
react_1.default.createElement(text_input_1.TextInput, { control: formApi.control, isRequired: true, label: "
|
23
|
+
react_1.default.createElement(button_1.Button, { isDisabled: formApi.formState.isSubmitting, type: "submit" }, t("uxf-cms-change-password-form:save"))), withDividers: true },
|
24
|
+
react_1.default.createElement(text_input_1.TextInput, { control: formApi.control, isRequired: true, label: t("uxf-cms-change-password-form:original-password"), name: "originalPassword", type: "password" }),
|
25
|
+
react_1.default.createElement(text_input_1.TextInput, { control: formApi.control, isRequired: true, label: t("uxf-cms-change-password-form:new-password"), name: "newPassword", rules: props.passwordRules, type: "password" }),
|
26
|
+
react_1.default.createElement(text_input_1.TextInput, { control: formApi.control, isRequired: true, label: t("uxf-cms-change-password-form:new-password-again"), name: "newPasswordAgain", rules: {
|
27
|
+
validate: (v) => v === formApi.getValues("newPassword") ||
|
28
|
+
t("uxf-cms-change-password-form:passwords-must-match"),
|
29
|
+
}, type: "password" }))));
|
25
30
|
};
|
26
31
|
exports.ChangePasswordForm = ChangePasswordForm;
|
@@ -0,0 +1,35 @@
|
|
1
|
+
declare const _default: {
|
2
|
+
"uxf-cms-change-password-form": {
|
3
|
+
save: {
|
4
|
+
cs: string;
|
5
|
+
en: string;
|
6
|
+
sk: string;
|
7
|
+
de: string;
|
8
|
+
};
|
9
|
+
"original-password": {
|
10
|
+
cs: string;
|
11
|
+
en: string;
|
12
|
+
sk: string;
|
13
|
+
de: string;
|
14
|
+
};
|
15
|
+
"new-password": {
|
16
|
+
cs: string;
|
17
|
+
en: string;
|
18
|
+
sk: string;
|
19
|
+
de: string;
|
20
|
+
};
|
21
|
+
"new-password-again": {
|
22
|
+
cs: string;
|
23
|
+
en: string;
|
24
|
+
sk: string;
|
25
|
+
de: string;
|
26
|
+
};
|
27
|
+
"passwords-must-match": {
|
28
|
+
cs: string;
|
29
|
+
en: string;
|
30
|
+
sk: string;
|
31
|
+
de: string;
|
32
|
+
};
|
33
|
+
};
|
34
|
+
};
|
35
|
+
export default _default;
|
@@ -0,0 +1,36 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.default = {
|
4
|
+
"uxf-cms-change-password-form": {
|
5
|
+
save: {
|
6
|
+
cs: "Uložit",
|
7
|
+
en: "Save",
|
8
|
+
sk: "Uložiť",
|
9
|
+
de: "Speichern",
|
10
|
+
},
|
11
|
+
"original-password": {
|
12
|
+
cs: "Původní heslo",
|
13
|
+
en: "Original password",
|
14
|
+
sk: "Pôvodné heslo",
|
15
|
+
de: "Ursprüngliches Passwort",
|
16
|
+
},
|
17
|
+
"new-password": {
|
18
|
+
cs: "Nové heslo",
|
19
|
+
en: "New password",
|
20
|
+
sk: "Nové heslo",
|
21
|
+
de: "Neues Passwort",
|
22
|
+
},
|
23
|
+
"new-password-again": {
|
24
|
+
cs: "Nové heslo znovu",
|
25
|
+
en: "New password again",
|
26
|
+
sk: "Nové heslo znovu",
|
27
|
+
de: "Neues Passwort wiederholen",
|
28
|
+
},
|
29
|
+
"passwords-must-match": {
|
30
|
+
cs: "Hesla musí být stejná",
|
31
|
+
en: "Passwords must match",
|
32
|
+
sk: "Heslá musia byť rovnaké",
|
33
|
+
de: "Passwörter müssen übereinstimmen",
|
34
|
+
},
|
35
|
+
},
|
36
|
+
};
|
@@ -24,6 +24,7 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
|
24
24
|
};
|
25
25
|
Object.defineProperty(exports, "__esModule", { value: true });
|
26
26
|
exports.ForgottenPasswordForm = void 0;
|
27
|
+
const translations_1 = require("@uxf/core-react/translations");
|
27
28
|
const form_1 = require("@uxf/form/form");
|
28
29
|
const text_input_1 = require("@uxf/form/text-input");
|
29
30
|
const button_1 = require("@uxf/ui/button");
|
@@ -33,6 +34,7 @@ const react_hook_form_1 = require("react-hook-form");
|
|
33
34
|
const ForgottenPasswordForm = (props) => {
|
34
35
|
// eslint-disable-next-line react/destructuring-assignment
|
35
36
|
const { defaultValues, onLogin, ...formProps } = props;
|
37
|
+
const t = (0, translations_1.useUxfTranslation)();
|
36
38
|
const formApi = (0, react_hook_form_1.useForm)({
|
37
39
|
defaultValues,
|
38
40
|
});
|
@@ -43,8 +45,8 @@ const ForgottenPasswordForm = (props) => {
|
|
43
45
|
return (react_1.default.createElement(form_1.Form, { formApi: formApi, id: "forgotten-password-form", ...formProps },
|
44
46
|
react_1.default.createElement("div", { className: "space-y-6" },
|
45
47
|
react_1.default.createElement(text_input_1.TextInput, { control: formApi.control, isDisabled: formDisabled, isRequired: true, label: "E-mail", name: "username", type: "text" }),
|
46
|
-
react_1.default.createElement(button_1.Button, { isDisabled: formDisabled || formApi.formState.isSubmitting, isFullWidth: true, isLoading: formApi.formState.isSubmitting, type: "submit" }, "
|
48
|
+
react_1.default.createElement(button_1.Button, { isDisabled: formDisabled || formApi.formState.isSubmitting, isFullWidth: true, isLoading: formApi.formState.isSubmitting, type: "submit" }, t("uxf-cms-forgotten-password-form:reset-password")),
|
47
49
|
onLogin && (react_1.default.createElement("div", { className: "text-right" },
|
48
|
-
react_1.default.createElement(text_link_1.TextLink, { className: "uxf-typo-medium2 text-primary", isDisabled: formApi.formState.isSubmitting, onClick: onLogin }, "
|
50
|
+
react_1.default.createElement(text_link_1.TextLink, { className: "uxf-typo-medium2 text-primary", isDisabled: formApi.formState.isSubmitting, onClick: onLogin }, t("uxf-cms-forgotten-password-form:login")))))));
|
49
51
|
};
|
50
52
|
exports.ForgottenPasswordForm = ForgottenPasswordForm;
|
@@ -0,0 +1,17 @@
|
|
1
|
+
declare const _default: {
|
2
|
+
"uxf-cms-forgotten-password-form": {
|
3
|
+
"reset-password": {
|
4
|
+
cs: string;
|
5
|
+
en: string;
|
6
|
+
sk: string;
|
7
|
+
de: string;
|
8
|
+
};
|
9
|
+
login: {
|
10
|
+
cs: string;
|
11
|
+
en: string;
|
12
|
+
sk: string;
|
13
|
+
de: string;
|
14
|
+
};
|
15
|
+
};
|
16
|
+
};
|
17
|
+
export default _default;
|
@@ -0,0 +1,18 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.default = {
|
4
|
+
"uxf-cms-forgotten-password-form": {
|
5
|
+
"reset-password": {
|
6
|
+
cs: "Obnovit heslo",
|
7
|
+
en: "Reset password",
|
8
|
+
sk: "Obnoviť heslo",
|
9
|
+
de: "Passwort zurücksetzen",
|
10
|
+
},
|
11
|
+
login: {
|
12
|
+
cs: "Přihlásit",
|
13
|
+
en: "Login",
|
14
|
+
sk: "Prihlásiť",
|
15
|
+
de: "Anmelden",
|
16
|
+
},
|
17
|
+
},
|
18
|
+
};
|
@@ -5,6 +5,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
5
5
|
};
|
6
6
|
Object.defineProperty(exports, "__esModule", { value: true });
|
7
7
|
exports.InviteUserForm = void 0;
|
8
|
+
const translations_1 = require("@uxf/core-react/translations");
|
8
9
|
const checkbox_input_1 = require("@uxf/form/checkbox-input");
|
9
10
|
const form_1 = require("@uxf/form/form");
|
10
11
|
const multi_combobox_1 = require("@uxf/form/multi-combobox");
|
@@ -16,16 +17,17 @@ const widget_1 = require("../../ui/widget");
|
|
16
17
|
const InviteUserForm = (props) => {
|
17
18
|
// eslint-disable-next-line react/destructuring-assignment
|
18
19
|
const { defaultValues, ...formProps } = props;
|
20
|
+
const t = (0, translations_1.useUxfTranslation)();
|
19
21
|
const formApi = (0, react_hook_form_1.useForm)({
|
20
22
|
defaultValues,
|
21
23
|
});
|
22
24
|
return (react_1.default.createElement(form_1.Form, { formApi: formApi, id: "invite-user-form", ...formProps },
|
23
25
|
react_1.default.createElement(widget_1.Widget, { className: "[&>*]:p-4", footer: react_1.default.createElement("div", { className: "text-right" },
|
24
|
-
react_1.default.createElement(button_1.Button, { isDisabled: formApi.formState.isSubmitting, type: "submit" }, "
|
26
|
+
react_1.default.createElement(button_1.Button, { isDisabled: formApi.formState.isSubmitting, type: "submit" }, t("uxf-cms-invite-user-form:save"))), withDividers: true },
|
25
27
|
react_1.default.createElement(text_input_1.TextInput, { control: formApi.control, isRequired: true, label: "E-mail", name: "email", type: "email" }),
|
26
|
-
react_1.default.createElement(text_input_1.TextInput, { control: formApi.control, isRequired: true, label: "
|
27
|
-
react_1.default.createElement(text_input_1.TextInput, { control: formApi.control, isRequired: true, label: "
|
28
|
-
react_1.default.createElement(multi_combobox_1.MultiCombobox, { control: formApi.control, isRequired: true, label: "
|
29
|
-
react_1.default.createElement(checkbox_input_1.CheckboxInput, { control: formApi.control, label: "
|
28
|
+
react_1.default.createElement(text_input_1.TextInput, { control: formApi.control, isRequired: true, label: t("uxf-cms-invite-user-form:name"), name: "name" }),
|
29
|
+
react_1.default.createElement(text_input_1.TextInput, { control: formApi.control, isRequired: true, label: t("uxf-cms-invite-user-form:surname"), name: "surname" }),
|
30
|
+
react_1.default.createElement(multi_combobox_1.MultiCombobox, { control: formApi.control, isRequired: true, label: t("uxf-cms-invite-user-form:roles"), loadOptions: props.onLoadRoles, name: "roles" }),
|
31
|
+
react_1.default.createElement(checkbox_input_1.CheckboxInput, { control: formApi.control, label: t("uxf-cms-invite-user-form:send-invitation"), name: "sendInvitation" }))));
|
30
32
|
};
|
31
33
|
exports.InviteUserForm = InviteUserForm;
|
@@ -0,0 +1,35 @@
|
|
1
|
+
declare const _default: {
|
2
|
+
"uxf-cms-invite-user-form": {
|
3
|
+
save: {
|
4
|
+
cs: string;
|
5
|
+
en: string;
|
6
|
+
sk: string;
|
7
|
+
de: string;
|
8
|
+
};
|
9
|
+
name: {
|
10
|
+
cs: string;
|
11
|
+
en: string;
|
12
|
+
sk: string;
|
13
|
+
de: string;
|
14
|
+
};
|
15
|
+
surname: {
|
16
|
+
cs: string;
|
17
|
+
en: string;
|
18
|
+
sk: string;
|
19
|
+
de: string;
|
20
|
+
};
|
21
|
+
roles: {
|
22
|
+
cs: string;
|
23
|
+
en: string;
|
24
|
+
sk: string;
|
25
|
+
de: string;
|
26
|
+
};
|
27
|
+
"send-invitation": {
|
28
|
+
cs: string;
|
29
|
+
en: string;
|
30
|
+
sk: string;
|
31
|
+
de: string;
|
32
|
+
};
|
33
|
+
};
|
34
|
+
};
|
35
|
+
export default _default;
|