|
538 | 538 | </div> |
539 | 539 | <div class="utility-delete line-align-center"> |
540 | 540 | {#if rule.json_args} |
541 | | - <div class="line-align-center"> |
542 | | - <i |
543 | | - class="bx bxs-info-circle text-primary fs-5" |
544 | | - id={`rule-args-${uid}`} |
545 | | - data-bs-toggle="tooltip" |
546 | | - data-bs-placement="top" |
547 | | - title="Rule arguments" |
| 541 | + <div class="line-align-center"> |
| 542 | + <i |
| 543 | + class="bx bxs-info-circle text-primary fs-5" |
| 544 | + id={`rule-args-${uid}`} |
| 545 | + data-bs-toggle="tooltip" |
| 546 | + data-bs-placement="top" |
| 547 | + title="Rule arguments" |
| 548 | + /> |
| 549 | + <BotsharpTooltip |
| 550 | + containerClasses="agent-utility-desc" |
| 551 | + style={`min-width: ${Math.floor(windowWidth*0.3)}px;`} |
| 552 | + target={`rule-args-${uid}`} |
| 553 | + placement="right" |
| 554 | + persist |
| 555 | + > |
| 556 | + <Markdown |
| 557 | + rawText |
| 558 | + scrollable |
| 559 | + containerClasses={'markdown-div'} |
| 560 | + containerStyles={`max-width: ${Math.floor(windowWidth*0.3)}px;`} |
| 561 | + text={rule.json_args} |
548 | 562 | /> |
549 | | - <BotsharpTooltip |
550 | | - containerClasses="agent-utility-desc" |
551 | | - style={`min-width: ${Math.floor(windowWidth*0.3)}px;`} |
552 | | - target={`rule-args-${uid}`} |
553 | | - placement="right" |
554 | | - persist |
555 | | - > |
556 | | - <Markdown |
557 | | - rawText |
558 | | - scrollable |
559 | | - containerClasses={'markdown-div'} |
560 | | - containerStyles={`max-width: ${Math.floor(windowWidth*0.3)}px;`} |
561 | | - text={rule.json_args} |
562 | | - /> |
563 | | - </BotsharpTooltip> |
564 | | - </div> |
| 563 | + </BotsharpTooltip> |
| 564 | + </div> |
565 | 565 | {/if} |
566 | 566 | </div> |
567 | 567 | </div> |
|
577 | 577 | </div> |
578 | 578 | <div class="utility-value"> |
579 | 579 | <div class="utility-input line-align-center"> |
580 | | - <CodeScript |
581 | | - language="json" |
582 | | - containerClasses="agent-rule-config" |
583 | | - hideLineNumber={true} |
584 | | - editable={!rule.rule_criteria?.disabled} |
585 | | - scriptText={JSON.stringify(rule.rule_criteria?.config || {}, null, 2)} |
586 | | - on:change={(e) => changeContent(e, uid, 'criteria-config')} |
587 | | - /> |
| 580 | + <CodeScript |
| 581 | + language="json" |
| 582 | + containerClasses="agent-rule-config" |
| 583 | + hideLineNumber={true} |
| 584 | + editable={!rule.rule_criteria?.disabled} |
| 585 | + scriptText={JSON.stringify(rule.rule_criteria?.config || {}, null, 2)} |
| 586 | + on:change={(e) => changeContent(e, uid, 'criteria-config')} |
| 587 | + /> |
588 | 588 | </div> |
589 | 589 | <div class="utility-delete line-align-center"></div> |
590 | 590 | </div> |
|
638 | 638 | </div> |
639 | 639 | <div class="utility-value"> |
640 | 640 | <div class="utility-input line-align-center"> |
641 | | - <CodeScript |
642 | | - language="json" |
643 | | - containerClasses="agent-rule-config" |
644 | | - hideLineNumber={true} |
645 | | - editable={!rule.rule_action?.disabled} |
646 | | - scriptText={JSON.stringify(rule.rule_action?.config || {}, null, 2)} |
647 | | - on:change={(e) => changeContent(e, uid, 'action-config')} |
648 | | - /> |
| 641 | + <CodeScript |
| 642 | + language="json" |
| 643 | + containerClasses="agent-rule-config" |
| 644 | + hideLineNumber={true} |
| 645 | + editable={!rule.rule_action?.disabled} |
| 646 | + scriptText={JSON.stringify(rule.rule_action?.config || {}, null, 2)} |
| 647 | + on:change={(e) => changeContent(e, uid, 'action-config')} |
| 648 | + /> |
649 | 649 | </div> |
650 | 650 | <div class="utility-delete line-align-center"></div> |
651 | 651 | </div> |
|
0 commit comments