@vectoriox/iox-builder 4.2.0 → 4.3.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.
|
@@ -8636,6 +8636,55 @@ function reorderProps(count, from, to) {
|
|
|
8636
8636
|
return orderByChild;
|
|
8637
8637
|
}
|
|
8638
8638
|
|
|
8639
|
+
/**
|
|
8640
|
+
* ESSENTIALS (B3) — the handful of style controls that matter first for each component type.
|
|
8641
|
+
*
|
|
8642
|
+
* The style panel carries 94 controls across ten groups, ranked by nothing: the control you want for
|
|
8643
|
+
* a heading sits at the same visual weight as `backdrop-filter`. The panel shows this short list in
|
|
8644
|
+
* a band at the top; everything else stays exactly where it is, one click away, and reachable by
|
|
8645
|
+
* search. Nothing is removed and nothing changes group.
|
|
8646
|
+
*
|
|
8647
|
+
* A data table, not per-component code: adding a type is one row. Types with no row fall back to
|
|
8648
|
+
* `DEFAULT_ESSENTIAL_TRAITS`, so a new component is never worse off than today.
|
|
8649
|
+
*/
|
|
8650
|
+
const ESSENTIAL_TRAITS_BY_TYPE = Object.freeze({
|
|
8651
|
+
Heading: ['fontFamily', 'fontSize', 'fontWeight', 'color', 'textAlign', 'margin'],
|
|
8652
|
+
Text: ['fontFamily', 'fontSize', 'color', 'lineHeight', 'textAlign', 'margin'],
|
|
8653
|
+
Button: ['backgroundColor', 'color', 'padding', 'borderRadius', 'fontSize'],
|
|
8654
|
+
ButtonBlock: ['backgroundColor', 'padding', 'borderRadius', 'width', 'justifyContent'],
|
|
8655
|
+
Link: ['color', 'fontSize', 'textDecoration', 'fontWeight'],
|
|
8656
|
+
Image: ['width', 'height', 'objectFit', 'aspectRatio', 'borderRadius'],
|
|
8657
|
+
Icon: ['fontSize', 'color'],
|
|
8658
|
+
Container: ['display', 'flexDirection', 'gap', 'padding', 'width', 'backgroundColor'],
|
|
8659
|
+
LinkedContainer: ['display', 'flexDirection', 'gap', 'padding', 'width', 'backgroundColor'],
|
|
8660
|
+
Section: ['padding', 'backgroundColor', 'minHeight', 'display', 'justifyContent'],
|
|
8661
|
+
Card: ['width', 'padding', 'backgroundColor', 'borderRadius', 'boxShadow'],
|
|
8662
|
+
List: ['display', 'gap', 'padding', 'markerColor'],
|
|
8663
|
+
ListItem: ['padding', 'fontSize', 'color'],
|
|
8664
|
+
Repeater: ['display', 'flexDirection', 'gap', 'gridTemplateColumns'],
|
|
8665
|
+
Divider: ['borderWidth', 'borderColor', 'width', 'margin'],
|
|
8666
|
+
Spacer: ['height'],
|
|
8667
|
+
SliderContainer: ['width', 'height', 'gap'],
|
|
8668
|
+
SliderSlide: ['width', 'padding', 'backgroundColor'],
|
|
8669
|
+
Gallery: ['width', 'aspectRatio', 'gap', 'borderRadius'],
|
|
8670
|
+
});
|
|
8671
|
+
/** For any type without its own row — size, spacing and background suit almost anything. */
|
|
8672
|
+
const DEFAULT_ESSENTIAL_TRAITS = Object.freeze(['width', 'height', 'padding', 'margin', 'backgroundColor']);
|
|
8673
|
+
/** The essential trait NAMES for a component type, in the order they should be shown. */
|
|
8674
|
+
function essentialTraitsFor(type) {
|
|
8675
|
+
return (type && ESSENTIAL_TRAITS_BY_TYPE[type]) || DEFAULT_ESSENTIAL_TRAITS;
|
|
8676
|
+
}
|
|
8677
|
+
/**
|
|
8678
|
+
* Does `label` or `name` match a control search? Case-insensitive substring on either, so "shadow"
|
|
8679
|
+
* finds `boxShadow` ("Box shadow") and "radius" finds `borderRadius`.
|
|
8680
|
+
*/
|
|
8681
|
+
function matchesControlSearch(name, label, term) {
|
|
8682
|
+
const needle = term.trim().toLowerCase();
|
|
8683
|
+
if (!needle)
|
|
8684
|
+
return true;
|
|
8685
|
+
return name.toLowerCase().includes(needle) || (label ?? '').toLowerCase().includes(needle);
|
|
8686
|
+
}
|
|
8687
|
+
|
|
8639
8688
|
class BuilderButtonComponentConfig extends ComponentConfig {
|
|
8640
8689
|
constructor() {
|
|
8641
8690
|
super('Button', 'app-builder-button', 'ph-thin ph-cursor-click', 'Basic');
|
|
@@ -9189,5 +9238,5 @@ class BuilderSpacerComponentConfig extends ComponentConfig {
|
|
|
9189
9238
|
* Generated bundle index. Do not edit.
|
|
9190
9239
|
*/
|
|
9191
9240
|
|
|
9192
|
-
export { ACTION_TYPE_OPTIONS, BREAKPOINT_PRESENTATION, BUILDER_CANVAS_CONTAINER, BackgroundGroupStyleConfig, BorderGroupStyleConfig, BreadcrumbBarComponent, BuilderButtonBlockComponent, BuilderButtonComponentConfig, BuilderClipboardService, BuilderComponent, BuilderContainerComponent, BuilderContainerComponentConfig, BuilderDataSourceService, BuilderDividerComponentConfig, BuilderHeadingComponentConfig, BuilderHistoryService, BuilderIconComponentConfig, BuilderImageComponentConfig, BuilderLinkComponentConfig, BuilderLinkedContainerComponent, BuilderLinkedContainerConfig, BuilderListComponentConfig, BuilderListItemComponentConfig, BuilderMode, BuilderRepeaterComponent, BuilderSpacerComponentConfig, ButtonBlockComponentConfig, CardComponentConfig, ChildLayoutGroupStyleConfig, ComponentConfig, ComponentRegistryService, DRAG_HANDLE_ATTR, DataSourceRegistryService, DataSourceType, DimensionsGroupStyleConfig, DragEngineService, EASING_OPTIONS$1 as EASING_OPTIONS, EffectsGroupStyleConfig, GalleryConfig, GroupStyleConfig, INTERACTION_STATES, INVERSE_ACTION, IOX_DATA_SOURCE_ENDPOINTS, IOX_FONT_MANAGER, InteractionEngineService, InteractionPresetRegistryService, IoxBuilderModule, IoxDraggableDirective, IoxDropzoneDirective, LayerTreeComponent, LayoutGroupStyleConfig, ListGroupStyleConfig, NodeAction, OverlayComponent, OverlayService, PanelChildComponent, PanelComponent, PanelEventService, PanelEventTypes, PanelTypes, PositionGroupStyleConfig, PresetRegistryService, RELATIONAL_STATES, RELATIONAL_STATE_BASE, ROUTE_ANIMATION_OPTIONS, RenderDirective, RepeaterComponentConfig, SCREEN_WIDTH_OPTIONS, STRUCTURAL_STATES, SUPPORTED_STATES, SectionComponent, SectionComponentConfig, SizeGroupStyleConfig, SliderContainerComponent, SliderContainerConfig, SliderSlideComponent, SliderSlideConfig, SpacingGroupStyleConfig, StyleCategory, StyleRegistryService, TraitConfig as StyleTraitConfig, SymbolRegistryService, TARGETED_STATES, TARGETED_STATE_BASE, TRIGGER_OPTIONS, TextBlockComponentConfig, ToolbarAction, ToolbarComponent, TraitConfig, TraitInputType, TypographyGroupStyleConfig, UNITS_ALL, UNITS_DEG, UNITS_FIXED, UNITS_NO_VW, ViewportService, ZOOM_OPTIONS, arrayItemSchemaFields, arraySchemaFields, buildFullStyleTraits, buildPresetStyleTraits, canFluidise, collapseColumnsProps, columnCountOf, defaultPageSettings, dropTargetLabel, findNodeLocation, findParentOf, flattenSchemaFields, fluidiseProps, generateNodeId, isHiddenAt, nodeAncestorPath, nodeAncestorPathInEither, reorderProps, resolveInsertTarget, resolveTraitControllerType, resolveTraitOptions, stackChildrenProps, visibilityProps, wrapNode };
|
|
9241
|
+
export { ACTION_TYPE_OPTIONS, BREAKPOINT_PRESENTATION, BUILDER_CANVAS_CONTAINER, BackgroundGroupStyleConfig, BorderGroupStyleConfig, BreadcrumbBarComponent, BuilderButtonBlockComponent, BuilderButtonComponentConfig, BuilderClipboardService, BuilderComponent, BuilderContainerComponent, BuilderContainerComponentConfig, BuilderDataSourceService, BuilderDividerComponentConfig, BuilderHeadingComponentConfig, BuilderHistoryService, BuilderIconComponentConfig, BuilderImageComponentConfig, BuilderLinkComponentConfig, BuilderLinkedContainerComponent, BuilderLinkedContainerConfig, BuilderListComponentConfig, BuilderListItemComponentConfig, BuilderMode, BuilderRepeaterComponent, BuilderSpacerComponentConfig, ButtonBlockComponentConfig, CardComponentConfig, ChildLayoutGroupStyleConfig, ComponentConfig, ComponentRegistryService, DEFAULT_ESSENTIAL_TRAITS, DRAG_HANDLE_ATTR, DataSourceRegistryService, DataSourceType, DimensionsGroupStyleConfig, DragEngineService, EASING_OPTIONS$1 as EASING_OPTIONS, ESSENTIAL_TRAITS_BY_TYPE, EffectsGroupStyleConfig, GalleryConfig, GroupStyleConfig, INTERACTION_STATES, INVERSE_ACTION, IOX_DATA_SOURCE_ENDPOINTS, IOX_FONT_MANAGER, InteractionEngineService, InteractionPresetRegistryService, IoxBuilderModule, IoxDraggableDirective, IoxDropzoneDirective, LayerTreeComponent, LayoutGroupStyleConfig, ListGroupStyleConfig, NodeAction, OverlayComponent, OverlayService, PanelChildComponent, PanelComponent, PanelEventService, PanelEventTypes, PanelTypes, PositionGroupStyleConfig, PresetRegistryService, RELATIONAL_STATES, RELATIONAL_STATE_BASE, ROUTE_ANIMATION_OPTIONS, RenderDirective, RepeaterComponentConfig, SCREEN_WIDTH_OPTIONS, STRUCTURAL_STATES, SUPPORTED_STATES, SectionComponent, SectionComponentConfig, SizeGroupStyleConfig, SliderContainerComponent, SliderContainerConfig, SliderSlideComponent, SliderSlideConfig, SpacingGroupStyleConfig, StyleCategory, StyleRegistryService, TraitConfig as StyleTraitConfig, SymbolRegistryService, TARGETED_STATES, TARGETED_STATE_BASE, TRIGGER_OPTIONS, TextBlockComponentConfig, ToolbarAction, ToolbarComponent, TraitConfig, TraitInputType, TypographyGroupStyleConfig, UNITS_ALL, UNITS_DEG, UNITS_FIXED, UNITS_NO_VW, ViewportService, ZOOM_OPTIONS, arrayItemSchemaFields, arraySchemaFields, buildFullStyleTraits, buildPresetStyleTraits, canFluidise, collapseColumnsProps, columnCountOf, defaultPageSettings, dropTargetLabel, essentialTraitsFor, findNodeLocation, findParentOf, flattenSchemaFields, fluidiseProps, generateNodeId, isHiddenAt, matchesControlSearch, nodeAncestorPath, nodeAncestorPathInEither, reorderProps, resolveInsertTarget, resolveTraitControllerType, resolveTraitOptions, stackChildrenProps, visibilityProps, wrapNode };
|
|
9193
9242
|
//# sourceMappingURL=vectoriox-iox-builder.mjs.map
|