@vectoriox/iox-builder 1.4.15 → 1.4.17

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.
@@ -1484,10 +1484,12 @@ var TraitInputType;
1484
1484
  TraitInputType["DirectionalSize"] = "directionalSize";
1485
1485
  TraitInputType["SelectButton"] = "selectButton";
1486
1486
  TraitInputType["Scrub"] = "scrub";
1487
+ TraitInputType["Range"] = "range";
1487
1488
  TraitInputType["Icon"] = "icon";
1488
1489
  TraitInputType["Media"] = "media";
1489
1490
  TraitInputType["FontFamily"] = "fontFamily";
1490
1491
  TraitInputType["GridTemplate"] = "gridTemplate";
1492
+ TraitInputType["SectionLabel"] = "sectionLabel";
1491
1493
  })(TraitInputType || (TraitInputType = {}));
1492
1494
  function generateNodeId() {
1493
1495
  return Math.random().toString(36).substr(2, 9);
@@ -1547,6 +1549,8 @@ function resolveTraitControllerType(type) {
1547
1549
  case TraitInputType.DirectionalSize: return 'directionalSize';
1548
1550
  case TraitInputType.SelectButton: return 'selectButton';
1549
1551
  case TraitInputType.Scrub: return 'scrub';
1552
+ case TraitInputType.Range: return 'range';
1553
+ case TraitInputType.SectionLabel: return 'sectionLabel';
1550
1554
  case TraitInputType.Icon: return 'icon';
1551
1555
  case TraitInputType.Media: return 'media';
1552
1556
  case TraitInputType.FontFamily: return 'select';
@@ -1559,6 +1563,7 @@ function resolveTraitOptions(trait) {
1559
1563
  trait.type === TraitInputType.DirectionalSize ||
1560
1564
  trait.type === TraitInputType.SelectButton ||
1561
1565
  trait.type === TraitInputType.Scrub ||
1566
+ trait.type === TraitInputType.Range ||
1562
1567
  trait.type === TraitInputType.Media) {
1563
1568
  return trait.options;
1564
1569
  }
@@ -1744,6 +1749,7 @@ class TypographyGroupStyleConfig extends GroupStyleConfig {
1744
1749
  class EffectsGroupStyleConfig extends GroupStyleConfig {
1745
1750
  constructor() {
1746
1751
  super(StyleCategory.Effects, [
1752
+ // ── Visibility ────────────────────────────────────────
1747
1753
  new TraitConfig('opacity', 'Opacity', TraitInputType.Scrub, { min: 0, max: 1, step: 0.01, units: [''] }, '1'),
1748
1754
  new TraitConfig('mixBlendMode', 'Blend Mode', TraitInputType.Select, [
1749
1755
  'normal', 'multiply', 'screen', 'overlay', 'darken', 'lighten',
@@ -1754,6 +1760,42 @@ class EffectsGroupStyleConfig extends GroupStyleConfig {
1754
1760
  'auto', 'default', 'pointer', 'text', 'move', 'not-allowed',
1755
1761
  'grab', 'grabbing', 'crosshair', 'zoom-in', 'zoom-out', 'none',
1756
1762
  ], 'auto'),
1763
+ // ── Shadow ────────────────────────────────────────────
1764
+ new TraitConfig('_sep_shadow', 'Shadow', TraitInputType.SectionLabel),
1765
+ new TraitConfig('boxShadow', 'Box Shadow', TraitInputType.Text, undefined, ''),
1766
+ new TraitConfig('textShadow', 'Text Shadow', TraitInputType.Text, undefined, ''),
1767
+ // ── Transform (virtual — composed to CSS transform: …) ─
1768
+ new TraitConfig('_sep_transform', 'Transform', TraitInputType.SectionLabel),
1769
+ new TraitConfig('translateX', 'TX', TraitInputType.Scrub, { min: -2000, max: 2000, step: 1, units: UNITS_ALL }, '0px', true),
1770
+ new TraitConfig('translateY', 'TY', TraitInputType.Scrub, { min: -2000, max: 2000, step: 1, units: UNITS_ALL }, '0px', true),
1771
+ new TraitConfig('scaleX', 'Scale X', TraitInputType.Range, { min: 0, max: 3, step: 0.01, showExtremes: false, showValue: true, compact: true }, '1'),
1772
+ new TraitConfig('scaleY', 'Scale Y', TraitInputType.Range, { min: 0, max: 3, step: 0.01, showExtremes: false, showValue: true, compact: true }, '1'),
1773
+ new TraitConfig('rotate', 'Rotate', TraitInputType.Scrub, { min: -360, max: 360, step: 1, units: UNITS_DEG }, '0deg', true),
1774
+ new TraitConfig('skewX', 'Skew X', TraitInputType.Scrub, { min: -180, max: 180, step: 1, units: UNITS_DEG }, '0deg', true),
1775
+ new TraitConfig('skewY', 'Skew Y', TraitInputType.Scrub, { min: -180, max: 180, step: 1, units: UNITS_DEG }, '0deg', true),
1776
+ // ── Filter (virtual — composed to CSS filter: …) ──────
1777
+ new TraitConfig('_sep_filter', 'Filter', TraitInputType.SectionLabel),
1778
+ new TraitConfig('filterBlur', 'Blur', TraitInputType.Scrub, { min: 0, max: 50, step: 1, units: ['px'] }, '0px', true),
1779
+ new TraitConfig('filterHueRotate', 'Hue Rotate', TraitInputType.Scrub, { min: 0, max: 360, step: 1, units: UNITS_DEG }, '0deg', true),
1780
+ new TraitConfig('filterBrightness', 'Brightness', TraitInputType.Range, { min: 0, max: 3, step: 0.05, showExtremes: false, showValue: true, compact: true }, '1'),
1781
+ new TraitConfig('filterContrast', 'Contrast', TraitInputType.Range, { min: 0, max: 3, step: 0.05, showExtremes: false, showValue: true, compact: true }, '1'),
1782
+ new TraitConfig('filterSaturate', 'Saturate', TraitInputType.Range, { min: 0, max: 3, step: 0.05, showExtremes: false, showValue: true, compact: true }, '1'),
1783
+ new TraitConfig('filterGrayscale', 'Grayscale', TraitInputType.Range, { min: 0, max: 1, step: 0.05, showExtremes: false, showValue: true, compact: true }, '0'),
1784
+ new TraitConfig('filterSepia', 'Sepia', TraitInputType.Range, { min: 0, max: 1, step: 0.05, showExtremes: false, showValue: true, compact: true }, '0'),
1785
+ new TraitConfig('filterInvert', 'Invert', TraitInputType.Range, { min: 0, max: 1, step: 0.05, showExtremes: false, showValue: true, compact: true }, '0'),
1786
+ // ── Backdrop filter (virtual — composed to CSS backdrop-filter: …)
1787
+ new TraitConfig('_sep_backdrop', 'Backdrop', TraitInputType.SectionLabel),
1788
+ new TraitConfig('backdropBlur', 'Blur', TraitInputType.Scrub, { min: 0, max: 50, step: 1, units: ['px'] }, '0px', true),
1789
+ new TraitConfig('backdropBrightness', 'Brightness', TraitInputType.Range, { min: 0, max: 3, step: 0.05, showExtremes: false, showValue: true, compact: true }, '1', true),
1790
+ new TraitConfig('backdropContrast', 'Contrast', TraitInputType.Range, { min: 0, max: 3, step: 0.05, showExtremes: false, showValue: true, compact: true }, '1', true),
1791
+ new TraitConfig('backdropSaturate', 'Saturate', TraitInputType.Range, { min: 0, max: 3, step: 0.05, showExtremes: false, showValue: true, compact: true }, '1', true),
1792
+ // ── Transition (virtual — composed to CSS transition: all …) ──
1793
+ new TraitConfig('_sep_transition', 'Transition', TraitInputType.SectionLabel),
1794
+ new TraitConfig('transitionDuration', 'Duration', TraitInputType.Scrub, { min: 0, max: 3000, step: 50, units: ['ms'] }, '0ms', true),
1795
+ new TraitConfig('transitionDelay', 'Delay', TraitInputType.Scrub, { min: 0, max: 2000, step: 50, units: ['ms'] }, '0ms', true),
1796
+ new TraitConfig('transitionTimingFunction', 'Easing', TraitInputType.Select, [
1797
+ 'ease', 'linear', 'ease-in', 'ease-out', 'ease-in-out',
1798
+ ], 'ease'),
1757
1799
  ]);
1758
1800
  }
1759
1801
  }