UNPKG

@mendix/pluggable-widgets-tools

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