@qoretechnologies/reqraft 0.10.76-pr.145.gb1f8f29 → 0.10.76
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 +7 -10
- 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 +4 -22
- 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 +1 -3
- package/dist/components/FocusedEditing/index.js.map +1 -1
- package/dist/components/codeSize/index.d.ts +0 -6
- package/dist/components/codeSize/index.d.ts.map +1 -1
- package/dist/components/codeSize/index.js +2 -12
- 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 +36 -27
- package/dist/components/colorValue/colorValue.js.map +1 -1
- package/dist/components/composer/Composer.d.ts +2 -7
- package/dist/components/composer/Composer.d.ts.map +1 -1
- package/dist/components/composer/Composer.js +13 -18
- package/dist/components/composer/Composer.js.map +1 -1
- 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 +32 -168
- 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 +21 -73
- package/dist/components/form/engine/CompactToolbar.js.map +1 -1
- package/dist/components/form/engine/FormEngine.d.ts +2 -66
- package/dist/components/form/engine/FormEngine.d.ts.map +1 -1
- package/dist/components/form/engine/FormEngine.js +200 -548
- package/dist/components/form/engine/FormEngine.js.map +1 -1
- package/dist/components/form/engine/OptionFieldMessages.d.ts +2 -35
- package/dist/components/form/engine/OptionFieldMessages.d.ts.map +1 -1
- package/dist/components/form/engine/OptionFieldMessages.js +6 -42
- 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 +1 -27
- package/dist/components/form/engine/_structuredData/SchemaDataView.js.map +1 -1
- package/dist/components/form/engine/compactRowContext.d.ts +0 -5
- 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 +0 -12
- package/dist/components/form/engine/compactRowStyles.d.ts.map +1 -1
- package/dist/components/form/engine/compactRowStyles.js +46 -94
- package/dist/components/form/engine/compactRowStyles.js.map +1 -1
- package/dist/components/form/engine/compactToolbarContext.d.ts +0 -9
- 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/readFirst.d.ts +2 -38
- package/dist/components/form/engine/readFirst.d.ts.map +1 -1
- package/dist/components/form/engine/readFirst.js +6 -31
- package/dist/components/form/engine/readFirst.js.map +1 -1
- package/dist/components/form/engine/revealRow.d.ts +0 -13
- package/dist/components/form/engine/revealRow.d.ts.map +1 -1
- package/dist/components/form/engine/revealRow.js +1 -24
- package/dist/components/form/engine/revealRow.js.map +1 -1
- package/dist/components/form/engine/rowFocus.d.ts +1 -9
- package/dist/components/form/engine/rowFocus.d.ts.map +1 -1
- package/dist/components/form/engine/rowFocus.js +4 -17
- package/dist/components/form/engine/rowFocus.js.map +1 -1
- package/dist/components/form/expressions/DpqlRendering.d.ts.map +1 -1
- package/dist/components/form/expressions/DpqlRendering.js +1 -3
- package/dist/components/form/expressions/DpqlRendering.js.map +1 -1
- package/dist/components/form/expressions/ExpressionField.d.ts +8 -6
- package/dist/components/form/expressions/ExpressionField.d.ts.map +1 -1
- package/dist/components/form/expressions/ExpressionField.js +11 -13
- 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 +1 -4
- package/dist/components/form/expressions/builder/argumentDetail.js.map +1 -1
- package/dist/components/form/expressions/builder/argumentLabel.d.ts +1 -3
- package/dist/components/form/expressions/builder/argumentLabel.d.ts.map +1 -1
- package/dist/components/form/expressions/builder/argumentLabel.js +26 -66
- 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 +2 -3
- 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 +6 -10
- 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 +8 -13
- 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 +2 -4
- package/dist/components/form/expressions/builder/confirmUnsupportedTypeModal.js.map +1 -1
- package/dist/components/form/expressions/builder/index.d.ts +1 -6
- package/dist/components/form/expressions/builder/index.d.ts.map +1 -1
- package/dist/components/form/expressions/builder/index.js +64 -110
- 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 +2 -4
- 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 +7 -8
- 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 +1 -3
- 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/renderExpressionToText.d.ts.map +1 -1
- package/dist/components/form/expressions/renderExpressionToText.js +0 -15
- 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/Field.d.ts.map +1 -1
- package/dist/components/form/fields/Field.js +5 -9
- package/dist/components/form/fields/Field.js.map +1 -1
- package/dist/components/form/fields/allowed-values/AllowedValues.d.ts +0 -7
- package/dist/components/form/fields/allowed-values/AllowedValues.d.ts.map +1 -1
- package/dist/components/form/fields/allowed-values/AllowedValues.js +10 -34
- package/dist/components/form/fields/allowed-values/AllowedValues.js.map +1 -1
- package/dist/components/form/fields/array/ArrayAuto.d.ts.map +1 -1
- package/dist/components/form/fields/array/ArrayAuto.js +14 -31
- 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 +19 -21
- package/dist/components/form/fields/array/ArrayAutoField.js.map +1 -1
- package/dist/components/form/fields/auto/AutoFormField.d.ts +1 -5
- package/dist/components/form/fields/auto/AutoFormField.d.ts.map +1 -1
- package/dist/components/form/fields/auto/AutoFormField.js +14 -37
- 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 +1 -3
- package/dist/components/form/fields/binary/Binary.js.map +1 -1
- package/dist/components/form/fields/boolean/Boolean.d.ts +1 -7
- package/dist/components/form/fields/boolean/Boolean.d.ts.map +1 -1
- package/dist/components/form/fields/boolean/Boolean.js +2 -8
- package/dist/components/form/fields/boolean/Boolean.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 +6 -18
- package/dist/components/form/fields/file/File.js.map +1 -1
- package/dist/components/form/fields/long-string/LongString.d.ts +1 -7
- package/dist/components/form/fields/long-string/LongString.d.ts.map +1 -1
- package/dist/components/form/fields/long-string/LongString.js +5 -15
- 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 +1 -3
- package/dist/components/form/fields/markdown/Markdown.js.map +1 -1
- package/dist/components/form/fields/number/Number.d.ts +1 -4
- package/dist/components/form/fields/number/Number.d.ts.map +1 -1
- package/dist/components/form/fields/number/Number.js +7 -21
- package/dist/components/form/fields/number/Number.js.map +1 -1
- package/dist/components/form/fields/object/Object.d.ts +1 -9
- package/dist/components/form/fields/object/Object.d.ts.map +1 -1
- package/dist/components/form/fields/object/Object.js +8 -21
- 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 +7 -13
- 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 +3 -6
- package/dist/components/form/fields/rich-text/RichText.js.map +1 -1
- package/dist/components/form/fields/rich-text/useTemplateTags.d.ts +0 -2
- package/dist/components/form/fields/rich-text/useTemplateTags.d.ts.map +1 -1
- package/dist/components/form/fields/rich-text/useTemplateTags.js +1 -7
- 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 +8 -10
- 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 +27 -39
- package/dist/components/form/fields/schema-definition/CatalogNodeEditor.js.map +1 -1
- package/dist/components/form/fields/schema-definition/Hint.d.ts +3 -4
- package/dist/components/form/fields/schema-definition/Hint.d.ts.map +1 -1
- package/dist/components/form/fields/schema-definition/Hint.js +2 -10
- 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 +1 -3
- 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 +2 -4
- 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 +26 -31
- 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 +1 -3
- 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 +23 -25
- 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 +14 -20
- package/dist/components/form/fields/schema-definition/index.js.map +1 -1
- 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 +6 -13
- 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 +3 -11
- package/dist/components/form/fields/select/SelectCollection.js.map +1 -1
- package/dist/components/form/fields/template/TemplateBrowser.d.ts.map +1 -1
- package/dist/components/form/fields/template/TemplateBrowser.js +1 -3
- package/dist/components/form/fields/template/TemplateBrowser.js.map +1 -1
- package/dist/components/form/fields/template/TemplateField.d.ts +2 -2
- package/dist/components/form/fields/template/TemplateField.d.ts.map +1 -1
- package/dist/components/form/fields/template/TemplateField.js +57 -63
- package/dist/components/form/fields/template/TemplateField.js.map +1 -1
- package/dist/components/form/fields/template/TemplatePicker.d.ts +1 -7
- package/dist/components/form/fields/template/TemplatePicker.d.ts.map +1 -1
- package/dist/components/form/fields/template/TemplatePicker.js +16 -35
- package/dist/components/form/fields/template/TemplatePicker.js.map +1 -1
- package/dist/components/form/index.d.ts +0 -2
- package/dist/components/form/index.d.ts.map +1 -1
- package/dist/components/form/index.js +0 -2
- 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 +6 -10
- 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 +18 -21
- package/dist/components/log/Log.js.map +1 -1
- package/dist/components/menu/Menu.d.ts.map +1 -1
- package/dist/components/menu/Menu.js +1 -3
- 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 +2 -3
- 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 +6 -13
- 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 +1 -3
- package/dist/components/smartEditor/SmartEditor.js.map +1 -1
- package/dist/components/smartEditor/completionStyle.d.ts +2 -17
- package/dist/components/smartEditor/completionStyle.d.ts.map +1 -1
- package/dist/components/smartEditor/completionStyle.js +4 -32
- 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/useLspAutocomplete.d.ts +0 -5
- package/dist/components/smartEditor/useLspAutocomplete.d.ts.map +1 -1
- package/dist/components/smartEditor/useLspAutocomplete.js +20 -76
- 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 +2 -4
- package/dist/components/supportTicket/AttachmentChips.js.map +1 -1
- package/dist/components/supportTicket/InterfaceReferenceTags.d.ts +2 -3
- package/dist/components/supportTicket/InterfaceReferenceTags.d.ts.map +1 -1
- package/dist/components/supportTicket/InterfaceReferenceTags.js +6 -6
- package/dist/components/supportTicket/InterfaceReferenceTags.js.map +1 -1
- package/dist/components/supportTicket/ReferencePicker.d.ts +2 -3
- package/dist/components/supportTicket/ReferencePicker.d.ts.map +1 -1
- package/dist/components/supportTicket/ReferencePicker.js +25 -35
- 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 +1 -4
- package/dist/components/supportTicket/TicketHeader.js.map +1 -1
- package/dist/components/supportTicket/TicketMetaTags.d.ts +12 -19
- package/dist/components/supportTicket/TicketMetaTags.d.ts.map +1 -1
- package/dist/components/supportTicket/TicketMetaTags.js +6 -57
- package/dist/components/supportTicket/TicketMetaTags.js.map +1 -1
- package/dist/components/supportTicket/TicketReplyBox.d.ts +2 -3
- package/dist/components/supportTicket/TicketReplyBox.d.ts.map +1 -1
- package/dist/components/supportTicket/TicketReplyBox.js +18 -39
- package/dist/components/supportTicket/TicketReplyBox.js.map +1 -1
- package/dist/components/supportTicket/WorkspaceAccessStatus.d.ts +2 -10
- package/dist/components/supportTicket/WorkspaceAccessStatus.d.ts.map +1 -1
- package/dist/components/supportTicket/WorkspaceAccessStatus.js +17 -45
- package/dist/components/supportTicket/WorkspaceAccessStatus.js.map +1 -1
- package/dist/components/supportTicket/accessMeta.d.ts +1 -6
- package/dist/components/supportTicket/accessMeta.d.ts.map +1 -1
- package/dist/components/supportTicket/accessMeta.js +65 -83
- 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 +26 -14
- 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 +1 -4
- package/dist/components/supportTicket/fileToAttachment.js.map +1 -1
- package/dist/components/supportTicket/meta.d.ts +0 -22
- package/dist/components/supportTicket/meta.d.ts.map +1 -1
- package/dist/components/supportTicket/meta.js +72 -91
- package/dist/components/supportTicket/meta.js.map +1 -1
- package/dist/components/supportTicket/ticketModel.d.ts +1 -5
- package/dist/components/supportTicket/ticketModel.d.ts.map +1 -1
- package/dist/components/supportTicket/useLoadedImages.d.ts +0 -10
- package/dist/components/supportTicket/useLoadedImages.d.ts.map +1 -1
- package/dist/components/supportTicket/useLoadedImages.js +1 -64
- 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 +45 -56
- package/dist/components/ticketReferences/TicketReferences.js.map +1 -1
- package/dist/components/ticketThread/TicketThread.d.ts +2 -22
- package/dist/components/ticketThread/TicketThread.d.ts.map +1 -1
- package/dist/components/ticketThread/TicketThread.js +36 -57
- 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 +1 -2
- package/dist/components/ticketThread/index.js.map +1 -1
- package/dist/helpers/allowedValues.d.ts.map +1 -1
- package/dist/helpers/allowedValues.js +4 -11
- package/dist/helpers/allowedValues.js.map +1 -1
- package/dist/helpers/expressions.d.ts.map +1 -1
- package/dist/helpers/expressions.js +12 -7
- package/dist/helpers/expressions.js.map +1 -1
- package/dist/helpers/markdownText.d.ts +0 -9
- package/dist/helpers/markdownText.d.ts.map +1 -1
- package/dist/helpers/markdownText.js +2 -49
- 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 +6 -8
- 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 +8 -11
- 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/reqraftLabels.d.ts +0 -83
- package/dist/helpers/reqraftLabels.d.ts.map +1 -1
- package/dist/helpers/reqraftLabels.js +11 -56
- package/dist/helpers/reqraftLabels.js.map +1 -1
- package/dist/helpers/singleLineString.d.ts.map +1 -1
- package/dist/helpers/singleLineString.js +0 -1
- package/dist/helpers/singleLineString.js.map +1 -1
- package/dist/helpers/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/validations.d.ts +2 -14
- package/dist/helpers/validations.d.ts.map +1 -1
- package/dist/helpers/validations.js +178 -165
- package/dist/helpers/validations.js.map +1 -1
- package/dist/hooks/useWebSocket/useWebSocket.d.ts.map +1 -1
- package/dist/hooks/useWebSocket/useWebSocket.js +5 -6
- 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 +45 -33
- 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 +6 -8
- package/dist/tracking/ui/ExperimentsOverlay.js.map +1 -1
- package/dist/tracking/ui/card.d.ts +13 -9
- package/dist/tracking/ui/card.d.ts.map +1 -1
- package/dist/tracking/ui/card.js +107 -96
- package/dist/tracking/ui/card.js.map +1 -1
- package/dist/tracking/ui/client.d.ts +6 -0
- package/dist/tracking/ui/client.d.ts.map +1 -1
- package/dist/tracking/ui/client.js +2 -9
- package/dist/tracking/ui/client.js.map +1 -1
- package/package.json +2 -2
- package/dist/components/composer/labels.d.ts +0 -22
- package/dist/components/composer/labels.d.ts.map +0 -1
- package/dist/components/composer/labels.js +0 -15
- package/dist/components/composer/labels.js.map +0 -1
- package/dist/components/form/engine/ItemAttention.d.ts +0 -12
- package/dist/components/form/engine/ItemAttention.d.ts.map +0 -1
- package/dist/components/form/engine/ItemAttention.js +0 -33
- package/dist/components/form/engine/ItemAttention.js.map +0 -1
- package/dist/components/form/engine/formAppearance.d.ts +0 -96
- package/dist/components/form/engine/formAppearance.d.ts.map +0 -1
- package/dist/components/form/engine/formAppearance.js +0 -156
- package/dist/components/form/engine/formAppearance.js.map +0 -1
- package/dist/components/form/engine/rowLabelled.d.ts +0 -9
- package/dist/components/form/engine/rowLabelled.d.ts.map +0 -1
- package/dist/components/form/engine/rowLabelled.js +0 -12
- package/dist/components/form/engine/rowLabelled.js.map +0 -1
- package/dist/components/form/engine/rowPlaces.d.ts +0 -43
- package/dist/components/form/engine/rowPlaces.d.ts.map +0 -1
- package/dist/components/form/engine/rowPlaces.js +0 -163
- package/dist/components/form/engine/rowPlaces.js.map +0 -1
- package/dist/components/form/expressions/labels.d.ts +0 -143
- package/dist/components/form/expressions/labels.d.ts.map +0 -1
- package/dist/components/form/expressions/labels.js +0 -123
- package/dist/components/form/expressions/labels.js.map +0 -1
- package/dist/components/form/fields/ChoiceGroupHeading.d.ts +0 -22
- package/dist/components/form/fields/ChoiceGroupHeading.d.ts.map +0 -1
- package/dist/components/form/fields/ChoiceGroupHeading.js +0 -40
- package/dist/components/form/fields/ChoiceGroupHeading.js.map +0 -1
- package/dist/components/form/fields/allowed-values/savedValues.d.ts +0 -30
- package/dist/components/form/fields/allowed-values/savedValues.d.ts.map +0 -1
- package/dist/components/form/fields/allowed-values/savedValues.js +0 -39
- package/dist/components/form/fields/allowed-values/savedValues.js.map +0 -1
- package/dist/components/form/fields/labels.d.ts +0 -72
- package/dist/components/form/fields/labels.d.ts.map +0 -1
- package/dist/components/form/fields/labels.js +0 -47
- package/dist/components/form/fields/labels.js.map +0 -1
- package/dist/components/form/fields/schema-definition/labels.d.ts +0 -123
- package/dist/components/form/fields/schema-definition/labels.d.ts.map +0 -1
- package/dist/components/form/fields/schema-definition/labels.js +0 -113
- package/dist/components/form/fields/schema-definition/labels.js.map +0 -1
- package/dist/components/form/fields/template/templatesListProps.d.ts +0 -11
- package/dist/components/form/fields/template/templatesListProps.d.ts.map +0 -1
- package/dist/components/form/fields/template/templatesListProps.js +0 -37
- package/dist/components/form/fields/template/templatesListProps.js.map +0 -1
- package/dist/components/log/labels.d.ts +0 -25
- package/dist/components/log/labels.d.ts.map +0 -1
- package/dist/components/log/labels.js +0 -22
- package/dist/components/log/labels.js.map +0 -1
- package/dist/components/supportTicket/labels.d.ts +0 -155
- package/dist/components/supportTicket/labels.d.ts.map +0 -1
- package/dist/components/supportTicket/labels.js +0 -214
- package/dist/components/supportTicket/labels.js.map +0 -1
- package/dist/components/supportTicket/ticketAttentionInks.d.ts +0 -23
- package/dist/components/supportTicket/ticketAttentionInks.d.ts.map +0 -1
- package/dist/components/supportTicket/ticketAttentionInks.js +0 -42
- package/dist/components/supportTicket/ticketAttentionInks.js.map +0 -1
- package/dist/helpers/fieldDescription.d.ts +0 -16
- package/dist/helpers/fieldDescription.d.ts.map +0 -1
- package/dist/helpers/fieldDescription.js +0 -40
- package/dist/helpers/fieldDescription.js.map +0 -1
- package/dist/helpers/sentenceCase.d.ts +0 -9
- package/dist/helpers/sentenceCase.d.ts.map +0 -1
- package/dist/helpers/sentenceCase.js +0 -22
- package/dist/helpers/sentenceCase.js.map +0 -1
- package/dist/helpers/validationLabels.d.ts +0 -190
- package/dist/helpers/validationLabels.d.ts.map +0 -1
- package/dist/helpers/validationLabels.js +0 -210
- package/dist/helpers/validationLabels.js.map +0 -1
- package/dist/hooks/useDestructiveButtonProps.d.ts +0 -22
- package/dist/hooks/useDestructiveButtonProps.d.ts.map +0 -1
- package/dist/hooks/useDestructiveButtonProps.js +0 -46
- package/dist/hooks/useDestructiveButtonProps.js.map +0 -1
- package/dist/tracking/ui/labels.d.ts +0 -198
- package/dist/tracking/ui/labels.d.ts.map +0 -1
- package/dist/tracking/ui/labels.js +0 -171
- package/dist/tracking/ui/labels.js.map +0 -1
|
@@ -1,143 +0,0 @@
|
|
|
1
|
-
/** The words of an expression field's Text / Visual toggle. */
|
|
2
|
-
export interface IExpressionModeLabels {
|
|
3
|
-
text: string;
|
|
4
|
-
visual: string;
|
|
5
|
-
/** The Text button's hover when there is no language server to write the expression with. */
|
|
6
|
-
textUnavailable: string;
|
|
7
|
-
}
|
|
8
|
-
/**
|
|
9
|
-
* The words of an expression field and its builder. A host that translates its interface gives its own
|
|
10
|
-
* (`setReqraftLabels`); the rest stay English.
|
|
11
|
-
*/
|
|
12
|
-
export interface IExpressionLabels {
|
|
13
|
-
/** The Text / Visual toggle; a field's `modeLabels` come before these. */
|
|
14
|
-
modes: IExpressionModeLabels;
|
|
15
|
-
/** Above the Text view's editor when there is no language server to read the text with. */
|
|
16
|
-
textUnreadable: string;
|
|
17
|
-
/** Above the Visual view when there is no language server for the Text view. */
|
|
18
|
-
textViewUnavailable: string;
|
|
19
|
-
/** Above the Visual view when the expression cannot be written as text: `reason` is the server's. */
|
|
20
|
-
textRefused: (reason: string) => string;
|
|
21
|
-
/** The title of the note under the Text view whose expression gives a type the field may not take. */
|
|
22
|
-
mayNotFit: string;
|
|
23
|
-
/** The same, where the type cannot be taken. */
|
|
24
|
-
doesNotFit: string;
|
|
25
|
-
/**
|
|
26
|
-
* That note's sentence: what the expression gives and what the field takes (types inside a sentence), and, where
|
|
27
|
-
* the value may still fit (`mayFail`), that Qorus converts and checks it when it runs.
|
|
28
|
-
*/
|
|
29
|
-
typeNote: (gives: string | undefined, takes: string | undefined, mayFail: boolean) => string;
|
|
30
|
-
/** The title of the box that renders the expression in words under the Text view. */
|
|
31
|
-
preview: string;
|
|
32
|
-
/** Where the expression cannot be rendered in words. */
|
|
33
|
-
notRendered: string;
|
|
34
|
-
/** In the builder's explanation, where the expression is not valid. */
|
|
35
|
-
notExplained: string;
|
|
36
|
-
/**
|
|
37
|
-
* What is said of a condition that gives text, a date or a time: what it gives (`typeInSentence`, undefined where
|
|
38
|
-
* no type can be named) and how to make it one, by an `example` comparison written in DPQL.
|
|
39
|
-
*/
|
|
40
|
-
conditionError: (typeInSentence: string | undefined, example: string) => string;
|
|
41
|
-
/**
|
|
42
|
-
* What is said of a condition that gives a number, a list, a hash or a type that is not known (`other`): how Qorus
|
|
43
|
-
* reads it and how to say it explicitly. `named` is the type inside a sentence.
|
|
44
|
-
*/
|
|
45
|
-
conditionByTruthiness: (kind: 'number' | 'list' | 'hash' | 'other', named: string) => string;
|
|
46
|
-
/**
|
|
47
|
-
* What an expression, or a part of one, whose operation is not chosen yet says: what it lacks, and what its place
|
|
48
|
-
* takes where that is a type (`takes`, a type inside a sentence). `part`: a part of an expression, not the whole.
|
|
49
|
-
*/
|
|
50
|
-
noOperationYet: (part: boolean, takes?: string) => string;
|
|
51
|
-
/** Under an operation Qorus could not check, where the check gave no reason. */
|
|
52
|
-
couldNotCheck: string;
|
|
53
|
-
/** The description of an expression a server outside Qorus runs. */
|
|
54
|
-
runsOutsideQorus: string;
|
|
55
|
-
selectOperation: string;
|
|
56
|
-
/** The action that puts the expression inside another one, and its hover. */
|
|
57
|
-
wrap: string;
|
|
58
|
-
wrapTooltip: string;
|
|
59
|
-
/** The action that takes the expression away and keeps what is inside it, and its hover. */
|
|
60
|
-
unwrap: string;
|
|
61
|
-
unwrapTooltip: string;
|
|
62
|
-
/** The hover of the action that removes the expression and everything inside it. */
|
|
63
|
-
removeExpressionTooltip: string;
|
|
64
|
-
explain: string;
|
|
65
|
-
explainTooltip: string;
|
|
66
|
-
hideExplanation: string;
|
|
67
|
-
hideExplanationTooltip: string;
|
|
68
|
-
/** What an operand's field offers, by where its value can come from. */
|
|
69
|
-
selectTemplateOrField: string;
|
|
70
|
-
selectField: string;
|
|
71
|
-
selectTemplate: string;
|
|
72
|
-
loading: string;
|
|
73
|
-
/** The heading of a group of conditions, one of which must be true (OR), all of which (AND), and the top one. */
|
|
74
|
-
anyOfConditions: string;
|
|
75
|
-
allOfConditions: string;
|
|
76
|
-
/**
|
|
77
|
-
* The two actions that join another condition to an expression: one that must also be true, and one that can be
|
|
78
|
-
* true instead. Written in sentence case; the classic look draws them in capitals.
|
|
79
|
-
*/
|
|
80
|
-
joinWithAnd: string;
|
|
81
|
-
joinWithOr: string;
|
|
82
|
-
joinWithAndTooltip: string;
|
|
83
|
-
joinWithOrTooltip: string;
|
|
84
|
-
/** Between two parts of a group: what joins them. Small; the classic look draws them in capitals. */
|
|
85
|
-
joinedByAnd: string;
|
|
86
|
-
joinedByOr: string;
|
|
87
|
-
ifConditions: string;
|
|
88
|
-
addCondition: string;
|
|
89
|
-
/** An operand's position: 1st, 2nd, 3rd. */
|
|
90
|
-
ordinal: (position: number) => string;
|
|
91
|
-
/** The ⋮ menu's section that moves an operand, and its items. */
|
|
92
|
-
moveArgument: string;
|
|
93
|
-
moveBefore: string;
|
|
94
|
-
moveAfter: string;
|
|
95
|
-
moveToStart: string;
|
|
96
|
-
moveToEnd: string;
|
|
97
|
-
moveToPosition: string;
|
|
98
|
-
currentPosition: string;
|
|
99
|
-
/** The hover of a position to move an operand to (`position` counts from 1). */
|
|
100
|
-
moveToOrdinal: (position: number) => string;
|
|
101
|
-
moveToThatPosition: string;
|
|
102
|
-
/** The menu of the positions not shown as buttons. */
|
|
103
|
-
morePositions: string;
|
|
104
|
-
dragToReorder: string;
|
|
105
|
-
positionTooltip: string;
|
|
106
|
-
removeArgument: string;
|
|
107
|
-
/** The phone's action that removes an operand, named by the operation's operand (undefined where it has no name). */
|
|
108
|
-
removeOperand: (name: string | undefined) => string;
|
|
109
|
-
/** The slot after the last operand: add one, its hover, and its hover while the operands are not filled in. */
|
|
110
|
-
addOperand: (name: string | undefined) => string;
|
|
111
|
-
addOperandTooltip: (name: string | undefined) => string;
|
|
112
|
-
fillInCurrentValuesFirst: string;
|
|
113
|
-
/** An operand's hover where its value is not a type the operand takes (`accepted`, the types inside a sentence). */
|
|
114
|
-
operandNotOfType: (accepted: string | undefined) => string;
|
|
115
|
-
/** An operand's hover where its type fits but Qorus may convert it. */
|
|
116
|
-
operandMayConvert: string;
|
|
117
|
-
/** An operand's hover where it needs other types (`accepted`, undefined where the types are not known). */
|
|
118
|
-
operandNeedsType: (accepted: string | undefined) => string;
|
|
119
|
-
/** The dialog that confirms converting operands whose values have other types. */
|
|
120
|
-
confirmMismatchedTitle: string;
|
|
121
|
-
mismatchedExplanation: string;
|
|
122
|
-
mismatchedInstruction: string;
|
|
123
|
-
discardAll: string;
|
|
124
|
-
acceptAll: string;
|
|
125
|
-
confirmSelection: string;
|
|
126
|
-
clearedNotConverted: string;
|
|
127
|
-
noConversionNeeded: string;
|
|
128
|
-
/** What an operand that is converted is converted from and to (types inside a sentence, either may be unknown). */
|
|
129
|
-
converted: (from: string | undefined, to: string | undefined) => string;
|
|
130
|
-
/** How many operands will be converted. */
|
|
131
|
-
transformedCount: (count: number) => string;
|
|
132
|
-
/** The dialog that confirms a type the value does not take. */
|
|
133
|
-
confirmTypeTitle: string;
|
|
134
|
-
needsOneOfTypes: string;
|
|
135
|
-
useTypeAnyway: string;
|
|
136
|
-
dontShowAgain: string;
|
|
137
|
-
/** The answers of that dialog where its caller gives none. */
|
|
138
|
-
cancel: string;
|
|
139
|
-
confirm: string;
|
|
140
|
-
}
|
|
141
|
-
/** The English words, the ones a host gets when it gives none. */
|
|
142
|
-
export declare const DEFAULT_EXPRESSION_LABELS: IExpressionLabels;
|
|
143
|
-
//# sourceMappingURL=labels.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"labels.d.ts","sourceRoot":"","sources":["../../../../src/components/form/expressions/labels.ts"],"names":[],"mappings":"AAEA,+DAA+D;AAC/D,MAAM,WAAW,qBAAqB;IACpC,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,EAAE,MAAM,CAAC;IACf,6FAA6F;IAC7F,eAAe,EAAE,MAAM,CAAC;CACzB;AAWD;;;GAGG;AACH,MAAM,WAAW,iBAAiB;IAChC,0EAA0E;IAC1E,KAAK,EAAE,qBAAqB,CAAC;IAC7B,2FAA2F;IAC3F,cAAc,EAAE,MAAM,CAAC;IACvB,gFAAgF;IAChF,mBAAmB,EAAE,MAAM,CAAC;IAC5B,qGAAqG;IACrG,WAAW,EAAE,CAAC,MAAM,EAAE,MAAM,KAAK,MAAM,CAAC;IACxC,sGAAsG;IACtG,SAAS,EAAE,MAAM,CAAC;IAClB,gDAAgD;IAChD,UAAU,EAAE,MAAM,CAAC;IACnB;;;OAGG;IACH,QAAQ,EAAE,CAAC,KAAK,EAAE,MAAM,GAAG,SAAS,EAAE,KAAK,EAAE,MAAM,GAAG,SAAS,EAAE,OAAO,EAAE,OAAO,KAAK,MAAM,CAAC;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,MAAM,CAAC;IAC3D,kFAAkF;IAClF,sBAAsB,EAAE,MAAM,CAAC;IAC/B,qBAAqB,EAAE,MAAM,CAAC;IAC9B,qBAAqB,EAAE,MAAM,CAAC;IAC9B,UAAU,EAAE,MAAM,CAAC;IACnB,SAAS,EAAE,MAAM,CAAC;IAClB,gBAAgB,EAAE,MAAM,CAAC;IACzB,mBAAmB,EAAE,MAAM,CAAC;IAC5B,kBAAkB,EAAE,MAAM,CAAC;IAC3B,mHAAmH;IACnH,SAAS,EAAE,CAAC,IAAI,EAAE,MAAM,GAAG,SAAS,EAAE,EAAE,EAAE,MAAM,GAAG,SAAS,KAAK,MAAM,CAAC;IACxE,2CAA2C;IAC3C,gBAAgB,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,MAAM,CAAC;IAC5C,+DAA+D;IAC/D,gBAAgB,EAAE,MAAM,CAAC;IACzB,eAAe,EAAE,MAAM,CAAC;IACxB,aAAa,EAAE,MAAM,CAAC;IACtB,aAAa,EAAE,MAAM,CAAC;IACtB,8DAA8D;IAC9D,MAAM,EAAE,MAAM,CAAC;IACf,OAAO,EAAE,MAAM,CAAC;CACjB;AAED,kEAAkE;AAClE,eAAO,MAAM,yBAAyB,EAAE,iBAyGvC,CAAC"}
|
|
@@ -1,123 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
// Copyright 2026 Qore Technologies, s.r.o.
|
|
3
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
-
exports.DEFAULT_EXPRESSION_LABELS = void 0;
|
|
5
|
-
/** English ordinals: 1st, 2nd, 3rd, 4th … 11th, 12th, 13th … 21st. */
|
|
6
|
-
var englishOrdinal = function (n) {
|
|
7
|
-
var _a;
|
|
8
|
-
var mod100 = n % 100;
|
|
9
|
-
if (mod100 >= 11 && mod100 <= 13) {
|
|
10
|
-
return "".concat(n, "th");
|
|
11
|
-
}
|
|
12
|
-
return "".concat(n).concat((_a = { 1: 'st', 2: 'nd', 3: 'rd' }[n % 10]) !== null && _a !== void 0 ? _a : 'th');
|
|
13
|
-
};
|
|
14
|
-
/** The English words, the ones a host gets when it gives none. */
|
|
15
|
-
exports.DEFAULT_EXPRESSION_LABELS = {
|
|
16
|
-
modes: {
|
|
17
|
-
text: 'Text',
|
|
18
|
-
visual: 'Visual',
|
|
19
|
-
textUnavailable: 'The expression language server is not available',
|
|
20
|
-
},
|
|
21
|
-
textUnreadable: 'The expression language server is not available, so this text cannot be read yet. It is kept as you typed it; the Visual view builds the expression without the server.',
|
|
22
|
-
textViewUnavailable: 'The Text view needs the expression language server, which is not available: the expression is built here instead.',
|
|
23
|
-
textRefused: function (reason) { return "This expression cannot be shown as text, so it is built here: ".concat(reason); },
|
|
24
|
-
mayNotFit: 'This may not fit',
|
|
25
|
-
doesNotFit: 'This does not fit',
|
|
26
|
-
typeNote: function (gives, takes, mayFail) {
|
|
27
|
-
return "The expression gives ".concat(gives, ", and this field takes ").concat(takes, ".").concat(mayFail ? ' Qorus converts the value when it runs, and checks it then.' : '');
|
|
28
|
-
},
|
|
29
|
-
preview: 'Preview',
|
|
30
|
-
notRendered: 'This expression could not be rendered.',
|
|
31
|
-
notExplained: 'Expression is invalid, unable to render summary',
|
|
32
|
-
conditionError: function (typeInSentence, example) {
|
|
33
|
-
return "".concat(typeInSentence ? "The condition evaluates to ".concat(typeInSentence, ", but it") : 'The condition', " must evaluate to true or false. Compare the value instead, for example ").concat(example, ".");
|
|
34
|
-
},
|
|
35
|
-
conditionByTruthiness: function (kind, named) {
|
|
36
|
-
return kind === 'number' ?
|
|
37
|
-
"The condition evaluates to ".concat(named, "; Qorus treats it as true unless it is 0. To make that explicit, compare it, for example @count > 0.")
|
|
38
|
-
: kind === 'list' ?
|
|
39
|
-
"The condition evaluates to ".concat(named, "; Qorus treats it as true unless it is empty. To make that explicit, compare its size, for example size(@items) > 0.")
|
|
40
|
-
: kind === 'hash' ?
|
|
41
|
-
"The condition evaluates to ".concat(named, "; Qorus treats it as true unless it holds no pairs. To make that explicit, compare its size, for example size(@details) > 0.")
|
|
42
|
-
: "The condition's value is not true or false; Qorus treats it as true unless it is 0 or empty. To make that explicit, compare it, for example @count > 0.";
|
|
43
|
-
},
|
|
44
|
-
noOperationYet: function (part, takes) {
|
|
45
|
-
return part ?
|
|
46
|
-
"Choose what this part does".concat(takes ? ": it must give ".concat(takes) : '', ".")
|
|
47
|
-
: "Choose what this expression does".concat(takes ? ": this field takes ".concat(takes) : '', ".");
|
|
48
|
-
},
|
|
49
|
-
couldNotCheck: 'Qorus could not check this expression.',
|
|
50
|
-
runsOutsideQorus: 'This expression runs outside Qorus',
|
|
51
|
-
selectOperation: 'Select operation',
|
|
52
|
-
wrap: 'Wrap',
|
|
53
|
-
wrapTooltip: 'Put this expression inside another one',
|
|
54
|
-
unwrap: 'Remove',
|
|
55
|
-
unwrapTooltip: 'Remove this expression and keep what is inside it',
|
|
56
|
-
removeExpressionTooltip: 'Remove this expression and everything inside it',
|
|
57
|
-
explain: 'Explain',
|
|
58
|
-
explainTooltip: 'Show explanation of this expression',
|
|
59
|
-
hideExplanation: 'Hide explanation',
|
|
60
|
-
hideExplanationTooltip: 'Hide explanation of this expression',
|
|
61
|
-
selectTemplateOrField: 'Select template or field',
|
|
62
|
-
selectField: 'Select field',
|
|
63
|
-
selectTemplate: 'Select template',
|
|
64
|
-
loading: 'Loading...',
|
|
65
|
-
anyOfConditions: 'At least one of these is true (OR)',
|
|
66
|
-
allOfConditions: 'All of these are true (AND)',
|
|
67
|
-
joinWithAnd: 'And',
|
|
68
|
-
joinWithOr: 'Or',
|
|
69
|
-
joinWithAndTooltip: 'Add a condition that must also be true',
|
|
70
|
-
joinWithOrTooltip: 'Add a condition that can be true instead',
|
|
71
|
-
joinedByAnd: 'and',
|
|
72
|
-
joinedByOr: 'or',
|
|
73
|
-
ifConditions: 'If',
|
|
74
|
-
addCondition: 'Add a condition',
|
|
75
|
-
ordinal: englishOrdinal,
|
|
76
|
-
moveArgument: 'Move argument',
|
|
77
|
-
moveBefore: 'Move before',
|
|
78
|
-
moveAfter: 'Move after',
|
|
79
|
-
moveToStart: 'Move to start',
|
|
80
|
-
moveToEnd: 'Move to end',
|
|
81
|
-
moveToPosition: 'Move to position',
|
|
82
|
-
currentPosition: 'Current position',
|
|
83
|
-
moveToOrdinal: function (position) { return "Move to ".concat(englishOrdinal(position)); },
|
|
84
|
-
moveToThatPosition: 'Move to that position',
|
|
85
|
-
morePositions: 'More',
|
|
86
|
-
dragToReorder: 'Drag to reorder',
|
|
87
|
-
positionTooltip: 'Position — pick a new one to move this argument',
|
|
88
|
-
removeArgument: 'Remove argument',
|
|
89
|
-
removeOperand: function (name) { return "Remove ".concat((name || 'argument').toLowerCase()); },
|
|
90
|
-
addOperand: function (name) { return "Add ".concat((name || 'argument').toLowerCase()); },
|
|
91
|
-
addOperandTooltip: function (name) { return "Add another ".concat((name || 'argument').toLowerCase(), " after the last one"); },
|
|
92
|
-
fillInCurrentValuesFirst: 'Fill in the current values first',
|
|
93
|
-
operandNotOfType: function (accepted) {
|
|
94
|
-
return "This value is not ".concat(accepted, ". Put it inside an expression that converts it");
|
|
95
|
-
},
|
|
96
|
-
operandMayConvert: 'The type fits; Qorus may convert the value',
|
|
97
|
-
operandNeedsType: function (accepted) {
|
|
98
|
-
return accepted ?
|
|
99
|
-
// the sentence starts with them
|
|
100
|
-
"".concat(accepted.charAt(0).toUpperCase()).concat(accepted.slice(1), " is needed here")
|
|
101
|
-
// a place whose types are not known names none
|
|
102
|
-
: 'A value of another type is needed here';
|
|
103
|
-
},
|
|
104
|
-
confirmMismatchedTitle: 'Confirm type selection for mismatched arguments',
|
|
105
|
-
mismatchedExplanation: 'These values have other types than expected. Qorus converts them when it runs.',
|
|
106
|
-
mismatchedInstruction: 'Please deselect the arguments you do not wish to transform:',
|
|
107
|
-
discardAll: 'Discard all',
|
|
108
|
-
acceptAll: 'Accept all',
|
|
109
|
-
confirmSelection: 'Confirm selection',
|
|
110
|
-
clearedNotConverted: 'Cleared, not converted',
|
|
111
|
-
noConversionNeeded: 'No conversion needed',
|
|
112
|
-
converted: function (from, to) { return "Converted".concat(from ? " from ".concat(from) : '').concat(to ? " to ".concat(to) : ''); },
|
|
113
|
-
transformedCount: function (count) {
|
|
114
|
-
return "".concat(count, " ").concat(count === 1 ? 'argument' : 'arguments', " will be transformed.");
|
|
115
|
-
},
|
|
116
|
-
confirmTypeTitle: 'Confirm type selection',
|
|
117
|
-
needsOneOfTypes: 'This value needs one of these types:',
|
|
118
|
-
useTypeAnyway: 'Use this type anyway?',
|
|
119
|
-
dontShowAgain: "Don't show again",
|
|
120
|
-
cancel: 'Cancel',
|
|
121
|
-
confirm: 'Confirm',
|
|
122
|
-
};
|
|
123
|
-
//# sourceMappingURL=labels.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"labels.js","sourceRoot":"","sources":["../../../../src/components/form/expressions/labels.ts"],"names":[],"mappings":";AAAA,2CAA2C;;;AAU3C,sEAAsE;AACtE,IAAM,cAAc,GAAG,UAAC,CAAS;;IAC/B,IAAM,MAAM,GAAG,CAAC,GAAG,GAAG,CAAC;IACvB,IAAI,MAAM,IAAI,EAAE,IAAI,MAAM,IAAI,EAAE,EAAE,CAAC;QACjC,OAAO,UAAG,CAAC,OAAI,CAAC;IAClB,CAAC;IACD,OAAO,UAAG,CAAC,SAAG,MAAC,EAAE,CAAC,EAAE,IAAI,EAAE,CAAC,EAAE,IAAI,EAAE,CAAC,EAAE,IAAI,EAA6B,CAAC,CAAC,GAAG,EAAE,CAAC,mCAAI,IAAI,CAAE,CAAC;AAC5F,CAAC,CAAC;AAwIF,kEAAkE;AACrD,QAAA,yBAAyB,GAAsB;IAC1D,KAAK,EAAE;QACL,IAAI,EAAE,MAAM;QACZ,MAAM,EAAE,QAAQ;QAChB,eAAe,EAAE,iDAAiD;KACnE;IACD,cAAc,EACZ,yKAAyK;IAC3K,mBAAmB,EACjB,mHAAmH;IACrH,WAAW,EAAE,UAAC,MAAM,IAAK,OAAA,wE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C,MAAM,EAAE,QAAQ;IAChB,OAAO,EAAE,SAAS;CACnB,CAAC"}
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
/**
|
|
3
|
-
* The heading over a small group of choices (the checkboxes a field with three
|
|
4
|
-
* or fewer allowed values renders) — the field's own name, or "Select one:"
|
|
5
|
-
* when it has none.
|
|
6
|
-
*
|
|
7
|
-
* Not drawn under a form row's label (`RowLabelledContext`), which already names the
|
|
8
|
-
* field. One component so both choice editors head their groups the same way, in
|
|
9
|
-
* either appearance: an upper-case micro label by default; in the calm look the
|
|
10
|
-
* words as written, at the small text size, because nothing in a calm form is
|
|
11
|
-
* forced into capitals.
|
|
12
|
-
*/
|
|
13
|
-
export declare const ChoiceGroupHeading: import("react").MemoExoticComponent<({ children }: {
|
|
14
|
-
children: React.ReactNode;
|
|
15
|
-
}) => import("react/jsx-runtime").JSX.Element>;
|
|
16
|
-
/**
|
|
17
|
-
* The intent a picked choice in those groups takes. Blue by default; none in
|
|
18
|
-
* the calm look, where blue says only "a filter is on" and the checked mark
|
|
19
|
-
* already says which choice is picked.
|
|
20
|
-
*/
|
|
21
|
-
export declare const useSelectedChoiceIntent: () => ((selected: boolean) => 'info' | undefined);
|
|
22
|
-
//# sourceMappingURL=ChoiceGroupHeading.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ChoiceGroupHeading.d.ts","sourceRoot":"","sources":["../../../../src/components/form/fields/ChoiceGroupHeading.tsx"],"names":[],"mappings":";AAKA;;;;;;;;;;GAUG;AACH,eAAO,MAAM,kBAAkB,qDAAuB;IAAE,QAAQ,EAAE,MAAM,SAAS,CAAA;CAAE,6CAkBjF,CAAC;AAEH;;;;GAIG;AACH,eAAO,MAAM,uBAAuB,QAAO,CAAC,CAAC,QAAQ,EAAE,OAAO,KAAK,MAAM,GAAG,SAAS,CAIpF,CAAC"}
|
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.useSelectedChoiceIntent = exports.ChoiceGroupHeading = void 0;
|
|
4
|
-
var jsx_runtime_1 = require("react/jsx-runtime");
|
|
5
|
-
var reqore_1 = require("@qoretechnologies/reqore");
|
|
6
|
-
var react_1 = require("react");
|
|
7
|
-
var formAppearance_1 = require("../engine/formAppearance");
|
|
8
|
-
var rowLabelled_1 = require("../engine/rowLabelled");
|
|
9
|
-
/**
|
|
10
|
-
* The heading over a small group of choices (the checkboxes a field with three
|
|
11
|
-
* or fewer allowed values renders) — the field's own name, or "Select one:"
|
|
12
|
-
* when it has none.
|
|
13
|
-
*
|
|
14
|
-
* Not drawn under a form row's label (`RowLabelledContext`), which already names the
|
|
15
|
-
* field. One component so both choice editors head their groups the same way, in
|
|
16
|
-
* either appearance: an upper-case micro label by default; in the calm look the
|
|
17
|
-
* words as written, at the small text size, because nothing in a calm form is
|
|
18
|
-
* forced into capitals.
|
|
19
|
-
*/
|
|
20
|
-
exports.ChoiceGroupHeading = (0, react_1.memo)(function (_a) {
|
|
21
|
-
var children = _a.children;
|
|
22
|
-
var calm = (0, formAppearance_1.useIsCalmForm)();
|
|
23
|
-
// Under a form row's label the heading only repeats it ("Language" over "Language:").
|
|
24
|
-
var underRowLabel = (0, react_1.useContext)(rowLabelled_1.RowLabelledContext);
|
|
25
|
-
if (underRowLabel) {
|
|
26
|
-
return null;
|
|
27
|
-
}
|
|
28
|
-
return ((0, jsx_runtime_1.jsx)(reqore_1.ReqoreSpan, { className: 'reqraft-choice-group-heading', effect: calm ? { opacity: 0.7, weight: 'bold' } : { opacity: 0.6, uppercase: true, weight: 'bold' }, size: calm ? 'small' : 'tiny', children: children }));
|
|
29
|
-
});
|
|
30
|
-
/**
|
|
31
|
-
* The intent a picked choice in those groups takes. Blue by default; none in
|
|
32
|
-
* the calm look, where blue says only "a filter is on" and the checked mark
|
|
33
|
-
* already says which choice is picked.
|
|
34
|
-
*/
|
|
35
|
-
var useSelectedChoiceIntent = function () {
|
|
36
|
-
var calm = (0, formAppearance_1.useIsCalmForm)();
|
|
37
|
-
return function (selected) { return (selected && !calm ? 'info' : undefined); };
|
|
38
|
-
};
|
|
39
|
-
exports.useSelectedChoiceIntent = useSelectedChoiceIntent;
|
|
40
|
-
//# sourceMappingURL=ChoiceGroupHeading.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ChoiceGroupHeading.js","sourceRoot":"","sources":["../../../../src/components/form/fields/ChoiceGroupHeading.tsx"],"names":[],"mappings":";;;;AAAA,mDAAsD;AACtD,+BAAyC;AACzC,2DAAyD;AACzD,qDAA2D;AAE3D;;;;;;;;;;GAUG;AACU,QAAA,kBAAkB,GAAG,IAAA,YAAI,EAAC,UAAC,EAA2C;QAAzC,QAAQ,cAAA;IAChD,IAAM,IAAI,GAAG,IAAA,8BAAa,GAAE,CAAC;IAC7B,sFAAsF;IACtF,IAAM,aAAa,GAAG,IAAA,kBAAU,EAAC,gCAAkB,CAAC,CAAC;IAErD,IAAI,aAAa,EAAE,CAAC;QAClB,OAAO,IAAI,CAAC;IACd,CAAC;IAED,OAAO,CACL,uBAAC,mBAAU,IACT,SAAS,EAAC,8BAA8B,EACxC,MAAM,EAAE,IAAI,CAAC,CAAC,CAAC,EAAE,OAAO,EAAE,GAAG,EAAE,MAAM,EAAE,MAAM,EAAE,CAAC,CAAC,CAAC,EAAE,OAAO,EAAE,GAAG,EAAE,SAAS,EAAE,IAAI,EAAE,MAAM,EAAE,MAAM,EAAE,EACnG,IAAI,EAAE,IAAI,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,MAAM,YAE5B,QAAQ,GACE,CACd,CAAC;AACJ,CAAC,CAAC,CAAC;AAEH;;;;GAIG;AACI,IAAM,uBAAuB,GAAG;IACrC,IAAM,IAAI,GAAG,IAAA,8BAAa,GAAE,CAAC;IAE7B,OAAO,UAAC,QAAQ,IAAK,OAAA,CAAC,QAAQ,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,SAAS,CAAC,EAAxC,CAAwC,CAAC;AAChE,CAAC,CAAC;AAJW,QAAA,uBAAuB,2BAIlC"}
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import { ISelectFormFieldItem } from '../select/Select';
|
|
3
|
-
/**
|
|
4
|
-
* SEAM (reqraft): values a person saved to reuse in other fields.
|
|
5
|
-
*
|
|
6
|
-
* Where they are kept is the host's business — the IDE stores them in the
|
|
7
|
-
* user's settings — so this package draws them and asks the host to save one;
|
|
8
|
-
* it never stores anything itself. Without a provider a form offers neither,
|
|
9
|
-
* which is what it did before the seam existed (`showSavedValues` and
|
|
10
|
-
* `allowSaving` were inert).
|
|
11
|
-
*/
|
|
12
|
-
export interface ISavedValueChoice extends ISelectFormFieldItem {
|
|
13
|
-
/** The type of the saved value: a field offers only the values of its own type. */
|
|
14
|
-
valueType?: string;
|
|
15
|
-
}
|
|
16
|
-
export interface ISavedValues {
|
|
17
|
-
/** Every saved value, drawn as choices by a field that shows saved values. */
|
|
18
|
-
items: ISavedValueChoice[];
|
|
19
|
-
/** Saves a field's current value; the host asks what to call it. */
|
|
20
|
-
saveValue?: (field: {
|
|
21
|
-
value: unknown;
|
|
22
|
-
type?: string;
|
|
23
|
-
}) => void;
|
|
24
|
-
/** The label of the row-menu item that saves a value. */
|
|
25
|
-
saveLabel?: string;
|
|
26
|
-
}
|
|
27
|
-
export declare const SavedValuesContext: import("react").Context<ISavedValues>;
|
|
28
|
-
/** The saved values a field of `type` can choose from. */
|
|
29
|
-
export declare const useSavedValueChoices: (type?: string) => ISavedValueChoice[];
|
|
30
|
-
//# sourceMappingURL=savedValues.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"savedValues.d.ts","sourceRoot":"","sources":["../../../../../src/components/form/fields/allowed-values/savedValues.ts"],"names":[],"mappings":";AACA,OAAO,EAAE,oBAAoB,EAAE,MAAM,kBAAkB,CAAC;AAExD;;;;;;;;GAQG;AACH,MAAM,WAAW,iBAAkB,SAAQ,oBAAoB;IAC7D,mFAAmF;IACnF,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,MAAM,WAAW,YAAY;IAC3B,8EAA8E;IAC9E,KAAK,EAAE,iBAAiB,EAAE,CAAC;IAC3B,oEAAoE;IACpE,SAAS,CAAC,EAAE,CAAC,KAAK,EAAE;QAAE,KAAK,EAAE,OAAO,CAAC;QAAC,IAAI,CAAC,EAAE,MAAM,CAAA;KAAE,KAAK,IAAI,CAAC;IAC/D,yDAAyD;IACzD,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,eAAO,MAAM,kBAAkB,uCAAqD,CAAC;AA0BrF,0DAA0D;AAC1D,eAAO,MAAM,oBAAoB,UAAW,MAAM,KAAG,iBAAiB,EAUrE,CAAC"}
|
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.useSavedValueChoices = exports.SavedValuesContext = void 0;
|
|
4
|
-
var react_1 = require("react");
|
|
5
|
-
exports.SavedValuesContext = (0, react_1.createContext)(undefined);
|
|
6
|
-
var NO_SAVED_VALUES = [];
|
|
7
|
-
/**
|
|
8
|
-
* The editors that all store text. A field's type names its EDITOR, so a rich-text
|
|
9
|
-
* field reports `richtext` while the value saved from it, or from a plain string
|
|
10
|
-
* field, is text all the same; matching the names exactly offered no saved text to
|
|
11
|
-
* the rich-text fields most text is written in.
|
|
12
|
-
*/
|
|
13
|
-
var TEXT_TYPES = new Set([
|
|
14
|
-
'string',
|
|
15
|
-
'richtext',
|
|
16
|
-
'long-string',
|
|
17
|
-
'email',
|
|
18
|
-
'uri',
|
|
19
|
-
'url',
|
|
20
|
-
'uuid',
|
|
21
|
-
'hostname',
|
|
22
|
-
'ipv4',
|
|
23
|
-
'ipv6',
|
|
24
|
-
'phone',
|
|
25
|
-
]);
|
|
26
|
-
var storedKind = function (type) { return (type && TEXT_TYPES.has(type) ? 'string' : type); };
|
|
27
|
-
/** The saved values a field of `type` can choose from. */
|
|
28
|
-
var useSavedValueChoices = function (type) {
|
|
29
|
-
var _a;
|
|
30
|
-
var items = (_a = (0, react_1.useContext)(exports.SavedValuesContext)) === null || _a === void 0 ? void 0 : _a.items;
|
|
31
|
-
return (0, react_1.useMemo)(function () {
|
|
32
|
-
return !items ? NO_SAVED_VALUES
|
|
33
|
-
: type ?
|
|
34
|
-
items.filter(function (item) { return !item.valueType || storedKind(item.valueType) === storedKind(type); })
|
|
35
|
-
: items;
|
|
36
|
-
}, [items, type]);
|
|
37
|
-
};
|
|
38
|
-
exports.useSavedValueChoices = useSavedValueChoices;
|
|
39
|
-
//# sourceMappingURL=savedValues.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"savedValues.js","sourceRoot":"","sources":["../../../../../src/components/form/fields/allowed-values/savedValues.ts"],"names":[],"mappings":";;;AAAA,+BAA2D;AA0B9C,QAAA,kBAAkB,GAAG,IAAA,qBAAa,EAA2B,SAAS,CAAC,CAAC;AAErF,IAAM,eAAe,GAAwB,EAAE,CAAC;AAEhD;;;;;GAKG;AACH,IAAM,UAAU,GAAG,IAAI,GAAG,CAAC;IACzB,QAAQ;IACR,UAAU;IACV,aAAa;IACb,OAAO;IACP,KAAK;IACL,KAAK;IACL,MAAM;IACN,UAAU;IACV,MAAM;IACN,MAAM;IACN,OAAO;CACR,CAAC,CAAC;AAEH,IAAM,UAAU,GAAG,UAAC,IAAa,IAAK,OAAA,CAAC,IAAI,IAAI,UAAU,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,IAAI,CAAC,EAAhD,CAAgD,CAAC;AAEvF,0DAA0D;AACnD,IAAM,oBAAoB,GAAG,UAAC,IAAa;;IAChD,IAAM,KAAK,GAAG,MAAA,IAAA,kBAAU,EAAC,0BAAkB,CAAC,0CAAE,KAAK,CAAC;IACpD,OAAO,IAAA,eAAO,EACZ;QACE,OAAA,CAAC,KAAK,CAAC,CAAC,CAAC,eAAe;YACxB,CAAC,CAAC,IAAI,CAAC,CAAC;gBACN,KAAK,CAAC,MAAM,CAAC,UAAC,IAAI,IAAK,OAAA,CAAC,IAAI,CAAC,SAAS,IAAI,UAAU,CAAC,IAAI,CAAC,SAAS,CAAC,KAAK,UAAU,CAAC,IAAI,CAAC,EAAlE,CAAkE,CAAC;gBAC5F,CAAC,CAAC,KAAK;IAHP,CAGO,EACT,CAAC,KAAK,EAAE,IAAI,CAAC,CACd,CAAC;AACJ,CAAC,CAAC;AAVW,QAAA,oBAAoB,wBAU/B"}
|
|
@@ -1,72 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* The words of the form's field editors: choices, lists, files, objects, binary values and the help that lists a
|
|
3
|
-
* field's values. A host that translates its interface gives its own (`setReqraftLabels`); the rest stay English.
|
|
4
|
-
*/
|
|
5
|
-
export interface IFieldLabels {
|
|
6
|
-
/** A choice field with nothing to choose from. */
|
|
7
|
-
noDataAvailable: string;
|
|
8
|
-
/** A choice field with nothing chosen, where it has no placeholder of its own. */
|
|
9
|
-
pleaseSelect: string;
|
|
10
|
-
/** The mark of the item a field holds, in the list of its choices. */
|
|
11
|
-
chosen: string;
|
|
12
|
-
/** The heading of the dialog that lists a field's choices. */
|
|
13
|
-
selectFromItems: string;
|
|
14
|
-
/** The heading of a field's choices drawn as radios / checkboxes, where the field has no name. */
|
|
15
|
-
selectOne: string;
|
|
16
|
-
selectOneOrMore: string;
|
|
17
|
-
/** The picker of a field's saved values and the server's suggestions. */
|
|
18
|
-
savedAndSuggestedValues: string;
|
|
19
|
-
/** The tabs of a file field. */
|
|
20
|
-
uploadAFile: string;
|
|
21
|
-
buildAFile: string;
|
|
22
|
-
/** The text alternative of an uploaded image. */
|
|
23
|
-
uploadedFile: string;
|
|
24
|
-
/** The hover of an uploaded file, to replace it: `extensions` are the file types it takes ("JSON or YAML"). */
|
|
25
|
-
uploadDifferentFile: (extensions: string) => string;
|
|
26
|
-
clickOrDropFiles: string;
|
|
27
|
-
/** A list's controls. */
|
|
28
|
-
edit: string;
|
|
29
|
-
remove: string;
|
|
30
|
-
saveChanges: string;
|
|
31
|
-
addItem: string;
|
|
32
|
-
cancelEditing: string;
|
|
33
|
-
removeItem: string;
|
|
34
|
-
/** The button that adds an item to a list, for the list's name where it has one. */
|
|
35
|
-
addNewItem: (name: string | undefined) => string;
|
|
36
|
-
/** Why a field's schema is not shown: `schema` is its name. */
|
|
37
|
-
schemaNotLoaded: (schema: string) => string;
|
|
38
|
-
/** What a binary value can be written as, in its field. */
|
|
39
|
-
binaryPlaceholder: string;
|
|
40
|
-
/** The text box of a binary field. */
|
|
41
|
-
binaryValuePlaceholder: string;
|
|
42
|
-
/** A field of a type no editor draws. */
|
|
43
|
-
unknownType: string;
|
|
44
|
-
/** The control of a field that can be null. */
|
|
45
|
-
setAsNull: string;
|
|
46
|
-
unsetNull: string;
|
|
47
|
-
/** The rendered half of a markdown field. */
|
|
48
|
-
preview: string;
|
|
49
|
-
/** An object written as text: keep or drop what was typed. */
|
|
50
|
-
save: string;
|
|
51
|
-
discard: string;
|
|
52
|
-
/** Why typed text cannot be kept: `format` is what it must be ("JSON", "YAML"). */
|
|
53
|
-
notValid: (format: string) => string;
|
|
54
|
-
/** The tabs of an object field. */
|
|
55
|
-
editorTab: string;
|
|
56
|
-
textTab: string;
|
|
57
|
-
/** Start an empty list or object in an object field. */
|
|
58
|
-
newList: string;
|
|
59
|
-
newObject: string;
|
|
60
|
-
/** The heading of the window a field is edited in, full screen. */
|
|
61
|
-
focusedEditing: string;
|
|
62
|
-
/** The heading of the values a field holds one of, and of those it offers where it takes others too. */
|
|
63
|
-
allowedValues: string;
|
|
64
|
-
suggestedValues: string;
|
|
65
|
-
/** The columns of that list. */
|
|
66
|
-
valueColumn: string;
|
|
67
|
-
nameColumn: string;
|
|
68
|
-
descriptionColumn: string;
|
|
69
|
-
}
|
|
70
|
-
/** The English words, the ones a host gets when it gives none. */
|
|
71
|
-
export declare const DEFAULT_FIELD_LABELS: IFieldLabels;
|
|
72
|
-
//# sourceMappingURL=labels.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"labels.d.ts","sourceRoot":"","sources":["../../../../src/components/form/fields/labels.ts"],"names":[],"mappings":"AAEA;;;GAGG;AACH,MAAM,WAAW,YAAY;IAC3B,kDAAkD;IAClD,eAAe,EAAE,MAAM,CAAC;IACxB,kFAAkF;IAClF,YAAY,EAAE,MAAM,CAAC;IACrB,sEAAsE;IACtE,MAAM,EAAE,MAAM,CAAC;IACf,8DAA8D;IAC9D,eAAe,EAAE,MAAM,CAAC;IACxB,kGAAkG;IAClG,SAAS,EAAE,MAAM,CAAC;IAClB,eAAe,EAAE,MAAM,CAAC;IACxB,yEAAyE;IACzE,uBAAuB,EAAE,MAAM,CAAC;IAChC,gCAAgC;IAChC,WAAW,EAAE,MAAM,CAAC;IACpB,UAAU,EAAE,MAAM,CAAC;IACnB,iDAAiD;IACjD,YAAY,EAAE,MAAM,CAAC;IACrB,+GAA+G;IAC/G,mBAAmB,EAAE,CAAC,UAAU,EAAE,MAAM,KAAK,MAAM,CAAC;IACpD,gBAAgB,EAAE,MAAM,CAAC;IACzB,yBAAyB;IACzB,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,EAAE,MAAM,CAAC;IACf,WAAW,EAAE,MAAM,CAAC;IACpB,OAAO,EAAE,MAAM,CAAC;IAChB,aAAa,EAAE,MAAM,CAAC;IACtB,UAAU,EAAE,MAAM,CAAC;IACnB,oFAAoF;IACpF,UAAU,EAAE,CAAC,IAAI,EAAE,MAAM,GAAG,SAAS,KAAK,MAAM,CAAC;IACjD,+DAA+D;IAC/D,eAAe,EAAE,CAAC,MAAM,EAAE,MAAM,KAAK,MAAM,CAAC;IAC5C,2DAA2D;IAC3D,iBAAiB,EAAE,MAAM,CAAC;IAC1B,sCAAsC;IACtC,sBAAsB,EAAE,MAAM,CAAC;IAC/B,yCAAyC;IACzC,WAAW,EAAE,MAAM,CAAC;IACpB,+CAA+C;IAC/C,SAAS,EAAE,MAAM,CAAC;IAClB,SAAS,EAAE,MAAM,CAAC;IAClB,6CAA6C;IAC7C,OAAO,EAAE,MAAM,CAAC;IAChB,8DAA8D;IAC9D,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,MAAM,CAAC;IAChB,mFAAmF;IACnF,QAAQ,EAAE,CAAC,MAAM,EAAE,MAAM,KAAK,MAAM,CAAC;IACrC,mCAAmC;IACnC,SAAS,EAAE,MAAM,CAAC;IAClB,OAAO,EAAE,MAAM,CAAC;IAChB,wDAAwD;IACxD,OAAO,EAAE,MAAM,CAAC;IAChB,SAAS,EAAE,MAAM,CAAC;IAClB,mEAAmE;IACnE,cAAc,EAAE,MAAM,CAAC;IACvB,wGAAwG;IACxG,aAAa,EAAE,MAAM,CAAC;IACtB,eAAe,EAAE,MAAM,CAAC;IACxB,gCAAgC;IAChC,WAAW,EAAE,MAAM,CAAC;IACpB,UAAU,EAAE,MAAM,CAAC;IACnB,iBAAiB,EAAE,MAAM,CAAC;CAC3B;AAED,kEAAkE;AAClE,eAAO,MAAM,oBAAoB,EAAE,YAwClC,CAAC"}
|
|
@@ -1,47 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
// Copyright 2026 Qore Technologies, s.r.o.
|
|
3
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
-
exports.DEFAULT_FIELD_LABELS = void 0;
|
|
5
|
-
/** The English words, the ones a host gets when it gives none. */
|
|
6
|
-
exports.DEFAULT_FIELD_LABELS = {
|
|
7
|
-
noDataAvailable: 'No data available',
|
|
8
|
-
pleaseSelect: 'Please select',
|
|
9
|
-
chosen: 'Chosen',
|
|
10
|
-
selectFromItems: 'Select from items',
|
|
11
|
-
selectOne: 'Select one:',
|
|
12
|
-
selectOneOrMore: 'Select one or more:',
|
|
13
|
-
savedAndSuggestedValues: 'Saved & suggested values',
|
|
14
|
-
uploadAFile: 'Upload a file',
|
|
15
|
-
buildAFile: 'Build a file',
|
|
16
|
-
uploadedFile: 'Uploaded file',
|
|
17
|
-
uploadDifferentFile: function (extensions) { return "Click here to upload a different ".concat(extensions, " file"); },
|
|
18
|
-
clickOrDropFiles: 'Click or drop files here to upload',
|
|
19
|
-
edit: 'Edit',
|
|
20
|
-
remove: 'Remove',
|
|
21
|
-
saveChanges: 'Save changes',
|
|
22
|
-
addItem: 'Add item',
|
|
23
|
-
cancelEditing: 'Cancel editing',
|
|
24
|
-
removeItem: 'Remove item',
|
|
25
|
-
addNewItem: function (name) { return "Add new item ".concat(name ? "for \"".concat(name, "\"") : ''); },
|
|
26
|
-
schemaNotLoaded: function (schema) { return "The schema \"".concat(schema, "\" could not be loaded."); },
|
|
27
|
-
binaryPlaceholder: 'Base64, 0x hex, or data: URL',
|
|
28
|
-
binaryValuePlaceholder: 'Base64-encoded binary value',
|
|
29
|
-
unknownType: 'Unknown type!',
|
|
30
|
-
setAsNull: 'Set as null',
|
|
31
|
-
unsetNull: 'Unset null',
|
|
32
|
-
preview: 'Preview',
|
|
33
|
-
save: 'Save',
|
|
34
|
-
discard: 'Discard',
|
|
35
|
-
notValid: function (format) { return "Not a valid ".concat(format); },
|
|
36
|
-
editorTab: 'Editor',
|
|
37
|
-
textTab: 'Text',
|
|
38
|
-
newList: 'New list',
|
|
39
|
-
newObject: 'New object',
|
|
40
|
-
focusedEditing: 'Focused editing',
|
|
41
|
-
allowedValues: 'Allowed values',
|
|
42
|
-
suggestedValues: 'Suggested values',
|
|
43
|
-
valueColumn: 'Value',
|
|
44
|
-
nameColumn: 'Name',
|
|
45
|
-
descriptionColumn: 'Description',
|
|
46
|
-
};
|
|
47
|
-
//# sourceMappingURL=labels.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"labels.js","sourceRoot":"","sources":["../../../../src/components/form/fields/labels.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