@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,490 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
+
};
|
|
8
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
+
};
|
|
11
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
12
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
13
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
14
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
15
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
16
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
17
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
18
|
+
});
|
|
19
|
+
};
|
|
20
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
21
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
22
|
+
};
|
|
23
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
24
|
+
// Import the LitElement base class and html helper function
|
|
25
|
+
const lit_1 = require("lit");
|
|
26
|
+
const decorators_1 = require("lit/decorators");
|
|
27
|
+
const prosemirror_state_1 = require("prosemirror-state");
|
|
28
|
+
const prosemirror_view_1 = require("prosemirror-view");
|
|
29
|
+
const prosemirror_history_1 = require("prosemirror-history");
|
|
30
|
+
const prosemirror_keymap_1 = require("prosemirror-keymap");
|
|
31
|
+
const prosemirror_commands_1 = require("prosemirror-commands");
|
|
32
|
+
const prosemirror_schema_list_1 = require("prosemirror-schema-list");
|
|
33
|
+
const schema_1 = require("./schema");
|
|
34
|
+
const markdown_it_1 = __importDefault(require("markdown-it"));
|
|
35
|
+
const prosemirror_markdown_1 = require("prosemirror-markdown");
|
|
36
|
+
const prosemirror_commands_2 = require("./prosemirror-commands");
|
|
37
|
+
const selection_companion_1 = require("./selection-companion");
|
|
38
|
+
const suggestion_palette_1 = require("./suggestion-palette");
|
|
39
|
+
const caret_fix_plugin_1 = require("./plugin/caret-fix-plugin");
|
|
40
|
+
const prosemirror_utils_1 = require("./prosemirror-utils");
|
|
41
|
+
// @ts-ignore
|
|
42
|
+
const style_scss_1 = __importDefault(require("./styles/style.scss"));
|
|
43
|
+
// @ts-ignore
|
|
44
|
+
const kendo_scss_1 = __importDefault(require("./styles/kendo.scss"));
|
|
45
|
+
const mask_plugin_1 = require("./plugin/mask-plugin");
|
|
46
|
+
const has_content_class_plugin_1 = require("./plugin/has-content-class-plugin");
|
|
47
|
+
const regexp_plugin_1 = require("./plugin/regexp-plugin");
|
|
48
|
+
const no_lodash_1 = require("../../utils/no-lodash");
|
|
49
|
+
const paths_1 = require("./styles/paths");
|
|
50
|
+
const languages_1 = require("../../utils/languages");
|
|
51
|
+
// Extend the LitElement base class
|
|
52
|
+
class IqrTextField extends lit_1.LitElement {
|
|
53
|
+
constructor() {
|
|
54
|
+
super();
|
|
55
|
+
this.suggestionStopWords = new Set();
|
|
56
|
+
this.displayOwnerMenu = false;
|
|
57
|
+
this.suggestions = false;
|
|
58
|
+
this.links = false;
|
|
59
|
+
this.linksProvider = () => Promise.resolve(undefined);
|
|
60
|
+
this.suggestionProvider = () => __awaiter(this, void 0, void 0, function* () { return []; });
|
|
61
|
+
this.ownersProvider = () => __awaiter(this, void 0, void 0, function* () { return []; });
|
|
62
|
+
this.codeColorProvider = () => 'XI';
|
|
63
|
+
this.linkColorProvider = () => 'cat1';
|
|
64
|
+
this.codeContentProvider = (codes) => codes.map((c) => c.code).join(',');
|
|
65
|
+
this.schema = 'styled-text-with-codes';
|
|
66
|
+
this.label = '';
|
|
67
|
+
this.labelPosition = 'float';
|
|
68
|
+
this.placeholder = '';
|
|
69
|
+
this.textRegex = '';
|
|
70
|
+
this.value = '';
|
|
71
|
+
this.defaultLanguage = 'en';
|
|
72
|
+
this.valueProvider = undefined;
|
|
73
|
+
this.metaProvider = undefined;
|
|
74
|
+
this.handleValueChanged = undefined;
|
|
75
|
+
this.handleMetaChanged = undefined;
|
|
76
|
+
this.displayOwnersMenu = false;
|
|
77
|
+
this.ownerInputValue = '';
|
|
78
|
+
this.availableOwners = [];
|
|
79
|
+
this.displayLanguagesMenu = false;
|
|
80
|
+
this.languageInputValue = '';
|
|
81
|
+
this.displayVersionsMenu = false;
|
|
82
|
+
this.displayedLanguage = this.defaultLanguage;
|
|
83
|
+
this.displayedVersion = '0';
|
|
84
|
+
this.availableLanguages = [this.displayedLanguage];
|
|
85
|
+
this.windowListeners = [];
|
|
86
|
+
this.mouseCount = 0;
|
|
87
|
+
this.serviceId = undefined;
|
|
88
|
+
}
|
|
89
|
+
connectedCallback() {
|
|
90
|
+
super.connectedCallback();
|
|
91
|
+
const cmu = this.mouseUp.bind(this);
|
|
92
|
+
const cmd = this.mouseDown.bind(this);
|
|
93
|
+
this.windowListeners.push(['mouseup', cmu], ['mousedown', cmd]);
|
|
94
|
+
window.addEventListener('mouseup', cmu);
|
|
95
|
+
window.addEventListener('mousedown', cmd);
|
|
96
|
+
}
|
|
97
|
+
disconnectedCallback() {
|
|
98
|
+
super.disconnectedCallback();
|
|
99
|
+
this.windowListeners.forEach((wl) => window.removeEventListener(wl[0], wl[1]));
|
|
100
|
+
}
|
|
101
|
+
static get styles() {
|
|
102
|
+
return [style_scss_1.default, kendo_scss_1.default];
|
|
103
|
+
}
|
|
104
|
+
render() {
|
|
105
|
+
var _a, _b, _c, _d;
|
|
106
|
+
return (0, lit_1.html) `
|
|
107
|
+
<div id="root" class="iqr-text-field" data-placeholder=${this.placeholder}>
|
|
108
|
+
<label class="iqr-label ${this.labelPosition}"><span>${this.label}</span></label>
|
|
109
|
+
<div class="iqr-input">
|
|
110
|
+
<div id="editor"></div>
|
|
111
|
+
<div id="extra" class=${'extra' + (this.displayOwnersMenu ? ' forced' : '')}>
|
|
112
|
+
<div class="info">~${this.owner}</div>
|
|
113
|
+
<div class="buttons-container">
|
|
114
|
+
<div class="menu-container">
|
|
115
|
+
<button data-content="${(_a = this.getMeta()) === null || _a === void 0 ? void 0 : _a.owner}" @click="${this.toggleOwnerMenu}" class="btn menu-trigger author">${paths_1.ownerPicto}</button>
|
|
116
|
+
${this.displayOwnersMenu
|
|
117
|
+
? (0, lit_1.html) `
|
|
118
|
+
<div id="menu" class="menu">
|
|
119
|
+
<div class="input-container">${paths_1.searchPicto} <input id="ownerSearch" @input="${this.searchOwner}" /></div>
|
|
120
|
+
${(_b = this.availableOwners) === null || _b === void 0 ? void 0 : _b.map((x) => (0, lit_1.html) `<button @click="${this.handleOwnerButtonClicked(x.id)}" id="${x.id}" class="item">${x.text}</button>`)}
|
|
121
|
+
</div>
|
|
122
|
+
`
|
|
123
|
+
: ''}
|
|
124
|
+
</div>
|
|
125
|
+
<div class="menu-container">
|
|
126
|
+
<button data-content="${(_c = this.getMeta()) === null || _c === void 0 ? void 0 : _c.valueDate}" class="btn date">${paths_1.datePicto}</button>
|
|
127
|
+
</div>
|
|
128
|
+
<div class="menu-container">
|
|
129
|
+
<button data-content="1.0" class="btn version">${paths_1.versionPicto}</button>
|
|
130
|
+
</div>
|
|
131
|
+
<div class="menu-container">
|
|
132
|
+
<button data-content="${this.displayedLanguage}" @click="${this.toggleLanguageMenu}" class="btn menu-trigger language">${paths_1.i18nPicto}</button>
|
|
133
|
+
${this.displayLanguagesMenu
|
|
134
|
+
? (0, lit_1.html) `
|
|
135
|
+
<div id="menu" class="menu">
|
|
136
|
+
<div class="input-container">${paths_1.searchPicto} <input /></div>
|
|
137
|
+
${(_d = this.availableLanguages) === null || _d === void 0 ? void 0 : _d.map((x) => (0, lit_1.html) `<button id="${x}" class="item">${(0, languages_1.languageName)(x)}</button>`)}
|
|
138
|
+
</div>
|
|
139
|
+
`
|
|
140
|
+
: ''}
|
|
141
|
+
</div>
|
|
142
|
+
</div>
|
|
143
|
+
</div>
|
|
144
|
+
</div>
|
|
145
|
+
</div>
|
|
146
|
+
`;
|
|
147
|
+
}
|
|
148
|
+
toggleOwnerMenu() {
|
|
149
|
+
this.displayOwnersMenu = !this.displayOwnersMenu;
|
|
150
|
+
}
|
|
151
|
+
searchOwner(e) {
|
|
152
|
+
const text = e.target.value;
|
|
153
|
+
setTimeout(() => __awaiter(this, void 0, void 0, function* () {
|
|
154
|
+
if (this._ownerSearch.value === text) {
|
|
155
|
+
if (this.ownersProvider) {
|
|
156
|
+
const availableOwners = yield this.ownersProvider(text.split(' '));
|
|
157
|
+
console.log(availableOwners);
|
|
158
|
+
this.availableOwners = availableOwners;
|
|
159
|
+
}
|
|
160
|
+
}
|
|
161
|
+
}), 300);
|
|
162
|
+
}
|
|
163
|
+
handleOwnerButtonClicked(id) {
|
|
164
|
+
this.handleMetaChanged && this.serviceId && this.handleMetaChanged(this.serviceId, { revision: this.displayedVersion, owner: { id } });
|
|
165
|
+
this.displayOwnersMenu = false;
|
|
166
|
+
}
|
|
167
|
+
toggleLanguageMenu() {
|
|
168
|
+
this.displayLanguagesMenu = !this.displayLanguagesMenu;
|
|
169
|
+
}
|
|
170
|
+
mouseDown() {
|
|
171
|
+
this.mouseCount++;
|
|
172
|
+
}
|
|
173
|
+
mouseUp() {
|
|
174
|
+
var _a, _b, _c, _d, _e, _f, _g;
|
|
175
|
+
this.mouseCount = 0;
|
|
176
|
+
if (!((_c = (_b = (_a = this.view) === null || _a === void 0 ? void 0 : _a.dom) === null || _b === void 0 ? void 0 : _b.classList) === null || _c === void 0 ? void 0 : _c.contains('ProseMirror-focused'))) {
|
|
177
|
+
(_g = (_f = (_e = (_d = this.view) === null || _d === void 0 ? void 0 : _d.dom) === null || _e === void 0 ? void 0 : _e.parentElement) === null || _f === void 0 ? void 0 : _f.querySelectorAll('.companion')) === null || _g === void 0 ? void 0 : _g.forEach((x) => {
|
|
178
|
+
;
|
|
179
|
+
x.style.display = 'none';
|
|
180
|
+
});
|
|
181
|
+
}
|
|
182
|
+
}
|
|
183
|
+
firstUpdated() {
|
|
184
|
+
var _a, _b, _c, _d, _e;
|
|
185
|
+
// eslint-disable-next-line @typescript-eslint/no-this-alias
|
|
186
|
+
const cmp = this;
|
|
187
|
+
const pms = (this.proseMirrorSchema = (0, schema_1.createSchema)(this.schema, (t, c, isC) => (isC ? this.codeColorProvider(t, c) : this.linkColorProvider(t, c)), this.codeContentProvider));
|
|
188
|
+
this.parser = this.makeParser(pms);
|
|
189
|
+
this.container = ((_a = this.shadowRoot) === null || _a === void 0 ? void 0 : _a.getElementById('editor')) || undefined;
|
|
190
|
+
if (this.container) {
|
|
191
|
+
const br = pms.nodes.hard_break;
|
|
192
|
+
const hardBreak = (0, prosemirror_commands_1.chainCommands)(prosemirror_commands_1.exitCode, (state, dispatch) => {
|
|
193
|
+
dispatch && dispatch(state.tr.replaceSelectionWith(br.create()).scrollIntoView());
|
|
194
|
+
return true;
|
|
195
|
+
});
|
|
196
|
+
const replaceRangeWithSuggestion = (from, to, sug) => __awaiter(this, void 0, void 0, function* () {
|
|
197
|
+
const link = yield this.linksProvider(sug);
|
|
198
|
+
return (link && cmp.view && cmp.view.state.tr.replaceWith(from, to, pms.text(sug.text, [pms.mark('link', link)]))) || undefined;
|
|
199
|
+
});
|
|
200
|
+
const headingsKeymap = (0, prosemirror_keymap_1.keymap)([1, 2, 3, 4, 5, 6].reduce((acc, idx) => {
|
|
201
|
+
return Object.assign(acc, { [`Mod-ctrl-${idx}`]: (0, prosemirror_commands_1.setBlockType)(pms.nodes.heading, { level: '' + idx }) });
|
|
202
|
+
}, {}));
|
|
203
|
+
const providedValue = this.valueProvider && this.valueProvider();
|
|
204
|
+
this.displayedVersion = ((_c = (_b = providedValue === null || providedValue === void 0 ? void 0 : providedValue.versions) === null || _b === void 0 ? void 0 : _b[0]) === null || _c === void 0 ? void 0 : _c.revision) || '0';
|
|
205
|
+
const displayedVersionedValue = (_e = (_d = providedValue === null || providedValue === void 0 ? void 0 : providedValue.versions) === null || _d === void 0 ? void 0 : _d[0]) === null || _e === void 0 ? void 0 : _e.value;
|
|
206
|
+
this.serviceId = providedValue === null || providedValue === void 0 ? void 0 : providedValue.id;
|
|
207
|
+
this.availableLanguages = displayedVersionedValue && Object.keys(displayedVersionedValue).length ? (0, no_lodash_1.sorted)(Object.keys(displayedVersionedValue)) : this.availableLanguages;
|
|
208
|
+
if (!this.availableLanguages.includes(this.displayedLanguage)) {
|
|
209
|
+
this.displayedLanguage = this.availableLanguages[0];
|
|
210
|
+
}
|
|
211
|
+
const parsedDoc = this.parser.parse(this.valueProvider ? (displayedVersionedValue === null || displayedVersionedValue === void 0 ? void 0 : displayedVersionedValue[this.displayedLanguage]) || '' : this.value);
|
|
212
|
+
this.view = new prosemirror_view_1.EditorView(this.container, {
|
|
213
|
+
state: prosemirror_state_1.EditorState.create({
|
|
214
|
+
doc: parsedDoc,
|
|
215
|
+
schema: this.proseMirrorSchema,
|
|
216
|
+
plugins: [
|
|
217
|
+
(0, caret_fix_plugin_1.caretFixPlugin)(),
|
|
218
|
+
(0, prosemirror_history_1.history)(),
|
|
219
|
+
this.links
|
|
220
|
+
? new prosemirror_state_1.Plugin({
|
|
221
|
+
view(editorView) {
|
|
222
|
+
return new selection_companion_1.SelectionCompanion(editorView, () => cmp.mouseCount > 0);
|
|
223
|
+
},
|
|
224
|
+
})
|
|
225
|
+
: null,
|
|
226
|
+
this.suggestions
|
|
227
|
+
? new prosemirror_state_1.Plugin({
|
|
228
|
+
view(editorView) {
|
|
229
|
+
return (cmp.suggestionPalette = new suggestion_palette_1.SuggestionPalette(pms, editorView, (terms) => cmp.suggestionProvider(terms), () => cmp.suggestionStopWords));
|
|
230
|
+
},
|
|
231
|
+
})
|
|
232
|
+
: null,
|
|
233
|
+
this.suggestions
|
|
234
|
+
? (0, prosemirror_keymap_1.keymap)({
|
|
235
|
+
Tab: () => {
|
|
236
|
+
return (cmp.suggestionPalette && this.view && cmp.suggestionPalette.focusOrInsert(this.view, replaceRangeWithSuggestion)) || false;
|
|
237
|
+
},
|
|
238
|
+
ArrowUp: () => {
|
|
239
|
+
return (cmp.suggestionPalette && cmp.suggestionPalette.arrowUp()) || false;
|
|
240
|
+
},
|
|
241
|
+
ArrowDown: () => {
|
|
242
|
+
return (cmp.suggestionPalette && cmp.suggestionPalette.arrowDown()) || false;
|
|
243
|
+
},
|
|
244
|
+
Enter: () => {
|
|
245
|
+
return (cmp.suggestionPalette && this.view && cmp.suggestionPalette.insert(this.view, replaceRangeWithSuggestion)) || false;
|
|
246
|
+
},
|
|
247
|
+
})
|
|
248
|
+
: null,
|
|
249
|
+
(0, prosemirror_keymap_1.keymap)({ 'Mod-z': prosemirror_history_1.undo, 'Mod-Shift-z': prosemirror_history_1.redo }),
|
|
250
|
+
(0, prosemirror_keymap_1.keymap)(Object.assign({}, pms.marks.strong ? { 'Mod-b': (0, prosemirror_commands_1.toggleMark)(pms.marks.strong) } : {}, pms.marks.em ? { 'Mod-i': (0, prosemirror_commands_1.toggleMark)(pms.marks.em) } : {}, pms.nodes.paragraph ? { 'Alt-ArrowUp': prosemirror_commands_1.joinUp } : {}, pms.nodes.paragraph ? { 'Alt-ArrowDown': prosemirror_commands_1.joinDown } : {}, pms.nodes.paragraph ? { 'Alt-Enter': hardBreak } : {}, pms.nodes.paragraph ? { 'Shift-Enter': hardBreak } : {}, pms.nodes.ordered_list ? { 'Shift-ctrl-1': (0, prosemirror_schema_list_1.wrapInList)(pms.nodes.ordered_list) } : {}, pms.nodes.bullet_list ? { 'Shift-ctrl-*': (0, prosemirror_schema_list_1.wrapInList)(pms.nodes.bullet_list) } : {}, pms.nodes.blockquote ? { 'Shift-ctrl-w': (0, prosemirror_commands_2.wrapInIfNeeded)(pms.nodes.blockquote) } : {}, pms.nodes.blockquote ? { 'Shift-ctrl-u': (0, prosemirror_commands_2.unwrapFrom)(pms.nodes.blockquote) } : {}, pms.nodes.paragraph ? { 'Mod-ctrl-0': (0, prosemirror_commands_1.setBlockType)(pms.nodes.paragraph) } : {}, pms.nodes.paragraph ? { 'Shift-ctrl-0': (0, prosemirror_commands_1.setBlockType)(pms.nodes.paragraph) } : {}, pms.nodes.list_item ? { Enter: (0, prosemirror_schema_list_1.splitListItem)(pms.nodes.list_item) } : {}, pms.nodes.ordered_list || pms.nodes.bullet_list ? { 'Mod-(': (0, prosemirror_schema_list_1.liftListItem)(pms.nodes.list_item) } : {}, pms.nodes.ordered_list || pms.nodes.bullet_list ? { 'Mod-[': (0, prosemirror_schema_list_1.liftListItem)(pms.nodes.list_item) } : {}, pms.nodes.ordered_list || pms.nodes.bullet_list ? { 'Mod-)': (0, prosemirror_schema_list_1.sinkListItem)(pms.nodes.list_item) } : {}, pms.nodes.ordered_list || pms.nodes.bullet_list ? { 'Mod-]': (0, prosemirror_schema_list_1.sinkListItem)(pms.nodes.list_item) } : {})),
|
|
251
|
+
pms.nodes.heading ? headingsKeymap : null,
|
|
252
|
+
(0, mask_plugin_1.maskPlugin)(),
|
|
253
|
+
(0, regexp_plugin_1.regexpPlugin)(),
|
|
254
|
+
(0, has_content_class_plugin_1.hasContentClassPlugin)(this.shadowRoot || undefined),
|
|
255
|
+
(0, prosemirror_keymap_1.keymap)(prosemirror_commands_1.baseKeymap),
|
|
256
|
+
]
|
|
257
|
+
.filter((x) => !!x)
|
|
258
|
+
.map((x) => x),
|
|
259
|
+
}),
|
|
260
|
+
dispatchTransaction: (tr) => {
|
|
261
|
+
var _a, _b;
|
|
262
|
+
this.view && this.view.updateState(this.view.state.apply(tr));
|
|
263
|
+
//current state as json in text area
|
|
264
|
+
//this.view && console.log(JSON.stringify(this.view.state.doc.toJSON(), null, 2));
|
|
265
|
+
this.view &&
|
|
266
|
+
this.handleValueChanged &&
|
|
267
|
+
this.handleValueChanged(this.displayedLanguage, (_b = (_a = this.serializer) === null || _a === void 0 ? void 0 : _a.serialize(this.view.state.doc)) !== null && _b !== void 0 ? _b : this.view.state.doc.textContent);
|
|
268
|
+
},
|
|
269
|
+
});
|
|
270
|
+
}
|
|
271
|
+
}
|
|
272
|
+
makeParser(pms) {
|
|
273
|
+
const tokenizer = (0, markdown_it_1.default)('commonmark', { html: false });
|
|
274
|
+
return this.schema === 'date'
|
|
275
|
+
? {
|
|
276
|
+
parse: (value) => pms.node('paragraph', {}, [pms.node('date', {}, value ? [pms.text(value)] : [])]),
|
|
277
|
+
}
|
|
278
|
+
: this.schema === 'time'
|
|
279
|
+
? {
|
|
280
|
+
parse: (value) => pms.node('paragraph', {}, [pms.node('time', {}, value ? [pms.text(value)] : [])]),
|
|
281
|
+
}
|
|
282
|
+
: this.schema === 'measure'
|
|
283
|
+
? {
|
|
284
|
+
parse: (value) => {
|
|
285
|
+
const decimal = value ? value.split(' ')[0] : '';
|
|
286
|
+
const unit = value ? value.split(' ')[1] : '';
|
|
287
|
+
return pms.node('paragraph', {}, [
|
|
288
|
+
pms.node('decimal', {}, decimal && decimal.length ? [pms.text(decimal)] : [pms.text(' ')]),
|
|
289
|
+
pms.node('unit', {}, unit && unit.length ? [pms.text(unit)] : [pms.text(' ')]),
|
|
290
|
+
]);
|
|
291
|
+
},
|
|
292
|
+
}
|
|
293
|
+
: this.schema === 'date-time'
|
|
294
|
+
? {
|
|
295
|
+
parse: (value) => {
|
|
296
|
+
const date = value ? value.split(' ')[0] : '';
|
|
297
|
+
const time = value ? value.split(' ')[1] : '';
|
|
298
|
+
return pms.node('paragraph', {}, [
|
|
299
|
+
pms.node('date', {}, date && date.length ? [pms.text(date)] : [pms.text(' ')]),
|
|
300
|
+
pms.node('time', {}, time && time.length ? [pms.text(time)] : [pms.text(' ')]),
|
|
301
|
+
]);
|
|
302
|
+
},
|
|
303
|
+
}
|
|
304
|
+
: this.schema === 'text-document'
|
|
305
|
+
? new prosemirror_markdown_1.MarkdownParser(pms, (0, markdown_it_1.default)('commonmark', { html: false }), {
|
|
306
|
+
blockquote: { block: 'blockquote' },
|
|
307
|
+
paragraph: { block: 'paragraph' },
|
|
308
|
+
list_item: { block: 'list_item' },
|
|
309
|
+
bullet_list: { block: 'bullet_list' },
|
|
310
|
+
ordered_list: { block: 'ordered_list', getAttrs: (tok) => ({ order: +(tok.attrGet('start') || 1) }) },
|
|
311
|
+
heading: { block: 'heading', getAttrs: (tok) => ({ level: +tok.tag.slice(1) }) },
|
|
312
|
+
hr: { node: 'horizontal_rule' },
|
|
313
|
+
image: {
|
|
314
|
+
node: 'image',
|
|
315
|
+
getAttrs: (tok) => {
|
|
316
|
+
var _a;
|
|
317
|
+
return ({
|
|
318
|
+
src: tok.attrGet('src'),
|
|
319
|
+
title: tok.attrGet('title') || null,
|
|
320
|
+
alt: ((_a = (tok.children || [])[0]) === null || _a === void 0 ? void 0 : _a.content) || null,
|
|
321
|
+
});
|
|
322
|
+
},
|
|
323
|
+
},
|
|
324
|
+
hardBreak: { node: 'hard_break' },
|
|
325
|
+
em: (0, prosemirror_utils_1.hasMark)(pms.spec.marks, 'em') ? { mark: 'em' } : { ignore: true },
|
|
326
|
+
strong: (0, prosemirror_utils_1.hasMark)(pms.spec.marks, 'strong') ? { mark: 'strong' } : { ignore: true },
|
|
327
|
+
link: (0, prosemirror_utils_1.hasMark)(pms.spec.marks, 'link')
|
|
328
|
+
? {
|
|
329
|
+
mark: 'link',
|
|
330
|
+
getAttrs: (tok) => ({
|
|
331
|
+
href: tok.attrGet('href'),
|
|
332
|
+
title: tok.attrGet('title') || null,
|
|
333
|
+
}),
|
|
334
|
+
}
|
|
335
|
+
: { ignore: true },
|
|
336
|
+
})
|
|
337
|
+
: new prosemirror_markdown_1.MarkdownParser(pms, {
|
|
338
|
+
parse: (src, env) => {
|
|
339
|
+
return tokenizer.parse(src, env).filter((t) => !t.type.startsWith('paragraph_'));
|
|
340
|
+
},
|
|
341
|
+
}, {
|
|
342
|
+
em: (0, prosemirror_utils_1.hasMark)(pms.spec.marks, 'em') ? { mark: 'em' } : { ignore: true },
|
|
343
|
+
strong: (0, prosemirror_utils_1.hasMark)(pms.spec.marks, 'strong') ? { mark: 'strong' } : { ignore: true },
|
|
344
|
+
link: (0, prosemirror_utils_1.hasMark)(pms.spec.marks, 'link')
|
|
345
|
+
? {
|
|
346
|
+
mark: 'link',
|
|
347
|
+
getAttrs: (tok) => ({
|
|
348
|
+
href: tok.attrGet('href'),
|
|
349
|
+
title: tok.attrGet('title') || null,
|
|
350
|
+
}),
|
|
351
|
+
}
|
|
352
|
+
: { ignore: true },
|
|
353
|
+
});
|
|
354
|
+
}
|
|
355
|
+
getMeta() {
|
|
356
|
+
var _a, _b;
|
|
357
|
+
return (this.metaProvider && ((_b = (_a = this.metaProvider()) === null || _a === void 0 ? void 0 : _a.metas) === null || _b === void 0 ? void 0 : _b.find((vm) => vm.revision === this.displayedVersion))) || undefined;
|
|
358
|
+
}
|
|
359
|
+
}
|
|
360
|
+
__decorate([
|
|
361
|
+
(0, decorators_1.property)(),
|
|
362
|
+
__metadata("design:type", Set)
|
|
363
|
+
], IqrTextField.prototype, "suggestionStopWords", void 0);
|
|
364
|
+
__decorate([
|
|
365
|
+
(0, decorators_1.property)({ type: Boolean }),
|
|
366
|
+
__metadata("design:type", Object)
|
|
367
|
+
], IqrTextField.prototype, "displayOwnerMenu", void 0);
|
|
368
|
+
__decorate([
|
|
369
|
+
(0, decorators_1.property)({ type: Boolean }),
|
|
370
|
+
__metadata("design:type", Object)
|
|
371
|
+
], IqrTextField.prototype, "suggestions", void 0);
|
|
372
|
+
__decorate([
|
|
373
|
+
(0, decorators_1.property)({ type: Boolean }),
|
|
374
|
+
__metadata("design:type", Object)
|
|
375
|
+
], IqrTextField.prototype, "links", void 0);
|
|
376
|
+
__decorate([
|
|
377
|
+
(0, decorators_1.property)(),
|
|
378
|
+
__metadata("design:type", Function)
|
|
379
|
+
], IqrTextField.prototype, "linksProvider", void 0);
|
|
380
|
+
__decorate([
|
|
381
|
+
(0, decorators_1.property)(),
|
|
382
|
+
__metadata("design:type", Function)
|
|
383
|
+
], IqrTextField.prototype, "suggestionProvider", void 0);
|
|
384
|
+
__decorate([
|
|
385
|
+
(0, decorators_1.property)(),
|
|
386
|
+
__metadata("design:type", Function)
|
|
387
|
+
], IqrTextField.prototype, "ownersProvider", void 0);
|
|
388
|
+
__decorate([
|
|
389
|
+
(0, decorators_1.property)(),
|
|
390
|
+
__metadata("design:type", Function)
|
|
391
|
+
], IqrTextField.prototype, "codeColorProvider", void 0);
|
|
392
|
+
__decorate([
|
|
393
|
+
(0, decorators_1.property)(),
|
|
394
|
+
__metadata("design:type", Function)
|
|
395
|
+
], IqrTextField.prototype, "linkColorProvider", void 0);
|
|
396
|
+
__decorate([
|
|
397
|
+
(0, decorators_1.property)(),
|
|
398
|
+
__metadata("design:type", Function)
|
|
399
|
+
], IqrTextField.prototype, "codeContentProvider", void 0);
|
|
400
|
+
__decorate([
|
|
401
|
+
(0, decorators_1.property)(),
|
|
402
|
+
__metadata("design:type", String)
|
|
403
|
+
], IqrTextField.prototype, "schema", void 0);
|
|
404
|
+
__decorate([
|
|
405
|
+
(0, decorators_1.property)(),
|
|
406
|
+
__metadata("design:type", Object)
|
|
407
|
+
], IqrTextField.prototype, "label", void 0);
|
|
408
|
+
__decorate([
|
|
409
|
+
(0, decorators_1.property)(),
|
|
410
|
+
__metadata("design:type", String)
|
|
411
|
+
], IqrTextField.prototype, "labelPosition", void 0);
|
|
412
|
+
__decorate([
|
|
413
|
+
(0, decorators_1.property)(),
|
|
414
|
+
__metadata("design:type", Object)
|
|
415
|
+
], IqrTextField.prototype, "placeholder", void 0);
|
|
416
|
+
__decorate([
|
|
417
|
+
(0, decorators_1.property)(),
|
|
418
|
+
__metadata("design:type", Object)
|
|
419
|
+
], IqrTextField.prototype, "textRegex", void 0);
|
|
420
|
+
__decorate([
|
|
421
|
+
(0, decorators_1.property)(),
|
|
422
|
+
__metadata("design:type", Object)
|
|
423
|
+
], IqrTextField.prototype, "value", void 0);
|
|
424
|
+
__decorate([
|
|
425
|
+
(0, decorators_1.property)(),
|
|
426
|
+
__metadata("design:type", Object)
|
|
427
|
+
], IqrTextField.prototype, "defaultLanguage", void 0);
|
|
428
|
+
__decorate([
|
|
429
|
+
(0, decorators_1.property)(),
|
|
430
|
+
__metadata("design:type", String)
|
|
431
|
+
], IqrTextField.prototype, "owner", void 0);
|
|
432
|
+
__decorate([
|
|
433
|
+
(0, decorators_1.property)(),
|
|
434
|
+
__metadata("design:type", Function)
|
|
435
|
+
], IqrTextField.prototype, "valueProvider", void 0);
|
|
436
|
+
__decorate([
|
|
437
|
+
(0, decorators_1.property)(),
|
|
438
|
+
__metadata("design:type", Function)
|
|
439
|
+
], IqrTextField.prototype, "metaProvider", void 0);
|
|
440
|
+
__decorate([
|
|
441
|
+
(0, decorators_1.property)(),
|
|
442
|
+
__metadata("design:type", Function)
|
|
443
|
+
], IqrTextField.prototype, "handleValueChanged", void 0);
|
|
444
|
+
__decorate([
|
|
445
|
+
(0, decorators_1.property)(),
|
|
446
|
+
__metadata("design:type", Function)
|
|
447
|
+
], IqrTextField.prototype, "handleMetaChanged", void 0);
|
|
448
|
+
__decorate([
|
|
449
|
+
(0, decorators_1.state)(),
|
|
450
|
+
__metadata("design:type", Object)
|
|
451
|
+
], IqrTextField.prototype, "displayOwnersMenu", void 0);
|
|
452
|
+
__decorate([
|
|
453
|
+
(0, decorators_1.state)(),
|
|
454
|
+
__metadata("design:type", Object)
|
|
455
|
+
], IqrTextField.prototype, "ownerInputValue", void 0);
|
|
456
|
+
__decorate([
|
|
457
|
+
(0, decorators_1.state)(),
|
|
458
|
+
__metadata("design:type", Array)
|
|
459
|
+
], IqrTextField.prototype, "availableOwners", void 0);
|
|
460
|
+
__decorate([
|
|
461
|
+
(0, decorators_1.state)(),
|
|
462
|
+
__metadata("design:type", Object)
|
|
463
|
+
], IqrTextField.prototype, "displayLanguagesMenu", void 0);
|
|
464
|
+
__decorate([
|
|
465
|
+
(0, decorators_1.state)(),
|
|
466
|
+
__metadata("design:type", Object)
|
|
467
|
+
], IqrTextField.prototype, "languageInputValue", void 0);
|
|
468
|
+
__decorate([
|
|
469
|
+
(0, decorators_1.state)(),
|
|
470
|
+
__metadata("design:type", Object)
|
|
471
|
+
], IqrTextField.prototype, "displayVersionsMenu", void 0);
|
|
472
|
+
__decorate([
|
|
473
|
+
(0, decorators_1.state)(),
|
|
474
|
+
__metadata("design:type", Object)
|
|
475
|
+
], IqrTextField.prototype, "displayedLanguage", void 0);
|
|
476
|
+
__decorate([
|
|
477
|
+
(0, decorators_1.state)(),
|
|
478
|
+
__metadata("design:type", Object)
|
|
479
|
+
], IqrTextField.prototype, "displayedVersion", void 0);
|
|
480
|
+
__decorate([
|
|
481
|
+
(0, decorators_1.state)(),
|
|
482
|
+
__metadata("design:type", Object)
|
|
483
|
+
], IqrTextField.prototype, "availableLanguages", void 0);
|
|
484
|
+
__decorate([
|
|
485
|
+
(0, decorators_1.query)('#ownerSearch'),
|
|
486
|
+
__metadata("design:type", HTMLInputElement)
|
|
487
|
+
], IqrTextField.prototype, "_ownerSearch", void 0);
|
|
488
|
+
// Register the new element with the browser.
|
|
489
|
+
customElements.define('iqr-text-field', IqrTextField);
|
|
490
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/components/iqr-text-field/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;AAAA,4DAA4D;AAC5D,6BAAsC;AACtC,+CAAuD;AACvD,yDAAuD;AACvD,uDAA6C;AAE7C,6DAAyD;AACzD,2DAA2C;AAC3C,+DAAsH;AACtH,qEAA+F;AAE/F,qCAA2D;AAC3D,8DAAoC;AACpC,+DAAyE;AACzE,iEAAmE;AACnE,+DAA0D;AAC1D,6DAAoE;AACpE,gEAA0D;AAC1D,2DAA6C;AAE7C,aAAa;AACb,qEAAyC;AACzC,aAAa;AACb,qEAA0C;AAE1C,sDAAiD;AACjD,gFAAyE;AACzE,0DAAqD;AACrD,qDAA8C;AAC9C,0CAA4F;AAC5F,qDAAoD;AAkCpD,mCAAmC;AACnC,MAAM,YAAa,SAAQ,gBAAU;IAoDpC;QACC,KAAK,EAAE,CAAA;QApDI,wBAAmB,GAAgB,IAAI,GAAG,EAAU,CAAA;QACnC,qBAAgB,GAAG,KAAK,CAAA;QACxB,gBAAW,GAAG,KAAK,CAAA;QACnB,UAAK,GAAG,KAAK,CAAA;QAC9B,kBAAa,GAA+H,GAAG,EAAE,CAC5J,OAAO,CAAC,OAAO,CAAC,SAAS,CAAC,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2CAAW;AACV;IAAX,IAAA,qBAAQ,GAAE;;qDAAuB;AACtB;IAAX,IAAA,qBAAQ,GAAE;;2CAAe;AAEd;IAAX,IAAA,qBAAQ,GAAE;;mDAA6D;AAC5D;IAAX,IAAA,qBAAQ,GAAE;;kDAA2D;AAC1D;IAAX,IAAA,qBAAQ,GAAE;;wDAA2E;AAC1E;IAAX,IAAA,qBAAQ,GAAE;;uDAAiE;AAEnE;IAAR,IAAA,kBAAK,GAAE;;uDAAoC;AACnC;IAAR,IAAA,kBAAK,GAAE;;qDAA+B;AAC9B;IAAR,IAAA,kBAAK,GAAE;;qDAA6C;AAE5C;IAAR,IAAA,kBAAK,GAAE;;0DAAuC;AACtC;IAAR,IAAA,kBAAK,GAAE;;wDAAkC;AAEjC;IAAR,IAAA,kBAAK,GAAE;;yDAAsC;AAErC;IAAR,IAAA,kBAAK,GAAE;;uDAAmD;AAClD;IAAR,IAAA,kBAAK,GAAE;;sDAAiC;AAEhC;IAAR,IAAA,kBAAK,GAAE;;wDAAwD;AAoCzC;IAAtB,IAAA,kBAAK,EAAC,cAAc,CAAC;8BAAgB,gBAAgB;kDAAA;AAiTvD,6CAA6C;AAC7C,cAAc,CAAC,MAAM,CAAC,gBAAgB,EAAE,YAAY,CAAC,CAAA"}
|
|
@@ -2,23 +2,28 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.caretFixPlugin = void 0;
|
|
4
4
|
const prosemirror_state_1 = require("prosemirror-state");
|
|
5
|
-
const caretFixPlugin = ()
|
|
5
|
+
const caretFixPlugin = function () {
|
|
6
6
|
let focusing = false;
|
|
7
7
|
return new prosemirror_state_1.Plugin({
|
|
8
8
|
props: {
|
|
9
9
|
handleDOMEvents: {
|
|
10
|
-
focus: view => {
|
|
10
|
+
focus: (view) => {
|
|
11
11
|
if (focusing) {
|
|
12
12
|
focusing = false;
|
|
13
13
|
}
|
|
14
14
|
else {
|
|
15
15
|
focusing = true;
|
|
16
|
-
setTimeout(() => {
|
|
16
|
+
setTimeout(() => {
|
|
17
|
+
;
|
|
18
|
+
view.dom.blur();
|
|
19
|
+
view.dom.focus();
|
|
20
|
+
}, 0);
|
|
17
21
|
}
|
|
18
22
|
return false;
|
|
19
|
-
}
|
|
20
|
-
}
|
|
21
|
-
}
|
|
23
|
+
},
|
|
24
|
+
},
|
|
25
|
+
},
|
|
22
26
|
});
|
|
23
27
|
};
|
|
24
28
|
exports.caretFixPlugin = caretFixPlugin;
|
|
29
|
+
//# sourceMappingURL=caret-fix-plugin.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"caret-fix-plugin.js","sourceRoot":"","sources":["../../../../../src/components/iqr-text-field/plugin/caret-fix-plugin.ts"],"names":[],"mappings":";;;AAAA,yDAA0C;AACnC,MAAM,cAAc,GAAG;IAC7B,IAAI,QAAQ,GAAG,KAAK,CAAA;IACpB,OAAO,IAAI,0BAAM,CAAC;QACjB,KAAK,EAAE;YACN,eAAe,EAAE;gBAChB,KAAK,EAAE,CAAC,IAAI,EAAE,EAAE;oBACf,IAAI,QAAQ,EAAE;wBACb,QAAQ,GAAG,KAAK,CAAA;qBAChB;yBAAM;wBACN,QAAQ,GAAG,IAAI,CAAA;wBACf,UAAU,CAAC,GAAG,EAAE;4BACf,CAAC;4BAAC,IAAI,CAAC,GAAmB,CAAC,IAAI,EAAE,CAChC;4BAAC,IAAI,CAAC,GAAmB,CAAC,KAAK,EAAE,CAAA;wBACnC,CAAC,EAAE,CAAC,CAAC,CAAA;qBACL;oBACD,OAAO,KAAK,CAAA;gBACb,CAAC;aACD;SACD;KACD,CAAC,CAAA;AACH,CAAC,CAAA;AApBY,QAAA,cAAc,kBAoB1B"}
|
|
@@ -2,18 +2,21 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.hasContentClassPlugin = void 0;
|
|
4
4
|
const prosemirror_state_1 = require("prosemirror-state");
|
|
5
|
-
const hasContentClassPlugin = (root)
|
|
5
|
+
const hasContentClassPlugin = function (root) {
|
|
6
6
|
return new prosemirror_state_1.Plugin({
|
|
7
7
|
view: (v) => {
|
|
8
8
|
var _a, _b;
|
|
9
9
|
v.state.doc.textContent && v.state.doc.textContent.length && ((_b = (_a = root === null || root === void 0 ? void 0 : root.getElementById('root')) === null || _a === void 0 ? void 0 : _a.classList) === null || _b === void 0 ? void 0 : _b.add('has-content'));
|
|
10
10
|
return {
|
|
11
|
-
update: (v
|
|
11
|
+
update: (v) => {
|
|
12
12
|
var _a, _b, _c, _d;
|
|
13
|
-
v.state.doc.textContent && v.state.doc.textContent.length
|
|
14
|
-
|
|
13
|
+
v.state.doc.textContent && v.state.doc.textContent.length
|
|
14
|
+
? (_b = (_a = root === null || root === void 0 ? void 0 : root.getElementById('root')) === null || _a === void 0 ? void 0 : _a.classList) === null || _b === void 0 ? void 0 : _b.add('has-content')
|
|
15
|
+
: (_d = (_c = root === null || root === void 0 ? void 0 : root.getElementById('root')) === null || _c === void 0 ? void 0 : _c.classList) === null || _d === void 0 ? void 0 : _d.remove('has-content');
|
|
16
|
+
},
|
|
15
17
|
};
|
|
16
|
-
}
|
|
18
|
+
},
|
|
17
19
|
});
|
|
18
20
|
};
|
|
19
21
|
exports.hasContentClassPlugin = hasContentClassPlugin;
|
|
22
|
+
//# sourceMappingURL=has-content-class-plugin.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"has-content-class-plugin.js","sourceRoot":"","sources":["../../../../../src/components/iqr-text-field/plugin/has-content-class-plugin.ts"],"names":[],"mappings":";;;AAAA,yDAA0C;AAEnC,MAAM,qBAAqB,GAAG,UAAU,IAAuB;IACrE,OAAO,IAAI,0BAAM,CAAC;QACjB,IAAI,EAAE,CAAC,CAAa,EAAE,EAAE;;YACvB,CAAC,CAAC,KAAK,CAAC,GAAG,CAAC,WAAW,IAAI,CAAC,CAAC,KAAK,CAAC,GAAG,CAAC,WAAW,CAAC,MAAM,KAAI,MAAA,MAAC,IAAI,aAAJ,IAAI,uBAAJ,IAAI,CAAE,cAAc,CAAC,MAAM,CAAiB,0CAAE,SAAS,0CAAE,GAAG,CAAC,aAAa,CAAC,CAAA,CAAA;YACzI,OAAO;gBACN,MAAM,EAAE,CAAC,CAAa,EAAE,EAAE;;oBACzB,CAAC,CAAC,KAAK,CAAC,GAAG,CAAC,WAAW,IAAI,CAAC,CAAC,KAAK,CAAC,GAAG,CAAC,WAAW,CAAC,MAAM;wBACxD,CAAC,CAAC,MAAA,MAAC,IAAI,aAAJ,IAAI,uBAAJ,IAAI,CAAE,cAAc,CAAC,MAAM,CAAiB,0CAAE,SAAS,0CAAE,GAAG,CAAC,aAAa,CAAC;wBAC9E,CAAC,CAAC,MAAA,MAAC,IAAI,aAAJ,IAAI,uBAAJ,IAAI,CAAE,cAAc,CAAC,MAAM,CAAiB,0CAAE,SAAS,0CAAE,MAAM,CAAC,aAAa,CAAC,CAAA;gBACnF,CAAC;aACD,CAAA;QACF,CAAC;KACD,CAAC,CAAA;AACH,CAAC,CAAA;AAbY,QAAA,qBAAqB,yBAajC"}
|