@qoretechnologies/reqraft 0.10.78 → 0.10.79-pr.145.g447ecec
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/Description/AllowedValuesHelp.d.ts +7 -7
- package/dist/components/Description/AllowedValuesHelp.d.ts.map +1 -1
- package/dist/components/Description/AllowedValuesHelp.js +13 -10
- package/dist/components/Description/AllowedValuesHelp.js.map +1 -1
- package/dist/components/Description/describedControl.d.ts +1 -1
- package/dist/components/Description/describedControl.js +1 -1
- package/dist/components/Description/index.d.ts.map +1 -1
- package/dist/components/Description/index.js +22 -4
- package/dist/components/Description/index.js.map +1 -1
- package/dist/components/FocusedEditing/index.d.ts.map +1 -1
- package/dist/components/FocusedEditing/index.js +3 -1
- package/dist/components/FocusedEditing/index.js.map +1 -1
- package/dist/components/codeSize/index.d.ts +11 -3
- package/dist/components/codeSize/index.d.ts.map +1 -1
- package/dist/components/codeSize/index.js +24 -8
- package/dist/components/codeSize/index.js.map +1 -1
- package/dist/components/colorValue/colorValue.d.ts +4 -4
- package/dist/components/colorValue/colorValue.d.ts.map +1 -1
- package/dist/components/colorValue/colorValue.js +32 -41
- package/dist/components/colorValue/colorValue.js.map +1 -1
- package/dist/components/colorValue/index.js +1 -1
- package/dist/components/colorValue/index.js.map +1 -1
- package/dist/components/composer/Composer.d.ts +18 -2
- package/dist/components/composer/Composer.d.ts.map +1 -1
- package/dist/components/composer/Composer.js +57 -29
- package/dist/components/composer/Composer.js.map +1 -1
- package/dist/components/composer/labels.d.ts +24 -0
- package/dist/components/composer/labels.d.ts.map +1 -0
- package/dist/components/composer/labels.js +16 -0
- package/dist/components/composer/labels.js.map +1 -0
- package/dist/components/dpqlEditor/DpqlEditor.js +3 -3
- package/dist/components/dpqlEditor/DpqlEditor.js.map +1 -1
- package/dist/components/dpqlEditor/dpqlCompletions.d.ts +4 -4
- package/dist/components/dpqlEditor/dpqlCompletions.d.ts.map +1 -1
- package/dist/components/dpqlEditor/dpqlCompletions.js +10 -10
- package/dist/components/dpqlEditor/dpqlCompletions.js.map +1 -1
- package/dist/components/dpqlEditor/dpqlHelpers.d.ts +2 -2
- package/dist/components/dpqlEditor/dpqlHelpers.js +6 -6
- package/dist/components/dpqlEditor/dpqlHelpers.js.map +1 -1
- package/dist/components/dpqlEditor/dpqlInserter.d.ts.map +1 -1
- package/dist/components/dpqlEditor/dpqlInserter.js +1 -2
- package/dist/components/dpqlEditor/dpqlInserter.js.map +1 -1
- package/dist/components/dpqlEditor/dpqlTags.d.ts +1 -1
- package/dist/components/dpqlEditor/dpqlTags.js +4 -4
- package/dist/components/dpqlEditor/dpqlTags.js.map +1 -1
- package/dist/components/dpqlEditor/types.d.ts +7 -7
- package/dist/components/dpqlEditor/useDpqlSession.d.ts +1 -1
- package/dist/components/dpqlEditor/useDpqlSession.d.ts.map +1 -1
- package/dist/components/dpqlEditor/useDpqlSession.js +2 -2
- package/dist/components/dpqlEditor/useDpqlSession.js.map +1 -1
- package/dist/components/form/engine/CompactRow.d.ts.map +1 -1
- package/dist/components/form/engine/CompactRow.js +243 -87
- package/dist/components/form/engine/CompactRow.js.map +1 -1
- package/dist/components/form/engine/CompactToolbar.d.ts.map +1 -1
- package/dist/components/form/engine/CompactToolbar.js +73 -21
- package/dist/components/form/engine/CompactToolbar.js.map +1 -1
- package/dist/components/form/engine/DefaultsNote.d.ts +32 -0
- package/dist/components/form/engine/DefaultsNote.d.ts.map +1 -0
- package/dist/components/form/engine/DefaultsNote.js +33 -0
- package/dist/components/form/engine/DefaultsNote.js.map +1 -0
- package/dist/components/form/engine/FieldMessageDetails.d.ts +17 -0
- package/dist/components/form/engine/FieldMessageDetails.d.ts.map +1 -0
- package/dist/components/form/engine/FieldMessageDetails.js +24 -0
- package/dist/components/form/engine/FieldMessageDetails.js.map +1 -0
- package/dist/components/form/engine/FormEngine.d.ts +125 -5
- package/dist/components/form/engine/FormEngine.d.ts.map +1 -1
- package/dist/components/form/engine/FormEngine.js +800 -257
- package/dist/components/form/engine/FormEngine.js.map +1 -1
- package/dist/components/form/engine/FormFieldsSkeleton.d.ts +1 -1
- package/dist/components/form/engine/HiddenFieldsNote.d.ts +1 -1
- package/dist/components/form/engine/HiddenFieldsNote.js +1 -1
- package/dist/components/form/engine/ItemAttention.d.ts +12 -0
- package/dist/components/form/engine/ItemAttention.d.ts.map +1 -0
- package/dist/components/form/engine/ItemAttention.js +33 -0
- package/dist/components/form/engine/ItemAttention.js.map +1 -0
- package/dist/components/form/engine/OptionFieldMessages.d.ts +35 -2
- package/dist/components/form/engine/OptionFieldMessages.d.ts.map +1 -1
- package/dist/components/form/engine/OptionFieldMessages.js +46 -10
- package/dist/components/form/engine/OptionFieldMessages.js.map +1 -1
- package/dist/components/form/engine/OptionsHelpDialog.js +3 -3
- package/dist/components/form/engine/OptionsHelpDialog.js.map +1 -1
- package/dist/components/form/engine/ReadReveal.d.ts +26 -0
- package/dist/components/form/engine/ReadReveal.d.ts.map +1 -0
- package/dist/components/form/engine/ReadReveal.js +52 -0
- package/dist/components/form/engine/ReadReveal.js.map +1 -0
- package/dist/components/form/engine/_structuredData/SchemaDataView.d.ts +11 -1
- package/dist/components/form/engine/_structuredData/SchemaDataView.d.ts.map +1 -1
- package/dist/components/form/engine/_structuredData/SchemaDataView.js +96 -19
- package/dist/components/form/engine/_structuredData/SchemaDataView.js.map +1 -1
- package/dist/components/form/engine/cardHeaderPin.d.ts +59 -0
- package/dist/components/form/engine/cardHeaderPin.d.ts.map +1 -0
- package/dist/components/form/engine/cardHeaderPin.js +137 -0
- package/dist/components/form/engine/cardHeaderPin.js.map +1 -0
- package/dist/components/form/engine/compactRowContext.d.ts +19 -3
- package/dist/components/form/engine/compactRowContext.d.ts.map +1 -1
- package/dist/components/form/engine/compactRowContext.js.map +1 -1
- package/dist/components/form/engine/compactRowStyles.d.ts +32 -6
- package/dist/components/form/engine/compactRowStyles.d.ts.map +1 -1
- package/dist/components/form/engine/compactRowStyles.js +128 -60
- package/dist/components/form/engine/compactRowStyles.js.map +1 -1
- package/dist/components/form/engine/compactToolbarColors.d.ts +1 -1
- package/dist/components/form/engine/compactToolbarColors.js +1 -1
- package/dist/components/form/engine/compactToolbarContext.d.ts +9 -0
- package/dist/components/form/engine/compactToolbarContext.d.ts.map +1 -1
- package/dist/components/form/engine/compactToolbarContext.js.map +1 -1
- package/dist/components/form/engine/formAppearance.d.ts +96 -0
- package/dist/components/form/engine/formAppearance.d.ts.map +1 -0
- package/dist/components/form/engine/formAppearance.js +156 -0
- package/dist/components/form/engine/formAppearance.js.map +1 -0
- package/dist/components/form/engine/operatorSummary.d.ts +2 -2
- package/dist/components/form/engine/operatorSummary.js +2 -2
- package/dist/components/form/engine/readFirst.d.ts +47 -3
- package/dist/components/form/engine/readFirst.d.ts.map +1 -1
- package/dist/components/form/engine/readFirst.js +43 -9
- package/dist/components/form/engine/readFirst.js.map +1 -1
- package/dist/components/form/engine/readFirstColors.d.ts +1 -1
- package/dist/components/form/engine/readFirstColors.js +1 -1
- package/dist/components/form/engine/revealRow.d.ts +20 -4
- package/dist/components/form/engine/revealRow.d.ts.map +1 -1
- package/dist/components/form/engine/revealRow.js +37 -8
- package/dist/components/form/engine/revealRow.js.map +1 -1
- package/dist/components/form/engine/rowFocus.d.ts +9 -1
- package/dist/components/form/engine/rowFocus.d.ts.map +1 -1
- package/dist/components/form/engine/rowFocus.js +17 -4
- package/dist/components/form/engine/rowFocus.js.map +1 -1
- package/dist/components/form/engine/rowLabelled.d.ts +9 -0
- package/dist/components/form/engine/rowLabelled.d.ts.map +1 -0
- package/dist/components/form/engine/rowLabelled.js +12 -0
- package/dist/components/form/engine/rowLabelled.js.map +1 -0
- package/dist/components/form/engine/rowPlaces.d.ts +43 -0
- package/dist/components/form/engine/rowPlaces.d.ts.map +1 -0
- package/dist/components/form/engine/rowPlaces.js +163 -0
- package/dist/components/form/engine/rowPlaces.js.map +1 -0
- package/dist/components/form/engine/variants/focusDemo.js +1 -1
- package/dist/components/form/engine/variants/focusDemo.js.map +1 -1
- package/dist/components/form/engine/variants/variantModel.d.ts +1 -1
- package/dist/components/form/engine/variants/variantModel.d.ts.map +1 -1
- package/dist/components/form/engine/variants/variantModel.js +2 -2
- package/dist/components/form/engine/variants/variantModel.js.map +1 -1
- package/dist/components/form/engine/variants/variantParts.js +3 -2
- package/dist/components/form/engine/variants/variantParts.js.map +1 -1
- package/dist/components/form/expressions/DpqlRendering.d.ts.map +1 -1
- package/dist/components/form/expressions/DpqlRendering.js +5 -3
- package/dist/components/form/expressions/DpqlRendering.js.map +1 -1
- package/dist/components/form/expressions/ExpressionField.d.ts +9 -11
- package/dist/components/form/expressions/ExpressionField.d.ts.map +1 -1
- package/dist/components/form/expressions/ExpressionField.js +26 -24
- package/dist/components/form/expressions/ExpressionField.js.map +1 -1
- package/dist/components/form/expressions/argumentPresence.d.ts +1 -1
- package/dist/components/form/expressions/argumentPresence.js +1 -1
- package/dist/components/form/expressions/builder/argumentDetail.d.ts.map +1 -1
- package/dist/components/form/expressions/builder/argumentDetail.js +5 -2
- package/dist/components/form/expressions/builder/argumentDetail.js.map +1 -1
- package/dist/components/form/expressions/builder/argumentLabel.d.ts +4 -2
- package/dist/components/form/expressions/builder/argumentLabel.d.ts.map +1 -1
- package/dist/components/form/expressions/builder/argumentLabel.js +69 -29
- package/dist/components/form/expressions/builder/argumentLabel.js.map +1 -1
- package/dist/components/form/expressions/builder/argumentSlot.d.ts.map +1 -1
- package/dist/components/form/expressions/builder/argumentSlot.js +3 -2
- package/dist/components/form/expressions/builder/argumentSlot.js.map +1 -1
- package/dist/components/form/expressions/builder/argumentWrapper.d.ts.map +1 -1
- package/dist/components/form/expressions/builder/argumentWrapper.js +11 -7
- package/dist/components/form/expressions/builder/argumentWrapper.js.map +1 -1
- package/dist/components/form/expressions/builder/confirmMismatchedTypesModal.d.ts +1 -1
- package/dist/components/form/expressions/builder/confirmMismatchedTypesModal.d.ts.map +1 -1
- package/dist/components/form/expressions/builder/confirmMismatchedTypesModal.js +15 -10
- package/dist/components/form/expressions/builder/confirmMismatchedTypesModal.js.map +1 -1
- package/dist/components/form/expressions/builder/confirmUnsupportedTypeModal.d.ts.map +1 -1
- package/dist/components/form/expressions/builder/confirmUnsupportedTypeModal.js +4 -2
- package/dist/components/form/expressions/builder/confirmUnsupportedTypeModal.js.map +1 -1
- package/dist/components/form/expressions/builder/index.d.ts +9 -4
- package/dist/components/form/expressions/builder/index.d.ts.map +1 -1
- package/dist/components/form/expressions/builder/index.js +120 -75
- package/dist/components/form/expressions/builder/index.js.map +1 -1
- package/dist/components/form/expressions/builder/item.d.ts.map +1 -1
- package/dist/components/form/expressions/builder/item.js +4 -2
- package/dist/components/form/expressions/builder/item.js.map +1 -1
- package/dist/components/form/expressions/builder/moveToPositionStrip.d.ts +1 -1
- package/dist/components/form/expressions/builder/moveToPositionStrip.d.ts.map +1 -1
- package/dist/components/form/expressions/builder/moveToPositionStrip.js +8 -7
- package/dist/components/form/expressions/builder/moveToPositionStrip.js.map +1 -1
- package/dist/components/form/expressions/builder/renderTemplate.d.ts.map +1 -1
- package/dist/components/form/expressions/builder/renderTemplate.js +3 -1
- package/dist/components/form/expressions/builder/renderTemplate.js.map +1 -1
- package/dist/components/form/expressions/dpqlMockRecordPath.js +2 -2
- package/dist/components/form/expressions/dpqlMockRecordPath.js.map +1 -1
- package/dist/components/form/expressions/expressionOperands.js +1 -1
- package/dist/components/form/expressions/fieldPath.js +1 -1
- package/dist/components/form/expressions/fieldPath.js.map +1 -1
- package/dist/components/form/expressions/labels.d.ts +143 -0
- package/dist/components/form/expressions/labels.d.ts.map +1 -0
- package/dist/components/form/expressions/labels.js +123 -0
- package/dist/components/form/expressions/labels.js.map +1 -0
- package/dist/components/form/expressions/loneValue.d.ts +1 -1
- package/dist/components/form/expressions/loneValue.js +1 -1
- package/dist/components/form/expressions/mockExpressions.js +2 -2
- package/dist/components/form/expressions/mockExpressions.js.map +1 -1
- package/dist/components/form/expressions/renderExpressionToText.d.ts.map +1 -1
- package/dist/components/form/expressions/renderExpressionToText.js +16 -1
- package/dist/components/form/expressions/renderExpressionToText.js.map +1 -1
- package/dist/components/form/expressions/types.d.ts +2 -2
- package/dist/components/form/expressions/useExpressionType.js +1 -1
- package/dist/components/form/expressions/useExpressionType.js.map +1 -1
- package/dist/components/form/fields/ChoiceGroupHeading.d.ts +22 -0
- package/dist/components/form/fields/ChoiceGroupHeading.d.ts.map +1 -0
- package/dist/components/form/fields/ChoiceGroupHeading.js +40 -0
- package/dist/components/form/fields/ChoiceGroupHeading.js.map +1 -0
- package/dist/components/form/fields/Field.d.ts +9 -2
- package/dist/components/form/fields/Field.d.ts.map +1 -1
- package/dist/components/form/fields/Field.js +20 -15
- package/dist/components/form/fields/Field.js.map +1 -1
- package/dist/components/form/fields/allowed-values/AllowedValues.d.ts +11 -1
- package/dist/components/form/fields/allowed-values/AllowedValues.d.ts.map +1 -1
- package/dist/components/form/fields/allowed-values/AllowedValues.js +42 -18
- package/dist/components/form/fields/allowed-values/AllowedValues.js.map +1 -1
- package/dist/components/form/fields/allowed-values/choicePicture.d.ts +3 -3
- package/dist/components/form/fields/allowed-values/choicePicture.js +3 -3
- package/dist/components/form/fields/allowed-values/savedValues.d.ts +30 -0
- package/dist/components/form/fields/allowed-values/savedValues.d.ts.map +1 -0
- package/dist/components/form/fields/allowed-values/savedValues.js +39 -0
- package/dist/components/form/fields/allowed-values/savedValues.js.map +1 -0
- package/dist/components/form/fields/array/ArrayAuto.d.ts.map +1 -1
- package/dist/components/form/fields/array/ArrayAuto.js +32 -15
- package/dist/components/form/fields/array/ArrayAuto.js.map +1 -1
- package/dist/components/form/fields/array/ArrayAutoField.d.ts.map +1 -1
- package/dist/components/form/fields/array/ArrayAutoField.js +22 -20
- package/dist/components/form/fields/array/ArrayAutoField.js.map +1 -1
- package/dist/components/form/fields/auto/AutoFormField.d.ts +12 -1
- package/dist/components/form/fields/auto/AutoFormField.d.ts.map +1 -1
- package/dist/components/form/fields/auto/AutoFormField.js +59 -29
- package/dist/components/form/fields/auto/AutoFormField.js.map +1 -1
- package/dist/components/form/fields/auto/hostEditorValue.d.ts +1 -1
- package/dist/components/form/fields/auto/hostEditorValue.js +1 -1
- package/dist/components/form/fields/binary/Binary.d.ts.map +1 -1
- package/dist/components/form/fields/binary/Binary.js +7 -2
- package/dist/components/form/fields/binary/Binary.js.map +1 -1
- package/dist/components/form/fields/boolean/Boolean.d.ts +8 -2
- package/dist/components/form/fields/boolean/Boolean.d.ts.map +1 -1
- package/dist/components/form/fields/boolean/Boolean.js +9 -3
- package/dist/components/form/fields/boolean/Boolean.js.map +1 -1
- package/dist/components/form/fields/codeFont.d.ts +12 -0
- package/dist/components/form/fields/codeFont.d.ts.map +1 -0
- package/dist/components/form/fields/codeFont.js +26 -0
- package/dist/components/form/fields/codeFont.js.map +1 -0
- package/dist/components/form/fields/color/Color.d.ts +1 -1
- package/dist/components/form/fields/color/Color.d.ts.map +1 -1
- package/dist/components/form/fields/color/Color.js +12 -10
- package/dist/components/form/fields/color/Color.js.map +1 -1
- package/dist/components/form/fields/date/Date.d.ts +7 -1
- package/dist/components/form/fields/date/Date.d.ts.map +1 -1
- package/dist/components/form/fields/date/Date.js +4 -2
- package/dist/components/form/fields/date/Date.js.map +1 -1
- package/dist/components/form/fields/emittedValues.d.ts +1 -1
- package/dist/components/form/fields/emittedValues.js +1 -1
- package/dist/components/form/fields/file/File.d.ts +1 -1
- package/dist/components/form/fields/file/File.d.ts.map +1 -1
- package/dist/components/form/fields/file/File.js +18 -6
- package/dist/components/form/fields/file/File.js.map +1 -1
- package/dist/components/form/fields/labels.d.ts +81 -0
- package/dist/components/form/fields/labels.d.ts.map +1 -0
- package/dist/components/form/fields/labels.js +52 -0
- package/dist/components/form/fields/labels.js.map +1 -0
- package/dist/components/form/fields/long-string/LongString.d.ts +7 -1
- package/dist/components/form/fields/long-string/LongString.d.ts.map +1 -1
- package/dist/components/form/fields/long-string/LongString.js +19 -9
- package/dist/components/form/fields/long-string/LongString.js.map +1 -1
- package/dist/components/form/fields/markdown/Markdown.d.ts.map +1 -1
- package/dist/components/form/fields/markdown/Markdown.js +3 -1
- package/dist/components/form/fields/markdown/Markdown.js.map +1 -1
- package/dist/components/form/fields/multi-select/MultiSelectFormField.js +1 -1
- package/dist/components/form/fields/multi-select/MultiSelectFormField.js.map +1 -1
- package/dist/components/form/fields/number/Number.d.ts +6 -3
- package/dist/components/form/fields/number/Number.d.ts.map +1 -1
- package/dist/components/form/fields/number/Number.js +24 -10
- package/dist/components/form/fields/number/Number.js.map +1 -1
- package/dist/components/form/fields/object/Object.d.ts +36 -1
- package/dist/components/form/fields/object/Object.d.ts.map +1 -1
- package/dist/components/form/fields/object/Object.js +145 -19
- package/dist/components/form/fields/object/Object.js.map +1 -1
- package/dist/components/form/fields/pendingEdit.d.ts +1 -1
- package/dist/components/form/fields/pendingEdit.js +1 -1
- package/dist/components/form/fields/radio-group/RadioGroup.d.ts.map +1 -1
- package/dist/components/form/fields/radio-group/RadioGroup.js +13 -7
- package/dist/components/form/fields/radio-group/RadioGroup.js.map +1 -1
- package/dist/components/form/fields/rich-text/RichText.d.ts +1 -1
- package/dist/components/form/fields/rich-text/RichText.d.ts.map +1 -1
- package/dist/components/form/fields/rich-text/RichText.js +15 -12
- package/dist/components/form/fields/rich-text/RichText.js.map +1 -1
- package/dist/components/form/fields/rich-text/useTemplateTags.d.ts +3 -1
- package/dist/components/form/fields/rich-text/useTemplateTags.d.ts.map +1 -1
- package/dist/components/form/fields/rich-text/useTemplateTags.js +9 -3
- package/dist/components/form/fields/rich-text/useTemplateTags.js.map +1 -1
- package/dist/components/form/fields/schema-definition/CatalogLeafForm.d.ts.map +1 -1
- package/dist/components/form/fields/schema-definition/CatalogLeafForm.js +11 -9
- package/dist/components/form/fields/schema-definition/CatalogLeafForm.js.map +1 -1
- package/dist/components/form/fields/schema-definition/CatalogNodeEditor.d.ts +1 -1
- package/dist/components/form/fields/schema-definition/CatalogNodeEditor.d.ts.map +1 -1
- package/dist/components/form/fields/schema-definition/CatalogNodeEditor.js +42 -30
- package/dist/components/form/fields/schema-definition/CatalogNodeEditor.js.map +1 -1
- package/dist/components/form/fields/schema-definition/Hint.d.ts +4 -3
- package/dist/components/form/fields/schema-definition/Hint.d.ts.map +1 -1
- package/dist/components/form/fields/schema-definition/Hint.js +10 -2
- package/dist/components/form/fields/schema-definition/Hint.js.map +1 -1
- package/dist/components/form/fields/schema-definition/InlineValidationBanner.d.ts.map +1 -1
- package/dist/components/form/fields/schema-definition/InlineValidationBanner.js +3 -1
- package/dist/components/form/fields/schema-definition/InlineValidationBanner.js.map +1 -1
- package/dist/components/form/fields/schema-definition/Loader.d.ts.map +1 -1
- package/dist/components/form/fields/schema-definition/Loader.js +4 -2
- package/dist/components/form/fields/schema-definition/Loader.js.map +1 -1
- package/dist/components/form/fields/schema-definition/MigrationsTab.d.ts.map +1 -1
- package/dist/components/form/fields/schema-definition/MigrationsTab.js +31 -26
- package/dist/components/form/fields/schema-definition/MigrationsTab.js.map +1 -1
- package/dist/components/form/fields/schema-definition/TableEditor.d.ts.map +1 -1
- package/dist/components/form/fields/schema-definition/TableEditor.js +3 -1
- package/dist/components/form/fields/schema-definition/TableEditor.js.map +1 -1
- package/dist/components/form/fields/schema-definition/TablesTab.d.ts.map +1 -1
- package/dist/components/form/fields/schema-definition/TablesTab.js +25 -23
- package/dist/components/form/fields/schema-definition/TablesTab.js.map +1 -1
- package/dist/components/form/fields/schema-definition/index.d.ts.map +1 -1
- package/dist/components/form/fields/schema-definition/index.js +21 -15
- package/dist/components/form/fields/schema-definition/index.js.map +1 -1
- package/dist/components/form/fields/schema-definition/labels.d.ts +123 -0
- package/dist/components/form/fields/schema-definition/labels.d.ts.map +1 -0
- package/dist/components/form/fields/schema-definition/labels.js +113 -0
- package/dist/components/form/fields/schema-definition/labels.js.map +1 -0
- package/dist/components/form/fields/schema-definition/mockCatalog.d.ts +1 -1
- package/dist/components/form/fields/schema-definition/referenceSuggestions.d.ts +1 -1
- package/dist/components/form/fields/schema-definition/types.d.ts +2 -2
- package/dist/components/form/fields/schema-definition/types.js +1 -1
- package/dist/components/form/fields/select/Select.d.ts +11 -5
- package/dist/components/form/fields/select/Select.d.ts.map +1 -1
- package/dist/components/form/fields/select/Select.js +18 -11
- package/dist/components/form/fields/select/Select.js.map +1 -1
- package/dist/components/form/fields/select/SelectCollection.d.ts +28 -3
- package/dist/components/form/fields/select/SelectCollection.d.ts.map +1 -1
- package/dist/components/form/fields/select/SelectCollection.js +40 -9
- package/dist/components/form/fields/select/SelectCollection.js.map +1 -1
- package/dist/components/form/fields/select/unavailableRow.d.ts +1 -1
- package/dist/components/form/fields/select/unavailableRow.js +1 -1
- package/dist/components/form/fields/template/ExampleValueModal.d.ts.map +1 -1
- package/dist/components/form/fields/template/ExampleValueModal.js +4 -1
- package/dist/components/form/fields/template/ExampleValueModal.js.map +1 -1
- package/dist/components/form/fields/template/TemplateBrowser.d.ts.map +1 -1
- package/dist/components/form/fields/template/TemplateBrowser.js +6 -4
- package/dist/components/form/fields/template/TemplateBrowser.js.map +1 -1
- package/dist/components/form/fields/template/TemplateField.d.ts +24 -5
- package/dist/components/form/fields/template/TemplateField.d.ts.map +1 -1
- package/dist/components/form/fields/template/TemplateField.js +117 -99
- package/dist/components/form/fields/template/TemplateField.js.map +1 -1
- package/dist/components/form/fields/template/TemplatePicker.d.ts +9 -3
- package/dist/components/form/fields/template/TemplatePicker.d.ts.map +1 -1
- package/dist/components/form/fields/template/TemplatePicker.js +62 -34
- package/dist/components/form/fields/template/TemplatePicker.js.map +1 -1
- package/dist/components/form/fields/template/referenceNames.d.ts +2 -2
- package/dist/components/form/fields/template/templatesListProps.d.ts +11 -0
- package/dist/components/form/fields/template/templatesListProps.d.ts.map +1 -0
- package/dist/components/form/fields/template/templatesListProps.js +37 -0
- package/dist/components/form/fields/template/templatesListProps.js.map +1 -0
- package/dist/components/form/fields/template/writtenAsText.d.ts +2 -2
- package/dist/components/form/fields/template/writtenAsText.js +2 -2
- package/dist/components/form/index.d.ts +2 -0
- package/dist/components/form/index.d.ts.map +1 -1
- package/dist/components/form/index.js +2 -0
- package/dist/components/form/index.js.map +1 -1
- package/dist/components/form/typeSentenceForm.js +1 -1
- package/dist/components/imageLightbox/ImageLightbox.d.ts.map +1 -1
- package/dist/components/imageLightbox/ImageLightbox.js +11 -7
- package/dist/components/imageLightbox/ImageLightbox.js.map +1 -1
- package/dist/components/log/Log.d.ts +1 -1
- package/dist/components/log/Log.d.ts.map +1 -1
- package/dist/components/log/Log.js +22 -19
- package/dist/components/log/Log.js.map +1 -1
- package/dist/components/log/labels.d.ts +25 -0
- package/dist/components/log/labels.d.ts.map +1 -0
- package/dist/components/log/labels.js +22 -0
- package/dist/components/log/labels.js.map +1 -0
- package/dist/components/menu/Menu.d.ts.map +1 -1
- package/dist/components/menu/Menu.js +3 -1
- package/dist/components/menu/Menu.js.map +1 -1
- package/dist/components/qonsoleSmartInput/useQonsoleSession.d.ts.map +1 -1
- package/dist/components/qonsoleSmartInput/useQonsoleSession.js +3 -2
- package/dist/components/qonsoleSmartInput/useQonsoleSession.js.map +1 -1
- package/dist/components/smartEditor/CompletionMenu.d.ts +1 -1
- package/dist/components/smartEditor/CompletionMenu.d.ts.map +1 -1
- package/dist/components/smartEditor/CompletionMenu.js +25 -19
- package/dist/components/smartEditor/CompletionMenu.js.map +1 -1
- package/dist/components/smartEditor/SmartEditor.d.ts.map +1 -1
- package/dist/components/smartEditor/SmartEditor.js +21 -23
- package/dist/components/smartEditor/SmartEditor.js.map +1 -1
- package/dist/components/smartEditor/caretBox.d.ts +1 -1
- package/dist/components/smartEditor/caretBox.js +1 -1
- package/dist/components/smartEditor/completionStyle.d.ts +21 -6
- package/dist/components/smartEditor/completionStyle.d.ts.map +1 -1
- package/dist/components/smartEditor/completionStyle.js +46 -23
- package/dist/components/smartEditor/completionStyle.js.map +1 -1
- package/dist/components/smartEditor/contextTitle.d.ts +2 -2
- package/dist/components/smartEditor/contextTitle.js +2 -2
- package/dist/components/smartEditor/editingAids.d.ts +2 -2
- package/dist/components/smartEditor/editingAids.js +2 -2
- package/dist/components/smartEditor/index.js +1 -1
- package/dist/components/smartEditor/index.js.map +1 -1
- package/dist/components/smartEditor/templateCompletions.d.ts +7 -7
- package/dist/components/smartEditor/templateCompletions.d.ts.map +1 -1
- package/dist/components/smartEditor/templateCompletions.js +14 -15
- package/dist/components/smartEditor/templateCompletions.js.map +1 -1
- package/dist/components/smartEditor/typedReferences.d.ts +1 -1
- package/dist/components/smartEditor/typedReferences.js +3 -3
- package/dist/components/smartEditor/typedReferences.js.map +1 -1
- package/dist/components/smartEditor/types.d.ts +8 -8
- package/dist/components/smartEditor/useEditingAids.js +1 -1
- package/dist/components/smartEditor/useEditingAids.js.map +1 -1
- package/dist/components/smartEditor/useLspAutocomplete.d.ts +9 -4
- package/dist/components/smartEditor/useLspAutocomplete.d.ts.map +1 -1
- package/dist/components/smartEditor/useLspAutocomplete.js +92 -38
- package/dist/components/smartEditor/useLspAutocomplete.js.map +1 -1
- package/dist/components/smartEditor/useLspHover.d.ts.map +1 -1
- package/dist/components/smartEditor/useLspHover.js +4 -5
- package/dist/components/smartEditor/useLspHover.js.map +1 -1
- package/dist/components/smartEditor/useTabCameIn.d.ts +1 -1
- package/dist/components/smartEditor/useTabCameIn.js +1 -1
- package/dist/components/supportTicket/AttachmentChips.d.ts.map +1 -1
- package/dist/components/supportTicket/AttachmentChips.js +5 -3
- package/dist/components/supportTicket/AttachmentChips.js.map +1 -1
- package/dist/components/supportTicket/InterfaceReferenceTags.d.ts +10 -3
- package/dist/components/supportTicket/InterfaceReferenceTags.d.ts.map +1 -1
- package/dist/components/supportTicket/InterfaceReferenceTags.js +9 -8
- package/dist/components/supportTicket/InterfaceReferenceTags.js.map +1 -1
- package/dist/components/supportTicket/ReferencePicker.d.ts +3 -2
- package/dist/components/supportTicket/ReferencePicker.d.ts.map +1 -1
- package/dist/components/supportTicket/ReferencePicker.js +36 -26
- package/dist/components/supportTicket/ReferencePicker.js.map +1 -1
- package/dist/components/supportTicket/TicketHeader.d.ts.map +1 -1
- package/dist/components/supportTicket/TicketHeader.js +6 -3
- package/dist/components/supportTicket/TicketHeader.js.map +1 -1
- package/dist/components/supportTicket/TicketMetaTags.d.ts +19 -12
- package/dist/components/supportTicket/TicketMetaTags.d.ts.map +1 -1
- package/dist/components/supportTicket/TicketMetaTags.js +57 -6
- package/dist/components/supportTicket/TicketMetaTags.js.map +1 -1
- package/dist/components/supportTicket/TicketReplyBox.d.ts +3 -2
- package/dist/components/supportTicket/TicketReplyBox.d.ts.map +1 -1
- package/dist/components/supportTicket/TicketReplyBox.js +41 -19
- package/dist/components/supportTicket/TicketReplyBox.js.map +1 -1
- package/dist/components/supportTicket/WorkspaceAccessStatus.d.ts +10 -2
- package/dist/components/supportTicket/WorkspaceAccessStatus.d.ts.map +1 -1
- package/dist/components/supportTicket/WorkspaceAccessStatus.js +45 -17
- package/dist/components/supportTicket/WorkspaceAccessStatus.js.map +1 -1
- package/dist/components/supportTicket/accessMeta.d.ts +6 -1
- package/dist/components/supportTicket/accessMeta.d.ts.map +1 -1
- package/dist/components/supportTicket/accessMeta.js +83 -65
- package/dist/components/supportTicket/accessMeta.js.map +1 -1
- package/dist/components/supportTicket/attachmentAccess.d.ts.map +1 -1
- package/dist/components/supportTicket/attachmentAccess.js +14 -26
- package/dist/components/supportTicket/attachmentAccess.js.map +1 -1
- package/dist/components/supportTicket/fileToAttachment.d.ts.map +1 -1
- package/dist/components/supportTicket/fileToAttachment.js +4 -1
- package/dist/components/supportTicket/fileToAttachment.js.map +1 -1
- package/dist/components/supportTicket/labels.d.ts +159 -0
- package/dist/components/supportTicket/labels.d.ts.map +1 -0
- package/dist/components/supportTicket/labels.js +216 -0
- package/dist/components/supportTicket/labels.js.map +1 -0
- package/dist/components/supportTicket/meta.d.ts +35 -6
- package/dist/components/supportTicket/meta.d.ts.map +1 -1
- package/dist/components/supportTicket/meta.js +100 -73
- package/dist/components/supportTicket/meta.js.map +1 -1
- package/dist/components/supportTicket/ticketAttentionInks.d.ts +23 -0
- package/dist/components/supportTicket/ticketAttentionInks.d.ts.map +1 -0
- package/dist/components/supportTicket/ticketAttentionInks.js +42 -0
- package/dist/components/supportTicket/ticketAttentionInks.js.map +1 -0
- package/dist/components/supportTicket/ticketModel.d.ts +6 -2
- package/dist/components/supportTicket/ticketModel.d.ts.map +1 -1
- package/dist/components/supportTicket/useLoadedImages.d.ts +10 -0
- package/dist/components/supportTicket/useLoadedImages.d.ts.map +1 -1
- package/dist/components/supportTicket/useLoadedImages.js +64 -1
- package/dist/components/supportTicket/useLoadedImages.js.map +1 -1
- package/dist/components/ticketReferences/TicketReferences.d.ts.map +1 -1
- package/dist/components/ticketReferences/TicketReferences.js +57 -46
- package/dist/components/ticketReferences/TicketReferences.js.map +1 -1
- package/dist/components/ticketThread/TicketThread.d.ts +22 -2
- package/dist/components/ticketThread/TicketThread.d.ts.map +1 -1
- package/dist/components/ticketThread/TicketThread.js +61 -39
- package/dist/components/ticketThread/TicketThread.js.map +1 -1
- package/dist/components/ticketThread/index.d.ts +1 -1
- package/dist/components/ticketThread/index.d.ts.map +1 -1
- package/dist/components/ticketThread/index.js +2 -1
- package/dist/components/ticketThread/index.js.map +1 -1
- package/dist/helpers/allowedValues.d.ts +1 -1
- package/dist/helpers/allowedValues.d.ts.map +1 -1
- package/dist/helpers/allowedValues.js +12 -5
- package/dist/helpers/allowedValues.js.map +1 -1
- package/dist/helpers/common.d.ts +4 -0
- package/dist/helpers/common.d.ts.map +1 -1
- package/dist/helpers/common.js +11 -7
- package/dist/helpers/common.js.map +1 -1
- package/dist/helpers/domProps.js +1 -1
- package/dist/helpers/expressions.d.ts +7 -7
- package/dist/helpers/expressions.d.ts.map +1 -1
- package/dist/helpers/expressions.js +15 -20
- package/dist/helpers/expressions.js.map +1 -1
- package/dist/helpers/fieldDescription.d.ts +16 -0
- package/dist/helpers/fieldDescription.d.ts.map +1 -0
- package/dist/helpers/fieldDescription.js +40 -0
- package/dist/helpers/fieldDescription.js.map +1 -0
- package/dist/helpers/hoveringPointer.d.ts +1 -1
- package/dist/helpers/hoveringPointer.js +1 -1
- package/dist/helpers/markdownText.d.ts +9 -0
- package/dist/helpers/markdownText.d.ts.map +1 -1
- package/dist/helpers/markdownText.js +50 -3
- package/dist/helpers/markdownText.js.map +1 -1
- package/dist/helpers/noDescription.d.ts +9 -5
- package/dist/helpers/noDescription.d.ts.map +1 -1
- package/dist/helpers/noDescription.js +18 -7
- package/dist/helpers/noDescription.js.map +1 -1
- package/dist/helpers/optionUiTypes.d.ts +3 -3
- package/dist/helpers/options.d.ts +2 -2
- package/dist/helpers/options.d.ts.map +1 -1
- package/dist/helpers/options.js +11 -8
- package/dist/helpers/options.js.map +1 -1
- package/dist/helpers/qorusTypeCatalogue.d.ts +9 -9
- package/dist/helpers/qorusTypeCatalogue.js +11 -11
- package/dist/helpers/qorusTypeCatalogue.js.map +1 -1
- package/dist/helpers/readableColors.d.ts +9 -1
- package/dist/helpers/readableColors.d.ts.map +1 -1
- package/dist/helpers/readableColors.js +13 -2
- package/dist/helpers/readableColors.js.map +1 -1
- package/dist/helpers/recordFieldReference.js +1 -1
- package/dist/helpers/recordFieldReference.js.map +1 -1
- package/dist/helpers/reqraftLabels.d.ts +129 -7
- package/dist/helpers/reqraftLabels.d.ts.map +1 -1
- package/dist/helpers/reqraftLabels.js +101 -21
- package/dist/helpers/reqraftLabels.js.map +1 -1
- package/dist/helpers/sentenceCase.d.ts +9 -0
- package/dist/helpers/sentenceCase.d.ts.map +1 -0
- package/dist/helpers/sentenceCase.js +22 -0
- package/dist/helpers/sentenceCase.js.map +1 -0
- package/dist/helpers/singleLineString.d.ts.map +1 -1
- package/dist/helpers/singleLineString.js +1 -0
- package/dist/helpers/singleLineString.js.map +1 -1
- package/dist/helpers/templateCatalogue.d.ts +2 -2
- package/dist/helpers/templateCatalogue.js +3 -3
- package/dist/helpers/templateCatalogueContext.d.ts +1 -1
- package/dist/helpers/templateCatalogueContext.js +1 -1
- package/dist/helpers/templateItems.d.ts +15 -1
- package/dist/helpers/templateItems.d.ts.map +1 -1
- package/dist/helpers/templateItems.js +59 -2
- package/dist/helpers/templateItems.js.map +1 -1
- package/dist/helpers/templateListLabels.d.ts +9 -0
- package/dist/helpers/templateListLabels.d.ts.map +1 -1
- package/dist/helpers/templateListLabels.js +10 -0
- package/dist/helpers/templateListLabels.js.map +1 -1
- package/dist/helpers/templateTree.d.ts +9 -9
- package/dist/helpers/templateTree.js +14 -14
- package/dist/helpers/templateType.d.ts +1 -1
- package/dist/helpers/templateType.js +1 -1
- package/dist/helpers/templates.d.ts +53 -9
- package/dist/helpers/templates.d.ts.map +1 -1
- package/dist/helpers/templates.js +165 -44
- package/dist/helpers/templates.js.map +1 -1
- package/dist/helpers/validationLabels.d.ts +193 -0
- package/dist/helpers/validationLabels.d.ts.map +1 -0
- package/dist/helpers/validationLabels.js +213 -0
- package/dist/helpers/validationLabels.js.map +1 -0
- package/dist/helpers/validations.d.ts +16 -4
- package/dist/helpers/validations.d.ts.map +1 -1
- package/dist/helpers/validations.js +211 -209
- package/dist/helpers/validations.js.map +1 -1
- package/dist/helpers/webLink.d.ts +2 -2
- package/dist/helpers/webLink.js +2 -2
- package/dist/hooks/useDestructiveButtonProps.d.ts +22 -0
- package/dist/hooks/useDestructiveButtonProps.d.ts.map +1 -0
- package/dist/hooks/useDestructiveButtonProps.js +46 -0
- package/dist/hooks/useDestructiveButtonProps.js.map +1 -0
- package/dist/hooks/useEqualValue.d.ts +14 -0
- package/dist/hooks/useEqualValue.d.ts.map +1 -0
- package/dist/hooks/useEqualValue.js +27 -0
- package/dist/hooks/useEqualValue.js.map +1 -0
- package/dist/hooks/useFetch/useFetch.js +1 -1
- package/dist/hooks/useReadableIntentShade.d.ts +1 -1
- package/dist/hooks/useReadableIntentShade.js +1 -1
- package/dist/hooks/useReadableOpacity.d.ts +1 -1
- package/dist/hooks/useReadableOpacity.js +1 -1
- package/dist/hooks/useTemplates.d.ts +0 -7
- package/dist/hooks/useTemplates.d.ts.map +1 -1
- package/dist/hooks/useTemplates.js +25 -12
- package/dist/hooks/useTemplates.js.map +1 -1
- package/dist/hooks/useWebSocket/useWebSocket.d.ts.map +1 -1
- package/dist/hooks/useWebSocket/useWebSocket.js +6 -5
- package/dist/hooks/useWebSocket/useWebSocket.js.map +1 -1
- package/dist/index.d.ts +4 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +20 -3
- package/dist/index.js.map +1 -1
- package/dist/providers/StorageProvider.d.ts +1 -1
- package/dist/providers/StorageProvider.js +1 -1
- package/dist/stores/currentUser/currentUser.d.ts +5 -5
- package/dist/stores/currentUser/currentUser.d.ts.map +1 -1
- package/dist/tracking/ui/ExperimentCard.d.ts +3 -3
- package/dist/tracking/ui/ExperimentCard.d.ts.map +1 -1
- package/dist/tracking/ui/ExperimentCard.js +34 -46
- package/dist/tracking/ui/ExperimentCard.js.map +1 -1
- package/dist/tracking/ui/ExperimentsOverlay.d.ts +3 -3
- package/dist/tracking/ui/ExperimentsOverlay.d.ts.map +1 -1
- package/dist/tracking/ui/ExperimentsOverlay.js +8 -6
- package/dist/tracking/ui/ExperimentsOverlay.js.map +1 -1
- package/dist/tracking/ui/card.d.ts +9 -13
- package/dist/tracking/ui/card.d.ts.map +1 -1
- package/dist/tracking/ui/card.js +96 -107
- package/dist/tracking/ui/card.js.map +1 -1
- package/dist/tracking/ui/client.d.ts +0 -6
- package/dist/tracking/ui/client.d.ts.map +1 -1
- package/dist/tracking/ui/client.js +9 -2
- package/dist/tracking/ui/client.js.map +1 -1
- package/dist/tracking/ui/labels.d.ts +198 -0
- package/dist/tracking/ui/labels.d.ts.map +1 -0
- package/dist/tracking/ui/labels.js +171 -0
- package/dist/tracking/ui/labels.js.map +1 -0
- package/dist/tracking/ui/readable.js +1 -1
- package/dist/utils/fetch.d.ts +1 -1
- package/dist/utils/fetch.js +1 -1
- package/package.json +2 -1
|
@@ -96,6 +96,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
96
96
|
exports.CompactRow = exports.richtextItemText = void 0;
|
|
97
97
|
var jsx_runtime_1 = require("react/jsx-runtime");
|
|
98
98
|
var reqraftLabels_1 = require("../../../helpers/reqraftLabels");
|
|
99
|
+
var useDestructiveButtonProps_1 = require("../../../hooks/useDestructiveButtonProps");
|
|
99
100
|
var reqore_1 = require("@qoretechnologies/reqore");
|
|
100
101
|
var rowMenuContext_1 = require("./rowMenuContext");
|
|
101
102
|
var optionActions_1 = require("./optionActions");
|
|
@@ -119,15 +120,20 @@ var compactRowContext_1 = require("./compactRowContext");
|
|
|
119
120
|
var qorusTypeCatalogue_1 = require("../../../helpers/qorusTypeCatalogue");
|
|
120
121
|
var typeSentenceForm_1 = require("../typeSentenceForm");
|
|
121
122
|
var inheritProps_1 = require("./inheritProps");
|
|
123
|
+
var formAppearance_1 = require("./formAppearance");
|
|
122
124
|
var revealRow_1 = require("./revealRow");
|
|
125
|
+
var FieldMessageDetails_1 = require("./FieldMessageDetails");
|
|
126
|
+
var ReadReveal_1 = require("./ReadReveal");
|
|
123
127
|
var compactRowStyles_1 = require("./compactRowStyles");
|
|
124
128
|
var OptionFieldMessages_1 = require("./OptionFieldMessages");
|
|
125
129
|
var rowFocus_1 = require("./rowFocus");
|
|
130
|
+
var rowLabelled_1 = require("./rowLabelled");
|
|
126
131
|
var rowOpenPicker_1 = require("./rowOpenPicker");
|
|
127
132
|
var SchemaDataView_1 = require("./_structuredData/SchemaDataView");
|
|
128
133
|
var queryUnlessCancelled_1 = require("../../../utils/queryUnlessCancelled");
|
|
129
134
|
var markdownText_1 = require("../../../helpers/markdownText");
|
|
130
135
|
var readFirst_1 = require("./readFirst");
|
|
136
|
+
var cardHeaderPin_1 = require("./cardHeaderPin");
|
|
131
137
|
var StructuredDataView_1 = require("./_structuredData/StructuredDataView");
|
|
132
138
|
var DpqlRendering_1 = require("../expressions/DpqlRendering");
|
|
133
139
|
var argumentPresence_1 = require("../expressions/argumentPresence");
|
|
@@ -258,8 +264,26 @@ exports.CompactRow = (0, react_1.memo)(function (_a) {
|
|
|
258
264
|
var optionName = _a.optionName, optionField = _a.optionField, _r = _a.hidden, hidden = _r === void 0 ? false : _r, _s = _a.clustered, clustered = _s === void 0 ? false : _s, _t = _a.clusterFirst, clusterFirst = _t === void 0 ? false : _t, _u = _a.clusterLast, clusterLast = _u === void 0 ? false : _u, absorbedFields = _a.absorbedFields;
|
|
259
265
|
var feWords = (0, reqraftLabels_1.useReqraftLabels)().formEngine;
|
|
260
266
|
var readOnly = (0, use_context_selector_1.useContextSelector)(compactRowContext_1.CompactRowContext, function (v) { return v.readOnly; });
|
|
267
|
+
// The look only — see `TFormEngineAppearance`. Nothing a row DOES reads it.
|
|
268
|
+
var calm = (0, formAppearance_1.useIsCalmForm)();
|
|
261
269
|
var commitMode = (0, use_context_selector_1.useContextSelector)(compactRowContext_1.CompactRowContext, function (v) { return v.commitMode; });
|
|
262
270
|
var options = (0, use_context_selector_1.useContextSelector)(compactRowContext_1.CompactRowContext, function (v) { return v.options; });
|
|
271
|
+
// Whether this field's emptiness is a fault yet: the person has opened it and left,
|
|
272
|
+
// or the host reported a submit attempt. Before that a required field is only to
|
|
273
|
+
// fill in, and says so in the quiet colour.
|
|
274
|
+
// a destructive control's look, the same as every other reqraft draws (`useDestructiveButtonProps`)
|
|
275
|
+
var destructive = (0, useDestructiveButtonProps_1.useDestructiveButtonProps)();
|
|
276
|
+
/* Whether the person has been to this field, as the form judges it (`hasBeenToTheField`): a one-of member
|
|
277
|
+
once anyone has been to its group, so its words, its color and the form's counts agree. */
|
|
278
|
+
var visited = (0, use_context_selector_1.useContextSelector)(compactRowContext_1.CompactRowContext, function (v) {
|
|
279
|
+
var _a, _b;
|
|
280
|
+
return (0, readFirst_1.hasBeenToTheField)(optionName, {
|
|
281
|
+
visitedOptions: v.visitedOptions,
|
|
282
|
+
revealRequired: v.revealRequired,
|
|
283
|
+
requiredGroups: (_b = (_a = v.options) === null || _a === void 0 ? void 0 : _a[optionName]) === null || _b === void 0 ? void 0 : _b.required_groups,
|
|
284
|
+
groupMembers: v.requiredGroupsInfo.members,
|
|
285
|
+
});
|
|
286
|
+
});
|
|
263
287
|
// An absorbed field keeps its own name — it is a different field, not a
|
|
264
288
|
// property of its host — so the label comes from its schema exactly as it
|
|
265
289
|
// would on its own row.
|
|
@@ -272,6 +296,9 @@ exports.CompactRow = (0, react_1.memo)(function (_a) {
|
|
|
272
296
|
var CodeEditor = (0, use_context_selector_1.useContextSelector)(compactRowContext_1.CompactRowContext, function (v) { return v.codeEditor; });
|
|
273
297
|
var readSummaries = (0, use_context_selector_1.useContextSelector)(compactRowContext_1.CompactRowContext, function (v) { return v.readSummaries; });
|
|
274
298
|
var cardEditorTypes = (0, use_context_selector_1.useContextSelector)(compactRowContext_1.CompactRowContext, function (v) { return v.cardEditorTypes; });
|
|
299
|
+
var stickyCardHeaders = (0, use_context_selector_1.useContextSelector)(compactRowContext_1.CompactRowContext, function (v) { return v.stickyCardHeaders; });
|
|
300
|
+
var stickyHostOffset = (0, use_context_selector_1.useContextSelector)(compactRowContext_1.CompactRowContext, function (v) { return v.stickyHostOffset; });
|
|
301
|
+
var pinnedHeaderSurface = (0, use_context_selector_1.useContextSelector)(compactRowContext_1.CompactRowContext, function (v) { return v.pinnedHeaderSurface; });
|
|
275
302
|
var markdownRenderer = (0, markdownRendererContext_1.useMarkdownRenderer)();
|
|
276
303
|
var operators = (0, use_context_selector_1.useContextSelector)(compactRowContext_1.CompactRowContext, function (v) { return v.operators; });
|
|
277
304
|
var focusedEditing = (0, use_context_selector_1.useContextSelector)(compactRowContext_1.CompactRowContext, function (v) { return v.focusedEditing; });
|
|
@@ -283,13 +310,19 @@ exports.CompactRow = (0, react_1.memo)(function (_a) {
|
|
|
283
310
|
var isExpanded = (0, use_context_selector_1.useContextSelector)(compactRowContext_1.CompactRowContext, function (v) {
|
|
284
311
|
return v.expandedOptions.includes(optionName);
|
|
285
312
|
});
|
|
313
|
+
/* Its editor is always open (`alwaysExpandedOptions`): the editor is the field's content, so the row draws
|
|
314
|
+
nothing that closes it, empties it or throws its edits away (the IDE's test cases). */
|
|
315
|
+
var alwaysOpen = (0, use_context_selector_1.useContextSelector)(compactRowContext_1.CompactRowContext, function (v) { var _a; return !!((_a = v.alwaysExpandedOptions) === null || _a === void 0 ? void 0 : _a.includes(optionName)); });
|
|
286
316
|
// the box this open field moves to when it is closed, when that is not the one it is shown in
|
|
287
317
|
var isHighlighted = (0, use_context_selector_1.useContextSelector)(compactRowContext_1.CompactRowContext, function (v) {
|
|
288
318
|
return v.highlightedOptions.includes(optionName);
|
|
289
319
|
});
|
|
290
|
-
|
|
291
|
-
|
|
320
|
+
/* -1 when this row is not flashing; otherwise which of the two (identical) animations it plays, alternating
|
|
321
|
+
with each flash, so that flashing it again starts the animation again. */
|
|
322
|
+
var flashTurn = (0, use_context_selector_1.useContextSelector)(compactRowContext_1.CompactRowContext, function (v) {
|
|
323
|
+
return v.flashedOptions.includes(optionName) ? v.flashGeneration % 2 : -1;
|
|
292
324
|
});
|
|
325
|
+
var isFlashed = flashTurn !== -1;
|
|
293
326
|
var setHighlightedOptions = (0, use_context_selector_1.useContextSelector)(compactRowContext_1.CompactRowContext, function (v) { return v.setHighlightedOptions; });
|
|
294
327
|
var setFocusedEditing = (0, use_context_selector_1.useContextSelector)(compactRowContext_1.CompactRowContext, function (v) { return v.setFocusedEditing; });
|
|
295
328
|
var readRowHeights = (0, use_context_selector_1.useContextSelector)(compactRowContext_1.CompactRowContext, function (v) { return v.readRowHeights; });
|
|
@@ -351,6 +384,11 @@ exports.CompactRow = (0, react_1.memo)(function (_a) {
|
|
|
351
384
|
var cDanger = (0, use_context_selector_1.useContextSelector)(compactRowContext_1.CompactRowContext, function (v) { return v.cDanger; });
|
|
352
385
|
var cWarning = (0, use_context_selector_1.useContextSelector)(compactRowContext_1.CompactRowContext, function (v) { return v.cWarning; });
|
|
353
386
|
var cInfo = (0, use_context_selector_1.useContextSelector)(compactRowContext_1.CompactRowContext, function (v) { return v.cInfo; });
|
|
387
|
+
var cText = (0, use_context_selector_1.useContextSelector)(compactRowContext_1.CompactRowContext, function (v) { return v.cText; });
|
|
388
|
+
// A field's NAME: full text colour by default; grey in the calm look, so the
|
|
389
|
+
// value beside it is what the eye lands on. One colour for the read row, the
|
|
390
|
+
// open row and the edit card, so a name does not change as its field opens.
|
|
391
|
+
var cLabel = calm ? "".concat(cText, "b3") : cKey;
|
|
354
392
|
// A markdown value renders as a document in the row's inset; the host's
|
|
355
393
|
// renderer when it supplied one, reqraft's own otherwise.
|
|
356
394
|
// Value-cell content: color adds a swatch, file an icon + size; hash keeps
|
|
@@ -358,8 +396,8 @@ exports.CompactRow = (0, react_1.memo)(function (_a) {
|
|
|
358
396
|
var renderReadFirstValue = function (field, schema, formatted,
|
|
359
397
|
/* An editable row's plain text wraps, up to three lines: its value line is a summary you click to open,
|
|
360
398
|
and the whole value is in the row's editor. It was one line with an ellipsis, and an address or a
|
|
361
|
-
sentence lost its end at every width
|
|
362
|
-
|
|
399
|
+
sentence lost its end at every width. Wrapped, it can be read and copied on a phone and a desktop alike.
|
|
400
|
+
A read-only row is the only
|
|
363
401
|
rendering the value gets, so it wraps in full (`full`), a long text moving to the inset under the row
|
|
364
402
|
with "Show more". */
|
|
365
403
|
full) {
|
|
@@ -414,7 +452,7 @@ exports.CompactRow = (0, react_1.memo)(function (_a) {
|
|
|
414
452
|
// its own — the same schema key its rich-text editor is given.
|
|
415
453
|
var templateGrammar = schema === null || schema === void 0 ? void 0 : schema.templateToken;
|
|
416
454
|
/* A template or an expression is shown as one, whatever the field's type, so these two come before
|
|
417
|
-
any type draws a value of its own
|
|
455
|
+
any type draws a value of its own. A color's branch came first and called a template
|
|
418
456
|
or an expression on a color option "Set"; a file's printed the raw reference as a file name. */
|
|
419
457
|
if (typeof (field === null || field === void 0 ? void 0 : field.value) === 'string' &&
|
|
420
458
|
!isExpression &&
|
|
@@ -441,8 +479,13 @@ exports.CompactRow = (0, react_1.memo)(function (_a) {
|
|
|
441
479
|
// trailing key pill (the editor renders it as a ReqoreButton badge).
|
|
442
480
|
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 }));
|
|
443
481
|
}
|
|
444
|
-
// a yes/no holding a template has read as the template, above, not as Yes
|
|
482
|
+
// a yes/no holding a template has read as the template, above, not as Yes
|
|
445
483
|
if (valueType === 'bool' || valueType === 'boolean') {
|
|
484
|
+
// Calm: Yes and No are words. Neither is a status — "No" is not a
|
|
485
|
+
// failure — so neither is coloured.
|
|
486
|
+
if (calm) {
|
|
487
|
+
return (0, jsx_runtime_1.jsx)("span", { style: textStyle, children: formatted });
|
|
488
|
+
}
|
|
446
489
|
var truthy = (field === null || field === void 0 ? void 0 : field.value) === true || (field === null || field === void 0 ? void 0 : field.value) === 'true';
|
|
447
490
|
return ((0, jsx_runtime_1.jsx)(reqore_1.ReqoreTag, { size: 'small', minimal: true, intent: truthy ? 'success' : 'danger', label: formatted }));
|
|
448
491
|
}
|
|
@@ -491,7 +534,7 @@ exports.CompactRow = (0, react_1.memo)(function (_a) {
|
|
|
491
534
|
return null;
|
|
492
535
|
}
|
|
493
536
|
/* What the value is called and its picture, as its own control draws it: a language is "Qore" with
|
|
494
|
-
its logo, not the value it is stored as, "qore"
|
|
537
|
+
its logo, not the value it is stored as, "qore". */
|
|
495
538
|
var absorbedSchema = options === null || options === void 0 ? void 0 : options[absorbedName];
|
|
496
539
|
var choice = (0, readFirst_1.findAllowedValueOption)(absorbedValue, absorbedSchema);
|
|
497
540
|
return ((0, jsx_runtime_1.jsx)(reqore_1.ReqoreTag, { className: 'options-readfirst-absorbed-tag', size: 'small', minimal: true, icon: (choice === null || choice === void 0 ? void 0 : choice.image) ? 'CheckboxBlankLine' : undefined, leftIconProps: (choice === null || choice === void 0 ? void 0 : choice.image) ? { image: choice.image } : undefined, label: (0, readFirst_1.formatOptionValue)(absorbedField, absorbedSchema) ||
|
|
@@ -572,8 +615,8 @@ exports.CompactRow = (0, react_1.memo)(function (_a) {
|
|
|
572
615
|
return withExpressionMarker((0, jsx_runtime_1.jsx)(TemplateText_1.TemplateText, { segments: templateSegments, templates: ownTemplates, full: full }));
|
|
573
616
|
}
|
|
574
617
|
/* A value that is a web address is a link to it, in an editable row and a read-only one: it opens in a
|
|
575
|
-
new tab, and a click or a key on it follows it and does not open the row
|
|
576
|
-
|
|
618
|
+
new tab, and a click or a key on it follows it and does not open the row. Only the value as typed: a
|
|
619
|
+
value drawn as a label
|
|
577
620
|
or masked is not its address. */
|
|
578
621
|
var link = formatted === (field === null || field === void 0 ? void 0 : field.value) ? (0, webLink_1.webLinkOf)(formatted) : undefined;
|
|
579
622
|
return withExpressionMarker((0, jsx_runtime_1.jsx)("span", { style: textStyle, children: link ?
|
|
@@ -583,7 +626,7 @@ exports.CompactRow = (0, react_1.memo)(function (_a) {
|
|
|
583
626
|
var schema = options === null || options === void 0 ? void 0 : options[optionName];
|
|
584
627
|
var label = (schema === null || schema === void 0 ? void 0 : schema.display_name) || optionName;
|
|
585
628
|
/* The name and its asterisk, which a word joiner (U+2060) holds to the name's last character: it is on the
|
|
586
|
-
name's (last) line, never on a line of its own under it
|
|
629
|
+
name's (last) line, never on a line of its own under it. The name stays one text,
|
|
587
630
|
found by its words as it always was. */
|
|
588
631
|
var nameWithAsterisk = function (asterisk) { return ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [label, asterisk ?
|
|
589
632
|
(0, jsx_runtime_1.jsxs)(compactRowStyles_1.StyledLabelAsterisk, { className: 'options-readfirst-required', children: ['\u2060', (0, jsx_runtime_1.jsx)(reqore_1.ReqoreIcon, { icon: 'Asterisk', color: rowInks.danger, size: "".concat(compactRowStyles_1.LABEL_ASTERISK_SIZE, "px"), margin: 'left', marginSize: 'tiny' })] })
|
|
@@ -623,8 +666,11 @@ exports.CompactRow = (0, react_1.memo)(function (_a) {
|
|
|
623
666
|
}, children: actionLabel }), "".concat(optionName, "-injected-action-").concat(index)));
|
|
624
667
|
};
|
|
625
668
|
var required = !!((schema === null || schema === void 0 ? void 0 : schema.required) || (schema === null || schema === void 0 ? void 0 : schema.required_groups));
|
|
626
|
-
// The asterisk says "you have to fill this in". Read-only, nobody does.
|
|
627
|
-
|
|
669
|
+
// The asterisk says "you have to fill this in". Read-only, nobody does. The
|
|
670
|
+
// calm look draws none at all: an empty required field says so in its
|
|
671
|
+
// value column instead ("Required · add a value"), and a filled one has
|
|
672
|
+
// nothing left to ask for.
|
|
673
|
+
var requiredMark = required && !readOnly && !calm;
|
|
628
674
|
var removable = !readOnly && !(schema === null || schema === void 0 ? void 0 : schema.preselected) && !(schema === null || schema === void 0 ? void 0 : schema.required) && !(schema === null || schema === void 0 ? void 0 : schema.required_groups);
|
|
629
675
|
var changed = !hidden && !readOnly && hasOptionChanged(optionField === null || optionField === void 0 ? void 0 : optionField.value, optionName);
|
|
630
676
|
// "Has a value" = set to anything non-empty. Drives the edit-row Clear
|
|
@@ -671,7 +717,13 @@ exports.CompactRow = (0, react_1.memo)(function (_a) {
|
|
|
671
717
|
if ((0, hoveringPointer_1.isHoveringPointer)(e)) {
|
|
672
718
|
setHighlightedOptions(requiredGroupsInfo.members[chipGroups[0]] || []);
|
|
673
719
|
}
|
|
674
|
-
}, 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 },
|
|
720
|
+
}, 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: calm ? undefined : { uppercase: true, spaced: 1 },
|
|
721
|
+
// Calm: a met group is nothing to point at — only the unmet one is
|
|
722
|
+
// coloured.
|
|
723
|
+
intent: groupResolved ?
|
|
724
|
+
calm ? undefined
|
|
725
|
+
: 'success'
|
|
726
|
+
: 'warning', icon: groupResolved ? 'CheckLine' : 'LinkM', label: !groupResolved ? feWords.oneOf
|
|
675
727
|
: coveredByLabel ?
|
|
676
728
|
feWords.coveredBy(coveredByLabel)
|
|
677
729
|
: feWords.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 ?
|
|
@@ -693,7 +745,7 @@ exports.CompactRow = (0, react_1.memo)(function (_a) {
|
|
|
693
745
|
: (schema === null || schema === void 0 ? void 0 : schema.ui_type) || (schema === null || schema === void 0 ? void 0 : schema.type))) !== null && _d !== void 0 ? _d : '';
|
|
694
746
|
/* A complex field (a tall or nested editor) opens in the card below the row: reqraft's own complex types, and
|
|
695
747
|
the host's editors it names (`cardEditorTypes`): a host editor of its own, such as a sheet contract, opened
|
|
696
|
-
in the row's value column, about 240px wide
|
|
748
|
+
in the row's value column, about 240px wide. */
|
|
697
749
|
var isHostCardEditor = !!(cardEditorTypes === null || cardEditorTypes === void 0 ? void 0 : cardEditorTypes.includes(editType));
|
|
698
750
|
var opensInCard = COMPACT_COMPLEX_TYPES.has(editType) || isHostCardEditor;
|
|
699
751
|
/* What the host draws for the row when it is closed (`readSummaries`): a summary of its own, under which the
|
|
@@ -703,7 +755,7 @@ exports.CompactRow = (0, react_1.memo)(function (_a) {
|
|
|
703
755
|
/* In a read-only form, a row whose content its line does not show - a host editor that opens in the card, or a
|
|
704
756
|
row the host summarizes - opens its card with the editor read-only, and its fullscreen view: the summary is
|
|
705
757
|
one line ("4 columns · 1 rule"), and with no preview under it, the card is where what it holds is read
|
|
706
|
-
|
|
758
|
+
Any other read-only row shows all it holds and opens nothing. */
|
|
707
759
|
var readOnlyOpens = !!readOnly && !hidden && (isHostCardEditor || !!ReadSummary);
|
|
708
760
|
// Scalars edit in place inside the row; complex fields (tall or nested
|
|
709
761
|
// editors) still open the expanded card below.
|
|
@@ -818,6 +870,8 @@ exports.CompactRow = (0, react_1.memo)(function (_a) {
|
|
|
818
870
|
// never pull a reader out of a control they moved into themselves.
|
|
819
871
|
var editorRef = react_1.default.useRef(null);
|
|
820
872
|
var rowRef = react_1.default.useRef(null);
|
|
873
|
+
/* Open as a card, a long body keeps its heading on screen (`cardHeaderPin.ts`). */
|
|
874
|
+
var cardPin = (0, cardHeaderPin_1.useCardHeaderPin)(rowRef, !!stickyCardHeaders && isExpanded && (!readOnly || readOnlyOpens) && !inlineEditable, stickyHostOffset);
|
|
821
875
|
react_1.default.useEffect(function () {
|
|
822
876
|
if (!isExpanded)
|
|
823
877
|
return undefined;
|
|
@@ -825,28 +879,58 @@ exports.CompactRow = (0, react_1.memo)(function (_a) {
|
|
|
825
879
|
if (!editor)
|
|
826
880
|
return undefined;
|
|
827
881
|
var settled = false;
|
|
882
|
+
/* A control that is not a text box holds the caret PROVISIONALLY. An editor that
|
|
883
|
+
takes text can mount after the row opens (a code editor loads late), and until
|
|
884
|
+
it does the only control there is its chrome: a fullscreen toggle. When the
|
|
885
|
+
text box arrives it takes the caret, unless the reader has moved it since. A
|
|
886
|
+
row that never grows one (a pick-one) simply keeps its control. */
|
|
887
|
+
var provisional = null;
|
|
828
888
|
var takeCaret = function () {
|
|
829
889
|
var _a;
|
|
830
890
|
if (settled)
|
|
831
891
|
return true;
|
|
832
892
|
var active = document.activeElement;
|
|
893
|
+
if (provisional) {
|
|
894
|
+
if (active !== provisional) {
|
|
895
|
+
// The reader moved the caret themselves. Leave it there.
|
|
896
|
+
settled = true;
|
|
897
|
+
return true;
|
|
898
|
+
}
|
|
899
|
+
var textEntry = (0, rowFocus_1.findRowFocusTarget)(editor, { textEntryOnly: true });
|
|
900
|
+
if (!textEntry)
|
|
901
|
+
return false;
|
|
902
|
+
textEntry.focus({ preventScroll: true });
|
|
903
|
+
// An editor's text box can be in the DOM before it can take focus (Monaco's
|
|
904
|
+
// edit area, mid-layout), and `focus()` then does nothing. Only a caret
|
|
905
|
+
// that landed counts; otherwise try again on the editor's next change.
|
|
906
|
+
if (document.activeElement !== textEntry)
|
|
907
|
+
return false;
|
|
908
|
+
settled = true;
|
|
909
|
+
return true;
|
|
910
|
+
}
|
|
833
911
|
if (active && active !== document.body && !((_a = rowRef.current) === null || _a === void 0 ? void 0 : _a.contains(active))) {
|
|
834
912
|
// Someone else holds the caret — a field the reader moved into while
|
|
835
913
|
// this row's editor was still arriving. Leave it where it is.
|
|
836
914
|
settled = true;
|
|
837
915
|
return true;
|
|
838
916
|
}
|
|
839
|
-
|
|
917
|
+
// A card hands the caret only to where text goes (see `findRowFocusTarget`).
|
|
918
|
+
var control = (0, rowFocus_1.findRowFocusTarget)(editor, { textEntryOnly: !inlineEditable });
|
|
840
919
|
if (!control)
|
|
841
920
|
return false;
|
|
842
|
-
// The least scroll that shows the row clear of the pinned box header,
|
|
843
|
-
//
|
|
844
|
-
|
|
921
|
+
// The least scroll that shows the row clear of the pinned box header, and none
|
|
922
|
+
// while the line the caret lands on is in view (`isCaretLineInView`: the row's own
|
|
923
|
+
// height is not settled yet, the top of its control is).
|
|
924
|
+
if (rowRef.current && !(0, revealRow_1.isCaretLineInView)(control, (0, revealRow_1.getRevealClearance)(control))) {
|
|
845
925
|
(0, revealRow_1.revealRow)(rowRef.current, 'auto');
|
|
846
926
|
}
|
|
847
927
|
// `preventScroll`, because the reveal above has already put the row
|
|
848
928
|
// where it belongs; letting focus scroll as well moves it twice.
|
|
849
929
|
control.focus({ preventScroll: true });
|
|
930
|
+
// A control that cannot take focus yet (still laying out) did not take
|
|
931
|
+
// the caret: try again on the editor's next change.
|
|
932
|
+
if (document.activeElement !== control)
|
|
933
|
+
return false;
|
|
850
934
|
/* …and if the control the row offers is a PICKER, open it.
|
|
851
935
|
*
|
|
852
936
|
* A closed picker prints the value it holds, which is exactly what the
|
|
@@ -864,6 +948,13 @@ exports.CompactRow = (0, react_1.memo)(function (_a) {
|
|
|
864
948
|
if (openedByAuthor.current && inlineEditable && (0, rowFocus_1.isClosedPickerTrigger)(control)) {
|
|
865
949
|
openedByAuthor.current = false;
|
|
866
950
|
setOpenThePicker(true);
|
|
951
|
+
settled = true;
|
|
952
|
+
return true;
|
|
953
|
+
}
|
|
954
|
+
if ((0, rowFocus_1.findRowFocusTarget)(editor, { textEntryOnly: true }) !== control) {
|
|
955
|
+
// Not a text box: hold it until one arrives (see `provisional`).
|
|
956
|
+
provisional = control;
|
|
957
|
+
return false;
|
|
867
958
|
}
|
|
868
959
|
settled = true;
|
|
869
960
|
return true;
|
|
@@ -874,7 +965,9 @@ exports.CompactRow = (0, react_1.memo)(function (_a) {
|
|
|
874
965
|
if (takeCaret())
|
|
875
966
|
observer.disconnect();
|
|
876
967
|
});
|
|
877
|
-
|
|
968
|
+
// Attributes too: an editor's text box can become focusable by an attribute or
|
|
969
|
+
// style change after it is inserted (see the `focus()` checks above).
|
|
970
|
+
observer.observe(editor, { childList: true, subtree: true, attributes: true });
|
|
878
971
|
return function () { return observer.disconnect(); };
|
|
879
972
|
}, [isExpanded, optionName, inlineEditable]);
|
|
880
973
|
// What the field held when it was opened — the baseline Cancel restores.
|
|
@@ -911,6 +1004,10 @@ exports.CompactRow = (0, react_1.memo)(function (_a) {
|
|
|
911
1004
|
// Discard whatever was typed since the field was opened and close it. Used
|
|
912
1005
|
// by both the Cancel button and Escape, so the two cannot diverge.
|
|
913
1006
|
var cancelEdit = react_1.default.useCallback(function () {
|
|
1007
|
+
// a row that is always open has no edit to cancel: what it holds is what its editor shows
|
|
1008
|
+
if (alwaysOpen) {
|
|
1009
|
+
return;
|
|
1010
|
+
}
|
|
914
1011
|
// an edit still waiting for its pause is part of what is discarded
|
|
915
1012
|
pendingEdits.discard();
|
|
916
1013
|
var snapshot = editEntryValue.current;
|
|
@@ -922,7 +1019,7 @@ exports.CompactRow = (0, react_1.memo)(function (_a) {
|
|
|
922
1019
|
handleValueChange.apply(void 0, __spreadArray([optionName], (0, argumentPresence_1.restoredFieldChange)(snapshot), false));
|
|
923
1020
|
}
|
|
924
1021
|
collapseOption(optionName);
|
|
925
|
-
}, [handleValueChange, optionField === null || optionField === void 0 ? void 0 : optionField.value, optionName, collapseOption, pendingEdits]);
|
|
1022
|
+
}, [handleValueChange, optionField === null || optionField === void 0 ? void 0 : optionField.value, optionName, collapseOption, pendingEdits, alwaysOpen]);
|
|
926
1023
|
// The sub-schema describing this field's value, when it has one. A value the
|
|
927
1024
|
// form knows the shape of is previewed THROUGH that shape (see
|
|
928
1025
|
// `SchemaDataView`); only genuinely undescribed data falls through to the
|
|
@@ -1025,13 +1122,13 @@ exports.CompactRow = (0, react_1.memo)(function (_a) {
|
|
|
1025
1122
|
onConfirm: function () { return handleValueChange(optionName, undefined); },
|
|
1026
1123
|
});
|
|
1027
1124
|
};
|
|
1028
|
-
var clearValueButton = hasValue && !readOnly && editorLacksOwnClear ?
|
|
1029
|
-
(0, jsx_runtime_1.jsx)(reqore_1.ReqoreButton, { className: 'options-readfirst-clear', size: 'small', flat: true, minimal: true, icon: 'DeleteBinLine',
|
|
1125
|
+
var clearValueButton = hasValue && !readOnly && editorLacksOwnClear && !alwaysOpen ?
|
|
1126
|
+
(0, jsx_runtime_1.jsx)(reqore_1.ReqoreButton, __assign({ className: 'options-readfirst-clear', size: 'small', flat: true, minimal: true, icon: 'DeleteBinLine' }, destructive, { "aria-label": feWords.clearValue, tooltip: feWords.clearValue, onClick: confirmClearValue }))
|
|
1030
1127
|
: null;
|
|
1031
1128
|
// Batched commit: a changed row is a draft until Save — mark it with the
|
|
1032
1129
|
// product's Draft chip (always visible, unlike the hover-revealed revert).
|
|
1033
1130
|
var draftChip = commitMode === 'batched' && changed ?
|
|
1034
|
-
(0, jsx_runtime_1.jsx)(reqore_1.ReqoreTag, { className: 'options-readfirst-draft', label: feWords.draft, intent: 'warning', icon: 'EditLine', size: 'tiny', minimal: true, fixed: true, flat: true, compact: true, effect: { uppercase: true, spaced: 1 } })
|
|
1131
|
+
(0, jsx_runtime_1.jsx)(reqore_1.ReqoreTag, { className: 'options-readfirst-draft', label: feWords.draft, intent: 'warning', icon: 'EditLine', size: 'tiny', minimal: true, fixed: true, flat: true, compact: true, effect: calm ? undefined : { uppercase: true, spaced: 1 } })
|
|
1035
1132
|
: null;
|
|
1036
1133
|
// nothing can have been typed where the value is a fixed choice, or the form is read-only (a card opened to read)
|
|
1037
1134
|
var isPassiveCloseAction = fixedAllowedValueOption || !!readOnly;
|
|
@@ -1046,8 +1143,8 @@ exports.CompactRow = (0, react_1.memo)(function (_a) {
|
|
|
1046
1143
|
//
|
|
1047
1144
|
// Not offered when the close action is passive (a fixed choice) —
|
|
1048
1145
|
// nothing can have been typed, so there is nothing to cancel.
|
|
1049
|
-
var cancelEditButton = !isPassiveCloseAction && editedSinceOpened ?
|
|
1050
|
-
(0, jsx_runtime_1.jsx)(reqore_1.ReqoreButton, { className: 'options-readfirst-cancel', size: 'small', flat: true, minimal: true, fixed: true, icon: 'CloseLine', intent: 'warning', "aria-label": feWords.cancelEdit, tooltip: feWords.cancelEditTooltip, onClick: function (event) {
|
|
1146
|
+
var cancelEditButton = !isPassiveCloseAction && editedSinceOpened && !alwaysOpen ?
|
|
1147
|
+
(0, jsx_runtime_1.jsx)(reqore_1.ReqoreButton, { className: 'options-readfirst-cancel', size: 'small', flat: true, minimal: true, fixed: true, icon: 'CloseLine', intent: calm ? undefined : 'warning', "aria-label": feWords.cancelEdit, tooltip: feWords.cancelEditTooltip, onClick: function (event) {
|
|
1051
1148
|
event.stopPropagation();
|
|
1052
1149
|
cancelEdit();
|
|
1053
1150
|
} })
|
|
@@ -1056,7 +1153,10 @@ exports.CompactRow = (0, react_1.memo)(function (_a) {
|
|
|
1056
1153
|
var openedWithFormLoadValue = !editEntryValue.current ||
|
|
1057
1154
|
(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);
|
|
1058
1155
|
var editRowRevertButton = openedWithFormLoadValue ? null : revertButton;
|
|
1059
|
-
var closeExpandedFieldButton = ((0, jsx_runtime_1.jsx)(reqore_1.ReqoreButton, { className: 'options-readfirst-done', size: 'small',
|
|
1156
|
+
var closeExpandedFieldButton = alwaysOpen ? null : ((0, jsx_runtime_1.jsx)(reqore_1.ReqoreButton, { className: 'options-readfirst-done', size: 'small',
|
|
1157
|
+
// Calm: a neutral button. Closing a field is not a healthy figure and
|
|
1158
|
+
// not the page's one primary action, so it takes neither colour.
|
|
1159
|
+
intent: !isPassiveCloseAction && !calm ? 'success' : undefined, flat: isPassiveCloseAction, minimal: isPassiveCloseAction, fixed: true, icon: isPassiveCloseAction ? 'CloseLine' : 'CheckLine', "aria-label": isPassiveCloseAction ? feWords.closeField : feWords.done, tooltip: isPassiveCloseAction ? feWords.closeField : feWords.done, onClick: function () {
|
|
1060
1160
|
// what was typed inside the field's pause reaches the form before the row closes
|
|
1061
1161
|
pendingEdits.flush();
|
|
1062
1162
|
collapseOption(optionName);
|
|
@@ -1066,13 +1166,15 @@ exports.CompactRow = (0, react_1.memo)(function (_a) {
|
|
|
1066
1166
|
/* A field not set yet keeps quiet in the Optional box, but not once it is opened: its editor is where
|
|
1067
1167
|
its messages are read, and one saying why the field cannot be used is the answer to opening it. Such
|
|
1068
1168
|
a row used to show them only when its editor reported '' on opening, which put the field in the form
|
|
1069
|
-
(
|
|
1169
|
+
(the Qorus IDE's "Wait (ms)", disabled while "Until Step" is set). */
|
|
1070
1170
|
var infoActive = !hidden || isExpanded;
|
|
1071
1171
|
var schemaMessages = infoActive ?
|
|
1072
1172
|
(0, OptionFieldMessages_1.getShownSchemaMessages)(schema === null || schema === void 0 ? void 0 : schema.messages, availableOptions, options).map(function (m) { return ({
|
|
1073
1173
|
intent: m.intent,
|
|
1074
1174
|
title: m.title,
|
|
1075
1175
|
content: m.content,
|
|
1176
|
+
details: m.details,
|
|
1177
|
+
detailsName: m.detailsName,
|
|
1076
1178
|
attention: m.attention,
|
|
1077
1179
|
}); })
|
|
1078
1180
|
: [];
|
|
@@ -1091,7 +1193,21 @@ exports.CompactRow = (0, react_1.memo)(function (_a) {
|
|
|
1091
1193
|
allOptions: availableOptions,
|
|
1092
1194
|
getType: getTypeForOption,
|
|
1093
1195
|
isRendererOnly: isRendererOnly,
|
|
1094
|
-
|
|
1196
|
+
calm: calm,
|
|
1197
|
+
readOnly: readOnly,
|
|
1198
|
+
// Until the person has been to the field, its requirement is stated plainly.
|
|
1199
|
+
requirementPending: !visited,
|
|
1200
|
+
})
|
|
1201
|
+
/* Calm: a one-of group nobody has been to says nothing on its rows - the group's own line ("One of the
|
|
1202
|
+
below is required") says it once, quietly - and so colors nothing: no amber edge for a group that is
|
|
1203
|
+
only still to fill in. */
|
|
1204
|
+
.filter(function (m) { return !(calm && m.requiredGroup && !visited); })
|
|
1205
|
+
.map(function (m) { return ({
|
|
1206
|
+
intent: m.intent,
|
|
1207
|
+
content: String(m.label),
|
|
1208
|
+
requirement: m.requirement,
|
|
1209
|
+
requiredGroup: m.requiredGroup,
|
|
1210
|
+
}); })
|
|
1095
1211
|
: [];
|
|
1096
1212
|
// TWO display channels, matching the Focus prototype:
|
|
1097
1213
|
// • dedicated schema `messages` → prominent colored PANELS below the row;
|
|
@@ -1124,17 +1240,16 @@ exports.CompactRow = (0, react_1.memo)(function (_a) {
|
|
|
1124
1240
|
// the inline editor: opening a field used to drop it, leaving an editing row
|
|
1125
1241
|
// with no route to the field's description at all. Stops propagation because
|
|
1126
1242
|
// both labels are click targets themselves (the row expands / collapses).
|
|
1127
|
-
/* A real button
|
|
1243
|
+
/* A real button: in the tab order with a focus ring, a finger's size on a touch
|
|
1128
1244
|
screen (`small`) and a mouse's on a desktop (`tiny`), opening the help on a click, Enter or Space. It was a
|
|
1129
1245
|
12px icon the keyboard could not reach. It sits in a label or a row that opens or closes on the same keys and
|
|
1130
1246
|
clicks, so it keeps them: the row does not also open or close. */
|
|
1131
|
-
/* What kind of value the option takes
|
|
1132
|
-
|
|
1133
|
-
|
|
1134
|
-
its types. */
|
|
1247
|
+
/* What kind of value the option takes, shown on hover or once the form shows all field information, not by
|
|
1248
|
+
default: in its name's hover and in its help, beside its description, and beside its name only while the
|
|
1249
|
+
form shows all field information or its types. */
|
|
1135
1250
|
var typeWords = (0, qorusTypeCatalogue_1.optionTypeWords)(schema, typeName);
|
|
1136
1251
|
var typeSentence = (0, qorusTypeCatalogue_1.optionTypeSentence)(schema, typeName, typeSentenceForm);
|
|
1137
|
-
// what the option is, or, where it has no description at all, why nothing says so
|
|
1252
|
+
// what the option is, or, where it has no description at all, why nothing says so
|
|
1138
1253
|
var labelHover = [
|
|
1139
1254
|
(schema === null || schema === void 0 ? void 0 : schema.short_desc) || (!(schema === null || schema === void 0 ? void 0 : schema.desc) && typeSentence ? feWords.noDescription : undefined),
|
|
1140
1255
|
typeSentence && feWords.takes(typeSentence),
|
|
@@ -1143,11 +1258,11 @@ exports.CompactRow = (0, react_1.memo)(function (_a) {
|
|
|
1143
1258
|
.join('\n') || undefined;
|
|
1144
1259
|
var typeShown = !!showFieldTypes || showAllDescriptions === true;
|
|
1145
1260
|
/* the help says what the option takes, and its description where it has one: every option with either has
|
|
1146
|
-
it, a short description too, so a touch screen, which has no hover, reaches the type
|
|
1261
|
+
it, a short description too, so a touch screen, which has no hover, reaches the type */
|
|
1147
1262
|
var helpIcon = (schema === null || schema === void 0 ? void 0 : schema.desc) || (schema === null || schema === void 0 ? void 0 : schema.short_desc) || typeSentence ?
|
|
1148
1263
|
(0, jsx_runtime_1.jsx)(reqore_1.ReqoreButton, { icon: 'QuestionLine',
|
|
1149
1264
|
/* `small`, as the row's other controls are (its clear, its list, Done, its revert): it was `tiny` with a
|
|
1150
|
-
mouse, and stood 26px high beside the open editor's 32px buttons
|
|
1265
|
+
mouse, and stood 26px high beside the open editor's 32px buttons. A finger had `small`
|
|
1151
1266
|
already, so a touch screen draws it as before. */
|
|
1152
1267
|
size: 'small', minimal: true, flat: true, fixed: true, className: 'options-readfirst-help', "aria-label": feWords.helpOn(label), tooltip: feWords.help, effect: { opacity: rowInks.helpOpacity }, onClick: function (event) {
|
|
1153
1268
|
event.stopPropagation();
|
|
@@ -1180,9 +1295,11 @@ exports.CompactRow = (0, react_1.memo)(function (_a) {
|
|
|
1180
1295
|
inside a row, never a page, and markdown authored as a document opens with
|
|
1181
1296
|
a heading that would outgrow the field label above it. Without a host
|
|
1182
1297
|
renderer it reads as the plain text its markdown renders to (`plainTextNode`). */
|
|
1183
|
-
var renderInfoStrip = function (m, index) { return ((0, jsx_runtime_1.
|
|
1184
|
-
|
|
1185
|
-
|
|
1298
|
+
var renderInfoStrip = function (m, index) { return ((0, jsx_runtime_1.jsxs)(reqore_1.ReqoreMessage, { size: 'small', opaque: false, flat: true,
|
|
1299
|
+
// Calm: a note that only informs takes no colour (`calmNoteIntent`).
|
|
1300
|
+
intent: (0, formAppearance_1.calmNoteIntent)(m.intent, calm), title: m.title, style: { marginBottom: 8 }, children: [markdownRenderer && typeof m.content === 'string' ?
|
|
1301
|
+
markdownRenderer({ value: m.content, compact: true })
|
|
1302
|
+
: (0, markdownText_1.plainTextNode)(m.content), m.details ? (0, jsx_runtime_1.jsx)(FieldMessageDetails_1.FieldMessageDetails, { details: m.details, name: m.detailsName }) : null] }, "".concat(m.content, "-").concat(index))); };
|
|
1186
1303
|
// in the intent's shade that reads on the row (the intents themselves did not: a danger reason was 2.7:1)
|
|
1187
1304
|
var reasonColor = function (intent) {
|
|
1188
1305
|
return intent === 'danger' ? rowInks.danger
|
|
@@ -1284,10 +1401,8 @@ exports.CompactRow = (0, react_1.memo)(function (_a) {
|
|
|
1284
1401
|
var codeSizeNode = (valueType === 'code-editor' &&
|
|
1285
1402
|
typeof (optionField === null || optionField === void 0 ? void 0 : optionField.value) === 'string' &&
|
|
1286
1403
|
optionField.value !== '') ?
|
|
1287
|
-
|
|
1288
|
-
|
|
1289
|
-
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)) }));
|
|
1290
|
-
})()
|
|
1404
|
+
// "23,111 characters · 701 lines": the counts in the reader's locale, in the host's words
|
|
1405
|
+
(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: (0, codeSize_1.formatCodeSize)(optionField.value) })
|
|
1291
1406
|
: null;
|
|
1292
1407
|
if (isExpanded && (!readOnly || readOnlyOpens)) {
|
|
1293
1408
|
if (inlineEditable) {
|
|
@@ -1298,14 +1413,14 @@ exports.CompactRow = (0, react_1.memo)(function (_a) {
|
|
|
1298
1413
|
};
|
|
1299
1414
|
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] ?
|
|
1300
1415
|
{ minHeight: readRowHeights.current[optionName] }
|
|
1301
|
-
: undefined }, clusterHoverProps, { children: [(0, jsx_runtime_1.jsxs)(compactRowStyles_1.StyledLabelBlock, { className: 'options-readfirst-label-block', children: [(0, jsx_runtime_1.jsx)(compactRowStyles_1.StyledRowLabel, { role: 'button', tabIndex: 0, "aria-label": feWords.collapse(label), title: labelHover, "$color":
|
|
1416
|
+
: undefined }, clusterHoverProps, { children: [(0, jsx_runtime_1.jsxs)(compactRowStyles_1.StyledLabelBlock, { className: 'options-readfirst-label-block', children: [(0, jsx_runtime_1.jsx)(compactRowStyles_1.StyledRowLabel, { role: 'button', tabIndex: 0, "aria-label": feWords.collapse(label), title: labelHover, "$color": cLabel, "$pointer": true, onClick: collapse_1, onKeyDown: function (event) {
|
|
1302
1417
|
if (event.key === 'Enter' || event.key === ' ') {
|
|
1303
1418
|
event.preventDefault();
|
|
1304
1419
|
collapse_1();
|
|
1305
1420
|
}
|
|
1306
|
-
}, children: (0, jsx_runtime_1.jsxs)(compactRowStyles_1.StyledLabelName, { "$fill": true, children: [(0, jsx_runtime_1.jsxs)("span", { className: 'options-readfirst-label-text', style: { minWidth: 0 }, children: [nameWithAsterisk(!!required), typeTag] }), helpIcon] }) }), labelShortDesc ?
|
|
1421
|
+
}, children: (0, jsx_runtime_1.jsxs)(compactRowStyles_1.StyledLabelName, { "$fill": true, children: [(0, jsx_runtime_1.jsxs)("span", { className: 'options-readfirst-label-text', style: { minWidth: 0 }, children: [nameWithAsterisk(!!required && !calm), typeTag] }), helpIcon] }) }), labelShortDesc ?
|
|
1307
1422
|
(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) })
|
|
1308
|
-
: null, codeSizeNode] }), (0, jsx_runtime_1.jsxs)("div", { ref: editorRef, style: { minWidth: 0 }, onKeyDown: function (event) {
|
|
1423
|
+
: null, codeSizeNode] }), (0, jsx_runtime_1.jsxs)("div", { ref: editorRef, className: 'options-readfirst-row-editor', style: { minWidth: 0 }, onKeyDown: function (event) {
|
|
1309
1424
|
if (event.key === 'Escape') {
|
|
1310
1425
|
event.stopPropagation();
|
|
1311
1426
|
// Escape discards. It used to call `collapse()`, which closed
|
|
@@ -1316,7 +1431,7 @@ exports.CompactRow = (0, react_1.memo)(function (_a) {
|
|
|
1316
1431
|
}
|
|
1317
1432
|
}, children: [panelMessages.length ?
|
|
1318
1433
|
(0, jsx_runtime_1.jsx)(reqore_1.ReqoreControlGroup, { className: 'options-readfirst-info-panel', vertical: true, fluid: true, gapSize: 'normal', children: panelMessages.map(renderInfoStrip) })
|
|
1319
|
-
: 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) }) }) })] }), (0, jsx_runtime_1.jsxs)(compactRowStyles_1.StyledRowActions, { children: [draftChip, editRowRevertButton, cancelEditButton, clearValueButton, inlineOptionActions.map(function (action, index) {
|
|
1434
|
+
: 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: (0, jsx_runtime_1.jsx)(rowLabelled_1.RowLabelledContext.Provider, { value: true, children: renderOption(optionName, optionField, 'small', true) }) }) }) })] }), (0, jsx_runtime_1.jsxs)(compactRowStyles_1.StyledRowActions, { children: [draftChip, editRowRevertButton, cancelEditButton, clearValueButton, inlineOptionActions.map(function (action, index) {
|
|
1320
1435
|
return renderInjectedOptionAction(action, index);
|
|
1321
1436
|
}), moreMenu, closeExpandedFieldButton] }), clusterNode] }), optionName));
|
|
1322
1437
|
// ALWAYS wrap the editing row in the same StyledColumn so its parent stays
|
|
@@ -1340,19 +1455,27 @@ exports.CompactRow = (0, react_1.memo)(function (_a) {
|
|
|
1340
1455
|
var schemaIntentColor = (schema === null || schema === void 0 ? void 0 : schema.intent) ?
|
|
1341
1456
|
(_j = theme === null || theme === void 0 ? void 0 : theme.intents) === null || _j === void 0 ? void 0 : _j[schema.intent]
|
|
1342
1457
|
: undefined;
|
|
1343
|
-
return ((0, jsx_runtime_1.jsxs)(compactRowStyles_1.StyledEditCard, { "data-field": optionName, className: COMPACT_SINGLE_VALUE_TYPES.has(editType) ?
|
|
1458
|
+
return ((0, jsx_runtime_1.jsxs)(compactRowStyles_1.StyledEditCard, { ref: rowRef, "data-field": optionName, className: COMPACT_SINGLE_VALUE_TYPES.has(editType) ?
|
|
1344
1459
|
'options-readfirst-card options-readfirst-card-single'
|
|
1345
|
-
: 'options-readfirst-card', "$bg": cHover, "$border": schemaIntentColor ? "".concat(schemaIntentColor, "66") : "".concat(cInfo, "66"),
|
|
1346
|
-
|
|
1460
|
+
: 'options-readfirst-card', "$bg": cHover, "$border": schemaIntentColor ? "".concat(schemaIntentColor, "66") : "".concat(cInfo, "66"), "$calm": calm, "data-pins-header": stickyCardHeaders ? String(cardPin.pins) : undefined,
|
|
1461
|
+
/* Its own stacking context while it pins, so its heading is above everything in its body and the card as
|
|
1462
|
+
a whole stays under the form's toolbar and box headers (CARD_HEADER_PIN_Z_INDEX). */
|
|
1463
|
+
style: cardPin.pins ? { isolation: 'isolate' } : undefined, children: [(0, jsx_runtime_1.jsxs)("div", { className: 'options-readfirst-card-header', style: __assign({ display: 'flex',
|
|
1347
1464
|
// a heading of one line is centred on the card's actions; one with a description or tags under
|
|
1348
|
-
// its name lines up by its top (
|
|
1349
|
-
alignItems: (schema === null || schema === void 0 ? void 0 : schema.short_desc) || cardTags.length ? 'flex-start' : 'center',
|
|
1350
|
-
|
|
1351
|
-
|
|
1352
|
-
|
|
1465
|
+
// its name lines up by its top (centered, a taller heading's name sat above the buttons)
|
|
1466
|
+
alignItems: (schema === null || schema === void 0 ? void 0 : schema.short_desc) || cardTags.length ? 'flex-start' : 'center', justifyContent: 'space-between', gap: 12 }, (cardPin.pins ?
|
|
1467
|
+
{
|
|
1468
|
+
position: 'sticky',
|
|
1469
|
+
top: cardPin.top,
|
|
1470
|
+
zIndex: cardHeaderPin_1.CARD_HEADER_PIN_Z_INDEX,
|
|
1471
|
+
background: "linear-gradient(".concat(cHover, ", ").concat(cHover, ") ").concat(pinnedHeaderSurface),
|
|
1472
|
+
paddingBottom: compactRowStyles_1.CARD_GAP,
|
|
1473
|
+
marginBottom: -compactRowStyles_1.CARD_GAP,
|
|
1474
|
+
}
|
|
1475
|
+
: {})), children: [(0, jsx_runtime_1.jsxs)(compactRowStyles_1.StyledCardHeading, { children: [(0, jsx_runtime_1.jsxs)(compactRowStyles_1.StyledCardLabel, { className: 'options-readfirst-card-label', "$color": cLabel, title: labelHover, children: [((schema === null || schema === void 0 ? void 0 : schema.icon) ||
|
|
1353
1476
|
(schema === null || schema === void 0 ? void 0 : schema.image)) ?
|
|
1354
1477
|
(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' })
|
|
1355
|
-
: null, (0, jsx_runtime_1.jsxs)(compactRowStyles_1.StyledLabelName, { children: [(0, jsx_runtime_1.jsx)("span", { className: 'options-readfirst-label-text', style: { minWidth: 0 }, children: nameWithAsterisk(!!required) }), helpIcon] }), typeTag, cardBadges.map(function (badge, index) {
|
|
1478
|
+
: null, (0, jsx_runtime_1.jsxs)(compactRowStyles_1.StyledLabelName, { children: [(0, jsx_runtime_1.jsx)("span", { className: 'options-readfirst-label-text', style: { minWidth: 0 }, children: nameWithAsterisk(!!required && !calm) }), helpIcon] }), typeTag, cardBadges.map(function (badge, index) {
|
|
1356
1479
|
return typeof badge === 'object' ?
|
|
1357
1480
|
(0, jsx_runtime_1.jsx)(reqore_1.ReqoreTag, __assign({ size: 'small', minimal: true, className: 'options-readfirst-card-badge' }, badge), index)
|
|
1358
1481
|
: (0, jsx_runtime_1.jsx)(reqore_1.ReqoreTag, { size: 'small', minimal: true, className: 'options-readfirst-card-badge', label: badge }, index);
|
|
@@ -1365,16 +1488,20 @@ exports.CompactRow = (0, react_1.memo)(function (_a) {
|
|
|
1365
1488
|
return ((0, jsx_runtime_1.jsx)(reqore_1.ReqoreButton, __assign({ size: 'small', minimal: true, flat: true, fixed: true, className: 'options-readfirst-card-action' }, actionProps, { children: actionLabel }), index));
|
|
1366
1489
|
}), inlineOptionActions.map(function (action, index) {
|
|
1367
1490
|
return renderInjectedOptionAction(action, index);
|
|
1368
|
-
}), editRowRevertButton, cancelEditButton, hasValue && !readOnly ?
|
|
1369
|
-
(0, jsx_runtime_1.jsx)(reqore_1.ReqoreButton, { size: 'small', icon: 'DeleteBinLine', minimal: true, flat: true, fixed: true,
|
|
1370
|
-
: null, moreMenu, closeExpandedFieldButton] })] }), absorbedNodes, (0, jsx_runtime_1.jsx)("div", {
|
|
1491
|
+
}), editRowRevertButton, cancelEditButton, hasValue && !readOnly && !alwaysOpen ?
|
|
1492
|
+
(0, jsx_runtime_1.jsx)(reqore_1.ReqoreButton, __assign({ size: 'small', icon: 'DeleteBinLine', minimal: true, flat: true, fixed: true }, destructive, { className: 'options-readfirst-clear', "aria-label": feWords.clearValue, tooltip: feWords.clearValue, onClick: confirmClearValue }))
|
|
1493
|
+
: null, moreMenu, closeExpandedFieldButton] })] }), absorbedNodes, (0, jsx_runtime_1.jsx)("div", {
|
|
1494
|
+
// The card's editor, as the inline row's is: an opened card takes the
|
|
1495
|
+
// caret too (the tap-to-edit rule above), so opening Description or
|
|
1496
|
+
// Source Code by a click or by a blocked submit puts the cursor in it.
|
|
1497
|
+
ref: editorRef, className: 'options-readfirst-row-editor', style: { display: 'contents' }, onKeyDown: function (event) {
|
|
1371
1498
|
if (event.key === 'Escape') {
|
|
1372
1499
|
event.stopPropagation();
|
|
1373
1500
|
cancelEdit();
|
|
1374
1501
|
}
|
|
1375
1502
|
}, 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: feWords.focusedView } : {}), { children: [focusedEditing === optionName ?
|
|
1376
1503
|
(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 })
|
|
1377
|
-
: 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));
|
|
1504
|
+
: 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: (0, jsx_runtime_1.jsx)(rowLabelled_1.RowLabelledContext.Provider, { value: true, children: renderOption(optionName, optionField) }) }) })] })) })] }, optionName));
|
|
1378
1505
|
}
|
|
1379
1506
|
var formatted = (0, readFirst_1.formatOptionValue)(optionField, schema);
|
|
1380
1507
|
var empty = formatted === '';
|
|
@@ -1401,7 +1528,7 @@ exports.CompactRow = (0, react_1.memo)(function (_a) {
|
|
|
1401
1528
|
// default-value hints, plus a read-only covered-by note (editable covered rows
|
|
1402
1529
|
// carry that in their chip instead).
|
|
1403
1530
|
var valueReasons = __spreadArray(__spreadArray([], inlineMessages, true), (empty && coveredByLabel ?
|
|
1404
|
-
[{ content: feWords.coveredBy(coveredByLabel), intent: 'success' }]
|
|
1531
|
+
[{ content: feWords.coveredBy(coveredByLabel), intent: calm ? undefined : 'success' }]
|
|
1405
1532
|
: []), true);
|
|
1406
1533
|
// A hash row reveals its sub-fields as read-only sub-rows under a "view
|
|
1407
1534
|
// more" disclosure; the row itself still expands the real editor on click.
|
|
@@ -1431,7 +1558,7 @@ exports.CompactRow = (0, react_1.memo)(function (_a) {
|
|
|
1431
1558
|
!isExpression;
|
|
1432
1559
|
/* Where the host draws the row's summary (`readSummaries`), the row draws no preview of its own under it: the
|
|
1433
1560
|
host's summary says what the value is ("4 columns · 1 rule"), and a structured preview of the same value
|
|
1434
|
-
under it ("columns · List · 4 items") said it again, in reqraft's words
|
|
1561
|
+
under it ("columns · List · 4 items") said it again, in reqraft's words. The card, which a
|
|
1435
1562
|
read-only form opens for such a row too (`readOnlyOpens`), is where the value is read in full. */
|
|
1436
1563
|
var hostSummarizes = !!ReadSummary;
|
|
1437
1564
|
/* A data provider previews the PROVIDER, not the object the picker stores. That object also holds what the
|
|
@@ -1564,7 +1691,10 @@ exports.CompactRow = (0, react_1.memo)(function (_a) {
|
|
|
1564
1691
|
(schema === null || schema === void 0 ? void 0 : schema.ui_type) === 'markdown' &&
|
|
1565
1692
|
typeof (optionField === null || optionField === void 0 ? void 0 : optionField.value) === 'string' &&
|
|
1566
1693
|
isMultilineMarkdown(optionField.value)) ?
|
|
1567
|
-
|
|
1694
|
+
(function () {
|
|
1695
|
+
var lines = optionField.value.trim().split('\n').length;
|
|
1696
|
+
return feWords.lineCount(lines, (0, reqraftLabels_1.formatCount)(lines));
|
|
1697
|
+
})()
|
|
1568
1698
|
: undefined;
|
|
1569
1699
|
// the option's type beside its name, while the form shows field types: in words, as an open option says it
|
|
1570
1700
|
var typeLabel = typeShown ? typeWords : undefined;
|
|
@@ -1692,7 +1822,7 @@ exports.CompactRow = (0, react_1.memo)(function (_a) {
|
|
|
1692
1822
|
//
|
|
1693
1823
|
// What the row was drawn as decides, not the state by the time the update lands: a click on a row drawn
|
|
1694
1824
|
// closed opens it, even if the first-required scan's update has opened it in the meantime (a toggle closed
|
|
1695
|
-
// it again
|
|
1825
|
+
// it again, as in the Qorus IDE's Schema "Draft Is Saved").
|
|
1696
1826
|
(isExpanded ? collapseOption : expandOption)(optionName);
|
|
1697
1827
|
};
|
|
1698
1828
|
// Row chrome: icon/image before the label; schema `intent` as the edge
|
|
@@ -1725,10 +1855,37 @@ exports.CompactRow = (0, react_1.memo)(function (_a) {
|
|
|
1725
1855
|
invalid: worstIntent === 'danger',
|
|
1726
1856
|
// a warning that asks for nothing (`attention: false`) colors the row but does not make it a step left to take
|
|
1727
1857
|
warned: allMsgs.some(OptionFieldMessages_1.messageDrawsAttention),
|
|
1858
|
+
visited: visited,
|
|
1728
1859
|
});
|
|
1729
1860
|
// No dot at all in a read-only form: the dot reports progress on the
|
|
1730
1861
|
// form, and a read view has no progress to report.
|
|
1731
|
-
|
|
1862
|
+
//
|
|
1863
|
+
// Calm: no dot on a healthy row, and none on an empty required one either —
|
|
1864
|
+
// its value column already says "Required · add a value" in amber, and one
|
|
1865
|
+
// thing is said once. Only a failing value keeps the red dot beside the
|
|
1866
|
+
// reason it gives.
|
|
1867
|
+
var dotStatus = hidden || fieldDisabled || readOnly || (calm && rowStatus !== 'invalid') ?
|
|
1868
|
+
undefined
|
|
1869
|
+
: rowStatus;
|
|
1870
|
+
// Calm: an empty required value is said IN the value column, in amber,
|
|
1871
|
+
// where the value would be — instead of a dash plus a red reason beside it.
|
|
1872
|
+
// Not on a locked field (its lock and reason speak for it) or one that
|
|
1873
|
+
// shows the default it will fall back to.
|
|
1874
|
+
var calmRequiredWord = calm && empty && !hidden && !!(schema === null || schema === void 0 ? void 0 : schema.required) && !fieldDisabled && !formattedDefault ?
|
|
1875
|
+
readOnly ? feWords.calmRequiredRead
|
|
1876
|
+
: feWords.calmRequired
|
|
1877
|
+
/* A member of a one-of group still unset, once the person has been to it (the group's message is only kept
|
|
1878
|
+
then, above): said in the value column as a required field is, in the group's words, in place of "This
|
|
1879
|
+
field or … is required" under a dash. */
|
|
1880
|
+
: (calm &&
|
|
1881
|
+
empty &&
|
|
1882
|
+
!hidden &&
|
|
1883
|
+
!fieldDisabled &&
|
|
1884
|
+
!formattedDefault &&
|
|
1885
|
+
fieldMessages.some(function (m) { return m.requiredGroup; })) ?
|
|
1886
|
+
readOnly ? feWords.calmOneOfRead
|
|
1887
|
+
: feWords.calmOneOf
|
|
1888
|
+
: undefined;
|
|
1732
1889
|
var dotColor = dotStatus === 'invalid' ? cDanger
|
|
1733
1890
|
: dotStatus === 'todo' ? cWarning
|
|
1734
1891
|
: dotStatus === 'set' ? cSuccess || cInfo
|
|
@@ -1744,12 +1901,12 @@ exports.CompactRow = (0, react_1.memo)(function (_a) {
|
|
|
1744
1901
|
feWords.view(label)
|
|
1745
1902
|
: readOnly ?
|
|
1746
1903
|
undefined
|
|
1747
|
-
: 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) {
|
|
1904
|
+
: 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(flashTurn ? ' readfirst-row-flash-again' : '') : '').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) {
|
|
1748
1905
|
if (event.key === 'Enter' || event.key === ' ') {
|
|
1749
1906
|
event.preventDefault();
|
|
1750
1907
|
activate(event);
|
|
1751
1908
|
}
|
|
1752
|
-
}) }, 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: labelHover, "$color":
|
|
1909
|
+
}) }, 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: labelHover, "$color": cLabel, children: [rowChromeIcon, (0, jsx_runtime_1.jsxs)(compactRowStyles_1.StyledLabelName, { "$fill": true, children: [(0, jsx_runtime_1.jsxs)("span", { className: 'options-readfirst-label-text', style: { minWidth: 0 }, children: [nameWithAsterisk(requiredMark), typeLabel ?
|
|
1753
1910
|
(0, jsx_runtime_1.jsx)(reqore_1.ReqoreTag, { size: 'tiny', minimal: true, className: 'options-readfirst-type', label: typeLabel, labelEffect: { opacity: rowInks.descOpacity } })
|
|
1754
1911
|
: null] }), helpIcon] })] }), showLabelDesc ?
|
|
1755
1912
|
/* A sentence in the label's own type, clamped to three lines: drawn as the prose its markdown
|
|
@@ -1784,16 +1941,21 @@ exports.CompactRow = (0, react_1.memo)(function (_a) {
|
|
|
1784
1941
|
!showsTemplateText &&
|
|
1785
1942
|
typeof formatted === 'string') ?
|
|
1786
1943
|
formatted
|
|
1787
|
-
: undefined, "$color":
|
|
1944
|
+
: undefined, "$color": calmRequiredWord ?
|
|
1945
|
+
rowStatus === 'pending' ?
|
|
1946
|
+
rowInks.mutedReason
|
|
1947
|
+
: rowInks.warning
|
|
1948
|
+
: empty || hidden ? rowInks.emptyValue
|
|
1949
|
+
: cKey, "$empty": (empty || hidden) && !calmRequiredWord, children: [(showMarkdownPreview ||
|
|
1788
1950
|
showLongTextInset ||
|
|
1789
1951
|
(previewWithSchema && !dataProviderPreview && showStructuredPreview)) ?
|
|
1790
1952
|
null
|
|
1791
1953
|
: (0, jsx_runtime_1.jsx)("span", { className: 'options-readfirst-valuetext', children: ReadSummary && !hidden ?
|
|
1792
1954
|
/* the host's own summary: an editor that reports a status says it here, set or not
|
|
1793
|
-
("Field mappings required", "… incomplete"), where "2 items" said nothing of it
|
|
1955
|
+
("Field mappings required", "… incomplete"), where "2 items" said nothing of it */
|
|
1794
1956
|
(0, jsx_runtime_1.jsx)(ReadSummary, { name: optionName, value: optionField === null || optionField === void 0 ? void 0 : optionField.value, schema: schema, formatted: formatted })
|
|
1795
1957
|
: hidden || empty ?
|
|
1796
|
-
formattedDefault || '—'
|
|
1958
|
+
calmRequiredWord || formattedDefault || '—'
|
|
1797
1959
|
: renderReadFirstValue(optionField, schema, formatted, readOnly) }), readOnlyChoiceDesc ?
|
|
1798
1960
|
/* What the chosen option means, on its own line: the server writes it in markdown ("Each
|
|
1799
1961
|
`POST /conversations` ..."), so the host's renderer draws it, as it draws the schema messages
|
|
@@ -1802,22 +1964,16 @@ exports.CompactRow = (0, react_1.memo)(function (_a) {
|
|
|
1802
1964
|
(0, jsx_runtime_1.jsx)("div", { className: 'options-readfirst-choice-desc', children: markdownRenderer ?
|
|
1803
1965
|
markdownRenderer({ value: readOnlyChoiceDesc, compact: true })
|
|
1804
1966
|
: (0, markdownText_1.plainTextNode)(readOnlyChoiceDesc) })
|
|
1805
|
-
: null,
|
|
1967
|
+
: null, (calmRequiredWord ?
|
|
1968
|
+
valueReasons.filter(function (m) { return !m.requirement && !m.requiredGroup; })
|
|
1969
|
+
: 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 ?
|
|
1806
1970
|
(0, jsx_runtime_1.jsx)(reqore_1.ReqoreControlGroup, { className: 'options-readfirst-info-panel', vertical: true, fluid: true, gapSize: 'normal', children: panelMessages.map(renderInfoStrip) })
|
|
1807
1971
|
: null, showStructuredPreview ?
|
|
1808
1972
|
// The inset lives inside the row now, so a click on a value chip would
|
|
1809
1973
|
// bubble to the row's onClick and fire activate() a SECOND time (the
|
|
1810
1974
|
// chip's onItemClick already calls it) — toggling the editor shut again.
|
|
1811
1975
|
// Stop the bubble here; the chip's own handler still opens the editor.
|
|
1812
|
-
(0, jsx_runtime_1.jsx)(compactRowStyles_1.StyledRowInset, { className: 'options-readfirst-inset', onClick: function (e) { return e.stopPropagation(); }, children: (0, jsx_runtime_1.jsx)(
|
|
1813
|
-
// The schema view spends more height per datum than a data tree
|
|
1814
|
-
// does — a labelled row rather than a packed chip — but there is
|
|
1815
|
-
// far less of it to read, so it gets enough room to show a
|
|
1816
|
-
// couple of complete items instead of fading out mid-row. A tree
|
|
1817
|
-
// of unknown depth keeps the tighter cap. A provider's preview is
|
|
1818
|
-
// a few known lines and its description, and the description
|
|
1819
|
-
// must not be the part that fades out.
|
|
1820
|
-
, {
|
|
1976
|
+
(0, jsx_runtime_1.jsx)(compactRowStyles_1.StyledRowInset, { className: 'options-readfirst-inset', onClick: function (e) { return e.stopPropagation(); }, children: (0, jsx_runtime_1.jsx)(ReadReveal_1.ReadReveal, { holds: 'value',
|
|
1821
1977
|
// The schema view spends more height per datum than a data tree
|
|
1822
1978
|
// does — a labelled row rather than a packed chip — but there is
|
|
1823
1979
|
// far less of it to read, so it gets enough room to show a
|
|
@@ -1840,7 +1996,7 @@ exports.CompactRow = (0, react_1.memo)(function (_a) {
|
|
|
1840
1996
|
// choices, so the preview says it rather than making the
|
|
1841
1997
|
// reader decode it: "Scheme Type — Default RBAC", not a data
|
|
1842
1998
|
// tree announcing "Object · 1 field" over `type: default`.
|
|
1843
|
-
(0, jsx_runtime_1.jsx)(SchemaDataView_1.SchemaDataView, { value: optionField === null || optionField === void 0 ? void 0 : optionField.value, schema: previewArgSchema, showTypes: showFieldTypes, colors: {
|
|
1999
|
+
(0, jsx_runtime_1.jsx)(SchemaDataView_1.SchemaDataView, { value: optionField === null || optionField === void 0 ? void 0 : optionField.value, schema: previewArgSchema, showTypes: showFieldTypes, namedValues: (0, readFirst_1.isNamedValuesField)(schema), colors: {
|
|
1844
2000
|
key: cKey,
|
|
1845
2001
|
muted: cMuted,
|
|
1846
2002
|
// Deliberately stronger than `cDivider`. That tier is for
|
|
@@ -1864,7 +2020,7 @@ exports.CompactRow = (0, react_1.memo)(function (_a) {
|
|
|
1864
2020
|
}, onItemClick: function () { return activate(); } })
|
|
1865
2021
|
: (0, jsx_runtime_1.jsx)(StructuredDataView_1.StructuredDataView, { value: optionField === null || optionField === void 0 ? void 0 : optionField.value, collapsibleRoot: false, showTypes: showFieldTypes, defaultExpandDepth: 2, onItemClick: function () { return activate(); } }) }) }) })
|
|
1866
2022
|
: null, showCodePreview ?
|
|
1867
|
-
(0, jsx_runtime_1.jsx)(compactRowStyles_1.StyledRowInset, { className: 'options-readfirst-inset options-readfirst-code-inset', onClick: function (e) { return e.stopPropagation(); }, children: (0, jsx_runtime_1.jsx)(
|
|
2023
|
+
(0, jsx_runtime_1.jsx)(compactRowStyles_1.StyledRowInset, { className: 'options-readfirst-inset options-readfirst-code-inset', onClick: function (e) { return e.stopPropagation(); }, children: (0, jsx_runtime_1.jsx)(ReadReveal_1.ReadReveal, { holds: 'source', maxCollapsedHeight: 96, buttonProps: { className: 'options-readfirst-viewmore' }, children: codePreviewRenderer ?
|
|
1868
2024
|
codePreviewRenderer({
|
|
1869
2025
|
value: optionField.value,
|
|
1870
2026
|
name: optionName,
|
|
@@ -1875,13 +2031,13 @@ exports.CompactRow = (0, react_1.memo)(function (_a) {
|
|
|
1875
2031
|
: CodeEditor ?
|
|
1876
2032
|
/* Code is shown as the host shows code: its own editor, read-only, given what it inherits (its
|
|
1877
2033
|
language) - highlighted, with its language server - and as a plain block only where there is
|
|
1878
|
-
none
|
|
2034
|
+
none. */
|
|
1879
2035
|
(0, jsx_runtime_1.jsx)("div", { className: 'options-readfirst-code options-readfirst-code-editor', children: (0, jsx_runtime_1.jsx)(CodeEditor, __assign({}, schema, (0, inheritProps_1.resolveInheritProps)(schema === null || schema === void 0 ? void 0 : schema.inherit_props, availableOptions), { name: optionName, value: optionField.value, readOnly: true, onChange: ignoreReadOnlyChange })) })
|
|
1880
2036
|
: (0, jsx_runtime_1.jsx)(compactRowStyles_1.StyledCodePreview, { className: 'options-readfirst-code', "$bg": cHover, "$border": "".concat(cDivider, "88"), "$fg": cKey, children: optionField.value }) }) })
|
|
1881
2037
|
: null, showMarkdownPreview ?
|
|
1882
|
-
(0, jsx_runtime_1.jsx)(compactRowStyles_1.StyledRowInset, { className: 'options-readfirst-inset options-readfirst-markdown-inset', onClick: function (e) { return e.stopPropagation(); }, children: (0, jsx_runtime_1.jsx)(
|
|
2038
|
+
(0, jsx_runtime_1.jsx)(compactRowStyles_1.StyledRowInset, { className: 'options-readfirst-inset options-readfirst-markdown-inset', onClick: function (e) { return e.stopPropagation(); }, children: (0, jsx_runtime_1.jsx)(ReadReveal_1.ReadReveal, { holds: 'text', maxCollapsedHeight: 96, buttonProps: { className: 'options-readfirst-viewmore' }, children: (0, jsx_runtime_1.jsx)("div", { className: 'options-readfirst-markdown', children: markdownRenderer({ value: optionField.value, compact: true }) }) }) })
|
|
1883
2039
|
: null, showLongTextInset ?
|
|
1884
|
-
(0, jsx_runtime_1.jsx)(compactRowStyles_1.StyledRowInset, { className: 'options-readfirst-inset options-readfirst-text-inset', children: (0, jsx_runtime_1.jsx)(
|
|
2040
|
+
(0, jsx_runtime_1.jsx)(compactRowStyles_1.StyledRowInset, { className: 'options-readfirst-inset options-readfirst-text-inset', children: (0, jsx_runtime_1.jsx)(ReadReveal_1.ReadReveal, { holds: 'text', maxCollapsedHeight: 96, buttonProps: { className: 'options-readfirst-viewmore' }, children: (0, jsx_runtime_1.jsx)("div", { className: 'options-readfirst-text', children: optionField.value }) }) })
|
|
1885
2041
|
: null] }), (0, jsx_runtime_1.jsxs)(compactRowStyles_1.StyledRowActions, { children: [!hidden && !fieldDisabled && !clustered && !coveredByLabel ? requiredGroupChip : null, !hidden ? dependsOnChip : null, draftChip, fieldDisabled && !dependencyEntries.length ?
|
|
1886
2042
|
(0, jsx_runtime_1.jsx)(compactRowStyles_1.StyledActionSlot, { className: 'options-readfirst-trailing-slot', "$width": 18, children: (0, jsx_runtime_1.jsx)("span", { title: fieldDisabledReason, style: { display: 'inline-flex', opacity: 0.45 }, children: (0, jsx_runtime_1.jsx)(reqore_1.ReqoreIcon, { className: 'options-readfirst-locked', icon: 'LockLine', size: '14px' }) }) })
|
|
1887
2043
|
: null, infoToggle ?
|
|
@@ -1902,7 +2058,7 @@ exports.CompactRow = (0, react_1.memo)(function (_a) {
|
|
|
1902
2058
|
handleValueChange.apply(void 0, __spreadArray([optionName], (0, argumentPresence_1.restoredFieldChange)((_a = originalValue.current) === null || _a === void 0 ? void 0 : _a[optionName]), false));
|
|
1903
2059
|
} })
|
|
1904
2060
|
: dotColor ?
|
|
1905
|
-
(0, jsx_runtime_1.jsx)(compactRowStyles_1.StyledStatusDot, { "$color": dotColor, "$ring": dotStatus !== 'set', "aria-hidden": true })
|
|
2061
|
+
(0, jsx_runtime_1.jsx)(compactRowStyles_1.StyledStatusDot, { className: 'options-readfirst-status-dot', "$color": dotColor, "$ring": dotStatus !== 'set', "aria-hidden": true })
|
|
1906
2062
|
: null })] })] }), optionName));
|
|
1907
2063
|
return row;
|
|
1908
2064
|
});
|