@viswa-test/audit-log 0.0.2 → 0.0.3

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.
Files changed (84) hide show
  1. package/dist/cjs/components/AuditLogPanel/AuditLogItem.js +2 -0
  2. package/dist/cjs/components/AuditLogPanel/AuditLogItem.js.map +1 -0
  3. package/dist/cjs/components/AuditLogPanel/AuditLogPanel.js +1 -1
  4. package/dist/cjs/components/AuditLogPanel/AuditLogPanel.module.css.js +1 -1
  5. package/dist/cjs/components/AuditLogPanel/AuditLogSandBox.js +1 -1
  6. package/dist/cjs/components/AuditLogPanel/ComparisonSummaryCard.js +1 -1
  7. package/dist/cjs/components/AuditLogPanel/FilterSection.js +1 -1
  8. package/dist/cjs/components/AuditLogPanel/Services/useAuditLogDistinctValues.js +2 -0
  9. package/dist/cjs/components/AuditLogPanel/Services/useAuditLogDistinctValues.js.map +1 -0
  10. package/dist/cjs/components/AuditLogPanel/Services/useAuditLogsData.js +2 -0
  11. package/dist/cjs/components/AuditLogPanel/Services/useAuditLogsData.js.map +1 -0
  12. package/dist/cjs/index.js +1 -1
  13. package/dist/cjs/styles.css +1 -1
  14. package/dist/components/AuditLogPanel/AuditLogItem.js +2 -0
  15. package/dist/components/AuditLogPanel/AuditLogItem.js.map +1 -0
  16. package/dist/components/AuditLogPanel/AuditLogPanel.js +1 -1
  17. package/dist/components/AuditLogPanel/AuditLogPanel.module.css.js +1 -1
  18. package/dist/components/AuditLogPanel/AuditLogSandBox.js +1 -1
  19. package/dist/components/AuditLogPanel/ComparisonSummaryCard.js +1 -1
  20. package/dist/components/AuditLogPanel/FilterSection.js +1 -1
  21. package/dist/components/AuditLogPanel/Services/useAuditLogDistinctValues.js +2 -0
  22. package/dist/components/AuditLogPanel/Services/useAuditLogDistinctValues.js.map +1 -0
  23. package/dist/components/AuditLogPanel/Services/useAuditLogsData.js +2 -0
  24. package/dist/components/AuditLogPanel/Services/useAuditLogsData.js.map +1 -0
  25. package/dist/index.js +1 -1
  26. package/dist/styles.css +1 -1
  27. package/dist/types/components/AuditLogPanel/{AuditLogPanel.types.d.ts → AuditLog.types.d.ts} +37 -75
  28. package/dist/types/components/AuditLogPanel/AuditLog.types.d.ts.map +1 -0
  29. package/dist/types/components/AuditLogPanel/{AuditLogPanelItem.d.ts → AuditLogItem.d.ts} +2 -6
  30. package/dist/types/components/AuditLogPanel/AuditLogItem.d.ts.map +1 -0
  31. package/dist/types/components/AuditLogPanel/AuditLogPanel.d.ts +1 -3
  32. package/dist/types/components/AuditLogPanel/AuditLogPanel.d.ts.map +1 -1
  33. package/dist/types/components/AuditLogPanel/AuditLogSandBox.d.ts +1 -2
  34. package/dist/types/components/AuditLogPanel/AuditLogSandBox.d.ts.map +1 -1
  35. package/dist/types/components/AuditLogPanel/CommonUI.d.ts +2 -2
  36. package/dist/types/components/AuditLogPanel/CommonUI.d.ts.map +1 -1
  37. package/dist/types/components/AuditLogPanel/ComparisonSummaryCard.d.ts +1 -1
  38. package/dist/types/components/AuditLogPanel/ComparisonSummaryCard.d.ts.map +1 -1
  39. package/dist/types/components/AuditLogPanel/FilterSection.d.ts +1 -1
  40. package/dist/types/components/AuditLogPanel/FilterSection.d.ts.map +1 -1
  41. package/dist/types/components/AuditLogPanel/Services/useAuditLogDistinctValues.d.ts +8 -0
  42. package/dist/types/components/AuditLogPanel/Services/useAuditLogDistinctValues.d.ts.map +1 -0
  43. package/dist/types/components/AuditLogPanel/Services/{useAuditLogPanelData.d.ts → useAuditLogsData.d.ts} +3 -3
  44. package/dist/types/components/AuditLogPanel/Services/useAuditLogsData.d.ts.map +1 -0
  45. package/dist/types/index.d.ts +1 -1
  46. package/dist/types/index.d.ts.map +1 -1
  47. package/package.json +1 -1
  48. package/dist/cjs/components/AuditLogPanel/AuditLogPanelItem.js +0 -2
  49. package/dist/cjs/components/AuditLogPanel/AuditLogPanelItem.js.map +0 -1
  50. package/dist/cjs/components/AuditLogPanel/Services/AuditLogPanelAdapter.js +0 -2
  51. package/dist/cjs/components/AuditLogPanel/Services/AuditLogPanelAdapter.js.map +0 -1
  52. package/dist/cjs/components/AuditLogPanel/Services/useAuditLogPanelData.js +0 -2
  53. package/dist/cjs/components/AuditLogPanel/Services/useAuditLogPanelData.js.map +0 -1
  54. package/dist/cjs/components/AuditLogPanel/Services/useAuditLogPanelDistinctValues.js +0 -2
  55. package/dist/cjs/components/AuditLogPanel/Services/useAuditLogPanelDistinctValues.js.map +0 -1
  56. package/dist/cjs/components/AuditLogPanel/Services/useAuditLogPanelFilters.js +0 -2
  57. package/dist/cjs/components/AuditLogPanel/Services/useAuditLogPanelFilters.js.map +0 -1
  58. package/dist/cjs/components/AuditLogPanel/Services/useAuditLogPanelScroll.js +0 -2
  59. package/dist/cjs/components/AuditLogPanel/Services/useAuditLogPanelScroll.js.map +0 -1
  60. package/dist/components/AuditLogPanel/AuditLogPanelItem.js +0 -2
  61. package/dist/components/AuditLogPanel/AuditLogPanelItem.js.map +0 -1
  62. package/dist/components/AuditLogPanel/Services/AuditLogPanelAdapter.js +0 -2
  63. package/dist/components/AuditLogPanel/Services/AuditLogPanelAdapter.js.map +0 -1
  64. package/dist/components/AuditLogPanel/Services/useAuditLogPanelData.js +0 -2
  65. package/dist/components/AuditLogPanel/Services/useAuditLogPanelData.js.map +0 -1
  66. package/dist/components/AuditLogPanel/Services/useAuditLogPanelDistinctValues.js +0 -2
  67. package/dist/components/AuditLogPanel/Services/useAuditLogPanelDistinctValues.js.map +0 -1
  68. package/dist/components/AuditLogPanel/Services/useAuditLogPanelFilters.js +0 -2
  69. package/dist/components/AuditLogPanel/Services/useAuditLogPanelFilters.js.map +0 -1
  70. package/dist/components/AuditLogPanel/Services/useAuditLogPanelScroll.js +0 -2
  71. package/dist/components/AuditLogPanel/Services/useAuditLogPanelScroll.js.map +0 -1
  72. package/dist/types/components/AuditLogPanel/AuditLogPanel.types.d.ts.map +0 -1
  73. package/dist/types/components/AuditLogPanel/AuditLogPanelItem.d.ts.map +0 -1
  74. package/dist/types/components/AuditLogPanel/Constants/constants.d.ts +0 -6
  75. package/dist/types/components/AuditLogPanel/Constants/constants.d.ts.map +0 -1
  76. package/dist/types/components/AuditLogPanel/Services/AuditLogPanelAdapter.d.ts +0 -4
  77. package/dist/types/components/AuditLogPanel/Services/AuditLogPanelAdapter.d.ts.map +0 -1
  78. package/dist/types/components/AuditLogPanel/Services/useAuditLogPanelData.d.ts.map +0 -1
  79. package/dist/types/components/AuditLogPanel/Services/useAuditLogPanelDistinctValues.d.ts +0 -9
  80. package/dist/types/components/AuditLogPanel/Services/useAuditLogPanelDistinctValues.d.ts.map +0 -1
  81. package/dist/types/components/AuditLogPanel/Services/useAuditLogPanelFilters.d.ts +0 -37
  82. package/dist/types/components/AuditLogPanel/Services/useAuditLogPanelFilters.d.ts.map +0 -1
  83. package/dist/types/components/AuditLogPanel/Services/useAuditLogPanelScroll.d.ts +0 -3
  84. package/dist/types/components/AuditLogPanel/Services/useAuditLogPanelScroll.d.ts.map +0 -1
