@qoretechnologies/reqraft 0.10.78 → 0.10.79-pr.145.g3c4fe20
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/dist/components/Description/AllowedValuesHelp.d.ts +7 -7
- package/dist/components/Description/AllowedValuesHelp.d.ts.map +1 -1
- package/dist/components/Description/AllowedValuesHelp.js +13 -10
- package/dist/components/Description/AllowedValuesHelp.js.map +1 -1
- package/dist/components/Description/describedControl.d.ts +1 -1
- package/dist/components/Description/describedControl.js +1 -1
- package/dist/components/Description/index.d.ts.map +1 -1
- package/dist/components/Description/index.js +22 -4
- package/dist/components/Description/index.js.map +1 -1
- package/dist/components/FocusedEditing/index.d.ts.map +1 -1
- package/dist/components/FocusedEditing/index.js +3 -1
- package/dist/components/FocusedEditing/index.js.map +1 -1
- package/dist/components/codeSize/index.d.ts +6 -0
- package/dist/components/codeSize/index.d.ts.map +1 -1
- package/dist/components/codeSize/index.js +12 -2
- package/dist/components/codeSize/index.js.map +1 -1
- package/dist/components/colorValue/colorValue.d.ts +4 -4
- package/dist/components/colorValue/colorValue.d.ts.map +1 -1
- package/dist/components/colorValue/colorValue.js +32 -41
- package/dist/components/colorValue/colorValue.js.map +1 -1
- package/dist/components/colorValue/index.js +1 -1
- package/dist/components/colorValue/index.js.map +1 -1
- package/dist/components/composer/Composer.d.ts +18 -2
- package/dist/components/composer/Composer.d.ts.map +1 -1
- package/dist/components/composer/Composer.js +57 -29
- package/dist/components/composer/Composer.js.map +1 -1
- package/dist/components/composer/labels.d.ts +24 -0
- package/dist/components/composer/labels.d.ts.map +1 -0
- package/dist/components/composer/labels.js +16 -0
- package/dist/components/composer/labels.js.map +1 -0
- package/dist/components/dpqlEditor/DpqlEditor.js +3 -3
- package/dist/components/dpqlEditor/DpqlEditor.js.map +1 -1
- package/dist/components/dpqlEditor/dpqlCompletions.d.ts +4 -4
- package/dist/components/dpqlEditor/dpqlCompletions.d.ts.map +1 -1
- package/dist/components/dpqlEditor/dpqlCompletions.js +10 -10
- package/dist/components/dpqlEditor/dpqlCompletions.js.map +1 -1
- package/dist/components/dpqlEditor/dpqlHelpers.d.ts +2 -2
- package/dist/components/dpqlEditor/dpqlHelpers.js +6 -6
- package/dist/components/dpqlEditor/dpqlHelpers.js.map +1 -1
- package/dist/components/dpqlEditor/dpqlInserter.d.ts.map +1 -1
- package/dist/components/dpqlEditor/dpqlInserter.js +1 -2
- package/dist/components/dpqlEditor/dpqlInserter.js.map +1 -1
- package/dist/components/dpqlEditor/dpqlTags.d.ts +1 -1
- package/dist/components/dpqlEditor/dpqlTags.js +4 -4
- package/dist/components/dpqlEditor/dpqlTags.js.map +1 -1
- package/dist/components/dpqlEditor/types.d.ts +7 -7
- package/dist/components/dpqlEditor/useDpqlSession.d.ts +1 -1
- package/dist/components/dpqlEditor/useDpqlSession.d.ts.map +1 -1
- package/dist/components/dpqlEditor/useDpqlSession.js +2 -2
- package/dist/components/dpqlEditor/useDpqlSession.js.map +1 -1
- package/dist/components/form/engine/CompactRow.d.ts.map +1 -1
- package/dist/components/form/engine/CompactRow.js +237 -82
- package/dist/components/form/engine/CompactRow.js.map +1 -1
- package/dist/components/form/engine/CompactToolbar.d.ts.map +1 -1
- package/dist/components/form/engine/CompactToolbar.js +73 -21
- package/dist/components/form/engine/CompactToolbar.js.map +1 -1
- package/dist/components/form/engine/DefaultsNote.d.ts +32 -0
- package/dist/components/form/engine/DefaultsNote.d.ts.map +1 -0
- package/dist/components/form/engine/DefaultsNote.js +33 -0
- package/dist/components/form/engine/DefaultsNote.js.map +1 -0
- package/dist/components/form/engine/FieldMessageDetails.d.ts +17 -0
- package/dist/components/form/engine/FieldMessageDetails.d.ts.map +1 -0
- package/dist/components/form/engine/FieldMessageDetails.js +24 -0
- package/dist/components/form/engine/FieldMessageDetails.js.map +1 -0
- package/dist/components/form/engine/FormEngine.d.ts +125 -5
- package/dist/components/form/engine/FormEngine.d.ts.map +1 -1
- package/dist/components/form/engine/FormEngine.js +800 -257
- package/dist/components/form/engine/FormEngine.js.map +1 -1
- package/dist/components/form/engine/FormFieldsSkeleton.d.ts +1 -1
- package/dist/components/form/engine/HiddenFieldsNote.d.ts +1 -1
- package/dist/components/form/engine/HiddenFieldsNote.js +1 -1
- package/dist/components/form/engine/ItemAttention.d.ts +12 -0
- package/dist/components/form/engine/ItemAttention.d.ts.map +1 -0
- package/dist/components/form/engine/ItemAttention.js +33 -0
- package/dist/components/form/engine/ItemAttention.js.map +1 -0
- package/dist/components/form/engine/OptionFieldMessages.d.ts +35 -2
- package/dist/components/form/engine/OptionFieldMessages.d.ts.map +1 -1
- package/dist/components/form/engine/OptionFieldMessages.js +46 -10
- package/dist/components/form/engine/OptionFieldMessages.js.map +1 -1
- package/dist/components/form/engine/OptionsHelpDialog.js +3 -3
- package/dist/components/form/engine/OptionsHelpDialog.js.map +1 -1
- package/dist/components/form/engine/ReadReveal.d.ts +26 -0
- package/dist/components/form/engine/ReadReveal.d.ts.map +1 -0
- package/dist/components/form/engine/ReadReveal.js +52 -0
- package/dist/components/form/engine/ReadReveal.js.map +1 -0
- package/dist/components/form/engine/_structuredData/SchemaDataView.d.ts +11 -1
- package/dist/components/form/engine/_structuredData/SchemaDataView.d.ts.map +1 -1
- package/dist/components/form/engine/_structuredData/SchemaDataView.js +96 -19
- package/dist/components/form/engine/_structuredData/SchemaDataView.js.map +1 -1
- package/dist/components/form/engine/cardHeaderPin.d.ts +59 -0
- package/dist/components/form/engine/cardHeaderPin.d.ts.map +1 -0
- package/dist/components/form/engine/cardHeaderPin.js +137 -0
- package/dist/components/form/engine/cardHeaderPin.js.map +1 -0
- package/dist/components/form/engine/compactRowContext.d.ts +19 -3
- package/dist/components/form/engine/compactRowContext.d.ts.map +1 -1
- package/dist/components/form/engine/compactRowContext.js.map +1 -1
- package/dist/components/form/engine/compactRowStyles.d.ts +32 -6
- package/dist/components/form/engine/compactRowStyles.d.ts.map +1 -1
- package/dist/components/form/engine/compactRowStyles.js +128 -60
- package/dist/components/form/engine/compactRowStyles.js.map +1 -1
- package/dist/components/form/engine/compactToolbarColors.d.ts +1 -1
- package/dist/components/form/engine/compactToolbarColors.js +1 -1
- package/dist/components/form/engine/compactToolbarContext.d.ts +9 -0
- package/dist/components/form/engine/compactToolbarContext.d.ts.map +1 -1
- package/dist/components/form/engine/compactToolbarContext.js.map +1 -1
- package/dist/components/form/engine/formAppearance.d.ts +96 -0
- package/dist/components/form/engine/formAppearance.d.ts.map +1 -0
- package/dist/components/form/engine/formAppearance.js +156 -0
- package/dist/components/form/engine/formAppearance.js.map +1 -0
- package/dist/components/form/engine/operatorSummary.d.ts +2 -2
- package/dist/components/form/engine/operatorSummary.js +2 -2
- package/dist/components/form/engine/readFirst.d.ts +47 -3
- package/dist/components/form/engine/readFirst.d.ts.map +1 -1
- package/dist/components/form/engine/readFirst.js +43 -9
- package/dist/components/form/engine/readFirst.js.map +1 -1
- package/dist/components/form/engine/readFirstColors.d.ts +1 -1
- package/dist/components/form/engine/readFirstColors.js +1 -1
- package/dist/components/form/engine/revealRow.d.ts +20 -4
- package/dist/components/form/engine/revealRow.d.ts.map +1 -1
- package/dist/components/form/engine/revealRow.js +37 -8
- package/dist/components/form/engine/revealRow.js.map +1 -1
- package/dist/components/form/engine/rowFocus.d.ts +9 -1
- package/dist/components/form/engine/rowFocus.d.ts.map +1 -1
- package/dist/components/form/engine/rowFocus.js +17 -4
- package/dist/components/form/engine/rowFocus.js.map +1 -1
- package/dist/components/form/engine/rowLabelled.d.ts +9 -0
- package/dist/components/form/engine/rowLabelled.d.ts.map +1 -0
- package/dist/components/form/engine/rowLabelled.js +12 -0
- package/dist/components/form/engine/rowLabelled.js.map +1 -0
- package/dist/components/form/engine/rowPlaces.d.ts +43 -0
- package/dist/components/form/engine/rowPlaces.d.ts.map +1 -0
- package/dist/components/form/engine/rowPlaces.js +163 -0
- package/dist/components/form/engine/rowPlaces.js.map +1 -0
- package/dist/components/form/engine/variants/focusDemo.js +1 -1
- package/dist/components/form/engine/variants/focusDemo.js.map +1 -1
- package/dist/components/form/engine/variants/variantModel.d.ts +1 -1
- package/dist/components/form/engine/variants/variantModel.d.ts.map +1 -1
- package/dist/components/form/engine/variants/variantModel.js +2 -2
- package/dist/components/form/engine/variants/variantModel.js.map +1 -1
- package/dist/components/form/engine/variants/variantParts.js +3 -2
- package/dist/components/form/engine/variants/variantParts.js.map +1 -1
- package/dist/components/form/expressions/DpqlRendering.d.ts.map +1 -1
- package/dist/components/form/expressions/DpqlRendering.js +5 -3
- package/dist/components/form/expressions/DpqlRendering.js.map +1 -1
- package/dist/components/form/expressions/ExpressionField.d.ts +9 -11
- package/dist/components/form/expressions/ExpressionField.d.ts.map +1 -1
- package/dist/components/form/expressions/ExpressionField.js +26 -24
- package/dist/components/form/expressions/ExpressionField.js.map +1 -1
- package/dist/components/form/expressions/argumentPresence.d.ts +1 -1
- package/dist/components/form/expressions/argumentPresence.js +1 -1
- package/dist/components/form/expressions/builder/argumentDetail.d.ts.map +1 -1
- package/dist/components/form/expressions/builder/argumentDetail.js +5 -2
- package/dist/components/form/expressions/builder/argumentDetail.js.map +1 -1
- package/dist/components/form/expressions/builder/argumentLabel.d.ts +4 -2
- package/dist/components/form/expressions/builder/argumentLabel.d.ts.map +1 -1
- package/dist/components/form/expressions/builder/argumentLabel.js +69 -29
- package/dist/components/form/expressions/builder/argumentLabel.js.map +1 -1
- package/dist/components/form/expressions/builder/argumentSlot.d.ts.map +1 -1
- package/dist/components/form/expressions/builder/argumentSlot.js +3 -2
- package/dist/components/form/expressions/builder/argumentSlot.js.map +1 -1
- package/dist/components/form/expressions/builder/argumentWrapper.d.ts.map +1 -1
- package/dist/components/form/expressions/builder/argumentWrapper.js +11 -7
- package/dist/components/form/expressions/builder/argumentWrapper.js.map +1 -1
- package/dist/components/form/expressions/builder/confirmMismatchedTypesModal.d.ts +1 -1
- package/dist/components/form/expressions/builder/confirmMismatchedTypesModal.d.ts.map +1 -1
- package/dist/components/form/expressions/builder/confirmMismatchedTypesModal.js +15 -10
- package/dist/components/form/expressions/builder/confirmMismatchedTypesModal.js.map +1 -1
- package/dist/components/form/expressions/builder/confirmUnsupportedTypeModal.d.ts.map +1 -1
- package/dist/components/form/expressions/builder/confirmUnsupportedTypeModal.js +4 -2
- package/dist/components/form/expressions/builder/confirmUnsupportedTypeModal.js.map +1 -1
- package/dist/components/form/expressions/builder/index.d.ts +9 -4
- package/dist/components/form/expressions/builder/index.d.ts.map +1 -1
- package/dist/components/form/expressions/builder/index.js +120 -75
- package/dist/components/form/expressions/builder/index.js.map +1 -1
- package/dist/components/form/expressions/builder/item.d.ts.map +1 -1
- package/dist/components/form/expressions/builder/item.js +4 -2
- package/dist/components/form/expressions/builder/item.js.map +1 -1
- package/dist/components/form/expressions/builder/moveToPositionStrip.d.ts +1 -1
- package/dist/components/form/expressions/builder/moveToPositionStrip.d.ts.map +1 -1
- package/dist/components/form/expressions/builder/moveToPositionStrip.js +8 -7
- package/dist/components/form/expressions/builder/moveToPositionStrip.js.map +1 -1
- package/dist/components/form/expressions/builder/renderTemplate.d.ts.map +1 -1
- package/dist/components/form/expressions/builder/renderTemplate.js +3 -1
- package/dist/components/form/expressions/builder/renderTemplate.js.map +1 -1
- package/dist/components/form/expressions/dpqlMockRecordPath.js +2 -2
- package/dist/components/form/expressions/dpqlMockRecordPath.js.map +1 -1
- package/dist/components/form/expressions/expressionOperands.js +1 -1
- package/dist/components/form/expressions/fieldPath.js +1 -1
- package/dist/components/form/expressions/fieldPath.js.map +1 -1
- package/dist/components/form/expressions/labels.d.ts +143 -0
- package/dist/components/form/expressions/labels.d.ts.map +1 -0
- package/dist/components/form/expressions/labels.js +123 -0
- package/dist/components/form/expressions/labels.js.map +1 -0
- package/dist/components/form/expressions/loneValue.d.ts +1 -1
- package/dist/components/form/expressions/loneValue.js +1 -1
- package/dist/components/form/expressions/mockExpressions.js +2 -2
- package/dist/components/form/expressions/mockExpressions.js.map +1 -1
- package/dist/components/form/expressions/renderExpressionToText.d.ts.map +1 -1
- package/dist/components/form/expressions/renderExpressionToText.js +16 -1
- package/dist/components/form/expressions/renderExpressionToText.js.map +1 -1
- package/dist/components/form/expressions/types.d.ts +2 -2
- package/dist/components/form/expressions/useExpressionType.js +1 -1
- package/dist/components/form/expressions/useExpressionType.js.map +1 -1
- package/dist/components/form/fields/ChoiceGroupHeading.d.ts +22 -0
- package/dist/components/form/fields/ChoiceGroupHeading.d.ts.map +1 -0
- package/dist/components/form/fields/ChoiceGroupHeading.js +40 -0
- package/dist/components/form/fields/ChoiceGroupHeading.js.map +1 -0
- package/dist/components/form/fields/Field.d.ts +9 -2
- package/dist/components/form/fields/Field.d.ts.map +1 -1
- package/dist/components/form/fields/Field.js +20 -15
- package/dist/components/form/fields/Field.js.map +1 -1
- package/dist/components/form/fields/allowed-values/AllowedValues.d.ts +11 -1
- package/dist/components/form/fields/allowed-values/AllowedValues.d.ts.map +1 -1
- package/dist/components/form/fields/allowed-values/AllowedValues.js +42 -18
- package/dist/components/form/fields/allowed-values/AllowedValues.js.map +1 -1
- package/dist/components/form/fields/allowed-values/choicePicture.d.ts +3 -3
- package/dist/components/form/fields/allowed-values/choicePicture.js +3 -3
- package/dist/components/form/fields/allowed-values/savedValues.d.ts +30 -0
- package/dist/components/form/fields/allowed-values/savedValues.d.ts.map +1 -0
- package/dist/components/form/fields/allowed-values/savedValues.js +39 -0
- package/dist/components/form/fields/allowed-values/savedValues.js.map +1 -0
- package/dist/components/form/fields/array/ArrayAuto.d.ts.map +1 -1
- package/dist/components/form/fields/array/ArrayAuto.js +32 -15
- package/dist/components/form/fields/array/ArrayAuto.js.map +1 -1
- package/dist/components/form/fields/array/ArrayAutoField.d.ts.map +1 -1
- package/dist/components/form/fields/array/ArrayAutoField.js +22 -20
- package/dist/components/form/fields/array/ArrayAutoField.js.map +1 -1
- package/dist/components/form/fields/auto/AutoFormField.d.ts +12 -1
- package/dist/components/form/fields/auto/AutoFormField.d.ts.map +1 -1
- package/dist/components/form/fields/auto/AutoFormField.js +59 -29
- package/dist/components/form/fields/auto/AutoFormField.js.map +1 -1
- package/dist/components/form/fields/auto/hostEditorValue.d.ts +1 -1
- package/dist/components/form/fields/auto/hostEditorValue.js +1 -1
- package/dist/components/form/fields/binary/Binary.d.ts.map +1 -1
- package/dist/components/form/fields/binary/Binary.js +7 -2
- package/dist/components/form/fields/binary/Binary.js.map +1 -1
- package/dist/components/form/fields/boolean/Boolean.d.ts +8 -2
- package/dist/components/form/fields/boolean/Boolean.d.ts.map +1 -1
- package/dist/components/form/fields/boolean/Boolean.js +9 -3
- package/dist/components/form/fields/boolean/Boolean.js.map +1 -1
- package/dist/components/form/fields/codeFont.d.ts +12 -0
- package/dist/components/form/fields/codeFont.d.ts.map +1 -0
- package/dist/components/form/fields/codeFont.js +26 -0
- package/dist/components/form/fields/codeFont.js.map +1 -0
- package/dist/components/form/fields/color/Color.d.ts +1 -1
- package/dist/components/form/fields/color/Color.d.ts.map +1 -1
- package/dist/components/form/fields/color/Color.js +12 -10
- package/dist/components/form/fields/color/Color.js.map +1 -1
- package/dist/components/form/fields/date/Date.d.ts +7 -1
- package/dist/components/form/fields/date/Date.d.ts.map +1 -1
- package/dist/components/form/fields/date/Date.js +4 -2
- package/dist/components/form/fields/date/Date.js.map +1 -1
- package/dist/components/form/fields/emittedValues.d.ts +1 -1
- package/dist/components/form/fields/emittedValues.js +1 -1
- package/dist/components/form/fields/file/File.d.ts +1 -1
- package/dist/components/form/fields/file/File.d.ts.map +1 -1
- package/dist/components/form/fields/file/File.js +18 -6
- package/dist/components/form/fields/file/File.js.map +1 -1
- package/dist/components/form/fields/labels.d.ts +81 -0
- package/dist/components/form/fields/labels.d.ts.map +1 -0
- package/dist/components/form/fields/labels.js +52 -0
- package/dist/components/form/fields/labels.js.map +1 -0
- package/dist/components/form/fields/long-string/LongString.d.ts +7 -1
- package/dist/components/form/fields/long-string/LongString.d.ts.map +1 -1
- package/dist/components/form/fields/long-string/LongString.js +19 -9
- package/dist/components/form/fields/long-string/LongString.js.map +1 -1
- package/dist/components/form/fields/markdown/Markdown.d.ts.map +1 -1
- package/dist/components/form/fields/markdown/Markdown.js +3 -1
- package/dist/components/form/fields/markdown/Markdown.js.map +1 -1
- package/dist/components/form/fields/multi-select/MultiSelectFormField.js +1 -1
- package/dist/components/form/fields/multi-select/MultiSelectFormField.js.map +1 -1
- package/dist/components/form/fields/number/Number.d.ts +6 -3
- package/dist/components/form/fields/number/Number.d.ts.map +1 -1
- package/dist/components/form/fields/number/Number.js +24 -10
- package/dist/components/form/fields/number/Number.js.map +1 -1
- package/dist/components/form/fields/object/Object.d.ts +36 -1
- package/dist/components/form/fields/object/Object.d.ts.map +1 -1
- package/dist/components/form/fields/object/Object.js +145 -19
- package/dist/components/form/fields/object/Object.js.map +1 -1
- package/dist/components/form/fields/pendingEdit.d.ts +1 -1
- package/dist/components/form/fields/pendingEdit.js +1 -1
- package/dist/components/form/fields/radio-group/RadioGroup.d.ts.map +1 -1
- package/dist/components/form/fields/radio-group/RadioGroup.js +13 -7
- package/dist/components/form/fields/radio-group/RadioGroup.js.map +1 -1
- package/dist/components/form/fields/rich-text/RichText.d.ts +1 -1
- package/dist/components/form/fields/rich-text/RichText.d.ts.map +1 -1
- package/dist/components/form/fields/rich-text/RichText.js +15 -12
- package/dist/components/form/fields/rich-text/RichText.js.map +1 -1
- package/dist/components/form/fields/rich-text/useTemplateTags.d.ts +3 -1
- package/dist/components/form/fields/rich-text/useTemplateTags.d.ts.map +1 -1
- package/dist/components/form/fields/rich-text/useTemplateTags.js +9 -3
- package/dist/components/form/fields/rich-text/useTemplateTags.js.map +1 -1
- package/dist/components/form/fields/schema-definition/CatalogLeafForm.d.ts.map +1 -1
- package/dist/components/form/fields/schema-definition/CatalogLeafForm.js +11 -9
- package/dist/components/form/fields/schema-definition/CatalogLeafForm.js.map +1 -1
- package/dist/components/form/fields/schema-definition/CatalogNodeEditor.d.ts +1 -1
- package/dist/components/form/fields/schema-definition/CatalogNodeEditor.d.ts.map +1 -1
- package/dist/components/form/fields/schema-definition/CatalogNodeEditor.js +42 -30
- package/dist/components/form/fields/schema-definition/CatalogNodeEditor.js.map +1 -1
- package/dist/components/form/fields/schema-definition/Hint.d.ts +4 -3
- package/dist/components/form/fields/schema-definition/Hint.d.ts.map +1 -1
- package/dist/components/form/fields/schema-definition/Hint.js +10 -2
- package/dist/components/form/fields/schema-definition/Hint.js.map +1 -1
- package/dist/components/form/fields/schema-definition/InlineValidationBanner.d.ts.map +1 -1
- package/dist/components/form/fields/schema-definition/InlineValidationBanner.js +3 -1
- package/dist/components/form/fields/schema-definition/InlineValidationBanner.js.map +1 -1
- package/dist/components/form/fields/schema-definition/Loader.d.ts.map +1 -1
- package/dist/components/form/fields/schema-definition/Loader.js +4 -2
- package/dist/components/form/fields/schema-definition/Loader.js.map +1 -1
- package/dist/components/form/fields/schema-definition/MigrationsTab.d.ts.map +1 -1
- package/dist/components/form/fields/schema-definition/MigrationsTab.js +31 -26
- package/dist/components/form/fields/schema-definition/MigrationsTab.js.map +1 -1
- package/dist/components/form/fields/schema-definition/TableEditor.d.ts.map +1 -1
- package/dist/components/form/fields/schema-definition/TableEditor.js +3 -1
- package/dist/components/form/fields/schema-definition/TableEditor.js.map +1 -1
- package/dist/components/form/fields/schema-definition/TablesTab.d.ts.map +1 -1
- package/dist/components/form/fields/schema-definition/TablesTab.js +25 -23
- package/dist/components/form/fields/schema-definition/TablesTab.js.map +1 -1
- package/dist/components/form/fields/schema-definition/index.d.ts.map +1 -1
- package/dist/components/form/fields/schema-definition/index.js +21 -15
- package/dist/components/form/fields/schema-definition/index.js.map +1 -1
- package/dist/components/form/fields/schema-definition/labels.d.ts +123 -0
- package/dist/components/form/fields/schema-definition/labels.d.ts.map +1 -0
- package/dist/components/form/fields/schema-definition/labels.js +113 -0
- package/dist/components/form/fields/schema-definition/labels.js.map +1 -0
- package/dist/components/form/fields/schema-definition/mockCatalog.d.ts +1 -1
- package/dist/components/form/fields/schema-definition/referenceSuggestions.d.ts +1 -1
- package/dist/components/form/fields/schema-definition/types.d.ts +2 -2
- package/dist/components/form/fields/schema-definition/types.js +1 -1
- package/dist/components/form/fields/select/Select.d.ts +11 -5
- package/dist/components/form/fields/select/Select.d.ts.map +1 -1
- package/dist/components/form/fields/select/Select.js +18 -11
- package/dist/components/form/fields/select/Select.js.map +1 -1
- package/dist/components/form/fields/select/SelectCollection.d.ts +28 -3
- package/dist/components/form/fields/select/SelectCollection.d.ts.map +1 -1
- package/dist/components/form/fields/select/SelectCollection.js +40 -9
- package/dist/components/form/fields/select/SelectCollection.js.map +1 -1
- package/dist/components/form/fields/select/unavailableRow.d.ts +1 -1
- package/dist/components/form/fields/select/unavailableRow.js +1 -1
- package/dist/components/form/fields/template/ExampleValueModal.d.ts.map +1 -1
- package/dist/components/form/fields/template/ExampleValueModal.js +4 -1
- package/dist/components/form/fields/template/ExampleValueModal.js.map +1 -1
- package/dist/components/form/fields/template/TemplateBrowser.d.ts.map +1 -1
- package/dist/components/form/fields/template/TemplateBrowser.js +6 -4
- package/dist/components/form/fields/template/TemplateBrowser.js.map +1 -1
- package/dist/components/form/fields/template/TemplateField.d.ts +24 -5
- package/dist/components/form/fields/template/TemplateField.d.ts.map +1 -1
- package/dist/components/form/fields/template/TemplateField.js +117 -99
- package/dist/components/form/fields/template/TemplateField.js.map +1 -1
- package/dist/components/form/fields/template/TemplatePicker.d.ts +9 -3
- package/dist/components/form/fields/template/TemplatePicker.d.ts.map +1 -1
- package/dist/components/form/fields/template/TemplatePicker.js +62 -34
- package/dist/components/form/fields/template/TemplatePicker.js.map +1 -1
- package/dist/components/form/fields/template/referenceNames.d.ts +2 -2
- package/dist/components/form/fields/template/templatesListProps.d.ts +11 -0
- package/dist/components/form/fields/template/templatesListProps.d.ts.map +1 -0
- package/dist/components/form/fields/template/templatesListProps.js +37 -0
- package/dist/components/form/fields/template/templatesListProps.js.map +1 -0
- package/dist/components/form/fields/template/writtenAsText.d.ts +2 -2
- package/dist/components/form/fields/template/writtenAsText.js +2 -2
- package/dist/components/form/index.d.ts +2 -0
- package/dist/components/form/index.d.ts.map +1 -1
- package/dist/components/form/index.js +2 -0
- package/dist/components/form/index.js.map +1 -1
- package/dist/components/form/typeSentenceForm.js +1 -1
- package/dist/components/imageLightbox/ImageLightbox.d.ts.map +1 -1
- package/dist/components/imageLightbox/ImageLightbox.js +11 -7
- package/dist/components/imageLightbox/ImageLightbox.js.map +1 -1
- package/dist/components/log/Log.d.ts +1 -1
- package/dist/components/log/Log.d.ts.map +1 -1
- package/dist/components/log/Log.js +22 -19
- package/dist/components/log/Log.js.map +1 -1
- package/dist/components/log/labels.d.ts +25 -0
- package/dist/components/log/labels.d.ts.map +1 -0
- package/dist/components/log/labels.js +22 -0
- package/dist/components/log/labels.js.map +1 -0
- package/dist/components/menu/Menu.d.ts.map +1 -1
- package/dist/components/menu/Menu.js +3 -1
- package/dist/components/menu/Menu.js.map +1 -1
- package/dist/components/qonsoleSmartInput/useQonsoleSession.d.ts.map +1 -1
- package/dist/components/qonsoleSmartInput/useQonsoleSession.js +3 -2
- package/dist/components/qonsoleSmartInput/useQonsoleSession.js.map +1 -1
- package/dist/components/smartEditor/CompletionMenu.d.ts +1 -1
- package/dist/components/smartEditor/CompletionMenu.d.ts.map +1 -1
- package/dist/components/smartEditor/CompletionMenu.js +25 -19
- package/dist/components/smartEditor/CompletionMenu.js.map +1 -1
- package/dist/components/smartEditor/SmartEditor.d.ts.map +1 -1
- package/dist/components/smartEditor/SmartEditor.js +21 -23
- package/dist/components/smartEditor/SmartEditor.js.map +1 -1
- package/dist/components/smartEditor/caretBox.d.ts +1 -1
- package/dist/components/smartEditor/caretBox.js +1 -1
- package/dist/components/smartEditor/completionStyle.d.ts +21 -6
- package/dist/components/smartEditor/completionStyle.d.ts.map +1 -1
- package/dist/components/smartEditor/completionStyle.js +46 -23
- package/dist/components/smartEditor/completionStyle.js.map +1 -1
- package/dist/components/smartEditor/contextTitle.d.ts +2 -2
- package/dist/components/smartEditor/contextTitle.js +2 -2
- package/dist/components/smartEditor/editingAids.d.ts +2 -2
- package/dist/components/smartEditor/editingAids.js +2 -2
- package/dist/components/smartEditor/index.js +1 -1
- package/dist/components/smartEditor/index.js.map +1 -1
- package/dist/components/smartEditor/templateCompletions.d.ts +7 -7
- package/dist/components/smartEditor/templateCompletions.d.ts.map +1 -1
- package/dist/components/smartEditor/templateCompletions.js +14 -15
- package/dist/components/smartEditor/templateCompletions.js.map +1 -1
- package/dist/components/smartEditor/typedReferences.d.ts +1 -1
- package/dist/components/smartEditor/typedReferences.js +3 -3
- package/dist/components/smartEditor/typedReferences.js.map +1 -1
- package/dist/components/smartEditor/types.d.ts +8 -8
- package/dist/components/smartEditor/useEditingAids.js +1 -1
- package/dist/components/smartEditor/useEditingAids.js.map +1 -1
- package/dist/components/smartEditor/useLspAutocomplete.d.ts +9 -4
- package/dist/components/smartEditor/useLspAutocomplete.d.ts.map +1 -1
- package/dist/components/smartEditor/useLspAutocomplete.js +92 -38
- package/dist/components/smartEditor/useLspAutocomplete.js.map +1 -1
- package/dist/components/smartEditor/useLspHover.d.ts.map +1 -1
- package/dist/components/smartEditor/useLspHover.js +4 -5
- package/dist/components/smartEditor/useLspHover.js.map +1 -1
- package/dist/components/smartEditor/useTabCameIn.d.ts +1 -1
- package/dist/components/smartEditor/useTabCameIn.js +1 -1
- package/dist/components/supportTicket/AttachmentChips.d.ts.map +1 -1
- package/dist/components/supportTicket/AttachmentChips.js +5 -3
- package/dist/components/supportTicket/AttachmentChips.js.map +1 -1
- package/dist/components/supportTicket/InterfaceReferenceTags.d.ts +10 -3
- package/dist/components/supportTicket/InterfaceReferenceTags.d.ts.map +1 -1
- package/dist/components/supportTicket/InterfaceReferenceTags.js +9 -8
- package/dist/components/supportTicket/InterfaceReferenceTags.js.map +1 -1
- package/dist/components/supportTicket/ReferencePicker.d.ts +3 -2
- package/dist/components/supportTicket/ReferencePicker.d.ts.map +1 -1
- package/dist/components/supportTicket/ReferencePicker.js +36 -26
- package/dist/components/supportTicket/ReferencePicker.js.map +1 -1
- package/dist/components/supportTicket/TicketHeader.d.ts.map +1 -1
- package/dist/components/supportTicket/TicketHeader.js +6 -3
- package/dist/components/supportTicket/TicketHeader.js.map +1 -1
- package/dist/components/supportTicket/TicketMetaTags.d.ts +19 -12
- package/dist/components/supportTicket/TicketMetaTags.d.ts.map +1 -1
- package/dist/components/supportTicket/TicketMetaTags.js +57 -6
- package/dist/components/supportTicket/TicketMetaTags.js.map +1 -1
- package/dist/components/supportTicket/TicketReplyBox.d.ts +3 -2
- package/dist/components/supportTicket/TicketReplyBox.d.ts.map +1 -1
- package/dist/components/supportTicket/TicketReplyBox.js +41 -19
- package/dist/components/supportTicket/TicketReplyBox.js.map +1 -1
- package/dist/components/supportTicket/WorkspaceAccessStatus.d.ts +10 -2
- package/dist/components/supportTicket/WorkspaceAccessStatus.d.ts.map +1 -1
- package/dist/components/supportTicket/WorkspaceAccessStatus.js +45 -17
- package/dist/components/supportTicket/WorkspaceAccessStatus.js.map +1 -1
- package/dist/components/supportTicket/accessMeta.d.ts +6 -1
- package/dist/components/supportTicket/accessMeta.d.ts.map +1 -1
- package/dist/components/supportTicket/accessMeta.js +83 -65
- package/dist/components/supportTicket/accessMeta.js.map +1 -1
- package/dist/components/supportTicket/attachmentAccess.d.ts.map +1 -1
- package/dist/components/supportTicket/attachmentAccess.js +14 -26
- package/dist/components/supportTicket/attachmentAccess.js.map +1 -1
- package/dist/components/supportTicket/fileToAttachment.d.ts.map +1 -1
- package/dist/components/supportTicket/fileToAttachment.js +4 -1
- package/dist/components/supportTicket/fileToAttachment.js.map +1 -1
- package/dist/components/supportTicket/labels.d.ts +159 -0
- package/dist/components/supportTicket/labels.d.ts.map +1 -0
- package/dist/components/supportTicket/labels.js +216 -0
- package/dist/components/supportTicket/labels.js.map +1 -0
- package/dist/components/supportTicket/meta.d.ts +35 -6
- package/dist/components/supportTicket/meta.d.ts.map +1 -1
- package/dist/components/supportTicket/meta.js +100 -73
- package/dist/components/supportTicket/meta.js.map +1 -1
- package/dist/components/supportTicket/ticketAttentionInks.d.ts +23 -0
- package/dist/components/supportTicket/ticketAttentionInks.d.ts.map +1 -0
- package/dist/components/supportTicket/ticketAttentionInks.js +42 -0
- package/dist/components/supportTicket/ticketAttentionInks.js.map +1 -0
- package/dist/components/supportTicket/ticketModel.d.ts +6 -2
- package/dist/components/supportTicket/ticketModel.d.ts.map +1 -1
- package/dist/components/supportTicket/useLoadedImages.d.ts +10 -0
- package/dist/components/supportTicket/useLoadedImages.d.ts.map +1 -1
- package/dist/components/supportTicket/useLoadedImages.js +64 -1
- package/dist/components/supportTicket/useLoadedImages.js.map +1 -1
- package/dist/components/ticketReferences/TicketReferences.d.ts.map +1 -1
- package/dist/components/ticketReferences/TicketReferences.js +57 -46
- package/dist/components/ticketReferences/TicketReferences.js.map +1 -1
- package/dist/components/ticketThread/TicketThread.d.ts +22 -2
- package/dist/components/ticketThread/TicketThread.d.ts.map +1 -1
- package/dist/components/ticketThread/TicketThread.js +61 -39
- package/dist/components/ticketThread/TicketThread.js.map +1 -1
- package/dist/components/ticketThread/index.d.ts +1 -1
- package/dist/components/ticketThread/index.d.ts.map +1 -1
- package/dist/components/ticketThread/index.js +2 -1
- package/dist/components/ticketThread/index.js.map +1 -1
- package/dist/helpers/allowedValues.d.ts +1 -1
- package/dist/helpers/allowedValues.d.ts.map +1 -1
- package/dist/helpers/allowedValues.js +12 -5
- package/dist/helpers/allowedValues.js.map +1 -1
- package/dist/helpers/common.d.ts +4 -0
- package/dist/helpers/common.d.ts.map +1 -1
- package/dist/helpers/common.js +11 -7
- package/dist/helpers/common.js.map +1 -1
- package/dist/helpers/domProps.js +1 -1
- package/dist/helpers/expressions.d.ts +7 -7
- package/dist/helpers/expressions.d.ts.map +1 -1
- package/dist/helpers/expressions.js +15 -20
- package/dist/helpers/expressions.js.map +1 -1
- package/dist/helpers/fieldDescription.d.ts +16 -0
- package/dist/helpers/fieldDescription.d.ts.map +1 -0
- package/dist/helpers/fieldDescription.js +40 -0
- package/dist/helpers/fieldDescription.js.map +1 -0
- package/dist/helpers/hoveringPointer.d.ts +1 -1
- package/dist/helpers/hoveringPointer.js +1 -1
- package/dist/helpers/markdownText.d.ts +9 -0
- package/dist/helpers/markdownText.d.ts.map +1 -1
- package/dist/helpers/markdownText.js +50 -3
- package/dist/helpers/markdownText.js.map +1 -1
- package/dist/helpers/noDescription.d.ts +9 -5
- package/dist/helpers/noDescription.d.ts.map +1 -1
- package/dist/helpers/noDescription.js +18 -7
- package/dist/helpers/noDescription.js.map +1 -1
- package/dist/helpers/optionUiTypes.d.ts +3 -3
- package/dist/helpers/options.d.ts +2 -2
- package/dist/helpers/options.d.ts.map +1 -1
- package/dist/helpers/options.js +11 -8
- package/dist/helpers/options.js.map +1 -1
- package/dist/helpers/qorusTypeCatalogue.d.ts +9 -9
- package/dist/helpers/qorusTypeCatalogue.js +11 -11
- package/dist/helpers/qorusTypeCatalogue.js.map +1 -1
- package/dist/helpers/readableColors.d.ts +9 -1
- package/dist/helpers/readableColors.d.ts.map +1 -1
- package/dist/helpers/readableColors.js +13 -2
- package/dist/helpers/readableColors.js.map +1 -1
- package/dist/helpers/recordFieldReference.js +1 -1
- package/dist/helpers/recordFieldReference.js.map +1 -1
- package/dist/helpers/reqraftLabels.d.ts +117 -5
- package/dist/helpers/reqraftLabels.d.ts.map +1 -1
- package/dist/helpers/reqraftLabels.js +80 -19
- package/dist/helpers/reqraftLabels.js.map +1 -1
- package/dist/helpers/sentenceCase.d.ts +9 -0
- package/dist/helpers/sentenceCase.d.ts.map +1 -0
- package/dist/helpers/sentenceCase.js +22 -0
- package/dist/helpers/sentenceCase.js.map +1 -0
- package/dist/helpers/singleLineString.d.ts.map +1 -1
- package/dist/helpers/singleLineString.js +1 -0
- package/dist/helpers/singleLineString.js.map +1 -1
- package/dist/helpers/templateCatalogue.d.ts +2 -2
- package/dist/helpers/templateCatalogue.js +3 -3
- package/dist/helpers/templateCatalogueContext.d.ts +1 -1
- package/dist/helpers/templateCatalogueContext.js +1 -1
- package/dist/helpers/templateItems.d.ts +15 -1
- package/dist/helpers/templateItems.d.ts.map +1 -1
- package/dist/helpers/templateItems.js +59 -2
- package/dist/helpers/templateItems.js.map +1 -1
- package/dist/helpers/templateListLabels.d.ts +9 -0
- package/dist/helpers/templateListLabels.d.ts.map +1 -1
- package/dist/helpers/templateListLabels.js +10 -0
- package/dist/helpers/templateListLabels.js.map +1 -1
- package/dist/helpers/templateTree.d.ts +9 -9
- package/dist/helpers/templateTree.js +14 -14
- package/dist/helpers/templateType.d.ts +1 -1
- package/dist/helpers/templateType.js +1 -1
- package/dist/helpers/templates.d.ts +53 -9
- package/dist/helpers/templates.d.ts.map +1 -1
- package/dist/helpers/templates.js +165 -44
- package/dist/helpers/templates.js.map +1 -1
- package/dist/helpers/validationLabels.d.ts +193 -0
- package/dist/helpers/validationLabels.d.ts.map +1 -0
- package/dist/helpers/validationLabels.js +213 -0
- package/dist/helpers/validationLabels.js.map +1 -0
- package/dist/helpers/validations.d.ts +16 -4
- package/dist/helpers/validations.d.ts.map +1 -1
- package/dist/helpers/validations.js +211 -209
- package/dist/helpers/validations.js.map +1 -1
- package/dist/helpers/webLink.d.ts +2 -2
- package/dist/helpers/webLink.js +2 -2
- package/dist/hooks/useDestructiveButtonProps.d.ts +22 -0
- package/dist/hooks/useDestructiveButtonProps.d.ts.map +1 -0
- package/dist/hooks/useDestructiveButtonProps.js +46 -0
- package/dist/hooks/useDestructiveButtonProps.js.map +1 -0
- package/dist/hooks/useEqualValue.d.ts +14 -0
- package/dist/hooks/useEqualValue.d.ts.map +1 -0
- package/dist/hooks/useEqualValue.js +27 -0
- package/dist/hooks/useEqualValue.js.map +1 -0
- package/dist/hooks/useFetch/useFetch.js +1 -1
- package/dist/hooks/useReadableIntentShade.d.ts +1 -1
- package/dist/hooks/useReadableIntentShade.js +1 -1
- package/dist/hooks/useReadableOpacity.d.ts +1 -1
- package/dist/hooks/useReadableOpacity.js +1 -1
- package/dist/hooks/useTemplates.d.ts +0 -7
- package/dist/hooks/useTemplates.d.ts.map +1 -1
- package/dist/hooks/useTemplates.js +25 -12
- package/dist/hooks/useTemplates.js.map +1 -1
- package/dist/hooks/useWebSocket/useWebSocket.d.ts.map +1 -1
- package/dist/hooks/useWebSocket/useWebSocket.js +6 -5
- package/dist/hooks/useWebSocket/useWebSocket.js.map +1 -1
- package/dist/index.d.ts +4 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +20 -3
- package/dist/index.js.map +1 -1
- package/dist/providers/StorageProvider.d.ts +1 -1
- package/dist/providers/StorageProvider.js +1 -1
- package/dist/stores/currentUser/currentUser.d.ts +5 -5
- package/dist/stores/currentUser/currentUser.d.ts.map +1 -1
- package/dist/tracking/ui/ExperimentCard.d.ts +3 -3
- package/dist/tracking/ui/ExperimentCard.d.ts.map +1 -1
- package/dist/tracking/ui/ExperimentCard.js +34 -46
- package/dist/tracking/ui/ExperimentCard.js.map +1 -1
- package/dist/tracking/ui/ExperimentsOverlay.d.ts +3 -3
- package/dist/tracking/ui/ExperimentsOverlay.d.ts.map +1 -1
- package/dist/tracking/ui/ExperimentsOverlay.js +8 -6
- package/dist/tracking/ui/ExperimentsOverlay.js.map +1 -1
- package/dist/tracking/ui/card.d.ts +9 -13
- package/dist/tracking/ui/card.d.ts.map +1 -1
- package/dist/tracking/ui/card.js +96 -107
- package/dist/tracking/ui/card.js.map +1 -1
- package/dist/tracking/ui/client.d.ts +0 -6
- package/dist/tracking/ui/client.d.ts.map +1 -1
- package/dist/tracking/ui/client.js +9 -2
- package/dist/tracking/ui/client.js.map +1 -1
- package/dist/tracking/ui/labels.d.ts +198 -0
- package/dist/tracking/ui/labels.d.ts.map +1 -0
- package/dist/tracking/ui/labels.js +171 -0
- package/dist/tracking/ui/labels.js.map +1 -0
- package/dist/tracking/ui/readable.js +1 -1
- package/dist/utils/fetch.d.ts +1 -1
- package/dist/utils/fetch.js +1 -1
- package/package.json +2 -1
|
@@ -0,0 +1,143 @@
|
|
|
1
|
+
/** The words of an expression field's Text / Visual toggle. */
|
|
2
|
+
export interface IExpressionModeLabels {
|
|
3
|
+
text: string;
|
|
4
|
+
visual: string;
|
|
5
|
+
/** The Text button's hover when there is no language server to write the expression with. */
|
|
6
|
+
textUnavailable: string;
|
|
7
|
+
}
|
|
8
|
+
/**
|
|
9
|
+
* The words of an expression field and its builder. A host that translates its interface gives its own
|
|
10
|
+
* (`setReqraftLabels`); the rest stay English.
|
|
11
|
+
*/
|
|
12
|
+
export interface IExpressionLabels {
|
|
13
|
+
/** The Text / Visual toggle; a field's `modeLabels` come before these. */
|
|
14
|
+
modes: IExpressionModeLabels;
|
|
15
|
+
/** Above the Text view's editor when there is no language server to read the text with. */
|
|
16
|
+
textUnreadable: string;
|
|
17
|
+
/** Above the Visual view when there is no language server for the Text view. */
|
|
18
|
+
textViewUnavailable: string;
|
|
19
|
+
/** Above the Visual view when the expression cannot be written as text: `reason` is the server's. */
|
|
20
|
+
textRefused: (reason: string) => string;
|
|
21
|
+
/** The title of the note under the Text view whose expression gives a type the field may not take. */
|
|
22
|
+
mayNotFit: string;
|
|
23
|
+
/** The same, where the type cannot be taken. */
|
|
24
|
+
doesNotFit: string;
|
|
25
|
+
/**
|
|
26
|
+
* That note's sentence: what the expression gives and what the field takes (types inside a sentence), and, where
|
|
27
|
+
* the value may still fit (`mayFail`), that Qorus converts and checks it when it runs.
|
|
28
|
+
*/
|
|
29
|
+
typeNote: (gives: string | undefined, takes: string | undefined, mayFail: boolean) => string;
|
|
30
|
+
/** The title of the box that renders the expression in words under the Text view. */
|
|
31
|
+
preview: string;
|
|
32
|
+
/** Where the expression cannot be rendered in words. */
|
|
33
|
+
notRendered: string;
|
|
34
|
+
/** In the builder's explanation, where the expression is not valid. */
|
|
35
|
+
notExplained: string;
|
|
36
|
+
/**
|
|
37
|
+
* What is said of a condition that gives text, a date or a time: what it gives (`typeInSentence`, undefined where
|
|
38
|
+
* no type can be named) and how to make it one, by an `example` comparison written in DPQL.
|
|
39
|
+
*/
|
|
40
|
+
conditionError: (typeInSentence: string | undefined, example: string) => string;
|
|
41
|
+
/**
|
|
42
|
+
* What is said of a condition that gives a number, a list, a hash or a type that is not known (`other`): how Qorus
|
|
43
|
+
* reads it and how to say it explicitly. `named` is the type inside a sentence.
|
|
44
|
+
*/
|
|
45
|
+
conditionByTruthiness: (kind: 'number' | 'list' | 'hash' | 'other', named: string) => string;
|
|
46
|
+
/**
|
|
47
|
+
* What an expression, or a part of one, whose operation is not chosen yet says: what it lacks, and what its place
|
|
48
|
+
* takes where that is a type (`takes`, a type inside a sentence). `part`: a part of an expression, not the whole.
|
|
49
|
+
*/
|
|
50
|
+
noOperationYet: (part: boolean, takes?: string) => string;
|
|
51
|
+
/** Under an operation Qorus could not check, where the check gave no reason. */
|
|
52
|
+
couldNotCheck: string;
|
|
53
|
+
/** The description of an expression a server outside Qorus runs. */
|
|
54
|
+
runsOutsideQorus: string;
|
|
55
|
+
selectOperation: string;
|
|
56
|
+
/** The action that puts the expression inside another one, and its hover. */
|
|
57
|
+
wrap: string;
|
|
58
|
+
wrapTooltip: string;
|
|
59
|
+
/** The action that takes the expression away and keeps what is inside it, and its hover. */
|
|
60
|
+
unwrap: string;
|
|
61
|
+
unwrapTooltip: string;
|
|
62
|
+
/** The hover of the action that removes the expression and everything inside it. */
|
|
63
|
+
removeExpressionTooltip: string;
|
|
64
|
+
explain: string;
|
|
65
|
+
explainTooltip: string;
|
|
66
|
+
hideExplanation: string;
|
|
67
|
+
hideExplanationTooltip: string;
|
|
68
|
+
/** What an operand's field offers, by where its value can come from. */
|
|
69
|
+
selectTemplateOrField: string;
|
|
70
|
+
selectField: string;
|
|
71
|
+
selectTemplate: string;
|
|
72
|
+
loading: string;
|
|
73
|
+
/** The heading of a group of conditions, one of which must be true (OR), all of which (AND), and the top one. */
|
|
74
|
+
anyOfConditions: string;
|
|
75
|
+
allOfConditions: string;
|
|
76
|
+
/**
|
|
77
|
+
* The two actions that join another condition to an expression: one that must also be true, and one that can be
|
|
78
|
+
* true instead. Written in sentence case; the classic look draws them in capitals.
|
|
79
|
+
*/
|
|
80
|
+
joinWithAnd: string;
|
|
81
|
+
joinWithOr: string;
|
|
82
|
+
joinWithAndTooltip: string;
|
|
83
|
+
joinWithOrTooltip: string;
|
|
84
|
+
/** Between two parts of a group: what joins them. Small; the classic look draws them in capitals. */
|
|
85
|
+
joinedByAnd: string;
|
|
86
|
+
joinedByOr: string;
|
|
87
|
+
ifConditions: string;
|
|
88
|
+
addCondition: string;
|
|
89
|
+
/** An operand's position: 1st, 2nd, 3rd. */
|
|
90
|
+
ordinal: (position: number) => string;
|
|
91
|
+
/** The ⋮ menu's section that moves an operand, and its items. */
|
|
92
|
+
moveArgument: string;
|
|
93
|
+
moveBefore: string;
|
|
94
|
+
moveAfter: string;
|
|
95
|
+
moveToStart: string;
|
|
96
|
+
moveToEnd: string;
|
|
97
|
+
moveToPosition: string;
|
|
98
|
+
currentPosition: string;
|
|
99
|
+
/** The hover of a position to move an operand to (`position` counts from 1). */
|
|
100
|
+
moveToOrdinal: (position: number) => string;
|
|
101
|
+
moveToThatPosition: string;
|
|
102
|
+
/** The menu of the positions not shown as buttons. */
|
|
103
|
+
morePositions: string;
|
|
104
|
+
dragToReorder: string;
|
|
105
|
+
positionTooltip: string;
|
|
106
|
+
removeArgument: string;
|
|
107
|
+
/** The phone's action that removes an operand, named by the operation's operand (undefined where it has no name). */
|
|
108
|
+
removeOperand: (name: string | undefined) => string;
|
|
109
|
+
/** The slot after the last operand: add one, its hover, and its hover while the operands are not filled in. */
|
|
110
|
+
addOperand: (name: string | undefined) => string;
|
|
111
|
+
addOperandTooltip: (name: string | undefined) => string;
|
|
112
|
+
fillInCurrentValuesFirst: string;
|
|
113
|
+
/** An operand's hover where its value is not a type the operand takes (`accepted`, the types inside a sentence). */
|
|
114
|
+
operandNotOfType: (accepted: string | undefined) => string;
|
|
115
|
+
/** An operand's hover where its type fits but Qorus may convert it. */
|
|
116
|
+
operandMayConvert: string;
|
|
117
|
+
/** An operand's hover where it needs other types (`accepted`, undefined where the types are not known). */
|
|
118
|
+
operandNeedsType: (accepted: string | undefined) => string;
|
|
119
|
+
/** The dialog that confirms converting operands whose values have other types. */
|
|
120
|
+
confirmMismatchedTitle: string;
|
|
121
|
+
mismatchedExplanation: string;
|
|
122
|
+
mismatchedInstruction: string;
|
|
123
|
+
discardAll: string;
|
|
124
|
+
acceptAll: string;
|
|
125
|
+
confirmSelection: string;
|
|
126
|
+
clearedNotConverted: string;
|
|
127
|
+
noConversionNeeded: string;
|
|
128
|
+
/** What an operand that is converted is converted from and to (types inside a sentence, either may be unknown). */
|
|
129
|
+
converted: (from: string | undefined, to: string | undefined) => string;
|
|
130
|
+
/** How many operands will be converted. */
|
|
131
|
+
transformedCount: (count: number) => string;
|
|
132
|
+
/** The dialog that confirms a type the value does not take. */
|
|
133
|
+
confirmTypeTitle: string;
|
|
134
|
+
needsOneOfTypes: string;
|
|
135
|
+
useTypeAnyway: string;
|
|
136
|
+
dontShowAgain: string;
|
|
137
|
+
/** The answers of that dialog where its caller gives none. */
|
|
138
|
+
cancel: string;
|
|
139
|
+
confirm: string;
|
|
140
|
+
}
|
|
141
|
+
/** The English words, the ones a host gets when it gives none. */
|
|
142
|
+
export declare const DEFAULT_EXPRESSION_LABELS: IExpressionLabels;
|
|
143
|
+
//# sourceMappingURL=labels.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"labels.d.ts","sourceRoot":"","sources":["../../../../src/components/form/expressions/labels.ts"],"names":[],"mappings":"AAEA,+DAA+D;AAC/D,MAAM,WAAW,qBAAqB;IACpC,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,EAAE,MAAM,CAAC;IACf,6FAA6F;IAC7F,eAAe,EAAE,MAAM,CAAC;CACzB;AAWD;;;GAGG;AACH,MAAM,WAAW,iBAAiB;IAChC,0EAA0E;IAC1E,KAAK,EAAE,qBAAqB,CAAC;IAC7B,2FAA2F;IAC3F,cAAc,EAAE,MAAM,CAAC;IACvB,gFAA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exports, "__esModule", { value: true });
|
|
4
|
+
exports.DEFAULT_EXPRESSION_LABELS = void 0;
|
|
5
|
+
/** English ordinals: 1st, 2nd, 3rd, 4th … 11th, 12th, 13th … 21st. */
|
|
6
|
+
var englishOrdinal = function (n) {
|
|
7
|
+
var _a;
|
|
8
|
+
var mod100 = n % 100;
|
|
9
|
+
if (mod100 >= 11 && mod100 <= 13) {
|
|
10
|
+
return "".concat(n, "th");
|
|
11
|
+
}
|
|
12
|
+
return "".concat(n).concat((_a = { 1: 'st', 2: 'nd', 3: 'rd' }[n % 10]) !== null && _a !== void 0 ? _a : 'th');
|
|
13
|
+
};
|
|
14
|
+
/** The English words, the ones a host gets when it gives none. */
|
|
15
|
+
exports.DEFAULT_EXPRESSION_LABELS = {
|
|
16
|
+
modes: {
|
|
17
|
+
text: 'Text',
|
|
18
|
+
visual: 'Visual',
|
|
19
|
+
textUnavailable: 'Writing it as text is not available right now',
|
|
20
|
+
},
|
|
21
|
+
textUnreadable: 'This text cannot be read right now. It is kept as you typed it; the Visual view builds the expression meanwhile.',
|
|
22
|
+
textViewUnavailable: 'Writing it as text is not available right now, so the expression is built here instead.',
|
|
23
|
+
textRefused: function (reason) { return "This expression cannot be shown as text, so it is built here: ".concat(reason); },
|
|
24
|
+
mayNotFit: 'This may not fit',
|
|
25
|
+
doesNotFit: 'This does not fit',
|
|
26
|
+
typeNote: function (gives, takes, mayFail) {
|
|
27
|
+
return "The expression gives ".concat(gives, ", and this field takes ").concat(takes, ".").concat(mayFail ? ' Qorus converts the value when it runs, and checks it then.' : '');
|
|
28
|
+
},
|
|
29
|
+
preview: 'Preview',
|
|
30
|
+
notRendered: 'This expression could not be put in words.',
|
|
31
|
+
notExplained: 'This expression is not valid, so it cannot be explained.',
|
|
32
|
+
conditionError: function (typeInSentence, example) {
|
|
33
|
+
return "".concat(typeInSentence ? "The condition evaluates to ".concat(typeInSentence, ", but it") : 'The condition', " must evaluate to true or false. Compare the value instead, for example ").concat(example, ".");
|
|
34
|
+
},
|
|
35
|
+
conditionByTruthiness: function (kind, named) {
|
|
36
|
+
return kind === 'number' ?
|
|
37
|
+
"The condition evaluates to ".concat(named, "; Qorus treats it as true unless it is 0. To make that explicit, compare it, for example @count > 0.")
|
|
38
|
+
: kind === 'list' ?
|
|
39
|
+
"The condition evaluates to ".concat(named, "; Qorus treats it as true unless it is empty. To make that explicit, compare its size, for example size(@items) > 0.")
|
|
40
|
+
: kind === 'hash' ?
|
|
41
|
+
"The condition evaluates to ".concat(named, "; Qorus treats it as true unless it holds no pairs. To make that explicit, compare its size, for example size(@details) > 0.")
|
|
42
|
+
: "The condition's value is not true or false; Qorus treats it as true unless it is 0 or empty. To make that explicit, compare it, for example @count > 0.";
|
|
43
|
+
},
|
|
44
|
+
noOperationYet: function (part, takes) {
|
|
45
|
+
return part ?
|
|
46
|
+
"Choose what this part does".concat(takes ? ": it must give ".concat(takes) : '', ".")
|
|
47
|
+
: "Choose what this expression does".concat(takes ? ": this field takes ".concat(takes) : '', ".");
|
|
48
|
+
},
|
|
49
|
+
couldNotCheck: 'Qorus could not check this expression.',
|
|
50
|
+
runsOutsideQorus: 'This expression runs outside Qorus',
|
|
51
|
+
selectOperation: 'Select operation',
|
|
52
|
+
wrap: 'Wrap',
|
|
53
|
+
wrapTooltip: 'Put this expression inside another one',
|
|
54
|
+
unwrap: 'Remove',
|
|
55
|
+
unwrapTooltip: 'Remove this expression and keep what is inside it',
|
|
56
|
+
removeExpressionTooltip: 'Remove this expression and everything inside it',
|
|
57
|
+
explain: 'Explain',
|
|
58
|
+
explainTooltip: 'Show explanation of this expression',
|
|
59
|
+
hideExplanation: 'Hide explanation',
|
|
60
|
+
hideExplanationTooltip: 'Hide explanation of this expression',
|
|
61
|
+
selectTemplateOrField: 'Select template or field',
|
|
62
|
+
selectField: 'Select field',
|
|
63
|
+
selectTemplate: 'Select template',
|
|
64
|
+
loading: 'Loading...',
|
|
65
|
+
anyOfConditions: 'At least one of these is true (OR)',
|
|
66
|
+
allOfConditions: 'All of these are true (AND)',
|
|
67
|
+
joinWithAnd: 'And',
|
|
68
|
+
joinWithOr: 'Or',
|
|
69
|
+
joinWithAndTooltip: 'Add a condition that must also be true',
|
|
70
|
+
joinWithOrTooltip: 'Add a condition that can be true instead',
|
|
71
|
+
joinedByAnd: 'and',
|
|
72
|
+
joinedByOr: 'or',
|
|
73
|
+
ifConditions: 'If',
|
|
74
|
+
addCondition: 'Add a condition',
|
|
75
|
+
ordinal: englishOrdinal,
|
|
76
|
+
moveArgument: 'Move argument',
|
|
77
|
+
moveBefore: 'Move before',
|
|
78
|
+
moveAfter: 'Move after',
|
|
79
|
+
moveToStart: 'Move to start',
|
|
80
|
+
moveToEnd: 'Move to end',
|
|
81
|
+
moveToPosition: 'Move to position',
|
|
82
|
+
currentPosition: 'Current position',
|
|
83
|
+
moveToOrdinal: function (position) { return "Move to ".concat(englishOrdinal(position)); },
|
|
84
|
+
moveToThatPosition: 'Move to that position',
|
|
85
|
+
morePositions: 'More',
|
|
86
|
+
dragToReorder: 'Drag to reorder',
|
|
87
|
+
positionTooltip: 'Position — pick a new one to move this argument',
|
|
88
|
+
removeArgument: 'Remove argument',
|
|
89
|
+
removeOperand: function (name) { return "Remove ".concat((name || 'argument').toLowerCase()); },
|
|
90
|
+
addOperand: function (name) { return "Add ".concat((name || 'argument').toLowerCase()); },
|
|
91
|
+
addOperandTooltip: function (name) { return "Add another ".concat((name || 'argument').toLowerCase(), " after the last one"); },
|
|
92
|
+
fillInCurrentValuesFirst: 'Fill in the current values first',
|
|
93
|
+
operandNotOfType: function (accepted) {
|
|
94
|
+
return "This value is not ".concat(accepted, ". Put it inside an expression that converts it");
|
|
95
|
+
},
|
|
96
|
+
operandMayConvert: 'The type fits; Qorus may convert the value',
|
|
97
|
+
operandNeedsType: function (accepted) {
|
|
98
|
+
return accepted ?
|
|
99
|
+
// the sentence starts with them
|
|
100
|
+
"".concat(accepted.charAt(0).toUpperCase()).concat(accepted.slice(1), " is needed here")
|
|
101
|
+
// a place whose types are not known names none
|
|
102
|
+
: 'A value of another type is needed here';
|
|
103
|
+
},
|
|
104
|
+
confirmMismatchedTitle: 'Confirm type selection for mismatched arguments',
|
|
105
|
+
mismatchedExplanation: 'These values have other types than expected. Qorus converts them when it runs.',
|
|
106
|
+
mismatchedInstruction: 'Please deselect the arguments you do not wish to transform:',
|
|
107
|
+
discardAll: 'Discard all',
|
|
108
|
+
acceptAll: 'Accept all',
|
|
109
|
+
confirmSelection: 'Confirm selection',
|
|
110
|
+
clearedNotConverted: 'Cleared, not converted',
|
|
111
|
+
noConversionNeeded: 'No conversion needed',
|
|
112
|
+
converted: function (from, to) { return "Converted".concat(from ? " from ".concat(from) : '').concat(to ? " to ".concat(to) : ''); },
|
|
113
|
+
transformedCount: function (count) {
|
|
114
|
+
return "".concat(count, " ").concat(count === 1 ? 'argument' : 'arguments', " will be transformed.");
|
|
115
|
+
},
|
|
116
|
+
confirmTypeTitle: 'Confirm type selection',
|
|
117
|
+
needsOneOfTypes: 'This value needs one of these types:',
|
|
118
|
+
useTypeAnyway: 'Use this type anyway?',
|
|
119
|
+
dontShowAgain: "Don't show again",
|
|
120
|
+
cancel: 'Cancel',
|
|
121
|
+
confirm: 'Confirm',
|
|
122
|
+
};
|
|
123
|
+
//# sourceMappingURL=labels.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"labels.js","sourceRoot":"","sources":["../../../../src/components/form/expressions/labels.ts"],"names":[],"mappings":";AAAA,2CAA2C;;;AAU3C,sEAAsE;AACtE,IAAM,cAAc,GAAG,UAAC,CAAS;;IAC/B,IAAM,MAAM,GAAG,CAAC,GAAG,GAAG,CAAC;IACvB,IAAI,MAAM,IAAI,EAAE,IAAI,MAAM,IAAI,EAAE,EAAE,CAAC;QACjC,OAAO,UAAG,CAAC,OAAI,CAAC;IAClB,CAAC;IACD,OAAO,UAAG,CAAC,SAAG,MAAC,EAAE,CAAC,EAAE,IAAI,EAAE,CAAC,EAAE,IAAI,EAAE,CA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AC,CAAC,cAAO,EAAE,CAAE,CAAC,CAAC,CAAC,EAAE,CAAE,EAAjE,CAAiE;IAC1F,gBAAgB,EAAE,UAAC,KAAK;QACtB,OAAA,UAAG,KAAK,cAAI,KAAK,KAAK,CAAC,CAAC,CAAC,CAAC,UAAU,CAAC,CAAC,CAAC,WAAW,0BAAuB;IAAzE,CAAyE;IAC3E,gBAAgB,EAAE,wBAAwB;IAC1C,eAAe,EAAE,sCAAsC;IACvD,aAAa,EAAE,uBAAuB;IACtC,aAAa,EAAE,kBAAkB;IACjC,MAAM,EAAE,QAAQ;IAChB,OAAO,EAAE,SAAS;CACnB,CAAC"}
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
* Qore's DPQL parser wraps a lone template in (DP_EXPR_TEMPLATE) - and evaluates it as it evaluates `value(...)`,
|
|
4
4
|
* the wrapper of any other lone value; it writes both back as the reference (`@pos`). An author never wrote an
|
|
5
5
|
* operation: shown as one, it read "template(record: order_id)", and the Visual view looked it up as an
|
|
6
|
-
* operation and said "Qorus has no operation template."
|
|
6
|
+
* operation and said "Qorus has no operation template." So a lone `template` is
|
|
7
7
|
* shown, rendered and checked as the lone value it is.
|
|
8
8
|
*/
|
|
9
9
|
export declare const LONE_VALUE_OPERATIONS: string[];
|
|
@@ -18,7 +18,7 @@ exports.asLoneValue = exports.isLoneValueOperation = exports.LONE_VALUE_OPERATIO
|
|
|
18
18
|
* Qore's DPQL parser wraps a lone template in (DP_EXPR_TEMPLATE) - and evaluates it as it evaluates `value(...)`,
|
|
19
19
|
* the wrapper of any other lone value; it writes both back as the reference (`@pos`). An author never wrote an
|
|
20
20
|
* operation: shown as one, it read "template(record: order_id)", and the Visual view looked it up as an
|
|
21
|
-
* operation and said "Qorus has no operation template."
|
|
21
|
+
* operation and said "Qorus has no operation template." So a lone `template` is
|
|
22
22
|
* shown, rendered and checked as the lone value it is.
|
|
23
23
|
*/
|
|
24
24
|
exports.LONE_VALUE_OPERATIONS = ['value', 'template'];
|
|
@@ -96,7 +96,7 @@ exports.mockExpressions = [
|
|
|
96
96
|
varargs: true,
|
|
97
97
|
min_args: 1,
|
|
98
98
|
groups: ['Logic'],
|
|
99
|
-
// any value: each part is read as a condition is, not required to be a bool
|
|
99
|
+
// any value: each part is read as a condition is, not required to be a bool
|
|
100
100
|
args: [{ name: 'any', display_name: 'Value', ui_type: 'any', required: true }],
|
|
101
101
|
},
|
|
102
102
|
{
|
|
@@ -112,7 +112,7 @@ exports.mockExpressions = [
|
|
|
112
112
|
varargs: true,
|
|
113
113
|
min_args: 1,
|
|
114
114
|
groups: ['Logic'],
|
|
115
|
-
// any value: each part is read as a condition is, not required to be a bool
|
|
115
|
+
// any value: each part is read as a condition is, not required to be a bool
|
|
116
116
|
args: [{ name: 'any', display_name: 'Value', ui_type: 'any', required: true }],
|
|
117
117
|
},
|
|
118
118
|
{
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"mockExpressions.js","sourceRoot":"","sources":["../../../../src/components/form/expressions/mockExpressions.ts"],"names":[],"mappings":";;;AAQA,sEAAsE;AACtE,gFAAgF;AAChF,IAAM,UAAU,GAAG,UAAC,YAAoB,EAAE,YAAoB,IAAgC,OAAA;IAC5F;QACE,IAAI,EAAE,YAAY;QAClB,YAAY,EAAE,cAAc;QAC5B,OAAO,EAAE,UAAU;QACnB,QAAQ,EAAE,IAAI;QACd,WAAW,EAAE,YAAY;KAC1B;IACD,EAAE,IAAI,EAAE,YAAY,EAAE,YAAY,EAAE,YAAY,EAAE,OAAO,EAAE,UAAU,EAAE,QAAQ,EAAE,IAAI,EAAE;IACvF;QACE,IAAI,EAAE,MAAM;QACZ,YAAY,EAAE,cAAc;QAC5B,OAAO,EAAE,MAAM;QACf,QAAQ,EAAE,IAAI;QACd,aAAa,EAAE,IAAI;KACpB;CACF,EAhB6F,CAgB7F,CAAC;AAEF,0EAA0E;AAC1E,IAAM,cAAc,GAAG,UAAC,YAAoB,IAAgC,OAAA;IAC1E,EAAE,IAAI,EAAE,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AAE,MAAM;QACtB,OAAO,EAAE,KAAK;QACd,MAAM,EAAE,CAAC,YAAY,CAAC;QACtB,IAAI,EAAE,cAAc,CAAC,GAAG,CAAC;KAC1B;IACD;QACE,IAAI,EAAE,IAAI;QACV,YAAY,EAAE,+BAA+B;QAC7C,UAAU,EAAE,2EAA2E;QACvF,IAAI,EAAE,8EAA8E;QACpF,MAAM,EAAE,IAAI;QACZ,IAAI,EAAE,CAAC;QACP,OAAO,EAAE,CAAC;QACV,WAAW,EAAE,MAAM;QACnB,cAAc,EAAE,MAAM;QACtB,OAAO,EAAE,KAAK;QACd,MAAM,EAAE,CAAC,YAAY,CAAC;QACtB,IAAI,EAAE,cAAc,CAAC,IAAI,CAAC;KAC3B;IACD;QACE,IAAI,EAAE,IAAI;QACV,YAAY,EAAE,aAAa;QAC3B,UAAU,EAAE,oEAAoE;QAChF,IAAI,EAAE,0OAA0O;QAChP,MAAM,EAAE,IAAI;QACZ,IAAI,EAAE,CAAC;QACP,OAAO,EAAE,CAAC;QACV,WAAW,EAAE,MAAM;QACnB,cAAc,EAAE,MAAM;QACtB,OAAO,EAAE,IAAI;QACb,QAAQ,EAAE,CAAC;QACX,MAAM,EAAE,CAAC,OAAO,CAAC;QACjB,
|
|
1
|
+
{"version":3,"file":"mockExpressions.js","sourceRoot":"","sources":["../../../../src/components/form/expressions/mockExpressions.ts"],"names":[],"mappings":";;;AAQA,sEAAsE;AACtE,gFAAgF;AAChF,IAAM,UAAU,GAAG,UAAC,YAAoB,EAAE,YAAoB,IAAgC,OAAA;IAC5F;QACE,IAAI,EAAE,YAAY;QAClB,YAAY,EAAE,cAAc;QAC5B,OAAO,EAAE,UAAU;QACnB,QAAQ,EAAE,IAAI;QACd,WAAW,EAAE,YAAY;KAC1B;IACD,EAAE,IAAI,EAAE,YAAY,EAAE,YAAY,EAAE,YAAY,EAAE,OAAO,EAAE,UAAU,EAAE,QAAQ,EAAE,IAAI,EAAE;IACvF;QACE,IAAI,EAAE,MAAM;QACZ,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QACrB,cAAc,EAAE,QAAQ;QACxB,OAAO,EAAE,KAAK;QACd,MAAM,EAAE,CAAC,MAAM,CAAC;QAChB,IAAI,EAAE;YACJ,EAAE,IAAI,EAAE,MAAM,EAAE,YAAY,EAAE,gBAAgB,EAAE,OAAO,EAAE,MAAM,EAAE,QAAQ,EAAE,IAAI,EAAE;YACjF,EAAE,IAAI,EAAE,QAAQ,EAAE,YAAY,EAAE,eAAe,EAAE,OAAO,EAAE,UAAU,EAAE,QAAQ,EAAE,IAAI,EAAE;SACvF;KACF;IACD,6DAA6D;IAC7D,6CAA6C;IAC7C;QACE,IAAI,EAAE,eAAe;QACrB,YAAY,EAAE,eAAe;QAC7B,UAAU,EAAE,uDAAuD;QACnE,IAAI,EAAE,sEAAsE;QAC5E,MAAM,EAAE,eAAe;QACvB,IAAI,EAAE,CAAC;QACP,OAAO,EAAE,CAAC;QACV,WAAW,EAAE,QAAQ;QACrB,cAAc,EAAE,QAAQ;QACxB,OAAO,EAAE,KAAK;QACd,MAAM,EAAE,CAAC,QAAQ,CAAC;QAClB,IAAI,EAAE;YACJ,EAAE,IAAI,EAAE,QAAQ,EAAE,YAAY,EAAE,kBAAkB,EAAE,OAAO,EAAE,QAAQ,EAAE,QAAQ,EAAE,IAAI,EAAE;YACvF,EAAE,IAAI,EAAE,QAAQ,EAAE,YAAY,EAAE,eAAe,EAAE,OAAO,EAAE,UAAU,EAAE,QAAQ,EAAE,IAAI,EAAE;SACvF;KACF;CACF,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"renderExpressionToText.d.ts","sourceRoot":"","sources":["../../../../src/components/form/expressions/renderExpressionToText.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"renderExpressionToText.d.ts","sourceRoot":"","sources":["../../../../src/components/form/expressions/renderExpressionToText.ts"],"names":[],"mappings":"AAUA,OAAO,EAAe,iBAAiB,EAAE,gBAAgB,EAAE,MAAM,SAAS,CAAC;AAE3E,2FAA2F;AAC3F,eAAO,MAAM,eAAe,WAAM,CAAC;AAmKnC;;;GAGG;AACH,eAAO,MAAM,sBAAsB,UAC1B,gBAAgB,GAAG,SAAS,gBACtB,iBAAiB,EAAE,KAC/B,MAA2D,CAAC"}
|
|
@@ -7,6 +7,7 @@ exports.renderExpressionToText = exports.EXPRESSION_HOLE = void 0;
|
|
|
7
7
|
// can wait uses it: Explain and the Text view's Preview wait for the server's
|
|
8
8
|
// `dpql/renderExpression` (see `useRenderExpression`). Pure: no
|
|
9
9
|
// transport/socket import, so it stays out of the LSP/nanoid dependency graph.
|
|
10
|
+
var common_1 = require("../../../helpers/common");
|
|
10
11
|
var expressionOperands_1 = require("./expressionOperands");
|
|
11
12
|
var fieldPath_1 = require("./fieldPath");
|
|
12
13
|
var loneValue_1 = require("./loneValue");
|
|
@@ -78,9 +79,23 @@ var readArgValue = function (arg) {
|
|
|
78
79
|
? arg.value
|
|
79
80
|
: arg;
|
|
80
81
|
};
|
|
82
|
+
/** A rich-text value: the editor's document, a list of element nodes with children. */
|
|
83
|
+
var isRichTextDocument = function (value) {
|
|
84
|
+
return Array.isArray(value) &&
|
|
85
|
+
value.length > 0 &&
|
|
86
|
+
value.every(function (node) {
|
|
87
|
+
return !!node && typeof node === 'object' && Array.isArray(node.children);
|
|
88
|
+
});
|
|
89
|
+
};
|
|
81
90
|
var renderLiteral = function (value) {
|
|
82
91
|
if (value === undefined || value === null)
|
|
83
92
|
return 'null';
|
|
93
|
+
/* Rich text is the string it reads as, its template references written out as `$…`.
|
|
94
|
+
Printed as an object it was the editor's node tree — `+([{"type":"paragraph",
|
|
95
|
+
"children":[…]}], …)` on a Qog's Message Content row — which is no value anyone
|
|
96
|
+
wrote, and not what the server renders either. */
|
|
97
|
+
if (isRichTextDocument(value))
|
|
98
|
+
return JSON.stringify((0, common_1.richtextToString)(value));
|
|
84
99
|
if (typeof value === 'string')
|
|
85
100
|
return JSON.stringify(value);
|
|
86
101
|
if (typeof value === 'object')
|
|
@@ -92,7 +107,7 @@ var renderInContext = function (value, expressions, contextPrec) {
|
|
|
92
107
|
var _a, _b, _c, _d;
|
|
93
108
|
if (!(value === null || value === void 0 ? void 0 : value.exp))
|
|
94
109
|
return '';
|
|
95
|
-
// a field path reads as the path, the reference a record field operand is (fieldPath
|
|
110
|
+
// a field path reads as the path, the reference a record field operand is (fieldPath)
|
|
96
111
|
var path = (0, fieldPath_1.fieldPathOf)(value);
|
|
97
112
|
if (path !== undefined)
|
|
98
113
|
return renderLiteral((0, fieldPath_1.fieldPathTemplate)(path));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"renderExpressionToText.js","sourceRoot":"","sources":["../../../../src/components/form/expressions/renderExpressionToText.ts"],"names":[],"mappings":";;;AAAA,2CAA2C;AAC3C,8EAA8E;AAC9E,8EAA8E;AAC9E,8EAA8E;AAC9E,gEAAgE;AAChE,+EAA+E;AAC/E,2DAAyD;AACzD,yCAA6D;AAC7D,yCAAmD;AAGnD,2FAA2F;AAC9E,QAAA,eAAe,GAAG,GAAG,CAAC;AAEnC,0EAA0E;AAC1E,IAAM,gBAAgB,GAAG,UAAC,MAAe;IACvC,OAAA,CAAC,CAAC,MAAM,IAAI,YAAY,CAAC,IAAI,CAAC,MAAM,CAAC;AAArC,CAAqC,CAAC;AAExC;;;;;;;;;GASG;AACH,IAAM,UAAU,GAA2B;IACzC,GAAG,EAAE,CAAC;IACN,GAAG,EAAE,CAAC;IACN,GAAG,EAAE,CAAC;IACN,GAAG,EAAE,CAAC;IACN,GAAG,EAAE,CAAC;IACN,GAAG,EAAE,CAAC;IACN,IAAI,EAAE,CAAC;IACP,IAAI,EAAE,CAAC;IACP,GAAG,EAAE,CAAC;IACN,IAAI,EAAE,CAAC;IACP,GAAG,EAAE,CAAC;IACN,IAAI,EAAE,CAAC;IACP,IAAI,EAAE,CAAC;IACP,IAAI,EAAE,CAAC;CACR,CAAC;AAEF,+DAA+D;AAC/D,IAAM,YAAY,GAAG,CAAC,CAAC;AACvB,8EAA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C;AAEF,+EAA+E;AAC/E,IAAM,eAAe,GAAG,UACtB,KAAmC,EACnC,WAAgC,EAChC,WAAmB;;IAEnB,IAAI,CAAC,CAAA,KAAK,aAAL,KAAK,uBAAL,KAAK,CAAE,GAAG,CAAA;QAAE,OAAO,EAAE,CAAC;IAC3B,
|
|
1
|
+
{"version":3,"file":"renderExpressionToText.js","sourceRoot":"","sources":["../../../../src/components/form/expressions/renderExpressionToText.ts"],"names":[],"mappings":";;;AAAA,2CAA2C;AAC3C,8EAA8E;AAC9E,8EAA8E;AAC9E,8EAA8E;AAC9E,gEAAgE;AAChE,+EAA+E;AAC/E,kDAA2D;AAC3D,2DAAyD;AACzD,yCAA6D;AAC7D,yCAAmD;AAGnD,2FAA2F;AAC9E,QAAA,eAAe,GAAG,GAAG,CAAC;AAEnC,0EAA0E;AAC1E,IAAM,gBAAgB,GAAG,UAAC,MAAe;IACvC,OAAA,CAAC,CAAC,MAAM,IAAI,YAAY,CAAC,IAAI,CAAC,MAAM,CAAC;AAArC,CAAqC,CAAC;AAExC;;;;;;;;;GASG;AACH,IAAM,UAAU,GAA2B;IACzC,GAAG,EAAE,CAAC;IACN,GAAG,EAAE,CAAC;IACN,GAAG,EAAE,CAAC;IACN,GAAG,EAAE,CAAC;IACN,GAAG,EAAE,CAAC;IACN,GAAG,EAAE,CAAC;IACN,IAAI,EAAE,CAAC;IACP,IAAI,EAAE,CAAC;IACP,GAAG,EAAE,CAAC;IACN,IAAI,EAAE,CAAC;IACP,GAAG,EAAE,CAAC;IACN,IAAI,EAAE,CAAC;IACP,IAAI,EAAE,CAAC;IACP,IAAI,EAAE,CAAC;CACR,CAAC;AAEF,+DAA+D;AAC/D,IAAM,YAAY,GAAG,CAAC,CAAC;AACvB,8EAA8E;AAC9E,IAAM,YAAY,GAAG,CAAC,CAAC;AAEvB;;;;;;GAMG;AACH,IAAM,WAAW,GAAG,IAAI,GAAG,CAAC,CAAC,IAAI,EAAE,IAAI,CAAC,CAAC,CAAC;AAE1C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AAG,EAAE,CAAC;YACnD,OAAO,eAAe,CACpB,GAAuB,EACvB,WAAW,EACX,OAAO,CAAC,CAAC,CAAC,eAAe,CAAC,KAAK,CAAC,GAAa,EAAE,IAAI,CAAC,CAAC,CAAC,CAAC,YAAY,CACpE,CAAC;QACJ,CAAC;QACD,OAAO,aAAa,CAAC,GAAG,IAAI,OAAO,GAAG,KAAK,QAAQ,IAAI,OAAO,IAAI,GAAG,CAAC,CAAC,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC;IAC3F,CAAC,CAAC,CAAC;IAEH,IAAI,CAAC,OAAO,EAAE,CAAC;QACb,OAAO,UAAG,MAAM,cAAI,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,MAAG,CAAC;IAC1C,CAAC;IAED,IAAM,IAAI,GAAG,KAAK,CAAC,IAAI,CAAC,WAAI,MAAM,MAAG,CAAC,CAAC;IACvC,OAAO,YAAY,CAAC,KAAK,CAAC,GAAG,CAAC,GAAG,WAAW,CAAC,CAAC,CAAC,WAAI,IAAI,MAAG,CAAC,CAAC,CAAC,IAAI,CAAC;AACpE,CAAC,CAAC;AAEF;;;GAGG;AACI,IAAM,sBAAsB,GAAG,UACpC,KAAmC,EACnC,WAAqC;IAArC,4BAAA,EAAA,gBAAqC;IAC1B,OAAA,eAAe,CAAC,KAAK,EAAE,WAAW,EAAE,YAAY,CAAC;AAAjD,CAAiD,CAAC;AAHlD,QAAA,sBAAsB,0BAG4B"}
|
|
@@ -92,7 +92,7 @@ export interface IExpressionSchema {
|
|
|
92
92
|
return_type_arg_priority?: string[];
|
|
93
93
|
/**
|
|
94
94
|
* Never offered for picking: the operation is drawn only inside the construct that makes it - `wildcard_item`,
|
|
95
|
-
* the item of a `[*]` wildcard, which DPQL does not write
|
|
95
|
+
* the item of a `[*]` wildcard, which DPQL does not write. The operation pickers leave it out.
|
|
96
96
|
*/
|
|
97
97
|
internal?: boolean;
|
|
98
98
|
}
|
|
@@ -101,7 +101,7 @@ export declare const isOfferedForPicking: (schema: Pick<IExpressionSchema, 'inte
|
|
|
101
101
|
/** Where a varargs expression offers operand reordering. */
|
|
102
102
|
export type TExpressionReorderSurface = 'overflowMenu' | 'dragHandle' | 'positionPicker';
|
|
103
103
|
/**
|
|
104
|
-
* `true` (the default) renders the drag grip together with the "Move
|
|
104
|
+
* `true` (the default) renders the drag grip together with the "Move argument"
|
|
105
105
|
* section in the field's `⋮` menu; `false` turns reordering off; a list
|
|
106
106
|
* renders exactly those surfaces.
|
|
107
107
|
*/
|
|
@@ -51,7 +51,7 @@ exports.useExpressionType = exports._resetExpressionTypeTransportForTests = expo
|
|
|
51
51
|
// Copyright 2026 Qore Technologies, s.r.o.
|
|
52
52
|
// The type an expression gives, as the server works it out.
|
|
53
53
|
//
|
|
54
|
-
// An expression has one type everywhere in Qorus
|
|
54
|
+
// An expression has one type everywhere in Qorus:
|
|
55
55
|
// the server's expression type rules decide it for DPQL validation, the
|
|
56
56
|
// language server, evaluation and the editors alike. The builder used to work
|
|
57
57
|
// out its own type from the catalogue's `ui_return_type` one level deep, which
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useExpressionType.js","sourceRoot":"","sources":["../../../../src/components/form/expressions/useExpressionType.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,2CAA2C;AAC3C,4DAA4D;AAC5D,EAAE;AACF
|
|
1
|
+
{"version":3,"file":"useExpressionType.js","sourceRoot":"","sources":["../../../../src/components/form/expressions/useExpressionType.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,2CAA2C;AAC3C,4DAA4D;AAC5D,EAAE;AACF,kDAAkD;AAClD,wEAAwE;AACxE,8EAA8E;AAC9E,+EAA+E;AAC/E,gFAAgF;AAChF,8EAA8E;AAC9E,4EAA4E;AAC5E,sCAAsC;AACtC,EAAE;AACF,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AC,CAAC;QAClC,IAAI,MAAM,EAAE,CAAC;YACX,OAAO,CAAC,MAAM,CAAC,CAAC;YAChB,OAAO,SAAS,CAAC;QACnB,CAAC;QACD,wDAAwD;QACxD,OAAO,CAAC,SAAS,CAAC,CAAC;QACnB,IAAI,OAAO,GAAG,IAAI,CAAC;QACnB,IAAM,KAAK,GAAG,UAAU,CAAC;YACvB,KAAK,IAAA,2BAAmB,EAAE,IAAI,CAAC,KAAK,CAAC,GAAG,CAAiC,CAAC,KAAK,CAAC,CAAC,IAAI,CACnF,UAAC,MAAM;gBACL,IAAI,OAAO,EAAE,CAAC;oBACZ,OAAO,CAAC,MAAM,aAAN,MAAM,cAAN,MAAM,GAAI,SAAS,CAAC,CAAC;gBAC/B,CAAC;YACH,CAAC,CACF,CAAC;QACJ,CAAC,EAAE,gBAAgB,CAAC,CAAC;QACrB,OAAO;YACL,OAAO,GAAG,KAAK,CAAC;YAChB,YAAY,CAAC,KAAK,CAAC,CAAC;QACtB,CAAC,CAAC;IACJ,CAAC,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC;IAEV,OAAO,IAAI,CAAC;AACd,CAAC,CAAC;AArCW,QAAA,iBAAiB,qBAqC5B"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
/**
|
|
3
|
+
* The heading over a small group of choices (the checkboxes a field with three
|
|
4
|
+
* or fewer allowed values renders) — the field's own name, or "Select one:"
|
|
5
|
+
* when it has none.
|
|
6
|
+
*
|
|
7
|
+
* Not drawn under a form row's label (`RowLabelledContext`), which already names the
|
|
8
|
+
* field. One component so both choice editors head their groups the same way, in
|
|
9
|
+
* either appearance: an upper-case micro label by default; in the calm look the
|
|
10
|
+
* words as written, at the small text size, because nothing in a calm form is
|
|
11
|
+
* forced into capitals.
|
|
12
|
+
*/
|
|
13
|
+
export declare const ChoiceGroupHeading: import("react").MemoExoticComponent<({ children }: {
|
|
14
|
+
children: React.ReactNode;
|
|
15
|
+
}) => import("react/jsx-runtime").JSX.Element>;
|
|
16
|
+
/**
|
|
17
|
+
* The intent a picked choice in those groups takes. Blue by default; none in
|
|
18
|
+
* the calm look, where blue says only "a filter is on" and the checked mark
|
|
19
|
+
* already says which choice is picked.
|
|
20
|
+
*/
|
|
21
|
+
export declare const useSelectedChoiceIntent: () => ((selected: boolean) => 'info' | undefined);
|
|
22
|
+
//# sourceMappingURL=ChoiceGroupHeading.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ChoiceGroupHeading.d.ts","sourceRoot":"","sources":["../../../../src/components/form/fields/ChoiceGroupHeading.tsx"],"names":[],"mappings":";AAKA;;;;;;;;;;GAUG;AACH,eAAO,MAAM,kBAAkB,qDAAuB;IAAE,QAAQ,EAAE,MAAM,SAAS,CAAA;CAAE,6CAkBjF,CAAC;AAEH;;;;GAIG;AACH,eAAO,MAAM,uBAAuB,QAAO,CAAC,CAAC,QAAQ,EAAE,OAAO,KAAK,MAAM,GAAG,SAAS,CAIpF,CAAC"}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.useSelectedChoiceIntent = exports.ChoiceGroupHeading = void 0;
|
|
4
|
+
var jsx_runtime_1 = require("react/jsx-runtime");
|
|
5
|
+
var reqore_1 = require("@qoretechnologies/reqore");
|
|
6
|
+
var react_1 = require("react");
|
|
7
|
+
var formAppearance_1 = require("../engine/formAppearance");
|
|
8
|
+
var rowLabelled_1 = require("../engine/rowLabelled");
|
|
9
|
+
/**
|
|
10
|
+
* The heading over a small group of choices (the checkboxes a field with three
|
|
11
|
+
* or fewer allowed values renders) — the field's own name, or "Select one:"
|
|
12
|
+
* when it has none.
|
|
13
|
+
*
|
|
14
|
+
* Not drawn under a form row's label (`RowLabelledContext`), which already names the
|
|
15
|
+
* field. One component so both choice editors head their groups the same way, in
|
|
16
|
+
* either appearance: an upper-case micro label by default; in the calm look the
|
|
17
|
+
* words as written, at the small text size, because nothing in a calm form is
|
|
18
|
+
* forced into capitals.
|
|
19
|
+
*/
|
|
20
|
+
exports.ChoiceGroupHeading = (0, react_1.memo)(function (_a) {
|
|
21
|
+
var children = _a.children;
|
|
22
|
+
var calm = (0, formAppearance_1.useIsCalmForm)();
|
|
23
|
+
// Under a form row's label the heading only repeats it ("Language" over "Language:").
|
|
24
|
+
var underRowLabel = (0, react_1.useContext)(rowLabelled_1.RowLabelledContext);
|
|
25
|
+
if (underRowLabel) {
|
|
26
|
+
return null;
|
|
27
|
+
}
|
|
28
|
+
return ((0, jsx_runtime_1.jsx)(reqore_1.ReqoreSpan, { className: 'reqraft-choice-group-heading', effect: calm ? { opacity: 0.7, weight: 'bold' } : { opacity: 0.6, uppercase: true, weight: 'bold' }, size: calm ? 'small' : 'tiny', children: children }));
|
|
29
|
+
});
|
|
30
|
+
/**
|
|
31
|
+
* The intent a picked choice in those groups takes. Blue by default; none in
|
|
32
|
+
* the calm look, where blue says only "a filter is on" and the checked mark
|
|
33
|
+
* already says which choice is picked.
|
|
34
|
+
*/
|
|
35
|
+
var useSelectedChoiceIntent = function () {
|
|
36
|
+
var calm = (0, formAppearance_1.useIsCalmForm)();
|
|
37
|
+
return function (selected) { return (selected && !calm ? 'info' : undefined); };
|
|
38
|
+
};
|
|
39
|
+
exports.useSelectedChoiceIntent = useSelectedChoiceIntent;
|
|
40
|
+
//# sourceMappingURL=ChoiceGroupHeading.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ChoiceGroupHeading.js","sourceRoot":"","sources":["../../../../src/components/form/fields/ChoiceGroupHeading.tsx"],"names":[],"mappings":";;;;AAAA,mDAAsD;AACtD,+BAAyC;AACzC,2DAAyD;AACzD,qDAA2D;AAE3D;;;;;;;;;;GAUG;AACU,QAAA,kBAAkB,GAAG,IAAA,YAAI,EAAC,UAAC,EAA2C;QAAzC,QAAQ,cAAA;IAChD,IAAM,IAAI,GAAG,IAAA,8BAAa,GAAE,CAAC;IAC7B,sFAAsF;IACtF,IAAM,aAAa,GAAG,IAAA,kBAAU,EAAC,gCAAkB,CAAC,CAAC;IAErD,IAAI,aAAa,EAAE,CAAC;QAClB,OAAO,IAAI,CAAC;IACd,CAAC;IAED,OAAO,CACL,uBAAC,mBAAU,IACT,SAAS,EAAC,8BAA8B,EACxC,MAAM,EAAE,IAAI,CAAC,CAAC,CAAC,EAAE,OAAO,EAAE,GAAG,EAAE,MAAM,EAAE,MAAM,EAAE,CAAC,CAAC,CAAC,EAAE,OAAO,EAAE,GAAG,EAAE,SAAS,EAAE,IAAI,EAAE,MAAM,EAAE,MAAM,EAAE,EACnG,IAAI,EAAE,IAAI,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,MAAM,YAE5B,QAAQ,GACE,CACd,CAAC;AACJ,CAAC,CAAC,CAAC;AAEH;;;;GAIG;AACI,IAAM,uBAAuB,GAAG;IACrC,IAAM,IAAI,GAAG,IAAA,8BAAa,GAAE,CAAC;IAE7B,OAAO,UAAC,QAAQ,IAAK,OAAA,CAAC,QAAQ,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,SAAS,CAAC,EAAxC,CAAwC,CAAC;AAChE,CAAC,CAAC;AAJW,QAAA,uBAAuB,2BAIlC"}
|
|
@@ -2,7 +2,7 @@ import { IReqoreLabelProps } from '@qoretechnologies/reqore';
|
|
|
2
2
|
import { IWithReqoreSize } from '@qoretechnologies/reqore/dist/types/global';
|
|
3
3
|
import { IQorusAllowedValue, IQorusFormFieldSchemaBase, IQorusFormSchema } from '@qoretechnologies/ts-toolkit';
|
|
4
4
|
import { TFormFieldType, TFormFieldValueType } from '../../../types/Form';
|
|
5
|
-
import { ISelectFieldCollectionItemAction, TSelectFieldCollectionItemTooltip } from './select/SelectCollection';
|
|
5
|
+
import { ISelectFieldCollectionItemAction, TSelectFieldCollectionGroups, TSelectFieldCollectionItemTooltip } from './select/SelectCollection';
|
|
6
6
|
export type { IQorusAllowedValue };
|
|
7
7
|
/**
|
|
8
8
|
* An allowed value, with the keys reqraft's pickers read.
|
|
@@ -23,6 +23,11 @@ export interface IReqraftAllowedValue extends IQorusAllowedValue {
|
|
|
23
23
|
tooltip?: TSelectFieldCollectionItemTooltip;
|
|
24
24
|
/** Affordances inline with the value's name, where the row already has the height. */
|
|
25
25
|
title_actions?: ISelectFieldCollectionItemAction[];
|
|
26
|
+
/**
|
|
27
|
+
* The groups the value is listed in, by name, in the full list of choices; how each is drawn is the field's
|
|
28
|
+
* `allowed_values_groups`.
|
|
29
|
+
*/
|
|
30
|
+
groups?: string[];
|
|
26
31
|
}
|
|
27
32
|
export interface IFormFieldProps<T extends TFormFieldType = TFormFieldType> extends Omit<IQorusFormFieldSchemaBase, 'value' | 'default_value' | 'arg_schema' | 'element_type' | 'ui_element_type'>, IWithReqoreSize {
|
|
28
33
|
type?: T;
|
|
@@ -37,6 +42,8 @@ export interface IFormFieldProps<T extends TFormFieldType = TFormFieldType> exte
|
|
|
37
42
|
/** For list fields: the type of each element */
|
|
38
43
|
element_type?: string;
|
|
39
44
|
ui_element_type?: string;
|
|
45
|
+
/** How the groups the allowed values are listed in are drawn — see `ISelectFieldCollectionGroup`. */
|
|
46
|
+
allowed_values_groups?: TSelectFieldCollectionGroups;
|
|
40
47
|
/** Fixed allowed values for list items */
|
|
41
48
|
element_allowed_values?: IQorusAllowedValue[];
|
|
42
49
|
element_allowed_values_creatable?: boolean;
|
|
@@ -44,5 +51,5 @@ export interface IFormFieldProps<T extends TFormFieldType = TFormFieldType> exte
|
|
|
44
51
|
label?: IReqoreLabelProps['label'];
|
|
45
52
|
labelPosition?: 'top' | 'left' | 'right' | 'bottom';
|
|
46
53
|
}
|
|
47
|
-
export declare const FormField: <T extends TFormFieldType>({ type, onChange, value, fieldProps, label, labelPosition, allowed_values, allowed_values_creatable, arg_schema, element_type, ui_element_type, element_allowed_values, element_allowed_values_creatable, name, display_name, readonly, size: fieldSize, tags, options, ...rest }: IFormFieldProps<T>) => import("react/jsx-runtime").JSX.Element;
|
|
54
|
+
export declare const FormField: <T extends TFormFieldType>({ type, onChange, value, fieldProps, label, labelPosition, allowed_values, allowed_values_creatable, allowed_values_groups, arg_schema, element_type, ui_element_type, element_allowed_values, element_allowed_values_creatable, name, display_name, readonly, size: fieldSize, tags, options, ...rest }: IFormFieldProps<T>) => import("react/jsx-runtime").JSX.Element;
|
|
48
55
|
//# sourceMappingURL=Field.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Field.d.ts","sourceRoot":"","sources":["../../../../src/components/form/fields/Field.tsx"],"names":[],"mappings":"AAEA,OAAO,EACL,iBAAiB,
|
|
1
|
+
{"version":3,"file":"Field.d.ts","sourceRoot":"","sources":["../../../../src/components/form/fields/Field.tsx"],"names":[],"mappings":"AAEA,OAAO,EACL,iBAAiB,EAGlB,MAAM,0BAA0B,CAAC;AAElC,OAAO,EAAE,eAAe,EAAE,MAAM,4CAA4C,CAAC;AAE7E,OAAO,EAAE,kBAAkB,EAAE,yBAAyB,EAAE,gBAAgB,EAAE,MAAM,8BAA8B,CAAC;AAQ/G,OAAO,EAAE,cAAc,EAAE,mBAAmB,EAAE,MAAM,qBAAqB,CAAC;AAc1E,OAAO,EAIL,gCAAgC,EAChC,4BAA4B,EAC5B,iCAAiC,EAElC,MAAM,2BAA2B,CAAC;AA4CnC,YAAY,EAAE,kBAAkB,EAAE,CAAC;AAEnC;;;;;;;;;;;GAWG;AACH,MAAM,WAAW,oBAAqB,SAAQ,kBAAkB;IAC9D,qFAAqF;IACrF,UAAU,CAAC,EAAE,CAAC,MAAM,GAAG,MAAM,EAAE,CAAC,EAAE,CAAC;IACnC,wDAAwD;IACxD,OAAO,CAAC,EAAE,iCAAiC,CAAC;IAC5C,sFAAsF;IACtF,aAAa,CAAC,EAAE,gCAAgC,EAAE,CAAC;IACnD;;;OAGG;IACH,MAAM,CAAC,EAAE,MAAM,EAAE,CAAC;CACnB;AA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