@icure/form 1.1.0 → 1.1.14
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/components/common/field-with-options.d.ts +9 -0
- package/components/common/field-with-options.js +50 -0
- package/components/common/field-with-options.js.map +1 -0
- package/components/common/field.d.ts +46 -0
- package/components/common/field.js +107 -0
- package/components/common/field.js.map +1 -0
- package/components/common/index.d.ts +1 -0
- package/components/{iqr-form-loader → common}/index.js +1 -3
- package/components/common/index.js.map +1 -0
- package/components/{iqr-text-field → common}/styles/paths.d.ts +3 -0
- package/components/{iqr-text-field → common}/styles/paths.js +28 -5
- package/components/common/styles/paths.js.map +1 -0
- package/components/common/utils.d.ts +8 -0
- package/components/common/utils.js +42 -0
- package/components/common/utils.js.map +1 -0
- package/components/icure-button-group/index.d.ts +12 -0
- package/components/icure-button-group/index.js +1140 -0
- package/components/icure-button-group/index.js.map +1 -0
- package/components/icure-date-picker/index.d.ts +16 -0
- package/components/icure-date-picker/index.js +1140 -0
- package/components/icure-date-picker/index.js.map +1 -0
- package/components/icure-dropdown-field/index.d.ts +16 -0
- package/components/icure-dropdown-field/index.js +1153 -0
- package/components/icure-dropdown-field/index.js.map +1 -0
- package/components/icure-form/fields/button-group/checkbox.d.ts +6 -0
- package/components/icure-form/fields/button-group/checkbox.js +61 -0
- package/components/icure-form/fields/button-group/checkbox.js.map +1 -0
- package/components/icure-form/fields/button-group/index.d.ts +2 -0
- package/components/icure-form/fields/button-group/index.js +19 -0
- package/components/icure-form/fields/button-group/index.js.map +1 -0
- package/components/icure-form/fields/button-group/radio-button.d.ts +6 -0
- package/components/icure-form/fields/button-group/radio-button.js +61 -0
- package/components/icure-form/fields/button-group/radio-button.js.map +1 -0
- package/components/icure-form/fields/date-picker/date-picker.d.ts +4 -0
- package/components/icure-form/fields/date-picker/date-picker.js +29 -0
- package/components/icure-form/fields/date-picker/date-picker.js.map +1 -0
- package/components/icure-form/fields/date-picker/date-time-picker.d.ts +4 -0
- package/components/icure-form/fields/date-picker/date-time-picker.js +29 -0
- package/components/icure-form/fields/date-picker/date-time-picker.js.map +1 -0
- package/components/icure-form/fields/date-picker/index.d.ts +3 -0
- package/components/icure-form/fields/date-picker/index.js +20 -0
- package/components/icure-form/fields/date-picker/index.js.map +1 -0
- package/components/icure-form/fields/date-picker/time-picker.d.ts +4 -0
- package/components/icure-form/fields/date-picker/time-picker.js +29 -0
- package/components/icure-form/fields/date-picker/time-picker.js.map +1 -0
- package/components/icure-form/fields/dropdown/dropdown-field.d.ts +11 -0
- package/components/icure-form/fields/dropdown/dropdown-field.js +65 -0
- package/components/icure-form/fields/dropdown/dropdown-field.js.map +1 -0
- package/components/icure-form/fields/dropdown/index.d.ts +1 -0
- package/components/icure-form/fields/dropdown/index.js +18 -0
- package/components/icure-form/fields/dropdown/index.js.map +1 -0
- package/components/icure-form/fields/index.d.ts +9 -0
- package/components/icure-form/fields/index.js +26 -0
- package/components/icure-form/fields/index.js.map +1 -0
- package/components/icure-form/fields/items-list-field/index.d.ts +1 -0
- package/components/icure-form/fields/items-list-field/index.js +18 -0
- package/components/icure-form/fields/items-list-field/index.js.map +1 -0
- package/components/icure-form/fields/items-list-field/items-list-field.d.ts +6 -0
- package/components/icure-form/fields/items-list-field/items-list-field.js +49 -0
- package/components/icure-form/fields/items-list-field/items-list-field.js.map +1 -0
- package/components/icure-form/fields/label/index.d.ts +1 -0
- package/components/icure-form/fields/label/index.js +18 -0
- package/components/icure-form/fields/label/index.js.map +1 -0
- package/components/{iqr-form/fields/multipleChoice.d.ts → icure-form/fields/label/label.d.ts} +5 -4
- package/components/{iqr-form/fields/multipleChoice.js → icure-form/fields/label/label.js} +18 -15
- package/components/icure-form/fields/label/label.js.map +1 -0
- package/components/icure-form/fields/measure-field/index.d.ts +1 -0
- package/components/icure-form/fields/measure-field/index.js +18 -0
- package/components/icure-form/fields/measure-field/index.js.map +1 -0
- package/components/icure-form/fields/measure-field/measure-field.d.ts +4 -0
- package/components/icure-form/fields/measure-field/measure-field.js +31 -0
- package/components/icure-form/fields/measure-field/measure-field.js.map +1 -0
- package/components/icure-form/fields/number-field/index.d.ts +1 -0
- package/components/icure-form/fields/number-field/index.js +18 -0
- package/components/icure-form/fields/number-field/index.js.map +1 -0
- package/components/icure-form/fields/number-field/number-field.d.ts +4 -0
- package/components/icure-form/fields/number-field/number-field.js +29 -0
- package/components/icure-form/fields/number-field/number-field.js.map +1 -0
- package/components/icure-form/fields/text-field/index.d.ts +1 -0
- package/components/icure-form/fields/text-field/index.js +18 -0
- package/components/icure-form/fields/text-field/index.js.map +1 -0
- package/components/icure-form/fields/text-field/text-field.d.ts +28 -0
- package/components/icure-form/fields/text-field/text-field.js +123 -0
- package/components/icure-form/fields/text-field/text-field.js.map +1 -0
- package/components/icure-form/fields/token-field/index.d.ts +1 -0
- package/components/icure-form/fields/token-field/index.js +18 -0
- package/components/icure-form/fields/token-field/index.js.map +1 -0
- package/components/icure-form/fields/token-field/token-field.d.ts +6 -0
- package/components/{iqr-form/fields/datePicker.js → icure-form/fields/token-field/token-field.js} +26 -34
- package/components/icure-form/fields/token-field/token-field.js.map +1 -0
- package/components/icure-form/fields/utils/index.d.ts +11 -0
- package/components/icure-form/fields/utils/index.js +48 -0
- package/components/icure-form/fields/utils/index.js.map +1 -0
- package/components/icure-form/index.d.ts +23 -0
- package/components/icure-form/index.js +1127 -0
- package/components/icure-form/index.js.map +1 -0
- package/components/icure-form/renderer/form/form-selection-button.d.ts +9 -0
- package/components/icure-form/renderer/form/form-selection-button.js +108 -0
- package/components/icure-form/renderer/form/form-selection-button.js.map +1 -0
- package/components/icure-form/renderer/form/form.d.ts +3 -0
- package/components/icure-form/renderer/form/form.js +399 -0
- package/components/icure-form/renderer/form/form.js.map +1 -0
- package/components/icure-form/renderer/index.d.ts +11 -0
- package/components/icure-form/renderer/index.js.map +1 -0
- package/components/icure-label/index.d.ts +8 -0
- package/components/icure-label/index.js +1072 -0
- package/components/icure-label/index.js.map +1 -0
- package/components/icure-text-field/index.d.ts +69 -0
- package/components/icure-text-field/index.js +1739 -0
- package/components/icure-text-field/index.js.map +1 -0
- package/components/icure-text-field/plugin/caret-fix-plugin.js.map +1 -0
- package/components/{iqr-text-field → icure-text-field}/plugin/has-content-class-plugin.d.ts +1 -1
- package/components/icure-text-field/plugin/has-content-class-plugin.js.map +1 -0
- package/components/icure-text-field/plugin/mask-plugin.js.map +1 -0
- package/components/icure-text-field/plugin/regexp-plugin.js.map +1 -0
- package/components/icure-text-field/prosemirror-commands.js.map +1 -0
- package/components/{iqr-text-field → icure-text-field}/prosemirror-utils.d.ts +1 -1
- package/components/icure-text-field/prosemirror-utils.js.map +1 -0
- package/components/icure-text-field/schema/common-marks.js.map +1 -0
- package/components/{iqr-text-field → icure-text-field}/schema/date-time-schema.d.ts +3 -3
- package/components/icure-text-field/schema/date-time-schema.js.map +1 -0
- package/components/{iqr-text-field → icure-text-field}/schema/decimal-schema.d.ts +1 -1
- package/components/icure-text-field/schema/decimal-schema.js.map +1 -0
- package/components/icure-text-field/schema/index.d.ts +6 -0
- package/components/{iqr-text-field → icure-text-field}/schema/index.js +6 -3
- package/components/icure-text-field/schema/index.js.map +1 -0
- package/components/icure-text-field/schema/items-list-schema.d.ts +3 -0
- package/components/icure-text-field/schema/items-list-schema.js +28 -0
- package/components/icure-text-field/schema/items-list-schema.js.map +1 -0
- package/components/icure-text-field/schema/items-list.d.ts +3 -0
- package/components/icure-text-field/schema/items-list.js +31 -0
- package/components/icure-text-field/schema/items-list.js.map +1 -0
- package/components/{iqr-text-field → icure-text-field}/schema/markdown-schema.d.ts +3 -3
- package/components/icure-text-field/schema/markdown-schema.js.map +1 -0
- package/components/icure-text-field/schema/measure-schema.d.ts +7 -0
- package/components/icure-text-field/schema/measure-schema.js +81 -0
- package/components/icure-text-field/schema/measure-schema.js.map +1 -0
- package/components/{iqr-text-field → icure-text-field}/schema/token-schema.d.ts +1 -1
- package/components/{iqr-text-field → icure-text-field}/schema/token-schema.js +3 -6
- package/components/icure-text-field/schema/token-schema.js.map +1 -0
- package/components/icure-text-field/schema/utils.js.map +1 -0
- package/components/icure-text-field/selection-companion.js.map +1 -0
- package/components/{iqr-text-field → icure-text-field}/suggestion-palette.d.ts +1 -6
- package/components/icure-text-field/suggestion-palette.js.map +1 -0
- package/components/index.d.ts +5 -2
- package/components/index.js +5 -2
- package/components/index.js.map +1 -1
- package/components/model/index.d.ts +782 -0
- package/components/model/index.js +632 -0
- package/components/model/index.js.map +1 -0
- package/components/themes/default/index.d.ts +1 -0
- package/components/themes/default/index.js +28 -0
- package/components/themes/default/index.js.map +1 -0
- package/components/themes/ehr-lite/index.d.ts +1 -0
- package/components/themes/ehr-lite/index.js +321 -0
- package/components/themes/ehr-lite/index.js.map +1 -0
- package/components/themes/kendo/index.d.ts +1 -0
- package/components/themes/kendo/index.js +285 -0
- package/components/themes/kendo/index.js.map +1 -0
- package/conversion/ckmeans-grouping.d.ts +4 -0
- package/conversion/ckmeans-grouping.js +53 -0
- package/conversion/ckmeans-grouping.js.map +1 -0
- package/conversion/ckmeans.d.ts +44 -0
- package/conversion/ckmeans.js +287 -0
- package/conversion/ckmeans.js.map +1 -0
- package/conversion/icure-convert.d.ts +3 -0
- package/conversion/icure-convert.js +165 -0
- package/conversion/icure-convert.js.map +1 -0
- package/generic/index.d.ts +1 -0
- package/generic/index.js +18 -0
- package/generic/index.js.map +1 -0
- package/generic/model.d.ts +39 -0
- package/{components/iqr-form-loader/models.js → generic/model.js} +1 -1
- package/generic/model.js.map +1 -0
- package/icure/form-values-container.d.ts +83 -0
- package/icure/form-values-container.js +445 -0
- package/icure/form-values-container.js.map +1 -0
- package/icure/index.d.ts +2 -0
- package/icure/index.js +19 -0
- package/icure/index.js.map +1 -0
- package/icure/model.d.ts +10 -0
- package/icure/model.js +3 -0
- package/icure/model.js.map +1 -0
- package/package.json +21 -16
- package/utils/code-utils.d.ts +18 -0
- package/utils/code-utils.js +36 -0
- package/utils/code-utils.js.map +1 -0
- package/utils/fields-values-provider.d.ts +18 -0
- package/utils/fields-values-provider.js +50 -0
- package/utils/fields-values-provider.js.map +1 -0
- package/utils/form-value-container.d.ts +3 -0
- package/utils/form-value-container.js +45 -0
- package/utils/form-value-container.js.map +1 -0
- package/utils/icure-utils.d.ts +8 -11
- package/utils/icure-utils.js +47 -48
- package/utils/icure-utils.js.map +1 -1
- package/utils/interpreter.d.ts +4 -0
- package/utils/interpreter.js +52 -0
- package/utils/interpreter.js.map +1 -0
- package/utils/languages.d.ts +3 -1
- package/utils/languages.js +4 -4
- package/utils/languages.js.map +1 -1
- package/utils/markdown.d.ts +8 -0
- package/utils/markdown.js +58 -0
- package/utils/markdown.js.map +1 -0
- package/utils/primitive.d.ts +7 -0
- package/utils/primitive.js +123 -0
- package/utils/primitive.js.map +1 -0
- package/components/iqr-form/fields/datePicker.d.ts +0 -10
- package/components/iqr-form/fields/datePicker.js.map +0 -1
- package/components/iqr-form/fields/dateTimePicker.d.ts +0 -10
- package/components/iqr-form/fields/dateTimePicker.js +0 -49
- package/components/iqr-form/fields/dateTimePicker.js.map +0 -1
- package/components/iqr-form/fields/measureField.d.ts +0 -8
- package/components/iqr-form/fields/measureField.js +0 -44
- package/components/iqr-form/fields/measureField.js.map +0 -1
- package/components/iqr-form/fields/multipleChoice.js.map +0 -1
- package/components/iqr-form/fields/numberField.d.ts +0 -8
- package/components/iqr-form/fields/numberField.js +0 -44
- package/components/iqr-form/fields/numberField.js.map +0 -1
- package/components/iqr-form/fields/textfield.d.ts +0 -1
- package/components/iqr-form/fields/textfield.js +0 -143
- package/components/iqr-form/fields/textfield.js.map +0 -1
- package/components/iqr-form/fields/timePicker.d.ts +0 -10
- package/components/iqr-form/fields/timePicker.js +0 -49
- package/components/iqr-form/fields/timePicker.js.map +0 -1
- package/components/iqr-form/index.d.ts +0 -7
- package/components/iqr-form/index.js +0 -147
- package/components/iqr-form/index.js.map +0 -1
- package/components/iqr-form/legacy/Content.d.ts +0 -28
- package/components/iqr-form/legacy/Content.js +0 -30
- package/components/iqr-form/legacy/Content.js.map +0 -1
- package/components/iqr-form/legacy/Data.d.ts +0 -14
- package/components/iqr-form/legacy/Data.js +0 -21
- package/components/iqr-form/legacy/Data.js.map +0 -1
- package/components/iqr-form/legacy/Editor.d.ts +0 -34
- package/components/iqr-form/legacy/Editor.js +0 -19
- package/components/iqr-form/legacy/Editor.js.map +0 -1
- package/components/iqr-form/legacy/FormColumn.d.ts +0 -18
- package/components/iqr-form/legacy/FormColumn.js +0 -10
- package/components/iqr-form/legacy/FormColumn.js.map +0 -1
- package/components/iqr-form/legacy/FormDataOption.d.ts +0 -16
- package/components/iqr-form/legacy/FormDataOption.js +0 -21
- package/components/iqr-form/legacy/FormDataOption.js.map +0 -1
- package/components/iqr-form/legacy/FormLayout.d.ts +0 -25
- package/components/iqr-form/legacy/FormLayout.js +0 -10
- package/components/iqr-form/legacy/FormLayout.js.map +0 -1
- package/components/iqr-form/legacy/FormLayoutData.d.ts +0 -42
- package/components/iqr-form/legacy/FormLayoutData.js +0 -10
- package/components/iqr-form/legacy/FormLayoutData.js.map +0 -1
- package/components/iqr-form/legacy/FormPlanning.d.ts +0 -22
- package/components/iqr-form/legacy/FormPlanning.js +0 -21
- package/components/iqr-form/legacy/FormPlanning.js.map +0 -1
- package/components/iqr-form/legacy/FormSection.d.ts +0 -19
- package/components/iqr-form/legacy/FormSection.js +0 -10
- package/components/iqr-form/legacy/FormSection.js.map +0 -1
- package/components/iqr-form/legacy/Formula.d.ts +0 -27
- package/components/iqr-form/legacy/Formula.js +0 -32
- package/components/iqr-form/legacy/Formula.js.map +0 -1
- package/components/iqr-form/legacy/GuiCode.d.ts +0 -16
- package/components/iqr-form/legacy/GuiCode.js +0 -21
- package/components/iqr-form/legacy/GuiCode.js.map +0 -1
- package/components/iqr-form/legacy/GuiCodeType.d.ts +0 -15
- package/components/iqr-form/legacy/GuiCodeType.js +0 -21
- package/components/iqr-form/legacy/GuiCodeType.js.map +0 -1
- package/components/iqr-form/legacy/Suggest.d.ts +0 -19
- package/components/iqr-form/legacy/Suggest.js +0 -21
- package/components/iqr-form/legacy/Suggest.js.map +0 -1
- package/components/iqr-form/legacy/Tag.d.ts +0 -16
- package/components/iqr-form/legacy/Tag.js +0 -21
- package/components/iqr-form/legacy/Tag.js.map +0 -1
- package/components/iqr-form/model/index.d.ts +0 -96
- package/components/iqr-form/model/index.js +0 -120
- package/components/iqr-form/model/index.js.map +0 -1
- package/components/iqr-form/renderer/cards.d.ts +0 -2
- package/components/iqr-form/renderer/cards.js +0 -55
- package/components/iqr-form/renderer/cards.js.map +0 -1
- package/components/iqr-form/renderer/form.d.ts +0 -2
- package/components/iqr-form/renderer/form.js +0 -93
- package/components/iqr-form/renderer/form.js.map +0 -1
- package/components/iqr-form/renderer/index.d.ts +0 -6
- package/components/iqr-form/renderer/index.js.map +0 -1
- package/components/iqr-form/utils.d.ts +0 -5
- package/components/iqr-form/utils.js +0 -91
- package/components/iqr-form/utils.js.map +0 -1
- package/components/iqr-form-loader/fieldsValuesProviders.d.ts +0 -13
- package/components/iqr-form-loader/fieldsValuesProviders.js +0 -49
- package/components/iqr-form-loader/fieldsValuesProviders.js.map +0 -1
- package/components/iqr-form-loader/formValuesContainer.d.ts +0 -33
- package/components/iqr-form-loader/formValuesContainer.js +0 -111
- package/components/iqr-form-loader/formValuesContainer.js.map +0 -1
- package/components/iqr-form-loader/index.d.ts +0 -3
- package/components/iqr-form-loader/index.js.map +0 -1
- package/components/iqr-form-loader/models.d.ts +0 -14
- package/components/iqr-form-loader/models.js.map +0 -1
- package/components/iqr-text-field/index.d.ts +0 -26
- package/components/iqr-text-field/index.js +0 -1242
- package/components/iqr-text-field/index.js.map +0 -1
- package/components/iqr-text-field/plugin/caret-fix-plugin.js.map +0 -1
- package/components/iqr-text-field/plugin/has-content-class-plugin.js.map +0 -1
- package/components/iqr-text-field/plugin/mask-plugin.js.map +0 -1
- package/components/iqr-text-field/plugin/regexp-plugin.js.map +0 -1
- package/components/iqr-text-field/prosemirror-commands.js.map +0 -1
- package/components/iqr-text-field/prosemirror-utils.js.map +0 -1
- package/components/iqr-text-field/schema/common-marks.js.map +0 -1
- package/components/iqr-text-field/schema/date-time-schema.js.map +0 -1
- package/components/iqr-text-field/schema/decimal-schema.js.map +0 -1
- package/components/iqr-text-field/schema/index.d.ts +0 -11
- package/components/iqr-text-field/schema/index.js.map +0 -1
- package/components/iqr-text-field/schema/markdown-schema.js.map +0 -1
- package/components/iqr-text-field/schema/measure-schema.d.ts +0 -3
- package/components/iqr-text-field/schema/measure-schema.js +0 -36
- package/components/iqr-text-field/schema/measure-schema.js.map +0 -1
- package/components/iqr-text-field/schema/token-schema.js.map +0 -1
- package/components/iqr-text-field/schema/utils.js.map +0 -1
- package/components/iqr-text-field/selection-companion.js.map +0 -1
- package/components/iqr-text-field/styles/paths.js.map +0 -1
- package/components/iqr-text-field/suggestion-palette.js.map +0 -1
- /package/components/{iqr-form → icure-form}/renderer/index.js +0 -0
- /package/components/{iqr-text-field → icure-text-field}/plugin/caret-fix-plugin.d.ts +0 -0
- /package/components/{iqr-text-field → icure-text-field}/plugin/caret-fix-plugin.js +0 -0
- /package/components/{iqr-text-field → icure-text-field}/plugin/has-content-class-plugin.js +0 -0
- /package/components/{iqr-text-field → icure-text-field}/plugin/mask-plugin.d.ts +0 -0
- /package/components/{iqr-text-field → icure-text-field}/plugin/mask-plugin.js +0 -0
- /package/components/{iqr-text-field → icure-text-field}/plugin/regexp-plugin.d.ts +0 -0
- /package/components/{iqr-text-field → icure-text-field}/plugin/regexp-plugin.js +0 -0
- /package/components/{iqr-text-field → icure-text-field}/prosemirror-commands.d.ts +0 -0
- /package/components/{iqr-text-field → icure-text-field}/prosemirror-commands.js +0 -0
- /package/components/{iqr-text-field → icure-text-field}/prosemirror-utils.js +0 -0
- /package/components/{iqr-text-field → icure-text-field}/schema/common-marks.d.ts +0 -0
- /package/components/{iqr-text-field → icure-text-field}/schema/common-marks.js +0 -0
- /package/components/{iqr-text-field → icure-text-field}/schema/date-time-schema.js +0 -0
- /package/components/{iqr-text-field → icure-text-field}/schema/decimal-schema.js +0 -0
- /package/components/{iqr-text-field → icure-text-field}/schema/markdown-schema.js +0 -0
- /package/components/{iqr-text-field → icure-text-field}/schema/utils.d.ts +0 -0
- /package/components/{iqr-text-field → icure-text-field}/schema/utils.js +0 -0
- /package/components/{iqr-text-field → icure-text-field}/selection-companion.d.ts +0 -0
- /package/components/{iqr-text-field → icure-text-field}/selection-companion.js +0 -0
- /package/components/{iqr-text-field → icure-text-field}/suggestion-palette.js +0 -0
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.FormSection = void 0;
|
|
4
|
-
class FormSection {
|
|
5
|
-
constructor(json) {
|
|
6
|
-
Object.assign(this, json);
|
|
7
|
-
}
|
|
8
|
-
}
|
|
9
|
-
exports.FormSection = FormSection;
|
|
10
|
-
//# sourceMappingURL=FormSection.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"FormSection.js","sourceRoot":"","sources":["../../../../tmp/components/iqr-form/legacy/FormSection.ts"],"names":[],"mappings":";;;AAaA,MAAa,WAAW;IAMvB,YAAY,IAAgB;QAC3B,MAAM,CAAC,MAAM,CAAC,IAAmB,EAAE,IAAI,CAAC,CAAA;IACzC,CAAC;CACD;AATD,kCASC","sourcesContent":["/**\n * iCure Cloud API Documentation\n * Spring shop sample application\n *\n * OpenAPI spec version: v0.0.1\n *\n *\n * NOTE: This class is auto generated by the swagger code generator program.\n * https://github.com/swagger-api/swagger-codegen.git\n * Do not edit the class manually.\n */\nimport { FormColumn } from './FormColumn'\n\nexport class FormSection {\n\ticon?: string\n\ttitle?: string\n\tcolumns?: number\n\tformColumns?: Array<FormColumn>\n\n\tconstructor(json: JSON | any) {\n\t\tObject.assign(this as FormSection, json)\n\t}\n}\n"]}
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* iCure Cloud API Documentation
|
|
3
|
-
* Spring shop sample application
|
|
4
|
-
*
|
|
5
|
-
* OpenAPI spec version: v0.0.1
|
|
6
|
-
*
|
|
7
|
-
*
|
|
8
|
-
* NOTE: This class is auto generated by the swagger code generator program.
|
|
9
|
-
* https://github.com/swagger-api/swagger-codegen.git
|
|
10
|
-
* Do not edit the class manually.
|
|
11
|
-
*/
|
|
12
|
-
export declare class Formula {
|
|
13
|
-
value?: string;
|
|
14
|
-
lifecycle?: Formula.LifecycleEnum;
|
|
15
|
-
constructor(json: JSON | any);
|
|
16
|
-
}
|
|
17
|
-
export declare namespace Formula {
|
|
18
|
-
type LifecycleEnum = 'OnCreate' | 'OnLoad' | 'OnChange' | 'OnSave' | 'OnDestroy' | 'OnLoadPropertiesEditor';
|
|
19
|
-
const LifecycleEnum: {
|
|
20
|
-
OnCreate: LifecycleEnum;
|
|
21
|
-
OnLoad: LifecycleEnum;
|
|
22
|
-
OnChange: LifecycleEnum;
|
|
23
|
-
OnSave: LifecycleEnum;
|
|
24
|
-
OnDestroy: LifecycleEnum;
|
|
25
|
-
OnLoadPropertiesEditor: LifecycleEnum;
|
|
26
|
-
};
|
|
27
|
-
}
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/**
|
|
3
|
-
* iCure Cloud API Documentation
|
|
4
|
-
* Spring shop sample application
|
|
5
|
-
*
|
|
6
|
-
* OpenAPI spec version: v0.0.1
|
|
7
|
-
*
|
|
8
|
-
*
|
|
9
|
-
* NOTE: This class is auto generated by the swagger code generator program.
|
|
10
|
-
* https://github.com/swagger-api/swagger-codegen.git
|
|
11
|
-
* Do not edit the class manually.
|
|
12
|
-
*/
|
|
13
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
14
|
-
exports.Formula = void 0;
|
|
15
|
-
class Formula {
|
|
16
|
-
constructor(json) {
|
|
17
|
-
Object.assign(this, json);
|
|
18
|
-
}
|
|
19
|
-
}
|
|
20
|
-
exports.Formula = Formula;
|
|
21
|
-
// eslint-disable-next-line @typescript-eslint/no-namespace
|
|
22
|
-
(function (Formula) {
|
|
23
|
-
Formula.LifecycleEnum = {
|
|
24
|
-
OnCreate: 'OnCreate',
|
|
25
|
-
OnLoad: 'OnLoad',
|
|
26
|
-
OnChange: 'OnChange',
|
|
27
|
-
OnSave: 'OnSave',
|
|
28
|
-
OnDestroy: 'OnDestroy',
|
|
29
|
-
OnLoadPropertiesEditor: 'OnLoadPropertiesEditor',
|
|
30
|
-
};
|
|
31
|
-
})(Formula = exports.Formula || (exports.Formula = {}));
|
|
32
|
-
//# sourceMappingURL=Formula.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Formula.js","sourceRoot":"","sources":["../../../../tmp/components/iqr-form/legacy/Formula.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;GAUG;;;AAEH,MAAa,OAAO;IAInB,YAAY,IAAgB;QAC3B,MAAM,CAAC,MAAM,CAAC,IAAe,EAAE,IAAI,CAAC,CAAA;IACrC,CAAC;CACD;AAPD,0BAOC;AAED,2DAA2D;AAC3D,WAAiB,OAAO;IAEV,qBAAa,GAAG;QAC5B,QAAQ,EAAE,UAA2B;QACrC,MAAM,EAAE,QAAyB;QACjC,QAAQ,EAAE,UAA2B;QACrC,MAAM,EAAE,QAAyB;QACjC,SAAS,EAAE,WAA4B;QACvC,sBAAsB,EAAE,wBAAyC;KACjE,CAAA;AACF,CAAC,EAVgB,OAAO,GAAP,eAAO,KAAP,eAAO,QAUvB","sourcesContent":["/**\n * iCure Cloud API Documentation\n * Spring shop sample application\n *\n * OpenAPI spec version: v0.0.1\n *\n *\n * NOTE: This class is auto generated by the swagger code generator program.\n * https://github.com/swagger-api/swagger-codegen.git\n * Do not edit the class manually.\n */\n\nexport class Formula {\n\tvalue?: string\n\tlifecycle?: Formula.LifecycleEnum\n\n\tconstructor(json: JSON | any) {\n\t\tObject.assign(this as Formula, json)\n\t}\n}\n\n// eslint-disable-next-line @typescript-eslint/no-namespace\nexport namespace Formula {\n\texport type LifecycleEnum = 'OnCreate' | 'OnLoad' | 'OnChange' | 'OnSave' | 'OnDestroy' | 'OnLoadPropertiesEditor'\n\texport const LifecycleEnum = {\n\t\tOnCreate: 'OnCreate' as LifecycleEnum,\n\t\tOnLoad: 'OnLoad' as LifecycleEnum,\n\t\tOnChange: 'OnChange' as LifecycleEnum,\n\t\tOnSave: 'OnSave' as LifecycleEnum,\n\t\tOnDestroy: 'OnDestroy' as LifecycleEnum,\n\t\tOnLoadPropertiesEditor: 'OnLoadPropertiesEditor' as LifecycleEnum,\n\t}\n}\n"]}
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* iCure Cloud API Documentation
|
|
3
|
-
* Spring shop sample application
|
|
4
|
-
*
|
|
5
|
-
* OpenAPI spec version: v0.0.1
|
|
6
|
-
*
|
|
7
|
-
*
|
|
8
|
-
* NOTE: This class is auto generated by the swagger code generator program.
|
|
9
|
-
* https://github.com/swagger-api/swagger-codegen.git
|
|
10
|
-
* Do not edit the class manually.
|
|
11
|
-
*/
|
|
12
|
-
export declare class GuiCode {
|
|
13
|
-
type?: string;
|
|
14
|
-
code?: string;
|
|
15
|
-
constructor(json: JSON | any);
|
|
16
|
-
}
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/**
|
|
3
|
-
* iCure Cloud API Documentation
|
|
4
|
-
* Spring shop sample application
|
|
5
|
-
*
|
|
6
|
-
* OpenAPI spec version: v0.0.1
|
|
7
|
-
*
|
|
8
|
-
*
|
|
9
|
-
* NOTE: This class is auto generated by the swagger code generator program.
|
|
10
|
-
* https://github.com/swagger-api/swagger-codegen.git
|
|
11
|
-
* Do not edit the class manually.
|
|
12
|
-
*/
|
|
13
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
14
|
-
exports.GuiCode = void 0;
|
|
15
|
-
class GuiCode {
|
|
16
|
-
constructor(json) {
|
|
17
|
-
Object.assign(this, json);
|
|
18
|
-
}
|
|
19
|
-
}
|
|
20
|
-
exports.GuiCode = GuiCode;
|
|
21
|
-
//# sourceMappingURL=GuiCode.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"GuiCode.js","sourceRoot":"","sources":["../../../../tmp/components/iqr-form/legacy/GuiCode.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;GAUG;;;AAEH,MAAa,OAAO;IAInB,YAAY,IAAgB;QAC3B,MAAM,CAAC,MAAM,CAAC,IAAe,EAAE,IAAI,CAAC,CAAA;IACrC,CAAC;CACD;AAPD,0BAOC","sourcesContent":["/**\n * iCure Cloud API Documentation\n * Spring shop sample application\n *\n * OpenAPI spec version: v0.0.1\n *\n *\n * NOTE: This class is auto generated by the swagger code generator program.\n * https://github.com/swagger-api/swagger-codegen.git\n * Do not edit the class manually.\n */\n\nexport class GuiCode {\n\ttype?: string\n\tcode?: string\n\n\tconstructor(json: JSON | any) {\n\t\tObject.assign(this as GuiCode, json)\n\t}\n}\n"]}
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* iCure Cloud API Documentation
|
|
3
|
-
* Spring shop sample application
|
|
4
|
-
*
|
|
5
|
-
* OpenAPI spec version: v0.0.1
|
|
6
|
-
*
|
|
7
|
-
*
|
|
8
|
-
* NOTE: This class is auto generated by the swagger code generator program.
|
|
9
|
-
* https://github.com/swagger-api/swagger-codegen.git
|
|
10
|
-
* Do not edit the class manually.
|
|
11
|
-
*/
|
|
12
|
-
export declare class GuiCodeType {
|
|
13
|
-
type?: string;
|
|
14
|
-
constructor(json: JSON | any);
|
|
15
|
-
}
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/**
|
|
3
|
-
* iCure Cloud API Documentation
|
|
4
|
-
* Spring shop sample application
|
|
5
|
-
*
|
|
6
|
-
* OpenAPI spec version: v0.0.1
|
|
7
|
-
*
|
|
8
|
-
*
|
|
9
|
-
* NOTE: This class is auto generated by the swagger code generator program.
|
|
10
|
-
* https://github.com/swagger-api/swagger-codegen.git
|
|
11
|
-
* Do not edit the class manually.
|
|
12
|
-
*/
|
|
13
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
14
|
-
exports.GuiCodeType = void 0;
|
|
15
|
-
class GuiCodeType {
|
|
16
|
-
constructor(json) {
|
|
17
|
-
Object.assign(this, json);
|
|
18
|
-
}
|
|
19
|
-
}
|
|
20
|
-
exports.GuiCodeType = GuiCodeType;
|
|
21
|
-
//# sourceMappingURL=GuiCodeType.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"GuiCodeType.js","sourceRoot":"","sources":["../../../../tmp/components/iqr-form/legacy/GuiCodeType.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;GAUG;;;AAEH,MAAa,WAAW;IAGvB,YAAY,IAAgB;QAC3B,MAAM,CAAC,MAAM,CAAC,IAAmB,EAAE,IAAI,CAAC,CAAA;IACzC,CAAC;CACD;AAND,kCAMC","sourcesContent":["/**\n * iCure Cloud API Documentation\n * Spring shop sample application\n *\n * OpenAPI spec version: v0.0.1\n *\n *\n * NOTE: This class is auto generated by the swagger code generator program.\n * https://github.com/swagger-api/swagger-codegen.git\n * Do not edit the class manually.\n */\n\nexport class GuiCodeType {\n\ttype?: string\n\n\tconstructor(json: JSON | any) {\n\t\tObject.assign(this as GuiCodeType, json)\n\t}\n}\n"]}
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* iCure Cloud API Documentation
|
|
3
|
-
* Spring shop sample application
|
|
4
|
-
*
|
|
5
|
-
* OpenAPI spec version: v0.0.1
|
|
6
|
-
*
|
|
7
|
-
*
|
|
8
|
-
* NOTE: This class is auto generated by the swagger code generator program.
|
|
9
|
-
* https://github.com/swagger-api/swagger-codegen.git
|
|
10
|
-
* Do not edit the class manually.
|
|
11
|
-
*/
|
|
12
|
-
export declare class Suggest {
|
|
13
|
-
filterKey?: string;
|
|
14
|
-
filterValue?: string;
|
|
15
|
-
entityClass?: string;
|
|
16
|
-
fieldValue?: string;
|
|
17
|
-
fieldDisplay?: string;
|
|
18
|
-
constructor(json: JSON | any);
|
|
19
|
-
}
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/**
|
|
3
|
-
* iCure Cloud API Documentation
|
|
4
|
-
* Spring shop sample application
|
|
5
|
-
*
|
|
6
|
-
* OpenAPI spec version: v0.0.1
|
|
7
|
-
*
|
|
8
|
-
*
|
|
9
|
-
* NOTE: This class is auto generated by the swagger code generator program.
|
|
10
|
-
* https://github.com/swagger-api/swagger-codegen.git
|
|
11
|
-
* Do not edit the class manually.
|
|
12
|
-
*/
|
|
13
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
14
|
-
exports.Suggest = void 0;
|
|
15
|
-
class Suggest {
|
|
16
|
-
constructor(json) {
|
|
17
|
-
Object.assign(this, json);
|
|
18
|
-
}
|
|
19
|
-
}
|
|
20
|
-
exports.Suggest = Suggest;
|
|
21
|
-
//# sourceMappingURL=Suggest.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Suggest.js","sourceRoot":"","sources":["../../../../tmp/components/iqr-form/legacy/Suggest.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;GAUG;;;AAEH,MAAa,OAAO;IAOnB,YAAY,IAAgB;QAC3B,MAAM,CAAC,MAAM,CAAC,IAAe,EAAE,IAAI,CAAC,CAAA;IACrC,CAAC;CACD;AAVD,0BAUC","sourcesContent":["/**\n * iCure Cloud API Documentation\n * Spring shop sample application\n *\n * OpenAPI spec version: v0.0.1\n *\n *\n * NOTE: This class is auto generated by the swagger code generator program.\n * https://github.com/swagger-api/swagger-codegen.git\n * Do not edit the class manually.\n */\n\nexport class Suggest {\n\tfilterKey?: string\n\tfilterValue?: string\n\tentityClass?: string\n\tfieldValue?: string\n\tfieldDisplay?: string\n\n\tconstructor(json: JSON | any) {\n\t\tObject.assign(this as Suggest, json)\n\t}\n}\n"]}
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* iCure Cloud API Documentation
|
|
3
|
-
* Spring shop sample application
|
|
4
|
-
*
|
|
5
|
-
* OpenAPI spec version: v0.0.1
|
|
6
|
-
*
|
|
7
|
-
*
|
|
8
|
-
* NOTE: This class is auto generated by the swagger code generator program.
|
|
9
|
-
* https://github.com/swagger-api/swagger-codegen.git
|
|
10
|
-
* Do not edit the class manually.
|
|
11
|
-
*/
|
|
12
|
-
export declare class Tag {
|
|
13
|
-
type?: string;
|
|
14
|
-
tag?: string;
|
|
15
|
-
constructor(json: JSON | any);
|
|
16
|
-
}
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/**
|
|
3
|
-
* iCure Cloud API Documentation
|
|
4
|
-
* Spring shop sample application
|
|
5
|
-
*
|
|
6
|
-
* OpenAPI spec version: v0.0.1
|
|
7
|
-
*
|
|
8
|
-
*
|
|
9
|
-
* NOTE: This class is auto generated by the swagger code generator program.
|
|
10
|
-
* https://github.com/swagger-api/swagger-codegen.git
|
|
11
|
-
* Do not edit the class manually.
|
|
12
|
-
*/
|
|
13
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
14
|
-
exports.Tag = void 0;
|
|
15
|
-
class Tag {
|
|
16
|
-
constructor(json) {
|
|
17
|
-
Object.assign(this, json);
|
|
18
|
-
}
|
|
19
|
-
}
|
|
20
|
-
exports.Tag = Tag;
|
|
21
|
-
//# sourceMappingURL=Tag.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Tag.js","sourceRoot":"","sources":["../../../../tmp/components/iqr-form/legacy/Tag.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;GAUG;;;AAEH,MAAa,GAAG;IAIf,YAAY,IAAgB;QAC3B,MAAM,CAAC,MAAM,CAAC,IAAW,EAAE,IAAI,CAAC,CAAA;IACjC,CAAC;CACD;AAPD,kBAOC","sourcesContent":["/**\n * iCure Cloud API Documentation\n * Spring shop sample application\n *\n * OpenAPI spec version: v0.0.1\n *\n *\n * NOTE: This class is auto generated by the swagger code generator program.\n * https://github.com/swagger-api/swagger-codegen.git\n * Do not edit the class manually.\n */\n\nexport class Tag {\n\ttype?: string\n\ttag?: string\n\n\tconstructor(json: JSON | any) {\n\t\tObject.assign(this as Tag, json)\n\t}\n}\n"]}
|
|
@@ -1,96 +0,0 @@
|
|
|
1
|
-
import { IqrTextFieldSchema } from '../../iqr-text-field';
|
|
2
|
-
declare type FieldType = 'textfield' | 'measure-field' | 'number-field' | 'date-picker' | 'time-picker' | 'date-time-picker' | 'multiple-choice';
|
|
3
|
-
export declare abstract class Field {
|
|
4
|
-
clazz: 'field';
|
|
5
|
-
field: string;
|
|
6
|
-
type: FieldType;
|
|
7
|
-
shortLabel?: string;
|
|
8
|
-
rows?: number;
|
|
9
|
-
columns?: number;
|
|
10
|
-
grows?: boolean;
|
|
11
|
-
schema?: IqrTextFieldSchema;
|
|
12
|
-
tags?: string[];
|
|
13
|
-
codifications?: string[];
|
|
14
|
-
options?: {
|
|
15
|
-
[key: string]: unknown;
|
|
16
|
-
};
|
|
17
|
-
label(): string;
|
|
18
|
-
protected constructor(type: FieldType, label: string, shortLabel?: string, rows?: number, columns?: number, grows?: boolean, schema?: IqrTextFieldSchema, tags?: string[], codifications?: string[], options?: {
|
|
19
|
-
[key: string]: unknown;
|
|
20
|
-
});
|
|
21
|
-
static parse(json: Field): Field;
|
|
22
|
-
}
|
|
23
|
-
export declare class TextField extends Field {
|
|
24
|
-
constructor(label: string, shortLabel?: string, rows?: number, grows?: boolean, schema?: IqrTextFieldSchema, tags?: string[], codifications?: string[], options?: {
|
|
25
|
-
[key: string]: unknown;
|
|
26
|
-
});
|
|
27
|
-
}
|
|
28
|
-
export declare class MeasureField extends Field {
|
|
29
|
-
constructor(label: string, shortLabel?: string, tags?: string[], codifications?: string[], options?: {
|
|
30
|
-
[key: string]: unknown;
|
|
31
|
-
});
|
|
32
|
-
}
|
|
33
|
-
export declare class NumberField extends Field {
|
|
34
|
-
constructor(label: string, shortLabel?: string, tags?: string[], codifications?: string[], options?: {
|
|
35
|
-
[key: string]: unknown;
|
|
36
|
-
});
|
|
37
|
-
}
|
|
38
|
-
export declare class DatePicker extends Field {
|
|
39
|
-
constructor(label: string, shortLabel?: string, tags?: string[], codifications?: string[], options?: {
|
|
40
|
-
[key: string]: unknown;
|
|
41
|
-
});
|
|
42
|
-
}
|
|
43
|
-
export declare class TimePicker extends Field {
|
|
44
|
-
constructor(label: string, shortLabel?: string, tags?: string[], codifications?: string[], options?: {
|
|
45
|
-
[key: string]: unknown;
|
|
46
|
-
});
|
|
47
|
-
}
|
|
48
|
-
export declare class DateTimePicker extends Field {
|
|
49
|
-
constructor(label: string, shortLabel?: string, tags?: string[], codifications?: string[], options?: {
|
|
50
|
-
[key: string]: unknown;
|
|
51
|
-
});
|
|
52
|
-
}
|
|
53
|
-
export declare class MultipleChoice extends Field {
|
|
54
|
-
constructor(label: string, shortLabel?: string, rows?: number, columns?: number, tags?: string[], codifications?: string[], options?: {
|
|
55
|
-
[key: string]: unknown;
|
|
56
|
-
});
|
|
57
|
-
}
|
|
58
|
-
export declare class Group {
|
|
59
|
-
clazz: 'group';
|
|
60
|
-
group: string;
|
|
61
|
-
fields?: Array<Field | Group>;
|
|
62
|
-
constructor(title: string, fields: Array<Field | Group>);
|
|
63
|
-
static parse(json: {
|
|
64
|
-
group: string;
|
|
65
|
-
fields?: Array<Field | Group>;
|
|
66
|
-
}): Group;
|
|
67
|
-
}
|
|
68
|
-
export declare class Section {
|
|
69
|
-
section: string;
|
|
70
|
-
fields: Array<Field | Group>;
|
|
71
|
-
description?: string;
|
|
72
|
-
keywords?: string[];
|
|
73
|
-
constructor(title: string, fields: Array<Field | Group>, description?: string, keywords?: string[]);
|
|
74
|
-
static parse(json: {
|
|
75
|
-
section: string;
|
|
76
|
-
fields?: Array<Field | Group>;
|
|
77
|
-
groups?: Array<Field | Group>;
|
|
78
|
-
sections?: Array<Field | Group>;
|
|
79
|
-
description?: string;
|
|
80
|
-
keywords?: string[];
|
|
81
|
-
}): Section;
|
|
82
|
-
}
|
|
83
|
-
export declare class Form {
|
|
84
|
-
form: string;
|
|
85
|
-
sections: Section[];
|
|
86
|
-
description?: string;
|
|
87
|
-
keywords?: string[];
|
|
88
|
-
constructor(title: string, sections: Section[], description?: string, keywords?: string[]);
|
|
89
|
-
static parse(json: {
|
|
90
|
-
form: string;
|
|
91
|
-
sections: Section[];
|
|
92
|
-
description?: string;
|
|
93
|
-
keywords?: string[];
|
|
94
|
-
}): Form;
|
|
95
|
-
}
|
|
96
|
-
export {};
|
|
@@ -1,120 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.Form = exports.Section = exports.Group = exports.MultipleChoice = exports.DateTimePicker = exports.TimePicker = exports.DatePicker = exports.NumberField = exports.MeasureField = exports.TextField = exports.Field = void 0;
|
|
4
|
-
class Field {
|
|
5
|
-
constructor(type, label, shortLabel, rows, columns, grows, schema, tags, codifications, options) {
|
|
6
|
-
this.clazz = 'field';
|
|
7
|
-
this.field = label;
|
|
8
|
-
this.type = type;
|
|
9
|
-
this.shortLabel = shortLabel;
|
|
10
|
-
this.rows = rows;
|
|
11
|
-
this.columns = columns;
|
|
12
|
-
this.grows = grows;
|
|
13
|
-
this.schema = schema;
|
|
14
|
-
this.tags = tags;
|
|
15
|
-
this.codifications = codifications;
|
|
16
|
-
this.options = options;
|
|
17
|
-
}
|
|
18
|
-
label() {
|
|
19
|
-
return this.field;
|
|
20
|
-
}
|
|
21
|
-
static parse(json) {
|
|
22
|
-
switch (json.type) {
|
|
23
|
-
case 'textfield':
|
|
24
|
-
return new TextField(json.field, json.shortLabel, json.rows, json.grows, json.schema, json.tags, json.codifications, json.options);
|
|
25
|
-
case 'measure-field':
|
|
26
|
-
return new MeasureField(json.field, json.shortLabel, json.tags, json.codifications, json.options);
|
|
27
|
-
case 'number-field':
|
|
28
|
-
return new NumberField(json.field, json.shortLabel, json.tags, json.codifications, json.options);
|
|
29
|
-
case 'date-picker':
|
|
30
|
-
return new DatePicker(json.field, json.shortLabel, json.tags, json.codifications, json.options);
|
|
31
|
-
case 'time-picker':
|
|
32
|
-
return new TimePicker(json.field, json.shortLabel, json.tags, json.codifications, json.options);
|
|
33
|
-
case 'date-time-picker':
|
|
34
|
-
return new DateTimePicker(json.field, json.shortLabel, json.tags, json.codifications, json.options);
|
|
35
|
-
case 'multiple-choice':
|
|
36
|
-
return new MultipleChoice(json.field, json.shortLabel, json.rows, json.columns, json.tags, json.codifications, json.options);
|
|
37
|
-
default:
|
|
38
|
-
throw Error('Invalid field type ' + json.type);
|
|
39
|
-
}
|
|
40
|
-
}
|
|
41
|
-
}
|
|
42
|
-
exports.Field = Field;
|
|
43
|
-
class TextField extends Field {
|
|
44
|
-
constructor(label, shortLabel, rows, grows, schema, tags, codifications, options) {
|
|
45
|
-
super('textfield', label, shortLabel, rows, undefined, grows, schema || 'styled-text-with-codes', tags, codifications, options);
|
|
46
|
-
}
|
|
47
|
-
}
|
|
48
|
-
exports.TextField = TextField;
|
|
49
|
-
class MeasureField extends Field {
|
|
50
|
-
constructor(label, shortLabel, tags, codifications, options) {
|
|
51
|
-
super('measure-field', label, shortLabel, undefined, undefined, undefined, undefined, tags, codifications, options);
|
|
52
|
-
}
|
|
53
|
-
}
|
|
54
|
-
exports.MeasureField = MeasureField;
|
|
55
|
-
class NumberField extends Field {
|
|
56
|
-
constructor(label, shortLabel, tags, codifications, options) {
|
|
57
|
-
super('number-field', label, shortLabel, undefined, undefined, undefined, undefined, tags, codifications, options);
|
|
58
|
-
}
|
|
59
|
-
}
|
|
60
|
-
exports.NumberField = NumberField;
|
|
61
|
-
class DatePicker extends Field {
|
|
62
|
-
constructor(label, shortLabel, tags, codifications, options) {
|
|
63
|
-
super('date-picker', label, shortLabel, undefined, undefined, undefined, undefined, tags, codifications, options);
|
|
64
|
-
}
|
|
65
|
-
}
|
|
66
|
-
exports.DatePicker = DatePicker;
|
|
67
|
-
class TimePicker extends Field {
|
|
68
|
-
constructor(label, shortLabel, tags, codifications, options) {
|
|
69
|
-
super('time-picker', label, shortLabel, undefined, undefined, undefined, undefined, tags, codifications, options);
|
|
70
|
-
}
|
|
71
|
-
}
|
|
72
|
-
exports.TimePicker = TimePicker;
|
|
73
|
-
class DateTimePicker extends Field {
|
|
74
|
-
constructor(label, shortLabel, tags, codifications, options) {
|
|
75
|
-
super('date-time-picker', label, shortLabel, undefined, undefined, undefined, undefined, tags, codifications, options);
|
|
76
|
-
}
|
|
77
|
-
}
|
|
78
|
-
exports.DateTimePicker = DateTimePicker;
|
|
79
|
-
class MultipleChoice extends Field {
|
|
80
|
-
constructor(label, shortLabel, rows, columns, tags, codifications, options) {
|
|
81
|
-
super('multiple-choice', label, shortLabel, rows, columns, undefined, undefined, tags, codifications, options);
|
|
82
|
-
}
|
|
83
|
-
}
|
|
84
|
-
exports.MultipleChoice = MultipleChoice;
|
|
85
|
-
class Group {
|
|
86
|
-
constructor(title, fields) {
|
|
87
|
-
this.clazz = 'group';
|
|
88
|
-
this.group = title;
|
|
89
|
-
this.fields = fields;
|
|
90
|
-
}
|
|
91
|
-
static parse(json) {
|
|
92
|
-
return new Group(json.group, (json.fields || []).map((s) => (s['group'] ? Group.parse(s) : Field.parse(s))));
|
|
93
|
-
}
|
|
94
|
-
}
|
|
95
|
-
exports.Group = Group;
|
|
96
|
-
class Section {
|
|
97
|
-
constructor(title, fields, description, keywords) {
|
|
98
|
-
this.section = title;
|
|
99
|
-
this.fields = fields;
|
|
100
|
-
this.description = description;
|
|
101
|
-
this.keywords = keywords;
|
|
102
|
-
}
|
|
103
|
-
static parse(json) {
|
|
104
|
-
return new Section(json.section, (json.fields || json.groups || json.sections || []).map((s) => (s['group'] ? Group.parse(s) : Field.parse(s))), json.description, json.keywords);
|
|
105
|
-
}
|
|
106
|
-
}
|
|
107
|
-
exports.Section = Section;
|
|
108
|
-
class Form {
|
|
109
|
-
constructor(title, sections, description, keywords) {
|
|
110
|
-
this.form = title;
|
|
111
|
-
this.description = description;
|
|
112
|
-
this.keywords = keywords;
|
|
113
|
-
this.sections = sections;
|
|
114
|
-
}
|
|
115
|
-
static parse(json) {
|
|
116
|
-
return new Form(json.form, (json.sections || []).map((s) => Section.parse(s)), json.description, json.keywords);
|
|
117
|
-
}
|
|
118
|
-
}
|
|
119
|
-
exports.Form = Form;
|
|
120
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../tmp/components/iqr-form/model/index.ts"],"names":[],"mappings":";;;AAGA,MAAsB,KAAK;IAiB1B,YACC,IAAe,EACf,KAAa,EACb,UAAmB,EACnB,IAAa,EACb,OAAgB,EAChB,KAAe,EACf,MAA2B,EAC3B,IAAe,EACf,aAAwB,EACxB,OAAoC;QA1BrC,UAAK,GAAY,OAAO,CAAA;QA4BvB,IAAI,CAAC,KAAK,GAAG,KAAK,CAAA;QAClB,IAAI,CAAC,IAAI,GAAG,IAAI,CAAA;QAChB,IAAI,CAAC,UAAU,GAAG,UAAU,CAAA;QAC5B,IAAI,CAAC,IAAI,GAAG,IAAI,CAAA;QAChB,IAAI,CAAC,OAAO,GAAG,OAAO,CAAA;QACtB,IAAI,CAAC,KAAK,GAAG,KAAK,CAAA;QAClB,IAAI,CAAC,MAAM,GAAG,MAAM,CAAA;QACpB,IAAI,CAAC,IAAI,GAAG,IAAI,CAAA;QAChB,IAAI,CAAC,aAAa,GAAG,aAAa,CAAA;QAClC,IAAI,CAAC,OAAO,GAAG,OAAO,CAAA;IACvB,CAAC;IA1BD,KAAK;QACJ,OAAO,IAAI,CAAC,KAAK,CAAA;IAClB,CAAC;IA0BD,MAAM,CAAC,KAAK,CAAC,IAAW;QACvB,QAAQ,IAAI,CAAC,IAAc,EAAE;YAC5B,KA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C,QAAQ,GAAG,QAAQ,CAAA;QACxB,IAAI,CAAC,QAAQ,GAAG,QAAQ,CAAA;IACzB,CAAC;IAED,MAAM,CAAC,KAAK,CAAC,IAAsF;QAClG,OAAO,IAAI,IAAI,CACd,IAAI,CAAC,IAAI,EACT,CAAC,IAAI,CAAC,QAAQ,IAAI,EAAE,CAAC,CAAC,GAAG,CAAC,CAAC,CAAU,EAAE,EAAE,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EAC3D,IAAI,CAAC,WAAW,EAChB,IAAI,CAAC,QAAQ,CACb,CAAA;IACF,CAAC;CACD;AArBD,oBAqBC","sourcesContent":["import { IqrTextFieldSchema } from '../../iqr-text-field'\ntype FieldType = 'textfield' | 'measure-field' | 'number-field' | 'date-picker' | 'time-picker' | 'date-time-picker' | 'multiple-choice'\n\nexport abstract class Field {\n\tclazz: 'field' = 'field'\n\tfield: string\n\ttype: FieldType\n\tshortLabel?: string\n\trows?: number\n\tcolumns?: number\n\tgrows?: boolean\n\tschema?: IqrTextFieldSchema\n\ttags?: string[]\n\tcodifications?: string[]\n\toptions?: { [key: string]: unknown }\n\n\tlabel(): string {\n\t\treturn this.field\n\t}\n\n\tprotected constructor(\n\t\ttype: FieldType,\n\t\tlabel: string,\n\t\tshortLabel?: string,\n\t\trows?: number,\n\t\tcolumns?: number,\n\t\tgrows?: boolean,\n\t\tschema?: IqrTextFieldSchema,\n\t\ttags?: string[],\n\t\tcodifications?: string[],\n\t\toptions?: { [key: string]: unknown },\n\t) {\n\t\tthis.field = label\n\t\tthis.type = type\n\t\tthis.shortLabel = shortLabel\n\t\tthis.rows = rows\n\t\tthis.columns = columns\n\t\tthis.grows = grows\n\t\tthis.schema = schema\n\t\tthis.tags = tags\n\t\tthis.codifications = codifications\n\t\tthis.options = options\n\t}\n\n\tstatic parse(json: Field): Field {\n\t\tswitch (json.type as string) {\n\t\t\tcase 'textfield':\n\t\t\t\treturn new TextField(json.field, json.shortLabel, json.rows, json.grows, json.schema, json.tags, json.codifications, json.options)\n\t\t\tcase 'measure-field':\n\t\t\t\treturn new MeasureField(json.field, json.shortLabel, json.tags, json.codifications, json.options)\n\t\t\tcase 'number-field':\n\t\t\t\treturn new NumberField(json.field, json.shortLabel, json.tags, json.codifications, json.options)\n\t\t\tcase 'date-picker':\n\t\t\t\treturn new DatePicker(json.field, json.shortLabel, json.tags, json.codifications, json.options)\n\t\t\tcase 'time-picker':\n\t\t\t\treturn new TimePicker(json.field, json.shortLabel, json.tags, json.codifications, json.options)\n\t\t\tcase 'date-time-picker':\n\t\t\t\treturn new DateTimePicker(json.field, json.shortLabel, json.tags, json.codifications, json.options)\n\t\t\tcase 'multiple-choice':\n\t\t\t\treturn new MultipleChoice(json.field, json.shortLabel, json.rows, json.columns, json.tags, json.codifications, json.options)\n\t\t\tdefault:\n\t\t\t\tthrow Error('Invalid field type ' + json.type)\n\t\t}\n\t}\n}\n\nexport class TextField extends Field {\n\tconstructor(\n\t\tlabel: string,\n\t\tshortLabel?: string,\n\t\trows?: number,\n\t\tgrows?: boolean,\n\t\tschema?: IqrTextFieldSchema,\n\t\ttags?: string[],\n\t\tcodifications?: string[],\n\t\toptions?: { [key: string]: unknown },\n\t) {\n\t\tsuper('textfield', label, shortLabel, rows, undefined, grows, schema || 'styled-text-with-codes', tags, codifications, options)\n\t}\n}\n\nexport class MeasureField extends Field {\n\tconstructor(label: string, shortLabel?: string, tags?: string[], codifications?: string[], options?: { [key: string]: unknown }) {\n\t\tsuper('measure-field', label, shortLabel, undefined, undefined, undefined, undefined, tags, codifications, options)\n\t}\n}\n\nexport class NumberField extends Field {\n\tconstructor(label: string, shortLabel?: string, tags?: string[], codifications?: string[], options?: { [key: string]: unknown }) {\n\t\tsuper('number-field', label, shortLabel, undefined, undefined, undefined, undefined, tags, codifications, options)\n\t}\n}\n\nexport class DatePicker extends Field {\n\tconstructor(label: string, shortLabel?: string, tags?: string[], codifications?: string[], options?: { [key: string]: unknown }) {\n\t\tsuper('date-picker', label, shortLabel, undefined, undefined, undefined, undefined, tags, codifications, options)\n\t}\n}\n\nexport class TimePicker extends Field {\n\tconstructor(label: string, shortLabel?: string, tags?: string[], codifications?: string[], options?: { [key: string]: unknown }) {\n\t\tsuper('time-picker', label, shortLabel, undefined, undefined, undefined, undefined, tags, codifications, options)\n\t}\n}\n\nexport class DateTimePicker extends Field {\n\tconstructor(label: string, shortLabel?: string, tags?: string[], codifications?: string[], options?: { [key: string]: unknown }) {\n\t\tsuper('date-time-picker', label, shortLabel, undefined, undefined, undefined, undefined, tags, codifications, options)\n\t}\n}\n\nexport class MultipleChoice extends Field {\n\tconstructor(label: string, shortLabel?: string, rows?: number, columns?: number, tags?: string[], codifications?: string[], options?: { [key: string]: unknown }) {\n\t\tsuper('multiple-choice', label, shortLabel, rows, columns, undefined, undefined, tags, codifications, options)\n\t}\n}\n\nexport class Group {\n\tclazz: 'group' = 'group'\n\tgroup: string\n\tfields?: Array<Field | Group>\n\n\tconstructor(title: string, fields: Array<Field | Group>) {\n\t\tthis.group = title\n\t\tthis.fields = fields\n\t}\n\n\tstatic parse(json: { group: string; fields?: Array<Field | Group> }): Group {\n\t\treturn new Group(\n\t\t\tjson.group,\n\t\t\t(json.fields || []).map((s: Field | Group) => (s['group'] ? Group.parse(s as Group) : Field.parse(s as Field))),\n\t\t)\n\t}\n}\n\nexport class Section {\n\tsection: string\n\tfields: Array<Field | Group>\n\tdescription?: string\n\tkeywords?: string[]\n\n\tconstructor(title: string, fields: Array<Field | Group>, description?: string, keywords?: string[]) {\n\t\tthis.section = title\n\t\tthis.fields = fields\n\t\tthis.description = description\n\t\tthis.keywords = keywords\n\t}\n\n\tstatic parse(json: {\n\t\tsection: string\n\t\tfields?: Array<Field | Group>\n\t\tgroups?: Array<Field | Group>\n\t\tsections?: Array<Field | Group>\n\t\tdescription?: string\n\t\tkeywords?: string[]\n\t}): Section {\n\t\treturn new Section(\n\t\t\tjson.section,\n\t\t\t(json.fields || json.groups || json.sections || []).map((s: Field | Group) => (s['group'] ? Group.parse(s as Group) : Field.parse(s as Field))),\n\t\t\tjson.description,\n\t\t\tjson.keywords,\n\t\t)\n\t}\n}\n\nexport class Form {\n\tform: string\n\tsections: Section[]\n\tdescription?: string\n\tkeywords?: string[]\n\n\tconstructor(title: string, sections: Section[], description?: string, keywords?: string[]) {\n\t\tthis.form = title\n\t\tthis.description = description\n\t\tthis.keywords = keywords\n\t\tthis.sections = sections\n\t}\n\n\tstatic parse(json: { form: string; sections: Section[]; description?: string; keywords?: string[] }): Form {\n\t\treturn new Form(\n\t\t\tjson.form,\n\t\t\t(json.sections || []).map((s: Section) => Section.parse(s)),\n\t\t\tjson.description,\n\t\t\tjson.keywords,\n\t\t)\n\t}\n}\n"]}
|
|
@@ -1,55 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.render = void 0;
|
|
4
|
-
const lit_1 = require("lit");
|
|
5
|
-
const model_1 = require("../model");
|
|
6
|
-
const render = (form, props, formsValueContainer, formValuesContainerChanged) => {
|
|
7
|
-
var _a;
|
|
8
|
-
const h = function (level, content) {
|
|
9
|
-
return level === 1
|
|
10
|
-
? (0, lit_1.html) `<h1>${content}</h1>`
|
|
11
|
-
: level === 2
|
|
12
|
-
? (0, lit_1.html) `<h2>${content}</h2>`
|
|
13
|
-
: level === 3
|
|
14
|
-
? (0, lit_1.html) `<h3>${content}</h3>`
|
|
15
|
-
: level === 4
|
|
16
|
-
? (0, lit_1.html) `<h4>${content}</h4>`
|
|
17
|
-
: level === 5
|
|
18
|
-
? (0, lit_1.html) `<h5>${content}</h5>`
|
|
19
|
-
: (0, lit_1.html) `<h6>${content}</h6>`;
|
|
20
|
-
};
|
|
21
|
-
const renderFieldOrGroup = function (fg, level) {
|
|
22
|
-
var _a;
|
|
23
|
-
return fg instanceof model_1.Group
|
|
24
|
-
? (0, lit_1.html) ` <div class="group">${h(level, (0, lit_1.html) `${fg.group}`)} ${(_a = fg.fields) === null || _a === void 0 ? void 0 : _a.map((f) => renderFieldOrGroup(f, level + 1))}</div>`
|
|
25
|
-
: (0, lit_1.html) `${fg.type === 'textfield'
|
|
26
|
-
? (0, lit_1.html) `<iqr-form-textfield label="${fg.field}" multiline="${(fg.rows || 0) > 1 || fg.grows}" rows="${fg.rows || 1}" grows="${fg.grows || false}"></iqr-form-textfield>`
|
|
27
|
-
: fg.type === 'measure-field'
|
|
28
|
-
? (0, lit_1.html) `<iqr-form-measure-field label="${fg.field}"></iqr-form-measure-field>`
|
|
29
|
-
: fg.type === 'number-field'
|
|
30
|
-
? (0, lit_1.html) `<iqr-form-number-field label="${fg.field}"></iqr-form-number-field>`
|
|
31
|
-
: fg.type === 'date-picker'
|
|
32
|
-
? (0, lit_1.html) `<iqr-form-date-picker label="${fg.field}"></iqr-form-date-picker>`
|
|
33
|
-
: fg.type === 'time-picker'
|
|
34
|
-
? (0, lit_1.html) `<iqr-form-time-picker label="${fg.field}"></iqr-form-time-picker>`
|
|
35
|
-
: fg.type === 'date-time-picker'
|
|
36
|
-
? (0, lit_1.html) `<iqr-form-date-time-picker label="${fg.field}"></iqr-form-date-time-picker>`
|
|
37
|
-
: fg.type === 'multiple-choice'
|
|
38
|
-
? (0, lit_1.html) `<iqr-form-multiple-choice label="${fg.field}"></iqr-form-multiple-choice>`
|
|
39
|
-
: ''}
|
|
40
|
-
</div>`;
|
|
41
|
-
};
|
|
42
|
-
return (0, lit_1.html) `
|
|
43
|
-
<div class="iqr-form">
|
|
44
|
-
${(_a = form === null || form === void 0 ? void 0 : form.sections) === null || _a === void 0 ? void 0 : _a.map((s) => {
|
|
45
|
-
var _a;
|
|
46
|
-
return (0, lit_1.html) `
|
|
47
|
-
<h2>${s.section}</h2>
|
|
48
|
-
${s.description ? (0, lit_1.html) `<p>${s.description}</p>` : ''} ${(_a = s.fields) === null || _a === void 0 ? void 0 : _a.map((f) => renderFieldOrGroup(f, 3))}
|
|
49
|
-
`;
|
|
50
|
-
})}
|
|
51
|
-
</div>
|
|
52
|
-
`;
|
|
53
|
-
};
|
|
54
|
-
exports.render = render;
|
|
55
|
-
//# sourceMappingURL=cards.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"cards.js","sourceRoot":"","sources":["../../../../tmp/components/iqr-form/renderer/cards.ts"],"names":[],"mappings":";;;AAAA,6BAA0C;AAC1C,oCAA6C;AAItC,MAAM,MAAM,GAAa,CAC/B,IAAU,EACV,KAAiC,EACjC,mBAAyC,EACzC,0BAAoE,EACnE,EAAE;;IACH,MAAM,CAAC,GAAG,UAAU,KAAa,EAAE,OAAuB;QACzD,OAAO,KAAK,KAAK,CAAC;YACjB,CAAC,CAAC,IAAA,UAAI,EAAA,OAAO,OAAO,OAAO;YAC3B,CAAC,CAAC,KAAK,KAAK,CAAC;gBACb,CAAC,CAAC,IAAA,UAAI,EAAA,OAAO,OAAO,OAAO;gBAC3B,CAAC,CAAC,KAAK,KAAK,CAAC;oBACb,CAAC,CAAC,IAAA,UAAI,EAAA,OAAO,OAAO,OAAO;oBAC3B,CAAC,CAAC,KAAK,KAAK,CAAC;wBACb,CAAC,CAAC,IAAA,UAAI,EAAA,OAAO,OAAO,OAAO;wBAC3B,CAAC,CAAC,KAAK,KAAK,CAAC;4BACb,CAAC,CAAC,IAAA,UAAI,EAAA,OAAO,OAAO,OAAO;4BAC3B,CAAC,CAAC,IAAA,UAAI,EAAA,OAAO,OAAO,OAAO,CAAA;IAC7B,CAAC,CAAA;IACD,MAAM,kBAAkB,GAAG,UAAU,EAAiB,EAAE,KAAa;;QACpE,OAAO,EAAE,YAAY,aAAK;YACzB,CAAC,CAAC,IAAA,UAAI,EAAA,uBAAuB,CAAC,CAAC,KAAK,EAAE,IAAA,UAAI,EAAA,GAAG,EAAE,CAAC,KAAK,EAAE,CAAC,IAAI,MAAA,EAAE,CAAC,MAAM,0CAAE,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,kBAAkB,CAAC,CAAC,EAAE,K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AAG,CACpB,CAAC,CAAC,EAAE,EAAE;;QACL,OAAA,IAAA,UAAI,EAAA;YACG,CAAC,CAAC,OAAO;QACb,CAAC,CAAC,WAAW,CAAC,CAAC,CAAC,IAAA,UAAI,EAAA,MAAM,CAAC,CAAC,WAAW,MAAM,CAAC,CAAC,CAAC,EAAE,IAAI,MAAA,CAAC,CAAC,MAAM,0CAAE,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,kBAAkB,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC;MACtG,CAAA;KAAA,CACF;;EAEF,CAAA;AACF,CAAC,CAAA;AArDY,QAAA,MAAM,UAqDlB","sourcesContent":["import { html, TemplateResult } from 'lit'\nimport { Field, Form, Group } from '../model'\nimport { Renderer } from './index'\nimport { FormValuesContainer } from '../../iqr-form-loader/formValuesContainer'\n\nexport const render: Renderer = (\n\tform: Form,\n\tprops: { [key: string]: unknown },\n\tformsValueContainer?: FormValuesContainer,\n\tformValuesContainerChanged?: (newValue: FormValuesContainer) => void,\n) => {\n\tconst h = function (level: number, content: TemplateResult): TemplateResult {\n\t\treturn level === 1\n\t\t\t? html`<h1>${content}</h1>`\n\t\t\t: level === 2\n\t\t\t? html`<h2>${content}</h2>`\n\t\t\t: level === 3\n\t\t\t? html`<h3>${content}</h3>`\n\t\t\t: level === 4\n\t\t\t? html`<h4>${content}</h4>`\n\t\t\t: level === 5\n\t\t\t? html`<h5>${content}</h5>`\n\t\t\t: html`<h6>${content}</h6>`\n\t}\n\tconst renderFieldOrGroup = function (fg: Field | Group, level: number): TemplateResult {\n\t\treturn fg instanceof Group\n\t\t\t? html` <div class=\"group\">${h(level, html`${fg.group}`)} ${fg.fields?.map((f) => renderFieldOrGroup(f, level + 1))}</div>`\n\t\t\t: html`${\n\t\t\t\t\tfg.type === 'textfield'\n\t\t\t\t\t\t? html`<iqr-form-textfield label=\"${fg.field}\" multiline=\"${(fg.rows || 0) > 1 || fg.grows}\" rows=\"${fg.rows || 1}\" grows=\"${fg.grows || false}\"></iqr-form-textfield>`\n\t\t\t\t\t\t: fg.type === 'measure-field'\n\t\t\t\t\t\t? html`<iqr-form-measure-field label=\"${fg.field}\"></iqr-form-measure-field>`\n\t\t\t\t\t\t: fg.type === 'number-field'\n\t\t\t\t\t\t? html`<iqr-form-number-field label=\"${fg.field}\"></iqr-form-number-field>`\n\t\t\t\t\t\t: fg.type === 'date-picker'\n\t\t\t\t\t\t? html`<iqr-form-date-picker label=\"${fg.field}\"></iqr-form-date-picker>`\n\t\t\t\t\t\t: fg.type === 'time-picker'\n\t\t\t\t\t\t? html`<iqr-form-time-picker label=\"${fg.field}\"></iqr-form-time-picker>`\n\t\t\t\t\t\t: fg.type === 'date-time-picker'\n\t\t\t\t\t\t? html`<iqr-form-date-time-picker label=\"${fg.field}\"></iqr-form-date-time-picker>`\n\t\t\t\t\t\t: fg.type === 'multiple-choice'\n\t\t\t\t\t\t? html`<iqr-form-multiple-choice label=\"${fg.field}\"></iqr-form-multiple-choice>`\n\t\t\t\t\t\t: ''\n\t\t\t }\n\t\t\t\t\t</div>`\n\t}\n\n\treturn html`\n\t\t<div class=\"iqr-form\">\n\t\t\t${form?.sections?.map(\n\t\t\t\t(s) =>\n\t\t\t\t\thtml`\n\t\t\t\t\t\t<h2>${s.section}</h2>\n\t\t\t\t\t\t${s.description ? html`<p>${s.description}</p>` : ''} ${s.fields?.map((f) => renderFieldOrGroup(f, 3))}\n\t\t\t\t\t`,\n\t\t\t)}\n\t\t</div>\n\t`\n}\n"]}
|