All Downloads are FREE. Search and download functionalities are using the official Maven repository.

assets.4572.fee8ecfc0d8f6e76bd17.js Maven / Gradle / Ivy

There is a newer version: 1.6.1
Show newest version
"use strict";(self.webpackChunkopen_metadata=self.webpackChunkopen_metadata||[]).push([[4572,4519,3111],{84519:function(e,t,n){n.r(t),n.d(t,{ReactComponent:function(){return l}});var i,a=n(67294);function r(){return r=Object.assign?Object.assign.bind():function(e){for(var t=1;t1?"label.line-plural":"label.line"),lineCount:e}}),[n]),g=h.queryLine,E=h.lineCount,M=(0,y.V)(n).onCopyToClipBoard;return u.createElement(i.Z,{className:"m-md w-auto dbt-tab-container",extra:u.createElement(a.Z,{className:"m-y-xs"},u.createElement(r.Z,{className:"query-lines","data-testid":"query-line"},g),u.createElement(l.Z,{className:"flex-center button-size bg-white","data-testid":"query-entity-copy-button",icon:u.createElement(p.ReactComponent,{height:16,width:16}),onClick:M})),title:t},u.createElement(f.Z,{className:"custom-code-mirror-theme",editorClass:c()(E>4?"table-query-editor":"query-editor"),mode:{name:m.Q.SQL},options:{readOnly:!0},value:n}))}},79317:function(e,t,n){n.d(t,{K:function(){return a},c:function(){return r}});var i=n(80307),a={x:1200},r=[i.a.ForeignKey,i.a.PrimaryKey]},36775:function(e,t,n){var i,a,r,l,s;n.d(t,{c6:function(){return r}}),function(e){e.Array="ARRAY",e.Boolean="BOOLEAN",e.Bytes="BYTES",e.Date="DATE",e.Double="DOUBLE",e.Enum="ENUM",e.Error="ERROR",e.Fixed="FIXED",e.Float="FLOAT",e.Int="INT",e.Long="LONG",e.Map="MAP",e.Null="NULL",e.Record="RECORD",e.String="STRING",e.Time="TIME",e.Timestamp="TIMESTAMP",e.Timestampz="TIMESTAMPZ",e.Union="UNION",e.Unknown="UNKNOWN"}(i||(i={})),function(e){e.Automated="Automated",e.Derived="Derived",e.Manual="Manual",e.Propagated="Propagated"}(a||(a={})),function(e){e.Classification="Classification",e.Glossary="Glossary"}(r||(r={})),function(e){e.Confirmed="Confirmed",e.Suggested="Suggested"}(l||(l={})),function(e){e.Avro="Avro",e.JSON="JSON",e.None="None",e.Other="Other",e.Protobuf="Protobuf"}(s||(s={}))},24572:function(e,t,n){n.r(t),n.d(t,{default:function(){return le}});var i=n(70655),a=n(71230),r=n(15746),l=n(19650),s=n(25499),c=n(34901),o=n(96486),u=n(67294),d=n(68432),p=n(15137),m=n(33994),y=n(75642),f=n(19521),h=n(58603),g=n(76597),E=n(113),M=n(83716),N=n(46600),v=n(40040),D=n(33873),T=n(16177),I=n(69523),A=n(80646),w=n(8752),b=n(79839),C=n(69509),S=n(67167),x=n(24854),L=n(1727),O=n(62761),k=n(61105),Z=n(64632),R=n(59583),j=n(90058),z=n(76373),U=n(51513),Y=n(93895),P=n(24671),Q=n(39570),F=n(85145),G=n(40734),J=n(38333),q=n(73553),H=n(46321),_=n(59817),X=n(41706),B=n(94199),W=n(56256),V=n(89368),K=n(37565),$=n(59136),ee=n(61289),te=n(55608),ne=n(79317),ie=n(36775),ae=function(e){var t=e.searchIndexFields,n=e.searchedFields,a=e.expandableConfig,r=e.onUpdate,s=e.hasDescriptionEditAccess,c=e.hasTagEditAccess,p=e.isReadOnly,m=void 0!==p&&p,y=e.onThreadLinkSelect,f=e.entityFqn,h=(0,d.$)().t,g=(0,i.CR)((0,u.useState)(),2),E=g[0],M=g[1],N=u.useMemo((function(){return(0,F._l)(n)}),[n]),v=(0,u.useCallback)((function(e,t){M({field:e,index:t})}),[]),D=(0,u.useCallback)((function(){M(void 0)}),[]),T=function(e,n){return(0,i.mG)(void 0,void 0,void 0,(function(){var a,l;return(0,i.Jh)(this,(function(i){switch(i.label){case 0:return e&&n?(a=(0,o.cloneDeep)(t),(0,J.OJ)(null!==(l=n.fullyQualifiedName)&&void 0!==l?l:"",e,a),[4,r(a)]):[3,2];case 1:i.sent(),i.label=2;case 2:return[2]}}))}))},I=(0,u.useCallback)((function(e,t){v(e,t)}),[v]),A=(0,u.useCallback)((function(e,t){var n=(0,o.isEmpty)(e)?t.dataType:e;return(0,o.isEmpty)(n)?u.createElement(u.Fragment,null,O.lH):u.createElement("div",{"data-testid":t.name+"-data-type"},m||n&&n.length<25&&!m?(0,o.toLower)(n):u.createElement(B.Z,{title:(0,o.toLower)(n)},u.createElement(W.Z.Text,{ellipsis:!0,className:"cursor-pointer"},n)))}),[m]),w=(0,u.useCallback)((function(e,t,n){var i;return u.createElement(ee.Z,{columnData:{fqn:null!==(i=t.fullyQualifiedName)&&void 0!==i?i:"",field:t.description},entityFqn:f,entityType:Z.py.SEARCH_INDEX,hasEditPermission:s,index:n,isReadOnly:m,onClick:function(){return I(t,n)},onThreadLinkSelect:y})}),[f,s,m,I,y]),b=(0,u.useMemo)((function(){return[{title:h("label.name"),dataIndex:"name",key:"name",accessor:"name",width:180,fixed:"left",render:function(e,t){return u.createElement(l.Z,{align:"start",className:"w-max-90 vertical-align-inherit",size:2},u.createElement("span",{className:"break-word"},(0,P.C_)(t)))}},{title:h("label.type"),dataIndex:"dataTypeDisplay",key:"dataTypeDisplay",accessor:"dataTypeDisplay",ellipsis:!0,width:180,render:A},{title:h("label.description"),dataIndex:"description",key:"description",accessor:"description",width:320,render:w},{title:h("label.tag-plural"),dataIndex:"tags",key:"tags",accessor:"tags",width:250,render:function(e,t,n){return u.createElement(te.Z,{entityFqn:f,entityType:Z.py.SEARCH_INDEX,handleTagSelection:T,hasTagEditAccess:c,index:n,isReadOnly:m,record:t,tags:e,type:ie.c6.Classification,onThreadLinkSelect:y})}},{title:h("label.glossary-term-plural"),dataIndex:"tags",key:"tags",accessor:"tags",width:250,render:function(e,t,n){return u.createElement(te.Z,{entityFqn:f,entityType:Z.py.SEARCH_INDEX,handleTagSelection:T,hasTagEditAccess:c,index:n,isReadOnly:m,record:t,tags:e,type:ie.c6.Glossary,onThreadLinkSelect:y})}}]}),[f,m,c,I,T,A,w,T,y]);return u.createElement(u.Fragment,null,u.createElement(K.Z,{bordered:!0,className:"m-b-sm",columns:b,"data-testid":"search-index-fields-table",dataSource:N,expandable:a,locale:{emptyText:u.createElement(V.Z,null)},pagination:!1,rowKey:"fullyQualifiedName",scroll:ne.K,size:"middle"}),E&&u.createElement($.p,{header:h("label.edit-entity",{entity:h("label.field")})+': "'+E.field.name+'"',placeholder:h("label.enter-field-description",{field:h("label.field")}),value:E.field.description,visible:Boolean(E),onCancel:D,onSave:function(e){return(0,i.mG)(void 0,void 0,void 0,(function(){var n;return(0,i.Jh)(this,(function(i){switch(i.label){case 0:return(0,o.isUndefined)(E)||!E.field.fullyQualifiedName?[3,2]:(n=(0,o.cloneDeep)(t),(0,J.Q6)(E.field.fullyQualifiedName,e,n),[4,r(n)]);case 1:return i.sent(),M(void 0),[3,3];case 2:M(void 0),i.label=3;case 3:return[2]}}))}))}}))},re=function(e){var t=e.fields,n=e.onUpdate,l=e.hasDescriptionEditAccess,s=e.hasTagEditAccess,c=e.onThreadLinkSelect,p=e.isReadOnly,m=void 0!==p&&p,y=e.entityFqn,f=(0,d.$)().t,h=(0,i.CR)((0,u.useState)(""),2),g=h[0],E=h[1],M=(0,i.CR)((0,u.useState)([]),2),N=M[0],v=M[1],D=(0,i.CR)((0,u.useState)([]),2),T=D[0],I=D[1],A=(0,u.useMemo)((function(){return(0,o.sortBy)(t,"ordinalPosition")}),[t]),w=(0,u.useCallback)((function(e){E(e)}),[]),b=(0,u.useMemo)((function(){return(0,J.Ht)(t,"fullyQualifiedName")}),[t]),C=(0,u.useCallback)((function(){N.length




© 2015 - 2025 Weber Informatics LLC | Privacy Policy