@rippling/pebble-sdui-mobile 0.3.1 → 0.7.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/action-params.d.ts +7 -0
- package/dist/catalogs/custom-apps/actions.d.ts +5 -0
- package/dist/catalogs/custom-apps/catalog.d.ts +33 -0
- package/dist/catalogs/custom-apps/component-events.d.ts +77 -0
- package/dist/catalogs/custom-apps/component-props.d.ts +1554 -0
- package/dist/catalogs/custom-apps/components.d.ts +78 -0
- package/dist/catalogs/custom-apps/function-params.d.ts +36 -0
- package/dist/catalogs/custom-apps/functions.d.ts +37 -0
- package/dist/catalogs/custom-apps/index.cjs +9 -0
- package/dist/catalogs/custom-apps/index.cjs.map +1 -0
- package/dist/catalogs/custom-apps/index.d.ts +15 -0
- package/dist/catalogs/custom-apps/index.js +15124 -0
- package/dist/catalogs/custom-apps/index.js.map +1 -0
- package/dist/catalogs/custom-apps/render.d.ts +20 -0
- package/dist/core/expressions.d.ts +8 -2
- package/dist/core/index.d.ts +2 -2
- package/dist/core/spec.cjs.map +1 -1
- package/dist/core/spec.d.ts +2 -0
- package/dist/core/spec.js.map +1 -1
- package/dist/index.d.ts +7 -5
- package/package.json +6 -1
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
import { ComponentInputs } from '../../core/component-utils';
|
|
2
|
+
import { ElementNode } from '../../core/elements';
|
|
3
|
+
import { ActionCardProps, AvatarProps, AvatarStackProps, BadgeProps, ButtonProps, CardProps, CheckboxProps, CheckboxGroupProps, ChipProps, CondensedFooterProps, CondensedHeaderProps, CountryProps, CurrencyProps, DateProps, DateRangeProps, DateTimePickerProps, DividerProps, ExpansionPanelProps, FileViewerButtonProps, FileViewerPressableProps, FilterHeaderProps, FloatingButtonProps, FooterProps, FormProps, GroupProps, HeaderProps, HiddenProps, HStackProps, IconProps, ImageProps, InputTextProps, LabelProps, ListProps, ListItemProps, ModalActionHeaderProps, ModalSheetProps, NoticeProps, NumberProps, ObjectFooterProps, ObjectItemProps, ObjectListViewProps, PasswordProps, PercentageProps, PhoneProps, PressableProps, ProgressIndicatorProps, RadioProps, RadioGroupProps, SearchProps, SectionHeaderProps, SelectProps, SelectChipsProps, SignatureProps, SinProps, SliderProps, SliderRangeProps, SnackBarProps, SpacerProps, SpinnerProps, SsnProps, StatusProps, StatusBarProps, SwitchProps, TabsProps, TextProps, TextareaProps, TimeProps, TimeRangeProps, TipProps, VStackProps, WidgetProps, WorkEmailProps } from './component-props';
|
|
4
|
+
import { ActionCardEvents, AvatarEvents, AvatarStackEvents, BadgeEvents, ButtonEvents, CardEvents, CheckboxEvents, CheckboxGroupEvents, ChipEvents, CondensedFooterEvents, CondensedHeaderEvents, CountryEvents, CurrencyEvents, DateEvents, DateRangeEvents, DateTimePickerEvents, DividerEvents, ExpansionPanelEvents, FileViewerButtonEvents, FileViewerPressableEvents, FilterHeaderEvents, FloatingButtonEvents, FooterEvents, FormEvents, GroupEvents, HeaderEvents, HiddenEvents, HStackEvents, IconEvents, ImageEvents, InputTextEvents, LabelEvents, ListEvents, ListItemEvents, ModalActionHeaderEvents, ModalSheetEvents, NoticeEvents, NumberEvents, ObjectFooterEvents, ObjectItemEvents, ObjectListViewEvents, PasswordEvents, PercentageEvents, PhoneEvents, PressableEvents, ProgressIndicatorEvents, RadioEvents, RadioGroupEvents, SearchEvents, SectionHeaderEvents, SelectEvents, SelectChipsEvents, SignatureEvents, SinEvents, SliderEvents, SliderRangeEvents, SnackBarEvents, SpacerEvents, SpinnerEvents, SsnEvents, StatusEvents, StatusBarEvents, SwitchEvents, TabsEvents, TextEvents, TextareaEvents, TimeEvents, TimeRangeEvents, TipEvents, VStackEvents, WidgetEvents, WorkEmailEvents } from './component-events';
|
|
5
|
+
type CatalogElementNode = ElementNode<'mobile', 'custom-apps'>;
|
|
6
|
+
export declare const ActionCard: (input: ComponentInputs<ActionCardProps, ActionCardEvents>) => CatalogElementNode;
|
|
7
|
+
export declare const Avatar: (input: ComponentInputs<AvatarProps, AvatarEvents>) => CatalogElementNode;
|
|
8
|
+
export declare const AvatarStack: (input: ComponentInputs<AvatarStackProps, AvatarStackEvents>) => CatalogElementNode;
|
|
9
|
+
export declare const Badge: (input: ComponentInputs<BadgeProps, BadgeEvents>) => CatalogElementNode;
|
|
10
|
+
export declare const Button: (input: ComponentInputs<ButtonProps, ButtonEvents>) => CatalogElementNode;
|
|
11
|
+
export declare const Card: (input: ComponentInputs<CardProps, CardEvents, true>) => CatalogElementNode;
|
|
12
|
+
export declare const Checkbox: (input: ComponentInputs<CheckboxProps, CheckboxEvents>) => CatalogElementNode;
|
|
13
|
+
export declare const CheckboxGroup: (input: ComponentInputs<CheckboxGroupProps, CheckboxGroupEvents>) => CatalogElementNode;
|
|
14
|
+
export declare const Chip: (input: ComponentInputs<ChipProps, ChipEvents>) => CatalogElementNode;
|
|
15
|
+
export declare const CondensedFooter: (input: ComponentInputs<CondensedFooterProps, CondensedFooterEvents>) => CatalogElementNode;
|
|
16
|
+
export declare const CondensedHeader: (input: ComponentInputs<CondensedHeaderProps, CondensedHeaderEvents>) => CatalogElementNode;
|
|
17
|
+
export declare const Country: (input: ComponentInputs<CountryProps, CountryEvents>) => CatalogElementNode;
|
|
18
|
+
export declare const Currency: (input: ComponentInputs<CurrencyProps, CurrencyEvents>) => CatalogElementNode;
|
|
19
|
+
export declare const Date: (input: ComponentInputs<DateProps, DateEvents>) => CatalogElementNode;
|
|
20
|
+
export declare const DateRange: (input: ComponentInputs<DateRangeProps, DateRangeEvents>) => CatalogElementNode;
|
|
21
|
+
export declare const DateTimePicker: (input: ComponentInputs<DateTimePickerProps, DateTimePickerEvents>) => CatalogElementNode;
|
|
22
|
+
export declare const Divider: (input: ComponentInputs<DividerProps, DividerEvents>) => CatalogElementNode;
|
|
23
|
+
export declare const ExpansionPanel: (input: ComponentInputs<ExpansionPanelProps, ExpansionPanelEvents, true>) => CatalogElementNode;
|
|
24
|
+
export declare const FileViewerButton: (input: ComponentInputs<FileViewerButtonProps, FileViewerButtonEvents>) => CatalogElementNode;
|
|
25
|
+
export declare const FileViewerPressable: (input: ComponentInputs<FileViewerPressableProps, FileViewerPressableEvents, true>) => CatalogElementNode;
|
|
26
|
+
export declare const FilterHeader: (input: ComponentInputs<FilterHeaderProps, FilterHeaderEvents>) => CatalogElementNode;
|
|
27
|
+
export declare const FloatingButton: (input: ComponentInputs<FloatingButtonProps, FloatingButtonEvents>) => CatalogElementNode;
|
|
28
|
+
export declare const Footer: (input: ComponentInputs<FooterProps, FooterEvents>) => CatalogElementNode;
|
|
29
|
+
export declare const Form: (input: ComponentInputs<FormProps, FormEvents, true>) => CatalogElementNode;
|
|
30
|
+
export declare const Group: (input: ComponentInputs<GroupProps, GroupEvents, true>) => CatalogElementNode;
|
|
31
|
+
export declare const Header: (input: ComponentInputs<HeaderProps, HeaderEvents>) => CatalogElementNode;
|
|
32
|
+
export declare const Hidden: (input: ComponentInputs<HiddenProps, HiddenEvents>) => CatalogElementNode;
|
|
33
|
+
export declare const HStack: (input: ComponentInputs<HStackProps, HStackEvents, true>) => CatalogElementNode;
|
|
34
|
+
export declare const Icon: (input: ComponentInputs<IconProps, IconEvents>) => CatalogElementNode;
|
|
35
|
+
export declare const Image: (input: ComponentInputs<ImageProps, ImageEvents>) => CatalogElementNode;
|
|
36
|
+
export declare const InputText: (input: ComponentInputs<InputTextProps, InputTextEvents>) => CatalogElementNode;
|
|
37
|
+
export declare const Label: (input: ComponentInputs<LabelProps, LabelEvents>) => CatalogElementNode;
|
|
38
|
+
export declare const List: (input: ComponentInputs<ListProps, ListEvents, true>) => CatalogElementNode;
|
|
39
|
+
export declare const ListItem: (input: ComponentInputs<ListItemProps, ListItemEvents>) => CatalogElementNode;
|
|
40
|
+
export declare const ModalActionHeader: (input: ComponentInputs<ModalActionHeaderProps, ModalActionHeaderEvents, true>) => CatalogElementNode;
|
|
41
|
+
export declare const ModalSheet: (input: ComponentInputs<ModalSheetProps, ModalSheetEvents, true>) => CatalogElementNode;
|
|
42
|
+
export declare const Notice: (input: ComponentInputs<NoticeProps, NoticeEvents>) => CatalogElementNode;
|
|
43
|
+
export declare const Number: (input: ComponentInputs<NumberProps, NumberEvents>) => CatalogElementNode;
|
|
44
|
+
export declare const ObjectFooter: (input: ComponentInputs<ObjectFooterProps, ObjectFooterEvents>) => CatalogElementNode;
|
|
45
|
+
export declare const ObjectItem: (input: ComponentInputs<ObjectItemProps, ObjectItemEvents>) => CatalogElementNode;
|
|
46
|
+
export declare const ObjectListView: (input: ComponentInputs<ObjectListViewProps, ObjectListViewEvents>) => CatalogElementNode;
|
|
47
|
+
export declare const Password: (input: ComponentInputs<PasswordProps, PasswordEvents>) => CatalogElementNode;
|
|
48
|
+
export declare const Percentage: (input: ComponentInputs<PercentageProps, PercentageEvents>) => CatalogElementNode;
|
|
49
|
+
export declare const Phone: (input: ComponentInputs<PhoneProps, PhoneEvents>) => CatalogElementNode;
|
|
50
|
+
export declare const Pressable: (input: ComponentInputs<PressableProps, PressableEvents, true>) => CatalogElementNode;
|
|
51
|
+
export declare const ProgressIndicator: (input: ComponentInputs<ProgressIndicatorProps, ProgressIndicatorEvents>) => CatalogElementNode;
|
|
52
|
+
export declare const Radio: (input: ComponentInputs<RadioProps, RadioEvents>) => CatalogElementNode;
|
|
53
|
+
export declare const RadioGroup: (input: ComponentInputs<RadioGroupProps, RadioGroupEvents>) => CatalogElementNode;
|
|
54
|
+
export declare const Search: (input: ComponentInputs<SearchProps, SearchEvents>) => CatalogElementNode;
|
|
55
|
+
export declare const SectionHeader: (input: ComponentInputs<SectionHeaderProps, SectionHeaderEvents>) => CatalogElementNode;
|
|
56
|
+
export declare const Select: (input: ComponentInputs<SelectProps, SelectEvents>) => CatalogElementNode;
|
|
57
|
+
export declare const SelectChips: (input: ComponentInputs<SelectChipsProps, SelectChipsEvents>) => CatalogElementNode;
|
|
58
|
+
export declare const Signature: (input: ComponentInputs<SignatureProps, SignatureEvents>) => CatalogElementNode;
|
|
59
|
+
export declare const Sin: (input: ComponentInputs<SinProps, SinEvents>) => CatalogElementNode;
|
|
60
|
+
export declare const Slider: (input: ComponentInputs<SliderProps, SliderEvents>) => CatalogElementNode;
|
|
61
|
+
export declare const SliderRange: (input: ComponentInputs<SliderRangeProps, SliderRangeEvents>) => CatalogElementNode;
|
|
62
|
+
export declare const SnackBar: (input: ComponentInputs<SnackBarProps, SnackBarEvents>) => CatalogElementNode;
|
|
63
|
+
export declare const Spacer: (input: ComponentInputs<SpacerProps, SpacerEvents>) => CatalogElementNode;
|
|
64
|
+
export declare const Spinner: (input: ComponentInputs<SpinnerProps, SpinnerEvents>) => CatalogElementNode;
|
|
65
|
+
export declare const Ssn: (input: ComponentInputs<SsnProps, SsnEvents>) => CatalogElementNode;
|
|
66
|
+
export declare const Status: (input: ComponentInputs<StatusProps, StatusEvents>) => CatalogElementNode;
|
|
67
|
+
export declare const StatusBar: (input: ComponentInputs<StatusBarProps, StatusBarEvents>) => CatalogElementNode;
|
|
68
|
+
export declare const Switch: (input: ComponentInputs<SwitchProps, SwitchEvents>) => CatalogElementNode;
|
|
69
|
+
export declare const Tabs: (input: ComponentInputs<TabsProps, TabsEvents>) => CatalogElementNode;
|
|
70
|
+
export declare const Text: (input: ComponentInputs<TextProps, TextEvents>) => CatalogElementNode;
|
|
71
|
+
export declare const Textarea: (input: ComponentInputs<TextareaProps, TextareaEvents>) => CatalogElementNode;
|
|
72
|
+
export declare const Time: (input: ComponentInputs<TimeProps, TimeEvents>) => CatalogElementNode;
|
|
73
|
+
export declare const TimeRange: (input: ComponentInputs<TimeRangeProps, TimeRangeEvents>) => CatalogElementNode;
|
|
74
|
+
export declare const Tip: (input: ComponentInputs<TipProps, TipEvents, true>) => CatalogElementNode;
|
|
75
|
+
export declare const VStack: (input: ComponentInputs<VStackProps, VStackEvents, true>) => CatalogElementNode;
|
|
76
|
+
export declare const Widget: (input: ComponentInputs<WidgetProps, WidgetEvents, true>) => CatalogElementNode;
|
|
77
|
+
export declare const WorkEmail: (input: ComponentInputs<WorkEmailProps, WorkEmailEvents>) => CatalogElementNode;
|
|
78
|
+
export {};
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { DateTimeAddParamsOption, DateTimeFormatParamsOption, Duration } from './component-props';
|
|
2
|
+
export interface CurrencyFormatParams {
|
|
3
|
+
currencyCode?: string;
|
|
4
|
+
value: unknown;
|
|
5
|
+
[key: string]: unknown | string | undefined;
|
|
6
|
+
}
|
|
7
|
+
export interface CurrencyGetCurrencyCodeByCountryCodeParams {
|
|
8
|
+
value: string;
|
|
9
|
+
}
|
|
10
|
+
export interface CurrencyGetCurrencyNameByCodeParams {
|
|
11
|
+
value: string;
|
|
12
|
+
}
|
|
13
|
+
export interface CurrencyGetCurrencySymbolParams {
|
|
14
|
+
value?: string;
|
|
15
|
+
[key: string]: unknown | string | undefined;
|
|
16
|
+
}
|
|
17
|
+
export interface CurrencyIsConvertableToCurrencyParams {
|
|
18
|
+
decimalDenote?: string;
|
|
19
|
+
value: unknown;
|
|
20
|
+
}
|
|
21
|
+
export interface CurrencyToMoneyParams {
|
|
22
|
+
value: unknown;
|
|
23
|
+
[key: string]: unknown;
|
|
24
|
+
}
|
|
25
|
+
export interface DateTimeAddParams {
|
|
26
|
+
duration: Duration;
|
|
27
|
+
options?: DateTimeAddParamsOption;
|
|
28
|
+
value: string;
|
|
29
|
+
[key: string]: unknown | Duration | DateTimeAddParamsOption | string | undefined;
|
|
30
|
+
}
|
|
31
|
+
export interface DateTimeFormatParams {
|
|
32
|
+
options?: DateTimeFormatParamsOption;
|
|
33
|
+
tokens?: unknown;
|
|
34
|
+
value: string;
|
|
35
|
+
[key: string]: unknown | DateTimeFormatParamsOption | string | undefined;
|
|
36
|
+
}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { ComputedRef, WrapWithActionParamValue } from '../../core/expressions';
|
|
2
|
+
import { CurrencyFormatParams, CurrencyGetCurrencyCodeByCountryCodeParams, CurrencyGetCurrencyNameByCodeParams, CurrencyGetCurrencySymbolParams, CurrencyIsConvertableToCurrencyParams, CurrencyToMoneyParams, DateTimeAddParams, DateTimeFormatParams } from './function-params';
|
|
3
|
+
/**
|
|
4
|
+
* Format an amount as currency (symbol/code + grouped decimals) using app currency
|
|
5
|
+
* utilities.
|
|
6
|
+
*/
|
|
7
|
+
export declare const currencyFormat: (args: WrapWithActionParamValue<CurrencyFormatParams>) => ComputedRef<unknown>;
|
|
8
|
+
/**
|
|
9
|
+
* Map an ISO 3166-1 alpha-2 country code to its primary ISO 4217 currency code.
|
|
10
|
+
*/
|
|
11
|
+
export declare const currencyGetCurrencyCodeByCountryCode: (args: WrapWithActionParamValue<CurrencyGetCurrencyCodeByCountryCodeParams>) => ComputedRef<unknown>;
|
|
12
|
+
/**
|
|
13
|
+
* Human-readable currency name for an ISO 4217 code (e.g. USD → US Dollar).
|
|
14
|
+
*/
|
|
15
|
+
export declare const currencyGetCurrencyNameByCode: (args: WrapWithActionParamValue<CurrencyGetCurrencyNameByCodeParams>) => ComputedRef<unknown>;
|
|
16
|
+
/**
|
|
17
|
+
* Resolve the display symbol (or code fallback) for a currency code.
|
|
18
|
+
*/
|
|
19
|
+
export declare const currencyGetCurrencySymbol: (args: WrapWithActionParamValue<CurrencyGetCurrencySymbolParams>) => ComputedRef<unknown>;
|
|
20
|
+
/**
|
|
21
|
+
* Whether the given value can be interpreted as a number string (delegates to
|
|
22
|
+
* `CurrencyUtils.isConvertableToCurrency`).
|
|
23
|
+
*/
|
|
24
|
+
export declare const currencyIsConvertableToCurrency: (args: WrapWithActionParamValue<CurrencyIsConvertableToCurrencyParams>) => ComputedRef<unknown>;
|
|
25
|
+
/**
|
|
26
|
+
* Format a numeric amount with locale-aware grouping/decimals (no currency symbol).
|
|
27
|
+
*/
|
|
28
|
+
export declare const currencyToMoney: (args: WrapWithActionParamValue<CurrencyToMoneyParams>) => ComputedRef<unknown>;
|
|
29
|
+
/**
|
|
30
|
+
* Add a duration to a datetime and return the resulting `Date` via `DateTimeUtils.add`.
|
|
31
|
+
*/
|
|
32
|
+
export declare const dateTimeAdd: (args: WrapWithActionParamValue<DateTimeAddParams>) => ComputedRef<unknown>;
|
|
33
|
+
/**
|
|
34
|
+
* Format a datetime for display via `DateTimeUtils.format` using preset tokens and
|
|
35
|
+
* optional format options.
|
|
36
|
+
*/
|
|
37
|
+
export declare const dateTimeFormat: (args: WrapWithActionParamValue<DateTimeFormatParams>) => ComputedRef<unknown>;
|