@genexus/designer-common-layout
Advanced tools
Comparing version 0.0.2-beta.8 to 0.0.3
@@ -1,2 +0,2 @@ | ||
import { DesignerFactoryRegistry, GxmlNodeDescriptor, GxmlNodeDescriptorRegistry, GxmlNodeFactory, GxmlNodeFactoryRegistry, GxmlNodeRenderFn, GxmlNodeRenderRegistry, DesignerFactory, MaybePromise } from '@genexus/designer-common'; | ||
import { DesignerFactoryRegistry, GxmlNodeDescriptor, GxmlNodeDescriptorRegistry, GxmlNodeFactory, GxmlNodeFactoryRegistry, GxmlNodeRenderFn, GxmlNodeRenderRegistry, DesignerFactory, MaybePromise, DesignerHost, DesignerOptionsData } from '@genexus/designer-common'; | ||
import '@genexus/gemini'; | ||
@@ -13,7 +13,79 @@ export * from '@genexus/designer-common'; | ||
export declare namespace LayoutDesignerServiceIds { | ||
const SelectAttVar = "SelectAttVar"; | ||
const SelectData = "SelectData"; | ||
const SelectImage = "SelectImage"; | ||
const SelectAction = "SelectAction"; | ||
const SelectUserControl = "SelectUserControl"; | ||
const Stencil = "Stencil"; | ||
const NamePicker = "NamePicker"; | ||
const Events = "Events"; | ||
const Clipboard = "Clipboard"; | ||
const ToolWindow = "ToolWindow"; | ||
} | ||
export interface ISelectAttVarService { | ||
selectAttribute(): MaybePromise<string[]>; | ||
export declare enum EditorType { | ||
WEB_LAYOUT = 1, | ||
WEB_ACTION_GROUPS = 2, | ||
SD_LAYOUT = 4, | ||
SD_ACTION_GROUPS = 8, | ||
WEB = 3, | ||
SD = 12, | ||
ALL = 15 | ||
} | ||
export declare type SelectDataOptions = {}; | ||
export declare abstract class LayoutDesignerHost extends DesignerHost { | ||
abstract editorType: EditorType; | ||
} | ||
export declare type LayoutDesignerOptionsData = DesignerOptionsData & { | ||
editorType: EditorType; | ||
}; | ||
export interface ISelectDataService { | ||
select(options?: SelectDataOptions): MaybePromise<string[]>; | ||
} | ||
export interface ISelectImageService { | ||
selectImage(): MaybePromise<SelectedImage | undefined>; | ||
resolveImageSrc(name: string): MaybePromise<string | undefined>; | ||
} | ||
export interface ISelectActionService { | ||
selectAction(): MaybePromise<SelectedAction | undefined>; | ||
} | ||
export interface IStencilService { | ||
selectStencil(): MaybePromise<StencilData | undefined>; | ||
openStencil(stencilName: string): MaybePromise<void>; | ||
wrapAsNewStencil(nodeId: string): MaybePromise<StencilData>; | ||
} | ||
export interface IEventsService { | ||
getEvents(uc: string): MaybePromise<string[]>; | ||
goToEvent(nodeId: string, event: string): MaybePromise<void>; | ||
} | ||
export interface ISelectUserControlService { | ||
selectUserControl(): MaybePromise<SelectedUserControl>; | ||
getUserControlContent(userControlType: string): MaybePromise<string>; | ||
} | ||
export interface IClipboardService { | ||
getData(): MaybePromise<string>; | ||
setData(data: string): MaybePromise<void>; | ||
} | ||
export interface INamePickerService { | ||
selectName(title: string, value: string): MaybePromise<string>; | ||
} | ||
export interface IToolWindowService { | ||
openResponsiveSizes(): void; | ||
} | ||
export declare class SelectedImage { | ||
class?: string; | ||
imgSrc: string; | ||
imageReference: string; | ||
} | ||
export declare class SelectedAction { | ||
caption: string; | ||
onClickEvent: string; | ||
} | ||
export declare class StencilData { | ||
stencilName: string; | ||
content: string; | ||
} | ||
export declare class SelectedUserControl { | ||
userControlName: string; | ||
slots: string[]; | ||
id: number; | ||
} | ||
//# sourceMappingURL=index.d.ts.map |
@@ -1,2 +0,2 @@ | ||
import { DesignerFactoryRegistry, GxmlNodeDescriptorRegistry, GxmlNodeFactoryRegistry, GxmlNodeRenderRegistry } from '@genexus/designer-common'; | ||
import { DesignerFactoryRegistry, GxmlNodeDescriptorRegistry, GxmlNodeFactoryRegistry, GxmlNodeRenderRegistry, DesignerHost } from '@genexus/designer-common'; | ||
import '@genexus/gemini'; | ||
@@ -57,4 +57,33 @@ export * from '@genexus/designer-common'; | ||
(function (LayoutDesignerServiceIds) { | ||
LayoutDesignerServiceIds.SelectAttVar = 'SelectAttVar'; | ||
LayoutDesignerServiceIds.SelectData = 'SelectData'; | ||
LayoutDesignerServiceIds.SelectImage = 'SelectImage'; | ||
LayoutDesignerServiceIds.SelectAction = 'SelectAction'; | ||
LayoutDesignerServiceIds.SelectUserControl = 'SelectUserControl'; | ||
LayoutDesignerServiceIds.Stencil = 'Stencil'; | ||
LayoutDesignerServiceIds.NamePicker = 'NamePicker'; | ||
LayoutDesignerServiceIds.Events = 'Events'; | ||
LayoutDesignerServiceIds.Clipboard = 'Clipboard'; | ||
LayoutDesignerServiceIds.ToolWindow = 'ToolWindow'; | ||
})(LayoutDesignerServiceIds || (LayoutDesignerServiceIds = {})); | ||
export var EditorType; | ||
(function (EditorType) { | ||
EditorType[EditorType["WEB_LAYOUT"] = 1] = "WEB_LAYOUT"; | ||
EditorType[EditorType["WEB_ACTION_GROUPS"] = 2] = "WEB_ACTION_GROUPS"; | ||
EditorType[EditorType["SD_LAYOUT"] = 4] = "SD_LAYOUT"; | ||
EditorType[EditorType["SD_ACTION_GROUPS"] = 8] = "SD_ACTION_GROUPS"; | ||
EditorType[EditorType["WEB"] = 3] = "WEB"; | ||
EditorType[EditorType["SD"] = 12] = "SD"; | ||
EditorType[EditorType["ALL"] = 15] = "ALL"; | ||
})(EditorType || (EditorType = {})); | ||
; | ||
export class LayoutDesignerHost extends DesignerHost { | ||
} | ||
export class SelectedImage { | ||
} | ||
export class SelectedAction { | ||
} | ||
export class StencilData { | ||
} | ||
export class SelectedUserControl { | ||
} | ||
//# sourceMappingURL=index.js.map |
{ | ||
"name": "@genexus/designer-common-layout", | ||
"version": "0.0.2-beta.8+895024f", | ||
"version": "0.0.3", | ||
"main": "lib/index.js", | ||
@@ -21,3 +21,3 @@ "typings": "lib/index.d.ts", | ||
"dependencies": { | ||
"@genexus/designer-common": "^0.0.2-beta.8+895024f" | ||
"@genexus/designer-common": "^0.0.3" | ||
}, | ||
@@ -28,3 +28,3 @@ "devDependencies": { | ||
}, | ||
"gitHead": "895024f50f60f3e1e65a2bec6e89eaa1d6a65e18" | ||
"gitHead": "020ba801c5e37128d4103680f2b1f15b9f4dc5aa" | ||
} |
100
src/index.ts
@@ -11,3 +11,5 @@ | ||
DesignerFactory, | ||
MaybePromise | ||
MaybePromise, | ||
DesignerHost, | ||
DesignerOptionsData | ||
} from '@genexus/designer-common'; | ||
@@ -89,9 +91,99 @@ | ||
export namespace LayoutDesignerServiceIds { | ||
export const SelectAttVar = 'SelectAttVar'; | ||
export const SelectData = 'SelectData'; | ||
export const SelectImage = 'SelectImage'; | ||
export const SelectAction = 'SelectAction'; | ||
export const SelectUserControl = 'SelectUserControl'; | ||
export const Stencil = 'Stencil'; | ||
export const NamePicker = 'NamePicker'; | ||
export const Events = 'Events'; | ||
export const Clipboard = 'Clipboard'; | ||
export const ToolWindow = 'ToolWindow'; | ||
} | ||
export interface ISelectAttVarService { | ||
export enum EditorType { | ||
WEB_LAYOUT = 1, | ||
WEB_ACTION_GROUPS = 2, | ||
SD_LAYOUT = 4, | ||
SD_ACTION_GROUPS = 8, | ||
selectAttribute(): MaybePromise<string[]>; | ||
WEB = WEB_LAYOUT | WEB_ACTION_GROUPS, | ||
SD = SD_LAYOUT | SD_ACTION_GROUPS, | ||
ALL = WEB | SD | ||
}; | ||
export type SelectDataOptions = { | ||
}; | ||
export abstract class LayoutDesignerHost extends DesignerHost{ | ||
abstract editorType:EditorType; | ||
} | ||
export type LayoutDesignerOptionsData = DesignerOptionsData & { | ||
editorType: EditorType; | ||
} | ||
export interface ISelectDataService { | ||
select(options?: SelectDataOptions): MaybePromise<string[]>; | ||
} | ||
export interface ISelectImageService { | ||
selectImage(): MaybePromise<SelectedImage | undefined>; | ||
resolveImageSrc(name: string): MaybePromise<string | undefined>; | ||
} | ||
export interface ISelectActionService { | ||
selectAction(): MaybePromise<SelectedAction | undefined>; | ||
} | ||
export interface IStencilService { | ||
selectStencil(): MaybePromise<StencilData | undefined>; | ||
openStencil(stencilName:string):MaybePromise<void>; | ||
wrapAsNewStencil(nodeId:string):MaybePromise<StencilData>; | ||
} | ||
export interface IEventsService { | ||
getEvents(uc:string): MaybePromise<string[]>; | ||
goToEvent(nodeId:string, event:string): MaybePromise<void>; | ||
} | ||
export interface ISelectUserControlService { | ||
selectUserControl(): MaybePromise<SelectedUserControl>; | ||
getUserControlContent(userControlType:string):MaybePromise<string>; | ||
} | ||
export interface IClipboardService { | ||
getData(): MaybePromise<string>; | ||
setData(data:string):MaybePromise<void>; | ||
} | ||
export interface INamePickerService { | ||
selectName(title:string, value:string):MaybePromise<string>; | ||
} | ||
export interface IToolWindowService { | ||
openResponsiveSizes():void; | ||
} | ||
export class SelectedImage { | ||
class?: string; | ||
imgSrc: string; | ||
imageReference: string; | ||
} | ||
export class SelectedAction { | ||
caption: string; | ||
onClickEvent: string; | ||
} | ||
export class StencilData { | ||
stencilName: string; | ||
content: string; | ||
} | ||
export class SelectedUserControl { | ||
userControlName: string; | ||
slots: string[]; | ||
id: number; | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Unpublished package
Supply chain riskPackage version was not found on the registry. It may exist on a different registry and need to be configured to pull from that registry.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Manifest confusion
Supply chain riskThis package has inconsistent metadata. This could be malicious or caused by an error when publishing the package.
Found 1 instance in 1 package
Unpopular package
QualityThis package is not very popular.
Found 1 instance in 1 package
17833
320
1
+ Added@genexus/designer-common@0.0.3(transitive)
- Removed@genexus/designer-common@0.0.2(transitive)