@omnia/fx-models 8.0.500-dev → 8.0.501-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.
@@ -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 {};
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
package/Enums.d.ts CHANGED
@@ -369,7 +369,8 @@ export declare enum LayoutDrawerTabs {
369
369
  settings = 0,
370
370
  structure = 1,
371
371
  layoutTemplates = 2,
372
- clipboard = 3
372
+ clipboard = 3,
373
+ editing = 4
373
374
  }
374
375
  export declare enum LayoutItemTypes {
375
376
  layout = "layout",
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
@@ -154,3 +154,4 @@ export * from "./UserAgent";
154
154
  export * from "./connected-tenants";
155
155
  export * from "./TenantAdminSettingSection";
156
156
  export * from "./RecurrenceSettings";
157
+ export * from "./ConditionalControl";
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: typeof omfx.layout.editor.block.edit) => VNodeChild, mode?: "design-write" | "design" | "write"): void;
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 {};
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@omnia/fx-models",
3
3
  "license": "MIT",
4
- "version": "8.0.500-dev",
4
+ "version": "8.0.501-dev",
5
5
  "description": "Provide Omnia Fx Models Stuffs.",
6
6
  "scripts": {
7
7
  "test": "echo \"Error: no test specified\" && exit 1"