@omnia/fx-models 8.0.67-dev → 8.0.68-dev
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/Layout.d.ts
CHANGED
@@ -120,6 +120,24 @@ export declare enum SectionTypes {
|
|
120
120
|
export interface Section<T extends SectionSettings = SectionSettings> extends LayoutItem {
|
121
121
|
settings: T;
|
122
122
|
}
|
123
|
+
export interface OnSectionRenderedHookResult {
|
124
|
+
cssClass: string;
|
125
|
+
containerRenderer?: JSX.Element;
|
126
|
+
}
|
127
|
+
export interface RenderContextHooks {
|
128
|
+
onSectionRendered?: ((item: Section) => OnSectionRenderedHookResult);
|
129
|
+
}
|
130
|
+
export interface RenderContext<TItemType = LayoutItem, TSettings = LayoutItemSettings> {
|
131
|
+
id?: string;
|
132
|
+
hooks?: RenderContextHooks;
|
133
|
+
parentContainer?: LayoutItem;
|
134
|
+
item?: TItemType;
|
135
|
+
layoutId?: string;
|
136
|
+
settings?: TSettings;
|
137
|
+
useScrollMargingFix?: boolean;
|
138
|
+
state?: object;
|
139
|
+
maxWidth?: number;
|
140
|
+
}
|
123
141
|
export interface SectionSettings extends LayoutItemSettings {
|
124
142
|
type: SectionTypes;
|
125
143
|
alignment: HorizontalAlignments;
|
@@ -12,7 +12,9 @@ export interface ResolvedComponentRenderer {
|
|
12
12
|
}
|
13
13
|
export interface BuiltInComponentRenderers {
|
14
14
|
"velcron": unknown;
|
15
|
-
"
|
15
|
+
"flex": unknown;
|
16
|
+
"row": unknown;
|
17
|
+
"column": unknown;
|
16
18
|
"card": unknown;
|
17
19
|
"text": unknown;
|
18
20
|
"image": unknown;
|
@@ -201,23 +203,37 @@ export interface VelcronRenderProp {
|
|
201
203
|
defaultValue?: any;
|
202
204
|
}
|
203
205
|
/*** Built-in Components *********************************************************************/
|
204
|
-
export interface
|
205
|
-
type: "
|
206
|
+
export interface VelcronFlexDefinition extends VelcronDefinition, VelcronColorStyling {
|
207
|
+
type: "flex";
|
206
208
|
events?: VelcronOnPressEvent;
|
207
|
-
direction?: VelcronBindableProp<"row" | "column" | "row-reverse" | "column-reverse">;
|
208
|
-
columnStyle?: object;
|
209
|
-
hAlign?: VelcronHorizontalAlignments;
|
210
|
-
vAlign?: VelcronVerticalAlignments;
|
211
|
-
grow?: number | "default";
|
212
|
-
absolute?: VelcronSpacing;
|
213
209
|
border?: VelcronBorder;
|
214
210
|
borderRadius?: VelcronDimensions;
|
211
|
+
}
|
212
|
+
export interface VelcronFlexRowDefinition extends VelcronDefinition, VelcronColorStyling {
|
213
|
+
type: "row";
|
214
|
+
events?: VelcronOnPressEvent;
|
215
|
+
direction?: VelcronBindableProp<"row" | "row-reverse">;
|
216
|
+
absolute?: VelcronSpacing;
|
217
|
+
hideOverflow?: boolean;
|
218
|
+
wrap?: boolean;
|
219
|
+
gapX?: number | string;
|
220
|
+
gapY?: number | string;
|
221
|
+
alignX?: VelcronHorizontalAlignments;
|
222
|
+
alignY?: VelcronVerticalAlignments;
|
223
|
+
grow?: number | "default";
|
215
224
|
width?: number | string;
|
216
|
-
maxWidth?: number | string;
|
217
225
|
minWidth?: number | string;
|
218
226
|
height?: number | string;
|
219
227
|
minHeight?: number | string;
|
220
|
-
|
228
|
+
}
|
229
|
+
export interface VelcronFlexColumnDefinition extends VelcronDefinition, VelcronColorStyling {
|
230
|
+
type: "column";
|
231
|
+
events?: VelcronOnPressEvent;
|
232
|
+
grow?: number;
|
233
|
+
alignY?: VelcronVerticalAlignments;
|
234
|
+
absolute?: VelcronSpacing;
|
235
|
+
width?: number | string;
|
236
|
+
minWidth?: number | string;
|
221
237
|
}
|
222
238
|
export interface VelcronCardDefinition extends VelcronDefinition, VelcronColorStyling {
|
223
239
|
type: "card";
|
@@ -304,6 +320,7 @@ export interface VelcronBorder extends VelcronDimensions {
|
|
304
320
|
colorType?: string;
|
305
321
|
toned?: boolean;
|
306
322
|
opacity?: number;
|
323
|
+
width?: number;
|
307
324
|
}
|
308
325
|
export interface VelcronChipDefinition extends VelcronDefinition {
|
309
326
|
type: "chip";
|
@@ -119,12 +119,12 @@ export declare const OPaddingTypeDefinitions: readonly ["top", "bottom", "left",
|
|
119
119
|
export type OPaddingTypes = typeof OPaddingTypeDefinitions[number];
|
120
120
|
export declare const OPaddingTypesName = "ODividerTypes";
|
121
121
|
export type OPaddingCombination = `${OPaddingTypes}` | `${OPaddingTypes} ${OPaddingTypes}` | `${OPaddingTypes} ${OPaddingTypes} ${OPaddingTypes}` | `${OPaddingTypes} ${OPaddingTypes} ${OPaddingTypes} ${OPaddingTypes}`;
|
122
|
+
export declare const ORowDirectionDefinitions: readonly ["row", "row-reverse"];
|
123
|
+
export type ORowDirections = typeof ORowDirectionDefinitions[number];
|
124
|
+
export declare const ORowDirectionsName = "ORowDirections";
|
122
125
|
export declare const OPanelVariantDefinitions: readonly ["default", "dialog", "tab", "tab-vertical", "section", "toolbar", "settings", "navigation", "info-section", "content"];
|
123
126
|
export type OPanelVariants = typeof OPanelVariantDefinitions[number];
|
124
127
|
export declare const OPanelVariantsName = "OPanelVariants";
|
125
|
-
export declare const OPanelDirectionDefinitions: readonly ["row", "column"];
|
126
|
-
export type OPanelDirections = typeof OPanelDirectionDefinitions[number];
|
127
|
-
export declare const OPanelDirectionsName = "OPanelDirections";
|
128
128
|
export declare const OHorizontalAlignmentDefinitions: readonly ["left", "center", "right"];
|
129
129
|
export type OHorizontalAlignments = typeof OHorizontalAlignmentDefinitions[number];
|
130
130
|
export declare const OHorizontalAlignmentsName = "OHorizontalAlignments";
|
@@ -1,7 +1,7 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
3
|
exports.OListTypeDefinitions = exports.OListItemVariantsName = exports.OListItemVariantDefinitions = exports.ORatioTypesName = exports.ORatioTypeDefinitions = exports.OIconVariantsName = exports.OIconVariantDefinitions = exports.OIconAnimationsName = exports.OIconAnimationsDefinition = exports.OIconSizesName = exports.OIconSizeDefinitions = exports.OIconPresetsName = exports.OIconPresetDefinitions = exports.OPanelTypesName = exports.OPanelTypeDefinitions = exports.OPageDividerTypesName = exports.OPageDividerTypeDefinitions = exports.ODialogSizeDefinitions = exports.ODialogTypesName = exports.ODialogTypeDefinitions = exports.OColumnVariantsName = exports.OColumnVariantDefinitions = exports.OAlignmentTypesName = exports.OAlignmentTypeDefinitions = exports.OColValuesName = exports.OColValueDefinitions = exports.OButtonGroupTypesName = exports.OButtonGroupTypeDefinitions = exports.OButtonVariantsName = exports.OButtonVariantDefinitions = exports.OButtonPresetsName = exports.OButtonPresetDefinitions = exports.OAlertTypesName = exports.OAlertTypeDefinitions = exports.OAppBarTypesName = exports.OAppBarTypeDefinitions = exports.OProgressSizeTypesName = exports.OProgressSizeTypeDefinitions = exports.OProgressVariantsName = exports.OProgressVariantDefinitions = exports.OProgressTypesName = exports.OProgressTypeDefinitions = exports.OSliderVariantsName = exports.OSliderVariantDefinitions = exports.ODirectionTypesName = exports.ODirectionDefinitions = exports.ONotificationSizeTypeDefinitions = exports.OContentHeightDefinitions = exports.OSizeTypesName = exports.OSizeTypeDefinitions = void 0;
|
4
|
-
exports.OSplitpanesVariationDefinitions = exports.ORatingLengthName = exports.ORatingLengthDefinition = exports.ORatingDensityTypesName = exports.ORatingDensityDefinitions = exports.OLazyVariationDefinitions = exports.OInfiniteScrollStatusDefinitions = exports.ODraggableVariantsName = exports.ODraggableVariationDefinitions = exports.OToolbarVariantsName = exports.OToolbarVariationDefinitions = exports.OTextBoxTypesName = exports.OTextBoxTypeDefinitions = exports.OTextBoxVariantTypesName = exports.OTextBoxVariantTypeDefinitions = exports.OTabVariantsName = exports.OTabVariantDefinitions = exports.OScrollOffsetTypesName = exports.OScrollOffsetTypeDefinitions = exports.OSkeletonLoaderName = exports.OSkeletonLoaderTypeDefinitions = exports.OSelectTypesName = exports.OSelectTypeDefinitions = exports.OScrollTypesName = exports.OScrollTypeDefinitions = exports.OFlexVariantsName = exports.OFlexVariantDefinitions = exports.OVerticalAlignmentsName = exports.OVerticalAlignmentDefinitions = exports.OTabAlignmentsName = exports.OTabAlignmentDefinitions = exports.OHorizontalAlignmentsName = exports.OHorizontalAlignmentDefinitions = exports.
|
4
|
+
exports.OSplitpanesVariationDefinitions = exports.ORatingLengthName = exports.ORatingLengthDefinition = exports.ORatingDensityTypesName = exports.ORatingDensityDefinitions = exports.OLazyVariationDefinitions = exports.OInfiniteScrollStatusDefinitions = exports.ODraggableVariantsName = exports.ODraggableVariationDefinitions = exports.OToolbarVariantsName = exports.OToolbarVariationDefinitions = exports.OTextBoxTypesName = exports.OTextBoxTypeDefinitions = exports.OTextBoxVariantTypesName = exports.OTextBoxVariantTypeDefinitions = exports.OTabVariantsName = exports.OTabVariantDefinitions = exports.OScrollOffsetTypesName = exports.OScrollOffsetTypeDefinitions = exports.OSkeletonLoaderName = exports.OSkeletonLoaderTypeDefinitions = exports.OSelectTypesName = exports.OSelectTypeDefinitions = exports.OScrollTypesName = exports.OScrollTypeDefinitions = exports.OFlexVariantsName = exports.OFlexVariantDefinitions = exports.OVerticalAlignmentsName = exports.OVerticalAlignmentDefinitions = exports.OTabAlignmentsName = exports.OTabAlignmentDefinitions = exports.OHorizontalAlignmentsName = exports.OHorizontalAlignmentDefinitions = exports.OPanelVariantsName = exports.OPanelVariantDefinitions = exports.ORowDirectionsName = exports.ORowDirectionDefinitions = exports.OPaddingTypesName = exports.OPaddingTypeDefinitions = exports.ODividerTypesName = exports.ODividerTypeDefinitions = exports.ONavigationDrawerVariantsName = exports.ONavigationDrawerVariantDefinitions = exports.ONavigationDrawerLocationsName = exports.ONavigationDrawerLocationDefinitions = exports.OMenuLocationsName = exports.OMenuLocationDefinitions = exports.OListLineTypesName = exports.OListLineTypeDefinitions = exports.OListTypesName = void 0;
|
5
5
|
exports.OSplitpanesVariationTypesName = void 0;
|
6
6
|
/**Shared */
|
7
7
|
const block = ["top", "bottom"];
|
@@ -92,10 +92,13 @@ exports.ODividerTypeDefinitions = ["top", "bottom", "left", "right"];
|
|
92
92
|
exports.ODividerTypesName = "ODividerTypes";
|
93
93
|
exports.OPaddingTypeDefinitions = ["top", "bottom", "left", "right", "none"];
|
94
94
|
exports.OPaddingTypesName = "ODividerTypes";
|
95
|
+
exports.ORowDirectionDefinitions = ["row", "row-reverse"];
|
96
|
+
exports.ORowDirectionsName = "ORowDirections";
|
95
97
|
exports.OPanelVariantDefinitions = ["default", "dialog", "tab", "tab-vertical", "section", "toolbar", "settings", "navigation", "info-section", "content"];
|
96
98
|
exports.OPanelVariantsName = "OPanelVariants";
|
97
|
-
|
98
|
-
|
99
|
+
// export const OPanelDirectionDefinitions = ["row", "column"] as const;
|
100
|
+
// export type OPanelDirections = typeof OPanelDirectionDefinitions[number];
|
101
|
+
// export const OPanelDirectionsName = "OPanelDirections";
|
99
102
|
exports.OHorizontalAlignmentDefinitions = ["left", "center", "right"];
|
100
103
|
exports.OHorizontalAlignmentsName = "OHorizontalAlignments";
|
101
104
|
exports.OTabAlignmentDefinitions = ["start", "center", "end"];
|