@rippling/pebble-sdui-web 0.15.1 → 0.15.2
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-events.d.ts +1 -1
- package/dist/catalogs/custom-apps/component-props.d.ts +6 -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.js +221 -6
- package/dist/catalogs/custom-apps/index.js.map +1 -1
- package/dist/docs/typescript/web/catalogs/custom-apps/components.md +10 -4
- package/dist/docs/typescript/web/catalogs/custom-apps/definitions.md +1 -0
- package/dist/docs/typescript/web/catalogs/custom-apps/readme.md +1 -1
- package/dist/docs/typescript/web/catalogs/custom-apps/types.md +1 -1
- package/package.json +1 -1
|
@@ -1367,18 +1367,19 @@ No additional properties.
|
|
|
1367
1367
|
|
|
1368
1368
|
A popover menu that displays a list of actions or selectable options. Use for 3–15 choices triggered by a button; for form field selection, use Select instead.
|
|
1369
1369
|
|
|
1370
|
-
Bind value to state to track the selected option. The change event fires when the user selects an item and the selected item value is written to state. Bind dropdownIsOpen to state to observe open/close; the toggle event fires after dropdownIsOpen is updated. The list supports flat items, nested items with a list field, and {isSeparator: true}. triggerLabel
|
|
1370
|
+
Bind value to state to track the selected option. The change event fires when the user selects an item and the selected item value is written to state. Bind clickedValue to state to capture the last clicked item value for action-menu usage; the action event fires after clickedValue is updated. Bind dropdownIsOpen to state to observe open/close; the toggle event fires after dropdownIsOpen is updated. The list supports flat items, nested items with a list field, and {isSeparator: true}. The trigger supports three modes: label-only with triggerLabel, icon-only with triggerIcon, and icon-plus-label with both triggerIcon and triggerLabel. Provide triggerAriaLabel for icon-only triggers. Use triggerSize to control the trigger button size. Set showSelectedLabel to true to replace the visible trigger label with the selected option label; when triggerIcon is provided without triggerLabel, the trigger stays icon-only.
|
|
1371
1371
|
|
|
1372
1372
|
Catalog key: `Dropdown`
|
|
1373
1373
|
Builder: `Dropdown`
|
|
1374
1374
|
Props type: `DropdownProps`
|
|
1375
1375
|
Accepts children: no
|
|
1376
|
-
Events: `change`, `toggle`
|
|
1376
|
+
Events: `change`, `toggle`, `action`
|
|
1377
1377
|
|
|
1378
1378
|
### Props
|
|
1379
1379
|
|
|
1380
1380
|
| Name | Required | Type | Description |
|
|
1381
1381
|
|---|---:|---|---|
|
|
1382
|
+
| `clickedValue` | no | unknown | Bindable last clicked item value, written before the action event emits |
|
|
1382
1383
|
| `defaultValue` | no | unknown | Initially selected value |
|
|
1383
1384
|
| `dropdownIsOpen` | no | boolean | Bindable state written when the dropdown opens or closes |
|
|
1384
1385
|
| `footer` | no | [DropdownFooter](./types.md#dropdownfooter) | Footer item rendered at the bottom of the list |
|
|
@@ -1391,7 +1392,10 @@ Events: `change`, `toggle`
|
|
|
1391
1392
|
| `shouldAutoClose` | no | boolean | Auto-close after item selection |
|
|
1392
1393
|
| `shouldCloseOnScroll` | no | boolean | Close on document scroll |
|
|
1393
1394
|
| `showSelectedLabel` | no | boolean | Display the selected option label in the trigger. Defaults to false; empty or unmatched values use triggerLabel |
|
|
1394
|
-
| `
|
|
1395
|
+
| `triggerAriaLabel` | no | string | Accessible label for the trigger button. Recommended for icon-only triggers. |
|
|
1396
|
+
| `triggerIcon` | no | string | Icon.TYPES name to render in the dropdown trigger button. Provide it for icon-only or icon-plus-label triggers. |
|
|
1397
|
+
| `triggerLabel` | no | string | Visible label for the dropdown trigger button. Omit it for an icon-only trigger. |
|
|
1398
|
+
| `triggerSize` | no | [AppGroupSelectSize](./definitions.md#appgroupselectsize) | Size of the trigger button (XS, S, M, L). Default: M |
|
|
1395
1399
|
| `value` | no | unknown | Currently selected value. Bind to state for selection tracking |
|
|
1396
1400
|
| `width` | no | number | Width of the dropdown list in px. Default: 192 |
|
|
1397
1401
|
|
|
@@ -2200,6 +2204,7 @@ Use `validationErrors` to override default error messages per rule.
|
|
|
2200
2204
|
Bind `value` with `{ $bindState: "/path" }` to initialize the input from state and keep state in sync. Reads initial value from state (controlled); access current value in on.change actions via `{ $state: "/path" }`.
|
|
2201
2205
|
onChange emits "change"; onBlur emits "blur".
|
|
2202
2206
|
supportTypes expects file extensions with dot prefix, e.g. [".pdf", ".png", ".jpg"]. Do NOT use MIME types.
|
|
2207
|
+
Use metadata to pass JSON-serializable upload context through to the underlying FileDrop upload flow.
|
|
2203
2208
|
|
|
2204
2209
|
Catalog key: `FormFileDrop`
|
|
2205
2210
|
Builder: `FormFileDrop`
|
|
@@ -2223,6 +2228,7 @@ Events: `change`, `blur`
|
|
|
2223
2228
|
| `label` | no | string | Label text above the file drop area |
|
|
2224
2229
|
| `maxFileSize` | no | number | Max file size in MB per attachment |
|
|
2225
2230
|
| `maxTotalFileSize` | no | number | Max total size in MB for all attachments |
|
|
2231
|
+
| `metadata` | no | unknown | JSON-serializable metadata sent with upload requests |
|
|
2226
2232
|
| `multiPartUpload` | no | boolean | Enables multipart upload flow for files larger than 100MB |
|
|
2227
2233
|
| `multiple` | no | boolean | Allow selecting multiple files |
|
|
2228
2234
|
| `placeholder` | no | string | Text shown when no files are selected |
|
|
@@ -4928,7 +4934,7 @@ A responsive 12-column grid for dashboard widgets that supports drag-to-rearrang
|
|
|
4928
4934
|
|
|
4929
4935
|
**Children:** Each direct child element's spec id must match an entry in this board's `layouts` array. Children with no matching layout entry are dropped silently — keep the two in sync.
|
|
4930
4936
|
|
|
4931
|
-
**Layouts:** Each layout entry carries a unique `identifier` (= the matched child's spec id), optional `x`/`y` position in grid units, the size in grid units (width 1–12, height in row-height multiples), optional `minWidth`/`maxWidth`/`minHeight`/`maxHeight` constraints, and optional per-block styling (`border`, `shadow`, `shapeCorner`). When `x` or `y` is omitted, the board auto-calculates that coordinate.
|
|
4937
|
+
**Layouts:** Each layout entry carries a unique `identifier` (= the matched child's spec id), optional `x`/`y` position in grid units, the size in grid units (width 1–12 with a default of 3, height in row-height multiples), optional `minWidth`/`maxWidth`/`minHeight`/`maxHeight` constraints, and optional per-block styling (`border`, `shadow`, `shapeCorner`). `minWidth` defaults to 1. When `x` or `y` is omitted, the board auto-calculates that coordinate.
|
|
4932
4938
|
|
|
4933
4939
|
**Uniform styling:** Use top-level `blockShapeCorner` when every block should share the same border-radius; per-entry `shapeCorner` overrides it for that block only.
|
|
4934
4940
|
|
|
@@ -281,6 +281,7 @@ Referenced by:
|
|
|
281
281
|
| component | `Currency` | `size` |
|
|
282
282
|
| component | `Date` | `size` |
|
|
283
283
|
| component | `DateRange` | `size` |
|
|
284
|
+
| component | `Dropdown` | `triggerSize` |
|
|
284
285
|
| component | `Email` | `size` |
|
|
285
286
|
| component | `FloatingButton` | `size` |
|
|
286
287
|
| component | `FormDate` | `size` |
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
# custom-apps Catalog
|
|
3
3
|
|
|
4
4
|
Catalog: `custom-apps`
|
|
5
|
-
Version: `1.5.
|
|
5
|
+
Version: `1.5.4`
|
|
6
6
|
SDK language: `typescript`
|
|
7
7
|
|
|
8
8
|
Use this catalog index after you have chosen this catalog for the spec. Do not mix components, actions, computed functions, or render helpers from another catalog unless that catalog explicitly documents compatibility.
|
|
@@ -2901,7 +2901,7 @@ No additional properties.
|
|
|
2901
2901
|
| `maxHeight` | no | number | Maximum height in grid units |
|
|
2902
2902
|
| `maxWidth` | no | number | Maximum width in grid units |
|
|
2903
2903
|
| `minHeight` | no | number | Minimum height in grid units |
|
|
2904
|
-
| `minWidth` | no | number | Minimum width in grid units |
|
|
2904
|
+
| `minWidth` | no | number | Minimum width in grid units. Default: 1 |
|
|
2905
2905
|
| `shadow` | no | [LayoutValueShadow](./definitions.md#layoutvalueshadow) | Shadow token applied to the block wrapper, e.g. "shadowSm". |
|
|
2906
2906
|
| `shapeCorner` | no | [BoxRadius](./definitions.md#boxradius) | Shape-corner radius token for this block, e.g. "shapeCornerMd". Overrides the parent board `blockShapeCorner` for this entry only. |
|
|
2907
2907
|
| `width` | no | number | Width in grid units (1–12). Default: 3 |
|