aiware-js 1.0.0-master.1333 → 1.0.0-master.1335

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 (84) hide show
  1. package/js-core.esm105.js +1 -1
  2. package/js-core.esm105.js.gz +0 -0
  3. package/js-core.esm106.js +1 -1
  4. package/js-core.esm106.js.gz +0 -0
  5. package/js-core.esm11.js +1 -1
  6. package/js-core.esm11.js.gz +0 -0
  7. package/js-core.esm114.js +1 -1
  8. package/js-core.esm114.js.gz +0 -0
  9. package/js-core.esm116.js +1 -1
  10. package/js-core.esm116.js.gz +0 -0
  11. package/js-core.esm118.js +1 -1
  12. package/js-core.esm118.js.gz +0 -0
  13. package/js-core.esm119.js +1 -1
  14. package/js-core.esm119.js.gz +0 -0
  15. package/js-core.esm121.js +1 -1
  16. package/js-core.esm121.js.gz +0 -0
  17. package/js-core.esm122.js +1 -1
  18. package/js-core.esm122.js.gz +0 -0
  19. package/js-core.esm123.js +1 -1
  20. package/js-core.esm123.js.gz +0 -0
  21. package/js-core.esm124.js +1 -1
  22. package/js-core.esm124.js.gz +0 -0
  23. package/js-core.esm125.js +1 -1
  24. package/js-core.esm125.js.gz +0 -0
  25. package/js-core.esm126.js +1 -1
  26. package/js-core.esm126.js.gz +0 -0
  27. package/js-core.esm127.js +1 -1
  28. package/js-core.esm127.js.gz +0 -0
  29. package/js-core.esm129.js +1 -1
  30. package/js-core.esm129.js.gz +0 -0
  31. package/js-core.esm130.js +1 -1
  32. package/js-core.esm130.js.gz +0 -0
  33. package/js-core.esm131.js +1 -1
  34. package/js-core.esm131.js.gz +0 -0
  35. package/js-core.esm18.js +1 -1
  36. package/js-core.esm18.js.gz +0 -0
  37. package/js-core.esm27.js +1 -1
  38. package/js-core.esm27.js.gz +0 -0
  39. package/js-core.esm38.js +1 -1
  40. package/js-core.esm38.js.gz +0 -0
  41. package/js-core.esm4.js +1 -1
  42. package/js-core.esm4.js.gz +0 -0
  43. package/js-core.esm43.js +1 -1
  44. package/js-core.esm43.js.gz +0 -0
  45. package/js-core.esm49.js +1 -1
  46. package/js-core.esm49.js.gz +0 -0
  47. package/js-core.esm58.js +1 -1
  48. package/js-core.esm58.js.gz +0 -0
  49. package/js-core.esm63.js +1 -1
  50. package/js-core.esm63.js.gz +0 -0
  51. package/js-core.esm65.js +1 -1
  52. package/js-core.esm65.js.gz +0 -0
  53. package/js-core.esm66.js +1 -1
  54. package/js-core.esm66.js.gz +0 -0
  55. package/js-core.esm67.js +6 -6
  56. package/js-core.esm67.js.gz +0 -0
  57. package/js-core.esm7.js +1 -1
  58. package/js-core.esm7.js.gz +0 -0
  59. package/js-core.esm70.js +1 -1
  60. package/js-core.esm70.js.gz +0 -0
  61. package/js-core.esm73.js +1 -1
  62. package/js-core.esm73.js.gz +0 -0
  63. package/js-core.esm74.js +1 -1
  64. package/js-core.esm74.js.gz +0 -0
  65. package/js-core.esm75.js +1 -1
  66. package/js-core.esm75.js.gz +0 -0
  67. package/js-core.esm8.js +1 -1
  68. package/js-core.esm8.js.gz +0 -0
  69. package/js-core.esm81.js +1 -1
  70. package/js-core.esm81.js.gz +0 -0
  71. package/js-core.esm82.js +1 -1
  72. package/js-core.esm82.js.gz +0 -0
  73. package/js-core.esm89.js +1 -1
  74. package/js-core.esm89.js.gz +0 -0
  75. package/js-core.esm9.js +2 -2
  76. package/js-core.esm9.js.gz +0 -0
  77. package/js-core.esm93.js +1 -1
  78. package/js-core.esm93.js.gz +0 -0
  79. package/js-core.umd.css +1820 -0
  80. package/js-core.umd.js +5532 -0
  81. package/js-core.umd.min.css +1820 -0
  82. package/locales/es.json +1 -1
  83. package/locales/fr.json +1 -1
  84. package/package.json +1 -1
