UNPKG

@mendix/pluggable-widgets-tools

Version:
4 lines (3 loc) 6.71 kB
export declare const nativeResult = "/**\n * This file was generated from MyWidget.xml\n * WARNING: All changes made to this file will be overwritten\n * @author Mendix Widgets Framework Team\n */\nimport { CSSProperties } from \"react\";\nimport { ActionValue, DynamicValue, EditableValue, FileValue, NativeImage } from \"mendix\";\nimport { Big } from \"big.js\";\n\nexport type BootstrapStyleEnum = \"default\" | \"primary\" | \"success\" | \"info\" | \"inverse\" | \"warning\" | \"danger\";\n\nexport type MywidgetTypeEnum = \"badge\" | \"label\";\n\nexport interface ActionsType {\n name: string;\n enabled: boolean;\n action?: ActionValue;\n image: DynamicValue<NativeImage>;\n}\n\nexport interface ActionsPreviewType {\n name: string;\n enabled: boolean;\n action: {} | null;\n image: { type: \"static\"; imageUrl: string; } | { type: \"dynamic\"; entity: string; } | null;\n}\n\nexport interface MyWidgetProps<Style> {\n name: string;\n style: Style[];\n valueAttribute?: EditableValue<string | Big>;\n mywidgetValue: string;\n valueExpression?: DynamicValue<string>;\n valueExpressionDecimal?: DynamicValue<Big>;\n file: DynamicValue<FileValue>;\n bootstrapStyle: BootstrapStyleEnum;\n mywidgetType: MywidgetTypeEnum;\n tries?: number;\n amount?: Big;\n image?: DynamicValue<NativeImage>;\n onClickAction?: ActionValue;\n onChange?: ActionValue;\n actions: ActionsType[];\n}\n\nexport interface MyWidgetPreviewProps {\n /**\n * @deprecated Deprecated since version 9.18.0. Please use class property instead.\n */\n className: string;\n class: string;\n style: string;\n styleObject?: CSSProperties;\n readOnly: boolean;\n renderMode: \"design\" | \"xray\" | \"structure\";\n translate: (text: string) => string;\n valueAttribute: string;\n mywidgetValue: string;\n valueExpression: string;\n valueExpressionDecimal: string;\n file: string;\n bootstrapStyle: BootstrapStyleEnum;\n mywidgetType: MywidgetTypeEnum;\n tries: number | null;\n amount: number | null;\n image: { type: \"static\"; imageUrl: string; } | { type: \"dynamic\"; entity: string; } | null;\n onClickAction: {} | null;\n onChange: {} | null;\n actions: ActionsPreviewType[];\n}\n"; export declare const webResult = "/**\n * This file was generated from MyWidget.xml\n * WARNING: All changes made to this file will be overwritten\n * @author Mendix Widgets Framework Team\n */\nimport { CSSProperties } from \"react\";\nimport { ActionValue, DynamicValue, EditableValue, FileValue, WebImage } from \"mendix\";\nimport { Big } from \"big.js\";\n\nexport type BootstrapStyleEnum = \"default\" | \"primary\" | \"success\" | \"info\" | \"inverse\" | \"warning\" | \"danger\";\n\nexport type MywidgetTypeEnum = \"badge\" | \"label\";\n\nexport interface ActionsType {\n name: string;\n enabled: boolean;\n action?: ActionValue;\n image: DynamicValue<WebImage>;\n}\n\nexport interface ActionsPreviewType {\n name: string;\n enabled: boolean;\n action: {} | null;\n image: { type: \"static\"; imageUrl: string; } | { type: \"dynamic\"; entity: string; } | null;\n}\n\nexport interface MyWidgetContainerProps {\n name: string;\n class: string;\n style?: CSSProperties;\n tabIndex?: number;\n valueAttribute?: EditableValue<string | Big>;\n mywidgetValue: string;\n valueExpression?: DynamicValue<string>;\n valueExpressionDecimal?: DynamicValue<Big>;\n file: DynamicValue<FileValue>;\n bootstrapStyle: BootstrapStyleEnum;\n mywidgetType: MywidgetTypeEnum;\n tries?: number;\n amount?: Big;\n image?: DynamicValue<WebImage>;\n onClickAction?: ActionValue;\n onChange?: ActionValue;\n actions: ActionsType[];\n}\n\nexport interface MyWidgetPreviewProps {\n /**\n * @deprecated Deprecated since version 9.18.0. Please use class property instead.\n */\n className: string;\n class: string;\n style: string;\n styleObject?: CSSProperties;\n readOnly: boolean;\n renderMode: \"design\" | \"xray\" | \"structure\";\n translate: (text: string) => string;\n valueAttribute: string;\n mywidgetValue: string;\n valueExpression: string;\n valueExpressionDecimal: string;\n file: string;\n bootstrapStyle: BootstrapStyleEnum;\n mywidgetType: MywidgetTypeEnum;\n tries: number | null;\n amount: number | null;\n image: { type: \"static\"; imageUrl: string; } | { type: \"dynamic\"; entity: string; } | null;\n onClickAction: {} | null;\n onChange: {} | null;\n actions: ActionsPreviewType[];\n}\n"; export declare const webResultGroup = "/**\n * This file was generated from MyWidget.xml\n * WARNING: All changes made to this file will be overwritten\n * @author Mendix Widgets Framework Team\n */\nimport { ActionValue, DynamicValue, EditableValue, FileValue, WebImage } from \"mendix\";\nimport { Big } from \"big.js\";\n\nexport type BootstrapStyleEnum = \"default\" | \"primary\" | \"success\" | \"info\" | \"inverse\" | \"warning\" | \"danger\";\n\nexport type MywidgetTypeEnum = \"badge\" | \"label\";\n\nexport interface ActionsType {\n name: string;\n enabled: boolean;\n action?: ActionValue;\n image: DynamicValue<WebImage>;\n}\n\nexport interface ActionsPreviewType {\n name: string;\n enabled: boolean;\n action: {} | null;\n image: { type: \"static\"; imageUrl: string; } | { type: \"dynamic\"; entity: string; } | null;\n}\n\nexport interface MyWidgetContainerProps {\n name: string;\n tabIndex?: number;\n id: string;\n valueAttribute?: EditableValue<string | Big>;\n mywidgetValue: string;\n valueExpression?: DynamicValue<string>;\n valueExpressionDecimal?: DynamicValue<Big>;\n file: DynamicValue<FileValue>;\n bootstrapStyle: BootstrapStyleEnum;\n mywidgetType: MywidgetTypeEnum;\n tries?: number;\n amount?: Big;\n image?: DynamicValue<WebImage>;\n onClickAction?: ActionValue;\n onChange?: ActionValue;\n actions: ActionsType[];\n}\n\nexport interface MyWidgetPreviewProps {\n readOnly: boolean;\n renderMode: \"design\" | \"xray\" | \"structure\";\n translate: (text: string) => string;\n valueAttribute: string;\n mywidgetValue: string;\n valueExpression: string;\n valueExpressionDecimal: string;\n file: string;\n bootstrapStyle: BootstrapStyleEnum;\n mywidgetType: MywidgetTypeEnum;\n tries: number | null;\n amount: number | null;\n image: { type: \"static\"; imageUrl: string; } | { type: \"dynamic\"; entity: string; } | null;\n onClickAction: {} | null;\n onChange: {} | null;\n actions: ActionsPreviewType[];\n}\n";