@qoretechnologies/reqraft 0.10.77 → 0.10.78-pr.145.g24c0d9d
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 +4 -4
- package/dist/components/Description/AllowedValuesHelp.d.ts.map +1 -1
- package/dist/components/Description/AllowedValuesHelp.js +10 -7
- package/dist/components/Description/AllowedValuesHelp.js.map +1 -1
- package/dist/components/Description/index.d.ts.map +1 -1
- package/dist/components/Description/index.js +22 -4
- package/dist/components/Description/index.js.map +1 -1
- package/dist/components/FocusedEditing/index.d.ts.map +1 -1
- package/dist/components/FocusedEditing/index.js +3 -1
- package/dist/components/FocusedEditing/index.js.map +1 -1
- package/dist/components/codeSize/index.d.ts +6 -0
- package/dist/components/codeSize/index.d.ts.map +1 -1
- package/dist/components/codeSize/index.js +12 -2
- package/dist/components/codeSize/index.js.map +1 -1
- package/dist/components/colorValue/colorValue.d.ts.map +1 -1
- package/dist/components/colorValue/colorValue.js +27 -36
- package/dist/components/colorValue/colorValue.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/dpqlTags.js +1 -1
- package/dist/components/dpqlEditor/dpqlTags.js.map +1 -1
- package/dist/components/form/engine/CompactRow.d.ts.map +1 -1
- package/dist/components/form/engine/CompactRow.js +168 -32
- 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/FormEngine.d.ts +66 -2
- package/dist/components/form/engine/FormEngine.d.ts.map +1 -1
- package/dist/components/form/engine/FormEngine.js +576 -207
- package/dist/components/form/engine/FormEngine.js.map +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 +42 -6
- package/dist/components/form/engine/OptionFieldMessages.js.map +1 -1
- package/dist/components/form/engine/_structuredData/SchemaDataView.d.ts.map +1 -1
- package/dist/components/form/engine/_structuredData/SchemaDataView.js +27 -1
- package/dist/components/form/engine/_structuredData/SchemaDataView.js.map +1 -1
- package/dist/components/form/engine/compactRowContext.d.ts +5 -0
- package/dist/components/form/engine/compactRowContext.d.ts.map +1 -1
- package/dist/components/form/engine/compactRowContext.js.map +1 -1
- package/dist/components/form/engine/compactRowStyles.d.ts +17 -0
- package/dist/components/form/engine/compactRowStyles.d.ts.map +1 -1
- package/dist/components/form/engine/compactRowStyles.js +99 -52
- package/dist/components/form/engine/compactRowStyles.js.map +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/readFirst.d.ts +38 -2
- package/dist/components/form/engine/readFirst.d.ts.map +1 -1
- package/dist/components/form/engine/readFirst.js +31 -6
- package/dist/components/form/engine/readFirst.js.map +1 -1
- package/dist/components/form/engine/revealRow.d.ts +13 -0
- package/dist/components/form/engine/revealRow.d.ts.map +1 -1
- package/dist/components/form/engine/revealRow.js +24 -1
- 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/expressions/DpqlRendering.d.ts.map +1 -1
- package/dist/components/form/expressions/DpqlRendering.js +4 -2
- package/dist/components/form/expressions/DpqlRendering.js.map +1 -1
- package/dist/components/form/expressions/ExpressionField.d.ts +6 -8
- package/dist/components/form/expressions/ExpressionField.d.ts.map +1 -1
- package/dist/components/form/expressions/ExpressionField.js +13 -11
- package/dist/components/form/expressions/ExpressionField.js.map +1 -1
- package/dist/components/form/expressions/builder/argumentDetail.d.ts.map +1 -1
- package/dist/components/form/expressions/builder/argumentDetail.js +4 -1
- package/dist/components/form/expressions/builder/argumentDetail.js.map +1 -1
- package/dist/components/form/expressions/builder/argumentLabel.d.ts +3 -1
- package/dist/components/form/expressions/builder/argumentLabel.d.ts.map +1 -1
- package/dist/components/form/expressions/builder/argumentLabel.js +66 -26
- 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 +10 -6
- package/dist/components/form/expressions/builder/argumentWrapper.js.map +1 -1
- package/dist/components/form/expressions/builder/confirmMismatchedTypesModal.d.ts.map +1 -1
- package/dist/components/form/expressions/builder/confirmMismatchedTypesModal.js +13 -8
- 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 +6 -1
- package/dist/components/form/expressions/builder/index.d.ts.map +1 -1
- package/dist/components/form/expressions/builder/index.js +110 -64
- 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/expressionOperands.js +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/renderExpressionToText.d.ts.map +1 -1
- package/dist/components/form/expressions/renderExpressionToText.js +15 -0
- package/dist/components/form/expressions/renderExpressionToText.js.map +1 -1
- package/dist/components/form/expressions/types.d.ts +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.map +1 -1
- package/dist/components/form/fields/Field.js +9 -5
- package/dist/components/form/fields/Field.js.map +1 -1
- package/dist/components/form/fields/allowed-values/AllowedValues.d.ts +7 -0
- package/dist/components/form/fields/allowed-values/AllowedValues.d.ts.map +1 -1
- package/dist/components/form/fields/allowed-values/AllowedValues.js +34 -10
- package/dist/components/form/fields/allowed-values/AllowedValues.js.map +1 -1
- 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 +31 -14
- 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 +21 -19
- package/dist/components/form/fields/array/ArrayAutoField.js.map +1 -1
- package/dist/components/form/fields/auto/AutoFormField.d.ts +5 -1
- package/dist/components/form/fields/auto/AutoFormField.d.ts.map +1 -1
- package/dist/components/form/fields/auto/AutoFormField.js +41 -15
- package/dist/components/form/fields/auto/AutoFormField.js.map +1 -1
- package/dist/components/form/fields/binary/Binary.d.ts.map +1 -1
- package/dist/components/form/fields/binary/Binary.js +6 -1
- package/dist/components/form/fields/binary/Binary.js.map +1 -1
- package/dist/components/form/fields/boolean/Boolean.d.ts +7 -1
- package/dist/components/form/fields/boolean/Boolean.d.ts.map +1 -1
- package/dist/components/form/fields/boolean/Boolean.js +8 -2
- 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.map +1 -1
- package/dist/components/form/fields/color/Color.js +9 -6
- package/dist/components/form/fields/color/Color.js.map +1 -1
- package/dist/components/form/fields/file/File.d.ts +1 -1
- package/dist/components/form/fields/file/File.d.ts.map +1 -1
- package/dist/components/form/fields/file/File.js +18 -6
- package/dist/components/form/fields/file/File.js.map +1 -1
- package/dist/components/form/fields/labels.d.ts +72 -0
- package/dist/components/form/fields/labels.d.ts.map +1 -0
- package/dist/components/form/fields/labels.js +47 -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 +15 -5
- 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/number/Number.d.ts +4 -1
- package/dist/components/form/fields/number/Number.d.ts.map +1 -1
- package/dist/components/form/fields/number/Number.js +21 -7
- package/dist/components/form/fields/number/Number.js.map +1 -1
- package/dist/components/form/fields/object/Object.d.ts +9 -1
- package/dist/components/form/fields/object/Object.d.ts.map +1 -1
- package/dist/components/form/fields/object/Object.js +24 -8
- package/dist/components/form/fields/object/Object.js.map +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.map +1 -1
- package/dist/components/form/fields/rich-text/RichText.js +6 -3
- package/dist/components/form/fields/rich-text/RichText.js.map +1 -1
- package/dist/components/form/fields/rich-text/useTemplateTags.d.ts +2 -0
- package/dist/components/form/fields/rich-text/useTemplateTags.d.ts.map +1 -1
- package/dist/components/form/fields/rich-text/useTemplateTags.js +7 -1
- 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 +10 -8
- 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 +39 -27
- 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 +20 -14
- 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/select/Select.d.ts +1 -1
- package/dist/components/form/fields/select/Select.d.ts.map +1 -1
- package/dist/components/form/fields/select/Select.js +13 -6
- package/dist/components/form/fields/select/Select.js.map +1 -1
- package/dist/components/form/fields/select/SelectCollection.d.ts +2 -2
- package/dist/components/form/fields/select/SelectCollection.d.ts.map +1 -1
- package/dist/components/form/fields/select/SelectCollection.js +11 -3
- package/dist/components/form/fields/select/SelectCollection.js.map +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 +3 -1
- package/dist/components/form/fields/template/TemplateBrowser.js.map +1 -1
- package/dist/components/form/fields/template/TemplateField.d.ts +12 -2
- package/dist/components/form/fields/template/TemplateField.d.ts.map +1 -1
- package/dist/components/form/fields/template/TemplateField.js +71 -60
- package/dist/components/form/fields/template/TemplateField.js.map +1 -1
- package/dist/components/form/fields/template/TemplatePicker.d.ts +7 -1
- package/dist/components/form/fields/template/TemplatePicker.d.ts.map +1 -1
- package/dist/components/form/fields/template/TemplatePicker.js +35 -16
- package/dist/components/form/fields/template/TemplatePicker.js.map +1 -1
- 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/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/imageLightbox/ImageLightbox.d.ts.map +1 -1
- package/dist/components/imageLightbox/ImageLightbox.js +10 -6
- 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 +21 -18
- 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.map +1 -1
- package/dist/components/smartEditor/CompletionMenu.js +13 -6
- 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 +3 -1
- package/dist/components/smartEditor/SmartEditor.js.map +1 -1
- package/dist/components/smartEditor/completionStyle.d.ts +17 -2
- package/dist/components/smartEditor/completionStyle.d.ts.map +1 -1
- package/dist/components/smartEditor/completionStyle.js +32 -4
- package/dist/components/smartEditor/completionStyle.js.map +1 -1
- package/dist/components/smartEditor/templateCompletions.js +1 -1
- package/dist/components/smartEditor/templateCompletions.js.map +1 -1
- package/dist/components/smartEditor/types.d.ts +1 -1
- package/dist/components/smartEditor/useLspAutocomplete.d.ts +5 -0
- package/dist/components/smartEditor/useLspAutocomplete.d.ts.map +1 -1
- package/dist/components/smartEditor/useLspAutocomplete.js +76 -20
- package/dist/components/smartEditor/useLspAutocomplete.js.map +1 -1
- package/dist/components/supportTicket/AttachmentChips.d.ts.map +1 -1
- package/dist/components/supportTicket/AttachmentChips.js +4 -2
- package/dist/components/supportTicket/AttachmentChips.js.map +1 -1
- package/dist/components/supportTicket/InterfaceReferenceTags.d.ts +3 -2
- package/dist/components/supportTicket/InterfaceReferenceTags.d.ts.map +1 -1
- package/dist/components/supportTicket/InterfaceReferenceTags.js +6 -6
- 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 +35 -25
- 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 +4 -1
- 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 +31 -4
- package/dist/components/supportTicket/meta.d.ts.map +1 -1
- package/dist/components/supportTicket/meta.js +98 -72
- 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 +5 -1
- 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 +56 -45
- 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 +58 -36
- 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.map +1 -1
- package/dist/helpers/allowedValues.js +11 -4
- package/dist/helpers/allowedValues.js.map +1 -1
- package/dist/helpers/expressions.d.ts.map +1 -1
- package/dist/helpers/expressions.js +7 -12
- 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/markdownText.d.ts +9 -0
- package/dist/helpers/markdownText.d.ts.map +1 -1
- package/dist/helpers/markdownText.js +49 -2
- package/dist/helpers/markdownText.js.map +1 -1
- package/dist/helpers/noDescription.d.ts +4 -4
- package/dist/helpers/noDescription.d.ts.map +1 -1
- package/dist/helpers/noDescription.js +8 -6
- 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 +1 -1
- package/dist/helpers/qorusTypeCatalogue.js +1 -1
- package/dist/helpers/readableColors.d.ts +8 -0
- package/dist/helpers/readableColors.d.ts.map +1 -1
- package/dist/helpers/readableColors.js +12 -1
- package/dist/helpers/readableColors.js.map +1 -1
- package/dist/helpers/reqraftLabels.d.ts +83 -0
- package/dist/helpers/reqraftLabels.d.ts.map +1 -1
- package/dist/helpers/reqraftLabels.js +60 -15
- 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/templateItems.d.ts +1 -1
- package/dist/helpers/templateItems.js +1 -1
- package/dist/helpers/templates.js +1 -1
- package/dist/helpers/templates.js.map +1 -1
- package/dist/helpers/validationLabels.d.ts +190 -0
- package/dist/helpers/validationLabels.d.ts.map +1 -0
- package/dist/helpers/validationLabels.js +210 -0
- package/dist/helpers/validationLabels.js.map +1 -0
- package/dist/helpers/validations.d.ts +14 -2
- package/dist/helpers/validations.d.ts.map +1 -1
- package/dist/helpers/validations.js +165 -178
- package/dist/helpers/validations.js.map +1 -1
- 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/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/tracking/ui/ExperimentCard.d.ts +3 -3
- package/dist/tracking/ui/ExperimentCard.d.ts.map +1 -1
- package/dist/tracking/ui/ExperimentCard.js +33 -45
- 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/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"compactRowStyles.js","sourceRoot":"","sources":["../../../../src/components/form/engine/compactRowStyles.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,mDAA6E;AAC7E,uEAAkG;AAClG,qEAAgD;AAEhD,8EAA8E;AAC9E,oEAAoE;AACvD,QAAA,UAAU,GAAW,KAAK,CAAC;AAExC,4EAA4E;AAC5E,gFAAgF;AAChF,8EAA8E;AAC9E,gFAAgF;AAChF,8EAA8E;AACjE,QAAA,iBAAiB,GAAG,GAAG,CAAC,CAAC,4CAA4C;AACrE,QAAA,iBAAiB,GAAG,EAAE,CAAC,CAAC,oCAAoC;AAC5D,QAAA,eAAe,GAAG,EAAE,CAAC,CAAC,kBAAkB;AACrD,gFAAgF;AACnE,QAAA,kBAAkB,GAAG,yBAAiB,GAAG,yBAAiB,GAAG,uBAAe,CAAC;AAC1F,6EAA6E;AAChE,QAAA,kBAAkB,GAAG,0BAAkB,GAAG,EAAE,CAAC;AAC1D;;;;;GAKG;AACU,QAAA,uBAAuB,GAAG,GAAG,CAAC;AAC3C,iEAAiE;AACpD,QAAA,4BAA4B,GAAG,EAAE,CAAC;AAC/C;;;;GAIG;AACI,IAAM,eAAe,GAAG,UAAC,KAAa,EAAE,WAAmB;IAChE,OAAA,KAAK,GAAG,CAAC,WAAW,GAAG,uBAAe,GAAG,CAAC,GAAG,yBAAiB,CAAC,GAAG,+BAAuB;AAAzF,CAAyF,CAAC;AAD/E,QAAA,eAAe,mBACgE;AAC5F,iFAAiF;AACjF,iFAAiF;AACjF,6EAA6E;AAChE,QAAA,YAAY,GAAG,UAAG,yBAAiB,OAAI,CAAC;AAErD,6EAA6E;AAC7E,8EAA8E;AAC9E,iDAAiD;AACjD,6EAA6E;AAC7E,iFAAiF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iB,EAC3D;AAEW,QAAA,mBAAmB,GAAG,IAAA,2BAAM,EAAC,gBAAO,CAAC,0GAAA,qCAGjD,KAAC"}
|
|
1
|
+
{"version":3,"file":"compactRowStyles.js","sourceRoot":"","sources":["../../../../src/components/form/engine/compactRowStyles.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,mDAA6E;AAC7E,uEAAkG;AAClG,qEAAgD;AAEhD,8EAA8E;AAC9E,oEAAoE;AACvD,QAAA,UAAU,GAAW,KAAK,CAAC;AAExC,4EAA4E;AAC5E,gFAAgF;AAChF,8EAA8E;AAC9E,gFAAgF;AAChF,8EAA8E;AACjE,QAAA,iBAAiB,GAAG,GAAG,CAAC,CAAC,4CAA4C;AACrE,QAAA,iBAAiB,GAAG,EAAE,CAAC,CAAC,oCAAoC;AAC5D,QAAA,eAAe,GAAG,EAAE,CAAC,CAAC,kBAAkB;AACrD,gFAAgF;AACnE,QAAA,kBAAkB,GAAG,yBAAiB,GAAG,yBAAiB,GAAG,uBAAe,CAAC;AAC1F,6EAA6E;AAChE,QAAA,kBAAkB,GAAG,0BAAkB,GAAG,EAAE,CAAC;AAC1D;;;;;GAKG;AACU,QAAA,uBAAuB,GAAG,GAAG,CAAC;AAC3C,iEAAiE;AACpD,QAAA,4BAA4B,GAAG,EAAE,CAAC;AAC/C;;;;GAIG;AACI,IAAM,eAAe,GAAG,UAAC,KAAa,EAAE,WAAmB;IAChE,OAAA,KAAK,GAAG,CAAC,WAAW,GAAG,uBAAe,GAAG,CAAC,GAAG,yBAAiB,CAAC,GAAG,+BAAuB;AAAzF,CAAyF,CAAC;AAD/E,QAAA,eAAe,mBACgE;AAC5F,iFAAiF;AACjF,iFAAiF;AACjF,6EAA6E;AAChE,QAAA,YAAY,GAAG,UAAG,yBAAiB,OAAI,CAAC;AACrD;;;;;GAKG;AACU,QAAA,kBAAkB,GAAG,EAAE,CAAC;AACrC;;;;;;;;GAQG;AACU,QAAA,UAAU,GAAG,iC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B,WAAW,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,KAAK,EAMrC,SAAS,EAOjB,kBAAU,EASjB,kBAAU,EAMkB,SAAS,EACrB,WAAW,EAOG,SAAS,EACrB,WAAW,EAgB5C,CAAC,CAAC,EAAE;AArHJ,CAqHI,EACN;AAEF,6EAA6E;AAC7E,gFAAgF;AAChF,4EAA4E;AAC5E,6DAA6D;AAC7D,EAAE;AACF,8EAA8E;AAC9E,+EAA+E;AAC/E,gFAAgF;AAChF,wDAAwD;AAC3C,QAAA,mBAAmB,GAAG,2BAAM,CAAC,GAAG,mOAAA,uJAOhB,EAAgC,KAC5D,KAD4B,UAAC,EAAS;QAAP,KAAK,WAAA;IAAO,OAAA,UAAG,KAAK,CAAC,IAAI,OAAI;AAAjB,CAAiB,EAC3D;AAEW,QAAA,mBAAmB,GAAG,IAAA,2BAAM,EAAC,gBAAO,CAAC,0GAAA,qCAGjD,KAAC"}
|
|
@@ -30,11 +30,20 @@ export interface ICompactToolbarContext {
|
|
|
30
30
|
};
|
|
31
31
|
invalidCount: number;
|
|
32
32
|
attentionCount: number;
|
|
33
|
+
/** How many of `attentionCount` are faults (invalid, or a required field the person
|
|
34
|
+
* has been to and left empty). Zero on a fresh form: the rest are only to fill in. */
|
|
35
|
+
attentionFaultCount: number;
|
|
36
|
+
/** Faults the host found outside the form's fields (`outsideAttention`): said on the
|
|
37
|
+
* readiness line, not drawn on the meter, which measures the fields. */
|
|
38
|
+
outsideAttentionCount?: number;
|
|
39
|
+
/** Takes the reader to those, when no field needs anything. */
|
|
40
|
+
onRevealOutside?: () => void;
|
|
33
41
|
completion: {
|
|
34
42
|
set: number;
|
|
35
43
|
done: number;
|
|
36
44
|
total: number;
|
|
37
45
|
pct: number;
|
|
46
|
+
shown?: number;
|
|
38
47
|
};
|
|
39
48
|
showInvalidOnly: boolean;
|
|
40
49
|
onToggleInvalidOnly: () => void;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"compactToolbarContext.d.ts","sourceRoot":"","sources":["../../../../src/components/form/engine/compactToolbarContext.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B;;wDAEwD;AACxD,MAAM,MAAM,YAAY,GAAG,QAAQ,GAAG,OAAO,GAAG,YAAY,GAAG,OAAO,GAAG,SAAS,CAAC;AAEnF,8EAA8E;AAC9E,MAAM,WAAW,4BAA4B;IAC3C,KAAK,EAAE,MAAM,CAAC;IACd,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB;AAED;;;;;;;GAOG;AACH,MAAM,WAAW,sBAAsB;IACrC,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB;qEACiE;IACjE,KAAK,EAAE;QACL,UAAU,EAAE,OAAO,CAAC;QACpB,MAAM,EAAE,OAAO,CAAC;QAChB,MAAM,EAAE,OAAO,CAAC;QAChB,IAAI,EAAE,OAAO,CAAC;KACf,CAAC;IAEF,YAAY,EAAE,MAAM,CAAC;IACrB,cAAc,EAAE,MAAM,CAAC;IACvB,UAAU,EAAE;QAAE,GAAG,EAAE,MAAM,CAAC;QAAC,IAAI,EAAE,MAAM,CAAC;QAAC,KAAK,EAAE,MAAM,CAAC;QAAC,GAAG,EAAE,MAAM,CAAA;KAAE,CAAC;
|
|
1
|
+
{"version":3,"file":"compactToolbarContext.d.ts","sourceRoot":"","sources":["../../../../src/components/form/engine/compactToolbarContext.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B;;wDAEwD;AACxD,MAAM,MAAM,YAAY,GAAG,QAAQ,GAAG,OAAO,GAAG,YAAY,GAAG,OAAO,GAAG,SAAS,CAAC;AAEnF,8EAA8E;AAC9E,MAAM,WAAW,4BAA4B;IAC3C,KAAK,EAAE,MAAM,CAAC;IACd,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,UAAU,CAAC,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B,EAAE,OAAO,GAAG,SAAS,CAAC;IACzC,uBAAuB,EAAE,MAAM,IAAI,CAAC;IACpC,aAAa,EAAE,MAAM,CAAC;IACtB,cAAc,EAAE,4BAA4B,EAAE,CAAC;IAC/C,SAAS,EAAE,OAAO,CAAC;IACnB,kBAAkB,EAAE,CAAC,KAAK,EAAE,OAAO,KAAK,IAAI,CAAC;IAC7C,QAAQ,EAAE,MAAM,IAAI,CAAC;IACrB,eAAe,EAAE,MAAM,IAAI,CAAC;IAC5B,WAAW,EAAE,MAAM,IAAI,CAAC;CACzB;AAED,eAAO,MAAM,qBAAqB,gEAEjC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"compactToolbarContext.js","sourceRoot":"","sources":["../../../../src/components/form/engine/compactToolbarContext.ts"],"names":[],"mappings":";;;AACA,6DAAqD;
|
|
1
|
+
{"version":3,"file":"compactToolbarContext.js","sourceRoot":"","sources":["../../../../src/components/form/engine/compactToolbarContext.ts"],"names":[],"mappings":";;;AACA,6DAAqD;AAyExC,QAAA,qBAAqB,GAAG,IAAA,oCAAa,EAChD,EAA4B,CAC7B,CAAC"}
|
|
@@ -0,0 +1,96 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { IReqoreTheme } from '@qoretechnologies/reqore/dist/constants/theme';
|
|
3
|
+
/**
|
|
4
|
+
* How a form looks. The look only: which fields exist, how they bucket, what a
|
|
5
|
+
* click does and what is validated are identical in every appearance.
|
|
6
|
+
*
|
|
7
|
+
* - `'calm'` (the default) — colour only where something needs a person. The
|
|
8
|
+
* status boxes are plain panels on the theme's panel surface with label/value
|
|
9
|
+
* rows split by hairlines; labels are grey; a missing required value is an
|
|
10
|
+
* amber word instead of a red asterisk and message; counts are quiet numbers;
|
|
11
|
+
* a healthy row carries no dot; Yes/No are plain words; nothing is forced
|
|
12
|
+
* into uppercase. A one-of group (`required_groups`) says what it needs once,
|
|
13
|
+
* on its own line, until someone has been to it; then its members say it as a
|
|
14
|
+
* required field does. The pinned toolbar is opaque, in the host's color. No
|
|
15
|
+
* blue but for a filter that is on, no purple but for an AI or Qonsole
|
|
16
|
+
* action: the lists of values (templates, completions) are neutral too. A
|
|
17
|
+
* destructive control is a red icon with no fill (`useDestructiveButtonProps`).
|
|
18
|
+
* The expression builder follows: names in sentence case with no type tag,
|
|
19
|
+
* neutral cards, "And" / "Or" as words, a missing operand said quietly on
|
|
20
|
+
* itself (as a fact in a read-only builder), what is wrong said in words.
|
|
21
|
+
* Every color is read from the theme, a light one included.
|
|
22
|
+
* - `'classic'` — the earlier read-first look, for a host that asks for it:
|
|
23
|
+
* tinted status boxes, an intent-coloured completion meter, a status dot on
|
|
24
|
+
* every row.
|
|
25
|
+
*/
|
|
26
|
+
export type TFormEngineAppearance = 'calm' | 'classic';
|
|
27
|
+
/**
|
|
28
|
+
* The appearance in force for everything below it: the engine's own rows and
|
|
29
|
+
* toolbar, every field editor it mounts, and every nested (`arg_schema`)
|
|
30
|
+
* sub-form, which inherits it unless it is given one of its own.
|
|
31
|
+
*
|
|
32
|
+
* `FormEngine` provides it from its `appearance` prop. A host may also wrap
|
|
33
|
+
* its whole tree in it, to set the appearance once for every form — and for
|
|
34
|
+
* the field components it renders outside a form.
|
|
35
|
+
*/
|
|
36
|
+
export declare const FormAppearanceContext: import("react").Context<TFormEngineAppearance>;
|
|
37
|
+
export declare const FormAppearanceProvider: import("react").Provider<TFormEngineAppearance>;
|
|
38
|
+
/** The appearance in force here; `'calm'` when nothing set one. */
|
|
39
|
+
export declare const useFormAppearance: () => TFormEngineAppearance;
|
|
40
|
+
/** Shorthand for the one question most call sites ask. */
|
|
41
|
+
export declare const useIsCalmForm: () => boolean;
|
|
42
|
+
/**
|
|
43
|
+
* The surface a calm section paints, matching the one Reqore gives a panel:
|
|
44
|
+
* `theme.panel.main` when the theme declares one, else the panel shade Reqore
|
|
45
|
+
* derives from `main`. Read here rather than through Reqore's own helper so the
|
|
46
|
+
* whole peer range keeps working — the helper arrived after the floor.
|
|
47
|
+
*/
|
|
48
|
+
export declare const getCalmPanelSurface: (theme: IReqoreTheme) => string;
|
|
49
|
+
/** The neutral 1px edge of a calm section, and of every row inside it. */
|
|
50
|
+
export declare const getCalmPanelHairline: (theme: IReqoreTheme) => string;
|
|
51
|
+
/** The readiness words' two colours: amber for a fault, and the quiet text
|
|
52
|
+
* colour for what is only still to fill in (the next step, not a warning). */
|
|
53
|
+
export declare const getCalmAttentionColours: (theme: IReqoreTheme) => {
|
|
54
|
+
fault: string;
|
|
55
|
+
pending: string;
|
|
56
|
+
};
|
|
57
|
+
/**
|
|
58
|
+
* The theme's text color, as `#rrggbb` so an alpha can follow it: the theme's own (`text.color`) when it gives
|
|
59
|
+
* one; else the text that reads on its `main` - Reqore's dark text on a light theme (a light theme gave none, and
|
|
60
|
+
* the calm labels and the readiness line were drawn near-white on a light panel), and `dark` on a dark one, the
|
|
61
|
+
* light text the form always drew there.
|
|
62
|
+
*/
|
|
63
|
+
export declare const getThemeTextColour: (theme: IReqoreTheme, dark: string) => string;
|
|
64
|
+
/**
|
|
65
|
+
* `color` moved away from its surfaces until it reads at `min` contrast on each
|
|
66
|
+
* of them (WCAG AA for text by default): lighter on dark surfaces, darker on
|
|
67
|
+
* light ones. A colour that already reads comes back unchanged. The same rule as
|
|
68
|
+
* Reqore's `getReadableAccentColor`, which only arrived in Reqore 0.77.2 — read
|
|
69
|
+
* here so the whole peer range works.
|
|
70
|
+
*/
|
|
71
|
+
export declare const getReadableOn: (color: string, surfaces: string | string[], min?: number) => string;
|
|
72
|
+
/**
|
|
73
|
+
* An intent as TEXT in the calm look. A theme's intents are fills — Reqore's
|
|
74
|
+
* danger is #a82a2a, which as a small line on a near-black form reads at about
|
|
75
|
+
* 2.3:1 — so every calm word that is coloured by what it means (a failure, a
|
|
76
|
+
* fault, the amber "Required · add a value") takes the fill moved until it
|
|
77
|
+
* reads on both surfaces a calm form puts text on: its sections, and the page
|
|
78
|
+
* a read-only form or a nested item sits on directly.
|
|
79
|
+
*/
|
|
80
|
+
export declare const getCalmIntentText: (theme: IReqoreTheme, intent: string) => string;
|
|
81
|
+
/**
|
|
82
|
+
* The intent a NOTE takes in the calm look: one that only informs (info,
|
|
83
|
+
* success, or none) takes no colour — blue is kept for "a filter is on", green
|
|
84
|
+
* for a healthy figure — while a warning or a failure keeps its intent, because
|
|
85
|
+
* those are what a person has to act on. Every note a calm form draws asks this.
|
|
86
|
+
*/
|
|
87
|
+
export declare const calmNoteIntent: <T extends string>(intent: T, calm: boolean) => T | undefined;
|
|
88
|
+
/**
|
|
89
|
+
* What a calm form writes in place of an empty required value, in English. Editable: what
|
|
90
|
+
* to do about it. Read-only: only what is the case, because the reader cannot
|
|
91
|
+
* add anything. What a form draws is the host's words for them
|
|
92
|
+
* (`setReqraftLabels({ formEngine: { calmRequired, calmRequiredRead } })`).
|
|
93
|
+
*/
|
|
94
|
+
export declare const CALM_REQUIRED_LABEL: string;
|
|
95
|
+
export declare const CALM_REQUIRED_READ_LABEL: string;
|
|
96
|
+
//# sourceMappingURL=formAppearance.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"formAppearance.d.ts","sourceRoot":"","sources":["../../../../src/components/form/engine/formAppearance.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,+CAA+C,CAAC;AAW7E;;;;;;;;;;;;;;;;;;;;;;GAsBG;AACH,MAAM,MAAM,qBAAqB,GAAG,MAAM,GAAG,SAAS,CAAC;AAEvD;;;;;;;;GAQG;AACH,eAAO,MAAM,qBAAqB,gDAA8D,CAAC;AAEjG,eAAO,MAAM,sBAAsB,iDAAiC,CAAC;AAErE,mEAAmE;AACnE,eAAO,MAAM,iBAAiB,QAAO,qBACQ,CAAC;AAE9C,0DAA0D;AAC1D,eAAO,MAAM,aAAa,QAAO,OAAyC,CAAC;AAiB3E;;;;;GAKG;AACH,eAAO,MAAM,mBAAmB,UAAW,YAAY,KAAG,MACmC,CAAC;AAE9F,0EAA0E;AAC1E,eAAO,MAAM,oBAAoB,UAAW,YAAY,KAAG,MACqC,CAAC;AAEjG;+EAC+E;AAC/E,eAAO,MAAM,uBAAuB,UAC3B,YAAY,KAClB;IAAE,KAAK,EAAE,MAAM,CAAC;IAAC,OAAO,EAAE,MAAM,CAAA;CAGjC,CAAC;AAYH;;;;;GAKG;AACH,eAAO,MAAM,kBAAkB,UAAW,YAAY,QAAQ,MAAM,KAAG,MAOtE,CAAC;AAgBF;;;;;;GAMG;AACH,eAAO,MAAM,aAAa,UACjB,MAAM,YACH,MAAM,GAAG,MAAM,EAAE,QACtB,MAAM,KACV,MAiBF,CAAC;AASF;;;;;;;GAOG;AACH,eAAO,MAAM,iBAAiB,UAAW,YAAY,UAAU,MAAM,KAAG,MAMrE,CAAC;AAEJ;;;;;GAKG;AACH,eAAO,MAAM,cAAc,6BACjB,CAAC,QACH,OAAO,KACZ,CAAC,GAAG,SAC8E,CAAC;AAEtF;;;;;GAKG;AACH,eAAO,MAAM,mBAAmB,QAAiD,CAAC;AAClF,eAAO,MAAM,wBAAwB,QAAqD,CAAC"}
|
|
@@ -0,0 +1,156 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.CALM_REQUIRED_READ_LABEL = exports.CALM_REQUIRED_LABEL = exports.calmNoteIntent = exports.getCalmIntentText = exports.getReadableOn = exports.getThemeTextColour = exports.getCalmAttentionColours = exports.getCalmPanelHairline = exports.getCalmPanelSurface = exports.useIsCalmForm = exports.useFormAppearance = exports.FormAppearanceProvider = exports.FormAppearanceContext = void 0;
|
|
4
|
+
var colors_1 = require("@qoretechnologies/reqore/dist/helpers/colors");
|
|
5
|
+
var polished_1 = require("polished");
|
|
6
|
+
var react_1 = require("react");
|
|
7
|
+
var reqraftLabels_1 = require("../../../helpers/reqraftLabels");
|
|
8
|
+
/**
|
|
9
|
+
* The appearance in force for everything below it: the engine's own rows and
|
|
10
|
+
* toolbar, every field editor it mounts, and every nested (`arg_schema`)
|
|
11
|
+
* sub-form, which inherits it unless it is given one of its own.
|
|
12
|
+
*
|
|
13
|
+
* `FormEngine` provides it from its `appearance` prop. A host may also wrap
|
|
14
|
+
* its whole tree in it, to set the appearance once for every form — and for
|
|
15
|
+
* the field components it renders outside a form.
|
|
16
|
+
*/
|
|
17
|
+
exports.FormAppearanceContext = (0, react_1.createContext)(undefined);
|
|
18
|
+
exports.FormAppearanceProvider = exports.FormAppearanceContext.Provider;
|
|
19
|
+
/** The appearance in force here; `'calm'` when nothing set one. */
|
|
20
|
+
var useFormAppearance = function () { var _a; return (_a = (0, react_1.useContext)(exports.FormAppearanceContext)) !== null && _a !== void 0 ? _a : 'calm'; };
|
|
21
|
+
exports.useFormAppearance = useFormAppearance;
|
|
22
|
+
/** Shorthand for the one question most call sites ask. */
|
|
23
|
+
var useIsCalmForm = function () { return (0, exports.useFormAppearance)() === 'calm'; };
|
|
24
|
+
exports.useIsCalmForm = useIsCalmForm;
|
|
25
|
+
/** The theme's own panel surface, when it declares one (Reqore >= 0.78.6). */
|
|
26
|
+
var getDeclaredPanelSurface = function (theme) {
|
|
27
|
+
var themed = theme;
|
|
28
|
+
// Same rule as Reqore's `getThemePanelSurface`: a component whose `main` was
|
|
29
|
+
// moved off the original (a custom theme, an intent) keeps deriving its own.
|
|
30
|
+
return themed.panel && (!themed.originalMain || themed.main === themed.originalMain) ?
|
|
31
|
+
themed.panel
|
|
32
|
+
: undefined;
|
|
33
|
+
};
|
|
34
|
+
/**
|
|
35
|
+
* The surface a calm section paints, matching the one Reqore gives a panel:
|
|
36
|
+
* `theme.panel.main` when the theme declares one, else the panel shade Reqore
|
|
37
|
+
* derives from `main`. Read here rather than through Reqore's own helper so the
|
|
38
|
+
* whole peer range keeps working — the helper arrived after the floor.
|
|
39
|
+
*/
|
|
40
|
+
var getCalmPanelSurface = function (theme) { var _a, _b; return (_b = (_a = getDeclaredPanelSurface(theme)) === null || _a === void 0 ? void 0 : _a.main) !== null && _b !== void 0 ? _b : (0, colors_1.changeDarkness)((0, colors_1.getMainBackgroundColor)(theme), 0.03); };
|
|
41
|
+
exports.getCalmPanelSurface = getCalmPanelSurface;
|
|
42
|
+
/** The neutral 1px edge of a calm section, and of every row inside it. */
|
|
43
|
+
var getCalmPanelHairline = function (theme) { var _a, _b; return (_b = (_a = getDeclaredPanelSurface(theme)) === null || _a === void 0 ? void 0 : _a.border) !== null && _b !== void 0 ? _b : (0, colors_1.changeLightness)((0, colors_1.getMainBackgroundColor)(theme), 0.08); };
|
|
44
|
+
exports.getCalmPanelHairline = getCalmPanelHairline;
|
|
45
|
+
/** The readiness words' two colours: amber for a fault, and the quiet text
|
|
46
|
+
* colour for what is only still to fill in (the next step, not a warning). */
|
|
47
|
+
var getCalmAttentionColours = function (theme) { return ({
|
|
48
|
+
fault: (0, exports.getCalmIntentText)(theme, 'warning'),
|
|
49
|
+
pending: "".concat((0, exports.getThemeTextColour)(theme, '#e8e8e8'), "a6"),
|
|
50
|
+
}); };
|
|
51
|
+
exports.getCalmAttentionColours = getCalmAttentionColours;
|
|
52
|
+
/** `#rgb` as `#rrggbb` (polished shortens the colours it returns when it can). */
|
|
53
|
+
var fullHex = function (hex) {
|
|
54
|
+
return /^#[0-9a-f]{3}$/i.test(hex) ?
|
|
55
|
+
"#".concat(hex
|
|
56
|
+
.slice(1)
|
|
57
|
+
.split('')
|
|
58
|
+
.map(function (digit) { return digit + digit; })
|
|
59
|
+
.join(''))
|
|
60
|
+
: hex;
|
|
61
|
+
};
|
|
62
|
+
/**
|
|
63
|
+
* The theme's text color, as `#rrggbb` so an alpha can follow it: the theme's own (`text.color`) when it gives
|
|
64
|
+
* one; else the text that reads on its `main` - Reqore's dark text on a light theme (a light theme gave none, and
|
|
65
|
+
* the calm labels and the readiness line were drawn near-white on a light panel), and `dark` on a dark one, the
|
|
66
|
+
* light text the form always drew there.
|
|
67
|
+
*/
|
|
68
|
+
var getThemeTextColour = function (theme, dark) {
|
|
69
|
+
var _a;
|
|
70
|
+
var own = (_a = theme.text) === null || _a === void 0 ? void 0 : _a.color;
|
|
71
|
+
if (own) {
|
|
72
|
+
return own;
|
|
73
|
+
}
|
|
74
|
+
var main = fullHex((0, colors_1.getMainBackgroundColor)(theme));
|
|
75
|
+
return /^#[0-9a-f]{6}/i.test(main) && luminance(main) > 0.4 ? fullHex((0, colors_1.getReadableColor)(theme)) : dark;
|
|
76
|
+
};
|
|
77
|
+
exports.getThemeTextColour = getThemeTextColour;
|
|
78
|
+
/** WCAG relative luminance of a `#rrggbb` colour (any alpha suffix ignored). */
|
|
79
|
+
var luminance = function (hex) {
|
|
80
|
+
var _a = [1, 3, 5].map(function (start) {
|
|
81
|
+
var channel = parseInt(hex.slice(start, start + 2), 16) / 255;
|
|
82
|
+
return channel <= 0.03928 ? channel / 12.92 : Math.pow(((channel + 0.055) / 1.055), 2.4);
|
|
83
|
+
}), r = _a[0], g = _a[1], b = _a[2];
|
|
84
|
+
return 0.2126 * r + 0.7152 * g + 0.0722 * b;
|
|
85
|
+
};
|
|
86
|
+
var contrast = function (a, b) {
|
|
87
|
+
var _a = [luminance(a), luminance(b)].sort(function (x, y) { return y - x; }), light = _a[0], dark = _a[1];
|
|
88
|
+
return (light + 0.05) / (dark + 0.05);
|
|
89
|
+
};
|
|
90
|
+
/**
|
|
91
|
+
* `color` moved away from its surfaces until it reads at `min` contrast on each
|
|
92
|
+
* of them (WCAG AA for text by default): lighter on dark surfaces, darker on
|
|
93
|
+
* light ones. A colour that already reads comes back unchanged. The same rule as
|
|
94
|
+
* Reqore's `getReadableAccentColor`, which only arrived in Reqore 0.77.2 — read
|
|
95
|
+
* here so the whole peer range works.
|
|
96
|
+
*/
|
|
97
|
+
var getReadableOn = function (color, surfaces, min) {
|
|
98
|
+
if (min === void 0) { min = 4.5; }
|
|
99
|
+
var isHex = function (value) { return /^#[0-9a-f]{6}/i.test(value); };
|
|
100
|
+
var from = fullHex(color);
|
|
101
|
+
var on = (Array.isArray(surfaces) ? surfaces : [surfaces]).map(fullHex).filter(isHex);
|
|
102
|
+
if (!isHex(from) || !on.length) {
|
|
103
|
+
return color;
|
|
104
|
+
}
|
|
105
|
+
var onLight = luminance(on[0]) > 0.4;
|
|
106
|
+
var reads = function (accent) { return on.every(function (surface) { return contrast(accent, surface) >= min; }); };
|
|
107
|
+
var accent = from.slice(0, 7);
|
|
108
|
+
// 25 steps of 4% cover the whole range, so the loop always ends. polished's
|
|
109
|
+
// lighten/darken, not Reqore's changeLightness/changeDarkness: those turn
|
|
110
|
+
// round once a colour is light enough, so the loop went back and forth.
|
|
111
|
+
for (var step = 0; step < 25 && !reads(accent); step++) {
|
|
112
|
+
accent = fullHex(onLight ? (0, polished_1.darken)(0.04, accent) : (0, polished_1.lighten)(0.04, accent));
|
|
113
|
+
}
|
|
114
|
+
return accent;
|
|
115
|
+
};
|
|
116
|
+
exports.getReadableOn = getReadableOn;
|
|
117
|
+
var INTENT_FALLBACK = {
|
|
118
|
+
danger: '#e35a5a',
|
|
119
|
+
warning: '#d17c29',
|
|
120
|
+
info: '#3b8eea',
|
|
121
|
+
success: '#4a7110',
|
|
122
|
+
};
|
|
123
|
+
/**
|
|
124
|
+
* An intent as TEXT in the calm look. A theme's intents are fills — Reqore's
|
|
125
|
+
* danger is #a82a2a, which as a small line on a near-black form reads at about
|
|
126
|
+
* 2.3:1 — so every calm word that is coloured by what it means (a failure, a
|
|
127
|
+
* fault, the amber "Required · add a value") takes the fill moved until it
|
|
128
|
+
* reads on both surfaces a calm form puts text on: its sections, and the page
|
|
129
|
+
* a read-only form or a nested item sits on directly.
|
|
130
|
+
*/
|
|
131
|
+
var getCalmIntentText = function (theme, intent) {
|
|
132
|
+
var _a;
|
|
133
|
+
return (0, exports.getReadableOn)(((_a = theme.intents) === null || _a === void 0 ? void 0 : _a[intent]) ||
|
|
134
|
+
INTENT_FALLBACK[intent] ||
|
|
135
|
+
INTENT_FALLBACK.info, [(0, exports.getCalmPanelSurface)(theme), (0, colors_1.getMainBackgroundColor)(theme)]);
|
|
136
|
+
};
|
|
137
|
+
exports.getCalmIntentText = getCalmIntentText;
|
|
138
|
+
/**
|
|
139
|
+
* The intent a NOTE takes in the calm look: one that only informs (info,
|
|
140
|
+
* success, or none) takes no colour — blue is kept for "a filter is on", green
|
|
141
|
+
* for a healthy figure — while a warning or a failure keeps its intent, because
|
|
142
|
+
* those are what a person has to act on. Every note a calm form draws asks this.
|
|
143
|
+
*/
|
|
144
|
+
var calmNoteIntent = function (intent, calm) {
|
|
145
|
+
return calm && (!intent || intent === 'info' || intent === 'success') ? undefined : intent;
|
|
146
|
+
};
|
|
147
|
+
exports.calmNoteIntent = calmNoteIntent;
|
|
148
|
+
/**
|
|
149
|
+
* What a calm form writes in place of an empty required value, in English. Editable: what
|
|
150
|
+
* to do about it. Read-only: only what is the case, because the reader cannot
|
|
151
|
+
* add anything. What a form draws is the host's words for them
|
|
152
|
+
* (`setReqraftLabels({ formEngine: { calmRequired, calmRequiredRead } })`).
|
|
153
|
+
*/
|
|
154
|
+
exports.CALM_REQUIRED_LABEL = reqraftLabels_1.DEFAULT_REQRAFT_LABELS.formEngine.calmRequired;
|
|
155
|
+
exports.CALM_REQUIRED_READ_LABEL = reqraftLabels_1.DEFAULT_REQRAFT_LABELS.formEngine.calmRequiredRead;
|
|
156
|
+
//# sourceMappingURL=formAppearance.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"formAppearance.js","sourceRoot":"","sources":["../../../../src/components/form/engine/formAppearance.ts"],"names":[],"mappings":";;;AACA,uEAKsD;AACtD,qCAA2C;AAC3C,+BAAkD;AAClD,gEAAwE;AA2BxE;;;;;;;;GAQG;AACU,QAAA,qBAAqB,GAAG,IAAA,qBAAa,EAAoC,SAAS,CAAC,CAAC;AAEpF,QAAA,sBAAsB,GAAG,6BAAqB,CAAC,QAAQ,CAAC;AAErE,mEAAmE;AAC5D,IAAM,iBAAiB,GAAG,sBAC/B,OAAA,MAAA,IAAA,kBAAU,EAAC,6BA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AAC,KAAK,CAAC,CAAC,CAC5D,CAAA;CAAA,CAAC;AANS,QAAA,iBAAiB,qBAM1B;AAEJ;;;;;GAKG;AACI,IAAM,cAAc,GAAG,UAC5B,MAAS,EACT,IAAa;IAEb,OAAA,IAAI,IAAI,CAAC,CAAC,MAAM,IAAI,MAAM,KAAK,MAAM,IAAI,MAAM,KAAK,SAAS,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,MAAM;AAAnF,CAAmF,CAAC;AAJzE,QAAA,cAAc,kBAI2D;AAEtF;;;;;GAKG;AACU,QAAA,mBAAmB,GAAG,sCAAsB,CAAC,UAAU,CAAC,YAAY,CAAC;AACrE,QAAA,wBAAwB,GAAG,sCAAsB,CAAC,UAAU,CAAC,gBAAgB,CAAC"}
|
|
@@ -221,20 +221,48 @@ export declare const getOptionGroupLabel: (key: string, groups?: Record<string,
|
|
|
221
221
|
} | undefined>) => string;
|
|
222
222
|
/** Completion summary for the read-first progress meter. */
|
|
223
223
|
export interface IReadFirstCompletion {
|
|
224
|
+
/**
|
|
225
|
+
* What the form is made of for this count: every field holding a value and every one the form says still needs
|
|
226
|
+
* attention. An empty optional field is not part of what is left to do, so it is not counted (with a verdict).
|
|
227
|
+
*/
|
|
224
228
|
total: number;
|
|
225
229
|
/** Fields holding a value, whether or not anything is wrong with it. */
|
|
226
230
|
set: number;
|
|
231
|
+
/**
|
|
232
|
+
* Every field the form shows, counted or not: a form of empty optional fields counts nothing (`total` 0) and
|
|
233
|
+
* is still a form, which reads Ready.
|
|
234
|
+
*/
|
|
235
|
+
shown: number;
|
|
227
236
|
/** Fields holding a value that nothing is flagging — what the meter fills. */
|
|
228
237
|
done: number;
|
|
229
238
|
pct: number;
|
|
230
239
|
}
|
|
240
|
+
/**
|
|
241
|
+
* Whether the person has been to a field, as its requirement is judged: they opened it and left it, or the host
|
|
242
|
+
* reported a submit attempt (`revealRequired`). A member of a one-of group (`required_groups`) has been to as soon as
|
|
243
|
+
* any member of its group has: the group is one requirement, so its members are still to fill in together, and
|
|
244
|
+
* become faults together - the group's line, each member's words and color, the box they are in and the readiness
|
|
245
|
+
* line's count all say the same. Shared by the row (CompactRow) and the form's status and counts (FormEngine).
|
|
246
|
+
*/
|
|
247
|
+
export declare const hasBeenToTheField: (name: string, { visitedOptions, revealRequired, requiredGroups, groupMembers, }: {
|
|
248
|
+
visitedOptions?: string[];
|
|
249
|
+
revealRequired?: boolean;
|
|
250
|
+
/** The field's own one-of groups. */
|
|
251
|
+
requiredGroups?: string[];
|
|
252
|
+
/** Each one-of group's members, by group. */
|
|
253
|
+
groupMembers?: Record<string, string[]>;
|
|
254
|
+
}) => boolean;
|
|
231
255
|
/** Read-first row status, shared by the status DOT (CompactRow) and the
|
|
232
256
|
* status BOX bucketing (FormEngine) so the two can never disagree:
|
|
233
257
|
* invalid — a value fails validation, or a danger message is present (red)
|
|
234
258
|
* todo — empty & required (or has a warning message), needs a value (amber)
|
|
259
|
+
* pending — empty & required, but the person has not been to it yet: still to
|
|
260
|
+
* fill in, not yet a fault (neutral). A new form is not already wrong;
|
|
261
|
+
* the field becomes `todo` once they open it and leave it empty, or the
|
|
262
|
+
* host reports a submit attempt (`revealRequired`)
|
|
235
263
|
* set — has a valid value (green)
|
|
236
264
|
* optional — empty & not required, or covered by a one-of sibling (calm) */
|
|
237
|
-
export type TReadFirstStatus = 'invalid' | 'todo' | 'set' | 'optional';
|
|
265
|
+
export type TReadFirstStatus = 'invalid' | 'todo' | 'pending' | 'set' | 'optional';
|
|
238
266
|
export declare const getReadFirstStatus: (s: {
|
|
239
267
|
empty: boolean;
|
|
240
268
|
required: boolean;
|
|
@@ -244,8 +272,16 @@ export declare const getReadFirstStatus: (s: {
|
|
|
244
272
|
invalid: boolean;
|
|
245
273
|
/** A warning message is attached (surfaces an empty field for attention). */
|
|
246
274
|
warned: boolean;
|
|
275
|
+
/**
|
|
276
|
+
* Whether the person has been to this field (opened it and left it), or the host
|
|
277
|
+
* reported a submit attempt. Until then an empty required field is `pending`, not
|
|
278
|
+
* `todo`. Unset means visited, the behaviour before this existed.
|
|
279
|
+
*/
|
|
280
|
+
visited?: boolean;
|
|
247
281
|
}) => TReadFirstStatus;
|
|
248
|
-
/** Coarse bucket for the three status boxes (Needs attention / Set / Optional).
|
|
282
|
+
/** Coarse bucket for the three status boxes (Needs attention / Set / Optional). A
|
|
283
|
+
* `pending` field is in the first box too: it still has to be filled in. The box only
|
|
284
|
+
* reads "To fill in" instead of "Needs attention" while nothing in it is a fault. */
|
|
249
285
|
export declare const getReadFirstBucket: (status: TReadFirstStatus) => 'attention' | 'set' | 'optional';
|
|
250
286
|
/** Count how many of the shown options have a value set, for the progress meter. */
|
|
251
287
|
export declare const getReadFirstCompletion: (shownOptions?: Record<string, IQorusFormField | undefined>, needsAttention?: (name: string) => boolean) => IReadFirstCompletion;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"readFirst.d.ts","sourceRoot":"","sources":["../../../../src/components/form/engine/readFirst.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,eAAe,EAAE,MAAM,+BAA+B,CAAC;AAChE,OAAO,EACL,eAAe,EACf,gBAAgB,EAChB,qBAAqB,EAEtB,MAAM,8BAA8B,CAAC;AAOtC,OAAO,EAAE,gBAAgB,EAAE,MAAM,sBAAsB,CAAC;AAIxD,OAAO,EAAE,sBAAsB,EAAE,MAAM,gCAAgC,CAAC;AACxE,OAAO,EAAE,kBAAkB,EAAE,MAAM,8BAA8B,CAAC;AAClE,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,gCAAgC,CAAC;AA6GpE;;;wEAGwE;AACxE,eAAO,MAAM,uBAAuB,UAAW,OAAO,KAAG,MAAM,GAAG,SASjE,CAAC;AAsBF,sFAAsF;AACtF,MAAM,WAAW,oBAAoB;IACnC,gGAAgG;IAChG,QAAQ,EAAE,OAAO,CAAC,aAAa,CAAC,CAAC;IACjC,wGAAwG;IACxG,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB;AAKD;;;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AAEF;;;mBAGmB;AACnB,MAAM,WAAW,wBAAwB;IACvC;+EAC2E;IAC3E,SAAS,EAAE,OAAO,CAAC;IACnB;;;;4DAIwD;IACxD,cAAc,EAAE,OAAO,CAAC;CACzB;AAED;;;;;;;;;;;GAWG;AACH,eAAO,MAAM,2BAA2B,iBACxB,MAAM,EAAE,gBACR,CAAC,IAAI,EAAE,MAAM,KAAK,wBAAwB,GAAG,SAAS,KACnE,MAAM,GAAG,SASX,CAAC;AAiBF,6EAA6E;AAC7E,eAAO,MAAM,KAAK,UAAW,OAAO,KAAG,OAC4D,CAAC;AAEpG;;;;GAIG;AACH,eAAO,MAAM,WAAW,WACd,OAAO,MAAM,EAAE,OAAO,CAAC,UACvB,gBAAgB,KACvB,MAAM,EAIR,CAAC;AAEF;kFACkF;AAClF,eAAO,MAAM,WAAW,gBAAiB,qBAAqB,GAAG,SAAS,KAAG,OAG5E,CAAC;AAEF;;;;;;;;;;;;;;GAcG;AACH,eAAO,MAAM,WAAW,WACd,OAAO,MAAM,EAAE,OAAO,CAAC,UACvB,gBAAgB,KACvB,MAAM,GAAG,SAQR,CAAC;AAEL,gFAAgF;AAChF,MAAM,WAAW,eAAe;IAC9B,6EAA6E;IAC7E,GAAG,EAAE,MAAM,CAAC;IACZ,gEAAgE;IAChE,IAAI,EAAE,MAAM,CAAC;IACb,iFAAiF;IACjF,KAAK,EAAE,MAAM,CAAC;IACd,8DAA8D;IAC9D,IAAI,EAAE,OAAO,CAAC;CACf;AAED;;;;;;;;GAQG;AACH,eAAO,MAAM,cAAc,WACjB,OAAO,MAAM,EAAE,OAAO,CAAC,UACvB,gBAAgB,GAAG,SAAS,KACnC,eAAe,GAAG,SAuBpB,CAAC;AAEF,eAAO,MAAM,UAAU,QAAS,MAAM,eAAe,qBAAqB,GAAG,SAAS,KAAG,MACZ,CAAC"}
|
|
@@ -23,7 +23,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
23
23
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
24
24
|
};
|
|
25
25
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26
|
-
exports.fieldLabel = exports.recordIdentity = exports.titleKeyFor = exports.isCodeField = exports.orderedKeys = exports.isSet = exports.getFirstAttentionOptionName = exports.getReadFirstCompletion = exports.getReadFirstBucket = exports.getReadFirstStatus = exports.getOptionGroupLabel = exports.getOptionGroup = exports.getHashEntries = exports.formatOptionValue = exports.getExpressionAst = exports.markdownToProse = exports.summariseMarkdown = exports.SUMMARY_MAX_LENGTH = exports.formatBytes = exports.getValueType = exports.getFileSize = exports.formatFileValue = exports.formatColorValue = exports.colorToCss = exports.getAllowedValueIcon = exports.getAllowedValueImage = exports.optionHasImages = exports.findAllowedValueOption = exports.shouldAutoCollapseCompactOption = exports.isCompactBooleanOption = exports.shouldAutoCollapseCompactAllowedValueOption = exports.isFixedCompactAllowedValueOption = exports.isUnsetSchemaHash = exports.describeBlockedSave = exports.isOptionValueEmpty = exports.getDataProviderPreview = exports.formatDataProviderValue = void 0;
|
|
26
|
+
exports.fieldLabel = exports.recordIdentity = exports.titleKeyFor = exports.isCodeField = exports.orderedKeys = exports.isSet = exports.getFirstAttentionOptionName = exports.getReadFirstCompletion = exports.getReadFirstBucket = exports.getReadFirstStatus = exports.hasBeenToTheField = exports.getOptionGroupLabel = exports.getOptionGroup = exports.getHashEntries = exports.formatOptionValue = exports.getExpressionAst = exports.markdownToProse = exports.summariseMarkdown = exports.SUMMARY_MAX_LENGTH = exports.formatBytes = exports.getValueType = exports.getFileSize = exports.formatFileValue = exports.formatColorValue = exports.colorToCss = exports.getAllowedValueIcon = exports.getAllowedValueImage = exports.optionHasImages = exports.findAllowedValueOption = exports.shouldAutoCollapseCompactOption = exports.isCompactBooleanOption = exports.shouldAutoCollapseCompactAllowedValueOption = exports.isFixedCompactAllowedValueOption = exports.isUnsetSchemaHash = exports.describeBlockedSave = exports.isOptionValueEmpty = exports.getDataProviderPreview = exports.formatDataProviderValue = void 0;
|
|
27
27
|
var reqraftLabels_1 = require("../../../helpers/reqraftLabels");
|
|
28
28
|
var markdownText_1 = require("../../../helpers/markdownText");
|
|
29
29
|
Object.defineProperty(exports, "markdownToProse", { enumerable: true, get: function () { return markdownText_1.markdownToProse; } });
|
|
@@ -766,6 +766,22 @@ exports.getOptionGroup = getOptionGroup;
|
|
|
766
766
|
* `groups` prop) or the title-cased key. */
|
|
767
767
|
var getOptionGroupLabel = function (key, groups) { var _a, _b; return (_b = (_a = groups === null || groups === void 0 ? void 0 : groups[key]) === null || _a === void 0 ? void 0 : _a.label) !== null && _b !== void 0 ? _b : titleCase(key); };
|
|
768
768
|
exports.getOptionGroupLabel = getOptionGroupLabel;
|
|
769
|
+
/**
|
|
770
|
+
* Whether the person has been to a field, as its requirement is judged: they opened it and left it, or the host
|
|
771
|
+
* reported a submit attempt (`revealRequired`). A member of a one-of group (`required_groups`) has been to as soon as
|
|
772
|
+
* any member of its group has: the group is one requirement, so its members are still to fill in together, and
|
|
773
|
+
* become faults together - the group's line, each member's words and color, the box they are in and the readiness
|
|
774
|
+
* line's count all say the same. Shared by the row (CompactRow) and the form's status and counts (FormEngine).
|
|
775
|
+
*/
|
|
776
|
+
var hasBeenToTheField = function (name, _a) {
|
|
777
|
+
var visitedOptions = _a.visitedOptions, revealRequired = _a.revealRequired, requiredGroups = _a.requiredGroups, groupMembers = _a.groupMembers;
|
|
778
|
+
return !!revealRequired ||
|
|
779
|
+
!!(visitedOptions === null || visitedOptions === void 0 ? void 0 : visitedOptions.includes(name)) ||
|
|
780
|
+
!!(requiredGroups === null || requiredGroups === void 0 ? void 0 : requiredGroups.some(function (group) {
|
|
781
|
+
return ((groupMembers === null || groupMembers === void 0 ? void 0 : groupMembers[group]) || []).some(function (member) { return visitedOptions === null || visitedOptions === void 0 ? void 0 : visitedOptions.includes(member); });
|
|
782
|
+
}));
|
|
783
|
+
};
|
|
784
|
+
exports.hasBeenToTheField = hasBeenToTheField;
|
|
769
785
|
var getReadFirstStatus = function (s) {
|
|
770
786
|
if (s.invalid)
|
|
771
787
|
return 'invalid';
|
|
@@ -775,12 +791,16 @@ var getReadFirstStatus = function (s) {
|
|
|
775
791
|
// requirement is met; the row just shows a "Covered by …" note.
|
|
776
792
|
if (s.covered)
|
|
777
793
|
return 'set';
|
|
778
|
-
if (s.
|
|
794
|
+
if (s.warned)
|
|
779
795
|
return 'todo';
|
|
796
|
+
if (s.required)
|
|
797
|
+
return s.visited === false ? 'pending' : 'todo';
|
|
780
798
|
return 'optional';
|
|
781
799
|
};
|
|
782
800
|
exports.getReadFirstStatus = getReadFirstStatus;
|
|
783
|
-
/** Coarse bucket for the three status boxes (Needs attention / Set / Optional).
|
|
801
|
+
/** Coarse bucket for the three status boxes (Needs attention / Set / Optional). A
|
|
802
|
+
* `pending` field is in the first box too: it still has to be filled in. The box only
|
|
803
|
+
* reads "To fill in" instead of "Needs attention" while nothing in it is a fault. */
|
|
784
804
|
var getReadFirstBucket = function (status) {
|
|
785
805
|
return status === 'set' ? 'set'
|
|
786
806
|
: status === 'optional' ? 'optional'
|
|
@@ -796,9 +816,14 @@ var getReadFirstCompletion = function (shownOptions,
|
|
|
796
816
|
*/
|
|
797
817
|
needsAttention) {
|
|
798
818
|
if (shownOptions === void 0) { shownOptions = {}; }
|
|
799
|
-
var names = Object.keys(shownOptions);
|
|
800
|
-
var total = names.length;
|
|
801
819
|
var hasValue = function (name) { var _a; return !(0, validations_1.isOptionValueEmpty)((_a = shownOptions[name]) === null || _a === void 0 ? void 0 : _a.value); };
|
|
820
|
+
/* An empty optional field is nothing left to do. Counted, a form with nothing outstanding read
|
|
821
|
+
"Ready · 2/6 set · 33%": the word and the figure disagreed, because four optional fields nobody
|
|
822
|
+
needed to fill sat in the denominator. Only a verdict says which empty fields are needed, so a
|
|
823
|
+
caller without one keeps counting every shown field. */
|
|
824
|
+
var shown = Object.keys(shownOptions).length;
|
|
825
|
+
var names = Object.keys(shownOptions).filter(function (name) { return !needsAttention || hasValue(name) || needsAttention(name); });
|
|
826
|
+
var total = names.length;
|
|
802
827
|
var set = names.filter(hasValue).length;
|
|
803
828
|
/* "Set" and "needs attention" are not opposites. A field can hold a value and
|
|
804
829
|
still be wrong — one that fails validation, or one the host has flagged
|
|
@@ -812,7 +837,7 @@ needsAttention) {
|
|
|
812
837
|
was outstanding was the one thing the double-count hid. */
|
|
813
838
|
var done = needsAttention ? names.filter(function (name) { return hasValue(name) && !needsAttention(name); }).length : set;
|
|
814
839
|
var pct = total ? Math.round((done / total) * 100) : 0;
|
|
815
|
-
return { total: total, set: set, done: done, pct: pct };
|
|
840
|
+
return { total: total, set: set, done: done, pct: pct, shown: shown };
|
|
816
841
|
};
|
|
817
842
|
exports.getReadFirstCompletion = getReadFirstCompletion;
|
|
818
843
|
/**
|