@e-llm-studio/instant-learning 0.0.165 → 0.0.167
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/MessageRendering/RuleValidationCard.js +1 -1
- package/dist/cjs/features/IL-OTJ/_components/templates/RuleComparison/RuleComparison.js +1 -1
- package/dist/cjs/features/IL-OTJ/_components/templates/TrafficManager/CreateRule.js +1 -1
- package/dist/features/IL-OTJ/_components/MessageRendering/RuleValidationCard.js +1 -1
- package/dist/features/IL-OTJ/_components/templates/RuleComparison/RuleComparison.js +1 -1
- package/dist/features/IL-OTJ/_components/templates/TrafficManager/CreateRule.js +1 -1
- package/dist/types/src/features/IL-OTJ/_components/MessageRendering/RuleValidationCard.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{__assign as i}from"../../../../../node_modules/tslib/tslib.es6.mjs.js";import{jsxs as e,jsx as t}from"react/jsx-runtime";import n,{useState as o}from"react";import{InputDataReasoningCard as l}from"../../InputDataReasoningCard.js";import{ConditionSection as r}from"../../organisms/ConditionSection/ConditionSection.js";import{ConfigSection as a}from"../../organisms/ConfigSection/ConfigSection.js";import{ScopeSection as d}from"../../organisms/ScopeSection/ScopeSection.js";import{TextSection as c}from"../../organisms/TextSection/TextSection.js";import s from"../../AccordianSection.js";import{ButtonCognitiveIcon as u}from"../../_svg/ButtonCognitiveIcon.js";var p=function(o){var l=o.children,r=o.onAddVariant,a=n.Children.toArray(l);return e("div",i({style:{display:"flex",flexDirection:"column",alignItems:"flex-start"}},{children:[a.map(function(i,o){return e(n.Fragment,{children:[i,t("div",{style:{width:"2px",height:"20px",backgroundColor:"#E2E8F0",marginLeft:"30px"}})]},o)}),t("div",i({onClick:r,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"}))]}))},v=function(v){var h,g,f,y,T,m,D,C,O,x,A,V=v.state,b=v.handlers,S=v.uiState,w=(null==S?void 0:S.highlights)||new Map,R=w.get("global_0")||{},E=o({}),I=E[0],W=E[1],_=o(null),N=_[0],F=_[1],j=n.useRef(null==S?void 0:S.defaultVariantOpen),B=n.useRef(V.variantsByTier);n.useEffect(function(){var i,e,t,n,o=null,l=!1;j.current!==(null==S?void 0:S.defaultVariantOpen)&&(l=!0,j.current=null==S?void 0:S.defaultVariantOpen),V.variantsByTier,B.current,l&&(null===(e=null===(i=null==S?void 0:S.tierOptions)||void 0===i?void 0:i.filter(function(i){var e,t;return null===(t=null===(e=V.scopeData)||void 0===e?void 0:e.tiers)||void 0===t?void 0:t.includes(i)}))||void 0===e||e.forEach(function(i){var e,t=i.toLowerCase().replace(/ /g,"_");((null===(e=V.variantsByTier)||void 0===e?void 0:e[t])||[]).forEach(function(i,e){(null==S?void 0:S.defaultVariantOpen)===e&&(o="".concat(t,"-variant-").concat(e)),(null==S?void 0:S.autoScrollVariantIndex)===e&&(o="".concat(t,"-variant-").concat(e))})}),o&&F(o)),null===N&&(null==S?void 0:S.defaultVariantOpen)>=0&&(null===(n=null===(t=null==S?void 0:S.tierOptions)||void 0===t?void 0:t.filter(function(i){var e,t;return null===(t=null===(e=V.scopeData)||void 0===e?void 0:e.tiers)||void 0===t?void 0:t.includes(i)}))||void 0===n||n.forEach(function(i){var e,t=i.toLowerCase().replace(/ /g,"_");((null===(e=V.variantsByTier)||void 0===e?void 0:e[t])||[])[S.defaultVariantOpen]&&F("".concat(t,"-variant-").concat(S.defaultVariantOpen))})),B.current=V.variantsByTier},[V.variantsByTier,null==S?void 0:S.defaultVariantOpen,null===(h=V.scopeData)||void 0===h?void 0:h.tiers,null==S?void 0:S.tierOptions,null==S?void 0:S.autoScrollVariantIndex]);var L=function(e){W(function(t){var n;return i(i({},t),((n={})[e]=!t[e],n))})},q=function(i){var e,t=null===(e=V.fieldCitations)||void 0===e?void 0:e[i];return Array.isArray(t)&&t.length>0?t:V.citations},M={marginTop:"-17px",position:"relative",zIndex:1},k=function(i){i&&i.scrollIntoView({behavior:"smooth",block:"center"})};return console.log("CreateRule state:",V),console.log("CreateRule uiState:",S),e("div",i({className:"traffic-manager-template"},{children:[t(s,i({title:{type:"other",label:(null==S?void 0:S.setupLabel)||"Rule Setup"},footerData:{ruleTitle:V.ruleTitle,stations:[V.scopeData.station],tiers:null===(g=V.scopeData)||void 0===g?void 0:g.tiers},defaultOpen:"Create"===(null==S?void 0:S.usedFor),readOnly:"Create"!==(null==S?void 0:S.usedFor)},{children:e("div",i({style:{display:"flex",flexDirection:"column",gap:"20px"}},{children:[t(c,i({id:"rule-title",title:S.ruleTitle||"Rule Title",rows:1,placeholder:"Enter a short, descriptive title for the rule",required:!0,value:V.ruleTitle,onChange:b.setRuleTitle,readOnly:"Create"!==(null==S?void 0:S.usedFor),isOpen:I.ruleTitle,onToggle:function(){return L("ruleTitle")},isHighlighted:R.ruleTitle||!1,showCognitiveIcon:V.citation.ruleTitle,tooltipDescription:"Why this Title?",errorMessage:null===(f=S.validationErrors)||void 0===f?void 0:f.ruleTitle},S)),V.citation.ruleTitle&&t("div",i({style:M},{children:t(l,{isVisible:I.ruleTitle,citation:V.citation.ruleTitle,citations:q("ruleTitle"),fieldName:"Rule Title",fieldValue:V.ruleTitle})})),t(d,i({id:"scope",title:S.scopeTitle||"Scope",required:!0,scopeData:V.scopeData,onScopeChange:b.onScopeChange,tierLabel:"Which tiers should this rule apply to?",stationLabel:"Which rule set should this rule belong to?",highlights:R,isOpen:I.scopeData,onToggle:function(){return L("scopeData")},showCognitiveIcon:V.citation.scopeData,cognitiveIcon:t(u,{}),tooltipDescription:"Why this Scope?",errorMessage:(null===(y=S.validationErrors)||void 0===y?void 0:y.station)||(null===(T=S.validationErrors)||void 0===T?void 0:T.tiers),stationErrorMessage:null===(m=S.validationErrors)||void 0===m?void 0:m.station,tierErrorMessage:null===(D=S.validationErrors)||void 0===D?void 0:D.tiers,readOnly:"Create"!==(null==S?void 0:S.usedFor)},S)),V.citation.scopeData&&t("div",i({style:M},{children:t(l,{isVisible:I.scopeData,citation:V.citation.scopeData,citations:q("scopeData"),fieldName:"Scope",fieldValue:null===(O=null===(C=V.scopeData)||void 0===C?void 0:C.tiers)||void 0===O?void 0:O.join(", ")})}))]}))})),null===(A=null===(x=null==S?void 0:S.tierOptions)||void 0===x?void 0:x.filter(function(i){var e,t;return null===(t=null===(e=V.scopeData)||void 0===e?void 0:e.tiers)||void 0===t?void 0:t.includes(i)}))||void 0===A?void 0:A.map(function(n,o,d){var u,v=n.toLowerCase().replace(/ /g,"_"),h=(null===(u=V.variantsByTier)||void 0===u?void 0:u[v])||[],g=h.length,f="".concat(g," ").concat(1===g?"variant":"variants"," configured for this tier"),y=!((null==S?void 0:S.defaultTierOpen)>=0)||o===S.defaultTierOpen;return console.log("Rendering tier : ",n),t(s,i({variant:"tier-header",title:{type:"other",label:n},subtitle:f,defaultOpen:y,footerData:{description:"Variants for ".concat(n)}},{children:t(p,i({onAddVariant:function(){var i;return null===(i=b.addNewVariant)||void 0===i?void 0:i.call(b,v)}},{children:h.map(function(n,o){var d,u,p,g,f,y,T,m,D,C=n.variantType||"default",O="".concat(v,"-variant-").concat(o),x=!0===n.is_variant;(null==S?void 0:S.defaultVariantOpen)>=0&&S.defaultVariantOpen;var A="".concat(v,"_").concat(o),V=w.get(A)||{},R=(null===(u=null===(d=S.separationItemsByTier)||void 0===d?void 0:d[v])||void 0===u?void 0:u.get(o))||[],E=(null===(g=null===(p=S.togglesByTier)||void 0===p?void 0:p[v])||void 0===g?void 0:g.get(o))||[],W=(null==S?void 0:S.autoScrollVariantIndex)===o||!0===n.is_variant;return console.log("Rendering ".concat(v," variant ").concat(o,":"),n),console.log("Rendering Variant : ",n),t("div",i({ref:W?k:null,style:{width:"100%"}},{children:t(s,i({title:{type:C,label:n.isReadOnly&&h.length>1?"".concat(o?"Variant "+o:"Default"):(null==S?void 0:S.behaviourLabel)||"Default",isNewVariant:x},defaultOpen:!0,expanded:N===O,onToggle:function(){var i,e=N===O;F(e?null:O),null===(i=null==S?void 0:S.setActiveVariantAccordionIndex)||void 0===i||i.call(S,e?null:o)},variant:"rule-behavior",footerData:{ruleTitle:C,description:n.ruleDescription||""}},{children:e("div",i({style:{display:"flex",flexDirection:"column",gap:"20px"}},{children:[t(c,i({id:"rule-description-".concat(v,"-").concat(o),title:S.ruleDescriptionTitle||"Rule Description",rows:2,placeholder:"Explain the rule behaviour",required:!0,readOnly:n.isReadOnly,value:n.ruleDescription||"",onChange:function(i){return b.setRuleDescription(v,o,i)},isOpen:I["ruleDescription-".concat(v,"-").concat(o)],onToggle:function(){return L("ruleDescription-".concat(v,"-").concat(o))},isHighlighted:V.ruleDescription||!1,showCognitiveIcon:null===(f=n.reasoning)||void 0===f?void 0:f.ruleDescription,tooltipDescription:"Why this Description?",errorMessage:null===(y=S.validationErrors)||void 0===y?void 0:y["ruleDescription-".concat(v,"-").concat(o)]},S)),(null===(T=n.reasoning)||void 0===T?void 0:T.ruleDescription)&&t("div",i({style:M},{children:t(l,{isVisible:I["ruleDescription-".concat(v,"-").concat(o)],citation:n.reasoning.ruleDescription,citations:q("ruleDescription_".concat(v,"_").concat(o)),fieldName:"Rule Description",fieldValue:n.ruleDescription})})),t(r,i({id:"when-to-apply-".concat(v,"-").concat(o),title:S.whenToApplyTitle||"When to apply",required:!0,dividerRequired:!0,readOnly:n.isReadOnly,conditions:n.whenToApplyConditions||[],onAdd:function(){return b.addWhenToApply(v,o)},onRemove:function(i,e,t){return b.removeWhenToApply(i,e,t)},onEdit:function(i,e,t,n){return b.editWhenToApply(i,e,t,n)},index:o,tierKey:v,isHighlighted:V.wta||!1,highlightedIds:null==S?void 0:S.highlightedIds,tooltipDescription:"Why this Condition?",citations:q("whenToApply_".concat(v,"_").concat(o)),bordered:!0,addLabel:"Add When to apply",isAiStreaming:S.isAiStreaming,errorMessage:null===(m=S.validationErrors)||void 0===m?void 0:m["whenToApply-".concat(v,"-").concat(o)]},S)),t(r,i({id:"when-not-to-apply-".concat(v,"-").concat(o),title:S.whenNotToApplyTitle||"When NOT to apply",required:!1,dividerRequired:!0,readOnly:n.isReadOnly,conditions:n.whenNotToApplyConditions||[],onAdd:function(){return b.addWhenNotToApply(v,o)},onRemove:function(i,e,t){return b.removeWhenNotToApply(i,e,t)},onEdit:function(i,e,t,n){return b.editWhenNotToApply(i,e,t,n)},index:o,tierKey:v,isHighlighted:V.wnta||!1,highlightedIds:null==S?void 0:S.highlightedIds,tooltipDescription:"Why this Condition?",citations:q("whenNotToApply_".concat(v,"_").concat(o)),bordered:!0,addLabel:"Add When NOT to apply",isAiStreaming:S.isAiStreaming},S)),t(a,i({id:"config-".concat(v,"-").concat(o),title:S.configTitle||"Configuration",required:!1,highlights:V,bordered:!0,readOnly:n.isReadOnly,onConfigChange:function(i,e){return b.onConfigChange(v,o,i,e)},separationItems:R,toggles:E,index:o},S)),(null===(D=n.reasoning)||void 0===D?void 0:D.configData)&&t("div",i({style:M},{children:t(l,{citation:n.reasoning.configData,citations:q("configData_".concat(v,"_").concat(o)),fieldName:"Configuration",fieldValue:"Proposed Configuration"})}))]}))}),O)}),"".concat(v,"-variant-").concat(o))})}))}),"tier-".concat(o))})]}))};export{v as CreateRule};
|
|
1
|
+
import{__assign as i}from"../../../../../node_modules/tslib/tslib.es6.mjs.js";import{jsxs as e,jsx as t}from"react/jsx-runtime";import n,{useState as o}from"react";import{InputDataReasoningCard as l}from"../../InputDataReasoningCard.js";import{ConditionSection as r}from"../../organisms/ConditionSection/ConditionSection.js";import{ConfigSection as a}from"../../organisms/ConfigSection/ConfigSection.js";import{ScopeSection as d}from"../../organisms/ScopeSection/ScopeSection.js";import{TextSection as c}from"../../organisms/TextSection/TextSection.js";import s from"../../AccordianSection.js";import{ButtonCognitiveIcon as u}from"../../_svg/ButtonCognitiveIcon.js";var v=function(o){var l=o.children,r=o.onAddVariant,a=n.Children.toArray(l);return e("div",i({style:{display:"flex",flexDirection:"column",alignItems:"flex-start"}},{children:[a.map(function(i,o){return e(n.Fragment,{children:[i,t("div",{style:{width:"2px",height:"20px",backgroundColor:"#E2E8F0",marginLeft:"30px"}})]},o)}),t("div",i({onClick:r,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"}))]}))},p=function(p){var h,g,f,y,T,m,D,C,O,x,b,V=p.state,A=p.handlers,S=p.uiState,w=(null==S?void 0:S.highlights)||new Map,R=w.get("global_0")||{},E=o({}),I=E[0],W=E[1],_=o(null),N=_[0],F=_[1],j=n.useRef(null==S?void 0:S.defaultVariantOpen),L=n.useRef(V.variantsByTier);n.useEffect(function(){var i,e,t,n,o=null,l=!1;j.current!==(null==S?void 0:S.defaultVariantOpen)&&(l=!0,j.current=null==S?void 0:S.defaultVariantOpen),V.variantsByTier,L.current,l&&(null===(e=null===(i=null==S?void 0:S.tierOptions)||void 0===i?void 0:i.filter(function(i){var e,t;return null===(t=null===(e=V.scopeData)||void 0===e?void 0:e.tiers)||void 0===t?void 0:t.includes(i)}))||void 0===e||e.forEach(function(i){var e,t=i.toLowerCase().replace(/ /g,"_");((null===(e=V.variantsByTier)||void 0===e?void 0:e[t])||[]).forEach(function(i,e){(null==S?void 0:S.defaultVariantOpen)===e&&(o="".concat(t,"-variant-").concat(e)),(null==S?void 0:S.autoScrollVariantIndex)===e&&(o="".concat(t,"-variant-").concat(e))})}),o&&F(o)),null===N&&(null==S?void 0:S.defaultVariantOpen)>=0&&(null===(n=null===(t=null==S?void 0:S.tierOptions)||void 0===t?void 0:t.filter(function(i){var e,t;return null===(t=null===(e=V.scopeData)||void 0===e?void 0:e.tiers)||void 0===t?void 0:t.includes(i)}))||void 0===n||n.forEach(function(i){var e,t=i.toLowerCase().replace(/ /g,"_");((null===(e=V.variantsByTier)||void 0===e?void 0:e[t])||[])[S.defaultVariantOpen]&&F("".concat(t,"-variant-").concat(S.defaultVariantOpen))})),L.current=V.variantsByTier},[V.variantsByTier,null==S?void 0:S.defaultVariantOpen,null===(h=V.scopeData)||void 0===h?void 0:h.tiers,null==S?void 0:S.tierOptions,null==S?void 0:S.autoScrollVariantIndex]);var B=function(e){W(function(t){var n;return i(i({},t),((n={})[e]=!t[e],n))})},q=function(i){var e,t=null===(e=V.fieldCitations)||void 0===e?void 0:e[i];return Array.isArray(t)&&t.length>0?t:V.citations},M={marginTop:"-17px",position:"relative",zIndex:1},k=function(i){i&&i.scrollIntoView({behavior:"smooth",block:"center"})};return console.log("CreateRule state:",V),console.log("CreateRule uiState:",S),e("div",i({className:"traffic-manager-template"},{children:[t(s,i({title:{type:"other",label:(null==S?void 0:S.setupLabel)||"Rule Setup"},footerData:{ruleTitle:V.ruleTitle,stations:[V.scopeData.station],tiers:null===(g=V.scopeData)||void 0===g?void 0:g.tiers},defaultOpen:"Create"===(null==S?void 0:S.usedFor),readOnly:"Create"!==(null==S?void 0:S.usedFor)},{children:e("div",i({style:{display:"flex",flexDirection:"column",gap:"20px"}},{children:[t(c,i({id:"rule-title",title:S.ruleTitle||"Rule Title",rows:1,placeholder:"Enter a short, descriptive title for the rule",required:!0,value:V.ruleTitle,onChange:A.setRuleTitle,readOnly:"Create"!==(null==S?void 0:S.usedFor),isOpen:I.ruleTitle,onToggle:function(){return B("ruleTitle")},isHighlighted:R.ruleTitle||!1,showCognitiveIcon:V.citation.ruleTitle,tooltipDescription:"Why this Title?",errorMessage:null===(f=S.validationErrors)||void 0===f?void 0:f.ruleTitle},S)),V.citation.ruleTitle&&t("div",i({style:M},{children:t(l,{isVisible:I.ruleTitle,citation:V.citation.ruleTitle,citations:q("ruleTitle"),fieldName:"Rule Title",fieldValue:V.ruleTitle})})),t(d,i({id:"scope",title:S.scopeTitle||"Scope",required:!0,scopeData:V.scopeData,onScopeChange:A.onScopeChange,tierLabel:"Which tiers should this rule apply to?",stationLabel:"Which rule set should this rule belong to?",highlights:R,isOpen:I.scopeData,onToggle:function(){return B("scopeData")},showCognitiveIcon:V.citation.scopeData,cognitiveIcon:t(u,{}),tooltipDescription:"Why this Scope?",errorMessage:(null===(y=S.validationErrors)||void 0===y?void 0:y.station)||(null===(T=S.validationErrors)||void 0===T?void 0:T.tiers),stationErrorMessage:null===(m=S.validationErrors)||void 0===m?void 0:m.station,tierErrorMessage:null===(D=S.validationErrors)||void 0===D?void 0:D.tiers,readOnly:"Create"!==(null==S?void 0:S.usedFor)},S)),V.citation.scopeData&&t("div",i({style:M},{children:t(l,{isVisible:I.scopeData,citation:V.citation.scopeData,citations:q("scopeData"),fieldName:"Scope",fieldValue:null===(O=null===(C=V.scopeData)||void 0===C?void 0:C.tiers)||void 0===O?void 0:O.join(", ")})}))]}))})),null===(b=null===(x=null==S?void 0:S.tierOptions)||void 0===x?void 0:x.filter(function(i){var e,t;return null===(t=null===(e=V.scopeData)||void 0===e?void 0:e.tiers)||void 0===t?void 0:t.includes(i)}))||void 0===b?void 0:b.map(function(n,o,d){var u,p=n.toLowerCase().replace(/ /g,"_"),h=(null===(u=V.variantsByTier)||void 0===u?void 0:u[p])||[],g=h.length,f="".concat(g," ").concat(1===g?"variant":"variants"," configured for this tier"),y=!((null==S?void 0:S.defaultTierOpen)>=0)||o===S.defaultTierOpen;return console.log("Rendering tier : ",n),t(s,i({variant:"tier-header",title:{type:"other",label:n},subtitle:f,defaultOpen:y,footerData:{description:"Variants for ".concat(n)}},{children:t(v,i({onAddVariant:function(){var i;return null===(i=A.addNewVariant)||void 0===i?void 0:i.call(A,p)}},{children:h.map(function(n,o){var d,u,v,g,f,y,T,m,D,C=n.variantType||"default",O="".concat(p,"-variant-").concat(o),x=!0===n.is_variant;(null==S?void 0:S.defaultVariantOpen)>=0&&S.defaultVariantOpen;var b="".concat(p,"_").concat(o),V=w.get(b)||{},R=(null===(u=null===(d=S.separationItemsByTier)||void 0===d?void 0:d[p])||void 0===u?void 0:u.get(o))||[],E=(null===(g=null===(v=S.togglesByTier)||void 0===v?void 0:v[p])||void 0===g?void 0:g.get(o))||[],W=(null==S?void 0:S.autoScrollVariantIndex)===o||!0===n.is_variant;return console.log("Rendering ".concat(p," variant ").concat(o,":"),n),console.log("Rendering Variant : ",n),t("div",i({ref:W?k:null,style:{width:"100%"}},{children:t(s,i({title:{type:C,label:n.isReadOnly&&h.length>1?"".concat(o?"Variant "+o:"Default"):(null==S?void 0:S.behaviourLabel)?null==S?void 0:S.behaviourLabel:0==o?"Default":"Variant "+o,isNewVariant:x},defaultOpen:!0,expanded:N===O,onToggle:function(){var i,e=N===O;F(e?null:O),null===(i=null==S?void 0:S.setActiveVariantAccordionIndex)||void 0===i||i.call(S,e?null:o)},variant:"rule-behavior",footerData:{ruleTitle:C,description:n.ruleDescription||""}},{children:e("div",i({style:{display:"flex",flexDirection:"column",gap:"20px"}},{children:[t(c,i({id:"rule-description-".concat(p,"-").concat(o),title:S.ruleDescriptionTitle||"Rule Description",rows:2,placeholder:"Explain the rule behaviour",required:!0,readOnly:n.isReadOnly,value:n.ruleDescription||"",onChange:function(i){return A.setRuleDescription(p,o,i)},isOpen:I["ruleDescription-".concat(p,"-").concat(o)],onToggle:function(){return B("ruleDescription-".concat(p,"-").concat(o))},isHighlighted:V.ruleDescription||!1,showCognitiveIcon:null===(f=n.reasoning)||void 0===f?void 0:f.ruleDescription,tooltipDescription:"Why this Description?",errorMessage:null===(y=S.validationErrors)||void 0===y?void 0:y["ruleDescription-".concat(p,"-").concat(o)]},S)),(null===(T=n.reasoning)||void 0===T?void 0:T.ruleDescription)&&t("div",i({style:M},{children:t(l,{isVisible:I["ruleDescription-".concat(p,"-").concat(o)],citation:n.reasoning.ruleDescription,citations:q("ruleDescription_".concat(p,"_").concat(o)),fieldName:"Rule Description",fieldValue:n.ruleDescription})})),t(r,i({id:"when-to-apply-".concat(p,"-").concat(o),title:S.whenToApplyTitle||"When to apply",required:!0,dividerRequired:!0,readOnly:n.isReadOnly,conditions:n.whenToApplyConditions||[],onAdd:function(){return A.addWhenToApply(p,o)},onRemove:function(i,e,t){return A.removeWhenToApply(i,e,t)},onEdit:function(i,e,t,n){return A.editWhenToApply(i,e,t,n)},index:o,tierKey:p,isHighlighted:V.wta||!1,highlightedIds:null==S?void 0:S.highlightedIds,tooltipDescription:"Why this Condition?",citations:q("whenToApply_".concat(p,"_").concat(o)),bordered:!0,addLabel:"Add When to apply",isAiStreaming:S.isAiStreaming,errorMessage:null===(m=S.validationErrors)||void 0===m?void 0:m["whenToApply-".concat(p,"-").concat(o)]},S)),t(r,i({id:"when-not-to-apply-".concat(p,"-").concat(o),title:S.whenNotToApplyTitle||"When NOT to apply",required:!1,dividerRequired:!0,readOnly:n.isReadOnly,conditions:n.whenNotToApplyConditions||[],onAdd:function(){return A.addWhenNotToApply(p,o)},onRemove:function(i,e,t){return A.removeWhenNotToApply(i,e,t)},onEdit:function(i,e,t,n){return A.editWhenNotToApply(i,e,t,n)},index:o,tierKey:p,isHighlighted:V.wnta||!1,highlightedIds:null==S?void 0:S.highlightedIds,tooltipDescription:"Why this Condition?",citations:q("whenNotToApply_".concat(p,"_").concat(o)),bordered:!0,addLabel:"Add When NOT to apply",isAiStreaming:S.isAiStreaming},S)),t(a,i({id:"config-".concat(p,"-").concat(o),title:S.configTitle||"Configuration",required:!1,highlights:V,bordered:!0,readOnly:n.isReadOnly,onConfigChange:function(i,e){return A.onConfigChange(p,o,i,e)},separationItems:R,toggles:E,index:o},S)),(null===(D=n.reasoning)||void 0===D?void 0:D.configData)&&t("div",i({style:M},{children:t(l,{citation:n.reasoning.configData,citations:q("configData_".concat(p,"_").concat(o)),fieldName:"Configuration",fieldValue:"Proposed Configuration"})}))]}))}),O)}),"".concat(p,"-variant-").concat(o))})}))}),"tier-".concat(o))})]}))};export{p as CreateRule};
|
|
2
2
|
//# sourceMappingURL=CreateRule.js.map
|
package/dist/types/src/features/IL-OTJ/_components/MessageRendering/RuleValidationCard.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RuleValidationCard.d.ts","sourceRoot":"","sources":["../../../../../../../src/features/IL-OTJ/_components/MessageRendering/RuleValidationCard.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,aAAa,EAAY,MAAM,OAAO,CAAC;AAIvD,UAAU,aAAa;IACrB,cAAc,EAAE,WAAW,GAAG,SAAS,GAAG,aAAa,CAAC;IACxD,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,eAAe,EAAE,MAAM,CAAC;IACxB,aAAa,EAAE,KAAK,CAAC,SAAS,CAAC;IAC/B,YAAY,CAAC,EAAE,cAAc,CAAC;IAC9B,gBAAgB,EAAE,MAAM,IAAI,CAAC;CAC9B;AAED,UAAU,cAAc;IACtB,SAAS,CAAC,EAAE,aAAa,CAAC;IAC1B,SAAS,CAAC,EAAE,aAAa,CAAC;IAC1B,kBAAkB,CAAC,EAAE,aAAa,CAAC;IACnC,KAAK,CAAC,EAAE,aAAa,CAAC;IACtB,WAAW,CAAC,EAAE,aAAa,CAAC;IAC5B,MAAM,CAAC,EAAE,aAAa,CAAC;CACxB;AAED,QAAA,MAAM,kBAAkB,EAAE,KAAK,CAAC,EAAE,CAAC,aAAa,
|
|
1
|
+
{"version":3,"file":"RuleValidationCard.d.ts","sourceRoot":"","sources":["../../../../../../../src/features/IL-OTJ/_components/MessageRendering/RuleValidationCard.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,aAAa,EAAY,MAAM,OAAO,CAAC;AAIvD,UAAU,aAAa;IACrB,cAAc,EAAE,WAAW,GAAG,SAAS,GAAG,aAAa,CAAC;IACxD,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,eAAe,EAAE,MAAM,CAAC;IACxB,aAAa,EAAE,KAAK,CAAC,SAAS,CAAC;IAC/B,YAAY,CAAC,EAAE,cAAc,CAAC;IAC9B,gBAAgB,EAAE,MAAM,IAAI,CAAC;CAC9B;AAED,UAAU,cAAc;IACtB,SAAS,CAAC,EAAE,aAAa,CAAC;IAC1B,SAAS,CAAC,EAAE,aAAa,CAAC;IAC1B,kBAAkB,CAAC,EAAE,aAAa,CAAC;IACnC,KAAK,CAAC,EAAE,aAAa,CAAC;IACtB,WAAW,CAAC,EAAE,aAAa,CAAC;IAC5B,MAAM,CAAC,EAAE,aAAa,CAAC;CACxB;AAED,QAAA,MAAM,kBAAkB,EAAE,KAAK,CAAC,EAAE,CAAC,aAAa,CAsI/C,CAAC;AAEF,eAAe,kBAAkB,CAAC"}
|