@uxf/cms 11.34.1 → 11.36.0

Sign up to get free protection for your applications and to get access to all the features.
package/package.json CHANGED
@@ -1,63 +1,63 @@
1
1
  {
2
- "name": "@uxf/cms",
3
- "version": "11.34.1",
4
- "description": "UXF Cms",
5
- "author": "UXFans <dev@uxf.cz>",
6
- "homepage": "https://gitlab.com/uxf-npm/cms#readme",
7
- "license": "ISC",
8
- "main": "index.js",
9
- "typings": "index.d.ts",
10
- "module": "index.js",
11
- "publishConfig": {
12
- "access": "public"
13
- },
14
- "repository": {
15
- "type": "git",
16
- "url": "git+https://gitlab.com/uxf-npm/cms.git"
17
- },
18
- "bugs": {
19
- "url": "https://gitlab.com/uxf-npm/cms/issues"
20
- },
21
- "scripts": {
22
- "build": "tsc -P tsconfig.json",
23
- "tw-tokens:check": "ts-node ../ui/scripts/generate-tw-tokens.js --mode=\"check\" --twConfig=\"./utils/tailwind.config.js\" --outputPath=\"./ui/tw-tokens/\"",
24
- "tw-tokens:gen": "ts-node ../ui/scripts/generate-tw-tokens.js --twConfig=\"./utils/tailwind.config.js\" --outputPath=\"./ui/tw-tokens/\"",
25
- "typecheck": "tsc --noEmit --skipLibCheck"
26
- },
27
- "dependencies": {
28
- "@dnd-kit/core": "6.1.0",
29
- "@dnd-kit/sortable": "8.0.0",
30
- "@dnd-kit/utilities": "3.2.2",
31
- "@floating-ui/react": "0.26.23",
32
- "@redux-devtools/extension": "3.3.0",
33
- "@uxf/core": "11.32.0",
34
- "@uxf/core-react": "11.33.0",
35
- "@uxf/data-grid": "11.34.1",
36
- "@uxf/form": "11.34.1",
37
- "@uxf/router": "11.32.0",
38
- "@uxf/ui": "11.34.1",
39
- "@uxf/wysiwyg": "11.34.1",
40
- "axios": "1.7.5",
41
- "axios-hooks": "5.0.2",
42
- "es6-error": "4.1.1",
43
- "qs": "6.13.0",
44
- "react-hook-form": "7.53.0",
45
- "react-redux": "8.1.3",
46
- "redux": "4.2.1",
47
- "swr": "2.2.5"
48
- },
49
- "peerDependencies": {
50
- "next": ">=13.2.0",
51
- "react": ">=18.2.0",
52
- "react-dom": ">=18.2.0"
53
- },
54
- "devDependencies": {
55
- "@types/node": "20.16.1",
56
- "@types/qs": "6.9.15",
57
- "@types/react": "18.3.5",
58
- "@types/react-dom": "18.3.0",
59
- "next": "14.2.6",
60
- "react": "18.3.1",
61
- "react-dom": "18.3.1"
62
- }
63
- }
2
+ "name": "@uxf/cms",
3
+ "version": "11.36.0",
4
+ "description": "UXF Cms",
5
+ "author": "UXFans <dev@uxf.cz>",
6
+ "homepage": "https://gitlab.com/uxf-npm/cms#readme",
7
+ "license": "ISC",
8
+ "main": "index.js",
9
+ "typings": "index.d.ts",
10
+ "module": "index.js",
11
+ "publishConfig": {
12
+ "access": "public"
13
+ },
14
+ "repository": {
15
+ "type": "git",
16
+ "url": "git+https://gitlab.com/uxf-npm/cms.git"
17
+ },
18
+ "bugs": {
19
+ "url": "https://gitlab.com/uxf-npm/cms/issues"
20
+ },
21
+ "scripts": {
22
+ "build": "tsc -P tsconfig.json",
23
+ "tw-tokens:check": "ts-node ../ui/scripts/generate-tw-tokens.js --mode=\"check\" --twConfig=\"./utils/tailwind.config.js\" --outputPath=\"./ui/tw-tokens/\"",
24
+ "tw-tokens:gen": "ts-node ../ui/scripts/generate-tw-tokens.js --twConfig=\"./utils/tailwind.config.js\" --outputPath=\"./ui/tw-tokens/\"",
25
+ "typecheck": "tsc --noEmit --skipLibCheck"
26
+ },
27
+ "dependencies": {
28
+ "@dnd-kit/core": "6.1.0",
29
+ "@dnd-kit/sortable": "8.0.0",
30
+ "@dnd-kit/utilities": "3.2.2",
31
+ "@floating-ui/react": "0.26.23",
32
+ "@redux-devtools/extension": "3.3.0",
33
+ "@uxf/core": "11.35.0",
34
+ "@uxf/core-react": "11.36.0",
35
+ "@uxf/data-grid": "11.36.0",
36
+ "@uxf/form": "11.36.0",
37
+ "@uxf/router": "11.32.0",
38
+ "@uxf/ui": "11.36.0",
39
+ "@uxf/wysiwyg": "11.36.0",
40
+ "axios": "1.7.5",
41
+ "axios-hooks": "5.0.2",
42
+ "es6-error": "4.1.1",
43
+ "qs": "6.13.0",
44
+ "react-hook-form": "7.53.0",
45
+ "react-redux": "8.1.3",
46
+ "redux": "4.2.1",
47
+ "swr": "2.2.5"
48
+ },
49
+ "peerDependencies": {
50
+ "next": ">=13.2.0",
51
+ "react": ">=18.2.0",
52
+ "react-dom": ">=18.2.0"
53
+ },
54
+ "devDependencies": {
55
+ "@types/node": "20.16.1",
56
+ "@types/qs": "6.9.15",
57
+ "@types/react": "18.3.5",
58
+ "@types/react-dom": "18.3.0",
59
+ "next": "14.2.6",
60
+ "react": "18.3.1",
61
+ "react-dom": "18.3.1"
62
+ }
63
+ }
@@ -36,6 +36,7 @@ const use_data_grid_control_1 = require("@uxf/data-grid/use-data-grid-control");
36
36
  const use_data_grid_fetching_1 = require("@uxf/data-grid/use-data-grid-fetching");
