@viswa-test/audit-log 0.0.4 → 0.0.5
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/components/AuditLogPanel/AuditLogPanel.js +1 -1
- package/dist/cjs/components/AuditLogPanel/AuditLogPanel.module.css.js +1 -1
- package/dist/cjs/components/AuditLogPanel/AuditLogPanelItem.js +2 -0
- package/dist/cjs/components/AuditLogPanel/AuditLogPanelItem.js.map +1 -0
- package/dist/cjs/components/AuditLogPanel/AuditLogSandBox.js +1 -1
- package/dist/cjs/components/AuditLogPanel/ComparisonSummaryCard.js +1 -1
- package/dist/cjs/components/AuditLogPanel/FilterSection.js +1 -1
- package/dist/cjs/components/AuditLogPanel/Services/AuditLogPanelAdapter.js +2 -0
- package/dist/cjs/components/AuditLogPanel/Services/AuditLogPanelAdapter.js.map +1 -0
- package/dist/cjs/components/AuditLogPanel/Services/useAuditLogPanelData.js +2 -0
- package/dist/cjs/components/AuditLogPanel/Services/useAuditLogPanelData.js.map +1 -0
- package/dist/cjs/components/AuditLogPanel/Services/useAuditLogPanelDistinctValues.js +2 -0
- package/dist/cjs/components/AuditLogPanel/Services/useAuditLogPanelDistinctValues.js.map +1 -0
- package/dist/cjs/components/AuditLogPanel/Services/useAuditLogPanelFilters.js +2 -0
- package/dist/cjs/components/AuditLogPanel/Services/useAuditLogPanelFilters.js.map +1 -0
- package/dist/cjs/components/AuditLogPanel/Services/useAuditLogPanelScroll.js +2 -0
- package/dist/cjs/components/AuditLogPanel/Services/useAuditLogPanelScroll.js.map +1 -0
- package/dist/cjs/styles.css +1 -1
- package/dist/components/AuditLogPanel/AuditLogPanel.js +1 -1
- package/dist/components/AuditLogPanel/AuditLogPanel.module.css.js +1 -1
- package/dist/components/AuditLogPanel/AuditLogPanelItem.js +2 -0
- package/dist/components/AuditLogPanel/AuditLogPanelItem.js.map +1 -0
- package/dist/components/AuditLogPanel/AuditLogSandBox.js +1 -1
- package/dist/components/AuditLogPanel/ComparisonSummaryCard.js +1 -1
- package/dist/components/AuditLogPanel/FilterSection.js +1 -1
- package/dist/components/AuditLogPanel/Services/AuditLogPanelAdapter.js +2 -0
- package/dist/components/AuditLogPanel/Services/AuditLogPanelAdapter.js.map +1 -0
- package/dist/components/AuditLogPanel/Services/useAuditLogPanelData.js +2 -0
- package/dist/components/AuditLogPanel/Services/useAuditLogPanelData.js.map +1 -0
- package/dist/components/AuditLogPanel/Services/useAuditLogPanelDistinctValues.js +2 -0
- package/dist/components/AuditLogPanel/Services/useAuditLogPanelDistinctValues.js.map +1 -0
- package/dist/components/AuditLogPanel/Services/useAuditLogPanelFilters.js +2 -0
- package/dist/components/AuditLogPanel/Services/useAuditLogPanelFilters.js.map +1 -0
- package/dist/components/AuditLogPanel/Services/useAuditLogPanelScroll.js +2 -0
- package/dist/components/AuditLogPanel/Services/useAuditLogPanelScroll.js.map +1 -0
- package/dist/styles.css +1 -1
- package/dist/types/components/AuditLogPanel/AuditLogPanel.d.ts +3 -1
- package/dist/types/components/AuditLogPanel/AuditLogPanel.d.ts.map +1 -1
- package/dist/types/components/AuditLogPanel/AuditLogPanel.types.d.ts +208 -0
- package/dist/types/components/AuditLogPanel/AuditLogPanel.types.d.ts.map +1 -0
- package/dist/types/components/AuditLogPanel/AuditLogPanelItem.d.ts +18 -0
- package/dist/types/components/AuditLogPanel/AuditLogPanelItem.d.ts.map +1 -0
- package/dist/types/components/AuditLogPanel/AuditLogSandBox.d.ts.map +1 -1
- package/dist/types/components/AuditLogPanel/CommonUI.d.ts +2 -2
- package/dist/types/components/AuditLogPanel/CommonUI.d.ts.map +1 -1
- package/dist/types/components/AuditLogPanel/ComparisonSummaryCard.d.ts +1 -1
- package/dist/types/components/AuditLogPanel/ComparisonSummaryCard.d.ts.map +1 -1
- package/dist/types/components/AuditLogPanel/Constants/constants.d.ts +6 -0
- package/dist/types/components/AuditLogPanel/Constants/constants.d.ts.map +1 -0
- package/dist/types/components/AuditLogPanel/FilterSection.d.ts +1 -1
- package/dist/types/components/AuditLogPanel/FilterSection.d.ts.map +1 -1
- package/dist/types/components/AuditLogPanel/Services/AuditLogPanelAdapter.d.ts +4 -0
- package/dist/types/components/AuditLogPanel/Services/AuditLogPanelAdapter.d.ts.map +1 -0
- package/dist/types/components/AuditLogPanel/Services/useAuditLogPanelData.d.ts +9 -0
- package/dist/types/components/AuditLogPanel/Services/useAuditLogPanelData.d.ts.map +1 -0
- package/dist/types/components/AuditLogPanel/Services/useAuditLogPanelDistinctValues.d.ts +9 -0
- package/dist/types/components/AuditLogPanel/Services/useAuditLogPanelDistinctValues.d.ts.map +1 -0
- package/dist/types/components/AuditLogPanel/Services/useAuditLogPanelFilters.d.ts +37 -0
- package/dist/types/components/AuditLogPanel/Services/useAuditLogPanelFilters.d.ts.map +1 -0
- package/dist/types/components/AuditLogPanel/Services/useAuditLogPanelScroll.d.ts +3 -0
- package/dist/types/components/AuditLogPanel/Services/useAuditLogPanelScroll.d.ts.map +1 -0
- package/package.json +6 -1
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{__assign as
|
|
1
|
+
import{__assign as e}from"../../_virtual/_tslib.js";import{jsx as l,jsxs as a,Fragment as t}from"react/jsx-runtime";import{useState as i}from"react";import{ChevronUp as n,ChevronDown as o}from"lucide-react";import{TruncatedText as r}from"./CommonUI.js";import c from"./AuditLogPanel.module.css.js";var d=function(d){var s=d.data,m=d.globalClasses,p=d.globalStyles,g=d.globalIcons,v=i(s.isInitiallyExpanded||!1),u=v[0],x=v[1],h={isExpanded:u,expand:function(){return x(!0)},collapse:function(){return x(!1)},toggle:function(){return x(!u)}},f=(null==g?void 0:g.chevronUp)||l(n,{size:18}),b=(null==g?void 0:g.chevronDown)||l(o,{size:18});return a("div",e({className:"".concat(c.compCard," ").concat((null==m?void 0:m.compCard)||""," ").concat(s.className||""),style:e(e({},null==p?void 0:p.compCard),s.style)},{children:[a("div",e({onClick:h.toggle,className:c.compHeader},{children:[l("div",e({className:c.compTitle},{children:s.renderHeaderLeft?s.renderHeaderLeft():s.title||"Deviation Summary"})),l("div",e({className:c.compIcon},{children:s.renderHeaderRight?s.renderHeaderRight(u,h):u?f:b}))]})),u&&l("div",e({className:c.compBody},{children:s.renderExpandedBody?s.renderExpandedBody(h):a(t,{children:[s.latestText&&a("div",{children:[l("div",e({className:c.compSectionLabel},{children:s.latestTextLabel||"Latest Text"})),l("div",e({className:c.compLatestText},{children:l(r,{content:s.latestText,config:s.truncation,globalClasses:m,globalStyles:p})}))]}),s.originalText&&a("div",e({style:{marginTop:"12px"}},{children:[l("div",e({className:c.compSectionLabel},{children:s.originalTextLabel||"Original Text"})),l("div",e({className:c.compOriginalText},{children:l(r,{content:s.originalText,config:s.truncation,globalClasses:m,globalStyles:p})}))]}))]})}))]}))};export{d as ComparisonSummaryCard};
|
|
2
2
|
//# sourceMappingURL=ComparisonSummaryCard.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{__assign as e
|
|
1
|
+
import{__assign as e}from"../../_virtual/_tslib.js";import{jsx as l,jsxs as n,Fragment as t}from"react/jsx-runtime";import{useState as i,useEffect as a}from"react";import{Filter as r,X as o,ChevronUp as c,ChevronDown as d,Search as s}from"lucide-react";import u from"../DateRangeSelector.js";import v from"../ImpactRangeSelector.js";import p from"../CustomMultiSelect.js";import m from"./AuditLogPanel.module.css.js";var h=function(t){var i=t.configs,a=t.draftValues,r=t.handleValueChange,o=t.filterLabels,c=t.classNames,d=t.styles,h=function(t){var i,h,f,y,N,C,g=a[t.id],A="".concat(m.filterInput," ").concat((null==c?void 0:c.filterInput)||"");switch(t.type){case"text":return n("div",e({className:m.inputWrapper},{children:[l(s,{size:14,className:m.inputIcon}),l("input",{type:"text",className:"".concat(A," ").concat(m.filterInputWithIcon),placeholder:t.placeholder||"Type here...",value:g||"",onChange:function(e){return r(t.id,e.target.value)},style:null==d?void 0:d.filterInput})]}));case"select":return n("select",e({className:"".concat(m.filterSelect," ").concat((null==c?void 0:c.filterInput)||""),value:g||"",onChange:function(e){return r(t.id,e.target.value)},style:null==d?void 0:d.filterInput},{children:[l("option",e({value:""},{children:(null==o?void 0:o.selectAll)||"All"})),null===(i=t.options)||void 0===i?void 0:i.map(function(n){return l("option",e({value:n.value},{children:n.label}),n.value)})]}));case"multi-select":var b=Array.isArray(g)?g:[];return l("div",e({className:null==c?void 0:c.filterMultiSelectWrapper,style:null==d?void 0:d.filterMultiSelectWrapper},{children:l(p,{options:t.options||[],value:b,onChange:function(e){return r(t.id,e)},placeholder:t.placeholder||"Select...",searchPlaceholder:t.placeholder||"Search...",showSelectAll:null===(h=t.showSelectAll)||void 0===h||h})}));case"date-range":var x=g||{start:null,end:null},B=new Date;return B.setHours(0,0,0,0),l(u,{value:x,onChange:function(e){return r(t.id,e)},maxDate:B,endIcon:!0});case"impact-range":var S=g||{min:null!==(f=t.min)&&void 0!==f?f:-100,max:null!==(y=t.max)&&void 0!==y?y:100};return l(v,{value:S,onChange:function(e){return r(t.id,e)},min:null!==(N=t.min)&&void 0!==N?N:-100,max:null!==(C=t.max)&&void 0!==C?C:100});case"custom":return t.renderCustomFilter?t.renderCustomFilter(g,function(e){return r(t.id,e)}):null;default:return null}};return l("div",e({className:m.filterFormGrid},{children:i.filter(function(e){return!1!==e.visible}).map(function(t){return n("div",e({className:m.filterField},{children:[l("label",e({className:"".concat(m.filterLabel," ").concat((null==c?void 0:c.filterLabel)||""),style:null==d?void 0:d.filterLabel},{children:t.label||t.id})),t.hint&&l("span",e({className:"".concat(m.filterHint," ").concat((null==c?void 0:c.filterHint)||""),style:null==d?void 0:d.filterHint},{children:t.hint})),h(t)]}),t.id)})}))},f=function(i){var a=i.handleApply,r=i.handleClearAll,o=i.showApplyButton,c=i.filterLabels,d=i.classNames,s=i.styles;return o?n(t,{children:[l("button",e({className:"".concat(m.btnSecondary," ").concat((null==d?void 0:d.filterClearBtn)||""),onClick:r,style:null==s?void 0:s.filterClearBtn},{children:(null==c?void 0:c.clearBtn)||"Clear All"})),l("button",e({className:"".concat(m.btnPrimary," ").concat((null==d?void 0:d.filterApplyBtn)||""),onClick:a,style:null==s?void 0:s.filterApplyBtn},{children:(null==c?void 0:c.applyBtn)||"Apply Filters"}))]}):null},y=function(t){var i,a,c;return n("div",e({className:null===(i=t.classNames)||void 0===i?void 0:i.filterSection,style:null===(a=t.styles)||void 0===a?void 0:a.filterSection},{children:[n("button",e({onClick:function(){return t.setIsExpanded(!0)},className:m.iconTriggerBtn},{children:[l(r,{size:18}),t.activeCount>0&&l("span",e({className:m.iconTriggerBadge},{children:t.activeCount}))]})),t.isExpanded&&l("div",e({className:m.modalBackdrop,onClick:function(e){e.target===e.currentTarget&&t.setIsExpanded(!1)}},{children:n("div",e({className:m.modalContainer},{children:[n("div",e({className:m.modalHeader},{children:[n("h3",e({className:m.modalTitle},{children:[l(r,{size:16,color:"#2563eb"})," ",(null===(c=t.filterLabels)||void 0===c?void 0:c.title)||"Advanced Filters"]})),l("button",e({onClick:function(){return t.setIsExpanded(!1)},className:m.modalClose},{children:l(o,{size:18})}))]})),l("div",e({className:m.modalBody},{children:l(h,e({},t))})),t.showApplyButton&&l("div",e({className:m.modalFooter},{children:l(f,e({},t))}))]}))}))]}))},N=function(t){var i,a,o;return n("div",e({className:"".concat(m.accordionContainer," ").concat((null===(i=t.classNames)||void 0===i?void 0:i.filterSection)||""),style:null===(a=t.styles)||void 0===a?void 0:a.filterSection},{children:[n("div",e({onClick:function(){return t.setIsExpanded(!t.isExpanded)},className:"".concat(m.accordionHeader," ").concat(t.isExpanded?m.accordionHeaderExpanded:"")},{children:[n("div",e({className:m.accordionTitle},{children:[l(r,{size:14,color:"#2563eb"})," ",(null===(o=t.filterLabels)||void 0===o?void 0:o.title)||"Advanced Filters",t.activeCount>0&&l("span",e({className:m.iconTriggerBadge,style:{position:"relative",top:0,right:0}},{children:t.activeCount}))]})),t.isExpanded?l(c,{size:16,color:"#64748b"}):l(d,{size:16,color:"#64748b"})]})),t.isExpanded&&n("div",e({className:m.accordionContentWrapper},{children:[l("div",e({className:m.accordionBody},{children:l(h,e({},t))})),t.showApplyButton&&l("div",e({className:m.accordionFooter},{children:l(f,e({},t))}))]}))]}))},C=function(t){var i,a;return n("div",e({className:"".concat(m.accordionContainer," ").concat((null===(i=t.classNames)||void 0===i?void 0:i.filterSection)||""),style:null===(a=t.styles)||void 0===a?void 0:a.filterSection},{children:[l("div",e({className:m.accordionBody},{children:l(h,e({},t))})),t.showApplyButton&&l("div",e({className:m.accordionFooter},{children:l(f,e({},t))}))]}))},g=function(n){var t=n.displayMode,r=void 0===t?"popup":t,o=n.values,c=n.onChange,d=n.showApplyButton,s=void 0===d||d,u=i("inline"===r),v=u[0],p=u[1],m=i(o),h=m[0],f=m[1];a(function(){f(o)},[o]);var g=e(e({},n),{displayMode:r,isExpanded:v,setIsExpanded:p,draftValues:h,handleValueChange:function(l,n){var t,i=e(e({},h),((t={})[l]=n,t));(""===n||null===n||Array.isArray(n)&&0===n.length||null===(null==n?void 0:n.start)&&null===(null==n?void 0:n.end))&&delete i[l],f(i),s||c(i)},handleApply:function(){c(h),"popup"===r&&p(!1)},handleClearAll:function(){f({}),c({}),"popup"===r&&p(!1)},activeCount:Object.keys(o).length});return l("popup"===r?y:"accordion"===r?N:C,e({},g))};export{g as FilterSection};
|
|
2
2
|
//# sourceMappingURL=FilterSection.js.map
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
var a=function(a,t,e){if(!a||!Array.isArray(a))return[];var r=(null==t?void 0:t.changedToSuffix)||"Changed To:",n=(null==t?void 0:t.fromSuffix)||"From:";return a.map(function(a){var t,o,i,l,d=new Set,u="",v=[];return a.changelog_metadata&&Array.isArray(a.changelog_metadata)&&a.changelog_metadata.forEach(function(a){var t,o,i,c;(null===(t=a.metadata)||void 0===t?void 0:t.tags)&&Array.isArray(a.metadata.tags)&&a.metadata.tags.forEach(function(a){return d.add(a)}),(null===(o=a.metadata)||void 0===o?void 0:o.severity)&&!u&&(u=a.metadata.severity,l=a.metadata.impact||l);var s=a.property_name||"Property",p=(null===(i=a.property_value)||void 0===i?void 0:i.previous_value)||{},g=(null===(c=a.property_value)||void 0===c?void 0:c.current_value)||{},m=function(a){var t;if(void 0!==a[s])return a[s];var e=Object.keys(a).find(function(a){return a.toLowerCase()===s.toLowerCase()});return e&&void 0!==a[e]?a[e]:null!==(t=Object.values(a)[0])&&void 0!==t?t:"None"},f=m(p),y=m(g);v.push({label:"".concat(r),content:String(y),truncation:e}),v.push({label:"".concat(n),content:String(f),truncation:e})}),{id:a.change_log_id,actionType:(null===(i=null===(o=null===(t=null==a?void 0:a.changelog_metadata)||void 0===t?void 0:t[0])||void 0===o?void 0:o.metadata)||void 0===i?void 0:i.action_type)||"UPDATE",title:a.changeTitle,subtitle:a.modifiedbyname,timestamp:a.created_at?new Date(a.created_at).toLocaleString():"",tags:Array.from(d),impact:{severity:u,description:l,truncation:e},contentBlocks:v,rawPayload:a}})},t=function(a,t,e){if(a&&0!==a.length){var r=a.map(function(a){return a.rawPayload?a.rawPayload:a}),n=r[0],o=r[r.length-1],i=function(a,t){var e,r,n,o=null===(e=null==a?void 0:a.changelog_metadata)||void 0===e?void 0:e[0];if(!o)return"N/A";var i=o.property_name||"Property",l=(null===(r=o.property_value)||void 0===r?void 0:r[t])||{};if(void 0!==l[i])return l[i];var d=Object.keys(l).find(function(a){return a.toLowerCase()===i.toLowerCase()});return d&&void 0!==l[d]?l[d]:null!==(n=Object.values(l)[0])&&void 0!==n?n:"N/A"},l=i(n,"current_value"),d=i(o,"previous_value");if("N/A"!==l||"N/A"!==d)return{title:(null==t?void 0:t.comparisonTitle)||"Final Approved Text Vs. Original",latestTextLabel:(null==t?void 0:t.comparisonLatestLabel)||"Final Approved:",originalTextLabel:(null==t?void 0:t.comparisonOriginalLabel)||"Original:",latestText:String(l),originalText:String(d),isInitiallyExpanded:!0,truncation:e,rawPayload:r}}};export{t as extractComparisonContext,a as transformBackendLogs};
|
|
2
|
+
//# sourceMappingURL=AuditLogPanelAdapter.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AuditLogPanelAdapter.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{__awaiter as e,__generator as r,__spreadArray as t,__rest as n,__assign as i}from"../../../_virtual/_tslib.js";import{useState as o,useRef as a,useCallback as u,useEffect as s}from"react";import{transformBackendLogs as c}from"./AuditLogPanelAdapter.js";var d=function(d,l,f,v,p,g,h){var m=o([]),b=m[0],j=m[1],L=o(!1),O=L[0],y=L[1],S=o(!1),x=S[0],z=S[1],A=o(!0),P=A[0],C=A[1],E=o(),I=E[0],M=E[1],N=a(!1),T=u(function(o,a){return void 0===o&&(o=!1),e(void 0,void 0,void 0,function(){var e,u,s,l,f,m,b,L,O,S,x,A,P;return r(this,function(r){switch(r.label){case 0:if(!d||v)return[2];if(N.current)return[2];N.current=!0,o?y(!0):z(!0),r.label=1;case 1:return r.trys.push([1,4,5,6]),u=(e=g||{}).pageSize,s=n(e,["pageSize"]),l=Object.fromEntries(Object.entries(s).filter(function(e){return e[0],void 0!==e[1]})),f={configId:d.configId,pageSize:u||10,cursor:o?void 0:null!=a?a:I,filters:i(i({},d.baseQuery),l)},m=Object.fromEntries(Object.entries(f).filter(function(e){return e[0],void 0!==e[1]})),[4,fetch("".concat(d.baseUrl).concat(d.endpoint),{method:d.method||"POST",headers:i({"Content-Type":"application/json"},d.headers),body:JSON.stringify(m)})];case 2:return[4,r.sent().json()];case 3:return b=r.sent(),L=(null===(x=null==b?void 0:b.data)||void 0===x?void 0:x.items)||[],O=c(L,p,h),j(function(e){return o?O:t(t([],e,!0),O,!0)}),M(null===(A=null==b?void 0:b.data)||void 0===A?void 0:A.nextCursor),C(!!(null===(P=null==b?void 0:b.data)||void 0===P?void 0:P.hasNext)),[3,6];case 4:return S=r.sent(),console.error("AuditLogPanel: Failed to fetch logs",S),[3,6];case 5:return N.current=!1,o?y(!1):z(!1),[7];case 6:return[2]}})})},[d,l,I,v,p,g]);return s(function(){f&&!v&&d&&T(!0)},[f,l,v]),{apiLogs:b,apiLoading:O,apiLoadingMore:x,apiHasMore:P,fetchLogs:T}};export{d as useAuditLogsData};
|
|
2
|
+
//# sourceMappingURL=useAuditLogPanelData.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useAuditLogPanelData.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{__awaiter as e,__generator as n,__assign as a}from"../../../_virtual/_tslib.js";import{useState as t,useEffect as r}from"react";var i=function(i,o,l,c){void 0===l&&(l=[]);var s=t({}),u=s[0],d=s[1],p=t(!1),v=p[0],_=p[1],h=l.join(",");return r(function(){var t=(null==i?void 0:i.configId)||o;if(c&&(null==i?void 0:i.baseUrl)&&(null==i?void 0:i.endpoint)&&t){e(void 0,void 0,void 0,function(){var e,r,o,l,c,s,u,p;return n(this,function(n){switch(n.label){case 0:_(!0),n.label=1;case 1:return n.trys.push([1,4,5,6]),e=i.baseUrl.replace(/\/$/,""),r=i.endpoint.replace(/^\/|\/$/g,""),o=new URL("".concat(e,"/").concat(r,"/").concat(t)),(l=h?h.split(","):[]).length>0&&l[0]&&o.searchParams.append("external_resource_id",l[0]),[4,fetch(o.toString(),{method:"GET",headers:a({"Content-Type":"application/json"},i.headers)})];case 2:return[4,n.sent().json()];case 3:return c=n.sent(),s=(null==c?void 0:c.data)||{},u={},Array.isArray(s.change_made_title)&&(u.changeTitles=s.change_made_title.map(function(e){return{label:e,value:e}})),s.change_made_by_user&&"object"==typeof s.change_made_by_user&&(u.analysts=Object.entries(s.change_made_by_user).map(function(e){return{label:e[0],value:e[1]}})),d(u),[3,6];case 4:return p=n.sent(),console.error("AuditLogPanel: Failed to fetch distinct values",p),[3,6];case 5:return _(!1),[7];case 6:return[2]}})})}},[c,null==i?void 0:i.baseUrl,null==i?void 0:i.endpoint,null==i?void 0:i.configId,o,h]),{dynamicOptionsMap:u,loading:v}};export{i as useAuditLogDistinctValues};
|
|
2
|
+
//# sourceMappingURL=useAuditLogPanelDistinctValues.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useAuditLogPanelDistinctValues.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{__assign as t}from"../../../_virtual/_tslib.js";import{useState as i,useMemo as e}from"react";var l={latest:"latestFirst",oldest:"oldestFirst",impactHighToLow:"impactPercentageHighToLow",impactLowToHigh:"impactPercentageLowToHigh"},a=function(a,o,n,r,s){var d,c=void 0!==o,p=i({}),h=p[0],u=p[1],v=c?o:h,m=e(function(){var i,e,l,o,n=!Array.isArray(a),s=n?null==a?void 0:a.config:void 0,d=n?null==a?void 0:a.items:a,c=n&&(null==a?void 0:a.labels)?a.labels:{},p=n&&(null==a?void 0:a.impactRangeLimits)?a.impactRangeLimits:{min:-100,max:100};if(d)return d.map(function(i){return i.dynamicOptionKey&&r[i.dynamicOptionKey]?t(t({},i),{options:r[i.dynamicOptionKey]}):i});var h=s||{},u=[];if(!1!==h.showSearch&&u.push({id:"search",type:"text",label:c.searchLabel||"Global Search",placeholder:c.searchPlaceholder,hint:c.searchHint}),!1!==h.showSort){var v=[];!1!==(null===(i=h.sortOptions)||void 0===i?void 0:i.latest)&&v.push({label:c.sortLatestFirst||"Latest First",value:"latest"}),!1!==(null===(e=h.sortOptions)||void 0===e?void 0:e.oldest)&&v.push({label:c.sortOldestFirst||"Oldest First",value:"oldest"}),!1!==(null===(l=h.sortOptions)||void 0===l?void 0:l.impactHighToLow)&&v.push({label:c.sortImpactHighToLow||"Impact: High to Low",value:"impactHighToLow"}),!1!==(null===(o=h.sortOptions)||void 0===o?void 0:o.impactLowToHigh)&&v.push({label:c.sortImpactLowToHigh||"Impact: Low to High",value:"impactLowToHigh"}),u.push({id:"sort",type:"select",label:c.sortLabel||"Sort Order",hint:c.sortHint,options:v})}return!1!==h.showAnalystFilter&&u.push({id:"analysts",type:"multi-select",label:c.multiSelectLabel||"Modified By",hint:c.analystsHint,dynamicOptionKey:"analysts",placeholder:c.searchPlaceholder}),!1!==h.showChangeTitleFilter&&u.push({id:"changeTitles",type:"multi-select",label:c.changeTitleLabel||"Change Title",hint:c.changeTitleHint,dynamicOptionKey:"changeTitles",placeholder:c.searchPlaceholder}),!1!==h.showDateFilter&&u.push({id:"dateFilter",type:"date-range",label:c.dateLabel||"Date Range",hint:c.dateHint}),!1!==h.showImpactPercentage&&u.push({id:"impactFilter",type:"impact-range",label:c.impactPercentageTitle||"Impact Score",min:p.min,max:p.max,hint:c.impactHintLabel}),u.map(function(i){return i.dynamicOptionKey&&r[i.dynamicOptionKey]?t(t({},i),{options:r[i.dynamicOptionKey]}):i})},[a,r]),g=e(function(){var t,i,e,a,o,n,r,d,c,p,h,u;return{externalResourceId:null!==(t=null==s?void 0:s.externalResourceId)&&void 0!==t?t:[],pageSize:null!==(i=null==s?void 0:s.paginationLimit)&&void 0!==i?i:10,userEmails:(null===(e=v.analysts)||void 0===e?void 0:e.length)?v.analysts:void 0,changeTitle:(null===(a=v.changeTitles)||void 0===a?void 0:a.length)?v.changeTitles:void 0,content:v.search||void 0,modifiedDateStart:null!==(n=null===(o=v.dateFilter)||void 0===o?void 0:o.start)&&void 0!==n?n:void 0,modifiedDateEnd:null!==(d=null===(r=v.dateFilter)||void 0===r?void 0:r.end)&&void 0!==d?d:void 0,orderBy:v.sort?l[v.sort]:"latestFirst",impactPercentageStart:null!==(p=null===(c=v.impactFilter)||void 0===c?void 0:c.min)&&void 0!==p?p:void 0,impactPercentageEnd:null!==(u=null===(h=v.impactFilter)||void 0===h?void 0:h.max)&&void 0!==u?u:void 0}},[s,v]),y=!Array.isArray(a)&&(null===(d=null==a?void 0:a.config)||void 0===d?void 0:d.showApplyButton),L=Array.isArray(a)?{}:null==a?void 0:a.labels;return{activeFilters:v,handleFilterChange:function(t){c||u(t),n&&n(t)},enrichedFilters:m,apiQuery:g,showApplyButton:y,filterLabels:L}};export{a as useAuditLogFilters};
|
|
2
|
+
//# sourceMappingURL=useAuditLogPanelFilters.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useAuditLogPanelFilters.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{useRef as n,useEffect as e}from"react";var r=function(r,t,o,u,c){var l=n(null);return e(function(){return document.body.style.overflow=r?"hidden":"unset",function(){document.body.style.overflow="unset"}},[r]),e(function(){var n=l.current;if(n&&r){var e=function(){!o&&t&&n.scrollHeight-n.scrollTop-n.clientHeight<100&&u()};return n.addEventListener("scroll",e),e(),function(){return n.removeEventListener("scroll",e)}}},[t,o,u,c,r]),l};export{r as useAuditLogScroll};
|
|
2
|
+
//# sourceMappingURL=useAuditLogPanelScroll.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useAuditLogPanelScroll.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
package/dist/styles.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
.App{height:100vh;overflow-y:auto;width:100vw}.audit-tableWrap{background:#fff;border:1px solid #e5e7eb;border-radius:12px;overflow:hidden}.audit-table .p-datatable-tbody>tr:nth-child(odd){background:#f8fafc}.audit-table .p-datatable-tbody>tr:hover{background:#eff5ff!important}.audit-table .p-datatable-thead>tr>th{background:#f8fafc;border-bottom:1px solid #e5e7eb;color:#6b7280;font-family:Inter;font-size:12px;font-weight:600;height:54px;padding:8px 16px}.audit-table .p-datatable-thead>tr>th .p-column-header-content{align-items:center;justify-content:center}.audit-table .p-datatable-tbody>tr>td{border-bottom:1px solid #eef2f7;color:#101828;font-family:Inter;font-size:14px;font-weight:400;height:92px;padding:16px}.audit-modifiedBy{align-items:center;display:flex;justify-content:center}.audit-actionCell{display:flex;flex-direction:column;gap:6px}.audit-chip{border-radius:6px;font-family:Inter;font-size:9px;font-weight:500;gap:5px;padding:4px 7px;width:fit-content}.audit-chip,.audit-chip__icon{align-items:center;display:inline-flex}.audit-chip__icon{justify-content:center}.audit-chip--purple{background:#ede9fe;color:#6d28d9}.audit-chip--orange{background:#ffedd5;color:#c2410c}.audit-actionText{color:#111827;font-size:12px;line-height:1.35}.audit-seeMore{background:#0000;border:0;color:#6d28d9;cursor:pointer;font-size:12px;font-weight:400;margin-left:4px;padding:0}.audit-dateCell{color:#101828;font-family:Inter;text-align:center}.audit-emptyState{align-items:center;color:#64748b;display:flex;flex-direction:column;height:300px;justify-content:center;text-align:center}.audit-emptyTitle{font-size:16px;font-weight:600;margin-top:8px}.audit-emptyDesc{font-size:13px;margin-top:4px}.audit-skeletonRow{display:flex;gap:16px;padding:12px 0}.audit-operation-body{align-items:center;display:flex;justify-content:center}.audit-logIdBody{margin:0 auto;max-width:180px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.audit-table .p-datatable-tbody>tr.audit-row--clickable{cursor:pointer}.audit-table .p-datatable-tbody>tr.p-datatable-row-expansion>td{background:#fff;padding:0}.audit-rowDetail{background:#fff;border-top:1px solid #eef2f7;padding:16px 20px}.log-toolbar{align-items:center;display:flex;gap:16px;width:100%}.log-filterFooter{border-top:1px solid #eee;padding:16px 20px}.log-toolbar__search{flex:1;position:relative}.log-toolbar__search input{border:1px solid #e5e7eb;border-radius:8px;color:#6b7280;font-family:Inter;font-size:14px;font-weight:500;height:40px;padding:0 14px 0 42px;width:100%}.log-toolbar__search input:focus{border-color:#cbd5e1;outline:none}.log-toolbar__search-icon{color:#6b7280;left:14px;position:absolute;top:50%;transform:translateY(-50%)}.log-toolbar__actions{display:flex;gap:12px}.log-toolbar__btn{align-items:center;background:#fff;border:1px solid #e5e7eb;border-radius:8px;color:#6b7280;cursor:pointer;display:flex;font-size:14px;gap:8px;height:40px;padding:0 18px;transition:.2s ease}.log-toolbar__btn:hover{background:#f8fafc;border-color:#dbe3ef}.log-toolbar__sort{position:relative}.log-toolbar__dropdown{background:#fff;border:1px solid #e5e7eb;border-radius:8px;box-shadow:0 12px 24px #0000001f;min-width:260px;overflow:hidden;padding:6px;position:absolute;right:0;top:52px;z-index:99}.log-toolbar__dropdown button{background:#fff;border:none;border-radius:8px;cursor:pointer;font-size:14px;margin:2px;padding:5px 15px;text-align:left;width:100%}.log-toolbar__dropdown button:hover{background:#f3f4f6}.log-toolbar__dropdown--active{background:#f5f3ff!important;color:#7c3aed}.log-toolbar_list:hover{background:#f5f5f5}.log-toolbar__btn--active{border:1px solid #6d28d9;color:#6d28d9}.log-toolbar__btn--active svg{color:#6d28d9}.drs{position:relative}.drs__trigger{align-items:center;background:#fff;border:1px solid #e5e7eb;border-radius:8px;color:#475569;cursor:pointer;display:inline-flex;font-size:14px;gap:10px;height:40px;padding:0 18px;transition:.2s ease}.drs__trigger:hover{background:#f8fafc;border-color:#dbe3ef}.drs__label{color:#6b7280;font-family:Inter;font-size:14px}.drs__popover{background:#fff;border:1px solid #e5e7eb;border-radius:16px;box-shadow:0 16px 40px #00000024;position:absolute;right:0;top:60px;width:340px;z-index:9999}.drs__header{align-items:center;display:flex;justify-content:space-between;padding:16px 16px 10px}.drs__month{color:#1e293b;display:flex;font-family:Inter,sans-serif;font-size:17px;font-weight:700;gap:5px}.drs__month-click,.drs__year-click{border-radius:4px;cursor:pointer;padding:1px 4px;transition:background-color .15s ease}.drs__month-click:hover,.drs__year-click:hover{background:#f1f5f9;color:#635ae3}.drs__nav{align-items:center;background:#fff;border:1px solid #e5e7eb;border-radius:8px;color:#64748b;cursor:pointer;display:inline-flex;height:34px;justify-content:center;width:34px}.drs__nav:hover{background:#f8fafc;color:#1e293b}.drs__inputs{gap:8px;padding:0 16px 12px}.drs__input-box,.drs__inputs{align-items:center;display:flex}.drs__input-box{background:#f8fafc;border:1px solid #e2e8f0;border-radius:8px;color:#1e293b;flex:1;font-family:Inter,sans-serif;font-size:13px;font-weight:500;height:36px;padding:0 10px;transition:border-color .15s ease}.drs__input-box.is-active{background:#fff;border-color:#635ae3}.drs__input-placeholder{color:#94a3b8;font-weight:400}.drs__input-sep{color:#94a3b8;font-size:16px}.drs__week{display:grid;grid-template-columns:repeat(7,1fr);padding:0 8px 4px}.drs__weekday{color:#94a3b8;font-family:Inter,sans-serif;font-size:12px;font-weight:600;padding:4px 0;text-align:center}.drs__grid{display:grid;grid-template-columns:repeat(7,1fr);padding:0 8px 12px;row-gap:2px}.drs__day{align-items:center;background:#0000;border:none;color:#0f172a;cursor:pointer;display:flex;font-family:Inter,sans-serif;font-size:14px;font-weight:400;height:36px;justify-content:center;padding:0;position:relative;width:100%}.drs__day.is-disabled{cursor:not-allowed;opacity:.4;pointer-events:none}.drs__day-inner{align-items:center;border-radius:50%;display:flex;height:34px;justify-content:center;position:relative;transition:background-color .12s ease;width:34px;z-index:1}.drs__day:hover:not(.is-start):not(.is-end) .drs__day-inner{background:#f1f5f9}.drs__day.is-out{color:#cbd5e1}.drs__day.is-range-start:before,.drs__day.is-range:before{background:#635ae30f;content:"";inset:1px 0;position:absolute;z-index:0}.drs__day.is-range-start:before{left:50%}.drs__day.is-range-end:before{background:#635ae30f;content:"";inset:1px 0;position:absolute;right:50%;z-index:0}.drs__day.is-row-first:before{border-radius:50% 0 0 50%}.drs__day.is-row-last:before{border-radius:0 50% 50% 0}.drs__day.is-end .drs__day-inner,.drs__day.is-start .drs__day-inner{background:#635ae3;color:#fff;font-weight:600}.drs__day.is-end:hover .drs__day-inner,.drs__day.is-start:hover .drs__day-inner{background:#4f46d8}.drs__month-grid{display:grid;gap:8px;grid-template-columns:repeat(3,1fr);padding:8px 16px 16px}.drs__month-cell{background:#fff;border:1px solid #e5e7eb;border-radius:8px;color:#1e293b;cursor:pointer;font-family:Inter,sans-serif;font-size:14px;font-weight:500;height:44px}.drs__month-cell:hover{background:#f1f5f9}.drs__month-cell.is-selected{background:#635ae3;border-color:#635ae3;color:#fff}.drs__year-grid{display:grid;gap:8px;grid-template-columns:repeat(4,1fr);padding:8px 16px 16px}.drs__year-cell{background:#fff;border:1px solid #e5e7eb;border-radius:8px;color:#1e293b;cursor:pointer;font-family:Inter,sans-serif;font-size:13px;font-weight:500;height:44px;transition:background-color .15s ease}.drs__year-cell:hover{background:#f1f5f9}.drs__year-cell.is-selected{background:#635ae3;border-color:#635ae3;color:#fff}.drs__footer{border-top:1px solid #eef2f7;display:flex;gap:10px;justify-content:flex-end;padding:12px 16px}.drs__btn{border:1px solid #0000;border-radius:10px;cursor:pointer;font-family:Inter,sans-serif;font-size:14px;font-weight:600;height:40px;padding:0 20px}.drs__btn--ghost{background:#fff;border-color:#e5e7eb;color:#475569}.drs__btn--ghost:hover{background:#f8fafc}.drs__btn--primary{background:#635ae3;color:#fff}.drs__btn--primary:hover{background:#4f46d8}.drs__btn--primary:disabled{cursor:not-allowed;opacity:.45}.audit-filterBlock .date-range-wrapper,.audit-filterControl{width:100%}.log-filterSidebar{width:400px}.log-filterTitle{color:#334155;font-family:Inter;font-size:18px;font-weight:600}.log-filterBody{display:flex;flex-direction:column;gap:16px}.log-filterBlock .log-filterLabel{color:#334155;font-family:Inter;font-size:14px;font-weight:600}.log-filterHint{color:#64748b;font-family:Inter;font-size:12px;font-weight:500;line-height:130%;margin-top:4px}.log-filterFooter{background:#fff;bottom:0;display:flex;gap:10px;justify-content:flex-end;left:0;padding:12px 16px;position:absolute;right:0}.log-btnReset{background:#fff;border:1px solid #e2e8f0;color:#64748b}.log-btnApply,.log-btnReset{border-radius:6px;font-family:Inter;font-size:14px;font-weight:500;padding:8px 11px}.log-btnApply{background:#2563eb;color:#fff}.log-filter-date .drs__trigger{margin-top:12px;width:100%}.log-filterEmpty{background:#f8fafc;border:1px dashed #e2e8f0;border-radius:6px;color:#94a3b8;font-family:Inter;font-size:13px;font-weight:500;padding:10px 12px;text-align:center}.cms-root{position:relative;width:100%}.cms-trigger{align-items:center;background:#fff;border:1px solid #e5e7eb;border-radius:6px;cursor:pointer;display:flex;height:40px;justify-content:space-between;padding:0 18px;width:100%}.cms-trigger:hover{background:#f8fafc;border-color:#dbe3ef}.cms-triggerText{color:#6b7280;font-family:Inter;font-size:14px}.cms-hasValue{color:#334155}.cms-chevron{color:#64748b}.cms-panel{background:#fff;border:1px solid #e2e8f0;border-radius:10px;box-shadow:0 8px 24px #1018281f;left:0;padding:10px;position:absolute;right:0;top:calc(100% + 8px);z-index:9999}.cms-searchRow{align-items:center;border:1px solid #e2e8f0;border-radius:8px;color:#64748b;display:flex;gap:10px;height:40px;padding:0 12px}.cms-searchInput{border:none;color:#334155;font-family:Inter;font-size:14px;outline:none;width:100%}.cms-divider{background:#e2e8f0;height:1px;margin:10px 0}.cms-list{display:flex;flex-direction:column;gap:2px;max-height:220px;overflow:auto}.cms-item{align-items:center;border-radius:8px;cursor:pointer;display:flex;gap:10px;min-height:30px;padding:0 8px}.cms-item:hover{background:#f8fafc}.cms-checkbox{align-items:center;border:1px solid #cbd5e1;border-radius:4px;color:#fff;display:inline-flex;font-size:13px;height:16px;justify-content:center;width:16px}.cms-checked{background:#2563eb;border-color:#2563eb}.cms-itemText{color:#334155;font-family:Inter;font-size:14px}.AuditLogPanel-module_overlay__mnfs5{background-color:#0003;bottom:0;left:0;position:fixed;right:0;top:0;z-index:9998}.AuditLogPanel-module_panel__btKWo{background-color:#fff;box-shadow:-4px 0 20px #0000001a;display:flex;flex-direction:column;height:100vh;max-width:100vw;position:fixed;right:0;top:0;transition:transform .3s ease;width:480px;z-index:9999}.AuditLogPanel-module_panelOpen__Tj0EH{transform:translateX(0)}.AuditLogPanel-module_panelClosed__2nUTn{transform:translateX(100%)}.AuditLogPanel-module_header__4Ld8n{align-items:flex-start;border-bottom:1px solid #e2e8f0;display:flex;justify-content:space-between;padding:20px 24px}.AuditLogPanel-module_title__YkOer{color:#0f172a;font-size:18px;font-weight:600;margin:0}.AuditLogPanel-module_subtitle__NHQxF{color:#64748b;font-size:13px;margin:4px 0 0}.AuditLogPanel-module_closeBtn__9Raqs{align-items:center;background:none;border:none;color:#64748b;cursor:pointer;display:flex;justify-content:center;padding:4px}.AuditLogPanel-module_scrollArea__QVsJl{flex:1;overflow-y:auto;padding:24px}.AuditLogPanel-module_emptyState__ZqwuX{color:#64748b;margin-top:40px;text-align:center}.AuditLogPanel-module_compCard__KiH-p{background-color:#fff;border:1px solid #e2e8f0;border-radius:8px;margin-bottom:16px}.AuditLogPanel-module_compHeader__R5tvd{align-items:center;cursor:pointer;display:flex;justify-content:space-between;padding:12px 16px;user-select:none}.AuditLogPanel-module_compTitle__Y4FIG{color:#0f172a;font-size:14px;font-weight:600}.AuditLogPanel-module_compIcon__gYnr7{align-items:center;color:#475569;display:flex}.AuditLogPanel-module_compBody__hEdrH{border-top:1px solid #f1f5f9;display:flex;flex-direction:column;gap:12px;padding:16px}.AuditLogPanel-module_compSectionLabel__2Lm4E{color:#475569;font-size:12px;font-weight:600;margin-bottom:6px}.AuditLogPanel-module_compLatestText__jpMml{background-color:#f0fdf4;border:1px solid #dcfce7;border-radius:6px;color:#166534;font-size:13px;padding:12px}.AuditLogPanel-module_compOriginalText__FcXep{background-color:#f8fafc;border:1px solid #f1f5f9;border-radius:6px;color:#64748b;font-size:13px;padding:12px}.AuditLogPanel-module_itemWrapper__uucps{border-bottom:1px solid #e2e8f0}.AuditLogPanel-module_itemHeader__JueVB{align-items:center;background-color:initial;display:flex;justify-content:space-between;padding:16px 0}.AuditLogPanel-module_itemHeaderClickable__wzqVP{cursor:pointer}.AuditLogPanel-module_itemHeaderDefault__SH2oI{cursor:default}.AuditLogPanel-module_itemLeft__2LBs1{align-items:flex-start;display:flex;gap:12px}.AuditLogPanel-module_itemIconWrapper__LE0QA{align-items:center;border-radius:50%;display:flex;flex-shrink:0;height:32px;justify-content:center;width:32px}.AuditLogPanel-module_itemTitle__sDycO{color:#0f172a;font-size:14px;font-weight:600}.AuditLogPanel-module_itemSubtitle__Y7fME{color:#64748b;font-size:12px;margin-top:2px}.AuditLogPanel-module_itemRight__AalDS{align-items:center;display:flex;gap:12px}.AuditLogPanel-module_itemTimestamp__ooTn5{color:#64748b;font-size:12px}.AuditLogPanel-module_itemChevron__-wnQo{align-items:center;border-radius:50%;display:flex;padding:4px;transition:background-color .2s ease}.AuditLogPanel-module_itemExpanded__ZUp8c{display:flex;flex-direction:column;gap:16px;padding-bottom:20px;padding-left:44px}.AuditLogPanel-module_tagsRow__49-Ga{display:flex;flex-wrap:wrap;gap:8px}.AuditLogPanel-module_tagPill__HI0Ax{background-color:#f1f5f9;border-radius:12px;color:#475569;font-size:12px;padding:4px 10px}.AuditLogPanel-module_impactContainer__v16Y0{border:1px solid #e2e8f0;border-radius:8px;display:flex;flex-direction:column;gap:16px;padding:16px}.AuditLogPanel-module_impactHeader__ggNw-{align-items:center;display:flex;gap:8px;margin-bottom:8px}.AuditLogPanel-module_impactLabel__FOmPT{color:#0f172a;font-size:13px;font-weight:600}.AuditLogPanel-module_severityBadge__-sPO7{border-radius:12px;font-size:11px;font-weight:500;padding:2px 8px}.AuditLogPanel-module_severityHigh__e--68{background-color:#fee2e2;color:#991b1b}.AuditLogPanel-module_severityOther__m-OrS{background-color:#f1f5f9;color:#475569}.AuditLogPanel-module_divider__td5ot{background-color:#e2e8f0;height:1px}.AuditLogPanel-module_contentBlock__7sjMa{display:flex;flex-direction:column;gap:6px}.AuditLogPanel-module_contentBlockLabel__v8g5e{color:#0f172a;font-size:13px;font-weight:600}.AuditLogPanel-module_contentBlockText__dfcpm{background-color:#f8fafc;border:1px solid #f1f5f9;border-radius:6px;color:#475569;font-size:13px;padding:12px}.AuditLogPanel-module_markdown__7r3Qt{font-style:italic;margin:0;white-space:pre-wrap;word-break:break-word}.AuditLogPanel-module_markdown__7r3Qt p{display:inline;margin:0}.AuditLogPanel-module_truncateContainer__ajjKt{align-items:flex-start;display:flex;flex-direction:column;position:relative;width:100%}.AuditLogPanel-module_truncateText__1F-7K{-webkit-box-orient:vertical;color:inherit;display:-webkit-box;font-size:inherit;line-height:1.5;overflow:hidden;width:100%}.AuditLogPanel-module_truncateExpandedScrollable__txaww{display:block!important;overflow-y:auto;padding-right:6px}.AuditLogPanel-module_truncateExpandedScrollable__txaww::-webkit-scrollbar{width:4px}.AuditLogPanel-module_truncateExpandedScrollable__txaww::-webkit-scrollbar-track{background:#f1f5f9;border-radius:4px}.AuditLogPanel-module_truncateExpandedScrollable__txaww::-webkit-scrollbar-thumb{background:#cbd5e1;border-radius:4px}.AuditLogPanel-module_truncateExpandedScrollable__txaww::-webkit-scrollbar-thumb:hover{background:#94a3b8}.AuditLogPanel-module_toggleBtn__rfU8F{background:none;border:none;color:#2563eb;cursor:pointer;font-size:13px;font-style:italic;font-weight:500;margin-top:6px;padding:0}.AuditLogPanel-module_filterSection__b-3av{border-bottom:1px solid #e2e8f0;display:flex;flex-direction:column;gap:12px;margin-bottom:16px;padding:16px 0}.AuditLogPanel-module_filterGrid__IGB8-{align-items:flex-end;display:grid;gap:12px;grid-template-columns:repeat(auto-fit,minmax(140px,1fr))}.AuditLogPanel-module_filterItem__rg6ci{display:flex;flex-direction:column;gap:4px}.AuditLogPanel-module_filterLabel__5V4QY{color:#475569;font-size:12px;font-weight:600}.AuditLogPanel-module_filterInput__CvuQ5,.AuditLogPanel-module_filterSelect__1mD44{background-color:#fff;border:1px solid #cbd5e1;border-radius:6px;box-sizing:border-box;color:#0f172a;font-size:13px;outline:none;padding:8px 12px;transition:border-color .2s;width:100%}.AuditLogPanel-module_filterInput__CvuQ5:focus,.AuditLogPanel-module_filterSelect__1mD44:focus{border-color:#2563eb}.AuditLogPanel-module_dateRangeGroup__TGqpn{align-items:center;display:flex;gap:6px}.AuditLogPanel-module_filterHeader__YpEH-{align-items:center;cursor:pointer;display:flex;justify-content:space-between;margin-bottom:8px;user-select:none}.AuditLogPanel-module_filterHeaderLeft__2IvKC{align-items:center;color:#475569;display:flex;font-size:13px;font-weight:600;gap:8px}.AuditLogPanel-module_activeBadge__irk0W{background-color:#2563eb;border-radius:12px;color:#fff;font-size:11px;font-weight:700;padding:2px 8px}.AuditLogPanel-module_clearBtn__sRfO0{background:none;border:none;color:#dc2626;cursor:pointer;font-size:11px;margin-left:8px;padding:0 4px;text-decoration:underline}.AuditLogPanel-module_filterPopupWrapper__jBPyK{display:flex;justify-content:flex-end;margin-bottom:16px;position:relative}.AuditLogPanel-module_filterTriggerBtn__yL7ko{align-items:center;background:#fff;border:1px solid #cbd5e1;border-radius:6px;box-shadow:0 1px 2px #0000000d;color:#0f172a;cursor:pointer;display:flex;font-size:13px;font-weight:600;gap:8px;padding:8px 16px;transition:all .2s}.AuditLogPanel-module_filterTriggerBtn__yL7ko:hover{background:#f8fafc;border-color:#94a3b8}.AuditLogPanel-module_filterPopupContent__inbJs{background:#fff;border:1px solid #e2e8f0;border-radius:8px;box-shadow:0 10px 25px -5px #0000001a;margin-top:8px;max-height:70vh;overflow-y:auto;padding:16px;position:absolute;right:0;top:100%;width:340px;z-index:100}.AuditLogPanel-module_filterHint__n0Udq{color:#64748b;font-size:11px;line-height:1.3;margin-bottom:4px}.AuditLogPanel-module_multiSelectGroup__ZQU0e{background:#f8fafc;border:1px solid #e2e8f0;border-radius:6px;display:flex;flex-direction:column;gap:8px;max-height:120px;overflow-y:auto;padding:10px}.AuditLogPanel-module_checkboxItem__-Rwa1{align-items:center;color:#334155;cursor:pointer;display:flex;font-size:13px;gap:8px}.AuditLogPanel-module_rangeGroup__x-K5-{align-items:center;display:flex;gap:8px}.AuditLogPanel-module_rangeInput__hydGj{border:1px solid #cbd5e1;border-radius:6px;font-size:13px;padding:8px 10px;width:100%}.AuditLogPanel-module_filterFooter__21RHT{align-items:center;border-top:1px dashed #e2e8f0;display:flex;gap:12px;justify-content:flex-end;margin-top:16px;padding-top:12px}.AuditLogPanel-module_applyBtn__SsGu2{background-color:#2563eb;border:none;border-radius:6px;color:#fff;cursor:pointer;font-size:13px;font-weight:600;padding:8px 16px;transition:background-color .2s}.AuditLogPanel-module_applyBtn__SsGu2:hover{background-color:#1d4ed8}.AuditLogPanel-module_skeletonPulse__Jqdac{animation:AuditLogPanel-module_pulse__SFUMS 1.5s cubic-bezier(.4,0,.6,1) infinite}@keyframes AuditLogPanel-module_pulse__SFUMS{0%,to{opacity:1}50%{opacity:.5}}.AuditLogPanel-module_loadingText__M41Xb{color:#64748b;font-size:13px;font-style:italic;padding:16px;text-align:center}.lgfd__overlay{background:#0000;border:none;cursor:default;inset:0;padding:0;position:fixed;z-index:999}.lgfd__panel{background:#fff;border:1px solid #e5e7eb;border-radius:10px;box-shadow:0 8px 24px #0000001f;display:flex;flex-direction:column;max-height:520px;overflow:hidden;position:fixed;width:400px;z-index:1000}.lgfd__header{align-items:center;border-bottom:1px solid #f3f4f6;display:flex;flex-shrink:0;justify-content:space-between;padding:14px 16px 12px}.lgfd__title{color:#111827;font-size:14px;font-weight:600}.lgfd__closeBtn{background:none;border:none;border-radius:4px;color:#9ca3af;cursor:pointer;font-size:13px;line-height:1;padding:2px 6px;transition:background .1s,color .1s}.lgfd__closeBtn:hover{background:#f3f4f6;color:#374151}.lgfd__body{flex:1;overflow-y:auto}.lgfd__block{border-bottom:1px solid #f3f4f6;padding:14px 16px}.lgfd__block:last-child{border-bottom:none}.lgfd__label{color:#374151;font-size:13px;font-weight:600;margin-bottom:4px}.lgfd__hint{line-height:1.4}.lgfd__empty,.lgfd__hint{color:#9ca3af;font-size:12px}.lgfd__empty{padding:6px 0}.lgfd__footer{border-top:1px solid #e5e7eb;display:flex;flex-shrink:0;gap:8px;padding:12px 16px}.lgfd__resetBtn{background:#fff;border:1px solid #d1d5db;border-radius:6px;color:#374151;cursor:pointer;flex:1;font-size:13px;font-weight:500;padding:8px 12px;transition:background .1s}.lgfd__resetBtn:hover{background:#f9fafb}.lgfd__applyBtn{background:#7c3aed;border:none;border-radius:6px;color:#fff;cursor:pointer;flex:1;font-size:13px;font-weight:500;padding:8px 12px;transition:background .1s}.lgfd__applyBtn:hover{background:#6d28d9}.lgfd__actorSearch{align-items:center;display:flex;margin-bottom:6px;position:relative}.lgfd__actorInput{border:1px solid #d1d5db;border-radius:6px;box-sizing:border-box;color:#374151;font-size:13px;outline:none;padding:7px 32px 7px 10px;width:100%}.lgfd__actorInput:focus{border-color:#6b7280}.lgfd__actorSpinner{animation:lgfd-spin .6s linear infinite;border:2px solid #e5e7eb;border-radius:50%;border-top-color:#6b7280;height:14px;position:absolute;right:10px;width:14px}@keyframes lgfd-spin{to{transform:rotate(1turn)}}.lgfd__actorList{display:flex;flex-direction:column;gap:1px;max-height:128px;overflow-y:auto}.lgfd__actorItem{align-items:center;border-radius:5px;cursor:pointer;display:flex;gap:8px;padding:6px;user-select:none}.lgfd__actorItem:hover{background:#f9fafb}.lgfd__actorItem--checked{background:#f5f3ff}.lgfd__actorCheckbox{align-items:center;background:#fff;border:1.5px solid #d1d5db;border-radius:3px;color:#fff;display:flex;flex-shrink:0;font-size:10px;height:15px;justify-content:center;width:15px}.lgfd__actorCheckbox--checked{background:#7c3aed;border-color:#7c3aed}.lgfd__actorLabel{color:#374151;font-size:13px}
|
|
1
|
+
.App{height:100vh;overflow-y:auto;width:100vw}.audit-tableWrap{background:#fff;border:1px solid #e5e7eb;border-radius:12px;overflow:hidden}.audit-table .p-datatable-tbody>tr:nth-child(odd){background:#f8fafc}.audit-table .p-datatable-tbody>tr:hover{background:#eff5ff!important}.audit-table .p-datatable-thead>tr>th{background:#f8fafc;border-bottom:1px solid #e5e7eb;color:#6b7280;font-family:Inter;font-size:12px;font-weight:600;height:54px;padding:8px 16px}.audit-table .p-datatable-thead>tr>th .p-column-header-content{align-items:center;justify-content:center}.audit-table .p-datatable-tbody>tr>td{border-bottom:1px solid #eef2f7;color:#101828;font-family:Inter;font-size:14px;font-weight:400;height:92px;padding:16px}.audit-modifiedBy{align-items:center;display:flex;justify-content:center}.audit-actionCell{display:flex;flex-direction:column;gap:6px}.audit-chip{border-radius:6px;font-family:Inter;font-size:9px;font-weight:500;gap:5px;padding:4px 7px;width:fit-content}.audit-chip,.audit-chip__icon{align-items:center;display:inline-flex}.audit-chip__icon{justify-content:center}.audit-chip--purple{background:#ede9fe;color:#6d28d9}.audit-chip--orange{background:#ffedd5;color:#c2410c}.audit-actionText{color:#111827;font-size:12px;line-height:1.35}.audit-seeMore{background:#0000;border:0;color:#6d28d9;cursor:pointer;font-size:12px;font-weight:400;margin-left:4px;padding:0}.audit-dateCell{color:#101828;font-family:Inter;text-align:center}.audit-emptyState{align-items:center;color:#64748b;display:flex;flex-direction:column;height:300px;justify-content:center;text-align:center}.audit-emptyTitle{font-size:16px;font-weight:600;margin-top:8px}.audit-emptyDesc{font-size:13px;margin-top:4px}.audit-skeletonRow{display:flex;gap:16px;padding:12px 0}.audit-operation-body{align-items:center;display:flex;justify-content:center}.audit-logIdBody{margin:0 auto;max-width:180px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.audit-table .p-datatable-tbody>tr.audit-row--clickable{cursor:pointer}.audit-table .p-datatable-tbody>tr.p-datatable-row-expansion>td{background:#fff;padding:0}.audit-rowDetail{background:#fff;border-top:1px solid #eef2f7;padding:16px 20px}.log-toolbar{align-items:center;display:flex;gap:16px;width:100%}.log-filterFooter{border-top:1px solid #eee;padding:16px 20px}.log-toolbar__search{flex:1;position:relative}.log-toolbar__search input{border:1px solid #e5e7eb;border-radius:8px;color:#6b7280;font-family:Inter;font-size:14px;font-weight:500;height:40px;padding:0 14px 0 42px;width:100%}.log-toolbar__search input:focus{border-color:#cbd5e1;outline:none}.log-toolbar__search-icon{color:#6b7280;left:14px;position:absolute;top:50%;transform:translateY(-50%)}.log-toolbar__actions{display:flex;gap:12px}.log-toolbar__btn{align-items:center;background:#fff;border:1px solid #e5e7eb;border-radius:8px;color:#6b7280;cursor:pointer;display:flex;font-size:14px;gap:8px;height:40px;padding:0 18px;transition:.2s ease}.log-toolbar__btn:hover{background:#f8fafc;border-color:#dbe3ef}.log-toolbar__sort{position:relative}.log-toolbar__dropdown{background:#fff;border:1px solid #e5e7eb;border-radius:8px;box-shadow:0 12px 24px #0000001f;min-width:260px;overflow:hidden;padding:6px;position:absolute;right:0;top:52px;z-index:99}.log-toolbar__dropdown button{background:#fff;border:none;border-radius:8px;cursor:pointer;font-size:14px;margin:2px;padding:5px 15px;text-align:left;width:100%}.log-toolbar__dropdown button:hover{background:#f3f4f6}.log-toolbar__dropdown--active{background:#f5f3ff!important;color:#7c3aed}.log-toolbar_list:hover{background:#f5f5f5}.log-toolbar__btn--active{border:1px solid #6d28d9;color:#6d28d9}.log-toolbar__btn--active svg{color:#6d28d9}.drs{position:relative}.drs__trigger{align-items:center;background:#fff;border:1px solid #e5e7eb;border-radius:8px;color:#475569;cursor:pointer;display:inline-flex;font-size:14px;gap:10px;height:40px;padding:0 18px;transition:.2s ease}.drs__trigger:hover{background:#f8fafc;border-color:#dbe3ef}.drs__label{color:#6b7280;font-family:Inter;font-size:14px}.drs__popover{background:#fff;border:1px solid #e5e7eb;border-radius:16px;box-shadow:0 16px 40px #00000024;position:absolute;right:0;top:60px;width:340px;z-index:9999}.drs__header{align-items:center;display:flex;justify-content:space-between;padding:16px 16px 10px}.drs__month{color:#1e293b;display:flex;font-family:Inter,sans-serif;font-size:17px;font-weight:700;gap:5px}.drs__month-click,.drs__year-click{border-radius:4px;cursor:pointer;padding:1px 4px;transition:background-color .15s ease}.drs__month-click:hover,.drs__year-click:hover{background:#f1f5f9;color:#635ae3}.drs__nav{align-items:center;background:#fff;border:1px solid #e5e7eb;border-radius:8px;color:#64748b;cursor:pointer;display:inline-flex;height:34px;justify-content:center;width:34px}.drs__nav:hover{background:#f8fafc;color:#1e293b}.drs__inputs{gap:8px;padding:0 16px 12px}.drs__input-box,.drs__inputs{align-items:center;display:flex}.drs__input-box{background:#f8fafc;border:1px solid #e2e8f0;border-radius:8px;color:#1e293b;flex:1;font-family:Inter,sans-serif;font-size:13px;font-weight:500;height:36px;padding:0 10px;transition:border-color .15s ease}.drs__input-box.is-active{background:#fff;border-color:#635ae3}.drs__input-placeholder{color:#94a3b8;font-weight:400}.drs__input-sep{color:#94a3b8;font-size:16px}.drs__week{display:grid;grid-template-columns:repeat(7,1fr);padding:0 8px 4px}.drs__weekday{color:#94a3b8;font-family:Inter,sans-serif;font-size:12px;font-weight:600;padding:4px 0;text-align:center}.drs__grid{display:grid;grid-template-columns:repeat(7,1fr);padding:0 8px 12px;row-gap:2px}.drs__day{align-items:center;background:#0000;border:none;color:#0f172a;cursor:pointer;display:flex;font-family:Inter,sans-serif;font-size:14px;font-weight:400;height:36px;justify-content:center;padding:0;position:relative;width:100%}.drs__day.is-disabled{cursor:not-allowed;opacity:.4;pointer-events:none}.drs__day-inner{align-items:center;border-radius:50%;display:flex;height:34px;justify-content:center;position:relative;transition:background-color .12s ease;width:34px;z-index:1}.drs__day:hover:not(.is-start):not(.is-end) .drs__day-inner{background:#f1f5f9}.drs__day.is-out{color:#cbd5e1}.drs__day.is-range-start:before,.drs__day.is-range:before{background:#635ae30f;content:"";inset:1px 0;position:absolute;z-index:0}.drs__day.is-range-start:before{left:50%}.drs__day.is-range-end:before{background:#635ae30f;content:"";inset:1px 0;position:absolute;right:50%;z-index:0}.drs__day.is-row-first:before{border-radius:50% 0 0 50%}.drs__day.is-row-last:before{border-radius:0 50% 50% 0}.drs__day.is-end .drs__day-inner,.drs__day.is-start .drs__day-inner{background:#635ae3;color:#fff;font-weight:600}.drs__day.is-end:hover .drs__day-inner,.drs__day.is-start:hover .drs__day-inner{background:#4f46d8}.drs__month-grid{display:grid;gap:8px;grid-template-columns:repeat(3,1fr);padding:8px 16px 16px}.drs__month-cell{background:#fff;border:1px solid #e5e7eb;border-radius:8px;color:#1e293b;cursor:pointer;font-family:Inter,sans-serif;font-size:14px;font-weight:500;height:44px}.drs__month-cell:hover{background:#f1f5f9}.drs__month-cell.is-selected{background:#635ae3;border-color:#635ae3;color:#fff}.drs__year-grid{display:grid;gap:8px;grid-template-columns:repeat(4,1fr);padding:8px 16px 16px}.drs__year-cell{background:#fff;border:1px solid #e5e7eb;border-radius:8px;color:#1e293b;cursor:pointer;font-family:Inter,sans-serif;font-size:13px;font-weight:500;height:44px;transition:background-color .15s ease}.drs__year-cell:hover{background:#f1f5f9}.drs__year-cell.is-selected{background:#635ae3;border-color:#635ae3;color:#fff}.drs__footer{border-top:1px solid #eef2f7;display:flex;gap:10px;justify-content:flex-end;padding:12px 16px}.drs__btn{border:1px solid #0000;border-radius:10px;cursor:pointer;font-family:Inter,sans-serif;font-size:14px;font-weight:600;height:40px;padding:0 20px}.drs__btn--ghost{background:#fff;border-color:#e5e7eb;color:#475569}.drs__btn--ghost:hover{background:#f8fafc}.drs__btn--primary{background:#635ae3;color:#fff}.drs__btn--primary:hover{background:#4f46d8}.drs__btn--primary:disabled{cursor:not-allowed;opacity:.45}.audit-filterBlock .date-range-wrapper,.audit-filterControl{width:100%}.log-filterSidebar{width:400px}.log-filterTitle{color:#334155;font-family:Inter;font-size:18px;font-weight:600}.log-filterBody{display:flex;flex-direction:column;gap:16px}.log-filterBlock .log-filterLabel{color:#334155;font-family:Inter;font-size:14px;font-weight:600}.log-filterHint{color:#64748b;font-family:Inter;font-size:12px;font-weight:500;line-height:130%;margin-top:4px}.log-filterFooter{background:#fff;bottom:0;display:flex;gap:10px;justify-content:flex-end;left:0;padding:12px 16px;position:absolute;right:0}.log-btnReset{background:#fff;border:1px solid #e2e8f0;color:#64748b}.log-btnApply,.log-btnReset{border-radius:6px;font-family:Inter;font-size:14px;font-weight:500;padding:8px 11px}.log-btnApply{background:#2563eb;color:#fff}.log-filter-date .drs__trigger{margin-top:12px;width:100%}.log-filterEmpty{background:#f8fafc;border:1px dashed #e2e8f0;border-radius:6px;color:#94a3b8;font-family:Inter;font-size:13px;font-weight:500;padding:10px 12px;text-align:center}.cms-root{position:relative;width:100%}.cms-trigger{align-items:center;background:#fff;border:1px solid #e5e7eb;border-radius:6px;cursor:pointer;display:flex;height:40px;justify-content:space-between;padding:0 18px;width:100%}.cms-trigger:hover{background:#f8fafc;border-color:#dbe3ef}.cms-triggerText{color:#6b7280;font-family:Inter;font-size:14px}.cms-hasValue{color:#334155}.cms-chevron{color:#64748b}.cms-panel{background:#fff;border:1px solid #e2e8f0;border-radius:10px;box-shadow:0 8px 24px #1018281f;left:0;padding:10px;position:absolute;right:0;top:calc(100% + 8px);z-index:9999}.cms-searchRow{align-items:center;border:1px solid #e2e8f0;border-radius:8px;color:#64748b;display:flex;gap:10px;height:40px;padding:0 12px}.cms-searchInput{border:none;color:#334155;font-family:Inter;font-size:14px;outline:none;width:100%}.cms-divider{background:#e2e8f0;height:1px;margin:10px 0}.cms-list{display:flex;flex-direction:column;gap:2px;max-height:220px;overflow:auto}.cms-item{align-items:center;border-radius:8px;cursor:pointer;display:flex;gap:10px;min-height:30px;padding:0 8px}.cms-item:hover{background:#f8fafc}.cms-checkbox{align-items:center;border:1px solid #cbd5e1;border-radius:4px;color:#fff;display:inline-flex;font-size:13px;height:16px;justify-content:center;width:16px}.cms-checked{background:#2563eb;border-color:#2563eb}.cms-itemText{color:#334155;font-family:Inter;font-size:14px}.AuditLogPanel-module_overlay__mnfs5{background-color:#0003;bottom:0;left:0;position:fixed;right:0;top:0;z-index:9998}.AuditLogPanel-module_panel__btKWo{background-color:#fff;box-shadow:-4px 0 20px #0000001a;display:flex;flex-direction:column;height:100vh;max-width:100vw;position:fixed;right:0;top:0;transition:transform .3s ease;width:480px;z-index:9999}.AuditLogPanel-module_panelOpen__Tj0EH{transform:translateX(0)}.AuditLogPanel-module_panelClosed__2nUTn{transform:translateX(100%)}.AuditLogPanel-module_header__4Ld8n{align-items:flex-start;border-bottom:1px solid #e2e8f0;display:flex;justify-content:space-between;padding:20px 24px}.AuditLogPanel-module_title__YkOer{color:#0f172a;font-size:18px;font-weight:600;margin:0}.AuditLogPanel-module_subtitle__NHQxF{color:#64748b;font-size:13px;margin:4px 0 0}.AuditLogPanel-module_closeBtn__9Raqs{align-items:center;background:none;border:none;color:#64748b;cursor:pointer;display:flex;justify-content:center;padding:4px}.AuditLogPanel-module_scrollArea__QVsJl{flex:1;overflow-y:auto;padding:24px}.AuditLogPanel-module_emptyState__ZqwuX{color:#64748b;margin-top:40px;text-align:center}.AuditLogPanel-module_compCard__KiH-p{background-color:#fff;border:1px solid #e2e8f0;border-radius:8px;margin-bottom:16px}.AuditLogPanel-module_compHeader__R5tvd{align-items:center;cursor:pointer;display:flex;justify-content:space-between;padding:12px 16px;user-select:none}.AuditLogPanel-module_compTitle__Y4FIG{color:#0f172a;font-size:14px;font-weight:600}.AuditLogPanel-module_compIcon__gYnr7{align-items:center;color:#475569;display:flex}.AuditLogPanel-module_compBody__hEdrH{border-top:1px solid #f1f5f9;display:flex;flex-direction:column;gap:12px;padding:16px}.AuditLogPanel-module_compSectionLabel__2Lm4E{color:#475569;font-size:12px;font-weight:600;margin-bottom:6px}.AuditLogPanel-module_compLatestText__jpMml{background-color:#f0fdf4;border:1px solid #dcfce7;border-radius:6px;color:#166534;font-size:13px;padding:12px}.AuditLogPanel-module_compOriginalText__FcXep{background-color:#f8fafc;border:1px solid #f1f5f9;border-radius:6px;color:#64748b;font-size:13px;padding:12px}.AuditLogPanel-module_itemWrapper__uucps{border-bottom:1px solid #e2e8f0}.AuditLogPanel-module_itemHeader__JueVB{align-items:center;background-color:initial;display:flex;justify-content:space-between;padding:16px 0}.AuditLogPanel-module_itemHeaderClickable__wzqVP{cursor:pointer}.AuditLogPanel-module_itemHeaderDefault__SH2oI{cursor:default}.AuditLogPanel-module_itemLeft__2LBs1{align-items:flex-start;display:flex;gap:12px}.AuditLogPanel-module_itemIconWrapper__LE0QA{align-items:center;border-radius:50%;display:flex;flex-shrink:0;height:32px;justify-content:center;width:32px}.AuditLogPanel-module_itemTitle__sDycO{color:#0f172a;font-size:14px;font-weight:600}.AuditLogPanel-module_itemSubtitle__Y7fME{color:#64748b;font-size:12px;margin-top:2px}.AuditLogPanel-module_itemRight__AalDS{align-items:center;display:flex;gap:12px}.AuditLogPanel-module_itemTimestamp__ooTn5{color:#64748b;font-size:12px}.AuditLogPanel-module_itemChevron__-wnQo{align-items:center;border-radius:50%;display:flex;padding:4px;transition:background-color .2s ease}.AuditLogPanel-module_itemExpanded__ZUp8c{display:flex;flex-direction:column;gap:16px;padding-bottom:20px;padding-left:44px}.AuditLogPanel-module_tagsChip__m3AM5{align-items:center;background-color:#f1f5f9;border-radius:12px;color:#475569;display:inline-flex;flex-wrap:wrap;font-size:12px;font-weight:500;gap:6px;padding:4px 12px}.AuditLogPanel-module_tagSeparator__Kxa4w{color:#94a3b8;font-size:14px}.AuditLogPanel-module_impactContainer__v16Y0{border:1px solid #e2e8f0;border-radius:8px;display:flex;flex-direction:column;gap:16px;padding:16px}.AuditLogPanel-module_impactHeader__ggNw-{align-items:center;display:flex;gap:8px;margin-bottom:8px}.AuditLogPanel-module_impactLabel__FOmPT{color:#0f172a;font-size:13px;font-weight:600}.AuditLogPanel-module_impactDescription__5wja1{color:#475569;font-size:13px;line-height:1.5;margin-top:8px}.AuditLogPanel-module_severityBadge__-sPO7{border-radius:12px;font-size:11px;font-weight:500;padding:2px 8px}.AuditLogPanel-module_severityHigh__e--68{background-color:#fee2e2;color:#991b1b}.AuditLogPanel-module_severityOther__m-OrS{background-color:#f1f5f9;color:#475569}.AuditLogPanel-module_divider__td5ot{background-color:#e2e8f0;height:1px}.AuditLogPanel-module_contentBlock__7sjMa{display:flex;flex-direction:column;gap:6px}.AuditLogPanel-module_contentBlockLabel__v8g5e{color:#0f172a;font-size:13px;font-weight:600}.AuditLogPanel-module_contentBlockText__dfcpm{background-color:#f8fafc;border:1px solid #f1f5f9;border-radius:6px;color:#475569;font-size:13px;padding:12px}.AuditLogPanel-module_markdown__7r3Qt{margin:0;white-space:pre-wrap;word-break:break-word}.AuditLogPanel-module_markdown__7r3Qt p{display:inline;margin:0}.AuditLogPanel-module_truncateContainer__ajjKt{align-items:flex-start;display:flex;flex-direction:column;position:relative;width:100%}.AuditLogPanel-module_truncateText__1F-7K{-webkit-box-orient:vertical;color:inherit;display:-webkit-box;line-height:1.5;overflow:hidden;width:100%}.AuditLogPanel-module_truncateExpandedScrollable__txaww{display:block!important;overflow-y:auto;padding-right:6px}.AuditLogPanel-module_truncateExpandedScrollable__txaww::-webkit-scrollbar{width:4px}.AuditLogPanel-module_truncateExpandedScrollable__txaww::-webkit-scrollbar-track{background:#f1f5f9;border-radius:4px}.AuditLogPanel-module_truncateExpandedScrollable__txaww::-webkit-scrollbar-thumb{background:#cbd5e1;border-radius:4px}.AuditLogPanel-module_truncateExpandedScrollable__txaww::-webkit-scrollbar-thumb:hover{background:#94a3b8}.AuditLogPanel-module_toggleBtn__rfU8F{background:none;border:none;color:#2563eb;cursor:pointer;font-size:13px;font-style:italic;font-weight:500;margin-top:6px;padding:0}.AuditLogPanel-module_filterSection__b-3av{border-bottom:1px solid #e2e8f0;display:flex;flex-direction:column;gap:12px;margin-bottom:16px;padding:16px 0}.AuditLogPanel-module_filterGrid__IGB8-{align-items:flex-end;display:grid;gap:12px;grid-template-columns:repeat(auto-fit,minmax(140px,1fr))}.AuditLogPanel-module_filterItem__rg6ci{display:flex;flex-direction:column;gap:4px}.AuditLogPanel-module_filterLabel__5V4QY{color:#475569}.AuditLogPanel-module_filterInput__CvuQ5,.AuditLogPanel-module_filterSelect__1mD44{background-color:#fff}.AuditLogPanel-module_dateRangeGroup__TGqpn{align-items:center;display:flex;gap:6px}.AuditLogPanel-module_filterHeader__YpEH-{align-items:center;cursor:pointer;display:flex;justify-content:space-between;margin-bottom:8px;user-select:none}.AuditLogPanel-module_filterHeaderLeft__2IvKC{align-items:center;color:#475569;display:flex;font-size:13px;font-weight:600;gap:8px}.AuditLogPanel-module_activeBadge__irk0W{background-color:#2563eb;border-radius:12px;color:#fff;font-size:11px;font-weight:700;padding:2px 8px}.AuditLogPanel-module_clearBtn__sRfO0{background:none;border:none;color:#dc2626;cursor:pointer;font-size:11px;margin-left:8px;padding:0 4px;text-decoration:underline}.AuditLogPanel-module_filterPopupWrapper__jBPyK{display:flex;justify-content:flex-end;margin-bottom:16px;position:relative}.AuditLogPanel-module_filterTriggerBtn__yL7ko{align-items:center;background:#fff;border:1px solid #cbd5e1;border-radius:6px;box-shadow:0 1px 2px #0000000d;color:#0f172a;cursor:pointer;display:flex;font-size:13px;font-weight:600;gap:8px;padding:8px 16px;transition:all .2s}.AuditLogPanel-module_filterTriggerBtn__yL7ko:hover{background:#f8fafc;border-color:#94a3b8}.AuditLogPanel-module_filterPopupContent__inbJs{background:#fff;border:1px solid #e2e8f0;border-radius:8px;box-shadow:0 10px 25px -5px #0000001a;margin-top:8px;max-height:70vh;overflow-y:auto;padding:16px;position:absolute;right:0;top:100%;width:340px;z-index:100}.AuditLogPanel-module_filterHint__n0Udq{color:#64748b;line-height:1.3;margin-bottom:4px}.AuditLogPanel-module_multiSelectGroup__ZQU0e{background:#f8fafc;border:1px solid #e2e8f0;border-radius:6px;display:flex;flex-direction:column;gap:8px;max-height:120px;overflow-y:auto;padding:10px}.AuditLogPanel-module_checkboxItem__-Rwa1{align-items:center;color:#334155;cursor:pointer;display:flex;font-size:13px;gap:8px}.AuditLogPanel-module_rangeGroup__x-K5-{align-items:center;display:flex;gap:8px}.AuditLogPanel-module_rangeInput__hydGj{border:1px solid #cbd5e1;border-radius:6px;font-size:13px;padding:8px 10px;width:100%}.AuditLogPanel-module_filterFooter__21RHT{align-items:center;border-top:1px dashed #e2e8f0;display:flex;gap:12px;justify-content:flex-end;margin-top:16px;padding-top:12px}.AuditLogPanel-module_applyBtn__SsGu2{background-color:#2563eb;border:none;border-radius:6px;color:#fff;cursor:pointer;font-size:13px;font-weight:600;padding:8px 16px;transition:background-color .2s}.AuditLogPanel-module_applyBtn__SsGu2:hover{background-color:#1d4ed8}.AuditLogPanel-module_skeletonPulse__Jqdac{animation:AuditLogPanel-module_pulse__SFUMS 1.5s cubic-bezier(.4,0,.6,1) infinite}@keyframes AuditLogPanel-module_pulse__SFUMS{0%,to{opacity:1}50%{opacity:.5}}.AuditLogPanel-module_loadingText__M41Xb{color:#64748b;font-size:13px;font-style:italic;padding:16px;text-align:center}.AuditLogPanel-module_skeletonBase__1JdeF{background-color:#e2e8f0;border-radius:4px}.AuditLogPanel-module_skeletonCircle__LHVyi{border-radius:50%;flex-shrink:0;height:32px;width:32px}.AuditLogPanel-module_skeletonLinePrimary__54f-f{height:14px;margin-bottom:6px;width:140px}.AuditLogPanel-module_skeletonLineSecondary__stC65{height:12px;width:90px}.AuditLogPanel-module_skeletonLineTimestamp__E-9In{height:12px;width:60px}.AuditLogPanel-module_iconTriggerBtn__Cu-XV{align-items:center;background:#0000;border:none;border-radius:6px;color:#64748b;cursor:pointer;display:flex;height:32px;justify-content:center;position:relative;transition:all .2s;width:32px}.AuditLogPanel-module_iconTriggerBtn__Cu-XV:hover{background:#f1f5f9;color:#0f172a}.AuditLogPanel-module_iconTriggerBadge__rokhX{align-items:center;background:#2563eb;border:2px solid #fff;border-radius:12px;color:#fff;display:flex;font-size:10px;font-weight:700;height:16px;justify-content:center;min-width:16px;padding:0 4px;position:absolute;right:-4px;top:-4px}.AuditLogPanel-module_modalBackdrop__IJAuf{align-items:center;backdrop-filter:blur(3px);background-color:#0f172a80;bottom:0;display:flex;justify-content:center;left:0;padding:20px;position:fixed;right:0;top:0;z-index:9999}.AuditLogPanel-module_modalContainer__zRPuE{background:#fff;border-radius:12px;box-shadow:0 25px 50px -12px #00000040;display:flex;flex-direction:column;max-height:90vh;max-width:600px;overflow:hidden;width:100%}.AuditLogPanel-module_modalHeader__CR8rf{align-items:center;border-bottom:1px solid #e2e8f0;display:flex;justify-content:space-between;padding:16px 20px}.AuditLogPanel-module_modalTitle__EwALY{align-items:center;color:#0f172a;display:flex;font-size:15px;font-weight:600;gap:8px;margin:0}.AuditLogPanel-module_modalClose__3XGih{background:#0000;border:none;border-radius:4px;color:#64748b;cursor:pointer;display:flex;padding:4px;transition:background .2s}.AuditLogPanel-module_modalClose__3XGih:hover{background:#f1f5f9;color:#0f172a}.AuditLogPanel-module_modalBody__Fn2Xb{flex:1;overflow-y:auto;padding:20px}.AuditLogPanel-module_modalFooter__1vn3I{background:#f8fafc;border-top:1px solid #e2e8f0;display:flex;gap:12px;justify-content:flex-end;padding:16px 20px}.AuditLogPanel-module_accordionContainer__92rQR{background:#fff;border:1px solid #e2e8f0;border-radius:8px;display:flex;flex-direction:column;margin:0 16px 16px;max-height:60vh;overflow:hidden}.AuditLogPanel-module_accordionHeader__fBYZr{align-items:center;background:#fff;border-bottom:1px solid #0000;cursor:pointer;display:flex;justify-content:space-between;padding:12px 16px;user-select:none;z-index:45}.AuditLogPanel-module_accordionHeaderExpanded__R82zY{border-bottom-color:#e2e8f0}.AuditLogPanel-module_accordionTitle__SfXdv{align-items:center;color:#0f172a;display:flex;font-size:13px;font-weight:600;gap:8px}.AuditLogPanel-module_accordionContentWrapper__WJ6ZE{display:flex;flex:1;flex-direction:column;overflow:hidden}.AuditLogPanel-module_accordionBody__MBU1x{flex:1;overflow-y:auto;padding:16px}.AuditLogPanel-module_accordionFooter__jBIof{background:#f8fafc;border-top:1px solid #e2e8f0;display:flex;gap:12px;justify-content:flex-end;padding:12px 16px}.AuditLogPanel-module_filterFormGrid__QoLKp{display:grid;gap:24px;grid-template-columns:repeat(auto-fill,minmax(200px,1fr))}.AuditLogPanel-module_filterField__-UAtF{display:flex;flex-direction:column;gap:8px}.AuditLogPanel-module_filterLabel__5V4QY{color:#334155;font-size:12px;font-weight:600;letter-spacing:.5px}.AuditLogPanel-module_filterHint__n0Udq{color:#94a3b8;font-size:11px}.AuditLogPanel-module_inputWrapper__WrBnR{position:relative}.AuditLogPanel-module_inputIcon__cOOa8{color:#94a3b8;left:10px;position:absolute;top:50%;transform:translateY(-50%)}.AuditLogPanel-module_filterInput__CvuQ5,.AuditLogPanel-module_filterSelect__1mD44{background:#fff;border:1px solid #cbd5e1;border-radius:6px;box-shadow:0 1px 2px #00000005;box-sizing:border-box;color:#0f172a;font-size:13px;outline:none;padding:8px 12px;transition:border-color .2s;width:100%}.AuditLogPanel-module_filterInput__CvuQ5:focus,.AuditLogPanel-module_filterSelect__1mD44:focus{border-color:#2563eb}.AuditLogPanel-module_filterInputWithIcon__o5dTT{padding-left:32px}.AuditLogPanel-module_btnSecondary__s9Ts7{background:#f8fafc;border:1px solid #cbd5e1;border-radius:8px;box-shadow:0 1px 2px #0000000d;color:#475569;cursor:pointer;font-size:13px;font-weight:600;padding:8px 20px;transition:background .2s}.AuditLogPanel-module_btnSecondary__s9Ts7:hover{background:#f1f5f9}.AuditLogPanel-module_btnPrimary__l1zRY{background:linear-gradient(135deg,#2563eb,#1d4ed8);border:none;border-radius:8px;box-shadow:0 4px 12px #2563eb40;color:#fff;cursor:pointer;font-size:13px;font-weight:600;padding:8px 24px;transition:opacity .2s}.AuditLogPanel-module_btnPrimary__l1zRY:hover{opacity:.9}.lgfd__overlay{background:#0000;border:none;cursor:default;inset:0;padding:0;position:fixed;z-index:999}.lgfd__panel{background:#fff;border:1px solid #e5e7eb;border-radius:10px;box-shadow:0 8px 24px #0000001f;display:flex;flex-direction:column;max-height:520px;overflow:hidden;position:fixed;width:400px;z-index:1000}.lgfd__header{align-items:center;border-bottom:1px solid #f3f4f6;display:flex;flex-shrink:0;justify-content:space-between;padding:14px 16px 12px}.lgfd__title{color:#111827;font-size:14px;font-weight:600}.lgfd__closeBtn{background:none;border:none;border-radius:4px;color:#9ca3af;cursor:pointer;font-size:13px;line-height:1;padding:2px 6px;transition:background .1s,color .1s}.lgfd__closeBtn:hover{background:#f3f4f6;color:#374151}.lgfd__body{flex:1;overflow-y:auto}.lgfd__block{border-bottom:1px solid #f3f4f6;padding:14px 16px}.lgfd__block:last-child{border-bottom:none}.lgfd__label{color:#374151;font-size:13px;font-weight:600;margin-bottom:4px}.lgfd__hint{line-height:1.4}.lgfd__empty,.lgfd__hint{color:#9ca3af;font-size:12px}.lgfd__empty{padding:6px 0}.lgfd__footer{border-top:1px solid #e5e7eb;display:flex;flex-shrink:0;gap:8px;padding:12px 16px}.lgfd__resetBtn{background:#fff;border:1px solid #d1d5db;border-radius:6px;color:#374151;cursor:pointer;flex:1;font-size:13px;font-weight:500;padding:8px 12px;transition:background .1s}.lgfd__resetBtn:hover{background:#f9fafb}.lgfd__applyBtn{background:#7c3aed;border:none;border-radius:6px;color:#fff;cursor:pointer;flex:1;font-size:13px;font-weight:500;padding:8px 12px;transition:background .1s}.lgfd__applyBtn:hover{background:#6d28d9}.lgfd__actorSearch{align-items:center;display:flex;margin-bottom:6px;position:relative}.lgfd__actorInput{border:1px solid #d1d5db;border-radius:6px;box-sizing:border-box;color:#374151;font-size:13px;outline:none;padding:7px 32px 7px 10px;width:100%}.lgfd__actorInput:focus{border-color:#6b7280}.lgfd__actorSpinner{animation:lgfd-spin .6s linear infinite;border:2px solid #e5e7eb;border-radius:50%;border-top-color:#6b7280;height:14px;position:absolute;right:10px;width:14px}@keyframes lgfd-spin{to{transform:rotate(1turn)}}.lgfd__actorList{display:flex;flex-direction:column;gap:1px;max-height:128px;overflow-y:auto}.lgfd__actorItem{align-items:center;border-radius:5px;cursor:pointer;display:flex;gap:8px;padding:6px;user-select:none}.lgfd__actorItem:hover{background:#f9fafb}.lgfd__actorItem--checked{background:#f5f3ff}.lgfd__actorCheckbox{align-items:center;background:#fff;border:1.5px solid #d1d5db;border-radius:3px;color:#fff;display:flex;flex-shrink:0;font-size:10px;height:15px;justify-content:center;width:15px}.lgfd__actorCheckbox--checked{background:#7c3aed;border-color:#7c3aed}.lgfd__actorLabel{color:#374151;font-size:13px}
|
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { AuditLogPanelProps } from './
|
|
2
|
+
import { AuditLogPanelProps } from './AuditLogPanel.types';
|
|
3
|
+
import "primereact/resources/themes/lara-light-indigo/theme.css";
|
|
4
|
+
import "primereact/resources/primereact.min.css";
|
|
3
5
|
export declare const AuditLogPanel: React.FC<AuditLogPanelProps>;
|
|
4
6
|
//# sourceMappingURL=AuditLogPanel.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AuditLogPanel.d.ts","sourceRoot":"","sources":["../../../../src/components/AuditLogPanel/AuditLogPanel.tsx"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"AuditLogPanel.d.ts","sourceRoot":"","sources":["../../../../src/components/AuditLogPanel/AuditLogPanel.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAkB,MAAM,OAAO,CAAC;AAEvC,OAAO,EAAE,kBAAkB,EAAoB,MAAM,uBAAuB,CAAC;AAU7E,OAAO,yDAAyD,CAAC;AACjE,OAAO,yCAAyC,CAAC;AAGjD,eAAO,MAAM,aAAa,EAAE,KAAK,CAAC,EAAE,CAAC,kBAAkB,CAmKtD,CAAC"}
|
|
@@ -0,0 +1,208 @@
|
|
|
1
|
+
import { ReactNode, CSSProperties } from 'react';
|
|
2
|
+
export interface BaseStyleConfig {
|
|
3
|
+
className?: string;
|
|
4
|
+
style?: CSSProperties;
|
|
5
|
+
}
|
|
6
|
+
export interface TextTruncationConfig extends BaseStyleConfig {
|
|
7
|
+
enabled?: boolean;
|
|
8
|
+
lines?: number;
|
|
9
|
+
maxExpandedHeight?: string;
|
|
10
|
+
viewMoreLabel?: ReactNode;
|
|
11
|
+
viewLessLabel?: ReactNode;
|
|
12
|
+
}
|
|
13
|
+
export type RowClickHelpers = {
|
|
14
|
+
isExpanded: boolean;
|
|
15
|
+
expand: () => void;
|
|
16
|
+
collapse: () => void;
|
|
17
|
+
toggle: () => void;
|
|
18
|
+
};
|
|
19
|
+
export interface ApiEndpointConfig {
|
|
20
|
+
baseUrl: string;
|
|
21
|
+
endpoint: string;
|
|
22
|
+
configId?: string;
|
|
23
|
+
method?: 'GET' | 'POST';
|
|
24
|
+
baseQuery?: Record<string, any>;
|
|
25
|
+
headers?: Record<string, string>;
|
|
26
|
+
}
|
|
27
|
+
export interface IterationToneConfig {
|
|
28
|
+
tone: string;
|
|
29
|
+
style: string;
|
|
30
|
+
}
|
|
31
|
+
export interface LogContentBlock extends BaseStyleConfig {
|
|
32
|
+
label?: ReactNode;
|
|
33
|
+
content: string | ReactNode;
|
|
34
|
+
truncation?: TextTruncationConfig;
|
|
35
|
+
}
|
|
36
|
+
export interface ImpactConfig extends BaseStyleConfig {
|
|
37
|
+
label?: ReactNode;
|
|
38
|
+
severity?: ReactNode;
|
|
39
|
+
severityClassName?: string;
|
|
40
|
+
severityStyle?: CSSProperties;
|
|
41
|
+
description: string | ReactNode;
|
|
42
|
+
truncation?: TextTruncationConfig;
|
|
43
|
+
}
|
|
44
|
+
export interface AuditLogEntry extends BaseStyleConfig {
|
|
45
|
+
id: string | number;
|
|
46
|
+
actionType: string;
|
|
47
|
+
icon?: ReactNode;
|
|
48
|
+
iconBgColor?: string;
|
|
49
|
+
title: ReactNode;
|
|
50
|
+
subtitle?: ReactNode;
|
|
51
|
+
timestamp?: ReactNode;
|
|
52
|
+
iterationTone?: IterationToneConfig | ReactNode;
|
|
53
|
+
impact?: ImpactConfig;
|
|
54
|
+
contentBlocks?: LogContentBlock[];
|
|
55
|
+
isInitiallyExpanded?: boolean;
|
|
56
|
+
tags?: string[];
|
|
57
|
+
rawPayload?: any;
|
|
58
|
+
customExpandedContent?: ReactNode;
|
|
59
|
+
renderHeaderLeft?: () => ReactNode;
|
|
60
|
+
renderHeaderRight?: (isExpanded: boolean, helpers: RowClickHelpers) => ReactNode;
|
|
61
|
+
renderExpandedBody?: (helpers: RowClickHelpers) => ReactNode;
|
|
62
|
+
[key: string]: any;
|
|
63
|
+
}
|
|
64
|
+
export interface ComparisonContextData extends BaseStyleConfig {
|
|
65
|
+
title?: ReactNode;
|
|
66
|
+
latestTextLabel?: ReactNode;
|
|
67
|
+
originalTextLabel?: ReactNode;
|
|
68
|
+
latestText?: string | ReactNode;
|
|
69
|
+
originalText?: string | ReactNode;
|
|
70
|
+
isInitiallyExpanded?: boolean;
|
|
71
|
+
truncation?: TextTruncationConfig;
|
|
72
|
+
renderHeaderLeft?: () => ReactNode;
|
|
73
|
+
renderHeaderRight?: (isExpanded: boolean, helpers: RowClickHelpers) => ReactNode;
|
|
74
|
+
renderExpandedBody?: (helpers: RowClickHelpers) => ReactNode;
|
|
75
|
+
rawPayload?: any;
|
|
76
|
+
}
|
|
77
|
+
export type FilterType = 'text' | 'select' | 'multi-select' | 'date-range' | 'impact-range' | 'custom';
|
|
78
|
+
export interface FilterOption {
|
|
79
|
+
label: string;
|
|
80
|
+
value: any;
|
|
81
|
+
}
|
|
82
|
+
export interface FilterItemConfig extends BaseStyleConfig {
|
|
83
|
+
id: string;
|
|
84
|
+
type: FilterType;
|
|
85
|
+
label?: ReactNode;
|
|
86
|
+
hint?: ReactNode;
|
|
87
|
+
placeholder?: string;
|
|
88
|
+
options?: FilterOption[];
|
|
89
|
+
dynamicOptionKey?: string;
|
|
90
|
+
min?: number;
|
|
91
|
+
max?: number;
|
|
92
|
+
visible?: boolean;
|
|
93
|
+
renderCustomFilter?: (value: any, onChange: (newValue: any) => void) => ReactNode;
|
|
94
|
+
showSelectAll?: boolean;
|
|
95
|
+
}
|
|
96
|
+
export interface FilterToggleConfig {
|
|
97
|
+
showFilterButton?: boolean;
|
|
98
|
+
showSearch?: boolean;
|
|
99
|
+
showSort?: boolean;
|
|
100
|
+
showDateFilter?: boolean;
|
|
101
|
+
showAnalystFilter?: boolean;
|
|
102
|
+
showChangeTitleFilter?: boolean;
|
|
103
|
+
showImpactPercentage?: boolean;
|
|
104
|
+
sortOptions?: {
|
|
105
|
+
latest?: boolean;
|
|
106
|
+
oldest?: boolean;
|
|
107
|
+
impactHighToLow?: boolean;
|
|
108
|
+
impactLowToHigh?: boolean;
|
|
109
|
+
};
|
|
110
|
+
showApplyButton?: boolean;
|
|
111
|
+
}
|
|
112
|
+
export type FiltersProp = FilterItemConfig[] | {
|
|
113
|
+
config?: FilterToggleConfig;
|
|
114
|
+
items?: FilterItemConfig[];
|
|
115
|
+
labels?: FilterLabels;
|
|
116
|
+
impactRangeLimits: {
|
|
117
|
+
min: number;
|
|
118
|
+
max: number;
|
|
119
|
+
};
|
|
120
|
+
};
|
|
121
|
+
export interface AuditLogIcons {
|
|
122
|
+
close?: ReactNode;
|
|
123
|
+
chevronUp?: ReactNode;
|
|
124
|
+
chevronDown?: ReactNode;
|
|
125
|
+
actionTypes?: Record<string, ReactNode>;
|
|
126
|
+
}
|
|
127
|
+
export interface AuditLogPanelProps extends BaseStyleConfig {
|
|
128
|
+
isOpen: boolean;
|
|
129
|
+
onClose: () => void;
|
|
130
|
+
logs?: AuditLogEntry[];
|
|
131
|
+
getData?: ApiEndpointConfig;
|
|
132
|
+
distinctValuesApi?: ApiEndpointConfig;
|
|
133
|
+
loading?: boolean;
|
|
134
|
+
loadingMore?: boolean;
|
|
135
|
+
hasMore?: boolean;
|
|
136
|
+
onLoadMore?: () => void;
|
|
137
|
+
title?: ReactNode;
|
|
138
|
+
subtitle?: ReactNode;
|
|
139
|
+
emptyState?: ReactNode;
|
|
140
|
+
dataSourceMode?: 'external' | 'internal';
|
|
141
|
+
comparisonContext?: ComparisonContextData;
|
|
142
|
+
showComparisonCard?: boolean;
|
|
143
|
+
filters?: FiltersProp;
|
|
144
|
+
filterValues?: Record<string, any>;
|
|
145
|
+
onFilterChange?: (newValues: Record<string, any>) => void;
|
|
146
|
+
autoFilter?: boolean;
|
|
147
|
+
filterDisplayMode?: 'inline' | 'accordion' | 'popup';
|
|
148
|
+
showApplyButton?: boolean;
|
|
149
|
+
labels?: AuditLogLabels;
|
|
150
|
+
filterLabels?: FilterLabels;
|
|
151
|
+
onRowClick?: (log: AuditLogEntry, helpers: RowClickHelpers) => void;
|
|
152
|
+
itemConfig?: {
|
|
153
|
+
getTone?: (log: AuditLogEntry) => IterationToneConfig | undefined;
|
|
154
|
+
getIcon?: (log: AuditLogEntry) => ReactNode | undefined;
|
|
155
|
+
getIconBg?: (log: AuditLogEntry) => string | undefined;
|
|
156
|
+
getStyle?: (log: AuditLogEntry) => CSSProperties | undefined;
|
|
157
|
+
};
|
|
158
|
+
renderCustomFilterSection?: () => ReactNode;
|
|
159
|
+
renderHeaderControls?: () => ReactNode;
|
|
160
|
+
renderCustomLogEntry?: (log: AuditLogEntry, index: number) => ReactNode;
|
|
161
|
+
renderItemHeaderLeft?: (log: AuditLogEntry) => ReactNode;
|
|
162
|
+
renderItemHeaderRight?: (log: AuditLogEntry, isExpanded: boolean, helpers: RowClickHelpers) => ReactNode;
|
|
163
|
+
renderItemExpandedBody?: (log: AuditLogEntry, helpers: RowClickHelpers) => ReactNode;
|
|
164
|
+
globalIcons?: AuditLogIcons;
|
|
165
|
+
classNames?: Record<string, string>;
|
|
166
|
+
styles?: Record<string, CSSProperties>;
|
|
167
|
+
query?: {
|
|
168
|
+
externalResourceId?: string[];
|
|
169
|
+
paginationLimit?: number;
|
|
170
|
+
};
|
|
171
|
+
truncationConfig?: TextTruncationConfig;
|
|
172
|
+
}
|
|
173
|
+
export interface FilterLabels {
|
|
174
|
+
title?: ReactNode;
|
|
175
|
+
applyBtn?: ReactNode;
|
|
176
|
+
clearBtn?: ReactNode;
|
|
177
|
+
selectAll?: string;
|
|
178
|
+
searchLabel?: string;
|
|
179
|
+
searchPlaceholder?: string;
|
|
180
|
+
searchHint?: ReactNode;
|
|
181
|
+
sortLabel?: string;
|
|
182
|
+
sortHint?: ReactNode;
|
|
183
|
+
sortLatestFirst?: string;
|
|
184
|
+
sortOldestFirst?: string;
|
|
185
|
+
sortImpactHighToLow?: string;
|
|
186
|
+
sortImpactLowToHigh?: string;
|
|
187
|
+
multiSelectLabel?: string;
|
|
188
|
+
analystsHint?: ReactNode;
|
|
189
|
+
changeTitleLabel?: string;
|
|
190
|
+
changeTitleHint?: ReactNode;
|
|
191
|
+
dateLabel?: string;
|
|
192
|
+
dateHint?: ReactNode;
|
|
193
|
+
impactPercentageTitle?: string;
|
|
194
|
+
impactHintLabel?: ReactNode;
|
|
195
|
+
minPlaceholder?: string;
|
|
196
|
+
maxPlaceholder?: string;
|
|
197
|
+
}
|
|
198
|
+
export interface AuditLogLabels {
|
|
199
|
+
loadingMore?: ReactNode;
|
|
200
|
+
emptyState?: ReactNode;
|
|
201
|
+
impactSectionTitle?: string;
|
|
202
|
+
changedToSuffix?: string;
|
|
203
|
+
fromSuffix?: string;
|
|
204
|
+
comparisonTitle?: ReactNode;
|
|
205
|
+
comparisonLatestLabel?: ReactNode;
|
|
206
|
+
comparisonOriginalLabel?: ReactNode;
|
|
207
|
+
}
|
|
208
|
+
//# sourceMappingURL=AuditLogPanel.types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AuditLogPanel.types.d.ts","sourceRoot":"","sources":["../../../../src/components/AuditLogPanel/AuditLogPanel.types.ts"],"names":[],"mappings":"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"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { AuditLogEntry, AuditLogIcons, RowClickHelpers } from './AuditLogPanel.types';
|
|
3
|
+
export declare const DEFAULT_ACTION_CONFIGS: Record<string, {
|
|
4
|
+
icon: React.ReactNode;
|
|
5
|
+
bg: string;
|
|
6
|
+
}>;
|
|
7
|
+
export declare const AuditLogItem: ({ log, globalIcons, globalClasses, globalStyles, renderItemHeaderLeft, renderItemHeaderRight, renderItemExpandedBody, onRowClick, itemConfig }: {
|
|
8
|
+
log: AuditLogEntry;
|
|
9
|
+
globalIcons?: AuditLogIcons | undefined;
|
|
10
|
+
globalClasses?: Record<string, string> | undefined;
|
|
11
|
+
globalStyles?: Record<string, React.CSSProperties> | undefined;
|
|
12
|
+
renderItemHeaderLeft?: ((log: AuditLogEntry) => React.ReactNode) | undefined;
|
|
13
|
+
renderItemHeaderRight?: ((log: AuditLogEntry, isExpanded: boolean, helpers: RowClickHelpers) => React.ReactNode) | undefined;
|
|
14
|
+
renderItemExpandedBody?: ((log: AuditLogEntry, helpers: RowClickHelpers) => React.ReactNode) | undefined;
|
|
15
|
+
onRowClick?: ((log: AuditLogEntry, helpers: RowClickHelpers) => void) | undefined;
|
|
16
|
+
itemConfig?: any;
|
|
17
|
+
}) => import("react/jsx-runtime").JSX.Element;
|
|
18
|
+
//# sourceMappingURL=AuditLogPanelItem.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AuditLogPanelItem.d.ts","sourceRoot":"","sources":["../../../../src/components/AuditLogPanel/AuditLogPanelItem.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAmB,MAAM,OAAO,CAAC;AAKxC,OAAO,EAAE,aAAa,EAAE,aAAa,EAAE,eAAe,EAAE,MAAM,uBAAuB,CAAC;AAKtF,eAAO,MAAM,sBAAsB,EAAE,MAAM,CAAC,MAAM,EAAE;IAAE,IAAI,EAAE,KAAK,CAAC,SAAS,CAAC;IAAC,EAAE,EAAE,MAAM,CAAA;CAAE,CAUxF,CAAC;AAeF,eAAO,MAAM,YAAY;SAKlB,aAAa;;;;kCAEW,aAAa,KAAK,MAAM,SAAS;mCAChC,aAAa,cAAc,OAAO,WAAW,eAAe,KAAK,MAAM,SAAS;oCAC/E,aAAa,WAAW,eAAe,KAAK,MAAM,SAAS;wBACvE,aAAa,WAAW,eAAe,KAAK,IAAI;iBACtD,GAAG;6CAiJjB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AuditLogSandBox.d.ts","sourceRoot":"","sources":["../../../../src/components/AuditLogPanel/AuditLogSandBox.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"AuditLogSandBox.d.ts","sourceRoot":"","sources":["../../../../src/components/AuditLogPanel/AuditLogSandBox.tsx"],"names":[],"mappings":"AA+EA,eAAO,MAAM,eAAe,+CAiR3B,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import {
|
|
2
|
+
import { TextTruncationConfig } from './AuditLogPanel.types';
|
|
3
3
|
export declare const MarkdownRenderer: ({ content }: {
|
|
4
4
|
content: string;
|
|
5
5
|
}) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -8,7 +8,7 @@ export declare const SmartContent: ({ content }: {
|
|
|
8
8
|
}) => import("react/jsx-runtime").JSX.Element;
|
|
9
9
|
export declare const TruncatedText: ({ content, config, globalClasses, globalStyles }: {
|
|
10
10
|
content: string | React.ReactNode;
|
|
11
|
-
config?:
|
|
11
|
+
config?: TextTruncationConfig | undefined;
|
|
12
12
|
globalClasses?: Record<string, string> | undefined;
|
|
13
13
|
globalStyles?: Record<string, React.CSSProperties> | undefined;
|
|
14
14
|
}) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CommonUI.d.ts","sourceRoot":"","sources":["../../../../src/components/AuditLogPanel/CommonUI.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAsC,MAAM,OAAO,CAAC;AAG3D,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"CommonUI.d.ts","sourceRoot":"","sources":["../../../../src/components/AuditLogPanel/CommonUI.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAsC,MAAM,OAAO,CAAC;AAG3D,OAAO,EAAE,oBAAoB,EAAE,MAAM,uBAAuB,CAAC;AAE7D,eAAO,MAAM,gBAAgB;aAA4B,MAAM;6CAE9D,CAAC;AAEF,eAAO,MAAM,YAAY;aAA4B,MAAM,GAAG,MAAM,SAAS;6CAG5E,CAAC;AAEF,eAAO,MAAM,aAAa;aAGf,MAAM,GAAG,MAAM,SAAS;;;;6CAoDlC,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { ComparisonContextData, AuditLogIcons } from './
|
|
2
|
+
import { ComparisonContextData, AuditLogIcons } from './AuditLogPanel.types';
|
|
3
3
|
export declare const ComparisonSummaryCard: ({ data, globalClasses, globalStyles, globalIcons }: {
|
|
4
4
|
data: ComparisonContextData;
|
|
5
5
|
globalClasses?: Record<string, string> | undefined;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ComparisonSummaryCard.d.ts","sourceRoot":"","sources":["../../../../src/components/AuditLogPanel/ComparisonSummaryCard.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAmB,MAAM,OAAO,CAAC;AAExC,OAAO,EAAE,qBAAqB,EAAE,aAAa,
|
|
1
|
+
{"version":3,"file":"ComparisonSummaryCard.d.ts","sourceRoot":"","sources":["../../../../src/components/AuditLogPanel/ComparisonSummaryCard.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAmB,MAAM,OAAO,CAAC;AAExC,OAAO,EAAE,qBAAqB,EAAE,aAAa,EAAmB,MAAM,uBAAuB,CAAC;AAI9F,eAAO,MAAM,qBAAqB;UAG1B,qBAAqB;;;;6CA+D5B,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../../../../src/components/AuditLogPanel/Constants/constants.tsx"],"names":[],"mappings":";AAMA,eAAO,MAAM,sBAAsB,EAAE,MAAM,CAAC,MAAM,EAAE;IAAE,IAAI,EAAE,KAAK,CAAC,SAAS,CAAC;IAAC,EAAE,EAAE,MAAM,CAAA;CAAE,CAWxF,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { FilterItemConfig, FilterLabels } from './
|
|
2
|
+
import { FilterItemConfig, FilterLabels } from './AuditLogPanel.types';
|
|
3
3
|
export interface FilterSectionProps {
|
|
4
4
|
configs: FilterItemConfig[];
|
|
5
5
|
values: Record<string, any>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FilterSection.d.ts","sourceRoot":"","sources":["../../../../src/components/AuditLogPanel/FilterSection.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA8B,MAAM,OAAO,CAAC;AAEnD,OAAO,EAAE,gBAAgB,EAAE,YAAY,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"FilterSection.d.ts","sourceRoot":"","sources":["../../../../src/components/AuditLogPanel/FilterSection.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA8B,MAAM,OAAO,CAAC;AAEnD,OAAO,EAAE,gBAAgB,EAAE,YAAY,EAAE,MAAM,uBAAuB,CAAC;AAMvE,MAAM,WAAW,kBAAkB;IACjC,OAAO,EAAE,gBAAgB,EAAE,CAAC;IAC5B,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;IAC5B,QAAQ,EAAE,CAAC,SAAS,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,KAAK,IAAI,CAAC;IACnD,WAAW,CAAC,EAAE,QAAQ,GAAG,WAAW,GAAG,OAAO,CAAC;IAC/C,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B,YAAY,CAAC,EAAE,YAAY,CAAC;IAC5B,UAAU,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IACpC,MAAM,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,KAAK,CAAC,aAAa,CAAC,CAAC;CAC9C;AA8KD,eAAO,MAAM,aAAa,EAAE,KAAK,CAAC,EAAE,CAAC,kBAAkB,CAsBtD,CAAC"}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { AuditLogEntry, AuditLogLabels, ComparisonContextData, TextTruncationConfig } from '../AuditLogPanel.types';
|
|
2
|
+
export declare const transformBackendLogs: (items: any[], labels?: AuditLogLabels, truncationConfig?: TextTruncationConfig) => AuditLogEntry[];
|
|
3
|
+
export declare const extractComparisonContext: (items: any[], labels?: AuditLogLabels, truncationConfig?: TextTruncationConfig) => ComparisonContextData | undefined;
|
|
4
|
+
//# sourceMappingURL=AuditLogPanelAdapter.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AuditLogPanelAdapter.d.ts","sourceRoot":"","sources":["../../../../../src/components/AuditLogPanel/Services/AuditLogPanelAdapter.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,cAAc,EAAE,qBAAqB,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAC;AAEpH,eAAO,MAAM,oBAAoB,UAAW,GAAG,EAAE,WAAW,cAAc,qBAAqB,oBAAoB,KAAG,aAAa,EAuElI,CAAC;AAEF,eAAO,MAAM,wBAAwB,UAC5B,GAAG,EAAE,WACH,cAAc,qBACJ,oBAAoB,KACtC,qBAAqB,GAAG,SAwC1B,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { ApiEndpointConfig, AuditLogEntry, AuditLogLabels, TextTruncationConfig } from '../AuditLogPanel.types';
|
|
2
|
+
export declare const useAuditLogsData: (getData: ApiEndpointConfig | undefined, activeFilters: Record<string, any>, isOpen: boolean, isExternalMode: boolean, labels?: AuditLogLabels, apiQuery?: Record<string, any>, truncationConfig?: TextTruncationConfig) => {
|
|
3
|
+
apiLogs: AuditLogEntry[];
|
|
4
|
+
apiLoading: boolean;
|
|
5
|
+
apiLoadingMore: boolean;
|
|
6
|
+
apiHasMore: boolean;
|
|
7
|
+
fetchLogs: (reset?: boolean, customCursor?: string) => Promise<void>;
|
|
8
|
+
};
|
|
9
|
+
//# sourceMappingURL=useAuditLogPanelData.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useAuditLogPanelData.d.ts","sourceRoot":"","sources":["../../../../../src/components/AuditLogPanel/Services/useAuditLogPanelData.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,iBAAiB,EAAE,aAAa,EAAE,cAAc,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAC;AAGhH,eAAO,MAAM,gBAAgB,YAClB,iBAAiB,GAAG,SAAS,iBACvB,OAAO,MAAM,EAAE,GAAG,CAAC,UAC1B,OAAO,kBACC,OAAO,WACd,cAAc,aACZ,OAAO,MAAM,EAAE,GAAG,CAAC,qBACX,oBAAoB;;;;;gDAU4B,MAAM;CA8D1E,CAAC"}
|