@widergy/energy-ui 3.175.1 → 3.177.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (60) hide show
  1. package/CHANGELOG.md +19 -3
  2. package/dist/components/UTRichText/components/EditorSkeleton/index.js +1 -0
  3. package/dist/components/UTRichText/components/EditorSkeleton/styles.module.scss +71 -0
  4. package/dist/components/UTRichText/components/SubmitAction/constants.js +1 -0
  5. package/dist/components/UTRichText/components/SubmitAction/index.js +1 -0
  6. package/dist/components/UTRichText/components/SubmitAction/styles.module.scss +5 -0
  7. package/dist/components/UTRichText/components/Toolbar/index.js +1 -0
  8. package/dist/components/UTRichText/components/Toolbar/styles.module.scss +26 -0
  9. package/dist/components/UTRichText/components/ToolbarButton/index.js +1 -0
  10. package/dist/components/UTRichText/constants.js +1 -0
  11. package/dist/components/UTRichText/extensions/CustomKeymap.js +1 -0
  12. package/dist/components/UTRichText/hooks/useModuleResolution.js +1 -0
  13. package/dist/components/UTRichText/hooks/useRichTextEditor.js +1 -0
  14. package/dist/components/UTRichText/index.js +1 -0
  15. package/dist/components/UTRichText/modules/bold/index.js +1 -0
  16. package/dist/components/UTRichText/modules/italic/index.js +1 -0
  17. package/dist/components/UTRichText/modules/list/index.js +1 -0
  18. package/dist/components/UTRichText/modules/listNumbers/index.js +1 -0
  19. package/dist/components/UTRichText/modules/table/TableToolbar/index.js +1 -0
  20. package/dist/components/UTRichText/modules/table/TableToolbar/styles.module.scss +13 -0
  21. package/dist/components/UTRichText/modules/table/ToolbarButton.js +1 -0
  22. package/dist/components/UTRichText/modules/table/extensions.js +1 -0
  23. package/dist/components/UTRichText/modules/table/index.js +1 -0
  24. package/dist/components/UTRichText/registry.js +1 -0
  25. package/dist/components/UTRichText/styles.module.scss +241 -0
  26. package/dist/components/UTRichText/utils/contentBuilders.js +1 -0
  27. package/dist/components/UTRichText/utils.js +1 -0
  28. package/dist/constants/testIds.js +1 -1
  29. package/dist/esm/components/UTRichText/components/EditorSkeleton/index.js +1 -0
  30. package/dist/esm/components/UTRichText/components/EditorSkeleton/styles.module.scss +71 -0
  31. package/dist/esm/components/UTRichText/components/SubmitAction/constants.js +1 -0
  32. package/dist/esm/components/UTRichText/components/SubmitAction/index.js +1 -0
  33. package/dist/esm/components/UTRichText/components/SubmitAction/styles.module.scss +5 -0
  34. package/dist/esm/components/UTRichText/components/Toolbar/index.js +1 -0
  35. package/dist/esm/components/UTRichText/components/Toolbar/styles.module.scss +26 -0
  36. package/dist/esm/components/UTRichText/components/ToolbarButton/index.js +1 -0
  37. package/dist/esm/components/UTRichText/constants.js +1 -0
  38. package/dist/esm/components/UTRichText/extensions/CustomKeymap.js +1 -0
  39. package/dist/esm/components/UTRichText/hooks/useModuleResolution.js +1 -0
  40. package/dist/esm/components/UTRichText/hooks/useRichTextEditor.js +1 -0
  41. package/dist/esm/components/UTRichText/index.js +1 -0
  42. package/dist/esm/components/UTRichText/modules/bold/index.js +1 -0
  43. package/dist/esm/components/UTRichText/modules/italic/index.js +1 -0
  44. package/dist/esm/components/UTRichText/modules/list/index.js +1 -0
  45. package/dist/esm/components/UTRichText/modules/listNumbers/index.js +1 -0
  46. package/dist/esm/components/UTRichText/modules/table/TableToolbar/index.js +1 -0
  47. package/dist/esm/components/UTRichText/modules/table/TableToolbar/styles.module.scss +13 -0
  48. package/dist/esm/components/UTRichText/modules/table/ToolbarButton.js +1 -0
  49. package/dist/esm/components/UTRichText/modules/table/extensions.js +1 -0
  50. package/dist/esm/components/UTRichText/modules/table/index.js +1 -0
  51. package/dist/esm/components/UTRichText/registry.js +1 -0
  52. package/dist/esm/components/UTRichText/styles.module.scss +241 -0
  53. package/dist/esm/components/UTRichText/utils/contentBuilders.js +1 -0
  54. package/dist/esm/components/UTRichText/utils.js +1 -0
  55. package/dist/esm/constants/testIds.js +1 -1
  56. package/dist/esm/index.js +1 -1
  57. package/dist/esm/utils/hooks/useCSSVariables/dimensionTokens.js +1 -1
  58. package/dist/index.js +1 -1
  59. package/dist/utils/hooks/useCSSVariables/dimensionTokens.js +1 -1
  60. package/package.json +19 -2
