@inseefr/lunatic 2.7.21 → 3.0.0-rc.10
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/CheckboxBoolean/CheckboxBoolean.js +65 -0
- package/lib/components/CheckboxBoolean/CheckboxBoolean.spec.js +71 -0
- package/lib/components/CheckboxGroup/CheckboxGroup.js +51 -0
- package/lib/components/CheckboxGroup/CheckboxGroup.scss +13 -0
- package/lib/components/CheckboxGroup/CustomCheckboxGroup.js +44 -0
- package/lib/components/CheckboxGroup/CustomCheckboxGroup.spec.js +46 -0
- package/lib/components/CheckboxOne/CheckboxOne.js +38 -0
- package/lib/components/CheckboxOne/CheckboxOne.spec.js +53 -0
- package/lib/components/Datepicker/Datepicker.js +161 -0
- package/lib/components/Datepicker/Datepicker.spec.js +92 -0
- package/lib/components/Datepicker/__snapshots__/Datepicker.spec.tsx.snap +166 -0
- package/lib/components/Dropdown/Dropdown.js +63 -0
- package/lib/components/Dropdown/Dropdown.spec.js +49 -0
- package/lib/components/Dropdown/__snapshots__/Dropdown.spec.tsx.snap +85 -0
- package/lib/components/Dropdown/helpers.js +94 -0
- package/lib/components/Dropdown/renderer/SimpleLabelRenderer.js +34 -0
- package/lib/components/Dropdown/renderer/SimpleOptionRenderer.js +40 -0
- package/lib/components/Duration/Duration.js +104 -0
- package/lib/components/FilterDescription/FilterDescription.js +17 -0
- package/lib/components/FilterDescription/FilterDescription.spec.js +21 -0
- package/lib/components/Input/Input.js +79 -0
- package/lib/components/Input/Input.spec.js +84 -0
- package/lib/components/InputNumber/InputNumber.js +80 -0
- package/lib/components/InputNumber/InputNumber.spec.js +113 -0
- package/lib/components/InputNumber/InputNumberThousand.js +55 -0
- package/lib/components/InputNumber/__snapshots__/InputNumber.spec.tsx.snap +40 -0
- package/lib/components/Loop/Loop.js +130 -0
- package/lib/components/LunaticComponents.js +129 -0
- package/lib/components/PairwiseLinks/PairwiseLinks.js +54 -0
- package/lib/components/Question/Question.js +54 -0
- package/lib/components/Radio/Radio.js +41 -0
- package/lib/components/RosterForLoop/RosterForLoop.js +135 -0
- package/lib/components/RosterForLoop/RosterForLoop.spec.js +46 -0
- package/lib/components/Roundabout/CustomRoundabout.js +67 -0
- package/lib/components/Roundabout/Roundabout.js +35 -0
- package/lib/components/Roundabout/RoundaboutItButton.js +76 -0
- package/lib/components/Roundabout/RoundaboutItButton.spec.js +101 -0
- package/lib/components/Roundabout/RoundaboutRedirect.js +21 -0
- package/lib/components/Roundabout/extra.js +44 -0
- package/lib/components/Roundabout/redirect.spec.js +17 -0
- package/lib/components/Roundabout/roundabout.spec.js +71 -0
- package/lib/components/Sequence/Sequence.js +32 -0
- package/lib/components/Subsequence/Subsequence.js +27 -0
- package/lib/components/Subsequence/Subsequence.spec.js +59 -0
- package/lib/components/Suggester/CustomSuggester.js +122 -0
- package/lib/components/Suggester/Suggester.js +140 -0
- package/lib/components/Suggester/Suggester.scss +170 -0
- package/lib/components/Suggester/SuggesterNotification.js +60 -0
- package/lib/components/Suggester/SuggesterStatus.js +46 -0
- package/lib/components/Suggester/helpers.js +50 -0
- package/lib/components/Summary/Summary.js +116 -0
- package/lib/components/Switch/Switch.js +107 -0
- package/lib/components/Table/Table.js +65 -0
- package/lib/components/Textarea/Textarea.js +79 -0
- package/lib/components/Textarea/Textarea.spec.js +46 -0
- package/lib/components/library.js +53 -0
- package/lib/components/shared/Button/Button.js +45 -0
- package/lib/components/shared/Button/Button.spec.js +85 -0
- package/lib/components/shared/Button/IconButton.js +32 -0
- package/lib/components/shared/Button/IconButton.scss +33 -0
- package/lib/components/shared/Button/IconButton.spec.js +101 -0
- package/lib/components/shared/Checkbox/CheckboxOption.js +72 -0
- package/lib/components/shared/Checkbox/CheckboxOption.spec.js +69 -0
- package/lib/components/shared/Combobox/Combobox.js +208 -0
- package/lib/components/shared/Combobox/Combobox.stories.js +109 -0
- package/lib/components/shared/Combobox/ComboboxContainer.js +27 -0
- package/lib/components/shared/Combobox/ComboboxContainer.spec.js +43 -0
- package/lib/components/shared/Combobox/ComboboxContent.js +62 -0
- package/lib/components/shared/Combobox/ComboboxContentBox.js +22 -0
- package/lib/components/shared/Combobox/Panel/ComboboxOption.js +42 -0
- package/lib/components/shared/Combobox/Panel/ComboboxOption.spec.js +63 -0
- package/lib/components/shared/Combobox/Panel/ComboboxOptionContainer.js +56 -0
- package/lib/components/shared/Combobox/Panel/ComboboxOptionContainer.spec.js +26 -0
- package/lib/components/shared/Combobox/Panel/ComboboxPanel.js +44 -0
- package/lib/components/shared/Combobox/Panel/ComboboxPanel.spec.js +110 -0
- package/lib/components/shared/Combobox/Panel/ComboboxPanelContainer.js +26 -0
- package/lib/components/shared/Combobox/Panel/ComboboxPanelContainer.spec.js +57 -0
- package/lib/components/shared/Combobox/Selection/ComboboxClearButton.js +49 -0
- package/lib/components/shared/Combobox/Selection/ComboboxClearButton.spec.js +122 -0
- package/lib/components/shared/Combobox/Selection/ComboboxInput.js +57 -0
- package/lib/components/shared/Combobox/Selection/ComboboxLabelSelection.js +46 -0
- package/lib/components/shared/Combobox/Selection/ComboboxLabelSelection.spec.js +41 -0
- package/lib/components/shared/Combobox/Selection/ComboboxSelection.js +68 -0
- package/lib/components/shared/Combobox/Selection/ComboboxSelection.spec.js +68 -0
- package/lib/components/shared/Combobox/Selection/__snapshots__/ComboboxSelection.spec.tsx.snap +76 -0
- package/lib/components/shared/Combobox/index.js +1 -0
- package/lib/components/shared/ComponentErrors/ComponentErrors.js +50 -0
- package/lib/components/shared/ComponentErrors/ComponentErrors.spec.js +44 -0
- package/lib/components/shared/ComponentWrapper.js +68 -0
- package/lib/components/shared/Declarations/Declarations.js +46 -0
- package/lib/components/shared/Declarations/Declarations.spec.js +77 -0
- package/lib/components/shared/Fieldset/Fieldset.js +43 -0
- package/lib/components/shared/Fieldset/Fieldset.spec.js +37 -0
- package/lib/components/shared/HOC/slottableComponent.js +51 -0
- package/lib/components/shared/Icons/icon-props.js +5 -0
- package/lib/components/shared/Icons/index.js +75 -0
- package/lib/components/shared/Icons/lunatic-icon.js +17 -0
- package/lib/components/shared/Label/Label.js +35 -0
- package/lib/components/shared/Label/Label.spec.js +45 -0
- package/lib/components/shared/LabelDescription.js +21 -0
- package/lib/components/shared/MDLabel/MDLabel.js +45 -0
- package/lib/components/shared/MDLabel/MDLabel.spec.js +103 -0
- package/lib/components/shared/MDLabel/MDLabelLink.js +75 -0
- package/lib/components/shared/MDLabel/RouterLink.js +27 -0
- package/lib/components/shared/MDLabel/generateUniqueId.js +1 -0
- package/lib/components/shared/Missing/Missing.js +84 -0
- package/lib/components/shared/Missing/Missing.spec.js +81 -0
- package/lib/components/shared/ModalControls/ModalControls.js +84 -0
- package/lib/components/shared/ModalControls/ModalControls.spec.js +69 -0
- package/lib/components/shared/Notification.js +29 -0
- package/lib/components/shared/Radio/RadioGroup.js +67 -0
- package/lib/components/shared/Radio/RadioOption.js +116 -0
- package/lib/components/shared/Radio/RadioOption.spec.js +87 -0
- package/lib/components/shared/Table/Table.js +22 -0
- package/lib/components/shared/Table/Table.spec.js +23 -0
- package/lib/components/shared/Table/TableHeader.js +38 -0
- package/lib/components/shared/Table/Tbody.js +21 -0
- package/lib/components/shared/Table/Tbody.spec.js +32 -0
- package/lib/components/shared/Table/Td.js +27 -0
- package/lib/components/shared/Table/Td.spec.js +41 -0
- package/lib/components/shared/Table/Th.js +26 -0
- package/lib/components/shared/Table/Th.spec.js +44 -0
- package/lib/components/shared/Table/Thead.js +21 -0
- package/lib/components/shared/Table/Thead.spec.js +29 -0
- package/lib/components/shared/Table/Tr.js +22 -0
- package/lib/components/shared/Table/Tr.spec.js +39 -0
- package/lib/components/shared/Table/index.js +54 -0
- package/lib/components/shared/VariableStatus/VariableStatus.js +72 -0
- package/lib/components/shared/VariableStatus/VariableStatus.scss +39 -0
- package/lib/components/shared/VariableStatus/VariableStatus.spec.js +24 -0
- package/lib/components/shared/suggester-loader-widget/dragger/dragger.js +84 -0
- package/lib/components/shared/suggester-loader-widget/is-network/is-network.js +52 -0
- package/lib/components/shared/suggester-loader-widget/loader-row.js +103 -0
- package/lib/components/shared/suggester-loader-widget/loader.js +132 -0
- package/lib/components/shared/suggester-loader-widget/widget.js +133 -0
- package/lib/constants/indexedDBStore.js +24 -0
- package/lib/css/components/Button.scss +24 -0
- package/lib/css/components/CheckboxGroup.scss +13 -0
- package/lib/css/components/CheckboxOne.scss +19 -0
- package/lib/css/components/CheckboxOption.scss +19 -0
- package/lib/css/components/Combobox.scss +206 -0
- package/lib/css/components/ComponentErrors.scss +5 -0
- package/lib/css/components/Datepicker.scss +19 -0
- package/lib/css/components/Declarations.scss +42 -0
- package/lib/css/components/Dragger.scss +8 -0
- package/lib/css/components/Dropdown.scss +38 -0
- package/lib/css/components/Duration.scss +9 -0
- package/lib/css/components/Fieldset.scss +5 -0
- package/lib/css/components/IconButton.scss +38 -0
- package/lib/css/components/Input.scss +42 -0
- package/lib/css/components/InputNumber.scss +11 -0
- package/lib/css/components/Label.scss +6 -0
- package/lib/css/components/Missing.scss +27 -0
- package/lib/css/components/ModalControls.scss +48 -0
- package/lib/css/components/RadioGroup.scss +21 -0
- package/lib/css/components/RosterForLoop.scss +39 -0
- package/lib/css/components/Roundabout.scss +13 -0
- package/lib/css/components/Sequence.scss +10 -0
- package/lib/css/components/Suggester.scss +170 -0
- package/lib/css/components/SuggesterWidget.scss +176 -0
- package/lib/css/components/Table.scss +27 -0
- package/lib/css/components/Textarea.scss +8 -0
- package/lib/css/components/VariableStatus.scss +36 -0
- package/lib/css/main.scss +181 -0
- package/lib/hooks/useDocumentEvent.js +23 -0
- package/lib/hooks/useListKeyboardHandler.js +24 -0
- package/lib/hooks/useSuggesterInfo.js +69 -0
- package/lib/index.js +24 -25
- package/lib/main.css +1063 -0
- package/lib/main.css.map +1 -0
- package/lib/src/components/CheckboxBoolean/CheckboxBoolean.d.ts +11 -0
- package/lib/src/components/CheckboxGroup/CheckboxGroup.d.ts +11 -0
- package/lib/src/components/CheckboxGroup/CustomCheckboxGroup.d.ts +13 -0
- package/lib/src/components/CheckboxOne/CheckboxOne.d.ts +5 -0
- package/lib/src/components/Datepicker/Datepicker.d.ts +10 -0
- package/lib/src/components/Dropdown/Dropdown.d.ts +10 -0
- package/lib/src/components/Dropdown/helpers.d.ts +19 -0
- package/lib/src/components/Dropdown/renderer/SimpleLabelRenderer.d.ts +8 -0
- package/lib/src/components/Dropdown/renderer/SimpleOptionRenderer.d.ts +7 -0
- package/lib/src/components/Duration/Duration.d.ts +10 -0
- package/lib/src/components/FilterDescription/FilterDescription.d.ts +7 -0
- package/lib/src/components/Input/Input.d.ts +10 -0
- package/lib/src/components/InputNumber/InputNumber.d.ts +10 -0
- package/lib/src/components/InputNumber/InputNumberThousand.d.ts +14 -0
- package/lib/src/components/Loop/Loop.d.ts +15 -0
- package/lib/src/components/LunaticComponents.d.ts +25 -0
- package/lib/src/components/Question/Question.d.ts +9 -0
- package/lib/src/components/Radio/Radio.d.ts +12 -0
- package/lib/src/components/RosterForLoop/RosterForLoop.d.ts +5 -0
- package/lib/src/components/Roundabout/CustomRoundabout.d.ts +15 -0
- package/lib/src/components/Roundabout/Roundabout.d.ts +5 -0
- package/lib/src/components/Roundabout/RoundaboutItButton.d.ts +11 -0
- package/lib/src/components/Roundabout/RoundaboutRedirect.d.ts +6 -0
- package/lib/src/components/Roundabout/extra.d.ts +14 -0
- package/lib/src/components/Sequence/Sequence.d.ts +2 -0
- package/lib/src/components/Subsequence/Subsequence.d.ts +2 -0
- package/lib/src/components/Suggester/CustomSuggester.d.ts +29 -0
- package/lib/src/components/Suggester/Suggester.d.ts +2 -0
- package/lib/src/components/Suggester/SuggesterNotification.d.ts +10 -0
- package/lib/src/components/Suggester/SuggesterStatus.d.ts +23 -0
- package/lib/src/components/Suggester/SuggesterType.d.ts +6 -0
- package/lib/src/components/Suggester/helpers.d.ts +6 -0
- package/lib/src/components/Summary/Summary.d.ts +25 -0
- package/lib/src/components/Switch/Switch.d.ts +19 -0
- package/lib/src/components/Table/Table.d.ts +2 -0
- package/lib/src/components/Textarea/Textarea.d.ts +10 -0
- package/lib/src/components/library.d.ts +94 -0
- package/lib/src/components/shared/Button/Button.d.ts +11 -0
- package/lib/src/components/shared/Button/IconButton.d.ts +6 -0
- package/lib/src/components/shared/Checkbox/CheckboxOption.d.ts +14 -0
- package/lib/src/components/shared/Combobox/Combobox.d.ts +21 -0
- package/lib/src/components/shared/Combobox/Combobox.stories.d.ts +6 -0
- package/lib/src/components/shared/Combobox/ComboboxContainer.d.ts +11 -0
- package/lib/src/components/shared/Combobox/ComboboxContent.d.ts +10 -0
- package/lib/src/components/shared/Combobox/ComboboxContentBox.d.ts +7 -0
- package/lib/src/components/shared/Combobox/ComboboxType.d.ts +50 -0
- package/lib/src/components/shared/Combobox/Panel/ComboboxOption.d.ts +8 -0
- package/lib/src/components/shared/Combobox/Panel/ComboboxOptionContainer.d.ts +8 -0
- package/lib/src/components/shared/Combobox/Panel/ComboboxPanel.d.ts +5 -0
- package/lib/src/components/shared/Combobox/Panel/ComboboxPanelContainer.d.ts +8 -0
- package/lib/src/components/shared/Combobox/Selection/ComboboxClearButton.d.ts +9 -0
- package/lib/src/components/shared/Combobox/Selection/ComboboxInput.d.ts +10 -0
- package/lib/src/components/shared/Combobox/Selection/ComboboxLabelSelection.d.ts +11 -0
- package/lib/src/components/shared/Combobox/Selection/ComboboxSelection.d.ts +6 -0
- package/lib/src/components/shared/Combobox/index.d.ts +0 -0
- package/lib/src/components/shared/ComponentErrors/ComponentErrors.d.ts +14 -0
- package/lib/src/components/shared/ComponentWrapper.d.ts +26 -0
- package/lib/src/components/shared/Declarations/Declarations.d.ts +16 -0
- package/lib/src/components/shared/Fieldset/Fieldset.d.ts +9 -0
- package/lib/src/components/shared/HOC/slottableComponent.d.ts +105 -0
- package/lib/src/components/shared/Icons/index.d.ts +10 -0
- package/lib/src/components/shared/Icons/lunatic-icon.d.ts +4 -0
- package/lib/src/components/shared/Label/Label.d.ts +10 -0
- package/lib/src/components/shared/LabelDescription.d.ts +7 -0
- package/lib/src/components/shared/MDLabel/MDLabel.d.ts +7 -0
- package/lib/src/components/shared/MDLabel/MDLabelLink.d.ts +8 -0
- package/lib/src/components/shared/MDLabel/RouterLink.d.ts +6 -0
- package/lib/src/components/shared/MDLabel/generateUniqueId.d.ts +0 -0
- package/lib/src/components/shared/Missing/Missing.d.ts +13 -0
- package/lib/src/components/shared/ModalControls/ModalControls.d.ts +10 -0
- package/lib/src/components/shared/Notification.d.ts +8 -0
- package/lib/src/components/shared/Radio/RadioGroup.d.ts +22 -0
- package/lib/src/components/shared/Radio/RadioOption.d.ts +22 -0
- package/lib/src/components/shared/Table/Table.d.ts +7 -0
- package/lib/src/components/shared/Table/TableHeader.d.ts +2 -0
- package/lib/src/components/shared/Table/Tbody.d.ts +7 -0
- package/lib/src/components/shared/Table/Td.d.ts +11 -0
- package/lib/src/components/shared/Table/Th.d.ts +11 -0
- package/lib/src/components/shared/Table/Thead.d.ts +7 -0
- package/lib/src/components/shared/Table/Tr.d.ts +8 -0
- package/lib/src/components/shared/Table/index.d.ts +7 -0
- package/lib/src/components/shared/VariableStatus/VariableStatus.d.ts +6 -0
- package/lib/src/components/shared/suggester-loader-widget/dragger/dragger.d.ts +16 -0
- package/lib/src/components/shared/suggester-loader-widget/loader-row.d.ts +11 -0
- package/lib/src/components/shared/suggester-loader-widget/loader.d.ts +13 -0
- package/lib/src/components/shared/suggester-loader-widget/widget.d.ts +15 -0
- package/lib/src/components/type.d.ts +21 -36
- package/lib/src/constants/indexedDBStore.d.ts +21 -0
- package/lib/src/hooks/use-track-changes.d.ts +9 -1
- package/lib/src/hooks/useDocumentEvent.d.ts +2 -0
- package/lib/src/hooks/useListKeyboardHandler.d.ts +9 -0
- package/lib/src/hooks/useSuggesterInfo.d.ts +9 -0
- package/lib/src/i18n/index.d.ts +2 -2
- package/lib/src/i18n/inputNumberProps.d.ts +1 -1
- package/lib/src/index.d.ts +5 -3
- package/lib/src/use-lunatic/commons/fill-components/fill-component-required.d.ts +106 -91
- package/lib/src/use-lunatic/commons/fill-components/fill-from-state.d.ts +87 -132
- package/lib/src/use-lunatic/commons/fill-components/fill-iterations.d.ts +47 -44
- package/lib/src/use-lunatic/commons/fill-components/fill-specific-expression.d.ts +158 -182
- package/lib/src/use-lunatic/commons/use-components-from-state.d.ts +1 -1
- package/lib/src/use-lunatic/commons/variables/lunatic-variables-store.d.ts +2 -4
- package/lib/src/use-lunatic/lunatic-context.d.ts +1 -4
- package/lib/src/use-lunatic/replace-component-sequence.d.ts +22 -6
- package/lib/src/use-lunatic/type-source.d.ts +55 -53
- package/lib/src/use-lunatic/type.d.ts +4 -4
- package/lib/src/use-lunatic/use-lunatic.d.ts +81 -80
- package/lib/src/utils/store-tools/index.d.ts +1 -1
- package/lib/src/utils/variables.d.ts +10 -2
- package/lib/stories/behaviour/others/test.stories.js +1 -1
- package/lib/stories/behaviour/slots.stories.js +64 -0
- package/lib/stories/checkbox-group/checkbox-group.stories.js +1 -6
- package/lib/stories/checkbox-group/sourceLoop.json +1 -1
- package/lib/stories/date-picker/datepicker.stories.js +2 -3
- package/lib/stories/disabled/source.json +1 -1
- package/lib/stories/loop/loop.stories.js +1 -1
- package/lib/stories/loop/roster-for-loop.stories.js +1 -1
- package/lib/stories/loop/source-roster.json +2 -2
- package/lib/stories/markdown/markdown.stories.js +1 -1
- package/lib/stories/pairwise/pairwise-links.stories.js +1 -9
- package/lib/stories/sequence/sequence.stories.js +1 -1
- package/lib/stories/suggester/fakeReferentiel.json +12 -0
- package/lib/stories/suggester/source-option-responses.json +145 -0
- package/lib/stories/suggester/source.json +0 -1
- package/lib/stories/suggester/suggester-workers.stories.js +5 -5
- package/lib/stories/suggester/suggester.stories.js +45 -7
- package/lib/stories/switch/switch.stories.js +1 -6
- package/lib/stories/table/table.stories.js +1 -11
- package/lib/stories/utils/orchestrator.js +28 -30
- package/lib/use-lunatic/commons/fill-components/fill-specific-expression.js +0 -1
- package/lib/use-lunatic/commons/page.js +0 -5
- package/lib/use-lunatic/commons/variables/lunatic-variables-store.js +2 -28
- package/lib/use-lunatic/lunatic-context.js +2 -10
- package/lib/use-lunatic/reducer/reduce-on-init.js +2 -2
- package/lib/use-lunatic/replace-component-sequence.js +2 -3
- package/lib/use-lunatic/use-lunatic.js +1 -4
- package/lib/use-lunatic/use-lunatic.test.js +12 -37
- package/lib/utils/idb-tools/open-or-create-db.js +4 -4
- package/lib/utils/store-tools/clear-store-data.js +2 -2
- package/lib/utils/store-tools/clear-store-info.js +2 -2
- package/lib/utils/store-tools/create/create.js +2 -2
- package/lib/utils/store-tools/create/update-store-info.js +3 -3
- package/lib/utils/store-tools/get-store-count.js +3 -3
- package/lib/utils/store-tools/index.js +1 -1
- package/lib/utils/store-tools/initStore.js +4 -4
- package/lib/utils/store-tools/open-or-create-store.js +4 -4
- package/lib/utils/suggester-workers/append-to-index/append.js +2 -2
- package/lib/utils/suggester-workers/searching/search-in-index.js +2 -2
- package/lib/utils/suggester-workers/searching/searching.js +5 -5
- package/package.json +3 -6
- package/workers-release/lunatic-append-worker-0.3.0.js +1 -1
- package/workers-release/lunatic-append-worker-0.3.0.js.LICENSE.txt +0 -10
- package/workers-release/lunatic-search-worker-0.3.0.js +1 -1
- package/workers-release/lunatic-search-worker-0.3.0.js.LICENSE.txt +0 -10
- package/lib/components/button/index.js +0 -13
- package/lib/components/button/lunatic-button.js +0 -46
- package/lib/components/button/lunatic-button.spec.js +0 -87
- package/lib/components/checkbox/checkbox-boolean/html/checkbox-boolean.js +0 -34
- package/lib/components/checkbox/checkbox-boolean/html/checkbox-boolean.spec.js +0 -60
- package/lib/components/checkbox/checkbox-boolean/index.js +0 -13
- package/lib/components/checkbox/checkbox-boolean/lunatic-checkbox-boolean.js +0 -58
- package/lib/components/checkbox/checkbox-group/checkbox-group-content.js +0 -34
- package/lib/components/checkbox/checkbox-group/html/checkbox-group-content.js +0 -41
- package/lib/components/checkbox/checkbox-group/html/checkbox-group-content.spec.js +0 -44
- package/lib/components/checkbox/checkbox-group/html/checkbox-group.js +0 -33
- package/lib/components/checkbox/checkbox-group/html/checkbox-group.scss +0 -12
- package/lib/components/checkbox/checkbox-group/index.js +0 -13
- package/lib/components/checkbox/checkbox-group/lunatic-checkbox-group.js +0 -71
- package/lib/components/checkbox/checkbox-one/html/checkbox-one.js +0 -34
- package/lib/components/checkbox/checkbox-one/html/checkbox-one.spec.js +0 -46
- package/lib/components/checkbox/checkbox-one/index.js +0 -13
- package/lib/components/checkbox/checkbox-one/lunatic-checkbox-one.js +0 -61
- package/lib/components/checkbox/commons/checkbox-option.js +0 -72
- package/lib/components/checkbox/commons/checkbox-option.spec.js +0 -70
- package/lib/components/checkbox/commons/index.js +0 -13
- package/lib/components/checkbox/index.js +0 -27
- package/lib/components/commons/components/combo-box/combo-box-container.js +0 -28
- package/lib/components/commons/components/combo-box/combo-box-container.spec.js +0 -45
- package/lib/components/commons/components/combo-box/combo-box-content-box.js +0 -24
- package/lib/components/commons/components/combo-box/combo-box-content.js +0 -64
- package/lib/components/commons/components/combo-box/combo-box.js +0 -207
- package/lib/components/commons/components/combo-box/combo-box.stories.js +0 -110
- package/lib/components/commons/components/combo-box/index.js +0 -13
- package/lib/components/commons/components/combo-box/panel/combo-box-option.js +0 -43
- package/lib/components/commons/components/combo-box/panel/combo-box-option.spec.js +0 -65
- package/lib/components/commons/components/combo-box/panel/option-container.js +0 -56
- package/lib/components/commons/components/combo-box/panel/option-container.spec.js +0 -26
- package/lib/components/commons/components/combo-box/panel/panel-container.js +0 -27
- package/lib/components/commons/components/combo-box/panel/panel-container.spec.js +0 -58
- package/lib/components/commons/components/combo-box/panel/panel.js +0 -42
- package/lib/components/commons/components/combo-box/panel/panel.spec.js +0 -110
- package/lib/components/commons/components/combo-box/selection/LabelOrInput.js +0 -56
- package/lib/components/commons/components/combo-box/selection/LabelOrInput.spec.js +0 -21
- package/lib/components/commons/components/combo-box/selection/__snapshots__/selection.spec.tsx.snap +0 -84
- package/lib/components/commons/components/combo-box/selection/clear-button.js +0 -49
- package/lib/components/commons/components/combo-box/selection/clear-button.spec.js +0 -122
- package/lib/components/commons/components/combo-box/selection/combo-box-label-selection.js +0 -49
- package/lib/components/commons/components/combo-box/selection/combo-box-label-selection.spec.js +0 -43
- package/lib/components/commons/components/combo-box/selection/input.js +0 -57
- package/lib/components/commons/components/combo-box/selection/label-selection.js +0 -30
- package/lib/components/commons/components/combo-box/selection/label-selection.spec.js +0 -41
- package/lib/components/commons/components/combo-box/selection/selection-container.js +0 -36
- package/lib/components/commons/components/combo-box/selection/selection-container.spec.js +0 -52
- package/lib/components/commons/components/combo-box/selection/selection.js +0 -53
- package/lib/components/commons/components/combo-box/selection/selection.spec.js +0 -68
- package/lib/components/commons/components/description.js +0 -52
- package/lib/components/commons/components/description.spec.js +0 -45
- package/lib/components/commons/components/dragger/dragger.js +0 -84
- package/lib/components/commons/components/errors/errors.js +0 -50
- package/lib/components/commons/components/errors/errors.spec.js +0 -45
- package/lib/components/commons/components/errors/index.js +0 -13
- package/lib/components/commons/components/fab/fab.js +0 -34
- package/lib/components/commons/components/fab/fab.scss +0 -32
- package/lib/components/commons/components/fab/fab.spec.js +0 -101
- package/lib/components/commons/components/fab/index.js +0 -13
- package/lib/components/commons/components/field-container/field-container.js +0 -26
- package/lib/components/commons/components/field-container/filed-container.spec.js +0 -37
- package/lib/components/commons/components/field-container/index.js +0 -13
- package/lib/components/commons/components/fieldset.js +0 -28
- package/lib/components/commons/components/fieldset.spec.js +0 -51
- package/lib/components/commons/components/html-table/index.js +0 -47
- package/lib/components/commons/components/html-table/table.js +0 -23
- package/lib/components/commons/components/html-table/table.spec.js +0 -23
- package/lib/components/commons/components/html-table/tbody.js +0 -21
- package/lib/components/commons/components/html-table/tbody.spec.js +0 -32
- package/lib/components/commons/components/html-table/td.js +0 -27
- package/lib/components/commons/components/html-table/td.spec.js +0 -41
- package/lib/components/commons/components/html-table/th.js +0 -26
- package/lib/components/commons/components/html-table/th.spec.js +0 -44
- package/lib/components/commons/components/html-table/thead.js +0 -21
- package/lib/components/commons/components/html-table/thead.spec.js +0 -29
- package/lib/components/commons/components/html-table/tr.js +0 -22
- package/lib/components/commons/components/html-table/tr.spec.js +0 -39
- package/lib/components/commons/components/is-network/is-network.js +0 -52
- package/lib/components/commons/components/label/index.js +0 -13
- package/lib/components/commons/components/label/label.js +0 -34
- package/lib/components/commons/components/label/label.spec.js +0 -77
- package/lib/components/commons/components/lunatic-component-with-label.js +0 -66
- package/lib/components/commons/components/lunatic-component-without-label.js +0 -59
- package/lib/components/commons/components/md-label/generateUniqueId.js +0 -11
- package/lib/components/commons/components/md-label/index.js +0 -13
- package/lib/components/commons/components/md-label/link.js +0 -71
- package/lib/components/commons/components/md-label/md-label.js +0 -46
- package/lib/components/commons/components/md-label/md-label.spec.js +0 -103
- package/lib/components/commons/components/md-label/router-link.js +0 -29
- package/lib/components/commons/components/missing/index.js +0 -13
- package/lib/components/commons/components/missing/missing.js +0 -88
- package/lib/components/commons/components/missing/missing.spec.js +0 -81
- package/lib/components/commons/components/nothing-to-display.js +0 -15
- package/lib/components/commons/components/nothing-to-display.spec.js +0 -15
- package/lib/components/commons/components/orchestrated-component.js +0 -40
- package/lib/components/commons/components/variable-status/img/index.js +0 -20
- package/lib/components/commons/components/variable-status/index.js +0 -13
- package/lib/components/commons/components/variable-status/variable-status.js +0 -88
- package/lib/components/commons/components/variable-status/variable-status.scss +0 -39
- package/lib/components/commons/components/variable-status/variable-status.spec.js +0 -24
- package/lib/components/commons/create-customizable-field.js +0 -28
- package/lib/components/commons/icons/index.js +0 -75
- package/lib/components/commons/icons/lunatic-icon.js +0 -18
- package/lib/components/commons/index.js +0 -96
- package/lib/components/commons/safety-label.js +0 -24
- package/lib/components/commons/use-document-add-event-listener.js +0 -23
- package/lib/components/commons/use-on-handle-change.js +0 -18
- package/lib/components/commons/use-on-handle-change.spec.js +0 -50
- package/lib/components/commons/use-options-keydown.js +0 -22
- package/lib/components/component-set/html/__snapshots__/component-set.spec.tsx.snap +0 -126
- package/lib/components/component-set/html/component-set-legend.js +0 -28
- package/lib/components/component-set/html/component-set-wrapper.js +0 -15
- package/lib/components/component-set/html/component-set.js +0 -28
- package/lib/components/component-set/html/component-set.spec.js +0 -91
- package/lib/components/component-set/lunatic-component-set.js +0 -56
- package/lib/components/datepicker/html/__snapshots__/datepicker.spec.tsx.snap +0 -229
- package/lib/components/datepicker/html/datepicker.js +0 -136
- package/lib/components/datepicker/html/datepicker.spec.js +0 -86
- package/lib/components/datepicker/index.js +0 -13
- package/lib/components/datepicker/lunatic-datepicker.js +0 -63
- package/lib/components/declarations/declaration.js +0 -21
- package/lib/components/declarations/declaration.spec.js +0 -30
- package/lib/components/declarations/declarations-after-text.js +0 -23
- package/lib/components/declarations/declarations-before-text.js +0 -23
- package/lib/components/declarations/declarations-detachable.js +0 -23
- package/lib/components/declarations/declarations.js +0 -42
- package/lib/components/declarations/declarations.spec.js +0 -78
- package/lib/components/declarations/index.js +0 -43
- package/lib/components/dropdown/html/__snapshots__/dropdown.spec.tsx.snap +0 -85
- package/lib/components/dropdown/html/dropdown-simple/dropdown-simple.js +0 -39
- package/lib/components/dropdown/html/dropdown-simple/index.js +0 -13
- package/lib/components/dropdown/html/dropdown-simple/simple-label-renderer.js +0 -35
- package/lib/components/dropdown/html/dropdown-simple/simple-option-renderer.js +0 -42
- package/lib/components/dropdown/html/dropdown-writable/dropdown-writable.js +0 -60
- package/lib/components/dropdown/html/dropdown-writable/filter-tools/filter-options.js +0 -28
- package/lib/components/dropdown/html/dropdown-writable/filter-tools/filter-options.spec.js +0 -106
- package/lib/components/dropdown/html/dropdown-writable/filter-tools/get-label.js +0 -24
- package/lib/components/dropdown/html/dropdown-writable/filter-tools/letters-matching.js +0 -28
- package/lib/components/dropdown/html/dropdown-writable/filter-tools/match.js +0 -21
- package/lib/components/dropdown/html/dropdown-writable/filter-tools/prepare-prefix.js +0 -15
- package/lib/components/dropdown/html/dropdown-writable/index.js +0 -13
- package/lib/components/dropdown/html/dropdown-writable/writable-label-renderer.js +0 -39
- package/lib/components/dropdown/html/dropdown-writable/writable-option-renderer.js +0 -143
- package/lib/components/dropdown/html/dropdown.js +0 -52
- package/lib/components/dropdown/html/dropdown.spec.js +0 -48
- package/lib/components/dropdown/index.js +0 -13
- package/lib/components/dropdown/lunatic-dropdown.js +0 -62
- package/lib/components/duration/duration.js +0 -53
- package/lib/components/duration/durationInput.js +0 -77
- package/lib/components/duration/index.js +0 -13
- package/lib/components/filter-description/component.js +0 -19
- package/lib/components/filter-description/component.spec.js +0 -23
- package/lib/components/filter-description/index.js +0 -13
- package/lib/components/index.js +0 -223
- package/lib/components/input/html/input.js +0 -57
- package/lib/components/input/html/input.spec.js +0 -81
- package/lib/components/input/index.js +0 -13
- package/lib/components/input/lunatic-input.js +0 -59
- package/lib/components/input-number/html/__snapshots__/input-number.spec.tsx.snap +0 -42
- package/lib/components/input-number/html/input-number-thousand.js +0 -56
- package/lib/components/input-number/html/input-number.js +0 -58
- package/lib/components/input-number/html/input-number.spec.js +0 -119
- package/lib/components/input-number/index.js +0 -13
- package/lib/components/input-number/lunatic-input-number.js +0 -63
- package/lib/components/loop/block-for-loop.js +0 -111
- package/lib/components/loop/loop-button.js +0 -19
- package/lib/components/loop/loop-header.js +0 -30
- package/lib/components/loop/loop.js +0 -36
- package/lib/components/loop/roster-for-loop/roster-for-loop.js +0 -162
- package/lib/components/loop/roster-for-loop/roster-for-loop.spec.js +0 -46
- package/lib/components/lunatic-components.js +0 -105
- package/lib/components/modal/html/modal.js +0 -59
- package/lib/components/modal/html/modal.scss +0 -26
- package/lib/components/modal/index.js +0 -13
- package/lib/components/modal/lunatic-modal.js +0 -61
- package/lib/components/modal-controls/close-or-skip.js +0 -38
- package/lib/components/modal-controls/close-or-skip.spec.js +0 -36
- package/lib/components/modal-controls/index.js +0 -13
- package/lib/components/modal-controls/modal-container.js +0 -21
- package/lib/components/modal-controls/modal-container.spec.js +0 -23
- package/lib/components/modal-controls/modal-controls.js +0 -73
- package/lib/components/modal-controls/modal-controls.spec.js +0 -70
- package/lib/components/pairwise-links/pairwise-links.js +0 -57
- package/lib/components/question/Question.js +0 -49
- package/lib/components/question/index.js +0 -16
- package/lib/components/question-explication/html/question-explication.js +0 -51
- package/lib/components/question-explication/html/question-explication.scss +0 -35
- package/lib/components/question-explication/index.js +0 -13
- package/lib/components/question-explication/lunatic-question-explication.js +0 -31
- package/lib/components/question-explication/question-explication.spec.js +0 -49
- package/lib/components/questions/index.js +0 -20
- package/lib/components/questions/question-context.js +0 -34
- package/lib/components/questions/question-context.scss +0 -10
- package/lib/components/questions/question-information.js +0 -34
- package/lib/components/questions/question-information.scss +0 -19
- package/lib/components/radio/html/radio-group-content.js +0 -53
- package/lib/components/radio/html/radio-group-content.spec.js +0 -99
- package/lib/components/radio/html/radio-group.js +0 -45
- package/lib/components/radio/html/radio-option.js +0 -115
- package/lib/components/radio/html/radio-option.spec.js +0 -88
- package/lib/components/radio/index.js +0 -13
- package/lib/components/radio/lunatic-radio-group.js +0 -66
- package/lib/components/roundabout/components/roundabout-container.js +0 -19
- package/lib/components/roundabout/components/roundabout-container.spec.js +0 -23
- package/lib/components/roundabout/components/roundabout-it-button.js +0 -77
- package/lib/components/roundabout/components/roundabout-it-button.spec.js +0 -102
- package/lib/components/roundabout/components/roundabout-it-container.js +0 -18
- package/lib/components/roundabout/components/roundabout-it-container.spec.js +0 -23
- package/lib/components/roundabout/components/roundabout-it-title.js +0 -16
- package/lib/components/roundabout/components/roundabout-it-title.spec.js +0 -18
- package/lib/components/roundabout/components/roundabout-label.js +0 -16
- package/lib/components/roundabout/components/roundabout-label.spec.js +0 -18
- package/lib/components/roundabout/components/roundabout-pending.js +0 -17
- package/lib/components/roundabout/components/roundabout-pending.spec.js +0 -15
- package/lib/components/roundabout/index.js +0 -13
- package/lib/components/roundabout/lunatic-roundabout.js +0 -37
- package/lib/components/roundabout/redirect.js +0 -22
- package/lib/components/roundabout/redirect.spec.js +0 -19
- package/lib/components/roundabout/roundabout.js +0 -73
- package/lib/components/roundabout/roundabout.spec.js +0 -71
- package/lib/components/sequence/html/sequence.js +0 -28
- package/lib/components/sequence/index.js +0 -13
- package/lib/components/sequence/lunatic-sequence.js +0 -30
- package/lib/components/sequence/sequence.spec.js +0 -75
- package/lib/components/subsequence/index.js +0 -13
- package/lib/components/subsequence/subsequence.js +0 -32
- package/lib/components/subsequence/subsequence.spec.js +0 -80
- package/lib/components/suggester/find-best-label/find-best-label.js +0 -49
- package/lib/components/suggester/find-best-label/index.js +0 -13
- package/lib/components/suggester/html/default-style.scss +0 -170
- package/lib/components/suggester/html/notification.js +0 -29
- package/lib/components/suggester/html/suggester.js +0 -121
- package/lib/components/suggester/idb-suggester/check-store.js +0 -112
- package/lib/components/suggester/idb-suggester/idb-suggester.js +0 -75
- package/lib/components/suggester/idb-suggester/index.js +0 -12
- package/lib/components/suggester/idb-suggester/suggester-notification.js +0 -60
- package/lib/components/suggester/idb-suggester/suggester-status.js +0 -48
- package/lib/components/suggester/index.js +0 -13
- package/lib/components/suggester/lunatic-suggester.js +0 -72
- package/lib/components/suggester/searching/create-searching.js +0 -51
- package/lib/components/suggester/searching/index.js +0 -13
- package/lib/components/suggester-loader-widget/loader-row.js +0 -103
- package/lib/components/suggester-loader-widget/loader.js +0 -132
- package/lib/components/suggester-loader-widget/widget.js +0 -134
- package/lib/components/summary/html/summary-container.js +0 -14
- package/lib/components/summary/html/summary-responses.js +0 -56
- package/lib/components/summary/html/summary-title.js +0 -19
- package/lib/components/summary/index.js +0 -12
- package/lib/components/summary/lunatic-summary.js +0 -103
- package/lib/components/switch/html/switch.js +0 -71
- package/lib/components/switch/index.js +0 -13
- package/lib/components/switch/lunatic-switch.js +0 -63
- package/lib/components/table/lunatic-table.js +0 -72
- package/lib/components/table/table-header.js +0 -36
- package/lib/components/textarea/html/textarea.js +0 -54
- package/lib/components/textarea/html/textarea.spec.js +0 -38
- package/lib/components/textarea/index.js +0 -13
- package/lib/components/textarea/lunatic-textarea.js +0 -77
- package/lib/src/components/button/index.d.ts +0 -1
- package/lib/src/components/button/lunatic-button.d.ts +0 -12
- package/lib/src/components/checkbox/checkbox-boolean/html/checkbox-boolean.d.ts +0 -13
- package/lib/src/components/checkbox/checkbox-boolean/index.d.ts +0 -1
- package/lib/src/components/checkbox/checkbox-boolean/lunatic-checkbox-boolean.d.ts +0 -8
- package/lib/src/components/checkbox/checkbox-group/checkbox-group-content.d.ts +0 -8
- package/lib/src/components/checkbox/checkbox-group/html/checkbox-group-content.d.ts +0 -9
- package/lib/src/components/checkbox/checkbox-group/html/checkbox-group.d.ts +0 -14
- package/lib/src/components/checkbox/checkbox-group/index.d.ts +0 -1
- package/lib/src/components/checkbox/checkbox-group/lunatic-checkbox-group.d.ts +0 -11
- package/lib/src/components/checkbox/checkbox-one/html/checkbox-one.d.ts +0 -5
- package/lib/src/components/checkbox/checkbox-one/index.d.ts +0 -1
- package/lib/src/components/checkbox/checkbox-one/lunatic-checkbox-one.d.ts +0 -3
- package/lib/src/components/checkbox/commons/checkbox-option.d.ts +0 -16
- package/lib/src/components/checkbox/commons/index.d.ts +0 -1
- package/lib/src/components/checkbox/index.d.ts +0 -3
- package/lib/src/components/commons/components/combo-box/combo-box-container.d.ts +0 -11
- package/lib/src/components/commons/components/combo-box/combo-box-content-box.d.ts +0 -8
- package/lib/src/components/commons/components/combo-box/combo-box-content.d.ts +0 -10
- package/lib/src/components/commons/components/combo-box/combo-box.d.ts +0 -23
- package/lib/src/components/commons/components/combo-box/combo-box.stories.d.ts +0 -6
- package/lib/src/components/commons/components/combo-box/combo-box.type.d.ts +0 -8
- package/lib/src/components/commons/components/combo-box/index.d.ts +0 -1
- package/lib/src/components/commons/components/combo-box/panel/combo-box-option.d.ts +0 -8
- package/lib/src/components/commons/components/combo-box/panel/option-container.d.ts +0 -8
- package/lib/src/components/commons/components/combo-box/panel/panel-container.d.ts +0 -8
- package/lib/src/components/commons/components/combo-box/panel/panel.d.ts +0 -20
- package/lib/src/components/commons/components/combo-box/selection/LabelOrInput.d.ts +0 -18
- package/lib/src/components/commons/components/combo-box/selection/clear-button.d.ts +0 -9
- package/lib/src/components/commons/components/combo-box/selection/combo-box-label-selection.d.ts +0 -11
- package/lib/src/components/commons/components/combo-box/selection/input.d.ts +0 -11
- package/lib/src/components/commons/components/combo-box/selection/label-selection.d.ts +0 -21
- package/lib/src/components/commons/components/combo-box/selection/selection-container.d.ts +0 -11
- package/lib/src/components/commons/components/combo-box/selection/selection.d.ts +0 -13
- package/lib/src/components/commons/components/description.d.ts +0 -22
- package/lib/src/components/commons/components/dragger/dragger.d.ts +0 -17
- package/lib/src/components/commons/components/errors/errors.d.ts +0 -11
- package/lib/src/components/commons/components/errors/index.d.ts +0 -1
- package/lib/src/components/commons/components/fab/fab.d.ts +0 -7
- package/lib/src/components/commons/components/fab/index.d.ts +0 -1
- package/lib/src/components/commons/components/field-container/field-container.d.ts +0 -6
- package/lib/src/components/commons/components/field-container/index.d.ts +0 -1
- package/lib/src/components/commons/components/fieldset.d.ts +0 -13
- package/lib/src/components/commons/components/html-table/index.d.ts +0 -6
- package/lib/src/components/commons/components/html-table/table.d.ts +0 -8
- package/lib/src/components/commons/components/html-table/tbody.d.ts +0 -7
- package/lib/src/components/commons/components/html-table/td.d.ts +0 -11
- package/lib/src/components/commons/components/html-table/th.d.ts +0 -11
- package/lib/src/components/commons/components/html-table/thead.d.ts +0 -7
- package/lib/src/components/commons/components/html-table/tr.d.ts +0 -8
- package/lib/src/components/commons/components/label/index.d.ts +0 -1
- package/lib/src/components/commons/components/label/label.d.ts +0 -14
- package/lib/src/components/commons/components/lunatic-component-with-label.d.ts +0 -12
- package/lib/src/components/commons/components/lunatic-component-without-label.d.ts +0 -12
- package/lib/src/components/commons/components/md-label/generateUniqueId.d.ts +0 -1
- package/lib/src/components/commons/components/md-label/index.d.ts +0 -1
- package/lib/src/components/commons/components/md-label/link.d.ts +0 -7
- package/lib/src/components/commons/components/md-label/md-label.d.ts +0 -7
- package/lib/src/components/commons/components/md-label/router-link.d.ts +0 -6
- package/lib/src/components/commons/components/missing/index.d.ts +0 -1
- package/lib/src/components/commons/components/missing/missing.d.ts +0 -14
- package/lib/src/components/commons/components/nothing-to-display.d.ts +0 -2
- package/lib/src/components/commons/components/orchestrated-component.d.ts +0 -8
- package/lib/src/components/commons/components/variable-status/img/index.d.ts +0 -2
- package/lib/src/components/commons/components/variable-status/index.d.ts +0 -1
- package/lib/src/components/commons/components/variable-status/variable-status.d.ts +0 -16
- package/lib/src/components/commons/create-customizable-field.d.ts +0 -3
- package/lib/src/components/commons/icons/index.d.ts +0 -10
- package/lib/src/components/commons/icons/lunatic-icon.d.ts +0 -5
- package/lib/src/components/commons/index.d.ts +0 -13
- package/lib/src/components/commons/safety-label.d.ts +0 -3
- package/lib/src/components/commons/use-document-add-event-listener.d.ts +0 -2
- package/lib/src/components/commons/use-on-handle-change.d.ts +0 -12
- package/lib/src/components/commons/use-options-keydown.d.ts +0 -7
- package/lib/src/components/component-set/html/component-set-legend.d.ts +0 -8
- package/lib/src/components/component-set/html/component-set-wrapper.d.ts +0 -6
- package/lib/src/components/component-set/html/component-set.d.ts +0 -10
- package/lib/src/components/component-set/lunatic-component-set.d.ts +0 -3
- package/lib/src/components/datepicker/html/datepicker.d.ts +0 -18
- package/lib/src/components/datepicker/index.d.ts +0 -1
- package/lib/src/components/datepicker/lunatic-datepicker.d.ts +0 -10
- package/lib/src/components/declarations/declaration.d.ts +0 -6
- package/lib/src/components/declarations/declarations-after-text.d.ts +0 -4
- package/lib/src/components/declarations/declarations-before-text.d.ts +0 -4
- package/lib/src/components/declarations/declarations-detachable.d.ts +0 -4
- package/lib/src/components/declarations/declarations.d.ts +0 -15
- package/lib/src/components/declarations/index.d.ts +0 -4
- package/lib/src/components/dropdown/html/dropdown-simple/dropdown-simple.d.ts +0 -3
- package/lib/src/components/dropdown/html/dropdown-simple/index.d.ts +0 -1
- package/lib/src/components/dropdown/html/dropdown-simple/simple-label-renderer.d.ts +0 -8
- package/lib/src/components/dropdown/html/dropdown-simple/simple-option-renderer.d.ts +0 -7
- package/lib/src/components/dropdown/html/dropdown-writable/dropdown-writable.d.ts +0 -17
- package/lib/src/components/dropdown/html/dropdown-writable/filter-tools/filter-options.d.ts +0 -6
- package/lib/src/components/dropdown/html/dropdown-writable/filter-tools/get-label.d.ts +0 -9
- package/lib/src/components/dropdown/html/dropdown-writable/filter-tools/letters-matching.d.ts +0 -2
- package/lib/src/components/dropdown/html/dropdown-writable/filter-tools/match.d.ts +0 -2
- package/lib/src/components/dropdown/html/dropdown-writable/filter-tools/prepare-prefix.d.ts +0 -2
- package/lib/src/components/dropdown/html/dropdown-writable/index.d.ts +0 -1
- package/lib/src/components/dropdown/html/dropdown-writable/writable-label-renderer.d.ts +0 -8
- package/lib/src/components/dropdown/html/dropdown-writable/writable-option-renderer.d.ts +0 -8
- package/lib/src/components/dropdown/html/dropdown.d.ts +0 -12
- package/lib/src/components/dropdown/html/dropdown.spec.d.ts +0 -1
- package/lib/src/components/dropdown/index.d.ts +0 -1
- package/lib/src/components/dropdown/lunatic-dropdown.d.ts +0 -3
- package/lib/src/components/duration/duration.d.ts +0 -4
- package/lib/src/components/duration/durationInput.d.ts +0 -11
- package/lib/src/components/duration/index.d.ts +0 -1
- package/lib/src/components/filter-description/component.d.ts +0 -7
- package/lib/src/components/filter-description/component.spec.d.ts +0 -1
- package/lib/src/components/filter-description/index.d.ts +0 -1
- package/lib/src/components/index.d.ts +0 -31
- package/lib/src/components/input/html/input.d.ts +0 -17
- package/lib/src/components/input/html/input.spec.d.ts +0 -1
- package/lib/src/components/input/index.d.ts +0 -1
- package/lib/src/components/input/lunatic-input.d.ts +0 -3
- package/lib/src/components/input-number/html/input-number-thousand.d.ts +0 -14
- package/lib/src/components/input-number/html/input-number.d.ts +0 -20
- package/lib/src/components/input-number/html/input-number.spec.d.ts +0 -1
- package/lib/src/components/input-number/index.d.ts +0 -1
- package/lib/src/components/input-number/lunatic-input-number.d.ts +0 -3
- package/lib/src/components/loop/block-for-loop.d.ts +0 -22
- package/lib/src/components/loop/loop-button.d.ts +0 -7
- package/lib/src/components/loop/loop-header.d.ts +0 -9
- package/lib/src/components/loop/loop.d.ts +0 -2
- package/lib/src/components/loop/roster-for-loop/roster-for-loop.d.ts +0 -23
- package/lib/src/components/loop/roster-for-loop/roster-for-loop.spec.d.ts +0 -1
- package/lib/src/components/lunatic-components.d.ts +0 -23
- package/lib/src/components/modal/html/modal.d.ts +0 -11
- package/lib/src/components/modal/index.d.ts +0 -1
- package/lib/src/components/modal/lunatic-modal.d.ts +0 -3
- package/lib/src/components/modal-controls/close-or-skip.d.ts +0 -8
- package/lib/src/components/modal-controls/close-or-skip.spec.d.ts +0 -1
- package/lib/src/components/modal-controls/index.d.ts +0 -1
- package/lib/src/components/modal-controls/modal-container.d.ts +0 -3
- package/lib/src/components/modal-controls/modal-container.spec.d.ts +0 -1
- package/lib/src/components/modal-controls/modal-controls.d.ts +0 -11
- package/lib/src/components/modal-controls/modal-controls.spec.d.ts +0 -1
- package/lib/src/components/question/Question.d.ts +0 -7
- package/lib/src/components/question/index.d.ts +0 -1
- package/lib/src/components/question-explication/html/question-explication.d.ts +0 -7
- package/lib/src/components/question-explication/index.d.ts +0 -1
- package/lib/src/components/question-explication/lunatic-question-explication.d.ts +0 -3
- package/lib/src/components/question-explication/question-explication.spec.d.ts +0 -1
- package/lib/src/components/questions/index.d.ts +0 -2
- package/lib/src/components/questions/question-context.d.ts +0 -4
- package/lib/src/components/questions/question-information.d.ts +0 -4
- package/lib/src/components/radio/html/radio-group-content.d.ts +0 -19
- package/lib/src/components/radio/html/radio-group-content.spec.d.ts +0 -1
- package/lib/src/components/radio/html/radio-group.d.ts +0 -23
- package/lib/src/components/radio/html/radio-option.d.ts +0 -23
- package/lib/src/components/radio/html/radio-option.spec.d.ts +0 -1
- package/lib/src/components/radio/index.d.ts +0 -1
- package/lib/src/components/radio/lunatic-radio-group.d.ts +0 -13
- package/lib/src/components/roundabout/components/roundabout-container.d.ts +0 -6
- package/lib/src/components/roundabout/components/roundabout-container.spec.d.ts +0 -1
- package/lib/src/components/roundabout/components/roundabout-it-button.d.ts +0 -11
- package/lib/src/components/roundabout/components/roundabout-it-button.spec.d.ts +0 -1
- package/lib/src/components/roundabout/components/roundabout-it-container.d.ts +0 -5
- package/lib/src/components/roundabout/components/roundabout-it-container.spec.d.ts +0 -1
- package/lib/src/components/roundabout/components/roundabout-it-title.d.ts +0 -5
- package/lib/src/components/roundabout/components/roundabout-it-title.spec.d.ts +0 -1
- package/lib/src/components/roundabout/components/roundabout-label.d.ts +0 -5
- package/lib/src/components/roundabout/components/roundabout-label.spec.d.ts +0 -1
- package/lib/src/components/roundabout/components/roundabout-pending.d.ts +0 -3
- package/lib/src/components/roundabout/components/roundabout-pending.spec.d.ts +0 -1
- package/lib/src/components/roundabout/index.d.ts +0 -1
- package/lib/src/components/roundabout/lunatic-roundabout.d.ts +0 -6
- package/lib/src/components/roundabout/redirect.d.ts +0 -6
- package/lib/src/components/roundabout/roundabout.d.ts +0 -15
- package/lib/src/components/sequence/html/sequence.d.ts +0 -5
- package/lib/src/components/sequence/index.d.ts +0 -1
- package/lib/src/components/sequence/lunatic-sequence.d.ts +0 -3
- package/lib/src/components/sequence/sequence.spec.d.ts +0 -1
- package/lib/src/components/subsequence/index.d.ts +0 -1
- package/lib/src/components/subsequence/subsequence.d.ts +0 -3
- package/lib/src/components/subsequence/subsequence.spec.d.ts +0 -1
- package/lib/src/components/suggester/find-best-label/find-best-label.d.ts +0 -2
- package/lib/src/components/suggester/find-best-label/index.d.ts +0 -1
- package/lib/src/components/suggester/html/notification.d.ts +0 -8
- package/lib/src/components/suggester/html/suggester.d.ts +0 -27
- package/lib/src/components/suggester/idb-suggester/check-store.d.ts +0 -11
- package/lib/src/components/suggester/idb-suggester/idb-suggester.d.ts +0 -9
- package/lib/src/components/suggester/idb-suggester/index.d.ts +0 -1
- package/lib/src/components/suggester/idb-suggester/suggester-notification.d.ts +0 -10
- package/lib/src/components/suggester/idb-suggester/suggester-status.d.ts +0 -23
- package/lib/src/components/suggester/index.d.ts +0 -1
- package/lib/src/components/suggester/lunatic-suggester.d.ts +0 -3
- package/lib/src/components/suggester/searching/create-searching.d.ts +0 -7
- package/lib/src/components/suggester/searching/index.d.ts +0 -1
- package/lib/src/components/suggester-loader-widget/loader-row.d.ts +0 -11
- package/lib/src/components/suggester-loader-widget/loader.d.ts +0 -13
- package/lib/src/components/suggester-loader-widget/widget.d.ts +0 -16
- package/lib/src/components/summary/html/summary-container.d.ts +0 -2
- package/lib/src/components/summary/html/summary-responses.d.ts +0 -14
- package/lib/src/components/summary/html/summary-title.d.ts +0 -5
- package/lib/src/components/summary/index.d.ts +0 -1
- package/lib/src/components/summary/lunatic-summary.d.ts +0 -8
- package/lib/src/components/switch/html/switch.d.ts +0 -18
- package/lib/src/components/switch/index.d.ts +0 -1
- package/lib/src/components/switch/lunatic-switch.d.ts +0 -3
- package/lib/src/components/table/lunatic-table.d.ts +0 -3
- package/lib/src/components/table/table-header.d.ts +0 -11
- package/lib/src/components/textarea/html/textarea.d.ts +0 -19
- package/lib/src/components/textarea/html/textarea.spec.d.ts +0 -1
- package/lib/src/components/textarea/index.d.ts +0 -1
- package/lib/src/components/textarea/lunatic-textarea.d.ts +0 -18
- package/lib/src/use-lunatic/reducer/reduce-go-next-page.spec.d.ts +0 -1
- package/lib/src/use-lunatic/reducer/reduce-go-previous-page.spec.d.ts +0 -1
- package/lib/src/utils/store-tools/constantes.d.ts +0 -21
- package/lib/stories/checkbox-group/sourceComponentset.json +0 -424
- package/lib/stories/component-set/component-set.stories.js +0 -53
- package/lib/stories/component-set/data-loop.json +0 -18
- package/lib/stories/component-set/data-roundabout.json +0 -25
- package/lib/stories/component-set/data.json +0 -25
- package/lib/stories/component-set/source-loop.json +0 -308
- package/lib/stories/component-set/source-roundabout.json +0 -434
- package/lib/stories/component-set/source.json +0 -113
- package/lib/stories/custom-mui/checkbox-boolean-mui.js +0 -31
- package/lib/stories/custom-mui/checkbox-group-mui.js +0 -67
- package/lib/stories/custom-mui/checkbox-one-mui.js +0 -15
- package/lib/stories/custom-mui/index.js +0 -111
- package/lib/stories/custom-mui/input-mui.js +0 -51
- package/lib/stories/custom-mui/input-number-mui.js +0 -39
- package/lib/stories/custom-mui/radio-mui.js +0 -61
- package/lib/stories/custom-mui/suggester-mui/index.js +0 -13
- package/lib/stories/custom-mui/suggester-mui/suggester-mui.js +0 -301
- package/lib/stories/custom-mui/switch-mui.js +0 -46
- package/lib/stories/custom-mui/table-mui.js +0 -27
- package/lib/stories/custom-mui/tbody-mui.js +0 -22
- package/lib/stories/custom-mui/td-mui.js +0 -24
- package/lib/stories/custom-mui/textarea-mui.js +0 -42
- package/lib/stories/custom-mui/th-mui.js +0 -23
- package/lib/stories/custom-mui/thead-mui.js +0 -22
- package/lib/stories/custom-mui/tr-mui.js +0 -32
- package/lib/stories/modal/modal.stories.js +0 -32
- package/lib/stories/modal/source.json +0 -97
- package/lib/stories/pairwise/source-componentset.json +0 -292
- package/lib/stories/question-context/question-context.stories.js +0 -31
- package/lib/stories/question-context/source.json +0 -13
- package/lib/stories/question-explication/question-explication.stories.js +0 -31
- package/lib/stories/question-explication/source.json +0 -17
- package/lib/stories/question-information/question-information.stories.js +0 -32
- package/lib/stories/question-information/source.json +0 -14
- package/lib/stories/suggester/source-component-set.json +0 -113
- package/lib/tests/utils/lunatic.d.ts +0 -25
- package/lib/use-lunatic/reducer/reduce-go-next-page.spec.js +0 -13
- package/lib/use-lunatic/reducer/reduce-go-previous-page.spec.js +0 -14
- package/lib/utils/store-tools/constantes.js +0 -24
- /package/lib/components/{checkbox/checkbox-one/html/checkbox-one.scss → CheckboxOne/CheckboxOne.scss} +0 -0
- /package/lib/components/{datepicker/html/datepicker.scss → Datepicker/Datepicker.scss} +0 -0
- /package/lib/components/{datepicker/html → Datepicker}/DatepickerField.js +0 -0
- /package/lib/components/{dropdown/html/dropdown.scss → Dropdown/Dropdown.scss} +0 -0
- /package/lib/components/{duration/duration.scss → Duration/Duration.scss} +0 -0
- /package/lib/components/{duration → Duration}/durationUtils.js +0 -0
- /package/lib/components/{duration → Duration}/formatDuration.js +0 -0
- /package/lib/components/{duration → Duration}/formatDuration.spec.js +0 -0
- /package/lib/components/{duration → Duration}/getDurationFromValue.js +0 -0
- /package/lib/components/{input/html/input.scss → Input/Input.scss} +0 -0
- /package/lib/components/{input/html/__snapshots__/input.spec.tsx.snap → Input/__snapshots__/Input.spec.tsx.snap} +0 -0
- /package/lib/components/{input-number/html/input-number.scss → InputNumber/InputNumber.scss} +0 -0
- /package/lib/components/{loop → Loop}/constant.js +0 -0
- /package/lib/components/{radio/radio.scss → Radio/Radio.scss} +0 -0
- /package/lib/components/{loop/roster-for-loop/roster.scss → RosterForLoop/RosterForLoop.scss} +0 -0
- /package/lib/components/{loop/roster-for-loop/__snapshots__/roster-for-loop.spec.tsx.snap → RosterForLoop/__snapshots__/RosterForLoop.spec.tsx.snap} +0 -0
- /package/lib/components/{roundabout/components/roundabout.scss → Roundabout/Roundabout.scss} +0 -0
- /package/lib/components/{sequence/html/sequence.scss → Sequence/Sequence.scss} +0 -0
- /package/lib/components/{commons/components/combo-box/combo-box.type.js → Suggester/SuggesterType.js} +0 -0
- /package/lib/components/{suggester/html → Suggester/icons}/alert-icon.svg +0 -0
- /package/lib/components/{suggester/html → Suggester/icons}/wait-icon.svg +0 -0
- /package/lib/components/{suggester/html → Suggester/icons}/warn-icon.svg +0 -0
- /package/lib/components/{switch/html → Switch}/switch.scss +0 -0
- /package/lib/components/{textarea/html/textarea.scss → Textarea/Textarea.scss} +0 -0
- /package/lib/components/{textarea/html/__snapshots__/textarea.spec.tsx.snap → Textarea/__snapshots__/Textarea.spec.tsx.snap} +0 -0
- /package/lib/components/{button/button.scss → shared/Button/Button.scss} +0 -0
- /package/lib/components/{button/__snapshots__/lunatic-button.spec.tsx.snap → shared/Button/__snapshots__/Button.spec.tsx.snap} +0 -0
- /package/lib/components/{checkbox/commons/checkbox-option.scss → shared/Checkbox/CheckboxOption.scss} +0 -0
- /package/lib/components/{checkbox/commons → shared/Checkbox}/getShortcutKey.js +0 -0
- /package/lib/components/{commons/components/combo-box/combo-box.scss → shared/Combobox/Combobox.scss} +0 -0
- /package/lib/components/{commons/icons/icon-props.js → shared/Combobox/ComboboxType.js} +0 -0
- /package/lib/components/{commons/components/combo-box/keyboard-key-codes.js → shared/Combobox/constants.js} +0 -0
- /package/lib/components/{commons/components/errors/errors.scss → shared/ComponentErrors/ComponentErrors.scss} +0 -0
- /package/lib/components/{declarations/declarations.scss → shared/Declarations/Declarations.scss} +0 -0
- /package/lib/components/{commons/components/fieldset.scss → shared/Fieldset/Fieldset.scss} +0 -0
- /package/lib/components/{commons/icons → shared/Icons}/checkbox-checked-icon.js +0 -0
- /package/lib/components/{commons/icons → shared/Icons}/checkbox-unchecked-icon.js +0 -0
- /package/lib/components/{commons/icons → shared/Icons}/closed-icon.js +0 -0
- /package/lib/components/{commons/icons → shared/Icons}/cross-icon.js +0 -0
- /package/lib/components/{commons/icons → shared/Icons}/load-icon.js +0 -0
- /package/lib/components/{commons/icons → shared/Icons}/lunatic-icon.scss +0 -0
- /package/lib/components/{commons/icons → shared/Icons}/network-icon.js +0 -0
- /package/lib/components/{commons/icons → shared/Icons}/on-drag-icon.js +0 -0
- /package/lib/components/{commons/icons → shared/Icons}/opened-icon.js +0 -0
- /package/lib/components/{commons/icons → shared/Icons}/radio-checked-icon.js +0 -0
- /package/lib/components/{commons/icons → shared/Icons}/radio-unchecked-icon.js +0 -0
- /package/lib/components/{commons/components/label/label.scss → shared/Label/Label.scss} +0 -0
- /package/lib/components/{commons/components/missing/missing.scss → shared/Missing/Missing.scss} +0 -0
- /package/lib/components/{modal-controls/modal-controls.scss → shared/ModalControls/ModalControls.scss} +0 -0
- /package/lib/components/{radio/html/radio-group.scss → shared/Radio/RadioGroup.scss} +0 -0
- /package/lib/components/{commons/components/html-table/table.scss → shared/Table/Table.scss} +0 -0
- /package/lib/components/{commons/components/variable-status/img → shared/VariableStatus/icons}/edited.png +0 -0
- /package/lib/components/{commons/components/variable-status/img → shared/VariableStatus/icons}/forced.png +0 -0
- /package/lib/components/{commons/components → shared/suggester-loader-widget}/dragger/dragger.scss +0 -0
- /package/lib/components/{commons/components → shared/suggester-loader-widget}/dragger/dragger.spec.js +0 -0
- /package/lib/components/{commons/components → shared/suggester-loader-widget}/dragger/index.js +0 -0
- /package/lib/components/{suggester-loader-widget → shared/suggester-loader-widget}/index.js +0 -0
- /package/lib/components/{commons/components → shared/suggester-loader-widget}/is-network/index.js +0 -0
- /package/lib/components/{commons/components → shared/suggester-loader-widget}/is-network/is-network.spec.js +0 -0
- /package/lib/components/{commons/components → shared/suggester-loader-widget}/is-network/use-online-status.js +0 -0
- /package/lib/components/{commons/components → shared/suggester-loader-widget}/is-network/use-online-status.spec.js +0 -0
- /package/lib/components/{suggester-loader-widget → shared/suggester-loader-widget}/progress.js +0 -0
- /package/lib/components/{suggester-loader-widget → shared/suggester-loader-widget}/tools/action-tool.js +0 -0
- /package/lib/components/{suggester-loader-widget → shared/suggester-loader-widget}/tools/index.js +0 -0
- /package/lib/components/{suggester-loader-widget → shared/suggester-loader-widget}/tools/tools.js +0 -0
- /package/lib/components/{suggester-loader-widget → shared/suggester-loader-widget}/widget-container.js +0 -0
- /package/lib/components/{suggester-loader-widget → shared/suggester-loader-widget}/widget.scss +0 -0
- /package/lib/src/components/{button/lunatic-button.spec.d.ts → CheckboxBoolean/CheckboxBoolean.spec.d.ts} +0 -0
- /package/lib/src/components/{checkbox/checkbox-boolean/html/checkbox-boolean.spec.d.ts → CheckboxGroup/CustomCheckboxGroup.spec.d.ts} +0 -0
- /package/lib/src/components/{checkbox/checkbox-group/html/checkbox-group-content.spec.d.ts → CheckboxOne/CheckboxOne.spec.d.ts} +0 -0
- /package/lib/src/components/{checkbox/checkbox-one/html/checkbox-one.spec.d.ts → Datepicker/Datepicker.spec.d.ts} +0 -0
- /package/lib/src/components/{datepicker/html → Datepicker}/DatepickerField.d.ts +0 -0
- /package/lib/src/components/{checkbox/commons/checkbox-option.spec.d.ts → Dropdown/Dropdown.spec.d.ts} +0 -0
- /package/lib/src/components/{duration → Duration}/durationUtils.d.ts +0 -0
- /package/lib/src/components/{duration → Duration}/formatDuration.d.ts +0 -0
- /package/lib/src/components/{duration → Duration}/formatDuration.spec.d.ts +0 -0
- /package/lib/src/components/{duration → Duration}/getDurationFromValue.d.ts +0 -0
- /package/lib/src/components/{commons/components/combo-box/combo-box-container.spec.d.ts → FilterDescription/FilterDescription.spec.d.ts} +0 -0
- /package/lib/src/components/{commons/components/combo-box/panel/combo-box-option.spec.d.ts → Input/Input.spec.d.ts} +0 -0
- /package/lib/src/components/{commons/components/combo-box/panel/option-container.spec.d.ts → InputNumber/InputNumber.spec.d.ts} +0 -0
- /package/lib/src/components/{loop → Loop}/constant.d.ts +0 -0
- /package/lib/src/components/{pairwise-links/pairwise-links.d.ts → PairwiseLinks/PairwiseLinks.d.ts} +0 -0
- /package/lib/src/components/{commons/components/combo-box/panel/panel-container.spec.d.ts → RosterForLoop/RosterForLoop.spec.d.ts} +0 -0
- /package/lib/src/components/{commons/components/combo-box/panel/panel.spec.d.ts → Roundabout/RoundaboutItButton.spec.d.ts} +0 -0
- /package/lib/src/components/{roundabout → Roundabout}/redirect.spec.d.ts +0 -0
- /package/lib/src/components/{roundabout → Roundabout}/roundabout.spec.d.ts +0 -0
- /package/lib/src/components/{commons/components/combo-box/selection/LabelOrInput.spec.d.ts → Subsequence/Subsequence.spec.d.ts} +0 -0
- /package/lib/src/components/{commons/components/combo-box/selection/clear-button.spec.d.ts → Textarea/Textarea.spec.d.ts} +0 -0
- /package/lib/src/components/{commons/components/combo-box/selection/combo-box-label-selection.spec.d.ts → shared/Button/Button.spec.d.ts} +0 -0
- /package/lib/src/components/{commons/components/combo-box/selection/label-selection.spec.d.ts → shared/Button/IconButton.spec.d.ts} +0 -0
- /package/lib/src/components/{commons/components/combo-box/selection/selection-container.spec.d.ts → shared/Checkbox/CheckboxOption.spec.d.ts} +0 -0
- /package/lib/src/components/{checkbox/commons → shared/Checkbox}/getShortcutKey.d.ts +0 -0
- /package/lib/src/components/{commons/components/combo-box/selection/selection.spec.d.ts → shared/Combobox/ComboboxContainer.spec.d.ts} +0 -0
- /package/lib/src/components/{commons/components/description.spec.d.ts → shared/Combobox/Panel/ComboboxOption.spec.d.ts} +0 -0
- /package/lib/src/components/{commons/components/dragger/dragger.spec.d.ts → shared/Combobox/Panel/ComboboxOptionContainer.spec.d.ts} +0 -0
- /package/lib/src/components/{commons/components/errors/errors.spec.d.ts → shared/Combobox/Panel/ComboboxPanel.spec.d.ts} +0 -0
- /package/lib/src/components/{commons/components/fab/fab.spec.d.ts → shared/Combobox/Panel/ComboboxPanelContainer.spec.d.ts} +0 -0
- /package/lib/src/components/{commons/components/field-container/filed-container.spec.d.ts → shared/Combobox/Selection/ComboboxClearButton.spec.d.ts} +0 -0
- /package/lib/src/components/{commons/components/fieldset.spec.d.ts → shared/Combobox/Selection/ComboboxLabelSelection.spec.d.ts} +0 -0
- /package/lib/src/components/{commons/components/html-table/table.spec.d.ts → shared/Combobox/Selection/ComboboxSelection.spec.d.ts} +0 -0
- /package/lib/src/components/{commons/components/combo-box/keyboard-key-codes.d.ts → shared/Combobox/constants.d.ts} +0 -0
- /package/lib/src/components/{commons/components/html-table/tbody.spec.d.ts → shared/ComponentErrors/ComponentErrors.spec.d.ts} +0 -0
- /package/lib/src/components/{commons/components/html-table/td.spec.d.ts → shared/Declarations/Declarations.spec.d.ts} +0 -0
- /package/lib/src/components/{commons/components/html-table/th.spec.d.ts → shared/Fieldset/Fieldset.spec.d.ts} +0 -0
- /package/lib/src/components/{commons/icons → shared/Icons}/checkbox-checked-icon.d.ts +0 -0
- /package/lib/src/components/{commons/icons → shared/Icons}/checkbox-unchecked-icon.d.ts +0 -0
- /package/lib/src/components/{commons/icons → shared/Icons}/closed-icon.d.ts +0 -0
- /package/lib/src/components/{commons/icons → shared/Icons}/cross-icon.d.ts +0 -0
- /package/lib/src/components/{commons/icons → shared/Icons}/icon-props.d.ts +0 -0
- /package/lib/src/components/{commons/icons → shared/Icons}/load-icon.d.ts +0 -0
- /package/lib/src/components/{commons/icons → shared/Icons}/network-icon.d.ts +0 -0
- /package/lib/src/components/{commons/icons → shared/Icons}/on-drag-icon.d.ts +0 -0
- /package/lib/src/components/{commons/icons → shared/Icons}/opened-icon.d.ts +0 -0
- /package/lib/src/components/{commons/icons → shared/Icons}/radio-checked-icon.d.ts +0 -0
- /package/lib/src/components/{commons/icons → shared/Icons}/radio-unchecked-icon.d.ts +0 -0
- /package/lib/src/components/{commons/components/html-table/thead.spec.d.ts → shared/Label/Label.spec.d.ts} +0 -0
- /package/lib/src/components/{commons/components/html-table/tr.spec.d.ts → shared/MDLabel/MDLabel.spec.d.ts} +0 -0
- /package/lib/src/components/{commons/components/is-network/is-network.spec.d.ts → shared/Missing/Missing.spec.d.ts} +0 -0
- /package/lib/src/components/{commons/components/is-network/use-online-status.spec.d.ts → shared/ModalControls/ModalControls.spec.d.ts} +0 -0
- /package/lib/src/components/{commons/components/label/label.spec.d.ts → shared/Radio/RadioOption.spec.d.ts} +0 -0
- /package/lib/src/components/{commons/components/md-label/md-label.spec.d.ts → shared/Table/Table.spec.d.ts} +0 -0
- /package/lib/src/components/{commons/components/missing/missing.spec.d.ts → shared/Table/Tbody.spec.d.ts} +0 -0
- /package/lib/src/components/{commons/components/nothing-to-display.spec.d.ts → shared/Table/Td.spec.d.ts} +0 -0
- /package/lib/src/components/{commons/components/variable-status/variable-status.spec.d.ts → shared/Table/Th.spec.d.ts} +0 -0
- /package/lib/src/components/{commons/use-on-handle-change.spec.d.ts → shared/Table/Thead.spec.d.ts} +0 -0
- /package/lib/src/components/{component-set/html/component-set.spec.d.ts → shared/Table/Tr.spec.d.ts} +0 -0
- /package/lib/src/components/{datepicker/html/datepicker.spec.d.ts → shared/VariableStatus/VariableStatus.spec.d.ts} +0 -0
- /package/lib/src/components/{declarations/declaration.spec.d.ts → shared/suggester-loader-widget/dragger/dragger.spec.d.ts} +0 -0
- /package/lib/src/components/{commons/components → shared/suggester-loader-widget}/dragger/index.d.ts +0 -0
- /package/lib/src/components/{suggester-loader-widget → shared/suggester-loader-widget}/index.d.ts +0 -0
- /package/lib/src/components/{commons/components → shared/suggester-loader-widget}/is-network/index.d.ts +0 -0
- /package/lib/src/components/{commons/components → shared/suggester-loader-widget}/is-network/is-network.d.ts +0 -0
- /package/lib/src/components/{declarations/declarations.spec.d.ts → shared/suggester-loader-widget/is-network/is-network.spec.d.ts} +0 -0
- /package/lib/src/components/{commons/components → shared/suggester-loader-widget}/is-network/use-online-status.d.ts +0 -0
- /package/lib/src/components/{dropdown/html/dropdown-writable/filter-tools/filter-options.spec.d.ts → shared/suggester-loader-widget/is-network/use-online-status.spec.d.ts} +0 -0
- /package/lib/src/components/{suggester-loader-widget → shared/suggester-loader-widget}/progress.d.ts +0 -0
- /package/lib/src/components/{suggester-loader-widget → shared/suggester-loader-widget}/tools/action-tool.d.ts +0 -0
- /package/lib/src/components/{suggester-loader-widget → shared/suggester-loader-widget}/tools/index.d.ts +0 -0
- /package/lib/src/components/{suggester-loader-widget → shared/suggester-loader-widget}/tools/tools.d.ts +0 -0
- /package/lib/src/components/{suggester-loader-widget → shared/suggester-loader-widget}/widget-container.d.ts +0 -0
|
@@ -10,7 +10,7 @@ var _pageTag = require("../commons/page-tag");
|
|
|
10
10
|
var _overviewOnInit = require("./overview/overview-on-init");
|
|
11
11
|
var _lunaticVariablesStore = require("../commons/variables/lunatic-variables-store");
|
|
12
12
|
var _constants = require("../../utils/constants");
|
|
13
|
-
var
|
|
13
|
+
var _MDLabel = require("../../components/shared/MDLabel/MDLabel");
|
|
14
14
|
var _vtl = require("../../utils/vtl");
|
|
15
15
|
var _number = require("../../utils/number");
|
|
16
16
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
@@ -105,7 +105,7 @@ function reduceOnInit(state, action) {
|
|
|
105
105
|
iteration: typeof args.iteration === 'number' ? [args.iteration] : args.iteration
|
|
106
106
|
}));
|
|
107
107
|
if (features.includes(_constants.MD) && expressionType.includes(_constants.MD) && typeof result === 'string') {
|
|
108
|
-
return /*#__PURE__*/(0, _jsxRuntime.jsx)(
|
|
108
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_MDLabel.MDLabel, {
|
|
109
109
|
expression: result
|
|
110
110
|
});
|
|
111
111
|
}
|
|
@@ -11,8 +11,8 @@ function _iterableToArray(iter) { if (typeof Symbol !== "undefined" && iter[Symb
|
|
|
11
11
|
function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToArray(arr); }
|
|
12
12
|
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
|
|
13
13
|
/**
|
|
14
|
-
* Pour le
|
|
15
|
-
* Ils échappent donc aux controls. On les substitue ici au
|
|
14
|
+
* Pour le Question : les composants du fieldset n'existe pas dans pages.
|
|
15
|
+
* Ils échappent donc aux controls. On les substitue ici au Question.
|
|
16
16
|
* On ne peut pas les ajouter directement dans pages (en spécifiant un page), car ils s'afficheraient 2 fois : dans le fieldset et en dessus, comme
|
|
17
17
|
* des composant à part entière.
|
|
18
18
|
* D'autres composant pourraient un jour figurer ici.
|
|
@@ -22,7 +22,6 @@ function replaceComponentSequence(components) {
|
|
|
22
22
|
var componentType = component.componentType;
|
|
23
23
|
switch (componentType) {
|
|
24
24
|
case 'Question':
|
|
25
|
-
case 'ComponentSet':
|
|
26
25
|
return [].concat(_toConsumableArray(acc), _toConsumableArray(component.components));
|
|
27
26
|
default:
|
|
28
27
|
return [].concat(_toConsumableArray(acc), [component]);
|
|
@@ -65,8 +65,6 @@ function useLunatic(source) {
|
|
|
65
65
|
_ref$activeControls = _ref.activeControls,
|
|
66
66
|
activeControls = _ref$activeControls === void 0 ? false : _ref$activeControls,
|
|
67
67
|
getReferentiel = _ref.getReferentiel,
|
|
68
|
-
_ref$custom = _ref.custom,
|
|
69
|
-
custom = _ref$custom === void 0 ? empty : _ref$custom,
|
|
70
68
|
_ref$withOverview = _ref.withOverview,
|
|
71
69
|
withOverview = _ref$withOverview === void 0 ? false : _ref$withOverview,
|
|
72
70
|
_ref$missing = _ref.missing,
|
|
@@ -99,7 +97,6 @@ function useLunatic(source) {
|
|
|
99
97
|
// Required context provider: cleaner than prop drilling through every component
|
|
100
98
|
var Provider = (0, _react.useMemo)(function () {
|
|
101
99
|
return (0, _lunaticContext.createLunaticProvider)({
|
|
102
|
-
custom: custom,
|
|
103
100
|
management: management,
|
|
104
101
|
missing: missing,
|
|
105
102
|
missingStrategy: missingStrategy,
|
|
@@ -108,7 +105,7 @@ function useLunatic(source) {
|
|
|
108
105
|
dontKnowButton: dontKnowButton,
|
|
109
106
|
refusedButton: refusedButton
|
|
110
107
|
});
|
|
111
|
-
}, [
|
|
108
|
+
}, [management, missing, missingStrategy, shortcut, missingShortcut, dontKnowButton, refusedButton]);
|
|
112
109
|
var getSuggesterStatus = (0, _useSuggesters.useSuggesters)({
|
|
113
110
|
auto: autoSuggesterLoading,
|
|
114
111
|
getReferentiel: getReferentiel,
|
|
@@ -6,7 +6,6 @@ var _useLunatic = _interopRequireDefault(require("./use-lunatic"));
|
|
|
6
6
|
var _source = _interopRequireDefault(require("../stories/overview/source.json"));
|
|
7
7
|
var _source2 = _interopRequireDefault(require("../stories/questionnaires/logement/source.json"));
|
|
8
8
|
var _source3 = _interopRequireDefault(require("../stories/questionnaires2023/simpsons/source.json"));
|
|
9
|
-
var _source4 = _interopRequireDefault(require("../stories/component-set/source.json"));
|
|
10
9
|
var _sourceLoop = _interopRequireDefault(require("../stories/behaviour/cleaning/source-loop.json"));
|
|
11
10
|
var _sourceResizingCleaning = _interopRequireDefault(require("../stories/behaviour/resizing/source-resizing-cleaning.json"));
|
|
12
11
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
@@ -203,6 +202,7 @@ var dataFromObject = function dataFromObject(o) {
|
|
|
203
202
|
});
|
|
204
203
|
(0, _vitest.describe)('resizing', function () {
|
|
205
204
|
(0, _vitest.it)('should resize after cleaning', function () {
|
|
205
|
+
var _result$current$getDa, _result$current$getDa2;
|
|
206
206
|
var spy = _vitest.vi.fn();
|
|
207
207
|
var _renderHook11 = (0, _reactHooks.renderHook)(function () {
|
|
208
208
|
return (0, _useLunatic["default"])(_sourceResizingCleaning["default"], undefined, {
|
|
@@ -213,45 +213,20 @@ var dataFromObject = function dataFromObject(o) {
|
|
|
213
213
|
result.current.onChange({
|
|
214
214
|
name: 'NB'
|
|
215
215
|
}, 3);
|
|
216
|
-
(0, _vitest.expect)(result.current.getData(true).COLLECTED.PRENOMS.COLLECTED).toEqual([null, null, null]);
|
|
216
|
+
(0, _vitest.expect)(((_result$current$getDa = result.current.getData(true).COLLECTED) === null || _result$current$getDa === void 0 ? void 0 : _result$current$getDa.PRENOMS).COLLECTED).toEqual([null, null, null]);
|
|
217
217
|
result.current.onChange({
|
|
218
218
|
name: 'NB'
|
|
219
219
|
}, 2);
|
|
220
|
-
(0, _vitest.expect)(result.current.getData(true).COLLECTED.PRENOMS.COLLECTED).toEqual([null, null]);
|
|
221
|
-
});
|
|
222
|
-
});
|
|
223
|
-
(0, _vitest.describe)('getComponents()', function () {
|
|
224
|
-
(0, _vitest.describe)('componentSet', function () {
|
|
225
|
-
var _renderHook12 = (0, _reactHooks.renderHook)(function () {
|
|
226
|
-
return (0, _useLunatic["default"])(_source4["default"], undefined, {});
|
|
227
|
-
}),
|
|
228
|
-
result = _renderHook12.result;
|
|
229
|
-
var getComponents = function getComponents() {
|
|
230
|
-
return result.current.getComponents();
|
|
231
|
-
};
|
|
232
|
-
(0, _vitest.it)('should fill child components', function () {
|
|
233
|
-
var _components$0$compone;
|
|
234
|
-
var components = getComponents();
|
|
235
|
-
(0, _vitest.expect)(components).toHaveLength(1);
|
|
236
|
-
(0, _vitest.expect)((_components$0$compone = components[0].components) !== null && _components$0$compone !== void 0 ? _components$0$compone : []).toHaveLength(2);
|
|
237
|
-
});
|
|
238
|
-
(0, _vitest.it)('should use conditionFilter on nested components', function () {
|
|
239
|
-
(0, _reactHooks.act)(function () {
|
|
240
|
-
return result.current.onChange({
|
|
241
|
-
name: 'PRENOM'
|
|
242
|
-
}, 'Jane');
|
|
243
|
-
});
|
|
244
|
-
(0, _vitest.expect)(getComponents()[0].components).toHaveLength(3);
|
|
245
|
-
});
|
|
220
|
+
(0, _vitest.expect)(((_result$current$getDa2 = result.current.getData(true).COLLECTED) === null || _result$current$getDa2 === void 0 ? void 0 : _result$current$getDa2.PRENOMS).COLLECTED).toEqual([null, null]);
|
|
246
221
|
});
|
|
247
222
|
});
|
|
248
223
|
(0, _vitest.describe)('getData()', function () {
|
|
249
224
|
var hookRef;
|
|
250
225
|
(0, _vitest.beforeEach)(function () {
|
|
251
|
-
var
|
|
226
|
+
var _renderHook12 = (0, _reactHooks.renderHook)(function () {
|
|
252
227
|
return (0, _useLunatic["default"])(_source3["default"], undefined, {});
|
|
253
228
|
}),
|
|
254
|
-
result =
|
|
229
|
+
result = _renderHook12.result;
|
|
255
230
|
(0, _reactHooks.act)(function () {
|
|
256
231
|
result.current.onChange({
|
|
257
232
|
name: 'COMMENT'
|
|
@@ -274,13 +249,13 @@ var dataFromObject = function dataFromObject(o) {
|
|
|
274
249
|
}
|
|
275
250
|
}
|
|
276
251
|
});
|
|
277
|
-
(0, _vitest.expect)(Object.keys(data.COLLECTED)).toHaveLength(109);
|
|
278
|
-
(0, _vitest.expect)(Object.keys(data.CALCULATED)).toHaveLength(0);
|
|
252
|
+
(0, _vitest.expect)(data.COLLECTED && Object.keys(data.COLLECTED)).toHaveLength(109);
|
|
253
|
+
(0, _vitest.expect)(data.CALCULATED && Object.keys(data === null || data === void 0 ? void 0 : data.CALCULATED)).toHaveLength(0);
|
|
279
254
|
});
|
|
280
255
|
(0, _vitest.it)('should return calculated values', function () {
|
|
281
256
|
var data = hookRef.current.getData(true);
|
|
282
|
-
(0, _vitest.expect)(Object.keys(data.COLLECTED)).toHaveLength(109);
|
|
283
|
-
(0, _vitest.expect)(Object.keys(data.CALCULATED)).toHaveLength(33);
|
|
257
|
+
(0, _vitest.expect)(data.COLLECTED && Object.keys(data.COLLECTED)).toHaveLength(109);
|
|
258
|
+
(0, _vitest.expect)(data.CALCULATED && Object.keys(data === null || data === void 0 ? void 0 : data.CALCULATED)).toHaveLength(33);
|
|
284
259
|
});
|
|
285
260
|
(0, _vitest.it)('should only return requested variables', function () {
|
|
286
261
|
var data = hookRef.current.getData(false, ['COMMENT']);
|
|
@@ -291,18 +266,18 @@ var dataFromObject = function dataFromObject(o) {
|
|
|
291
266
|
}
|
|
292
267
|
}
|
|
293
268
|
});
|
|
294
|
-
(0, _vitest.expect)(Object.keys(data.COLLECTED)).toHaveLength(1);
|
|
269
|
+
(0, _vitest.expect)(data.COLLECTED && Object.keys(data.COLLECTED)).toHaveLength(1);
|
|
295
270
|
});
|
|
296
271
|
});
|
|
297
272
|
(0, _vitest.describe)('getChangedData()', function () {
|
|
298
273
|
var hookRef;
|
|
299
274
|
(0, _vitest.beforeEach)(function () {
|
|
300
|
-
var
|
|
275
|
+
var _renderHook13 = (0, _reactHooks.renderHook)(function () {
|
|
301
276
|
return (0, _useLunatic["default"])(_source3["default"], undefined, {
|
|
302
277
|
trackChanges: true
|
|
303
278
|
});
|
|
304
279
|
}),
|
|
305
|
-
result =
|
|
280
|
+
result = _renderHook13.result;
|
|
306
281
|
hookRef = result;
|
|
307
282
|
});
|
|
308
283
|
(0, _vitest.it)('should return every value', function () {
|
|
@@ -4,7 +4,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports["default"] = void 0;
|
|
7
|
-
var
|
|
7
|
+
var _indexedDBStore = require("../../constants/indexedDBStore");
|
|
8
8
|
var _createDbOpener = _interopRequireDefault(require("./create-db-opener"));
|
|
9
9
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
10
10
|
/* eslint-disable no-restricted-globals */
|
|
@@ -15,13 +15,13 @@ function onUpgradeNeeded(e, resolve, reject) {
|
|
|
15
15
|
// Block success event!
|
|
16
16
|
};
|
|
17
17
|
var db = e.target.result;
|
|
18
|
-
var store = db.createObjectStore(
|
|
18
|
+
var store = db.createObjectStore(_indexedDBStore.STORE_DATA_NAME, {
|
|
19
19
|
keyPath: 'id'
|
|
20
20
|
});
|
|
21
|
-
db.createObjectStore(
|
|
21
|
+
db.createObjectStore(_indexedDBStore.STORE_INFO_NAME, {
|
|
22
22
|
keyPath: 'name'
|
|
23
23
|
});
|
|
24
|
-
store.createIndex(
|
|
24
|
+
store.createIndex(_indexedDBStore.STORE_INDEX_NAME, 'tokens', {
|
|
25
25
|
multiEntry: true
|
|
26
26
|
});
|
|
27
27
|
var txn = e.target.transaction;
|
|
@@ -5,7 +5,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
});
|
|
6
6
|
exports["default"] = void 0;
|
|
7
7
|
var _idbTools = require("../idb-tools");
|
|
8
|
-
var
|
|
8
|
+
var _indexedDBStore = _interopRequireDefault(require("../../constants/indexedDBStore"));
|
|
9
9
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
10
10
|
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
|
11
11
|
function _regeneratorRuntime() { "use strict"; /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */ _regeneratorRuntime = function _regeneratorRuntime() { return e; }; var t, e = {}, r = Object.prototype, n = r.hasOwnProperty, o = Object.defineProperty || function (t, e, r) { t[e] = r.value; }, i = "function" == typeof Symbol ? Symbol : {}, a = i.iterator || "@@iterator", c = i.asyncIterator || "@@asyncIterator", u = i.toStringTag || "@@toStringTag"; function define(t, e, r) { return Object.defineProperty(t, e, { value: r, enumerable: !0, configurable: !0, writable: !0 }), t[e]; } try { define({}, ""); } catch (t) { define = function define(t, e, r) { return t[e] = r; }; } function wrap(t, e, r, n) { var i = e && e.prototype instanceof Generator ? e : Generator, a = Object.create(i.prototype), c = new Context(n || []); return o(a, "_invoke", { value: makeInvokeMethod(t, r, c) }), a; } function tryCatch(t, e, r) { try { return { type: "normal", arg: t.call(e, r) }; } catch (t) { return { type: "throw", arg: t }; } } e.wrap = wrap; var h = "suspendedStart", l = "suspendedYield", f = "executing", s = "completed", y = {}; function Generator() {} function GeneratorFunction() {} function GeneratorFunctionPrototype() {} var p = {}; define(p, a, function () { return this; }); var d = Object.getPrototypeOf, v = d && d(d(values([]))); v && v !== r && n.call(v, a) && (p = v); var g = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(p); function defineIteratorMethods(t) { ["next", "throw", "return"].forEach(function (e) { define(t, e, function (t) { return this._invoke(e, t); }); }); } function AsyncIterator(t, e) { function invoke(r, o, i, a) { var c = tryCatch(t[r], t, o); if ("throw" !== c.type) { var u = c.arg, h = u.value; return h && "object" == _typeof(h) && n.call(h, "__await") ? e.resolve(h.__await).then(function (t) { invoke("next", t, i, a); }, function (t) { invoke("throw", t, i, a); }) : e.resolve(h).then(function (t) { u.value = t, i(u); }, function (t) { return invoke("throw", t, i, a); }); } a(c.arg); } var r; o(this, "_invoke", { value: function value(t, n) { function callInvokeWithMethodAndArg() { return new e(function (e, r) { invoke(t, n, e, r); }); } return r = r ? r.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg(); } }); } function makeInvokeMethod(e, r, n) { var o = h; return function (i, a) { if (o === f) throw new Error("Generator is already running"); if (o === s) { if ("throw" === i) throw a; return { value: t, done: !0 }; } for (n.method = i, n.arg = a;;) { var c = n.delegate; if (c) { var u = maybeInvokeDelegate(c, n); if (u) { if (u === y) continue; return u; } } if ("next" === n.method) n.sent = n._sent = n.arg;else if ("throw" === n.method) { if (o === h) throw o = s, n.arg; n.dispatchException(n.arg); } else "return" === n.method && n.abrupt("return", n.arg); o = f; var p = tryCatch(e, r, n); if ("normal" === p.type) { if (o = n.done ? s : l, p.arg === y) continue; return { value: p.arg, done: n.done }; } "throw" === p.type && (o = s, n.method = "throw", n.arg = p.arg); } }; } function maybeInvokeDelegate(e, r) { var n = r.method, o = e.iterator[n]; if (o === t) return r.delegate = null, "throw" === n && e.iterator["return"] && (r.method = "return", r.arg = t, maybeInvokeDelegate(e, r), "throw" === r.method) || "return" !== n && (r.method = "throw", r.arg = new TypeError("The iterator does not provide a '" + n + "' method")), y; var i = tryCatch(o, e.iterator, r.arg); if ("throw" === i.type) return r.method = "throw", r.arg = i.arg, r.delegate = null, y; var a = i.arg; return a ? a.done ? (r[e.resultName] = a.value, r.next = e.nextLoc, "return" !== r.method && (r.method = "next", r.arg = t), r.delegate = null, y) : a : (r.method = "throw", r.arg = new TypeError("iterator result is not an object"), r.delegate = null, y); } function pushTryEntry(t) { var e = { tryLoc: t[0] }; 1 in t && (e.catchLoc = t[1]), 2 in t && (e.finallyLoc = t[2], e.afterLoc = t[3]), this.tryEntries.push(e); } function resetTryEntry(t) { var e = t.completion || {}; e.type = "normal", delete e.arg, t.completion = e; } function Context(t) { this.tryEntries = [{ tryLoc: "root" }], t.forEach(pushTryEntry, this), this.reset(!0); } function values(e) { if (e || "" === e) { var r = e[a]; if (r) return r.call(e); if ("function" == typeof e.next) return e; if (!isNaN(e.length)) { var o = -1, i = function next() { for (; ++o < e.length;) if (n.call(e, o)) return next.value = e[o], next.done = !1, next; return next.value = t, next.done = !0, next; }; return i.next = i; } } throw new TypeError(_typeof(e) + " is not iterable"); } return GeneratorFunction.prototype = GeneratorFunctionPrototype, o(g, "constructor", { value: GeneratorFunctionPrototype, configurable: !0 }), o(GeneratorFunctionPrototype, "constructor", { value: GeneratorFunction, configurable: !0 }), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, u, "GeneratorFunction"), e.isGeneratorFunction = function (t) { var e = "function" == typeof t && t.constructor; return !!e && (e === GeneratorFunction || "GeneratorFunction" === (e.displayName || e.name)); }, e.mark = function (t) { return Object.setPrototypeOf ? Object.setPrototypeOf(t, GeneratorFunctionPrototype) : (t.__proto__ = GeneratorFunctionPrototype, define(t, u, "GeneratorFunction")), t.prototype = Object.create(g), t; }, e.awrap = function (t) { return { __await: t }; }, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, c, function () { return this; }), e.AsyncIterator = AsyncIterator, e.async = function (t, r, n, o, i) { void 0 === i && (i = Promise); var a = new AsyncIterator(wrap(t, r, n, o), i); return e.isGeneratorFunction(r) ? a : a.next().then(function (t) { return t.done ? t.value : a.next(); }); }, defineIteratorMethods(g), define(g, u, "Generator"), define(g, a, function () { return this; }), define(g, "toString", function () { return "[object Generator]"; }), e.keys = function (t) { var e = Object(t), r = []; for (var n in e) r.push(n); return r.reverse(), function next() { for (; r.length;) { var t = r.pop(); if (t in e) return next.value = t, next.done = !1, next; } return next.done = !0, next; }; }, e.values = values, Context.prototype = { constructor: Context, reset: function reset(e) { if (this.prev = 0, this.next = 0, this.sent = this._sent = t, this.done = !1, this.delegate = null, this.method = "next", this.arg = t, this.tryEntries.forEach(resetTryEntry), !e) for (var r in this) "t" === r.charAt(0) && n.call(this, r) && !isNaN(+r.slice(1)) && (this[r] = t); }, stop: function stop() { this.done = !0; var t = this.tryEntries[0].completion; if ("throw" === t.type) throw t.arg; return this.rval; }, dispatchException: function dispatchException(e) { if (this.done) throw e; var r = this; function handle(n, o) { return a.type = "throw", a.arg = e, r.next = n, o && (r.method = "next", r.arg = t), !!o; } for (var o = this.tryEntries.length - 1; o >= 0; --o) { var i = this.tryEntries[o], a = i.completion; if ("root" === i.tryLoc) return handle("end"); if (i.tryLoc <= this.prev) { var c = n.call(i, "catchLoc"), u = n.call(i, "finallyLoc"); if (c && u) { if (this.prev < i.catchLoc) return handle(i.catchLoc, !0); if (this.prev < i.finallyLoc) return handle(i.finallyLoc); } else if (c) { if (this.prev < i.catchLoc) return handle(i.catchLoc, !0); } else { if (!u) throw new Error("try statement without catch or finally"); if (this.prev < i.finallyLoc) return handle(i.finallyLoc); } } } }, abrupt: function abrupt(t, e) { for (var r = this.tryEntries.length - 1; r >= 0; --r) { var o = this.tryEntries[r]; if (o.tryLoc <= this.prev && n.call(o, "finallyLoc") && this.prev < o.finallyLoc) { var i = o; break; } } i && ("break" === t || "continue" === t) && i.tryLoc <= e && e <= i.finallyLoc && (i = null); var a = i ? i.completion : {}; return a.type = t, a.arg = e, i ? (this.method = "next", this.next = i.finallyLoc, y) : this.complete(a); }, complete: function complete(t, e) { if ("throw" === t.type) throw t.arg; return "break" === t.type || "continue" === t.type ? this.next = t.arg : "return" === t.type ? (this.rval = this.arg = t.arg, this.method = "return", this.next = "end") : "normal" === t.type && e && (this.next = e), y; }, finish: function finish(t) { for (var e = this.tryEntries.length - 1; e >= 0; --e) { var r = this.tryEntries[e]; if (r.finallyLoc === t) return this.complete(r.completion, r.afterLoc), resetTryEntry(r), y; } }, "catch": function _catch(t) { for (var e = this.tryEntries.length - 1; e >= 0; --e) { var r = this.tryEntries[e]; if (r.tryLoc === t) { var n = r.completion; if ("throw" === n.type) { var o = n.arg; resetTryEntry(r); } return o; } } throw new Error("illegal catch attempt"); }, delegateYield: function delegateYield(e, r, n) { return this.delegate = { iterator: values(e), resultName: r, nextLoc: n }, "next" === this.method && (this.arg = t), y; } }, e; }
|
|
@@ -20,7 +20,7 @@ function _clear() {
|
|
|
20
20
|
while (1) switch (_context.prev = _context.next) {
|
|
21
21
|
case 0:
|
|
22
22
|
_context.next = 2;
|
|
23
|
-
return (0, _idbTools.clearDb)(db,
|
|
23
|
+
return (0, _idbTools.clearDb)(db, _indexedDBStore["default"].STORE_DATA_NAME);
|
|
24
24
|
case 2:
|
|
25
25
|
case "end":
|
|
26
26
|
return _context.stop();
|
|
@@ -5,7 +5,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
});
|
|
6
6
|
exports["default"] = void 0;
|
|
7
7
|
var _idbTools = require("../idb-tools");
|
|
8
|
-
var
|
|
8
|
+
var _indexedDBStore = _interopRequireDefault(require("../../constants/indexedDBStore"));
|
|
9
9
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
10
10
|
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
|
11
11
|
function _regeneratorRuntime() { "use strict"; /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */ _regeneratorRuntime = function _regeneratorRuntime() { return e; }; var t, e = {}, r = Object.prototype, n = r.hasOwnProperty, o = Object.defineProperty || function (t, e, r) { t[e] = r.value; }, i = "function" == typeof Symbol ? Symbol : {}, a = i.iterator || "@@iterator", c = i.asyncIterator || "@@asyncIterator", u = i.toStringTag || "@@toStringTag"; function define(t, e, r) { return Object.defineProperty(t, e, { value: r, enumerable: !0, configurable: !0, writable: !0 }), t[e]; } try { define({}, ""); } catch (t) { define = function define(t, e, r) { return t[e] = r; }; } function wrap(t, e, r, n) { var i = e && e.prototype instanceof Generator ? e : Generator, a = Object.create(i.prototype), c = new Context(n || []); return o(a, "_invoke", { value: makeInvokeMethod(t, r, c) }), a; } function tryCatch(t, e, r) { try { return { type: "normal", arg: t.call(e, r) }; } catch (t) { return { type: "throw", arg: t }; } } e.wrap = wrap; var h = "suspendedStart", l = "suspendedYield", f = "executing", s = "completed", y = {}; function Generator() {} function GeneratorFunction() {} function GeneratorFunctionPrototype() {} var p = {}; define(p, a, function () { return this; }); var d = Object.getPrototypeOf, v = d && d(d(values([]))); v && v !== r && n.call(v, a) && (p = v); var g = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(p); function defineIteratorMethods(t) { ["next", "throw", "return"].forEach(function (e) { define(t, e, function (t) { return this._invoke(e, t); }); }); } function AsyncIterator(t, e) { function invoke(r, o, i, a) { var c = tryCatch(t[r], t, o); if ("throw" !== c.type) { var u = c.arg, h = u.value; return h && "object" == _typeof(h) && n.call(h, "__await") ? e.resolve(h.__await).then(function (t) { invoke("next", t, i, a); }, function (t) { invoke("throw", t, i, a); }) : e.resolve(h).then(function (t) { u.value = t, i(u); }, function (t) { return invoke("throw", t, i, a); }); } a(c.arg); } var r; o(this, "_invoke", { value: function value(t, n) { function callInvokeWithMethodAndArg() { return new e(function (e, r) { invoke(t, n, e, r); }); } return r = r ? r.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg(); } }); } function makeInvokeMethod(e, r, n) { var o = h; return function (i, a) { if (o === f) throw new Error("Generator is already running"); if (o === s) { if ("throw" === i) throw a; return { value: t, done: !0 }; } for (n.method = i, n.arg = a;;) { var c = n.delegate; if (c) { var u = maybeInvokeDelegate(c, n); if (u) { if (u === y) continue; return u; } } if ("next" === n.method) n.sent = n._sent = n.arg;else if ("throw" === n.method) { if (o === h) throw o = s, n.arg; n.dispatchException(n.arg); } else "return" === n.method && n.abrupt("return", n.arg); o = f; var p = tryCatch(e, r, n); if ("normal" === p.type) { if (o = n.done ? s : l, p.arg === y) continue; return { value: p.arg, done: n.done }; } "throw" === p.type && (o = s, n.method = "throw", n.arg = p.arg); } }; } function maybeInvokeDelegate(e, r) { var n = r.method, o = e.iterator[n]; if (o === t) return r.delegate = null, "throw" === n && e.iterator["return"] && (r.method = "return", r.arg = t, maybeInvokeDelegate(e, r), "throw" === r.method) || "return" !== n && (r.method = "throw", r.arg = new TypeError("The iterator does not provide a '" + n + "' method")), y; var i = tryCatch(o, e.iterator, r.arg); if ("throw" === i.type) return r.method = "throw", r.arg = i.arg, r.delegate = null, y; var a = i.arg; return a ? a.done ? (r[e.resultName] = a.value, r.next = e.nextLoc, "return" !== r.method && (r.method = "next", r.arg = t), r.delegate = null, y) : a : (r.method = "throw", r.arg = new TypeError("iterator result is not an object"), r.delegate = null, y); } function pushTryEntry(t) { var e = { tryLoc: t[0] }; 1 in t && (e.catchLoc = t[1]), 2 in t && (e.finallyLoc = t[2], e.afterLoc = t[3]), this.tryEntries.push(e); } function resetTryEntry(t) { var e = t.completion || {}; e.type = "normal", delete e.arg, t.completion = e; } function Context(t) { this.tryEntries = [{ tryLoc: "root" }], t.forEach(pushTryEntry, this), this.reset(!0); } function values(e) { if (e || "" === e) { var r = e[a]; if (r) return r.call(e); if ("function" == typeof e.next) return e; if (!isNaN(e.length)) { var o = -1, i = function next() { for (; ++o < e.length;) if (n.call(e, o)) return next.value = e[o], next.done = !1, next; return next.value = t, next.done = !0, next; }; return i.next = i; } } throw new TypeError(_typeof(e) + " is not iterable"); } return GeneratorFunction.prototype = GeneratorFunctionPrototype, o(g, "constructor", { value: GeneratorFunctionPrototype, configurable: !0 }), o(GeneratorFunctionPrototype, "constructor", { value: GeneratorFunction, configurable: !0 }), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, u, "GeneratorFunction"), e.isGeneratorFunction = function (t) { var e = "function" == typeof t && t.constructor; return !!e && (e === GeneratorFunction || "GeneratorFunction" === (e.displayName || e.name)); }, e.mark = function (t) { return Object.setPrototypeOf ? Object.setPrototypeOf(t, GeneratorFunctionPrototype) : (t.__proto__ = GeneratorFunctionPrototype, define(t, u, "GeneratorFunction")), t.prototype = Object.create(g), t; }, e.awrap = function (t) { return { __await: t }; }, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, c, function () { return this; }), e.AsyncIterator = AsyncIterator, e.async = function (t, r, n, o, i) { void 0 === i && (i = Promise); var a = new AsyncIterator(wrap(t, r, n, o), i); return e.isGeneratorFunction(r) ? a : a.next().then(function (t) { return t.done ? t.value : a.next(); }); }, defineIteratorMethods(g), define(g, u, "Generator"), define(g, a, function () { return this; }), define(g, "toString", function () { return "[object Generator]"; }), e.keys = function (t) { var e = Object(t), r = []; for (var n in e) r.push(n); return r.reverse(), function next() { for (; r.length;) { var t = r.pop(); if (t in e) return next.value = t, next.done = !1, next; } return next.done = !0, next; }; }, e.values = values, Context.prototype = { constructor: Context, reset: function reset(e) { if (this.prev = 0, this.next = 0, this.sent = this._sent = t, this.done = !1, this.delegate = null, this.method = "next", this.arg = t, this.tryEntries.forEach(resetTryEntry), !e) for (var r in this) "t" === r.charAt(0) && n.call(this, r) && !isNaN(+r.slice(1)) && (this[r] = t); }, stop: function stop() { this.done = !0; var t = this.tryEntries[0].completion; if ("throw" === t.type) throw t.arg; return this.rval; }, dispatchException: function dispatchException(e) { if (this.done) throw e; var r = this; function handle(n, o) { return a.type = "throw", a.arg = e, r.next = n, o && (r.method = "next", r.arg = t), !!o; } for (var o = this.tryEntries.length - 1; o >= 0; --o) { var i = this.tryEntries[o], a = i.completion; if ("root" === i.tryLoc) return handle("end"); if (i.tryLoc <= this.prev) { var c = n.call(i, "catchLoc"), u = n.call(i, "finallyLoc"); if (c && u) { if (this.prev < i.catchLoc) return handle(i.catchLoc, !0); if (this.prev < i.finallyLoc) return handle(i.finallyLoc); } else if (c) { if (this.prev < i.catchLoc) return handle(i.catchLoc, !0); } else { if (!u) throw new Error("try statement without catch or finally"); if (this.prev < i.finallyLoc) return handle(i.finallyLoc); } } } }, abrupt: function abrupt(t, e) { for (var r = this.tryEntries.length - 1; r >= 0; --r) { var o = this.tryEntries[r]; if (o.tryLoc <= this.prev && n.call(o, "finallyLoc") && this.prev < o.finallyLoc) { var i = o; break; } } i && ("break" === t || "continue" === t) && i.tryLoc <= e && e <= i.finallyLoc && (i = null); var a = i ? i.completion : {}; return a.type = t, a.arg = e, i ? (this.method = "next", this.next = i.finallyLoc, y) : this.complete(a); }, complete: function complete(t, e) { if ("throw" === t.type) throw t.arg; return "break" === t.type || "continue" === t.type ? this.next = t.arg : "return" === t.type ? (this.rval = this.arg = t.arg, this.method = "return", this.next = "end") : "normal" === t.type && e && (this.next = e), y; }, finish: function finish(t) { for (var e = this.tryEntries.length - 1; e >= 0; --e) { var r = this.tryEntries[e]; if (r.finallyLoc === t) return this.complete(r.completion, r.afterLoc), resetTryEntry(r), y; } }, "catch": function _catch(t) { for (var e = this.tryEntries.length - 1; e >= 0; --e) { var r = this.tryEntries[e]; if (r.tryLoc === t) { var n = r.completion; if ("throw" === n.type) { var o = n.arg; resetTryEntry(r); } return o; } } throw new Error("illegal catch attempt"); }, delegateYield: function delegateYield(e, r, n) { return this.delegate = { iterator: values(e), resultName: r, nextLoc: n }, "next" === this.method && (this.arg = t), y; } }, e; }
|
|
@@ -20,7 +20,7 @@ function _clear() {
|
|
|
20
20
|
while (1) switch (_context.prev = _context.next) {
|
|
21
21
|
case 0:
|
|
22
22
|
_context.next = 2;
|
|
23
|
-
return (0, _idbTools.clearDb)(db,
|
|
23
|
+
return (0, _idbTools.clearDb)(db, _indexedDBStore["default"].STORE_INFO_NAME);
|
|
24
24
|
case 2:
|
|
25
25
|
case "end":
|
|
26
26
|
return _context.stop();
|
|
@@ -5,7 +5,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
});
|
|
6
6
|
exports["default"] = void 0;
|
|
7
7
|
var _idbTools = require("../../idb-tools");
|
|
8
|
-
var
|
|
8
|
+
var _indexedDBStore = _interopRequireDefault(require("../../../constants/indexedDBStore"));
|
|
9
9
|
var _openOrCreateStore = _interopRequireDefault(require("../open-or-create-store"));
|
|
10
10
|
var _updateStoreInfo = _interopRequireDefault(require("./update-store-info"));
|
|
11
11
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
@@ -29,7 +29,7 @@ function _create() {
|
|
|
29
29
|
case 4:
|
|
30
30
|
db = _context.sent;
|
|
31
31
|
_context.next = 7;
|
|
32
|
-
return (0, _idbTools.clearDb)(db,
|
|
32
|
+
return (0, _idbTools.clearDb)(db, _indexedDBStore["default"].STORE_INFO_NAME);
|
|
33
33
|
case 7:
|
|
34
34
|
_context.next = 9;
|
|
35
35
|
return (0, _updateStoreInfo["default"])(db, storeInfo);
|
|
@@ -4,13 +4,13 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports["default"] = void 0;
|
|
7
|
-
var
|
|
7
|
+
var _indexedDBStore = _interopRequireDefault(require("../../../constants/indexedDBStore"));
|
|
8
8
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
9
9
|
function updateStoreInfo(db, storeInfo) {
|
|
10
10
|
return new Promise(function (resolve, reject) {
|
|
11
11
|
try {
|
|
12
|
-
var transaction = db.transaction(
|
|
13
|
-
var store = transaction.objectStore(
|
|
12
|
+
var transaction = db.transaction(_indexedDBStore["default"].STORE_INFO_NAME, 'readwrite');
|
|
13
|
+
var store = transaction.objectStore(_indexedDBStore["default"].STORE_INFO_NAME);
|
|
14
14
|
var request = store.add(storeInfo);
|
|
15
15
|
request.onsuccess = function () {
|
|
16
16
|
resolve('success');
|
|
@@ -4,13 +4,13 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports["default"] = void 0;
|
|
7
|
-
var
|
|
7
|
+
var _indexedDBStore = _interopRequireDefault(require("../../constants/indexedDBStore"));
|
|
8
8
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
9
9
|
function get(db) {
|
|
10
10
|
return new Promise(function (resolve, reject) {
|
|
11
11
|
try {
|
|
12
|
-
var transaction = db.transaction([
|
|
13
|
-
var store = transaction.objectStore(
|
|
12
|
+
var transaction = db.transaction([_indexedDBStore["default"].STORE_DATA_NAME], 'readonly');
|
|
13
|
+
var store = transaction.objectStore(_indexedDBStore["default"].STORE_DATA_NAME);
|
|
14
14
|
var countRequest = store.count();
|
|
15
15
|
countRequest.onsuccess = function () {
|
|
16
16
|
resolve(countRequest.result);
|
|
@@ -41,7 +41,7 @@ Object.defineProperty(exports, "useStoreIndex", {
|
|
|
41
41
|
return _useStoreIndex["default"];
|
|
42
42
|
}
|
|
43
43
|
});
|
|
44
|
-
var _CONSTANTES = _interopRequireWildcard(require("
|
|
44
|
+
var _CONSTANTES = _interopRequireWildcard(require("../../constants/indexedDBStore"));
|
|
45
45
|
exports.CONSTANTES = _CONSTANTES;
|
|
46
46
|
var _openOrCreateStore = _interopRequireDefault(require("./open-or-create-store"));
|
|
47
47
|
var _clearStoreData = _interopRequireDefault(require("./clear-store-data"));
|
|
@@ -4,7 +4,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.initStore = initStore;
|
|
7
|
-
var
|
|
7
|
+
var _indexedDBStore = _interopRequireDefault(require("../../constants/indexedDBStore"));
|
|
8
8
|
var _openOrCreateStore = _interopRequireDefault(require("./open-or-create-store"));
|
|
9
9
|
var _clearStore = _interopRequireDefault(require("../idb-tools/clear-store"));
|
|
10
10
|
var _insertEntity = _interopRequireDefault(require("../idb-tools/insert-entity"));
|
|
@@ -32,15 +32,15 @@ function _initStore() {
|
|
|
32
32
|
break;
|
|
33
33
|
}
|
|
34
34
|
_context.next = 7;
|
|
35
|
-
return (0, _clearStore["default"])(db,
|
|
35
|
+
return (0, _clearStore["default"])(db, _indexedDBStore["default"].STORE_DATA_NAME);
|
|
36
36
|
case 7:
|
|
37
37
|
a = _context.sent;
|
|
38
38
|
_context.next = 10;
|
|
39
|
-
return (0, _clearStore["default"])(db,
|
|
39
|
+
return (0, _clearStore["default"])(db, _indexedDBStore["default"].STORE_INFO_NAME);
|
|
40
40
|
case 10:
|
|
41
41
|
b = _context.sent;
|
|
42
42
|
_context.next = 13;
|
|
43
|
-
return (0, _insertEntity["default"])(db,
|
|
43
|
+
return (0, _insertEntity["default"])(db, _indexedDBStore["default"].STORE_INFO_NAME, storeInfo);
|
|
44
44
|
case 13:
|
|
45
45
|
c = _context.sent;
|
|
46
46
|
db.close();
|
|
@@ -4,8 +4,8 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports["default"] = void 0;
|
|
7
|
-
var _constantes = _interopRequireDefault(require("./constantes"));
|
|
8
7
|
var _getIdb = _interopRequireDefault(require("../idb-tools/get-idb"));
|
|
8
|
+
var _indexedDBStore = require("../../constants/indexedDBStore");
|
|
9
9
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
10
10
|
/* eslint-disable no-restricted-globals */
|
|
11
11
|
|
|
@@ -22,13 +22,13 @@ function openStorage(name) {
|
|
|
22
22
|
request.onupgradeneeded = function (e) {
|
|
23
23
|
doIt = false;
|
|
24
24
|
db = this.result;
|
|
25
|
-
var store = db.createObjectStore(
|
|
25
|
+
var store = db.createObjectStore(_indexedDBStore.STORE_DATA_NAME, {
|
|
26
26
|
keyPath: 'id'
|
|
27
27
|
});
|
|
28
|
-
db.createObjectStore(
|
|
28
|
+
db.createObjectStore(_indexedDBStore.STORE_INFO_NAME, {
|
|
29
29
|
keyPath: 'name'
|
|
30
30
|
});
|
|
31
|
-
store.createIndex(
|
|
31
|
+
store.createIndex(_indexedDBStore.STORE_INDEX_NAME, 'tokens', {
|
|
32
32
|
multiEntry: true
|
|
33
33
|
});
|
|
34
34
|
var txn = this.transaction;
|
|
@@ -4,10 +4,10 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports["default"] = void 0;
|
|
7
|
-
var _storeTools = require("../../store-tools");
|
|
8
7
|
var _idbTools = require("../../idb-tools");
|
|
9
8
|
var _storeMessages = _interopRequireDefault(require("./store-messages"));
|
|
10
9
|
var _prepareEntities = _interopRequireDefault(require("./prepare-entities"));
|
|
10
|
+
var _indexedDBStore = require("../../../constants/indexedDBStore");
|
|
11
11
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
12
12
|
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
|
13
13
|
function _regeneratorRuntime() { "use strict"; /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */ _regeneratorRuntime = function _regeneratorRuntime() { return e; }; var t, e = {}, r = Object.prototype, n = r.hasOwnProperty, o = Object.defineProperty || function (t, e, r) { t[e] = r.value; }, i = "function" == typeof Symbol ? Symbol : {}, a = i.iterator || "@@iterator", c = i.asyncIterator || "@@asyncIterator", u = i.toStringTag || "@@toStringTag"; function define(t, e, r) { return Object.defineProperty(t, e, { value: r, enumerable: !0, configurable: !0, writable: !0 }), t[e]; } try { define({}, ""); } catch (t) { define = function define(t, e, r) { return t[e] = r; }; } function wrap(t, e, r, n) { var i = e && e.prototype instanceof Generator ? e : Generator, a = Object.create(i.prototype), c = new Context(n || []); return o(a, "_invoke", { value: makeInvokeMethod(t, r, c) }), a; } function tryCatch(t, e, r) { try { return { type: "normal", arg: t.call(e, r) }; } catch (t) { return { type: "throw", arg: t }; } } e.wrap = wrap; var h = "suspendedStart", l = "suspendedYield", f = "executing", s = "completed", y = {}; function Generator() {} function GeneratorFunction() {} function GeneratorFunctionPrototype() {} var p = {}; define(p, a, function () { return this; }); var d = Object.getPrototypeOf, v = d && d(d(values([]))); v && v !== r && n.call(v, a) && (p = v); var g = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(p); function defineIteratorMethods(t) { ["next", "throw", "return"].forEach(function (e) { define(t, e, function (t) { return this._invoke(e, t); }); }); } function AsyncIterator(t, e) { function invoke(r, o, i, a) { var c = tryCatch(t[r], t, o); if ("throw" !== c.type) { var u = c.arg, h = u.value; return h && "object" == _typeof(h) && n.call(h, "__await") ? e.resolve(h.__await).then(function (t) { invoke("next", t, i, a); }, function (t) { invoke("throw", t, i, a); }) : e.resolve(h).then(function (t) { u.value = t, i(u); }, function (t) { return invoke("throw", t, i, a); }); } a(c.arg); } var r; o(this, "_invoke", { value: function value(t, n) { function callInvokeWithMethodAndArg() { return new e(function (e, r) { invoke(t, n, e, r); }); } return r = r ? r.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg(); } }); } function makeInvokeMethod(e, r, n) { var o = h; return function (i, a) { if (o === f) throw new Error("Generator is already running"); if (o === s) { if ("throw" === i) throw a; return { value: t, done: !0 }; } for (n.method = i, n.arg = a;;) { var c = n.delegate; if (c) { var u = maybeInvokeDelegate(c, n); if (u) { if (u === y) continue; return u; } } if ("next" === n.method) n.sent = n._sent = n.arg;else if ("throw" === n.method) { if (o === h) throw o = s, n.arg; n.dispatchException(n.arg); } else "return" === n.method && n.abrupt("return", n.arg); o = f; var p = tryCatch(e, r, n); if ("normal" === p.type) { if (o = n.done ? s : l, p.arg === y) continue; return { value: p.arg, done: n.done }; } "throw" === p.type && (o = s, n.method = "throw", n.arg = p.arg); } }; } function maybeInvokeDelegate(e, r) { var n = r.method, o = e.iterator[n]; if (o === t) return r.delegate = null, "throw" === n && e.iterator["return"] && (r.method = "return", r.arg = t, maybeInvokeDelegate(e, r), "throw" === r.method) || "return" !== n && (r.method = "throw", r.arg = new TypeError("The iterator does not provide a '" + n + "' method")), y; var i = tryCatch(o, e.iterator, r.arg); if ("throw" === i.type) return r.method = "throw", r.arg = i.arg, r.delegate = null, y; var a = i.arg; return a ? a.done ? (r[e.resultName] = a.value, r.next = e.nextLoc, "return" !== r.method && (r.method = "next", r.arg = t), r.delegate = null, y) : a : (r.method = "throw", r.arg = new TypeError("iterator result is not an object"), r.delegate = null, y); } function pushTryEntry(t) { var e = { tryLoc: t[0] }; 1 in t && (e.catchLoc = t[1]), 2 in t && (e.finallyLoc = t[2], e.afterLoc = t[3]), this.tryEntries.push(e); } function resetTryEntry(t) { var e = t.completion || {}; e.type = "normal", delete e.arg, t.completion = e; } function Context(t) { this.tryEntries = [{ tryLoc: "root" }], t.forEach(pushTryEntry, this), this.reset(!0); } function values(e) { if (e || "" === e) { var r = e[a]; if (r) return r.call(e); if ("function" == typeof e.next) return e; if (!isNaN(e.length)) { var o = -1, i = function next() { for (; ++o < e.length;) if (n.call(e, o)) return next.value = e[o], next.done = !1, next; return next.value = t, next.done = !0, next; }; return i.next = i; } } throw new TypeError(_typeof(e) + " is not iterable"); } return GeneratorFunction.prototype = GeneratorFunctionPrototype, o(g, "constructor", { value: GeneratorFunctionPrototype, configurable: !0 }), o(GeneratorFunctionPrototype, "constructor", { value: GeneratorFunction, configurable: !0 }), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, u, "GeneratorFunction"), e.isGeneratorFunction = function (t) { var e = "function" == typeof t && t.constructor; return !!e && (e === GeneratorFunction || "GeneratorFunction" === (e.displayName || e.name)); }, e.mark = function (t) { return Object.setPrototypeOf ? Object.setPrototypeOf(t, GeneratorFunctionPrototype) : (t.__proto__ = GeneratorFunctionPrototype, define(t, u, "GeneratorFunction")), t.prototype = Object.create(g), t; }, e.awrap = function (t) { return { __await: t }; }, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, c, function () { return this; }), e.AsyncIterator = AsyncIterator, e.async = function (t, r, n, o, i) { void 0 === i && (i = Promise); var a = new AsyncIterator(wrap(t, r, n, o), i); return e.isGeneratorFunction(r) ? a : a.next().then(function (t) { return t.done ? t.value : a.next(); }); }, defineIteratorMethods(g), define(g, u, "Generator"), define(g, a, function () { return this; }), define(g, "toString", function () { return "[object Generator]"; }), e.keys = function (t) { var e = Object(t), r = []; for (var n in e) r.push(n); return r.reverse(), function next() { for (; r.length;) { var t = r.pop(); if (t in e) return next.value = t, next.done = !1, next; } return next.done = !0, next; }; }, e.values = values, Context.prototype = { constructor: Context, reset: function reset(e) { if (this.prev = 0, this.next = 0, this.sent = this._sent = t, this.done = !1, this.delegate = null, this.method = "next", this.arg = t, this.tryEntries.forEach(resetTryEntry), !e) for (var r in this) "t" === r.charAt(0) && n.call(this, r) && !isNaN(+r.slice(1)) && (this[r] = t); }, stop: function stop() { this.done = !0; var t = this.tryEntries[0].completion; if ("throw" === t.type) throw t.arg; return this.rval; }, dispatchException: function dispatchException(e) { if (this.done) throw e; var r = this; function handle(n, o) { return a.type = "throw", a.arg = e, r.next = n, o && (r.method = "next", r.arg = t), !!o; } for (var o = this.tryEntries.length - 1; o >= 0; --o) { var i = this.tryEntries[o], a = i.completion; if ("root" === i.tryLoc) return handle("end"); if (i.tryLoc <= this.prev) { var c = n.call(i, "catchLoc"), u = n.call(i, "finallyLoc"); if (c && u) { if (this.prev < i.catchLoc) return handle(i.catchLoc, !0); if (this.prev < i.finallyLoc) return handle(i.finallyLoc); } else if (c) { if (this.prev < i.catchLoc) return handle(i.catchLoc, !0); } else { if (!u) throw new Error("try statement without catch or finally"); if (this.prev < i.finallyLoc) return handle(i.finallyLoc); } } } }, abrupt: function abrupt(t, e) { for (var r = this.tryEntries.length - 1; r >= 0; --r) { var o = this.tryEntries[r]; if (o.tryLoc <= this.prev && n.call(o, "finallyLoc") && this.prev < o.finallyLoc) { var i = o; break; } } i && ("break" === t || "continue" === t) && i.tryLoc <= e && e <= i.finallyLoc && (i = null); var a = i ? i.completion : {}; return a.type = t, a.arg = e, i ? (this.method = "next", this.next = i.finallyLoc, y) : this.complete(a); }, complete: function complete(t, e) { if ("throw" === t.type) throw t.arg; return "break" === t.type || "continue" === t.type ? this.next = t.arg : "return" === t.type ? (this.rval = this.arg = t.arg, this.method = "return", this.next = "end") : "normal" === t.type && e && (this.next = e), y; }, finish: function finish(t) { for (var e = this.tryEntries.length - 1; e >= 0; --e) { var r = this.tryEntries[e]; if (r.finallyLoc === t) return this.complete(r.completion, r.afterLoc), resetTryEntry(r), y; } }, "catch": function _catch(t) { for (var e = this.tryEntries.length - 1; e >= 0; --e) { var r = this.tryEntries[e]; if (r.tryLoc === t) { var n = r.completion; if ("throw" === n.type) { var o = n.arg; resetTryEntry(r); } return o; } } throw new Error("illegal catch attempt"); }, delegateYield: function delegateYield(e, r, n) { return this.delegate = { iterator: values(e), resultName: r, nextLoc: n }, "next" === this.method && (this.arg = t), y; } }, e; }
|
|
@@ -46,7 +46,7 @@ function _append() {
|
|
|
46
46
|
message: _storeMessages["default"].startInsertBatch
|
|
47
47
|
});
|
|
48
48
|
_context.next = 10;
|
|
49
|
-
return (0, _idbTools.idbBulkInsert)(db,
|
|
49
|
+
return (0, _idbTools.idbBulkInsert)(db, _indexedDBStore.STORE_DATA_NAME, function (args) {
|
|
50
50
|
var message = args.message;
|
|
51
51
|
log({
|
|
52
52
|
message: message
|
|
@@ -4,9 +4,9 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports["default"] = void 0;
|
|
7
|
-
var
|
|
7
|
+
var _indexedDBStore = require("../../../constants/indexedDBStore");
|
|
8
8
|
function search(token, index) {
|
|
9
|
-
var range = IDBKeyRange.bound(token, "".concat(token).concat(
|
|
9
|
+
var range = IDBKeyRange.bound(token, "".concat(token).concat(_indexedDBStore.MAX_STRING));
|
|
10
10
|
return new Promise(function (resolve, reject) {
|
|
11
11
|
try {
|
|
12
12
|
index.getAll(range).onsuccess = function (req) {
|
|
@@ -5,12 +5,12 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
});
|
|
6
6
|
exports["default"] = void 0;
|
|
7
7
|
var _getDb = _interopRequireDefault(require("./get-db"));
|
|
8
|
-
var _storeTools = require("../../store-tools");
|
|
9
8
|
var _idbTools = require("../../idb-tools");
|
|
10
9
|
var _searchInIndex = _interopRequireDefault(require("./search-in-index"));
|
|
11
10
|
var _resolveQueryParser = _interopRequireDefault(require("./resolve-query-parser"));
|
|
12
11
|
var _computeScore = _interopRequireDefault(require("./compute-score"));
|
|
13
12
|
var _order = _interopRequireDefault(require("./order"));
|
|
13
|
+
var _indexedDBStore = require("../../../constants/indexedDBStore");
|
|
14
14
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
15
15
|
function _regeneratorRuntime() { "use strict"; /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */ _regeneratorRuntime = function _regeneratorRuntime() { return e; }; var t, e = {}, r = Object.prototype, n = r.hasOwnProperty, o = Object.defineProperty || function (t, e, r) { t[e] = r.value; }, i = "function" == typeof Symbol ? Symbol : {}, a = i.iterator || "@@iterator", c = i.asyncIterator || "@@asyncIterator", u = i.toStringTag || "@@toStringTag"; function define(t, e, r) { return Object.defineProperty(t, e, { value: r, enumerable: !0, configurable: !0, writable: !0 }), t[e]; } try { define({}, ""); } catch (t) { define = function define(t, e, r) { return t[e] = r; }; } function wrap(t, e, r, n) { var i = e && e.prototype instanceof Generator ? e : Generator, a = Object.create(i.prototype), c = new Context(n || []); return o(a, "_invoke", { value: makeInvokeMethod(t, r, c) }), a; } function tryCatch(t, e, r) { try { return { type: "normal", arg: t.call(e, r) }; } catch (t) { return { type: "throw", arg: t }; } } e.wrap = wrap; var h = "suspendedStart", l = "suspendedYield", f = "executing", s = "completed", y = {}; function Generator() {} function GeneratorFunction() {} function GeneratorFunctionPrototype() {} var p = {}; define(p, a, function () { return this; }); var d = Object.getPrototypeOf, v = d && d(d(values([]))); v && v !== r && n.call(v, a) && (p = v); var g = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(p); function defineIteratorMethods(t) { ["next", "throw", "return"].forEach(function (e) { define(t, e, function (t) { return this._invoke(e, t); }); }); } function AsyncIterator(t, e) { function invoke(r, o, i, a) { var c = tryCatch(t[r], t, o); if ("throw" !== c.type) { var u = c.arg, h = u.value; return h && "object" == _typeof(h) && n.call(h, "__await") ? e.resolve(h.__await).then(function (t) { invoke("next", t, i, a); }, function (t) { invoke("throw", t, i, a); }) : e.resolve(h).then(function (t) { u.value = t, i(u); }, function (t) { return invoke("throw", t, i, a); }); } a(c.arg); } var r; o(this, "_invoke", { value: function value(t, n) { function callInvokeWithMethodAndArg() { return new e(function (e, r) { invoke(t, n, e, r); }); } return r = r ? r.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg(); } }); } function makeInvokeMethod(e, r, n) { var o = h; return function (i, a) { if (o === f) throw new Error("Generator is already running"); if (o === s) { if ("throw" === i) throw a; return { value: t, done: !0 }; } for (n.method = i, n.arg = a;;) { var c = n.delegate; if (c) { var u = maybeInvokeDelegate(c, n); if (u) { if (u === y) continue; return u; } } if ("next" === n.method) n.sent = n._sent = n.arg;else if ("throw" === n.method) { if (o === h) throw o = s, n.arg; n.dispatchException(n.arg); } else "return" === n.method && n.abrupt("return", n.arg); o = f; var p = tryCatch(e, r, n); if ("normal" === p.type) { if (o = n.done ? s : l, p.arg === y) continue; return { value: p.arg, done: n.done }; } "throw" === p.type && (o = s, n.method = "throw", n.arg = p.arg); } }; } function maybeInvokeDelegate(e, r) { var n = r.method, o = e.iterator[n]; if (o === t) return r.delegate = null, "throw" === n && e.iterator["return"] && (r.method = "return", r.arg = t, maybeInvokeDelegate(e, r), "throw" === r.method) || "return" !== n && (r.method = "throw", r.arg = new TypeError("The iterator does not provide a '" + n + "' method")), y; var i = tryCatch(o, e.iterator, r.arg); if ("throw" === i.type) return r.method = "throw", r.arg = i.arg, r.delegate = null, y; var a = i.arg; return a ? a.done ? (r[e.resultName] = a.value, r.next = e.nextLoc, "return" !== r.method && (r.method = "next", r.arg = t), r.delegate = null, y) : a : (r.method = "throw", r.arg = new TypeError("iterator result is not an object"), r.delegate = null, y); } function pushTryEntry(t) { var e = { tryLoc: t[0] }; 1 in t && (e.catchLoc = t[1]), 2 in t && (e.finallyLoc = t[2], e.afterLoc = t[3]), this.tryEntries.push(e); } function resetTryEntry(t) { var e = t.completion || {}; e.type = "normal", delete e.arg, t.completion = e; } function Context(t) { this.tryEntries = [{ tryLoc: "root" }], t.forEach(pushTryEntry, this), this.reset(!0); } function values(e) { if (e || "" === e) { var r = e[a]; if (r) return r.call(e); if ("function" == typeof e.next) return e; if (!isNaN(e.length)) { var o = -1, i = function next() { for (; ++o < e.length;) if (n.call(e, o)) return next.value = e[o], next.done = !1, next; return next.value = t, next.done = !0, next; }; return i.next = i; } } throw new TypeError(_typeof(e) + " is not iterable"); } return GeneratorFunction.prototype = GeneratorFunctionPrototype, o(g, "constructor", { value: GeneratorFunctionPrototype, configurable: !0 }), o(GeneratorFunctionPrototype, "constructor", { value: GeneratorFunction, configurable: !0 }), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, u, "GeneratorFunction"), e.isGeneratorFunction = function (t) { var e = "function" == typeof t && t.constructor; return !!e && (e === GeneratorFunction || "GeneratorFunction" === (e.displayName || e.name)); }, e.mark = function (t) { return Object.setPrototypeOf ? Object.setPrototypeOf(t, GeneratorFunctionPrototype) : (t.__proto__ = GeneratorFunctionPrototype, define(t, u, "GeneratorFunction")), t.prototype = Object.create(g), t; }, e.awrap = function (t) { return { __await: t }; }, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, c, function () { return this; }), e.AsyncIterator = AsyncIterator, e.async = function (t, r, n, o, i) { void 0 === i && (i = Promise); var a = new AsyncIterator(wrap(t, r, n, o), i); return e.isGeneratorFunction(r) ? a : a.next().then(function (t) { return t.done ? t.value : a.next(); }); }, defineIteratorMethods(g), define(g, u, "Generator"), define(g, a, function () { return this; }), define(g, "toString", function () { return "[object Generator]"; }), e.keys = function (t) { var e = Object(t), r = []; for (var n in e) r.push(n); return r.reverse(), function next() { for (; r.length;) { var t = r.pop(); if (t in e) return next.value = t, next.done = !1, next; } return next.done = !0, next; }; }, e.values = values, Context.prototype = { constructor: Context, reset: function reset(e) { if (this.prev = 0, this.next = 0, this.sent = this._sent = t, this.done = !1, this.delegate = null, this.method = "next", this.arg = t, this.tryEntries.forEach(resetTryEntry), !e) for (var r in this) "t" === r.charAt(0) && n.call(this, r) && !isNaN(+r.slice(1)) && (this[r] = t); }, stop: function stop() { this.done = !0; var t = this.tryEntries[0].completion; if ("throw" === t.type) throw t.arg; return this.rval; }, dispatchException: function dispatchException(e) { if (this.done) throw e; var r = this; function handle(n, o) { return a.type = "throw", a.arg = e, r.next = n, o && (r.method = "next", r.arg = t), !!o; } for (var o = this.tryEntries.length - 1; o >= 0; --o) { var i = this.tryEntries[o], a = i.completion; if ("root" === i.tryLoc) return handle("end"); if (i.tryLoc <= this.prev) { var c = n.call(i, "catchLoc"), u = n.call(i, "finallyLoc"); if (c && u) { if (this.prev < i.catchLoc) return handle(i.catchLoc, !0); if (this.prev < i.finallyLoc) return handle(i.finallyLoc); } else if (c) { if (this.prev < i.catchLoc) return handle(i.catchLoc, !0); } else { if (!u) throw new Error("try statement without catch or finally"); if (this.prev < i.finallyLoc) return handle(i.finallyLoc); } } } }, abrupt: function abrupt(t, e) { for (var r = this.tryEntries.length - 1; r >= 0; --r) { var o = this.tryEntries[r]; if (o.tryLoc <= this.prev && n.call(o, "finallyLoc") && this.prev < o.finallyLoc) { var i = o; break; } } i && ("break" === t || "continue" === t) && i.tryLoc <= e && e <= i.finallyLoc && (i = null); var a = i ? i.completion : {}; return a.type = t, a.arg = e, i ? (this.method = "next", this.next = i.finallyLoc, y) : this.complete(a); }, complete: function complete(t, e) { if ("throw" === t.type) throw t.arg; return "break" === t.type || "continue" === t.type ? this.next = t.arg : "return" === t.type ? (this.rval = this.arg = t.arg, this.method = "return", this.next = "end") : "normal" === t.type && e && (this.next = e), y; }, finish: function finish(t) { for (var e = this.tryEntries.length - 1; e >= 0; --e) { var r = this.tryEntries[e]; if (r.finallyLoc === t) return this.complete(r.completion, r.afterLoc), resetTryEntry(r), y; } }, "catch": function _catch(t) { for (var e = this.tryEntries.length - 1; e >= 0; --e) { var r = this.tryEntries[e]; if (r.tryLoc === t) { var n = r.completion; if ("throw" === n.type) { var o = n.arg; resetTryEntry(r); } return o; } } throw new Error("illegal catch attempt"); }, delegateYield: function delegateYield(e, r, n) { return this.delegate = { iterator: values(e), resultName: r, nextLoc: n }, "next" === this.method && (this.arg = t), y; } }, e; }
|
|
16
16
|
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
|
@@ -98,7 +98,7 @@ function _searching() {
|
|
|
98
98
|
case 5:
|
|
99
99
|
db = _context2.sent;
|
|
100
100
|
_context2.next = 8;
|
|
101
|
-
return (0, _idbTools.getEntity)(db,
|
|
101
|
+
return (0, _idbTools.getEntity)(db, _indexedDBStore.STORE_INFO_NAME, name);
|
|
102
102
|
case 8:
|
|
103
103
|
info = _context2.sent;
|
|
104
104
|
queryParser = info.queryParser, max = info.max, order = info.order;
|
|
@@ -117,9 +117,9 @@ function _searching() {
|
|
|
117
117
|
tokens: tokens
|
|
118
118
|
});
|
|
119
119
|
case 16:
|
|
120
|
-
transaction = db.transaction(
|
|
121
|
-
store = transaction.objectStore(
|
|
122
|
-
index = store.index(
|
|
120
|
+
transaction = db.transaction(_indexedDBStore.STORE_DATA_NAME, 'readonly');
|
|
121
|
+
store = transaction.objectStore(_indexedDBStore.STORE_DATA_NAME);
|
|
122
|
+
index = store.index(_indexedDBStore.STORE_INDEX_NAME);
|
|
123
123
|
_context2.next = 21;
|
|
124
124
|
return searchTokens(tokens, index);
|
|
125
125
|
case 21:
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@inseefr/lunatic",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "3.0.0-rc.10",
|
|
4
4
|
"workersVersion": "0.3.0",
|
|
5
5
|
"description": "Library of questionnaire components",
|
|
6
6
|
"repository": {
|
|
@@ -56,7 +56,7 @@
|
|
|
56
56
|
"build-workers": "node ./scripts/build/build-workers.js",
|
|
57
57
|
"prepare-workers": "npm run build-workers && node ./scripts/build/add-workers-to-public.js",
|
|
58
58
|
"postinstall": "node ./scripts/build/add-workers-to-public.js",
|
|
59
|
-
"build": "babel src --out-dir lib --extensions \".ts,.js,.tsx,.jsx\" --copy-files && tsc --project tsconfig.prod.json && npm run build-workers",
|
|
59
|
+
"build": "babel src --out-dir lib --extensions \".ts,.js,.tsx,.jsx\" --copy-files && tsc --project tsconfig.prod.json && sass ./src/css/main.scss ./lib/main.css && npm run build-workers",
|
|
60
60
|
"storybook": "npm run prepare-workers && storybook dev -p 9999 --no-open",
|
|
61
61
|
"build-storybook": "npm run prepare-workers && storybook build"
|
|
62
62
|
},
|
|
@@ -80,6 +80,7 @@
|
|
|
80
80
|
"lodash.isequal": "^4.5.0",
|
|
81
81
|
"object-hash": "^2.2.0",
|
|
82
82
|
"prop-types": "^15.7.2",
|
|
83
|
+
"react-error-boundary": "^4.0.12",
|
|
83
84
|
"react-keyboard-event-handler": "^1.5.4",
|
|
84
85
|
"react-markdown": "^8.0.3",
|
|
85
86
|
"react-number-format": "^5.1.3",
|
|
@@ -107,9 +108,6 @@
|
|
|
107
108
|
"@babel/preset-env": "^7.9.5",
|
|
108
109
|
"@babel/preset-react": "^7.9.0",
|
|
109
110
|
"@babel/preset-typescript": "^7.18.6",
|
|
110
|
-
"@emotion/react": "^11.9.3",
|
|
111
|
-
"@emotion/styled": "^11.9.3",
|
|
112
|
-
"@mui/material": "^5.8.6",
|
|
113
111
|
"@playwright/test": "^1.30.0",
|
|
114
112
|
"@storybook/addon-a11y": "^7.4.6",
|
|
115
113
|
"@storybook/addon-actions": "^7.4.6",
|
|
@@ -164,7 +162,6 @@
|
|
|
164
162
|
"react-dom": "^18.0.0",
|
|
165
163
|
"regenerator-runtime": "^0.13.7",
|
|
166
164
|
"remove-accents": "^0.4.2",
|
|
167
|
-
"rxjs-marbles": "^6.0.1",
|
|
168
165
|
"sass-loader": "^13.2.0",
|
|
169
166
|
"source-map-explorer": "^2.4.2",
|
|
170
167
|
"storybook": "^7.4.6",
|