@4399ywkf/editor 0.15.0 → 0.16.0

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.
@@ -32266,6 +32266,681 @@ var ReadOnlyGuard = Extension.create({
32266
32266
  // tt-css-text:xyflow-react-base
32267
32267
  var xyflow_react_base_default = "/* this will be exported as base.css and can be used for a basic styling */\n/* these are the necessary styles for React/Svelte Flow, they get used by base.css and style.css */\n.react-flow {\n direction: ltr;\n\n --xy-edge-stroke-default: #b1b1b7;\n --xy-edge-stroke-width-default: 1;\n --xy-edge-stroke-selected-default: #555;\n\n --xy-connectionline-stroke-default: #b1b1b7;\n --xy-connectionline-stroke-width-default: 1;\n\n --xy-attribution-background-color-default: rgba(255, 255, 255, 0.5);\n\n --xy-minimap-background-color-default: #fff;\n --xy-minimap-mask-background-color-default: rgba(240, 240, 240, 0.6);\n --xy-minimap-mask-stroke-color-default: transparent;\n --xy-minimap-mask-stroke-width-default: 1;\n --xy-minimap-node-background-color-default: #e2e2e2;\n --xy-minimap-node-stroke-color-default: transparent;\n --xy-minimap-node-stroke-width-default: 2;\n\n --xy-background-color-default: transparent;\n --xy-background-pattern-dots-color-default: #91919a;\n --xy-background-pattern-lines-color-default: #eee;\n --xy-background-pattern-cross-color-default: #e2e2e2;\n background-color: var(--xy-background-color, var(--xy-background-color-default));\n --xy-node-border-default: 1px solid #bbb;\n --xy-node-border-selected-default: 1px solid #555;\n\n --xy-handle-background-color-default: #333;\n\n --xy-selection-background-color-default: rgba(150, 150, 180, 0.1);\n --xy-selection-border-default: 1px dotted rgba(155, 155, 155, 0.8);\n --xy-resize-background-color-default: #3367d9;\n}\n.react-flow.dark {\n --xy-edge-stroke-default: #3e3e3e;\n --xy-edge-stroke-width-default: 1;\n --xy-edge-stroke-selected-default: #727272;\n\n --xy-connectionline-stroke-default: #b1b1b7;\n --xy-connectionline-stroke-width-default: 1;\n\n --xy-attribution-background-color-default: rgba(150, 150, 150, 0.25);\n\n --xy-minimap-background-color-default: #141414;\n --xy-minimap-mask-background-color-default: rgba(60, 60, 60, 0.6);\n --xy-minimap-mask-stroke-color-default: transparent;\n --xy-minimap-mask-stroke-width-default: 1;\n --xy-minimap-node-background-color-default: #2b2b2b;\n --xy-minimap-node-stroke-color-default: transparent;\n --xy-minimap-node-stroke-width-default: 2;\n\n --xy-background-color-default: #141414;\n --xy-background-pattern-dots-color-default: #555;\n --xy-background-pattern-lines-color-default: #333;\n --xy-background-pattern-cross-color-default: #333;\n --xy-node-color-default: #f8f8f8;\n}\n.react-flow__background {\n background-color: var(--xy-background-color-props, var(--xy-background-color, var(--xy-background-color-default)));\n pointer-events: none;\n z-index: -1;\n}\n.react-flow__container {\n position: absolute;\n width: 100%;\n height: 100%;\n top: 0;\n left: 0;\n}\n.react-flow__pane {\n z-index: 1;\n touch-action: none;\n}\n.react-flow__pane.draggable {\n cursor: grab;\n }\n.react-flow__pane.dragging {\n cursor: grabbing;\n }\n.react-flow__pane.selection {\n cursor: pointer;\n }\n.react-flow__viewport {\n transform-origin: 0 0;\n z-index: 2;\n pointer-events: none;\n}\n.react-flow__renderer {\n z-index: 4;\n}\n.react-flow__selection {\n z-index: 6;\n}\n.react-flow__nodesselection-rect:focus,\n.react-flow__nodesselection-rect:focus-visible {\n outline: none;\n}\n.react-flow__edge-path {\n stroke: var(--xy-edge-stroke, var(--xy-edge-stroke-default));\n stroke-width: var(--xy-edge-stroke-width, var(--xy-edge-stroke-width-default));\n fill: none;\n}\n.react-flow__connection-path {\n stroke: var(--xy-connectionline-stroke, var(--xy-connectionline-stroke-default));\n stroke-width: var(--xy-connectionline-stroke-width, var(--xy-connectionline-stroke-width-default));\n fill: none;\n}\n.react-flow .react-flow__edges {\n position: absolute;\n}\n.react-flow .react-flow__edges svg {\n overflow: visible;\n position: absolute;\n pointer-events: none;\n }\n.react-flow__edge {\n pointer-events: visibleStroke;\n}\n.react-flow__edge.selectable {\n cursor: pointer;\n }\n.react-flow__edge.animated path {\n stroke-dasharray: 5;\n animation: dashdraw 0.5s linear infinite;\n }\n.react-flow__edge.animated path.react-flow__edge-interaction {\n stroke-dasharray: none;\n animation: none;\n }\n.react-flow__edge.inactive {\n pointer-events: none;\n }\n.react-flow__edge.selected,\n .react-flow__edge:focus,\n .react-flow__edge:focus-visible {\n outline: none;\n }\n.react-flow__edge.selected .react-flow__edge-path,\n .react-flow__edge.selectable:focus .react-flow__edge-path,\n .react-flow__edge.selectable:focus-visible .react-flow__edge-path {\n stroke: var(--xy-edge-stroke-selected, var(--xy-edge-stroke-selected-default));\n }\n.react-flow__edge-textwrapper {\n pointer-events: all;\n }\n.react-flow__edge .react-flow__edge-text {\n pointer-events: none;\n -webkit-user-select: none;\n -moz-user-select: none;\n user-select: none;\n }\n/* Arrowhead marker styles - use CSS custom properties as default */\n.react-flow__arrowhead polyline {\n stroke: var(--xy-edge-stroke, var(--xy-edge-stroke-default));\n}\n.react-flow__arrowhead polyline.arrowclosed {\n fill: var(--xy-edge-stroke, var(--xy-edge-stroke-default));\n}\n.react-flow__connection {\n pointer-events: none;\n}\n.react-flow__connection .animated {\n stroke-dasharray: 5;\n animation: dashdraw 0.5s linear infinite;\n }\nsvg.react-flow__connectionline {\n z-index: 1001;\n overflow: visible;\n position: absolute;\n}\n.react-flow__nodes {\n pointer-events: none;\n transform-origin: 0 0;\n}\n.react-flow__node {\n position: absolute;\n -webkit-user-select: none;\n -moz-user-select: none;\n user-select: none;\n pointer-events: all;\n transform-origin: 0 0;\n box-sizing: border-box;\n cursor: default;\n}\n.react-flow__node.selectable {\n cursor: pointer;\n }\n.react-flow__node.draggable {\n cursor: grab;\n pointer-events: all;\n }\n.react-flow__node.draggable.dragging {\n cursor: grabbing;\n }\n.react-flow__nodesselection {\n z-index: 3;\n transform-origin: left top;\n pointer-events: none;\n}\n.react-flow__nodesselection-rect {\n position: absolute;\n pointer-events: all;\n cursor: grab;\n }\n.react-flow__handle {\n position: absolute;\n pointer-events: none;\n min-width: 5px;\n min-height: 5px;\n background-color: var(--xy-handle-background-color, var(--xy-handle-background-color-default));\n}\n.react-flow__handle.connectingfrom {\n pointer-events: all;\n }\n.react-flow__handle.connectionindicator {\n pointer-events: all;\n cursor: crosshair;\n }\n.react-flow__handle-bottom {\n top: auto;\n left: 50%;\n bottom: 0;\n transform: translate(-50%, 50%);\n }\n.react-flow__handle-top {\n top: 0;\n left: 50%;\n transform: translate(-50%, -50%);\n }\n.react-flow__handle-left {\n top: 50%;\n left: 0;\n transform: translate(-50%, -50%);\n }\n.react-flow__handle-right {\n top: 50%;\n right: 0;\n transform: translate(50%, -50%);\n }\n.react-flow__edgeupdater {\n cursor: move;\n pointer-events: all;\n}\n.react-flow__pane.selection .react-flow__panel {\n pointer-events: none;\n}\n.react-flow__panel {\n position: absolute;\n z-index: 5;\n margin: 15px;\n}\n.react-flow__panel.top {\n top: 0;\n }\n.react-flow__panel.bottom {\n bottom: 0;\n }\n.react-flow__panel.top.center, .react-flow__panel.bottom.center {\n left: 50%;\n transform: translateX(-15px) translateX(-50%);\n }\n.react-flow__panel.left {\n left: 0;\n }\n.react-flow__panel.right {\n right: 0;\n }\n.react-flow__panel.left.center, .react-flow__panel.right.center {\n top: 50%;\n transform: translateY(-15px) translateY(-50%);\n }\n.react-flow__attribution {\n font-size: 10px;\n background: var(--xy-attribution-background-color, var(--xy-attribution-background-color-default));\n padding: 2px 3px;\n margin: 0;\n}\n.react-flow__attribution a {\n text-decoration: none;\n color: #999;\n }\n@keyframes dashdraw {\n from {\n stroke-dashoffset: 10;\n }\n}\n.react-flow__edgelabel-renderer {\n position: absolute;\n width: 100%;\n height: 100%;\n pointer-events: none;\n -webkit-user-select: none;\n -moz-user-select: none;\n user-select: none;\n left: 0;\n top: 0;\n}\n.react-flow__viewport-portal {\n position: absolute;\n width: 100%;\n height: 100%;\n left: 0;\n top: 0;\n -webkit-user-select: none;\n -moz-user-select: none;\n user-select: none;\n}\n.react-flow__minimap {\n background: var(\n --xy-minimap-background-color-props,\n var(--xy-minimap-background-color, var(--xy-minimap-background-color-default))\n );\n}\n.react-flow__minimap-svg {\n display: block;\n }\n.react-flow__minimap-mask {\n fill: var(\n --xy-minimap-mask-background-color-props,\n var(--xy-minimap-mask-background-color, var(--xy-minimap-mask-background-color-default))\n );\n stroke: var(\n --xy-minimap-mask-stroke-color-props,\n var(--xy-minimap-mask-stroke-color, var(--xy-minimap-mask-stroke-color-default))\n );\n stroke-width: var(\n --xy-minimap-mask-stroke-width-props,\n var(--xy-minimap-mask-stroke-width, var(--xy-minimap-mask-stroke-width-default))\n );\n }\n.react-flow__minimap-node {\n fill: var(\n --xy-minimap-node-background-color-props,\n var(--xy-minimap-node-background-color, var(--xy-minimap-node-background-color-default))\n );\n stroke: var(\n --xy-minimap-node-stroke-color-props,\n var(--xy-minimap-node-stroke-color, var(--xy-minimap-node-stroke-color-default))\n );\n stroke-width: var(\n --xy-minimap-node-stroke-width-props,\n var(--xy-minimap-node-stroke-width, var(--xy-minimap-node-stroke-width-default))\n );\n }\n.react-flow__background-pattern.dots {\n fill: var(\n --xy-background-pattern-color-props,\n var(--xy-background-pattern-color, var(--xy-background-pattern-dots-color-default))\n );\n }\n.react-flow__background-pattern.lines {\n stroke: var(\n --xy-background-pattern-color-props,\n var(--xy-background-pattern-color, var(--xy-background-pattern-lines-color-default))\n );\n }\n.react-flow__background-pattern.cross {\n stroke: var(\n --xy-background-pattern-color-props,\n var(--xy-background-pattern-color, var(--xy-background-pattern-cross-color-default))\n );\n }\n.react-flow__controls {\n display: flex;\n flex-direction: column;\n}\n.react-flow__controls.horizontal {\n flex-direction: row;\n }\n.react-flow__controls-button {\n display: flex;\n justify-content: center;\n align-items: center;\n height: 26px;\n width: 26px;\n padding: 4px;\n }\n.react-flow__controls-button svg {\n width: 100%;\n max-width: 12px;\n max-height: 12px;\n fill: currentColor;\n }\n.react-flow__node-input,\n.react-flow__node-default,\n.react-flow__node-output,\n.react-flow__node-group {\n border: var(--xy-node-border, var(--xy-node-border-default));\n color: var(--xy-node-color, var(--xy-node-color-default));\n}\n.react-flow__node-input.selected,\n .react-flow__node-input:focus,\n .react-flow__node-input:focus-visible,\n .react-flow__node-default.selected,\n .react-flow__node-default:focus,\n .react-flow__node-default:focus-visible,\n .react-flow__node-output.selected,\n .react-flow__node-output:focus,\n .react-flow__node-output:focus-visible,\n .react-flow__node-group.selected,\n .react-flow__node-group:focus,\n .react-flow__node-group:focus-visible {\n outline: none;\n border: var(--xy-node-border-selected, var(--xy-node-border-selected-default));\n }\n.react-flow__nodesselection-rect,\n.react-flow__selection {\n background: var(--xy-selection-background-color, var(--xy-selection-background-color-default));\n border: var(--xy-selection-border, var(--xy-selection-border-default));\n}\n.react-flow__resize-control {\n position: absolute;\n}\n.react-flow__resize-control.left,\n.react-flow__resize-control.right {\n cursor: ew-resize;\n}\n.react-flow__resize-control.top,\n.react-flow__resize-control.bottom {\n cursor: ns-resize;\n}\n.react-flow__resize-control.top.left,\n.react-flow__resize-control.bottom.right {\n cursor: nwse-resize;\n}\n.react-flow__resize-control.bottom.left,\n.react-flow__resize-control.top.right {\n cursor: nesw-resize;\n}\n/* handle styles */\n.react-flow__resize-control.handle {\n width: 5px;\n height: 5px;\n border: 1px solid #fff;\n border-radius: 1px;\n background-color: var(--xy-resize-background-color, var(--xy-resize-background-color-default));\n translate: -50% -50%;\n}\n.react-flow__resize-control.handle.left {\n left: 0;\n top: 50%;\n}\n.react-flow__resize-control.handle.right {\n left: 100%;\n top: 50%;\n}\n.react-flow__resize-control.handle.top {\n left: 50%;\n top: 0;\n}\n.react-flow__resize-control.handle.bottom {\n left: 50%;\n top: 100%;\n}\n.react-flow__resize-control.handle.top.left {\n left: 0;\n}\n.react-flow__resize-control.handle.bottom.left {\n left: 0;\n}\n.react-flow__resize-control.handle.top.right {\n left: 100%;\n}\n.react-flow__resize-control.handle.bottom.right {\n left: 100%;\n}\n/* line styles */\n.react-flow__resize-control.line {\n border-color: var(--xy-resize-background-color, var(--xy-resize-background-color-default));\n border-width: 0;\n border-style: solid;\n}\n.react-flow__resize-control.line.left,\n.react-flow__resize-control.line.right {\n width: 1px;\n transform: translate(-50%, 0);\n top: 0;\n height: 100%;\n}\n.react-flow__resize-control.line.left {\n left: 0;\n border-left-width: 1px;\n}\n.react-flow__resize-control.line.right {\n left: 100%;\n border-right-width: 1px;\n}\n.react-flow__resize-control.line.top,\n.react-flow__resize-control.line.bottom {\n height: 1px;\n transform: translate(0, -50%);\n left: 0;\n width: 100%;\n}\n.react-flow__resize-control.line.top {\n top: 0;\n border-top-width: 1px;\n}\n.react-flow__resize-control.line.bottom {\n border-bottom-width: 1px;\n top: 100%;\n}\n";
32268
32268
 
32269
+ // src/components/base/base-board.style.ts
32270
+ var baseBoardStyles = ({ token, isDark }) => {
32271
+ const c = isDark ? {
32272
+ text: token.colorText,
32273
+ caption: token.colorTextSecondary,
32274
+ placeholder: token.colorTextQuaternary,
32275
+ border: token.colorBorderSecondary,
32276
+ hover: token.colorFillSecondary,
32277
+ bg: token.colorBgContainer,
32278
+ base: token.colorBgLayout,
32279
+ column: token.colorFillQuaternary,
32280
+ danger: token.colorError
32281
+ } : {
32282
+ text: "#1f2329",
32283
+ caption: "#646a73",
32284
+ placeholder: "#8f959e",
32285
+ border: "#dee0e3",
32286
+ hover: "rgba(31, 35, 41, 0.08)",
32287
+ bg: "#ffffff",
32288
+ base: "#f5f6f7",
32289
+ column: "#f2f3f5",
32290
+ danger: "#f54a45"
32291
+ };
32292
+ const primary = token.colorPrimary;
32293
+ const shadow = isDark ? "0 6px 24px rgba(0, 0, 0, 0.45)" : "0 4px 16px 0 rgba(31, 35, 41, 0.12), 0 0 1px 0 rgba(31, 35, 41, 0.18)";
32294
+ return `
32295
+ .tt-base-kanban-wrap {
32296
+ position: relative;
32297
+ flex: 1;
32298
+ min-width: 0;
32299
+ min-height: 0;
32300
+ }
32301
+
32302
+ .tt-base-kanban {
32303
+ display: flex;
32304
+ align-items: flex-start;
32305
+ gap: 12px;
32306
+ height: 100%;
32307
+ padding: 12px 16px;
32308
+ overflow: auto hidden;
32309
+ box-sizing: border-box;
32310
+ user-select: none;
32311
+
32312
+ &.is-dragging {
32313
+ cursor: grabbing;
32314
+ }
32315
+ }
32316
+
32317
+ .tt-base-kanban__column {
32318
+ display: flex;
32319
+ flex: none;
32320
+ flex-direction: column;
32321
+ width: 256px;
32322
+ max-height: 100%;
32323
+ border-radius: 8px;
32324
+ background: ${c.column};
32325
+ box-sizing: border-box;
32326
+
32327
+ &.is-over {
32328
+ box-shadow: inset 0 0 0 1px ${primary};
32329
+ }
32330
+ }
32331
+
32332
+ .tt-base-kanban__head {
32333
+ display: flex;
32334
+ flex: none;
32335
+ align-items: center;
32336
+ gap: 8px;
32337
+ height: 40px;
32338
+ padding: 0 8px 0 12px;
32339
+ }
32340
+
32341
+ .tt-base-kanban__title {
32342
+ font-size: 14px;
32343
+ line-height: 22px;
32344
+ }
32345
+
32346
+ .tt-base-kanban__users {
32347
+ display: inline-flex;
32348
+ min-width: 0;
32349
+ gap: 4px;
32350
+ overflow: hidden;
32351
+ }
32352
+
32353
+ .tt-base-kanban__count {
32354
+ color: ${c.caption};
32355
+ font-size: 14px;
32356
+ }
32357
+
32358
+ .tt-base-kanban__spacer {
32359
+ flex: 1;
32360
+ }
32361
+
32362
+ .tt-base-kanban__list {
32363
+ display: flex;
32364
+ flex: 0 1 auto;
32365
+ flex-direction: column;
32366
+ gap: 8px;
32367
+ min-height: 8px;
32368
+ padding: 0 8px 4px;
32369
+ overflow: hidden auto;
32370
+ }
32371
+
32372
+ .tt-base-kanban__card {
32373
+ flex: none;
32374
+ border-radius: 6px;
32375
+ outline: none;
32376
+ cursor: pointer;
32377
+
32378
+ &:focus-visible .tt-base-card {
32379
+ box-shadow: 0 0 0 2px ${primary};
32380
+ }
32381
+
32382
+ &.is-dragging {
32383
+ opacity: 0.4;
32384
+ }
32385
+ }
32386
+
32387
+ .tt-base-kanban__drop {
32388
+ flex: none;
32389
+ height: 3px;
32390
+ margin: -2px 0;
32391
+ border-radius: 2px;
32392
+ background: ${primary};
32393
+ }
32394
+
32395
+ .tt-base-kanban__add {
32396
+ display: flex;
32397
+ flex: none;
32398
+ align-items: center;
32399
+ gap: 4px;
32400
+ height: 36px;
32401
+ margin: 0 8px 8px;
32402
+ padding: 0 8px;
32403
+ border: none;
32404
+ border-radius: 6px;
32405
+ background: transparent;
32406
+ color: ${c.caption};
32407
+ font-size: 14px;
32408
+ cursor: pointer;
32409
+
32410
+ &:hover {
32411
+ background: ${c.hover};
32412
+ color: ${c.text};
32413
+ }
32414
+ }
32415
+
32416
+ .tt-base-kanban__new {
32417
+ display: flex;
32418
+ flex: none;
32419
+ align-items: center;
32420
+ gap: 4px;
32421
+ width: 256px;
32422
+ height: 40px;
32423
+ padding: 0 12px;
32424
+ border: none;
32425
+ border-radius: 8px;
32426
+ background: ${c.column};
32427
+ color: ${c.caption};
32428
+ font-size: 14px;
32429
+ cursor: pointer;
32430
+ box-sizing: border-box;
32431
+
32432
+ &:hover {
32433
+ color: ${c.text};
32434
+ }
32435
+
32436
+ &.is-editing {
32437
+ cursor: default;
32438
+ }
32439
+ }
32440
+
32441
+ .tt-base-kanban__ghost {
32442
+ position: fixed;
32443
+ left: 0;
32444
+ top: 0;
32445
+ z-index: 1200;
32446
+ pointer-events: none;
32447
+
32448
+ .tt-base-card {
32449
+ height: 100%;
32450
+ box-shadow: ${shadow};
32451
+ box-sizing: border-box;
32452
+ }
32453
+ }
32454
+
32455
+ .tt-base-kanban-empty {
32456
+ display: flex;
32457
+ flex-direction: column;
32458
+ align-items: center;
32459
+ justify-content: center;
32460
+ gap: 12px;
32461
+ height: 100%;
32462
+ color: ${c.caption};
32463
+ }
32464
+
32465
+ .tt-base-kanban-empty__button {
32466
+ height: 32px;
32467
+ padding: 0 16px;
32468
+ border: 1px solid ${c.border};
32469
+ border-radius: 6px;
32470
+ background: ${c.bg};
32471
+ color: ${c.text};
32472
+ cursor: pointer;
32473
+
32474
+ &:hover {
32475
+ border-color: ${primary};
32476
+ color: ${primary};
32477
+ }
32478
+ }
32479
+
32480
+ .tt-base-card {
32481
+ display: flex;
32482
+ flex-direction: column;
32483
+ gap: 8px;
32484
+ padding: 12px;
32485
+ border: 1px solid ${c.border};
32486
+ border-radius: 6px;
32487
+ background: ${c.bg};
32488
+ color: ${c.text};
32489
+ font-size: 14px;
32490
+ line-height: 22px;
32491
+ overflow: hidden;
32492
+
32493
+ &.is-highlighted {
32494
+ border-color: ${primary};
32495
+ }
32496
+ }
32497
+
32498
+ .tt-base-card__cover {
32499
+ height: 120px;
32500
+ margin: -12px -12px 0;
32501
+ background: ${c.base};
32502
+
32503
+ img {
32504
+ display: block;
32505
+ width: 100%;
32506
+ height: 100%;
32507
+ object-fit: cover;
32508
+ }
32509
+ }
32510
+
32511
+ .tt-base-card__title {
32512
+ overflow: hidden;
32513
+ font-weight: 600;
32514
+ text-overflow: ellipsis;
32515
+ white-space: nowrap;
32516
+ }
32517
+
32518
+ .tt-base-card__field {
32519
+ display: flex;
32520
+ flex-direction: column;
32521
+ gap: 2px;
32522
+ min-width: 0;
32523
+ font-size: 13px;
32524
+ line-height: 20px;
32525
+ }
32526
+
32527
+ .tt-base-card__label {
32528
+ display: inline-flex;
32529
+ align-items: center;
32530
+ gap: 4px;
32531
+ color: ${c.caption};
32532
+ font-size: 12px;
32533
+ }
32534
+
32535
+ .tt-base-card__text {
32536
+ overflow: hidden;
32537
+ color: ${c.text};
32538
+ text-overflow: ellipsis;
32539
+ white-space: nowrap;
32540
+
32541
+ &.is-multiline {
32542
+ display: -webkit-box;
32543
+ white-space: normal;
32544
+ -webkit-box-orient: vertical;
32545
+ -webkit-line-clamp: 2;
32546
+ }
32547
+ }
32548
+
32549
+ a.tt-base-card__text {
32550
+ color: ${primary};
32551
+ }
32552
+
32553
+ .tt-base-card__tags,
32554
+ .tt-base-card__users,
32555
+ .tt-base-card__files {
32556
+ display: flex;
32557
+ flex-wrap: wrap;
32558
+ gap: 4px;
32559
+ min-width: 0;
32560
+ }
32561
+
32562
+ .tt-base-card__files img {
32563
+ width: 32px;
32564
+ height: 32px;
32565
+ border-radius: 4px;
32566
+ object-fit: cover;
32567
+ }
32568
+
32569
+ .tt-base-card__check {
32570
+ display: inline-flex;
32571
+ align-items: center;
32572
+ justify-content: center;
32573
+ width: 16px;
32574
+ height: 16px;
32575
+ border: 1px solid ${c.border};
32576
+ border-radius: 4px;
32577
+ color: #fff;
32578
+ font-size: 12px;
32579
+
32580
+ &.is-checked {
32581
+ border-color: ${primary};
32582
+ background: ${primary};
32583
+ }
32584
+ }
32585
+
32586
+ .tt-base-card__progress {
32587
+ display: inline-flex;
32588
+ align-items: center;
32589
+ gap: 6px;
32590
+ }
32591
+
32592
+ .tt-base-card__bar {
32593
+ width: 96px;
32594
+ height: 6px;
32595
+ border-radius: 3px;
32596
+ background: ${c.hover};
32597
+ overflow: hidden;
32598
+
32599
+ span {
32600
+ display: block;
32601
+ height: 100%;
32602
+ }
32603
+ }
32604
+
32605
+ .tt-base-card-options {
32606
+ display: flex;
32607
+ flex-direction: column;
32608
+ gap: 8px;
32609
+ margin-bottom: 12px;
32610
+ padding-bottom: 12px;
32611
+ border-bottom: 1px solid ${c.border};
32612
+ }
32613
+
32614
+ .tt-base-card-options__row {
32615
+ display: flex;
32616
+ align-items: center;
32617
+ justify-content: space-between;
32618
+ gap: 12px;
32619
+ min-height: 28px;
32620
+ }
32621
+
32622
+ .tt-base-card-options__select {
32623
+ width: 160px;
32624
+ }
32625
+
32626
+ .tt-base-form {
32627
+ display: flex;
32628
+ flex: 1;
32629
+ flex-direction: column;
32630
+ min-width: 0;
32631
+ min-height: 0;
32632
+ background: ${c.base};
32633
+ }
32634
+
32635
+ .tt-base-form__bar {
32636
+ display: flex;
32637
+ flex: none;
32638
+ align-items: center;
32639
+ gap: 8px;
32640
+ height: 44px;
32641
+ padding: 0 16px;
32642
+ border-bottom: 1px solid ${c.border};
32643
+ background: ${c.bg};
32644
+ }
32645
+
32646
+ .tt-base-form__modes {
32647
+ display: inline-flex;
32648
+ gap: 2px;
32649
+ padding: 2px;
32650
+ border-radius: 6px;
32651
+ background: ${c.hover};
32652
+ }
32653
+
32654
+ .tt-base-form__mode {
32655
+ height: 26px;
32656
+ padding: 0 12px;
32657
+ border: none;
32658
+ border-radius: 4px;
32659
+ background: transparent;
32660
+ color: ${c.caption};
32661
+ font-size: 13px;
32662
+ cursor: pointer;
32663
+
32664
+ &.is-active {
32665
+ background: ${c.bg};
32666
+ color: ${c.text};
32667
+ font-weight: 500;
32668
+ }
32669
+ }
32670
+
32671
+ .tt-base-form__body {
32672
+ display: flex;
32673
+ flex: 1;
32674
+ min-height: 0;
32675
+ }
32676
+
32677
+ .tt-base-form__canvas {
32678
+ flex: 1;
32679
+ min-width: 0;
32680
+ padding: 24px 16px 48px;
32681
+ overflow: auto;
32682
+ }
32683
+
32684
+ .tt-base-form__sheet {
32685
+ display: flex;
32686
+ flex-direction: column;
32687
+ gap: 8px;
32688
+ max-width: 720px;
32689
+ margin: 0 auto;
32690
+ padding: 32px 40px;
32691
+ border-radius: 8px;
32692
+ background: ${c.bg};
32693
+ box-sizing: border-box;
32694
+ }
32695
+
32696
+ .tt-base-form__title.ant-input {
32697
+ padding: 0;
32698
+ font-size: 24px;
32699
+ font-weight: 600;
32700
+ line-height: 36px;
32701
+ }
32702
+
32703
+ .tt-base-form__desc.ant-input {
32704
+ padding: 0;
32705
+ color: ${c.caption};
32706
+ }
32707
+
32708
+ .tt-base-form__question {
32709
+ display: flex;
32710
+ flex-direction: column;
32711
+ gap: 4px;
32712
+ margin-top: 8px;
32713
+ padding: 16px;
32714
+ border: 1px solid transparent;
32715
+ border-radius: 8px;
32716
+
32717
+ &:hover,
32718
+ &:focus-within {
32719
+ border-color: ${c.border};
32720
+ }
32721
+
32722
+ &.is-dragging {
32723
+ opacity: 0.5;
32724
+ }
32725
+ }
32726
+
32727
+ .tt-base-form__q-head {
32728
+ display: flex;
32729
+ align-items: center;
32730
+ gap: 6px;
32731
+ }
32732
+
32733
+ .tt-base-form__drag {
32734
+ display: inline-flex;
32735
+ margin-left: -20px;
32736
+ padding: 0;
32737
+ border: none;
32738
+ background: transparent;
32739
+ color: ${c.placeholder};
32740
+ cursor: grab;
32741
+ }
32742
+
32743
+ .tt-base-form__index {
32744
+ color: ${c.caption};
32745
+ }
32746
+
32747
+ .tt-base-form__q-title.ant-input {
32748
+ flex: 1;
32749
+ padding: 0;
32750
+ font-weight: 500;
32751
+ }
32752
+
32753
+ .tt-base-form__q-desc.ant-input {
32754
+ padding: 0;
32755
+ color: ${c.caption};
32756
+ font-size: 13px;
32757
+ }
32758
+
32759
+ .tt-base-form__star {
32760
+ color: ${c.danger};
32761
+ }
32762
+
32763
+ .tt-base-form__preview {
32764
+ min-height: 32px;
32765
+ padding: 4px 11px;
32766
+ border: 1px solid ${c.border};
32767
+ border-radius: 6px;
32768
+ pointer-events: none;
32769
+ }
32770
+
32771
+ .tt-base-form__q-actions {
32772
+ display: flex;
32773
+ align-items: center;
32774
+ justify-content: flex-end;
32775
+ gap: 12px;
32776
+ color: ${c.caption};
32777
+ font-size: 13px;
32778
+ }
32779
+
32780
+ .tt-base-form__required {
32781
+ display: inline-flex;
32782
+ align-items: center;
32783
+ gap: 6px;
32784
+ }
32785
+
32786
+ .tt-base-form__side {
32787
+ display: flex;
32788
+ flex: none;
32789
+ flex-direction: column;
32790
+ width: 240px;
32791
+ border-left: 1px solid ${c.border};
32792
+ background: ${c.bg};
32793
+ }
32794
+
32795
+ .tt-base-form__side-head,
32796
+ .tt-base-form__side-foot {
32797
+ display: flex;
32798
+ flex: none;
32799
+ align-items: center;
32800
+ justify-content: space-between;
32801
+ height: 44px;
32802
+ padding: 0 12px 0 16px;
32803
+ font-weight: 500;
32804
+ }
32805
+
32806
+ .tt-base-form__side-foot {
32807
+ border-top: 1px solid ${c.border};
32808
+ font-weight: 400;
32809
+ }
32810
+
32811
+ .tt-base-form__side-list {
32812
+ flex: 1;
32813
+ padding: 0 8px;
32814
+ overflow: auto;
32815
+ }
32816
+
32817
+ .tt-base-form__side-empty {
32818
+ padding: 24px 8px;
32819
+ color: ${c.placeholder};
32820
+ text-align: center;
32821
+ }
32822
+
32823
+ .tt-base-form__field {
32824
+ display: flex;
32825
+ align-items: center;
32826
+ gap: 6px;
32827
+ width: 100%;
32828
+ height: 32px;
32829
+ padding: 0 8px;
32830
+ border: none;
32831
+ border-radius: 6px;
32832
+ background: transparent;
32833
+ color: ${c.text};
32834
+ font-size: 14px;
32835
+ text-align: left;
32836
+ cursor: pointer;
32837
+
32838
+ &:hover:not(:disabled) {
32839
+ background: ${c.hover};
32840
+ }
32841
+
32842
+ &:disabled {
32843
+ color: ${c.placeholder};
32844
+ cursor: not-allowed;
32845
+ }
32846
+ }
32847
+
32848
+ .tt-base-form__field-name {
32849
+ flex: 1;
32850
+ min-width: 0;
32851
+ overflow: hidden;
32852
+ text-overflow: ellipsis;
32853
+ white-space: nowrap;
32854
+ }
32855
+
32856
+ .tt-base-form__heading {
32857
+ margin: 0 0 4px;
32858
+ font-size: 24px;
32859
+ font-weight: 600;
32860
+ line-height: 36px;
32861
+ }
32862
+
32863
+ .tt-base-form__intro {
32864
+ margin: 0 0 8px;
32865
+ color: ${c.caption};
32866
+ white-space: pre-wrap;
32867
+ }
32868
+
32869
+ .tt-base-form__notice {
32870
+ padding: 8px 12px;
32871
+ border-radius: 6px;
32872
+ background: ${c.base};
32873
+ color: ${c.caption};
32874
+ }
32875
+
32876
+ .tt-base-form__answer {
32877
+ display: flex;
32878
+ flex-direction: column;
32879
+ gap: 6px;
32880
+ padding: 16px 0;
32881
+ border-bottom: 1px solid ${c.border};
32882
+
32883
+ &.is-error .tt-base-form__input {
32884
+ border-color: ${c.danger};
32885
+ }
32886
+ }
32887
+
32888
+ .tt-base-form__label {
32889
+ display: flex;
32890
+ gap: 4px;
32891
+ font-weight: 500;
32892
+ }
32893
+
32894
+ .tt-base-form__hint {
32895
+ color: ${c.caption};
32896
+ font-size: 13px;
32897
+ white-space: pre-wrap;
32898
+ }
32899
+
32900
+ .tt-base-form__input {
32901
+ min-height: 32px;
32902
+ padding: 0 4px;
32903
+ border: 1px solid ${c.border};
32904
+ border-radius: 6px;
32905
+ }
32906
+
32907
+ .tt-base-form__error {
32908
+ color: ${c.danger};
32909
+ font-size: 12px;
32910
+ }
32911
+
32912
+ .tt-base-form__submit {
32913
+ align-self: flex-start;
32914
+ margin-top: 16px;
32915
+ }
32916
+
32917
+ .tt-base-form__done {
32918
+ display: flex;
32919
+ flex-direction: column;
32920
+ align-items: center;
32921
+ gap: 12px;
32922
+ padding: 48px 0;
32923
+ }
32924
+
32925
+ .tt-base-form__done-icon {
32926
+ display: flex;
32927
+ align-items: center;
32928
+ justify-content: center;
32929
+ width: 48px;
32930
+ height: 48px;
32931
+ border-radius: 50%;
32932
+ background: ${primary};
32933
+ color: #fff;
32934
+ font-size: 24px;
32935
+ }
32936
+
32937
+ .tt-base-form__done-text {
32938
+ font-size: 18px;
32939
+ font-weight: 600;
32940
+ }
32941
+ `;
32942
+ };
32943
+
32269
32944
  // src/components/base/base-grid.style.ts
32270
32945
  var baseGridStyles = ({ token, isDark }) => {
32271
32946
  const thumb = isDark ? "rgba(255, 255, 255, 0.35)" : "rgba(31, 35, 41, 0.35)";
@@ -46942,7 +47617,8 @@ var COMPONENT_STYLES = [
46942
47617
  prosemirrorTableStyles,
46943
47618
  tableStyles,
46944
47619
  baseGridStyles,
46945
- baseViewStyles
47620
+ baseViewStyles,
47621
+ baseBoardStyles
46946
47622
  ];
46947
47623
  function editorComponentCss(ctx) {
46948
47624
  return COMPONENT_STYLES.map((fn) => fn(ctx)).join("\n");