@apia/theme 4.0.44 → 4.0.46

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.
@@ -1,12 +1,12 @@
1
- import { Box, ThemeUIProvider, useThemeUI, ThemeProvider } from 'theme-ui';
2
1
  import cloneDeep from 'lodash-es/cloneDeep';
3
2
  import tinycolor from 'tinycolor2';
4
3
  import merge from 'lodash-es/merge';
5
4
  import { jsxs, jsx, Fragment } from 'theme-ui/jsx-runtime';
5
+ import { Box, ThemeUIProvider, useThemeUI, ThemeProvider } from 'theme-ui';
6
6
  import { forwardRef, useState, useRef, useMemo, Suspense } from 'react';
7
7
  import '@theme-ui/match-media';
8
8
  import { useMount, setValueByPath, EventEmitter } from '@apia/util';
9
- import { spacing as spacing$1, responsive as responsive$2, getOneColorState as getOneColorState$1, focusOutline as focusOutline$1, getColorsAndStatesByPath as getColorsAndStatesByPath$1 } from '@apia/theme';
9
+ import { spacing as spacing$1, responsive as responsive$2, getOneColorState as getOneColorState$1, focusOutline as focusOutline$1, getColorsAndStatesByPath as getColorsAndStatesByPath$1, get } from '@apia/theme';
10
10
  import { keyframes } from '@emotion/react';
11
11
 
12
12
  function defaultLighten(color, ratio) {
@@ -2616,38 +2616,12 @@ const deletableInput = {
2616
2616
  }
2617
2617
  };
2618
2618
 
