@m4l/components 9.3.2-B04082025-beta.3 → 9.3.2-B11082025-beta.1
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/@types/types.d.ts +33 -3
- package/components/Card/Card.d.ts +7 -0
- package/components/Card/Card.styles.d.ts +2 -0
- package/components/Card/constants.d.ts +7 -0
- package/components/Card/helpers/getSizeSpacing.d.ts +7 -0
- package/components/Card/index.d.ts +1 -0
- package/components/Card/slots/CardEnum.d.ts +3 -0
- package/components/Card/slots/CardSlots.d.ts +3 -0
- package/components/Card/types.d.ts +59 -0
- package/components/DynamicFilter/DynamicFilter.styles.js +3 -1
- package/components/DynamicSort/DynamicSort.styles.js +3 -1
- package/components/ImageText/ImageText.d.ts +7 -0
- package/components/ImageText/ImageText.js +62 -0
- package/components/ImageText/ImageText.styles.d.ts +2 -0
- package/components/ImageText/{components/NoItemPrivileges/NoItemPrivilegesStyles.js → ImageText.styles.js} +21 -4
- package/components/ImageText/constants.d.ts +16 -0
- package/components/ImageText/constants.js +10 -0
- package/components/ImageText/index.d.ts +1 -3
- package/components/ImageText/slots/ImageTextEnum.d.ts +8 -0
- package/components/ImageText/slots/ImageTextEnum.js +12 -0
- package/components/ImageText/slots/ImageTextSlots.d.ts +18 -0
- package/components/ImageText/slots/ImageTextSlots.js +38 -0
- package/components/ImageText/types.d.ts +40 -0
- package/components/NoItemPrivileges/NoItemPrivileges.js +33 -0
- package/components/NoItemPrivileges/NoItemPrivilegesStyles.js +6 -0
- package/components/{ImageText/components/NoItemPrivileges → NoItemPrivileges}/constants.d.ts +0 -1
- package/components/{ImageText/components/NoItemPrivileges → NoItemPrivileges}/constants.js +3 -4
- package/components/NoItemPrivileges/slots/NoItemPrivilegesEnum.d.ts +3 -0
- package/components/NoItemPrivileges/slots/NoItemPrivilegesEnum.js +7 -0
- package/components/NoItemPrivileges/slots/NoItemPrivilegesSlots.d.ts +3 -0
- package/components/NoItemPrivileges/slots/NoItemPrivilegesSlots.js +12 -0
- package/components/NoItemPrivileges/test/NoItemPrivileges.test.d.ts +1 -0
- package/components/{ImageText/components/NoItemPrivileges → NoItemPrivileges}/types.d.ts +1 -1
- package/components/NoItemSelected/NoItemSelected.js +34 -0
- package/components/NoItemSelected/NoItemSelected.styles.js +6 -0
- package/components/NoItemSelected/constant.d.ts +2 -0
- package/components/NoItemSelected/constant.js +8 -0
- package/components/{ImageText/components/NoItemSelected → NoItemSelected}/dictionary.d.ts +0 -2
- package/components/NoItemSelected/dictionary.js +12 -0
- package/components/NoItemSelected/slots/NoItemSelectedEnum.d.ts +3 -0
- package/components/NoItemSelected/slots/NoItemSelectedEnum.js +7 -0
- package/components/NoItemSelected/slots/NoItemSelectedSlots.d.ts +3 -0
- package/components/NoItemSelected/slots/NoItemSelectedSlots.js +12 -0
- package/components/NoItemSelected/test/NoItemSelected.test.d.ts +1 -0
- package/components/{ImageText/components/NoItemSelected → NoItemSelected}/types.d.ts +6 -7
- package/components/NumberInput/NumberInput.styles.js +1 -0
- package/components/ObjectLogs/helpers/Fields/filterFields.d.ts +1 -1
- package/components/ObjectLogs/hooks/useDetailFormatter.js +1 -1
- package/components/ObjectLogs/hooks/useFilterAndSort.js +2 -1
- package/components/PaperForm/PaperForm.js +1 -2
- package/components/PaperForm/components/Header.js +1 -10
- package/components/PaperForm/styles.js +1 -4
- package/components/PropertyValue/PropertyValue.js +1 -1
- package/components/SettingsLayout/SettingsLayout.d.ts +5 -0
- package/components/SettingsLayout/SettingsLayout.js +34 -0
- package/components/SettingsLayout/SettingsLayout.styles.d.ts +2 -0
- package/components/SettingsLayout/SettingsLayout.styles.js +270 -0
- package/components/SettingsLayout/constants.d.ts +7 -0
- package/components/SettingsLayout/constants.js +10 -0
- package/components/SettingsLayout/dictionary.d.ts +8 -0
- package/components/SettingsLayout/dictionary.js +11 -0
- package/components/SettingsLayout/icons.d.ts +14 -0
- package/components/SettingsLayout/icons.js +17 -0
- package/components/SettingsLayout/index.d.ts +2 -0
- package/components/SettingsLayout/slots/SettingsLayoutEnum.d.ts +17 -0
- package/components/SettingsLayout/slots/SettingsLayoutEnum.js +21 -0
- package/components/SettingsLayout/slots/SettingsLayoutSlots.d.ts +47 -0
- package/components/SettingsLayout/slots/SettingsLayoutSlots.js +83 -0
- package/components/SettingsLayout/subcomponents/SettingColorPresets/SettingColorPresets.d.ts +5 -0
- package/components/SettingsLayout/subcomponents/SettingColorPresets/SettingColorPresets.js +37 -0
- package/components/SettingsLayout/subcomponents/SettingColorPresets/index.d.ts +1 -0
- package/components/SettingsLayout/subcomponents/SettingColorPresets/types.d.ts +3 -0
- package/components/SettingsLayout/subcomponents/SettingDirection/SettingDirection.d.ts +5 -0
- package/components/SettingsLayout/subcomponents/SettingDirection/SettingDirection.js +37 -0
- package/components/SettingsLayout/subcomponents/SettingDirection/index.d.ts +1 -0
- package/components/SettingsLayout/subcomponents/SettingDirection/types.d.ts +3 -0
- package/components/SettingsLayout/subcomponents/SettingFullscreen/SettingFullscreen.d.ts +5 -0
- package/components/SettingsLayout/subcomponents/SettingFullscreen/SettingFullscreen.js +40 -0
- package/components/SettingsLayout/subcomponents/SettingFullscreen/index.d.ts +1 -0
- package/components/SettingsLayout/subcomponents/SettingFullscreen/index.js +1 -0
- package/components/SettingsLayout/subcomponents/SettingFullscreen/types.d.ts +3 -0
- package/components/SettingsLayout/subcomponents/SettingItem/SettingItem.d.ts +8 -0
- package/components/SettingsLayout/subcomponents/SettingItem/SettingItem.js +23 -0
- package/components/SettingsLayout/subcomponents/SettingItem/index.d.ts +1 -0
- package/components/SettingsLayout/subcomponents/SettingItem/index.js +1 -0
- package/components/SettingsLayout/subcomponents/SettingItem/types.d.ts +5 -0
- package/components/SettingsLayout/subcomponents/SettingItemColor/SettingItemColor.d.ts +8 -0
- package/components/SettingsLayout/subcomponents/SettingItemColor/SettingItemColor.js +24 -0
- package/components/SettingsLayout/subcomponents/SettingItemColor/index.d.ts +1 -0
- package/components/SettingsLayout/subcomponents/SettingItemColor/index.js +1 -0
- package/components/SettingsLayout/subcomponents/SettingItemColor/types.d.ts +6 -0
- package/components/SettingsLayout/subcomponents/SettingMode/SettingMode.d.ts +5 -0
- package/components/SettingsLayout/subcomponents/SettingMode/SettingMode.js +36 -0
- package/components/SettingsLayout/subcomponents/SettingMode/index.d.ts +1 -0
- package/components/SettingsLayout/subcomponents/SettingMode/index.js +1 -0
- package/components/SettingsLayout/subcomponents/SettingMode/types.d.ts +3 -0
- package/components/SettingsLayout/subcomponents/SettingsLayoutBase/SettingsLayoutBase.d.ts +5 -0
- package/components/SettingsLayout/subcomponents/SettingsLayoutBase/SettingsLayoutBase.js +76 -0
- package/components/SettingsLayout/subcomponents/SettingsLayoutBase/index.d.ts +1 -0
- package/components/SettingsLayout/subcomponents/SettingsLayoutBase/index.js +1 -0
- package/components/SettingsLayout/subcomponents/SettingsLayoutBase/types.d.ts +5 -0
- package/components/SettingsLayout/test/SettingsLayout.test.d.ts +18 -0
- package/components/SettingsLayout/types.d.ts +47 -0
- package/components/SideBar/subcomponents/ContentComponent/style.js +3 -0
- package/components/ToastContainer/ToastContainer.js +0 -1
- package/components/ToastContainer/ToastContainer.styles.js +126 -122
- package/components/ToastContainer/constants.d.ts +670 -0
- package/components/ToastContainer/constants.js +672 -1
- package/components/hook-form/RHFColorPicker/RHFColorPicker.styles.js +2 -1
- package/components/hook-form/RHFDateTime/RHFDateTime.styles.js +2 -1
- package/components/hook-form/RHFNumberInput/RHFNumberInput.styles.js +2 -1
- package/components/hook-form/RHFPeriod/RHFPeriod.styles.js +2 -5
- package/components/hook-form/RHFPeriod/slots/RHFPeriodEnum.d.ts +1 -1
- package/components/hook-form/RHFPeriod/slots/RHFPeriodEnum.js +1 -1
- package/components/hook-form/RHFPeriod/slots/RHFPeriodSlots.d.ts +1 -1
- package/components/hook-form/RHFPeriod/slots/RHFPeriodSlots.js +6 -6
- package/components/hook-form/RHFPeriod/subcomponents/Period/Period.js +13 -11
- package/components/hook-form/RHFPeriod/subcomponents/Period/dictionary.js +1 -1
- package/components/hook-form/RHFPeriod/subcomponents/Period/types.d.ts +2 -2
- package/components/hook-form/RHFSelect/RHFSelect.styles.js +2 -1
- package/components/hook-form/RHFTextField/RHFTextField.js +5 -3
- package/components/hook-form/RHFTextField/slots/RHFTextFieldSlots.d.ts +1 -1
- package/components/hook-form/RHFTextFieldPassword/RHFTextFieldPassword.js +63 -55
- package/components/hook-form/RHFTextFieldPassword/slots/RHFTextFieldPasswordSlots.d.ts +1 -1
- package/components/index.d.ts +3 -0
- package/components/mui_extended/Autocomplete/slots/AutocompleteSlots.d.ts +1 -1
- package/components/mui_extended/Button/ButtonStyles.js +2 -1
- package/components/mui_extended/IconButton/IconButton.styles.js +1 -1
- package/components/mui_extended/MenuItem/MenuItem.styles.js +2 -1
- package/components/mui_extended/TextField/TextField.js +6 -8
- package/components/mui_extended/TextField/TextField.styles.js +1 -0
- package/components/mui_extended/TextField/constants.d.ts +5 -5
- package/components/mui_extended/TextField/constants.js +2 -2
- package/components/mui_extended/TextField/index.d.ts +1 -0
- package/components/mui_extended/TextField/slots/TextFieldEnum.d.ts +1 -1
- package/components/mui_extended/TextField/slots/TextFieldEnum.js +8 -8
- package/components/mui_extended/TextField/types.d.ts +1 -1
- package/hooks/index.d.ts +1 -0
- package/hooks/useIsVisible/index.d.ts +1 -0
- package/hooks/useIsVisible/index.js +1 -0
- package/hooks/useIsVisible/useIsVisible.d.ts +8 -0
- package/{components/ImageText/hooks/useIsVisible/index.js → hooks/useIsVisible/useIsVisible.js} +3 -3
- package/index.js +21 -17
- package/package.json +3 -3
- package/storybook/components/Card/Card.stories.d.ts +45 -0
- package/storybook/components/Card/subcomponents/ContentCard.d.ts +8 -0
- package/storybook/components/Card/subcomponents/constants.d.ts +9 -0
- package/storybook/components/NoItemPrivileges/NoItemPrivileges.stories.d.ts +1 -1
- package/storybook/components/NoItemSelect/NoItemSelect.stories.d.ts +1 -1
- package/storybook/components/SettingsLayout/SettingsLayout.stories.d.ts +6 -0
- package/storybook/components/SettingsLayout/subcomponents/SettingsLayoutRender/SettingsLayoutsRender.d.ts +5 -0
- package/storybook/components/SettingsLayout/subcomponents/SettingsLayoutRender/index.d.ts +1 -0
- package/storybook/components/extended/mui/TextField/TextFieldText.stories.d.ts +1 -1
- package/storybook/components/paperForm/PaperForm.stories.d.ts +4 -0
- package/storybook/hook-form/RHFTextField/RHFTextField.stories.d.ts +4 -0
- package/storybook/hook-form/RHFTextFieldPassword/RHFTextFieldPassword.stories.d.ts +19 -0
- package/{components/mui_extended/TextField/helpers → utils}/getLimitCharacters/getLimitCharacters.d.ts +2 -2
- package/utils/getLimitCharacters/index.js +1 -0
- package/utils/getLimitCharacters/test/getLimitCharacters.test.d.ts +1 -0
- package/utils/getLimitCharacters/types.d.ts +11 -0
- package/components/ImageText/components/ImageTextContainer/ImageTextContainer.d.ts +0 -7
- package/components/ImageText/components/ImageTextContainer/ImageTextContainer.js +0 -25
- package/components/ImageText/components/ImageTextContainer/ImageTextContainerStyle.d.ts +0 -2
- package/components/ImageText/components/ImageTextContainer/ImageTextContainerStyle.js +0 -22
- package/components/ImageText/components/ImageTextContainer/constants.d.ts +0 -8
- package/components/ImageText/components/ImageTextContainer/constants.js +0 -8
- package/components/ImageText/components/ImageTextContainer/index.d.ts +0 -1
- package/components/ImageText/components/ImageTextContainer/slots/ImageTextContainerEnum.d.ts +0 -3
- package/components/ImageText/components/ImageTextContainer/slots/ImageTextContainerEnum.js +0 -7
- package/components/ImageText/components/ImageTextContainer/slots/ImageTextContainerSlots.d.ts +0 -3
- package/components/ImageText/components/ImageTextContainer/slots/ImageTextContainerSlots.js +0 -12
- package/components/ImageText/components/ImageTextContainer/types.d.ts +0 -22
- package/components/ImageText/components/NoItemPrivileges/NoItemPrivileges.js +0 -65
- package/components/ImageText/components/NoItemPrivileges/slots/NoItemPrivilegesEnum.d.ts +0 -7
- package/components/ImageText/components/NoItemPrivileges/slots/NoItemPrivilegesEnum.js +0 -11
- package/components/ImageText/components/NoItemPrivileges/slots/NoItemPrivilegesSlots.d.ts +0 -15
- package/components/ImageText/components/NoItemPrivileges/slots/NoItemPrivilegesSlots.js +0 -33
- package/components/ImageText/components/NoItemSelected/NoItemSelected.js +0 -62
- package/components/ImageText/components/NoItemSelected/NoItemSelected.styles.js +0 -89
- package/components/ImageText/components/NoItemSelected/constant.d.ts +0 -2
- package/components/ImageText/components/NoItemSelected/constant.js +0 -8
- package/components/ImageText/components/NoItemSelected/dictionary.js +0 -11
- package/components/ImageText/components/NoItemSelected/slots/NoItemSelectedEnum.d.ts +0 -8
- package/components/ImageText/components/NoItemSelected/slots/NoItemSelectedEnum.js +0 -12
- package/components/ImageText/components/NoItemSelected/slots/NoItemSelectedSlots.d.ts +0 -18
- package/components/ImageText/components/NoItemSelected/slots/NoItemSelectedSlots.js +0 -39
- package/components/ImageText/hooks/useIsVisible/index.d.ts +0 -6
- package/components/hook-form/RHFDateTime/styles.d.ts +0 -1
- package/components/mui_extended/TextField/helpers/getLimitCharacters/types.d.ts +0 -5
- /package/components/{ImageText/components/NoItemPrivileges/test/NoItemPrivileges.test.d.ts → Card/helpers/getSizeSpacing.test.d.ts} +0 -0
- /package/components/{mui_extended/TextField/helpers/getLimitCharacters/test/getLimitCharacters.test.d.ts → Card/test/Card.test.d.ts} +0 -0
- /package/components/{ImageText/components/NoItemPrivileges → NoItemPrivileges}/NoItemPrivileges.d.ts +0 -0
- /package/components/{ImageText/components/NoItemPrivileges → NoItemPrivileges}/NoItemPrivilegesStyles.d.ts +0 -0
- /package/components/{ImageText/components/NoItemPrivileges → NoItemPrivileges}/dictionary.d.ts +0 -0
- /package/components/{ImageText/components/NoItemPrivileges → NoItemPrivileges}/dictionary.js +0 -0
- /package/components/{ImageText/components/NoItemPrivileges → NoItemPrivileges}/index.d.ts +0 -0
- /package/components/{ImageText/components/ImageTextContainer → NoItemPrivileges}/index.js +0 -0
- /package/components/{ImageText/components/NoItemSelected → NoItemSelected}/NoItemSelected.d.ts +0 -0
- /package/components/{ImageText/components/NoItemSelected → NoItemSelected}/NoItemSelected.styles.d.ts +0 -0
- /package/components/{ImageText/components/NoItemSelected → NoItemSelected}/index.d.ts +0 -0
- /package/components/{ImageText/components/NoItemPrivileges → NoItemSelected}/index.js +0 -0
- /package/components/{ImageText/components/NoItemSelected → SettingsLayout}/index.js +0 -0
- /package/components/{mui_extended/TextField/helpers/getLimitCharacters → SettingsLayout/subcomponents/SettingColorPresets}/index.js +0 -0
- /package/{components/mui_extended/TextField/helpers → utils}/getLimitCharacters/getLimitCharacters.js +0 -0
- /package/{components/mui_extended/TextField/helpers → utils}/getLimitCharacters/index.d.ts +0 -0
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { jsx } from "react/jsx-runtime";
|
|
2
|
+
import { useEnvironment, useModuleDictionary } from "@m4l/core";
|
|
3
|
+
import { useMemo } from "react";
|
|
4
|
+
import { clsx } from "clsx";
|
|
5
|
+
import { N as NO_ITEM_SELECTED_CLASSES } from "./constant.js";
|
|
6
|
+
import { D as DICTIONARY } from "./dictionary.js";
|
|
7
|
+
import { N as NoItemSelectedRootStyled } from "./slots/NoItemSelectedSlots.js";
|
|
8
|
+
import { u as useComponentSize } from "../../hooks/useComponentSize/useComponentSize.js";
|
|
9
|
+
function NoItemSelected(props) {
|
|
10
|
+
const { image, title, message, size, className, dataTestId } = props;
|
|
11
|
+
const { host_static_assets, environment_assets } = useEnvironment();
|
|
12
|
+
const { currentSize } = useComponentSize(size);
|
|
13
|
+
const { getLabel } = useModuleDictionary();
|
|
14
|
+
const defaultImage = useMemo(() => {
|
|
15
|
+
return `${host_static_assets}/${environment_assets}/frontend/components/no_item_selected/assets/icons/no_selected.svg`;
|
|
16
|
+
}, []);
|
|
17
|
+
return /* @__PURE__ */ jsx(
|
|
18
|
+
NoItemSelectedRootStyled,
|
|
19
|
+
{
|
|
20
|
+
imageUrl: image || defaultImage,
|
|
21
|
+
title: title || getLabel(DICTIONARY.LABEL_TITLE),
|
|
22
|
+
message: message || getLabel(DICTIONARY.LABEL_DETAIL),
|
|
23
|
+
size: currentSize,
|
|
24
|
+
className: clsx(NO_ITEM_SELECTED_CLASSES.root, className),
|
|
25
|
+
dataTestId,
|
|
26
|
+
role: "alert",
|
|
27
|
+
"aria-label": "NoItemSelected",
|
|
28
|
+
imageAriaLabel: "illustration no item selected"
|
|
29
|
+
}
|
|
30
|
+
);
|
|
31
|
+
}
|
|
32
|
+
export {
|
|
33
|
+
NoItemSelected as N
|
|
34
|
+
};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { g as getComponentClasses } from "../../utils/getComponentSlotRoot.js";
|
|
2
|
+
import { N as NoItemSelectedSlots } from "./slots/NoItemSelectedEnum.js";
|
|
3
|
+
const NO_ITEM_SELECTED_KEY_COMPONENT = "M4LNoItemSelected";
|
|
4
|
+
const NO_ITEM_SELECTED_CLASSES = getComponentClasses(NO_ITEM_SELECTED_KEY_COMPONENT, NoItemSelectedSlots);
|
|
5
|
+
export {
|
|
6
|
+
NO_ITEM_SELECTED_CLASSES as N,
|
|
7
|
+
NO_ITEM_SELECTED_KEY_COMPONENT as a
|
|
8
|
+
};
|
|
@@ -1,6 +1,4 @@
|
|
|
1
|
-
import { Dictionary } from '@m4l/core';
|
|
2
1
|
export declare function getNoItemSelectedComponentsDictionary(): string[];
|
|
3
|
-
export declare const defaultNoItemSelectedDictionary: Dictionary;
|
|
4
2
|
export declare const DICTIONARY: {
|
|
5
3
|
readonly LABEL_TITLE: "no_item_selected.title";
|
|
6
4
|
readonly LABEL_DETAIL: "no_item_selected.detail";
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
const NO_ITEM_SELECTED_DICTIONARY_KEY = "no_item_selected";
|
|
2
|
+
function getNoItemSelectedComponentsDictionary() {
|
|
3
|
+
return [NO_ITEM_SELECTED_DICTIONARY_KEY];
|
|
4
|
+
}
|
|
5
|
+
const DICTIONARY = {
|
|
6
|
+
LABEL_TITLE: `${NO_ITEM_SELECTED_DICTIONARY_KEY}.title`,
|
|
7
|
+
LABEL_DETAIL: `${NO_ITEM_SELECTED_DICTIONARY_KEY}.detail`
|
|
8
|
+
};
|
|
9
|
+
export {
|
|
10
|
+
DICTIONARY as D,
|
|
11
|
+
getNoItemSelectedComponentsDictionary as g
|
|
12
|
+
};
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
export declare const NoItemSelectedRootStyled: import('@emotion/styled').StyledComponent<Pick<import('../../ImageText/types').ImageTextProps, keyof import('../../ImageText/types').ImageTextProps> & import('@mui/system').MUIStyledCommonProps<import('@mui/material/styles').Theme> & Record<string, unknown> & {
|
|
2
|
+
ownerState?: (Partial<import('../types').NoItemSelectedOwnerState> & Record<string, unknown>) | undefined;
|
|
3
|
+
}, {}, {}>;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { styled } from "@mui/material/styles";
|
|
2
|
+
import { N as NoItemSelectedSlots } from "./NoItemSelectedEnum.js";
|
|
3
|
+
import { a as NO_ITEM_SELECTED_KEY_COMPONENT } from "../constant.js";
|
|
4
|
+
import { n as noItemSelectedStyles } from "../NoItemSelected.styles.js";
|
|
5
|
+
import { I as ImageText } from "../../ImageText/ImageText.js";
|
|
6
|
+
const NoItemSelectedRootStyled = styled(ImageText, {
|
|
7
|
+
name: NO_ITEM_SELECTED_KEY_COMPONENT,
|
|
8
|
+
slot: NoItemSelectedSlots.root
|
|
9
|
+
})(noItemSelectedStyles?.root);
|
|
10
|
+
export {
|
|
11
|
+
NoItemSelectedRootStyled as N
|
|
12
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
import { Theme, PaletteColor } from '@mui/material';
|
|
2
|
-
import { M4LOverridesStyleRules } from '
|
|
3
|
-
import {
|
|
2
|
+
import { M4LOverridesStyleRules } from '../../@types/augmentations';
|
|
3
|
+
import { NO_ITEM_SELECTED_KEY_COMPONENT } from './constant';
|
|
4
4
|
import { Sizes } from '@m4l/styles';
|
|
5
5
|
import { NoItemSelectedSlots } from './slots/NoItemSelectedEnum';
|
|
6
|
-
import { LabelProps } from '
|
|
6
|
+
import { LabelProps } from '../Label/types';
|
|
7
7
|
export interface NoItemSelectedProps extends Pick<LabelProps, 'label'> {
|
|
8
8
|
image?: string;
|
|
9
|
+
title?: string;
|
|
9
10
|
message?: string;
|
|
10
11
|
paletteColor?: PaletteColor;
|
|
11
12
|
dictionaryId?: string;
|
|
@@ -13,8 +14,6 @@ export interface NoItemSelectedProps extends Pick<LabelProps, 'label'> {
|
|
|
13
14
|
dataTestId?: string;
|
|
14
15
|
size?: Extract<Sizes, 'small' | 'medium'>;
|
|
15
16
|
}
|
|
16
|
-
export
|
|
17
|
-
size: Extract<Sizes, 'small' | 'medium'>;
|
|
18
|
-
}
|
|
17
|
+
export type NoItemSelectedOwnerState = {};
|
|
19
18
|
export type NoItemSelectedSlotsType = keyof typeof NoItemSelectedSlots;
|
|
20
|
-
export type NoItemSelectedStyles = M4LOverridesStyleRules<NoItemSelectedSlotsType, typeof
|
|
19
|
+
export type NoItemSelectedStyles = M4LOverridesStyleRules<NoItemSelectedSlotsType, typeof NO_ITEM_SELECTED_KEY_COMPONENT, Theme>;
|
|
@@ -15,6 +15,7 @@ const numberInputStyles = {
|
|
|
15
15
|
paddingLeft: theme.vars.size.baseSpacings.sp1,
|
|
16
16
|
paddingRight: ownerState?.noButtons && theme.vars.size.baseSpacings.sp1,
|
|
17
17
|
boxSizing: "border-box",
|
|
18
|
+
overflow: "hidden",
|
|
18
19
|
...getHeightSizeStyles(
|
|
19
20
|
theme.generalSettings.isMobile,
|
|
20
21
|
ownerState?.size || "medium",
|
|
@@ -16,7 +16,7 @@ const useDetailFormatter = (type) => {
|
|
|
16
16
|
if (type === "m4l") {
|
|
17
17
|
logId = rowProps.id;
|
|
18
18
|
} else {
|
|
19
|
-
logId = rowProps.
|
|
19
|
+
logId = rowProps.uuid;
|
|
20
20
|
}
|
|
21
21
|
const iconConfig = {
|
|
22
22
|
iconUrl: `${host_static_assets}/${environment_assets}/frontend/components/object_logs/assets/icons/search.svg`,
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import { useCallback } from "react";
|
|
2
|
-
import { getRawFiltersForNetwork, useDynamicFilterAndSort } from "@m4l/components";
|
|
3
2
|
import { useEnvironment } from "@m4l/core";
|
|
4
3
|
import { f as filterFieldsGenerator } from "../helpers/Fields/filterFields.js";
|
|
4
|
+
import { g as getRawFiltersForNetwork } from "../../DynamicFilter/helpers/getRawFiltersForNetwork.js";
|
|
5
|
+
import { u as useDynamicFilterAndSort } from "../../../hooks/useDynamicFilterAndSort/useDynamicFilterAndSort.js";
|
|
5
6
|
function useFilterAndSort(props) {
|
|
6
7
|
const { setBackendQueryParams, Refresh, otherApp = false, resourceTypeId, resourceSerialId } = props;
|
|
7
8
|
const { host_static_assets, environment_assets } = useEnvironment();
|
|
@@ -29,9 +29,8 @@ function PaperForm(props) {
|
|
|
29
29
|
const { currentSize } = useComponentSize(size);
|
|
30
30
|
const paperFormRef = useRef(null);
|
|
31
31
|
const rootClass = getComponentSlotRoot(PAPER_FORM_KEY);
|
|
32
|
-
const adjustedSize = currentSize === "small" || currentSize === "medium" ? currentSize : "medium";
|
|
33
32
|
const ownerState = {
|
|
34
|
-
size:
|
|
33
|
+
size: currentSize,
|
|
35
34
|
color,
|
|
36
35
|
isForm,
|
|
37
36
|
paperFormVariant: variant
|
|
@@ -1,26 +1,17 @@
|
|
|
1
1
|
import { jsx, jsxs, Fragment } from "react/jsx-runtime";
|
|
2
|
-
import { useModuleSkeleton } from "@m4l/core";
|
|
3
2
|
import { H as HeaderStyled, I as IconStyled, T as TitleStyled } from "../slots/PaperFormSlots.js";
|
|
4
|
-
import { S as Skeleton } from "../../mui_extended/Skeleton/Skeleton.js";
|
|
5
3
|
const Header = (props) => {
|
|
6
4
|
const { urlIcon, title, size, dataTestId, color } = props;
|
|
7
|
-
const isSkeleton = useModuleSkeleton();
|
|
8
5
|
const ownerState = {
|
|
9
6
|
color
|
|
10
7
|
};
|
|
11
|
-
const renderSkeleton = () => {
|
|
12
|
-
return /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
13
|
-
urlIcon ? /* @__PURE__ */ jsx(Skeleton, { variant: "circular", width: 16, height: 16 }) : null,
|
|
14
|
-
/* @__PURE__ */ jsx(Skeleton, { variant: "text", width: 80, height: 16 })
|
|
15
|
-
] });
|
|
16
|
-
};
|
|
17
8
|
const renderContentHeader = () => {
|
|
18
9
|
return /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
19
10
|
urlIcon ? /* @__PURE__ */ jsx(IconStyled, { src: urlIcon, size }) : null,
|
|
20
11
|
/* @__PURE__ */ jsx(TitleStyled, { variant: "bodyDens", size, children: title })
|
|
21
12
|
] });
|
|
22
13
|
};
|
|
23
|
-
return /* @__PURE__ */ jsx(HeaderStyled, { role: "heading", ownerState, ...process.env.NODE_ENV !== "production" ? { "data-testid": dataTestId } : {}, children:
|
|
14
|
+
return /* @__PURE__ */ jsx(HeaderStyled, { role: "heading", ownerState, ...process.env.NODE_ENV !== "production" ? { "data-testid": dataTestId } : {}, children: renderContentHeader() });
|
|
24
15
|
};
|
|
25
16
|
export {
|
|
26
17
|
Header as H
|
|
@@ -58,10 +58,7 @@ const paperFormStyles = {
|
|
|
58
58
|
* @param theme
|
|
59
59
|
***********************************************************
|
|
60
60
|
*/
|
|
61
|
-
containerIcon:
|
|
62
|
-
display: "grid",
|
|
63
|
-
placeItems: "center"
|
|
64
|
-
}),
|
|
61
|
+
containerIcon: {},
|
|
65
62
|
/**
|
|
66
63
|
* ************************************************************
|
|
67
64
|
* Estilos del contenido del componente PaperForm
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { jsx } from "react/jsx-runtime";
|
|
2
|
+
import { useEnvironment, FlagsProvider, ModuleDictionaryProvider, ModuleSkeletonProvider, CommonFlags } from "@m4l/core";
|
|
3
|
+
import { useLocales, useThemeSettingsStore } from "@m4l/graphics";
|
|
4
|
+
import { S as SETTINGS_LAYOUT_DEFAULT_WIDTH } from "./constants.js";
|
|
5
|
+
import { useMemo } from "react";
|
|
6
|
+
import { S as SettingsLayoutBase } from "./subcomponents/SettingsLayoutBase/SettingsLayoutBase.js";
|
|
7
|
+
const SettingsLayout = (props) => {
|
|
8
|
+
const {
|
|
9
|
+
width = SETTINGS_LAYOUT_DEFAULT_WIDTH
|
|
10
|
+
} = props;
|
|
11
|
+
const currentLang = useLocales().currentLocale?.localeString;
|
|
12
|
+
const { host_static_assets, environment_assets } = useEnvironment();
|
|
13
|
+
const { open } = useThemeSettingsStore((state) => state);
|
|
14
|
+
const prefixPathIcon = `${host_static_assets}/${environment_assets}`;
|
|
15
|
+
const componentsDictionary = useMemo(() => {
|
|
16
|
+
return [];
|
|
17
|
+
}, []);
|
|
18
|
+
if (!open) {
|
|
19
|
+
return null;
|
|
20
|
+
}
|
|
21
|
+
return /* @__PURE__ */ jsx(FlagsProvider, { children: /* @__PURE__ */ jsx(
|
|
22
|
+
ModuleDictionaryProvider,
|
|
23
|
+
{
|
|
24
|
+
isAuth: false,
|
|
25
|
+
moduleId: "theme_settings",
|
|
26
|
+
componentsDictionary,
|
|
27
|
+
currentLang,
|
|
28
|
+
children: /* @__PURE__ */ jsx(ModuleSkeletonProvider, { flags: [CommonFlags.FLAG_DICTIONARY_LOADED], children: /* @__PURE__ */ jsx(SettingsLayoutBase, { prefixPathIcon, width }) })
|
|
29
|
+
}
|
|
30
|
+
) });
|
|
31
|
+
};
|
|
32
|
+
export {
|
|
33
|
+
SettingsLayout as S
|
|
34
|
+
};
|
|
@@ -0,0 +1,270 @@
|
|
|
1
|
+
import { PRIMARY_COLORS_LIGHT, PRIMARY_COLORS_DARK } from "@m4l/styles";
|
|
2
|
+
import { g as getTypographyStyles } from "../../utils/getTypographyStyles.js";
|
|
3
|
+
import { v as varFade } from "../animate/variants/fade.js";
|
|
4
|
+
import { g as getSizeStyles } from "../../utils/getSizeStyles/getSizeStyles.js";
|
|
5
|
+
const settingsLayoutStyles = {
|
|
6
|
+
/**
|
|
7
|
+
* Estilos css de la ranura root
|
|
8
|
+
*/
|
|
9
|
+
root: ({ theme, ownerState }) => ({
|
|
10
|
+
top: 0,
|
|
11
|
+
right: 0,
|
|
12
|
+
bottom: 0,
|
|
13
|
+
transform: "unset!important",
|
|
14
|
+
padding: theme.vars.size.baseSpacings.sp6,
|
|
15
|
+
opacity: "1!important",
|
|
16
|
+
display: "flex",
|
|
17
|
+
position: "fixed",
|
|
18
|
+
width: ownerState?.width,
|
|
19
|
+
flexDirection: "column",
|
|
20
|
+
gap: theme.vars.size.baseSpacings.sp6,
|
|
21
|
+
boxShadow: theme.vars.customShadows?.z4,
|
|
22
|
+
overflowY: "auto",
|
|
23
|
+
zIndex: theme.zIndex.drawer + 3,
|
|
24
|
+
...ownerState?.themeDirection === "ltr" && {
|
|
25
|
+
borderTopLeftRadius: theme.vars.size.borderRadius.r3,
|
|
26
|
+
borderBottomLeftRadius: theme.vars.size.borderRadius.r3
|
|
27
|
+
},
|
|
28
|
+
...ownerState?.themeDirection === "rtl" && {
|
|
29
|
+
borderTopRightRadius: theme.vars.size.borderRadius.r3,
|
|
30
|
+
borderBottomRightRadius: theme.vars.size.borderRadius.r3
|
|
31
|
+
},
|
|
32
|
+
border: theme.vars.size.borderStroke.container,
|
|
33
|
+
borderColor: theme.vars.palette.border.secondary,
|
|
34
|
+
backgroundColor: theme.vars.palette.background.base,
|
|
35
|
+
...ownerState?.themeDirection !== "rtl" ? varFade({
|
|
36
|
+
distance: ownerState?.width,
|
|
37
|
+
durationIn: 0.32,
|
|
38
|
+
durationOut: 0.32
|
|
39
|
+
}).inRight : varFade({
|
|
40
|
+
distance: ownerState?.width,
|
|
41
|
+
durationIn: 0.32,
|
|
42
|
+
durationOut: 0.32
|
|
43
|
+
}).inLeft
|
|
44
|
+
}),
|
|
45
|
+
/**
|
|
46
|
+
* Estilos css de la ranura backdrop
|
|
47
|
+
*/
|
|
48
|
+
backdrop: ({ theme }) => ({
|
|
49
|
+
background: "transparent",
|
|
50
|
+
zIndex: theme.zIndex.drawer + 1,
|
|
51
|
+
transform: "unset",
|
|
52
|
+
opacity: 1
|
|
53
|
+
}),
|
|
54
|
+
/**
|
|
55
|
+
* Estilos css de la ranura header
|
|
56
|
+
*/
|
|
57
|
+
headerContainer: () => ({
|
|
58
|
+
width: "100%",
|
|
59
|
+
display: "flex",
|
|
60
|
+
flexDirection: "row",
|
|
61
|
+
alignItems: "center",
|
|
62
|
+
justifyContent: "space-between"
|
|
63
|
+
}),
|
|
64
|
+
/**
|
|
65
|
+
* Estilos css de la ranura headerActions
|
|
66
|
+
*/
|
|
67
|
+
headerActions: ({ theme }) => ({
|
|
68
|
+
display: "flex",
|
|
69
|
+
flexDirection: "row",
|
|
70
|
+
width: "fit-content",
|
|
71
|
+
alignItems: "center",
|
|
72
|
+
padding: theme.vars.size.baseSpacings["sp0-5"],
|
|
73
|
+
gap: theme.vars.size.baseSpacings["sp0-5"],
|
|
74
|
+
borderRadius: theme.vars.size.borderRadius.r2,
|
|
75
|
+
border: theme.vars.size.borderStroke.container,
|
|
76
|
+
borderColor: theme.vars.palette.border.disabled,
|
|
77
|
+
backgroundColor: theme.vars.palette.background.default
|
|
78
|
+
}),
|
|
79
|
+
/**
|
|
80
|
+
* Estilos css de la ranura content
|
|
81
|
+
*/
|
|
82
|
+
bodyContent: ({ theme }) => ({
|
|
83
|
+
display: "flex",
|
|
84
|
+
flexDirection: "column",
|
|
85
|
+
position: "relative",
|
|
86
|
+
overflowY: "auto",
|
|
87
|
+
width: "100%",
|
|
88
|
+
gap: theme.vars.size.baseSpacings.sp6
|
|
89
|
+
}),
|
|
90
|
+
/**
|
|
91
|
+
* Estilos css de la ranura settingContainer
|
|
92
|
+
*/
|
|
93
|
+
settingContainer: ({ theme }) => ({
|
|
94
|
+
display: "flex",
|
|
95
|
+
flexDirection: "column",
|
|
96
|
+
padding: theme.vars.size.baseSpacings.sp4,
|
|
97
|
+
gap: theme.vars.size.baseSpacings.sp4,
|
|
98
|
+
borderRadius: theme.vars.size.borderRadius.r2,
|
|
99
|
+
backgroundColor: theme.vars.palette.background.default
|
|
100
|
+
}),
|
|
101
|
+
/**
|
|
102
|
+
* Estilos css de la ranura settingIconTitle
|
|
103
|
+
*/
|
|
104
|
+
settingIconTitle: ({ theme }) => ({
|
|
105
|
+
display: "flex",
|
|
106
|
+
flexDirection: "row",
|
|
107
|
+
gap: theme.vars.size.baseSpacings["sp2-5"],
|
|
108
|
+
justifyContent: "flex-start",
|
|
109
|
+
alignItems: "center"
|
|
110
|
+
}),
|
|
111
|
+
/**
|
|
112
|
+
* Estilos css de la ranura settingItemContent
|
|
113
|
+
*/
|
|
114
|
+
settingItemContent: ({ theme }) => ({
|
|
115
|
+
display: "flex",
|
|
116
|
+
flexDirection: "row",
|
|
117
|
+
gap: theme.vars.size.baseSpacings.sp4,
|
|
118
|
+
justifyContent: "space-between"
|
|
119
|
+
}),
|
|
120
|
+
/**
|
|
121
|
+
* Estilos css de la ranura settingItem
|
|
122
|
+
*/
|
|
123
|
+
settingItem: ({ theme, ownerState }) => ({
|
|
124
|
+
display: "flex",
|
|
125
|
+
flexDirection: "row",
|
|
126
|
+
justifyContent: "center",
|
|
127
|
+
alignItems: "center",
|
|
128
|
+
width: "100%",
|
|
129
|
+
height: "100%",
|
|
130
|
+
borderRadius: theme.vars.size.borderRadius.r2,
|
|
131
|
+
border: theme.vars.size.borderStroke.container,
|
|
132
|
+
borderColor: theme.vars.palette.border.disabled,
|
|
133
|
+
padding: theme.vars.size.baseSpacings.sp2,
|
|
134
|
+
outline: "unset",
|
|
135
|
+
"& .M4LIcon-root": {
|
|
136
|
+
width: theme.vars.size.baseSpacings.sp5,
|
|
137
|
+
height: theme.vars.size.baseSpacings.sp5
|
|
138
|
+
},
|
|
139
|
+
...ownerState?.onChange ? {
|
|
140
|
+
transition: "all 0.3s ease",
|
|
141
|
+
cursor: "pointer",
|
|
142
|
+
"&:hover": {
|
|
143
|
+
backgroundColor: theme.vars.palette.default.hoverOpacity
|
|
144
|
+
},
|
|
145
|
+
"&:active": {
|
|
146
|
+
backgroundColor: theme.vars.palette.default.activeOpacity
|
|
147
|
+
},
|
|
148
|
+
"&:focus-visible": {
|
|
149
|
+
borderColor: theme.vars.palette.border.main,
|
|
150
|
+
boxShadow: theme.vars.customShadows?.primary
|
|
151
|
+
},
|
|
152
|
+
...ownerState?.selected ? {
|
|
153
|
+
borderColor: theme.vars.palette.border.main,
|
|
154
|
+
backgroundColor: theme.vars.palette.primary.enabledOpacity,
|
|
155
|
+
"&:hover": {
|
|
156
|
+
backgroundColor: theme.vars.palette.primary.hoverOpacity
|
|
157
|
+
},
|
|
158
|
+
"&:active": {
|
|
159
|
+
backgroundColor: theme.vars.palette.primary.activeOpacity
|
|
160
|
+
}
|
|
161
|
+
} : {}
|
|
162
|
+
} : {}
|
|
163
|
+
}),
|
|
164
|
+
/**
|
|
165
|
+
* Estilos css de la ranura settingItemColorContainer
|
|
166
|
+
*/
|
|
167
|
+
settingItemColorContainer: () => ({
|
|
168
|
+
display: "flex",
|
|
169
|
+
flexDirection: "row",
|
|
170
|
+
width: "auto",
|
|
171
|
+
height: "auto",
|
|
172
|
+
position: "relative"
|
|
173
|
+
}),
|
|
174
|
+
/**
|
|
175
|
+
* Estilos css de la ranura settingItemColor
|
|
176
|
+
*/
|
|
177
|
+
settingItemColor: ({ theme, ownerState }) => {
|
|
178
|
+
const presetColor = ownerState?.color ?? "patronus";
|
|
179
|
+
const presetPalette = ownerState?.mode === "light" ? PRIMARY_COLORS_LIGHT[presetColor] : PRIMARY_COLORS_DARK[presetColor];
|
|
180
|
+
return {
|
|
181
|
+
...getSizeStyles(
|
|
182
|
+
theme,
|
|
183
|
+
ownerState?.size || "medium",
|
|
184
|
+
"box",
|
|
185
|
+
(size) => ({
|
|
186
|
+
width: size,
|
|
187
|
+
height: size
|
|
188
|
+
})
|
|
189
|
+
),
|
|
190
|
+
"&:focus-visible": {
|
|
191
|
+
borderColor: theme.vars.palette.border.main,
|
|
192
|
+
boxShadow: theme.vars.customShadows?.primary,
|
|
193
|
+
"&:after": {
|
|
194
|
+
content: '""',
|
|
195
|
+
position: "absolute",
|
|
196
|
+
inset: "-4px",
|
|
197
|
+
borderRadius: "40% / 45%",
|
|
198
|
+
boxShadow: `0 0 0 1px ${presetPalette.focus}`,
|
|
199
|
+
zIndex: 1
|
|
200
|
+
}
|
|
201
|
+
},
|
|
202
|
+
...ownerState?.selected ? {
|
|
203
|
+
"&:before": {
|
|
204
|
+
content: '""',
|
|
205
|
+
position: "absolute",
|
|
206
|
+
inset: "0",
|
|
207
|
+
borderRadius: theme.vars.size.borderRadius.r3,
|
|
208
|
+
boxShadow: `0 0 0 1px ${presetPalette.enabled}`,
|
|
209
|
+
backgroundColor: presetPalette.enabledOpacity,
|
|
210
|
+
zIndex: 1
|
|
211
|
+
}
|
|
212
|
+
} : {},
|
|
213
|
+
"& .M4LIcon-icon": {
|
|
214
|
+
display: "flex",
|
|
215
|
+
flexDirection: "row",
|
|
216
|
+
backgroundColor: presetPalette.enabled,
|
|
217
|
+
outline: "unset",
|
|
218
|
+
position: "relative",
|
|
219
|
+
overflow: "visible",
|
|
220
|
+
transition: "all 0.3s ease",
|
|
221
|
+
...ownerState?.onChange ? {
|
|
222
|
+
cursor: "pointer",
|
|
223
|
+
transition: "all 0.3s ease",
|
|
224
|
+
"&:hover": {
|
|
225
|
+
backgroundColor: presetPalette.hover
|
|
226
|
+
},
|
|
227
|
+
"&:active": {
|
|
228
|
+
backgroundColor: presetPalette.active
|
|
229
|
+
}
|
|
230
|
+
} : {}
|
|
231
|
+
}
|
|
232
|
+
};
|
|
233
|
+
},
|
|
234
|
+
/**
|
|
235
|
+
* Estilos css de la ranura settingFullscreen
|
|
236
|
+
*/
|
|
237
|
+
settingFullscreen: ({ theme, ownerState }) => ({
|
|
238
|
+
/* borderRadius: theme.vars.size.borderRadius['r1-5'],
|
|
239
|
+
border: 'unset',
|
|
240
|
+
outline: 'unset', */
|
|
241
|
+
display: "flex",
|
|
242
|
+
flexDirection: "row",
|
|
243
|
+
alignItems: "center",
|
|
244
|
+
justifyContent: "center",
|
|
245
|
+
borderRadius: theme.vars.size.borderRadius["r1-5"],
|
|
246
|
+
"& .MuiTypography-root": {
|
|
247
|
+
width: "fit-content",
|
|
248
|
+
...getTypographyStyles(
|
|
249
|
+
theme.generalSettings.isMobile,
|
|
250
|
+
ownerState?.size || "medium",
|
|
251
|
+
"bodyDens"
|
|
252
|
+
)
|
|
253
|
+
}
|
|
254
|
+
}),
|
|
255
|
+
/**
|
|
256
|
+
* Estilos css de la ranura icon
|
|
257
|
+
*/
|
|
258
|
+
icon: {},
|
|
259
|
+
/**
|
|
260
|
+
* Estilos css de la ranura typography
|
|
261
|
+
*/
|
|
262
|
+
typography: {},
|
|
263
|
+
/**
|
|
264
|
+
* Estilos css de la ranura divider
|
|
265
|
+
*/
|
|
266
|
+
divider: {}
|
|
267
|
+
};
|
|
268
|
+
export {
|
|
269
|
+
settingsLayoutStyles as s
|
|
270
|
+
};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { SettingsLayoutSlots } from './slots/SettingsLayoutEnum';
|
|
2
|
+
/**
|
|
3
|
+
* Nombre de clase del componente.
|
|
4
|
+
*/
|
|
5
|
+
export declare const SETTINGS_LAYOUT_COMPONENT_KEY = "M4LSettingsLayout";
|
|
6
|
+
export declare const SETTINGS_LAYOUT_CLASSES: Record<keyof typeof SettingsLayoutSlots, string>;
|
|
7
|
+
export declare const SETTINGS_LAYOUT_DEFAULT_WIDTH = 300;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { g as getComponentClasses } from "../../utils/getComponentSlotRoot.js";
|
|
2
|
+
import { S as SettingsLayoutSlots } from "./slots/SettingsLayoutEnum.js";
|
|
3
|
+
const SETTINGS_LAYOUT_COMPONENT_KEY = "M4LSettingsLayout";
|
|
4
|
+
const SETTINGS_LAYOUT_CLASSES = getComponentClasses(SETTINGS_LAYOUT_COMPONENT_KEY, SettingsLayoutSlots);
|
|
5
|
+
const SETTINGS_LAYOUT_DEFAULT_WIDTH = 300;
|
|
6
|
+
export {
|
|
7
|
+
SETTINGS_LAYOUT_DEFAULT_WIDTH as S,
|
|
8
|
+
SETTINGS_LAYOUT_COMPONENT_KEY as a,
|
|
9
|
+
SETTINGS_LAYOUT_CLASSES as b
|
|
10
|
+
};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
export declare const PATH_ICONS: {
|
|
2
|
+
REFRESH: string;
|
|
3
|
+
CLOSE: string;
|
|
4
|
+
MOON: string;
|
|
5
|
+
SUN: string;
|
|
6
|
+
MODE: string;
|
|
7
|
+
PALETTE: string;
|
|
8
|
+
DIRECTION: string;
|
|
9
|
+
ALIGN_LEFT: string;
|
|
10
|
+
ALIGN_RIGHT: string;
|
|
11
|
+
FULLSCREEN: string;
|
|
12
|
+
FULLSCREEN_EXIT: string;
|
|
13
|
+
COLOR: string;
|
|
14
|
+
};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
const PATH_ICONS = {
|
|
2
|
+
REFRESH: "frontend/components/setting_layout/assets/icons/refresh.svg",
|
|
3
|
+
CLOSE: "frontend/components/setting_layout/assets/icons/closeSmall.svg",
|
|
4
|
+
MOON: "frontend/components/setting_layout/assets/icons/CloudMoon.svg",
|
|
5
|
+
SUN: "frontend/components/setting_layout/assets/icons/Sun.svg",
|
|
6
|
+
MODE: "frontend/components/setting_layout/assets/icons/eclipse.svg",
|
|
7
|
+
PALETTE: "frontend/components/setting_layout/assets/icons/palette.svg",
|
|
8
|
+
DIRECTION: "frontend/components/setting_layout/assets/icons/signpost.svg",
|
|
9
|
+
ALIGN_LEFT: "frontend/components/setting_layout/assets/icons/align-start-vertical.svg",
|
|
10
|
+
ALIGN_RIGHT: "frontend/components/setting_layout/assets/icons/align-end-vertical.svg",
|
|
11
|
+
FULLSCREEN: "frontend/components/setting_layout/assets/icons/FrameCorners.svg",
|
|
12
|
+
FULLSCREEN_EXIT: "frontend/components/setting_layout/assets/icons/exit_fullscreen.svg",
|
|
13
|
+
COLOR: "frontend/components/setting_layout/assets/icons/color_preset.svg"
|
|
14
|
+
};
|
|
15
|
+
export {
|
|
16
|
+
PATH_ICONS as P
|
|
17
|
+
};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
export declare enum SettingsLayoutSlots {
|
|
2
|
+
root = "root",
|
|
3
|
+
backdrop = "backdrop",
|
|
4
|
+
icon = "icon",
|
|
5
|
+
typography = "typography",
|
|
6
|
+
divider = "divider",
|
|
7
|
+
headerContainer = "headerContainer",
|
|
8
|
+
headerActions = "headerActions",
|
|
9
|
+
bodyContent = "bodyContent",
|
|
10
|
+
settingContainer = "settingContainer",
|
|
11
|
+
settingIconTitle = "settingIconTitle",
|
|
12
|
+
settingItem = "settingItem",
|
|
13
|
+
settingItemColor = "settingItemColor",
|
|
14
|
+
settingItemColorContainer = "settingItemColorContainer",
|
|
15
|
+
settingItemContent = "settingItemContent",
|
|
16
|
+
settingFullscreen = "settingFullscreen"
|
|
17
|
+
}
|