Skip to content

Commit 54697fa

Browse files
committed
Upgraded bower-abp-resources to 6.0.0
1 parent 24553a4 commit 54697fa

31 files changed

+2522
-810
lines changed

src/AbpCompanyName.AbpProjectName.Web/wwwroot/lib/abp-web-resources/.bower.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"authors": [
55
"Halil İbrahim Kalkan"
66
],
7-
"version": "3.3.0",
7+
"version": "6.0.0",
88
"description": "Script and style resources for ASP.NET Boilerplate based web projects.",
99
"main": "Abp/Framework/scripts/abp.js",
1010
"moduleType": [],
@@ -25,13 +25,13 @@
2525
".nuget",
2626
"packages"
2727
],
28-
"_release": "3.3.0",
28+
"_release": "6.0.0",
2929
"_resolution": {
3030
"type": "version",
31-
"tag": "v3.3.0",
32-
"commit": "c2ea86e4584fffdbfaa63ef8076e59d464a3ff20"
31+
"tag": "v6.0.0",
32+
"commit": "6b9621bedefd8da2d5c367eb5042ac9927fe4cea"
3333
},
3434
"_source": "https://github.com/aspnetboilerplate/bower-abp-resources.git",
35-
"_target": "^3.3.0",
35+
"_target": "^6.0.0",
3636
"_originalSource": "abp-web-resources"
3737
}

src/AbpCompanyName.AbpProjectName.Web/wwwroot/lib/abp-web-resources/Abp/Framework/scripts/abp.d.ts

Lines changed: 30 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,8 @@
1818

1919
let isEnabled: boolean;
2020

21+
let ignoreFeatureCheckForHostUsers: boolean;
22+
2123
let tenantIdCookieName: string;
2224

2325
function setTenantIdCookie(tenantId?: number): void;
@@ -55,6 +57,8 @@
5557
isDefault: boolean;
5658

5759
isDisabled: boolean;
60+
61+
isRightToLeft: boolean;
5862

5963
}
6064

@@ -74,13 +78,13 @@
7478

7579
let defaultSourceName: string;
7680

77-
let values: { [key: string]: string };
81+
let values: { [key: string]: { [key: string]: string } };
7882

7983
let abpWeb: (key: string) => string;
8084

8185
function localize(key: string, sourceName: string): string;
8286

83-
function getSource(sourceName: string): (key: string) => string;
87+
function getSource(sourceName: string): (...key: string[]) => string;
8488

8589
function isCurrentCulture(name: string): boolean;
8690
}
@@ -109,6 +113,19 @@
109113
function getToken(): string;
110114

111115
function clearToken(): void;
116+
117+
let refreshTokenCookieName: string;
118+
119+
/**
120+
* Saves refreshToken token.
121+
* @param refreshToken The token to be saved.
122+
* @param expireDate Optional expire date. If not specified, token will be deleted at end of the session.
123+
*/
124+
function setRefreshToken(refreshToken: string, expireDate?: Date): void;
125+
126+
function getRefreshToken(): string;
127+
128+
function clearRefreshToken(): void;
112129
}
113130

114131
namespace features {
@@ -200,7 +217,7 @@
200217
READ
201218
}
202219

203-
//TODO: We can extend this interface to define built-in notification types, like ILocalizableMessageNotificationData
220+
//TODO: We can extend this interface to define built-in notification types, like ILocalizableMessageNotificationData
204221
interface INotificationData {
205222

206223
type: string;
@@ -293,18 +310,15 @@
293310

294311
//TODO: these methods return jQuery.Promise instead of any. fix it.
295312

296-
function info(message: string, title?: string): any;
297-
298-
function success(message: string, title?: string): any;
299-
300-
function warn(message: string, title?: string): any;
313+
function info(message: string, title?: string, options?: any): any;
301314

302-
function error(message: string, title?: string): any;
315+
function success(message: string, title?: string, options?: any): any;
303316

304-
function confirm(message: string, callback?: (result: boolean) => void): any;
317+
function warn(message: string, title?: string, options?: any): any;
305318

306-
function confirm(message: string, title?: string, callback?: (result: boolean) => void): any;
319+
function error(message: string, title?: string, options?: any): any;
307320

321+
function confirm(message: string, title?: string, callback?: (isConfirmed: boolean, isCancelled?: boolean) => void, options?: any): any;
308322
}
309323

310324
namespace ui {
@@ -359,11 +373,13 @@
359373
* This is a simple implementation created to be used by ABP.
360374
* Please use a complete cookie library if you need.
361375
* @param {string} key
362-
* @param {string} value
376+
* @param {string} value
363377
* @param {Date} expireDate (optional). If not specified the cookie will expire at the end of session.
364378
* @param {string} path (optional)
379+
* @param {string} domain (optional)
380+
* @param {any} attributes (optional)
365381
*/
366-
function setCookieValue(key: string, value: string, expireDate?: Date, path?: string): void;
382+
function setCookieValue(key: string, value: string, expireDate?: Date, path?: string, domain?: string, attributes?: any): void;
367383

368384
/**
369385
* Gets a cookie with given key.
@@ -452,4 +468,4 @@
452468

453469
}
454470

455-
}
471+
}

0 commit comments

Comments
 (0)