@omnia/fx-models 8.0.50-dev → 8.0.51-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/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@omnia/fx-models",
3
3
  "license": "MIT",
4
- "version": "8.0.50-dev",
4
+ "version": "8.0.51-dev",
5
5
  "description": "Provide Omnia Fx Models Stuffs.",
6
6
  "scripts": {
7
7
  "test": "echo \"Error: no test specified\" && exit 1"
@@ -0,0 +1,27 @@
1
+ import { DirectiveBinding, VNode } from "vue";
2
+ import { IExtendApiManifestWithConfiguration } from "../Extends";
3
+ export type DirectiveDefinition<T = void> = () => {
4
+ mounted: (el: any, binding: DirectiveBinding<T>, vnode: VNode, prevVnode: VNode) => void;
5
+ unmounted: (el: any, binding: DirectiveBinding<T>, vnode: VNode, prevVnode: VNode) => void;
6
+ updated: (el: any, binding: DirectiveBinding<T>, vnode: VNode, prevVnode: VNode) => void;
7
+ };
8
+ export interface Directives {
9
+ }
10
+ export interface IDirectiveRegistration {
11
+ register<T = void>(name: string, directive: DirectiveDefinition<T>): any;
12
+ }
13
+ export interface IInternalDirectiveRegistration extends IDirectiveRegistration {
14
+ getDirective<T = void>(name: string): Promise<DirectiveDefinition<T>>;
15
+ }
16
+ declare module "./UxApi" {
17
+ interface IOmniaUxApi {
18
+ directives: {
19
+ registrations: Promise<IDirectiveRegistration>;
20
+ };
21
+ }
22
+ interface IOmniaUxExtendApiManifest {
23
+ directives: {
24
+ registrations: IExtendApiManifestWithConfiguration<string>;
25
+ };
26
+ }
27
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
package/ux/index.d.ts CHANGED
@@ -19,3 +19,4 @@ export * from "./VelcronDefinitionApi";
19
19
  export * from "./ThemingApi";
20
20
  export * from "./EnterprisePropertyToPropertySettingMappingApi";
21
21
  export * from "./MediaGalleryApi";
22
+ export { type Directives, type DirectiveDefinition, type IInternalDirectiveRegistration } from "./Directive";