@e-llm-studio/instant-learning 0.0.144 → 0.0.146
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/dist/cjs/features/IL-OTJ/_components/AccordianSection.js +1 -1
- package/dist/cjs/features/IL-OTJ/_components/ChatComponents/ChatComponent.js +1 -1
- package/dist/cjs/features/IL-OTJ/_components/CriticalGaps.js +1 -1
- package/dist/cjs/features/IL-OTJ/_components/ILPopup.styles.js +1 -1
- package/dist/cjs/features/IL-OTJ/_components/MarkdownComponents/MarkdownElements.js +1 -1
- package/dist/cjs/features/IL-OTJ/_components/MarkdownComponents/MarkdownSelect.js +1 -1
- package/dist/cjs/features/IL-OTJ/_components/MessageRendering/ClickableChatComponents.js +1 -1
- package/dist/cjs/features/IL-OTJ/_components/MessageRendering/MessageRendering.js +1 -1
- package/dist/cjs/features/IL-OTJ/_components/atoms/Dropdown/Dropdown.js +1 -1
- package/dist/cjs/features/IL-OTJ/_components/molecules/Sections/SectionWrapper.js +1 -1
- package/dist/cjs/features/IL-OTJ/_components/organisms/ScopeSection/ScopeSection.js +1 -1
- package/dist/cjs/features/IL-OTJ/_components/organisms/TextSection/TextSection.js +1 -1
- package/dist/cjs/features/IL-OTJ/_components/templates/TrafficManager/CreateRule.js +1 -1
- package/dist/features/IL-OTJ/_components/AccordianSection.js +1 -1
- package/dist/features/IL-OTJ/_components/ChatComponents/ChatComponent.js +1 -1
- package/dist/features/IL-OTJ/_components/CriticalGaps.js +1 -1
- package/dist/features/IL-OTJ/_components/ILPopup.styles.js +1 -1
- package/dist/features/IL-OTJ/_components/MarkdownComponents/MarkdownElements.js +1 -1
- package/dist/features/IL-OTJ/_components/MarkdownComponents/MarkdownSelect.js +1 -1
- package/dist/features/IL-OTJ/_components/MessageRendering/ClickableChatComponents.js +1 -1
- package/dist/features/IL-OTJ/_components/MessageRendering/MessageRendering.js +1 -1
- package/dist/features/IL-OTJ/_components/atoms/Dropdown/Dropdown.js +1 -1
- package/dist/features/IL-OTJ/_components/molecules/Sections/SectionWrapper.js +1 -1
- package/dist/features/IL-OTJ/_components/organisms/ScopeSection/ScopeSection.js +1 -1
- package/dist/features/IL-OTJ/_components/organisms/TextSection/TextSection.js +1 -1
- package/dist/features/IL-OTJ/_components/templates/TrafficManager/CreateRule.js +1 -1
- package/dist/types/src/features/IL-OTJ/ILOTJTest.d.ts.map +1 -1
- package/dist/types/src/features/IL-OTJ/_components/AccordianSection.d.ts +2 -1
- package/dist/types/src/features/IL-OTJ/_components/AccordianSection.d.ts.map +1 -1
- package/dist/types/src/features/IL-OTJ/_components/ChatComponents/ChatComponent.d.ts.map +1 -1
- package/dist/types/src/features/IL-OTJ/_components/CriticalGaps.d.ts.map +1 -1
- package/dist/types/src/features/IL-OTJ/_components/ILPopup.styles.d.ts +1 -1
- package/dist/types/src/features/IL-OTJ/_components/ILPopup.styles.d.ts.map +1 -1
- package/dist/types/src/features/IL-OTJ/_components/MarkdownComponents/MarkdownElements.d.ts.map +1 -1
- package/dist/types/src/features/IL-OTJ/_components/MarkdownComponents/MarkdownSelect.d.ts.map +1 -1
- package/dist/types/src/features/IL-OTJ/_components/MessageRendering/ClickableChatComponents.d.ts.map +1 -1
- package/dist/types/src/features/IL-OTJ/_components/MessageRendering/MessageRendering.d.ts.map +1 -1
- package/dist/types/src/features/IL-OTJ/_components/atoms/Dropdown/Dropdown.d.ts +2 -1
- package/dist/types/src/features/IL-OTJ/_components/atoms/Dropdown/Dropdown.d.ts.map +1 -1
- package/dist/types/src/features/IL-OTJ/_components/molecules/Sections/SectionWrapper.d.ts +2 -1
- package/dist/types/src/features/IL-OTJ/_components/molecules/Sections/SectionWrapper.d.ts.map +1 -1
- package/dist/types/src/features/IL-OTJ/_components/organisms/ScopeSection/ScopeSection.d.ts +1 -0
- package/dist/types/src/features/IL-OTJ/_components/organisms/ScopeSection/ScopeSection.d.ts.map +1 -1
- package/dist/types/src/features/IL-OTJ/_components/templates/TrafficManager/CreateRule.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("../../../../../node_modules/tslib/tslib.es6.mjs.js"),r=require("react/jsx-runtime"),i=require("../../molecules/Sections/SectionWrapper.js"),s=require("../../atoms/Textarea/Textarea.js");exports.TextSection=function(t){var n=t.rows,o=t.value,a=t.errorMessage,l=t.onChange,c=t.placeholder,g=t.title,p=t.isHighlighted,d=t.isOpen,u=t.readOnly,h=t.showCognitiveIcon,x=t.onToggle,j=t.tooltipDescription,m=e.__rest(t,["rows","value","errorMessage","onChange","placeholder","title","isHighlighted","isOpen","readOnly","showCognitiveIcon","onToggle","tooltipDescription"]),v=r.jsx("div",e.__assign({style:{display:"flex",alignItems:"center",width:"100%",justifyContent:"space-between"}},{children:r.jsx("span",{children:g})}));return r.jsx(i.SectionWrapper,e.__assign({},m,{title:v,customStyles:{margin:"0 0.2rem 0.2rem 0.2rem"}},{children:r.jsx("div",e.__assign({className:"textarea-wrapper"},{children:r.jsx(s.Textarea,{rows:n,placeholder:c,value:o,onChange:function(e){return l(e.target.value)},isHighlighted:p,isOpen:d,isReadOnly:u,inputReadOnly:u,onToggle:x,showCognitiveIcon:h,tooltipDescription:j,errorMessage:a})}))}))};
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("../../../../../node_modules/tslib/tslib.es6.mjs.js"),r=require("react/jsx-runtime"),i=require("../../molecules/Sections/SectionWrapper.js"),s=require("../../atoms/Textarea/Textarea.js");exports.TextSection=function(t){var n=t.rows,o=t.value,a=t.errorMessage,l=t.onChange,c=t.placeholder,g=t.title,p=t.isHighlighted,d=t.isOpen,u=t.readOnly,h=t.showCognitiveIcon,x=t.onToggle,j=t.tooltipDescription,m=e.__rest(t,["rows","value","errorMessage","onChange","placeholder","title","isHighlighted","isOpen","readOnly","showCognitiveIcon","onToggle","tooltipDescription"]),v=r.jsx("div",e.__assign({style:{display:"flex",alignItems:"center",width:"100%",justifyContent:"space-between"}},{children:r.jsx("span",{children:g})}));return r.jsx(i.SectionWrapper,e.__assign({},m,{readOnly:u,title:v,customStyles:{margin:"0 0.2rem 0.2rem 0.2rem"}},{children:r.jsx("div",e.__assign({className:"textarea-wrapper"},{children:r.jsx(s.Textarea,{rows:n,placeholder:c,value:o,onChange:function(e){return l(e.target.value)},isHighlighted:p,isOpen:d,isReadOnly:u,inputReadOnly:u,onToggle:x,showCognitiveIcon:h,tooltipDescription:j,errorMessage:a})}))}))};
|
|
2
2
|
//# sourceMappingURL=TextSection.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var i=require("../../../../../node_modules/tslib/tslib.es6.mjs.js"),e=require("react/jsx-runtime"),
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var i=require("../../../../../node_modules/tslib/tslib.es6.mjs.js"),e=require("react/jsx-runtime"),n=require("react"),t=require("../../InputDataReasoningCard.js"),o=require("../../organisms/ConditionSection/ConditionSection.js"),r=require("../../organisms/ConfigSection/ConfigSection.js"),a=require("../../organisms/ScopeSection/ScopeSection.js"),l=require("../../organisms/TextSection/TextSection.js"),s=require("../../AccordianSection.js");function d(i){return i&&"object"==typeof i&&"default"in i?i:{default:i}}var c=d(n),u=function(n){var t=n.children,o=n.onAddVariant,r=c.default.Children.toArray(t);return e.jsxs("div",i.__assign({style:{display:"flex",flexDirection:"column",alignItems:"flex-start"}},{children:[r.map(function(i,n){return e.jsxs(c.default.Fragment,{children:[i,e.jsx("div",{style:{width:"2px",height:"20px",backgroundColor:"#E2E8F0",marginLeft:"30px"}})]},n)}),e.jsx("div",i.__assign({onClick:o,style:{padding:"8px 16px",border:"1px solid #E2E8F0",borderRadius:"8px",color:"#475569",fontSize:"14px",fontWeight:"500",cursor:"pointer",backgroundColor:"#FFFFFF",userSelect:"none"}},{children:"Add Variant"}))]}))};exports.CreateRule=function(d){var c,p,g,h,v,f,y,_,x,D,T=d.state,C=d.handlers,j=d.uiState,m=(null==j?void 0:j.highlights)||new Map,S=m.get("global_0")||{},R=n.useState({}),A=R[0],O=R[1],b=function(e){O(function(n){var t;return i.__assign(i.__assign({},n),((t={})[e]=!n[e],t))})},w=function(i){var e,n=null===(e=T.fieldCitations)||void 0===e?void 0:e[i];return Array.isArray(n)&&n.length>0?n:T.citations},W={marginTop:"-17px",position:"relative",zIndex:1};return console.log("CreateRule state:",T),console.log("CreateRule uiState:",j),e.jsxs("div",i.__assign({className:"traffic-manager-template"},{children:[e.jsx(s.default,i.__assign({title:{type:"other",label:"Rule Setup"},footerData:{ruleTitle:T.ruleTitle,stations:[T.scopeData.station],tiers:null===(c=T.scopeData)||void 0===c?void 0:c.tiers},defaultOpen:"Create"===(null==j?void 0:j.usedFor),readOnly:"Create"!==(null==j?void 0:j.usedFor)},{children:e.jsxs("div",i.__assign({style:{display:"flex",flexDirection:"column",gap:"20px"}},{children:[e.jsx(l.TextSection,i.__assign({id:"rule-title",title:"Rule Title",rows:1,placeholder:"Enter a short, descriptive title for the rule",required:!0,value:T.ruleTitle,onChange:C.setRuleTitle,readOnly:"Create"!==(null==j?void 0:j.usedFor),isOpen:A.ruleTitle,onToggle:function(){return b("ruleTitle")},isHighlighted:S.ruleTitle||!1,showCognitiveIcon:T.citation.ruleTitle,tooltipDescription:"Why this Title?",errorMessage:null===(p=j.validationErrors)||void 0===p?void 0:p.ruleTitle},j)),T.citation.ruleTitle&&e.jsx("div",i.__assign({style:W},{children:e.jsx(t.InputDataReasoningCard,{isVisible:A.ruleTitle,citation:T.citation.ruleTitle,citations:w("ruleTitle"),fieldName:"Rule Title",fieldValue:T.ruleTitle})})),e.jsx(a.ScopeSection,i.__assign({id:"scope",required:!0,scopeData:T.scopeData,onScopeChange:C.onScopeChange,tierLabel:"Which tiers should this rule apply to?",stationLabel:"Which rule set should this rule belong to?",highlights:S,isOpen:A.scopeData,onToggle:function(){return b("scopeData")},showCognitiveIcon:T.citation.scopeData,tooltipDescription:"Why this Scope?",errorMessage:(null===(g=j.validationErrors)||void 0===g?void 0:g.station)||(null===(h=j.validationErrors)||void 0===h?void 0:h.tiers),stationErrorMessage:null===(v=j.validationErrors)||void 0===v?void 0:v.station,tierErrorMessage:null===(f=j.validationErrors)||void 0===f?void 0:f.tiers,readOnly:"Create"!==(null==j?void 0:j.usedFor)},j)),T.citation.scopeData&&e.jsx("div",i.__assign({style:W},{children:e.jsx(t.InputDataReasoningCard,{isVisible:A.scopeData,citation:T.citation.scopeData,citations:w("scopeData"),fieldName:"Scope",fieldValue:null===(_=null===(y=T.scopeData)||void 0===y?void 0:y.tiers)||void 0===_?void 0:_.join(", ")})}))]}))})),null===(D=null===(x=null==j?void 0:j.tierOptions)||void 0===x?void 0:x.filter(function(i){var e,n;return null===(n=null===(e=T.scopeData)||void 0===e?void 0:e.tiers)||void 0===n?void 0:n.includes(i)}))||void 0===D?void 0:D.map(function(n,a,d){var c,p=n.toLowerCase().replace(/ /g,"_"),g=(null===(c=T.variantsByTier)||void 0===c?void 0:c[p])||[],h=(null==j?void 0:j.defaultTierOpen)>=0?a===j.defaultTierOpen:a===d.length-1;return console.log("Rendering tier : ",n),e.jsx(s.default,i.__assign({title:{type:"other",label:n},defaultOpen:h,footerData:{description:"Variants for ".concat(n)}},{children:e.jsx(u,i.__assign({onAddVariant:function(){var i;return null===(i=C.addNewVariant)||void 0===i?void 0:i.call(C,p)}},{children:g.map(function(n,a){var d,c,u,h,v,f,y,_,x,D=n.variantType||"default",T="".concat(p,"-variant-").concat(a),S=(null==j?void 0:j.defaultVariantOpen)>=0?a===j.defaultVariantOpen:a===g.length-1,R="".concat(p,"_").concat(a),O=m.get(R)||{},q=n.is_variant||!1,E=(null===(c=null===(d=j.separationItemsByTier)||void 0===d?void 0:d[p])||void 0===c?void 0:c.get(a))||[],V=(null===(h=null===(u=j.togglesByTier)||void 0===u?void 0:u[p])||void 0===h?void 0:h.get(a))||[];return console.log("Rendering ".concat(p," variant ").concat(a,":"),n),console.log("Rendering Variant : ",n),e.jsx(s.default,i.__assign({title:{type:D,label:n.isReadOnly&&g.length>1?"Variant ".concat(a+1):"Rule Behavior",isNewVariant:q},defaultOpen:S,footerData:{ruleTitle:D,description:n.ruleDescription||""}},{children:e.jsxs("div",i.__assign({style:{display:"flex",flexDirection:"column",gap:"20px"}},{children:[e.jsx(l.TextSection,i.__assign({id:"rule-description-".concat(p,"-").concat(a),title:"Rule Description",rows:2,placeholder:"Explain the rule behaviour",required:!0,readOnly:n.isReadOnly,value:n.ruleDescription||"",onChange:function(i){return C.setRuleDescription(p,a,i)},isOpen:A["ruleDescription-".concat(p,"-").concat(a)],onToggle:function(){return b("ruleDescription-".concat(p,"-").concat(a))},isHighlighted:O.ruleDescription||!1,showCognitiveIcon:null===(v=n.reasoning)||void 0===v?void 0:v.ruleDescription,tooltipDescription:"Why this Description?",errorMessage:null===(f=j.validationErrors)||void 0===f?void 0:f["ruleDescription-".concat(p,"-").concat(a)]},j)),(null===(y=n.reasoning)||void 0===y?void 0:y.ruleDescription)&&e.jsx("div",i.__assign({style:W},{children:e.jsx(t.InputDataReasoningCard,{isVisible:A["ruleDescription-".concat(p,"-").concat(a)],citation:n.reasoning.ruleDescription,citations:w("ruleDescription_".concat(p,"_").concat(a)),fieldName:"Rule Description",fieldValue:n.ruleDescription})})),e.jsx(o.ConditionSection,i.__assign({id:"when-to-apply-".concat(p,"-").concat(a),title:"When to apply",required:!0,dividerRequired:!0,readOnly:n.isReadOnly,conditions:n.whenToApplyConditions||[],onAdd:function(){return C.addWhenToApply(p,a)},onRemove:function(i,e,n){return C.removeWhenToApply(i,e,n)},onEdit:function(i,e,n,t){return C.editWhenToApply(i,e,n,t)},index:a,tierKey:p,isHighlighted:O.wta||!1,highlightedIds:null==j?void 0:j.highlightedIds,tooltipDescription:"Why this Condition?",citations:w("whenToApply_".concat(p,"_").concat(a)),bordered:!0,addLabel:"Add When to apply",isAiStreaming:j.isAiStreaming,errorMessage:null===(_=j.validationErrors)||void 0===_?void 0:_["whenToApply-".concat(p,"-").concat(a)]},j)),e.jsx(o.ConditionSection,i.__assign({id:"when-not-to-apply-".concat(p,"-").concat(a),title:"When NOT to apply",required:!1,dividerRequired:!0,readOnly:n.isReadOnly,conditions:n.whenNotToApplyConditions||[],onAdd:function(){return C.addWhenNotToApply(p,a)},onRemove:function(i,e,n){return C.removeWhenNotToApply(i,e,n)},onEdit:function(i,e,n,t){return C.editWhenNotToApply(i,e,n,t)},index:a,tierKey:p,isHighlighted:O.wnta||!1,highlightedIds:null==j?void 0:j.highlightedIds,tooltipDescription:"Why this Condition?",citations:w("whenNotToApply_".concat(p,"_").concat(a)),bordered:!0,addLabel:"Add When NOT to apply",isAiStreaming:j.isAiStreaming},j)),e.jsx(r.ConfigSection,i.__assign({id:"config-".concat(p,"-").concat(a),title:"Configuration",required:!1,highlights:O,bordered:!0,readOnly:n.isReadOnly,onConfigChange:function(i,e){return C.onConfigChange(p,a,i,e)},separationItems:E,toggles:V,index:a},j)),(null===(x=n.reasoning)||void 0===x?void 0:x.configData)&&e.jsx("div",i.__assign({style:W},{children:e.jsx(t.InputDataReasoningCard,{citation:n.reasoning.configData,citations:w("configData_".concat(p,"_").concat(a)),fieldName:"Configuration",fieldValue:"Proposed Configuration"})}))]}))}),T)})}))}),"tier-".concat(a))})]}))};
|
|
2
2
|
//# sourceMappingURL=CreateRule.js.map
|