aiware-js 1.0.0-master.1507 → 1.0.0-master.1508
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.
- package/js-core.esm10.js +1 -1
- package/js-core.esm10.js.gz +0 -0
- package/js-core.esm100.js +1 -1
- package/js-core.esm100.js.gz +0 -0
- package/js-core.esm101.js +1 -1
- package/js-core.esm101.js.gz +0 -0
- package/js-core.esm102.js +1 -1
- package/js-core.esm102.js.gz +0 -0
- package/js-core.esm103.js +1 -1
- package/js-core.esm103.js.gz +0 -0
- package/js-core.esm104.js +1 -1
- package/js-core.esm104.js.gz +0 -0
- package/js-core.esm105.js +1 -1
- package/js-core.esm105.js.gz +0 -0
- package/js-core.esm107.js +1 -1
- package/js-core.esm107.js.gz +0 -0
- package/js-core.esm108.js +1 -1
- package/js-core.esm108.js.gz +0 -0
- package/js-core.esm109.js +1 -1
- package/js-core.esm109.js.gz +0 -0
- package/js-core.esm11.js +1 -1
- package/js-core.esm11.js.gz +0 -0
- package/js-core.esm110.js +1 -1
- package/js-core.esm110.js.gz +0 -0
- package/js-core.esm111.js +1 -1
- package/js-core.esm111.js.gz +0 -0
- package/js-core.esm112.js +1 -1
- package/js-core.esm112.js.gz +0 -0
- package/js-core.esm113.js +1 -1
- package/js-core.esm113.js.gz +0 -0
- package/js-core.esm114.js +1 -1
- package/js-core.esm114.js.gz +0 -0
- package/js-core.esm115.js +1 -1
- package/js-core.esm115.js.gz +0 -0
- package/js-core.esm116.js +1 -1
- package/js-core.esm116.js.gz +0 -0
- package/js-core.esm117.js +1 -1
- package/js-core.esm117.js.gz +0 -0
- package/js-core.esm119.js +1 -1
- package/js-core.esm119.js.gz +0 -0
- package/js-core.esm12.js +1 -1
- package/js-core.esm12.js.gz +0 -0
- package/js-core.esm120.js +1 -1
- package/js-core.esm120.js.gz +0 -0
- package/js-core.esm121.js +1 -1
- package/js-core.esm121.js.gz +0 -0
- package/js-core.esm122.js +1 -1
- package/js-core.esm122.js.gz +0 -0
- package/js-core.esm123.js +1 -1
- package/js-core.esm123.js.gz +0 -0
- package/js-core.esm124.js +1 -1
- package/js-core.esm124.js.gz +0 -0
- package/js-core.esm13.js +1 -1
- package/js-core.esm13.js.gz +0 -0
- package/js-core.esm14.js +1 -1
- package/js-core.esm14.js.gz +0 -0
- package/js-core.esm15.js +1 -1
- package/js-core.esm15.js.gz +0 -0
- package/js-core.esm16.js +1 -1
- package/js-core.esm16.js.gz +0 -0
- package/js-core.esm17.js +1 -1
- package/js-core.esm17.js.gz +0 -0
- package/js-core.esm18.js +1 -1
- package/js-core.esm18.js.gz +0 -0
- package/js-core.esm19.js +1 -1
- package/js-core.esm19.js.gz +0 -0
- package/js-core.esm20.js +1 -1
- package/js-core.esm20.js.gz +0 -0
- package/js-core.esm21.js +1 -1
- package/js-core.esm21.js.gz +0 -0
- package/js-core.esm22.js +1 -1
- package/js-core.esm22.js.gz +0 -0
- package/js-core.esm24.js +1 -1
- package/js-core.esm24.js.gz +0 -0
- package/js-core.esm26.js +1 -1
- package/js-core.esm26.js.gz +0 -0
- package/js-core.esm28.js +1 -1
- package/js-core.esm28.js.gz +0 -0
- package/js-core.esm31.js +1 -1
- package/js-core.esm31.js.gz +0 -0
- package/js-core.esm33.js +1 -1
- package/js-core.esm33.js.gz +0 -0
- package/js-core.esm34.js +1 -1
- package/js-core.esm34.js.gz +0 -0
- package/js-core.esm35.js +1 -1
- package/js-core.esm35.js.gz +0 -0
- package/js-core.esm4.js +1 -1
- package/js-core.esm4.js.gz +0 -0
- package/js-core.esm40.js +1 -1
- package/js-core.esm40.js.gz +0 -0
- package/js-core.esm45.js +1 -1
- package/js-core.esm45.js.gz +0 -0
- package/js-core.esm46.js +1 -1
- package/js-core.esm46.js.gz +0 -0
- package/js-core.esm47.js +1 -1
- package/js-core.esm47.js.gz +0 -0
- package/js-core.esm49.js +1 -1
- package/js-core.esm49.js.gz +0 -0
- package/js-core.esm52.js +1 -1
- package/js-core.esm52.js.gz +0 -0
- package/js-core.esm53.js +1 -1
- package/js-core.esm53.js.gz +0 -0
- package/js-core.esm6.js +1 -1
- package/js-core.esm6.js.gz +0 -0
- package/js-core.esm60.js +1 -1
- package/js-core.esm60.js.gz +0 -0
- package/js-core.esm61.js +1 -1
- package/js-core.esm61.js.gz +0 -0
- package/js-core.esm62.js +1 -1
- package/js-core.esm62.js.gz +0 -0
- package/js-core.esm63.js +1 -1
- package/js-core.esm63.js.gz +0 -0
- package/js-core.esm67.js +1 -1
- package/js-core.esm67.js.gz +0 -0
- package/js-core.esm68.js +1 -1
- package/js-core.esm68.js.gz +0 -0
- package/js-core.esm69.js +1 -1
- package/js-core.esm69.js.gz +0 -0
- package/js-core.esm7.js +1 -1
- package/js-core.esm7.js.gz +0 -0
- package/js-core.esm70.js +1 -1
- package/js-core.esm70.js.gz +0 -0
- package/js-core.esm71.js +1 -1
- package/js-core.esm71.js.gz +0 -0
- package/js-core.esm73.js +1 -1
- package/js-core.esm73.js.gz +0 -0
- package/js-core.esm74.js +1 -1
- package/js-core.esm74.js.gz +0 -0
- package/js-core.esm75.js +1 -1
- package/js-core.esm75.js.gz +0 -0
- package/js-core.esm76.js +1 -1
- package/js-core.esm76.js.gz +0 -0
- package/js-core.esm78.js +1 -1
- package/js-core.esm78.js.gz +0 -0
- package/js-core.esm79.js +1 -1
- package/js-core.esm79.js.gz +0 -0
- package/js-core.esm8.js +1 -1
- package/js-core.esm8.js.gz +0 -0
- package/js-core.esm80.js +1 -1
- package/js-core.esm80.js.gz +0 -0
- package/js-core.esm81.js +1 -1
- package/js-core.esm81.js.gz +0 -0
- package/js-core.esm82.js +1 -1
- package/js-core.esm82.js.gz +0 -0
- package/js-core.esm84.js +1 -1
- package/js-core.esm84.js.gz +0 -0
- package/js-core.esm85.js +1 -1
- package/js-core.esm85.js.gz +0 -0
- package/js-core.esm86.js +1 -1
- package/js-core.esm86.js.gz +0 -0
- package/js-core.esm87.js +1 -1
- package/js-core.esm87.js.gz +0 -0
- package/js-core.esm88.js +1 -1
- package/js-core.esm88.js.gz +0 -0
- package/js-core.esm89.js +1 -1
- package/js-core.esm89.js.gz +0 -0
- package/js-core.esm9.js +1 -1
- package/js-core.esm9.js.gz +0 -0
- package/js-core.esm90.js +1 -1
- package/js-core.esm90.js.gz +0 -0
- package/js-core.esm92.js +1 -1
- package/js-core.esm92.js.gz +0 -0
- package/js-core.esm93.js +1 -1
- package/js-core.esm93.js.gz +0 -0
- package/js-core.esm94.js +1 -1
- package/js-core.esm94.js.gz +0 -0
- package/js-core.esm95.js +1 -1
- package/js-core.esm95.js.gz +0 -0
- package/js-core.esm96.js +1 -1
- package/js-core.esm96.js.gz +0 -0
- package/js-core.esm97.js +1 -1
- package/js-core.esm97.js.gz +0 -0
- package/js-core.esm98.js +1 -1
- package/js-core.esm98.js.gz +0 -0
- package/js-core.esm99.js +1 -1
- package/js-core.esm99.js.gz +0 -0
- package/locales/es.json +1 -1
- package/locales/fr.json +1 -1
- package/package.json +1 -1
package/js-core.esm10.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as reactExports,u as useSelector,l as snackbarSelector,m as clearMessage,j as jsxRuntimeExports,C as CircularProgress,B as Box}from"./js-core.esm4.js";export{n as getSnackbarModule}from"./js-core.esm4.js";import{m as makeStyles,B as Button}from"./js-core.esm7.js";import{a as actions}from"./js-core.esm11.js";import{a as Snackbar,S as Stack}from"./js-core.esm9.js";import"./js-core.esm12.js";import"./js-core.esm13.js";import{A as Alert}from"./js-core.
|
|
1
|
+
import{r as reactExports,u as useSelector,l as snackbarSelector,m as clearMessage,j as jsxRuntimeExports,C as CircularProgress,B as Box}from"./js-core.esm4.js";export{n as getSnackbarModule}from"./js-core.esm4.js";import{m as makeStyles,B as Button}from"./js-core.esm7.js";import{a as actions}from"./js-core.esm11.js";import{a as Snackbar,S as Stack}from"./js-core.esm9.js";import"./js-core.esm12.js";import"./js-core.esm13.js";import"./js-core.esm14.js";import{A as Alert}from"./js-core.esm17.js";import{u as useDispatch}from"./js-core.esm15.js";import"./js-core.esm18.js";function _array_like_to_array(e,r){(null==r||r>e.length)&&(r=e.length);for(var t=0,o=new Array(r);t<r;t++)o[t]=e[t];return o}function _array_with_holes(e){if(Array.isArray(e))return e}function _array_without_holes(e){if(Array.isArray(e))return _array_like_to_array(e)}function _define_property(e,r,t){return r in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}function _iterable_to_array(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}function _iterable_to_array_limit(e,r){var t=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=t){var o,a,n=[],s=!0,i=!1;try{for(t=t.call(e);!(s=(o=t.next()).done)&&(n.push(o.value),!r||n.length!==r);s=!0);}catch(e){i=!0,a=e}finally{try{s||null==t.return||t.return()}finally{if(i)throw a}}return n}}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 _non_iterable_spread(){throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function _object_spread(r){for(var e=1;e<arguments.length;e++){var t=null!=arguments[e]?arguments[e]:{},o=Object.keys(t);(o="function"==typeof Object.getOwnPropertySymbols?o.concat(Object.getOwnPropertySymbols(t).filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})):o).forEach(function(e){_define_property(r,e,t[e])})}return r}function _sliced_to_array(e,r){return _array_with_holes(e)||_iterable_to_array_limit(e,r)||_unsupported_iterable_to_array(e,r)||_non_iterable_rest()}function _to_consumable_array(e){return _array_without_holes(e)||_iterable_to_array(e)||_unsupported_iterable_to_array(e)||_non_iterable_spread()}function _unsupported_iterable_to_array(e,r){var t;if(e)return"string"==typeof e?_array_like_to_array(e,r):"Map"===(t="Object"===(t=Object.prototype.toString.call(e).slice(8,-1))&&e.constructor?e.constructor.name:t)||"Set"===t?Array.from(t):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?_array_like_to_array(e,r):void 0}var useStyles=makeStyles()(function(e,r){r=r.maxWidth;return{sdkSnackbarContainer:{"& svg":{fill:"white"},maxWidth:void 0===r?"none":r}}});function CustomSnackbar(){function e(e,r){"clickaway"!==r&&(s(!1),t(clearMessage()))}var t=useDispatch(),r=_sliced_to_array(reactExports.useState([]),2),o=r[0],a=r[1],r=_sliced_to_array(reactExports.useState(!1),2),n=r[0],s=r[1],r=_sliced_to_array(reactExports.useState(void 0),2),i=r[0],l=r[1],r=useSelector(snackbarSelector),c=r.message,u=r.duration,r=r.isLoaderVisible,_=useStyles({maxWidth:null!=i&&i.maxWidth?null==i?void 0:i.maxWidth:"none"}).classes,f=(reactExports.useEffect(function(){null!=c&&c.content&&a(function(e){return _to_consumable_array(e).concat([c])})},[c]),reactExports.useEffect(function(){o.length&&!i?(l(_object_spread({},o[0])),a(function(e){return e.slice(1)}),s(!0)):o.length&&i&&n&&(t(clearMessage()),s(!1))},[o,i,n,t]),!r&&(null==i?void 0:i.severity)||"info"),u=r||null!=i&&i.removeIcon||null!=i&&i.sticky?null:u||3e3;return jsxRuntimeExports.jsx(Snackbar,{anchorOrigin:{vertical:"bottom",horizontal:"right"},open:n,autoHideDuration:u,onClose:e,TransitionProps:{onExited:function(){l(void 0),t(clearMessage())}},className:_.sdkSnackbarContainer,"data-snackbarid":(null==i?void 0:i.key)||"na","data-testid":"snackbar.message.".concat((null==i?void 0:i.severity)||"na"),children:jsxRuntimeExports.jsx(Alert,{onClose:null!=i&&i.removeIcon?void 0:e,icon:(null==i?void 0:i.removeIcon)&&!1,severity:f,elevation:6,variant:"filled",children:jsxRuntimeExports.jsxs(Stack,{direction:"row",sx:{display:"flex",alignItems:"center"},children:[r&&!(null!=i&&i.removeIcon)&&jsxRuntimeExports.jsx(CircularProgress,{size:"20px",sx:{color:"white",marginRight:"15px"}}),(u=(null==i?void 0:i.content)||"",jsxRuntimeExports.jsx("div",{dangerouslySetInnerHTML:{__html:u}})),(null==i?void 0:i.actions)&&jsxRuntimeExports.jsx(Box,{sx:{display:"flex",justifyContent:"flex-end"},children:i.actions.map(function(r,e){return jsxRuntimeExports.jsx(Button,{onClick:function(){var e=r.reduxActionType;if("string"==typeof e){if(t({type:e}),"dismiss"===e)return s(!1),void t(clearMessage());t(actions.openResourcesDetailsPanel())}else t(e);s(!1),t(clearMessage())},variant:"outlined","data-testid":"snack-bar-btn-".concat(e),sx:{fontSize:"12px",whiteSpace:"nowrap",color:"#fff",fontWeight:600,marginLeft:"10px",border:" 1px solid #fff",borderRadius:"4px","&:hover":{backgroundColor:"#fff",border:" 1px solid #fff",color:"#3c52b2"}},children:r.actionButtonText},e)})})]})})},i?i.key:void 0)}export{CustomSnackbar as default};
|
package/js-core.esm10.js.gz
CHANGED
|
Binary file
|
package/js-core.esm100.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.esm62.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.esm69.js";import{m as makeStyles,T as Typography}from"./js-core.esm7.js";import"./js-core.esm61.js";import"./js-core.esm9.js";import"./js-core.esm46.js";import"./js-core.esm58.js";import{u as useDispatch}from"./js-core.
|
|
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.esm62.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.esm69.js";import{m as makeStyles,T as Typography}from"./js-core.esm7.js";import"./js-core.esm61.js";import"./js-core.esm9.js";import"./js-core.esm46.js";import"./js-core.esm58.js";import{u as useDispatch}from"./js-core.esm15.js";import"./js-core.esm28.js";import"./js-core.esm8.js";import"./js-core.esm16.js";import"./js-core.esm36.js";import"./js-core.esm65.js";import"./js-core.esm25.js";import"./js-core.esm54.js";import"./js-core.esm44.js";import"./js-core.esm48.js";import"./js-core.esm66.js";import"./js-core.esm26.js";import"./js-core.esm18.js";import"./js-core.esm17.js";import"./js-core.esm43.js";import"./js-core.esm29.js";import"./js-core.esm59.js";import"./js-core.esm14.js";import"./js-core.esm63.js";import"./js-core.esm30.js";import"./js-core.esm64.js";import"./js-core.esm55.js";import"./js-core.esm47.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,n=m||r,m=useSelector(selectUpdateJobErrors);return reactExports.useEffect(function(){p&&e(actions$8.setUpdateJobErrors({add:!n,tabIndex:5}))},[p,n]),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:!n||0<m.length,disableBack:!1,nextButtonType:p?ENextButtonType.UPDATE_SCHEDULED_JOB:c})]})};export{ContentTemplatesStep as default};
|
package/js-core.esm100.js.gz
CHANGED
|
Binary file
|
package/js-core.esm101.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{u as useSelector,ar as selectIsFullscreenEnabled,r as reactExports,j as jsxRuntimeExports,v as mountPanel,o as unmountPanel,b2 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.esm69.js";import{m as makeStyles,T as Typography,B as Button,O as ErrorState}from"./js-core.esm7.js";import{f as Skeleton,B as AutoSizer,E as InfiniteLoader,V as VariableSizeList,c as Tooltip,I as IconButton,am as EditOutlined,d as Chip}from"./js-core.esm9.js";import"./js-core.esm61.js";import"./js-core.esm62.js";import"./js-core.esm46.js";import"./js-core.esm58.js";import{u as useDispatch}from"./js-core.esm14.js";import"./js-core.esm48.js";import"./js-core.esm26.js";import"./js-core.esm17.js";import"./js-core.esm28.js";import"./js-core.esm8.js";import"./js-core.esm15.js";import"./js-core.esm43.js";import"./js-core.esm29.js";import"./js-core.esm59.js";import"./js-core.esm13.js";import"./js-core.esm63.js";import"./js-core.esm30.js";import"./js-core.esm64.js";import"./js-core.esm55.js";import"./js-core.esm36.js";import"./js-core.esm65.js";import"./js-core.esm25.js";import"./js-core.esm54.js";import"./js-core.esm44.js";import"./js-core.esm66.js";import"./js-core.esm16.js";import"./js-core.esm47.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,ar as selectIsFullscreenEnabled,r as reactExports,j as jsxRuntimeExports,v as mountPanel,o as unmountPanel,b2 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.esm69.js";import{m as makeStyles,T as Typography,B as Button,O as ErrorState}from"./js-core.esm7.js";import{f as Skeleton,B as AutoSizer,E as InfiniteLoader,V as VariableSizeList,c as Tooltip,I as IconButton,am as EditOutlined,d as Chip}from"./js-core.esm9.js";import"./js-core.esm61.js";import"./js-core.esm62.js";import"./js-core.esm46.js";import"./js-core.esm58.js";import{u as useDispatch}from"./js-core.esm15.js";import"./js-core.esm48.js";import"./js-core.esm26.js";import"./js-core.esm18.js";import"./js-core.esm28.js";import"./js-core.esm8.js";import"./js-core.esm16.js";import"./js-core.esm43.js";import"./js-core.esm29.js";import"./js-core.esm59.js";import"./js-core.esm14.js";import"./js-core.esm63.js";import"./js-core.esm30.js";import"./js-core.esm64.js";import"./js-core.esm55.js";import"./js-core.esm36.js";import"./js-core.esm65.js";import"./js-core.esm25.js";import"./js-core.esm54.js";import"./js-core.esm44.js";import"./js-core.esm66.js";import"./js-core.esm17.js";import"./js-core.esm47.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};
|
package/js-core.esm101.js.gz
CHANGED
|
Binary file
|
package/js-core.esm102.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{u as useSelector,aR as selectUserCanCreatePackage,r as reactExports,j as jsxRuntimeExports,B as Box,C as CircularProgress}from"./js-core.esm4.js";import{m as makeStyles,f as FormControl,T as Typography,a9 as Information,S as Select,e as MenuItem}from"./js-core.esm7.js";import{P as PanelControls,E as ENextButtonType}from"./js-core.esm103.js";import{i as imageUpload,an as characterCountTextField,N as debounce,S as Stack,T as TextField,c as Tooltip,I as IconButton,n as CheckCircle,ao as Error}from"./js-core.esm9.js";import{s as selectPreviewImage,a as selectPackageName,b as selectPackageDescription,c as selectDistributionType,d as selectors$4,e as selectIsEditMode,f as selectOriginalPackageName,g as actions,S as SHARED_TEXT,P as PDistributionType}from"./js-core.esm104.js";import"./js-core.esm12.js";import"./js-core.esm11.js";import"./js-core.esm13.js";import"./js-core.esm35.js";import"./js-core.esm61.js";import{u as useDispatch}from"./js-core.esm14.js";import"./js-core.esm43.js";import"./js-core.esm27.js";import"./js-core.esm30.js";import"./js-core.esm32.js";import"./js-core.esm59.js";import"./js-core.esm62.js";import"./js-core.esm46.js";import"./js-core.esm47.js";import"./js-core.esm8.js";import"./js-core.esm15.js";import"./js-core.esm28.js";import"./js-core.esm48.js";import"./js-core.esm26.js";import"./js-core.esm17.js";import"./js-core.esm36.js";import"./js-core.esm65.js";import"./js-core.esm58.js";import"./js-core.esm25.js";import"./js-core.esm54.js";import"./js-core.esm44.js";import"./js-core.esm66.js";import"./js-core.esm16.js";import"./js-core.esm63.js";import"./js-core.esm29.js";import"./js-core.esm64.js";import"./js-core.esm55.js";var ImageUpload=imageUpload.jsx.ImageUpload,CharacterCountTextField=characterCountTextField.jsx.CharacterCountTextField,useStyles=makeStyles()(function(e){return{formControlWrapper:{marginTop:15,width:"100%"}}}),menuItemValueContainerSx={width:"472px"},menuItemValueSx={fontSize:"14px",fontWeight:400,marginBottom:"5px",display:"block"},menuItemValueDescSx={fontSize:"12px",color:"#424242",marginTop:0,textTransform:"none",textWrap:"wrap",whiteSpace:"pre-line"},BasicInfoStep=function(){var e,s=useStyles().classes,t=useSelector(selectPreviewImage),r=useDispatch(),i=useSelector(selectPackageName)||"",o=useSelector(selectPackageDescription)||"",a=useSelector(selectDistributionType),n=useSelector(selectUserCanCreatePackage),c=useSelector(selectors$4.selectItems)||[],p=useSelector(selectors$4.selectReadStatus),x=useSelector(selectIsEditMode),l=useSelector(selectOriginalPackageName),m=reactExports.useCallback(debounce(function(e){r(actions.allOrgOwnedPackages.setSearchValue(e)),r(actions.allOrgOwnedPackages.resetList()),r(actions.allOrgOwnedPackages.readStart(null))},400),[]),c=void 0===c.find(function(e){return e.name===i}),u=0<i.length,p="pending"===p;return jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsxs(Stack,{direction:"column",alignItems:"flex-start",sx:{marginTop:"10px"},children:[jsxRuntimeExports.jsx(Box,{id:"meta-info-section",sx:{width:"100%"},children:jsxRuntimeExports.jsxs(Stack,{direction:"row",children:[jsxRuntimeExports.jsxs(Box,{id:"package-image-section",sx:{width:"180px"},children:[jsxRuntimeExports.jsx(FormControl,{className:s.formControlWrapper,error:!0,children:jsxRuntimeExports.jsx(ImageUpload,{image:t,getUrl:!0,handleChange:function(e){var s;e.unsignedUrl?(s=e.unsignedUrl,e=e.getUrl,r(actions.basicInfo.setIcon(s)),r(actions.basicInfo.setPreviewImage(e))):(r(actions.basicInfo.setIcon("")),r(actions.basicInfo.setPreviewImage("")))},testId:"rc-pm-image"})}),jsxRuntimeExports.jsxs(Box,{sx:{paddingRight:"20px"},children:[jsxRuntimeExports.jsx(Typography,{variant:"h5",sx:{fontSize:"14px",fontWeight:600,marginBottom:"5px",marginTop:"15px"},children:SHARED_TEXT.basicInfoStep.packageImageLabel}),jsxRuntimeExports.jsx(Typography,{variant:"body1",sx:{marginTop:0,fontSize:"12px",lineHeight:"16px"},children:SHARED_TEXT.basicInfoStep.packageImageLabelDesc})]})]}),jsxRuntimeExports.jsx(Box,{id:"basic-info-section",sx:{width:"100%",paddingLeft:"15px"},children:jsxRuntimeExports.jsxs(Stack,{direction:"column",justifyContent:"flex-start",children:[jsxRuntimeExports.jsx(FormControl,{className:s.formControlWrapper,error:!0,children:jsxRuntimeExports.jsx(TextField,{sx:{width:"100%"},error:!c,id:"package-manager-name",label:SHARED_TEXT.basicInfoStep.packageName,onChange:function(e){e=e.target.value;r(actions.basicInfo.setPackageName(e)),x&&e===l||m(e)},variant:"outlined",disabled:!n,InputLabelProps:0<i.length?{shrink:!0}:{},inputProps:{maxLength:100},value:i,helperText:(t=SHARED_TEXT.basicInfoStep.packageNameIsAvailable,e=jsxRuntimeExports.jsx(CheckCircle,{sx:{fontSize:"14px",color:"#40c057"}}),u||(t=SHARED_TEXT.basicInfoStep.packageNameRequired,e=void 0),c||(t=SHARED_TEXT.basicInfoStep.errorPackageName,e=jsxRuntimeExports.jsx(Error,{sx:{fontSize:"14px",color:"inherit"}})),p&&(t=SHARED_TEXT.basicInfoStep.packageNameCheck,e=jsxRuntimeExports.jsx(CircularProgress,{size:12})),jsxRuntimeExports.jsxs(Stack,{sx:{color:"inherit",gap:"3px",transform:"translateX(-12px)"},direction:"row",alignItems:"center",children:[e&&jsxRuntimeExports.jsx(Stack,{sx:{width:"15px",height:"15px",alignItems:"center",justifyContent:"center"},children:e}),jsxRuntimeExports.jsx(Typography,{sx:{height:"15px",color:"inherit"},variant:"caption",children:t})]})),required:!0,"data-test":"rc-pm-package-name"})}),jsxRuntimeExports.jsx(FormControl,{className:s.formControlWrapper,error:!0,children:jsxRuntimeExports.jsx(CharacterCountTextField,{handleChange:function(e){r(actions.basicInfo.setPackageDescription(e))},variant:"outlined",value:o,defaultValue:o,label:SHARED_TEXT.basicInfoStep.packageDescription,lines:5,maxChar:300,error:!1,shrinkAlways:!1,testId:"rc-pm-package-description",disabled:!n})})]})})]})}),jsxRuntimeExports.jsxs(Box,{id:"distribution-section",sx:{width:"100%",borderTop:"1px solid #DADFE8",marginTop:"20px",paddingTop:"15px"},children:[jsxRuntimeExports.jsxs(Stack,{direction:"row",alignItems:"center",children:[jsxRuntimeExports.jsx(Typography,{variant:"h3",sx:{fontSize:"16px",fontWeight:700,margin:0,color:function(e){return e.palette.text.primary}},children:SHARED_TEXT.basicInfoStep.packageDistributionTypeLabel}),jsxRuntimeExports.jsx(Tooltip,{title:SHARED_TEXT.basicInfoStep.packageDistributionTypeLabel,"data-testid":"rc-pm-distribution-info-tooltip",children:jsxRuntimeExports.jsx(IconButton,{size:"small",onClick:function(){window.open("https://docs.veritone.com/#/aiware-OS/resource-center/manage-packages?id=distribution-types-for-packages","noopener","noreferrer")},children:jsxRuntimeExports.jsx(Information,{sx:{fontSize:"18px",color:"#424242"}})})})]}),jsxRuntimeExports.jsx(Typography,{variant:"body1",sx:{fontSize:"14px",fontWeight:400,color:function(e){return e.palette.text.secondary},marginBottom:0,marginTop:"5px",width:"100%"},children:SHARED_TEXT.basicInfoStep.packageDistributionTypeLabelDesc}),jsxRuntimeExports.jsx(FormControl,{children:jsxRuntimeExports.jsxs(Select,{disabled:!n,"data-test":"rc-pm-package-distribution-select",variant:"outlined",sx:{width:"320px",marginTop:"15px"},displayEmpty:!0,required:!0,labelId:"dropdown-label",id:"dropdown-select",inputProps:{"aria-label":"Without label"},value:a,onChange:function(e){e=e.target.value;r(actions.basicInfo.setDistributionType(e))},renderValue:function(e){return jsxRuntimeExports.jsx("span",{children:e})},children:[jsxRuntimeExports.jsx(MenuItem,{"data-test":"rc-pm-package-distribution-select-public",value:PDistributionType.Public,children:jsxRuntimeExports.jsxs(Box,{sx:menuItemValueContainerSx,children:[jsxRuntimeExports.jsx(Typography,{variant:"h3",sx:menuItemValueSx,children:SHARED_TEXT.basicInfoStep.labelDistributionPublic}),jsxRuntimeExports.jsx(Typography,{variant:"body1",sx:menuItemValueDescSx,children:SHARED_TEXT.basicInfoStep.labelDistributionPublicDesc})]})}),jsxRuntimeExports.jsx(MenuItem,{"data-test":"rc-pm-package-distribution-select-private",value:PDistributionType.Private,children:jsxRuntimeExports.jsxs(Box,{sx:menuItemValueContainerSx,children:[jsxRuntimeExports.jsx(Typography,{variant:"h3",sx:menuItemValueSx,children:SHARED_TEXT.basicInfoStep.labelDistributionPrivate}),jsxRuntimeExports.jsx(Typography,{variant:"body1",sx:menuItemValueDescSx,children:SHARED_TEXT.basicInfoStep.labelDistributionPrivateDesc})]})}),jsxRuntimeExports.jsx(MenuItem,{"data-test":"rc-pm-package-distribution-select-shareable",value:PDistributionType.Sharable,children:jsxRuntimeExports.jsxs(Box,{sx:menuItemValueContainerSx,children:[jsxRuntimeExports.jsx(Typography,{variant:"h3",sx:menuItemValueSx,children:SHARED_TEXT.basicInfoStep.labelDistributionShareable}),jsxRuntimeExports.jsx(Typography,{variant:"body1",sx:menuItemValueDescSx,children:SHARED_TEXT.basicInfoStep.labelDistributionShareableDesc})]})}),jsxRuntimeExports.jsx(MenuItem,{"data-test":"rc-pm-package-distribution-select-orglocked",value:PDistributionType.OrgLocked,children:jsxRuntimeExports.jsxs(Box,{sx:menuItemValueContainerSx,children:[jsxRuntimeExports.jsx(Typography,{variant:"h3",sx:menuItemValueSx,children:SHARED_TEXT.basicInfoStep.labelDistributionOrgLocked}),jsxRuntimeExports.jsx(Typography,{variant:"body1",sx:menuItemValueDescSx,children:SHARED_TEXT.basicInfoStep.labelDistributionOrgLockedDesc})]})}),jsxRuntimeExports.jsx(MenuItem,{"data-test":"rc-pm-package-distribution-select-instancelocked",value:PDistributionType.InstanceLocked,children:jsxRuntimeExports.jsxs(Box,{sx:menuItemValueContainerSx,children:[jsxRuntimeExports.jsx(Typography,{variant:"h3",sx:menuItemValueSx,children:SHARED_TEXT.basicInfoStep.labelDistributionInstanceLocked}),jsxRuntimeExports.jsx(Typography,{variant:"body1",sx:menuItemValueDescSx,children:SHARED_TEXT.basicInfoStep.labelDistributionInstanceLockedDesc}),jsxRuntimeExports.jsx("br",{})]})})]})})]})]}),jsxRuntimeExports.jsx(PanelControls,{invalidFields:!1,disableNext:!u||!c||!a||!n||p,disableBack:!1,nextButtonType:ENextButtonType.NEXT})]})};export{BasicInfoStep as default};
|
|
1
|
+
import{u as useSelector,aR as selectUserCanCreatePackage,r as reactExports,j as jsxRuntimeExports,B as Box,C as CircularProgress}from"./js-core.esm4.js";import{m as makeStyles,f as FormControl,T as Typography,a9 as Information,S as Select,e as MenuItem}from"./js-core.esm7.js";import{P as PanelControls,E as ENextButtonType}from"./js-core.esm103.js";import{i as imageUpload,an as characterCountTextField,N as debounce,S as Stack,T as TextField,c as Tooltip,I as IconButton,n as CheckCircle,ao as Error}from"./js-core.esm9.js";import{s as selectPreviewImage,a as selectPackageName,b as selectPackageDescription,c as selectDistributionType,d as selectors$4,e as selectIsEditMode,f as selectOriginalPackageName,g as actions,S as SHARED_TEXT,P as PDistributionType}from"./js-core.esm104.js";import"./js-core.esm12.js";import"./js-core.esm11.js";import"./js-core.esm13.js";import"./js-core.esm14.js";import"./js-core.esm35.js";import"./js-core.esm61.js";import{u as useDispatch}from"./js-core.esm15.js";import"./js-core.esm43.js";import"./js-core.esm27.js";import"./js-core.esm30.js";import"./js-core.esm32.js";import"./js-core.esm59.js";import"./js-core.esm62.js";import"./js-core.esm46.js";import"./js-core.esm47.js";import"./js-core.esm8.js";import"./js-core.esm16.js";import"./js-core.esm28.js";import"./js-core.esm48.js";import"./js-core.esm26.js";import"./js-core.esm18.js";import"./js-core.esm36.js";import"./js-core.esm65.js";import"./js-core.esm58.js";import"./js-core.esm25.js";import"./js-core.esm54.js";import"./js-core.esm44.js";import"./js-core.esm66.js";import"./js-core.esm17.js";import"./js-core.esm63.js";import"./js-core.esm29.js";import"./js-core.esm64.js";import"./js-core.esm55.js";var ImageUpload=imageUpload.jsx.ImageUpload,CharacterCountTextField=characterCountTextField.jsx.CharacterCountTextField,useStyles=makeStyles()(function(e){return{formControlWrapper:{marginTop:15,width:"100%"}}}),menuItemValueContainerSx={width:"472px"},menuItemValueSx={fontSize:"14px",fontWeight:400,marginBottom:"5px",display:"block"},menuItemValueDescSx={fontSize:"12px",color:"#424242",marginTop:0,textTransform:"none",textWrap:"wrap",whiteSpace:"pre-line"},BasicInfoStep=function(){var e,s=useStyles().classes,t=useSelector(selectPreviewImage),r=useDispatch(),i=useSelector(selectPackageName)||"",o=useSelector(selectPackageDescription)||"",a=useSelector(selectDistributionType),n=useSelector(selectUserCanCreatePackage),c=useSelector(selectors$4.selectItems)||[],p=useSelector(selectors$4.selectReadStatus),x=useSelector(selectIsEditMode),l=useSelector(selectOriginalPackageName),m=reactExports.useCallback(debounce(function(e){r(actions.allOrgOwnedPackages.setSearchValue(e)),r(actions.allOrgOwnedPackages.resetList()),r(actions.allOrgOwnedPackages.readStart(null))},400),[]),c=void 0===c.find(function(e){return e.name===i}),u=0<i.length,p="pending"===p;return jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsxs(Stack,{direction:"column",alignItems:"flex-start",sx:{marginTop:"10px"},children:[jsxRuntimeExports.jsx(Box,{id:"meta-info-section",sx:{width:"100%"},children:jsxRuntimeExports.jsxs(Stack,{direction:"row",children:[jsxRuntimeExports.jsxs(Box,{id:"package-image-section",sx:{width:"180px"},children:[jsxRuntimeExports.jsx(FormControl,{className:s.formControlWrapper,error:!0,children:jsxRuntimeExports.jsx(ImageUpload,{image:t,getUrl:!0,handleChange:function(e){var s;e.unsignedUrl?(s=e.unsignedUrl,e=e.getUrl,r(actions.basicInfo.setIcon(s)),r(actions.basicInfo.setPreviewImage(e))):(r(actions.basicInfo.setIcon("")),r(actions.basicInfo.setPreviewImage("")))},testId:"rc-pm-image"})}),jsxRuntimeExports.jsxs(Box,{sx:{paddingRight:"20px"},children:[jsxRuntimeExports.jsx(Typography,{variant:"h5",sx:{fontSize:"14px",fontWeight:600,marginBottom:"5px",marginTop:"15px"},children:SHARED_TEXT.basicInfoStep.packageImageLabel}),jsxRuntimeExports.jsx(Typography,{variant:"body1",sx:{marginTop:0,fontSize:"12px",lineHeight:"16px"},children:SHARED_TEXT.basicInfoStep.packageImageLabelDesc})]})]}),jsxRuntimeExports.jsx(Box,{id:"basic-info-section",sx:{width:"100%",paddingLeft:"15px"},children:jsxRuntimeExports.jsxs(Stack,{direction:"column",justifyContent:"flex-start",children:[jsxRuntimeExports.jsx(FormControl,{className:s.formControlWrapper,error:!0,children:jsxRuntimeExports.jsx(TextField,{sx:{width:"100%"},error:!c,id:"package-manager-name",label:SHARED_TEXT.basicInfoStep.packageName,onChange:function(e){e=e.target.value;r(actions.basicInfo.setPackageName(e)),x&&e===l||m(e)},variant:"outlined",disabled:!n,InputLabelProps:0<i.length?{shrink:!0}:{},inputProps:{maxLength:100},value:i,helperText:(t=SHARED_TEXT.basicInfoStep.packageNameIsAvailable,e=jsxRuntimeExports.jsx(CheckCircle,{sx:{fontSize:"14px",color:"#40c057"}}),u||(t=SHARED_TEXT.basicInfoStep.packageNameRequired,e=void 0),c||(t=SHARED_TEXT.basicInfoStep.errorPackageName,e=jsxRuntimeExports.jsx(Error,{sx:{fontSize:"14px",color:"inherit"}})),p&&(t=SHARED_TEXT.basicInfoStep.packageNameCheck,e=jsxRuntimeExports.jsx(CircularProgress,{size:12})),jsxRuntimeExports.jsxs(Stack,{sx:{color:"inherit",gap:"3px",transform:"translateX(-12px)"},direction:"row",alignItems:"center",children:[e&&jsxRuntimeExports.jsx(Stack,{sx:{width:"15px",height:"15px",alignItems:"center",justifyContent:"center"},children:e}),jsxRuntimeExports.jsx(Typography,{sx:{height:"15px",color:"inherit"},variant:"caption",children:t})]})),required:!0,"data-test":"rc-pm-package-name"})}),jsxRuntimeExports.jsx(FormControl,{className:s.formControlWrapper,error:!0,children:jsxRuntimeExports.jsx(CharacterCountTextField,{handleChange:function(e){r(actions.basicInfo.setPackageDescription(e))},variant:"outlined",value:o,defaultValue:o,label:SHARED_TEXT.basicInfoStep.packageDescription,lines:5,maxChar:300,error:!1,shrinkAlways:!1,testId:"rc-pm-package-description",disabled:!n})})]})})]})}),jsxRuntimeExports.jsxs(Box,{id:"distribution-section",sx:{width:"100%",borderTop:"1px solid #DADFE8",marginTop:"20px",paddingTop:"15px"},children:[jsxRuntimeExports.jsxs(Stack,{direction:"row",alignItems:"center",children:[jsxRuntimeExports.jsx(Typography,{variant:"h3",sx:{fontSize:"16px",fontWeight:700,margin:0,color:function(e){return e.palette.text.primary}},children:SHARED_TEXT.basicInfoStep.packageDistributionTypeLabel}),jsxRuntimeExports.jsx(Tooltip,{title:SHARED_TEXT.basicInfoStep.packageDistributionTypeLabel,"data-testid":"rc-pm-distribution-info-tooltip",children:jsxRuntimeExports.jsx(IconButton,{size:"small",onClick:function(){window.open("https://docs.veritone.com/#/aiware-OS/resource-center/manage-packages?id=distribution-types-for-packages","noopener","noreferrer")},children:jsxRuntimeExports.jsx(Information,{sx:{fontSize:"18px",color:"#424242"}})})})]}),jsxRuntimeExports.jsx(Typography,{variant:"body1",sx:{fontSize:"14px",fontWeight:400,color:function(e){return e.palette.text.secondary},marginBottom:0,marginTop:"5px",width:"100%"},children:SHARED_TEXT.basicInfoStep.packageDistributionTypeLabelDesc}),jsxRuntimeExports.jsx(FormControl,{children:jsxRuntimeExports.jsxs(Select,{disabled:!n,"data-test":"rc-pm-package-distribution-select",variant:"outlined",sx:{width:"320px",marginTop:"15px"},displayEmpty:!0,required:!0,labelId:"dropdown-label",id:"dropdown-select",inputProps:{"aria-label":"Without label"},value:a,onChange:function(e){e=e.target.value;r(actions.basicInfo.setDistributionType(e))},renderValue:function(e){return jsxRuntimeExports.jsx("span",{children:e})},children:[jsxRuntimeExports.jsx(MenuItem,{"data-test":"rc-pm-package-distribution-select-public",value:PDistributionType.Public,children:jsxRuntimeExports.jsxs(Box,{sx:menuItemValueContainerSx,children:[jsxRuntimeExports.jsx(Typography,{variant:"h3",sx:menuItemValueSx,children:SHARED_TEXT.basicInfoStep.labelDistributionPublic}),jsxRuntimeExports.jsx(Typography,{variant:"body1",sx:menuItemValueDescSx,children:SHARED_TEXT.basicInfoStep.labelDistributionPublicDesc})]})}),jsxRuntimeExports.jsx(MenuItem,{"data-test":"rc-pm-package-distribution-select-private",value:PDistributionType.Private,children:jsxRuntimeExports.jsxs(Box,{sx:menuItemValueContainerSx,children:[jsxRuntimeExports.jsx(Typography,{variant:"h3",sx:menuItemValueSx,children:SHARED_TEXT.basicInfoStep.labelDistributionPrivate}),jsxRuntimeExports.jsx(Typography,{variant:"body1",sx:menuItemValueDescSx,children:SHARED_TEXT.basicInfoStep.labelDistributionPrivateDesc})]})}),jsxRuntimeExports.jsx(MenuItem,{"data-test":"rc-pm-package-distribution-select-shareable",value:PDistributionType.Sharable,children:jsxRuntimeExports.jsxs(Box,{sx:menuItemValueContainerSx,children:[jsxRuntimeExports.jsx(Typography,{variant:"h3",sx:menuItemValueSx,children:SHARED_TEXT.basicInfoStep.labelDistributionShareable}),jsxRuntimeExports.jsx(Typography,{variant:"body1",sx:menuItemValueDescSx,children:SHARED_TEXT.basicInfoStep.labelDistributionShareableDesc})]})}),jsxRuntimeExports.jsx(MenuItem,{"data-test":"rc-pm-package-distribution-select-orglocked",value:PDistributionType.OrgLocked,children:jsxRuntimeExports.jsxs(Box,{sx:menuItemValueContainerSx,children:[jsxRuntimeExports.jsx(Typography,{variant:"h3",sx:menuItemValueSx,children:SHARED_TEXT.basicInfoStep.labelDistributionOrgLocked}),jsxRuntimeExports.jsx(Typography,{variant:"body1",sx:menuItemValueDescSx,children:SHARED_TEXT.basicInfoStep.labelDistributionOrgLockedDesc})]})}),jsxRuntimeExports.jsx(MenuItem,{"data-test":"rc-pm-package-distribution-select-instancelocked",value:PDistributionType.InstanceLocked,children:jsxRuntimeExports.jsxs(Box,{sx:menuItemValueContainerSx,children:[jsxRuntimeExports.jsx(Typography,{variant:"h3",sx:menuItemValueSx,children:SHARED_TEXT.basicInfoStep.labelDistributionInstanceLocked}),jsxRuntimeExports.jsx(Typography,{variant:"body1",sx:menuItemValueDescSx,children:SHARED_TEXT.basicInfoStep.labelDistributionInstanceLockedDesc}),jsxRuntimeExports.jsx("br",{})]})})]})})]})]}),jsxRuntimeExports.jsx(PanelControls,{invalidFields:!1,disableNext:!u||!c||!a||!n||p,disableBack:!1,nextButtonType:ENextButtonType.NEXT})]})};export{BasicInfoStep as default};
|
package/js-core.esm102.js.gz
CHANGED
|
Binary file
|
package/js-core.esm103.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{u as useSelector,j as jsxRuntimeExports,p as hidePanel}from"./js-core.esm4.js";import{e as selectIsEditMode,h as selectActiveStep,p as panelId,g as actions,S as SHARED_TEXT}from"./js-core.esm104.js";import"./js-core.esm12.js";import{S as Stack,c as Tooltip}from"./js-core.esm9.js";import{B as Button}from"./js-core.esm7.js";import{u as useDispatch}from"./js-core.
|
|
1
|
+
import{u as useSelector,j as jsxRuntimeExports,p as hidePanel}from"./js-core.esm4.js";import{e as selectIsEditMode,h as selectActiveStep,p as panelId,g as actions,S as SHARED_TEXT}from"./js-core.esm104.js";import"./js-core.esm12.js";import{S as Stack,c as Tooltip}from"./js-core.esm9.js";import{B as Button}from"./js-core.esm7.js";import{u as useDispatch}from"./js-core.esm15.js";(e=>{e.SKIP="SKIP",e.NEXT="NEXT",e.BACK="BACK",e.CANCEL="CANCEL",e.CREATE_PACKAGE="CREATE_PACKAGE",e.UPDATE_PACKAGE="UPDATE_PACKAGE"})(ENextButtonType=ENextButtonType||{});var ENextButtonType,PanelControls=function(e){var t=e.disableNext,s=e.disableBack,a=e.onClickNext,n=e.onClickBack,o=e.nextButtonType,i=void 0===o?"NEXT":o,o=e.invalidFields,e=void 0!==o&&o,r=useDispatch(),o=useSelector(selectIsEditMode),c=useSelector(selectActiveStep);return jsxRuntimeExports.jsxs(Stack,{sx:{position:"absolute",bottom:"30px",right:"30px",display:"flex",gap:"15px"},direction:"row",children:[jsxRuntimeExports.jsx(Button,{"data-testid":"rc-package-manager-back-btn",sx:{color:"#2A323C"},onClick:function(){n&&n(),r(1===c?hidePanel(panelId):actions.stepper.backStep())},disabled:s,children:o||1===c?SHARED_TEXT.panel.cancel():SHARED_TEXT.panel.back()}),jsxRuntimeExports.jsx(Tooltip,{placement:"top",title:t&&e?SHARED_TEXT.panel.someFieldsInvalidMessage():t?SHARED_TEXT.panel.incompleteFieldsMessage():"",children:jsxRuntimeExports.jsx("span",{children:jsxRuntimeExports.jsx(Button,{"data-testid":"rc-package-manager-next-btn",onClick:function(){r(actions.stepper.nextStep()),a&&a()},variant:"contained",disabled:t,children:(()=>{switch(i){case"NEXT":return SHARED_TEXT.panel.next();case"SKIP":return SHARED_TEXT.panel.skip();case"CREATE_PACKAGE":return SHARED_TEXT.panel.createPackage();case"UPDATE_PACKAGE":return SHARED_TEXT.panel.updatePackage();default:return null}})()})})})]})};export{ENextButtonType as E,PanelControls as P};
|
package/js-core.esm103.js.gz
CHANGED
|
Binary file
|