@rippling/pebble-sdui-web 0.18.4 → 0.19.1
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/component-props.d.ts +18 -6
- package/dist/catalogs/custom-apps/components.d.ts +1 -1
- package/dist/catalogs/custom-apps/function-params.d.ts +21 -5
- package/dist/catalogs/custom-apps/functions.d.ts +20 -3
- 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 +3 -1
- package/dist/catalogs/custom-apps/index.js +293 -45
- package/dist/catalogs/custom-apps/index.js.map +1 -1
- package/dist/docs/typescript/web/catalogs/custom-apps/components.md +2 -2
- package/dist/docs/typescript/web/catalogs/custom-apps/computed-functions.md +95 -1
- package/dist/docs/typescript/web/catalogs/custom-apps/definitions.md +21 -0
- package/dist/docs/typescript/web/catalogs/custom-apps/readme.md +1 -1
- package/dist/docs/typescript/web/catalogs/custom-apps/types.md +41 -0
- 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.10.1";
|
|
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. */
|
|
@@ -1,8 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
* Generated component prop interfaces for custom-apps.
|
|
3
|
-
*
|
|
4
|
-
* Auto-generated from catalogs/custom-apps.catalog.json — do not edit.
|
|
5
|
-
*/
|
|
1
|
+
import { PropValue } from '../../core/expressions';
|
|
6
2
|
export interface AppNavBarNavItem {
|
|
7
3
|
badge?: AppNavBarNavItemBadge;
|
|
8
4
|
icon?: string;
|
|
@@ -13,6 +9,7 @@ export interface AppNavBarNavItem {
|
|
|
13
9
|
size?: number;
|
|
14
10
|
title: string;
|
|
15
11
|
}
|
|
12
|
+
export type ArrayPredicate = ArrayPredicateValue | ArrayPredicateValueVariant2 | ArrayPredicateValueVariant3;
|
|
16
13
|
export interface CheckListItem {
|
|
17
14
|
branches?: CheckListItem[];
|
|
18
15
|
checkListOptions?: CheckListOption;
|
|
@@ -218,6 +215,18 @@ export interface AppNavBarNavItemBadge {
|
|
|
218
215
|
appearance?: 'INFO_DARK' | 'INFO_LIGHT' | 'ERROR_DARK' | 'ERROR_LIGHT' | 'PRIMARY_DARK' | 'PRIMARY_LIGHT' | 'SUCCESS_DARK' | 'SUCCESS_LIGHT' | 'WARNING_DARK' | 'WARNING_LIGHT' | 'NEUTRAL' | 'BLACK';
|
|
219
216
|
text: string;
|
|
220
217
|
}
|
|
218
|
+
export interface ArrayPredicateValue {
|
|
219
|
+
caseSensitive?: boolean;
|
|
220
|
+
field: string;
|
|
221
|
+
operator: 'eq' | 'contains';
|
|
222
|
+
value: PropValue<string | number | boolean | null>;
|
|
223
|
+
}
|
|
224
|
+
export interface ArrayPredicateValueVariant2 {
|
|
225
|
+
and: ArrayPredicate[];
|
|
226
|
+
}
|
|
227
|
+
export interface ArrayPredicateValueVariant3 {
|
|
228
|
+
or: ArrayPredicate[];
|
|
229
|
+
}
|
|
221
230
|
/** Badge overlay configuration for the avatar */
|
|
222
231
|
export interface AvatarBadge {
|
|
223
232
|
'aria-label': string;
|
|
@@ -1997,6 +2006,9 @@ export interface SelectOption {
|
|
|
1997
2006
|
tertiaryLabel?: string;
|
|
1998
2007
|
value: unknown;
|
|
1999
2008
|
}
|
|
2009
|
+
export interface SelectValue {
|
|
2010
|
+
[key: string]: string;
|
|
2011
|
+
}
|
|
2000
2012
|
export interface ShouldShowHeader {
|
|
2001
2013
|
headerActions: boolean;
|
|
2002
2014
|
}
|
|
@@ -5152,7 +5164,7 @@ export interface TimezoneProps {
|
|
|
5152
5164
|
}
|
|
5153
5165
|
export interface TipProps {
|
|
5154
5166
|
appearance?: 'LIGHT' | 'DARK';
|
|
5155
|
-
content
|
|
5167
|
+
content?: string;
|
|
5156
5168
|
hideOnDocumentScroll?: boolean;
|
|
5157
5169
|
isDelayed?: boolean;
|
|
5158
5170
|
isMobileSupported?: boolean;
|
|
@@ -182,7 +182,7 @@ export declare const TextSnippet: (input: ComponentInputs<TextSnippetProps, Text
|
|
|
182
182
|
export declare const Time: (input: ComponentInputs<TimeProps, TimeEvents>) => CatalogElementNode;
|
|
183
183
|
export declare const TimeRange: (input: ComponentInputs<TimeRangeProps, TimeRangeEvents>) => CatalogElementNode;
|
|
184
184
|
export declare const Timezone: (input: ComponentInputs<TimezoneProps, TimezoneEvents>) => CatalogElementNode;
|
|
185
|
-
export declare const Tip: (input: ComponentInputs<TipProps, TipEvents, true, "default">) => CatalogElementNode;
|
|
185
|
+
export declare const Tip: (input: ComponentInputs<TipProps, TipEvents, true, "default" | "content">) => CatalogElementNode;
|
|
186
186
|
export declare const TitleCaption: (input: ComponentInputs<TitleCaptionProps, TitleCaptionEvents>) => CatalogElementNode;
|
|
187
187
|
export declare const ToggleableArrow: (input: ComponentInputs<ToggleableArrowProps, ToggleableArrowEvents>) => CatalogElementNode;
|
|
188
188
|
export declare const Tree: (input: ComponentInputs<TreeProps, TreeEvents>) => CatalogElementNode;
|
|
@@ -1,5 +1,21 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
1
|
+
import { PropValue } from '../../core/expressions';
|
|
2
|
+
import { ArrayPredicate, SelectValue } from './component-props';
|
|
3
|
+
export interface ArrayCompactParams {
|
|
4
|
+
items: PropValue<unknown[]>;
|
|
5
|
+
}
|
|
6
|
+
export interface ArrayFilterParams {
|
|
7
|
+
items: PropValue<unknown[]>;
|
|
8
|
+
where: ArrayPredicate;
|
|
9
|
+
}
|
|
10
|
+
export interface ArrayIncludesParams {
|
|
11
|
+
items: PropValue<(string | number | boolean | null)[]>;
|
|
12
|
+
value: PropValue<string | number | boolean | null>;
|
|
13
|
+
}
|
|
14
|
+
export interface ArrayMapParams {
|
|
15
|
+
items: PropValue<unknown[]>;
|
|
16
|
+
select: string | SelectValue;
|
|
17
|
+
}
|
|
18
|
+
export interface ArraySomeParams {
|
|
19
|
+
items: PropValue<unknown[]>;
|
|
20
|
+
where: ArrayPredicate;
|
|
21
|
+
}
|
|
@@ -1,5 +1,22 @@
|
|
|
1
|
+
import { ComputedRef, WrapWithActionParamValue } from '../../core/expressions';
|
|
2
|
+
import { ArrayCompactParams, ArrayFilterParams, ArrayIncludesParams, ArrayMapParams, ArraySomeParams } from './function-params';
|
|
1
3
|
/**
|
|
2
|
-
*
|
|
3
|
-
*
|
|
4
|
-
* Auto-generated from catalogs/custom-apps.catalog.json — do not edit.
|
|
4
|
+
* Remove null and undefined entries while preserving false, zero, and empty strings.
|
|
5
5
|
*/
|
|
6
|
+
export declare const arrayCompact: (args: WrapWithActionParamValue<ArrayCompactParams>) => ComputedRef<unknown[]>;
|
|
7
|
+
/**
|
|
8
|
+
* Return array items matching a composable predicate.
|
|
9
|
+
*/
|
|
10
|
+
export declare const arrayFilter: (args: WrapWithActionParamValue<ArrayFilterParams>) => ComputedRef<unknown[]>;
|
|
11
|
+
/**
|
|
12
|
+
* Return whether a scalar array contains a scalar value.
|
|
13
|
+
*/
|
|
14
|
+
export declare const arrayIncludes: (args: WrapWithActionParamValue<ArrayIncludesParams>) => ComputedRef<boolean>;
|
|
15
|
+
/**
|
|
16
|
+
* Project a field or a named set of fields from every array item.
|
|
17
|
+
*/
|
|
18
|
+
export declare const arrayMap: (args: WrapWithActionParamValue<ArrayMapParams>) => ComputedRef<unknown[]>;
|
|
19
|
+
/**
|
|
20
|
+
* Return whether at least one array item matches a composable predicate.
|
|
21
|
+
*/
|
|
22
|
+
export declare const arraySome: (args: WrapWithActionParamValue<ArraySomeParams>) => ComputedRef<boolean>;
|