@vectoriox/iox-ui 5.192.0 → 5.194.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/fesm2022/vectoriox-iox-ui-forms-core.mjs +186 -122
- package/fesm2022/vectoriox-iox-ui-forms-core.mjs.map +1 -1
- package/fesm2022/vectoriox-iox-ui-harness-core.mjs +193 -95
- package/fesm2022/vectoriox-iox-ui-harness-core.mjs.map +1 -1
- package/fesm2022/vectoriox-iox-ui-seo-core.mjs +37 -11
- package/fesm2022/vectoriox-iox-ui-seo-core.mjs.map +1 -1
- package/fesm2022/vectoriox-iox-ui.mjs +249 -146
- package/fesm2022/vectoriox-iox-ui.mjs.map +1 -1
- package/forms-core/index.d.ts +17 -2
- package/harness-core/index.d.ts +102 -12
- package/index.d.ts +20 -6
- package/package.json +1 -1
- package/seo-core/index.d.ts +8 -1
- package/src/forms-core/messages.ts +72 -1
- package/src/forms-core/submit-lifecycle.ts +4 -5
- package/src/harness-core/business-types.ts +14 -9
- package/src/harness-core/harness-spec.generated.ts +168 -84
- package/src/harness-core/lint.ts +29 -11
- package/src/seo-core/redirects.ts +35 -9
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
|
-
import { EventEmitter, HostListener, Output, Input, Directive, NgModule, Injectable, ViewChild, Component, Host, Optional, inject, NgZone, InjectionToken, Inject, ChangeDetectionStrategy, ViewContainerRef, PLATFORM_ID, HostBinding, reflectComponentType, signal, computed } from '@angular/core';
|
|
2
|
+
import { EventEmitter, HostListener, Output, Input, Directive, NgModule, Injectable, ViewChild, Component, Host, Optional, inject, NgZone, InjectionToken, ViewEncapsulation, Inject, ChangeDetectionStrategy, ViewContainerRef, PLATFORM_ID, HostBinding, reflectComponentType, signal, computed } from '@angular/core';
|
|
3
3
|
import * as i2 from '@angular/animations';
|
|
4
4
|
import { style, animate } from '@angular/animations';
|
|
5
5
|
import { Subject, fromEvent } from 'rxjs';
|
|
@@ -738,6 +738,21 @@ function isBoundProp(node, prop) {
|
|
|
738
738
|
return (node?.bindings || []).some(b => b.prop === prop);
|
|
739
739
|
}
|
|
740
740
|
|
|
741
|
+
/**
|
|
742
|
+
* The Image's own defaults, as global CSS (no emulated `[_nghost-…]` attribute):
|
|
743
|
+
*
|
|
744
|
+
* - `display: block` at specificity 0,0,1 (`img:where([iox-img])`), so EVERY class rule beats it — the node's
|
|
745
|
+
* `.iox-node-<id>` and its per-width layers. As `:host` (0,1,0) it tied with the class rule and, appended to `<head>`
|
|
746
|
+
* after the engine's layout styles, won the tie: a per-width hide (`responsive.mobile.styleProps.display = none`)
|
|
747
|
+
* never hid a picture on the live site (vectoriox/iox-ui#104).
|
|
748
|
+
* - `max-width: 100%` stays at 0,1,0 (`[iox-img]`, what `:host` compiled to) — exactly today's behaviour, by order.
|
|
749
|
+
* Letting the node's own max-width win would apply every saved Image's stored baseline `max-width: 300px` on live
|
|
750
|
+
* sites for the first time (they fill their column today); that half of #104 waits for a decision.
|
|
751
|
+
*/
|
|
752
|
+
const IMAGE_DEFAULT_CSS = [
|
|
753
|
+
'img:where([iox-img]) { display: block; }',
|
|
754
|
+
'[iox-img] { max-width: 100%; }',
|
|
755
|
+
];
|
|
741
756
|
/**
|
|
742
757
|
* Directive-host image: the selector is `img[iox-img]`, so when created dynamically the HOST is
|
|
743
758
|
* the `<img>` itself — NO wrapper element. All styles land on the `<img>` via `.iox-node-{id}`;
|
|
@@ -789,7 +804,7 @@ class BuilderImageComponent {
|
|
|
789
804
|
return this.showsPlaceholder ? 'true' : null;
|
|
790
805
|
}
|
|
791
806
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.31", ngImport: i0, type: BuilderImageComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
792
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.31", type: BuilderImageComponent, isStandalone: false, selector: "img[iox-img]", inputs: { src: "src", alt: "alt", nodeId: "nodeId", emptySrc: "emptySrc" }, host: { properties: { "attr.src": "srcAttr", "attr.alt": "altAttr", "attr.aria-hidden": "ariaHiddenAttr", "attr.data-iox-empty": "emptyAttr", "class": "'iox-node-' + nodeId" } }, ngImport: i0, template: '', isInline: true, styles: [":
|
|
807
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.31", type: BuilderImageComponent, isStandalone: false, selector: "img[iox-img]", inputs: { src: "src", alt: "alt", nodeId: "nodeId", emptySrc: "emptySrc" }, host: { properties: { "attr.src": "srcAttr", "attr.alt": "altAttr", "attr.aria-hidden": "ariaHiddenAttr", "attr.data-iox-empty": "emptyAttr", "class": "'iox-node-' + nodeId" } }, ngImport: i0, template: '', isInline: true, styles: ["img:where([iox-img]){display:block}\n", "[iox-img]{max-width:100%}\n"], encapsulation: i0.ViewEncapsulation.None }); }
|
|
793
808
|
}
|
|
794
809
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.31", ngImport: i0, type: BuilderImageComponent, decorators: [{
|
|
795
810
|
type: Component,
|
|
@@ -799,7 +814,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.31", ngImpo
|
|
|
799
814
|
'[attr.aria-hidden]': 'ariaHiddenAttr',
|
|
800
815
|
'[attr.data-iox-empty]': 'emptyAttr',
|
|
801
816
|
'[class]': "'iox-node-' + nodeId",
|
|
802
|
-
}, standalone: false, styles: [":
|
|
817
|
+
}, encapsulation: ViewEncapsulation.None, standalone: false, styles: ["img:where([iox-img]){display:block}\n", "[iox-img]{max-width:100%}\n"] }]
|
|
803
818
|
}], propDecorators: { src: [{
|
|
804
819
|
type: Input
|
|
805
820
|
}], alt: [{
|
|
@@ -4060,6 +4075,121 @@ function isMultiValueField(field) {
|
|
|
4060
4075
|
/** The controls whose answers must be one of the field's own options (the implied `oneOf` rule). */
|
|
4061
4076
|
const OPTION_CONTROLS = new Set([ControlType.Choices, ControlType.Radio, ControlType.Select]);
|
|
4062
4077
|
|
|
4078
|
+
/**
|
|
4079
|
+
* FORM WORDS — what a form part says the moment it lands on a page, in the SITE's language (iox-ui#159).
|
|
4080
|
+
*
|
|
4081
|
+
* ONE table for the words nobody wrote yet: a new Field's label, the plain Form's Name / Email / Send, each field kind's
|
|
4082
|
+
* label and starter choices (the Forms tray's Checkbox, Radio group, …), and a second channel's words (WhatsApp, Call
|
|
4083
|
+
* us, …). The builder's Form type, its field-kind presets and `addFormChannel`, and the admin's channel panel all read
|
|
4084
|
+
* it — a Hebrew site gets Hebrew parts from the tray, never English it has to retype. The English column IS the
|
|
4085
|
+
* baseline the builder's configs carry; `formWordIn` turns an untouched baseline word into the site's language.
|
|
4086
|
+
*
|
|
4087
|
+
* Data + lookups only: framework-free, like the rest of forms-core. The preset forms' own words stay in
|
|
4088
|
+
* `form-presets.ts` (`FORM_PRESET_WORDS_HE`); "While sending" and "Sent" in `submit-lifecycle.ts`.
|
|
4089
|
+
*/
|
|
4090
|
+
var FormWordsLanguage;
|
|
4091
|
+
(function (FormWordsLanguage) {
|
|
4092
|
+
FormWordsLanguage["En"] = "en";
|
|
4093
|
+
FormWordsLanguage["He"] = "he";
|
|
4094
|
+
})(FormWordsLanguage || (FormWordsLanguage = {}));
|
|
4095
|
+
const CHOICES_EN = 'First choice\nSecond choice\nThird choice';
|
|
4096
|
+
const CHOICES_HE = 'אפשרות ראשונה\nאפשרות שנייה\nאפשרות שלישית';
|
|
4097
|
+
|
|
4098
|
+
const FORM_WORDS = /* @__PURE__ */ Object.freeze({
|
|
4099
|
+
en: {
|
|
4100
|
+
field: 'Label',
|
|
4101
|
+
name: 'Name',
|
|
4102
|
+
email: 'Email',
|
|
4103
|
+
send: 'Send',
|
|
4104
|
+
kinds: {
|
|
4105
|
+
checkbox: { label: 'I agree' },
|
|
4106
|
+
switch: { label: 'Enable' },
|
|
4107
|
+
radio: { label: 'Pick one', optionsText: CHOICES_EN },
|
|
4108
|
+
choices: { label: 'What do you need?', optionsText: CHOICES_EN },
|
|
4109
|
+
select: { label: 'Choose', optionsText: CHOICES_EN },
|
|
4110
|
+
range: { label: 'How much' },
|
|
4111
|
+
date: { label: 'Date' },
|
|
4112
|
+
time: { label: 'Time' },
|
|
4113
|
+
},
|
|
4114
|
+
channels: {
|
|
4115
|
+
whatsapp: 'Message us on WhatsApp',
|
|
4116
|
+
phone: 'Call us',
|
|
4117
|
+
email: 'Email us',
|
|
4118
|
+
link: 'Book online',
|
|
4119
|
+
},
|
|
4120
|
+
announce: {
|
|
4121
|
+
failed: 'That did not send.',
|
|
4122
|
+
oneField: '1 field needs attention.',
|
|
4123
|
+
fields: '{count} fields need attention.',
|
|
4124
|
+
},
|
|
4125
|
+
},
|
|
4126
|
+
he: {
|
|
4127
|
+
field: 'שם השדה',
|
|
4128
|
+
name: 'שם',
|
|
4129
|
+
email: 'אימייל',
|
|
4130
|
+
send: 'שליחה',
|
|
4131
|
+
kinds: {
|
|
4132
|
+
checkbox: { label: 'אני מאשר/ת' },
|
|
4133
|
+
switch: { label: 'הפעלה' },
|
|
4134
|
+
radio: { label: 'בחרו אחת', optionsText: CHOICES_HE },
|
|
4135
|
+
choices: { label: 'מה אתם צריכים?', optionsText: CHOICES_HE },
|
|
4136
|
+
select: { label: 'בחירה', optionsText: CHOICES_HE },
|
|
4137
|
+
range: { label: 'כמה' },
|
|
4138
|
+
date: { label: 'תאריך' },
|
|
4139
|
+
time: { label: 'שעה' },
|
|
4140
|
+
},
|
|
4141
|
+
channels: {
|
|
4142
|
+
whatsapp: 'שלחו לנו הודעה בוואטסאפ',
|
|
4143
|
+
phone: 'התקשרו אלינו',
|
|
4144
|
+
email: 'כתבו לנו',
|
|
4145
|
+
link: 'הזמנה אונליין',
|
|
4146
|
+
},
|
|
4147
|
+
announce: {
|
|
4148
|
+
failed: 'השליחה לא הצליחה.',
|
|
4149
|
+
oneField: 'שדה אחד דורש תשומת לב.',
|
|
4150
|
+
fields: '{count} שדות דורשים תשומת לב.',
|
|
4151
|
+
},
|
|
4152
|
+
},
|
|
4153
|
+
});
|
|
4154
|
+
/** The language a form speaks for a `lang` attribute or site locale: design-core's subtag (`he-IL` → `he`), the old
|
|
4155
|
+
* `iw` read as `he`; '' when none. */
|
|
4156
|
+
function formLanguageOf(lang) {
|
|
4157
|
+
const language = languageOf(lang);
|
|
4158
|
+
return language === 'iw' ? 'he' : language;
|
|
4159
|
+
}
|
|
4160
|
+
/** The words in a site's language — English for any language the table does not hold, and when none is given. */
|
|
4161
|
+
function formWords(lang) {
|
|
4162
|
+
return ownWord(FORM_WORDS, formLanguageOf(lang)) ?? FORM_WORDS[FormWordsLanguage.En];
|
|
4163
|
+
}
|
|
4164
|
+
/** The baseline — what a builder config carries before anyone writes. */
|
|
4165
|
+
function baselineFormWords() {
|
|
4166
|
+
return FORM_WORDS[FormWordsLanguage.En];
|
|
4167
|
+
}
|
|
4168
|
+
/** A field kind's seeded label and choices in `lang`; undefined for a control the tray does not offer as a row. */
|
|
4169
|
+
function fieldKindWords(control, lang) {
|
|
4170
|
+
return ownWord(formWords(lang).kinds, control);
|
|
4171
|
+
}
|
|
4172
|
+
/** A channel's words in `lang` ('' for an unknown kind — the caller keeps what it has). */
|
|
4173
|
+
function channelWords(kind, lang) {
|
|
4174
|
+
return ownWord(formWords(lang).channels, kind) ?? '';
|
|
4175
|
+
}
|
|
4176
|
+
/** A table's own entry — never an inherited `constructor` or `toString` for a key someone typed. */
|
|
4177
|
+
function ownWord(table, key) {
|
|
4178
|
+
return Object.prototype.hasOwnProperty.call(table, key) ? table[key] : undefined;
|
|
4179
|
+
}
|
|
4180
|
+
/**
|
|
4181
|
+
* An UNTOUCHED baseline word in `lang`: when `value` is the English word one of `slots` carries, the site language's word
|
|
4182
|
+
* for that slot; anything an author wrote (or an empty value) comes back as it is. How a freshly created Form, Field or
|
|
4183
|
+
* submit button speaks the site's language without a second copy of its config.
|
|
4184
|
+
*/
|
|
4185
|
+
function formWordIn(value, lang, slots) {
|
|
4186
|
+
if (typeof value !== 'string' || !value)
|
|
4187
|
+
return value;
|
|
4188
|
+
const base = baselineFormWords();
|
|
4189
|
+
const slot = slots.find(s => base[s] === value);
|
|
4190
|
+
return slot ? formWords(lang)[slot] : value;
|
|
4191
|
+
}
|
|
4192
|
+
|
|
4063
4193
|
// The default message for every rule, as an i18n KEY — never a rendered string.
|
|
4064
4194
|
//
|
|
4065
4195
|
// This is what lets the Validation panel stay empty and still produce good errors: an author who
|
|
@@ -4131,7 +4261,8 @@ const FORM_ERROR_KEYS = Object.freeze({
|
|
|
4131
4261
|
RateLimited: `${MESSAGE_NAMESPACE}.form.rateLimited`,
|
|
4132
4262
|
Server: `${MESSAGE_NAMESPACE}.form.server`,
|
|
4133
4263
|
});
|
|
4134
|
-
/** The English
|
|
4264
|
+
/** The English column of the ONE forms message catalog (`formMessage`) — what a site in any language the catalog does not
|
|
4265
|
+
* hold reads, and what a consumer that has not added the keys yet still shows. */
|
|
4135
4266
|
const DEFAULT_EN_MESSAGES = Object.freeze({
|
|
4136
4267
|
[RULE_MESSAGE_KEYS[RuleName.Required]]: 'This field is required',
|
|
4137
4268
|
[RULE_MESSAGE_KEYS[RuleName.MinLength]]: 'Use at least {{n}} characters',
|
|
@@ -4163,6 +4294,70 @@ const DEFAULT_EN_MESSAGES = Object.freeze({
|
|
|
4163
4294
|
[DATE_MESSAGE_KEYS.Max]: 'Choose an earlier date',
|
|
4164
4295
|
[SUBMIT_MESSAGE_KEYS.Sent]: 'Sent',
|
|
4165
4296
|
});
|
|
4297
|
+
/**
|
|
4298
|
+
* The Hebrew column (iox-client-engine#15). A visitor is spoken to in the plural imperative, like every other word a site
|
|
4299
|
+
* says (`form-words.ts`: בחרו, כתבו לנו). Every key of the English column has its entry here — a spec holds that.
|
|
4300
|
+
*/
|
|
4301
|
+
const HE_MESSAGES = /* @__PURE__ */ Object.freeze({
|
|
4302
|
+
[RULE_MESSAGE_KEYS[RuleName.Required]]: 'שדה חובה',
|
|
4303
|
+
[RULE_MESSAGE_KEYS[RuleName.MinLength]]: 'כתבו לפחות {{n}} תווים',
|
|
4304
|
+
[RULE_MESSAGE_KEYS[RuleName.MaxLength]]: 'כתבו עד {{n}} תווים',
|
|
4305
|
+
[RULE_MESSAGE_KEYS[RuleName.Min]]: 'הזינו {{n}} או יותר',
|
|
4306
|
+
[RULE_MESSAGE_KEYS[RuleName.Max]]: 'הזינו {{n}} או פחות',
|
|
4307
|
+
[RULE_MESSAGE_KEYS[RuleName.Pattern]]: 'בדקו את צורת הערך',
|
|
4308
|
+
[RULE_MESSAGE_KEYS[RuleName.Matches]]: 'הערך צריך להתאים לשדה {{field}}',
|
|
4309
|
+
[RULE_MESSAGE_KEYS[RuleName.Accepted]]: 'סמנו כדי להמשיך',
|
|
4310
|
+
[RULE_MESSAGE_KEYS[RuleName.FileType]]: 'סוג הקובץ הזה לא מתקבל',
|
|
4311
|
+
[RULE_MESSAGE_KEYS[RuleName.FileSize]]: 'הקובץ גדול מ-{{n}}MB',
|
|
4312
|
+
[PATTERN_MESSAGE_KEYS['email']]: 'הזינו כתובת אימייל תקינה',
|
|
4313
|
+
[PATTERN_MESSAGE_KEYS['phone']]: 'הזינו מספר טלפון תקין',
|
|
4314
|
+
[PATTERN_MESSAGE_KEYS['url']]: 'הזינו כתובת אתר תקינה',
|
|
4315
|
+
[PATTERN_MESSAGE_KEYS['digits']]: 'ספרות בלבד',
|
|
4316
|
+
[PATTERN_MESSAGE_KEYS['letters']]: 'אותיות בלבד',
|
|
4317
|
+
[PATTERN_MESSAGE_KEYS['slug']]: 'אותיות לטיניות קטנות, ספרות ומקפים',
|
|
4318
|
+
[FORM_ERROR_KEYS.Network]: 'לא הצלחנו להגיע לשרת — בדקו את החיבור ונסו שוב',
|
|
4319
|
+
[FORM_ERROR_KEYS.Rejected]: 'יש תשובות שצריך לתקן',
|
|
4320
|
+
[FORM_ERROR_KEYS.Spam]: 'לא יכולנו לקבל את השליחה הזו',
|
|
4321
|
+
[FORM_ERROR_KEYS.RateLimited]: 'יותר מדי ניסיונות — חכו רגע ונסו שוב',
|
|
4322
|
+
[FORM_ERROR_KEYS.Server]: 'משהו השתבש אצלנו — התשובות שלכם עדיין כאן',
|
|
4323
|
+
[RULE_MESSAGE_KEYS[RuleName.OneOf]]: 'בחרו אחת מהאפשרויות',
|
|
4324
|
+
[RULE_MESSAGE_KEYS[RuleName.ValidDate]]: 'בחרו תאריך מלוח השנה',
|
|
4325
|
+
[CHOICE_MESSAGE_KEYS.One]: 'בחרו אפשרות',
|
|
4326
|
+
[CHOICE_MESSAGE_KEYS.Some]: 'בחרו לפחות אחת',
|
|
4327
|
+
[CHOICE_MESSAGE_KEYS.Date]: 'בחרו תאריך',
|
|
4328
|
+
[DATE_MESSAGE_KEYS.Min]: 'בחרו תאריך מאוחר יותר',
|
|
4329
|
+
[DATE_MESSAGE_KEYS.Max]: 'בחרו תאריך מוקדם יותר',
|
|
4330
|
+
[SUBMIT_MESSAGE_KEYS.Sent]: 'נשלח',
|
|
4331
|
+
});
|
|
4332
|
+
/** The catalog, by the language `formLanguageOf` reads. */
|
|
4333
|
+
const FORM_MESSAGES = /* @__PURE__ */ Object.freeze({
|
|
4334
|
+
en: DEFAULT_EN_MESSAGES,
|
|
4335
|
+
he: HE_MESSAGES,
|
|
4336
|
+
});
|
|
4337
|
+
/** The languages the catalog holds. */
|
|
4338
|
+
const FORM_MESSAGE_LANGUAGES = Object.freeze(['en', 'he']);
|
|
4339
|
+
/** The whole column for `lang` (`he-IL` → he, `iw` → he) — English for a language the catalog does not hold. */
|
|
4340
|
+
function formMessages(lang) {
|
|
4341
|
+
const language = formLanguageOf(lang);
|
|
4342
|
+
return Object.prototype.hasOwnProperty.call(FORM_MESSAGES, language) ? FORM_MESSAGES[language] : DEFAULT_EN_MESSAGES;
|
|
4343
|
+
}
|
|
4344
|
+
/** `{{n}}` / `{{field}}` placed where the sentence's grammar put them; a missing param reads as ''. */
|
|
4345
|
+
function interpolateMessage(template, params) {
|
|
4346
|
+
if (!params)
|
|
4347
|
+
return template;
|
|
4348
|
+
return template.replace(/\{\{(\w+)\}\}/g, (_, name) => String(params[name] ?? ''));
|
|
4349
|
+
}
|
|
4350
|
+
/**
|
|
4351
|
+
* A message KEY as the sentence a visitor reads, in the page's language — THE reading both renderers make (the
|
|
4352
|
+
* component path's default `IOX_FORM_MESSAGES`, the string runtime's): `lang`'s sentence, else the English one, else the
|
|
4353
|
+
* key itself (an author's own message, which travels as its text).
|
|
4354
|
+
*/
|
|
4355
|
+
function formMessage(key, params, lang) {
|
|
4356
|
+
const own = formMessages(lang);
|
|
4357
|
+
const template = Object.prototype.hasOwnProperty.call(own, key) ? own[key]
|
|
4358
|
+
: Object.prototype.hasOwnProperty.call(DEFAULT_EN_MESSAGES, key) ? DEFAULT_EN_MESSAGES[key] : key;
|
|
4359
|
+
return interpolateMessage(template, params);
|
|
4360
|
+
}
|
|
4166
4361
|
|
|
4167
4362
|
/**
|
|
4168
4363
|
* DATES — the date picker's pure half (premium components N8) and the date rules' one reading.
|
|
@@ -5094,121 +5289,6 @@ function normaliseErrors(raw) {
|
|
|
5094
5289
|
return Object.keys(errors).length ? errors : undefined;
|
|
5095
5290
|
}
|
|
5096
5291
|
|
|
5097
|
-
/**
|
|
5098
|
-
* FORM WORDS — what a form part says the moment it lands on a page, in the SITE's language (iox-ui#159).
|
|
5099
|
-
*
|
|
5100
|
-
* ONE table for the words nobody wrote yet: a new Field's label, the plain Form's Name / Email / Send, each field kind's
|
|
5101
|
-
* label and starter choices (the Forms tray's Checkbox, Radio group, …), and a second channel's words (WhatsApp, Call
|
|
5102
|
-
* us, …). The builder's Form type, its field-kind presets and `addFormChannel`, and the admin's channel panel all read
|
|
5103
|
-
* it — a Hebrew site gets Hebrew parts from the tray, never English it has to retype. The English column IS the
|
|
5104
|
-
* baseline the builder's configs carry; `formWordIn` turns an untouched baseline word into the site's language.
|
|
5105
|
-
*
|
|
5106
|
-
* Data + lookups only: framework-free, like the rest of forms-core. The preset forms' own words stay in
|
|
5107
|
-
* `form-presets.ts` (`FORM_PRESET_WORDS_HE`); "While sending" and "Sent" in `submit-lifecycle.ts`.
|
|
5108
|
-
*/
|
|
5109
|
-
var FormWordsLanguage;
|
|
5110
|
-
(function (FormWordsLanguage) {
|
|
5111
|
-
FormWordsLanguage["En"] = "en";
|
|
5112
|
-
FormWordsLanguage["He"] = "he";
|
|
5113
|
-
})(FormWordsLanguage || (FormWordsLanguage = {}));
|
|
5114
|
-
const CHOICES_EN = 'First choice\nSecond choice\nThird choice';
|
|
5115
|
-
const CHOICES_HE = 'אפשרות ראשונה\nאפשרות שנייה\nאפשרות שלישית';
|
|
5116
|
-
|
|
5117
|
-
const FORM_WORDS = /* @__PURE__ */ Object.freeze({
|
|
5118
|
-
en: {
|
|
5119
|
-
field: 'Label',
|
|
5120
|
-
name: 'Name',
|
|
5121
|
-
email: 'Email',
|
|
5122
|
-
send: 'Send',
|
|
5123
|
-
kinds: {
|
|
5124
|
-
checkbox: { label: 'I agree' },
|
|
5125
|
-
switch: { label: 'Enable' },
|
|
5126
|
-
radio: { label: 'Pick one', optionsText: CHOICES_EN },
|
|
5127
|
-
choices: { label: 'What do you need?', optionsText: CHOICES_EN },
|
|
5128
|
-
select: { label: 'Choose', optionsText: CHOICES_EN },
|
|
5129
|
-
range: { label: 'How much' },
|
|
5130
|
-
date: { label: 'Date' },
|
|
5131
|
-
time: { label: 'Time' },
|
|
5132
|
-
},
|
|
5133
|
-
channels: {
|
|
5134
|
-
whatsapp: 'Message us on WhatsApp',
|
|
5135
|
-
phone: 'Call us',
|
|
5136
|
-
email: 'Email us',
|
|
5137
|
-
link: 'Book online',
|
|
5138
|
-
},
|
|
5139
|
-
announce: {
|
|
5140
|
-
failed: 'That did not send.',
|
|
5141
|
-
oneField: '1 field needs attention.',
|
|
5142
|
-
fields: '{count} fields need attention.',
|
|
5143
|
-
},
|
|
5144
|
-
},
|
|
5145
|
-
he: {
|
|
5146
|
-
field: 'שם השדה',
|
|
5147
|
-
name: 'שם',
|
|
5148
|
-
email: 'אימייל',
|
|
5149
|
-
send: 'שליחה',
|
|
5150
|
-
kinds: {
|
|
5151
|
-
checkbox: { label: 'אני מאשר/ת' },
|
|
5152
|
-
switch: { label: 'הפעלה' },
|
|
5153
|
-
radio: { label: 'בחרו אחת', optionsText: CHOICES_HE },
|
|
5154
|
-
choices: { label: 'מה אתם צריכים?', optionsText: CHOICES_HE },
|
|
5155
|
-
select: { label: 'בחירה', optionsText: CHOICES_HE },
|
|
5156
|
-
range: { label: 'כמה' },
|
|
5157
|
-
date: { label: 'תאריך' },
|
|
5158
|
-
time: { label: 'שעה' },
|
|
5159
|
-
},
|
|
5160
|
-
channels: {
|
|
5161
|
-
whatsapp: 'שלחו לנו הודעה בוואטסאפ',
|
|
5162
|
-
phone: 'התקשרו אלינו',
|
|
5163
|
-
email: 'כתבו לנו',
|
|
5164
|
-
link: 'הזמנה אונליין',
|
|
5165
|
-
},
|
|
5166
|
-
announce: {
|
|
5167
|
-
failed: 'השליחה לא הצליחה.',
|
|
5168
|
-
oneField: 'שדה אחד דורש תשומת לב.',
|
|
5169
|
-
fields: '{count} שדות דורשים תשומת לב.',
|
|
5170
|
-
},
|
|
5171
|
-
},
|
|
5172
|
-
});
|
|
5173
|
-
/** The language a form speaks for a `lang` attribute or site locale: design-core's subtag (`he-IL` → `he`), the old
|
|
5174
|
-
* `iw` read as `he`; '' when none. */
|
|
5175
|
-
function formLanguageOf(lang) {
|
|
5176
|
-
const language = languageOf(lang);
|
|
5177
|
-
return language === 'iw' ? 'he' : language;
|
|
5178
|
-
}
|
|
5179
|
-
/** The words in a site's language — English for any language the table does not hold, and when none is given. */
|
|
5180
|
-
function formWords(lang) {
|
|
5181
|
-
return ownWord(FORM_WORDS, formLanguageOf(lang)) ?? FORM_WORDS[FormWordsLanguage.En];
|
|
5182
|
-
}
|
|
5183
|
-
/** The baseline — what a builder config carries before anyone writes. */
|
|
5184
|
-
function baselineFormWords() {
|
|
5185
|
-
return FORM_WORDS[FormWordsLanguage.En];
|
|
5186
|
-
}
|
|
5187
|
-
/** A field kind's seeded label and choices in `lang`; undefined for a control the tray does not offer as a row. */
|
|
5188
|
-
function fieldKindWords(control, lang) {
|
|
5189
|
-
return ownWord(formWords(lang).kinds, control);
|
|
5190
|
-
}
|
|
5191
|
-
/** A channel's words in `lang` ('' for an unknown kind — the caller keeps what it has). */
|
|
5192
|
-
function channelWords(kind, lang) {
|
|
5193
|
-
return ownWord(formWords(lang).channels, kind) ?? '';
|
|
5194
|
-
}
|
|
5195
|
-
/** A table's own entry — never an inherited `constructor` or `toString` for a key someone typed. */
|
|
5196
|
-
function ownWord(table, key) {
|
|
5197
|
-
return Object.prototype.hasOwnProperty.call(table, key) ? table[key] : undefined;
|
|
5198
|
-
}
|
|
5199
|
-
/**
|
|
5200
|
-
* An UNTOUCHED baseline word in `lang`: when `value` is the English word one of `slots` carries, the site language's word
|
|
5201
|
-
* for that slot; anything an author wrote (or an empty value) comes back as it is. How a freshly created Form, Field or
|
|
5202
|
-
* submit button speaks the site's language without a second copy of its config.
|
|
5203
|
-
*/
|
|
5204
|
-
function formWordIn(value, lang, slots) {
|
|
5205
|
-
if (typeof value !== 'string' || !value)
|
|
5206
|
-
return value;
|
|
5207
|
-
const base = baselineFormWords();
|
|
5208
|
-
const slot = slots.find(s => base[s] === value);
|
|
5209
|
-
return slot ? formWords(lang)[slot] : value;
|
|
5210
|
-
}
|
|
5211
|
-
|
|
5212
5292
|
/**
|
|
5213
5293
|
* The submit LIFECYCLE's decisions — what a form shows after the server answers, what it says when a
|
|
5214
5294
|
* submit fails, what a client needs to validate a form, and how its submit button follows its state.
|
|
@@ -5318,11 +5398,10 @@ var SubmitLabelClass;
|
|
|
5318
5398
|
* the shared CSS draws it by `stroke-dashoffset` whatever its real length. */
|
|
5319
5399
|
const SUBMIT_CHECK_SVG = `<svg class="${SubmitLabelClass.Check}" width="16" height="16" viewBox="0 0 24 24" aria-hidden="true" focusable="false">` +
|
|
5320
5400
|
'<path d="M5 12.5l4.5 4.5L19 7.5" pathLength="100" fill="none" stroke="currentColor" stroke-width="2.4" stroke-linecap="round" stroke-linejoin="round"/></svg>';
|
|
5321
|
-
/** "Sent" in the site's language, for a button whose author wrote no Sent words
|
|
5322
|
-
*
|
|
5323
|
-
const SENT_WORDS = Object.freeze({ en: 'Sent', he: 'נשלח' });
|
|
5401
|
+
/** "Sent" in the site's language, for a button whose author wrote no Sent words — the forms message catalog's
|
|
5402
|
+
* (`formMessage`), the document's `lang` picking, like the date picker's words. */
|
|
5324
5403
|
function sentWord(lang) {
|
|
5325
|
-
return
|
|
5404
|
+
return formMessage(SUBMIT_MESSAGE_KEYS.Sent, null, lang);
|
|
5326
5405
|
}
|
|
5327
5406
|
/** "While sending" in the site's language (iox-ui#158). The English one is the SubmitButton's baseline
|
|
5328
5407
|
* (`loadingLabel`), which every stamped node carries until its author writes their own. */
|
|
@@ -6402,13 +6481,8 @@ const IOX_FORM_MESSAGES = new InjectionToken('IOX_FORM_MESSAGES', {
|
|
|
6402
6481
|
providedIn: 'root',
|
|
6403
6482
|
factory: () => defaultMessageResolver,
|
|
6404
6483
|
});
|
|
6405
|
-
/** `{{n}}` / `{{field}}`
|
|
6406
|
-
const defaultMessageResolver = (key, params) =>
|
|
6407
|
-
const template = DEFAULT_EN_MESSAGES[key] ?? key;
|
|
6408
|
-
if (!params)
|
|
6409
|
-
return template;
|
|
6410
|
-
return template.replace(/\{\{(\w+)\}\}/g, (_, name) => String(params[name] ?? ''));
|
|
6411
|
-
};
|
|
6484
|
+
/** The catalog's sentence in the page's language, `{{n}}` / `{{field}}` placed — forms-core `formMessage`. */
|
|
6485
|
+
const defaultMessageResolver = (key, params, lang) => formMessage(key, params, lang);
|
|
6412
6486
|
/**
|
|
6413
6487
|
* Per-form runtime. **Provided by `IoxFormComponent`**, so every Field created into that form's
|
|
6414
6488
|
* `childrenHost` resolves THIS instance through its element injector — which is exactly how a field
|
|
@@ -7413,12 +7487,13 @@ class IoxFieldComponent {
|
|
|
7413
7487
|
return true;
|
|
7414
7488
|
return !!this.runtime?.showsError(this.fieldName);
|
|
7415
7489
|
}
|
|
7416
|
-
/** The message a visitor reads
|
|
7490
|
+
/** The message a visitor reads, in the page's language (`pageLanguageOf`) — IOX_FORM_MESSAGES, whose default is
|
|
7491
|
+
* forms-core's ONE catalog (iox-client-engine#15). */
|
|
7417
7492
|
get errorText() {
|
|
7418
7493
|
if (this.forceInvalid)
|
|
7419
7494
|
return this.designErrorText;
|
|
7420
7495
|
const error = this.runtime?.errorFor(this.fieldName);
|
|
7421
|
-
return error ? this.resolveMessage(error.messageKey, error.params) : '';
|
|
7496
|
+
return error ? this.resolveMessage(error.messageKey, error.params, pageLanguageOf(this.host?.nativeElement)) : '';
|
|
7422
7497
|
}
|
|
7423
7498
|
/** The field's spec under the name its form gave it — forms-core `fieldSpecOf`, the reading the saved spec uses. */
|
|
7424
7499
|
toSpec(name) {
|
|
@@ -7960,10 +8035,12 @@ class IoxSubmitButtonComponent {
|
|
|
7960
8035
|
if (this.sentLabel)
|
|
7961
8036
|
return this.sentLabel;
|
|
7962
8037
|
const key = SUBMIT_MESSAGE_KEYS.Sent;
|
|
7963
|
-
const
|
|
8038
|
+
const lang = this.pageLang();
|
|
8039
|
+
const translated = (this.resolveMessage ?? defaultMessageResolver)(key, undefined, lang);
|
|
8040
|
+
// A host resolver that knows no language hands back the English column — the page's language wins over it.
|
|
7964
8041
|
if (translated && translated !== key && translated !== DEFAULT_EN_MESSAGES[key])
|
|
7965
8042
|
return translated;
|
|
7966
|
-
return sentWord(
|
|
8043
|
+
return sentWord(lang);
|
|
7967
8044
|
}
|
|
7968
8045
|
/** The page's language (`pageLanguageOf`). */
|
|
7969
8046
|
pageLang() {
|
|
@@ -11877,17 +11954,12 @@ function bind(pattern, path) {
|
|
|
11877
11954
|
}
|
|
11878
11955
|
return values;
|
|
11879
11956
|
}
|
|
11880
|
-
/**
|
|
11881
|
-
*
|
|
11882
|
-
|
|
11883
|
-
*/
|
|
11884
|
-
function matchRedirect(redirects, path) {
|
|
11885
|
-
const at = redirectPath(path);
|
|
11886
|
-
if (!at)
|
|
11887
|
-
return null;
|
|
11957
|
+
/** The redirect that answers `at` (already a redirect path) and where it sends it: an exact `from` first, then the first
|
|
11958
|
+
* pattern that matches, its `:name` values put into `to`. */
|
|
11959
|
+
function hop(redirects, at) {
|
|
11888
11960
|
const exact = redirects.find(r => !segmentsOf(r.from).some(isParam) && redirectPath(r.from) === at);
|
|
11889
11961
|
if (exact)
|
|
11890
|
-
return {
|
|
11962
|
+
return { redirect: exact, to: exact.to };
|
|
11891
11963
|
for (const r of redirects) {
|
|
11892
11964
|
if (!segmentsOf(r.from).some(isParam))
|
|
11893
11965
|
continue;
|
|
@@ -11895,10 +11967,41 @@ function matchRedirect(redirects, path) {
|
|
|
11895
11967
|
if (!values)
|
|
11896
11968
|
continue;
|
|
11897
11969
|
const to = segmentsOf(r.to).map(s => (isParam(s) ? values[s] ?? s : s)).join('/');
|
|
11898
|
-
return { to: `/${to}
|
|
11970
|
+
return { redirect: r, to: `/${to}` };
|
|
11899
11971
|
}
|
|
11900
11972
|
return null;
|
|
11901
11973
|
}
|
|
11974
|
+
/**
|
|
11975
|
+
* The redirect a request for `path` follows, or null: an exact `from` first, then the first pattern that matches, its
|
|
11976
|
+
* `:name` values put into `to`. ONE hop — what `to` answers is the next request's business.
|
|
11977
|
+
*/
|
|
11978
|
+
function matchRedirect(redirects, path) {
|
|
11979
|
+
const at = redirectPath(path);
|
|
11980
|
+
if (!at)
|
|
11981
|
+
return null;
|
|
11982
|
+
const found = hop(redirects, at);
|
|
11983
|
+
return found ? { to: found.to, code: found.redirect.code } : null;
|
|
11984
|
+
}
|
|
11985
|
+
/**
|
|
11986
|
+
* Where a visitor sent to `to` finally lands, or null when `to` is no redirect's `from` (nothing to follow) or the chain
|
|
11987
|
+
* comes back on itself (no end to offer). The owner's dialog offers it when a new redirect is refused as a chain
|
|
11988
|
+
* (`RedirectRefusal.Loop`): "send it to /about instead" (X9-D8). Follows every hop, exact before pattern, the same match
|
|
11989
|
+
* the engine makes — the offer is judged again by `redirectRefusal` before it is shown.
|
|
11990
|
+
*/
|
|
11991
|
+
function redirectChainEnd(redirects, to) {
|
|
11992
|
+
let at = redirectPath(to);
|
|
11993
|
+
if (!at)
|
|
11994
|
+
return null;
|
|
11995
|
+
const seen = new Set([at]);
|
|
11996
|
+
for (let found = hop(redirects, at); found; found = hop(redirects, at)) {
|
|
11997
|
+
const next = redirectPath(found.to);
|
|
11998
|
+
if (!next || seen.has(next))
|
|
11999
|
+
return null;
|
|
12000
|
+
seen.add(next);
|
|
12001
|
+
at = next;
|
|
12002
|
+
}
|
|
12003
|
+
return seen.size > 1 ? at : null;
|
|
12004
|
+
}
|
|
11902
12005
|
/**
|
|
11903
12006
|
* Why `candidate` may not be written, or null. A `from` must not be where a page answers (it would hide the page); a
|
|
11904
12007
|
* `to` must not be another redirect's `from` and a `from` not another's `to` (no chains, so no loops — the engine
|
|
@@ -13437,7 +13540,7 @@ class StringFormRuntime {
|
|
|
13437
13540
|
continue;
|
|
13438
13541
|
const error = this.state.errors[field.name];
|
|
13439
13542
|
const shown = !!error && shouldShowError(field.name, this.state, this.spec.feedback);
|
|
13440
|
-
const text = shown ? this.messages(error.messageKey, error.params) : '';
|
|
13543
|
+
const text = shown ? this.messages(error.messageKey, error.params, pageLanguageOf(this.form)) : '';
|
|
13441
13544
|
writeFieldError(el, shown ? text : '');
|
|
13442
13545
|
}
|
|
13443
13546
|
}
|
|
@@ -14220,5 +14323,5 @@ class PopupRuntime {
|
|
|
14220
14323
|
* Generated bundle index. Do not edit.
|
|
14221
14324
|
*/
|
|
14222
14325
|
|
|
14223
|
-
export { A11yAttribute, A11yTrait, ACCESSIBLE_NAME_TYPES, AOSService, ARIA_CURRENT_PAGE, BACKDROP_TWIN_KEY, BACKDROP_WHOLE_KEY, BLUR_IN_START_PX, BOUND_STYLE_PREFIX, BREAKPOINTS, Breakpoint, BreakpointQueryKind, BuilderButtonComponent, BuilderDividerComponent, BuilderHeadingComponent, BuilderIconComponent, BuilderImageComponent, BuilderLinkComponent, BuilderSpacerComponent, ButtonBlockComponent, CALENDAR_CLOSING_ATTRIBUTE, CALENDAR_DESIGN_ATTRIBUTE, CALENDAR_INSTANT_ATTRIBUTE, CALENDAR_SHEET_QUERY, COMPONENT_STATE_SELECTOR, CONTAINER_HTML_TAGS, CONTEXT_ACTION_TYPES, COUNT_ATTRIBUTE, COUNT_DEFAULT_MS, COUNT_MAX_MS, COUNT_UP_ACTION, CURRENT_LINK_TYPES, CalendarClass, CardComponent, ClientGalleryComponent, ClientListComponent, ClientListItemComponent, ClientRepeaterComponent, ClientSliderContainerComponent, ClientSliderSlideComponent, ComponentInstanceRegistryService, ComponentState, ContainerComponent, ContextStore, CoverPaint, DECORATIVE_ROLES, DECORATIVE_TYPES, DEFAULT_GALLERY_SCHEDULER, DEFAULT_INTERACTION_EASING, DEFAULT_PAGE_TRANSITION, DEFAULT_PAGE_TRANSITION_DURATION, DEFAULT_PAGE_TRANSITION_EASING, DEFAULT_PAGE_TRANSITION_PERSPECTIVE, DEFAULT_PHOSPHOR_WEIGHT, DEFAULT_WIDTH_BY_TYPE, DEPTH_CLIP_ATTRIBUTE, DIALOG_CLOSE_ABOVE_ATTRIBUTE, DIALOG_NODE_TYPE, DISSOLVE_GROW_DEFAULT, DatePickerRuntime, DeclarationContext, EASING_KEYWORDS, EASING_TOKENS, ENTRANCE_ACTION_TYPES, ENTRANCE_FALLBACK_CSS, ENTRANCE_NOSCRIPT_CSS, ENTRANCE_PRESTATE_ATTRIBUTE, EXIT_ACTION_TYPES, EasingKeyword, EasingToken, FLOATING_GAP, FLOATING_LAYER_CLASS, FLOATING_MARGIN, FLOATING_SHEET_QUERY, FloatingAlign, FloatingSide, FormRenderState, FormRuntimeService, GALLERY_EFFECTS, GALLERY_EFFECT_DESCRIPTORS, GalleryLoop, HEADER_SCROLL_HYSTERESIS_PX, HOVER_DEFAULT_TRANSITION_TRAITS, HOVER_MEDIA_QUERY, HOVER_STATES, HeaderInkRuntime, HeaderRuntime, INTERACTION_ANIMATION_ID, INTERACTION_HIDDEN_ATTRIBUTE, INTERACTION_MARKER_ATTRIBUTES, IOX_BUILDER_EVENTS, IOX_FORM_MESSAGES, IOX_FORM_NAVIGATOR, IOX_FORM_TRANSPORT, IS_PREVIEW, InlineEditEvent, IoxAnimateContainer, IoxAosDirective, IoxAosModule, IoxBuilderComponentsModule, IoxComponentRegistryService, IoxDialogComponent, IoxFieldComponent, IoxFormComponent, IoxFormErrorComponent, IoxFormSuccessComponent, IoxPageComponent, IoxPageModule, IoxPopoverComponent, IoxSubmitButtonComponent, IoxUiModule, IoxVideoComponent, LAST_EMITTED_STATES, LEGACY_DIRECTION_KEY, LEGACY_HOVER_TRANSITION_TRAITS, LEGACY_SWIPER_CONTROLS, LIST_GROUND_PIPE, LIST_INK_PIPE, LinkedContainerComponent, MANAGED_A11Y_ATTRIBUTES, MAX_LINES_KEY, NAMED_GROUP_ROLES, NO_PAGE_TRANSITION, ON_STATE_ROLES, OUTER_STYLE_PROPS, PAGE_LEAVE_RATIO, PAGE_STYLE_TOKENS, PAGE_TOKEN_FALLBACKS, PAGE_TRANSITION_CATEGORIES, PAGE_TRANSITION_PRESETS, PART_CLASS_NAMES, PART_PAGINATION_MODIFIER, PHONE_TRANSITION_QUERY, PIPE_DESCRIPTORS, PIPE_REGISTRY, POPOVER_SELECTOR, POPUP_ANNOUNCE_ATTRIBUTE, POPUP_SCALE_PROPERTY, POPUP_SELECTOR, POPUP_STILL_ATTRIBUTE, PRELOADER_AT_ATTRIBUTE, PRELOADER_CLASS, PRELOADER_CSS, PRELOADER_END_EVENT, PRELOADER_RUN_ATTRIBUTE, PRELOADING_ATTRIBUTE, PROGRESS_ATTRIBUTE, PageScrollProvider, PageStyleField, PageStyleSource, PausableTimer, PauseReason, PointerKind, PopoverAttribute, PopupRuntime, REDUCED_ENTRANCE_FRAMES, REDUCED_MOTION_QUERY, REDUCED_PAGE_LEAVE, RELATIONAL_STATE_PSEUDO, RevealActionType, SCROLLBARS_TAKE_WIDTH_CLASS, SCROLLED_ATTRIBUTE, SCROLLED_STATE_ROLE, SCROLLED_THRESHOLD_PX, SCROLL_ANIMATION_ID, SCROLL_EASINGS, SELF_PLAYING_TRIGGERS, SHAKE_DURATION_MS, SHAKE_EASING, SHAKE_KEYFRAMES, SLIDER_CARDS, SLIDER_FAN, SLIDER_FEEL, SLIDER_INPUTS_ATTRIBUTE, SLIDER_INPUT_NAMES, SLIDER_PHONE_BREAKPOINT, SLIDER_RUNWAY_CLASS, SLIDER_STEPS_PROPERTY, SLIDE_CAPTION_ATTRIBUTE, STATE_PSEUDO_CLASS, STRUCTURAL_STATES, SUPPRESSED_STYLE_PROPS_BY_TYPE, SWIPER_A11Y_OPTIONS, SWIPER_RESPONSIVE_TRAITS, SWIPER_TRIGGER_EVENTS, ScrollActionType, ScrollEasing, SectionComponent, SettleMode, SliderCreativePreset, StringFormRuntime, SwiperModuleName, TARGETED_STATE_SUFFIX, TEXT_ALIGN_KEY, TEXT_DIRECTION_KEY, TOAST_CLOSE_WORDS, TOAST_DESIGN_ATTRIBUTE, TOAST_EDGE_ATTRIBUTE, TOAST_FIRST_LANDS_MS, TOAST_MAX_MS, TOAST_MAX_VISIBLE, TOAST_MIN_MS, TOAST_MS_PER_CHAR, TOOLTIP_ATTRIBUTE, TOOLTIP_FIRST_DELAY_MS, TOOLTIP_HIDE_GRACE_MS, TOOLTIP_INSTANT_ATTRIBUTE, TOOLTIP_PINNED_ATTRIBUTE, TOOLTIP_PLACEMENT_ATTRIBUTE, TOOLTIP_SIDE_ATTRIBUTE, TOOLTIP_TYPES, TOOLTIP_WARM_MS, TRANSITION_FEELS, TRANSITION_PROPERTY_KEY, TextAlign, TextBlockComponent, ToastClass, ToastEdge, TooltipClass, TooltipRuntime, VALIDATION_STATES, VALIDATION_STATE_CLASS, VIRTUAL_TRAIT_GROUPS, VIRTUAL_TRAIT_KEYS, ViewPositionDirective, ViewPositionModule, VisibilityActionType, activeActions, afterPreloader, animateAction, applyBindingPipes, applyBoundStyle, applyBoundStyles, applyFeel, armCountUp, armInteractionCounts, attachDatePicker, attachDatePickers, attachScrollProgress, attachStringForm, attachTooltips, bootSlider, boundStyleCss, boundStyleEntries, boundStyleOf, breakpointDef, breakpointForWidth, breakpointQueryFor, buildInteractionKeyframes, buildPartSelector, buildPreloaderLayer, buildSwiperBreakpoints, buildTargetedStateSelector, buildTargetedSuffixSelector, buildTransitionTimeline, canPopover$1 as canPopover, cascadeChain, clearInputOverride, clearOverride, clearToasts, closeAboveMediaQuery, closeAllPopovers, closePopover, collectContextSlotKeys, commitInlineEdit, compileDeclarations, compilePageStyle, componentStatesFor, composeVirtualTraits, containerHtmlTag, contextActionEffect, contextSlotKeys, countDuration, countIsReadable, countLocaleOf, countOverrides, countValueAt, coverPanelStyle, createCoverPanel, datePickerOf, declaredInputNames, decomposeBackdropFilter, defaultHoverTransitionTraits, defaultMessageResolver, deriveSeoFromContent, describePageStyle, describeSeoFields, dialogCloseAboveMinWidth, directionalFrames, dissolveGrowOf, domHasSliderParts, durationMs, effectiveActionType, effectiveTransitionId, ensurePreloaderStyles, entrancePreStateStyle, entranceStartsHidden, fanMiddle, feelFor, fieldLanguage, finalKeyframe, firstScreenReadiness, floatingLayer, floatingScope, formSentWords, formToastsOnSend, formatCount, framesFromLiveValue, gateHoverRule, getSeoValue, hasCounted, hasHoverState, hasOwnPageTransition, hasOwnTransition, headerShouldHide, heldFrames, hideFromTopLayer, hidingHeadersIn, holdsOnScreen, initialSlotValues, inkFollowingHeadersIn, interactionMarkerAttributes, isActionEnabled, isBoundProp, isBoundStyleProp, isContextAction, isCubicBezier, isCurrentLink, isEasingToken, isExternalOrFragment, isGradientPaint, isHoverPointer, isHoverState, isInputOverriddenAt, isInteractionEasing, isLastEmittedStateKey, isOpenPopover, isOperated, isOverriddenAt, isPopoverOpen, isPreloading, isPressFeedback, isScrolled, isStructuralState, isValidSlotKey, isWholeBackdropSet, keyframePropertyName, keyframeStyleEntries, layerFrame, legacyEnterToTransition, lookEaseOf, markScrollbarsTakeWidth, mediaQueryFor, mergeSwiperBreakpoints, migrateLegacyDirection, migrateLegacyTextAlign, motionAllowed, mountPreloader, nearestCommonAncestorId, needsAccessibleName, needsGroupName, nodeA11yAttributes, nodeCssId, nodeTraitValue, nodeUsesContext, normalizeAppPath, normalizeGalleryImage, normalizeIconClass, openPopover, openingPictureOf, orderStatesForEmit, pageTransitionOf, parentBreakpoint, parseCount, parseUrlList, partClassName, placeFloating, placePopover, planPartRule, planResponsiveRules, planScroll, planStateRule, planSwiperOptions, playCountUp, playDualLayerTransition, playInteraction, playPreloaderPreview, playsOnScroll, popoverPanelAttributes, popoverSide, popupAttributeGetter, popupIdOf, prefersReducedMotion, preloaderContentOf, preloaderHeadScript, raiseFloatingLayer, raiseFormToast, rectInLayer, reducedEntranceFades, reducedEntranceRun, renderDefaultDeclarations, resetPageStyleField, resetSeoField, resolveBoundValue, resolveContextValue, resolveGalleryEffect, resolveGalleryUrls, resolveInputChain, resolveInputs, resolveInteractionEasing, resolvePageTransition, resolvePath, resolveSeo, resolveStateStyles, resolveStyleProps, resolveToggleVisibility, resolveValueChain, restoreCountUp, rewriteViewportUnits, runPreloader, safeSetInput, scrollActionKind, scrollMotionEnv, scrollbarsTakeWidthScript, scrubUntilOf, serializeA11yAttributes, setDateFieldValue, setInputOverride, setOverride, setSeoAuto, setSeoBinding, setSeoOverride, setSeoValue, settleInteraction, settleModeFor, shakeElement, showCalendarDesign, showInTopLayer, showToast, showToastDesign, sliderControlElements, sliderInputsFromProps, sliderInputsOf, sliderRunwayHtml, splitOuterProps, splitPressFeedback, stateNamesIn, statePseudoClass, stateSelectorSuffix, stateTransitionProperties, stringFormRuntimeOf, stripSuppressedProps, swiperAutoplayAllowed, swiperLoopOptions, swiperModuleNames, syncInteractionMarkers, syncNodeA11yAttributes, syncSubmitButtons, targetedStateSelector, toLayerRect, toastCloseWord, toastDuration, toastEdge, toastsToEvict, togglePopover, tooltipSide, tooltipTiming, tooltipWords, tooltipsOf, transitionPropertyList, translateYOf, viewportTransitionContext, watchHeaderInk, watchHeaders, watchScrolled, withContextSlots, withPhoneDefaults, withStateTransitions, wrapInBreakpointQuery, wrapInMediaQuery };
|
|
14326
|
+
export { A11yAttribute, A11yTrait, ACCESSIBLE_NAME_TYPES, AOSService, ARIA_CURRENT_PAGE, BACKDROP_TWIN_KEY, BACKDROP_WHOLE_KEY, BLUR_IN_START_PX, BOUND_STYLE_PREFIX, BREAKPOINTS, Breakpoint, BreakpointQueryKind, BuilderButtonComponent, BuilderDividerComponent, BuilderHeadingComponent, BuilderIconComponent, BuilderImageComponent, BuilderLinkComponent, BuilderSpacerComponent, ButtonBlockComponent, CALENDAR_CLOSING_ATTRIBUTE, CALENDAR_DESIGN_ATTRIBUTE, CALENDAR_INSTANT_ATTRIBUTE, CALENDAR_SHEET_QUERY, COMPONENT_STATE_SELECTOR, CONTAINER_HTML_TAGS, CONTEXT_ACTION_TYPES, COUNT_ATTRIBUTE, COUNT_DEFAULT_MS, COUNT_MAX_MS, COUNT_UP_ACTION, CURRENT_LINK_TYPES, CalendarClass, CardComponent, ClientGalleryComponent, ClientListComponent, ClientListItemComponent, ClientRepeaterComponent, ClientSliderContainerComponent, ClientSliderSlideComponent, ComponentInstanceRegistryService, ComponentState, ContainerComponent, ContextStore, CoverPaint, DECORATIVE_ROLES, DECORATIVE_TYPES, DEFAULT_GALLERY_SCHEDULER, DEFAULT_INTERACTION_EASING, DEFAULT_PAGE_TRANSITION, DEFAULT_PAGE_TRANSITION_DURATION, DEFAULT_PAGE_TRANSITION_EASING, DEFAULT_PAGE_TRANSITION_PERSPECTIVE, DEFAULT_PHOSPHOR_WEIGHT, DEFAULT_WIDTH_BY_TYPE, DEPTH_CLIP_ATTRIBUTE, DIALOG_CLOSE_ABOVE_ATTRIBUTE, DIALOG_NODE_TYPE, DISSOLVE_GROW_DEFAULT, DatePickerRuntime, DeclarationContext, EASING_KEYWORDS, EASING_TOKENS, ENTRANCE_ACTION_TYPES, ENTRANCE_FALLBACK_CSS, ENTRANCE_NOSCRIPT_CSS, ENTRANCE_PRESTATE_ATTRIBUTE, EXIT_ACTION_TYPES, EasingKeyword, EasingToken, FLOATING_GAP, FLOATING_LAYER_CLASS, FLOATING_MARGIN, FLOATING_SHEET_QUERY, FloatingAlign, FloatingSide, FormRenderState, FormRuntimeService, GALLERY_EFFECTS, GALLERY_EFFECT_DESCRIPTORS, GalleryLoop, HEADER_SCROLL_HYSTERESIS_PX, HOVER_DEFAULT_TRANSITION_TRAITS, HOVER_MEDIA_QUERY, HOVER_STATES, HeaderInkRuntime, HeaderRuntime, IMAGE_DEFAULT_CSS, INTERACTION_ANIMATION_ID, INTERACTION_HIDDEN_ATTRIBUTE, INTERACTION_MARKER_ATTRIBUTES, IOX_BUILDER_EVENTS, IOX_FORM_MESSAGES, IOX_FORM_NAVIGATOR, IOX_FORM_TRANSPORT, IS_PREVIEW, InlineEditEvent, IoxAnimateContainer, IoxAosDirective, IoxAosModule, IoxBuilderComponentsModule, IoxComponentRegistryService, IoxDialogComponent, IoxFieldComponent, IoxFormComponent, IoxFormErrorComponent, IoxFormSuccessComponent, IoxPageComponent, IoxPageModule, IoxPopoverComponent, IoxSubmitButtonComponent, IoxUiModule, IoxVideoComponent, LAST_EMITTED_STATES, LEGACY_DIRECTION_KEY, LEGACY_HOVER_TRANSITION_TRAITS, LEGACY_SWIPER_CONTROLS, LIST_GROUND_PIPE, LIST_INK_PIPE, LinkedContainerComponent, MANAGED_A11Y_ATTRIBUTES, MAX_LINES_KEY, NAMED_GROUP_ROLES, NO_PAGE_TRANSITION, ON_STATE_ROLES, OUTER_STYLE_PROPS, PAGE_LEAVE_RATIO, PAGE_STYLE_TOKENS, PAGE_TOKEN_FALLBACKS, PAGE_TRANSITION_CATEGORIES, PAGE_TRANSITION_PRESETS, PART_CLASS_NAMES, PART_PAGINATION_MODIFIER, PHONE_TRANSITION_QUERY, PIPE_DESCRIPTORS, PIPE_REGISTRY, POPOVER_SELECTOR, POPUP_ANNOUNCE_ATTRIBUTE, POPUP_SCALE_PROPERTY, POPUP_SELECTOR, POPUP_STILL_ATTRIBUTE, PRELOADER_AT_ATTRIBUTE, PRELOADER_CLASS, PRELOADER_CSS, PRELOADER_END_EVENT, PRELOADER_RUN_ATTRIBUTE, PRELOADING_ATTRIBUTE, PROGRESS_ATTRIBUTE, PageScrollProvider, PageStyleField, PageStyleSource, PausableTimer, PauseReason, PointerKind, PopoverAttribute, PopupRuntime, REDUCED_ENTRANCE_FRAMES, REDUCED_MOTION_QUERY, REDUCED_PAGE_LEAVE, RELATIONAL_STATE_PSEUDO, RevealActionType, SCROLLBARS_TAKE_WIDTH_CLASS, SCROLLED_ATTRIBUTE, SCROLLED_STATE_ROLE, SCROLLED_THRESHOLD_PX, SCROLL_ANIMATION_ID, SCROLL_EASINGS, SELF_PLAYING_TRIGGERS, SHAKE_DURATION_MS, SHAKE_EASING, SHAKE_KEYFRAMES, SLIDER_CARDS, SLIDER_FAN, SLIDER_FEEL, SLIDER_INPUTS_ATTRIBUTE, SLIDER_INPUT_NAMES, SLIDER_PHONE_BREAKPOINT, SLIDER_RUNWAY_CLASS, SLIDER_STEPS_PROPERTY, SLIDE_CAPTION_ATTRIBUTE, STATE_PSEUDO_CLASS, STRUCTURAL_STATES, SUPPRESSED_STYLE_PROPS_BY_TYPE, SWIPER_A11Y_OPTIONS, SWIPER_RESPONSIVE_TRAITS, SWIPER_TRIGGER_EVENTS, ScrollActionType, ScrollEasing, SectionComponent, SettleMode, SliderCreativePreset, StringFormRuntime, SwiperModuleName, TARGETED_STATE_SUFFIX, TEXT_ALIGN_KEY, TEXT_DIRECTION_KEY, TOAST_CLOSE_WORDS, TOAST_DESIGN_ATTRIBUTE, TOAST_EDGE_ATTRIBUTE, TOAST_FIRST_LANDS_MS, TOAST_MAX_MS, TOAST_MAX_VISIBLE, TOAST_MIN_MS, TOAST_MS_PER_CHAR, TOOLTIP_ATTRIBUTE, TOOLTIP_FIRST_DELAY_MS, TOOLTIP_HIDE_GRACE_MS, TOOLTIP_INSTANT_ATTRIBUTE, TOOLTIP_PINNED_ATTRIBUTE, TOOLTIP_PLACEMENT_ATTRIBUTE, TOOLTIP_SIDE_ATTRIBUTE, TOOLTIP_TYPES, TOOLTIP_WARM_MS, TRANSITION_FEELS, TRANSITION_PROPERTY_KEY, TextAlign, TextBlockComponent, ToastClass, ToastEdge, TooltipClass, TooltipRuntime, VALIDATION_STATES, VALIDATION_STATE_CLASS, VIRTUAL_TRAIT_GROUPS, VIRTUAL_TRAIT_KEYS, ViewPositionDirective, ViewPositionModule, VisibilityActionType, activeActions, afterPreloader, animateAction, applyBindingPipes, applyBoundStyle, applyBoundStyles, applyFeel, armCountUp, armInteractionCounts, attachDatePicker, attachDatePickers, attachScrollProgress, attachStringForm, attachTooltips, bootSlider, boundStyleCss, boundStyleEntries, boundStyleOf, breakpointDef, breakpointForWidth, breakpointQueryFor, buildInteractionKeyframes, buildPartSelector, buildPreloaderLayer, buildSwiperBreakpoints, buildTargetedStateSelector, buildTargetedSuffixSelector, buildTransitionTimeline, canPopover$1 as canPopover, cascadeChain, clearInputOverride, clearOverride, clearToasts, closeAboveMediaQuery, closeAllPopovers, closePopover, collectContextSlotKeys, commitInlineEdit, compileDeclarations, compilePageStyle, componentStatesFor, composeVirtualTraits, containerHtmlTag, contextActionEffect, contextSlotKeys, countDuration, countIsReadable, countLocaleOf, countOverrides, countValueAt, coverPanelStyle, createCoverPanel, datePickerOf, declaredInputNames, decomposeBackdropFilter, defaultHoverTransitionTraits, defaultMessageResolver, deriveSeoFromContent, describePageStyle, describeSeoFields, dialogCloseAboveMinWidth, directionalFrames, dissolveGrowOf, domHasSliderParts, durationMs, effectiveActionType, effectiveTransitionId, ensurePreloaderStyles, entrancePreStateStyle, entranceStartsHidden, fanMiddle, feelFor, fieldLanguage, finalKeyframe, firstScreenReadiness, floatingLayer, floatingScope, formSentWords, formToastsOnSend, formatCount, framesFromLiveValue, gateHoverRule, getSeoValue, hasCounted, hasHoverState, hasOwnPageTransition, hasOwnTransition, headerShouldHide, heldFrames, hideFromTopLayer, hidingHeadersIn, holdsOnScreen, initialSlotValues, inkFollowingHeadersIn, interactionMarkerAttributes, isActionEnabled, isBoundProp, isBoundStyleProp, isContextAction, isCubicBezier, isCurrentLink, isEasingToken, isExternalOrFragment, isGradientPaint, isHoverPointer, isHoverState, isInputOverriddenAt, isInteractionEasing, isLastEmittedStateKey, isOpenPopover, isOperated, isOverriddenAt, isPopoverOpen, isPreloading, isPressFeedback, isScrolled, isStructuralState, isValidSlotKey, isWholeBackdropSet, keyframePropertyName, keyframeStyleEntries, layerFrame, legacyEnterToTransition, lookEaseOf, markScrollbarsTakeWidth, mediaQueryFor, mergeSwiperBreakpoints, migrateLegacyDirection, migrateLegacyTextAlign, motionAllowed, mountPreloader, nearestCommonAncestorId, needsAccessibleName, needsGroupName, nodeA11yAttributes, nodeCssId, nodeTraitValue, nodeUsesContext, normalizeAppPath, normalizeGalleryImage, normalizeIconClass, openPopover, openingPictureOf, orderStatesForEmit, pageTransitionOf, parentBreakpoint, parseCount, parseUrlList, partClassName, placeFloating, placePopover, planPartRule, planResponsiveRules, planScroll, planStateRule, planSwiperOptions, playCountUp, playDualLayerTransition, playInteraction, playPreloaderPreview, playsOnScroll, popoverPanelAttributes, popoverSide, popupAttributeGetter, popupIdOf, prefersReducedMotion, preloaderContentOf, preloaderHeadScript, raiseFloatingLayer, raiseFormToast, rectInLayer, reducedEntranceFades, reducedEntranceRun, renderDefaultDeclarations, resetPageStyleField, resetSeoField, resolveBoundValue, resolveContextValue, resolveGalleryEffect, resolveGalleryUrls, resolveInputChain, resolveInputs, resolveInteractionEasing, resolvePageTransition, resolvePath, resolveSeo, resolveStateStyles, resolveStyleProps, resolveToggleVisibility, resolveValueChain, restoreCountUp, rewriteViewportUnits, runPreloader, safeSetInput, scrollActionKind, scrollMotionEnv, scrollbarsTakeWidthScript, scrubUntilOf, serializeA11yAttributes, setDateFieldValue, setInputOverride, setOverride, setSeoAuto, setSeoBinding, setSeoOverride, setSeoValue, settleInteraction, settleModeFor, shakeElement, showCalendarDesign, showInTopLayer, showToast, showToastDesign, sliderControlElements, sliderInputsFromProps, sliderInputsOf, sliderRunwayHtml, splitOuterProps, splitPressFeedback, stateNamesIn, statePseudoClass, stateSelectorSuffix, stateTransitionProperties, stringFormRuntimeOf, stripSuppressedProps, swiperAutoplayAllowed, swiperLoopOptions, swiperModuleNames, syncInteractionMarkers, syncNodeA11yAttributes, syncSubmitButtons, targetedStateSelector, toLayerRect, toastCloseWord, toastDuration, toastEdge, toastsToEvict, togglePopover, tooltipSide, tooltipTiming, tooltipWords, tooltipsOf, transitionPropertyList, translateYOf, viewportTransitionContext, watchHeaderInk, watchHeaders, watchScrolled, withContextSlots, withPhoneDefaults, withStateTransitions, wrapInBreakpointQuery, wrapInMediaQuery };
|
|
14224
14327
|
//# sourceMappingURL=vectoriox-iox-ui.mjs.map
|