@vectoriox/iox-builder 4.6.0 → 4.8.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/index.d.ts
CHANGED
|
@@ -386,6 +386,8 @@ interface ComponentTrait {
|
|
|
386
386
|
inline?: boolean;
|
|
387
387
|
/** When set, this trait is hidden unless the named sibling trait has one of the specified values. */
|
|
388
388
|
showWhen?: TraitShowCondition;
|
|
389
|
+
/** OPT-IN: may hold a different value per breakpoint (`responsive[bp].inputs`). See TraitConfig. */
|
|
390
|
+
responsive?: boolean;
|
|
389
391
|
}
|
|
390
392
|
type StyleTrait = ComponentTrait;
|
|
391
393
|
interface StyleTraitGroup {
|
|
@@ -427,7 +429,17 @@ declare class TraitConfig {
|
|
|
427
429
|
default?: any;
|
|
428
430
|
inline?: boolean;
|
|
429
431
|
showWhen?: TraitShowCondition;
|
|
430
|
-
|
|
432
|
+
/**
|
|
433
|
+
* OPT-IN: this trait can hold a different value per breakpoint, stored in
|
|
434
|
+
* `ComponentNode.responsive[bp].inputs` and resolved by the shared `resolveInputs`.
|
|
435
|
+
*
|
|
436
|
+
* Opt-in rather than universal because most traits are not layout decisions — a slider's
|
|
437
|
+
* `loop` or a link's `target` has one answer at every width, and offering a breakpoint control
|
|
438
|
+
* on all 30 slider traits would bury the three that matter. Set it only where the value is
|
|
439
|
+
* genuinely a per-width layout choice (slidesPerView, limit, …).
|
|
440
|
+
*/
|
|
441
|
+
responsive?: boolean;
|
|
442
|
+
constructor(name: string, label: string, type: TraitInputType, options?: string[] | TraitSelectOption[] | TraitOptionMap, defaultValue?: any, inline?: boolean, showWhen?: TraitShowCondition, responsive?: boolean);
|
|
431
443
|
}
|
|
432
444
|
|
|
433
445
|
declare class GroupStyleConfig {
|