@qoretechnologies/reqraft 0.10.54 → 0.10.55-pr.115.g37abdfc
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/.claude/CLAUDE.md +25 -0
- package/.tasks/INDEX.md +1 -0
- package/.tasks/STORY_NETWORK_ISOLATION.md +98 -0
- package/README.md +1 -1
- package/design/FORM_ENGINE_COMPACT.md +34 -0
- package/design/FORM_ENGINE_EXPRESSIONS.md +110 -0
- package/design/FORM_ENGINE_FIELD_MIGRATION.md +155 -1
- package/design/IDE_INTEGRATION.md +13 -0
- package/design/RENDER_EXPRESSION_TRANSPORT.md +76 -10
- package/design/SELECT_DIALOG_FLOOR.md +86 -0
- package/design/SMART_EDITOR_UX.md +21 -0
- package/design/UNAVAILABLE_ALLOWED_VALUES.md +226 -0
- package/dist/components/composer/Composer.d.ts +8 -3
- package/dist/components/composer/Composer.d.ts.map +1 -1
- package/dist/components/composer/Composer.js.map +1 -1
- package/dist/components/dpqlEditor/DpqlEditor.d.ts.map +1 -1
- package/dist/components/dpqlEditor/DpqlEditor.js +3 -3
- package/dist/components/dpqlEditor/DpqlEditor.js.map +1 -1
- package/dist/components/dpqlEditor/dpqlHelpers.d.ts +6 -0
- package/dist/components/dpqlEditor/dpqlHelpers.d.ts.map +1 -1
- package/dist/components/dpqlEditor/dpqlHelpers.js +21 -2
- package/dist/components/dpqlEditor/dpqlHelpers.js.map +1 -1
- package/dist/components/dpqlEditor/dpqlProbe.d.ts +37 -0
- package/dist/components/dpqlEditor/dpqlProbe.d.ts.map +1 -0
- package/dist/components/dpqlEditor/dpqlProbe.js +203 -0
- package/dist/components/dpqlEditor/dpqlProbe.js.map +1 -0
- package/dist/components/dpqlEditor/dpqlTags.d.ts +8 -0
- package/dist/components/dpqlEditor/dpqlTags.d.ts.map +1 -1
- package/dist/components/dpqlEditor/dpqlTags.js +5 -1
- package/dist/components/dpqlEditor/dpqlTags.js.map +1 -1
- package/dist/components/dpqlEditor/index.d.ts +4 -0
- package/dist/components/dpqlEditor/index.d.ts.map +1 -1
- package/dist/components/dpqlEditor/index.js +5 -1
- package/dist/components/dpqlEditor/index.js.map +1 -1
- package/dist/components/dpqlEditor/types.d.ts +42 -2
- package/dist/components/dpqlEditor/types.d.ts.map +1 -1
- package/dist/components/dpqlEditor/types.js +0 -4
- package/dist/components/dpqlEditor/types.js.map +1 -1
- package/dist/components/dpqlEditor/useDpqlProbe.d.ts +4 -0
- package/dist/components/dpqlEditor/useDpqlProbe.d.ts.map +1 -0
- package/dist/components/dpqlEditor/useDpqlProbe.js +29 -0
- package/dist/components/dpqlEditor/useDpqlProbe.js.map +1 -0
- package/dist/components/dpqlEditor/useDpqlSession.d.ts +5 -2
- package/dist/components/dpqlEditor/useDpqlSession.d.ts.map +1 -1
- package/dist/components/dpqlEditor/useDpqlSession.js +8 -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 +414 -128
- 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 +5 -2
- package/dist/components/form/engine/CompactToolbar.js.map +1 -1
- package/dist/components/form/engine/FormEngine.d.ts +272 -19
- package/dist/components/form/engine/FormEngine.d.ts.map +1 -1
- package/dist/components/form/engine/FormEngine.js +666 -161
- package/dist/components/form/engine/FormEngine.js.map +1 -1
- package/dist/components/form/engine/FormFieldsSkeleton.d.ts +48 -0
- package/dist/components/form/engine/FormFieldsSkeleton.d.ts.map +1 -0
- package/dist/components/form/engine/FormFieldsSkeleton.js +41 -0
- package/dist/components/form/engine/FormFieldsSkeleton.js.map +1 -0
- package/dist/components/form/engine/OptionFieldMessages.d.ts +108 -2
- package/dist/components/form/engine/OptionFieldMessages.d.ts.map +1 -1
- package/dist/components/form/engine/OptionFieldMessages.js +203 -13
- 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 +68 -5
- package/dist/components/form/engine/_structuredData/SchemaDataView.js.map +1 -1
- package/dist/components/form/engine/compactRowContext.d.ts +15 -1
- 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.map +1 -1
- package/dist/components/form/engine/compactRowStyles.js +55 -29
- package/dist/components/form/engine/compactRowStyles.js.map +1 -1
- package/dist/components/form/engine/compactToolbarContext.d.ts +1 -0
- package/dist/components/form/engine/compactToolbarContext.d.ts.map +1 -1
- package/dist/components/form/engine/optionActions.d.ts +37 -1
- package/dist/components/form/engine/optionActions.d.ts.map +1 -1
- package/dist/components/form/engine/optionActions.js +71 -1
- package/dist/components/form/engine/optionActions.js.map +1 -1
- package/dist/components/form/engine/optionsContext.d.ts +22 -0
- package/dist/components/form/engine/optionsContext.d.ts.map +1 -0
- package/dist/components/form/engine/optionsContext.js +20 -0
- package/dist/components/form/engine/optionsContext.js.map +1 -0
- package/dist/components/form/engine/readFirst.d.ts +42 -1
- package/dist/components/form/engine/readFirst.d.ts.map +1 -1
- package/dist/components/form/engine/readFirst.js +76 -8
- package/dist/components/form/engine/readFirst.js.map +1 -1
- package/dist/components/form/engine/rendererTypes.d.ts +42 -3
- package/dist/components/form/engine/rendererTypes.d.ts.map +1 -1
- package/dist/components/form/engine/rendererTypes.js +3 -1
- package/dist/components/form/engine/rendererTypes.js.map +1 -1
- package/dist/components/form/engine/rowFocus.d.ts +30 -0
- package/dist/components/form/engine/rowFocus.d.ts.map +1 -0
- package/dist/components/form/engine/rowFocus.js +93 -0
- package/dist/components/form/engine/rowFocus.js.map +1 -0
- package/dist/components/form/engine/rowMenuContext.d.ts +78 -0
- package/dist/components/form/engine/rowMenuContext.d.ts.map +1 -0
- package/dist/components/form/engine/rowMenuContext.js +103 -0
- package/dist/components/form/engine/rowMenuContext.js.map +1 -0
- package/dist/components/form/engine/rowOpenPicker.d.ts +27 -0
- package/dist/components/form/engine/rowOpenPicker.d.ts.map +1 -0
- package/dist/components/form/engine/rowOpenPicker.js +30 -0
- package/dist/components/form/engine/rowOpenPicker.js.map +1 -0
- package/dist/components/form/engine/typeChoices.d.ts +42 -0
- package/dist/components/form/engine/typeChoices.d.ts.map +1 -0
- package/dist/components/form/engine/typeChoices.js +33 -0
- package/dist/components/form/engine/typeChoices.js.map +1 -0
- package/dist/components/form/expressions/DpqlRendering.d.ts +26 -0
- package/dist/components/form/expressions/DpqlRendering.d.ts.map +1 -0
- package/dist/components/form/expressions/DpqlRendering.js +53 -0
- package/dist/components/form/expressions/DpqlRendering.js.map +1 -0
- package/dist/components/form/expressions/ExpressionField.d.ts +7 -1
- package/dist/components/form/expressions/ExpressionField.d.ts.map +1 -1
- package/dist/components/form/expressions/ExpressionField.js +203 -45
- package/dist/components/form/expressions/ExpressionField.js.map +1 -1
- package/dist/components/form/expressions/argumentPresence.d.ts +84 -0
- package/dist/components/form/expressions/argumentPresence.d.ts.map +1 -0
- package/dist/components/form/expressions/argumentPresence.js +217 -0
- package/dist/components/form/expressions/argumentPresence.js.map +1 -0
- package/dist/components/form/expressions/builder/argumentLabel.d.ts.map +1 -1
- package/dist/components/form/expressions/builder/argumentLabel.js +9 -4
- package/dist/components/form/expressions/builder/argumentLabel.js.map +1 -1
- package/dist/components/form/expressions/builder/index.d.ts +15 -2
- package/dist/components/form/expressions/builder/index.d.ts.map +1 -1
- package/dist/components/form/expressions/builder/index.js +21 -65
- package/dist/components/form/expressions/builder/index.js.map +1 -1
- package/dist/components/form/expressions/builder/renderTemplate.d.ts +4 -1
- package/dist/components/form/expressions/builder/renderTemplate.d.ts.map +1 -1
- package/dist/components/form/expressions/builder/renderTemplate.js +10 -67
- package/dist/components/form/expressions/builder/renderTemplate.js.map +1 -1
- package/dist/components/form/expressions/mockExpressions.d.ts.map +1 -1
- package/dist/components/form/expressions/mockExpressions.js +8 -4
- package/dist/components/form/expressions/mockExpressions.js.map +1 -1
- package/dist/components/form/expressions/renderExpressionToText.d.ts +1 -1
- package/dist/components/form/expressions/renderExpressionToText.d.ts.map +1 -1
- package/dist/components/form/expressions/renderExpressionToText.js +95 -19
- package/dist/components/form/expressions/renderExpressionToText.js.map +1 -1
- package/dist/components/form/expressions/types.d.ts +7 -0
- package/dist/components/form/expressions/types.d.ts.map +1 -1
- package/dist/components/form/expressions/useExpressions.d.ts.map +1 -1
- package/dist/components/form/expressions/useExpressions.js +5 -2
- package/dist/components/form/expressions/useExpressions.js.map +1 -1
- package/dist/components/form/expressions/useRenderExpression.d.ts +7 -16
- package/dist/components/form/expressions/useRenderExpression.d.ts.map +1 -1
- package/dist/components/form/expressions/useRenderExpression.js +50 -126
- package/dist/components/form/expressions/useRenderExpression.js.map +1 -1
- package/dist/components/form/fields/Field.d.ts +18 -0
- package/dist/components/form/fields/Field.d.ts.map +1 -1
- package/dist/components/form/fields/Field.js +54 -8
- 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 +52 -8
- package/dist/components/form/fields/allowed-values/AllowedValues.js.map +1 -1
- package/dist/components/form/fields/auto/AutoFormField.d.ts +7 -1
- package/dist/components/form/fields/auto/AutoFormField.d.ts.map +1 -1
- package/dist/components/form/fields/auto/AutoFormField.js +91 -28
- package/dist/components/form/fields/auto/AutoFormField.js.map +1 -1
- package/dist/components/form/fields/date/Date.d.ts +1 -1
- package/dist/components/form/fields/date/Date.d.ts.map +1 -1
- package/dist/components/form/fields/date/Date.js +16 -2
- package/dist/components/form/fields/date/Date.js.map +1 -1
- package/dist/components/form/fields/long-string/LongString.d.ts.map +1 -1
- package/dist/components/form/fields/long-string/LongString.js +14 -2
- package/dist/components/form/fields/long-string/LongString.js.map +1 -1
- package/dist/components/form/fields/multi-select/MultiSelectFormField.d.ts.map +1 -1
- package/dist/components/form/fields/multi-select/MultiSelectFormField.js +50 -4
- package/dist/components/form/fields/multi-select/MultiSelectFormField.js.map +1 -1
- package/dist/components/form/fields/rich-text/RichText.d.ts +47 -2
- package/dist/components/form/fields/rich-text/RichText.d.ts.map +1 -1
- package/dist/components/form/fields/rich-text/RichText.js +153 -12
- package/dist/components/form/fields/rich-text/RichText.js.map +1 -1
- package/dist/components/form/fields/select/Select.d.ts.map +1 -1
- package/dist/components/form/fields/select/Select.js +120 -20
- package/dist/components/form/fields/select/Select.js.map +1 -1
- package/dist/components/form/fields/select/SelectCollection.d.ts +166 -9
- package/dist/components/form/fields/select/SelectCollection.d.ts.map +1 -1
- package/dist/components/form/fields/select/SelectCollection.js +200 -7
- package/dist/components/form/fields/select/SelectCollection.js.map +1 -1
- package/dist/components/form/fields/template/ReadOnlyTemplateTag.d.ts +2 -1
- package/dist/components/form/fields/template/ReadOnlyTemplateTag.d.ts.map +1 -1
- package/dist/components/form/fields/template/ReadOnlyTemplateTag.js +3 -2
- package/dist/components/form/fields/template/ReadOnlyTemplateTag.js.map +1 -1
- package/dist/components/form/fields/template/TemplateField.d.ts +34 -2
- package/dist/components/form/fields/template/TemplateField.d.ts.map +1 -1
- package/dist/components/form/fields/template/TemplateField.js +606 -58
- package/dist/components/form/fields/template/TemplateField.js.map +1 -1
- package/dist/components/form/fields/template/TemplateText.d.ts +36 -0
- package/dist/components/form/fields/template/TemplateText.d.ts.map +1 -0
- package/dist/components/form/fields/template/TemplateText.js +80 -0
- package/dist/components/form/fields/template/TemplateText.js.map +1 -0
- package/dist/components/form/index.d.ts +2 -0
- package/dist/components/form/index.d.ts.map +1 -1
- package/dist/components/form/index.js +4 -0
- package/dist/components/form/index.js.map +1 -1
- package/dist/components/smartEditor/SmartEditor.d.ts.map +1 -1
- package/dist/components/smartEditor/SmartEditor.js +29 -8
- package/dist/components/smartEditor/SmartEditor.js.map +1 -1
- package/dist/components/smartEditor/useLspSession.d.ts +5 -1
- package/dist/components/smartEditor/useLspSession.d.ts.map +1 -1
- package/dist/components/smartEditor/useLspSession.js +16 -2
- package/dist/components/smartEditor/useLspSession.js.map +1 -1
- package/dist/components/supportTicket/TicketReplyBox.d.ts +8 -4
- package/dist/components/supportTicket/TicketReplyBox.d.ts.map +1 -1
- package/dist/components/supportTicket/TicketReplyBox.js.map +1 -1
- package/dist/helpers/common.d.ts.map +1 -1
- package/dist/helpers/common.js +7 -3
- package/dist/helpers/common.js.map +1 -1
- package/dist/helpers/dpqlDetection.d.ts +58 -0
- package/dist/helpers/dpqlDetection.d.ts.map +1 -0
- package/dist/helpers/dpqlDetection.js +164 -0
- package/dist/helpers/dpqlDetection.js.map +1 -0
- package/dist/helpers/optionUiTypes.d.ts +31 -3
- package/dist/helpers/optionUiTypes.d.ts.map +1 -1
- package/dist/helpers/optionUiTypes.js +36 -1
- package/dist/helpers/optionUiTypes.js.map +1 -1
- package/dist/helpers/options.d.ts +57 -0
- package/dist/helpers/options.d.ts.map +1 -1
- package/dist/helpers/options.js +97 -1
- package/dist/helpers/options.js.map +1 -1
- package/dist/helpers/templateItems.d.ts +47 -0
- package/dist/helpers/templateItems.d.ts.map +1 -0
- package/dist/helpers/templateItems.js +88 -0
- package/dist/helpers/templateItems.js.map +1 -0
- package/dist/helpers/templateText.d.ts +80 -0
- package/dist/helpers/templateText.d.ts.map +1 -0
- package/dist/helpers/templateText.js +291 -0
- package/dist/helpers/templateText.js.map +1 -0
- package/dist/helpers/templates.d.ts +30 -12
- package/dist/helpers/templates.d.ts.map +1 -1
- package/dist/helpers/templates.js +91 -33
- package/dist/helpers/templates.js.map +1 -1
- package/dist/helpers/validations.d.ts +17 -8
- package/dist/helpers/validations.d.ts.map +1 -1
- package/dist/helpers/validations.js +117 -22
- package/dist/helpers/validations.js.map +1 -1
- package/dist/hooks/useArgSchema.d.ts +2 -1
- package/dist/hooks/useArgSchema.d.ts.map +1 -1
- package/dist/hooks/useFetch/useFetch.d.ts +3 -1
- package/dist/hooks/useFetch/useFetch.d.ts.map +1 -1
- package/dist/hooks/useFetch/useFetch.js +47 -9
- package/dist/hooks/useFetch/useFetch.js.map +1 -1
- package/dist/hooks/useTemplates.d.ts +20 -0
- package/dist/hooks/useTemplates.d.ts.map +1 -1
- package/dist/hooks/useTemplates.js +34 -2
- package/dist/hooks/useTemplates.js.map +1 -1
- package/dist/index.d.ts +2 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +5 -1
- package/dist/index.js.map +1 -1
- package/dist/utils/fetch.d.ts +151 -1
- package/dist/utils/fetch.d.ts.map +1 -1
- package/dist/utils/fetch.js +256 -44
- package/dist/utils/fetch.js.map +1 -1
- package/dist/utils/lspClient.d.ts +6 -0
- package/dist/utils/lspClient.d.ts.map +1 -1
- package/dist/utils/lspClient.js +62 -11
- package/dist/utils/lspClient.js.map +1 -1
- package/dist/utils/websocket.d.ts +6 -0
- package/dist/utils/websocket.d.ts.map +1 -1
- package/dist/utils/websocket.js +15 -7
- package/dist/utils/websocket.js.map +1 -1
- package/package.json +8 -4
- package/src/components/composer/Composer.tsx +7 -2
- package/src/components/dpqlEditor/DpqlEditor.stories.tsx +3 -119
- package/src/components/dpqlEditor/DpqlEditor.tsx +5 -2
- package/src/components/dpqlEditor/dpqlHelpers.ts +20 -1
- package/src/components/dpqlEditor/dpqlProbe.ts +165 -0
- package/src/components/dpqlEditor/dpqlTags.ts +13 -0
- package/src/components/dpqlEditor/index.ts +4 -0
- package/src/components/dpqlEditor/types.ts +38 -2
- package/src/components/dpqlEditor/useDpqlProbe.ts +33 -0
- package/src/components/dpqlEditor/useDpqlSession.ts +20 -4
- package/src/components/form/engine/CompactRow.tsx +487 -160
- package/src/components/form/engine/CompactToolbar.tsx +10 -3
- package/src/components/form/engine/FormEngine.stories.tsx +1294 -161
- package/src/components/form/engine/FormEngine.tsx +916 -213
- package/src/components/form/engine/FormEngineStickyHeaders.stories.tsx +331 -0
- package/src/components/form/engine/FormFieldsSkeleton.tsx +77 -0
- package/src/components/form/engine/OptionFieldMessages.tsx +300 -14
- package/src/components/form/engine/_structuredData/SchemaDataView.tsx +94 -3
- package/src/components/form/engine/compactRowContext.ts +15 -6
- package/src/components/form/engine/compactRowStyles.ts +56 -2
- package/src/components/form/engine/compactToolbarContext.ts +1 -1
- package/src/components/form/engine/optionActions.ts +89 -1
- package/src/components/form/engine/optionsContext.ts +24 -0
- package/src/components/form/engine/readFirst.ts +88 -8
- package/src/components/form/engine/rendererTypes.ts +48 -4
- package/src/components/form/engine/rowFocus.ts +101 -0
- package/src/components/form/engine/rowMenuContext.ts +159 -0
- package/src/components/form/engine/rowOpenPicker.ts +27 -0
- package/src/components/form/engine/typeChoices.ts +63 -0
- package/src/components/form/expressions/DpqlRendering.tsx +85 -0
- package/src/components/form/expressions/ExpressionField.stories.tsx +826 -48
- package/src/components/form/expressions/ExpressionField.tsx +269 -55
- package/src/components/form/expressions/argumentPresence.ts +213 -0
- package/src/components/form/expressions/builder/ExpressionBuilder.stories.tsx +38 -21
- package/src/components/form/expressions/builder/argumentLabel.tsx +10 -4
- package/src/components/form/expressions/builder/index.tsx +39 -81
- package/src/components/form/expressions/builder/renderTemplate.tsx +23 -56
- package/src/components/form/expressions/dpqlMockLanguage.ts +565 -0
- package/src/components/form/expressions/dpqlMockLsp.ts +109 -83
- package/src/components/form/expressions/mockExpressions.ts +8 -4
- package/src/components/form/expressions/renderExpressionToText.ts +112 -22
- package/src/components/form/expressions/types.ts +7 -0
- package/src/components/form/expressions/useExpressions.ts +5 -1
- package/src/components/form/expressions/useRenderExpression.ts +43 -127
- package/src/components/form/fields/Field.tsx +99 -20
- package/src/components/form/fields/allowed-values/AllowedValues.tsx +106 -44
- package/src/components/form/fields/auto/AutoFormField.stories.tsx +85 -18
- package/src/components/form/fields/auto/AutoFormField.tsx +97 -21
- package/src/components/form/fields/date/Date.tsx +17 -1
- package/src/components/form/fields/long-string/LongString.tsx +15 -3
- package/src/components/form/fields/multi-select/MultiSelectFormField.tsx +65 -6
- package/src/components/form/fields/rich-text/RichText.tsx +248 -30
- package/src/components/form/fields/select/Select.stories.tsx +392 -0
- package/src/components/form/fields/select/Select.tsx +164 -27
- package/src/components/form/fields/select/SelectCollection.tsx +350 -6
- package/src/components/form/fields/template/ReadOnlyTemplateTag.tsx +4 -2
- package/src/components/form/fields/template/TemplateField.stories.tsx +93 -14
- package/src/components/form/fields/template/TemplateField.tsx +825 -131
- package/src/components/form/fields/template/TemplateText.tsx +115 -0
- package/src/components/form/index.tsx +4 -0
- package/src/components/log/Log.stories.tsx +2 -1
- package/src/components/searchFilterBar/SearchFilterBar.stories.tsx +3 -3
- package/src/components/smartEditor/SmartEditor.tsx +41 -9
- package/src/components/smartEditor/__fixtures__/mockLspServer.ts +52 -3
- package/src/components/smartEditor/useLspSession.ts +21 -3
- package/src/components/supportTicket/TicketReplyBox.tsx +8 -4
- package/src/components/ticketThread/TicketThread.stories.tsx +1 -0
- package/src/helpers/common.ts +7 -3
- package/src/helpers/dpqlDetection.ts +209 -0
- package/src/helpers/optionUiTypes.ts +38 -0
- package/src/helpers/options.ts +96 -0
- package/src/helpers/templateItems.ts +81 -0
- package/src/helpers/templateText.ts +350 -0
- package/src/helpers/templates.ts +94 -41
- package/src/helpers/validations.ts +138 -39
- package/src/hooks/useFetch/useFetch.stories.tsx +6 -5
- package/src/hooks/useFetch/useFetch.tsx +53 -7
- package/src/hooks/useStorage/useStorage.stories.tsx +2 -1
- package/src/hooks/useTemplates.ts +41 -0
- package/src/hooks/useWebSocket/useWebsocket.stories.tsx +2 -1
- package/src/index.tsx +14 -1
- package/src/stores/currentUser/currentUser.stories.tsx +2 -1
- package/src/stories/storyNetwork.ts +92 -0
- package/src/utils/fetch.ts +311 -21
- package/src/utils/lspClient.ts +68 -11
- package/src/utils/websocket.ts +20 -9
- package/dist/components/form/engine/__fixtures__/basicFormOptions.d.ts +0 -73
- package/dist/components/form/engine/__fixtures__/basicFormOptions.d.ts.map +0 -1
- package/dist/components/form/engine/__fixtures__/basicFormOptions.js +0 -317
- package/dist/components/form/engine/__fixtures__/basicFormOptions.js.map +0 -1
- package/dist/components/form/engine/__fixtures__/fieldChromeOptions.d.ts +0 -41
- package/dist/components/form/engine/__fixtures__/fieldChromeOptions.d.ts.map +0 -1
- package/dist/components/form/engine/__fixtures__/fieldChromeOptions.js +0 -45
- package/dist/components/form/engine/__fixtures__/fieldChromeOptions.js.map +0 -1
- package/dist/components/form/expressions/dpqlMockLsp.d.ts +0 -3
- package/dist/components/form/expressions/dpqlMockLsp.d.ts.map +0 -1
- package/dist/components/form/expressions/dpqlMockLsp.js +0 -91
- package/dist/components/form/expressions/dpqlMockLsp.js.map +0 -1
- package/dist/components/form/fields/template/__fixtures__/longExampleValue.d.ts +0 -2
- package/dist/components/form/fields/template/__fixtures__/longExampleValue.d.ts.map +0 -1
- package/dist/components/form/fields/template/__fixtures__/longExampleValue.js +0 -9
- package/dist/components/form/fields/template/__fixtures__/longExampleValue.js.map +0 -1
- package/dist/components/smartEditor/__fixtures__/mockLspServer.d.ts +0 -55
- package/dist/components/smartEditor/__fixtures__/mockLspServer.d.ts.map +0 -1
- package/dist/components/smartEditor/__fixtures__/mockLspServer.js +0 -126
- package/dist/components/smartEditor/__fixtures__/mockLspServer.js.map +0 -1
- package/dist/stories/Data/fileFieldArgSchema.json +0 -86
|
@@ -1,4 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
var __makeTemplateObject = (this && this.__makeTemplateObject) || function (cooked, raw) {
|
|
3
|
+
if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; }
|
|
4
|
+
return cooked;
|
|
5
|
+
};
|
|
2
6
|
var __assign = (this && this.__assign) || function () {
|
|
3
7
|
__assign = Object.assign || function(t) {
|
|
4
8
|
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
@@ -30,13 +34,81 @@ var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
|
|
|
30
34
|
}
|
|
31
35
|
return to.concat(ar || Array.prototype.slice.call(from));
|
|
32
36
|
};
|
|
37
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
38
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
39
|
+
};
|
|
33
40
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
34
|
-
exports.SelectFieldCollection = exports.getSelectItemDescriptionProps = exports.getSelectItemShortDescription = exports.getSelectItemDescription = void 0;
|
|
41
|
+
exports.SelectFieldCollection = exports.buildSelectItemTooltip = exports.getSelectItemTitleActions = exports.getSelectItemUnavailability = exports.getSelectItemDescriptionProps = exports.getSelectItemShortDescription = exports.getSelectItemDescription = exports.UNAVAILABLE_ITEM_CLASS = exports.SELECT_DIALOG_MIN_HEIGHT = exports.SELECT_DIALOG_MIN_WIDTH = void 0;
|
|
35
42
|
var jsx_runtime_1 = require("react/jsx-runtime");
|
|
36
43
|
var reqore_1 = require("@qoretechnologies/reqore");
|
|
37
44
|
var lodash_1 = require("lodash");
|
|
38
45
|
var react_1 = require("react");
|
|
46
|
+
var styled_components_1 = __importDefault(require("styled-components"));
|
|
47
|
+
var options_1 = require("../../../../helpers/options");
|
|
39
48
|
var Description_1 = require("../../../Description");
|
|
49
|
+
/**
|
|
50
|
+
* The size the picker cannot be dragged below, measured on its own content.
|
|
51
|
+
*
|
|
52
|
+
* reqore floors a modal at what the DRAWER's chrome needs — its title and its
|
|
53
|
+
* close control — which is all reqore can answer for. The picker needs more
|
|
54
|
+
* than that, and said so the hard way: dragged to roughly 45px wide it still
|
|
55
|
+
* held a search box, a list and a close button, stacked in a column nobody
|
|
56
|
+
* could read.
|
|
57
|
+
*
|
|
58
|
+
* Measured on `components-form-select--item-actions-in-the-title-bar` at
|
|
59
|
+
* 1400x1000, sweeping the width and the height of the dialog box:
|
|
60
|
+
*
|
|
61
|
+
* - **320px wide.** The collection is laid out in 300px columns
|
|
62
|
+
* (`minColumnWidth`), so a row is 300px wide whatever the dialog does. At
|
|
63
|
+
* 300px the row overhangs the dialog by 13px and at 310px by 3px; 320px is
|
|
64
|
+
* the first round width that contains it (-7px), and from 340px the row
|
|
65
|
+
* grows with the box instead of overhanging it.
|
|
66
|
+
* - **180px tall.** The panel header is 55px and the search field 26px, and
|
|
67
|
+
* both are whole from 100px — but the list below them has to show one entry
|
|
68
|
+
* in full, or there is nothing choosable in the dialog. A plain row is 56px
|
|
69
|
+
* and is whole from 160px; a row carrying a description is 70px and needs
|
|
70
|
+
* 174px. The floor takes the taller of the two, because the same dialog
|
|
71
|
+
* serves both and a floor that clips the rows it is actually used with is
|
|
72
|
+
* the defect this constant exists to prevent — the assertion-kind picker in
|
|
73
|
+
* qorus-ide is the described-row case. 180px is the first round height that
|
|
74
|
+
* contains it.
|
|
75
|
+
*/
|
|
76
|
+
exports.SELECT_DIALOG_MIN_WIDTH = 320;
|
|
77
|
+
/** See {@link SELECT_DIALOG_MIN_WIDTH}. */
|
|
78
|
+
exports.SELECT_DIALOG_MIN_HEIGHT = 180;
|
|
79
|
+
/**
|
|
80
|
+
* The hook a row wears while its value cannot be picked — for the stylesheet
|
|
81
|
+
* below, and for a host's own tests and styling.
|
|
82
|
+
*/
|
|
83
|
+
exports.UNAVAILABLE_ITEM_CLASS = 'reqraft-select-item-unavailable';
|
|
84
|
+
/**
|
|
85
|
+
* The picker's floor, expressed where it survives the reqore we pin.
|
|
86
|
+
*
|
|
87
|
+
* `className` reaches the element `re-resizable` sizes and drags, and a CSS
|
|
88
|
+
* `min-width` clamps THAT element's rendered box however far the drag goes —
|
|
89
|
+
* so this holds against reqore 0.74.1, where a modal's floor is a hardcoded
|
|
90
|
+
* 40px and `minSize` never reaches it, as well as against the `minWidth` /
|
|
91
|
+
* `minHeight` props reqore grew later.
|
|
92
|
+
*
|
|
93
|
+
* `!important` is load-bearing, not decoration: `re-resizable` writes its own
|
|
94
|
+
* `min-width` / `min-height` INLINE on this same element, and an inline
|
|
95
|
+
* declaration beats a normal one from a stylesheet.
|
|
96
|
+
*
|
|
97
|
+
* Clamping the box from outside `re-resizable` rather than through it costs
|
|
98
|
+
* one thing, and it is not the thing it looks like. The drag stays exact: each
|
|
99
|
+
* move sizes the box from where the drag STARTED plus the pointer's delta, not
|
|
100
|
+
* from the last size, so coming back out tracks the pointer with no dead zone
|
|
101
|
+
* (measured — past the floor the box holds 320px while the inline width reads
|
|
102
|
+
* 40px, and 300px back out it is 400px again). What is left behind is that
|
|
103
|
+
* divergence: an inline width smaller than the box anyone can see. Read this
|
|
104
|
+
* dialog's size from its rect, never from `style.width`. Once reqraft can pin
|
|
105
|
+
* a reqore that has them this becomes `minWidth` / `minHeight` on the modal,
|
|
106
|
+
* and the two agree again.
|
|
107
|
+
*
|
|
108
|
+
* Capped at the viewport so a phone gets a dialog it can see all of rather
|
|
109
|
+
* than a floor wider than its screen — reqore's own maximum is 90vw / 90vh.
|
|
110
|
+
*/
|
|
111
|
+
var StyledSelectDialog = (0, styled_components_1.default)(reqore_1.ReqoreModal)(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n min-width: min(", "px, 90vw) !important;\n min-height: min(", "px, 90vh) !important;\n\n /*\n * A value that cannot be picked, said in the row's own stylesheet.\n *\n * Reqore's \"disabled\" is NOT what marks it. That applies DisabledElement,\n * which is \"pointer-events: none\" \u2014 and the two places the reason can be\n * read, the row's tooltip and whatever control its title bar carries, both\n * need the pointer. Dropping onClick is what actually makes the row inert:\n * reqore derives \"interactive\" from the handlers a panel was given, so a row\n * with none gets no pointer cursor and no hover lift while keeping every\n * pointer event it had.\n *\n * The dimming lands on the TITLE rather than on the row, because \"opacity\"\n * creates a stacking context: dimming the row would dim the reason inside it,\n * and the reason is the one thing on an unavailable row that has to read.\n */\n .", " {\n cursor: not-allowed;\n }\n\n .", " > .reqore-panel-title {\n opacity: 0.55;\n }\n"], ["\n min-width: min(", "px, 90vw) !important;\n min-height: min(", "px, 90vh) !important;\n\n /*\n * A value that cannot be picked, said in the row's own stylesheet.\n *\n * Reqore's \"disabled\" is NOT what marks it. That applies DisabledElement,\n * which is \"pointer-events: none\" \u2014 and the two places the reason can be\n * read, the row's tooltip and whatever control its title bar carries, both\n * need the pointer. Dropping onClick is what actually makes the row inert:\n * reqore derives \"interactive\" from the handlers a panel was given, so a row\n * with none gets no pointer cursor and no hover lift while keeping every\n * pointer event it had.\n *\n * The dimming lands on the TITLE rather than on the row, because \"opacity\"\n * creates a stacking context: dimming the row would dim the reason inside it,\n * and the reason is the one thing on an unavailable row that has to read.\n */\n .", " {\n cursor: not-allowed;\n }\n\n .", " > .reqore-panel-title {\n opacity: 0.55;\n }\n"])), exports.SELECT_DIALOG_MIN_WIDTH, exports.SELECT_DIALOG_MIN_HEIGHT, exports.UNAVAILABLE_ITEM_CLASS, exports.UNAVAILABLE_ITEM_CLASS);
|
|
40
112
|
var PositiveColorEffect = {
|
|
41
113
|
gradient: {
|
|
42
114
|
colors: {
|
|
@@ -90,6 +162,99 @@ var getSelectItemDescriptionProps = function (item) {
|
|
|
90
162
|
return { shortDescription: shortDescription };
|
|
91
163
|
};
|
|
92
164
|
exports.getSelectItemDescriptionProps = getSelectItemDescriptionProps;
|
|
165
|
+
/**
|
|
166
|
+
* Why an item cannot be picked, in the words the row will print.
|
|
167
|
+
*
|
|
168
|
+
* Two shapes reach here and they mean the same thing. A caller that resolved
|
|
169
|
+
* the availability itself sends `unavailable`; a caller — or a server — that
|
|
170
|
+
* only marked the value `disabled` and explained it in `messages` gets the same
|
|
171
|
+
* treatment, because a refusal nobody worded is still a refusal, and a row that
|
|
172
|
+
* silently ignores a click is the defect this answers.
|
|
173
|
+
*
|
|
174
|
+
* Which message explains a refusal is decided in one place
|
|
175
|
+
* ({@link getRefusalMessage}), so the picker and the form's own resolver cannot
|
|
176
|
+
* word the same refusal differently.
|
|
177
|
+
*/
|
|
178
|
+
var getSelectItemUnavailability = function (item) {
|
|
179
|
+
if (item.unavailable) {
|
|
180
|
+
return item.unavailable;
|
|
181
|
+
}
|
|
182
|
+
if (!item.disabled) {
|
|
183
|
+
return undefined;
|
|
184
|
+
}
|
|
185
|
+
var explanation = (0, options_1.getRefusalMessage)(item.messages);
|
|
186
|
+
return {
|
|
187
|
+
intent: (explanation === null || explanation === void 0 ? void 0 : explanation.intent) || 'warning',
|
|
188
|
+
title: explanation === null || explanation === void 0 ? void 0 : explanation.title,
|
|
189
|
+
content: (explanation === null || explanation === void 0 ? void 0 : explanation.content) || options_1.UNAVAILABLE_VALUE_FALLBACK_REASON,
|
|
190
|
+
};
|
|
191
|
+
};
|
|
192
|
+
exports.getSelectItemUnavailability = getSelectItemUnavailability;
|
|
193
|
+
/**
|
|
194
|
+
* An item's title-bar affordances as reqore panel actions.
|
|
195
|
+
*
|
|
196
|
+
* `as` is defaulted here rather than left to reqore: reqore renders an action
|
|
197
|
+
* with no `as` as a `ReqoreButton` built from the action's OWN keys and drops
|
|
198
|
+
* `props` on the floor, so a descriptor that named only props would render an
|
|
199
|
+
* empty button. Defaulting `as` keeps one descriptor shape for both
|
|
200
|
+
* placements.
|
|
201
|
+
*
|
|
202
|
+
* `size` is a default, not an override — the row is `tiny`, so a control in
|
|
203
|
+
* its title bar is too unless the caller says otherwise. The body renderer
|
|
204
|
+
* below forces `size` after the caller's props and cannot be given a
|
|
205
|
+
* different one; that is the older behaviour and it is left alone.
|
|
206
|
+
*
|
|
207
|
+
* An unavailable row leads with a padlock, before whatever the caller declared.
|
|
208
|
+
* It is a TAG, not a control: the words are already on the row and in its
|
|
209
|
+
* tooltip, and a second popover saying the same thing over the first is worse
|
|
210
|
+
* than one. It is also not the compact form's "Depends on" chip, whose whole
|
|
211
|
+
* value is clicking through to the blocking field — from inside a modal that
|
|
212
|
+
* covers that field, there is nowhere for such a click to go.
|
|
213
|
+
*/
|
|
214
|
+
var getSelectItemTitleActions = function (item, unavailable) {
|
|
215
|
+
var declared = (item.title_actions || []).map(function (_a) {
|
|
216
|
+
var _b = _a.as, as = _b === void 0 ? reqore_1.ReqoreButton : _b, props = _a.props, rest = __rest(_a, ["as", "props"]);
|
|
217
|
+
return (__assign(__assign({}, rest), { as: as, props: __assign({ size: 'tiny' }, props) }));
|
|
218
|
+
});
|
|
219
|
+
var actions = unavailable ? __spreadArray([UNAVAILABLE_TITLE_ACTION], declared, true) : declared;
|
|
220
|
+
return actions.length ? actions : undefined;
|
|
221
|
+
};
|
|
222
|
+
exports.getSelectItemTitleActions = getSelectItemTitleActions;
|
|
223
|
+
/** The padlock an unavailable row wears — see {@link getSelectItemTitleActions}. */
|
|
224
|
+
var UNAVAILABLE_TITLE_ACTION = {
|
|
225
|
+
as: reqore_1.ReqoreTag,
|
|
226
|
+
props: {
|
|
227
|
+
size: 'tiny',
|
|
228
|
+
icon: 'LockLine',
|
|
229
|
+
minimal: true,
|
|
230
|
+
className: 'reqraft-select-item-lock',
|
|
231
|
+
},
|
|
232
|
+
};
|
|
233
|
+
/**
|
|
234
|
+
* An item's row tooltip as reqore's own tooltip prop.
|
|
235
|
+
*
|
|
236
|
+
* The descriptor is turned into an element HERE — after the caller's items
|
|
237
|
+
* have been through whatever memo key they travel under — which is the whole
|
|
238
|
+
* reason the item carries `{ as, props }` and not a node.
|
|
239
|
+
*/
|
|
240
|
+
var buildSelectItemTooltip = function (tooltip) {
|
|
241
|
+
if (!tooltip) {
|
|
242
|
+
return undefined;
|
|
243
|
+
}
|
|
244
|
+
if (typeof tooltip === 'string') {
|
|
245
|
+
return tooltip;
|
|
246
|
+
}
|
|
247
|
+
var content = tooltip.content, rest = __rest(tooltip, ["content"]);
|
|
248
|
+
if (content === undefined) {
|
|
249
|
+
return rest;
|
|
250
|
+
}
|
|
251
|
+
if (typeof content === 'string') {
|
|
252
|
+
return __assign(__assign({}, rest), { content: content });
|
|
253
|
+
}
|
|
254
|
+
var Component = content.as, props = content.props;
|
|
255
|
+
return __assign(__assign({}, rest), { content: (0, jsx_runtime_1.jsx)(Component, __assign({}, props)) });
|
|
256
|
+
};
|
|
257
|
+
exports.buildSelectItemTooltip = buildSelectItemTooltip;
|
|
93
258
|
var SelectFieldCollection = function (_a) {
|
|
94
259
|
var onClose = _a.onClose, items = _a.items, value = _a.value, onItemSelect = _a.onItemSelect, filters = _a.filters;
|
|
95
260
|
var _b = (0, react_1.useState)([]), appliedFilters = _b[0], setAppliedFilters = _b[1];
|
|
@@ -102,7 +267,7 @@ var SelectFieldCollection = function (_a) {
|
|
|
102
267
|
return isMatch;
|
|
103
268
|
});
|
|
104
269
|
}, [items, appliedFilters]);
|
|
105
|
-
return ((0, jsx_runtime_1.jsx)(
|
|
270
|
+
return ((0, jsx_runtime_1.jsx)(StyledSelectDialog, { isOpen: true,
|
|
106
271
|
// A library-owned hook for hosts and their tests to target the picker
|
|
107
272
|
// (qorus-ide's helpers looked for its own `.q-select-dialog`, which
|
|
108
273
|
// this modal never carried).
|
|
@@ -113,18 +278,42 @@ var SelectFieldCollection = function (_a) {
|
|
|
113
278
|
clearOnFocus: true,
|
|
114
279
|
},
|
|
115
280
|
}, customTheme: { main: '#010811' }, transparent: false, size: 'tiny', showLayoutSwitch: false, items: filteredItems.map(function (item) {
|
|
116
|
-
var _a, _b;
|
|
117
|
-
var
|
|
281
|
+
var _a, _b, _c;
|
|
282
|
+
var _d = (0, exports.getSelectItemDescriptionProps)(item), longDescription = _d.longDescription, shortDescription = _d.shortDescription;
|
|
283
|
+
var unavailable = (0, exports.getSelectItemUnavailability)(item);
|
|
284
|
+
/* One `messages` entry can be the refusal itself — a server that sent
|
|
285
|
+
`disabled` with its reason, resolved into `unavailable` upstream.
|
|
286
|
+
It is already printed above the description, so it is not printed
|
|
287
|
+
again underneath it. */
|
|
288
|
+
var messages = (item.messages || []).filter(function (message) { return !unavailable || message.content !== unavailable.content; });
|
|
118
289
|
return {
|
|
119
290
|
label: item.display_name || ((_a = item.value) === null || _a === void 0 ? void 0 : _a.toString()),
|
|
120
291
|
size: 'tiny',
|
|
121
292
|
groups: item.groups,
|
|
293
|
+
className: [item.className, unavailable ? exports.UNAVAILABLE_ITEM_CLASS : undefined]
|
|
294
|
+
.filter(Boolean)
|
|
295
|
+
.join(' '),
|
|
296
|
+
/* Inline with the name, in height the title bar already spends.
|
|
297
|
+
`actions` on the item stays where it has always been, in the
|
|
298
|
+
body under the description. */
|
|
299
|
+
actions: (0, exports.getSelectItemTitleActions)(item, unavailable),
|
|
300
|
+
/* The row is the hover target, so an explanation costs the list
|
|
301
|
+
nothing until it is asked for. */
|
|
302
|
+
tooltip: (0, exports.buildSelectItemTooltip)((_b = item.tooltip) !== null && _b !== void 0 ? _b : unavailable === null || unavailable === void 0 ? void 0 : unavailable.content),
|
|
303
|
+
/* Reqore searches a row's label and its stringified content, and
|
|
304
|
+
the content below is an element — so every row matches
|
|
305
|
+
`[object Object]` and nothing matches a word inside it. A reason
|
|
306
|
+
nobody can search for in a list of hundreds is a reason nobody
|
|
307
|
+
finds. */
|
|
308
|
+
searchString: [item.searchString, unavailable === null || unavailable === void 0 ? void 0 : unavailable.title, unavailable === null || unavailable === void 0 ? void 0 : unavailable.content]
|
|
309
|
+
.filter(Boolean)
|
|
310
|
+
.join(' '),
|
|
122
311
|
customTheme: { main: '#08182d' },
|
|
123
312
|
responsiveTitle: false,
|
|
124
|
-
content: ((0, jsx_runtime_1.jsxs)(reqore_1.ReqoreControlGroup, { vertical: true, fluid: true, children: [longDescription || shortDescription ? ((0, jsx_runtime_1.jsx)(Description_1.Description, { longDescription: longDescription || '', shortDescription: shortDescription, size: 'small', margin: 'none' })) : null, (
|
|
313
|
+
content: ((0, jsx_runtime_1.jsxs)(reqore_1.ReqoreControlGroup, { vertical: true, fluid: true, children: [unavailable ? ((0, jsx_runtime_1.jsx)(reqore_1.ReqoreMessage, { flat: true, icon: 'LockLine', intent: unavailable.intent || 'warning', title: unavailable.title, size: 'small', opaque: false, children: unavailable.content })) : null, longDescription || shortDescription ? ((0, jsx_runtime_1.jsx)(Description_1.Description, { longDescription: longDescription || '', shortDescription: shortDescription, size: 'small', margin: 'none' })) : null, (_c = item.actions) === null || _c === void 0 ? void 0 : _c.map(function (_a, index) {
|
|
125
314
|
var _b = _a.as, Component = _b === void 0 ? reqore_1.ReqoreButton : _b, props = _a.props, rest = __rest(_a, ["as", "props"]);
|
|
126
315
|
return ((0, jsx_runtime_1.jsx)(Component, __assign({}, rest, props, { fixed: true, size: 'tiny' }), index));
|
|
127
|
-
}),
|
|
316
|
+
}), messages.map(function (_a, index) {
|
|
128
317
|
var intent = _a.intent, title = _a.title, content = _a.content;
|
|
129
318
|
return ((0, jsx_runtime_1.jsx)(reqore_1.ReqoreMessage, { flat: true, intent: intent, title: title, size: 'small', opaque: false, children: content }, title || index));
|
|
130
319
|
})] })),
|
|
@@ -141,7 +330,10 @@ var SelectFieldCollection = function (_a) {
|
|
|
141
330
|
size: '20px',
|
|
142
331
|
rounded: true,
|
|
143
332
|
},
|
|
144
|
-
|
|
333
|
+
/* No handler is what makes an unavailable row inert, and it is
|
|
334
|
+
deliberately NOT reqore's `disabled`: see the stylesheet on
|
|
335
|
+
`StyledSelectDialog`. */
|
|
336
|
+
onClick: !item.disabled && !unavailable
|
|
145
337
|
? function (e) {
|
|
146
338
|
if (e.currentTarget.contains(e.target)) {
|
|
147
339
|
onItemSelect(item);
|
|
@@ -167,4 +359,5 @@ var SelectFieldCollection = function (_a) {
|
|
|
167
359
|
}); }) }) }));
|
|
168
360
|
};
|
|
169
361
|
exports.SelectFieldCollection = SelectFieldCollection;
|
|
362
|
+
var templateObject_1;
|
|
170
363
|
//# sourceMappingURL=SelectCollection.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SelectCollection.js","sourceRoot":"","sources":["../../../../../src/components/form/fields/select/SelectCollection.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"SelectCollection.js","sourceRoot":"","sources":["../../../../../src/components/form/fields/select/SelectCollection.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,mDAOkC;AAOlC,iCAAmD;AACnD,+BAA0C;AAC1C,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AAM,CAAC,EAAE,CAAC;wBACrC,iBAAiB,iCAAK,cAAc,UAAE,MAAM,UAAE,CAAC;oBACjD,CAAC;yBAAM,CAAC;wBACN,iBAAiB,CAAC,cAAc,CAAC,MAAM,CAAC,UAAC,aAAa,IAAK,OAAA,aAAa,KAAK,MAAM,EAAxB,CAAwB,CAAC,CAAC,CAAC;oBACxF,CAAC;gBACH,CAAC;aACF,CAAC,EAbgC,CAahC,CAAC,GACH,GACiB,CACtB,CAAC;AACJ,CAAC,CAAC;AAnLW,QAAA,qBAAqB,yBAmLhC"}
|
|
@@ -10,7 +10,8 @@ export interface IReadOnlyTemplateTagProps {
|
|
|
10
10
|
}
|
|
11
11
|
/**
|
|
12
12
|
* The read-only representation of a selected template — a picker-shaped chip:
|
|
13
|
-
* the `$`-dollar icon, the resolved display name (
|
|
13
|
+
* the `$`-dollar icon, the resolved display name (and what the value IS in the
|
|
14
|
+
* tooltip, not the reference that names it), the
|
|
14
15
|
* app image when present, coloured by qorus-ide's scheme (info / qorus purple /
|
|
15
16
|
* success — see `getTemplateTagStyle`). Shared by `TemplateField`'s disabled
|
|
16
17
|
* branch and the compact read-first row so a template reads identically wherever
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ReadOnlyTemplateTag.d.ts","sourceRoot":"","sources":["../../../../../src/components/form/fields/template/ReadOnlyTemplateTag.tsx"],"names":[],"mappings":";AACA,OAAO,EAAE,oBAAoB,EAAE,MAAM,mDAAmD,CAAC;AACzF,OAAO,EAAE,MAAM,EAAE,MAAM,+CAA+C,CAAC;
|
|
1
|
+
{"version":3,"file":"ReadOnlyTemplateTag.d.ts","sourceRoot":"","sources":["../../../../../src/components/form/fields/template/ReadOnlyTemplateTag.tsx"],"names":[],"mappings":";AACA,OAAO,EAAE,oBAAoB,EAAE,MAAM,mDAAmD,CAAC;AACzF,OAAO,EAAE,MAAM,EAAE,MAAM,+CAA+C,CAAC;AASvE,MAAM,WAAW,yBAAyB;IACxC,wDAAwD;IACxD,KAAK,EAAE,MAAM,CAAC;IACd,6EAA6E;IAC7E,SAAS,CAAC,EAAE,oBAAoB,CAAC;IACjC,IAAI,CAAC,EAAE,MAAM,CAAC;CACf;AAED;;;;;;;;GAQG;AACH,eAAO,MAAM,mBAAmB,mEACD,yBAAyB,6CAevD,CAAC"}
|
|
@@ -18,7 +18,8 @@ var react_1 = require("react");
|
|
|
18
18
|
var templates_1 = require("../../../../helpers/templates");
|
|
19
19
|
/**
|
|
20
20
|
* The read-only representation of a selected template — a picker-shaped chip:
|
|
21
|
-
* the `$`-dollar icon, the resolved display name (
|
|
21
|
+
* the `$`-dollar icon, the resolved display name (and what the value IS in the
|
|
22
|
+
* tooltip, not the reference that names it), the
|
|
22
23
|
* app image when present, coloured by qorus-ide's scheme (info / qorus purple /
|
|
23
24
|
* success — see `getTemplateTagStyle`). Shared by `TemplateField`'s disabled
|
|
24
25
|
* branch and the compact read-first row so a template reads identically wherever
|
|
@@ -28,7 +29,7 @@ exports.ReadOnlyTemplateTag = (0, react_1.memo)(function (_a) {
|
|
|
28
29
|
var value = _a.value, templates = _a.templates, size = _a.size;
|
|
29
30
|
var _b = (0, templates_1.describeTemplateReference)(templates, value), label = _b.label, item = _b.item;
|
|
30
31
|
var metadata = item === null || item === void 0 ? void 0 : item.metadata;
|
|
31
|
-
return ((0, jsx_runtime_1.jsx)(reqore_1.ReqoreTagGroup, { size: size, children: (0, jsx_runtime_1.jsx)(reqore_1.ReqoreTag, __assign({ icon: 'ExchangeDollarLine', leftIconProps: { image: metadata === null || metadata === void 0 ? void 0 : metadata.image }, label: label, tooltip: value }, (0, templates_1.getTemplateTagStyle)(metadata))) }));
|
|
32
|
+
return ((0, jsx_runtime_1.jsx)(reqore_1.ReqoreTagGroup, { size: size, children: (0, jsx_runtime_1.jsx)(reqore_1.ReqoreTag, __assign({ icon: 'ExchangeDollarLine', leftIconProps: { image: metadata === null || metadata === void 0 ? void 0 : metadata.image }, label: label, tooltip: (0, templates_1.templateTooltip)(templates, value) }, (0, templates_1.getTemplateTagStyle)(metadata))) }));
|
|
32
33
|
});
|
|
33
34
|
exports.ReadOnlyTemplateTag.displayName = 'ReadOnlyTemplateTag';
|
|
34
35
|
//# sourceMappingURL=ReadOnlyTemplateTag.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ReadOnlyTemplateTag.js","sourceRoot":"","sources":["../../../../../src/components/form/fields/template/ReadOnlyTemplateTag.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,mDAAqE;AAGrE,+BAA6B;AAC7B,
|
|
1
|
+
{"version":3,"file":"ReadOnlyTemplateTag.js","sourceRoot":"","sources":["../../../../../src/components/form/fields/template/ReadOnlyTemplateTag.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,mDAAqE;AAGrE,+BAA6B;AAC7B,2DAKuC;AAUvC;;;;;;;;GAQG;AACU,QAAA,mBAAmB,GAAG,IAAA,YAAI,EACrC,UAAC,EAAqD;QAAnD,KAAK,WAAA,EAAE,SAAS,eAAA,EAAE,IAAI,UAAA;IACjB,IAAA,KAAkB,IAAA,qCAAyB,EAAC,SAAS,EAAE,KAAK,CAAC,EAA3D,KAAK,WAAA,EAAE,IAAI,UAAgD,CAAC;IACpE,IAAM,QAAQ,GAAG,IAAI,aAAJ,IAAI,uBAAJ,IAAI,CAAE,QAAqC,CAAC;IAC7D,OAAO,CACL,uBAAC,uBAAc,IAAC,IAAI,EAAE,IAAI,YACxB,uBAAC,kBAAS,aACR,IAAI,EAAC,oBAAoB,EACzB,aAAa,EAAE,EAAE,KAAK,EAAE,QAAQ,aAAR,QAAQ,uBAAR,QAAQ,CAAE,KAAK,EAAE,EACzC,KAAK,EAAE,KAAK,EACZ,OAAO,EAAE,IAAA,2BAAe,EAAC,SAAS,EAAE,KAAK,CAAC,IACtC,IAAA,+BAAmB,EAAC,QAAQ,CAAC,EACjC,GACa,CAClB,CAAC;AACJ,CAAC,CACF,CAAC;AAEF,2BAAmB,CAAC,WAAW,GAAG,qBAAqB,CAAC"}
|
|
@@ -64,6 +64,14 @@ export interface ITemplateFieldProps extends Partial<Omit<IQorusFormFieldSchemaB
|
|
|
64
64
|
* out of `rest` and never spread onto a leaf input.
|
|
65
65
|
*/
|
|
66
66
|
extraActions?: IExpressionBuilderProps['extraActions'];
|
|
67
|
+
/**
|
|
68
|
+
* SEAM (reqraft): the host's per-`ui_type` editors, forwarded to the field
|
|
69
|
+
* component and to the expression editor's operand rows. Declared here — not
|
|
70
|
+
* left to the index signature — for the same reason as `extraActions` above:
|
|
71
|
+
* so it is destructured out of `rest` and never spread onto a leaf input or a
|
|
72
|
+
* Reqore layout component, both of which pass unknown props to the DOM.
|
|
73
|
+
*/
|
|
74
|
+
componentOverrides?: Record<string, React.FC<any>>;
|
|
67
75
|
[key: string]: any;
|
|
68
76
|
default_value?: unknown;
|
|
69
77
|
}
|
|
@@ -112,12 +120,36 @@ export interface ITemplateMenuActions {
|
|
|
112
120
|
content: (closePopover?: () => void) => React.ReactNode;
|
|
113
121
|
})[];
|
|
114
122
|
}
|
|
115
|
-
export declare const CustomMenuItems: React.MemoExoticComponent<({ items, closePopover, setIsTemplate, setTemplateValue, ...rest }: {
|
|
123
|
+
export declare const CustomMenuItems: React.MemoExoticComponent<({ items, closePopover, setIsTemplate, setTemplateValue, startExpanded, ...rest }: {
|
|
116
124
|
items: TCustomTemplateItems | undefined;
|
|
117
125
|
closePopover?: () => void;
|
|
118
126
|
setIsTemplate: React.Dispatch<React.SetStateAction<boolean>>;
|
|
119
127
|
setTemplateValue: React.Dispatch<React.SetStateAction<string | null>>;
|
|
128
|
+
/** @see `loneSectionStartsExpanded` — the menu's only group opens itself. */
|
|
129
|
+
startExpanded?: boolean;
|
|
120
130
|
}) => import("react/jsx-runtime").JSX.Element>;
|
|
121
131
|
export declare const TemplateDropdownSelector: React.MemoExoticComponent<({ onItemSelect, onRemoveClick, items, templates, allowCustomValues, hasOnlyAllowedValues, value, size, ...rest }: ITemplateDropdownSelectorProps) => import("react/jsx-runtime").JSX.Element>;
|
|
122
|
-
|
|
132
|
+
/**
|
|
133
|
+
* `ui_type`s whose OWN editor renders templates as chips inline.
|
|
134
|
+
*
|
|
135
|
+
* For these the template SELECTOR must not take over: it replaces a control the
|
|
136
|
+
* author can type in with one they can only pick from. A Qorus test assertion's
|
|
137
|
+
* `Value` is the case this was written for — the IDE's own `auto.tsx` already
|
|
138
|
+
* renders it as template rich text (type freely, references become chips), and
|
|
139
|
+
* the same field reached through this form engine offered a dropdown and no way
|
|
140
|
+
* to type at all.
|
|
141
|
+
*
|
|
142
|
+
* `richtext` is reqraft's own; a consumer adds its types through the
|
|
143
|
+
* `templateAwareUiTypes` prop, exactly as it adds `rendererOnlyUiTypes`.
|
|
144
|
+
*/
|
|
145
|
+
export declare const BuiltInTemplateAwareUiTypes: string[];
|
|
146
|
+
export declare const isTemplateAwareUiType: (uiType?: string, extra?: string[]) => boolean;
|
|
147
|
+
/**
|
|
148
|
+
* The row channel belongs to the row's OWN editor: this field. It is read here
|
|
149
|
+
* and hidden from everything this field renders, so a field nested inside it —
|
|
150
|
+
* an expression operand, a list item — keeps drawing its own menu instead of
|
|
151
|
+
* publishing actions into a row menu that cannot say which value they act on.
|
|
152
|
+
* `undefined` outside a row, where this field draws its own menu too.
|
|
153
|
+
*/
|
|
154
|
+
export declare const TemplateField: React.MemoExoticComponent<(props: ITemplateFieldProps) => import("react/jsx-runtime").JSX.Element>;
|
|
123
155
|
//# sourceMappingURL=TemplateField.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TemplateField.d.ts","sourceRoot":"","sources":["../../../../../src/components/form/fields/template/TemplateField.tsx"],"names":[],"mappings":"AAiBA,OAAO,EAAE,kBAAkB,EAAE,MAAM,iDAAiD,CAAC;AACrF,OAAO,EAAE,oBAAoB,EAAE,MAAM,mDAAmD,CAAC;AACzF,OAAO,EAAE,oBAAoB,EAAE,MAAM,oDAAoD,CAAC;AAC1F,OAAO,EAAE,eAAe,EAAE,MAAM,2CAA2C,CAAC;AAC5E,OAA0B,EACxB,uBAAuB,EACxB,MAAM,uDAAuD,CAAC;AAE/D,OAAO,EACL,oBAAoB,EACpB,oBAAoB,EACrB,MAAM,mDAAmD,CAAC;AAC3D,OAAO,EAAE,yBAAyB,EAAE,UAAU,EAAE,MAAM,8BAA8B,CAAC;AAErF,OAAO,
|
|
1
|
+
{"version":3,"file":"TemplateField.d.ts","sourceRoot":"","sources":["../../../../../src/components/form/fields/template/TemplateField.tsx"],"names":[],"mappings":"AAiBA,OAAO,EAAE,kBAAkB,EAAE,MAAM,iDAAiD,CAAC;AACrF,OAAO,EAAE,oBAAoB,EAAE,MAAM,mDAAmD,CAAC;AACzF,OAAO,EAAE,oBAAoB,EAAE,MAAM,oDAAoD,CAAC;AAC1F,OAAO,EAAE,eAAe,EAAE,MAAM,2CAA2C,CAAC;AAC5E,OAA0B,EACxB,uBAAuB,EACxB,MAAM,uDAAuD,CAAC;AAE/D,OAAO,EACL,oBAAoB,EACpB,oBAAoB,EACrB,MAAM,mDAAmD,CAAC;AAC3D,OAAO,EAAE,yBAAyB,EAAE,UAAU,EAAE,MAAM,8BAA8B,CAAC;AAErF,OAAO,KAAkE,MAAM,OAAO,CAAC;AAEvF,OAAO,EAEL,cAAc,EACd,gBAAgB,EAIhB,eAAe,EAChB,MAAM,+BAA+B,CAAC;AAWvC,OAAO,EAAqB,uBAAuB,EAAE,MAAM,2BAA2B,CAAC;AAIvF,OAAO,EAAe,kBAAkB,EAAE,MAAM,yBAAyB,CAAC;AAE1E,OAAO,EAAyB,UAAU,IAAI,cAAc,EAAE,MAAM,uBAAuB,CAAC;AAmB5F,OAAO,EAAE,cAAc,EAAE,gBAAgB,EAAE,eAAe,EAAE,CAAC;AAC7D,YAAY,EAAE,cAAc,IAAI,UAAU,EAAE,CAAC;AAU7C,eAAO,MAAM,kBAAkB,EAAE,oBAOhC,CAAC;AAyCF,MAAM,WAAW,mBAAoB,SAAQ,OAAO,CAClD,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