@cntrl-site/components 1.0.118-alpha.1 → 1.0.118-alpha.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{Burger-C8JIQQwm.mjs → Burger-BkVgNMGU.mjs} +307 -330
- package/dist/Burger-C3yVbQcq.js +669 -0
- package/dist/ChroniclesComponent--pzhQXVD.js +1 -0
- package/dist/{ChroniclesComponent-kkKhL_qt.mjs → ChroniclesComponent-Ds59v_47.mjs} +512 -442
- package/dist/Components/Burger/Burger.d.ts +2 -4
- package/dist/Components/Grid/CustomGridComponent.d.ts +41 -0
- package/dist/Components/Grid/Grid.d.ts +25 -7
- package/dist/Grid-B0NOfgEm.mjs +1713 -0
- package/dist/Grid-DNaBgqZo.js +415 -0
- package/dist/{components-BLyOKMdK.mjs → components-MVf3iei3.mjs} +13 -12
- package/dist/{components-CVetdKi7.js → components-tuVRZ0WY.js} +1 -1
- package/dist/elements.js +1 -1
- package/dist/elements.mjs +8 -7
- package/dist/elements.node.js +1 -1
- package/dist/elements.node.mjs +1 -1
- package/dist/index.js +1 -1
- package/dist/index.mjs +2 -2
- package/dist/sources.js +258 -101
- package/dist/sources.mjs +298 -140
- package/package.json +1 -1
- package/dist/Burger-C_SjPZWp.js +0 -669
- package/dist/ChroniclesComponent-DkG1aICD.js +0 -1
- package/dist/Grid-C4hO8KCr.js +0 -408
- package/dist/Grid-Dud7PLS9.mjs +0 -1622
|
@@ -10,12 +10,11 @@ type BurgerTextPosition = 'left' | 'center' | 'right';
|
|
|
10
10
|
type BurgerShowInValue = string | Record<string, string>;
|
|
11
11
|
type BurgerLink = {
|
|
12
12
|
link?: {
|
|
13
|
-
type?: 'url' | 'page' | 'anchor'
|
|
13
|
+
type?: 'url' | 'page' | 'anchor';
|
|
14
14
|
value?: string;
|
|
15
15
|
target?: string;
|
|
16
16
|
anchor?: string;
|
|
17
17
|
url?: string;
|
|
18
|
-
download?: string;
|
|
19
18
|
};
|
|
20
19
|
mode?: 'page' | 'url';
|
|
21
20
|
page?: string;
|
|
@@ -121,11 +120,10 @@ type BurgerPageRef = {
|
|
|
121
120
|
};
|
|
122
121
|
export declare function applyBurgerSettingsChange(nextSettings: BurgerSettings, prevSettings: BurgerSettings): BurgerSettings;
|
|
123
122
|
export type BurgerLinkNavigateEvent = {
|
|
124
|
-
mode: 'page' | 'url'
|
|
123
|
+
mode: 'page' | 'url';
|
|
125
124
|
href: string;
|
|
126
125
|
page?: string;
|
|
127
126
|
url?: string;
|
|
128
|
-
file?: string;
|
|
129
127
|
anchor?: string;
|
|
130
128
|
target?: '_blank';
|
|
131
129
|
};
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import { Grid } from './Grid';
|
|
2
|
+
import { ComponentSchemaV1 } from '../../types/SchemaV1';
|
|
3
|
+
export declare const CustomGridComponent: {
|
|
4
|
+
element: typeof Grid;
|
|
5
|
+
id: string;
|
|
6
|
+
name: string;
|
|
7
|
+
schema: ComponentSchemaV1;
|
|
8
|
+
category: string;
|
|
9
|
+
layoutMode: "structured";
|
|
10
|
+
preview: {
|
|
11
|
+
type: "image";
|
|
12
|
+
url: string;
|
|
13
|
+
};
|
|
14
|
+
version: number;
|
|
15
|
+
defaultSize: {
|
|
16
|
+
d: {
|
|
17
|
+
width: number;
|
|
18
|
+
height: number;
|
|
19
|
+
};
|
|
20
|
+
};
|
|
21
|
+
assetsPaths: {
|
|
22
|
+
content: {
|
|
23
|
+
path: string;
|
|
24
|
+
placeholderEnabled: boolean;
|
|
25
|
+
}[];
|
|
26
|
+
parameters: {
|
|
27
|
+
path: string;
|
|
28
|
+
}[];
|
|
29
|
+
};
|
|
30
|
+
fontSettingsPaths: {
|
|
31
|
+
content: never[];
|
|
32
|
+
parameters: {
|
|
33
|
+
path: string;
|
|
34
|
+
}[];
|
|
35
|
+
};
|
|
36
|
+
fontRelations: {
|
|
37
|
+
titleFontSettings: string;
|
|
38
|
+
subtitleFontSettings: string;
|
|
39
|
+
lightboxCounterFontSettings: string;
|
|
40
|
+
};
|
|
41
|
+
};
|
|
@@ -19,17 +19,34 @@ type GridLayoutConfig = {
|
|
|
19
19
|
columnsCount: number;
|
|
20
20
|
lockedParam?: 'wrapperWidth' | 'entryWidth' | 'horizontalGap' | null;
|
|
21
21
|
};
|
|
22
|
+
type CustomGridBlock = {
|
|
23
|
+
column: number;
|
|
24
|
+
span: number;
|
|
25
|
+
top: number;
|
|
26
|
+
height: number;
|
|
27
|
+
};
|
|
28
|
+
type CustomGridLayout = {
|
|
29
|
+
columnsCount: number;
|
|
30
|
+
columnWidth: number;
|
|
31
|
+
gutterWidth: number;
|
|
32
|
+
maxWidth: number | null;
|
|
33
|
+
verticalGap?: number;
|
|
34
|
+
beat?: number;
|
|
35
|
+
repeatHeight?: number;
|
|
36
|
+
blocks: CustomGridBlock[];
|
|
37
|
+
};
|
|
22
38
|
type GridSettings = {
|
|
23
39
|
type: 'a' | 'b' | 'c' | 'd' | 'e' | 'f';
|
|
24
|
-
gridLayout
|
|
40
|
+
gridLayout?: GridLayoutConfig;
|
|
41
|
+
customGrid?: CustomGridLayout;
|
|
25
42
|
textBoxWidth: number;
|
|
26
|
-
verticalGap
|
|
27
|
-
entriesCount
|
|
43
|
+
verticalGap?: number;
|
|
44
|
+
entriesCount?: number;
|
|
28
45
|
lightbox: 'on' | 'off';
|
|
29
|
-
imageDisplay: {
|
|
46
|
+
imageDisplay: 'fit' | 'cover' | {
|
|
30
47
|
display: 'fit' | 'cover';
|
|
31
|
-
ratioValue
|
|
32
|
-
reversed
|
|
48
|
+
ratioValue?: '1:1' | '2:3' | '3:4' | '4:5' | '16:9';
|
|
49
|
+
reversed?: boolean;
|
|
33
50
|
};
|
|
34
51
|
imageCorners?: number;
|
|
35
52
|
lightboxImageDisplay?: 'fit' | 'cover' | {
|
|
@@ -41,8 +58,9 @@ type GridSettings = {
|
|
|
41
58
|
transition: 'fade' | 'slide';
|
|
42
59
|
showText: 'always' | 'on hover';
|
|
43
60
|
hover?: 'none' | 'zoom-in' | 'greyscale' | 'scale-down';
|
|
44
|
-
alignEntries
|
|
61
|
+
alignEntries?: 'on' | 'off';
|
|
45
62
|
align?: 'top' | 'center' | 'bottom';
|
|
63
|
+
textGrowth?: 'inside' | 'outside';
|
|
46
64
|
titleMarginTop: number;
|
|
47
65
|
subtitleMarginTop: number;
|
|
48
66
|
titleColor: string;
|