@smart-factor/gem-ui-components 0.0.72 → 0.0.74
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/SignEditor.js +12 -12
- package/dist/components/MuiLikeWrapper/MuiLikeWrapper.d.ts +9 -0
- package/dist/components/MuiLikeWrapper/MuiLikeWrapper.stories.d.ts +7 -0
- package/dist/components/MuiLikeWrapper/MuiLikeWrapper.styles.d.ts +9 -0
- package/dist/components/MuiLikeWrapper/index.d.ts +1 -0
- package/dist/components/PaginatedPopover/PaginatedPopover.d.ts +13 -0
- package/dist/components/PaginatedPopover/PaginatedPopover.stories.d.ts +13 -0
- package/dist/components/PaginatedPopover/PaginatedPopover.styles.d.ts +19 -0
- package/dist/components/PaginatedPopover/PaginatedPopoverContent.d.ts +18 -0
- package/dist/components/PaginatedPopover/PaginatedPopoverHeader.d.ts +7 -0
- package/dist/components/PaginatedPopover/types.d.ts +21 -0
- package/dist/helpers/withAliases.d.ts +1 -0
- package/dist/licenses.txt +1 -1
- package/dist/main.d.ts +1 -0
- package/dist/main.js +524 -516
- package/dist/{theme-BLlj0YU1.js → theme-DQCPHf7F.js} +858 -837
- package/package.json +1 -1
- package/dist/components/TableComponents/TableWithPagination/TableWithPaginationExport.d.ts +0 -0
package/dist/SignEditor.js
CHANGED
|
@@ -17,7 +17,7 @@ var T_ = (o, e, t, n) => ({
|
|
|
17
17
|
import Gk, { jsx as Wt, jsxs as Fr, Fragment as Mb } from "react/jsx-runtime";
|
|
18
18
|
import * as vr from "react";
|
|
19
19
|
import { useCallback as pd, createContext as iQ, useContext as rQ, useState as kc, useEffect as uu, useMemo as Hm, useRef as aQ } from "react";
|
|
20
|
-
import {
|
|
20
|
+
import { ai as sQ, ak as lQ, G as Ix, al as Mx, am as A0, an as cQ, a8 as tN, B as Um, ao as Rb, ag as eb, ah as nN, v as uQ, ac as h2, ae as dQ, a2 as AQ, n as hQ, f as pQ, a9 as gQ } from "./theme-DQCPHf7F.js";
|
|
21
21
|
import { C as oN, r as Qk } from "./Drawer-d8461jqd.js";
|
|
22
22
|
import "react-dom";
|
|
23
23
|
import "@mui/x-data-grid-pro";
|
|
@@ -56356,24 +56356,24 @@ const TY = () => {
|
|
|
56356
56356
|
Ke.uniquifyElems(d);
|
|
56357
56357
|
const h = bs("width", d.getAttribute("width")), A = bs("height", d.getAttribute("height")), f = d.getAttribute("viewBox"), g = f ? f.split(" ") : [0, 0, h, A];
|
|
56358
56358
|
for (n = 0; n < 4; ++n) g[n] = Number(g[n]);
|
|
56359
|
-
const _ = Number(Ke.getSvgContent().getAttribute("height"));
|
|
56360
|
-
i =
|
|
56361
|
-
const
|
|
56359
|
+
const _ = Number(Ke.getSvgContent().getAttribute("height")), y = A > h ? "scale(" + _ / 3 / g[3] + ")" : "scale(" + _ / 3 / g[2] + ")";
|
|
56360
|
+
i = Number.isFinite(e) ? `scale(${e})` : y, i = "translate(0) " + i + " translate(0)", c = Ke.getDOMDocument().createElementNS(Xt.SVG, "symbol");
|
|
56361
|
+
const C = Ss();
|
|
56362
56362
|
if (NA()) {
|
|
56363
|
-
const
|
|
56364
|
-
Array.prototype.forEach.call(
|
|
56365
|
-
|
|
56363
|
+
const k = d.querySelectorAll("linearGradient, radialGradient, pattern");
|
|
56364
|
+
Array.prototype.forEach.call(k, (L) => {
|
|
56365
|
+
C.appendChild(L);
|
|
56366
56366
|
});
|
|
56367
56367
|
}
|
|
56368
56368
|
for (; d.firstChild; ) {
|
|
56369
|
-
const
|
|
56370
|
-
c.append(
|
|
56369
|
+
const k = d.firstChild;
|
|
56370
|
+
c.append(k);
|
|
56371
56371
|
}
|
|
56372
|
-
const
|
|
56373
|
-
for (const
|
|
56372
|
+
const B = d.attributes;
|
|
56373
|
+
for (const k of B) c.setAttribute(k.nodeName, k.value);
|
|
56374
56374
|
c.id = Ke.getNextId(), Ke.setImportIds(a, { symbol: c, xform: i }), Ss().append(c), l.addSubCommand(new xk(c));
|
|
56375
56375
|
}
|
|
56376
|
-
r = Ke.getDOMDocument().createElementNS(Xt.SVG, "use"), r.id = Ke.getNextId(), Ke.setHref(r, "#" + c.id), (Ke.getCurrentGroup() || Ke.getCurrentDrawing().getCurrentLayer()).append(r), l.addSubCommand(new xk(r)), Ke.clearSelection(), e
|
|
56376
|
+
r = Ke.getDOMDocument().createElementNS(Xt.SVG, "use"), r.id = Ke.getNextId(), Ke.setHref(r, "#" + c.id), (Ke.getCurrentGroup() || Ke.getCurrentDrawing().getCurrentLayer()).append(r), l.addSubCommand(new xk(r)), Ke.clearSelection(), Number.isFinite(e) && (r.setAttribute("transform", i), og(r)), t.put(r, "symbol", c), t.put(r, "ref", c), Ke.addToSelection([r]), Ke.addCommandToHistory(l), Ke.call("changed", [Ke.getSvgContent()]);
|
|
56377
56377
|
} catch (a) {
|
|
56378
56378
|
return console.error(a), null;
|
|
56379
56379
|
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
|
|
3
|
+
export interface MuiLikeWrapperProps {
|
|
4
|
+
label: string;
|
|
5
|
+
children: ReactNode | ReactNode[];
|
|
6
|
+
required?: boolean;
|
|
7
|
+
errorMessage?: string;
|
|
8
|
+
}
|
|
9
|
+
export declare const MuiLikeWrapper: ({ label, children, required, errorMessage, }: MuiLikeWrapperProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { MuiLikeWrapper, MuiLikeWrapperProps } from './MuiLikeWrapper';
|
|
2
|
+
import { Meta, StoryObj } from '@storybook/react';
|
|
3
|
+
|
|
4
|
+
declare const meta: Meta<typeof MuiLikeWrapper>;
|
|
5
|
+
export default meta;
|
|
6
|
+
type Story = StoryObj<MuiLikeWrapperProps>;
|
|
7
|
+
export declare const Docs: Story;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
export declare const MuiLikeWrapper: import('@emotion/styled').StyledComponent<import('@mui/system').BoxOwnProps<import('@mui/material').Theme> & Omit<Omit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
|
3
|
+
ref?: ((instance: HTMLDivElement | null) => void) | import('react').RefObject<HTMLDivElement> | null | undefined;
|
|
4
|
+
}, keyof import('@mui/system').BoxOwnProps<import('@mui/material').Theme>> & import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme> & {
|
|
5
|
+
error: boolean;
|
|
6
|
+
}, {}, {}>;
|
|
7
|
+
export declare const FormLabel: import('@emotion/styled').StyledComponent<import('@mui/material').FormLabelBaseProps & import('@mui/material').FormLabelOwnProps & import('@mui/material/OverridableComponent').CommonProps & Omit<Omit<import('react').DetailedHTMLProps<import('react').LabelHTMLAttributes<HTMLLabelElement>, HTMLLabelElement>, "ref"> & {
|
|
8
|
+
ref?: ((instance: HTMLLabelElement | null) => void) | import('react').RefObject<HTMLLabelElement> | null | undefined;
|
|
9
|
+
}, keyof import('@mui/material/OverridableComponent').CommonProps | "children" | "disabled" | "sx" | "tabIndex" | "form" | "slot" | "title" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "autoFocus" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "id" | "lang" | "nonce" | "spellCheck" | "translate" | "radioGroup" | "role" | "about" | "content" | "datatype" | "inlist" | "prefix" | "property" | "rel" | "resource" | "rev" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "color" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-braillelabel" | "aria-brailleroledescription" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colindextext" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-description" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowindextext" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onResize" | "onResizeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerLeave" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "required" | "htmlFor" | "filled" | "error" | "focused"> & import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme>, {}, {}>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { MuiLikeWrapper } from './MuiLikeWrapper';
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
import { PaginatedPopoverProps } from './types';
|
|
3
|
+
|
|
4
|
+
interface NotificationItemProps {
|
|
5
|
+
children: ReactNode;
|
|
6
|
+
onClick?: () => void;
|
|
7
|
+
}
|
|
8
|
+
export declare const PaginatedPopover: (<T>({ notifications, loadParams, setLoadParams, isLoading, width, height, title, children, Icon, }: PaginatedPopoverProps<T & {
|
|
9
|
+
id: string | number;
|
|
10
|
+
}>) => import("react/jsx-runtime").JSX.Element) & {
|
|
11
|
+
Item: ({ children, onClick }: NotificationItemProps) => import("react/jsx-runtime").JSX.Element;
|
|
12
|
+
};
|
|
13
|
+
export {};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { Meta, StoryObj } from '@storybook/react';
|
|
2
|
+
import { PaginatedPopover } from './PaginatedPopover';
|
|
3
|
+
import { PaginatedPopoverProps } from './types';
|
|
4
|
+
|
|
5
|
+
declare const meta: Meta<typeof PaginatedPopover>;
|
|
6
|
+
export default meta;
|
|
7
|
+
type Story = StoryObj<PaginatedPopoverProps<{
|
|
8
|
+
id: string | number;
|
|
9
|
+
content: string;
|
|
10
|
+
date: Date;
|
|
11
|
+
}>>;
|
|
12
|
+
export declare const Docs: Story;
|
|
13
|
+
export declare const Empty: Story;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
export declare const ListViewCellWrapper: import('@emotion/styled').StyledComponent<import('@mui/material').StackOwnProps & import('@mui/material/OverridableComponent').CommonProps & Omit<Omit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
|
3
|
+
ref?: ((instance: HTMLDivElement | null) => void) | import('react').RefObject<HTMLDivElement> | null | undefined;
|
|
4
|
+
}, keyof import('@mui/material/OverridableComponent').CommonProps | keyof import('@mui/material').StackOwnProps> & import('@mui/system').MUIStyledCommonProps<import('@mui/system').Theme>, {}, {}>;
|
|
5
|
+
export declare const NotificationItemWrapper: import('@emotion/styled').StyledComponent<import('@mui/material').StackOwnProps & import('@mui/material/OverridableComponent').CommonProps & Omit<Omit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
|
6
|
+
ref?: ((instance: HTMLDivElement | null) => void) | import('react').RefObject<HTMLDivElement> | null | undefined;
|
|
7
|
+
}, keyof import('@mui/material/OverridableComponent').CommonProps | keyof import('@mui/material').StackOwnProps> & import('@mui/system').MUIStyledCommonProps<import('@mui/system').Theme>, {}, {}>;
|
|
8
|
+
export declare const StyledPaper: import('@emotion/styled').StyledComponent<import('@mui/material').PaperOwnProps & import('@mui/material/OverridableComponent').CommonProps & Omit<Omit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
|
9
|
+
ref?: ((instance: HTMLDivElement | null) => void) | import('react').RefObject<HTMLDivElement> | null | undefined;
|
|
10
|
+
}, "className" | "style" | "classes" | "children" | "sx" | "elevation" | "variant" | "square"> & import('@mui/system').MUIStyledCommonProps<import('@mui/system').Theme> & {
|
|
11
|
+
width: string;
|
|
12
|
+
height: string;
|
|
13
|
+
}, {}, {}>;
|
|
14
|
+
export declare const StyledList: import('@emotion/styled').StyledComponent<import('@mui/material').ListOwnProps & import('@mui/material/OverridableComponent').CommonProps & Omit<Omit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLUListElement>, HTMLUListElement>, "ref"> & {
|
|
15
|
+
ref?: ((instance: HTMLUListElement | null) => void) | import('react').RefObject<HTMLUListElement> | null | undefined;
|
|
16
|
+
}, "className" | "style" | "classes" | "children" | "sx" | "dense" | "disablePadding" | "subheader"> & import('@mui/system').MUIStyledCommonProps<import('@mui/system').Theme>, {}, {}>;
|
|
17
|
+
export declare const StyledListHeader: import('@emotion/styled').StyledComponent<import('@mui/material').StackOwnProps & import('@mui/material/OverridableComponent').CommonProps & Omit<Omit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
|
18
|
+
ref?: ((instance: HTMLDivElement | null) => void) | import('react').RefObject<HTMLDivElement> | null | undefined;
|
|
19
|
+
}, keyof import('@mui/material/OverridableComponent').CommonProps | keyof import('@mui/material').StackOwnProps> & import('@mui/system').MUIStyledCommonProps<import('@mui/system').Theme>, {}, {}>;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { PaginatedPopoverProps } from './types';
|
|
2
|
+
|
|
3
|
+
export declare const NotificationContent: <T extends {
|
|
4
|
+
id: string | number;
|
|
5
|
+
}>({ open, anchorEl, onClose, notifications, loadingMore, isLoading, allItemsLoaded, width, height, title, children, listRef, }: {
|
|
6
|
+
open: boolean;
|
|
7
|
+
anchorEl: HTMLButtonElement | null;
|
|
8
|
+
onClose: () => void;
|
|
9
|
+
notifications: PaginatedPopoverProps<T>['notifications'];
|
|
10
|
+
loadingMore: boolean;
|
|
11
|
+
isLoading: boolean;
|
|
12
|
+
allItemsLoaded: boolean;
|
|
13
|
+
width: string;
|
|
14
|
+
height: string;
|
|
15
|
+
title: React.ReactNode;
|
|
16
|
+
children: PaginatedPopoverProps<T>['children'];
|
|
17
|
+
listRef: React.RefObject<HTMLUListElement>;
|
|
18
|
+
}) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
import { GenericPageDataDto } from '../../main';
|
|
3
|
+
|
|
4
|
+
export interface LoadParams {
|
|
5
|
+
page: number;
|
|
6
|
+
size: number;
|
|
7
|
+
}
|
|
8
|
+
export interface PaginatedPopoverProps<T> {
|
|
9
|
+
notifications: GenericPageDataDto<T> | undefined;
|
|
10
|
+
isLoading: boolean;
|
|
11
|
+
loadParams: LoadParams;
|
|
12
|
+
setLoadParams: (loadParams: LoadParams) => void;
|
|
13
|
+
onDelete: (id: string) => void;
|
|
14
|
+
width?: string;
|
|
15
|
+
height?: string;
|
|
16
|
+
title: string;
|
|
17
|
+
children: ((item: T & {
|
|
18
|
+
id: string | number;
|
|
19
|
+
}) => ReactNode) | ReactNode;
|
|
20
|
+
Icon: ReactNode;
|
|
21
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const withAliases: <A extends object, B>(component: A, properties: B) => A & B;
|
package/dist/licenses.txt
CHANGED
package/dist/main.d.ts
CHANGED
|
@@ -10,6 +10,7 @@ export { FixedActionsBottomPanel } from './components/FixedActionsBottomPanel/Fi
|
|
|
10
10
|
export * from './components/FormComponents';
|
|
11
11
|
export { Grid, GridInitialState } from './components/Grid';
|
|
12
12
|
export { LoadingBackdrop } from './components/LoadingBackdrop/LoadingBackdrop';
|
|
13
|
+
export { MuiLikeWrapper } from './components/MuiLikeWrapper';
|
|
13
14
|
export { ResizableWrapper } from './components/ResizableWrapper/ResizableWrapper';
|
|
14
15
|
export { SimpleAutocomplete } from './components/SimpleAutocomplete';
|
|
15
16
|
export { SimpleInput } from './components/SimpleInput/SimpleInput';
|