@nyaruka/temba-components 0.160.1 → 0.161.0
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/CHANGELOG.md
CHANGED
|
@@ -4,8 +4,15 @@ All notable changes to this project will be documented in this file. Dates are d
|
|
|
4
4
|
|
|
5
5
|
Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
|
|
6
6
|
|
|
7
|
+
#### [v0.161.0](https://github.com/nyaruka/temba-components/compare/v0.160.1...v0.161.0)
|
|
8
|
+
|
|
9
|
+
- Support legacy webhooks by preserving result_name placement [`#1035`](https://github.com/nyaruka/temba-components/pull/1035)
|
|
10
|
+
- Flow list label chips link to the label view [`#1036`](https://github.com/nyaruka/temba-components/pull/1036)
|
|
11
|
+
|
|
7
12
|
#### [v0.160.1](https://github.com/nyaruka/temba-components/compare/v0.160.0...v0.160.1)
|
|
8
13
|
|
|
14
|
+
> 30 June 2026
|
|
15
|
+
|
|
9
16
|
- Seed word-list category names from only the first word [`#1034`](https://github.com/nyaruka/temba-components/pull/1034)
|
|
10
17
|
|
|
11
18
|
#### [v0.160.0](https://github.com/nyaruka/temba-components/compare/v0.159.6...v0.160.0)
|
package/dist/temba-components.js
CHANGED
|
@@ -11124,7 +11124,7 @@ background: #ccc;
|
|
|
11124
11124
|
${this.renderUploader()}
|
|
11125
11125
|
</div>
|
|
11126
11126
|
</div>
|
|
11127
|
-
</div>`}}i([ft({type:String,attribute:!1})],Vu.prototype,"endpoint",void 0),i([ft({type:Boolean})],Vu.prototype,"pendingDrop",void 0),i([ft({type:Boolean})],Vu.prototype,"ignoreDrops",void 0),i([ft({type:String})],Vu.prototype,"icon",void 0),i([ft({type:String})],Vu.prototype,"accept",void 0),i([ft({type:Number})],Vu.prototype,"max",void 0),i([ft({type:Array})],Vu.prototype,"attachments",void 0),i([ft({type:Boolean,attribute:!1})],Vu.prototype,"uploading",void 0);let Zu="dev";try{Zu="0.
|
|
11127
|
+
</div>`}}i([ft({type:String,attribute:!1})],Vu.prototype,"endpoint",void 0),i([ft({type:Boolean})],Vu.prototype,"pendingDrop",void 0),i([ft({type:Boolean})],Vu.prototype,"ignoreDrops",void 0),i([ft({type:String})],Vu.prototype,"icon",void 0),i([ft({type:String})],Vu.prototype,"accept",void 0),i([ft({type:Number})],Vu.prototype,"max",void 0),i([ft({type:Array})],Vu.prototype,"attachments",void 0),i([ft({type:Boolean,attribute:!1})],Vu.prototype,"uploading",void 0);let Zu="dev";try{Zu="0.161.0"}catch(t){}const Yu=Zu,Ku=[{type:"has_any_word",name:"has any of the words",operands:1},{type:"has_all_words",name:"has all of the words",operands:1},{type:"has_phrase",name:"has the phrase",operands:1},{type:"has_only_phrase",name:"has only the phrase",operands:1},{type:"has_beginning",name:"starts with",operands:1},{type:"has_text",name:"has some text",operands:0,categoryName:"Has Text"},{type:"has_number",name:"has a number",operands:0,categoryName:"Has Number"},{type:"has_number_between",name:"has a number between",operands:2},{type:"has_number_lt",name:"has a number below",operands:1},{type:"has_number_lte",name:"has a number at or below",operands:1},{type:"has_number_eq",name:"has a number equal to",operands:1},{type:"has_number_gte",name:"has a number at or above",operands:1},{type:"has_number_gt",name:"has a number above",operands:1},{type:"has_date",name:"has a date",operands:0,categoryName:"Has Date"},{type:"has_date_lt",name:"has a date before",operands:1},{type:"has_date_eq",name:"has a date equal to",operands:1},{type:"has_date_gt",name:"has a date after",operands:1},{type:"has_time",name:"has a time",operands:0,categoryName:"Has Time"},{type:"has_phone",name:"has a phone number",operands:0,categoryName:"Has Phone"},{type:"has_email",name:"has an email",operands:0,categoryName:"Has Email"},{type:"has_state",name:"has state",operands:0,categoryName:"Has State",filter:"locations"},{type:"has_district",name:"has district",operands:1,categoryName:"Has District",filter:"locations"},{type:"has_ward",name:"has ward",operands:2,categoryName:"Has Ward",filter:"locations"},{type:"has_group",name:"is in the group",operands:1,visibility:"hidden"},{type:"has_category",name:"has the category",operands:0,visibility:"hidden"},{type:"has_error",name:"has an error",operands:0,categoryName:"Has Error",visibility:"hidden"},{type:"has_value",name:"is not empty",operands:0,categoryName:"Not Empty",visibility:"hidden"},{type:"has_pattern",name:"matches regex",operands:1}],Gu=t=>Ku.filter(e=>"hidden"!==e.visibility&&(!e.filter||!!t&&t.includes(e.filter))),Xu=new Set(["has_beginning","has_number","has_number_between","has_number_lt","has_number_lte","has_number_eq","has_number_gte","has_number_gt","has_pattern"]),Qu=t=>Ku.find(e=>e.type===t),Ju=t=>t.map(t=>({value:t.type,name:t.name})),tp={type:"text",required:!1,maxLength:64,placeholder:"(optional)",helpText:"The name to use to reference this result in the flow"},ep={type:"checkbox",label:"Require rules to be localized",helpText:"Each language must specify its own rules for this node"},ip={type:"checkbox",label:"Require categories to be localized",helpText:t=>{var e;const i=null===(e=t.result_name)||void 0===e?void 0:e.trim();if(i){return`Only enable if you plan to use @results.${i.toLowerCase().replace(/\s+/g,"_")}.category_localized`}return"Only enable if you plan to use category_localized in your expressions for this result"},conditions:{visible:t=>!!t.result_name}},op={label:"Save Result",localizable:!1,items:["result_name"],collapsed:t=>!(t._isNew&&t.result_name),getValueCount:t=>!!t.result_name},np={type:"accordion",multi:!0,sections:[op,{label:"Localization",localizable:!1,items:["localizeRules","localizeCategories"],collapsed:!0,getValueCount:t=>!(!t.localizeRules&&!t.localizeCategories)}]},sp={type:"accordion",multi:!0,sections:[op]},rp={type:"accordion",multi:!0,sections:[op,{label:"Localization",localizable:!1,items:["localizeCategories"],collapsed:!0,getValueCount:t=>!!t.localizeCategories}]};function ap(t,e){var i,o;const n=(null===(i=t.router)||void 0===i?void 0:i.categories)||[],s={};n.forEach(t=>{const i=t.uuid,o=e[i];s[i]={originalName:t.name,localizedName:o&&o.name?Array.isArray(o.name)?o.name[0]||"":o.name:""}});const r=(null===(o=t.router)||void 0===o?void 0:o.cases)||[],a={};return r.forEach(t=>{var i,o;if(!(null===(i=t.arguments)||void 0===i?void 0:i.length)||!t.arguments.some(t=>t))return;const n=e[t.uuid],s=(null===(o=Qu(t.type))||void 0===o?void 0:o.name)||t.type;a[t.uuid]={operatorName:s,originalArguments:[...t.arguments],localizedArguments:(null==n?void 0:n.arguments)?[...n.arguments]:t.arguments.map(()=>"")}}),{categories:s,rules:a}}function lp(t,e){const i={};return t.categories&&Object.keys(t.categories).forEach(e=>{var o,n;const s=t.categories[e],r=(null===(o=s.localizedName)||void 0===o?void 0:o.trim())||"",a=(null===(n=s.originalName)||void 0===n?void 0:n.trim())||"";r&&r!==a&&(i[e]={name:[r]})}),t.rules&&Object.keys(t.rules).forEach(e=>{const o=t.rules[e],n=o.localizedArguments||[],s=o.originalArguments||[],r=n.some((t,e)=>(null==t?void 0:t.trim())&&t.trim()!==(s[e]||""));r&&(i[e]={arguments:n.map(t=>(null==t?void 0:t.trim())||"")})}),i}function dp(t,e,i,o=[]){const n=[],s=[],r=[];return t.forEach(t=>{const a=ae(e,t.name),l=a?i.find(t=>t.uuid===a.exit_uuid):null,d=(null==l?void 0:l.uuid)||Xt(),c=(null==a?void 0:a.uuid)||Xt();if(n.push({uuid:c,name:t.name,exit_uuid:d}),s.push({uuid:d,destination_uuid:(null==l?void 0:l.destination_uuid)||null}),t.case){const e=t.case.arguments[0],i=o.find(t=>{var i;return(null===(i=t.arguments)||void 0===i?void 0:i[0])===e});r.push({uuid:(null==i?void 0:i.uuid)||Xt(),type:t.case.type,arguments:t.case.arguments,category_uuid:c})}}),{categories:n,exits:s,cases:r}}function cp(t,e,i,o,n){const s=n.some(t=>re(t,"Other"))?null:ae(i,"Other"),r=s?o.find(t=>t.uuid===s.exit_uuid):null,a=(null==r?void 0:r.uuid)||Xt(),l=(null==s?void 0:s.uuid)||Xt();return t.push({uuid:l,name:"Other",exit_uuid:a}),e.push({uuid:a,destination_uuid:(null==r?void 0:r.destination_uuid)||null}),l}function hp(t){return e=>{const i={};return t(e,i),{valid:0===Object.keys(i).length,errors:i}}}function up(t){return t.toLocalizationFormData?t.toLocalizationFormData:"categories"===t.localizable?ap:Array.isArray(t.localizable)?(e=t.localizable,(t,i)=>{const o={uuid:t.uuid};return e.forEach(t=>{const e=i[t];o[t]=Array.isArray(e)&&e[0]||""}),o}):void 0;var e}function pp(t){return t.fromLocalizationFormData?t.fromLocalizationFormData:"categories"===t.localizable?lp:Array.isArray(t.localizable)?(e=t.localizable,(t,i)=>{const o={};return e.forEach(e=>{const n=t[e];n&&""!==n.trim()&&n!==i[e]&&(o[e]=[n])}),o}):void 0;var e}const mp="undefined"!=typeof navigator&&/Mac|iPod|iPhone|iPad/.test(navigator.platform);function gp(t){return 0!==t.button||!(!mp||!t.ctrlKey)}function fp(t){if(t.dependency){const e=t.dependency.name||t.dependency.key;return`Cannot find a ${t.dependency.type} for ${e}`}return t.description}function vp(t){const e=20*Math.round(t/20);return Math.max(e,0)}const bp="font-family:SFMono-Regular, Consolas, 'Liberation Mono', Menlo, monospace;font-size:0.95em",yp={[sc.ExpressionPrefix]:`color:${Sc.expression};font-weight:600;${bp}`,[sc.Identifier]:`color:${Sc.expression};${bp}`,[sc.FunctionName]:`color:${Sc.fn};font-weight:900;${bp}`,[sc.StringLiteral]:`color:${Sc.string};${bp}`,[sc.NumberLiteral]:`color:${Sc.number};${bp}`,[sc.Keyword]:`color:${Sc.keyword};${bp}`,[sc.Operator]:`color:${Sc.operator};${bp}`,[sc.ContextRef]:`color:${Sc.expression};${bp}`,[sc.Separator]:`color:${Sc.operator};${bp}`,[sc.Arrow]:`color:${Sc.operator};${bp}`,[sc.Bracket]:`color:${Sc.operator};${bp}`,[sc.Paren]:`color:${Sc.paren};${bp}`,[sc.Whitespace]:bp},xp=[[/claude|anthropic/i,"anthropic"],[/gpt|openai|o1|o3|o4/i,"openai"],[/gemini|google/i,"gemini"],[/azure|microsoft/i,"azure"],[/deepseek/i,"deepseek"]],wp=(t,e=!1)=>{const i=hc(t||"",e?Xd:Gd),o=[];for(const t of i){const e=!!yp[t.type],i=o[o.length-1];i&&i.isExpr===e?i.tokens.push(t):o.push({isExpr:e,tokens:[t]})}const n=t=>{const e=yp[t.type];if(!e){const e=t.text.split("\n");return Z`${e.map((t,e)=>Z`${e>0?Z`<br />`:null}${t}`)}`}const i=t.text.split("\n");return Z`${i.map((t,i)=>Z`${i>0?Z`<br />`:null}${t?Z`<span style="${e}">${t}</span>`:null}`)}`};return Z`${o.map(t=>{const e=Z`${t.tokens.map(n)}`;return t.isExpr?Z`<span style="hyphens:none">${e}</span>`:e})}`},_p=(t,e,i=3)=>Z`<div
|
|
11128
11128
|
style="display: -webkit-box; -webkit-line-clamp: ${i}; -webkit-box-orient: vertical; overflow: hidden; word-wrap: break-word; overflow-wrap: break-word; hyphens: auto;"
|
|
11129
11129
|
title="${e}"
|
|
11130
11130
|
>
|
|
@@ -11259,7 +11259,7 @@ background: #ccc;
|
|
|
11259
11259
|
</div>
|
|
11260
11260
|
`},toFormData:t=>{var e;const i=null===(e=t.actions)||void 0===e?void 0:e.find(t=>"open_ticket"===t.type);return{uuid:t.uuid,topic:(null==i?void 0:i.topic)?[{uuid:i.topic.uuid,name:i.topic.name}]:[],assignee:(null==i?void 0:i.assignee)?[{uuid:i.assignee.uuid,name:i.assignee.name}]:[],note:(null==i?void 0:i.note)||""}},fromFormData:(t,e)=>{var i,o,n;const s=null===(i=e.actions)||void 0===i?void 0:i.find(t=>"open_ticket"===t.type),r={type:"open_ticket",uuid:(null==s?void 0:s.uuid)||Xt(),topic:t.topic&&t.topic.length>0?{uuid:t.topic[0].uuid,name:t.topic[0].name}:void 0,assignee:t.assignee&&t.assignee.length>0?{uuid:t.assignee[0].uuid,name:t.assignee[0].name||[t.assignee[0].first_name,t.assignee[0].last_name].join(" ")}:void 0,note:t.note||""},a=(null===(o=e.router)||void 0===o?void 0:o.categories)||[],l=e.exits||[],d=(null===(n=e.router)||void 0===n?void 0:n.cases)||[],{router:c,exits:h}=qe("@locals._new_ticket",{type:"has_text",arguments:[]},a,l,d);return{uuid:e.uuid,actions:[r],router:c,exits:h}},localizable:"categories",nonTranslatableCategories:"all"},jm=[{key:"Accept",value:"application/json"}],Hm=[{key:"Accept",value:"application/json"},{key:"Content-Type",value:"application/json"}];const Wm='@(json(object(\n "contact", object(\n "uuid", contact.uuid, \n "name", contact.name, \n "urn", contact.urn\n ),\n "flow", object(\n "uuid", run.flow.uuid, \n "name", run.flow.name\n ),\n "results", foreach_value(results, extract_object, "value", "category")\n)))',Vm={type:"split_by_webhook",name:"Call Webhook",group:Up.services,flowTypes:[Bp,Np,Fp],showAsAction:!0,form:{method:{type:"select",required:!0,options:["GET","POST","PUT","DELETE","HEAD","PATCH"],maxWidth:"120px",searchable:!1},url:{type:"text",required:!0,evaluated:!0,placeholder:"https://example.com/webhook"},headers:{type:"key-value",sortable:!0,keyPlaceholder:"Header name",valuePlaceholder:"Header value",minRows:0,dependsOn:["method"],computeValue:(t,e,i)=>{const o=Array.isArray(t.method)&&t.method.length>0?t.method[0].value||t.method[0].name:t.method;return function(t){if(!t||0===t.length)return!0;const e=t.filter(t=>""!==(t.key||t.name||"")||""!==(t.value||""));if(0===e.length)return!0;for(const t of[jm,Hm])if(e.length===t.length&&e.every((e,i)=>(e.key||e.name)===t[i].key&&e.value===t[i].value))return!0;return!1}(e)?function(t){return"POST"===t||"PUT"===t||"PATCH"===t?Hm.map(t=>({...t})):jm.map(t=>({...t}))}(o):e}},result_name:tp,body:{type:"textarea",evaluated:!0,placeholder:"Request body content (JSON, XML, etc.)",minHeight:200,dependsOn:["method"],computeValue:(t,e,i)=>{if("POST"===(Array.isArray(t.method)&&t.method.length>0?t.method[0].value||t.method[0].name:t.method)){if(!e||""===e.trim())return Wm}else{const t=(null==i?void 0:i.body)||"";if(!t||""===t.trim()||!e||""===e.trim()||e.trim()===Wm.trim())return""}return e}}},layout:[{type:"row",items:["method","url"]},{type:"accordion",sections:[{label:"Headers",collapsed:!0,getValueCount:t=>{var e;return(null===(e=t.headers)||void 0===e?void 0:e.length)||0},items:["headers"]},{label:"Body",collapsed:!0,getValueCount:t=>!(!t.body||""===t.body.trim()||t.body===Wm),items:["body"]}]},"result_name"],render:t=>{var e;const i=null===(e=t.actions)||void 0===e?void 0:e.find(t=>"call_webhook"===t.type),o=(null==i?void 0:i.url)||"Configure webhook";return Z` <div class="body">
|
|
11261
11261
|
${_p(wp(o,!0),o)}
|
|
11262
|
-
</div>`},toFormData:t=>{var e,i;const o=null===(e=t.actions)||void 0===e?void 0:e.find(t=>"call_webhook"===t.type);return{uuid:t.uuid,method:(null==o?void 0:o.method)||"GET",url:(null==o?void 0:o.url)||"",headers:(null==o?void 0:o.headers)||(n=(null==o?void 0:o.method)||"GET","POST"===n||"PUT"===n||"PATCH"===n?{Accept:"application/json","Content-Type":"application/json"}:{Accept:"application/json"}),body:(null==o?void 0:o.body)||"",result_name:(null===(i=t.router)||void 0===i?void 0:i.result_name)||""};var n},fromFormData:(t,e)=>{var i,o,n;const
|
|
11262
|
+
</div>`},toFormData:t=>{var e,i;const o=null===(e=t.actions)||void 0===e?void 0:e.find(t=>"call_webhook"===t.type);return{uuid:t.uuid,method:(null==o?void 0:o.method)||"GET",url:(null==o?void 0:o.url)||"",headers:(null==o?void 0:o.headers)||(n=(null==o?void 0:o.method)||"GET","POST"===n||"PUT"===n||"PATCH"===n?{Accept:"application/json","Content-Type":"application/json"}:{Accept:"application/json"}),body:(null==o?void 0:o.body)||"",result_name:(null==o?void 0:o.result_name)||(null===(i=t.router)||void 0===i?void 0:i.result_name)||""};var n},fromFormData:(t,e)=>{var i,o,n,s;const r=Array.isArray(t.method)&&t.method.length>0?t.method[0]:{value:"GET"},a=null===(i=e.actions)||void 0===i?void 0:i.find(t=>"call_webhook"===t.type),l=(null==a?void 0:a.uuid)||Xt(),d=!!(null==a?void 0:a.result_name),c=(null===(o=t.result_name)||void 0===o?void 0:o.trim())||"",h={type:"call_webhook",uuid:l,method:r.value,url:t.url||"",headers:t.headers||[],body:t.body||""};d&&""!==c&&(h.result_name=c);const u=(null===(n=e.router)||void 0===n?void 0:n.categories)||[],p=e.exits||[],m=(null===(s=e.router)||void 0===s?void 0:s.cases)||[],{router:g,exits:f}=qe("@webhook.status",{type:"has_number_between",arguments:["200","299"]},u,p,m),v={...g};return d||""===c||(v.result_name=c),{uuid:e.uuid,actions:[h],router:v,exits:f}},localizable:"categories",nonTranslatableCategories:"all"},Zm={type:"split_by_resthook",name:"Call Resthook",group:Up.services,flowTypes:[Bp,Np,Fp],showAsAction:!0,form:{resthook:{type:"select",label:"Resthook",required:!0,searchable:!0,clearable:!1,placeholder:"Select a resthook...",endpoint:"/api/v2/resthooks.json",valueKey:"resthook",nameKey:"resthook",helpText:"Select the resthook to call"},result_name:tp},layout:["resthook","result_name"],validate:hp((t,e)=>{t.resthook&&0!==t.resthook.length||(e.resthook="A resthook is required")}),render:t=>{var e;const i=null===(e=t.actions)||void 0===e?void 0:e.find(t=>"call_resthook"===t.type),o=(null==i?void 0:i.resthook)||"Configure resthook";return Z` <div class="body">${_p(o,o)}</div> `},toFormData:t=>{var e,i;const o=null===(e=t.actions)||void 0===e?void 0:e.find(t=>"call_resthook"===t.type);return{uuid:t.uuid,resthook:(null==o?void 0:o.resthook)?[{resthook:o.resthook}]:[],result_name:(null===(i=t.router)||void 0===i?void 0:i.result_name)||""}},fromFormData:(t,e)=>{var i,o,n;const s=Array.isArray(t.resthook)&&t.resthook.length>0?t.resthook[0]:null;if(!s)return e;const r=null===(i=e.actions)||void 0===i?void 0:i.find(t=>"call_resthook"===t.type),a={type:"call_resthook",uuid:(null==r?void 0:r.uuid)||Xt(),resthook:s.resthook},l=(null===(o=e.router)||void 0===o?void 0:o.categories)||[],d=e.exits||[],c=(null===(n=e.router)||void 0===n?void 0:n.cases)||[],{router:h,exits:u}=qe("@webhook.status",{type:"has_number_between",arguments:["200","299"]},l,d,c),p={...h};return t.result_name&&""!==t.result_name.trim()&&(p.result_name=t.result_name.trim()),{uuid:e.uuid,actions:[a],router:p,exits:u}},localizable:"categories",nonTranslatableCategories:"all"},Ym={type:"split_by_llm",name:"Call AI",group:Up.services,flowTypes:[Bp,Np,Fp],showAsAction:!0,render:t=>{var e,i;const o=null===(e=t.actions)||void 0===e?void 0:e.find(t=>"call_llm"===t.type),n=(null==o?void 0:o.instructions)||"Configure AI instructions",s=null===(i=null==o?void 0:o.llm)||void 0===i?void 0:i.name;return Z`
|
|
11263
11263
|
${s?Z`<div class="body" style="padding-bottom:0;">
|
|
11264
11264
|
${Cp(s,(t=>{if(!t)return null;for(const[e,i]of xp)if(e.test(t))return i;return null})(s))}
|
|
11265
11265
|
</div>`:null}
|
|
@@ -18700,7 +18700,7 @@ function(t){return(e,i,o)=>((t,e,i)=>(i.configurable=!0,i.enumerable=!0,Reflect.
|
|
|
18700
18700
|
fill: var(--accent-100);
|
|
18701
18701
|
opacity: 0.7;
|
|
18702
18702
|
}
|
|
18703
|
-
`}constructor(){super(),this.valueKey="uuid",this.emptyMessage="No flows",this.searchPlaceholder="Search flows",this.columns=[{key:"name",label:"Name",sortable:!0,
|
|
18703
|
+
`}constructor(){super(),this.valueKey="uuid",this.emptyMessage="No flows",this.searchPlaceholder="Search flows",this.columns=[{key:"name",label:"Name",sortable:!0,minWidth:"160px",maxWidth:"280px",pinned:!0},{key:"runs",label:"Runs",sortable:!0,minWidth:"64px",align:"right"},{key:"ongoing",label:"Ongoing",sortable:!0,minWidth:"64px",align:"right"},{key:"completion",label:"Completion",minWidth:"110px",align:"right"},{key:"activity",label:"Activity",width:"120px",align:"right"}],this.bulkActions=[{key:"label",label:"Label",icon:Io.label,labelsEndpoint:"/api/v2/flow-labels.json"},{key:"export",label:"Export results",icon:Io.export},{key:"archive",label:"Archive",icon:Io.archive}]}getRowIcon(t){switch(null==t?void 0:t.type){case"voice":case"ivr":return Io.flow_ivr;case"background":return Io.flow_background;case"survey":return Io.flow_surveyor;default:return null}}getRowHref(t){return(null==t?void 0:t.uuid)?`/flow/editor/${t.uuid}/`:null}handleLabelClick(t,e){if(e.stopPropagation(),!(null==t?void 0:t.uuid))return;const i=`/flow/filter/${t.uuid}/`;this.isSafeHref(i)&&(e.metaKey||e.ctrlKey?window.open(i,"_blank"):this.fireCustomEvent(jo.Redirected,{url:i}))}renderCell(t,e){var i,o;switch(e.key){case"name":{const e=t.labels||[];return Z`<span class="flow-name"
|
|
18704
18704
|
>${t.name||""}
|
|
18705
18705
|
${t.has_issues?Z`<temba-icon
|
|
18706
18706
|
class="issue-icon"
|
|
@@ -18708,7 +18708,11 @@ function(t){return(e,i,o)=>((t,e,i)=>(i.configurable=!0,i.enumerable=!0,Reflect.
|
|
|
18708
18708
|
size="0.9"
|
|
18709
18709
|
></temba-icon>`:null}
|
|
18710
18710
|
${e.length>0?Z`<span class="flow-labels">
|
|
18711
|
-
${e.map(t=>Z`<temba-label
|
|
18711
|
+
${e.map(t=>Z`<temba-label
|
|
18712
|
+
type="label"
|
|
18713
|
+
icon=${Io.label}
|
|
18714
|
+
clickable
|
|
18715
|
+
@click=${e=>this.handleLabelClick(t,e)}
|
|
18712
18716
|
>${t.name}</temba-label
|
|
18713
18717
|
>`)}
|
|
18714
18718
|
</span>`:null}
|