@inseefr/lunatic 2.4.3-beta → 2.4.4-beta
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/lib/components/commons/components/lunatic-component-without-label.js +11 -4
- package/lib/components/questions/index.js +20 -0
- package/lib/components/questions/question-context .js +21 -0
- package/lib/components/questions/question-context.scss +9 -0
- package/lib/components/questions/question-information.js +21 -0
- package/lib/components/questions/question-information.scss +18 -0
- package/lib/components/questions/type.js +5 -0
- package/lib/components/sequence/html/sequence.js +22 -0
- package/lib/components/sequence/index.js +2 -2
- package/lib/components/sequence/lunatic-sequence.js +35 -0
- package/lib/components/sequence/sequence.spec.js +18 -23
- package/lib/components/suggester/idb-suggester/check-store.js +5 -3
- package/lib/components/table/lunatic-table.js +1 -2
- package/lib/components/table/table-orchestrator.js +2 -4
- package/lib/src/components/checkbox/checkbox-boolean/lunatic-checkbox-boolean.d.ts +1 -2
- package/lib/src/components/checkbox/checkbox-group/checkbox-group-content.d.ts +1 -2
- package/lib/src/components/checkbox/checkbox-group/html/checkbox-group-content.d.ts +1 -2
- package/lib/src/components/checkbox/checkbox-group/lunatic-checkbox-group.d.ts +1 -1
- package/lib/src/components/checkbox/checkbox-one/lunatic-checkbox-one.d.ts +1 -2
- package/lib/src/components/commons/components/combo-box/combo-box-container.d.ts +1 -1
- package/lib/src/components/commons/components/combo-box/combo-box-content.d.ts +1 -1
- package/lib/src/components/commons/components/combo-box/panel/option-container.d.ts +1 -1
- package/lib/src/components/commons/components/combo-box/panel/panel-container.d.ts +1 -1
- package/lib/src/components/commons/components/combo-box/panel/panel.d.ts +1 -1
- package/lib/src/components/commons/components/combo-box/selection/delete.d.ts +1 -2
- package/lib/src/components/commons/components/combo-box/selection/displayLabelOrInput.d.ts +1 -1
- package/lib/src/components/commons/components/combo-box/selection/input.d.ts +1 -2
- package/lib/src/components/commons/components/combo-box/selection/label-selection.d.ts +2 -2
- package/lib/src/components/commons/components/combo-box/selection/selection-container.d.ts +1 -1
- package/lib/src/components/commons/components/combo-box/selection/selection.d.ts +1 -2
- package/lib/src/components/commons/components/default-label-renderer.d.ts +1 -2
- package/lib/src/components/commons/components/default-option-renderer.d.ts +1 -2
- package/lib/src/components/commons/components/description.d.ts +1 -1
- package/lib/src/components/commons/components/dragger/dragger.d.ts +1 -1
- package/lib/src/components/commons/components/errors/errors.d.ts +1 -2
- package/lib/src/components/commons/components/fab/fab.d.ts +1 -1
- package/lib/src/components/commons/components/field-container/field-container.d.ts +1 -1
- package/lib/src/components/commons/components/is-network/is-network.d.ts +1 -2
- package/lib/src/components/commons/components/lunatic-component-with-label.d.ts +1 -1
- package/lib/src/components/commons/components/lunatic-component-without-label.d.ts +2 -2
- package/lib/src/components/commons/components/md-label/link.d.ts +1 -1
- package/lib/src/components/commons/components/md-label/md-label.d.ts +1 -2
- package/lib/src/components/commons/components/missing/missing.d.ts +2 -3
- package/lib/src/components/commons/components/nothing-to-display.d.ts +1 -2
- package/lib/src/components/commons/components/orchestrated-component.d.ts +1 -2
- package/lib/src/components/commons/components/variable-status/variable-status.d.ts +1 -1
- package/lib/src/components/commons/create-row-orchestrator.d.ts +1 -1
- package/lib/src/components/commons/icons/checkbox-checked-icon.d.ts +1 -2
- package/lib/src/components/commons/icons/checkbox-unchecked-icon.d.ts +1 -2
- package/lib/src/components/commons/icons/closed-icon.d.ts +1 -2
- package/lib/src/components/commons/icons/cross-icon.d.ts +1 -2
- package/lib/src/components/commons/icons/load-icon.d.ts +1 -2
- package/lib/src/components/commons/icons/lunatic-icon.d.ts +1 -1
- package/lib/src/components/commons/icons/network-icon.d.ts +1 -2
- package/lib/src/components/commons/icons/on-drag-icon.d.ts +1 -2
- package/lib/src/components/commons/icons/opened-icon.d.ts +1 -2
- package/lib/src/components/commons/icons/radio-checked-icon.d.ts +1 -2
- package/lib/src/components/commons/icons/radio-unchecked-icon.d.ts +1 -2
- package/lib/src/components/component-set/html/component-set-components.d.ts +1 -2
- package/lib/src/components/component-set/html/legend/legend.d.ts +1 -1
- package/lib/src/components/component-set/lunatic-component-set.d.ts +1 -2
- package/lib/src/components/datepicker/html/datepicker-container.d.ts +1 -1
- package/lib/src/components/datepicker/html/datepicker-input.d.ts +1 -1
- package/lib/src/components/declarations/declarations-after-text.d.ts +1 -2
- package/lib/src/components/declarations/declarations-before-text.d.ts +1 -2
- package/lib/src/components/declarations/declarations-detachable.d.ts +1 -2
- package/lib/src/components/dropdown/html/dropdown-simple/dropdown-simple.d.ts +1 -2
- package/lib/src/components/dropdown/html/dropdown-simple/simple-label-renderer.d.ts +1 -2
- package/lib/src/components/dropdown/html/dropdown-simple/simple-option-renderer.d.ts +1 -2
- package/lib/src/components/dropdown/html/dropdown-writable/dropdown-writable.d.ts +1 -1
- package/lib/src/components/dropdown/html/dropdown-writable/writable-label-renderer.d.ts +1 -2
- package/lib/src/components/dropdown/html/dropdown-writable/writable-option-renderer.d.ts +1 -2
- package/lib/src/components/dropdown/lunatic-dropdown.d.ts +1 -2
- package/lib/src/components/input/lunatic-input.d.ts +1 -2
- package/lib/src/components/input-number/html/input-number-default.d.ts +1 -2
- package/lib/src/components/input-number/html/input-number-thousand.d.ts +1 -2
- package/lib/src/components/input-number/lunatic-input-number.d.ts +1 -2
- package/lib/src/components/loop/block-for-loop/block-for-loop-ochestrator.d.ts +1 -1
- package/lib/src/components/loop/block-for-loop/row.d.ts +1 -2
- package/lib/src/components/loop/commons/handle-row-button.d.ts +1 -1
- package/lib/src/components/loop/commons/row-component.d.ts +1 -2
- package/lib/src/components/loop/loop.d.ts +1 -2
- package/lib/src/components/loop/roster-for-loop/body.d.ts +1 -2
- package/lib/src/components/loop/roster-for-loop/header.d.ts +1 -1
- package/lib/src/components/loop/roster-for-loop/roster-for-loop-orchestrator.d.ts +1 -1
- package/lib/src/components/loop/roster-for-loop/roster-table.d.ts +1 -2
- package/lib/src/components/loop/roster-for-loop/row.d.ts +1 -2
- package/lib/src/components/modal-controls/close-or-skip.d.ts +1 -1
- package/lib/src/components/modal-controls/modal-controls.d.ts +1 -1
- package/lib/src/components/pairwise-links/orchestrator.d.ts +1 -2
- package/lib/src/components/pairwise-links/pairwise-links.d.ts +1 -2
- package/lib/src/components/pairwise-links/row.d.ts +1 -2
- package/lib/src/components/questions/index.d.ts +2 -0
- package/lib/src/components/questions/question-context .d.ts +5 -0
- package/lib/src/components/questions/question-information.d.ts +5 -0
- package/lib/src/components/questions/type.d.ts +4 -0
- package/lib/src/components/radio/html/radio-group-content.d.ts +1 -1
- package/lib/src/components/roundabout/lunatic-roundabout.d.ts +1 -2
- package/lib/src/components/roundabout/redirect.d.ts +1 -2
- package/lib/src/components/sequence/html/sequence.d.ts +5 -0
- package/lib/src/components/sequence/index.d.ts +1 -1
- package/lib/src/components/sequence/lunatic-sequence.d.ts +3 -0
- package/lib/src/components/suggester/idb-suggester/check-store.d.ts +1 -1
- package/lib/src/components/suggester/idb-suggester/idb-suggester.d.ts +1 -2
- package/lib/src/components/suggester/idb-suggester/suggester-status.d.ts +1 -1
- package/lib/src/components/suggester/lunatic-suggester.d.ts +1 -2
- package/lib/src/components/suggester-loader-widget/loader-row.d.ts +1 -2
- package/lib/src/components/suggester-loader-widget/loader.d.ts +1 -2
- package/lib/src/components/suggester-loader-widget/progress.d.ts +1 -2
- package/lib/src/components/suggester-loader-widget/tools/action-tool.d.ts +1 -1
- package/lib/src/components/suggester-loader-widget/tools/tools.d.ts +1 -1
- package/lib/src/components/suggester-loader-widget/widget.d.ts +1 -2
- package/lib/src/components/switch/lunatic-switch.d.ts +1 -2
- package/lib/src/components/table/cell.d.ts +2 -3
- package/lib/src/components/table/header.d.ts +1 -1
- package/lib/src/components/table/lunatic-table.d.ts +1 -2
- package/lib/src/components/table/row.d.ts +2 -3
- package/lib/src/components/table/table-orchestrator.d.ts +2 -3
- package/lib/src/components/textarea/lunatic-textarea.d.ts +1 -2
- package/lib/src/components/type.d.ts +3 -1
- package/lib/stories/sequence/sequence.stories.js +41 -0
- package/lib/stories/sequence/source-declarations.json +31 -0
- package/lib/stories/sequence/source-questions.json +19 -0
- package/lib/use-lunatic/commons/fill-components/fill-component-expressions.js +1 -1
- package/package.json +1 -1
- package/lib/components/sequence/sequence.js +0 -35
- package/lib/src/components/sequence/sequence.d.ts +0 -4
- /package/lib/components/sequence/{sequence.scss → html/sequence.scss} +0 -0
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
import './missing.scss';
|
|
3
2
|
import { useLunaticMissing } from '../../../../use-lunatic/lunatic-context';
|
|
4
3
|
import { LunaticBaseProps } from '../../../type';
|
|
@@ -9,6 +8,6 @@ type Props = {
|
|
|
9
8
|
missingResponse?: LunaticBaseProps['missingResponse'];
|
|
10
9
|
};
|
|
11
10
|
type PropsFromContext = Pick<ReturnType<typeof useLunaticMissing>, 'shortcut' | 'missingStrategy' | 'dontKnowButton' | 'refusedButton' | 'missingShortcut'>;
|
|
12
|
-
declare const Missing: (props: Props) => JSX.Element | null;
|
|
13
|
-
export declare const MissingPure: (props: Pick<Props, 'handleChange' | 'missingResponse'> & PropsFromContext) => JSX.Element;
|
|
11
|
+
declare const Missing: (props: Props) => import("react/jsx-runtime").JSX.Element | null;
|
|
12
|
+
export declare const MissingPure: (props: Pick<Props, 'handleChange' | 'missingResponse'> & PropsFromContext) => import("react/jsx-runtime").JSX.Element;
|
|
14
13
|
export default Missing;
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
import { LunaticBaseProps } from '../../type';
|
|
3
2
|
import { LunaticComponentDefinition } from '../../../use-lunatic/type';
|
|
4
3
|
type Props = {
|
|
@@ -6,5 +5,5 @@ type Props = {
|
|
|
6
5
|
component: LunaticComponentDefinition;
|
|
7
6
|
features?: string[];
|
|
8
7
|
} & Pick<LunaticBaseProps, 'id' | 'iteration' | 'executeExpression' | 'handleChange' | 'missing' | 'shortcut' | 'management' | 'preferences' | 'value' | 'errors'>;
|
|
9
|
-
declare function OrchestratedComponent({ id, component, handleChange, features, missing, shortcut, management, preferences, value, iteration, linksIterations, executeExpression, errors, }: Props): JSX.Element | null;
|
|
8
|
+
declare function OrchestratedComponent({ id, component, handleChange, features, missing, shortcut, management, preferences, value, iteration, linksIterations, executeExpression, errors, }: Props): import("react/jsx-runtime").JSX.Element | null;
|
|
10
9
|
export default OrchestratedComponent;
|
|
@@ -27,5 +27,5 @@ type OrchestratedProps = {
|
|
|
27
27
|
[key: string]: unknown;
|
|
28
28
|
}) => void;
|
|
29
29
|
} & Pick<OriginalProps, 'id' | 'components' | 'valueMap' | 'features' | 'missing' | 'shortcut' | 'preferences' | 'executeExpression' | 'iteration' | 'errors'>;
|
|
30
|
-
declare function createRowOrchestrator(Row: FunctionComponent<OriginalProps>): ({ id, components, nbRows, valueMap, handleChange, features, missing, shortcut, preferences, executeExpression, iteration, xAxisIterations, errors, }: OrchestratedProps) => JSX.Element | null;
|
|
30
|
+
declare function createRowOrchestrator(Row: FunctionComponent<OriginalProps>): ({ id, components, nbRows, valueMap, handleChange, features, missing, shortcut, preferences, executeExpression, iteration, xAxisIterations, errors, }: OrchestratedProps) => import("react/jsx-runtime").JSX.Element | null;
|
|
31
31
|
export default createRowOrchestrator;
|
|
@@ -1,3 +1,2 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
import { IconProps } from './icon-props';
|
|
3
|
-
export declare function CheckboxCheckedIcon({ className, width, height, }: IconProps): JSX.Element;
|
|
2
|
+
export declare function CheckboxCheckedIcon({ className, width, height, }: IconProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,3 +1,2 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
import { IconProps } from './icon-props';
|
|
3
|
-
export declare function CheckboxUncheckedIcon({ className, width, height, }: IconProps): JSX.Element;
|
|
2
|
+
export declare function CheckboxUncheckedIcon({ className, width, height, }: IconProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,3 +1,2 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
import { IconProps } from './icon-props';
|
|
3
|
-
export declare function ClosedIcon({ className, width, height }: IconProps): JSX.Element;
|
|
2
|
+
export declare function ClosedIcon({ className, width, height }: IconProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,3 +1,2 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
import { IconProps } from './icon-props';
|
|
3
|
-
export declare function CrossIcon({ className, width, height }: IconProps): JSX.Element;
|
|
2
|
+
export declare function CrossIcon({ className, width, height }: IconProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,3 +1,2 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
import { IconProps } from './icon-props';
|
|
3
|
-
export declare function LoadIcon({ className, width, height }: IconProps): JSX.Element;
|
|
2
|
+
export declare function LoadIcon({ className, width, height }: IconProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,3 +1,2 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
import { IconProps } from './icon-props';
|
|
3
|
-
export declare function NetworkIcon({ className, width, height }: IconProps): JSX.Element;
|
|
2
|
+
export declare function NetworkIcon({ className, width, height }: IconProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,3 +1,2 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
import { IconProps } from './icon-props';
|
|
3
|
-
export declare function OnDragIcon({ className, width, height }: IconProps): JSX.Element;
|
|
2
|
+
export declare function OnDragIcon({ className, width, height }: IconProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,3 +1,2 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
import { IconProps } from './icon-props';
|
|
3
|
-
export declare function OpenedIcon({ className, width, height }: IconProps): JSX.Element;
|
|
2
|
+
export declare function OpenedIcon({ className, width, height }: IconProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
import { IconProps } from './icon-props';
|
|
3
|
-
export declare function RadioCheckedIcon({ className, width, height, }: IconProps): JSX.Element;
|
|
2
|
+
export declare function RadioCheckedIcon({ className, width, height, }: IconProps): import("react/jsx-runtime").JSX.Element;
|
|
4
3
|
export default RadioCheckedIcon;
|
|
@@ -1,3 +1,2 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
import { IconProps } from './icon-props';
|
|
3
|
-
export declare function RadioUncheckedIcon({ className, width, height, }: IconProps): JSX.Element;
|
|
2
|
+
export declare function RadioUncheckedIcon({ className, width, height, }: IconProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
import { LunaticComponentProps } from '../../type';
|
|
3
2
|
type Props = {
|
|
4
3
|
className?: string;
|
|
5
4
|
} & Pick<LunaticComponentProps<'ComponentSet'>, 'components' | 'value' | 'features' | 'missing' | 'shortcut' | 'management' | 'preferences' | 'executeExpression' | 'errors' | 'className' | 'handleChange'>;
|
|
6
|
-
declare function ComponentSetComponents({ components, value, features, missing, shortcut, management, preferences, executeExpression, errors, className, handleChange, }: Props): JSX.Element | null;
|
|
5
|
+
declare function ComponentSetComponents({ components, value, features, missing, shortcut, management, preferences, executeExpression, errors, className, handleChange, }: Props): import("react/jsx-runtime").JSX.Element | null;
|
|
7
6
|
export default ComponentSetComponents;
|
|
@@ -4,5 +4,5 @@ type Props = PropsWithChildren<{
|
|
|
4
4
|
className?: string;
|
|
5
5
|
description?: string;
|
|
6
6
|
}>;
|
|
7
|
-
declare function Legend({ children, id, className, description }: Props): JSX.Element | null;
|
|
7
|
+
declare function Legend({ children, id, className, description }: Props): import("react/jsx-runtime").JSX.Element | null;
|
|
8
8
|
export default Legend;
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
import { LunaticComponentProps } from '../type';
|
|
3
|
-
declare function LunaticComponentSet(props: LunaticComponentProps<'ComponentSet'>): JSX.Element;
|
|
2
|
+
declare function LunaticComponentSet(props: LunaticComponentProps<'ComponentSet'>): import("react/jsx-runtime").JSX.Element;
|
|
4
3
|
export default LunaticComponentSet;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { PropsWithChildren } from 'react';
|
|
2
|
-
declare function DatepickerContainer({ children }: PropsWithChildren): JSX.Element;
|
|
2
|
+
declare function DatepickerContainer({ children }: PropsWithChildren): import("react/jsx-runtime").JSX.Element;
|
|
3
3
|
export default DatepickerContainer;
|
|
@@ -9,5 +9,5 @@ export type Props = {
|
|
|
9
9
|
min?: string;
|
|
10
10
|
max?: string;
|
|
11
11
|
};
|
|
12
|
-
declare function DatepickerInput({ id, disabled, readOnly, labelId, value, onChange, min, max, }: Props): JSX.Element;
|
|
12
|
+
declare function DatepickerInput({ id, disabled, readOnly, labelId, value, onChange, min, max, }: Props): import("react/jsx-runtime").JSX.Element;
|
|
13
13
|
export default DatepickerInput;
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
import { DeclarationsProps } from './declarations';
|
|
3
|
-
declare function DeclarationsAfterText(props: Omit<DeclarationsProps, 'type'>): JSX.Element;
|
|
2
|
+
declare function DeclarationsAfterText(props: Omit<DeclarationsProps, 'type'>): import("react/jsx-runtime").JSX.Element;
|
|
4
3
|
export default DeclarationsAfterText;
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
import { DeclarationsProps } from './declarations';
|
|
3
|
-
declare function DeclarationsBeforeText(props: Omit<DeclarationsProps, 'type'>): JSX.Element;
|
|
2
|
+
declare function DeclarationsBeforeText(props: Omit<DeclarationsProps, 'type'>): import("react/jsx-runtime").JSX.Element;
|
|
4
3
|
export default DeclarationsBeforeText;
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
import { DeclarationsProps } from './declarations';
|
|
3
|
-
declare function DeclarationsDetachable(props: Omit<DeclarationsProps, 'type'>): JSX.Element;
|
|
2
|
+
declare function DeclarationsDetachable(props: Omit<DeclarationsProps, 'type'>): import("react/jsx-runtime").JSX.Element;
|
|
4
3
|
export default DeclarationsDetachable;
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
import { DropdownProps } from '../dropdown';
|
|
3
|
-
declare function DropdownSimple({ id, disabled, options, onSelect, className, value, label, errors, description, }: DropdownProps): JSX.Element;
|
|
2
|
+
declare function DropdownSimple({ id, disabled, options, onSelect, className, value, label, errors, description, }: DropdownProps): import("react/jsx-runtime").JSX.Element;
|
|
4
3
|
export default DropdownSimple;
|
|
@@ -1,9 +1,8 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
import { ComboBoxOption } from '../../../commons/components/combo-box/combo-box.type';
|
|
3
2
|
type Props = {
|
|
4
3
|
option?: ComboBoxOption;
|
|
5
4
|
placeholder?: string;
|
|
6
5
|
search?: string;
|
|
7
6
|
};
|
|
8
|
-
declare function SimpleLabelRenderer({ option, placeholder, search }: Props): JSX.Element;
|
|
7
|
+
declare function SimpleLabelRenderer({ option, placeholder, search }: Props): import("react/jsx-runtime").JSX.Element;
|
|
9
8
|
export default SimpleLabelRenderer;
|
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
import { ComboBoxOption } from '../../../commons/components/combo-box/combo-box.type';
|
|
3
2
|
type Props = {
|
|
4
3
|
option: ComboBoxOption;
|
|
5
4
|
selected?: boolean;
|
|
6
5
|
};
|
|
7
|
-
declare function SimpleOptionRenderer({ option, selected }: Props): JSX.Element;
|
|
6
|
+
declare function SimpleOptionRenderer({ option, selected }: Props): import("react/jsx-runtime").JSX.Element;
|
|
8
7
|
export default SimpleOptionRenderer;
|
|
@@ -12,5 +12,5 @@ type Props = {
|
|
|
12
12
|
errors?: Record<string, LunaticError[]>;
|
|
13
13
|
description?: ReactNode;
|
|
14
14
|
};
|
|
15
|
-
declare function DropdownWritable({ id, disabled, options, onSelect, className, value, label, errors, description, }: Props): JSX.Element;
|
|
15
|
+
declare function DropdownWritable({ id, disabled, options, onSelect, className, value, label, errors, description, }: Props): import("react/jsx-runtime").JSX.Element;
|
|
16
16
|
export default DropdownWritable;
|
|
@@ -1,9 +1,8 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
import { ComboBoxOption } from '../../../commons/components/combo-box/combo-box.type';
|
|
3
2
|
type Props = {
|
|
4
3
|
option?: ComboBoxOption;
|
|
5
4
|
placeholder?: string;
|
|
6
5
|
search?: string;
|
|
7
6
|
};
|
|
8
|
-
declare function WritableLabelRenderer({ option, placeholder, search }: Props): JSX.Element;
|
|
7
|
+
declare function WritableLabelRenderer({ option, placeholder, search }: Props): import("react/jsx-runtime").JSX.Element;
|
|
9
8
|
export default WritableLabelRenderer;
|
|
@@ -1,9 +1,8 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
import { ComboBoxOption } from '../../../commons/components/combo-box/combo-box.type';
|
|
3
2
|
type Props = {
|
|
4
3
|
option: ComboBoxOption;
|
|
5
4
|
selected?: boolean;
|
|
6
5
|
search?: string;
|
|
7
6
|
};
|
|
8
|
-
declare function WritableOptionRenderer({ option, selected, search }: Props): JSX.Element;
|
|
7
|
+
declare function WritableOptionRenderer({ option, selected, search }: Props): import("react/jsx-runtime").JSX.Element;
|
|
9
8
|
export default WritableOptionRenderer;
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
import { LunaticComponentProps } from '../type';
|
|
3
|
-
declare function LunaticDropdown({ id, handleChange, options, writable, disabled, value, response, errors, label, preferences, declarations, missing, missingResponse, management, description, }: LunaticComponentProps<'Dropdown'>): JSX.Element;
|
|
2
|
+
declare function LunaticDropdown({ id, handleChange, options, writable, disabled, value, response, errors, label, preferences, declarations, missing, missingResponse, management, description, }: LunaticComponentProps<'Dropdown'>): import("react/jsx-runtime").JSX.Element;
|
|
4
3
|
export default LunaticDropdown;
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
import { LunaticComponentProps } from '../type';
|
|
3
|
-
declare function LunaticInput(props: LunaticComponentProps<'Input'>): JSX.Element;
|
|
2
|
+
declare function LunaticInput(props: LunaticComponentProps<'Input'>): import("react/jsx-runtime").JSX.Element;
|
|
4
3
|
export default LunaticInput;
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
type Props = {
|
|
3
2
|
id?: string;
|
|
4
3
|
onChange: (n: number | null) => void;
|
|
@@ -10,5 +9,5 @@ type Props = {
|
|
|
10
9
|
max?: number;
|
|
11
10
|
decimals?: number;
|
|
12
11
|
};
|
|
13
|
-
declare function InputNumberDefault({ id, value, onChange, disabled, required, labelId, min, max, decimals, }: Props): JSX.Element;
|
|
12
|
+
declare function InputNumberDefault({ id, value, onChange, disabled, required, labelId, min, max, decimals, }: Props): import("react/jsx-runtime").JSX.Element;
|
|
14
13
|
export default InputNumberDefault;
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
type Props = {
|
|
3
2
|
id?: string;
|
|
4
3
|
onChange: (n: number | null) => void;
|
|
@@ -10,5 +9,5 @@ type Props = {
|
|
|
10
9
|
max?: number;
|
|
11
10
|
decimals?: number;
|
|
12
11
|
};
|
|
13
|
-
declare const InputNumberThousand: ({ id, value, onChange, disabled, labelId, min, max, decimals, }: Props) => JSX.Element;
|
|
12
|
+
declare const InputNumberThousand: ({ id, value, onChange, disabled, labelId, min, max, decimals, }: Props) => import("react/jsx-runtime").JSX.Element;
|
|
14
13
|
export default InputNumberThousand;
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
import { LunaticComponentProps } from '../type';
|
|
3
|
-
declare function LunaticInputNumber(props: LunaticComponentProps<'InputNumber'>): JSX.Element;
|
|
2
|
+
declare function LunaticInputNumber(props: LunaticComponentProps<'InputNumber'>): import("react/jsx-runtime").JSX.Element;
|
|
4
3
|
export default LunaticInputNumber;
|
|
@@ -46,5 +46,5 @@ declare const BlockForLoopOrchestrator: ({ id, components, nbRows, valueMap, han
|
|
|
46
46
|
label: import("react").ReactNode;
|
|
47
47
|
}[] | undefined;
|
|
48
48
|
paginatedLoop?: boolean | undefined;
|
|
49
|
-
}, "id" | "preferences" | "missing" | "errors" | "shortcut">, "id" | "components" | "iteration" | "executeExpression" | "features" | "preferences" | "missing" | "errors" | "shortcut" | "valueMap">) => JSX.Element | null;
|
|
49
|
+
}, "id" | "preferences" | "missing" | "errors" | "shortcut">, "id" | "components" | "iteration" | "executeExpression" | "features" | "preferences" | "missing" | "errors" | "shortcut" | "valueMap">) => import("react/jsx-runtime").JSX.Element | null;
|
|
50
50
|
export default BlockForLoopOrchestrator;
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
import { LunaticBaseProps } from '../../type';
|
|
3
2
|
import { LunaticComponentDefinition } from '../../../use-lunatic/type';
|
|
4
3
|
type Props = {
|
|
@@ -19,5 +18,5 @@ type Props = {
|
|
|
19
18
|
preferences?: LunaticBaseProps['preferences'];
|
|
20
19
|
shortcut?: LunaticBaseProps['shortcut'];
|
|
21
20
|
};
|
|
22
|
-
declare function Row({ components, valueMap, handleChange, features, missing, shortcut, management, preferences, rowIndex, executeExpression, errors, }: Props): JSX.Element;
|
|
21
|
+
declare function Row({ components, valueMap, handleChange, features, missing, shortcut, management, preferences, rowIndex, executeExpression, errors, }: Props): import("react/jsx-runtime").JSX.Element;
|
|
23
22
|
export default Row;
|
|
@@ -4,5 +4,5 @@ type Props = PropsWithChildren<{
|
|
|
4
4
|
disabled?: boolean;
|
|
5
5
|
onClick: MouseEventHandler<HTMLButtonElement | HTMLInputElement>;
|
|
6
6
|
}>;
|
|
7
|
-
declare function HandleRowButton({ onClick, disabled, children }: Props): JSX.Element;
|
|
7
|
+
declare function HandleRowButton({ onClick, disabled, children }: Props): import("react/jsx-runtime").JSX.Element;
|
|
8
8
|
export default HandleRowButton;
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
import { LunaticComponentDefinition } from '../../../use-lunatic/type';
|
|
3
2
|
import { LunaticBaseProps } from '../../type';
|
|
4
3
|
type Props = {
|
|
@@ -6,5 +5,5 @@ type Props = {
|
|
|
6
5
|
component: LunaticComponentDefinition;
|
|
7
6
|
features?: string[];
|
|
8
7
|
} & Pick<LunaticBaseProps, 'id' | 'iteration' | 'executeExpression' | 'handleChange' | 'missing' | 'shortcut' | 'management' | 'preferences' | 'value' | 'errors'>;
|
|
9
|
-
declare function RowComponent({ id, component, handleChange, features, missing, shortcut, management, preferences, value, iteration, executeExpression, }: Props): JSX.Element | null;
|
|
8
|
+
declare function RowComponent({ id, component, handleChange, features, missing, shortcut, management, preferences, value, iteration, executeExpression, }: Props): import("react/jsx-runtime").JSX.Element | null;
|
|
10
9
|
export default RowComponent;
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
import { LunaticComponentProps } from '../type';
|
|
3
|
-
declare function Loop(props: LunaticComponentProps<'Loop' | 'RosterForLoop'>): JSX.Element | null;
|
|
2
|
+
declare function Loop(props: LunaticComponentProps<'Loop' | 'RosterForLoop'>): import("react/jsx-runtime").JSX.Element | null;
|
|
4
3
|
export default Loop;
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
import { LunaticComponentProps } from '../../type';
|
|
3
2
|
type Props = {
|
|
4
3
|
nbRows: number;
|
|
@@ -9,5 +8,5 @@ type Props = {
|
|
|
9
8
|
[k: string]: unknown;
|
|
10
9
|
}) => void;
|
|
11
10
|
} & Pick<LunaticComponentProps<'RosterForLoop'>, 'id' | 'components' | 'executeExpression' | 'headers' | 'value' | 'management' | 'missing' | 'shortcut' | 'errors'>;
|
|
12
|
-
declare function Body({ id, components, nbRows, executeExpression, handleChange, value: valueMap, missing, }: Props): JSX.Element | null;
|
|
11
|
+
declare function Body({ id, components, nbRows, executeExpression, handleChange, value: valueMap, missing, }: Props): import("react/jsx-runtime").JSX.Element | null;
|
|
13
12
|
export default Body;
|
|
@@ -46,5 +46,5 @@ declare const RosterForLoopOrchestrator: ({ id, components, nbRows, valueMap, ha
|
|
|
46
46
|
label: import("react").ReactNode;
|
|
47
47
|
}[] | undefined;
|
|
48
48
|
paginatedLoop?: boolean | undefined;
|
|
49
|
-
}, "id" | "preferences" | "missing" | "errors" | "shortcut">, "id" | "components" | "iteration" | "executeExpression" | "features" | "preferences" | "missing" | "errors" | "shortcut" | "valueMap">) => JSX.Element | null;
|
|
49
|
+
}, "id" | "preferences" | "missing" | "errors" | "shortcut">, "id" | "components" | "iteration" | "executeExpression" | "features" | "preferences" | "missing" | "errors" | "shortcut" | "valueMap">) => import("react/jsx-runtime").JSX.Element | null;
|
|
50
50
|
export default RosterForLoopOrchestrator;
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
import './roster.scss';
|
|
3
2
|
import { LunaticComponentProps } from '../../type';
|
|
4
3
|
type Props = {
|
|
@@ -10,5 +9,5 @@ type Props = {
|
|
|
10
9
|
[k: string]: unknown;
|
|
11
10
|
}) => void;
|
|
12
11
|
} & Pick<LunaticComponentProps<'RosterForLoop'>, 'id' | 'components' | 'executeExpression' | 'headers' | 'value' | 'management' | 'missing' | 'shortcut' | 'errors'>;
|
|
13
|
-
declare function RosterTable({ components, nbRows, executeExpression, id, headers, value: valueMap, shortcut, missing, management, handleChange, }: Props): JSX.Element;
|
|
12
|
+
declare function RosterTable({ components, nbRows, executeExpression, id, headers, value: valueMap, shortcut, missing, management, handleChange, }: Props): import("react/jsx-runtime").JSX.Element;
|
|
14
13
|
export default RosterTable;
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
import { LunaticBaseProps } from '../../type';
|
|
3
2
|
import { LunaticComponentDefinition } from '../../../use-lunatic/type';
|
|
4
3
|
type Props = {
|
|
@@ -20,5 +19,5 @@ type Props = {
|
|
|
20
19
|
preferences?: LunaticBaseProps['preferences'];
|
|
21
20
|
shortcut?: LunaticBaseProps['shortcut'];
|
|
22
21
|
};
|
|
23
|
-
declare function Row({ id, components, valueMap, rowIndex, handleChange, features, missing, shortcut, management, preferences, executeExpression, errors, }: Props): JSX.Element;
|
|
22
|
+
declare function Row({ id, components, valueMap, rowIndex, handleChange, features, missing, shortcut, management, preferences, executeExpression, errors, }: Props): import("react/jsx-runtime").JSX.Element;
|
|
24
23
|
export default Row;
|
|
@@ -4,5 +4,5 @@ type Props = {
|
|
|
4
4
|
onSkip: MouseEventHandler;
|
|
5
5
|
isCritical?: boolean;
|
|
6
6
|
};
|
|
7
|
-
declare function CloseOrSkip({ onClose, onSkip, isCritical }: Props): JSX.Element;
|
|
7
|
+
declare function CloseOrSkip({ onClose, onSkip, isCritical }: Props): import("react/jsx-runtime").JSX.Element;
|
|
8
8
|
export default CloseOrSkip;
|
|
@@ -7,5 +7,5 @@ type Props = {
|
|
|
7
7
|
isCritical?: boolean;
|
|
8
8
|
errors: Record<string, LunaticError[]>;
|
|
9
9
|
};
|
|
10
|
-
declare function ModalControls({ errors, isCritical, goNext, onClose }: Props): JSX.Element | null;
|
|
10
|
+
declare function ModalControls({ errors, isCritical, goNext, onClose }: Props): import("react/jsx-runtime").JSX.Element | null;
|
|
11
11
|
export default ModalControls;
|
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
import { LunaticComponentProps } from '../type';
|
|
3
2
|
type Props = {
|
|
4
3
|
nbRows: number;
|
|
5
4
|
} & Omit<LunaticComponentProps<'PairwiseLinks'>, 'declarations'>;
|
|
6
|
-
declare function LinksOrchestrator(props: Props): JSX.Element | null;
|
|
5
|
+
declare function LinksOrchestrator(props: Props): import("react/jsx-runtime").JSX.Element | null;
|
|
7
6
|
export default LinksOrchestrator;
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
import { LunaticComponentProps } from '../type';
|
|
3
|
-
declare const PairwiseLinks: ({ declarations, components, handleChange, value, missing, shortcut, features, preferences, management, executeExpression, xAxisIterations, yAxisIterations, id, symLinks, }: LunaticComponentProps<'PairwiseLinks'>) => JSX.Element;
|
|
2
|
+
declare const PairwiseLinks: ({ declarations, components, handleChange, value, missing, shortcut, features, preferences, management, executeExpression, xAxisIterations, yAxisIterations, id, symLinks, }: LunaticComponentProps<'PairwiseLinks'>) => import("react/jsx-runtime").JSX.Element;
|
|
4
3
|
export default PairwiseLinks;
|
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
import { LunaticComponentProps } from '../type';
|
|
3
2
|
type Props = {
|
|
4
3
|
linksIterations: [number, number];
|
|
5
4
|
lengths: number[];
|
|
6
5
|
} & Omit<LunaticComponentProps<'PairwiseLinks'>, 'declarations' | 'xAxisIterations' | 'yAxisIterations'>;
|
|
7
|
-
declare function Row({ components, value: valueMap, handleChange, features, missing, shortcut, management, preferences, executeExpression, linksIterations, symLinks, lengths, }: Props): JSX.Element | null;
|
|
6
|
+
declare function Row({ components, value: valueMap, handleChange, features, missing, shortcut, management, preferences, executeExpression, linksIterations, symLinks, lengths, }: Props): import("react/jsx-runtime").JSX.Element | null;
|
|
8
7
|
export default Row;
|
|
@@ -13,5 +13,5 @@ export type Props = {
|
|
|
13
13
|
shortcut?: boolean;
|
|
14
14
|
disabled?: boolean;
|
|
15
15
|
};
|
|
16
|
-
declare function RadioGroupContent({ options, value, id, onClick, checkboxStyle, shortcut, disabled, }: Props): JSX.Element;
|
|
16
|
+
declare function RadioGroupContent({ options, value, id, onClick, checkboxStyle, shortcut, disabled, }: Props): import("react/jsx-runtime").JSX.Element;
|
|
17
17
|
export default RadioGroupContent;
|
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
import { LunaticComponentProps } from '../type';
|
|
3
2
|
/**
|
|
4
3
|
* Logique fonctionnelle et immuable du composant
|
|
5
4
|
*/
|
|
6
|
-
declare function LunaticRoundabout({ iterations, expressions, goToPage, page, label, locked, }: LunaticComponentProps<'Roundabout'>): JSX.Element;
|
|
5
|
+
declare function LunaticRoundabout({ iterations, expressions, goToPage, page, label, locked, }: LunaticComponentProps<'Roundabout'>): import("react/jsx-runtime").JSX.Element;
|
|
7
6
|
export default LunaticRoundabout;
|
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
type Props = {
|
|
3
2
|
goToIteration: (n: number) => void;
|
|
4
3
|
iteration: number;
|
|
5
4
|
};
|
|
6
|
-
declare function Redirect({ goToIteration, iteration }: Props): JSX.Element;
|
|
5
|
+
declare function Redirect({ goToIteration, iteration }: Props): import("react/jsx-runtime").JSX.Element;
|
|
7
6
|
export default Redirect;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { default } from './sequence';
|
|
1
|
+
export { default } from './lunatic-sequence';
|
|
@@ -4,5 +4,5 @@ type Props = PropsWithChildren<{
|
|
|
4
4
|
version: number;
|
|
5
5
|
setStore: (v: any) => void;
|
|
6
6
|
}>;
|
|
7
|
-
declare function CheckStore({ storeName, version, setStore, children }: Props): JSX.Element;
|
|
7
|
+
declare function CheckStore({ storeName, version, setStore, children }: Props): import("react/jsx-runtime").JSX.Element;
|
|
8
8
|
export default CheckStore;
|
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
import { LunaticComponentProps } from '../../type';
|
|
3
2
|
type Props = Pick<LunaticComponentProps<'Suggester'>, 'storeName' | 'idbVersion' | 'id' | 'className' | 'optionRenderer' | 'labelRenderer' | 'disabled' | 'value' | 'label' | 'description' | 'getSuggesterStatus' | 'errors'> & {
|
|
4
3
|
onSelect: (v: string | null) => void;
|
|
5
4
|
};
|
|
6
|
-
export declare function IDBSuggester({ storeName, idbVersion, id, className, optionRenderer, labelRenderer, onSelect, disabled, value, label, description, getSuggesterStatus, errors, }: Props): JSX.Element;
|
|
5
|
+
export declare function IDBSuggester({ storeName, idbVersion, id, className, optionRenderer, labelRenderer, onSelect, disabled, value, label, description, getSuggesterStatus, errors, }: Props): import("react/jsx-runtime").JSX.Element;
|
|
7
6
|
export {};
|
|
@@ -22,5 +22,5 @@ type Props = PropsWithChildren<{
|
|
|
22
22
|
* @param {} param0
|
|
23
23
|
* @returns
|
|
24
24
|
*/
|
|
25
|
-
export declare function SuggesterStatus({ children, storeName, getSuggesterStatus, label, description, }: Props): JSX.Element;
|
|
25
|
+
export declare function SuggesterStatus({ children, storeName, getSuggesterStatus, label, description, }: Props): import("react/jsx-runtime").JSX.Element;
|
|
26
26
|
export {};
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
import { LunaticComponentProps } from '../type';
|
|
3
|
-
declare function LunaticSuggester({ id, storeName, optionRenderer, labelRenderer, idbVersion, focused, value, handleChange, disabled, errors, label, description, preferences, declarations, missing, missingResponse, management, response, getSuggesterStatus, }: LunaticComponentProps<'Suggester'>): JSX.Element;
|
|
2
|
+
declare function LunaticSuggester({ id, storeName, optionRenderer, labelRenderer, idbVersion, focused, value, handleChange, disabled, errors, label, description, preferences, declarations, missing, missingResponse, management, response, getSuggesterStatus, }: LunaticComponentProps<'Suggester'>): import("react/jsx-runtime").JSX.Element;
|
|
4
3
|
export default LunaticSuggester;
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
import { SuggesterType } from '../../use-lunatic/type-source';
|
|
3
2
|
type Props = {
|
|
4
3
|
storeInfo: SuggesterType;
|
|
@@ -7,5 +6,5 @@ type Props = {
|
|
|
7
6
|
disabled?: boolean;
|
|
8
7
|
onRefresh: (s: string) => void;
|
|
9
8
|
};
|
|
10
|
-
declare function LoaderRow({ storeInfo, idbVersion, fetchStore, onRefresh, disabled, }: Props): JSX.Element;
|
|
9
|
+
declare function LoaderRow({ storeInfo, idbVersion, fetchStore, onRefresh, disabled, }: Props): import("react/jsx-runtime").JSX.Element;
|
|
11
10
|
export default LoaderRow;
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
import { SuggesterType } from '../../use-lunatic/type-source';
|
|
3
2
|
type Props = {
|
|
4
3
|
idbVersion?: number;
|
|
@@ -9,5 +8,5 @@ type Props = {
|
|
|
9
8
|
start?: boolean;
|
|
10
9
|
store: SuggesterType;
|
|
11
10
|
};
|
|
12
|
-
declare function Loader({ start, db, store, idbVersion, fetch, post, handleClick, }: Props): JSX.Element;
|
|
11
|
+
declare function Loader({ start, db, store, idbVersion, fetch, post, handleClick, }: Props): import("react/jsx-runtime").JSX.Element;
|
|
13
12
|
export default Loader;
|
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
type Props = {
|
|
3
2
|
display?: boolean;
|
|
4
3
|
percent?: number;
|
|
5
4
|
handleClick?: (v: number) => void;
|
|
6
5
|
};
|
|
7
|
-
declare function Progress({ display, percent, handleClick }: Props): JSX.Element | null;
|
|
6
|
+
declare function Progress({ display, percent, handleClick }: Props): import("react/jsx-runtime").JSX.Element | null;
|
|
8
7
|
export default Progress;
|