@rippling/pebble-sdui-mobile 0.15.0 → 0.16.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.
Files changed (29) hide show
  1. package/dist/catalogs/custom-apps/index.cjs +9 -2
  2. package/dist/catalogs/custom-apps/index.cjs.map +1 -1
  3. package/dist/catalogs/custom-apps/index.js +5172 -188
  4. package/dist/catalogs/custom-apps/index.js.map +1 -1
  5. package/package.json +1 -6
  6. package/dist/2020-BHvuyx7H.cjs +0 -9
  7. package/dist/2020-BHvuyx7H.cjs.map +0 -1
  8. package/dist/2020-CtiehJXS.js +0 -4988
  9. package/dist/2020-CtiehJXS.js.map +0 -1
  10. package/dist/catalogs/core/action-params.d.ts +0 -24
  11. package/dist/catalogs/core/actions.d.ts +0 -8
  12. package/dist/catalogs/core/catalog.d.ts +0 -33
  13. package/dist/catalogs/core/component-events.d.ts +0 -87
  14. package/dist/catalogs/core/component-props.d.ts +0 -1866
  15. package/dist/catalogs/core/components.d.ts +0 -88
  16. package/dist/catalogs/core/function-params.d.ts +0 -36
  17. package/dist/catalogs/core/functions.d.ts +0 -37
  18. package/dist/catalogs/core/index.cjs +0 -3
  19. package/dist/catalogs/core/index.cjs.map +0 -1
  20. package/dist/catalogs/core/index.d.ts +0 -15
  21. package/dist/catalogs/core/index.js +0 -11070
  22. package/dist/catalogs/core/index.js.map +0 -1
  23. package/dist/catalogs/core/render.d.ts +0 -20
  24. package/dist/docs/typescript/mobile/catalogs/core/actions.md +0 -151
  25. package/dist/docs/typescript/mobile/catalogs/core/components.md +0 -2314
  26. package/dist/docs/typescript/mobile/catalogs/core/computed-functions.md +0 -162
  27. package/dist/docs/typescript/mobile/catalogs/core/definitions.md +0 -3894
  28. package/dist/docs/typescript/mobile/catalogs/core/readme.md +0 -16
  29. package/dist/docs/typescript/mobile/catalogs/core/types.md +0 -1585
