@mendix/pluggable-widgets-tools
Version:
Mendix Pluggable Widgets Tools
45 lines (39 loc) • 1.4 kB
JavaScript
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.iconNativeOutput = exports.iconWebOutput = void 0;
exports.iconWebOutput = `/**
* This file was generated from MyWidget.xml
* WARNING: All changes made to this file will be overwritten
* @author Mendix Widgets Framework Team
*/
import { DynamicValue, WebIcon } from "mendix";
export interface IconsType {
firstIcon: DynamicValue<WebIcon>;
secondIcon: DynamicValue<WebIcon>;
}
export interface IconsPreviewType {
firstIcon: { type: "glyph"; iconClass: string; } | { type: "image"; imageUrl: string; iconUrl: string; } | { type: "icon"; iconClass: string; } | undefined;
secondIcon: { type: "glyph"; iconClass: string; } | { type: "image"; imageUrl: string; iconUrl: string; } | { type: "icon"; iconClass: string; } | undefined;
}
export interface MyWidgetContainerProps {
name: string;
tabIndex?: number;
id: string;
icons: IconsType[];
}
export interface MyWidgetPreviewProps {
readOnly: boolean;
renderMode: "design" | "xray" | "structure";
translate: (text: string) => string;
icons: IconsPreviewType[];
}
`;
exports.iconNativeOutput = `export interface IconsType {
firstIcon: DynamicValue<NativeIcon>;
secondIcon: DynamicValue<NativeIcon>;
}
export interface MyWidgetProps<Style> {
name: string;
style: Style[];
icons: IconsType[];
}`;