react-luminus-components 1.5.18 → 1.5.21
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/.vite/manifest.json +32 -32
- package/dist/{FormDisabledProvider-Ct-odePz.js → FormDisabledProvider-CI3pHhAC.js} +3 -3
- package/dist/{FormDisabledProvider-BNE4w-91.cjs → FormDisabledProvider-Co150suu.cjs} +1 -1
- package/dist/ShortcutLinksContext-9stXS_vz.cjs +281 -0
- package/dist/ShortcutLinksContext-Ti4-xeFL.js +28259 -0
- package/dist/components/Documents/Documents.d.ts +3 -10
- package/dist/components/Documents/components/DocumentsFilesTable/DocumentsFilesTable.d.ts +3 -11
- package/dist/components/Documents/components/DocumentsFilesTable/hooks/useDocumentsFilesColumns.d.ts +2 -2
- package/dist/components/Imports/Result/Result.d.ts +3 -5
- package/dist/components/Localization/LocalizationImport/LocalizationImport.d.ts +3 -5
- package/dist/components/NotifCenter/Actions/NotificationActions.d.ts +3 -7
- package/dist/components/NotifCenter/Actions/components/HistoryTable/NotificationHistoryTable.d.ts +3 -5
- package/dist/components/NotifCenter/Users/NotificationUsers.d.ts +3 -4
- package/dist/components/NotifCenter/Users/components/EmployeeNotifTable/EmployeeNotifHistoryTable.d.ts +3 -4
- package/dist/components/common/Approvals/Delegations/ApprovalsDelegations.d.ts +4 -7
- package/dist/components/common/Approvals/Delegations/comps/DelegationsTable/DelegationsTable.d.ts +3 -6
- package/dist/components/common/LineChart/LineChart.d.ts +4 -1
- package/dist/components/common/PermissionsSubstitute/SubstituteTable/SubstituteTable.d.ts +3 -6
- package/dist/contexts.cjs.js +1 -1
- package/dist/contexts.es.js +5 -5
- package/dist/hooks.cjs.js +1 -1
- package/dist/hooks.es.js +10 -10
- package/dist/layout.cjs.js +1 -1
- package/dist/layout.es.js +6 -6
- package/dist/{localStorageUtils-DBNNyBcc.js → localStorageUtils-8ScvouMK.js} +1 -1
- package/dist/localStorageUtils-BCZln9KS.cjs +1 -0
- package/dist/main.cjs.js +19 -19
- package/dist/main.es.js +2594 -2611
- package/dist/style.css +1 -1
- package/dist/{useLocalStorageState-DG9g_lFm.js → useLocalStorageState-CCKHuYoD.js} +1 -1
- package/dist/{useLocalStorageState-CGKmNXMv.cjs → useLocalStorageState-Ct-tObyk.cjs} +1 -1
- package/dist/utils/bnfValueFormat/bnfValueFormat.d.ts +3 -5
- package/dist/utils/index.d.ts +0 -1
- package/dist/utils.cjs.js +1 -1
- package/dist/utils.es.js +69 -107
- package/package.json +2 -2
- package/dist/ShortcutLinksContext-B6B_uG2X.js +0 -39866
- package/dist/ShortcutLinksContext-d3AdgJhg.cjs +0 -334
- package/dist/localStorageUtils-CBQuZzg0.cjs +0 -1
- package/dist/models/bnfTable/BnfTableWrappedProps.d.ts +0 -70
- package/dist/models/legacyBnfTable/TableDefaultConfig.d.ts +0 -23
- package/dist/utils/bnfTable/bnfTableUtils.d.ts +0 -5
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";const i=require("react-router-dom"),s=(r,t,o)=>{let e=r;return t!==void 0&&(e=Math.max(e,t)),o!==void 0&&(e=Math.min(e,o)),e};function l(r,t){r.setValue(t,null)}function S(r,t){t.forEach(o=>{l(r,o)})}const c=(r,t,o=!0)=>Object.keys(r).reduce((e,n)=>{const u=r[n];return o&&(u==null||u==="")||(e[n]=t(u,n)),e},{}),a=(r,t)=>{const o=t!=null&&t.query?new URLSearchParams(c(t.query,e=>(e==null?void 0:e.toString())??"")):null;return`${i.generatePath(r,t!=null&&t.path?c(t.path,e=>(e==null?void 0:e.toString())??null):void 0)}${o&&o.size>0?`?${o.toString()}`:""}`},g=[{key:"msal",mode:"includes"},{key:"token",mode:"exact"},{key:"user",mode:"exact"},{key:"user-delegation",mode:"exact"}],h=(r=!0)=>{const t={};for(let o=0;o<localStorage.length;o++){const e=localStorage.key(o);if(e&&!(r&&g.some(({key:n,mode:u})=>u==="includes"?e.includes(n):e===n)))try{t[e]=JSON.parse(localStorage.getItem(e))}catch{t[e]=localStorage.getItem(e)}}return t},d=r=>{try{const t=JSON.parse(r);if(typeof t!="object"||t===null)return!1;Object.entries(t).forEach(([o,e])=>{localStorage.setItem(o,JSON.stringify(e))})}catch{return!1}return!0};exports.dumpLocalStorage=h;exports.generateApiPath=a;exports.hookFormSetNull=l;exports.hookFormSetNulls=S;exports.limitNumber=s;exports.restoreLocalStorage=d;
|
|
@@ -1,70 +0,0 @@
|
|
|
1
|
-
import { Dispatch, SetStateAction } from 'react';
|
|
2
|
-
import { BnfTableColumnDef, BnfTableInitState, TableBoundStore } from 'tanstack-bnf-table';
|
|
3
|
-
|
|
4
|
-
type BnfTableWrappedProps<T> = {
|
|
5
|
-
columns: BnfTableColumnDef<T>[];
|
|
6
|
-
data: T[];
|
|
7
|
-
className?: string;
|
|
8
|
-
tableId?: number;
|
|
9
|
-
onRowClick?: (row: T) => void;
|
|
10
|
-
rowNavigation?: (row: T) => string;
|
|
11
|
-
idColumn?: string;
|
|
12
|
-
customRows?: {
|
|
13
|
-
selector: (row: T) => boolean;
|
|
14
|
-
className: string;
|
|
15
|
-
}[];
|
|
16
|
-
archiveHighlighting?: {
|
|
17
|
-
enable: boolean;
|
|
18
|
-
column?: string;
|
|
19
|
-
};
|
|
20
|
-
initState?: Partial<BnfTableInitState>;
|
|
21
|
-
tableStore?: TableBoundStore;
|
|
22
|
-
rowSelection?: {
|
|
23
|
-
enabled: boolean;
|
|
24
|
-
getRowId: (row: T) => string;
|
|
25
|
-
selectedRows: Record<string, boolean>;
|
|
26
|
-
setSelectedRows: Dispatch<SetStateAction<Record<string, boolean>>>;
|
|
27
|
-
};
|
|
28
|
-
setDisplayedRows?: Dispatch<SetStateAction<T[]>>;
|
|
29
|
-
getRowProps?: (values: T) => React.HTMLAttributes<HTMLDivElement> & React.HTMLAttributes<HTMLAnchorElement>;
|
|
30
|
-
filtering?: {
|
|
31
|
-
enabled?: boolean;
|
|
32
|
-
};
|
|
33
|
-
sorting?: {
|
|
34
|
-
enabled?: boolean;
|
|
35
|
-
};
|
|
36
|
-
pagination?: {
|
|
37
|
-
mode?: 'enabled' | 'disabled' | 'auto';
|
|
38
|
-
};
|
|
39
|
-
resizing?: {
|
|
40
|
-
mode?: 'onChange' | 'onEnd';
|
|
41
|
-
enabled?: boolean;
|
|
42
|
-
};
|
|
43
|
-
reordering?: {
|
|
44
|
-
enabled?: boolean;
|
|
45
|
-
};
|
|
46
|
-
columnPinning?: {
|
|
47
|
-
enabled?: boolean;
|
|
48
|
-
};
|
|
49
|
-
grouping?: {
|
|
50
|
-
enabled?: boolean;
|
|
51
|
-
mode?: 'reorder' | 'remove' | false;
|
|
52
|
-
};
|
|
53
|
-
expanding?: {
|
|
54
|
-
enabled?: boolean;
|
|
55
|
-
};
|
|
56
|
-
fullScreen?: {
|
|
57
|
-
enabled?: boolean;
|
|
58
|
-
};
|
|
59
|
-
sizing?: {
|
|
60
|
-
enabled?: boolean;
|
|
61
|
-
};
|
|
62
|
-
excelExport?: {
|
|
63
|
-
enabled: true;
|
|
64
|
-
excelName?: string;
|
|
65
|
-
};
|
|
66
|
-
bottomBar?: {
|
|
67
|
-
hidden?: boolean;
|
|
68
|
-
};
|
|
69
|
-
};
|
|
70
|
-
export default BnfTableWrappedProps;
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
type TableDefaultConfig = {
|
|
2
|
-
columnsOrder?: string[];
|
|
3
|
-
hiddenColumns?: string[];
|
|
4
|
-
defaultPageSize?: number;
|
|
5
|
-
defaultSort?: {
|
|
6
|
-
id: string;
|
|
7
|
-
desc: boolean;
|
|
8
|
-
} | null;
|
|
9
|
-
defaultFilters?: {
|
|
10
|
-
id: string;
|
|
11
|
-
value: string;
|
|
12
|
-
}[];
|
|
13
|
-
fixedColumns?: {
|
|
14
|
-
left: string | null;
|
|
15
|
-
right: string | null;
|
|
16
|
-
};
|
|
17
|
-
isDense?: boolean;
|
|
18
|
-
onMobile?: {
|
|
19
|
-
defaultDisplayGroup?: string;
|
|
20
|
-
showColumnNames?: boolean;
|
|
21
|
-
};
|
|
22
|
-
};
|
|
23
|
-
export default TableDefaultConfig;
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import { default as TableDefaultConfig } from '../../models/legacyBnfTable/TableDefaultConfig';
|
|
2
|
-
import { BnfTableInitState } from 'tanstack-bnf-table';
|
|
3
|
-
|
|
4
|
-
export declare const configToTanstackTableState: (config: TableDefaultConfig) => BnfTableInitState;
|
|
5
|
-
export declare const buildTableSearchQuery: (values: Partial<BnfTableInitState>, tableId?: string) => string;
|