@e-llm-studio/instant-learning 1.3.0-alpha.92 → 1.3.0-alpha.93
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("tslib"),t=require("react/jsx-runtime"),a=require("react"),r=require("
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("tslib"),t=require("react/jsx-runtime"),a=require("react"),r=require("./styles/Sidebar.module.css.js"),n=require("./components/SidebarSearch.js"),o=require("./components/ScopeTree/TreeSidebar.js"),s=require("./store/useLMSConfigStore.js"),i=require("./constants.js"),c=require("./store/useLearningTemplateStore.js");exports.default=function(d){var l=d.scopeTreeData,u=d.selectedRuleSetId,S=d.onAddChild,h=d.onRenameChild,p=d.onDeleteChild,C=d.canDeleteScope,j=d.canEditScope,f=d.canCreateScope,g=d.onSectionSelect,m=d.activeSectionId;d.onOnboardStation;var v=d.sectionsConfig,b=d.nodeTypesConfig,T=d.searchPlaceholder,q=void 0===T?s.dt("".concat(i.MIDDLE_DRAWER_DT_PATH,".treeMenu.search"),"Search for Scopes.."):T,x=a.useState(""),D=x[0],_=x[1],y=a.useState(0),R=y[0],I=y[1];return c.useLearningTemplateStore.getState().backwardCompatibility,t.jsx("div",e.__assign({className:r.default.sidebar},{children:t.jsxs(t.Fragment,{children:[t.jsx(n.default,{value:D,onChange:_,placeholder:q,searchCount:R}),t.jsx("div",{className:r.default.divider}),t.jsx("div",e.__assign({className:r.default.content},{children:l&&t.jsx(o.TreeSidebar,{data:l.data,onAddChild:S,onRenameChild:h,onDeleteChild:p,canDeleteScope:C,canEditScope:j,canCreateScope:f,onSectionSelect:g,selectedRuleSetId:u,activeSectionId:m,searchQuery:D,onSearchCountChange:I,sectionsConfig:v,nodeTypesConfig:b})}))]})}))};
|
|
2
2
|
//# sourceMappingURL=Sidebar.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{__assign as e}from"tslib";import{
|
|
1
|
+
import{__assign as e}from"tslib";import{jsx as o,jsxs as t,Fragment as r}from"react/jsx-runtime";import{useState as a}from"react";import n from"./styles/Sidebar.module.css.js";import c from"./components/SidebarSearch.js";import{TreeSidebar as i}from"./components/ScopeTree/TreeSidebar.js";import{dt as s}from"./store/useLMSConfigStore.js";import{MIDDLE_DRAWER_DT_PATH as d}from"./constants.js";import{useLearningTemplateStore as l}from"./store/useLearningTemplateStore.js";var m=function(m){var S=m.scopeTreeData,p=m.selectedRuleSetId,h=m.onAddChild,C=m.onRenameChild,f=m.onDeleteChild,u=m.canDeleteScope,v=m.canEditScope,g=m.canCreateScope,b=m.onSectionSelect,j=m.activeSectionId;m.onOnboardStation;var T=m.sectionsConfig,y=m.nodeTypesConfig,D=m.searchPlaceholder,I=void 0===D?s("".concat(d,".treeMenu.search"),"Search for Scopes.."):D,R=a(""),N=R[0],x=R[1],A=a(0),E=A[0],L=A[1];return l.getState().backwardCompatibility,o("div",e({className:n.sidebar},{children:t(r,{children:[o(c,{value:N,onChange:x,placeholder:I,searchCount:E}),o("div",{className:n.divider}),o("div",e({className:n.content},{children:S&&o(i,{data:S.data,onAddChild:h,onRenameChild:C,onDeleteChild:f,canDeleteScope:u,canEditScope:v,canCreateScope:g,onSectionSelect:b,selectedRuleSetId:p,activeSectionId:j,searchQuery:N,onSearchCountChange:L,sectionsConfig:T,nodeTypesConfig:y})}))]})}))};export{m as default};
|
|
2
2
|
//# sourceMappingURL=Sidebar.js.map
|