package/js-core.esm105.js CHANGED
@@ -1 +1 @@
1
- import{u as useSelector,r as reactExports,j as jsxRuntimeExports}from"./js-core.esm4.js";import{s as selectContentTemplatesToSave,C as ContentTemplates}from"./js-core.esm67.js";import{s as selectIsEditMode,E as ENextButtonType,b as selectUpdateJobErrors,c as actions$8,S as SHARED_TEXT,P as PanelControls$1}from"./js-core.esm74.js";import{m as makeStyles,T as Typography}from"./js-core.esm7.js";import"./js-core.esm66.js";import"./js-core.esm9.js";import"./js-core.esm51.js";import"./js-core.esm63.js";import{u as useDispatch}from"./js-core.esm14.js";import"./js-core.esm39.js";import"./js-core.esm28.js";import"./js-core.esm29.js";import"./js-core.esm24.js";import"./js-core.esm59.js";import"./js-core.esm49.js";import"./js-core.esm70.js";import"./js-core.esm53.js";import"./js-core.esm8.js";import"./js-core.esm71.js";import"./js-core.esm27.js";import"./js-core.esm25.js";import"./js-core.esm17.js";import"./js-core.esm76.js";import"./js-core.esm48.js";import"./js-core.esm31.js";import"./js-core.esm64.js";import"./js-core.esm13.js";import"./js-core.esm68.js";import"./js-core.esm33.js";import"./js-core.esm69.js";import"./js-core.esm60.js";import"./js-core.esm30.js";import"./js-core.esm32.js";import"./js-core.esm52.js";var useStyles=makeStyles()(function(e){return{contentTemplatesWrapper:{height:"calc(100vh - 300px)",overflow:"hidden"},contentTemplatesWidget:{height:"calc(100% - 24px)"}}}),selectExistingTemplates=function(e){return e.processingCenterIngestion.contentTemplatesStep.existingTemplates||[]},ContentTemplatesStep=function(){var e=useDispatch(),s=useSelector(selectExistingTemplates)||[],t=useStyles().classes,o=useSelector(selectContentTemplatesToSave),r=Object.keys(o||{}).map(function(e){return o[e]}),m=0===r.length,r=r.every(function(e){return!e.touched||e.submitted&&!e.errors}),p=useSelector(selectIsEditMode),c=m?ENextButtonType.SKIP:ENextButtonType.NEXT,j=m||r,m=useSelector(selectUpdateJobErrors);return reactExports.useEffect(function(){p&&e(actions$8.setUpdateJobErrors({add:!j,tabIndex:5}))},[p,j]),jsxRuntimeExports.jsxs("div",{className:t.contentTemplatesWrapper,children:[jsxRuntimeExports.jsx(Typography,{variant:"body1",children:SHARED_TEXT.ingestionJobsWizard.stepLabels.contentTemplates()}),jsxRuntimeExports.jsx("div",{className:t.contentTemplatesWidget,children:jsxRuntimeExports.jsx(ContentTemplates,{existingTemplates:s})}),jsxRuntimeExports.jsx(PanelControls$1,{disableNext:!j||0<m.length,disableBack:!1,nextButtonType:p?ENextButtonType.UPDATE_SCHEDULED_JOB:c})]})};export{ContentTemplatesStep as default};
1
+ import{u as useSelector,r as reactExports,j as jsxRuntimeExports}from"./js-core.esm4.js";import{s as selectContentTemplatesToSave,C as ContentTemplates}from"./js-core.esm67.js";import{s as selectIsEditMode,E as ENextButtonType,b as selectUpdateJobErrors,c as actions$8,S as SHARED_TEXT,P as PanelControls$1}from"./js-core.esm74.js";import{m as makeStyles,T as Typography}from"./js-core.esm7.js";import"./js-core.esm66.js";import"./js-core.esm9.js";import"./js-core.esm51.js";import"./js-core.esm63.js";import{u as useDispatch}from"./js-core.esm14.js";import"./js-core.esm39.js";import"./js-core.esm70.js";import"./js-core.esm28.js";import"./js-core.esm29.js";import"./js-core.esm24.js";import"./js-core.esm59.js";import"./js-core.esm49.js";import"./js-core.esm53.js";import"./js-core.esm8.js";import"./js-core.esm71.js";import"./js-core.esm27.js";import"./js-core.esm25.js";import"./js-core.esm17.js";import"./js-core.esm76.js";import"./js-core.esm48.js";import"./js-core.esm31.js";import"./js-core.esm64.js";import"./js-core.esm13.js";import"./js-core.esm68.js";import"./js-core.esm33.js";import"./js-core.esm69.js";import"./js-core.esm60.js";import"./js-core.esm30.js";import"./js-core.esm32.js";import"./js-core.esm52.js";var useStyles=makeStyles()(function(e){return{contentTemplatesWrapper:{height:"calc(100vh - 300px)",overflow:"hidden"},contentTemplatesWidget:{height:"calc(100% - 24px)"}}}),selectExistingTemplates=function(e){return e.processingCenterIngestion.contentTemplatesStep.existingTemplates||[]},ContentTemplatesStep=function(){var e=useDispatch(),s=useSelector(selectExistingTemplates)||[],t=useStyles().classes,o=useSelector(selectContentTemplatesToSave),r=Object.keys(o||{}).map(function(e){return o[e]}),m=0===r.length,r=r.every(function(e){return!e.touched||e.submitted&&!e.errors}),p=useSelector(selectIsEditMode),c=m?ENextButtonType.SKIP:ENextButtonType.NEXT,j=m||r,m=useSelector(selectUpdateJobErrors);return reactExports.useEffect(function(){p&&e(actions$8.setUpdateJobErrors({add:!j,tabIndex:5}))},[p,j]),jsxRuntimeExports.jsxs("div",{className:t.contentTemplatesWrapper,children:[jsxRuntimeExports.jsx(Typography,{variant:"body1",children:SHARED_TEXT.ingestionJobsWizard.stepLabels.contentTemplates()}),jsxRuntimeExports.jsx("div",{className:t.contentTemplatesWidget,children:jsxRuntimeExports.jsx(ContentTemplates,{existingTemplates:s})}),jsxRuntimeExports.jsx(PanelControls$1,{disableNext:!j||0<m.length,disableBack:!1,nextButtonType:p?ENextButtonType.UPDATE_SCHEDULED_JOB:c})]})};export{ContentTemplatesStep as default};
Binary file
package/js-core.esm106.js CHANGED
@@ -1 +1 @@
1
- import{u as useSelector,ao as selectIsFullscreenEnabled,r as reactExports,j as jsxRuntimeExports,v as mountPanel,o as unmountPanel,b1 as img$P}from"./js-core.esm4.js";import{d as selectSelectedDagTemplate,e as selectDagTemplateId,f as selectDagTemplatesLoadingStatus,s as selectIsEditMode,b as selectUpdateJobErrors,g as selectActiveEngine,h as selectAllDagTemplates,c as actions$8,i as actions$4,S as SHARED_TEXT,P as PanelControls$1,E as ENextButtonType,j as selectDagTemplatesHasMore}from"./js-core.esm74.js";import{m as makeStyles,T as Typography,B as Button,O as ErrorState}from"./js-core.esm7.js";import{c as Skeleton,u as AutoSizer,w as InfiniteLoader,V as VariableSizeList,T as Tooltip,I as IconButton,ak as EditOutlined,a as Chip}from"./js-core.esm9.js";import"./js-core.esm66.js";import"./js-core.esm67.js";import"./js-core.esm51.js";import"./js-core.esm63.js";import{u as useDispatch}from"./js-core.esm14.js";import"./js-core.esm53.js";import"./js-core.esm76.js";import"./js-core.esm25.js";import"./js-core.esm17.js";import"./js-core.esm27.js";import"./js-core.esm8.js";import"./js-core.esm48.js";import"./js-core.esm31.js";import"./js-core.esm64.js";import"./js-core.esm28.js";import"./js-core.esm29.js";import"./js-core.esm13.js";import"./js-core.esm68.js";import"./js-core.esm33.js";import"./js-core.esm69.js";import"./js-core.esm60.js";import"./js-core.esm30.js";import"./js-core.esm32.js";import"./js-core.esm39.js";import"./js-core.esm24.js";import"./js-core.esm59.js";import"./js-core.esm49.js";import"./js-core.esm70.js";import"./js-core.esm71.js";import"./js-core.esm52.js";var useStyles$4=makeStyles()(function(e){return{container:{display:"flex",flexDirection:"column",justifyContent:"flex-start",alignItems:"center",width:"100%",height:"100%",background:"#fff",borderRadius:"6px",overflow:"hidden",flexWrap:"wrap"},image:{display:"flex",textAlign:"center",width:"235px",height:"235px",marginBottom:e.spacing(2)},message:{userSelect:"none",paddingBottom:e.spacing(2)}}}),DagTemplatesLoadingState=function(){var e=useStyles$4().classes;return jsxRuntimeExports.jsx("div",{className:e.container,children:new Array(15).fill(null).map(function(e,t){return jsxRuntimeExports.jsx(DagTemplateLoadingRow,{},t)})})},DagTemplateLoadingRow=function(){var e=makeStyles()(function(e){return{container:{display:"flex",justifyContent:"space-between",alignItems:"center",width:"100%",height:"50px",background:"#fff",borderBottom:"1px solid #f7f7f7",borderRadius:"6px",padding:"0px 15px"},title:{width:"25%",height:"70%"},button:{width:"12%",height:"80%"}}})().classes;return jsxRuntimeExports.jsxs("div",{className:e.container,children:[jsxRuntimeExports.jsx(Skeleton,{className:e.title}),jsxRuntimeExports.jsx(Skeleton,{className:e.button})]})},useStyles$3=makeStyles()(function(e){return{container:{display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"center",paddingTop:e.spacing(18),width:"100%",height:"100%",background:"#fff",borderRadius:"6px"},image:{display:"flex",textAlign:"center",width:"235px",height:"235px",marginBottom:e.spacing(2)},message:{userSelect:"none",paddingBottom:e.spacing(2)}}}),DagTemplatesEmptyState=function(){var e=useStyles$3().classes;return jsxRuntimeExports.jsxs("div",{className:e.container,children:[jsxRuntimeExports.jsx("img",{"data-testid":"pc-dag-templates-empty-image",alt:"empty-asset",className:e.image,src:img$P}),jsxRuntimeExports.jsx(Typography,{"data-testid":"pc-dag-templates-empty-message",className:e.message,variant:"h3",color:"textPrimary",children:SHARED_TEXT.processing.emptyState()})]})};function _array_like_to_array(e,t){(null==t||t>e.length)&&(t=e.length);for(var s=0,r=new Array(t);s<t;s++)r[s]=e[s];return r}function _array_with_holes(e){if(Array.isArray(e))return e}function _define_property$1(e,t,s){return t in e?Object.defineProperty(e,t,{value:s,enumerable:!0,configurable:!0,writable:!0}):e[t]=s,e}function _iterable_to_array_limit(e,t){var s=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=s){var r,n,o=[],i=!0,a=!1;try{for(s=s.call(e);!(i=(r=s.next()).done)&&(o.push(r.value),!t||o.length!==t);i=!0);}catch(e){a=!0,n=e}finally{try{i||null==s.return||s.return()}finally{if(a)throw n}}return o}}function _non_iterable_rest(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function _object_spread$1(t){for(var e=1;e<arguments.length;e++){var s=null!=arguments[e]?arguments[e]:{},r=Object.keys(s);(r="function"==typeof Object.getOwnPropertySymbols?r.concat(Object.getOwnPropertySymbols(s).filter(function(e){return Object.getOwnPropertyDescriptor(s,e).enumerable})):r).forEach(function(e){_define_property$1(t,e,s[e])})}return t}function ownKeys$1(e,t){var s=Object.keys(e);return Object.getOwnPropertySymbols&&(e=Object.getOwnPropertySymbols(e),s.push.apply(s,e)),s}function _object_spread_props$1(t,s){return s=null!=s?s:{},Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(s)):ownKeys$1(Object(s)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(s,e))}),t}function _object_without_properties(e,t){if(null==e)return{};var s,r=_object_without_properties_loose(e,t);if(Object.getOwnPropertySymbols)for(var n=Object.getOwnPropertySymbols(e),o=0;o<n.length;o++)s=n[o],0<=t.indexOf(s)||Object.prototype.propertyIsEnumerable.call(e,s)&&(r[s]=e[s]);return r}function _object_without_properties_loose(e,t){if(null==e)return{};for(var s,r={},n=Object.keys(e),o=0;o<n.length;o++)s=n[o],0<=t.indexOf(s)||(r[s]=e[s]);return r}function _sliced_to_array(e,t){return _array_with_holes(e)||_iterable_to_array_limit(e,t)||_unsupported_iterable_to_array(e,t)||_non_iterable_rest()}function _unsupported_iterable_to_array(e,t){var s;if(e)return"string"==typeof e?_array_like_to_array(e,t):"Map"===(s="Object"===(s=Object.prototype.toString.call(e).slice(8,-1))&&e.constructor?e.constructor.name:s)||"Set"===s?Array.from(s):"Arguments"===s||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(s)?_array_like_to_array(e,t):void 0}var OverflowTooltip=function(e){var t=e.children,e=_object_without_properties(e,["children"]),s=_sliced_to_array(reactExports.useState(!1),2),r=s[0],n=s[1];return jsxRuntimeExports.jsx(Tooltip,_object_spread_props$1(_object_spread$1({onMouseEnter:function(e){e=e.currentTarget;e.scrollWidth>e.clientWidth&&n(!0)},onMouseLeave:function(){return n(!1)},disableHoverListener:!r},e),{children:jsxRuntimeExports.jsx("div",{style:{whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"},children:t})}))},useStyles$2=makeStyles()(function(e){return{container:{display:"flex",minHeight:"50px",justifyContent:"space-between",background:"#fff",alignItems:"center",padding:"9px 15px",borderBottom:"1px solid #f7f7f7","&:hover":{background:"rgba(228, 240, 252, 0.4)",cursor:"pointer"}},isSelected:{background:"rgba(228, 240, 252, 0.8)!important","&:hover":{cursor:"auto!important"}},flex:{display:"flex",alignItems:"center",gap:"15px",width:"70%"}}}),DagTemplateRow=function(e){var t=e.dagTemplate,s=e.onClick,r=e.isSelected,e=useStyles$2().classes,n=useDispatch(),o=useSelector(selectIsFullscreenEnabled),i=t.name,a=t.id,l=t.description,c="".concat(e.container," ").concat(r?e.isSelected:""),p=!0,u=SHARED_TEXT.processing.tooltips.edit();try{JSON.parse(t.dag.template)}catch(e){p=!1,u=SHARED_TEXT.processing.tooltips.notSupported()}return jsxRuntimeExports.jsxs("div",{onClick:function(){r||s(t)},className:c,"data-testid":r?"pc-dag-template-item-row":"pc-dag-template-item-row-selected","data-meta":"pc-dag-template-item-row-".concat(i),children:[jsxRuntimeExports.jsx("div",{className:e.flex,children:jsxRuntimeExports.jsxs("div",{style:{width:"100%"},children:[jsxRuntimeExports.jsx(OverflowTooltip,{title:i,children:jsxRuntimeExports.jsx(Typography,{variant:"subtitle2",sx:{cursor:"unset"},children:i})}),jsxRuntimeExports.jsx(OverflowTooltip,{title:l,children:jsxRuntimeExports.jsxs(Typography,{variant:"caption",children:[l,!l&&"Template"]})})]})}),!r&&!(null!=t&&t.name.includes(" - Ingest Only"))&&jsxRuntimeExports.jsx(Tooltip,{title:u,children:jsxRuntimeExports.jsx("span",{children:jsxRuntimeExports.jsx(IconButton,{onClick:function(e){e.preventDefault(),e.stopPropagation(),n(mountPanel({panelId:"PROCESSING_CENTER_DAG_BUILDER",microFrontend:{name:"PROCESSING_CENTER_DAG_BUILDER",config:{dagTemplateId:a,onSave:function(){n(unmountPanel("PROCESSING_CENTER_DAG_BUILDER")),n(actions$4.resetList()),n(actions$4.fetchDagTemplatesStart())}}},panelConfig:{type:"APP_BAR_PANEL_TEMPLATE",marginTop:o?0:55,marginStart:o?0:80,size:"xlarge"}}))},disabled:!p,children:jsxRuntimeExports.jsx(EditOutlined,{})})})}),!r&&(null==t?void 0:t.name.includes(" - Ingest Only"))&&jsxRuntimeExports.jsx(Tooltip,{title:u,children:jsxRuntimeExports.jsx(Chip,{label:"Ingest Only",size:"small",color:"info",variant:"outlined"})}),r&&jsxRuntimeExports.jsx(Button,{sx:{backgroundColor:"#fff"},onClick:function(){return s(t)},variant:"outlined","data-testid":"pc-dag-templates-select-template-button",children:SHARED_TEXT.processing.selectButton.cancelSelection()})]})};function _define_property(e,t,s){return t in e?Object.defineProperty(e,t,{value:s,enumerable:!0,configurable:!0,writable:!0}):e[t]=s,e}function _object_spread(t){for(var e=1;e<arguments.length;e++){var s=null!=arguments[e]?arguments[e]:{},r=Object.keys(s);(r="function"==typeof Object.getOwnPropertySymbols?r.concat(Object.getOwnPropertySymbols(s).filter(function(e){return Object.getOwnPropertyDescriptor(s,e).enumerable})):r).forEach(function(e){_define_property(t,e,s[e])})}return t}function ownKeys(e,t){var s=Object.keys(e);return Object.getOwnPropertySymbols&&(e=Object.getOwnPropertySymbols(e),s.push.apply(s,e)),s}function _object_spread_props(t,s){return s=null!=s?s:{},Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(s)):ownKeys(Object(s)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(s,e))}),t}var useStyles$1=makeStyles()(function(e){return{container:{display:"flex",flexDirection:"column",gap:"25px",height:"100%"},templateListContainer:{backgroundColor:"#F6F7FA",borderRadius:"7px",padding:"2px",boxSizing:"border-box",flexGrow:1},templateList:{height:"100%"}}}),DagTemplateList=function(e){function n(e){return!s||e<i.length}function o(e){var t,s=e.index,e=e.style;return n(s)?(t=i[s],jsxRuntimeExports.jsx("div",{"data-testid":"dag-template-infinite-loader-row",style:_object_spread({},e),children:jsxRuntimeExports.jsx(DagTemplateRow,{isSelected:(null==a?void 0:a.id)===(null==t?void 0:t.id),onClick:r,dagTemplate:t},s)},s)):jsxRuntimeExports.jsx("div",{"data-testid":"dag-template-row-loader",style:_object_spread_props(_object_spread({},e),{top:0}),children:jsxRuntimeExports.jsx(DagTemplateLoadingRow,{})},s)}var r=e.onSelectTemplate,e=useStyles$1().classes,t=useDispatch(),i=useSelector(selectAllDagTemplates),a=useSelector(selectSelectedDagTemplate),s=useSelector(selectDagTemplatesHasMore),l=useSelector(selectDagTemplatesLoadingStatus),c=s?i.length+1:i.length;return jsxRuntimeExports.jsxs("div",{className:e.templateList,children:[0===i.length&&jsxRuntimeExports.jsx(DagTemplatesEmptyState,{}),jsxRuntimeExports.jsx(AutoSizer,{children:function(e){var s=e.height,r=e.width;return jsxRuntimeExports.jsx(InfiniteLoader,{isItemLoaded:n,itemCount:c,loadMoreItems:function(){"success"===l&&t(actions$4.fetchDagTemplatesStart())},children:function(e){var t=e.onItemsRendered;return jsxRuntimeExports.jsx("div",{"data-testid":"ingestion-dag-templates-list-wrapper",children:jsxRuntimeExports.jsx(VariableSizeList,{height:s,itemCount:c,itemSize:function(){return 60},onItemsRendered:t,ref:e.ref,width:r,children:o},"dag-template-list")})}})}})]})},useStyles=makeStyles()(function(e){return{container:{display:"flex",flexDirection:"column",gap:"25px",height:"100%"},templateListContainer:{backgroundColor:"#F6F7FA",borderRadius:"7px",padding:"2px",boxSizing:"border-box",flexGrow:1},templateList:{maxHeight:"100%",overflowY:"auto"},flex:{display:"flex",justifyContent:"space-between",padding:"10px 0px"},title:{marginBottom:"4px"},subtitle:{marginBottom:"8px"}}}),ProcessingStep=function(){var e=useStyles().classes,t=useDispatch(),s=useSelector(selectSelectedDagTemplate),r=useSelector(selectDagTemplateId),n=useSelector(selectDagTemplatesLoadingStatus),o="pending"===n,i="failure"===n,a=useSelector(selectIsFullscreenEnabled),l=useSelector(selectIsEditMode),c=useSelector(selectUpdateJobErrors),p=useSelector(selectActiveEngine),u=useSelector(selectAllDagTemplates),m=0===u.length&&o;reactExports.useEffect(function(){var e;l&&!r?t(actions$8.setUpdateJobErrors({add:!s,tabIndex:4})):l&&r&&(e=u.find(function(e){return e.id===r}))&&e.id!==(null==s?void 0:s.id)&&t(actions$4.setSelectedDagTemplate(e))},[t,l,u,r,s]);return reactExports.useEffect(function(){"idle"===n&&t(actions$4.fetchDagTemplatesStart())},[]),jsxRuntimeExports.jsxs("div",{className:e.container,children:[jsxRuntimeExports.jsxs("div",{children:[jsxRuntimeExports.jsx(Typography,{variant:"h5",className:e.title,children:SHARED_TEXT.processing.title()}),jsxRuntimeExports.jsx(Typography,{variant:"caption",className:e.subtitle,children:SHARED_TEXT.processing.subtitle()})]}),jsxRuntimeExports.jsxs("div",{className:e.flex,children:[jsxRuntimeExports.jsx(Typography,{variant:"subtitle2",children:SHARED_TEXT.processing.chooseTemplate()}),jsxRuntimeExports.jsx(Button,{onClick:function(){t(mountPanel({panelId:"PROCESSING_CENTER_DAG_BUILDER",microFrontend:{name:"PROCESSING_CENTER_DAG_BUILDER",config:{ingestionAdapterId:null==p?void 0:p.id,onSave:function(){t(unmountPanel("PROCESSING_CENTER_DAG_BUILDER")),t(actions$4.resetList()),t(actions$4.fetchDagTemplatesStart())}}},panelConfig:{type:"APP_BAR_PANEL_TEMPLATE",marginTop:a?0:55,marginStart:a?0:80,size:"xlarge",parentPanelId:"PROCESSING_CENTER_INGESTION",dimmedStatus:"dimParent"}}))},"data-testid":"pc-dag-templates-create-template-button",variant:"contained",children:SHARED_TEXT.processing.createNewTemplate()})]}),!o&&i&&jsxRuntimeExports.jsx(ErrorState,{onRetry:function(){t(actions$4.fetchDagTemplatesStart())},errorMessage:jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment,{children:SHARED_TEXT.processing.errorState()})}),!i&&jsxRuntimeExports.jsxs("div",{className:e.templateListContainer,children:[m&&jsxRuntimeExports.jsx(DagTemplatesLoadingState,{}),!m&&jsxRuntimeExports.jsx(DagTemplateList,{onSelectTemplate:function(e){e===s?(t(actions$4.clearSelectedDagTemplate()),t(actions$4.clearDagTemplateId())):(t(actions$4.setDagTemplateId(null==e?void 0:e.id)),t(actions$4.setSelectedDagTemplate(e)))}})]}),s||0<c.length?jsxRuntimeExports.jsx(PanelControls$1,{disableNext:!s||0<c.length,disableBack:!1,nextButtonType:l?ENextButtonType.UPDATE_SCHEDULED_JOB:ENextButtonType.NEXT}):jsxRuntimeExports.jsx(PanelControls$1,{disableNext:!1,disableBack:!1,nextButtonType:l?ENextButtonType.UPDATE_SCHEDULED_JOB:ENextButtonType.CUSTOM_NEXT,onClickNext:function(){t(actions$4.createIngestOnlyDagTemplateStart())}})]})};export{ProcessingStep as default};
1
+ import{u as useSelector,ao as selectIsFullscreenEnabled,r as reactExports,j as jsxRuntimeExports,v as mountPanel,o as unmountPanel,b1 as img$P}from"./js-core.esm4.js";import{d as selectSelectedDagTemplate,e as selectDagTemplateId,f as selectDagTemplatesLoadingStatus,s as selectIsEditMode,b as selectUpdateJobErrors,g as selectActiveEngine,h as selectAllDagTemplates,c as actions$8,i as actions$4,S as SHARED_TEXT,P as PanelControls$1,E as ENextButtonType,j as selectDagTemplatesHasMore}from"./js-core.esm74.js";import{m as makeStyles,T as Typography,B as Button,O as ErrorState}from"./js-core.esm7.js";import{c as Skeleton,u as AutoSizer,w as InfiniteLoader,V as VariableSizeList,T as Tooltip,I as IconButton,ak as EditOutlined,a as Chip}from"./js-core.esm9.js";import"./js-core.esm66.js";import"./js-core.esm67.js";import"./js-core.esm51.js";import"./js-core.esm63.js";import{u as useDispatch}from"./js-core.esm14.js";import"./js-core.esm53.js";import"./js-core.esm76.js";import"./js-core.esm25.js";import"./js-core.esm17.js";import"./js-core.esm27.js";import"./js-core.esm8.js";import"./js-core.esm48.js";import"./js-core.esm31.js";import"./js-core.esm64.js";import"./js-core.esm28.js";import"./js-core.esm29.js";import"./js-core.esm13.js";import"./js-core.esm68.js";import"./js-core.esm33.js";import"./js-core.esm69.js";import"./js-core.esm60.js";import"./js-core.esm30.js";import"./js-core.esm32.js";import"./js-core.esm39.js";import"./js-core.esm70.js";import"./js-core.esm24.js";import"./js-core.esm59.js";import"./js-core.esm49.js";import"./js-core.esm71.js";import"./js-core.esm52.js";var useStyles$4=makeStyles()(function(e){return{container:{display:"flex",flexDirection:"column",justifyContent:"flex-start",alignItems:"center",width:"100%",height:"100%",background:"#fff",borderRadius:"6px",overflow:"hidden",flexWrap:"wrap"},image:{display:"flex",textAlign:"center",width:"235px",height:"235px",marginBottom:e.spacing(2)},message:{userSelect:"none",paddingBottom:e.spacing(2)}}}),DagTemplatesLoadingState=function(){var e=useStyles$4().classes;return jsxRuntimeExports.jsx("div",{className:e.container,children:new Array(15).fill(null).map(function(e,t){return jsxRuntimeExports.jsx(DagTemplateLoadingRow,{},t)})})},DagTemplateLoadingRow=function(){var e=makeStyles()(function(e){return{container:{display:"flex",justifyContent:"space-between",alignItems:"center",width:"100%",height:"50px",background:"#fff",borderBottom:"1px solid #f7f7f7",borderRadius:"6px",padding:"0px 15px"},title:{width:"25%",height:"70%"},button:{width:"12%",height:"80%"}}})().classes;return jsxRuntimeExports.jsxs("div",{className:e.container,children:[jsxRuntimeExports.jsx(Skeleton,{className:e.title}),jsxRuntimeExports.jsx(Skeleton,{className:e.button})]})},useStyles$3=makeStyles()(function(e){return{container:{display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"center",paddingTop:e.spacing(18),width:"100%",height:"100%",background:"#fff",borderRadius:"6px"},image:{display:"flex",textAlign:"center",width:"235px",height:"235px",marginBottom:e.spacing(2)},message:{userSelect:"none",paddingBottom:e.spacing(2)}}}),DagTemplatesEmptyState=function(){var e=useStyles$3().classes;return jsxRuntimeExports.jsxs("div",{className:e.container,children:[jsxRuntimeExports.jsx("img",{"data-testid":"pc-dag-templates-empty-image",alt:"empty-asset",className:e.image,src:img$P}),jsxRuntimeExports.jsx(Typography,{"data-testid":"pc-dag-templates-empty-message",className:e.message,variant:"h3",color:"textPrimary",children:SHARED_TEXT.processing.emptyState()})]})};function _array_like_to_array(e,t){(null==t||t>e.length)&&(t=e.length);for(var s=0,r=new Array(t);s<t;s++)r[s]=e[s];return r}function _array_with_holes(e){if(Array.isArray(e))return e}function _define_property$1(e,t,s){return t in e?Object.defineProperty(e,t,{value:s,enumerable:!0,configurable:!0,writable:!0}):e[t]=s,e}function _iterable_to_array_limit(e,t){var s=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=s){var r,n,o=[],i=!0,a=!1;try{for(s=s.call(e);!(i=(r=s.next()).done)&&(o.push(r.value),!t||o.length!==t);i=!0);}catch(e){a=!0,n=e}finally{try{i||null==s.return||s.return()}finally{if(a)throw n}}return o}}function _non_iterable_rest(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function _object_spread$1(t){for(var e=1;e<arguments.length;e++){var s=null!=arguments[e]?arguments[e]:{},r=Object.keys(s);(r="function"==typeof Object.getOwnPropertySymbols?r.concat(Object.getOwnPropertySymbols(s).filter(function(e){return Object.getOwnPropertyDescriptor(s,e).enumerable})):r).forEach(function(e){_define_property$1(t,e,s[e])})}return t}function ownKeys$1(e,t){var s=Object.keys(e);return Object.getOwnPropertySymbols&&(e=Object.getOwnPropertySymbols(e),s.push.apply(s,e)),s}function _object_spread_props$1(t,s){return s=null!=s?s:{},Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(s)):ownKeys$1(Object(s)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(s,e))}),t}function _object_without_properties(e,t){if(null==e)return{};var s,r=_object_without_properties_loose(e,t);if(Object.getOwnPropertySymbols)for(var n=Object.getOwnPropertySymbols(e),o=0;o<n.length;o++)s=n[o],0<=t.indexOf(s)||Object.prototype.propertyIsEnumerable.call(e,s)&&(r[s]=e[s]);return r}function _object_without_properties_loose(e,t){if(null==e)return{};for(var s,r={},n=Object.keys(e),o=0;o<n.length;o++)s=n[o],0<=t.indexOf(s)||(r[s]=e[s]);return r}function _sliced_to_array(e,t){return _array_with_holes(e)||_iterable_to_array_limit(e,t)||_unsupported_iterable_to_array(e,t)||_non_iterable_rest()}function _unsupported_iterable_to_array(e,t){var s;if(e)return"string"==typeof e?_array_like_to_array(e,t):"Map"===(s="Object"===(s=Object.prototype.toString.call(e).slice(8,-1))&&e.constructor?e.constructor.name:s)||"Set"===s?Array.from(s):"Arguments"===s||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(s)?_array_like_to_array(e,t):void 0}var OverflowTooltip=function(e){var t=e.children,e=_object_without_properties(e,["children"]),s=_sliced_to_array(reactExports.useState(!1),2),r=s[0],n=s[1];return jsxRuntimeExports.jsx(Tooltip,_object_spread_props$1(_object_spread$1({onMouseEnter:function(e){e=e.currentTarget;e.scrollWidth>e.clientWidth&&n(!0)},onMouseLeave:function(){return n(!1)},disableHoverListener:!r},e),{children:jsxRuntimeExports.jsx("div",{style:{whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"},children:t})}))},useStyles$2=makeStyles()(function(e){return{container:{display:"flex",minHeight:"50px",justifyContent:"space-between",background:"#fff",alignItems:"center",padding:"9px 15px",borderBottom:"1px solid #f7f7f7","&:hover":{background:"rgba(228, 240, 252, 0.4)",cursor:"pointer"}},isSelected:{background:"rgba(228, 240, 252, 0.8)!important","&:hover":{cursor:"auto!important"}},flex:{display:"flex",alignItems:"center",gap:"15px",width:"70%"}}}),DagTemplateRow=function(e){var t=e.dagTemplate,s=e.onClick,r=e.isSelected,e=useStyles$2().classes,n=useDispatch(),o=useSelector(selectIsFullscreenEnabled),i=t.name,a=t.id,l=t.description,c="".concat(e.container," ").concat(r?e.isSelected:""),p=!0,u=SHARED_TEXT.processing.tooltips.edit();try{JSON.parse(t.dag.template)}catch(e){p=!1,u=SHARED_TEXT.processing.tooltips.notSupported()}return jsxRuntimeExports.jsxs("div",{onClick:function(){r||s(t)},className:c,"data-testid":r?"pc-dag-template-item-row":"pc-dag-template-item-row-selected","data-meta":"pc-dag-template-item-row-".concat(i),children:[jsxRuntimeExports.jsx("div",{className:e.flex,children:jsxRuntimeExports.jsxs("div",{style:{width:"100%"},children:[jsxRuntimeExports.jsx(OverflowTooltip,{title:i,children:jsxRuntimeExports.jsx(Typography,{variant:"subtitle2",sx:{cursor:"unset"},children:i})}),jsxRuntimeExports.jsx(OverflowTooltip,{title:l,children:jsxRuntimeExports.jsxs(Typography,{variant:"caption",children:[l,!l&&"Template"]})})]})}),!r&&!(null!=t&&t.name.includes(" - Ingest Only"))&&jsxRuntimeExports.jsx(Tooltip,{title:u,children:jsxRuntimeExports.jsx("span",{children:jsxRuntimeExports.jsx(IconButton,{onClick:function(e){e.preventDefault(),e.stopPropagation(),n(mountPanel({panelId:"PROCESSING_CENTER_DAG_BUILDER",microFrontend:{name:"PROCESSING_CENTER_DAG_BUILDER",config:{dagTemplateId:a,onSave:function(){n(unmountPanel("PROCESSING_CENTER_DAG_BUILDER")),n(actions$4.resetList()),n(actions$4.fetchDagTemplatesStart())}}},panelConfig:{type:"APP_BAR_PANEL_TEMPLATE",marginTop:o?0:55,marginStart:o?0:80,size:"xlarge"}}))},disabled:!p,children:jsxRuntimeExports.jsx(EditOutlined,{})})})}),!r&&(null==t?void 0:t.name.includes(" - Ingest Only"))&&jsxRuntimeExports.jsx(Tooltip,{title:u,children:jsxRuntimeExports.jsx(Chip,{label:"Ingest Only",size:"small",color:"info",variant:"outlined"})}),r&&jsxRuntimeExports.jsx(Button,{sx:{backgroundColor:"#fff"},onClick:function(){return s(t)},variant:"outlined","data-testid":"pc-dag-templates-select-template-button",children:SHARED_TEXT.processing.selectButton.cancelSelection()})]})};function _define_property(e,t,s){return t in e?Object.defineProperty(e,t,{value:s,enumerable:!0,configurable:!0,writable:!0}):e[t]=s,e}function _object_spread(t){for(var e=1;e<arguments.length;e++){var s=null!=arguments[e]?arguments[e]:{},r=Object.keys(s);(r="function"==typeof Object.getOwnPropertySymbols?r.concat(Object.getOwnPropertySymbols(s).filter(function(e){return Object.getOwnPropertyDescriptor(s,e).enumerable})):r).forEach(function(e){_define_property(t,e,s[e])})}return t}function ownKeys(e,t){var s=Object.keys(e);return Object.getOwnPropertySymbols&&(e=Object.getOwnPropertySymbols(e),s.push.apply(s,e)),s}function _object_spread_props(t,s){return s=null!=s?s:{},Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(s)):ownKeys(Object(s)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(s,e))}),t}var useStyles$1=makeStyles()(function(e){return{container:{display:"flex",flexDirection:"column",gap:"25px",height:"100%"},templateListContainer:{backgroundColor:"#F6F7FA",borderRadius:"7px",padding:"2px",boxSizing:"border-box",flexGrow:1},templateList:{height:"100%"}}}),DagTemplateList=function(e){function n(e){return!s||e<i.length}function o(e){var t,s=e.index,e=e.style;return n(s)?(t=i[s],jsxRuntimeExports.jsx("div",{"data-testid":"dag-template-infinite-loader-row",style:_object_spread({},e),children:jsxRuntimeExports.jsx(DagTemplateRow,{isSelected:(null==a?void 0:a.id)===(null==t?void 0:t.id),onClick:r,dagTemplate:t},s)},s)):jsxRuntimeExports.jsx("div",{"data-testid":"dag-template-row-loader",style:_object_spread_props(_object_spread({},e),{top:0}),children:jsxRuntimeExports.jsx(DagTemplateLoadingRow,{})},s)}var r=e.onSelectTemplate,e=useStyles$1().classes,t=useDispatch(),i=useSelector(selectAllDagTemplates),a=useSelector(selectSelectedDagTemplate),s=useSelector(selectDagTemplatesHasMore),l=useSelector(selectDagTemplatesLoadingStatus),c=s?i.length+1:i.length;return jsxRuntimeExports.jsxs("div",{className:e.templateList,children:[0===i.length&&jsxRuntimeExports.jsx(DagTemplatesEmptyState,{}),jsxRuntimeExports.jsx(AutoSizer,{children:function(e){var s=e.height,r=e.width;return jsxRuntimeExports.jsx(InfiniteLoader,{isItemLoaded:n,itemCount:c,loadMoreItems:function(){"success"===l&&t(actions$4.fetchDagTemplatesStart())},children:function(e){var t=e.onItemsRendered;return jsxRuntimeExports.jsx("div",{"data-testid":"ingestion-dag-templates-list-wrapper",children:jsxRuntimeExports.jsx(VariableSizeList,{height:s,itemCount:c,itemSize:function(){return 60},onItemsRendered:t,ref:e.ref,width:r,children:o},"dag-template-list")})}})}})]})},useStyles=makeStyles()(function(e){return{container:{display:"flex",flexDirection:"column",gap:"25px",height:"100%"},templateListContainer:{backgroundColor:"#F6F7FA",borderRadius:"7px",padding:"2px",boxSizing:"border-box",flexGrow:1},templateList:{maxHeight:"100%",overflowY:"auto"},flex:{display:"flex",justifyContent:"space-between",padding:"10px 0px"},title:{marginBottom:"4px"},subtitle:{marginBottom:"8px"}}}),ProcessingStep=function(){var e=useStyles().classes,t=useDispatch(),s=useSelector(selectSelectedDagTemplate),r=useSelector(selectDagTemplateId),n=useSelector(selectDagTemplatesLoadingStatus),o="pending"===n,i="failure"===n,a=useSelector(selectIsFullscreenEnabled),l=useSelector(selectIsEditMode),c=useSelector(selectUpdateJobErrors),p=useSelector(selectActiveEngine),u=useSelector(selectAllDagTemplates),m=0===u.length&&o;reactExports.useEffect(function(){var e;l&&!r?t(actions$8.setUpdateJobErrors({add:!s,tabIndex:4})):l&&r&&(e=u.find(function(e){return e.id===r}))&&e.id!==(null==s?void 0:s.id)&&t(actions$4.setSelectedDagTemplate(e))},[t,l,u,r,s]);return reactExports.useEffect(function(){"idle"===n&&t(actions$4.fetchDagTemplatesStart())},[]),jsxRuntimeExports.jsxs("div",{className:e.container,children:[jsxRuntimeExports.jsxs("div",{children:[jsxRuntimeExports.jsx(Typography,{variant:"h5",className:e.title,children:SHARED_TEXT.processing.title()}),jsxRuntimeExports.jsx(Typography,{variant:"caption",className:e.subtitle,children:SHARED_TEXT.processing.subtitle()})]}),jsxRuntimeExports.jsxs("div",{className:e.flex,children:[jsxRuntimeExports.jsx(Typography,{variant:"subtitle2",children:SHARED_TEXT.processing.chooseTemplate()}),jsxRuntimeExports.jsx(Button,{onClick:function(){t(mountPanel({panelId:"PROCESSING_CENTER_DAG_BUILDER",microFrontend:{name:"PROCESSING_CENTER_DAG_BUILDER",config:{ingestionAdapterId:null==p?void 0:p.id,onSave:function(){t(unmountPanel("PROCESSING_CENTER_DAG_BUILDER")),t(actions$4.resetList()),t(actions$4.fetchDagTemplatesStart())}}},panelConfig:{type:"APP_BAR_PANEL_TEMPLATE",marginTop:a?0:55,marginStart:a?0:80,size:"xlarge",parentPanelId:"PROCESSING_CENTER_INGESTION",dimmedStatus:"dimParent"}}))},"data-testid":"pc-dag-templates-create-template-button",variant:"contained",children:SHARED_TEXT.processing.createNewTemplate()})]}),!o&&i&&jsxRuntimeExports.jsx(ErrorState,{onRetry:function(){t(actions$4.fetchDagTemplatesStart())},errorMessage:jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment,{children:SHARED_TEXT.processing.errorState()})}),!i&&jsxRuntimeExports.jsxs("div",{className:e.templateListContainer,children:[m&&jsxRuntimeExports.jsx(DagTemplatesLoadingState,{}),!m&&jsxRuntimeExports.jsx(DagTemplateList,{onSelectTemplate:function(e){e===s?(t(actions$4.clearSelectedDagTemplate()),t(actions$4.clearDagTemplateId())):(t(actions$4.setDagTemplateId(null==e?void 0:e.id)),t(actions$4.setSelectedDagTemplate(e)))}})]}),s||0<c.length?jsxRuntimeExports.jsx(PanelControls$1,{disableNext:!s||0<c.length,disableBack:!1,nextButtonType:l?ENextButtonType.UPDATE_SCHEDULED_JOB:ENextButtonType.NEXT}):jsxRuntimeExports.jsx(PanelControls$1,{disableNext:!1,disableBack:!1,nextButtonType:l?ENextButtonType.UPDATE_SCHEDULED_JOB:ENextButtonType.CUSTOM_NEXT,onClickNext:function(){t(actions$4.createIngestOnlyDagTemplateStart())}})]})};export{ProcessingStep as default};
Binary file