@viswa-test/audit-log 0.0.1 → 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.
- package/dist/cjs/components/AuditLogPanel/AuditLogItem.js +2 -0
- package/dist/cjs/components/AuditLogPanel/AuditLogItem.js.map +1 -0
- package/dist/cjs/components/AuditLogPanel/AuditLogPanel.js +1 -1
- package/dist/cjs/components/AuditLogPanel/AuditLogPanel.module.css.js +1 -1
- package/dist/cjs/components/AuditLogPanel/AuditLogSandBox.js +1 -1
- package/dist/cjs/components/AuditLogPanel/ComparisonSummaryCard.js +1 -1
- package/dist/cjs/components/AuditLogPanel/FilterSection.js +1 -1
- package/dist/cjs/components/AuditLogPanel/Services/useAuditLogDistinctValues.js +2 -0
- package/dist/cjs/components/AuditLogPanel/Services/useAuditLogDistinctValues.js.map +1 -0
- package/dist/cjs/components/AuditLogPanel/Services/useAuditLogsData.js +2 -0
- package/dist/cjs/components/AuditLogPanel/Services/useAuditLogsData.js.map +1 -0
- package/dist/cjs/styles.css +1 -1
- package/dist/components/AuditLogPanel/AuditLogItem.js +2 -0
- package/dist/components/AuditLogPanel/AuditLogItem.js.map +1 -0
- package/dist/components/AuditLogPanel/AuditLogPanel.js +1 -1
- package/dist/components/AuditLogPanel/AuditLogPanel.module.css.js +1 -1
- package/dist/components/AuditLogPanel/AuditLogSandBox.js +1 -1
- package/dist/components/AuditLogPanel/ComparisonSummaryCard.js +1 -1
- package/dist/components/AuditLogPanel/FilterSection.js +1 -1
- package/dist/components/AuditLogPanel/Services/useAuditLogDistinctValues.js +2 -0
- package/dist/components/AuditLogPanel/Services/useAuditLogDistinctValues.js.map +1 -0
- package/dist/components/AuditLogPanel/Services/useAuditLogsData.js +2 -0
- package/dist/components/AuditLogPanel/Services/useAuditLogsData.js.map +1 -0
- package/dist/styles.css +1 -1
- package/dist/types/components/AuditLogPanel/{AuditLogPanel.types.d.ts → AuditLog.types.d.ts} +37 -75
- package/dist/types/components/AuditLogPanel/AuditLog.types.d.ts.map +1 -0
- package/dist/types/components/AuditLogPanel/{AuditLogPanelItem.d.ts → AuditLogItem.d.ts} +2 -6
- package/dist/types/components/AuditLogPanel/AuditLogItem.d.ts.map +1 -0
- package/dist/types/components/AuditLogPanel/AuditLogPanel.d.ts +1 -3
- package/dist/types/components/AuditLogPanel/AuditLogPanel.d.ts.map +1 -1
- package/dist/types/components/AuditLogPanel/AuditLogSandBox.d.ts.map +1 -1
- package/dist/types/components/AuditLogPanel/CommonUI.d.ts +2 -2
- package/dist/types/components/AuditLogPanel/CommonUI.d.ts.map +1 -1
- package/dist/types/components/AuditLogPanel/ComparisonSummaryCard.d.ts +1 -1
- package/dist/types/components/AuditLogPanel/ComparisonSummaryCard.d.ts.map +1 -1
- package/dist/types/components/AuditLogPanel/FilterSection.d.ts +1 -1
- package/dist/types/components/AuditLogPanel/FilterSection.d.ts.map +1 -1
- package/dist/types/components/AuditLogPanel/Services/useAuditLogDistinctValues.d.ts +8 -0
- package/dist/types/components/AuditLogPanel/Services/useAuditLogDistinctValues.d.ts.map +1 -0
- package/dist/types/components/AuditLogPanel/Services/{useAuditLogPanelData.d.ts → useAuditLogsData.d.ts} +3 -3
- package/dist/types/components/AuditLogPanel/Services/useAuditLogsData.d.ts.map +1 -0
- package/package.json +1 -1
- package/dist/cjs/components/AuditLogPanel/AuditLogPanelItem.js +0 -2
- package/dist/cjs/components/AuditLogPanel/AuditLogPanelItem.js.map +0 -1
- package/dist/cjs/components/AuditLogPanel/Services/AuditLogPanelAdapter.js +0 -2
- package/dist/cjs/components/AuditLogPanel/Services/AuditLogPanelAdapter.js.map +0 -1
- package/dist/cjs/components/AuditLogPanel/Services/useAuditLogPanelData.js +0 -2
- package/dist/cjs/components/AuditLogPanel/Services/useAuditLogPanelData.js.map +0 -1
- package/dist/cjs/components/AuditLogPanel/Services/useAuditLogPanelDistinctValues.js +0 -2
- package/dist/cjs/components/AuditLogPanel/Services/useAuditLogPanelDistinctValues.js.map +0 -1
- package/dist/cjs/components/AuditLogPanel/Services/useAuditLogPanelFilters.js +0 -2
- package/dist/cjs/components/AuditLogPanel/Services/useAuditLogPanelFilters.js.map +0 -1
- package/dist/cjs/components/AuditLogPanel/Services/useAuditLogPanelScroll.js +0 -2
- package/dist/cjs/components/AuditLogPanel/Services/useAuditLogPanelScroll.js.map +0 -1
- package/dist/components/AuditLogPanel/AuditLogPanelItem.js +0 -2
- package/dist/components/AuditLogPanel/AuditLogPanelItem.js.map +0 -1
- package/dist/components/AuditLogPanel/Services/AuditLogPanelAdapter.js +0 -2
- package/dist/components/AuditLogPanel/Services/AuditLogPanelAdapter.js.map +0 -1
- package/dist/components/AuditLogPanel/Services/useAuditLogPanelData.js +0 -2
- package/dist/components/AuditLogPanel/Services/useAuditLogPanelData.js.map +0 -1
- package/dist/components/AuditLogPanel/Services/useAuditLogPanelDistinctValues.js +0 -2
- package/dist/components/AuditLogPanel/Services/useAuditLogPanelDistinctValues.js.map +0 -1
- package/dist/components/AuditLogPanel/Services/useAuditLogPanelFilters.js +0 -2
- package/dist/components/AuditLogPanel/Services/useAuditLogPanelFilters.js.map +0 -1
- package/dist/components/AuditLogPanel/Services/useAuditLogPanelScroll.js +0 -2
- package/dist/components/AuditLogPanel/Services/useAuditLogPanelScroll.js.map +0 -1
- package/dist/types/components/AuditLogPanel/AuditLogPanel.types.d.ts.map +0 -1
- package/dist/types/components/AuditLogPanel/AuditLogPanelItem.d.ts.map +0 -1
- package/dist/types/components/AuditLogPanel/Constants/constants.d.ts +0 -6
- package/dist/types/components/AuditLogPanel/Constants/constants.d.ts.map +0 -1
- package/dist/types/components/AuditLogPanel/Services/AuditLogPanelAdapter.d.ts +0 -4
- package/dist/types/components/AuditLogPanel/Services/AuditLogPanelAdapter.d.ts.map +0 -1
- package/dist/types/components/AuditLogPanel/Services/useAuditLogPanelData.d.ts.map +0 -1
- package/dist/types/components/AuditLogPanel/Services/useAuditLogPanelDistinctValues.d.ts +0 -9
- package/dist/types/components/AuditLogPanel/Services/useAuditLogPanelDistinctValues.d.ts.map +0 -1
- package/dist/types/components/AuditLogPanel/Services/useAuditLogPanelFilters.d.ts +0 -37
- package/dist/types/components/AuditLogPanel/Services/useAuditLogPanelFilters.d.ts.map +0 -1
- package/dist/types/components/AuditLogPanel/Services/useAuditLogPanelScroll.d.ts +0 -3
- 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{
|
|
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/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}
|
package/dist/types/components/AuditLogPanel/{AuditLogPanel.types.d.ts → AuditLog.types.d.ts}
RENAMED
|
@@ -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
|
-
|
|
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?:
|
|
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?:
|
|
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
|
|
69
|
-
originalText
|
|
85
|
+
latestText: string | ReactNode;
|
|
86
|
+
originalText: string | ReactNode;
|
|
70
87
|
isInitiallyExpanded?: boolean;
|
|
71
|
-
truncation?:
|
|
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' | '
|
|
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?:
|
|
130
|
+
dataSourceMode?: "external" | "internal";
|
|
141
131
|
comparisonContext?: ComparisonContextData;
|
|
142
|
-
|
|
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=
|
|
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":"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"}
|
|
@@ -1,9 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { AuditLogEntry, AuditLogIcons, RowClickHelpers } from './
|
|
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=
|
|
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 './
|
|
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,
|
|
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 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AuditLogSandBox.d.ts","sourceRoot":"","sources":["../../../../src/components/AuditLogPanel/AuditLogSandBox.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"AuditLogSandBox.d.ts","sourceRoot":"","sources":["../../../../src/components/AuditLogPanel/AuditLogSandBox.tsx"],"names":[],"mappings":"AAiGA,eAAO,MAAM,eAAe,+CA8J3B,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import {
|
|
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?:
|
|
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,
|
|
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 './
|
|
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,
|
|
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 './
|
|
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,
|
|
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
|
|
2
|
-
export declare const useAuditLogsData: (getData: ApiEndpointConfig | undefined, activeFilters: Record<string, any>, isOpen: boolean, isExternalMode: boolean
|
|
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=
|
|
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"}
|
package/package.json
CHANGED
|
@@ -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
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"AuditLogPanelAdapter.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("../../../_virtual/_tslib.js"),t=require("react"),r=require("./AuditLogPanelAdapter.js");exports.useAuditLogsData=function(n,i,a,s,o,u,c){var d=t.useState([]),l=d[0],f=d[1],v=t.useState(!1),_=v[0],g=v[1],p=t.useState(!1),b=p[0],h=p[1],S=t.useState(!0),j=S[0],y=S[1],L=t.useState(),O=L[0],m=L[1],A=t.useRef(!1),x=t.useCallback(function(t,i){return void 0===t&&(t=!1),e.__awaiter(void 0,void 0,void 0,function(){var a,d,l,v,_,p,b,S,j,L,x,P,q;return e.__generator(this,function(z){switch(z.label){case 0:if(!n||s)return[2];if(A.current)return[2];A.current=!0,t?g(!0):h(!0),z.label=1;case 1:return z.trys.push([1,4,5,6]),d=(a=u||{}).pageSize,l=e.__rest(a,["pageSize"]),v=Object.fromEntries(Object.entries(l).filter(function(e){return e[0],void 0!==e[1]})),_={configId:n.configId,pageSize:d||10,cursor:t?void 0:null!=i?i:O,filters:e.__assign(e.__assign({},n.baseQuery),v)},p=Object.fromEntries(Object.entries(_).filter(function(e){return e[0],void 0!==e[1]})),[4,fetch("".concat(n.baseUrl).concat(n.endpoint),{method:n.method||"POST",headers:e.__assign({"Content-Type":"application/json"},n.headers),body:JSON.stringify(p)})];case 2:return[4,z.sent().json()];case 3:return b=z.sent(),S=(null===(x=null==b?void 0:b.data)||void 0===x?void 0:x.items)||[],j=r.transformBackendLogs(S,o,c),f(function(r){return t?j:e.__spreadArray(e.__spreadArray([],r,!0),j,!0)}),m(null===(P=null==b?void 0:b.data)||void 0===P?void 0:P.nextCursor),y(!!(null===(q=null==b?void 0:b.data)||void 0===q?void 0:q.hasNext)),[3,6];case 4:return L=z.sent(),console.error("AuditLogPanel: Failed to fetch logs",L),[3,6];case 5:return A.current=!1,t?g(!1):h(!1),[7];case 6:return[2]}})})},[n,i,O,s,o,u]);return t.useEffect(function(){a&&!s&&n&&x(!0)},[a,i,s]),{apiLogs:l,apiLoading:_,apiLoadingMore:b,apiHasMore:j,fetchLogs:x}};
|
|
2
|
-
//# sourceMappingURL=useAuditLogPanelData.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"useAuditLogPanelData.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("../../../_virtual/_tslib.js"),t=require("react");exports.useAuditLogDistinctValues=function(n,a,r,i){void 0===r&&(r=[]);var s=t.useState({}),o=s[0],l=s[1],c=t.useState(!1),u=c[0],d=c[1],_=r.join(",");return t.useEffect(function(){var t=(null==n?void 0:n.configId)||a;if(i&&(null==n?void 0:n.baseUrl)&&(null==n?void 0:n.endpoint)&&t){e.__awaiter(void 0,void 0,void 0,function(){var a,r,i,s,o,c,u,p;return e.__generator(this,function(v){switch(v.label){case 0:d(!0),v.label=1;case 1:return v.trys.push([1,4,5,6]),a=n.baseUrl.replace(/\/$/,""),r=n.endpoint.replace(/^\/|\/$/g,""),i=new URL("".concat(a,"/").concat(r,"/").concat(t)),(s=_?_.split(","):[]).length>0&&s[0]&&i.searchParams.append("external_resource_id",s[0]),[4,fetch(i.toString(),{method:"GET",headers:e.__assign({"Content-Type":"application/json"},n.headers)})];case 2:return[4,v.sent().json()];case 3:return o=v.sent(),c=(null==o?void 0:o.data)||{},u={},Array.isArray(c.change_made_title)&&(u.changeTitles=c.change_made_title.map(function(e){return{label:e,value:e}})),c.change_made_by_user&&"object"==typeof c.change_made_by_user&&(u.analysts=Object.entries(c.change_made_by_user).map(function(e){return{label:e[0],value:e[1]}})),l(u),[3,6];case 4:return p=v.sent(),console.error("AuditLogPanel: Failed to fetch distinct values",p),[3,6];case 5:return d(!1),[7];case 6:return[2]}})})}},[i,null==n?void 0:n.baseUrl,null==n?void 0:n.endpoint,null==n?void 0:n.configId,a,_]),{dynamicOptionsMap:o,loading:u}};
|
|
2
|
-
//# sourceMappingURL=useAuditLogPanelDistinctValues.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"useAuditLogPanelDistinctValues.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|