@qoretechnologies/reqraft 0.10.78 → 0.10.79-pr.145.g447ecec
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/Description/AllowedValuesHelp.d.ts +7 -7
- package/dist/components/Description/AllowedValuesHelp.d.ts.map +1 -1
- package/dist/components/Description/AllowedValuesHelp.js +13 -10
- package/dist/components/Description/AllowedValuesHelp.js.map +1 -1
- package/dist/components/Description/describedControl.d.ts +1 -1
- package/dist/components/Description/describedControl.js +1 -1
- package/dist/components/Description/index.d.ts.map +1 -1
- package/dist/components/Description/index.js +22 -4
- package/dist/components/Description/index.js.map +1 -1
- package/dist/components/FocusedEditing/index.d.ts.map +1 -1
- package/dist/components/FocusedEditing/index.js +3 -1
- package/dist/components/FocusedEditing/index.js.map +1 -1
- package/dist/components/codeSize/index.d.ts +11 -3
- package/dist/components/codeSize/index.d.ts.map +1 -1
- package/dist/components/codeSize/index.js +24 -8
- package/dist/components/codeSize/index.js.map +1 -1
- package/dist/components/colorValue/colorValue.d.ts +4 -4
- package/dist/components/colorValue/colorValue.d.ts.map +1 -1
- package/dist/components/colorValue/colorValue.js +32 -41
- package/dist/components/colorValue/colorValue.js.map +1 -1
- package/dist/components/colorValue/index.js +1 -1
- package/dist/components/colorValue/index.js.map +1 -1
- package/dist/components/composer/Composer.d.ts +18 -2
- package/dist/components/composer/Composer.d.ts.map +1 -1
- package/dist/components/composer/Composer.js +57 -29
- package/dist/components/composer/Composer.js.map +1 -1
- package/dist/components/composer/labels.d.ts +24 -0
- package/dist/components/composer/labels.d.ts.map +1 -0
- package/dist/components/composer/labels.js +16 -0
- package/dist/components/composer/labels.js.map +1 -0
- package/dist/components/dpqlEditor/DpqlEditor.js +3 -3
- package/dist/components/dpqlEditor/DpqlEditor.js.map +1 -1
- package/dist/components/dpqlEditor/dpqlCompletions.d.ts +4 -4
- package/dist/components/dpqlEditor/dpqlCompletions.d.ts.map +1 -1
- package/dist/components/dpqlEditor/dpqlCompletions.js +10 -10
- package/dist/components/dpqlEditor/dpqlCompletions.js.map +1 -1
- package/dist/components/dpqlEditor/dpqlHelpers.d.ts +2 -2
- package/dist/components/dpqlEditor/dpqlHelpers.js +6 -6
- package/dist/components/dpqlEditor/dpqlHelpers.js.map +1 -1
- package/dist/components/dpqlEditor/dpqlInserter.d.ts.map +1 -1
- package/dist/components/dpqlEditor/dpqlInserter.js +1 -2
- package/dist/components/dpqlEditor/dpqlInserter.js.map +1 -1
- package/dist/components/dpqlEditor/dpqlTags.d.ts +1 -1
- package/dist/components/dpqlEditor/dpqlTags.js +4 -4
- package/dist/components/dpqlEditor/dpqlTags.js.map +1 -1
- package/dist/components/dpqlEditor/types.d.ts +7 -7
- package/dist/components/dpqlEditor/useDpqlSession.d.ts +1 -1
- package/dist/components/dpqlEditor/useDpqlSession.d.ts.map +1 -1
- package/dist/components/dpqlEditor/useDpqlSession.js +2 -2
- package/dist/components/dpqlEditor/useDpqlSession.js.map +1 -1
- package/dist/components/form/engine/CompactRow.d.ts.map +1 -1
- package/dist/components/form/engine/CompactRow.js +243 -87
- package/dist/components/form/engine/CompactRow.js.map +1 -1
- package/dist/components/form/engine/CompactToolbar.d.ts.map +1 -1
- package/dist/components/form/engine/CompactToolbar.js +73 -21
- package/dist/components/form/engine/CompactToolbar.js.map +1 -1
- package/dist/components/form/engine/DefaultsNote.d.ts +32 -0
- package/dist/components/form/engine/DefaultsNote.d.ts.map +1 -0
- package/dist/components/form/engine/DefaultsNote.js +33 -0
- package/dist/components/form/engine/DefaultsNote.js.map +1 -0
- package/dist/components/form/engine/FieldMessageDetails.d.ts +17 -0
- package/dist/components/form/engine/FieldMessageDetails.d.ts.map +1 -0
- package/dist/components/form/engine/FieldMessageDetails.js +24 -0
- package/dist/components/form/engine/FieldMessageDetails.js.map +1 -0
- package/dist/components/form/engine/FormEngine.d.ts +125 -5
- package/dist/components/form/engine/FormEngine.d.ts.map +1 -1
- package/dist/components/form/engine/FormEngine.js +800 -257
- package/dist/components/form/engine/FormEngine.js.map +1 -1
- package/dist/components/form/engine/FormFieldsSkeleton.d.ts +1 -1
- package/dist/components/form/engine/HiddenFieldsNote.d.ts +1 -1
- package/dist/components/form/engine/HiddenFieldsNote.js +1 -1
- package/dist/components/form/engine/ItemAttention.d.ts +12 -0
- package/dist/components/form/engine/ItemAttention.d.ts.map +1 -0
- package/dist/components/form/engine/ItemAttention.js +33 -0
- package/dist/components/form/engine/ItemAttention.js.map +1 -0
- package/dist/components/form/engine/OptionFieldMessages.d.ts +35 -2
- package/dist/components/form/engine/OptionFieldMessages.d.ts.map +1 -1
- package/dist/components/form/engine/OptionFieldMessages.js +46 -10
- package/dist/components/form/engine/OptionFieldMessages.js.map +1 -1
- package/dist/components/form/engine/OptionsHelpDialog.js +3 -3
- package/dist/components/form/engine/OptionsHelpDialog.js.map +1 -1
- package/dist/components/form/engine/ReadReveal.d.ts +26 -0
- package/dist/components/form/engine/ReadReveal.d.ts.map +1 -0
- package/dist/components/form/engine/ReadReveal.js +52 -0
- package/dist/components/form/engine/ReadReveal.js.map +1 -0
- package/dist/components/form/engine/_structuredData/SchemaDataView.d.ts +11 -1
- package/dist/components/form/engine/_structuredData/SchemaDataView.d.ts.map +1 -1
- package/dist/components/form/engine/_structuredData/SchemaDataView.js +96 -19
- package/dist/components/form/engine/_structuredData/SchemaDataView.js.map +1 -1
- package/dist/components/form/engine/cardHeaderPin.d.ts +59 -0
- package/dist/components/form/engine/cardHeaderPin.d.ts.map +1 -0
- package/dist/components/form/engine/cardHeaderPin.js +137 -0
- package/dist/components/form/engine/cardHeaderPin.js.map +1 -0
- package/dist/components/form/engine/compactRowContext.d.ts +19 -3
- package/dist/components/form/engine/compactRowContext.d.ts.map +1 -1
- package/dist/components/form/engine/compactRowContext.js.map +1 -1
- package/dist/components/form/engine/compactRowStyles.d.ts +32 -6
- package/dist/components/form/engine/compactRowStyles.d.ts.map +1 -1
- package/dist/components/form/engine/compactRowStyles.js +128 -60
- package/dist/components/form/engine/compactRowStyles.js.map +1 -1
- package/dist/components/form/engine/compactToolbarColors.d.ts +1 -1
- package/dist/components/form/engine/compactToolbarColors.js +1 -1
- package/dist/components/form/engine/compactToolbarContext.d.ts +9 -0
- package/dist/components/form/engine/compactToolbarContext.d.ts.map +1 -1
- package/dist/components/form/engine/compactToolbarContext.js.map +1 -1
- package/dist/components/form/engine/formAppearance.d.ts +96 -0
- package/dist/components/form/engine/formAppearance.d.ts.map +1 -0
- package/dist/components/form/engine/formAppearance.js +156 -0
- package/dist/components/form/engine/formAppearance.js.map +1 -0
- package/dist/components/form/engine/operatorSummary.d.ts +2 -2
- package/dist/components/form/engine/operatorSummary.js +2 -2
- package/dist/components/form/engine/readFirst.d.ts +47 -3
- package/dist/components/form/engine/readFirst.d.ts.map +1 -1
- package/dist/components/form/engine/readFirst.js +43 -9
- package/dist/components/form/engine/readFirst.js.map +1 -1
- package/dist/components/form/engine/readFirstColors.d.ts +1 -1
- package/dist/components/form/engine/readFirstColors.js +1 -1
- package/dist/components/form/engine/revealRow.d.ts +20 -4
- package/dist/components/form/engine/revealRow.d.ts.map +1 -1
- package/dist/components/form/engine/revealRow.js +37 -8
- package/dist/components/form/engine/revealRow.js.map +1 -1
- package/dist/components/form/engine/rowFocus.d.ts +9 -1
- package/dist/components/form/engine/rowFocus.d.ts.map +1 -1
- package/dist/components/form/engine/rowFocus.js +17 -4
- package/dist/components/form/engine/rowFocus.js.map +1 -1
- package/dist/components/form/engine/rowLabelled.d.ts +9 -0
- package/dist/components/form/engine/rowLabelled.d.ts.map +1 -0
- package/dist/components/form/engine/rowLabelled.js +12 -0
- package/dist/components/form/engine/rowLabelled.js.map +1 -0
- package/dist/components/form/engine/rowPlaces.d.ts +43 -0
- package/dist/components/form/engine/rowPlaces.d.ts.map +1 -0
- package/dist/components/form/engine/rowPlaces.js +163 -0
- package/dist/components/form/engine/rowPlaces.js.map +1 -0
- package/dist/components/form/engine/variants/focusDemo.js +1 -1
- package/dist/components/form/engine/variants/focusDemo.js.map +1 -1
- package/dist/components/form/engine/variants/variantModel.d.ts +1 -1
- package/dist/components/form/engine/variants/variantModel.d.ts.map +1 -1
- package/dist/components/form/engine/variants/variantModel.js +2 -2
- package/dist/components/form/engine/variants/variantModel.js.map +1 -1
- package/dist/components/form/engine/variants/variantParts.js +3 -2
- package/dist/components/form/engine/variants/variantParts.js.map +1 -1
- package/dist/components/form/expressions/DpqlRendering.d.ts.map +1 -1
- package/dist/components/form/expressions/DpqlRendering.js +5 -3
- package/dist/components/form/expressions/DpqlRendering.js.map +1 -1
- package/dist/components/form/expressions/ExpressionField.d.ts +9 -11
- package/dist/components/form/expressions/ExpressionField.d.ts.map +1 -1
- package/dist/components/form/expressions/ExpressionField.js +26 -24
- package/dist/components/form/expressions/ExpressionField.js.map +1 -1
- package/dist/components/form/expressions/argumentPresence.d.ts +1 -1
- package/dist/components/form/expressions/argumentPresence.js +1 -1
- package/dist/components/form/expressions/builder/argumentDetail.d.ts.map +1 -1
- package/dist/components/form/expressions/builder/argumentDetail.js +5 -2
- package/dist/components/form/expressions/builder/argumentDetail.js.map +1 -1
- package/dist/components/form/expressions/builder/argumentLabel.d.ts +4 -2
- package/dist/components/form/expressions/builder/argumentLabel.d.ts.map +1 -1
- package/dist/components/form/expressions/builder/argumentLabel.js +69 -29
- package/dist/components/form/expressions/builder/argumentLabel.js.map +1 -1
- package/dist/components/form/expressions/builder/argumentSlot.d.ts.map +1 -1
- package/dist/components/form/expressions/builder/argumentSlot.js +3 -2
- package/dist/components/form/expressions/builder/argumentSlot.js.map +1 -1
- package/dist/components/form/expressions/builder/argumentWrapper.d.ts.map +1 -1
- package/dist/components/form/expressions/builder/argumentWrapper.js +11 -7
- package/dist/components/form/expressions/builder/argumentWrapper.js.map +1 -1
- package/dist/components/form/expressions/builder/confirmMismatchedTypesModal.d.ts +1 -1
- package/dist/components/form/expressions/builder/confirmMismatchedTypesModal.d.ts.map +1 -1
- package/dist/components/form/expressions/builder/confirmMismatchedTypesModal.js +15 -10
- package/dist/components/form/expressions/builder/confirmMismatchedTypesModal.js.map +1 -1
- package/dist/components/form/expressions/builder/confirmUnsupportedTypeModal.d.ts.map +1 -1
- package/dist/components/form/expressions/builder/confirmUnsupportedTypeModal.js +4 -2
- package/dist/components/form/expressions/builder/confirmUnsupportedTypeModal.js.map +1 -1
- package/dist/components/form/expressions/builder/index.d.ts +9 -4
- package/dist/components/form/expressions/builder/index.d.ts.map +1 -1
- package/dist/components/form/expressions/builder/index.js +120 -75
- package/dist/components/form/expressions/builder/index.js.map +1 -1
- package/dist/components/form/expressions/builder/item.d.ts.map +1 -1
- package/dist/components/form/expressions/builder/item.js +4 -2
- package/dist/components/form/expressions/builder/item.js.map +1 -1
- package/dist/components/form/expressions/builder/moveToPositionStrip.d.ts +1 -1
- package/dist/components/form/expressions/builder/moveToPositionStrip.d.ts.map +1 -1
- package/dist/components/form/expressions/builder/moveToPositionStrip.js +8 -7
- package/dist/components/form/expressions/builder/moveToPositionStrip.js.map +1 -1
- package/dist/components/form/expressions/builder/renderTemplate.d.ts.map +1 -1
- package/dist/components/form/expressions/builder/renderTemplate.js +3 -1
- package/dist/components/form/expressions/builder/renderTemplate.js.map +1 -1
- package/dist/components/form/expressions/dpqlMockRecordPath.js +2 -2
- package/dist/components/form/expressions/dpqlMockRecordPath.js.map +1 -1
- package/dist/components/form/expressions/expressionOperands.js +1 -1
- package/dist/components/form/expressions/fieldPath.js +1 -1
- package/dist/components/form/expressions/fieldPath.js.map +1 -1
- package/dist/components/form/expressions/labels.d.ts +143 -0
- package/dist/components/form/expressions/labels.d.ts.map +1 -0
- package/dist/components/form/expressions/labels.js +123 -0
- package/dist/components/form/expressions/labels.js.map +1 -0
- package/dist/components/form/expressions/loneValue.d.ts +1 -1
- package/dist/components/form/expressions/loneValue.js +1 -1
- package/dist/components/form/expressions/mockExpressions.js +2 -2
- package/dist/components/form/expressions/mockExpressions.js.map +1 -1
- package/dist/components/form/expressions/renderExpressionToText.d.ts.map +1 -1
- package/dist/components/form/expressions/renderExpressionToText.js +16 -1
- package/dist/components/form/expressions/renderExpressionToText.js.map +1 -1
- package/dist/components/form/expressions/types.d.ts +2 -2
- package/dist/components/form/expressions/useExpressionType.js +1 -1
- package/dist/components/form/expressions/useExpressionType.js.map +1 -1
- package/dist/components/form/fields/ChoiceGroupHeading.d.ts +22 -0
- package/dist/components/form/fields/ChoiceGroupHeading.d.ts.map +1 -0
- package/dist/components/form/fields/ChoiceGroupHeading.js +40 -0
- package/dist/components/form/fields/ChoiceGroupHeading.js.map +1 -0
- package/dist/components/form/fields/Field.d.ts +9 -2
- package/dist/components/form/fields/Field.d.ts.map +1 -1
- package/dist/components/form/fields/Field.js +20 -15
- package/dist/components/form/fields/Field.js.map +1 -1
- package/dist/components/form/fields/allowed-values/AllowedValues.d.ts +11 -1
- package/dist/components/form/fields/allowed-values/AllowedValues.d.ts.map +1 -1
- package/dist/components/form/fields/allowed-values/AllowedValues.js +42 -18
- package/dist/components/form/fields/allowed-values/AllowedValues.js.map +1 -1
- package/dist/components/form/fields/allowed-values/choicePicture.d.ts +3 -3
- package/dist/components/form/fields/allowed-values/choicePicture.js +3 -3
- package/dist/components/form/fields/allowed-values/savedValues.d.ts +30 -0
- package/dist/components/form/fields/allowed-values/savedValues.d.ts.map +1 -0
- package/dist/components/form/fields/allowed-values/savedValues.js +39 -0
- package/dist/components/form/fields/allowed-values/savedValues.js.map +1 -0
- package/dist/components/form/fields/array/ArrayAuto.d.ts.map +1 -1
- package/dist/components/form/fields/array/ArrayAuto.js +32 -15
- package/dist/components/form/fields/array/ArrayAuto.js.map +1 -1
- package/dist/components/form/fields/array/ArrayAutoField.d.ts.map +1 -1
- package/dist/components/form/fields/array/ArrayAutoField.js +22 -20
- package/dist/components/form/fields/array/ArrayAutoField.js.map +1 -1
- package/dist/components/form/fields/auto/AutoFormField.d.ts +12 -1
- package/dist/components/form/fields/auto/AutoFormField.d.ts.map +1 -1
- package/dist/components/form/fields/auto/AutoFormField.js +59 -29
- package/dist/components/form/fields/auto/AutoFormField.js.map +1 -1
- package/dist/components/form/fields/auto/hostEditorValue.d.ts +1 -1
- package/dist/components/form/fields/auto/hostEditorValue.js +1 -1
- package/dist/components/form/fields/binary/Binary.d.ts.map +1 -1
- package/dist/components/form/fields/binary/Binary.js +7 -2
- package/dist/components/form/fields/binary/Binary.js.map +1 -1
- package/dist/components/form/fields/boolean/Boolean.d.ts +8 -2
- package/dist/components/form/fields/boolean/Boolean.d.ts.map +1 -1
- package/dist/components/form/fields/boolean/Boolean.js +9 -3
- package/dist/components/form/fields/boolean/Boolean.js.map +1 -1
- package/dist/components/form/fields/codeFont.d.ts +12 -0
- package/dist/components/form/fields/codeFont.d.ts.map +1 -0
- package/dist/components/form/fields/codeFont.js +26 -0
- package/dist/components/form/fields/codeFont.js.map +1 -0
- package/dist/components/form/fields/color/Color.d.ts +1 -1
- package/dist/components/form/fields/color/Color.d.ts.map +1 -1
- package/dist/components/form/fields/color/Color.js +12 -10
- package/dist/components/form/fields/color/Color.js.map +1 -1
- package/dist/components/form/fields/date/Date.d.ts +7 -1
- package/dist/components/form/fields/date/Date.d.ts.map +1 -1
- package/dist/components/form/fields/date/Date.js +4 -2
- package/dist/components/form/fields/date/Date.js.map +1 -1
- package/dist/components/form/fields/emittedValues.d.ts +1 -1
- package/dist/components/form/fields/emittedValues.js +1 -1
- package/dist/components/form/fields/file/File.d.ts +1 -1
- package/dist/components/form/fields/file/File.d.ts.map +1 -1
- package/dist/components/form/fields/file/File.js +18 -6
- package/dist/components/form/fields/file/File.js.map +1 -1
- package/dist/components/form/fields/labels.d.ts +81 -0
- package/dist/components/form/fields/labels.d.ts.map +1 -0
- package/dist/components/form/fields/labels.js +52 -0
- package/dist/components/form/fields/labels.js.map +1 -0
- package/dist/components/form/fields/long-string/LongString.d.ts +7 -1
- package/dist/components/form/fields/long-string/LongString.d.ts.map +1 -1
- package/dist/components/form/fields/long-string/LongString.js +19 -9
- package/dist/components/form/fields/long-string/LongString.js.map +1 -1
- package/dist/components/form/fields/markdown/Markdown.d.ts.map +1 -1
- package/dist/components/form/fields/markdown/Markdown.js +3 -1
- package/dist/components/form/fields/markdown/Markdown.js.map +1 -1
- package/dist/components/form/fields/multi-select/MultiSelectFormField.js +1 -1
- package/dist/components/form/fields/multi-select/MultiSelectFormField.js.map +1 -1
- package/dist/components/form/fields/number/Number.d.ts +6 -3
- package/dist/components/form/fields/number/Number.d.ts.map +1 -1
- package/dist/components/form/fields/number/Number.js +24 -10
- package/dist/components/form/fields/number/Number.js.map +1 -1
- package/dist/components/form/fields/object/Object.d.ts +36 -1
- package/dist/components/form/fields/object/Object.d.ts.map +1 -1
- package/dist/components/form/fields/object/Object.js +145 -19
- package/dist/components/form/fields/object/Object.js.map +1 -1
- package/dist/components/form/fields/pendingEdit.d.ts +1 -1
- package/dist/components/form/fields/pendingEdit.js +1 -1
- package/dist/components/form/fields/radio-group/RadioGroup.d.ts.map +1 -1
- package/dist/components/form/fields/radio-group/RadioGroup.js +13 -7
- package/dist/components/form/fields/radio-group/RadioGroup.js.map +1 -1
- package/dist/components/form/fields/rich-text/RichText.d.ts +1 -1
- package/dist/components/form/fields/rich-text/RichText.d.ts.map +1 -1
- package/dist/components/form/fields/rich-text/RichText.js +15 -12
- package/dist/components/form/fields/rich-text/RichText.js.map +1 -1
- package/dist/components/form/fields/rich-text/useTemplateTags.d.ts +3 -1
- package/dist/components/form/fields/rich-text/useTemplateTags.d.ts.map +1 -1
- package/dist/components/form/fields/rich-text/useTemplateTags.js +9 -3
- package/dist/components/form/fields/rich-text/useTemplateTags.js.map +1 -1
- package/dist/components/form/fields/schema-definition/CatalogLeafForm.d.ts.map +1 -1
- package/dist/components/form/fields/schema-definition/CatalogLeafForm.js +11 -9
- package/dist/components/form/fields/schema-definition/CatalogLeafForm.js.map +1 -1
- package/dist/components/form/fields/schema-definition/CatalogNodeEditor.d.ts +1 -1
- package/dist/components/form/fields/schema-definition/CatalogNodeEditor.d.ts.map +1 -1
- package/dist/components/form/fields/schema-definition/CatalogNodeEditor.js +42 -30
- package/dist/components/form/fields/schema-definition/CatalogNodeEditor.js.map +1 -1
- package/dist/components/form/fields/schema-definition/Hint.d.ts +4 -3
- package/dist/components/form/fields/schema-definition/Hint.d.ts.map +1 -1
- package/dist/components/form/fields/schema-definition/Hint.js +10 -2
- package/dist/components/form/fields/schema-definition/Hint.js.map +1 -1
- package/dist/components/form/fields/schema-definition/InlineValidationBanner.d.ts.map +1 -1
- package/dist/components/form/fields/schema-definition/InlineValidationBanner.js +3 -1
- package/dist/components/form/fields/schema-definition/InlineValidationBanner.js.map +1 -1
- package/dist/components/form/fields/schema-definition/Loader.d.ts.map +1 -1
- package/dist/components/form/fields/schema-definition/Loader.js +4 -2
- package/dist/components/form/fields/schema-definition/Loader.js.map +1 -1
- package/dist/components/form/fields/schema-definition/MigrationsTab.d.ts.map +1 -1
- package/dist/components/form/fields/schema-definition/MigrationsTab.js +31 -26
- package/dist/components/form/fields/schema-definition/MigrationsTab.js.map +1 -1
- package/dist/components/form/fields/schema-definition/TableEditor.d.ts.map +1 -1
- package/dist/components/form/fields/schema-definition/TableEditor.js +3 -1
- package/dist/components/form/fields/schema-definition/TableEditor.js.map +1 -1
- package/dist/components/form/fields/schema-definition/TablesTab.d.ts.map +1 -1
- package/dist/components/form/fields/schema-definition/TablesTab.js +25 -23
- package/dist/components/form/fields/schema-definition/TablesTab.js.map +1 -1
- package/dist/components/form/fields/schema-definition/index.d.ts.map +1 -1
- package/dist/components/form/fields/schema-definition/index.js +21 -15
- package/dist/components/form/fields/schema-definition/index.js.map +1 -1
- package/dist/components/form/fields/schema-definition/labels.d.ts +123 -0
- package/dist/components/form/fields/schema-definition/labels.d.ts.map +1 -0
- package/dist/components/form/fields/schema-definition/labels.js +113 -0
- package/dist/components/form/fields/schema-definition/labels.js.map +1 -0
- package/dist/components/form/fields/schema-definition/mockCatalog.d.ts +1 -1
- package/dist/components/form/fields/schema-definition/referenceSuggestions.d.ts +1 -1
- package/dist/components/form/fields/schema-definition/types.d.ts +2 -2
- package/dist/components/form/fields/schema-definition/types.js +1 -1
- package/dist/components/form/fields/select/Select.d.ts +11 -5
- package/dist/components/form/fields/select/Select.d.ts.map +1 -1
- package/dist/components/form/fields/select/Select.js +18 -11
- package/dist/components/form/fields/select/Select.js.map +1 -1
- package/dist/components/form/fields/select/SelectCollection.d.ts +28 -3
- package/dist/components/form/fields/select/SelectCollection.d.ts.map +1 -1
- package/dist/components/form/fields/select/SelectCollection.js +40 -9
- package/dist/components/form/fields/select/SelectCollection.js.map +1 -1
- package/dist/components/form/fields/select/unavailableRow.d.ts +1 -1
- package/dist/components/form/fields/select/unavailableRow.js +1 -1
- package/dist/components/form/fields/template/ExampleValueModal.d.ts.map +1 -1
- package/dist/components/form/fields/template/ExampleValueModal.js +4 -1
- package/dist/components/form/fields/template/ExampleValueModal.js.map +1 -1
- package/dist/components/form/fields/template/TemplateBrowser.d.ts.map +1 -1
- package/dist/components/form/fields/template/TemplateBrowser.js +6 -4
- package/dist/components/form/fields/template/TemplateBrowser.js.map +1 -1
- package/dist/components/form/fields/template/TemplateField.d.ts +24 -5
- package/dist/components/form/fields/template/TemplateField.d.ts.map +1 -1
- package/dist/components/form/fields/template/TemplateField.js +117 -99
- package/dist/components/form/fields/template/TemplateField.js.map +1 -1
- package/dist/components/form/fields/template/TemplatePicker.d.ts +9 -3
- package/dist/components/form/fields/template/TemplatePicker.d.ts.map +1 -1
- package/dist/components/form/fields/template/TemplatePicker.js +62 -34
- package/dist/components/form/fields/template/TemplatePicker.js.map +1 -1
- package/dist/components/form/fields/template/referenceNames.d.ts +2 -2
- package/dist/components/form/fields/template/templatesListProps.d.ts +11 -0
- package/dist/components/form/fields/template/templatesListProps.d.ts.map +1 -0
- package/dist/components/form/fields/template/templatesListProps.js +37 -0
- package/dist/components/form/fields/template/templatesListProps.js.map +1 -0
- package/dist/components/form/fields/template/writtenAsText.d.ts +2 -2
- package/dist/components/form/fields/template/writtenAsText.js +2 -2
- package/dist/components/form/index.d.ts +2 -0
- package/dist/components/form/index.d.ts.map +1 -1
- package/dist/components/form/index.js +2 -0
- package/dist/components/form/index.js.map +1 -1
- package/dist/components/form/typeSentenceForm.js +1 -1
- package/dist/components/imageLightbox/ImageLightbox.d.ts.map +1 -1
- package/dist/components/imageLightbox/ImageLightbox.js +11 -7
- package/dist/components/imageLightbox/ImageLightbox.js.map +1 -1
- package/dist/components/log/Log.d.ts +1 -1
- package/dist/components/log/Log.d.ts.map +1 -1
- package/dist/components/log/Log.js +22 -19
- package/dist/components/log/Log.js.map +1 -1
- package/dist/components/log/labels.d.ts +25 -0
- package/dist/components/log/labels.d.ts.map +1 -0
- package/dist/components/log/labels.js +22 -0
- package/dist/components/log/labels.js.map +1 -0
- package/dist/components/menu/Menu.d.ts.map +1 -1
- package/dist/components/menu/Menu.js +3 -1
- package/dist/components/menu/Menu.js.map +1 -1
- package/dist/components/qonsoleSmartInput/useQonsoleSession.d.ts.map +1 -1
- package/dist/components/qonsoleSmartInput/useQonsoleSession.js +3 -2
- package/dist/components/qonsoleSmartInput/useQonsoleSession.js.map +1 -1
- package/dist/components/smartEditor/CompletionMenu.d.ts +1 -1
- package/dist/components/smartEditor/CompletionMenu.d.ts.map +1 -1
- package/dist/components/smartEditor/CompletionMenu.js +25 -19
- package/dist/components/smartEditor/CompletionMenu.js.map +1 -1
- package/dist/components/smartEditor/SmartEditor.d.ts.map +1 -1
- package/dist/components/smartEditor/SmartEditor.js +21 -23
- package/dist/components/smartEditor/SmartEditor.js.map +1 -1
- package/dist/components/smartEditor/caretBox.d.ts +1 -1
- package/dist/components/smartEditor/caretBox.js +1 -1
- package/dist/components/smartEditor/completionStyle.d.ts +21 -6
- package/dist/components/smartEditor/completionStyle.d.ts.map +1 -1
- package/dist/components/smartEditor/completionStyle.js +46 -23
- package/dist/components/smartEditor/completionStyle.js.map +1 -1
- package/dist/components/smartEditor/contextTitle.d.ts +2 -2
- package/dist/components/smartEditor/contextTitle.js +2 -2
- package/dist/components/smartEditor/editingAids.d.ts +2 -2
- package/dist/components/smartEditor/editingAids.js +2 -2
- package/dist/components/smartEditor/index.js +1 -1
- package/dist/components/smartEditor/index.js.map +1 -1
- package/dist/components/smartEditor/templateCompletions.d.ts +7 -7
- package/dist/components/smartEditor/templateCompletions.d.ts.map +1 -1
- package/dist/components/smartEditor/templateCompletions.js +14 -15
- package/dist/components/smartEditor/templateCompletions.js.map +1 -1
- package/dist/components/smartEditor/typedReferences.d.ts +1 -1
- package/dist/components/smartEditor/typedReferences.js +3 -3
- package/dist/components/smartEditor/typedReferences.js.map +1 -1
- package/dist/components/smartEditor/types.d.ts +8 -8
- package/dist/components/smartEditor/useEditingAids.js +1 -1
- package/dist/components/smartEditor/useEditingAids.js.map +1 -1
- package/dist/components/smartEditor/useLspAutocomplete.d.ts +9 -4
- package/dist/components/smartEditor/useLspAutocomplete.d.ts.map +1 -1
- package/dist/components/smartEditor/useLspAutocomplete.js +92 -38
- package/dist/components/smartEditor/useLspAutocomplete.js.map +1 -1
- package/dist/components/smartEditor/useLspHover.d.ts.map +1 -1
- package/dist/components/smartEditor/useLspHover.js +4 -5
- package/dist/components/smartEditor/useLspHover.js.map +1 -1
- package/dist/components/smartEditor/useTabCameIn.d.ts +1 -1
- package/dist/components/smartEditor/useTabCameIn.js +1 -1
- package/dist/components/supportTicket/AttachmentChips.d.ts.map +1 -1
- package/dist/components/supportTicket/AttachmentChips.js +5 -3
- package/dist/components/supportTicket/AttachmentChips.js.map +1 -1
- package/dist/components/supportTicket/InterfaceReferenceTags.d.ts +10 -3
- package/dist/components/supportTicket/InterfaceReferenceTags.d.ts.map +1 -1
- package/dist/components/supportTicket/InterfaceReferenceTags.js +9 -8
- package/dist/components/supportTicket/InterfaceReferenceTags.js.map +1 -1
- package/dist/components/supportTicket/ReferencePicker.d.ts +3 -2
- package/dist/components/supportTicket/ReferencePicker.d.ts.map +1 -1
- package/dist/components/supportTicket/ReferencePicker.js +36 -26
- package/dist/components/supportTicket/ReferencePicker.js.map +1 -1
- package/dist/components/supportTicket/TicketHeader.d.ts.map +1 -1
- package/dist/components/supportTicket/TicketHeader.js +6 -3
- package/dist/components/supportTicket/TicketHeader.js.map +1 -1
- package/dist/components/supportTicket/TicketMetaTags.d.ts +19 -12
- package/dist/components/supportTicket/TicketMetaTags.d.ts.map +1 -1
- package/dist/components/supportTicket/TicketMetaTags.js +57 -6
- package/dist/components/supportTicket/TicketMetaTags.js.map +1 -1
- package/dist/components/supportTicket/TicketReplyBox.d.ts +3 -2
- package/dist/components/supportTicket/TicketReplyBox.d.ts.map +1 -1
- package/dist/components/supportTicket/TicketReplyBox.js +41 -19
- package/dist/components/supportTicket/TicketReplyBox.js.map +1 -1
- package/dist/components/supportTicket/WorkspaceAccessStatus.d.ts +10 -2
- package/dist/components/supportTicket/WorkspaceAccessStatus.d.ts.map +1 -1
- package/dist/components/supportTicket/WorkspaceAccessStatus.js +45 -17
- package/dist/components/supportTicket/WorkspaceAccessStatus.js.map +1 -1
- package/dist/components/supportTicket/accessMeta.d.ts +6 -1
- package/dist/components/supportTicket/accessMeta.d.ts.map +1 -1
- package/dist/components/supportTicket/accessMeta.js +83 -65
- package/dist/components/supportTicket/accessMeta.js.map +1 -1
- package/dist/components/supportTicket/attachmentAccess.d.ts.map +1 -1
- package/dist/components/supportTicket/attachmentAccess.js +14 -26
- package/dist/components/supportTicket/attachmentAccess.js.map +1 -1
- package/dist/components/supportTicket/fileToAttachment.d.ts.map +1 -1
- package/dist/components/supportTicket/fileToAttachment.js +4 -1
- package/dist/components/supportTicket/fileToAttachment.js.map +1 -1
- package/dist/components/supportTicket/labels.d.ts +159 -0
- package/dist/components/supportTicket/labels.d.ts.map +1 -0
- package/dist/components/supportTicket/labels.js +216 -0
- package/dist/components/supportTicket/labels.js.map +1 -0
- package/dist/components/supportTicket/meta.d.ts +35 -6
- package/dist/components/supportTicket/meta.d.ts.map +1 -1
- package/dist/components/supportTicket/meta.js +100 -73
- package/dist/components/supportTicket/meta.js.map +1 -1
- package/dist/components/supportTicket/ticketAttentionInks.d.ts +23 -0
- package/dist/components/supportTicket/ticketAttentionInks.d.ts.map +1 -0
- package/dist/components/supportTicket/ticketAttentionInks.js +42 -0
- package/dist/components/supportTicket/ticketAttentionInks.js.map +1 -0
- package/dist/components/supportTicket/ticketModel.d.ts +6 -2
- package/dist/components/supportTicket/ticketModel.d.ts.map +1 -1
- package/dist/components/supportTicket/useLoadedImages.d.ts +10 -0
- package/dist/components/supportTicket/useLoadedImages.d.ts.map +1 -1
- package/dist/components/supportTicket/useLoadedImages.js +64 -1
- package/dist/components/supportTicket/useLoadedImages.js.map +1 -1
- package/dist/components/ticketReferences/TicketReferences.d.ts.map +1 -1
- package/dist/components/ticketReferences/TicketReferences.js +57 -46
- package/dist/components/ticketReferences/TicketReferences.js.map +1 -1
- package/dist/components/ticketThread/TicketThread.d.ts +22 -2
- package/dist/components/ticketThread/TicketThread.d.ts.map +1 -1
- package/dist/components/ticketThread/TicketThread.js +61 -39
- package/dist/components/ticketThread/TicketThread.js.map +1 -1
- package/dist/components/ticketThread/index.d.ts +1 -1
- package/dist/components/ticketThread/index.d.ts.map +1 -1
- package/dist/components/ticketThread/index.js +2 -1
- package/dist/components/ticketThread/index.js.map +1 -1
- package/dist/helpers/allowedValues.d.ts +1 -1
- package/dist/helpers/allowedValues.d.ts.map +1 -1
- package/dist/helpers/allowedValues.js +12 -5
- package/dist/helpers/allowedValues.js.map +1 -1
- package/dist/helpers/common.d.ts +4 -0
- package/dist/helpers/common.d.ts.map +1 -1
- package/dist/helpers/common.js +11 -7
- package/dist/helpers/common.js.map +1 -1
- package/dist/helpers/domProps.js +1 -1
- package/dist/helpers/expressions.d.ts +7 -7
- package/dist/helpers/expressions.d.ts.map +1 -1
- package/dist/helpers/expressions.js +15 -20
- package/dist/helpers/expressions.js.map +1 -1
- package/dist/helpers/fieldDescription.d.ts +16 -0
- package/dist/helpers/fieldDescription.d.ts.map +1 -0
- package/dist/helpers/fieldDescription.js +40 -0
- package/dist/helpers/fieldDescription.js.map +1 -0
- package/dist/helpers/hoveringPointer.d.ts +1 -1
- package/dist/helpers/hoveringPointer.js +1 -1
- package/dist/helpers/markdownText.d.ts +9 -0
- package/dist/helpers/markdownText.d.ts.map +1 -1
- package/dist/helpers/markdownText.js +50 -3
- package/dist/helpers/markdownText.js.map +1 -1
- package/dist/helpers/noDescription.d.ts +9 -5
- package/dist/helpers/noDescription.d.ts.map +1 -1
- package/dist/helpers/noDescription.js +18 -7
- package/dist/helpers/noDescription.js.map +1 -1
- package/dist/helpers/optionUiTypes.d.ts +3 -3
- package/dist/helpers/options.d.ts +2 -2
- package/dist/helpers/options.d.ts.map +1 -1
- package/dist/helpers/options.js +11 -8
- package/dist/helpers/options.js.map +1 -1
- package/dist/helpers/qorusTypeCatalogue.d.ts +9 -9
- package/dist/helpers/qorusTypeCatalogue.js +11 -11
- package/dist/helpers/qorusTypeCatalogue.js.map +1 -1
- package/dist/helpers/readableColors.d.ts +9 -1
- package/dist/helpers/readableColors.d.ts.map +1 -1
- package/dist/helpers/readableColors.js +13 -2
- package/dist/helpers/readableColors.js.map +1 -1
- package/dist/helpers/recordFieldReference.js +1 -1
- package/dist/helpers/recordFieldReference.js.map +1 -1
- package/dist/helpers/reqraftLabels.d.ts +129 -7
- package/dist/helpers/reqraftLabels.d.ts.map +1 -1
- package/dist/helpers/reqraftLabels.js +101 -21
- package/dist/helpers/reqraftLabels.js.map +1 -1
- package/dist/helpers/sentenceCase.d.ts +9 -0
- package/dist/helpers/sentenceCase.d.ts.map +1 -0
- package/dist/helpers/sentenceCase.js +22 -0
- package/dist/helpers/sentenceCase.js.map +1 -0
- package/dist/helpers/singleLineString.d.ts.map +1 -1
- package/dist/helpers/singleLineString.js +1 -0
- package/dist/helpers/singleLineString.js.map +1 -1
- package/dist/helpers/templateCatalogue.d.ts +2 -2
- package/dist/helpers/templateCatalogue.js +3 -3
- package/dist/helpers/templateCatalogueContext.d.ts +1 -1
- package/dist/helpers/templateCatalogueContext.js +1 -1
- package/dist/helpers/templateItems.d.ts +15 -1
- package/dist/helpers/templateItems.d.ts.map +1 -1
- package/dist/helpers/templateItems.js +59 -2
- package/dist/helpers/templateItems.js.map +1 -1
- package/dist/helpers/templateListLabels.d.ts +9 -0
- package/dist/helpers/templateListLabels.d.ts.map +1 -1
- package/dist/helpers/templateListLabels.js +10 -0
- package/dist/helpers/templateListLabels.js.map +1 -1
- package/dist/helpers/templateTree.d.ts +9 -9
- package/dist/helpers/templateTree.js +14 -14
- package/dist/helpers/templateType.d.ts +1 -1
- package/dist/helpers/templateType.js +1 -1
- package/dist/helpers/templates.d.ts +53 -9
- package/dist/helpers/templates.d.ts.map +1 -1
- package/dist/helpers/templates.js +165 -44
- package/dist/helpers/templates.js.map +1 -1
- package/dist/helpers/validationLabels.d.ts +193 -0
- package/dist/helpers/validationLabels.d.ts.map +1 -0
- package/dist/helpers/validationLabels.js +213 -0
- package/dist/helpers/validationLabels.js.map +1 -0
- package/dist/helpers/validations.d.ts +16 -4
- package/dist/helpers/validations.d.ts.map +1 -1
- package/dist/helpers/validations.js +211 -209
- package/dist/helpers/validations.js.map +1 -1
- package/dist/helpers/webLink.d.ts +2 -2
- package/dist/helpers/webLink.js +2 -2
- package/dist/hooks/useDestructiveButtonProps.d.ts +22 -0
- package/dist/hooks/useDestructiveButtonProps.d.ts.map +1 -0
- package/dist/hooks/useDestructiveButtonProps.js +46 -0
- package/dist/hooks/useDestructiveButtonProps.js.map +1 -0
- package/dist/hooks/useEqualValue.d.ts +14 -0
- package/dist/hooks/useEqualValue.d.ts.map +1 -0
- package/dist/hooks/useEqualValue.js +27 -0
- package/dist/hooks/useEqualValue.js.map +1 -0
- package/dist/hooks/useFetch/useFetch.js +1 -1
- package/dist/hooks/useReadableIntentShade.d.ts +1 -1
- package/dist/hooks/useReadableIntentShade.js +1 -1
- package/dist/hooks/useReadableOpacity.d.ts +1 -1
- package/dist/hooks/useReadableOpacity.js +1 -1
- package/dist/hooks/useTemplates.d.ts +0 -7
- package/dist/hooks/useTemplates.d.ts.map +1 -1
- package/dist/hooks/useTemplates.js +25 -12
- package/dist/hooks/useTemplates.js.map +1 -1
- package/dist/hooks/useWebSocket/useWebSocket.d.ts.map +1 -1
- package/dist/hooks/useWebSocket/useWebSocket.js +6 -5
- package/dist/hooks/useWebSocket/useWebSocket.js.map +1 -1
- package/dist/index.d.ts +4 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +20 -3
- package/dist/index.js.map +1 -1
- package/dist/providers/StorageProvider.d.ts +1 -1
- package/dist/providers/StorageProvider.js +1 -1
- package/dist/stores/currentUser/currentUser.d.ts +5 -5
- package/dist/stores/currentUser/currentUser.d.ts.map +1 -1
- package/dist/tracking/ui/ExperimentCard.d.ts +3 -3
- package/dist/tracking/ui/ExperimentCard.d.ts.map +1 -1
- package/dist/tracking/ui/ExperimentCard.js +34 -46
- package/dist/tracking/ui/ExperimentCard.js.map +1 -1
- package/dist/tracking/ui/ExperimentsOverlay.d.ts +3 -3
- package/dist/tracking/ui/ExperimentsOverlay.d.ts.map +1 -1
- package/dist/tracking/ui/ExperimentsOverlay.js +8 -6
- package/dist/tracking/ui/ExperimentsOverlay.js.map +1 -1
- package/dist/tracking/ui/card.d.ts +9 -13
- package/dist/tracking/ui/card.d.ts.map +1 -1
- package/dist/tracking/ui/card.js +96 -107
- package/dist/tracking/ui/card.js.map +1 -1
- package/dist/tracking/ui/client.d.ts +0 -6
- package/dist/tracking/ui/client.d.ts.map +1 -1
- package/dist/tracking/ui/client.js +9 -2
- package/dist/tracking/ui/client.js.map +1 -1
- package/dist/tracking/ui/labels.d.ts +198 -0
- package/dist/tracking/ui/labels.d.ts.map +1 -0
- package/dist/tracking/ui/labels.js +171 -0
- package/dist/tracking/ui/labels.js.map +1 -0
- package/dist/tracking/ui/readable.js +1 -1
- package/dist/utils/fetch.d.ts +1 -1
- package/dist/utils/fetch.js +1 -1
- package/package.json +2 -1
|
@@ -5,7 +5,7 @@ export type TTicketPriority = 'low' | 'normal' | 'high' | 'urgent';
|
|
|
5
5
|
export type TTicketCategory = 'bug' | 'question' | 'billing' | 'feature' | 'other';
|
|
6
6
|
export type TTicketAuditAction = 'replied' | 'noted' | 'status_changed' | 'assigned' | 'updated' | 'viewed' | 'attachment_downloaded' | 'workspace_viewed' | 'access_requested' | 'access_granted' | 'access_extended' | 'access_revoked' | 'access_expired' | 'session_launched';
|
|
7
7
|
/**
|
|
8
|
-
* The `system_event` a system message in a ticket thread may carry
|
|
8
|
+
* The `system_event` a system message in a ticket thread may carry: the
|
|
9
9
|
* delegated-access lifecycle, written by the control plane as a thread message so the
|
|
10
10
|
* customer and the staff member see the same record in the conversation. A thread
|
|
11
11
|
* renders a known event with its own mark; an unknown one falls back to a plain line.
|
|
@@ -17,25 +17,33 @@ export type TTicketMessageAuthor = 'customer' | 'staff' | 'system';
|
|
|
17
17
|
export type TTicketViewerRole = 'customer' | 'staff';
|
|
18
18
|
export interface ITicketEnumMeta {
|
|
19
19
|
label: string;
|
|
20
|
+
/** A status's or a priority's tint in the classic look (`TicketMetaTags appearance='classic'`). A calm surface
|
|
21
|
+
* does not read it: a status or a priority takes a color only when it needs the person looking at it
|
|
22
|
+
* (`ticketStatusAttention`, `ticketPriorityAttention`). Categories and audit actions have none (`ITicketMark`). */
|
|
20
23
|
intent: TReqoreIntent;
|
|
21
24
|
icon: IReqoreIconName;
|
|
22
25
|
/** Audience-specific label for the customer view; falls back to `label` (the
|
|
23
26
|
* staff / neutral wording). Only a few values differ by audience. */
|
|
24
27
|
customerLabel?: string;
|
|
25
28
|
}
|
|
29
|
+
/**
|
|
30
|
+
* A value said by its word and its icon, with no color: a category is not a verdict and an audit action is a record,
|
|
31
|
+
* so neither takes one (a color has a job, or it is gray). They carried a tint nothing drew.
|
|
32
|
+
*/
|
|
33
|
+
export type ITicketMark = Omit<ITicketEnumMeta, 'intent'>;
|
|
26
34
|
export declare const TICKET_STATUS_META: Record<TTicketStatus, ITicketEnumMeta>;
|
|
27
35
|
export declare const TICKET_PRIORITY_META: Record<TTicketPriority, ITicketEnumMeta>;
|
|
28
|
-
export declare const TICKET_CATEGORY_META: Record<TTicketCategory,
|
|
36
|
+
export declare const TICKET_CATEGORY_META: Record<TTicketCategory, ITicketMark>;
|
|
29
37
|
/** Staff-only audit trail vocabulary (used by the admin-portal staff surface).
|
|
30
38
|
* These are exactly the actions the backend writes (qorus-api
|
|
31
39
|
* `QorusSaasTicketStore::insertAudit`): a public reply, an internal note, a
|
|
32
40
|
* status change, an assignment, or `updated` (a priority/category change). */
|
|
33
|
-
export declare const TICKET_AUDIT_ACTION_META: Record<TTicketAuditAction,
|
|
41
|
+
export declare const TICKET_AUDIT_ACTION_META: Record<TTicketAuditAction, ITicketMark>;
|
|
34
42
|
/** The mark for an audit action the server writes but this vocabulary has not caught up
|
|
35
43
|
* with: a muted, generic row that still names the action. It exists because the staff
|
|
36
44
|
* audit tab used to index `TICKET_AUDIT_ACTION_META` directly, and one unknown action
|
|
37
|
-
* took the whole tab down
|
|
38
|
-
export declare const UNKNOWN_TICKET_AUDIT_ACTION_META:
|
|
45
|
+
* took the whole tab down. */
|
|
46
|
+
export declare const UNKNOWN_TICKET_AUDIT_ACTION_META: ITicketMark;
|
|
39
47
|
/** A wire value humanised for reading: `attachment_downloaded` → "Attachment downloaded". */
|
|
40
48
|
export declare const humaniseWireValue: (value: string) => string;
|
|
41
49
|
/**
|
|
@@ -44,7 +52,7 @@ export declare const humaniseWireValue: (value: string) => string;
|
|
|
44
52
|
* humanised as the label, so a new server action renders as a readable row instead
|
|
45
53
|
* of failing the surface that lists it.
|
|
46
54
|
*/
|
|
47
|
-
export declare const ticketAuditActionMeta: (action: string) =>
|
|
55
|
+
export declare const ticketAuditActionMeta: (action: string) => ITicketMark;
|
|
48
56
|
/** How each delegated-access thread event renders: the mark on its system line or card. */
|
|
49
57
|
export declare const TICKET_SYSTEM_EVENT_META: Record<TTicketSystemEvent, ITicketEnumMeta>;
|
|
50
58
|
/** The generic mark for a system message with no event, or an event this vocabulary
|
|
@@ -55,6 +63,27 @@ export declare const ticketSystemEventMeta: (event?: string) => ITicketEnumMeta;
|
|
|
55
63
|
/** The status label for a given viewer — the customer sees "Awaiting your reply"
|
|
56
64
|
* where staff see "Awaiting customer"; all other values are audience-neutral. */
|
|
57
65
|
export declare const ticketStatusLabel: (status: TTicketStatus, viewerRole?: TTicketViewerRole) => string;
|
|
66
|
+
/**
|
|
67
|
+
* How much a ticket's state asks of the person looking at it, in the calm vocabulary every Qorus surface shares
|
|
68
|
+
* (a status is a dot and a word, and only what needs a person is colored): `bad` and `warn` need someone (red,
|
|
69
|
+
* amber), `good` is done (a little green), `live` is being worked, `idle` is closed, and `quiet` has nothing to
|
|
70
|
+
* report.
|
|
71
|
+
*
|
|
72
|
+
* Decided here once, for the IDE's support pages, the Qonsole ticket card and the staff portal's queue, which
|
|
73
|
+
* each kept their own copy, and for `TicketMetaTags`.
|
|
74
|
+
*/
|
|
75
|
+
export type TTicketAttention = 'bad' | 'warn' | 'good' | 'live' | 'quiet' | 'idle';
|
|
76
|
+
/**
|
|
77
|
+
* A status's attention for whoever is looking. The customer is needed only when the ticket waits on their reply;
|
|
78
|
+
* staff are needed by a new ticket, which waits for triage, and an open one is being worked. A closed ticket does
|
|
79
|
+
* nothing any more. With no viewer (a neutral surface) only a closed ticket differs.
|
|
80
|
+
*/
|
|
81
|
+
export declare const ticketStatusAttention: (status: TTicketStatus, viewerRole?: TTicketViewerRole) => TTicketAttention;
|
|
82
|
+
/** A priority describes the ticket, it is not the ticket's state now: it orders the queue, and it is a plain gray
|
|
83
|
+
* word, Urgent included, with no dot and no status color. Red and amber stay for what needs someone now (the
|
|
84
|
+
* ticket's status, `ticketStatusAttention`). An urgent priority was red with an alarm, a high one amber, so a
|
|
85
|
+
* ticket that was being handled read as failing. */
|
|
86
|
+
export declare const ticketPriorityAttention: (_priority: TTicketPriority) => TTicketAttention;
|
|
58
87
|
/** A reply may be sent while a ticket is in any state except `closed`. */
|
|
59
88
|
export declare const REPLYABLE_STATUSES: TTicketStatus[];
|
|
60
89
|
/** Whether a ticket can still be replied to (closed ⇒ no). */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"meta.d.ts","sourceRoot":"","sources":["../../../src/components/supportTicket/meta.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,+CAA+C,CAAC;AAC9E,OAAO,EAAE,eAAe,EAAE,MAAM,2CAA2C,CAAC;
|
|
1
|
+
{"version":3,"file":"meta.d.ts","sourceRoot":"","sources":["../../../src/components/supportTicket/meta.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,+CAA+C,CAAC;AAC9E,OAAO,EAAE,eAAe,EAAE,MAAM,2CAA2C,CAAC;AAa5E,MAAM,MAAM,aAAa,GAAG,KAAK,GAAG,MAAM,GAAG,mBAAmB,GAAG,UAAU,GAAG,QAAQ,CAAC;AACzF,MAAM,MAAM,eAAe,GAAG,KAAK,GAAG,QAAQ,GAAG,MAAM,GAAG,QAAQ,CAAC;AACnE,MAAM,MAAM,eAAe,GAAG,KAAK,GAAG,UAAU,GAAG,SAAS,GAAG,SAAS,GAAG,OAAO,CAAC;AACnF,MAAM,MAAM,kBAAkB,GAC1B,SAAS,GACT,OAAO,GACP,gBAAgB,GAChB,UAAU,GACV,SAAS,GAGT,QAAQ,GACR,uBAAuB,GAGvB,kBAAkB,GAClB,kBAAkB,GAClB,gBAAgB,GAChB,iBAAiB,GACjB,gBAAgB,GAChB,gBAAgB,GAChB,kBAAkB,CAAC;AAEvB;;;;;GAKG;AACH,MAAM,MAAM,kBAAkB,GAC1B,0BAA0B,GAC1B,wBAAwB,GACxB,yBAAyB,GACzB,2BAA2B,GAC3B,wBAAwB,GACxB,wBAAwB,CAAC;AAE7B,sFAAsF;AACtF,MAAM,MAAM,oBAAoB,GAAG,UAAU,GAAG,OAAO,GAAG,QAAQ,CAAC;AAEnE,qFAAqF;AACrF,MAAM,MAAM,iBAAiB,GAAG,UAAU,GAAG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AC;AAEjD;;;;;GAKG;AACH,MAAM,WAAW,kBAAkB;IACjC,IAAI,EAAE,eAAe,CAAC;IACtB,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAED,sFAAsF;AACtF,MAAM,MAAM,kBAAkB,GAAG,eAAe,GAAG,kBAAkB,CAAC;AAEtE,yEAAyE;AACzE,MAAM,MAAM,qBAAqB,GAAG,CAAC,IAAI,EAAE,MAAM,KAAK,kBAAkB,CAAC;AAEzE,kEAAkE;AAClE,eAAO,MAAM,mBAAmB,SAAU,kBAAkB,KAAG,kBACnB,CAAC;AAQ7C;;;;;;GAMG;AACH,eAAO,MAAM,yBAAyB,SAAU,MAAM,KAAG,MASxD,CAAC"}
|
|
@@ -11,61 +11,81 @@ var __assign = (this && this.__assign) || function () {
|
|
|
11
11
|
return __assign.apply(this, arguments);
|
|
12
12
|
};
|
|
13
13
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
14
|
-
exports.defaultInterfaceKindLabel = exports.toInterfaceKindMark = exports.defaultInterfaceIcon = exports.dedupeInterfaceReferences = exports.interfaceReferenceKey = exports.normalizeInterfaceKind = exports.isTicketReplyable = exports.REPLYABLE_STATUSES = exports.ticketStatusLabel = exports.ticketSystemEventMeta = exports.DEFAULT_TICKET_SYSTEM_EVENT_META = exports.TICKET_SYSTEM_EVENT_META = exports.ticketAuditActionMeta = exports.humaniseWireValue = exports.UNKNOWN_TICKET_AUDIT_ACTION_META = exports.TICKET_AUDIT_ACTION_META = exports.TICKET_CATEGORY_META = exports.TICKET_PRIORITY_META = exports.TICKET_STATUS_META = void 0;
|
|
14
|
+
exports.defaultInterfaceKindLabel = exports.toInterfaceKindMark = exports.defaultInterfaceIcon = exports.dedupeInterfaceReferences = exports.interfaceReferenceKey = exports.normalizeInterfaceKind = exports.isTicketReplyable = exports.REPLYABLE_STATUSES = exports.ticketPriorityAttention = exports.ticketStatusAttention = exports.ticketStatusLabel = exports.ticketSystemEventMeta = exports.DEFAULT_TICKET_SYSTEM_EVENT_META = exports.TICKET_SYSTEM_EVENT_META = exports.ticketAuditActionMeta = exports.humaniseWireValue = exports.UNKNOWN_TICKET_AUDIT_ACTION_META = exports.TICKET_AUDIT_ACTION_META = exports.TICKET_CATEGORY_META = exports.TICKET_PRIORITY_META = exports.TICKET_STATUS_META = void 0;
|
|
15
|
+
var reqraftLabels_1 = require("../../helpers/reqraftLabels");
|
|
16
|
+
/** A word-and-icon mark whose label is read from the host's words each time, as `worded`'s is. */
|
|
17
|
+
var marked = function (word, icon) { return ({
|
|
18
|
+
get label() {
|
|
19
|
+
return word((0, reqraftLabels_1.reqraftLabels)().supportTicket);
|
|
20
|
+
},
|
|
21
|
+
icon: icon,
|
|
22
|
+
}); };
|
|
23
|
+
/**
|
|
24
|
+
* A mark whose label is read from the host's words (`setReqraftLabels`) each time it is read, so a vocabulary kept
|
|
25
|
+
* in a module-level map still says the words given now.
|
|
26
|
+
*/
|
|
27
|
+
var worded = function (word, intent, icon) { return ({
|
|
28
|
+
get label() {
|
|
29
|
+
return word((0, reqraftLabels_1.reqraftLabels)().supportTicket);
|
|
30
|
+
},
|
|
31
|
+
intent: intent,
|
|
32
|
+
icon: icon,
|
|
33
|
+
}); };
|
|
15
34
|
exports.TICKET_STATUS_META = {
|
|
16
|
-
new: {
|
|
17
|
-
open: {
|
|
35
|
+
new: worded(function (words) { return words.statuses.new; }, 'info', 'SparklingLine'),
|
|
36
|
+
open: worded(function (words) { return words.statuses.open; }, 'pending', 'Chat3Line'),
|
|
18
37
|
awaiting_customer: {
|
|
19
|
-
label
|
|
20
|
-
|
|
38
|
+
get label() {
|
|
39
|
+
return (0, reqraftLabels_1.reqraftLabels)().supportTicket.statuses.awaiting_customer;
|
|
40
|
+
},
|
|
41
|
+
get customerLabel() {
|
|
42
|
+
return (0, reqraftLabels_1.reqraftLabels)().supportTicket.awaitingYourReply;
|
|
43
|
+
},
|
|
21
44
|
intent: 'warning',
|
|
22
45
|
icon: 'UserReceivedLine',
|
|
23
46
|
},
|
|
24
|
-
resolved: {
|
|
25
|
-
closed: {
|
|
47
|
+
resolved: worded(function (words) { return words.statuses.resolved; }, 'success', 'CheckLine'),
|
|
48
|
+
closed: worded(function (words) { return words.statuses.closed; }, 'muted', 'CloseCircleLine'),
|
|
26
49
|
};
|
|
27
50
|
exports.TICKET_PRIORITY_META = {
|
|
28
|
-
low: {
|
|
29
|
-
normal: {
|
|
30
|
-
high: {
|
|
31
|
-
|
|
51
|
+
low: worded(function (words) { return words.priorities.low; }, 'muted', 'ArrowDownLine'),
|
|
52
|
+
normal: worded(function (words) { return words.priorities.normal; }, 'info', 'SubtractLine'),
|
|
53
|
+
high: worded(function (words) { return words.priorities.high; }, 'warning', 'ArrowUpLine'),
|
|
54
|
+
// an ordering mark, as low's and high's: an alarm said the ticket was in trouble
|
|
55
|
+
urgent: worded(function (words) { return words.priorities.urgent; }, 'danger', 'ArrowUpDoubleLine'),
|
|
32
56
|
};
|
|
33
57
|
exports.TICKET_CATEGORY_META = {
|
|
34
|
-
bug: {
|
|
35
|
-
question: {
|
|
36
|
-
billing: {
|
|
37
|
-
feature:
|
|
38
|
-
other: {
|
|
58
|
+
bug: marked(function (words) { return words.categories.bug; }, 'BugLine'),
|
|
59
|
+
question: marked(function (words) { return words.categories.question; }, 'QuestionLine'),
|
|
60
|
+
billing: marked(function (words) { return words.categories.billing; }, 'BankCardLine'),
|
|
61
|
+
feature: marked(function (words) { return words.categories.feature; }, 'LightbulbLine'),
|
|
62
|
+
other: marked(function (words) { return words.categories.other; }, 'MoreLine'),
|
|
39
63
|
};
|
|
40
64
|
/** Staff-only audit trail vocabulary (used by the admin-portal staff surface).
|
|
41
65
|
* These are exactly the actions the backend writes (qorus-api
|
|
42
66
|
* `QorusSaasTicketStore::insertAudit`): a public reply, an internal note, a
|
|
43
67
|
* status change, an assignment, or `updated` (a priority/category change). */
|
|
44
68
|
exports.TICKET_AUDIT_ACTION_META = {
|
|
45
|
-
replied: {
|
|
46
|
-
noted:
|
|
47
|
-
status_changed:
|
|
48
|
-
assigned: {
|
|
49
|
-
updated: {
|
|
50
|
-
viewed: {
|
|
51
|
-
attachment_downloaded:
|
|
52
|
-
workspace_viewed:
|
|
53
|
-
access_requested:
|
|
54
|
-
access_granted:
|
|
55
|
-
access_extended:
|
|
56
|
-
access_revoked:
|
|
57
|
-
access_expired:
|
|
58
|
-
session_launched:
|
|
69
|
+
replied: marked(function (words) { return words.auditActions.replied; }, 'ReplyLine'),
|
|
70
|
+
noted: marked(function (words) { return words.auditActions.noted; }, 'StickyNoteLine'),
|
|
71
|
+
status_changed: marked(function (words) { return words.auditActions.status_changed; }, 'ExchangeLine'),
|
|
72
|
+
assigned: marked(function (words) { return words.auditActions.assigned; }, 'UserFollowLine'),
|
|
73
|
+
updated: marked(function (words) { return words.auditActions.updated; }, 'Edit2Line'),
|
|
74
|
+
viewed: marked(function (words) { return words.auditActions.viewed; }, 'EyeLine'),
|
|
75
|
+
attachment_downloaded: marked(function (words) { return words.auditActions.attachment_downloaded; }, 'Download2Line'),
|
|
76
|
+
workspace_viewed: marked(function (words) { return words.auditActions.workspace_viewed; }, 'Search2Line'),
|
|
77
|
+
access_requested: marked(function (words) { return words.auditActions.access_requested; }, 'ShieldUserLine'),
|
|
78
|
+
access_granted: marked(function (words) { return words.auditActions.access_granted; }, 'ShieldCheckLine'),
|
|
79
|
+
access_extended: marked(function (words) { return words.auditActions.access_extended; }, 'TimerLine'),
|
|
80
|
+
access_revoked: marked(function (words) { return words.auditActions.access_revoked; }, 'ShieldCrossLine'),
|
|
81
|
+
access_expired: marked(function (words) { return words.auditActions.access_expired; }, 'HourglassLine'),
|
|
82
|
+
session_launched: marked(function (words) { return words.auditActions.session_launched; }, 'ExternalLinkLine'),
|
|
59
83
|
};
|
|
60
84
|
/** The mark for an audit action the server writes but this vocabulary has not caught up
|
|
61
85
|
* with: a muted, generic row that still names the action. It exists because the staff
|
|
62
86
|
* audit tab used to index `TICKET_AUDIT_ACTION_META` directly, and one unknown action
|
|
63
|
-
* took the whole tab down
|
|
64
|
-
exports.UNKNOWN_TICKET_AUDIT_ACTION_META = {
|
|
65
|
-
label: 'Activity',
|
|
66
|
-
intent: 'muted',
|
|
67
|
-
icon: 'HistoryLine',
|
|
68
|
-
};
|
|
87
|
+
* took the whole tab down. */
|
|
88
|
+
exports.UNKNOWN_TICKET_AUDIT_ACTION_META = marked(function (words) { return words.activity; }, 'HistoryLine');
|
|
69
89
|
/** A wire value humanised for reading: `attachment_downloaded` → "Attachment downloaded". */
|
|
70
90
|
var humaniseWireValue = function (value) {
|
|
71
91
|
var words = value.replace(/[._-]+/g, ' ').trim();
|
|
@@ -85,24 +105,16 @@ var ticketAuditActionMeta = function (action) {
|
|
|
85
105
|
exports.ticketAuditActionMeta = ticketAuditActionMeta;
|
|
86
106
|
/** How each delegated-access thread event renders: the mark on its system line or card. */
|
|
87
107
|
exports.TICKET_SYSTEM_EVENT_META = {
|
|
88
|
-
'support_access.requested': {
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
},
|
|
93
|
-
'support_access.
|
|
94
|
-
'support_access.extended': { label: 'Workspace access extended', intent: 'info', icon: 'TimerLine' },
|
|
95
|
-
'support_access.first_used': { label: 'Workspace opened by support', intent: 'info', icon: 'EyeLine' },
|
|
96
|
-
'support_access.revoked': { label: 'Workspace access revoked', intent: 'danger', icon: 'ShieldCrossLine' },
|
|
97
|
-
'support_access.expired': { label: 'Workspace access expired', intent: 'muted', icon: 'HourglassLine' },
|
|
108
|
+
'support_access.requested': worded(function (words) { return words.systemEvents['support_access.requested']; }, 'info', 'ShieldUserLine'),
|
|
109
|
+
'support_access.granted': worded(function (words) { return words.systemEvents['support_access.granted']; }, 'success', 'ShieldCheckLine'),
|
|
110
|
+
'support_access.extended': worded(function (words) { return words.systemEvents['support_access.extended']; }, 'info', 'TimerLine'),
|
|
111
|
+
'support_access.first_used': worded(function (words) { return words.systemEvents['support_access.first_used']; }, 'info', 'EyeLine'),
|
|
112
|
+
'support_access.revoked': worded(function (words) { return words.systemEvents['support_access.revoked']; }, 'danger', 'ShieldCrossLine'),
|
|
113
|
+
'support_access.expired': worded(function (words) { return words.systemEvents['support_access.expired']; }, 'muted', 'HourglassLine'),
|
|
98
114
|
};
|
|
99
115
|
/** The generic mark for a system message with no event, or an event this vocabulary
|
|
100
116
|
* does not know: the plain informational line every system message used to be. */
|
|
101
|
-
exports.DEFAULT_TICKET_SYSTEM_EVENT_META = {
|
|
102
|
-
label: 'System',
|
|
103
|
-
intent: 'muted',
|
|
104
|
-
icon: 'InformationLine',
|
|
105
|
-
};
|
|
117
|
+
exports.DEFAULT_TICKET_SYSTEM_EVENT_META = worded(function (words) { return words.systemMessage; }, 'muted', 'InformationLine');
|
|
106
118
|
/** The mark for a system message's `system_event`, with the generic fallback. */
|
|
107
119
|
var ticketSystemEventMeta = function (event) {
|
|
108
120
|
return (event && exports.TICKET_SYSTEM_EVENT_META[event]) ||
|
|
@@ -116,6 +128,35 @@ var ticketStatusLabel = function (status, viewerRole) {
|
|
|
116
128
|
return viewerRole === 'customer' && meta.customerLabel ? meta.customerLabel : meta.label;
|
|
117
129
|
};
|
|
118
130
|
exports.ticketStatusLabel = ticketStatusLabel;
|
|
131
|
+
/**
|
|
132
|
+
* A status's attention for whoever is looking. The customer is needed only when the ticket waits on their reply;
|
|
133
|
+
* staff are needed by a new ticket, which waits for triage, and an open one is being worked. A closed ticket does
|
|
134
|
+
* nothing any more. With no viewer (a neutral surface) only a closed ticket differs.
|
|
135
|
+
*/
|
|
136
|
+
var ticketStatusAttention = function (status, viewerRole) {
|
|
137
|
+
if (status === 'closed') {
|
|
138
|
+
return 'idle';
|
|
139
|
+
}
|
|
140
|
+
if (viewerRole === 'customer') {
|
|
141
|
+
return status === 'awaiting_customer' ? 'warn' : 'quiet';
|
|
142
|
+
}
|
|
143
|
+
if (viewerRole === 'staff') {
|
|
144
|
+
return (status === 'new' ? 'warn'
|
|
145
|
+
: status === 'open' ? 'live'
|
|
146
|
+
: status === 'resolved' ? 'good'
|
|
147
|
+
: 'quiet');
|
|
148
|
+
}
|
|
149
|
+
return 'quiet';
|
|
150
|
+
};
|
|
151
|
+
exports.ticketStatusAttention = ticketStatusAttention;
|
|
152
|
+
/** A priority describes the ticket, it is not the ticket's state now: it orders the queue, and it is a plain gray
|
|
153
|
+
* word, Urgent included, with no dot and no status color. Red and amber stay for what needs someone now (the
|
|
154
|
+
* ticket's status, `ticketStatusAttention`). An urgent priority was red with an alarm, a high one amber, so a
|
|
155
|
+
* ticket that was being handled read as failing. */
|
|
156
|
+
// the priority is still asked for, so a caller keeps passing it should a level ever matter again
|
|
157
|
+
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
158
|
+
var ticketPriorityAttention = function (_priority) { return 'quiet'; };
|
|
159
|
+
exports.ticketPriorityAttention = ticketPriorityAttention;
|
|
119
160
|
/** A reply may be sent while a ticket is in any state except `closed`. */
|
|
120
161
|
exports.REPLYABLE_STATUSES = [
|
|
121
162
|
'new',
|
|
@@ -195,25 +236,11 @@ var toInterfaceKindMark = function (icon) {
|
|
|
195
236
|
return typeof icon === 'string' ? { icon: icon } : icon;
|
|
196
237
|
};
|
|
197
238
|
exports.toInterfaceKindMark = toInterfaceKindMark;
|
|
198
|
-
// The reading name for each interface kind
|
|
199
|
-
// is a wire value — it's what a host fetches with and what gets stored on the
|
|
200
|
-
// — so it must never be what the user reads.
|
|
201
|
-
//
|
|
202
|
-
//
|
|
203
|
-
var DEFAULT_INTERFACE_KIND_LABELS = {
|
|
204
|
-
workflow: 'Workflows',
|
|
205
|
-
service: 'Services',
|
|
206
|
-
job: 'Jobs',
|
|
207
|
-
fsm: 'Qogs',
|
|
208
|
-
qog: 'Qogs',
|
|
209
|
-
connection: 'Connections',
|
|
210
|
-
mapper: 'Mappers',
|
|
211
|
-
class: 'Classes',
|
|
212
|
-
'value-map': 'Value maps',
|
|
213
|
-
'ai-collection': 'AI collections',
|
|
214
|
-
'ai-endpoint': 'AI endpoints',
|
|
215
|
-
'ai-guardrail': 'AI guardrails',
|
|
216
|
-
};
|
|
239
|
+
// The reading name for each interface kind is a word of the host's (`supportTicket.interfaceKinds`). The kind id
|
|
240
|
+
// (`value-map`, `ai-collection`) is a wire value — it's what a host fetches with and what gets stored on the
|
|
241
|
+
// reference — so it must never be what the user reads. The names are plural because they name a category the user
|
|
242
|
+
// picks from, not a single interface. `fsm` reads "Qogs" like every other user-facing surface; the id stays `fsm`
|
|
243
|
+
// wherever a host still uses it.
|
|
217
244
|
/**
|
|
218
245
|
* Default reading name for an interface kind — "Value maps" for `value-map`. An
|
|
219
246
|
* unknown kind is humanised generically (separators to spaces, sentence case, a
|
|
@@ -222,12 +249,12 @@ var DEFAULT_INTERFACE_KIND_LABELS = {
|
|
|
222
249
|
* whole thing via the picker's `resolveKindLabel`.
|
|
223
250
|
*/
|
|
224
251
|
var defaultInterfaceKindLabel = function (kind) {
|
|
225
|
-
var
|
|
252
|
+
var words = (0, reqraftLabels_1.reqraftLabels)().supportTicket;
|
|
253
|
+
var known = words.interfaceKinds[kind];
|
|
226
254
|
if (known) {
|
|
227
255
|
return known;
|
|
228
256
|
}
|
|
229
|
-
|
|
230
|
-
return sentenceCase.endsWith('s') ? sentenceCase : "".concat(sentenceCase, "s");
|
|
257
|
+
return words.otherInterfaceKind((0, exports.humaniseWireValue)(kind));
|
|
231
258
|
};
|
|
232
259
|
exports.defaultInterfaceKindLabel = defaultInterfaceKindLabel;
|
|
233
260
|
//# sourceMappingURL=meta.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"meta.js","sourceRoot":"","sources":["../../../src/components/supportTicket/meta.ts"],"names":[],"mappings":";;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"meta.js","sourceRoot":"","sources":["../../../src/components/supportTicket/meta.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAEA,6DAA4D;AAyE5D,kGAAkG;AAClG,IAAM,MAAM,GAAG,UAAC,IAA6C,EAAE,IAAqB,IAAkB,OAAA,CAAC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nB,GAAG,EAAE,eAAe;IACpB,0EAA0E;IAC1E,GAAG,EAAE,WAAW;IAChB,UAAU,EAAE,WAAW;IACvB,MAAM,EAAE,SAAS;IACjB,KAAK,EAAE,WAAW;IAClB,WAAW,EAAE,cAAc;IAC3B,eAAe,EAAE,gBAAgB;IACjC,aAAa,EAAE,WAAW;IAC1B,cAAc,EAAE,YAAY;CAC7B,CAAC;AAEF,iFAAiF;AAC1E,IAAM,oBAAoB,GAAG,UAAC,IAAY,YAC/C,OAAA,MAAA,uBAAuB,CAAC,IAAI,CAAC,mCAAI,aAAa,CAAA,EAAA,CAAC;AADpC,QAAA,oBAAoB,wBACgB;AAmBjD,kEAAkE;AAC3D,IAAM,mBAAmB,GAAG,UAAC,IAAwB;IAC1D,OAAA,OAAO,IAAI,KAAK,QAAQ,CAAC,CAAC,CAAC,EAAE,IAAI,MAAA,EAAE,CAAC,CAAC,CAAC,IAAI;AAA1C,CAA0C,CAAC;AADhC,QAAA,mBAAmB,uBACa;AAE7C,iHAAiH;AACjH,6GAA6G;AAC7G,kHAAkH;AAClH,kHAAkH;AAClH,iCAAiC;AAEjC;;;;;;GAMG;AACI,IAAM,yBAAyB,GAAG,UAAC,IAAY;IACpD,IAAM,KAAK,GAAG,IAAA,6BAAa,GAAE,CAAC,aAAa,CAAC;IAC5C,IAAM,KAAK,GAAI,KAAK,CAAC,cAAkD,CAAC,IAAI,CAAC,CAAC;IAE9E,IAAI,KAAK,EAAE,CAAC;QACV,OAAO,KAAK,CAAC;IACf,CAAC;IAED,OAAO,KAAK,CAAC,kBAAkB,CAAC,IAAA,yBAAiB,EAAC,IAAI,CAAC,CAAC,CAAC;AAC3D,CAAC,CAAC;AATW,QAAA,yBAAyB,6BASpC"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { TTicketAttention } from './meta';
|
|
2
|
+
export interface ITicketAttentionInks {
|
|
3
|
+
/** what has gone wrong and needs a person (an urgent priority) */
|
|
4
|
+
bad: string;
|
|
5
|
+
/** what waits on the person looking (a reply, a triage, an access request, a grant about to end) */
|
|
6
|
+
warn: string;
|
|
7
|
+
/** a state nobody has to act on: the soft shade of the text */
|
|
8
|
+
quiet: string;
|
|
9
|
+
/** a fact rather than a state (a category, a separator, a mark beside a sentence): softer still */
|
|
10
|
+
fact: string;
|
|
11
|
+
}
|
|
12
|
+
/** Whether an attention asks the person looking for something: the only ones drawn in a color. */
|
|
13
|
+
export declare const ticketAttentionNeedsSomeone: (attention: TTicketAttention) => boolean;
|
|
14
|
+
/**
|
|
15
|
+
* The colors a ticket's attention is drawn in, for the calm look: the intent's shade that
|
|
16
|
+
* reads on this theme for what needs a person, a soft shade of the text for everything
|
|
17
|
+
* else. One home, so the ticket's words and the workspace-access line say "needs you" in
|
|
18
|
+
* the same amber.
|
|
19
|
+
*/
|
|
20
|
+
export declare const useTicketAttentionInks: () => ITicketAttentionInks;
|
|
21
|
+
/** The ink for one attention; `fact` picks the softer shade for what is not a state. */
|
|
22
|
+
export declare const ticketAttentionInk: (inks: ITicketAttentionInks, attention: TTicketAttention, fact?: boolean) => string;
|
|
23
|
+
//# sourceMappingURL=ticketAttentionInks.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ticketAttentionInks.d.ts","sourceRoot":"","sources":["../../../src/components/supportTicket/ticketAttentionInks.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,gBAAgB,EAAE,MAAM,QAAQ,CAAC;AAE1C,MAAM,WAAW,oBAAoB;IACnC,kEAAkE;IAClE,GAAG,EAAE,MAAM,CAAC;IACZ,oGAAoG;IACpG,IAAI,EAAE,MAAM,CAAC;IACb,+DAA+D;IAC/D,KAAK,EAAE,MAAM,CAAC;IACd,mGAAmG;IACnG,IAAI,EAAE,MAAM,CAAC;CACd;AAED,kGAAkG;AAClG,eAAO,MAAM,2BAA2B,cAAe,gBAAgB,KAAG,OAC7B,CAAC;AAE9C;;;;;GAKG;AACH,eAAO,MAAM,sBAAsB,QAAO,oBAczC,CAAC;AAEF,wFAAwF;AACxF,eAAO,MAAM,kBAAkB,SACvB,oBAAoB,aACf,gBAAgB,SACpB,OAAO,KACb,MAIW,CAAC"}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ticketAttentionInk = exports.useTicketAttentionInks = exports.ticketAttentionNeedsSomeone = void 0;
|
|
4
|
+
var colors_1 = require("@qoretechnologies/reqore/dist/helpers/colors");
|
|
5
|
+
var useTheme_1 = require("@qoretechnologies/reqore/dist/hooks/useTheme");
|
|
6
|
+
var react_1 = require("react");
|
|
7
|
+
var readableColors_1 = require("../../helpers/readableColors");
|
|
8
|
+
/** Whether an attention asks the person looking for something: the only ones drawn in a color. */
|
|
9
|
+
var ticketAttentionNeedsSomeone = function (attention) {
|
|
10
|
+
return attention === 'bad' || attention === 'warn';
|
|
11
|
+
};
|
|
12
|
+
exports.ticketAttentionNeedsSomeone = ticketAttentionNeedsSomeone;
|
|
13
|
+
/**
|
|
14
|
+
* The colors a ticket's attention is drawn in, for the calm look: the intent's shade that
|
|
15
|
+
* reads on this theme for what needs a person, a soft shade of the text for everything
|
|
16
|
+
* else. One home, so the ticket's words and the workspace-access line say "needs you" in
|
|
17
|
+
* the same amber.
|
|
18
|
+
*/
|
|
19
|
+
var useTicketAttentionInks = function () {
|
|
20
|
+
var theme = (0, useTheme_1.useReqoreTheme)();
|
|
21
|
+
return (0, react_1.useMemo)(function () {
|
|
22
|
+
var _a, _b;
|
|
23
|
+
var surfaces = (0, readableColors_1.getThemeSurfaces)(theme);
|
|
24
|
+
var text = (0, colors_1.getReadableColor)(theme);
|
|
25
|
+
return {
|
|
26
|
+
bad: (0, readableColors_1.getReadableShade)(((_a = theme.intents) === null || _a === void 0 ? void 0 : _a.danger) || '#c11c1c', surfaces),
|
|
27
|
+
warn: (0, readableColors_1.getReadableShade)(((_b = theme.intents) === null || _b === void 0 ? void 0 : _b.warning) || '#d17c29', surfaces),
|
|
28
|
+
quiet: (0, readableColors_1.getReadableFaded)(text, surfaces, 0.7),
|
|
29
|
+
fact: (0, readableColors_1.getReadableFaded)(text, surfaces, 0.55),
|
|
30
|
+
};
|
|
31
|
+
}, [theme]);
|
|
32
|
+
};
|
|
33
|
+
exports.useTicketAttentionInks = useTicketAttentionInks;
|
|
34
|
+
/** The ink for one attention; `fact` picks the softer shade for what is not a state. */
|
|
35
|
+
var ticketAttentionInk = function (inks, attention, fact) {
|
|
36
|
+
return attention === 'bad' ? inks.bad
|
|
37
|
+
: attention === 'warn' ? inks.warn
|
|
38
|
+
: fact ? inks.fact
|
|
39
|
+
: inks.quiet;
|
|
40
|
+
};
|
|
41
|
+
exports.ticketAttentionInk = ticketAttentionInk;
|
|
42
|
+
//# sourceMappingURL=ticketAttentionInks.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ticketAttentionInks.js","sourceRoot":"","sources":["../../../src/components/supportTicket/ticketAttentionInks.ts"],"names":[],"mappings":";;;AAAA,uEAAgF;AAChF,yEAA8E;AAC9E,+BAAgC;AAChC,+DAAoG;AAcpG,kGAAkG;AAC3F,IAAM,2BAA2B,GAAG,UAAC,SAA2B;IACrE,OAAA,SAAS,KAAK,KAAK,IAAI,SAAS,KAAK,MAAM;AAA3C,CAA2C,CAAC;AADjC,QAAA,2BAA2B,+BACM;AAE9C;;;;;GAKG;AACI,IAAM,sBAAsB,GAAG;IACpC,IAAM,KAAK,GAAG,IAAA,yBAAc,GAAE,CAAC;IAE/B,OAAO,IAAA,eAAO,EAAC;;QACb,IAAM,QAAQ,GAAG,IAAA,iCAAgB,EAAC,KAAK,CAAC,CAAC;QACzC,IAAM,IAAI,GAAG,IAAA,yBAAgB,EAAC,KAAK,CAAC,CAAC;QAErC,OAAO;YACL,GAAG,EAAE,IAAA,iCAAgB,EAAC,CAAA,MAAA,KAAK,CAAC,OAAO,0CAAE,MAAM,KAAI,SAAS,EAAE,QAAQ,CAAC;YACnE,IAAI,EAAE,IAAA,iCAAgB,EAAC,CAAA,MAAA,KAAK,CAAC,OAAO,0CAAE,OAAO,KAAI,SAAS,EAAE,QAAQ,CAAC;YACrE,KAAK,EAAE,IAAA,iCAAgB,EAAC,IAAI,EAAE,QAAQ,EAAE,GAAG,CAAC;YAC5C,IAAI,EAAE,IAAA,iCAAgB,EAAC,IAAI,EAAE,QAAQ,EAAE,IAAI,CAAC;SAC7C,CAAC;IACJ,CAAC,EAAE,CAAC,KAAK,CAAC,CAAC,CAAC;AACd,CAAC,CAAC;AAdW,QAAA,sBAAsB,0BAcjC;AAEF,wFAAwF;AACjF,IAAM,kBAAkB,GAAG,UAChC,IAA0B,EAC1B,SAA2B,EAC3B,IAAc;IAEd,OAAA,SAAS,KAAK,KAAK,CAAC,CAAC,CAAC,IAAI,CAAC,GAAG;QAC9B,CAAC,CAAC,SAAS,KAAK,MAAM,CAAC,CAAC,CAAC,IAAI,CAAC,IAAI;YAClC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,IAAI;gBAClB,CAAC,CAAC,IAAI,CAAC,KAAK;AAHZ,CAGY,CAAC;AARF,QAAA,kBAAkB,sBAQhB"}
|
|
@@ -39,7 +39,7 @@ export interface ITicketMessage {
|
|
|
39
39
|
/** interfaces referenced in this message, as `{kind, name}` snapshots */
|
|
40
40
|
referenced_interfaces?: IInterfaceReference[];
|
|
41
41
|
/**
|
|
42
|
-
* For a `system` message: the event it records
|
|
42
|
+
* For a `system` message: the event it records, e.g.
|
|
43
43
|
* `support_access.requested`. A thread renders a known event with its own mark, and the
|
|
44
44
|
* `support_access.requested` event as a card that can carry the customer's Grant action;
|
|
45
45
|
* absent on the plain system lines (status changes, assignments).
|
|
@@ -67,7 +67,11 @@ export interface ITicket {
|
|
|
67
67
|
priority: TTicketPriority;
|
|
68
68
|
category: TTicketCategory;
|
|
69
69
|
subscription_code: string;
|
|
70
|
-
/**
|
|
70
|
+
/**
|
|
71
|
+
* The principal the ticket was filed under: for a customer's ticket, the subscription code (a UUID), not the
|
|
72
|
+
* filer's name or email. Never shown as who the ticket is from: staff name the customer by `customer_name` /
|
|
73
|
+
* `customer_email` (`IStaffTicket`).
|
|
74
|
+
*/
|
|
71
75
|
created_by: string;
|
|
72
76
|
/** parent ticket UUID, when this continues a closed ticket */
|
|
73
77
|
parent_ticket_id?: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ticketModel.d.ts","sourceRoot":"","sources":["../../../src/components/supportTicket/ticketModel.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,mBAAmB,EAAE,eAAe,EAAE,oBAAoB,EAAE,eAAe,EAAE,aAAa,EAAE,MAAM,QAAQ,CAAC;AAwBzH,iEAAiE;AACjE,MAAM,WAAW,iBAAiB;IAChC,aAAa,EAAE,MAAM,CAAC;IACtB,QAAQ,EAAE,MAAM,CAAC;IACjB,YAAY,EAAE,MAAM,CAAC;IACrB,UAAU,EAAE,MAAM,CAAC;CACpB;AAED;;;;;;;GAOG;AACH,MAAM,WAAW,uBAAwB,SAAQ,iBAAiB;IAChE,UAAU,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC3B,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,aAAa,CAAC,EAAE,UAAU,GAAG,OAAO,CAAC;IACrC,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB;AAED,sCAAsC;AACtC,MAAM,WAAW,cAAc;IAC7B,UAAU,EAAE,MAAM,CAAC;IACnB,SAAS,EAAE,MAAM,CAAC;IAClB,WAAW,EAAE,oBAAoB,CAAC;IAClC,qEAAqE;IACrE,SAAS,EAAE,MAAM,CAAC;IAClB,uGAAuG;IACvG,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,8BAA8B;IAC9B,IAAI,EAAE,MAAM,CAAC;IACb,sEAAsE;IACtE,QAAQ,EAAE,OAAO,CAAC;IAClB,OAAO,EAAE,MAAM,CAAC;IAChB,qCAAqC;IACrC,WAAW,CAAC,EAAE,iBAAiB,EAAE,CAAC;IAClC,yEAAyE;IACzE,qBAAqB,CAAC,EAAE,mBAAmB,EAAE,CAAC;IAC9C;;;;;OAKG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB;qEACiE;IACjE,aAAa,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;CACzC;AAED;;;;;GAKG;AACH,MAAM,WAAW,OAAO;IACtB,yCAAyC;IACzC,SAAS,EAAE,MAAM,CAAC;IAClB,kCAAkC;IAClC,aAAa,EAAE,MAAM,CAAC;IACtB,OAAO,EAAE,MAAM,CAAC;IAChB,qCAAqC;IACrC,WAAW,EAAE,MAAM,CAAC;IACpB,MAAM,EAAE,aAAa,CAAC;IACtB,QAAQ,EAAE,eAAe,CAAC;IAC1B,QAAQ,EAAE,eAAe,CAAC;IAC1B,iBAAiB,EAAE,MAAM,CAAC;IAC1B
|
|
1
|
+
{"version":3,"file":"ticketModel.d.ts","sourceRoot":"","sources":["../../../src/components/supportTicket/ticketModel.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,mBAAmB,EAAE,eAAe,EAAE,oBAAoB,EAAE,eAAe,EAAE,aAAa,EAAE,MAAM,QAAQ,CAAC;AAwBzH,iEAAiE;AACjE,MAAM,WAAW,iBAAiB;IAChC,aAAa,EAAE,MAAM,CAAC;IACtB,QAAQ,EAAE,MAAM,CAAC;IACjB,YAAY,EAAE,MAAM,CAAC;IACrB,UAAU,EAAE,MAAM,CAAC;CACpB;AAED;;;;;;;GAOG;AACH,MAAM,WAAW,uBAAwB,SAAQ,iBAAiB;IAChE,UAAU,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC3B,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,aAAa,CAAC,EAAE,UAAU,GAAG,OAAO,CAAC;IACrC,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB;AAED,sCAAsC;AACtC,MAAM,WAAW,cAAc;IAC7B,UAAU,EAA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F;IACpF,qBAAqB,CAAC,EAAE,mBAAmB,EAAE,CAAC;CAC/C;AAED,2EAA2E;AAC3E,MAAM,WAAW,YAAa,SAAQ,OAAO;IAC3C,mCAAmC;IACnC,SAAS,EAAE,MAAM,CAAC;IAClB,6BAA6B;IAC7B,UAAU,EAAE,MAAM,CAAC;IACnB,UAAU,EAAE,MAAM,CAAC;IACnB,iGAAiG;IACjG,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,yBAAyB;IACzB,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB;AAED,iEAAiE;AACjE,MAAM,WAAW,kBAAkB;IACjC,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,MAAM,CAAC;CAChB;AAED;;;;GAIG;AACH,MAAM,WAAW,iBAAiB,CAAC,CAAC,SAAS,OAAO,GAAG,OAAO,CAAE,SAAQ,kBAAkB;IACxF,OAAO,EAAE,CAAC,EAAE,CAAC;CACd;AAED,8CAA8C;AAC9C,MAAM,WAAW,wBAAyB,SAAQ,kBAAkB;IAClE,SAAS,EAAE,MAAM,CAAC;IAClB,QAAQ,EAAE,cAAc,EAAE,CAAC;CAC5B"}
|
|
@@ -13,6 +13,16 @@ export declare const useLoadedImages: (sources: Array<string | undefined>) => ((
|
|
|
13
13
|
* settled state instead of waiting an arbitrary time.
|
|
14
14
|
*/
|
|
15
15
|
export declare const whenImageSettled: (src: string) => Promise<void>;
|
|
16
|
+
/**
|
|
17
|
+
* Resolves with `src` once it has loaded as an image, and rejects when it does not.
|
|
18
|
+
*
|
|
19
|
+
* A fetched attachment URL can resolve and still not be a picture — the server
|
|
20
|
+
* answered with an error page or an empty body — and an `<img>` handed it draws a
|
|
21
|
+
* broken picture. Chained after the fetch, this puts that case on the same path as
|
|
22
|
+
* a failed fetch, so every preview falls back to the file's name or its download
|
|
23
|
+
* chip. A rejected object URL is revoked here, since the caller never receives it.
|
|
24
|
+
*/
|
|
25
|
+
export declare const loadedImageUrl: (src: string) => Promise<string>;
|
|
16
26
|
/** Forget every image's status. For tests only. */
|
|
17
27
|
export declare const resetLoadedImagesForTests: () => void;
|
|
18
28
|
//# sourceMappingURL=useLoadedImages.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useLoadedImages.d.ts","sourceRoot":"","sources":["../../../src/components/supportTicket/useLoadedImages.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"useLoadedImages.d.ts","sourceRoot":"","sources":["../../../src/components/supportTicket/useLoadedImages.ts"],"names":[],"mappings":"AA6BA;;;;;;;;GAQG;AACH,eAAO,MAAM,eAAe,YAAa,MAAM,MAAM,GAAG,SAAS,CAAC,KAAG,CAAC,CAAC,GAAG,CAAC,EAAE,MAAM,KAAK,OAAO,CAsB9F,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,gBAAgB,QAAS,MAAM,KAAG,QAAQ,IAAI,CACA,CAAC;AAE5D;;;;;;;;GAQG;AACH,eAAO,MAAM,cAAc,QAAe,MAAM,KAAG,QAAQ,MAAM,CAShE,CAAC;AAEF,mDAAmD;AACnD,eAAO,MAAM,yBAAyB,QAAO,IAG5C,CAAC"}
|