@rippling/pebble-sdui-web 0.20.0 → 0.21.0
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/catalogs/custom-apps/catalog.d.ts +1 -1
- package/dist/catalogs/custom-apps/function-params.d.ts +19 -0
- package/dist/catalogs/custom-apps/functions.d.ts +17 -1
- package/dist/catalogs/custom-apps/index.cjs +2 -2
- package/dist/catalogs/custom-apps/index.cjs.map +1 -1
- package/dist/catalogs/custom-apps/index.d.ts +2 -2
- package/dist/catalogs/custom-apps/index.js +164 -40
- package/dist/catalogs/custom-apps/index.js.map +1 -1
- package/dist/docs/typescript/web/catalogs/custom-apps/computed-functions.md +90 -0
- package/dist/docs/typescript/web/catalogs/custom-apps/definitions.md +45 -0
- package/dist/docs/typescript/web/catalogs/custom-apps/readme.md +1 -1
- package/package.json +1 -1
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
* action definitions, directive definitions, and spec validation.
|
|
8
8
|
*/
|
|
9
9
|
export declare const CATALOG_NAME = "custom-apps";
|
|
10
|
-
export declare const CATALOG_VERSION = "1.
|
|
10
|
+
export declare const CATALOG_VERSION = "1.12.0";
|
|
11
11
|
/** Return component descriptions keyed by component name. */
|
|
12
12
|
export declare function getComponents(): Record<string, string>;
|
|
13
13
|
/** Return action descriptions keyed by action name. */
|
|
@@ -19,3 +19,22 @@ export interface ArraySomeParams {
|
|
|
19
19
|
items: PropValue<unknown[]>;
|
|
20
20
|
where: ArrayPredicate;
|
|
21
21
|
}
|
|
22
|
+
export interface FormatDateParams {
|
|
23
|
+
style?: 'short' | 'medium' | 'long';
|
|
24
|
+
timeZone?: string;
|
|
25
|
+
value: string;
|
|
26
|
+
}
|
|
27
|
+
export interface FormatDateTimeParams {
|
|
28
|
+
dateStyle?: 'short' | 'medium' | 'long';
|
|
29
|
+
timeStyle?: 'short' | 'long';
|
|
30
|
+
timeZone?: string;
|
|
31
|
+
value: string;
|
|
32
|
+
}
|
|
33
|
+
export interface FormatRelativeTimeParams {
|
|
34
|
+
value: string;
|
|
35
|
+
}
|
|
36
|
+
export interface FormatTimeParams {
|
|
37
|
+
style?: 'short' | 'long';
|
|
38
|
+
timeZone?: string;
|
|
39
|
+
value: string;
|
|
40
|
+
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ComputedRef, WrapWithActionParamValue } from '../../core/expressions';
|
|
2
|
-
import { ArrayCompactParams, ArrayFilterParams, ArrayIncludesParams, ArrayMapParams, ArraySomeParams } from './function-params';
|
|
2
|
+
import { ArrayCompactParams, ArrayFilterParams, ArrayIncludesParams, ArrayMapParams, ArraySomeParams, FormatDateParams, FormatDateTimeParams, FormatRelativeTimeParams, FormatTimeParams } from './function-params';
|
|
3
3
|
/**
|
|
4
4
|
* Remove null and undefined entries while preserving false, zero, and empty strings.
|
|
5
5
|
*/
|
|
@@ -20,3 +20,19 @@ export declare const arrayMap: (args: WrapWithActionParamValue<ArrayMapParams>)
|
|
|
20
20
|
* Return whether at least one array item matches a composable predicate.
|
|
21
21
|
*/
|
|
22
22
|
export declare const arraySome: (args: WrapWithActionParamValue<ArraySomeParams>) => ComputedRef<boolean>;
|
|
23
|
+
/**
|
|
24
|
+
* Formats a date using the viewer locale and timezone configured in the client.
|
|
25
|
+
*/
|
|
26
|
+
export declare const formatDate: (args: WrapWithActionParamValue<FormatDateParams>) => ComputedRef<string>;
|
|
27
|
+
/**
|
|
28
|
+
* Formats a date and time using the viewer locale and timezone configured in the client.
|
|
29
|
+
*/
|
|
30
|
+
export declare const formatDateTime: (args: WrapWithActionParamValue<FormatDateTimeParams>) => ComputedRef<string>;
|
|
31
|
+
/**
|
|
32
|
+
* Formats a date as relative time using the viewer locale configured in the client.
|
|
33
|
+
*/
|
|
34
|
+
export declare const formatRelativeTime: (args: WrapWithActionParamValue<FormatRelativeTimeParams>) => ComputedRef<string>;
|
|
35
|
+
/**
|
|
36
|
+
* Formats a time using the viewer locale and timezone configured in the client.
|
|
37
|
+
*/
|
|
38
|
+
export declare const formatTime: (args: WrapWithActionParamValue<FormatTimeParams>) => ComputedRef<string>;
|