@vectoriox/iox-builder 2.8.0 → 2.8.1
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.
|
@@ -227,6 +227,7 @@ function resolveTraitControllerType(type) {
|
|
|
227
227
|
case TraitInputType.SectionLabel: return 'sectionLabel';
|
|
228
228
|
case TraitInputType.Icon: return 'icon';
|
|
229
229
|
case TraitInputType.Media: return 'media';
|
|
230
|
+
case TraitInputType.MediaList: return 'mediaList';
|
|
230
231
|
case TraitInputType.FontFamily: return 'select';
|
|
231
232
|
case TraitInputType.GridTemplate: return 'gridTemplate';
|
|
232
233
|
case TraitInputType.Textarea: return 'textarea';
|
|
@@ -8023,23 +8024,26 @@ class GalleryConfig extends ComponentConfig {
|
|
|
8023
8024
|
new TraitConfig('__playbackLabel', 'Playback', TraitInputType.SectionLabel),
|
|
8024
8025
|
// Effect is a Select scaffolded for future effects; v1 lists only Fade.
|
|
8025
8026
|
new TraitConfig('effect', 'Effect', TraitInputType.Select, [{ label: 'Fade', value: 'fade' }], 'fade'),
|
|
8026
|
-
|
|
8027
|
-
new TraitConfig('
|
|
8027
|
+
// Durations are milliseconds — use a plain Number field (Scrub renders a px unit label).
|
|
8028
|
+
new TraitConfig('showDuration', 'Show duration (ms)', TraitInputType.Number, undefined, 4000),
|
|
8029
|
+
new TraitConfig('fadeDuration', 'Fade duration (ms)', TraitInputType.Number, undefined, 1000),
|
|
8028
8030
|
new TraitConfig('autoStart', 'Auto start', TraitInputType.Checkbox, undefined, true),
|
|
8029
8031
|
];
|
|
8030
|
-
//
|
|
8031
|
-
// (not text-bearing) and no border by default — "only size and spacing" per the brief.
|
|
8032
|
+
// Styling: size + spacing + border + background (letterbox). No typography (not text-bearing).
|
|
8032
8033
|
this.styleTraits = [
|
|
8033
8034
|
new PositionGroupStyleConfig(),
|
|
8034
8035
|
new SizeGroupStyleConfig(),
|
|
8035
8036
|
new SpacingGroupStyleConfig(),
|
|
8037
|
+
new BorderGroupStyleConfig(),
|
|
8036
8038
|
new BackgroundGroupStyleConfig(),
|
|
8037
8039
|
];
|
|
8038
|
-
//
|
|
8039
|
-
//
|
|
8040
|
+
// Size traits stay at their group default (auto) so a gallery starts unconstrained. The one
|
|
8041
|
+
// exception is `minHeight: 200px` — the image layers are absolutely positioned (no intrinsic
|
|
8042
|
+
// height), so without a floor a freshly-dropped, unsized gallery would collapse to 0px and be
|
|
8043
|
+
// invisible. min-height is a style-engine default on `.iox-node` (not scoped component CSS),
|
|
8044
|
+
// so the user can freely override it.
|
|
8040
8045
|
this.applyStyleDefaults({
|
|
8041
|
-
|
|
8042
|
-
aspectRatio: '16/9',
|
|
8046
|
+
minHeight: '200px',
|
|
8043
8047
|
backgroundColor: '#000000',
|
|
8044
8048
|
});
|
|
8045
8049
|
}
|