cxtms 1.9.268 → 1.9.269
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/package.json
CHANGED
|
@@ -51,6 +51,16 @@
|
|
|
51
51
|
"description": "Camera capture quality setting",
|
|
52
52
|
"default": "high"
|
|
53
53
|
},
|
|
54
|
+
"enableZoom": {
|
|
55
|
+
"type": "boolean",
|
|
56
|
+
"description": "On mobile, show camera zoom controls and remember the selected zoom per field",
|
|
57
|
+
"default": false
|
|
58
|
+
},
|
|
59
|
+
"cameraZoom": {
|
|
60
|
+
"type": "number",
|
|
61
|
+
"exclusiveMinimum": 0,
|
|
62
|
+
"description": "Initial camera zoom factor; on mobile it is clamped to the device-supported range"
|
|
63
|
+
},
|
|
54
64
|
"captureFormat": {
|
|
55
65
|
"type": "string",
|
|
56
66
|
"enum": ["jpeg", "png"],
|
|
@@ -455,6 +455,8 @@ still control the displayed label and stored value.
|
|
|
455
455
|
| `links` | `{entityType, entityId}[]` or template | More entities to link the same upload to: `Order`, `Contact`, `Job`, `TrackingEvent`. Entries whose `entityType` or `entityId` resolves empty are skipped |
|
|
456
456
|
| `category` | `string` | Attachment category (web) |
|
|
457
457
|
| `allowMultiple` / `allowCamera` / `clearAfterUpload` | `boolean` | Upload behavior |
|
|
458
|
+
| `enableZoom` | `boolean` | Mobile: show camera zoom controls and remember the selected zoom per field |
|
|
459
|
+
| `cameraZoom` | `number` | Mobile: initial/fixed camera zoom factor; device capabilities determine the available range |
|
|
458
460
|
| `maxSize` / `allowedExtensions` | `number` / `string[]` | File limits |
|
|
459
461
|
| `onUploaded` | actions | Runs after each upload; `attachment` is in scope |
|
|
460
462
|
|
|
@@ -94,25 +94,32 @@ MUI Button with icon, label, loading state, and action dispatch.
|
|
|
94
94
|
|
|
95
95
|
## dropdown
|
|
96
96
|
|
|
97
|
-
Action dropdown menu (not a form select)
|
|
97
|
+
Action dropdown menu (not a form select), with matching web and mobile behavior.
|
|
98
98
|
|
|
99
99
|
**Props:**
|
|
100
100
|
| Prop | Type | Description |
|
|
101
101
|
|------|------|-------------|
|
|
102
|
-
| `label` | `ILocalizeString` |
|
|
103
|
-
| `
|
|
102
|
+
| `label` | `ILocalizeString` | Optional trigger label; omit for a 40x40 icon-only more-actions button |
|
|
103
|
+
| `ariaLabel` | `ILocalizeString` | Accessible label for an icon-only trigger (default: `More actions`) |
|
|
104
|
+
| `icon` | `string` | Trigger icon (icon-only default: `tabler-dots-vertical`) |
|
|
104
105
|
| `name` | `string` | Component name |
|
|
105
106
|
| `items` | `MenuItem[]` | Menu items |
|
|
106
107
|
| `items[].label` | `ILocalizeString` | Item label |
|
|
107
108
|
| `items[].value` | `any` | Item key |
|
|
108
109
|
| `items[].disabled` | `string \| boolean` | Disable (template expression) |
|
|
109
110
|
| `items[].permission` | `string` | Permission gate — hidden if not granted |
|
|
111
|
+
| `items[].isVisible` / `isHidden` | expression | Visibility gates evaluated with variables, store, and form values |
|
|
112
|
+
| `items[].icon` | `string` | Leading item icon |
|
|
113
|
+
| `items[].color` | `string` | Semantic color; use `error` for destructive actions |
|
|
114
|
+
| `items[].divider` | `boolean` | Render a separator instead of an action |
|
|
110
115
|
| `items[].onClick` | `action[]` | Per-item action |
|
|
111
116
|
| `options.size` | `string` | Button size (default: `medium`) |
|
|
112
117
|
| `options.variant` | `string` | Button variant (default: `outlined`) |
|
|
113
118
|
|
|
114
119
|
**Events:** `onClick` (button level), `items[].onClick` (per item)
|
|
115
120
|
|
|
121
|
+
Leading, trailing, and duplicate dividers are removed after visibility filtering. If no actionable items remain, the trigger is not rendered.
|
|
122
|
+
|
|
116
123
|
```yaml
|
|
117
124
|
component: dropdown
|
|
118
125
|
name: actionsDropdown
|