@apia/theme 4.0.9 → 4.0.13

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,13 @@
1
1
  import cloneDeep from 'lodash-es/cloneDeep';
2
2
  import tinycolor from 'tinycolor2';
3
3
  import merge from 'lodash-es/merge';
4
+ import { jsxs, jsx, Fragment } from 'theme-ui/jsx-runtime';
5
+ import { Box, ThemeUIProvider, useThemeUI, ThemeProvider } from 'theme-ui';
4
6
  import '@theme-ui/match-media';
5
- import { jsx, Fragment } from 'theme-ui/jsx-runtime';
6
- import { ThemeUIProvider, useThemeUI, Box, ThemeProvider } from 'theme-ui';
7
7
  import { useState, useRef, useMemo, Suspense } from 'react';
8
8
  import { useMount, setValueByPath, EventEmitter } from '@apia/util';
9
9
  import { spacing as spacing$1, responsive as responsive$2 } from '@apia/theme';
10
+ import { keyframes } from '@emotion/react';
10
11
 
11
12
  function defaultLighten(color, ratio) {
12
13
  return tinycolor(color).lighten(ratio ?? 20).toRgbString();
@@ -898,15 +899,24 @@ function getThemeColorsObject(theme) {
898
899
  borderColor: theme.palette.background.paper,
899
900
  hover: {
900
901
  color: theme.palette.primary.main,
901
- backgroundColor: theme.palette.background.paper
902
+ backgroundColor: theme.palette.darkenColor(
903
+ theme.palette.background.paper,
904
+ 10
905
+ )
902
906
  },
903
907
  active: {
904
908
  color: theme.palette.primary.main,
905
- backgroundColor: theme.palette.background.paper
909
+ backgroundColor: theme.palette.darkenColor(
910
+ theme.palette.background.paper,
911
+ 15
912
+ )
906
913
  },
907
914
  focus: {
908
915
  color: theme.palette.primary.main,
909
- backgroundColor: theme.palette.background.paper
916
+ backgroundColor: theme.palette.darkenColor(
917
+ theme.palette.background.paper,
918
+ 10
919
+ )
910
920
  }
911
921
  },
912
922
  imagePreview: {
@@ -1224,6 +1234,28 @@ function getThemeColorsObject(theme) {
1224
1234
  return colors;
1225
1235
  }
1226
1236
 
1237
+ function getVariant(variant) {
1238
+ return { variant, "data-variant": variant };
1239
+ }
1240
+
1241
+ const MaterialInput = ({ title, label, boxProperties, ...props }) => /* @__PURE__ */ jsxs(
1242
+ Box,
1243
+ {
1244
+ ...getVariant("layout.common.forms.materialInput"),
1245
+ ...boxProperties,
1246
+ className: `${props.value ? "filled" : ""} ${boxProperties?.className || ""}`,
1247
+ children: [
1248
+ /* @__PURE__ */ jsxs("span", { children: [
1249
+ label,
1250
+ ":"
1251
+ ] }),
1252
+ /* @__PURE__ */ jsx("input", { ...props, "aria-label": label, title: label })
1253
+ ]
1254
+ }
1255
+ );
1256
+
1257
+ const Form = (props) => /* @__PURE__ */ jsx(Box, { as: "form", ...props });
1258
+
1227
1259
  const alerts = {
1228
1260
  primary: {
1229
1261
  border: "1px solid",
@@ -1234,6 +1266,7 @@ const alerts = {
1234
1266
  fontWeight: "normal",
1235
1267
  maxHeight: "60vh",
1236
1268
  overflow: "auto",
1269
+ overflowX: "hidden",
1237
1270
  p: 0,
1238
1271
  "&:focus": {
1239
1272
  outline: "none"
@@ -1556,6 +1589,10 @@ const buttons = {
1556
1589
  textTransform: "inherit",
1557
1590
  ...smallButton
1558
1591
  },
1592
+ transparentIcon: {
1593
+ ...getColorsAndStatesByPath("buttons.transparentIcon"),
1594
+ cursor: "pointer"
1595
+ },
1559
1596
  "outline-danger": {
1560
1597
  variant: "buttons.outline",
1561
1598
  "&:focus, &:focus-visible": {},
@@ -1638,7 +1675,6 @@ const buttons = {
1638
1675
  ...smallButton
1639
1676
  }
1640
1677
  };
1641
- var buttons$1 = buttons;
1642
1678
 
1643
1679
  const text = {
1644
1680
  default: {
@@ -1658,7 +1694,6 @@ const text = {
1658
1694
  fontWeight: "heading"
1659
1695
  }
1660
1696
  };
1661
- var text$1 = text;
1662
1697
 
1663
1698
  const transitions = {
1664
1699
  "@keyframes growHorizontal": {
@@ -1796,8 +1831,15 @@ const menu = {
1796
1831
  position: "relative",
1797
1832
  padding: "0.375rem 1.5rem",
1798
1833
  paddingLeft: "2.2rem",
1799
- "&.withIcon": {
1800
- padding: "0px"
1834
+ ".withIcon": {
1835
+ padding: "0px",
1836
+ display: "flex",
1837
+ gap: "4px",
1838
+ justifyContent: "left",
1839
+ alignItems: "center",
1840
+ ".icon": {
1841
+ flexShrink: 0
1842
+ }
1801
1843
  }
1802
1844
  },
1803
1845
  ".szh-menu__item--hover": (theme) => ({
@@ -1864,10 +1906,9 @@ const menu = {
1864
1906
  color: theme.palette.text.primary
1865
1907
  })
1866
1908
  };
1867
- var menu$1 = menu;
1868
1909
 
1869
1910
  const root = {
1870
- ...menu$1,
1911
+ ...menu,
1871
1912
  height: "100%",
1872
1913
  "*": {
1873
1914
  fontFamily: "body",
@@ -1878,7 +1919,24 @@ const root = {
1878
1919
  "&:focus": focusOutline
1879
1920
  },
1880
1921
  body: {
1881
- minHeight: "100vh"
1922
+ // minHeight: '100vh',
1923
+ },
1924
+ //cambia el estilo del scroll
1925
+ "div::-webkit-scrollbar": {
1926
+ width: "8px",
1927
+ height: "8px!important"
1928
+ },
1929
+ "div::-webkit-scrollbar-track": {
1930
+ background: "#f1f1f1",
1931
+ borderRadius: "7px"
1932
+ },
1933
+ "div::-webkit-scrollbar-thumb": {
1934
+ background: "#888",
1935
+ borderRadius: "7px"
1936
+ },
1937
+ "::-webkit-scrollbar:hover, * ::-webkit-scrollbar:hover": {
1938
+ width: "12px",
1939
+ height: "12px!important"
1882
1940
  },
1883
1941
  h1: {
1884
1942
  fontSize: responsive$1({ 0: 26, 3: 32 })
@@ -2027,7 +2085,7 @@ const baseTheme = () => {
2027
2085
  "1260px",
2028
2086
  "1580px"
2029
2087
  ],
2030
- buttons: buttons$1,
2088
+ buttons,
2031
2089
  colors: {},
2032
2090
  fonts: {
2033
2091
  body: '"InterVariable", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", sans-serif, Roboto',
@@ -2056,21 +2114,27 @@ const baseTheme = () => {
2056
2114
  radii: {
2057
2115
  alerts: 0,
2058
2116
  buttons: 0,
2059
- default: 0,
2117
+ default: "0px",
2060
2118
  panel: "7px",
2061
2119
  modals: "7px",
2062
- tooltips: "7px"
2120
+ tooltips: "7px",
2121
+ chatMessage: "7px",
2122
+ elementBox: "4px"
2063
2123
  },
2064
2124
  shadows: {
2065
- dataGridHeader: "2px 2px 4px 0px #0008",
2125
+ default: "rgba(50, 50, 93, 0.25) 0px 2px 5px -1px, rgba(0, 0, 0, 0.3) 0px 1px 3px -1px;",
2126
+ dataGridHeader: "rgba(0, 0, 0, 0.173) 0px 1px 7px 0px",
2066
2127
  modals: "rgba(0, 0, 0, 0.16) 0px 1px 4px;",
2067
2128
  tabs: "",
2068
2129
  panel: "rgba(50, 50, 105, 0.15) 0px 2px 5px 0px, rgba(0, 0, 0, 0.05) 0px 1px 1px 0px",
2130
+ table: "rgba(50, 50, 93, 0.25) 0px 6px 12px -2px, rgba(0, 0, 0, 0.3) 0px 3px 7px -3px;",
2069
2131
  tableFilters: "1px 2px 3px rgba(0,0,0,0.2)",
2070
2132
  toolbar: "3px 3px 3px rgba(0,0,0,0.1)",
2071
2133
  desktop: {
2072
2134
  windowElement: "rgba(0, 0, 0, 0.25) 0px 14px 28px, rgba(0, 0, 0, 0.22) 0px 10px 10px"
2073
- }
2135
+ },
2136
+ sharp: "0px 1px 1px #c7c7c7",
2137
+ neum: "rgb(204, 219, 232) 0px 0px 5px inset, rgba(255, 255, 255, 0.5) 0px 0px 3px inset;"
2074
2138
  },
2075
2139
  space: [0, 2, 4, 8, 12, 16, 24, 32, 40, 48, 64, 80, 96, 112, 128],
2076
2140
  sizes: {
@@ -2088,7 +2152,7 @@ const baseTheme = () => {
2088
2152
  iconLg: "32px",
2089
2153
  iconXl: "48px"
2090
2154
  },
2091
- text: text$1,
2155
+ text,
2092
2156
  zIndices: {
2093
2157
  stickyElements: 600,
2094
2158
  menu: 1e3,
@@ -2126,7 +2190,6 @@ const customCheckbox = {
2126
2190
  })
2127
2191
  /* PREPEND HERE */
2128
2192
  };
2129
- var customCheckbox$1 = customCheckbox;
2130
2193
 
2131
2194
  const checkbox = {
2132
2195
  borderRadius: "default",
@@ -2181,7 +2244,6 @@ const checkbox = {
2181
2244
  }
2182
2245
  }
2183
2246
  };
2184
- var checkbox$1 = checkbox;
2185
2247
 
2186
2248
  const dateInput = {
2187
2249
  display: "flex",
@@ -2236,7 +2298,6 @@ const dateInput = {
2236
2298
  }),
2237
2299
  backgroundColor: void 0
2238
2300
  };
2239
- var dateInput$1 = dateInput;
2240
2301
 
2241
2302
  const iconInput = {
2242
2303
  display: "flex",
@@ -2248,6 +2309,15 @@ const iconInput = {
2248
2309
  ...getColorsByPath("form.fields")
2249
2310
  }
2250
2311
  },
2312
+ "&.disabled, &.disabled:hover": {
2313
+ ".iconButton": {
2314
+ backgroundColor: "form.fields.disabled.backgroundColor",
2315
+ color: "palette.text.primary",
2316
+ border: "1px solid",
2317
+ borderColor: "palette.border.field",
2318
+ cursor: "not-allowed"
2319
+ }
2320
+ },
2251
2321
  input: {
2252
2322
  height: "50px",
2253
2323
  width: "100%"
@@ -2256,10 +2326,10 @@ const iconInput = {
2256
2326
  display: "flex",
2257
2327
  width: "45px",
2258
2328
  flexShrink: 0,
2259
- height: "50px"
2329
+ height: "50px",
2330
+ border: "none"
2260
2331
  }
2261
2332
  };
2262
- var iconInput$1 = iconInput;
2263
2333
 
2264
2334
  const input = {
2265
2335
  variant: "text.default",
@@ -2306,7 +2376,6 @@ const input = {
2306
2376
  }
2307
2377
  }
2308
2378
  };
2309
- var input$1 = input;
2310
2379
 
2311
2380
  const label = {
2312
2381
  variant: "text.default",
@@ -2333,7 +2402,6 @@ const label = {
2333
2402
  }
2334
2403
  }
2335
2404
  };
2336
- var label$1 = label;
2337
2405
 
2338
2406
  const radio = {
2339
2407
  width: "32px",
@@ -2346,7 +2414,6 @@ const radio = {
2346
2414
  fill: "inherit"
2347
2415
  }
2348
2416
  };
2349
- var radio$1 = radio;
2350
2417
 
2351
2418
  const select = {
2352
2419
  variant: "text.default",
@@ -2371,7 +2438,6 @@ const select = {
2371
2438
  display: "none"
2372
2439
  }
2373
2440
  };
2374
- var select$1 = select;
2375
2441
 
2376
2442
  function selectMultiple(theme) {
2377
2443
  return {
@@ -2417,7 +2483,6 @@ const Switch = {
2417
2483
  },
2418
2484
  backgroundColor: "form.fields.checked.borderColor"
2419
2485
  };
2420
- var Switch$1 = Switch;
2421
2486
 
2422
2487
  const textarea = {
2423
2488
  height: "100%",
@@ -2425,7 +2490,6 @@ const textarea = {
2425
2490
  resize: "vertical",
2426
2491
  variant: "forms.input"
2427
2492
  };
2428
- var textarea$1 = textarea;
2429
2493
 
2430
2494
  const deletableInput = {
2431
2495
  border: "1px solid",
@@ -2485,22 +2549,21 @@ const deletableInput = {
2485
2549
  }
2486
2550
  }
2487
2551
  };
2488
- var deletableInput$1 = deletableInput;
2489
2552
 
2490
2553
  const forms$1 = (theme) => {
2491
2554
  return {
2492
- checkbox: checkbox$1,
2493
- customCheckbox: customCheckbox$1,
2494
- dateInput: dateInput$1,
2495
- deletableInput: deletableInput$1,
2496
- iconInput: iconInput$1,
2497
- input: input$1,
2498
- label: label$1,
2499
- radio: radio$1,
2500
- select: select$1,
2555
+ checkbox,
2556
+ customCheckbox,
2557
+ dateInput,
2558
+ deletableInput,
2559
+ iconInput,
2560
+ input,
2561
+ label,
2562
+ radio,
2563
+ select,
2501
2564
  selectMultiple: selectMultiple(theme),
2502
- switch: Switch$1,
2503
- textarea: textarea$1,
2565
+ switch: Switch,
2566
+ textarea,
2504
2567
  /* PREPEND HERE */
2505
2568
  'input[type="date"]': {
2506
2569
  variant: "forms.input"
@@ -2661,7 +2724,6 @@ const confirm = {
2661
2724
  }
2662
2725
  }
2663
2726
  };
2664
- var confirm$1 = confirm;
2665
2727
 
2666
2728
  const table = {
2667
2729
  display: "flex",
@@ -2694,7 +2756,6 @@ const table = {
2694
2756
  }
2695
2757
  }
2696
2758
  };
2697
- var table$1 = table;
2698
2759
 
2699
2760
  const tableModal = {
2700
2761
  additionalFiltersModal: {
@@ -2787,7 +2848,6 @@ const tableModal = {
2787
2848
  mt: "7px"
2788
2849
  }
2789
2850
  };
2790
- var tableModal$1 = tableModal;
2791
2851
 
2792
2852
  const buttonsBar = {
2793
2853
  flexDirection: "row",
@@ -2796,7 +2856,6 @@ const buttonsBar = {
2796
2856
  gap: spacing$1(3),
2797
2857
  mb: spacing$1(0)
2798
2858
  };
2799
- var buttonsBar$1 = buttonsBar;
2800
2859
 
2801
2860
  const apiaFinder = {
2802
2861
  additionalFiltersModal: {
@@ -2892,16 +2951,15 @@ const apiaFinder = {
2892
2951
  mt: "7px"
2893
2952
  }
2894
2953
  };
2895
- var apiaFinder$1 = apiaFinder;
2896
2954
 
2897
2955
  const modals = {
2898
2956
  apiaApi,
2899
- buttonsBar: buttonsBar$1,
2900
- confirm: confirm$1,
2957
+ buttonsBar,
2958
+ confirm,
2901
2959
  ...overlay,
2902
- table: table$1,
2903
- tableModal: tableModal$1,
2904
- apiaFinder: apiaFinder$1,
2960
+ table,
2961
+ tableModal,
2962
+ apiaFinder,
2905
2963
  main: {
2906
2964
  boxShadow: "modals",
2907
2965
  borderRadius: "modals",
@@ -2917,9 +2975,7 @@ const modals = {
2917
2975
  border: "1px solid",
2918
2976
  gap: "0px !important",
2919
2977
  "&>div>div": {
2920
- overflow: "hidden",
2921
2978
  flexGrow: 0,
2922
- flexShrink: 0,
2923
2979
  p: "3px",
2924
2980
  width: "100%"
2925
2981
  },
@@ -2976,7 +3032,7 @@ const modals = {
2976
3032
  height: "100%",
2977
3033
  border: "1px solid",
2978
3034
  borderColor: "palette.border.article",
2979
- backgroundColor: "palette.gray.900"
3035
+ backgroundColor: "palette.background.default"
2980
3036
  }
2981
3037
  }
2982
3038
  }
@@ -2988,6 +3044,9 @@ const modals = {
2988
3044
  height: "100%",
2989
3045
  ".responsiveTable__wrapper": {
2990
3046
  height: "100%"
3047
+ },
3048
+ "& > *:first-child": {
3049
+ height: "100%"
2991
3050
  }
2992
3051
  }
2993
3052
  },
@@ -3053,12 +3112,19 @@ const modals = {
3053
3112
  },
3054
3113
  cal: {
3055
3114
  variant: "layout.common.modals.sm",
3056
- width: "350px"
3115
+ width: "400px",
3116
+ maxWidth: "400px"
3057
3117
  },
3058
3118
  editGrid: {
3059
3119
  variant: "layout.common.modals.main",
3060
3120
  width: "root",
3061
3121
  maxHeight: "90vh"
3122
+ },
3123
+ fileModal: {
3124
+ variant: "layout.common.modals.main",
3125
+ width: "750px",
3126
+ maxHeight: "97vh",
3127
+ maxWidth: "95vw"
3062
3128
  }
3063
3129
  /* PREPEND HERE */
3064
3130
  };
@@ -3098,7 +3164,7 @@ function getSelectionStyles() {
3098
3164
  };
3099
3165
  }
3100
3166
 
3101
- const primary$6 = (theme) => {
3167
+ const primary$4 = (theme) => {
3102
3168
  return {
3103
3169
  variant: "colors.tables.primary",
3104
3170
  width: "100%",
@@ -3481,7 +3547,7 @@ const responsive = (theme) => {
3481
3547
  };
3482
3548
  };
3483
3549
 
3484
- const secondary$1 = {
3550
+ const secondary = {
3485
3551
  variant: "layout.common.tables.primary",
3486
3552
  borderColor: "components.secondaryTable.borderColor",
3487
3553
  "& thead": {
@@ -3747,6 +3813,11 @@ const clean = (theme) => {
3747
3813
  rowGap: 2,
3748
3814
  ".listPanel__details": {
3749
3815
  pl: 6
3816
+ },
3817
+ ".responsiveTable__additionalInfoItem": {
3818
+ whiteSpace: "break-spaces",
3819
+ overflow: "hidden",
3820
+ wordBreak: "break-all"
3750
3821
  }
3751
3822
  },
3752
3823
  ".responsiveTable__additionalInfoContainer .responsiveTable__additionalInfoItem.separator": {
@@ -3806,10 +3877,10 @@ const tables = (theme) => {
3806
3877
  return {
3807
3878
  accordion: accordion$1,
3808
3879
  information,
3809
- primary: primary$6(theme),
3880
+ primary: primary$4(theme),
3810
3881
  print,
3811
3882
  responsive: responsive(theme),
3812
- secondary: secondary$1,
3883
+ secondary,
3813
3884
  clean: clean(theme)
3814
3885
  /* PREPEND HERE */
3815
3886
  };
@@ -3853,12 +3924,63 @@ const captcha = {
3853
3924
  }
3854
3925
  };
3855
3926
 
3927
+ const materialInput = {
3928
+ position: "relative",
3929
+ display: "inline-flex",
3930
+ width: "max-content",
3931
+ flexDirection: "column",
3932
+ background: "white",
3933
+ borderRadius: "6px",
3934
+ span: {
3935
+ transition: "top 200ms, left 200ms, font-size 200ms, background 200ms",
3936
+ position: "absolute",
3937
+ top: "10px",
3938
+ left: "8px",
3939
+ fontSize: "14px",
3940
+ pointerEvents: "none",
3941
+ color: "palette.border.section",
3942
+ background: "transparent",
3943
+ whiteSpace: "nowrap",
3944
+ textOverflow: "ellipsis",
3945
+ maxWidth: "144px",
3946
+ overflow: "hidden"
3947
+ },
3948
+ "&:focus-within": focusOutline,
3949
+ "&.filled, &:focus-within": {
3950
+ span: {
3951
+ position: "absolute",
3952
+ top: "4px",
3953
+ left: "5px",
3954
+ fontSize: "10px",
3955
+ pointerEvents: "all",
3956
+ background: "white",
3957
+ padding: "0 2px"
3958
+ },
3959
+ input: {
3960
+ paddingTop: "15px",
3961
+ opacity: 1
3962
+ }
3963
+ },
3964
+ "& *:focus": {
3965
+ outline: "none"
3966
+ },
3967
+ input: {
3968
+ border: "1px solid #ccc",
3969
+ borderRadius: "panel",
3970
+ transition: "padding 200ms, opacity 400ms",
3971
+ background: "none",
3972
+ padding: "8px",
3973
+ opacity: 0
3974
+ }
3975
+ };
3976
+
3856
3977
  const forms = {
3857
- captcha
3978
+ captcha,
3979
+ materialInput
3858
3980
  /* PREPEND HERE */
3859
3981
  };
3860
3982
 
3861
- const primary$4 = (theme) => {
3983
+ const primary$3 = (theme) => {
3862
3984
  return {
3863
3985
  /* PREPEND HERE */
3864
3986
  position: "relative",
@@ -3992,7 +4114,6 @@ const primary$4 = (theme) => {
3992
4114
  }
3993
4115
  };
3994
4116
  };
3995
- var primary$5 = primary$4;
3996
4117
 
3997
4118
  const mobx = (theme) => {
3998
4119
  return {
@@ -4075,14 +4196,13 @@ const mobx = (theme) => {
4075
4196
  }
4076
4197
  };
4077
4198
  };
4078
- var mobx$1 = mobx;
4079
4199
 
4080
4200
  const trees = {
4081
- mobx: mobx$1,
4082
- primary: primary$5
4201
+ mobx,
4202
+ primary: primary$3
4083
4203
  };
4084
4204
 
4085
- const primary$3 = {
4205
+ const primary$2 = {
4086
4206
  background: "white",
4087
4207
  border: "1px solid #ccc",
4088
4208
  borderRadius: "tooltips",
@@ -4092,7 +4212,7 @@ const primary$3 = {
4092
4212
  };
4093
4213
 
4094
4214
  const tooltips = {
4095
- primary: primary$3
4215
+ primary: primary$2
4096
4216
  /* PREPEND HERE */
4097
4217
  };
4098
4218
 
@@ -4228,24 +4348,20 @@ const common$1 = (type) => ({
4228
4348
  const primary$1 = {
4229
4349
  ...common$1("components.paginationPrimary")
4230
4350
  };
4231
- var primary$2 = primary$1;
4232
4351
 
4233
4352
  const datagrid = {
4234
4353
  ...common$1("components.paginationDatagrid")
4235
4354
  };
4236
- var datagrid$1 = datagrid;
4237
4355
 
4238
4356
  const primary = {
4239
4357
  ...common$1("components.paginationSecondary")
4240
4358
  };
4241
- var secondary = primary;
4242
4359
 
4243
4360
  const pagination = {
4244
- primary: primary$2,
4245
- datagrid: datagrid$1,
4246
- secondary
4361
+ primary: primary$1,
4362
+ datagrid,
4363
+ secondary: primary
4247
4364
  };
4248
- var pagination$1 = pagination;
4249
4365
 
4250
4366
  const accordion = {
4251
4367
  primary: {
@@ -4367,7 +4483,7 @@ const accordion = {
4367
4483
  }
4368
4484
  };
4369
4485
 
4370
- const chat = {
4486
+ const chat$1 = {
4371
4487
  /* PREPEND HERE */
4372
4488
  height: "calc(100vh - 300px)",
4373
4489
  width: "100%",
@@ -4550,6 +4666,9 @@ const autocomplete = {
4550
4666
  ".autocomplete__inputWrapper": {
4551
4667
  position: "relative"
4552
4668
  },
4669
+ ".autocomplete__search.disabled": {
4670
+ cursor: "not-allowed"
4671
+ },
4553
4672
  ".autocomplete__icons": {
4554
4673
  alignItems: "center",
4555
4674
  display: "flex",
@@ -4590,7 +4709,6 @@ const autocomplete = {
4590
4709
  }
4591
4710
  }
4592
4711
  };
4593
- var autocomplete$1 = autocomplete;
4594
4712
 
4595
4713
  const datePicker = {
4596
4714
  maxWidth: "400px"
@@ -4666,15 +4784,37 @@ const aiMessage = {
4666
4784
  }
4667
4785
  };
4668
4786
 
4787
+ const infoButton = {
4788
+ "&.iconButton": {
4789
+ cursor: "pointer",
4790
+ height: "0px",
4791
+ minHeight: "16px",
4792
+ color: "palette.gray.800",
4793
+ p: spacing$1(0),
4794
+ width: "auto",
4795
+ minWidth: "auto",
4796
+ svg: {
4797
+ height: "15px",
4798
+ width: "15px"
4799
+ },
4800
+ "&.isToggled": {
4801
+ cursor: "pointer",
4802
+ minHeight: "0px",
4803
+ color: "palette.primary.main"
4804
+ }
4805
+ }
4806
+ };
4807
+
4669
4808
  const components = {
4670
4809
  /* PREPEND HERE */
4671
4810
  accordion,
4672
- autocomplete: autocomplete$1,
4811
+ autocomplete,
4673
4812
  datePicker,
4674
- pagination: pagination$1,
4675
- chat,
4813
+ pagination,
4814
+ chat: chat$1,
4676
4815
  toolbar,
4677
- aiMessage
4816
+ aiMessage,
4817
+ infoButton
4678
4818
  };
4679
4819
 
4680
4820
  const labelBox = {
@@ -4701,13 +4841,861 @@ const labelBox = {
4701
4841
  }
4702
4842
  }
4703
4843
  };
4704
- var labelBox$1 = labelBox;
4705
4844
 
4706
4845
  const boxes = {
4707
- labelBox: labelBox$1
4846
+ labelBox
4708
4847
  /* PREPEND HERE */
4709
4848
  };
4710
4849
 
4850
+ const formsAssistant = {
4851
+ modalRow: {
4852
+ "&": {
4853
+ position: "relative",
4854
+ 'div[data-variant="layout.ai.execution.formsAssistant.buttonsDiv"]': {
4855
+ position: "absolute",
4856
+ top: "7%",
4857
+ right: "15%"
4858
+ }
4859
+ }
4860
+ },
4861
+ modal: {
4862
+ 'div[class="modal__main"]': { position: "relative" },
4863
+ 'div[data-variant="layout.ai.execution.formsAssistant.buttonsDiv"]': {
4864
+ position: "absolute",
4865
+ top: "5.4%",
4866
+ right: "17%"
4867
+ }
4868
+ },
4869
+ buttonsDiv: {
4870
+ display: "flex",
4871
+ justifyContent: "end",
4872
+ gap: 2,
4873
+ alignItems: "center",
4874
+ "button.manualButton:nth-child(2)": {
4875
+ marginLeft: "auto"
4876
+ }
4877
+ },
4878
+ settingsButton: {
4879
+ variant: "buttons.icon-outline",
4880
+ border: "none"
4881
+ },
4882
+ openTextarea: {
4883
+ position: "fixed",
4884
+ bottom: "1%",
4885
+ right: "0.5%",
4886
+ zIndex: 1200
4887
+ },
4888
+ tableText: { wordBreak: "normal" },
4889
+ thModal: { whiteSpace: "nowrap" },
4890
+ genericWindowDragger: {
4891
+ maxWidth: "600px",
4892
+ maxHeight: "455px",
4893
+ zIndex: "1200",
4894
+ bottom: "49px",
4895
+ right: "11px"
4896
+ },
4897
+ customGridWindowDragger: {
4898
+ variant: "layout.ai.execution.formsAssistant.genericWindowDragger",
4899
+ bottom: "auto",
4900
+ right: "auto",
4901
+ ".tooltip__wrapper": {
4902
+ padding: "0px"
4903
+ }
4904
+ },
4905
+ floatingWindow: {
4906
+ p: 5,
4907
+ display: "flex",
4908
+ flexDirection: "column",
4909
+ gap: 5,
4910
+ background: "palette.background.paper",
4911
+ border: "1px solid",
4912
+ borderColor: "palette.border.section",
4913
+ minWidth: "478px",
4914
+ 'input[type="file"]': {
4915
+ display: "none"
4916
+ },
4917
+ ".gpt__buttonsContainer": {
4918
+ display: "flex",
4919
+ alignItems: "center",
4920
+ justifyContent: "end",
4921
+ gap: 1
4922
+ },
4923
+ 'button[data-variant="icon-outline-danger"]': {
4924
+ border: "none"
4925
+ },
4926
+ ".gpt__form": {
4927
+ flexDirection: "column",
4928
+ display: "flex",
4929
+ gap: 2
4930
+ },
4931
+ ".formsAssistant__closeButton": {
4932
+ borderRadius: "5px",
4933
+ top: "-7px",
4934
+ right: "-7px",
4935
+ position: "absolute"
4936
+ },
4937
+ ".history": {
4938
+ height: "200px",
4939
+ overflow: "hidden",
4940
+ display: "flex"
4941
+ },
4942
+ ".autoscrollContainer": { overflow: "auto" }
4943
+ },
4944
+ phoneCase: {
4945
+ p: 5,
4946
+ display: "flex",
4947
+ flexDirection: "column",
4948
+ gap: 5,
4949
+ background: "palette.background.paper",
4950
+ border: "1px solid",
4951
+ borderColor: "palette.border.section",
4952
+ height: "100%",
4953
+ justifyContent: "space-between",
4954
+ 'input[type="file"]': {
4955
+ display: "none"
4956
+ },
4957
+ ".gpt__buttonsContainer": {
4958
+ display: "flex",
4959
+ alignItems: "center",
4960
+ justifyContent: "end",
4961
+ gap: 1
4962
+ },
4963
+ 'button[data-variant="icon-outline-danger"]': {
4964
+ border: "none"
4965
+ },
4966
+ 'div[data-variant="layout.common.components.chat"]': {
4967
+ minHeight: "60%"
4968
+ },
4969
+ 'div[data-variant="layout.common.components.chat"] + div': {
4970
+ width: "100%",
4971
+ height: "29%"
4972
+ },
4973
+ ".gpt__form": {
4974
+ flexDirection: "column",
4975
+ display: "flex",
4976
+ gap: 2,
4977
+ height: "100%"
4978
+ },
4979
+ ".formsAssistant__closeButton": {
4980
+ borderRadius: "5px",
4981
+ top: "-7px",
4982
+ right: "-7px",
4983
+ position: "absolute"
4984
+ },
4985
+ ".history": {
4986
+ height: "200px",
4987
+ overflow: "hidden",
4988
+ display: "flex"
4989
+ },
4990
+ ".autoscrollContainer": { overflow: "auto" }
4991
+ },
4992
+ configurationTable: {
4993
+ variant: "layout.common.tables.information",
4994
+ "th:last-of-type": {
4995
+ width: "100px"
4996
+ }
4997
+ },
4998
+ overrideTable: {
4999
+ ".attTitle": { fontWeight: "bold" },
5000
+ 'div[role="dialog"]': {
5001
+ width: "95vw"
5002
+ },
5003
+ ".confirmNewValues": {
5004
+ variant: "layout.common.tables.information",
5005
+ tableLayout: "fixed",
5006
+ width: "100%",
5007
+ 'div[role="dialog"]': {
5008
+ width: "95vw"
5009
+ },
5010
+ "& thead": {
5011
+ th: {
5012
+ width: "50%"
5013
+ },
5014
+ "th:last-of-type": {
5015
+ width: "100px"
5016
+ },
5017
+ "th:first-of-type": {
5018
+ width: "199px"
5019
+ }
5020
+ },
5021
+ "& tbody": {
5022
+ "td:last-of-type": {
5023
+ textAlign: "center"
5024
+ }
5025
+ }
5026
+ }
5027
+ }
5028
+ };
5029
+
5030
+ const execution = {
5031
+ formsAssistant
5032
+ /* PREPEND HERE */
5033
+ };
5034
+
5035
+ const connectors = {
5036
+ testResult: {
5037
+ td: {
5038
+ verticalAlign: "middle !important",
5039
+ "&.title": {
5040
+ fontWeight: "bold",
5041
+ textAlign: "center"
5042
+ },
5043
+ div: {
5044
+ height: "1.5em",
5045
+ width: "1.5em",
5046
+ borderRadius: "100px",
5047
+ mx: "auto"
5048
+ },
5049
+ "&.success": {
5050
+ p: 3,
5051
+ div: { backgroundColor: "palette.success.main" }
5052
+ },
5053
+ "&.error": {
5054
+ p: 3,
5055
+ div: { backgroundColor: "palette.error.main" }
5056
+ }
5057
+ }
5058
+ }
5059
+ };
5060
+
5061
+ keyframes`
5062
+ 0% {
5063
+ transform: rotate(0);
5064
+ }
5065
+
5066
+ 25% {
5067
+ transform: rotate(1.5deg);
5068
+ }
5069
+
5070
+ 75% {
5071
+ transform: rotate(-1.5deg);
5072
+ }
5073
+
5074
+ 100% {
5075
+ transform: rotate(0);
5076
+ }`;
5077
+ const fadeInFromBottom = keyframes`
5078
+ 0% {
5079
+ transform: translateY(400px) scale(0.1);
5080
+ opacity: 0;
5081
+ }
5082
+ 100% {
5083
+ transform: translateY(0) scale(1);
5084
+ opacity: 1;
5085
+ }
5086
+ `;
5087
+ const fadeInFromTop = keyframes`
5088
+ 0% {
5089
+ transform: translateY(-800px) scale(0.1);
5090
+ opacity: 0;
5091
+ }
5092
+ 100% {
5093
+ transform: translateY(0) scale(1);
5094
+ opacity: 1;
5095
+ }
5096
+ `;
5097
+ const animations = { fadeInFromBottom, fadeInFromTop };
5098
+
5099
+ const semanticSearch = {
5100
+ execution: {
5101
+ background: "palette.background.default",
5102
+ ".filters__container": {
5103
+ " > div": {
5104
+ display: "flex",
5105
+ " > .filter_button:last-child": {
5106
+ borderRadius: "panel",
5107
+ height: "34px",
5108
+ width: "34px",
5109
+ flexShrink: 0,
5110
+ background: "transparent",
5111
+ border: "none",
5112
+ opacity: 0,
5113
+ transition: "opacity 400ms",
5114
+ marginLeft: "auto"
5115
+ }
5116
+ },
5117
+ paddingTop: "10px",
5118
+ ".filter__input": {
5119
+ paddingRight: "7px"
5120
+ }
5121
+ },
5122
+ ".filled_filters": {
5123
+ " > div": {
5124
+ display: "flex",
5125
+ " > .filter_button:last-child": {
5126
+ borderRadius: "panel",
5127
+ height: "34px",
5128
+ width: "34px",
5129
+ flexShrink: 0,
5130
+ background: "transparent",
5131
+ border: "none",
5132
+ opacity: 1,
5133
+ marginLeft: "auto"
5134
+ }
5135
+ }
5136
+ },
5137
+ ".search_controls": {
5138
+ alignItems: "center",
5139
+ justifyContent: "center",
5140
+ display: "flex",
5141
+ gap: 0,
5142
+ mx: "auto",
5143
+ background: "palette.background.paper",
5144
+ border: "1px solid",
5145
+ borderColor: "palette.border.section",
5146
+ borderRadius: "panel",
5147
+ boxShadow: "0px 2px 6px #0002",
5148
+ width: "100%",
5149
+ p: spacing(3),
5150
+ "&:focus-within": focusOutline,
5151
+ "& > *:focus": {
5152
+ outline: "none"
5153
+ },
5154
+ ".filter_button_box": {
5155
+ position: "relative"
5156
+ },
5157
+ ".applied_filters_label": {
5158
+ position: "absolute",
5159
+ bottom: "21px",
5160
+ left: "20px",
5161
+ minWidth: "10px",
5162
+ maxHeight: "10px",
5163
+ border: "2px solid white",
5164
+ borderRadius: "100%",
5165
+ display: "inline-flex",
5166
+ alignItems: "center",
5167
+ justifyContent: "center",
5168
+ backgroundColor: "palette.error.main"
5169
+ }
5170
+ },
5171
+ ".SearchButton": {
5172
+ borderRadius: "panel",
5173
+ height: "34px",
5174
+ width: "34px",
5175
+ flexShrink: 0,
5176
+ background: "transparent",
5177
+ border: "none",
5178
+ color: "palette.text.primary",
5179
+ ":disabled": {
5180
+ background: "transparent"
5181
+ }
5182
+ },
5183
+ ".FilterButton": {
5184
+ borderRadius: "panel",
5185
+ height: "34px",
5186
+ width: "34px",
5187
+ flexShrink: 0,
5188
+ background: "transparent",
5189
+ border: "none",
5190
+ color: "palette.text.primary",
5191
+ "&.open": {
5192
+ color: "palette.primary.main"
5193
+ }
5194
+ },
5195
+ ".references__box": {
5196
+ display: "flex",
5197
+ alignItems: "center",
5198
+ gap: spacing(5)
5199
+ },
5200
+ ".searchTextArea": {
5201
+ minHeight: "34px",
5202
+ height: "34px",
5203
+ resize: "none",
5204
+ py: spacing(2),
5205
+ background: "transparent",
5206
+ border: "none"
5207
+ },
5208
+ "a:-webkit-any-link": {
5209
+ color: "unset",
5210
+ textDecoration: "unset"
5211
+ },
5212
+ ".references_item": {
5213
+ maxWidth: "180px",
5214
+ whiteSpace: "nowrap",
5215
+ zIndex: 0,
5216
+ ".button__content": {
5217
+ overflow: "hidden",
5218
+ textOverflow: "ellipsis",
5219
+ maxWidth: "180px"
5220
+ }
5221
+ },
5222
+ "&.mode_none": {
5223
+ flexDirection: "column",
5224
+ display: "flex",
5225
+ alignItems: "center",
5226
+ justifyContent: "center",
5227
+ height: "100vh",
5228
+ gap: spacing(5),
5229
+ ".search_header_container": {
5230
+ fontSize: "50px",
5231
+ maxWidth: "50vw",
5232
+ textAlign: "left",
5233
+ display: "flex",
5234
+ flexDirection: "column",
5235
+ gap: spacing(5)
5236
+ },
5237
+ ".search_section_container": {
5238
+ mx: "auto",
5239
+ display: "flex",
5240
+ flexDirection: "column",
5241
+ gap: spacing(3),
5242
+ zIndex: 1,
5243
+ background: "palette.background.default",
5244
+ boxShadow: "0 10px 10px #f8f4f4",
5245
+ width: responsive$1({
5246
+ 0: "calc(100%)",
5247
+ 3: "calc(75vw + 50px)",
5248
+ 5: "calc(50vw + 50px)"
5249
+ })
5250
+ }
5251
+ },
5252
+ "&.mode_chat": {
5253
+ h1: {
5254
+ whiteSpace: "nowrap",
5255
+ overflow: "hidden",
5256
+ textOverflow: "ellipsis"
5257
+ },
5258
+ backgroundColor: "white",
5259
+ width: responsive$1({
5260
+ 0: "calc(100%)",
5261
+ 3: "calc(75vw + 2px)",
5262
+ 5: "min(950px, calc(60vw + 2px))"
5263
+ }),
5264
+ margin: ["auto", "32px auto"],
5265
+ border: "1px solid #ccc",
5266
+ ".search_section_container": {
5267
+ zIndex: 1,
5268
+ position: "fixed",
5269
+ bottom: "0",
5270
+ transform: "translateX(-1px)",
5271
+ borderBottom: "4px solid #f2f2f2",
5272
+ width: responsive$1({
5273
+ 0: "calc(100%)",
5274
+ 3: "calc(75vw + 2px)",
5275
+ 5: "min(950px, calc(60vw + 2px))"
5276
+ }),
5277
+ background: "white",
5278
+ textarea: { width: "calc(100%)" },
5279
+ "& > div": {
5280
+ padding: "4px 32px",
5281
+ borderLeft: "1px solid #ccc",
5282
+ borderRight: "1px solid #ccc",
5283
+ borderBottom: "1px solid #ccc",
5284
+ width: "calc(100%)",
5285
+ background: "white"
5286
+ }
5287
+ },
5288
+ ".search_header_container": {
5289
+ position: "fixed",
5290
+ zIndex: 1,
5291
+ top: "0",
5292
+ transform: "translateX(-1px)",
5293
+ borderTop: "4px solid #f2f2f2",
5294
+ padding: "0",
5295
+ width: responsive$1({
5296
+ 0: "calc(100%)",
5297
+ 3: "calc(75vw + 2px)",
5298
+ 5: "min(950px, calc(60vw + 2px))"
5299
+ }),
5300
+ h1: {
5301
+ padding: "32px",
5302
+ pt: "20px",
5303
+ pb: 0,
5304
+ borderLeft: "1px solid #ccc",
5305
+ borderRight: "1px solid #ccc",
5306
+ borderTop: "1px solid #ccc",
5307
+ width: "calc(100%)",
5308
+ background: "white"
5309
+ },
5310
+ p: {
5311
+ background: "palette.background.paper",
5312
+ padding: "32px",
5313
+ pb: "20px",
5314
+ pt: 0,
5315
+ whiteSpace: "nowrap",
5316
+ overflow: "hidden",
5317
+ textOverflow: "ellipsis",
5318
+ width: "calc(100% - 2px)",
5319
+ ml: "1px"
5320
+ }
5321
+ },
5322
+ ".messages_box": { fontSize: "22px", minHeight: "88vh" },
5323
+ ".history__message": {
5324
+ borderRadius: "panel",
5325
+ margin: "15px",
5326
+ padding: "18px",
5327
+ border: "1px",
5328
+ //boxShadow: 'rgba(50, 50, 93, 0.25) 2px 2px 4px 1px',
5329
+ "&.user": {
5330
+ borderRadius: "chatMessage",
5331
+ borderTopRightRadius: "0px",
5332
+ backgroundColor: "rgb(108 166 203)",
5333
+ //rgb(117 163 192)', //rgb(92, 143, 174)',
5334
+ color: "white",
5335
+ boxShadow: "rgba(50, 50, 93, 0.15) 1px 1px 2px 1px",
5336
+ border: "1px solid rgb(113 145 193)"
5337
+ },
5338
+ "&.system": {
5339
+ borderRadius: "chatMessage",
5340
+ borderTopLeftRadius: "0px",
5341
+ backgroundColor: "#00bcff14",
5342
+ boxShadow: "rgba(50, 50, 93, 0.15) 1px 1px 2px 1px",
5343
+ border: "1px solid rgb(0 28 38 / 18%)"
5344
+ }
5345
+ },
5346
+ ".history": {
5347
+ animation: `${animations.fadeInFromBottom} 0.3s`,
5348
+ padding: "100px 32px 80px 32px",
5349
+ border: "none",
5350
+ height: "unset"
5351
+ }
5352
+ },
5353
+ "&.mode_list": {
5354
+ p: {
5355
+ '&[name="semSerDescription"]': {
5356
+ padding: "0px 23vw",
5357
+ whiteSpace: "nowrap",
5358
+ overflow: "hidden",
5359
+ textOverflow: "ellipsis",
5360
+ width: "calc(100% - 2px)",
5361
+ marginLeft: "1px"
5362
+ }
5363
+ },
5364
+ display: "block",
5365
+ gap: spacing(5),
5366
+ px: responsive$1({
5367
+ 0: 5,
5368
+ 3: 0
5369
+ }),
5370
+ ".search_header_container": {
5371
+ marginTop: "7px",
5372
+ h1: {
5373
+ padding: "0 23vw",
5374
+ fontSize: "20px"
5375
+ }
5376
+ },
5377
+ ".filters__container": {
5378
+ padding: "0 25px",
5379
+ paddingTop: "10px"
5380
+ },
5381
+ ".search_section_container": {
5382
+ paddingTop: "47px",
5383
+ mx: "auto",
5384
+ display: "flex",
5385
+ flexDirection: "column",
5386
+ zIndex: 1,
5387
+ boxShadow: "0 10px 10px #f8f4f4",
5388
+ width: responsive$1({
5389
+ 0: "calc(100%)",
5390
+ 3: "calc(75vw + 50px)",
5391
+ 5: "calc(50vw + 50px)"
5392
+ }),
5393
+ background: "palette.background.default",
5394
+ position: "sticky",
5395
+ top: 0,
5396
+ py: spacing(5),
5397
+ gap: spacing(5)
5398
+ },
5399
+ ".list_results": {
5400
+ animation: `${animations.fadeInFromTop} 0.3s`,
5401
+ height: "100%",
5402
+ width: responsive$1({ 0: "100%", 3: "75vw", 5: "50vw" }),
5403
+ mx: "auto",
5404
+ pt: spacing(3),
5405
+ display: "flex",
5406
+ flexDirection: "column",
5407
+ gap: spacing(6)
5408
+ },
5409
+ ".list_item": {
5410
+ borderRadius: "panel",
5411
+ padding: spacing(7),
5412
+ backgroundColor: "palette.background.paper",
5413
+ boxShadow: "0px 4px 6px #0002",
5414
+ border: "1px solid",
5415
+ borderColor: "palette.border.ghost"
5416
+ },
5417
+ ".references_container": {
5418
+ borderTop: "1px solid",
5419
+ borderTopColor: "palette.border.article",
5420
+ display: "flex",
5421
+ gap: spacing(6),
5422
+ pt: spacing(5)
5423
+ }
5424
+ }
5425
+ }
5426
+ };
5427
+
5428
+ const ai = {
5429
+ connectors,
5430
+ execution,
5431
+ semanticSearch
5432
+ /* PREPEND HERE */
5433
+ };
5434
+
5435
+ const form = {
5436
+ /* PREPEND HERE */
5437
+ alignItems: "center",
5438
+ justifyContent: "center",
5439
+ display: "flex",
5440
+ gap: 0,
5441
+ mx: "auto",
5442
+ background: "palette.background.paper",
5443
+ border: "1px solid",
5444
+ borderColor: "palette.border.section",
5445
+ borderRadius: "panel",
5446
+ boxShadow: "0px 2px 6px #0002",
5447
+ width: "100%",
5448
+ p: spacing(3),
5449
+ "&:focus-within": focusOutline,
5450
+ "& > *:focus[class]": {
5451
+ outlineWidth: 0
5452
+ },
5453
+ ".filter_button_box": {
5454
+ position: "relative"
5455
+ },
5456
+ ".applied_filters_label": {
5457
+ position: "absolute",
5458
+ bottom: "21px",
5459
+ left: "20px",
5460
+ minWidth: "10px",
5461
+ maxHeight: "10px",
5462
+ border: "2px solid white",
5463
+ borderRadius: "100%",
5464
+ display: "inline-flex",
5465
+ alignItems: "center",
5466
+ justifyContent: "center",
5467
+ backgroundColor: "palette.error.main"
5468
+ },
5469
+ ".searchTextArea": {
5470
+ minHeight: "34px",
5471
+ height: "34px",
5472
+ resize: "none",
5473
+ py: spacing(2),
5474
+ background: "transparent",
5475
+ border: "none"
5476
+ },
5477
+ ".SearchButton": {
5478
+ borderRadius: "panel",
5479
+ height: "34px",
5480
+ width: "34px",
5481
+ flexShrink: 0,
5482
+ background: "transparent",
5483
+ border: "none",
5484
+ color: "palette.text.primary"
5485
+ }
5486
+ };
5487
+
5488
+ const history = {
5489
+ /* PREPEND HERE */
5490
+ display: "flex",
5491
+ flexDirection: "column",
5492
+ width: "100%",
5493
+ gap: 2,
5494
+ p: 3,
5495
+ ".history_message": {
5496
+ px: 4,
5497
+ py: 5,
5498
+ maxWidth: "calc(100% - 50px)",
5499
+ width: "fit-content",
5500
+ wordWrap: "break-word",
5501
+ whiteSpace: "pre-wrap",
5502
+ borderRadius: "chatMessage",
5503
+ "&.last": {
5504
+ mb: 4
5505
+ },
5506
+ "&.user": {
5507
+ "&.first": {
5508
+ borderTopRightRadius: "0px"
5509
+ },
5510
+ backgroundColor: "rgb(108 166 203)",
5511
+ // TODO: Set the correct color, if necessary, define it in palette
5512
+ color: "white",
5513
+ // TODO: Set the correct color, if necessary, define it in palette
5514
+ boxShadow: "rgba(50, 50, 93, 0.15) 1px 1px 2px 1px",
5515
+ // TODO: Set the correct color, if necessary, define it in palette
5516
+ border: "1px solid rgb(113 145 193)",
5517
+ // TODO: Set the correct color, if necessary, define it in palette
5518
+ alignSelf: "end",
5519
+ display: "flex",
5520
+ flexDirection: "column"
5521
+ },
5522
+ "&.system": {
5523
+ "&.first": {
5524
+ borderTopLeftRadius: "0px"
5525
+ },
5526
+ backgroundColor: "#00bcff14",
5527
+ // TODO: Set the correct color, if necessary, define it in palette
5528
+ boxShadow: "rgba(50, 50, 93, 0.15) 1px 1px 2px 1px",
5529
+ // TODO: Set the correct color, if necessary, define it in palette
5530
+ border: "1px solid rgb(0 28 38 / 18%)"
5531
+ // TODO: Set the correct color, if necessary, define it in palette
5532
+ },
5533
+ "&.warning": {
5534
+ borderRadius: "2px 20px 20px 20px",
5535
+ alignSelf: "start",
5536
+ backgroundColor: "#ffff0024",
5537
+ // TODO: Set the correct color, if necessary, define it in palette
5538
+ width: "100%",
5539
+ boxShadow: "rgba(50, 50, 93, 0.15) 1px 1px 2px 1px",
5540
+ // TODO: Set the correct color, if necessary, define it in palette
5541
+ border: "1px solid rgb(0 28 38 / 18%)"
5542
+ // TODO: Set the correct color, if necessary, define it in palette
5543
+ },
5544
+ "&.error": {
5545
+ borderRadius: "2px 20px 20px 20px",
5546
+ alignSelf: "start",
5547
+ backgroundColor: "#fd84212b",
5548
+ // TODO: Set the correct color, if necessary, define it in palette
5549
+ width: "100%",
5550
+ boxShadow: "rgba(50, 50, 93, 0.15) 1px 1px 2px 1px",
5551
+ // TODO: Set the correct color, if necessary, define it in palette
5552
+ border: "1px solid rgb(0 28 38 / 18%)"
5553
+ // TODO: Set the correct color, if necessary, define it in palette
5554
+ },
5555
+ "&.information": {
5556
+ borderRadius: "2px 20px 20px 20px",
5557
+ alignSelf: "start",
5558
+ backgroundColor: "#00bcff14",
5559
+ //'#2222cc2b',
5560
+ width: "100%",
5561
+ boxShadow: "rgba(50, 50, 93, 0.15) 1px 1px 2px 1px",
5562
+ // TODO: Set the correct color, if necessary, define it in palette
5563
+ border: "1px solid rgb(0 28 38 / 18%)"
5564
+ // TODO: Set the correct color, if necessary, define it in palette
5565
+ }
5566
+ },
5567
+ ".history_message__attachments": {
5568
+ display: "flex",
5569
+ justifyContent: "flex-end",
5570
+ ".labelBox": {
5571
+ width: "max-content",
5572
+ background: "#fafafa",
5573
+ color: "palette.text.primary",
5574
+ fontSize: "14px",
5575
+ ".labelAndIcon ": {
5576
+ fontSize: "14px"
5577
+ }
5578
+ }
5579
+ }
5580
+ };
5581
+
5582
+ const controller = {
5583
+ /* PREPEND HERE */
5584
+ display: "flex",
5585
+ flexDirection: "column",
5586
+ alignItems: "stretch",
5587
+ height: "100%",
5588
+ gap: 3,
5589
+ ".autoscrollContainer": {
5590
+ flexGrow: 1,
5591
+ flexShrink: 1,
5592
+ flexBasis: "30vh"
5593
+ }
5594
+ };
5595
+
5596
+ const attachments = {
5597
+ /* PREPEND HERE */
5598
+ alignItems: "center",
5599
+ display: "flex",
5600
+ flexDirection: responsive$2({ 0: "column", 3: "row" }),
5601
+ flexWrap: "wrap",
5602
+ gap: spacing$1(3),
5603
+ ".attachments__more_button": {
5604
+ border: "1px solid",
5605
+ borderColor: "palette.border.article",
5606
+ borderRadius: "elementBox",
5607
+ boxShadow: "sharp",
5608
+ p: 2
5609
+ },
5610
+ ".file_box": {
5611
+ alignItems: "center",
5612
+ border: "1px solid",
5613
+ borderColor: "palette.border.article",
5614
+ borderRadius: "elementBox",
5615
+ boxShadow: "sharp",
5616
+ display: "flex",
5617
+ gap: spacing$1(3),
5618
+ width: responsive$2({
5619
+ 0: "100%",
5620
+ 3: "min(90vw, 200px)"
5621
+ }),
5622
+ p: 2
5623
+ },
5624
+ ".file_box__icon": {
5625
+ flexShrink: 0
5626
+ },
5627
+ ".file_box__name": {
5628
+ boxSizing: "border-box",
5629
+ flexGrow: 1,
5630
+ margin: "0px",
5631
+ overflow: "hidden",
5632
+ textOverflow: "ellipsis",
5633
+ whiteSpace: "nowrap"
5634
+ },
5635
+ ".file_box__remove": {
5636
+ flexShrink: 0,
5637
+ p: 4
5638
+ }
5639
+ };
5640
+
5641
+ const message = {
5642
+ position: "relative",
5643
+ display: "flex",
5644
+ flexDirection: "column",
5645
+ ".closeButton": {
5646
+ borderRadius: "5px",
5647
+ right: "0px",
5648
+ top: "-2px",
5649
+ zIndex: "15",
5650
+ position: "absolute",
5651
+ variant: "buttons.icon-outline-danger"
5652
+ },
5653
+ genericBox: {
5654
+ margin: "10px",
5655
+ display: "flex",
5656
+ flexDirection: "column",
5657
+ justifyContent: "space-between",
5658
+ alignItems: "center",
5659
+ padding: "12px"
5660
+ },
5661
+ fileName: {
5662
+ bottom: "4px",
5663
+ right: "4px",
5664
+ fontSize: "12px",
5665
+ color: "#333",
5666
+ textOverflow: "ellipsis",
5667
+ whiteSpace: "nowrap",
5668
+ overflow: "hidden",
5669
+ width: "inherit",
5670
+ textAlign: "center",
5671
+ px: "5px"
5672
+ },
5673
+ textBox: {
5674
+ variant: "layout.common.components.aiMessage.genericBox",
5675
+ width: "50px",
5676
+ padding: "10px",
5677
+ backgroundColor: "#fff",
5678
+ border: "1px solid #ddd",
5679
+ borderRadius: "4px",
5680
+ position: "relative"
5681
+ },
5682
+ textSnippet: {
5683
+ bottom: "4px",
5684
+ right: "4px",
5685
+ fontSize: "12px",
5686
+ color: "#555"
5687
+ }
5688
+ };
5689
+
5690
+ const chat = {
5691
+ /* PREPEND HERE */
5692
+ form,
5693
+ history,
5694
+ controller,
5695
+ attachments,
5696
+ message
5697
+ };
5698
+
4711
5699
  const common = (theme) => {
4712
5700
  return {
4713
5701
  boxes,
@@ -4716,7 +5704,9 @@ const common = (theme) => {
4716
5704
  tables: tables(theme),
4717
5705
  components,
4718
5706
  trees,
4719
- tooltips
5707
+ tooltips,
5708
+ ai,
5709
+ chat
4720
5710
  /* PREPEND HERE */
4721
5711
  };
4722
5712
  };
@@ -4938,10 +5928,6 @@ function useMainTheme(customTheme, customPalette, themeModifier) {
4938
5928
  return theme;
4939
5929
  }
4940
5930
 
4941
- function getVariant(variant) {
4942
- return { variant, "data-variant": variant };
4943
- }
4944
-
4945
5931
  const CustomThemeProvider = ({
4946
5932
  children,
4947
5933
  customTheme
@@ -5476,7 +6462,7 @@ async function getRemarkable(extensions) {
5476
6462
 
5477
6463
  const parseMarkdown = async (options) => {
5478
6464
  const markdownLibrary = await getRemarkable(options.extensions);
5479
- const css = (await import('./styles-Bu6S979Y.js')).markdownParserStyles ?? new ErrorImporting();
6465
+ const css = (await import('./styles-RMAbfDbh.js')).markdownParserStyles ?? new ErrorImporting();
5480
6466
  if (css instanceof ErrorImporting)
5481
6467
  throw new Error("Could not import css, cannot continue");
5482
6468
  const html = options.htmlTemplate ?? (await import('./html-B-K0BIiw.js')).markdownHtml ?? new ErrorImporting();
@@ -5544,7 +6530,7 @@ class MarkdownHeader extends MarkdownParagraph {
5544
6530
  var __defProp$2 = Object.defineProperty;
5545
6531
  var __defNormalProp$2 = (obj, key, value) => key in obj ? __defProp$2(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
5546
6532
  var __publicField$2 = (obj, key, value) => {
5547
- __defNormalProp$2(obj, typeof key !== "symbol" ? key + "" : key, value);
6533
+ __defNormalProp$2(obj, key + "" , value);
5548
6534
  return value;
5549
6535
  };
5550
6536
  class MarkdownList extends MarkdownBlock {
@@ -5594,7 +6580,7 @@ class MarkdownList extends MarkdownBlock {
5594
6580
  var __defProp$1 = Object.defineProperty;
5595
6581
  var __defNormalProp$1 = (obj, key, value) => key in obj ? __defProp$1(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
5596
6582
  var __publicField$1 = (obj, key, value) => {
5597
- __defNormalProp$1(obj, typeof key !== "symbol" ? key + "" : key, value);
6583
+ __defNormalProp$1(obj, key + "" , value);
5598
6584
  return value;
5599
6585
  };
5600
6586
  var __accessCheck = (obj, member, msg) => {
@@ -5933,5 +6919,5 @@ class MarkdownBuilder {
5933
6919
  }
5934
6920
  }
5935
6921
 
5936
- export { ApiaThemeProvider as A, MarkdownBlock as M, 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, MarkdownBuilder as t, useMainTheme as u, parseMarkdown as v, MarkdownList as w, MarkdownParagraph as x, MarkdownTable as y, MarkdownTableOfContents as z };
5937
- //# sourceMappingURL=index-CQrjUy7r.js.map
6922
+ export { ApiaThemeProvider as A, MarkdownTableOfContents as B, Form as F, MaterialInput as M, 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 };
6923
+ //# sourceMappingURL=index-SJZzkOTL.js.map