@omnia/fx-models 8.0.500-dev → 8.0.502-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/ConditionalControl.d.ts +14 -0
- package/ConditionalControl.js +2 -0
- package/Enums.d.ts +2 -1
- package/Enums.js +1 -0
- package/Exposes.d.ts +1 -0
- package/Exposes.js +1 -0
- package/Layout.d.ts +5 -1
- package/package.json +1 -1
@@ -0,0 +1,14 @@
|
|
1
|
+
import { ConstructComponentProps, DefineEmit, DefineProp } from "../ux";
|
2
|
+
type ConditionControlItemElement = (props: ConstructComponentProps<ConditionalControlItemProps>) => any;
|
3
|
+
type ConditionControlItemFilterValueElement = (props: ConstructComponentProps<ConditionalControlItemFilterProps>) => any;
|
4
|
+
export type ConditionalControlItemProps = DefineProp<"text", string, false, "">;
|
5
|
+
export type ConditionalControlItemFilterProps = DefineProp<"text", string, false, ""> & DefineEmit<"click:close", (e: MouseEvent) => void>;
|
6
|
+
export interface IConditionControlItemRow<TItem = any> {
|
7
|
+
Row: ConditionControlItemElement;
|
8
|
+
Item: TItem;
|
9
|
+
}
|
10
|
+
export interface IConditionControlItemFilterValues<TItem = any> {
|
11
|
+
FilterValue: ConditionControlItemFilterValueElement;
|
12
|
+
Item: TItem;
|
13
|
+
}
|
14
|
+
export {};
|
package/Enums.d.ts
CHANGED
package/Enums.js
CHANGED
@@ -433,6 +433,7 @@ var LayoutDrawerTabs;
|
|
433
433
|
LayoutDrawerTabs[LayoutDrawerTabs["structure"] = 1] = "structure";
|
434
434
|
LayoutDrawerTabs[LayoutDrawerTabs["layoutTemplates"] = 2] = "layoutTemplates";
|
435
435
|
LayoutDrawerTabs[LayoutDrawerTabs["clipboard"] = 3] = "clipboard";
|
436
|
+
LayoutDrawerTabs[LayoutDrawerTabs["editing"] = 4] = "editing";
|
436
437
|
})(LayoutDrawerTabs || (exports.LayoutDrawerTabs = LayoutDrawerTabs = {}));
|
437
438
|
var LayoutItemTypes;
|
438
439
|
(function (LayoutItemTypes) {
|
package/Exposes.d.ts
CHANGED
package/Exposes.js
CHANGED
@@ -169,3 +169,4 @@ tslib_1.__exportStar(require("./UserAgent"), exports);
|
|
169
169
|
tslib_1.__exportStar(require("./connected-tenants"), exports);
|
170
170
|
tslib_1.__exportStar(require("./TenantAdminSettingSection"), exports);
|
171
171
|
tslib_1.__exportStar(require("./RecurrenceSettings"), exports);
|
172
|
+
tslib_1.__exportStar(require("./ConditionalControl"), exports);
|
package/Layout.d.ts
CHANGED
@@ -5,6 +5,7 @@ import { ShapeDividerSettings } from "./ShapeDividerSettingsModel";
|
|
5
5
|
import { ClipboardLayoutItem } from "./Clipboard";
|
6
6
|
import { FilePickerStorageProviderContext } from "./FilePicker";
|
7
7
|
import { ComputedRef, VNodeChild } from "vue";
|
8
|
+
import { VNodeEvents } from "../ux";
|
8
9
|
export interface Layout {
|
9
10
|
definition: LayoutDefinition;
|
10
11
|
blockSettings: BlockSettings;
|
@@ -428,6 +429,8 @@ export interface IBlockSettingsWriterExtender {
|
|
428
429
|
export interface IBlockApi<TSettings = void> {
|
429
430
|
fillData: (instance: IBlockInstance<TSettings>) => void;
|
430
431
|
}
|
432
|
+
type BlockEditProps = Parameters<typeof omfx.layout.editor.block.edit>[0];
|
433
|
+
type BlockEditElement = (props: Omit<BlockEditProps, "renderBladeOnly" | "layoutItem"> & VNodeEvents) => any;
|
431
434
|
export interface IBlockInstance<TSettings = void> {
|
432
435
|
id: guid;
|
433
436
|
manifestId: guid;
|
@@ -447,7 +450,7 @@ export interface IBlockInstance<TSettings = void> {
|
|
447
450
|
setSearchValue: (value: MultilingualString) => void;
|
448
451
|
readonly editing: boolean;
|
449
452
|
configurations: () => {
|
450
|
-
enableEdit(renderer: (element:
|
453
|
+
enableEdit(renderer: (element: BlockEditElement) => VNodeChild, mode?: "design-write" | "design" | "write"): void;
|
451
454
|
};
|
452
455
|
}
|
453
456
|
export interface LayoutInheritanceBehaviors {
|
@@ -588,3 +591,4 @@ export interface LayoutPlaceHolderRegistration {
|
|
588
591
|
id: guid;
|
589
592
|
title: string;
|
590
593
|
}
|
594
|
+
export {};
|