37
37
  const router_1 = require("@uxf/router");
38
38
  const icon_1 = require("@uxf/ui/icon");
39
+ const link_1 = __importDefault(require("next/link"));
39
40
  const router_2 = __importDefault(require("next/router"));
40
41
  const qs_1 = require("qs");
41
42
  const react_1 = __importStar(require("react"));
@@ -103,6 +104,7 @@ const GridPageComponent = (props) => {
103
104
  .when((0, is_not_nil_1.isNotNil)((_a = props.onOpen) !== null && _a !== void 0 ? _a : props.getOpenUrl), {
104
105
  icon: "circle-info",
105
106
  onClick: () => { var _a; return (_a = props.onOpen) === null || _a === void 0 ? void 0 : _a.call(props, props.entityAlias, actionCellProps.row, actionsBag); },
107
+ as: props.getOpenUrl ? link_1.default : undefined,
106
108
  href: (_c = (_b = props.getOpenUrl) === null || _b === void 0 ? void 0 : _b.call(props, props.entityAlias, actionCellProps.row)) !== null && _c !== void 0 ? _c : undefined,
107
109
  isIconButton: true,
108
110
  title: "Detail",
@@ -110,6 +112,7 @@ const GridPageComponent = (props) => {
110
112
  .when((0, is_not_nil_1.isNotNil)((_d = props.onEdit) !== null && _d !== void 0 ? _d : props.getEditUrl), {
111
113
  icon: "pen",
112
114
  onClick: () => { var _a; return (_a = props.onEdit) === null || _a === void 0 ? void 0 : _a.call(props, props.entityAlias, actionCellProps.row, actionsBag); },
115
+ as: props.getEditUrl ? link_1.default : undefined,
113
116
  href: (_f = (_e = props.getEditUrl) === null || _e === void 0 ? void 0 : _e.call(props, props.entityAlias, actionCellProps.row)) !== null && _f !== void 0 ? _f : undefined,
114
117
  isIconButton: true,
115
118
  title: "Upravit",
@@ -351,6 +351,121 @@ export declare const twColors: {
351
351
  DEFAULT: string;
352
352
  };
353
353
  test: string;
354
+ primary_surface_default: string;
355
+ primary_surface_default_hover: string;
356
+ base_border_border: string;
357
+ base_border_input: string;
358
+ base_border_inverted_border: string;
359
+ base_border_inverted_input: string;
360
+ base_icon_disabled: string;
361
+ base_icon_high_emphasis: string;
362
+ base_icon_low_emphasis: string;
363
+ base_icon_medium_emphasis: string;
364
+ base_icon_inverted_low_emphasis: string;
365
+ base_icon_inverted_disabled: string;
366
+ base_icon_inverted_high_emphasis: string;
367
+ base_shadow_shadow_md: string;
368
+ base_shadow_shadow_sm: string;
369
+ base_surface_background: string;
370
+ base_surface_disabled: string;
371
+ base_surface_input: string;
372
+ base_surface_input_disabled: string;
373
+ base_surface_input_hover: string;
374
+ base_surface_main: string;
375
+ base_surface_main_hover: string;
376
+ base_surface_popup: string;
377
+ base_surface_tooltip: string;
378
+ base_surface_inverted_default: string;
379
+ base_surface_inverted_default_hover: string;
380
+ base_surface_inverted_disabled: string;
381
+ base_surface_inverted_main: string;
382
+ base_surface_inverted_main_hover: string;
383
+ base_text_disabled: string;
384
+ base_text_high_emphasis: string;
385
+ base_text_link: string;
386
+ base_text_link_pressed: string;
387
+ base_text_low_emphasis: string;
388
+ base_text_inverted_disabled: string;
389
+ base_text_inverted_high_emphasis: string;
390
+ base_text_inverted_link: string;
391
+ base_text_inverted_low_emphasis: string;
392
+ brand_border: string;
393
+ brand_icon: string;
394
+ brand_icon_on_muted: string;
395
+ brand_text: string;
396
+ brand_text_on_muted: string;
397
+ brand_surface_bolder: string;
398
+ brand_surface_bolder_hover: string;
399
+ brand_surface_default: string;
400
+ brand_surface_default_hover: string;
401
+ brand_surface_muted: string;
402
+ brand_surface_muted_hover: string;
403
+ brand_surface_subtle: string;
404
+ brand_surface_subtle_hover: string;
405
+ info_border: string;
406
+ info_icon: string;
407
+ info_icon_on_muted: string;
408
+ info_text: string;
409
+ info_text_on_muted: string;
410
+ info_surface_default: string;
411
+ info_surface_default_hover: string;
412
+ info_surface_muted: string;
413
+ info_surface_muted_hover: string;
414
+ info_surface_subtle: string;
415
+ info_surface_subtle_hover: string;
416
+ inverted_border: string;
417
+ inverted_icon: string;
418
+ inverted_icon_on_muted: string;
419
+ inverted_text_default: string;
420
+ inverted_text_disabled: string;
421
+ inverted_text_muted: string;
422
+ inverted_text_on_muted: string;
423
+ negative_border: string;
424
+ negative_icon: string;
425
+ negative_icon_on_muted: string;
426
+ negative_text: string;
427
+ negative_text_on_muted: string;
428
+ negative_surface_default: string;
429
+ negative_surface_default_hover: string;
430
+ negative_surface_muted: string;
431
+ negative_surface_muted_hover: string;
432
+ negative_surface_subtle: string;
433
+ negative_surface_subtle_hover: string;
434
+ neutral_border: string;
435
+ neutral_icon: string;
436
+ neutral_icon_on_muted: string;
437
+ neutral_text: string;
438
+ neutral_text_on_muted: string;
439
+ neutral_surface_bolder: string;
440
+ neutral_surface_bolder_hover: string;
441
+ neutral_surface_default: string;
442
+ neutral_surface_default_hover: string;
443
+ neutral_surface_muted: string;
444
+ neutral_surface_muted_hover: string;
445
+ neutral_surface_subtle: string;
446
+ neutral_surface_subtle_hover: string;
447
+ positive_border: string;
448
+ positive_icon: string;
449
+ positive_icon_on_muted: string;
450
+ positive_text: string;
451
+ positive_text_on_muted: string;
452
+ positive_surface_default: string;
453
+ positive_surface_default_hover: string;
454
+ positive_surface_muted: string;
455
+ positive_surface_muted_hover: string;
456
+ positive_surface_subtle: string;
457
+ positive_surface_subtle_hover: string;
458
+ warning_border: string;
459
+ warning_icon: string;
460
+ warning_icon_on_muted: string;
461
+ warning_text: string;
462
+ warning_text_on_muted: string;
463
+ warning_surface_default: string;
464
+ warning_surface_default_hover: string;
465
+ warning_surface_muted: string;
466
+ warning_surface_muted_hover: string;
467
+ warning_surface_subtle: string;
468
+ warning_surface_subtle_hover: string;
354
469
  dataGridPrimary: string;
355
470
  dataGridSecondary: string;
356
471
  sidebar: {
@@ -355,6 +355,121 @@ exports.twColors = {
355
355
  DEFAULT: "#ef4444",
356
356
  },
357
357
  test: "#ff00ff",
358
+ primary_surface_default: "var(--uxf-color-brand-surface-default)",
359
+ primary_surface_default_hover: "var(--uxf-color-brand-surface-default-hover)",
360
+ base_border_border: "var(--uxf-color-base-border-border)",
361
+ base_border_input: "var(--uxf-color-base-border-input)",
362
+ base_border_inverted_border: "var(--uxf-color-base-border-inverted-border)",
363
+ base_border_inverted_input: "var(--uxf-color-base-border-inverted-input)",
364
+ base_icon_disabled: "var(--uxf-color-base-icon-disabled)",
365
+ base_icon_high_emphasis: "var(--uxf-color-base-icon-high-emphasis)",
366
+ base_icon_low_emphasis: "var(--uxf-color-base-icon-low-emphasis)",
367
+ base_icon_medium_emphasis: "var(--uxf-color-base-icon-medium-emphasis)",
368
+ base_icon_inverted_low_emphasis: "var(--uxf-color-base-icon-inverted-low-emphasis)",
369
+ base_icon_inverted_disabled: "var(--uxf-color-base-icon-inverted-disabled)",
370
+ base_icon_inverted_high_emphasis: "var(--uxf-color-base-icon-inverted-high-emphasis)",
371
+ base_shadow_shadow_md: "var(--uxf-color-base-shadow-shadow-md)",
372
+ base_shadow_shadow_sm: "var(--uxf-color-base-shadow-shadow-sm)",
373
+ base_surface_background: "var(--uxf-color-base-surface-background)",
374
+ base_surface_disabled: "var(--uxf-color-base-surface-disabled)",
375
+ base_surface_input: "var(--uxf-color-base-surface-input)",
376
+ base_surface_input_disabled: "var(--uxf-color-base-surface-input-disabled)",
377
+ base_surface_input_hover: "var(--uxf-color-base-surface-input-hover)",
378
+ base_surface_main: "var(--uxf-color-base-surface-main)",
379
+ base_surface_main_hover: "var(--uxf-color-base-surface-main-hover)",
380
+ base_surface_popup: "var(--uxf-color-base-surface-popup)",
381
+ base_surface_tooltip: "var(--uxf-color-base-surface-tooltip)",
382
+ base_surface_inverted_default: "var(--uxf-color-base-surface-inverted-default)",
383
+ base_surface_inverted_default_hover: "var(--uxf-color-base-surface-inverted-default-hover)",
384
+ base_surface_inverted_disabled: "var(--uxf-color-base-surface-inverted-disabled)",
385
+ base_surface_inverted_main: "var(--uxf-color-base-surface-inverted-main)",
386
+ base_surface_inverted_main_hover: "var(--uxf-color-base-surface-inverted-main-hover)",
387
+ base_text_disabled: "var(--uxf-color-base-text-disabled)",
388
+ base_text_high_emphasis: "var(--uxf-color-base-text-high-emphasis)",
389
+ base_text_link: "var(--uxf-color-base-text-link)",
390
+ base_text_link_pressed: "var(--uxf-color-base-text-link-pressed)",
391
+ base_text_low_emphasis: "var(--uxf-color-base-text-low-emphasis)",
392
+ base_text_inverted_disabled: "var(--uxf-color-base-text-inverted-disabled)",
393
+ base_text_inverted_high_emphasis: "var(--uxf-color-base-text-inverted-high-emphasis)",
394
+ base_text_inverted_link: "var(--uxf-color-base-text-inverted-link)",
395
+ base_text_inverted_low_emphasis: "var(--uxf-color-base-text-inverted-low-emphasis)",
396
+ brand_border: "var(--uxf-color-brand-border)",
397
+ brand_icon: "var(--uxf-color-brand-icon)",
398
+ brand_icon_on_muted: "var(--uxf-color-brand-icon-on-muted)",
399
+ brand_text: "var(--uxf-color-brand-text)",
400
+ brand_text_on_muted: "var(--uxf-color-brand-text-on-muted)",
401
+ brand_surface_bolder: "var(--uxf-color-brand-surface-bolder)",
402
+ brand_surface_bolder_hover: "var(--uxf-color-brand-surface-bolder-hover)",
403
+ brand_surface_default: "var(--uxf-color-brand-surface-default)",
404
+ brand_surface_default_hover: "var(--uxf-color-brand-surface-default-hover)",
405
+ brand_surface_muted: "var(--uxf-color-brand-surface-muted)",
406
+ brand_surface_muted_hover: "var(--uxf-color-brand-surface-muted-hover)",
407
+ brand_surface_subtle: "var(--uxf-color-brand-surface-subtle)",
408
+ brand_surface_subtle_hover: "var(--uxf-color-brand-surface-subtle-hover)",
409
+ info_border: "var(--uxf-color-info-border)",
410
+ info_icon: "var(--uxf-color-info-icon)",
411
+ info_icon_on_muted: "var(--uxf-color-info-icon-on-muted)",
412
+ info_text: "var(--uxf-color-info-text)",
413
+ info_text_on_muted: "var(--uxf-color-info-text-on-muted)",
414
+ info_surface_default: "var(--uxf-color-info-surface-default)",
415
+ info_surface_default_hover: "var(--uxf-color-info-surface-default-hover)",
416
+ info_surface_muted: "var(--uxf-color-info-surface-muted)",
417
+ info_surface_muted_hover: "var(--uxf-color-info-surface-muted-hover)",
418
+ info_surface_subtle: "var(--uxf-color-info-surface-subtle)",
419
+ info_surface_subtle_hover: "var(--uxf-color-info-surface-subtle-hover)",
420
+ inverted_border: "var(--uxf-color-inverted-border)",
421
+ inverted_icon: "var(--uxf-color-inverted-icon)",
422
+ inverted_icon_on_muted: "var(--uxf-color-inverted-icon-on-muted)",
423
+ inverted_text_default: "var(--uxf-color-inverted-text-default)",
424
+ inverted_text_disabled: "var(--uxf-color-inverted-text-disabled)",
425
+ inverted_text_muted: "var(--uxf-color-inverted-text-muted)",
426
+ inverted_text_on_muted: "var(--uxf-color-inverted-text-on-muted)",
427
+ negative_border: "var(--uxf-color-negative-border)",
428
+ negative_icon: "var(--uxf-color-negative-icon)",
429
+ negative_icon_on_muted: "var(--uxf-color-negative-icon-on-muted)",
430
+ negative_text: "var(--uxf-color-negative-text)",
431
+ negative_text_on_muted: "var(--uxf-color-negative-text-on-muted)",
432
+ negative_surface_default: "var(--uxf-color-negative-surface-default)",
433
+ negative_surface_default_hover: "var(--uxf-color-negative-surface-default-hover)",
434
+ negative_surface_muted: "var(--uxf-color-negative-surface-muted)",
435
+ negative_surface_muted_hover: "var(--uxf-color-negative-surface-muted-hover)",
436
+ negative_surface_subtle: "var(--uxf-color-negative-surface-subtle)",
437
+ negative_surface_subtle_hover: "var(--uxf-color-negative-surface-subtle-hover)",
438
+ neutral_border: "var(--uxf-color-neutral-border)",
439
+ neutral_icon: "var(--uxf-color-neutral-icon)",
440
+ neutral_icon_on_muted: "var(--uxf-color-neutral-icon-on-muted)",
441
+ neutral_text: "var(--uxf-color-neutral-text)",
442
+ neutral_text_on_muted: "var(--uxf-color-neutral-text-on-muted)",
443
+ neutral_surface_bolder: "var(--uxf-color-neutral-surface-bolder)",
444
+ neutral_surface_bolder_hover: "var(--uxf-color-neutral-surface-bolder-hover)",
445
+ neutral_surface_default: "var(--uxf-color-neutral-surface-default)",
446
+ neutral_surface_default_hover: "var(--uxf-color-neutral-surface-default-hover)",
447
+ neutral_surface_muted: "var(--uxf-color-neutral-surface-muted)",
448
+ neutral_surface_muted_hover: "var(--uxf-color-neutral-surface-muted-hover)",
449
+ neutral_surface_subtle: "var(--uxf-color-neutral-surface-subtle)",
450
+ neutral_surface_subtle_hover: "var(--uxf-color-neutral-surface-subtle-hover)",
451
+ positive_border: "var(--uxf-color-positive-border)",
452
+ positive_icon: "var(--uxf-color-positive-icon)",
453
+ positive_icon_on_muted: "var(--uxf-color-positive-icon-on-muted)",
454
+ positive_text: "var(--uxf-color-positive-text)",
455
+ positive_text_on_muted: "var(--uxf-color-positive-text-on-muted)",
456
+ positive_surface_default: "var(--uxf-color-positive-surface-default)",
457
+ positive_surface_default_hover: "var(--uxf-color-positive-surface-default-hover)",
458
+ positive_surface_muted: "var(--uxf-color-positive-surface-muted)",
459
+ positive_surface_muted_hover: "var(--uxf-color-positive-surface-muted-hover)",
460
+ positive_surface_subtle: "var(--uxf-color-positive-surface-subtle)",
461
+ positive_surface_subtle_hover: "var(--uxf-color-positive-surface-subtle-hover)",
462
+ warning_border: "var(--uxf-color-warning-border)",
463
+ warning_icon: "var(--uxf-color-warning-icon)",
464
+ warning_icon_on_muted: "var(--uxf-color-warning-icon-on-muted)",
465
+ warning_text: "var(--uxf-color-warning-text)",
466
+ warning_text_on_muted: "var(--uxf-color-warning-text-on-muted)",
467
+ warning_surface_default: "var(--uxf-color-warning-surface-default)",
468
+ warning_surface_default_hover: "var(--uxf-color-warning-surface-default-hover)",
469
+ warning_surface_muted: "var(--uxf-color-warning-surface-muted)",
470
+ warning_surface_muted_hover: "var(--uxf-color-warning-surface-muted-hover)",
471
+ warning_surface_subtle: "var(--uxf-color-warning-surface-subtle)",
472
+ warning_surface_subtle_hover: "var(--uxf-color-warning-surface-subtle-hover)",
358
473
  dataGridPrimary: "#140939",
359
474
  dataGridSecondary: "#FF4F06",
360
475
  sidebar: { background: "#1F2937", highlight: "#111827", hover: "#111827" },
@@ -2,10 +2,4 @@
2
2
  // this file is generated automatically, do not change anything manually in the contents of this file
3
3
  Object.defineProperty(exports, "__esModule", { value: true });
4
4
  exports.twContainers = void 0;
5
- exports.twContainers = {
6
- xs: "33.75rem",
7
- sm: "45rem",
8
- md: "58rem",
9
- lg: "64rem",
10
- xl: "76rem",
11
- };
5
+ exports.twContainers = { xs: "33.75rem", sm: "45rem", md: "58rem", lg: "64rem", xl: "76rem" };
@@ -2,10 +2,4 @@
2
2
  // this file is generated automatically, do not change anything manually in the contents of this file
3
3
  Object.defineProperty(exports, "__esModule", { value: true });
4
4
  exports.twScreens = void 0;
5
- exports.twScreens = {
6
- xs: "36em",
7
- sm: "48em",
8
- md: "62em",
9
- lg: "75em",
10
- xl: "90em",
11
- };
5
+ exports.twScreens = { xs: "36em", sm: "48em", md: "62em", lg: "75em", xl: "90em" };