@mittwald/flow-react-components 0.2.0-alpha.191 → 0.2.0-alpha.193
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/CHANGELOG.md +10 -0
- package/dist/assets/doc-properties.json +1919 -1839
- package/dist/css/all.css +1 -1
- package/dist/js/_virtual/_.locale.json@8d5024994f97657f895a4e2a188d2d8a.mjs +4 -2
- package/dist/js/_virtual/_.locale.json@8d5024994f97657f895a4e2a188d2d8a.mjs.map +1 -1
- package/dist/js/components/src/components/ContextMenu/components/ContextMenuSection/ContextMenuSection.mjs.map +1 -1
- package/dist/js/components/src/components/List/List.mjs +7 -5
- package/dist/js/components/src/components/List/List.mjs.map +1 -1
- package/dist/js/components/src/components/List/components/Header/Header.mjs +20 -19
- package/dist/js/components/src/components/List/components/Header/Header.mjs.map +1 -1
- package/dist/js/components/src/components/List/components/Header/Header.module.css.mjs +14 -10
- package/dist/js/components/src/components/List/components/Header/Header.module.css.mjs.map +1 -1
- package/dist/js/components/src/components/List/components/Header/components/Filters/CombinedFilterMenu.mjs +76 -0
- package/dist/js/components/src/components/List/components/Header/components/Filters/CombinedFilterMenu.mjs.map +1 -0
- package/dist/js/components/src/components/List/components/Header/components/{FilterPicker/FilterPicker.mjs → Filters/FilterMenu.mjs} +19 -20
- package/dist/js/components/src/components/List/components/Header/components/Filters/FilterMenu.mjs.map +1 -0
- package/dist/js/components/src/components/List/components/Header/components/Filters/FilterMenuItem.mjs +23 -0
- package/dist/js/components/src/components/List/components/Header/components/Filters/FilterMenuItem.mjs.map +1 -0
- package/dist/js/components/src/components/List/components/Header/components/Filters/FilterMenuList.mjs +38 -0
- package/dist/js/components/src/components/List/components/Header/components/Filters/FilterMenuList.mjs.map +1 -0
- package/dist/js/components/src/components/List/components/Header/components/SearchField/SearchField.mjs +4 -4
- package/dist/js/components/src/components/List/components/Header/components/SearchField/SearchField.mjs.map +1 -1
- package/dist/js/components/src/components/List/components/Header/components/SearchField/SearchField.module.scss.mjs +9 -0
- package/dist/js/components/src/components/List/components/Header/components/SearchField/SearchField.module.scss.mjs.map +1 -0
- package/dist/js/components/src/components/List/components/Header/components/Settings/SettingsMenu.mjs +76 -0
- package/dist/js/components/src/components/List/components/Header/components/Settings/SettingsMenu.mjs.map +1 -0
- package/dist/js/components/src/components/List/components/Header/components/{SortingPicker/SortingPicker.mjs → Settings/SortingMenu.mjs} +23 -17
- package/dist/js/components/src/components/List/components/Header/components/Settings/SortingMenu.mjs.map +1 -0
- package/dist/js/components/src/components/List/components/Header/components/Settings/SortingMenuItem.mjs +48 -0
- package/dist/js/components/src/components/List/components/Header/components/Settings/SortingMenuItem.mjs.map +1 -0
- package/dist/js/components/src/components/List/components/Header/components/{ViewModeMenu → Settings}/ViewModeMenu.mjs +6 -27
- package/dist/js/components/src/components/List/components/Header/components/Settings/ViewModeMenu.mjs.map +1 -0
- package/dist/js/components/src/components/List/components/Header/components/Settings/ViewModeMenuItem.mjs +51 -0
- package/dist/js/components/src/components/List/components/Header/components/Settings/ViewModeMenuItem.mjs.map +1 -0
- package/dist/js/components/src/components/List/components/Header/lib.mjs +47 -0
- package/dist/js/components/src/components/List/components/Header/lib.mjs.map +1 -0
- package/dist/js/components/src/components/List/components/ListItemView/ListItemView.mjs +2 -1
- package/dist/js/components/src/components/List/components/ListItemView/ListItemView.mjs.map +1 -1
- package/dist/js/components/src/components/List/components/ListItemView/components/ListItemViewContent/ListItemViewContent.mjs +2 -2
- package/dist/js/components/src/components/List/components/ListItemView/components/ListItemViewContent/ListItemViewContent.mjs.map +1 -1
- package/dist/types/components/ContextMenu/components/ContextMenuSection/ContextMenuSection.d.ts +2 -2
- package/dist/types/components/ContextMenu/components/ContextMenuSection/ContextMenuSection.d.ts.map +1 -1
- package/dist/types/components/List/List.d.ts.map +1 -1
- package/dist/types/components/List/components/Header/Header.d.ts +1 -4
- package/dist/types/components/List/components/Header/Header.d.ts.map +1 -1
- package/dist/types/components/List/components/Header/components/Filters/CombinedFilterMenu.d.ts +3 -0
- package/dist/types/components/List/components/Header/components/Filters/CombinedFilterMenu.d.ts.map +1 -0
- package/dist/types/components/List/components/Header/components/{FilterPicker/FilterPicker.d.ts → Filters/FilterMenu.d.ts} +2 -2
- package/dist/types/components/List/components/Header/components/Filters/FilterMenu.d.ts.map +1 -0
- package/dist/types/components/List/components/Header/components/Filters/FilterMenuItem.d.ts +8 -0
- package/dist/types/components/List/components/Header/components/Filters/FilterMenuItem.d.ts.map +1 -0
- package/dist/types/components/List/components/Header/components/Filters/FilterMenuList.d.ts +3 -0
- package/dist/types/components/List/components/Header/components/Filters/FilterMenuList.d.ts.map +1 -0
- package/dist/types/components/List/components/Header/components/SearchField/SearchField.d.ts.map +1 -1
- package/dist/types/components/List/components/Header/components/Settings/SettingsMenu.d.ts +3 -0
- package/dist/types/components/List/components/Header/components/Settings/SettingsMenu.d.ts.map +1 -0
- package/dist/types/components/List/components/Header/components/Settings/SortingMenu.d.ts +3 -0
- package/dist/types/components/List/components/Header/components/Settings/SortingMenu.d.ts.map +1 -0
- package/dist/types/components/List/components/Header/components/{SortingPickerItem/SortingPickerItem.d.ts → Settings/SortingMenuItem.d.ts} +2 -2
- package/dist/types/components/List/components/Header/components/Settings/SortingMenuItem.d.ts.map +1 -0
- package/dist/types/components/List/components/Header/components/Settings/ViewModeMenu.d.ts.map +1 -0
- package/dist/types/components/List/components/Header/components/Settings/ViewModeMenuItem.d.ts +8 -0
- package/dist/types/components/List/components/Header/components/Settings/ViewModeMenuItem.d.ts.map +1 -0
- package/dist/types/components/List/components/Header/lib.d.ts +3 -0
- package/dist/types/components/List/components/Header/lib.d.ts.map +1 -0
- package/dist/types/components/List/components/ListItemView/ListItemView.d.ts.map +1 -1
- package/dist/types/components/List/model/search/types.d.ts +1 -1
- package/dist/types/components/List/model/search/types.d.ts.map +1 -1
- package/dist/types/components/List/stories/Default.stories.d.ts.map +1 -1
- package/dist/types/components/List/stories/ListItem.stories.d.ts.map +1 -1
- package/dist/types/components/List/typedList.d.ts +1 -4
- package/dist/types/components/List/typedList.d.ts.map +1 -1
- package/package.json +4 -4
- package/dist/js/components/src/components/List/components/Header/components/FilterPicker/FilterPicker.mjs.map +0 -1
- package/dist/js/components/src/components/List/components/Header/components/FilterPicker/index.mjs +0 -6
- package/dist/js/components/src/components/List/components/Header/components/FilterPicker/index.mjs.map +0 -1
- package/dist/js/components/src/components/List/components/Header/components/SortingPicker/SortingPicker.mjs.map +0 -1
- package/dist/js/components/src/components/List/components/Header/components/SortingPickerItem/SortingPickerItem.mjs +0 -13
- package/dist/js/components/src/components/List/components/Header/components/SortingPickerItem/SortingPickerItem.mjs.map +0 -1
- package/dist/js/components/src/components/List/components/Header/components/ViewModeMenu/ViewModeMenu.mjs.map +0 -1
- package/dist/js/components/src/lib/react/deepHas.mjs +0 -8
- package/dist/js/components/src/lib/react/deepHas.mjs.map +0 -1
- package/dist/js/components/src/views/SectionView.mjs +0 -14
- package/dist/js/components/src/views/SectionView.mjs.map +0 -1
- package/dist/types/components/List/components/Header/components/FilterPicker/FilterPicker.d.ts.map +0 -1
- package/dist/types/components/List/components/Header/components/FilterPicker/index.d.ts +0 -4
- package/dist/types/components/List/components/Header/components/FilterPicker/index.d.ts.map +0 -1
- package/dist/types/components/List/components/Header/components/SortingPicker/SortingPicker.d.ts +0 -3
- package/dist/types/components/List/components/Header/components/SortingPicker/SortingPicker.d.ts.map +0 -1
- package/dist/types/components/List/components/Header/components/SortingPicker/index.d.ts +0 -4
- package/dist/types/components/List/components/Header/components/SortingPicker/index.d.ts.map +0 -1
- package/dist/types/components/List/components/Header/components/SortingPickerItem/SortingPickerItem.d.ts.map +0 -1
- package/dist/types/components/List/components/Header/components/SortingPickerItem/index.d.ts +0 -4
- package/dist/types/components/List/components/Header/components/SortingPickerItem/index.d.ts.map +0 -1
- package/dist/types/components/List/components/Header/components/ViewModeMenu/ViewModeMenu.d.ts.map +0 -1
- /package/dist/types/components/List/components/Header/components/{ViewModeMenu → Settings}/ViewModeMenu.d.ts +0 -0
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
"use client"
|
|
2
|
+
/* */
|
|
3
|
+
import { jsx, jsxs } from 'react/jsx-runtime';
|
|
4
|
+
import 'react';
|
|
5
|
+
import { useList } from '../../../../hooks/useList.mjs';
|
|
6
|
+
import { ContextMenu } from '../../../../../ContextMenu/ContextMenu.mjs';
|
|
7
|
+
import '../../../../../MenuItem/MenuItem.mjs';
|
|
8
|
+
import { ContextMenuTrigger } from '../../../../../ContextMenu/components/ContextMenuTrigger/ContextMenuTrigger.mjs';
|
|
9
|
+
import 'react-aria-components';
|
|
10
|
+
import { ContextMenuSection } from '../../../../../ContextMenu/components/ContextMenuSection/ContextMenuSection.mjs';
|
|
11
|
+
import locales from '../../../../../../../../_virtual/_.locale.json@8d5024994f97657f895a4e2a188d2d8a.mjs';
|
|
12
|
+
import ButtonView from '../../../../../../views/ButtonView.mjs';
|
|
13
|
+
import '@tabler/icons-react';
|
|
14
|
+
import '../../../../../Icon/Icon.mjs';
|
|
15
|
+
import '../../../../../../lib/viewComponentContext/viewComponentContext.mjs';
|
|
16
|
+
import { IconSettings } from '../../../../../Icon/components/icons/IconSettings.mjs';
|
|
17
|
+
import HeadingView from '../../../../../../views/HeadingView.mjs';
|
|
18
|
+
import { useLocalizedStringFormatter } from 'react-aria';
|
|
19
|
+
import headerStyles from '../../Header.module.css.mjs';
|
|
20
|
+
import { Separator } from '../../../../../Separator/Separator.mjs';
|
|
21
|
+
import { ViewModeMenuItem } from './ViewModeMenuItem.mjs';
|
|
22
|
+
import { useAvailableViewModes } from '../../lib.mjs';
|
|
23
|
+
import { SortingMenuItem } from './SortingMenuItem.mjs';
|
|
24
|
+
|
|
25
|
+
const SettingsMenu = () => {
|
|
26
|
+
const list = useList();
|
|
27
|
+
const selectedViewMode = list.viewMode;
|
|
28
|
+
const availableViewModes = useAvailableViewModes();
|
|
29
|
+
const viewModeItems = availableViewModes.map((viewMode) => /* @__PURE__ */ jsx(ViewModeMenuItem, { viewMode }));
|
|
30
|
+
const sortingItems = list.visibleSorting.map((s) => /* @__PURE__ */ jsx(SortingMenuItem, { sorting: s }, s.id));
|
|
31
|
+
const labelSorting = list.visibleSorting.find((s) => s.isSorted());
|
|
32
|
+
const stringFormatter = useLocalizedStringFormatter(locales);
|
|
33
|
+
if (sortingItems.length === 0 && viewModeItems.length <= 1) {
|
|
34
|
+
return null;
|
|
35
|
+
}
|
|
36
|
+
return /* @__PURE__ */ jsxs(ContextMenuTrigger, { children: [
|
|
37
|
+
/* @__PURE__ */ jsx(
|
|
38
|
+
ButtonView,
|
|
39
|
+
{
|
|
40
|
+
className: headerStyles.mobile,
|
|
41
|
+
variant: "outline",
|
|
42
|
+
color: "secondary",
|
|
43
|
+
"aria-label": stringFormatter.format("list.settings"),
|
|
44
|
+
children: /* @__PURE__ */ jsx(IconSettings, {})
|
|
45
|
+
}
|
|
46
|
+
),
|
|
47
|
+
/* @__PURE__ */ jsxs(ContextMenu, { children: [
|
|
48
|
+
viewModeItems.length > 1 && /* @__PURE__ */ jsxs(
|
|
49
|
+
ContextMenuSection,
|
|
50
|
+
{
|
|
51
|
+
selectionMode: "single",
|
|
52
|
+
selectedKeys: [selectedViewMode],
|
|
53
|
+
children: [
|
|
54
|
+
/* @__PURE__ */ jsx(HeadingView, { children: stringFormatter.format("list.settings.viewMode") }),
|
|
55
|
+
viewModeItems
|
|
56
|
+
]
|
|
57
|
+
}
|
|
58
|
+
),
|
|
59
|
+
sortingItems.length > 0 && viewModeItems.length > 1 && /* @__PURE__ */ jsx(Separator, {}),
|
|
60
|
+
sortingItems.length > 0 && /* @__PURE__ */ jsxs(
|
|
61
|
+
ContextMenuSection,
|
|
62
|
+
{
|
|
63
|
+
selectionMode: "single",
|
|
64
|
+
selectedKeys: labelSorting ? [labelSorting.id] : [],
|
|
65
|
+
children: [
|
|
66
|
+
/* @__PURE__ */ jsx(HeadingView, { children: stringFormatter.format("list.sorting") }),
|
|
67
|
+
sortingItems
|
|
68
|
+
]
|
|
69
|
+
}
|
|
70
|
+
)
|
|
71
|
+
] })
|
|
72
|
+
] });
|
|
73
|
+
};
|
|
74
|
+
|
|
75
|
+
export { SettingsMenu };
|
|
76
|
+
//# sourceMappingURL=SettingsMenu.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SettingsMenu.mjs","sources":["../../../../../../../../../../src/components/List/components/Header/components/Settings/SettingsMenu.tsx"],"sourcesContent":["import type { FC } from \"react\";\nimport React from \"react\";\nimport { useList } from \"@/components/List/hooks/useList\";\nimport ContextMenu, {\n ContextMenuSection,\n ContextMenuTrigger,\n} from \"@/components/ContextMenu\";\nimport locales from \"../../../../locales/*.locale.json\";\nimport ButtonView from \"@/views/ButtonView\";\nimport { IconSettings } from \"@/components/Icon/components/icons\";\nimport HeadingView from \"@/views/HeadingView\";\nimport { useLocalizedStringFormatter } from \"react-aria\";\nimport styles from \"../../Header.module.css\";\nimport { Separator } from \"@/components/Separator\";\nimport { ViewModeMenuItem } from \"@/components/List/components/Header/components/Settings/ViewModeMenuItem\";\nimport { useAvailableViewModes } from \"@/components/List/components/Header/lib\";\nimport { SortingMenuItem } from \"@/components/List/components/Header/components/Settings/SortingMenuItem\";\n\nexport const SettingsMenu: FC = () => {\n const list = useList();\n\n const selectedViewMode = list.viewMode;\n const availableViewModes = useAvailableViewModes();\n const viewModeItems = availableViewModes.map((viewMode) => (\n <ViewModeMenuItem viewMode={viewMode} />\n ));\n\n const sortingItems = list.visibleSorting.map((s) => (\n <SortingMenuItem sorting={s} key={s.id} />\n ));\n const labelSorting = list.visibleSorting.find((s) => s.isSorted());\n\n const stringFormatter = useLocalizedStringFormatter(locales);\n\n if (sortingItems.length === 0 && viewModeItems.length <= 1) {\n return null;\n }\n\n return (\n <ContextMenuTrigger>\n <ButtonView\n className={styles.mobile}\n variant=\"outline\"\n color=\"secondary\"\n aria-label={stringFormatter.format(\"list.settings\")}\n >\n <IconSettings />\n </ButtonView>\n\n <ContextMenu>\n {viewModeItems.length > 1 && (\n <ContextMenuSection\n selectionMode=\"single\"\n selectedKeys={[selectedViewMode]}\n >\n <HeadingView>\n {stringFormatter.format(\"list.settings.viewMode\")}\n </HeadingView>\n {viewModeItems}\n </ContextMenuSection>\n )}\n\n {sortingItems.length > 0 && viewModeItems.length > 1 && <Separator />}\n\n {sortingItems.length > 0 && (\n <ContextMenuSection\n selectionMode=\"single\"\n selectedKeys={labelSorting ? [labelSorting.id] : []}\n >\n <HeadingView>{stringFormatter.format(\"list.sorting\")}</HeadingView>\n {sortingItems}\n </ContextMenuSection>\n )}\n </ContextMenu>\n </ContextMenuTrigger>\n );\n};\n"],"names":["styles"],"mappings":";;;;;;;;;;;;;;;;;;;;;;AAkBO,MAAM,eAAmB,MAAM;AACpC,EAAA,MAAM,OAAO,OAAQ,EAAA;AAErB,EAAA,MAAM,mBAAmB,IAAK,CAAA,QAAA;AAC9B,EAAA,MAAM,qBAAqB,qBAAsB,EAAA;AACjD,EAAM,MAAA,aAAA,GAAgB,mBAAmB,GAAI,CAAA,CAAC,6BAC3C,GAAA,CAAA,gBAAA,EAAA,EAAiB,UAAoB,CACvC,CAAA;AAED,EAAA,MAAM,YAAe,GAAA,IAAA,CAAK,cAAe,CAAA,GAAA,CAAI,CAAC,CAAA,qBAC3C,GAAA,CAAA,eAAA,EAAA,EAAgB,OAAS,EAAA,CAAA,EAAA,EAAQ,CAAE,CAAA,EAAI,CACzC,CAAA;AACD,EAAM,MAAA,YAAA,GAAe,KAAK,cAAe,CAAA,IAAA,CAAK,CAAC,CAAM,KAAA,CAAA,CAAE,UAAU,CAAA;AAEjE,EAAM,MAAA,eAAA,GAAkB,4BAA4B,OAAO,CAAA;AAE3D,EAAA,IAAI,YAAa,CAAA,MAAA,KAAW,CAAK,IAAA,aAAA,CAAc,UAAU,CAAG,EAAA;AAC1D,IAAO,OAAA,IAAA;AAAA;AAGT,EAAA,4BACG,kBACC,EAAA,EAAA,QAAA,EAAA;AAAA,oBAAA,GAAA;AAAA,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SortingPickerItem.mjs';
|
|
6
5
|
import { useList } from '../../../../hooks/useList.mjs';
|
|
7
6
|
import { ContextMenu } from '../../../../../ContextMenu/ContextMenu.mjs';
|
|
8
7
|
import '../../../../../MenuItem/MenuItem.mjs';
|
|
@@ -17,33 +16,40 @@ import '@tabler/icons-react';
|
|
|
17
16
|
import '../../../../../Icon/Icon.mjs';
|
|
18
17
|
import '../../../../../../lib/viewComponentContext/viewComponentContext.mjs';
|
|
19
18
|
import { IconSorting } from '../../../../../Icon/components/icons/IconSorting.mjs';
|
|
19
|
+
import headerStyles from '../../Header.module.css.mjs';
|
|
20
|
+
import { SortingMenuItem } from './SortingMenuItem.mjs';
|
|
20
21
|
|
|
21
|
-
const
|
|
22
|
+
const SortingMenu = () => {
|
|
22
23
|
const list = useList();
|
|
23
|
-
const
|
|
24
|
-
if (
|
|
24
|
+
const sortingItems = list.visibleSorting.map((s) => /* @__PURE__ */ jsx(SortingMenuItem, { sorting: s }, s.id));
|
|
25
|
+
if (sortingItems.length === 0) {
|
|
25
26
|
return null;
|
|
26
27
|
}
|
|
27
|
-
const
|
|
28
|
-
const text = /* @__PURE__ */ jsx(TextView, { children:
|
|
28
|
+
const labelSorting = list.visibleSorting.find((s) => s.isSorted());
|
|
29
|
+
const text = /* @__PURE__ */ jsx(TextView, { children: labelSorting ? /* @__PURE__ */ jsx(Fragment, { children: labelSorting.name ?? labelSorting.property }) : /* @__PURE__ */ jsx(Translate, { locales, children: "list.sorting" }) });
|
|
29
30
|
return /* @__PURE__ */ jsxs(ContextMenuTrigger, { children: [
|
|
30
|
-
/* @__PURE__ */ jsxs(
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
31
|
+
/* @__PURE__ */ jsxs(
|
|
32
|
+
ButtonView,
|
|
33
|
+
{
|
|
34
|
+
variant: "outline",
|
|
35
|
+
color: "secondary",
|
|
36
|
+
className: headerStyles.desktop,
|
|
37
|
+
children: [
|
|
38
|
+
text,
|
|
39
|
+
/* @__PURE__ */ jsx(IconSorting, {})
|
|
40
|
+
]
|
|
41
|
+
}
|
|
42
|
+
),
|
|
34
43
|
/* @__PURE__ */ jsx(
|
|
35
44
|
ContextMenu,
|
|
36
45
|
{
|
|
37
46
|
selectionMode: "single",
|
|
38
|
-
selectedKeys:
|
|
39
|
-
|
|
40
|
-
list.getSorting(String(id)).enable();
|
|
41
|
-
},
|
|
42
|
-
children: pickerItems
|
|
47
|
+
selectedKeys: labelSorting ? [labelSorting.id] : [],
|
|
48
|
+
children: sortingItems
|
|
43
49
|
}
|
|
44
50
|
)
|
|
45
51
|
] });
|
|
46
52
|
};
|
|
47
53
|
|
|
48
|
-
export {
|
|
49
|
-
//# sourceMappingURL=
|
|
54
|
+
export { SortingMenu };
|
|
55
|
+
//# sourceMappingURL=SortingMenu.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SortingMenu.mjs","sources":["../../../../../../../../../../src/components/List/components/Header/components/Settings/SortingMenu.tsx"],"sourcesContent":["import type { FC } from \"react\";\nimport React from \"react\";\nimport { useList } from \"@/components/List/hooks/useList\";\nimport ContextMenu, { ContextMenuTrigger } from \"@/components/ContextMenu\";\nimport locales from \"../../../../locales/*.locale.json\";\nimport { Translate } from \"@/lib/react/components/Translate\";\nimport TextView from \"@/views/TextView\";\nimport ButtonView from \"@/views/ButtonView\";\nimport { IconSorting } from \"@/components/Icon/components/icons\";\nimport styles from \"@/components/List/components/Header/Header.module.css\";\nimport { SortingMenuItem } from \"@/components/List/components/Header/components/Settings/SortingMenuItem\";\n\nexport const SortingMenu: FC = () => {\n const list = useList();\n\n const sortingItems = list.visibleSorting.map((s) => (\n <SortingMenuItem sorting={s} key={s.id} />\n ));\n\n if (sortingItems.length === 0) {\n return null;\n }\n\n const labelSorting = list.visibleSorting.find((s) => s.isSorted());\n\n const text = (\n <TextView>\n {labelSorting ? (\n <>{labelSorting.name ?? labelSorting.property}</>\n ) : (\n <Translate locales={locales}>list.sorting</Translate>\n )}\n </TextView>\n );\n\n return (\n <ContextMenuTrigger>\n <ButtonView\n variant=\"outline\"\n color=\"secondary\"\n className={styles.desktop}\n >\n {text}\n <IconSorting />\n </ButtonView>\n <ContextMenu\n selectionMode=\"single\"\n selectedKeys={labelSorting ? [labelSorting.id] : []}\n >\n {sortingItems}\n </ContextMenu>\n </ContextMenuTrigger>\n );\n};\n"],"names":["styles"],"mappings":";;;;;;;;;;;;;;;;;;;AAYO,MAAM,cAAkB,MAAM;AACnC,EAAA,MAAM,OAAO,OAAQ,EAAA;AAErB,EAAA,MAAM,YAAe,GAAA,IAAA,CAAK,cAAe,CAAA,GAAA,CAAI,CAAC,CAAA,qBAC3C,GAAA,CAAA,eAAA,EAAA,EAAgB,OAAS,EAAA,CAAA,EAAA,EAAQ,CAAE,CAAA,EAAI,CACzC,CAAA;AAED,EAAI,IAAA,YAAA,CAAa,WAAW,CAAG,EAAA;AAC7B,IAAO,OAAA,IAAA;AAAA;AAGT,EAAM,MAAA,YAAA,GAAe,KAAK,cAAe,CAAA,IAAA,CAAK,CAAC,CAAM,KAAA,CAAA,CAAE,UAAU,CAAA;AAEjE,EAAA,MAAM,IACJ,mBAAA,GAAA,CAAC,QACE,EAAA,EAAA,QAAA,EAAA,YAAA,mCACI,QAAa,EAAA,YAAA,CAAA,IAAA,IAAQ,YAAa,CAAA,QAAA,EAAS,CAE9C,mBAAA,GAAA,CAAC,SAAU,EAAA,EAAA,OAAA,EAAkB,0BAAY,CAE7C,EAAA,CAAA;AAGF,EAAA,4BACG,kBACC,EAAA,EAAA,QAAA,EAAA;AAAA,oBAAA,IAAA;AAAA,MAAC,UAAA;AAAA,MAAA;AAAA,QACC,OAAQ,EAAA,SAAA;AAAA,QACR,KAAM,EAAA,WAAA;AAAA,QACN,WAAWA,YAAO,CAAA,OAAA;AAAA,QAEjB,QAAA,EAAA;AAAA,UAAA,IAAA;AAAA,8BACA,WAAY,EAAA,EAAA;AAAA;AAAA;AAAA,KACf;AAAA,oBACA,GAAA;AAAA,MAAC,WAAA;AAAA,MAAA;AAAA,QACC,aAAc,EAAA,QAAA;AAAA,QACd,cAAc,YAAe,GAAA,CAAC,YAAa,CAAA,EAAE,IAAI,EAAC;AAAA,QAEjD,QAAA,EAAA;AAAA;AAAA;AACH,GACF,EAAA,CAAA;AAEJ;;;;"}
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
"use client"
|
|
2
|
+
/* */
|
|
3
|
+
import { jsx } from 'react/jsx-runtime';
|
|
4
|
+
import 'react';
|
|
5
|
+
import MenuItemView from '../../../../../../views/MenuItemView.mjs';
|
|
6
|
+
import 'invariant';
|
|
7
|
+
import 'luxon';
|
|
8
|
+
import 'react-aria-components';
|
|
9
|
+
import 'clsx';
|
|
10
|
+
import '../../../../../../lib/propsContext/propsContext.mjs';
|
|
11
|
+
import '../../../../../../lib/viewComponentContext/viewComponentContext.mjs';
|
|
12
|
+
import '@mittwald/react-tunnel';
|
|
13
|
+
import '../../../../../../lib/slotContext/slotContext.mjs';
|
|
14
|
+
import '@react-aria/utils';
|
|
15
|
+
import 'remeda';
|
|
16
|
+
import 'dot-prop';
|
|
17
|
+
import '@tabler/icons-react';
|
|
18
|
+
import '../../../../../Icon/Icon.mjs';
|
|
19
|
+
import '../../../../../Heading/Heading.mjs';
|
|
20
|
+
import '../../../../../Text/Text.mjs';
|
|
21
|
+
import 'react-aria';
|
|
22
|
+
import '../../../../../Button/Button.mjs';
|
|
23
|
+
import '../../../../../ContextMenu/ContextMenu.mjs';
|
|
24
|
+
import '../../../../../MenuItem/MenuItem.mjs';
|
|
25
|
+
import '../../../../../ContextMenu/components/ContextMenuTrigger/ContextMenuTrigger.mjs';
|
|
26
|
+
import '../../../../../ContextMenu/components/ContextMenuSection/ContextMenuSection.mjs';
|
|
27
|
+
import '../../../../../ColumnLayout/ColumnLayout.mjs';
|
|
28
|
+
import '../../../ListSummary/ListSummary.mjs';
|
|
29
|
+
import { useList } from '../../../../hooks/useList.mjs';
|
|
30
|
+
import '../../../../List.mjs';
|
|
31
|
+
|
|
32
|
+
const SortingMenuItem = (props) => {
|
|
33
|
+
const { sorting } = props;
|
|
34
|
+
const list = useList();
|
|
35
|
+
return /* @__PURE__ */ jsx(
|
|
36
|
+
MenuItemView,
|
|
37
|
+
{
|
|
38
|
+
id: sorting.id,
|
|
39
|
+
onAction: () => {
|
|
40
|
+
list.getSorting(sorting.id).enable();
|
|
41
|
+
},
|
|
42
|
+
children: sorting.name ?? sorting.property
|
|
43
|
+
}
|
|
44
|
+
);
|
|
45
|
+
};
|
|
46
|
+
|
|
47
|
+
export { SortingMenuItem };
|
|
48
|
+
//# sourceMappingURL=SortingMenuItem.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SortingMenuItem.mjs","sources":["../../../../../../../../../../src/components/List/components/Header/components/Settings/SortingMenuItem.tsx"],"sourcesContent":["import type { FC } from \"react\";\nimport React from \"react\";\nimport type { Sorting } from \"@/components/List/model/sorting/Sorting\";\nimport MenuItemView from \"@/views/MenuItemView\";\nimport { useList } from \"@/components/List\";\n\ninterface Props {\n sorting: Sorting<never>;\n}\n\nexport const SortingMenuItem: FC<Props> = (props) => {\n const { sorting } = props;\n\n const list = useList();\n\n return (\n <MenuItemView\n id={sorting.id}\n onAction={() => {\n list.getSorting(sorting.id).enable();\n }}\n >\n {sorting.name ?? sorting.property}\n </MenuItemView>\n );\n};\n"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAUa,MAAA,eAAA,GAA6B,CAAC,KAAU,KAAA;AACnD,EAAM,MAAA,EAAE,SAAY,GAAA,KAAA;AAEpB,EAAA,MAAM,OAAO,OAAQ,EAAA;AAErB,EACE,uBAAA,GAAA;AAAA,IAAC,YAAA;AAAA,IAAA;AAAA,MACC,IAAI,OAAQ,CAAA,EAAA;AAAA,MACZ,UAAU,MAAM;AACd,QAAA,IAAA,CAAK,UAAW,CAAA,OAAA,CAAQ,EAAE,CAAA,CAAE,MAAO,EAAA;AAAA,OACrC;AAAA,MAEC,QAAA,EAAA,OAAA,CAAQ,QAAQ,OAAQ,CAAA;AAAA;AAAA,GAC3B;AAEJ;;;;"}
|
|
@@ -30,24 +30,15 @@ import '../../../ListSummary/ListSummary.mjs';
|
|
|
30
30
|
import { useList } from '../../../../hooks/useList.mjs';
|
|
31
31
|
import '../../../../List.mjs';
|
|
32
32
|
import TextView from '../../../../../../views/TextView.mjs';
|
|
33
|
-
import
|
|
34
|
-
import
|
|
35
|
-
import
|
|
33
|
+
import { ViewModeMenuItem } from './ViewModeMenuItem.mjs';
|
|
34
|
+
import { useAvailableViewModes } from '../../lib.mjs';
|
|
35
|
+
import headerStyles from '../../Header.module.css.mjs';
|
|
36
36
|
|
|
37
37
|
const ViewModeMenu = () => {
|
|
38
38
|
const stringFormatter = useLocalizedStringFormatter(locales);
|
|
39
39
|
const list = useList();
|
|
40
40
|
const selectedViewMode = list.viewMode;
|
|
41
|
-
const availableViewModes =
|
|
42
|
-
if (list.itemView?.showList) {
|
|
43
|
-
availableViewModes.push("list");
|
|
44
|
-
}
|
|
45
|
-
if (list.table) {
|
|
46
|
-
availableViewModes.push("table");
|
|
47
|
-
}
|
|
48
|
-
if (list.itemView?.showTiles) {
|
|
49
|
-
availableViewModes.push("tiles");
|
|
50
|
-
}
|
|
41
|
+
const availableViewModes = useAvailableViewModes();
|
|
51
42
|
if (availableViewModes.length <= 1) {
|
|
52
43
|
return null;
|
|
53
44
|
}
|
|
@@ -58,26 +49,14 @@ const ViewModeMenu = () => {
|
|
|
58
49
|
variant: "outline",
|
|
59
50
|
color: "secondary",
|
|
60
51
|
"aria-label": stringFormatter.format("list.settings"),
|
|
52
|
+
className: headerStyles.desktop,
|
|
61
53
|
children: [
|
|
62
54
|
/* @__PURE__ */ jsx(TextView, { children: stringFormatter.format(`list.settings.viewMode.${selectedViewMode}`) }),
|
|
63
55
|
/* @__PURE__ */ jsx(IconView, {})
|
|
64
56
|
]
|
|
65
57
|
}
|
|
66
58
|
),
|
|
67
|
-
/* @__PURE__ */ jsx(ContextMenu, { selectionMode: "single", selectedKeys: [selectedViewMode], children: /* @__PURE__ */
|
|
68
|
-
/* @__PURE__ */ jsx(HeadingView, { children: stringFormatter.format("list.settings.viewMode") }),
|
|
69
|
-
availableViewModes.map((viewMode) => /* @__PURE__ */ jsx(
|
|
70
|
-
MenuItemView,
|
|
71
|
-
{
|
|
72
|
-
id: viewMode,
|
|
73
|
-
onAction: () => {
|
|
74
|
-
list.setViewMode(viewMode);
|
|
75
|
-
},
|
|
76
|
-
children: stringFormatter.format(`list.settings.viewMode.${viewMode}`)
|
|
77
|
-
},
|
|
78
|
-
viewMode
|
|
79
|
-
))
|
|
80
|
-
] }) })
|
|
59
|
+
/* @__PURE__ */ jsx(ContextMenu, { selectionMode: "single", selectedKeys: [selectedViewMode], children: availableViewModes.map((viewMode) => /* @__PURE__ */ jsx(ViewModeMenuItem, { viewMode })) })
|
|
81
60
|
] });
|
|
82
61
|
};
|
|
83
62
|
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ViewModeMenu.mjs","sources":["../../../../../../../../../../src/components/List/components/Header/components/Settings/ViewModeMenu.tsx"],"sourcesContent":["import type { FC } from \"react\";\nimport React from \"react\";\nimport locales from \"../../../../locales/*.locale.json\";\nimport { useLocalizedStringFormatter } from \"react-aria\";\nimport { useList } from \"@/components/List\";\nimport { IconView } from \"@/components/Icon/components/icons\";\nimport ButtonView from \"@/views/ButtonView\";\nimport TextView from \"@/views/TextView\";\nimport ContextMenu, { ContextMenuTrigger } from \"@/components/ContextMenu\";\nimport { ViewModeMenuItem } from \"@/components/List/components/Header/components/Settings/ViewModeMenuItem\";\nimport { useAvailableViewModes } from \"@/components/List/components/Header/lib\";\nimport styles from \"@/components/List/components/Header/Header.module.css\";\n\nexport const ViewModeMenu: FC = () => {\n const stringFormatter = useLocalizedStringFormatter(locales);\n const list = useList();\n const selectedViewMode = list.viewMode;\n\n const availableViewModes = useAvailableViewModes();\n\n if (availableViewModes.length <= 1) {\n return null;\n }\n\n return (\n <ContextMenuTrigger>\n <ButtonView\n variant=\"outline\"\n color=\"secondary\"\n aria-label={stringFormatter.format(\"list.settings\")}\n className={styles.desktop}\n >\n <TextView>\n {stringFormatter.format(`list.settings.viewMode.${selectedViewMode}`)}\n </TextView>\n <IconView />\n </ButtonView>\n <ContextMenu selectionMode=\"single\" selectedKeys={[selectedViewMode]}>\n {availableViewModes.map((viewMode) => (\n <ViewModeMenuItem viewMode={viewMode} />\n ))}\n </ContextMenu>\n </ContextMenuTrigger>\n );\n};\n"],"names":["styles"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAaO,MAAM,eAAmB,MAAM;AACpC,EAAM,MAAA,eAAA,GAAkB,4BAA4B,OAAO,CAAA;AAC3D,EAAA,MAAM,OAAO,OAAQ,EAAA;AACrB,EAAA,MAAM,mBAAmB,IAAK,CAAA,QAAA;AAE9B,EAAA,MAAM,qBAAqB,qBAAsB,EAAA;AAEjD,EAAI,IAAA,kBAAA,CAAmB,UAAU,CAAG,EAAA;AAClC,IAAO,OAAA,IAAA;AAAA;AAGT,EAAA,4BACG,kBACC,EAAA,EAAA,QAAA,EAAA;AAAA,oBAAA,IAAA;AAAA,MAAC,UAAA;AAAA,MAAA;AAAA,QACC,OAAQ,EAAA,SAAA;AAAA,QACR,KAAM,EAAA,WAAA;AAAA,QACN,YAAA,EAAY,eAAgB,CAAA,MAAA,CAAO,eAAe,CAAA;AAAA,QAClD,WAAWA,YAAO,CAAA,OAAA;AAAA,QAElB,QAAA,EAAA;AAAA,0BAAA,GAAA,CAAC,YACE,QAAgB,EAAA,eAAA,CAAA,MAAA,CAAO,CAA0B,uBAAA,EAAA,gBAAgB,EAAE,CACtE,EAAA,CAAA;AAAA,8BACC,QAAS,EAAA,EAAA;AAAA;AAAA;AAAA,KACZ;AAAA,wBACC,WAAY,EAAA,EAAA,aAAA,EAAc,QAAS,EAAA,YAAA,EAAc,CAAC,gBAAgB,CAAA,EAChE,QAAmB,EAAA,kBAAA,CAAA,GAAA,CAAI,CAAC,QACvB,qBAAA,GAAA,CAAC,gBAAiB,EAAA,EAAA,QAAA,EAAoB,CACvC,CACH,EAAA;AAAA,GACF,EAAA,CAAA;AAEJ;;;;"}
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
"use client"
|
|
2
|
+
/* */
|
|
3
|
+
import { jsx } from 'react/jsx-runtime';
|
|
4
|
+
import 'react';
|
|
5
|
+
import MenuItemView from '../../../../../../views/MenuItemView.mjs';
|
|
6
|
+
import 'invariant';
|
|
7
|
+
import 'luxon';
|
|
8
|
+
import 'react-aria-components';
|
|
9
|
+
import 'clsx';
|
|
10
|
+
import '../../../../../../lib/propsContext/propsContext.mjs';
|
|
11
|
+
import '../../../../../../lib/viewComponentContext/viewComponentContext.mjs';
|
|
12
|
+
import '@mittwald/react-tunnel';
|
|
13
|
+
import '../../../../../../lib/slotContext/slotContext.mjs';
|
|
14
|
+
import '@react-aria/utils';
|
|
15
|
+
import 'remeda';
|
|
16
|
+
import 'dot-prop';
|
|
17
|
+
import '@tabler/icons-react';
|
|
18
|
+
import '../../../../../Icon/Icon.mjs';
|
|
19
|
+
import '../../../../../Heading/Heading.mjs';
|
|
20
|
+
import '../../../../../Text/Text.mjs';
|
|
21
|
+
import locales from '../../../../../../../../_virtual/_.locale.json@8d5024994f97657f895a4e2a188d2d8a.mjs';
|
|
22
|
+
import { useLocalizedStringFormatter } from 'react-aria';
|
|
23
|
+
import '../../../../../Button/Button.mjs';
|
|
24
|
+
import '../../../../../ContextMenu/ContextMenu.mjs';
|
|
25
|
+
import '../../../../../MenuItem/MenuItem.mjs';
|
|
26
|
+
import '../../../../../ContextMenu/components/ContextMenuTrigger/ContextMenuTrigger.mjs';
|
|
27
|
+
import '../../../../../ContextMenu/components/ContextMenuSection/ContextMenuSection.mjs';
|
|
28
|
+
import '../../../../../ColumnLayout/ColumnLayout.mjs';
|
|
29
|
+
import '../../../ListSummary/ListSummary.mjs';
|
|
30
|
+
import { useList } from '../../../../hooks/useList.mjs';
|
|
31
|
+
import '../../../../List.mjs';
|
|
32
|
+
|
|
33
|
+
const ViewModeMenuItem = (props) => {
|
|
34
|
+
const { viewMode } = props;
|
|
35
|
+
const list = useList();
|
|
36
|
+
const stringFormatter = useLocalizedStringFormatter(locales);
|
|
37
|
+
return /* @__PURE__ */ jsx(
|
|
38
|
+
MenuItemView,
|
|
39
|
+
{
|
|
40
|
+
id: viewMode,
|
|
41
|
+
onAction: () => {
|
|
42
|
+
list.setViewMode(viewMode);
|
|
43
|
+
},
|
|
44
|
+
children: stringFormatter.format(`list.settings.viewMode.${viewMode}`)
|
|
45
|
+
},
|
|
46
|
+
viewMode
|
|
47
|
+
);
|
|
48
|
+
};
|
|
49
|
+
|
|
50
|
+
export { ViewModeMenuItem };
|
|
51
|
+
//# sourceMappingURL=ViewModeMenuItem.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ViewModeMenuItem.mjs","sources":["../../../../../../../../../../src/components/List/components/Header/components/Settings/ViewModeMenuItem.tsx"],"sourcesContent":["import React, { type FC } from \"react\";\nimport MenuItemView from \"@/views/MenuItemView\";\nimport type { ListViewMode } from \"@/components/List/model/types\";\nimport { useList } from \"@/components/List\";\nimport { useLocalizedStringFormatter } from \"react-aria\";\nimport locales from \"../../../../locales/*.locale.json\";\n\ninterface Props {\n viewMode: ListViewMode;\n}\n\nexport const ViewModeMenuItem: FC<Props> = (props) => {\n const { viewMode } = props;\n const list = useList();\n const stringFormatter = useLocalizedStringFormatter(locales);\n\n return (\n <MenuItemView\n id={viewMode}\n key={viewMode}\n onAction={() => {\n list.setViewMode(viewMode);\n }}\n >\n {stringFormatter.format(`list.settings.viewMode.${viewMode}`)}\n </MenuItemView>\n );\n};\n"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAWa,MAAA,gBAAA,GAA8B,CAAC,KAAU,KAAA;AACpD,EAAM,MAAA,EAAE,UAAa,GAAA,KAAA;AACrB,EAAA,MAAM,OAAO,OAAQ,EAAA;AACrB,EAAM,MAAA,eAAA,GAAkB,4BAA4B,OAAO,CAAA;AAE3D,EACE,uBAAA,GAAA;AAAA,IAAC,YAAA;AAAA,IAAA;AAAA,MACC,EAAI,EAAA,QAAA;AAAA,MAEJ,UAAU,MAAM;AACd,QAAA,IAAA,CAAK,YAAY,QAAQ,CAAA;AAAA,OAC3B;AAAA,MAEC,QAAgB,EAAA,eAAA,CAAA,MAAA,CAAO,CAA0B,uBAAA,EAAA,QAAQ,CAAE,CAAA;AAAA,KAAA;AAAA,IALvD;AAAA,GAMP;AAEJ;;;;"}
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
"use client"
|
|
2
|
+
/* */
|
|
3
|
+
import 'invariant';
|
|
4
|
+
import 'luxon';
|
|
5
|
+
import 'react/jsx-runtime';
|
|
6
|
+
import 'react-aria-components';
|
|
7
|
+
import 'react';
|
|
8
|
+
import 'clsx';
|
|
9
|
+
import '../../../../lib/propsContext/propsContext.mjs';
|
|
10
|
+
import '../../../../lib/viewComponentContext/viewComponentContext.mjs';
|
|
11
|
+
import '@mittwald/react-tunnel';
|
|
12
|
+
import '../../../../lib/slotContext/slotContext.mjs';
|
|
13
|
+
import '@react-aria/utils';
|
|
14
|
+
import 'remeda';
|
|
15
|
+
import 'dot-prop';
|
|
16
|
+
import '@tabler/icons-react';
|
|
17
|
+
import '../../../Icon/Icon.mjs';
|
|
18
|
+
import '../../../Heading/Heading.mjs';
|
|
19
|
+
import '../../../Text/Text.mjs';
|
|
20
|
+
import 'react-aria';
|
|
21
|
+
import '../../../Button/Button.mjs';
|
|
22
|
+
import '../../../ContextMenu/ContextMenu.mjs';
|
|
23
|
+
import '../../../MenuItem/MenuItem.mjs';
|
|
24
|
+
import '../../../ContextMenu/components/ContextMenuTrigger/ContextMenuTrigger.mjs';
|
|
25
|
+
import '../../../ContextMenu/components/ContextMenuSection/ContextMenuSection.mjs';
|
|
26
|
+
import '../../../ColumnLayout/ColumnLayout.mjs';
|
|
27
|
+
import '../ListSummary/ListSummary.mjs';
|
|
28
|
+
import { useList } from '../../hooks/useList.mjs';
|
|
29
|
+
import '../../List.mjs';
|
|
30
|
+
|
|
31
|
+
const useAvailableViewModes = () => {
|
|
32
|
+
const list = useList();
|
|
33
|
+
const availableViewModes = [];
|
|
34
|
+
if (list.itemView?.showList) {
|
|
35
|
+
availableViewModes.push("list");
|
|
36
|
+
}
|
|
37
|
+
if (list.table) {
|
|
38
|
+
availableViewModes.push("table");
|
|
39
|
+
}
|
|
40
|
+
if (list.itemView?.showTiles) {
|
|
41
|
+
availableViewModes.push("tiles");
|
|
42
|
+
}
|
|
43
|
+
return availableViewModes;
|
|
44
|
+
};
|
|
45
|
+
|
|
46
|
+
export { useAvailableViewModes };
|
|
47
|
+
//# sourceMappingURL=lib.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"lib.mjs","sources":["../../../../../../../../src/components/List/components/Header/lib.ts"],"sourcesContent":["import type { ListViewMode } from \"@/components/List/model/types\";\nimport { useList } from \"@/components/List\";\n\nexport const useAvailableViewModes = () => {\n const list = useList();\n\n const availableViewModes: ListViewMode[] = [];\n\n if (list.itemView?.showList) {\n availableViewModes.push(\"list\");\n }\n if (list.table) {\n availableViewModes.push(\"table\");\n }\n if (list.itemView?.showTiles) {\n availableViewModes.push(\"tiles\");\n }\n\n return availableViewModes;\n};\n"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAGO,MAAM,wBAAwB,MAAM;AACzC,EAAA,MAAM,OAAO,OAAQ,EAAA;AAErB,EAAA,MAAM,qBAAqC,EAAC;AAE5C,EAAI,IAAA,IAAA,CAAK,UAAU,QAAU,EAAA;AAC3B,IAAA,kBAAA,CAAmB,KAAK,MAAM,CAAA;AAAA;AAEhC,EAAA,IAAI,KAAK,KAAO,EAAA;AACd,IAAA,kBAAA,CAAmB,KAAK,OAAO,CAAA;AAAA;AAEjC,EAAI,IAAA,IAAA,CAAK,UAAU,SAAW,EAAA;AAC5B,IAAA,kBAAA,CAAmB,KAAK,OAAO,CAAA;AAAA;AAGjC,EAAO,OAAA,kBAAA;AACT;;;;"}
|
|
@@ -33,7 +33,8 @@ const ListItemView = (props) => {
|
|
|
33
33
|
wrapWith: /* @__PURE__ */ jsx(OptionsButton, { className: styles.action })
|
|
34
34
|
},
|
|
35
35
|
Button: {
|
|
36
|
-
tunnelId: "button"
|
|
36
|
+
tunnelId: "button",
|
|
37
|
+
size: dynamic(() => useList().viewMode === "tiles" ? "s" : "m")
|
|
37
38
|
},
|
|
38
39
|
ActionGroup: {
|
|
39
40
|
tunnelId: "button",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ListItemView.mjs","sources":["../../../../../../../../src/components/List/components/ListItemView/ListItemView.tsx"],"sourcesContent":["import type { PropsWithChildren } from \"react\";\nimport React from \"react\";\nimport styles from \"./ListItemView.module.scss\";\nimport { TunnelExit, TunnelProvider } from \"@mittwald/react-tunnel\";\nimport ListItemViewContentView from \"@/views/ListItemViewContentView\";\nimport {\n dynamic,\n type PropsContext,\n PropsContextProvider,\n} from \"@/lib/propsContext\";\nimport { OptionsButton } from \"@/components/List/components/Items/components/Item/components/OptionsButton\";\nimport { useList } from \"@/components/List\";\nimport type { ColumnLayoutProps } from \"@/components/ColumnLayout\";\n\nexport type ListItemViewProps = PropsWithChildren &\n Pick<ColumnLayoutProps, \"s\" | \"m\" | \"l\">;\n\nexport const ListItemView = (props: ListItemViewProps) => {\n const { children, s, m, l } = props;\n const list = useList();\n\n const propsContext: PropsContext = {\n ContextMenu: {\n tunnelId: \"button\",\n wrapWith: <OptionsButton className={styles.action} />,\n },\n Button: {\n tunnelId: \"button\",\n },\n ActionGroup: {\n tunnelId: \"button\",\n Button: {\n tunnelId: null,\n },\n },\n Avatar: {\n tunnelId: \"avatar\",\n },\n Heading: {\n tunnelId: \"title\",\n },\n Text: {\n tunnelId: \"text\",\n },\n Content: {\n tunnelId: dynamic((p) => (p.slot === \"bottom\" ? \"bottom\" : undefined)),\n },\n Checkbox: {\n tunnelId: \"checkbox\",\n },\n };\n\n return (\n <PropsContextProvider props={propsContext} mergeInParentContext>\n <TunnelProvider>\n <ListItemViewContentView\n viewMode={list.viewMode}\n title={<TunnelExit id=\"title\" />}\n avatar={<TunnelExit id=\"avatar\" />}\n button={<TunnelExit id=\"button\" />}\n subTitle={<TunnelExit id=\"text\" />}\n bottom={<TunnelExit id=\"bottom\" />}\n checkbox={<TunnelExit id=\"checkbox\" />}\n s={s}\n m={m}\n l={l}\n >\n {children}\n </ListItemViewContentView>\n </TunnelProvider>\n </PropsContextProvider>\n );\n};\n\nexport default ListItemView;\n"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;AAiBa,MAAA,YAAA,GAAe,CAAC,KAA6B,KAAA;AACxD,EAAA,MAAM,EAAE,QAAA,EAAU,CAAG,EAAA,CAAA,EAAG,GAAM,GAAA,KAAA;AAC9B,EAAA,MAAM,OAAO,OAAQ,EAAA;AAErB,EAAA,MAAM,YAA6B,GAAA;AAAA,IACjC,WAAa,EAAA;AAAA,MACX,QAAU,EAAA,QAAA;AAAA,MACV,QAAU,kBAAA,GAAA,CAAC,aAAc,EAAA,EAAA,SAAA,EAAW,OAAO,MAAQ,EAAA;AAAA,KACrD;AAAA,IACA,MAAQ,EAAA;AAAA,MACN,QAAU,EAAA;AAAA,
|
|
1
|
+
{"version":3,"file":"ListItemView.mjs","sources":["../../../../../../../../src/components/List/components/ListItemView/ListItemView.tsx"],"sourcesContent":["import type { PropsWithChildren } from \"react\";\nimport React from \"react\";\nimport styles from \"./ListItemView.module.scss\";\nimport { TunnelExit, TunnelProvider } from \"@mittwald/react-tunnel\";\nimport ListItemViewContentView from \"@/views/ListItemViewContentView\";\nimport {\n dynamic,\n type PropsContext,\n PropsContextProvider,\n} from \"@/lib/propsContext\";\nimport { OptionsButton } from \"@/components/List/components/Items/components/Item/components/OptionsButton\";\nimport { useList } from \"@/components/List\";\nimport type { ColumnLayoutProps } from \"@/components/ColumnLayout\";\n\nexport type ListItemViewProps = PropsWithChildren &\n Pick<ColumnLayoutProps, \"s\" | \"m\" | \"l\">;\n\nexport const ListItemView = (props: ListItemViewProps) => {\n const { children, s, m, l } = props;\n const list = useList();\n\n const propsContext: PropsContext = {\n ContextMenu: {\n tunnelId: \"button\",\n wrapWith: <OptionsButton className={styles.action} />,\n },\n Button: {\n tunnelId: \"button\",\n size: dynamic(() => (useList().viewMode === \"tiles\" ? \"s\" : \"m\")),\n },\n ActionGroup: {\n tunnelId: \"button\",\n Button: {\n tunnelId: null,\n },\n },\n Avatar: {\n tunnelId: \"avatar\",\n },\n Heading: {\n tunnelId: \"title\",\n },\n Text: {\n tunnelId: \"text\",\n },\n Content: {\n tunnelId: dynamic((p) => (p.slot === \"bottom\" ? \"bottom\" : undefined)),\n },\n Checkbox: {\n tunnelId: \"checkbox\",\n },\n };\n\n return (\n <PropsContextProvider props={propsContext} mergeInParentContext>\n <TunnelProvider>\n <ListItemViewContentView\n viewMode={list.viewMode}\n title={<TunnelExit id=\"title\" />}\n avatar={<TunnelExit id=\"avatar\" />}\n button={<TunnelExit id=\"button\" />}\n subTitle={<TunnelExit id=\"text\" />}\n bottom={<TunnelExit id=\"bottom\" />}\n checkbox={<TunnelExit id=\"checkbox\" />}\n s={s}\n m={m}\n l={l}\n >\n {children}\n </ListItemViewContentView>\n </TunnelProvider>\n </PropsContextProvider>\n );\n};\n\nexport default ListItemView;\n"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;AAiBa,MAAA,YAAA,GAAe,CAAC,KAA6B,KAAA;AACxD,EAAA,MAAM,EAAE,QAAA,EAAU,CAAG,EAAA,CAAA,EAAG,GAAM,GAAA,KAAA;AAC9B,EAAA,MAAM,OAAO,OAAQ,EAAA;AAErB,EAAA,MAAM,YAA6B,GAAA;AAAA,IACjC,WAAa,EAAA;AAAA,MACX,QAAU,EAAA,QAAA;AAAA,MACV,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AG,MAAO,EAAA,CAAA;AAAA,MAChC,MAAQ,kBAAA,GAAA,CAAC,UAAW,EAAA,EAAA,EAAA,EAAG,QAAS,EAAA,CAAA;AAAA,MAChC,QAAU,kBAAA,GAAA,CAAC,UAAW,EAAA,EAAA,EAAA,EAAG,UAAW,EAAA,CAAA;AAAA,MACpC,CAAA;AAAA,MACA,CAAA;AAAA,MACA,CAAA;AAAA,MAEC;AAAA;AAAA,KAEL,CACF,EAAA,CAAA;AAEJ;;;;"}
|
|
@@ -112,9 +112,9 @@ const ListItemViewContent = (props) => {
|
|
|
112
112
|
/* @__PURE__ */ jsxs("div", { className: styles.title, children: [
|
|
113
113
|
title,
|
|
114
114
|
/* @__PURE__ */ jsx("div", { className: styles.subTitle, children: subTitle })
|
|
115
|
-
] })
|
|
115
|
+
] }),
|
|
116
|
+
button
|
|
116
117
|
] }),
|
|
117
|
-
button,
|
|
118
118
|
children,
|
|
119
119
|
bottom
|
|
120
120
|
] })
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ListItemViewContent.mjs","sources":["../../../../../../../../../../src/components/List/components/ListItemView/components/ListItemViewContent/ListItemViewContent.tsx"],"sourcesContent":["import type { ComponentProps, PropsWithChildren, ReactNode } from \"react\";\nimport React from \"react\";\nimport styles from \"../../ListItemView.module.scss\";\nimport {\n dynamic,\n type PropsContext,\n PropsContextProvider,\n} from \"@/lib/propsContext\";\nimport type { ListViewMode } from \"@/components/List/model/types\";\nimport clsx from \"clsx\";\nimport {\n ColumnLayout,\n type ColumnLayoutProps,\n} from \"@/components/ColumnLayout\";\n\nexport type ListItemViewContentProps = PropsWithChildren &\n Pick<ColumnLayoutProps, \"s\" | \"m\" | \"l\"> & {\n title?: ReactNode;\n subTitle?: ReactNode;\n avatar?: ReactNode;\n button?: ReactNode;\n bottom?: ReactNode;\n checkbox?: ReactNode;\n viewMode?: ListViewMode;\n };\n\nconst getStyleForContentSlot = (slot?: string) =>\n slot === \"top\"\n ? styles.topContent\n : slot === \"bottom\"\n ? styles.bottomContent\n : styles.topContent;\n\n/** @flr-generate all */\nexport const ListItemViewContent = (props: ListItemViewContentProps) => {\n const {\n children,\n avatar,\n title,\n subTitle,\n button,\n bottom,\n checkbox,\n viewMode,\n s,\n m,\n l,\n } = props;\n\n const contentProps: Record<string, ComponentProps<\"div\">> = {\n bottom: {\n onMouseDown: (e) => e.stopPropagation(),\n onPointerDown: (e) => e.stopPropagation(),\n className: styles.bottomContent,\n },\n top: {\n className: styles.topContent,\n },\n };\n\n const propsContext: PropsContext = {\n ContextMenu: {\n placement: \"bottom end\",\n },\n Button: {\n className: styles.action,\n },\n ActionGroup: {\n className: styles.action,\n },\n Content: {\n className: dynamic((p) => getStyleForContentSlot(p.slot)),\n onMouseDown: dynamic((p) => contentProps[p.slot ?? \"top\"]?.onMouseDown),\n onPointerDown: dynamic(\n (p) => contentProps[p.slot ?? \"top\"]?.onPointerDown,\n ),\n },\n Avatar: {\n className: styles.avatar,\n },\n Heading: {\n className: styles.heading,\n level: 5,\n Badge: { className: styles.badge },\n AlertBadge: { className: styles.badge },\n },\n Text: {\n className: styles.text,\n },\n Link: {\n unstyled: true,\n },\n };\n\n const className = clsx(\n styles.view,\n viewMode === \"tiles\" ? styles.tileView : styles.listView,\n );\n\n const header = (\n <div className={styles.header}>\n <div className={styles.checkboxContainer}>{checkbox}</div>\n {avatar}\n <div className={styles.title}>\n {title}\n <div className={styles.subTitle}>{subTitle}</div>\n </div>\n </div>\n );\n\n return (\n <PropsContextProvider props={propsContext} mergeInParentContext>\n <div className={className}>\n {viewMode === \"list\" && (\n <>\n <div className={styles.contentWrapper}>\n {s || m || l ? (\n <ColumnLayout\n s={s}\n m={m}\n l={l}\n className={clsx(styles.content, styles.columnLayout)}\n mergeInParentContext\n >\n {header}\n {children}\n </ColumnLayout>\n ) : (\n <div className={styles.content}>\n {header}\n {children}\n </div>\n )}\n {button}\n </div>\n {bottom}\n </>\n )}\n\n {viewMode === \"tiles\" && (\n <>\n <div className={styles.avatarContainer}>{avatar}</div>\n <div className={styles.content}>\n <div className={styles.header}>\n <div className={styles.checkboxContainer}>{checkbox}</div>\n <div className={styles.title}>\n {title}\n <div className={styles.subTitle}>{subTitle}</div>\n </div>\n </div>\n {
|
|
1
|
+
{"version":3,"file":"ListItemViewContent.mjs","sources":["../../../../../../../../../../src/components/List/components/ListItemView/components/ListItemViewContent/ListItemViewContent.tsx"],"sourcesContent":["import type { ComponentProps, PropsWithChildren, ReactNode } from \"react\";\nimport React from \"react\";\nimport styles from \"../../ListItemView.module.scss\";\nimport {\n dynamic,\n type PropsContext,\n PropsContextProvider,\n} from \"@/lib/propsContext\";\nimport type { ListViewMode } from \"@/components/List/model/types\";\nimport clsx from \"clsx\";\nimport {\n ColumnLayout,\n type ColumnLayoutProps,\n} from \"@/components/ColumnLayout\";\n\nexport type ListItemViewContentProps = PropsWithChildren &\n Pick<ColumnLayoutProps, \"s\" | \"m\" | \"l\"> & {\n title?: ReactNode;\n subTitle?: ReactNode;\n avatar?: ReactNode;\n button?: ReactNode;\n bottom?: ReactNode;\n checkbox?: ReactNode;\n viewMode?: ListViewMode;\n };\n\nconst getStyleForContentSlot = (slot?: string) =>\n slot === \"top\"\n ? styles.topContent\n : slot === \"bottom\"\n ? styles.bottomContent\n : styles.topContent;\n\n/** @flr-generate all */\nexport const ListItemViewContent = (props: ListItemViewContentProps) => {\n const {\n children,\n avatar,\n title,\n subTitle,\n button,\n bottom,\n checkbox,\n viewMode,\n s,\n m,\n l,\n } = props;\n\n const contentProps: Record<string, ComponentProps<\"div\">> = {\n bottom: {\n onMouseDown: (e) => e.stopPropagation(),\n onPointerDown: (e) => e.stopPropagation(),\n className: styles.bottomContent,\n },\n top: {\n className: styles.topContent,\n },\n };\n\n const propsContext: PropsContext = {\n ContextMenu: {\n placement: \"bottom end\",\n },\n Button: {\n className: styles.action,\n },\n ActionGroup: {\n className: styles.action,\n },\n Content: {\n className: dynamic((p) => getStyleForContentSlot(p.slot)),\n onMouseDown: dynamic((p) => contentProps[p.slot ?? \"top\"]?.onMouseDown),\n onPointerDown: dynamic(\n (p) => contentProps[p.slot ?? \"top\"]?.onPointerDown,\n ),\n },\n Avatar: {\n className: styles.avatar,\n },\n Heading: {\n className: styles.heading,\n level: 5,\n Badge: { className: styles.badge },\n AlertBadge: { className: styles.badge },\n },\n Text: {\n className: styles.text,\n },\n Link: {\n unstyled: true,\n },\n };\n\n const className = clsx(\n styles.view,\n viewMode === \"tiles\" ? styles.tileView : styles.listView,\n );\n\n const header = (\n <div className={styles.header}>\n <div className={styles.checkboxContainer}>{checkbox}</div>\n {avatar}\n <div className={styles.title}>\n {title}\n <div className={styles.subTitle}>{subTitle}</div>\n </div>\n </div>\n );\n\n return (\n <PropsContextProvider props={propsContext} mergeInParentContext>\n <div className={className}>\n {viewMode === \"list\" && (\n <>\n <div className={styles.contentWrapper}>\n {s || m || l ? (\n <ColumnLayout\n s={s}\n m={m}\n l={l}\n className={clsx(styles.content, styles.columnLayout)}\n mergeInParentContext\n >\n {header}\n {children}\n </ColumnLayout>\n ) : (\n <div className={styles.content}>\n {header}\n {children}\n </div>\n )}\n {button}\n </div>\n {bottom}\n </>\n )}\n\n {viewMode === \"tiles\" && (\n <>\n <div className={styles.avatarContainer}>{avatar}</div>\n <div className={styles.content}>\n <div className={styles.header}>\n <div className={styles.checkboxContainer}>{checkbox}</div>\n <div className={styles.title}>\n {title}\n <div className={styles.subTitle}>{subTitle}</div>\n </div>\n {button}\n </div>\n {children}\n {bottom}\n </div>\n </>\n )}\n </div>\n </PropsContextProvider>\n );\n};\n\nexport default ListItemViewContent;\n"],"names":[],"mappings":";;;;;;;;;;AA0BA,MAAM,sBAAA,GAAyB,CAAC,IAAA,KAC9B,IAAS,KAAA,KAAA,GACL,MAAO,CAAA,UAAA,GACP,IAAS,KAAA,QAAA,GACP,MAAO,CAAA,aAAA,GACP,MAAO,CAAA,UAAA;AAGF,MAAA,mBAAA,GAAsB,CAAC,KAAoC,KAAA;AACtE,EAAM,MAA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ACC,QAAA;AAAA,QACA;AAAA,OACH,EAAA;AAAA,KACF,EAAA;AAAA,GAAA,EAEJ,CACF,EAAA,CAAA;AAEJ;;;;"}
|
package/dist/types/components/ContextMenu/components/ContextMenuSection/ContextMenuSection.d.ts
CHANGED
|
@@ -3,13 +3,13 @@ import { FlowComponentProps } from '../../../../lib/componentFactory/flowCompone
|
|
|
3
3
|
import { ContextMenuSelectionMode } from '../../lib';
|
|
4
4
|
import { MenuItemProps } from '../../../MenuItem';
|
|
5
5
|
import * as Aria from "react-aria-components";
|
|
6
|
-
export type ContextMenuSectionProps = PropsWithChildren & FlowComponentProps & Pick<Aria.MenuSectionProps<MenuItemProps>, "defaultSelectedKeys"> & {
|
|
6
|
+
export type ContextMenuSectionProps = PropsWithChildren & FlowComponentProps & Pick<Aria.MenuSectionProps<MenuItemProps>, "defaultSelectedKeys" | "selectedKeys"> & {
|
|
7
7
|
selectionMode?: ContextMenuSelectionMode;
|
|
8
8
|
};
|
|
9
9
|
/** @flr-generate all */
|
|
10
10
|
export declare const ContextMenuSection: React.FunctionComponent<{
|
|
11
11
|
children?: React.ReactNode | undefined;
|
|
12
|
-
} & FlowComponentProps<HTMLDivElement> & Pick<Aria.MenuSectionProps<MenuItemProps>, "defaultSelectedKeys"> & {
|
|
12
|
+
} & FlowComponentProps<HTMLDivElement> & Pick<Aria.MenuSectionProps<MenuItemProps>, "defaultSelectedKeys" | "selectedKeys"> & {
|
|
13
13
|
selectionMode?: ContextMenuSelectionMode;
|
|
14
14
|
} & React.RefAttributes<HTMLDivElement>>;
|
|
15
15
|
//# sourceMappingURL=ContextMenuSection.d.ts.map
|
package/dist/types/components/ContextMenu/components/ContextMenuSection/ContextMenuSection.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ContextMenuSection.d.ts","sourceRoot":"","sources":["../../../../../../src/components/ContextMenu/components/ContextMenuSection/ContextMenuSection.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,IAAI,MAAM,uBAAuB,CAAC;AAC9C,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,OAAO,CAAC;AAC/C,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,sCAAsC,CAAC;AAG/E,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,8BAA8B,CAAC;AAO7E,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,uBAAuB,CAAC;AAE3D,MAAM,MAAM,uBAAuB,GAAG,iBAAiB,GACrD,kBAAkB,GAClB,IAAI,
|
|
1
|
+
{"version":3,"file":"ContextMenuSection.d.ts","sourceRoot":"","sources":["../../../../../../src/components/ContextMenu/components/ContextMenuSection/ContextMenuSection.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,IAAI,MAAM,uBAAuB,CAAC;AAC9C,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,OAAO,CAAC;AAC/C,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,sCAAsC,CAAC;AAG/E,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,8BAA8B,CAAC;AAO7E,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,uBAAuB,CAAC;AAE3D,MAAM,MAAM,uBAAuB,GAAG,iBAAiB,GACrD,kBAAkB,GAClB,IAAI,CACF,IAAI,CAAC,gBAAgB,CAAC,aAAa,CAAC,EACpC,qBAAqB,GAAG,cAAc,CACvC,GAAG;IACF,aAAa,CAAC,EAAE,wBAAwB,CAAC;CAC1C,CAAC;AAEJ,wBAAwB;AACxB,eAAO,MAAM,kBAAkB;;;oBAJX,wBAAwB;wCAsC3C,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"List.d.ts","sourceRoot":"","sources":["../../../../src/components/List/List.tsx"],"names":[],"mappings":"AAOA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,+BAA+B,CAAC;AAc/D,OAAO,EAEL,KAAK,kBAAkB,EACxB,MAAM,sCAAsC,CAAC;
|
|
1
|
+
{"version":3,"file":"List.d.ts","sourceRoot":"","sources":["../../../../src/components/List/List.tsx"],"names":[],"mappings":"AAOA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,+BAA+B,CAAC;AAc/D,OAAO,EAEL,KAAK,kBAAkB,EACxB,MAAM,sCAAsC,CAAC;AAK9C,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,OAAO,CAAC;AAK/C,MAAM,WAAW,SAAS,CAAC,CAAC,CAC1B,SAAQ,iBAAiB,EACvB,kBAAkB,EAClB,IAAI,CACF,SAAS,CAAC,CAAC,CAAC,EACV,QAAQ,GACR,QAAQ,GACR,UAAU,GACV,OAAO,GACP,mBAAmB,GACnB,SAAS,GACT,SAAS,CACZ;IACH,uDAAuD;IACvD,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,eAAO,MAAM,IAAI,qGA6If,CAAC;AAEH,eAAe,IAAI,CAAC"}
|
|
@@ -1,8 +1,5 @@
|
|
|
1
1
|
import { FC } from 'react';
|
|
2
2
|
import { PropsWithClassName } from '../../../../lib/types/props';
|
|
3
|
-
|
|
4
|
-
hasActionGroup?: boolean;
|
|
5
|
-
}
|
|
6
|
-
export declare const Header: FC<Props>;
|
|
3
|
+
export declare const Header: FC<PropsWithClassName>;
|
|
7
4
|
export default Header;
|
|
8
5
|
//# sourceMappingURL=Header.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Header.d.ts","sourceRoot":"","sources":["../../../../../../src/components/List/components/Header/Header.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,EAAE,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"Header.d.ts","sourceRoot":"","sources":["../../../../../../src/components/List/components/Header/Header.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,EAAE,MAAM,OAAO,CAAC;AAMhC,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,mBAAmB,CAAC;AAW5D,eAAO,MAAM,MAAM,EAAE,EAAE,CAAC,kBAAkB,CAkCzC,CAAC;AAEF,eAAe,MAAM,CAAC"}
|
package/dist/types/components/List/components/Header/components/Filters/CombinedFilterMenu.d.ts.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CombinedFilterMenu.d.ts","sourceRoot":"","sources":["../../../../../../../../src/components/List/components/Header/components/Filters/CombinedFilterMenu.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,EAAE,MAAM,OAAO,CAAC;AAgBhC,eAAO,MAAM,kBAAkB,EAAE,EA6ChC,CAAC"}
|
|
@@ -3,6 +3,6 @@ import { Filter } from '../../../../model/filter/Filter';
|
|
|
3
3
|
interface Props {
|
|
4
4
|
filter: Filter<never, never, never>;
|
|
5
5
|
}
|
|
6
|
-
export declare const
|
|
6
|
+
export declare const FilterMenu: FC<Props>;
|
|
7
7
|
export {};
|
|
8
|
-
//# sourceMappingURL=
|
|
8
|
+
//# sourceMappingURL=FilterMenu.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"FilterMenu.d.ts","sourceRoot":"","sources":["../../../../../../../../src/components/List/components/Header/components/Filters/FilterMenu.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,EAAE,MAAM,OAAO,CAAC;AAEhC,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,uCAAuC,CAAC;AAQpE,UAAU,KAAK;IACb,MAAM,EAAE,MAAM,CAAC,KAAK,EAAE,KAAK,EAAE,KAAK,CAAC,CAAC;CACrC;AAED,eAAO,MAAM,UAAU,EAAE,EAAE,CAAC,KAAK,CA2BhC,CAAC"}
|
package/dist/types/components/List/components/Header/components/Filters/FilterMenuItem.d.ts.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"FilterMenuItem.d.ts","sourceRoot":"","sources":["../../../../../../../../src/components/List/components/Header/components/Filters/FilterMenuItem.tsx"],"names":[],"mappings":"AACA,OAAc,EAAE,KAAK,EAAE,EAAE,MAAM,OAAO,CAAC;AACvC,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,4CAA4C,CAAC;AAE9E,UAAU,KAAK;IACb,WAAW,EAAE,WAAW,CAAC;CAC1B;AAED,eAAO,MAAM,cAAc,EAAE,EAAE,CAAC,KAAK,CAcpC,CAAC"}
|
package/dist/types/components/List/components/Header/components/Filters/FilterMenuList.d.ts.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"FilterMenuList.d.ts","sourceRoot":"","sources":["../../../../../../../../src/components/List/components/Header/components/Filters/FilterMenuList.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,EAAE,MAAM,OAAO,CAAC;AAKhC,eAAO,MAAM,cAAc,EAAE,EAM5B,CAAC"}
|
package/dist/types/components/List/components/Header/components/SearchField/SearchField.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SearchField.d.ts","sourceRoot":"","sources":["../../../../../../../../src/components/List/components/Header/components/SearchField/SearchField.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,EAAiB,MAAM,OAAO,CAAC;AAE/C,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,mBAAmB,CAAC;AAC5D,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,uCAAuC,CAAC;
|
|
1
|
+
{"version":3,"file":"SearchField.d.ts","sourceRoot":"","sources":["../../../../../../../../src/components/List/components/Header/components/SearchField/SearchField.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,EAAiB,MAAM,OAAO,CAAC;AAE/C,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,mBAAmB,CAAC;AAC5D,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,uCAAuC,CAAC;AAMpE,UAAU,KAAM,SAAQ,kBAAkB;IACxC,MAAM,EAAE,MAAM,CAAC,KAAK,CAAC,CAAC;CACvB;AAqDD,eAAO,MAAM,WAAW,EAAE,EAAE,CAAC,KAAK,CASjC,CAAC"}
|
package/dist/types/components/List/components/Header/components/Settings/SettingsMenu.d.ts.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SettingsMenu.d.ts","sourceRoot":"","sources":["../../../../../../../../src/components/List/components/Header/components/Settings/SettingsMenu.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,EAAE,MAAM,OAAO,CAAC;AAkBhC,eAAO,MAAM,YAAY,EAAE,EA0D1B,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SortingMenu.d.ts","sourceRoot":"","sources":["../../../../../../../../src/components/List/components/Header/components/Settings/SortingMenu.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,EAAE,MAAM,OAAO,CAAC;AAYhC,eAAO,MAAM,WAAW,EAAE,EAyCzB,CAAC"}
|