@kwiz/common 1.0.132 → 1.0.133
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 +1 -1
- package/.github/workflows/npm-publish.yml +0 -24
- package/src/_dependencies.ts +0 -13
- package/src/config.ts +0 -19
- package/src/exports-index.ts +0 -4
- package/src/helpers/Guid.ts +0 -182
- package/src/helpers/base64.ts +0 -174
- package/src/helpers/browser.test.js +0 -13
- package/src/helpers/browser.ts +0 -1505
- package/src/helpers/browserinfo.ts +0 -293
- package/src/helpers/collections.base.test.js +0 -26
- package/src/helpers/collections.base.ts +0 -438
- package/src/helpers/collections.ts +0 -108
- package/src/helpers/color.ts +0 -55
- package/src/helpers/cookies.ts +0 -60
- package/src/helpers/date.test.js +0 -120
- package/src/helpers/date.ts +0 -189
- package/src/helpers/debug.ts +0 -187
- package/src/helpers/diagrams.ts +0 -44
- package/src/helpers/emails.ts +0 -7
- package/src/helpers/eval.ts +0 -5
- package/src/helpers/exports-index.ts +0 -30
- package/src/helpers/file.test.js +0 -51
- package/src/helpers/file.ts +0 -64
- package/src/helpers/flatted.ts +0 -150
- package/src/helpers/functions.ts +0 -17
- package/src/helpers/graph/calendar.types.ts +0 -11
- package/src/helpers/graph/exports-index.ts +0 -1
- package/src/helpers/http.ts +0 -70
- package/src/helpers/images.ts +0 -23
- package/src/helpers/json.ts +0 -45
- package/src/helpers/md5.ts +0 -190
- package/src/helpers/objects.test.js +0 -34
- package/src/helpers/objects.ts +0 -275
- package/src/helpers/promises.test.js +0 -38
- package/src/helpers/promises.ts +0 -166
- package/src/helpers/random.ts +0 -27
- package/src/helpers/scheduler/exports-index.ts +0 -1
- package/src/helpers/scheduler/scheduler.test.js +0 -104
- package/src/helpers/scheduler/scheduler.ts +0 -132
- package/src/helpers/sharepoint.ts +0 -797
- package/src/helpers/strings.test.js +0 -123
- package/src/helpers/strings.ts +0 -338
- package/src/helpers/typecheckers.test.js +0 -35
- package/src/helpers/typecheckers.ts +0 -267
- package/src/helpers/url.test.js +0 -44
- package/src/helpers/url.ts +0 -208
- package/src/helpers/urlhelper.ts +0 -112
- package/src/index.ts +0 -6
- package/src/types/auth.ts +0 -63
- package/src/types/common.types.ts +0 -16
- package/src/types/exports-index.ts +0 -15
- package/src/types/flatted.types.ts +0 -60
- package/src/types/globals.types.ts +0 -7
- package/src/types/graph/calendar.types.ts +0 -81
- package/src/types/graph/exports-index.ts +0 -1
- package/src/types/knownscript.types.ts +0 -19
- package/src/types/libs/datajs.types.ts +0 -29
- package/src/types/libs/exports-index.ts +0 -3
- package/src/types/libs/ics.types.ts +0 -31
- package/src/types/libs/msal.types.ts +0 -58
- package/src/types/locales.ts +0 -126
- package/src/types/localstoragecache.types.ts +0 -9
- package/src/types/location.types.ts +0 -28
- package/src/types/moment.ts +0 -12
- package/src/types/regex.types.ts +0 -17
- package/src/types/rest.types.ts +0 -96
- package/src/types/sharepoint.types.ts +0 -1467
- package/src/types/sharepoint.utils.types.ts +0 -307
- package/src/utils/auth/common.ts +0 -119
- package/src/utils/auth/discovery.test.js +0 -13
- package/src/utils/auth/discovery.ts +0 -132
- package/src/utils/auth/exports-index.ts +0 -2
- package/src/utils/base64.ts +0 -28
- package/src/utils/consolelogger.ts +0 -334
- package/src/utils/date.ts +0 -173
- package/src/utils/emails.ts +0 -25
- package/src/utils/exports-index.ts +0 -11
- package/src/utils/knownscript.ts +0 -287
- package/src/utils/localstoragecache.ts +0 -447
- package/src/utils/rest.ts +0 -502
- package/src/utils/script.ts +0 -171
- package/src/utils/sharepoint.rest/common.ts +0 -160
- package/src/utils/sharepoint.rest/date.ts +0 -63
- package/src/utils/sharepoint.rest/exports-index.ts +0 -11
- package/src/utils/sharepoint.rest/file.folder.ts +0 -685
- package/src/utils/sharepoint.rest/item.ts +0 -547
- package/src/utils/sharepoint.rest/list.ts +0 -1572
- package/src/utils/sharepoint.rest/listutils/GetListItemsByCaml.ts +0 -775
- package/src/utils/sharepoint.rest/listutils/GetListItemsById.ts +0 -275
- package/src/utils/sharepoint.rest/listutils/common.ts +0 -207
- package/src/utils/sharepoint.rest/listutils/exports-index.ts +0 -3
- package/src/utils/sharepoint.rest/location.ts +0 -142
- package/src/utils/sharepoint.rest/navigation-links.ts +0 -87
- package/src/utils/sharepoint.rest/user-search.ts +0 -253
- package/src/utils/sharepoint.rest/user.ts +0 -559
- package/src/utils/sharepoint.rest/web.ts +0 -1385
- package/src/utils/sod.ts +0 -195
package/src/types/auth.ts
DELETED
|
@@ -1,63 +0,0 @@
|
|
|
1
|
-
export interface ITenantInfo {
|
|
2
|
-
environment: AzureEnvironment;
|
|
3
|
-
idOrName: string;
|
|
4
|
-
authorityUrl: string;
|
|
5
|
-
valid: boolean;
|
|
6
|
-
}
|
|
7
|
-
|
|
8
|
-
// eslint-disable-next-line no-shadow
|
|
9
|
-
export enum AzureEnvironment {
|
|
10
|
-
Production = 0,
|
|
11
|
-
PPE = 1,
|
|
12
|
-
China = 2,
|
|
13
|
-
Germany = 3,
|
|
14
|
-
USGovernment = 4
|
|
15
|
-
}
|
|
16
|
-
/** AuthenticationModes enum values for projects that can't use enums (when isolatedModules is true)
|
|
17
|
-
* @deprecated use AzureEnvironment
|
|
18
|
-
*/
|
|
19
|
-
export const $AzureEnvironment = {
|
|
20
|
-
Production: 0,
|
|
21
|
-
PPE: 1,
|
|
22
|
-
China: 2,
|
|
23
|
-
Germany: 3,
|
|
24
|
-
USGovernment: 4,
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
// eslint-disable-next-line no-shadow
|
|
28
|
-
export enum AuthenticationModes {
|
|
29
|
-
Certificate = "certificate",
|
|
30
|
-
clientSecret = "secret"
|
|
31
|
-
}
|
|
32
|
-
/** AuthenticationModes enum values for projects that can't use enums (when isolatedModules is true) */
|
|
33
|
-
export const $AuthenticationModes = {
|
|
34
|
-
Certificate: AuthenticationModes.Certificate,
|
|
35
|
-
clientSecret: AuthenticationModes.clientSecret,
|
|
36
|
-
};
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
export type AuthContextType = {
|
|
40
|
-
authenticationMode: AuthenticationModes.Certificate,
|
|
41
|
-
clientId: string,
|
|
42
|
-
privateKey: string,
|
|
43
|
-
thumbprint: string
|
|
44
|
-
} | {
|
|
45
|
-
authenticationMode: AuthenticationModes.clientSecret,
|
|
46
|
-
clientId: string,
|
|
47
|
-
clientSecret: string
|
|
48
|
-
};
|
|
49
|
-
|
|
50
|
-
export enum SPFxAuthTokenType {
|
|
51
|
-
Outlook,
|
|
52
|
-
SharePoint,
|
|
53
|
-
Graph,
|
|
54
|
-
MySite
|
|
55
|
-
}
|
|
56
|
-
|
|
57
|
-
export interface SPFxAuthToken {
|
|
58
|
-
access_token: string;
|
|
59
|
-
expires_on: string;
|
|
60
|
-
resource: string;
|
|
61
|
-
scope: string;
|
|
62
|
-
token_type: string;
|
|
63
|
-
}
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
//Drop common, non product specific, types
|
|
2
|
-
|
|
3
|
-
export interface IDictionary<valueType> { [key: string]: valueType; }
|
|
4
|
-
|
|
5
|
-
export type IdTextPair = { id: string; text: string; };
|
|
6
|
-
export type KeyValuePair<T> = { key: string; value: T; };
|
|
7
|
-
|
|
8
|
-
/** display info for enums or custom types for modern UI dropdowns */
|
|
9
|
-
export interface ITypesDisplayInfo<ValueType> {
|
|
10
|
-
value: ValueType;
|
|
11
|
-
title: string;
|
|
12
|
-
description?: string;
|
|
13
|
-
fabricIconName?: string;
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
export type DateOrNull = Date | null;
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
export * from './graph/exports-index';
|
|
2
|
-
export * from './libs/exports-index';
|
|
3
|
-
export * from './auth';
|
|
4
|
-
export * from './common.types';
|
|
5
|
-
export * from './flatted.types';
|
|
6
|
-
export * from './globals.types';
|
|
7
|
-
export * from './knownscript.types';
|
|
8
|
-
export * from './locales';
|
|
9
|
-
export * from './localstoragecache.types';
|
|
10
|
-
export * from './location.types';
|
|
11
|
-
export * from './moment';
|
|
12
|
-
export * from './regex.types';
|
|
13
|
-
export * from './rest.types';
|
|
14
|
-
export * from './sharepoint.types';
|
|
15
|
-
export * from './sharepoint.utils.types';
|
|
@@ -1,60 +0,0 @@
|
|
|
1
|
-
/*! (c) 2020 Andrea Giammarchi */
|
|
2
|
-
/**
|
|
3
|
-
* Fast and minimal circular JSON parser.
|
|
4
|
-
* logic example
|
|
5
|
-
```js
|
|
6
|
-
var a = [{one: 1}, {two: '2'}];
|
|
7
|
-
a[0].a = a;
|
|
8
|
-
// a is the main object, will be at index '0'
|
|
9
|
-
// {one: 1} is the second object, index '1'
|
|
10
|
-
// {two: '2'} the third, in '2', and it has a string
|
|
11
|
-
// which will be found at index '3'
|
|
12
|
-
Flatted.stringify(a);
|
|
13
|
-
// [["1","2"],{"one":1,"a":"0"},{"two":"3"},"2"]
|
|
14
|
-
// a[one,two] {one: 1, a} {two: '2'} '2'
|
|
15
|
-
```
|
|
16
|
-
*/
|
|
17
|
-
export interface IFlatted {
|
|
18
|
-
/**
|
|
19
|
-
* Converts a JavaScript Object Notation (using Flatted encoding) string into an object.
|
|
20
|
-
* @param text A valid Flatted string.
|
|
21
|
-
* @param reviver A function that transforms the results. This function is called for each member of the object.
|
|
22
|
-
* If a member contains nested objects, the nested objects are transformed before the parent object is.
|
|
23
|
-
*/
|
|
24
|
-
parse(
|
|
25
|
-
text: string,
|
|
26
|
-
reviver?: (this: any, key: string, value: any) => any
|
|
27
|
-
): any;
|
|
28
|
-
/**
|
|
29
|
-
* Converts a JavaScript value to a JavaScript Object Notation (using Flatted encoding) string.
|
|
30
|
-
* @param value A JavaScript value, usually an object or array, to be converted.
|
|
31
|
-
* @param replacer A function that transforms the results.
|
|
32
|
-
* @param space Adds indentation, white space, and line break characters to the return-value JSON text to make it easier to read.
|
|
33
|
-
*/
|
|
34
|
-
stringify(
|
|
35
|
-
value: any,
|
|
36
|
-
replacer?: (this: any, key: string, value: any) => any,
|
|
37
|
-
space?: string | number
|
|
38
|
-
): string;
|
|
39
|
-
/**
|
|
40
|
-
* Converts a JavaScript value to a JavaScript Object Notation (using Flatted encoding) string.
|
|
41
|
-
* @param value A JavaScript value, usually an object or array, to be converted.
|
|
42
|
-
* @param replacer An array of strings and numbers that acts as an approved list for selecting the object properties that will be stringified.
|
|
43
|
-
* @param space Adds indentation, white space, and line break characters to the return-value JSON text to make it easier to read.
|
|
44
|
-
*/
|
|
45
|
-
stringify(
|
|
46
|
-
value: any,
|
|
47
|
-
replacer?: (number | string)[] | null,
|
|
48
|
-
space?: string | number
|
|
49
|
-
): string;
|
|
50
|
-
/**
|
|
51
|
-
* Helper to allow explicit conversions with classes.
|
|
52
|
-
* @param value The JSON to convert to JavaScript value
|
|
53
|
-
*/
|
|
54
|
-
fromJSON(value: any): any;
|
|
55
|
-
/**
|
|
56
|
-
* Helper to allow explicit conversions with classes.
|
|
57
|
-
* @param value A JavaScript value, usually an object or array, to be converted.
|
|
58
|
-
*/
|
|
59
|
-
toJSON(value: any): any;
|
|
60
|
-
}
|
|
@@ -1,81 +0,0 @@
|
|
|
1
|
-
export interface IGraphEventUser {
|
|
2
|
-
emailAddress: {
|
|
3
|
-
name: string;
|
|
4
|
-
address: string;
|
|
5
|
-
}
|
|
6
|
-
}
|
|
7
|
-
export interface IGraphEventAttendee extends IGraphEventUser {
|
|
8
|
-
type: "optional" | "required";
|
|
9
|
-
status: {
|
|
10
|
-
response: GraphEventResponse;
|
|
11
|
-
time: string;
|
|
12
|
-
};
|
|
13
|
-
}
|
|
14
|
-
export interface IGraphEventLocation {
|
|
15
|
-
displayName: string,//"Microsoft Teams Meeting",
|
|
16
|
-
locationType: "default",
|
|
17
|
-
uniqueId: string,//"Microsoft Teams Meeting",
|
|
18
|
-
uniqueIdType: "private" | "unknown"
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
export type GraphEventTimezone = "Eastern Standard Time" | "America/Toronto" | "UTC";
|
|
22
|
-
export type GraphEventType = "occurrence" | "singleInstance";
|
|
23
|
-
export type GraphEventResponse = "none" | "organizer" | "accepted";
|
|
24
|
-
|
|
25
|
-
export interface IGraphCalendar {
|
|
26
|
-
id: string,
|
|
27
|
-
createdDateTime: string,
|
|
28
|
-
lastModifiedDateTime: string,
|
|
29
|
-
changeKey: string,
|
|
30
|
-
categories: string[],
|
|
31
|
-
transactionId: null,
|
|
32
|
-
originalStartTimeZone: GraphEventTimezone,
|
|
33
|
-
originalEndTimeZone: GraphEventTimezone,
|
|
34
|
-
iCalUId: string,
|
|
35
|
-
reminderMinutesBeforeStart: number,
|
|
36
|
-
isReminderOn: boolean,
|
|
37
|
-
hasAttachments: boolean,
|
|
38
|
-
subject: string,
|
|
39
|
-
bodyPreview: string,
|
|
40
|
-
importance: string,//"normal",
|
|
41
|
-
sensitivity: string,// "normal",
|
|
42
|
-
isAllDay: boolean,
|
|
43
|
-
isCancelled: boolean,
|
|
44
|
-
isOrganizer: boolean,
|
|
45
|
-
responseRequested: boolean,
|
|
46
|
-
seriesMasterId: string,//null,
|
|
47
|
-
showAs: string,//"busy",
|
|
48
|
-
type: GraphEventType,
|
|
49
|
-
webLink: string,
|
|
50
|
-
onlineMeetingUrl: string,//null,
|
|
51
|
-
isOnlineMeeting: boolean,
|
|
52
|
-
onlineMeetingProvider: "teamsForBusiness" | "unknown",
|
|
53
|
-
allowNewTimeProposals: boolean,
|
|
54
|
-
occurrenceId: string,//null,
|
|
55
|
-
isDraft: boolean,
|
|
56
|
-
hideAttendees: boolean,
|
|
57
|
-
responseStatus: {
|
|
58
|
-
response: GraphEventResponse,
|
|
59
|
-
time: string
|
|
60
|
-
},
|
|
61
|
-
body: {
|
|
62
|
-
contentType: "html",
|
|
63
|
-
content: string,//"<html><head><body>....</html>"
|
|
64
|
-
},
|
|
65
|
-
start: {
|
|
66
|
-
dateTime: string,
|
|
67
|
-
timeZone: GraphEventTimezone,
|
|
68
|
-
},
|
|
69
|
-
end: {
|
|
70
|
-
dateTime: string,
|
|
71
|
-
timeZone: GraphEventTimezone,
|
|
72
|
-
},
|
|
73
|
-
location: IGraphEventLocation,
|
|
74
|
-
locations: IGraphEventLocation[],
|
|
75
|
-
recurrence: null,
|
|
76
|
-
attendees: IGraphEventAttendee[],
|
|
77
|
-
organizer: IGraphEventUser,
|
|
78
|
-
onlineMeeting: {
|
|
79
|
-
joinUrl: string
|
|
80
|
-
}
|
|
81
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './calendar.types';
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
export type ksGlobal = string | { name: string; getter: (() => any); };
|
|
2
|
-
export interface IKnownScript {
|
|
3
|
-
/** cdn url for this script */
|
|
4
|
-
url: string;
|
|
5
|
-
/** specify any other libraries this script is depended on. These libraries will be loaded before this script if they were not loaded already. */
|
|
6
|
-
dependencies?: IKnownScript[];
|
|
7
|
-
/** specify global object name, if available. if this object exists - the script will not load, assuming it was already loaded
|
|
8
|
-
* Alternativly, provide a getter if it is more complex
|
|
9
|
-
*/
|
|
10
|
-
global: ksGlobal;
|
|
11
|
-
/** specify sod script name. if provided, and the sod in this name was already loaded - this script will not be loaded again. */
|
|
12
|
-
sodName?: string;
|
|
13
|
-
/** If this library requires a CSS file, add it here */
|
|
14
|
-
css?: string[];
|
|
15
|
-
/** If this library requires an RTL CSS file, add it here */
|
|
16
|
-
rtlCss?: string[];
|
|
17
|
-
/** set to true, to make sure known script will not try to load the non min version on debug */
|
|
18
|
-
forceMin?: boolean;
|
|
19
|
-
}
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
export interface IDataJsRequestData {
|
|
2
|
-
__batchRequests: IDataJsBatchRequest[];
|
|
3
|
-
}
|
|
4
|
-
export interface IDataJsBatchRequest {
|
|
5
|
-
requestUri: string;
|
|
6
|
-
method: "GET" | "POST";
|
|
7
|
-
headers: { [key: string]: string; };
|
|
8
|
-
}
|
|
9
|
-
export interface IDataJsRequest {
|
|
10
|
-
requestUri: string;
|
|
11
|
-
method: "GET" | "POST";
|
|
12
|
-
headers: { [key: string]: string; };
|
|
13
|
-
data: IDataJsRequestData;
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
export interface IDataJsResponseData<ResponseDataType> {
|
|
17
|
-
__batchResponses: { data: ResponseDataType; }[];
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
export interface IDataJsHandler { }
|
|
21
|
-
|
|
22
|
-
export interface IDataJs {
|
|
23
|
-
batchHandler: IDataJsHandler;
|
|
24
|
-
request<ResponseDataType>(request: IDataJsRequest, success: (data: IDataJsResponseData<ResponseDataType>, response: any) => void,
|
|
25
|
-
error: (error: string) => void,
|
|
26
|
-
handler: IDataJsHandler,
|
|
27
|
-
httpClient?: any,
|
|
28
|
-
metadata?: any): void;
|
|
29
|
-
}
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
export type ICSFrequency = "DAILY" | "WEEKLY" | "MONTHLY" | "YEARLY";
|
|
2
|
-
export type ICSDay = "SU" | "MO" | "TU" | "WE" | "TH" | "FR" | "SA";
|
|
3
|
-
|
|
4
|
-
export type ICS = () => {
|
|
5
|
-
/** add an event to this ICS file. begin and end need to be formatted in a way that is friendly to Date() -- Issue 572 */
|
|
6
|
-
addEvent(subject: string, description: string | {
|
|
7
|
-
/** non-outlook standard */
|
|
8
|
-
text: string;
|
|
9
|
-
/** special support for outlook, html */
|
|
10
|
-
html: string;
|
|
11
|
-
}, location: string, begin: string, end: string, recurrence?: {
|
|
12
|
-
freq: ICSFrequency;
|
|
13
|
-
/** A date string representing the date on which to end repitition. Must be friendly to Date() */
|
|
14
|
-
until?: string;
|
|
15
|
-
/** Alternative to until. Repeat the event count times. Must be an integer */
|
|
16
|
-
count?: number;
|
|
17
|
-
/** The interval of freq to recur at. For example, if freq is WEEKLY and interval is 2, the event will repeat every 2 weeks. Must be an integer. */
|
|
18
|
-
interval?: number;
|
|
19
|
-
/** Which days of the week the event is to occur. An array containing any of SU, MO, TU, WE, TH, FR, SA. */
|
|
20
|
-
byday?: ICSDay;
|
|
21
|
-
}): void;
|
|
22
|
-
/** get the ICS file content of the events added so far */
|
|
23
|
-
calendar(): string;
|
|
24
|
-
download(filename: string, extention?: string): void;
|
|
25
|
-
};
|
|
26
|
-
|
|
27
|
-
declare global {
|
|
28
|
-
interface IKWizComGlobalsLibs {
|
|
29
|
-
ics?: ICS;
|
|
30
|
-
}
|
|
31
|
-
}
|
|
@@ -1,58 +0,0 @@
|
|
|
1
|
-
import { ITenantInfo } from "../auth";
|
|
2
|
-
|
|
3
|
-
export interface IMSALBaseRequest { scopes: string[]; }
|
|
4
|
-
export interface IMSALConfig {
|
|
5
|
-
auth: {
|
|
6
|
-
clientId: string;
|
|
7
|
-
authority: string;
|
|
8
|
-
redirectUri: string;
|
|
9
|
-
}
|
|
10
|
-
}
|
|
11
|
-
export interface IMSALRequestOptions {
|
|
12
|
-
scopes?: string[];
|
|
13
|
-
/** the custom state you would like to be passed to your login handler, otherwise it sends the current window.location.href */
|
|
14
|
-
state?: string;
|
|
15
|
-
/** turn this on if you want to allow the option to redirect if popup are blocked. */
|
|
16
|
-
allowRedirect?: boolean;
|
|
17
|
-
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
export const MSALSampleLoginPopupScript = `<p id="msg">please wait...</p>
|
|
21
|
-
<script>
|
|
22
|
-
function finish() {
|
|
23
|
-
try {
|
|
24
|
-
var hash = window.location.hash;
|
|
25
|
-
if (hash[0] === "#") hash = hash.slice(1);//get rid of #
|
|
26
|
-
var hashDictionary = {};
|
|
27
|
-
hash.split("&").forEach(function (keyValue) {
|
|
28
|
-
if (keyValue !== "") {
|
|
29
|
-
var vals = keyValue.split("=");
|
|
30
|
-
hashDictionary[vals[0]] = decodeURIComponent(vals[1]);
|
|
31
|
-
}
|
|
32
|
-
});
|
|
33
|
-
if (Object.keys(hashDictionary).length < 1)
|
|
34
|
-
window.close();//we lose the hash!
|
|
35
|
-
else if (hashDictionary.error && hashDictionary.error_description)
|
|
36
|
-
document.getElementById("msg").innerHTML = hashDictionary.error_description.replace(/\\+/g," ").replace(/\\n/g,"<br /><br />");
|
|
37
|
-
else if (hashDictionary.state) {
|
|
38
|
-
var origin = hashDictionary.state.split("|")[1];
|
|
39
|
-
if (origin) {
|
|
40
|
-
window.location.href = origin.split("#")[0] + window.location.hash;
|
|
41
|
-
}
|
|
42
|
-
}
|
|
43
|
-
} catch (e) { }
|
|
44
|
-
}
|
|
45
|
-
finish();
|
|
46
|
-
</script>`;
|
|
47
|
-
|
|
48
|
-
export interface IMSAL {
|
|
49
|
-
AutoDiscoverTenantInfo: () => Promise<ITenantInfo>;
|
|
50
|
-
GetConfig: (clientId: string, authority: string, redirectUri: string) => Promise<IMSALConfig>;
|
|
51
|
-
GetTokenPopup: (config: IMSALConfig, requestOptions?: IMSALRequestOptions) => Promise<string>;
|
|
52
|
-
}
|
|
53
|
-
|
|
54
|
-
declare global {
|
|
55
|
-
interface IKWizComGlobalsLibs {
|
|
56
|
-
msal?: IMSAL;
|
|
57
|
-
}
|
|
58
|
-
}
|
package/src/types/locales.ts
DELETED
|
@@ -1,126 +0,0 @@
|
|
|
1
|
-
export type SysNumberFormatType = {
|
|
2
|
-
CurrencyDecimalDigits: number;
|
|
3
|
-
CurrencyDecimalSeparator: string;
|
|
4
|
-
IsReadOnly: boolean;
|
|
5
|
-
CurrencyGroupSizes: number[];
|
|
6
|
-
NumberGroupSizes: number[];
|
|
7
|
-
PercentGroupSizes: number[];
|
|
8
|
-
CurrencyGroupSeparator: string;
|
|
9
|
-
CurrencySymbol: string;
|
|
10
|
-
NaNSymbol: string;
|
|
11
|
-
CurrencyNegativePattern: number;
|
|
12
|
-
NumberNegativePattern: number;
|
|
13
|
-
PercentPositivePattern: number;
|
|
14
|
-
PercentNegativePattern: number;
|
|
15
|
-
NegativeInfinitySymbol: string;
|
|
16
|
-
NegativeSign: string;
|
|
17
|
-
NumberDecimalDigits: number;
|
|
18
|
-
NumberDecimalSeparator: string;
|
|
19
|
-
NumberGroupSeparator: string;
|
|
20
|
-
CurrencyPositivePattern: number;
|
|
21
|
-
PositiveInfinitySymbol: string;
|
|
22
|
-
PositiveSign: string;
|
|
23
|
-
PercentDecimalDigits: number;
|
|
24
|
-
PercentDecimalSeparator: string;
|
|
25
|
-
PercentGroupSeparator: string;
|
|
26
|
-
PercentSymbol: string;
|
|
27
|
-
PerMilleSymbol: string;
|
|
28
|
-
NativeDigits: string[];
|
|
29
|
-
DigitSubstitution: number;
|
|
30
|
-
};
|
|
31
|
-
|
|
32
|
-
export type SysDateFormatType = {
|
|
33
|
-
AMDesignator: string;
|
|
34
|
-
Calendar: {
|
|
35
|
-
MinSupportedDateTime: string;
|
|
36
|
-
MaxSupportedDateTime: string;
|
|
37
|
-
AlgorithmType: number;
|
|
38
|
-
CalendarType: number;
|
|
39
|
-
Eras: number[];
|
|
40
|
-
TwoDigitYearMax: number;
|
|
41
|
-
IsReadOnly: boolean;
|
|
42
|
-
};
|
|
43
|
-
DateSeparator: string;
|
|
44
|
-
FirstDayOfWeek: number;
|
|
45
|
-
CalendarWeekRule: number;
|
|
46
|
-
FullDateTimePattern: string;
|
|
47
|
-
LongDatePattern: string;
|
|
48
|
-
LongTimePattern: string;
|
|
49
|
-
MonthDayPattern: string;
|
|
50
|
-
PMDesignator: string;
|
|
51
|
-
RFC1123Pattern: string;
|
|
52
|
-
ShortDatePattern: string;
|
|
53
|
-
ShortTimePattern: string;
|
|
54
|
-
SortableDateTimePattern: string;
|
|
55
|
-
TimeSeparator: string;
|
|
56
|
-
UniversalSortableDateTimePattern: string;
|
|
57
|
-
YearMonthPattern: string;
|
|
58
|
-
AbbreviatedDayNames: string[];
|
|
59
|
-
ShortestDayNames: string[];
|
|
60
|
-
DayNames: string[];
|
|
61
|
-
AbbreviatedMonthNames: string[];
|
|
62
|
-
MonthNames: string[];
|
|
63
|
-
IsReadOnly: boolean;
|
|
64
|
-
NativeCalendarName: string;
|
|
65
|
-
AbbreviatedMonthGenitiveNames: string[];
|
|
66
|
-
MonthGenitiveNames: string[];
|
|
67
|
-
eras: any[];
|
|
68
|
-
};
|
|
69
|
-
export type CultureInfoType = {
|
|
70
|
-
LCID: number;
|
|
71
|
-
name: string;
|
|
72
|
-
numberFormat: SysNumberFormatType;
|
|
73
|
-
dateTimeFormat: SysDateFormatType;
|
|
74
|
-
ShortDatePattern?: string;
|
|
75
|
-
ShortTimePattern?: string;
|
|
76
|
-
DateSeparator?: string;
|
|
77
|
-
TimeSeparator?: string;
|
|
78
|
-
CurrencySymbol?: string;
|
|
79
|
-
PercentSymbol?: string;
|
|
80
|
-
NumberDecimalSeparator?: string;
|
|
81
|
-
NumberGroupSeparator?: string;
|
|
82
|
-
};
|
|
83
|
-
|
|
84
|
-
export interface IKLocales {
|
|
85
|
-
getCultureNameOrLCIDFromContextInfo(s: number): string | number;
|
|
86
|
-
GetCulture(cultureNameOrLCID: string | number): CultureInfoType;
|
|
87
|
-
GetCurrentCulture(): CultureInfoType;
|
|
88
|
-
SetCurrentCulture(culture: CultureInfoType);
|
|
89
|
-
ParseDate(strDate: string, culture?: CultureInfoType): Date;
|
|
90
|
-
/** default format: date only */
|
|
91
|
-
DateToString(dateObj: Date, culture: CultureInfoType, format?: { includeDate?: boolean; includeTime?: boolean; }): string;
|
|
92
|
-
ParseNumber(strNumber: string, culture?: CultureInfoType): number;
|
|
93
|
-
/** isPercentAsWholeNumbers means a percent number that is 1 to 100, not 0-1. will not multiply it by 100. */
|
|
94
|
-
NumberToString(num: number,
|
|
95
|
-
/** current web cutlure, default=GetCurrentCulture */
|
|
96
|
-
webCulture?: CultureInfoType,
|
|
97
|
-
numFormat?: {
|
|
98
|
-
/** default=false */
|
|
99
|
-
includeGroupSeparator?: boolean;
|
|
100
|
-
/** default=false */
|
|
101
|
-
isPercent?: boolean;
|
|
102
|
-
/** isPercentAsWholeNumbers means a percent number that is 1 to 100, not 0-1. will not multiply it by 100, default=false */
|
|
103
|
-
isPercentAsWholeNumbers?: boolean;
|
|
104
|
-
/** default=false */
|
|
105
|
-
isCurrency?: boolean;
|
|
106
|
-
/** default=webCulture.LCID */
|
|
107
|
-
currencyLocaleId?: number;
|
|
108
|
-
/** default=false */
|
|
109
|
-
numberOnly?: boolean;
|
|
110
|
-
}): string;
|
|
111
|
-
IsValidNumber(strNumber: string, culture: CultureInfoType): boolean;
|
|
112
|
-
}
|
|
113
|
-
|
|
114
|
-
declare global {
|
|
115
|
-
interface Date {
|
|
116
|
-
/**
|
|
117
|
-
* Formats a date by using the invariant (culture-independent) culture.
|
|
118
|
-
* @deprecated this is only available when loading KLocals known script
|
|
119
|
-
*/
|
|
120
|
-
format(format: string): string;
|
|
121
|
-
}
|
|
122
|
-
|
|
123
|
-
interface IKWizComGlobals {
|
|
124
|
-
kLocales?: IKLocales;
|
|
125
|
-
}
|
|
126
|
-
}
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
export type IMeetingLocationEntityType = "Custom" | "Default" | "ConferenceRoom" | "HomeAddress" | "BusinessAddress"
|
|
2
|
-
| "GeoCoordinates" | "StreetAddress" | "Hotel" | "Restaurant" | "LocalBusiness" | "PostalAddress";
|
|
3
|
-
|
|
4
|
-
export interface IMeetingLocationAddress {
|
|
5
|
-
Street: string;
|
|
6
|
-
City: string;
|
|
7
|
-
State: string;
|
|
8
|
-
CountryOrRegion: string;
|
|
9
|
-
PostalCode: string;
|
|
10
|
-
}
|
|
11
|
-
|
|
12
|
-
export interface IMeetingLocationCoordinates {
|
|
13
|
-
Latitude: number;
|
|
14
|
-
Longitude: number;
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
/** Represents location information of an event.
|
|
18
|
-
* Similar to https://learn.microsoft.com/en-us/graph/api/resources/location?view=graph-rest-1.0/ */
|
|
19
|
-
export interface IMeetingLocation {
|
|
20
|
-
Address?: IMeetingLocationAddress,
|
|
21
|
-
Coordinates?: IMeetingLocationCoordinates,
|
|
22
|
-
DisplayName: string;
|
|
23
|
-
EntityType?: IMeetingLocationEntityType;
|
|
24
|
-
IsPreviouslyUsed?: boolean;
|
|
25
|
-
LocationSource?: string;
|
|
26
|
-
LocationUri?: string;
|
|
27
|
-
UniqueId?: string;
|
|
28
|
-
}
|
package/src/types/moment.ts
DELETED
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
interface IMomentJSObj {
|
|
2
|
-
toDate: () => Date;
|
|
3
|
-
isValid: () => boolean;
|
|
4
|
-
}
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
export type typeMomentJS = (inp?: string, format?: string, strict?: boolean) => IMomentJSObj;
|
|
8
|
-
export type typeMonentJSTimeZone = (inp?: string, format?: string, strict?: boolean) => IMomentJSObj;
|
|
9
|
-
declare global {
|
|
10
|
-
var momentJS: typeMomentJS;
|
|
11
|
-
var monentJSTimeZone: typeMonentJSTimeZone;
|
|
12
|
-
}
|
package/src/types/regex.types.ts
DELETED
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import { IDictionary } from "./common.types";
|
|
2
|
-
|
|
3
|
-
export interface IRegexExpression {
|
|
4
|
-
pattern: string;
|
|
5
|
-
example: string;
|
|
6
|
-
options: string[];
|
|
7
|
-
isDefault: boolean;
|
|
8
|
-
}
|
|
9
|
-
|
|
10
|
-
export interface IRegexList extends IDictionary<IRegexExpression> {
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
declare global {
|
|
14
|
-
interface IModernListSettings {
|
|
15
|
-
RegexList?: IRegexList;
|
|
16
|
-
}
|
|
17
|
-
}
|