@m4l/components 0.0.55 → 0.0.58

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.
@@ -625,7 +625,7 @@ function Settings() {
625
625
  const onClickSettings = useCallback(() => {
626
626
  openModal({
627
627
  onQueryClose: () => closeModal(),
628
- title: "data_grid.settings_title",
628
+ title: getLabel("data_grid.settings_title"),
629
629
  initialWidth: 500,
630
630
  initialHeigth: 680,
631
631
  contentComponent: /* @__PURE__ */ jsx(ColumnsConfig, {
@@ -0,0 +1,3 @@
1
+ /// <reference types="react" />
2
+ import { PageProps } from './types';
3
+ export declare const Page: import("react").ForwardRefExoticComponent<Pick<PageProps, "meta" | "p" | "slot" | "style" | "title" | "alignContent" | "alignItems" | "alignSelf" | "bottom" | "boxShadow" | "boxSizing" | "color" | "columnGap" | "display" | "flexBasis" | "flexDirection" | "flexGrow" | "flexShrink" | "flexWrap" | "fontFamily" | "fontSize" | "fontStyle" | "fontWeight" | "gridAutoColumns" | "gridAutoFlow" | "gridAutoRows" | "gridTemplateAreas" | "gridTemplateColumns" | "gridTemplateRows" | "height" | "justifyContent" | "justifyItems" | "justifySelf" | "left" | "letterSpacing" | "lineHeight" | "marginBottom" | "marginLeft" | "marginRight" | "marginTop" | "maxHeight" | "maxWidth" | "minHeight" | "minWidth" | "order" | "paddingBottom" | "paddingLeft" | "paddingRight" | "paddingTop" | "position" | "right" | "rowGap" | "textAlign" | "textOverflow" | "textTransform" | "top" | "translate" | "visibility" | "whiteSpace" | "width" | "zIndex" | "border" | "borderBottom" | "borderColor" | "borderLeft" | "borderRadius" | "borderRight" | "borderTop" | "flex" | "gap" | "gridArea" | "gridColumn" | "gridRow" | "margin" | "overflow" | "padding" | "bgcolor" | "m" | "mt" | "mr" | "mb" | "ml" | "mx" | "marginX" | "my" | "marginY" | "pt" | "pr" | "pb" | "pl" | "px" | "paddingX" | "py" | "paddingY" | "typography" | "displayPrint" | "sx" | "key" | "children" | "className" | "classes" | "component" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "id" | "lang" | "placeholder" | "spellCheck" | "tabIndex" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "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-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" | "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" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture"> & import("react").RefAttributes<HTMLDivElement>>;
@@ -0,0 +1,31 @@
1
+ import { forwardRef } from "react";
2
+ import { Helmet } from "react-helmet-async";
3
+ import { Box } from "@mui/material";
4
+ import { useLocales } from "@m4l/graphics";
5
+ import { jsxs, Fragment, jsx } from "react/jsx-runtime";
6
+ const Page = forwardRef((props, ref) => {
7
+ const {
8
+ children,
9
+ title = "",
10
+ meta,
11
+ ...other
12
+ } = props;
13
+ const {
14
+ currentLang
15
+ } = useLocales();
16
+ return /* @__PURE__ */ jsxs(Fragment, {
17
+ children: [/* @__PURE__ */ jsxs(Helmet, {
18
+ children: [/* @__PURE__ */ jsx("title", {
19
+ children: `${title} | Made4Labs`
20
+ }), /* @__PURE__ */ jsx("html", {
21
+ lang: currentLang.value
22
+ }), meta]
23
+ }), /* @__PURE__ */ jsx(Box, {
24
+ ref,
25
+ ...other,
26
+ children
27
+ })]
28
+ });
29
+ });
30
+ Page.displayName = "Page";
31
+ export { Page as P };
@@ -0,0 +1,7 @@
1
+ import type { BoxProps } from '@mui/material';
2
+ import type { ReactNode } from 'react';
3
+ export interface PageProps extends BoxProps {
4
+ children: ReactNode;
5
+ meta?: ReactNode;
6
+ title: string;
7
+ }
@@ -24,6 +24,7 @@ export * from '../components/NoItemSelected/dictionary';
24
24
  export * from '../components/ObjectLogs';
25
25
  export * from '../components/ObjectLogs/dictionary';
26
26
  export * from '../components/PaperForm';
27
+ export * from '../components/Page';
27
28
  export * from '../components/PropertyValue';
28
29
  export * from '../components/Resizeable';
29
30
  export * from '../components/ScrollBar';
package/dist/index.js CHANGED
@@ -43,6 +43,7 @@ export { M as ModalDialog, d as defaultModalDialogDictionary, g as getModalDialo
43
43
  export { N as NoItemSelected, d as defaultNoItemSelectedDictionary, g as getNoItemSelectedComponentsDictionary } from "./components/NoItemSelected/index.js";
44
44
  export { O as ObjectLogs, d as defaultObjectLogDictionary, g as getObjectLogsComponentsDictionary } from "./components/ObjectLogs/index.js";
45
45
  export { P as PaperForm } from "./components/PaperForm/index.js";
46
+ export { P as Page } from "./components/Page/index.js";
46
47
  export { P as PropertyValue } from "./components/PropertyValue/index.js";
47
48
  export { R as Resizeable } from "./components/Resizeable/index.js";
48
49
  export { S as ScrollBar } from "./components/ScrollBar/index.js";
@@ -79,4 +80,5 @@ import "./react-json-view.js";
79
80
  import "./react-splitter-layout.js";
80
81
  import "./react-data-grid.js";
81
82
  import "yup";
83
+ import "react-helmet-async";
82
84
  import "./react-resizable.js";
package/dist/vendor.js CHANGED
@@ -41,6 +41,7 @@ import "./components/NoItemSelected/index.js";
41
41
  import "./components/ObjectLogs/index.js";
42
42
  import "./react-json-view.js";
43
43
  import "./components/PaperForm/index.js";
44
+ import "./components/Page/index.js";
44
45
  import "./components/PropertyValue/index.js";
45
46
  import "./react-splitter-layout.js";
46
47
  import "./components/SplitLayout/index.js";
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@m4l/components",
3
3
  "private": false,
4
- "version": "0.0.55",
4
+ "version": "0.0.58",
5
5
  "license": "UNLICENSED",
6
6
  "scripts": {
7
7
  "dev": "vite",
@@ -14,10 +14,11 @@
14
14
  "format": "npm run prettier:fix && npm run lint:fix"
15
15
  },
16
16
  "dependencies": {
17
- "@m4l/graphics": "^0.0.34",
17
+ "@m4l/graphics": "^0.0.37",
18
18
  "react": "^17.0.0 || 18.x",
19
19
  "react-dom": "^18.0.0",
20
- "react-draggable": "^4.4.5"
20
+ "react-draggable": "^4.4.5",
21
+ "react-helmet-async": "^1.3.0"
21
22
  },
22
23
  "peerDependencies": {
23
24
  "@hookform/resolvers": "^2.9.5",