@omnia/fx 7.0.458-dev → 7.0.460-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/internal-do-not-import-from-here/ux/app/management/core/loc.d.ts +2 -0
- package/internal-do-not-import-from-here/ux/app/management/tabs/templates/tabs/PropertiesTab.d.ts +5 -3
- package/internal-do-not-import-from-here/ux/app/management/tabs/templates/tabs/PropertyRow.d.ts +2 -1
- package/internal-do-not-import-from-here/ux/appprovisioning/components/AppInstanceEnterprisePropertiesVueComponent.d.ts +3 -0
- package/internal-do-not-import-from-here/ux/commandpalette/CommandPalette.css.d.ts +3 -0
- package/internal-do-not-import-from-here/ux/commandpalette/CommandScore.d.ts +1 -0
- package/internal-do-not-import-from-here/ux/commandpalette/commands/admin/TenantSettingsCommand.d.ts +2 -0
- package/internal-do-not-import-from-here/ux/commandpalette/commands/admin/index.d.ts +1 -0
- package/internal-do-not-import-from-here/ux/commandpalette/commands/content/BaconIpsumCommand.d.ts +2 -0
- package/internal-do-not-import-from-here/ux/commandpalette/commands/content/index.d.ts +1 -0
- package/internal-do-not-import-from-here/ux/commandpalette/commands/dns/AddDnsCommand.d.ts +2 -0
- package/internal-do-not-import-from-here/ux/commandpalette/commands/dns/index.d.ts +1 -0
- package/internal-do-not-import-from-here/ux/commandpalette/commands/index.d.ts +5 -0
- package/internal-do-not-import-from-here/ux/commandpalette/commands/serve/Models.d.ts +5 -0
- package/internal-do-not-import-from-here/ux/commandpalette/commands/serve/ServeCommand.d.ts +2 -0
- package/internal-do-not-import-from-here/ux/commandpalette/commands/serve/StopServeAllCommand.d.ts +2 -0
- package/internal-do-not-import-from-here/ux/commandpalette/commands/serve/StopServeCommand.d.ts +2 -0
- package/internal-do-not-import-from-here/ux/commandpalette/commands/serve/index.d.ts +4 -0
- package/internal-do-not-import-from-here/ux/commandpalette/commands/utils/ColorPickerCommand.d.ts +2 -0
- package/internal-do-not-import-from-here/ux/commandpalette/commands/utils/CreateGuidCommand.d.ts +2 -0
- package/internal-do-not-import-from-here/ux/commandpalette/commands/utils/index.d.ts +2 -0
- package/internal-do-not-import-from-here/ux/commandpalette/models/CommandDefinition.d.ts +9 -0
- package/internal-do-not-import-from-here/ux/commandpalette/models/CommandPaletteInputBox.d.ts +5 -0
- package/internal-do-not-import-from-here/ux/commandpalette/models/CommandPaletteListPickItem.d.ts +6 -0
- package/internal-do-not-import-from-here/ux/commandpalette/models/CommandPaletteMessage.d.ts +4 -0
- package/internal-do-not-import-from-here/ux/commandpalette/models/FuzzySearchable.d.ts +3 -0
- package/internal-do-not-import-from-here/ux/commandpalette/models/index.d.ts +5 -0
- package/internal-do-not-import-from-here/ux/commandpalette/stores/CommandStore.d.ts +40 -0
- package/internal-do-not-import-from-here/ux/commandpalette/stores/index.d.ts +1 -0
- package/internal-do-not-import-from-here/ux/dialog/Dialog.d.ts +4 -0
- package/internal-do-not-import-from-here/ux/dialog/IDialog.d.ts +4 -0
- package/internal-do-not-import-from-here/ux/richtexteditor/IRichTextEditor.d.ts +2 -0
- package/internal-do-not-import-from-here/ux/richtexteditor/RichTextEditor.d.ts +2 -0
- package/internal-do-not-import-from-here/ux/signin/Shared.d.ts +13 -0
- package/internal-do-not-import-from-here/ux/signin/loc/localize.d.ts +13 -31
- package/internal-do-not-import-from-here/ux/signin/omnia/Renderer.d.ts +31 -0
- package/internal-do-not-import-from-here/ux/signin/omnia/providers/MagicLinkProvider.d.ts +5 -0
- package/internal-do-not-import-from-here/ux/signin/omnia/providers/OtpProvider.d.ts +6 -0
- package/internal-do-not-import-from-here/ux/signin/omnia/providers/PasswordProvider.d.ts +6 -0
- package/internal-do-not-import-from-here/ux/signin/omnia/providers/index.d.ts +4 -0
- package/internal-do-not-import-from-here/ux/texttranslator/TextTranslator.d.ts +2 -1
- package/internal-do-not-import-from-here/ux/use/UseIndexedDb.d.ts +69 -0
- package/internal-do-not-import-from-here/ux/use/UseKeyboard.d.ts +40 -0
- package/internal-do-not-import-from-here/ux/use/index.d.ts +2 -0
- package/internal-do-not-import-from-here/wctypings.d.ts +1 -1
- package/package.json +2 -2
- package/internal-do-not-import-from-here/ux/signin/AuthProviders.d.ts +0 -11
- package/internal-do-not-import-from-here/ux/signin/providers/omnia/Renderer.d.ts +0 -15
- package/internal-do-not-import-from-here/ux/signin/providers/omnia/Shared.d.ts +0 -6
- package/internal-do-not-import-from-here/ux/signin/providers/omnia/methods/MagicLinkMethod.d.ts +0 -5
- package/internal-do-not-import-from-here/ux/signin/providers/omnia/methods/OtpMethod.d.ts +0 -6
- package/internal-do-not-import-from-here/ux/signin/providers/omnia/methods/PasswordMethod.d.ts +0 -6
- package/internal-do-not-import-from-here/ux/signin/providers/omnia/methods/index.d.ts +0 -3
package/internal-do-not-import-from-here/ux/app/management/tabs/templates/tabs/PropertiesTab.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { DateTimeValue, EnterprisePropertyDefinition, GuidValue, MultilingualString, OptionValue, PropertyIndexedType } from "@omnia/fx-models";
|
|
2
|
-
export interface
|
|
2
|
+
export interface DefaultEnterpriseProperty {
|
|
3
3
|
type: PropertyIndexedType;
|
|
4
4
|
title: MultilingualString;
|
|
5
5
|
id: GuidValue;
|
|
@@ -7,10 +7,12 @@ export interface DefaultEnterprisePropertyValue {
|
|
|
7
7
|
editElement: string;
|
|
8
8
|
contentProperty: EnterprisePropertyDefinition;
|
|
9
9
|
selectedOption: OptionValue;
|
|
10
|
+
hiddenNewForm: boolean;
|
|
11
|
+
hiddenEditForm: boolean;
|
|
10
12
|
}
|
|
11
|
-
export interface DateTimeEnterprisePropertyValue extends
|
|
13
|
+
export interface DateTimeEnterprisePropertyValue extends DefaultEnterpriseProperty, DateTimeValue {
|
|
12
14
|
}
|
|
13
|
-
export interface FixedDefaultEnterprisePropertyValue extends
|
|
15
|
+
export interface FixedDefaultEnterprisePropertyValue extends DefaultEnterpriseProperty {
|
|
14
16
|
display: boolean;
|
|
15
17
|
}
|
|
16
18
|
declare const _default: import("vue-tsx-support")._TsxComponentV3<import("vue").default<Record<string, any>, Record<string, any>, never, never, (event: string, ...args: any[]) => import("vue").default<Record<string, any>, Record<string, any>, never, never, any>>, {}, import("vue-tsx-support").PropsForOutside<{
|
package/internal-do-not-import-from-here/ux/app/management/tabs/templates/tabs/PropertyRow.d.ts
CHANGED
|
@@ -6,5 +6,6 @@ declare const _default: import("vue-tsx-support")._TsxComponentV3<import("vue").
|
|
|
6
6
|
defaultPropertySetValue: {};
|
|
7
7
|
appTemplate: AppTemplate;
|
|
8
8
|
templateProperties: EnterprisePropertyItemSettings[];
|
|
9
|
-
|
|
9
|
+
visibilitySettings: unknown;
|
|
10
|
+
}, "property" | "appTemplate" | "targetingProperties" | "defaultPropertySetValue" | "templateProperties" | "visibilitySettings">, any, any, any>;
|
|
10
11
|
export default _default;
|
|
@@ -14,6 +14,7 @@ interface AppInstanceEnterpriseProperty {
|
|
|
14
14
|
internalName: string;
|
|
15
15
|
editElement: string;
|
|
16
16
|
contentProperty: EnterprisePropertyDefinition;
|
|
17
|
+
hide: boolean;
|
|
17
18
|
}
|
|
18
19
|
export declare class AppInstanceEnterprisePropertiesVueComponent extends VueComponentBase<AppInstanceEnterprisePropertiesVueComponentProps> {
|
|
19
20
|
appInstance: AppInstance;
|
|
@@ -30,8 +31,10 @@ export declare class AppInstanceEnterprisePropertiesVueComponent extends VueComp
|
|
|
30
31
|
private templateProperties;
|
|
31
32
|
private leftColumnProperties;
|
|
32
33
|
private rightColumnProperties;
|
|
34
|
+
private propertiesVisibility;
|
|
33
35
|
private styles;
|
|
34
36
|
private loading;
|
|
37
|
+
private isNewAppInstance;
|
|
35
38
|
created(): void;
|
|
36
39
|
mounted(): void;
|
|
37
40
|
private loadData;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function commandScore(string: any, abbreviation: any): number;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./TenantSettingsCommand";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./BaconIpsumCommand";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./AddDnsCommand";
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { Future, GuidValue, IIcon } from "@omnia/fx-models";
|
|
2
|
+
import { FuzzySearchable } from "./FuzzySearchable";
|
|
3
|
+
export interface CommandDefinition extends FuzzySearchable {
|
|
4
|
+
id: GuidValue;
|
|
5
|
+
icon: IIcon;
|
|
6
|
+
onExecute: () => Future<void>;
|
|
7
|
+
}
|
|
8
|
+
export interface ICommandStore {
|
|
9
|
+
}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { Store } from "@omnia/fx/stores";
|
|
2
|
+
import { CommandDefinition, ICommandStore } from "../models/CommandDefinition";
|
|
3
|
+
import { CommandPaletteInputBox, CommandPaletteListPickItem, CommandPaletteMessage } from "../models";
|
|
4
|
+
export declare class CommandStore extends Store implements ICommandStore {
|
|
5
|
+
private commandsState;
|
|
6
|
+
private showInputBoxState;
|
|
7
|
+
private showMessageState;
|
|
8
|
+
private listPickerState;
|
|
9
|
+
private customComponentState;
|
|
10
|
+
private containerWidthState;
|
|
11
|
+
constructor();
|
|
12
|
+
/**
|
|
13
|
+
* Implementation of getters
|
|
14
|
+
*/
|
|
15
|
+
getters: {
|
|
16
|
+
allCommands: (search: string) => CommandDefinition[];
|
|
17
|
+
currentListPickItems: (search: string) => CommandPaletteListPickItem<any>[];
|
|
18
|
+
inputBox: () => CommandPaletteInputBox;
|
|
19
|
+
message: () => CommandPaletteMessage;
|
|
20
|
+
component: () => unknown;
|
|
21
|
+
width: () => number;
|
|
22
|
+
};
|
|
23
|
+
/**
|
|
24
|
+
* Implementation of mutations
|
|
25
|
+
*/
|
|
26
|
+
mutations: {
|
|
27
|
+
registerCommand: import("@omnia/fx/stores").StoreMutation<(command: CommandDefinition) => void, (command: CommandDefinition) => import("@omnia/fx-models").IMessageBusSubscriptionHandler>;
|
|
28
|
+
setInputBoxResult: import("@omnia/fx/stores").StoreMutation<(value: string) => void, (value: string) => import("@omnia/fx-models").IMessageBusSubscriptionHandler>;
|
|
29
|
+
setListPickerResult: import("@omnia/fx/stores").StoreMutation<(<T>(value: CommandPaletteListPickItem<T>) => void), (value: CommandPaletteListPickItem<unknown>) => import("@omnia/fx-models").IMessageBusSubscriptionHandler>;
|
|
30
|
+
showMessage: import("@omnia/fx/stores").StoreMutation<(message: CommandPaletteMessage) => void, (message: CommandPaletteMessage) => import("@omnia/fx-models").IMessageBusSubscriptionHandler>;
|
|
31
|
+
resetState: import("@omnia/fx/stores").StoreMutation<() => void, () => import("@omnia/fx-models").IMessageBusSubscriptionHandler>;
|
|
32
|
+
};
|
|
33
|
+
actions: {
|
|
34
|
+
showInputBox: import("@omnia/fx/stores").StoreAction<unknown, (title: string) => void, (result: CommandPaletteInputBox, title: string) => void, (failureReason: any, title: string) => void, (title: string) => Promise<CommandPaletteInputBox>>;
|
|
35
|
+
showListPicker: import("@omnia/fx/stores").StoreAction<unknown, (pickerItems: CommandPaletteListPickItem<unknown>[]) => void, (result: CommandPaletteListPickItem<unknown>, pickerItems: CommandPaletteListPickItem<unknown>[]) => void, (failureReason: any, pickerItems: CommandPaletteListPickItem<unknown>[]) => void, <T>(pickerItems: CommandPaletteListPickItem<T>[]) => Promise<CommandPaletteListPickItem<T>>>;
|
|
36
|
+
showComponent: import("@omnia/fx/stores").StoreAction<unknown, (component: unknown, widht: number) => void, (result: void, component: unknown, widht: number) => void, (failureReason: any, component: unknown, widht: number) => void, (component: unknown, widht: number) => Promise<void>>;
|
|
37
|
+
};
|
|
38
|
+
onActivated(): void;
|
|
39
|
+
onDisposing(): void;
|
|
40
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./CommandStore";
|
|
@@ -22,6 +22,7 @@ declare const dialogComponent: (import("vue").VueConstructor<import("vue-tsx-sup
|
|
|
22
22
|
onClickOutside: (closeDialog: (prompt: boolean, title?: string) => void, event?: Event) => void;
|
|
23
23
|
noClickAnimation: boolean;
|
|
24
24
|
renderBody: () => JSX.Element;
|
|
25
|
+
eager: boolean;
|
|
25
26
|
}, never>, any, any, any>> & {
|
|
26
27
|
propsDefinition: import("vue-tsx-support").PropsForOutside<{
|
|
27
28
|
contentClass: string;
|
|
@@ -46,6 +47,7 @@ declare const dialogComponent: (import("vue").VueConstructor<import("vue-tsx-sup
|
|
|
46
47
|
onClickOutside: (closeDialog: (prompt: boolean, title?: string) => void, event?: Event) => void;
|
|
47
48
|
noClickAnimation: boolean;
|
|
48
49
|
renderBody: () => JSX.Element;
|
|
50
|
+
eager: boolean;
|
|
49
51
|
}, never>;
|
|
50
52
|
}) | (import("vue").VueConstructor<import("vue-tsx-support")._TsxComponentInstanceV3<import("vue/types/umd") & import("vue").ShallowUnwrapRef<() => VueTsxSupport.JSX.Element>, {}, import("vue-tsx-support").PropsForOutside<{
|
|
51
53
|
contentClass: string;
|
|
@@ -70,6 +72,7 @@ declare const dialogComponent: (import("vue").VueConstructor<import("vue-tsx-sup
|
|
|
70
72
|
onClickOutside: (closeDialog: (prompt: boolean, title?: string) => void, event?: Event) => void;
|
|
71
73
|
noClickAnimation: boolean;
|
|
72
74
|
renderBody: () => JSX.Element;
|
|
75
|
+
eager: boolean;
|
|
73
76
|
}, never>, any, any, any>> & {
|
|
74
77
|
propsDefinition: import("vue-tsx-support").PropsForOutside<{
|
|
75
78
|
contentClass: string;
|
|
@@ -94,6 +97,7 @@ declare const dialogComponent: (import("vue").VueConstructor<import("vue-tsx-sup
|
|
|
94
97
|
onClickOutside: (closeDialog: (prompt: boolean, title?: string) => void, event?: Event) => void;
|
|
95
98
|
noClickAnimation: boolean;
|
|
96
99
|
renderBody: () => JSX.Element;
|
|
100
|
+
eager: boolean;
|
|
97
101
|
}, never>;
|
|
98
102
|
});
|
|
99
103
|
export default dialogComponent;
|
|
@@ -24,6 +24,10 @@ export interface IDialogProperties {
|
|
|
24
24
|
dark?: boolean;
|
|
25
25
|
hideCloseButton?: boolean;
|
|
26
26
|
noClickAnimation?: boolean;
|
|
27
|
+
/**
|
|
28
|
+
* Force the dialog to render on mounted (e.g rendered but not shown)
|
|
29
|
+
*/
|
|
30
|
+
eager?: boolean;
|
|
27
31
|
}
|
|
28
32
|
export interface IDialogSlots {
|
|
29
33
|
default: () => void;
|
|
@@ -56,6 +56,7 @@ export interface IRichTextEditor {
|
|
|
56
56
|
onContentDataChange?: (richtextHelper: RichTextContentHelper) => void;
|
|
57
57
|
onInstanceCreated?: (instance: IRichTextEditorInstance) => void;
|
|
58
58
|
onBlur?: () => void;
|
|
59
|
+
onFocus?: () => void;
|
|
59
60
|
/**
|
|
60
61
|
* Configure all extesions before passing into RTE
|
|
61
62
|
* @param {RichTextEditorExtension[]} currentExtensions The first number to add.
|
|
@@ -72,6 +73,7 @@ export interface IRichTextEditor {
|
|
|
72
73
|
autoFocus?: boolean;
|
|
73
74
|
ariaDescribedby?: string;
|
|
74
75
|
ariaInvalid?: boolean;
|
|
76
|
+
disableAutofocus?: boolean;
|
|
75
77
|
}
|
|
76
78
|
declare global {
|
|
77
79
|
namespace VueTsxSupport.JSX {
|
|
@@ -15,6 +15,7 @@ export default class RichTextEditor extends VueComponentBase implements IWebComp
|
|
|
15
15
|
onContentDataChange?: (richtextHelper: RichTextContentHelper) => void;
|
|
16
16
|
onInstanceCreated?: (inst: IRichTextEditorInstance) => void;
|
|
17
17
|
onBlur?: () => void;
|
|
18
|
+
onFocus?: () => void;
|
|
18
19
|
placeholder: RichTextEditorPlaceHolder;
|
|
19
20
|
styles?: typeof RichTextEditorStyles;
|
|
20
21
|
disabled: boolean;
|
|
@@ -22,6 +23,7 @@ export default class RichTextEditor extends VueComponentBase implements IWebComp
|
|
|
22
23
|
bodyClass: string;
|
|
23
24
|
resetContent?: boolean;
|
|
24
25
|
autoFocus?: boolean;
|
|
26
|
+
disableAutofocus?: boolean;
|
|
25
27
|
mode: RichTextModes;
|
|
26
28
|
onConfigureExtensions?: (currentExtensions: Array<RichTextEditorExtension>, registrationResolver?: (registration: RichTextEditorExtensionRegistration) => RichTextEditorExtension, extensionHelper?: IRichTextEditorExtensionHelper) => Array<RichTextEditorExtension>;
|
|
27
29
|
onConfiguredExtensions?: (currentExtensions: Array<RichTextEditorExtension>, registrationResolver?: (registration: RichTextEditorExtensionRegistration) => RichTextEditorExtension) => Promise<Array<RichTextEditorExtension>>;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { BuiltInAuthType } from "@omnia/fx-models";
|
|
2
|
+
export interface BuiltInAuthProviderClient {
|
|
3
|
+
title: string;
|
|
4
|
+
icon: string;
|
|
5
|
+
type: BuiltInAuthType;
|
|
6
|
+
execute: BuiltInAuthProviderExecution;
|
|
7
|
+
}
|
|
8
|
+
export interface BuiltInAuthProviderExecution<T extends BuiltInAuthProviderMetadata = BuiltInAuthProviderMetadata> {
|
|
9
|
+
(metadata: BuiltInAuthProviderMetadata, next: (metadata: T) => Promise<boolean>): Promise<() => JSX.Element>;
|
|
10
|
+
}
|
|
11
|
+
export interface BuiltInAuthProviderMetadata {
|
|
12
|
+
uniqueName: string;
|
|
13
|
+
}
|
|
@@ -1,46 +1,28 @@
|
|
|
1
1
|
export declare module SignInLocalization {
|
|
2
2
|
const namespace = "Omnia.SignIn";
|
|
3
3
|
interface locInterface {
|
|
4
|
-
BrowserTabTitle: string;
|
|
5
4
|
HowToLogin: string;
|
|
6
|
-
PhoneNumber: string;
|
|
7
|
-
PhoneNumberDescription: string;
|
|
8
|
-
AzureAD: string;
|
|
9
|
-
AzureADDescription: string;
|
|
10
|
-
OmniaDirectory: string;
|
|
11
|
-
OmniaDirectoryDescription: string;
|
|
12
|
-
RememberMySelection: string;
|
|
13
|
-
CommonFailureMessage: string;
|
|
14
|
-
InvalidParingCodeMessage: string;
|
|
15
|
-
OneTimePassword: string;
|
|
16
|
-
UserAndOneTimePassword: string;
|
|
17
|
-
LoginUsePhoneNumber: string;
|
|
18
|
-
Continue: string;
|
|
19
|
-
Back: string;
|
|
20
|
-
EnterCode: string;
|
|
21
5
|
Login: string;
|
|
22
6
|
SendMagicLink: string;
|
|
23
7
|
MagicLinkValidMessage: string;
|
|
24
8
|
MagicLinkValidTimeMessage: string;
|
|
25
|
-
NotReceiveCode: string;
|
|
26
|
-
TryAgainReceiveCode: string;
|
|
27
|
-
ResendPairingCode: string;
|
|
28
|
-
MakeSureYourPhoneNumber: string;
|
|
29
|
-
ScanQRCode: string;
|
|
30
|
-
EnterFollowingCode: string;
|
|
31
|
-
EnterDigitCode: string;
|
|
32
|
-
EnterUserName: string;
|
|
33
|
-
Success: string;
|
|
34
|
-
CloseWindow: string;
|
|
35
|
-
LoginUseOneTimePassword: string;
|
|
36
|
-
Country: string;
|
|
37
|
-
PairingCode: string;
|
|
38
9
|
Password: {
|
|
39
10
|
Title: string;
|
|
40
11
|
Invalid: string;
|
|
41
12
|
};
|
|
42
|
-
|
|
43
|
-
RedirectToAzureAd: string;
|
|
13
|
+
UniqueName: string;
|
|
44
14
|
Code: string;
|
|
15
|
+
RememberMe: string;
|
|
16
|
+
BuiltInProvider: {
|
|
17
|
+
Password: {
|
|
18
|
+
Title: string;
|
|
19
|
+
};
|
|
20
|
+
OneTimePassword: {
|
|
21
|
+
Title: string;
|
|
22
|
+
};
|
|
23
|
+
MagicLink: {
|
|
24
|
+
Title: string;
|
|
25
|
+
};
|
|
26
|
+
};
|
|
45
27
|
}
|
|
46
28
|
}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { BuiltInAuthType, BuiltInAuthFlow } from "@omnia/fx-models";
|
|
2
|
+
declare const _default: (import("vue").VueConstructor<import("vue-tsx-support")._TsxComponentInstanceV3<import("vue/types/umd"), {}, import("vue-tsx-support").PropsForOutside<{
|
|
3
|
+
flows: BuiltInAuthFlow[];
|
|
4
|
+
uniqueName: string;
|
|
5
|
+
back: () => void;
|
|
6
|
+
onProviderSelected: (authType: BuiltInAuthType) => void;
|
|
7
|
+
memorizedProvider: BuiltInAuthType;
|
|
8
|
+
}, "flows" | "uniqueName" | "back" | "onProviderSelected">, any, any, any>> & {
|
|
9
|
+
propsDefinition: import("vue-tsx-support").PropsForOutside<{
|
|
10
|
+
flows: BuiltInAuthFlow[];
|
|
11
|
+
uniqueName: string;
|
|
12
|
+
back: () => void;
|
|
13
|
+
onProviderSelected: (authType: BuiltInAuthType) => void;
|
|
14
|
+
memorizedProvider: BuiltInAuthType;
|
|
15
|
+
}, "flows" | "uniqueName" | "back" | "onProviderSelected">;
|
|
16
|
+
}) | (import("vue").VueConstructor<import("vue-tsx-support")._TsxComponentInstanceV3<import("vue/types/umd") & import("vue").ShallowUnwrapRef<() => VueTsxSupport.JSX.Element>, {}, import("vue-tsx-support").PropsForOutside<{
|
|
17
|
+
flows: BuiltInAuthFlow[];
|
|
18
|
+
uniqueName: string;
|
|
19
|
+
back: () => void;
|
|
20
|
+
onProviderSelected: (authType: BuiltInAuthType) => void;
|
|
21
|
+
memorizedProvider: BuiltInAuthType;
|
|
22
|
+
}, "flows" | "uniqueName" | "back" | "onProviderSelected">, any, any, any>> & {
|
|
23
|
+
propsDefinition: import("vue-tsx-support").PropsForOutside<{
|
|
24
|
+
flows: BuiltInAuthFlow[];
|
|
25
|
+
uniqueName: string;
|
|
26
|
+
back: () => void;
|
|
27
|
+
onProviderSelected: (authType: BuiltInAuthType) => void;
|
|
28
|
+
memorizedProvider: BuiltInAuthType;
|
|
29
|
+
}, "flows" | "uniqueName" | "back" | "onProviderSelected">;
|
|
30
|
+
});
|
|
31
|
+
export default _default;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { BuiltInAuthProviderClient, BuiltInAuthProviderMetadata } from "../../Shared";
|
|
2
|
+
export declare const useProvider: () => BuiltInAuthProviderClient;
|
|
3
|
+
export declare const MagicLinkProvider: import("vue-tsx-support")._TsxComponentV3<import("vue").default<Record<string, any>, Record<string, any>, never, never, (event: string, ...args: any[]) => import("vue").default<Record<string, any>, Record<string, any>, never, never, any>>, {}, import("vue-tsx-support").PropsForOutside<{
|
|
4
|
+
metadata: BuiltInAuthProviderMetadata;
|
|
5
|
+
}, "metadata">, any, any, any>;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { BuiltInAuthProviderClient, BuiltInAuthProviderMetadata } from "../../Shared";
|
|
2
|
+
export declare const useProvider: () => BuiltInAuthProviderClient;
|
|
3
|
+
export declare const OneTimePasswordProvider: import("vue-tsx-support")._TsxComponentV3<import("vue").default<Record<string, any>, Record<string, any>, never, never, (event: string, ...args: any[]) => import("vue").default<Record<string, any>, Record<string, any>, never, never, any>>, {}, import("vue-tsx-support").PropsForOutside<{
|
|
4
|
+
metadata: BuiltInAuthProviderMetadata;
|
|
5
|
+
next: (metadata: BuiltInAuthProviderMetadata) => Promise<boolean>;
|
|
6
|
+
}, "metadata" | "next">, any, any, any>;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { BuiltInAuthProviderClient, BuiltInAuthProviderMetadata } from "../../Shared";
|
|
2
|
+
export declare const useProvider: () => BuiltInAuthProviderClient;
|
|
3
|
+
export declare const PasswordProvider: import("vue-tsx-support")._TsxComponentV3<import("vue").default<Record<string, any>, Record<string, any>, never, never, (event: string, ...args: any[]) => import("vue").default<Record<string, any>, Record<string, any>, never, never, any>>, {}, import("vue-tsx-support").PropsForOutside<{
|
|
4
|
+
metadata: BuiltInAuthProviderMetadata;
|
|
5
|
+
next: (metadata: BuiltInAuthProviderMetadata) => Promise<boolean>;
|
|
6
|
+
}, "metadata" | "next">, any, any, any>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { IWebComponentInstance, SubscriptionHandler } from "../..";
|
|
2
2
|
import { ITextTranslator } from "./ITextTranslator";
|
|
3
|
-
import { Language, IIcon } from "../../models";
|
|
3
|
+
import { Language, IIcon, LanguageTag } from "../../models";
|
|
4
4
|
import { OmniaTheming, VueComponentBase } from "..";
|
|
5
5
|
import { MultilingualStore } from "../../stores";
|
|
6
6
|
import { TextTranslatorLocalization } from "./loc/localize";
|
|
@@ -8,6 +8,7 @@ import { LocalizationService, TranslationService } from "../../services";
|
|
|
8
8
|
import "./TextTranslator.css";
|
|
9
9
|
export declare class TextTranslator extends VueComponentBase implements IWebComponentInstance, ITextTranslator {
|
|
10
10
|
text: string;
|
|
11
|
+
srcLanguage?: LanguageTag;
|
|
11
12
|
onTranslateCompleted: (result: string) => void;
|
|
12
13
|
forceTenantLanguages: boolean;
|
|
13
14
|
fabButton: boolean;
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
import { Future } from "@omnia/fx-models";
|
|
2
|
+
import { Ref } from "vue";
|
|
3
|
+
/**
|
|
4
|
+
* Async api for working with indexedDB. Remember to await the useIndexedDb since its async
|
|
5
|
+
* @export
|
|
6
|
+
* @param {string} name
|
|
7
|
+
* @param {string} table
|
|
8
|
+
* @return {*} {Future<IndexedDbApi>}
|
|
9
|
+
*/
|
|
10
|
+
export declare function useIndexedDb(name: string, table: string): Future<IndexedDbApi>;
|
|
11
|
+
/**
|
|
12
|
+
*
|
|
13
|
+
*
|
|
14
|
+
* @export
|
|
15
|
+
* @interface IndexedDbApi
|
|
16
|
+
*/
|
|
17
|
+
export interface IndexedDbApi {
|
|
18
|
+
/**
|
|
19
|
+
* Current database instance
|
|
20
|
+
* @type {(IDBDatabase | null)}
|
|
21
|
+
* @memberof IndexedDbApi
|
|
22
|
+
*/
|
|
23
|
+
currentDb: IDBDatabase | null;
|
|
24
|
+
/**
|
|
25
|
+
* Current database name
|
|
26
|
+
* @type {Ref<string>}
|
|
27
|
+
* @memberof IndexedDbApi
|
|
28
|
+
*/
|
|
29
|
+
currentDbName: Ref<string>;
|
|
30
|
+
/**
|
|
31
|
+
* Current database version
|
|
32
|
+
* @type {Ref<number>}
|
|
33
|
+
* @memberof IndexedDbApi
|
|
34
|
+
*/
|
|
35
|
+
currentDbVersion: Ref<number>;
|
|
36
|
+
/**
|
|
37
|
+
* Gets the data by key from the database
|
|
38
|
+
* @memberof IndexedDbApi
|
|
39
|
+
*/
|
|
40
|
+
get: <T>(key: IDBValidKey) => Promise<T>;
|
|
41
|
+
/**
|
|
42
|
+
* Gets all the data from the database
|
|
43
|
+
* @memberof IndexedDbApi
|
|
44
|
+
*/
|
|
45
|
+
getAll: <T>() => Promise<Map<IDBValidKey, T>>;
|
|
46
|
+
/**
|
|
47
|
+
* Adds the key to the database if the key exists it will throw exception
|
|
48
|
+
* use upsert for add or update operations
|
|
49
|
+
* @memberof IndexedDbApi
|
|
50
|
+
*/
|
|
51
|
+
add: <T>(key: IDBValidKey, data: T) => Promise<unknown>;
|
|
52
|
+
/**
|
|
53
|
+
* Does an add or update depending on if the key exists
|
|
54
|
+
* @memberof IndexedDbApi
|
|
55
|
+
*/
|
|
56
|
+
upsert: <T>(key: IDBValidKey, data: T) => Promise<unknown>;
|
|
57
|
+
/**
|
|
58
|
+
* Removes the key from the database
|
|
59
|
+
* @memberof IndexedDbApi
|
|
60
|
+
*/
|
|
61
|
+
remove: (key: IDBValidKey) => Promise<unknown>;
|
|
62
|
+
/**
|
|
63
|
+
* Closes the database connection and dispsoses the instance from the cache
|
|
64
|
+
* Note if you have multiple tables opened on the same database it will close all instances
|
|
65
|
+
* this means you have to call useIndexedDb again after this
|
|
66
|
+
* @memberof IndexedDbApi
|
|
67
|
+
*/
|
|
68
|
+
close: () => void;
|
|
69
|
+
}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import type { MaybeComputedRef } from "./Types";
|
|
2
|
+
export declare type KeyPredicate = (event: KeyboardEvent) => boolean;
|
|
3
|
+
export declare type KeyFilter = true | string | string[] | KeyPredicate;
|
|
4
|
+
export declare type KeyStrokeEventName = "keydown" | "keypress" | "keyup";
|
|
5
|
+
export interface UseKeyboardOptions {
|
|
6
|
+
eventName?: KeyStrokeEventName;
|
|
7
|
+
target?: MaybeComputedRef<EventTarget>;
|
|
8
|
+
passive?: boolean;
|
|
9
|
+
}
|
|
10
|
+
export declare function useKeyboard(key: KeyFilter, handler: (event: KeyboardEvent) => void, options?: UseKeyboardOptions): () => void;
|
|
11
|
+
export declare function useKeyboard(handler: (event: KeyboardEvent) => void, options?: UseKeyboardOptions): () => void;
|
|
12
|
+
/**
|
|
13
|
+
* Listen for keyboard keys being stroked.
|
|
14
|
+
*/
|
|
15
|
+
export declare function useKeyboard(key: KeyFilter, handler: (event: KeyboardEvent) => void, options?: UseKeyboardOptions): () => void;
|
|
16
|
+
export declare function useKeyboard(handler: (event: KeyboardEvent) => void, options?: UseKeyboardOptions): () => void;
|
|
17
|
+
/**
|
|
18
|
+
* Listen to the keydown event of the given key.
|
|
19
|
+
*
|
|
20
|
+
* @param key
|
|
21
|
+
* @param handler
|
|
22
|
+
* @param options
|
|
23
|
+
*/
|
|
24
|
+
export declare function onKeyDown(key: KeyFilter, handler: (event: KeyboardEvent) => void, options?: Omit<UseKeyboardOptions, "eventName">): () => void;
|
|
25
|
+
/**
|
|
26
|
+
* Listen to the keypress event of the given key.
|
|
27
|
+
*
|
|
28
|
+
* @param key
|
|
29
|
+
* @param handler
|
|
30
|
+
* @param options
|
|
31
|
+
*/
|
|
32
|
+
export declare function onKeyPressed(key: KeyFilter, handler: (event: KeyboardEvent) => void, options?: Omit<UseKeyboardOptions, "eventName">): () => void;
|
|
33
|
+
/**
|
|
34
|
+
* Listen to the keyup event of the given key.
|
|
35
|
+
*
|
|
36
|
+
* @param key
|
|
37
|
+
* @param handler
|
|
38
|
+
* @param options
|
|
39
|
+
*/
|
|
40
|
+
export declare function onKeyUp(key: KeyFilter, handler: (event: KeyboardEvent) => void, options?: Omit<UseKeyboardOptions, "eventName">): () => void;
|
|
@@ -86,7 +86,7 @@ import wc646cfdda09044ebc9339f2ac31318512 from './ux/properties/legacy-enterpris
|
|
|
86
86
|
import wc332ae4244d4e4b0296befadb2ad2ac6b from './ux/properties/legacy-enterprise-property/LegacyEnterprisePropertyEditor';
|
|
87
87
|
import wc58330f37503947799af05363e58bda3c from './ux/richtexteditor/Emoticon/EmoticonComponent';
|
|
88
88
|
import wce4b25c06803a417a9c4aa4b7280a599b from './ux/signin/SignIn';
|
|
89
|
-
import wcbc3b9409639d45829a6e58a4295bc470 from './ux/signin/
|
|
89
|
+
import wcbc3b9409639d45829a6e58a4295bc470 from './ux/signin/omnia/Renderer';
|
|
90
90
|
import wcf297290b5ea4409a9738ca880f1ea612 from './ux/signout/SignOut';
|
|
91
91
|
import wc0beecee9c6ce42c88bd468bde23f9f32 from './ux/user/components/PropertyConfigurationRenderer';
|
|
92
92
|
import wc8f4747f0b0884fd2a3b60baef21b67fc from './ux/user/components/UserPropertyProviderDisplay';
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@omnia/fx",
|
|
3
3
|
"license": "MIT",
|
|
4
|
-
"version": "7.0.
|
|
4
|
+
"version": "7.0.460-dev",
|
|
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": "7.0.
|
|
23
|
+
"@omnia/fx-models": "7.0.460-dev",
|
|
24
24
|
"@microsoft/signalr": "6.0.1",
|
|
25
25
|
"broadcast-channel": "4.8.0",
|
|
26
26
|
"dayjs": "1.10.7",
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
export interface SignInOptions {
|
|
2
|
-
rememberSelection: boolean;
|
|
3
|
-
backToSelection: () => void;
|
|
4
|
-
}
|
|
5
|
-
export interface AuthProvider {
|
|
6
|
-
title: string;
|
|
7
|
-
description: string;
|
|
8
|
-
icon: () => JSX.Element;
|
|
9
|
-
setup: (options: SignInOptions) => () => JSX.Element;
|
|
10
|
-
}
|
|
11
|
-
export declare function useAuthProviders(): Array<AuthProvider>;
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import type { SignInOptions } from "../../AuthProviders";
|
|
2
|
-
declare const _default: (import("vue").VueConstructor<import("vue-tsx-support")._TsxComponentInstanceV3<import("vue/types/umd"), {}, import("vue-tsx-support").PropsForOutside<{
|
|
3
|
-
options: SignInOptions;
|
|
4
|
-
}, never>, any, any, any>> & {
|
|
5
|
-
propsDefinition: import("vue-tsx-support").PropsForOutside<{
|
|
6
|
-
options: SignInOptions;
|
|
7
|
-
}, never>;
|
|
8
|
-
}) | (import("vue").VueConstructor<import("vue-tsx-support")._TsxComponentInstanceV3<import("vue/types/umd") & import("vue").ShallowUnwrapRef<() => VueTsxSupport.JSX.Element>, {}, import("vue-tsx-support").PropsForOutside<{
|
|
9
|
-
options: SignInOptions;
|
|
10
|
-
}, never>, any, any, any>> & {
|
|
11
|
-
propsDefinition: import("vue-tsx-support").PropsForOutside<{
|
|
12
|
-
options: SignInOptions;
|
|
13
|
-
}, never>;
|
|
14
|
-
});
|
|
15
|
-
export default _default;
|
package/internal-do-not-import-from-here/ux/signin/providers/omnia/methods/MagicLinkMethod.d.ts
DELETED
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import { AuthMethodExecution, AuthMethodMetadata } from "../Shared";
|
|
2
|
-
export declare const magicLinkMethod: AuthMethodExecution;
|
|
3
|
-
export declare const MagicLinkMethod: import("vue-tsx-support")._TsxComponentV3<import("vue").default<Record<string, any>, Record<string, any>, never, never, (event: string, ...args: any[]) => import("vue").default<Record<string, any>, Record<string, any>, never, never, any>>, {}, import("vue-tsx-support").PropsForOutside<{
|
|
4
|
-
metadata: AuthMethodMetadata;
|
|
5
|
-
}, "metadata">, any, any, any>;
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import { AuthMethodExecution, AuthMethodMetadata } from "../Shared";
|
|
2
|
-
export declare const optMethod: AuthMethodExecution;
|
|
3
|
-
export declare const OtpMethod: import("vue-tsx-support")._TsxComponentV3<import("vue").default<Record<string, any>, Record<string, any>, never, never, (event: string, ...args: any[]) => import("vue").default<Record<string, any>, Record<string, any>, never, never, any>>, {}, import("vue-tsx-support").PropsForOutside<{
|
|
4
|
-
metadata: AuthMethodMetadata;
|
|
5
|
-
next: (metadata: AuthMethodMetadata) => Promise<boolean>;
|
|
6
|
-
}, "metadata" | "next">, any, any, any>;
|
package/internal-do-not-import-from-here/ux/signin/providers/omnia/methods/PasswordMethod.d.ts
DELETED
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import { AuthMethodExecution, AuthMethodMetadata } from "../Shared";
|
|
2
|
-
export declare const passwordMethod: AuthMethodExecution;
|
|
3
|
-
export declare const PasswordMethod: import("vue-tsx-support")._TsxComponentV3<import("vue").default<Record<string, any>, Record<string, any>, never, never, (event: string, ...args: any[]) => import("vue").default<Record<string, any>, Record<string, any>, never, never, any>>, {}, import("vue-tsx-support").PropsForOutside<{
|
|
4
|
-
metadata: AuthMethodMetadata;
|
|
5
|
-
next: (metadata: AuthMethodMetadata) => Promise<boolean>;
|
|
6
|
-
}, "metadata" | "next">, any, any, any>;
|