@omnia/fx 8.0.12-vnext → 8.0.13-vnext
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.
@@ -90,13 +90,19 @@ class Future extends Promise {
|
|
90
90
|
}
|
91
91
|
get [Symbol.toStringTag]() {
|
92
92
|
// return Object value to make vue can build get/set reactive.
|
93
|
-
return "Object";
|
93
|
+
// return "Object";
|
94
|
+
//<<vue3>> back to normal because vue 3 use native proxy.
|
95
|
+
return "Future";
|
94
96
|
}
|
95
97
|
static new() {
|
96
98
|
return new Future(() => { });
|
97
99
|
}
|
98
100
|
}
|
99
101
|
exports.Future = Future;
|
102
|
+
// Future.prototype["promise_then"] = Promise.prototype.then;
|
103
|
+
// Future.prototype["then"] = function (resolve, reject) {
|
104
|
+
// return Future.prototype["promise_then"].apply(this, arguments);
|
105
|
+
// };
|
100
106
|
class ResponsePromise extends Promise {
|
101
107
|
constructor(executor) {
|
102
108
|
const onCancel = (cb) => {
|
@@ -1,9 +1,10 @@
|
|
1
|
-
import { VNode, VNodeProps, HTMLAttributes, VNodeArrayChildren } from "vue";
|
1
|
+
import { VNode, VNodeProps, HTMLAttributes, VNodeArrayChildren, Events } from "vue";
|
2
2
|
import { Vue } from "./decorators";
|
3
3
|
import type { IComponentValidationEnabled, IValidator } from "./validation/IComponentValidationEnabled";
|
4
4
|
import { ConfirmDialogResponse, ConfirmDialogOptions } from "./confirmdialog/IVueConfirmDialog";
|
5
5
|
import { ITheming } from "./theming";
|
6
6
|
import * as models from "../models";
|
7
|
+
import { GuidValue } from "../models";
|
7
8
|
type VuetifyThemeItem = string | number | {
|
8
9
|
base: string | number;
|
9
10
|
lighten5: string | number;
|
@@ -117,18 +118,18 @@ export interface IVueComponentBase<Props = VueComponentBaseProps, EventsWithOn =
|
|
117
118
|
};
|
118
119
|
createVueNode(element: string | models.GuidValue, props?: RawProps, children?: RawChildren, onComponentCreated?: (instance: any) => void): VNode;
|
119
120
|
}
|
120
|
-
export
|
121
|
+
export type VueComponentBaseProps = Pick<HTMLAttributes, "id" | "class" | "style" | "onClick"> & Pick<EventHandlers<Events>, "onKeydown" | "onKeyup" | "onKeypress"> & {
|
121
122
|
themeTargetId?: string | models.GuidValue;
|
122
123
|
themeDefinitionId?: string | models.GuidValue;
|
123
124
|
themeDefinition?: object;
|
124
125
|
onComponentCreated?: (instance: any) => void;
|
125
126
|
color?: string;
|
126
127
|
useValidator?: IValidator;
|
127
|
-
key?: string;
|
128
|
+
key?: string | number | symbol | GuidValue;
|
128
129
|
$children?: any;
|
129
130
|
ref?: string;
|
130
131
|
slot?: string;
|
131
|
-
}
|
132
|
+
};
|
132
133
|
export interface VueComponentBaseEvents {
|
133
134
|
}
|
134
135
|
export declare class VueComponentBase<Props = VueComponentBaseProps | {}, EventsWithOn = VueComponentBaseEvents, ScopedSlotArgs = {}> extends VueTsx<Props, EventsWithOn, ScopedSlotArgs> implements IVueComponentBase<Props, EventsWithOn, ScopedSlotArgs>, IComponentValidationEnabled {
|
package/package.json
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
{
|
2
2
|
"name": "@omnia/fx",
|
3
3
|
"license": "MIT",
|
4
|
-
"version": "8.0.
|
4
|
+
"version": "8.0.13-vnext",
|
5
5
|
"description": "Provide Omnia Fx typings and tooling for clientside Omnia development.",
|
6
6
|
"scripts": {
|
7
7
|
"test": "echo \"Error: no test specified\" && exit 1",
|
@@ -20,7 +20,7 @@
|
|
20
20
|
],
|
21
21
|
"author": "Precio Fishbone",
|
22
22
|
"dependencies": {
|
23
|
-
"@omnia/fx-models": "8.0.
|
23
|
+
"@omnia/fx-models": "8.0.13-vnext",
|
24
24
|
"@microsoft/signalr": "6.0.1",
|
25
25
|
"broadcast-channel": "4.8.0",
|
26
26
|
"dayjs": "1.10.7",
|