react-luminus-components 1.3.216 → 1.3.218
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 +8 -8
- package/dist/components/Form/DropdownPicker/DropdownPicker.d.ts +1 -1
- package/dist/components/HookForm/DropdownPicker/HookFormDropdownPicker.d.ts +1 -1
- package/dist/components/common/MonthPicker/MonthPicker.d.ts +2 -1
- package/dist/components/common/SimplePicker/SimplePicker.d.ts +3 -1
- package/dist/hooks.cjs.js +1 -1
- package/dist/hooks.es.js +1 -1
- package/dist/main.cjs.js +31 -31
- package/dist/main.es.js +3285 -3280
- package/dist/models/prop-types/InputProps/DropdownPickerProps.d.ts +2 -0
- package/dist/models/texts/CustomSelectTexts.d.ts +1 -0
- package/dist/style.css +1 -1
- package/dist/useRenderDraggableInPortal-BEHshGHp.cjs +1 -0
- package/dist/{useRenderDraggableInPortal-BuERxmg5.js → useRenderDraggableInPortal-BEwjtw-a.js} +20 -20
- package/package.json +1 -1
- package/dist/useRenderDraggableInPortal-C7DO4NtL.cjs +0 -1
package/dist/.vite/manifest.json
CHANGED
|
@@ -79,18 +79,18 @@
|
|
|
79
79
|
"_ShortcutLinksContext-quiVpTmR.cjs"
|
|
80
80
|
]
|
|
81
81
|
},
|
|
82
|
-
"_useRenderDraggableInPortal-
|
|
83
|
-
"file": "useRenderDraggableInPortal-
|
|
82
|
+
"_useRenderDraggableInPortal-BEHshGHp.cjs": {
|
|
83
|
+
"file": "useRenderDraggableInPortal-BEHshGHp.cjs",
|
|
84
84
|
"name": "useRenderDraggableInPortal",
|
|
85
85
|
"imports": [
|
|
86
|
-
"_ShortcutLinksContext-
|
|
86
|
+
"_ShortcutLinksContext-quiVpTmR.cjs"
|
|
87
87
|
]
|
|
88
88
|
},
|
|
89
|
-
"_useRenderDraggableInPortal-
|
|
90
|
-
"file": "useRenderDraggableInPortal-
|
|
89
|
+
"_useRenderDraggableInPortal-BEwjtw-a.js": {
|
|
90
|
+
"file": "useRenderDraggableInPortal-BEwjtw-a.js",
|
|
91
91
|
"name": "useRenderDraggableInPortal",
|
|
92
92
|
"imports": [
|
|
93
|
-
"_ShortcutLinksContext-
|
|
93
|
+
"_ShortcutLinksContext-DzfphCu1.js"
|
|
94
94
|
]
|
|
95
95
|
},
|
|
96
96
|
"src/contexts/index.ts": {
|
|
@@ -114,7 +114,7 @@
|
|
|
114
114
|
"_ShortcutLinksContext-quiVpTmR.cjs",
|
|
115
115
|
"_useClickOutside-D0505nsm.cjs",
|
|
116
116
|
"_usePermissions-Bt-U0tyQ.cjs",
|
|
117
|
-
"_useRenderDraggableInPortal-
|
|
117
|
+
"_useRenderDraggableInPortal-BEHshGHp.cjs",
|
|
118
118
|
"_useGetApiData-2F1aGcu6.cjs",
|
|
119
119
|
"_useLocalStorageState-BFc8Gc8H.cjs"
|
|
120
120
|
]
|
|
@@ -140,7 +140,7 @@
|
|
|
140
140
|
"_Loading-KVIIRls8.cjs",
|
|
141
141
|
"_searchUtils-B2D3GrPW.cjs",
|
|
142
142
|
"_useClickOutside-D0505nsm.cjs",
|
|
143
|
-
"_useRenderDraggableInPortal-
|
|
143
|
+
"_useRenderDraggableInPortal-BEHshGHp.cjs",
|
|
144
144
|
"_useGetApiData-2F1aGcu6.cjs"
|
|
145
145
|
]
|
|
146
146
|
},
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { DropdownPickerProps, DropdownPickerOption, FormSelectOption } from '../../../models/index';
|
|
2
2
|
|
|
3
|
-
declare const DropdownPicker: ({ InputContainer, items, selectedItemNavigateTo, onSearchQueryChange, texts, isLoading, value, onSelect, label, withoutLabel, size, dropdownItemsNameWidth, additionalColumns, hidden, disabled, displayIdAsName, CustomOnChangeComponent, className, archiveColumn, icon, hint, addNewOptionPath, refreshOptions, MiniDetailComponent, miniDetailPlacement, }: DropdownPickerProps & {
|
|
3
|
+
declare const DropdownPicker: ({ InputContainer, items, selectedItemNavigateTo, onSearchQueryChange, texts, isLoading, value, onSelect, label, withoutLabel, size, dropdownItemsNameWidth, additionalColumns, hidden, disabled, displayIdAsName, CustomOnChangeComponent, className, archiveColumn, icon, hint, addNewOptionPath, refreshOptions, MiniDetailComponent, miniDetailPlacement, suggestedItems, suggestedItemsTitle, }: DropdownPickerProps & {
|
|
4
4
|
value: FormSelectOption | null;
|
|
5
5
|
onSelect: (item: DropdownPickerOption | null) => void;
|
|
6
6
|
}) => import("react").JSX.Element;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { default as HookFormDropdownPickerProps } from '../../../models/prop-types/HookFormInputProps/HookFormDropdownPickerProps';
|
|
2
2
|
|
|
3
|
-
declare const HookFormDropdownPicker: ({ InputContainer, formField, label, size, defaultSelection, resetsFields, isNumber, required, hidden, disabled, items, onSearchQueryChange, selectedItemNavigateTo, texts, dropdownItemsNameWidth, isLoading, withoutLabel, additionalColumns, CustomOnChangeComponent, icon, displayIdAsName, onSelect, className, archiveColumn, hint, addNewOptionPath, refreshOptions, MiniDetailComponent, miniDetailPlacement, }: HookFormDropdownPickerProps) => import("react").JSX.Element;
|
|
3
|
+
declare const HookFormDropdownPicker: ({ InputContainer, formField, label, size, defaultSelection, resetsFields, isNumber, required, hidden, disabled, items, onSearchQueryChange, selectedItemNavigateTo, texts, dropdownItemsNameWidth, isLoading, withoutLabel, additionalColumns, CustomOnChangeComponent, icon, displayIdAsName, onSelect, className, archiveColumn, hint, addNewOptionPath, refreshOptions, MiniDetailComponent, miniDetailPlacement, suggestedItems, suggestedItemsTitle, }: HookFormDropdownPickerProps) => import("react").JSX.Element;
|
|
4
4
|
export default HookFormDropdownPicker;
|
|
@@ -9,6 +9,7 @@ type Props = {
|
|
|
9
9
|
className?: string;
|
|
10
10
|
monthClassName?: string;
|
|
11
11
|
yearClassName?: string;
|
|
12
|
+
size?: 'sm' | 'lg';
|
|
12
13
|
};
|
|
13
|
-
declare const MonthPicker: ({ month, onChangeMonth, locale, yearMin, yearMax, className, monthClassName, yearClassName, }: Props) => import("react").JSX.Element;
|
|
14
|
+
declare const MonthPicker: ({ month, onChangeMonth, locale, yearMin, yearMax, className, monthClassName, yearClassName, size, }: Props) => import("react").JSX.Element;
|
|
14
15
|
export default MonthPicker;
|
|
@@ -5,6 +5,8 @@ type Props = {
|
|
|
5
5
|
show: boolean;
|
|
6
6
|
onCancel: () => void;
|
|
7
7
|
items: DropdownPickerOption[];
|
|
8
|
+
suggestedItems?: DropdownPickerOption[];
|
|
9
|
+
suggestedItemsTitle?: string;
|
|
8
10
|
currentSelection: FormSelectOption | null;
|
|
9
11
|
onSelectionChange: (item: FormSelectOption | null) => void;
|
|
10
12
|
onSearchQueryChange?: (query: string) => void;
|
|
@@ -25,5 +27,5 @@ type Props = {
|
|
|
25
27
|
addNewOptionPath?: string;
|
|
26
28
|
refreshOptions?: () => void;
|
|
27
29
|
};
|
|
28
|
-
declare const SimplePicker: ({ show, onCancel, items, currentSelection, onSelectionChange, onSearchQueryChange, texts, itemsNameWidth, additionalColumns, displayIdAsName, autoHideSearch, allItemsLength, disabled, isLoading, inputRef, archiveColumn, addNewOptionPath, refreshOptions, }: Props) => import("react").JSX.Element;
|
|
30
|
+
declare const SimplePicker: ({ show, onCancel, items, suggestedItems, suggestedItemsTitle, currentSelection, onSelectionChange, onSearchQueryChange, texts, itemsNameWidth, additionalColumns, displayIdAsName, autoHideSearch, allItemsLength, disabled, isLoading, inputRef, archiveColumn, addNewOptionPath, refreshOptions, }: Props) => import("react").JSX.Element;
|
|
29
31
|
export default SimplePicker;
|
package/dist/hooks.cjs.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("./ShortcutLinksContext-quiVpTmR.cjs"),k=require("./useClickOutside-D0505nsm.cjs"),x=require("./usePermissions-Bt-U0tyQ.cjs"),l=require("./useRenderDraggableInPortal-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("./ShortcutLinksContext-quiVpTmR.cjs"),k=require("./useClickOutside-D0505nsm.cjs"),x=require("./usePermissions-Bt-U0tyQ.cjs"),l=require("./useRenderDraggableInPortal-BEHshGHp.cjs"),T=require("./useGetApiData-2F1aGcu6.cjs"),c=require("react"),L=require("./useLocalStorageState-BFc8Gc8H.cjs");require("react-router-dom");require("react-dom");require("react-hook-form");require("react-flexmonster");require("@azure/msal-browser");require("@azure/msal-react");const G=r=>{let e="pending",u;const t=r.then(s=>{e="success",u=s},s=>{e="error",u=s});return()=>{switch(e){case"pending":throw t;case"success":return u;case"error":throw u;default:throw new Error("Unknown status")}}};function O(r,e){const u=a.useAxios({silent:!0,differentBaseUrl:e==null?void 0:e.customBaseUrl,customToken:e==null?void 0:e.customToken}),[t,s]=c.useState(null);return c.useEffect(()=>{(async()=>{const n=u.get(r).then(o=>o.data);s(G(n))})()},[u,r]),t}const B=(r,e,u)=>{let t="pending",s;const d=r.then(n=>{t="success",s=n},n=>{const o=n==null?void 0:n.response;(o==null?void 0:o.status)===404&&u?(t="error-404",s=n):(t="error",s=n)});return()=>{switch(t){case"pending":throw d;case"success":return s;case"error":return null;case"error-404":throw new Error("404");default:throw new Error("Unknown status")}}},i={loadOnInit:!0,silent:!1,enabled:!0,nullStateBeforeLoad:!0,nullStateOnFail:!1},E=(r,{loadOnInit:e=i.loadOnInit,enabled:u=i.enabled,silent:t=i.silent,nullStateBeforeLoad:s=i.nullStateBeforeLoad,nullStateOnFail:d=i.nullStateOnFail,customApiUrl:n,customBearerToken:o,dataTransformer:h,errorBoundaryOn404:S}=i)=>{const p=a.useAxios({silent:t,customToken:o,differentBaseUrl:n,noToastOnStatus:S?[404]:void 0}),{startLoading:D,stopLoading:w}=c.useContext(a.LoadingContext),A=c.useRef(0),{isAuthenticated:C}=a.useAuth(),[q,g]=c.useState(null),m=c.useCallback(async(f,P)=>{if(!C()||u===!1)return;!t&&D(`loadData-${r}-${P}`),s&&g(null);const b=p.get(r,{signal:f}).then(y=>h?h(y.data):y.data).finally(()=>!t&&w(`loadData-${r}-${P}`));g(B(b,d??!1,S??!1))},[C,u,t,D,r,s,p,h,w,d,S]);return c.useEffect(()=>{if(e===!1)return;const f=new AbortController;return m(f.signal,++A.current),()=>{f.abort()}},[m,e]),{data:q,setData:g,reloadData:m}};exports.cancelToken=a.cancelToken;exports.useAuth=a.useAuth;exports.useAxios=a.useAxios;exports.useConfirm=a.useConfirm;exports.useFormControlType=a.useFormControlType;exports.useNotifications=a.useNotifications;exports.usePrompt=a.usePrompt;exports.useWindowSize=a.useWindowSize;exports.useZodSchemaTypes=a.useZodSchemaTypes;exports.useClickOutside=k.useClickOutside;exports.usePermissions=x.usePermissions;exports.useClipboard=l.useClipboard;exports.useEmployeePhotoPath=l.useEmployeePhotoPath;exports.useKeyPress=l.useKeyPress;exports.useRenderDraggableInPortal=l.useRenderDraggableInPortal;exports.useSearchQuery=l.useSearchQuery;exports.useSearchQueryState=l.useSearchQueryState;exports.useGetApiData=T.useGetApiData;exports.useLocalStorageState=L.useLocalStorageState;exports.useGetApiDataBound=E;exports.useGetDataBound=O;
|
package/dist/hooks.es.js
CHANGED
|
@@ -2,7 +2,7 @@ import { aw as x, b0 as P, aK as L } from "./ShortcutLinksContext-DzfphCu1.js";
|
|
|
2
2
|
import { bC as q, b2 as H, aQ as J, b1 as M, be as V, ag as X, bD as Y } from "./ShortcutLinksContext-DzfphCu1.js";
|
|
3
3
|
import { u as ee } from "./useClickOutside-BmlXg38T.js";
|
|
4
4
|
import { u as se } from "./usePermissions-BUSAoqoR.js";
|
|
5
|
-
import { u as oe, e as re, a as ne, b as ue, c as ce, d as le } from "./useRenderDraggableInPortal-
|
|
5
|
+
import { u as oe, e as re, a as ne, b as ue, c as ce, d as le } from "./useRenderDraggableInPortal-BEwjtw-a.js";
|
|
6
6
|
import { u as fe } from "./useGetApiData-YEm7lmsw.js";
|
|
7
7
|
import { useState as S, useEffect as C, useContext as T, useRef as U, useCallback as $ } from "react";
|
|
8
8
|
import { u as me } from "./useLocalStorageState-Bt99kkCr.js";
|