@@ -1,2 +1,2 @@
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};
1
+ import{__assign as e,__spreadArray as l}from"../../_virtual/_tslib.js";import{jsxs as n,jsx as i}from"react/jsx-runtime";import{useState as r,useEffect as t}from"react";import{Filter as o,ChevronUp as a,ChevronDown as d}from"lucide-react";var u=function(u){var p=u.configs,s=u.values,f=u.onChange,x=u.displayMode,v=void 0===x?"accordion":x,m=u.showApplyButton,h=void 0!==m&&m,g=u.filterLabels,y=u.classNames,b=u.styles,C=r("inline"===v),k=C[0],N=C[1],S=r(s),z=S[0],A=S[1];t(function(){return A(s)},[s]);var B=function(l,n){var i,r=e(e({},z),((i={})[l]=n,i));(""===n||null===n||Array.isArray(n)&&0===n.length)&&delete r[l],A(r),h||f(r)},w=e(e({},c),null==b?void 0:b.filterInput),W=function(r){var t,o,a=z[r.id],d=(null==y?void 0:y.filterInput)||"";switch(r.type){case"text":return i("input",{type:"text",className:d,placeholder:r.placeholder||(null==g?void 0:g.searchPlaceholder)||"Type here...",value:a||"",onChange:function(e){return B(r.id,e.target.value)},style:w});case"select":return n("select",e({className:d,value:a||"",onChange:function(e){return B(r.id,e.target.value)},style:w},{children:[i("option",e({value:""},{children:(null==g?void 0:g.selectAll)||"All"})),null===(t=r.options)||void 0===t?void 0:t.map(function(l){return i("option",e({value:l.value},{children:l.label}),l.value)})]}));case"multi-select":var u=Array.isArray(a)?a:[];return i("div",e({className:null==y?void 0:y.filterMultiSelectWrapper,style:e({display:"flex",flexDirection:"column",gap:"8px",maxHeight:"120px",overflowY:"auto",padding:"4px",background:"#f8fafc",border:"1px solid #e2e8f0",borderRadius:"6px"},null==b?void 0:b.filterMultiSelectWrapper)},{children:null===(o=r.options)||void 0===o?void 0:o.map(function(t){return n("label",e({style:{display:"flex",alignItems:"center",gap:"8px",fontSize:"13px",cursor:"pointer",color:"#334155"}},{children:[i("input",{type:"checkbox",checked:u.includes(t.value),onChange:function(e){var n=e.target.checked?l(l([],u,!0),[t.value],!1):u.filter(function(e){return e!==t.value});B(r.id,n)},style:{cursor:"pointer"}}),t.label]}),t.value)})}));case"range":var c=a||{min:"",max:""};return n("div",e({style:{display:"flex",gap:"8px",alignItems:"center"}},{children:[i("input",{className:d,type:"number",placeholder:(null==g?void 0:g.minPlaceholder)||"Min",value:c.min,min:r.min,max:r.max,onChange:function(l){return B(r.id,e(e({},c),{min:l.target.value}))},style:e(e({},w),{flex:1})}),i("span",e({style:{color:"#64748b"}},{children:"-"})),i("input",{className:d,type:"number",placeholder:(null==g?void 0:g.maxPlaceholder)||"Max",value:c.max,min:r.min,max:r.max,onChange:function(l){return B(r.id,e(e({},c),{max:l.target.value}))},style:e(e({},w),{flex:1})})]}));case"custom":return r.renderCustomFilter?r.renderCustomFilter(a,function(e){return B(r.id,e)}):null;default:return null}},I=Object.keys(s).length;return n("div",e({className:null==y?void 0:y.filterSection,style:e({margin:"0 16px 16px 16px",background:"#ffffff",border:"1px solid #e2e8f0",borderRadius:"8px",overflow:"hidden"},null==b?void 0:b.filterSection)},{children:["inline"!==v&&n("div",e({className:null==y?void 0:y.filterHeader,onClick:function(){return N(!k)},style:e({display:"flex",justifyContent:"space-between",alignItems:"center",padding:"12px 16px",background:"#f8fafc",cursor:"pointer",borderBottom:k?"1px solid #e2e8f0":"none"},null==b?void 0:b.filterHeader)},{children:[n("div",e({style:{display:"flex",alignItems:"center",gap:"8px",fontWeight:600,color:"#0f172a",fontSize:"13px"}},{children:[i(o,{size:14,color:"#64748b"}),(null==g?void 0:g.title)||"Filters",I>0&&i("span",e({style:{background:"#3b82f6",color:"white",padding:"2px 6px",borderRadius:"12px",fontSize:"11px",fontWeight:"bold"}},{children:I}))]})),i(k?a:d,{size:16,color:"#64748b"})]})),k&&n("div",e({className:null==y?void 0:y.filterBody,style:e({padding:"16px"},null==b?void 0:b.filterBody)},{children:[i("div",e({style:{display:"grid",gridTemplateColumns:"repeat(auto-fill, minmax(200px, 1fr))",gap:"16px"}},{children:p.filter(function(e){return!1!==e.visible}).map(function(l){return n("div",e({style:{display:"flex",flexDirection:"column",gap:"6px"}},{children:[i("label",e({className:null==y?void 0:y.filterLabel,style:e({fontSize:"12px",fontWeight:600,color:"#334155"},null==b?void 0:b.filterLabel)},{children:l.label||l.id})),W(l),l.hint&&i("span",e({className:null==y?void 0:y.filterHint,style:e({fontSize:"11px",color:"#94a3b8"},null==b?void 0:b.filterHint)},{children:l.hint}))]}),l.id)})})),h&&n("div",e({style:{display:"flex",justifyContent:"flex-end",gap:"12px",marginTop:"20px",paddingTop:"16px",borderTop:"1px solid #f1f5f9"}},{children:[i("button",e({className:null==y?void 0:y.filterClearBtn,onClick:function(){A({}),f({})},style:e({background:"transparent",border:"none",color:"#64748b",fontSize:"12px",fontWeight:600,cursor:"pointer"},null==b?void 0:b.filterClearBtn)},{children:(null==g?void 0:g.clearBtn)||"Clear All"})),i("button",e({className:null==y?void 0:y.filterApplyBtn,onClick:function(){f(z),"popup"===v&&N(!1)},style:e({background:"#0f172a",color:"#ffffff",border:"none",padding:"6px 16px",borderRadius:"6px",fontSize:"12px",fontWeight:600,cursor:"pointer"},null==b?void 0:b.filterApplyBtn)},{children:(null==g?void 0:g.applyBtn)||"Apply Filters"}))]}))]}))]}))},c={width:"100%",padding:"8px 12px",borderRadius:"6px",border:"1px solid #cbd5e1",fontSize:"13px",color:"#0f172a",background:"#ffffff",outline:"none",boxSizing:"border-box"};export{u as FilterSection};
2
2
  //# sourceMappingURL=FilterSection.js.map
