@uxf/cms 11.21.5 → 11.22.1

Sign up to get free protection for your applications and to get access to all the features.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@uxf/cms",
3
- "version": "11.21.5",
3
+ "version": "11.22.1",
4
4
  "description": "UXF Cms",
5
5
  "author": "UXFans <dev@uxf.cz>",
6
6
  "homepage": "https://gitlab.com/uxf-npm/cms#readme",
@@ -30,13 +30,13 @@
30
30
  "@dnd-kit/utilities": "3.2.2",
31
31
  "@floating-ui/react": "0.26.9",
32
32
  "@redux-devtools/extension": "3.3.0",
33
- "@uxf/core": "11.21.5",
34
- "@uxf/core-react": "11.21.5",
35
- "@uxf/data-grid": "11.21.5",
36
- "@uxf/form": "11.21.5",
37
- "@uxf/router": "11.11.3",
38
- "@uxf/ui": "11.21.5",
39
- "@uxf/wysiwyg": "11.21.5",
33
+ "@uxf/core": "11.22.0",
34
+ "@uxf/core-react": "11.22.0",
35
+ "@uxf/data-grid": "11.22.1",
36
+ "@uxf/form": "11.22.1",
37
+ "@uxf/router": "11.22.0",
38
+ "@uxf/ui": "11.22.1",
39
+ "@uxf/wysiwyg": "11.22.1",
40
40
  "axios": "1.6.7",
41
41
  "axios-hooks": "5.0.2",
42
42
  "es6-error": "4.1.1",
@@ -1,6 +1,26 @@
1
1
  "use strict";
2
- var __importDefault = (this && this.__importDefault) || function (mod) {
3
- return (mod && mod.__esModule) ? mod : { "default": mod };
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
14
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
15
+ }) : function(o, v) {
16
+ o["default"] = v;
17
+ });
18
+ var __importStar = (this && this.__importStar) || function (mod) {
19
+ if (mod && mod.__esModule) return mod;
20
+ var result = {};
21
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
22
+ __setModuleDefault(result, mod);
23
+ return result;
4
24
  };
5
25
  Object.defineProperty(exports, "__esModule", { value: true });
6
26
  exports.FormRootFields = void 0;
@@ -13,7 +33,7 @@ const select_1 = require("@uxf/form/select");
13
33
  const text_input_1 = require("@uxf/form/text-input");
14
34
  const textarea_1 = require("@uxf/form/textarea");
15
35
  const tabs_1 = require("@uxf/ui/tabs");
16
- const react_1 = __importDefault(require("react"));
36
+ const react_1 = __importStar(require("react"));
17
37
  const api_1 = require("../../../api");
18
38
  const on_upload_file_1 = require("../../../forms/utils/on-upload-file");
19
39
  const options = [
@@ -25,9 +45,10 @@ const FormRootFields = (props) => {
25
45
  var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q;
26
46
  // eslint-disable-next-line react/destructuring-assignment
27
47
  const { children, config, id, control } = props;
48
+ const [activeTab, setActiveTab] = (0, react_1.useState)("basic");
28
49
  return (react_1.default.createElement("div", { className: "pb-2 pt-4" },
29
- react_1.default.createElement(tabs_1.Tabs, null,
30
- react_1.default.createElement(tabs_1.Tabs.Panel, { title: "Z\u00E1kladn\u00ED" },
50
+ react_1.default.createElement(tabs_1.Tabs, { value: activeTab, onChange: setActiveTab },
51
+ react_1.default.createElement(tabs_1.Tabs.Panel, { name: "basic", label: "Z\u00E1kladn\u00ED" },
31
52
  react_1.default.createElement("div", { className: "space-y-8 px-4 pb-4" },
32
53
  config.allowedTypes && (react_1.default.createElement("div", null,
33
54
  react_1.default.createElement(select_1.Select, { name: "type", label: "Typ", options: config.allowedTypes, isReadOnly: !!id, isRequired: true, control: control }))),
@@ -49,7 +70,7 @@ const FormRootFields = (props) => {
49
70
  react_1.default.createElement(checkbox_input_1.CheckboxInput, { name: "active", label: "Aktivn\u00ED", control: control })),
50
71
  react_1.default.createElement("div", null,
51
72
  react_1.default.createElement(select_1.Select, { name: "visibilityLevel", label: "Viditelnost", options: options, isRequired: true, control: control })))),
52
- react_1.default.createElement(tabs_1.Tabs.Panel, { title: "SEO" },
73
+ react_1.default.createElement(tabs_1.Tabs.Panel, { name: "seo", label: "SEO" },
53
74
  react_1.default.createElement("div", { className: "space-y-8 px-4 pb-4" },
54
75
  react_1.default.createElement("div", null,
55
76
  react_1.default.createElement(text_input_1.TextInput, { name: "seo.name", label: "Slug", helperText: "Slug = unik\u00E1tn\u00ED koncovka URL adresy", control: control })),