@qoretechnologies/reqraft 0.10.64 → 0.10.65-pr.137.g62fcecc
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/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 +25 -5
- package/dist/components/dpqlEditor/DpqlEditor.js.map +1 -1
- package/dist/components/dpqlEditor/dpqlHelpers.d.ts +36 -5
- package/dist/components/dpqlEditor/dpqlHelpers.d.ts.map +1 -1
- package/dist/components/dpqlEditor/dpqlHelpers.js +340 -62
- package/dist/components/dpqlEditor/dpqlHelpers.js.map +1 -1
- package/dist/components/dpqlEditor/dpqlTags.d.ts +11 -7
- package/dist/components/dpqlEditor/dpqlTags.d.ts.map +1 -1
- package/dist/components/dpqlEditor/dpqlTags.js +35 -17
- package/dist/components/dpqlEditor/dpqlTags.js.map +1 -1
- package/dist/components/dpqlEditor/types.d.ts +54 -8
- package/dist/components/dpqlEditor/types.d.ts.map +1 -1
- package/dist/components/dpqlEditor/useDpqlSession.d.ts +2 -2
- package/dist/components/dpqlEditor/useDpqlSession.d.ts.map +1 -1
- package/dist/components/dpqlEditor/useDpqlSession.js +16 -7
- 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 +207 -97
- 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 +29 -3
- package/dist/components/form/engine/CompactToolbar.js.map +1 -1
- package/dist/components/form/engine/FormEngine.d.ts +58 -10
- package/dist/components/form/engine/FormEngine.d.ts.map +1 -1
- package/dist/components/form/engine/FormEngine.js +542 -112
- 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.map +1 -1
- package/dist/components/form/engine/OptionFieldMessages.js +24 -3
- package/dist/components/form/engine/OptionFieldMessages.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 +12 -6
- package/dist/components/form/engine/_structuredData/SchemaDataView.js.map +1 -1
- package/dist/components/form/engine/compactRowContext.d.ts +21 -0
- 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 +20 -10
- package/dist/components/form/engine/compactRowStyles.d.ts.map +1 -1
- package/dist/components/form/engine/compactRowStyles.js +36 -30
- 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/readFirst.d.ts +24 -8
- package/dist/components/form/engine/readFirst.d.ts.map +1 -1
- package/dist/components/form/engine/readFirst.js +77 -109
- 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 +2 -0
- package/dist/components/form/engine/rowFocus.d.ts.map +1 -1
- package/dist/components/form/engine/rowFocus.js +26 -3
- 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 +3 -3
- package/dist/components/form/expressions/DpqlRendering.js.map +1 -1
- package/dist/components/form/expressions/ExpressionField.d.ts +64 -3
- package/dist/components/form/expressions/ExpressionField.d.ts.map +1 -1
- package/dist/components/form/expressions/ExpressionField.js +459 -100
- 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 +27 -9
- 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.map +1 -1
- package/dist/components/form/expressions/builder/confirmMismatchedTypesModal.js +5 -4
- 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 +6 -3
- package/dist/components/form/expressions/builder/confirmUnsupportedTypeModal.js.map +1 -1
- package/dist/components/form/expressions/builder/index.d.ts +24 -2
- package/dist/components/form/expressions/builder/index.d.ts.map +1 -1
- package/dist/components/form/expressions/builder/index.js +138 -78
- 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/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 +40 -9
- 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 +7 -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 +26 -9
- package/dist/components/form/fields/Field.js.map +1 -1
- package/dist/components/form/fields/allowed-values/AllowedValues.d.ts.map +1 -1
- package/dist/components/form/fields/allowed-values/AllowedValues.js +17 -4
- package/dist/components/form/fields/allowed-values/AllowedValues.js.map +1 -1
- 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 +20 -1
- package/dist/components/form/fields/auto/AutoFormField.d.ts.map +1 -1
- package/dist/components/form/fields/auto/AutoFormField.js +81 -36
- 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.map +1 -1
- package/dist/components/form/fields/long-string/LongString.js +17 -3
- 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 +4 -1
- package/dist/components/form/fields/multi-select/MultiSelectFormField.js.map +1 -1
- package/dist/components/form/fields/number/Number.d.ts +6 -0
- package/dist/components/form/fields/number/Number.d.ts.map +1 -1
- package/dist/components/form/fields/number/Number.js +41 -6
- 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/rich-text/RichText.d.ts +8 -1
- package/dist/components/form/fields/rich-text/RichText.d.ts.map +1 -1
- package/dist/components/form/fields/rich-text/RichText.js +188 -82
- 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 +49 -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 +2 -0
- package/dist/components/form/fields/select/Select.d.ts.map +1 -1
- package/dist/components/form/fields/select/Select.js +19 -10
- package/dist/components/form/fields/select/Select.js.map +1 -1
- package/dist/components/form/fields/select/SelectCollection.d.ts.map +1 -1
- package/dist/components/form/fields/select/SelectCollection.js +8 -2
- 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 +13 -5
- package/dist/components/form/fields/template/ReadOnlyTemplateTag.js.map +1 -1
- package/dist/components/form/fields/template/TemplateBrowser.d.ts +22 -0
- package/dist/components/form/fields/template/TemplateBrowser.d.ts.map +1 -0
- package/dist/components/form/fields/template/TemplateBrowser.js +54 -0
- package/dist/components/form/fields/template/TemplateBrowser.js.map +1 -0
- package/dist/components/form/fields/template/TemplateField.d.ts +102 -1
- package/dist/components/form/fields/template/TemplateField.d.ts.map +1 -1
- package/dist/components/form/fields/template/TemplateField.js +572 -85
- package/dist/components/form/fields/template/TemplateField.js.map +1 -1
- 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 +9 -11
- package/dist/components/form/fields/template/TemplateText.js.map +1 -1
- 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 +10 -0
- package/dist/components/form/index.d.ts.map +1 -1
- package/dist/components/form/index.js +23 -1
- package/dist/components/form/index.js.map +1 -1
- package/dist/components/imageLightbox/ImageLightbox.d.ts.map +1 -1
- package/dist/components/imageLightbox/ImageLightbox.js +19 -7
- 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 +16 -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 +43 -0
- package/dist/components/smartEditor/CompletionMenu.d.ts.map +1 -0
- package/dist/components/smartEditor/CompletionMenu.js +196 -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 +164 -180
- package/dist/components/smartEditor/SmartEditor.js.map +1 -1
- package/dist/components/smartEditor/completionStyle.d.ts +27 -0
- package/dist/components/smartEditor/completionStyle.d.ts.map +1 -0
- package/dist/components/smartEditor/completionStyle.js +68 -0
- package/dist/components/smartEditor/completionStyle.js.map +1 -0
- package/dist/components/smartEditor/index.d.ts +5 -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 +18 -0
- package/dist/components/smartEditor/templateCompletions.d.ts.map +1 -0
- package/dist/components/smartEditor/templateCompletions.js +94 -0
- package/dist/components/smartEditor/templateCompletions.js.map +1 -0
- package/dist/components/smartEditor/typedReferences.d.ts +21 -0
- package/dist/components/smartEditor/typedReferences.d.ts.map +1 -0
- package/dist/components/smartEditor/typedReferences.js +82 -0
- package/dist/components/smartEditor/typedReferences.js.map +1 -0
- package/dist/components/smartEditor/types.d.ts +33 -1
- package/dist/components/smartEditor/types.d.ts.map +1 -1
- package/dist/components/smartEditor/useLspAutocomplete.d.ts +32 -0
- package/dist/components/smartEditor/useLspAutocomplete.d.ts.map +1 -1
- package/dist/components/smartEditor/useLspAutocomplete.js +228 -118
- 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 +279 -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/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/ReferencePicker.d.ts +9 -2
- package/dist/components/supportTicket/ReferencePicker.d.ts.map +1 -1
- package/dist/components/supportTicket/ReferencePicker.js +27 -6
- 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 +20 -2
- package/dist/components/supportTicket/TicketHeader.js.map +1 -1
- package/dist/components/supportTicket/TicketMetaTags.d.ts +1 -1
- package/dist/components/ticketReferences/TicketReferences.d.ts.map +1 -1
- package/dist/components/ticketReferences/TicketReferences.js +9 -4
- 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 +38 -13
- package/dist/components/ticketThread/TicketThread.js.map +1 -1
- package/dist/helpers/descriptionTooltip.d.ts +43 -0
- package/dist/helpers/descriptionTooltip.d.ts.map +1 -0
- package/dist/helpers/descriptionTooltip.js +70 -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 +107 -2
- package/dist/helpers/expressions.d.ts.map +1 -1
- package/dist/helpers/expressions.js +223 -8
- 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/qorusTypeCatalogue.d.ts +53 -0
- package/dist/helpers/qorusTypeCatalogue.d.ts.map +1 -0
- package/dist/helpers/qorusTypeCatalogue.js +262 -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/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.js +5 -2
- package/dist/helpers/templateText.js.map +1 -1
- package/dist/helpers/templates.d.ts +41 -14
- package/dist/helpers/templates.d.ts.map +1 -1
- package/dist/helpers/templates.js +152 -9
- package/dist/helpers/templates.js.map +1 -1
- package/dist/helpers/validations.d.ts +9 -0
- package/dist/helpers/validations.d.ts.map +1 -1
- package/dist/helpers/validations.js +139 -33
- package/dist/helpers/validations.js.map +1 -1
- package/dist/hooks/useQorusTypes.d.ts +7 -15
- package/dist/hooks/useQorusTypes.d.ts.map +1 -1
- package/dist/hooks/useQorusTypes.js +25 -166
- 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 +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -0
- 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/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 -5
- 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/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 -2620
- package/src/components/form/engine/CompactToolbar.tsx +0 -330
- package/src/components/form/engine/FormEngine.stories.tsx +0 -9920
- package/src/components/form/engine/FormEngine.tsx +0 -4569
- package/src/components/form/engine/FormEngineRemote.stories.tsx +0 -679
- package/src/components/form/engine/FormEngineStickyHeaders.stories.tsx +0 -331
- package/src/components/form/engine/FormFieldsSkeleton.tsx +0 -82
- package/src/components/form/engine/OptionFieldMessages.tsx +0 -477
- 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 -742
- 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 -148
- package/src/components/form/engine/compactRowStyles.ts +0 -898
- package/src/components/form/engine/compactToolbarContext.ts +0 -69
- 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 -1077
- 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 -101
- 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 -137
- 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/Field.stories.tsx +0 -143
- package/src/components/form/fields/Field.tsx +0 -732
- package/src/components/form/fields/allowed-values/AllowedValues.tsx +0 -297
- 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 -1164
- 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 -120
- package/src/components/form/fields/long-string/LongString.tsx +0 -130
- 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 -139
- package/src/components/form/fields/number/Number.stories.tsx +0 -159
- package/src/components/form/fields/number/Number.tsx +0 -160
- 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 -46
- 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 -1717
- 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 -47
- package/src/components/imageLightbox/ImageLightbox.stories.tsx +0 -238
- package/src/components/imageLightbox/ImageLightbox.tsx +0 -236
- 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 -129
- package/src/components/supportTicket/ReferencePicker.stories.tsx +0 -584
- package/src/components/supportTicket/ReferencePicker.tsx +0 -563
- package/src/components/supportTicket/TicketConversation.stories.tsx +0 -121
- package/src/components/supportTicket/TicketHeader.stories.tsx +0 -183
- package/src/components/supportTicket/TicketHeader.tsx +0 -247
- 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 -354
- package/src/components/supportTicket/TicketReplyBox.tsx +0 -150
- 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 -73
- package/src/components/ticketReferences/TicketReferences.stories.tsx +0 -315
- package/src/components/ticketReferences/TicketReferences.tsx +0 -906
- package/src/components/ticketReferences/index.ts +0 -2
- package/src/components/ticketThread/TicketThread.stories.tsx +0 -829
- package/src/components/ticketThread/TicketThread.tsx +0 -719
- 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 -249
- 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/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 -61
- 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
|
@@ -107,6 +107,7 @@ var validations_1 = require("../../../helpers/validations");
|
|
|
107
107
|
var templates_1 = require("../../../helpers/templates");
|
|
108
108
|
var common_1 = require("../../../helpers/common");
|
|
109
109
|
var templateText_1 = require("../../../helpers/templateText");
|
|
110
|
+
var pendingEdit_1 = require("../fields/pendingEdit");
|
|
110
111
|
var ReadOnlyTemplateTag_1 = require("../fields/template/ReadOnlyTemplateTag");
|
|
111
112
|
var TemplateText_1 = require("../fields/template/TemplateText");
|
|
112
113
|
var codeSize_1 = require("../../codeSize");
|
|
@@ -121,9 +122,13 @@ var rowFocus_1 = require("./rowFocus");
|
|
|
121
122
|
var rowOpenPicker_1 = require("./rowOpenPicker");
|
|
122
123
|
var SchemaDataView_1 = require("./_structuredData/SchemaDataView");
|
|
123
124
|
var queryUnlessCancelled_1 = require("../../../utils/queryUnlessCancelled");
|
|
125
|
+
var markdownText_1 = require("../../../helpers/markdownText");
|
|
124
126
|
var readFirst_1 = require("./readFirst");
|
|
125
127
|
var StructuredDataView_1 = require("./_structuredData/StructuredDataView");
|
|
126
128
|
var DpqlRendering_1 = require("../expressions/DpqlRendering");
|
|
129
|
+
var argumentPresence_1 = require("../expressions/argumentPresence");
|
|
130
|
+
var colorValue_1 = require("../../colorValue");
|
|
131
|
+
var hoveringPointer_1 = require("../../../helpers/hoveringPointer");
|
|
127
132
|
/**
|
|
128
133
|
* Does this markdown value have more document in it than one row can show?
|
|
129
134
|
*
|
|
@@ -209,6 +214,8 @@ var richtextItemText = function (item) {
|
|
|
209
214
|
: undefined;
|
|
210
215
|
};
|
|
211
216
|
exports.richtextItemText = richtextItemText;
|
|
217
|
+
/** The status boxes by name, as their headers say them. */
|
|
218
|
+
var BOX_NAMES = { attention: 'Needs attention', set: 'Set', optional: 'Optional' };
|
|
212
219
|
exports.CompactRow = (0, react_1.memo)(function (_a) {
|
|
213
220
|
var _b;
|
|
214
221
|
var _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q;
|
|
@@ -225,6 +232,8 @@ exports.CompactRow = (0, react_1.memo)(function (_a) {
|
|
|
225
232
|
absorbedName;
|
|
226
233
|
};
|
|
227
234
|
var codePreviewRenderer = (0, use_context_selector_1.useContextSelector)(compactRowContext_1.CompactRowContext, function (v) { return v.codePreviewRenderer; });
|
|
235
|
+
var readSummaries = (0, use_context_selector_1.useContextSelector)(compactRowContext_1.CompactRowContext, function (v) { return v.readSummaries; });
|
|
236
|
+
var cardEditorTypes = (0, use_context_selector_1.useContextSelector)(compactRowContext_1.CompactRowContext, function (v) { return v.cardEditorTypes; });
|
|
228
237
|
var markdownRenderer = (0, markdownRendererContext_1.useMarkdownRenderer)();
|
|
229
238
|
var operators = (0, use_context_selector_1.useContextSelector)(compactRowContext_1.CompactRowContext, function (v) { return v.operators; });
|
|
230
239
|
var focusedEditing = (0, use_context_selector_1.useContextSelector)(compactRowContext_1.CompactRowContext, function (v) { return v.focusedEditing; });
|
|
@@ -233,6 +242,8 @@ exports.CompactRow = (0, react_1.memo)(function (_a) {
|
|
|
233
242
|
var isExpanded = (0, use_context_selector_1.useContextSelector)(compactRowContext_1.CompactRowContext, function (v) {
|
|
234
243
|
return v.expandedOptions.includes(optionName);
|
|
235
244
|
});
|
|
245
|
+
// the box this open field moves to when it is closed, when that is not the one it is shown in
|
|
246
|
+
var movesTo = (0, use_context_selector_1.useContextSelector)(compactRowContext_1.CompactRowContext, function (v) { var _a; return (_a = v.heldOptions) === null || _a === void 0 ? void 0 : _a[optionName]; });
|
|
236
247
|
var isHighlighted = (0, use_context_selector_1.useContextSelector)(compactRowContext_1.CompactRowContext, function (v) {
|
|
237
248
|
return v.highlightedOptions.includes(optionName);
|
|
238
249
|
});
|
|
@@ -291,6 +302,7 @@ exports.CompactRow = (0, react_1.memo)(function (_a) {
|
|
|
291
302
|
var renderOption = (0, use_context_selector_1.useContextSelector)(compactRowContext_1.CompactRowContext, function (v) { return v.renderOption; });
|
|
292
303
|
var theme = (0, use_context_selector_1.useContextSelector)(compactRowContext_1.CompactRowContext, function (v) { return v.theme; });
|
|
293
304
|
var cMuted = (0, use_context_selector_1.useContextSelector)(compactRowContext_1.CompactRowContext, function (v) { return v.cMuted; });
|
|
305
|
+
var rowInks = (0, use_context_selector_1.useContextSelector)(compactRowContext_1.CompactRowContext, function (v) { return v.rowInks; });
|
|
294
306
|
var templates = (0, use_context_selector_1.useContextSelector)(compactRowContext_1.CompactRowContext, function (v) { return v.templates; });
|
|
295
307
|
var cKey = (0, use_context_selector_1.useContextSelector)(compactRowContext_1.CompactRowContext, function (v) { return v.cKey; });
|
|
296
308
|
var cDivider = (0, use_context_selector_1.useContextSelector)(compactRowContext_1.CompactRowContext, function (v) { return v.cDivider; });
|
|
@@ -300,7 +312,7 @@ exports.CompactRow = (0, react_1.memo)(function (_a) {
|
|
|
300
312
|
var cInfo = (0, use_context_selector_1.useContextSelector)(compactRowContext_1.CompactRowContext, function (v) { return v.cInfo; });
|
|
301
313
|
// A markdown value renders as a document in the row's inset; the host's
|
|
302
314
|
// renderer when it supplied one, reqraft's own otherwise.
|
|
303
|
-
// Value-cell content:
|
|
315
|
+
// Value-cell content: color adds a swatch, file an icon + size; hash keeps
|
|
304
316
|
// its "N fields" summary (sub-fields reveal beneath the row).
|
|
305
317
|
var renderReadFirstValue = function (field, schema, formatted,
|
|
306
318
|
// An editable row gets one line and an ellipsis — its value line is a
|
|
@@ -314,6 +326,10 @@ exports.CompactRow = (0, react_1.memo)(function (_a) {
|
|
|
314
326
|
var textStyle = full ?
|
|
315
327
|
{ whiteSpace: 'pre-wrap', overflowWrap: 'anywhere' }
|
|
316
328
|
: { overflow: 'hidden', textOverflow: 'ellipsis', whiteSpace: 'nowrap' };
|
|
329
|
+
// The expression the value holds, in either shape the editor stores it: the flag on the option, or
|
|
330
|
+
// the envelope nested in its value as a reloaded draft has it.
|
|
331
|
+
var expressionAst = (0, readFirst_1.getExpressionAst)(field);
|
|
332
|
+
var isExpression = !!(field === null || field === void 0 ? void 0 : field.is_expression) || expressionAst !== undefined;
|
|
317
333
|
/* A row has to SAY when its value is an expression.
|
|
318
334
|
|
|
319
335
|
Reported from the live IDE: an author accepted the *Use as expression*
|
|
@@ -326,7 +342,7 @@ exports.CompactRow = (0, react_1.memo)(function (_a) {
|
|
|
326
342
|
The same Σ the expression editor uses, so the mark means the same thing
|
|
327
343
|
wherever it appears. */
|
|
328
344
|
var withExpressionMarker = function (rendered) {
|
|
329
|
-
if (!
|
|
345
|
+
if (!isExpression) {
|
|
330
346
|
return rendered;
|
|
331
347
|
}
|
|
332
348
|
return ((0, jsx_runtime_1.jsxs)("span", { style: __assign(__assign({}, wrapStyle), { gap: 4 }), children: [(0, jsx_runtime_1.jsx)(reqore_1.ReqoreIcon, { icon: 'Functions', size: 'tiny',
|
|
@@ -339,13 +355,43 @@ exports.CompactRow = (0, react_1.memo)(function (_a) {
|
|
|
339
355
|
rule, which reqore has no prop for, stays inline. */
|
|
340
356
|
effect: { opacity: 0.7 }, style: { flexShrink: 0 }, tooltip: 'This value is an expression' }), rendered] }));
|
|
341
357
|
};
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
358
|
+
// Template value ($local:…): the read-only template picker — the SAME chip
|
|
359
|
+
// TemplateField renders when disabled, so a template reads identically here
|
|
360
|
+
// and in the editor (qorus-ide intent scheme: info / qorus purple).
|
|
361
|
+
//
|
|
362
|
+
// A field may also declare templates OF ITS OWN, and a value drawn from
|
|
363
|
+
// that list is just as much a template even when it does not look like
|
|
364
|
+
// `$name:key` — `isValueTemplate` is a guess at the shape of the built-in
|
|
365
|
+
// grammar, and a host's own grammar (a Qorus test's `$.order.id`) fails it.
|
|
366
|
+
// Asking the field's list whether it CONTAINS the value settles it without
|
|
367
|
+
// guessing at syntax, and hands back the entry whose label the chip prints,
|
|
368
|
+
// so a reference reads as the name it was chosen by here as well as in the
|
|
369
|
+
// editor rather than as a raw path.
|
|
370
|
+
var ownTemplates = (_a = schema === null || schema === void 0 ? void 0 : schema.templates) !== null && _a !== void 0 ? _a : templates;
|
|
371
|
+
// The grammar the field declares its references in, when it speaks one of
|
|
372
|
+
// its own — the same schema key its rich-text editor is given.
|
|
373
|
+
var templateGrammar = schema === null || schema === void 0 ? void 0 : schema.templateToken;
|
|
374
|
+
/* A template or an expression is shown as one, whatever the field's type, so these two come before
|
|
375
|
+
any type draws a value of its own (qorus#646). A color's branch came first and called a template
|
|
376
|
+
or an expression on a color option "Set"; a file's printed the raw reference as a file name. */
|
|
377
|
+
if (typeof (field === null || field === void 0 ? void 0 : field.value) === 'string' &&
|
|
378
|
+
!isExpression &&
|
|
379
|
+
((0, templates_1.isValueTemplate)(field.value) || !!(0, templates_1.findTemplate)(ownTemplates !== null && ownTemplates !== void 0 ? ownTemplates : {}, field.value))) {
|
|
380
|
+
return (0, jsx_runtime_1.jsx)(ReadOnlyTemplateTag_1.ReadOnlyTemplateTag, { value: field.value, templates: ownTemplates });
|
|
381
|
+
}
|
|
382
|
+
// An expression reads as DPQL wherever it is shown without being edited:
|
|
383
|
+
// the same rendering its Explain panel and Preview use — monospace,
|
|
384
|
+
// colored by the language server, template references as chips — so a
|
|
385
|
+
// collapsed row and the editor it opens never disagree about what the
|
|
386
|
+
// value looks like. See `DpqlRendering`. In either shape the editor stores
|
|
387
|
+
// it: the flag on the option, or the envelope nested in its value as a
|
|
388
|
+
// reloaded draft has it (`getExpressionAst`).
|
|
389
|
+
if (isExpression && formatted) {
|
|
390
|
+
return withExpressionMarker((0, jsx_runtime_1.jsx)("span", { style: __assign({ minWidth: 0, flex: '1 1 auto' }, (full ? {} : { overflow: 'hidden' })), children: (0, jsx_runtime_1.jsx)(DpqlRendering_1.DpqlRendering, { text: formatted, templates: ownTemplates }) }));
|
|
391
|
+
}
|
|
392
|
+
// a color reads as ReqraftColorValue draws one, at its one-line size; a sensitive one is not shown
|
|
393
|
+
if (valueType === 'rgbcolor' && !(schema === null || schema === void 0 ? void 0 : schema.sensitive)) {
|
|
394
|
+
return (0, jsx_runtime_1.jsx)(colorValue_1.ReqraftColorValue, { value: field === null || field === void 0 ? void 0 : field.value, size: 'compact', wrap: full });
|
|
349
395
|
}
|
|
350
396
|
if (valueType === 'file') {
|
|
351
397
|
var fileSize = (0, readFirst_1.getFileSize)(field === null || field === void 0 ? void 0 : field.value);
|
|
@@ -353,6 +399,7 @@ exports.CompactRow = (0, react_1.memo)(function (_a) {
|
|
|
353
399
|
// trailing key pill (the editor renders it as a ReqoreButton badge).
|
|
354
400
|
return ((0, jsx_runtime_1.jsx)(reqore_1.ReqoreTag, { size: 'small', minimal: true, intent: 'info', icon: 'FileLine', label: formatted, labelKey: fileSize !== undefined ? (0, readFirst_1.formatBytes)(fileSize) : undefined }));
|
|
355
401
|
}
|
|
402
|
+
// a yes/no holding a template has read as the template, above, not as Yes (qorus#646)
|
|
356
403
|
if (valueType === 'bool' || valueType === 'boolean') {
|
|
357
404
|
var truthy = (field === null || field === void 0 ? void 0 : field.value) === true || (field === null || field === void 0 ? void 0 : field.value) === 'true';
|
|
358
405
|
return ((0, jsx_runtime_1.jsx)(reqore_1.ReqoreTag, { size: 'small', minimal: true, intent: truthy ? 'success' : 'danger', label: formatted }));
|
|
@@ -368,7 +415,7 @@ exports.CompactRow = (0, react_1.memo)(function (_a) {
|
|
|
368
415
|
// only surface still printing them as prose.
|
|
369
416
|
//
|
|
370
417
|
// `intent` is a FILL, which is what a tag is — the hazard the other
|
|
371
|
-
// branches warn about is only ever using an intent as a TEXT
|
|
418
|
+
// branches warn about is only ever using an intent as a TEXT color.
|
|
372
419
|
//
|
|
373
420
|
// Falls through to the plain summary unless EVERY entry yields a name: a
|
|
374
421
|
// partly-chipped row would read as though the unnamed cases were missing.
|
|
@@ -437,27 +484,6 @@ exports.CompactRow = (0, react_1.memo)(function (_a) {
|
|
|
437
484
|
if (allowedIcon) {
|
|
438
485
|
return ((0, jsx_runtime_1.jsxs)("span", { style: wrapStyle, children: [(0, jsx_runtime_1.jsx)(reqore_1.ReqoreIcon, { icon: allowedIcon, size: '16px', style: { flexShrink: 0 } }), (0, jsx_runtime_1.jsx)("span", { style: textStyle, children: formatted })] }));
|
|
439
486
|
}
|
|
440
|
-
// Template value ($local:…): the read-only template picker — the SAME chip
|
|
441
|
-
// TemplateField renders when disabled, so a template reads identically here
|
|
442
|
-
// and in the editor (qorus-ide intent scheme: info / qorus purple).
|
|
443
|
-
//
|
|
444
|
-
// A field may also declare templates OF ITS OWN, and a value drawn from
|
|
445
|
-
// that list is just as much a template even when it does not look like
|
|
446
|
-
// `$name:key` — `isValueTemplate` is a guess at the shape of the built-in
|
|
447
|
-
// grammar, and a host's own grammar (a Qorus test's `$.order.id`) fails it.
|
|
448
|
-
// Asking the field's list whether it CONTAINS the value settles it without
|
|
449
|
-
// guessing at syntax, and hands back the entry whose label the chip prints,
|
|
450
|
-
// so a reference reads as the name it was chosen by here as well as in the
|
|
451
|
-
// editor rather than as a raw path.
|
|
452
|
-
var ownTemplates = (_a = schema === null || schema === void 0 ? void 0 : schema.templates) !== null && _a !== void 0 ? _a : templates;
|
|
453
|
-
// The grammar the field declares its references in, when it speaks one of
|
|
454
|
-
// its own — the same schema key its rich-text editor is given.
|
|
455
|
-
var templateGrammar = schema === null || schema === void 0 ? void 0 : schema.templateToken;
|
|
456
|
-
if (typeof (field === null || field === void 0 ? void 0 : field.value) === 'string' &&
|
|
457
|
-
!field.is_expression &&
|
|
458
|
-
((0, templates_1.isValueTemplate)(field.value) || !!(0, templates_1.findTemplate)(ownTemplates !== null && ownTemplates !== void 0 ? ownTemplates : {}, field.value))) {
|
|
459
|
-
return (0, jsx_runtime_1.jsx)(ReadOnlyTemplateTag_1.ReadOnlyTemplateTag, { value: field.value, templates: ownTemplates, size: 'small' });
|
|
460
|
-
}
|
|
461
487
|
// A LIST whose elements are rich-text envelopes is a list of strings, so it
|
|
462
488
|
// reads as those strings. Without this the row fell through to the generic
|
|
463
489
|
// list summary and printed a bare count ("1 item") above the structured
|
|
@@ -478,14 +504,6 @@ exports.CompactRow = (0, react_1.memo)(function (_a) {
|
|
|
478
504
|
return (0, jsx_runtime_1.jsx)(TemplateText_1.TemplateText, { segments: segments, templates: ownTemplates, full: full });
|
|
479
505
|
}
|
|
480
506
|
}
|
|
481
|
-
// An expression reads as DPQL wherever it is shown without being edited:
|
|
482
|
-
// the same rendering its Explain panel and Preview use — monospace,
|
|
483
|
-
// coloured by the language server, template references as chips — so a
|
|
484
|
-
// collapsed row and the editor it opens never disagree about what the
|
|
485
|
-
// value looks like. See `DpqlRendering`.
|
|
486
|
-
if ((field === null || field === void 0 ? void 0 : field.is_expression) && formatted) {
|
|
487
|
-
return withExpressionMarker((0, jsx_runtime_1.jsx)("span", { style: __assign({ minWidth: 0, flex: '1 1 auto' }, (full ? {} : { overflow: 'hidden' })), children: (0, jsx_runtime_1.jsx)(DpqlRendering_1.DpqlRendering, { text: formatted, templates: ownTemplates }) }));
|
|
488
|
-
}
|
|
489
507
|
/* A value that MENTIONS a reference rather than being one.
|
|
490
508
|
|
|
491
509
|
The branch above answers "is this value a template?", and a predicate is
|
|
@@ -587,9 +605,13 @@ exports.CompactRow = (0, react_1.memo)(function (_a) {
|
|
|
587
605
|
var chipGroups = unmetGroups.length ? unmetGroups : memberGroups;
|
|
588
606
|
var groupResolved = !!memberGroups.length && !unmetGroups.length;
|
|
589
607
|
var requiredGroupChip = !hidden && !readOnly && memberGroups.length && !(schema === null || schema === void 0 ? void 0 : schema.required) ?
|
|
590
|
-
(0, jsx_runtime_1.jsx)("span", { style: { display: 'inline-flex' }, role: 'presentation', onClick: function (e) { return e.stopPropagation(); }, onKeyDown: function (e) { return e.stopPropagation(); },
|
|
591
|
-
|
|
592
|
-
|
|
608
|
+
(0, jsx_runtime_1.jsx)("span", { style: { display: 'inline-flex' }, role: 'presentation', onClick: function (e) { return e.stopPropagation(); }, onKeyDown: function (e) { return e.stopPropagation(); },
|
|
609
|
+
// a mouse's hover, not a tap's emulated one: see `isHoveringPointer`
|
|
610
|
+
onPointerEnter: function (e) {
|
|
611
|
+
if ((0, hoveringPointer_1.isHoveringPointer)(e)) {
|
|
612
|
+
setHighlightedOptions(requiredGroupsInfo.members[chipGroups[0]] || []);
|
|
613
|
+
}
|
|
614
|
+
}, onPointerLeave: function () { return setHighlightedOptions([]); }, children: (0, jsx_runtime_1.jsx)(reqore_1.ReqoreDropdown, { className: 'options-readfirst-required-group', size: 'tiny', minimal: true, flat: true, compact: true, effect: { uppercase: true, spaced: 1 }, intent: groupResolved ? 'success' : 'warning', icon: groupResolved ? 'CheckLine' : 'LinkM', label: !groupResolved ? 'One of'
|
|
593
615
|
: coveredByLabel ?
|
|
594
616
|
"Covered by \u201C".concat(coveredByLabel, "\u201D")
|
|
595
617
|
: 'Covers', filterable: chipGroups.reduce(function (n, g) { return n + requiredGroupsInfo.members[g].length; }, 0) > 6, items: chipGroups.flatMap(function (groupName) { return __spreadArray(__spreadArray([], (chipGroups.length > 1 ?
|
|
@@ -609,6 +631,20 @@ exports.CompactRow = (0, react_1.memo)(function (_a) {
|
|
|
609
631
|
var editType = (_d = (fixedAllowedValueOption ?
|
|
610
632
|
(schema === null || schema === void 0 ? void 0 : schema.type) || (schema === null || schema === void 0 ? void 0 : schema.ui_type)
|
|
611
633
|
: (schema === null || schema === void 0 ? void 0 : schema.ui_type) || (schema === null || schema === void 0 ? void 0 : schema.type))) !== null && _d !== void 0 ? _d : '';
|
|
634
|
+
/* A complex field (a tall or nested editor) opens in the card below the row: reqraft's own complex types, and
|
|
635
|
+
the host's editors it names (`cardEditorTypes`): a host editor of its own, such as a sheet contract, opened
|
|
636
|
+
in the row's value column, about 240px wide (qorus#646). */
|
|
637
|
+
var isHostCardEditor = !!(cardEditorTypes === null || cardEditorTypes === void 0 ? void 0 : cardEditorTypes.includes(editType));
|
|
638
|
+
var opensInCard = COMPACT_COMPLEX_TYPES.has(editType) || isHostCardEditor;
|
|
639
|
+
/* What the host draws for the row when it is closed (`readSummaries`): a summary of its own, under which the
|
|
640
|
+
row draws no preview of the value (see `hostSummarizes`). */
|
|
641
|
+
var readSummaryUiType = schema === null || schema === void 0 ? void 0 : schema.ui_type;
|
|
642
|
+
var ReadSummary = readSummaryUiType ? readSummaries === null || readSummaries === void 0 ? void 0 : readSummaries[readSummaryUiType] : undefined;
|
|
643
|
+
/* In a read-only form, a row whose content its line does not show - a host editor that opens in the card, or a
|
|
644
|
+
row the host summarizes - opens its card with the editor read-only, and its fullscreen view: the summary is
|
|
645
|
+
one line ("4 columns · 1 rule"), and with no preview under it, the card is where what it holds is read
|
|
646
|
+
(qorus#646). Any other read-only row shows all it holds and opens nothing. */
|
|
647
|
+
var readOnlyOpens = !!readOnly && !hidden && (isHostCardEditor || !!ReadSummary);
|
|
612
648
|
// Scalars edit in place inside the row; complex fields (tall or nested
|
|
613
649
|
// editors) still open the expanded card below.
|
|
614
650
|
var inlineEditableNow = !readOnly &&
|
|
@@ -618,7 +654,7 @@ exports.CompactRow = (0, react_1.memo)(function (_a) {
|
|
|
618
654
|
!optionField.is_expression &&
|
|
619
655
|
// A choice with per-option logos (e.g. language) reads better collapsed.
|
|
620
656
|
!(0, readFirst_1.optionHasImages)(schema) &&
|
|
621
|
-
!
|
|
657
|
+
!opensInCard;
|
|
622
658
|
/* Which of the two editors a row gets is settled when the row OPENS.
|
|
623
659
|
*
|
|
624
660
|
* Every term above reads the VALUE or a schema derived from it, so the
|
|
@@ -794,7 +830,11 @@ exports.CompactRow = (0, react_1.memo)(function (_a) {
|
|
|
794
830
|
var editEntryValue = react_1.default.useRef(undefined);
|
|
795
831
|
react_1.default.useEffect(function () {
|
|
796
832
|
if (isExpanded) {
|
|
797
|
-
editEntryValue.current = {
|
|
833
|
+
editEntryValue.current = {
|
|
834
|
+
value: optionField === null || optionField === void 0 ? void 0 : optionField.value,
|
|
835
|
+
type: optionField === null || optionField === void 0 ? void 0 : optionField.type,
|
|
836
|
+
is_expression: !!(optionField === null || optionField === void 0 ? void 0 : optionField.is_expression),
|
|
837
|
+
};
|
|
798
838
|
}
|
|
799
839
|
else {
|
|
800
840
|
editEntryValue.current = undefined;
|
|
@@ -804,15 +844,25 @@ exports.CompactRow = (0, react_1.memo)(function (_a) {
|
|
|
804
844
|
var editedSinceOpened = isExpanded &&
|
|
805
845
|
!!editEntryValue.current &&
|
|
806
846
|
!(0, isEqual_1.default)(editEntryValue.current.value, optionField === null || optionField === void 0 ? void 0 : optionField.value);
|
|
847
|
+
// What this row's own editor has typed and not yet reported: its fields report after a pause, and the
|
|
848
|
+
// row closing takes the pause with it. Done sends it before the row closes; Cancel and Escape drop it
|
|
849
|
+
// (see `usePendingEdit`).
|
|
850
|
+
var pendingEdits = (0, pendingEdit_1.usePendingEdits)();
|
|
807
851
|
// Discard whatever was typed since the field was opened and close it. Used
|
|
808
852
|
// by both the Cancel button and Escape, so the two cannot diverge.
|
|
809
853
|
var cancelEdit = react_1.default.useCallback(function () {
|
|
854
|
+
// an edit still waiting for its pause is part of what is discarded
|
|
855
|
+
pendingEdits.discard();
|
|
810
856
|
var snapshot = editEntryValue.current;
|
|
811
|
-
|
|
812
|
-
|
|
857
|
+
// the field as it was opened: an expression is put back as one, a value as a value
|
|
858
|
+
if (snapshot &&
|
|
859
|
+
(!(0, isEqual_1.default)(snapshot.value, optionField === null || optionField === void 0 ? void 0 : optionField.value) ||
|
|
860
|
+
snapshot.is_expression !==
|
|
861
|
+
!!(optionField === null || optionField === void 0 ? void 0 : optionField.is_expression))) {
|
|
862
|
+
handleValueChange.apply(void 0, __spreadArray([optionName], (0, argumentPresence_1.restoredFieldChange)(snapshot), false));
|
|
813
863
|
}
|
|
814
864
|
toggleExpandedOption(optionName);
|
|
815
|
-
}, [handleValueChange, optionField === null || optionField === void 0 ? void 0 : optionField.value, optionName, toggleExpandedOption]);
|
|
865
|
+
}, [handleValueChange, optionField === null || optionField === void 0 ? void 0 : optionField.value, optionName, toggleExpandedOption, pendingEdits]);
|
|
816
866
|
// The sub-schema describing this field's value, when it has one. A value the
|
|
817
867
|
// form knows the shape of is previewed THROUGH that shape (see
|
|
818
868
|
// `SchemaDataView`); only genuinely undescribed data falls through to the
|
|
@@ -881,9 +931,9 @@ exports.CompactRow = (0, react_1.memo)(function (_a) {
|
|
|
881
931
|
// whole-field revert is the only undo that makes sense.
|
|
882
932
|
var revertButton = changed ?
|
|
883
933
|
(0, jsx_runtime_1.jsx)(reqore_1.ReqoreButton, { className: 'options-readfirst-revert', size: 'small', flat: true, minimal: true, icon: 'HistoryLine', tooltip: 'Revert changes', onClick: function (e) {
|
|
884
|
-
var _a
|
|
934
|
+
var _a;
|
|
885
935
|
e.stopPropagation();
|
|
886
|
-
handleValueChange(
|
|
936
|
+
handleValueChange.apply(void 0, __spreadArray([optionName], (0, argumentPresence_1.restoredFieldChange)((_a = originalValue.current) === null || _a === void 0 ? void 0 : _a[optionName]), false));
|
|
887
937
|
} })
|
|
888
938
|
: null;
|
|
889
939
|
// Clear-value: empties a set field (keeps the field; the value goes blank)
|
|
@@ -923,7 +973,8 @@ exports.CompactRow = (0, react_1.memo)(function (_a) {
|
|
|
923
973
|
var draftChip = commitMode === 'batched' && changed ?
|
|
924
974
|
(0, jsx_runtime_1.jsx)(reqore_1.ReqoreTag, { className: 'options-readfirst-draft', label: 'Draft', intent: 'warning', icon: 'EditLine', size: 'tiny', minimal: true, fixed: true, flat: true, compact: true, effect: { uppercase: true, spaced: 1 } })
|
|
925
975
|
: null;
|
|
926
|
-
|
|
976
|
+
// nothing can have been typed where the value is a fixed choice, or the form is read-only (a card opened to read)
|
|
977
|
+
var isPassiveCloseAction = fixedAllowedValueOption || !!readOnly;
|
|
927
978
|
// Cancel — the counterpart to Done, and the answer to "how do I get out of
|
|
928
979
|
// here without keeping this". Done was the only way to leave an open field,
|
|
929
980
|
// so every way out committed: the check, clicking away, and Escape (which
|
|
@@ -945,10 +996,18 @@ exports.CompactRow = (0, react_1.memo)(function (_a) {
|
|
|
945
996
|
var openedWithFormLoadValue = !editEntryValue.current ||
|
|
946
997
|
(0, isEqual_1.default)(editEntryValue.current.value, (_f = (_e = originalValue.current) === null || _e === void 0 ? void 0 : _e[optionName]) === null || _f === void 0 ? void 0 : _f.value);
|
|
947
998
|
var editRowRevertButton = openedWithFormLoadValue ? null : revertButton;
|
|
948
|
-
var closeExpandedFieldButton = ((0, jsx_runtime_1.jsx)(reqore_1.ReqoreButton, { className: 'options-readfirst-done', size: 'small', intent: !isPassiveCloseAction ? 'success' : undefined, flat: isPassiveCloseAction, minimal: isPassiveCloseAction, fixed: true, icon: isPassiveCloseAction ? 'CloseLine' : 'CheckLine', "aria-label": isPassiveCloseAction ? 'Close field' : 'Done', tooltip: isPassiveCloseAction ? 'Close field' : 'Done', onClick: function () {
|
|
999
|
+
var closeExpandedFieldButton = ((0, jsx_runtime_1.jsx)(reqore_1.ReqoreButton, { className: 'options-readfirst-done', size: 'small', intent: !isPassiveCloseAction ? 'success' : undefined, flat: isPassiveCloseAction, minimal: isPassiveCloseAction, fixed: true, icon: isPassiveCloseAction ? 'CloseLine' : 'CheckLine', "aria-label": isPassiveCloseAction ? 'Close field' : 'Done', tooltip: isPassiveCloseAction ? 'Close field' : 'Done', onClick: function () {
|
|
1000
|
+
// what was typed inside the field's pause reaches the form before the row closes
|
|
1001
|
+
pendingEdits.flush();
|
|
1002
|
+
toggleExpandedOption(optionName);
|
|
1003
|
+
} }));
|
|
949
1004
|
// Info tiers: Tier 1 (danger/warning + dependency hints) must be visible
|
|
950
1005
|
// without interaction; Tier 2 (info/success, default notes) sits behind ⓘ.
|
|
951
|
-
|
|
1006
|
+
/* A field not set yet keeps quiet in the Optional box, but not once it is opened: its editor is where
|
|
1007
|
+
its messages are read, and one saying why the field cannot be used is the answer to opening it. Such
|
|
1008
|
+
a row used to show them only when its editor reported '' on opening, which put the field in the form
|
|
1009
|
+
(qorus#646: the Qorus IDE's "Wait (ms)", disabled while "Until Step" is set). */
|
|
1010
|
+
var infoActive = !hidden || isExpanded;
|
|
952
1011
|
var schemaMessages = infoActive ?
|
|
953
1012
|
(0, OptionFieldMessages_1.getShownSchemaMessages)(schema === null || schema === void 0 ? void 0 : schema.messages, availableOptions, options).map(function (m) { return ({
|
|
954
1013
|
intent: m.intent,
|
|
@@ -974,14 +1033,15 @@ exports.CompactRow = (0, react_1.memo)(function (_a) {
|
|
|
974
1033
|
}).map(function (m) { return ({ intent: m.intent, content: String(m.label) }); })
|
|
975
1034
|
: [];
|
|
976
1035
|
// TWO display channels, matching the Focus prototype:
|
|
977
|
-
// • dedicated schema `messages` → prominent
|
|
1036
|
+
// • dedicated schema `messages` → prominent colored PANELS below the row;
|
|
978
1037
|
// • everything else (validation reasons, the unmet-dependency hint, the
|
|
979
1038
|
// default-value note) → a compact INLINE reason strip — not a panel.
|
|
980
1039
|
var panelMessages = schemaMessages;
|
|
981
1040
|
var inlineMessages = __spreadArray(__spreadArray([], fieldMessages, true), (infoActive && (schema === null || schema === void 0 ? void 0 : schema.default_value_desc) ?
|
|
982
1041
|
[
|
|
983
1042
|
{
|
|
984
|
-
|
|
1043
|
+
// the default's description is the server's markdown: its words, not its marks
|
|
1044
|
+
content: "Default: ".concat(schema.default_value_display_name || '', " \u2014 ").concat((0, readFirst_1.markdownToProse)(schema.default_value_desc)).trim(),
|
|
985
1045
|
},
|
|
986
1046
|
]
|
|
987
1047
|
: []), true);
|
|
@@ -1002,7 +1062,7 @@ exports.CompactRow = (0, react_1.memo)(function (_a) {
|
|
|
1002
1062
|
// with no route to the field's description at all. Stops propagation because
|
|
1003
1063
|
// both labels are click targets themselves (the row expands / collapses).
|
|
1004
1064
|
var helpIcon = (schema === null || schema === void 0 ? void 0 : schema.desc) ?
|
|
1005
|
-
(0, jsx_runtime_1.jsx)(reqore_1.ReqoreIcon, { icon: 'QuestionLine', size: '12px', effect: { opacity:
|
|
1065
|
+
(0, jsx_runtime_1.jsx)(reqore_1.ReqoreIcon, { icon: 'QuestionLine', size: '12px', effect: { opacity: rowInks.helpOpacity }, margin: 'left', marginSize: 'tiny', role: 'button', tabIndex: -1, "aria-label": 'Help', className: 'options-readfirst-help', style: { cursor: 'help' }, onClick: function (event) {
|
|
1006
1066
|
event.stopPropagation();
|
|
1007
1067
|
handleOptionLabelClick(optionName);
|
|
1008
1068
|
} })
|
|
@@ -1024,17 +1084,16 @@ exports.CompactRow = (0, react_1.memo)(function (_a) {
|
|
|
1024
1084
|
`compact` for the same reason the row inset asks for it: this is a strip
|
|
1025
1085
|
inside a row, never a page, and markdown authored as a document opens with
|
|
1026
1086
|
a heading that would outgrow the field label above it. Without a host
|
|
1027
|
-
renderer the
|
|
1087
|
+
renderer it reads as the plain text its markdown renders to (`plainTextNode`). */
|
|
1028
1088
|
var renderInfoStrip = function (m, index) { return ((0, jsx_runtime_1.jsx)(reqore_1.ReqoreMessage, { size: 'small', opaque: false, flat: true, intent: m.intent, title: m.title, style: { marginBottom: 8 }, children: markdownRenderer && typeof m.content === 'string' ?
|
|
1029
1089
|
markdownRenderer({ value: m.content, compact: true })
|
|
1030
|
-
: m.content }, "".concat(m.content, "-").concat(index))); };
|
|
1090
|
+
: (0, markdownText_1.plainTextNode)(m.content) }, "".concat(m.content, "-").concat(index))); };
|
|
1091
|
+
// in the intent's shade that reads on the row (the intents themselves did not: a danger reason was 2.7:1)
|
|
1031
1092
|
var reasonColor = function (intent) {
|
|
1032
|
-
|
|
1033
|
-
|
|
1034
|
-
|
|
1035
|
-
|
|
1036
|
-
((_a = theme === null || theme === void 0 ? void 0 : theme.intents) === null || _a === void 0 ? void 0 : _a.success) || cInfo
|
|
1037
|
-
: "".concat(cMuted, "cc");
|
|
1093
|
+
return intent === 'danger' ? rowInks.danger
|
|
1094
|
+
: intent === 'warning' ? rowInks.warning
|
|
1095
|
+
: intent === 'success' ? rowInks.success
|
|
1096
|
+
: rowInks.mutedReason;
|
|
1038
1097
|
};
|
|
1039
1098
|
var infoToggle = null;
|
|
1040
1099
|
// Cluster (required-group connection) — shared by the read row, its block
|
|
@@ -1054,8 +1113,13 @@ exports.CompactRow = (0, react_1.memo)(function (_a) {
|
|
|
1054
1113
|
var clusterNode = null;
|
|
1055
1114
|
var clusterHoverProps = clustered && clusterMembers.length ?
|
|
1056
1115
|
{
|
|
1057
|
-
|
|
1058
|
-
|
|
1116
|
+
// a mouse's hover, not a tap's emulated one: see `isHoveringPointer`
|
|
1117
|
+
onPointerEnter: function (e) {
|
|
1118
|
+
if ((0, hoveringPointer_1.isHoveringPointer)(e)) {
|
|
1119
|
+
setHighlightedOptions(clusterMembers);
|
|
1120
|
+
}
|
|
1121
|
+
},
|
|
1122
|
+
onPointerLeave: function () { return setHighlightedOptions([]); },
|
|
1059
1123
|
}
|
|
1060
1124
|
: {};
|
|
1061
1125
|
// Items the EDITOR inside this row published — see `rowMenuContext`.
|
|
@@ -1065,8 +1129,10 @@ exports.CompactRow = (0, react_1.memo)(function (_a) {
|
|
|
1065
1129
|
// just before the Done ✓ in both expanded layouts.
|
|
1066
1130
|
var moreMenu = ((0, jsx_runtime_1.jsx)(reqore_1.ReqoreDropdown, { className: 'options-readfirst-more', icon: 'More2Fill', flat: true, minimal: true, fixed: true, size: 'small', tooltip: 'More actions', items: __spreadArray(__spreadArray(__spreadArray([
|
|
1067
1131
|
{
|
|
1068
|
-
|
|
1132
|
+
// a card opened to read is viewed in full, not edited
|
|
1133
|
+
label: readOnly ? 'View fullscreen' : 'Edit fullscreen',
|
|
1069
1134
|
icon: 'FullscreenLine',
|
|
1135
|
+
className: 'options-readfirst-fullscreen',
|
|
1070
1136
|
onClick: function () { return setFocusedEditing(optionName); },
|
|
1071
1137
|
}
|
|
1072
1138
|
], (removable && !hidden ?
|
|
@@ -1125,12 +1191,16 @@ exports.CompactRow = (0, react_1.memo)(function (_a) {
|
|
|
1125
1191
|
optionField.value !== '') ?
|
|
1126
1192
|
(function () {
|
|
1127
1193
|
var _a = (0, codeSize_1.describeCodeSize)(optionField.value), lines = _a.lines, chars = _a.chars;
|
|
1128
|
-
return ((0, jsx_runtime_1.jsx)(reqore_1.ReqoreP, { className: 'options-readfirst-label-code-size', size: 'tiny', effect: { opacity:
|
|
1194
|
+
return ((0, jsx_runtime_1.jsx)(reqore_1.ReqoreP, { className: 'options-readfirst-label-code-size', size: 'tiny', effect: { opacity: rowInks.noteOpacity, textAlign: 'left' }, style: { fontFamily: compactRowStyles_1.MONO_FONT_STACK }, children: "".concat((0, codeSize_1.formatCodeChars)(chars), " ").concat((0, codeSize_1.formatCodeLines)(lines)) }));
|
|
1129
1195
|
})()
|
|
1130
1196
|
: null;
|
|
1131
|
-
if (isExpanded && !readOnly) {
|
|
1197
|
+
if (isExpanded && (!readOnly || readOnlyOpens)) {
|
|
1132
1198
|
if (inlineEditable) {
|
|
1133
|
-
|
|
1199
|
+
// closing the row by its label keeps what was typed, as Done does
|
|
1200
|
+
var collapse_1 = function () {
|
|
1201
|
+
pendingEdits.flush();
|
|
1202
|
+
toggleExpandedOption(optionName);
|
|
1203
|
+
};
|
|
1134
1204
|
var editingRow = ((0, jsx_runtime_1.jsxs)("div", __assign({ ref: rowRef, "data-field": optionName, className: 'readfirst-row readfirst-row-editing options-readfirst-inline options-readfirst-value', style: readRowHeights.current[optionName] ?
|
|
1135
1205
|
{ minHeight: readRowHeights.current[optionName] }
|
|
1136
1206
|
: undefined }, clusterHoverProps, { children: [(0, jsx_runtime_1.jsxs)(compactRowStyles_1.StyledLabelBlock, { className: 'options-readfirst-label-block', children: [(0, jsx_runtime_1.jsxs)(compactRowStyles_1.StyledRowLabel, { role: 'button', tabIndex: 0, "aria-label": "Collapse ".concat(label), title: (schema === null || schema === void 0 ? void 0 : schema.short_desc) || undefined, "$color": cKey, "$pointer": true, onClick: collapse_1, onKeyDown: function (event) {
|
|
@@ -1139,9 +1209,9 @@ exports.CompactRow = (0, react_1.memo)(function (_a) {
|
|
|
1139
1209
|
collapse_1();
|
|
1140
1210
|
}
|
|
1141
1211
|
}, children: [label, required ?
|
|
1142
|
-
(0, jsx_runtime_1.jsx)(reqore_1.ReqoreIcon, { icon: 'Asterisk', color:
|
|
1212
|
+
(0, jsx_runtime_1.jsx)(reqore_1.ReqoreIcon, { icon: 'Asterisk', color: rowInks.danger, size: '10px' })
|
|
1143
1213
|
: null, helpIcon] }), labelShortDesc ?
|
|
1144
|
-
(0, jsx_runtime_1.jsx)(compactRowStyles_1.StyledLabelDesc, { className: 'options-readfirst-label-desc', size: 'small', effect: { opacity:
|
|
1214
|
+
(0, jsx_runtime_1.jsx)(compactRowStyles_1.StyledLabelDesc, { className: 'options-readfirst-label-desc', size: 'small', effect: { opacity: rowInks.descOpacity }, children: (0, readFirst_1.markdownToProse)(labelShortDesc) })
|
|
1145
1215
|
: null, codeSizeNode] }), (0, jsx_runtime_1.jsxs)("div", { ref: editorRef, style: { minWidth: 0 }, onKeyDown: function (event) {
|
|
1146
1216
|
if (event.key === 'Escape') {
|
|
1147
1217
|
event.stopPropagation();
|
|
@@ -1153,7 +1223,11 @@ exports.CompactRow = (0, react_1.memo)(function (_a) {
|
|
|
1153
1223
|
}
|
|
1154
1224
|
}, children: [panelMessages.length ?
|
|
1155
1225
|
(0, jsx_runtime_1.jsx)(reqore_1.ReqoreControlGroup, { className: 'options-readfirst-info-panel', vertical: true, fluid: true, gapSize: 'normal', children: panelMessages.map(renderInfoStrip) })
|
|
1156
|
-
: null, absorbedNodes, (0, jsx_runtime_1.jsx)(rowOpenPicker_1.RowOpenPickerContext.Provider, { value: openThePicker, children: (0, jsx_runtime_1.jsx)(rowMenuContext_1.RowMenuContext.Provider, { value: rowMenu, children: renderOption(optionName, optionField, 'small', true) }) })
|
|
1226
|
+
: null, absorbedNodes, (0, jsx_runtime_1.jsx)(rowOpenPicker_1.RowOpenPickerContext.Provider, { value: openThePicker, children: (0, jsx_runtime_1.jsx)(rowMenuContext_1.RowMenuContext.Provider, { value: rowMenu, children: (0, jsx_runtime_1.jsx)(pendingEdit_1.PendingEditsContext.Provider, { value: pendingEdits, children: renderOption(optionName, optionField, 'small', true) }) }) }), movesTo ?
|
|
1227
|
+
(0, jsx_runtime_1.jsx)(reqore_1.ReqoreP, { size: 'small', className: 'options-readfirst-moves-to', effect: {
|
|
1228
|
+
color: movesTo === 'attention' ? rowInks.warning : rowInks.success,
|
|
1229
|
+
}, style: { marginTop: 4 }, children: "Moves to \"".concat(BOX_NAMES[movesTo], "\" when you close it (\u2713)") })
|
|
1230
|
+
: null] }), (0, jsx_runtime_1.jsxs)(compactRowStyles_1.StyledRowActions, { children: [draftChip, editRowRevertButton, cancelEditButton, clearValueButton, inlineOptionActions.map(function (action, index) {
|
|
1157
1231
|
return renderInjectedOptionAction(action, index);
|
|
1158
1232
|
}), moreMenu, closeExpandedFieldButton] }), clusterNode] }), optionName));
|
|
1159
1233
|
// ALWAYS wrap the editing row in the same StyledColumn so its parent stays
|
|
@@ -1163,7 +1237,7 @@ exports.CompactRow = (0, react_1.memo)(function (_a) {
|
|
|
1163
1237
|
// them. The wrapper carries the cluster rail class so the connection
|
|
1164
1238
|
// persists while a member is being edited.
|
|
1165
1239
|
return ((0, jsx_runtime_1.jsxs)(compactRowStyles_1.StyledColumn, { "data-field": optionName, className: clusterBlockClass || undefined, children: [editingRow, focusedEditing === optionName ?
|
|
1166
|
-
(0, jsx_runtime_1.jsxs)(FocusedEditing_1.FocusedEditing, { isFullscreen: true, modalOnly: true, onClose: function () { return setFocusedEditing(undefined); }, description: (schema === null || schema === void 0 ? void 0 : schema.display_name) || optionName, children: [(0, jsx_runtime_1.jsx)(Description_1.Description, { longDescription: schema === null || schema === void 0 ? void 0 : schema.desc, shortDescription: schema === null || schema === void 0 ? void 0 : schema.short_desc, longDescriptionShownByDefault: true }), renderOption(optionName, optionField)] })
|
|
1240
|
+
(0, jsx_runtime_1.jsxs)(FocusedEditing_1.FocusedEditing, { isFullscreen: true, modalOnly: true, onClose: function () { return setFocusedEditing(undefined); }, description: (schema === null || schema === void 0 ? void 0 : schema.display_name) || optionName, children: [(0, jsx_runtime_1.jsx)(Description_1.Description, { longDescription: schema === null || schema === void 0 ? void 0 : schema.desc, shortDescription: schema === null || schema === void 0 ? void 0 : schema.short_desc, longDescriptionShownByDefault: true }), (0, jsx_runtime_1.jsx)(pendingEdit_1.PendingEditsContext.Provider, { value: pendingEdits, children: renderOption(optionName, optionField) })] })
|
|
1167
1241
|
: null] }, optionName));
|
|
1168
1242
|
}
|
|
1169
1243
|
// Card chrome: badge / actions / tags render here — the row only fits
|
|
@@ -1179,16 +1253,18 @@ exports.CompactRow = (0, react_1.memo)(function (_a) {
|
|
|
1179
1253
|
: undefined;
|
|
1180
1254
|
return ((0, jsx_runtime_1.jsxs)(compactRowStyles_1.StyledEditCard, { "data-field": optionName, className: COMPACT_SINGLE_VALUE_TYPES.has(editType) ?
|
|
1181
1255
|
'options-readfirst-card options-readfirst-card-single'
|
|
1182
|
-
: 'options-readfirst-card', "$bg": cHover, "$border": schemaIntentColor ? "".concat(schemaIntentColor, "66") : "".concat(cInfo, "66"), children: [(0, jsx_runtime_1.jsxs)("div", { style: {
|
|
1256
|
+
: 'options-readfirst-card', "$bg": cHover, "$border": schemaIntentColor ? "".concat(schemaIntentColor, "66") : "".concat(cInfo, "66"), children: [(0, jsx_runtime_1.jsxs)("div", { className: 'options-readfirst-card-header', style: {
|
|
1183
1257
|
display: 'flex',
|
|
1184
|
-
|
|
1258
|
+
// a heading of one line is centred on the card's actions; one with a description or tags under
|
|
1259
|
+
// its name lines up by its top (David's review of qorus#646: the name sat above the buttons)
|
|
1260
|
+
alignItems: (schema === null || schema === void 0 ? void 0 : schema.short_desc) || cardTags.length ? 'flex-start' : 'center',
|
|
1185
1261
|
justifyContent: 'space-between',
|
|
1186
1262
|
gap: 12,
|
|
1187
1263
|
}, children: [(0, jsx_runtime_1.jsxs)(compactRowStyles_1.StyledCardHeading, { children: [(0, jsx_runtime_1.jsxs)(compactRowStyles_1.StyledCardLabel, { "$color": cKey, children: [((schema === null || schema === void 0 ? void 0 : schema.icon) ||
|
|
1188
1264
|
(schema === null || schema === void 0 ? void 0 : schema.image)) ?
|
|
1189
1265
|
(0, jsx_runtime_1.jsx)(reqore_1.ReqoreIcon, { icon: schema === null || schema === void 0 ? void 0 : schema.icon, image: schema === null || schema === void 0 ? void 0 : schema.image, size: '14px' })
|
|
1190
1266
|
: null, (0, jsx_runtime_1.jsxs)("span", { children: [label, required ?
|
|
1191
|
-
(0, jsx_runtime_1.jsx)(reqore_1.ReqoreIcon, { icon: 'Asterisk', color:
|
|
1267
|
+
(0, jsx_runtime_1.jsx)(reqore_1.ReqoreIcon, { icon: 'Asterisk', color: rowInks.danger, size: '10px' })
|
|
1192
1268
|
: null, helpIcon] }), cardBadges.map(function (badge, index) {
|
|
1193
1269
|
return typeof badge === 'object' ?
|
|
1194
1270
|
(0, jsx_runtime_1.jsx)(reqore_1.ReqoreTag, __assign({ size: 'small', minimal: true, className: 'options-readfirst-card-badge' }, badge), index)
|
|
@@ -1209,9 +1285,9 @@ exports.CompactRow = (0, react_1.memo)(function (_a) {
|
|
|
1209
1285
|
event.stopPropagation();
|
|
1210
1286
|
cancelEdit();
|
|
1211
1287
|
}
|
|
1212
|
-
}, children: (0, jsx_runtime_1.jsxs)(FocusedEditing_1.FocusedEditing, { isFullscreen: focusedEditing === optionName, onClose: function () { return setFocusedEditing(undefined); }, description: (schema === null || schema === void 0 ? void 0 : schema.display_name) || optionName, children: [focusedEditing === optionName ?
|
|
1288
|
+
}, children: (0, jsx_runtime_1.jsxs)(FocusedEditing_1.FocusedEditing, __assign({ isFullscreen: focusedEditing === optionName, onClose: function () { return setFocusedEditing(undefined); }, description: (schema === null || schema === void 0 ? void 0 : schema.display_name) || optionName }, (readOnly ? { label: 'Focused View' } : {}), { children: [focusedEditing === optionName ?
|
|
1213
1289
|
(0, jsx_runtime_1.jsx)(Description_1.Description, { longDescription: schema === null || schema === void 0 ? void 0 : schema.desc, shortDescription: schema === null || schema === void 0 ? void 0 : schema.short_desc, longDescriptionShownByDefault: true })
|
|
1214
|
-
: null, (0, jsx_runtime_1.jsx)(rowMenuContext_1.RowMenuContext.Provider, { value: rowMenu, children: renderOption(optionName, optionField) })] }) })] }, optionName));
|
|
1290
|
+
: null, (0, jsx_runtime_1.jsx)(rowMenuContext_1.RowMenuContext.Provider, { value: rowMenu, children: (0, jsx_runtime_1.jsx)(pendingEdit_1.PendingEditsContext.Provider, { value: pendingEdits, children: renderOption(optionName, optionField) }) })] })) })] }, optionName));
|
|
1215
1291
|
}
|
|
1216
1292
|
var formatted = (0, readFirst_1.formatOptionValue)(optionField, schema);
|
|
1217
1293
|
var empty = formatted === '';
|
|
@@ -1266,7 +1342,12 @@ exports.CompactRow = (0, react_1.memo)(function (_a) {
|
|
|
1266
1342
|
typeof optionField.value === 'object' &&
|
|
1267
1343
|
!Array.isArray(optionField.value) &&
|
|
1268
1344
|
!isExpression;
|
|
1269
|
-
|
|
1345
|
+
/* Where the host draws the row's summary (`readSummaries`), the row draws no preview of its own under it: the
|
|
1346
|
+
host's summary says what the value is ("4 columns · 1 rule"), and a structured preview of the same value
|
|
1347
|
+
under it ("columns · List · 4 items") said it again, in reqraft's words (qorus#646). The card, which a
|
|
1348
|
+
read-only form opens for such a row too (`readOnlyOpens`), is where the value is read in full. */
|
|
1349
|
+
var hostSummarizes = !!ReadSummary;
|
|
1350
|
+
var hashEntries = !hidden && !hostSummarizes && (isPlainHashType || isObjectValuedType) ?
|
|
1270
1351
|
(0, readFirst_1.getHashEntries)(optionField, schema)
|
|
1271
1352
|
: [];
|
|
1272
1353
|
// A LIST OF HASHES/objects gets the same expandable structured preview a hash
|
|
@@ -1274,6 +1355,7 @@ exports.CompactRow = (0, react_1.memo)(function (_a) {
|
|
|
1274
1355
|
// never print "[object Object]"). StructuredDataView unwraps each item's
|
|
1275
1356
|
// {type,value} envelope. Plain scalar lists keep just their joined summary.
|
|
1276
1357
|
var isHashList = !hidden &&
|
|
1358
|
+
!hostSummarizes &&
|
|
1277
1359
|
(valueType === 'list' || valueType === 'free-list' || valueType === 'array') &&
|
|
1278
1360
|
Array.isArray(optionField === null || optionField === void 0 ? void 0 : optionField.value) &&
|
|
1279
1361
|
optionField.value.length > 0 &&
|
|
@@ -1293,6 +1375,7 @@ exports.CompactRow = (0, react_1.memo)(function (_a) {
|
|
|
1293
1375
|
// "Show more" reveals the rest. Sits in the same inset the hash/list
|
|
1294
1376
|
// preview uses — mutually exclusive with `showStructuredPreview`.
|
|
1295
1377
|
var showCodePreview = !hidden &&
|
|
1378
|
+
!hostSummarizes &&
|
|
1296
1379
|
valueType === 'code-editor' &&
|
|
1297
1380
|
typeof (optionField === null || optionField === void 0 ? void 0 : optionField.value) === 'string' &&
|
|
1298
1381
|
optionField.value.length > 0;
|
|
@@ -1339,6 +1422,7 @@ exports.CompactRow = (0, react_1.memo)(function (_a) {
|
|
|
1339
1422
|
// rendered as the row's own text, and a second copy of it below would make
|
|
1340
1423
|
// every description row tall for nothing.
|
|
1341
1424
|
var showMarkdownPreview = !hidden &&
|
|
1425
|
+
!hostSummarizes &&
|
|
1342
1426
|
!showCodePreview &&
|
|
1343
1427
|
!!markdownRenderer &&
|
|
1344
1428
|
// keyed on the schema's ui_type, not on getValueType(): a markdown value
|
|
@@ -1360,6 +1444,7 @@ exports.CompactRow = (0, react_1.memo)(function (_a) {
|
|
|
1360
1444
|
// sentence's worth of characters (a short value wraps in place).
|
|
1361
1445
|
var showLongTextInset = readOnly &&
|
|
1362
1446
|
!hidden &&
|
|
1447
|
+
!hostSummarizes &&
|
|
1363
1448
|
!showCodePreview &&
|
|
1364
1449
|
!showMarkdownPreview &&
|
|
1365
1450
|
!showStructuredPreview &&
|
|
@@ -1439,7 +1524,13 @@ exports.CompactRow = (0, react_1.memo)(function (_a) {
|
|
|
1439
1524
|
// "Depends on" dropdown whose items are the blocking fields (an "any of:"
|
|
1440
1525
|
// divider for OR-groups), each clickable to flash/locate the blocker.
|
|
1441
1526
|
var dependsOnChip = fieldDisabled && dependencyEntries.length ?
|
|
1442
|
-
(0, jsx_runtime_1.jsx)("span", { style: { display: 'inline-flex' }, role: 'presentation', onClick: function (e) { return e.stopPropagation(); }, onKeyDown: function (e) { return e.stopPropagation(); },
|
|
1527
|
+
(0, jsx_runtime_1.jsx)("span", { style: { display: 'inline-flex' }, role: 'presentation', onClick: function (e) { return e.stopPropagation(); }, onKeyDown: function (e) { return e.stopPropagation(); },
|
|
1528
|
+
// a mouse's hover, not a tap's emulated one: see `isHoveringPointer`
|
|
1529
|
+
onPointerEnter: function (e) {
|
|
1530
|
+
if ((0, hoveringPointer_1.isHoveringPointer)(e)) {
|
|
1531
|
+
setHighlightedOptions(depHighlightNames);
|
|
1532
|
+
}
|
|
1533
|
+
}, onPointerLeave: function () { return setHighlightedOptions([]); }, children: (0, jsx_runtime_1.jsx)(reqore_1.ReqoreDropdown, { className: 'options-readfirst-lock-deps', size: 'tiny', minimal: true, flat: true, compact: true, icon: 'LockLine', tooltip: 'Disabled \u2014 depends on other fields. Click to locate them.', items: __spreadArray([
|
|
1443
1534
|
{ divider: true, label: 'Unlocked by:', dividerAlign: 'left' }
|
|
1444
1535
|
], dependencyEntries.flatMap(function (entry) { return __spreadArray(__spreadArray([], (Array.isArray(entry) ?
|
|
1445
1536
|
[{ divider: true, label: 'any of:', dividerAlign: 'left' }]
|
|
@@ -1470,7 +1561,11 @@ exports.CompactRow = (0, react_1.memo)(function (_a) {
|
|
|
1470
1561
|
// change has said exactly what they want, and answering with silence
|
|
1471
1562
|
// teaches them the surface is broken.
|
|
1472
1563
|
if (fieldDisabled || readOnly) {
|
|
1473
|
-
|
|
1564
|
+
// ...except a row whose line cannot show what it holds: it opens its card to be read (`readOnlyOpens`)
|
|
1565
|
+
if (readOnlyOpens && !fieldDisabled) {
|
|
1566
|
+
toggleExpandedOption(optionName);
|
|
1567
|
+
}
|
|
1568
|
+
else if (readOnly && !fieldDisabled) {
|
|
1474
1569
|
onReadOnlyActivate === null || onReadOnlyActivate === void 0 ? void 0 : onReadOnlyActivate(optionName);
|
|
1475
1570
|
}
|
|
1476
1571
|
return;
|
|
@@ -1530,23 +1625,28 @@ exports.CompactRow = (0, react_1.memo)(function (_a) {
|
|
|
1530
1625
|
go. Then it takes a button's role, focus and keyboard handling, because
|
|
1531
1626
|
a thing that acts on a click has to be reachable without a mouse and has
|
|
1532
1627
|
to announce what it does — and "Edit X", not "X", is what it does. */
|
|
1533
|
-
var readOnlyIsAWayIn = !!readOnly && !fieldDisabled && !!onReadOnlyActivate;
|
|
1534
|
-
var actsOnClick = !readOnly || readOnlyIsAWayIn;
|
|
1628
|
+
var readOnlyIsAWayIn = !!readOnly && !fieldDisabled && !readOnlyOpens && !!onReadOnlyActivate;
|
|
1629
|
+
var actsOnClick = !readOnly || readOnlyIsAWayIn || readOnlyOpens;
|
|
1535
1630
|
var row = ((0, jsx_runtime_1.jsxs)("div", __assign({ "data-field": optionName, role: actsOnClick ? 'button' : undefined, tabIndex: actsOnClick ? 0 : undefined, "aria-label": readOnlyIsAWayIn ? "Edit ".concat(label)
|
|
1536
|
-
:
|
|
1537
|
-
|
|
1631
|
+
: readOnlyOpens ?
|
|
1632
|
+
"View ".concat(label)
|
|
1633
|
+
: readOnly ?
|
|
1634
|
+
undefined
|
|
1635
|
+
: label, className: "readfirst-row options-readfirst-value".concat(readOnly ? ' readfirst-row-read' : '').concat(readOnlyIsAWayIn || readOnlyOpens ? ' readfirst-row-way-in' : '').concat(readOnlyOpens ? ' readfirst-row-opens' : '').concat(hidden ? ' readfirst-row-hidden' : '').concat(fieldDisabled ? ' readfirst-row-disabled' : '').concat(isHighlighted ? ' readfirst-row-group-highlight' : '').concat(isFlashed ? ' readfirst-row-flash' : '').concat(showLabelDesc ? ' readfirst-row-info-open' : '').concat(panelMessages.length || showStructuredPreview || showCodePreview || showMarkdownPreview || showLongTextInset ? ' readfirst-row-tall' : '').concat(clusterBlockClass ? ' ' + clusterBlockClass : ''), "aria-disabled": fieldDisabled || undefined, style: readOnlyIsAWayIn || readOnlyOpens ? __assign(__assign({}, stripeStyle), { cursor: 'pointer' }) : stripeStyle, onClick: actsOnClick ? activate : undefined, onKeyDown: !actsOnClick ? undefined : (function (event) {
|
|
1538
1636
|
if (event.key === 'Enter' || event.key === ' ') {
|
|
1539
1637
|
event.preventDefault();
|
|
1540
1638
|
activate(event);
|
|
1541
1639
|
}
|
|
1542
1640
|
}) }, clusterHoverProps, { children: [clusterNode, (0, jsx_runtime_1.jsxs)(compactRowStyles_1.StyledLabelBlock, { className: 'options-readfirst-label-block', children: [(0, jsx_runtime_1.jsxs)(compactRowStyles_1.StyledRowLabel, { title: (schema === null || schema === void 0 ? void 0 : schema.short_desc) || undefined, "$color": cKey, children: [rowChromeIcon, (0, jsx_runtime_1.jsxs)("span", { className: 'options-readfirst-label-text', style: { minWidth: 0 }, children: [label, requiredMark ?
|
|
1543
|
-
(0, jsx_runtime_1.jsx)(reqore_1.ReqoreIcon, { icon: 'Asterisk', color:
|
|
1641
|
+
(0, jsx_runtime_1.jsx)(reqore_1.ReqoreIcon, { icon: 'Asterisk', color: rowInks.danger, size: '10px', margin: 'left', marginSize: 'tiny' })
|
|
1544
1642
|
: null, helpIcon] }), typeLabel ?
|
|
1545
|
-
(0, jsx_runtime_1.jsx)(reqore_1.ReqoreTag, { size: 'tiny', minimal: true, label: typeLabel, labelEffect: { opacity:
|
|
1643
|
+
(0, jsx_runtime_1.jsx)(reqore_1.ReqoreTag, { size: 'tiny', minimal: true, label: typeLabel, labelEffect: { opacity: rowInks.descOpacity } })
|
|
1546
1644
|
: null] }), showLabelDesc ?
|
|
1547
|
-
|
|
1645
|
+
/* A sentence in the label's own type, clamped to three lines: drawn as the prose its markdown
|
|
1646
|
+
renders to, never its marks (`markdownToProse`). */
|
|
1647
|
+
(0, jsx_runtime_1.jsx)(compactRowStyles_1.StyledLabelDesc, { className: 'options-readfirst-label-desc', size: 'small', effect: { opacity: rowInks.descOpacity }, children: (0, readFirst_1.markdownToProse)(labelShortDesc) })
|
|
1548
1648
|
: null, codeSizeNode, lineCountNote ?
|
|
1549
|
-
(0, jsx_runtime_1.jsx)(reqore_1.ReqoreP, { className: 'options-readfirst-label-lines', size: 'tiny', effect: { opacity:
|
|
1649
|
+
(0, jsx_runtime_1.jsx)(reqore_1.ReqoreP, { className: 'options-readfirst-label-lines', size: 'tiny', effect: { opacity: rowInks.noteOpacity, textAlign: 'left' }, style: { fontFamily: compactRowStyles_1.MONO_FONT_STACK }, children: lineCountNote })
|
|
1550
1650
|
: null] }), (0, jsx_runtime_1.jsxs)(compactRowStyles_1.StyledRowValue
|
|
1551
1651
|
// A code field draws its whole value in the preview below, with
|
|
1552
1652
|
// "Show more" for the rest, so a hover carrying the same text is
|
|
@@ -1574,12 +1674,22 @@ exports.CompactRow = (0, react_1.memo)(function (_a) {
|
|
|
1574
1674
|
!showsTemplateText &&
|
|
1575
1675
|
typeof formatted === 'string') ?
|
|
1576
1676
|
formatted
|
|
1577
|
-
: undefined, "$color": empty || hidden ?
|
|
1677
|
+
: undefined, "$color": empty || hidden ? rowInks.emptyValue : cKey, "$empty": empty || hidden, children: [(showMarkdownPreview || showLongTextInset || (previewWithSchema && showStructuredPreview)) ?
|
|
1578
1678
|
null
|
|
1579
|
-
: (0, jsx_runtime_1.jsx)("span", { className: 'options-readfirst-valuetext', children:
|
|
1580
|
-
|
|
1581
|
-
|
|
1582
|
-
|
|
1679
|
+
: (0, jsx_runtime_1.jsx)("span", { className: 'options-readfirst-valuetext', children: ReadSummary && !hidden ?
|
|
1680
|
+
/* the host's own summary: an editor that reports a status says it here, set or not
|
|
1681
|
+
("Field mappings required", "… incomplete"), where "2 items" said nothing of it (qorus#646) */
|
|
1682
|
+
(0, jsx_runtime_1.jsx)(ReadSummary, { name: optionName, value: optionField === null || optionField === void 0 ? void 0 : optionField.value, schema: schema, formatted: formatted })
|
|
1683
|
+
: hidden || empty ?
|
|
1684
|
+
formattedDefault || '—'
|
|
1685
|
+
: renderReadFirstValue(optionField, schema, formatted, readOnly) }), readOnlyChoiceDesc ?
|
|
1686
|
+
/* What the chosen option means, on its own line: the server writes it in markdown ("Each
|
|
1687
|
+
`POST /conversations` ..."), so the host's renderer draws it, as it draws the schema messages
|
|
1688
|
+
below; without one, it reads as the plain text it renders to, its paragraphs kept. A block, as
|
|
1689
|
+
what is drawn is. */
|
|
1690
|
+
(0, jsx_runtime_1.jsx)("div", { className: 'options-readfirst-choice-desc', children: markdownRenderer ?
|
|
1691
|
+
markdownRenderer({ value: readOnlyChoiceDesc, compact: true })
|
|
1692
|
+
: (0, markdownText_1.plainTextNode)(readOnlyChoiceDesc) })
|
|
1583
1693
|
: null, valueReasons.map(function (m, i) { return ((0, jsx_runtime_1.jsx)("span", { className: 'options-readfirst-reason', style: { color: reasonColor(m.intent) }, children: m.content }, "".concat(m.content, "-").concat(i))); }), panelMessages.length ?
|
|
1584
1694
|
(0, jsx_runtime_1.jsx)(reqore_1.ReqoreControlGroup, { className: 'options-readfirst-info-panel', vertical: true, fluid: true, gapSize: 'normal', children: panelMessages.map(renderInfoStrip) })
|
|
1585
1695
|
: null, showStructuredPreview ?
|
|
@@ -1622,7 +1732,7 @@ exports.CompactRow = (0, react_1.memo)(function (_a) {
|
|
|
1622
1732
|
// lives (qorus-ide registers its brand purple there).
|
|
1623
1733
|
// Falling back to `info` keeps this working for a
|
|
1624
1734
|
// consumer that registers nothing — the heading is
|
|
1625
|
-
// accented either way, just in the theme's own
|
|
1735
|
+
// accented either way, just in the theme's own color
|
|
1626
1736
|
// rather than one this library picked.
|
|
1627
1737
|
accent: ((_q = theme === null || theme === void 0 ? void 0 : theme.intents) === null || _q === void 0 ? void 0 : _q.custom1) || cInfo,
|
|
1628
1738
|
}, onItemClick: function () { return activate(); } })
|
|
@@ -1656,9 +1766,9 @@ exports.CompactRow = (0, react_1.memo)(function (_a) {
|
|
|
1656
1766
|
onClick: function (event) { return event.stopPropagation(); }, children: (0, jsx_runtime_1.jsx)(reqore_1.ReqoreDropdown, { className: 'options-injected-actions-menu', icon: 'MoreFill', flat: true, minimal: true, fixed: true, size: 'tiny', tooltip: 'Field actions', items: injectedOptionActionMenuItems }) })
|
|
1657
1767
|
: null, (0, jsx_runtime_1.jsx)(compactRowStyles_1.StyledActionSlot, { className: 'options-readfirst-statusdot-slot', "$width": 12, children: changed && !readOnly && !hidden ?
|
|
1658
1768
|
(0, jsx_runtime_1.jsx)(reqore_1.ReqoreButton, { className: 'options-readfirst-revert', size: 'tiny', flat: true, minimal: true, compact: true, icon: 'HistoryLine', tooltip: 'Revert changes', onClick: function (e) {
|
|
1659
|
-
var _a
|
|
1769
|
+
var _a;
|
|
1660
1770
|
e.stopPropagation();
|
|
1661
|
-
handleValueChange(
|
|
1771
|
+
handleValueChange.apply(void 0, __spreadArray([optionName], (0, argumentPresence_1.restoredFieldChange)((_a = originalValue.current) === null || _a === void 0 ? void 0 : _a[optionName]), false));
|
|
1662
1772
|
} })
|
|
1663
1773
|
: dotColor ?
|
|
1664
1774
|
(0, jsx_runtime_1.jsx)(compactRowStyles_1.StyledStatusDot, { "$color": dotColor, "$ring": dotStatus !== 'set', "aria-hidden": true })
|