@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,89 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.getDateTimeSpec = exports.getTimeSpec = exports.getDateSpec = void 0;
|
|
4
|
+
function getDateSpec() {
|
|
5
|
+
return {
|
|
6
|
+
topNode: 'paragraph',
|
|
7
|
+
nodes: {
|
|
8
|
+
paragraph: {
|
|
9
|
+
content: 'date',
|
|
10
|
+
},
|
|
11
|
+
date: {
|
|
12
|
+
content: 'inline*',
|
|
13
|
+
group: 'block',
|
|
14
|
+
parseDOM: [{ tag: 'span' }],
|
|
15
|
+
toDOM() {
|
|
16
|
+
return ['span', 0];
|
|
17
|
+
},
|
|
18
|
+
regexp: '[0-9]',
|
|
19
|
+
mask: '--/--/----',
|
|
20
|
+
},
|
|
21
|
+
text: {
|
|
22
|
+
group: 'inline',
|
|
23
|
+
},
|
|
24
|
+
},
|
|
25
|
+
marks: {},
|
|
26
|
+
};
|
|
27
|
+
}
|
|
28
|
+
exports.getDateSpec = getDateSpec;
|
|
29
|
+
function getTimeSpec() {
|
|
30
|
+
return {
|
|
31
|
+
topNode: 'paragraph',
|
|
32
|
+
nodes: {
|
|
33
|
+
paragraph: {
|
|
34
|
+
content: 'time',
|
|
35
|
+
},
|
|
36
|
+
time: {
|
|
37
|
+
content: 'inline*',
|
|
38
|
+
group: 'block',
|
|
39
|
+
parseDOM: [{ tag: 'span' }],
|
|
40
|
+
toDOM() {
|
|
41
|
+
return ['span', 0];
|
|
42
|
+
},
|
|
43
|
+
regexp: '[0-9]',
|
|
44
|
+
mask: '--:--:--',
|
|
45
|
+
},
|
|
46
|
+
text: {
|
|
47
|
+
group: 'inline',
|
|
48
|
+
},
|
|
49
|
+
},
|
|
50
|
+
marks: {},
|
|
51
|
+
};
|
|
52
|
+
}
|
|
53
|
+
exports.getTimeSpec = getTimeSpec;
|
|
54
|
+
function getDateTimeSpec() {
|
|
55
|
+
return {
|
|
56
|
+
topNode: 'paragraph',
|
|
57
|
+
nodes: {
|
|
58
|
+
paragraph: {
|
|
59
|
+
content: 'date time',
|
|
60
|
+
},
|
|
61
|
+
date: {
|
|
62
|
+
content: 'inline*',
|
|
63
|
+
group: 'block',
|
|
64
|
+
parseDOM: [{ tag: 'span' }],
|
|
65
|
+
toDOM() {
|
|
66
|
+
return ['span', { class: 'date' }, 0];
|
|
67
|
+
},
|
|
68
|
+
regexp: '[0-9]',
|
|
69
|
+
mask: '--/--/----',
|
|
70
|
+
},
|
|
71
|
+
time: {
|
|
72
|
+
content: 'inline*',
|
|
73
|
+
group: 'block',
|
|
74
|
+
parseDOM: [{ tag: 'span' }],
|
|
75
|
+
toDOM() {
|
|
76
|
+
return ['span', { class: 'time' }, 0];
|
|
77
|
+
},
|
|
78
|
+
regexp: '[0-9]',
|
|
79
|
+
mask: '--:--:--',
|
|
80
|
+
},
|
|
81
|
+
text: {
|
|
82
|
+
group: 'inline',
|
|
83
|
+
},
|
|
84
|
+
},
|
|
85
|
+
marks: {},
|
|
86
|
+
};
|
|
87
|
+
}
|
|
88
|
+
exports.getDateTimeSpec = getDateTimeSpec;
|
|
89
|
+
//# sourceMappingURL=date-time-schema.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"date-time-schema.js","sourceRoot":"","sources":["../../../../../tmp/components/iqr-text-field/schema/date-time-schema.ts"],"names":[],"mappings":";;;AAMA,SAAgB,WAAW;IAC1B,OAAO;QACN,OAAO,EAAE,WAAW;QACpB,KAAK,EAAE;YACN,SAAS,EAAE;gBACV,OAAO,EAAE,MAAM;aACf;YAED,IAAI,EAAE;gBACL,OAAO,EAAE,SAAS;gBAClB,KAAK,EAAE,OAAO;gBACd,QAAQ,EAAE,CAAC,EAAE,GAAG,EAAE,MAAM,EAAE,CAAC;gBAC3B,KAAK;oBACJ,OAAO,CAAC,MAAM,EAAE,CAAC,CAAC,CAAA;gBACnB,CAAC;gBACD,MAAM,EAAE,OAAO;gBACf,IAAI,EAAE,YAAY;aAClB;YAED,IAAI,EAAE;gBACL,KAAK,EAAE,QAAQ;aACf;SACD;QACD,KAAK,EAAE,EAAE;KACT,CAAA;AACF,CAAC;AAzBD,kCAyBC;AAED,SAAgB,WAAW;IAC1B,OAAO;QACN,OAAO,EAAE,WAAW;QACpB,KAAK,EAAE;YACN,SAAS,EAAE;gBACV,OAAO,EAAE,MAAM;aACf;YAED,IAAI,EAAE;gBACL,OAAO,EAAE,SAAS;gBAClB,KAAK,EAAE,OAAO;gBACd,QAAQ,EAAE,CAAC,EAAE,GAAG,EAAE,MAAM,EAAE,CAAC;gBAC3B,KAAK;oBACJ,OAAO,CAAC,MAAM,EAAE,CAAC,CAAC,CAAA;gBACnB,CAAC;gBACD,MAAM,EAAE,OAAO;gBACf,IAAI,EAAE,UAAU;aAChB;YAED,IAAI,EAAE;gBACL,KAAK,EAAE,QAAQ;aACf;SACD;QACD,KAAK,EAAE,EAAE;KACT,CAAA;AACF,CAAC;AAzBD,kCAyBC;AAED,SAAgB,eAAe;IAC9B,OAAO;QACN,OAAO,EAAE,WAAW;QACpB,KAAK,EAAE;YACN,SAAS,EAAE;gBACV,OAAO,EAAE,WAAW;aACpB;YAED,IAAI,EAAE;gBACL,OAAO,EAAE,SAAS;gBAClB,KAAK,EAAE,OAAO;gBACd,QAAQ,EAAE,CAAC,EAAE,GAAG,EAAE,MAAM,EAAE,CAAC;gBAC3B,KAAK;oBACJ,OAAO,CAAC,MAAM,EAAE,EAAE,KAAK,EAAE,MAAM,EAAE,EAAE,CAAC,CAAC,CAAA;gBACtC,CAAC;gBACD,MAAM,EAAE,OAAO;gBACf,IAAI,EAAE,YAAY;aAClB;YAED,IAAI,EAAE;gBACL,OAAO,EAAE,SAAS;gBAClB,KAAK,EAAE,OAAO;gBACd,QAAQ,EAAE,CAAC,EAAE,GAAG,EAAE,MAAM,EAAE,CAAC;gBAC3B,KAAK;oBACJ,OAAO,CAAC,MAAM,EAAE,EAAE,KAAK,EAAE,MAAM,EAAE,EAAE,CAAC,CAAC,CAAA;gBACtC,CAAC;gBACD,MAAM,EAAE,OAAO;gBACf,IAAI,EAAE,UAAU;aAChB;YAED,IAAI,EAAE;gBACL,KAAK,EAAE,QAAQ;aACf;SACD;QACD,KAAK,EAAE,EAAE;KACT,CAAA;AACF,CAAC;AApCD,0CAoCC"}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.getDecimalSpec = void 0;
|
|
4
|
+
function getDecimalSpec() {
|
|
5
|
+
return {
|
|
6
|
+
topNode: 'paragraph',
|
|
7
|
+
nodes: {
|
|
8
|
+
paragraph: {
|
|
9
|
+
content: 'decimal',
|
|
10
|
+
},
|
|
11
|
+
decimal: {
|
|
12
|
+
content: 'inline*',
|
|
13
|
+
group: 'block',
|
|
14
|
+
parseDOM: [{ tag: 'span' }],
|
|
15
|
+
toDOM() {
|
|
16
|
+
return ['span', 0];
|
|
17
|
+
},
|
|
18
|
+
regexp: '[,. 0-9-]',
|
|
19
|
+
},
|
|
20
|
+
text: {
|
|
21
|
+
group: 'inline',
|
|
22
|
+
},
|
|
23
|
+
},
|
|
24
|
+
marks: {},
|
|
25
|
+
};
|
|
26
|
+
}
|
|
27
|
+
exports.getDecimalSpec = getDecimalSpec;
|
|
28
|
+
//# sourceMappingURL=decimal-schema.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"decimal-schema.js","sourceRoot":"","sources":["../../../../../tmp/components/iqr-text-field/schema/decimal-schema.ts"],"names":[],"mappings":";;;AAIA,SAAgB,cAAc;IAC7B,OAAO;QACN,OAAO,EAAE,WAAW;QACpB,KAAK,EAAE;YACN,SAAS,EAAE;gBACV,OAAO,EAAE,SAAS;aAClB;YAED,OAAO,EAAE;gBACR,OAAO,EAAE,SAAS;gBAClB,KAAK,EAAE,OAAO;gBACd,QAAQ,EAAE,CAAC,EAAE,GAAG,EAAE,MAAM,EAAE,CAAC;gBAC3B,KAAK;oBACJ,OAAO,CAAC,MAAM,EAAE,CAAC,CAAC,CAAA;gBACnB,CAAC;gBACD,MAAM,EAAE,WAAW;aACnB;YAED,IAAI,EAAE;gBACL,KAAK,EAAE,QAAQ;aACf;SACD;QACD,KAAK,EAAE,EAAE;KACT,CAAA;AACF,CAAC;AAxBD,wCAwBC"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { Schema } from 'prosemirror-model';
|
|
2
|
+
import { DocumentSchema, InlineSchema, StyledSchema } from './markdown-schema';
|
|
3
|
+
import { DateSchema, DateTimeSchema, TimeSchema } from './date-time-schema';
|
|
4
|
+
import { TokensSchema } from './token-schema';
|
|
5
|
+
import { MeasureSchema } from './measure-schema';
|
|
6
|
+
import { DecimalSchema } from './decimal-schema';
|
|
7
|
+
export declare type IqrTextFieldSchema = DocumentSchema | TokensSchema | StyledSchema | InlineSchema | DateSchema | TimeSchema | DateTimeSchema | DecimalSchema | MeasureSchema;
|
|
8
|
+
export declare function createSchema(type: IqrTextFieldSchema, colorProvider: (type: string, code: string, isCode: boolean) => string, contentProvider: (codes: {
|
|
9
|
+
type: string;
|
|
10
|
+
code: string;
|
|
11
|
+
}[]) => string): Schema;
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.createSchema = void 0;
|
|
4
|
+
const prosemirror_model_1 = require("prosemirror-model");
|
|
5
|
+
const markdown_schema_1 = require("./markdown-schema");
|
|
6
|
+
const date_time_schema_1 = require("./date-time-schema");
|
|
7
|
+
const token_schema_1 = require("./token-schema");
|
|
8
|
+
const measure_schema_1 = require("./measure-schema");
|
|
9
|
+
const decimal_schema_1 = require("./decimal-schema");
|
|
10
|
+
function createSchema(type, colorProvider, contentProvider) {
|
|
11
|
+
return new prosemirror_model_1.Schema(type === 'decimal'
|
|
12
|
+
? (0, decimal_schema_1.getDecimalSpec)()
|
|
13
|
+
: type === 'measure'
|
|
14
|
+
? (0, measure_schema_1.getMeasureSpec)()
|
|
15
|
+
: type === 'date'
|
|
16
|
+
? (0, date_time_schema_1.getDateSpec)()
|
|
17
|
+
: type === 'time'
|
|
18
|
+
? (0, date_time_schema_1.getTimeSpec)()
|
|
19
|
+
: type === 'date-time'
|
|
20
|
+
? (0, date_time_schema_1.getDateTimeSpec)()
|
|
21
|
+
: type === 'tokens-list' || type === 'styled-tokens-list' || type === 'tokens-list-with-codes' || type === 'styled-tokens-list-with-codes'
|
|
22
|
+
? (0, token_schema_1.getTokensSpec)(type, contentProvider, colorProvider)
|
|
23
|
+
: (0, markdown_schema_1.getMarkdownSpec)(type, contentProvider, colorProvider));
|
|
24
|
+
}
|
|
25
|
+
exports.createSchema = createSchema;
|
|
26
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../tmp/components/iqr-text-field/schema/index.ts"],"names":[],"mappings":";;;AAAA,yDAA0C;AAC1C,uDAA+F;AAC/F,yDAAsH;AACtH,iDAA4D;AAC5D,qDAAgE;AAChE,qDAAgE;AAIhE,SAAgB,YAAY,CAC3B,IAAwB,EACxB,aAAsE,EACtE,eAAoE;IAEpE,OAAO,IAAI,0BAAM,CAChB,IAAI,KAAK,SAAS;QACjB,CAAC,CAAC,IAAA,+BAAc,GAAE;QAClB,CAAC,CAAC,IAAI,KAAK,SAAS;YACpB,CAAC,CAAC,IAAA,+BAAc,GAAE;YAClB,CAAC,CAAC,IAAI,KAAK,MAAM;gBACjB,CAAC,CAAC,IAAA,8BAAW,GAAE;gBACf,CAAC,CAAC,IAAI,KAAK,MAAM;oBACjB,CAAC,CAAC,IAAA,8BAAW,GAAE;oBACf,CAAC,CAAC,IAAI,KAAK,WAAW;wBACtB,CAAC,CAAC,IAAA,kCAAe,GAAE;wBACnB,CAAC,CAAC,IAAI,KAAK,aAAa,IAAI,IAAI,KAAK,oBAAoB,IAAI,IAAI,KAAK,wBAAwB,IAAI,IAAI,KAAK,+BAA+B;4BAC1I,CAAC,CAAC,IAAA,4BAAa,EAAC,IAAI,EAAE,eAAe,EAAE,aAAa,CAAC;4BACrD,CAAC,CAAC,IAAA,iCAAe,EAAC,IAAI,EAAE,eAAe,EAAE,aAAa,CAAC,CACxD,CAAA;AACF,CAAC;AApBD,oCAoBC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { SchemaSpec } from 'prosemirror-model';
|
|
2
|
+
export declare type DocumentSchema = 'text-document';
|
|
3
|
+
export declare type InlineSchema = 'styled-text' | 'text' | 'text-with-codes' | 'styled-text-with-codes';
|
|
4
|
+
export declare type StyledSchema = 'text-document' | 'styled-text' | 'styled-text-with-codes';
|
|
5
|
+
export declare function getMarkdownSpec(type: DocumentSchema | InlineSchema, contentProvider: (codes: {
|
|
6
|
+
type: string;
|
|
7
|
+
code: string;
|
|
8
|
+
}[]) => string, colorProvider: (type: string, code: string, isCode: boolean) => string): SchemaSpec;
|
|
@@ -0,0 +1,173 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.getMarkdownSpec = void 0;
|
|
4
|
+
const utils_1 = require("./utils");
|
|
5
|
+
const common_marks_1 = require("./common-marks");
|
|
6
|
+
function getMarkdownSpec(type, contentProvider, colorProvider) {
|
|
7
|
+
const nodesSelector = (key, spec) => {
|
|
8
|
+
// noinspection RedundantConditionalExpressionJS
|
|
9
|
+
return key === 'paragraph' ? true : (spec.group === 'block' || ['doc', 'list_item', 'hard_break', 'image'].includes(key)) && type !== 'text-document' ? false : true;
|
|
10
|
+
};
|
|
11
|
+
const marksSelector = (key) => {
|
|
12
|
+
// noinspection RedundantConditionalExpressionJS
|
|
13
|
+
return key !== 'link' && ['text-document', 'styled-text', 'styled-text-with-codes'].includes(type)
|
|
14
|
+
? true
|
|
15
|
+
: key === 'link' && ['text-document', 'text-with-codes', 'styled-text-with-codes']
|
|
16
|
+
? true
|
|
17
|
+
: false;
|
|
18
|
+
};
|
|
19
|
+
return {
|
|
20
|
+
topNode: type === 'text-document' ? 'doc' : 'paragraph',
|
|
21
|
+
nodes: (0, utils_1.reduceNodes)({
|
|
22
|
+
doc: {
|
|
23
|
+
content: 'block+',
|
|
24
|
+
},
|
|
25
|
+
paragraph: {
|
|
26
|
+
content: 'inline*',
|
|
27
|
+
group: 'block',
|
|
28
|
+
parseDOM: [{ tag: 'p' }],
|
|
29
|
+
toDOM() {
|
|
30
|
+
return ['p', 0];
|
|
31
|
+
},
|
|
32
|
+
},
|
|
33
|
+
blockquote: {
|
|
34
|
+
content: 'block+',
|
|
35
|
+
group: 'block',
|
|
36
|
+
parseDOM: [{ tag: 'blockquote' }],
|
|
37
|
+
toDOM() {
|
|
38
|
+
return ['blockquote', 0];
|
|
39
|
+
},
|
|
40
|
+
},
|
|
41
|
+
horizontal_rule: {
|
|
42
|
+
group: 'block',
|
|
43
|
+
parseDOM: [{ tag: 'hr' }],
|
|
44
|
+
toDOM() {
|
|
45
|
+
return ['div', ['hr']];
|
|
46
|
+
},
|
|
47
|
+
},
|
|
48
|
+
heading: {
|
|
49
|
+
attrs: { level: { default: 1 } },
|
|
50
|
+
content: '(text | image)*',
|
|
51
|
+
group: 'block',
|
|
52
|
+
defining: true,
|
|
53
|
+
parseDOM: [
|
|
54
|
+
{ tag: 'h1', attrs: { level: 1 } },
|
|
55
|
+
{ tag: 'h2', attrs: { level: 2 } },
|
|
56
|
+
{ tag: 'h3', attrs: { level: 3 } },
|
|
57
|
+
{ tag: 'h4', attrs: { level: 4 } },
|
|
58
|
+
{ tag: 'h5', attrs: { level: 5 } },
|
|
59
|
+
{ tag: 'h6', attrs: { level: 6 } },
|
|
60
|
+
],
|
|
61
|
+
toDOM(node) {
|
|
62
|
+
return ['h' + node.attrs.level, 0];
|
|
63
|
+
},
|
|
64
|
+
},
|
|
65
|
+
ordered_list: {
|
|
66
|
+
content: 'list_item+',
|
|
67
|
+
group: 'block',
|
|
68
|
+
attrs: { order: { default: 1 }, tight: { default: false } },
|
|
69
|
+
parseDOM: [
|
|
70
|
+
{
|
|
71
|
+
tag: 'ol',
|
|
72
|
+
getAttrs(dom) {
|
|
73
|
+
const el = dom;
|
|
74
|
+
return {
|
|
75
|
+
order: el.hasAttribute('start') ? +(el.getAttribute('start') || 0) : 1,
|
|
76
|
+
tight: el.hasAttribute('data-tight'),
|
|
77
|
+
};
|
|
78
|
+
},
|
|
79
|
+
},
|
|
80
|
+
],
|
|
81
|
+
toDOM(node) {
|
|
82
|
+
return [
|
|
83
|
+
'ol',
|
|
84
|
+
{
|
|
85
|
+
start: node.attrs.order === 1 ? null : node.attrs.order,
|
|
86
|
+
'data-tight': node.attrs.tight ? 'true' : null,
|
|
87
|
+
},
|
|
88
|
+
0,
|
|
89
|
+
];
|
|
90
|
+
},
|
|
91
|
+
},
|
|
92
|
+
bullet_list: {
|
|
93
|
+
content: 'list_item+',
|
|
94
|
+
group: 'block',
|
|
95
|
+
attrs: { tight: { default: false } },
|
|
96
|
+
parseDOM: [{ tag: 'ul', getAttrs: (dom) => ({ tight: dom.hasAttribute('data-tight') }) }],
|
|
97
|
+
toDOM(node) {
|
|
98
|
+
return ['ul', { 'data-tight': node.attrs.tight ? 'true' : null }, 0];
|
|
99
|
+
},
|
|
100
|
+
},
|
|
101
|
+
list_item: {
|
|
102
|
+
content: 'paragraph block*',
|
|
103
|
+
defining: true,
|
|
104
|
+
parseDOM: [{ tag: 'li' }],
|
|
105
|
+
toDOM() {
|
|
106
|
+
return ['li', 0];
|
|
107
|
+
},
|
|
108
|
+
},
|
|
109
|
+
text: {
|
|
110
|
+
group: 'inline',
|
|
111
|
+
},
|
|
112
|
+
image: {
|
|
113
|
+
inline: true,
|
|
114
|
+
attrs: {
|
|
115
|
+
src: {},
|
|
116
|
+
alt: { default: null },
|
|
117
|
+
title: { default: null },
|
|
118
|
+
},
|
|
119
|
+
group: 'inline',
|
|
120
|
+
draggable: true,
|
|
121
|
+
parseDOM: [
|
|
122
|
+
{
|
|
123
|
+
tag: 'img[src]',
|
|
124
|
+
getAttrs(dom) {
|
|
125
|
+
const el = dom;
|
|
126
|
+
return {
|
|
127
|
+
src: el.getAttribute('src'),
|
|
128
|
+
title: el.getAttribute('title'),
|
|
129
|
+
alt: el.getAttribute('alt'),
|
|
130
|
+
};
|
|
131
|
+
},
|
|
132
|
+
},
|
|
133
|
+
],
|
|
134
|
+
toDOM(node) {
|
|
135
|
+
return ['img', node.attrs];
|
|
136
|
+
},
|
|
137
|
+
},
|
|
138
|
+
measure: {
|
|
139
|
+
content: 'decimal unit',
|
|
140
|
+
group: 'block',
|
|
141
|
+
},
|
|
142
|
+
decimal: {
|
|
143
|
+
content: 'inline*',
|
|
144
|
+
group: 'block',
|
|
145
|
+
parseDOM: [{ tag: 'span' }],
|
|
146
|
+
toDOM() {
|
|
147
|
+
return ['span', { class: 'measure' }, 0];
|
|
148
|
+
},
|
|
149
|
+
regexp: '[,.0-9-]',
|
|
150
|
+
},
|
|
151
|
+
unit: {
|
|
152
|
+
content: 'inline*',
|
|
153
|
+
group: 'block',
|
|
154
|
+
parseDOM: [{ tag: 'span' }],
|
|
155
|
+
toDOM() {
|
|
156
|
+
return ['span', { class: 'unit' }, 0];
|
|
157
|
+
},
|
|
158
|
+
},
|
|
159
|
+
hard_break: {
|
|
160
|
+
inline: true,
|
|
161
|
+
group: 'inline',
|
|
162
|
+
selectable: false,
|
|
163
|
+
parseDOM: [{ tag: 'br' }],
|
|
164
|
+
toDOM() {
|
|
165
|
+
return ['br'];
|
|
166
|
+
},
|
|
167
|
+
},
|
|
168
|
+
}, nodesSelector),
|
|
169
|
+
marks: (0, utils_1.reduceMarks)((0, common_marks_1.getMarks)(contentProvider, colorProvider), marksSelector),
|
|
170
|
+
};
|
|
171
|
+
}
|
|
172
|
+
exports.getMarkdownSpec = getMarkdownSpec;
|
|
173
|
+
//# sourceMappingURL=markdown-schema.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"markdown-schema.js","sourceRoot":"","sources":["../../../../../tmp/components/iqr-text-field/schema/markdown-schema.ts"],"names":[],"mappings":";;;AACA,mCAAkD;AAClD,iDAAyC;AAMzC,SAAgB,eAAe,CAC9B,IAAmC,EACnC,eAAoE,EACpE,aAAsE;IAEtE,MAAM,aAAa,GAA6C,CAAC,GAAW,EAAE,IAAc,EAAE,EAAE;QAC/F,gDAAgD;QAChD,OAAO,GAAG,KAAK,WAAW,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,KAAK,KAAK,OAAO,IAAI,CAAC,KAAK,EAAE,WAAW,EAAE,YAAY,EAAE,OAAO,CAAC,CAAC,QAAQ,CAAC,GAAG,CAAC,CAAC,IAAI,IAAI,KAAK,eAAe,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,IAAI,CAAA;IACrK,CAAC,CAAA;IACD,MAAM,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U,EAAE;gBACX,MAAM,EAAE,IAAI;gBACZ,KAAK,EAAE,QAAQ;gBACf,UAAU,EAAE,KAAK;gBACjB,QAAQ,EAAE,CAAC,EAAE,GAAG,EAAE,IAAI,EAAE,CAAC;gBACzB,KAAK;oBACJ,OAAO,CAAC,IAAI,CAAC,CAAA;gBACd,CAAC;aACD;SACD,EACD,aAAa,CACb;QACD,KAAK,EAAE,IAAA,mBAAW,EAAC,IAAA,uBAAQ,EAAC,eAAe,EAAE,aAAa,CAAC,EAAE,aAAa,CAAC;KAC3E,CAAA;AACF,CAAC;AA1LD,0CA0LC"}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.getMeasureSpec = void 0;
|
|
4
|
+
function getMeasureSpec() {
|
|
5
|
+
return {
|
|
6
|
+
topNode: 'paragraph',
|
|
7
|
+
nodes: {
|
|
8
|
+
paragraph: {
|
|
9
|
+
content: 'decimal unit',
|
|
10
|
+
},
|
|
11
|
+
decimal: {
|
|
12
|
+
content: 'inline*',
|
|
13
|
+
group: 'block',
|
|
14
|
+
parseDOM: [{ tag: 'span' }],
|
|
15
|
+
toDOM() {
|
|
16
|
+
return ['span', { class: 'measure' }, 0];
|
|
17
|
+
},
|
|
18
|
+
regexp: '[,.0-9-]',
|
|
19
|
+
},
|
|
20
|
+
unit: {
|
|
21
|
+
content: 'inline*',
|
|
22
|
+
group: 'block',
|
|
23
|
+
parseDOM: [{ tag: 'span' }],
|
|
24
|
+
toDOM() {
|
|
25
|
+
return ['span', { class: 'unit' }, 0];
|
|
26
|
+
},
|
|
27
|
+
},
|
|
28
|
+
text: {
|
|
29
|
+
group: 'inline',
|
|
30
|
+
},
|
|
31
|
+
},
|
|
32
|
+
marks: {},
|
|
33
|
+
};
|
|
34
|
+
}
|
|
35
|
+
exports.getMeasureSpec = getMeasureSpec;
|
|
36
|
+
//# sourceMappingURL=measure-schema.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"measure-schema.js","sourceRoot":"","sources":["../../../../../tmp/components/iqr-text-field/schema/measure-schema.ts"],"names":[],"mappings":";;;AAIA,SAAgB,cAAc;IAC7B,OAAO;QACN,OAAO,EAAE,WAAW;QACpB,KAAK,EAAE;YACN,SAAS,EAAE;gBACV,OAAO,EAAE,cAAc;aACvB;YAED,OAAO,EAAE;gBACR,OAAO,EAAE,SAAS;gBAClB,KAAK,EAAE,OAAO;gBACd,QAAQ,EAAE,CAAC,EAAE,GAAG,EAAE,MAAM,EAAE,CAAC;gBAC3B,KAAK;oBACJ,OAAO,CAAC,MAAM,EAAE,EAAE,KAAK,EAAE,SAAS,EAAE,EAAE,CAAC,CAAC,CAAA;gBACzC,CAAC;gBACD,MAAM,EAAE,UAAU;aAClB;YAED,IAAI,EAAE;gBACL,OAAO,EAAE,SAAS;gBAClB,KAAK,EAAE,OAAO;gBACd,QAAQ,EAAE,CAAC,EAAE,GAAG,EAAE,MAAM,EAAE,CAAC;gBAC3B,KAAK;oBACJ,OAAO,CAAC,MAAM,EAAE,EAAE,KAAK,EAAE,MAAM,EAAE,EAAE,CAAC,CAAC,CAAA;gBACtC,CAAC;aACD;YAED,IAAI,EAAE;gBACL,KAAK,EAAE,QAAQ;aACf;SACD;QACD,KAAK,EAAE,EAAE;KACT,CAAA;AACF,CAAC;AAjCD,wCAiCC"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { SchemaSpec } from 'prosemirror-model';
|
|
2
|
+
export declare type TokensSchema = 'tokens-list' | 'styled-tokens-list' | 'tokens-list-with-codes' | 'styled-tokens-list-with-codes';
|
|
3
|
+
export declare function getTokensSpec(type: TokensSchema, contentProvider: (codes: {
|
|
4
|
+
type: string;
|
|
5
|
+
code: string;
|
|
6
|
+
}[]) => string, colorProvider: (type: string, code: string, isCode: boolean) => string): SchemaSpec;
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.getTokensSpec = void 0;
|
|
4
|
+
const utils_1 = require("./utils");
|
|
5
|
+
const common_marks_1 = require("./common-marks");
|
|
6
|
+
function getTokensSpec(type, contentProvider, colorProvider) {
|
|
7
|
+
const marksSelector = (key) => {
|
|
8
|
+
// noinspection RedundantConditionalExpressionJS
|
|
9
|
+
return key !== 'link' && ['styled-tokens-list', 'styled-tokens-list-with-codes'].includes(type)
|
|
10
|
+
? true
|
|
11
|
+
: key === 'link' && ['tokens-list-with-codes', 'styled-text-with-codes']
|
|
12
|
+
? true
|
|
13
|
+
: false;
|
|
14
|
+
};
|
|
15
|
+
return {
|
|
16
|
+
nodes: (0, utils_1.reduceNodes)({
|
|
17
|
+
doc: {
|
|
18
|
+
content: 'token+',
|
|
19
|
+
parseDOM: [{ tag: 'ul' }],
|
|
20
|
+
toDOM() {
|
|
21
|
+
return ['ul', 0];
|
|
22
|
+
},
|
|
23
|
+
},
|
|
24
|
+
token: {
|
|
25
|
+
content: 'inline*',
|
|
26
|
+
group: 'block',
|
|
27
|
+
parseDOM: [{ tag: 'li' }],
|
|
28
|
+
toDOM() {
|
|
29
|
+
return ['li', 0];
|
|
30
|
+
},
|
|
31
|
+
},
|
|
32
|
+
text: {
|
|
33
|
+
group: 'inline',
|
|
34
|
+
},
|
|
35
|
+
}),
|
|
36
|
+
marks: (0, utils_1.reduceMarks)((0, common_marks_1.getMarks)(contentProvider, colorProvider), marksSelector),
|
|
37
|
+
};
|
|
38
|
+
}
|
|
39
|
+
exports.getTokensSpec = getTokensSpec;
|
|
40
|
+
//# sourceMappingURL=token-schema.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"token-schema.js","sourceRoot":"","sources":["../../../../../tmp/components/iqr-text-field/schema/token-schema.ts"],"names":[],"mappings":";;;AACA,mCAAkD;AAClD,iDAAyC;AAIzC,SAAgB,aAAa,CAC5B,IAAkB,EAClB,eAAoE,EACpE,aAAsE;IAEtE,MAAM,aAAa,GAA6C,CAAC,GAAW,EAAE,EAAE;QAC/E,gDAAgD;QAChD,OAAO,GAAG,KAAK,MAAM,IAAI,CAAC,oBAAoB,EAAE,+BAA+B,CAAC,CAAC,QAAQ,CAAC,IAAI,CAAC;YAC9F,CAAC,CAAC,IAAI;YACN,CAAC,CAAC,GAAG,KAAK,MAAM,IAAI,CAAC,wBAAwB,EAAE,wBAAwB,CAAC;gBACxE,CAAC,CAAC,IAAI;gBACN,CAAC,CAAC,KAAK,CAAA;IACT,CAAC,CAAA;IACD,OAAO;QACN,KAAK,EAAE,IAAA,mBAAW,EAAC;YAClB,GAAG,EAAE;gBACJ,OAAO,EAAE,QAAQ;gBACjB,QAAQ,EAAE,CAAC,EAAE,GAAG,EAAE,IAAI,EAAE,CAAC;gBACzB,KAAK;oBACJ,OAAO,CAAC,IAAI,EAAE,CAAC,CAAC,CAAA;gBACjB,CAAC;aACD;YAED,KAAK,EAAE;gBACN,OAAO,EAAE,SAAS;gBAClB,KAAK,EAAE,OAAO;gBACd,QAAQ,EAAE,CAAC,EAAE,GAAG,EAAE,IAAI,EAAE,CAAC;gBACzB,KAAK;oBACJ,OAAO,CAAC,IAAI,EAAE,CAAC,CAAC,CAAA;gBACjB,CAAC;aACD;YAED,IAAI,EAAE;gBACL,KAAK,EAAE,QAAQ;aACf;SACD,CAAC;QACF,KAAK,EAAE,IAAA,mBAAW,EAAC,IAAA,uBAAQ,EAAC,eAAe,EAAE,aAAa,CAAC,EAAE,aAAa,CAAC;KAC3E,CAAA;AACF,CAAC;AAtCD,sCAsCC"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { MarkSpec, NodeSpec } from 'prosemirror-model';
|
|
2
|
+
export declare function reduceNodes(nodes: {
|
|
3
|
+
[key: string]: NodeSpec;
|
|
4
|
+
}, selector?: (key: string, spec: NodeSpec) => boolean): {
|
|
5
|
+
[key: string]: NodeSpec;
|
|
6
|
+
};
|
|
7
|
+
export declare function reduceMarks(marks: {
|
|
8
|
+
[key: string]: MarkSpec;
|
|
9
|
+
}, selector?: (key: string, spec: MarkSpec) => boolean): {
|
|
10
|
+
[key: string]: MarkSpec;
|
|
11
|
+
};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.reduceMarks = exports.reduceNodes = void 0;
|
|
4
|
+
function reduceNodes(nodes, selector = () => true) {
|
|
5
|
+
return Object.keys(nodes).reduce((r, k) => (selector(k, nodes[k]) ? Object.assign(r, { [k]: nodes[k] }) : r), {});
|
|
6
|
+
}
|
|
7
|
+
exports.reduceNodes = reduceNodes;
|
|
8
|
+
function reduceMarks(marks, selector = () => true) {
|
|
9
|
+
return Object.keys(marks).reduce((r, k) => (selector(k, marks[k]) ? Object.assign(r, { [k]: marks[k] }) : r), {});
|
|
10
|
+
}
|
|
11
|
+
exports.reduceMarks = reduceMarks;
|
|
12
|
+
//# sourceMappingURL=utils.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"utils.js","sourceRoot":"","sources":["../../../../../tmp/components/iqr-text-field/schema/utils.ts"],"names":[],"mappings":";;;AAEA,SAAgB,WAAW,CAAC,KAAkC,EAAE,WAAqD,GAAG,EAAE,CAAC,IAAI;IAC9H,OAAO,MAAM,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,EAAE,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,EAAE,KAAK,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,EAAE,EAAiC,CAAC,CAAA;AACjJ,CAAC;AAFD,kCAEC;AAED,SAAgB,WAAW,CAAC,KAAkC,EAAE,WAAqD,GAAG,EAAE,CAAC,IAAI;IAC9H,OAAO,MAAM,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,EAAE,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,EAAE,KAAK,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,EAAE,EAAiC,CAAC,CAAA;AACjJ,CAAC;AAFD,kCAEC"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { EditorView } from 'prosemirror-view';
|
|
2
|
+
import { EditorState } from 'prosemirror-state';
|
|
3
|
+
export declare class SelectionCompanion {
|
|
4
|
+
private readonly companion;
|
|
5
|
+
private delay;
|
|
6
|
+
private lastTime;
|
|
7
|
+
constructor(view: EditorView, delay: () => boolean);
|
|
8
|
+
update(view: EditorView, lastState?: EditorState): void;
|
|
9
|
+
private display;
|
|
10
|
+
destroy(): void;
|
|
11
|
+
}
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.SelectionCompanion = void 0;
|
|
4
|
+
class SelectionCompanion {
|
|
5
|
+
constructor(view, delay) {
|
|
6
|
+
var _a, _b;
|
|
7
|
+
this.delay = () => false;
|
|
8
|
+
this.lastTime = 0;
|
|
9
|
+
this.companion = document.createElement('div');
|
|
10
|
+
this.companion.className = 'companion';
|
|
11
|
+
(_b = (_a = view.dom) === null || _a === void 0 ? void 0 : _a.parentNode) === null || _b === void 0 ? void 0 : _b.appendChild(this.companion);
|
|
12
|
+
this.delay = delay;
|
|
13
|
+
this.update(view, undefined);
|
|
14
|
+
}
|
|
15
|
+
update(view, lastState) {
|
|
16
|
+
const state = view.state;
|
|
17
|
+
// Don't do anything if the document/selection didn't change
|
|
18
|
+
if (lastState && lastState.doc.eq(state.doc) && lastState.selection.eq(state.selection)) {
|
|
19
|
+
return;
|
|
20
|
+
}
|
|
21
|
+
// Hide the companion if the selection is empty
|
|
22
|
+
if (state.selection.empty) {
|
|
23
|
+
this.companion.style.display = 'none';
|
|
24
|
+
return;
|
|
25
|
+
}
|
|
26
|
+
// Otherwise, reposition it and update its content
|
|
27
|
+
const { to } = state.selection;
|
|
28
|
+
// These are in screen coordinates
|
|
29
|
+
const end = view.coordsAtPos(to);
|
|
30
|
+
this.display(end, (this.lastTime = +new Date()));
|
|
31
|
+
}
|
|
32
|
+
display(pos, time) {
|
|
33
|
+
var _a;
|
|
34
|
+
if (time !== this.lastTime)
|
|
35
|
+
return;
|
|
36
|
+
if (this.delay()) {
|
|
37
|
+
setTimeout(() => this.display(pos, time), 100);
|
|
38
|
+
return;
|
|
39
|
+
}
|
|
40
|
+
this.companion.style.display = '';
|
|
41
|
+
const box = (_a = this.companion.offsetParent) === null || _a === void 0 ? void 0 : _a.getBoundingClientRect();
|
|
42
|
+
if (box) {
|
|
43
|
+
this.companion.style.left = pos.right - box.left + 'px';
|
|
44
|
+
this.companion.style.top = pos.top - box.top - 2 + 'px';
|
|
45
|
+
this.companion.style.height = pos.bottom - pos.top + 2 + 'px';
|
|
46
|
+
this.companion.textContent = '+';
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
destroy() {
|
|
50
|
+
this.companion.remove();
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
exports.SelectionCompanion = SelectionCompanion;
|
|
54
|
+
//# sourceMappingURL=selection-companion.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"selection-companion.js","sourceRoot":"","sources":["../../../../tmp/components/iqr-text-field/selection-companion.ts"],"names":[],"mappings":";;;AAGA,MAAa,kBAAkB;IAK9B,YAAY,IAAgB,EAAE,KAAoB;;QAH1C,UAAK,GAAkB,GAAG,EAAE,CA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AE;YACjB,UAAU,CAAC,GAAG,EAAE,CAAC,IAAI,CAAC,OAAO,CAAC,GAAG,EAAE,IAAI,CAAC,EAAE,GAAG,CAAC,CAAA;YAC9C,OAAM;SACN;QACD,IAAI,CAAC,SAAS,CAAC,KAAK,CAAC,OAAO,GAAG,EAAE,CAAA;QACjC,MAAM,GAAG,GAAG,MAAA,IAAI,CAAC,SAAS,CAAC,YAAY,0CAAE,qBAAqB,EAAE,CAAA;QAChE,IAAI,GAAG,EAAE;YACR,IAAI,CAAC,SAAS,CAAC,KAAK,CAAC,IAAI,GAAG,GAAG,CAAC,KAAK,GAAG,GAAG,CAAC,IAAI,GAAG,IAAI,CAAA;YACvD,IAAI,CAAC,SAAS,CAAC,KAAK,CAAC,GAAG,GAAG,GAAG,CAAC,GAAG,GAAG,GAAG,CAAC,GAAG,GAAG,CAAC,GAAG,IAAI,CAAA;YACvD,IAAI,CAAC,SAAS,CAAC,KAAK,CAAC,MAAM,GAAG,GAAG,CAAC,MAAM,GAAG,GAAG,CAAC,GAAG,GAAG,CAAC,GAAG,IAAI,CAAA;YAC7D,IAAI,CAAC,SAAS,CAAC,WAAW,GAAG,GAAG,CAAA;SAChC;IACF,CAAC;IAED,OAAO;QACN,IAAI,CAAC,SAAS,CAAC,MAAM,EAAE,CAAA;IACxB,CAAC;CACD;AAvDD,gDAuDC"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
export declare const searchPicto: import("lit-html").TemplateResult<1>;
|
|
2
|
+
export declare const ownerPicto: import("lit-html").TemplateResult<1>;
|
|
3
|
+
export declare const i18nPicto: import("lit-html").TemplateResult<1>;
|
|
4
|
+
export declare const versionPicto: import("lit-html").TemplateResult<1>;
|
|
5
|
+
export declare const datePicto: import("lit-html").TemplateResult<1>;
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.datePicto = exports.versionPicto = exports.i18nPicto = exports.ownerPicto = exports.searchPicto = void 0;
|
|
4
|
+
const lit_1 = require("lit");
|
|
5
|
+
exports.searchPicto = (0, lit_1.html) `<svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
6
|
+
<path
|
|
7
|
+
d="M12.9167 11.6667H12.2583L12.025 11.4417C12.8417 10.4917 13.3333 9.25833 13.3333 7.91667C13.3333 4.925 10.9083 2.5 7.91667 2.5C4.925 2.5 2.5 4.925 2.5 7.91667C2.5 10.9083 4.925 13.3333 7.91667 13.3333C9.25833 13.3333 10.4917 12.8417 11.4417 12.025L11.6667 12.2583V12.9167L15.8333 17.075L17.075 15.8333L12.9167 11.6667ZM7.91667 11.6667C5.84167 11.6667 4.16667 9.99167 4.16667 7.91667C4.16667 5.84167 5.84167 4.16667 7.91667 4.16667C9.99167 4.16667 11.6667 5.84167 11.6667 7.91667C11.6667 9.99167 9.99167 11.6667 7.91667 11.6667Z"
|
|
8
|
+
fill="#809AB4"
|
|
9
|
+
/>
|
|
10
|
+
</svg>`;
|
|
11
|
+
exports.ownerPicto = (0, lit_1.html) `<svg width="10" height="10" viewBox="0 0 10 10" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
12
|
+
<path
|
|
13
|
+
fill-rule="evenodd"
|
|
14
|
+
clip-rule="evenodd"
|
|
15
|
+
d="M10 5C10 7.76142 7.76142 10 5 10C2.23858 10 0 7.76142 0 5C0 2.23858 2.23858 0 5 0C7.76142 0 10 2.23858 10 5ZM7 3C7 4.10457 6.10457 5 5 5C3.89543 5 3 4.10457 3 3C3 1.89543 3.89543 1 5 1C6.10457 1 7 1.89543 7 3ZM5.00001 9C6.53071 9 7.8606 8.1402 8.53306 6.8772C7.62844 6.33518 6.37946 6 5.00001 6C3.62055 6 2.37158 6.33517 1.46695 6.87719C2.13941 8.14019 3.4693 9 5.00001 9Z"
|
|
16
|
+
/>
|
|
17
|
+
</svg>`;
|
|
18
|
+
exports.i18nPicto = (0, lit_1.html) `<svg width="10" height="10" viewBox="0 0 10 10" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
19
|
+
<path
|
|
20
|
+
d="M5 0C2.2379 0 0 2.2379 0 5C0 7.7621 2.2379 10 5 10C7.7621 10 10 7.7621 10 5C10 2.2379 7.7621 0 5 0ZM9.03226 5C9.03226 5.45363 8.95363 5.89113 8.81452 6.29839H8.40524C8.31855 6.29839 8.23589 6.26411 8.1754 6.20161L7.53024 5.54435C7.43952 5.45161 7.43952 5.3004 7.53226 5.20766L7.78427 4.95565V4.78024C7.78427 4.71976 7.76008 4.66129 7.71774 4.61895L7.52823 4.42944C7.48589 4.3871 7.42742 4.3629 7.36694 4.3629H7.04435C6.91935 4.3629 6.81653 4.26008 6.81653 4.13508C6.81653 4.0746 6.84073 4.01613 6.88306 3.97379L7.07258 3.78427C7.11492 3.74194 7.17339 3.71774 7.23387 3.71774H7.87903C8.00403 3.71774 8.10685 3.61492 8.10685 3.48992V3.3004C8.10685 3.1754 8.00403 3.07258 7.87903 3.07258H7.13911C6.96169 3.07258 6.81653 3.21774 6.81653 3.39516V3.48589C6.81653 3.625 6.72782 3.74798 6.59677 3.79234L5.95968 4.00403C5.89315 4.02621 5.84879 4.08669 5.84879 4.15726V4.20161C5.84879 4.29032 5.77621 4.3629 5.6875 4.3629H5.36492C5.27621 4.3629 5.20363 4.29032 5.20363 4.20161C5.20363 4.1129 5.13105 4.04032 5.04234 4.04032H4.97984C4.91935 4.04032 4.8629 4.0746 4.83468 4.12903L4.64516 4.50605C4.59073 4.61492 4.47984 4.68347 4.35685 4.68347H3.91129C3.73387 4.68347 3.58871 4.53831 3.58871 4.36089V3.85081C3.58871 3.76613 3.62298 3.68347 3.68347 3.62298L4.08871 3.21774C4.18145 3.125 4.23387 2.99798 4.23387 2.86492C4.23387 2.79637 4.27823 2.73387 4.34476 2.71169L5.15121 2.44355C5.18548 2.43145 5.21573 2.41331 5.23992 2.38911L5.78024 1.84879C5.82258 1.80645 5.84677 1.74798 5.84677 1.6875C5.84677 1.5625 5.74395 1.45968 5.61895 1.45968H5.20161L4.87903 1.78226V1.94355C4.87903 2.03226 4.80645 2.10484 4.71774 2.10484H4.39516C4.30645 2.10484 4.23387 2.03226 4.23387 1.94355V1.54032C4.23387 1.48992 4.25806 1.44153 4.29839 1.41129L4.88105 0.97379C4.91935 0.971774 4.95766 0.967742 4.99597 0.967742C7.22379 0.967742 9.03226 2.77621 9.03226 5ZM2.62298 2.84476C2.62298 2.78427 2.64718 2.72581 2.68952 2.68347L3.20161 2.17137C3.24395 2.12903 3.30242 2.10484 3.3629 2.10484C3.4879 2.10484 3.59073 2.20766 3.59073 2.33266V2.65524C3.59073 2.71573 3.56653 2.77419 3.52419 2.81653L3.33468 3.00605C3.29234 3.04839 3.23387 3.07258 3.17339 3.07258H2.85081C2.72581 3.07258 2.62298 2.96976 2.62298 2.84476ZM5.20363 9.02218V8.87903C5.20363 8.70161 5.05847 8.55645 4.88105 8.55645H4.47379C4.25605 8.55645 3.93548 8.4496 3.76008 8.31855L3.3125 7.98185C3.08065 7.80847 2.94556 7.53629 2.94556 7.24798V6.76613C2.94556 6.44355 3.11492 6.14516 3.39113 5.97984L4.25605 5.46169C4.39919 5.37702 4.5625 5.33065 4.72782 5.33065H5.35685C5.57661 5.33065 5.78831 5.40927 5.95363 5.5504L6.8246 6.29839H7.19355C7.36492 6.29839 7.52823 6.36694 7.64919 6.4879L7.99798 6.83669C8.06653 6.90524 8.16129 6.94355 8.25806 6.94355H8.52823C7.875 8.13105 6.6371 8.9496 5.20363 9.02218Z"
|
|
21
|
+
/>
|
|
22
|
+
</svg>`;
|
|
23
|
+
exports.versionPicto = (0, lit_1.html) `<svg width="10" height="10" viewBox="0 0 10 10" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
24
|
+
<path
|
|
25
|
+
fill-rule="evenodd"
|
|
26
|
+
clip-rule="evenodd"
|
|
27
|
+
d="M5 10C7.76141 10 10 7.76142 10 5C10 2.23858 7.76141 0 5 0C2.23859 0 0 2.23858 0 5C0 7.76142 2.23859 10 5 10ZM3.5 3.33172C3.03394 3.16698 2.70001 2.72249 2.70001 2.2C2.70001 1.53726 3.23727 1 3.90002 1C4.56274 1 5.10001 1.53726 5.10001 2.2C5.10001 2.72249 4.76608 3.16698 4.30002 3.33172V5.04041C4.73386 4.59767 5.31354 4.29838 5.96133 4.22028C6.12021 3.74364 6.56998 3.4 7.10001 3.4C7.76276 3.4 8.30002 3.93726 8.30002 4.6C8.30002 5.26274 7.76276 5.8 7.10001 5.8C6.58722 5.8 6.14957 5.47836 5.97775 5.02583C5.13132 5.16293 4.46295 5.8313 4.32584 6.67775C4.77838 6.84955 5.10001 7.28722 5.10001 7.8C5.10001 8.46274 4.56274 9 3.90002 9C3.23727 9 2.70001 8.46274 2.70001 7.8C2.70001 7.27751 3.03394 6.83302 3.5 6.66828V3.33172ZM3.5 7.8C3.5 7.58001 3.67758 7.4015 3.89722 7.4H3.9028C4.12241 7.4015 4.29999 7.58001 4.29999 7.8C4.29999 8.0209 4.12091 8.2 3.89999 8.2C3.67908 8.2 3.5 8.0209 3.5 7.8ZM6.70001 4.59555V4.60446C6.70239 4.82333 6.88055 5.00001 7.09998 5.00001C7.32089 5.00001 7.5 4.82092 7.5 4.60001C7.5 4.37909 7.32089 4.2 7.09998 4.2C6.88055 4.2 6.70239 4.37669 6.70001 4.59555ZM3.89999 2.6C4.12091 2.6 4.29999 2.42091 4.29999 2.2C4.29999 1.97909 4.12091 1.8 3.89999 1.8C3.67908 1.8 3.5 1.97909 3.5 2.2C3.5 2.42091 3.67908 2.6 3.89999 2.6Z"
|
|
28
|
+
/>
|
|
29
|
+
</svg>`;
|
|
30
|
+
exports.datePicto = (0, lit_1.html) `<svg width="10" height="10" viewBox="0 0 10 10" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
31
|
+
<path
|
|
32
|
+
fill-rule="evenodd"
|
|
33
|
+
clip-rule="evenodd"
|
|
34
|
+
d="M2 0C0.895431 0 0 0.89543 0 2V8C0 9.10457 0.89543 10 2 10H8C9.10457 10 10 9.10457 10 8V2C10 0.895431 9.10457 0 8 0H2ZM1 3V8C1 8.55229 1.44772 9 2 9H8C8.55229 9 9 8.55229 9 8V3H1ZM8 8H5V5H8V8Z"
|
|
35
|
+
/>
|
|
36
|
+
</svg>`;
|
|
37
|
+
//# sourceMappingURL=paths.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"paths.js","sourceRoot":"","sources":["../../../../../tmp/components/iqr-text-field/styles/paths.ts"],"names":[],"mappings":";;;AAAA,6BAA0B;AAEb,QAAA,WAAW,GAAG,IAAA,UAAI,EAAA;;;;;OAKxB,CAAA;AAEM,QAAA,UAAU,GAAG,IAAA,UAAI,EAAA;;;;;;OAMvB,CAAA;AAEM,QAAA,SAAS,GAAG,IAAA,UAAI,EAAA;;;;OAItB,CAAA;AAEM,QAAA,YAAY,GAAG,IAAA,UAAI,EAAA;;;;;;OAMzB,CAAA;AAEM,QAAA,SAAS,GAAG,IAAA,UAAI,EAAA;;;;;;OAMtB,CAAA"}
|