@habit.analytics/habit-claims-journey-components 2.1.9 → 2.2.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/dist/components/journey-builder/preview-widgets/SelectWidget.d.ts +1 -1
- package/dist/components/journey-builder/preview-widgets/TimeWidget.d.ts +4 -3
- package/dist/i18n/locales/en.d.ts +32 -0
- package/dist/index.cjs +71 -71
- package/dist/index.mjs +7536 -6887
- package/dist/lib/computed-field.d.ts +12 -0
- package/dist/schemas/form-config.schema.json.d.ts +6 -4
- package/dist/types/journey.d.ts +54 -2
- package/package.json +1 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ClaimPropertySpecOption } from '../../../types/journey';
|
|
2
|
-
export type SelectVariant = 'auto' | 'radio' | 'dropdown' | 'segmented';
|
|
2
|
+
export type SelectVariant = 'auto' | 'radio' | 'radio-horizontal' | 'dropdown' | 'segmented';
|
|
3
3
|
interface SelectWidgetProps {
|
|
4
4
|
label: string;
|
|
5
5
|
value: string;
|
|
@@ -5,10 +5,11 @@ interface TimeWidgetProps {
|
|
|
5
5
|
onChange: (value: string) => void;
|
|
6
6
|
helpText?: string;
|
|
7
7
|
}
|
|
8
|
+
export declare function maskTimeInput(raw: string): string;
|
|
9
|
+
export declare function isValidTime24h(value: string): boolean;
|
|
8
10
|
/**
|
|
9
|
-
*
|
|
10
|
-
* Stores values as `HH:mm`
|
|
11
|
-
* automatically renders 12h/24h based on the user's OS/browser locale.
|
|
11
|
+
* 24-hour time picker.
|
|
12
|
+
* Stores values as `HH:mm` and always renders a locale-independent 24h input.
|
|
12
13
|
*/
|
|
13
14
|
export declare function TimeWidget({ label, value, onChange, helpText }: TimeWidgetProps): import("react/jsx-runtime").JSX.Element;
|
|
14
15
|
export {};
|
|
@@ -197,6 +197,8 @@ declare const en: {
|
|
|
197
197
|
readonly fc_no_fields: "No fields.";
|
|
198
198
|
readonly fc_edit: "Edit";
|
|
199
199
|
readonly fc_remove_from_row: "Remove from row";
|
|
200
|
+
readonly fc_row_title_placeholder: "Section title (optional)";
|
|
201
|
+
readonly fc_row_show_divider: "Divider";
|
|
200
202
|
readonly fc_nav_title: "Step Navigation";
|
|
201
203
|
readonly fc_nav_api_call: "API call on continue";
|
|
202
204
|
readonly fc_nav_api_call_hint: "Executed before evaluating the rules.";
|
|
@@ -330,6 +332,7 @@ declare const en: {
|
|
|
330
332
|
readonly fc_field_display_style: "Display style";
|
|
331
333
|
readonly fc_field_display_auto: "Auto (radio ≤5, dropdown >5)";
|
|
332
334
|
readonly fc_field_display_radio: "Radio list";
|
|
335
|
+
readonly fc_field_display_radio_horizontal: "Radio list horizontal";
|
|
333
336
|
readonly fc_field_display_dropdown: "Dropdown";
|
|
334
337
|
readonly fc_field_display_segmented: "Segmented buttons";
|
|
335
338
|
readonly fc_field_display_hint: "Controls how options render at runtime.";
|
|
@@ -341,6 +344,35 @@ declare const en: {
|
|
|
341
344
|
readonly fc_field_upload_validation: "Upload validation";
|
|
342
345
|
readonly fc_field_upload_accept: "Accepted MIME types/extensions";
|
|
343
346
|
readonly fc_field_upload_max: "Max size (MB)";
|
|
347
|
+
readonly fc_field_dynamic_rules: "Dynamic rules";
|
|
348
|
+
readonly fc_field_dynamic_rules_hint: "Show, enable or require this field based on other answers.";
|
|
349
|
+
readonly fc_field_visible_when: "Show when";
|
|
350
|
+
readonly fc_field_visible_when_hint: "When the condition is false, the field is hidden and its value is cleared.";
|
|
351
|
+
readonly fc_field_enabled_when: "Enable when";
|
|
352
|
+
readonly fc_field_enabled_when_hint: "When the condition is false, the field is shown as read-only.";
|
|
353
|
+
readonly fc_field_required_when: "Required when";
|
|
354
|
+
readonly fc_field_required_when_hint: "Overrides the static \"required\" flag while the field is visible.";
|
|
355
|
+
readonly fc_field_always_visible: "Always visible";
|
|
356
|
+
readonly fc_field_always_enabled: "Always enabled";
|
|
357
|
+
readonly fc_field_required_static: "Use static \"Required\" setting";
|
|
358
|
+
readonly fc_field_rule_active: "Rule active";
|
|
359
|
+
readonly fc_field_computed: "Computed value";
|
|
360
|
+
readonly fc_field_computed_hint: "Auto-calculate this field from other fields. The result is read-only.";
|
|
361
|
+
readonly fc_field_width: "Field width";
|
|
362
|
+
readonly fc_field_width_hint: "Width within a horizontal row (mobile is always full width).";
|
|
363
|
+
readonly fc_field_width_auto: "Auto (share row evenly)";
|
|
364
|
+
readonly fc_field_width_full: "Full (3/3)";
|
|
365
|
+
readonly fc_field_computed_operation: "Operation";
|
|
366
|
+
readonly fc_field_computed_op_sum: "Sum (+)";
|
|
367
|
+
readonly fc_field_computed_op_subtract: "Subtract (−)";
|
|
368
|
+
readonly fc_field_computed_op_multiply: "Multiply (×)";
|
|
369
|
+
readonly fc_field_computed_op_divide: "Divide (÷)";
|
|
370
|
+
readonly fc_field_computed_precision: "Decimal places";
|
|
371
|
+
readonly fc_field_computed_operands: "Operand fields";
|
|
372
|
+
readonly fc_field_computed_add_operand: "Add a field…";
|
|
373
|
+
readonly fc_field_computed_missing_operand: "(field not found)";
|
|
374
|
+
readonly fc_field_computed_no_fields: "No other fields available to use as operands.";
|
|
375
|
+
readonly fc_field_computed_all_added: "All available fields are already added.";
|
|
344
376
|
readonly fc_field_delete: "Delete field";
|
|
345
377
|
readonly fc_field_done: "Done";
|
|
346
378
|
readonly fc_field_confirm_delete: "Delete this field from the catalog (and all rows that use it)?";
|