@amirjalili1374/ui-kit 1.10.12 → 1.10.13
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/dist/components/form/UiField.vue.d.ts +1 -1
- package/dist/components/form/UiFormActions.vue.d.ts +1 -1
- package/dist/components/layout/AppHeaderMenu.vue.d.ts +1 -1
- package/dist/components/shared/AppConfirmAction.vue.d.ts +0 -3
- package/dist/components/shared/AppNotificationCenter.vue.d.ts +1 -3
- package/dist/components/shared/MoneyInput.vue.d.ts +1 -1
- package/dist/components/shared/RemoteAutocomplete.vue.d.ts +0 -2
- package/dist/platform/types/messages.d.ts +53 -0
- package/dist/style.css +1 -1
- package/dist/ui-kit.cjs +2 -2
- package/dist/ui-kit.es.js +2 -2
- package/dist/utils/greetingUtils.d.ts +8 -6
- package/package.json +1 -1
|
@@ -1,10 +1,12 @@
|
|
|
1
1
|
import type { UserInfoResponse } from '@/types/models/userInfo';
|
|
2
|
+
type GreetingLocale = 'fa' | 'en';
|
|
2
3
|
export declare class GreetingUtils {
|
|
3
|
-
static getGreeting(serverTime?: string | Date): string;
|
|
4
|
-
static getTimePeriod(serverTime?: string | Date): string;
|
|
5
|
-
static getGreetingWithName(serverTime?: string | Date, userName?: string): string;
|
|
6
|
-
static getGreetingWithTime(serverTime?: string | Date): string;
|
|
7
|
-
static getFullGreeting(serverTime?: string | Date, userName?: string): string;
|
|
4
|
+
static getGreeting(serverTime?: string | Date, locale?: GreetingLocale): string;
|
|
5
|
+
static getTimePeriod(serverTime?: string | Date, locale?: GreetingLocale): string;
|
|
6
|
+
static getGreetingWithName(serverTime?: string | Date, userName?: string, locale?: GreetingLocale): string;
|
|
7
|
+
static getGreetingWithTime(serverTime?: string | Date, locale?: GreetingLocale): string;
|
|
8
|
+
static getFullGreeting(serverTime?: string | Date, userName?: string, locale?: GreetingLocale): string;
|
|
8
9
|
/** Convenience: build greeting from a full UserInfoResponse. */
|
|
9
|
-
static fromUserInfo(userInfo: Pick<UserInfoResponse, 'authTime' | 'fullName'
|
|
10
|
+
static fromUserInfo(userInfo: Pick<UserInfoResponse, 'authTime' | 'fullName'>, locale?: GreetingLocale): string;
|
|
10
11
|
}
|
|
12
|
+
export {};
|