@@ -0,0 +1,2 @@
1
+ import{__awaiter as e,__generator as t,__assign as a}from"../../../_virtual/_tslib.js";import{useState as n,useEffect as r}from"react";var i=function(i,o){var c=n({}),d=c[0],s=c[1];return r(function(){if(i&&o){e(void 0,void 0,void 0,function(){var e,n,r,o,c,d;return t(this,function(t){switch(t.label){case 0:return t.trys.push([0,3,,4]),e=new URL("".concat(i.baseUrl).concat(i.endpoint)),i.configId&&e.searchParams.append("configId",i.configId),[4,fetch(e.toString(),{method:i.method||"GET",headers:a({Accept:"application/json"},i.headers)})];case 1:return[4,t.sent().json()];case 2:return n=t.sent(),r={},(null===(c=null==n?void 0:n.data)||void 0===c?void 0:c.change_made_title)&&(r.change_made_title=n.data.change_made_title.map(function(e){return{label:e,value:e}})),(null===(d=null==n?void 0:n.data)||void 0===d?void 0:d.change_made_by_user)&&(r.change_made_by_user=Object.entries(n.data.change_made_by_user).map(function(e){return{label:e[0],value:e[1]}})),s(r),[3,4];case 3:return o=t.sent(),console.error("AuditLogPanel: Failed to fetch distinct values",o),[3,4];case 4:return[2]}})})}},[i,o]),{dynamicOptionsMap:d}};export{i as useAuditLogDistinctValues};
2
+ //# sourceMappingURL=useAuditLogDistinctValues.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useAuditLogDistinctValues.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
@@ -0,0 +1,2 @@
1
+ import{__awaiter as e,__generator as t,__assign as n,__spreadArray as i}from"../../../_virtual/_tslib.js";import{useState as o,useCallback as r,useEffect as a}from"react";var d=function(d,s,c,l){var u=o([]),f=u[0],v=u[1],p=o(!1),g=p[0],h=p[1],m=o(!1),b=m[0],y=m[1],L=o(!0),T=L[0],_=L[1],j=o(),x=j[0],S=j[1],C=r(function(o,r){return void 0===o&&(o=!1),e(void 0,void 0,void 0,function(){var e,a,c,u,f,p,g,m;return t(this,function(t){switch(t.label){case 0:if(!d||l)return[2];o?h(!0):y(!0),t.label=1;case 1:return t.trys.push([1,4,5,6]),e=n({configId:d.configId,filters:s,cursor:o?void 0:null!=r?r:x},d.baseQuery),[4,fetch("".concat(d.baseUrl).concat(d.endpoint),{method:d.method||"POST",headers:n({"Content-Type":"application/json"},d.headers),body:JSON.stringify(e)})];case 2:return[4,t.sent().json()];case 3:return a=t.sent(),c=(null===(p=null==a?void 0:a.data)||void 0===p?void 0:p.items)||[],u=c.map(function(e,t){return n({id:e.change_log_id||"api-log-".concat(t),actionType:e.changeTitle||"modified",title:e.changeTitle||"System Update",subtitle:e.modifiedbyname,timestamp:e.created_at},e)}),v(function(e){return o?u:i(i([],e,!0),u,!0)}),S(null===(g=null==a?void 0:a.data)||void 0===g?void 0:g.nextCursor),_(!!(null===(m=null==a?void 0:a.data)||void 0===m?void 0:m.hasNext)),[3,6];case 4:return f=t.sent(),console.error("AuditLogPanel: Failed to fetch logs",f),[3,6];case 5:return o?h(!1):y(!1),[7];case 6:return[2]}})})},[d,s,x,l]);return a(function(){c&&!l&&d&&C(!0)},[c,s,l]),{apiLogs:f,apiLoading:g,apiLoadingMore:b,apiHasMore:T,fetchLogs:C}};export{d as useAuditLogsData};
2
+ //# sourceMappingURL=useAuditLogsData.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useAuditLogsData.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
package/dist/index.js CHANGED
@@ -1,2 +1,2 @@
1
- export{default as AuditLog}from"./AuditLog.js";export{AuditLogPanel}from"./components/AuditLogPanel/AuditLogPanel.js";export{default as AuditLogSandbox}from"./components/AuditLogPanel/AuditLogSandBox.js";export{default as LogTable}from"./components/LogTable.js";export{default as LogFilters}from"./components/LogFilters.js";export{default as LogFiltersSidebar}from"./components/LogFiltersSidebar.js";export{default as LogFilterDropdown}from"./components/LogFilterDropdown.js";export{default as ActionTakenBody}from"./components/ActionTakenBody.js";export{default as DateRangeSelector}from"./components/DateRangeSelector.js";export{default as ImpactRangeSelector}from"./components/ImpactRangeSelector.js";export{default as CustomMultiSelect}from"./components/CustomMultiSelect.js";
1
+ export{default as AuditLog}from"./AuditLog.js";export{AuditLogPanel}from"./components/AuditLogPanel/AuditLogPanel.js";export{AuditLogSandbox}from"./components/AuditLogPanel/AuditLogSandBox.js";export{default as LogTable}from"./components/LogTable.js";export{default as LogFilters}from"./components/LogFilters.js";export{default as LogFiltersSidebar}from"./components/LogFiltersSidebar.js";export{default as LogFilterDropdown}from"./components/LogFilterDropdown.js";export{default as ActionTakenBody}from"./components/ActionTakenBody.js";export{default as DateRangeSelector}from"./components/DateRangeSelector.js";export{default as ImpactRangeSelector}from"./components/ImpactRangeSelector.js";export{default as CustomMultiSelect}from"./components/CustomMultiSelect.js";
2
2
  //# sourceMappingURL=index.js.map
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_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_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
+ .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,21 +1,35 @@
1
1
  import { ReactNode, CSSProperties } from 'react';
2
+ /**
3
+ * Standardizes how developers inject custom CSS or classes (like Tailwind)
4
+ * into any specific part of the component tree.
5
+ */
2
6
  export interface BaseStyleConfig {
3
7
  className?: string;
4
8
  style?: CSSProperties;
5
9
  }
