react-semaphor 0.1.607 → 0.1.609
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/analytics-protocol/index.js +1 -1
- package/dist/assistant-context/index.js +1 -1
- package/dist/brand-studio/index.js +1 -1
- package/dist/briefings/index.js +1 -1
- package/dist/chunks/{appearance-provider-C4lPZcaN.js → appearance-provider-BW022_Qu.js} +106 -106
- package/dist/chunks/{assistant-chat-B7Fngg8U.js → assistant-chat-DAmFZEnD.js} +8 -8
- package/dist/chunks/attachment-filter-line-ClTS4GvQ.js +1 -0
- package/dist/chunks/{bookmark-impact-DjrrJomS.js → bookmark-impact-BEVaXjug.js} +1 -1
- package/dist/chunks/{bookmark-state-x9hJS83D.js → bookmark-state-DnkzIsyw.js} +1 -1
- package/dist/chunks/{brand-DgFcvKJI.js → brand-BjC1mPjw.js} +1 -1
- package/dist/chunks/card-filter-builder-BGIVEHmJ.js +11 -0
- package/dist/chunks/{visual-contract-DQPKg5QW.js → check-input-qgwboKei.js} +13 -5
- package/dist/chunks/{comparison-window-caption-zUZDe4tL.js → comparison-window-caption-WzGsqv4n.js} +1 -1
- package/dist/chunks/{currency-presentation-binding-w9WDUk3b.js → currency-presentation-binding-ClrH_6Tq.js} +1 -1
- package/dist/chunks/{custom-visual-inputs-D8U98aBz.js → custom-visual-inputs-CoAs_73N.js} +1 -1
- package/dist/chunks/custom-visual-write-BWApKrHe.js +1 -0
- package/dist/chunks/{dashboard-BEd6i29E.js → dashboard-DbBgEesz.js} +1 -1
- package/dist/chunks/{dashboard-briefing-launcher-DMDYM9IA.js → dashboard-briefing-launcher-DadG4ES9.js} +14 -9
- package/dist/chunks/{dashboard-controls-5B2vCIjJ.js → dashboard-controls-CyQg_GC1.js} +3 -3
- package/dist/chunks/{dashboard-json-C6r30x-5.js → dashboard-json-ZSAQQkcR.js} +1 -1
- package/dist/chunks/{dashboard-temporal-snapshot-Wki-YACw.js → dashboard-temporal-snapshot-BSTfqT29.js} +1 -1
- package/dist/chunks/edit-dashboard-visual-DIF1fllI.js +103 -0
- package/dist/chunks/{filter-line-COFQaF4_.js → filter-line-W-qQAjke.js} +1 -1
- package/dist/chunks/{filter-reach-preview-BWRGfSmb.js → filter-reach-preview-CfbwaLf4.js} +1 -1
- package/dist/chunks/filter-value-text-DQwYZHz0.js +1 -0
- package/dist/chunks/kpi-trend-rule-B4ebKzNj.js +1 -0
- package/dist/chunks/{layout-grid-DahW4ClC.js → layout-grid-Cs350bW-.js} +1 -1
- package/dist/chunks/{matrix-analytical-definition-Bd-dXB8q.js → matrix-analytical-definition-jn075ooo.js} +1 -1
- package/dist/chunks/{matrix-member-presentation-CfvxPV-i.js → matrix-member-presentation-Chz6uGYz.js} +1 -1
- package/dist/chunks/{matrix-operation-contract-Cw7U53Ao.js → matrix-operation-contract-DceN49RX.js} +1 -1
- package/dist/chunks/{metric-formatting-QDqXfQGY.js → metric-formatting-toJrRqu4.js} +1 -1
- package/dist/chunks/{numeric-range-options-s6i_nDXg.js → numeric-range-options-Drc1EZ6H.js} +1 -1
- package/dist/chunks/{palette-CYvJHSqP.js → palette-DpLPXjUd.js} +1 -1
- package/dist/chunks/{pivot-result-contract-expectations-BX5gLcze.js → pivot-result-contract-expectations-D_ane7I2.js} +1 -1
- package/dist/chunks/{pivot-result-identity-DOISzHU4.js → pivot-result-identity-DRhVJMsF.js} +1 -1
- package/dist/chunks/{raw-temporal-value-Cssny3RJ.js → raw-temporal-value-B4Md6Xfb.js} +1 -1
- package/dist/chunks/{report-preferences-dialog-BNpB9byP.js → report-preferences-dialog-DEfUYExu.js} +1 -1
- package/dist/chunks/{report-runtime-context-B8HuY0bu.js → report-runtime-context-CkxgMKr6.js} +1 -1
- package/dist/chunks/resolve-dashboard-input-context-Dm4PD8Gx.js +8 -0
- package/dist/chunks/{sandbox-host-Drf58_oU.js → sandbox-host-BqcLSoTV.js} +1 -1
- package/dist/chunks/{saved-dashboard-context-dbdbQ5bB.js → saved-dashboard-context-GjEJuDjj.js} +1 -1
- package/dist/chunks/{selection-filter-compiler-DK8KkS9g.js → selection-filter-compiler-BxtEEB6Z.js} +1 -1
- package/dist/chunks/semaphor-ready-indicator-BViyPq5k.js +622 -0
- package/dist/chunks/set-q-2M4nis.js +1 -0
- package/dist/chunks/slider-C2nbml5r.js +599 -0
- package/dist/chunks/{stored-dashboard-DmgJQcyZ.js → stored-dashboard-CTwrNvBy.js} +1 -1
- package/dist/chunks/{table-cell-text-2x6r_oHO.js → table-cell-text-DJe6I1G3.js} +1 -1
- package/dist/chunks/{table-export-sheet-CWqKiQu4.js → table-export-sheet-CthBUHu4.js} +1 -1
- package/dist/chunks/{token-types-BSyWn2pb.js → token-types-BM0mpZce.js} +1 -1
- package/dist/chunks/{validators-BPGmPz8-.js → validators-U8IL8djK.js} +1 -1
- package/dist/chunks/variable-draft-DAVLIY3l.js +1 -0
- package/dist/dashboard/index.js +1 -1
- package/dist/dashboard-authoring/index.js +1 -1
- package/dist/extensions/index.js +1 -1
- package/dist/format-utils/index.js +1 -1
- package/dist/index.js +1 -1
- package/dist/report-runtime-context/index.js +1 -1
- package/dist/style.css +1 -1
- package/dist/surfboard/index.js +1 -1
- package/dist/types/index.js +1 -1
- package/dist/types/lib/dashboard-viewer/table-view.d.ts +6 -1
- package/dist/types/lib/types/explorer-types.d.ts +12 -0
- package/dist/types/shared/dashboard-authoring/card-settings/custom-visual-write.d.ts +6 -0
- package/dist/types/shared/dashboard-authoring/card-sort-comparison.d.ts +13 -0
- package/dist/types/shared/dashboard-authoring/changes/card-query-part.d.ts +1 -0
- package/dist/types/shared/dashboard-authoring/changes/dashboard-change.d.ts +12 -0
- package/dist/types/shared/dashboard-authoring/index.d.ts +1 -0
- package/dist/types/shared/dashboard-authoring/table-sheet-shape.d.ts +8 -0
- package/dist/types/shared/dashboard-authoring/variable-draft.d.ts +1 -0
- package/dist/types/shared/dashboard-viewer/table-settings.d.ts +8 -0
- package/dist/types/shared/extensions/visual-contract.d.ts +3 -1
- package/dist/types/shared/usage-events/envelope.d.ts +2 -2
- package/package.json +1 -1
- package/dist/chunks/attachment-filter-line-wJRB0GSP.js +0 -1
- package/dist/chunks/card-filter-builder-CvxygmsE.js +0 -16
- package/dist/chunks/check-input-7DVPUuco.js +0 -1
- package/dist/chunks/edit-dashboard-visual-F2w7v4iB.js +0 -83
- package/dist/chunks/filter-value-text-BSAMEgve.js +0 -1
- package/dist/chunks/kpi-trend-rule-BcnKbY7d.js +0 -1
- package/dist/chunks/resolve-dashboard-input-context-B-0tONJg.js +0 -8
- package/dist/chunks/semaphor-ready-indicator-BSFsqsBJ.js +0 -617
- package/dist/chunks/set-oJDaJdtI.js +0 -1
- package/dist/chunks/slider-DAvAdfMC.js +0 -599
- package/dist/chunks/variable-draft-DGA22H2g.js +0 -1
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{c as v,g as M,a as A,b as q,d as N,e as y,h as D,j as w}from"./resolve-dashboard-input-context-B-0tONJg.js";import{d as E}from"./validators-BPGmPz8-.js";import{g as L,m as x}from"./matrix-analytical-definition-Bd-dXB8q.js";const O=[{value:"only",label:"The only value",hint:"Shows the value when exactly one matches. When more than one matches, readers see nothing."},{value:"first",label:"First by…",hint:"Shows the first value by the order you choose."},{value:"list",label:"List",hint:"Shows the distinct values in order, joined with a separator."}],k={SUM:{number:"Total",date:"Total",other:"Total"},AVG:{number:"Average",date:"Average",other:"Average"},MIN:{number:"Lowest",date:"Earliest",other:"Min"},MAX:{number:"Highest",date:"Latest",other:"Max"},MEDIAN:{number:"Median",date:"Median",other:"Median"},COUNT:{number:"Count",date:"Count",other:"Count"},DISTINCT:{number:"Count distinct",date:"Count distinct",other:"Count distinct"}};function h(e){return E(e)==="aggregate";}function X(e){const t=e==null?void 0:e.dataType;if(h(e))return[{value:"calculation",label:"The calculation’s value",hint:"Shows the calculation over the rows the filters keep; it aggregates itself."}];const a=y(t),i=a==="number"?"number":a==="date"?"date":"other",o=[...D(t)];return i==="date"&&o.push({value:"MIN",label:"Min"},{value:"MAX",label:"Max"}),[...O,...o.map(({value:l})=>{var n,r;return{value:l,label:((n=k[l])==null?void 0:n[i])??l,hint:`Shows the ${(((r=k[l])==null?void 0:r[i])??l).toLowerCase()} of the rows the filters keep.`};})];}function H(e){return h(e)?"calculation":y(e.dataType)==="number"?w(y(e.dataType)):"only";}function b(e){return e!=="only"&&e!=="first"&&e!=="list";}function B(e){return e.mode!=="data"||!e.field||!b(e.get)?!1:e.get==="COUNT"||e.get==="DISTINCT"?!0:y(e.field.dataType)==="number";}function G(){var e,t;return((t=(e=globalThis.crypto)==null?void 0:e.randomUUID)==null?void 0:t.call(e).replace(/-/g,"").slice(0,10))??Math.random().toString(36).slice(2,12);}function V(){return`var_${G()}`;}function z(){return{id:V(),name:"",mode:"data",sql:"",get:"only",sortDirection:"asc"};}const _={id:"catalog",name:"catalog",label:"catalog",derivedLabel:"catalog",alias:"catalog",sourceField:"catalog",source:"catalog",qualifiedFieldName:"catalog",dataType:"catalog",nativeDataType:"catalog",description:"catalog",qualifiedEntityName:"catalog",dateFormat:"catalog",customFormat:"catalog",granularity:"catalog",entityId:"catalog",entityName:"catalog",entityType:"catalog",expression:"catalog",calculatedFormula:"catalog",derivedField:"catalog",format:"catalog",semanticTemporalPresentation:"catalog",calculationRepresentation:"catalog",calculatedFieldOrigin:"catalog",labelOrigin:"catalog",formatOrigin:"catalog",fieldScope:"catalog",timeDrillPath:"catalog",aliasTemplate:"catalog",valueAliases:"catalog",isPreAggregated:"catalog",role:"shelf",aggregate:"shelf",aggregateOrigin:"shelf",semanticAggregate:"shelf",effectiveAggregate:"shelf",aggregateSource:"shelf",comparison:"shelf",comparisonPolarity:"shelf",semanticComparisonPolarity:"shelf",parameters:"shelf",direction:"shelf",grainMode:"shelf"};function T(e){return Object.fromEntries(Object.entries(e).filter(([t])=>_[t]!=="shelf"));}function K(e){var g,u,m,d,p;const{query:t,get:a}=e,i=t.config??{},o=(g=i.metricColumns)==null?void 0:g[0],l=(u=i.groupByColumns)==null?void 0:u[0],n=(m=i.sortByColumns)==null?void 0:m[0],r=n?T(o&&n.id===o.id?o:n):void 0,s=(d=t.sql)!=null&&d.trim()?t.sql:"";return{id:e.id,name:e.name,...(e.label?{label:e.label}:{}),mode:s?"sql":"data",dataSource:t.dataSource,connectionId:t.connectionId,sql:s,field:o&&a.kind==="aggregate"?T(o):l?T(l):void 0,get:a.kind==="aggregate"?h(o)?"calculation":(o==null?void 0:o.aggregate)??"SUM":a.kind,sortField:r,sortDirection:(n==null?void 0:n.direction)??"asc",...(a.kind==="list"?{listLimit:a.limit,listSeparator:a.separator}:{}),conditions:i.filters??null,calculatedFields:t.calculatedFields,presentation:e.presentation,emptyText:e.emptyText,...(a.kind==="aggregate"&&((p=o==null?void 0:o.comparison)==null?void 0:p.mode)==="explicit"?{comparison:o.comparison}:{})};}function P(e,t){var n;const a=t.name.trim();if(a)return a;const i=(n=t.label)!=null&&n.trim()?v(t.label):t.field?v(t.field.name||t.field.label):t.mode==="sql"?"sql_value":"variable",o=new Set(M(e,{source:"dataVariable",variableId:t.id},{cardInputs:"taken"}));let l=i;for(let r=2;o.has(l);r+=1)l=`${i}_${r}`;return l;}function Q(e,t){var g,u,m,d,p,f,F,I;const a=P(t,e),i={id:e.id,name:a,...((g=e.label)!=null&&g.trim()?{label:e.label.trim()}:{}),...(e.presentation?{presentation:e.presentation}:{}),...((u=e.emptyText)!=null&&u.trim()?{emptyText:e.emptyText}:{})};if(e.mode==="sql")return{...i,query:{...(e.connectionId?{connectionId:e.connectionId}:{}),...(e.dataSource?{dataSource:e.dataSource}:{}),sql:e.sql},get:e.get==="first"?{kind:"first"}:{kind:"only"}};const o=((m=e.dataSource)==null?void 0:m.connectionId)||((f=(p=(d=e.dataSource)==null?void 0:d.selectedEntities)==null?void 0:p[0])==null?void 0:f.connectionId),l={...(o?{connectionId:o}:{}),...(e.dataSource?{dataSource:e.dataSource}:{}),...((F=e.calculatedFields)!=null&&F.length?{calculatedFields:e.calculatedFields}:{}),config:{...(e.conditions?{filters:e.conditions}:{})}},n=l.config,r=e.field;let s;if(!r)s=b(e.get)?{kind:"aggregate"}:{kind:e.get};else if(b(e.get)){const{comparison:S,...c}=C(r,e.get);n.metricColumns=[((I=e.comparison)==null?void 0:I.mode)==="explicit"&&e.comparison.spec.kind!=="target"&&B(e)?{...c,comparison:e.comparison}:c],s={kind:"aggregate"};}else if(h(r))n.metricColumns=[C(r,"calculation")],s={kind:"aggregate"};else if(n.groupByColumns=[U(r)],e.get==="list"?s={kind:"list",...(e.listLimit?{limit:e.listLimit}:{}),...(e.listSeparator!==void 0&&e.listSeparator!==", "?{separator:e.listSeparator}:{})}:s={kind:e.get},e.get!=="only"){const S=e.sortField??r;if(j(S,r)){const c=n.groupByColumns[0];n.sortByColumns=[{...c,role:"sortby",direction:e.sortDirection}];}else{const c=C(S,e.sortDirection==="desc"?"MAX":"MIN");n.metricColumns=[c],n.sortByColumns=[{...c,role:"sortby",direction:e.sortDirection}];}}return{...i,query:l,get:s};}function C(e,t){const a=A(e,"metrics",[],q("metrics",e));return h(e)||t==="calculation"||!b(t)?a:{...a,...x(a,t,"explicit"),...L(a,N(e.name,t))};}function U(e){const t=A(e,"groupBy",[],q("groupBy",e));if(e.granularity||!("granularity"in t))return t;const{granularity:a,...i}=t;return i;}function j(e,t){return e.name===t.name&&(e.qualifiedEntityName??e.entityName??"")===(t.qualifiedEntityName??t.entityName??"");}function Y(e){var t,a;if(e.mode==="sql")return e.connectionId?e.sql.trim()?void 0:"Write the SQL that returns the value.":"Choose a connection.";if(!((a=(t=e.dataSource)==null?void 0:t.selectedEntities)!=null&&a.length))return"Choose a source.";if(!e.field)return"Choose a field.";}export{_ as S,X as a,K as b,B as c,H as d,z as e,P as f,Y as g,b as i,V as n,h as o,Q as v};
|