2619
- const formGrid = {
2620
- display: "grid",
2621
- gridTemplateColumns: "1fr 1fr 1fr",
2622
- gap: 5,
2623
- ".span_all": {
2624
- gridColumn: "span 3"
2625
- },
2626
- ".extra_gap": {
2627
- marginY: 6
2628
- },
2629
- ".gap_before": {
2630
- marginTop: 6
2631
- },
2632
- ".gap_after": {
2633
- marginBottom: 6
2634
- },
2635
- ".checkbox": {
2636
- display: "flex",
2637
- gap: 4,
2638
- flexDirection: "row-reverse",
2639
- alignItems: "center",
2640
- justifyContent: "start"
2641
- }
2642
- };
2643
-
2644
2619
  const forms$1 = (theme) => {
2645
2620
  return {
2646
2621
  checkbox,
2647
2622
  customCheckbox,
2648
2623
  dateInput,
2649
2624
  deletableInput,
2650
- formGrid,
2651
2625
  iconInput,
2652
2626
  input,
2653
2627
  label,
@@ -2788,12 +2762,14 @@ const apiaApi = {
2788
2762
  };
2789
2763
 
2790
2764
  const confirm = {
2791
- display: "flex",
2792
- flexDirection: "column",
2793
- gap: spacing$1(6),
2794
- height: "100%",
2795
- width: "100%",
2796
- overflow: "auto",
2765
+ "&.confirm[class]": {
2766
+ display: "flex",
2767
+ flexDirection: "column",
2768
+ gap: spacing$1(6),
2769
+ height: "100%",
2770
+ width: "100%",
2771
+ overflow: "auto"
2772
+ },
2797
2773
  ".confirm__content": {
2798
2774
  overflow: "auto",
2799
2775
  flexBasis: "100%",
@@ -3490,14 +3466,7 @@ const primary$4 = (theme) => {
3490
3466
  height: "30px",
3491
3467
  padding: "3px",
3492
3468
  border: "none",
3493
- background: "transparent",
3494
- svg: {
3495
- transform: "rotate(0deg)",
3496
- transition: "transform 200ms"
3497
- },
3498
- "&.expanded svg": {
3499
- transform: `rotate(90deg)`
3500
- }
3469
+ background: "transparent"
3501
3470
  }
3502
3471
  },
3503
3472
  "&.locked": {
@@ -4583,9 +4552,6 @@ const accordion = {
4583
4552
  borderTop: "1px solid",
4584
4553
  borderTopColor: "palette.border.ghost"
4585
4554
  },
4586
- ".accordion__item__content": {
4587
- background: "palette.background.paper"
4588
- },
4589
4555
  ".accordion__item__content > *": {
4590
4556
  p: 4,
4591
4557
  boxShadow: "default",
@@ -5382,1614 +5348,1731 @@ const scheduler = {
5382
5348
  /* PREPEND HERE */
5383
5349
  };
5384
5350
 
5385
- const components = {
5386
- /* PREPEND HERE */
5387
- accordion,
5388
- autocomplete,
5389
- datePicker,
5390
- pagination,
5391
- chat: chat$1,
5392
- scheduler,
5393
- toolbar,
5394
- aiMessage,
5395
- infoButton,
5396
- filters,
5397
- fileCard
5398
- };
5399
-
5400
- const labelBox = {
5401
- alignItems: "center",
5402
- border: "1px solid",
5403
- borderColor: "palette.border.field",
5404
- display: "flex",
5405
- gap: spacing$1(3),
5406
- justifyContent: "space-between",
5407
- p: spacing$1(3),
5408
- pl: spacing$1(5),
5409
- "&.selected": {
5410
- background: (theme) => getOneColorState$1("palette.background.paper", "selected", theme.palette)
5411
- },
5412
- "& > .labelAndIcon": {
5351
+ const permissions = {
5352
+ ".uploader__permissions_selection": {
5413
5353
  display: "flex",
5414
- alignItems: "center",
5415
- gap: spacing$1(3),
5416
- "& ~ div button": {
5417
- border: "none"
5354
+ flexDirection: "row",
5355
+ alignItems: "end",
5356
+ gap: 4,
5357
+ div: {
5358
+ width: "100%"
5418
5359
  },
5419
- svg: {
5420
- minHeight: "iconMd",
5421
- minWidth: "iconMd"
5360
+ select: {
5361
+ width: "100%"
5422
5362
  },
5423
- "&:last-of-type": {
5424
- textAlign: "right"
5363
+ button: {
5364
+ width: "70%"
5365
+ },
5366
+ span: {
5367
+ fontWeight: "normal"
5368
+ }
5369
+ },
5370
+ ".permissions__list": {
5371
+ display: "flex",
5372
+ flexDirection: "column",
5373
+ gap: 3,
5374
+ ul: {
5375
+ borderRadius: "default",
5376
+ border: "1px solid",
5377
+ borderColor: "palette.border.field",
5378
+ background: "palette.background.paper"
5425
5379
  }
5426
5380
  }
5427
5381
  };
5428
5382
 
5429
- const boxes = {
5430
- labelBox
5431
- /* PREPEND HERE */
5432
- };
5433
-
5434
- const formsAssistant = {
5435
- modalRow: {
5436
- "&": {
5437
- position: "relative",
5438
- 'div[data-variant="layout.ai.execution.formsAssistant.buttonsDiv"]': {
5439
- position: "absolute",
5440
- top: "7%",
5441
- right: "15%"
5442
- }
5443
- }
5383
+ const collapsiblePanel = {
5384
+ ".collapsiblePanel": {
5385
+ display: "flex",
5386
+ flexDirection: "column"
5444
5387
  },
5445
- modal: {
5446
- 'div[class="modal__main"]': { position: "relative" },
5447
- 'div[data-variant="layout.ai.execution.formsAssistant.buttonsDiv"]': {
5448
- position: "absolute",
5449
- top: "5.4%",
5450
- right: "17%"
5388
+ ".collapsiblePanel__label": {
5389
+ "& span": {
5390
+ fontWeight: 700
5391
+ },
5392
+ "& button > span": {
5393
+ fontWeight: "normal"
5451
5394
  }
5452
5395
  },
5453
- buttonsDiv: {
5396
+ ".collapsiblePanel__label__button": {
5454
5397
  display: "flex",
5455
- justifyContent: "end",
5456
- gap: 2,
5457
5398
  alignItems: "center",
5458
- "button.manualButton:nth-child(2)": {
5459
- marginLeft: "auto"
5399
+ width: "100%",
5400
+ justifyContent: "space-between",
5401
+ '&[aria-expanded="false"]': {
5402
+ borderBottom: "1px solid #e1e1e1"
5460
5403
  }
5461
5404
  },
5462
- settingsButton: {
5463
- variant: "buttons.icon-outline",
5464
- border: "none"
5405
+ ".collapsiblePanel__content": {
5406
+ "&>div": {
5407
+ display: "flex",
5408
+ flexDirection: "column",
5409
+ gap: 3,
5410
+ border: "1px solid",
5411
+ borderColor: "palette.border.field",
5412
+ padding: 4,
5413
+ borderRadius: "default",
5414
+ background: "inherit",
5415
+ boxShadow: "neum"
5416
+ }
5417
+ }
5418
+ };
5419
+ const defaultView = {
5420
+ "&.uploader__container": {
5421
+ display: "flex",
5422
+ flexDirection: "column",
5423
+ gap: 4,
5424
+ overflow: "auto",
5425
+ 'button[data-variant="outline"]': {
5426
+ boxShadow: "sharp"
5427
+ }
5465
5428
  },
5466
- openTextarea: {
5467
- position: "fixed",
5468
- bottom: "1%",
5469
- right: "0.5%",
5470
- zIndex: 1200
5429
+ ".uploader__content": {
5430
+ display: "flex",
5431
+ flexDirection: "column",
5432
+ gap: 4,
5433
+ overflow: "auto",
5434
+ p: 2,
5435
+ overflowX: "hidden"
5471
5436
  },
5472
- tableText: { wordBreak: "normal" },
5473
- thModal: { whiteSpace: "nowrap" },
5474
- genericWindowDragger: {
5475
- maxWidth: "600px",
5476
- maxHeight: "455px",
5477
- zIndex: "1200",
5478
- bottom: "49px",
5479
- right: "11px"
5437
+ "& label": {
5438
+ display: "flex",
5439
+ flexDirection: "column",
5440
+ gap: 2,
5441
+ span: {
5442
+ fontWeight: 700
5443
+ }
5480
5444
  },
5481
- customGridWindowDragger: {
5482
- variant: "layout.ai.execution.formsAssistant.genericWindowDragger",
5483
- bottom: "auto",
5484
- right: "auto",
5485
- ".tooltip__wrapper": {
5486
- padding: "0px"
5445
+ ".uploader__file_selection": {
5446
+ display: "flex",
5447
+ flexDirection: "row",
5448
+ gap: 3,
5449
+ alignItems: "center",
5450
+ alignContent: "center",
5451
+ width: "100%",
5452
+ ".autocomplete": {
5453
+ width: "100%"
5454
+ },
5455
+ ".uploader__file_infoBtn": {
5456
+ height: "48px",
5457
+ width: "48px",
5458
+ p: 0,
5459
+ display: "flex"
5487
5460
  }
5488
5461
  },
5489
- floatingWindow: {
5490
- p: 5,
5462
+ ".uploader__dropzone_description_section": {
5491
5463
  display: "flex",
5492
5464
  flexDirection: "column",
5493
- gap: 5,
5494
- background: "palette.background.paper",
5465
+ gap: 3,
5466
+ background: "inherit",
5467
+ padding: 4,
5468
+ borderRadius: "default",
5495
5469
  border: "1px solid",
5496
- borderColor: "palette.border.section",
5497
- minWidth: "478px",
5498
- 'input[type="file"]': {
5499
- display: "none"
5500
- },
5501
- ".gpt__buttonsContainer": {
5502
- display: "flex",
5503
- alignItems: "center",
5504
- justifyContent: "end",
5505
- gap: 1
5470
+ borderColor: "palette.border.field",
5471
+ boxShadow: "neum"
5472
+ },
5473
+ ".uploader__dropzone": {
5474
+ display: "grid",
5475
+ flexDirection: "column",
5476
+ gap: 3,
5477
+ width: " 100%",
5478
+ position: "relative",
5479
+ ".dropzone__container[class]": {
5480
+ height: "100%"
5506
5481
  },
5507
- 'button[data-variant="icon-outline-danger"]': {
5508
- border: "none"
5482
+ ".dropzone": {
5483
+ height: "50px"
5509
5484
  },
5510
- ".gpt__form": {
5511
- flexDirection: "column",
5485
+ ".uploader__dropzone_actions": {
5512
5486
  display: "flex",
5513
- gap: 2
5514
- },
5515
- ".formsAssistant__closeButton": {
5516
- borderRadius: "5px",
5517
- top: "-7px",
5518
- right: "-7px",
5519
- position: "absolute"
5520
- },
5521
- ".history": {
5522
- height: "200px",
5523
- overflow: "hidden",
5524
- display: "flex"
5525
- },
5526
- ".autoscrollContainer": { overflow: "auto" }
5487
+ flexDirection: "row",
5488
+ gap: 3,
5489
+ button: {
5490
+ width: "50%"
5491
+ }
5492
+ }
5527
5493
  },
5528
- phoneCase: {
5529
- p: 5,
5494
+ ".uploader__directory": {
5495
+ ".collapsiblePanel__content": {
5496
+ "&>div": {
5497
+ position: "relative"
5498
+ },
5499
+ ".uploader__directory__clear-directory": {
5500
+ position: "sticky",
5501
+ top: 0,
5502
+ alignSelf: "end",
5503
+ width: "20px",
5504
+ height: "20px",
5505
+ p: 3
5506
+ }
5507
+ }
5508
+ },
5509
+ ...collapsiblePanel,
5510
+ ...permissions,
5511
+ ".mobxtree": {
5512
+ background: "white",
5513
+ border: "1px solid",
5514
+ borderColor: "palette.border.field",
5515
+ borderRadius: "default",
5516
+ padding: "5px"
5517
+ },
5518
+ ".metadata__container": {
5519
+ outline: "none!important",
5530
5520
  display: "flex",
5531
5521
  flexDirection: "column",
5532
- gap: 5,
5522
+ gap: "12px",
5533
5523
  background: "palette.background.paper",
5524
+ padding: 3,
5525
+ borderRadius: "default",
5534
5526
  border: "1px solid",
5535
- borderColor: "palette.border.section",
5536
- height: "100%",
5537
- justifyContent: "space-between",
5538
- 'input[type="file"]': {
5539
- display: "none"
5540
- },
5541
- ".gpt__buttonsContainer": {
5542
- display: "flex",
5543
- alignItems: "center",
5544
- justifyContent: "end",
5545
- gap: 1
5546
- },
5547
- 'button[data-variant="icon-outline-danger"]': {
5548
- border: "none"
5549
- },
5550
- 'div[data-variant="layout.common.components.chat"]': {
5551
- minHeight: "60%"
5552
- },
5553
- 'div[data-variant="layout.common.components.chat"] + div': {
5527
+ borderColor: "palette.border.field",
5528
+ ".metadata__table_container": {
5554
5529
  width: "100%",
5555
- height: "29%"
5530
+ maxHeight: "310px",
5531
+ overflowY: "auto",
5532
+ display: "block",
5533
+ boxSizing: "border-box",
5534
+ position: "relative",
5535
+ table: {
5536
+ width: "100%",
5537
+ borderCollapse: "collapse",
5538
+ tableLayout: "fixed",
5539
+ boxSizing: "border-box",
5540
+ td: { borderLeft: 0, borderRight: 0 },
5541
+ "tr:last-child td:first-child": {
5542
+ borderBottomLeftRadius: "default"
5543
+ },
5544
+ "tr:last-child td:last-child": {
5545
+ borderBottomRightRadius: "default"
5546
+ }
5547
+ },
5548
+ th: {
5549
+ position: "sticky",
5550
+ top: 0,
5551
+ backgroundColor: "palette.background.paper",
5552
+ zIndex: 2,
5553
+ border: "none",
5554
+ borderBottom: "1px solid #ccc",
5555
+ padding: "8px",
5556
+ textAlign: "left"
5557
+ },
5558
+ tbody: {
5559
+ ".selected": {
5560
+ background: "palette.gray.900"
5561
+ },
5562
+ td: {
5563
+ padding: 3,
5564
+ borderBottom: "1px solid #ececec",
5565
+ verticalAlign: "top"
5566
+ },
5567
+ ".iconButton": {
5568
+ border: "none"
5569
+ }
5570
+ },
5571
+ ".metadata__render_container": {
5572
+ display: "flex",
5573
+ flexDirection: "column",
5574
+ alignItems: "start",
5575
+ position: "relative",
5576
+ minHeight: "50px",
5577
+ ".requiredMark": {
5578
+ color: "danger",
5579
+ position: "absolute",
5580
+ left: "-9px"
5581
+ },
5582
+ ".errorRequired": {
5583
+ color: "danger"
5584
+ }
5585
+ }
5556
5586
  },
5557
- ".gpt__form": {
5558
- flexDirection: "column",
5587
+ ".metadata__actions": {
5559
5588
  display: "flex",
5560
- gap: 2,
5561
- height: "100%"
5589
+ flexDirection: "row",
5590
+ gap: 3
5562
5591
  },
5563
- ".formsAssistant__closeButton": {
5564
- borderRadius: "5px",
5565
- top: "-7px",
5566
- right: "-7px",
5567
- position: "absolute"
5592
+ ".addMetadata, .deleteMetadata": {
5593
+ height: "30px",
5594
+ width: "30px",
5595
+ p: "0px"
5596
+ }
5597
+ }
5598
+ };
5599
+
5600
+ const infoModal = {
5601
+ minWidth: "550px",
5602
+ display: "flex",
5603
+ flexDirection: "column",
5604
+ gap: 3,
5605
+ ...collapsiblePanel,
5606
+ button: {
5607
+ cursor: "pointer"
5608
+ },
5609
+ table: {
5610
+ width: "100%",
5611
+ span: {
5612
+ fontWeight: "bold"
5568
5613
  },
5569
- ".history": {
5570
- height: "200px",
5571
- overflow: "hidden",
5572
- display: "flex"
5614
+ button: {
5615
+ boxShadow: "none",
5616
+ color: "palette.text.primary",
5617
+ background: "inherit"
5573
5618
  },
5574
- ".autoscrollContainer": { overflow: "auto" }
5619
+ "tr > td:first-of-type": {
5620
+ width: "50%"
5621
+ },
5622
+ ".table__buttons": {
5623
+ display: "flex",
5624
+ gap: 3
5625
+ }
5575
5626
  },
5576
- configurationTable: {
5577
- variant: "layout.common.tables.information",
5578
- "th:last-of-type": {
5579
- width: "100px"
5627
+ ".allPermissions": {
5628
+ background: "palette.background.paper",
5629
+ display: "flex",
5630
+ flexDirection: "row",
5631
+ gap: 3,
5632
+ alignItems: "center",
5633
+ borderRadius: "default",
5634
+ border: "1px solid",
5635
+ borderColor: "palette.gray.800",
5636
+ p: 4,
5637
+ width: "100%",
5638
+ div: { width: "100%" },
5639
+ select: { width: "100%" }
5640
+ },
5641
+ ".permissions__list": {
5642
+ display: "flex",
5643
+ flexDirection: "column",
5644
+ gap: 3,
5645
+ ul: {
5646
+ borderRadius: "default",
5647
+ border: "1px solid",
5648
+ borderColor: "palette.gray.800",
5649
+ background: "palette.background.paper"
5580
5650
  }
5581
5651
  },
5582
- overrideTable: {
5583
- ".attTitle": { fontWeight: "bold" },
5584
- 'div[role="dialog"]': {
5585
- width: "95vw"
5652
+ ".doc_info_table_container": {
5653
+ display: "flex",
5654
+ flexDirection: "column",
5655
+ gap: "12px",
5656
+ background: "palette.background.paper",
5657
+ padding: 3,
5658
+ borderRadius: "default",
5659
+ border: "1px solid",
5660
+ borderColor: "palette.gray.800"
5661
+ },
5662
+ ".doc_info_table": {
5663
+ width: "100%",
5664
+ maxHeight: "310px",
5665
+ overflowY: "auto",
5666
+ boxSizing: "border-box",
5667
+ position: "relative",
5668
+ th: {
5669
+ position: "sticky",
5670
+ top: 0,
5671
+ backgroundColor: "palette.background.paper",
5672
+ zIndex: 2,
5673
+ border: "none",
5674
+ borderBottom: "1px solid #ccc",
5675
+ padding: "8px",
5676
+ textAlign: "left",
5677
+ width: "50%"
5586
5678
  },
5587
- ".confirmNewValues": {
5588
- variant: "layout.common.tables.information",
5589
- tableLayout: "fixed",
5590
- width: "100%",
5591
- 'div[role="dialog"]': {
5592
- width: "95vw"
5679
+ tbody: {
5680
+ ".selected": {
5681
+ background: "palette.gray.900"
5593
5682
  },
5594
- "& thead": {
5595
- th: {
5596
- width: "50%"
5597
- },
5598
- "th:last-of-type": {
5599
- width: "100px"
5600
- },
5601
- "th:first-of-type": {
5602
- width: "199px"
5603
- }
5683
+ td: {
5684
+ padding: 3,
5685
+ borderBottom: "1px solid #ececec",
5686
+ verticalAlign: "top"
5604
5687
  },
5605
- "& tbody": {
5606
- "td:last-of-type": {
5607
- textAlign: "center"
5608
- }
5688
+ ".iconButton": {
5689
+ border: "none"
5609
5690
  }
5691
+ },
5692
+ button: {
5693
+ justifyContent: "start",
5694
+ width: "100%"
5695
+ }
5696
+ },
5697
+ ".versions_table": {
5698
+ "thead tr th:first-of-type, tbody tr td:first-of-type": {
5699
+ width: "100px",
5700
+ textAlign: "center"
5610
5701
  }
5611
5702
  }
5612
5703
  };
5613
5704
 
5614
- const execution = {
5615
- formsAssistant
5705
+ const dropzone = {
5706
+ display: "flex",
5707
+ flexDirection: "row",
5708
+ p: 4,
5709
+ borderRadius: "default",
5710
+ padding: "0px!important",
5711
+ border: "1px solid",
5712
+ borderColor: "palette.border.field",
5713
+ height: "51px",
5714
+ alignItems: "center",
5715
+ width: "100%",
5716
+ background: "palette.background.paper",
5717
+ position: "relative",
5718
+ backgroundImage: (t) => `repeating-linear-gradient(45deg,
5719
+ ${get(t, "colors.dropzone.color")},
5720
+ ${get(t, "colors.dropzone.color")} 3px,
5721
+ ${get(t, "colors.dropzone.backgroundColor")} 3px,
5722
+ ${get(t, "colors.dropzone.backgroundColor")} 12px)`,
5723
+ ":focus-within": {
5724
+ outlineColor: "outlineColor",
5725
+ outlineWidth: "3px",
5726
+ outlineOffset: "-3px",
5727
+ outlineStyle: "solid",
5728
+ borderColor: "transparent"
5729
+ },
5730
+ ".dropzone": {
5731
+ backgroundSize: "200% 200%",
5732
+ display: "flex",
5733
+ flex: "1",
5734
+ flexDirection: "column",
5735
+ alignItems: "center",
5736
+ justifyContent: "center",
5737
+ fontWeight: "normal",
5738
+ border: "none",
5739
+ wordBreak: "break-word",
5740
+ overflow: "hidden",
5741
+ margin: "3px",
5742
+ height: "calc( 100% - 6px)",
5743
+ padding: 0,
5744
+ width: "inherit",
5745
+ borderTopLeftRadius: "7px",
5746
+ borderBottomLeftRadius: "7px",
5747
+ ":hover": {
5748
+ cursor: "pointer",
5749
+ animation: `${keyframes({
5750
+ "100%": { backgroundPosition: "100% 100%" }
5751
+ })} 20s linear infinite`,
5752
+ "&:disabled": { animation: "none" }
5753
+ },
5754
+ ":focus": {
5755
+ outline: "none"
5756
+ },
5757
+ ".progressBar": {
5758
+ position: "absolute",
5759
+ top: 0,
5760
+ left: 0,
5761
+ right: 0,
5762
+ borderRadius: "7px",
5763
+ backgroundColor: "#8080807a",
5764
+ transition: "width 0.5s ease-in-out"
5765
+ }
5766
+ },
5767
+ ".info": {
5768
+ height: "100%",
5769
+ border: "none",
5770
+ borderTopLeftRadius: "0px",
5771
+ borderBottomLeftRadius: "0px",
5772
+ boxShadow: "none",
5773
+ width: "49px",
5774
+ ...getColorsAndStatesByPath$1("buttons.outline"),
5775
+ background: "transparent",
5776
+ svg: {
5777
+ color: "#9f9f9f"
5778
+ },
5779
+ "&:focus": {
5780
+ outline: "none"
5781
+ }
5782
+ }
5616
5783
  /* PREPEND HERE */
5617
5784
  };
5618
5785
 
5619
- const connectors = {
5620
- testResult: {
5621
- td: {
5622
- verticalAlign: "middle !important",
5623
- "&.title": {
5624
- fontWeight: "bold",
5625
- textAlign: "center"
5786
+ const verifySignModal = {
5787
+ minWidth: "550px",
5788
+ display: "flex",
5789
+ flexDirection: "column",
5790
+ gap: 3,
5791
+ "&.verifysign__container": {
5792
+ outline: "none!important",
5793
+ display: "flex",
5794
+ flexDirection: "column",
5795
+ gap: "12px",
5796
+ background: "palette.background.paper",
5797
+ padding: 3,
5798
+ borderRadius: "default",
5799
+ border: "1px solid",
5800
+ borderColor: "palette.gray.800",
5801
+ ".verifysign__table_container": {
5802
+ width: "100%",
5803
+ maxHeight: "310px",
5804
+ overflowY: "auto",
5805
+ display: "block",
5806
+ boxSizing: "border-box",
5807
+ position: "relative",
5808
+ table: {
5809
+ borderCollapse: "collapse",
5810
+ tableLayout: "fixed",
5811
+ boxSizing: "border-box",
5812
+ td: { borderLeft: 0, borderRight: 0 },
5813
+ "tr:last-child td:first-child": {
5814
+ borderBottomLeftRadius: "default"
5815
+ },
5816
+ "tr:last-child td:last-child": {
5817
+ borderBottomRightRadius: "default"
5818
+ }
5626
5819
  },
5627
- div: {
5628
- height: "1.5em",
5629
- width: "1.5em",
5630
- borderRadius: "100px",
5631
- mx: "auto"
5820
+ th: {
5821
+ position: "sticky",
5822
+ top: 0,
5823
+ backgroundColor: "palette.background.paper",
5824
+ zIndex: 2,
5825
+ border: "none",
5826
+ borderBottom: "1px solid #ccc",
5827
+ padding: "8px",
5828
+ textAlign: "left"
5632
5829
  },
5633
- "&.success": {
5634
- p: 3,
5635
- div: { backgroundColor: "palette.success.main" }
5830
+ "th:first-of-type": {
5831
+ width: "200px"
5636
5832
  },
5637
- "&.error": {
5638
- p: 3,
5639
- div: { backgroundColor: "palette.error.main" }
5833
+ tbody: {
5834
+ ".selected": {
5835
+ background: "palette.gray.900"
5836
+ },
5837
+ "tr > td:first-of-type": {
5838
+ width: "20%"
5839
+ },
5840
+ td: {
5841
+ padding: 3,
5842
+ borderBottom: "1px solid #ececec",
5843
+ verticalAlign: "top"
5844
+ },
5845
+ ".iconButton": {
5846
+ border: "none"
5847
+ }
5640
5848
  }
5641
5849
  }
5642
5850
  }
5643
5851
  };
5644
5852
 
5645
- keyframes`
5646
- 0% {
5647
- transform: rotate(0);
5648
- }
5649
-
5650
- 25% {
5651
- transform: rotate(1.5deg);
5652
- }
5653
-
5654
- 75% {
5655
- transform: rotate(-1.5deg);
5656
- }
5853
+ const filesList = {
5854
+ display: "flex",
5855
+ flexDirection: "row",
5856
+ gap: "10px",
5857
+ alignItems: "center",
5858
+ flexWrap: "wrap",
5859
+ "&.uploadedFiles": {
5860
+ display: "grid",
5861
+ gridTemplateColumns: "repeat(3, 1fr)",
5862
+ gap: 3
5863
+ },
5864
+ ".file__icon": {
5865
+ flexShrink: 0
5866
+ }
5867
+ /* PREPEND HERE */
5868
+ };
5657
5869
 
5658
- 100% {
5659
- transform: rotate(0);
5660
- }`;
5661
- const fadeInFromBottom = keyframes`
5662
- 0% {
5663
- transform: translateY(400px) scale(0.1);
5664
- opacity: 0;
5665
- }
5666
- 100% {
5667
- transform: translateY(0) scale(1);
5668
- opacity: 1;
5669
- }
5670
- `;
5671
- const fadeInFromTop = keyframes`
5672
- 0% {
5673
- transform: translateY(-800px) scale(0.1);
5674
- opacity: 0;
5675
- }
5676
- 100% {
5677
- transform: translateY(0) scale(1);
5678
- opacity: 1;
5679
- }
5680
- `;
5681
- const fadeIn = keyframes`
5682
- 0% {
5683
- opacity: 0;
5684
- }
5685
- 100% {
5686
- opacity: 1;
5687
- }
5688
- `;
5689
- const animations = { fadeInFromBottom, fadeInFromTop, fadeIn };
5690
-
5691
- const semanticSearch = {
5692
- execution: {
5693
- documentPage: {
5694
- padding: 4,
5695
- //maxWidth: 800,
5696
- width: "100%",
5697
- margin: "0 auto",
5698
- fontFamily: "body",
5699
- lineHeight: "body",
5700
- color: "text",
5701
- h1: {
5702
- fontSize: "25px",
5703
- mb: "24px",
5704
- mt: "13px",
5705
- borderColor: "muted",
5706
- pb: "2px",
5707
- color: "primary"
5708
- },
5709
- h2: {
5710
- fontSize: "22px",
5711
- mb: "23px",
5712
- color: "primary"
5713
- },
5714
- h3: {
5715
- fontSize: "21px",
5716
- mb: "10px",
5717
- mt: "16px",
5718
- color: "pallete.text.title"
5719
- },
5720
- h4: {
5721
- fontSize: "20px",
5722
- mb: "10px",
5723
- mt: "16px",
5724
- color: "pallete.text.title"
5725
- },
5726
- h5: {
5727
- fontSize: "19px",
5728
- mb: "10px",
5729
- mt: "16px",
5730
- color: "pallete.text.title"
5731
- },
5732
- h6: {
5733
- fontSize: "18px",
5734
- mb: "10px",
5735
- mt: "16px",
5736
- color: "pallete.text.title"
5737
- },
5738
- p: {
5739
- mb: "8px",
5740
- mt: "20px"
5870
+ const uploader = {
5871
+ defaultView,
5872
+ dropzone,
5873
+ infoModal,
5874
+ filesList,
5875
+ permissions,
5876
+ verifySignModal,
5877
+ tooltip: {
5878
+ display: "flex",
5879
+ flexDirection: "column",
5880
+ gap: 3,
5881
+ ".head": {
5882
+ textDecoration: "underline"
5883
+ },
5884
+ ".fileBtn": {
5885
+ "&.disabled": {
5886
+ cursor: "not-allowed",
5887
+ backgroundColor: "form.fields.disabled.backgroundColor"
5741
5888
  },
5742
- table: {
5743
- variant: "layout.common.tables.secondary",
5744
- thead: {
5745
- zIndex: 0
5746
- }
5889
+ "&.readonly, &:redonly": {
5890
+ // backgroundColor: 'form.fields.readonly.backgroundColor',
5891
+ backgroundColor: "red!important"
5747
5892
  }
5748
- },
5749
- background: "palette.background.default",
5750
- ".chat_history": {
5751
- margin: "50px 0 90px 0"
5752
- },
5753
- pre: {
5754
- m: 0
5755
- },
5756
- ".sem_search__system_message": {
5757
- display: "flex",
5758
- flexDirection: "column",
5759
- position: "relative"
5760
- },
5761
- streamBlock: {
5762
- animation: `${animations.fadeIn} 0.2s`,
5763
- borderRadius: "5px",
5764
- padding: "5px 10px",
5765
- background: "#d8e3e7",
5766
- color: "black",
5767
- listStyle: "disc"
5768
- },
5769
- streamBlocks: {
5893
+ }
5894
+ }
5895
+ /* PREPEND HERE */
5896
+ };
5897
+
5898
+ const switchCard = {
5899
+ "&.switch__card": {
5900
+ display: "flex",
5901
+ flexDirection: "row",
5902
+ justifyContent: "space-between",
5903
+ width: "100%",
5904
+ borderBottom: "1px solid",
5905
+ borderColor: "palette.border.field",
5906
+ p: 4,
5907
+ ".label__container": {
5770
5908
  display: "flex",
5771
- flexDirection: "column",
5909
+ flexDirection: "row",
5772
5910
  gap: 3,
5773
- padding: "16px 24px 0 24px"
5774
- },
5775
- ".sem_search__stream_blocks": {
5776
- variant: "layout.common.ai.semanticSearch.execution.streamBlocks"
5777
- },
5778
- ".sem_search__stream_block": {
5779
- variant: "layout.common.ai.semanticSearch.execution.streamBlock"
5911
+ alignItems: "center",
5912
+ whiteSpace: "nowrap",
5913
+ overflow: "hidden",
5914
+ textOverflow: "ellipsis",
5915
+ span: {
5916
+ flexShrink: 0
5917
+ }
5780
5918
  },
5781
- ".sem_search__thumbs": {
5919
+ ".switch__container": {
5782
5920
  display: "flex",
5783
- justifyContent: "end",
5784
- gap: 2,
5785
- position: "absolute",
5786
- bottom: 0,
5787
- right: 0,
5788
- ".unselected": {
5789
- color: "#c2c2c2"
5790
- },
5791
- ".selected": {
5792
- strokeWidth: "15px"
5921
+ flexDirection: "row",
5922
+ gap: 3,
5923
+ alignItems: "center",
5924
+ "& label": {
5925
+ height: "21px"
5793
5926
  },
5794
- ".no_feedback": {
5795
- color: "gray"
5927
+ input: {
5928
+ display: "none"
5796
5929
  }
5930
+ }
5931
+ }
5932
+ /* PREPEND HERE */
5933
+ };
5934
+
5935
+ const components = {
5936
+ /* PREPEND HERE */
5937
+ accordion,
5938
+ autocomplete,
5939
+ datePicker,
5940
+ pagination,
5941
+ chat: chat$1,
5942
+ scheduler,
5943
+ toolbar,
5944
+ aiMessage,
5945
+ infoButton,
5946
+ filters,
5947
+ fileCard,
5948
+ uploader,
5949
+ switchCard
5950
+ };
5951
+
5952
+ const labelBox = {
5953
+ alignItems: "center",
5954
+ border: "1px solid",
5955
+ borderColor: "palette.border.field",
5956
+ display: "flex",
5957
+ gap: spacing$1(3),
5958
+ justifyContent: "space-between",
5959
+ p: spacing$1(3),
5960
+ pl: spacing$1(5),
5961
+ "&.selected": {
5962
+ background: (theme) => getOneColorState$1("palette.background.paper", "selected", theme.palette)
5963
+ },
5964
+ "& > .labelAndIcon": {
5965
+ display: "flex",
5966
+ alignItems: "center",
5967
+ gap: spacing$1(3),
5968
+ "& ~ div button": {
5969
+ border: "none"
5797
5970
  },
5798
- ellipsis: { padding: "0 24px 32px 24px", fontWeight: "bold" },
5799
- ".ellipsis": {
5800
- variant: "layout.common.ai.semanticSearch.execution.ellipsis"
5801
- },
5802
- ".filters__container": {
5803
- " > div": {
5804
- display: "flex",
5805
- " > .filter_button:last-child": {
5806
- borderRadius: "panel",
5807
- height: "34px",
5808
- width: "34px",
5809
- flexShrink: 0,
5810
- background: "transparent",
5811
- border: "none",
5812
- opacity: 0,
5813
- transition: "opacity 400ms",
5814
- marginLeft: "auto"
5815
- }
5816
- },
5817
- paddingTop: "10px",
5818
- ".filter__input": {
5819
- paddingRight: "7px"
5820
- }
5971
+ svg: {
5972
+ minHeight: "iconMd",
5973
+ minWidth: "iconMd"
5821
5974
  },
5822
- ".filled_filters": {
5823
- " > div": {
5824
- display: "flex",
5825
- " > .filter_button:last-child": {
5826
- borderRadius: "panel",
5827
- height: "34px",
5828
- width: "34px",
5829
- flexShrink: 0,
5830
- background: "transparent",
5831
- border: "none",
5832
- opacity: 1,
5833
- marginLeft: "auto"
5834
- }
5975
+ "&:last-of-type": {
5976
+ textAlign: "right"
5977
+ }
5978
+ }
5979
+ };
5980
+
5981
+ const boxes = {
5982
+ labelBox
5983
+ /* PREPEND HERE */
5984
+ };
5985
+
5986
+ const formsAssistant = {
5987
+ modalRow: {
5988
+ "&": {
5989
+ position: "relative",
5990
+ 'div[data-variant="layout.ai.execution.formsAssistant.buttonsDiv"]': {
5991
+ position: "absolute",
5992
+ top: "7%",
5993
+ right: "15%"
5835
5994
  }
5836
- },
5837
- ".search_controls": {
5838
- alignItems: "center",
5839
- justifyContent: "center",
5995
+ }
5996
+ },
5997
+ modal: {
5998
+ 'div[class="modal__main"]': { position: "relative" },
5999
+ 'div[data-variant="layout.ai.execution.formsAssistant.buttonsDiv"]': {
6000
+ position: "absolute",
6001
+ top: "5.4%",
6002
+ right: "17%"
6003
+ }
6004
+ },
6005
+ buttonsDiv: {
6006
+ display: "flex",
6007
+ justifyContent: "end",
6008
+ gap: 2,
6009
+ alignItems: "center",
6010
+ "button.manualButton:nth-child(2)": {
6011
+ marginLeft: "auto"
6012
+ }
6013
+ },
6014
+ settingsButton: {
6015
+ variant: "buttons.icon-outline",
6016
+ border: "none"
6017
+ },
6018
+ openTextarea: {
6019
+ position: "fixed",
6020
+ bottom: "1%",
6021
+ right: "0.5%",
6022
+ zIndex: 1200
6023
+ },
6024
+ tableText: { wordBreak: "normal" },
6025
+ thModal: { whiteSpace: "nowrap" },
6026
+ genericWindowDragger: {
6027
+ maxWidth: "600px",
6028
+ maxHeight: "455px",
6029
+ zIndex: "1200",
6030
+ bottom: "49px",
6031
+ right: "11px"
6032
+ },
6033
+ customGridWindowDragger: {
6034
+ variant: "layout.ai.execution.formsAssistant.genericWindowDragger",
6035
+ bottom: "auto",
6036
+ right: "auto",
6037
+ ".tooltip__wrapper": {
6038
+ padding: "0px"
6039
+ }
6040
+ },
6041
+ floatingWindow: {
6042
+ p: 5,
6043
+ display: "flex",
6044
+ flexDirection: "column",
6045
+ gap: 5,
6046
+ background: "palette.background.paper",
6047
+ border: "1px solid",
6048
+ borderColor: "palette.border.section",
6049
+ minWidth: "478px",
6050
+ 'input[type="file"]': {
6051
+ display: "none"
6052
+ },
6053
+ ".gpt__buttonsContainer": {
5840
6054
  display: "flex",
5841
- gap: 0,
5842
- mx: "auto",
5843
- background: "palette.background.paper",
5844
- border: "1px solid",
5845
- borderColor: "palette.border.section",
5846
- borderRadius: "panel",
5847
- boxShadow: "0px 2px 6px #0002",
5848
- width: "100%",
5849
- p: spacing(3),
5850
- "&:focus-within": focusOutline,
5851
- "& > *:focus": {
5852
- outline: "none"
5853
- },
5854
- ".filter_button_box": {
5855
- position: "relative"
5856
- },
5857
- ".applied_filters_label": {
5858
- position: "absolute",
5859
- bottom: "21px",
5860
- left: "20px",
5861
- minWidth: "10px",
5862
- maxHeight: "10px",
5863
- border: "2px solid white",
5864
- borderRadius: "100%",
5865
- display: "inline-flex",
5866
- alignItems: "center",
5867
- justifyContent: "center",
5868
- backgroundColor: "palette.error.main"
5869
- }
6055
+ alignItems: "center",
6056
+ justifyContent: "end",
6057
+ gap: 1
5870
6058
  },
5871
- ".SearchButton": {
5872
- borderRadius: "panel",
5873
- height: "34px",
5874
- width: "34px",
5875
- flexShrink: 0,
5876
- background: "transparent",
5877
- border: "none",
5878
- color: "palette.text.primary",
5879
- ":disabled": {
5880
- background: "transparent"
5881
- }
6059
+ 'button[data-variant="icon-outline-danger"]': {
6060
+ border: "none"
5882
6061
  },
5883
- ".FilterButton": {
5884
- borderRadius: "panel",
5885
- height: "34px",
5886
- width: "34px",
5887
- flexShrink: 0,
5888
- background: "transparent",
5889
- border: "none",
5890
- color: "palette.text.primary",
5891
- "&.open": {
5892
- color: "palette.primary.main"
5893
- }
6062
+ ".gpt__form": {
6063
+ flexDirection: "column",
6064
+ display: "flex",
6065
+ gap: 2
5894
6066
  },
5895
- ".references__box": {
6067
+ ".formsAssistant__closeButton": {
6068
+ borderRadius: "5px",
6069
+ top: "-7px",
6070
+ right: "-7px",
6071
+ position: "absolute"
6072
+ },
6073
+ ".history": {
6074
+ height: "200px",
6075
+ overflow: "hidden",
6076
+ display: "flex"
6077
+ },
6078
+ ".autoscrollContainer": { overflow: "auto" }
6079
+ },
6080
+ phoneCase: {
6081
+ p: 5,
6082
+ display: "flex",
6083
+ flexDirection: "column",
6084
+ gap: 5,
6085
+ background: "palette.background.paper",
6086
+ border: "1px solid",
6087
+ borderColor: "palette.border.section",
6088
+ height: "100%",
6089
+ justifyContent: "space-between",
6090
+ 'input[type="file"]': {
6091
+ display: "none"
6092
+ },
6093
+ ".gpt__buttonsContainer": {
5896
6094
  display: "flex",
5897
6095
  alignItems: "center",
5898
- gap: spacing(5)
6096
+ justifyContent: "end",
6097
+ gap: 1
5899
6098
  },
5900
- ".searchTextArea": {
5901
- minHeight: "34px",
5902
- height: "34px",
5903
- resize: "none",
5904
- py: spacing(2),
5905
- background: "transparent",
6099
+ 'button[data-variant="icon-outline-danger"]': {
5906
6100
  border: "none"
5907
6101
  },
5908
- ".references_item": {
5909
- maxWidth: "180px",
5910
- whiteSpace: "nowrap",
5911
- zIndex: 0,
5912
- ".button__content": {
5913
- overflow: "hidden",
5914
- textOverflow: "ellipsis",
5915
- maxWidth: "180px"
5916
- }
6102
+ 'div[data-variant="layout.common.components.chat"]': {
6103
+ minHeight: "60%"
5917
6104
  },
5918
- "&.mode_none": {
6105
+ 'div[data-variant="layout.common.components.chat"] + div': {
6106
+ width: "100%",
6107
+ height: "29%"
6108
+ },
6109
+ ".gpt__form": {
5919
6110
  flexDirection: "column",
5920
6111
  display: "flex",
5921
- alignItems: "center",
5922
- justifyContent: "center",
5923
- height: "100vh",
5924
- gap: spacing(5),
5925
- ".search_header_container": {
5926
- fontSize: "50px",
5927
- maxWidth: "50vw",
5928
- textAlign: "left",
5929
- display: "flex",
5930
- flexDirection: "column",
5931
- gap: spacing(5)
5932
- },
5933
- ".search_section_container": {
5934
- mx: "auto",
5935
- display: "flex",
5936
- flexDirection: "column",
5937
- gap: spacing(3),
5938
- zIndex: 1,
5939
- background: "palette.background.default",
5940
- boxShadow: "0 10px 10px #f8f4f4",
5941
- width: responsive$1({
5942
- 0: "calc(100%)",
5943
- 3: "calc(75vw + 50px)",
5944
- 5: "calc(50vw + 50px)"
5945
- })
5946
- }
6112
+ gap: 2,
6113
+ height: "100%"
5947
6114
  },
5948
- "&.mode_chat": {
5949
- h1: {
5950
- whiteSpace: "nowrap",
5951
- overflow: "hidden",
5952
- textOverflow: "ellipsis"
6115
+ ".formsAssistant__closeButton": {
6116
+ borderRadius: "5px",
6117
+ top: "-7px",
6118
+ right: "-7px",
6119
+ position: "absolute"
6120
+ },
6121
+ ".history": {
6122
+ height: "200px",
6123
+ overflow: "hidden",
6124
+ display: "flex"
6125
+ },
6126
+ ".autoscrollContainer": { overflow: "auto" }
6127
+ },
6128
+ configurationTable: {
6129
+ variant: "layout.common.tables.information",
6130
+ "th:last-of-type": {
6131
+ width: "100px"
6132
+ }
6133
+ },
6134
+ overrideTable: {
6135
+ ".attTitle": { fontWeight: "bold" },
6136
+ 'div[role="dialog"]': {
6137
+ width: "95vw"
6138
+ },
6139
+ ".confirmNewValues": {
6140
+ variant: "layout.common.tables.information",
6141
+ tableLayout: "fixed",
6142
+ width: "100%",
6143
+ 'div[role="dialog"]': {
6144
+ width: "95vw"
5953
6145
  },
5954
- backgroundColor: "white",
5955
- width: responsive$1({
5956
- 0: "calc(100%)",
5957
- 3: "calc(75vw + 2px)",
5958
- 5: "min(950px, calc(60vw + 2px))"
5959
- }),
5960
- margin: ["auto", "32px auto"],
5961
- border: "1px solid #ccc",
5962
- ".search_section_container": {
5963
- zIndex: 1,
5964
- position: "fixed",
5965
- bottom: "0",
5966
- transform: "translateX(-1px)",
5967
- borderBottom: "4px solid #f2f2f2",
5968
- width: responsive$1({
5969
- 0: "calc(100%)",
5970
- 3: "calc(75vw + 2px)",
5971
- 5: "min(950px, calc(60vw + 2px))"
5972
- }),
5973
- background: "white",
5974
- textarea: { width: "calc(100%)" },
5975
- "& > div": {
5976
- padding: "4px 32px",
5977
- borderLeft: "1px solid #ccc",
5978
- borderRight: "1px solid #ccc",
5979
- borderBottom: "1px solid #ccc",
5980
- width: "calc(100%)",
5981
- background: "white"
5982
- }
5983
- },
5984
- ".search_header_container": {
5985
- position: "fixed",
5986
- zIndex: 1,
5987
- top: "0",
5988
- transform: "translateX(-1px)",
5989
- borderTop: "4px solid #f2f2f2",
5990
- padding: "0",
5991
- width: responsive$1({
5992
- 0: "calc(100%)",
5993
- 3: "calc(75vw + 2px)",
5994
- 5: "min(950px, calc(60vw + 2px))"
5995
- }),
5996
- h1: {
5997
- padding: "32px",
5998
- pt: "20px",
5999
- pb: 0,
6000
- borderLeft: "1px solid #ccc",
6001
- borderRight: "1px solid #ccc",
6002
- borderTop: "1px solid #ccc",
6003
- width: "calc(100%)",
6004
- background: "white"
6146
+ "& thead": {
6147
+ th: {
6148
+ width: "50%"
6005
6149
  },
6006
- p: {
6007
- background: "palette.background.paper",
6008
- padding: "32px",
6009
- pb: "20px",
6010
- pt: 0,
6011
- whiteSpace: "nowrap",
6012
- overflow: "hidden",
6013
- textOverflow: "ellipsis",
6014
- width: "calc(100% - 2px)",
6015
- ml: "1px"
6016
- }
6017
- },
6018
- ".messages_box": {
6019
- fontSize: "22px",
6020
- minHeight: "82vh",
6021
- paddingTop: "7%",
6022
- marginBottom: "8%"
6023
- },
6024
- ".history__message": {
6025
- borderRadius: "panel",
6026
- margin: "15px",
6027
- padding: "18px",
6028
- border: "1px",
6029
- //boxShadow: 'rgba(50, 50, 93, 0.25) 2px 2px 4px 1px',
6030
- "&.user": {
6031
- borderRadius: "chatMessage",
6032
- borderTopRightRadius: "0px",
6033
- backgroundColor: "rgb(108 166 203)",
6034
- //rgb(117 163 192)', //rgb(92, 143, 174)',
6035
- color: "white",
6036
- boxShadow: "rgba(50, 50, 93, 0.15) 1px 1px 2px 1px",
6037
- border: "1px solid rgb(113 145 193)"
6150
+ "th:last-of-type": {
6151
+ width: "100px"
6038
6152
  },
6039
- "&.system": {
6040
- borderRadius: "chatMessage",
6041
- borderTopLeftRadius: "0px",
6042
- backgroundColor: "#00bcff14",
6043
- boxShadow: "rgba(50, 50, 93, 0.15) 1px 1px 2px 1px",
6044
- border: "1px solid rgb(0 28 38 / 18%)"
6045
- }
6046
- },
6047
- ".history": {
6048
- animation: `${animations.fadeInFromBottom} 0.3s`,
6049
- padding: "100px 32px 80px 32px",
6050
- border: "none",
6051
- height: "unset"
6052
- }
6053
- },
6054
- "&.mode_list": {
6055
- p: {
6056
- '&[name="semSerDescription"]': {
6057
- padding: "0px 23vw",
6058
- whiteSpace: "nowrap",
6059
- overflow: "hidden",
6060
- textOverflow: "ellipsis",
6061
- width: "calc(100% - 2px)",
6062
- marginLeft: "1px"
6153
+ "th:first-of-type": {
6154
+ width: "199px"
6063
6155
  }
6064
6156
  },
6065
- display: "block",
6066
- gap: spacing(5),
6067
- px: responsive$1({
6068
- 0: 5,
6069
- 3: 0
6070
- }),
6071
- ".search_header_container": {
6072
- marginTop: "7px",
6073
- h1: {
6074
- padding: "0 23vw",
6075
- fontSize: "20px"
6157
+ "& tbody": {
6158
+ "td:last-of-type": {
6159
+ textAlign: "center"
6076
6160
  }
6161
+ }
6162
+ }
6163
+ }
6164
+ };
6165
+
6166
+ const execution = {
6167
+ formsAssistant
6168
+ /* PREPEND HERE */
6169
+ };
6170
+
6171
+ const connectors = {
6172
+ testResult: {
6173
+ td: {
6174
+ verticalAlign: "middle !important",
6175
+ "&.title": {
6176
+ fontWeight: "bold",
6177
+ textAlign: "center"
6077
6178
  },
6078
- ".filters__container": {
6079
- padding: "0 25px",
6080
- paddingTop: "10px"
6081
- },
6082
- ".search_section_container": {
6083
- paddingTop: "47px",
6084
- mx: "auto",
6085
- display: "flex",
6086
- flexDirection: "column",
6087
- zIndex: 1,
6088
- boxShadow: "0 10px 10px #f8f4f4",
6089
- width: responsive$1({
6090
- 0: "calc(100%)",
6091
- 3: "calc(75vw + 50px)",
6092
- 5: "calc(50vw + 50px)"
6093
- }),
6094
- background: "palette.background.default",
6095
- position: "sticky",
6096
- top: 0,
6097
- py: spacing(5),
6098
- gap: spacing(5)
6099
- },
6100
- ".list_results": {
6101
- animation: `${animations.fadeInFromTop} 0.3s`,
6102
- height: "100%",
6103
- width: responsive$1({ 0: "100%", 3: "75vw", 5: "50vw" }),
6104
- mx: "auto",
6105
- pt: spacing(3),
6106
- display: "flex",
6107
- flexDirection: "column",
6108
- gap: spacing(6)
6109
- },
6110
- ".list_item": {
6111
- borderRadius: "panel",
6112
- padding: spacing(7),
6113
- backgroundColor: "palette.background.paper",
6114
- boxShadow: "0px 4px 6px #0002",
6115
- border: "1px solid",
6116
- borderColor: "palette.border.ghost"
6179
+ div: {
6180
+ height: "1.5em",
6181
+ width: "1.5em",
6182
+ borderRadius: "100px",
6183
+ mx: "auto"
6117
6184
  },
6118
- ".references_container": {
6119
- borderTop: "1px solid",
6120
- borderTopColor: "palette.border.article",
6121
- display: "flex",
6122
- gap: spacing(6),
6123
- pt: spacing(5)
6124
- }
6125
- },
6126
- ".autogrow_textarea": {
6127
- maxHeight: "20vh",
6128
- width: "100%"
6129
- },
6130
- refsAccordion: {
6131
- variant: "layout.common.components.accordion.panels",
6132
- border: (theme) => `1px solid ${theme.palette.border.ghost}`,
6133
- refButton: {
6134
- variant: "buttons.paper"
6185
+ "&.success": {
6186
+ p: 3,
6187
+ div: { backgroundColor: "palette.success.main" }
6135
6188
  },
6136
- "& .accordion__item__button": {
6137
- userSelect: "unset",
6138
- position: "sticky",
6139
- top: 0
6189
+ "&.error": {
6190
+ p: 3,
6191
+ div: { backgroundColor: "palette.error.main" }
6140
6192
  }
6141
6193
  }
6142
6194
  }
6143
6195
  };
6144
6196
 
6145
- const ai = {
6146
- connectors,
6147
- execution,
6148
- semanticSearch
6149
- /* PREPEND HERE */
6150
- };
6197
+ keyframes`
6198
+ 0% {
6199
+ transform: rotate(0);
6200
+ }
6151
6201
 
6152
- const form$1 = {
6153
- /* PREPEND HERE */
6154
- alignItems: "center",
6155
- justifyContent: "center",
6156
- display: "flex",
6157
- gap: 0,
6158
- mx: "auto",
6159
- background: "palette.background.paper",
6160
- border: "1px solid",
6161
- borderColor: "palette.border.section",
6162
- borderRadius: "panel",
6163
- boxShadow: "0px 2px 6px #0002",
6164
- width: "100%",
6165
- p: spacing(3),
6166
- flexDirection: "column",
6167
- position: "relative",
6168
- ".chatButtons": {
6169
- display: "flex",
6170
- flexDirection: "row",
6171
- alignitems: "end",
6172
- justifyContent: "end",
6173
- position: "absolute",
6174
- bottom: "8px",
6175
- right: "4px"
6176
- },
6177
- "&:focus-within": focusOutline,
6178
- "& > *:focus[class]": {
6179
- outlineWidth: 0
6180
- },
6181
- ".filter_button_box": {
6182
- position: "relative"
6183
- },
6184
- ".applied_filters_label": {
6185
- position: "absolute",
6186
- bottom: "21px",
6187
- left: "20px",
6188
- minWidth: "10px",
6189
- maxHeight: "10px",
6190
- border: "2px solid white",
6191
- borderRadius: "100%",
6192
- display: "inline-flex",
6193
- alignItems: "center",
6194
- justifyContent: "center",
6195
- backgroundColor: "palette.error.main"
6196
- },
6197
- ".searchTextArea": {
6198
- minHeight: "16px",
6199
- height: "16px",
6200
- width: "100%",
6201
- maxHeight: "30vh",
6202
- resize: "none",
6203
- py: 0,
6204
- background: "transparent",
6205
- border: "none"
6206
- },
6207
- ".ChatBarButton": {
6208
- borderRadius: "panel",
6209
- height: "34px",
6210
- width: "34px",
6211
- flexShrink: 0,
6212
- background: "transparent",
6213
- border: "none",
6214
- color: "palette.text.primary"
6215
- },
6216
- ".isRecording": {
6217
- borderRadius: "panel",
6218
- height: "34px",
6219
- width: "34px",
6220
- flexShrink: 0,
6221
- background: "transparent",
6222
- border: "none",
6223
- color: "red"
6224
- }
6225
- };
6202
+ 25% {
6203
+ transform: rotate(1.5deg);
6204
+ }
6226
6205
 
6227
- const history = {
6228
- /* PREPEND HERE */
6229
- display: "flex",
6230
- flexDirection: "column",
6231
- width: "100%",
6232
- gap: 4,
6233
- p: 3,
6234
- ".history_message__content": {
6235
- display: "flex",
6236
- flexDirection: "column",
6237
- gap: "16px",
6238
- div: {
6239
- padding: 0
6240
- },
6241
- h3: {
6242
- fontSize: "20px"
6243
- }
6244
- },
6245
- ".history_message": {
6246
- px: 4,
6247
- py: 5,
6248
- pt: 0,
6249
- maxWidth: "calc(100% - 50px)",
6250
- width: "fit-content",
6251
- wordWrap: "break-word",
6252
- whiteSpace: "pre-wrap",
6253
- borderRadius: "chatMessage",
6254
- minWidth: "50px",
6255
- "&.last": {
6256
- mb: 4
6257
- },
6258
- "&.user": {
6259
- "&.first": {
6260
- borderTopRightRadius: "0px"
6206
+ 75% {
6207
+ transform: rotate(-1.5deg);
6208
+ }
6209
+
6210
+ 100% {
6211
+ transform: rotate(0);
6212
+ }`;
6213
+ const fadeInFromBottom = keyframes`
6214
+ 0% {
6215
+ transform: translateY(400px) scale(0.1);
6216
+ opacity: 0;
6217
+ }
6218
+ 100% {
6219
+ transform: translateY(0) scale(1);
6220
+ opacity: 1;
6221
+ }
6222
+ `;
6223
+ const fadeInFromTop = keyframes`
6224
+ 0% {
6225
+ transform: translateY(-800px) scale(0.1);
6226
+ opacity: 0;
6227
+ }
6228
+ 100% {
6229
+ transform: translateY(0) scale(1);
6230
+ opacity: 1;
6231
+ }
6232
+ `;
6233
+ const fadeIn = keyframes`
6234
+ 0% {
6235
+ opacity: 0;
6236
+ }
6237
+ 100% {
6238
+ opacity: 1;
6239
+ }
6240
+ `;
6241
+ const animations = { fadeInFromBottom, fadeInFromTop, fadeIn };
6242
+
6243
+ const semanticSearch = {
6244
+ execution: {
6245
+ documentPage: {
6246
+ padding: 4,
6247
+ //maxWidth: 800,
6248
+ width: "100%",
6249
+ margin: "0 auto",
6250
+ fontFamily: "body",
6251
+ lineHeight: "body",
6252
+ color: "text",
6253
+ h1: {
6254
+ fontSize: "25px",
6255
+ mb: "24px",
6256
+ mt: "13px",
6257
+ borderColor: "muted",
6258
+ pb: "2px",
6259
+ color: "primary"
6261
6260
  },
6262
- "&.first:has(+ .first))": {
6263
- mb: 4
6261
+ h2: {
6262
+ fontSize: "22px",
6263
+ mb: "23px",
6264
+ color: "primary"
6264
6265
  },
6265
- backgroundColor: "rgb(108 166 203)",
6266
- // TODO: Set the correct color, if necessary, define it in palette
6267
- color: "white",
6268
- // TODO: Set the correct color, if necessary, define it in palette
6269
- ".fileCard__content": {
6270
- color: "palette.text.primary"
6266
+ h3: {
6267
+ fontSize: "21px",
6268
+ mb: "10px",
6269
+ mt: "16px",
6270
+ color: "pallete.text.title"
6271
6271
  },
6272
- border: "1px solid rgb(113 145 193)",
6273
- // TODO: Set the correct color, if necessary, define it in palette
6274
- alignSelf: "end",
6272
+ h4: {
6273
+ fontSize: "20px",
6274
+ mb: "10px",
6275
+ mt: "16px",
6276
+ color: "pallete.text.title"
6277
+ },
6278
+ h5: {
6279
+ fontSize: "19px",
6280
+ mb: "10px",
6281
+ mt: "16px",
6282
+ color: "pallete.text.title"
6283
+ },
6284
+ h6: {
6285
+ fontSize: "18px",
6286
+ mb: "10px",
6287
+ mt: "16px",
6288
+ color: "pallete.text.title"
6289
+ },
6290
+ p: {
6291
+ mb: "8px",
6292
+ mt: "20px"
6293
+ },
6294
+ table: {
6295
+ variant: "layout.common.tables.secondary",
6296
+ thead: {
6297
+ zIndex: 0
6298
+ }
6299
+ }
6300
+ },
6301
+ background: "palette.background.default",
6302
+ ".chat_history": {
6303
+ margin: "50px 0 90px 0"
6304
+ },
6305
+ pre: {
6306
+ m: 0
6307
+ },
6308
+ ".sem_search__system_message": {
6275
6309
  display: "flex",
6276
- flexDirection: "column"
6310
+ flexDirection: "column",
6311
+ position: "relative"
6277
6312
  },
6278
- "&.system": {
6279
- "&.first": {
6280
- borderTopLeftRadius: "0px"
6313
+ streamBlock: {
6314
+ animation: `${animations.fadeIn} 0.2s`,
6315
+ borderRadius: "5px",
6316
+ padding: "5px 10px",
6317
+ background: "#d8e3e7",
6318
+ color: "black",
6319
+ listStyle: "disc"
6320
+ },
6321
+ streamBlocks: {
6322
+ display: "flex",
6323
+ flexDirection: "column",
6324
+ gap: 3,
6325
+ padding: "16px 24px 0 24px"
6326
+ },
6327
+ ".sem_search__stream_blocks": {
6328
+ variant: "layout.common.ai.semanticSearch.execution.streamBlocks"
6329
+ },
6330
+ ".sem_search__stream_block": {
6331
+ variant: "layout.common.ai.semanticSearch.execution.streamBlock"
6332
+ },
6333
+ ".sem_search__thumbs": {
6334
+ display: "flex",
6335
+ justifyContent: "end",
6336
+ gap: 2,
6337
+ position: "absolute",
6338
+ bottom: 0,
6339
+ right: 0,
6340
+ ".unselected": {
6341
+ color: "#c2c2c2"
6281
6342
  },
6282
- "&.first:has(+ .first))": {
6283
- mb: 4
6343
+ ".selected": {
6344
+ strokeWidth: "15px"
6284
6345
  },
6285
- backgroundColor: "#00bcff14",
6286
- // TODO: Set the correct color, if necessary, define it in palette
6287
- border: "1px solid rgb(0 28 38 / 18%)"
6288
- // TODO: Set the correct color, if necessary, define it in palette
6289
- },
6290
- "&.warning": {
6291
- borderRadius: "chatMessage",
6292
- borderTopLeftRadius: "0px",
6293
- alignSelf: "start",
6294
- backgroundColor: "#ffff0024",
6295
- // TODO: Set the correct color, if necessary, define it in palette
6296
- width: "100%",
6297
- border: "1px solid rgb(0 28 38 / 18%)"
6298
- // TODO: Set the correct color, if necessary, define it in palette
6346
+ ".no_feedback": {
6347
+ color: "gray"
6348
+ }
6299
6349
  },
6300
- "&.error": {
6301
- borderRadius: "chatMessage",
6302
- borderTopLeftRadius: "0px",
6303
- alignSelf: "start",
6304
- backgroundColor: "#fd84212b",
6305
- // TODO: Set the correct color, if necessary, define it in palette
6306
- width: "100%",
6307
- border: "1px solid rgb(0 28 38 / 18%)"
6308
- // TODO: Set the correct color, if necessary, define it in palette
6350
+ ellipsis: { padding: "0 24px 32px 24px", fontWeight: "bold" },
6351
+ ".ellipsis": {
6352
+ variant: "layout.common.ai.semanticSearch.execution.ellipsis"
6309
6353
  },
6310
- "&.information": {
6311
- borderRadius: "chatMessage",
6312
- borderTopLeftRadius: "0px",
6313
- alignSelf: "start",
6314
- backgroundColor: "#00bcff14",
6315
- //'#2222cc2b',
6316
- width: "100%",
6317
- border: "1px solid rgb(0 28 38 / 18%)"
6318
- // TODO: Set the correct color, if necessary, define it in palette
6319
- }
6320
- },
6321
- ".history_message__attachments": {
6322
- display: "flex",
6323
- justifyContent: "flex-end",
6324
- ".labelBox": {
6325
- width: "max-content",
6326
- background: "#fafafa",
6327
- color: "palette.text.primary",
6328
- fontSize: "14px",
6329
- ".labelAndIcon ": {
6330
- fontSize: "14px"
6354
+ ".filters__container": {
6355
+ " > div": {
6356
+ display: "flex",
6357
+ " > .filter_button:last-child": {
6358
+ borderRadius: "panel",
6359
+ height: "34px",
6360
+ width: "34px",
6361
+ flexShrink: 0,
6362
+ background: "transparent",
6363
+ border: "none",
6364
+ opacity: 0,
6365
+ transition: "opacity 400ms",
6366
+ marginLeft: "auto"
6367
+ }
6368
+ },
6369
+ paddingTop: "10px",
6370
+ ".filter__input": {
6371
+ paddingRight: "7px"
6331
6372
  }
6332
- }
6333
- }
6334
- };
6335
-
6336
- const controller = {
6337
- /* PREPEND HERE */
6338
- display: "flex",
6339
- flexDirection: "column",
6340
- alignItems: "stretch",
6341
- height: "100%",
6342
- gap: 3,
6343
- flexBasis: "50vh",
6344
- flexGrow: 1,
6345
- ".autoscrollContainer": {
6346
- flexGrow: 1,
6347
- flexShrink: 1,
6348
- overflow: "auto"
6349
- },
6350
- ".search_controls": {
6351
- flexShrink: 0
6352
- },
6353
- ".assistantHistory": {
6354
- flexGrow: 1,
6355
- overflow: "auto",
6356
- maxHeight: "77vh"
6357
- }
6358
- };
6359
-
6360
- const attachments = {
6361
- /* PREPEND HERE */
6362
- alignItems: "center",
6363
- display: "flex",
6364
- flexDirection: responsive$2({ 0: "column", 3: "row" }),
6365
- flexWrap: "wrap",
6366
- gap: spacing$1(3),
6367
- ".attachments__more_button": {
6368
- border: "1px solid",
6369
- borderColor: "palette.border.article",
6370
- borderRadius: "elementBox",
6371
- boxShadow: "sharp",
6372
- p: 2
6373
- },
6374
- ".file_box": {
6375
- alignItems: "center",
6376
- border: "1px solid",
6377
- borderColor: "palette.border.article",
6378
- borderRadius: "elementBox",
6379
- boxShadow: "sharp",
6380
- display: "flex",
6381
- gap: spacing$1(3),
6382
- width: responsive$2({
6383
- 0: "100%",
6384
- 3: "min(90vw, 200px)"
6385
- }),
6386
- p: 2
6387
- },
6388
- ".file_box__icon": {
6389
- flexShrink: 0
6390
- },
6391
- ".file_box__name": {
6392
- boxSizing: "border-box",
6393
- flexGrow: 1,
6394
- margin: "0px",
6395
- overflow: "hidden",
6396
- textOverflow: "ellipsis",
6397
- whiteSpace: "nowrap"
6398
- },
6399
- ".file_box__remove": {
6400
- flexShrink: 0,
6401
- p: 4
6402
- }
6403
- };
6404
-
6405
- const message = {
6406
- position: "relative",
6407
- display: "flex",
6408
- flexDirection: "column",
6409
- ".closeButton": {
6410
- borderRadius: "5px",
6411
- right: "0px",
6412
- top: "-2px",
6413
- zIndex: "15",
6414
- position: "absolute",
6415
- variant: "buttons.icon-outline-danger"
6416
- },
6417
- genericBox: {
6418
- margin: "10px",
6419
- display: "flex",
6420
- flexDirection: "column",
6421
- justifyContent: "space-between",
6422
- alignItems: "center",
6423
- padding: "12px"
6424
- },
6425
- fileName: {
6426
- bottom: "4px",
6427
- right: "4px",
6428
- fontSize: "12px",
6429
- color: "#333",
6430
- textOverflow: "ellipsis",
6431
- whiteSpace: "nowrap",
6432
- overflow: "hidden",
6433
- width: "inherit",
6434
- textAlign: "center",
6435
- px: "5px"
6436
- },
6437
- textBox: {
6438
- variant: "layout.common.components.aiMessage.genericBox",
6439
- width: "50px",
6440
- padding: "10px",
6441
- backgroundColor: "#fff",
6442
- border: "1px solid #ddd",
6443
- borderRadius: "4px",
6444
- position: "relative"
6445
- },
6446
- textSnippet: {
6447
- bottom: "4px",
6448
- right: "4px",
6449
- fontSize: "12px",
6450
- color: "#555"
6451
- }
6452
- };
6453
-
6454
- const assistant = {
6455
- floatingAssistant: {
6456
- "& div.modal__content[class]": {
6457
- p: 3,
6458
- width: "min(90vw, 500px)"
6459
6373
  },
6460
- ".modal__main": {
6461
- maxWidth: "unset",
6462
- overflow: "hidden"
6374
+ ".filled_filters": {
6375
+ " > div": {
6376
+ display: "flex",
6377
+ " > .filter_button:last-child": {
6378
+ borderRadius: "panel",
6379
+ height: "34px",
6380
+ width: "34px",
6381
+ flexShrink: 0,
6382
+ background: "transparent",
6383
+ border: "none",
6384
+ opacity: 1,
6385
+ marginLeft: "auto"
6386
+ }
6387
+ }
6463
6388
  },
6464
- "#floatingAssistant": {
6465
- minWidth: "500px"
6466
- }
6467
- }
6468
- };
6469
-
6470
- const chat = {
6471
- /* PREPEND HERE */
6472
- assistant,
6473
- form: form$1,
6474
- history,
6475
- controller,
6476
- attachments,
6477
- message
6478
- };
6479
-
6480
- const markdown = {
6481
- padding: "0 24px 32px 24px",
6482
- "h1, h2, h3, h4, h5, h6": {
6483
- margin: "32px 0px 20px 0px",
6484
- "& *": {
6485
- fontSize: "inherit",
6486
- fontWeight: "inherit",
6487
- fontFamily: "inherit"
6488
- }
6489
- },
6490
- blockquote: {
6491
- fontStyle: "italic"
6492
- },
6493
- table: {
6494
- variant: "layout.common.tables.secondary",
6495
- thead: {
6496
- zIndex: 0
6497
- }
6498
- },
6499
- h2: {
6500
- display: "block",
6501
- borderBottom: "2px solid hsl(195deg 10% 49% / 50%)",
6502
- paddingBottom: "16px"
6503
- },
6504
- h3: {
6505
- textDecoration: "underline"
6506
- },
6507
- h4: {
6508
- fontSize: "20px"
6509
- },
6510
- ul: {
6511
- listStyle: "unset",
6512
- listStyleType: "disc",
6513
- margin: "unset",
6514
- padding: "unset",
6515
- paddingLeft: "20px",
6516
- paddingBottom: "16px"
6517
- },
6518
- "ol + ul, ul + ul, ol ul, ul ul": {
6519
- paddingLeft: "72px"
6520
- },
6521
- "p, ul, ol, blockQuote, table": {
6522
- mt: "16px"
6523
- }
6524
- };
6525
-
6526
- const observations = {
6527
- bg: "white",
6528
- display: "flex",
6529
- flexDirection: "column",
6530
- gap: spacing$1(5),
6531
- background: "transparent",
6532
- borderRadius: "default",
6533
- ".currentObservations": {
6534
- display: "flex",
6535
- gap: spacing$1(5),
6536
- flexDirection: "column",
6537
- borderRadius: "default",
6538
- ".observation": {
6389
+ ".search_controls": {
6390
+ alignItems: "center",
6391
+ justifyContent: "center",
6392
+ display: "flex",
6393
+ gap: 0,
6394
+ mx: "auto",
6395
+ background: "palette.background.paper",
6539
6396
  border: "1px solid",
6540
- borderColor: "palette.border.article",
6541
- borderRadius: "default",
6542
- ".observation__header": {
6397
+ borderColor: "palette.border.section",
6398
+ borderRadius: "panel",
6399
+ boxShadow: "0px 2px 6px #0002",
6400
+ width: "100%",
6401
+ p: spacing(3),
6402
+ "&:focus-within": focusOutline,
6403
+ "& > *:focus": {
6404
+ outline: "none"
6405
+ },
6406
+ ".filter_button_box": {
6407
+ position: "relative"
6408
+ },
6409
+ ".applied_filters_label": {
6410
+ position: "absolute",
6411
+ bottom: "21px",
6412
+ left: "20px",
6413
+ minWidth: "10px",
6414
+ maxHeight: "10px",
6415
+ border: "2px solid white",
6416
+ borderRadius: "100%",
6417
+ display: "inline-flex",
6418
+ alignItems: "center",
6419
+ justifyContent: "center",
6420
+ backgroundColor: "palette.error.main"
6421
+ }
6422
+ },
6423
+ ".SearchButton": {
6424
+ borderRadius: "panel",
6425
+ height: "34px",
6426
+ width: "34px",
6427
+ flexShrink: 0,
6428
+ background: "transparent",
6429
+ border: "none",
6430
+ color: "palette.text.primary",
6431
+ ":disabled": {
6432
+ background: "transparent"
6433
+ }
6434
+ },
6435
+ ".FilterButton": {
6436
+ borderRadius: "panel",
6437
+ height: "34px",
6438
+ width: "34px",
6439
+ flexShrink: 0,
6440
+ background: "transparent",
6441
+ border: "none",
6442
+ color: "palette.text.primary",
6443
+ "&.open": {
6444
+ color: "palette.primary.main"
6445
+ }
6446
+ },
6447
+ ".references__box": {
6448
+ display: "flex",
6449
+ alignItems: "center",
6450
+ gap: spacing(5)
6451
+ },
6452
+ ".searchTextArea": {
6453
+ minHeight: "34px",
6454
+ height: "34px",
6455
+ resize: "none",
6456
+ py: spacing(2),
6457
+ background: "transparent",
6458
+ border: "none"
6459
+ },
6460
+ ".references_item": {
6461
+ maxWidth: "180px",
6462
+ whiteSpace: "nowrap",
6463
+ zIndex: 0,
6464
+ ".button__content": {
6465
+ overflow: "hidden",
6466
+ textOverflow: "ellipsis",
6467
+ maxWidth: "180px"
6468
+ }
6469
+ },
6470
+ "&.mode_none": {
6471
+ flexDirection: "column",
6472
+ display: "flex",
6473
+ alignItems: "center",
6474
+ justifyContent: "center",
6475
+ height: "100vh",
6476
+ gap: spacing(5),
6477
+ ".search_header_container": {
6478
+ fontSize: "50px",
6479
+ maxWidth: "50vw",
6480
+ textAlign: "left",
6543
6481
  display: "flex",
6544
- flexWrap: "wrap",
6545
- gap: spacing$1(3),
6546
- alignItems: "center",
6547
- borderBottom: "1px solid",
6548
- borderColor: "palette.border.article",
6549
- p: spacing$1(5),
6550
- backgroundColor: "palette.background.paper",
6551
- ".icon__wrapper": {
6552
- svg: {
6553
- color: "favorite"
6554
- }
6555
- },
6556
- img: {
6557
- width: "18px",
6558
- height: "18px"
6559
- },
6560
- ".observation__header__block": {
6561
- display: "flex",
6562
- flexWrap: "nowrap",
6563
- gap: spacing$1(3)
6482
+ flexDirection: "column",
6483
+ gap: spacing(5)
6484
+ },
6485
+ ".search_section_container": {
6486
+ mx: "auto",
6487
+ display: "flex",
6488
+ flexDirection: "column",
6489
+ gap: spacing(3),
6490
+ zIndex: 1,
6491
+ background: "palette.background.default",
6492
+ boxShadow: "0 10px 10px #f8f4f4",
6493
+ width: responsive$1({
6494
+ 0: "calc(100%)",
6495
+ 3: "calc(75vw + 50px)",
6496
+ 5: "calc(50vw + 50px)"
6497
+ })
6498
+ }
6499
+ },
6500
+ "&.mode_chat": {
6501
+ h1: {
6502
+ whiteSpace: "nowrap",
6503
+ overflow: "hidden",
6504
+ textOverflow: "ellipsis"
6505
+ },
6506
+ backgroundColor: "white",
6507
+ width: responsive$1({
6508
+ 0: "calc(100%)",
6509
+ 3: "calc(75vw + 2px)",
6510
+ 5: "min(950px, calc(60vw + 2px))"
6511
+ }),
6512
+ margin: ["auto", "32px auto"],
6513
+ border: "1px solid #ccc",
6514
+ ".search_section_container": {
6515
+ zIndex: 1,
6516
+ position: "fixed",
6517
+ bottom: "0",
6518
+ transform: "translateX(-1px)",
6519
+ borderBottom: "4px solid #f2f2f2",
6520
+ width: responsive$1({
6521
+ 0: "calc(100%)",
6522
+ 3: "calc(75vw + 2px)",
6523
+ 5: "min(950px, calc(60vw + 2px))"
6524
+ }),
6525
+ background: "white",
6526
+ textarea: { width: "calc(100%)" },
6527
+ "& > div": {
6528
+ padding: "4px 32px",
6529
+ borderLeft: "1px solid #ccc",
6530
+ borderRight: "1px solid #ccc",
6531
+ borderBottom: "1px solid #ccc",
6532
+ width: "calc(100%)",
6533
+ background: "white"
6534
+ }
6535
+ },
6536
+ ".search_header_container": {
6537
+ position: "fixed",
6538
+ zIndex: 1,
6539
+ top: "0",
6540
+ transform: "translateX(-1px)",
6541
+ borderTop: "4px solid #f2f2f2",
6542
+ padding: "0",
6543
+ width: responsive$1({
6544
+ 0: "calc(100%)",
6545
+ 3: "calc(75vw + 2px)",
6546
+ 5: "min(950px, calc(60vw + 2px))"
6547
+ }),
6548
+ h1: {
6549
+ padding: "32px",
6550
+ pt: "20px",
6551
+ pb: 0,
6552
+ borderLeft: "1px solid #ccc",
6553
+ borderRight: "1px solid #ccc",
6554
+ borderTop: "1px solid #ccc",
6555
+ width: "calc(100%)",
6556
+ background: "white"
6564
6557
  },
6565
- ".observation__label": {
6566
- fontWeight: "900"
6558
+ p: {
6559
+ background: "palette.background.paper",
6560
+ padding: "32px",
6561
+ pb: "20px",
6562
+ pt: 0,
6563
+ whiteSpace: "nowrap",
6564
+ overflow: "hidden",
6565
+ textOverflow: "ellipsis",
6566
+ width: "calc(100% - 2px)",
6567
+ ml: "1px"
6567
6568
  }
6568
6569
  },
6569
- "&.marked .observation__header": {
6570
- borderLeft: "4px solid",
6571
- borderLeftColor: "notifications.warning.backgroundColor",
6572
- borderColor: "notifications.warning.backgroundColor",
6573
- backgroundColor: "notifications.warning.backgroundColor",
6574
- borderRadius: "default"
6570
+ ".messages_box": {
6571
+ fontSize: "22px",
6572
+ minHeight: "82vh",
6573
+ paddingTop: "7%",
6574
+ marginBottom: "8%"
6575
6575
  },
6576
- ".observation__body": {
6577
- display: "flex",
6578
- gap: spacing$1(5),
6579
- p: spacing$1(5),
6580
- alignItems: "start",
6581
- ".observation__comment": {
6582
- width: "100%",
6583
- maxHeight: "calc(100vh - 130px)",
6584
- resize: "vertical",
6585
- '&[style*="height"]': {
6586
- maxHeight: "unset"
6587
- },
6588
- overflow: "auto",
6589
- pr: spacing$1(4)
6576
+ ".history__message": {
6577
+ borderRadius: "panel",
6578
+ margin: "15px",
6579
+ padding: "18px",
6580
+ border: "1px",
6581
+ //boxShadow: 'rgba(50, 50, 93, 0.25) 2px 2px 4px 1px',
6582
+ "&.user": {
6583
+ borderRadius: "chatMessage",
6584
+ borderTopRightRadius: "0px",
6585
+ backgroundColor: "rgb(108 166 203)",
6586
+ //rgb(117 163 192)', //rgb(92, 143, 174)',
6587
+ color: "white",
6588
+ boxShadow: "rgba(50, 50, 93, 0.15) 1px 1px 2px 1px",
6589
+ border: "1px solid rgb(113 145 193)"
6590
+ },
6591
+ "&.system": {
6592
+ borderRadius: "chatMessage",
6593
+ borderTopLeftRadius: "0px",
6594
+ backgroundColor: "#00bcff14",
6595
+ boxShadow: "rgba(50, 50, 93, 0.15) 1px 1px 2px 1px",
6596
+ border: "1px solid rgb(0 28 38 / 18%)"
6590
6597
  }
6598
+ },
6599
+ ".history": {
6600
+ animation: `${animations.fadeInFromBottom} 0.3s`,
6601
+ padding: "100px 32px 80px 32px",
6602
+ border: "none",
6603
+ height: "unset"
6591
6604
  }
6592
- }
6593
- },
6594
- ".checkboxes": {
6595
- alignItems: "center",
6596
- display: "flex",
6597
- flexWrap: "wrap",
6598
- gap: spacing$1(6),
6599
- ".checkbox": {
6600
- alignItems: "center",
6601
- display: "flex",
6602
- gap: spacing$1(3)
6603
- }
6604
- },
6605
- ".observation": {
6606
- display: "flex",
6607
- flexDirection: "column",
6608
- span: {
6609
- fontWeight: "bold"
6610
6605
  },
6611
- textarea: {
6612
- height: "140px"
6613
- }
6614
- },
6615
- ".alert": {
6616
- color: "palette.warning.main"
6617
- }
6618
- /* PREPEND HERE */
6619
- };
6620
-
6621
- const dataGrid = {
6622
- variant: "grids.form",
6623
- display: responsive$2({ 0: "flex", 2: "grid" }),
6624
- flexDirection: "column",
6625
- gap: spacing$1(6),
6626
- alignItems: "start",
6627
- gridAutoRows: "none",
6628
- gridTemplateColumns: responsive$2({
6629
- 0: "repeat(1, 1fr)",
6630
- 2: "repeat(3, 1fr)",
6631
- 4: "repeat(3, 1fr)",
6632
- 5: "repeat(5, 1fr)"
6633
- }),
6634
- "& label": {
6635
- display: "block",
6636
- ".elementValue": {
6637
- fontWeight: "normal",
6638
- ".errorContainer": {
6606
+ "&.mode_list": {
6607
+ p: {
6608
+ '&[name="semSerDescription"]': {
6609
+ padding: "0px 23vw",
6610
+ whiteSpace: "nowrap",
6611
+ overflow: "hidden",
6612
+ textOverflow: "ellipsis",
6613
+ width: "calc(100% - 2px)",
6614
+ marginLeft: "1px"
6615
+ }
6616
+ },
6617
+ display: "block",
6618
+ gap: spacing(5),
6619
+ px: responsive$1({
6620
+ 0: 5,
6621
+ 3: 0
6622
+ }),
6623
+ ".search_header_container": {
6624
+ marginTop: "7px",
6625
+ h1: {
6626
+ padding: "0 23vw",
6627
+ fontSize: "20px"
6628
+ }
6629
+ },
6630
+ ".filters__container": {
6631
+ padding: "0 25px",
6632
+ paddingTop: "10px"
6633
+ },
6634
+ ".search_section_container": {
6635
+ paddingTop: "47px",
6636
+ mx: "auto",
6637
+ display: "flex",
6638
+ flexDirection: "column",
6639
+ zIndex: 1,
6640
+ boxShadow: "0 10px 10px #f8f4f4",
6641
+ width: responsive$1({
6642
+ 0: "calc(100%)",
6643
+ 3: "calc(75vw + 50px)",
6644
+ 5: "calc(50vw + 50px)"
6645
+ }),
6646
+ background: "palette.background.default",
6647
+ position: "sticky",
6648
+ top: 0,
6649
+ py: spacing(5),
6650
+ gap: spacing(5)
6651
+ },
6652
+ ".list_results": {
6653
+ animation: `${animations.fadeInFromTop} 0.3s`,
6654
+ height: "100%",
6655
+ width: responsive$1({ 0: "100%", 3: "75vw", 5: "50vw" }),
6656
+ mx: "auto",
6657
+ pt: spacing(3),
6658
+ display: "flex",
6639
6659
  flexDirection: "column",
6640
- alignItems: "center",
6641
- div: {
6642
- position: "relative"
6643
- }
6644
- }
6645
- },
6646
- "&.identifier, &.calendar": {
6647
- gridColumn: responsive$2({ 0: "span 2", 5: "span 3", 6: "span 2" }),
6648
- div: {
6660
+ gap: spacing(6)
6661
+ },
6662
+ ".list_item": {
6663
+ borderRadius: "panel",
6664
+ padding: spacing(7),
6665
+ backgroundColor: "palette.background.paper",
6666
+ boxShadow: "0px 4px 6px #0002",
6667
+ border: "1px solid",
6668
+ borderColor: "palette.border.ghost"
6669
+ },
6670
+ ".references_container": {
6671
+ borderTop: "1px solid",
6672
+ borderTopColor: "palette.border.article",
6649
6673
  display: "flex",
6650
- gap: spacing$1(1),
6651
- alignItems: "center",
6652
- ".separator": {
6653
- alignSelf: "center"
6654
- },
6655
- input: {
6656
- minWidth: "60px"
6657
- },
6658
- ".body": {
6659
- width: "100%"
6660
- },
6661
- ".identifier__body": {
6662
- flexShrink: 0
6663
- }
6674
+ gap: spacing(6),
6675
+ pt: spacing(5)
6664
6676
  }
6665
6677
  },
6666
- "strong + div": {
6667
- wordBreak: "break-all"
6678
+ ".autogrow_textarea": {
6679
+ maxHeight: "20vh",
6680
+ width: "100%"
6681
+ },
6682
+ refsAccordion: {
6683
+ variant: "layout.common.components.accordion.panels",
6684
+ border: (theme) => `1px solid ${theme.palette.border.ghost}`,
6685
+ refButton: {
6686
+ variant: "buttons.paper"
6687
+ },
6688
+ "& .accordion__item__button": {
6689
+ userSelect: "unset",
6690
+ position: "sticky",
6691
+ top: 0
6692
+ }
6668
6693
  }
6669
6694
  }
6670
6695
  };
6671
- const entityAndProcessData = {
6696
+
6697
+ const ai = {
6698
+ connectors,
6699
+ execution,
6700
+ semanticSearch
6701
+ /* PREPEND HERE */
6702
+ };
6703
+
6704
+ const form$1 = {
6705
+ /* PREPEND HERE */
6706
+ alignItems: "center",
6707
+ justifyContent: "center",
6672
6708
  display: "flex",
6709
+ gap: 0,
6710
+ mx: "auto",
6711
+ background: "palette.background.paper",
6712
+ border: "1px solid",
6713
+ borderColor: "palette.border.section",
6714
+ borderRadius: "panel",
6715
+ boxShadow: "0px 2px 6px #0002",
6716
+ width: "100%",
6717
+ p: spacing(3),
6673
6718
  flexDirection: "column",
6674
- // p: spacing(7),
6675
- gap: 7,
6676
- ".collapsiblePanel__label": {
6719
+ position: "relative",
6720
+ ".chatButtons": {
6677
6721
  display: "flex",
6678
- alignItems: "anchor-center",
6679
- gap: 3,
6680
- h3: {
6681
- m: spacing$1(0),
6682
- fontSize: 18
6683
- }
6722
+ flexDirection: "row",
6723
+ alignitems: "end",
6724
+ justifyContent: "end",
6725
+ position: "absolute",
6726
+ bottom: "8px",
6727
+ right: "4px"
6684
6728
  },
6685
- ".collapsiblePanel__content": {
6686
- borderRadius: "default",
6687
- '&:not([aria-hidden="true"])': {
6688
- border: "1px solid",
6689
- borderColor: "palette.border.article"
6690
- },
6691
- "& > div > *:not(.noPadding, button, .uploadedFiles__container)": {
6692
- p: spacing$1(5)
6693
- }
6729
+ "&:focus-within": focusOutline,
6730
+ "& > *:focus[class]": {
6731
+ outlineWidth: 0
6694
6732
  },
6695
- ".dataGrid": dataGrid,
6696
- ".dropzone": {
6733
+ ".filter_button_box": {
6734
+ position: "relative"
6735
+ },
6736
+ ".applied_filters_label": {
6737
+ position: "absolute",
6738
+ bottom: "21px",
6739
+ left: "20px",
6740
+ minWidth: "10px",
6741
+ maxHeight: "10px",
6742
+ border: "2px solid white",
6743
+ borderRadius: "100%",
6744
+ display: "inline-flex",
6745
+ alignItems: "center",
6746
+ justifyContent: "center",
6747
+ backgroundColor: "palette.error.main"
6748
+ },
6749
+ ".searchTextArea": {
6750
+ minHeight: "16px",
6751
+ height: "16px",
6752
+ width: "100%",
6753
+ maxHeight: "30vh",
6754
+ resize: "none",
6755
+ py: 0,
6756
+ background: "transparent",
6697
6757
  border: "none"
6698
6758
  },
6699
- ".uploadedFiles__container[class]": {
6700
- display: "flex",
6701
- gap: 3,
6702
- p: 0,
6703
- flexDirection: "column",
6704
- ".download_Button": {
6705
- width: "fit-content"
6706
- }
6759
+ ".ChatBarButton": {
6760
+ borderRadius: "panel",
6761
+ height: "34px",
6762
+ width: "34px",
6763
+ flexShrink: 0,
6764
+ background: "transparent",
6765
+ border: "none",
6766
+ color: "palette.text.primary"
6767
+ },
6768
+ ".isRecording": {
6769
+ borderRadius: "panel",
6770
+ height: "34px",
6771
+ width: "34px",
6772
+ flexShrink: 0,
6773
+ background: "transparent",
6774
+ border: "none",
6775
+ color: "red"
6707
6776
  }
6708
6777
  };
6709
- const entityData = {
6710
- ...entityAndProcessData,
6711
- "& h2": {
6712
- "&.visibilitiesTitle": {
6713
- display: "flex",
6714
- justifyContent: "start",
6715
- gap: spacing$1(3)
6716
- }
6717
- },
6718
- ".imageSelector": {
6719
- button: {
6720
- border: "none",
6721
- cursor: "pointer",
6722
- p: spacing$1(0),
6723
- width: "75px",
6724
- img: {
6725
- width: "100%"
6726
- }
6727
- }
6728
- },
6729
- ".EntityDataDocuments, .ProcessDataDocuments": {
6730
- ".entityData__actions": {
6731
- p: spacing$1(3)
6778
+
6779
+ const history = {
6780
+ /* PREPEND HERE */
6781
+ display: "flex",
6782
+ flexDirection: "column",
6783
+ width: "100%",
6784
+ gap: 4,
6785
+ p: 3,
6786
+ ".history_message__content": {
6787
+ display: "flex",
6788
+ flexDirection: "column",
6789
+ gap: "16px",
6790
+ div: {
6791
+ padding: 0
6792
+ },
6793
+ h3: {
6794
+ fontSize: "20px"
6732
6795
  }
6733
6796
  },
6734
- ".categories__tree__label": {
6735
- display: "flex",
6736
- alignItems: "center",
6737
- gap: spacing$1(3),
6738
- "& > div": {
6797
+ ".history_message": {
6798
+ px: 4,
6799
+ py: 5,
6800
+ pt: 0,
6801
+ maxWidth: "calc(100% - 50px)",
6802
+ width: "fit-content",
6803
+ wordWrap: "break-word",
6804
+ whiteSpace: "pre-wrap",
6805
+ borderRadius: "chatMessage",
6806
+ minWidth: "50px",
6807
+ "&.last": {
6808
+ mb: 4
6809
+ },
6810
+ "&.user": {
6811
+ "&.first": {
6812
+ borderTopRightRadius: "0px"
6813
+ },
6814
+ "&.first:has(+ .first))": {
6815
+ mb: 4
6816
+ },
6817
+ backgroundColor: "rgb(108 166 203)",
6818
+ // TODO: Set the correct color, if necessary, define it in palette
6819
+ color: "white",
6820
+ // TODO: Set the correct color, if necessary, define it in palette
6821
+ ".fileCard__content": {
6822
+ color: "palette.text.primary"
6823
+ },
6824
+ border: "1px solid rgb(113 145 193)",
6825
+ // TODO: Set the correct color, if necessary, define it in palette
6826
+ alignSelf: "end",
6739
6827
  display: "flex",
6740
- py: spacing$1(2)
6828
+ flexDirection: "column"
6829
+ },
6830
+ "&.system": {
6831
+ "&.first": {
6832
+ borderTopLeftRadius: "0px"
6833
+ },
6834
+ "&.first:has(+ .first))": {
6835
+ mb: 4
6836
+ },
6837
+ backgroundColor: "#00bcff14",
6838
+ // TODO: Set the correct color, if necessary, define it in palette
6839
+ border: "1px solid rgb(0 28 38 / 18%)"
6840
+ // TODO: Set the correct color, if necessary, define it in palette
6841
+ },
6842
+ "&.warning": {
6843
+ borderRadius: "chatMessage",
6844
+ borderTopLeftRadius: "0px",
6845
+ alignSelf: "start",
6846
+ backgroundColor: "#ffff0024",
6847
+ // TODO: Set the correct color, if necessary, define it in palette
6848
+ width: "100%",
6849
+ border: "1px solid rgb(0 28 38 / 18%)"
6850
+ // TODO: Set the correct color, if necessary, define it in palette
6851
+ },
6852
+ "&.error": {
6853
+ borderRadius: "chatMessage",
6854
+ borderTopLeftRadius: "0px",
6855
+ alignSelf: "start",
6856
+ backgroundColor: "#fd84212b",
6857
+ // TODO: Set the correct color, if necessary, define it in palette
6858
+ width: "100%",
6859
+ border: "1px solid rgb(0 28 38 / 18%)"
6860
+ // TODO: Set the correct color, if necessary, define it in palette
6861
+ },
6862
+ "&.information": {
6863
+ borderRadius: "chatMessage",
6864
+ borderTopLeftRadius: "0px",
6865
+ alignSelf: "start",
6866
+ backgroundColor: "#00bcff14",
6867
+ //'#2222cc2b',
6868
+ width: "100%",
6869
+ border: "1px solid rgb(0 28 38 / 18%)"
6870
+ // TODO: Set the correct color, if necessary, define it in palette
6741
6871
  }
6742
6872
  },
6743
- ".entity__visibilities__container": {
6873
+ ".history_message__attachments": {
6744
6874
  display: "flex",
6745
- flexDirection: "column",
6746
- gap: spacing$1(4),
6747
- ".entity__visibilities__grid": {
6748
- display: "grid",
6749
- gridTemplateColumns: "repeat(2, 1fr)",
6750
- gap: "1rem",
6751
- ".switch__card": {
6752
- border: "1px solid",
6753
- borderColor: "palette.border.field",
6754
- borderRadius: "default"
6875
+ justifyContent: "flex-end",
6876
+ ".labelBox": {
6877
+ width: "max-content",
6878
+ background: "#fafafa",
6879
+ color: "palette.text.primary",
6880
+ fontSize: "14px",
6881
+ ".labelAndIcon ": {
6882
+ fontSize: "14px"
6755
6883
  }
6756
6884
  }
6757
6885
  }
6758
- /* PREPEND HERE */
6759
6886
  };
6760
6887
 
6761
- const processData = {
6762
- ...entityAndProcessData,
6763
- ".ProcessDataDocuments": {
6764
- ".processData__actions": {
6765
- p: spacing$1(3)
6766
- }
6767
- }
6888
+ const controller = {
6768
6889
  /* PREPEND HERE */
6769
- };
6770
-
6771
- const documents = {
6772
6890
  display: "flex",
6773
6891
  flexDirection: "column",
6774
- gap: spacing$1(7),
6775
- ".collapsiblePanel__label": {
6776
- mb: spacing$1(3),
6777
- h2: {
6778
- m: spacing$1(0)
6779
- }
6780
- },
6781
- ".collapsiblePanel__content": {
6782
- '&:not([aria-hidden="true"])': {
6783
- border: "1px solid",
6784
- borderColor: "palette.border.article"
6785
- },
6786
- "& > div > *:not(.noPadding)": {
6787
- p: spacing$1(7)
6788
- }
6892
+ alignItems: "stretch",
6893
+ height: "100%",
6894
+ gap: 3,
6895
+ flexBasis: "50vh",
6896
+ flexGrow: 1,
6897
+ ".autoscrollContainer": {
6898
+ flexGrow: 1,
6899
+ flexShrink: 1,
6900
+ overflow: "auto"
6789
6901
  },
6790
- ".dropzone": {
6791
- borderTop: "none",
6792
- borderLeft: "none",
6793
- borderRight: "none"
6902
+ ".search_controls": {
6903
+ flexShrink: 0
6794
6904
  },
6795
- ".entityData__actions, .processData__actions": {
6796
- p: spacing$1(3)
6905
+ ".assistantHistory": {
6906
+ flexGrow: 1,
6907
+ overflow: "auto",
6908
+ maxHeight: "77vh"
6797
6909
  }
6798
- /* PREPEND HERE */
6799
6910
  };
6800
6911
 
6801
- const taskMonitor = {
6802
- table: {
6803
- variant: "layout.common.tables.secondary",
6912
+ const attachments = {
6913
+ /* PREPEND HERE */
6914
+ alignItems: "center",
6915
+ display: "flex",
6916
+ flexDirection: responsive$2({ 0: "column", 3: "row" }),
6917
+ flexWrap: "wrap",
6918
+ gap: spacing$1(3),
6919
+ ".attachments__more_button": {
6804
6920
  border: "1px solid",
6805
6921
  borderColor: "palette.border.article",
6806
- borderRadius: "default",
6807
- overflow: "hidden"
6922
+ borderRadius: "elementBox",
6923
+ boxShadow: "sharp",
6924
+ p: 2
6925
+ },
6926
+ ".file_box": {
6927
+ alignItems: "center",
6928
+ border: "1px solid",
6929
+ borderColor: "palette.border.article",
6930
+ borderRadius: "elementBox",
6931
+ boxShadow: "sharp",
6932
+ display: "flex",
6933
+ gap: spacing$1(3),
6934
+ width: responsive$2({
6935
+ 0: "100%",
6936
+ 3: "min(90vw, 200px)"
6937
+ }),
6938
+ p: 2
6808
6939
  },
6809
- ".taskMonitor__warning": {
6810
- backgroundColor: "palette.warning.light",
6811
- color: "palette.warning.contrastText"
6940
+ ".file_box__icon": {
6941
+ flexShrink: 0
6812
6942
  },
6813
- ".taskMonitor__overdue": {
6814
- backgroundColor: "palette.error.light",
6815
- color: "palette.error.contrastText"
6943
+ ".file_box__name": {
6944
+ boxSizing: "border-box",
6945
+ flexGrow: 1,
6946
+ margin: "0px",
6947
+ overflow: "hidden",
6948
+ textOverflow: "ellipsis",
6949
+ whiteSpace: "nowrap"
6816
6950
  },
6817
- "& > div": {
6818
- maxHeight: "500px",
6819
- "& > div": {
6820
- height: "100%",
6821
- overflowX: "auto",
6822
- "&.noFixedWidth": {
6823
- overflowX: "auto"
6824
- }
6825
- }
6951
+ ".file_box__remove": {
6952
+ flexShrink: 0,
6953
+ p: 4
6826
6954
  }
6827
- /* PREPEND HERE */
6828
6955
  };
6829
6956
 
6830
- const tab = {
6831
- list: {
6832
- ".tabs__list": {
6833
- borderRadius: "7px",
6834
- display: "flex",
6835
- flexDirection: "column"
6836
- },
6837
- ".tabs__item__wrapper": {
6838
- display: "flex",
6839
- alignItems: "center",
6840
- background: "palette.background.paper",
6841
- padding: "4px 10px",
6842
- border: "none",
6843
- borderBottom: "1px solid #ccc",
6844
- boxShadow: "sharp",
6845
- cursor: "pointer",
6846
- ".tabs__item__button": {
6847
- width: "100%",
6848
- p: 3,
6849
- background: "transparent",
6850
- justifyContent: "start",
6851
- color: "palette.text.primary",
6852
- ".button__content": {
6853
- display: "flex",
6854
- alignItems: "center",
6855
- gap: spacing$1(1),
6856
- textAlign: "start"
6857
- }
6858
- },
6859
- "&:hover": {
6860
- background: "palette.gray.900"
6861
- },
6862
- // First item: apply top border radii
6863
- "&:first-of-type": {
6864
- borderTopLeftRadius: "default",
6865
- borderTopRightRadius: "default"
6866
- },
6867
- // Last item: apply bottom border radii
6868
- "&:last-of-type": {
6869
- borderBottomLeftRadius: "default",
6870
- borderBottomRightRadius: "default"
6871
- }
6872
- },
6873
- ".warning-icon[class]": {
6874
- svg: {
6875
- // color: '#ffa600',
6876
- color: "favorite",
6877
- width: "18px",
6878
- height: "18px"
6879
- }
6880
- }
6957
+ const message = {
6958
+ position: "relative",
6959
+ display: "flex",
6960
+ flexDirection: "column",
6961
+ ".closeButton": {
6962
+ borderRadius: "5px",
6963
+ right: "0px",
6964
+ top: "-2px",
6965
+ zIndex: "15",
6966
+ position: "absolute",
6967
+ variant: "buttons.icon-outline-danger"
6881
6968
  },
6882
- content: {
6969
+ genericBox: {
6970
+ margin: "10px",
6883
6971
  display: "flex",
6884
6972
  flexDirection: "column",
6885
- gap: "15px",
6886
- ".tabs__content": {
6887
- ".accordion__item": {
6888
- boxShadow: "default"
6889
- }
6890
- },
6891
- ".accordion__item__button[class]": {
6892
- width: "100%",
6893
- p: "10px 15px",
6894
- borderRadius: "default",
6895
- userSelect: "unset",
6896
- ".button__content": {
6897
- display: "flex",
6898
- flexDirection: "row",
6899
- justifyContent: "space-between",
6900
- width: "100%",
6901
- alignItems: "center"
6902
- }
6903
- },
6904
- ".accordion__item__content": {
6905
- borderRadius: "default",
6906
- background: "palette.background.paper",
6907
- '&:not(:has([data-variant="layout.execution.form"])) > div': {
6908
- p: spacing$1(7)
6909
- }
6910
- },
6911
- ".accordion__item__button__label": {
6912
- color: "palette.primary.contrastText"
6913
- },
6914
- ".accordion__item__button__rightGroup": {
6915
- display: "flex"
6973
+ justifyContent: "space-between",
6974
+ alignItems: "center",
6975
+ padding: "12px"
6976
+ },
6977
+ fileName: {
6978
+ bottom: "4px",
6979
+ right: "4px",
6980
+ fontSize: "12px",
6981
+ color: "#333",
6982
+ textOverflow: "ellipsis",
6983
+ whiteSpace: "nowrap",
6984
+ overflow: "hidden",
6985
+ width: "inherit",
6986
+ textAlign: "center",
6987
+ px: "5px"
6988
+ },
6989
+ textBox: {
6990
+ variant: "layout.common.components.aiMessage.genericBox",
6991
+ width: "50px",
6992
+ padding: "10px",
6993
+ backgroundColor: "#fff",
6994
+ border: "1px solid #ddd",
6995
+ borderRadius: "4px",
6996
+ position: "relative"
6997
+ },
6998
+ textSnippet: {
6999
+ bottom: "4px",
7000
+ right: "4px",
7001
+ fontSize: "12px",
7002
+ color: "#555"
7003
+ }
7004
+ };
7005
+
7006
+ const assistant = {
7007
+ floatingAssistant: {
7008
+ "& div.modal__content[class]": {
7009
+ p: 3,
7010
+ width: "min(90vw, 500px)"
6916
7011
  },
6917
- ".tabs__Item": {
6918
- height: "100%",
6919
- display: "flex",
6920
- gap: "15px",
6921
- flexDirection: "column"
7012
+ ".modal__main": {
7013
+ maxWidth: "unset",
7014
+ overflow: "hidden"
6922
7015
  },
6923
- ".collapsiblePanel__container": {
6924
- background: "palette.background.paper",
6925
- p: spacing$1(0),
6926
- ".collapsiblePanel__label__button": {
6927
- display: "flex"
6928
- }
7016
+ "#floatingAssistant": {
7017
+ minWidth: "500px"
6929
7018
  }
6930
7019
  }
7020
+ };
7021
+
7022
+ const chat = {
6931
7023
  /* PREPEND HERE */
7024
+ assistant,
7025
+ form: form$1,
7026
+ history,
7027
+ controller,
7028
+ attachments,
7029
+ message
6932
7030
  };
6933
7031
 
6934
- const associations = {
6935
- display: "flex",
6936
- flexDirection: "column",
6937
- gap: 4,
6938
- ".associations__table_container": {
6939
- height: "400px",
6940
- overflowY: "auto",
6941
- overflowX: "hidden"
7032
+ const markdown = {
7033
+ padding: "0 24px 32px 24px",
7034
+ "h1, h2, h3, h4, h5, h6": {
7035
+ margin: "32px 0px 20px 0px",
7036
+ "& *": {
7037
+ fontSize: "inherit",
7038
+ fontWeight: "inherit",
7039
+ fontFamily: "inherit"
7040
+ }
7041
+ },
7042
+ blockquote: {
7043
+ fontStyle: "italic"
6942
7044
  },
6943
7045
  table: {
6944
7046
  variant: "layout.common.tables.secondary",
6945
- border: "1px solid",
6946
- borderColor: "palette.border.article",
6947
- borderRadius: "default"
7047
+ thead: {
7048
+ zIndex: 0
7049
+ }
6948
7050
  },
6949
- ".associations__buttons": {
6950
- display: "flex",
6951
- flexDirection: "row",
6952
- gap: 2,
6953
- justifyContent: "flex-end"
7051
+ h2: {
7052
+ display: "block",
7053
+ borderBottom: "2px solid hsl(195deg 10% 49% / 50%)",
7054
+ paddingBottom: "16px"
6954
7055
  },
6955
- ".errorRequired": {
6956
- color: "palette.error.main"
7056
+ h3: {
7057
+ textDecoration: "underline"
6957
7058
  },
6958
- ".association__errorRequired": {
6959
- input: {
6960
- color: "palette.error.main",
6961
- borderLeft: "3px solid !important",
6962
- borderLeftColor: "palette.error.main"
6963
- }
7059
+ h4: {
7060
+ fontSize: "20px"
6964
7061
  },
6965
- ".associationSpinner": {
6966
- position: "absolute",
6967
- width: "20px",
6968
- height: "20px",
6969
- right: "55px",
6970
- top: "15px"
7062
+ ul: {
7063
+ listStyle: "unset",
7064
+ listStyleType: "disc",
7065
+ margin: "unset",
7066
+ padding: "unset",
7067
+ paddingLeft: "20px",
7068
+ paddingBottom: "16px"
6971
7069
  },
6972
- ".association__cell_content": {
6973
- position: "relative"
7070
+ "ol + ul, ul + ul, ol ul, ul ul": {
7071
+ paddingLeft: "72px"
6974
7072
  },
6975
- ".associationReq__after": { position: "absolute", left: "2px", top: "-3px" },
6976
- ".associationReq__before": {
6977
- position: "absolute",
6978
- right: "2px",
6979
- top: "-3px"
7073
+ "p, ul, ol, blockQuote, table": {
7074
+ mt: "16px"
6980
7075
  }
6981
- /* PREPEND HERE */
6982
- };
6983
-
6984
- const tabs = {
6985
- observations,
6986
- entityData,
6987
- processData,
6988
- documents,
6989
- taskMonitor,
6990
- associations,
6991
- ...tab
6992
- /* PREPEND HERE */
6993
7076
  };
6994
7077
 
6995
7078
  const common = (theme) => {
@@ -6998,7 +7081,6 @@ const common = (theme) => {
6998
7081
  forms,
6999
7082
  modals,
7000
7083
  tables: tables(theme),
7001
- tabs,
7002
7084
  components,
7003
7085
  trees,
7004
7086
  tooltips,
@@ -8822,7 +8904,7 @@ async function getRemarkable(extensions) {
8822
8904
 
8823
8905
  const parseMarkdown = async (options) => {
8824
8906
  const markdownLibrary = await getRemarkable(options.extensions);
8825
- const css = (await import('./styles-avriBVzL.js')).markdownParserStyles ?? new ErrorImporting();
8907
+ const css = (await import('./styles-JuqAJl1O.js')).markdownParserStyles ?? new ErrorImporting();
8826
8908
  if (css instanceof ErrorImporting)
8827
8909
  throw new Error("Could not import css, cannot continue");
8828
8910
  const html = options.htmlTemplate ?? (await import('./html-B-K0BIiw.js')).markdownHtml ?? new ErrorImporting();
@@ -9334,4 +9416,4 @@ ${pageBreakTag}`;
9334
9416
  }
9335
9417
 
9336
9418
  export { ApiaThemeProvider as A, MarkdownTableOfContents as B, Form as F, MaterialInput as M, Table as T, getColorStates as a, getColorsAndStatesByDefinition as b, getColorsAndStatesByPath as c, getColorsByDefinition as d, getColorsByPath as e, getOneColorState as f, getColorState as g, applyStatesGetColor as h, makeStyledComponent as i, injectStyles as j, getSpacingLayouts as k, spacing as l, markdownExtensions as m, smallButton as n, focusOutline as o, parsePalette as p, getVariant as q, responsive$1 as r, spacingLayouts as s, MarkdownBlock as t, useMainTheme as u, MarkdownBuilder as v, parseMarkdown as w, MarkdownList as x, MarkdownParagraph as y, MarkdownTable as z };
9337
- //# sourceMappingURL=index-DpVqNvc_.js.map
9419
+ //# sourceMappingURL=index-BOvGFjjE.js.map