@integration-app/react 2.0.3-beta.3 → 2.0.4-beta.0
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/cjs/_modules/awesome-debounce-promise.cjs +1 -1
- package/dist/cjs/_modules/react-use-promise.cjs +3 -2
- package/dist/cjs/components/AdvancedOptions.cjs +1 -1
- package/dist/cjs/components/Button/Button.cjs +8 -7
- package/dist/cjs/components/Button/Button.module.css.cjs +1 -1
- package/dist/cjs/components/ComboBox/{index.cjs → ComboBox.cjs} +1 -24
- package/dist/cjs/components/ComboBox/Dropdown/ActiveCategoryContent.cjs +23 -0
- package/dist/cjs/components/ComboBox/Dropdown/{Tabs → Categories}/CustomValue.cjs +6 -4
- package/dist/cjs/components/ComboBox/Dropdown/Categories/Formulas/DropdownPanelFormulaConfig.cjs +111 -0
- package/dist/cjs/components/ComboBox/Dropdown/Categories/Formulas/index.cjs +21 -0
- package/dist/cjs/components/ComboBox/Dropdown/{Tabs → Categories}/Lookup.cjs +100 -89
- package/dist/cjs/components/ComboBox/Dropdown/Categories/LookupOptions/ParametersPanel.cjs +147 -0
- package/dist/cjs/components/ComboBox/Dropdown/Categories/LookupOptions/UiComponents.cjs +135 -0
- package/dist/cjs/components/ComboBox/Dropdown/{Tabs → Categories}/LookupOptions/index.cjs +156 -36
- package/dist/cjs/components/ComboBox/Dropdown/{Tabs → Categories}/Options.cjs +6 -4
- package/dist/cjs/components/ComboBox/Dropdown/Categories/Root.cjs +28 -0
- package/dist/cjs/components/ComboBox/Dropdown/{Tabs → Categories}/Variables.cjs +6 -4
- package/dist/cjs/components/ComboBox/Dropdown/Categories/getLookupCollection.cjs +42 -0
- package/dist/cjs/components/ComboBox/Dropdown/DrillUpButton.cjs +35 -0
- package/dist/cjs/components/ComboBox/Dropdown/Dropdown.cjs +32 -74
- package/dist/cjs/components/ComboBox/Dropdown/Option.cjs +18 -25
- package/dist/cjs/components/ComboBox/Dropdown/OptionsList.cjs +60 -51
- package/dist/cjs/components/ComboBox/Dropdown/SearchInput.cjs +7 -18
- package/dist/cjs/components/ComboBox/Dropdown/categoryContentMapping.cjs +71 -0
- package/dist/cjs/components/ComboBox/DropdownPopover/helpers.cjs +22 -0
- package/dist/cjs/components/ComboBox/DropdownPopover/index.cjs +101 -0
- package/dist/cjs/components/ComboBox/Edit/OptionSelector.cjs +44 -56
- package/dist/cjs/components/ComboBox/Edit/OptionSelector.module.css.cjs +1 -1
- package/dist/cjs/components/ComboBox/Edit/TextInput.cjs +44 -59
- package/dist/cjs/components/ComboBox/Value/{index.cjs → ComboBoxValue.cjs} +3 -5
- package/dist/cjs/components/ComboBox/Value/Formula.cjs +1 -1
- package/dist/cjs/components/ComboBox/Value/Schema.cjs +5 -9
- package/dist/cjs/components/ComboBox/Value/isDefinedValue.cjs +15 -0
- package/dist/cjs/components/ComboBox/context/combobox-context.cjs +3 -1
- package/dist/cjs/components/ComboBox/context/combobox-dropdown-context.cjs +163 -107
- package/dist/cjs/components/ComboBox/context/combobox-dropdown-search.cjs +9 -8
- package/dist/cjs/components/ComboBox/context/combobox-dropdown-stack.cjs +26 -13
- package/dist/cjs/components/ComboBox/context/helpers.cjs +74 -48
- package/dist/cjs/components/ComboBox/options-factories/boolean.cjs +8 -4
- package/dist/cjs/components/ComboBox/options-factories/constant.cjs +10 -4
- package/dist/cjs/components/ComboBox/options-factories/custom-field.cjs +21 -9
- package/dist/cjs/components/ComboBox/options-factories/enum.cjs +11 -6
- package/dist/cjs/components/{DataBuilder/Formula/options-factory.cjs → ComboBox/options-factories/formula.cjs} +19 -8
- package/dist/cjs/components/ComboBox/options-factories/{schema.cjs → generate-schema-options.cjs} +24 -68
- package/dist/cjs/components/ComboBox/options-factories/object-fields.cjs +13 -12
- package/dist/cjs/components/ComboBox/options-factories/reference-records.cjs +9 -5
- package/dist/cjs/components/ComboBox/options-factories/root.cjs +108 -0
- package/dist/cjs/components/ComboBox/options-factories/{base.cjs → utils.cjs} +1 -1
- package/dist/cjs/components/ComboBox/options-factories/variable.cjs +66 -0
- package/dist/cjs/components/ComboBox/types.cjs +13 -12
- package/dist/cjs/components/ComboBox/value-spec.cjs +1 -1
- package/dist/cjs/components/ComboBoxElements/ComboBoxTag.cjs +8 -7
- package/dist/cjs/components/ComboBoxElements/ComboBoxTag.module.css.cjs +1 -1
- package/dist/cjs/components/ComboBoxElements/FieldWrapper.cjs +1 -1
- package/dist/cjs/components/ComboBoxElements/Popper.cjs +1 -1
- package/dist/cjs/components/ComboBoxElements/Popper.module.css.cjs +2 -2
- package/dist/cjs/components/ComboBoxElements/TipTapEditor/Editor.cjs +3 -3
- package/dist/cjs/components/ComboBoxElements/TipTapEditor/Editor.module.css.cjs +1 -1
- package/dist/cjs/components/ComboBoxElements/TipTapEditor/EditorStandAlone.cjs +1 -5
- package/dist/cjs/components/ComboBoxElements/TipTapEditor/TagComponent.cjs +9 -91
- package/dist/cjs/components/ComboBoxElements/TipTapEditor/TagNodeView.cjs +81 -0
- package/dist/cjs/components/ComboBoxElements/TipTapEditor/constants.cjs +15 -0
- package/dist/cjs/components/ComboBoxElements/TipTapEditor/extension-keyboardShortcuts.cjs +1 -1
- package/dist/cjs/components/ComboBoxElements/TipTapEditor/helpers/clicks.cjs +3 -3
- package/dist/cjs/components/ComboBoxElements/TipTapEditor/helpers/common.cjs +13 -1
- package/dist/cjs/components/ComboBoxElements/TipTapEditor/helpers/transformEditorSchemaToValue.cjs +4 -4
- package/dist/cjs/components/ComboBoxElements/TipTapEditor/helpers/transformValueToEditorSchema.cjs +2 -3
- package/dist/cjs/components/ComboBoxElements/inputs.module.css.cjs +1 -1
- package/dist/cjs/components/DataBuilder/Condition/index.cjs +6 -6
- package/dist/cjs/components/DataBuilder/Field.cjs +5 -4
- package/dist/cjs/components/DataBuilder/FieldDelete.cjs +3 -2
- package/dist/cjs/components/DataBuilder/FieldDescription.cjs +1 -1
- package/dist/cjs/components/DataBuilder/FieldList.cjs +1 -1
- package/dist/cjs/components/DataBuilder/FieldName.cjs +1 -1
- package/dist/cjs/components/DataBuilder/FieldTypeSelector/convertableSchemaToSchema.cjs +21 -0
- package/dist/cjs/components/DataBuilder/FieldTypeSelector/index.cjs +4 -13
- package/dist/cjs/components/DataBuilder/FieldValue/Array.cjs +1 -1
- package/dist/cjs/components/DataBuilder/FieldValue/Default.cjs +3 -3
- package/dist/cjs/components/DataBuilder/FieldValue/ScalarArray.cjs +1 -1
- package/dist/cjs/components/DataBuilder/FieldValue/ScalarArray.module.css.cjs +1 -1
- package/dist/cjs/components/DataBuilder/FieldValue/index.cjs +1 -1
- package/dist/cjs/components/DataBuilder/Filter.cjs +1 -1
- package/dist/cjs/components/DataBuilder/Form.cjs +1 -1
- package/dist/cjs/components/DataBuilder/Formula/case.cjs +39 -10
- package/dist/cjs/components/DataBuilder/Formula/concat.cjs +5 -5
- package/dist/cjs/components/DataBuilder/Formula/copy.cjs +9 -9
- package/dist/cjs/components/DataBuilder/Formula/domainFromEmail.cjs +5 -5
- package/dist/cjs/components/DataBuilder/Formula/extractDate.cjs +5 -5
- package/dist/cjs/components/DataBuilder/Formula/extractTime.cjs +5 -5
- package/dist/cjs/components/DataBuilder/Formula/findAppRecordId.cjs +4 -4
- package/dist/cjs/components/DataBuilder/Formula/findExternalRecordId.cjs +4 -4
- package/dist/cjs/components/DataBuilder/Formula/firstName.cjs +5 -5
- package/dist/cjs/components/DataBuilder/Formula/firstNotEmpty.cjs +7 -7
- package/dist/cjs/components/DataBuilder/Formula/index.cjs +1 -1
- package/dist/cjs/components/DataBuilder/Formula/iterate.cjs +5 -5
- package/dist/cjs/components/DataBuilder/Formula/jsonata.cjs +5 -5
- package/dist/cjs/components/DataBuilder/Formula/lastName.cjs +5 -5
- package/dist/cjs/components/DataBuilder/Formula/lookup.cjs +7 -6
- package/dist/cjs/components/DataBuilder/Formula/map.cjs +5 -5
- package/dist/cjs/components/DataBuilder/Formula/mergeObjects.cjs +7 -7
- package/dist/cjs/components/DataBuilder/Formula/noUi.cjs +1 -1
- package/dist/cjs/components/DataBuilder/Formula/record.cjs +1 -1
- package/dist/cjs/components/DataBuilder/Formula/styles.module.css.cjs +1 -1
- package/dist/cjs/components/DataBuilder/Formula/tpl.cjs +1 -1
- package/dist/cjs/components/DataBuilder/Formula/var.cjs +4 -3
- package/dist/cjs/components/DataBuilder/Nested/ArrayItems.cjs +5 -5
- package/dist/cjs/components/DataBuilder/Nested/FieldControlPanel/AddingFieldSelector.cjs +9 -9
- package/dist/cjs/components/DataBuilder/Nested/FieldControlPanel/ControlPanel.cjs +6 -3
- package/dist/cjs/components/DataBuilder/Nested/FieldControlPanel/ControlPanelForNonObjectRootField.cjs +3 -2
- package/dist/cjs/components/DataBuilder/Nested/FieldControlPanel/index.cjs +1 -1
- package/dist/cjs/components/DataBuilder/Nested/FieldListWrapper/FieldListWrapper.module.css.cjs +1 -1
- package/dist/cjs/components/DataBuilder/Nested/FieldListWrapper/index.cjs +3 -2
- package/dist/cjs/components/DataBuilder/Nested/NoSchema.cjs +1 -1
- package/dist/cjs/components/DataBuilder/Nested/ObjectFields.cjs +19 -3
- package/dist/cjs/components/DataBuilder/Nested/ValueMapping.cjs +11 -11
- package/dist/cjs/components/DataBuilder/Nested.cjs +1 -1
- package/dist/cjs/components/DataBuilder/data-builder-context.cjs +1 -1
- package/dist/cjs/components/DataBuilder/data-field.cjs +1 -1
- package/dist/cjs/components/DataBuilder/field-context.cjs +1 -1
- package/dist/cjs/components/DataBuilder/hooks.cjs +1 -1
- package/dist/cjs/components/DataBuilder/index.cjs +2 -2
- package/dist/cjs/components/DataBuilder/styles.module.css.cjs +1 -1
- package/dist/cjs/components/DataBuilderUI/FieldControlPanel/FieldControlPanel.module.css.cjs +2 -2
- package/dist/cjs/components/DataBuilderUI/FieldControlPanel/index.cjs +1 -1
- package/dist/cjs/components/DataBuilderUI/index.cjs +3 -2
- package/dist/cjs/components/DataBuilderUI/styles.module.css.cjs +1 -1
- package/dist/cjs/components/DataInput/index.cjs +1 -1
- package/dist/cjs/components/DataLinks/data-link-tables-option-factory.cjs +3 -3
- package/dist/cjs/components/DropdownUI/BackButton.cjs +72 -0
- package/dist/cjs/components/DropdownUI/Content.cjs +26 -0
- package/dist/cjs/components/DropdownUI/ErrorHeading.cjs +42 -0
- package/dist/cjs/components/DropdownUI/Item.cjs +75 -0
- package/dist/cjs/components/DropdownUI/ItemIcon.cjs +69 -0
- package/dist/cjs/components/DropdownUI/ItemNestingIndicator.cjs +64 -0
- package/dist/cjs/components/DropdownUI/ItemTitle.cjs +30 -0
- package/dist/cjs/components/DropdownUI/List.cjs +38 -0
- package/dist/cjs/components/DropdownUI/ListHeader.cjs +31 -0
- package/dist/cjs/components/DropdownUI/LoadingItem.cjs +52 -0
- package/dist/cjs/components/DropdownUI/NoOptionsHeading.cjs +31 -0
- package/dist/cjs/components/DropdownUI/Panel.cjs +28 -0
- package/dist/cjs/components/DropdownUI/PopoverContainer.cjs +34 -0
- package/dist/cjs/components/DropdownUI/Search.cjs +48 -0
- package/dist/cjs/components/DropdownUI/constants.cjs +15 -0
- package/dist/cjs/components/DropdownUI/index.cjs +29 -202
- package/dist/cjs/components/DropdownUI/item-context.cjs +20 -0
- package/dist/cjs/components/DropdownUI/sva-recipe.cjs +182 -0
- package/dist/cjs/components/DropdownUI/utils.cjs +15 -0
- package/dist/cjs/components/Formula/index.cjs +1 -1
- package/dist/cjs/components/Formula/styles.module.css.cjs +1 -1
- package/dist/cjs/components/InlineEditable.cjs +1 -1
- package/dist/cjs/components/InlineEditable.module.css.cjs +1 -1
- package/dist/cjs/components/Input/Input.cjs +1 -1
- package/dist/cjs/components/Input/Input.module.css.cjs +1 -1
- package/dist/cjs/components/Input/SearchInput.cjs +1 -1
- package/dist/cjs/components/Input/SearchInput.module.css.cjs +1 -1
- package/dist/cjs/components/Input/index.cjs +1 -1
- package/dist/cjs/components/IntegrationElements/DataSource/DataCollectionSelect.cjs +5 -5
- package/dist/cjs/components/IntegrationElements/DataSource/UdmSelect.cjs +3 -3
- package/dist/cjs/components/IntegrationElements/DataSource/index.cjs +1 -1
- package/dist/cjs/components/IntegrationElements/integration-element-context.cjs +1 -1
- package/dist/cjs/components/Integrations/IntegrationAvatar/index.cjs +1 -1
- package/dist/cjs/components/Integrations/IntegrationItem/index.cjs +1 -1
- package/dist/cjs/components/Integrations/IntegrationItemSkeleton.cjs +2 -1
- package/dist/cjs/components/Notification/Notification.module.css.cjs +1 -1
- package/dist/cjs/components/Notification/index.cjs +5 -4
- package/dist/cjs/components/Popover/Popover.module.css.cjs +1 -1
- package/dist/cjs/components/Popover/index.cjs +2 -1
- package/dist/cjs/components/Portal/index.cjs +1 -2
- package/dist/cjs/components/Radio/Radio.module.css.cjs +1 -1
- package/dist/cjs/components/Radio/index.cjs +1 -1
- package/dist/cjs/components/SimpleInput/SimpleInput.cjs +1 -1
- package/dist/cjs/components/SimpleInput/SimpleInput.module.css.cjs +1 -1
- package/dist/cjs/components/SimpleInput/SimpleRadio.cjs +1 -1
- package/dist/cjs/components/SimpleInput/SimpleTextarea.cjs +1 -1
- package/dist/cjs/components/SimpleMenu/index.cjs +1 -1
- package/dist/cjs/components/SvgIcon/BasicEntities.cjs +3 -3
- package/dist/cjs/components/SvgIcon/index.cjs +122 -235
- package/dist/cjs/components/SvgIcon/svg-icon-type.cjs +127 -0
- package/dist/cjs/components/Tag/Components.cjs +3 -2
- package/dist/cjs/components/Tag/SegmentSeparator.cjs +3 -2
- package/dist/cjs/components/Tag/{index.cjs → Tag.cjs} +3 -8
- package/dist/cjs/components/Tag/TagPlaceholder.cjs +3 -3
- package/dist/cjs/components/Tag/styles.module.css.cjs +1 -1
- package/dist/cjs/components/Textarea/Textarea.module.css.cjs +1 -1
- package/dist/cjs/components/Textarea/index.cjs +1 -1
- package/dist/cjs/components/Toggle/Toggle.cjs +11 -3
- package/dist/cjs/components/Toggle/Toggle.module.css.cjs +1 -1
- package/dist/cjs/components/Toggle/ToggleOnOff.cjs +3 -2
- package/dist/cjs/components/Tooltip/index.cjs +63 -28
- package/dist/cjs/components/Truncate/index.cjs +6 -4
- package/dist/cjs/contexts/integration-app-client-context.cjs +1 -1
- package/dist/cjs/contexts/integration-app-connection-context.cjs +1 -1
- package/dist/cjs/contexts/integration-app-context.cjs +1 -1
- package/dist/cjs/contexts/integration-app-integration-context.cjs +1 -1
- package/dist/cjs/helpers/Debounce.cjs +1 -1
- package/dist/cjs/helpers/getRefElement.cjs +1 -1
- package/dist/cjs/hooks/actions/useAction.cjs +1 -1
- package/dist/cjs/hooks/actions/useActionInstance.cjs +1 -1
- package/dist/cjs/hooks/actions/useActionInstances.cjs +1 -1
- package/dist/cjs/hooks/actions/useActions.cjs +1 -1
- package/dist/cjs/hooks/app-data-schemas/useAppDataSchema.cjs +1 -1
- package/dist/cjs/hooks/app-data-schemas/useAppDataSchemaInstance.cjs +1 -1
- package/dist/cjs/hooks/app-data-schemas/useAppDataSchemaInstances.cjs +1 -1
- package/dist/cjs/hooks/app-data-schemas/useAppDataSchemas.cjs +1 -1
- package/dist/cjs/hooks/app-events/useAppEventSubscription.cjs +1 -1
- package/dist/cjs/hooks/app-events/useAppEventSubscriptions.cjs +1 -1
- package/dist/cjs/hooks/app-events/useAppEventType.cjs +1 -1
- package/dist/cjs/hooks/app-events/useAppEventTypes.cjs +1 -1
- package/dist/cjs/hooks/app-events/useAppEvents.cjs +1 -1
- package/dist/cjs/hooks/customers/useCustomer.cjs +1 -1
- package/dist/cjs/hooks/customers/useCustomers.cjs +1 -1
- package/dist/cjs/hooks/data-collections/useDataCollectionSpec.cjs +1 -1
- package/dist/cjs/hooks/data-links/useDataLinkTable.cjs +1 -1
- package/dist/cjs/hooks/data-links/useDataLinkTableInstance.cjs +1 -1
- package/dist/cjs/hooks/data-links/useDataLinkTableInstances.cjs +1 -1
- package/dist/cjs/hooks/data-links/useDataLinkTables.cjs +1 -1
- package/dist/cjs/hooks/data-sources/useDataSource.cjs +1 -1
- package/dist/cjs/hooks/data-sources/useDataSourceInstance.cjs +1 -1
- package/dist/cjs/hooks/data-sources/useDataSourceInstanceCollection.cjs +1 -1
- package/dist/cjs/hooks/data-sources/useDataSourceInstances.cjs +1 -1
- package/dist/cjs/hooks/data-sources/useDataSources.cjs +1 -1
- package/dist/cjs/hooks/external-events/useExternalEventSubscription.cjs +1 -1
- package/dist/cjs/hooks/external-events/useExternalEventSubscriptions.cjs +1 -1
- package/dist/cjs/hooks/field-mappings/useFieldMapping.cjs +1 -1
- package/dist/cjs/hooks/field-mappings/useFieldMappingInstance.cjs +1 -1
- package/dist/cjs/hooks/field-mappings/useFieldMappingInstances.cjs +1 -1
- package/dist/cjs/hooks/field-mappings/useFieldMappings.cjs +1 -1
- package/dist/cjs/hooks/flows/useFlow.cjs +1 -1
- package/dist/cjs/hooks/flows/useFlowInstance.cjs +1 -1
- package/dist/cjs/hooks/flows/useFlowInstances.cjs +1 -1
- package/dist/cjs/hooks/flows/useFlowRun.cjs +1 -1
- package/dist/cjs/hooks/flows/useFlowRuns.cjs +1 -1
- package/dist/cjs/hooks/flows/useFlows.cjs +1 -1
- package/dist/cjs/hooks/integrations/useConnection.cjs +1 -1
- package/dist/cjs/hooks/integrations/useConnections.cjs +1 -1
- package/dist/cjs/hooks/integrations/useConnectorSpec.cjs +1 -1
- package/dist/cjs/hooks/integrations/useIntegration.cjs +1 -1
- package/dist/cjs/hooks/integrations/useIntegrations.cjs +1 -1
- package/dist/cjs/hooks/keyboard-events.cjs +75 -25
- package/dist/cjs/hooks/scenarios/useScenario.cjs +1 -1
- package/dist/cjs/hooks/scenarios/useScenarios.cjs +1 -1
- package/dist/cjs/hooks/screens/useScreen.cjs +1 -1
- package/dist/cjs/hooks/useAutofocus.cjs +1 -1
- package/dist/cjs/hooks/useDeepEffect.cjs +1 -1
- package/dist/cjs/hooks/useElement.cjs +1 -1
- package/dist/cjs/hooks/useElements.cjs +1 -1
- package/dist/cjs/hooks/useEventStopPropagation.cjs +1 -1
- package/dist/cjs/hooks/useForwardedRef.cjs +1 -1
- package/dist/cjs/hooks/useIntegrationAppSWR.cjs +1 -1
- package/dist/cjs/hooks/useIsTextTruncated.cjs +1 -1
- package/dist/cjs/hooks/useResizeObserver.cjs +1 -1
- package/dist/cjs/hooks/useWindowEvent.cjs +1 -1
- package/dist/cjs/index.cjs +86 -97
- package/dist/cjs/styled-system/css/conditions.cjs +4 -2
- package/dist/cjs/styled-system/css/css.cjs +1 -1
- package/dist/cjs/styled-system/css/cva.cjs +1 -1
- package/dist/cjs/styled-system/css/cx.cjs +1 -1
- package/dist/cjs/styled-system/css/sva.cjs +1 -1
- package/dist/cjs/styled-system/helpers.cjs +16 -6
- package/dist/cjs/styled-system/jsx/box.cjs +1 -1
- package/dist/cjs/styled-system/jsx/center.cjs +1 -1
- package/dist/cjs/styled-system/jsx/circle.cjs +1 -1
- package/dist/cjs/styled-system/jsx/factory-helper.cjs +1 -1
- package/dist/cjs/styled-system/jsx/factory.cjs +1 -1
- package/dist/cjs/styled-system/jsx/flex.cjs +1 -1
- package/dist/cjs/styled-system/jsx/is-valid-prop.cjs +1 -1
- package/dist/cjs/styled-system/jsx/visually-hidden.cjs +1 -1
- package/dist/cjs/styled-system/patterns/box.cjs +1 -1
- package/dist/cjs/styled-system/patterns/center.cjs +1 -1
- package/dist/cjs/styled-system/patterns/circle.cjs +1 -1
- package/dist/cjs/styled-system/patterns/flex.cjs +1 -1
- package/dist/cjs/styled-system/patterns/visually-hidden.cjs +6 -2
- package/dist/cjs/styled-system/recipes/alert.cjs +59 -0
- package/dist/cjs/styled-system/recipes/avatar.cjs +1 -1
- package/dist/cjs/styled-system/recipes/badge.cjs +49 -0
- package/dist/cjs/styled-system/recipes/button.cjs +1 -1
- package/dist/cjs/styled-system/recipes/create-recipe.cjs +1 -1
- package/dist/cjs/styled-system/recipes/icon.cjs +1 -1
- package/dist/cjs/styled-system/recipes/input.cjs +47 -0
- package/dist/cjs/styled-system/recipes/menu.cjs +1 -1
- package/dist/cjs/styled-system/recipes/popover.cjs +1 -1
- package/dist/cjs/styled-system/recipes/skeleton.cjs +1 -1
- package/dist/cjs/styled-system/recipes/spinner.cjs +1 -1
- package/dist/cjs/styled-system/recipes/text.cjs +1 -1
- package/dist/cjs/styled-system/recipes/tooltip.cjs +1 -1
- package/dist/cjs/styled-system/tokens/index.cjs +1 -1
- package/dist/cjs/ui-kit/avatar.cjs +1 -1
- package/dist/cjs/ui-kit/button.cjs +2 -1
- package/dist/cjs/ui-kit/spinner.cjs +2 -1
- package/dist/cjs/ui-kit/styled/alert.cjs +28 -0
- package/dist/cjs/ui-kit/styled/avatar.cjs +1 -1
- package/dist/cjs/ui-kit/styled/badge.cjs +23 -0
- package/dist/cjs/ui-kit/styled/button.cjs +2 -1
- package/dist/cjs/ui-kit/styled/icon-button.cjs +25 -0
- package/dist/cjs/ui-kit/styled/icon.cjs +2 -1
- package/dist/cjs/ui-kit/styled/input.cjs +23 -0
- package/dist/cjs/ui-kit/styled/menu.cjs +1 -1
- package/dist/cjs/ui-kit/styled/popover.cjs +9 -3
- package/dist/cjs/ui-kit/styled/skeleton.cjs +2 -1
- package/dist/cjs/ui-kit/styled/spinner.cjs +2 -1
- package/dist/cjs/ui-kit/styled/text.cjs +2 -1
- package/dist/cjs/ui-kit/styled/tooltip.cjs +1 -1
- package/dist/cjs/ui-kit/styled/utils/create-style-context.cjs +2 -1
- package/dist/esm/_modules/awesome-debounce-promise.mjs +1 -1
- package/dist/esm/_modules/react-use-promise.mjs +3 -2
- package/dist/esm/components/AdvancedOptions.mjs +1 -1
- package/dist/esm/components/Button/Button.mjs +3 -2
- package/dist/esm/components/Button/Button.module.css.mjs +1 -1
- package/dist/esm/components/ComboBox/{index.mjs → ComboBox.mjs} +2 -15
- package/dist/esm/components/ComboBox/Dropdown/ActiveCategoryContent.mjs +21 -0
- package/dist/esm/components/ComboBox/Dropdown/{Tabs → Categories}/CustomValue.mjs +6 -4
- package/dist/esm/components/ComboBox/Dropdown/Categories/Formulas/DropdownPanelFormulaConfig.mjs +109 -0
- package/dist/esm/components/ComboBox/Dropdown/Categories/Formulas/index.mjs +19 -0
- package/dist/esm/components/ComboBox/Dropdown/{Tabs → Categories}/Lookup.mjs +100 -88
- package/dist/esm/components/ComboBox/Dropdown/Categories/LookupOptions/ParametersPanel.mjs +145 -0
- package/dist/esm/components/ComboBox/Dropdown/Categories/LookupOptions/UiComponents.mjs +128 -0
- package/dist/esm/components/ComboBox/Dropdown/{Tabs → Categories}/LookupOptions/index.mjs +157 -39
- package/dist/esm/components/ComboBox/Dropdown/{Tabs → Categories}/Options.mjs +6 -4
- package/dist/esm/components/ComboBox/Dropdown/Categories/Root.mjs +26 -0
- package/dist/esm/components/ComboBox/Dropdown/{Tabs → Categories}/Variables.mjs +6 -4
- package/dist/esm/components/ComboBox/Dropdown/Categories/getLookupCollection.mjs +40 -0
- package/dist/esm/components/ComboBox/Dropdown/DrillUpButton.mjs +33 -0
- package/dist/esm/components/ComboBox/Dropdown/Dropdown.mjs +33 -74
- package/dist/esm/components/ComboBox/Dropdown/Option.mjs +19 -26
- package/dist/esm/components/ComboBox/Dropdown/OptionsList.mjs +62 -53
- package/dist/esm/components/ComboBox/Dropdown/SearchInput.mjs +7 -18
- package/dist/esm/components/ComboBox/Dropdown/categoryContentMapping.mjs +68 -0
- package/dist/esm/components/ComboBox/DropdownPopover/helpers.mjs +20 -0
- package/dist/esm/components/ComboBox/DropdownPopover/index.mjs +97 -0
- package/dist/esm/components/ComboBox/Edit/OptionSelector.mjs +38 -50
- package/dist/esm/components/ComboBox/Edit/OptionSelector.module.css.mjs +1 -1
- package/dist/esm/components/ComboBox/Edit/TextInput.mjs +45 -60
- package/dist/esm/components/ComboBox/Value/{index.mjs → ComboBoxValue.mjs} +4 -3
- package/dist/esm/components/ComboBox/Value/Formula.mjs +1 -1
- package/dist/esm/components/ComboBox/Value/Schema.mjs +3 -6
- package/dist/esm/components/ComboBox/Value/isDefinedValue.mjs +13 -0
- package/dist/esm/components/ComboBox/context/combobox-context.mjs +4 -2
- package/dist/esm/components/ComboBox/context/combobox-dropdown-context.mjs +164 -108
- package/dist/esm/components/ComboBox/context/combobox-dropdown-search.mjs +10 -9
- package/dist/esm/components/ComboBox/context/combobox-dropdown-stack.mjs +27 -14
- package/dist/esm/components/ComboBox/context/helpers.mjs +72 -47
- package/dist/esm/components/ComboBox/options-factories/boolean.mjs +8 -4
- package/dist/esm/components/ComboBox/options-factories/constant.mjs +10 -4
- package/dist/esm/components/ComboBox/options-factories/custom-field.mjs +19 -7
- package/dist/esm/components/ComboBox/options-factories/enum.mjs +10 -5
- package/dist/esm/components/{DataBuilder/Formula/options-factory.mjs → ComboBox/options-factories/formula.mjs} +18 -7
- package/dist/esm/components/ComboBox/options-factories/{schema.mjs → generate-schema-options.mjs} +25 -68
- package/dist/esm/components/ComboBox/options-factories/object-fields.mjs +9 -8
- package/dist/esm/components/ComboBox/options-factories/reference-records.mjs +8 -4
- package/dist/esm/components/ComboBox/options-factories/root.mjs +106 -0
- package/dist/esm/components/ComboBox/options-factories/{base.mjs → utils.mjs} +1 -1
- package/dist/esm/components/ComboBox/options-factories/variable.mjs +64 -0
- package/dist/esm/components/ComboBox/types.mjs +13 -12
- package/dist/esm/components/ComboBox/value-spec.mjs +1 -1
- package/dist/esm/components/ComboBoxElements/ComboBoxTag.mjs +4 -3
- package/dist/esm/components/ComboBoxElements/ComboBoxTag.module.css.mjs +1 -1
- package/dist/esm/components/ComboBoxElements/FieldWrapper.mjs +1 -1
- package/dist/esm/components/ComboBoxElements/Popper.mjs +1 -1
- package/dist/esm/components/ComboBoxElements/Popper.module.css.mjs +2 -2
- package/dist/esm/components/ComboBoxElements/TipTapEditor/Editor.mjs +3 -3
- package/dist/esm/components/ComboBoxElements/TipTapEditor/Editor.module.css.mjs +1 -1
- package/dist/esm/components/ComboBoxElements/TipTapEditor/EditorStandAlone.mjs +1 -5
- package/dist/esm/components/ComboBoxElements/TipTapEditor/TagComponent.mjs +7 -84
- package/dist/esm/components/ComboBoxElements/TipTapEditor/TagNodeView.mjs +79 -0
- package/dist/esm/components/ComboBoxElements/TipTapEditor/constants.mjs +12 -0
- package/dist/esm/components/ComboBoxElements/TipTapEditor/extension-keyboardShortcuts.mjs +1 -1
- package/dist/esm/components/ComboBoxElements/TipTapEditor/helpers/clicks.mjs +2 -2
- package/dist/esm/components/ComboBoxElements/TipTapEditor/helpers/common.mjs +13 -2
- package/dist/esm/components/ComboBoxElements/TipTapEditor/helpers/transformEditorSchemaToValue.mjs +2 -2
- package/dist/esm/components/ComboBoxElements/TipTapEditor/helpers/transformValueToEditorSchema.mjs +2 -3
- package/dist/esm/components/ComboBoxElements/inputs.module.css.mjs +1 -1
- package/dist/esm/components/DataBuilder/Condition/index.mjs +2 -2
- package/dist/esm/components/DataBuilder/Field.mjs +4 -3
- package/dist/esm/components/DataBuilder/FieldDelete.mjs +3 -2
- package/dist/esm/components/DataBuilder/FieldDescription.mjs +1 -1
- package/dist/esm/components/DataBuilder/FieldList.mjs +1 -1
- package/dist/esm/components/DataBuilder/FieldName.mjs +1 -1
- package/dist/esm/components/DataBuilder/FieldTypeSelector/convertableSchemaToSchema.mjs +19 -0
- package/dist/esm/components/DataBuilder/FieldTypeSelector/index.mjs +4 -12
- package/dist/esm/components/DataBuilder/FieldValue/Array.mjs +1 -1
- package/dist/esm/components/DataBuilder/FieldValue/Default.mjs +2 -2
- package/dist/esm/components/DataBuilder/FieldValue/ScalarArray.mjs +1 -1
- package/dist/esm/components/DataBuilder/FieldValue/ScalarArray.module.css.mjs +1 -1
- package/dist/esm/components/DataBuilder/FieldValue/index.mjs +1 -1
- package/dist/esm/components/DataBuilder/Filter.mjs +1 -1
- package/dist/esm/components/DataBuilder/Form.mjs +1 -1
- package/dist/esm/components/DataBuilder/Formula/case.mjs +33 -4
- package/dist/esm/components/DataBuilder/Formula/concat.mjs +2 -2
- package/dist/esm/components/DataBuilder/Formula/copy.mjs +3 -3
- package/dist/esm/components/DataBuilder/Formula/domainFromEmail.mjs +2 -2
- package/dist/esm/components/DataBuilder/Formula/extractDate.mjs +2 -2
- package/dist/esm/components/DataBuilder/Formula/extractTime.mjs +2 -2
- package/dist/esm/components/DataBuilder/Formula/findAppRecordId.mjs +2 -2
- package/dist/esm/components/DataBuilder/Formula/findExternalRecordId.mjs +2 -2
- package/dist/esm/components/DataBuilder/Formula/firstName.mjs +2 -2
- package/dist/esm/components/DataBuilder/Formula/firstNotEmpty.mjs +2 -2
- package/dist/esm/components/DataBuilder/Formula/index.mjs +1 -1
- package/dist/esm/components/DataBuilder/Formula/iterate.mjs +2 -2
- package/dist/esm/components/DataBuilder/Formula/jsonata.mjs +2 -2
- package/dist/esm/components/DataBuilder/Formula/lastName.mjs +2 -2
- package/dist/esm/components/DataBuilder/Formula/lookup.mjs +5 -4
- package/dist/esm/components/DataBuilder/Formula/map.mjs +2 -2
- package/dist/esm/components/DataBuilder/Formula/mergeObjects.mjs +2 -2
- package/dist/esm/components/DataBuilder/Formula/noUi.mjs +1 -1
- package/dist/esm/components/DataBuilder/Formula/record.mjs +1 -1
- package/dist/esm/components/DataBuilder/Formula/styles.module.css.mjs +1 -1
- package/dist/esm/components/DataBuilder/Formula/tpl.mjs +1 -1
- package/dist/esm/components/DataBuilder/Formula/var.mjs +3 -2
- package/dist/esm/components/DataBuilder/Nested/ArrayItems.mjs +2 -2
- package/dist/esm/components/DataBuilder/Nested/FieldControlPanel/AddingFieldSelector.mjs +3 -3
- package/dist/esm/components/DataBuilder/Nested/FieldControlPanel/ControlPanel.mjs +6 -3
- package/dist/esm/components/DataBuilder/Nested/FieldControlPanel/ControlPanelForNonObjectRootField.mjs +3 -2
- package/dist/esm/components/DataBuilder/Nested/FieldControlPanel/index.mjs +1 -1
- package/dist/esm/components/DataBuilder/Nested/FieldListWrapper/FieldListWrapper.module.css.mjs +1 -1
- package/dist/esm/components/DataBuilder/Nested/FieldListWrapper/index.mjs +3 -2
- package/dist/esm/components/DataBuilder/Nested/NoSchema.mjs +1 -1
- package/dist/esm/components/DataBuilder/Nested/ObjectFields.mjs +20 -4
- package/dist/esm/components/DataBuilder/Nested/ValueMapping.mjs +3 -3
- package/dist/esm/components/DataBuilder/Nested.mjs +1 -1
- package/dist/esm/components/DataBuilder/data-builder-context.mjs +1 -1
- package/dist/esm/components/DataBuilder/data-field.mjs +1 -1
- package/dist/esm/components/DataBuilder/field-context.mjs +1 -1
- package/dist/esm/components/DataBuilder/hooks.mjs +1 -1
- package/dist/esm/components/DataBuilder/index.mjs +2 -2
- package/dist/esm/components/DataBuilder/styles.module.css.mjs +1 -1
- package/dist/esm/components/DataBuilderUI/FieldControlPanel/FieldControlPanel.module.css.mjs +2 -2
- package/dist/esm/components/DataBuilderUI/FieldControlPanel/index.mjs +1 -1
- package/dist/esm/components/DataBuilderUI/index.mjs +3 -2
- package/dist/esm/components/DataBuilderUI/styles.module.css.mjs +1 -1
- package/dist/esm/components/DataInput/index.mjs +1 -1
- package/dist/esm/components/DataLinks/data-link-tables-option-factory.mjs +2 -2
- package/dist/esm/components/DropdownUI/BackButton.mjs +70 -0
- package/dist/esm/components/DropdownUI/Content.mjs +24 -0
- package/dist/esm/components/DropdownUI/ErrorHeading.mjs +40 -0
- package/dist/esm/components/DropdownUI/Item.mjs +73 -0
- package/dist/esm/components/DropdownUI/ItemIcon.mjs +67 -0
- package/dist/esm/components/DropdownUI/ItemNestingIndicator.mjs +62 -0
- package/dist/esm/components/DropdownUI/ItemTitle.mjs +28 -0
- package/dist/esm/components/DropdownUI/List.mjs +36 -0
- package/dist/esm/components/DropdownUI/ListHeader.mjs +29 -0
- package/dist/esm/components/DropdownUI/LoadingItem.mjs +50 -0
- package/dist/esm/components/DropdownUI/NoOptionsHeading.mjs +29 -0
- package/dist/esm/components/DropdownUI/Panel.mjs +26 -0
- package/dist/esm/components/DropdownUI/PopoverContainer.mjs +32 -0
- package/dist/esm/components/DropdownUI/Search.mjs +46 -0
- package/dist/esm/components/DropdownUI/constants.mjs +12 -0
- package/dist/esm/components/DropdownUI/index.mjs +30 -202
- package/dist/esm/components/DropdownUI/item-context.mjs +17 -0
- package/dist/esm/components/DropdownUI/sva-recipe.mjs +180 -0
- package/dist/esm/components/DropdownUI/utils.mjs +13 -0
- package/dist/esm/components/Formula/index.mjs +1 -1
- package/dist/esm/components/Formula/styles.module.css.mjs +1 -1
- package/dist/esm/components/InlineEditable.mjs +1 -1
- package/dist/esm/components/InlineEditable.module.css.mjs +1 -1
- package/dist/esm/components/Input/Input.mjs +1 -1
- package/dist/esm/components/Input/Input.module.css.mjs +1 -1
- package/dist/esm/components/Input/SearchInput.mjs +1 -1
- package/dist/esm/components/Input/SearchInput.module.css.mjs +1 -1
- package/dist/esm/components/Input/index.mjs +1 -1
- package/dist/esm/components/IntegrationElements/DataSource/DataCollectionSelect.mjs +2 -2
- package/dist/esm/components/IntegrationElements/DataSource/UdmSelect.mjs +2 -2
- package/dist/esm/components/IntegrationElements/DataSource/index.mjs +1 -1
- package/dist/esm/components/IntegrationElements/integration-element-context.mjs +1 -1
- package/dist/esm/components/Integrations/IntegrationAvatar/index.mjs +1 -1
- package/dist/esm/components/Integrations/IntegrationItem/index.mjs +1 -1
- package/dist/esm/components/Integrations/IntegrationItemSkeleton.mjs +2 -1
- package/dist/esm/components/Notification/Notification.module.css.mjs +1 -1
- package/dist/esm/components/Notification/index.mjs +3 -2
- package/dist/esm/components/Popover/Popover.module.css.mjs +1 -1
- package/dist/esm/components/Popover/index.mjs +2 -1
- package/dist/esm/components/Portal/index.mjs +2 -2
- package/dist/esm/components/Radio/Radio.module.css.mjs +1 -1
- package/dist/esm/components/Radio/index.mjs +1 -1
- package/dist/esm/components/SimpleInput/SimpleInput.mjs +1 -1
- package/dist/esm/components/SimpleInput/SimpleInput.module.css.mjs +1 -1
- package/dist/esm/components/SimpleInput/SimpleRadio.mjs +1 -1
- package/dist/esm/components/SimpleInput/SimpleTextarea.mjs +1 -1
- package/dist/esm/components/SimpleMenu/index.mjs +1 -1
- package/dist/esm/components/SvgIcon/BasicEntities.mjs +3 -3
- package/dist/esm/components/SvgIcon/index.mjs +125 -237
- package/dist/esm/components/SvgIcon/svg-icon-type.mjs +125 -0
- package/dist/esm/components/Tag/Components.mjs +3 -2
- package/dist/esm/components/Tag/SegmentSeparator.mjs +3 -2
- package/dist/esm/components/Tag/{index.mjs → Tag.mjs} +3 -4
- package/dist/esm/components/Tag/TagPlaceholder.mjs +2 -2
- package/dist/esm/components/Tag/styles.module.css.mjs +1 -1
- package/dist/esm/components/Textarea/Textarea.module.css.mjs +1 -1
- package/dist/esm/components/Textarea/index.mjs +1 -1
- package/dist/esm/components/Toggle/Toggle.mjs +11 -3
- package/dist/esm/components/Toggle/Toggle.module.css.mjs +1 -1
- package/dist/esm/components/Toggle/ToggleOnOff.mjs +3 -2
- package/dist/esm/components/Tooltip/index.mjs +63 -28
- package/dist/esm/components/Truncate/index.mjs +6 -4
- package/dist/esm/contexts/integration-app-client-context.mjs +1 -1
- package/dist/esm/contexts/integration-app-connection-context.mjs +1 -1
- package/dist/esm/contexts/integration-app-context.mjs +1 -1
- package/dist/esm/contexts/integration-app-integration-context.mjs +1 -1
- package/dist/esm/helpers/Debounce.mjs +1 -1
- package/dist/esm/helpers/getRefElement.mjs +1 -1
- package/dist/esm/hooks/actions/useAction.mjs +1 -1
- package/dist/esm/hooks/actions/useActionInstance.mjs +1 -1
- package/dist/esm/hooks/actions/useActionInstances.mjs +1 -1
- package/dist/esm/hooks/actions/useActions.mjs +1 -1
- package/dist/esm/hooks/app-data-schemas/useAppDataSchema.mjs +1 -1
- package/dist/esm/hooks/app-data-schemas/useAppDataSchemaInstance.mjs +1 -1
- package/dist/esm/hooks/app-data-schemas/useAppDataSchemaInstances.mjs +1 -1
- package/dist/esm/hooks/app-data-schemas/useAppDataSchemas.mjs +1 -1
- package/dist/esm/hooks/app-events/useAppEventSubscription.mjs +1 -1
- package/dist/esm/hooks/app-events/useAppEventSubscriptions.mjs +1 -1
- package/dist/esm/hooks/app-events/useAppEventType.mjs +1 -1
- package/dist/esm/hooks/app-events/useAppEventTypes.mjs +1 -1
- package/dist/esm/hooks/app-events/useAppEvents.mjs +1 -1
- package/dist/esm/hooks/customers/useCustomer.mjs +1 -1
- package/dist/esm/hooks/customers/useCustomers.mjs +1 -1
- package/dist/esm/hooks/data-collections/useDataCollectionSpec.mjs +1 -1
- package/dist/esm/hooks/data-links/useDataLinkTable.mjs +1 -1
- package/dist/esm/hooks/data-links/useDataLinkTableInstance.mjs +1 -1
- package/dist/esm/hooks/data-links/useDataLinkTableInstances.mjs +1 -1
- package/dist/esm/hooks/data-links/useDataLinkTables.mjs +1 -1
- package/dist/esm/hooks/data-sources/useDataSource.mjs +1 -1
- package/dist/esm/hooks/data-sources/useDataSourceInstance.mjs +1 -1
- package/dist/esm/hooks/data-sources/useDataSourceInstanceCollection.mjs +1 -1
- package/dist/esm/hooks/data-sources/useDataSourceInstances.mjs +1 -1
- package/dist/esm/hooks/data-sources/useDataSources.mjs +1 -1
- package/dist/esm/hooks/external-events/useExternalEventSubscription.mjs +1 -1
- package/dist/esm/hooks/external-events/useExternalEventSubscriptions.mjs +1 -1
- package/dist/esm/hooks/field-mappings/useFieldMapping.mjs +1 -1
- package/dist/esm/hooks/field-mappings/useFieldMappingInstance.mjs +1 -1
- package/dist/esm/hooks/field-mappings/useFieldMappingInstances.mjs +1 -1
- package/dist/esm/hooks/field-mappings/useFieldMappings.mjs +1 -1
- package/dist/esm/hooks/flows/useFlow.mjs +1 -1
- package/dist/esm/hooks/flows/useFlowInstance.mjs +1 -1
- package/dist/esm/hooks/flows/useFlowInstances.mjs +1 -1
- package/dist/esm/hooks/flows/useFlowRun.mjs +1 -1
- package/dist/esm/hooks/flows/useFlowRuns.mjs +1 -1
- package/dist/esm/hooks/flows/useFlows.mjs +1 -1
- package/dist/esm/hooks/integrations/useConnection.mjs +1 -1
- package/dist/esm/hooks/integrations/useConnections.mjs +1 -1
- package/dist/esm/hooks/integrations/useConnectorSpec.mjs +1 -1
- package/dist/esm/hooks/integrations/useIntegration.mjs +1 -1
- package/dist/esm/hooks/integrations/useIntegrations.mjs +1 -1
- package/dist/esm/hooks/keyboard-events.mjs +76 -26
- package/dist/esm/hooks/scenarios/useScenario.mjs +1 -1
- package/dist/esm/hooks/scenarios/useScenarios.mjs +1 -1
- package/dist/esm/hooks/screens/useScreen.mjs +1 -1
- package/dist/esm/hooks/useAutofocus.mjs +1 -1
- package/dist/esm/hooks/useDeepEffect.mjs +2 -2
- package/dist/esm/hooks/useElement.mjs +1 -1
- package/dist/esm/hooks/useElements.mjs +1 -1
- package/dist/esm/hooks/useEventStopPropagation.mjs +1 -1
- package/dist/esm/hooks/useForwardedRef.mjs +1 -1
- package/dist/esm/hooks/useIntegrationAppSWR.mjs +1 -1
- package/dist/esm/hooks/useIsTextTruncated.mjs +1 -1
- package/dist/esm/hooks/useResizeObserver.mjs +1 -1
- package/dist/esm/hooks/useWindowEvent.mjs +1 -1
- package/dist/esm/index.mjs +25 -31
- package/dist/esm/styled-system/css/conditions.mjs +4 -2
- package/dist/esm/styled-system/css/css.mjs +1 -1
- package/dist/esm/styled-system/css/cva.mjs +1 -1
- package/dist/esm/styled-system/css/cx.mjs +1 -1
- package/dist/esm/styled-system/css/sva.mjs +1 -1
- package/dist/esm/styled-system/helpers.mjs +16 -6
- package/dist/esm/styled-system/jsx/box.mjs +1 -1
- package/dist/esm/styled-system/jsx/center.mjs +1 -1
- package/dist/esm/styled-system/jsx/circle.mjs +1 -1
- package/dist/esm/styled-system/jsx/factory-helper.mjs +1 -1
- package/dist/esm/styled-system/jsx/factory.mjs +1 -1
- package/dist/esm/styled-system/jsx/flex.mjs +1 -1
- package/dist/esm/styled-system/jsx/is-valid-prop.mjs +1 -1
- package/dist/esm/styled-system/jsx/visually-hidden.mjs +1 -1
- package/dist/esm/styled-system/patterns/box.mjs +1 -1
- package/dist/esm/styled-system/patterns/center.mjs +1 -1
- package/dist/esm/styled-system/patterns/circle.mjs +1 -1
- package/dist/esm/styled-system/patterns/flex.mjs +1 -1
- package/dist/esm/styled-system/patterns/visually-hidden.mjs +6 -3
- package/dist/esm/styled-system/recipes/alert.mjs +57 -0
- package/dist/esm/styled-system/recipes/avatar.mjs +1 -1
- package/dist/esm/styled-system/recipes/badge.mjs +47 -0
- package/dist/esm/styled-system/recipes/button.mjs +1 -1
- package/dist/esm/styled-system/recipes/create-recipe.mjs +1 -1
- package/dist/esm/styled-system/recipes/icon.mjs +1 -1
- package/dist/esm/styled-system/recipes/input.mjs +45 -0
- package/dist/esm/styled-system/recipes/menu.mjs +1 -1
- package/dist/esm/styled-system/recipes/popover.mjs +1 -1
- package/dist/esm/styled-system/recipes/skeleton.mjs +1 -1
- package/dist/esm/styled-system/recipes/spinner.mjs +1 -1
- package/dist/esm/styled-system/recipes/text.mjs +1 -1
- package/dist/esm/styled-system/recipes/tooltip.mjs +1 -1
- package/dist/esm/styled-system/tokens/index.mjs +1 -1
- package/dist/esm/ui-kit/avatar.mjs +1 -1
- package/dist/esm/ui-kit/button.mjs +2 -1
- package/dist/esm/ui-kit/spinner.mjs +2 -1
- package/dist/esm/ui-kit/styled/alert.mjs +24 -0
- package/dist/esm/ui-kit/styled/avatar.mjs +1 -1
- package/dist/esm/ui-kit/styled/badge.mjs +21 -0
- package/dist/esm/ui-kit/styled/button.mjs +2 -1
- package/dist/esm/ui-kit/styled/icon-button.mjs +23 -0
- package/dist/esm/ui-kit/styled/icon.mjs +2 -1
- package/dist/esm/ui-kit/styled/input.mjs +21 -0
- package/dist/esm/ui-kit/styled/menu.mjs +1 -1
- package/dist/esm/ui-kit/styled/popover.mjs +5 -5
- package/dist/esm/ui-kit/styled/skeleton.mjs +2 -1
- package/dist/esm/ui-kit/styled/spinner.mjs +2 -1
- package/dist/esm/ui-kit/styled/text.mjs +2 -1
- package/dist/esm/ui-kit/styled/tooltip.mjs +1 -1
- package/dist/esm/ui-kit/styled/utils/create-style-context.mjs +2 -1
- package/dist/styles.css +576 -215
- package/dist/types/_modules/react-use-promise.d.ts +2 -1
- package/dist/types/components/Button/Button.d.ts +1 -1
- package/dist/types/components/ComboBox/{index.d.ts → ComboBox.d.ts} +0 -5
- package/dist/types/components/ComboBox/Dropdown/ActiveCategoryContent.d.ts +4 -0
- package/dist/types/components/ComboBox/Dropdown/Categories/CustomValue.d.ts +4 -0
- package/dist/types/components/ComboBox/Dropdown/Categories/Formulas/DropdownPanelFormulaConfig.d.ts +4 -0
- package/dist/types/components/ComboBox/Dropdown/Categories/Formulas/index.d.ts +4 -0
- package/dist/types/components/ComboBox/Dropdown/Categories/Lookup.d.ts +4 -0
- package/dist/types/components/ComboBox/Dropdown/Categories/LookupOptions/ParametersPanel.d.ts +7 -0
- package/dist/types/components/ComboBox/Dropdown/{Tabs → Categories}/LookupOptions/UiComponents.d.ts +6 -2
- package/dist/types/components/ComboBox/Dropdown/Categories/LookupOptions/index.d.ts +8 -0
- package/dist/types/components/ComboBox/Dropdown/Categories/Options.d.ts +4 -0
- package/dist/types/components/ComboBox/Dropdown/Categories/Root.d.ts +4 -0
- package/dist/types/components/ComboBox/Dropdown/Categories/Variables.d.ts +4 -0
- package/dist/types/components/ComboBox/Dropdown/Categories/getLookupCollection.d.ts +7 -0
- package/dist/types/components/ComboBox/Dropdown/DrillUpButton.d.ts +2 -0
- package/dist/types/components/ComboBox/Dropdown/Dropdown.d.ts +3 -6
- package/dist/types/components/ComboBox/Dropdown/Option.d.ts +3 -3
- package/dist/types/components/ComboBox/Dropdown/OptionsList.d.ts +2 -2
- package/dist/types/components/ComboBox/Dropdown/categoryContentMapping.d.ts +15 -0
- package/dist/types/components/ComboBox/Dropdown/index.d.ts +1 -4
- package/dist/types/components/ComboBox/DropdownPopover/helpers.d.ts +1 -0
- package/dist/types/components/ComboBox/DropdownPopover/index.d.ts +10 -0
- package/dist/types/components/ComboBox/Edit/TextInput.d.ts +1 -1
- package/dist/types/components/ComboBox/Value/ComboBoxValue.d.ts +3 -0
- package/dist/types/components/ComboBox/Value/Formula.d.ts +1 -1
- package/dist/types/components/ComboBox/Value/Schema.d.ts +0 -1
- package/dist/types/components/ComboBox/Value/index.d.ts +1 -3
- package/dist/types/components/ComboBox/Value/isDefinedValue.d.ts +1 -0
- package/dist/types/components/ComboBox/context/combobox-context.d.ts +1 -0
- package/dist/types/components/ComboBox/context/combobox-dropdown-context.d.ts +10 -7
- package/dist/types/components/ComboBox/context/combobox-dropdown-search.d.ts +1 -3
- package/dist/types/components/ComboBox/context/helpers.d.ts +9 -8
- package/dist/types/components/ComboBox/options-factories/boolean.d.ts +5 -5
- package/dist/types/components/ComboBox/options-factories/constant.d.ts +6 -9
- package/dist/types/components/ComboBox/options-factories/custom-field.d.ts +4 -7
- package/dist/types/components/ComboBox/options-factories/enum.d.ts +5 -7
- package/dist/types/components/ComboBox/options-factories/formula.d.ts +8 -0
- package/dist/types/components/ComboBox/options-factories/generate-schema-options.d.ts +16 -0
- package/dist/types/components/ComboBox/options-factories/index.d.ts +3 -12
- package/dist/types/components/ComboBox/options-factories/object-fields.d.ts +5 -11
- package/dist/types/components/ComboBox/options-factories/reference-records.d.ts +5 -9
- package/dist/types/components/ComboBox/options-factories/root.d.ts +9 -0
- package/dist/types/components/ComboBox/options-factories/types.d.ts +13 -0
- package/dist/types/components/ComboBox/options-factories/utils.d.ts +2 -0
- package/dist/types/components/ComboBox/options-factories/variable.d.ts +17 -0
- package/dist/types/components/ComboBox/tests/presets.d.ts +2 -2
- package/dist/types/components/ComboBox/types.d.ts +12 -14
- package/dist/types/components/ComboBox/value-spec.d.ts +1 -1
- package/dist/types/components/ComboBoxElements/TipTapEditor/TagComponent.d.ts +2 -6
- package/dist/types/components/ComboBoxElements/TipTapEditor/TagNodeView.d.ts +2 -0
- package/dist/types/components/ComboBoxElements/TipTapEditor/constants.d.ts +2 -0
- package/dist/types/components/ComboBoxElements/TipTapEditor/helpers/common.d.ts +2 -0
- package/dist/types/components/ComboBoxElements/TipTapEditor/index.d.ts +1 -1
- package/dist/types/components/DataBuilder/FieldTypeSelector/convertableSchemaToSchema.d.ts +2 -0
- package/dist/types/components/DataBuilder/FieldTypeSelector/index.d.ts +0 -1
- package/dist/types/components/DataBuilder/Formula/case.d.ts +2 -1
- package/dist/types/components/DataBuilder/Formula/concat.d.ts +2 -1
- package/dist/types/components/DataBuilder/Formula/copy.d.ts +2 -1
- package/dist/types/components/DataBuilder/Formula/domainFromEmail.d.ts +2 -1
- package/dist/types/components/DataBuilder/Formula/extractDate.d.ts +2 -1
- package/dist/types/components/DataBuilder/Formula/extractTime.d.ts +2 -1
- package/dist/types/components/DataBuilder/Formula/findAppRecordId.d.ts +2 -1
- package/dist/types/components/DataBuilder/Formula/findExternalRecordId.d.ts +2 -1
- package/dist/types/components/DataBuilder/Formula/firstName.d.ts +2 -1
- package/dist/types/components/DataBuilder/Formula/firstNotEmpty.d.ts +2 -1
- package/dist/types/components/DataBuilder/Formula/index.d.ts +2 -17
- package/dist/types/components/DataBuilder/Formula/iterate.d.ts +2 -1
- package/dist/types/components/DataBuilder/Formula/jsonata.d.ts +2 -1
- package/dist/types/components/DataBuilder/Formula/lastName.d.ts +2 -1
- package/dist/types/components/DataBuilder/Formula/lookup.d.ts +1 -1
- package/dist/types/components/DataBuilder/Formula/map.d.ts +2 -1
- package/dist/types/components/DataBuilder/Formula/mergeObjects.d.ts +2 -1
- package/dist/types/components/DataBuilder/Formula/record.d.ts +1 -1
- package/dist/types/components/DataBuilder/Formula/tpl.d.ts +1 -1
- package/dist/types/components/DataBuilder/Formula/types.d.ts +17 -0
- package/dist/types/components/DataBuilder/Formula/var.d.ts +1 -1
- package/dist/types/components/DataBuilder/data-builder-context.d.ts +9 -32
- package/dist/types/components/DataBuilder/data-field.d.ts +2 -2
- package/dist/types/components/DataBuilder/index.d.ts +2 -2
- package/dist/types/components/DataBuilder/stories/DataBuilder.test-formulas.helpers.d.ts +1 -1
- package/dist/types/components/DataBuilder/types.d.ts +25 -0
- package/dist/types/components/DataBuilderUI/FieldControlPanel/index.d.ts +2 -2
- package/dist/types/components/DataBuilderUI/index.d.ts +1 -1
- package/dist/types/components/DataLinks/data-link-tables-option-factory.d.ts +4 -4
- package/dist/types/components/DropdownUI/BackButton.d.ts +2 -0
- package/dist/types/components/DropdownUI/Content.d.ts +2 -0
- package/dist/types/components/DropdownUI/DropdownUIElements.d.ts +3 -18
- package/dist/types/components/DropdownUI/ErrorHeading.d.ts +4 -0
- package/dist/types/components/DropdownUI/Item.d.ts +7 -0
- package/dist/types/components/DropdownUI/ItemIcon.d.ts +10 -0
- package/dist/types/components/DropdownUI/ItemNestingIndicator.d.ts +4 -0
- package/dist/types/components/DropdownUI/ItemTitle.d.ts +2 -0
- package/dist/types/components/DropdownUI/List.d.ts +2 -0
- package/dist/types/components/DropdownUI/ListHeader.d.ts +2 -0
- package/dist/types/components/DropdownUI/LoadingItem.d.ts +4 -0
- package/dist/types/components/DropdownUI/NoOptionsHeading.d.ts +4 -0
- package/dist/types/components/DropdownUI/Panel.d.ts +2 -0
- package/dist/types/components/DropdownUI/PopoverContainer.d.ts +2 -0
- package/dist/types/components/DropdownUI/Search.d.ts +7 -0
- package/dist/types/components/DropdownUI/constants.d.ts +2 -0
- package/dist/types/components/DropdownUI/index.d.ts +32 -46
- package/dist/types/components/DropdownUI/item-context.d.ts +7 -0
- package/dist/types/components/DropdownUI/sva-recipe.d.ts +1 -0
- package/dist/types/components/DropdownUI/utils.d.ts +2 -0
- package/dist/types/components/Formula/index.d.ts +1 -1
- package/dist/types/components/Notification/index.d.ts +1 -1
- package/dist/types/components/Portal/index.d.ts +2 -3
- package/dist/types/components/Portal/portal-utils.d.ts +0 -0
- package/dist/types/components/SvgIcon/BasicEntities.d.ts +1 -1
- package/dist/types/components/SvgIcon/index.d.ts +1 -113
- package/dist/types/components/SvgIcon/svg-icon-type.d.ts +114 -0
- package/dist/types/components/Tag/Components.d.ts +1 -1
- package/dist/types/components/Tag/Tag.d.ts +23 -0
- package/dist/types/components/Tag/index.d.ts +2 -22
- package/dist/types/components/Tooltip/index.d.ts +34 -1
- package/dist/types/hooks/keyboard-events.d.ts +10 -3
- package/dist/types/hooks/useIntegrationAppSWR.d.ts +1 -1
- package/dist/types/index.d.ts +7 -1
- package/dist/types/styled-system/tokens/tokens.d.ts +1 -1
- package/dist/types/styled-system/types/prop-type.d.ts +3 -7
- package/dist/types/styled-system/types/selectors.d.ts +1 -1
- package/dist/types/styled-system/types/static-css.d.ts +9 -4
- package/dist/types/styled-system/types/style-props.d.ts +4 -4
- package/dist/types/ui-kit/alert.d.ts +1 -0
- package/dist/types/ui-kit/badge.d.ts +1 -0
- package/dist/types/ui-kit/icon-button.d.ts +1 -0
- package/dist/types/ui-kit/input.d.ts +1 -0
- package/dist/types/ui-kit/styled/alert.d.ts +9 -0
- package/dist/types/ui-kit/styled/badge.d.ts +6 -0
- package/dist/types/ui-kit/styled/icon-button.d.ts +7 -0
- package/dist/types/ui-kit/styled/input.d.ts +6 -0
- package/dist/types/ui-kit/styled/popover.d.ts +1 -1
- package/dist/types/ui-kit/styled/utils/create-style-context.d.ts +2 -2
- package/package.json +32 -24
- package/dist/cjs/components/ComboBox/Dropdown/ActiveTab.cjs +0 -21
- package/dist/cjs/components/ComboBox/Dropdown/Tabs/Collections.module.css.cjs +0 -18
- package/dist/cjs/components/ComboBox/Dropdown/Tabs/Formulas/Formulas.module.css.cjs +0 -18
- package/dist/cjs/components/ComboBox/Dropdown/Tabs/Formulas/index.cjs +0 -101
- package/dist/cjs/components/ComboBox/Dropdown/Tabs/LookupOptions/OptionsList.cjs +0 -24
- package/dist/cjs/components/ComboBox/Dropdown/Tabs/LookupOptions/ParametersPanel.cjs +0 -100
- package/dist/cjs/components/ComboBox/Dropdown/Tabs/LookupOptions/ParametersPanel.module.css.cjs +0 -18
- package/dist/cjs/components/ComboBox/Dropdown/Tabs/LookupOptions/UiComponents.cjs +0 -57
- package/dist/cjs/components/ComboBox/Dropdown/Tabs/LookupOptions/UiComponents.module.css.cjs +0 -18
- package/dist/cjs/components/ComboBox/Dropdown/tabs.cjs +0 -75
- package/dist/cjs/components/ComboBox/options-factories/index.cjs +0 -38
- package/dist/cjs/components/ComboBox/options-factories/reference-udm.cjs +0 -36
- package/dist/cjs/components/DropdownUI/DropdownUI.module.css.cjs +0 -18
- package/dist/cjs/components/DropdownUI/DropdownUIElements.cjs +0 -107
- package/dist/cjs/components/DropdownUI/DropdownUIElements.module.css.cjs +0 -18
- package/dist/cjs/components/DropdownUI/DropdownUITab.cjs +0 -36
- package/dist/esm/components/ComboBox/Dropdown/ActiveTab.mjs +0 -19
- package/dist/esm/components/ComboBox/Dropdown/Tabs/Collections.module.css.mjs +0 -14
- package/dist/esm/components/ComboBox/Dropdown/Tabs/Formulas/Formulas.module.css.mjs +0 -14
- package/dist/esm/components/ComboBox/Dropdown/Tabs/Formulas/index.mjs +0 -99
- package/dist/esm/components/ComboBox/Dropdown/Tabs/LookupOptions/OptionsList.mjs +0 -22
- package/dist/esm/components/ComboBox/Dropdown/Tabs/LookupOptions/ParametersPanel.mjs +0 -98
- package/dist/esm/components/ComboBox/Dropdown/Tabs/LookupOptions/ParametersPanel.module.css.mjs +0 -14
- package/dist/esm/components/ComboBox/Dropdown/Tabs/LookupOptions/UiComponents.mjs +0 -51
- package/dist/esm/components/ComboBox/Dropdown/Tabs/LookupOptions/UiComponents.module.css.mjs +0 -14
- package/dist/esm/components/ComboBox/Dropdown/tabs.mjs +0 -72
- package/dist/esm/components/ComboBox/options-factories/index.mjs +0 -36
- package/dist/esm/components/ComboBox/options-factories/reference-udm.mjs +0 -34
- package/dist/esm/components/DropdownUI/DropdownUI.module.css.mjs +0 -14
- package/dist/esm/components/DropdownUI/DropdownUIElements.mjs +0 -100
- package/dist/esm/components/DropdownUI/DropdownUIElements.module.css.mjs +0 -14
- package/dist/esm/components/DropdownUI/DropdownUITab.mjs +0 -34
- package/dist/types/__mocks__/axios.d.ts +0 -4
- package/dist/types/components/ComboBox/Dropdown/ActiveTab.d.ts +0 -4
- package/dist/types/components/ComboBox/Dropdown/Tabs/CustomValue.d.ts +0 -3
- package/dist/types/components/ComboBox/Dropdown/Tabs/Formulas/index.d.ts +0 -3
- package/dist/types/components/ComboBox/Dropdown/Tabs/Lookup.d.ts +0 -11
- package/dist/types/components/ComboBox/Dropdown/Tabs/LookupOptions/OptionsList.d.ts +0 -1
- package/dist/types/components/ComboBox/Dropdown/Tabs/LookupOptions/ParametersPanel.d.ts +0 -5
- package/dist/types/components/ComboBox/Dropdown/Tabs/LookupOptions/index.d.ts +0 -3
- package/dist/types/components/ComboBox/Dropdown/Tabs/Options.d.ts +0 -3
- package/dist/types/components/ComboBox/Dropdown/Tabs/Variables.d.ts +0 -3
- package/dist/types/components/ComboBox/Dropdown/tabs.d.ts +0 -14
- package/dist/types/components/ComboBox/options-factories/base.d.ts +0 -2
- package/dist/types/components/ComboBox/options-factories/reference-udm.d.ts +0 -8
- package/dist/types/components/ComboBox/options-factories/schema.d.ts +0 -37
- package/dist/types/components/DataBuilder/Formula/options-factory.d.ts +0 -14
- package/dist/types/components/DropdownUI/DropdownUITab.d.ts +0 -15
@@ -0,0 +1,101 @@
|
|
1
|
+
"use strict";
|
2
|
+
/*
|
3
|
+
* Integration App React package
|
4
|
+
* {@link https://www.npmjs.com/package/@integration-app/react}
|
5
|
+
* v2.0.4-beta.0
|
6
|
+
*/
|
7
|
+
'use client';
|
8
|
+
|
9
|
+
'use strict';
|
10
|
+
|
11
|
+
var jsxRuntime = require('react/jsx-runtime');
|
12
|
+
var React = require('react');
|
13
|
+
var react = require('@ark-ui/react');
|
14
|
+
var popover = require('../../../ui-kit/styled/popover.cjs');
|
15
|
+
var comboboxContext = require('../context/combobox-context.cjs');
|
16
|
+
require('../context/combobox-dropdown-context.cjs');
|
17
|
+
require('../context/combobox-dropdown-search.cjs');
|
18
|
+
var comboboxDropdownStack = require('../context/combobox-dropdown-stack.cjs');
|
19
|
+
require('@integration-app/sdk');
|
20
|
+
var useWindowEvent = require('../../../hooks/useWindowEvent.cjs');
|
21
|
+
var index = require('../../DropdownUI/index.cjs');
|
22
|
+
var keyboardEvents = require('../../../hooks/keyboard-events.cjs');
|
23
|
+
var constants = require('../../DropdownUI/constants.cjs');
|
24
|
+
|
25
|
+
const GUTTER = 10;
|
26
|
+
const POSITIONING = {
|
27
|
+
placement: "bottom-start",
|
28
|
+
gutter: GUTTER,
|
29
|
+
slide: true,
|
30
|
+
fitViewport: true
|
31
|
+
};
|
32
|
+
const isStorybook = Boolean(globalThis?.__STORYBOOK_PREVIEW__);
|
33
|
+
const storybookPortalNode = "#storybook-root";
|
34
|
+
function DropdownPopoverProvider({
|
35
|
+
children
|
36
|
+
}) {
|
37
|
+
const { isDropdownOpen, closeDropdown } = comboboxContext.useComboBox();
|
38
|
+
return /* @__PURE__ */ jsxRuntime.jsx(
|
39
|
+
popover.Root,
|
40
|
+
{
|
41
|
+
open: isDropdownOpen,
|
42
|
+
onEscapeKeyDown: closeDropdown,
|
43
|
+
closeOnInteractOutside: false,
|
44
|
+
unmountOnExit: true,
|
45
|
+
lazyMount: true,
|
46
|
+
portalled: true,
|
47
|
+
autoFocus: false,
|
48
|
+
positioning: POSITIONING,
|
49
|
+
children
|
50
|
+
}
|
51
|
+
);
|
52
|
+
}
|
53
|
+
function DropdownPopoverContent({
|
54
|
+
children
|
55
|
+
}) {
|
56
|
+
const containerRef = React.useRef(null);
|
57
|
+
React.useEffect(() => {
|
58
|
+
if (isStorybook) {
|
59
|
+
containerRef.current = document.querySelector(storybookPortalNode);
|
60
|
+
}
|
61
|
+
}, []);
|
62
|
+
return /* @__PURE__ */ jsxRuntime.jsx(react.Portal, { container: containerRef, children: /* @__PURE__ */ jsxRuntime.jsx(popover.Positioner, { children: /* @__PURE__ */ jsxRuntime.jsx(DeferredContent, { children }) }) });
|
63
|
+
}
|
64
|
+
function DropdownAnchor({ children }) {
|
65
|
+
return /* @__PURE__ */ jsxRuntime.jsx(popover.Anchor, { display: "inline", children });
|
66
|
+
}
|
67
|
+
function DeferredContent({ children }) {
|
68
|
+
const id = React.useId();
|
69
|
+
const ref = React.useRef(null);
|
70
|
+
const { scopedComboboxId, closeDropdown } = comboboxContext.useComboBox();
|
71
|
+
keyboardEvents.useOptionListKeyNavDispatch(ref.current, scopedComboboxId);
|
72
|
+
const { isClickInsideRefsAndChildren } = comboboxDropdownStack.useDropdownStackContext(
|
73
|
+
ref
|
74
|
+
);
|
75
|
+
useClick((event) => {
|
76
|
+
if (!isClickInsideRefsAndChildren(event)) {
|
77
|
+
closeDropdown();
|
78
|
+
}
|
79
|
+
});
|
80
|
+
return /* @__PURE__ */ jsxRuntime.jsx(
|
81
|
+
popover.Content,
|
82
|
+
{
|
83
|
+
ref,
|
84
|
+
"data-navigation-emitter-id": constants.DROPDOWN_NAVIGATOR_ID,
|
85
|
+
asChild: true,
|
86
|
+
"aria-labelledby": id,
|
87
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(index.DropdownUI, { children: /* @__PURE__ */ jsxRuntime.jsxs(index.DropdownUI.Content, { children: [
|
88
|
+
/* @__PURE__ */ jsxRuntime.jsx(popover.Title, { srOnly: true, id, children: "Options menu" }),
|
89
|
+
children
|
90
|
+
] }) })
|
91
|
+
}
|
92
|
+
);
|
93
|
+
}
|
94
|
+
function useClick(cb) {
|
95
|
+
useWindowEvent.useWindowEvent("mouseup", cb);
|
96
|
+
useWindowEvent.useWindowEvent("touchend", cb);
|
97
|
+
}
|
98
|
+
|
99
|
+
exports.DropdownAnchor = DropdownAnchor;
|
100
|
+
exports.DropdownPopoverContent = DropdownPopoverContent;
|
101
|
+
exports.DropdownPopoverProvider = DropdownPopoverProvider;
|
@@ -2,7 +2,7 @@
|
|
2
2
|
/*
|
3
3
|
* Integration App React package
|
4
4
|
* {@link https://www.npmjs.com/package/@integration-app/react}
|
5
|
-
* v2.0.
|
5
|
+
* v2.0.4-beta.0
|
6
6
|
*/
|
7
7
|
'use client';
|
8
8
|
|
@@ -13,24 +13,22 @@ var clsx = require('clsx');
|
|
13
13
|
var React = require('react');
|
14
14
|
require('../../ComboBoxElements/TipTapEditor/Editor.cjs');
|
15
15
|
require('../../ComboBoxElements/TipTapEditor/EditorStandAlone.cjs');
|
16
|
-
require('
|
17
|
-
require('../../SvgIcon/index.cjs');
|
16
|
+
var types = require('../types.cjs');
|
18
17
|
require('@integration-app/sdk');
|
19
18
|
require('fuse');
|
19
|
+
require('../Dropdown/categoryContentMapping.cjs');
|
20
20
|
var clicks = require('../../ComboBoxElements/TipTapEditor/helpers/clicks.cjs');
|
21
|
-
var index
|
21
|
+
var index = require('../../DataBuilderUI/index.cjs');
|
22
22
|
var getRefElement = require('../../../helpers/getRefElement.cjs');
|
23
23
|
var OptionSelector_module = require('./OptionSelector.module.css.cjs');
|
24
|
-
var types = require('../types.cjs');
|
25
|
-
var Dropdown = require('../Dropdown/Dropdown.cjs');
|
26
|
-
require('../../DropdownUI/index.cjs');
|
27
|
-
require('../context/combobox-dropdown-search.cjs');
|
28
|
-
var comboboxDropdownContext = require('../context/combobox-dropdown-context.cjs');
|
29
|
-
require('../Dropdown/tabs.cjs');
|
30
|
-
var comboboxContext = require('../context/combobox-context.cjs');
|
31
24
|
var FieldWrapper = require('../../ComboBoxElements/FieldWrapper.cjs');
|
32
|
-
var
|
33
|
-
var
|
25
|
+
var comboboxContext = require('../context/combobox-context.cjs');
|
26
|
+
var comboboxDropdownContext = require('../context/combobox-dropdown-context.cjs');
|
27
|
+
require('../Value/Formula.cjs');
|
28
|
+
require('../Value/Schema.cjs');
|
29
|
+
var ComboBoxValue = require('../Value/ComboBoxValue.cjs');
|
30
|
+
var isDefinedValue = require('../Value/isDefinedValue.cjs');
|
31
|
+
var Dropdown = require('../Dropdown/Dropdown.cjs');
|
34
32
|
|
35
33
|
function OptionSelector({
|
36
34
|
placeholder,
|
@@ -42,7 +40,6 @@ function OptionSelector({
|
|
42
40
|
}) {
|
43
41
|
const valueRef = React.useRef(null);
|
44
42
|
const fieldValueRef = React.useRef(null);
|
45
|
-
const dropdownRef = React.useRef(null);
|
46
43
|
const {
|
47
44
|
value,
|
48
45
|
refsToIgnoreClick,
|
@@ -52,14 +49,11 @@ function OptionSelector({
|
|
52
49
|
closeDropdown,
|
53
50
|
topDropdownPanelComponent
|
54
51
|
} = comboboxContext.useComboBox();
|
55
|
-
const {
|
52
|
+
const { activeCategory } = comboboxDropdownContext.useComboBoxDropdownContext();
|
56
53
|
function handleOpenDropdown() {
|
57
54
|
if (disabled) return;
|
58
55
|
openDropdown();
|
59
56
|
}
|
60
|
-
function handleCloseDropdown() {
|
61
|
-
closeDropdown();
|
62
|
-
}
|
63
57
|
const refs = [valueRef, fieldValueRef, ...refsToIgnoreClick ?? []];
|
64
58
|
const handleClick = function handleClick2(e) {
|
65
59
|
const isClickInsideAnyOfElements = refs.map(getRefElement.getRefElement).some((el) => el.contains(e?.target));
|
@@ -69,21 +63,20 @@ function OptionSelector({
|
|
69
63
|
}
|
70
64
|
};
|
71
65
|
function handleOptionSelect(option) {
|
72
|
-
const keepDropdownOpen =
|
73
|
-
|
74
|
-
|
75
|
-
].includes(activeTab);
|
66
|
+
const keepDropdownOpen = activeCategory && [types.DropdownCategoryType.SELECT_FROM_UDM_DYNAMICALLY].includes(
|
67
|
+
activeCategory
|
68
|
+
);
|
76
69
|
onChange(option);
|
77
70
|
if (!keepDropdownOpen) {
|
78
|
-
|
71
|
+
closeDropdown();
|
79
72
|
}
|
80
73
|
}
|
81
74
|
const handleOnDelete = () => {
|
82
75
|
onChange(void 0);
|
83
|
-
|
76
|
+
closeDropdown();
|
84
77
|
};
|
85
|
-
const requiredAndEmptyField = required &&
|
86
|
-
return /* @__PURE__ */ jsxRuntime.
|
78
|
+
const requiredAndEmptyField = required && isDefinedValue.isDefinedValue(value);
|
79
|
+
return /* @__PURE__ */ jsxRuntime.jsx(
|
87
80
|
FieldWrapper.FieldWrapper,
|
88
81
|
{
|
89
82
|
role: "combobox",
|
@@ -92,32 +85,27 @@ function OptionSelector({
|
|
92
85
|
onClick: handleClick,
|
93
86
|
disabled,
|
94
87
|
requiredAndEmptyField,
|
95
|
-
children:
|
96
|
-
|
97
|
-
|
98
|
-
|
99
|
-
|
100
|
-
|
101
|
-
|
102
|
-
|
103
|
-
|
104
|
-
|
105
|
-
|
106
|
-
|
107
|
-
|
108
|
-
|
109
|
-
|
110
|
-
|
111
|
-
|
112
|
-
|
113
|
-
|
114
|
-
|
115
|
-
|
116
|
-
onSelect: handleOptionSelect,
|
117
|
-
onClose: handleCloseDropdown
|
118
|
-
}
|
119
|
-
)
|
120
|
-
]
|
88
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(
|
89
|
+
Dropdown.Dropdown,
|
90
|
+
{
|
91
|
+
topDropdownPanelComponent,
|
92
|
+
autoFocusOnSearch: true,
|
93
|
+
onOptionSelect: handleOptionSelect,
|
94
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(
|
95
|
+
Value,
|
96
|
+
{
|
97
|
+
ref: valueRef,
|
98
|
+
valueComponent,
|
99
|
+
placeholder,
|
100
|
+
disabled,
|
101
|
+
className,
|
102
|
+
onChange,
|
103
|
+
onDelete: handleOnDelete,
|
104
|
+
isEdited: isDropdownOpen
|
105
|
+
}
|
106
|
+
)
|
107
|
+
}
|
108
|
+
)
|
121
109
|
}
|
122
110
|
);
|
123
111
|
}
|
@@ -135,7 +123,7 @@ const Value = React.forwardRef(
|
|
135
123
|
const { value } = comboboxContext.useComboBox();
|
136
124
|
return /* @__PURE__ */ jsxRuntime.jsxs("span", { className: OptionSelector_module.default.valueWrapper, ref, children: [
|
137
125
|
!!valueComponent ? /* @__PURE__ */ jsxRuntime.jsx(jsxRuntime.Fragment, { children: valueComponent }) : /* @__PURE__ */ jsxRuntime.jsx(
|
138
|
-
|
126
|
+
ComboBoxValue.ComboBoxValue,
|
139
127
|
{
|
140
128
|
className,
|
141
129
|
placeholder,
|
@@ -145,14 +133,14 @@ const Value = React.forwardRef(
|
|
145
133
|
isEdited
|
146
134
|
}
|
147
135
|
),
|
148
|
-
|
149
|
-
index
|
136
|
+
isDefinedValue.isDefinedValue(value) && onDelete && /* @__PURE__ */ jsxRuntime.jsx(
|
137
|
+
index.ActionBar,
|
150
138
|
{
|
151
139
|
className: clsx(
|
152
140
|
OptionSelector_module.default.actionBar,
|
153
141
|
isEdited && OptionSelector_module.default.actionBar__visible
|
154
142
|
),
|
155
|
-
children: /* @__PURE__ */ jsxRuntime.jsx(index
|
143
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(index.ActionBar.DeleteButton, { onClick: onDelete })
|
156
144
|
}
|
157
145
|
)
|
158
146
|
] });
|
@@ -2,7 +2,7 @@
|
|
2
2
|
/*
|
3
3
|
* Integration App React package
|
4
4
|
* {@link https://www.npmjs.com/package/@integration-app/react}
|
5
|
-
* v2.0.
|
5
|
+
* v2.0.4-beta.0
|
6
6
|
*/
|
7
7
|
'use client';
|
8
8
|
|
@@ -16,19 +16,16 @@ var getRefElement = require('../../../helpers/getRefElement.cjs');
|
|
16
16
|
var types = require('../types.cjs');
|
17
17
|
var Editor = require('../../ComboBoxElements/TipTapEditor/Editor.cjs');
|
18
18
|
require('../../ComboBoxElements/TipTapEditor/EditorStandAlone.cjs');
|
19
|
-
require('../../ComboBoxElements/TipTapEditor/TagComponent.cjs');
|
20
|
-
require('../../SvgIcon/index.cjs');
|
21
19
|
require('fuse');
|
20
|
+
require('../Dropdown/categoryContentMapping.cjs');
|
22
21
|
var clicks = require('../../ComboBoxElements/TipTapEditor/helpers/clicks.cjs');
|
23
22
|
var transformEditorSchemaToValue = require('../../ComboBoxElements/TipTapEditor/helpers/transformEditorSchemaToValue.cjs');
|
24
23
|
var comboboxContext = require('../context/combobox-context.cjs');
|
25
|
-
var Dropdown = require('../Dropdown/Dropdown.cjs');
|
26
|
-
require('../../DropdownUI/index.cjs');
|
27
|
-
var comboboxDropdownSearch = require('../context/combobox-dropdown-search.cjs');
|
28
24
|
var comboboxDropdownContext = require('../context/combobox-dropdown-context.cjs');
|
29
|
-
require('../Dropdown/tabs.cjs');
|
30
25
|
var FieldWrapper = require('../../ComboBoxElements/FieldWrapper.cjs');
|
31
|
-
var
|
26
|
+
var isDefinedValue = require('../Value/isDefinedValue.cjs');
|
27
|
+
var comboboxDropdownSearch = require('../context/combobox-dropdown-search.cjs');
|
28
|
+
var Dropdown = require('../Dropdown/Dropdown.cjs');
|
32
29
|
|
33
30
|
function TextInput({
|
34
31
|
placeholder,
|
@@ -39,7 +36,6 @@ function TextInput({
|
|
39
36
|
}) {
|
40
37
|
const textInputRef = React.useRef(null);
|
41
38
|
const fieldValueRef = React.useRef(null);
|
42
|
-
const dropdownRef = React.useRef(null);
|
43
39
|
const {
|
44
40
|
value,
|
45
41
|
refsToIgnoreClick,
|
@@ -55,8 +51,7 @@ function TextInput({
|
|
55
51
|
onChange,
|
56
52
|
onEnter: ({ editor: editor2 }) => {
|
57
53
|
onChange(transformEditorSchemaToValue.transformEditorSchemaToValue(editor2?.getJSON() ?? {}));
|
58
|
-
|
59
|
-
handleCloseDropdown();
|
54
|
+
closeDropdown();
|
60
55
|
},
|
61
56
|
placeholder,
|
62
57
|
allowEditorSearchClear: searchSource === "editor"
|
@@ -64,14 +59,11 @@ function TextInput({
|
|
64
59
|
React.useEffect(() => {
|
65
60
|
editor?.setEditable(!disabled, false);
|
66
61
|
}, [disabled, editor]);
|
67
|
-
const {
|
62
|
+
const { activeCategory } = comboboxDropdownContext.useComboBoxDropdownContext();
|
68
63
|
function handleOpenDropdown() {
|
69
64
|
if (disabled) return;
|
70
65
|
openDropdown();
|
71
66
|
}
|
72
|
-
function handleCloseDropdown() {
|
73
|
-
closeDropdown();
|
74
|
-
}
|
75
67
|
const refs = [textInputRef, fieldValueRef, ...refsToIgnoreClick ?? []];
|
76
68
|
const handleClick = function(e) {
|
77
69
|
const isClickInsideAnyOfElements = refs.map(getRefElement.getRefElement).some((el) => el.contains(e?.target));
|
@@ -84,22 +76,21 @@ function TextInput({
|
|
84
76
|
}
|
85
77
|
};
|
86
78
|
const handleOptionSelect = (variable) => {
|
87
|
-
if (shouldRewriteValue(
|
79
|
+
if (shouldRewriteValue(activeCategory)) {
|
88
80
|
onChange(variable);
|
89
|
-
if (shouldCloseDropdown(
|
90
|
-
|
91
|
-
handleCloseDropdown();
|
81
|
+
if (shouldCloseDropdown(activeCategory)) {
|
82
|
+
closeDropdown();
|
92
83
|
}
|
93
84
|
} else {
|
94
85
|
const openTagCombobox = valueHasDropdownWithFormula(variable);
|
95
86
|
if (openTagCombobox) {
|
96
|
-
|
87
|
+
closeDropdown();
|
97
88
|
}
|
98
89
|
pasteTag(variable, { autoOpen: openTagCombobox });
|
99
90
|
}
|
100
91
|
};
|
101
|
-
const requiredAndEmptyField = required &&
|
102
|
-
return /* @__PURE__ */ jsxRuntime.
|
92
|
+
const requiredAndEmptyField = required && isDefinedValue.isDefinedValue(value);
|
93
|
+
return /* @__PURE__ */ jsxRuntime.jsx(
|
103
94
|
FieldWrapper.FieldWrapper,
|
104
95
|
{
|
105
96
|
role: "combobox",
|
@@ -108,48 +99,42 @@ function TextInput({
|
|
108
99
|
onClick: handleClick,
|
109
100
|
disabled,
|
110
101
|
requiredAndEmptyField,
|
111
|
-
children:
|
112
|
-
|
113
|
-
|
114
|
-
|
115
|
-
|
116
|
-
|
117
|
-
|
118
|
-
|
119
|
-
|
102
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(
|
103
|
+
Dropdown.Dropdown,
|
104
|
+
{
|
105
|
+
topDropdownPanelComponent,
|
106
|
+
onOptionSelect: handleOptionSelect,
|
107
|
+
autoFocusOnSearch: false,
|
108
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(
|
109
|
+
Editor.Editor,
|
110
|
+
{
|
111
|
+
className,
|
112
|
+
ref: textInputRef,
|
113
|
+
editor,
|
114
|
+
onFocus: () => {
|
115
|
+
setSearchSource("editor");
|
116
|
+
}
|
120
117
|
}
|
121
|
-
|
122
|
-
|
123
|
-
|
124
|
-
Dropdown.Dropdown,
|
125
|
-
{
|
126
|
-
ref: dropdownRef,
|
127
|
-
referenceElement: fieldValueRef,
|
128
|
-
topDropdownPanelComponent,
|
129
|
-
onSelect: handleOptionSelect,
|
130
|
-
onClose: handleCloseDropdown,
|
131
|
-
autoFocusOnSearch: false
|
132
|
-
}
|
133
|
-
)
|
134
|
-
]
|
118
|
+
)
|
119
|
+
}
|
120
|
+
)
|
135
121
|
}
|
136
122
|
);
|
137
123
|
}
|
138
|
-
function shouldRewriteValue(
|
139
|
-
return
|
140
|
-
types.
|
141
|
-
types.
|
142
|
-
types.
|
143
|
-
types.
|
144
|
-
|
145
|
-
].includes(tab);
|
124
|
+
function shouldRewriteValue(category) {
|
125
|
+
return category && [
|
126
|
+
types.DropdownCategoryType.OPTIONS,
|
127
|
+
types.DropdownCategoryType.CUSTOM,
|
128
|
+
types.DropdownCategoryType.LOOKUP_OPTIONS,
|
129
|
+
types.DropdownCategoryType.SELECT_FROM_UDM_DYNAMICALLY
|
130
|
+
].includes(category);
|
146
131
|
}
|
147
|
-
function shouldCloseDropdown(
|
148
|
-
return
|
149
|
-
types.
|
150
|
-
types.
|
151
|
-
types.
|
152
|
-
].includes(
|
132
|
+
function shouldCloseDropdown(category) {
|
133
|
+
return category && [
|
134
|
+
types.DropdownCategoryType.OPTIONS,
|
135
|
+
types.DropdownCategoryType.CUSTOM,
|
136
|
+
types.DropdownCategoryType.LOOKUP_OPTIONS
|
137
|
+
].includes(category);
|
153
138
|
}
|
154
139
|
function valueHasDropdownWithFormula(value) {
|
155
140
|
if (!sdk.isFormula(value)) return false;
|
@@ -2,7 +2,7 @@
|
|
2
2
|
/*
|
3
3
|
* Integration App React package
|
4
4
|
* {@link https://www.npmjs.com/package/@integration-app/react}
|
5
|
-
* v2.0.
|
5
|
+
* v2.0.4-beta.0
|
6
6
|
*/
|
7
7
|
'use client';
|
8
8
|
|
@@ -16,10 +16,11 @@ var TagPlaceholder = require('../../Tag/TagPlaceholder.cjs');
|
|
16
16
|
var comboboxContext = require('../context/combobox-context.cjs');
|
17
17
|
var Formula = require('./Formula.cjs');
|
18
18
|
var Schema = require('./Schema.cjs');
|
19
|
+
var isDefinedValue = require('./isDefinedValue.cjs');
|
19
20
|
|
20
21
|
const ComboBoxValue = React.forwardRef(function({ placeholder, isEdited, disabled, onClick, onChange, className }, ref) {
|
21
22
|
const { value, variablesSchema, schema, options, optionFactories } = comboboxContext.useComboBox();
|
22
|
-
const isValueDefined =
|
23
|
+
const isValueDefined = isDefinedValue.isDefinedValue(value);
|
23
24
|
if (isEdited && (!isValueDefined || value === "")) {
|
24
25
|
return /* @__PURE__ */ jsxRuntime.jsx(TagPlaceholder.TagPlaceholder, { ref, className });
|
25
26
|
}
|
@@ -64,7 +65,4 @@ const ComboBoxValue = React.forwardRef(function({ placeholder, isEdited, disable
|
|
64
65
|
});
|
65
66
|
ComboBoxValue.displayName = "ComboBoxValue";
|
66
67
|
|
67
|
-
exports.ComboBoxFormulaValue = Formula.ComboBoxFormulaValue;
|
68
|
-
exports.ComboBoxSchemaValue = Schema.ComboBoxSchemaValue;
|
69
|
-
exports.isDefinedValue = Schema.isDefinedValue;
|
70
68
|
exports.ComboBoxValue = ComboBoxValue;
|
@@ -2,7 +2,7 @@
|
|
2
2
|
/*
|
3
3
|
* Integration App React package
|
4
4
|
* {@link https://www.npmjs.com/package/@integration-app/react}
|
5
|
-
* v2.0.
|
5
|
+
* v2.0.4-beta.0
|
6
6
|
*/
|
7
7
|
'use client';
|
8
8
|
|
@@ -12,7 +12,7 @@ var jsxRuntime = require('react/jsx-runtime');
|
|
12
12
|
var React = require('react');
|
13
13
|
var clsx = require('clsx');
|
14
14
|
var ComboBoxTag = require('../../ComboBoxElements/ComboBoxTag.cjs');
|
15
|
-
var
|
15
|
+
var svgIconType = require('../../SvgIcon/svg-icon-type.cjs');
|
16
16
|
var index = require('../../Truncate/index.cjs');
|
17
17
|
var customField = require('../options-factories/custom-field.cjs');
|
18
18
|
var TagPlaceholder = require('../../Tag/TagPlaceholder.cjs');
|
@@ -81,23 +81,20 @@ const ComboBoxSchemaValue = React.forwardRef(
|
|
81
81
|
}
|
82
82
|
);
|
83
83
|
ComboBoxSchemaValue.displayName = "ComboBoxSchemaValue";
|
84
|
-
function isDefinedValue(value) {
|
85
|
-
return value !== null && value !== void 0;
|
86
|
-
}
|
87
84
|
function getIconProps(schema) {
|
88
85
|
switch (schema?.type) {
|
89
86
|
case "string":
|
90
87
|
return {
|
91
|
-
icon:
|
88
|
+
icon: svgIconType.SvgIconType.SchemaType_string
|
92
89
|
};
|
93
90
|
case "boolean":
|
94
91
|
return {
|
95
|
-
icon:
|
92
|
+
icon: svgIconType.SvgIconType.SchemaType_boolean
|
96
93
|
};
|
97
94
|
case "number":
|
98
95
|
case "integer":
|
99
96
|
return {
|
100
|
-
icon:
|
97
|
+
icon: svgIconType.SvgIconType.Braces
|
101
98
|
};
|
102
99
|
default:
|
103
100
|
return void 0;
|
@@ -143,4 +140,3 @@ function ReferenceCollectionValue({
|
|
143
140
|
}
|
144
141
|
|
145
142
|
exports.ComboBoxSchemaValue = ComboBoxSchemaValue;
|
146
|
-
exports.isDefinedValue = isDefinedValue;
|
@@ -0,0 +1,15 @@
|
|
1
|
+
"use strict";
|
2
|
+
/*
|
3
|
+
* Integration App React package
|
4
|
+
* {@link https://www.npmjs.com/package/@integration-app/react}
|
5
|
+
* v2.0.4-beta.0
|
6
|
+
*/
|
7
|
+
'use client';
|
8
|
+
|
9
|
+
'use strict';
|
10
|
+
|
11
|
+
function isDefinedValue(value) {
|
12
|
+
return value !== null && value !== void 0;
|
13
|
+
}
|
14
|
+
|
15
|
+
exports.isDefinedValue = isDefinedValue;
|
@@ -2,7 +2,7 @@
|
|
2
2
|
/*
|
3
3
|
* Integration App React package
|
4
4
|
* {@link https://www.npmjs.com/package/@integration-app/react}
|
5
|
-
* v2.0.
|
5
|
+
* v2.0.4-beta.0
|
6
6
|
*/
|
7
7
|
'use client';
|
8
8
|
|
@@ -49,6 +49,7 @@ const ComboBoxProvider = ({
|
|
49
49
|
topDropdownPanelComponent,
|
50
50
|
children
|
51
51
|
}) => {
|
52
|
+
const scopedComboboxId = React.useId();
|
52
53
|
const [isDropdownOpen, setIsDropdownOpen] = React.useState(false);
|
53
54
|
React.useEffect(() => {
|
54
55
|
if (autoOpen) {
|
@@ -71,6 +72,7 @@ const ComboBoxProvider = ({
|
|
71
72
|
ComboBoxContext.Provider,
|
72
73
|
{
|
73
74
|
value: {
|
75
|
+
scopedComboboxId,
|
74
76
|
value,
|
75
77
|
schema,
|
76
78
|
valueSpec,
|