@redneckz/wildless-cms-uni-blocks 0.14.518 → 0.14.520
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/bundle/api/FileStorage.d.ts +18 -0
- package/bundle/bundle.umd.js +4 -2
- package/bundle/bundle.umd.min.js +1 -1
- package/bundle/ui-kit/Loader/Loader.d.ts +7 -0
- package/dist/api/FileStorage.d.ts +18 -0
- package/dist/api/FileStorage.js +60 -0
- package/dist/api/FileStorage.js.map +1 -0
- package/dist/components/OfficesAtmsMap/OfficesAtmsMapLayout.js +2 -2
- package/dist/components/OfficesAtmsMap/OfficesAtmsMapLayout.js.map +1 -1
- package/dist/ui-kit/Loader/Loader.d.ts +7 -0
- package/dist/ui-kit/Loader/Loader.js +7 -0
- package/dist/ui-kit/Loader/Loader.js.map +1 -0
- package/lib/api/FileStorage.d.ts +18 -0
- package/lib/api/FileStorage.js +58 -0
- package/lib/api/FileStorage.js.map +1 -0
- package/lib/common.css +1 -1
- package/lib/components/OfficesAtmsMap/OfficesAtmsMapLayout.js +2 -2
- package/lib/components/OfficesAtmsMap/OfficesAtmsMapLayout.js.map +1 -1
- package/lib/ui-kit/Loader/Loader.d.ts +7 -0
- package/lib/ui-kit/Loader/Loader.fixture.d.ts +6 -0
- package/lib/ui-kit/Loader/Loader.js +5 -0
- package/lib/ui-kit/Loader/Loader.js.map +1 -0
- package/mobile/bundle/api/FileStorage.d.ts +18 -0
- package/mobile/bundle/bundle.umd.js +4 -2
- package/mobile/bundle/bundle.umd.min.js +1 -1
- package/mobile/bundle/ui-kit/Loader/Loader.d.ts +7 -0
- package/mobile/dist/api/FileStorage.d.ts +18 -0
- package/mobile/dist/api/FileStorage.js +60 -0
- package/mobile/dist/api/FileStorage.js.map +1 -0
- package/mobile/dist/components/OfficesAtmsMap/OfficesAtmsMapLayout.js +2 -2
- package/mobile/dist/components/OfficesAtmsMap/OfficesAtmsMapLayout.js.map +1 -1
- package/mobile/dist/ui-kit/Loader/Loader.d.ts +7 -0
- package/mobile/dist/ui-kit/Loader/Loader.js +7 -0
- package/mobile/dist/ui-kit/Loader/Loader.js.map +1 -0
- package/mobile/lib/api/FileStorage.d.ts +18 -0
- package/mobile/lib/api/FileStorage.js +58 -0
- package/mobile/lib/api/FileStorage.js.map +1 -0
- package/mobile/lib/common.css +1 -1
- package/mobile/lib/components/OfficesAtmsMap/OfficesAtmsMapLayout.js +2 -2
- package/mobile/lib/components/OfficesAtmsMap/OfficesAtmsMapLayout.js.map +1 -1
- package/mobile/lib/ui-kit/Loader/Loader.d.ts +7 -0
- package/mobile/lib/ui-kit/Loader/Loader.js +5 -0
- package/mobile/lib/ui-kit/Loader/Loader.js.map +1 -0
- package/mobile/src/api/FileStorage.ts +98 -0
- package/mobile/src/components/OfficesAtmsMap/OfficesAtmsMapLayout.tsx +2 -2
- package/mobile/src/ui-kit/Loader/Loader.tsx +28 -0
- package/package.json +1 -1
- package/src/api/FileStorage.ts +98 -0
- package/src/components/OfficesAtmsMap/OfficesAtmsMapLayout.tsx +2 -2
- package/src/ui-kit/Loader/Loader.fixture.tsx +14 -0
- package/src/ui-kit/Loader/Loader.tsx +28 -0
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
export declare type FileId = string;
|
|
2
|
+
export declare type ProjectId = string | number;
|
|
3
|
+
export declare type SearchParams = Record<string, string>;
|
|
4
|
+
export interface FileMeta {
|
|
5
|
+
id?: FileId;
|
|
6
|
+
path?: string;
|
|
7
|
+
timestamp?: Date;
|
|
8
|
+
size?: number;
|
|
9
|
+
}
|
|
10
|
+
export interface SearchResult {
|
|
11
|
+
rows: FileMeta[];
|
|
12
|
+
total: number;
|
|
13
|
+
}
|
|
14
|
+
export declare const FileStorage: {
|
|
15
|
+
getById: <T>(id: FileId) => Promise<T | null>;
|
|
16
|
+
getByName: (projectId: ProjectId, name: string) => Promise<any>;
|
|
17
|
+
find: (projectId: ProjectId, params?: SearchParams) => Promise<SearchResult>;
|
|
18
|
+
};
|
package/bundle/bundle.umd.js
CHANGED
|
@@ -5072,6 +5072,8 @@
|
|
|
5072
5072
|
const isClient = !isSSR();
|
|
5073
5073
|
const ClientOnly = JSX(({ children }) => (isClient ? children : null));
|
|
5074
5074
|
|
|
5075
|
+
const Loader = JSX(({ color = 'text-primary-main', position = 'absolute' }) => (jsx("div", { className: style('flex justify-center items-center h-full w-full backdrop-blur-sm z-50', position), children: jsx("div", { className: style('inline-block h-28 w-28', 'animate-spin rounded-full', 'border-8 border-solid border-current', 'border-r-transparent', color), role: "status" }) })));
|
|
5076
|
+
|
|
5075
5077
|
const MapMarkerClusterIcon = '/icons/MapMarkerClusterIcon.svg';
|
|
5076
5078
|
const MapMarkerClusterYellowIcon = '/icons/MapMarkerClusterYellowIcon.svg';
|
|
5077
5079
|
function renderClusterer({ yandexMaps, map, points, }) {
|
|
@@ -5292,7 +5294,7 @@
|
|
|
5292
5294
|
return [_filteredItems, _points, _filteredRemoteWorkplaces, itemsLength];
|
|
5293
5295
|
}, [data, remoteWorkplaces, filtrationState]);
|
|
5294
5296
|
const [activeButton, setActiveButton] = useState('all');
|
|
5295
|
-
return (jsxs("div", { className: style('space-y-1', className), children: [jsxs("div", { className: "bg-white", children: [jsxs("div", { className: "p-3xl pb-0", children: [jsx("div", { className: "flex flex-col sm:flex-row gap-xs mb-2xl", children: jsxs(Heading, { headingType: "h3", children: [jsx("span", { suppressHydrationWarning: true, children: title }), lengthItems ? (jsx(Text, { size: "text-h2", color: "text-secondary-text", children: jsx("span", { suppressHydrationWarning: true, children: ` (${lengthItems})` }) })) : null] }) }), descriptionData ? renderDescriptionBlock$1(descriptionData) : null, onlyOffice && renderButtonsGroup(data, activeButton, setActiveButton), jsx("div", { className: style('pb-3xl', filtersVisibleStyles(activeButton)), children: renderFiltrationForm(Object.keys(initFilterState), { field, reset }, onlyOffice) })] }), jsx("div", { className: "h-[600px]", children: jsx(ClientOnly, { children: points?.length ? jsx(YandexMap, { points: points, className: "h-full" }) : jsx(
|
|
5297
|
+
return (jsxs("div", { className: style('space-y-1', className), children: [jsxs("div", { className: "bg-white", children: [jsxs("div", { className: "p-3xl pb-0", children: [jsx("div", { className: "flex flex-col sm:flex-row gap-xs mb-2xl", children: jsxs(Heading, { headingType: "h3", children: [jsx("span", { suppressHydrationWarning: true, children: title }), lengthItems ? (jsx(Text, { size: "text-h2", color: "text-secondary-text", children: jsx("span", { suppressHydrationWarning: true, children: ` (${lengthItems})` }) })) : null] }) }), descriptionData ? renderDescriptionBlock$1(descriptionData) : null, onlyOffice && renderButtonsGroup(data, activeButton, setActiveButton), jsx("div", { className: style('pb-3xl', filtersVisibleStyles(activeButton)), children: renderFiltrationForm(Object.keys(initFilterState), { field, reset }, onlyOffice) })] }), jsx("div", { className: "h-[600px]", children: jsx(ClientOnly, { children: points?.length ? jsx(YandexMap, { points: points, className: "h-full" }) : jsx(Loader, {}) }) })] }), jsxs(ClientOnly, { children: [filteredItems.map(renderCard), filteredRemoteWorkplaces.map(renderRemoteWorkplaceCard)] })] }));
|
|
5296
5298
|
});
|
|
5297
5299
|
const renderButtonsGroup = (data, activeButton, onButtonClick) => {
|
|
5298
5300
|
const allButtonVersion = getVersion(activeButton === 'all');
|
|
@@ -6444,7 +6446,7 @@
|
|
|
6444
6446
|
slots: () => [HEADER_SLOT, FOOTER_SLOT, STICKY_FOOTER_SLOT],
|
|
6445
6447
|
});
|
|
6446
6448
|
|
|
6447
|
-
const packageVersion = "0.14.
|
|
6449
|
+
const packageVersion = "0.14.519";
|
|
6448
6450
|
|
|
6449
6451
|
exports.Blocks = Blocks;
|
|
6450
6452
|
exports.ContentPage = ContentPage;
|