@vectoriox/iox-builder 11.37.0 → 11.38.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.
|
@@ -20,7 +20,7 @@ import * as i2$1 from '@vectoriox/iox-ui';
|
|
|
20
20
|
import { nodeCssId, needsGroupName, resolveBoundValue, isBoundStyleProp, STRUCTURAL_STATES as STRUCTURAL_STATES$1, VALIDATION_STATES as VALIDATION_STATES$1, VALIDATION_STATE_CLASS as VALIDATION_STATE_CLASS$1, DEFAULT_WIDTH_BY_TYPE, TEXT_DIRECTION_KEY, TEXT_ALIGN_KEY, TextAlign, COLOR_SCHEME_TRAIT, COLOR_SCHEMES, ColorScheme, LinkType, MAX_LINES_KEY, A11yTrait, BREAKPOINTS, Breakpoint, withSchemeInk, stripSuppressedProps, DeclarationContext, planPartRule, gateHoverRule, planResponsiveRules, resolveStyleProps, planStateRule, splitOuterProps, OUTER_STYLE_PROPS, siteColumnOf, compileTokenCssBlocks, catalogFontId, fontsForTokens, GOOGLE_FONTS_FILE_ORIGIN, googleFontHref, compileDeclarations, isLastEmittedStateKey, wrapInBreakpointQuery, BreakpointQueryKind, NEW_NODE_STYLE_DEFAULTS, defaultElementStyleFor, applyElementStyle, planDataSource, dataSourcePlanToRequest, normalizeCollectionResult, resolveRepeaterItems, getByPath, computeRelative, PROGRESS_ATTRIBUTE, interactionMarkerAttributes, cascadeChain, attachScrollProgress, ContextStore, ENTRANCE_ACTION_TYPES, EXIT_ACTION_TYPES, ComponentInstanceRegistryService, syncInteractionMarkers, entranceStartsHidden, isActionEnabled, restoreCountUp, SCROLL_PROGRESS_TRIGGER, armInteractionCounts, splitPressFeedback, isHoverPointer, isContextAction, contextActionEffect, resolveContextValue, effectiveActionType, INTERACTION_HIDDEN_ATTRIBUTE, COUNT_UP_ACTION, motionAllowed, reducedEntranceRun, settleInteraction, settleModeFor, SettleMode, playInteraction, entranceDelay, repeatedRowIndex, resolveInteractionEasing, entrancePreStateStyle, buildInteractionKeyframes, showToast, declaredInputNames, emptyImagePlaceholder, syncNodeDesignClasses, nodeTraitValue, syncNodeA11yAttributes, nodeA11yAttributes, safeSetInput, colorSchemeOf, withStateTransitions, composeVirtualTraits, stateNamesIn, partClassName, applyBoundStyles, applyBoundStyle, switchElementStyle, releaseElementStyle, countOverrides, setOverride, breakpointDef, breakpointForWidth, FormRenderState, collectContextSlotKeys, withContextSlots, needsAccessibleName, resolveInputs, setInputOverride, barReserveClass, compilePageStyle, nodeUsesContext, attachTooltips, showToastDesign, TOOLTIP_ATTRIBUTE, hidingHeadersIn, HeaderRuntime, inkFollowingHeadersIn, HeaderInkRuntime, isScrolled, SCROLLED_ATTRIBUTE, syncSubmitButtons, IS_PREVIEW, buttonBlockHref, layerFrame, rectInLayer, placeFloating, FloatingAlign, popoverSide, bootSlider, IoxPageModule, PALETTE_PRESETS, elementStyleById, PART_CLASS_NAMES } from '@vectoriox/iox-ui';
|
|
21
21
|
export { ComponentInstanceRegistryService, VIRTUAL_TRAIT_KEYS, composeVirtualTraits } from '@vectoriox/iox-ui';
|
|
22
22
|
import { StructureEdit, isAccordionPart, isDisclosurePart, isSliderPart, isTabsPart, isSegmentedPart, structureRefusal, StructureRefusal, SegmentedRole, SEGMENTED_MAX_OPTIONS, AccordionRole, SEGMENTED_MIN_OPTIONS, isExclusiveItemPart, TabsRole, ITEM_OPEN_STATE, readStyle, isSegmentedRoot, segmentedDefaultOn, segmentedOptions, isTabsRoot, isTabsFromContent, tabsTriggers, isAccordionRoot, isAccordionFromContent, accordionItems, initialAccordionOpen, accordionBehaviour, exclusiveItemLabel, exclusiveRootOf, tabTriggerOf, tabLabel, removeTabPair, tabPanelOf, tabsListOf, tabsPanelsOf, nextTabKey, CompositeBehaviourTrait, ACCORDION_DEFAULT_ONS, TabsBehaviourTrait, TABS_ACTIVATE_ONS, TABS_ORIENTATIONS, MarqueeTrait, MarqueeSpeed, MarqueeDirection, PopupTrait, PopupKind, PopupForm, PopupArrive, PopupAgain, DIALOG_MODAL_TRAIT, DisclosureRole, isExclusiveTrigger, onCompositeItemState, isCompositeItemOn, runAccountAction, ShopActionType, runShopAction, runCompositeItemAction, shouldScrollToItem, rowIndexOf as rowIndexOf$1, slideIndexForRow, isMarqueeRoot, compositeScopeId, compositeRowKeys, isExclusiveRoot, ExclusiveRuntime, exclusiveDefaultOf, exclusiveLabelOf, exclusiveBehaviourOf, exclusiveKindOf, compositeKindOfRole, AccordionRuntime, isToggleKind, MarqueeRuntime, closestAccordionItem, isAnyCompositeRoot, SceneRole, isExclusiveList, buildCardRecipe, buildBadge, buildChip, buildAccordionRecipe, buildDisclosureRecipe, buildTabsRecipe, buildSegmentedRecipe, buildLightboxRecipe, buildMarqueeRecipe, buildCounterRecipe, buildReadingBarRecipe, SHOP_RECIPES, ShopRecipe, ACCOUNT_RECIPES, AccountRecipe, NO_ELEMENT_STYLE, CompositeKind, PopupRole, SliderRole, accordionItemLabel, segmentedOptionLabel, isExclusivePanels, isLockedPart, attachShop, ShopRole, attachAccount, AccountRole, accordionRootOf, accordionItemOf, addAccordionItem, addTabPair, segmentedAddRefusal, addSegmentedOption, isCompositeItem, accordionHeadingLevel, isCompositePanel, isCompositeTrigger, popupFormOf, splitSliderChildren, hasSliderParts, buildConsentRecipe, SLIDE_CAPTION_TRAIT, SLIDER_SCROLL_PLAYS_TRAIT, SLIDER_PLACEMENT_TRAIT, SliderPlacement, SliderFlag } from '@vectoriox/iox-ui/composite-core';
|
|
23
|
-
import { formContentInHost, isInteractiveHost, findFormContentInHosts, formPresetById, presetFormActions, busyWord, FORM_CHANNEL_ROLE, channelHref, channelOpensNewTab, FORM_ACTIONS_ROLE, SUBMIT_BUTTON_NODE_TYPE, FORM_AFTER_SEND_TRAIT, FormAfterSend } from '@vectoriox/iox-ui/forms-core';
|
|
23
|
+
import { formContentInHost, isInteractiveHost, findFormContentInHosts, formPresetById, presetFormActions, busyWord, fieldKindWords, channelWords, FORM_CHANNEL_ROLE, channelHref, channelOpensNewTab, FORM_ACTIONS_ROLE, SUBMIT_BUTTON_NODE_TYPE, FORM_NODE_TYPE, FIELD_NODE_TYPE, formWordIn, DEFAULT_BUSY_WORDS, FORM_AFTER_SEND_TRAIT, FormAfterSend, baselineFormWords } from '@vectoriox/iox-ui/forms-core';
|
|
24
24
|
import { Subject, BehaviorSubject, of, forkJoin } from 'rxjs';
|
|
25
25
|
import interact from 'interactjs';
|
|
26
26
|
import { HeaderTrait, HeaderBehaviour, HeaderEdge, HeaderInk, SECTION_EDGE_TRAIT, SECTION_EDGES, SECTION_SHAPE_TRAIT, SectionShape, MenuTrait, MenuForm, MenuReveal, MenuHover, MenuPhoneForm, MenuButtonKind, pageColumn, pageOpeningScheme, menuDialogAttributes, MenuAttribute } from '@vectoriox/iox-ui/design-core';
|
|
@@ -6423,11 +6423,18 @@ function isDisplayOnlyNode(node, underSpecimen) {
|
|
|
6423
6423
|
return underSpecimen || !!node.__previewClone;
|
|
6424
6424
|
}
|
|
6425
6425
|
|
|
6426
|
+
/** The payload a drag starts with: a builder is called (once — this is the drag's own tree), a value passed through. A
|
|
6427
|
+
* builder that makes nothing passes its null through, as a null value always did. */
|
|
6428
|
+
function resolveDragData(data) {
|
|
6429
|
+
return (typeof data === 'function' ? data() : data);
|
|
6430
|
+
}
|
|
6426
6431
|
class IoxDraggableDirective {
|
|
6427
6432
|
constructor(el, dragEngine) {
|
|
6428
6433
|
this.el = el;
|
|
6429
6434
|
this.dragEngine = dragEngine;
|
|
6430
|
-
/** The node (for canvas items) or component type string (for sidebar items)
|
|
6435
|
+
/** The node (for canvas items) or component type string (for sidebar items) — or a function that builds the payload
|
|
6436
|
+
* WHEN THE DRAG STARTS (a palette preset): a fresh tree per drag, and nothing built on each change-detection pass
|
|
6437
|
+
* the way a getter bound here would (iox-ui#159). */
|
|
6431
6438
|
this.ioxDragData = '';
|
|
6432
6439
|
/** Drop-zone id the item lives in. Null for sidebar items. */
|
|
6433
6440
|
this.ioxDragSourceId = null;
|
|
@@ -6441,7 +6448,7 @@ class IoxDraggableDirective {
|
|
|
6441
6448
|
return;
|
|
6442
6449
|
this.registered = true;
|
|
6443
6450
|
this.dragEngine.registerDraggable(this.el.nativeElement, () => {
|
|
6444
|
-
const data = this.ioxDragData;
|
|
6451
|
+
const data = resolveDragData(this.ioxDragData);
|
|
6445
6452
|
const type = typeof data === 'string' ? 'external' : 'internal';
|
|
6446
6453
|
const sourceIndex = type === 'internal' && this.ioxDragSourceId
|
|
6447
6454
|
? (this.dragEngine.getData(this.ioxDragSourceId)?.indexOf(data) ?? -1)
|
|
@@ -14868,65 +14875,67 @@ function buildFormPreset(def, createConfig, lang) {
|
|
|
14868
14875
|
return form;
|
|
14869
14876
|
}
|
|
14870
14877
|
const FIELD_KIND_PRESETS = Object.freeze([
|
|
14871
|
-
{
|
|
14878
|
+
fieldKind({
|
|
14872
14879
|
control: 'checkbox', name: 'Checkbox', icon: 'ph-thin ph-check-square',
|
|
14873
14880
|
description: 'One tick. Making it required turns it into a must-accept.',
|
|
14874
|
-
|
|
14875
|
-
|
|
14876
|
-
{
|
|
14881
|
+
}),
|
|
14882
|
+
fieldKind({
|
|
14877
14883
|
control: 'switch', name: 'Switch', icon: 'ph-thin ph-toggle-left',
|
|
14878
14884
|
description: 'An on/off toggle — records true or false.',
|
|
14879
|
-
|
|
14880
|
-
|
|
14881
|
-
{
|
|
14885
|
+
}),
|
|
14886
|
+
fieldKind({
|
|
14882
14887
|
control: 'radio', name: 'Radio group', icon: 'ph-thin ph-radio-button',
|
|
14883
14888
|
description: 'Pick exactly one of a few visible choices.',
|
|
14884
|
-
|
|
14885
|
-
|
|
14886
|
-
},
|
|
14887
|
-
{
|
|
14889
|
+
}),
|
|
14890
|
+
fieldKind({
|
|
14888
14891
|
// Premium N1: chips — one or several of a few visible choices; tap to pick, the arrow keys move a one-answer row.
|
|
14889
14892
|
control: 'choices', name: 'Choice chips', icon: 'ph-thin ph-list-checks',
|
|
14890
14893
|
description: 'Pick one or several, as chips. The answer is the words picked.',
|
|
14891
|
-
label: 'What do you need?',
|
|
14892
|
-
optionsText: 'First choice\nSecond choice\nThird choice',
|
|
14893
14894
|
multiple: true,
|
|
14894
|
-
},
|
|
14895
|
-
{
|
|
14895
|
+
}),
|
|
14896
|
+
fieldKind({
|
|
14896
14897
|
control: 'select', name: 'Dropdown', icon: 'ph-thin ph-caret-circle-down',
|
|
14897
14898
|
description: 'Pick one from a list that folds away.',
|
|
14898
|
-
|
|
14899
|
-
|
|
14900
|
-
},
|
|
14901
|
-
{
|
|
14899
|
+
}),
|
|
14900
|
+
fieldKind({
|
|
14902
14901
|
control: 'range', name: 'Slider', icon: 'ph-thin ph-sliders-horizontal',
|
|
14903
14902
|
description: 'A number by sliding between a min and a max.',
|
|
14904
|
-
|
|
14905
|
-
|
|
14906
|
-
{
|
|
14903
|
+
}),
|
|
14904
|
+
fieldKind({
|
|
14907
14905
|
control: 'date', name: 'Date', icon: 'ph-thin ph-calendar-blank',
|
|
14908
14906
|
description: 'A calendar date.',
|
|
14909
|
-
|
|
14910
|
-
|
|
14911
|
-
{
|
|
14907
|
+
}),
|
|
14908
|
+
fieldKind({
|
|
14912
14909
|
control: 'time', name: 'Time', icon: 'ph-thin ph-clock',
|
|
14913
14910
|
description: 'A time of day.',
|
|
14914
|
-
|
|
14915
|
-
},
|
|
14911
|
+
}),
|
|
14916
14912
|
]);
|
|
14917
|
-
/**
|
|
14918
|
-
function
|
|
14913
|
+
/** A tray row's words are forms-core's (iox-ui#159) — ONE table, never a second English copy here. */
|
|
14914
|
+
function fieldKind(def) {
|
|
14915
|
+
const words = fieldKindWords(def.control);
|
|
14916
|
+
return { ...def, label: words.label, ...(words.optionsText ? { optionsText: words.optionsText } : {}) };
|
|
14917
|
+
}
|
|
14918
|
+
/**
|
|
14919
|
+
* One pre-set Field. Null when the registry lacks the type — never a half-built node. `lang` is the SITE's language
|
|
14920
|
+
* (iox-ui#159): the label and starter choices are forms-core's words in it; absent or unknown, the row's own (English).
|
|
14921
|
+
*/
|
|
14922
|
+
function buildFieldKindPreset(def, createConfig, lang) {
|
|
14919
14923
|
const field = createConfig('Field');
|
|
14920
14924
|
if (!field)
|
|
14921
14925
|
return null;
|
|
14922
|
-
|
|
14926
|
+
const words = (lang ? fieldKindWords(def.control, lang) : undefined) ?? def;
|
|
14927
|
+
setTrait(field, 'label', words.label);
|
|
14923
14928
|
setTrait(field, 'control', def.control);
|
|
14924
|
-
if (
|
|
14925
|
-
setTrait(field, 'optionsText',
|
|
14929
|
+
if (words.optionsText)
|
|
14930
|
+
setTrait(field, 'optionsText', words.optionsText);
|
|
14926
14931
|
if (def.multiple)
|
|
14927
14932
|
setTrait(field, 'multiple', true);
|
|
14928
14933
|
return field;
|
|
14929
14934
|
}
|
|
14935
|
+
/** What a channel says: the author's words, else the kind's own in the SITE's language (forms-core `channelWords`). */
|
|
14936
|
+
function channelLabel(channel, lang) {
|
|
14937
|
+
return channel.label?.trim() || channelWords(channel.kind, lang);
|
|
14938
|
+
}
|
|
14930
14939
|
/** The element style a second channel wears: the quieter button beside Send. */
|
|
14931
14940
|
const CHANNEL_STYLE = 'button-secondary';
|
|
14932
14941
|
const BUTTON_LABEL_STYLE$1 = 'button-label';
|
|
@@ -14935,9 +14944,9 @@ const BUTTON_LABEL_STYLE$1 = 'button-label';
|
|
|
14935
14944
|
* `button-label`, the role `form.channel`. Its address is the OWNER's — built from what they typed by forms-core
|
|
14936
14945
|
* `channelHref`, '' when they typed nothing (the Publishable gate then blocks publishing: never a made-up number).
|
|
14937
14946
|
*/
|
|
14938
|
-
function buildFormChannel(channel, input, createConfig) {
|
|
14947
|
+
function buildFormChannel(channel, input, createConfig, lang) {
|
|
14939
14948
|
const button = createConfig('ButtonBlock');
|
|
14940
|
-
const words = textNode(channel
|
|
14949
|
+
const words = textNode(channelLabel(channel, lang), createConfig);
|
|
14941
14950
|
if (!button || !words)
|
|
14942
14951
|
return null;
|
|
14943
14952
|
button.role = FORM_CHANNEL_ROLE;
|
|
@@ -14960,9 +14969,9 @@ function setChannelAddress(button, kind, input) {
|
|
|
14960
14969
|
* The form's actions row (role `form.actions`): Send, then the channel, side by side, wrapping on a narrow screen. A
|
|
14961
14970
|
* FieldGroup — the form's own layout row — so the shared form CSS keeps it on screen after a success.
|
|
14962
14971
|
*/
|
|
14963
|
-
function buildFormActionsRow(submit, channel, input, createConfig) {
|
|
14972
|
+
function buildFormActionsRow(submit, channel, input, createConfig, lang) {
|
|
14964
14973
|
const row = createConfig('FieldGroup');
|
|
14965
|
-
const link = buildFormChannel(channel, input, createConfig);
|
|
14974
|
+
const link = buildFormChannel(channel, input, createConfig, lang);
|
|
14966
14975
|
if (!row || !link)
|
|
14967
14976
|
return null;
|
|
14968
14977
|
row.role = FORM_ACTIONS_ROLE;
|
|
@@ -14992,8 +15001,9 @@ function formChannelOf(form) {
|
|
|
14992
15001
|
* "Add a second way to reach you" on an existing form (premium N2): the channel goes beside the form's FIRST submit
|
|
14993
15002
|
* button — the submit moves into a new actions row in its place, or the channel joins the row it is already in. Null
|
|
14994
15003
|
* when the form already has one or has no submit button. Mutates the form's tree; the caller records the undo step.
|
|
15004
|
+
* Words the author left empty are the kind's own in `lang`, the SITE's language (iox-ui#159).
|
|
14995
15005
|
*/
|
|
14996
|
-
function addFormChannel(form, channel, input, createConfig) {
|
|
15006
|
+
function addFormChannel(form, channel, input, createConfig, lang) {
|
|
14997
15007
|
if (formChannelOf(form))
|
|
14998
15008
|
return null;
|
|
14999
15009
|
const found = findWithParent(form, n => n.type === SUBMIT_BUTTON_NODE_TYPE);
|
|
@@ -15002,13 +15012,13 @@ function addFormChannel(form, channel, input, createConfig) {
|
|
|
15002
15012
|
const { node: submit, parent } = found;
|
|
15003
15013
|
const siblings = parent.children;
|
|
15004
15014
|
if (parent.role === FORM_ACTIONS_ROLE) {
|
|
15005
|
-
const link = buildFormChannel(channel, input, createConfig);
|
|
15015
|
+
const link = buildFormChannel(channel, input, createConfig, lang);
|
|
15006
15016
|
if (!link)
|
|
15007
15017
|
return null;
|
|
15008
15018
|
siblings.splice(siblings.indexOf(submit) + 1, 0, link);
|
|
15009
15019
|
return link;
|
|
15010
15020
|
}
|
|
15011
|
-
const row = buildFormActionsRow(submit, channel, input, createConfig);
|
|
15021
|
+
const row = buildFormActionsRow(submit, channel, input, createConfig, lang);
|
|
15012
15022
|
if (!row)
|
|
15013
15023
|
return null;
|
|
15014
15024
|
siblings.splice(siblings.indexOf(submit), 1, row);
|
|
@@ -15026,6 +15036,33 @@ function findWithParent(root, match) {
|
|
|
15026
15036
|
}
|
|
15027
15037
|
return null;
|
|
15028
15038
|
}
|
|
15039
|
+
/** The registry types whose fresh node carries baseline words `wearFormWords` puts in the site's language — the palette
|
|
15040
|
+
* inserts these as built nodes, never as a bare type name the builder would create in English. */
|
|
15041
|
+
const FORM_WORD_TYPES = new Set([FORM_NODE_TYPE, FIELD_NODE_TYPE, SUBMIT_BUTTON_NODE_TYPE]);
|
|
15042
|
+
/**
|
|
15043
|
+
* A freshly created Form, Field or submit button in the SITE's language (iox-ui#159): every word it still holds from its
|
|
15044
|
+
* config's English baseline — a Field's 'Label' / 'Name' / 'Email', the button's 'Send' and 'Sending…' — becomes
|
|
15045
|
+
* forms-core's word in `lang`; words anyone wrote stay. Walks the whole tree (the Form's own Name/Email/Send). Mutates
|
|
15046
|
+
* and returns `node`; English or no language leaves it as it is.
|
|
15047
|
+
*/
|
|
15048
|
+
function wearFormWords(node, lang) {
|
|
15049
|
+
if (!node || !lang)
|
|
15050
|
+
return node;
|
|
15051
|
+
if (node.type === FIELD_NODE_TYPE) {
|
|
15052
|
+
setTrait(node, 'label', formWordIn(traitOf(node, 'label'), lang, ['field', 'name', 'email']));
|
|
15053
|
+
}
|
|
15054
|
+
else if (node.type === SUBMIT_BUTTON_NODE_TYPE) {
|
|
15055
|
+
setTrait(node, 'label', formWordIn(traitOf(node, 'label'), lang, ['send']));
|
|
15056
|
+
if (traitOf(node, 'loadingLabel') === DEFAULT_BUSY_WORDS)
|
|
15057
|
+
setTrait(node, 'loadingLabel', busyWord(lang));
|
|
15058
|
+
}
|
|
15059
|
+
for (const child of node.children ?? [])
|
|
15060
|
+
wearFormWords(child, lang);
|
|
15061
|
+
return node;
|
|
15062
|
+
}
|
|
15063
|
+
function traitOf(node, name) {
|
|
15064
|
+
return node.traits?.find(t => t?.name === name)?.default;
|
|
15065
|
+
}
|
|
15029
15066
|
function setStyle(node, prop, value) {
|
|
15030
15067
|
for (const group of (node.styleTraits ?? [])) {
|
|
15031
15068
|
const trait = group?.traits?.find((t) => t?.name === prop);
|
|
@@ -15874,8 +15911,9 @@ class FormComponentConfig extends ComponentConfig {
|
|
|
15874
15911
|
];
|
|
15875
15912
|
this.styleTraits = shellStyles();
|
|
15876
15913
|
this.children = [
|
|
15877
|
-
|
|
15878
|
-
makeField({ label:
|
|
15914
|
+
// The words are forms-core's English baseline (iox-ui#159) — `wearFormWords` puts them in the site's language.
|
|
15915
|
+
makeField({ label: baselineFormWords().name, control: 'text', required: true }),
|
|
15916
|
+
makeField({ label: baselineFormWords().email, control: 'email', required: true }),
|
|
15879
15917
|
new SubmitButtonComponentConfig(),
|
|
15880
15918
|
new FormSuccessComponentConfig(),
|
|
15881
15919
|
new FormErrorComponentConfig(),
|
|
@@ -15900,7 +15938,7 @@ class FieldComponentConfig extends ComponentConfig {
|
|
|
15900
15938
|
this.parts = FIELD_PARTS;
|
|
15901
15939
|
this.traits = [
|
|
15902
15940
|
new TraitConfig('__contentLabel', 'Content', TraitInputType.SectionLabel),
|
|
15903
|
-
new TraitConfig('label', 'Label', TraitInputType.Text, undefined,
|
|
15941
|
+
new TraitConfig('label', 'Label', TraitInputType.Text, undefined, baselineFormWords().field),
|
|
15904
15942
|
// Choosing the control also chooses the validation — an Email field validates email
|
|
15905
15943
|
// with nothing configured.
|
|
15906
15944
|
new TraitConfig('control', 'Kind of answer', TraitInputType.Select, [
|
|
@@ -15983,8 +16021,8 @@ class SubmitButtonComponentConfig extends ComponentConfig {
|
|
|
15983
16021
|
constructor() {
|
|
15984
16022
|
super('SubmitButton', 'iox-submit', 'ph-thin ph-paper-plane-tilt', 'Forms');
|
|
15985
16023
|
this.traits = [
|
|
15986
|
-
new TraitConfig('label', 'Label', TraitInputType.Text, undefined,
|
|
15987
|
-
new TraitConfig('loadingLabel', 'While sending', TraitInputType.Text, undefined,
|
|
16024
|
+
new TraitConfig('label', 'Label', TraitInputType.Text, undefined, baselineFormWords().send),
|
|
16025
|
+
new TraitConfig('loadingLabel', 'While sending', TraitInputType.Text, undefined, DEFAULT_BUSY_WORDS),
|
|
15988
16026
|
// Premium N2: what it says once the form has sent, beside a check drawn once. Empty: "Sent".
|
|
15989
16027
|
new TraitConfig(SENT_LABEL_TRAIT, 'Once sent', TraitInputType.Text, undefined, ''),
|
|
15990
16028
|
new TraitConfig('disableWhileSubmitting', 'Disable while sending', TraitInputType.Checkbox, undefined, true),
|
|
@@ -16500,5 +16538,5 @@ class BuilderSpacerComponentConfig extends ComponentConfig {
|
|
|
16500
16538
|
* Generated bundle index. Do not edit.
|
|
16501
16539
|
*/
|
|
16502
16540
|
|
|
16503
|
-
export { ACTION_TYPE_OPTIONS, AuditCode, AuditPanelComponent, AuditSeverity, BODY_CRUMB_LABEL, BOUND_ICON, BREAKPOINT_PRESENTATION, BUILDER_CANVAS_CONTAINER, BUILDER_CHROME_EN, BUILDER_FONT_LINK_ATTR, BUILDER_TOKEN_SCOPE_CLASS, BackgroundGroupStyleConfig, BorderGroupStyleConfig, BreadcrumbBarComponent, BuilderButtonBlockComponent, BuilderButtonComponentConfig, BuilderClipboardService, BuilderComponent, BuilderContainerComponent, BuilderContainerComponentConfig, BuilderDataSourceService, BuilderDialogComponent, BuilderDividerComponentConfig, BuilderHeadingComponentConfig, BuilderHistoryService, BuilderIconComponentConfig, BuilderImageComponentConfig, BuilderLinkComponentConfig, BuilderLinkedContainerComponent, BuilderLinkedContainerConfig, BuilderListComponentConfig, BuilderListItemComponentConfig, BuilderMode, BuilderPopoverComponent, BuilderRepeaterComponent, BuilderSpacerComponentConfig, BusinessSpecimenView, ButtonBlockComponentConfig, CANVAS_EMPTY_IMAGE_LABEL_EN, CANVAS_EMPTY_IMAGE_LABEL_KEY, CANVAS_ROOT_RESET_CSS, CANVAS_TOKEN_SCOPE, COMPOSITE_PRESETS, CanvasDesignStateService, CanvasShowGroup, CanvasShowState, CardComponentConfig, ChildLayoutGroupStyleConfig, ComponentConfig, ComponentRegistryService, CompositeCanvasService, CompositePaletteGroup, CompositePresetId, DEFAULT_ESSENTIAL_TRAITS, DESCRIPTOR_MAX_LENGTH, DRAG_HANDLE_ATTR, DROP_REFUSED_CLASS, DataSourceRegistryService, DataSourceType, DialogComponentConfig, DimensionsGroupStyleConfig, DragEngineService, EASING_OPTIONS, EDITOR_CHROME_ATTRIBUTE, ESSENTIAL_TRAITS_BY_TYPE, EffectsGroupStyleConfig, FIELD_KIND_PRESETS, FIELD_PARTS, FOOTER_MIX_TRAIT, FORM_STATE_BLOCK_TYPES, FORM_TYPE, FieldComponentConfig, FieldGroupComponentConfig, FieldTrait, FormComponentConfig, FormErrorComponentConfig, FormStateService, FormSuccessComponentConfig, GLOBALS_AFTER_CLASS, GalleryConfig, GlobalCanvasLayer, GroupStyleConfig, HIDDEN_AT_REST_LABEL_KEY, HIDDEN_AT_REST_ROLES, HIDDEN_AT_REST_TYPES, INSERT_REFUSAL_LABEL_KEYS, INTERACTION_STATES, INVERSE_ACTION, IOX_BUILDER_CANVAS, IOX_BUILDER_LABELS, IOX_CONTENT_TYPE_LABELS, IOX_DATA_SOURCE_ENDPOINTS, IOX_RENDER_DISPLAY_ONLY, InsertRefusal, InteractionEngineService, InteractionPresetRegistryService, IoxBuilderModule, IoxDraggableDirective, IoxDropzoneDirective, LAYOUT_PRESETS, LIST_MIX_TRAIT, LayerTreeComponent, LayoutGroupStyleConfig, ListGroupStyleConfig, NodeAction, OPENING_MIX_TRAIT, OverlayComponent, OverlayService, PAGE_TRANSITION_EASING_OPTIONS, PALETTE_PRESET_DEFS, POPOVER_PLACEMENT_OPTIONS, POPOVER_SHEET_MAX_WIDTH, PanelChildComponent, PanelComponent, PanelEventService, PanelEventTypes, PanelTypes, PhoneMenuOpenerAction, PopoverComponentConfig, PositionGroupStyleConfig, PresetRegistryService, RELATIONAL_STATES, RELATIONAL_STATE_BASE, REPEATER_SOURCE_PROP, REPEATER_TYPE, REVEALED_WHILE_SELECTED_ROLES, ROOT_ESCAPE_PX, ROUTE_ANIMATION_OPTIONS, RenderDirective, RepeaterComponentConfig, RootZone, SCREEN_WIDTH_OPTIONS, SENT_LABEL_TRAIT, SILENT_REFUSALS, SLIDER_CREATIVE_PRESET_TRAIT, STRUCTURAL_STATES, SUPPORTED_STATES, SceneCanvasService, SectionComponent, SectionComponentConfig, SelectionReveal, SizeGroupStyleConfig, SliderContainerComponent, SliderContainerConfig, SliderSlideComponent, SliderSlideConfig, SpacingGroupStyleConfig, StructureFix, StyleCategory, StyleRegistryService, TraitConfig as StyleTraitConfig, SubmitButtonComponentConfig, SymbolRegistryService, TARGETED_STATES, TARGETED_STATE_BASE, TOGGLE_PART_ROLES, TRIGGER_OPTIONS, TextBlockComponentConfig, ToolbarAction, ToolbarComponent, TraitConfig, TraitInputType, TypographyGroupStyleConfig, UNITS_ALL, UNITS_DEG, UNITS_FIXED, UNITS_NO_VW, VALIDATION_STATES, VALIDATION_STATE_CLASS, VideoConfig, ViewportService, ZOOM_OPTIONS, addFormChannel, arrayItemSchemaFields, arraySchemaFields, auditNodes, bindingLabel, bindingLabels, buildBusinessSpecimen, buildCompositePreset, buildConsentPreset, buildElementStyleSpecimen, buildFieldKindPreset, buildFlavorSpecimen, buildFormActionsRow, buildFormChannel, buildFormPreset, buildFullStyleTraits, buildLayoutPreset, buildPalettePreset, buildPresetStyleTraits, builderCompositeFactory, canFluidise, canvasEmptyImageLabel, canvasFloatingContainer, canvasHostDisplay, collapseColumnsProps, columnCountOf, compositeStructureFindings, defaultBuilderLabels, defaultPageSettings, deleteTabPair, displayTrigger, displayTriggerOf, dropChildren, dropSectionStamps, dropTargetLabel, duplicateTabPair, escapesRoot, essentialTraitsFor, findNodeByIdInEither, findNodeLocation, findParentOf, flattenLayerTree, flattenSchemaFields, fluidiseProps, followsScroll, formChannelOf, generateNodeId, globalCanvasLayer, hiddenAtBase, hiddenUntilItemOn, inPhoneMenuContext, insertRefusal, insertRefusalLabel, interactionTargets, isDisplayOnlyNode, isHiddenAt, isHiddenAtRest, isPhoneMenuOpener, isPinnedGlobal, isReadingBar, isSpecimen, itemsOnAtRest, markSpecimen, matchesControlSearch, nearestFormNode, neverShown, nodeAncestorPath, nodeAncestorPathInEither, nodeDescriptor, nodeStyleMap, overlayGlobals, pathToNode, phoneMenuOf, phoneMenuShowsAt, refreshSubtree, regenerateNodeIds, removalRefusal, reorderProps, repeaterSourceAlias, repeaterSubLabel, resolveInsertTarget, resolveTraitControllerType, resolveTraitOptions, retypeNode, rootEscapeBand, rootZone, selectionRevealOf, setChannelAddress, setOverlayPreview, setStyleTrait, setTrait, shortDescriptor, showCanvasToast, shownBeforeControl, sourceContentType, sourceTypeLabel, stackChildrenProps, summarise, syncEmptyImagePlaceholder, syncNodeDesign, syncNodeInputs, tabPairLabel, tabsRootForPart, textNode, upsertNodeStyles, visibilityProps, walkNodes, wrapNode };
|
|
16541
|
+
export { ACTION_TYPE_OPTIONS, AuditCode, AuditPanelComponent, AuditSeverity, BODY_CRUMB_LABEL, BOUND_ICON, BREAKPOINT_PRESENTATION, BUILDER_CANVAS_CONTAINER, BUILDER_CHROME_EN, BUILDER_FONT_LINK_ATTR, BUILDER_TOKEN_SCOPE_CLASS, BackgroundGroupStyleConfig, BorderGroupStyleConfig, BreadcrumbBarComponent, BuilderButtonBlockComponent, BuilderButtonComponentConfig, BuilderClipboardService, BuilderComponent, BuilderContainerComponent, BuilderContainerComponentConfig, BuilderDataSourceService, BuilderDialogComponent, BuilderDividerComponentConfig, BuilderHeadingComponentConfig, BuilderHistoryService, BuilderIconComponentConfig, BuilderImageComponentConfig, BuilderLinkComponentConfig, BuilderLinkedContainerComponent, BuilderLinkedContainerConfig, BuilderListComponentConfig, BuilderListItemComponentConfig, BuilderMode, BuilderPopoverComponent, BuilderRepeaterComponent, BuilderSpacerComponentConfig, BusinessSpecimenView, ButtonBlockComponentConfig, CANVAS_EMPTY_IMAGE_LABEL_EN, CANVAS_EMPTY_IMAGE_LABEL_KEY, CANVAS_ROOT_RESET_CSS, CANVAS_TOKEN_SCOPE, COMPOSITE_PRESETS, CanvasDesignStateService, CanvasShowGroup, CanvasShowState, CardComponentConfig, ChildLayoutGroupStyleConfig, ComponentConfig, ComponentRegistryService, CompositeCanvasService, CompositePaletteGroup, CompositePresetId, DEFAULT_ESSENTIAL_TRAITS, DESCRIPTOR_MAX_LENGTH, DRAG_HANDLE_ATTR, DROP_REFUSED_CLASS, DataSourceRegistryService, DataSourceType, DialogComponentConfig, DimensionsGroupStyleConfig, DragEngineService, EASING_OPTIONS, EDITOR_CHROME_ATTRIBUTE, ESSENTIAL_TRAITS_BY_TYPE, EffectsGroupStyleConfig, FIELD_KIND_PRESETS, FIELD_PARTS, FOOTER_MIX_TRAIT, FORM_STATE_BLOCK_TYPES, FORM_TYPE, FORM_WORD_TYPES, FieldComponentConfig, FieldGroupComponentConfig, FieldTrait, FormComponentConfig, FormErrorComponentConfig, FormStateService, FormSuccessComponentConfig, GLOBALS_AFTER_CLASS, GalleryConfig, GlobalCanvasLayer, GroupStyleConfig, HIDDEN_AT_REST_LABEL_KEY, HIDDEN_AT_REST_ROLES, HIDDEN_AT_REST_TYPES, INSERT_REFUSAL_LABEL_KEYS, INTERACTION_STATES, INVERSE_ACTION, IOX_BUILDER_CANVAS, IOX_BUILDER_LABELS, IOX_CONTENT_TYPE_LABELS, IOX_DATA_SOURCE_ENDPOINTS, IOX_RENDER_DISPLAY_ONLY, InsertRefusal, InteractionEngineService, InteractionPresetRegistryService, IoxBuilderModule, IoxDraggableDirective, IoxDropzoneDirective, LAYOUT_PRESETS, LIST_MIX_TRAIT, LayerTreeComponent, LayoutGroupStyleConfig, ListGroupStyleConfig, NodeAction, OPENING_MIX_TRAIT, OverlayComponent, OverlayService, PAGE_TRANSITION_EASING_OPTIONS, PALETTE_PRESET_DEFS, POPOVER_PLACEMENT_OPTIONS, POPOVER_SHEET_MAX_WIDTH, PanelChildComponent, PanelComponent, PanelEventService, PanelEventTypes, PanelTypes, PhoneMenuOpenerAction, PopoverComponentConfig, PositionGroupStyleConfig, PresetRegistryService, RELATIONAL_STATES, RELATIONAL_STATE_BASE, REPEATER_SOURCE_PROP, REPEATER_TYPE, REVEALED_WHILE_SELECTED_ROLES, ROOT_ESCAPE_PX, ROUTE_ANIMATION_OPTIONS, RenderDirective, RepeaterComponentConfig, RootZone, SCREEN_WIDTH_OPTIONS, SENT_LABEL_TRAIT, SILENT_REFUSALS, SLIDER_CREATIVE_PRESET_TRAIT, STRUCTURAL_STATES, SUPPORTED_STATES, SceneCanvasService, SectionComponent, SectionComponentConfig, SelectionReveal, SizeGroupStyleConfig, SliderContainerComponent, SliderContainerConfig, SliderSlideComponent, SliderSlideConfig, SpacingGroupStyleConfig, StructureFix, StyleCategory, StyleRegistryService, TraitConfig as StyleTraitConfig, SubmitButtonComponentConfig, SymbolRegistryService, TARGETED_STATES, TARGETED_STATE_BASE, TOGGLE_PART_ROLES, TRIGGER_OPTIONS, TextBlockComponentConfig, ToolbarAction, ToolbarComponent, TraitConfig, TraitInputType, TypographyGroupStyleConfig, UNITS_ALL, UNITS_DEG, UNITS_FIXED, UNITS_NO_VW, VALIDATION_STATES, VALIDATION_STATE_CLASS, VideoConfig, ViewportService, ZOOM_OPTIONS, addFormChannel, arrayItemSchemaFields, arraySchemaFields, auditNodes, bindingLabel, bindingLabels, buildBusinessSpecimen, buildCompositePreset, buildConsentPreset, buildElementStyleSpecimen, buildFieldKindPreset, buildFlavorSpecimen, buildFormActionsRow, buildFormChannel, buildFormPreset, buildFullStyleTraits, buildLayoutPreset, buildPalettePreset, buildPresetStyleTraits, builderCompositeFactory, canFluidise, canvasEmptyImageLabel, canvasFloatingContainer, canvasHostDisplay, channelLabel, collapseColumnsProps, columnCountOf, compositeStructureFindings, defaultBuilderLabels, defaultPageSettings, deleteTabPair, displayTrigger, displayTriggerOf, dropChildren, dropSectionStamps, dropTargetLabel, duplicateTabPair, escapesRoot, essentialTraitsFor, findNodeByIdInEither, findNodeLocation, findParentOf, flattenLayerTree, flattenSchemaFields, fluidiseProps, followsScroll, formChannelOf, generateNodeId, globalCanvasLayer, hiddenAtBase, hiddenUntilItemOn, inPhoneMenuContext, insertRefusal, insertRefusalLabel, interactionTargets, isDisplayOnlyNode, isHiddenAt, isHiddenAtRest, isPhoneMenuOpener, isPinnedGlobal, isReadingBar, isSpecimen, itemsOnAtRest, markSpecimen, matchesControlSearch, nearestFormNode, neverShown, nodeAncestorPath, nodeAncestorPathInEither, nodeDescriptor, nodeStyleMap, overlayGlobals, pathToNode, phoneMenuOf, phoneMenuShowsAt, refreshSubtree, regenerateNodeIds, removalRefusal, reorderProps, repeaterSourceAlias, repeaterSubLabel, resolveDragData, resolveInsertTarget, resolveTraitControllerType, resolveTraitOptions, retypeNode, rootEscapeBand, rootZone, selectionRevealOf, setChannelAddress, setOverlayPreview, setStyleTrait, setTrait, shortDescriptor, showCanvasToast, shownBeforeControl, sourceContentType, sourceTypeLabel, stackChildrenProps, summarise, syncEmptyImagePlaceholder, syncNodeDesign, syncNodeInputs, tabPairLabel, tabsRootForPart, textNode, upsertNodeStyles, visibilityProps, walkNodes, wearFormWords, wrapNode };
|
|
16504
16542
|
//# sourceMappingURL=vectoriox-iox-builder.mjs.map
|