@cntrl-site/components 1.0.12-alpha.1 → 1.0.12-alpha.3
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/LICENSE +21 -21
- package/README.md +2 -2
- package/dist/Components/Grid/GridComponent.d.ts +1 -15
- package/dist/Components/List/List.d.ts +12 -2
- package/dist/Components/List/ListComponent.d.ts +1 -15
- package/dist/index.js +4158 -3939
- package/dist/index.mjs +7066 -6754
- package/package.json +85 -85
package/LICENSE
CHANGED
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
MIT License
|
|
2
|
-
|
|
3
|
-
Copyright (c) 2025 GX Platform
|
|
4
|
-
|
|
5
|
-
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
-
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
-
in the Software without restriction, including without limitation the rights
|
|
8
|
-
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
-
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
-
furnished to do so, subject to the following conditions:
|
|
11
|
-
|
|
12
|
-
The above copyright notice and this permission notice shall be included in all
|
|
13
|
-
copies or substantial portions of the Software.
|
|
14
|
-
|
|
15
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
-
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
-
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
-
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
-
SOFTWARE.
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2025 GX Platform
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.md
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
# Control Components
|
|
2
|
-
|
|
1
|
+
# Control Components
|
|
2
|
+
|
|
3
3
|
This is custom components for control editor and public websites.
|
|
@@ -1,18 +1,5 @@
|
|
|
1
1
|
import { Grid } from './Grid';
|
|
2
2
|
import { ComponentSchemaV1 } from '../../types/SchemaV1';
|
|
3
|
-
type GridSchema = ComponentSchemaV1 & {
|
|
4
|
-
properties: {
|
|
5
|
-
content: {
|
|
6
|
-
type: 'array';
|
|
7
|
-
settings?: {
|
|
8
|
-
addItemFromFileExplorer?: boolean;
|
|
9
|
-
addItemWithoutImage?: boolean;
|
|
10
|
-
};
|
|
11
|
-
items: any;
|
|
12
|
-
default: any[];
|
|
13
|
-
};
|
|
14
|
-
};
|
|
15
|
-
};
|
|
16
3
|
export declare const GridComponent: {
|
|
17
4
|
element: typeof Grid;
|
|
18
5
|
id: string;
|
|
@@ -37,7 +24,6 @@ export declare const GridComponent: {
|
|
|
37
24
|
}[];
|
|
38
25
|
parameters: never[];
|
|
39
26
|
};
|
|
40
|
-
schema:
|
|
27
|
+
schema: ComponentSchemaV1;
|
|
41
28
|
sourceCode: string;
|
|
42
29
|
};
|
|
43
|
-
export {};
|
|
@@ -46,6 +46,13 @@ type ListColumnTextStyleOverrides = {
|
|
|
46
46
|
EColumnTextLetterSpacing?: number;
|
|
47
47
|
EColumnTextWordSpacing?: number;
|
|
48
48
|
EColumnTextTextAppearance?: TextStyles['textAppearance'];
|
|
49
|
+
cutLabelTextFontFamily?: string;
|
|
50
|
+
cutLabelTextFontSettings?: ListFontSettings;
|
|
51
|
+
cutLabelTextFontSize?: number;
|
|
52
|
+
cutLabelTextLineHeight?: number;
|
|
53
|
+
cutLabelTextLetterSpacing?: number;
|
|
54
|
+
cutLabelTextWordSpacing?: number;
|
|
55
|
+
cutLabelTextTextAppearance?: TextStyles['textAppearance'];
|
|
49
56
|
};
|
|
50
57
|
export type ListColumnVerticalAlignKey = `${ListColumnPrefix}VerticalAlign`;
|
|
51
58
|
export type ListSettings = {
|
|
@@ -129,16 +136,19 @@ type ListProps = {
|
|
|
129
136
|
} & CommonComponentProps;
|
|
130
137
|
export declare const COLUMN_CONTENT_KEYS: readonly ["AColumn", "BColumnWidth", "CColumnWidth", "DColumnWidth", "EColumnWidth"];
|
|
131
138
|
export declare const COLUMN_TEXT_PREFIXES: readonly ["AColumn", "BColumn", "CColumn", "DColumn", "EColumn"];
|
|
139
|
+
export declare const CUT_LABEL_TEXT_PREFIX: "cutLabel";
|
|
140
|
+
export declare const LIST_TEXT_STYLE_PREFIXES: readonly ["AColumn", "BColumn", "CColumn", "DColumn", "EColumn", "cutLabel"];
|
|
141
|
+
export type ListTextStylePrefix = typeof LIST_TEXT_STYLE_PREFIXES[number];
|
|
132
142
|
export declare const LIST_COLUMN_LETTERS: readonly ["A", "B", "C", "D", "E"];
|
|
133
143
|
export declare function getListColumnVerticalAlignSettingKey(columnLetter: string): string;
|
|
134
144
|
export declare const COLUMN_VALIGN_BASIC_OPTIONS: readonly ["Top", "Center", "Bottom"];
|
|
135
|
-
export declare function
|
|
145
|
+
export declare function isBaselineAnchorColumnVerticalAlign(value: string | undefined): boolean;
|
|
136
146
|
export declare function parseBaselineAnchorLetter(value: string | undefined): string | null;
|
|
137
147
|
export declare function isValidColumnBaselineVAlign(value: string | undefined, forColumnLetter: string, settings: ListSettings): boolean;
|
|
138
148
|
export declare function getColumnVerticalAlignOptionsForLetter(columnLetter: string, settings: ListSettings): string[];
|
|
139
149
|
export declare const LIST_GLOBAL_TEXT_STYLE_KEYS: readonly ["textFontFamily", "textFontSettings", "textFontSize", "textLineHeight", "textLetterSpacing", "textWordSpacing", "textTextAppearance"];
|
|
140
150
|
export type ListGlobalTextStyleKey = typeof LIST_GLOBAL_TEXT_STYLE_KEYS[number];
|
|
141
|
-
export declare function getListColumnTextSettingKey(prefix:
|
|
151
|
+
export declare function getListColumnTextSettingKey(prefix: ListTextStylePrefix, globalKey: ListGlobalTextStyleKey): string;
|
|
142
152
|
declare const COLUMN_WIDTH_KEYS: readonly ["AColumnWidth", "BColumnWidth", "CColumnWidth", "DColumnWidth", "EColumnWidth"];
|
|
143
153
|
type ColumnWidthKey = typeof COLUMN_WIDTH_KEYS[number];
|
|
144
154
|
export declare function getListMinColumnWidth(designWidthPx?: number): number;
|
|
@@ -1,18 +1,5 @@
|
|
|
1
1
|
import { List } from './List';
|
|
2
2
|
import { ComponentSchemaV1 } from '../../types/SchemaV1';
|
|
3
|
-
type GridSchema = ComponentSchemaV1 & {
|
|
4
|
-
properties: {
|
|
5
|
-
content: {
|
|
6
|
-
type: 'array';
|
|
7
|
-
settings?: {
|
|
8
|
-
addItemFromFileExplorer?: boolean;
|
|
9
|
-
addItemWithoutImage?: boolean;
|
|
10
|
-
};
|
|
11
|
-
items: any;
|
|
12
|
-
default: any[];
|
|
13
|
-
};
|
|
14
|
-
};
|
|
15
|
-
};
|
|
16
3
|
export declare const ListComponent: {
|
|
17
4
|
element: typeof List;
|
|
18
5
|
id: string;
|
|
@@ -37,7 +24,6 @@ export declare const ListComponent: {
|
|
|
37
24
|
}[];
|
|
38
25
|
parameters: never[];
|
|
39
26
|
};
|
|
40
|
-
schema:
|
|
27
|
+
schema: ComponentSchemaV1;
|
|
41
28
|
sourceCode: string;
|
|
42
29
|
};
|
|
43
|
-
export {};
|