@icure/form 1.0.8 → 1.0.13
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/package.json +14 -14
- package/{components → src/components}/index.d.ts +0 -0
- package/{components → src/components}/index.js +6 -1
- package/src/components/index.js.map +1 -0
- package/src/components/iqr-form/fields/datePicker.d.ts +10 -0
- package/{components → src/components}/iqr-form/fields/datePicker.js +27 -12
- package/src/components/iqr-form/fields/datePicker.js.map +1 -0
- package/src/components/iqr-form/fields/dateTimePicker.d.ts +10 -0
- package/{components → src/components}/iqr-form/fields/dateTimePicker.js +19 -12
- package/src/components/iqr-form/fields/dateTimePicker.js.map +1 -0
- package/src/components/iqr-form/fields/measureField.d.ts +8 -0
- package/{components → src/components}/iqr-form/fields/measureField.js +14 -12
- package/src/components/iqr-form/fields/measureField.js.map +1 -0
- package/src/components/iqr-form/fields/multipleChoice.d.ts +8 -0
- package/{components → src/components}/iqr-form/fields/multipleChoice.js +14 -12
- package/src/components/iqr-form/fields/multipleChoice.js.map +1 -0
- package/src/components/iqr-form/fields/numberField.d.ts +8 -0
- package/{components → src/components}/iqr-form/fields/numberField.js +14 -12
- package/src/components/iqr-form/fields/numberField.js.map +1 -0
- package/{components → src/components}/iqr-form/fields/textfield.d.ts +0 -0
- package/src/components/iqr-form/fields/textfield.js +142 -0
- package/src/components/iqr-form/fields/textfield.js.map +1 -0
- package/src/components/iqr-form/fields/timePicker.d.ts +10 -0
- package/{components → src/components}/iqr-form/fields/timePicker.js +19 -12
- package/src/components/iqr-form/fields/timePicker.js.map +1 -0
- package/{components → src/components}/iqr-form/index.d.ts +0 -0
- package/src/components/iqr-form/index.js +89 -0
- package/src/components/iqr-form/index.js.map +1 -0
- package/src/components/iqr-form/legacy/Content.d.ts +28 -0
- package/src/components/iqr-form/legacy/Content.js +30 -0
- package/src/components/iqr-form/legacy/Content.js.map +1 -0
- package/src/components/iqr-form/legacy/Data.d.ts +14 -0
- package/src/components/iqr-form/legacy/Data.js +21 -0
- package/src/components/iqr-form/legacy/Data.js.map +1 -0
- package/src/components/iqr-form/legacy/Editor.d.ts +34 -0
- package/src/components/iqr-form/legacy/Editor.js +19 -0
- package/src/components/iqr-form/legacy/Editor.js.map +1 -0
- package/src/components/iqr-form/legacy/FormColumn.d.ts +18 -0
- package/src/components/iqr-form/legacy/FormColumn.js +10 -0
- package/src/components/iqr-form/legacy/FormColumn.js.map +1 -0
- package/src/components/iqr-form/legacy/FormDataOption.d.ts +16 -0
- package/src/components/iqr-form/legacy/FormDataOption.js +21 -0
- package/src/components/iqr-form/legacy/FormDataOption.js.map +1 -0
- package/src/components/iqr-form/legacy/FormLayout.d.ts +25 -0
- package/src/components/iqr-form/legacy/FormLayout.js +10 -0
- package/src/components/iqr-form/legacy/FormLayout.js.map +1 -0
- package/src/components/iqr-form/legacy/FormLayoutData.d.ts +42 -0
- package/src/components/iqr-form/legacy/FormLayoutData.js +10 -0
- package/src/components/iqr-form/legacy/FormLayoutData.js.map +1 -0
- package/src/components/iqr-form/legacy/FormPlanning.d.ts +22 -0
- package/src/components/iqr-form/legacy/FormPlanning.js +21 -0
- package/src/components/iqr-form/legacy/FormPlanning.js.map +1 -0
- package/src/components/iqr-form/legacy/FormSection.d.ts +19 -0
- package/src/components/iqr-form/legacy/FormSection.js +10 -0
- package/src/components/iqr-form/legacy/FormSection.js.map +1 -0
- package/src/components/iqr-form/legacy/Formula.d.ts +27 -0
- package/src/components/iqr-form/legacy/Formula.js +32 -0
- package/src/components/iqr-form/legacy/Formula.js.map +1 -0
- package/src/components/iqr-form/legacy/GuiCode.d.ts +16 -0
- package/src/components/iqr-form/legacy/GuiCode.js +21 -0
- package/src/components/iqr-form/legacy/GuiCode.js.map +1 -0
- package/src/components/iqr-form/legacy/GuiCodeType.d.ts +15 -0
- package/src/components/iqr-form/legacy/GuiCodeType.js +21 -0
- package/src/components/iqr-form/legacy/GuiCodeType.js.map +1 -0
- package/src/components/iqr-form/legacy/Suggest.d.ts +19 -0
- package/src/components/iqr-form/legacy/Suggest.js +21 -0
- package/src/components/iqr-form/legacy/Suggest.js.map +1 -0
- package/src/components/iqr-form/legacy/Tag.d.ts +16 -0
- package/src/components/iqr-form/legacy/Tag.js +21 -0
- package/src/components/iqr-form/legacy/Tag.js.map +1 -0
- package/{components → src/components}/iqr-form/model/index.d.ts +36 -18
- package/{components → src/components}/iqr-form/model/index.js +9 -3
- package/src/components/iqr-form/model/index.js.map +1 -0
- package/{components → src/components}/iqr-form/renderer/cards.d.ts +1 -1
- package/src/components/iqr-form/renderer/cards.js +55 -0
- package/src/components/iqr-form/renderer/cards.js.map +1 -0
- package/{components → src/components}/iqr-form/renderer/form.d.ts +1 -1
- package/src/components/iqr-form/renderer/form.js +93 -0
- package/src/components/iqr-form/renderer/form.js.map +1 -0
- package/src/components/iqr-form/renderer/index.d.ts +6 -0
- package/{components → src/components}/iqr-form/renderer/index.js +1 -0
- package/src/components/iqr-form/renderer/index.js.map +1 -0
- package/src/components/iqr-form/utils.d.ts +5 -0
- package/src/components/iqr-form/utils.js +91 -0
- package/src/components/iqr-form/utils.js.map +1 -0
- package/src/components/iqr-form-loader/fieldsValuesProviders.d.ts +13 -0
- package/src/components/iqr-form-loader/fieldsValuesProviders.js +47 -0
- package/src/components/iqr-form-loader/fieldsValuesProviders.js.map +1 -0
- package/src/components/iqr-form-loader/formValuesContainer.d.ts +33 -0
- package/src/components/iqr-form-loader/formValuesContainer.js +111 -0
- package/src/components/iqr-form-loader/formValuesContainer.js.map +1 -0
- package/src/components/iqr-form-loader/index.d.ts +3 -0
- package/src/components/iqr-form-loader/index.js +20 -0
- package/src/components/iqr-form-loader/index.js.map +1 -0
- package/src/components/iqr-form-loader/models.d.ts +14 -0
- package/src/components/iqr-form-loader/models.js +3 -0
- package/src/components/iqr-form-loader/models.js.map +1 -0
- package/src/components/iqr-text-field/index.d.ts +26 -0
- package/src/components/iqr-text-field/index.js +490 -0
- package/src/components/iqr-text-field/index.js.map +1 -0
- package/src/components/iqr-text-field/plugin/caret-fix-plugin.d.ts +2 -0
- package/{components → src/components}/iqr-text-field/plugin/caret-fix-plugin.js +11 -6
- package/src/components/iqr-text-field/plugin/caret-fix-plugin.js.map +1 -0
- package/src/components/iqr-text-field/plugin/has-content-class-plugin.d.ts +2 -0
- package/{components → src/components}/iqr-text-field/plugin/has-content-class-plugin.js +8 -5
- package/src/components/iqr-text-field/plugin/has-content-class-plugin.js.map +1 -0
- package/src/components/iqr-text-field/plugin/mask-plugin.d.ts +2 -0
- package/{components → src/components}/iqr-text-field/plugin/mask-plugin.js +20 -12
- package/src/components/iqr-text-field/plugin/mask-plugin.js.map +1 -0
- package/src/components/iqr-text-field/plugin/regexp-plugin.d.ts +2 -0
- package/{components → src/components}/iqr-text-field/plugin/regexp-plugin.js +8 -4
- package/src/components/iqr-text-field/plugin/regexp-plugin.js.map +1 -0
- package/src/components/iqr-text-field/prosemirror-commands.d.ts +6 -0
- package/{components → src/components}/iqr-text-field/prosemirror-commands.js +7 -5
- package/src/components/iqr-text-field/prosemirror-commands.js.map +1 -0
- package/{components → src/components}/iqr-text-field/prosemirror-utils.d.ts +1 -1
- package/{components → src/components}/iqr-text-field/prosemirror-utils.js +2 -1
- package/src/components/iqr-text-field/prosemirror-utils.js.map +1 -0
- package/{components → src/components}/iqr-text-field/schema/common-marks.d.ts +1 -1
- package/src/components/iqr-text-field/schema/common-marks.js +94 -0
- package/src/components/iqr-text-field/schema/common-marks.js.map +1 -0
- package/{components → src/components}/iqr-text-field/schema/date-time-schema.d.ts +0 -0
- package/{components → src/components}/iqr-text-field/schema/date-time-schema.js +14 -13
- package/src/components/iqr-text-field/schema/date-time-schema.js.map +1 -0
- package/{components → src/components}/iqr-text-field/schema/decimal-schema.d.ts +0 -0
- package/{components → src/components}/iqr-text-field/schema/decimal-schema.js +5 -4
- package/src/components/iqr-text-field/schema/decimal-schema.js.map +1 -0
- package/{components → src/components}/iqr-text-field/schema/index.d.ts +6 -6
- package/src/components/iqr-text-field/schema/index.js +26 -0
- package/src/components/iqr-text-field/schema/index.js.map +1 -0
- package/{components → src/components}/iqr-text-field/schema/markdown-schema.d.ts +0 -0
- package/{components → src/components}/iqr-text-field/schema/markdown-schema.js +67 -33
- package/src/components/iqr-text-field/schema/markdown-schema.js.map +1 -0
- package/{components → src/components}/iqr-text-field/schema/measure-schema.d.ts +0 -0
- package/{components → src/components}/iqr-text-field/schema/measure-schema.js +6 -5
- package/src/components/iqr-text-field/schema/measure-schema.js.map +1 -0
- package/{components → src/components}/iqr-text-field/schema/token-schema.d.ts +0 -0
- package/{components → src/components}/iqr-text-field/schema/token-schema.js +12 -8
- package/src/components/iqr-text-field/schema/token-schema.js.map +1 -0
- package/{components → src/components}/iqr-text-field/schema/utils.d.ts +1 -1
- package/{components → src/components}/iqr-text-field/schema/utils.js +3 -2
- package/src/components/iqr-text-field/schema/utils.js.map +1 -0
- package/{components → src/components}/iqr-text-field/selection-companion.d.ts +2 -2
- package/{components → src/components}/iqr-text-field/selection-companion.js +14 -12
- package/src/components/iqr-text-field/selection-companion.js.map +1 -0
- package/src/components/iqr-text-field/styles/paths.d.ts +5 -0
- package/src/components/iqr-text-field/styles/paths.js +37 -0
- package/src/components/iqr-text-field/styles/paths.js.map +1 -0
- package/{components → src/components}/iqr-text-field/suggestion-palette.d.ts +13 -15
- package/{components → src/components}/iqr-text-field/suggestion-palette.js +52 -22
- package/src/components/iqr-text-field/suggestion-palette.js.map +1 -0
- package/{index.d.ts → src/index.d.ts} +0 -0
- package/{index.js → src/index.js} +6 -1
- package/src/index.js.map +1 -0
- package/src/utils/icure-utils.d.ts +19 -0
- package/src/utils/icure-utils.js +106 -0
- package/src/utils/icure-utils.js.map +1 -0
- package/src/utils/languages.d.ts +8 -0
- package/src/utils/languages.js +15 -0
- package/src/utils/languages.js.map +1 -0
- package/src/utils/no-lodash.d.ts +5 -0
- package/src/utils/no-lodash.js +25 -0
- package/src/utils/no-lodash.js.map +1 -0
- package/tmp/components/index.d.ts +2 -0
- package/tmp/components/index.js +19 -0
- package/tmp/components/index.js.map +1 -0
- package/tmp/components/iqr-form/fields/datePicker.d.ts +10 -0
- package/tmp/components/iqr-form/fields/datePicker.js +57 -0
- package/tmp/components/iqr-form/fields/datePicker.js.map +1 -0
- package/tmp/components/iqr-form/fields/dateTimePicker.d.ts +10 -0
- package/tmp/components/iqr-form/fields/dateTimePicker.js +49 -0
- package/tmp/components/iqr-form/fields/dateTimePicker.js.map +1 -0
- package/tmp/components/iqr-form/fields/measureField.d.ts +8 -0
- package/tmp/components/iqr-form/fields/measureField.js +44 -0
- package/tmp/components/iqr-form/fields/measureField.js.map +1 -0
- package/tmp/components/iqr-form/fields/multipleChoice.d.ts +8 -0
- package/tmp/components/iqr-form/fields/multipleChoice.js +44 -0
- package/tmp/components/iqr-form/fields/multipleChoice.js.map +1 -0
- package/tmp/components/iqr-form/fields/numberField.d.ts +8 -0
- package/tmp/components/iqr-form/fields/numberField.js +44 -0
- package/tmp/components/iqr-form/fields/numberField.js.map +1 -0
- package/tmp/components/iqr-form/fields/textfield.d.ts +1 -0
- package/tmp/components/iqr-form/fields/textfield.js +142 -0
- package/tmp/components/iqr-form/fields/textfield.js.map +1 -0
- package/tmp/components/iqr-form/fields/timePicker.d.ts +10 -0
- package/tmp/components/iqr-form/fields/timePicker.js +49 -0
- package/tmp/components/iqr-form/fields/timePicker.js.map +1 -0
- package/tmp/components/iqr-form/index.d.ts +7 -0
- package/{components → tmp/components}/iqr-form/index.js +28 -22
- package/tmp/components/iqr-form/index.js.map +1 -0
- package/tmp/components/iqr-form/legacy/Content.d.ts +28 -0
- package/tmp/components/iqr-form/legacy/Content.js +30 -0
- package/tmp/components/iqr-form/legacy/Content.js.map +1 -0
- package/tmp/components/iqr-form/legacy/Data.d.ts +14 -0
- package/tmp/components/iqr-form/legacy/Data.js +21 -0
- package/tmp/components/iqr-form/legacy/Data.js.map +1 -0
- package/tmp/components/iqr-form/legacy/Editor.d.ts +34 -0
- package/tmp/components/iqr-form/legacy/Editor.js +19 -0
- package/tmp/components/iqr-form/legacy/Editor.js.map +1 -0
- package/tmp/components/iqr-form/legacy/FormColumn.d.ts +18 -0
- package/tmp/components/iqr-form/legacy/FormColumn.js +10 -0
- package/tmp/components/iqr-form/legacy/FormColumn.js.map +1 -0
- package/tmp/components/iqr-form/legacy/FormDataOption.d.ts +16 -0
- package/tmp/components/iqr-form/legacy/FormDataOption.js +21 -0
- package/tmp/components/iqr-form/legacy/FormDataOption.js.map +1 -0
- package/tmp/components/iqr-form/legacy/FormLayout.d.ts +25 -0
- package/tmp/components/iqr-form/legacy/FormLayout.js +10 -0
- package/tmp/components/iqr-form/legacy/FormLayout.js.map +1 -0
- package/tmp/components/iqr-form/legacy/FormLayoutData.d.ts +42 -0
- package/tmp/components/iqr-form/legacy/FormLayoutData.js +10 -0
- package/tmp/components/iqr-form/legacy/FormLayoutData.js.map +1 -0
- package/tmp/components/iqr-form/legacy/FormPlanning.d.ts +22 -0
- package/tmp/components/iqr-form/legacy/FormPlanning.js +21 -0
- package/tmp/components/iqr-form/legacy/FormPlanning.js.map +1 -0
- package/tmp/components/iqr-form/legacy/FormSection.d.ts +19 -0
- package/tmp/components/iqr-form/legacy/FormSection.js +10 -0
- package/tmp/components/iqr-form/legacy/FormSection.js.map +1 -0
- package/tmp/components/iqr-form/legacy/Formula.d.ts +27 -0
- package/tmp/components/iqr-form/legacy/Formula.js +32 -0
- package/tmp/components/iqr-form/legacy/Formula.js.map +1 -0
- package/tmp/components/iqr-form/legacy/GuiCode.d.ts +16 -0
- package/tmp/components/iqr-form/legacy/GuiCode.js +21 -0
- package/tmp/components/iqr-form/legacy/GuiCode.js.map +1 -0
- package/tmp/components/iqr-form/legacy/GuiCodeType.d.ts +15 -0
- package/tmp/components/iqr-form/legacy/GuiCodeType.js +21 -0
- package/tmp/components/iqr-form/legacy/GuiCodeType.js.map +1 -0
- package/tmp/components/iqr-form/legacy/Suggest.d.ts +19 -0
- package/tmp/components/iqr-form/legacy/Suggest.js +21 -0
- package/tmp/components/iqr-form/legacy/Suggest.js.map +1 -0
- package/tmp/components/iqr-form/legacy/Tag.d.ts +16 -0
- package/tmp/components/iqr-form/legacy/Tag.js +21 -0
- package/tmp/components/iqr-form/legacy/Tag.js.map +1 -0
- package/tmp/components/iqr-form/model/index.d.ts +96 -0
- package/tmp/components/iqr-form/model/index.js +120 -0
- package/tmp/components/iqr-form/model/index.js.map +1 -0
- package/tmp/components/iqr-form/renderer/cards.d.ts +2 -0
- package/tmp/components/iqr-form/renderer/cards.js +55 -0
- package/tmp/components/iqr-form/renderer/cards.js.map +1 -0
- package/tmp/components/iqr-form/renderer/form.d.ts +2 -0
- package/tmp/components/iqr-form/renderer/form.js +93 -0
- package/tmp/components/iqr-form/renderer/form.js.map +1 -0
- package/tmp/components/iqr-form/renderer/index.d.ts +6 -0
- package/tmp/components/iqr-form/renderer/index.js +3 -0
- package/tmp/components/iqr-form/renderer/index.js.map +1 -0
- package/tmp/components/iqr-form/utils.d.ts +5 -0
- package/tmp/components/iqr-form/utils.js +91 -0
- package/tmp/components/iqr-form/utils.js.map +1 -0
- package/tmp/components/iqr-form-loader/fieldsValuesProviders.d.ts +13 -0
- package/tmp/components/iqr-form-loader/fieldsValuesProviders.js +47 -0
- package/tmp/components/iqr-form-loader/fieldsValuesProviders.js.map +1 -0
- package/tmp/components/iqr-form-loader/formValuesContainer.d.ts +33 -0
- package/tmp/components/iqr-form-loader/formValuesContainer.js +111 -0
- package/tmp/components/iqr-form-loader/formValuesContainer.js.map +1 -0
- package/tmp/components/iqr-form-loader/index.d.ts +3 -0
- package/tmp/components/iqr-form-loader/index.js +20 -0
- package/tmp/components/iqr-form-loader/index.js.map +1 -0
- package/tmp/components/iqr-form-loader/models.d.ts +14 -0
- package/tmp/components/iqr-form-loader/models.js +3 -0
- package/tmp/components/iqr-form-loader/models.js.map +1 -0
- package/tmp/components/iqr-text-field/index.d.ts +26 -0
- package/{components → tmp/components}/iqr-text-field/index.js +340 -178
- package/tmp/components/iqr-text-field/index.js.map +1 -0
- package/tmp/components/iqr-text-field/plugin/caret-fix-plugin.d.ts +2 -0
- package/tmp/components/iqr-text-field/plugin/caret-fix-plugin.js +29 -0
- package/tmp/components/iqr-text-field/plugin/caret-fix-plugin.js.map +1 -0
- package/tmp/components/iqr-text-field/plugin/has-content-class-plugin.d.ts +2 -0
- package/tmp/components/iqr-text-field/plugin/has-content-class-plugin.js +22 -0
- package/tmp/components/iqr-text-field/plugin/has-content-class-plugin.js.map +1 -0
- package/tmp/components/iqr-text-field/plugin/mask-plugin.d.ts +2 -0
- package/tmp/components/iqr-text-field/plugin/mask-plugin.js +152 -0
- package/tmp/components/iqr-text-field/plugin/mask-plugin.js.map +1 -0
- package/tmp/components/iqr-text-field/plugin/regexp-plugin.d.ts +2 -0
- package/tmp/components/iqr-text-field/plugin/regexp-plugin.js +51 -0
- package/tmp/components/iqr-text-field/plugin/regexp-plugin.js.map +1 -0
- package/tmp/components/iqr-text-field/prosemirror-commands.d.ts +6 -0
- package/tmp/components/iqr-text-field/prosemirror-commands.js +54 -0
- package/tmp/components/iqr-text-field/prosemirror-commands.js.map +1 -0
- package/tmp/components/iqr-text-field/prosemirror-utils.d.ts +5 -0
- package/tmp/components/iqr-text-field/prosemirror-utils.js +16 -0
- package/tmp/components/iqr-text-field/prosemirror-utils.js.map +1 -0
- package/tmp/components/iqr-text-field/schema/common-marks.d.ts +10 -0
- package/tmp/components/iqr-text-field/schema/common-marks.js +94 -0
- package/tmp/components/iqr-text-field/schema/common-marks.js.map +1 -0
- package/tmp/components/iqr-text-field/schema/date-time-schema.d.ts +7 -0
- package/tmp/components/iqr-text-field/schema/date-time-schema.js +89 -0
- package/tmp/components/iqr-text-field/schema/date-time-schema.js.map +1 -0
- package/tmp/components/iqr-text-field/schema/decimal-schema.d.ts +3 -0
- package/tmp/components/iqr-text-field/schema/decimal-schema.js +28 -0
- package/tmp/components/iqr-text-field/schema/decimal-schema.js.map +1 -0
- package/tmp/components/iqr-text-field/schema/index.d.ts +11 -0
- package/tmp/components/iqr-text-field/schema/index.js +26 -0
- package/tmp/components/iqr-text-field/schema/index.js.map +1 -0
- package/tmp/components/iqr-text-field/schema/markdown-schema.d.ts +8 -0
- package/tmp/components/iqr-text-field/schema/markdown-schema.js +173 -0
- package/tmp/components/iqr-text-field/schema/markdown-schema.js.map +1 -0
- package/tmp/components/iqr-text-field/schema/measure-schema.d.ts +3 -0
- package/tmp/components/iqr-text-field/schema/measure-schema.js +36 -0
- package/tmp/components/iqr-text-field/schema/measure-schema.js.map +1 -0
- package/tmp/components/iqr-text-field/schema/token-schema.d.ts +6 -0
- package/tmp/components/iqr-text-field/schema/token-schema.js +40 -0
- package/tmp/components/iqr-text-field/schema/token-schema.js.map +1 -0
- package/tmp/components/iqr-text-field/schema/utils.d.ts +11 -0
- package/tmp/components/iqr-text-field/schema/utils.js +12 -0
- package/tmp/components/iqr-text-field/schema/utils.js.map +1 -0
- package/tmp/components/iqr-text-field/selection-companion.d.ts +11 -0
- package/tmp/components/iqr-text-field/selection-companion.js +54 -0
- package/tmp/components/iqr-text-field/selection-companion.js.map +1 -0
- package/tmp/components/iqr-text-field/styles/paths.d.ts +5 -0
- package/tmp/components/iqr-text-field/styles/paths.js +37 -0
- package/tmp/components/iqr-text-field/styles/paths.js.map +1 -0
- package/tmp/components/iqr-text-field/suggestion-palette.d.ts +31 -0
- package/tmp/components/iqr-text-field/suggestion-palette.js +169 -0
- package/tmp/components/iqr-text-field/suggestion-palette.js.map +1 -0
- package/tmp/index.d.ts +1 -0
- package/tmp/index.js +18 -0
- package/tmp/index.js.map +1 -0
- package/tmp/utils/icure-utils.d.ts +19 -0
- package/tmp/utils/icure-utils.js +106 -0
- package/tmp/utils/icure-utils.js.map +1 -0
- package/tmp/utils/languages.d.ts +8 -0
- package/tmp/utils/languages.js +15 -0
- package/tmp/utils/languages.js.map +1 -0
- package/tmp/utils/no-lodash.d.ts +5 -0
- package/tmp/utils/no-lodash.js +25 -0
- package/tmp/utils/no-lodash.js.map +1 -0
- package/components/iqr-form/fields/datePicker.d.ts +0 -8
- package/components/iqr-form/fields/dateTimePicker.d.ts +0 -8
- package/components/iqr-form/fields/measureField.d.ts +0 -8
- package/components/iqr-form/fields/multipleChoice.d.ts +0 -8
- package/components/iqr-form/fields/numberField.d.ts +0 -8
- package/components/iqr-form/fields/textfield.js +0 -86
- package/components/iqr-form/fields/timePicker.d.ts +0 -8
- package/components/iqr-form/renderer/cards.js +0 -44
- package/components/iqr-form/renderer/form.js +0 -45
- package/components/iqr-form/renderer/index.d.ts +0 -3
- package/components/iqr-text-field/index.d.ts +0 -2
- package/components/iqr-text-field/plugin/caret-fix-plugin.d.ts +0 -2
- package/components/iqr-text-field/plugin/has-content-class-plugin.d.ts +0 -2
- package/components/iqr-text-field/plugin/mask-plugin.d.ts +0 -2
- package/components/iqr-text-field/plugin/regexp-plugin.d.ts +0 -2
- package/components/iqr-text-field/prosemirror-commands.d.ts +0 -4
- package/components/iqr-text-field/schema/common-marks.js +0 -90
- package/components/iqr-text-field/schema/index.js +0 -18
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.handleMetaChangedProvider = exports.handleTextFieldValueChangedProvider = exports.metaProvider = exports.timeFieldValuesProvider = exports.dateTimeFieldValuesProvider = exports.dateFieldValuesProvider = exports.textFieldValuesProvider = exports.measureFieldValuesProvider = exports.numberFieldValuesProvider = void 0;
|
|
4
|
+
const icure_utils_1 = require("../../utils/icure-utils");
|
|
5
|
+
const api_1 = require("@icure/api");
|
|
6
|
+
function numberFieldValuesProvider(formValuesContainer, field) {
|
|
7
|
+
return () => (0, icure_utils_1.convertServicesToVersionedValues)((0, icure_utils_1.getVersions)(formValuesContainer, field), (content) => content.numberValue || content.numberValue === 0 ? new Intl.NumberFormat('fr').format(content.numberValue) : '');
|
|
8
|
+
}
|
|
9
|
+
exports.numberFieldValuesProvider = numberFieldValuesProvider;
|
|
10
|
+
function measureFieldValuesProvider(formValuesContainer, field) {
|
|
11
|
+
return () => (0, icure_utils_1.convertServicesToVersionedValues)((0, icure_utils_1.getVersions)(formValuesContainer, field), (content) => { var _a, _b, _c; return ((_a = content.measureValue) === null || _a === void 0 ? void 0 : _a.value) || ((_b = content.measureValue) === null || _b === void 0 ? void 0 : _b.value) === 0 ? `${new Intl.NumberFormat('fr').format(content.measureValue.value)} ${(_c = content.measureValue) === null || _c === void 0 ? void 0 : _c.unit}` : ''; });
|
|
12
|
+
}
|
|
13
|
+
exports.measureFieldValuesProvider = measureFieldValuesProvider;
|
|
14
|
+
function textFieldValuesProvider(formValuesContainer, field) {
|
|
15
|
+
return () => (0, icure_utils_1.convertServicesToVersionedValues)((0, icure_utils_1.getVersions)(formValuesContainer, field), (content) => content.stringValue || '');
|
|
16
|
+
}
|
|
17
|
+
exports.textFieldValuesProvider = textFieldValuesProvider;
|
|
18
|
+
function dateFieldValuesProvider(formValuesContainer, field) {
|
|
19
|
+
return () => (0, icure_utils_1.convertServicesToVersionedValues)((0, icure_utils_1.getVersions)(formValuesContainer, field), (content) => `${content.fuzzyDateValue}`.replace(/(....)(..)(..)/, '$3$2$1') || '');
|
|
20
|
+
}
|
|
21
|
+
exports.dateFieldValuesProvider = dateFieldValuesProvider;
|
|
22
|
+
function dateTimeFieldValuesProvider(formValuesContainer, field) {
|
|
23
|
+
return () => (0, icure_utils_1.convertServicesToVersionedValues)((0, icure_utils_1.getVersions)(formValuesContainer, field), (content) => `${content.fuzzyDateValue}`.replace(/(....)(..)(..)(......)/, '$3$2$1 $4') || '');
|
|
24
|
+
}
|
|
25
|
+
exports.dateTimeFieldValuesProvider = dateTimeFieldValuesProvider;
|
|
26
|
+
function timeFieldValuesProvider(formValuesContainer, field) {
|
|
27
|
+
return () => (0, icure_utils_1.convertServicesToVersionedValues)((0, icure_utils_1.getVersions)(formValuesContainer, field), (content) => `${content.fuzzyDateValue}`);
|
|
28
|
+
}
|
|
29
|
+
exports.timeFieldValuesProvider = timeFieldValuesProvider;
|
|
30
|
+
function metaProvider(formValuesContainer, field) {
|
|
31
|
+
return () => (0, icure_utils_1.convertServicesToVersionedMetas)((0, icure_utils_1.getVersions)(formValuesContainer, field));
|
|
32
|
+
}
|
|
33
|
+
exports.metaProvider = metaProvider;
|
|
34
|
+
function handleTextFieldValueChangedProvider(formValuesContainer) {
|
|
35
|
+
return (serviceId, language, content, codes) => formValuesContainer.setValue(serviceId, language, new api_1.Content({ stringValue: content }), codes);
|
|
36
|
+
}
|
|
37
|
+
exports.handleTextFieldValueChangedProvider = handleTextFieldValueChangedProvider;
|
|
38
|
+
function handleMetaChangedProvider(formValuesContainer) {
|
|
39
|
+
return (serviceId, meta) => {
|
|
40
|
+
if (meta.owner !== undefined)
|
|
41
|
+
formValuesContainer.setResponsible(serviceId, meta.owner === null ? null : meta.owner.id);
|
|
42
|
+
if (meta.valueDate !== undefined)
|
|
43
|
+
formValuesContainer.setValueDate(serviceId, meta.valueDate);
|
|
44
|
+
};
|
|
45
|
+
}
|
|
46
|
+
exports.handleMetaChangedProvider = handleMetaChangedProvider;
|
|
47
|
+
//# sourceMappingURL=fieldsValuesProviders.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"fieldsValuesProviders.js","sourceRoot":"","sources":["../../../../src/components/iqr-form-loader/fieldsValuesProviders.ts"],"names":[],"mappings":";;;AAEA,yDAAwH;AACxH,oCAA8C;AAG9C,SAAgB,yBAAyB,CAAC,mBAAwC,EAAE,KAAY;IAC/F,OAAO,GAAG,EAAE,CACX,IAAA,8CAAgC,EAAC,IAAA,yBAAW,EAAC,mBAAmB,EAAE,KAAK,CAAC,EAAE,CAAC,OAAgB,EAAE,EAAE,CAC9F,OAAO,CAAC,WAAW,IAAI,OAAO,CAAC,WAAW,KAAK,CAAC,CAAC,CAAC,CAAC,IAAI,IAAI,CAAC,YAAY,CAAC,IAAI,CAAC,CAAC,MAAM,CAAC,OAAO,CAAC,WAAW,CAAC,CAAC,CA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,SAAS;YAAE,mBAAmB,CAAC,YAAY,CAAC,SAAS,EAAE,IAAI,CAAC,SAAS,CAAC,CAAA;IAC9F,CAAC,CAAA;AACF,CAAC;AALD,8DAKC"}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { CodeStub, Contact, Content, Service } from '@icure/api';
|
|
2
|
+
import { ServicesHistory } from './models';
|
|
3
|
+
export declare function withLabel(label: string): (svc: Service) => boolean;
|
|
4
|
+
export interface FormValuesContainer {
|
|
5
|
+
copy(currentContact: Contact): FormValuesContainer;
|
|
6
|
+
getVersions(selector: (svc: Service) => boolean): ServicesHistory;
|
|
7
|
+
setValue(serviceId: string, language: string, content: Content, codes: CodeStub[]): FormValuesContainer;
|
|
8
|
+
setValueDate(serviceId: string, fuzzyDate: number | null): FormValuesContainer;
|
|
9
|
+
setAuthor(serviceId: string, author: string | null): FormValuesContainer;
|
|
10
|
+
setResponsible(serviceId: string, responsible: string | null): FormValuesContainer;
|
|
11
|
+
delete(serviceId: string): FormValuesContainer;
|
|
12
|
+
}
|
|
13
|
+
export declare class ICureFormValuesContainer implements FormValuesContainer {
|
|
14
|
+
currentContact: Contact;
|
|
15
|
+
contact: Contact;
|
|
16
|
+
contactsHistory: Contact[];
|
|
17
|
+
serviceFactory: (language: string, content: Content) => Service;
|
|
18
|
+
constructor(currentContact: Contact, contact: Contact, contactsHistory: Contact[], serviceFactory: (language: string, content: Content) => Service);
|
|
19
|
+
copy(currentContact: Contact): ICureFormValuesContainer;
|
|
20
|
+
getVersions(selector: (svc: Service) => boolean): ServicesHistory;
|
|
21
|
+
private setServiceProperty;
|
|
22
|
+
setValueDate(serviceId: string, fuzzyDate: number | null): FormValuesContainer;
|
|
23
|
+
setAuthor(serviceId: string, author: string | null): FormValuesContainer;
|
|
24
|
+
setResponsible(serviceId: string, responsible: string | null): FormValuesContainer;
|
|
25
|
+
setValue(serviceId: string, language: string, content: Content, codes: CodeStub[]): FormValuesContainer;
|
|
26
|
+
delete(serviceId: string): FormValuesContainer;
|
|
27
|
+
/** returns all services in history that match a selector
|
|
28
|
+
*
|
|
29
|
+
* @param selector a function used to select the services of interest, usually : withLabel("someLabel")
|
|
30
|
+
* @private
|
|
31
|
+
*/
|
|
32
|
+
private getServicesInHistory;
|
|
33
|
+
}
|
|
@@ -0,0 +1,111 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __rest = (this && this.__rest) || function (s, e) {
|
|
3
|
+
var t = {};
|
|
4
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
5
|
+
t[p] = s[p];
|
|
6
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
7
|
+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
8
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
9
|
+
t[p[i]] = s[p[i]];
|
|
10
|
+
}
|
|
11
|
+
return t;
|
|
12
|
+
};
|
|
13
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
14
|
+
exports.ICureFormValuesContainer = exports.withLabel = void 0;
|
|
15
|
+
const api_1 = require("@icure/api");
|
|
16
|
+
const no_lodash_1 = require("../../utils/no-lodash");
|
|
17
|
+
const icure_utils_1 = require("../../utils/icure-utils");
|
|
18
|
+
function withLabel(label) {
|
|
19
|
+
return (svc) => svc.label === label;
|
|
20
|
+
}
|
|
21
|
+
exports.withLabel = withLabel;
|
|
22
|
+
class ICureFormValuesContainer {
|
|
23
|
+
constructor(currentContact, contact, contactsHistory, serviceFactory) {
|
|
24
|
+
if (!contactsHistory.includes(contact) && contact !== currentContact) {
|
|
25
|
+
throw new Error('Illegal argument, the history must contain the contact');
|
|
26
|
+
}
|
|
27
|
+
if (contactsHistory.includes(currentContact)) {
|
|
28
|
+
throw new Error('Illegal argument, the history must not contain the currentContact');
|
|
29
|
+
}
|
|
30
|
+
this.currentContact = currentContact;
|
|
31
|
+
this.contact = contact;
|
|
32
|
+
this.contactsHistory = (0, no_lodash_1.sortedBy)(contactsHistory, 'created', 'desc');
|
|
33
|
+
this.serviceFactory = serviceFactory;
|
|
34
|
+
}
|
|
35
|
+
copy(currentContact) {
|
|
36
|
+
return new ICureFormValuesContainer(currentContact, this.contact, this.contactsHistory, this.serviceFactory);
|
|
37
|
+
}
|
|
38
|
+
getVersions(selector) {
|
|
39
|
+
return (0, no_lodash_1.groupBy)(this.getServicesInHistory(selector).filter((swc) => +((0, icure_utils_1.fuzzyDate)(swc.contact.created) || 0) <= +((0, icure_utils_1.fuzzyDate)(this.contact.created) || 0)), (swc) => swc.service.id || '');
|
|
40
|
+
}
|
|
41
|
+
setServiceProperty(serviceId, newValue, getter, setter) {
|
|
42
|
+
const swcs = this.getServicesInHistory((s) => s.id === serviceId);
|
|
43
|
+
if (swcs.length) {
|
|
44
|
+
if (newValue !== getter(swcs[0].service)) {
|
|
45
|
+
return this.copy((0, icure_utils_1.setServices)(this.currentContact, [], [setter(swcs[0].service, newValue)]));
|
|
46
|
+
}
|
|
47
|
+
else {
|
|
48
|
+
return this;
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
else {
|
|
52
|
+
return this;
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
setValueDate(serviceId, fuzzyDate) {
|
|
56
|
+
return this.setServiceProperty(serviceId, fuzzyDate, (s) => s.valueDate, (s) => new api_1.Service(Object.assign(Object.assign({}, s), { valueDate: fuzzyDate })));
|
|
57
|
+
}
|
|
58
|
+
setAuthor(serviceId, author) {
|
|
59
|
+
return this.setServiceProperty(serviceId, author, (s) => s.author, (s) => new api_1.Service(Object.assign(Object.assign({}, s), { author })));
|
|
60
|
+
}
|
|
61
|
+
setResponsible(serviceId, responsible) {
|
|
62
|
+
return this.setServiceProperty(serviceId, responsible, (s) => s.author, (s) => new api_1.Service(Object.assign(Object.assign({}, s), { responsible })));
|
|
63
|
+
}
|
|
64
|
+
setValue(serviceId, language, content, codes) {
|
|
65
|
+
const swcs = this.getServicesInHistory((s) => s.id === serviceId);
|
|
66
|
+
if (swcs.length) {
|
|
67
|
+
const previousContent = swcs[0].service.content;
|
|
68
|
+
if (!previousContent || !(0, icure_utils_1.isServiceContentEqual)({ [language]: content }, previousContent)) {
|
|
69
|
+
// Omit end of life
|
|
70
|
+
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
71
|
+
const _a = Object.assign(Object.assign({}, swcs[0].service), { content: Object.assign(Object.assign({}, previousContent), { [language]: content }), codes: codes, modified: +new Date() }), { endOfLife } = _a, modifiedServiceValues = __rest(_a, ["endOfLife"]);
|
|
72
|
+
return this.copy((0, icure_utils_1.setServices)(this.currentContact, [], [new api_1.Service(modifiedServiceValues)]));
|
|
73
|
+
}
|
|
74
|
+
else {
|
|
75
|
+
return this;
|
|
76
|
+
}
|
|
77
|
+
}
|
|
78
|
+
else {
|
|
79
|
+
return this.copy((0, icure_utils_1.setServices)(this.currentContact, [this.serviceFactory(language, content)], []));
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
delete(serviceId) {
|
|
83
|
+
const swcs = this.getServicesInHistory((s) => s.id === serviceId);
|
|
84
|
+
if (swcs.length) {
|
|
85
|
+
//Omit end of life
|
|
86
|
+
const now = +new Date();
|
|
87
|
+
return this.copy((0, icure_utils_1.setServices)(this.currentContact, [], [
|
|
88
|
+
new api_1.Service(Object.assign(Object.assign({}, swcs[0].service), { content: {}, modified: now, endOfLife: now })),
|
|
89
|
+
]));
|
|
90
|
+
}
|
|
91
|
+
else {
|
|
92
|
+
return this;
|
|
93
|
+
}
|
|
94
|
+
}
|
|
95
|
+
/** returns all services in history that match a selector
|
|
96
|
+
*
|
|
97
|
+
* @param selector a function used to select the services of interest, usually : withLabel("someLabel")
|
|
98
|
+
* @private
|
|
99
|
+
*/
|
|
100
|
+
getServicesInHistory(selector) {
|
|
101
|
+
return [this.currentContact].concat(this.contactsHistory).flatMap((ctc) => {
|
|
102
|
+
var _a, _b;
|
|
103
|
+
return ((_b = (_a = ctc.services) === null || _a === void 0 ? void 0 : _a.filter(selector)) === null || _b === void 0 ? void 0 : _b.map((s) => ({
|
|
104
|
+
service: s,
|
|
105
|
+
contact: ctc,
|
|
106
|
+
}))) || [];
|
|
107
|
+
});
|
|
108
|
+
}
|
|
109
|
+
}
|
|
110
|
+
exports.ICureFormValuesContainer = ICureFormValuesContainer;
|
|
111
|
+
//# sourceMappingURL=formValuesContainer.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"formValuesContainer.js","sourceRoot":"","sources":["../../../../src/components/iqr-form-loader/formValuesContainer.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAAA,oCAAgE;AAChE,qDAAyD;AACzD,yDAAuF;AAGvF,SAAgB,SAAS,CAAC,KAAa;IACtC,OAAO,CAAC,GAAY,EAAE,EAAE,CAAC,GAAG,CAAC,KAAK,KAAK,KAAK,CAAA;AAC7C,CAAC;AAFD,8BAEC;AAYD,MAAa,wBAAwB;IAOpC,YAAY,cAAuB,EAAE,OAAgB,EAAE,eAA0B,EAAE,cAA+D;QACjJ,IAAI,CAAC,eAAe,CAAC,QAAQ,CAAC,OAAO,CAAC,IAAI,OAAO,KAAK,cAAc,EAAE;YACrE,MAAM,IAAI,KAAK,CAAC,wDAAwD,CAAC,CAAA;SACzE;QACD,IAAI,eAAe,CAAC,QAAQ,CAAC,cAAc,CAAC,EAAE;YAC7C,MAAM,IAAI,KAAK,CAAC,mEAAmE,CAAC,CAAA;SACpF;QACD,IAAI,CAAC,cAAc,GAAG,cAAc,CAAA;QACpC,IAAI,CAAC,OAAO,GAAG,OAAO,CAAA;QACtB,IAAI,CAAC,eAAe,GAAG,IAAA,oBAAQ,EAAC,eAAe,EAAE,SAAS,EAAE,MAAM,CAAC,CAAA;QACnE,IAAI,CAAC,cAAc,GAAG,cAAc,CAAA;IACrC,CAAC;IAED,IAAI,CAAC,cAAuB;QAC3B,OAAO,IAAI,wBAAwB,CAAC,cAAc,EAAE,IA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P,OAAA,CAAA,MAAA,MAAA,GAAG,CAAC,QAAQ,0CAAE,MAAM,CAAC,QAAQ,CAAC,0CAAE,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC;gBAC3C,OAAO,EAAE,CAAC;gBACV,OAAO,EAAE,GAAG;aACZ,CAAC,CAAC,KAAI,EAAE,CAAA;SAAA,CACV,CAAA;IACF,CAAC;CACD;AApID,4DAoIC"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./models"), exports);
|
|
18
|
+
__exportStar(require("./formValuesContainer"), exports);
|
|
19
|
+
__exportStar(require("./fieldsValuesProviders"), exports);
|
|
20
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/components/iqr-form-loader/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,2CAAwB;AACxB,wDAAqC;AACrC,0DAAuC"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { Contact, Form, Service } from '@icure/api';
|
|
2
|
+
import { FormValuesContainer } from './formValuesContainer';
|
|
3
|
+
export declare type ServicesHistory = {
|
|
4
|
+
[id: string]: ServiceWithContact[];
|
|
5
|
+
};
|
|
6
|
+
export interface FormHierarchy {
|
|
7
|
+
form: Form;
|
|
8
|
+
formValuesContainer: FormValuesContainer;
|
|
9
|
+
children: FormHierarchy[];
|
|
10
|
+
}
|
|
11
|
+
export interface ServiceWithContact {
|
|
12
|
+
service: Service;
|
|
13
|
+
contact: Contact;
|
|
14
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"models.js","sourceRoot":"","sources":["../../../../src/components/iqr-form-loader/models.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
export { IqrTextFieldSchema } from './schema';
|
|
2
|
+
export { Suggestion } from './suggestion-palette';
|
|
3
|
+
export interface Meta {
|
|
4
|
+
revision: string;
|
|
5
|
+
modified?: number;
|
|
6
|
+
valueDate?: number | null;
|
|
7
|
+
owner?: {
|
|
8
|
+
id: string;
|
|
9
|
+
descr?: string;
|
|
10
|
+
} | null;
|
|
11
|
+
}
|
|
12
|
+
export interface Version {
|
|
13
|
+
revision: string;
|
|
14
|
+
modified?: number;
|
|
15
|
+
value: {
|
|
16
|
+
[language: string]: string;
|
|
17
|
+
};
|
|
18
|
+
}
|
|
19
|
+
export interface VersionedMeta {
|
|
20
|
+
id: string;
|
|
21
|
+
metas: Meta[];
|
|
22
|
+
}
|
|
23
|
+
export interface VersionedValue {
|
|
24
|
+
id: string;
|
|
25
|
+
versions: Version[];
|
|
26
|
+
}
|