@@ -0,0 +1,71 @@
1
+ @use '../../../../scss/variables/colors.module.scss' as *;
2
+
3
+ @keyframes editorSkeletonShimmer {
4
+ 0% {
5
+ background-position: -150px;
6
+ }
7
+
8
+ 40% {
9
+ background-position: 350px;
10
+ }
11
+
12
+ 100% {
13
+ background-position: 350px;
14
+ }
15
+ }
16
+
17
+ // Shared shimmer mixin — same colors and animation as UTSkeleton.
18
+ %shimmer {
19
+ animation: editorSkeletonShimmer 2s infinite linear;
20
+ background-color: $skeleton-base;
21
+ background-image: linear-gradient(90deg, $skeleton-base 0, $skeleton-second 50px, $skeleton-base 100px);
22
+ background-size: 600px;
23
+ border-radius: 3px;
24
+ }
25
+
26
+ // Cell content bar (14 px high, full width of its cell).
27
+ .bar {
28
+ @extend %shimmer;
29
+ height: 14px;
30
+ width: 100%;
31
+ }
32
+
33
+ // --- Layout ---
34
+
35
+ .root {
36
+ display: flex;
37
+ flex-direction: column;
38
+ gap: var(--UT-textEditor-gap, 12px);
39
+ }
40
+
41
+ .tableWrapper {
42
+ overflow-x: auto;
43
+ }
44
+
45
+ .table {
46
+ min-width: 100%;
47
+ }
48
+
49
+ .row {
50
+ display: flex;
51
+
52
+ & + & {
53
+ margin-top: -1px;
54
+ }
55
+ }
56
+
57
+ .headerCell {
58
+ background-color: var(--light03);
59
+ border: 1px solid var(--light05);
60
+ flex: 1;
61
+ min-width: 80px;
62
+ padding: var(--UT-textEditor-table-cell-padding-y, 6px) var(--UT-textEditor-table-cell-padding-x, 8px);
63
+ }
64
+
65
+ .bodyCell {
66
+ background-color: var(--light01);
67
+ border: 1px solid var(--light05);
68
+ flex: 1;
69
+ min-width: 80px;
70
+ padding: var(--UT-textEditor-table-cell-padding-y, 6px) var(--UT-textEditor-table-cell-padding-x, 8px);
71
+ }
@@ -0,0 +1 @@
1
+ export const SUBMIT_BUTTON={colorTheme:"primary",icon:"EnergyIconSendFilled",size:"medium",text:"Enviar"};
@@ -0,0 +1 @@
1
+ function _extends(){return _extends=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var o=arguments[e];for(var n in o)({}).hasOwnProperty.call(o,n)&&(t[n]=o[n])}return t},_extends.apply(null,arguments)}import{bool,func,object,string}from"prop-types";import React from"react";import UTButton from"../../../UTButton/index.js";import{SUBMIT_BUTTON}from"./constants.js";import styles from"./styles.module.scss";const SubmitAction=t=>{let{dataTestId:e,disabled:o,loading:n,onSubmit:s,submitButtonProps:i={}}=t;return React.createElement("div",{className:styles.footer},React.createElement(UTButton,_extends({colorTheme:SUBMIT_BUTTON.colorTheme,dataTestId:e,disabled:o,loading:n,onClick:s,RightIcon:SUBMIT_BUTTON.icon,size:SUBMIT_BUTTON.size},i),i.children||SUBMIT_BUTTON.text))};SubmitAction.propTypes={dataTestId:string,disabled:bool,loading:bool,onSubmit:func,submitButtonProps:object};export default SubmitAction;
@@ -0,0 +1,5 @@
1
+ .footer {
2
+ display: flex;
3
+ flex-shrink: 0;
4
+ justify-content: flex-end;
5
+ }
@@ -0,0 +1 @@
1
+ import{useEditorState}from"@tiptap/react";import isEmpty from"lodash/isEmpty";import{arrayOf,bool,object,string}from"prop-types";import React,{Fragment,useMemo}from"react";import{getActiveStates}from"../../utils.js";import ToolbarButton from"../ToolbarButton/index.js";import styles from"./styles.module.scss";const preventFocusLoss=t=>t.preventDefault(),Toolbar=t=>{let{dataTestId:e,disabled:o,editor:r,moduleGroups:a}=t;const s=useMemo(()=>a.flat(),[a]),l=useEditorState({editor:r,selector:t=>{let{editor:e}=t;return e?getActiveStates(e,s):null}});return!r||isEmpty(a)?null:React.createElement("div",{className:styles.toolbar,"data-testid":e,onMouseDown:preventFocusLoss,role:"toolbar"},a.map((t,e)=>React.createElement(Fragment,{key:t.map(t=>t.key).join("-")},e>0&&React.createElement("span",{className:styles.separator}),t.map(t=>{const e=t.ToolbarButton||ToolbarButton;return React.createElement(e,{disabled:o,editor:r,isActive:Boolean(null==l?void 0:l[t.key]),key:t.key,module:t})}))))};Toolbar.propTypes={dataTestId:string,disabled:bool,editor:object,moduleGroups:arrayOf(arrayOf(object))};export default Toolbar;
@@ -0,0 +1,26 @@
1
+ .toolbar {
2
+ align-items: center;
3
+ display: flex;
4
+ flex-shrink: 0;
5
+ grid-gap: var(--UT-richText-toolbar-gap);
6
+
7
+ // When all buttons return null (e.g. table-only with allowInsert:false outside a table),
8
+ // React inserts no DOM nodes and the div is genuinely empty — hide it to avoid dead space.
9
+ &:empty {
10
+ display: none;
11
+ }
12
+ }
13
+
14
+ .separator {
15
+ background-color: var(--light04);
16
+ height: var(--UT-richText-separator-height);
17
+ margin: 0 var(--UT-richText-toolbar-gap);
18
+ width: 1px;
19
+
20
+ // When the button after this separator returns null (e.g. table with allowInsert:false
21
+ // and cursor outside a table), React removes that button from the DOM and this separator
22
+ // becomes the last child — hide it so it doesn't float at the end of the toolbar.
23
+ &:last-child {
24
+ display: none;
25
+ }
26
+ }
@@ -0,0 +1 @@
1
+ import{bool,object,shape,string}from"prop-types";import React,{useCallback}from"react";import UTButton from"../../../UTButton/index.js";import UTTooltip from"../../../UTTooltip/index.js";import{TOOLBAR_BUTTON}from"../../constants.js";const ToolbarButton=t=>{let{disabled:o,editor:e,isActive:a,module:r}=t;const{command:i,icon:n,tooltip:c}=r.toolbarButton,{colorTheme:l,variant:s}=a?TOOLBAR_BUTTON.active:TOOLBAR_BUTTON.inactive,T=useCallback(()=>i(e.chain().focus()).run(),[i,e]);return React.createElement(UTTooltip,{arrow:!1,content:c,tippyProps:{appendTo:()=>document.body,interactive:!1}},React.createElement("div",null,React.createElement(UTButton,{colorTheme:l,dataTestId:r.testIds.toolbarButton,disabled:o,LeftIcon:n,onClick:T,size:TOOLBAR_BUTTON.size,variant:s})))};ToolbarButton.propTypes={disabled:bool,editor:object,isActive:bool,module:shape({key:string,testIds:object,toolbarButton:object})};export default ToolbarButton;
@@ -0,0 +1 @@
1
+ import Document from"@tiptap/extension-document";import HardBreak from"@tiptap/extension-hard-break";import Link from"@tiptap/extension-link";import Paragraph from"@tiptap/extension-paragraph";import Text from"@tiptap/extension-text";import{Dropcursor,Gapcursor,Placeholder,UndoRedo}from"@tiptap/extensions";import{TEST_IDS}from"../../constants/testIds.js";export const TEST_IDS_RICH_TEXT=TEST_IDS.UTRichText;export const MODULE_KEYS={bold:"bold",italic:"italic",list:"list",listNumbers:"listNumbers",table:"table"};export const TOOLBAR_GROUPS=[[MODULE_KEYS.bold,MODULE_KEYS.italic],[MODULE_KEYS.listNumbers,MODULE_KEYS.list],[MODULE_KEYS.table]];export const DEFAULT_MODULES=[MODULE_KEYS.bold,MODULE_KEYS.italic,MODULE_KEYS.listNumbers,MODULE_KEYS.list];export const KEYMAP_SHORTCUTS={submit:"Mod-Enter"};export const TOOLBAR_BUTTON={active:{colorTheme:"primary",variant:"semitransparent"},inactive:{colorTheme:"gray",variant:"text"},size:"small"};export const TITLE_VARIANTS={large:"large",small:"small"};export const DEFAULT_PROPS={titleVariant:TITLE_VARIANTS.large};export const PUBLISHED_SCHEMA={marks:["bold","italic","link"],nodes:["bulletList","doc","hardBreak","listItem","orderedList","paragraph","table","tableCell","tableHeader","tableRow","text"]};export const buildBaseExtensions=t=>{let{placeholder:e}=t;return[Document,Paragraph,Text,HardBreak,Link.configure({autolink:!0,openOnClick:!1}),Dropcursor,Gapcursor,UndoRedo,Placeholder.configure({placeholder:e})]};
@@ -0,0 +1 @@
1
+ import{Extension}from"@tiptap/core";import{KEYMAP_SHORTCUTS}from"../constants.js";const CustomKeymap=Extension.create({name:"customKeymap",addOptions:()=>({onSubmit:null}),addKeyboardShortcuts(){return{[KEYMAP_SHORTCUTS.submit]:()=>{var t,o;return!0===(null===(t=(o=this.options).onSubmit)||void 0===t?void 0:t.call(o))}}}});export default CustomKeymap;
@@ -0,0 +1 @@
1
+ import isEmpty from"lodash/isEmpty";import{useMemo}from"react";import{DEFAULT_MODULES,TOOLBAR_GROUPS}from"../constants.js";import{MODULE_REGISTRY}from"../registry.js";const resolveConfig=(e,o)=>({...e.defaultConfig,...o[e.key]||{}}),resolveExtensions=(e,o)=>"function"==typeof e?e(o):e,buildModuleGroups=(e,o)=>{const s=new Set(e);return TOOLBAR_GROUPS.map(e=>e.filter(e=>s.has(e)&&MODULE_REGISTRY[e]).map(e=>{const s=MODULE_REGISTRY[e],t=resolveConfig(s,o);return{...s,config:t,resolvedExtensions:resolveExtensions(s.extensions,t)}})).filter(e=>!isEmpty(e))},useModuleResolution=e=>{let{moduleConfig:o={},modules:s}=e;const t=JSON.stringify(s||DEFAULT_MODULES),r=JSON.stringify(o);return useMemo(()=>buildModuleGroups(JSON.parse(t),o),[t,r])};export default useModuleResolution;
@@ -0,0 +1 @@
1
+ import{useEditor}from"@tiptap/react";import{useEffect,useMemo,useRef}from"react";import{buildBaseExtensions}from"../constants.js";import CustomKeymap from"../extensions/CustomKeymap.js";import{dedupeExtensions,isSameDocument}from"../utils.js";const useRichTextEditor=e=>{let{activeModules:t,ariaLabel:o,dataTestId:n,disabled:r,editorClassName:s,onBlur:u,onChange:a,onFocus:i,onSubmit:l,placeholder:c,readOnly:d,value:m}=e;const p=useRef({});p.current={onBlur:u,onChange:a,onFocus:i,onSubmit:l};const f=useRef(null),b=useMemo(()=>dedupeExtensions([...buildBaseExtensions({placeholder:c}),...t.flatMap(e=>e.extensions),CustomKeymap.configure({onSubmit:()=>{const e=p.current.onSubmit;return!!e&&!0===e()}})]),[t,c]),v=useEditor({content:m,editable:!r&&!d,editorProps:{attributes:{"aria-label":o,"aria-multiline":"true","data-testid":n,class:s,role:"textbox"}},extensions:b,immediatelyRender:!1,onBlur:e=>{var t,o;let{event:n}=e;return null===(t=(o=p.current).onBlur)||void 0===t?void 0:t.call(o,n)},onFocus:e=>{var t,o;let{event:n}=e;return null===(t=(o=p.current).onFocus)||void 0===t?void 0:t.call(o,n)},onUpdate:e=>{let{editor:t}=e;const o=t.getJSON();f.current=o,queueMicrotask(()=>{var e,t;return null===(e=(t=p.current).onChange)||void 0===e?void 0:e.call(t,o)})}},[b]);return useEffect(()=>{v&&(m?m!==f.current&&(isSameDocument(m,v.getJSON())||v.commands.setContent(m,{emitUpdate:!1})):v.isEmpty||v.commands.clearContent(!1))},[v,m]),useEffect(()=>{null==v||v.setEditable(!r&&!d)},[r,v,d]),v};export default useRichTextEditor;
@@ -0,0 +1 @@
1
+ import{EditorContent,useEditorState}from"@tiptap/react";import isEmpty from"lodash/isEmpty";import{arrayOf,bool,func,object,objectOf,oneOf,oneOfType,string}from"prop-types";import React,{useCallback,useMemo,useRef,useState}from"react";import{mergeMultipleClassNames}from"../../utils/classesUtils.js";import UTFieldLabel from"../UTFieldLabel/index.js";import UTLabel from"../UTLabel/index.js";import UTValidation,{validationDataProptypes}from"../UTValidation/index.js";import{formatErrorToValidation}from"../UTValidation/utils.js";import EditorSkeleton from"./components/EditorSkeleton/index.jsx";import SubmitAction from"./components/SubmitAction/index.js";import Toolbar from"./components/Toolbar/index.js";import{DEFAULT_PROPS,MODULE_KEYS,TEST_IDS_RICH_TEXT,TITLE_VARIANTS}from"./constants.js";import useModuleResolution from"./hooks/useModuleResolution.js";import useRichTextEditor from"./hooks/useRichTextEditor.js";import{getFieldClassName}from"./utils.js";import styles from"./styles.module.scss";const UTRichText=e=>{var t;let{actions:o,classNames:a={},dataTestId:s=TEST_IDS_RICH_TEXT.root,disabled:l=!1,error:r,helpText:i,loading:n=!1,moduleConfig:d={},modules:m,onBlur:c,onChange:u,onFocus:T,onSubmit:p,placeholder:E,readOnly:b=!1,required:f=!1,submitButtonProps:S,title:R,titleVariant:_=DEFAULT_PROPS.titleVariant,validations:I,value:C}=e;const[y,g]=useState(!1),j=useModuleResolution({moduleConfig:d,modules:m}),x=useMemo(()=>j.flat(),[j]),O=useMemo(()=>mergeMultipleClassNames(styles,a),[a]),h=useMemo(()=>x.map(e=>{var t;return{...e,extensions:null!==(t=e.resolvedExtensions)&&void 0!==t?t:e.extensions}}),[x]),v=useCallback(e=>{g(!0),null==T||T(e)},[T]),U=useCallback(e=>{g(!1),null==c||c(e)},[c]),D=useRef(!1),M=useCallback(()=>!(!D.current||!p)&&(p(),!0),[p]),N=useRichTextEditor({activeModules:h,ariaLabel:R,dataTestId:TEST_IDS_RICH_TEXT.content,disabled:l,editorClassName:styles.editorContent,onBlur:U,onChange:u,onFocus:v,onSubmit:M,placeholder:E,readOnly:b,value:C}),L=null===(t=useEditorState({editor:N,selector:e=>{let{editor:t}=e;return!t||t.isEmpty}}))||void 0===t||t,F=Boolean(p)&&!l&&!n&&!L;D.current=F;const V=useMemo(()=>isEmpty(I)?r?formatErrorToValidation(r):null:I,[r,I]);return React.createElement("div",{className:O.container,"data-testid":s},R&&React.createElement(UTFieldLabel,{actions:o,dataTestId:TEST_IDS_RICH_TEXT.label,readOnly:b,required:f,size:_},R),React.createElement("div",{className:getFieldClassName({classes:O,disabled:l,error:r,isFocused:y,readOnly:b}),"data-testid":TEST_IDS_RICH_TEXT.field},n?React.createElement(EditorSkeleton,null):React.createElement(React.Fragment,null,!b&&React.createElement(Toolbar,{dataTestId:TEST_IDS_RICH_TEXT.toolbar.root,disabled:l,editor:N,moduleGroups:j}),React.createElement("div",{className:O.scrollArea},React.createElement(EditorContent,{className:O.editorWrapper,editor:N})),p&&!b&&React.createElement(SubmitAction,{dataTestId:TEST_IDS_RICH_TEXT.submitButton,disabled:!F,loading:n,onSubmit:p,submitButtonProps:S}))),i&&React.createElement(UTLabel,{className:O.helpText,colorTheme:"gray",dataTestId:TEST_IDS_RICH_TEXT.helpText,variant:"small",withMarkdown:!0},i),V&&React.createElement(UTValidation,{dataTestId:TEST_IDS_RICH_TEXT.validation,validationData:V}))};export const propTypes={actions:arrayOf(object),classNames:objectOf(string),dataTestId:string,disabled:bool,error:oneOfType([bool,string]),helpText:string,loading:bool,moduleConfig:objectOf(object),modules:arrayOf(oneOf(Object.values(MODULE_KEYS))),onBlur:func,onChange:func,onFocus:func,onSubmit:func,placeholder:string,readOnly:bool,required:bool,submitButtonProps:object,title:string,titleVariant:oneOf(Object.values(TITLE_VARIANTS)),validations:validationDataProptypes,value:object};UTRichText.propTypes=propTypes;export default UTRichText;
@@ -0,0 +1 @@
1
+ import Bold from"@tiptap/extension-bold";import{MODULE_KEYS,TEST_IDS_RICH_TEXT}from"../../constants.js";export default{defaultConfig:{},extensions:[Bold],key:MODULE_KEYS.bold,testIds:{toolbarButton:TEST_IDS_RICH_TEXT.toolbar.bold},toolbarButton:{command:o=>o.toggleBold(),icon:"IconBold",isActive:o=>o.isActive("bold"),tooltip:"Negrita"}};
@@ -0,0 +1 @@
1
+ import Italic from"@tiptap/extension-italic";import{MODULE_KEYS,TEST_IDS_RICH_TEXT}from"../../constants.js";export default{defaultConfig:{},extensions:[Italic],key:MODULE_KEYS.italic,testIds:{toolbarButton:TEST_IDS_RICH_TEXT.toolbar.italic},toolbarButton:{command:t=>t.toggleItalic(),icon:"IconItalic",isActive:t=>t.isActive("italic"),tooltip:"Itálica"}};
@@ -0,0 +1 @@
1
+ import{BulletList,ListItem,ListKeymap}from"@tiptap/extension-list";import{MODULE_KEYS,TEST_IDS_RICH_TEXT}from"../../constants.js";export default{defaultConfig:{},extensions:[BulletList,ListItem,ListKeymap],key:MODULE_KEYS.list,testIds:{toolbarButton:TEST_IDS_RICH_TEXT.toolbar.list},toolbarButton:{command:t=>t.toggleBulletList(),icon:"IconList",isActive:t=>t.isActive("bulletList"),tooltip:"Lista con viñetas"}};
@@ -0,0 +1 @@
1
+ import{ListItem,ListKeymap,OrderedList}from"@tiptap/extension-list";import{MODULE_KEYS,TEST_IDS_RICH_TEXT}from"../../constants.js";export default{defaultConfig:{},extensions:[OrderedList,ListItem,ListKeymap],key:MODULE_KEYS.listNumbers,testIds:{toolbarButton:TEST_IDS_RICH_TEXT.toolbar.listNumbers},toolbarButton:{command:t=>t.toggleOrderedList(),icon:"IconListNumbers",isActive:t=>t.isActive("orderedList"),tooltip:"Lista numerada"}};
@@ -0,0 +1 @@
1
+ import{bool,func,object,string}from"prop-types";import React,{useCallback}from"react";import UTButton from"../../../../UTButton/index.js";import UTTooltip from"../../../../UTTooltip/index.js";import{TEST_IDS_RICH_TEXT,TOOLBAR_BUTTON}from"../../../constants.js";import styles from"./styles.module.scss";const{tableToolbar:tableToolbar}=TEST_IDS_RICH_TEXT,StructureButton=t=>{let{dataTestId:e,disabled:o,editor:a,icon:l,onCommand:r,tooltip:n}=t;const d=useCallback(()=>r(a.chain().focus()).run(),[a,r]);return React.createElement(UTTooltip,{arrow:!1,content:n,tippyProps:{appendTo:()=>document.body,interactive:!1}},React.createElement("div",null,React.createElement(UTButton,{colorTheme:TOOLBAR_BUTTON.inactive.colorTheme,dataTestId:e,disabled:o,LeftIcon:l,onClick:d,size:TOOLBAR_BUTTON.size,variant:TOOLBAR_BUTTON.inactive.variant})))};StructureButton.propTypes={dataTestId:string,disabled:bool,editor:object,icon:string,onCommand:func,tooltip:string};const TableToolbar=t=>{let{dataTestId:e,disabled:o,editor:a}=t;return React.createElement("div",{className:styles.tableToolbar,"data-testid":e},React.createElement(StructureButton,{dataTestId:tableToolbar.addColumnBefore,disabled:o,editor:a,icon:"IconColumnInsertLeft",onCommand:t=>t.addColumnBefore(),tooltip:"Agregar columna antes"}),React.createElement(StructureButton,{dataTestId:tableToolbar.addColumnAfter,disabled:o,editor:a,icon:"IconColumnInsertRight",onCommand:t=>t.addColumnAfter(),tooltip:"Agregar columna después"}),React.createElement(StructureButton,{dataTestId:tableToolbar.deleteColumn,disabled:o,editor:a,icon:"IconColumnRemove",onCommand:t=>t.deleteColumn(),tooltip:"Eliminar columna"}),React.createElement("span",{className:styles.separator}),React.createElement(StructureButton,{dataTestId:tableToolbar.addRowAfter,disabled:o,editor:a,icon:"IconRowInsertBottom",onCommand:t=>t.addRowAfter(),tooltip:"Agregar fila después"}),React.createElement(StructureButton,{dataTestId:tableToolbar.deleteRow,disabled:o,editor:a,icon:"IconRowRemove",onCommand:t=>t.deleteRow(),tooltip:"Eliminar fila"}),React.createElement("span",{className:styles.separator}),React.createElement(StructureButton,{dataTestId:tableToolbar.deleteTable,disabled:o,editor:a,icon:"IconTableOff",onCommand:t=>t.deleteTable(),tooltip:"Eliminar tabla"}))};TableToolbar.propTypes={dataTestId:string,disabled:bool,editor:object};export default TableToolbar;
@@ -0,0 +1,13 @@
1
+ .tableToolbar {
2
+ align-items: center;
3
+ display: flex;
4
+ flex-shrink: 0;
5
+ grid-gap: var(--UT-textEditor-toolbar-gap, 4px);
6
+ }
7
+
8
+ .separator {
9
+ background-color: var(--light04);
10
+ height: var(--UT-textEditor-separator-height, 20px);
11
+ margin: 0 var(--UT-textEditor-toolbar-gap, 4px);
12
+ width: 1px;
13
+ }
@@ -0,0 +1 @@
1
+ import{bool,object,shape,string}from"prop-types";import React,{useCallback}from"react";import UTButton from"../../../UTButton/index.js";import UTTooltip from"../../../UTTooltip/index.js";import{TOOLBAR_BUTTON}from"../../constants.js";import TableToolbar from"./TableToolbar/index.js";const INSERT_TABLE_DEFAULTS={cols:3,rows:3,withHeaderRow:!0},TableToolbarButton=t=>{let{disabled:e,editor:o,isActive:a,module:r}=t;const{allowInsert:l,allowStructureEdit:n}=r.config||r.defaultConfig,i=useCallback(()=>{if(!o.isActive("table"))return void o.chain().focus().insertTable(INSERT_TABLE_DEFAULTS).run();const{$from:t}=o.state.selection;for(let e=t.depth;e>0;e--)if("table"===t.node(e).type.name){const a=t.after(e);return void o.chain().insertContentAt(a,{type:"paragraph"}).setTextSelection(a+1).insertTable(INSERT_TABLE_DEFAULTS).run()}o.chain().focus().insertTable(INSERT_TABLE_DEFAULTS).run()},[o]);var T,s;return a&&n?React.createElement(TableToolbar,{dataTestId:null===(T=r.testIds)||void 0===T?void 0:T.toolbarButton,disabled:e,editor:o}):!a&&l?React.createElement(UTTooltip,{arrow:!1,content:"Insertar tabla",tippyProps:{appendTo:()=>document.body,interactive:!1}},React.createElement("div",null,React.createElement(UTButton,{colorTheme:TOOLBAR_BUTTON.inactive.colorTheme,dataTestId:null===(s=r.testIds)||void 0===s?void 0:s.toolbarButton,disabled:e,LeftIcon:"IconTable",onClick:i,size:TOOLBAR_BUTTON.size,variant:TOOLBAR_BUTTON.inactive.variant}))):null};TableToolbarButton.propTypes={disabled:bool,editor:object,isActive:bool,module:shape({config:object,defaultConfig:object,key:string,testIds:object})};export default TableToolbarButton;
@@ -0,0 +1 @@
1
+ import{Extension}from"@tiptap/core";import{Table,TableCell,TableHeader,TableRow}from"@tiptap/extension-table";import{Plugin}from"@tiptap/pm/state";import{Decoration,DecorationSet}from"@tiptap/pm/view";export const EnergyTable=Table.extend({addAttributes(){var e;return{...null===(e=this.parent)||void 0===e?void 0:e.call(this),style:{default:null,parseHTML:e=>e.getAttribute("style")||null,renderHTML:e=>e.style?{style:e.style}:{}}}},addKeyboardShortcuts(){var e;return{...null===(e=this.parent)||void 0===e?void 0:e.call(this),"Mod-Alt-t":()=>this.editor.commands.insertTable({cols:3,rows:3,withHeaderRow:!0})}}}).configure({resizable:!0});export const EnergyTableRow=TableRow.extend({addAttributes(){var e;return{...null===(e=this.parent)||void 0===e?void 0:e.call(this),style:{default:null,parseHTML:e=>e.getAttribute("style")||null,renderHTML:e=>e.style?{style:e.style}:{}}}}});export const EnergyTableHeader=TableHeader.extend({addAttributes(){var e;return{...null===(e=this.parent)||void 0===e?void 0:e.call(this),style:{default:null,parseHTML:e=>e.getAttribute("style")||null,renderHTML:e=>e.style?{style:e.style}:{}}}}});export const EnergyTableCell=TableCell.extend({addAttributes(){var e;return{...null===(e=this.parent)||void 0===e?void 0:e.call(this),style:{default:null,parseHTML:e=>e.getAttribute("style")||null,renderHTML:e=>e.style?{style:e.style}:{}}}}});export const CellFocus=Extension.create({name:"cellFocus",addProseMirrorPlugins:()=>[new Plugin({state:{init:()=>!1,apply(e,t){const l=e.getMeta("cellFocus");return void 0!==l?l:t}},props:{handleDOMEvents:{focus:e=>(e.dispatch(e.state.tr.setMeta("cellFocus",!0)),!1),blur:e=>(e.dispatch(e.state.tr.setMeta("cellFocus",!1)),!1)},decorations(e){if(!this.getState(e))return DecorationSet.empty;const{doc:t,selection:l}=e,{$from:r}=l,a=[];for(let e=r.depth;e>0;e--){const t=r.node(e);if("tableCell"===t.type.name||"tableHeader"===t.type.name){const l=r.before(e);a.push(Decoration.node(l,l+t.nodeSize,{class:"focused-cell"}));break}}return DecorationSet.create(t,a)}}})]});
@@ -0,0 +1 @@
1
+ import{MODULE_KEYS,TEST_IDS_RICH_TEXT}from"../../constants.js";import TableToolbarButton from"./ToolbarButton.jsx";import{CellFocus,EnergyTable,EnergyTableCell,EnergyTableHeader,EnergyTableRow}from"./extensions.js";export default{defaultConfig:{allowInsert:!0,allowStructureEdit:!0},extensions:e=>[EnergyTable,EnergyTableRow,EnergyTableHeader,EnergyTableCell,CellFocus],key:MODULE_KEYS.table,testIds:{toolbarButton:TEST_IDS_RICH_TEXT.toolbar.table},ToolbarButton:TableToolbarButton,toolbarButton:{isActive:e=>e.isActive("table")&&e.isFocused}};
@@ -0,0 +1 @@
1
+ import bold from"./modules/bold/index.js";import italic from"./modules/italic/index.js";import list from"./modules/list/index.js";import listNumbers from"./modules/listNumbers/index.js";import table from"./modules/table/index.js";export const MODULE_REGISTRY={bold:bold,italic:italic,list:list,listNumbers:listNumbers,table:table};
@@ -0,0 +1,241 @@
1
+ .container {
2
+ display: flex;
3
+ flex-direction: column;
4
+ grid-gap: var(--gap-sm);
5
+ }
6
+
7
+ .field {
8
+ background-color: var(--light01);
9
+ border: 1px solid var(--light04);
10
+ border-radius: var(--UT-richText-radius);
11
+ display: flex;
12
+ flex-direction: column;
13
+ grid-gap: var(--UT-richText-gap);
14
+ // En longhand y no en shorthand: sin los fallbacks, sass-lint lee los dos var()
15
+ // como el mismo token y pide colapsarlos en uno solo.
16
+ padding-bottom: var(--UT-richText-padding-y);
17
+ padding-left: var(--UT-richText-padding-x);
18
+ padding-right: var(--UT-richText-padding-x);
19
+ padding-top: var(--UT-richText-padding-y);
20
+ }
21
+
22
+ // El foco engrosa el borde a 2px con un box-shadow interior en vez de subir el
23
+ // border-width. El shadow no participa del layout, así que el padding no necesita
24
+ // compensar nada y el contenido no se corre al enfocar.
25
+ .fieldFocused {
26
+ border-color: var(--actionAccent04);
27
+ box-shadow: inset 0 0 0 1px var(--actionAccent04);
28
+ }
29
+
30
+ .fieldError {
31
+ border-color: var(--actionError04);
32
+
33
+ // Con error el anillo de foco toma el color de error, para no mezclar dos
34
+ // colores en el mismo borde.
35
+ &.fieldFocused {
36
+ box-shadow: inset 0 0 0 1px var(--actionError04);
37
+ }
38
+ }
39
+
40
+ .fieldDisabled {
41
+ background-color: var(--light03);
42
+ }
43
+
44
+ .fieldReadOnly {
45
+ background-color: transparent;
46
+ border-color: transparent;
47
+ padding-left: 0;
48
+ padding-right: 0;
49
+ }
50
+
51
+ // El área de scroll y el wrapper que monta Tiptap se estiran para que el
52
+ // contenteditable ocupe todo el espacio disponible, y no solo el alto de su
53
+ // contenido. Así el espacio vacío debajo del texto ES área editable: clickear ahí
54
+ // enfoca de forma nativa y ProseMirror pone el cursor en la posición más cercana,
55
+ // sin ningún handler de JS.
56
+ .scrollArea {
57
+ display: flex;
58
+ flex-direction: column;
59
+ max-height: var(--UT-richText-content-max-height);
60
+ min-height: var(--UT-richText-content-min-height);
61
+ overflow-y: auto;
62
+ }
63
+
64
+ .editorWrapper {
65
+ display: flex;
66
+ flex: 1 1 auto;
67
+ }
68
+
69
+ .helpText {
70
+ text-align: left;
71
+ }
72
+
73
+ .editorContent {
74
+ color: var(--dark05);
75
+ flex: 1 1 auto;
76
+ font-size: var(--UT-richText-body-size);
77
+ line-height: var(--UT-richText-body-lh);
78
+ outline: none;
79
+
80
+ p {
81
+ margin: 0;
82
+ }
83
+
84
+ ul,
85
+ ol {
86
+ margin: 0;
87
+ padding-left: var(--UT-richText-list-indent);
88
+ }
89
+
90
+ // Separación entre bloques hermanos del documento (párrafo ↔ párrafo,
91
+ // párrafo ↔ lista). Solo hijos directos: los párrafos dentro de un li no
92
+ // llevan margen.
93
+ > * + * {
94
+ margin-top: var(--UT-richText-block-gap);
95
+ }
96
+
97
+ strong {
98
+ font-weight: var(--UT-richText-bold-weight);
99
+ }
100
+
101
+ em {
102
+ font-style: italic;
103
+ }
104
+
105
+ a {
106
+ color: var(--actionAccent04);
107
+ text-decoration: underline;
108
+ }
109
+
110
+ // --- Estilos de tabla ---
111
+ // Applies only to tables rendered inside the editor (not in email output, which uses
112
+ // inline styles via the `style` attribute set by buildTableNode / EnergyTable*).
113
+
114
+ // Wrapper generado por Tiptap cuando resizable:true. Scroll horizontal cuando la
115
+ // tabla supera el ancho del contenedor.
116
+ :global(.tableWrapper) {
117
+ overflow-x: auto;
118
+
119
+ & + * {
120
+ margin-top: var(--UT-textEditor-block-gap, 8px);
121
+ }
122
+ }
123
+
124
+ table {
125
+ border-collapse: collapse;
126
+ table-layout: fixed;
127
+ width: 100%;
128
+ }
129
+
130
+ td,
131
+ th {
132
+ border: 1px solid var(--light05);
133
+ min-width: var(--UT-textEditor-table-cell-min-width, 40px);
134
+ padding: var(--UT-textEditor-table-cell-padding-y, 6px) var(--UT-textEditor-table-cell-padding-x, 8px);
135
+ position: relative;
136
+ vertical-align: top;
137
+
138
+ > * {
139
+ margin: 0;
140
+ }
141
+
142
+ &:hover :global(.column-resize-handle) {
143
+ opacity: 1;
144
+ }
145
+ }
146
+
147
+ th {
148
+ background-color: var(--light03);
149
+ font-weight: var(--UT-textEditor-bold-weight, 600);
150
+ text-align: left;
151
+
152
+ &:hover {
153
+ background-color: var(--light04);
154
+ }
155
+
156
+ &:global(.focused-cell) {
157
+ background-color: var(--light02);
158
+
159
+ &::before {
160
+ border: 2px solid var(--actionAccent04);
161
+ bottom: 0;
162
+ content: '';
163
+ left: 0;
164
+ pointer-events: none;
165
+ position: absolute;
166
+ right: 0;
167
+ top: 0;
168
+ z-index: 3;
169
+ }
170
+ }
171
+ }
172
+
173
+ td {
174
+ background-color: var(--light01);
175
+
176
+ &:hover {
177
+ background-color: var(--light04);
178
+ }
179
+
180
+ &:global(.focused-cell) {
181
+ &::before {
182
+ border: 2px solid var(--actionAccent04);
183
+ bottom: 0;
184
+ content: '';
185
+ left: 0;
186
+ pointer-events: none;
187
+ position: absolute;
188
+ right: 0;
189
+ top: 0;
190
+ z-index: 3;
191
+ }
192
+ }
193
+ }
194
+
195
+ // Column resize handle — spans the full column height by extending beyond the cell
196
+ // boundaries with large top/bottom values (td/th don't clip overflow by default).
197
+ :global(.column-resize-handle) {
198
+ background-color: var(--actionAccent04);
199
+ bottom: -9999px;
200
+ opacity: 0;
201
+ pointer-events: none;
202
+ position: absolute;
203
+ right: -1px;
204
+ top: -9999px;
205
+ transition: opacity 0.15s ease;
206
+ width: 2px;
207
+ z-index: 10;
208
+ }
209
+
210
+ // Cursor de redimensionado activo.
211
+ :global(.resize-cursor) {
212
+ cursor: col-resize;
213
+ }
214
+
215
+ // Tiptap selection highlight on cells.
216
+ .selectedCell {
217
+ &::after {
218
+ background: var(--actionAccent01);
219
+ content: '';
220
+ inset: 0;
221
+ pointer-events: none;
222
+ position: absolute;
223
+ z-index: 2;
224
+ }
225
+ }
226
+
227
+ // Única clase global necesaria: la genera la extensión Placeholder de Tiptap,
228
+ // así que CSS Modules la hashearía y la regla no aplicaría. Va anidada dentro
229
+ // de .editorContent, así que no se filtra fuera del editor.
230
+ :global(.is-editor-empty) {
231
+ &:first-child {
232
+ &::before {
233
+ color: var(--gray04);
234
+ content: attr(data-placeholder);
235
+ float: left;
236
+ height: 0;
237
+ pointer-events: none;
238
+ }
239
+ }
240
+ }
241
+ }
@@ -0,0 +1 @@
1
+ import Document from"@tiptap/extension-document";import Paragraph from"@tiptap/extension-paragraph";import Text from"@tiptap/extension-text";import{EnergyTable,EnergyTableCell,EnergyTableHeader,EnergyTableRow}from"../modules/table/extensions.js";const TABLE_EMAIL_STYLE="border-collapse: collapse; width: 100%; border-spacing: 0;",HEADER_CELL_EMAIL_STYLE="border: 1px solid #CCCCCC; padding: 8px 12px; text-align: left; font-family: inherit; font-weight: 600; background-color: #F5F5F5;",DATA_CELL_EMAIL_STYLE="border: 1px solid #CCCCCC; padding: 8px 12px; text-align: left; font-family: inherit;",buildParagraph=e=>({type:"paragraph",content:e?[{type:"text",text:String(e)}]:[]});export const buildTableNode=e=>{let{headers:t,rows:a,cellColwidth:r}=e;return{type:"table",attrs:{style:TABLE_EMAIL_STYLE},content:[{type:"tableRow",content:t.map(e=>({type:"tableHeader",attrs:{colspan:1,colwidth:r?[r]:null,rowspan:1,style:HEADER_CELL_EMAIL_STYLE},content:[buildParagraph(e)]}))},...a.map(e=>({type:"tableRow",content:e.map(e=>({type:"tableCell",attrs:{colspan:1,colwidth:r?[r]:null,rowspan:1,style:DATA_CELL_EMAIL_STYLE},content:[buildParagraph(e)]}))}))]}};export const buildTableExtensions=()=>[Document,Paragraph,Text,EnergyTable,EnergyTableRow,EnergyTableHeader,EnergyTableCell];
@@ -0,0 +1 @@
1
+ import isEqual from"lodash/isEqual";export const dedupeExtensions=e=>{const t=new Set;return e.filter(e=>!t.has(e.name)&&(t.add(e.name),!0))};export const getActiveStates=(e,t)=>t.reduce((t,s)=>({...t,[s.key]:s.toolbarButton.isActive(e)}),{});export const isSameDocument=(e,t)=>isEqual(e,t);export const getFieldClassName=e=>{let{classes:t,disabled:s,error:o,isFocused:i,readOnly:l}=e;return[t.field,i&&t.fieldFocused,o&&t.fieldError,s&&t.fieldDisabled,l&&t.fieldReadOnly].filter(Boolean).join(" ")};
@@ -1 +1 @@
1
- export const ID_CONSTANTS={ACTIONS:"actions",ADD_FILTER_BUTTON:"addFilterButton",AVATAR:"avatar",BOTTOM_NAV:"bottomNav",CANVAS:"canvas",CELL:"cell",CLEAR_BUTTON:"clearButton",CLIENT_FILTER:"clientFilter",COLLAPSED_PANEL_CONTENT:"collapsedPanelContent",COLLAPSE_BUTTON:"collapseButton",COLLAPSE_BUTTON_TOOLTIP:"collapseButtonTooltip",CREDIT_CARD:"creditCard",CUSTOM_SEARCH_ACTION:"customSearchAction",DATA_CATEGORY:"dataCategory",DATA_ELEMENT:"dataElement",DELETE_BUTTON:"deleteButton",DELETE_BUTTON_TOOLTIP:"deleteButtonTooltip",ADDITIONAL_CONTENT:"additionalContent",ADDITIONAL_CONTENT_BODY:"additionalContentBody",DESCRIPTION:"description",DIALOG:"dialog",EDIT_BUTTON:"editButton",EDIT_BUTTON_TOOLTIP:"editButtonTooltip",EXPANDED_PANEL_CONTENT:"expandedPanelContent",EXPANDED_PANEL_CONTENT_CATEGORY:"expandedPanelContentCategory",EXPANDED_PANEL_CONTENT_CATEGORY_EMPTY:"expandedPanelContentCategoryEmpty",EXPANDED_PANEL_CONTENT_CATEGORY_HEADER:"expandedPanelContentCategoryHeader",EXPANDED_PANEL_CONTENT_CATEGORY_ITEM:"expandedPanelContentCategoryItem",EXPANDED_PANEL_CONTENT_HEADER:"expandedPanelContentHeader",EXPAND_BUTTON:"expandButton",FILTER_GROUPING:"filterGrouping",GROUPING_PANEL:"groupingPanel",HEADER:"header",HELP_TEXT:"helpText",ICON:"icon",INVALID_PARAMS:"invalidParams",LABEL:"label",MAIN_BUTTON:"mainButton",NAME:"name",NAME_CONTAINER:"nameContainer",ONBOARDING:"onboarding",PAGINATION_NEXT:"paginationNext",PAGINATION_PREV:"paginationPrev",PANEL:"panel",PERSISTENT_FILTER:"persistentFilter",PINNED:"pinned",POPPER:"popper",SEARCH_BUTTON:"searchButton",SECONDARY_ACTION:"secondaryAction",SEARCH_BUTTON_TOOLTIP:"searchButtonTooltip",SEARCH_FIELD:"searchField",SELECTION_COMPONENT:"selectionComponent",SIDEBAR:"sidebar",SIDEBAR_BUTTON:"sidebarButton",STATUS_MESSAGE:"statusMessage",TABLE:"table",TERTIARY_ACTION:"tertiaryAction",TABLE_ROW:"tableRow",TITLE:"title",USER_FILTER:"userFilter",UT_SNACKBAR:"UTSnackbar",VALIDATION_DATA:"validationData",WORKFLOW_CONTAINER:"workflowContainer"};export const TEST_IDS={barChart:{bar:{tooltip:"barChart.bar.tooltip."},xAxis:{secondaryLabel:"barChart.xAxis.secondaryLabel.",mainLabel:"barChart.xAxis.mainLabel."}},breadcrumbs:{item:"breadcrumbs.item"},creditCard:{cardField:"".concat(ID_CONSTANTS.CREDIT_CARD,".cardField"),cvcField:"".concat(ID_CONSTANTS.CREDIT_CARD,".cvcField"),expires:"".concat(ID_CONSTANTS.CREDIT_CARD,".expires"),nameField:"".concat(ID_CONSTANTS.CREDIT_CARD,".nameField")},dataCategory:{container:"".concat(ID_CONSTANTS.DATA_CATEGORY,".container"),collapseButton:"".concat(ID_CONSTANTS.DATA_CATEGORY,".collapseButton"),item:"".concat(ID_CONSTANTS.DATA_CATEGORY,".item")},dataElement:{container:"".concat(ID_CONSTANTS.DATA_ELEMENT,".container"),collapseButton:"".concat(ID_CONSTANTS.DATA_ELEMENT,".collapseButton"),switchAction:"".concat(ID_CONSTANTS.DATA_ELEMENT,".actionSwitch"),buttonAction:"".concat(ID_CONSTANTS.DATA_ELEMENT,".actionButton")},dialog:{acceptButton:"".concat(ID_CONSTANTS.DIALOG,".acceptButton"),cancelButton:"".concat(ID_CONSTANTS.DIALOG,".cancelButton"),closeButton:"".concat(ID_CONSTANTS.DIALOG,".closeButton"),title:"".concat(ID_CONSTANTS.DIALOG,".title")},filterGrouping:{groupingPanel:{collapsedPanelContent:{expandButton:"".concat(ID_CONSTANTS.FILTER_GROUPING,".").concat(ID_CONSTANTS.GROUPING_PANEL,".").concat(ID_CONSTANTS.COLLAPSED_PANEL_CONTENT,".").concat(ID_CONSTANTS.EXPAND_BUTTON)},expandedPanelContent:{expandedPanelContentCategory:"".concat(ID_CONSTANTS.FILTER_GROUPING,".").concat(ID_CONSTANTS.GROUPING_PANEL,".").concat(ID_CONSTANTS.EXPANDED_PANEL_CONTENT,".").concat(ID_CONSTANTS.EXPANDED_PANEL_CONTENT_CATEGORY),expandedPanelContentHeader:{addFilterButton:"".concat(ID_CONSTANTS.FILTER_GROUPING,".").concat(ID_CONSTANTS.GROUPING_PANEL,".").concat(ID_CONSTANTS.EXPANDED_PANEL_CONTENT,".").concat(ID_CONSTANTS.EXPANDED_PANEL_CONTENT_HEADER,".").concat(ID_CONSTANTS.ADD_FILTER_BUTTON),collapseButton:"".concat(ID_CONSTANTS.FILTER_GROUPING,".").concat(ID_CONSTANTS.GROUPING_PANEL,".").concat(ID_CONSTANTS.EXPANDED_PANEL_CONTENT,".").concat(ID_CONSTANTS.EXPANDED_PANEL_CONTENT_HEADER,".").concat(ID_CONSTANTS.COLLAPSE_BUTTON),collapseButtonTooltip:"".concat(ID_CONSTANTS.FILTER_GROUPING,".").concat(ID_CONSTANTS.GROUPING_PANEL,".").concat(ID_CONSTANTS.EXPANDED_PANEL_CONTENT,".").concat(ID_CONSTANTS.EXPANDED_PANEL_CONTENT_HEADER,".").concat(ID_CONSTANTS.COLLAPSE_BUTTON_TOOLTIP),customSearchAction:"".concat(ID_CONSTANTS.FILTER_GROUPING,".").concat(ID_CONSTANTS.GROUPING_PANEL,".").concat(ID_CONSTANTS.EXPANDED_PANEL_CONTENT,".").concat(ID_CONSTANTS.EXPANDED_PANEL_CONTENT_HEADER,".").concat(ID_CONSTANTS.CUSTOM_SEARCH_ACTION),searchButton:"".concat(ID_CONSTANTS.FILTER_GROUPING,".").concat(ID_CONSTANTS.GROUPING_PANEL,".").concat(ID_CONSTANTS.EXPANDED_PANEL_CONTENT,".").concat(ID_CONSTANTS.EXPANDED_PANEL_CONTENT_HEADER,".").concat(ID_CONSTANTS.SEARCH_BUTTON),searchButtonTooltip:"".concat(ID_CONSTANTS.FILTER_GROUPING,".").concat(ID_CONSTANTS.GROUPING_PANEL,".").concat(ID_CONSTANTS.EXPANDED_PANEL_CONTENT,".").concat(ID_CONSTANTS.EXPANDED_PANEL_CONTENT_HEADER,".").concat(ID_CONSTANTS.SEARCH_BUTTON_TOOLTIP),searchField:"".concat(ID_CONSTANTS.FILTER_GROUPING,".").concat(ID_CONSTANTS.GROUPING_PANEL,".").concat(ID_CONSTANTS.EXPANDED_PANEL_CONTENT,".").concat(ID_CONSTANTS.EXPANDED_PANEL_CONTENT_HEADER,".").concat(ID_CONSTANTS.SEARCH_FIELD),title:"".concat(ID_CONSTANTS.FILTER_GROUPING,".").concat(ID_CONSTANTS.GROUPING_PANEL,".").concat(ID_CONSTANTS.EXPANDED_PANEL_CONTENT,".").concat(ID_CONSTANTS.EXPANDED_PANEL_CONTENT_HEADER,".").concat(ID_CONSTANTS.TITLE)}}}},onboarding:{close:"".concat(ID_CONSTANTS.ONBOARDING,".close"),description:"".concat(ID_CONSTANTS.ONBOARDING,".description"),nextButton:"".concat(ID_CONSTANTS.ONBOARDING,".nextButton"),prevButton:"".concat(ID_CONSTANTS.ONBOARDING,".prevButton"),title:"".concat(ID_CONSTANTS.ONBOARDING,".title")},panel:{additionalContent:{body:"".concat(ID_CONSTANTS.PANEL,".").concat(ID_CONSTANTS.ADDITIONAL_CONTENT,".").concat(ID_CONSTANTS.ADDITIONAL_CONTENT_BODY),sidebar:"".concat(ID_CONSTANTS.PANEL,".").concat(ID_CONSTANTS.ADDITIONAL_CONTENT,".").concat(ID_CONSTANTS.SIDEBAR),sidebarButton:"".concat(ID_CONSTANTS.PANEL,".").concat(ID_CONSTANTS.ADDITIONAL_CONTENT,".").concat(ID_CONSTANTS.SIDEBAR_BUTTON,".")},backButton:"".concat(ID_CONSTANTS.PANEL,".backButton"),closeButton:"".concat(ID_CONSTANTS.PANEL,".closeButton"),mainAction:"".concat(ID_CONSTANTS.PANEL,".mainAction"),mainButton:"".concat(ID_CONSTANTS.PANEL,".").concat(ID_CONSTANTS.MAIN_BUTTON),paginationNext:"".concat(ID_CONSTANTS.PANEL,".").concat(ID_CONSTANTS.PAGINATION_NEXT),paginationPrev:"".concat(ID_CONSTANTS.PANEL,".").concat(ID_CONSTANTS.PAGINATION_PREV),secondaryAction:"".concat(ID_CONSTANTS.PANEL,".secondaryAction"),title:"".concat(ID_CONSTANTS.PANEL,".title")},signature:"signature",snackBar:{closeButton:"snackbar.closeButton",label:"snackbar.label"},statusMessage:{description:"".concat(ID_CONSTANTS.STATUS_MESSAGE,".description"),helperText:"".concat(ID_CONSTANTS.STATUS_MESSAGE,".helperText"),icon:"".concat(ID_CONSTANTS.STATUS_MESSAGE,".icon"),title:"".concat(ID_CONSTANTS.STATUS_MESSAGE,".title")},table:{tableHeader:{title:"".concat(ID_CONSTANTS.TABLE,".tableHeader.title")}},tabs:{tab:"tabs.tab."},wrapperObservation:{actionIcon:"wrapperObservation.actionIcon."},UTLoading:{logoLoader:"UTLoading.logoLoader",spinner:"UTLoading.spinner"},UTSnackbar:{closeButton:"".concat(ID_CONSTANTS.UT_SNACKBAR,".closeButton"),description:"".concat(ID_CONSTANTS.UT_SNACKBAR,".description"),label:"".concat(ID_CONSTANTS.UT_SNACKBAR,".label"),primaryActionButton:"".concat(ID_CONSTANTS.UT_SNACKBAR,".primaryActionButton"),root:"".concat(ID_CONSTANTS.UT_SNACKBAR,".root"),secondaryActionButton:"".concat(ID_CONSTANTS.UT_SNACKBAR,".secondaryActionButton")},UTDatePickerV1TestID:{calendar:"UTDatePickerV1.calendar",calendarPrevBtn:"UTDatePickerV1.calendarPrevBtn",calendarNextBtn:"UTDatePickerV1.calendarNextBtn",calendarMonthYear:"UTDatePickerV1.calendarMonthYear"},workflowContainer:{bottomNav:{backButton:"".concat(ID_CONSTANTS.WORKFLOW_CONTAINER,".").concat(ID_CONSTANTS.BOTTOM_NAV,".backButton"),nextButton:"".concat(ID_CONSTANTS.WORKFLOW_CONTAINER,".").concat(ID_CONSTANTS.BOTTOM_NAV,".nextButton"),primaryAction:"".concat(ID_CONSTANTS.WORKFLOW_CONTAINER,".").concat(ID_CONSTANTS.BOTTOM_NAV,".primaryAction"),secondaryAction:"".concat(ID_CONSTANTS.WORKFLOW_CONTAINER,".").concat(ID_CONSTANTS.BOTTOM_NAV,".secondaryAction")},header:{helpText:"".concat(ID_CONSTANTS.WORKFLOW_CONTAINER,".").concat(ID_CONSTANTS.HEADER,".helpText"),requiredFieldInfo:"".concat(ID_CONSTANTS.WORKFLOW_CONTAINER,".").concat(ID_CONSTANTS.HEADER,".requiredFieldInfo"),subtitle:"".concat(ID_CONSTANTS.WORKFLOW_CONTAINER,".").concat(ID_CONSTANTS.HEADER,".subtitle"),tagline:"".concat(ID_CONSTANTS.WORKFLOW_CONTAINER,".").concat(ID_CONSTANTS.HEADER,".tagline"),title:"".concat(ID_CONSTANTS.WORKFLOW_CONTAINER,".").concat(ID_CONSTANTS.HEADER,".title")}}};
1
+ export const ID_CONSTANTS={ACTIONS:"actions",ADD_FILTER_BUTTON:"addFilterButton",AVATAR:"avatar",BOTTOM_NAV:"bottomNav",CANVAS:"canvas",CELL:"cell",CLEAR_BUTTON:"clearButton",CLIENT_FILTER:"clientFilter",COLLAPSED_PANEL_CONTENT:"collapsedPanelContent",COLLAPSE_BUTTON:"collapseButton",COLLAPSE_BUTTON_TOOLTIP:"collapseButtonTooltip",CREDIT_CARD:"creditCard",CUSTOM_SEARCH_ACTION:"customSearchAction",DATA_CATEGORY:"dataCategory",DATA_ELEMENT:"dataElement",DELETE_BUTTON:"deleteButton",DELETE_BUTTON_TOOLTIP:"deleteButtonTooltip",ADDITIONAL_CONTENT:"additionalContent",ADDITIONAL_CONTENT_BODY:"additionalContentBody",DESCRIPTION:"description",DIALOG:"dialog",EDIT_BUTTON:"editButton",EDIT_BUTTON_TOOLTIP:"editButtonTooltip",EXPANDED_PANEL_CONTENT:"expandedPanelContent",EXPANDED_PANEL_CONTENT_CATEGORY:"expandedPanelContentCategory",EXPANDED_PANEL_CONTENT_CATEGORY_EMPTY:"expandedPanelContentCategoryEmpty",EXPANDED_PANEL_CONTENT_CATEGORY_HEADER:"expandedPanelContentCategoryHeader",EXPANDED_PANEL_CONTENT_CATEGORY_ITEM:"expandedPanelContentCategoryItem",EXPANDED_PANEL_CONTENT_HEADER:"expandedPanelContentHeader",EXPAND_BUTTON:"expandButton",FILTER_GROUPING:"filterGrouping",GROUPING_PANEL:"groupingPanel",HEADER:"header",HELP_TEXT:"helpText",ICON:"icon",INVALID_PARAMS:"invalidParams",LABEL:"label",MAIN_BUTTON:"mainButton",NAME:"name",NAME_CONTAINER:"nameContainer",ONBOARDING:"onboarding",PAGINATION_NEXT:"paginationNext",PAGINATION_PREV:"paginationPrev",PANEL:"panel",PERSISTENT_FILTER:"persistentFilter",PINNED:"pinned",POPPER:"popper",SEARCH_BUTTON:"searchButton",SECONDARY_ACTION:"secondaryAction",SEARCH_BUTTON_TOOLTIP:"searchButtonTooltip",SEARCH_FIELD:"searchField",SELECTION_COMPONENT:"selectionComponent",SIDEBAR:"sidebar",SIDEBAR_BUTTON:"sidebarButton",STATUS_MESSAGE:"statusMessage",TABLE:"table",TERTIARY_ACTION:"tertiaryAction",TABLE_ROW:"tableRow",TITLE:"title",USER_FILTER:"userFilter",UT_RICH_TEXT:"UTRichText",UT_SNACKBAR:"UTSnackbar",VALIDATION_DATA:"validationData",WORKFLOW_CONTAINER:"workflowContainer"};export const TEST_IDS={barChart:{bar:{tooltip:"barChart.bar.tooltip."},xAxis:{secondaryLabel:"barChart.xAxis.secondaryLabel.",mainLabel:"barChart.xAxis.mainLabel."}},breadcrumbs:{item:"breadcrumbs.item"},creditCard:{cardField:"".concat(ID_CONSTANTS.CREDIT_CARD,".cardField"),cvcField:"".concat(ID_CONSTANTS.CREDIT_CARD,".cvcField"),expires:"".concat(ID_CONSTANTS.CREDIT_CARD,".expires"),nameField:"".concat(ID_CONSTANTS.CREDIT_CARD,".nameField")},dataCategory:{container:"".concat(ID_CONSTANTS.DATA_CATEGORY,".container"),collapseButton:"".concat(ID_CONSTANTS.DATA_CATEGORY,".collapseButton"),item:"".concat(ID_CONSTANTS.DATA_CATEGORY,".item")},dataElement:{container:"".concat(ID_CONSTANTS.DATA_ELEMENT,".container"),collapseButton:"".concat(ID_CONSTANTS.DATA_ELEMENT,".collapseButton"),switchAction:"".concat(ID_CONSTANTS.DATA_ELEMENT,".actionSwitch"),buttonAction:"".concat(ID_CONSTANTS.DATA_ELEMENT,".actionButton")},dialog:{acceptButton:"".concat(ID_CONSTANTS.DIALOG,".acceptButton"),cancelButton:"".concat(ID_CONSTANTS.DIALOG,".cancelButton"),closeButton:"".concat(ID_CONSTANTS.DIALOG,".closeButton"),title:"".concat(ID_CONSTANTS.DIALOG,".title")},filterGrouping:{groupingPanel:{collapsedPanelContent:{expandButton:"".concat(ID_CONSTANTS.FILTER_GROUPING,".").concat(ID_CONSTANTS.GROUPING_PANEL,".").concat(ID_CONSTANTS.COLLAPSED_PANEL_CONTENT,".").concat(ID_CONSTANTS.EXPAND_BUTTON)},expandedPanelContent:{expandedPanelContentCategory:"".concat(ID_CONSTANTS.FILTER_GROUPING,".").concat(ID_CONSTANTS.GROUPING_PANEL,".").concat(ID_CONSTANTS.EXPANDED_PANEL_CONTENT,".").concat(ID_CONSTANTS.EXPANDED_PANEL_CONTENT_CATEGORY),expandedPanelContentHeader:{addFilterButton:"".concat(ID_CONSTANTS.FILTER_GROUPING,".").concat(ID_CONSTANTS.GROUPING_PANEL,".").concat(ID_CONSTANTS.EXPANDED_PANEL_CONTENT,".").concat(ID_CONSTANTS.EXPANDED_PANEL_CONTENT_HEADER,".").concat(ID_CONSTANTS.ADD_FILTER_BUTTON),collapseButton:"".concat(ID_CONSTANTS.FILTER_GROUPING,".").concat(ID_CONSTANTS.GROUPING_PANEL,".").concat(ID_CONSTANTS.EXPANDED_PANEL_CONTENT,".").concat(ID_CONSTANTS.EXPANDED_PANEL_CONTENT_HEADER,".").concat(ID_CONSTANTS.COLLAPSE_BUTTON),collapseButtonTooltip:"".concat(ID_CONSTANTS.FILTER_GROUPING,".").concat(ID_CONSTANTS.GROUPING_PANEL,".").concat(ID_CONSTANTS.EXPANDED_PANEL_CONTENT,".").concat(ID_CONSTANTS.EXPANDED_PANEL_CONTENT_HEADER,".").concat(ID_CONSTANTS.COLLAPSE_BUTTON_TOOLTIP),customSearchAction:"".concat(ID_CONSTANTS.FILTER_GROUPING,".").concat(ID_CONSTANTS.GROUPING_PANEL,".").concat(ID_CONSTANTS.EXPANDED_PANEL_CONTENT,".").concat(ID_CONSTANTS.EXPANDED_PANEL_CONTENT_HEADER,".").concat(ID_CONSTANTS.CUSTOM_SEARCH_ACTION),searchButton:"".concat(ID_CONSTANTS.FILTER_GROUPING,".").concat(ID_CONSTANTS.GROUPING_PANEL,".").concat(ID_CONSTANTS.EXPANDED_PANEL_CONTENT,".").concat(ID_CONSTANTS.EXPANDED_PANEL_CONTENT_HEADER,".").concat(ID_CONSTANTS.SEARCH_BUTTON),searchButtonTooltip:"".concat(ID_CONSTANTS.FILTER_GROUPING,".").concat(ID_CONSTANTS.GROUPING_PANEL,".").concat(ID_CONSTANTS.EXPANDED_PANEL_CONTENT,".").concat(ID_CONSTANTS.EXPANDED_PANEL_CONTENT_HEADER,".").concat(ID_CONSTANTS.SEARCH_BUTTON_TOOLTIP),searchField:"".concat(ID_CONSTANTS.FILTER_GROUPING,".").concat(ID_CONSTANTS.GROUPING_PANEL,".").concat(ID_CONSTANTS.EXPANDED_PANEL_CONTENT,".").concat(ID_CONSTANTS.EXPANDED_PANEL_CONTENT_HEADER,".").concat(ID_CONSTANTS.SEARCH_FIELD),title:"".concat(ID_CONSTANTS.FILTER_GROUPING,".").concat(ID_CONSTANTS.GROUPING_PANEL,".").concat(ID_CONSTANTS.EXPANDED_PANEL_CONTENT,".").concat(ID_CONSTANTS.EXPANDED_PANEL_CONTENT_HEADER,".").concat(ID_CONSTANTS.TITLE)}}}},onboarding:{close:"".concat(ID_CONSTANTS.ONBOARDING,".close"),description:"".concat(ID_CONSTANTS.ONBOARDING,".description"),nextButton:"".concat(ID_CONSTANTS.ONBOARDING,".nextButton"),prevButton:"".concat(ID_CONSTANTS.ONBOARDING,".prevButton"),title:"".concat(ID_CONSTANTS.ONBOARDING,".title")},panel:{additionalContent:{body:"".concat(ID_CONSTANTS.PANEL,".").concat(ID_CONSTANTS.ADDITIONAL_CONTENT,".").concat(ID_CONSTANTS.ADDITIONAL_CONTENT_BODY),sidebar:"".concat(ID_CONSTANTS.PANEL,".").concat(ID_CONSTANTS.ADDITIONAL_CONTENT,".").concat(ID_CONSTANTS.SIDEBAR),sidebarButton:"".concat(ID_CONSTANTS.PANEL,".").concat(ID_CONSTANTS.ADDITIONAL_CONTENT,".").concat(ID_CONSTANTS.SIDEBAR_BUTTON,".")},backButton:"".concat(ID_CONSTANTS.PANEL,".backButton"),closeButton:"".concat(ID_CONSTANTS.PANEL,".closeButton"),mainAction:"".concat(ID_CONSTANTS.PANEL,".mainAction"),mainButton:"".concat(ID_CONSTANTS.PANEL,".").concat(ID_CONSTANTS.MAIN_BUTTON),paginationNext:"".concat(ID_CONSTANTS.PANEL,".").concat(ID_CONSTANTS.PAGINATION_NEXT),paginationPrev:"".concat(ID_CONSTANTS.PANEL,".").concat(ID_CONSTANTS.PAGINATION_PREV),secondaryAction:"".concat(ID_CONSTANTS.PANEL,".secondaryAction"),title:"".concat(ID_CONSTANTS.PANEL,".title")},signature:"signature",snackBar:{closeButton:"snackbar.closeButton",label:"snackbar.label"},statusMessage:{description:"".concat(ID_CONSTANTS.STATUS_MESSAGE,".description"),helperText:"".concat(ID_CONSTANTS.STATUS_MESSAGE,".helperText"),icon:"".concat(ID_CONSTANTS.STATUS_MESSAGE,".icon"),title:"".concat(ID_CONSTANTS.STATUS_MESSAGE,".title")},table:{tableHeader:{title:"".concat(ID_CONSTANTS.TABLE,".tableHeader.title")}},tabs:{tab:"tabs.tab."},wrapperObservation:{actionIcon:"wrapperObservation.actionIcon."},UTLoading:{logoLoader:"UTLoading.logoLoader",spinner:"UTLoading.spinner"},UTRichText:{content:"".concat(ID_CONSTANTS.UT_RICH_TEXT,".content"),field:"".concat(ID_CONSTANTS.UT_RICH_TEXT,".field"),helpText:"".concat(ID_CONSTANTS.UT_RICH_TEXT,".").concat(ID_CONSTANTS.HELP_TEXT),label:"".concat(ID_CONSTANTS.UT_RICH_TEXT,".").concat(ID_CONSTANTS.LABEL),root:"".concat(ID_CONSTANTS.UT_RICH_TEXT,".root"),submitButton:"".concat(ID_CONSTANTS.UT_RICH_TEXT,".submitButton"),tableToolbar:{addColumnAfter:"".concat(ID_CONSTANTS.UT_RICH_TEXT,".tableToolbar.addColumnAfter"),addColumnBefore:"".concat(ID_CONSTANTS.UT_RICH_TEXT,".tableToolbar.addColumnBefore"),addRowAfter:"".concat(ID_CONSTANTS.UT_RICH_TEXT,".tableToolbar.addRowAfter"),deleteColumn:"".concat(ID_CONSTANTS.UT_RICH_TEXT,".tableToolbar.deleteColumn"),deleteRow:"".concat(ID_CONSTANTS.UT_RICH_TEXT,".tableToolbar.deleteRow"),deleteTable:"".concat(ID_CONSTANTS.UT_RICH_TEXT,".tableToolbar.deleteTable"),root:"".concat(ID_CONSTANTS.UT_RICH_TEXT,".tableToolbar.root")},toolbar:{bold:"".concat(ID_CONSTANTS.UT_RICH_TEXT,".toolbar.bold"),italic:"".concat(ID_CONSTANTS.UT_RICH_TEXT,".toolbar.italic"),list:"".concat(ID_CONSTANTS.UT_RICH_TEXT,".toolbar.list"),listNumbers:"".concat(ID_CONSTANTS.UT_RICH_TEXT,".toolbar.listNumbers"),root:"".concat(ID_CONSTANTS.UT_RICH_TEXT,".toolbar.root"),table:"".concat(ID_CONSTANTS.UT_RICH_TEXT,".toolbar.table")},validation:"".concat(ID_CONSTANTS.UT_RICH_TEXT,".").concat(ID_CONSTANTS.VALIDATION_DATA)},UTSnackbar:{closeButton:"".concat(ID_CONSTANTS.UT_SNACKBAR,".closeButton"),description:"".concat(ID_CONSTANTS.UT_SNACKBAR,".description"),label:"".concat(ID_CONSTANTS.UT_SNACKBAR,".label"),primaryActionButton:"".concat(ID_CONSTANTS.UT_SNACKBAR,".primaryActionButton"),root:"".concat(ID_CONSTANTS.UT_SNACKBAR,".root"),secondaryActionButton:"".concat(ID_CONSTANTS.UT_SNACKBAR,".secondaryActionButton")},UTDatePickerV1TestID:{calendar:"UTDatePickerV1.calendar",calendarPrevBtn:"UTDatePickerV1.calendarPrevBtn",calendarNextBtn:"UTDatePickerV1.calendarNextBtn",calendarMonthYear:"UTDatePickerV1.calendarMonthYear"},workflowContainer:{bottomNav:{backButton:"".concat(ID_CONSTANTS.WORKFLOW_CONTAINER,".").concat(ID_CONSTANTS.BOTTOM_NAV,".backButton"),nextButton:"".concat(ID_CONSTANTS.WORKFLOW_CONTAINER,".").concat(ID_CONSTANTS.BOTTOM_NAV,".nextButton"),primaryAction:"".concat(ID_CONSTANTS.WORKFLOW_CONTAINER,".").concat(ID_CONSTANTS.BOTTOM_NAV,".primaryAction"),secondaryAction:"".concat(ID_CONSTANTS.WORKFLOW_CONTAINER,".").concat(ID_CONSTANTS.BOTTOM_NAV,".secondaryAction")},header:{helpText:"".concat(ID_CONSTANTS.WORKFLOW_CONTAINER,".").concat(ID_CONSTANTS.HEADER,".helpText"),requiredFieldInfo:"".concat(ID_CONSTANTS.WORKFLOW_CONTAINER,".").concat(ID_CONSTANTS.HEADER,".requiredFieldInfo"),subtitle:"".concat(ID_CONSTANTS.WORKFLOW_CONTAINER,".").concat(ID_CONSTANTS.HEADER,".subtitle"),tagline:"".concat(ID_CONSTANTS.WORKFLOW_CONTAINER,".").concat(ID_CONSTANTS.HEADER,".tagline"),title:"".concat(ID_CONSTANTS.WORKFLOW_CONTAINER,".").concat(ID_CONSTANTS.HEADER,".title")}}};
package/dist/esm/index.js CHANGED
@@ -1 +1 @@
1
- import AlertHandler from"./components/UTAlert/AlertHandler";import componentUtils from"./utils/componentUtils";import ThemeProvider from"./components/EnergyThemeProvider";import keyboardUtils from"./utils/keyboardUtils";import UTActionCard from"./components/UTActionCard";import UTAlert from"./components/UTAlert";import UTAttachmentList from"./components/UTAttachmentList";import AttachmentContainer from"./deprecated/UTAttachment";import UTAutocomplete from"./deprecated/UTAutocomplete";import UTAvatar from"./components/UTAvatar";import UTBadge from"./components/UTBadge";import UTBanner from"./components/UTBanner";import UTBarChart from"./deprecated/UTBarChart";import UTBreadcrumbs from"./components/UTBreadcrumbs";import UTButton from"./components/UTButton";import UTButtonGroup from"./components/UTButtonGroup";import UTCaptcha from"./components/UTCaptcha";import UTCard from"./deprecated/UTCard";import UTCarousel from"./components/UTCarousel";import UTCBUInput from"./components/UTCBUInput";import UTCheckbox from"./components/UTCheckbox";import UTCheckList from"./components/UTCheckList";import UTChip from"./components/UTChip";import UTConsumptionBar from"./components/UTConsumptionBar";import UTCreditCard from"./components/UTCreditCard";import UTCuit from"./components/UTCuit";import UTDataCategory from"./components/UTDataCategory";import UTDataElement from"./components/UTDataElement";import UTDatePicker from"./components/UTDatePicker";import UTDialog from"./deprecated/UTDialog";import UTDocumentWizard from"./components/UTDocumentWizard";import UTDotMenu from"./components/UTDotMenu";import UTEmojiPicker from"./components/UTEmojiPicker";import UTExternalLink from"./components/UTExternalLink";import UTFileInputContainer from"./components/UTFileInput";import UTShortcutPanel from"./components/UTShortcutPanel";import UTGoogleAutocomplete from"./components/UTGoogleAutocomplete";import UTGraph from"./components/UTGraph";import UTIcon from"./components/UTIcon";import UTIconButton from"./deprecated/UTIconButton";import UTImageRadio from"./components/UTImageRadio";import UTKpi from"./components/UTKpi";import UTLabel from"./components/UTLabel";import UTList from"./deprecated/UTList";import UTLoading from"./components/UTLoading";import UTMap from"./components/UTMap";import UTMenu from"./components/UTMenu";import UTModal from"./components/UTModal";import UTOnboarding from"./components/UTOnboarding";import UTPagination from"./components/UTPagination";import UTPanel from"./components/UTPanel";import UTPasswordField from"./components/UTPasswordField";import UTPhoneInput from"./components/UTPhoneInput";import UTPieChart from"./deprecated/UTPieChart";import UTPopper from"./components/UTPopper";import UTPopUp from"./components/UTPopUp";import UTProductItem from"./components/UTProductItem";import UTProgressBar from"./components/UTProgressBar";import UTRadioGroup from"./components/UTRadioGroup";import UTRatingContainer from"./components/UTRating";import UTSearchField from"./components/UTSearchField";import UTSelect from"./components/UTSelect";import UTSelectableCard from"./components/UTSelectableCard";import UTSidebar from"./components/UTSidebar";import UTSignature from"./components/UTSignature";import Skeleton from"./components/UTSkeleton";import UTSnackbar from"./components/UTSnackbar";import UTStatus from"./components/UTStatus";import UTStatusMessage from"./components/UTStatusMessage";import UTSwitch from"./components/UTSwitch";import UTTable from"./components/UTTable";import UTTabs from"./components/UTTabs";import UTTextArea from"./components/UTTextArea";import UTTextInput from"./components/UTTextInput";import UTThirdPartyCookieChecker from"./components/UTThirdPartyCookieChecker";import UTToggle from"./deprecated/UTToggle";import UTTooltip from"./components/UTTooltip";import UTTopbar from"./components/UTTopbar";import UTTouchableWithoutFeedback from"./components/UTTouchableWithoutFeedback";import UTTracker from"./components/UTTracker";import UTValidation from"./components/UTValidation";import UTVirtualizedList from"./components/UTVirtualizedList";import UTVirtualKeyboard from"./components/UTVirtualKeyboard";import UTWorkflowContainer from"./components/UTWorkflowContainer";import UTWrapperObservation from"./components/UTWrapperObservation";import WithLoading from"./components/WithLoading";import WithTouch from"./components/WithTouch";import stylesDeduplicationUtils from"./utils/stylesDeduplicationUtils";import useScrollBasedMenu from"./utils/hooks/use-scroll-based-menu";import useCSSVariables from"./utils/hooks/useCSSVariables";import UTCalendar from"./components/UTCalendar";export{AttachmentContainer as UTAttachment};export{UTAutocomplete};export{UTBarChart};export{UTCard};export{UTDialog};export{UTIconButton};export{UTList};export{UTPieChart};export{UTToggle};export{AlertHandler,componentUtils,ThemeProvider as EnergyThemeProvider,keyboardUtils,stylesDeduplicationUtils,useCSSVariables,UTCalendar,UTActionCard,UTAlert,UTAttachmentList,UTAvatar,UTBadge,UTBanner,UTBreadcrumbs,UTButton,UTButtonGroup,UTCaptcha,UTCarousel,UTCBUInput,UTCheckbox,UTCheckList,UTChip,UTConsumptionBar,UTCreditCard,UTCuit,UTDataCategory,UTDataElement,UTDatePicker,UTDocumentWizard,UTDotMenu,UTEmojiPicker,UTExternalLink,UTFileInputContainer as UTFileInput,UTShortcutPanel,UTGoogleAutocomplete,UTGraph,UTIcon,UTImageRadio,UTKpi,UTLabel,UTLoading,UTMap,UTMenu,UTModal,UTOnboarding,UTPagination,UTPanel,UTPasswordField,UTPhoneInput,UTPopper,UTPopUp,UTProductItem,UTProgressBar,UTRadioGroup,UTRatingContainer as UTRating,UTSearchField,UTSelect,UTSelectableCard,UTSidebar,UTSignature,Skeleton as UTSkeleton,UTSnackbar,UTStatus,UTStatusMessage,UTSwitch,UTTable,UTTabs,UTTextArea,UTTextInput,UTThirdPartyCookieChecker,UTTooltip,UTTopbar,UTTouchableWithoutFeedback,UTTracker,UTValidation,UTVirtualizedList,UTVirtualKeyboard,UTWorkflowContainer,UTWrapperObservation,WithLoading,WithTouch,useScrollBasedMenu};
1
+ import AlertHandler from"./components/UTAlert/AlertHandler";import componentUtils from"./utils/componentUtils";import ThemeProvider from"./components/EnergyThemeProvider";import keyboardUtils from"./utils/keyboardUtils";import UTActionCard from"./components/UTActionCard";import UTAlert from"./components/UTAlert";import UTAttachmentList from"./components/UTAttachmentList";import AttachmentContainer from"./deprecated/UTAttachment";import UTAutocomplete from"./deprecated/UTAutocomplete";import UTAvatar from"./components/UTAvatar";import UTBadge from"./components/UTBadge";import UTBanner from"./components/UTBanner";import UTBarChart from"./deprecated/UTBarChart";import UTBreadcrumbs from"./components/UTBreadcrumbs";import UTButton from"./components/UTButton";import UTButtonGroup from"./components/UTButtonGroup";import UTCaptcha from"./components/UTCaptcha";import UTCard from"./deprecated/UTCard";import UTCarousel from"./components/UTCarousel";import UTCBUInput from"./components/UTCBUInput";import UTCheckbox from"./components/UTCheckbox";import UTCheckList from"./components/UTCheckList";import UTChip from"./components/UTChip";import UTConsumptionBar from"./components/UTConsumptionBar";import UTCreditCard from"./components/UTCreditCard";import UTCuit from"./components/UTCuit";import UTDataCategory from"./components/UTDataCategory";import UTDataElement from"./components/UTDataElement";import UTDatePicker from"./components/UTDatePicker";import UTDialog from"./deprecated/UTDialog";import UTDocumentWizard from"./components/UTDocumentWizard";import UTDotMenu from"./components/UTDotMenu";import UTEmojiPicker from"./components/UTEmojiPicker";import UTExternalLink from"./components/UTExternalLink";import UTFileInputContainer from"./components/UTFileInput";import UTShortcutPanel from"./components/UTShortcutPanel";import UTGoogleAutocomplete from"./components/UTGoogleAutocomplete";import UTGraph from"./components/UTGraph";import UTIcon from"./components/UTIcon";import UTIconButton from"./deprecated/UTIconButton";import UTImageRadio from"./components/UTImageRadio";import UTKpi from"./components/UTKpi";import UTLabel from"./components/UTLabel";import UTList from"./deprecated/UTList";import UTLoading from"./components/UTLoading";import UTMap from"./components/UTMap";import UTMenu from"./components/UTMenu";import UTModal from"./components/UTModal";import UTOnboarding from"./components/UTOnboarding";import UTPagination from"./components/UTPagination";import UTPanel from"./components/UTPanel";import UTPasswordField from"./components/UTPasswordField";import UTPhoneInput from"./components/UTPhoneInput";import UTPieChart from"./deprecated/UTPieChart";import UTPopper from"./components/UTPopper";import UTPopUp from"./components/UTPopUp";import UTProductItem from"./components/UTProductItem";import UTProgressBar from"./components/UTProgressBar";import UTRadioGroup from"./components/UTRadioGroup";import UTRatingContainer from"./components/UTRating";import UTSearchField from"./components/UTSearchField";import UTSelect from"./components/UTSelect";import UTSelectableCard from"./components/UTSelectableCard";import UTSidebar from"./components/UTSidebar";import UTSignature from"./components/UTSignature";import Skeleton from"./components/UTSkeleton";import UTSnackbar from"./components/UTSnackbar";import UTStatus from"./components/UTStatus";import UTStatusMessage from"./components/UTStatusMessage";import UTSwitch from"./components/UTSwitch";import UTTable from"./components/UTTable";import UTTabs from"./components/UTTabs";import UTTextArea from"./components/UTTextArea";import UTTextInput from"./components/UTTextInput";import UTThirdPartyCookieChecker from"./components/UTThirdPartyCookieChecker";import UTToggle from"./deprecated/UTToggle";import UTTooltip from"./components/UTTooltip";import UTTopbar from"./components/UTTopbar";import UTTouchableWithoutFeedback from"./components/UTTouchableWithoutFeedback";import UTTracker from"./components/UTTracker";import UTValidation from"./components/UTValidation";import UTVirtualizedList from"./components/UTVirtualizedList";import UTVirtualKeyboard from"./components/UTVirtualKeyboard";import UTWorkflowContainer from"./components/UTWorkflowContainer";import UTWrapperObservation from"./components/UTWrapperObservation";import WithLoading from"./components/WithLoading";import WithTouch from"./components/WithTouch";import stylesDeduplicationUtils from"./utils/stylesDeduplicationUtils";import useScrollBasedMenu from"./utils/hooks/use-scroll-based-menu";import useCSSVariables from"./utils/hooks/useCSSVariables";import UTCalendar from"./components/UTCalendar";import{buildTableExtensions,buildTableNode}from"./components/UTRichText/utils/contentBuilders";export{AttachmentContainer as UTAttachment};export{UTAutocomplete};export{UTBarChart};export{UTCard};export{UTDialog};export{UTIconButton};export{UTList};export{UTPieChart};export{UTToggle};export{AlertHandler,componentUtils,ThemeProvider as EnergyThemeProvider,keyboardUtils,stylesDeduplicationUtils,useCSSVariables,UTCalendar,UTActionCard,UTAlert,UTAttachmentList,UTAvatar,UTBadge,UTBanner,UTBreadcrumbs,UTButton,UTButtonGroup,UTCaptcha,UTCarousel,UTCBUInput,UTCheckbox,UTCheckList,UTChip,UTConsumptionBar,UTCreditCard,UTCuit,UTDataCategory,UTDataElement,UTDatePicker,UTDocumentWizard,UTDotMenu,UTEmojiPicker,UTExternalLink,UTFileInputContainer as UTFileInput,UTShortcutPanel,UTGoogleAutocomplete,UTGraph,UTIcon,UTImageRadio,UTKpi,UTLabel,UTLoading,UTMap,UTMenu,UTModal,UTOnboarding,UTPagination,UTPanel,UTPasswordField,UTPhoneInput,UTPopper,UTPopUp,UTProductItem,UTProgressBar,UTRadioGroup,UTRatingContainer as UTRating,UTSearchField,UTSelect,UTSelectableCard,UTSidebar,UTSignature,Skeleton as UTSkeleton,UTSnackbar,UTStatus,UTStatusMessage,UTSwitch,UTTable,UTTabs,UTTextArea,UTTextInput,UTThirdPartyCookieChecker,UTTooltip,UTTopbar,UTTouchableWithoutFeedback,UTTracker,UTValidation,UTVirtualizedList,UTVirtualKeyboard,UTWorkflowContainer,UTWrapperObservation,WithLoading,WithTouch,useScrollBasedMenu,buildTableExtensions,buildTableNode};export{generateHTML}from"@tiptap/html";