6
- export interface TextTruncationConfig extends BaseStyleConfig {
10
+ /**
11
+ * Configuration for the smart text-truncation engine.
12
+ */
13
+ export interface TruncationConfig extends BaseStyleConfig {
7
14
  enabled?: boolean;
8
15
  lines?: number;
9
16
  maxExpandedHeight?: string;
10
17
  viewMoreLabel?: ReactNode;
11
18
  viewLessLabel?: ReactNode;
12
19
  }
20
+ /**
21
+ * Passed to event handlers and render slots so the consumer
22
+ * can programmatically open/close the accordion from their custom UI.
23
+ */
13
24
  export type RowClickHelpers = {
14
25
  isExpanded: boolean;
15
26
  expand: () => void;
16
27
  collapse: () => void;
17
28
  toggle: () => void;
18
29
  };
30
+ /**
31
+ * Configuration for the native Smart Data Engine API fetching
32
+ */
19
33
  export interface ApiEndpointConfig {
20
34
  baseUrl: string;
21
35
  endpoint: string;
@@ -31,7 +45,7 @@ export interface IterationToneConfig {
31
45
  export interface LogContentBlock extends BaseStyleConfig {
32
46
  label?: ReactNode;
33
47
  content: string | ReactNode;
34
- truncation?: TextTruncationConfig;
48
+ truncation?: TruncationConfig;
35
49
  }
36
50
  export interface ImpactConfig extends BaseStyleConfig {
37
51
  label?: ReactNode;
@@ -39,8 +53,12 @@ export interface ImpactConfig extends BaseStyleConfig {
39
53
  severityClassName?: string;
40
54
  severityStyle?: CSSProperties;
41
55
  description: string | ReactNode;
42
- truncation?: TextTruncationConfig;
56
+ truncation?: TruncationConfig;
43
57
  }
58
+ /**
59
+ * The master data payload for a single log entry.
60
+ * Supports standard data, arrays, and direct TSX overrides.
61
+ */
44
62
  export interface AuditLogEntry extends BaseStyleConfig {
45
63
  id: string | number;
46
64
  actionType: string;
@@ -54,7 +72,6 @@ export interface AuditLogEntry extends BaseStyleConfig {
54
72
  contentBlocks?: LogContentBlock[];
55
73
  isInitiallyExpanded?: boolean;
56
74
  tags?: string[];
57
- rawPayload?: any;
58
75
  customExpandedContent?: ReactNode;
59
76
  renderHeaderLeft?: () => ReactNode;
60
77
  renderHeaderRight?: (isExpanded: boolean, helpers: RowClickHelpers) => ReactNode;
@@ -65,20 +82,19 @@ export interface ComparisonContextData extends BaseStyleConfig {
65
82
  title?: ReactNode;
66
83
  latestTextLabel?: ReactNode;
67
84
  originalTextLabel?: ReactNode;
68
- latestText?: string | ReactNode;
69
- originalText?: string | ReactNode;
85
+ latestText: string | ReactNode;
86
+ originalText: string | ReactNode;
70
87
  isInitiallyExpanded?: boolean;
71
- truncation?: TextTruncationConfig;
72
- renderHeaderLeft?: () => ReactNode;
73
- renderHeaderRight?: (isExpanded: boolean, helpers: RowClickHelpers) => ReactNode;
74
- renderExpandedBody?: (helpers: RowClickHelpers) => ReactNode;
75
- rawPayload?: any;
88
+ truncation?: TruncationConfig;
76
89
  }
77
- export type FilterType = 'text' | 'select' | 'multi-select' | 'date-range' | 'impact-range' | 'custom';
90
+ export type FilterType = 'text' | 'select' | 'multi-select' | 'date-range' | 'range' | 'custom';
78
91
  export interface FilterOption {
79
92
  label: string;
80
93
  value: any;
81
94
  }
95
+ /**
96
+ * Data-driven schema to generate advanced filter inputs (Sidebar/Popup)
97
+ */
82
98
  export interface FilterItemConfig extends BaseStyleConfig {
83
99
  id: string;
84
100
  type: FilterType;
@@ -86,38 +102,12 @@ export interface FilterItemConfig extends BaseStyleConfig {
86
102
  hint?: ReactNode;
87
103
  placeholder?: string;
88
104
  options?: FilterOption[];
89
- dynamicOptionKey?: string;
105
+ dynamicOptionKey?: 'change_made_by_user' | 'change_made_title' | string;
90
106
  min?: number;
91
107
  max?: number;
92
108
  visible?: boolean;
93
109
  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
110
  }
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
111
  export interface AuditLogIcons {
122
112
  close?: ReactNode;
123
113
  chevronUp?: ReactNode;
@@ -137,10 +127,9 @@ export interface AuditLogPanelProps extends BaseStyleConfig {
137
127
  title?: ReactNode;
138
128
  subtitle?: ReactNode;
139
129
  emptyState?: ReactNode;
140
- dataSourceMode?: 'external' | 'internal';
130
+ dataSourceMode?: "external" | "internal";
141
131
  comparisonContext?: ComparisonContextData;
142
- showComparisonCard?: boolean;
143
- filters?: FiltersProp;
132
+ filters?: FilterItemConfig[];
144
133
  filterValues?: Record<string, any>;
145
134
  onFilterChange?: (newValues: Record<string, any>) => void;
146
135
  autoFilter?: boolean;
@@ -164,45 +153,18 @@ export interface AuditLogPanelProps extends BaseStyleConfig {
164
153
  globalIcons?: AuditLogIcons;
165
154
  classNames?: Record<string, string>;
166
155
  styles?: Record<string, CSSProperties>;
167
- query?: {
168
- externalResourceId?: string[];
169
- paginationLimit?: number;
170
- };
171
- truncationConfig?: TextTruncationConfig;
172
156
  }
173
157
  export interface FilterLabels {
174
- title?: ReactNode;
175
- applyBtn?: ReactNode;
176
- clearBtn?: ReactNode;
158
+ title?: React.ReactNode;
159
+ applyBtn?: React.ReactNode;
160
+ clearBtn?: React.ReactNode;
177
161
  selectAll?: string;
178
- searchLabel?: string;
179
162
  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
163
  minPlaceholder?: string;
196
164
  maxPlaceholder?: string;
197
165
  }
198
166
  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;
167
+ loadingMore?: React.ReactNode;
168
+ emptyState?: React.ReactNode;
207
169
  }
208
- //# sourceMappingURL=AuditLogPanel.types.d.ts.map
170
+ //# sourceMappingURL=AuditLog.types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AuditLog.types.d.ts","sourceRoot":"","sources":["../../../../src/components/AuditLogPanel/AuditLog.types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;AAMjD;;;GAGG;AACH,MAAM,WAAW,eAAe;IAC9B,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,KAAK,CAAC,EAAE,aAAa,CAAC;CACvB;AAED;;GAEG;AACH,MAAM,WAAW,gBAAiB,SAAQ,eAAe;IACvD,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,aAAa,CAAC,EAAE,SAAS,CAAC;IAC1B,aAAa,CAAC,EAAE,SAAS,CAAC;CAC3B;AAMD;;;GAGG;AACH,MAAM,MAAM,eAAe,GAAG;IAC5B,UAAU,EAAE,OAAO,CAAC;IACpB,MAAM,EAAE,MAAM,IAAI,CAAC;IACnB,QAAQ,EAAE,MAAM,IAAI,CAAC;IACrB,MAAM,EAAE,MAAM,IAAI,CAAC;CACpB,CAAC;AAEF;;GAEG;AACH,MAAM,WAAW,iBAAiB;IAChC,OAAO,EAAE,MAAM,CAAC;IAChB,QAAQ,EAAE,MAAM,CAAC;IACjB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,MAAM,CAAC,EAAE,KAAK,GAAG,MAAM,CAAC;IACxB,SAAS,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;IAChC,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;CAClC;AAMD,MAAM,WAAW,mBAAmB;IAClC,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,MAAM,CAAC;CACf;AAED,MAAM,WAAW,eAAgB,SAAQ,eAAe;IACtD,KAAK,CAAC,EAAE,SAAS,CAAC;IAClB,OAAO,EAAE,MAAM,GAAG,SAAS,CAAC;IAC5B,UAAU,CAAC,EAAE,gBAAgB,CAAC;CAC/B;AAED,MAAM,WAAW,YAAa,SAAQ,eAAe;IACnD,KAAK,CAAC,EAAE,SAAS,CAAC;IAClB,QAAQ,CAAC,EAAE,SAAS,CAAC;IACrB,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,aAAa,CAAC,EAAE,aAAa,CAAC;IAC9B,WAAW,EAAE,MAAM,GAAG,SAAS,CAAC;IAChC,UAAU,CAAC,EAAE,gBAAgB,CAAC;CAC/B;AAED;;;GAGG;AACH,MAAM,WAAW,aAAc,SAAQ,eAAe;IACpD,EAAE,EAAE,MAAM,GAAG,MAAM,CAAC;IACpB,UAAU,EAAE,MAAM,CAAC;IAGnB,IAAI,CAAC,EAAE,SAAS,CAAC;IACjB,WAAW,CAAC,EAAE,MAAM,CAAC;IAGrB,KAAK,EAAE,SAAS,CAAC;IACjB,QAAQ,CAAC,EAAE,SAAS,CAAC;IACrB,SAAS,CAAC,EAAE,SAAS,CAAC;IAGtB,aAAa,CAAC,EAAE,mBAAmB,GAAG,SAAS,CAAC;IAChD,MAAM,CAAC,EAAE,YAAY,CAAC;IACtB,aAAa,CAAC,EAAE,eAAe,EAAE,CAAC;IAClC,mBAAmB,CAAC,EAAE,OAAO,CAAC;IAC9B,IAAI,CAAC,EAAE,MAAM,EAAE,CAAC;IAMhB,qBAAqB,CAAC,EAAE,SAAS,CAAC;IAClC,gBAAgB,CAAC,EAAE,MAAM,SAAS,CAAC;IACnC,iBAAiB,CAAC,EAAE,CAAC,UAAU,EAAE,OAAO,EAAE,OAAO,EAAE,eAAe,KAAK,SAAS,CAAC;IACjF,kBAAkB,CAAC,EAAE,CAAC,OAAO,EAAE,eAAe,KAAK,SAAS,CAAC;IAG7D,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAC;CACpB;AAED,MAAM,WAAW,qBAAsB,SAAQ,eAAe;IAC5D,KAAK,CAAC,EAAE,SAAS,CAAC;IAClB,eAAe,CAAC,EAAE,SAAS,CAAC;IAC5B,iBAAiB,CAAC,EAAE,SAAS,CAAC;IAC9B,UAAU,EAAE,MAAM,GAAG,SAAS,CAAC;IAC/B,YAAY,EAAE,MAAM,GAAG,SAAS,CAAC;IACjC,mBAAmB,CAAC,EAAE,OAAO,CAAC;IAC9B,UAAU,CAAC,EAAE,gBAAgB,CAAC;CAC/B;AAMD,MAAM,MAAM,UAAU,GAAG,MAAM,GAAG,QAAQ,GAAG,cAAc,GAAG,YAAY,GAAG,OAAO,GAAG,QAAQ,CAAC;AAEhG,MAAM,WAAW,YAAY;IAC3B,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,GAAG,CAAC;CACZ;AAED;;GAEG;AACH,MAAM,WAAW,gBAAiB,SAAQ,eAAe;IACvD,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,UAAU,CAAC;IACjB,KAAK,CAAC,EAAE,SAAS,CAAC;IAClB,IAAI,CAAC,EAAE,SAAS,CAAC;IACjB,WAAW,CAAC,EAAE,MAAM,CAAC;IAErB,OAAO,CAAC,EAAE,YAAY,EAAE,CAAC;IAGzB,gBAAgB,CAAC,EAAE,qBAAqB,GAAG,mBAAmB,GAAG,MAAM,CAAC;IAExE,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,GAAG,CAAC,EAAE,MAAM,CAAC;IAEb,OAAO,CAAC,EAAE,OAAO,CAAC;IAGlB,kBAAkB,CAAC,EAAE,CAAC,KAAK,EAAE,GAAG,EAAE,QAAQ,EAAE,CAAC,QAAQ,EAAE,GAAG,KAAK,IAAI,KAAK,SAAS,CAAC;CACnF;AAMD,MAAM,WAAW,aAAa;IAC5B,KAAK,CAAC,EAAE,SAAS,CAAC;IAClB,SAAS,CAAC,EAAE,SAAS,CAAC;IACtB,WAAW,CAAC,EAAE,SAAS,CAAC;IACxB,WAAW,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,SAAS,CAAC,CAAC;CACzC;AAED,MAAM,WAAW,kBAAmB,SAAQ,eAAe;IAEzD,MAAM,EAAE,OAAO,CAAC;IAChB,OAAO,EAAE,MAAM,IAAI,CAAC;IAGpB,IAAI,CAAC,EAAE,aAAa,EAAE,CAAC;IACvB,OAAO,CAAC,EAAE,iBAAiB,CAAC;IAC5B,iBAAiB,CAAC,EAAE,iBAAiB,CAAC;IAGtC,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,UAAU,CAAC,EAAE,MAAM,IAAI,CAAC;IAGxB,KAAK,CAAC,EAAE,SAAS,CAAC;IAClB,QAAQ,CAAC,EAAE,SAAS,CAAC;IACrB,UAAU,CAAC,EAAE,SAAS,CAAC;IAEvB,cAAc,CAAC,EAAE,UAAU,GAAG,UAAU,CAAC;IAGzC,iBAAiB,CAAC,EAAE,qBAAqB,CAAC;IAG1C,OAAO,CAAC,EAAE,gBAAgB,EAAE,CAAC;IAC7B,YAAY,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;IACnC,cAAc,CAAC,EAAE,CAAC,SAAS,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,KAAK,IAAI,CAAC;IAC1D,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,iBAAiB,CAAC,EAAE,QAAQ,GAAG,WAAW,GAAG,OAAO,CAAC;IACrD,eAAe,CAAC,EAAE,OAAO,CAAC;IAG1B,MAAM,CAAC,EAAE,cAAc,CAAC;IACxB,YAAY,CAAC,EAAE,YAAY,CAAC;IAG5B,UAAU,CAAC,EAAE,CAAC,GAAG,EAAE,aAAa,EAAE,OAAO,EAAE,eAAe,KAAK,IAAI,CAAC;IAGpE,UAAU,CAAC,EAAE;QACX,OAAO,CAAC,EAAE,CAAC,GAAG,EAAE,aAAa,KAAK,mBAAmB,GAAG,SAAS,CAAC;QAClE,OAAO,CAAC,EAAE,CAAC,GAAG,EAAE,aAAa,KAAK,SAAS,GAAG,SAAS,CAAC;QACxD,SAAS,CAAC,EAAE,CAAC,GAAG,EAAE,aAAa,KAAK,MAAM,GAAG,SAAS,CAAC;QACvD,QAAQ,CAAC,EAAE,CAAC,GAAG,EAAE,aAAa,KAAK,aAAa,GAAG,SAAS,CAAC;KAC9D,CAAC;IAIF,yBAAyB,CAAC,EAAE,MAAM,SAAS,CAAC;IAC5C,oBAAoB,CAAC,EAAE,MAAM,SAAS,CAAC;IACvC,oBAAoB,CAAC,EAAE,CAAC,GAAG,EAAE,aAAa,EAAE,KAAK,EAAE,MAAM,KAAK,SAAS,CAAC;IACxE,oBAAoB,CAAC,EAAE,CAAC,GAAG,EAAE,aAAa,KAAK,SAAS,CAAC;IACzD,qBAAqB,CAAC,EAAE,CAAC,GAAG,EAAE,aAAa,EAAE,UAAU,EAAE,OAAO,EAAG,OAAO,EAAE,eAAe,KAAK,SAAS,CAAC;IAC1G,sBAAsB,CAAC,EAAE,CAAC,GAAG,EAAE,aAAa,EAAE,OAAO,EAAE,eAAe,KAAK,SAAS,CAAC;IAGrF,WAAW,CAAC,EAAE,aAAa,CAAC;IAC5B,UAAU,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IACpC,MAAM,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,aAAa,CAAC,CAAC;CACxC;AAGD,MAAM,WAAW,YAAY;IAC3B,KAAK,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IACxB,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC3B,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC3B,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,cAAc,CAAC,EAAE,MAAM,CAAC;CACzB;AAGD,MAAM,WAAW,cAAc;IAC7B,WAAW,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC9B,UAAU,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;CAC9B"}
@@ -1,9 +1,5 @@
1
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
- }>;
2
+ import { AuditLogEntry, AuditLogIcons, RowClickHelpers } from './AuditLog.types';
7
3
  export declare const AuditLogItem: ({ log, globalIcons, globalClasses, globalStyles, renderItemHeaderLeft, renderItemHeaderRight, renderItemExpandedBody, onRowClick, itemConfig }: {
8
4
  log: AuditLogEntry;
9
5
  globalIcons?: AuditLogIcons | undefined;
@@ -15,4 +11,4 @@ export declare const AuditLogItem: ({ log, globalIcons, globalClasses, globalSty
15
11
  onRowClick?: ((log: AuditLogEntry, helpers: RowClickHelpers) => void) | undefined;
16
12
  itemConfig?: any;
17
13
  }) => import("react/jsx-runtime").JSX.Element;
18
- //# sourceMappingURL=AuditLogPanelItem.d.ts.map
14
+ //# sourceMappingURL=AuditLogItem.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AuditLogItem.d.ts","sourceRoot":"","sources":["../../../../src/components/AuditLogPanel/AuditLogItem.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAmB,MAAM,OAAO,CAAC;AAExC,OAAO,EAAE,aAAa,EAAE,aAAa,EAAE,eAAe,EAAE,MAAM,kBAAkB,CAAC;AAcjF,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;6CA4FjB,CAAC"}
@@ -1,6 +1,4 @@
1
1
  import React from 'react';
2
- import { AuditLogPanelProps } from './AuditLogPanel.types';
3
- import "primereact/resources/themes/lara-light-indigo/theme.css";
4
- import "primereact/resources/primereact.min.css";
2
+ import { AuditLogPanelProps } from './AuditLog.types';
5
3
  export declare const AuditLogPanel: React.FC<AuditLogPanelProps>;
6
4
  //# 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,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,CA+ItD,CAAC"}
1
+ {"version":3,"file":"AuditLogPanel.d.ts","sourceRoot":"","sources":["../../../../src/components/AuditLogPanel/AuditLogPanel.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA+C,MAAM,OAAO,CAAC;AAEpE,OAAO,EAAE,kBAAkB,EAAE,MAAM,kBAAkB,CAAC;AAQtD,eAAO,MAAM,aAAa,EAAE,KAAK,CAAC,EAAE,CAAC,kBAAkB,CAuLtD,CAAC"}
@@ -1,3 +1,2 @@
1
- declare const AuditLogSandbox: () => import("react/jsx-runtime").JSX.Element;
2
- export default AuditLogSandbox;
1
+ export declare const AuditLogSandbox: () => import("react/jsx-runtime").JSX.Element;
3
2
  //# sourceMappingURL=AuditLogSandBox.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"AuditLogSandBox.d.ts","sourceRoot":"","sources":["../../../../src/components/AuditLogPanel/AuditLogSandBox.tsx"],"names":[],"mappings":"AA+EA,QAAA,MAAM,eAAe,+CAgRpB,CAAC;AAGF,eAAe,eAAe,CAAC"}
1
+ {"version":3,"file":"AuditLogSandBox.d.ts","sourceRoot":"","sources":["../../../../src/components/AuditLogPanel/AuditLogSandBox.tsx"],"names":[],"mappings":"AAiGA,eAAO,MAAM,eAAe,+CA8J3B,CAAC"}
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- import { TextTruncationConfig } from './AuditLogPanel.types';
2
+ import { TruncationConfig } from './AuditLog.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?: TextTruncationConfig | undefined;
11
+ config?: TruncationConfig | 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,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
+ {"version":3,"file":"CommonUI.d.ts","sourceRoot":"","sources":["../../../../src/components/AuditLogPanel/CommonUI.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAsC,MAAM,OAAO,CAAC;AAG3D,OAAO,EAAE,gBAAgB,EAAE,MAAM,kBAAkB,CAAC;AAEpD,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 './AuditLogPanel.types';
2
+ import { ComparisonContextData, AuditLogIcons } from './AuditLog.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,EAAmB,MAAM,uBAAuB,CAAC;AAI9F,eAAO,MAAM,qBAAqB;UAG1B,qBAAqB;;;;6CA+D5B,CAAC"}
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,EAAE,MAAM,kBAAkB,CAAC;AAIxE,eAAO,MAAM,qBAAqB;UAAgE,qBAAqB;;;;6CA6BtH,CAAC"}
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- import { FilterItemConfig, FilterLabels } from './AuditLogPanel.types';
2
+ import { FilterItemConfig, FilterLabels } from './AuditLog.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,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"}
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,kBAAkB,CAAC;AAElE,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;IAG5B,UAAU,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IACpC,MAAM,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,KAAK,CAAC,aAAa,CAAC,CAAC;CAC9C;AAED,eAAO,MAAM,aAAa,EAAE,KAAK,CAAC,EAAE,CAAC,kBAAkB,CAuItD,CAAC"}
@@ -0,0 +1,8 @@
1
+ import { ApiEndpointConfig } from '../AuditLog.types';
2
+ export declare const useAuditLogDistinctValues: (distinctValuesApi: ApiEndpointConfig | undefined, isOpen: boolean) => {
3
+ dynamicOptionsMap: Record<string, {
4
+ label: string;
5
+ value: any;
6
+ }[]>;
7
+ };
8
+ //# sourceMappingURL=useAuditLogDistinctValues.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useAuditLogDistinctValues.d.ts","sourceRoot":"","sources":["../../../../../src/components/AuditLogPanel/Services/useAuditLogDistinctValues.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,iBAAiB,EAAE,MAAM,mBAAmB,CAAC;AAEtD,eAAO,MAAM,yBAAyB,sBACjB,iBAAiB,GAAG,SAAS,UACxC,OAAO;;eAEmE,MAAM;eAAS,GAAG;;CAkCrG,CAAC"}
@@ -1,9 +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) => {
1
+ import { ApiEndpointConfig, AuditLogEntry } from '../AuditLog.types';
2
+ export declare const useAuditLogsData: (getData: ApiEndpointConfig | undefined, activeFilters: Record<string, any>, isOpen: boolean, isExternalMode: boolean) => {
3
3
  apiLogs: AuditLogEntry[];
4
4
  apiLoading: boolean;
5
5
  apiLoadingMore: boolean;
6
6
  apiHasMore: boolean;
7
7
  fetchLogs: (reset?: boolean, customCursor?: string) => Promise<void>;
8
8
  };
9
- //# sourceMappingURL=useAuditLogPanelData.d.ts.map
9
+ //# sourceMappingURL=useAuditLogsData.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useAuditLogsData.d.ts","sourceRoot":"","sources":["../../../../../src/components/AuditLogPanel/Services/useAuditLogsData.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,iBAAiB,EAAE,aAAa,EAAE,MAAM,mBAAmB,CAAC;AAErE,eAAO,MAAM,gBAAgB,YAClB,iBAAiB,GAAG,SAAS,iBACvB,OAAO,MAAM,EAAE,GAAG,CAAC,UAC1B,OAAO,kBACC,OAAO;;;;;gDAQ4C,MAAM;CAgD1E,CAAC"}
@@ -1,6 +1,6 @@
1
1
  export { default as AuditLog } from './AuditLog';
2
2
  export { AuditLogPanel } from './components/AuditLogPanel/AuditLogPanel';
3
- export { default as AuditLogSandbox } from './components/AuditLogPanel/AuditLogSandBox';
3
+ export { AuditLogSandbox } from './components/AuditLogPanel/AuditLogSandBox';
4
4
  export { default as LogTable } from './components/LogTable';
5
5
  export { default as LogFilters } from './components/LogFilters';
6
6
  export { default as LogFiltersSidebar } from './components/LogFiltersSidebar';
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,QAAQ,EAAE,MAAM,YAAY,CAAC;AACjD,OAAO,EAAE,aAAa,EAAE,MAAM,0CAA0C,CAAC;AACzE,OAAO,EAAG,OAAO,IAAI,eAAe,EAAE,MAAM,4CAA4C,CAAC;AACzF,OAAO,EAAE,OAAO,IAAI,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AAC5D,OAAO,EAAE,OAAO,IAAI,UAAU,EAAE,MAAM,yBAAyB,CAAC;AAChE,OAAO,EAAE,OAAO,IAAI,iBAAiB,EAAE,MAAM,gCAAgC,CAAC;AAC9E,OAAO,EAAE,OAAO,IAAI,iBAAiB,EAAE,MAAM,gCAAgC,CAAC;AAC9E,OAAO,EAAE,OAAO,IAAI,eAAe,EAAE,MAAM,8BAA8B,CAAC;AAC1E,OAAO,EAAE,OAAO,IAAI,iBAAiB,EAAE,MAAM,gCAAgC,CAAC;AAC9E,OAAO,EAAE,OAAO,IAAI,mBAAmB,EAAE,MAAM,kCAAkC,CAAC;AAClF,OAAO,EAAE,OAAO,IAAI,iBAAiB,EAAE,MAAM,gCAAgC,CAAC;AAG9E,YAAY,EAAE,MAAM,EAAE,eAAe,EAAE,gBAAgB,EAAE,aAAa,EAAE,MAAM,uBAAuB,CAAC;AACtG,YAAY,EAAE,eAAe,EAAE,SAAS,EAAE,MAAM,yBAAyB,CAAC;AAC1E,YAAY,EAAE,sBAAsB,EAAE,uBAAuB,EAAE,MAAM,gCAAgC,CAAC;AACtG,YAAY,EAAE,sBAAsB,EAAE,uBAAuB,EAAE,MAAM,gCAAgC,CAAC;AACtG,YAAY,EAAE,SAAS,EAAE,MAAM,gCAAgC,CAAC;AAChE,YAAY,EAAE,WAAW,EAAE,MAAM,kCAAkC,CAAC;AACpE,YAAY,EAAE,YAAY,EAAE,MAAM,gCAAgC,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,QAAQ,EAAE,MAAM,YAAY,CAAC;AACjD,OAAO,EAAG,aAAa,EAAE,MAAM,0CAA0C,CAAC;AAC1E,OAAO,EAAG,eAAe,EAAE,MAAM,4CAA4C,CAAC;AAC9E,OAAO,EAAE,OAAO,IAAI,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AAC5D,OAAO,EAAE,OAAO,IAAI,UAAU,EAAE,MAAM,yBAAyB,CAAC;AAChE,OAAO,EAAE,OAAO,IAAI,iBAAiB,EAAE,MAAM,gCAAgC,CAAC;AAC9E,OAAO,EAAE,OAAO,IAAI,iBAAiB,EAAE,MAAM,gCAAgC,CAAC;AAC9E,OAAO,EAAE,OAAO,IAAI,eAAe,EAAE,MAAM,8BAA8B,CAAC;AAC1E,OAAO,EAAE,OAAO,IAAI,iBAAiB,EAAE,MAAM,gCAAgC,CAAC;AAC9E,OAAO,EAAE,OAAO,IAAI,mBAAmB,EAAE,MAAM,kCAAkC,CAAC;AAClF,OAAO,EAAE,OAAO,IAAI,iBAAiB,EAAE,MAAM,gCAAgC,CAAC;AAG9E,YAAY,EAAE,MAAM,EAAE,eAAe,EAAE,gBAAgB,EAAE,aAAa,EAAE,MAAM,uBAAuB,CAAC;AACtG,YAAY,EAAE,eAAe,EAAE,SAAS,EAAE,MAAM,yBAAyB,CAAC;AAC1E,YAAY,EAAE,sBAAsB,EAAE,uBAAuB,EAAE,MAAM,gCAAgC,CAAC;AACtG,YAAY,EAAE,sBAAsB,EAAE,uBAAuB,EAAE,MAAM,gCAAgC,CAAC;AACtG,YAAY,EAAE,SAAS,EAAE,MAAM,gCAAgC,CAAC;AAChE,YAAY,EAAE,WAAW,EAAE,MAAM,kCAAkC,CAAC;AACpE,YAAY,EAAE,YAAY,EAAE,MAAM,gCAAgC,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@viswa-test/audit-log",
3
- "version": "0.0.2",
3
+ "version": "0.0.3",
4
4
  "author": "Viswa Koduru",
5
5
  "description": "",
6
6
  "license": "MIT",
@@ -1,2 +0,0 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("../../_virtual/_tslib.js"),s=require("react/jsx-runtime"),t=require("react"),a=require("lucide-react"),n=require("./CommonUI.js"),i=require("./AuditLogPanel.module.css.js");function l(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var c=l(t),d={AI_SUGGESTED:{icon:s.jsx(a.Sparkles,{size:14,color:"#9333ea"}),bg:"#f3e8ff"},ITERATED:{icon:s.jsx(a.RefreshCcw,{size:14,color:"#2563eb"}),bg:"#dbeafe"},MODIFIED:{icon:s.jsx(a.PenLine,{size:14,color:"#f59e0b"}),bg:"#fef3c7"},APPROVED:{icon:s.jsx(a.CheckCircle2,{size:16,color:"#16a34a"}),bg:"#dcfce7"},ACCEPTED:{icon:s.jsx(a.CheckCircle2,{size:16,color:"#16a34a"}),bg:"#dcfce7"},REJECTED:{icon:s.jsx(a.XCircle,{size:16,color:"#dc2626"}),bg:"#fee2e2"},REVERTED:{icon:s.jsx(a.RotateCcw,{size:14,color:"#ea580c"}),bg:"#ffedd5"},REINSTATE:{icon:s.jsx(a.RotateCw,{size:14,color:"#059669"}),bg:"#d1fae5"},RESTORE:{icon:s.jsx(a.History,{size:14,color:"#4f46e5"}),bg:"#e0e7ff"}};exports.AuditLogItem=function(l){var o,r,u,g,m,f=l.log,p=l.globalIcons,x=l.globalClasses,v=l.globalStyles,h=l.renderItemHeaderLeft,_=l.renderItemHeaderRight,j=l.renderItemExpandedBody,b=l.onRowClick,C=l.itemConfig,E=t.useState(f.isInitiallyExpanded||!1),N=E[0],y=E[1],T={isExpanded:N,expand:function(){return y(!0)},collapse:function(){return y(!1)},toggle:function(){return y(!N)}},B=h?h(f):null,k=_?_(f,N,T):null,I=j?j(f,T):null,R=Boolean(f.renderExpandedBody||f.customExpandedContent),D=Boolean(f.tags&&f.tags.length>0||f.impact||f.contentBlocks&&f.contentBlocks.length>0),H=R||Boolean(I)||D,z=function(e){if(!e)return{icon:s.jsx("div",{style:{width:8,height:8,borderRadius:"50%",backgroundColor:"#64748b"}}),bg:"#f1f5f9"};var t=e.toUpperCase().trim();return d[t]||{icon:s.jsx("div",{style:{width:8,height:8,borderRadius:"50%",backgroundColor:"#64748b"}}),bg:"#f1f5f9"}}(f.actionType),S=(null===(o=null==C?void 0:C.getIcon)||void 0===o?void 0:o.call(C,f))||f.icon||(null===(r=null==p?void 0:p.actionTypes)||void 0===r?void 0:r[f.actionType])||z.icon,L=(null===(u=null==C?void 0:C.getIconBg)||void 0===u?void 0:u.call(C,f))||f.iconBgColor||z.bg,A=(null===(g=null==C?void 0:C.getStyle)||void 0===g?void 0:g.call(C,f))||{};return s.jsxs("div",e.__assign({className:"".concat(i.default.itemWrapper," ").concat((null==x?void 0:x.itemWrapper)||""," ").concat(f.className||""),style:e.__assign(e.__assign(e.__assign({},null==v?void 0:v.itemWrapper),f.style),A)},{children:[s.jsxs("div",e.__assign({onClick:function(e){e.target.closest("button, a, input, select")||(b&&b(f,T),H&&y(!N))},className:"".concat(i.default.itemHeader," ").concat(H?i.default.itemHeaderClickable:i.default.itemHeaderDefault)},{children:[s.jsx("div",e.__assign({className:i.default.itemLeft},{children:f.renderHeaderLeft?f.renderHeaderLeft():B||s.jsxs(s.Fragment,{children:[s.jsx("div",e.__assign({className:i.default.itemIconWrapper,style:{backgroundColor:L}},{children:S})),s.jsxs("div",{children:[s.jsx("div",e.__assign({className:i.default.itemTitle},{children:f.title})),s.jsx("div",e.__assign({className:i.default.itemSubtitle},{children:f.subtitle}))]})]})})),s.jsx("div",e.__assign({className:i.default.itemRight},{children:f.renderHeaderRight?f.renderHeaderRight(N,T):k||s.jsxs(s.Fragment,{children:[s.jsx("span",e.__assign({className:i.default.itemTimestamp},{children:f.timestamp})),H&&s.jsx("div",e.__assign({className:i.default.itemChevron},{children:N?(null==p?void 0:p.chevronUp)||s.jsx(a.ChevronUp,{size:16}):(null==p?void 0:p.chevronDown)||s.jsx(a.ChevronDown,{size:16})}))]})}))]})),N&&H&&s.jsx("div",e.__assign({className:i.default.itemExpanded},{children:f.renderExpandedBody?f.renderExpandedBody(T):I||(f.customExpandedContent?f.customExpandedContent:s.jsxs(s.Fragment,{children:[f.tags&&f.tags.length>0&&s.jsx("div",{children:s.jsx("div",e.__assign({className:i.default.tagsChip},{children:f.tags.map(function(t,a){return s.jsxs(c.default.Fragment,{children:[s.jsx("span",{children:t}),a<f.tags.length-1&&s.jsx("span",e.__assign({className:i.default.tagSeparator},{children:"•"}))]},a)})}))}),(f.impact||f.contentBlocks&&f.contentBlocks.length>0)&&s.jsxs("div",e.__assign({className:i.default.impactContainer},{children:[f.impact&&s.jsxs("div",e.__assign({className:f.impact.className,style:f.impact.style},{children:[s.jsxs("div",e.__assign({className:i.default.impactHeader},{children:[s.jsx("span",e.__assign({className:i.default.impactLabel},{children:f.impact.label||"Impact"})),f.impact.severity&&s.jsx("span",e.__assign({className:"".concat(i.default.severityBadge," ").concat("High"===f.impact.severity?i.default.severityHigh:i.default.severityOther)},{children:f.impact.severity}))]})),s.jsx("div",e.__assign({className:i.default.impactDescription},{children:s.jsx(n.TruncatedText,{content:f.impact.description,config:f.impact.truncation})}))]})),f.impact&&f.contentBlocks&&f.contentBlocks.length>0&&s.jsx("div",{className:i.default.divider}),null===(m=f.contentBlocks)||void 0===m?void 0:m.map(function(t,a){return s.jsxs("div",e.__assign({className:i.default.contentBlock},{children:[s.jsx("span",e.__assign({className:i.default.contentBlockLabel},{children:t.label})),s.jsx("div",e.__assign({className:i.default.contentBlockText},{children:s.jsx(n.TruncatedText,{content:t.content,config:t.truncation})}))]}),a)})]}))]}))}))]}))},exports.DEFAULT_ACTION_CONFIGS=d;
2
- //# sourceMappingURL=AuditLogPanelItem.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"AuditLogPanelItem.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
@@ -1,2 +0,0 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});exports.extractComparisonContext=function(t,a,e){if(t&&0!==t.length){var r=t.map(function(t){return t.rawPayload?t.rawPayload:t}),o=r[0],n=r[r.length-1],i=function(t,a){var e,r,o,n=null===(e=null==t?void 0:t.changelog_metadata)||void 0===e?void 0:e[0];if(!n)return"N/A";var i=n.property_name||"Property",l=(null===(r=n.property_value)||void 0===r?void 0:r[a])||{};if(void 0!==l[i])return l[i];var d=Object.keys(l).find(function(t){return t.toLowerCase()===i.toLowerCase()});return d&&void 0!==l[d]?l[d]:null!==(o=Object.values(l)[0])&&void 0!==o?o:"N/A"},l=i(o,"current_value"),d=i(n,"previous_value");if("N/A"!==l||"N/A"!==d)return{title:(null==a?void 0:a.comparisonTitle)||"Final Approved Text Vs. Original",latestTextLabel:(null==a?void 0:a.comparisonLatestLabel)||"Changed to:",originalTextLabel:(null==a?void 0:a.comparisonOriginalLabel)||"Before:",latestText:String(l),originalText:String(d),isInitiallyExpanded:!0,truncation:e,rawPayload:r}}},exports.transformBackendLogs=function(t,a,e){if(!t||!Array.isArray(t))return[];var r=(null==a?void 0:a.changedToSuffix)||"Changed To:",o=(null==a?void 0:a.fromSuffix)||"From:";return t.map(function(t){var a,n,i,l,d=new Set,u="",v=[];return t.changelog_metadata&&Array.isArray(t.changelog_metadata)&&t.changelog_metadata.forEach(function(t){var a,n,i,c;(null===(a=t.metadata)||void 0===a?void 0:a.tags)&&Array.isArray(t.metadata.tags)&&t.metadata.tags.forEach(function(t){return d.add(t)}),(null===(n=t.metadata)||void 0===n?void 0:n.severity)&&!u&&(u=t.metadata.severity,l=t.metadata.impact||l);var s=t.property_name||"Property",p=(null===(i=t.property_value)||void 0===i?void 0:i.previous_value)||{},g=(null===(c=t.property_value)||void 0===c?void 0:c.current_value)||{},f=function(t){var a;if(void 0!==t[s])return t[s];var e=Object.keys(t).find(function(t){return t.toLowerCase()===s.toLowerCase()});return e&&void 0!==t[e]?t[e]:null!==(a=Object.values(t)[0])&&void 0!==a?a:"None"},m=f(p),y=f(g);v.push({label:"".concat(r),content:String(y),truncation:e}),v.push({label:"".concat(o),content:String(m),truncation:e})}),{id:t.change_log_id,actionType:(null===(i=null===(n=null===(a=null==t?void 0:t.changelog_metadata)||void 0===a?void 0:a[0])||void 0===n?void 0:n.metadata)||void 0===i?void 0:i.action_type)||"UPDATE",title:t.changeTitle,subtitle:t.modifiedbyname,timestamp:t.created_at?new Date(t.created_at).toLocaleString():"",tags:Array.from(d),impact:{severity:u,description:l,truncation:e},contentBlocks:v,rawPayload:t}})};
2
- //# sourceMappingURL=AuditLogPanelAdapter.js.map