@@ -1,162 +0,0 @@
1
- <!-- Auto-generated from catalogs/core.catalog.json; do not edit directly. -->
2
- # core Computed Functions
3
-
4
- Import computed function helpers from `@rippling/pebble-sdui-mobile/catalogs/core`. Read [definitions.md](./definitions.md) for enum values linked from param tables.
5
-
6
- ## currencyFormat
7
-
8
- Format an amount as currency (symbol/code + grouped decimals) using app currency utilities.
9
-
10
- `value` (required): numeric amount as a number or string.
11
- `currencyCode` (optional): ISO 4217 code (e.g. `"USD"`). Defaults to USD when omitted.
12
- Other resolved keys are passed as `CurrencyFormatOptions` (e.g. `decimalPlaces`, `trimZeroDecimal`, `enforceDecimal`, `locale`).
13
-
14
- Catalog key: `currency_format`
15
- Helper: `currencyFormat`
16
- Params type: `CurrencyFormatParams`
17
-
18
- ### Params
19
-
20
- | Name | Required | Type | Description |
21
- |---|---:|---|---|
22
- | `currencyCode` | no | string | ISO 4217 currency code. |
23
- | `value` | yes | unknown | Amount to format. |
24
-
25
- Additional properties: unknown.
26
-
27
- ## currencyGetCurrencyCodeByCountryCode
28
-
29
- Map an ISO 3166-1 alpha-2 country code to its primary ISO 4217 currency code.
30
-
31
- `value` (required): two-letter country code (e.g. `"US"`).
32
-
33
- Catalog key: `currency_getCurrencyCodeByCountryCode`
34
- Helper: `currencyGetCurrencyCodeByCountryCode`
35
- Params type: `CurrencyGetCurrencyCodeByCountryCodeParams`
36
-
37
- ### Params
38
-
39
- | Name | Required | Type | Description |
40
- |---|---:|---|---|
41
- | `value` | yes | string | Single string argument (see function description). |
42
-
43
- No additional properties.
44
-
45
- ## currencyGetCurrencyNameByCode
46
-
47
- Human-readable currency name for an ISO 4217 code (e.g. USD → US Dollar).
48
-
49
- `value` (required): ISO 4217 currency code.
50
-
51
- Catalog key: `currency_getCurrencyNameByCode`
52
- Helper: `currencyGetCurrencyNameByCode`
53
- Params type: `CurrencyGetCurrencyNameByCodeParams`
54
-
55
- ### Params
56
-
57
- | Name | Required | Type | Description |
58
- |---|---:|---|---|
59
- | `value` | yes | string | Single string argument (see function description). |
60
-
61
- No additional properties.
62
-
63
- ## currencyGetCurrencySymbol
64
-
65
- Resolve the display symbol (or code fallback) for a currency code.
66
-
67
- `value` (optional): ISO 4217 currency code; omit to use the default (USD).
68
- Other keys are passed as symbol options (`shouldReturnSymbol`, `locale`, `shouldReturnNonLocalizedSymbol`).
69
-
70
- Catalog key: `currency_getCurrencySymbol`
71
- Helper: `currencyGetCurrencySymbol`
72
- Params type: `CurrencyGetCurrencySymbolParams`
73
-
74
- ### Params
75
-
76
- | Name | Required | Type | Description |
77
- |---|---:|---|---|
78
- | `value` | no | string | Currency code to resolve a symbol for. |
79
-
80
- Additional properties: unknown.
81
-
82
- ## currencyIsConvertableToCurrency
83
-
84
- Whether the given value can be interpreted as a number string (delegates to `CurrencyUtils.isConvertableToCurrency`).
85
-
86
- `value`: candidate to test. Optional `decimalDenote` for locale-specific decimal separators.
87
-
88
- Catalog key: `currency_isConvertableToCurrency`
89
- Helper: `currencyIsConvertableToCurrency`
90
- Params type: `CurrencyIsConvertableToCurrencyParams`
91
-
92
- ### Params
93
-
94
- | Name | Required | Type | Description |
95
- |---|---:|---|---|
96
- | `decimalDenote` | no | string | Optional decimal separator character when parsing strings. |
97
- | `value` | yes | unknown | Candidate string to test for numeric conversion. |
98
-
99
- No additional properties.
100
-
101
- ## currencyToMoney
102
-
103
- Format a numeric amount with locale-aware grouping/decimals (no currency symbol).
104
-
105
- `value` (required): number or string amount.
106
- Other resolved keys are passed as number-format options (grouping/decimals/locale) — same as `CurrencyUtils.toMoney` / underlying number `format`.
107
-
108
- Catalog key: `currency_toMoney`
109
- Helper: `currencyToMoney`
110
- Params type: `CurrencyToMoneyParams`
111
-
112
- ### Params
113
-
114
- | Name | Required | Type | Description |
115
- |---|---:|---|---|
116
- | `value` | yes | unknown | Amount to format as a localized number string. |
117
-
118
- Additional properties: unknown.
119
-
120
- ## dateTimeAdd
121
-
122
- Add a duration to a datetime and return the resulting `Date` via `DateTimeUtils.add`.
123
-
124
- `value` (required): ISO 8601 date/time string or resolved `Date` to add duration to.
125
- `duration` (required): `Duration` object with optional numeric fields: `years`, `months`, `weeks`, `days`, `hours`, `minutes`, `seconds`.
126
- `options` (optional): `AddOptions` (e.g. `parseFormat`, `parseTimeZone`) passed as the third argument to `DateTimeUtils.add`.
127
-
128
- Catalog key: `dateTime_add`
129
- Helper: `dateTimeAdd`
130
- Params type: `DateTimeAddParams`
131
-
132
- ### Params
133
-
134
- | Name | Required | Type | Description |
135
- |---|---:|---|---|
136
- | `duration` | yes | [Duration](./types.md#duration) | Duration to add — object with optional years, months, weeks, days, hours, minutes, seconds. |
137
- | `options` | no | [DateTimeAddParamsOption](./types.md#datetimeaddparamsoption) | Optional AddOptions (parseFormat, parseTimeZone). |
138
- | `value` | yes | string | Base datetime input (ISO string or resolved date). |
139
-
140
- Additional properties: unknown.
141
-
142
- ## dateTimeFormat
143
-
144
- Format a datetime for display via `DateTimeUtils.format` using preset tokens and optional format options.
145
-
146
- `value` (required): ISO 8601 date/time string or another value the renderer resolves to a `Date` or datetime string before invoking the function.
147
- `tokens` (optional): `FormatStyle` for `DateTimeUtils.format` — a preset string (e.g. `"medium"`) or an object with optional `date`, `time`, and/or `weekday` preset strings. See Rippling `FormatTokens` / `DateTimeUtils.format` for supported preset names.
148
- `options` (optional): `FormatOptions` passed as the third argument (e.g. `parseFormat`, `timeZone`, `parseTimeZone`, `unit`).
149
-
150
- Catalog key: `dateTime_format`
151
- Helper: `dateTimeFormat`
152
- Params type: `DateTimeFormatParams`
153
-
154
- ### Params
155
-
156
- | Name | Required | Type | Description |
157
- |---|---:|---|---|
158
- | `options` | no | [DateTimeFormatParamsOption](./types.md#datetimeformatparamsoption) | Optional FormatOptions (parseFormat, timeZone, parseTimeZone, unit). |
159
- | `tokens` | no | string \| [Token](./types.md#token) | FormatStyle preset(s) for DateTimeUtils.format — string or { date?, time?, weekday? } with string values. |
160
- | `value` | yes | string | Primary datetime input (ISO string or resolved date). |
161
-
162
- Additional properties: unknown.