@qoretechnologies/reqraft 0.10.66-pr.145.gcb1e59d → 0.10.66
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/README.md +53 -1
- package/dist/components/Description/AllowedValuesHelp.d.ts +20 -0
- package/dist/components/Description/AllowedValuesHelp.d.ts.map +1 -0
- package/dist/components/Description/AllowedValuesHelp.js +86 -0
- package/dist/components/Description/AllowedValuesHelp.js.map +1 -0
- package/dist/components/Description/describedControl.d.ts +54 -0
- package/dist/components/Description/describedControl.d.ts.map +1 -0
- package/dist/components/Description/describedControl.js +81 -0
- package/dist/components/Description/describedControl.js.map +1 -0
- package/dist/components/Description/index.d.ts.map +1 -1
- package/dist/components/Description/index.js +3 -2
- package/dist/components/Description/index.js.map +1 -1
- package/dist/components/colorValue/colorValue.d.ts +59 -0
- package/dist/components/colorValue/colorValue.d.ts.map +1 -0
- package/dist/components/colorValue/colorValue.js +245 -0
- package/dist/components/colorValue/colorValue.js.map +1 -0
- package/dist/components/colorValue/index.d.ts +34 -0
- package/dist/components/colorValue/index.d.ts.map +1 -0
- package/dist/components/colorValue/index.js +136 -0
- package/dist/components/colorValue/index.js.map +1 -0
- package/dist/components/colorValue/labels.d.ts +12 -0
- package/dist/components/colorValue/labels.d.ts.map +1 -0
- package/dist/components/colorValue/labels.js +11 -0
- package/dist/components/colorValue/labels.js.map +1 -0
- package/dist/components/composer/Composer.d.ts +1 -1
- package/dist/components/composer/Composer.d.ts.map +1 -1
- package/dist/components/composer/Composer.js +2 -2
- package/dist/components/composer/Composer.js.map +1 -1
- package/dist/components/dpqlEditor/DpqlEditor.d.ts.map +1 -1
- package/dist/components/dpqlEditor/DpqlEditor.js +156 -10
- package/dist/components/dpqlEditor/DpqlEditor.js.map +1 -1
- package/dist/components/dpqlEditor/dpqlCompletions.d.ts +39 -0
- package/dist/components/dpqlEditor/dpqlCompletions.d.ts.map +1 -0
- package/dist/components/dpqlEditor/dpqlCompletions.js +294 -0
- package/dist/components/dpqlEditor/dpqlCompletions.js.map +1 -0
- package/dist/components/dpqlEditor/dpqlHelpers.d.ts +54 -5
- package/dist/components/dpqlEditor/dpqlHelpers.d.ts.map +1 -1
- package/dist/components/dpqlEditor/dpqlHelpers.js +420 -63
- 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 +67 -29
- package/dist/components/dpqlEditor/dpqlInserter.js.map +1 -1
- package/dist/components/dpqlEditor/dpqlTags.d.ts +17 -7
- package/dist/components/dpqlEditor/dpqlTags.d.ts.map +1 -1
- package/dist/components/dpqlEditor/dpqlTags.js +44 -17
- package/dist/components/dpqlEditor/dpqlTags.js.map +1 -1
- package/dist/components/dpqlEditor/types.d.ts +94 -8
- package/dist/components/dpqlEditor/types.d.ts.map +1 -1
- package/dist/components/dpqlEditor/useDpqlSession.d.ts +7 -2
- package/dist/components/dpqlEditor/useDpqlSession.d.ts.map +1 -1
- package/dist/components/dpqlEditor/useDpqlSession.js +49 -17
- 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 +336 -243
- 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 +20 -57
- package/dist/components/form/engine/CompactToolbar.js.map +1 -1
- package/dist/components/form/engine/FormEngine.d.ts +67 -59
- package/dist/components/form/engine/FormEngine.d.ts.map +1 -1
- package/dist/components/form/engine/FormEngine.js +606 -409
- package/dist/components/form/engine/FormEngine.js.map +1 -1
- package/dist/components/form/engine/HiddenFieldsNote.d.ts +28 -0
- package/dist/components/form/engine/HiddenFieldsNote.d.ts.map +1 -0
- package/dist/components/form/engine/HiddenFieldsNote.js +32 -0
- package/dist/components/form/engine/HiddenFieldsNote.js.map +1 -0
- package/dist/components/form/engine/OptionFieldMessages.d.ts +2 -18
- package/dist/components/form/engine/OptionFieldMessages.d.ts.map +1 -1
- package/dist/components/form/engine/OptionFieldMessages.js +28 -25
- package/dist/components/form/engine/OptionFieldMessages.js.map +1 -1
- package/dist/components/form/engine/OptionsHelpDialog.d.ts.map +1 -1
- package/dist/components/form/engine/OptionsHelpDialog.js +19 -2
- package/dist/components/form/engine/OptionsHelpDialog.js.map +1 -1
- package/dist/components/form/engine/_structuredData/SchemaDataView.d.ts +2 -2
- package/dist/components/form/engine/_structuredData/SchemaDataView.d.ts.map +1 -1
- package/dist/components/form/engine/_structuredData/SchemaDataView.js +11 -31
- package/dist/components/form/engine/_structuredData/SchemaDataView.js.map +1 -1
- package/dist/components/form/engine/compactRowContext.d.ts +30 -6
- 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 +56 -31
- package/dist/components/form/engine/compactRowStyles.d.ts.map +1 -1
- package/dist/components/form/engine/compactRowStyles.js +121 -110
- package/dist/components/form/engine/compactRowStyles.js.map +1 -1
- package/dist/components/form/engine/compactToolbarColors.d.ts +16 -0
- package/dist/components/form/engine/compactToolbarColors.d.ts.map +1 -0
- package/dist/components/form/engine/compactToolbarColors.js +21 -0
- package/dist/components/form/engine/compactToolbarColors.js.map +1 -0
- package/dist/components/form/engine/compactToolbarContext.d.ts +0 -3
- 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/inheritProps.d.ts +29 -0
- package/dist/components/form/engine/inheritProps.d.ts.map +1 -0
- package/dist/components/form/engine/inheritProps.js +43 -0
- package/dist/components/form/engine/inheritProps.js.map +1 -0
- package/dist/components/form/engine/operatorSummary.d.ts +26 -0
- package/dist/components/form/engine/operatorSummary.d.ts.map +1 -0
- package/dist/components/form/engine/operatorSummary.js +35 -0
- package/dist/components/form/engine/operatorSummary.js.map +1 -0
- package/dist/components/form/engine/readFirst.d.ts +26 -22
- package/dist/components/form/engine/readFirst.d.ts.map +1 -1
- package/dist/components/form/engine/readFirst.js +79 -115
- package/dist/components/form/engine/readFirst.js.map +1 -1
- package/dist/components/form/engine/readFirstColors.d.ts +30 -0
- package/dist/components/form/engine/readFirstColors.d.ts.map +1 -0
- package/dist/components/form/engine/readFirstColors.js +51 -0
- package/dist/components/form/engine/readFirstColors.js.map +1 -0
- package/dist/components/form/engine/rowFocus.d.ts +3 -9
- package/dist/components/form/engine/rowFocus.d.ts.map +1 -1
- package/dist/components/form/engine/rowFocus.js +30 -19
- package/dist/components/form/engine/rowFocus.js.map +1 -1
- package/dist/components/form/engine/typeChoices.d.ts +1 -1
- package/dist/components/form/engine/variants/VariantCalmTable.d.ts.map +1 -1
- package/dist/components/form/engine/variants/VariantCalmTable.js +2 -1
- package/dist/components/form/engine/variants/VariantCalmTable.js.map +1 -1
- package/dist/components/form/engine/variants/VariantCards.d.ts.map +1 -1
- package/dist/components/form/engine/variants/VariantCards.js +2 -1
- package/dist/components/form/engine/variants/VariantCards.js.map +1 -1
- package/dist/components/form/engine/variants/VariantFocus.js +1 -1
- package/dist/components/form/engine/variants/VariantFocus.js.map +1 -1
- package/dist/components/form/engine/variants/VariantMinimal.d.ts.map +1 -1
- package/dist/components/form/engine/variants/VariantMinimal.js +2 -1
- package/dist/components/form/engine/variants/VariantMinimal.js.map +1 -1
- package/dist/components/form/engine/variants/variantParts.d.ts +1 -1
- package/dist/components/form/engine/variants/variantParts.d.ts.map +1 -1
- package/dist/components/form/engine/variants/variantParts.js +25 -17
- package/dist/components/form/engine/variants/variantParts.js.map +1 -1
- package/dist/components/form/expressions/DpqlRendering.d.ts +1 -1
- package/dist/components/form/expressions/DpqlRendering.d.ts.map +1 -1
- package/dist/components/form/expressions/DpqlRendering.js +7 -6
- package/dist/components/form/expressions/DpqlRendering.js.map +1 -1
- package/dist/components/form/expressions/ExpressionField.d.ts +67 -3
- package/dist/components/form/expressions/ExpressionField.d.ts.map +1 -1
- package/dist/components/form/expressions/ExpressionField.js +536 -114
- package/dist/components/form/expressions/ExpressionField.js.map +1 -1
- package/dist/components/form/expressions/argumentPresence.d.ts +14 -0
- package/dist/components/form/expressions/argumentPresence.d.ts.map +1 -1
- package/dist/components/form/expressions/argumentPresence.js +16 -1
- package/dist/components/form/expressions/argumentPresence.js.map +1 -1
- package/dist/components/form/expressions/builder/argumentDetail.d.ts.map +1 -1
- package/dist/components/form/expressions/builder/argumentDetail.js +4 -1
- package/dist/components/form/expressions/builder/argumentDetail.js.map +1 -1
- package/dist/components/form/expressions/builder/argumentLabel.d.ts.map +1 -1
- package/dist/components/form/expressions/builder/argumentLabel.js +30 -11
- package/dist/components/form/expressions/builder/argumentLabel.js.map +1 -1
- package/dist/components/form/expressions/builder/argumentWrapper.d.ts.map +1 -1
- package/dist/components/form/expressions/builder/argumentWrapper.js +3 -1
- package/dist/components/form/expressions/builder/argumentWrapper.js.map +1 -1
- package/dist/components/form/expressions/builder/confirmMismatchedTypesModal.d.ts +9 -0
- package/dist/components/form/expressions/builder/confirmMismatchedTypesModal.d.ts.map +1 -1
- package/dist/components/form/expressions/builder/confirmMismatchedTypesModal.js +30 -27
- package/dist/components/form/expressions/builder/confirmMismatchedTypesModal.js.map +1 -1
- package/dist/components/form/expressions/builder/confirmUnsupportedTypeModal.d.ts +1 -1
- package/dist/components/form/expressions/builder/confirmUnsupportedTypeModal.d.ts.map +1 -1
- package/dist/components/form/expressions/builder/confirmUnsupportedTypeModal.js +7 -5
- package/dist/components/form/expressions/builder/confirmUnsupportedTypeModal.js.map +1 -1
- package/dist/components/form/expressions/builder/index.d.ts +34 -2
- package/dist/components/form/expressions/builder/index.d.ts.map +1 -1
- package/dist/components/form/expressions/builder/index.js +170 -80
- package/dist/components/form/expressions/builder/index.js.map +1 -1
- package/dist/components/form/expressions/builder/item.d.ts +6 -2
- package/dist/components/form/expressions/builder/item.d.ts.map +1 -1
- package/dist/components/form/expressions/builder/item.js +19 -5
- package/dist/components/form/expressions/builder/item.js.map +1 -1
- package/dist/components/form/expressions/builder/renderTemplate.js +1 -1
- package/dist/components/form/expressions/builder/renderTemplate.js.map +1 -1
- package/dist/components/form/expressions/dpqlMockRecordPath.d.ts +11 -0
- package/dist/components/form/expressions/dpqlMockRecordPath.d.ts.map +1 -0
- package/dist/components/form/expressions/dpqlMockRecordPath.js +254 -0
- package/dist/components/form/expressions/dpqlMockRecordPath.js.map +1 -0
- package/dist/components/form/expressions/expressionOperands.d.ts +16 -0
- package/dist/components/form/expressions/expressionOperands.d.ts.map +1 -0
- package/dist/components/form/expressions/expressionOperands.js +97 -0
- package/dist/components/form/expressions/expressionOperands.js.map +1 -0
- package/dist/components/form/expressions/fieldPath.d.ts +24 -0
- package/dist/components/form/expressions/fieldPath.d.ts.map +1 -0
- package/dist/components/form/expressions/fieldPath.js +152 -0
- package/dist/components/form/expressions/fieldPath.js.map +1 -0
- package/dist/components/form/expressions/loneValue.d.ts +17 -0
- package/dist/components/form/expressions/loneValue.d.ts.map +1 -0
- package/dist/components/form/expressions/loneValue.js +33 -0
- package/dist/components/form/expressions/loneValue.js.map +1 -0
- package/dist/components/form/expressions/mockExpressions.d.ts.map +1 -1
- package/dist/components/form/expressions/mockExpressions.js +22 -5
- package/dist/components/form/expressions/mockExpressions.js.map +1 -1
- package/dist/components/form/expressions/renderExpressionToText.d.ts +2 -0
- package/dist/components/form/expressions/renderExpressionToText.d.ts.map +1 -1
- package/dist/components/form/expressions/renderExpressionToText.js +37 -25
- package/dist/components/form/expressions/renderExpressionToText.js.map +1 -1
- package/dist/components/form/expressions/textOfExpression.d.ts +18 -0
- package/dist/components/form/expressions/textOfExpression.d.ts.map +1 -0
- package/dist/components/form/expressions/textOfExpression.js +49 -0
- package/dist/components/form/expressions/textOfExpression.js.map +1 -0
- package/dist/components/form/expressions/types.d.ts +12 -0
- package/dist/components/form/expressions/types.d.ts.map +1 -1
- package/dist/components/form/expressions/types.js +6 -1
- package/dist/components/form/expressions/types.js.map +1 -1
- package/dist/components/form/expressions/useExpressionType.d.ts +26 -0
- package/dist/components/form/expressions/useExpressionType.d.ts.map +1 -0
- package/dist/components/form/expressions/useExpressionType.js +181 -0
- package/dist/components/form/expressions/useExpressionType.js.map +1 -0
- package/dist/components/form/expressions/useRenderExpression.d.ts.map +1 -1
- package/dist/components/form/expressions/useRenderExpression.js +13 -9
- package/dist/components/form/expressions/useRenderExpression.js.map +1 -1
- package/dist/components/form/expressions/wildcardExpressions.d.ts +27 -0
- package/dist/components/form/expressions/wildcardExpressions.d.ts.map +1 -0
- package/dist/components/form/expressions/wildcardExpressions.js +101 -0
- package/dist/components/form/expressions/wildcardExpressions.js.map +1 -0
- package/dist/components/form/fields/Field.d.ts.map +1 -1
- package/dist/components/form/fields/Field.js +39 -18
- package/dist/components/form/fields/Field.js.map +1 -1
- package/dist/components/form/fields/allowed-values/AllowedValues.d.ts +0 -7
- package/dist/components/form/fields/allowed-values/AllowedValues.d.ts.map +1 -1
- package/dist/components/form/fields/allowed-values/AllowedValues.js +46 -35
- package/dist/components/form/fields/allowed-values/AllowedValues.js.map +1 -1
- package/dist/components/form/fields/allowed-values/choicePicture.d.ts +37 -0
- package/dist/components/form/fields/allowed-values/choicePicture.d.ts.map +1 -0
- package/dist/components/form/fields/allowed-values/choicePicture.js +64 -0
- package/dist/components/form/fields/allowed-values/choicePicture.js.map +1 -0
- package/dist/components/form/fields/array/ArrayAuto.d.ts.map +1 -1
- package/dist/components/form/fields/array/ArrayAuto.js +24 -0
- 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 +36 -13
- package/dist/components/form/fields/array/ArrayAutoField.js.map +1 -1
- package/dist/components/form/fields/auto/AutoFormField.d.ts +30 -1
- package/dist/components/form/fields/auto/AutoFormField.d.ts.map +1 -1
- package/dist/components/form/fields/auto/AutoFormField.js +123 -79
- package/dist/components/form/fields/auto/AutoFormField.js.map +1 -1
- package/dist/components/form/fields/auto/hostEditorValue.d.ts +30 -0
- package/dist/components/form/fields/auto/hostEditorValue.d.ts.map +1 -0
- package/dist/components/form/fields/auto/hostEditorValue.js +53 -0
- package/dist/components/form/fields/auto/hostEditorValue.js.map +1 -0
- package/dist/components/form/fields/binary/Binary.d.ts.map +1 -1
- package/dist/components/form/fields/binary/Binary.js +23 -3
- package/dist/components/form/fields/binary/Binary.js.map +1 -1
- package/dist/components/form/fields/boolean/Boolean.d.ts +5 -0
- package/dist/components/form/fields/boolean/Boolean.d.ts.map +1 -1
- package/dist/components/form/fields/boolean/Boolean.js +9 -1
- package/dist/components/form/fields/boolean/Boolean.js.map +1 -1
- package/dist/components/form/fields/color/Color.d.ts +103 -16
- package/dist/components/form/fields/color/Color.d.ts.map +1 -1
- package/dist/components/form/fields/color/Color.js +616 -16
- package/dist/components/form/fields/color/Color.js.map +1 -1
- package/dist/components/form/fields/emittedValues.d.ts +34 -3
- package/dist/components/form/fields/emittedValues.d.ts.map +1 -1
- package/dist/components/form/fields/emittedValues.js +24 -1
- package/dist/components/form/fields/emittedValues.js.map +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 +4 -2
- package/dist/components/form/fields/file/File.js.map +1 -1
- package/dist/components/form/fields/long-string/LongString.d.ts +1 -7
- package/dist/components/form/fields/long-string/LongString.d.ts.map +1 -1
- package/dist/components/form/fields/long-string/LongString.js +30 -13
- package/dist/components/form/fields/long-string/LongString.js.map +1 -1
- package/dist/components/form/fields/markdown/MarkdownView.js +1 -1
- package/dist/components/form/fields/multi-select/MultiSelectFormField.d.ts.map +1 -1
- package/dist/components/form/fields/multi-select/MultiSelectFormField.js +10 -7
- package/dist/components/form/fields/multi-select/MultiSelectFormField.js.map +1 -1
- package/dist/components/form/fields/number/Number.d.ts +7 -4
- package/dist/components/form/fields/number/Number.d.ts.map +1 -1
- package/dist/components/form/fields/number/Number.js +45 -18
- package/dist/components/form/fields/number/Number.js.map +1 -1
- package/dist/components/form/fields/object/Object.d.ts +1 -1
- package/dist/components/form/fields/object/Object.d.ts.map +1 -1
- package/dist/components/form/fields/object/Object.js +4 -2
- package/dist/components/form/fields/object/Object.js.map +1 -1
- package/dist/components/form/fields/pendingEdit.d.ts +52 -0
- package/dist/components/form/fields/pendingEdit.d.ts.map +1 -0
- package/dist/components/form/fields/pendingEdit.js +79 -0
- package/dist/components/form/fields/pendingEdit.js.map +1 -0
- package/dist/components/form/fields/radio-group/RadioGroup.d.ts.map +1 -1
- package/dist/components/form/fields/radio-group/RadioGroup.js +8 -13
- package/dist/components/form/fields/radio-group/RadioGroup.js.map +1 -1
- package/dist/components/form/fields/rich-text/RichText.d.ts +20 -1
- package/dist/components/form/fields/rich-text/RichText.d.ts.map +1 -1
- package/dist/components/form/fields/rich-text/RichText.js +426 -91
- package/dist/components/form/fields/rich-text/RichText.js.map +1 -1
- package/dist/components/form/fields/rich-text/useTemplateTags.d.ts +18 -0
- package/dist/components/form/fields/rich-text/useTemplateTags.d.ts.map +1 -0
- package/dist/components/form/fields/rich-text/useTemplateTags.js +80 -0
- package/dist/components/form/fields/rich-text/useTemplateTags.js.map +1 -0
- package/dist/components/form/fields/schema-definition/CatalogLeafForm.d.ts.map +1 -1
- package/dist/components/form/fields/schema-definition/CatalogLeafForm.js +4 -1
- package/dist/components/form/fields/schema-definition/CatalogLeafForm.js.map +1 -1
- package/dist/components/form/fields/schema-definition/CatalogNodeEditor.d.ts.map +1 -1
- package/dist/components/form/fields/schema-definition/CatalogNodeEditor.js +20 -5
- package/dist/components/form/fields/schema-definition/CatalogNodeEditor.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 +10 -2
- package/dist/components/form/fields/schema-definition/TableEditor.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 +8 -4
- package/dist/components/form/fields/schema-definition/index.js.map +1 -1
- package/dist/components/form/fields/select/Select.d.ts +10 -1
- package/dist/components/form/fields/select/Select.d.ts.map +1 -1
- package/dist/components/form/fields/select/Select.js +28 -14
- package/dist/components/form/fields/select/Select.js.map +1 -1
- package/dist/components/form/fields/select/SelectCollection.d.ts +5 -0
- package/dist/components/form/fields/select/SelectCollection.d.ts.map +1 -1
- package/dist/components/form/fields/select/SelectCollection.js +25 -12
- package/dist/components/form/fields/select/SelectCollection.js.map +1 -1
- package/dist/components/form/fields/select/unavailableRow.d.ts +23 -0
- package/dist/components/form/fields/select/unavailableRow.d.ts.map +1 -0
- package/dist/components/form/fields/select/unavailableRow.js +55 -0
- package/dist/components/form/fields/select/unavailableRow.js.map +1 -0
- package/dist/components/form/fields/template/ReadOnlyTemplateTag.d.ts +11 -5
- package/dist/components/form/fields/template/ReadOnlyTemplateTag.d.ts.map +1 -1
- package/dist/components/form/fields/template/ReadOnlyTemplateTag.js +21 -5
- package/dist/components/form/fields/template/ReadOnlyTemplateTag.js.map +1 -1
- package/dist/components/form/fields/template/TemplateBrowser.d.ts +16 -0
- package/dist/components/form/fields/template/TemplateBrowser.d.ts.map +1 -0
- package/dist/components/form/fields/template/TemplateBrowser.js +89 -0
- package/dist/components/form/fields/template/TemplateBrowser.js.map +1 -0
- package/dist/components/form/fields/template/TemplateField.d.ts +105 -1
- package/dist/components/form/fields/template/TemplateField.d.ts.map +1 -1
- package/dist/components/form/fields/template/TemplateField.js +706 -168
- package/dist/components/form/fields/template/TemplateField.js.map +1 -1
- package/dist/components/form/fields/template/TemplatePicker.d.ts +54 -0
- package/dist/components/form/fields/template/TemplatePicker.d.ts.map +1 -0
- package/dist/components/form/fields/template/TemplatePicker.js +459 -0
- package/dist/components/form/fields/template/TemplatePicker.js.map +1 -0
- package/dist/components/form/fields/template/TemplateText.d.ts +0 -17
- package/dist/components/form/fields/template/TemplateText.d.ts.map +1 -1
- package/dist/components/form/fields/template/TemplateText.js +22 -16
- package/dist/components/form/fields/template/TemplateText.js.map +1 -1
- package/dist/components/form/fields/template/referenceNames.d.ts +63 -0
- package/dist/components/form/fields/template/referenceNames.d.ts.map +1 -0
- package/dist/components/form/fields/template/referenceNames.js +69 -0
- package/dist/components/form/fields/template/referenceNames.js.map +1 -0
- package/dist/components/form/fields/template/writtenAsText.d.ts +61 -0
- package/dist/components/form/fields/template/writtenAsText.d.ts.map +1 -0
- package/dist/components/form/fields/template/writtenAsText.js +204 -0
- package/dist/components/form/fields/template/writtenAsText.js.map +1 -0
- package/dist/components/form/index.d.ts +12 -2
- package/dist/components/form/index.d.ts.map +1 -1
- package/dist/components/form/index.js +25 -3
- package/dist/components/form/index.js.map +1 -1
- package/dist/components/form/typeSentenceForm.d.ts +17 -0
- package/dist/components/form/typeSentenceForm.d.ts.map +1 -0
- package/dist/components/form/typeSentenceForm.js +54 -0
- package/dist/components/form/typeSentenceForm.js.map +1 -0
- package/dist/components/imageLightbox/ImageLightbox.d.ts.map +1 -1
- package/dist/components/imageLightbox/ImageLightbox.js +19 -9
- package/dist/components/imageLightbox/ImageLightbox.js.map +1 -1
- package/dist/components/log/Log.d.ts.map +1 -1
- package/dist/components/log/Log.js +20 -8
- package/dist/components/log/Log.js.map +1 -1
- package/dist/components/menu/Menu.d.ts.map +1 -1
- package/dist/components/menu/Menu.js +19 -10
- package/dist/components/menu/Menu.js.map +1 -1
- package/dist/components/smartEditor/CompletionMenu.d.ts +53 -0
- package/dist/components/smartEditor/CompletionMenu.d.ts.map +1 -0
- package/dist/components/smartEditor/CompletionMenu.js +302 -0
- package/dist/components/smartEditor/CompletionMenu.js.map +1 -0
- package/dist/components/smartEditor/MarkdownDoc.d.ts +1 -1
- package/dist/components/smartEditor/MarkdownDoc.js +3 -3
- package/dist/components/smartEditor/MarkdownDoc.js.map +1 -1
- package/dist/components/smartEditor/SmartEditor.d.ts.map +1 -1
- package/dist/components/smartEditor/SmartEditor.js +616 -190
- package/dist/components/smartEditor/SmartEditor.js.map +1 -1
- package/dist/components/smartEditor/completionStyle.d.ts +28 -0
- package/dist/components/smartEditor/completionStyle.d.ts.map +1 -0
- package/dist/components/smartEditor/completionStyle.js +79 -0
- package/dist/components/smartEditor/completionStyle.js.map +1 -0
- package/dist/components/smartEditor/contextTitle.d.ts +10 -0
- package/dist/components/smartEditor/contextTitle.d.ts.map +1 -0
- package/dist/components/smartEditor/contextTitle.js +21 -0
- package/dist/components/smartEditor/contextTitle.js.map +1 -0
- package/dist/components/smartEditor/editingAids.d.ts +64 -0
- package/dist/components/smartEditor/editingAids.d.ts.map +1 -0
- package/dist/components/smartEditor/editingAids.js +213 -0
- package/dist/components/smartEditor/editingAids.js.map +1 -0
- package/dist/components/smartEditor/index.d.ts +6 -1
- package/dist/components/smartEditor/index.d.ts.map +1 -1
- package/dist/components/smartEditor/index.js +19 -1
- package/dist/components/smartEditor/index.js.map +1 -1
- package/dist/components/smartEditor/templateCompletions.d.ts +98 -0
- package/dist/components/smartEditor/templateCompletions.d.ts.map +1 -0
- package/dist/components/smartEditor/templateCompletions.js +380 -0
- package/dist/components/smartEditor/templateCompletions.js.map +1 -0
- package/dist/components/smartEditor/typedReferences.d.ts +34 -0
- package/dist/components/smartEditor/typedReferences.d.ts.map +1 -0
- package/dist/components/smartEditor/typedReferences.js +179 -0
- package/dist/components/smartEditor/typedReferences.js.map +1 -0
- package/dist/components/smartEditor/types.d.ts +116 -2
- package/dist/components/smartEditor/types.d.ts.map +1 -1
- package/dist/components/smartEditor/useEditingAids.d.ts +38 -0
- package/dist/components/smartEditor/useEditingAids.d.ts.map +1 -0
- package/dist/components/smartEditor/useEditingAids.js +392 -0
- package/dist/components/smartEditor/useEditingAids.js.map +1 -0
- package/dist/components/smartEditor/useLspAutocomplete.d.ts +106 -3
- package/dist/components/smartEditor/useLspAutocomplete.d.ts.map +1 -1
- package/dist/components/smartEditor/useLspAutocomplete.js +592 -149
- package/dist/components/smartEditor/useLspAutocomplete.js.map +1 -1
- package/dist/components/smartEditor/useLspHover.d.ts +33 -7
- package/dist/components/smartEditor/useLspHover.d.ts.map +1 -1
- package/dist/components/smartEditor/useLspHover.js +364 -35
- package/dist/components/smartEditor/useLspHover.js.map +1 -1
- package/dist/components/smartEditor/useLspSemanticTokens.js +1 -1
- package/dist/components/smartEditor/useLspSemanticTokens.js.map +1 -1
- package/dist/components/smartEditor/useLspSession.d.ts +6 -0
- package/dist/components/smartEditor/useLspSession.d.ts.map +1 -1
- package/dist/components/smartEditor/useLspSession.js +7 -6
- package/dist/components/smartEditor/useLspSession.js.map +1 -1
- package/dist/components/smartEditor/useLspSignatureHelp.d.ts.map +1 -1
- package/dist/components/smartEditor/useLspSignatureHelp.js +6 -11
- package/dist/components/smartEditor/useLspSignatureHelp.js.map +1 -1
- package/dist/components/smartEditor/useTabCameIn.d.ts +10 -0
- package/dist/components/smartEditor/useTabCameIn.d.ts.map +1 -0
- package/dist/components/smartEditor/useTabCameIn.js +42 -0
- package/dist/components/smartEditor/useTabCameIn.js.map +1 -0
- package/dist/components/supportTicket/AttachmentChips.d.ts.map +1 -1
- package/dist/components/supportTicket/AttachmentChips.js +15 -5
- package/dist/components/supportTicket/AttachmentChips.js.map +1 -1
- package/dist/components/supportTicket/InterfaceReferenceTags.d.ts +2 -3
- package/dist/components/supportTicket/InterfaceReferenceTags.d.ts.map +1 -1
- package/dist/components/supportTicket/InterfaceReferenceTags.js.map +1 -1
- package/dist/components/supportTicket/ReferencePicker.d.ts +9 -3
- package/dist/components/supportTicket/ReferencePicker.d.ts.map +1 -1
- package/dist/components/supportTicket/ReferencePicker.js +38 -23
- package/dist/components/supportTicket/ReferencePicker.js.map +1 -1
- package/dist/components/supportTicket/TicketHeader.d.ts +3 -4
- package/dist/components/supportTicket/TicketHeader.d.ts.map +1 -1
- package/dist/components/supportTicket/TicketHeader.js +21 -6
- package/dist/components/supportTicket/TicketHeader.js.map +1 -1
- package/dist/components/supportTicket/TicketMetaTags.d.ts +1 -1
- package/dist/components/supportTicket/TicketReplyBox.d.ts.map +1 -1
- package/dist/components/supportTicket/TicketReplyBox.js +10 -29
- package/dist/components/supportTicket/TicketReplyBox.js.map +1 -1
- package/dist/components/supportTicket/useLoadedImages.d.ts +0 -10
- package/dist/components/supportTicket/useLoadedImages.d.ts.map +1 -1
- package/dist/components/supportTicket/useLoadedImages.js +1 -63
- 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 +10 -9
- package/dist/components/ticketReferences/TicketReferences.js.map +1 -1
- package/dist/components/ticketThread/TicketThread.d.ts.map +1 -1
- package/dist/components/ticketThread/TicketThread.js +52 -21
- package/dist/components/ticketThread/TicketThread.js.map +1 -1
- package/dist/helpers/allowedValues.d.ts +21 -12
- package/dist/helpers/allowedValues.d.ts.map +1 -1
- package/dist/helpers/allowedValues.js +40 -20
- package/dist/helpers/allowedValues.js.map +1 -1
- package/dist/helpers/descriptionTooltip.d.ts +46 -0
- package/dist/helpers/descriptionTooltip.d.ts.map +1 -0
- package/dist/helpers/descriptionTooltip.js +76 -0
- package/dist/helpers/descriptionTooltip.js.map +1 -0
- package/dist/helpers/domProps.d.ts +5 -0
- package/dist/helpers/domProps.d.ts.map +1 -0
- package/dist/helpers/domProps.js +47 -0
- package/dist/helpers/domProps.js.map +1 -0
- package/dist/helpers/expressions.d.ts +115 -4
- package/dist/helpers/expressions.d.ts.map +1 -1
- package/dist/helpers/expressions.js +247 -29
- package/dist/helpers/expressions.js.map +1 -1
- package/dist/helpers/hoveringPointer.d.ts +26 -0
- package/dist/helpers/hoveringPointer.d.ts.map +1 -0
- package/dist/helpers/hoveringPointer.js +29 -0
- package/dist/helpers/hoveringPointer.js.map +1 -0
- package/dist/helpers/markdownText.d.ts +14 -0
- package/dist/helpers/markdownText.d.ts.map +1 -0
- package/dist/helpers/markdownText.js +160 -0
- package/dist/helpers/markdownText.js.map +1 -0
- package/dist/helpers/noDescription.d.ts +9 -0
- package/dist/helpers/noDescription.d.ts.map +1 -0
- package/dist/helpers/noDescription.js +13 -0
- package/dist/helpers/noDescription.js.map +1 -0
- package/dist/helpers/optionUiTypes.d.ts +2 -2
- package/dist/helpers/qorusTypeCatalogue.d.ts +147 -0
- package/dist/helpers/qorusTypeCatalogue.d.ts.map +1 -0
- package/dist/helpers/qorusTypeCatalogue.js +505 -0
- package/dist/helpers/qorusTypeCatalogue.js.map +1 -0
- package/dist/helpers/readableColors.d.ts +36 -0
- package/dist/helpers/readableColors.d.ts.map +1 -0
- package/dist/helpers/readableColors.js +116 -0
- package/dist/helpers/readableColors.js.map +1 -0
- package/dist/helpers/recordFieldReference.d.ts +15 -0
- package/dist/helpers/recordFieldReference.d.ts.map +1 -0
- package/dist/helpers/recordFieldReference.js +89 -0
- package/dist/helpers/recordFieldReference.js.map +1 -0
- package/dist/helpers/singleLineString.d.ts.map +1 -1
- package/dist/helpers/singleLineString.js +0 -1
- package/dist/helpers/singleLineString.js.map +1 -1
- package/dist/helpers/templateCatalogue.d.ts +104 -0
- package/dist/helpers/templateCatalogue.d.ts.map +1 -0
- package/dist/helpers/templateCatalogue.js +116 -0
- package/dist/helpers/templateCatalogue.js.map +1 -0
- package/dist/helpers/templateCatalogueContext.d.ts +19 -0
- package/dist/helpers/templateCatalogueContext.d.ts.map +1 -0
- package/dist/helpers/templateCatalogueContext.js +31 -0
- package/dist/helpers/templateCatalogueContext.js.map +1 -0
- package/dist/helpers/templateItems.d.ts +2 -2
- package/dist/helpers/templateItems.d.ts.map +1 -1
- package/dist/helpers/templateItems.js +6 -4
- package/dist/helpers/templateItems.js.map +1 -1
- package/dist/helpers/templateText.d.ts +1 -0
- package/dist/helpers/templateText.d.ts.map +1 -1
- package/dist/helpers/templateText.js +7 -3
- package/dist/helpers/templateText.js.map +1 -1
- package/dist/helpers/templateTree.d.ts +248 -0
- package/dist/helpers/templateTree.d.ts.map +1 -0
- package/dist/helpers/templateTree.js +892 -0
- package/dist/helpers/templateTree.js.map +1 -0
- package/dist/helpers/templateType.d.ts +28 -0
- package/dist/helpers/templateType.d.ts.map +1 -0
- package/dist/helpers/templateType.js +30 -0
- package/dist/helpers/templateType.js.map +1 -0
- package/dist/helpers/templates.d.ts +86 -16
- package/dist/helpers/templates.d.ts.map +1 -1
- package/dist/helpers/templates.js +305 -45
- package/dist/helpers/templates.js.map +1 -1
- package/dist/helpers/validations.d.ts +27 -0
- package/dist/helpers/validations.d.ts.map +1 -1
- package/dist/helpers/validations.js +169 -39
- package/dist/helpers/validations.js.map +1 -1
- package/dist/helpers/webLink.d.ts +8 -0
- package/dist/helpers/webLink.d.ts.map +1 -0
- package/dist/helpers/webLink.js +29 -0
- package/dist/helpers/webLink.js.map +1 -0
- package/dist/hooks/useQorusTypes.d.ts +12 -17
- package/dist/hooks/useQorusTypes.d.ts.map +1 -1
- package/dist/hooks/useQorusTypes.js +44 -172
- package/dist/hooks/useQorusTypes.js.map +1 -1
- package/dist/hooks/useReadableIntentShade.d.ts +9 -0
- package/dist/hooks/useReadableIntentShade.d.ts.map +1 -0
- package/dist/hooks/useReadableIntentShade.js +23 -0
- package/dist/hooks/useReadableIntentShade.js.map +1 -0
- package/dist/hooks/useReadableOpacity.d.ts +6 -0
- package/dist/hooks/useReadableOpacity.d.ts.map +1 -0
- package/dist/hooks/useReadableOpacity.js +17 -0
- package/dist/hooks/useReadableOpacity.js.map +1 -0
- package/dist/index.d.ts +8 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +24 -1
- package/dist/index.js.map +1 -1
- package/dist/tracking/ui/ExperimentCard.d.ts +1 -1
- package/dist/tracking/ui/ExperimentCard.d.ts.map +1 -1
- package/dist/tracking/ui/ExperimentCard.js +26 -10
- package/dist/tracking/ui/ExperimentCard.js.map +1 -1
- package/dist/tracking/ui/card.d.ts +2 -2
- package/dist/tracking/ui/card.d.ts.map +1 -1
- package/dist/tracking/ui/card.js +2 -2
- package/dist/tracking/ui/card.js.map +1 -1
- package/dist/tracking/ui/readable.d.ts +14 -0
- package/dist/tracking/ui/readable.d.ts.map +1 -0
- package/dist/tracking/ui/readable.js +60 -0
- package/dist/tracking/ui/readable.js.map +1 -0
- package/dist/utils/fetch.d.ts +9 -2
- package/dist/utils/fetch.d.ts.map +1 -1
- package/dist/utils/fetch.js +6 -5
- package/dist/utils/fetch.js.map +1 -1
- package/dist/utils/lspClient.types.d.ts +2 -0
- package/dist/utils/lspClient.types.d.ts.map +1 -1
- package/dist/utils/websocket.d.ts +65 -2
- package/dist/utils/websocket.d.ts.map +1 -1
- package/dist/utils/websocket.js +276 -44
- package/dist/utils/websocket.js.map +1 -1
- package/package.json +14 -6
- package/.claude/CLAUDE.md +0 -317
- package/.tasks/EXPORT_EXPRESSION_BUILDER.md +0 -38
- package/.tasks/EXPRESSION_BUILDER_REPORT.md +0 -149
- package/.tasks/EXPRESSION_FIELD_SEAMS.md +0 -66
- package/.tasks/FIELD_STACK_REPORT.md +0 -234
- package/.tasks/FORM_ENGINE_COMPACT_READ_FIRST.md +0 -558
- package/.tasks/FORM_ENGINE_EXPRESSIONS.md +0 -197
- package/.tasks/FORM_ENGINE_OPTIONS_SYNC.md +0 -95
- package/.tasks/FORM_FIELD_EXTRAS.md +0 -72
- package/.tasks/INDEX.md +0 -111
- package/.tasks/LSP_SHARED_CONNECTION.md +0 -75
- package/.tasks/QONSOLE_ASSIST_FEATURES.md +0 -306
- package/.tasks/RENDER_EXPRESSION_LSP.md +0 -159
- package/.tasks/REQRAFT_AUTO_FIELD.md +0 -176
- package/.tasks/SCHEMA_DEFINITION_FIELD.md +0 -250
- package/.tasks/SMART_EDITOR_CONTEXT_AND_POLISH.md +0 -340
- package/.tasks/SMART_EDITOR_LSP_FEATURES.md +0 -299
- package/.tasks/SMART_EDITOR_REVIEW_FOLLOWUPS.md +0 -280
- package/.tasks/SMART_EDITOR_UX_POLISH.md +0 -383
- package/.tasks/SMART_EDITOR_VISUAL_POLISH.md +0 -246
- package/.tasks/STORY_NETWORK_ISOLATION.md +0 -98
- package/.tasks/TEMPLATE_TOKEN_GRAMMAR.md +0 -72
- package/CODE_OF_CONDUCT.md +0 -105
- package/CONTRIBUTING.MD +0 -78
- package/SECURITY.md +0 -3
- package/chromatic.config.json +0 -5
- package/design/COMPACT_ENGINE_REDESIGN.md +0 -156
- package/design/COMPACT_INFO_DISPLAY.md +0 -87
- package/design/COMPACT_PARITY.md +0 -85
- package/design/EXPRESSION_BUILDER_REPORT_STRATEGY.md +0 -92
- package/design/FORM_ENGINE_COMPACT.md +0 -300
- package/design/FORM_ENGINE_COMPACT_UX_PLAN.md +0 -353
- package/design/FORM_ENGINE_EXPRESSIONS.md +0 -257
- package/design/FORM_ENGINE_FIELD_MIGRATION.md +0 -419
- package/design/IDE_INTEGRATION.md +0 -64
- package/design/RENDER_EXPRESSION_TRANSPORT.md +0 -156
- package/design/SELECT_DIALOG_FLOOR.md +0 -86
- package/design/SMART_EDITOR_UX.md +0 -438
- package/design/TRACKING.md +0 -290
- package/design/UNAVAILABLE_ALLOWED_VALUES.md +0 -226
- package/dist/components/form/engine/formAppearance.d.ts +0 -49
- package/dist/components/form/engine/formAppearance.d.ts.map +0 -1
- package/dist/components/form/engine/formAppearance.js +0 -50
- package/dist/components/form/engine/formAppearance.js.map +0 -1
- package/dist/components/form/fields/ChoiceGroupHeading.d.ts +0 -21
- package/dist/components/form/fields/ChoiceGroupHeading.d.ts.map +0 -1
- package/dist/components/form/fields/ChoiceGroupHeading.js +0 -33
- package/dist/components/form/fields/ChoiceGroupHeading.js.map +0 -1
- package/dist/components/form/fields/allowed-values/savedValues.d.ts +0 -30
- package/dist/components/form/fields/allowed-values/savedValues.d.ts.map +0 -1
- package/dist/components/form/fields/allowed-values/savedValues.js +0 -39
- package/dist/components/form/fields/allowed-values/savedValues.js.map +0 -1
- package/dist/helpers/fieldDescription.d.ts +0 -16
- package/dist/helpers/fieldDescription.d.ts.map +0 -1
- package/dist/helpers/fieldDescription.js +0 -40
- package/dist/helpers/fieldDescription.js.map +0 -1
- package/src/components/Description/index.tsx +0 -254
- package/src/components/Description/markdownRendererContext.tsx +0 -29
- package/src/components/FocusedEditing/index.tsx +0 -50
- package/src/components/codeSize/index.tsx +0 -79
- package/src/components/composer/Composer.stories.tsx +0 -238
- package/src/components/composer/Composer.tsx +0 -554
- package/src/components/composer/helpers.ts +0 -74
- package/src/components/composer/index.ts +0 -2
- package/src/components/dpqlEditor/DpqlEditor.stories.tsx +0 -1183
- package/src/components/dpqlEditor/DpqlEditor.tsx +0 -219
- package/src/components/dpqlEditor/dpqlHelpers.ts +0 -287
- package/src/components/dpqlEditor/dpqlInserter.ts +0 -121
- package/src/components/dpqlEditor/dpqlProbe.ts +0 -165
- package/src/components/dpqlEditor/dpqlTags.ts +0 -114
- package/src/components/dpqlEditor/index.ts +0 -41
- package/src/components/dpqlEditor/types.ts +0 -203
- package/src/components/dpqlEditor/useDpqlProbe.ts +0 -33
- package/src/components/dpqlEditor/useDpqlSession.ts +0 -411
- package/src/components/form/engine/CompactRow.tsx +0 -2740
- package/src/components/form/engine/CompactToolbar.tsx +0 -399
- package/src/components/form/engine/FormEngine.stories.tsx +0 -9934
- package/src/components/form/engine/FormEngine.tsx +0 -4891
- package/src/components/form/engine/FormEngineAppearance.stories.tsx +0 -609
- package/src/components/form/engine/FormEngineRemote.stories.tsx +0 -679
- package/src/components/form/engine/FormEngineStickyHeaders.stories.tsx +0 -335
- package/src/components/form/engine/FormFieldsSkeleton.tsx +0 -82
- package/src/components/form/engine/OptionFieldMessages.tsx +0 -548
- package/src/components/form/engine/OptionsHelpDialog.tsx +0 -29
- package/src/components/form/engine/__fixtures__/basicFormOptions.ts +0 -309
- package/src/components/form/engine/__fixtures__/fieldChromeOptions.ts +0 -45
- package/src/components/form/engine/_structuredData/SchemaDataView.stories.tsx +0 -233
- package/src/components/form/engine/_structuredData/SchemaDataView.tsx +0 -755
- package/src/components/form/engine/_structuredData/StructuredDataView.stories.tsx +0 -85
- package/src/components/form/engine/_structuredData/StructuredDataView.tsx +0 -75
- package/src/components/form/engine/_structuredData/structuredData.ts +0 -145
- package/src/components/form/engine/compactRowContext.ts +0 -153
- package/src/components/form/engine/compactRowStyles.ts +0 -1087
- package/src/components/form/engine/compactToolbarContext.ts +0 -72
- package/src/components/form/engine/formAppearance.ts +0 -79
- package/src/components/form/engine/optionActions.ts +0 -128
- package/src/components/form/engine/optionsContext.ts +0 -24
- package/src/components/form/engine/readFirst.ts +0 -1090
- package/src/components/form/engine/rendererTypes.ts +0 -107
- package/src/components/form/engine/revealRow.ts +0 -123
- package/src/components/form/engine/rowFocus.ts +0 -112
- package/src/components/form/engine/rowMenuContext.ts +0 -159
- package/src/components/form/engine/rowOpenPicker.ts +0 -27
- package/src/components/form/engine/typeChoices.ts +0 -63
- package/src/components/form/engine/variants/FormEngineVariants.stories.tsx +0 -159
- package/src/components/form/engine/variants/VariantCalmTable.tsx +0 -244
- package/src/components/form/engine/variants/VariantCards.tsx +0 -212
- package/src/components/form/engine/variants/VariantFocus.tsx +0 -382
- package/src/components/form/engine/variants/VariantMinimal.tsx +0 -170
- package/src/components/form/engine/variants/focusDemo.ts +0 -145
- package/src/components/form/engine/variants/variantModel.ts +0 -223
- package/src/components/form/engine/variants/variantParts.tsx +0 -313
- package/src/components/form/expressions/DpqlRendering.tsx +0 -85
- package/src/components/form/expressions/ExpressionField.stories.tsx +0 -1395
- package/src/components/form/expressions/ExpressionField.tsx +0 -503
- package/src/components/form/expressions/argumentPresence.ts +0 -213
- package/src/components/form/expressions/builder/ExpressionBuilder.stories.tsx +0 -1683
- package/src/components/form/expressions/builder/argumentDetail.tsx +0 -17
- package/src/components/form/expressions/builder/argumentLabel.tsx +0 -146
- package/src/components/form/expressions/builder/argumentSlot.tsx +0 -101
- package/src/components/form/expressions/builder/argumentWrapper.tsx +0 -243
- package/src/components/form/expressions/builder/confirmMismatchedTypesModal.tsx +0 -120
- package/src/components/form/expressions/builder/confirmUnsupportedTypeModal.tsx +0 -69
- package/src/components/form/expressions/builder/index.tsx +0 -1545
- package/src/components/form/expressions/builder/item.tsx +0 -89
- package/src/components/form/expressions/builder/moveToPositionStrip.tsx +0 -156
- package/src/components/form/expressions/builder/renderTemplate.tsx +0 -42
- package/src/components/form/expressions/dpqlMockLanguage.ts +0 -566
- package/src/components/form/expressions/dpqlMockLsp.ts +0 -126
- package/src/components/form/expressions/mockExpressions.ts +0 -317
- package/src/components/form/expressions/renderExpressionToText.ts +0 -152
- package/src/components/form/expressions/types.ts +0 -110
- package/src/components/form/expressions/useExpressions.ts +0 -101
- package/src/components/form/expressions/useRenderExpression.ts +0 -165
- package/src/components/form/fields/ChoiceGroupHeading.tsx +0 -38
- package/src/components/form/fields/Field.stories.tsx +0 -143
- package/src/components/form/fields/Field.tsx +0 -734
- package/src/components/form/fields/allowed-values/AllowedValues.tsx +0 -321
- package/src/components/form/fields/allowed-values/savedValues.ts +0 -64
- package/src/components/form/fields/array/ArrayAuto.tsx +0 -237
- package/src/components/form/fields/array/ArrayAutoField.stories.tsx +0 -475
- package/src/components/form/fields/array/ArrayAutoField.tsx +0 -367
- package/src/components/form/fields/auto/AutoFormField.stories.tsx +0 -825
- package/src/components/form/fields/auto/AutoFormField.tsx +0 -1183
- package/src/components/form/fields/binary/Binary.stories.tsx +0 -122
- package/src/components/form/fields/binary/Binary.tsx +0 -91
- package/src/components/form/fields/boolean/Boolean.stories.tsx +0 -125
- package/src/components/form/fields/boolean/Boolean.tsx +0 -34
- package/src/components/form/fields/byte-size/ByteSize.stories.tsx +0 -87
- package/src/components/form/fields/byte-size/ByteSize.tsx +0 -58
- package/src/components/form/fields/color/Color.stories.tsx +0 -99
- package/src/components/form/fields/color/Color.tsx +0 -46
- package/src/components/form/fields/cron/Cron.stories.tsx +0 -68
- package/src/components/form/fields/cron/Cron.tsx +0 -80
- package/src/components/form/fields/date/Date.stories.tsx +0 -77
- package/src/components/form/fields/date/Date.tsx +0 -55
- package/src/components/form/fields/emittedValues.ts +0 -70
- package/src/components/form/fields/file/File.stories.tsx +0 -161
- package/src/components/form/fields/file/File.tsx +0 -227
- package/src/components/form/fields/long-string/LongString.stories.tsx +0 -147
- package/src/components/form/fields/long-string/LongString.tsx +0 -141
- package/src/components/form/fields/markdown/Markdown.stories.tsx +0 -76
- package/src/components/form/fields/markdown/Markdown.tsx +0 -81
- package/src/components/form/fields/markdown/MarkdownView.tsx +0 -222
- package/src/components/form/fields/multi-select/MultiSelectFormField.tsx +0 -140
- package/src/components/form/fields/number/Number.stories.tsx +0 -159
- package/src/components/form/fields/number/Number.tsx +0 -175
- package/src/components/form/fields/object/Object.stories.tsx +0 -398
- package/src/components/form/fields/object/Object.tsx +0 -255
- package/src/components/form/fields/radio-group/RadioGroup.stories.tsx +0 -95
- package/src/components/form/fields/radio-group/RadioGroup.tsx +0 -52
- package/src/components/form/fields/radio-group/images/java-96x128.png +0 -0
- package/src/components/form/fields/radio-group/images/python-129x128.png +0 -0
- package/src/components/form/fields/radio-group/images/qore-106x128.png +0 -0
- package/src/components/form/fields/rich-text/RichText.stories.tsx +0 -260
- package/src/components/form/fields/rich-text/RichText.tsx +0 -537
- package/src/components/form/fields/schema-definition/CatalogLeafForm.tsx +0 -242
- package/src/components/form/fields/schema-definition/CatalogNodeEditor.tsx +0 -758
- package/src/components/form/fields/schema-definition/Hint.tsx +0 -22
- package/src/components/form/fields/schema-definition/InlineValidationBanner.tsx +0 -138
- package/src/components/form/fields/schema-definition/Loader.tsx +0 -20
- package/src/components/form/fields/schema-definition/MigrationsTab.tsx +0 -187
- package/src/components/form/fields/schema-definition/SchemaDefinitionField.stories.tsx +0 -286
- package/src/components/form/fields/schema-definition/TableEditor.tsx +0 -155
- package/src/components/form/fields/schema-definition/TablesTab.tsx +0 -138
- package/src/components/form/fields/schema-definition/catalog.ts +0 -237
- package/src/components/form/fields/schema-definition/helpers.ts +0 -90
- package/src/components/form/fields/schema-definition/index.tsx +0 -418
- package/src/components/form/fields/schema-definition/mockCatalog.ts +0 -325
- package/src/components/form/fields/schema-definition/mockDefinition.ts +0 -111
- package/src/components/form/fields/schema-definition/referenceSuggestions.tsx +0 -152
- package/src/components/form/fields/schema-definition/starterTemplate.ts +0 -68
- package/src/components/form/fields/schema-definition/types.ts +0 -185
- package/src/components/form/fields/schema-definition/useSchemaOptionCatalog.ts +0 -49
- package/src/components/form/fields/select/Select.stories.tsx +0 -872
- package/src/components/form/fields/select/Select.tsx +0 -624
- package/src/components/form/fields/select/SelectCollection.tsx +0 -594
- package/src/components/form/fields/string/String.stories.tsx +0 -86
- package/src/components/form/fields/string/String.tsx +0 -43
- package/src/components/form/fields/template/ExampleValueModal.stories.tsx +0 -114
- package/src/components/form/fields/template/ExampleValueModal.tsx +0 -99
- package/src/components/form/fields/template/ReadOnlyTemplateTag.tsx +0 -47
- package/src/components/form/fields/template/TemplateField.stories.tsx +0 -1121
- package/src/components/form/fields/template/TemplateField.tsx +0 -1749
- package/src/components/form/fields/template/TemplateText.tsx +0 -115
- package/src/components/form/fields/template/__fixtures__/longExampleValue.ts +0 -7
- package/src/components/form/fields/template/__fixtures__/multiLevelTemplates.json +0 -147
- package/src/components/form/fields/template/__fixtures__/templates.json +0 -83
- package/src/components/form/fields/timeout/Timeout.stories.tsx +0 -228
- package/src/components/form/fields/timeout/Timeout.tsx +0 -87
- package/src/components/form/fields/url/Url.stories.tsx +0 -94
- package/src/components/form/fields/url/Url.tsx +0 -85
- package/src/components/form/index.tsx +0 -49
- package/src/components/imageLightbox/ImageLightbox.stories.tsx +0 -238
- package/src/components/imageLightbox/ImageLightbox.tsx +0 -238
- package/src/components/imageLightbox/index.ts +0 -1
- package/src/components/log/Log.stories.tsx +0 -333
- package/src/components/log/Log.tsx +0 -285
- package/src/components/menu/Menu.stories.tsx +0 -155
- package/src/components/menu/Menu.tsx +0 -312
- package/src/components/qonsoleSmartInput/QonsoleSmartInput.stories.tsx +0 -797
- package/src/components/qonsoleSmartInput/QonsoleSmartInput.tsx +0 -105
- package/src/components/qonsoleSmartInput/index.ts +0 -16
- package/src/components/qonsoleSmartInput/qonsoleInserter.ts +0 -77
- package/src/components/qonsoleSmartInput/types.ts +0 -133
- package/src/components/qonsoleSmartInput/useQonsoleSession.ts +0 -124
- package/src/components/searchFilterBar/SearchFilterBar.stories.tsx +0 -62
- package/src/components/searchFilterBar/SearchFilterBar.tsx +0 -144
- package/src/components/searchFilterBar/index.ts +0 -1
- package/src/components/smartEditor/MarkdownDoc.tsx +0 -190
- package/src/components/smartEditor/SmartEditor.stories.tsx +0 -475
- package/src/components/smartEditor/SmartEditor.tsx +0 -808
- package/src/components/smartEditor/__fixtures__/mockLspServer.ts +0 -205
- package/src/components/smartEditor/helpers.ts +0 -217
- package/src/components/smartEditor/index.ts +0 -35
- package/src/components/smartEditor/styling.ts +0 -45
- package/src/components/smartEditor/types.ts +0 -211
- package/src/components/smartEditor/useLspAutocomplete.ts +0 -758
- package/src/components/smartEditor/useLspDiagnosticDecorations.ts +0 -125
- package/src/components/smartEditor/useLspHover.ts +0 -230
- package/src/components/smartEditor/useLspSemanticTokens.ts +0 -298
- package/src/components/smartEditor/useLspSession.ts +0 -231
- package/src/components/smartEditor/useLspSignatureHelp.ts +0 -198
- package/src/components/supportTicket/AttachmentChips.stories.tsx +0 -171
- package/src/components/supportTicket/AttachmentChips.tsx +0 -147
- package/src/components/supportTicket/InterfaceReferenceTags.stories.tsx +0 -257
- package/src/components/supportTicket/InterfaceReferenceTags.tsx +0 -130
- package/src/components/supportTicket/ReferencePicker.stories.tsx +0 -580
- package/src/components/supportTicket/ReferencePicker.tsx +0 -573
- package/src/components/supportTicket/TicketConversation.stories.tsx +0 -120
- package/src/components/supportTicket/TicketHeader.stories.tsx +0 -183
- package/src/components/supportTicket/TicketHeader.tsx +0 -248
- package/src/components/supportTicket/TicketMetaTags.stories.tsx +0 -103
- package/src/components/supportTicket/TicketMetaTags.tsx +0 -85
- package/src/components/supportTicket/TicketReplyBox.stories.tsx +0 -357
- package/src/components/supportTicket/TicketReplyBox.tsx +0 -172
- package/src/components/supportTicket/__fixtures__/kindMarks.ts +0 -28
- package/src/components/supportTicket/attachmentAccess.ts +0 -97
- package/src/components/supportTicket/fileToAttachment.ts +0 -24
- package/src/components/supportTicket/index.ts +0 -10
- package/src/components/supportTicket/meta.ts +0 -206
- package/src/components/supportTicket/ticketModel.ts +0 -131
- package/src/components/supportTicket/useLoadedImages.ts +0 -93
- package/src/components/ticketReferences/TicketReferences.stories.tsx +0 -341
- package/src/components/ticketReferences/TicketReferences.tsx +0 -914
- package/src/components/ticketReferences/index.ts +0 -2
- package/src/components/ticketThread/TicketThread.stories.tsx +0 -898
- package/src/components/ticketThread/TicketThread.tsx +0 -706
- package/src/components/ticketThread/index.ts +0 -6
- package/src/contexts/FetchContext.tsx +0 -25
- package/src/contexts/ReqraftContext.tsx +0 -9
- package/src/contexts/StorageContext.tsx +0 -33
- package/src/global.d.ts +0 -4
- package/src/helpers/allowedValues.ts +0 -268
- package/src/helpers/choiceChip.ts +0 -227
- package/src/helpers/common.ts +0 -326
- package/src/helpers/dpqlDetection.ts +0 -209
- package/src/helpers/expressions.ts +0 -140
- package/src/helpers/fieldDescription.ts +0 -39
- package/src/helpers/optionUiTypes.ts +0 -199
- package/src/helpers/options.ts +0 -150
- package/src/helpers/providerValue.ts +0 -125
- package/src/helpers/scrollbar.ts +0 -32
- package/src/helpers/singleLineString.ts +0 -62
- package/src/helpers/templateItems.ts +0 -81
- package/src/helpers/templateText.ts +0 -350
- package/src/helpers/templates.ts +0 -602
- package/src/helpers/validations.ts +0 -2085
- package/src/hooks/useArgSchema.ts +0 -37
- package/src/hooks/useCoarsePointer.ts +0 -30
- package/src/hooks/useFetch/useFetch.stories.tsx +0 -379
- package/src/hooks/useFetch/useFetch.tsx +0 -154
- package/src/hooks/usePhoneViewport.ts +0 -34
- package/src/hooks/useQorusTypes.ts +0 -233
- package/src/hooks/useReqraftProperty.ts +0 -16
- package/src/hooks/useStorage/useStorage.stories.tsx +0 -168
- package/src/hooks/useStorage/useStorage.ts +0 -35
- package/src/hooks/useTemplates.ts +0 -123
- package/src/hooks/useValidation.ts +0 -9
- package/src/hooks/useWebSocket/useWebSocket.ts +0 -224
- package/src/hooks/useWebSocket/useWebsocket.stories.tsx +0 -640
- package/src/hooks/useWhyDidYouUpdate.ts +0 -38
- package/src/index.tsx +0 -86
- package/src/providers/FetchProvider.tsx +0 -40
- package/src/providers/ReqraftProvider.tsx +0 -52
- package/src/providers/StorageProvider.tsx +0 -131
- package/src/stores/currentUser/currentUser.stories.tsx +0 -100
- package/src/stores/currentUser/currentUser.tsx +0 -94
- package/src/stories/Data/fileFieldArgSchema.json +0 -86
- package/src/stories/Tests/utils.ts +0 -320
- package/src/stories/storyNetwork.ts +0 -92
- package/src/stories/tracking.tsx +0 -206
- package/src/tracking/browser/attach.ts +0 -186
- package/src/tracking/browser/env.ts +0 -78
- package/src/tracking/core/consent.ts +0 -37
- package/src/tracking/core/engagement.ts +0 -47
- package/src/tracking/core/experiments.ts +0 -258
- package/src/tracking/core/hash.ts +0 -26
- package/src/tracking/core/ids.ts +0 -25
- package/src/tracking/core/observable.ts +0 -23
- package/src/tracking/core/queue.ts +0 -131
- package/src/tracking/core/sections.ts +0 -166
- package/src/tracking/core/storage.ts +0 -69
- package/src/tracking/core/tracker.ts +0 -417
- package/src/tracking/core/types.ts +0 -162
- package/src/tracking/core/utm.ts +0 -23
- package/src/tracking/index.ts +0 -72
- package/src/tracking/markup.ts +0 -17
- package/src/tracking/react/Experiment.tsx +0 -44
- package/src/tracking/react/TrackingProvider.tsx +0 -56
- package/src/tracking/react/hooks.ts +0 -106
- package/src/tracking/react/index.ts +0 -13
- package/src/tracking/testing.ts +0 -108
- package/src/tracking/ui/ExperimentCard.stories.tsx +0 -296
- package/src/tracking/ui/ExperimentCard.tsx +0 -667
- package/src/tracking/ui/ExperimentsOverlay.stories.tsx +0 -155
- package/src/tracking/ui/ExperimentsOverlay.tsx +0 -437
- package/src/tracking/ui/anchor.ts +0 -180
- package/src/tracking/ui/card.ts +0 -464
- package/src/tracking/ui/client.ts +0 -117
- package/src/tracking/ui/index.ts +0 -77
- package/src/tracking/ui/types.ts +0 -110
- package/src/tracking/ui/useExperimentsAdmin.ts +0 -103
- package/src/types/Form.ts +0 -29
- package/src/types.ts +0 -14
- package/src/utils/datetime.ts +0 -10
- package/src/utils/fetch.ts +0 -457
- package/src/utils/lspClient.ts +0 -711
- package/src/utils/lspClient.types.ts +0 -211
- package/src/utils/queryUnlessCancelled.ts +0 -28
- package/src/utils/websocket.ts +0 -293
- package/vite.config.ts +0 -58
- package/vitest.config.ts +0 -69
|
@@ -22,14 +22,16 @@ var __rest = (this && this.__rest) || function (s, e) {
|
|
|
22
22
|
return t;
|
|
23
23
|
};
|
|
24
24
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
25
|
-
exports.NumberFormField = exports.typedNumber = void 0;
|
|
25
|
+
exports.NumberFormField = exports.typedNumber = exports.numberKindOf = void 0;
|
|
26
26
|
var jsx_runtime_1 = require("react/jsx-runtime");
|
|
27
27
|
var reqore_1 = require("@qoretechnologies/reqore");
|
|
28
28
|
var react_1 = require("react");
|
|
29
29
|
var react_use_1 = require("react-use");
|
|
30
30
|
var emittedValues_1 = require("../emittedValues");
|
|
31
|
+
var pendingEdit_1 = require("../pendingEdit");
|
|
31
32
|
// Const-only usage at render time — the cycle (Number → TemplateField → Number)
|
|
32
33
|
// is safe the same way Field → AutoFormField → Field is.
|
|
34
|
+
var TemplateBrowser_1 = require("../template/TemplateBrowser");
|
|
33
35
|
var TemplateField_1 = require("../template/TemplateField");
|
|
34
36
|
/** A whole number as typed: an optional sign and digits. */
|
|
35
37
|
var WHOLE_NUMBER = /^[-+]?\d+$/;
|
|
@@ -41,53 +43,73 @@ var DECIMAL_NUMBER = /^[-+]?(\d+\.?\d*|\.\d+)([eE][-+]?\d+)?$/;
|
|
|
41
43
|
* (`@qty * 2`) is taken up by the field around it, and anything else is kept as typed for the form to flag
|
|
42
44
|
* as not a number. `parseInt` cut `12abc` to 12 without a word.
|
|
43
45
|
*/
|
|
46
|
+
/**
|
|
47
|
+
* The kind of number a field of this type holds: a decimal for `float` and `number` (and their soft and
|
|
48
|
+
* nullable forms), a whole number for anything else. A field handed no kind took every number for a whole
|
|
49
|
+
* one, so a float field reported `12.5` as the text "12.5" (qorus#646).
|
|
50
|
+
*/
|
|
51
|
+
var numberKindOf = function (type) {
|
|
52
|
+
return /float|number/.test(type !== null && type !== void 0 ? type : '') ? 'float' : 'int';
|
|
53
|
+
};
|
|
54
|
+
exports.numberKindOf = numberKindOf;
|
|
44
55
|
var typedNumber = function (text, type) {
|
|
45
56
|
var trimmed = text.trim();
|
|
46
57
|
return (type === 'int' ? WHOLE_NUMBER : DECIMAL_NUMBER).test(trimmed) ? Number(trimmed) : text;
|
|
47
58
|
};
|
|
48
59
|
exports.typedNumber = typedNumber;
|
|
49
60
|
var NumberFormField = function (_a) {
|
|
50
|
-
var onChange = _a.onChange, autoFocus = _a.autoFocus, _b = _a.type, type = _b === void 0 ? 'int' : _b, value = _a.value, templates = _a.templates, min_value = _a.min_value, max_value = _a.max_value,
|
|
61
|
+
var onChange = _a.onChange, autoFocus = _a.autoFocus, _b = _a.type, type = _b === void 0 ? 'int' : _b, value = _a.value, templates = _a.templates, min_value = _a.min_value, max_value = _a.max_value, rest = __rest(_a, ["onChange", "autoFocus", "type", "value", "templates", "min_value", "max_value"]);
|
|
51
62
|
// What is shown is what was typed; what the form gets is the number it writes, or the text when it writes
|
|
52
63
|
// none. Showing the number instead dropped a decimal point mid-typing: `10.` is 10, and `10.9` became `109`.
|
|
53
|
-
var
|
|
64
|
+
var _c = (0, react_1.useState)(value === undefined || value === null ? '' : String(value)), text = _c[0], setText = _c[1];
|
|
54
65
|
var localValue = text === '' ? '' : (0, exports.typedNumber)(text, type);
|
|
55
66
|
// The parent's echo of an emit still in flight is not a change: copying it
|
|
56
67
|
// over the local value lost what was typed since. See `EmittedValues`.
|
|
57
68
|
var emitted = (0, emittedValues_1.useEmittedValues)();
|
|
69
|
+
/* What the parent holds, as the field shows it: no value is the empty text. Compared with `undefined`,
|
|
70
|
+
the empty text of a field opened without a value was a change, and the field reported '' 100 ms after
|
|
71
|
+
it opened - the form counted itself edited, and an unset field got '' (qorus#646). */
|
|
72
|
+
var held = value !== null && value !== void 0 ? value : '';
|
|
73
|
+
/* What is typed and not yet reported: the pause below dies with the field, and Done closes the field
|
|
74
|
+
inside it. See `usePendingEdit`. */
|
|
75
|
+
var pending = (0, pendingEdit_1.usePendingEdit)(function (next) {
|
|
76
|
+
if (next !== emitted.settled(held)) {
|
|
77
|
+
emitted.record(next);
|
|
78
|
+
onChange === null || onChange === void 0 ? void 0 : onChange(next);
|
|
79
|
+
}
|
|
80
|
+
});
|
|
58
81
|
(0, react_1.useEffect)(function () {
|
|
59
82
|
if (emitted.isEcho(value)) {
|
|
60
83
|
return;
|
|
61
84
|
}
|
|
85
|
+
// the parent has a value of its own: what was typed before it is no edit to send any more
|
|
86
|
+
pending.release();
|
|
62
87
|
if (value !== localValue) {
|
|
63
88
|
setText(value === undefined || value === null ? '' : String(value));
|
|
64
89
|
}
|
|
65
90
|
}, [value]);
|
|
66
91
|
(0, react_use_1.useDebounce)(function () {
|
|
67
|
-
|
|
92
|
+
pending.release();
|
|
93
|
+
if (localValue !== emitted.settled(held)) {
|
|
68
94
|
emitted.record(localValue);
|
|
69
95
|
onChange === null || onChange === void 0 ? void 0 : onChange(localValue);
|
|
70
96
|
}
|
|
71
|
-
},
|
|
97
|
+
}, 100, [localValue, onChange]);
|
|
98
|
+
/** What the field will report for this text: the number it writes, or the text when it writes none. */
|
|
99
|
+
var reportedFor = function (raw) { return (raw === '' ? '' : (0, exports.typedNumber)(raw, type)); };
|
|
72
100
|
var handleChange = (0, react_1.useCallback)(function (rawValue) {
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
var next = nextText === '' ? '' : (0, exports.typedNumber)(nextText, type);
|
|
77
|
-
if (next !== value) {
|
|
78
|
-
emitted.record(next);
|
|
79
|
-
onChange === null || onChange === void 0 ? void 0 : onChange(next);
|
|
80
|
-
}
|
|
81
|
-
}
|
|
82
|
-
}, [debounceMs, type, value, onChange]);
|
|
101
|
+
setText(String(rawValue));
|
|
102
|
+
pending.hold(reportedFor(String(rawValue)));
|
|
103
|
+
}, [pending, type]);
|
|
83
104
|
var handleInputChange = (0, react_1.useCallback)(function (event) {
|
|
84
105
|
handleChange(event.target.value);
|
|
85
106
|
}, [handleChange]);
|
|
86
107
|
var handleResetClick = (0, react_1.useCallback)(function () {
|
|
87
108
|
setText('0');
|
|
109
|
+
pending.release();
|
|
88
110
|
emitted.record(0);
|
|
89
111
|
onChange === null || onChange === void 0 ? void 0 : onChange(0);
|
|
90
|
-
}, [onChange]);
|
|
112
|
+
}, [onChange, pending]);
|
|
91
113
|
var focusRules = (0, react_1.useMemo)(function () {
|
|
92
114
|
return autoFocus
|
|
93
115
|
? {
|
|
@@ -96,7 +118,10 @@ var NumberFormField = function (_a) {
|
|
|
96
118
|
}
|
|
97
119
|
: undefined;
|
|
98
120
|
}, [autoFocus]);
|
|
99
|
-
var handleItemSelect = (0, react_1.useCallback)(function (item) {
|
|
121
|
+
var handleItemSelect = (0, react_1.useCallback)(function (item) {
|
|
122
|
+
setText(String(item.value));
|
|
123
|
+
pending.hold(reportedFor(String(item.value)));
|
|
124
|
+
}, [pending, type]);
|
|
100
125
|
// The schema's bounds are the form's to check (a text input has no min or max); they are named in the
|
|
101
126
|
// props only to keep them off the DOM node.
|
|
102
127
|
void min_value;
|
|
@@ -104,7 +129,9 @@ var NumberFormField = function (_a) {
|
|
|
104
129
|
// IDE `NumberField` parity: with templates the input is wrapped in a
|
|
105
130
|
// focus-opened dropdown of the template values.
|
|
106
131
|
if (templates === null || templates === void 0 ? void 0 : templates.items) {
|
|
107
|
-
return (
|
|
132
|
+
return (
|
|
133
|
+
// the list a field's templates are browsed in (`TemplateBrowser`): the input keeps the keyboard
|
|
134
|
+
(0, jsx_runtime_1.jsx)(TemplateBrowser_1.TemplateBrowser, __assign({}, rest, { component: reqore_1.ReqoreInput, fluid: true, icon: 'MoneyDollarCircleLine', templates: templates, value: text, onItemSelect: handleItemSelect, onChange: handleInputChange,
|
|
108
135
|
// typed freely: a number input drops what is not part of a number, so a template or an expression
|
|
109
136
|
// could not be typed; the keyboard is still a numeric one
|
|
110
137
|
type: 'text', inputMode: type === 'int' ? 'numeric' : 'decimal', onClearClick: handleResetClick, focusRules: focusRules }, TemplateField_1.TemplatesListProps)));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Number.js","sourceRoot":"","sources":["../../../../../src/components/form/fields/number/Number.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,
|
|
1
|
+
{"version":3,"file":"Number.js","sourceRoot":"","sources":["../../../../../src/components/form/fields/number/Number.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,mDAAuD;AAGvD,+BAA+E;AAC/E,uCAAwC;AACxC,kDAAoD;AACpD,8CAAgD;AAChD,gFAAgF;AAChF,yDAAyD;AACzD,+DAA8D;AAC9D,2DAA+D;AAqB/D,4DAA4D;AAC5D,IAAM,YAAY,GAAG,YAAY,CAAC;AAClC,yFAAyF;AACzF,IAAM,cAAc,GAAG,yCAAyC,CAAC;AAEjE;;;;;GAKG;AACH;;;;GAIG;AACI,IAAM,YAAY,GAAG,UAAC,IAAa;IACxC,OAAA,cAAc,CAAC,IAAI,CAAC,IAAI,aAAJ,IAAI,cAAJ,IAAI,GAAI,EAAE,CAAC,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,KAAK;AAAjD,CAAiD,CAAC;AADvC,QAAA,YAAY,gBAC2B;AAE7C,IAAM,WAAW,GAAG,UAAC,IAAY,EAAE,IAAqB;IAC7D,IAAM,OAAO,GAAG,IAAI,CAAC,IAAI,EAAE,CAAC;IAC5B,OAAO,CAAC,IAAI,KAAK,KAAK,CAAC,CAAC,CAAC,YAAY,CAA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gBAAgB,EAC9B,QAAQ,EAAE,iBAAiB;YAC3B,kGAAkG;YAClG,0DAA0D;YAC1D,IAAI,EAAC,MAAM,EACX,SAAS,EAAE,IAAI,KAAK,KAAK,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,SAAS,EACjD,YAAY,EAAE,gBAAgB,EAC9B,UAAU,EAAE,UAAU,IAClB,kCAAkB,EACtB,CACH,CAAC;IACJ,CAAC;IAED,OAAO,CACL,uBAAC,oBAAW,aACV,KAAK,QACL,IAAI,EAAC,uBAAuB,EAC5B,KAAK,EAAE,IAAI,EACX,QAAQ,EAAE,iBAAiB;QAC3B,kDAAkD;QAClD,IAAI,EAAC,MAAM,EACX,SAAS,EAAE,IAAI,KAAK,KAAK,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,SAAS,EACjD,YAAY,EAAE,gBAAgB,EAC9B,UAAU,EAAE,UAAU,IAClB,IAAI,EACR,CACH,CAAC;AACJ,CAAC,CAAC;AA9IW,QAAA,eAAe,mBA8I1B;AAEF,kBAAe,uBAAe,CAAC"}
|
|
@@ -16,5 +16,5 @@ export interface IReqraftObjectFormFieldProps extends Omit<IReqoreTabsProps, 'on
|
|
|
16
16
|
export declare const ReqraftObjectFormFieldTextarea: ({ value, onChange, dataType, resultDataType, ...rest }: Partial<ILongStringFormFieldProps> & Pick<IReqraftObjectFormFieldProps, 'dataType'> & {
|
|
17
17
|
resultDataType: 'json' | 'yaml';
|
|
18
18
|
}) => import("react/jsx-runtime").JSX.Element;
|
|
19
|
-
export declare const ReqraftObjectFormField: import("react").MemoExoticComponent<({ onChange, value, type, dataType, resultDataType, editorProps, textareaProps, ...rest }: IReqraftObjectFormFieldProps) => import("react/jsx-runtime").JSX.Element>;
|
|
19
|
+
export declare const ReqraftObjectFormField: import("react").MemoExoticComponent<({ onChange, value, type, dataType, resultDataType, editorProps, textareaProps, disabled, ...rest }: IReqraftObjectFormFieldProps) => import("react/jsx-runtime").JSX.Element>;
|
|
20
20
|
//# sourceMappingURL=Object.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Object.d.ts","sourceRoot":"","sources":["../../../../../src/components/form/fields/object/Object.tsx"],"names":[],"mappings":";AAOA,OAAO,EAAE,gBAAgB,EAAE,MAAM,+CAA+C,CAAC;AACjF,OAAO,EAAE,gBAAgB,EAAc,MAAM,+CAA+C,CAAC;AAG7F,OAA4B,EAAE,yBAAyB,EAAE,MAAM,2BAA2B,CAAC;AAE3F,MAAM,WAAW,4BAA6B,SAAQ,IAAI,CAAC,gBAAgB,EAAE,UAAU,GAAG,MAAM,CAAC;IAC/F,IAAI,CAAC,EAAE,gBAAgB,CAAC,MAAM,CAAC,CAAC;IAChC,QAAQ,EAAE,CAAC,KAAK,EAAE,MAAM,GAAG,gBAAgB,CAAC,MAAM,CAAC,KAAK,IAAI,CAAC;IAC7D,KAAK,EAAE,MAAM,GAAG,gBAAgB,CAAC,MAAM,CAAC,CAAC;IAEzC,IAAI,EAAE,QAAQ,GAAG,OAAO,CAAC;IACzB,cAAc,CAAC,EAAE,QAAQ,GAAG,MAAM,GAAG,MAAM,CAAC;IAC5C,QAAQ,CAAC,EAAE,QAAQ,GAAG,MAAM,GAAG,MAAM,CAAC;IAEtC,WAAW,CAAC,EAAE,IAAI,CAAC,gBAAgB,EAAE,MAAM,GAAG,cAAc,CAAC,CAAC;IAC9D,aAAa,CAAC,EAAE,yBAAyB,CAAC;IAE1C,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB;AAED,eAAO,MAAM,8BAA8B,2DAMxC,QAAQ,yBAAyB,CAAC,GACnC,KAAK,4BAA4B,EAAE,UAAU,CAAC,GAAG;IAAE,cAAc,EAAE,MAAM,GAAG,MAAM,CAAA;CAAE,4CAsFrF,CAAC;AAEF,eAAO,MAAM,sBAAsB,
|
|
1
|
+
{"version":3,"file":"Object.d.ts","sourceRoot":"","sources":["../../../../../src/components/form/fields/object/Object.tsx"],"names":[],"mappings":";AAOA,OAAO,EAAE,gBAAgB,EAAE,MAAM,+CAA+C,CAAC;AACjF,OAAO,EAAE,gBAAgB,EAAc,MAAM,+CAA+C,CAAC;AAG7F,OAA4B,EAAE,yBAAyB,EAAE,MAAM,2BAA2B,CAAC;AAE3F,MAAM,WAAW,4BAA6B,SAAQ,IAAI,CAAC,gBAAgB,EAAE,UAAU,GAAG,MAAM,CAAC;IAC/F,IAAI,CAAC,EAAE,gBAAgB,CAAC,MAAM,CAAC,CAAC;IAChC,QAAQ,EAAE,CAAC,KAAK,EAAE,MAAM,GAAG,gBAAgB,CAAC,MAAM,CAAC,KAAK,IAAI,CAAC;IAC7D,KAAK,EAAE,MAAM,GAAG,gBAAgB,CAAC,MAAM,CAAC,CAAC;IAEzC,IAAI,EAAE,QAAQ,GAAG,OAAO,CAAC;IACzB,cAAc,CAAC,EAAE,QAAQ,GAAG,MAAM,GAAG,MAAM,CAAC;IAC5C,QAAQ,CAAC,EAAE,QAAQ,GAAG,MAAM,GAAG,MAAM,CAAC;IAEtC,WAAW,CAAC,EAAE,IAAI,CAAC,gBAAgB,EAAE,MAAM,GAAG,cAAc,CAAC,CAAC;IAC9D,aAAa,CAAC,EAAE,yBAAyB,CAAC;IAE1C,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB;AAED,eAAO,MAAM,8BAA8B,2DAMxC,QAAQ,yBAAyB,CAAC,GACnC,KAAK,4BAA4B,EAAE,UAAU,CAAC,GAAG;IAAE,cAAc,EAAE,MAAM,GAAG,MAAM,CAAA;CAAE,4CAsFrF,CAAC;AAEF,eAAO,MAAM,sBAAsB,2IAY9B,4BAA4B,6CAyHhC,CAAC"}
|
|
@@ -77,7 +77,9 @@ var ReqraftObjectFormFieldTextarea = function (_a) {
|
|
|
77
77
|
};
|
|
78
78
|
exports.ReqraftObjectFormFieldTextarea = ReqraftObjectFormFieldTextarea;
|
|
79
79
|
exports.ReqraftObjectFormField = (0, react_1.memo)(function (_a) {
|
|
80
|
-
var onChange = _a.onChange, value = _a.value, type = _a.type, dataType = _a.dataType, _b = _a.resultDataType, resultDataType = _b === void 0 ? dataType : _b, editorProps = _a.editorProps, textareaProps = _a.textareaProps,
|
|
80
|
+
var onChange = _a.onChange, value = _a.value, type = _a.type, dataType = _a.dataType, _b = _a.resultDataType, resultDataType = _b === void 0 ? dataType : _b, editorProps = _a.editorProps, textareaProps = _a.textareaProps,
|
|
81
|
+
// the field's own, for its buttons and editors; ReqoreTabs does not take it
|
|
82
|
+
disabled = _a.disabled, rest = __rest(_a, ["onChange", "value", "type", "dataType", "resultDataType", "editorProps", "textareaProps", "disabled"]);
|
|
81
83
|
var handleTreeDataChange = (0, react_1.useCallback)(function (data) {
|
|
82
84
|
switch (resultDataType) {
|
|
83
85
|
case 'json':
|
|
@@ -135,6 +137,6 @@ exports.ReqraftObjectFormField = (0, react_1.memo)(function (_a) {
|
|
|
135
137
|
show: resultDataType !== 'native',
|
|
136
138
|
size: rest.size,
|
|
137
139
|
},
|
|
138
|
-
], children: [(0, jsx_runtime_1.jsxs)(reqore_1.ReqoreTabsContent, { tabId: 'editor', children: [!treeData && ((0, jsx_runtime_1.jsxs)(reqore_1.ReqoreButton, { onClick: function () { return handleTreeDataChange(type === 'array' ? [] : {}); }, fixed: true, icon: 'AddLine', disabled:
|
|
140
|
+
], children: [(0, jsx_runtime_1.jsxs)(reqore_1.ReqoreTabsContent, { tabId: 'editor', children: [!treeData && ((0, jsx_runtime_1.jsxs)(reqore_1.ReqoreButton, { onClick: function () { return handleTreeDataChange(type === 'array' ? [] : {}); }, fixed: true, icon: 'AddLine', disabled: disabled, size: rest.size, children: ["New ", type === 'array' ? 'List' : 'Object'] })), treeData && ((0, jsx_runtime_1.jsx)(Tree_1.ReqoreTree, __assign({ disabled: disabled, data: treeData, onDataChange: handleTreeDataChange, editable: true, showControls: false, size: rest.size }, editorProps))), treeData && ((0, jsx_runtime_1.jsx)(reqore_1.ReqoreButton, { onClick: function () { return handleTreeDataChange(undefined); }, fixed: true, icon: 'CloseLine', disabled: disabled, size: rest.size, children: "Remove" }))] }), (0, jsx_runtime_1.jsx)(reqore_1.ReqoreTabsContent, { tabId: 'text', children: (0, jsx_runtime_1.jsx)(exports.ReqraftObjectFormFieldTextarea, __assign({ disabled: disabled, size: rest.size }, textareaProps, { value: textData, onChange: onChange, dataType: dataType, resultDataType: resultDataType })) })] })));
|
|
139
141
|
});
|
|
140
142
|
//# sourceMappingURL=Object.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Object.js","sourceRoot":"","sources":["../../../../../src/components/form/fields/object/Object.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,mDAMkC;AAElC,sEAA6F;AAC7F,oDAA6B;AAC7B,+BAA6D;AAC7D,yEAA2F;AAiBpF,IAAM,8BAA8B,GAAG,UAAC,EAOuC;IANpF,IAAA,KAAK,WAAA,EACL,QAAQ,cAAA,EACR,QAAQ,cAAA,EACR,cAAc,oBAAA,EACX,IAAI,cALsC,mDAM9C,CADQ;IAGD,IAAA,KAAyB,IAAA,gBAAQ,EAAC,KAAK,CAAC,EAAvC,UAAU,QAAA,EAAE,QAAQ,QAAmB,CAAC;IAE/C,IAAM,YAAY,GAAG,IAAA,mBAAW,EAAC,UAAC,QAAgB;QAChD,QAAQ,CAAC,QAAQ,CAAC,CAAC;IACrB,CAAC,EAAE,EAAE,CAAC,CAAC;IAEP,IAAM,UAAU,GAAG,IAAA,mBAAW,EAC5B,UAAC,IAAgC;QAC/B,QAAQ,IAAI,EAAE,CAAC;YACb,KAAK,MAAM;gBACT,OAAO,IAAI,CAAC,KAAK,CAAC,UAAU,CAAC,CAAC;YAChC,KAAK,MAAM;gBACT,OAAO,iBAAM,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC;YACjC;gBACE,OAAO,UAAU,CAAC,cAAc,CAAC,CAAC;QACtC,CAAC;IACH,CAAC,EACD,CAAC,QAAQ,EAAE,UAAU,EAAE,cAAc,CAAC,CACvC,CAAC;IAEF,IA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SAAS,CAAC,EAA/B,CAA+B,EAC9C,KAAK,QACL,IAAI,EAAC,WAAW,EAChB,QAAQ,EAAE,QAAQ,EAClB,IAAI,EAAE,IAAI,CAAC,IAAI,uBAGF,CAChB,IACiB,EACpB,uBAAC,0BAAiB,IAAC,KAAK,EAAC,MAAM,YAC7B,uBAAC,sCAA8B,aAC7B,QAAQ,EAAE,QAAQ,EAClB,IAAI,EAAE,IAAI,CAAC,IAAI,IACX,aAAa,IACjB,KAAK,EAAE,QAAQ,EACf,QAAQ,EAAE,QAAQ,EAClB,QAAQ,EAAE,QAAQ,EAClB,cAAc,EAAE,cAAiC,IACjD,GACgB,KACT,CACd,CAAC;AACJ,CAAC,CACF,CAAC"}
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
/** One field's edit that waits for the field's pause before it is reported (see `usePendingEdit`). */
|
|
3
|
+
interface IPendingEditMember {
|
|
4
|
+
flush: () => void;
|
|
5
|
+
discard: () => void;
|
|
6
|
+
}
|
|
7
|
+
/**
|
|
8
|
+
* The edits the fields of one editor still hold back, for whoever closes the editor: a read-first row's Done
|
|
9
|
+
* sends them before the row closes, its Cancel and Escape drop them.
|
|
10
|
+
*/
|
|
11
|
+
export interface IPendingEdits {
|
|
12
|
+
/** Sends every edit the fields in this scope still hold back, now. */
|
|
13
|
+
flush: () => void;
|
|
14
|
+
/** Drops every edit the fields in this scope still hold back: the edit is being thrown away. */
|
|
15
|
+
discard: () => void;
|
|
16
|
+
/** A field takes part for as long as it is mounted; what this returns ends that. */
|
|
17
|
+
join: (member: IPendingEditMember) => () => void;
|
|
18
|
+
}
|
|
19
|
+
export declare const createPendingEdits: () => IPendingEdits;
|
|
20
|
+
/** The scope the fields below report their held-back edits to: a read-first row's own editor. */
|
|
21
|
+
export declare const PendingEditsContext: import("react").Context<IPendingEdits>;
|
|
22
|
+
/** One `IPendingEdits` scope for the life of the component that closes the editor. */
|
|
23
|
+
export declare const usePendingEdits: () => IPendingEdits;
|
|
24
|
+
/** What a debounced field says about the edit it has not reported yet. */
|
|
25
|
+
export interface IPendingEdit<T> {
|
|
26
|
+
/** `value` is typed and waits for the pause: it is what a flush sends. */
|
|
27
|
+
hold: (value: T) => void;
|
|
28
|
+
/** Nothing waits any more: the pause reported it, it was reported at once, or a value came from outside. */
|
|
29
|
+
release: () => void;
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* The edit a debounced field holds back until its pause, which is never lost.
|
|
33
|
+
*
|
|
34
|
+
* A field that keeps a local copy of what is typed reports it after a short pause (react-use `useDebounce`).
|
|
35
|
+
* The pause's timer dies with the field, and a field goes away the moment its editor closes: a read-first
|
|
36
|
+
* row's Done closes the row, so a value typed and Done pressed inside the pause never reached the form - the
|
|
37
|
+
* row read as it had before, a required field still said "This field is required", and the host never heard
|
|
38
|
+
* of the edit (qorus#646).
|
|
39
|
+
*
|
|
40
|
+
* So the field says what it holds (`hold`) and when nothing is held any more (`release`), and the edit is
|
|
41
|
+
* sent with `send` (the latest one given):
|
|
42
|
+
* - when the editor's Done asks for it, before the row closes (`IPendingEdits.flush`);
|
|
43
|
+
* - when the field goes away any other way - another row opened in its place, a value tab switched - since
|
|
44
|
+
* every way out of an editor but Cancel keeps what was typed.
|
|
45
|
+
* Cancel and Escape drop it (`IPendingEdits.discard`): sent on the way out, the edit they are there to throw
|
|
46
|
+
* away would be committed by them.
|
|
47
|
+
*
|
|
48
|
+
* `send` is called only for a value held; it decides itself whether that is still a change.
|
|
49
|
+
*/
|
|
50
|
+
export declare const usePendingEdit: <T>(send: (value: T) => void) => IPendingEdit<T>;
|
|
51
|
+
export {};
|
|
52
|
+
//# sourceMappingURL=pendingEdit.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"pendingEdit.d.ts","sourceRoot":"","sources":["../../../../src/components/form/fields/pendingEdit.ts"],"names":[],"mappings":";AAGA,sGAAsG;AACtG,UAAU,kBAAkB;IAC1B,KAAK,EAAE,MAAM,IAAI,CAAC;IAClB,OAAO,EAAE,MAAM,IAAI,CAAC;CACrB;AAED;;;GAGG;AACH,MAAM,WAAW,aAAa;IAC5B,sEAAsE;IACtE,KAAK,EAAE,MAAM,IAAI,CAAC;IAClB,gGAAgG;IAChG,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB,oFAAoF;IACpF,IAAI,EAAE,CAAC,MAAM,EAAE,kBAAkB,KAAK,MAAM,IAAI,CAAC;CAClD;AAED,eAAO,MAAM,kBAAkB,QAAO,aAYrC,CAAC;AAEF,iGAAiG;AACjG,eAAO,MAAM,mBAAmB,wCAAsD,CAAC;AAEvF,sFAAsF;AACtF,eAAO,MAAM,eAAe,QAAO,aAMlC,CAAC;AAEF,0EAA0E;AAC1E,MAAM,WAAW,YAAY,CAAC,CAAC;IAC7B,0EAA0E;IAC1E,IAAI,EAAE,CAAC,KAAK,EAAE,CAAC,KAAK,IAAI,CAAC;IACzB,4GAA4G;IAC5G,OAAO,EAAE,MAAM,IAAI,CAAC;CACrB;AAED;;;;;;;;;;;;;;;;;;GAkBG;AACH,eAAO,MAAM,cAAc,YAAa,CAAC,KAAK,EAAE,CAAC,KAAK,IAAI,KAAG,aAAa,CAAC,CAiC1E,CAAC"}
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.usePendingEdit = exports.usePendingEdits = exports.PendingEditsContext = exports.createPendingEdits = void 0;
|
|
4
|
+
// Copyright 2026 Qore Technologies, s.r.o.
|
|
5
|
+
var react_1 = require("react");
|
|
6
|
+
var createPendingEdits = function () {
|
|
7
|
+
var members = new Set();
|
|
8
|
+
return {
|
|
9
|
+
flush: function () { return members.forEach(function (member) { return member.flush(); }); },
|
|
10
|
+
discard: function () { return members.forEach(function (member) { return member.discard(); }); },
|
|
11
|
+
join: function (member) {
|
|
12
|
+
members.add(member);
|
|
13
|
+
return function () {
|
|
14
|
+
members.delete(member);
|
|
15
|
+
};
|
|
16
|
+
},
|
|
17
|
+
};
|
|
18
|
+
};
|
|
19
|
+
exports.createPendingEdits = createPendingEdits;
|
|
20
|
+
/** The scope the fields below report their held-back edits to: a read-first row's own editor. */
|
|
21
|
+
exports.PendingEditsContext = (0, react_1.createContext)(undefined);
|
|
22
|
+
/** One `IPendingEdits` scope for the life of the component that closes the editor. */
|
|
23
|
+
var usePendingEdits = function () {
|
|
24
|
+
var ref = (0, react_1.useRef)();
|
|
25
|
+
if (!ref.current) {
|
|
26
|
+
ref.current = (0, exports.createPendingEdits)();
|
|
27
|
+
}
|
|
28
|
+
return ref.current;
|
|
29
|
+
};
|
|
30
|
+
exports.usePendingEdits = usePendingEdits;
|
|
31
|
+
/**
|
|
32
|
+
* The edit a debounced field holds back until its pause, which is never lost.
|
|
33
|
+
*
|
|
34
|
+
* A field that keeps a local copy of what is typed reports it after a short pause (react-use `useDebounce`).
|
|
35
|
+
* The pause's timer dies with the field, and a field goes away the moment its editor closes: a read-first
|
|
36
|
+
* row's Done closes the row, so a value typed and Done pressed inside the pause never reached the form - the
|
|
37
|
+
* row read as it had before, a required field still said "This field is required", and the host never heard
|
|
38
|
+
* of the edit (qorus#646).
|
|
39
|
+
*
|
|
40
|
+
* So the field says what it holds (`hold`) and when nothing is held any more (`release`), and the edit is
|
|
41
|
+
* sent with `send` (the latest one given):
|
|
42
|
+
* - when the editor's Done asks for it, before the row closes (`IPendingEdits.flush`);
|
|
43
|
+
* - when the field goes away any other way - another row opened in its place, a value tab switched - since
|
|
44
|
+
* every way out of an editor but Cancel keeps what was typed.
|
|
45
|
+
* Cancel and Escape drop it (`IPendingEdits.discard`): sent on the way out, the edit they are there to throw
|
|
46
|
+
* away would be committed by them.
|
|
47
|
+
*
|
|
48
|
+
* `send` is called only for a value held; it decides itself whether that is still a change.
|
|
49
|
+
*/
|
|
50
|
+
var usePendingEdit = function (send) {
|
|
51
|
+
var scope = (0, react_1.useContext)(exports.PendingEditsContext);
|
|
52
|
+
var sendRef = (0, react_1.useRef)(send);
|
|
53
|
+
sendRef.current = send;
|
|
54
|
+
var held = (0, react_1.useRef)(undefined);
|
|
55
|
+
var edit = (0, react_1.useMemo)(function () { return ({
|
|
56
|
+
hold: function (value) {
|
|
57
|
+
held.current = { value: value };
|
|
58
|
+
},
|
|
59
|
+
release: function () {
|
|
60
|
+
held.current = undefined;
|
|
61
|
+
},
|
|
62
|
+
flush: function () {
|
|
63
|
+
var pending = held.current;
|
|
64
|
+
if (pending) {
|
|
65
|
+
held.current = undefined;
|
|
66
|
+
sendRef.current(pending.value);
|
|
67
|
+
}
|
|
68
|
+
},
|
|
69
|
+
discard: function () {
|
|
70
|
+
held.current = undefined;
|
|
71
|
+
},
|
|
72
|
+
}); }, []);
|
|
73
|
+
(0, react_1.useEffect)(function () { return scope === null || scope === void 0 ? void 0 : scope.join(edit); }, [scope, edit]);
|
|
74
|
+
// Any other way out keeps what was typed.
|
|
75
|
+
(0, react_1.useEffect)(function () { return function () { return edit.flush(); }; }, [edit]);
|
|
76
|
+
return (0, react_1.useMemo)(function () { return ({ hold: edit.hold, release: edit.release }); }, [edit]);
|
|
77
|
+
};
|
|
78
|
+
exports.usePendingEdit = usePendingEdit;
|
|
79
|
+
//# sourceMappingURL=pendingEdit.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"pendingEdit.js","sourceRoot":"","sources":["../../../../src/components/form/fields/pendingEdit.ts"],"names":[],"mappings":";;;AAAA,2CAA2C;AAC3C,+BAA8E;AAqBvE,IAAM,kBAAkB,GAAG;IAChC,IAAM,OAAO,GAAG,IAAI,GAAG,EAAsB,CAAC;IAC9C,OAAO;QACL,KAAK,EAAE,cAAM,OAAA,OAAO,CAAC,OAAO,CAAC,UAAC,MAAM,IAAK,OAAA,MAAM,CAAC,KAAK,EAAE,EAAd,CAAc,CAAC,EAA3C,CAA2C;QACxD,OAAO,EAAE,cAAM,OAAA,OAAO,CAAC,OAAO,CAAC,UAAC,MAAM,IAAK,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E,OAAO,CAAC;CACpB;AAED,eAAO,MAAM,mBAAmB,0DAM7B,yBAAyB,
|
|
1
|
+
{"version":3,"file":"RadioGroup.d.ts","sourceRoot":"","sources":["../../../../../src/components/form/fields/radio-group/RadioGroup.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,sBAAsB,EAAE,MAAM,qDAAqD,CAAC;AAI7F,MAAM,WAAW,yBACf,SAAQ,IAAI,CAAC,sBAAsB,EAAE,UAAU,GAAG,eAAe,GAAG,UAAU,CAAC;IAC/E,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,CAAC,KAAK,EAAE,MAAM,GAAG,IAAI,CAAC;IAC9B,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB;AAED,eAAO,MAAM,mBAAmB,0DAM7B,yBAAyB,4CAmC3B,CAAC;AAEF,eAAe,mBAAmB,CAAC"}
|
|
@@ -26,22 +26,17 @@ exports.RadioGroupFormField = void 0;
|
|
|
26
26
|
var jsx_runtime_1 = require("react/jsx-runtime");
|
|
27
27
|
var reqore_1 = require("@qoretechnologies/reqore");
|
|
28
28
|
var react_1 = require("react");
|
|
29
|
-
var
|
|
29
|
+
var choicePicture_1 = require("../allowed-values/choicePicture");
|
|
30
30
|
var RadioGroupFormField = function (_a) {
|
|
31
31
|
var _items = _a.items, disabled = _a.disabled, onChange = _a.onChange, value = _a.value, rest = __rest(_a, ["items", "disabled", "onChange", "value"]);
|
|
32
|
-
var calm = (0, formAppearance_1.useIsCalmForm)();
|
|
33
32
|
var items = (0, react_1.useMemo)(function () {
|
|
34
|
-
return _items.map(function (item) { return (__assign(__assign({ margin: 'right',
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
:
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
uppercase: true,
|
|
42
|
-
textSize: 'small',
|
|
43
|
-
} }, item), { disabled: disabled || item.disabled })); });
|
|
44
|
-
}, [_items, calm]);
|
|
33
|
+
return _items.map(function (item) { return (__assign(__assign(__assign({ margin: 'right', labelEffect: {
|
|
34
|
+
spaced: 1,
|
|
35
|
+
weight: 'bold',
|
|
36
|
+
uppercase: true,
|
|
37
|
+
textSize: 'small',
|
|
38
|
+
} }, item), (0, choicePicture_1.pictureBesideTheName)(item.image, rest.size || 'normal', (0, choicePicture_1.choicePictureState)(item.value === value, _items.some(function (choice) { return choice.value === value; })))), { disabled: disabled || item.disabled })); });
|
|
39
|
+
}, [_items, value, rest.size]);
|
|
45
40
|
return ((0, jsx_runtime_1.jsx)(reqore_1.ReqoreRadioGroup, __assign({ items: items, disabled: disabled, onSelectClick: onChange, selected: value }, rest)));
|
|
46
41
|
};
|
|
47
42
|
exports.RadioGroupFormField = RadioGroupFormField;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RadioGroup.js","sourceRoot":"","sources":["../../../../../src/components/form/fields/radio-group/RadioGroup.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,mDAA4D;AAE5D,+BAAgC;AAChC,
|
|
1
|
+
{"version":3,"file":"RadioGroup.js","sourceRoot":"","sources":["../../../../../src/components/form/fields/radio-group/RadioGroup.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,mDAA4D;AAE5D,+BAAgC;AAChC,iEAA2F;AASpF,IAAM,mBAAmB,GAAG,UAAC,EAMR;IAL1B,IAAO,MAAM,WAAA,EACb,QAAQ,cAAA,EACR,QAAQ,cAAA,EACR,KAAK,WAAA,EACF,IAAI,cAL2B,0CAMnC,CADQ;IAEP,IAAM,KAAK,GAAoC,IAAA,eAAO,EACpD;QACE,OAAA,MAAM,CAAC,GAAG,CAAC,UAAC,IAAI,IAAK,OAAA,8BACnB,MAAM,EAAE,OAAO,EACf,WAAW,EAAE;gBACX,MAAM,EAAE,CAAC;gBACT,MAAM,EAAE,MAAM;gBACd,SAAS,EAAE,IAAI;gBACf,QAAQ,EAAE,OAAO;aAClB,IACE,IAAI,GAEJ,IAAA,oCAAoB,EACpB,IAA4B,CAAC,KAAK,EACnC,IAAI,CAAC,IAAI,IAAI,QAAQ,EACrB,IAAA,kCAAkB,EAChB,IAAI,CAAC,KAAK,KAAK,KAAK,EACpB,MAAM,CAAC,IAAI,CAAC,UAAC,MAAM,IAAK,OAAA,MAAM,CAAC,KAAK,KAAK,KAAK,EAAtB,CAAsB,CAAC,CAChD,CACF,KACD,QAAQ,EAAE,QAAQ,IAAI,IAAI,CAAC,QAAQ,IACnC,EAnBmB,CAmBnB,CAAC;IAnBH,CAmBG,EACL,CAAC,MAAM,EAAE,KAAK,EAAE,IAAI,CAAC,IAAI,CAAC,CAC3B,CAAC;IAEF,OAAO,CACL,uBAAC,yBAAgB,aACf,KAAK,EAAE,KAAK,EACZ,QAAQ,EAAE,QAAQ,EAClB,aAAa,EAAE,QAAQ,EACvB,QAAQ,EAAE,KAAK,IACX,IAAI,EACR,CACH,CAAC;AACJ,CAAC,CAAC;AAzCW,QAAA,mBAAmB,uBAyC9B;AAEF,kBAAe,2BAAmB,CAAC"}
|
|
@@ -3,6 +3,7 @@ import { IReqoreRichTextEditorProps } from '@qoretechnologies/reqore/dist/compon
|
|
|
3
3
|
import { IReqoreFormTemplates } from '@qoretechnologies/reqore/dist/components/Textarea';
|
|
4
4
|
import { IQorusAllowedValue } from '@qoretechnologies/ts-toolkit';
|
|
5
5
|
import { IChoiceChipBehavior } from '../../../../helpers/choiceChip';
|
|
6
|
+
import { ITemplateCatalogue } from '../../../../helpers/templateCatalogue';
|
|
6
7
|
export interface IRichTextFormFieldProps extends Omit<IReqoreRichTextEditorProps, 'onChange' | 'value' | 'tags' | 'actions'> {
|
|
7
8
|
/**
|
|
8
9
|
* A form field's OWN chips — not the editor's template catalogue, which this
|
|
@@ -21,6 +22,19 @@ export interface IRichTextFormFieldProps extends Omit<IReqoreRichTextEditorProps
|
|
|
21
22
|
onChange?: (value: string | IReqoreRichTextEditorProps['value']) => void;
|
|
22
23
|
allowTemplates?: boolean;
|
|
23
24
|
templates?: IReqoreFormTemplates;
|
|
25
|
+
/**
|
|
26
|
+
* The field's template catalogue, as Qorus gives it for the field's context (qorus#646: REST
|
|
27
|
+
* `getTemplateCatalogue`): the template contexts the field can use, each with its keys and whether it can be used
|
|
28
|
+
* whole. Offered as the "Template contexts" group of `templates`, in the picker and as it is typed.
|
|
29
|
+
*/
|
|
30
|
+
templateCatalogue?: ITemplateCatalogue;
|
|
31
|
+
/**
|
|
32
|
+
* The catalogue a chip is NAMED from, when it is wider than the `templates` offered: a typed field offers
|
|
33
|
+
* only the fields of its type, but a chip of any field in its value is named as the catalogue names it.
|
|
34
|
+
* Named from the offered list, a field not on it read as its reference's path ("record: pos").
|
|
35
|
+
* Defaults to `templates`.
|
|
36
|
+
*/
|
|
37
|
+
namingTemplates?: IReqoreFormTemplates;
|
|
24
38
|
/**
|
|
25
39
|
* What the value is. `richtext` (the default) stores the editor's document.
|
|
26
40
|
* `text` stores a plain string: each template reference in it is drawn as a
|
|
@@ -61,6 +75,11 @@ export interface IRichTextFormFieldProps extends Omit<IReqoreRichTextEditorProps
|
|
|
61
75
|
* Reqore's editor, which has no such prop.
|
|
62
76
|
*/
|
|
63
77
|
templateToken?: RegExp | string;
|
|
78
|
+
/**
|
|
79
|
+
* Whether the value takes a record whole (a field of any type, a hash): a record and a Qog state's data are then
|
|
80
|
+
* offered whole ("Use") as well as opened in the template picker. See `ITemplateTreeOptions.wholeRecords`.
|
|
81
|
+
*/
|
|
82
|
+
wholeRecords?: boolean;
|
|
64
83
|
}
|
|
65
84
|
/**
|
|
66
85
|
* What each offered template value is FOR, keyed by the value itself.
|
|
@@ -73,5 +92,5 @@ export interface IRichTextFormFieldProps extends Omit<IReqoreRichTextEditorProps
|
|
|
73
92
|
* Exported so the mapping is assertable without rendering a Slate editor.
|
|
74
93
|
*/
|
|
75
94
|
export declare const getChipTooltipDescriptions: (templates?: IReqoreFormTemplates) => Record<string, string>;
|
|
76
|
-
export declare const RichTextFormField: import("react").MemoExoticComponent<({ value, onChange, allowTemplates, templates, valueFormat, singleLine, templateToken, allowed_values, choiceChip, ...rest }: IRichTextFormFieldProps) => import("react/jsx-runtime").JSX.Element>;
|
|
95
|
+
export declare const RichTextFormField: import("react").MemoExoticComponent<({ value, onChange, allowTemplates, templates, templateCatalogue: ownCatalogue, namingTemplates, valueFormat, singleLine, templateToken, allowed_values, choiceChip, wholeRecords, ...rest }: IRichTextFormFieldProps) => import("react/jsx-runtime").JSX.Element>;
|
|
77
96
|
//# sourceMappingURL=RichText.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RichText.d.ts","sourceRoot":"","sources":["../../../../../src/components/form/fields/rich-text/RichText.tsx"],"names":[],"mappings":";AAAA,OAAO,EACL,0BAA0B,EAG3B,MAAM,yDAAyD,CAAC;AACjE,OAAO,EAAE,oBAAoB,EAAE,MAAM,mDAAmD,CAAC;
|
|
1
|
+
{"version":3,"file":"RichText.d.ts","sourceRoot":"","sources":["../../../../../src/components/form/fields/rich-text/RichText.tsx"],"names":[],"mappings":";AAAA,OAAO,EACL,0BAA0B,EAG3B,MAAM,yDAAyD,CAAC;AACjE,OAAO,EAAE,oBAAoB,EAAE,MAAM,mDAAmD,CAAC;AAEzF,OAAO,EAAE,kBAAkB,EAAE,MAAM,8BAA8B,CAAC;AAUlE,OAAO,EAOL,mBAAmB,EAGpB,MAAM,gCAAgC,CAAC;AAqCxC,OAAO,EAAE,kBAAkB,EAAyB,MAAM,uCAAuC,CAAC;AA0BlG,MAAM,WAAW,uBAAwB,SAAQ,IAAI,CACnD,0BAA0B,EAC1B,UAAU,GAAG,OAAO,GAAG,MAAM,GAAG,SAAS,CAC1C;IACC;;;;;;;;;;;OAWG;IACH,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,KAAK,CAAC,EAAE,MAAM,GAAG,0BAA0B,CAAC,OAAO,CAAC,CAAC;IACrD,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,GAAG,0BAA0B,CAAC,OAAO,CAAC,KA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